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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
database/src/commonMain/kotlin/com/opencritic/database/Realm.kt | MAX-POLKOVNIK | 797,563,657 | false | {"Kotlin": 374124, "Swift": 124848} | package com.opencritic.database
import io.realm.kotlin.Realm
import io.realm.kotlin.RealmConfiguration
fun createRealmConfiguration(): RealmConfiguration =
RealmConfiguration.create(
schema = setOf(
YourGameEntity::class,
),
)
fun createRealm(): Realm =
Realm.open(createRealmC... | 0 | Kotlin | 0 | 0 | 74cbff241fb867c819af1033fb009e4422b03a0c | 335 | OpenCritic | Apache License 2.0 |
diffadapter/src/main/java/apps/cdmp/diffadapter/diff/CloneableModels.kt | carlosdmp | 164,275,318 | false | {"Gradle": 4, "Java Properties": 1, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "INI": 1, "Proguard": 2, "Kotlin": 33, "XML": 33, "Java": 2} | package apps.cdmp.diffadapter.diff
interface CloneableModel<T> where T : CloneableModel<T> {
fun clone(): T
} | 1 | null | 1 | 1 | c47210a48e531f03193e84f7a0ca541d08474ab1 | 114 | GoalHelper | Apache License 2.0 |
js/src/test/kotlin/TestsRun.kt | MarkusAmshove | 51,317,191 | false | null | import org.amshove.kluent.*
import kotlin.test.*
class TestsRun {
@Test
fun testTests() {
assertEquals("Tests run in JavaScript!", "Tests run in JavaScript!")
}
}
| 12 | null | 66 | 843 | 2826b263e5e2b5a74d8eb0394a4354848052e786 | 184 | Kluent | MIT License |
app/src/main/java/com/babylon/wallet/android/data/gateway/coreapi/StringPlaintextMessageContent.kt | radixdlt | 513,047,280 | false | {"Kotlin": 4940882, "HTML": 215350, "Ruby": 2757, "Shell": 1963} | /**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package com.babylon.wallet.android.data.gateway.... | 4 | Kotlin | 6 | 9 | 36c670dd32d181e462e9962d476cb8a370fbe4fe | 912 | babylon-wallet-android | Apache License 2.0 |
app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/browse/SavedSearchesAdapter.kt | scb261 | 381,944,147 | true | {"Kotlin": 4047397} | package eu.kanade.tachiyomi.ui.browse.source.browse
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.view.isVisible
import androidx.recyclerview.widget.RecyclerView
import com.google.android.material.chip.Chip
import eu.kanade.tachiyomi.databinding.SourceFi... | 0 | Kotlin | 0 | 7 | 5a3a2084cbfff68c4187ea55ad6b8fd7be2796b7 | 1,501 | TachiyomiSY | Apache License 2.0 |
src/main/kotlin/com/rnett/future/testing/github/Scheduling.kt | rnett | 376,230,377 | false | null | package com.rnett.future.testing.github
import com.rnett.future.testing.KotlinFutureTestingExtension
import org.slf4j.LoggerFactory
import java.time.DayOfWeek
/**
* CRON scheduling.
*/
public sealed class Scheduling(public val cron: String) {
protected companion object {
internal val logger = LoggerFact... | 0 | Kotlin | 0 | 0 | 273ee2b5c45b93785a93ea9bb7178934044f9826 | 1,704 | kotlin-future-testing | Apache License 2.0 |
kotlin-electron/src/jsMain/generated/electron/main/Menu.kt | JetBrains | 93,250,841 | false | null | @file:JsModule("electron/main")
package electron.main
open external class Menu : electron.core.Menu
| 30 | Kotlin | 172 | 1,224 | ad92ea881e7ded93cf7a304f1adcaaabecbecfd6 | 103 | kotlin-wrappers | Apache License 2.0 |
android/src/main/java/com/magicleap/magicscript/utils/ActivityProvider.kt | magic-script | 187,085,008 | false | null | /*
* Copyright (c) 2020 Magic Leap, Inc. 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 required by... | 41 | Swift | 2 | 16 | b1a543f22af76447e9e58788fc494324dc40be14 | 834 | magic-script-components-react-native | Apache License 2.0 |
ggdsl-lets-plot/src/main/kotlin/org/jetbrains/kotlinx/ggdsl/letsplot/internal/aes.kt | Kotlin | 502,039,936 | false | null | /*
* Copyright 2020-2022 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package org.jetbrains.kotlinx.ggdsl.letsplot.internal
import jetbrains.datalore.plot.config.Option
import org.jetbrains.kotlinx.ggdsl.dsl.*
import org.jetbrains.kotlinx.ggdsl.dsl.internal.BindingContext
import ... | 48 | Kotlin | 1 | 44 | 8a161098d0d946c28bde3cf3c7bea6a1eeba073c | 14,616 | ggdsl | Apache License 2.0 |
data/src/main/java/com/jpventura/data/cloud/GitHubPullModel.kt | jpventura | 244,369,445 | false | null | package com.jpventura.data.cloud
import com.jpventura.core.domain.bean.Bean
import com.jpventura.domain.bean.Issue
import io.reactivex.Completable
import io.reactivex.Observable
import io.reactivex.Single
import com.jpventura.data.ktx.asBean
import com.jpventura.domain.bean.Repository
import com.jpventura.domain.model... | 0 | Kotlin | 0 | 0 | e15db6ec3f7fafcb719095b0f6dd04c6e54a5c88 | 2,919 | GitHub | Apache License 2.0 |
feature/meals/impl/src/main/java/com/alexmprog/themeals/feature/meals/impl/di/MealsFeatureModule.kt | alexmprog | 855,391,016 | false | {"Kotlin": 93000} | package com.alexmprog.themeals.feature.meals.impl.di
import com.alexmprog.themeals.feature.meals.api.domain.GetMealDetailsUseCase
import com.alexmprog.themeals.feature.meals.api.domain.GetMealsUseCase
import com.alexmprog.themeals.feature.meals.api.domain.MealsRepository
import com.alexmprog.themeals.feature.meals.imp... | 0 | Kotlin | 0 | 0 | 57c442c3b7bf74ca4e6d5b76ee9b7931da130625 | 968 | TheMeals | Apache License 2.0 |
library/src/main/java/io/konifar/cardinputhelper/formatter/CardMonthYearFormatter.kt | konifar | 236,972,948 | false | null | package io.konifar.cardinputhelper.formatter
import io.konifar.cardinputhelper.ext.digitsAndSlash
object CardMonthYearFormatter {
const val SLASH = "/"
fun formatForInsert(monthYear: CharSequence): String {
val checkedMonthYear = removeUnnecessarySlash(monthYear.digitsAndSlash())
if (checkedM... | 3 | Kotlin | 0 | 24 | a0dcc0d28e84cbfdfe69972a2106af584ffa2db4 | 8,220 | creditcard-input-helper | MIT License |
app/src/main/java/br/com/tosin/newconceptsandroid/ui/common/MyDialogFragment.kt | TosinRoger | 151,626,939 | false | null | package br.com.tosin.newconceptsandroid.ui.common
import android.app.Dialog
import android.os.Bundle
import androidx.appcompat.app.AlertDialog
import androidx.fragment.app.DialogFragment
class MyDialogFragment: DialogFragment() {
companion object {
fun newInstance(title: String, message: String): MyDialo... | 1 | Kotlin | 0 | 2 | a5582968839cd430e79e500355edbaba898663b5 | 1,058 | NewConceptsAndroid | MIT License |
engine/src/main/java/com/google/android/fhir/sync/Authenticator.kt | google | 247,977,633 | false | null | /*
* Copyright 2021 Google LLC
*
* 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... | 331 | Kotlin | 205 | 351 | 80ea66f8781d5379e1c2867c9dc8c7a2c5c4e2bc | 1,072 | android-fhir | Apache License 2.0 |
app/src/main/java/es/edufdezsoy/manga2kindle/data/repository/LanguageRepository.kt | EduFdezSoy | 202,199,867 | false | null | package es.edufdezsoy.manga2kindle.data.repository
import android.content.Context
import android.util.Log
import es.edufdezsoy.manga2kindle.M2kApplication
import es.edufdezsoy.manga2kindle.data.M2kDatabase
import es.edufdezsoy.manga2kindle.data.model.Language
import es.edufdezsoy.manga2kindle.network.ApiService
class... | 27 | Kotlin | 1 | 9 | 2691e732cdf1c549407c2c33aa68ffa3d72933ba | 3,248 | Manga2Kindle | Creative Commons Attribution 4.0 International |
app/src/main/java/com/breezefsmsettdeycohomoeolab/features/taskManagement/adapter/CustomerTaskManagementAdapter.kt | DebashisINT | 639,303,773 | false | null | package com.breezefsmsettdeycohomoeolab.features.taskManagement.adapter
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Filter
import android.widget.Filterable
import androidx.recyclerview.widget.RecyclerView
import com.amul... | 0 | Kotlin | 0 | 0 | 4c4cd77712c07d26c47708276c9f299c42b8e51d | 8,448 | SettDeyCoHomoeo | Apache License 2.0 |
tests/src/main/kotlin/se/ansman/dagger/auto/retrofit/RetrofitModule.kt | ansman | 565,464,998 | false | {"Kotlin": 269874, "Java": 4602, "Shell": 503} | package se.ansman.dagger.auto.retrofit
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import retrofit2.Retrofit
import retrofit2.converter.moshi.MoshiConverterFactory
import javax.inject.Singleton
@Module
@InstallIn(SingletonComponent::class)
... | 6 | Kotlin | 3 | 69 | 10c439594cea772cdc90e5e89c0847061d7a26e9 | 586 | auto-dagger | Apache License 2.0 |
backend/mlreef-rest/src/main/kotlin/com/mlreef/rest/config/security/oauth/OAuthClientSettingsStorage.kt | wgisss | 445,092,431 | true | {"Kotlin": 1792703, "JavaScript": 1383596, "Python": 165260, "SCSS": 145217, "Shell": 122988, "Ruby": 100068, "TypeScript": 56139, "ANTLR": 27697, "CSS": 19114, "Dockerfile": 18068, "HTML": 8912, "PLpgSQL": 3248, "Batchfile": 310} | package com.mlreef.rest.config.security.oauth
import com.mlreef.rest.config.maskSecret
import com.mlreef.rest.config.security.SecurityConfiguration
import org.slf4j.LoggerFactory
import org.springframework.beans.factory.annotation.Value
import org.springframework.core.env.Environment
import org.springframework.securit... | 0 | null | 0 | 1 | 80c9af03f324c929b8f8889256c13c865afa95c1 | 5,243 | mlreef | MIT License |
LauncherQ/app/src/test/java/seoft/co/kr/launcherq/ExampleUnitTest.kt | daolq3012 | 356,128,862 | false | null | package seoft.co.kr.launcherq
import org.junit.Assert.assertEquals
import org.junit.Test
/**
* Example local unit test, which will execute on the development machine (host).
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
class ExampleUnitTest {
@Test
fun addition_isCorrect() {
... | 0 | null | 0 | 0 | cb07ebb5a8ef0630821de1f813164d6cf18db18d | 2,930 | launcher-q | Apache License 2.0 |
rabbit-apk-analyzer/bin/main/com/susion/rabbit/task/UnzipApkTask.kt | SusionSuc | 210,506,798 | false | null | package com.susion.rabbit.task
import com.susion.rabbit.ApkAnalyzer
import com.susion.rabbit.entities.UnZipApkFileInfo
import com.susion.rabbit.helper.FileUtil
import com.susion.rabbit.helper.Util
import java.io.*
import java.util.zip.ZipEntry
import java.util.zip.ZipFile
/**
* susionwang at 2019-11-29
* 解压APK
*/
... | 9 | null | 146 | 998 | f1d1faf9f69b4ec162ae2215e9338dd1d7bdc893 | 6,465 | rabbit-client | MIT License |
src/main/kotlin/me/ruslanys/ifunny/config/EventChannelConfig.kt | ruslanys | 241,564,272 | false | null | package me.ruslanys.ifunny.config
import kotlinx.coroutines.channels.Channel
import me.ruslanys.ifunny.grab.event.GrabEvent
import me.ruslanys.ifunny.property.GrabProperties
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
@Configuration
class EventChannel... | 1 | HTML | 7 | 25 | baf3948d7092a3cc2fc39b411dfaec2ab9456be1 | 481 | ifunny | Apache License 2.0 |
app/src/main/java/com/ratik/solitare/DeckView.kt | libhide | 83,703,325 | false | null | package com.ratik.solitare
import android.content.Context
import android.view.ViewManager
import android.widget.ImageView
import org.jetbrains.anko.custom.ankoView
import org.jetbrains.anko.imageResource
import org.jetbrains.anko.onClick
/**
* Created by Ratik on 02/03/17.
*/
class DeckView(context: Context) : Imag... | 0 | Kotlin | 0 | 0 | 38d5029716b525514f7e5bcf0335dff72d33d713 | 723 | solitaire | MIT License |
app/src/main/java/nam/tran/template_structure/view/home/HomeFragment.kt | NamTranDev | 810,108,520 | false | {"Kotlin": 53315} | package nam.tran.template_structure.view.home
import android.os.Bundle
import android.view.View
import androidx.fragment.app.viewModels
import androidx.lifecycle.ViewModelProvider
import dagger.hilt.android.AndroidEntryPoint
import nam.tran.common.Logger
import nam.tran.template_structure.R
import nam.tran.template_st... | 0 | Kotlin | 0 | 0 | 449736583e150bd8690480df2ad81819ae216321 | 990 | TemplateStructureAndroid | Apache License 2.0 |
client/src/main/kotlin/app/cash/backfila/client/BackfilaRequired.kt | cashapp | 209,384,085 | false | {"Kotlin": 852689, "TypeScript": 78934, "Java": 14790, "Shell": 4170, "JavaScript": 1107, "HTML": 990, "Dockerfile": 486} | package app.cash.backfila.client
/**
* Annotation used on Java Parameters classes to correctly name parameters. Will only work on
* Strings or base types.
*/
@Target(AnnotationTarget.VALUE_PARAMETER)
@Retention(AnnotationRetention.RUNTIME)
annotation class BackfilaRequired(val name: String)
| 48 | Kotlin | 47 | 31 | 983c74b0516ef2cee75a8774dc3b233fdf641dc1 | 296 | backfila | Apache License 2.0 |
src/main/kotlin/thesis/preprocess/ast/ExpressionSorter.kt | danilkolikov | 123,672,959 | false | null | package thesis.preprocess.ast
import thesis.preprocess.Processor
import thesis.preprocess.expressions.lambda.LambdaWithPatterns
import thesis.preprocess.results.SortedExpressions
/**
* Separates expressions of lambda program to 3 groups - type definitions,
* declarations of lambda expressions and lambda expressions... | 0 | Kotlin | 0 | 2 | 0f5ad2d9fdd1f03d3bf62255da14b05e4e0289e1 | 1,319 | fnn | MIT License |
src/main/kotlin/no/nav/personbruker/dittnav/api/oppgave/OppgaveConsumer.kt | navikt | 202,547,457 | false | null | package no.nav.personbruker.dittnav.api.oppgave
import io.ktor.client.HttpClient
import no.nav.personbruker.dittnav.api.authentication.AuthenticatedUser
import no.nav.personbruker.dittnav.api.config.ConsumeEventException
import no.nav.personbruker.dittnav.api.config.get
import no.nav.personbruker.dittnav.api.tokenx.Ev... | 1 | Kotlin | 0 | 2 | f1c2bfd84f4a7346324d853c0bb13bdb17578e26 | 1,600 | dittnav-api | MIT License |
CursoKotlin/src/collections/ArrayListInt.kt | juliocarvalho2019 | 661,898,294 | false | null | package collections
fun main(args: Array<String>) {
val pares = arrayListOf(2, 4, 6)
val impares = intArrayOf(1, 3, 5)
for(n in impares.union(pares).sorted()) {
print("$n ")
}
} | 0 | Kotlin | 0 | 0 | 628c7774f76865eb4b7590400de43d7af3ef2f00 | 203 | curso-kotlin-cod3r | Apache License 2.0 |
lang/src/main/kotlin/org/toptobes/lang/utils/Misc.kt | toptobes | 627,149,279 | false | null | package org.toptobes.lang.utils
val Addr = booleanArrayOf(true, true)
val Abs8 = booleanArrayOf(false)
val Abs16 = booleanArrayOf(false, false)
| 0 | Kotlin | 0 | 0 | 18bf958736390415374d7bb553f0317a5640a0bd | 147 | BadVm | MIT License |
corelib/src/main/java/com/exmple/corelib/utils/MLoadingView.kt | mouxuefei | 158,362,813 | false | {"Gradle": 5, "Java Properties": 1, "Shell": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "INI": 2, "Proguard": 2, "XML": 37, "Kotlin": 65, "Java": 1} | package com.exmple.corelib.utils
import android.app.Dialog
import android.content.Context
import android.graphics.Color
import android.text.TextUtils
import android.view.Gravity
import android.view.LayoutInflater
import android.view.View
import android.widget.TextView
import com.exmple.corelib.R
/**
*
* @author mo... | 1 | Kotlin | 0 | 4 | 53f564af815d8cf00396c2e33c42c3aa11c0a8d1 | 3,230 | KotlinVpExample | Apache License 2.0 |
app/src/main/java/com/example/wallet/ui/home/UserSingletonObject.kt | jcquispe | 351,836,938 | false | null | package com.example.wallet.ui.home
object UserSingletonObject {
var userName = "Juanky"
} | 0 | Kotlin | 0 | 0 | e2b13818c0f39bb6fb08853a460f626ea4b28266 | 94 | MyWallet | Apache License 2.0 |
kotlin-api-examples/Main.kt | k2-fsa | 531,380,835 | false | {"C++": 1267604, "Python": 458515, "CMake": 186855, "Kotlin": 180829, "Shell": 137848, "JavaScript": 120552, "Swift": 109959, "C": 100667, "C#": 97120, "Go": 74558, "Java": 61502, "HTML": 14116, "Makefile": 6128, "Objective-C": 309} | package com.k2fsa.sherpa.onnx
import android.content.res.AssetManager
fun callback(samples: FloatArray): Unit {
println("callback got called with ${samples.size} samples");
}
fun main() {
testSpeakerRecognition()
testTts()
testAsr("transducer")
testAsr("zipformer2-ctc")
}
fun computeEmbedding(extractor: S... | 84 | C++ | 141 | 720 | c1c0f5bafd9911a4eced5e23f3054adc307a8bc7 | 5,582 | sherpa-onnx | Apache License 2.0 |
app/src/main/java/com/sunnyweather/android/logic/network/PlaceService.kt | BaoGieGie | 520,449,779 | false | null | package com.sunnyweather.android.logic.network
import com.sunnyweather.android.SunnyWeatherApplication
import com.sunnyweather.android.logic.model.PlaceResponse
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Query
//定义用于访问彩云天气城市搜索API的Retrofit接口
interface PlaceService {
@GET("v2/place?toke... | 0 | Kotlin | 0 | 0 | 750b430fd9b6c83e9e8d3ad81ec871ae954b5a99 | 797 | SunnyWeather | Apache License 2.0 |
app/src/main/java/com/github/skytoph/simpleweather/domain/weather/mapper/CurrentWeatherDomainToUiMapper.kt | skytoph | 482,520,275 | false | {"Kotlin": 376392} | package com.github.skytoph.simpleweather.domain.weather.mapper
import com.github.skytoph.simpleweather.core.Mapper
import com.github.skytoph.simpleweather.core.domain.mapper.WeatherImageId
import com.github.skytoph.simpleweather.core.util.formatter.LocationFormatter
import com.github.skytoph.simpleweather.core.util.fo... | 0 | Kotlin | 0 | 0 | 68b7ff8c2f81578c63ba2b305de4d3e387b533dd | 1,555 | SimpleWeather | MIT License |
runtime/crt-util/jvm/src/aws/smithy/kotlin/runtime/crt/SdkSourceBodyStream.kt | smithy-lang | 294,823,838 | false | {"Kotlin": 4171610, "Smithy": 122979, "Python": 1215} | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package aws.smithy.kotlin.runtime.crt
import aws.sdk.kotlin.crt.http.HttpRequestBodyStream
import aws.sdk.kotlin.crt.io.MutableBuffer
import aws.smithy.kotlin.runtime.InternalApi
import aws.smithy.kotli... | 36 | Kotlin | 26 | 82 | ad18e2fb043f665df9add82083c17877a23f8610 | 1,575 | smithy-kotlin | Apache License 2.0 |
feature/navigation/drawer/src/main/kotlin/app/k9mail/feature/navigation/drawer/ui/folder/FolderList.kt | thunderbird | 1,326,671 | false | {"Kotlin": 4984338, "Java": 2160270, "Shell": 2768, "AIDL": 1946} | package app.k9mail.feature.navigation.drawer.ui.folder
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.runtime.Composable
import androi... | 845 | Kotlin | 2469 | 10,072 | 8798df32ef53b56e94414d90fe96c5897305e25c | 1,209 | thunderbird-android | Apache License 2.0 |
ktor-swagger/src/test/kotlin/de/nielsfalk/ktor/swagger/SwaggerTest.kt | Plexxi | 140,860,810 | true | {"Kotlin": 68784} | @file:Suppress("UNCHECKED_CAST")
package de.nielsfalk.ktor.swagger
import com.winterbe.expekt.should
import io.ktor.application.install
import io.ktor.locations.Location
import io.ktor.locations.Locations
import io.ktor.routing.routing
import io.ktor.server.testing.withTestApplication
import org.junit.Before
import o... | 0 | Kotlin | 0 | 0 | a85703663772e87e6b842e89392020aef00b5a95 | 3,973 | ktor-swagger | Apache License 2.0 |
app/src/main/java/com/yogaap/onlineshop/activity/RegisterActivity.kt | yogaap24 | 831,597,438 | false | {"Kotlin": 70576, "Java": 19260} | package com.yogaap.onlineshop.activity
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.database.FirebaseDatabase
import com.yogaap.onlineshop.Helper.SessionManager
import com.yogaap.onlineshop... | 0 | Kotlin | 0 | 0 | 712b1fbb63917534c2e2026b8d6b286143abd2bf | 3,385 | shoes-store | Apache License 2.0 |
app/src/main/java/good/damn/clientsocket/factory/SocketFactory.kt | GoodDamn | 780,553,871 | false | {"Kotlin": 57520} | package good.damn.clientsocket.factory
import java.net.DatagramSocket
import java.net.InetAddress
import java.net.InetSocketAddress
class SocketFactory {
companion object {
fun createDatagram(
reuse: Boolean = false,
port: Int
): DatagramSocket {
val socket =... | 0 | Kotlin | 0 | 0 | 367668dda60a70a5b4f2df872bf2512615c19813 | 551 | SocketClient | MIT License |
src/shmp/lang/language/syntax/clause/description/VerbDescription.kt | ShMPMat | 240,860,070 | false | null | package shmp.lang.language.syntax.clause.description
import shmp.lang.language.Language
import shmp.lang.language.lexis.Meaning
import shmp.lang.language.syntax.SyntaxException
import shmp.lang.language.syntax.clause.realization.IntransitiveVerbClause
import shmp.lang.language.syntax.clause.realization.TransitiveVerbC... | 0 | Kotlin | 0 | 1 | 4d26b0d50a1c3c6318eede8dd9678d3765902d4b | 2,847 | LanguageGenerator | MIT License |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/filled/FeeReceipt.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.filled
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 5,413 | icons | MIT License |
src/main/kotlin/lrk/application/bilibili/client/ui/components/TopBar.kt | Seraph-new | 766,014,301 | false | {"Kotlin": 114429} | package lrk.application.bilibili.client.ui.components
import androidx.compose.material.*
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowBack
import androidx.compose.material.icons.filled.Menu
import androidx.compose.runtime.Composable
import androidx.compose.runtime.rem... | 0 | Kotlin | 0 | 0 | 9c358d2b8b2ccb630adbb81dfa76a86a8e59f1df | 1,511 | BiliBiliClient | MIT License |
app/src/main/java/com/steve_md/smartmkulima/ui/fragments/others/crop_cycle/DetailedFarmCycleFragment.kt | MuindiStephen | 559,873,955 | false | {"Kotlin": 313608, "CMake": 595, "C++": 247} | package com.steve_md.smartmkulima.ui.fragments.others.crop_cycle
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.AdapterView
import android.widget.ArrayAdapter
import android.widget.Toast
import androidx.ap... | 0 | Kotlin | 1 | 5 | f47c3a3c05b4d38914cea99063d45d693a7e9652 | 2,629 | Agri-Sasa | MIT License |
minigames/common/src/main/kotlin/net/casual/championships/common/minigame/rule/RulesProvider.kt | CasualChampionships | 334,382,250 | false | {"Kotlin": 271263, "Java": 4670} | package net.casual.championships.common.minigame.rule
interface RulesProvider {
fun getRules(): Rules
} | 0 | Kotlin | 1 | 3 | 810c7f2d5e2e61f7bf5b773862cc945f00cdb6b5 | 108 | CasualChampionships | MIT License |
feature/share/src/main/java/com/xinh/share/widget/common/ViewComponent.kt | HuynhXinh | 209,346,576 | false | null | package com.xinh.share.widget.common
import android.content.Context
import android.view.View
import android.widget.LinearLayout
import com.xinh.share.R
import com.xinh.share.extension.convertDpToPixel
interface ViewComponent {
fun getView(): View
fun getLinearLayoutParams(context: Context): LinearLayout.Layo... | 1 | null | 5 | 19 | 6a704f65592b2bfbb2363697885b871209775b96 | 624 | mvvm-clean-architecture | The Unlicense |
src/main/kotlin/com/shobande/menufactory/exceptions/NoStateRunner.kt | shobande-femi | 239,626,185 | false | null | package com.shobande.menufactory.exceptions
class NoStateRunner(message: String) : Exception(message) | 0 | Kotlin | 0 | 3 | b0305c134e065352ff2d5d31c3016bef1de4ac06 | 102 | menufactory | MIT License |
app/src/main/java/com/fisma/trinity/api/OpenWeatherMapResponse.kt | linuxaddict89 | 214,272,696 | false | null | package com.fisma.trinity.api
import com.google.gson.annotations.SerializedName
class OpenWeatherMapWeatherResponse {
@SerializedName("sys")
var sys: Sys? = null
@SerializedName("main")
var main: Main? = null
@SerializedName("weather")
var weather: List<OpenWeatherMapWeather>? = null
@SerializedName("d... | 0 | Kotlin | 0 | 1 | 75941780de6bd356ba9321021abb9e44a4bdb38c | 1,737 | trinitylauncher | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsaccreditedprogrammesapi/domain/repository/JpaCourseRepository.kt | ministryofjustice | 615,402,552 | false | {"Kotlin": 356420, "Shell": 9504, "Dockerfile": 1397} | package uk.gov.justice.digital.hmpps.hmppsaccreditedprogrammesapi.domain.repository
import org.hibernate.Hibernate
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Component
import uk.gov.justice.digital.hmpps.hmppsaccreditedprogrammesapi.domain.entity.create.Audience... | 8 | Kotlin | 0 | 0 | 92086508f555a8c496efea1c4c54c7c209ac085e | 2,253 | hmpps-accredited-programmes-api | MIT License |
src/main/kotlin/com/github/coaixy/mc/commands/giveCommand.kt | AzurePump | 482,231,389 | false | null | package com.github.coaixy.mc.commands
import com.github.coaixy.mc.core.config
import com.github.coaixy.mc.core.moneyObject
import com.github.coaixy.mc.extra
import taboolib.common.platform.ProxyCommandSender
import taboolib.common.platform.ProxyPlayer
import taboolib.common.platform.command.subCommand
val giveCommand... | 0 | Kotlin | 0 | 1 | 6281487bc0dc264728a01b5dd542ab0b3bb4cc99 | 1,135 | AzureFinance | Creative Commons Zero v1.0 Universal |
core/src/main/kotlin/dev/hotwire/core/turbo/visit/VisitAction.kt | hotwired | 771,533,412 | false | {"Kotlin": 319790, "JavaScript": 10089} | package dev.hotwire.core.turbo.visit
enum class VisitAction {
ADVANCE,
REPLACE,
RESTORE
}
| 11 | Kotlin | 3 | 32 | 218a7f799d4a4a5c721aa7f1aadff598970320d8 | 103 | hotwire-native-android | MIT License |
src/main/java/me/wanttobee/commandtree/examples/GroupCommand.kt | WantToBeeMe | 743,119,914 | false | {"Kotlin": 54987} | package me.wanttobee.commandtree.examples
import me.wanttobee.commandtree.ICommandNamespace
import me.wanttobee.commandtree.ICommandObject
import me.wanttobee.commandtree.nodes.*
import org.bukkit.ChatColor
// to make sure it all works you simply have to do `CommandTreeSystem.createCommand(GroupCommand)`
// (and mak... | 0 | Kotlin | 0 | 0 | 68fca6a620d74bf04c4693c223e73fb1f7691bb2 | 2,635 | CommandTree | MIT License |
app/src/main/java/org/p2p/wallet/common/crashlogging/impl/SentryFacade.kt | p2p-org | 306,035,988 | false | null | @file:Suppress("DEPRECATION")
package org.p2p.wallet.common.crashlogging.impl
import io.sentry.Breadcrumb
import io.sentry.Sentry
import io.sentry.SentryLevel
import io.sentry.protocol.User
import org.p2p.wallet.common.crashlogging.CrashLoggingFacade
private const val BREADCRUMB_CATEGORY = "SentryFacade"
class Sentr... | 9 | Kotlin | 14 | 23 | 2badf683d824c57654b12ea0c023f96e1a5d0c19 | 1,449 | key-app-android | MIT License |
app/src/main/java/com/kotlincoders/nftexplorer/home/data/remote/dto/coins/CoinsDtoResponse.kt | Kotlin-Coders | 731,346,931 | false | {"Kotlin": 72714} | package com.kotlincoders.nftexplorer.home.data.remote.dto.coins
data class CoinsDtoResponse(
val meta: Meta,
val result: List<CoinResult>
) | 0 | Kotlin | 0 | 0 | dc4a729af2d91997670e890e2d34eb1d0a423f8d | 148 | NFT-Explorer | MIT License |
packages/patrol/android/src/main/kotlin/pl/leancode/patrol/PatrolServer.kt | leancodepl | 496,206,645 | false | null | package pl.leancode.patrol
import androidx.test.platform.app.InstrumentationRegistry
import com.google.common.util.concurrent.SettableFuture
import io.grpc.InsecureServerCredentials
import io.grpc.Server
import io.grpc.okhttp.OkHttpServerBuilder
class PatrolServer {
private val envPortKey = "PATROL_PORT"
priv... | 141 | Dart | 50 | 384 | bb8195edf78e4197384d76a879fbf23b08172ee0 | 1,598 | patrol | Apache License 2.0 |
src/main/kotlin/hr/fer/infsus/handymanrepairs/service/impl/UserDetailService.kt | Theanko1412 | 783,054,275 | false | {"Kotlin": 222286, "Dockerfile": 106} | package hr.fer.infsus.handymanrepairs.service.impl
import hr.fer.infsus.handymanrepairs.repository.CustomerRepository
import hr.fer.infsus.handymanrepairs.repository.HandymanRepository
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.security.core.userdetails.UserDetails
import ... | 0 | Kotlin | 0 | 0 | 9f278da33e4fc15cf5ce48839e07d31bcdf31e45 | 1,155 | handyman-repairs | MIT License |
app/src/main/java/com/kotlinstudies/tabelaperiodicainterativa/datasource/Elements.kt | GabrielMCavalcante | 484,841,006 | false | null | package com.kotlinstudies.tabelaperiodicainterativa.datasource
import com.kotlinstudies.tabelaperiodicainterativa.R
import com.kotlinstudies.tabelaperiodicainterativa.models.ChemicalElement
object Elements {
val hidrogenio = ChemicalElement(
0,
"H",
"Hidrogênio",
"1",
R.drawable.rippl... | 0 | Kotlin | 0 | 1 | 74f3800e1a329a2d102fd3969ee0285160a3b4fb | 19,558 | tabela-periodica-interativa | MIT License |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/docdb/DatabaseClusterAttributesDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.docdb
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.docdb.DatabaseClusterAttributes
@Generated
public fun buildDatabaseClusterAttributes(initializer: @AwsCdkDsl
DatabaseClusterAttr... | 1 | Kotlin | 0 | 0 | b22e397ff37c5fce365a5430790e5d83f0dd5a64 | 443 | aws-cdk-kt | Apache License 2.0 |
app/src/main/java/com/myapp/sunnyweather/ui/place/PlaceViewMode.kt | 2991535823 | 269,508,381 | false | null | package com.myapp.sunnyweather.ui.place
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Transformations
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProviders
import com.myapp.sunnyweather.logic.Repository
import com.myapp.sunnyweather.logic.dao.PlaceDao
import com.myapp.s... | 0 | Kotlin | 0 | 0 | 3f0c01b44a5946df1b90c201c9bb55c08060f0e1 | 874 | SunnyWeather | Apache License 2.0 |
src/test/java/samples/ldc.kt | disassemble-io | 91,951,033 | false | null | package samples
fun printString() {
println("Hello world!")
} | 1 | Kotlin | 0 | 6 | 93a385a4e0c5175bad3b684d128d63cea7fccd79 | 66 | javanalysis | MIT License |
netty/src/test/kotlin/io/qalipsis/plugins/netty/mqtt/AbstractMqttClientIntegrationTest.kt | qalipsis | 428,401,344 | false | {"Kotlin": 966473} | /*
* Copyright 2022 AERIS IT Solutions GmbH
*
* 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 | 0 | 4104ff570f3d0ba3bef7016fc620d5c24bc5dead | 9,691 | qalipsis-plugin-netty | Apache License 2.0 |
src/main/kotlin/com/nseki/parser/StringUtils.kt | n-seki | 268,198,406 | false | null | package com.nseki.parser
import java.lang.StringBuilder
fun String.toCamelCase(): String {
val splits = split("_")
val buf = StringBuilder(splits[0])
for (i in 1 until splits.size) {
buf.append(splits[i].toUpperFirst())
}
return buf.toString()
}
fun String.toClassName(ignoreLastS: Boolean... | 0 | Kotlin | 0 | 1 | d972c121242b7b262ee623c533a38c729326fab0 | 680 | J2K | Apache License 2.0 |
src/main/kotlin/com/nseki/parser/StringUtils.kt | n-seki | 268,198,406 | false | null | package com.nseki.parser
import java.lang.StringBuilder
fun String.toCamelCase(): String {
val splits = split("_")
val buf = StringBuilder(splits[0])
for (i in 1 until splits.size) {
buf.append(splits[i].toUpperFirst())
}
return buf.toString()
}
fun String.toClassName(ignoreLastS: Boolean... | 0 | Kotlin | 0 | 1 | d972c121242b7b262ee623c533a38c729326fab0 | 680 | J2K | Apache License 2.0 |
runtime/runtime-core/common/src/aws/smithy/kotlin/runtime/retries/policy/RetryErrorType.kt | awslabs | 294,823,838 | false | null | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package aws.smithy.kotlin.runtime.retries.policy
/**
* A type of error that may be retried.
*/
public enum class RetryErrorType {
/**
* A general server-side error.
*/
ServerSide,
... | 29 | null | 15 | 25 | c04ac6948c86496c37d29000467b4ef6ecdfdcfe | 583 | smithy-kotlin | Apache License 2.0 |
src/main/kotlin/io/runescript/plugin/lang/psi/mixin/RsLocalVariableDeclarationStatementMixin.kt | waleedyaseen | 642,509,853 | false | null | package io.runescript.plugin.lang.psi.mixin
import com.intellij.extapi.psi.ASTWrapperPsiElement
import com.intellij.lang.ASTNode
import com.intellij.psi.PsiElement
import com.intellij.psi.ResolveState
import com.intellij.psi.scope.PsiScopeProcessor
import io.runescript.plugin.lang.psi.RsLocalVariableDeclarationStateme... | 8 | null | 2 | 3 | afde50d4e339a74638ab04077c8c4bb82f13dbdc | 802 | intellij-runescript | MIT License |
src/main/kotlin/net/khalidnecron/eventpokemon/util/Pokemons.kt | khalidnecron | 782,255,345 | false | {"Kotlin": 14682} | package net.khalidnecron.eventpokemon.util
import kotlinx.serialization.Serializable
@Serializable
data class Pokemons(
val name: String?,
val species: String,
val gender: String,
val pokeBall: String,
val level: Int,
val shiny: Boolean,
val item: String,
val ability: String,
val n... | 0 | Kotlin | 0 | 0 | 6893d2e3d50a0973865fd42ccc25e58c389ee9a4 | 437 | EventPokemon | MIT License |
components/gateway/src/main/kotlin/net/corda/p2p/gateway/messaging/session/SessionPartitionMapper.kt | corda | 346,070,752 | false | {"Kotlin": 19873397, "Java": 319571, "Smarty": 115441, "Shell": 54754, "Groovy": 30254, "PowerShell": 6509, "TypeScript": 5826, "Solidity": 2024} | package net.corda.p2p.gateway.messaging.session
import net.corda.lifecycle.Lifecycle
/**
* Provides the mapping from a session to the corresponding topic partitions.
*
* This is used to route messages for a session to the partitions, where that specific session is "hosted".
*/
interface SessionPartitionMapper: Li... | 51 | Kotlin | 25 | 53 | 82ad9319222d887dd28533be96eda2deb7ca4bc4 | 506 | corda-runtime-os | Apache License 2.0 |
src/commonMain/kotlin/binarySearchTree/BinarySearchTree.kt | balazstothofficial | 265,933,158 | false | null | package binarySearchTree
import order.TotalOrder
sealed class BinarySearchTree<T : Comparable<T>, O : TotalOrder<T>> {
data class Leaf<T : Comparable<T>, O : TotalOrder<T>> internal constructor(
internal val order: O
) : BinarySearchTree<T, O>()
data class Node<T : Comparable<T>, O : TotalOrder<... | 0 | Kotlin | 0 | 0 | cb8862db7a520acbf20a41412328315511fd4d82 | 539 | data-structures | MIT License |
secp256k1/src/commonMain/kotlin/io/eqoty/kryptools/elliptic/curves/Scep256k1Preset.kt | eqoty-labs | 561,950,987 | false | null | package io.eqoty.kryptools.elliptic.curves
import io.eqoty.kryptools.elliptic.biginteger.BN
object Scep256k1Preset : PresetCurve {
override val gRed = false
override val type = "short"
override val prime = "k256"
override val p = BN(
"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fff... | 2 | Kotlin | 0 | 2 | bd013f4e26fcf237c1ba522133aa7c36d441e6b3 | 29,352 | kryptools | MIT License |
protocol/src/test/kotlin/io/kaxis/dtls/message/handshake/CertificateRequestTest.kt | barudisshu | 806,368,620 | false | {"Kotlin": 1313792, "Java": 458139, "Shell": 28440, "Dockerfile": 956} | /*
* COPYRIGHT Cplier 2024
*
* The copyright to the computer program(s) herein is the property of
* Cplier Inc. The programs may be used and/or copied only with written
* permission from Cplier Inc. or in accordance with the terms and
* conditions stipulated in the agreement/contract under which the
* program(s)... | 0 | Kotlin | 0 | 0 | f18e39e826792f145468f33d8751decc79769c07 | 941 | kaxis | MIT License |
src/commonMain/kotlin/com/github/andreypfau/raptorq/octet/BinaryOctetVec.kt | andreypfau | 531,010,252 | false | {"Kotlin": 182365} | @file:Suppress("OPT_IN_USAGE")
package com.github.andreypfau.raptorq.octet
/*
// An octet vec containing only binary values, which are bit-packed for efficiency
pub struct BinaryOctetVec {
// Values are stored packed into the highest bits, with the last value at the highest bit of the
// last byte. Therefore... | 0 | Kotlin | 0 | 0 | e0364bfd0ceae46c30993db72424802b7553a02b | 2,444 | raptorq-kotlin | Apache License 2.0 |
android/DartsScorecard/domain/src/main/java/nl/entreco/domain/hiscores/HiScoreItem.kt | Entreco | 110,022,468 | false | null | package nl.entreco.domain.hiscores
sealed class HiScoreItem(val value: Float, val display: String){
data class OverallAvg(private val _value: Float) : HiScoreItem(_value, "%.2f".format(_value))
data class ScoringAvg(private val _value: Float) : HiScoreItem(_value, "%.2f".format(_value))
data class Checkout... | 7 | null | 1 | 1 | a031a0eeadd0aa21cd587b5008364a16f890b264 | 1,536 | Darts-Scorecard | Apache License 2.0 |
vxutil-vertigram/src/main/kotlin/ski/gagar/vxutil/vertigram/methods/RevokeChatInviteLink.kt | gagarski | 314,041,476 | false | null | package ski.gagar.vxutil.vertigram.methods
import ski.gagar.vertigram.annotations.TgMethod
import ski.gagar.vxutil.vertigram.types.ChatId
import ski.gagar.vxutil.vertigram.types.ChatInviteLink
@TgMethod
data class RevokeChatInviteLink(
val chatId: ChatId,
val inviteLink: String
) : JsonTgCallable<ChatInviteLi... | 0 | Kotlin | 0 | 0 | 20cd7a50d017f865814891fa15324c11434e679a | 326 | vertigram | Apache License 2.0 |
app/src/main/java/com/dinaraparanid/prima/databases/daos/CustomPlaylistTrackDao.kt | reyadrahman | 382,491,846 | false | null | package com.dinaraparanid.prima.databases.daos
import androidx.room.*
import com.dinaraparanid.prima.databases.entities.CustomPlaylistTrack
@Dao
interface CustomPlaylistTrackDao {
@Query("SELECT * FROM CustomTracks")
suspend fun getTracks(): List<CustomPlaylistTrack>
@Query("SELECT * FROM CustomTracks WH... | 0 | null | 0 | 1 | fcc405a86e24f563cdaeb114e808f348a93b7b52 | 607 | PrimaMobile | Apache License 2.0 |
data-local/src/androidTest/java/com/spiraclesoftware/androidsample/data_local/TestUtils.kt | Benjiko99 | 153,489,461 | false | null | package com.spiraclesoftware.androidsample.data_local
import android.content.Context
import androidx.room.Room
import androidx.test.core.app.ApplicationProvider
object TestUtils {
fun createDb(): MainDatabase {
val context = ApplicationProvider.getApplicationContext<Context>()
return Room.inMemo... | 0 | Kotlin | 0 | 0 | 810e8a4333fb5f3e24a3e0ac5bb90be4a537f168 | 389 | Android-Sample | The Unlicense |
core/src/main/kotlin/info/laht/threekt/renderers/shaders/chunk/bumpmap_pars_fragment.kt | markaren | 196,544,572 | false | null | package info.laht.threekt.renderers.shaders.chunk
internal val __bumpmap_pars_fragment = """
#ifdef USE_BUMPMAP
uniform sampler2D bumpMap;
uniform float bumpScale;
// Bump Mapping Unparametrized Surfaces on the GPU by <NAME>
// http://api.unrealengine.com/attachments/Engine/Rendering/LightingAndShadows/BumpMa... | 7 | Kotlin | 14 | 187 | 8dc6186d777182da6831cf1c79f39ee2d5960cd7 | 1,404 | three.kt | MIT License |
platform/platform-api/src/com/intellij/openapi/ui/BannerImageProvider.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.openapi.ui
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.components.serviceOrNull
import org.jetbrains.annotations.ApiStatus
import java... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 596 | intellij-community | Apache License 2.0 |
app/src/main/java/cn/kirilenkoo/www/coolpets/base/BaseFragment.kt | kirilenkoo | 124,344,519 | false | {"Gradle": 3, "Java Properties": 2, "PlantUML": 1, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Proguard": 1, "Kotlin": 75, "XML": 35, "Java": 1} | package cn.kirilenkoo.www.coolpets.base
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import cn.kirilenkoo.www.coolpets.R
open class BaseFragment : Fragment() {
override fun onCreateView(inflater: LayoutI... | 1 | null | 1 | 1 | 969ed3dfbac859e390cea7a1be24fcf2a9cd3931 | 552 | CoolPets | MIT License |
app/src/main/java/com/mgpersia/androidbox/data/model/Department.kt | mahsak01 | 596,924,815 | false | null | package com.mgpersia.androidbox.data.model
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
@Parcelize
data class Department(
val description: String?,
val id: Int?,
val name: String?
):Parcelable | 0 | Kotlin | 0 | 0 | 1fb772d72e14e9e05a72f9988c0c42b14773f608 | 230 | ArianaFilm | The Unlicense |
BaseExtend/src/main/java/com/chen/baseextend/bean/wallet/WithdrawInfoBean.kt | chen397254698 | 268,411,455 | false | null | package com.chen.baseextend.bean.wallet
import com.chen.basemodule.basem.BaseBean
import java.math.BigDecimal
/**
* Created by chen on 2019/11/12
**/
data class WithdrawInfoBean(
val id: Int? = null,
val cashoutType: Int? = null,//业务类型,3.提现任务币 4.提现余额 5.提现保证金
val verifyDays: Int = 0,//审核所需工作... | 1 | Kotlin | 14 | 47 | 85ffc5e307c6171767e14bbfaf992b8d62ec1cc6 | 692 | EasyAndroid | Apache License 2.0 |
app/src/main/java/com/test/dynamiclinksplayground/ui/screen/ListPostScreen.kt | uzairAhmed332 | 533,263,147 | false | null | package com.test.dynamiclinksplayground.ui.screen
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.runtime.Composable
import androidx.compose.ui.platform.LocalContext
import androidx.compose.... | 0 | Kotlin | 0 | 0 | bf09806b2cb774ed8d3f3b22a3abae2500df109b | 1,819 | AndroidDynamicLinks | Apache License 2.0 |
app/src/main/java/com/skydoves/pokedex/di/AssistedInjectModule.kt | 03050903 | 329,543,537 | true | {"Kotlin": 86146} | /*
* Designed and developed by 2020 skydoves (Jaewoong Eum)
*
* 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 appl... | 0 | null | 0 | 0 | fd04dc63327d75aece228e1fc5345f973ccef53c | 1,315 | Pokedex | Apache License 2.0 |
app/src/main/java/eu/kanade/domain/source/interactor/GetSourceRepos.kt | scb261 | 381,944,147 | true | {"Kotlin": 4047397} | package eu.kanade.domain.source.interactor
import eu.kanade.domain.UnsortedPreferences
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.map
class GetSourceRepos(private val preferences: UnsortedPreferences) {
fun subscribe(): Flow<List<String>> {
return preferences.extensionRepos().chan... | 0 | Kotlin | 0 | 7 | 5a3a2084cbfff68c4187ea55ad6b8fd7be2796b7 | 387 | TachiyomiSY | Apache License 2.0 |
EasyAndroidTest/src/main/java/com/ayvytr/easyandroidtest/AppCompatActivityKt.kt | Ayvytr | 83,971,801 | false | null | package com.ayvytr.easyandroidtest
import android.app.Activity
import android.content.Context
import android.support.v7.app.AppCompatActivity
/**
* Created by Do on 2017/6/19.
*/
fun AppCompatActivity.getContext(): Context
{
return this
}
fun AppCompatActivity.getActivity(): Activity
{
return this
}
| 0 | null | 4 | 23 | 746354f53e704de7f31fecd358eabc131f4fd106 | 315 | EasyAndroid | Apache License 2.0 |
app/src/main/java/wottrich/github/io/androidsmartchecklist/presentation/state/HomeUiActions.kt | Wottrich | 295,605,540 | false | null | package wottrich.github.io.androidsmartchecklist.presentation.state
import androidx.annotation.StringRes
import wottrich.github.io.datasource.entity.NewTask
interface HomeUiActions {
fun sendAction(action: Action)
sealed class Action {
object OnChangeEditModeAction : Action()
data class OnSho... | 6 | Kotlin | 0 | 6 | 553ac38fefc31f417543f60316fc9f43eb256e38 | 611 | android-smart-checklist | MIT License |
confab-media-transform/src/main/kotlin/org/confab/nlj/rtp/bandwidthestimation/GoogleCcEstimatorConfig.kt | confabbox | 500,321,132 | false | {"Kotlin": 2104797, "Java": 801073, "Shell": 10538, "Python": 7802, "Perl": 6698, "JavaScript": 1488, "HTML": 445, "Batchfile": 379} | /*
* Copyright @ 2018 - present 8x8, 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 | Kotlin | 0 | 0 | 6be78161fc5d5475ea45c5abad8325f09d9d0308 | 1,199 | confab-videobridge | Apache License 2.0 |
src/main/kotlin/ar/edu/unq/pds03backend/api/v2/SemesterController.kt | cassa10 | 478,695,193 | false | {"Kotlin": 387344, "Shell": 2326, "Dockerfile": 168} | package ar.edu.unq.pds03backend.api.v2
import ar.edu.unq.pds03backend.dto.semester.SemesterResponseDTO
import ar.edu.unq.pds03backend.service.ISemesterService
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.data.domain.Page
import org.springframework.data.domain.Pageable
import... | 0 | Kotlin | 1 | 0 | 2e61373e3b06ba75399dc429683eec6281f405e9 | 748 | pds03-backend | MIT License |
es-core/src/main/kotlin/tech/figure/eventstream/stream/LiveMetaDataStream.kt | FigureTechnologies | 420,208,748 | false | null | package tech.figure.eventstream.stream
import com.tinder.scarlet.Message
import com.tinder.scarlet.WebSocket
import tech.figure.eventstream.stream.models.Block
import kotlinx.coroutines.CancellationException
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutin... | 12 | Kotlin | 1 | 4 | 9b08356f3a5cb06e5a0d4dcb813e5a9840f23926 | 3,953 | event-stream | Apache License 2.0 |
device-explorer/src/com/android/tools/idea/explorer/fs/DeviceFileSystemService.kt | AdrianAndroid | 543,435,435 | true | {"Text": 355, "EditorConfig": 2, "Markdown": 64, "Shell": 32, "Ignore List": 193, "XML": 13507, "Starlark": 142, "Kotlin": 6746, "Java": 8085, "Gradle": 2753, "Proguard": 169, "INI": 72, "JSON": 80, "Graphviz (DOT)": 1, "Ant Build System": 2, "Protocol Buffer": 8, "Java Properties": 166, "HTML": 67, "Batchfile": 20, "G... | /*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 0 | null | 0 | 0 | b373163869f676145341d60985cdbdaca3565c0b | 1,833 | android | Apache License 2.0 |
base/src/main/java/com/cyberflow/base/util/PageConst.kt | sparkle-technologies | 678,261,271 | false | {"Java": 2622804, "Kotlin": 426072} | package com.cyberflow.base.util
object PageConst {
object App {
const val PAGE_MAIN = "/app/MainActivity"
}
object IM {
const val PAGE_IM_CHAT = "/im/ChatActivity"
const val SERVICE_IM_MESSAGE = "/im/IMMessageServiceImpl"
const val SERVICE_IM_TEST = "/im/IMTestActivity"
... | 1 | null | 1 | 1 | dfb48c9312186d3ccd47702c18f175bd0e620a87 | 437 | Sparkle-Android-V2 | MIT License |
app/src/kotlin/java/com/bear2b/sampleapp/ui/view/activities/ExampleActivity.kt | andysklyarov | 368,168,151 | true | {"Java Properties": 2, "Markdown": 3, "Shell": 1, "Batchfile": 1, "Proguard": 1, "Kotlin": 12, "Java": 11} | package com.bear2b.sampleapp.ui.view.activities
import android.app.Activity
import android.os.Bundle
import android.view.View
import com.bear2b.sampleapp.R
class ExampleActivity : Activity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R... | 0 | Java | 0 | 0 | f437b8db559f41f9c97512069866bb2032de5345 | 608 | bear_sdk_demo_android | Apache License 2.0 |
app/src/main/java/com/rafaelfelipeac/marvelapp/features/details/data/model/MarvelCharacterDetailDto.kt | rafaelfelipeac | 329,159,954 | false | null | package com.rafaelfelipeac.marvelapp.features.details.data.model
import com.google.gson.annotations.SerializedName
import com.rafaelfelipeac.marvelapp.core.TwoWayMapper
import com.rafaelfelipeac.marvelapp.features.details.domain.model.MarvelCharacterDetail
import javax.inject.Inject
data class MarvelCharacterDetailDt... | 0 | Kotlin | 0 | 0 | 645da550990292d44e81cf9412475c7836ec11d0 | 951 | MarvelApp | Apache License 2.0 |
composeApp/src/commonMain/kotlin/components/InfoNavigatorBar.kt | Coding-band | 612,426,050 | false | {"Kotlin": 861794, "Swift": 675} | package components
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.... | 0 | Kotlin | 2 | 19 | c5eb7b7804d9bfb34f366ef26f945d441c983158 | 8,479 | Honkai-Stargazer | Apache License 2.0 |
Kotlin-Fundamentals/Basic.kt | swoyam2609 | 543,537,820 | false | null | fun main(){
val myName: String ="<NAME>"
// myName = "<NAME>"
print("Heya $myName")
val heading: String = "Android Masterclass"
val floatingNum : Float = 13.37F
val shortNum : Short = 25
val yearInteger : Int = 2020
val longNum : Long = 18881234567
val charachterData : Char = 'a'
... | 0 | Kotlin | 0 | 2 | 0d805f7492036241fcdc36a8bfe3be92b509b0cf | 463 | App-Dev-Kotlin | MIT License |
src/main/java/de/com/fdm/bot/api/github/GithubService.kt | microtwitch | 441,882,121 | false | {"Kotlin": 31082, "Dockerfile": 330} | package de.com.fdm.bot.api.github
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
import okhttp3.OkHttpClient
import okhttp3.Request
import org.slf4j.LoggerFactory
import org.springframework.stereotype.Service
import java.io.IOException
@Service
class GithubService {
private val logger = Logg... | 5 | Kotlin | 0 | 0 | 53bd210b89deb3b68a09719a1ed74d7b9a5b5676 | 1,140 | dukebot | MIT License |
src/main/kotlin/org/misarch/notification/graphql/input/NotificationInput.kt | MiSArch | 747,680,264 | false | {"Kotlin": 34501, "Shell": 492, "Dockerfile": 219} | package org.misarch.notification.graphql.input
import java.util.*
/**
* Notification input used to create a notification
*/
interface NotificationInput {
/**
* title of the notification
*/
val title: String
/**
* body of the notification
*/
val body: String
/**
* id of... | 0 | Kotlin | 0 | 0 | 5a03c6d8d3bbaa1c063a433a84b6201e4468a12c | 389 | notification | MIT License |
core/ui/src/main/java/com/niyaj/ui/utils/NavUtils.kt | skniyajali | 644,752,474 | false | {"Kotlin": 5045629, "Shell": 16584, "Ruby": 1461, "Java": 232} | /*
* Copyright 2024 Sk Niyaj Ali
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 37 | Kotlin | 0 | 1 | e6c13d3175e83ba4eac80426edf6942f46518f11 | 2,196 | PoposRoom | Apache License 2.0 |
app/src/test/java/com/iamageo/domain/usecases/GetNottyeTest.kt | iamageo | 530,276,279 | false | {"Kotlin": 72325, "HTML": 7664} | package com.iamageo.domain.usecases
import com.iamageo.domain.model.Nottye
import com.iamageo.domain.repository.FakeNottyeRepository
import kotlinx.coroutines.runBlocking
import org.junit.Assert
import org.junit.Before
import org.junit.Test
class GetNottyeTest {
private lateinit var getNottye: GetNottye
priv... | 0 | Kotlin | 0 | 2 | f31324fbb0af3a79fab6ba7df3f1c5f7b23b21fc | 1,418 | Nottye | Apache License 2.0 |
app/src/main/java/com/app/service/parking/presentation/base/BaseActivity.kt | Parking-Service | 428,532,960 | false | null | package com.app.service.parking.presentation.base
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import androidx.core.content.ContextCompat
import androidx.databinding.DataBindingUtil
import androidx.databinding.ViewDataBinding
import ... | 4 | Kotlin | 1 | 4 | 078507786c60c30e3a37a18cf4bd6bcffd07e4c3 | 3,194 | Parking-Service-Android | MIT License |
src/main/kotlin/collection/builder/collectors/DoubleCollector.kt | Chousik | 764,806,161 | false | {"Kotlin": 48844} | package org.chousik.collection.builder.collectors
import org.chousik.collection.validators.IValidator
class DoubleCollector : NumberCollector<Double>() {
override fun ask(name: String, validator: IValidator<Double?>): Double {
return askNumber(name, validator, java.lang.Double::parseDouble)
}
} | 0 | Kotlin | 0 | 0 | 7b7a59bcf366ec149a4f0ab0e4da7bd9e5c4dfde | 314 | Lab5_Kotlin | MIT License |
lowlevel-rscp/src/test/kotlin/de/jnkconsulting/e3dc/easyrscp/crypt/BouncyCastleAESCipherFactoryTest.kt | jnk-cons | 691,762,451 | false | {"Kotlin": 914173} | package de.jnkconsulting.e3dc.easyrscp.crypt
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
class BouncyCastleAESCipherFactoryTest {
private val factoryToTest = BouncyCastleAESCipherFactory("test")
@Test
fun buildCipher() {
Assertions.assertNotNull(factoryToTest.buildC... | 5 | Kotlin | 0 | 1 | b30bee512dabc47bd55eb91d598b9feb4b6b4654 | 337 | easy-rscp | MIT License |
android-core/core-models-factory/src/main/kotlin/com/paligot/confily/core/models/factory/Instant.ext.kt | GerardPaligot | 444,230,272 | false | {"Kotlin": 897920, "Swift": 126158, "Shell": 1148, "Dockerfile": 576, "HTML": 338, "CSS": 102} | package com.paligot.confily.core.models.factory
import kotlinx.datetime.Instant
import kotlinx.datetime.LocalDateTime
import kotlinx.datetime.TimeZone
import kotlinx.datetime.format
import kotlinx.datetime.toLocalDateTime
internal fun Instant.formatISO() = this
.toLocalDateTime(TimeZone.currentSystemDefault())
... | 9 | Kotlin | 6 | 143 | 8c0985b73422d6b388012d79c7ab33c054dc55c1 | 357 | Confily | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.