path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/jvmMain/kotlin/cn/netdiscovery/monica/opencv/LoadManager.kt | fengzhizi715 | 791,824,947 | false | {"Kotlin": 641636} | package cn.netdiscovery.monica.opencv
import cn.netdiscovery.monica.utils.*
import org.slf4j.Logger
import java.io.File
import java.io.FileOutputStream
/**
*
* @FileName:
* cn.netdiscovery.monica.opencv.LoadManager
* @author: Tony Shen
* @date: 2024/7/16 14:06
* @version: V1.0 <描述当前版本功能>
*/
object Loa... | 0 | Kotlin | 4 | 51 | 5334d0822ec173004dd0dbecf7a8c7fb3b7c755b | 3,422 | Monica | Apache License 2.0 |
sdk/src/main/java/io/radar/sdk/model/RadarFraud.kt | radarlabs | 61,604,202 | false | {"Kotlin": 634499, "Groovy": 30206, "Shell": 285} | package io.radar.sdk.model
import org.json.JSONObject
/**
* Represents fraud detection signals for location verification.
*
* Note that these values should not be trusted unless you called `trackVerified()` instead of `trackOnce()`.
*
* @see [](https://radar.com/documentation/fraud)
*/
data class RadarFraud(
... | 28 | Kotlin | 21 | 75 | 8a4fd286b99e21172b052e1738de528dcee0d196 | 3,602 | radar-sdk-android | Apache License 2.0 |
jsonstream/src/main/kotlin/saffih/streamtools/jsonParser.kt | saffih | 153,232,987 | false | null | /*
* Copyright (c) 2018. <NAME>.
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, dist... | 0 | Kotlin | 0 | 0 | baecc9d233c69dabde343c7c6878313499476200 | 6,328 | stream-tools | MIT License |
src/main/kotlin/no/nav/helse/flex/domain/Arbeidssituasjon.kt | navikt | 475,306,289 | false | null | package no.nav.helse.flex.domain
enum class Arbeidssituasjon(val navn: String) {
NAERINGSDRIVENDE("selvstendig næringsdrivende"),
FRILANSER("frilanser"),
ARBEIDSTAKER("arbeidstaker"),
ARBEIDSLEDIG("arbeidsledig"),
ANNET("annet"),
;
override fun toString(): String {
return navn
... | 8 | null | 0 | 4 | 4c07a767676b309ebf7db20c76674b152f3ec2ee | 324 | sykepengesoknad-backend | MIT License |
src/test/java/org/jetbrains/plugins/ideavim/action/motion/leftright/MotionHomeActionTest.kt | JetBrains | 1,459,486 | false | null | /*
* Copyright 2003-2023 The IdeaVim authors
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE.txt file or at
* https://opensource.org/licenses/MIT.
*/
@file:Suppress("RemoveCurlyBracesFromTemplate")
package org.jetbrains.plugins.ideavim.action.motion.leftright
... | 7 | null | 749 | 9,241 | 66b01b0b0d48ffec7b0148465b85e43dfbc908d3 | 5,263 | ideavim | MIT License |
src/test/java/org/jetbrains/plugins/ideavim/action/motion/leftright/MotionHomeActionTest.kt | JetBrains | 1,459,486 | false | null | /*
* Copyright 2003-2023 The IdeaVim authors
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE.txt file or at
* https://opensource.org/licenses/MIT.
*/
@file:Suppress("RemoveCurlyBracesFromTemplate")
package org.jetbrains.plugins.ideavim.action.motion.leftright
... | 7 | null | 749 | 9,241 | 66b01b0b0d48ffec7b0148465b85e43dfbc908d3 | 5,263 | ideavim | MIT License |
el/src/main/kotlin/com/enlink/platform/searchs.kt | quinncch | 133,957,926 | false | {"Kotlin": 392388, "JavaScript": 25549, "Vue": 2273, "Java": 302, "HTML": 272} | package com.enlink.platform
import org.elasticsearch.search.sort.SortOrder
import java.io.Serializable
import java.util.*
/**
* 功能描述:查询
* @auther changgq
*/
class Condition(
val preciseConditions: Map<String, Array<String>> = emptyMap(),
val ambiguousConditions: Map<String, String> = emptyMap(),
... | 0 | Kotlin | 0 | 0 | f6a723d605a58b949cfe182b7d35164866874bd6 | 2,967 | springboot-kotlin-elasticsearch-jest | Apache License 2.0 |
RtManager/src/main/java/cn/rubintry/rtmanager/callback/RuntimeAddCallback.kt | RubinTry | 469,049,968 | false | null | package cn.rubintry.rtmanager.callback
import cn.rubintry.rtmanager.db.CustomRuntimeInfo
import java.io.Serializable
interface RuntimeAddCallback : Serializable {
fun onAdd(info: CustomRuntimeInfo)
} | 0 | Kotlin | 0 | 0 | e877fbbe636d56b87431ae46782011a6937c9baa | 205 | RuntimeManager | Apache License 2.0 |
compose/ui/ui-inspection/src/androidTest/java/androidx/compose/ui/inspection/inspector/LayoutInspectorTreeTest.kt | RikkaW | 389,105,112 | 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... | 6 | null | 984 | 7 | 6d53f95e5d979366cf7935ad7f4f14f76a951ea5 | 51,182 | androidx | Apache License 2.0 |
packages/expo-image-picker/android/src/main/java/expo/modules/imagepicker/exporters/CompressionImageExporter.kt | luoxuhai | 474,851,682 | true | {"Objective-C": 21098327, "Java": 12710084, "C++": 10387208, "Kotlin": 7081090, "TypeScript": 6149256, "Objective-C++": 4571681, "Swift": 1749750, "JavaScript": 1047031, "Starlark": 636449, "Ruby": 462733, "C": 287204, "Makefile": 201127, "Shell": 117022, "Assembly": 46741, "CMake": 33526, "HTML": 23933, "Batchfile": 3... | package expo.modules.imagepicker.exporters
import android.graphics.Bitmap
import android.net.Uri
import androidx.annotation.FloatRange
import expo.modules.imagepicker.exporters.ImageExporter.Listener
import expo.modules.interfaces.imageloader.ImageLoaderInterface
import org.apache.commons.io.FilenameUtils
import java.... | 0 | Objective-C | 0 | 0 | 8948d665a96976b0817c0d8ce7e3c4009777e95a | 2,536 | expo | MIT License |
src/main/kotlin/dodd/Block.kt | tomdodd4598 | 678,195,171 | false | {"Kotlin": 11319} | package dodd
import java.io.File
abstract class Block {
fun writeToFile(blockName: String) {
File(getFileName(blockName)).writeText(getJsonContents(blockName))
}
abstract fun getFileName(blockName: String): String
abstract fun getJsonContents(blockName: String): String
}
class Sink : Block... | 0 | Kotlin | 0 | 0 | 7ca3671d6cd5ccf575d4db92af4617af5b402412 | 10,050 | SABJG | MIT License |
network/src/main/java/com/quxianggif/network/model/DownloadListener.kt | guolindev | 167,902,491 | false | null | /*
* Copyright (C) guolin, Suzhou Quxiang Inc. Open source codes for study only.
* Do not use for commercial purpose.
*
* 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://w... | 30 | null | 692 | 3,448 | 26227595483a8f2508f23d947b3fe99721346e0f | 1,141 | giffun | Apache License 2.0 |
feature-wallet-api/src/main/java/jp/co/soramitsu/wallet/impl/domain/CurrentAccountAddressUseCase.kt | soramitsu | 278,060,397 | false | null | package jp.co.soramitsu.wallet.impl.domain
import jp.co.soramitsu.account.api.domain.interfaces.AccountRepository
import jp.co.soramitsu.account.api.domain.model.address
import jp.co.soramitsu.runtime.multiNetwork.ChainRegistry
import jp.co.soramitsu.runtime.multiNetwork.chain.model.ChainId
class CurrentAccountAddres... | 15 | null | 30 | 89 | 812c6ed5465d19a0616865cbba3e946d046720a1 | 647 | fearless-Android | Apache License 2.0 |
jcplayer/src/main/java/com/example/jean/jcplayer/service/JcPlayerService.kt | jeancsanchez | 64,754,344 | false | {"XML": 33, "Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 2, "Proguard": 2, "Java": 14, "Kotlin": 12, "YAML": 1} | package com.example.jean.jcplayer.service
import android.app.Service
import android.content.Intent
import android.content.res.AssetFileDescriptor
import android.media.MediaPlayer
import android.net.Uri
import android.os.Binder
import android.os.IBinder
import com.example.jean.jcplayer.general.JcStatus
import com.examp... | 37 | Kotlin | 110 | 267 | a0a2cadf9c07d76f0ac9818d1b889f3915acc8db | 10,585 | JcPlayer | Apache License 2.0 |
app/src/main/java/com/example/ardin/numberfactapp/api/ApiBuilder.kt | muhtarudinsiregar | 121,367,142 | false | null | package com.example.ardin.numberfactapp.api
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
class ApiBuilder {
companion object {
val BASE_URL = "http://numbersapi.com"
}
fun call(): NumberFactService {
val retrofit = Retrofit.Builder()
.base... | 0 | Kotlin | 0 | 0 | ba5eee6eb874c788634e7a7573e894a502dfafbe | 497 | NumberFactApp | MIT License |
j2k/tests/testData/ast/arrayInitializerExpression/javaLangFloatArray.kt | hhariri | 21,116,939 | true | {"Markdown": 19, "XML": 443, "Ant Build System": 23, "Ignore List": 7, "Protocol Buffer": 2, "Java": 3757, "Kotlin": 11162, "Roff": 59, "JAR Manifest": 1, "INI": 7, "Text": 916, "Java Properties": 10, "HTML": 102, "Roff Manpage": 8, "Groovy": 7, "Gradle": 61, "Maven POM": 34, "CSS": 10, "JavaScript": 42, "JFlex": 3, "B... | val a = array<java.lang.Float>(1.0, 2.0, 3.0) | 0 | Java | 0 | 0 | d150bfbce0e2e47d687f39e2fd233ea55b2ccd26 | 45 | kotlin | Apache License 2.0 |
platform/bootstrap/src/com/intellij/idea/Main.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
@file:JvmName("Main")
@file:Suppress("RAW_RUN_BLOCKING", "JAVA_MODULE_DOES_NOT_EXPORT_PACKAGE")
package com.intellij.idea
import com.intellij.concurrency.IdeaForkJoinWorkerThreadFactory
import com.... | 233 | null | 4931 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 14,429 | intellij-community | Apache License 2.0 |
app/src/main/java/com/eyepetizer/android/ui/common/ui/vassonic/SonicJavaScriptInterface.kt | VIPyinzhiwei | 259,029,682 | false | null | /*
* Copyright (C) 2017 THL A29 Limited, a Tencent company. 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
*
... | 3 | null | 404 | 1,759 | bc2feccace17deac2917ae26728915030ed6ed22 | 3,873 | Eyepetizer | Apache License 2.0 |
shared/src/commonMain/kotlin/com/luizmatias/todoapp/data/repositories/AccountRepositoryImpl.kt | luiz-matias | 437,346,131 | false | null | package com.luizmatias.todoapp.data.repositories
import com.luizmatias.todoapp.data.remote.ApiConstants
import com.luizmatias.todoapp.data.remote.models.PasswordRequest
import com.luizmatias.todoapp.domain.entities.User
import com.luizmatias.todoapp.domain.repositories.AccountRepository
import io.ktor.client.*
import ... | 0 | Kotlin | 0 | 2 | c5cf39a3f2abc03fc1ca9b4bd650ddb3044f6196 | 1,046 | todolist-kmm | MIT License |
app/src/main/java/tech/muso/demo/architecture/ui/stocks/StockDataBindingAdapters.kt | musotec | 262,890,579 | false | null | package tech.muso.demo.architecture.ui.stocks
import android.widget.ImageView
import androidx.databinding.BindingAdapter
import com.bumptech.glide.Glide
import com.bumptech.glide.load.resource.drawable.DrawableTransitionOptions
import tech.muso.demo.common.entity.Profile
/**
* Create a custom DataBinding adapter so ... | 0 | Kotlin | 0 | 0 | a8c481a742ab5b36d2ac922840bbbdfdd1f27a82 | 885 | archdemo-finance | MIT License |
libBase/src/main/java/com/effective/android/base/tips/keeplive/KeepLiveService.kt | YummyLau | 118,240,800 | false | null | package com.effective.android.base.tips.keeplive
import android.app.Notification
import android.app.Service
import android.content.Intent
import android.os.Build
import android.os.IBinder
import android.util.Log
/**
* 方案二
* 8.0以下尝试用前台服务降低优先级,但是7.0以下notification才不会提示,7.0会在通知栏显示isRunning
* 模范tinker实现
* Created by y... | 1 | null | 32 | 187 | f9bad2216051e5b848b2d862cab7958f1bcdc5e8 | 2,322 | AndroidModularArchiteture | MIT License |
app/src/main/java/de/seemoo/at_tracking_detection/notifications/ScheduledNotificationReceiver.kt | seemoo-lab | 385,199,222 | false | null | package de.seemoo.at_tracking_detection.notifications
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import de.seemoo.at_tracking_detection.ATTrackingDetectionApplication
import de.seemoo.at_tracking_detection.util.SharedPrefs
import timber.log.Timber
class Sched... | 28 | null | 99 | 1,877 | 597ee7a4ae8b1a96d7a1a147fa3320f7316cfad5 | 711 | AirGuard | Apache License 2.0 |
Edu-Kotlin/testSrc/com/jetbrains/edu/kotlin/hyperskill/KtHyperskillCourseGenerationTest.kt | telezhnaya | 264,863,128 | true | {"Kotlin": 2477547, "Java": 634238, "HTML": 131915, "CSS": 12844, "Python": 3994, "JavaScript": 315} | package com.jetbrains.edu.kotlin.hyperskill
import com.intellij.testFramework.LightPlatformTestCase
import com.jetbrains.edu.coursecreator.CCUtils
import com.jetbrains.edu.jvm.JdkProjectSettings
import com.jetbrains.edu.learning.EduTestCase
import com.jetbrains.edu.learning.FileTreeBuilder
import com.jetbrains.edu.lea... | 0 | null | 0 | 0 | 9f9492f7505fb86df37c9d582814c075aa3a611d | 1,184 | educational-plugin | Apache License 2.0 |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/PhotoVideo.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.outline
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,292 | icons | MIT License |
app/src/main/java/com/kmmania/runninguserpreferences/user_prefs/UserPrefsDao.kt | dlgiao | 399,046,961 | false | null | package com.kmmania.runninguserpreferences.user_prefs
import androidx.room.*
import kotlinx.coroutines.flow.Flow
@Dao
interface UserPrefsDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
suspend fun insert(userPrefs: UserPrefs)
@Query("DELETE FROM user_prefs_table")
suspend fun deleteAll()
... | 0 | Kotlin | 0 | 0 | 346e0990218a72a61ab0c1030a213a2056343532 | 402 | running_user_prefs_android | MIT License |
idea/tests/test/org/jetbrains/kotlin/idea/script/AbstractScriptConfigurationHighlightingTest.kt | JetBrains | 278,369,660 | false | null | /*
* Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.idea.script
import com.intellij.codeInsight.highlighting.HighlightUsagesHandler
... | 1 | null | 37 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 1,574 | intellij-kotlin | Apache License 2.0 |
compose/ui/ui-test-junit4/src/desktopMain/kotlin/androidx/compose/ui/test/junit4/MainTestClockImpl.desktop.kt | JetBrains | 351,708,598 | 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... | 28 | null | 937 | 59 | e18ad812b77fc8babb00aacfcea930607b0794b5 | 1,116 | androidx | Apache License 2.0 |
SourceEditor/app/src/main/java/com/microsoft/device/display/wm_samples/sourceeditor/CodeFragment.kt | conceptdev | 648,744,747 | false | {"Kotlin": 506269, "HTML": 1512} | /*
*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*
*/
package com.microsoft.device.display.wm_samples.sourceeditor
import android.content.Context
import android.os.Bundle
import android.text.Editable
import android.text.TextWatcher
import android.view.LayoutInf... | 0 | Kotlin | 14 | 9 | aa6f5b4cae5ac2aef8ffcadd357f1dc11d746e60 | 7,924 | droidcon-sf-23 | Apache License 2.0 |
nugu-agent/src/main/java/com/skt/nugu/sdk/agent/DefaultMicrophoneAgent.kt | nugu-developers | 214,067,023 | false | null | /**
* 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... | 5 | null | 18 | 27 | 9d90dcbb8463f7b8f98713126a93de7e291da86c | 7,881 | nugu-android | Apache License 2.0 |
app/src/main/java/com/example/twitturin/tweet/presentation/postTweet/ui/PublicPostPolicyFragment.kt | extractive-mana-pulse | 708,689,521 | false | {"Kotlin": 318582, "Java": 2351} | package com.example.twitturin.tweet.presentation.postTweet.ui
import android.annotation.SuppressLint
import android.content.Context
import android.content.SharedPreferences
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.Vie... | 1 | Kotlin | 0 | 1 | 9c94fd0f8b139cdf0412839140f6632e8cbf3c91 | 7,067 | Twittur-In- | MIT License |
src/main/kotlin/io/github/ivsokol/poe/action/IPolicyActionRefOrValueSerializer.kt | ivsokol | 850,045,264 | false | {"Kotlin": 1891986} | package io.github.ivsokol.poe.action
import kotlinx.serialization.DeserializationStrategy
import kotlinx.serialization.json.JsonContentPolymorphicSerializer
import kotlinx.serialization.json.JsonElement
import kotlinx.serialization.json.JsonObject
/**
* Serializes and deserializes [IPolicyActionRefOrValue] instances... | 0 | Kotlin | 0 | 1 | e1513c000ced3eafefad6778fc6085df8c4b17ee | 1,362 | policy-engine | Apache License 2.0 |
gis/src/commonMain/kotlin/jetbrains/gis/geoprotocol/GeocodingService.kt | JetBrains | 176,771,727 | false | null | /*
* Copyright (c) 2019. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
package jetbrains.gis.geoprotocol
import org.jetbrains.letsPlot.commons.intern.async.Async
import jetbrains.gis.geoprotocol.GeoResponse.*
import jetbrains.gis.geoprotocol.Geo... | 96 | null | 51 | 889 | 2fb1fe8e812ed0b84cd32954331a76775e75d4d2 | 2,483 | lets-plot | MIT License |
src/main/kotlin/org/jaqpot/api/service/prediction/runtime/runtimes/JaqpotPyV6Runtime.kt | ntua-unit-of-control-and-informatics | 790,773,279 | false | {"Kotlin": 176168, "FreeMarker": 2174} | package org.jaqpot.api.service.prediction.runtime.runtimes
import org.jaqpot.api.dto.prediction.PredictionModelDto
import org.jaqpot.api.model.DatasetDto
import org.jaqpot.api.service.model.dto.PredictionRequestDto
import org.jaqpot.api.service.prediction.runtime.config.RuntimeConfiguration
import org.springframework.... | 0 | Kotlin | 0 | 0 | 5707aed75155d3955865b68f6b5678c451b0cd93 | 1,082 | jaqpot-api | MIT License |
src/main/kotlin/co/anbora/labs/firebase/ide/actions/CreateStorageFileAction.kt | anboralabs | 302,825,861 | false | null | package co.anbora.labs.firebase.ide.actions
import co.anbora.labs.firebase.ide.icons.FirebaseIcons
import com.intellij.ide.actions.CreateFileFromTemplateAction
import com.intellij.ide.actions.CreateFileFromTemplateDialog
import com.intellij.openapi.project.Project
import com.intellij.psi.PsiDirectory
class CreateStor... | 1 | Kotlin | 6 | 26 | aca37769ce7578ff8f2e08a5d05890a18bf918fe | 847 | intellij-firebase-highlighter | MIT License |
src/main/kotlin/no/nav/aap/api/oppslag/kontaktinformasjon/KontaktinformasjonDTO.kt | navikt | 402,698,973 | false | null | package no.nav.aap.api.oppslag.kontaktinformasjon
import com.fasterxml.jackson.annotation.JsonAlias
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import javax.validation.constraints.Email
import no.nav.aap.api.oppslag.kontaktinformasjon.Kontaktinformasjon.Companion.EMPTY
import no.nav.aap.util.LoggerUti... | 4 | Kotlin | 1 | 3 | d4456fdd7934f79503123f0d9ce9318c081b45ba | 1,428 | aap-soknad-api | MIT License |
app/src/main/java/com/amazon/ivs/optimizations/ui/home/HomeFragment.kt | aws-samples | 409,741,381 | false | null | package com.amazon.ivs.optimizations.ui.home
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.amazon.ivs.optimizations.App
import com.amazon.ivs.optimizations.R
import com.amazon.ivs.optimizations.cache.P... | 1 | Kotlin | 2 | 1 | 1582c972e70b9e2befae2bd2789dbce5817c7b52 | 1,857 | amazon-ivs-optimizations-android-demo | MIT No Attribution |
module/minecraft/minecraft-chat/src/main/kotlin/taboolib/module/chat/impl/DefaultComponent.kt | TabooLib | 120,413,612 | false | null | package taboolib.module.chat.impl
import net.md_5.bungee.api.ChatColor
import net.md_5.bungee.api.chat.*
import net.md_5.bungee.api.chat.hover.content.Entity
import net.md_5.bungee.api.chat.hover.content.Item
import net.md_5.bungee.api.chat.hover.content.Text
import net.md_5.bungee.chat.ComponentSerializer
import tabo... | 9 | null | 88 | 307 | f1178ac797c650042c977bfdf7a25e926522c032 | 10,493 | taboolib | MIT License |
telegram/src/main/kotlin/me/ivmg/telegram/entities/InlineKeyboardButton.kt | seik | 284,789,498 | false | null | package me.ivmg.telegram.entities
import com.google.gson.annotations.SerializedName as Name
data class InlineKeyboardButton(
val text: String,
val url: String? = null,
@Name("callback_data") val callbackData: String? = null,
@Name("switch_inline_query") val switchInlineQuery: String? = null,
@Name... | 0 | null | 0 | 1 | 92f6ab6f96589380f5fba6a0259379b256532c55 | 422 | kotlin-telegram-bot | Apache License 2.0 |
tui/src/commonMain/kotlin/kotlinbars/tui/Main.kt | jamesward | 350,496,939 | false | null | /*
* Copyright 2020 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 i... | 1 | Kotlin | 4 | 44 | 9e8e21f16b92162c30ea95a468e380eff9e4740f | 1,338 | kotlin-bars | Apache License 2.0 |
app/src/main/java/ca/sudbury/hghasemi/notifyplus/ApkListAdapter.kt | hojat72elect | 157,974,752 | false | {"Kotlin": 94572} | package ca.sudbury.hghasemi.notifyplus
import android.annotation.SuppressLint
import android.content.pm.ApplicationInfo
import android.content.pm.PackageManager
import android.graphics.Color
import android.graphics.drawable.Drawable
import android.os.Handler
import android.text.Spannable
import android.text.SpannableS... | 3 | Kotlin | 0 | 2 | 3fa48e5196d6baba7063a3f8c65fabd2170bb9c6 | 7,425 | Notifyplus | MIT License |
libs/main/polynomial/src/commonMain/kotlin/dev/lounres/kone/polynomial/ListPolynomial.kt | lounres | 516,842,873 | false | null | /*
* Copyright © 2023 <NAME>
* All rights reserved. Licensed under the Apache License, Version 2.0. See the license in file LICENSE
*/
@file:Suppress("NOTHING_TO_INLINE", "KotlinRedundantDiagnosticSuppress")
package com.lounres.kone.polynomial
import com.lounres.kone.algebraic.Field
import com.lounres.kone.algebr... | 23 | null | 0 | 5 | 1d3fad2e9cb1a158571b93410f023d1bdca20b40 | 12,588 | Kone | Apache License 2.0 |
pensjon-brevbaker/src/main/kotlin/no/nav/pensjon/etterlatte/maler/omstillingsstoenad/revurdering/OmstillingsstoenadRevurdering.kt | navikt | 375,334,697 | false | {"Kotlin": 3391349, "TypeScript": 519756, "TeX": 12813, "Shell": 9251, "CSS": 8104, "Python": 4661, "JavaScript": 4382, "Dockerfile": 2406, "HTML": 1053} | package no.nav.pensjon.etterlatte.maler.omstillingsstoenad.revurdering
import no.nav.pensjon.brev.template.Language.Bokmal
import no.nav.pensjon.brev.template.Language.English
import no.nav.pensjon.brev.template.Language.Nynorsk
import no.nav.pensjon.brev.template.dsl.createTemplate
import no.nav.pensjon.brev.template... | 7 | Kotlin | 3 | 1 | ec81ca12f0bc17173b0e38e43441ddde8ae70922 | 7,227 | pensjonsbrev | MIT License |
js/js.translator/testData/box/closure/closureValToScopeWithSameNameDeclaration.kt | JakeWharton | 99,388,807 | false | null | // EXPECTED_REACHABLE_NODES: 992
package foo
val f = true
fun box(): String {
val bar = "test "
val boo = "another "
fun baz(): String {
var result = bar
if (f) {
val bar = 42
result += bar
val boo = 7
result += boo
}
resu... | 184 | null | 5691 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 467 | kotlin | Apache License 2.0 |
letsrebug/app/src/main/java/com/gitclonepeace/letsrebug/mfragment/SettingFragment.kt | asv0018 | 293,206,641 | false | null | package com.gitclonepeace.letsrebug.mfragment
import android.app.Activity
import android.app.AlertDialog
import android.app.ProgressDialog
import android.content.DialogInterface
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.os.storage.StorageManager
import androidx.fragme... | 0 | Kotlin | 0 | 0 | 19104b25c35b3dde3123d031838a43d3e869a2cb | 9,516 | HACK-GUJARAT-SUBMISSION | Boost Software License 1.0 |
demo/src/main/java/de/check24/compose/demo/features/tablayout/AndroidUITabItemActivity.kt | check24-profis | 469,706,312 | false | null | package de.check24.compose.demo.features.tablayout
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import de.check24.compose.demo.R
import de.check24.compose.demo.databinding.TabItemBinding
class AndroidUITabItemActivity : AppCompatActivity(){
private lateinit var binding : TabItemBindin... | 0 | Kotlin | 3 | 11 | abd64a7d2edac0dbedb4d67d3c0f7b49d9173b88 | 1,558 | jetpack-compose-is-like-android-view | MIT License |
sources/base/ui/src/main/kotlin/com/egoriku/ladyhappy/ui/dialog/BaseDialogFragment.kt | egorikftp | 102,286,802 | false | null | package com.egoriku.ladyhappy.ui.dialog
import android.app.Dialog
import android.content.DialogInterface
import android.os.Bundle
import android.view.KeyEvent
import androidx.appcompat.app.AppCompatDialogFragment
import com.egoriku.ladyhappy.ui.R
import com.google.android.material.dialog.MaterialAlertDialogBuilder
ab... | 12 | null | 22 | 261 | da53bf026e104b84eebb7c2660c2feae26c6d965 | 1,534 | Lady-happy-Android | Apache License 2.0 |
features/src/com/jetbrains/completion/feature/impl/FeatureReader.kt | JetBrains | 45,971,220 | false | null | /*
* Copyright 2000-2018 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 2 | null | 2 | 8 | 3db7f480f7996504ee4edf3265469c88f182cae3 | 4,883 | intellij-stats-collector | Apache License 2.0 |
sample/src/main/java/com/github/aachartmodel/aainfographics/demo/chartcomposer/JSFunctionForAAChartEventsComposer2.kt | AAChartModel | 120,119,119 | false | {"Kotlin": 171402, "JavaScript": 4670, "HTML": 1152} | package com.github.aachartmodel.aainfographics.demo.chartcomposer
import com.github.aachartmodel.aainfographics.aachartcreator.AAChartLineDashStyleType
import com.github.aachartmodel.aainfographics.aachartcreator.AAChartStackingType
import com.github.aachartmodel.aainfographics.aachartcreator.AAChartType
import com.gi... | 94 | Kotlin | 117 | 996 | 4b2fe6526dac0a28b8a18ef44ac8c262c1a67e7d | 15,881 | AAChartCore-Kotlin | Apache License 2.0 |
tool/automation/framework/app/src/main/kotlin/com/jetbrains/teamcity/docker/hub/DockerRegistryAccessor.kt | JetBrains | 261,739,564 | false | {"Dockerfile": 199712, "C#": 194974, "Kotlin": 50785, "Batchfile": 18861, "Shell": 13946, "Python": 6106, "PowerShell": 5194} | package com.jetbrains.teamcity.docker.hub
import com.jetbrains.teamcity.common.constants.ValidationConstants
import com.jetbrains.teamcity.common.network.HttpRequestsUtilities
import com.jetbrains.teamcity.docker.DockerImage
import com.jetbrains.teamcity.docker.hub.auth.DockerhubCredentials
import com.jetbrains.teamci... | 9 | Dockerfile | 58 | 97 | 883ff049c2a47c0443c00b4c32425bd29efac01c | 10,770 | teamcity-docker-images | Apache License 2.0 |
tool/automation/framework/app/src/main/kotlin/com/jetbrains/teamcity/docker/hub/DockerRegistryAccessor.kt | JetBrains | 261,739,564 | false | {"Dockerfile": 199712, "C#": 194974, "Kotlin": 50785, "Batchfile": 18861, "Shell": 13946, "Python": 6106, "PowerShell": 5194} | package com.jetbrains.teamcity.docker.hub
import com.jetbrains.teamcity.common.constants.ValidationConstants
import com.jetbrains.teamcity.common.network.HttpRequestsUtilities
import com.jetbrains.teamcity.docker.DockerImage
import com.jetbrains.teamcity.docker.hub.auth.DockerhubCredentials
import com.jetbrains.teamci... | 9 | Dockerfile | 58 | 97 | 883ff049c2a47c0443c00b4c32425bd29efac01c | 10,770 | teamcity-docker-images | Apache License 2.0 |
pulsar-skeleton/src/main/kotlin/ai/platon/pulsar/common/options/deprecated/CrawlOptions.kt | platonai | 124,882,400 | false | null | package ai.platon.pulsar.common.options
import ai.platon.pulsar.common.config.CapabilityTypes
import ai.platon.pulsar.common.config.ImmutableConfig
import ai.platon.pulsar.common.config.Params
import ai.platon.pulsar.common.config.PulsarConstants
import com.beust.jcommander.Parameter
import org.apache.commons.lang3.St... | 1 | null | 32 | 110 | f93bccf5075009dc7766442d3a23b5268c721f54 | 4,148 | pulsar | Apache License 2.0 |
src/test/kotlin/ca/softwareadd/domain/routers/CommandRouterTest.kt | development-sketches | 257,418,716 | false | null | package ca.softwareadd.domain.routers
import ca.softwareadd.country.Country
import ca.softwareadd.country.CountryCreatedEvent
import ca.softwareadd.country.CreateCountryCommand
import ca.softwareadd.domain.resolvers.CommandHandlerResolver
import ca.softwareadd.domain.resolvers.CommandTypeResolver
import com.fasterxml.... | 1 | Kotlin | 1 | 1 | 956c79d78d97d33a18c7a81d52e2505c838a2f95 | 2,337 | location-service-sample | MIT License |
src/main/kotlin/com/github/subat0m1c/hatecheaters/pvgui/v2/pages/Dungeons.kt | SubAt0m1c | 854,316,644 | false | {"Kotlin": 145667, "Java": 7021} | package com.github.subat0m1c.hatecheaters.pvgui.v2.pages
import com.github.subat0m1c.hatecheaters.pvgui.v2.Pages
import com.github.subat0m1c.hatecheaters.pvgui.v2.Pages.centeredText
import com.github.subat0m1c.hatecheaters.pvgui.v2.pages.Dungeons.ct
import com.github.subat0m1c.hatecheaters.pvgui.v2.utils.Utils.without... | 0 | Kotlin | 0 | 1 | facc4dbc82ad6aa6d02bb7d52c6d45a1f3c9d4a3 | 5,904 | HateCheaters | MIT License |
data/src/main/java/com/no1/taiwan/stationmusicfm/data/data/lastfm/TagTopTrackInfoData.kt | SmashKs | 168,842,876 | false | null | package com.no1.taiwan.stationmusicfm.data.data.lastfm
import com.no1.taiwan.stationmusicfm.data.data.Data
data class TagTopTrackInfoData(
val tracks: TopTrackInfoData.TracksData
) : Data
| 0 | Kotlin | 1 | 5 | 696fadc54bc30fe72f9115bdec2dacdac8cd4394 | 194 | StationMusicFM | MIT License |
Pokedex/app/src/main/java/com/example/pokedex/view/MainActivity.kt | NicolasNobrega | 607,452,286 | false | null | package com.example.pokedex.view
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.Recycler... | 0 | Kotlin | 0 | 0 | d87dfbb110e5503e238ddbbaa53c766e96a5ec17 | 2,223 | Kotlin | MIT License |
tripart/src/main/java/com/jn/kiku/ttp/pay/wxpay/WxPayInfoVO.kt | JerrNeon | 196,114,074 | false | {"Gradle": 8, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 6, "Batchfile": 1, "Markdown": 1, "Proguard": 43, "INI": 1, "Kotlin": 253, "XML": 83, "Java": 2} | package com.jn.kiku.ttp.pay.wxpay
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
/**
* Author:Stevie.Chen Time:2020/09/08 15:25
* Class Comment:微信支付信息实体(自己服务器返回)
*/
@Parcelize
data class WxPayInfoVO(
var appid: String?= null,// String 公众账号ID
var partnerid: String?= null,// String 商户号
v... | 0 | Kotlin | 1 | 1 | bc6675aee4514111981626b48a888efdcbe5ddc2 | 564 | Kiku-kotlin | Apache License 2.0 |
src/me/anno/mesh/MeshUtils.kt | AntonioNoack | 456,513,348 | false | null | package me.anno.mesh
import me.anno.ecs.Entity
import me.anno.ecs.components.collider.Collider
import me.anno.ecs.components.mesh.Mesh
import me.anno.io.ISaveable
import me.anno.mesh.assimp.AnimGameItem
import org.joml.*
import kotlin.math.abs
import kotlin.math.max
object MeshUtils {
fun centerMesh(stack: Matri... | 0 | null | 1 | 9 | b2532f7d40527eb2c9e24e3659dd904aa725a1aa | 3,142 | RemsEngine | Apache License 2.0 |
app/src/main/java/com/karl/demo/demo/app/RoomModule.kt | liaodongxiaoxiao | 329,031,269 | false | null | package com.karl.demo.demo.app
import android.content.Context
import androidx.room.Room
import androidx.room.RoomDatabase
import com.karl.demo.demo.model.AppDatabase
import com.karl.demo.demo.model.DivisionDAO
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifier... | 0 | Kotlin | 0 | 0 | 39147ca3a467f0b5ec8fa99bebe810c8bc33825a | 976 | DemoForDev | Apache License 2.0 |
vertk/vertk-cron/src/test/java/com/ufoscout/vertk/cron/exec/IntervalExecutionStrategyTest.kt | ufoscout | 134,148,676 | false | {"Java": 128496, "Kotlin": 128136} | package com.ufoscout.vertk.cron.exec
import com.ufoscout.vertk.BaseTest
import org.junit.jupiter.api.Assertions.assertTrue
import org.junit.jupiter.api.Test
import java.util.*
/**
* @author <NAME>' 04/giu/2010
*/
class IntervalExecutionStrategyTest : BaseTest() {
@Test
fun testCount() {
val interva... | 2 | null | 1 | 1 | b62a5c6f08ea1ca1f8c907ff1dd316816cba7871 | 1,123 | coreutils-java | MIT License |
wear/src/main/java/com/vlad1m1r/watchface/components/ticks/TicksLayoutOriginal.kt | rohitnotes | 316,923,584 | true | {"Kotlin": 144583} | package com.vlad1m1r.watchface.components.ticks
import android.content.Context
import android.graphics.Canvas
import android.graphics.Paint
import com.vlad1m1r.watchface.R
import com.vlad1m1r.watchface.data.ColorStorage
import com.vlad1m1r.watchface.data.DataStorage
import com.vlad1m1r.watchface.model.Mode
import com.... | 0 | null | 0 | 0 | cf16eb5984e06348d2553a62f9f6117e87c55348 | 3,004 | AnalogWatchFace | Apache License 2.0 |
app/src/main/java/com/example/myapplication/domain/usecase/GetTopHeadlinesUseCase.kt | DeMoss15 | 222,141,463 | false | null | package com.example.myapplication.domain.usecase
import com.example.myapplication.domain.usecase.base.RxUseCaseSingle
import com.example.myapplication.data.repository.TopHeadlinesRepository
import com.example.myapplication.domain.model.Article
import io.reactivex.Single
class GetTopHeadlinesUseCase(private val topHea... | 0 | Kotlin | 0 | 0 | bc9dd558000f8fbe996cca82477bea98dd2a5c31 | 833 | PaginatorRenderKit | Apache License 2.0 |
app/src/main/java/ru/russianpost/digitalperiodicals/utils/Constants.kt | saintedlittle | 811,022,037 | false | {"Kotlin": 372590} | package ru.russianpost.digitalperiodicals.utils
const val MIN_PRICE_VALUE = 1f
const val MAX_PRICE_VALUE = 500f
const val NO_RESULTS_STATUS = 404
const val NO_RIGHTS_STATUS = 410
const val RC_AUTH = 1
const val RC_END_SESSION = 2
const val ENCRYPTED_SHARED_PREFERENCES = "ENCRYPTED_SHARED_PREFERENCES"
const val AUTHENT... | 0 | Kotlin | 0 | 0 | d07a2593694616235974bbf19f993d309d014260 | 1,717 | russianpost-app | MIT License |
store/src/commonMain/kotlin/org/mobilenativefoundation/store/store5/StoreReadResponse.kt | MobileNativeFoundation | 226,169,258 | false | {"Kotlin": 361534} | /*
* Copyright 2019 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 57 | Kotlin | 202 | 3,174 | f9072fc59cc8bfe95cfe008cc8a9ce999301b242 | 4,165 | Store | Apache License 2.0 |
compiler/testData/diagnostics/tests/multiplatform/hmpp/kt57320.kt | JetBrains | 3,432,266 | false | null | // LANGUAGE: +MultiPlatformProjects
// MODULE: common
// TARGET_PLATFORM: Common
// FILE: StringValue.kt
expect class <!NO_ACTUAL_FOR_EXPECT{JS}!>StringValue<!>
expect fun StringValue.<!NO_ACTUAL_FOR_EXPECT{JS}!>plus<!>(other: String): StringValue
// MODULE: commonJS()()(common)
// TARGET_PLATFORM: JS
// FILE: Str... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 1,424 | kotlin | Apache License 2.0 |
sdk-scrapper/src/test/kotlin/io/github/wulkanowy/sdk/scrapper/exams/ExamsTest.kt | wulkanowy | 138,756,468 | false | null | package io.github.wulkanowy.sdk.scrapper.exams
import io.github.wulkanowy.sdk.scrapper.BaseLocalTest
import kotlinx.coroutines.runBlocking
import org.junit.Assert.assertEquals
import org.junit.Test
class ExamsTest : BaseLocalTest() {
private val exams by lazy {
runBlocking { getStudentRepo(ExamsTest::cla... | 9 | null | 5 | 8 | 340245d8ccc2790dcb75219c2839e8bdd8b448a4 | 2,028 | sdk | Apache License 2.0 |
src/main/kotlin/command/CommandManager.kt | pallaw | 640,997,172 | false | null | package command
/**
* Created by <NAME>
*/
object CommandManager {
/**
* Map which stores command and their corresponding required input values
*/
private val commandsParameterMap: HashMap<String, Int> = HashMap()
init {
commandsParameterMap.put(Command.CREATE_PARKING.inputCommand, 1)... | 0 | Kotlin | 0 | 0 | c264975d2d5c2e48c414b508134f65b6658b05c1 | 721 | Parkingalotsystem | MIT License |
app/src/test/java/com/example/fetchassesment/model/SectionHeadingDataModelTest.kt | NirvanaDogra | 706,349,308 | false | {"Kotlin": 23697} | package com.example.fetchassesment.model
import org.junit.Assert
import org.junit.Assert.*
import org.junit.Test
internal class SectionHeadingDataModelTest {
@Test
fun `when SectionHeadingDataModel is initialized then validate the values`() {
// given
val model = SectionHeadingDataModel("name"... | 0 | Kotlin | 0 | 0 | 5f7d7fac4de35d7916b33bde6eaed7ab248464ac | 405 | FetchAndroid | Apache License 2.0 |
protocol/osrs-221-desktop/src/main/kotlin/net/rsprot/protocol/game/outgoing/codec/varp/VarpLargeEncoder.kt | blurite | 771,753,685 | false | null | package net.rsprot.protocol.game.outgoing.codec.varp
import io.netty.channel.ChannelHandlerContext
import net.rsprot.buffer.JagByteBuf
import net.rsprot.protocol.ServerProt
import net.rsprot.protocol.game.outgoing.prot.GameServerProt
import net.rsprot.protocol.game.outgoing.varp.VarpLarge
import net.rsprot.protocol.me... | 4 | null | 6 | 7 | b72a9ddbbf607e357b783c4c8a1f5dc91b5de4f0 | 675 | rsprot | MIT License |
app/src/main/java/com/naveenkumawat/transactions/data/local/TransactionDao.kt | CoderNaveen | 658,369,659 | false | null | package com.naveenkumawat.transactions.data.local
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import androidx.room.TypeConverters
import com.naveenkumawat.transactions.domain.model... | 0 | Kotlin | 0 | 0 | abfd455070b13ad63b34bf1e38047421d6bc67b0 | 692 | Transactions | MIT License |
plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/idea/navigationToolbar/AbstractKotlinNavBarTest.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.kotlin.idea.navigationToolbar
import com.intellij.ide.navigationToolbar.NavBarModel
import com.intellij.ide.navigationToolbar.NavBarPresentation
import com.intellij.openapi.ac... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 1,371 | intellij-community | Apache License 2.0 |
ontrack-extension-slack/src/test/java/net/nemerosa/ontrack/extension/slack/notifications/SlackNotificationChannelTest.kt | nemerosa | 19,351,480 | false | null | package net.nemerosa.ontrack.extension.slack.notifications
import io.mockk.every
import io.mockk.mockk
import io.mockk.verify
import net.nemerosa.ontrack.extension.notifications.channels.NotificationResultType
import net.nemerosa.ontrack.extension.slack.SlackSettings
import net.nemerosa.ontrack.extension.slack.service... | 57 | Kotlin | 27 | 97 | 7c71a3047401e088ba0c6d43aa3a96422024857f | 3,557 | ontrack | MIT License |
valiktor-core/src/test/kotlin/org/valiktor/constraints/DateConstraintsTest.kt | valiktor | 127,146,179 | false | null | /*
* Copyright 2018-2019 https://www.valiktor.org
*
* 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... | 32 | null | 36 | 405 | 1b8e71d82ff1a91b66815fc93536ebdf4d148650 | 1,875 | valiktor | Apache License 2.0 |
ksoup-network/src/nonJsMain/kotlin/com/fleeksoft/ksoup/network/KsoupNetworkBlocking.kt | fleeksoft | 719,100,459 | false | null | package com.fleeksoft.ksoup.network
import com.fleeksoft.ksoup.Ksoup
import com.fleeksoft.ksoup.nodes.Document
import com.fleeksoft.ksoup.parser.Parser
import io.ktor.client.request.*
import io.ktor.client.statement.*
/**
* Use to fetch and parse a HTML page.
*
* Use examples:
*
* * `Document doc = Ksoup.parseG... | 7 | null | 5 | 73 | 6fea1b08ccb423778ef5f9e250204216da8380cc | 2,593 | ksoup | Apache License 2.0 |
app/src/main/kotlin/no/nav/tms/utkast/utkastApi.kt | navikt | 565,849,666 | false | {"Kotlin": 84583, "Dockerfile": 243} | package no.nav.tms.utkast
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import io.ktor.http.*
import io.ktor.serialization.jackson.*
import io.ktor.server.application.*
import io.ktor.server.auth.*
import io.ktor.server.plugins.contentnegoti... | 2 | Kotlin | 1 | 1 | fba38c427fe21d22445da1445d7afd7370e53491 | 4,009 | tms-utkast | MIT License |
app/src/main/java/com/athorfeo/source/di/key/ViewModelKey.kt | Athorfeo | 201,696,582 | false | null | package com.athorfeo.source.di.key
import androidx.lifecycle.ViewModel
import dagger.MapKey
import kotlin.reflect.KClass
/**
* Anotacion para ViewModel
* @version 1.0
* @author Juan Ortiz
* @date 10/09/2019
*/
@MustBeDocumented
@Target(
AnnotationTarget.FUNCTION,
AnnotationTarget.PROPERTY_GETTER,
Ann... | 0 | Kotlin | 1 | 0 | 07c300ff5c6337b0ba9dc55b5dfba368119519ae | 463 | CoroutinesAndroid | MIT License |
src/test/kotlin/uk/gov/justice/digital/hmpps/prisonregister/model/VideolinkConferencingCentreRepositoryTest.kt | ministryofjustice | 337,466,567 | false | null | package uk.gov.justice.digital.hmpps.prisonregister.model
import org.assertj.core.api.Assertions.assertThat
import org.assertj.core.api.Assertions.fail
import org.junit.jupiter.api.Test
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest
... | 4 | Kotlin | 1 | 2 | 342ec2191ec8e8c098c19f4d6c01d6bb943c6c89 | 1,485 | prison-register | MIT License |
app/src/main/kotlin/net/rubygrapefruit/gen/builders/ProjectContentsBuilder.kt | adammurdoch | 430,814,411 | false | {"Kotlin": 181951} | package net.rubygrapefruit.gen.builders
import net.rubygrapefruit.gen.files.BuildScriptBuilder
import net.rubygrapefruit.gen.specs.ProjectSpec
class ProjectContentsBuilder(
val spec: ProjectSpec,
val buildScript: BuildScriptBuilder
)
| 0 | Kotlin | 0 | 0 | 0d47884136b4764f7dc901009614cfe435de5dda | 244 | build-gen | Apache License 2.0 |
common/ui-theme/src/main/kotlin/ru/maksonic/beresta/common/ui_theme/palette/BluePalette.kt | maksonic | 580,058,579 | false | {"Kotlin": 1622432} | package ru.maksonic.beresta.common.ui_theme.palette
import ru.maksonic.beresta.common.ui_theme.colors.Palette
/**
* @Author maksonic on 26.02.2023
*/
val filledLightBluePalette = baseLightPalette.copy(
primary = Palette.Blue.azureRadiance,
onPrimary = Palette.Blue.coolBlack,
onPrimaryContainer = Palette... | 0 | Kotlin | 0 | 0 | 227b0a5f6c27b0f731b1f6e81b1fe2deeaa720aa | 2,352 | Beresta | MIT License |
app/src/main/java/ke/co/tulivuapps/hoteltours/features/screen/popular/PopularViewModel.kt | RushiChavan-dev | 740,244,295 | false | {"Kotlin": 872337} | package ke.co.tulivuapps.hoteltours.features.screen.popular
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import ke.co.tulivuapps.hoteltours.data.remote.utils.DataState
import ke.co.tulivuapps.hoteltours.domain.repository.PopularRepository
import ke.co.tulivuapps.hoteltour... | 0 | Kotlin | 0 | 0 | ad74422b1b7930e5665c94cc9368ec69d425ffba | 1,885 | HotelApp | Apache License 2.0 |
dokument/src/main/kotlin/no/nav/helsearbeidsgiver/felles/inntektsmelding/felles/Naturalytelse.kt | navikt | 495,713,363 | false | null | @file:UseSerializers(LocalDateSerializer::class)
package no.nav.helsearbeidsgiver.felles.inntektsmelding.felles
import kotlinx.serialization.Serializable
import kotlinx.serialization.UseSerializers
import no.nav.helsearbeidsgiver.felles.serializers.LocalDateSerializer
import java.time.LocalDate
@Serializable
data cl... | 2 | Kotlin | 0 | 2 | d7d47418b3e70fff37e103a8c39632399569c121 | 1,204 | helsearbeidsgiver-inntektsmelding | MIT License |
examples/android/src/main/kotlin/com/algolia/instantsearch/examples/android/guides/gettingstarted/ProductFragment.kt | algolia | 55,971,521 | false | null | package com.algolia.instantsearch.examples.android.guides.gettingstarted
import android.os.Bundle
import android.view.View
import android.widget.Button
import androidx.fragment.app.Fragment
import androidx.fragment.app.activityViewModels
import androidx.recyclerview.widget.RecyclerView
import com.algolia.instantsearch... | 5 | null | 32 | 156 | cb068acebbe2cd6607a6bbeab18ddafa582dd10b | 2,013 | instantsearch-android | Apache License 2.0 |
underdocs-renderer/src/main/kotlin/underdocs/renderer/representation/Type.kt | underdocs | 260,535,022 | false | null | package underdocs.renderer.representation
interface Type
| 26 | Kotlin | 0 | 2 | 63841ebabd76a0d86e420fce5f5395d5cbf02991 | 58 | underdocs | Apache License 2.0 |
OrderCenter/src/main/java/com/kotlin/order/ui/activity/OrderConfirmActivity.kt | heisexyyoumo | 145,665,152 | false | null | package com.kotlin.order.ui.activity
import android.os.Bundle
import android.support.v7.widget.LinearLayoutManager
import com.alibaba.android.arouter.facade.annotation.Autowired
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.launcher.ARouter
import com.eightbitlab.rxbus.B... | 0 | Kotlin | 1 | 2 | 27fea0090cea5fb636f8db5025379d274693b1b4 | 4,341 | KotlinMall | Apache License 2.0 |
desktopApp/src/jvmMain/kotlin/com/hoc081098/compose_multiplatform_kmpviewmodel_sample/navigation.kt | hoc081098 | 675,918,221 | false | {"Kotlin": 173732, "Swift": 580, "Shell": 228, "Ruby": 143} | package com.hoc081098.compose_multiplatform_kmpviewmodel_sample
import androidx.compose.runtime.Stable
import androidx.compose.runtime.remember
import com.freeletics.khonshu.navigation.NavEventNavigator
import com.freeletics.khonshu.navigation.compose.NavDestination
import com.freeletics.khonshu.navigation.compose.Nav... | 12 | Kotlin | 4 | 8 | 539c189185a5c77646e020928ec3a23334722317 | 2,337 | Compose-Multiplatform-KmpViewModel-Unsplash-Sample | Apache License 2.0 |
compiler/testData/codegen/box/reified/reifiedIntersectionTypeArgumentCrossModule.kt | JetBrains | 3,432,266 | false | null | // WITH_STDLIB
// See KT-37163
import kotlin.reflect.typeOf
class In<in T>
interface A
interface B
class C() : A, B
// TODO check real effects to fix the behavior when we reach consensus
// and to be sure that something is not dropped by optimizations.
var l = ""
fun log(s: String) {
l += s + ";"
}
fun cons... | 34 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 1,439 | kotlin | Apache License 2.0 |
Kotlin/src/main/kotlin/com/gildedrose/Quality.kt | rstraub | 229,895,161 | true | {"C++": 724486, "XSLT": 19568, "C#": 13851, "Kotlin": 12487, "Pascal": 9282, "C": 9261, "Smalltalk": 8793, "ABAP": 8568, "Java": 8402, "F#": 8361, "PHP": 7837, "Ada": 7270, "JavaScript": 7008, "Common Lisp": 6116, "CMake": 5462, "Scheme": 5368, "Swift": 4798, "Groovy": 4478, "PLSQL": 4471, "Erlang": 4392, "Perl": 4384,... | package com.gildedrose
class Quality(points: Int) {
companion object {
const val LEGENDARY_POINTS = 80
const val MAX_POINTS = 50
const val MIN_POINTS = 0
val MAX_QUALITY = Quality(MAX_POINTS)
val MIN_QUALITY = Quality(MIN_POINTS)
}
val points: Int
init {
... | 0 | C++ | 0 | 0 | a259f0abe65d54828a98a7ca44bcab628cbf6a0d | 666 | GildedRose-Refactoring-Kata | MIT License |
src/main/kotlin/br/com/zupacademy/ratkovski/pix/registra/GrpcExtensions.kt | Ratkovski | 395,480,677 | true | {"Kotlin": 104442, "Smarty": 2172, "Dockerfile": 164} | package br.com.zupacademy.ratkovski.pix.registra
import br.com.zupacademy.ratkovski.AccountType
import br.com.zupacademy.ratkovski.KeyType
import br.com.zupacademy.ratkovski.RegisterKeyPixRequest
import br.com.zupacademy.ratkovski.pix.grpcenum.TipoChave
import br.com.zupacademy.ratkovski.pix.grpcenum.TipoConta
fun Re... | 0 | Kotlin | 0 | 0 | c4123d9e88247192717061e47fcb1ed6c55b2d9b | 751 | orange-talents-05-template-pix-keymanager-grpc | Apache License 2.0 |
raft/src/main/kotlin/raft/log/snapshot/EntryInSnapshotException.kt | WyattJia | 287,940,061 | false | {"Kotlin": 268400} | package raft.log.snapshot
import raft.log.LogException
class EntryInSnapshotException(val index: Int) : LogException()
| 0 | Kotlin | 9 | 44 | ce055b10d422177e01a9d32ad07a789599e8d7c1 | 123 | Kites | MIT License |
idea-plugin/p3c-common/src/main/kotlin/com/alibaba/p3c/idea/inspection/AliPmdInspection.kt | wang-yan-github | 109,469,673 | false | null | /*
* Copyright 1999-2017 Alibaba Group.
*
* 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 a... | 27 | null | 5 | 7 | 34383b4d04258a984088dcc448f5307ec37702de | 3,392 | p3c | Apache License 2.0 |
matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/room/RoomDirectoryService.kt | matrix-org | 287,466,066 | false | null | /*
* Copyright 2020 The Matrix.org Foundation C.I.C.
*
* 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 ... | 86 | null | 4 | 97 | 55cc7362de34a840c67b4bbb3a14267bc8fd3b9c | 1,671 | matrix-android-sdk2 | Apache License 2.0 |
clients/kotlin/generated/src/main/kotlin/org/openapitools/client/models/OrgApacheSlingScriptingJspJspScriptEngineFactoryProperties.kt | shinesolutions | 190,217,155 | false | null | /**
* Adobe Experience Manager OSGI config (AEM) API
* Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API
*
* OpenAPI spec version: 1.0.0-pre.0
* Contact: opensource@shinesolutions.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-gener... | 12 | null | 1 | 4 | c2f6e076971d2592c1cbd3f70695c679e807396b | 1,867 | swagger-aem-osgi | Apache License 2.0 |
app/src/main/java/com/wan/android/ui/main/MainActivity.kt | qinghuaAndroid | 252,683,218 | false | null | package com.wan.android.ui.main
import android.view.Menu
import android.view.MenuItem
import androidx.activity.viewModels
import androidx.appcompat.app.ActionBarDrawerToggle
import androidx.appcompat.app.AppCompatDelegate
import androidx.drawerlayout.widget.DrawerLayout
import androidx.navigation.fragment.NavHostFragm... | 0 | Kotlin | 2 | 1 | 66bd36d4f8b94c2be53d40182b470dc6160791e3 | 8,901 | WanAndroid-qh | Apache License 2.0 |
core/src/main/java/org/roylance/yaclib/core/utilities/InitUtilities.kt | roylanceMichael | 64,247,402 | false | null | package utilities
object InitUtilities {
const val OsNameProperty = "os.name"
const val DpkgDeb = "dpkg-deb"
const val Chmod = "chmod"
const val ChmodExecutable = "755"
const val RemoveDirectory = "rm"
const val Find = "find"
const val Move = "mv"
const val Bash = "bash"
const val... | 3 | null | 1 | 1 | df672db4e16d84885ec3aa84e74c57e1e9bc1ce3 | 2,749 | yaorm | MIT License |
beagle/src/main/kotlin/br/com/zup/beagle/android/data/serializer/BeagleJsonSerializerFactory.kt | ZupIT | 391,144,851 | false | null | /*
* Copyright 2020, 2022 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA
*
* 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 re... | 0 | Kotlin | 13 | 20 | 0240e15aa07e31d390e67dbeed4789b2b7ab76da | 843 | beagle-android | Apache License 2.0 |
Chapter04/src/main/kotlin/3_State.kt | PacktPublishing | 373,735,637 | false | null | fun main() {
val snail = Snail()
snail.seeHero()
snail.getHit(1)
snail.getHit(10)
}
interface WhatCanHappen {
fun seeHero()
fun getHit(pointsOfDamage: Int)
fun calmAgain()
}
class Snail : WhatCanHappen {
private var healthPoints = 10
private var mood: Mood = Still
override f... | 0 | null | 9 | 7 | 887086024fbc675d35deb2d077ef0f4ed3d158e6 | 1,566 | Kotlin-Design-Patterns-and-Best-Practices | MIT License |
engrave2/src/main/java/com/angcyo/engrave2/data/TransitionParam.kt | angcyo | 229,037,684 | false | null | package com.angcyo.engrave2.data
import android.graphics.Matrix
import com.angcyo.bluetooth.fsc.laserpacker.HawkEngraveKeys
import com.angcyo.bluetooth.fsc.laserpacker.bean._cutGCodeHeight
import com.angcyo.bluetooth.fsc.laserpacker.bean._cutGCodeWidth
import com.angcyo.bluetooth.fsc.laserpacker.bean._cutLoopCount
imp... | 0 | null | 4 | 4 | 9e5646677153f5fba31c31a1bc8ce5753b84660a | 4,175 | UICoreEx | MIT License |
src/main/kotlin/br/com/jiratorio/client/config/JiraClientConfiguration.kt | andrelugomes | 230,294,644 | true | {"Kotlin": 541514, "PLSQL": 366, "Dockerfile": 315, "TSQL": 269} | package br.com.jiratorio.client.config
import br.com.jiratorio.config.internationalization.MessageResolver
import br.com.jiratorio.domain.Account
import br.com.jiratorio.domain.jira.JiraError
import br.com.jiratorio.exception.JiraException
import br.com.jiratorio.exception.UnauthorizedException
import br.com.jiratorio... | 0 | null | 0 | 1 | 168de10e5e53f31734937816811ac9dae6940202 | 1,775 | jirareport | MIT License |
compiler/testData/codegen/box/inlineClasses/checkBoxingOnFunctionCallsGeneric.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | // WITH_STDLIB
// WORKS_WHEN_VALUE_CLASS
// LANGUAGE: +ValueClasses, +GenericInlineClassParameter
OPTIONAL_JVM_INLINE_ANNOTATION
value class InlineNotNullPrimitive<T: Int>(val x: T)
OPTIONAL_JVM_INLINE_ANNOTATION
value class InlineNotNullReference<T: String>(val y: T)
fun <A, T: Int> testNotNullPrimitive(a: Any, b: ... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 815 | kotlin | Apache License 2.0 |
app/src/main/java/br/com/djalmahenry/pokedex/view/ui/pokedex/PokedexFragment.kt | DjalmaHenry | 497,372,986 | false | null | package br.com.djalmahenry.pokedex.view.ui.pokedex
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.fragment.app.Fragment
import androidx.lifecycle.Observer
import androidx.l... | 0 | Kotlin | 0 | 0 | e8f2865f00a5dbdf1ce504771cc4a52009477a8a | 2,049 | pokedex-android | MIT License |
collect_app/src/main/java/org/odk/collect/android/configure/SettingsImporter.kt | ebayraktar | 378,508,306 | false | null | package org.odk.collect.android.configure
import org.json.JSONException
import org.json.JSONObject
import org.odk.collect.android.application.initialization.SettingsMigrator
import org.odk.collect.android.configure.qr.AppConfigurationKeys
import org.odk.collect.android.preferences.source.SettingsProvider
import org.od... | 0 | null | 0 | 1 | 23f088204949e41e9e2683a7e2f401ede9732552 | 3,853 | collect | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.