path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/kotlin/taiwan/no1/app/ssfm/models/usecases/GetTopTracksUsecase.kt | pokk | 90,497,127 | false | null | package taiwan.no1.app.ssfm.models.usecases
import io.reactivex.Observable
import taiwan.no1.app.ssfm.models.data.IDataStore
import taiwan.no1.app.ssfm.models.entities.lastfm.TopTrackEntity
import taiwan.no1.app.ssfm.models.usecases.GetTopTracksUsecase.RequestValue
/**
* @author jieyi
* @since 10/11/17
*/
class... | 0 | Kotlin | 0 | 1 | 1928c2f1a42634ede147517854d06b6fd5d11e7b | 666 | SSFM | Apache License 2.0 |
app/src/main/java/net/squanchy/venue/VenueInfoPageView.kt | vishnus1224 | 109,707,360 | false | {"Gradle": 6, "INI": 1, "Markdown": 7, "Shell": 4, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Java Properties": 1, "Proguard": 1, "Java": 104, "Kotlin": 135, "XML": 122, "JSON": 1, "YAML": 2} | package net.squanchy.venue
import android.annotation.TargetApi
import android.content.Context
import android.os.Build
import android.support.design.widget.CoordinatorLayout
import android.support.v7.widget.Toolbar
import android.text.Html
import android.text.Spanned
import android.util.AttributeSet
import android.widg... | 1 | null | 1 | 1 | 2a69393c360c9885b6ca2c2ec3702a87e6301a2d | 3,659 | squanchy-android | Apache License 2.0 |
app/src/main/java/com/kylecorry/trail_sense/weather/infrastructure/temperatures/HistoricTemperatureRepo.kt | kylecorry31 | 215,154,276 | false | null | package com.kylecorry.trail_sense.weather.infrastructure.temperatures
import android.content.Context
import com.kylecorry.sol.math.Range
import com.kylecorry.sol.math.SolMath
import com.kylecorry.sol.science.geology.CoordinateBounds
import com.kylecorry.sol.units.Coordinate
import com.kylecorry.sol.units.Reading
impor... | 335 | Kotlin | 39 | 561 | 2d7766cb87c2d1c7581f1a7e5f591ecf7e72570b | 9,486 | Trail-Sense | MIT License |
app/src/main/java/zx9/staris/sqlDeveloper/WebView.kt | sungdoolim | 387,116,971 | false | null | package zx9.staris.infoengineer
import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.webkit.WebChromeClient
import android.webkit.WebSettings
import android.webkit.WebViewClient
import androidx.annotation.RequiresApi
import androidx.appcompat.app.AppCompatActivity
import kotlin... | 0 | Kotlin | 0 | 0 | db6096e83f64406a6c959f015b636ab5fb67a00c | 1,196 | infoEngineer | Apache License 2.0 |
smash-ranks-android/app/src/main/java/com/garpr/android/features/tournament/TournamentPlayerItemView.kt | charlesmadere | 41,832,700 | true | null | package com.garpr.android.features.tournament
import android.content.Context
import android.graphics.Typeface
import android.graphics.drawable.Drawable
import android.util.AttributeSet
import android.view.View
import android.widget.FrameLayout
import androidx.annotation.ColorInt
import androidx.core.content.ContextCom... | 0 | Kotlin | 0 | 9 | 151b2a0f9b4d38be60c3f73344ca444f17810bfd | 1,833 | smash-ranks-android | The Unlicense |
src/test/kotlin/com/jameskbride/localsns/GetSubscriptionAttributesRouteTest.kt | jameskbride | 708,571,483 | false | null | package com.jameskbride.localsns
import com.jameskbride.localsns.verticles.MainVerticle
import io.vertx.core.Vertx
import io.vertx.junit5.VertxExtension
import io.vertx.junit5.VertxTestContext
import org.jsoup.Jsoup
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.BeforeEach
import org... | 4 | null | 0 | 1 | 1f5f3dcaa50644d58832928778951257e69b0227 | 4,029 | local-sns | MIT License |
scalechain-net/src/main/kotlin/io/scalechain/blockchain/net/p2p/NodeThrottle.kt | ScaleChain | 45,332,311 | false | null | package io.scalechain.blockchain.net.p2p
import org.slf4j.Logger
/**
* Created by kangmo on 8/7/16.
*/
object NodeThrottle {
/**
* Netty uses direct memory for receiving messages. If peers send messages faster than this node can process,
* The direct memory fills up. We need to wait for messages to be ... | 11 | Kotlin | 67 | 234 | 702ac4d65febb05dc8283e8c165df454efa339b8 | 1,599 | scalechain | Intel Open Source License |
src/main/java/dev/kensa/state/TestInvocationFactory.kt | kensa-dev | 515,073,953 | false | {"Kotlin": 285146, "ANTLR": 97482, "JavaScript": 48188, "Java": 38466, "SCSS": 6515, "Makefile": 1815, "HTML": 427} | package dev.kensa.state
import dev.kensa.context.TestContext
import dev.kensa.parse.ParsedTestInvocation
import dev.kensa.parse.TestInvocationParser
import dev.kensa.parse.java.JavaMethodParser
import dev.kensa.parse.kotlin.KotlinFunctionParser
import dev.kensa.render.diagram.SequenceDiagramFactory
import java.time.Du... | 5 | Kotlin | 1 | 7 | b236cbee0e538f20e3c7d9790ff198141ad1bde7 | 1,279 | kensa | Apache License 2.0 |
feature-wallet-impl/src/main/java/jp/co/soramitsu/feature_wallet_impl/data/network/blockchain/updaters/PaymentUpdater.kt | trustex | 385,920,487 | true | {"Kotlin": 1887102} | package jp.co.soramitsu.feature_wallet_impl.data.network.blockchain.updaters
import jp.co.soramitsu.common.data.network.runtime.binding.ExtrinsicStatusEvent
import jp.co.soramitsu.common.utils.Modules
import jp.co.soramitsu.common.utils.SuspendableProperty
import jp.co.soramitsu.common.utils.networkType
import jp.co.s... | 0 | null | 0 | 0 | cdb76cfdc1486e171c98aae3650e1d2e224a185a | 4,761 | fearless-Android | Apache License 2.0 |
src/main/kotlin/com/ecwid/apiclient/v3/dto/batch/request/GetEscapedBatchRequest.kt | Ecwid | 160,232,759 | false | null | package com.ecwid.apiclient.v3.dto.batch.request
import com.ecwid.apiclient.v3.dto.ApiRequest
import com.ecwid.apiclient.v3.impl.RequestInfo
data class GetEscapedBatchRequest(
val ticket: String = ""
) : ApiRequest {
override fun toRequestInfo() = RequestInfo.createGetRequest(
pathSegments = listOf(
"batch"
... | 6 | Kotlin | 8 | 9 | 6d56e9b5fa18aaf3b0432cdc8abc4e4865cba136 | 400 | ecwid-java-api-client | Apache License 2.0 |
resources/src/commonMain/kotlin/Resources.kt | splendo | 191,371,940 | false | {"Kotlin": 6494822, "Swift": 172024, "Shell": 1514} | /*
Copyright 2022 Splendo Consulting B.V. The Netherlands
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by appli... | 87 | Kotlin | 7 | 315 | 4094d5625a4cacb851b313d4e96bce6faac1c81f | 7,391 | kaluga | Apache License 2.0 |
src/main/kotlin/org/agoranomic/assessor/lib/resolve/Resolve.kt | AgoraNomic | 98,589,628 | false | null | package org.agoranomic.assessor.lib.resolve
import kotlinx.collections.immutable.ImmutableMap
import kotlinx.collections.immutable.toImmutableList
import kotlinx.collections.immutable.toImmutableMap
import org.agoranomic.assessor.lib.proposal.*
import org.agoranomic.assessor.lib.proposal.proposal_set.ImmutableProposal... | 1 | null | 0 | 1 | 559102b82a0b0ef905ccb3fba2d053e50f3f59d5 | 5,410 | assessor | MIT License |
cordapp/src/main/kotlin/com.luxoft.blockchainlab.corda.hyperledger.indy/flow/AssignPermissionsFlow.kt | Luxoft | 144,526,065 | false | null | package com.luxoft.blockchainlab.corda.hyperledger.indy.flow
import co.paralleluniverse.fibers.Suspendable
import com.luxoft.blockchainlab.hyperledger.indy.IndyUser
import net.corda.core.flows.*
import net.corda.core.identity.CordaX500Name
import net.corda.core.identity.Party
import net.corda.core.serialization.CordaS... | 15 | Kotlin | 20 | 32 | 8e75bdbd79b0ad7cadb8b9946ae4a0b81cdbdf64 | 3,102 | cordentity | Apache License 2.0 |
cordapp/src/main/kotlin/com.luxoft.blockchainlab.corda.hyperledger.indy/flow/AssignPermissionsFlow.kt | Luxoft | 144,526,065 | false | null | package com.luxoft.blockchainlab.corda.hyperledger.indy.flow
import co.paralleluniverse.fibers.Suspendable
import com.luxoft.blockchainlab.hyperledger.indy.IndyUser
import net.corda.core.flows.*
import net.corda.core.identity.CordaX500Name
import net.corda.core.identity.Party
import net.corda.core.serialization.CordaS... | 15 | Kotlin | 20 | 32 | 8e75bdbd79b0ad7cadb8b9946ae4a0b81cdbdf64 | 3,102 | cordentity | Apache License 2.0 |
src/frontendMain/kotlin/io/joaofig/vedmap/states/ClusterListState.kt | joaofig | 437,581,924 | false | null | package io.joaofig.vedmap.states
import io.joaofig.vedmap.models.Cluster
import io.kvision.state.ObservableValue
class ClusterListState(val cluster: Cluster) {
val isSelected = ObservableValue(false)
}
| 0 | Kotlin | 0 | 1 | 6b11d1183cc48526612a33967c516a5bfcbc6e07 | 208 | ved-map | MIT License |
src/main/kotlin/pfister/quickercrafting/common/ConfigValues.kt | PfisterFactor | 214,296,611 | false | null | package pfister.quickercrafting.common
import net.minecraftforge.common.config.Config
import pfister.quickercrafting.MOD_ID
import pfister.quickercrafting.common.network.MessageSyncConfig
@Config(modid = MOD_ID, name = "QuickerCrafting")
object ConfigValues {
fun generateSyncPacket(): MessageSyncConfig {
... | 15 | null | 1 | 8 | 49c82081412af20095946acae08e9a94f781e615 | 2,576 | QuickerCrafting | MIT License |
common/src/main/kotlin/ml/alio/frame/common/Anys.kt | adminliux | 156,139,360 | false | null | package ml.alio.frame.common
import com.alibaba.fastjson.JSON
import com.alibaba.fastjson.JSONObject
import com.google.common.reflect.TypeToken
import com.google.gson.Gson
import org.apache.commons.logging.Log
import org.apache.commons.logging.LogFactory
import java.io.ByteArrayOutputStream
import java.io.IOException
... | 0 | Kotlin | 0 | 0 | fd7080cc1bafde38b2ce32201f826e8a332398fe | 2,059 | alio-frame | Apache License 2.0 |
backend_kotlin/application/src/main/kotlin/be/swsb/makeastats/kotlinbackend/domain/playerstats/PlayerStatsRepo.kt | SoftwareSandbox | 129,135,025 | false | null | package be.swsb.makeastats.kotlinbackend.domain.playerstats
import be.swsb.makeastats.kotlinbackend.domain.playerstats.PlayerStats
import org.jdbi.v3.sqlobject.statement.SqlQuery
import org.jdbi.v3.sqlobject.statement.SqlUpdate
import java.util.*
interface PlayerStatsRepo {
@SqlUpdate("insert into playerstats (id... | 9 | null | 3 | 2 | 8889083f5f6564d071be6d004f607ab415b91502 | 1,442 | make-a-stats | MIT License |
backend_kotlin/application/src/main/kotlin/be/swsb/makeastats/kotlinbackend/domain/playerstats/PlayerStatsRepo.kt | SoftwareSandbox | 129,135,025 | false | null | package be.swsb.makeastats.kotlinbackend.domain.playerstats
import be.swsb.makeastats.kotlinbackend.domain.playerstats.PlayerStats
import org.jdbi.v3.sqlobject.statement.SqlQuery
import org.jdbi.v3.sqlobject.statement.SqlUpdate
import java.util.*
interface PlayerStatsRepo {
@SqlUpdate("insert into playerstats (id... | 9 | null | 3 | 2 | 8889083f5f6564d071be6d004f607ab415b91502 | 1,442 | make-a-stats | MIT License |
app/src/main/java/ethiopia/covid/android/ui/adapter/ContactRecyclerAdapter.kt | brookmg | 249,926,845 | false | null | package ethiopia.covid.android.ui.adapter
import android.text.Html
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.content.ContextCompat
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import ethiopia.covid.android.R
import... | 14 | Kotlin | 5 | 18 | 2feaf0f03d316c4fc08c2ebea1d77ee773eaa5b6 | 3,979 | CovidAndroid | Apache License 2.0 |
data/sqldelight/src/nonAndroidMain/kotlin/com/taetae98/codelab/data/sqldelight/SqldelightModule.kt | taetae98coding | 708,459,882 | false | {"Kotlin": 159196, "Swift": 1267, "HTML": 233, "Ruby": 109} | package com.taetae98.codelab.data.sqldelight
import kotlinx.coroutines.CoroutineDispatcher
import org.koin.core.annotation.Module
import org.koin.core.annotation.Named
import org.koin.core.annotation.Singleton
@Module
internal expect class SqldelightModule {
@Named(SqldelightLocalDataSourceModule.DATABASE_DISPATC... | 0 | Kotlin | 0 | 0 | ff8c88d02ca19066fe0373aa15e27167674dc3ab | 461 | CodeLab | Apache License 2.0 |
kohii-exoplayer/src/main/java/kohii/v1/exoplayer/Kohii.kt | mayuce | 321,449,022 | false | null | /*
* Copyright (c) 2019 <NAME>, <EMAIL>
*
* 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 | 1 | 6f598b80288512067b1e9c1c95ec0d13697d59ee | 7,567 | kohii | Apache License 2.0 |
test-common/src/main/kotlin/vilkår/UførevilkårTestData.kt | navikt | 227,366,088 | false | {"Kotlin": 9183466, "Shell": 4369, "TSQL": 1233, "Dockerfile": 800} | package no.nav.su.se.bakover.test.vilkårsvurderinger
import arrow.core.nonEmptyListOf
import no.nav.su.se.bakover.common.tid.Tidspunkt
import no.nav.su.se.bakover.common.tid.periode.Periode
import no.nav.su.se.bakover.common.tid.periode.år
import no.nav.su.se.bakover.domain.grunnlag.Grunnlag
import no.nav.su.se.bakove... | 5 | Kotlin | 1 | 1 | fbeb1614c40e0f6fce631d4beb1ba25e2f78ddda | 3,517 | su-se-bakover | MIT License |
deci/src/test/java/com/github/labai/deci/DeciExprTest.kt | labai | 432,527,602 | false | {"Kotlin": 61568, "Java": 3296} | /*
MIT License
Copyright (c) 2023 Augustus
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, publish, distr... | 0 | Kotlin | 0 | 0 | e3fc8dbac60c61fdea2de310949697a00a4a0a12 | 17,956 | deci | MIT License |
ids-api/src/main/kotlin/de/fhg/aisec/ids/api/router/graph/GraphData.kt | Fraunhofer-AISEC | 102,444,259 | false | null | /*-
* ========================LICENSE_START=================================
* ids-api
* %%
* Copyright (C) 2019 Fraunhofer AISEC
* %%
* 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
*... | 7 | null | 39 | 44 | 6c0daaaefc723d2f30d052e824c39496306032d9 | 1,195 | trusted-connector | Apache License 2.0 |
src/main/kotlin/managers/solution/pmodule/P9Solution.kt | booleanull | 176,114,644 | false | null | package managers.solution.pmodule
import Utils.toStringList
import controllers.solution.models.Solution
import daggerSolutionComponent
import managers.solution.base.BaseSolution
import managers.solution.qmodule.Q5Solution
import managers.solution.qmodule.Q7Solution
import managers.solution.qmodule.Q8Solution
import ja... | 0 | Kotlin | 0 | 0 | 81b96a415efba567d404571b7f8fa7095f891eba | 2,420 | FoxramAlpha-Backend | MIT License |
easyadapter-compiler/src/main/java/com/amrdeveloper/easyadapter/compiler/generator/RecyclerAdapterGenerator.kt | AmrDeveloper | 436,362,549 | false | {"Kotlin": 165234} | package com.amrdeveloper.easyadapter.compiler.generator
import com.amrdeveloper.easyadapter.compiler.data.adapter.RecyclerAdapterData
import com.amrdeveloper.easyadapter.compiler.utils.ViewTable
import com.squareup.kotlinpoet.*
import com.squareup.kotlinpoet.ParameterizedTypeName.Companion.parameterizedBy
class Recyc... | 1 | Kotlin | 5 | 77 | 22a727c2a71f50c5b2274c8b3f1593cc8f11c7ce | 4,311 | EasyAdapter | MIT License |
app/src/main/java/diamondcraft/devs/mycookinggallary/repositories/CookingRepository.kt | NimeshVasani | 615,890,267 | false | null | package diamondcraft.devs.mycookinggallary.repositories
import diamondcraft.devs.mycookinggallary.api.CookingApi
import diamondcraft.devs.mycookinggallary.db.Cooking
import diamondcraft.devs.mycookinggallary.db.CookingDAO
import diamondcraft.devs.mycookinggallary.models.CookingFeedResponse
import diamondcraft.devs.myc... | 0 | Kotlin | 0 | 1 | 0d58e7922297bdc301e38d0e4478161aead8f8a7 | 949 | My_Cooking_Gallary | Info-ZIP License |
app/src/main/java/diamondcraft/devs/mycookinggallary/repositories/CookingRepository.kt | NimeshVasani | 615,890,267 | false | null | package diamondcraft.devs.mycookinggallary.repositories
import diamondcraft.devs.mycookinggallary.api.CookingApi
import diamondcraft.devs.mycookinggallary.db.Cooking
import diamondcraft.devs.mycookinggallary.db.CookingDAO
import diamondcraft.devs.mycookinggallary.models.CookingFeedResponse
import diamondcraft.devs.myc... | 0 | Kotlin | 0 | 1 | 0d58e7922297bdc301e38d0e4478161aead8f8a7 | 949 | My_Cooking_Gallary | Info-ZIP License |
node/src/main/kotlin/net/corda/node/services/rpc/NodeLoginModule.kt | tomtau | 103,631,435 | true | {"Kotlin": 5305253, "Java": 244157, "CSS": 23334, "Shell": 6667, "Groovy": 2129, "Gherkin": 1892, "Batchfile": 1332, "PowerShell": 660} | package net.corda.node.services.rpc
import net.corda.core.internal.uncheckedCast
import net.corda.core.utilities.loggerFor
import net.corda.node.internal.security.Password
import net.corda.node.internal.security.RPCSecurityManager
import net.corda.node.internal.artemis.CertificateChainCheckPolicy
import net.corda.node... | 0 | Kotlin | 0 | 1 | 620ba1e8a2e6e82aa3bc3dd2ecba9dafd2f48b00 | 7,561 | corda | Apache License 2.0 |
Armadillo/src/main/java/com/scribd/armadillo/models/Models.kt | scribd | 375,130,964 | false | null | package com.scribd.armadillo.models
import android.os.Parcel
import android.os.Parcelable
import com.scribd.armadillo.Milliseconds
import com.scribd.armadillo.extensions.toPrint
import com.scribd.armadillo.time.milliseconds
import java.io.Serializable
data class AudioPlayable(val id: Int,
val... | 2 | Kotlin | 4 | 9 | 6abe7cfce7f06c846ec2120863ecce65a512eb4c | 4,282 | armadillo | MIT License |
app/src/main/java/com/merttoptas/composebase/features/ui/theme/Type.kt | merttoptas | 467,006,657 | false | null | package ke.co.tulivuapps.hobbyhorsetours.features.ui.theme
import androidx.compose.material.Typography
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.font.Font
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.sp
i... | 2 | null | 25 | 227 | 84ce69aaab69ca351c09712bc7213da0dcbf7639 | 2,911 | BaseApp-Jetpack-Compose-Android-Kotlin | Apache License 2.0 |
src/test/java/org/strykeforce/healthcheck/internal/JsonVisitorTest.kt | strykeforce | 97,531,449 | false | null | package org.strykeforce.healthcheck.internal
import com.ctre.phoenix.motorcontrol.can.BaseTalon
import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.api.Disabled
import org.junit.jupiter.api.Test
import org.mockito.kotlin.mock
import org.mockito.kotlin.whenever
import java.io.ByteArrayOutputStream
class... | 2 | null | 13 | 37 | 3b79cab51c6759959af794419ef1caab49b208a8 | 3,355 | thirdcoast | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/models/UpstreamApi.kt | ministryofjustice | 572,524,532 | false | null | package uk.gov.justice.digital.hmpps.hmppsintegrationapi.models
enum class UpstreamApi {
NOMIS, PRISONER_OFFENDER_SEARCH, PROBATION_OFFENDER_SEARCH, NDELIUS
}
| 1 | Kotlin | 1 | 1 | 0ccb328f5f9241ffb037af6bf1ee75ff5928089a | 162 | hmpps-integration-api | MIT License |
app/src/main/java/com/jtkt/mvvm_skyeye/base/BaseActivity.kt | MeteorStart | 204,427,340 | false | null | package com.jtkt.mvvm_skyeye.base
import android.app.Activity
import android.content.Context
import android.content.pm.PackageManager
import android.graphics.Color
import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.core.app.ActivityCompat
import androidx.c... | 0 | Kotlin | 0 | 0 | f3cd24ceb35cec74f5415e8fa0d2b88bc2cda602 | 3,349 | MVVM-Skyeye | Apache License 2.0 |
room/room-runtime/src/androidMain/kotlin/androidx/room/DelegatingOpenHelper.android.kt | androidx | 256,589,781 | false | null | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 29 | null | 937 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 1,095 | androidx | Apache License 2.0 |
app/src/main/java/hr/unipu/android/snapchat/ViewSnapActivity.kt | dudakovict | 430,136,953 | false | null | package hr.unipu.android.snapchat
import android.annotation.SuppressLint
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.os.AsyncTask
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.ImageView
import android.widget.TextView
import com.go... | 0 | Kotlin | 0 | 0 | f2d8979b7c99582ea9505568403d381e0b7d2cbc | 2,707 | snaps | MIT License |
src/main/kotlin/org/rust/ide/fixes/MakeAsyncFix.kt | intellij-rust | 42,619,487 | false | null | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.ide.fixes
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.project.Project
import org.rust.RsBundle
import org.rust.lang.core.psi.RsFunction
import org.rust.lang.core.psi.Rs... | 1,841 | null | 380 | 4,528 | c6657c02bb62075bf7b7ceb84d000f93dda34dc1 | 1,419 | intellij-rust | MIT License |
src/main/kotlin/com/drewzillawood/customprogressbar/component/CustomProgressBarUI.kt | Drewzillawood | 735,393,383 | false | {"Kotlin": 32062, "Java": 650} | package com.drewzillawood.customprogressbar.component
import com.drewzillawood.customprogressbar.settings.CustomProgressBarSettings
import com.intellij.ide.ui.laf.darcula.ui.DarculaProgressBarUI
import com.intellij.ui.scale.JBUIScale
import com.intellij.util.ui.JBInsets
import com.intellij.util.ui.UIUtilities
import j... | 0 | Kotlin | 0 | 0 | 79390f6f2ec14191b5772221ea04f52cc121f2e7 | 10,331 | intellij-custom-progress-bar | MIT License |
tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/InputMedia/ThumbedInputMedia.kt | leobia | 302,446,830 | true | {"Kotlin": 661169, "Shell": 373} | package dev.inmo.tgbotapi.types.InputMedia
import dev.inmo.tgbotapi.requests.abstracts.*
import dev.inmo.tgbotapi.types.thumbField
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
interface ThumbedInputMedia : InputMedia {
val thumb: InputFile?
@Serializable
@SerialName(th... | 0 | Kotlin | 0 | 0 | 3b41dc1fbf9f3058d2d7986e561f96e411193db3 | 556 | TelegramBotAPI | Apache License 2.0 |
examples/example-vfs/src/VirtualFile.kt | bbejeck | 3,456,568 | false | null | package org.jetbrains.jet.samples.vfs;
import org.jetbrains.jet.samples.vfs.utils.*;
import java.io.File
import java.io.InputStream
import java.io.FileInputStream
import java.util.ArrayList
import java.util.List
import kotlin.util.*
/**
* Abstract virtual file.
*/
public abstract class VirtualFile(public val path ... | 1 | null | 1 | 2 | 18c480ba98bc1154eee06530df310fc6361d3933 | 4,625 | kotlin | Apache License 2.0 |
urbanairship-preference-center/src/test/java/com/urbanairship/preferencecenter/PreferenceCenterTest.kt | mikklfr | 585,369,924 | true | {"Java": 4183047, "Kotlin": 406823, "Python": 8154, "Shell": 661} | package com.urbanairship.preferencecenter
import android.content.Context
import android.net.Uri
import android.os.Looper
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.urbanairship.PreferenceDataStore
import com.urbanairship.PrivacyManager
import com.urbanairship.TestApplication
import com.urbanairshi... | 0 | null | 0 | 0 | ecc90512d8f8322b680385ee76d4bfe07d8813fb | 6,562 | android-library | Apache License 2.0 |
clients/kotlin-vertx/generated/src/main/kotlin/org/openapitools/server/api/model/ItemResponseAnyOf.kt | oapicf | 489,369,143 | false | {"Markdown": 13009, "YAML": 64, "Text": 6, "Ignore List": 43, "JSON": 688, "Makefile": 2, "JavaScript": 2261, "F#": 1305, "XML": 1120, "Shell": 44, "Batchfile": 10, "Scala": 4677, "INI": 23, "Dockerfile": 14, "Maven POM": 22, "Java": 13384, "Emacs Lisp": 1, "Haskell": 75, "Swift": 551, "Ruby": 1149, "Cabal Config": 2, ... | /**
* Pinterest REST API
* Pinterest's REST API
*
* The version of the OpenAPI document: 5.12.0
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package org.openapitools.server.api.model... | 0 | Java | 0 | 2 | dcd328f1e62119774fd8ddbb6e4bad6d7878e898 | 1,863 | pinterest-sdk | MIT License |
src/main/kotlin/byeduck/lunchroom/lunch/controller/request/LunchRequest.kt | BYEDUCK | 221,294,590 | false | null | package byeduck.lunchroom.lunch.controller.request
import byeduck.lunchroom.domain.MenuItem
data class LunchRequest(
var lunchRequestType: LunchRequestType,
var proposalId: String?,
var roomId: String,
var userId: String,
var title: String?,
var menuUrl: String?,
... | 0 | Kotlin | 0 | 0 | b2fdc66c120bea9c62a05f861e46611fa1983bdd | 394 | lunch_room | Apache License 2.0 |
sphinx/screens/dashboard/dashboard/src/main/java/chat/sphinx/dashboard/ui/feed/FeedSideEffect.kt | stakwork | 340,103,148 | false | null | package chat.sphinx.dashboard.ui.feed
import android.content.Context
import io.matthewnelson.concept_views.sideeffect.SideEffect
sealed class FeedSideEffect: SideEffect<Context>() {
} | 55 | Kotlin | 5 | 17 | 3c8d86fe0417a82fde5ecf4e37be5e894d3265cb | 186 | sphinx-kotlin | MIT License |
services/match-service/application/src/main/kotlin/nl/runnable/gigmatch/application/vacancy/VacancyOutputPort.kt | laurens-runnable | 595,664,400 | false | null | package nl.runnable.gigmatch.application.vacancy
import nl.runnable.gigmatch.domain.vacancy.OpenVacancyCommand
interface VacancyOutputPort {
fun send(command: OpenVacancyCommand)
}
| 0 | Kotlin | 0 | 0 | 3e5c80864ace330feb49e89cab3fb016ec83e173 | 188 | gigmatch | The Unlicense |
app/src/main/java/com/cl/titlelayout/SingleLeftActivity.kt | JKchenli | 329,982,094 | false | null | package com.cl.titlelayout
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import com.cl.titlelayout.databinding.ActivitySingleLeftBinding
class SingleLeftActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCrea... | 0 | Kotlin | 0 | 1 | 692302190906a7af5255b4571bb96d5a5d2554e1 | 729 | TitleLayout | Apache License 2.0 |
src/kotlin/de/monticore/lang/montisecarc/folding/MSAFoldingBuilder.kt | MontiSecArc | 82,662,403 | false | null | package de.monticore.lang.montisecarc.folding
import com.intellij.codeInsight.folding.CodeFoldingSettings
import com.intellij.lang.ASTNode
import com.intellij.lang.folding.CustomFoldingBuilder
import com.intellij.lang.folding.FoldingDescriptor
import com.intellij.openapi.editor.Document
import com.intellij.openapi.pro... | 0 | Kotlin | 2 | 1 | 82d80a3d587a3f47e961034cf7e496f7149fd912 | 2,580 | intellij_msa_language_plugin | Apache License 2.0 |
identity/src/commonMain/kotlin/com/android/identity/storage/EphemeralStorageEngine.kt | openwallet-foundation-labs | 248,844,077 | false | null | /*
* Copyright 2023 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 98 | null | 78 | 153 | 26ef8b36ee5f32568e2cc17b80b8427b08df8be3 | 1,207 | identity-credential | Apache License 2.0 |
src/main/kotlin/realjenius/ketris/Game.kt | realjenius | 371,806,859 | false | null | package realjenius.ketris
class Game(val clock: Clock) {
var level: Int = 1
var score: Long = 0
var lines: Int = 0
var state: State = State.NotStarted
lateinit var board: Board
private val pieceBag = generateSequence { TetrominoShape.all.shuffled() }.flatten().iterator()
fun start() {
level = 1
... | 0 | Kotlin | 0 | 0 | 748d691356a583f6fea7de1be3a164b22e666f7b | 1,623 | ketris | MIT License |
app/src/main/kotlin/vitalii/pankiv/dev/android/features/timeline/presentation/TimelineViewModel.kt | pankivV | 679,640,982 | false | null | package vitalii.pankiv.dev.android.features.timeline.presentation
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import vitalii.pankiv.dev.android.basedata.network.responses.ApiTimelineItemType
import vitalii.pankiv.dev.android.base... | 0 | Kotlin | 0 | 0 | 3dbb32a879647a315e461f4c34b618f5df670a07 | 5,832 | code-sample | Apache License 2.0 |
nugu-core/src/main/java/com/skt/nugu/sdk/core/capabilityagents/asr/ExpectSpeechPayload.kt | Taehui | 235,737,115 | true | {"Kotlin": 947799, "Java": 2807} | /**
* Copyright (c) 2019 SK Telecom Co., Ltd. All rights reserved.
*
* 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 requir... | 0 | null | 10 | 0 | 1a87da453309296864753d6212f8d9ce17ce2bf3 | 2,162 | nugu-android | Apache License 2.0 |
server/src/main/kotlin/com/thoughtworks/archguard/scanner/domain/tools/ReportInterfaces.kt | archguard | 460,910,110 | false | {"Kotlin": 1540609, "Java": 593833, "TypeScript": 11395, "C#": 5593, "Dockerfile": 2263, "Shell": 926, "C": 696, "JavaScript": 400, "Go": 291, "Scala": 97, "Python": 42, "Rust": 32} | package com.thoughtworks.archguard.scanner.domain.tools
import java.io.File
interface GitReport {
fun getGitReport(): File?
}
interface StyleReport {
fun getStyleReport(): List<File>
}
interface TestBadSmellReport {
fun getTestBadSmellReport(): File?
}
| 3 | Kotlin | 86 | 557 | 92c0c8b577c7462b290e8fe89fa47d769ef98e64 | 269 | archguard | MIT License |
src/Ports.kt | RomanBelkov | 39,004,215 | false | null | /**
* Created by <NAME> on 15.07.2015.
*/
public enum class ServoPorts(val path: String) {
S1("ecap.2/"),
S2("ecap.1/"),
S3("ecap.0/"),
S4("ehrpwm.0:1/"),
S5("ehrpwm.1:0/"),
S6("ehrpwm.1:0/");
}
public enum class MotorPorts(val pwmAddress: Int, val powerAddress: Int) {
M1(0x10, 0x14),
... | 2 | Kotlin | 0 | 1 | 5f9675f4f81ea0483bb9688e5cd401178c3f129e | 907 | TrikKotlin | Apache License 2.0 |
app/src/main/java/com/opoinf/laboratorio_opoinf/controlador/sesion/UserPreferences.kt | opoinffrancisco | 829,224,845 | false | {"Kotlin": 34760} | package com.opoinf.laboratorio_opoinf.controlador.sesion
import android.content.Context
import androidx.datastore.preferences.core.Preferences
import androidx.datastore.preferences.core.edit
import androidx.datastore.preferences.core.stringPreferencesKey
import androidx.datastore.preferences.preferencesDataStore
impor... | 0 | Kotlin | 0 | 1 | a3a019112947c4d894f9045a486bd7a1f238004c | 1,274 | laboratorio-opoinf-app | Apache License 2.0 |
src/main/kotlin/com/charlesmuchene/prefeditor/models/AppStatus.kt | charlesmuchene | 744,829,675 | false | {"Kotlin": 334791, "Shell": 5448} | /*
* Copyright (c) 2024 Charles Muchene
*
* 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 ag... | 0 | Kotlin | 0 | 1 | bf59ff48c1106a4f90254c0932e8dc5823f2183f | 975 | pref-editor-desktop | Apache License 2.0 |
http4k-core/src/main/kotlin/org/http4k/filter/ResponseFilters.kt | opencollective | 102,504,841 | true | {"Gradle": 20, "Text": 3, "JSON": 4, "Shell": 7, "Markdown": 39, "Ignore List": 2, "Batchfile": 1, "YAML": 2, "Kotlin": 228, "XML": 3, "OASv2-json": 1, "JavaScript": 2, "Java Properties": 1, "HTML": 7, "CSS": 1, "Handlebars": 4, "Java": 2} | package org.http4k.filter
import org.http4k.core.Filter
import org.http4k.core.Request
import org.http4k.core.Response
import java.time.Clock
import java.time.Duration
import java.time.Duration.between
object ResponseFilters {
/**
* Intercept the response after it is sent to the next service.
*/
fu... | 0 | Kotlin | 0 | 1 | 6a8ce15e4f40f10920a9b79f2d0a6d9296d7b195 | 1,918 | http4k | Apache License 2.0 |
app/src/main/java/com/kartal/bookshop/MainActivity.kt | kartalyusuf | 433,869,551 | false | null | package com.kartal.bookshop
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.kartal.bookshop.databinding.ActivityMainBinding
class MainActivity : AppCompatActivity() {
//view binding
private lateinit var binding: ActivityMainBinding
overri... | 0 | Kotlin | 0 | 1 | 2c457bde4bb32c7a303e4413caea1fd9e4ec54fd | 861 | book-app | MIT License |
feature/home/src/main/kotlin/nl/q42/template/ui/home/HomeScreen.kt | Q42 | 593,537,486 | false | {"Kotlin": 53124, "Python": 2058, "Ruby": 1169} | package nl.q42.template.ui.home
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.hilt.navigation.compose.hiltViewModel
import androidx.lifecycle.compose.collectAsStateWithLifecycle
import com.ramcosta.composedestinations.annotation.Destination
import com.ramcosta.comp... | 6 | Kotlin | 0 | 7 | 44e0668481348816c279159198a0a1ac7b81844a | 1,061 | Template.Android | MIT License |
app/src/main/java/com/faldez/shachi/data/model/response/gelbooru/GelbooruTag.kt | faldez | 457,580,136 | false | null | package com.faldez.shachi.data.model.response
import com.faldez.shachi.data.util.serializer.NumberAsBooleanTypeSerializer
import com.faldez.shachi.data.util.serializer.SingleObjectAsArraySerializer
import kotlinx.serialization.Serializable
@Serializable
data class GelbooruTagResponse(
val tags: GelbooruTags? = nu... | 8 | null | 1 | 20 | 6491f53f06ae2aeb6cd786fb9f4fe7cb21958540 | 903 | shachi | Apache License 2.0 |
app/src/main/java/com/yoy/foodiemap/utils/Injector.kt | yy197133 | 173,682,545 | false | null | package com.yoy.foodiemap.utils
import android.content.Context
import com.yoy.foodiemap.data.AppDatabase
import com.yoy.foodiemap.data.PlaceRepository
import com.yoy.foodiemap.viewmodels.PlacesViewModelFactory
object Injector {
private fun getPlaceRepository(context: Context): PlaceRepository{
return Pla... | 0 | Kotlin | 0 | 0 | aa9316aeb108f8e1d521e5e44cc768c3888ddea2 | 591 | FoodieMap | Apache License 2.0 |
src/main/kotlin/com/hiberus/anaya/redmineeditor/dialogs/About_Readme.kt | anayaHiberus | 645,313,511 | false | {"Kotlin": 200341, "Java": 692, "Batchfile": 473, "Shell": 209, "CSS": 43} | package com.hiberus.anaya.redmineeditor.dialogs
import com.hiberus.anaya.redmineeditor.ResourceFile
import com.hiberus.anaya.redmineeditor.components.VERSION
import com.hiberus.anaya.redmineeditor.utils.addButton
import com.hiberus.anaya.redmineeditor.utils.clearButtons
import com.hiberus.anaya.redmineeditor.utils.ope... | 1 | Kotlin | 0 | 3 | c526d6d02717fc6c50aaa95292cc7902bd89e95f | 2,109 | redmineeditor | Creative Commons Attribution 4.0 International |
GaiaXAnalyze/GXAnalyzeAndroid/src/androidTest/kotlin/com/alibaba/gaiax/analyze/GXAnalyzeTest.kt | alibaba | 456,772,654 | false | null | package com.alibaba.gaiax.analyze
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.alibaba.fastjson.JSONArray
import com.alibaba.fastjson.JSONObject
import org.junit.Assert
import org.junit.Test
import org.junit.runner.RunWith
/**
* Instrumented test, which will execute on an Android device.
*
* @se... | 22 | Kotlin | 116 | 925 | cef03ef5e5a4d69b2dce000429eed9416de918b3 | 32,066 | GaiaX | Apache License 2.0 |
app/src/main/java/com/obaied/mailme/ui/audioplayer_service/AudioPlayerManager.kt | afjoseph | 108,640,784 | false | {"Gradle": 4, "YAML": 1, "Java Properties": 3, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "JSON": 1, "Proguard": 2, "Kotlin": 58, "XML": 27, "Java": 2} | package com.joseph.mailme.ui.audioplayer_service
import android.app.Activity
import android.content.Context
import android.content.Intent
import com.joseph.mailme.util.d
import com.joseph.mailme.util.i
import com.joseph.mailme.util.w
import org.greenrobot.eventbus.EventBus
/**
* Created by ab on 11.10.17.
*/
class ... | 1 | null | 1 | 1 | 08af470a09ba2f9912adc2f0e4d69a375452fe8b | 2,367 | recorded | MIT License |
marvel-api/src/main/java/com/botob/marvelapi/client/models/ComicDataContainer.kt | boriguen | 456,050,617 | false | null | /**
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: Cable
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
... | 0 | Kotlin | 0 | 0 | e231f1d23df3fd9fa69732fa204e6f3031c55d62 | 616 | marvel-comics-android-app | MIT License |
src/main/kotlin/cn/enaium/jimmer/gradle/extension/Immutable.kt | Enaium | 762,181,289 | false | {"Kotlin": 98307} | /*
* Copyright 2024 Enaium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 0 | Kotlin | 0 | 7 | fcb967934dc9c6d848afc74ab00aab424fbe8466 | 863 | jimmer-gradle | Apache License 2.0 |
core-ui/src/main/java/fr/nihilus/music/core/ui/base/MediaItemDiffer.kt | thibseisel | 80,150,620 | false | null | /*
* Copyright 2018 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 14 | null | 8 | 50 | d2abd7a0a83ea25e00cf1ad52ec1004478775157 | 1,534 | android-odeon | Apache License 2.0 |
biab-bap-client/src/main/kotlin/org/beckn/one/sandbox/bap/client/shared/services/LoggingService.kt | beckn | 508,229,088 | false | null | package org.beckn.one.sandbox.bap.client.shared.services
import arrow.core.Either
import arrow.core.Either.Left
import arrow.core.Either.Right
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import org.beckn.one.sandbox.bap.client.external.isInternalServerError
import org.beckn.one.sandbox.bap.client.ex... | 10 | Kotlin | 1 | 0 | 2b26c557bb9b3e32bfbbfcc941e9526532947d90 | 2,245 | ondc-test-bap-be | MIT License |
core/infrastructure/artic/src/main/java/com/rlad/core/infrastructure/artic/remote/ServerModels.kt | adamdanielczyk | 259,461,736 | false | {"Kotlin": 122467} | package com.rlad.core.infrastructure.artic.remote
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
internal data class ServerArtworkRoot(
@Json(name = "data") val data: ServerArtwork,
)
@JsonClass(generateAdapter = true)
internal data class ServerArtworksRoot(... | 5 | Kotlin | 0 | 4 | 9f9b66eb9fab7c0d46d9d18cc214fc9bc3762fc7 | 1,325 | RLAD | MIT License |
app/src/main/java/com/babylon/wallet/android/presentation/transaction/analysis/processor/TransferProcessor.kt | radixdlt | 513,047,280 | false | {"Kotlin": 4329774, "HTML": 215350, "Java": 18496, "Ruby": 2757, "Shell": 1962} | package com.babylon.wallet.android.presentation.transaction.analysis.processor
import com.babylon.wallet.android.domain.usecases.assets.ResolveAssetsFromAddressUseCase
import com.babylon.wallet.android.presentation.transaction.PreviewType
import com.radixdlt.ret.DetailedManifestClass
import com.radixdlt.ret.ExecutionS... | 4 | Kotlin | 11 | 6 | 61fec2927d38fd134cef97947a65ab2fa532ae41 | 1,850 | babylon-wallet-android | Apache License 2.0 |
plugin-bsp/src/main/kotlin/org/jetbrains/plugins/bsp/runnerAction/LocalJvmRunnerAction.kt | JetBrains | 826,262,028 | false | {"Kotlin": 3064918, "Starlark": 370388, "Java": 165158, "Scala": 37245, "Python": 34754, "Lex": 17493, "Dockerfile": 8674, "Shell": 7379, "HTML": 1310, "Rust": 680, "Go": 428, "C++": 113} | package org.jetbrains.plugins.bsp.runnerAction
import ch.epfl.scala.bsp4j.BuildTargetIdentifier
import ch.epfl.scala.bsp4j.JvmEnvironmentItem
import com.intellij.build.events.impl.FailureResultImpl
import com.intellij.execution.RunnerAndConfigurationSettings
import com.intellij.execution.application.ApplicationConfigu... | 3 | Kotlin | 18 | 45 | 1d79484cfdf8fc31d3a4b214655e857214071723 | 5,529 | hirschgarten | Apache License 2.0 |
binds/src/main/java/com/github/greennick/properties/android/DialogBindings.kt | green-nick | 171,884,416 | false | null | package com.github.greennick.properties.android
import android.app.Dialog
import android.content.DialogInterface
import com.github.greennick.properties.generic.MutableProperty
import com.github.greennick.properties.generic.Property
import com.github.greennick.properties.subscriptions.ListenableSubscription
import com.... | 0 | Kotlin | 0 | 4 | 3b14e97bbfee41567ddbc76db7dba37db0c153c8 | 1,365 | properties-android | MIT License |
src/main/kotlin/be/swsb/aoc2021/day6/Day6.kt | Sch3lp | 433,542,959 | false | {"Kotlin": 90751} | package be.swsb.aoc2021.day6
object Day6 {
fun solve1(input: List<Int>, days: Int): Int {
return dayCycle(input, days).size
}
fun solve2(input: List<Int>, days: Int): Long {
return dayCyclePart2(input, days)
}
}
fun dayCycle(school: List<Int>, days: Int): List<Int> {
return (1..da... | 0 | Kotlin | 0 | 0 | 7662b3861ca53214e3e3a77c1af7b7c049f81f44 | 1,229 | Advent-of-Code-2021 | MIT License |
build-tools/gradle-core-configuration/configuration-cache/src/main/kotlin/org/gradle/configurationcache/serialization/codecs/jos/RecordingObjectOutputStream.kt | RivanParmar | 526,653,590 | false | null | /*
* Copyright 2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | null | 2 | 17 | 7d6a941f82617f89cedde0ae8e10d3702f225f76 | 3,312 | androlabs | Apache License 2.0 |
app/src/main/java/top/xjunz/tasker/task/event/MetaEventDispatcher.kt | xjunz | 651,527,105 | false | null | /*
* Copyright (c) 2023 xjunz. All rights reserved.
*/
package top.xjunz.tasker.task.event
import android.util.ArrayMap
import top.xjunz.shared.ktx.casted
import top.xjunz.tasker.engine.task.EventDispatcher
/**
* @author xjunz 2023/03/12
*/
class MetaEventDispatcher : EventDispatcher() {
private val allDisp... | 0 | null | 6 | 23 | 82893d0db2b13e12d8bee86b4cae0f16abd0e2f4 | 1,129 | AutoTask | Apache License 2.0 |
radiography/src/main/java/radiography/ScanScope.kt | square | 285,901,584 | false | null | package radiography
/**
* Defines the scope of the scan output by returning a list of root [ScannableView]s that will to
* scan.
*
* Some commons scopes are:
* - [ScanScopes.AllWindowsScope]
* - [ScanScopes.FocusedWindowScope]
* - [ScanScopes.singleViewScope]
*/
public fun interface ScanScope {
/** Retur... | 16 | null | 34 | 850 | 71646d1367e3260c6a3d9adefd54aef0387dc06b | 428 | radiography | Apache License 2.0 |
coolweatherjetpack/app/src/main/java/com/coolweather/coolweatherjetpack/data/db/CoolWeatherDatabase.kt | xfhy | 171,189,941 | false | null | package com.coolweather.coolweatherjetpack.data.db
/**
* 单例
* lazy init
* 在第一次使用时才会加载
*/
object CoolWeatherDatabase {
val placeDao by lazy { PlaceDao() }
val weatherDao by lazy { WeatherDao() }
} | 1 | null | 1 | 1 | 3ed8d6e9096107ef2cd46480775f261db6a7c0b5 | 211 | AndroidPathDemo | Apache License 2.0 |
app/src/main/java/org/simple/clinic/forgotpin/confirmpin/ForgotPinConfirmPinModel.kt | simpledotorg | 132,515,649 | false | null | package org.simple.clinic.forgotpin.confirmpin
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
import org.simple.clinic.facility.Facility
import org.simple.clinic.user.User
@Parcelize
data class ForgotPinConfirmPinModel(
val user: User?,
val facility: Facility?,
val previousPin: Strin... | 13 | null | 73 | 236 | ff699800fbe1bea2ed0492df484777e583c53714 | 825 | simple-android | MIT License |
src/main/kotlin/lexer/Lexer.kt | stevanovicmarko | 392,829,888 | false | null | package lexer
class Lexer(inputString: String) {
private var lexPosition: Int = 0
private val input = inputString.trim()
private var currentCharacter: Char = input.first()
private val tokens: MutableList<Token> = mutableListOf()
private val keywordsMap: Map<String, TokenType> = mapOf(
"fn" ... | 0 | Kotlin | 0 | 1 | b07c508267e6ceaee2a5d0300c07a7c679975731 | 4,760 | monkey-compiler | MIT License |
presentation/src/main/java/com/bikcodeh/melichallenge/presentation/ui/component/ModalQuantityTextField.kt | Bikcodeh | 549,280,439 | false | null | package com.bikcodeh.melichallenge.presentation.ui.component
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.material.*
import androidx.compose.material.icons.Icons
import androidx.co... | 0 | Kotlin | 0 | 2 | 692249b05dce6a96dbcdc84bb175a75e37bac0f1 | 6,770 | Meli-Challenge | MIT License |
local/local/src/main/java/com/nimbusframework/nimbuslocal/deployment/services/resource/LocalQueueCreator.kt | thomasjallerton | 163,180,980 | false | {"YAML": 3, "Ignore List": 2, "XML": 4, "Maven POM": 9, "Dockerfile": 1, "Text": 1, "Markdown": 35, "Kotlin": 570, "Java": 167, "JSON": 2, "JavaScript": 4, "SVG": 4, "CSS": 1} | package com.nimbusframework.nimbuslocal.deployment.services.resource
import com.nimbusframework.nimbuscore.annotations.queue.QueueDefinition
import com.nimbusframework.nimbuslocal.deployment.queue.LocalQueue
import com.nimbusframework.nimbuslocal.deployment.services.LocalResourceHolder
import com.nimbusframework.nimbu... | 4 | Kotlin | 4 | 39 | 5c3325caaf3fe9de9ffad130fd1e773c6f680e89 | 891 | nimbus-framework | MIT License |
komga/src/main/kotlin/org/gotson/komga/interfaces/rest/dto/UserDto.kt | himura95 | 245,517,968 | true | {"Kotlin": 228714, "Vue": 150769, "TypeScript": 36658, "TSQL": 3392, "JavaScript": 2632, "PLSQL": 2130, "Shell": 1470, "HTML": 704, "Dockerfile": 391} | package org.gotson.komga.interfaces.rest.dto
import org.gotson.komga.domain.model.KomgaUser
import org.gotson.komga.infrastructure.security.KomgaPrincipal
import org.gotson.komga.interfaces.rest.UserDto
fun KomgaUser.toDto() =
UserDto(
id = id,
email = email,
roles = roles.map { it.name }
)
fun Komga... | 0 | Kotlin | 0 | 0 | 2db410bcca942b296b3e06f3a4924b9f2328af03 | 353 | komga | MIT License |
app/src/main/java/com/example/careerboast/view/navigation/CareerBoastNavHost.kt | Ev4esem | 771,869,351 | false | {"Kotlin": 244332} | package com.example.careerboast.view.navigation
import androidx.compose.material3.DrawerState
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.navigation.NavHostController
import androidx.navigation.compose.NavHost
@Composable
fun CareerBoastNavHost(
modifier : Modifi... | 0 | Kotlin | 0 | 2 | b1e7d981a10dcea381bd6764687c42bd018a39dc | 688 | CareerBoast | Apache License 2.0 |
app/src/main/java/com/example/androidsample/MainActivity.kt | gallenjohnson | 407,723,891 | false | null | package com.example.androidsample
import android.os.Bundle
import android.os.Handler
import android.view.Menu
import android.view.MenuItem
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import com.google.android.material.snackbar.Snackbar
import kotlinx.android.synthetic.main.activity_main.*
... | 0 | Kotlin | 0 | 0 | 3cad10e0514894758f0d3fe03687ff97a28257f3 | 3,049 | CurrencyConverter | MIT License |
src/main/kotlin/br/com/zup/gian/registrarchave/RegistraChavePixServer.kt | gianmsouza | 395,672,736 | true | {"Kotlin": 64998} | package br.com.zup.gian.registrarchave
import br.com.zup.gian.KeyManagerRegistraChaveServiceGrpc
import br.com.zup.gian.RegistraChavePixRequest
import br.com.zup.gian.RegistraChavePixResponse
import br.com.zup.gian.client.BCBClient
import br.com.zup.gian.client.ItauClient
import io.grpc.Status
import io.grpc.stub.Str... | 0 | Kotlin | 0 | 0 | 51dd2506d114c2d977e1b3b640b8c5b78639b5d9 | 2,365 | orange-talents-06-template-pix-keymanager-grpc | Apache License 2.0 |
libui-ktx/src/test/kotlin/page1.kt | molexx | 146,276,920 | true | {"Kotlin": 275491, "Java": 782, "Batchfile": 293, "Shell": 252} | /*
static uiEntry *entry
static uiCheckbox *spaced
#define TEXT(name, type, getter, setter) \
static void get ## name ## Text(uiButton *b, void *data) \
{ \
char *text \
text = getter(type(data)) \
uiEntrySetText(entry, text) \
uiFreeText(text) \
} \
static void set ## name ## Text(uiButton *b, void *data)... | 0 | Kotlin | 0 | 0 | 1faa624e915caeb3505218342c79f0530090a2a3 | 5,397 | kotlin-libui | MIT License |
examples/examples-kotlin-java/src/test/kotlin/com/mercadolibre/examples/kotlin/UC02.kt | justiandre | 342,932,934 | false | null | package com.mercadolibre.examples.kotlin
import org.junit.jupiter.api.*
import org.junit.jupiter.api.Assertions.*
import java.lang.IllegalArgumentException
class InvalidFibonacciSequenceException : IllegalArgumentException("you should inform a valid fibonacci sequence")
fun fibonacci() = sequence {
var terms = Pair... | 1 | null | 1 | 4 | 0346b2d0f062e36e84c6f980eb0212594b1b6a09 | 1,474 | kotlin-docs-meli-demo | Apache License 2.0 |
docs/src/m06variables/3_duplicados.kt | gilpgdam | 404,339,430 | false | {"HTML": 205717, "JavaScript": 22429, "Kotlin": 9268, "PHP": 21} | fun main() {
var a = "Q1"
print(a)
val a = "Q2"
print(a)
} | 0 | HTML | 0 | 0 | e1b6209c19dc9ad8873a57b2248549d2cfba3eac | 62 | gilpgdam.github.io | Creative Commons Zero v1.0 Universal |
openISBTBackend/src/main/kotlin/openapispecification/deserializer/ResponsesObjectDeserializer.kt | martingrambow | 196,092,022 | false | null | package openapispecification.deserializer
import com.google.gson.Gson
import com.google.gson.JsonDeserializationContext
import com.google.gson.JsonDeserializer
import com.google.gson.JsonElement
import de.tuberlin.mcc.openapispecification.PathItemObject
import de.tuberlin.mcc.openapispecification.PathsObject
import de... | 0 | Kotlin | 1 | 2 | f3bd732cd5d794a4dc79ac93c646e80e41d9a99d | 1,198 | openISBT | MIT License |
src/main/kotlin/io/openfuture/api/entity/scaffold/EthereumShareHolder.kt | OpenFuturePlatform | 134,381,311 | false | null | package io.openfuture.api.entity.scaffold
import io.openfuture.api.entity.base.BaseModel
import javax.persistence.*
@Entity
@Table(name = "ethereum_share_holders")
class EthereumShareHolder(
@ManyToOne
@JoinColumn(name = "summary_id", nullable = false)
val summary: EthereumScaffoldSummary,
... | 11 | JavaScript | 7 | 42 | 4cf6df0407c9a941bd1e0b6d01a9ab05f4db0ef6 | 493 | open-api | Apache License 2.0 |
library/src/test/java/io/github/toyota32k/bindit/TestEnum.kt | toyota-m2k | 643,389,596 | false | null | package io.github.toyota32k.binder
import androidx.annotation.IdRes
enum class TestEnum(@IdRes val id:Int) {
E0(1000),
E1(1001),
E2(1002),
E3(1003);
companion object {
fun valueOf(@IdRes id: Int): TestEnum? {
return entries.find { it.id == id }
}
}
object IDRes... | 0 | Kotlin | 0 | 0 | b2fdc8c767d01382d5e060c8d88839a94f770c4f | 484 | bind-it | Apache License 2.0 |
core/src/main/java/com/bruno13palhano/core/data/repository/DefaultExcelSheet.kt | bruno13palhano | 670,001,130 | false | {"Kotlin": 1392940} | package com.bruno13palhano.core.data.repository
import android.content.Context
import com.bruno13palhano.core.data.di.DefaultWorkbook
import dagger.hilt.android.qualifiers.ApplicationContext
import org.apache.poi.ss.usermodel.CellStyle
import org.apache.poi.ss.usermodel.FillPatternType
import org.apache.poi.ss.usermod... | 0 | Kotlin | 0 | 2 | c55b8f8f9fccb42ce9b5a99a309e41bd2ec0b5b2 | 4,332 | shop-dani-management | MIT License |
app/src/main/java/com/stu74532/finalproject_74532/CartScreen.kt | Kae712635 | 788,941,758 | false | {"Kotlin": 109313} | package com.stu74532.finalproject_74532
import android.widget.Toast
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose... | 0 | Kotlin | 0 | 0 | f63f438e0aa2a77692b5676ae063fe826413ed76 | 17,955 | FinalProject_74532 | X11 License |
underwave/src/commonMain/kotlin/com/aallam/underwave/internal/image/ImageView.kt | Aallam | 229,120,653 | false | null | package com.aallam.underwave.internal.image
/**
* A view to display [Bitmap] image resource.
*/
expect class ImageView
| 0 | Kotlin | 0 | 0 | 0403c4c9cfdfc07a0de9e8e079c5cff00a15e421 | 122 | Underwave | Apache License 2.0 |
app/src/main/java/com/example/wanAndroid/widget/navigation/MyNavHostFragment.kt | SaltedFish-Extreme | 458,692,555 | false | null | package com.example.wanAndroid.widget.navigation
import android.view.View
import androidx.navigation.Navigator
import androidx.navigation.fragment.FragmentNavigator
import androidx.navigation.fragment.NavHostFragment
import com.example.wanAndroid.R
/**
* 作者:何高建
*
* 时间:2021/6/29
*
* 描述:Hide - Show 自定义NavHostFragm... | 0 | null | 6 | 36 | 2ce81daeedee3f0df94dfc6b474f65356d6fd64a | 944 | WanAndroid | Apache License 2.0 |
app/src/main/java/constantine/theodoridis/app/sunshine/data/model/Location.kt | TConstantine | 151,698,045 | false | null | /*
* Copyright (C) 2018 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 0 | Kotlin | 0 | 0 | af3cc07c35aa817abbf278591a1f77cd9f79bb55 | 803 | Sunshine | Apache License 2.0 |
sip-base/src/main/kotlin/com/basicfu/sip/base/model/vo/UserVo.kt | tidehc | 189,163,300 | true | {"Kotlin": 382525, "JavaScript": 6535, "HTML": 4170, "Dockerfile": 1708, "Java": 104} | package com.basicfu.sip.base.model.vo
import com.alibaba.fastjson.JSONObject
class UserVo {
var id: Long? = null
var appId: Long? = null
//提供用户名(默认)、手机号(需验证)、邮箱注册(需验证)
var username: String? = null
var nickname: String? = null
var mobile:String?=null
var email:String?=null
var password:... | 0 | Kotlin | 0 | 0 | dd9dc2ebb7aba2432197888cc3040317eb506118 | 651 | sip | MIT License |
sip-base/src/main/kotlin/com/basicfu/sip/base/model/vo/UserVo.kt | tidehc | 189,163,300 | true | {"Kotlin": 382525, "JavaScript": 6535, "HTML": 4170, "Dockerfile": 1708, "Java": 104} | package com.basicfu.sip.base.model.vo
import com.alibaba.fastjson.JSONObject
class UserVo {
var id: Long? = null
var appId: Long? = null
//提供用户名(默认)、手机号(需验证)、邮箱注册(需验证)
var username: String? = null
var nickname: String? = null
var mobile:String?=null
var email:String?=null
var password:... | 0 | Kotlin | 0 | 0 | dd9dc2ebb7aba2432197888cc3040317eb506118 | 651 | sip | MIT License |
purlog/src/iosMain/kotlin/deviceInfo.kt | metashark-io | 871,823,301 | false | {"Kotlin": 103133} | package com.metashark.purlog.utils
import kotlinx.cinterop.ExperimentalForeignApi
import platform.Foundation.NSProcessInfo
import platform.UIKit.UIDevice
import platform.UIKit.UIUserInterfaceIdiomPad
@OptIn(ExperimentalForeignApi::class)
internal actual fun deviceInfo(context: Any?): Map<String, String> {
val pro... | 0 | Kotlin | 0 | 1 | eafa233e04fd31bc255d89662007f89acf4ff426 | 645 | purlog-kotlin-sdk | MIT License |
android/app/src/main/java/com/algorand/android/models/ConfirmationBottomSheetParameters.kt | perawallet | 364,359,642 | false | {"Swift": 8753304, "Kotlin": 7709389, "Objective-C": 88978, "Shell": 7715, "Ruby": 4727, "C": 596} | /*
* Copyright 2022 Pera Wallet, LDA
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing,... | 22 | Swift | 62 | 181 | 92fc77f73fa4105de82d5e87b03c1e67600a57c0 | 1,166 | pera-wallet | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.