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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
weaver/src/main/java/com/triophore/weaver/Weaver.kt | Triophore | 868,914,079 | false | {"Kotlin": 25292} | package com.triophore.weaver
import android.Manifest
import android.content.Context
import androidx.annotation.RequiresPermission
import kotlinx.coroutines.flow.MutableStateFlow
/**
* An interface defining methods for controlling a local hotspot on Android devices.
*
* Provides methods to start, stop, and check th... | 0 | Kotlin | 0 | 0 | 5c49a7e0035ae76a12ac7c4d4b6e8ae306ebb713 | 2,846 | LocalOnlyHotspot | MIT License |
app/src/main/java/com/pavelrekun/rekado/screens/logs_fragment/LogsContract.kt | ealfonso93 | 139,771,973 | true | {"Kotlin": 63470, "C++": 1279, "Java": 817, "CMake": 145} | package com.pavelrekun.rekado.screens.logs_fragment
interface LogsContract {
interface View {
fun initViews()
fun initList()
fun initClickListeners()
fun initDesign()
}
} | 0 | Kotlin | 0 | 0 | 5216f0b5c3157f1e7465d5f1680fd744ab0317fa | 218 | Rekado | MIT License |
MacrobenchmarkSample/app/src/main/java/com/example/macrobenchmark/target/Utils.kt | pyricau | 440,587,136 | true | {"Kotlin": 115454, "TypeScript": 11355, "Shell": 544} | /*
* Copyright 2021 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... | 0 | Kotlin | 0 | 1 | a4decf3462cc88f0de0b3dcadb09c366400febcf | 901 | performance-samples | Apache License 2.0 |
src/main/kotlin/org/rust/lang/core/types/ty/TyArray.kt | Kobzol | 174,706,351 | true | {"Kotlin": 8149163, "Rust": 119828, "Python": 80380, "Lex": 20075, "HTML": 18030, "Java": 1274, "Shell": 760, "RenderScript": 89} | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.lang.core.types.ty
import org.rust.lang.core.types.consts.Const
import org.rust.lang.core.types.consts.asLong
import org.rust.lang.core.types.infer.TypeFolder
import org.rust.lang.core.types.inf... | 0 | Kotlin | 0 | 4 | 7d5f70bcf89dcc9c772efbeecf20fea7b0fb331e | 713 | intellij-rust | MIT License |
idling-registry-okhttp/app/src/main/java/com/sqisland/espresso/idling_registry/okhttp/MainActivity.kt | chiuki | 34,593,880 | false | null | package com.sqisland.espresso.idling_registry.okhttp
import android.app.Activity
import android.os.Bundle
import android.widget.TextView
import okhttp3.OkHttpClient
import retrofit2.Call
import retrofit2.Callback
import retrofit2.Response
import retrofit2.Retrofit
import retrofit2.converter.moshi.MoshiConverterFactor... | 5 | Kotlin | 159 | 638 | e54564a8a8fc961491392968a1c6da971111b064 | 1,254 | espresso-samples | Apache License 2.0 |
src/en/kunmanga/src/eu/kanade/tachiyomi/extension/en/kunmanga/KunManga.kt | komikku-app | 720,497,299 | false | {"Kotlin": 6775539, "JavaScript": 2160} | package eu.kanade.tachiyomi.extension.en.kunmanga
import eu.kanade.tachiyomi.multisrc.madara.Madara
class KunManga : Madara("Kun Manga", "https://kunmanga.com", "en")
| 22 | Kotlin | 8 | 97 | 7fc1d11ee314376fe0daa87755a7590a03bc11c0 | 169 | komikku-extensions | Apache License 2.0 |
petblocks-bukkit-plugin/src/main/kotlin/com/github/shynixn/petblocks/bukkit/logic/business/service/YamlConfigurationServiceImpl.kt | Tominous | 180,851,910 | true | {"Kotlin": 1474097, "Shell": 2544} | package com.github.shynixn.petblocks.bukkit.logic.business.service
import com.github.shynixn.petblocks.api.business.service.YamlConfigurationService
import com.github.shynixn.petblocks.bukkit.logic.business.extension.deserializeToMap
import org.bukkit.configuration.file.YamlConfiguration
/**
* Created by Shynixn 201... | 0 | Kotlin | 0 | 1 | 8ca7dcc8083200dab6869fdb4e0a493ebc6ea2b0 | 2,183 | PetBlocks | Apache License 2.0 |
app/src/test/java/com/vincenzopavano/discounttracker/DataManagerTest.kt | VincenzoPavano | 146,538,603 | false | null | package com.vincenzopavano.discounttracker
import com.nhaarman.mockito_kotlin.doReturn
import com.nhaarman.mockito_kotlin.mock
import com.vincenzopavano.discounttracker.common.TestDataFactory
import com.vincenzopavano.discounttracker.data.DataManager
import com.vincenzopavano.discounttracker.data.model.PokemonListResp... | 0 | Kotlin | 0 | 0 | df91d499b95dab7956d9b54279e469b55f66328c | 1,768 | WhoHasTheKey | The Unlicense |
app/src/main/java/com/mmdub/qofee/data/firebase/FirebaseSource.kt | fahmigutawan | 648,655,600 | false | null | package com.mmdub.qofee.data.firebase
import com.google.firebase.firestore.FirebaseFirestore
import com.google.firebase.firestore.Query
import com.google.firebase.storage.StorageReference
import com.mmdub.qofee.model.response.category.CategoryItem
import com.mmdub.qofee.model.response.coffee.CoffeeItem
import com.mmdu... | 0 | Kotlin | 0 | 0 | 685bba170f47c521a193fb54d3eae0f616aba096 | 13,355 | Jetpack-Qofee | MIT License |
app/src/main/java/com/hami/sports_assist/data/mapper/NbaTransactionsMapper.kt | hongwei-bai | 345,632,970 | false | null | package com.hami.sports_assist.data.mapper
import com.hami.sports_assist.data.network.model.nba.NbaTransactionsResponse
import com.hami.sports_assist.data.network.model.nba.TransactionResponse
import com.hami.sports_assist.data.room.nba.NbaTransaction
import com.hami.sports_assist.data.room.nba.NbaTransactionsEntity
... | 2 | Kotlin | 6 | 36 | 611a35a45b3e564778616d8249abf53e80d3d370 | 789 | android-nba-assist | Apache License 2.0 |
src/commonMain/kotlin/gui/domain/fileSelector.kt | shalva97 | 371,007,326 | false | null | package gui.domain
import gui.models.HistoryFile
expect suspend fun selectAndParseFilesFromDisk(): List<HistoryFile> | 21 | Kotlin | 0 | 11 | 8e634469b2bbd4e6cbe014d6676e57688b64c1d4 | 118 | Youtube_history_parser | The Unlicense |
src/main/kotlin/view/PushPokerApplication.kt | denizcaygoz | 780,887,548 | false | {"Kotlin": 138993} | package view
import entity.Player
import service.RootService
import tools.aqua.bgw.core.BoardGameApplication
/**
* This class works like a main pool for each scene in the game.
*/
class PushPokerApplication : BoardGameApplication("PushPoker"),Refreshable {
// Central service from which all others are created/ac... | 0 | Kotlin | 0 | 0 | a0a5167e5484665d2e8253b833e0d35d16cec459 | 2,003 | PushPoker | MIT License |
app/src/main/java/com/holoo/library/breadcrumbviewsample/MainActivity.kt | msayan | 136,901,163 | false | null | package com.holoo.library.breadcrumbviewsample;
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.widget.TextView
import android.widget.Toast
import com.holoo.library.breadcrumb.BreadCrumb
import com.holoo.library.breadcrumb.BreadCrumbView
class MainActivity : AppCompatActivity()... | 1 | Kotlin | 1 | 12 | b34f0ce2a7da55697999b6b345d4a11e636c4d8f | 1,822 | bread-crumb-view | MIT License |
app/src/main/java/com/example/cs391_ble/BLEConnect.kt | brandonsgh123127 | 221,824,738 | false | null | package com.example.cs391_ble
import android.Manifest
import android.app.ActivityManager
import android.bluetooth.*
import android.content.Context
import android.net.ConnectivityManager
import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.widget.Toast
import androidx.appcompat.... | 0 | Kotlin | 1 | 0 | 80cde8b3764fc8e83ff15aeaee03a8d3a97e49e5 | 15,626 | BlueJammin | Apache License 2.0 |
subscriptions/subscriptions-impl/src/test/java/com/duckduckgo/subscriptions/impl/ui/RestoreSubscriptionViewModelTest.kt | duckduckgo | 78,869,127 | false | {"Kotlin": 11617296, "HTML": 63593, "Ruby": 14445, "JavaScript": 8619, "C++": 1813, "CMake": 1286, "Shell": 784} | package com.duckduckgo.subscriptions.impl.ui
import app.cash.turbine.test
import com.duckduckgo.common.test.CoroutineTestRule
import com.duckduckgo.subscriptions.impl.RealSubscriptionsManager.Companion.SUBSCRIPTION_NOT_FOUND_ERROR
import com.duckduckgo.subscriptions.impl.SubscriptionsData
import com.duckduckgo.subscri... | 59 | Kotlin | 840 | 3,490 | 3e86da3fc0b6fd3caba41db140c5393b4ad4566b | 5,867 | Android | Apache License 2.0 |
app/src/main/java/com/example/mycharge/network/ServiceCreator.kt | wenvelope | 506,684,779 | false | {"Kotlin": 44966} | package com.example.mycharge.network
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
object ServiceCreator {
private const val BASE_URL = "http://110.40.156.9:4000/"
private val retrofit = Retrofit.Builder()
.baseUrl(BASE_URL)
.addConverterFactory(GsonConverterF... | 0 | Kotlin | 1 | 1 | 3ee708c69fafe28884149493d7dcd6d89abab42e | 492 | MyCharge | Apache License 2.0 |
src/main/java/jp/co/soramitsu/androidfoundation/format/CollectionExt.kt | soramitsu | 373,586,020 | false | {"Kotlin": 30789} | package jp.co.soramitsu.androidfoundation.format
import java.math.BigInteger
fun <K, V> Map<K, V>.inverseMap() = map { Pair(it.value, it.key) }.toMap()
inline fun <T> Iterable<T>.sumByBigInteger(selector: (T) -> BigInteger): BigInteger {
var sum: BigInteger = BigInteger.ZERO
for (element in this) {
s... | 0 | Kotlin | 0 | 0 | 58553c30c0a1d0ec64de49bf5cc6f0a79192dc37 | 521 | android-foundation | Apache License 2.0 |
app/src/main/java/com/movietrivia/filmfacts/domain/GetBiggestFilmographyUseCase.kt | jlynchsd | 631,418,923 | false | {"Kotlin": 524037} | package com.movietrivia.filmfacts.domain
import android.content.Context
import com.movietrivia.filmfacts.R
import com.movietrivia.filmfacts.model.*
import kotlinx.coroutines.*
class GetBiggestFilmographyUseCase(
private val applicationContext: Context,
private val filmFactsRepository: FilmFactsRepository,
... | 0 | Kotlin | 0 | 0 | 9a6c9ae5bc2f7a743c9399a64d0c9edf5c7e0d84 | 3,160 | FilmFacts | Apache License 2.0 |
app/src/main/java/com/example/bnbproject/navigation/NavGraph.kt | Mohanmanuhs | 864,376,483 | false | {"Kotlin": 97403} | package com.example.bnbproject.navigation
import android.os.Build
import android.util.Log
import androidx.annotation.RequiresApi
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.navigation.NavHostController
import androidx.navigation.compose.NavHost
import androidx.navigat... | 0 | Kotlin | 1 | 0 | 9cec079543875b5ad70c57c0bfd8d9b78c94bd7f | 2,438 | BitNBuildAPP | MIT License |
paper/src/main/kotlin/nl/chimpgamer/teleportbow/paper/TeleportBowPlugin.kt | ChimpGamer | 657,776,180 | false | null | package nl.chimpgamer.teleportbow.paper
import org.bukkit.plugin.java.JavaPlugin
class TeleportBowPlugin : JavaPlugin() {
override fun onEnable() {
}
override fun onDisable() {
}
} | 0 | Kotlin | 0 | 0 | f8d4983994dbf06e245ff591289e398235a78087 | 202 | TeleportBow | MIT License |
src/main/kotlin/com/github/davio/aoc/y2022/Day16.kt | Davio | 317,510,947 | false | {"Kotlin": 381599} | package com.github.davio.aoc.y2022
import com.github.davio.aoc.general.Day
import com.github.davio.aoc.general.getInputAsList
/**
* See [Advent of Code 2022 Day 16](https://adventofcode.com/2022/day/16)
*/
object Day16 : Day() {
private const val LINE_PATTERN = """Valve ([A-Z]{2}) has flow rate=(\d+); tunnel(?... | 1 | Kotlin | 0 | 0 | 41863b0ae5efae95aab60dff475ebb43733564d1 | 5,041 | advent-of-code | MIT License |
src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsaccreditedprogrammesapi/integration/PersonIntegrationTest.kt | ministryofjustice | 615,402,552 | false | {"Kotlin": 555192, "Shell": 9504, "Dockerfile": 1415} | package uk.gov.justice.digital.hmpps.hmppsaccreditedprogrammesapi.integration
import io.kotest.matchers.equals.shouldBeEqual
import io.kotest.matchers.ints.shouldBeGreaterThan
import io.kotest.matchers.nulls.shouldNotBeNull
import io.kotest.matchers.shouldBe
import org.junit.jupiter.api.Test
import org.springframework... | 1 | Kotlin | 0 | 0 | be95f960b88d913de51c45a153ff909bf335c00d | 5,065 | hmpps-accredited-programmes-api | MIT License |
cordapp/src/main/java/com/template/contract/TokenContract.kt | vladimirevsin | 145,014,413 | false | {"Gradle": 4, "Shell": 1, "Java Properties": 2, "Text": 4, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "Java": 17, "Kotlin": 48, "INI": 1, "JAR Manifest": 2, "Motorola 68K Assembly": 2, "SQL": 1} | package com.template.contract
import com.template.command.Commands
import com.template.flow.AddTokenToClient
import com.template.state.AggregateBalanceState
import com.template.state.TokenState
import net.corda.core.contracts.Contract
import net.corda.core.contracts.Requirements.using
import net.corda.core.contracts.r... | 0 | Kotlin | 0 | 0 | 2787cbd89f1f625d15938ffffffc84816da36bc9 | 2,950 | loyalty-system | MIT License |
ChessModelTDS/checkers-model/src/main/kotlin/isel/leic/tds/checkers/model/main.kt | AndreBaptista1 | 549,627,939 | false | {"Kotlin": 15044} | package isel.leic.tds.checkers.model
fun main(){
val column = Column('c')
val column2 = Column('a')
println(column2.index)
} | 0 | Kotlin | 0 | 0 | 3b7fefb9abaf448ad4ac35096d7f63d9e66192e6 | 137 | CHECKERS-TDS | MIT License |
src/main/kotlin/org/opensearch/replication/action/repository/ReleaseLeaderResourcesAction.kt | opensearch-project | 323,830,219 | false | {"Kotlin": 1005221, "Python": 17931, "Shell": 8517} | /*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*
* Modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*/
package org.opensearch.re... | 77 | Kotlin | 58 | 48 | 0cc41c620b96a4798adbe2237e48b67269e3e509 | 744 | cross-cluster-replication | Apache License 2.0 |
app/src/main/java/com/example/chatapplication/UserAdapter.kt | sohan-beniwal | 849,731,326 | false | {"Kotlin": 25024} | package com.example.chatapplication
import android.content.Context
import android.content.Intent
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import kotlin.io.path.fileVi... | 0 | Kotlin | 0 | 0 | 08782c131506d2a2cc7fd8ed41bd5ec3b853c0f9 | 1,366 | ChatApplication | MIT License |
server/src/main/kotlin/com/IntelliLangHub/server/utils/merge.kt | IntelliLangHub | 456,304,585 | false | {"Kotlin": 33442, "HTML": 16466, "Dockerfile": 296} | package com.intellilanghub.server.utils
private data class InjectionKey(
val language: String,
val injectionId: String
)
fun mergeInjectionConfigurations(
configurationsXml: List<String>,
library: String
): String {
val configurations = configurationsXml.map { readInjectionConfiguration(it) }
... | 1 | Kotlin | 0 | 1 | 38f6f485d42e4f1a98721989aaeac371743279f8 | 1,430 | IntelliLangHub | MIT License |
app/src/main/java/com/mohmmed/mosa/eg/towmmen/data/module/Product.kt | M4A28 | 842,519,543 | false | {"Kotlin": 877792} | package com.mohmmed.mosa.eg.towmmen.data.module
import android.os.Parcelable
import androidx.room.Entity
import androidx.room.Index
import androidx.room.PrimaryKey
import kotlinx.parcelize.Parcelize
import java.util.Date
@Parcelize
@Entity(tableName = "products", indices = [Index(value = ["barcode"], unique = true)])... | 0 | Kotlin | 0 | 0 | 0b4a00de059b042dff209ceecb970695265d706e | 789 | Towmmen | MIT License |
korge-foundation/src/korlibs/bignumber/BigNum.kt | korlibs | 80,095,683 | false | {"WebAssembly": 14293935, "Kotlin": 9728800, "C": 77092, "C++": 20878, "TypeScript": 12397, "HTML": 6043, "Python": 4296, "Swift": 1371, "JavaScript": 328, "Shell": 254, "CMake": 202, "CSS": 66, "Batchfile": 41} | package korlibs.bignumber
import korlibs.bignumber.ranges.*
import kotlin.math.*
// Big Number
/** Converts this into a [BigNum] */
val Double.bn: BigNum get() = BigNum("$this")
/** Converts this into a [BigNum] */
val Long.bn: BigNum get() = BigNum(this.bi, 0)
/** Converts this into a [BigNum] */
val Int.bn: BigNum ... | 444 | WebAssembly | 121 | 2,207 | dc3d2080c6b956d4c06f4bfa90a6c831dbaa983a | 6,459 | korge | Apache License 2.0 |
01-Fizzbuzz/src/test/kotlin/com/ikarimeister/kotlinkatas/fizzbuzz/FizzBuzzTest.kt | IkariMeister | 255,678,195 | false | null | package com.ikarimeister.kotlinkatas.fizzbuzz
import io.kotlintest.matchers.shouldBe
import io.kotlintest.specs.StringSpec
class FizzBuzzTest : StringSpec() {
init {
"Given a 3 When Fizzbuzz is called should return Fizz" {
val input = 3
val actual = fizzbuzz(input)
actu... | 0 | Kotlin | 0 | 0 | 6b7f7e8bc8226ef18c1562361c2163eb6651378a | 889 | KatasKotlin | Apache License 2.0 |
spoogle-backend/src/test/kotlin/no/nav/helse/spoogle/tree/TreeTest.kt | navikt | 636,249,373 | false | null | package no.nav.helse.spoogle.tree
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import no.nav.helse.spoogle.tree.Identifikatortype.*
import org.intellij.lang.annotations.Language
import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.api.Test
internal class TreeTest {
@Test
fun `... | 1 | Kotlin | 0 | 0 | 4fd961e03092140633a7f41b3750c71bd399bfbd | 4,383 | helse-spoogle | MIT License |
reagent/common/src/main/kotlin/reagent/operator/thenReturn.kt | MaTriXy | 118,458,716 | true | {"Kotlin": 146969, "Java": 14263, "Shell": 935} | package reagent.operator
import reagent.One
import reagent.Task
private val unitSupplier = { Unit }
fun Task.thenReturnUnit(): One<Unit> = TaskThenReturn(this, unitSupplier)
fun <I> Task.thenReturn(item: I): One<I> = TaskThenReturn(this, { item })
fun <I> Task.thenReturn(supplier: () -> I): One<I> = TaskThenReturn(t... | 0 | Kotlin | 0 | 0 | 3f12d4227a62cf4623b9797739759bab390f28ab | 535 | Reagent | Apache License 2.0 |
tmp/arrays/youTrackTests/1112.kt | DaniilStepanov | 228,623,440 | false | null | // Original bug: KT-45044
const val kotlin = "1.4.30-M1"
const val kotlinSerialization = "1.0.1"
const val kotlinCoroutines = "1.4.2"
const val ktlintGradlePlugin = "10.0.0"
const val ktor = "1.5.1"
| 1 | null | 11 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 210 | bbfgradle | Apache License 2.0 |
Steganography/src/main/kotlin/image/ImageHandler.kt | damcyb | 427,749,560 | false | null | package image
import RGB_IMAGE_TYPE
import fromBinaryStringToByteArray
import getLSB
import isEven
import isOdd
import toEightBits
import java.awt.Color
import java.awt.image.BufferedImage
import java.io.File
import javax.imageio.ImageIO
class ImageHandler(private val path: String) {
val image: BufferedImage = ... | 0 | Kotlin | 0 | 0 | 1dd03a20e69e1b3f73b03b9e286c9978e1f122a1 | 5,050 | BasicsOfCryptography | MIT License |
library/src/main/java/com/fevziomurtekin/custom_mapview/adapter/SearchAdapter.kt | fevziomurtekin | 170,517,143 | false | null | package com.fevziomurtekin.custom_mapview.adapter
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.ViewGroup
import android.widget.RelativeLayout
import android.widget.TextView
import com.fevziomurtekin.custom_mapview.R
import com.fevziomurtekin.custom_mapview.View
i... | 1 | Kotlin | 3 | 5 | a4e852f3a93a51536708d196542008f269253911 | 1,929 | custom-mapview | Apache License 2.0 |
src/main/kotlin/xyz/chlamydomonos/hyphacraft/entity/entities/SporeCloudEntity.kt | Chlamydomonos | 832,406,228 | false | {"Kotlin": 331227, "Java": 6074} | package xyz.chlamydomonos.hyphacraft.entity.entities
import net.minecraft.core.particles.ColorParticleOption
import net.minecraft.core.particles.ParticleTypes
import net.minecraft.nbt.CompoundTag
import net.minecraft.network.syncher.EntityDataSerializers
import net.minecraft.network.syncher.SynchedEntityData
import ne... | 0 | Kotlin | 0 | 0 | ec8000abb44a639e3d3c2aaaf198ad0123beb9fc | 3,620 | HyphaCraft | MIT License |
Popular Movies stage 1/app/src/main/java/com/madonasyombua/myapplication/helpers/MovieHelper.kt | Madonahs | 130,854,542 | false | {"Java": 437393, "Kotlin": 100566, "HTML": 6160} | /*
* Copyright (C) 2018 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 | Java | 24 | 68 | c2b9529dc39e98f47fe0a8406d5e086bd4623008 | 1,705 | Nano-Degree-Projects | Apache License 2.0 |
framework/src/main/kotlin/pt/isel/SHORT/html/attribute/Usemap.kt | 48276AntonioMarques | 762,862,793 | false | {"Kotlin": 290899, "CSS": 6361, "JavaScript": 2091, "HTML": 587} | package pt.isel.SHORT.html.attribute
import pt.isel.SHORT.html.base.attribute.Attribute
import pt.isel.SHORT.html.base.attribute.add
/**
* Represents the HTML usemap attribute.
* Description: .
* Supported elements: < img>, <input, object >
*/
fun Attribute.Companion.usemap(value: String) = add("usemap", value)
... | 0 | Kotlin | 0 | 1 | 0457515ab97855e4f42f7eeacec53f2919908918 | 500 | short | Apache License 2.0 |
bootstrap/src/main/kotlin/jp/co/soramitsu/bootstrap/controller/EthController.kt | BulatSaif | 188,790,713 | true | {"Gradle": 26, "Kotlin": 278, "Shell": 8, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Groovy": 2, "Markdown": 10, "Java": 42, "INI": 23, "Java Properties": 48, "HTML": 1, "CSS": 1, "Dockerfile": 14, "YAML": 19, "Python": 3, "Public Key": 24, "TOML": 1, "JSON": 3, "Gerber Image": 20, "XML": 2} | package jp.co.soramitsu.bootstrap.controller
import com.d3.eth.sidechain.util.DeployHelperBuilder
import jp.co.soramitsu.bootstrap.dto.EthWallet
import jp.co.soramitsu.bootstrap.dto.MasterContractResponse
import jp.co.soramitsu.bootstrap.dto.MasterContractsRequest
import mu.KLogging
import org.springframework.http.Htt... | 0 | Kotlin | 0 | 0 | 11f0109480372549542f59f71b7e9b1bab604e30 | 3,643 | notary | Apache License 2.0 |
m3-hw4-vafs-app-ktor/src/main/kotlin/ru/beeline/vafs/ktor/plugins/InitAppSettings.kt | smith1984 | 587,390,812 | false | null | package ru.beeline.vafs.ktor.plugins
import io.ktor.server.application.*
import ru.beeline.vafs.biz.VafsRuleProcessor
import ru.beeline.vafs.common.VafsCorSettings
import ru.beeline.vafs.ktor.VafsAppSettings
import ru.beeline.vafs.ktor.ru.beeline.vafs.ktor.config.getSqlProperties
import ru.beeline.vafs.ktor.ru.beeline... | 1 | Kotlin | 0 | 0 | 69e1d82f348f89d1f7666fbe24a60a8409cc9566 | 1,193 | otuskotlin | Apache License 2.0 |
src/main/kotlin/io/openapiprocessor/core/model/EndpointResponse.kt | Tucos | 378,257,924 | true | {"Kotlin": 436041, "Groovy": 215429, "Java": 48775, "TypeScript": 1166, "ANTLR": 688} | /*
* Copyright 2019 https://github.com/openapi-processor/openapi-processor-core
* PDX-License-Identifier: Apache-2.0
*/
package io.openapiprocessor.core.model
import io.openapiprocessor.core.model.datatypes.AnyOneOfObjectDataType
import io.openapiprocessor.core.model.datatypes.ResultDataType
/**
* The responses ... | 0 | Kotlin | 0 | 0 | c810c7b03c5f6fab590065f95f72dae5ce1eb7fe | 2,965 | openapi-processor-core | Apache License 2.0 |
agp-7.1.0-alpha01/tools/base/profgen/profgen/src/test/kotlin/com/android/tools/profgen/DexFileParserTest.kt | jomof | 502,039,754 | true | {"Markdown": 63, "Java Properties": 56, "Shell": 31, "Batchfile": 12, "Proguard": 30, "CMake": 10, "Kotlin": 3443, "C++": 594, "Java": 4446, "HTML": 34, "Makefile": 14, "RenderScript": 22, "C": 30, "JavaScript": 2, "CSS": 3, "INI": 11, "Filterscript": 11, "Prolog": 1, "GLSL": 1, "Gradle Kotlin DSL": 5, "Python": 12, "D... | /*
* Copyright (C) 2021 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... | 1 | null | 1 | 0 | 9e3475f6d94cb3239f27ed8f8ee81b0abde4ef51 | 2,490 | CppBuildCacheWorkInProgress | Apache License 2.0 |
reporter/src/main/kotlin/reporters/osCakeReporterModel/utils/IssueList.kt | telekom | 383,432,709 | true | {"Kotlin": 4762997, "JavaScript": 293745, "Shell": 118824, "HTML": 118719, "Haskell": 30438, "CSS": 25056, "Python": 21317, "FreeMarker": 20565, "Batchfile": 9453, "Roff": 7585, "Dockerfile": 7005, "Scala": 6656, "Ruby": 4423, "ANTLR": 1883, "Go": 1673, "Java": 559, "Rust": 280, "Emacs Lisp": 191} | /*
* Copyright (C) 2021 Deutsche Telekom AG
*
* 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 ... | 3 | Kotlin | 0 | 0 | f6a9bd00ec3e9d371b211782d564b26318ff1c96 | 1,102 | ort | Apache License 2.0 |
VersionPlugin/src/main/java/com/shuwen/versionplugin/DependencyManager.kt | shuwen-hh | 581,745,693 | false | null | package com.shuwen.versionplugin
/**
* 配置和build相关的
*/
object BuildVersion {
const val compileSdkVersion = 33
const val buildToolsVersion = "29.0.2"
const val minSdkVersion = 21
const val targetSdkVersion = 33
const val versionCode = 1
const val versionName = "1.0"
}
const val koin_version= "... | 0 | Kotlin | 0 | 1 | f3eaab0da4110614bfbbc904657a8e5afe9f135b | 3,697 | swWanAndroid | Apache License 2.0 |
common_entities/src/main/java/com/shevelev/wizard_camera/common_entities/enums/Size.kt | AlShevelev | 262,626,159 | false | null | package com.shevelev.wizard_camera.common_entities.enums
enum class Size {
SMALL,
NORMAL,
LARGE
} | 0 | Kotlin | 4 | 40 | ca008839fb157bac0f9b914243ef2a9d7c6a72fa | 110 | WizardCamera | Apache License 2.0 |
totaladapters/src/main/java/pl/arturborowy/TotalAdapters.kt | ArturBorowy | 188,580,962 | false | null | package pl.arturborowy
import android.content.Context
import org.koin.android.ext.koin.androidContext
import org.koin.android.ext.koin.androidLogger
import org.koin.core.context.startKoin
import org.koin.core.context.stopKoin
import org.koin.dsl.module
import pl.arturborowy.util.ViewInflater
import timber.log.Timber
... | 0 | Kotlin | 0 | 5 | d2090995f767d1c10fc8cdb1eca6cbc1df031ed6 | 1,125 | total-adapters | MIT License |
app/src/main/kotlin/su/katso/synonym/common/usecases/GetLoginParamsUseCase.kt | dakatso | 158,115,410 | false | {"Kotlin": 57799} | package su.katso.synonym.common.usecases
import android.content.SharedPreferences
import io.reactivex.Single
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.schedulers.Schedulers
import su.katso.synonym.auth.AuthController.LoginParams
import su.katso.synonym.common.arch.SingleUseCase
clas... | 0 | Kotlin | 0 | 1 | 38137f03e94d1c1c864d0faebaffd3cddac70ddc | 1,208 | Synonym | Apache License 2.0 |
app/src/main/java/tech/salroid/filmy/data/local/model/MovieData.kt | salRoid | 64,316,425 | false | null | package tech.salroid.filmy.data.local.model
data class MovieData(var id: String, var movie: String? = null, var poster: String? = null) | 1 | Kotlin | 180 | 733 | c6ac0c3b47964e552b8d44a0b586e1ce3b418a9a | 136 | Filmy | Apache License 2.0 |
app/src/main/java/com/example/crud/NewWordActivity.kt | SawThanDar18 | 188,378,824 | false | null | package com.example.crud
import android.app.Activity
import android.app.AlertDialog
import android.content.Intent
import android.os.Bundle
import android.text.TextUtils
import android.view.LayoutInflater
import android.widget.Button
import android.widget.EditText
import androidx.appcompat.app.AppCompatActivity
import ... | 0 | Kotlin | 0 | 0 | 83b2b2cb6809e426759bdd7ff1af044862d4e0a8 | 1,815 | CRUD | Apache License 2.0 |
src/main/kotlin/tokyo/aieuo/mineflow/utils/Logger.kt | aieuo | 364,472,156 | false | null | package tokyo.aieuo.mineflow.utils
import cn.nukkit.Player
import cn.nukkit.entity.Entity
import tokyo.aieuo.mineflow.Main
object Logger {
fun warning(message: String, player: Entity? = null) {
if (player is Player) {
player.sendMessage("§e$message")
} else {
Main.instance... | 0 | Kotlin | 0 | 0 | 9c2ef7133d84c5d9b6f4336463d9e1d56442924a | 574 | Mineflow-Kotlin | MIT License |
app/src/main/kotlin/batect/config/io/deserializers/IncludeSetSerializer.kt | hpcsc | 252,945,272 | true | {"Gradle": 23, "INI": 2, "Markdown": 37, "YAML": 61, "Shell": 32, "Text": 6, "Ignore List": 2, "Batchfile": 8, "Git Attributes": 1, "EditorConfig": 1, "Kotlin": 588, "Dockerfile": 31, "HTML": 5, "Groovy": 4, "PowerShell": 3, "Java": 1, "Python": 3, "JSON": 1, "CSS": 2, "JavaScript": 1} | /*
Copyright 2017-2020 <NAME>.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | 0 | Kotlin | 0 | 0 | 87fc5e91c9eee765a3a38b84a7d5be77fe391f1d | 3,456 | batect | Apache License 2.0 |
LudoCompose/app/src/main/java/hu/bme/aut/android/ludocompose/ui/model/ScoreUi.kt | Kis-Benjamin | 693,261,151 | false | {"Kotlin": 358575, "Shell": 2693, "Dockerfile": 2134} | /*
* Copyright © 2023 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 0 | Kotlin | 0 | 0 | 731f304280ad30068c0149fdd04a94213ebea2e1 | 896 | Ludo | Apache License 2.0 |
app/src/androidTest/java/com/vstorchevyi/codewars/server/MockServerTestRule.kt | LStudioO | 653,597,932 | false | null | package com.vstorchevyi.codewars.server
import okhttp3.mockwebserver.Dispatcher
import okhttp3.mockwebserver.MockWebServer
import org.junit.rules.TestWatcher
import org.junit.runner.Description
class MockServerTestRule(
private val port: Int,
private val responseDispatcher: Dispatcher,
) : TestWatcher() {
... | 0 | Kotlin | 0 | 2 | 4b7ad630dbd4838b66e560f463b025e79327bebd | 683 | CodeWarsChallengeViewer | Apache License 2.0 |
app/src/main/java/com/liuyuchuan/easymusic/utils/CheckableItemViewBinder.kt | SirLYC | 133,898,818 | false | {"Kotlin": 135440} | package com.liuyuchuan.easymusic.utils
import android.support.v7.widget.AppCompatCheckBox
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.CompoundButton
import com.liuyuchuan.easymusic.R
import kotlinx.android... | 0 | Kotlin | 0 | 2 | bfa45de49d2ab6d26b29afa0d1fbd87b6ca1cc1f | 4,685 | EasyMusic | Apache License 2.0 |
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/covidcertificate/valueset/valuesets/ValueSetsStorage.kt | corona-warn-app | 268,027,139 | false | null | package de.rki.coronawarnapp.covidcertificate.valueset.valuesets
import androidx.annotation.VisibleForTesting
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
import androidx.datastore.preferences.core.edit
import androidx.datastore.preferences.core.stringPreferencesKey
i... | 35 | Kotlin | 504 | 2,486 | 7b0eee8d53a090ee0ca585c6a90c4cec570e51d6 | 2,820 | cwa-app-android | Apache License 2.0 |
app/src/main/java/io/github/joaogouveia89/retedex/pokemon/domain/repository/PokemonRepository.kt | joaogouveia89 | 776,063,726 | false | {"Kotlin": 98910} | package io.github.joaogouveia89.retedex.pokemon.domain.repository
import androidx.paging.PagingConfig
import androidx.paging.PagingData
import io.github.joaogouveia89.retedex.core.domain.model.Pokemon
import kotlinx.coroutines.flow.Flow
interface PokemonRepository {
fun getPokemons(pagingConfig: PagingConfig): Fl... | 0 | Kotlin | 0 | 0 | 5bea4cd2ddd421cef80d12fc2647f9c8f2b8524e | 345 | Retedex | MIT License |
model/src/main/kotlin/Language.kt | yole | 277,303,975 | false | {"Kotlin": 300264, "JavaScript": 89708, "Dockerfile": 4260, "CSS": 1014} | package ru.yole.etymograph
import java.util.*
open class PhonemeClass(val name: String, var matchingPhonemes: List<String>) {
open fun matchesCurrent(it: PhonemeIterator): Boolean {
return it.current in matchingPhonemes
}
companion object {
val diphthong = object : PhonemeClass("diphthong... | 0 | Kotlin | 1 | 15 | dcce8284bfd0d021c34b6d89c62b330dc594fb5f | 5,863 | etymograph | Apache License 2.0 |
base/src/main/java/ja/burhanrashid52/base/api/ApiConstants.kt | burhanrashid52 | 127,247,984 | false | null | package ja.burhanrashid52.base.api
/**
* Created by <NAME> on 3/1/2018.
*/
object ApiConstants {
internal const val HTTP_CONNECT_TIMEOUT = 60 * 1000
internal const val HTTP_READ_TIMEOUT = 60 * 1000
} | 1 | Kotlin | 144 | 866 | ae374a6e2dac3a11f9539213160aec7e9a671f14 | 210 | YoutubeUX | Apache License 2.0 |
Kotlin/Code/Kotlin-Github/app/src/main/java/android/support/v7/widget/TintableToggleButton.kt | hiloWang | 203,300,702 | false | null | package android.support.v7.widget
import android.content.Context
import android.content.res.ColorStateList
import android.graphics.PorterDuff.Mode
import android.graphics.drawable.Drawable
import android.support.annotation.DrawableRes
import android.support.v4.view.TintableBackgroundView
import android.util.AttributeS... | 1 | null | 15 | 4 | 64a637a86f734e4e80975f4aa93ab47e8d7e8b64 | 1,648 | notes | Apache License 2.0 |
app/src/main/java/com/spundev/nezumi/service/DownloadService.kt | spun | 264,310,960 | false | null | package com.spundev.nezumi.service
import android.app.IntentService
import android.app.NotificationChannel
import android.app.NotificationManager
import android.content.ContentValues
import android.content.Context
import android.content.Intent
import android.os.Build
import android.provider.MediaStore
import androidx.... | 0 | Kotlin | 0 | 0 | a9615727c62e7533e18590cb6d4a0fc6cd38d0a1 | 5,272 | android-nezumi-ref | MIT License |
shared/core/src/wasmJsMain/kotlin/com/paligot/confily/core/agenda/FeaturesActivatedDaoSettings.kt | GerardPaligot | 444,230,272 | false | {"Kotlin": 1063266, "Swift": 126158, "Shell": 1148, "Dockerfile": 576, "HTML": 338, "CSS": 102} | package com.paligot.confily.core.agenda
import com.paligot.confily.core.events.FeaturesActivatedQueries
import com.paligot.confily.core.schedules.SessionQueries
import com.paligot.confily.models.ui.ScaffoldConfigUi
import kotlinx.collections.immutable.toImmutableList
import kotlinx.coroutines.flow.Flow
import kotlinx.... | 8 | Kotlin | 6 | 142 | 7694571716b8cd67970d42f5cdd7fa8f3306ddd9 | 1,509 | Confily | Apache License 2.0 |
Kotlin/src/main/kotlin/core/Builder3D.kt | tgrundtvig | 322,026,545 | false | {"OpenSCAD": 155596, "Java": 96682, "Kotlin": 8414} | package core
interface Builder3D<Library>
{
fun build(lib : Library): Component3D
} | 0 | OpenSCAD | 1 | 0 | bab446f889af12908ceb368fdcf4ba6d57cb4f7e | 87 | OpenBuildSystem | MIT License |
library-remoteservice-coroutines/src/main/java/ru/fabit/remoteservicecoroutines/remoteservice/RemoteServiceErrorHandler.kt | FabitMobile | 457,807,988 | false | {"Kotlin": 14159, "Java": 275} | package ru.fabit.remoteservicecoroutines.remoteservice
import org.json.JSONObject
interface RemoteServiceErrorHandler {
fun getUserMessage(jsonObject: JSONObject): String
fun getCode(jsonObject: JSONObject): String
fun getErrorName(jsonObject: JSONObject): String
fun handleError(throwable: Throwable, ... | 0 | Kotlin | 0 | 0 | 95b0bc3f952bbb8cd50f9251d45c183fe3e5e903 | 343 | remoteservice-coroutines | MIT License |
src/main/kotlin/sk/vildibald/polls/controller/PerformerTypeController.kt | softveroveinzinierstvo2016 | 180,311,268 | false | null | package sk.vildibald.polls.controller
import sk.vildibald.polls.payload.PerformerTypeResponse
import sk.vildibald.polls.security.UserPrincipal
interface PerformerTypeController {
fun allTypes():
List<PerformerTypeResponse>
} | 1 | null | 1 | 1 | 8692b3cbca52004ae8c4f720c5b4bbb1b044bdab | 243 | AIS_projekt_BE | BSD Zero Clause License |
src/test/kotlin/org/springdoc/openapi/gradle/plugin/OpenApiGradlePluginTest.kt | springdoc | 236,890,806 | false | null | package org.springdoc.openapi.gradle.plugin
import com.beust.klaxon.JsonObject
import com.beust.klaxon.Parser
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory
import com.fasterxml.jackson.module.kotlin.KotlinModule
import org.gradle.internal.impldep.org.apache... | 8 | Kotlin | 31 | 96 | bb1a68af9598629716bca7a3fc3b1cc577bfd8b1 | 10,677 | springdoc-openapi-gradle-plugin | Apache License 2.0 |
feature/home/src/main/java/com/lighthouse/android/home/viewmodel/HomeViewModel.kt | soma-lighthouse | 658,620,687 | false | null | package com.lighthouse.android.home.viewmodel
import android.util.Log
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.lighthouse.android.common_ui.util.UiState
import com.lighthouse.domain.constriant.Resource
import com.lighthouse.domain... | 3 | Kotlin | 0 | 0 | be614af85c7e21bd36131faf8bfab4bcebdad108 | 2,174 | FE-lingo-swap | Apache License 2.0 |
compiler/testData/psi/recovery/ForWithoutRange.kt | JakeWharton | 99,388,807 | false | null | fun test() {
for (some)
bar()
} | 179 | null | 5640 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 40 | kotlin | Apache License 2.0 |
app/src/main/java/me/zama/itunes_most_played/ui/screens/playlist/PlayListGridItem.kt | giacomozama | 491,690,434 | false | null | package me.zama.itunes_most_played.ui.screens.playlist
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Surface
import androidx.compose.material.Text
import androidx.compose.runtime.Co... | 0 | Kotlin | 0 | 0 | ce78060399e9ab0a7ec5f668e3494ea457059c09 | 2,914 | itunes-most-played | MIT License |
TabCommon/Customize/src/main/java/com/nextzy/tabcustomize/template/mvvm/adapter/KotlinMvvmCustomIndividualAdapterViewModel.kt | Nextzy | 105,441,969 | false | null | package com.nextzy.tabcustomize.template.mvvm.adapter
import com.nextzy.tabcustomize.base.adapter.CustomAdapterViewModel
/**
* Created by「 <NAME> 」on 18 Sep 2017 :)
*/
class KotlinMvvmCustomIndividualAdapterViewModel
: CustomAdapterViewModel(){
} | 1 | null | 1 | 4 | 64c38c1078f952ff01eadebc45458530352eb798 | 254 | nextdroid-architecture | Apache License 2.0 |
src/Day08.kt | ShuffleZZZ | 572,630,279 | false | {"Kotlin": 29686} | private fun getGrid(input: List<String>) = input.map { it.map(Char::digitToInt).toTypedArray() }.toTypedArray()
private fun observeLines(grid: Array<Array<Int>>, res: Array<BooleanArray>, lineInds: IntRange, rowInds: IntProgression) {
val maxRowInd = if (rowInds.isRange()) 0 else grid.first().size - 1
for (i ... | 0 | Kotlin | 0 | 0 | 5a3cff1b7cfb1497a65bdfb41a2fe384ae4cf82e | 2,750 | advent-of-code-kotlin | Apache License 2.0 |
shared/src/commonMain/kotlin/link/socket/kore/model/agent/bundled/GenerateSubagentAgent.kt | socket-link | 724,331,833 | false | {"Kotlin": 84576, "Swift": 580, "Shell": 228} | package link.socket.kore.model.agent.bundled
import com.aallam.openai.client.OpenAI
import kotlinx.coroutines.CoroutineScope
import link.socket.kore.model.agent.KoreAgent
import link.socket.kore.ui.conversation.selector.AgentInput
data class GenerateSubagentAgent(
override val openAI: OpenAI,
override val sco... | 1 | Kotlin | 0 | 1 | fb5655d3758da434cd459b41ea13623904a57811 | 2,732 | kore-ai | Apache License 2.0 |
core/src/commonMain/kotlin/pro/respawn/flowmvi/dsl/StorePluginBuilder.kt | respawn-app | 477,143,989 | false | {"Kotlin": 422243} | package pro.respawn.flowmvi.dsl
import pro.respawn.flowmvi.api.FlowMVIDSL
import pro.respawn.flowmvi.api.MVIAction
import pro.respawn.flowmvi.api.MVIIntent
import pro.respawn.flowmvi.api.MVIState
import pro.respawn.flowmvi.api.PipelineContext
import pro.respawn.flowmvi.api.StorePlugin
import pro.respawn.flowmvi.util.s... | 5 | Kotlin | 8 | 228 | 1fe10a726fb7a3e28c5d1e39dca83e67665219cb | 5,398 | FlowMVI | Apache License 2.0 |
app/src/main/java/www/spikeysanju/flashnews/db/Converters.kt | Spikeysanju | 262,249,672 | false | null | package www.spikeysanju.flashnews.db
import androidx.room.TypeConverter
import javax.xml.transform.Source
class Converters {
@TypeConverter
fun fromSource(source: www.spikeysanju.flashnews.model.Source):String {
return source.name
}
@TypeConverter
fun toSource(name:String):www.spikeysa... | 2 | Kotlin | 0 | 7 | 72e98d1df0f9599244db8ff7037387a775734db7 | 424 | FlashNews-MVVM | The Unlicense |
libs/virtual-node/virtual-node-datamodel/src/integrationTest/kotlin/net/corda/libs/configuration/datamodel/tests/VNodeTestUtils.kt | corda | 346,070,752 | false | null | package net.corda.libs.configuration.datamodel.tests
import java.time.Instant
import java.util.UUID
import javax.persistence.EntityManagerFactory
import net.corda.db.core.DbPrivilege
import net.corda.libs.configuration.datamodel.DbConnectionConfig
import net.corda.libs.cpi.datamodel.repository.CpiMetadataRepository
im... | 141 | null | 27 | 69 | d478e119ab288af663910f9a2df42a7a7b9f5bce | 4,756 | corda-runtime-os | Apache License 2.0 |
app/src/main/java/com/example/androidweatherapp/models/Model.kt | RamziJabali | 381,178,725 | false | null | package com.example.androidweatherapp.models
class Model{
companion object{
var londonWOEID: Int = 44418
var sanfranWOEID: Int = 2487956
var australiaWOEID: Int = 23424748
var empty: String = ""
}
}
| 0 | Kotlin | 0 | 0 | 30a8079e7a63d7a9a041aa644888b2c04299e081 | 240 | weather-app-android | The Unlicense |
library/query/src/commonMain/kotlin/com/attafitamim/kabin/query/SQLiteQueryDirection.kt | tamimattafi | 702,197,843 | false | {"Kotlin": 340835} | package com.attafitamim.kabin.query
enum class SQLiteQueryDirection(val rawValue: String) {
ASCENDING("ASC"),
DESCENDING("DESC")
}
| 0 | Kotlin | 3 | 50 | b35fd487f1342b354c89dc3557a0e1cfd613d6bf | 140 | kabin | Apache License 2.0 |
money-transfers-api/src/test/java/validator/TransferRequestValidatorTest.kt | DimaPhil | 238,275,894 | false | null | package validator
import exception.UserDataValidationException
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.assertDoesNotThrow
import request.TransferRequest
import java.math.BigDecimal
class TransferRequestValidatorTest {
private val transferRequestValida... | 1 | Kotlin | 0 | 0 | 6be9c6aeaafe6fa6b3e45dd3f8cef7b75e6a6ee6 | 1,718 | money-transfers | MIT License |
app/src/test/kotlin/com/jameskbride/codemashcompanion/speakers/detail/SpeakerDetailActivityImplTest.kt | jameskbride | 111,301,835 | false | null | package com.jameskbride.codemashcompanion.speakers.detail
import android.content.Intent
import androidx.annotation.IdRes
import androidx.fragment.app.FragmentManager
import androidx.viewpager.widget.ViewPager
import androidx.appcompat.app.ActionBar
import androidx.appcompat.widget.Toolbar
import android.view.MenuItem
... | 1 | Kotlin | 0 | 1 | 5700a3828ae8dfd45c2049736d55343974dab137 | 4,074 | codemash-companion | MIT License |
webview-jsbridge/src/main/java/me/reezy/cosmo/jsbridge/internal/JSModule.kt | czy1121 | 732,022,452 | false | {"Kotlin": 37703, "HTML": 608} | package me.reezy.cosmo.jsbridge.internal
import me.reezy.cosmo.jsbridge.JSBridgeMethod
import me.reezy.cosmo.jsbridge.JSBridgeModule
import me.reezy.cosmo.jsbridge.argument.JSCallback
import me.reezy.cosmo.jsbridge.argument.JSMap
import org.json.JSONArray
import org.json.JSONObject
import java.lang.reflect.Modifier
i... | 0 | Kotlin | 0 | 1 | bf28f130248d8854e8734d9122a4592448d2b154 | 2,266 | webview | Apache License 2.0 |
application/src/androidMain/kotlin/io/github/gmvalentino8/application/AppPlatform.kt | wasabi-muffin | 457,416,965 | false | {"Kotlin": 55509} | package io.github.gmvalentino8.application
import android.content.Context
import android.os.Build.MANUFACTURER
import android.os.Build.MODEL
import android.os.Build.VERSION
actual class AppPlatform(
val context: Context,
) : Platform {
actual override val osName: String = "android"
actual override val osV... | 1 | Kotlin | 0 | 0 | 56f14f334670e691775f4028c97b3e76d947fb3a | 419 | Cyclone-Modular-Template-KMM | MIT License |
plugin-datastore-clickhouse/src/main/kotlin/idlab/obelisk/plugins/datastore/clickhouse/impl/utils/CHField.kt | idlab-discover | 495,291,260 | false | {"Kotlin": 993529, "TypeScript": 611538, "HTML": 424943, "SCSS": 73991, "Smarty": 38291, "JavaScript": 8320, "Mustache": 5714, "CSS": 2879, "Shell": 2379, "Dockerfile": 382, "Batchfile": 41} | package idlab.obelisk.plugins.datastore.clickhouse.impl.utils
import idlab.obelisk.definitions.EventField
import idlab.obelisk.definitions.Field
import idlab.obelisk.definitions.MetricName
import idlab.obelisk.definitions.MetricType
import idlab.obelisk.definitions.data.DataQuery
import idlab.obelisk.definitions.data.... | 25 | Kotlin | 0 | 6 | 793c8ec906f0dcad4b5da93d0aaa9e2d645f256b | 7,507 | obelisk | Apache License 2.0 |
src/main/kotlin/Util.kt | Reversean | 448,974,094 | false | {"Kotlin": 1927} | // Args
const val EXIT = "exit"
const val CURRENT = "current-status"
// Msg
const val WELCOME = "Type one of the following command:"
const val INCORRECT_INPUT = "Incorrect input"
const val ON_EXIT = "Shut down service"
val commandHelp = mapOf(
"current-status" to "Get current CPU load",
"exit" to "Shut down s... | 0 | Kotlin | 0 | 0 | 4c727ace580d556089cd5b40abf449a97bd11eff | 440 | pc-monitoring | MIT License |
apps/student/src/main/java/com/instructure/student/features/people/list/PeopleListRepository.kt | instructure | 179,290,947 | false | {"Kotlin": 16415961, "Dart": 4454406, "HTML": 185120, "Ruby": 35686, "Java": 24752, "Shell": 19157, "Groovy": 11717, "JavaScript": 9505, "Objective-C": 7431, "Python": 2438, "CSS": 1356, "Swift": 807, "Dockerfile": 112} | /*
* Copyright (C) 2023 - present Instructure, 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 requ... | 7 | Kotlin | 102 | 127 | ca6e2aeaeedb851003af5497e64c22e02dbf0db8 | 2,218 | canvas-android | Apache License 2.0 |
archive/design1/webserver/src/main/kotlin/com/tempstorage/tempfiledrop/webserver/service/filestorage/FileStorageController.kt | awarenessxz | 363,068,047 | false | null | package com.tempstorage.tempfiledrop.webserver.service.filestorage
import com.fasterxml.jackson.databind.ObjectMapper
import com.tempstorage.tempfiledrop.webserver.exception.ApiException
import com.tempstorage.tempfiledrop.webserver.exception.ErrorCode
import com.tempstorage.tempfiledrop.webserver.exception.ErrorRespo... | 0 | Kotlin | 0 | 1 | 7461984eec1effc91abc78206a9971cdfbd7df4d | 5,844 | TempFileDrop | Apache License 2.0 |
src/commonMain/kotlin/models/CallbackQuery.kt | dragneelfps | 297,047,080 | false | null | package io.github.dragneelfps.kbot.models
import kotlinx.serialization.Serializable
/**
* [https://core.telegram.org/bots/api#callbackquery]
*/
@Serializable
data class CallbackQuery(
val id: String,
val user: User,
val message: Message? = null,
val inline_message_id: String? = null,
val chat_in... | 5 | Kotlin | 2 | 8 | ffd954dd6b28c96cd1c8e5c846f55079bbaa07af | 417 | telegram-bot.kt | MIT License |
app/src/main/java/io/github/wulkanowy/data/repositories/HomeworkRepository.kt | v0idzz | 267,255,870 | true | {"Kotlin": 1212916, "HTML": 1949, "Shell": 220} | package io.github.wulkanowy.data.repositories
import io.github.wulkanowy.data.db.dao.HomeworkDao
import io.github.wulkanowy.data.db.entities.Homework
import io.github.wulkanowy.data.db.entities.Semester
import io.github.wulkanowy.data.db.entities.Student
import io.github.wulkanowy.data.mappers.mapToEntities
import io.... | 10 | Kotlin | 0 | 1 | 085158721e13230fa2bf5c56ec104121060e27f4 | 2,892 | wulkanowy | Apache License 2.0 |
app/src/main/java/com/example/nbagameready/ui/adapters/TwitterAdapter.kt | nba-game-ready | 451,234,866 | false | {"CSS": 72161, "Kotlin": 57072, "SCSS": 56546, "HTML": 22172, "JavaScript": 14234} | package com.example.nbagameready.ui.adapters
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.example.nbagameready.R
import... | 0 | CSS | 2 | 0 | fbe549821103994c6f69580d29d3f157b1d87973 | 2,848 | nba-game-ready | Creative Commons Attribution 3.0 Unported |
app/src/main/java/com/waseem/libroom/feature/book/domain/Book.kt | waseemabbas8 | 629,653,320 | false | {"Kotlin": 167358} | package com.waseem.libroom.feature.book.domain
data class Book(
val id: String,
val title: String,
val cover: String,
val authorName: String
)
| 0 | Kotlin | 1 | 7 | 7d5264b3515d3e91a2a6ef5566191c6461b52a84 | 160 | libroom-android | MIT License |
app/src/main/java/quizzo/app/data/repository/QuizzoRepositoryImpl.kt | ibtesam123 | 271,865,081 | false | {"Kotlin": 99034} | package quizzo.app.data.repository
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.google.android.gms.auth.api.signin.GoogleSignInAccount
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.auth.GoogleAuthProvider
import kotlinx.coroutines.Dispatchers
import ... | 2 | Kotlin | 13 | 35 | d4449a7e7a97cfcd0e4a57f2ec7b300aeb9abcdf | 6,645 | Quizzo | MIT License |
core/src/test/kotlin/in/specmatic/core/pattern/UUIDPatternTest.kt | znsio | 247,710,440 | false | null | package `in`.specmatic.core.pattern
import `in`.specmatic.core.Resolver
import `in`.specmatic.core.Result
import `in`.specmatic.core.value.StringValue
import `in`.specmatic.shouldMatch
import `in`.specmatic.shouldNotMatch
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Assertions.assertE... | 46 | Kotlin | 32 | 92 | b3eb9b6e0f7d42bde35d95b83ea187cd1d6aa3bc | 1,960 | specmatic | MIT License |
app/src/main/java/com/example/demoh264/MainActivity.kt | ruojinghong | 626,412,786 | false | null | package com.example.demoh264
import android.Manifest
import android.app.Activity
import android.app.Notification
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.content.pm.PackageM... | 0 | Kotlin | 0 | 0 | 1cd5c774d238c81b27fcbab7fd7619ab53eb15f4 | 5,255 | H264Demo | Apache License 2.0 |
app/src/main/java/com/revolgenx/anilib/ui/presenter/media/MediaCharacterPresenter.kt | rev0lgenX | 244,410,204 | false | null | package com.revolgenx.anilib.ui.presenter.media
import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.viewbinding.ViewBinding
import com.otaliastudios.elements.Element
import com.otaliastudios.elements.Page
import com.revolgenx.anilib.R
import com.revolgenx.ani... | 3 | Kotlin | 1 | 24 | 355d2b5510682d869f18e0113453237af8a1f1cc | 3,588 | AniLib | Apache License 2.0 |
app/src/main/java/com/annas/playground/data/repository/city/CityRepository.kt | annasta13 | 826,067,757 | false | {"Kotlin": 230187} | package com.annas.playground.data.repository.city
interface CityRepository {
suspend fun getCity(): List<String>
}
| 0 | Kotlin | 0 | 1 | a8fa4467421d9c40ff9945c07b60f3108120cd9b | 120 | playground | Apache License 2.0 |
server/src/main/kotlin/org/kryptonmc/krypton/util/crypto/SignatureUpdater.kt | KryptonMC | 255,582,002 | false | null | /*
* This file is part of the Krypton project, licensed under the Apache License v2.0
*
* Copyright (C) 2021-2023 KryptonMC and the contributors of the Krypton 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 ... | 27 | Kotlin | 11 | 233 | a9eff5463328f34072cdaf37aae3e77b14fcac93 | 919 | Krypton | Apache License 2.0 |
app/src/main/java/com/gerardbradshaw/fairday/retrofit/OneCallWeatherFile.kt | GerardBradshaw | 313,461,379 | false | {"Gradle": 5, "Shell": 1, "Text": 5, "Ignore List": 4, "Batchfile": 1, "Markdown": 1, "INI": 2, "Proguard": 3, "XML": 67, "Kotlin": 62, "Java Properties": 1, "Java": 2} | package com.gerardbradshaw.fairday.retrofit
import com.google.gson.annotations.SerializedName
class OneCallWeatherFile {
var lat: Float? = null
var lon: Float? = null
var timezone: String? = null
@SerializedName("timezone_offset") var timezoneOffset: Long? = null
var current: Current? = null
@SerializedN... | 0 | Kotlin | 1 | 3 | b4dbbd87b01040e5086a5df674aac382f889a647 | 3,714 | FairDay | Apache License 2.0 |
samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/viewmodel/ViewInfo.kt | JetBrains | 440,164,967 | false | {"Kotlin": 1567144, "Java": 22778, "Shell": 361} | package org.jetbrains.jewel.samples.standalone.viewmodel
import androidx.compose.runtime.Composable
import org.jetbrains.jewel.ui.icon.IconKey
data class ViewInfo(
val title: String,
val iconKey: IconKey,
val content: @Composable () -> Unit,
)
| 81 | Kotlin | 34 | 659 | dca6945b4014fe931b4a10504293531996672909 | 258 | jewel | Apache License 2.0 |
Employee/src/main/kotlin/rs/rbt/internship/employee/controller/EmployeeController.kt | nemanjaandjelkovic | 580,776,849 | false | null | package rs.rbt.internship.employee.controller
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.security.core.context.SecurityContextHolder
import org.springframework.web.bind.annotation.*
import rs.rbt.internship.database.model.UsedVacation
import rs.rbt.internship.employee.serv... | 1 | Kotlin | 0 | 0 | c3c7a69c3e7a7e64f564f53e149a90eba35894bf | 1,529 | rbt-intership-project | Apache License 2.0 |
src/main/kotlin/com/rhseung/wiw/WhatIWantClient.kt | minecraft-stuffs | 843,806,058 | false | {"Kotlin": 15052, "Java": 1477} | package com.rhseung.wiw
import com.google.common.math.IntMath.pow
import com.rhseung.wiw.init.ModItems
import com.rhseung.wiw.item.ModularToolItem
import com.rhseung.wiw.util.Color
import net.fabricmc.api.ClientModInitializer
import net.fabricmc.api.EnvType
import net.fabricmc.api.Environment
import net.fabricmc.fabri... | 0 | Kotlin | 0 | 0 | 4ed7d6f6168974338fe95261179e6159b2732183 | 839 | particle-tint-1.21.1 | Creative Commons Zero v1.0 Universal |
app/src/main/java/com/example/sims/LoginActivity.kt | rykieldc | 854,313,740 | false | {"Kotlin": 49736} | package com.example.sims
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.widget.Button
import android.widget.EditText
import android.widget.TextView
import android.widget.Toast
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import ... | 1 | Kotlin | 0 | 0 | 76d8a7aaabbab1e7689b0ba9295aa1f878193165 | 3,184 | cc17-3k-uti | Apache License 2.0 |
src/main/kotlin/me/argraur/railgun/command/impls/admin/Prefix.kt | argraur | 262,636,637 | false | null | /*
* Copyright (C) 2020 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 | Kotlin | 1 | 1 | 14444288a62b9ddca903d49af633ebd373c131c0 | 1,862 | RailgunKT | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.