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/niusounds/matomeviewer/data/ArticleDao.kt | niusounds | 26,619,963 | false | null | package com.niusounds.matomeviewer.data
import android.arch.lifecycle.LiveData
import android.arch.persistence.room.Dao
import android.arch.persistence.room.Insert
import android.arch.persistence.room.OnConflictStrategy
import android.arch.persistence.room.Query
@Dao
interface ArticleDao {
/**
* 記事リストを取得する。... | 0 | Kotlin | 0 | 0 | c2ff8bf2d71c8f0e70eaee8185449663a8011496 | 699 | 2chmatome | MIT License |
src/test/kotlin/de/alxgrk/CurrentBranchTest.kt | alxgrk | 288,132,567 | true | {"Kotlin": 92763} | /*
* The MIT License
* Copyright © 2019 <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, modify, me... | 0 | Kotlin | 0 | 0 | a1373debf072505e8d9d5cf239c085eee41626ab | 4,227 | semver-git-plugin | MIT License |
app/src/main/java/com/gmail/bogumilmecel2/fitnessappv2/feature_diary/domain/use_cases/new_recipe/CalculateRecipeNutritionValues.kt | BogumilMecel | 499,018,800 | false | {"Kotlin": 808610} | package com.gmail.bogumilmecel2.fitnessappv2.feature_diary.domain.use_cases.new_recipe
import com.gmail.bogumilmecel2.fitnessappv2.common.domain.model.NutritionValues
import com.gmail.bogumilmecel2.fitnessappv2.feature_diary.domain.model.recipe.Ingredient
class CalculateRecipeNutritionValues {
operator fun invoke... | 0 | Kotlin | 0 | 0 | f1036ca805dec913c5ca444d8efab87686442f39 | 920 | FitnessAppV2 | Apache License 2.0 |
src/main/kotlin/live/shirabox/notificationservice/channel/Channel.kt | ShiraBox | 704,576,743 | false | {"Kotlin": 13705} | package live.shirabox.notificationservice.channel
import live.shirabox.notificationservice.AppNotification
import org.slf4j.Logger
import org.slf4j.LoggerFactory
abstract class Channel(
name: String
) : Observable {
val logger: Logger = LoggerFactory.getLogger(name)
private val _observers = mutableListOf... | 0 | Kotlin | 0 | 0 | 1de7d139e374803c215e33d48b14dd551000db1a | 717 | notification-service | Apache License 2.0 |
modules/di/sources-jvm/configuration/RaptorDIGeneratingComponent.kt | fluidsonic | 246,018,343 | false | null | package io.fluidsonic.raptor
// TODO Make public if it's actually useful and after API was revisited.
@RaptorInternalApi
public interface RaptorDIGeneratingComponent : RaptorComponent {
public companion object
}
@RaptorDsl
public val RaptorComponentSet<RaptorDIGeneratingComponent>.di: RaptorComponentSet<RaptorDIC... | 0 | Kotlin | 1 | 3 | 47239ea4c2acb76e14b2125190ee76f253b60e4f | 809 | raptor | Apache License 2.0 |
persistance/src/main/java/app/coinninja/cn/persistance/model/UserIdentity.kt | coinninjadev | 175,276,289 | false | null | package app.coinninja.cn.persistance.model
import androidx.room.*
import app.coinninja.cn.persistance.converter.IdentityTypeConverter
import app.coinninja.cn.persistance.model.IdentityType.UNKNOWN
import app.dropbit.annotations.Mockable
@Mockable
@Entity(
tableName = "USER_IDENTITY",
indices = [
... | 2 | Kotlin | 0 | 6 | d67d7c0b9cad27db94470231073c5d6cdda83cd0 | 1,101 | dropbit-android | MIT License |
app/src/main/java/by/vfdev/angle/Repository/PilotsRepository.kt | VasiliFralou | 420,441,536 | false | null | package by.vfdev.angle.Repository
import by.vfdev.angle.LocalModel.Pilots.PilotsLocalModel
import by.vfdev.angle.RemoteModel.Pilots.Pilots
import by.vfdev.angle.RemoteModel.Pilots.PilotsRemoteModel
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import javax... | 0 | Kotlin | 0 | 1 | a3f8b4802d7b291464a2e7c87fa611aa71150207 | 1,248 | Angle | Apache License 2.0 |
app/src/main/java/xyz/teamgravity/todoapi/activity/MainActivity.kt | raheemadamboev | 361,242,424 | false | null | package xyz.teamgravity.todoapi.activity
import android.os.Bundle
import androidx.activity.compose.setContent
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.f... | 0 | Kotlin | 0 | 0 | 213e84b5eb4e5906cec11b420f1752d1306d4216 | 1,734 | jetpack-compose-todo-api-app | Apache License 2.0 |
app/src/main/java/com/nabarunsarkar/safe19india/di/ViewModelModule.kt | nabaruns | 260,473,051 | false | {"Kotlin": 77486} | package com.nabarunsarkar.safe19india.di
import com.nabarunsarkar.safe19india.ui.main.*
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.InternalCoroutinesApi
import org.koin.android.viewmodel.dsl.viewModel
import org.koin.dsl.module
@ExperimentalCoroutinesApi
@InternalCoroutinesApi
val v... | 1 | Kotlin | 0 | 0 | 19dcc26a17a404b37f53be6542249cbd23e2b05b | 956 | Covid19-india-android-app | MIT License |
bpdm-gate/src/main/kotlin/org/eclipse/tractusx/bpdm/gate/config/PoolClientConfig.kt | eclipse-tractusx | 526,621,398 | false | {"Kotlin": 1748741, "Smarty": 133187, "Dockerfile": 3902, "Java": 2019, "Shell": 1221} | /*******************************************************************************
* Copyright (c) 2021,2024 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are ma... | 24 | Kotlin | 15 | 6 | ab49bc7941bcc1296343c6da5511fb4439d2ac41 | 2,406 | bpdm | Apache License 2.0 |
app/src/main/java/ch/bretscherhochstrasser/cleanme/overlay/ParticleOverlayView.kt | BretscherHochstrasser | 257,714,322 | false | null | package ch.bretscherhochstrasser.cleanme.overlay
import android.content.Context
import android.graphics.Canvas
import android.graphics.drawable.Drawable
import android.util.TypedValue
import android.view.View
import android.view.WindowManager
import androidx.appcompat.content.res.AppCompatResources
import toothpick.In... | 0 | Kotlin | 0 | 1 | 0b532ced4b9a6118fdbf5d4096b38a2854257e4a | 3,472 | CleanMe | MIT License |
app/src/main/java/com/duckduckgo/app/onboarding/di/OnboardingModule.kt | hojat72elect | 822,396,044 | false | {"Kotlin": 11626231, "HTML": 65873, "Ruby": 16984, "C++": 10312, "JavaScript": 5520, "CMake": 1992, "C": 1076, "Shell": 784} |
package com.duckduckgo.app.onboarding.di
import com.duckduckgo.app.browser.defaultbrowsing.DefaultBrowserDetector
import com.duckduckgo.app.global.DefaultRoleBrowserDialog
import com.duckduckgo.app.global.RealDefaultRoleBrowserDialog
import com.duckduckgo.app.global.install.AppInstallStore
import com.duckduckgo.app.... | 0 | Kotlin | 0 | 0 | b89591136b60933d6a03fac43a38ee183116b7f8 | 1,596 | DuckDuckGo | Apache License 2.0 |
engine/src/commonMain/kotlin/mogot/physics/d2/shapes/CircleShape2D.kt | caffeine-mgn | 223,796,620 | false | null | package mogot.physics.d2.shapes
import mogot.Engine
import mogot.math.Vector2f
import mogot.math.Vector2fm
import mogot.physics.box2d.collision.shapes.CircleShape
import mogot.physics.box2d.collision.shapes.Shape
class CircleShape2D(engine: Engine) : Shape2D(engine) {
var radius = 50f
set(value) {
... | 6 | Kotlin | 0 | 4 | e673acfcb20e2d62d8e68c43d395731bd9d9d882 | 1,262 | mogot | Apache License 2.0 |
src/Program.kt | Emurus | 117,912,181 | false | null | import com.google.common.primitives.UnsignedLong
import org.stellar.sdk.KeyPair
// Number at which the program will report the number of tries
val reportNumber = 100000L
fun main(args: Array<String>) {
//Stores the vanity string
var vanity = ""
// Validate input
while(vanity == ""){
println(... | 0 | Kotlin | 0 | 0 | 4cfd81925023515a7069c949077f06feee6da0eb | 1,374 | stellar-vanity-account | MIT License |
src/Program.kt | Emurus | 117,912,181 | false | null | import com.google.common.primitives.UnsignedLong
import org.stellar.sdk.KeyPair
// Number at which the program will report the number of tries
val reportNumber = 100000L
fun main(args: Array<String>) {
//Stores the vanity string
var vanity = ""
// Validate input
while(vanity == ""){
println(... | 0 | Kotlin | 0 | 0 | 4cfd81925023515a7069c949077f06feee6da0eb | 1,374 | stellar-vanity-account | MIT License |
core/src/main/kotlin/dev/forcecodes/gitprofile/core/EntityMapper.kt | forceporquillo | 484,089,537 | false | {"Kotlin": 263716} | package dev.forcecodes.gitprofile.core
interface EntityMapper<in T, in D, R> {
operator fun invoke(data: T, map: D): R
} | 0 | Kotlin | 0 | 0 | 0f7efc84f35ed04b1f4c8f88176098963a8375e5 | 125 | github-profile-android | Apache License 2.0 |
MyPayTemplate/app/src/main/java/br/uea/transirie/mypay/mypaytemplate2/repository/room/PagamentoRepository.kt | gldnjmat17 | 438,400,051 | false | {"Kotlin": 501915} | package br.uea.transirie.mypay.mypaytemplate2.repository.room
import br.uea.transirie.mypay.mypaytemplate2.model.Pagamento
import br.uea.transirie.mypay.mypaytemplate2.repository.PagamentoDataSource
import br.uea.transirie.mypay.mypaytemplate2.repository.room.AppDatabase
class PagamentoRepository(database: AppDatabas... | 0 | Kotlin | 0 | 0 | bef2b21101aee9c8f985498532385eee18cb0e05 | 1,038 | MyPets---Aplicativo | MIT License |
src/main/kotlin/no/nav/pensjon/simulator/tpregisteret/TpregisteretClient.kt | navikt | 753,551,695 | false | {"Kotlin": 1452773, "Java": 2774, "Dockerfile": 144} | package no.nav.pensjon.simulator.tpregisteret
import mu.KotlinLogging
import no.nav.pensjon.simulator.common.client.ExternalServiceClient
import no.nav.pensjon.simulator.tech.security.egress.EgressAccess
import no.nav.pensjon.simulator.tech.security.egress.config.EgressService
import no.nav.pensjon.simulator.tech.trac... | 1 | Kotlin | 0 | 0 | 77b8c4e0a80e5bf44cb44468466362956fe82da8 | 3,039 | pensjonssimulator | MIT License |
app/src/main/java/az/siftoshka/habitube/domain/util/MediaType.kt | siftoshka | 435,184,331 | false | {"Kotlin": 448266} | package az.siftoshka.habitube.domain.util
/**
* Enum class for general use-cases.
*/
enum class MediaType {
Movie, TvShow
} | 0 | Kotlin | 1 | 4 | 8468948c67d5875ac9c58a50b93903aa100fcdca | 130 | habitube-v2 | MIT License |
app/src/main/java/com/example/androiddevchallenge/MainViewModel.kt | gen0083 | 342,216,150 | false | null | package com.example.androiddevchallenge
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import com.example.androiddevchallenge.data.Pets
import com.example.androiddevchallenge.data.generateRandomPets
c... | 0 | Kotlin | 0 | 0 | 48ac9057dae697b3dbdeee865fa9fce323c04891 | 746 | jetpack-compose-week1 | Apache License 2.0 |
ultimate/testData/spring/core/generate/beanDependenciesByXml/secondaryConstructorAddParam.kt | JakeWharton | 99,388,807 | false | null | // ACTION_CLASS: org.jetbrains.kotlin.idea.spring.generate.GenerateKotlinSpringBeanXmlDependencyAction$Constructor
// CONFIG_FILE: secondaryConstructorAddParam-config.xml
// CHOOSE_BEAN: bazBean
package a
open class FooBean(n: Int) {
constructor(barBean: BarBean): this(1)<caret>
}
open class BarBean
open class B... | 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 326 | kotlin | Apache License 2.0 |
javalin/src/main/java/io/javalin/core/LoomUtil.kt | tipsy | 87,012,358 | false | null | package io.javalin.core
import java.util.concurrent.ExecutorService
import java.util.concurrent.Executors
object LoomUtil {
@JvmField
var useLoomThreadPool = true
val loomAvailable = System.getProperty("java.version").contains("loom", ignoreCase = true) || try {
Thread::class.java.getDeclaredMet... | 29 | Kotlin | 464 | 5,457 | a6ceea8c2b65dd6ec4ae87120fae9b8effff7fb7 | 774 | javalin | Apache License 2.0 |
src/main/kotlin/jmantello/secretrecipeapi/config/security/JwtAuthenticationFilter.kt | jm-multiverse | 642,580,018 | false | {"Kotlin": 115110, "JavaScript": 5216, "Dockerfile": 375} | package jmantello.secretrecipeapi.config.security
import com.fasterxml.jackson.databind.ObjectMapper
import jakarta.servlet.FilterChain
import jakarta.servlet.http.HttpServletRequest
import jakarta.servlet.http.HttpServletResponse
import jmantello.secretrecipeapi.config.security.PublicEndpoints.isPublic
import jmantel... | 2 | Kotlin | 0 | 0 | e3777b4f5acaed45f9e163200dce9412e33c5e98 | 3,339 | secret-recipe | curl License |
extension-core/src/commonMain/kotlin/bruhcollective/itaysonlab/ksteam/models/persona/AvatarHash.kt | iTaysonLab | 585,761,817 | false | {"Kotlin": 431019} | package bruhcollective.itaysonlab.ksteam.models.persona
import bruhcollective.itaysonlab.ksteam.EnvironmentConstants
import kotlin.jvm.JvmInline
@JvmInline
value class AvatarHash internal constructor(private val hash: String) {
val hasAvatar get() = hash.isNotEmpty()
val small get() = "${base}.jpg"
val m... | 1 | Kotlin | 1 | 31 | e385e0f582e895c2e719d43a48543e80bce542fc | 476 | kSteam | MIT License |
src/main/kotlin/be/arby/taffy/tree/cache/Cache.kt | adjabaev | 839,569,114 | false | {"Kotlin": 638630, "HTML": 558738, "JavaScript": 9416, "CSS": 2507, "Shell": 866} | package be.arby.taffy.tree.cache
import be.arby.taffy.geom.Size
import be.arby.taffy.lang.Default
import be.arby.taffy.lang.Option
import be.arby.taffy.style.dimension.AvailableSpace
import be.arby.taffy.tree.layout.LayoutOutput
import be.arby.taffy.tree.layout.RunMode
import be.arby.taffy.util.toInt
data class Cache... | 0 | Kotlin | 0 | 0 | 464b84e9bc323a43d349dc2b72c72319df359a87 | 9,028 | TaffyKT | MIT License |
src/main/kotlin/pistonlang/compiler/util/Lists.kt | PistonLang | 594,852,711 | false | null | package pistonlang.compiler.util
@JvmInline
value class NonEmptyList<out T> internal constructor(private val nested: List<T>) : Iterable<T> {
override fun iterator(): Iterator<T> = nested.iterator()
operator fun get(index: Int): T = nested[index]
}
fun <T> List<T>.assertNonEmpty(): NonEmptyList<T> =
if (... | 0 | Kotlin | 0 | 0 | f0d5f7575e5dcc2f1f71317ba1d0325b77e45b3f | 2,501 | compiler | MIT License |
ontrack-extension-github/src/main/java/net/nemerosa/ontrack/extension/github/client/OntrackGitHubClient.kt | skiant | 251,237,977 | true | {"Git Config": 1, "Gradle Kotlin DSL": 49, "Ignore List": 22, "Java Properties": 3, "Shell": 10, "Text": 3, "Batchfile": 2, "Groovy": 225, "Markdown": 15, "Kotlin": 861, "Java": 1140, "JavaScript": 100, "HTML": 200, "PlantUML": 17, "AsciiDoc": 154, "XML": 8, "YAML": 23, "INI": 4, "Dockerfile": 7, "JSON": 12, "JSON with... | package net.nemerosa.ontrack.extension.github.client
import net.nemerosa.ontrack.extension.github.model.GitHubIssue
import net.nemerosa.ontrack.extension.github.model.GitHubUser
/**
* Client used to connect to a GitHub engine from Ontrack.
*/
interface OntrackGitHubClient {
/**
* Gets an issue from a repos... | 0 | Kotlin | 0 | 0 | 25be3a94fd8bb46d182964b3cf4de973feb094ff | 1,054 | ontrack | MIT License |
skiko/src/tvosMain/kotlin/org/jetbrains/skiko/Actuals.tvos.kt | JetBrains | 282,864,178 | false | null | package org.jetbrains.skiko
import platform.UIKit.*
// tvOS doesn't have support for clipboard
internal actual fun ClipboardManager_setText(text: String) {
}
internal actual fun ClipboardManager_getText(): String? {
return null
}
internal actual fun ClipboardManager_hasText(): Boolean = false
internal actual f... | 23 | null | 118 | 1,821 | bbfaf62256fcf0255ac2b5846223f27c43dbfb00 | 392 | skiko | Apache License 2.0 |
android/app/src/main/java/uk/co/cerihughes/mgm/android/repository/remote/RemoteDataSourceImpl.kt | ceri-rantmedia | 178,215,911 | false | {"XML": 55, "Text": 1, "Ignore List": 3, "Markdown": 2, "Shell": 6, "Gradle": 3, "Java Properties": 2, "Batchfile": 1, "Proguard": 1, "Kotlin": 33, "JSON": 15, "Maven POM": 1, "Java": 42, "Java Server Pages": 1, "OpenStep Property List": 3, "Swift": 44, "Objective-C": 6, "C": 3} | package uk.co.cerihughes.mgm.android.repository.remote
import okhttp3.ResponseBody
import retrofit2.Call
import retrofit2.Callback
import retrofit2.Response
import retrofit2.Retrofit
class RemoteDataSourceImpl: RemoteDataSource {
override fun getRemoteData(callback: RemoteDataSource.GetRemoteDataCallback) {
... | 1 | null | 1 | 1 | 19645109eb9dd6682edb574b062b12b7a59f981a | 1,016 | mgm | Apache License 2.0 |
platform/statistics/src/com/intellij/internal/statistic/service/fus/collectors/IdeZoomEventFields.kt | ingokegel | 72,937,917 | true | 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.internal.statistic.service.fus.collectors
import com.intellij.internal.statistic.eventLog.events.EventFields
object IdeZoomEventFields {
enum class ZoomMode { ZOOM_IN, ZOOM_O... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 774 | intellij-community | Apache License 2.0 |
Demos/Javalin/src/main/kotlin/com/groupdocs/ui/modules/loadsignatureimage/LoadSignatureImageController.kt | groupdocs-signature | 85,180,249 | false | null | package com.groupdocs.ui.modules.loadsignatureimage
import com.groupdocs.ui.model.LoadSignatureImageRequest
import com.groupdocs.ui.model.PageDescriptionEntity
import com.groupdocs.ui.model.SignaturePageEntity
import com.groupdocs.ui.model.TextXmlEntity
import com.groupdocs.ui.modules.BaseController
import com.groupd... | 4 | null | 7 | 3 | 6febc7edac719c1bc5bae0a611e86f72c9fdfa27 | 1,396 | GroupDocs.Signature-for-Java | MIT License |
examples/java/quickstart.main.kts | msteinbeck | 24,473,646 | false | null | @file:DependsOn("org.tinyspline:tinyspline:0.3.0-2")
import org.tinyspline.BSpline
import org.tinyspline.BSplineType
// Create a cubic spline with 7 control points in 2D using
// a clamped knot vector. This call is equivalent to:
// val spline: BSpline = BSpline(7, 2, 3, BSplineType.CLAMPED)
val spline: BSpline = BSp... | 26 | null | 206 | 962 | 0d523b9db865caa3e48029bd6ddfe45b6a4fc446 | 1,169 | tinyspline | MIT License |
compiler/testData/objc/java/callbacks/arguments/objcObject.kt | udalov | 10,645,710 | false | {"Java": 9931656, "Kotlin": 2142480, "JavaScript": 942412, "C++": 613791, "C": 193807, "Objective-C": 22634, "Shell": 12589, "Groovy": 1267} | package test
import objc.*
fun main(args: Array<String>) {
PrintingServices.invokeOnPrinter {
(p: Printer): Unit ->
p.printOK()
}
}
| 1 | Java | 1 | 6 | 3958b4a71d8f9a366d8b516c4c698aae80ecfe57 | 158 | kotlin-objc-diploma | Apache License 2.0 |
app/src/test/java/net/yslibrary/monotweety/data/session/SessionRepositoryImplTest.kt | zhaozheya | 183,132,756 | true | {"Gradle": 4, "YAML": 3, "Java Properties": 1, "Shell": 1, "Text": 3, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "XML": 46, "INI": 1, "Proguard": 1, "Kotlin": 173, "Java": 1, "JSON": 4} | package net.yslibrary.monotweety.data.session
import com.nhaarman.mockito_kotlin.mock
import com.nhaarman.mockito_kotlin.verify
import com.nhaarman.mockito_kotlin.whenever
import com.twitter.sdk.android.core.SessionManager
import com.twitter.sdk.android.core.TwitterSession
import org.junit.Before
import org.junit.Test... | 0 | Kotlin | 0 | 0 | 72cb11dc59d08b4b86368e87c1683cca9b131cfc | 1,145 | monotweety | Apache License 2.0 |
feature-onboarding-impl/src/main/java/jp/co/soramitsu/onboarding/impl/data/OnboardingConfigApi.kt | soramitsu | 278,060,397 | false | {"Kotlin": 5738459, "Java": 18796} | package jp.co.soramitsu.onboarding.impl.data
import jp.co.soramitsu.feature_onboarding_impl.BuildConfig
import jp.co.soramitsu.onboarding.api.data.OnboardingConfig
import retrofit2.http.GET
interface OnboardingConfigApi {
@GET(BuildConfig.ONBOARDING_CONFIG)
suspend fun getConfig(): OnboardingConfig
} | 15 | Kotlin | 30 | 89 | 1de6dfa7c77d4960eca2d215df2bdcf71a2ef5f2 | 313 | fearless-Android | Apache License 2.0 |
agp-7.1.0-alpha01/tools/base/build-system/gradle-core/src/main/java/com/android/build/gradle/internal/testing/utp/UtpManagedDevice.kt | jomof | 502,039,754 | false | {"Java": 35519326, "Kotlin": 22849138, "C++": 2171001, "HTML": 1377915, "Starlark": 915536, "C": 141955, "Shell": 110207, "RenderScript": 58853, "Python": 25635, "CMake": 18109, "Batchfile": 12180, "Perl": 9310, "Dockerfile": 5690, "Makefile": 4535, "CSS": 4148, "JavaScript": 3488, "PureBasic": 2359, "GLSL": 1628, "AID... | /*
* Copyright (C) 2020 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... | 1 | Java | 1 | 0 | 9e3475f6d94cb3239f27ed8f8ee81b0abde4ef51 | 1,657 | CppBuildCacheWorkInProgress | Apache License 2.0 |
app/src/main/java/com/earth/angel/base/BaseViewHolder.kt | engineerrep | 643,933,914 | false | {"Java": 2291635, "Kotlin": 1651449} | package com.earth.angel.base
import androidx.databinding.ViewDataBinding
import androidx.recyclerview.widget.RecyclerView
open class BaseViewHolder<VB : ViewDataBinding>(val binding: VB) : RecyclerView.ViewHolder(binding.root) | 1 | null | 1 | 1 | 415e0417870b6ff2c84a9798d1f3f3a4e6921354 | 229 | EarthAngel | MIT License |
anko/library/generated/design/src/main/java/Views.kt | Kotlin | 24,186,761 | false | null | @file:JvmName("DesignViewsKt")
package org.jetbrains.anko.design
import org.jetbrains.anko.custom.*
import org.jetbrains.anko.AnkoViewDslMarker
import android.view.ViewManager
import android.view.ViewGroup.LayoutParams
import android.app.Activity
import android.app.Fragment
import android.content.Context
import androi... | 243 | Kotlin | 1295 | 15,967 | 37893764c0f20208c842a466f0fd0159c1e247e2 | 19,654 | anko | Apache License 2.0 |
app/src/main/java/io/github/amanshuraikwar/howmuch/ui/addexpense/AddExpenseContract.kt | amanshuraikwar | 124,106,668 | false | null | package io.github.amanshuraikwar.howmuch.ui.addexpense
import android.util.Log
import io.github.amanshuraikwar.howmuch.Constants
import io.github.amanshuraikwar.howmuch.ViewUtil
import io.github.amanshuraikwar.howmuch.base.bus.AppBus
import io.github.amanshuraikwar.howmuch.base.ui.base.*
import io.github.amanshuraikwa... | 1 | Kotlin | 3 | 5 | 69248734bb5f764ca702880e28c4f1cfaf893648 | 12,152 | HowMuch | Apache License 2.0 |
ModSuite-master/bukkit/src/main/kotlin/cc/fyre/modsuite/util/JsonConfig.kt | yakutwrld | 701,531,968 | false | {"Java": 17373091, "Kotlin": 339998, "Shell": 5518, "Batchfile": 329} | package cc.fyre.modsuite.util
import com.squareup.moshi.JsonClass
import java.io.File
@JsonClass(generateAdapter = true)
open class JsonConfig {
@Transient lateinit var file: File
} | 1 | null | 1 | 1 | 086e2351283d7efa3c50eb52aad95adefb74d173 | 189 | CavePvP | MIT License |
app/src/main/java/org/namofo/radio/mvp/model/entity/RecommendListEntity.kt | zhengjiong | 134,266,540 | false | {"Java": 66465, "Kotlin": 51185, "GLSL": 11654} | package org.namofo.radio.mvp.model.entity
import com.chad.library.adapter.base.entity.MultiItemEntity
/**
*
* Copyright:Copyright(c) 2018
* CreateTime:18/5/6$ 14:59$
* @author 郑炯
* @version 1.0
*/
class RecommendListEntity(private val itemType: Int) : MultiItemEntity {
companion object {
const val... | 1 | null | 1 | 1 | 475171d5ecb745bc346583f538c1cb427573445b | 425 | namofo-radio-android | MIT License |
app/src/main/java/com/brins/lightmusic/model/record/RecordArtist.kt | BrinsLee | 193,304,333 | false | null | package com.brins.lightmusic.model.record
import com.google.gson.annotations.SerializedName
class RecordArtist {
@SerializedName("id")
var ArtistId : String = ""
@SerializedName("name")
var name : String = ""
} | 1 | Kotlin | 3 | 20 | f0be073b901efdee40d38824bc3c0cc4d6aa426d | 229 | LightMusic | Apache License 2.0 |
Sample/src/main/kotlin/sample/ui/sharedpreferences/SharedPreferencesViewModel.kt | oneHamidreza | 239,642,692 | false | null | /*
* Copyright (C) 2020 <NAME> & <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 ... | 0 | null | 18 | 124 | deb3efbe8079d784d5850870b7b54ffc9721ffb4 | 2,506 | Meow-Framework-MVVM | Apache License 2.0 |
introduction-kotlin/src/academy/learnprogramming/textadventure/Main.kt | ndsapa2020 | 712,304,277 | false | {"Text": 3, "Markdown": 1, "XML": 12, "Kotlin": 29, "Java": 23, "Maven POM": 5, "Java Properties": 1, "Ignore List": 1} | package academy.learnprogramming.textadventure
import java.util.*
fun main(args: Array<String>) {
val locations = readLocationInfo()
var loc = 64
while (true) {
val location = locations[loc] ?: Location(
0,
"Sorry, something went wrong, so the game will terminate"
... | 0 | Java | 0 | 0 | 9d2bd44e31ff4083b67510d0f9dc5b49faac251f | 873 | CommonSandBox | Apache License 2.0 |
compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/exceptions/InterpreterTimeOutException.kt | nskvortsov | 4,137,859 | false | null | /*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.ir.interpreter.exceptions
class InterpreterTimeOutException : InterpreterExcepti... | 0 | null | 0 | 3 | 39d15501abb06f18026bbcabfd78ae4fbcbbe2cb | 379 | kotlin | Apache License 2.0 |
app/src/testDebug/java/im/fdx/v2ex/network/JsonManagerTest.kt | fan123199 | 40,707,106 | false | {"Markdown": 4, "Gradle Kotlin DSL": 3, "Java Properties": 2, "Text": 10, "Shell": 1, "Ignore List": 3, "Batchfile": 1, "YAML": 2, "JSON": 1, "Proguard": 2, "XML": 166, "Kotlin": 87, "Java": 4, "Ruby": 1, "Gradle": 1} | package im.fdx.v2ex.network
import org.junit.Test
/**
* Created by fdx on 2016/11/19.
* fdx will maintain it
*/
class JsonManagerTest {
@Test
@Throws(Exception::class)
fun getOnceCode() {
}
} | 3 | Kotlin | 4 | 64 | c0778b6aae99b19567671fd5fc858ea007f26820 | 214 | v2ex-simple | Apache License 2.0 |
gi/src/commonMain/kotlin/org/anime_game_servers/multi_proto/gi/data/battle_pass/MissionStatus.kt | Anime-Game-Servers | 642,871,918 | false | {"Kotlin": 1651536} | package data.battle_pass
import org.anime_game_servers.core.base.Version.GI_0_9_0
import org.anime_game_servers.core.base.annotations.AddedIn
import org.anime_game_servers.core.base.annotations.proto.AltName
import org.anime_game_servers.core.base.annotations.proto.ProtoEnum
@AddedIn(GI_0_9_0)
@ProtoEnum("BattlePassM... | 0 | Kotlin | 3 | 6 | 9fc2c2ea7e3c2561ffaa66e7f58012ae1dcc4256 | 623 | anime-game-multi-proto | MIT License |
basick/src/test/java/com/mozhimen/basick/ExampleUnitTest.kt | mozhimen | 353,952,154 | false | null | package com.mozhimen.basick
import com.mozhimen.basick.utilk.kotlin.printlog
import org.junit.Test
/**
* Example local unit test, which will execute on the development machine (host).
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
class ExampleUnitTest {
@Test
fun finalize() {
// ... | 0 | Kotlin | 6 | 112 | efbc55d940b169511106a9b813513fc3f86df1fb | 1,058 | SwiftKit | Apache License 2.0 |
src/main/kotlin/top/kikt/excel/WorkbookExt.kt | CaiJingLong | 571,610,899 | false | null | package top.kikt.excel
import org.apache.poi.ss.usermodel.Sheet
import org.apache.poi.ss.usermodel.Workbook
import top.kikt.excel.tool.CopySheetTool
/**
* Copy sheet from workbook to another workbook
*/
fun Sheet.copyTo(
targetWorkbook: Workbook,
index: Int? = null,
name: String? = null,
active: Boo... | 0 | Kotlin | 0 | 1 | 9619e8525aad6065907b815b28fb3c7ef6d61b98 | 2,550 | excel_kt | Apache License 2.0 |
BluetoothLeChat/app/src/main/java/com/example/bluetoothlechat/chat/BluetoothChatFragment.kt | marinquantum | 435,614,661 | false | null | /*
* Copyright (C) 2020 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... | 1 | null | 1 | 1 | 8b678c3de6b36580e3cf8e03af512ca90804389d | 5,671 | connectivity-samples | Apache License 2.0 |
arrow-libs/core/arrow-core/src/main/kotlin/arrow/core/extensions/either/traverse/EitherTraverse.kt | clojj | 343,913,289 | true | {"Kotlin": 6274993, "SCSS": 78040, "JavaScript": 77812, "HTML": 21200, "Scala": 8073, "Shell": 2474, "Ruby": 83} | package arrow.core.extensions.either.traverse
import arrow.Kind
import arrow.core.Either
import arrow.core.Either.Companion
import arrow.core.ForEither
import arrow.core.extensions.EitherTraverse
import arrow.core.fix
import arrow.typeclasses.Applicative
import arrow.typeclasses.Monad
import kotlin.Any
import kotlin.F... | 0 | null | 0 | 0 | 5eae605bbaeb2b911f69a5bccf3fa45c42578416 | 2,864 | arrow | Apache License 2.0 |
numbers/src/test/kotlin/mathtools/numbers/format/StringPackagerFloatTest.kt | DK96-OS | 290,065,035 | false | null | package mathtools.numbers.format
import mathtools.numbers.format.StringPackager.packFloat
import mathtools.numbers.format.StringPackager.packFloats
import mathtools.numbers.format.StringPackager.unpackFloat
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
import kotlin.random.Rand... | 16 | Kotlin | 1 | 1 | f9adc804faa94e288ec3b7cd2e50c94be3ec7045 | 1,336 | MathTools | Apache License 2.0 |
twitter-tracking-android-app/app/src/main/java/de/alxgrk/twittertracking/Logger.kt | alxgrk | 292,949,219 | false | null | package de.alxgrk.twittertracking
import android.util.Log
import android.view.accessibility.AccessibilityNodeInfo
object Logger {
private const val TAG = "TwitterTracking"
fun d(msg: String) = Log.d(TAG, msg)
fun e(msg: String) = Log.e(TAG, msg)
fun w(msg: String) = Log.w(TAG, msg)
fun i(msg: St... | 0 | Kotlin | 0 | 1 | 2be0c0f2622dad12b4aa0bb502bbcb304242e3ea | 937 | twitter-tracking | Apache License 2.0 |
app/src/main/java/app/skynight/musicplayer/base/InitConstructorNotAllowedException.kt | zhanngqi | 203,959,902 | true | {"Kotlin": 158703, "Java": 275} | package app.skynight.musicplayer.base
/**
* @File : InitConstructorNotAllowedException
* @Author : 1552980358
* @Date : 4 Aug 2019
* @TIME : 9:47 AM
**/
class InitConstructorNotAllowedException: Exception {
constructor(): super()
constructor(text: String): super(text)
init {
}
} | 0 | Kotlin | 0 | 0 | 5baf665b3c991901361097127ba628c41677d1e4 | 312 | MusicPlayer | Apache License 2.0 |
persistence/src/test/kotlin/com/github/jactor/persistence/cucumber/RestServiceSteps.kt | jactor-rises | 463,152,761 | false | {"Kotlin": 252141, "HTML": 10548, "Gherkin": 4050, "CSS": 2049} | package com.github.jactor.persistence.cucumber
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.http.HttpStatus
import assertk.assertThat
import assertk.assertions.contains
import assertk.assertions.isEqualTo
import assertk.assertions.isNotNull
import io.cucumber.java8.No
@Supp... | 0 | Kotlin | 0 | 0 | 76b3bb6efbc9650b2c9db38ae54d113cc1f0fcf6 | 2,205 | jactor-modules | MIT License |
kafkistry-web/src/main/kotlin/com/infobip/kafkistry/webapp/controller/GitController.kt | infobip | 456,885,171 | false | {"Kotlin": 2590613, "FreeMarker": 803040, "JavaScript": 297269, "CSS": 6804} | package com.infobip.kafkistry.webapp.controller
import com.infobip.kafkistry.api.GitApi
import com.infobip.kafkistry.webapp.url.GitUrls.Companion.GIT
import com.infobip.kafkistry.webapp.url.GitUrls.Companion.GIT_BRANCH
import com.infobip.kafkistry.webapp.url.GitUrls.Companion.GIT_COMMIT
import org.springframework.boot... | 2 | Kotlin | 6 | 42 | 4c8101069c813270d2f3c986b5b9f04dacda4a10 | 1,494 | kafkistry | Apache License 2.0 |
src/main/kotlin/hw8/views/GameView.kt | vol0n | 341,698,683 | false | {"Kotlin": 116397} | package hw8.views
import javafx.scene.control.Button
import hw8.app.Styles
import hw8.controllers.GameController
import io.ktor.util.KtorExperimentalAPI
import javafx.geometry.Pos
import tornadofx.View
import tornadofx.borderpane
import tornadofx.button
import tornadofx.vbox
import tornadofx.action
import tornadofx.sp... | 0 | Kotlin | 0 | 0 | 45f9a341c5ddd92ce0c67721395af365674ee81b | 1,043 | spbu_kotlin_hw | Apache License 2.0 |
app/src/main/java/com/tw/auction_demo/auctions/model/DepositsPayResultModel.kt | moushao | 643,272,418 | false | null | package com.tw.auction_demo.auctions.model
data class DepositsPayResultModel(
val result: String,
)
| 0 | Kotlin | 0 | 0 | 24f832ce1b74c538dc730e0b1a3632d0cc1f0c6b | 105 | dark-horse | Apache License 2.0 |
coverflow/src/main/java/com/pakohan/coverflow/DistanceFactor.kt | pakohan | 830,824,986 | false | {"Kotlin": 29761} | package com.pakohan.coverflow
import android.os.Parcelable
import androidx.annotation.FloatRange
import kotlinx.parcelize.Parcelize
import kotlin.math.abs
/**
* DistanceFactor returns how strong the three effects angle, horizontal translation, and zoom
* get applied to each element in the view.
*/
interface Distan... | 9 | Kotlin | 0 | 0 | 6ef83467745b7a6f6ee00b1bc7cd53035ba09e43 | 3,056 | compose-coverflow | MIT License |
BotaniPal/app/src/main/java/com/botanipal/botanipal/ui/MainActivity.kt | BotaniPal | 804,131,882 | false | {"Kotlin": 19872} | package com.botanipal.botanipal.ui
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.navigation.findNavController
import androidx.navigation.fragment.NavHostFragment
import androidx.navigation.ui.AppBarConfiguration
import androidx.navigation.ui.setupActionBarWithNavController
im... | 9 | Kotlin | 0 | 0 | d6497f2fc2b3c110bbe5f2f26fe66444e311aea6 | 1,711 | md-botanipal | MIT License |
src/jvmMain/kotlin/xyz/artrinix/twine/auth/Authenticate.kt | Artrinix | 557,145,882 | false | {"Kotlin": 18779} | package xyz.artrinix.twine.auth
import me.nullicorn.msmca.minecraft.MinecraftAuth
import me.nullicorn.msmca.minecraft.MinecraftToken
import me.nullicorn.msmca.xbox.XboxLiveAuth
object Authenticate {
val minecraft = MinecraftAuth()
fun authenticateToMinecraft(): MinecraftToken {
val result = DeviceCod... | 0 | Kotlin | 0 | 1 | ca8811ddf41db000d853ed3a7eb52ddf7c1f5440 | 729 | twine | MIT License |
app/src/main/java/hello/world/angelkitchen/view/onboard/OnboardActivity.kt | OpenSW-TeamLC | 388,488,341 | false | null | package hello.world.angelkitchen.view.onboard
import android.Manifest
import android.content.Context
import android.util.Log
import android.widget.Toast
import androidx.navigation.findNavController
import com.gun0912.tedpermission.PermissionListener
import com.gun0912.tedpermission.TedPermission
import dagger.hilt.and... | 1 | null | 1 | 1 | 5da3d767e16a12aa24631b1f29d6d6820c7a23fc | 2,321 | Angel-Kitchen | Apache License 2.0 |
App/app/src/main/java/com/app/appellas/viewmodel/ViewModelProviderFactory.kt | spocasangre | 656,841,017 | false | null | /*
Copyright 2023 WeGotYou!
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 writing, so... | 0 | Kotlin | 0 | 0 | 2d91163f417b8f56a334d16abcad4aec3dc28ab3 | 2,147 | proyecto_aca_2023 | Apache License 2.0 |
app/src/main/java/com/ncs/o2/UI/Assigned/WorkspaceViewPagerAdapter.kt | arpitmx | 647,358,015 | false | {"Kotlin": 812173} | package com.ncs.o2.UI.Assigned
import androidx.fragment.app.Fragment
import androidx.viewpager2.adapter.FragmentStateAdapter
class WorkspaceViewPagerAdapter(fragmentActivity: Fragment, private var totalCount: Int) :
FragmentStateAdapter(fragmentActivity) {
override fun getItemCount(): Int {
return to... | 3 | Kotlin | 2 | 0 | a18c0da56db0c48ec8d3f671a62a3cfb3a370caa | 635 | O2 | MIT License |
library/src/main/kotlin/build/buf/connect/protocols/GRPCCompletion.kt | bufbuild | 604,763,682 | false | null | // Copyright 2022-2023 Buf Technologies, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law... | 11 | Kotlin | 2 | 46 | 4298933845eaf7b204547707ad15f7f956aeb8ac | 1,110 | connect-kotlin | Apache License 2.0 |
old-references/rudder-client-android-kotlin-old/src/main/java/com/rudderlabs/android/library/models/RudderEventTemplate.kt | josevaisman | 212,093,649 | true | {"C": 9083227, "C++": 1793090, "C#": 726062, "Java": 477563, "Objective-C": 471832, "Swift": 194027, "Kotlin": 77905, "Objective-C++": 33014, "Mathematica": 32266, "Python": 8990, "Ruby": 557, "Makefile": 165} | package com.rudderlabs.android.library.models
import android.app.Application
import android.content.Context
import android.content.Context.TELEPHONY_SERVICE
import android.os.Build
import android.provider.Settings.Global.getString
import android.provider.Settings.Secure.ANDROID_ID
import android.telephony.TelephonyMan... | 0 | null | 0 | 0 | 86894a520a4e83fc0c2126e9b9058322db484081 | 3,834 | rudder-client | Apache License 2.0 |
src/main/java/net/oxyopia/vice/utils/NumberUtils.kt | Oxyopiia | 689,119,282 | false | {"Kotlin": 207588, "Java": 65076, "HTML": 7789} | package net.oxyopia.vice.utils
object NumberUtils {
fun Int.clamp(min: Int, max: Int): Int {
return maxOf(min, minOf(max, this))
}
fun Double.clamp(min: Double, max: Double): Double {
return maxOf(min, minOf(max, this))
}
fun Float.clamp(min: Float, max: Float): Float {
return maxOf(min, minOf(max, this))... | 4 | Kotlin | 1 | 2 | 5b503f01ddab06e2c016eb14f1251e601422a452 | 505 | ViceMod | MIT License |
app/src/main/java/com/obvious/photosgridassignment/application/MyApplication.kt | SachinRupani | 485,911,013 | false | null | package com.obvious.photosgridassignment.application
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class MyApplication : Application() | 0 | Kotlin | 0 | 3 | b9a49aa01e10394a2234d4f1eb4f0e0994b39bed | 179 | PhotosGridAssignment | Apache License 2.0 |
plugin/src/main/kotlin/com/github/triplet/gradle/play/tasks/internal/EditTaskBase.kt | SpenceAcc | 203,819,698 | true | {"Kotlin": 144977, "Groovy": 16880, "HTML": 390} | package com.github.triplet.gradle.play.tasks.internal
import com.github.triplet.gradle.play.PlayPublisherExtension
import com.github.triplet.gradle.play.internal.marked
import org.gradle.api.file.RegularFileProperty
import org.gradle.api.tasks.LocalState
import java.io.File
import javax.inject.Inject
abstract class E... | 0 | Kotlin | 0 | 0 | 297588f257bda11b320ec04052da9b024005baff | 926 | gradle-play-publisher | MIT License |
Exercicios sobre Classes/Exercicio06-ClasseTV.kt | DenertSousa | 613,699,145 | false | null | /*Este programa possui uma classe TV abstrata que contém atributos e funções de uma TV
* normal. Essa classe possui duas classes herdeiras, Samsung e LG, que herdam os atributos
* e funções de uma TV normal. Cada herdeira tem sua propria função.*/
/*OBS: Eu percebi que para todas as funções que serão executadas eu pr... | 0 | Kotlin | 0 | 0 | 1902d1179ce553d1629e869a5e7e1af9ce049d94 | 4,939 | Programando-em-Kotlin | MIT License |
ActivitiesAndComponents/app/src/main/java/cn/edu/ncu/activitiesandcomponents/SecondActivity.kt | LinLorry | 309,248,432 | false | null | package cn.edu.ncu.activitiesandcomponents
import android.content.Intent
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_main.*
import kotlinx.android.synthetic.main.activity_second.*
import kotlinx.android.synthetic.main.activity_second.exit
import kotlinx.android.synthetic.main.activity_secon... | 0 | Kotlin | 0 | 0 | 771220d2caa7d60a66bb384db616b76a5684eacc | 1,209 | NCUAndroidExperiment | Apache License 2.0 |
app/src/main/java/com/exail/archtest/MainFragment.kt | EduardsDenisjonoks | 193,911,687 | false | null | package com.exail.archtest
import android.content.Intent
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.appcompat.widget.AppCompatTextView
import androidx.databinding.DataBindingUtil
import com.ex... | 0 | Kotlin | 0 | 0 | 64308d039a5368eb70d7919fa96ed0ef45b43eac | 2,317 | archtest | Apache License 2.0 |
app/src/main/java/kk/huining/favcats/ui/home/GridFragment.kt | huiningd | 363,039,888 | false | null | package kk.huining.favcats.ui.home
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.*
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.activityViewModels
import androidx.lifecycle.Observer
import androidx.li... | 0 | Kotlin | 0 | 0 | 6142eb8b6b843f4c4d59e956f6d41f59062b27a5 | 9,627 | favorite-cats | Apache License 2.0 |
library/src/main/kotlin/dev/whyoleg/kamp/packager/PackagersBuilder.kt | whyoleg | 186,098,407 | false | null | package dev.whyoleg.kamp.packager
class PackagersBuilder {
internal val packagers: MutableList<Packager> = mutableListOf()
fun jar(block: JarPackager.() -> Unit = {}) {
packagers += JarPackager().apply(block)
}
fun docker(block: DockerPackager.() -> Unit = {}) {
packagers += DockerPac... | 0 | Kotlin | 1 | 3 | ac9a1296d07b6db8eb2e196a4d62ba61c3ea57ad | 478 | kamp | Apache License 2.0 |
sdk/src/commonMain/kotlin/gitfox/entity/Visibility.kt | dector | 341,706,824 | false | null | package gitfox.entity
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
/**
* @author Konstantin Tskhovrebov (aka terrakok). Date: 30.03.17
*/
@Serializable
enum class Visibility(private val jsonName: String) {
@SerialName("public")
PUBLIC("public"),
@SerialName("internal... | 0 | Kotlin | 0 | 1 | 7258eb2bc4ca9fcd1ebf3029217d80d6fd2de4b9 | 442 | gitfox-mirror | Apache License 2.0 |
app/src/main/java/com/abhishek_jaiswal/nutriguide/version.kt | Abhijais2003 | 793,204,480 | false | {"Kotlin": 19362} | package com.abhishek_jaiswal.nutriguide
// VersionActivity.kt
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.view.View
import android.widget.Button
import android.widget.ProgressBar
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
class version : ... | 0 | Kotlin | 0 | 1 | fbd8a9c568058d165f9e9f6e8d7d2a1054d5b4de | 1,159 | NutriGuide-Nutrition-Expert-Android | MIT License |
app/src/main/java/fr/skyle/scanny/ui/settings/components/SettingsTitleText.kt | SkyleKayma | 524,119,671 | false | null | package fr.skyle.scanny.ui.core
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.tooling.preview.Preview
import fr.skyle.scanny.R
import fr.skyle.scanny.theme.SCAppTheme
import f... | 0 | Kotlin | 0 | 0 | 6275f1b83f8d2982aa00fc11ff1d84b40cdc427a | 740 | Scanny | Apache License 2.0 |
src/main/kotlin/de/flapdoodle/tab/data/calculations/AggregationMapping.kt | flapdoodle-oss | 237,231,857 | false | null | package de.flapdoodle.tab.data.calculations
import de.flapdoodle.tab.data.Data
import de.flapdoodle.tab.data.NamedColumn
data class AggregationMapping<T : Any>(
val aggregation: Aggregation<T>,
val column: NamedColumn<T>
) {
fun aggregate(data: Data, variableMap: ListMap): Data {
var currentData = data... | 0 | Kotlin | 1 | 0 | 2d96fb9a915ddd38d275c3a929683abcd54906bb | 1,201 | tab | Apache License 2.0 |
src/com/softwaret/kpdf/routing/routes/PublicationRouting.kt | Softwaret | 277,790,397 | false | null | package com.softwaret.kpdf.routing.routes
import com.softwaret.kpdf.controller.publication.PublicationsController
import com.softwaret.kpdf.model.inline.Description
import com.softwaret.kpdf.model.inline.Id
import com.softwaret.kpdf.model.inline.PdfFile
import com.softwaret.kpdf.model.inline.PublicationName
import com... | 8 | Kotlin | 0 | 16 | 5bc4f5e2ed85d5a63a0fb95919fe22ad1450f5a2 | 2,833 | kpdf | MIT License |
fr_yhe_pro/src/main/java/com/friendly_machines/fr_yhe_pro/command/WatchDCameraControlCommand.kt | daym | 744,679,396 | false | {"Kotlin": 453101} | package com.friendly_machines.fr_yhe_pro.command
import com.friendly_machines.fr_yhe_pro.WatchOperation
// These is the response we send to the watch to a watch-initiated indication.
class WatchDCameraControlCommand(ok: Boolean) : WatchCommand(WatchOperation.DCameraControl, byteArrayOf(if (ok) { 0 } else { 1 })) | 0 | Kotlin | 1 | 1 | d2bc5a833d755bef3bb8886c54fd09b539fb14c9 | 315 | frbpdoctor | BSD 2-Clause FreeBSD License |
app/src/main/java/com/bornfight/roundedtabbarlayoutlibrary/DemoRoundedTabBar.kt | bornfight | 173,119,182 | false | null | package com.bornfight.roundedtabbarlayoutlibrary
import android.content.Context
import android.util.AttributeSet
import com.bornfight.roundedtabbar.RoundedTabBar
class DemoRoundedTabBar @JvmOverloads constructor(
context: Context,
attrs: AttributeSet? = null,
defStyleAttr: Int = 0
) :
RoundedTabBar<Ta... | 0 | Kotlin | 2 | 15 | bedfbfbe80f9bee3b10d280ea2a4eca60aa2f528 | 356 | RoundedTabBarLayout | Apache License 2.0 |
android/app/src/main/java/com/example/stacklounge/board/BoardShowFeed.kt | KPUCE2021SP | 387,674,842 | false | null | package com.example.stacklounge.board
import android.app.Activity
import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.util.Log
import android.view.Menu
import android.view.MenuInflater
import android.view.MenuItem
import android.view.View
import android.widget.ImageView
import... | 8 | Kotlin | 3 | 1 | a875d6791ee9807db190b958b4eaade85bd2fb06 | 13,350 | LiC | Apache License 2.0 |
app/src/main/java/com/example/sunnyweather/ui/place/PlaceAdapter.kt | z643393679 | 287,212,675 | false | null | package com.example.sunnyweather.ui.place
import android.content.Intent
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
impor... | 0 | Kotlin | 0 | 0 | 351ae7a05f0975f074f861400d98807efb82c5b1 | 1,912 | SunnyWeather | Apache License 2.0 |
src/test/kotlin/org/camunda/community/eze/EmbeddedBrokerSampleTest.kt | Zelldon | 394,634,768 | false | null | package org.camunda.community.eze
import io.camunda.zeebe.client.ZeebeClient
import io.camunda.zeebe.client.api.response.DeploymentEvent
import io.camunda.zeebe.model.bpmn.Bpmn
import io.camunda.zeebe.test.EmbeddedBrokerRule
import io.camunda.zeebe.test.ZeebeTestRule
import org.assertj.core.api.Assertions
import org.a... | 1 | Kotlin | 2 | 4 | 656a2da97fe90e4331e592a3a5553658df8be7b1 | 2,943 | eze-sample | Apache License 2.0 |
src/main/kotlin/g1201_1300/s1233_remove_sub_folders_from_the_filesystem/Solution.kt | javadev | 190,711,550 | false | {"Kotlin": 4901773, "TypeScript": 50437, "Python": 3646, "Shell": 994} | package g1201_1300.s1233_remove_sub_folders_from_the_filesystem
// #Medium #Array #String #Trie #2023_06_09_Time_459_ms_(40.00%)_Space_55.3_MB_(80.00%)
class Solution {
fun removeSubfolders(folder: Array<String>): List<String> {
val paths: MutableSet<String> = HashSet()
paths.addAll(folder)
... | 0 | Kotlin | 20 | 43 | 471d45c60f669ea1a2e103e6b4d8d54da55711df | 860 | LeetCode-in-Kotlin | MIT License |
lib/src/test/kotlin/it/scoppelletti/spaceship/ads/model/ServerResponseTest.kt | dscoppelletti | 395,695,274 | false | null | package it.scoppelletti.spaceship.ads.model
import com.squareup.moshi.JsonAdapter
import com.squareup.moshi.Moshi
import it.scoppelletti.spaceship.io.closeQuietly
import it.scoppelletti.spaceship.types.joinLines
import okio.BufferedSource
import okio.Source
import okio.buffer
import okio.source
import java.io.InputStr... | 0 | Kotlin | 0 | 0 | 37a4f832df4aba3a9f7dbd7b5b79c3aacd9aebea | 3,331 | spaceship-ads | Apache License 2.0 |
src/test/kotlin/com/github/dtm/linksync/backend/LinkSyncBackendApplicationTests.kt | DigitalToolsManufactory | 755,056,752 | false | {"Kotlin": 527} | package com.github.dtm.linksync.backend
import org.junit.jupiter.api.Test
import org.springframework.boot.test.context.SpringBootTest
@SpringBootTest
class LinkSyncBackendApplicationTests {
@Test
fun contextLoads() {
}
}
| 0 | Kotlin | 0 | 0 | a00511d98576af41a104907deae1209806688421 | 228 | link-sync_kotlin-backend | MIT License |
business/play_pick/src/main/java/com/will/play/pick/ui/viewmodel/PickHeaderItem.kt | willpyshan13 | 273,811,029 | false | null | package com.will.play.pick.ui.viewmodel
import androidx.databinding.ObservableArrayList
import com.will.habit.base.ItemViewModel
import com.will.play.base.entity.BannerEntity
import com.will.play.pick.R
import com.will.play.pick.BR
import com.will.play.pick.entity.PickGoodTypeEntity
import me.tatarka.bindingcollection... | 1 | Kotlin | 1 | 2 | 4c4cd66f9fb9c32843767a29e113758384be395a | 1,269 | DouYinPlay | Apache License 2.0 |
shared/data/tmdb/implementation/src/androidMain/kotlin/com/thomaskioko/tvmaniac/tmdb/implementation/NetworkModule.kt | c0de-wizard | 361,393,353 | false | null | package com.thomaskioko.tvmaniac.tmdb.implementation
import com.thomaskioko.tvmaniac.network.KtorClientFactory
import com.thomaskioko.tvmaniac.tmdb.api.TmdbService
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import io.ktor.client.HttpClient
... | 3 | Kotlin | 10 | 88 | e613080658265c2cb8bb184c88d2057fe011e58f | 1,400 | tv-maniac | Apache License 2.0 |
app/src/main/java/top/littledavid/snake/GameObject.kt | littledavid-tech | 145,183,609 | false | null | package top.littledavid.snake
import android.graphics.Canvas
import android.graphics.Paint
import android.graphics.RectF
import android.view.ViewDebug
import top.littledavid.logerlibrary.e
/**
* 贪吃蛇游戏中所有游戏的父类,所有的游戏对象都将会从此类继承
* */
open class GameObject(var row: Int, var column: Int) {
/**
* 绘制游戏对象
* @... | 0 | Kotlin | 1 | 3 | 201b4b043ea0013d94bc1455b73639d3cfb9e58f | 566 | Snake | Apache License 2.0 |
preview/src/main/kotlin/com/github/iipekolict/preview/controller/MiddlewareController.kt | IIPEKOLICT | 547,946,181 | false | null | package com.github.iipekolict.preview.controller
import com.github.iipekolict.knest.annotations.classes.Controller
import com.github.iipekolict.knest.annotations.methods.Get
import com.github.iipekolict.knest.annotations.properties.ResHeaders
import com.github.iipekolict.preview.annotations.Check42
import io.ktor.serv... | 0 | Kotlin | 0 | 0 | 1ad45e476de6972785f97000067a3112ccf1595f | 714 | knest | MIT License |
zowe-explorer-api/src/jsMain/kotlin/zowe/explorer/api/tree/DatasetFilter.kt | lppedd | 761,812,661 | false | {"Kotlin": 1887051} | package zowe.explorer.api.tree
external interface DatasetFilter {
var method: DatasetFilterOpts
var value: String
}
| 0 | Kotlin | 0 | 3 | 0f493d3051afa3de2016e5425a708c7a9ed6699a | 121 | kotlin-externals | MIT License |
Week2/evan-LiveData와 Flow/MyApp/app/src/main/java/com/chanjungkim/myapp/repository/room/MockUserDao.kt | Android-Study-Collection | 495,334,979 | false | {"Kotlin": 242182} | package com.chanjungkim.myapp.repository.room
import com.chanjungkim.myapp.repository.data.User
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.delay
class MockUserDao {
suspend fun addUser(user: User) = coroutineScope {
delay(1000)
// add user
}
} | 0 | Kotlin | 0 | 0 | edd81f5b717b7d1f64cfc27c73af695abc987436 | 293 | advanced-android-study2 | Apache License 2.0 |
src/main/kotlin/no/digdir/catalog_view_api/config/MongoConnectionString.kt | Informasjonsforvaltning | 688,375,948 | false | {"Kotlin": 91111, "Dockerfile": 208} | package no.digdir.catalog_view_api.config
import org.springframework.boot.context.properties.ConfigurationProperties
@ConfigurationProperties("spring.data.mongodb")
data class MongoConnectionString(
val uri: String
)
| 4 | Kotlin | 0 | 0 | a174946c9b9a3e1dc49b5e7575eafe02ab83bb31 | 223 | catalog-view-api | Apache License 2.0 |
scissors/src/main/java/co/steezy/miek/android/interfaces/BitmapLoader.kt | bboygg | 469,089,465 | false | {"Gradle": 5, "Markdown": 5, "INI": 2, "Shell": 2, "Ignore List": 1, "Batchfile": 1, "Text": 2, "YAML": 1, "Java Properties": 1, "Java": 17, "XML": 12, "Kotlin": 6} | package co.steezy.miek.android.interfaces
import android.widget.ImageView
interface BitmapLoader {
fun load(model: Any?, view: ImageView)
} | 1 | null | 1 | 1 | 84df84d245508a3baa847aa38cc4ba2ff6f19b5c | 145 | miek | Apache License 2.0 |
src/main/kotlin/no/kommune/oslo/maskinporten/cli/AdminCommand.kt | oslokommune | 344,368,703 | false | null | package no.kommune.oslo.maskinporten.cli
import com.github.ajalt.clikt.parameters.options.help
import com.github.ajalt.clikt.parameters.options.option
import com.github.ajalt.clikt.parameters.options.required
import no.kommune.oslo.jwt.JwtAuthClient
import no.kommune.oslo.maskinporten.client.MaskinportenAdminApiClient... | 0 | null | 1 | 2 | b04f8c7694843eea97c887ffad78523339f7e1d7 | 1,113 | maskinporten-cli | MIT License |
app/src/main/java/com/kylix/submissionmade2/di/AppModule.kt | KylixEza | 338,973,481 | false | null | package com.kylix.submissionmade2.di
import com.kylix.core.domain.usecase.UserInteractor
import com.kylix.core.domain.usecase.UserUseCase
import com.kylix.submissionmade2.detail.DetailViewModel
import com.kylix.submissionmade2.follow.FollowViewModel
import com.kylix.submissionmade2.home.HomeViewModel
import org.koin.a... | 0 | Kotlin | 1 | 6 | 90f9ae1d297d57e240ea49af58abb1a2ee8f99c6 | 615 | Submission-MADE2-Dicoding | Apache License 2.0 |
features/src/main/kotlin/4 - Pattern Matching.kt | tschie | 155,599,115 | false | null |
fun main(args: Array<String>) {
val random = Math.round(Math.random() * 100.0)
// can return a value
val grade : Any = when { // Any = Object
// check against conditions
random in 90..100 -> true
random % 2 == 0L -> "even"
random <= 50 -> Exception("fail")
else ->... | 0 | Kotlin | 0 | 0 | 4ce4f3bed0a620bd974c15ec68ffdc347ff39392 | 801 | arcgis-kotlin-webinar | MIT License |
src/P53.kt | deveshp007 | 533,251,991 | false | {"Kotlin": 116594} | /*
sealed classes conform to restricted or bounded class
hierarchies. A sealed class defines a set of subclasses
within it. It is used when it is known in advance that a
type will conform to one of the subclass types. Sealed
classes ensure type-safety by restricting the types to be
matched at compile-time rather than ... | 0 | Kotlin | 0 | 10 | c0c33cda08054a50d5f79299a40962b7d648e52e | 1,152 | Kotlin-Topic-Wise-Demo-Codes | MIT License |
src/main/kotlin/no/nav/lydia/integrasjoner/pdfgen/PiaPdfgenService.kt | navikt | 444,072,054 | false | {"Kotlin": 937396, "Python": 5547, "Shell": 1074, "Dockerfile": 207} | package no.nav.lydia.integrasjoner.pdfgen
import arrow.core.left
import arrow.core.right
import com.github.kittinunf.fuel.core.extensions.jsonBody
import com.github.kittinunf.fuel.httpPost
import io.ktor.http.HttpStatusCode
import kotlinx.serialization.encodeToString
import kotlinx.serialization.json.Json
import no.na... | 2 | Kotlin | 0 | 1 | a804098d3363006a6d2ec525e0aceb3eb1bb0cf0 | 1,182 | lydia-api | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.