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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/main/kotlin/executor/Case3.kt | DrEden33773 | 757,230,005 | false | {"Kotlin": 12283} | package org.ember.executor
import com.antgroup.geaflow.api.window.impl.AllWindow
import com.antgroup.geaflow.env.Environment
import com.antgroup.geaflow.example.function.FileSink
import com.antgroup.geaflow.example.function.FileSource.FileLineParser
import com.antgroup.geaflow.example.util.EnvironmentUtil
import com.a... | 0 | Kotlin | 0 | 1 | 1f6aac180144d83dc2afa7d460bbd1accdb68405 | 3,692 | tugraph-finbench-kt | MIT License |
rubberdoc-json/src/test/kotlin/team/duckie/rubberdoc/json/JsonBuilderTest.kt | duckie-team | 652,214,571 | false | {"Kotlin": 66907, "MDX": 6655, "JavaScript": 3912, "CSS": 1058} | /*
* Designed and developed by Duckie Team, 2022
*
* Licensed under the MIT.
* Please see full license: https://github.com/duckie-team/duckie-android/blob/develop/LICENSE
*/
package team.duckie.rubberdoc.json
import io.kotest.core.spec.style.StringSpec
import io.kotest.matchers.shouldBe
private data class Pojo(... | 5 | Kotlin | 0 | 2 | 737990d337b162a592315a42b86de9765f0975cc | 2,558 | rubberdoc-android | MIT License |
app/src/test/java/com/arya/moviecatalogue/data/source/MovieRepositoryTest.kt | arryaaas | 312,735,651 | false | null | package com.arya.moviecatalogue.data.source
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.paging.DataSource
import com.arya.moviecatalogue.data.source.local.LocalDataSource
import com.arya.moviecatalogue.d... | 0 | Kotlin | 0 | 0 | b85c2bf9c1a33b23ecb7c8316ab59da6728c4fb4 | 3,532 | Movie-Catalouge | MIT License |
node-kotlin/src/jsMain/kotlin/node/stream/finished.kt | karakum-team | 393,199,102 | false | {"Kotlin": 7083457} | // Automatically generated - do not modify!
package node.stream
import kotlinx.coroutines.await
suspend fun finished(
stream: Any, /* NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream */
) {
finishedAsync(
stream = stream,
).await()
}
suspend fun finished(
stream: Any, /... | 0 | Kotlin | 6 | 26 | 3ca49a8f44fc8b46e393ffe66fbd81f8b4943c18 | 517 | types-kotlin | Apache License 2.0 |
UIViewLess/src/main/java/com/angcyo/uiview/less/picture/transition/ColorTransition.kt | zhilangtaosha | 223,696,624 | false | {"Java": 4666343, "Kotlin": 1191272} | package com.angcyo.uiview.less.picture.transition
import android.animation.Animator
import android.animation.ArgbEvaluator
import android.animation.ValueAnimator
import android.graphics.drawable.ColorDrawable
import androidx.transition.Transition
import androidx.transition.TransitionValues
import android.view.ViewGrou... | 0 | Java | 2 | 0 | 8a09b91edaa4a21a43b356f67d3e063e72df3a19 | 1,947 | UIKit | MIT License |
spring-boot-server/src/main/kotlin/com/witkups/carsharing/security/JWTAuthenticationFilter.kt | Azbesciak | 108,768,876 | false | {"TypeScript": 151324, "Kotlin": 56658, "HTML": 24892, "CSS": 14058, "JavaScript": 1646, "SQLPL": 1532} | package com.witkups.carsharing.security
import com.fasterxml.jackson.databind.ObjectMapper
import com.witkups.carsharing.Req
import com.witkups.carsharing.Res
import com.witkups.carsharing.security.SecurityConstants.EXPIRATION_TIME
import com.witkups.carsharing.security.SecurityConstants.HEADER_STRING
import com.witku... | 0 | TypeScript | 2 | 2 | ee67b82d4cb2c5665a114c6f4cf11d02499cf55e | 2,574 | CarSharing | MIT License |
jwt/src/test/kotlin/com/seanshubin/condorcet/backend/jwt/CipherImplTest.kt | SeanShubin | 238,518,165 | false | null | package com.seanshubin.condorcet.backend.jwt
import com.auth0.jwt.exceptions.SignatureVerificationException
import com.auth0.jwt.exceptions.TokenExpiredException
import com.seanshubin.condorcet.backend.string.util.HexFormat.fromHexToBytes
import org.junit.Test
import kotlin.test.assertEquals
import kotlin.test.assertF... | 0 | Kotlin | 0 | 0 | 86245272ea468fbf6147142dca3e4bbe498623ff | 7,507 | condorcet-backend | The Unlicense |
src/main/kotlin/org/hiatusuk/obsidian/web/server/jetty/delegates/WebContexts.kt | poblish | 612,371,934 | false | null | package org.hiatusuk.obsidian.web.server.jetty.delegates
import org.eclipse.jetty.server.Handler
import org.eclipse.jetty.server.handler.ContextHandler
import org.eclipse.jetty.server.handler.ContextHandlerCollection
class WebContexts {
// Wouldn't normally lazy-init, but if set, a Quit event could call us and l... | 0 | Kotlin | 0 | 0 | 67a62560c865de0fd751365b091bfb60b5f12f34 | 982 | obsidian | Apache License 2.0 |
app/src/main/java/com/example/navigationsample/SecondFragment.kt | GabrielFernandesLemos | 507,592,860 | false | {"Kotlin": 5737} | package com.example.navigationsample
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.navigation.fragment.findNavController
import androidx.navigation.fragment.navArgs
import com.example.navigationsa... | 0 | Kotlin | 0 | 1 | 73bbe88ca5c7d7c58ce8313beca6dfb11cfdede2 | 1,017 | android-navigation-sample | MIT License |
app/src/main/java/com/axel_stein/glucose_tracker/utils/ui/ProgressListener.kt | AxelStein | 320,277,698 | false | null | package com.axel_stein.glucose_tracker.utils.ui
interface ProgressListener {
fun showProgress(show: Boolean)
} | 4 | Kotlin | 0 | 1 | e6ed8ebdaf7d10bbec4ea830448dd9b174ed8c17 | 115 | GlucoseTracker | Apache License 2.0 |
app/src/main/java/com/hushsbay/sendjay_aos/common/Util.kt | hushsbay | 744,259,754 | false | {"Kotlin": 183981} | package com.hushsbay.sendjay_aos.common
import android.app.Activity
import android.app.DownloadManager
import android.content.Context
import android.content.Intent
import android.net.ConnectivityManager
import android.net.NetworkCapabilities
import android.net.Uri
import android.net.UrlQuerySanitizer
import android.os... | 0 | Kotlin | 0 | 0 | ad0a0b58f31422331ac405838ff0b70209f72255 | 19,889 | sendjay_aos | MIT License |
project/CGA_SS20_Kapinos_11131556/src/main/kotlin/cga/exercise/game/Scene.kt | Sabine47 | 278,609,440 | true | {"Kotlin": 133903, "GLSL": 16262} | package cga.exercise.game
import cga.exercise.components.camera.TronCamera
import cga.exercise.components.geometry.Renderable
import cga.exercise.components.light.PointLight
import cga.exercise.components.shader.GeometryShaderProgram
import cga.exercise.components.shader.ShaderProgram
import cga.exercise.components.sh... | 0 | Kotlin | 0 | 0 | b5b620de1d5c5c9c8f9e90c27b97b1e12e91e23f | 38,069 | CGAProject | MIT License |
app/src/main/java/jp/cordea/complextransitionanimationdemo/AlphaAnimatableTextView.kt | CORDEA | 206,945,098 | false | null | package jp.cordea.complextransitionanimationdemo
import android.content.Context
import android.util.AttributeSet
import androidx.appcompat.widget.AppCompatTextView
class AlphaAnimatableTextView @JvmOverloads constructor(
context: Context,
attrs: AttributeSet? = null,
defStyleAttr: Int = 0
) : AppCompatTex... | 0 | Kotlin | 1 | 1 | faaa11282a903e9e3422f8d44e9373ca38502d4c | 495 | ComplexTransitionAnimationDemo | Apache License 2.0 |
src/main/kotlin/no/nav/bidrag/transport/person/Fødselsdatoer.kt | navikt | 607,658,805 | false | {"Kotlin": 142586} | package no.nav.bidrag.transport.person
import io.swagger.v3.oas.annotations.media.Schema
import no.nav.bidrag.domene.ident.Personident
import java.time.LocalDate
data class Fødselsdatoer(
@Schema(description = "Map med ident til fødselsdato-elementer.")
val identerTilDatoer: Map<Personident, LocalDate?>,
)
| 0 | Kotlin | 0 | 0 | 2b5c68df3454ab9c3cd24e4cf8705d144b5f993e | 318 | bidrag-transport | MIT License |
simprokcore/src/main/java/com/simprok/simprokcore/Core.kt | simprok-dev | 483,137,119 | false | null | //
// Core.kt
// simprokcore
//
// Created by <NAME> on 12.03.2022.
// Copyright (c) 2022 simprok. All rights reserved.
package com.simprok.simprokcore
import com.simprok.simprokmachine.api.*
import com.simprok.simprokmachine.machines.Machine
/**
* A RootMachine interface that describes all the layers of the ap... | 0 | Kotlin | 0 | 0 | a45f8e3adc6bb70c964b81219c54757f84a34882 | 1,491 | simprokcore-kotlin | MIT License |
kollection/src/test/kotlin/com/github/andrewoma/dexx/kollection/ImmutableSortedMapTest.kt | andrewoma | 17,238,321 | false | null | /*
* Copyright (c) 2015 Andrew O'Malley
*
* 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, merge, pub... | 4 | null | 13 | 209 | 96755b325e90c84ffa006365dde9ddf89c83c6ca | 2,632 | dexx | MIT License |
sample/src/main/java/com/drake/net/sample/ui/fragment/SwitchDispatcherFragment.kt | liangjingkanji | 208,626,324 | false | null | /*
* Copyright (C) 2018 Drake, 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 to ... | 1 | null | 100 | 866 | e5748dd60176bdc1350f00e3d2c69c6c6330ef86 | 1,389 | Net | Apache License 2.0 |
library/src/main/java/com/github/skgmn/webpdecoder/AnimatedWebPDrawable.kt | skgmn | 402,412,986 | false | {"C": 2674085, "Kotlin": 15834, "Makefile": 13101, "C++": 3537, "CMake": 1879} | package com.github.skgmn.webpdecoder
import android.graphics.*
import android.graphics.drawable.Drawable
import android.os.SystemClock
import androidx.annotation.GuardedBy
import androidx.vectordrawable.graphics.drawable.Animatable2Compat
import coil.bitmap.BitmapPool
import com.github.skgmn.webpdecoder.libwebp.LibWeb... | 0 | C | 1 | 6 | 36915388e1f72fbe2e5be8f4844377dce7b8037e | 8,656 | AnimatedWebPDecoder | MIT License |
common-libraries/bluewizardhat-logging-aspect/src/main/java/net/bluewizardhat/common/logging/aspect/LoggingAspectAutoConfiguration.kt | BlueWizardHat | 453,402,449 | false | null | package net.bluewizardhat.common.logging.aspect
import org.springframework.context.annotation.ComponentScan
import org.springframework.context.annotation.Configuration
@Configuration
@ComponentScan
class LoggingAspectAutoConfiguration
| 5 | Kotlin | 0 | 3 | 51ee88993ba0718dcfd8387e24eaf59469855838 | 237 | demo-kotlin-maven | MIT License |
src/test/kotlin/ch/uzh/ifi/seal/bencher/execution/OverridingConfigBasedConfiguratorTest.kt | chrstphlbr | 227,602,878 | false | null | package ch.uzh.ifi.seal.bencher.execution
import arrow.core.getOrHandle
import ch.uzh.ifi.seal.bencher.Class
import ch.uzh.ifi.seal.bencher.JMHVersion
import ch.uzh.ifi.seal.bencher.analysis.JarTestHelper
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
class OverridingConfigBasedConfigurator... | 1 | null | 2 | 4 | 06601fb4dda3b2996c2ba9b2cd612e667420006f | 3,297 | bencher | Apache License 2.0 |
data/slack-jackson-dto/src/main/kotlin/io/hndrs/slack/api/contract/jackson/group/users/DeletePhoto.kt | hndrs | 168,710,332 | false | null | package com.kreait.slack.api.contract.jackson.group.users
import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.annotation.JsonSubTypes
import com.fasterxml.jackson.annotation.JsonTypeInfo
import com.kreait.slack.api.contract.jackson.util.JacksonDataClass
@JsonTypeInfo(use = JsonTypeInfo.... | 57 | null | 13 | 16 | 89c5a6ddd0cbac522dd9cd4324901bf2907369a8 | 1,268 | slack-spring-boot-starter | MIT License |
app/src/main/java/com/tomszom/smogapp/select/SelectContract.kt | tsm | 153,894,094 | false | null | package com.tomszom.smogapp.select
import com.tomszom.smogapp.model.Station
import io.reactivex.Single
/**
* Created by tsm on 31/03/2018
*/
interface SelectContract {
interface View {
fun showLoading()
fun showNoData()
fun showError()
fun showSelectionList(selectionList: List<S... | 0 | Kotlin | 0 | 0 | c63357ec28b119730d3459db0a82863169eedc6f | 585 | smog-app | Apache License 2.0 |
src/main/kotlin/org/dictat/wikistat/services/mongodb/AbstractMongoDao.kt | K0zka | 22,078,440 | false | {"JavaScript": 71587, "Kotlin": 67756, "CSS": 215} | package org.dictat.wikistat.services.mongodb
import com.mongodb.DB
import org.slf4j.LoggerFactory
import com.mongodb.BasicDBObject
/**
* Abstract baseclass for MongoDB-based DAO classes.
*/
abstract class AbstractMongoDao(val db: DB) {
private object constants {
val logger = LoggerFactory.getLogger( jav... | 0 | JavaScript | 0 | 0 | b6033f27fe8ef50171a0f83ed0aa76f3fa854462 | 815 | wikistat | Apache License 2.0 |
app/src/main/java/com/translate/translator/voice/translation/dictionary/all/language/WebViewClientImpl.kt | MubasherKhan9170 | 628,859,119 | false | null | package com.translate.translator.voice.translation.dictionary.all.language
import android.app.Activity
import android.content.Intent
import android.net.Uri
import android.webkit.WebView
import android.webkit.WebViewClient
class WebViewClientImpl(activity: Activity?) : WebViewClient() {
private var activity: Acti... | 0 | Kotlin | 0 | 0 | 49f982fc4f437e90c94b6a2b2365c955ace8c207 | 781 | Elite-Translator | MIT License |
incubator.clients.kroviz/src/main/kotlin/org/apache/isis/client/kroviz/handler/ActionHandler.kt | joerg-rade | 163,651,410 | false | null | package org.apache.isis.client.kroviz.handler
import kotlinx.serialization.UnstableDefault
import kotlinx.serialization.json.Json
import org.apache.isis.client.kroviz.core.aggregator.ActionDispatcher
import org.apache.isis.client.kroviz.to.Action
import org.apache.isis.client.kroviz.to.TransferObject
class ActionHand... | 20 | null | 1 | 10 | 07e7ed9aa6dabc7e8a9a0100451d89ae18e46950 | 595 | kroviz | Apache License 2.0 |
domain-layer/src/main/kotlin/es/plexus/android/plexuschuck/domainlayer/base/BaseDomainLayerBridge.kt | pablodeafsapps | 397,339,000 | false | null | package es.plexus.android.plexuschuck.domainlayer.base
/**
* A bridge template which serves as baseline of all the feature bridges across the app.
*/
interface BaseDomainLayerBridge {
object None : BaseDomainLayerBridge
}
| 0 | Kotlin | 0 | 0 | 266de29731b0357aa5bc2525794edd9e5d88105e | 229 | clean-app | Plexus Classworlds License |
mod/src/main/java/org/lineageos/mod/health/partner/DefaultPolicyParser.kt | bvlj | 286,560,862 | false | {"Java": 231235, "Kotlin": 222270, "Shell": 1773} | /*
* Copyright (C) 2021 The LineageOS Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 1 | Java | 1 | 1 | 96b999338b8ab38bf9d5355100a3753a6948cd9d | 4,254 | android_vendor_lineage_health | Apache License 2.0 |
app/src/main/java/com/qoli/chatapp/Setting/SettingMember.kt | qoli | 201,805,745 | false | null | package com.qoli.chatapp.Setting
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.afollestad.materialdialogs.LayoutMode
import com.afollestad.materialdialogs.MaterialDialog
import com.afollestad.materialdialogs.bottomsheets.BottomSheet
import com.afollestad.materialdialogs.lifecycle.... | 0 | Kotlin | 0 | 2 | 413b41707fc35d894aa583b7c8e9c1a63cecff26 | 1,527 | ChatApp | MIT License |
app/src/main/java/com/funs/eye/ui/mine/MineFragment.kt | hhhcan | 507,734,165 | false | null | package com.funs.eye.ui.mine
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.content.ContextCompat
import com.bumptech.glide.Glide
import com.bumptech.glide.load.MultiTransformation
import com.bumptech.glide.load.resource.bitmap.Ce... | 0 | Kotlin | 0 | 0 | a127a42d98aa6e8d0d793d74d057f1ac3d5c2799 | 3,078 | FunsEye | Apache License 2.0 |
MyVolley/src/main/java/com/myvolley/models/NetworkRequestType.kt | rastogitech | 141,046,176 | false | {"Kotlin": 46730, "Java": 5316} | package com.myvolley.models
import com.android.volley.Request
/**
* Holds constants for all supported network request types.
*/
interface NetworkRequestType {
val GET
get() = Request.Method.GET
val POST
get() = Request.Method.POST
val PUT
get() = Request.Method.PUT
val PATCH... | 0 | Kotlin | 1 | 3 | 1b3ec365d89fc432e9599844b838608a4cdcd400 | 568 | MyVolley | Apache License 2.0 |
common/src/main/java/io/github/jbarr21/runterval/ui/util/RxAmbientCallback.kt | jbarr21 | 110,423,257 | false | null | package io.github.jbarr21.runterval.ui.util;
import android.os.Bundle
import androidx.wear.ambient.AmbientModeSupport
import io.github.jbarr21.runterval.data.AmbientStream
import io.github.jbarr21.runterval.data.AmbientStream.AmbientEvent.ENTER
import io.github.jbarr21.runterval.data.AmbientStream.AmbientEvent.EXIT
im... | 0 | Kotlin | 0 | 5 | 1e6f39bb154f70ba821e7bcdcab052c5697c1a99 | 735 | runterval | Apache License 2.0 |
app/src/main/java/com/wizeline/simpleapollosample/data/ApiGateway.kt | wizeline | 279,988,472 | false | null | package com.wizeline.simpleapollosample.data
import com.wizeline.simpleapollosample.entities.Comment
import com.wizeline.simpleapollosample.entities.Post
import com.wizeline.simpleapollosample.entities.responses.ApiResponse
import com.wizeline.simpleapollosample.graphql.GetPostQuery
import com.wizeline.simpleapollosam... | 0 | Kotlin | 0 | 2 | d9695b942c956ca03543047f8d7dc664cbf90c2c | 793 | simple-apollo-android | MIT License |
app/src/main/java/com/example/weather_kotlin/DaysFragment.kt | OverLordN7 | 567,596,630 | false | {"Kotlin": 19237} | package com.example.weather_kotlin
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.activityViewModels
import androidx.recyclerview.widget.LinearLayoutManager
import com.example.weather_... | 0 | Kotlin | 0 | 0 | 97b031c5ac6b4d4023cacf0af06640c77bd4b4e1 | 1,553 | Weather_kotlin | The Unlicense |
base/src/main/kotlin/browser/virtualKeyboardPrivate/OnKeyboardConfigChangedListener.kt | DATL4G | 372,873,797 | false | null | @file:JsModule("webextension-polyfill")
@file:JsQualifier("virtualKeyboardPrivate")
package browser.virtualKeyboardPrivate
/**
* Fired when a configuration for virtual keyboard IME has changed, e.g. auto complete disabled.
*/
public external interface OnKeyboardConfigChangedListener {
/**
* The virtual keyboar... | 0 | Kotlin | 1 | 37 | ab2a825dd8dd8eb704278f52c603dbdd898d1875 | 373 | Kromex | Apache License 2.0 |
core/notes/src/test/java/com/stslex93/notes/core/notes/CoreNotesModuleTest.kt | stslex | 376,845,384 | false | null | package com.stslex93.notes.core.notes
import android.content.Context
import com.stslex93.notes.core.database.NoteDao
import com.stslex93.notes.core.notes.di.coreNotesModule
import org.junit.Rule
import org.junit.Test
import org.koin.dsl.koinApplication
import org.koin.test.KoinTest
import org.koin.test.check.checkModu... | 9 | Kotlin | 1 | 2 | dce20b8e7fb81ac74a4ed496251d9a17df05c3b9 | 795 | Notes | Apache License 2.0 |
src/main/kotlin/com/k/pmpstudy/dialog/RenameConfirmDialog.kt | Miura-KR | 395,952,470 | false | null | package com.k.pmpstudy.dialog
import com.intellij.openapi.ui.DialogWrapper
import com.intellij.psi.PsiDirectory
import com.k.pmpstudy.domain.ReplaceWord
import javax.swing.GroupLayout
import javax.swing.JComponent
import javax.swing.JLabel
import javax.swing.JPanel
class RenameConfirmDialog(
private val targetDir... | 0 | Kotlin | 0 | 0 | 27ef489614c90b39802ebba010b7eb30af4262ef | 3,377 | RenameFilesRefactorBatch-intellij | Apache License 2.0 |
x-pref/src/androidTest/java/com/bilibili/xpref/XprefTest.kt | bilibili | 115,354,349 | false | null | /*
* Copyright (c) 2017. bilibili, 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 ... | 0 | null | 12 | 84 | ccdc4d00ffcd4a2604becccca3ff308a6562517d | 9,648 | xpref | Apache License 2.0 |
app/src/main/java/com/aquatic/lucre/adapters/ChartCategoryAdapter.kt | kingsleyzissou | 324,988,352 | false | null | package com.aquatic.lucre.adapters
import android.graphics.Color
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.aquatic.lucre.R
import com.aquatic.lucre.core.AdapterListener
import com.aquatic.lucre.core.BaseAdapter
import com.aquatic.lucre.models.Category
import k... | 0 | Kotlin | 0 | 0 | f52a075869e1bf5159569e46d0ef276cd8944130 | 1,433 | lucre | Apache License 2.0 |
core/builtins/src/kotlin/reflect/KTopLevelExtensionFunction.kt | staltz | 93,485,627 | true | {"Java": 15450397, "Kotlin": 8578737, "JavaScript": 176060, "HTML": 22810, "Lex": 17327, "Protocol Buffer": 13024, "ANTLR": 9689, "CSS": 9431, "Shell": 3931, "IDL": 3257, "Groovy": 3010, "Batchfile": 2831} | /*
* Copyright 2010-2015 JetBrains s.r.o.
*
* 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 agre... | 0 | Java | 0 | 1 | 80074c71fa925a1c7173e3fffeea4cdc5872460f | 873 | kotlin | Apache License 2.0 |
src/main/kotlin/de/cprohm/ktwasm/binary/TableParser.kt | chmp | 239,595,799 | false | null | package de.cprohm.ktwasm.binary
fun parseTableSection(contents: ModuleContents, parser: ByteParser) {
contents.tables = parseVector(parser, ::parseTable)
}
fun parseTable(parser: ByteParser): Pair<Int, Int> {
val marker = parseByte(parser)
assert(marker == 0x70.toByte())
return parseLimits(parser)
}
| 1 | Kotlin | 1 | 5 | 30a177818a501175bde7a512d684315b2cd150b4 | 319 | ktwasm | MIT License |
ktfx-layouts/src/test/kotlin/javafx/scene/control/MenuBarTest.kt | hanggrian | 102,934,147 | false | {"Kotlin": 1146536, "CSS": 1653} | package ktfx.layouts
import com.google.common.truth.Truth.assertThat
import com.hanggrian.ktfx.test.LayoutsStyledTest
import javafx.scene.control.MenuBar
import kotlin.test.Test
import kotlin.test.assertEquals
class MenuBarTest : LayoutsStyledTest<KtfxPane, MenuBar>() {
override fun manager() = KtfxPane()
ov... | 1 | Kotlin | 2 | 19 | 6e5ec9fedf8359423c31a2ba64cd175bc9864cd2 | 774 | ktfx | Apache License 2.0 |
app/src/main/kotlin/me/miguelos/sample/data/source/local/entity/MarvelCharacterDBEntity.kt | Miguelos | 322,249,301 | false | null | package me.miguelos.sample.data.source.local.entity
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import me.miguelos.sample.data.source.local.entity.MarvelCharacterDBEntity.Companion.TABLE_NAME
/**
* Immutable model class for a Task.
*
* @param id The unique ... | 0 | Kotlin | 0 | 0 | 9d03ca4e7690973d7d1a1378742ff8e601db3f56 | 1,242 | AndroidSample | Apache License 2.0 |
processor/src/main/kotlin/com/casadetasha/kexp/sproute/processor/generator/tree/RequestFunctionNode.kt | Path-to-plunder | 427,878,747 | false | null | package com.casadetasha.kexp.sproute.processor.generator.tree
import com.casadetasha.kexp.sproute.processor.sproutes.SprouteParent
import com.casadetasha.kexp.sproute.processor.sproutes.SprouteRequestFunction
import com.casadetasha.kexp.sproute.processor.sproutes.authentication.Authentication
internal data class Requ... | 0 | Kotlin | 0 | 1 | 3e75b3b053aac64c508568900f38b018b54b5e9e | 804 | Sproutes | Apache License 2.0 |
src/main/kotlin/net/averak/gsync/core/exception/ErrorCode.kt | averak | 697,429,765 | false | {"Kotlin": 11893, "Groovy": 3843, "Makefile": 637} | package net.averak.gsync.core.exception
enum class ErrorCode(val summary: String) {
// 400 Bad Request
VALIDATION_ERROR("Request validation exception was thrown."),
INVALID_REQUEST_PARAMETERS("Request parameters is invalid."),
ID_FORMAT_IS_INVALID("ID format is invalid."),
// 404 Not Found
NOT... | 12 | Kotlin | 0 | 0 | 6ebf00abeb7879c0412461802a302d4bddc231a8 | 352 | gsync | MIT License |
app/src/main/java/com/uraniumcode/psgamezone/fragments/GameDetailFragment.kt | cgdsky | 561,960,875 | false | {"Kotlin": 19898} | package com.uraniumcode.psgamezone.fragments
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.LinearLayout
import androidx.core.content.ContextCompat
import androidx.core.text.HtmlCompat
import andro... | 0 | Kotlin | 0 | 0 | c3790dc004f03f8e887e185bf3698791b5b405b5 | 3,877 | PsGameZone | MIT License |
app/src/main/java/com/task/searchbar/data/mapper/SuggestionsMapper.kt | EzzWaleed | 205,580,621 | false | null | package com.task.searchbar.data.mapper
import com.task.searchbar.data.mapper.base.EntityMapper
import javax.inject.Inject
class SuggestionsMapper @Inject constructor() : EntityMapper<List<Any>, List<String>>() {
override fun map(input: List<Any>): List<String> {
return input[1] as MutableList<String>
... | 0 | Kotlin | 0 | 3 | b03afd9bfb6a2a674b005c86eb268e984268e6df | 323 | SearchBar | Apache License 2.0 |
core/src/main/java/com/nimbusframework/nimbuscore/permissions/PermissionType.kt | thomasjallerton | 163,180,980 | false | null | package com.nimbusframework.nimbuscore.permissions
enum class PermissionType {
FILE_STORAGE,
NOTIFICATION_TOPIC,
BASIC_FUNCTION,
DOCUMENT_STORE,
KEY_VALUE_STORE,
QUEUE,
RELATIONAL_DATABASE,
WEBSOCKET_MANAGER
} | 12 | Kotlin | 4 | 37 | 2f3580ceab4c32f8900941da833b1d474eb0098c | 242 | nimbus-core | MIT License |
library/src/main/kotlin/me/proxer/library/api/list/CharacterSearchEndpoint.kt | TrueMB | 425,476,448 | true | {"Kotlin": 526434} | package me.proxer.library.api.list
import me.proxer.library.ProxerCall
import me.proxer.library.api.PagingLimitEndpoint
import me.proxer.library.entity.list.CharacterListEntry
import me.proxer.library.enums.CharacterDescriptionType
/**
* Search for all available characters. Features various filter and uses paging.
... | 0 | Kotlin | 0 | 0 | 4d30a6383cc94016475905f617ab100971d8094b | 1,649 | ProxerLibJava | MIT License |
mspek/src/test/java/com/elpassion/mspek/data/mspek_test_5.kt | elpassion | 104,785,486 | true | {"Kotlin": 32910} | package com.elpassion.mspek.data
import com.elpassion.mspek.MiniSpek
import com.elpassion.mspek.MiniSpek.o
import org.junit.Assert
fun mspek_test_5() {
MiniSpek.mspek("some test") {
"some nested test" o {
Assert.assertTrue(false)
}
}
} | 1 | Kotlin | 0 | 2 | 4dfe9294c50af2bc27608d7f7bbfd72633861239 | 273 | MiniSpek | Apache License 2.0 |
src/hackhub/app/src/main/java/com/univpm/hackhub/interfaces/EventsFilterDialogListener.kt | NourCheriff | 792,292,205 | false | {"Kotlin": 258512, "TeX": 48232, "Dart": 45042, "C++": 24274, "CMake": 19478, "Swift": 2209, "HTML": 1849, "C": 1425, "Objective-C": 38} | package com.univpm.hackhub.interfaces
import com.univpm.hackhub.dialogs.EventsFilterDialog.FilterOptions
interface EventsFilterDialogListener {
fun onApplyFilter(filters: FilterOptions)
fun onResetFilter()
} | 1 | Kotlin | 0 | 0 | 95337cbef1cbd7a659e49475de3caa28a62bf41d | 217 | hackhub | MIT License |
signals/src/nativeMain/kotlin/org/angproj/io/sig/Internals.kt | angelos-project | 485,157,710 | false | null | /**
* Copyright (c) 2022 by <NAME> <<EMAIL>>.
*
* This software is available under the terms of the MIT license. Parts are licensed
* under different terms if stated. The legal terms are attached to the LICENSE file
* and are made available on:
*
* https://opensource.org/licenses/MIT
*
* SPDX-License-Iden... | 0 | Kotlin | 0 | 0 | dc7e0cbfa7082c470a3b7d4c78787c8f53b56b24 | 1,315 | angelos-project-sig | MIT License |
agenda-generator/src/main/kotlin/org/hildan/hrbuddy/agendagenerator/AgendaWriter.kt | joffrey-bion | 146,783,738 | false | null | package org.hildan.hrbuddy.agendagenerator
import org.hildan.hrbuddy.agendagenerator.model.Agenda
import org.wickedsource.docxstamper.DocxStamper
import org.wickedsource.docxstamper.DocxStamperConfiguration
import java.io.File
import java.io.InputStream
import java.time.format.DateTimeFormatter
class AgendaWriter(
... | 3 | Kotlin | 0 | 0 | 58bd96bb185c60e69c26a899be7cba1306fa8cc6 | 1,520 | hr-buddy | MIT License |
buildSrc/src/main/kotlin/versionDetection.kt | benjiaminhanks2 | 272,113,096 | true | {"Kotlin": 168749, "JavaScript": 38470, "CSS": 16140, "Python": 4354} | import org.gradle.api.Project
import org.gradle.kotlin.dsl.extra
import org.gradle.kotlin.dsl.invoke
import java.io.ByteArrayOutputStream
import java.nio.file.Path
fun Project.getCurrentBranch(): String =
// Just result caching, don't set this property explicitly
project.getOrInitProperty("git.currentBranch") ... | 0 | null | 0 | 0 | d0bb8f35f0f5bba57e22e08b578bb49f17a7db13 | 2,170 | kotlin-jupyter | Apache License 2.0 |
mail/common/src/main/java/com/fsck/k9/mail/NetworkTimeouts.kt | thunderbird | 1,326,671 | false | null | package com.fsck.k9.mail
object NetworkTimeouts {
const val SOCKET_CONNECT_TIMEOUT = 30000
const val SOCKET_READ_TIMEOUT = 60000
}
| 846 | null | 2467 | 9,969 | 8b3932098cfa53372d8a8ae364bd8623822bd74c | 140 | thunderbird-android | Apache License 2.0 |
app/src/main/java/at/mintech/nftmaker/domain/entities/Nft.kt | schauersbergern | 401,134,559 | false | {"Java": 83276, "Kotlin": 54531, "Solidity": 3836} | package at.mintech.nftmaker.domain.entities
import kotlinx.serialization.Serializable
@Serializable
data class Nft(
val nftUrl: String,
val fileType: String
) | 0 | Java | 1 | 3 | ab06a4ad3d9bcff9eb858aed1d8c679b93ad85f0 | 168 | NFT-creator | MIT License |
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/risk/CombinedEwPtRisk.kt | corona-warn-app | 268,027,139 | false | null | package de.rki.coronawarnapp.risk
import androidx.annotation.VisibleForTesting
import de.rki.coronawarnapp.presencetracing.risk.PtRiskLevelResult
import de.rki.coronawarnapp.risk.result.ExposureWindowDayRisk
import de.rki.coronawarnapp.risk.storage.internal.RiskCombinator
import de.rki.coronawarnapp.util.TimeAndDateEx... | 6 | null | 514 | 2,495 | d3833a212bd4c84e38a1fad23b282836d70ab8d5 | 3,464 | cwa-app-android | Apache License 2.0 |
app/src/main/java/com/pajokka/githubuser/data/UserDataSource.kt | rrdhoi | 425,407,913 | false | null | package com.pajokka.githubuser.data
import androidx.lifecycle.LiveData
import com.pajokka.githubuser.data.source.local.entity.UserEntity
import com.pajokka.githubuser.data.source.local.entity.UserModel
import com.pajokka.githubuser.vo.Resource
interface UserDataSource {
suspend fun getUserByUsername(username: Str... | 1 | null | 1 | 5 | 7907b152c52a27d7c85986319e006fa57bb87a4c | 1,034 | Jithapp | Apache License 2.0 |
app/src/main/java/com/pr0gramm/app/ui/MergeRecyclerAdapter.kt | chrosey | 95,877,863 | false | null | package com.pr0gramm.app.ui
import android.support.v7.widget.RecyclerView
import android.view.ViewGroup
import com.google.common.base.Preconditions.checkNotNull
import gnu.trove.map.TIntIntMap
import gnu.trove.map.hash.TIntIntHashMap
import org.slf4j.LoggerFactory
import java.util.*
/**
* Adapted from https://gist.g... | 1 | null | 1 | 1 | b6a7b846bcae573545da824cb716a07a334adedb | 6,639 | Pr0 | MIT License |
feature/order/src/main/java/com/niyaj/order/components/OrderTabs.kt | skniyajali | 644,752,474 | false | {"Kotlin": 2051174} | package com.niyaj.order.components
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.pager.HorizontalPager
import androidx.compose.foundation.pager.PagerState
import androidx.compose.foundation.shape.CutCornerShape
imp... | 12 | Kotlin | 0 | 3 | f068f418b7691ab2959e12ff6ec900c4bd92bfb5 | 2,572 | PoposRoom | Apache License 2.0 |
OnlinePK-Android/biz-live/src/main/java/com/netease/biz_live/yunxin/live/audience/ui/LiveAudienceActivity.kt | Dongshanxu | 436,919,018 | true | {"Objective-C": 1460921, "Kotlin": 612297, "Java": 270376, "Swift": 124861, "C": 7263, "Python": 2874, "Ruby": 1065} | /*
* Copyright (c) 2021 NetEase, Inc. All rights reserved.
* Use of this source code is governed by a MIT license that can be found in the LICENSE file
*/
package com.netease.biz_live.yunxin.live.audience.ui
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.... | 0 | Objective-C | 0 | 0 | e334a9a3c07cd03be26a78b08ca78b38fc097582 | 7,243 | OnlinePK | MIT License |
app/src/main/java/com/mubarak/newscastmb/ui/headlines/categories/technology/TechNewsFragment.kt | MubarakNative | 769,273,691 | false | {"Kotlin": 79558} | package com.mubarak.newscastmb.ui.headlines.categories.technology
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.viewModels
import androidx.lifecycle.Lifecycle
import androidx.lifecycl... | 0 | Kotlin | 0 | 3 | 22e79f33a86a7de56113aac503696612624c42a9 | 2,706 | News-Cast-MB | Apache License 2.0 |
onebusaway-sdk-java-core/src/main/kotlin/com/open_transit/api/services/blocking/ScheduleForRouteService.kt | OneBusAway | 864,202,238 | false | {"Kotlin": 1841904, "Shell": 3662, "Dockerfile": 399} | // File generated from our OpenAPI spec by Stainless.
@file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102
package com.open_transit.api.services.blocking
import com.open_transit.api.core.RequestOptions
import com.open_transit.api.models.ScheduleForRouteRetrieveParams
import com.... | 0 | Kotlin | 0 | 0 | 4139f96c4d90517f472a1b2561df813ad231f904 | 674 | java-sdk | Apache License 2.0 |
app/src/main/java/com/thiagoperea/pokedexplusplus/internal/extension/StringExt.kt | thiagoperea | 505,472,826 | false | null | package com.thiagoperea.pokedexplusplus.internal.extension
import java.util.*
fun String.firstUppercase() = this.replaceFirstChar { if (it.isLowerCase()) it.titlecase(Locale.getDefault()) else it.toString() } | 0 | Kotlin | 0 | 0 | 2c92febb1b277a72885879f6e5751f3607632b9a | 210 | pokedex-plus-plus | The Unlicense |
extensions/src/main/java/com/jeanbarrossilva/period/extensions/mutablelivedata/MutableLiveData.kt | jeanbarrossilva | 365,115,291 | false | null | package com.jeanbarrossilva.period.extensions.mutablelivedata
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import kotlin.reflect.KProperty
operator fun <T> MutableLiveData<T>.getValue(thisRef: Any?, property: KProperty<*>) = value
operator fun <T> MutableLiveData<T>.setValue(thisRef: ... | 1 | Kotlin | 0 | 0 | a59f9bdaec84b91bc45ce90b6da996cf4ccd5c53 | 446 | Period | MIT License |
app/src/main/java/com/tanes/TableActivity.kt | hotequil | 631,256,555 | false | null | package com.tanes
import android.content.Intent
import android.os.Bundle
import android.widget.Button
import androidx.activity.ComponentActivity
class TableActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layo... | 0 | Kotlin | 0 | 1 | 0692c4a7c3428612347ef85a3d5e05ee90f21997 | 591 | tanes | Creative Commons Zero v1.0 Universal |
src/androidMain/kotlin/com/liftric/job/queue/JobQueue.kt | Liftric | 540,447,820 | false | {"Kotlin": 31607} | package com.liftric.job.queue
import android.content.Context
import com.russhwolf.settings.SharedPreferencesSettings
import kotlinx.serialization.modules.SerializersModule
actual class JobQueue(
context: Context,
serializers: SerializersModule = SerializersModule {},
configuration: Queue.Configuration = Q... | 1 | Kotlin | 0 | 6 | c7a7bc6d5adaee6554e5b1b21951d0715d6680df | 540 | kmm-job-queue | MIT License |
app/src/main/java/com/jacekpietras/zoo/app/di/AppModule.kt | JacekPietras | 334,416,736 | false | {"Kotlin": 752140, "Java": 21319} | package com.jacekpietras.zoo.app.di
import com.jacekpietras.zoo.app.contract.tracking.interactor.ObserveCompassEnabledUseCaseAdapter
import com.jacekpietras.zoo.app.contract.tracking.interactor.ObserveLightSensorEnabledUseCaseImpl
import com.jacekpietras.zoo.app.contract.tracking.interactor.ObserveNavigationEnabledUse... | 0 | Kotlin | 1 | 2 | e6a689f442cc32d19ee3f51efc49bf49f9969ca8 | 2,244 | ZOO | MIT License |
app/src/main/java/com/example/alkoplan/data/place/PlaceDatabase.kt | SamSapuel | 500,731,548 | false | {"Kotlin": 55065} | package com.example.alkoplan.data.place
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
@Database(entities = [Place::class], version = 1, exportSchema = false)
abstract class PlaceDatabase: RoomDatabase() {
abstract fun placeDao(): PlaceDao... | 0 | Kotlin | 0 | 0 | 07c6c82bce3b2646ac22e14456eb40037077cd68 | 973 | AlkoPlan | MIT License |
domain/src/main/java/dev/seabat/android/hellobottomnavi/domain/usecase/GithubUseCaseContract.kt | seabat | 614,867,401 | false | {"Kotlin": 67436} | package dev.seabat.android.hellobottomnavi.domain.usecase
import dev.seabat.android.hellobottomnavi.domain.entity.RepositoryListEntity
interface GithubUseCaseContract {
suspend fun loadRepos(query: String?): RepositoryListEntity?
} | 0 | Kotlin | 0 | 0 | b4c5afa9609ef0e07e36593b8545d9ab093c33ea | 237 | hello-bottom-navigation | Apache License 2.0 |
androidaudioplugin-ui-compose/src/main/java/org/androidaudioplugin/ui/compose/PluginListApp.kt | atsushieno | 186,288,472 | false | null | package org.androidaudioplugin.ui.compose
import android.annotation.SuppressLint
import android.app.Activity
import android.net.Uri
import android.widget.Toast
import androidx.activity.compose.BackHandler
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
import androidx... | 24 | C++ | 3 | 70 | 086f5225c902986763b7fb40e77ded8edcc5bbf1 | 4,850 | aap-core | MIT License |
app/src/main/java/com/sedsoftware/yaptalker/di/modules/AppModule.kt | srihi | 117,938,951 | true | {"Kotlin": 417819, "IDL": 1260, "Shell": 1229, "Prolog": 873, "CSS": 50} | package com.sedsoftware.yaptalker.di.modules
import android.content.Context
import android.content.SharedPreferences
import android.support.v7.preference.PreferenceManager
import dagger.Module
import dagger.Provides
import javax.inject.Singleton
@Module
class AppModule {
@Singleton
@Provides
fun provideSharedP... | 0 | Kotlin | 0 | 0 | 032efc21803c44ef95b380191dae4eedb3591d26 | 425 | YapTalker | Apache License 2.0 |
modules/dokkatoo-plugin/src/main/kotlin/adapters/DokkatooAndroidAdapter.kt | adamko-dev | 598,382,061 | false | null | package dev.adamko.dokkatoo.adapters
import com.android.build.gradle.AppExtension
import com.android.build.gradle.BaseExtension
import com.android.build.gradle.LibraryExtension
import com.android.build.gradle.TestExtension
import com.android.build.gradle.api.BaseVariant
import com.android.build.gradle.internal.depende... | 14 | Kotlin | 2 | 19 | b2597f28a885290276f4b27a41b5b3a0e7a8b648 | 5,255 | dokkatoo | Apache License 2.0 |
front-end/src/main/kotlin/Extensions.kt | nishtahir | 114,476,336 | false | null | import org.w3c.dom.Element
import org.w3c.dom.events.Event
inline fun Element.onClick(preventDefault: Boolean = false, crossinline listener: (Event) -> Unit) {
addEventListener("click", { event: Event ->
if(preventDefault) { event.preventDefault() }
listener(event)
})
} | 0 | Kotlin | 0 | 0 | 0324baf7a8cf4febebbdc6c80f6b70bf692dc412 | 295 | kotlin-multiplatform-demo | Apache License 2.0 |
app/src/main/java/com/example/weatherly/DataStore.kt | ChrisTs8920 | 707,367,440 | false | {"Kotlin": 56610} | package com.example.weatherly
import android.content.Context
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
import androidx.datastore.preferences.core.booleanPreferencesKey
import androidx.datastore.preferences.core.edit
import androidx.datastore.preferences.core.string... | 0 | Kotlin | 0 | 0 | 3fc20cdfd9ae8b98c2fe929c85cf16955dd4fa56 | 1,366 | Weatherly | MIT License |
src/main/kotlin/com/minhiew/translation/AndroidFileParser.kt | mhiew | 431,932,268 | false | null | package com.minhiew.translation
import org.dom4j.Document
import org.dom4j.io.SAXReader
import java.io.File
object AndroidFileParser {
fun getDocument(file: File): Document {
val bufferedReader = file.bufferedReader()
return SAXReader().read(bufferedReader)
}
fun parse(file: File): Map<St... | 0 | Kotlin | 0 | 1 | 8261d9e94cd0a69bb04d5e5cb018bf5d16f95e89 | 657 | translation-tool | MIT License |
app/src/main/java/com/example/marsphotos/database/MarsPhotoDao.kt | shenziq1 | 576,342,462 | false | {"Kotlin": 23124} | package com.example.marsphotos.database
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
@Dao
interface MarsPhotoDao {
@Query("SELECT * FROM marsPhotoEntity")
suspend fun getAll(): List<MarsPhotoEntity>
@Insert(onConflict = OnConflict... | 0 | Kotlin | 0 | 0 | 3612acfdb1a79a1d182c784e87b1bfe4a31f6f01 | 395 | NetworkDemo | Apache License 2.0 |
bletower-android/src/main/java/com/monomobile/bletower/HeartRateMonitorEvent.kt | BugraDemiral | 859,520,099 | false | {"Kotlin": 103170} | package com.monomobile.bletower
sealed class HeartRateMonitorEvent: BaseMonitorEvent() {
data class HeartRateRead(val heartRate: Result<Int?>) : HeartRateMonitorEvent()
data class SensorLocationRead(val sensorLocation: Result<String?>) : HeartRateMonitorEvent()
data class EnergyExpendedReset(val result: Re... | 0 | Kotlin | 0 | 3 | 9b9d45aae1897a1befc7f0103440c5209ad45a23 | 363 | bletower | MIT License |
module-business-weather/src/main/java/com/ustory/module_business_one/view/WeatherActivity.kt | bing521 | 150,531,783 | true | {"Kotlin": 254438, "Java": 44873} | package com.ustory.module_business_one.view
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import com.ustory.module_business_one.R
class WeatherActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setCon... | 1 | Kotlin | 1 | 1 | d69f84dd3b2a39814cc2531a2b223a733c79693e | 366 | Relax | MIT License |
data-model/src/main/kotlin/com/ash/trading/oms/model/user/User.kt | ashfrench | 760,910,146 | false | {"Kotlin": 119375} | package com.ash.trading.oms.model.user
import com.ash.trading.oms.model.UserId
import java.util.*
data class User(
val userId: UserId,
val userName: String
)
| 0 | Kotlin | 0 | 0 | 4c2726902daf2d68a2aaf97c71d18988ff7351ea | 169 | trade-oms | Apache License 2.0 |
Object-Oriented Programming/Objects/Exercise 3/src/Task.kt | marchdz | 633,862,396 | false | null | // Objects/ObjectEx3.kt
package objectsExercise3
import atomictest.*
interface AdventureGame {
interface Environment
interface Character
val environment: Environment
val characters: MutableList<Character>
fun populate()
}
class Jungle : AdventureGame.Environment {
/*TODO*/
}
class Monkey : AdventureGame.Ch... | 0 | Kotlin | 0 | 0 | 1efabf8721c4efbb0891b7b9469efc9e7b36f189 | 733 | atomic-kotlin-exercises | MIT License |
src/iosMain/kotlin/com/nekzabirov/viewmodel/ViewModel.ios.kt | nekzabirov | 755,287,530 | false | {"Kotlin": 10179} | package com.nekzabirov.viewmodel
import androidx.compose.runtime.Composable
import androidx.compose.runtime.DisallowComposableCalls
import androidx.compose.runtime.DisposableEffect
import androidx.compose.runtime.remember
import platform.UIKit.UIViewController
import kotlin.reflect.KClass
inline fun <reified VM : Vie... | 0 | Kotlin | 0 | 0 | cc0645838b5dab7c03887ffc52b14ccaaab08d8c | 1,148 | Viewmodel_KMM | Apache License 2.0 |
svverif/04-utopia-atm-switch/src/main/kotlin/LookupTable.kt | frwang96 | 416,809,961 | false | null | /*
* SPDX-License-Identifier: Apache-2.0
*/
@file:Verik
import io.verik.core.*
class LookupTable<SIZE: `*`, TYPE> : ModuleInterface() {
val mem: Unpacked<EXP<SIZE>, TYPE> = nc()
fun write(addr: Ubit<OF<SIZE>>, data: TYPE) {
mem[addr] = data
}
fun read(addr: Ubit<OF<SIZE>>): TYPE {
... | 0 | Kotlin | 1 | 5 | 9a0f5f79b824e69a33dc4f9717d3b9e3ed103180 | 347 | verik-examples | Apache License 2.0 |
src/main/kotlin/derivean/rest/game/kingdom/endpoint/StatisticsEndpoint.kt | marek-hanzal | 259,577,282 | false | null | package derivean.rest.game.kingdom.endpoint
import derivean.storage.repository.KingdomBuildingRepository
import derivean.storage.repository.KingdomHeroRepository
import io.ktor.application.*
import io.ktor.auth.*
import io.ktor.routing.*
import io.ktor.util.*
import leight.container.IContainer
import leight.http.withA... | 112 | Kotlin | 0 | 1 | 7a485228438c5fb9a61b1862e8164f5e87361e4a | 1,953 | DeRivean | Apache License 2.0 |
app/src/main/java/com/akshay/newsapp/ui/NewsArticleViewModel.kt | ovestoerholt | 97,177,027 | true | {"Java": 16418, "Kotlin": 13439} | package com.akshay.newsapp.ui
import android.app.Application
import android.arch.lifecycle.AndroidViewModel
import android.arch.lifecycle.LiveData
import com.akshay.newsapp.api.NewsSourceService
import com.akshay.newsapp.db.DatabaseCreator
import com.akshay.newsapp.model.NewsArticles
import com.akshay.newsapp.model.Re... | 0 | Java | 0 | 0 | d09c38dc5a67b71dd8448df0d776549e5f539206 | 1,175 | android-arch-news-sample | MIT License |
bridge-client/src/commonMain/kotlin/org/sagebionetworks/bridge/kmm/shared/models/ClientInfo.kt | Erin-Mounts | 399,558,346 | true | {"Objective-C": 783662, "Kotlin": 390815, "Swift": 229085, "Shell": 291} | /**
* Bridge Server API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 0.16.25
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not ed... | 0 | null | 0 | 0 | 3931aadd1de1c923d7323ff817b41b774a15ca86 | 2,454 | BridgeClientKMM | Apache License 2.0 |
core/src/com/ascending/games/id1/model/mechanics/Battle.kt | AscendingGames | 147,917,936 | false | null | package com.ascending.games.id1.model.mechanics
import com.ascending.games.id1.model.board.ARoomContent
import com.ascending.games.id1.model.board.Hero
import com.ascending.games.id1.model.board.Monster
data class Battle(val hero : Hero, val monster : Monster) {
private val statService = StatService()
val w... | 11 | null | 1 | 1 | 7fb0ee90967c49ab1056620c68a2029f663e4e40 | 486 | DungeonCreator | MIT License |
Foodstache/app/src/main/java/com/example/foodstache/Fragments/AddImageFragment.kt | AyAztuB | 608,377,665 | false | null | package com.example.foodstache.Fragments
import android.app.ProgressDialog
import android.content.ContentValues.TAG
import android.content.Intent
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.net.Uri
import android.os.Bundle
import android.text.TextUtils
import android.util.Base64... | 0 | Kotlin | 0 | 0 | 71749fa00917e1e922cce1fcd4241b68410e2b24 | 6,684 | foodstache | MIT License |
cache/src/test/java/ru/roborox/reactive/cache/config.kt | roborox | 281,449,914 | false | {"Maven POM": 24, "Text": 1, "Ignore List": 1, "Kotlin": 72, "XML": 1, "JSON": 1, "Java": 70, "YAML": 1, "INI": 4, "Scala": 1} | package ru.roborox.reactive.cache
import org.springframework.boot.autoconfigure.EnableAutoConfiguration
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import reactor.core.publisher.Mono
import ru.roborox.reactive.lock.LockService
import ru.roborox.reactiv... | 0 | Kotlin | 0 | 0 | 5c9e0f407c1ae389fe79efb9a836c418244cf9bf | 713 | spring-reactive | MIT License |
core/src/main/kotlin/io/github/mscheong01/krotodc/KrotoDCConverter.kt | mscheong01 | 622,059,122 | false | {"Kotlin": 147117} | package io.github.mscheong01.krotodc
import kotlin.reflect.KClass
@Target(AnnotationTarget.FUNCTION)
annotation class KrotoDCConverter(
val from: KClass<out Any>,
val to: KClass<out Any>
)
| 7 | Kotlin | 8 | 91 | e4690e830c25947e4a7642cacdd5d6a7f21d5d57 | 199 | krotoDC | Apache License 2.0 |
app/src/main/java/com/badger/familyorgfe/data/source/auth/CheckCodeJson.kt | Artem-Yakovlev | 435,967,282 | false | {"Kotlin": 264356} | package com.badger.familyorgfe.data.source.auth
class CheckCodeJson {
data class Form(
val email: String,
val code: String
)
data class Response(
val email: String,
val success: Boolean,
val token: String?
)
} | 0 | Kotlin | 0 | 1 | 3aa4ff1bd05efb2c9d16fd0fae0e907674817c5c | 269 | FamilyOrganizerAndroid | MIT License |
app/src/main/java/com/megatest/myapplication/framework/presentation/detail/TimePickerFragment.kt | Losefeather | 426,834,646 | true | {"Kotlin": 105820} | package com.megatest.myapplication.framework.presentation.detail
import android.app.Dialog
import android.app.TimePickerDialog
import android.os.Bundle
import android.text.format.DateFormat
import android.widget.TimePicker
import androidx.fragment.app.DialogFragment
import androidx.navigation.navGraphViewModels
import... | 0 | null | 0 | 0 | a6c6a06ff4c1718494673a14c555e58714bf45d9 | 1,251 | BudgetExpenseApp | MIT License |
app/src/main/java/com/ultimus/distantworlds/model/PhotosResponse.kt | ianhanniballake | 287,829,254 | true | {"Kotlin": 17586} | /*
* Copyright 2018 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | 0 | null | 0 | 0 | 25082a542ac9429e8374bbe4f6b207213d4a4057 | 868 | DistantWorlds-Muzei | Apache License 2.0 |
json-plugin/src/main/kotlin/juuxel/adorn/json/SofaBlockModel.kt | immortalcatz | 184,318,389 | true | {"Kotlin": 75096} | package juuxel.adorn.json
import io.github.cottonmc.jsonfactory.data.Identifier
import io.github.cottonmc.jsonfactory.gens.ContentGenerator
import io.github.cottonmc.jsonfactory.output.model.Model
import io.github.cottonmc.jsonfactory.output.suffixed
internal object SofaBlockModel : ContentGenerator("Sofa Block Model... | 0 | Kotlin | 0 | 0 | 29d62f93f8a4aa20941954f58eaa26b54a71f7b2 | 1,615 | Adorn | MIT License |
src/test/kotlin/io/github/ivsokol/poe/variable/VariableValueTypesTest.kt | ivsokol | 850,045,264 | false | {"Kotlin": 1891986} | package io.github.ivsokol.poe.variable
import io.github.ivsokol.poe.DefaultObjectMapper
import io.kotest.core.spec.style.FunSpec
import io.kotest.datatest.withData
import io.kotest.matchers.shouldBe
import java.math.BigDecimal
import java.time.*
import kotlinx.serialization.json.Json
import kotlinx.serialization.json.... | 0 | Kotlin | 0 | 1 | e1513c000ced3eafefad6778fc6085df8c4b17ee | 14,323 | policy-engine | Apache License 2.0 |
src/main/kotlin/com/github/mrgaabriel/ayla/commands/developer/MagicCommand.kt | MrGaabriel | 143,538,052 | false | null | package com.github.mrgaabriel.ayla.commands.developer
import com.github.mrgaabriel.ayla.commands.*
import com.github.mrgaabriel.ayla.utils.annotation.InjectParameterType
import com.github.mrgaabriel.ayla.utils.annotation.ParameterType
import net.dv8tion.jda.core.entities.User
import net.perfectdreams.commands.annotati... | 20 | Kotlin | 1 | 4 | 51768344e6b0b53fbbb5fb298cb88dea848a5faa | 1,427 | Ayla | MIT License |
idea/testData/intentions/branched/ifThenToDoubleBang/this.kt | JakeWharton | 99,388,807 | false | null | // WITH_RUNTIME
fun String?.foo() = if (this == <caret>null) throw NullPointerException() else this | 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 99 | kotlin | Apache License 2.0 |
android/app_core/src/main/java/work/shion/xapprecipe_core/repositories/PdfRepositoryContract.kt | tshion | 261,409,412 | false | null | package work.shion.xapprecipe_core.repositories
import java.io.File
interface PdfRepositoryContract {
suspend fun fetch(
name: String,
url: String,
): File?
suspend fun load(name: String): File?
}
| 2 | Kotlin | 1 | 0 | a6c14cde33b5f1bed6563e772e9092c58391be98 | 229 | XAppRecipe | MIT License |
codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/AWSSwiftDependency.kt | awslabs | 278,475,105 | false | null | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
package software.amazon.smithy.aws.swift.codegen
import software.amazon.smithy.swift.codegen.SwiftDependency
class AWSSwiftDependency {
companion object {
val AWS_SDK_IDENTITY = SwiftDepend... | 178 | null | 78 | 398 | 08334ae7385b08c14d01dfb961df8632761a9647 | 1,317 | aws-sdk-swift | Apache License 2.0 |
plugins/kotlin/idea/tests/testData/quickfix/nullables/unsafeInfixCall/unsafeInfixCall.kt | ingokegel | 72,937,917 | true | null | // "Replace with safe (?.) call" "true"
fun test(a : Int?) : Int? {
return a <caret>compareTo 6;
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ReplaceInfixOrOperatorCallFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ReplaceInfixOrOperatorCallFix | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 279 | intellij-community | Apache License 2.0 |
app/src/main/java/com/stellarcontainersfsm/features/myjobs/api/MyJobRepoProvider.kt | DebashisINT | 756,252,499 | false | {"Kotlin": 14218175, "Java": 1004755} | package com.stellarcontainersfsm.features.myjobs.api
import android.content.Context
import android.net.Uri
import android.util.Log
import com.stellarcontainersfsm.app.FileUtils
import com.stellarcontainersfsm.base.BaseResponse
import com.stellarcontainersfsm.features.activities.model.ActivityImage
import com.stellarco... | 0 | Kotlin | 0 | 0 | afb97c29d93fc5bd8668cd16d2525947ad51b8a5 | 854 | StellarContainersFSM | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.