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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
mvvm-dagger/src/main/java/com/nphau/android/shared/data/repository/SharedRepository.kt | ThanhHuong98 | 432,947,065 | false | {"Kotlin": 165721, "Java": 1330, "Shell": 87} | /*
* Created by nphau on 31/10/2021, 22:08
* Copyright (c) 2021 . All rights reserved.
* Last modified 31/10/2021, 21:37
*/
package com.nphau.android.shared.data.repository
abstract class SharedRepository
| 0 | null | 0 | 1 | ac0402ae4734285ef5e647d1f53a1f9f4a8d98cd | 211 | android.clean-architecture.mvvm | Apache License 2.0 |
app/src/main/java/com/hypertrack/android/data/AccountDataSource.kt | hypertrack | 241,723,736 | false | null | package com.hypertrack.android.data
import com.hypertrack.android.repository.*
interface AccountDataStorage {
fun getAccountData(): AccountData
fun saveAccountData(accountData: AccountData)
fun loadUser(): User?
fun saveUser(user: User)
fun getDriverValue(): Driver
fun saveDriver(driverMode... | 1 | Kotlin | 15 | 28 | d418c449cbbbb19eca4f875a3e4f1099614213e4 | 449 | logistics-android | MIT License |
publisher-sdk/src/test/java/com/criteo/publisher/logging/LoggerTest.kt | irwansetiawan | 318,086,965 | false | null | /*
* Copyright 2020 Criteo
*
* 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 ... | 1 | null | 1 | 1 | c36df051eb2ce6a14bf8ed978471fb2f020af6ba | 2,481 | android-publisher-sdk | Apache License 2.0 |
app/src/main/java/com/alerdoci/marvelsuperheroes/app/components/SnackbarSample.kt | AlvaroErd | 645,667,383 | false | {"Kotlin": 807067, "Shell": 2165} | package com.alerdoci.marvelsuperheroes.app.components
import androidx.compose.foundation.layout.*
import androidx.compose.material.*
import androidx.compose.material3.Button
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Scaffold
import androidx.compose.material3.SnackbarD... | 0 | Kotlin | 0 | 4 | ca08baa30ab3e5452ecff6243caaa4d4ad89b4bb | 2,305 | MarvelSuperHeroes | Apache License 2.0 |
app/src/main/java/com/bayraktar/healthybackandneck/ui/Favourite/FavouriteExerciseMoves/MovesViewModel.kt | OzerBAYRAKTAR | 681,364,096 | false | {"Kotlin": 387201} | package com.bayraktar.healthybackandneck.ui.Favourite.FavouriteExerciseMoves
import androidx.lifecycle.ViewModel
class MovesViewModel : ViewModel() {
// TODO: Implement the ViewModel
} | 0 | Kotlin | 0 | 0 | e7efd4a712f71859fc6066e5c18774e41d80c5a1 | 190 | Fitbess-FitnessApplication | MIT License |
src/test/kotlin/ii887522/oxy/any/JsonParserTest.kt | ii887522 | 350,205,715 | false | null | package ii887522.oxy.any
import ii887522.oxy.collection.ArrayList
import ii887522.oxy.struct.*
import ii887522.oxy.collection.HashMap
import org.junit.Assert.*
import org.junit.Test
class JsonParserTest {
@Test fun `test run`() {
val parser = JsonParser()
assertNull(parser.run())
assertThrows(IllegalArg... | 0 | Kotlin | 0 | 0 | 12dc0748d78e95dc6f465fa337378bd32b465191 | 25,775 | oxy | MIT License |
app/src/main/java/com/example/weatherforecastmvvm/ui/weather/future/detail/FutureDetailWeatherViewModelFactory.kt | WarriorsSami | 389,731,183 | false | {"Kotlin": 72849} | package com.example.weatherforecastmvvm.ui.weather.future.detail
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.example.weatherforecastmvvm.data.provider.UnitSystemProvider
import com.example.weatherforecastmvvm.data.repository.ForecastRepository
import com.example.weatherfo... | 1 | Kotlin | 0 | 1 | 708fb4d10ea447b40b56999fe3fb38d8b10019d4 | 872 | Weather-Forecast-Android-App | Apache License 2.0 |
app/src/main/java/me/lazmaid/fireredux/view/home/HomeActivity.kt | VerachadW | 77,805,522 | false | null | package me.lazmaid.fireredux.view.home
import android.os.Bundle
import android.support.v7.widget.LinearLayoutManager
import android.view.ViewGroup
import com.github.kittinunf.reactiveandroid.support.v7.widget.rx_itemsWith
import kotlinx.android.synthetic.main.activity_home.*
import me.lazmaid.fireredux.R
import me.laz... | 0 | Kotlin | 2 | 4 | 137600fccbd1c2ead08d6adabccfc3dccef90517 | 1,768 | FireRedux | MIT License |
domain/src/main/kotlin/io/timemates/backend/timers/usecases/SetTimerInfoUseCase.kt | timemates | 575,534,781 | false | null | package io.timemates.backend.timers.usecases
import io.timemates.backend.features.authorization.AuthorizedContext
import io.timemates.backend.timers.repositories.TimersRepository
import io.timemates.backend.timers.types.TimerAuthScope
import io.timemates.backend.timers.types.value.TimerId
import io.timemates.backend.u... | 20 | Kotlin | 0 | 4 | e1a380a2640e7ada1fb3028619a6b4573c2f4aa6 | 1,023 | backend | MIT License |
src/main/kotlin/com/housing/movie/features/plan/domain/usecase/update_plan/UpdatePlanUseCase.kt | thinhlh | 431,658,207 | false | null | package com.housing.movie.features.plan.domain.usecase.update_plan
import com.housing.movie.base.BaseUseCase
import com.housing.movie.features.plan.domain.entity.Plan
import com.housing.movie.features.plan.domain.service.PlanService
import org.springframework.stereotype.Component
@Component
class UpdatePlanUseCase(
... | 0 | Kotlin | 0 | 0 | f88c15909040f54baf9be3f2adf47429eeccfac5 | 494 | oo-movie-backend | MIT License |
src/test/kotlin/org/lexem/angmar/analyzer/nodes/literals/PropertyStyleObjectAnalyzerTest.kt | lexemlang | 184,409,059 | false | {"Kotlin": 3049940} | package org.lexem.angmar.analyzer.nodes.literals
import org.junit.jupiter.api.*
import org.lexem.angmar.analyzer.data.primitives.*
import org.lexem.angmar.analyzer.data.referenced.*
import org.lexem.angmar.parser.literals.*
import org.lexem.angmar.utils.*
internal class PropertyStyleObjectAnalyzerTest {
@Test
... | 0 | Kotlin | 0 | 2 | 45fb563507a00c3eada89be9ab6e17cfe1701958 | 2,537 | angmar | MIT License |
src/test/kotlin/org/lexem/angmar/analyzer/nodes/literals/PropertyStyleObjectAnalyzerTest.kt | lexemlang | 184,409,059 | false | {"Kotlin": 3049940} | package org.lexem.angmar.analyzer.nodes.literals
import org.junit.jupiter.api.*
import org.lexem.angmar.analyzer.data.primitives.*
import org.lexem.angmar.analyzer.data.referenced.*
import org.lexem.angmar.parser.literals.*
import org.lexem.angmar.utils.*
internal class PropertyStyleObjectAnalyzerTest {
@Test
... | 0 | Kotlin | 0 | 2 | 45fb563507a00c3eada89be9ab6e17cfe1701958 | 2,537 | angmar | MIT License |
android/src/main/java/cn/qiuxiang/react/amap3d/maps/AMapAircraft.kt | jabezGit | 117,428,191 | true | {"Kotlin": 69388, "Objective-C": 45652, "JavaScript": 23167, "Ruby": 592} | package cn.qiuxiang.react.amap3d.maps
import android.content.Context
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.Color
import android.view.View
import cn.qiuxiang.react.amap3d.toPx
import com.amap.api.maps.AMap
import com.amap.api.maps.model.*
import com.facebook.react.bridge.... | 0 | Kotlin | 0 | 0 | de6b6ee22acfd80f94b6b10cb0e45bf72f1c702a | 5,528 | react-native-amap3d | MIT License |
app/src/main/java/com/songlan/deepink/ui/base/ReadPageFragment.kt | songlan0222 | 314,155,497 | false | null | package com.songlan.deepink.ui.base
import android.app.Activity
import android.content.SharedPreferences
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.songlan.deepink.ui.component.ReadPage
import com.songlan.deepink.ui.read.ReadBookActivit... | 0 | Kotlin | 0 | 3 | b0e3e8d990aae1a61b1f2ec02daadd4aee001ad4 | 1,248 | ForgeDeepInk | Apache License 2.0 |
plugins/package-search/src/com/jetbrains/packagesearch/intellij/plugin/extensions/gradle/GradleProjectModuleProvider.kt | samofcorinth | 367,364,914 | false | {"Text": 6170, "XML": 6235, "YAML": 417, "Ant Build System": 13, "Shell": 561, "Markdown": 534, "Ignore List": 92, "Git Attributes": 10, "EditorConfig": 227, "Batchfile": 27, "SVG": 2339, "Java": 74410, "C++": 34, "HTML": 2876, "Kotlin": 39139, "DTrace": 1, "Gradle": 448, "Java Properties": 202, "INI": 412, "JFlex": 31... | package com.jetbrains.packagesearch.intellij.plugin.extensions.gradle
import com.intellij.openapi.application.runReadAction
import com.intellij.openapi.diagnostic.Logger
import com.intellij.openapi.externalSystem.util.ExternalSystemApiUtil
import com.intellij.openapi.module.Module
import com.intellij.openapi.module.Mo... | 1 | null | 1 | 1 | c789b009e72bd05069b5023d58deaa9ecb1603ac | 6,732 | intellij-community | Apache License 2.0 |
lib_annotations/src/main/java/com/js/lib_annotations/OnClick.kt | DOUBLEYOUJS | 214,209,831 | false | null | package com.js.lib_annotations
/**
*
* @ClassName: OnClick
* @Author: Double
* @CreateDate: 19-10-10 下午8:58
* @Description: 点击事件注解,这里只是单击事件,其他事件需要重新写代码
*/
@Target(AnnotationTarget.FUNCTION)
@Retention(AnnotationRetention.BINARY)
annotation class OnClick (vararg val values:Int) | 0 | Kotlin | 1 | 2 | acfa0712deebf577577347851b655ddf2d879590 | 301 | BindTest | Apache License 2.0 |
app/src/main/kotlin/com/leovp/androidtemplate/ui/theme/Color.kt | yhz61010 | 523,167,125 | false | null | @file:Suppress("unused")
package com.leovp.ui.theme
import androidx.compose.ui.graphics.Color
// --------------------
val immersive_sys_ui = Color(0x338B5000)
val discovery_top_section_start_color = Color(0x40A262AB)
val discovery_top_section_middle1_color = Color(0x20A262AB)
val discovery_top_section_middle2_colo... | 0 | null | 0 | 1 | cbd7cba4fe228d2e06c7684908c2aa19926b96a6 | 3,573 | android-kotlin-template | MIT License |
PortfolioHPNote/app/src/main/java/com/philip/portfoliohpnote/view/taskdetail/TaskDetailFragment.kt | Hongpil | 352,858,818 | false | null | package com.philip.portfoliohpnote.view.taskdetail
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.view.*
import android.widget.CheckBox
import android.widget.TextView
import androidx.fragment.app.Fragment
import com.google.android.material.floatingactionbutton.Floatin... | 0 | Kotlin | 0 | 0 | 651ff83a9704fed44b7c7cfe4a30c0ac34019fb4 | 4,751 | HPNote | Apache License 2.0 |
src/commonMain/kotlin/com/norsedreki/logger/Logger.kt | NorseDreki | 677,715,701 | false | {"Kotlin": 119347} | /*
* SPDX-FileCopyrightText: Copyright (c) 2024, Alex Dmitriev <mr.alex.dmitriev@icloud.com> and contributors.
* SPDX-License-Identifier: Apache-2.0
*/
package com.norsedreki.logger
object Logger : CanLog {
private lateinit var canLog: CanLog
fun set(l: CanLog) {
canLog = l
}
override fu... | 4 | Kotlin | 0 | 0 | ab061b53756579d25741cbe5dc29a4b6b3fbb997 | 428 | dogcat | Apache License 2.0 |
app/src/main/java/br/com/orgs/ui/activity/FormularioProdutoActivity.kt | ronaldocoding | 488,197,506 | false | null | package br.com.orgs.ui.activity
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import br.com.orgs.dao.ProdutosDAO
import br.com.orgs.databinding.ActivityFormularioProdutoBinding
import br.com.orgs.model.Produto
import java.math.BigDecimal
class FormularioProdutoA... | 0 | Kotlin | 0 | 0 | 833724706013fb9ab7d66a5c0d0b712ce0f467f7 | 1,662 | Orgs | MIT License |
app/src/scenarios/java/uk/nhs/nhsx/covid19/android/app/exposure/FieldTestConfiguration.kt | nhsx-mirror | 289,296,773 | true | {"Kotlin": 2761696, "Shell": 1098, "Ruby": 847, "Batchfile": 197} | package uk.nhs.nhsx.covid19.android.app.exposure
import com.google.android.gms.nearby.exposurenotification.ExposureConfiguration
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
data class FieldTestConfiguration(
val minimumRiskScore: Int = 4,
val attenuationLevelValues: List<Int> = list... | 0 | Kotlin | 0 | 0 | 296c9decde1b5ed904b760ff77b05afc51f24281 | 1,742 | covid-19-app-android-ag-public | MIT License |
app/src/main/java/com/freddy/silhouette/example/MainActivity.kt | FreddyChen | 456,290,661 | false | null | package com.freddy.silhouette.example
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.freddy.silhouette.widget.button.SleImageButton
import com.freddy.silhouette.widget.button.SleTextButton
import com.freddy.silhouette.widget.layout.SleConstraintLayout
import com.freddy.silhouette.w... | 4 | null | 4 | 24 | b1f6273ec6ee4a736592b82d9255fe34e1187877 | 1,287 | Silhouette | Apache License 2.0 |
src/main/kotlin/g3201_3300/s3243_shortest_distance_after_road_addition_queries_i/Solution.kt | javadev | 190,711,550 | false | {"Kotlin": 4870729, "TypeScript": 50437, "Python": 3646, "Shell": 994} | package g3201_3300.s3243_shortest_distance_after_road_addition_queries_i
// #Medium #Array #Breadth_First_Search #Graph
// #2024_08_07_Time_313_ms_(97.06%)_Space_46.3_MB_(97.06%)
class Solution {
fun shortestDistanceAfterQueries(n: Int, queries: Array<IntArray>): IntArray {
val dist = IntArray(n)
... | 0 | Kotlin | 20 | 43 | e8b08d4a512f037e40e358b078c0a091e691d88f | 1,384 | LeetCode-in-Kotlin | MIT License |
plugins/client/graphql-kotlin-client-generator/src/test/data/kotlinx/custom_scalar_input/scalars/ULocaleSerializer.kt | ExpediaGroup | 148,706,161 | false | null | package com.expediagroup.graphql.generated.scalars
import com.expediagroup.graphql.client.Generated
import com.expediagroup.graphql.plugin.client.generator.ULocaleScalarConverter
import com.ibm.icu.util.ULocale
import kotlin.Unit
import kotlinx.serialization.KSerializer
import kotlinx.serialization.descriptors.Primiti... | 21 | Kotlin | 273 | 1,420 | a0a8bad009a4ddbf88ce5c30200f90a091bd3df7 | 1,314 | graphql-kotlin | Apache License 2.0 |
app/src/main/java/mvvm/f4wzy/com/samplelogin/util/Util.kt | muhammadFawzy | 145,230,801 | false | null | package mvvm.f4wzy.com.samplelogin.util
import android.util.Log
import java.util.regex.Pattern
class Util {
companion object {
fun isEmailValid(email: String): Boolean {
val expression = "^[\\w\\.-]+@([\\w\\-]+\\.)+[A-Z]{2,4}$"
val pattern = Pattern.compile(expression, Pattern.CAS... | 0 | null | 17 | 46 | 359f11e1f4e2c63c3be3813e3fd43e044cb5bdc6 | 440 | android-kotlin-mvvm-architecture | Apache License 2.0 |
src/test/kotlin/org/nexial/core/variable/CountTest.kt | nexiality | 118,983,002 | false | null | /*
* Copyright 2012-2021 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 2 | null | 9 | 42 | 776668ea5ee65183a84f09eca52e7e79eb6665af | 7,216 | nexial-core | Apache License 2.0 |
app/src/main/java/br/com/programadorthi/anarchtecturetry/feature/blockchain/presentation/BlockchainViewData.kt | programadorthi | 165,963,379 | false | null | package br.com.programadorthi.anarchtecturetry.feature.blockchain.presentation
data class BlockchainViewData(
val date: String,
val value: String
) {
companion object {
val EMPTY = BlockchainViewData(
date = "",
value = ""
)
}
} | 0 | Kotlin | 0 | 12 | 3547af32de09f6dbdaf22c921c0e9c63421d327e | 285 | Anarchitecturetry | MIT License |
net/craftventure/core/feature/kart/actions/AtAtAction.kt | Craftventure | 770,049,457 | false | {"Kotlin": 3656616, "Java": 684034} | package net.craftventure.core.feature.kart.actions
import net.craftventure.bukkit.ktx.plugin.PluginProvider
import net.craftventure.core.animation.armature.Armature
import net.craftventure.core.animation.armature.WrappedJoint
import net.craftventure.core.extension.collidingCheck
import net.craftventure.core.feature.ka... | 0 | Kotlin | 1 | 21 | 015687ff6687160835deacda57121480f542531b | 8,554 | open-plugin-parts | MIT License |
app/src/main/java/me/syahdilla/putra/sholeh/storyappdicoding/Settings.kt | adi-itgg | 607,399,179 | false | null | package me.syahdilla.putra.sholeh.storyappdicoding
import android.content.Context
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
import androidx.datastore.preferences.core.stringPreferencesKey
import androidx.datastore.preferences.preferencesDataStore
private const val... | 0 | Kotlin | 0 | 0 | 80ab31ed8387d71ea9493ca371f770209b2e7ec0 | 519 | StoryAppDicoding | MIT License |
scrapper/src/main/kotlin/me/func/WebCrawler.kt | funcid | 588,702,486 | false | null | package me.func
import me.func.shema.Node
import me.func.storage.OpenSearchStorage
import me.func.storage.Storage
import me.func.util.*
import org.slf4j.LoggerFactory
object WebCrawler {
private val storage: Storage = OpenSearchStorage(
prop("open-search-remote"),
prop("open-search-index")
)
... | 0 | Kotlin | 0 | 0 | e95d88ec38df680f867072a9e2eba8f77e487538 | 2,428 | web-crawler | Apache License 2.0 |
src/main/kotlin/anissia/domain/session/repository/LoginTokenRepository.kt | anissia-net | 319,510,882 | false | {"Kotlin": 257058, "HTML": 5480, "HCL": 794} | package anissia.domain.session.repository
import anissia.domain.session.LoginToken
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.data.jpa.repository.Modifying
import org.springframework.data.jpa.repository.Query
import org.springframework.transaction.annotation.Transactional
i... | 3 | Kotlin | 4 | 13 | ea6e637083ad4bdf9d01d4d9efa63f0ce5d1fa76 | 713 | anissia-core | Creative Commons Attribution 4.0 International |
data/src/main/kotlin/com/numero/sojodia/data/local/IBusTimeDao.kt | NUmeroAndDev | 58,176,699 | false | null | package com.numero.sojodia.data.local
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
@Dao
interface IBusTimeDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
fun create(busTime: BusTimeData)
@Query("SELECT * FROM bus_time ORDE... | 14 | Kotlin | 3 | 9 | 8769696e7f087a78d036956569c1d73ff0507df7 | 468 | SojoDia-android | MIT License |
egklib/src/commonMain/kotlin/electionguard/rave/VerifyPep.kt | votingworks | 425,905,229 | false | null | package electionguard.pep
import com.github.michaelbull.result.Err
import com.github.michaelbull.result.Ok
import com.github.michaelbull.result.Result
import electionguard.core.*
class VerifierPep(
val group: GroupContext,
val extendedBaseHash: UInt256,
val jointPublicKey: ElGamalPublicKey,
) {
// ... | 32 | null | 3 | 7 | 69154022d6ecfc9589e72cf8711174c5ff4a6b34 | 1,910 | electionguard-kotlin-multiplatform | MIT License |
lib_base/src/main/java/com/quyunshuo/wanandroid/base/ktx/PopupWindowKtx.kt | Quyunshuo | 389,148,840 | false | null | package com.quyunshuo.wanandroid.base.ktx
import android.view.View
import android.view.ViewGroup
import android.widget.PopupWindow
/**
* PopupWindow相关扩展
*
* @author <NAME>
* @since 1/4/21 10:48 AM
*/
/**
* 测量view宽高
*/
fun PopupWindow.makeDropDownMeasureSpec(measureSpec: Int): Int {
val mode =
if (... | 1 | Kotlin | 7 | 34 | b00274fb9ad349dc8b9d2f32ed1af5e2864246c6 | 521 | WanAndroidMVVM | Apache License 2.0 |
components/data-analyzer/src/main/kotlin/com/goodboards/app/analyzer/News.kt | CSCI-5828-Foundations-Sftware-Engr | 614,026,505 | false | null | package com.goodboards.app.analyzer
import kotlinx.serialization.Serializable
@Suppress("PROVIDED_RUNTIME_TOO_LOW")
@Serializable
data class NewsUnit(val gameID: String, var title: String, var description: String, val url: String)
| 38 | Kotlin | 1 | 2 | 7b6f00de4f9bd906f1e2d12a414228bd67edbf58 | 234 | slackers | Apache License 2.0 |
src/test/resources/examples/FizzBuzz.kt | kusumotolab | 295,970,504 | false | null | fun main1() {
// Comment
for (number in 1..100) {
println(
when {
number % 15 == 0 -> "FizzBuzz"
number % 3 == 0 -> "Fizz"
number % 5 == 0 -> "Buzz"
else -> number
}
)
}
}
fun main2() {
/*
Commen... | 0 | null | 3 | 13 | d43a91e9a5ebef9d20c900046c9d6aa2b3b03b95 | 590 | NIL | MIT License |
app/src/test/java/com/miraka/signupproject/InputValidatorTest.kt | claudioMiraka | 489,983,273 | false | null | package com.miraka.signupproject
import com.miraka.signupproject.util.InputValidator
import junit.framework.TestCase.assertFalse
import junit.framework.TestCase.assertTrue
import org.junit.Test
class InputValidatorTest {
private val inputValidator = InputValidator()
@Test
fun `test valid and invalid pas... | 0 | Kotlin | 0 | 0 | a366a46c1139ee8fbe6520fbde08ddf5fdf8c710 | 1,543 | SignUpProject | Apache License 2.0 |
app/src/main/java/top/r011/demo/rgithub/ui/search/SearchViewModel.kt | waylife | 852,132,884 | false | {"Kotlin": 70115} | package top.r011.demo.rgithub.ui.search
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import kotlinx.coroutines.wi... | 0 | Kotlin | 0 | 0 | e4407d2c2483aa2773104b0cf1f25e313e235fad | 1,898 | RGithub | MIT License |
paysafe-core/src/main/java/com/paysafe/android/brainTreeDetails/data/api/BraintreeDetailsApi.kt | paysafegroup | 768,755,663 | false | {"Kotlin": 693673, "Shell": 912} | package com.paysafe.android.brainTreeDetails.data.api
import com.paysafe.android.brainTreeDetails.data.entity.BrainTreeDetailsResponse
import com.paysafe.android.brainTreeDetails.domain.models.BraintreeDetailsRequest
import com.paysafe.android.core.data.api.PaysafeApi
import com.paysafe.android.core.data.entity.PSApiR... | 0 | Kotlin | 0 | 0 | 1f4e3e9609cf30bb95a52c9e12e2c4250e54f6e5 | 1,302 | paysafe_sdk_android_payments_api | MIT License |
wgpu4k-scenes/src/jvmMain/kotlin/io.ygdrasil.wgpu.examples/AssetManager.jvm.kt | wgpu4k | 773,068,055 | false | {"Kotlin": 1190676, "HTML": 1638, "Dockerfile": 1039, "Shell": 308} | package io.ygdrasil.wgpu.examples
import io.ygdrasil.wgpu.ImageBitmapHolder
import korlibs.image.bitmap.Bitmap32
import korlibs.image.color.ColorFormat
import korlibs.io.file.Vfs
import java.lang.foreign.Arena
import java.lang.foreign.ValueLayout
actual var customVfs: Vfs
get() = TODO("Not yet implemented")
s... | 7 | Kotlin | 6 | 41 | 822c304afaa72411ae42e86f20c7b5c62b5f9815 | 625 | wgpu4k | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/approvedpremisesapi/jpa/entity/ConfirmationEntity.kt | ministryofjustice | 515,276,548 | false | {"Kotlin": 7973525, "Shell": 16340, "Dockerfile": 1667, "Mustache": 383} | package uk.gov.justice.digital.hmpps.approvedpremisesapi.jpa.entity
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.stereotype.Repository
import java.time.OffsetDateTime
import java.util.Objects
import java.util.UUID
import javax.persistence.Entity
import javax.persistence.Id
im... | 26 | Kotlin | 1 | 4 | 0497f8afb0833a6e75ed4d8836b3465f71792b37 | 1,229 | hmpps-approved-premises-api | MIT License |
astring/src/main/kotlin/xyz/tynn/astring/AStringResource.kt | tynn-xyz | 319,101,606 | false | {"Kotlin": 200850, "Java": 124735} | // Copyright 2020 Christian Schmitz
// SPDX-License-Identifier: Apache-2.0
@file:[JvmName("AStringFactory") JvmMultifileClass Suppress("FunctionName")]
package xyz.tynn.astring
import android.content.res.Resources.ID_NULL
import android.os.Parcel
import androidx.annotation.PluralsRes
import androidx.annotation.Str... | 0 | Kotlin | 0 | 4 | 3f382ac05ac689d9acbc34277ca6db588b6a651e | 2,335 | AString | Apache License 2.0 |
astring/src/main/kotlin/xyz/tynn/astring/AStringResource.kt | tynn-xyz | 319,101,606 | false | {"Kotlin": 200850, "Java": 124735} | // Copyright 2020 <NAME>
// SPDX-License-Identifier: Apache-2.0
@file:[JvmName("AStringFactory") JvmMultifileClass Suppress("FunctionName")]
package xyz.tynn.astring
import android.content.res.Resources.ID_NULL
import android.os.Parcel
import androidx.annotation.PluralsRes
import androidx.annotation.StringRes
/**... | 0 | Kotlin | 0 | 4 | 3f382ac05ac689d9acbc34277ca6db588b6a651e | 2,324 | AString | Apache License 2.0 |
keel-slack/src/main/kotlin/com/netflix/spinnaker/keel/slack/handlers/ManualJudgementUpdateHandler.kt | robfletcher | 375,190,252 | true | {"Kotlin": 3043135, "Java": 20143, "Slim": 359, "Shell": 338} | package com.netflix.spinnaker.keel.slack.handlers
import com.netflix.spinnaker.keel.api.constraints.ConstraintStatus
import com.netflix.spinnaker.keel.notifications.NotificationType.MANUAL_JUDGMENT_UPDATE
import com.netflix.spinnaker.keel.slack.SlackManualJudgmentUpdateNotification
import com.netflix.spinnaker.keel.sl... | 0 | null | 0 | 0 | 8d3b4fed81f6f434448a0072d7f97090299f629c | 3,137 | keel | Apache License 2.0 |
example/app/src/main/java/org/example/testapp/EmbeddedCommonLisp.kt | thijs | 216,491,081 | false | {"Common Lisp": 25268, "Shell": 7810, "C++": 6928, "Kotlin": 4092, "Dockerfile": 3449, "CMake": 2147, "GDB": 2095, "Makefile": 1687, "C": 124} | package org.example.testapp
import android.util.Log;
import android.os.Bundle
import android.content.Context
import android.content.ContextWrapper
import java.io.File
import java.io.FileOutputStream
private const val TAG = "example_tag"
class EmbeddedCommonLisp {
// defined in main.cpp
external fun JNIstart(p... | 0 | Common Lisp | 0 | 4 | f8ae88619aad980505e9a01b898089254e6f26a4 | 1,504 | android-ecl-bootstrap | MIT License |
libs/ui/src/main/java/com/dmdiaz/currency/libs/ui/views/MoneyEditText.kt | dmdiaz4 | 338,934,852 | false | {"Kotlin": 130746} | /*
* MIT License
*
* Copyright (c) 2024 David Diaz
*
* 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 | 0 | 1 | 9decfab6093c5405b574ad4b191f26585a56065e | 5,030 | Currency | MIT License |
korge-core/test@jvm/korlibs/image/text/TextRendererTest.kt | korlibs | 80,095,683 | false | {"WebAssembly": 14293935, "Kotlin": 9728800, "C": 77092, "C++": 20878, "TypeScript": 12397, "HTML": 6043, "Python": 4296, "Swift": 1371, "JavaScript": 328, "Shell": 254, "CMake": 202, "CSS": 66, "Batchfile": 41} | package korlibs.image.text
import korlibs.image.font.*
import korlibs.io.async.*
import korlibs.io.file.std.*
import kotlin.test.*
class TextRendererTest {
@Test
fun test() = suspendTest {
val font = resourcesVfs["font/segment7.fnt"].readBitmapFont()
val actions = Text2TextRendererActions()
... | 444 | WebAssembly | 121 | 2,207 | dc3d2080c6b956d4c06f4bfa90a6c831dbaa983a | 767 | korge | Apache License 2.0 |
src/me/anno/ui/base/constraints/Constraint.kt | AntonioNoack | 266,471,164 | false | null | package me.anno.ui.base.constraints
import me.anno.ui.base.Panel
abstract class Constraint(val order: Int){
abstract fun apply(panel: Panel)
} | 0 | Kotlin | 1 | 8 | e5f0bb17202552fa26c87c230e31fa44cd3dd5c6 | 150 | RemsStudio | Apache License 2.0 |
app/src/main/java/com/active/orbit/baseapp/design/widgets/BaseImageButton.kt | oakgroup | 629,001,920 | false | {"Kotlin": 482098} | package com.active.orbit.baseapp.design.widgets
import android.content.Context
import android.util.AttributeSet
import androidx.appcompat.widget.AppCompatImageButton
import com.active.orbit.baseapp.core.utils.Constants
class BaseImageButton : AppCompatImageButton {
constructor(context: Context) : super(context) ... | 0 | Kotlin | 0 | 0 | 08f2634128739247880f5e00df31317bd3a96f06 | 815 | android-bhf-doctors | MIT License |
app/src/test/java/dog/snow/androidrecruittest/ui/list/ListViewModelTest.kt | wojtekno | 293,571,322 | true | {"Kotlin": 88885} | package dog.snow.androidrecruittest.ui.list
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import com.nhaarman.mockitokotlin2.doReturn
import com.nhaarman.mockitokotlin2.mock
import dog.snow.androidrecruittest.testutils.createListItems
import dog.snow.androidrecruittest.usecases.GetListItemsUseCase... | 0 | Kotlin | 0 | 0 | 0f51a9c83d45c73859606b7834244b644e86285a | 1,654 | android-recruitment-test | Apache License 2.0 |
p8e-util/src/main/kotlin/io/p8e/util/ProtoExtension.kt | provenance-io | 340,506,091 | false | null | package io.p8e.util
import io.p8e.proto.ContractScope.Envelope
import com.google.protobuf.Message
import kotlin.reflect.KClass
import kotlin.reflect.full.declaredFunctions
fun Envelope.getUuid() = ref.groupUuid.toUuidProv()
fun Envelope.getExecUuid() = executionUuid.toUuidProv()
fun Envelope.getUuidNullable() = ref.g... | 2 | Kotlin | 0 | 23 | d27b71e8ab95af104705b2e245b31a4fd6499a6d | 934 | p8e | Apache License 2.0 |
common/src/jvmMain/kotlin/tk/zwander/common/util/jna/macos/AppKit.kt | zacharee | 342,079,605 | false | {"Kotlin": 526503, "AIDL": 84} | package tk.zwander.common.util.jna.macos
import ca.weblite.objc.NSObject
import ca.weblite.objc.RuntimeUtils.sel
import ca.weblite.objc.annotations.Msg
import com.sun.jna.Native
import com.sun.jna.win32.StdCallLibrary
import korlibs.memory.dyn.osx.NSApplication
import korlibs.memory.dyn.osx.NSClass
import korlibs.memo... | 3 | Kotlin | 94 | 785 | 6ded56a8d664510c5bf390f06ed9038d26dbfc0b | 3,260 | SamloaderKotlin | MIT License |
solar/src/main/java/com/chiksmedina/solar/outline/designtools/AlignBottom.kt | CMFerrer | 689,442,321 | false | {"Kotlin": 36591890} | package com.chiksmedina.solar.outline.designtools
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Compa... | 0 | Kotlin | 0 | 0 | 3414a20650d644afac2581ad87a8525971222678 | 8,783 | SolarIconSetAndroid | MIT License |
src/main/liveplugin/implementation/actions/CreateKotlinPluginZipAction.kt | dkandalov | 2,571,524 | false | {"Kotlin": 231786, "Groovy": 164220, "Java": 33522, "HTML": 924} | package liveplugin.implementation.actions
import com.intellij.ide.BrowserUtil.browse
import com.intellij.notification.Notification
import com.intellij.notification.NotificationAction
import com.intellij.notification.NotificationType.INFORMATION
import com.intellij.openapi.actionSystem.ActionUpdateThread.BGT
import com... | 44 | Kotlin | 66 | 840 | 2a47d7638ca520a38fc26728bc1498a5bce7c952 | 7,765 | live-plugin | Apache License 2.0 |
src/main/kotlin/com/dkanen/graphmapnav/collections/graphs/AdjacencyList.kt | prufrock | 662,847,778 | false | {"Kotlin": 284337} | package com.dkanen.graphmapnav.collections.graphs
/**
* With an adjacency list the graph stores a list of outgoing edges for each vertex.
*/
class AdjacencyList<T: Any>: Graph<T> {
private val adjacencies: HashMap<Vertex<T>, ArrayList<Edge<T>>> = HashMap()
override val allVertices: ArrayList<Vertex<T>>
... | 0 | Kotlin | 0 | 1 | 55ebc6120b97a9c2c3d86b9d67c4cb97186a30f7 | 2,006 | graphmapnav | MIT License |
src/main/kotlin/net/dilius/untitled/domain/users/UserDetailsService.kt | diliuskh | 233,789,947 | false | {"Kotlin": 13931, "Smarty": 1792, "Dockerfile": 170} | package net.dilius.untitled.domain.users
import kotlinx.coroutines.reactor.mono
import org.springframework.security.core.userdetails.ReactiveUserDetailsService
import org.springframework.security.core.userdetails.ReactiveUserDetailsPasswordService
import org.springframework.security.core.userdetails.AuthenticationUser... | 0 | Kotlin | 0 | 0 | 08e7ad137c9a96feb38178a194effbdd33394f4c | 1,390 | untitledProject | Apache License 2.0 |
app/autodiscovery/src/test/java/com/fsck/k9/autodiscovery/srvrecords/SrvServiceDiscoveryTest.kt | ufarooq | 263,525,654 | true | {"Java": 3704624, "Kotlin": 1015518, "Shell": 3101} | package com.fsck.k9.autodiscovery.srvrecords
import com.fsck.k9.RobolectricTest
import com.fsck.k9.mail.ConnectionSecurity
import com.nhaarman.mockitokotlin2.doReturn
import com.nhaarman.mockitokotlin2.mock
import org.junit.Assert.assertEquals
import org.junit.Assert.assertNull
import org.junit.Test
class SrvServiceD... | 0 | null | 0 | 0 | f414d4788c3a700dd0bd16632d8bc06bac527ea8 | 4,739 | k-9 | Apache License 2.0 |
app/src/main/java/com/example/sunnyweather/ui/place/PlaceAdapter.kt | CsCode9 | 260,090,695 | false | null | package com.example.sunnyweather.ui.place
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.RecyclerView
import com.example.sunnyweather.R
import com.example.sunnyweather.Sun... | 0 | Kotlin | 0 | 0 | d7c3dce0f91d71514975e40a3f702dfb8d27161d | 1,339 | SunnyWeather | Apache License 2.0 |
CaptureImage/app/src/main/java/com/example/captureimage/MainActivity.kt | velmurugan-murugesan | 109,480,598 | false | null | package com.example.captureimage
import android.Manifest
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.graphics.BitmapFactory
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Env... | 8 | null | 657 | 516 | 2c51e3c90a999b361cb5bf289f7b46758bb35b25 | 3,872 | Android-Example | Apache License 2.0 |
IM/app/src/main/java/com/dev/bins/im/ui/MainActivity.kt | devbins | 64,385,596 | false | null | package com.dev.bins.im.ui
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import com.dev.bins.im.R
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
... | 1 | null | 1 | 1 | 78271cfc14b4173248a55f6e09f5005eeba0e4de | 328 | AndroidPractice | Apache License 2.0 |
access-checkout/src/test/java/com/worldpay/access/checkout/validation/result/handler/ExpiryDateValidationResultHandlerTest.kt | Worldpay | 186,591,910 | false | null | package com.worldpay.access.checkout.validation.result.handler
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleOwner
import com.nhaarman.mockitokotlin2.given
import com.nhaarman.mockitokotlin2.mock
import com.nhaarman.mockitokotlin2.verify
import com.nhaarman.mockitokotlin2.verifyNoMoreInteracti... | 0 | Kotlin | 4 | 8 | 5d465cdc1803be9cc08e7fad3d55c6c9d95b920f | 3,010 | access-checkout-android | MIT License |
media-ui/src/test/java/com/google/android/horologist/media/ui/controls/SeekForwardButtonTest.kt | google | 451,563,714 | 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 66 | Kotlin | 45 | 342 | d24a514f92b658f99259004e46524de6b80c2795 | 2,773 | horologist | Apache License 2.0 |
tripleklay/src/main/kotlin/tripleklay/game/trans/FlipTransition.kt | cdietze | 89,875,388 | false | null | package tripleklay.game.trans
import klay.core.Platform
import euklid.f.MathUtil
import tripleklay.game.ScreenStack.Screen
import tripleklay.shaders.RotateYBatch
import tripleklay.util.Interpolator
/**
* Flips the current screen over, revealing the new screen as if it were on the reverse side of the
* current scree... | 0 | Kotlin | 0 | 4 | 72031aa267cd304a0612b31c871e2f5cf73d2c4c | 1,921 | klay | Apache License 2.0 |
src/test/kotlin/year2023/day12/ProblemTest.kt | Ddxcv98 | 573,823,241 | false | {"Kotlin": 154634} | package year2023.day12
import kotlin.test.Test
import kotlin.test.assertEquals
class ProblemTest {
private val problem = Problem()
@Test
fun part1() {
assertEquals(21, problem.part1())
}
@Test
fun part2() {
assertEquals(525152, problem.part2())
}
}
| 0 | Kotlin | 0 | 0 | 455bc8a69527c6c2f20362945b73bdee496ace41 | 297 | advent-of-code | The Unlicense |
src/commonMain/kotlin/net/sergeych/mptools/string_tools.kt | sergeych | 440,850,366 | false | null | package net.sergeych.mptools
fun isSpace(char: Char): Boolean = when(char) {
' ', '\n', '\r', '\t' -> true
else -> false
}
//private val reSpaces = Regex("\\s+")
//
| 0 | Kotlin | 0 | 0 | cfef1839dfaa5df83f7569fca0c65526cb88b752 | 175 | boss-serialization-mp | MIT License |
lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderDocument.kt | lithic-com | 592,386,416 | false | {"Kotlin": 5396405, "Java": 5023, "Shell": 3630, "Dockerfile": 366} | // File generated from our OpenAPI spec by Stainless.
package com.lithic.api.models
import com.fasterxml.jackson.annotation.JsonAnyGetter
import com.fasterxml.jackson.annotation.JsonAnySetter
import com.fasterxml.jackson.annotation.JsonCreator
import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.... | 0 | Kotlin | 0 | 15 | 3d18fe11de738d144a6ffd487ef80f68104ab67d | 29,112 | lithic-java | Apache License 2.0 |
src/main/kotlin/wexplorer/domain/NextPreviousImagePaths.kt | opengl-8080 | 106,059,350 | false | null | package wexplorer.domain
data class NextPreviousImagePaths (
val previousImagePath: String?,
val nextImagePath: String?
) | 0 | Kotlin | 0 | 0 | fec3172e434c5616df752f479d28e4c21a4259d4 | 130 | wexplorer | MIT License |
app/src/main/java/com/example/tugas2/RvAdapter.kt | Alphocado | 681,420,348 | false | null | package com.example.tugas2
import android.annotation.SuppressLint
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.provider.ContactsContract.Data
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.AdapterView... | 0 | Kotlin | 0 | 0 | a919f5881c5eba949e869869f366062af1522e78 | 3,026 | SchoolWork_1 | MIT License |
lambda/src/main/typings/mq.module_aws-sdk.kt | kartoffelsup | 252,152,703 | false | null | @file:Suppress("INTERFACE_WITH_SUPERCLASS", "OVERRIDING_FINAL_MEMBER", "RETURN_TYPE_MISMATCH_ON_OVERRIDE", "CONFLICTING_OVERLOADS", "EXTERNAL_DELEGATION")
import kotlin.js.*
import kotlin.js.Json
import org.khronos.webgl.*
import org.w3c.dom.*
import org.w3c.dom.events.*
import org.w3c.dom.parsing.*
import org.w3c.dom... | 0 | Kotlin | 0 | 0 | 6c20e6277ea66e531b4b46017faa10270b25b8bc | 37,798 | kt-js-lambda-cdk-test | Apache License 2.0 |
android/src/main/java/com/reactnativehaptics/HapticsModule.kt | rn-packages | 240,893,922 | false | {"YAML": 3, "Ruby": 2, "JSON with Comments": 1, "JSON": 6, "JavaScript": 3, "Markdown": 2, "Text": 1, "Ignore List": 2, "Git Attributes": 1, "EditorConfig": 1, "TSX": 5, "INI": 3, "Gradle": 4, "Shell": 2, "Batchfile": 2, "Java Properties": 2, "XML": 9, "Kotlin": 3, "Java": 2, "Swift": 3, "C": 1, "OpenStep Property List... | package com.reactnativehaptics
import android.os.Build
import android.view.HapticFeedbackConstants
import com.facebook.react.bridge.LifecycleEventListener
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.bridge.ReactContextBaseJavaModule
import com.facebook.react.bridge.ReactMethod
im... | 31 | Kotlin | 1 | 4 | f0a0c08175e11eb4bf665795caee62fb048b5ea8 | 4,528 | react-native-haptics | MIT License |
mobile/src/main/java/com/aptopayments/mobile/data/card/ProvisioningTokenServiceProvider.kt | ShiftFinancial | 130,093,227 | false | {"Kotlin": 696648} | package com.aptopayments.mobile.data.card
import java.util.Locale
enum class ProvisioningTokenServiceProvider {
VISA, MASTERCARD, AMEX;
companion object {
fun fromString(str: String) = valueOf(str.uppercase(Locale.US))
}
}
| 0 | Kotlin | 0 | 5 | f79b3c532ae2dfec8e571b315401ef03d8e507f9 | 246 | shift-sdk-android | MIT License |
src/main/java/kim/bifrost/rain/arathoth/api/handler/AttributeHandler.kt | ColdRain-Moro | 470,941,752 | false | null | package kim.bifrost.rain.arathoth.api.handler
/**
* kim.bifrost.rain.arathoth.api.handler.AttributeHandler
* Arathoth
*
* @author 寒雨
* @since 2022/3/18 18:53
**/
interface AttributeHandler {
/**
* 注册
*/
fun register()
/**
* Unregister
*/
fun unregister()
} | 0 | Kotlin | 0 | 9 | b8542f9af9dd6d78ccf172b56a1fca05e73e3850 | 300 | ArathothIII | Creative Commons Zero v1.0 Universal |
app/src/main/java/com/dinhlam/sharebox/data/model/SortType.kt | dinhlamvn | 532,200,939 | false | null | package com.dinhlam.sharebox.data.model
enum class SortType {
NONE,
NEWEST,
OLDEST
} | 0 | Kotlin | 0 | 0 | 420c10e28aa68fe59f2615e2a59033e31e34d9be | 97 | sharebox | MIT License |
app/src/main/java/com/radixdlt/android/apps/pos/ui/payment/dialog/PaymentCancelDialogFragment.kt | radixdlt | 188,408,019 | false | null | package com.radixdlt.android.apps.pos.ui.payment.dialog
import android.app.Activity
import android.app.Dialog
import android.content.Context
import android.os.Bundle
import androidx.appcompat.app.AlertDialog
import androidx.appcompat.app.AppCompatDialogFragment
import com.radixdlt.android.apps.pos.R
class PaymentCanc... | 0 | Kotlin | 2 | 2 | c26fbd758cb4a9ec252cf607b5dd1512313db181 | 1,755 | radixdlt-pos-android | MIT License |
02_ejercicios/01_comparar_variables/src/main.kt | DavidNunoVelez | 92,430,090 | true | {"Kotlin": 5454} | import java.util.*
/**
* Created by 7fbd06 on 25/05/2017.
*/
fun main(args: Array<String>) {
fun int(min: Int, max: Int): Int = min + Random().nextInt((max - min) + 1)
val n1=int(0,100)
val n2=int(0,100)
val n3=int(0,100)
if(n1>n2 && n2>n3){
println(n1)
println(n2)
p... | 0 | Kotlin | 0 | 0 | 4f378bd3217a34cfc3b294241023a41f261405cb | 787 | kotlin | Apache License 2.0 |
java-to-kotlin/src/main/kotlin/lec03/Lec03Main4.kt | JinseongHwang | 629,867,831 | false | {"Kotlin": 29011, "Java": 14569} | package lec03
fun main() {
val str = """
ABC
123
4567890
""".trimIndent()
println(str.javaClass)
println(str.length)
println(str.replace("\n", "#"))
} | 0 | Kotlin | 0 | 2 | 445aec00ceb19bca3cc96494edd849bfebcc91b2 | 195 | kotlin-playground | MIT License |
src/main/kotlin/com/oburtaksi/positionsimulator/infrastructure/generator/RandomJourneyIDGenerator.kt | hasanozgan | 197,203,934 | false | null | package com.oburtaksi.positionsimulator.infrastructure.generator
import com.oburtaksi.positionsimulator.domain.JourneyID
import com.oburtaksi.positionsimulator.domain.JourneyIDGenerator
import java.util.*
class RandomJourneyIDGenerator : JourneyIDGenerator {
override fun generate(): JourneyID {
return Jou... | 0 | Kotlin | 0 | 0 | 4cab3ad185344bbe2ed35d9d5130de9938f5d035 | 386 | obur-taksi-position-simulator | MIT License |
simple-icons/src/commonMain/kotlin/compose/icons/simpleicons/Slideshare.kt | DevSrSouza | 311,134,756 | false | null | package compose.icons.simpleicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Butt
import androidx.compose.ui.graphics.StrokeJoin.Miter
import androidx.compose.ui.graphics... | 17 | null | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 4,381 | compose-icons | MIT License |
CallofProjectAndroid/app/src/main/java/callofproject/dev/androidapp/domain/use_cases/ProjectUseCase.kt | CallOfProject | 751,531,328 | false | {"Kotlin": 429418, "Java": 5965} | package callofproject.dev.androidapp.domain.use_cases
import android.util.Log
import callofproject.dev.androidapp.data.remote.ICallOfProjectService
import callofproject.dev.androidapp.domain.dto.MultipleResponseMessagePageable
import callofproject.dev.androidapp.domain.dto.NotificationDTO
import callofproject.dev.andr... | 0 | Kotlin | 1 | 1 | 9cc12cd78cc212d474cd32b7ea3a89a5b8d5905b | 5,888 | Call-Of-Project-Android | MIT License |
data/src/test/kotlin/com/hernandazevedo/moviedb/data/repository/MovieRepositoryImplTest.kt | hernandazevedo | 156,968,020 | false | null | package com.hernandazevedo.moviedb.data.repository
import com.hernandazevedo.moviedb.data.api.remote.RemoteMovie
import com.hernandazevedo.moviedb.data.api.remote.RemoteMovieSearch
import com.hernandazevedo.moviedb.data.datasource.MovieDataSource
import com.hernandazevedo.moviedb.data.mapper.MovieMapper
import com.nha... | 1 | Kotlin | 5 | 5 | 42ebf06c7a113c35cb009bab1ca8cb0719dddea1 | 1,714 | moviedb | MIT License |
oapp/src/main/java/com/example/oapp/adapter/NavTabAdapter.kt | Asmewill | 415,843,980 | false | {"Kotlin": 1283675, "Java": 382535} | package com.example.oapp.adapter
import android.content.Context
import androidx.core.content.ContextCompat
import com.example.oapp.R
import com.example.oapp.bean.NavBean
import q.rorbin.verticaltablayout.adapter.TabAdapter
import q.rorbin.verticaltablayout.widget.ITabView
/**
* Created by jsxiaoshui on 2021/7/6
*/
... | 0 | Kotlin | 0 | 0 | 776e9a15af0d39a332b43b94bfddd4ac7b687fc4 | 1,101 | JetpackMvvm | Apache License 2.0 |
data/src/main/java/com/example/data/cache/db/AudioBooksDao.kt | yusuf0405 | 484,801,816 | false | null | package com.example.data.cache.db
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.example.data.cache.models.AudioBookCache
import com.example.data.cache.models.BookThatReadCache
import kotlinx.coroutines.flow.Flow
@Dao
interface AudioB... | 1 | null | 1 | 3 | 067abb34f0348b0dda1f05470a32ecbed59cfb19 | 1,119 | BookLoverFinalApp | Apache License 1.1 |
app/src/main/java/com/xeniac/fifaultimateteamcoin_dsfut_sell_fut/core/di/AppModule.kt | WilliamGates99 | 543,831,202 | false | {"Kotlin": 848556} | package com.xeniac.fifaultimateteamcoin_dsfut_sell_fut.core.di
import android.app.NotificationManager
import android.content.Context
import android.net.ConnectivityManager
import android.os.Build
import android.os.Vibrator
import android.os.VibratorManager
import androidx.annotation.RequiresApi
import androidx.datasto... | 0 | Kotlin | 0 | 0 | ac11f271f2bc113d473c9ef65c1b638950c58f86 | 6,234 | FUTSale | Apache License 2.0 |
app/src/main/java/com/tmdb/movie/paging/DiscoveryMoviePagingSource.kt | sqsong66 | 703,818,964 | false | {"Kotlin": 664258} | package com.tmdb.movie.paging
import androidx.paging.PagingSource
import androidx.paging.PagingState
import com.tmdb.movie.data.MovieItem
import com.tmdb.movie.network.ApiService
import javax.inject.Inject
class DiscoveryMoviePagingSource @Inject constructor(
private val apiService: ApiService,
private val di... | 0 | Kotlin | 1 | 1 | 15e0523e1683378fc06abc01d4d971ae8fa4327b | 1,192 | TMDB-Movie | Apache License 2.0 |
src/main/kotlin/com/example/database/MigrationHandler.kt | JensvandeWiel | 763,007,580 | false | {"Kotlin": 13081, "CSS": 1767, "TypeScript": 1312, "JavaScript": 436, "HTML": 366} | package com.example.database
import com.example.database.tables.MigrationsTable
import org.jetbrains.exposed.sql.SchemaUtils
import org.jetbrains.exposed.sql.SqlExpressionBuilder.eq
import org.jetbrains.exposed.sql.SortOrder
import org.jetbrains.exposed.sql.insert
import org.jetbrains.exposed.sql.select
import org.jet... | 0 | Kotlin | 1 | 2 | 35bf488603f3b25743665a0b937874e3d6f01a6c | 2,386 | ktor-react-template | MIT License |
app/src/main/java/com/mospolytech/mospolyhelper/di/account/DeadlinesModule.kt | mospolyhelper | 259,442,737 | false | {"Kotlin": 839539, "Batchfile": 69} | package com.mospolytech.mospolyhelper.di.account
import com.mospolytech.mospolyhelper.data.account.deadlines.api.DeadlinesHerokuClient
import com.mospolytech.mospolyhelper.data.account.deadlines.remote.DeadlinesRemoteDataSource
import com.mospolytech.mospolyhelper.data.account.deadlines.repository.DeadlinesRepositoryI... | 2 | Kotlin | 2 | 8 | 4f37c3617cf7523f22f03a22d7de2d7ecc74a098 | 1,020 | mospolyhelper-android | MIT License |
src/jsMain/kotlin/org/olafneumann/regex/generator/ui/parts/P3RecognizerCombinerOptions.kt | noxone | 239,624,807 | false | {"Kotlin": 247250, "HTML": 22083, "CSS": 5034, "C": 2817, "Dockerfile": 1749, "JavaScript": 210} | package org.olafneumann.regex.generator.ui.parts
import org.olafneumann.regex.generator.regex.RecognizerMatchCombinerOptions
import org.olafneumann.regex.generator.ui.HtmlView
import org.olafneumann.regex.generator.ui.MVCContract
import org.olafneumann.regex.generator.ui.model.DisplayModel
import org.olafneumann.regex... | 15 | Kotlin | 66 | 397 | 1e684746a51d7e4398e89f89986059b0edf5ef07 | 1,913 | regex-generator | MIT License |
MvpDemos/baselib/src/main/java/com/wlm/baselib/utils/ToastUtils.kt | wangliming123 | 189,384,638 | false | null | package com.wlm.baselib.utils
import android.content.Context
import android.widget.Toast
object ToastUtils {
fun showShort(context: Context, any: Any) {
Toast.makeText(context, "$any", Toast.LENGTH_SHORT).show()
}
fun showLong(context: Context, any: Any) {
Toast.makeText(context, "$any", ... | 0 | Kotlin | 0 | 0 | 08cc0303d1d9badbbe877f85278f409326511bef | 353 | kotlinDemos | Apache License 2.0 |
Core/src/main/kotlin/collections/annotatedtargets/FlattenedDataMethod.kt | Froze-N-Milk | 723,515,808 | false | {"Kotlin": 102332, "Java": 43672} | package collections.annotatedtargets
import java.lang.reflect.Method
//class FlattenedDataMethod(parentInstance: Any, method: Method, parentGroup: String) : AnnotatedDataMethod(parentInstance, method, parentGroup) {
// override val group: String by lazy {
// parentGroup
// }
//} | 0 | Kotlin | 2 | 1 | 2f3cfc190869e40629c43c098dc969e0260fe146 | 294 | Dairy | BSD 3-Clause Clear License |
Chapter10/src/main/kotlin/chapter10/ExplicitAsyncExample.kt | PacktPublishing | 137,031,395 | false | null | package chapter10
import kotlinx.coroutines.experimental.async
import kotlinx.coroutines.experimental.delay
fun main(vararg args: String) {
println("Name: ${getName()}")
}
fun getName() = async {
delay(100)
"Ruslan"
} | 1 | null | 58 | 89 | 5de3a557ee91eb0c5eb519ed4ea8ec5015106e5e | 233 | Hands-on-Design-Patterns-with-Kotlin | MIT License |
parser/src/test/kotlin/com/github/prologdb/parser/lexer/LexerIteratorTest.kt | prologdb | 107,794,018 | false | null | package com.github.prologdb.parser.lexer
import com.github.prologdb.parser.source.SourceLocation
import com.github.prologdb.parser.source.SourceUnit
import com.github.prologdb.runtime.term.PrologNumber
import io.kotest.core.spec.style.FreeSpec
import io.kotest.matchers.shouldBe
class LexerIteratorTest : FreeSpec() {i... | 18 | Kotlin | 1 | 3 | d8c0f7084d4a341ab6c56a08786754a7a5c55665 | 21,135 | runtime | MIT License |
compose/foundation/foundation/integration-tests/foundation-demos/src/main/java/androidx/compose/foundation/demos/text/EllipsizeWithLetterSpacing.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 | 937 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 4,077 | androidx | Apache License 2.0 |
creator/src/test/kotlin/io/fabric8/launcher/creator/core/template/transformer-id-test.kt | fabric8-launcher | 111,528,311 | false | null | package io.fabric8.launcher.creator.core.template
import io.fabric8.launcher.creator.core.template.transformers.id
import org.assertj.core.api.Assertions
import org.junit.jupiter.api.Test
import java.io.File
class TransformerIdTest {
val testContents = """The first line.
The second line.
The third line.
""";
... | 105 | HTML | 56 | 18 | 4dbc9e04bddaf31e045701a8d89e518f3425aaff | 785 | launcher-application | Apache License 2.0 |
app/src/main/java/com/example/testmovieapp/ui/login/LoginViewModel.kt | abhradeepghosh | 264,931,347 | false | null | package com.example.testmovieapp.ui.login
import android.view.View
import android.widget.EditText
import androidx.annotation.VisibleForTesting
import androidx.databinding.BindingAdapter
import androidx.lifecycle.MutableLiveData
import com.example.testmovieapp.di.ui.BaseViewModel
import com.example.testmovieapp.ui.logi... | 1 | null | 1 | 1 | 1e2343bcd44c8df926534ef6c6ed7b8464d32c52 | 2,216 | MovieApp-Login-List-Details-Android-Kotlin | MIT License |
SqliteToRoom/app/src/main/java/com/velmurugan/sqlitetoroom/DatabaseHelper.kt | velmurugan-murugesan | 109,480,598 | false | {"Kotlin": 496454, "Java": 409251, "Starlark": 1641} | package com.velmurugan.sqlitetoroom
import android.content.ContentValues
import android.content.Context
import android.database.sqlite.SQLiteDatabase
import android.database.sqlite.SQLiteOpenHelper
import java.util.*
class DatabaseHelper(context: Context?) :
SQLiteOpenHelper(context, DATABASE_NAME, null, DATABASE... | 8 | Kotlin | 657 | 516 | 2c51e3c90a999b361cb5bf289f7b46758bb35b25 | 4,273 | Android-Example | Apache License 2.0 |
pluginapp/src/main/java/com/ls/pluginapp/BasePluginActivity.kt | Kyoto36 | 497,517,372 | false | {"Java": 27638, "Kotlin": 5538} | package com.ls.pluginapp
import android.content.res.Resources
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
/**
* 插件的全部Activity都继承于这个类
*/
abstract class BasePluginActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstance... | 1 | null | 1 | 1 | 447523dda8f84a7a58a23520c2b8201c9ab4fa7c | 905 | android_plugin_demo | Apache License 2.0 |
annotation/annotation/src/commonMain/kotlin/androidx/annotation/StringDef.kt | androidx | 256,589,781 | false | null | /*
* Copyright (C) 2014 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... | 29 | null | 1011 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 1,816 | androidx | Apache License 2.0 |
app/src/main/java/com/example/reunion/view_model/LoginViewModel.kt | FlynnChow | 232,827,156 | false | null | package com.example.reunion.view_model
import android.util.Log
import android.view.View
import androidx.lifecycle.MutableLiveData
import com.example.reunion.base.BaseViewModel
import com.example.reunion.repostory.local_resource.UserHelper
import com.example.reunion.repostory.remote_resource.LoginRemoteModel
import com... | 1 | Kotlin | 1 | 1 | 5449b3659bfd51e495e50e6229b924b4bfdac85f | 3,760 | Reunion | Apache License 2.0 |
nodecore-spv/src/main/java/org/veriblock/spv/model/OutputFactory.kt | VeriBlock | 179,742,374 | false | null | // VeriBlock Blockchain Project
// Copyright 2017-2018 VeriBlock, Inc
// Copyright 2018-2021 <NAME>
// All rights reserved.
// https://www.veriblock.org
// Distributed under the MIT software license, see the accompanying
// file LICENSE or http://www.opensource.org/licenses/mit-license.php.
package org.veriblock.spv.mo... | 72 | null | 16 | 12 | ef06c51c1410ba59da13403b65e367b21dcfed21 | 742 | nodecore | MIT License |
java/com/ifam/amigopetfixo/activity/Tip.kt | CFSC3 | 563,096,652 | false | {"Java": 254099, "Kotlin": 6395} | package com.ifam.amigopetfixo.activity
import androidx.annotation.DrawableRes
data class Tip(
val title: String,
@DrawableRes val logo: Int,
/*@DrawableRes val background: Int,*/
val color: Int
) | 1 | null | 1 | 1 | c8aafc961f8ce74936c0fb5d8104bd3d23e119ee | 229 | Amigo-Pet | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.