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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
moviegrid/src/main/java/com/jokubas/mmdb/moviegrid/ui/grid/MovieGridFragmentConfig.kt | Jokubas126 | 235,866,403 | false | null | package com.jokubas.mmdb.moviegrid.ui.grid
import androidx.lifecycle.Lifecycle
import com.jokubas.mmdb.model.data.entities.MovieResults
import com.jokubas.mmdb.model.data.entities.WatchlistMovie
import com.jokubas.mmdb.moviegrid.actions.MovieListType
import com.jokubas.mmdb.moviegrid.ui.movieitem.ItemMovieEventListene... | 0 | Kotlin | 1 | 1 | 96500633698bc414d433547f9b3ebdb456ab1f46 | 802 | MobileMovieDatabase | MIT License |
skellig-test-step-processing-jdbc/src/test/kotlin/org/skellig/teststep/processor/jdbc/JdbcDetailsConfigReaderTest.kt | skellig-framework | 263,021,995 | false | {"Kotlin": 1283314, "CSS": 525991, "Java": 270216, "FreeMarker": 66859, "HTML": 11313, "ANTLR": 6165} | package org.skellig.teststep.processor.jdbc
import com.typesafe.config.ConfigFactory
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import org.skellig.teststep.processor.jdbc.model.JdbcDetails
import... | 8 | Kotlin | 0 | 3 | ed375268b0e444f1928f22f4ac27603e9d1fb66b | 1,343 | skellig-core | Apache License 2.0 |
platform/platform-impl/src/com/intellij/ui/WebAnimationUtils.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.ui
import com.intellij.openapi.util.text.HtmlChunk
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.SerializationEx... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 3,783 | intellij-community | Apache License 2.0 |
src/test/kotlin/ui/settings/reducer/UpdateScreenElementReducerImplTest.kt | gmatyszczak | 171,290,380 | false | null | package ui.settings.reducer
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.test.TestCoroutineScope
import model.Category
import model.CategoryScreenElements
import model.ScreenElement
import org.junit.Before
import org.junit.Test
import ui.settings.SettingsState
import ui.settings.render... | 5 | Kotlin | 27 | 130 | 1fcfbb0bf39d6f1dbe3b69016c39fb3d79214e7e | 1,667 | screen-generator-plugin | Apache License 2.0 |
Deepanshu/Cureya/app/src/main/java/com/example/cureya/settings/AccountFragment.kt | DeepanshuPratik | 450,119,452 | false | {"Kotlin": 202411} | package com.example.cureya.settings
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.appcompat.app.AlertDialog
import androidx.core.content.ContextCompat.getColor
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.... | 0 | Kotlin | 3 | 1 | 503d10428dbd038871e55e5be8c8ead9c9cdf1d6 | 2,739 | Cureya | MIT License |
src/main/kotlin/ehn/techiop/hcert/kotlin/TrustListServiceAdapter.kt | ehn-dcc-development | 355,567,084 | false | null | package ehn.techiop.hcert.kotlin
import ehn.techiop.hcert.kotlin.chain.CryptoService
import ehn.techiop.hcert.kotlin.chain.fromBase64
import ehn.techiop.hcert.kotlin.crypto.CertificateAdapter
import ehn.techiop.hcert.kotlin.trust.TrustListV2EncodeService
import eu.europa.ec.dgc.gateway.connector.DgcGatewayDownloadConn... | 0 | Kotlin | 7 | 5 | beb23a2d812145920f128769b85c51cd38a70cca | 2,081 | hcert-service-kotlin | Apache License 2.0 |
carbon/src/main/kotlin/carbon/compose/radiobutton/RadioButton.kt | gabrieldrn | 707,513,802 | false | {"Kotlin": 528462} | package carbon.compose.radiobutton
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.indication
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.found... | 0 | Kotlin | 0 | 0 | 2e8a7167f1cf055b6d0c6fe349f3bea423c1c226 | 5,723 | carbon-compose | Apache License 2.0 |
buildSrc/src/main/kotlin/androidx/compose/material/symbols/generator/variance/Variance.kt | tclement0922 | 694,507,062 | false | {"Kotlin": 184754} | /*
* Copyright 2023 <NAME> (@tclement0922)
*
* 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 o... | 0 | Kotlin | 0 | 2 | f90309a0b828e78dba08d83a1dffaa1ab63f1817 | 3,014 | material-symbols-compose | Apache License 2.0 |
KotlinBoilerplate/services/src/main/java/com/tiknil/app/services/DataService.kt | tiknil | 231,347,612 | false | null | package com.tiknil.app.services
import com.tiknil.app.core.services.ICacheService
import com.tiknil.app.core.services.IDataService
import javax.inject.Inject
class DataService @Inject constructor (
private val cacheService: ICacheService
) : IDataService {
//region Inner enums
//endregion
//region ... | 0 | Kotlin | 0 | 0 | 4f95975c55d87158febf1968f8f0b66415fc644a | 798 | kotlin-boilerplate-mvvm | Apache License 2.0 |
app/src/test/java/be/tim/beers/LocationConverterTest.kt | timvanginderen | 310,294,904 | false | null | package be.tim.beers
import be.tim.beers.util.Util
import org.junit.Assert
import org.junit.Test
class LocationConverterTest {
@Test
fun convertCoordinateToLong_isCorrect() {
val coordinate = 4.42
val expected = (Constants.COORDINATE_BASE_MULTIPLIER * coordinate).toLong()
Assert.assert... | 0 | Kotlin | 0 | 0 | 83e4bdb66e240af81ab39102c3d17bd749f9577a | 655 | beers | MIT License |
app/src/test/kotlin/io/orangebuffalo/simpleaccounting/infra/api/ApiTestsUtils.kt | orange-buffalo | 154,902,725 | false | {"Kotlin": 914474, "TypeScript": 537024, "Vue": 256649, "SCSS": 30586, "JavaScript": 6653, "HTML": 633, "CSS": 10} | package io.orangebuffalo.simpleaccounting.infra.api
import net.javacrumbs.jsonunit.assertj.JsonAssert
import net.javacrumbs.jsonunit.assertj.JsonAssertions
import org.assertj.core.api.Assertions
import org.springframework.http.MediaType
import org.springframework.test.web.reactive.server.WebTestClient
import org.sprin... | 70 | Kotlin | 0 | 1 | c8d1fcc9800ee980d0679432896b690a05a1338e | 2,825 | simple-accounting | Creative Commons Attribution 3.0 Unported |
user/persist/src/main/kotlin/com/gongsung/user/persist/follow/FollowQueryPersist.kt | 403-gallery-gongsung | 736,332,935 | false | {"Kotlin": 84837} | package com.gongsung.user.persist.follow
import com.gongsung.user.Follow
import com.gongsung.user.UserIdentity
interface FollowQueryPersist {
fun getAllFollowingByUserId(userId: UserIdentity): List<Follow>
fun getFollowByFromUserIdAndToUserId(fromUserId: UserIdentity, toUserId: UserIdentity): Follow?
fun ... | 15 | Kotlin | 0 | 1 | 8f709c4dd8bddbfd07f5ed1c6edcc447f00babc9 | 490 | meet-in | Apache License 2.0 |
app/src/main/java/com/idleoffice/harvesthelper/ui/screen/plantdetails/data/PlantDetailsData.kt | dan-0 | 455,972,455 | false | {"Kotlin": 55404} | package com.idleoffice.harvesthelper.ui.screen.plantdetails.data
data class PlantDetailsData(
val name: String,
val description: String,
val optimalSun: String,
val optimalSoil: String,
val whenToPlant: String,
val growingFromSeed: String,
val transplanting: String,
val spacing: String,... | 0 | Kotlin | 0 | 0 | aaf72bafb5f935817536ab3453f9efc236ff484f | 576 | harvesthelper | MIT License |
app/src/androidTest/kotlin/com/mustalk/minisimulator/TestMiniSimulatorApp.kt | mustalk | 829,185,459 | false | {"Kotlin": 191863, "JavaScript": 6806, "Ruby": 4353, "Shell": 656} | package com.mustalk.minisimulator
import android.app.Application
import dagger.hilt.android.testing.HiltAndroidTest
/**
* @author by MusTalK on 15/07/2024
*/
@HiltAndroidTest
class TestMiniSimulatorApp : Application()
| 0 | Kotlin | 0 | 1 | a5943be3bdb9b637c846db6ccae994e576673d8f | 223 | MiniSoccerSimulator | Apache License 2.0 |
tachikoma-grpc/src/main/kotlin/com/sourceforgery/tachikoma/unsubscribe/UnsubscribeDecoderImpl.kt | SourceForgery | 112,076,342 | false | null | package com.sourceforgery.tachikoma.unsubscribe
import com.google.protobuf.ByteString
import com.sourceforgery.tachikoma.common.HmacUtil
import com.sourceforgery.tachikoma.common.randomDelay
import com.sourceforgery.tachikoma.config.TrackingConfig
import com.sourceforgery.tachikoma.grpc.frontend.unsubscribe.SignedUnsu... | 7 | null | 3 | 5 | 12d8d0e0ccafaa8506b98d6269cae4f1bb228bf4 | 1,819 | tachikoma | Apache License 2.0 |
src/main/kotlin/com/github/pavponn/fsds/ForwardSecureDigitalSignatures.kt | pavponn | 358,633,243 | false | null | package com.github.pavponn.fsds
import com.github.pavponn.message.Message
import com.github.pavponn.utils.ProcessId
import com.github.pavponn.utils.Signature
import com.github.pavponn.utils.Timestamp
/**
* @author pavponn
*
* An interface that should be implemented by any implementation of forward-secure digital s... | 0 | Kotlin | 0 | 21 | f56b02cb1d335222fa6bfe84af30feb5d119cb0a | 907 | pastro | MIT License |
hub/src/main/kotlin/uk/co/sentinelweb/cuer/hub/ui/common/button/ButtonStyles.kt | sentinelweb | 220,796,368 | false | {"Kotlin": 2604269, "CSS": 205156, "Java": 98919, "Swift": 85812, "HTML": 19322, "JavaScript": 12105, "Ruby": 2170} | package uk.co.sentinelweb.cuer.hub.ui.common.button
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.layout.padding
import androidx.compose.material.*
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androi... | 95 | Kotlin | 0 | 2 | 55f09fc30a398c9663789ef58a7b955a7a52153f | 2,757 | cuer | Apache License 2.0 |
src/main/kotlin/com/github/themartdev/intellijgleam/ide/completion/GleamCompletionProvider.kt | themartdev | 842,744,615 | false | {"Kotlin": 103991, "Java": 36259, "Lex": 9408, "Gleam": 7555} | package com.github.themartdev.intellijgleam.ide.completion
import com.intellij.codeInsight.completion.CompletionParameters
import com.intellij.codeInsight.completion.CompletionProvider
import com.intellij.codeInsight.completion.CompletionType
import com.intellij.patterns.ElementPattern
import com.intellij.psi.PsiEleme... | 4 | Kotlin | 0 | 3 | be1f5aaf6fde3c82c8db88292c74874d49b4f4fb | 525 | intellij-gleam | Apache License 2.0 |
src/ii_collections/_16_FlatMap.kt | vitaliy555 | 59,961,110 | false | null | package ii_collections
fun example() {
val result = listOf("abc", "12").flatMap { it.toList() }
result == listOf('a', 'b', 'c', '1', '2')
}
val Customer.orderedProducts: Set<Product> get() {
// Return all products ordered by customer
// return this.
// todoCollectionTask()
return orders.flatMa... | 0 | Kotlin | 0 | 0 | 254e6c6764f6d1e5c09901158309d2dab3cb8522 | 661 | stdkotlin | MIT License |
app/src/main/kotlin/com/gdgnantes/devfest/android/widget/TextViewExtensions.kt | cyrilmottier | 96,089,951 | true | {"Kotlin": 109587, "Java": 27644, "HTML": 3516, "IDL": 674, "Shell": 290, "QMake": 226, "Prolog": 33} | package com.gdgnantes.devfest.android.widget
import android.view.View
import android.widget.TextView
fun TextView.applyText(text: String?) {
if (!text.isNullOrEmpty()) {
visibility = View.VISIBLE
setText(text)
} else {
visibility = View.GONE
}
} | 1 | Kotlin | 1 | 3 | 014abd7b53ab82858a3144d5962682da73408286 | 283 | devfest-android | Apache License 2.0 |
analysis/src/test/kotlin/io/gitplag/analysis/CombinedAnalyzerTest.kt | nikita715 | 163,607,927 | false | {"Kotlin": 210708, "JavaScript": 63990, "Java": 10988, "CSS": 3445, "HTML": 2310, "Dockerfile": 1200, "Shell": 148} | //package io.gitplag.analysis
//
//import com.nhaarman.mockitokotlin2.any
//import com.nhaarman.mockitokotlin2.doReturn
//import com.nhaarman.mockitokotlin2.mock
//import io.gitplag.analysis.analyzer.CombinedAnalyzer
//import io.gitplag.analysis.analyzer.JPlagAnalyzer
//import io.gitplag.analysis.analyzer.MossAnalyzer
... | 2 | Kotlin | 1 | 3 | fb0cd89f62c482d880f7b9c2f8c679a14f09e45e | 5,148 | gitplag | Apache License 2.0 |
bootstrap-icons-compose/src/main/java/com/wiryadev/bootstrapiconscompose/bootstrapicons/normal/VectorPen.kt | wiryadev | 380,639,096 | false | null | package com.wiryadev.bootstrapiconscompose.bootstrapicons.normal
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
imp... | 0 | Kotlin | 0 | 2 | 1c199d953dc96b261aab16ac230dc7f01fb14a53 | 3,084 | bootstrap-icons-compose | MIT License |
libpretixsync/src/test/java/eu/pretix/libpretixsync/db/QuestionAnswerRequiredValidationTest.kt | julianrother | 511,253,461 | false | {"reStructuredText": 1, "Text": 2, "YAML": 1, "Gradle": 3, "Shell": 1, "Batchfile": 1, "Ignore List": 1, "Kotlin": 29, "Java": 98, "JSON": 28, "Protocol Buffer": 1, "INI": 1} | package eu.pretix.libpretixsync.db
import org.junit.Assert.fail
import org.junit.Test
class QuestionAnswerRequiredValidationTest {
@Test
@Throws(QuestionLike.ValidationException::class)
fun testBoolean() {
val q = Question()
q.isRequired = true
q.setJson_data("{\"id\":1,\"questio... | 1 | null | 1 | 1 | 570c965e26bac9db4168d7d26d1f2180b0613203 | 1,453 | libpretixsync | Apache License 2.0 |
SuperShortcut/src/main/java/net/geekstools/supershortcuts/PRO/Utils/InAppStore/DigitalAssets/Extensions/InAppBillingTextEditor.kt | eliasdfazel | 756,287,152 | false | {"Gradle": 4, "Markdown": 1, "Java Properties": 4, "Shell": 1, "Text": 2, "Ignore List": 3, "Batchfile": 1, "JSON": 1, "Proguard": 1, "XML": 81, "Kotlin": 55, "Java": 50, "INI": 1} | /*
* Copyright © 2020 By Geeks Empire.
*
* Created by Elias Fazel
* Last modified 4/28/20 11:16 AM
*
* Licensed Under MIT License.
* https://opensource.org/licenses/MIT
*/
package net.geekstools.supershortcuts.PRO.Utils.InAppStore.DigitalAssets.Extensions
fun String.convertToItemTitle() : String {
val te... | 0 | Java | 0 | 1 | 4680873016ba2e5561c84eff8f32769cdbd810ea | 1,007 | SuperShortcut | MIT License |
src/main/kotlin/no/nav/helseidnavtest/health/AbstractPingableHealthIndicator.kt | navikt | 754,033,318 | false | {"Kotlin": 98064} | package no.nav.helseidnavtest.health
import org.springframework.boot.actuate.health.Health
import org.springframework.boot.actuate.health.HealthIndicator
abstract class AbstractPingableHealthIndicator(private val pingable : Pingable) : HealthIndicator {
override fun health() =
runCatching {
up... | 0 | Kotlin | 0 | 0 | 970c361092c9c1a7297ea902774c71e500240b2a | 1,050 | helseid-nav-test | MIT License |
feature/main/src/main/java/com/lkw1120/pokedex/feature/main/pager/PagerRoute.kt | lkw1120 | 727,588,825 | false | {"Kotlin": 96364} | package com.lkw1120.pokedex.feature.main.pager
object PagerRoute {
const val PokeListScreen = "PokeListScreen"
const val CatchListScreen = "CatchListScreen"
} | 0 | Kotlin | 0 | 1 | e23e22eb69390706b1bdf21c1df0d6b8ed541183 | 167 | compose-pokedex | Apache License 2.0 |
src/main/kotlin/com/terraformation/backend/accelerator/api/EventsController.kt | terraware | 323,722,525 | false | {"Kotlin": 5915686, "HTML": 133643, "Python": 46250, "FreeMarker": 21464, "PLpgSQL": 20103, "Makefile": 746, "Dockerfile": 667, "JavaScript": 380} | package com.terraformation.backend.accelerator.api
import com.terraformation.backend.accelerator.db.ModuleEventStore
import com.terraformation.backend.accelerator.db.ModuleStore
import com.terraformation.backend.accelerator.model.EventModel
import com.terraformation.backend.api.AcceleratorEndpoint
import com.terraform... | 5 | Kotlin | 1 | 10 | f5ff8e92bf3bf6d15493f9f55c268a0b720c5b55 | 7,228 | terraware-server | Apache License 2.0 |
exercises/src/test/kotlin/com/ubertob/fotf/exercises/chapter6/E02_ElevatorEventsTest.kt | uberto | 654,026,766 | false | null | package com.ubertob.fotf.exercises.chapter6
import com.ubertob.fotf.exercises.chapter6.ElevatorCommand.CallElevator
import com.ubertob.fotf.exercises.chapter6.ElevatorCommand.GoToFloor
import com.ubertob.fotf.exercises.chapter6.ElevatorEvent.ButtonPressed
import com.ubertob.fotf.exercises.chapter6.ElevatorEvent.Elevat... | 0 | Kotlin | 0 | 2 | 2f80b8f4022cacbf6d7a92919224f98d37453a4d | 1,590 | fotf | MIT License |
src/test/kotlin/dev/bogwalk/util/tests/fakeFunctions.kt | bog-walk | 381,459,475 | false | null | package dev.bogwalk.util.tests
import kotlin.math.pow
internal fun fastFake(n: Int): Int {
return n * n * 100
}
internal fun mediumFake(n: Int): Int {
Thread.sleep(10L)
return n * n * 100
}
internal fun slowFake(n: Int): Int {
Thread.sleep(1000L)
return n * n * 100
}
internal fun fakeA(n: Int):... | 0 | Kotlin | 0 | 0 | 62b33367e3d1e15f7ea872d151c3512f8c606ce7 | 776 | project-euler-kotlin | MIT License |
app/src/main/java/soy/gabimoreno/audioclean/presentation/MainViewModel.kt | soygabimoreno | 266,280,006 | false | {"Kotlin": 63351, "CMake": 1598} | package soy.gabimoreno.audioclean.presentation
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import soy.gabimoreno.audioclean.data.analytics.AnalyticsTrackerComponent
import soy.gabimoreno.audioclean.data.analytics.error.ErrorTrackerComponent
import so... | 0 | Kotlin | 0 | 9 | 624e2a5622e9da3bf46ecbf980db5a6621ce99f4 | 5,635 | AudioClean | Apache License 2.0 |
core/ui/src/main/java/com/kursatkumsuz/ui/components/CircularProgress.kt | kursatkumsuz | 554,661,928 | false | {"Kotlin": 166960} | package com.kursatkumsuz.ui.components.common
import androidx.compose.foundation.layout.size
import androidx.compose.material.CircularProgressIndicator
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.unit.dp
@Composabl... | 0 | Kotlin | 7 | 41 | 664e597b49a981867966dab9a292c02e28cc61cf | 458 | crypto-portfolio-jetpack-compose | Apache License 2.0 |
Type-2/Android-HomeAssistant/app/src/main/java/com/example/androidhome_assistantdemo/PermissionManager.kt | sqlab-sustech | 437,197,260 | false | null | package com.example.androidhome_assistantdemo
import android.Manifest
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.os.Build
import androidx.core.app.ActivityCompat
import androidx.fragment.app.Fragment
class PermissionManager {
companion obje... | 1 | null | 1 | 1 | cc1bd734bb108b481dfe8465807151f02290afc4 | 2,219 | APER-ARPfix-benchmark | Academic Free License v3.0 |
app/src/main/kotlin/org/eurofurence/connavigator/gcm/NotificationFactory.kt | TempestTraxx | 144,325,788 | false | null | package org.eurofurence.connavigator.gcm
import android.app.Activity
import android.app.Notification
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.graphics.BitmapFactory
import android.graphics.Color
import android.media.RingtoneManager
import android.supp... | 1 | null | 1 | 1 | a7328c6d0a3b92bd95b3c180c5724f1025ac7a23 | 4,452 | ef-app_android | MIT License |
src/plugin-api/main/uk/co/reecedunn/intellij/plugin/processor/query/QueryProcessor.kt | rhdunn | 62,201,764 | false | null | /*
* Copyright (C) 2018-2021 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 47 | Kotlin | 4 | 25 | d363dad28df1eb17c815a821c87b4f15d2b30343 | 842 | xquery-intellij-plugin | Apache License 2.0 |
app/src/main/java/com/oyamo/enforcement/EnforcementApp.kt | oyamo | 542,548,064 | false | {"Kotlin": 35116} | package com.oyamo.enforcement
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class EnforcementApp: Application() {
override fun onCreate() {
super.onCreate()
}
} | 0 | Kotlin | 0 | 0 | f284ff4239efbcb127ab440bb61256c450ec8060 | 221 | Enforcement | Apache License 2.0 |
core/src/river/exertion/kcop/assets/NarrativeAssetLoader.kt | exertionriver | 589,248,613 | false | null | package river.exertion.kcop.assets
import com.badlogic.gdx.assets.AssetDescriptor
import com.badlogic.gdx.assets.AssetLoaderParameters
import com.badlogic.gdx.assets.AssetManager
import com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader
import com.badlogic.gdx.assets.loaders.FileHandleResolver
import com.badlogic... | 0 | Kotlin | 0 | 0 | 011e04852134376b1888aa115885d535d72d8c8c | 4,033 | kcop | MIT License |
src/main/kotlin/de/debuglevel/bragi/character/UpdateCharacterRequest.kt | debuglevel | 282,505,005 | false | null | package de.debuglevel.bragi.character
import de.debuglevel.bragi.DataUrlUtils
import de.debuglevel.bragi.entity.UpdateEntityRequest
data class UpdateCharacterRequest(
var name: String,
var aliases: MutableList<String>,
var notes: String,
var picture: String?
) : UpdateEntityRequest<Character> {
ov... | 13 | Kotlin | 0 | 0 | 7ee6040b8280ea44c780ae6842aedc464b6278bf | 691 | bragi | The Unlicense |
src/test/kotlin/org/opensearch/commons/notifications/model/WebhookTests.kt | opensearch-project | 354,136,133 | false | null | /*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/
package org.opensearch.commons.notifications.model
import com.fasterxml.jackson.core.JsonParseException
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.assertThrows
imp... | 18 | Kotlin | 65 | 7 | d221aa35182c323a191144cdb3668f08df45d964 | 3,866 | common-utils | Apache License 2.0 |
src/commonMain/kotlin/com/linecorp/abc/location/ABCLocationCompanion.kt | line | 417,334,045 | false | {"Kotlin": 39278, "Ruby": 1878} | package com.linecorp.abc.location
typealias OnLocationUpdatedBlock = (location: LocationData) -> Unit
typealias OnLocationUnavailableBlock = () -> Unit
typealias OnPermissionUpdatedBlock = (isGranted: Boolean) -> Unit
interface ABCLocationCompanion {
fun isPermissionAllowed(): Boolean
fun currentLocation(bloc... | 1 | Kotlin | 8 | 72 | 5637d4e544175bc91e566c0331c9a9f9b09dda9d | 936 | abc-kmm-location | Apache License 2.0 |
TravelerService/src/main/kotlin/it/polito/travelerservice/models/TicketsToBuy.kt | tndevelop | 586,797,974 | false | null | package it.polito.travelerservice.models
data class TicketsToBuy (
val cmd: String,
val quantity: Int,
val zones: String,
val validity: Long, // minutes
val type: String
) | 0 | Kotlin | 1 | 0 | ebf7f88811287d89c98ff2f9e076c7fcf2a294b3 | 196 | Spring-PublicTransportSystem | MIT License |
fontawesome/src/de/msrd0/fontawesome/icons/FA_SUBSCRIPT.kt | msrd0 | 363,665,023 | false | null | /* @generated
*
* This file is part of the FontAwesome Kotlin library.
* https://github.com/msrd0/fontawesome-kt
*
* This library is not affiliated with FontAwesome.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 1 | Kotlin | 0 | 0 | a49fdedb55f0a931db5121fe187ef199bc72203c | 1,907 | fontawesome-kt | Apache License 2.0 |
src/main/kotlin/org/arend/module/config/ArendModuleConfigService.kt | i-walker | 237,828,319 | false | {"Gradle Kotlin DSL": 2, "INI": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "YAML": 1, "Markdown": 1, "Kotlin": 318, "Java": 3, "XML": 1, "SVG": 14, "HTML": 4, "JFlex": 1} | package org.arend.module.config
import com.intellij.notification.NotificationType
import com.intellij.openapi.components.service
import com.intellij.openapi.module.Module
import com.intellij.openapi.module.ModuleServiceManager
import com.intellij.openapi.roots.*
import com.intellij.openapi.util.io.FileUtil
import com.... | 1 | null | 1 | 1 | 2d0a859283fac64d05bfd75c7e6a9bafb25eaee6 | 7,071 | intellij-arend | Apache License 2.0 |
app/src/main/java/com/rarilabs/rarime/api/ext_integrator/models/ExtIntegrator.kt | rarimo | 775,551,013 | false | {"Kotlin": 1003623, "Java": 86126, "C++": 17305, "C": 5321, "CMake": 1262} | package com.rarilabs.rarime.api.ext_integrator.models
import com.rarilabs.rarime.util.data.ZkProof
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
enum class ExtIntegratorActions(val value: String) {
SignTypedData("signTypedData"),
Authorize("authorize"),
QueryProofGen("proof-request"),... | 2 | Kotlin | 0 | 5 | 4a6f02a529298467905c6929dedbc67e803f86f5 | 2,035 | rarime-android-app | MIT License |
src/main/kotlin/com/chaottic/incongruous/client/renderer/entity/HenchmanRenderer.kt | chaottic | 585,792,439 | false | null | package com.chaottic.incongruous.client.renderer.entity
import com.chaottic.incongruous.client.IncongruousModelLayers
import com.chaottic.incongruous.client.model.HenchmanModel
import com.chaottic.incongruous.common.Incongruous
import com.chaottic.incongruous.common.entity.Henchman
import net.minecraft.client.renderer... | 0 | Kotlin | 0 | 0 | 7bde177ae9e038cc05c778bc38b26134238910ed | 783 | incongruous | MIT License |
src/test/kotlin/dsx/bps/crypto/btc/BtcRpcTest.kt | dsx-tech | 167,199,361 | false | null | package dsx.bps.crypto.btc
import dsx.bps.crypto.eth.KGenericContainer
import org.junit.jupiter.api.*
import org.junit.jupiter.api.Assertions.assertDoesNotThrow
import org.junit.jupiter.api.Assertions.assertEquals
import org.testcontainers.containers.wait.strategy.Wait.forLogMessage
import org.testcontainers.junit.jup... | 0 | Kotlin | 7 | 5 | 97c22beec449216af3a02e027a0d68c079a44fbf | 4,811 | Blockchain-Payment-System | Apache License 2.0 |
src/test/kotlin/dsx/bps/crypto/btc/BtcRpcTest.kt | dsx-tech | 167,199,361 | false | null | package dsx.bps.crypto.btc
import dsx.bps.crypto.eth.KGenericContainer
import org.junit.jupiter.api.*
import org.junit.jupiter.api.Assertions.assertDoesNotThrow
import org.junit.jupiter.api.Assertions.assertEquals
import org.testcontainers.containers.wait.strategy.Wait.forLogMessage
import org.testcontainers.junit.jup... | 0 | Kotlin | 7 | 5 | 97c22beec449216af3a02e027a0d68c079a44fbf | 4,811 | Blockchain-Payment-System | Apache License 2.0 |
extensions/paintboard/main/kotlin/org/hoshino9/luogu/paintboard/PainterManager.kt | HoshinoTented | 152,888,590 | false | null | package org.hoshino9.luogu.paintboard
import kotlinx.coroutines.*
import java.util.LinkedList
import java.util.Queue
import kotlin.coroutines.CoroutineContext
import kotlin.coroutines.EmptyCoroutineContext
/**
* 计时器
*
* 每经过 [delay] 毫秒,就会向请求队列 [queue] 中添加计时器
*
* @param painter 当前计时器对应的绘画者
* @param queue 目标请求队列
... | 12 | Kotlin | 0 | 34 | 28523e9057462aca5ac2eb0af375fb220069dbe8 | 2,913 | LuoGuAPI | MIT License |
app/src/main/java/com/personal/weathering/weather/presenation/weather/components/AqPanel.kt | Avvami | 702,061,643 | false | {"Kotlin": 348568} | package com.personal.weathering.weather.presenation.weather.components
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.core.animateIntAsState
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Ar... | 0 | Kotlin | 1 | 2 | eb6c7b47d90bde7fb0b35f985b20ea06872de0df | 13,052 | Weathering | MIT License |
shared/src/commonMain/kotlin/analytics/AnalyticConstant.kt | piappstudio | 696,508,694 | false | {"Kotlin": 145998, "Swift": 941, "Shell": 228} | package analytics
object AnalyticConstant {
object Screen {
const val HOME = "HOME"
const val EPISODE_DETAIL = "EPISODE_DETAIL"
const val PARTICIPANT_DETAIL = "PARTICIPANT_DETAIL"
const val VOTING = "VOTING"
const val TRENDING = "TRENDING"
const val ELIMINATED = "ELI... | 0 | Kotlin | 3 | 9 | 22af22bd245fd0765ea95569b6a2101e40825112 | 906 | BiggBoss | Apache License 2.0 |
src/test/kotlin/no/nav/tms/varsel/hendelse/gateway/VarselArkivertSinkTest.kt | navikt | 591,229,305 | false | {"Kotlin": 35891, "Dockerfile": 155} | package no.nav.tms.varsel.hendelse.gateway
import com.fasterxml.jackson.databind.ObjectMapper
import io.kotest.matchers.shouldBe
import no.nav.helse.rapids_rivers.testsupport.TestRapid
import org.apache.kafka.clients.producer.MockProducer
import org.apache.kafka.common.serialization.StringSerializer
import org.junit.j... | 2 | Kotlin | 0 | 0 | f630fe086b812aeb7e10d7287b927aee917e161a | 2,019 | tms-varsel-event-gateway | MIT License |
domain/src/main/java/com/hasegawa/diapp/domain/entities/SyncEntity.kt | AranHase | 55,708,682 | false | null | /*
* Copyright 2016 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writin... | 6 | Kotlin | 1 | 8 | 80e2c6d345a63ce75a1383f52f08bfb1f0a1535b | 1,014 | PassosDoImpeachment-app | Apache License 2.0 |
ThirdPartyAdapters/yahoo/yahoo/src/main/java/com/google/ads/mediation/yahoo/Empty.kt | googleads | 41,122,795 | false | {"Java": 1178060, "Kotlin": 379507} | package com.google.ads.mediation.yahoo
/**
* Need an empty kotlin source file for gradle to build and test since the unit tests are in kotlin.
*/
private class Empty {}
| 37 | Java | 212 | 227 | 1077d7439ad52d958aff22ed58a6eb2bbf15473c | 172 | googleads-mobile-android-mediation | Apache License 2.0 |
integration-testing/src/test/kotlin/me/omico/gradm/WithKotlinMultiplatformTest.kt | Omico | 464,079,553 | false | {"Kotlin": 175015} | /*
* Copyright 2023 Omico
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 3 | Kotlin | 2 | 36 | ecccebe79610be8e66a5f9944dff9e3dc8c12368 | 1,272 | Gradm | Apache License 2.0 |
app/src/main/kotlin/com/wiley/fordummies/androidsdk/tictactoe/model/UserAccountRepository.kt | acchampion | 157,287,910 | false | null | package com.wiley.fordummies.androidsdk.tictactoe.model
import android.app.Application
import androidx.lifecycle.LiveData
/**
* Single point of accessing UserAccount data in the app.
*
* Source: https://developer.android.com/codelabs/android-room-with-a-view
*
* Created by acc on 2021/08/04.
*/
class UserAccoun... | 0 | Kotlin | 1 | 1 | 11a1d8c454839c95e6dd2a66e0eae6fd62d14e11 | 2,133 | TicTacToeKotlin | Apache License 2.0 |
data/RF04028/rnartist.kts | fjossinet | 449,239,232 | false | {"Kotlin": 8214424} | import io.github.fjossinet.rnartist.core.*
rnartist {
ss {
rfam {
id = "RF04028"
name = "consensus"
use alignment numbering
}
}
theme {
details {
value = 3
}
color {
location {
1 to 3... | 0 | Kotlin | 0 | 0 | 3016050675602d506a0e308f07d071abf1524b67 | 1,529 | Rfam-for-RNArtist | MIT License |
src/main/kotlin/org/docksidestage/app/web/lido/product/ProductDetailResult.kt | t-kameyama | 155,081,790 | false | {"Java": 3880666, "HTML": 450087, "XSLT": 218435, "Kotlin": 212436, "CSS": 40882, "Batchfile": 39790, "Shell": 26401, "JavaScript": 12637, "Perl": 9821, "Python": 3285, "Roff": 105} | package org.docksidestage.app.web.lido.product
import org.lastaflute.web.validation.Required
/**
* @author s.tadokoro
* @author jflute
*/
class ProductDetailResult {
@Required
var productId: Int? = null
@Required
var productName: String? = null
@Required
var categoryName: String? = null
... | 0 | Java | 1 | 0 | a1544951284d5e2ed7b46583c5175c54045c08d3 | 424 | lastaflute-example-paradeplaza | Apache License 2.0 |
decoder/src/commonTest/kotlin/io/github/charlietap/chasm/decoder/decoder/section/table/TableSectionDecoderTest.kt | CharlieTap | 743,980,037 | false | {"Kotlin": 2038087, "WebAssembly": 45714} | package io.github.charlietap.chasm.decoder.wasm.decoder.section.table
import com.github.michaelbull.result.Ok
import io.github.charlietap.chasm.ast.instruction.Expression
import io.github.charlietap.chasm.ast.module.Index
import io.github.charlietap.chasm.ast.module.Table
import io.github.charlietap.chasm.decoder.wasm... | 5 | Kotlin | 3 | 67 | dd6fa51262510ecc5ee5b03866b3fa5d1384433b | 1,618 | chasm | Apache License 2.0 |
tangle-fragment-api/src/main/kotlin/tangle/fragment/arg.kt | RBusarow | 382,741,106 | false | null | /*
* Copyright (C) 2021 Rick Busarow
* 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 ... | 22 | Kotlin | 106 | 53 | 03a791e258b1529b518b4d68c856a774e6656792 | 880 | Tangle | Apache License 2.0 |
gradle-plugin/src/main/kotlin/com/github/mejiomah17/yasb/GeneratorPlugin.kt | MEJIOMAH17 | 492,593,605 | false | {"Kotlin": 307256} | package com.github.mejiomah17.yasb
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.tasks.TaskProvider
import org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
class GeneratorPlugin : Plugin<Project> {
override fun apply(t... | 0 | Kotlin | 0 | 8 | 82116cd3674fedd789dd10463be5f22a9b4024c5 | 1,451 | yasb | MIT License |
idea/testData/intentions/convertToExpressionBody/afterFunWithUnitTypeWithThrow.kt | hhariri | 21,116,939 | true | {"Markdown": 19, "XML": 443, "Ant Build System": 23, "Ignore List": 7, "Protocol Buffer": 2, "Java": 3757, "Kotlin": 11162, "Roff": 59, "JAR Manifest": 1, "INI": 7, "Text": 916, "Java Properties": 10, "HTML": 102, "Roff Manpage": 8, "Groovy": 7, "Gradle": 61, "Maven POM": 34, "CSS": 10, "JavaScript": 42, "JFlex": 3, "B... | // "Convert to expression body" "true"
fun foo(): Unit = throw UnsupportedOperationException()
| 0 | Java | 0 | 0 | d150bfbce0e2e47d687f39e2fd233ea55b2ccd26 | 95 | kotlin | Apache License 2.0 |
grooves-example-pushstyle/src/main/kotlin/grooves/example/push/ContextManager.kt | rahulsom | 82,593,452 | false | null | package grooves.example.push
/**
* Wraps [ThreadLocal] such that it works with [ContextAwareScheduler].
* This along with [ContextAwareScheduler] is based on
* [http://akarnokd.blogspot.com/2015/05/schedulers-part-1.html](http://akarnokd.blogspot.com/2015/05/schedulers-part-1.html).
*
*/
object ContextManager {
... | 15 | Java | 5 | 9 | 86c79eef6f73f3acbfa380f962c6fcc302c9c376 | 460 | grooves | Apache License 2.0 |
shared/src/commonMain/kotlin/net/rafaeltoledo/reddit/data/RedditObjectSerializer.kt | rafaeltoledo | 598,903,715 | false | {"Kotlin": 15850, "Swift": 2914} | package net.rafaeltoledo.reddit.data
import kotlinx.serialization.InternalSerializationApi
import kotlinx.serialization.KSerializer
import kotlinx.serialization.Serializable
import kotlinx.serialization.descriptors.SerialDescriptor
import kotlinx.serialization.encoding.Decoder
import kotlinx.serialization.encoding.Enc... | 0 | Kotlin | 0 | 3 | 45c86d206c4aff9e77ee0b711a2c2f3f42c19e40 | 1,716 | kmp-sandbox | MIT License |
uicorek/src/main/java/com/mozhimen/uicorek/adapterk/fragment/bases/BaseFragmentInfo.kt | mozhimen | 353,952,154 | false | {"Kotlin": 2524122, "Java": 320964, "AIDL": 1012} | package com.mozhimen.uicorek.adapterk.fragment.bases
import androidx.fragment.app.Fragment
import com.mozhimen.basick.elemk.commons.I_AListener
/**
* @ClassName BaseFragmentInfo
* @Description TODO
* @Author Mozhimen / Kolin Zhao
* @Date 2023/10/17 0:49
* @Version 1.0
*/
open class BaseFragmentInfo(var onCreate... | 0 | Kotlin | 6 | 114 | cb57f02283ecd7454cb057cad804a8dbf197cfc4 | 391 | SwiftKit | Apache License 2.0 |
uicorek/src/main/java/com/mozhimen/uicorek/adapterk/fragment/bases/BaseFragmentInfo.kt | mozhimen | 353,952,154 | false | {"Kotlin": 2524122, "Java": 320964, "AIDL": 1012} | package com.mozhimen.uicorek.adapterk.fragment.bases
import androidx.fragment.app.Fragment
import com.mozhimen.basick.elemk.commons.I_AListener
/**
* @ClassName BaseFragmentInfo
* @Description TODO
* @Author Mozhimen / Kolin Zhao
* @Date 2023/10/17 0:49
* @Version 1.0
*/
open class BaseFragmentInfo(var onCreate... | 0 | Kotlin | 6 | 114 | cb57f02283ecd7454cb057cad804a8dbf197cfc4 | 391 | SwiftKit | Apache License 2.0 |
app/src/main/java/com/mlm09kdev/superHeroDB/model/database/entity/Powerstats.kt | mlm09kDev | 236,341,237 | false | null | package com.mlm09kdev.superHeroDB.model.database.entity
data class Powerstats(
val power: String,
val intelligence: String,
val combat: String,
val speed: String,
val strength: String,
val durability: String
) {
override fun equals(other: Any?): Boolean {
if (javaClass != other?.ja... | 0 | Kotlin | 1 | 2 | 2976c527025f045e9e04bad1551e2b3f1497e19a | 797 | SuperHero-DB | The Unlicense |
generator/common/src/main/kotlin/me/kcra/takenaka/generator/common/Generator.kt | zlataovce | 596,960,001 | false | null | /*
* This file is part of takenaka, licensed under the Apache License, Version 2.0 (the "License").
*
* Copyright (c) 2023 Matous Kucera
*
* 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 r... | 5 | Kotlin | 0 | 7 | 4cbb3736c5a56816542ca97ec6f562142818ec90 | 1,441 | takenaka | Apache License 2.0 |
file-picker/src/main/java/com/github/file_picker/data/repository/FilesRepository.kt | MajidArabi | 463,530,372 | false | {"Kotlin": 44565} | package com.github.file_picker.data.repository
import android.app.Application
import androidx.paging.Pager
import androidx.paging.PagingConfig
import com.github.file_picker.FileType
import com.github.file_picker.PAGE_SIZE
class FilesRepository(
private val application: Application
) {
fun getFiles(
f... | 3 | Kotlin | 8 | 57 | 2479edfaaf87d437b12987885a9a7bcf03224c38 | 647 | AndroidFilePicker | Apache License 2.0 |
code/library/src/main/kotlin/org/fbme/lib/iec61499/fbnetwork/PortPath.kt | JetBrains | 267,360,098 | false | {"JetBrains MPS": 5551574, "Kotlin": 995740, "Tcl": 4745, "ANTLR": 4585} | package org.fbme.lib.iec61499.fbnetwork
import org.fbme.lib.common.Declaration
import org.fbme.lib.common.DeclarationPath
import org.fbme.lib.iec61499.declarations.EventDeclaration
import org.fbme.lib.iec61499.declarations.ParameterDeclaration
import org.fbme.lib.iec61499.declarations.PlugDeclaration
import org.fbme.l... | 10 | JetBrains MPS | 15 | 19 | 6b5932193c67c2695f53743da89d35802f4e76cc | 2,988 | fbme | Apache License 2.0 |
src/commonMain/kotlin/asia/hombre/keccak/KeccakParameter.kt | ronhombre | 783,464,381 | false | {"Kotlin": 34473, "JavaScript": 3171} | package asia.hombre.keccak
import kotlin.js.ExperimentalJsExport
import kotlin.js.JsExport
import kotlin.jvm.JvmField
/**
* Parameter sets for SHA-3(Keccak).
*
* This class contains the defined parameter values for each set of SHA-3 Hash Functions defined in FIPS 202.
*
* @author Ron Lauren Hombre
*/
@OptIn(Exp... | 0 | Kotlin | 0 | 2 | 0ec71af1d7dd714ff746770014d653510800d638 | 1,552 | KeccakKotlin | Apache License 2.0 |
misc/03-multiplier/src/test/kotlin/MultiplyFunctionTest.kt | frwang96 | 416,809,961 | false | null | /*
* SPDX-License-Identifier: Apache-2.0
*/
@file:Verik
import io.verik.core.*
@Entry
object MultiplyFunctionTest : Module() {
@Run
fun test() {
repeat(128) {
val a: Ubit<`32`> = randomUbit()
val b: Ubit<`32`> = randomUbit()
val actual = multiplyByAdding(a, b)
... | 0 | Kotlin | 1 | 5 | 9a0f5f79b824e69a33dc4f9717d3b9e3ed103180 | 534 | verik-examples | Apache License 2.0 |
src/main/kotlin/com/hoangtien2k3/userservice/model/dto/response/JwtResponse.kt | hoangtien2k3qx1 | 724,051,146 | false | {"Kotlin": 44285} | package com.hoangtien2k3.userservice.model.dto.response
import lombok.Getter
import lombok.RequiredArgsConstructor
import lombok.Setter
import org.springframework.security.core.GrantedAuthority
@Getter
@Setter
@RequiredArgsConstructor
class JwtResponse(
var accessToken: String?,
var refreshToken: String?,
... | 1 | Kotlin | 0 | 0 | 192bb887f33bdf37b9d0daff6569f780bd47a4d2 | 435 | kotlin-security-jwt-token | MIT License |
openrndr-application/src/jvmMain/kotlin/org/openrndr/platform/MacOSPlatformDriver.kt | ylegall | 254,515,360 | false | null | package org.openrndr.platform
import java.io.File
class MacOSPlatformDriver : PlatformDriver {
override fun temporaryDirectory(): File {
val directoryName = System.getProperty("java.io.tmpdir") + "OPENRNDR-" + randomID
val file = File(directoryName)
if (!file.exists()) {
file.m... | 0 | null | 0 | 5 | 29a9045bc7676e330ea65be745d41fffe6e47b4b | 1,334 | openrndr | BSD 2-Clause FreeBSD License |
grundlagen-tag-02-variablen-just1984/src/main/kotlin/1_VariableBoolean.kt | just1984 | 639,436,580 | false | null | fun main() {
var isDayGood: Boolean = false
println("Is the day good? $isDayGood")
val syntax: Boolean = true
println("Q: Is it true that Syntax is the best Bootcamp there is?\nA: Yes it's $syntax")
}
// In dieser Aufgabe bekommst du eine bereits angelegte Variable mit einem Initialwert und sollst Code schreiben,
// ... | 0 | Kotlin | 0 | 0 | 3b6a84bb526f2c2151fe761526bdb1253f343df1 | 494 | school_progress_kotlin | MIT License |
app/src/main/java/com/tugcearas/newsapp/util/constants/Constants.kt | TugceAras | 596,081,258 | false | null | package com.tugcearas.newsapp.util.constants
object Constants {
const val API_KEY = "be87b8a0b8bc446399f9d082ebf84da4"
const val BASE_URL = "https://newsapi.org/"
const val ENDPOINT_EVERYTHING = "v2/everything"
const val ENDPOINT_HEADLINES = "v2/top-headlines"
} | 0 | Kotlin | 0 | 2 | 3abfe7a79e2991d45cea8017df60c7cdec286a1a | 279 | NewsApp | MIT License |
src/main/kotlin/com/github/kkkiio/intellij/protobuf/golang/PbGoFillAllFieldsIntention.kt | KKKIIO | 314,425,028 | false | null | package com.github.kkkiio.intellij.protobuf.golang
import com.goide.intentions.expressions.structLiteral.GoFillFieldsIntentionBase
import com.goide.intentions.expressions.structLiteral.GoFillStructInfo
import com.goide.intentions.expressions.structLiteral.GoFillStructOptions
import com.goide.psi.GoNamedElement
import ... | 2 | null | 1 | 2 | 06b4bd04801826a95099ea750273fb9908aa3788 | 4,325 | intellij-protobuf-support | Apache License 2.0 |
orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreateParamsTest.kt | orbcorp | 797,930,757 | false | {"Kotlin": 10239831, "Shell": 3839, "Dockerfile": 366} | // File generated from our OpenAPI spec by Stainless.
package com.withorb.api.models
import com.withorb.api.models.*
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
class CustomerCreateParamsTest {
@Test
fun createCustomerCreateParams() {
CustomerCreateParams.buil... | 0 | Kotlin | 0 | 0 | 4487f4edc1a654e66dc5e86024b74119312ade1b | 8,246 | orb-java | Apache License 2.0 |
api/src/main/kotlin/com/ruben/spotify/api/SpotifyService.kt | rubenquadros | 758,569,353 | false | {"Kotlin": 13773} | package com.ruben.spotify.api
import com.ruben.spotify.api.response.ErrorBody
import com.ruben.spotify.api.response.FeaturedPlaylists
import com.ruben.spotify.api.response.SpotifyApiResponse
interface SpotifyService {
suspend fun getFeaturedPlaylists(
locale: String = "en_US",
limit: Int = 20,
... | 0 | Kotlin | 0 | 0 | 4388b4dd53081a413ba8e86f6cee18253f5313fa | 398 | Kotlin-Spotify-Api | MIT License |
common/src/main/kotlin/org/orkg/common/RealNumber.kt | TIBHannover | 197,416,205 | false | {"Kotlin": 6129587, "Cypher": 220623, "Python": 4881, "Shell": 2904, "Groovy": 1936, "HTML": 240, "Batchfile": 82} | package org.orkg.common
import java.math.BigDecimal
class RealNumber(value: String) : BigDecimal(validate(value)) {
constructor(value: Byte) : this(value.toString())
constructor(value: Short) : this(value.toString())
constructor(value: Int) : this(value.toString())
constructor(value: Long) : this(valu... | 0 | Kotlin | 0 | 4 | 961095d6d5786c22d0a764d88d833be4e38836c1 | 2,246 | orkg-backend | MIT License |
src/main/kotlin/khome/core/Configuration.kt | dennisschroeder | 183,795,935 | false | null | package khome.core
interface Configuration {
var name: String
var host: String
var port: Int
var accessToken: String
var secure: Boolean
}
| 21 | Kotlin | 6 | 99 | d9da9436978c8e9600394e1819a33d49b5f0e2ea | 160 | khome | MIT License |
api/src/main/java/com/kartikcd/api/models/entities/Update.kt | KartikCD | 377,774,842 | false | null | package com.kartikcd.api.models.entities
import com.google.gson.annotations.SerializedName
data class Update(
@SerializedName("username")
val username: String,
@SerializedName("email")
val email: String,
@SerializedName("image")
var image: String? = null,
@SerializedName("bio")
var bio... | 0 | Kotlin | 0 | 0 | 6750ab701537c50cb8db8a0f233d0e85a43b3b8e | 338 | MediumX | MIT License |
app/src/main/java/tw/tonyyang/englishwords/util/FileChooserUtils.kt | rohitnotes | 310,861,311 | true | {"Kotlin": 39955, "Java": 1164} | package tw.tonyyang.englishwords.util
import android.app.Activity
import android.content.Context
import android.net.Uri
import jxl.Workbook
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.withContext
import tw.tonyyang.englishwords.App
import tw.tonyyang.english... | 0 | null | 0 | 0 | c49523e1f99287b42654d51a6bf957377ac007c1 | 4,648 | EnglishWords | Apache License 2.0 |
app/src/main/java/com/example/pokemonclasses/ui/fragments/SettingsFragment.kt | NahuelToloza | 720,219,153 | false | {"Kotlin": 5931} | package com.example.pokemonclasses.presentation.ui.fragments
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.example.pokemonclasses.databinding.FragmentSettingsBinding
import dagger.hilt.android.AndroidE... | 0 | Kotlin | 0 | 1 | 9b72ada1aba9f6cbff2a1aa18451ca8155555597 | 1,001 | android-course-leo | Apache License 2.0 |
rtc_chat/src/main/java/com/iffly/rtcchat/inter/ISkyEvent.kt | feiyin0719 | 391,370,052 | false | null | package com.iffly.rtcchat.inter
interface ISkyEvent {
// 创建房间
fun createRoom(room: String, roomSize: Int)
// 发送单人邀请
fun sendInvite(room: String, userIds: List<String>, audioOnly: Boolean)
fun sendRefuse(room: String, inviteId: String, refuseType: Int)
fun sendTransAudio(toId: String)
f... | 0 | Kotlin | 1 | 3 | 3b48e0e836841daa83317a0e6283a3d969392a9c | 914 | webrtc_compose | MIT License |
konversation-plugin/src/main/kotlin/org/rewedigital/dialog/utils/RichResponseExtensions.kt | rewe-digital-incubator | 169,550,416 | false | null | package org.rewedigital.dialog.utils
import org.rewedigital.dialog.model.google.RichResponse
import org.rewedigital.konversation.Konversation
import org.rewedigital.konversation.Output
fun RichResponse.withSimpleResponse(konversation: Konversation): RichResponse = apply {
withSimpleResponse(konversation.createOut... | 3 | Kotlin | 5 | 10 | 7ea2fac743323acd9e17f41eb4511df1782b874d | 484 | dialog | MIT License |
app/src/main/java/com/example/android/guesstheword/screens/game/GameFragment.kt | my-nguyen | 350,399,505 | false | null | /*
* Copyright (C) 2019 Google 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 or agreed... | 0 | Kotlin | 0 | 0 | 8dfe74e2681a74783f38ea20cd78e8dc18a7a921 | 5,162 | GuessTheWord | Apache License 2.0 |
app/src/main/java/com/hamzasharuf/runningtracker/data/database/dao/RunDao.kt | hamzasharuf | 295,946,507 | false | null | package com.hamzasharuf.runningtracker.data.database.dao
import androidx.lifecycle.LiveData
import androidx.room.*
import com.hamzasharuf.runningtracker.data.database.entities.Run
@Dao
interface RunDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
suspend fun insertRun(runDatabase: Run)
@Delete
... | 0 | Kotlin | 0 | 1 | 3e7be9df2833084a50cf934694678433c51692aa | 2,033 | RunningTracker | Apache License 2.0 |
app/src/androidTestScenarios/java/uk/nhs/nhsx/covid19/android/app/flow/functionalities/SelfDiagnosis.kt | nhsx-mirror | 289,296,773 | true | {"Kotlin": 2761696, "Shell": 1098, "Ruby": 847, "Batchfile": 197} | package uk.nhs.nhsx.covid19.android.app.flow.functionalities
import uk.nhs.nhsx.covid19.android.app.state.State.Isolation
import uk.nhs.nhsx.covid19.android.app.testhelpers.base.EspressoTest
import uk.nhs.nhsx.covid19.android.app.testhelpers.robots.QuestionnaireRobot
import uk.nhs.nhsx.covid19.android.app.testhelpers.... | 0 | Kotlin | 0 | 0 | 296c9decde1b5ed904b760ff77b05afc51f24281 | 2,365 | covid-19-app-android-ag-public | MIT License |
app/src/main/java/com/feirapp/feirapp/models/groceryItem/responses/GetGroceryItemFromStoreIdResponse.kt | Thyerry | 693,316,143 | false | {"Kotlin": 41496} | package com.feirapp.feirapp.models.groceryItem.responses
import android.os.Parcelable
import com.feirapp.feirapp.models.StoreModel
import com.feirapp.feirapp.models.groceryItem.dtos.GroceryItemByStore
import kotlinx.parcelize.Parcelize
@Parcelize
data class GetGroceryItemFromStoreIdResponse(
val store: StoreModel... | 0 | Kotlin | 0 | 0 | 9b3b3f6656e92edfd01b3edc17209769406396b9 | 378 | Feirapp-Android | Apache License 2.0 |
wow-models/src/test/kotlin/me/ahoo/wow/models/tree/FlatCategory.kt | Ahoo-Wang | 628,167,080 | false | {"Kotlin": 2461710, "TypeScript": 51145, "Java": 37656, "HTML": 15900, "Lua": 3978, "JavaScript": 2514, "Dockerfile": 820, "SCSS": 609, "Less": 413} | /*
* Copyright [2021-present] [<NAME> <<EMAIL>> (https://github.com/Ahoo-Wang)].
* 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... | 8 | Kotlin | 23 | 187 | 4fb54c314c31a7cd3c9515554879a2ca8fade764 | 1,058 | Wow | Apache License 2.0 |
core/httpclient/src/main/java/com/kape/httpclient/domain/CertificatePinningClient.kt | pia-foss | 808,533,574 | false | {"Kotlin": 1249493} | package com.kape.httpclient.domain
import io.ktor.client.HttpClient
interface CertificatePinningClient {
fun client(): HttpClient
fun setKnownEndpointCommonName(knownEndpointCommonName: List<Pair<String, String>>)
} | 3 | Kotlin | 0 | 4 | 151ea781036e280fcbfecfcb5716c7881fc802c1 | 227 | mobile-android | MIT License |
app/src/main/kotlin/guru/stefma/tino/presentation/statistics/app/AppStatisticsFragment.kt | StefMa | 252,438,541 | false | null | package guru.stefma.tino.presentation.statistics.app
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.viewpager2.adapter.FragmentStateAdapter
import com.google.android.material.tabs.TabLayoutMediator... | 0 | Kotlin | 0 | 0 | d296f6a3b58188c43c75f52273cee51a1c159f98 | 3,239 | Tino | MIT License |
springmvc/spring-springmvc-springdatajpa-kotlin/src/main/java/com/jiangKlijna/web/dao/UserDao.kt | JiangKlijna | 73,813,096 | false | {"Java": 59106, "Kotlin": 42873, "Python": 3997, "Go": 3433, "HTML": 1679, "CSS": 221} | package com.jiangKlijna.web.dao
import com.jiangKlijna.web.bean.User
import org.springframework.data.jpa.repository.JpaRepository
/**
* Created by leil7 on 2017/6/19. spring-springmvc-springdatajpa
*/
interface UserDao : JpaRepository<User, Int>
| 1 | null | 1 | 1 | a12a8a139e3bfd26835a168c5db8e8ea92eae4e0 | 250 | framework-learning | Apache License 2.0 |
src/main/java/io/renren/modules/sys/service/SysMenuService.kt | AranAndroid009 | 314,123,865 | false | {"JavaScript": 5420874, "Kotlin": 220187, "TSQL": 18775, "HTML": 12988, "Java": 3713, "Dockerfile": 134, "Assembly": 12} | /**
* Copyright (c) 2016-2019 人人开源 All rights reserved.
*
* https://www.renren.io
*
* 版权所有,侵权必究!
*/
package io.renren.modules.sys.service
import com.baomidou.mybatisplus.extension.service.IService
import io.renren.modules.sys.entity.SysMenuEntity
/**
* 菜单管理
*
* @author Mark sunlightcs@gmail.com
*/
interface... | 0 | JavaScript | 0 | 1 | 7424176076915ffc54c6ad7dff1a5d41f860dbd3 | 934 | reren_fast_kotlin | Apache License 2.0 |
app/src/main/java/com/graduation/teamwork/ui/add/AddRoomActivity.kt | hoangchungk53qx1 | 330,963,586 | false | null | package com.graduation.teamwork.ui.add
import android.R
import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.widget.AdapterView
import android.widget.ArrayAdapter
import com.graduation.teamwork.data.local.Constant
import com.graduation.teamwo... | 11 | Kotlin | 0 | 0 | 0f203468c976964ab922344188adf85e5699e47a | 4,625 | android-teamworks | Apache License 2.0 |
src/main/kotlin/aryumka/money/Money.kt | aryumka | 739,979,203 | false | {"Kotlin": 5565} | package aryumka.money
class Money(
val currency: Currency,
val amount: Double
) {
constructor(currency: Currency, amount: Int): this(currency, amount.toDouble())
// Arithmetic operators
operator fun plus(money: Money): Money =
Money(
if (this.currency == money.currency) this.currency else Currency... | 0 | Kotlin | 0 | 1 | 385f89a10f6d55cf6a88fc1dd43d43fb00193602 | 1,869 | tdd-practice | MIT License |
src/main/kotlin/io/sip3/twig/ce/domain/SessionRequest.kt | sip3io | 234,018,899 | false | null | /*
* Copyright 2018-2020 SIP3.IO, 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 or agreed ... | 1 | null | 1 | 58 | 56fb62854e5a63d3bf07480fefd371bfd3f199c4 | 1,254 | sip3-twig-ce | Apache License 2.0 |
ktlint-ruleset-standard/src/main/kotlin/com/pinterest/ktlint/ruleset/standard/rules/SpacingAroundCurlyRule.kt | pinterest | 64,293,719 | false | null | package com.pinterest.ktlint.ruleset.standard.rules
import com.pinterest.ktlint.rule.engine.core.api.ElementType.AT
import com.pinterest.ktlint.rule.engine.core.api.ElementType.CLASS_BODY
import com.pinterest.ktlint.rule.engine.core.api.ElementType.COLONCOLON
import com.pinterest.ktlint.rule.engine.core.api.ElementTyp... | 34 | Kotlin | 486 | 5,695 | 1e6803bc7fa1ee916a6e6d9b151b628b034c0cc0 | 7,612 | ktlint | MIT License |
sample-app/src/main/kotlin/io/github/ilyapavlovskii/kmm/force/update/sample/ForceUpdateApplication.kt | IlyaPavlovskii | 617,508,906 | false | null | package io.github.ilyapavlovskii.kmm.force.update.sample
import android.app.Application
import io.github.ilyapavlovskii.kmm.force.update.usecase.impl.SimpleGetForceUpdateEventFlowUseCase
internal val useCase = SimpleGetForceUpdateEventFlowUseCase()
internal class ForceUpdateApplication : Application() {
override... | 0 | Kotlin | 0 | 0 | aa995a9b897a007507640a29698e8da45957657c | 370 | force-update | Apache License 2.0 |
src/main/kotlin/tothrosch/networking/rest/adapter/kraken/KrakenRestClient.kt | ondrsh | 753,599,143 | false | {"Kotlin": 462633} | package tothrosch.networking.rest.adapter.kraken
import org.apache.http.client.methods.HttpGet
import tothrosch.exchange.Exchange
import tothrosch.instrument.Instrument
import tothrosch.networking.rest.RestClient
object KrakenRestClient : RestClient(Exchange.KrakenExchange) {
override fun getActiveInstrumentsHttp... | 0 | Kotlin | 0 | 0 | 63f01e03c623269084572837764433285df6e6f4 | 727 | totec-engine-old | MIT License |
core/src/main/kotlin/org/jetbrains/jewel/IntelliJColors.kt | JetBrains | 440,164,967 | false | null | package org.jetbrains.jewel
import androidx.compose.runtime.Stable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.compose.runtime.staticCompositionLocalOf
import androidx.compose.runtime.structuralEqualityPolicy
import an... | 22 | Kotlin | 12 | 326 | d137328b86d925ab8d23821b4ce1cd1b36479194 | 2,393 | jewel | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.