hexsha stringlengths 40 40 | size int64 5 1.05M | ext stringclasses 98
values | lang stringclasses 21
values | max_stars_repo_path stringlengths 3 945 | max_stars_repo_name stringlengths 4 118 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 368k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 945 | max_issues_repo_name stringlengths 4 118 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 134k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 945 | max_forks_repo_name stringlengths 4 135 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 5 1.05M | avg_line_length float64 1 1.03M | max_line_length int64 2 1.03M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
12e2ad4fc6525e0a31ce4b9546d519cb7efc7a48 | 2,551 | kt | Kotlin | koma-core-api/common/src/koma/internal/default/generated/matrix/DefaultIntMatrixFactory.kt | drmoose/koma | 765dfb206cada4b682a94e140a40ba6c6e95667b | [
"Apache-2.0"
] | 233 | 2017-05-03T16:54:08.000Z | 2021-12-04T03:20:04.000Z | koma-core-api/common/src/koma/internal/default/generated/matrix/DefaultIntMatrixFactory.kt | drmoose/koma | 765dfb206cada4b682a94e140a40ba6c6e95667b | [
"Apache-2.0"
] | 70 | 2017-05-07T20:07:37.000Z | 2021-08-11T20:33:13.000Z | koma-core-api/common/src/koma/internal/default/generated/matrix/DefaultIntMatrixFactory.kt | drmoose/koma | 765dfb206cada4b682a94e140a40ba6c6e95667b | [
"Apache-2.0"
] | 31 | 2017-05-18T09:04:56.000Z | 2021-05-07T22:40:26.000Z | /**
* THIS FILE IS AUTOGENERATED, DO NOT MODIFY. EDIT THE FILES IN templates/
* AND RUN ./gradlew :codegen INSTEAD!
*/
package koma.internal.default.generated.matrix
import koma.*
import koma.matrix.*
import koma.extensions.*
import koma.internal.notImplemented
import koma.internal.getRng
import koma.internal.sync... | 29.321839 | 86 | 0.596629 |
16b2dc7a9c949e5854dafdae45d687b2d70ae681 | 118 | kt | Kotlin | src/main/kotlin/io/github/gciatto/kt/node/FileLineTransformer.kt | gciatto/kt-npm-publish | 2db056208571d9b547dcdd223ceec812f81504c3 | [
"Apache-2.0"
] | 12 | 2020-11-09T17:38:25.000Z | 2021-06-19T10:29:06.000Z | src/main/kotlin/io/github/gciatto/kt/node/FileLineTransformer.kt | gciatto/kt-npm-publish | 2db056208571d9b547dcdd223ceec812f81504c3 | [
"Apache-2.0"
] | 2 | 2021-06-08T12:09:01.000Z | 2021-07-14T12:29:46.000Z | src/main/kotlin/io/github/gciatto/kt/node/FileLineTransformer.kt | gciatto/kt-npm-publish | 2db056208571d9b547dcdd223ceec812f81504c3 | [
"Apache-2.0"
] | 1 | 2021-05-17T23:54:54.000Z | 2021-05-17T23:54:54.000Z | package io.github.gciatto.kt.node
import java.io.File
typealias FileLineTransformer = (File, Int, String) -> String
| 19.666667 | 61 | 0.771186 |
797dc90b9ce78cbf86a3aa4526fae41bd6bfc77b | 2,145 | swift | Swift | Sources/ISO/DecoderConfigDescriptor.swift | Jaumo/HaishinKit.swift | f9257e686773dbb4621a3860a6f50bcad098a378 | [
"BSD-3-Clause"
] | 1,672 | 2017-07-26T18:16:54.000Z | 2022-03-29T09:28:58.000Z | Sources/ISO/DecoderConfigDescriptor.swift | Jaumo/HaishinKit.swift | f9257e686773dbb4621a3860a6f50bcad098a378 | [
"BSD-3-Clause"
] | 614 | 2017-07-29T10:40:28.000Z | 2022-03-31T12:47:25.000Z | Sources/ISO/DecoderConfigDescriptor.swift | Jaumo/HaishinKit.swift | f9257e686773dbb4621a3860a6f50bcad098a378 | [
"BSD-3-Clause"
] | 459 | 2017-07-31T09:27:17.000Z | 2022-03-14T08:16:18.000Z | import Foundation
struct DecoderConfigDescriptor: BaseDescriptor {
static let tag: UInt8 = 0x04
// MARK: BaseDescriptor
let tag: UInt8 = Self.tag
var size: UInt32 = 0
// MARK: DecoderConfigDescriptor
var objectTypeIndication: UInt8 = 0
var streamType: UInt8 = 0
var upStream = false
... | 36.982759 | 104 | 0.58042 |
5366fb3e58903b60b805be1e09fdead94867a6b5 | 1,919 | swift | Swift | chapter-3-4 UINavigationCOntroller 2/demoApp/demoApp/SecondSubViewController.swift | grehujt/learningSwift | 1271d39d22ad7fe4e46fe998176c13efcf629d3a | [
"MIT"
] | null | null | null | chapter-3-4 UINavigationCOntroller 2/demoApp/demoApp/SecondSubViewController.swift | grehujt/learningSwift | 1271d39d22ad7fe4e46fe998176c13efcf629d3a | [
"MIT"
] | null | null | null | chapter-3-4 UINavigationCOntroller 2/demoApp/demoApp/SecondSubViewController.swift | grehujt/learningSwift | 1271d39d22ad7fe4e46fe998176c13efcf629d3a | [
"MIT"
] | null | null | null | //
// SecondSubViewController.swift
// demoApp
//
// Created by kris on 8/5/16.
// Copyright © 2016 kris. All rights reserved.
//
import UIKit
class SecondSubViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view... | 33.086207 | 127 | 0.681605 |
1819c58d6343affd74a6f19963c3101fc675ebf7 | 4,286 | css | CSS | styles/responsive.css | dev-gustavo-henrique/4elementos | 2c9edd41fb9f46eae58e53b215d0bca9cb511734 | [
"MIT"
] | null | null | null | styles/responsive.css | dev-gustavo-henrique/4elementos | 2c9edd41fb9f46eae58e53b215d0bca9cb511734 | [
"MIT"
] | null | null | null | styles/responsive.css | dev-gustavo-henrique/4elementos | 2c9edd41fb9f46eae58e53b215d0bca9cb511734 | [
"MIT"
] | null | null | null | /*
======================
*Media Queries*
======================
*/
@media only screen and (max-width: 320px) {
.results {
padding: 0;
min-width: 94vw;
}
.results > div{
min-width: 100%;
}
.resultsDiv > div {
padding-right: 0!important;
}
}
@media only scr... | 15.642336 | 153 | 0.484368 |
0721a17278dc77691d70c97a54fae534be5e631e | 1,373 | kts | Kotlin | coroutine-tracing-api-core/build.gradle.kts | Shinigami072/OpenTracing-Kotlin-Coroutine-Integration | 3f4453d7612a6bbe87aa440306d1751a131dd4b4 | [
"MIT"
] | 13 | 2020-01-22T19:16:33.000Z | 2021-09-23T20:13:14.000Z | coroutine-tracing-api-core/build.gradle.kts | Shinigami072/OpenTracing-Kotlin-Coroutine-Integration | 3f4453d7612a6bbe87aa440306d1751a131dd4b4 | [
"MIT"
] | 2 | 2020-01-11T00:46:42.000Z | 2020-05-01T20:45:57.000Z | coroutine-tracing-api-core/build.gradle.kts | Shinigami072/OpenTracing-Kotlin-Coroutine-Integration | 3f4453d7612a6bbe87aa440306d1751a131dd4b4 | [
"MIT"
] | 3 | 2020-03-25T20:03:58.000Z | 2021-09-22T12:38:55.000Z | val coroutines_version: String by project
val opentracing_version: String by project
val slf4j_version: String by project
val kotlin_logging_version: String by project
val junit_version: String by project
val logback_version: String by project
plugins {
kotlin("jvm")
}
dependencies {
implementation(kotlin("s... | 35.205128 | 91 | 0.761107 |
e8fc72a77fdd416f9afae8ddad6132491cc5fabf | 4,405 | py | Python | c4/system/history.py | Brewgarten/c4-system-manager | 6fdec33ced4b1cb32d82a24cd168447a899b7e10 | [
"MIT"
] | null | null | null | c4/system/history.py | Brewgarten/c4-system-manager | 6fdec33ced4b1cb32d82a24cd168447a899b7e10 | [
"MIT"
] | 1 | 2017-10-17T21:51:40.000Z | 2017-10-17T21:51:40.000Z | c4/system/history.py | Brewgarten/c4-system-manager | 6fdec33ced4b1cb32d82a24cd168447a899b7e10 | [
"MIT"
] | null | null | null | """
Copyright (c) IBM 2015-2017. All Rights Reserved.
Project name: c4-system-manager
This project is licensed under the MIT License, see LICENSE
"""
from abc import ABCMeta, abstractmethod
class DeviceHistory(object):
"""
Device manager history
"""
__metaclass__ = ABCMeta
@abstractmethod
def... | 26.065089 | 90 | 0.595687 |
2f78ce8101bd3b75a09df07ed5a25532b5cbbb44 | 879 | php | PHP | src/Facades/Menu.php | isakzhanov-r/laravel-menus | 82d32703f8c89240f2af6c17af87f109f31014f5 | [
"MIT"
] | null | null | null | src/Facades/Menu.php | isakzhanov-r/laravel-menus | 82d32703f8c89240f2af6c17af87f109f31014f5 | [
"MIT"
] | null | null | null | src/Facades/Menu.php | isakzhanov-r/laravel-menus | 82d32703f8c89240f2af6c17af87f109f31014f5 | [
"MIT"
] | null | null | null | <?php
namespace IsakzhanovR\Menus\Facades;
use Closure;
use Illuminate\Support\Facades\Facade;
use IsakzhanovR\Menus\Support\Item;
use IsakzhanovR\Menus\Support\Menu as MenuSupport;
/**
* @method static MenuSupport make(string $name, Closure $callback = null)
* @method static MenuSupport generate($name, $items, Cl... | 31.392857 | 98 | 0.712173 |
6cb69be429b5c9898b2be110a2d0ef40a009570d | 447 | asm | Assembly | libsrc/graphics/retrofit/drawr_callee.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/graphics/retrofit/drawr_callee.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/graphics/retrofit/drawr_callee.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z | ;
; Z88 Graphics Functions - Small C+ stubs
;
; Written around the Interlogic Standard Library
;
;
; $Id: drawr_callee.asm $
;
;
; CALLER LINKAGE FOR FUNCTION POINTERS
; ----- void drawr(int x2, int y2)
SECTION code_graphics
PUBLIC drawr_callee
PUBLIC _drawr_callee
EXTERN drawr
.drawr_cal... | 12.416667 | 54 | 0.675615 |
39cf883609b1ad7b05b949f709850e1d3bdf2a96 | 230 | js | JavaScript | components/global/card.js | First-Inu/FINUv2_frontend | c63a57b0dd8229bba277806cdfb42728313669b4 | [
"MIT"
] | null | null | null | components/global/card.js | First-Inu/FINUv2_frontend | c63a57b0dd8229bba277806cdfb42728313669b4 | [
"MIT"
] | 12 | 2022-03-07T11:25:56.000Z | 2022-03-31T11:23:44.000Z | components/global/card.js | First-Inu/FINUv2_frontend | c63a57b0dd8229bba277806cdfb42728313669b4 | [
"MIT"
] | null | null | null | export default function Card(props) {
const classes = props.className ? props.className : ''
return (
<div className={"p-5 rounded-lg border-2 m-1 mb-6 card-boxshadow " + classes}>
{props.children}
</div>
);
}
| 25.555556 | 82 | 0.63913 |
fb10f079f1a61c01a2d7bf1c23c5507072c05d45 | 1,860 | go | Go | test/normal/fmapjoin_test.go | josephbuchma/goderive | 2ec743906baa9dc47346a25e57cbbe4da399921e | [
"Apache-2.0"
] | 1,024 | 2017-02-16T02:26:46.000Z | 2022-03-29T19:10:18.000Z | test/normal/fmapjoin_test.go | josephbuchma/goderive | 2ec743906baa9dc47346a25e57cbbe4da399921e | [
"Apache-2.0"
] | 68 | 2017-02-12T17:02:49.000Z | 2022-01-07T08:19:03.000Z | test/normal/fmapjoin_test.go | josephbuchma/goderive | 2ec743906baa9dc47346a25e57cbbe4da399921e | [
"Apache-2.0"
] | 52 | 2017-08-24T09:58:10.000Z | 2022-03-10T06:26:23.000Z | // Copyright 2017 Walter Schulze
//
// 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... | 22.962963 | 76 | 0.629032 |
eac3407b433af2a409236f0838e4520e445fa80c | 656 | kt | Kotlin | HTTPShortcuts/app/src/main/kotlin/ch/rmy/android/http_shortcuts/extensions/JsonExtensions.kt | yalab/HTTP-Shortcuts | b111a781b14ac0598da68671181607e7cf0d4e84 | [
"MIT"
] | null | null | null | HTTPShortcuts/app/src/main/kotlin/ch/rmy/android/http_shortcuts/extensions/JsonExtensions.kt | yalab/HTTP-Shortcuts | b111a781b14ac0598da68671181607e7cf0d4e84 | [
"MIT"
] | null | null | null | HTTPShortcuts/app/src/main/kotlin/ch/rmy/android/http_shortcuts/extensions/JsonExtensions.kt | yalab/HTTP-Shortcuts | b111a781b14ac0598da68671181607e7cf0d4e84 | [
"MIT"
] | null | null | null | package ch.rmy.android.http_shortcuts.extensions
import org.json.JSONArray
import org.json.JSONException
import org.json.JSONObject
fun JSONArray.toListOfStrings(): List<String> =
mutableListOf<String>().also { list ->
for (i in 0..length()) {
try {
list.add(getString(i))
... | 25.230769 | 51 | 0.547256 |
819a1e5a9a357cb6db0378f73b1cb134eac0225f | 312 | kt | Kotlin | app/src/main/java/com/vn/ntesco/model/Response/DetailPostResponse.kt | hoaphanit/ntesco.android.github | bf0a47a50eeb3d7113586417e07e7729fc1bb521 | [
"Apache-2.0"
] | null | null | null | app/src/main/java/com/vn/ntesco/model/Response/DetailPostResponse.kt | hoaphanit/ntesco.android.github | bf0a47a50eeb3d7113586417e07e7729fc1bb521 | [
"Apache-2.0"
] | null | null | null | app/src/main/java/com/vn/ntesco/model/Response/DetailPostResponse.kt | hoaphanit/ntesco.android.github | bf0a47a50eeb3d7113586417e07e7729fc1bb521 | [
"Apache-2.0"
] | null | null | null | package com.vn.ntesco.model.Response
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
import com.vn.ntesco.model.AboutUs
import com.vn.ntesco.model.Post
class DetailPostResponse : NTescoResponse(){
@SerializedName("data")
@Expose
var data : Post? = null
} | 26 | 49 | 0.775641 |
d46923569569e38b2e35800f9dfd5afc8e667b9a | 127 | rs | Rust | src/error.rs | jkcclemens/rust-cat | 89f227ed9aeb0719973aba829b35dbbe2ed6ae09 | [
"MIT"
] | null | null | null | src/error.rs | jkcclemens/rust-cat | 89f227ed9aeb0719973aba829b35dbbe2ed6ae09 | [
"MIT"
] | null | null | null | src/error.rs | jkcclemens/rust-cat | 89f227ed9aeb0719973aba829b35dbbe2ed6ae09 | [
"MIT"
] | null | null | null | use std::io;
#[derive(Debug, Fail)]
pub enum CatError {
#[fail(display = "An IO error occurred: {}", _0)]
Io(io::Error)
}
| 15.875 | 51 | 0.606299 |
b3058829e7afabe50f9a6d43527446275dcd1d29 | 825 | rb | Ruby | deploy/vagrant/core/config_openstack.rb | weiranyiran/alluxio | e9d242659df65e29cb20567a6e72343376c2bf88 | [
"Apache-2.0"
] | 7 | 2015-07-22T07:03:20.000Z | 2018-08-19T11:42:11.000Z | deploy/vagrant/core/config_openstack.rb | weiranyiran/alluxio | e9d242659df65e29cb20567a6e72343376c2bf88 | [
"Apache-2.0"
] | 7 | 2020-01-31T18:17:36.000Z | 2021-12-09T20:30:27.000Z | deploy/vagrant/core/config_openstack.rb | weiranyiran/alluxio | e9d242659df65e29cb20567a6e72343376c2bf88 | [
"Apache-2.0"
] | 11 | 2015-02-20T11:35:35.000Z | 2018-08-19T11:42:14.000Z | # -*- mode: ruby -*-
# vi: set ft=ruby :
# OpenStack specific configurations go here
def config_os(config, i, total, name)
config.vm.box = "dummy"
config.vm.box_url =
"https://github.com/cloudbau/vagrant-openstack-plugin/raw/master/dummy.box"
# Make sure the private key from the key pair is provided
conf... | 28.448276 | 79 | 0.667879 |
6bbb925febeed31f8338682de606f264484e6511 | 1,412 | kt | Kotlin | MultiPlatformLibrary/src/commonMain/kotlin/me/randheer/covidstatsin/domain/model/DistrictUiModel.kt | randheercode/CovidStatsIn | fba8818238e45db108e846680ff0949f8e10dae7 | [
"Apache-2.0"
] | null | null | null | MultiPlatformLibrary/src/commonMain/kotlin/me/randheer/covidstatsin/domain/model/DistrictUiModel.kt | randheercode/CovidStatsIn | fba8818238e45db108e846680ff0949f8e10dae7 | [
"Apache-2.0"
] | null | null | null | MultiPlatformLibrary/src/commonMain/kotlin/me/randheer/covidstatsin/domain/model/DistrictUiModel.kt | randheercode/CovidStatsIn | fba8818238e45db108e846680ff0949f8e10dae7 | [
"Apache-2.0"
] | null | null | null | package me.randheer.covidstatsin.domain.model
import kotlinx.serialization.Serializable
import me.randheer.covidstatsin.db.CovidDistrictStats
import me.randheer.covidstatsin.domain.abstraction.Mapper
import me.randheer.covidstatsin.utils.toDisplayFormat
@Serializable
class DistrictUiModel(
val stateCode: String,
... | 34.439024 | 75 | 0.709632 |
2a44aacc3fcdd3c878caded329fa9082d95d4143 | 7,453 | java | Java | src/de.hpi.swa.trufflesqueak/src/de/hpi/swa/trufflesqueak/model/WeakVariablePointersObject.java | LinqLover/trufflesqueak | 1a49ae5b8ddd69079164508baca4c474ef405cde | [
"MIT"
] | null | null | null | src/de.hpi.swa.trufflesqueak/src/de/hpi/swa/trufflesqueak/model/WeakVariablePointersObject.java | LinqLover/trufflesqueak | 1a49ae5b8ddd69079164508baca4c474ef405cde | [
"MIT"
] | null | null | null | src/de.hpi.swa.trufflesqueak/src/de/hpi/swa/trufflesqueak/model/WeakVariablePointersObject.java | LinqLover/trufflesqueak | 1a49ae5b8ddd69079164508baca4c474ef405cde | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2017-2020 Software Architecture Group, Hasso Plattner Institute
*
* Licensed under the MIT License.
*/
package de.hpi.swa.trufflesqueak.model;
import java.lang.ref.ReferenceQueue;
import java.lang.ref.WeakReference;
import java.util.Arrays;
import com.oracle.truffle.api.CompilerAsserts;
import ... | 38.417526 | 176 | 0.664565 |
b764bc64b123f14b283dadf9879e424f4def10a8 | 681 | kt | Kotlin | app/src/main/java/ru/bilchuk/dictionary/presentation/gallery/ImageViewHolder.kt | Art-bond/DictionaryContentProvider | 0395850a91941616cf50752242c924f1826e739f | [
"Apache-2.0"
] | null | null | null | app/src/main/java/ru/bilchuk/dictionary/presentation/gallery/ImageViewHolder.kt | Art-bond/DictionaryContentProvider | 0395850a91941616cf50752242c924f1826e739f | [
"Apache-2.0"
] | null | null | null | app/src/main/java/ru/bilchuk/dictionary/presentation/gallery/ImageViewHolder.kt | Art-bond/DictionaryContentProvider | 0395850a91941616cf50752242c924f1826e739f | [
"Apache-2.0"
] | null | null | null | package ru.bilchuk.dictionary.presentation.gallery
import android.view.View
import android.widget.ImageView
import androidx.recyclerview.widget.RecyclerView
import ru.bilchuk.dictionary.R
import ru.bilchuk.dictionary.data.models.MediaStoreImage
/**
* Basic [RecyclerView.ViewHolder] for our gallery.
*/
class ImageVi... | 29.608696 | 85 | 0.729809 |
578506fc9e9ee4eccce23110dd01405568267a39 | 2,158 | h | C | heron/tmaster/src/cpp/manager/tcontroller.h | takeratta/heron | 7b7c38594186f009741c62d379364b9b45d82b61 | [
"Apache-2.0"
] | 1 | 2021-06-29T07:00:10.000Z | 2021-06-29T07:00:10.000Z | heron/tmaster/src/cpp/manager/tcontroller.h | kalimfaria/heron | d59bd016b826006e2af22c7a6452342f5e7d637c | [
"Apache-2.0"
] | null | null | null | heron/tmaster/src/cpp/manager/tcontroller.h | kalimfaria/heron | d59bd016b826006e2af22c7a6452342f5e7d637c | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2015 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 32.208955 | 92 | 0.752549 |
f55fdd9a966d65456d57390d01b1f94ee4ff78bd | 305 | css | CSS | privacy/index.css | NeconixDotCom/TimeTracker | e24eb5dd21ee65b8f5f58bc119cf4cb82c88a52c | [
"MIT"
] | null | null | null | privacy/index.css | NeconixDotCom/TimeTracker | e24eb5dd21ee65b8f5f58bc119cf4cb82c88a52c | [
"MIT"
] | null | null | null | privacy/index.css | NeconixDotCom/TimeTracker | e24eb5dd21ee65b8f5f58bc119cf4cb82c88a52c | [
"MIT"
] | null | null | null | * {
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
line-height: 1.6em;
}
body {
background-color: silver;
}
.main-container {
background-color: white;
margin: 0 auto;
max-width: 600px;
padding: 1em 2em 2em 2em;
}
h3 {
color: dodgerblue;
} | 16.052632 | 103 | 0.67541 |
e7ea5fbf2a5ea893fa5d02bc075a60e6e8983358 | 4,580 | py | Python | app/request.py | angelakarenzi5/News-Highlight | 3eae6f743f9e5d9eb4ea80b29ae0e2c57dd0aa62 | [
"Unlicense"
] | null | null | null | app/request.py | angelakarenzi5/News-Highlight | 3eae6f743f9e5d9eb4ea80b29ae0e2c57dd0aa62 | [
"Unlicense"
] | null | null | null | app/request.py | angelakarenzi5/News-Highlight | 3eae6f743f9e5d9eb4ea80b29ae0e2c57dd0aa62 | [
"Unlicense"
] | null | null | null | from app import app
import urllib.request,json
from .models import source
from .models import article
Source = source.Source
Article = article.Article
# Getting api key
api_key = app.config['NEWS_API_KEY']
# Getting the source base url
base_url = app.config["SOURCE_API_BASE_URL"]
article_url = app.config["ARTICLE_A... | 31.156463 | 98 | 0.691921 |
e5dab46a9cc4b08cff3119f9a3046320b2ebf389 | 172 | sql | SQL | Backend/migrations/0016.addTable-userGenreMeta.sql | PvanTurennout/IPSENH | 13186221c027090404ed7d69ad08afbfcbc0782f | [
"MIT"
] | null | null | null | Backend/migrations/0016.addTable-userGenreMeta.sql | PvanTurennout/IPSENH | 13186221c027090404ed7d69ad08afbfcbc0782f | [
"MIT"
] | null | null | null | Backend/migrations/0016.addTable-userGenreMeta.sql | PvanTurennout/IPSENH | 13186221c027090404ed7d69ad08afbfcbc0782f | [
"MIT"
] | null | null | null | CREATE TABLE IF NOT EXISTS user_genre_meta (
user INT,
genre VARCHAR(50),
amount_played INT,
PRIMARY KEY (user, genre),
FOREIGN KEY (user) REFERENCES Users(userId)
);
| 21.5 | 44 | 0.744186 |
1648aec156b1345ca3530540c9bafdd7df97ef65 | 25,937 | h | C | Backends/Graphics5/Direct3D12/Sources/kinc/backend/graphics5/commandlist.c.h | foundry2D/Kinc | 890baf38d0be53444ebfdeac8662479b23d169ea | [
"Zlib"
] | 150 | 2017-01-18T17:13:00.000Z | 2019-05-29T02:44:18.000Z | Backends/Graphics5/Direct3D12/Sources/kinc/backend/graphics5/commandlist.c.h | foundry2D/Kinc | 890baf38d0be53444ebfdeac8662479b23d169ea | [
"Zlib"
] | 116 | 2017-01-04T09:02:18.000Z | 2019-05-29T11:10:30.000Z | Backends/Graphics5/Direct3D12/Sources/kinc/backend/graphics5/commandlist.c.h | foundry2D/Kinc | 890baf38d0be53444ebfdeac8662479b23d169ea | [
"Zlib"
] | 143 | 2017-01-24T16:26:15.000Z | 2019-05-29T14:07:33.000Z | #include <kinc/graphics5/commandlist.h>
#include <kinc/graphics5/constantbuffer.h>
#include <kinc/graphics5/indexbuffer.h>
#include <kinc/graphics5/pipeline.h>
#include <kinc/graphics5/vertexbuffer.h>
#include <kinc/window.h>
extern ID3D12CommandQueue *commandQueue;
extern kinc_g5_texture_t *currentTextures[textureCou... | 47.158182 | 157 | 0.795967 |
3b2ca582eac62c04b4c8610ce4e62f718189eec2 | 569 | c | C | examples/10_dokonale_cislo.c | Wanzaz/test_2 | 41ee70b16ecbbe0d4fb22e3b873cd8848f6c98ad | [
"MIT"
] | null | null | null | examples/10_dokonale_cislo.c | Wanzaz/test_2 | 41ee70b16ecbbe0d4fb22e3b873cd8848f6c98ad | [
"MIT"
] | null | null | null | examples/10_dokonale_cislo.c | Wanzaz/test_2 | 41ee70b16ecbbe0d4fb22e3b873cd8848f6c98ad | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
/*10. Je celé číslo n dokonalé? U dokonalého čísla platí, že se rovná součtu svých dělitelů. Např. 6 = 1 + 2 + 3*/
int dokonale(int n)
{
int i, s=0;
for(i=1; i<= n/2; i++)
{
if(n%i==0)
s = s + i;
}
if(s==n) //return (s==n);
return... | 16.257143 | 114 | 0.492091 |
2a10cb28ad7b153f89d1c5f2bf3f69641c519dcd | 1,282 | java | Java | grandroid-core/src/main/java/com/grasea/grandroid/adapter/RecyclerItemConfig.java | Grasea/Grandroid2 | 662c3e9ca379b6bb7bd58496fd1fa49faa0181c0 | [
"Apache-2.0"
] | 4 | 2016-07-13T14:46:33.000Z | 2019-05-22T09:16:38.000Z | grandroid-core/src/main/java/com/grasea/grandroid/adapter/RecyclerItemConfig.java | Grasea/Grandroid2 | 662c3e9ca379b6bb7bd58496fd1fa49faa0181c0 | [
"Apache-2.0"
] | null | null | null | grandroid-core/src/main/java/com/grasea/grandroid/adapter/RecyclerItemConfig.java | Grasea/Grandroid2 | 662c3e9ca379b6bb7bd58496fd1fa49faa0181c0 | [
"Apache-2.0"
] | 2 | 2019-05-22T09:16:41.000Z | 2021-06-28T16:15:30.000Z | package com.grasea.grandroid.adapter;
/**
* Copyright (C) 2016 Alan Ding
* <p/>
* 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
* <p/>
* http://www.apache.org/licenses/LICENSE-2.0
* <p/... | 33.736842 | 86 | 0.706708 |
d6793b0aba6b72a767653a242e63abb361e32347 | 3,041 | swift | Swift | LineSDK/LineSDK/Networking/Images/ImageManager.swift | dodiwahyu/line-sdk-ios-swift | d9bc605d9f1c14465eb56aadc1f5c3d4cdc2b7e4 | [
"Apache-2.0"
] | 739 | 2018-11-20T06:19:45.000Z | 2022-03-28T10:53:21.000Z | LineSDK/LineSDK/Networking/Images/ImageManager.swift | dodiwahyu/line-sdk-ios-swift | d9bc605d9f1c14465eb56aadc1f5c3d4cdc2b7e4 | [
"Apache-2.0"
] | 89 | 2018-11-20T08:50:26.000Z | 2022-02-24T03:06:31.000Z | LineSDK/LineSDK/Networking/Images/ImageManager.swift | dodiwahyu/line-sdk-ios-swift | d9bc605d9f1c14465eb56aadc1f5c3d4cdc2b7e4 | [
"Apache-2.0"
] | 89 | 2018-11-20T07:03:29.000Z | 2022-03-04T10:17:07.000Z | //
// ImageManager.swift
//
// Copyright (c) 2016-present, LINE Corporation. All rights reserved.
//
// You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
// copy and distribute this software in source code or binary form for use
// in connection with the web services and APIs provided... | 32.698925 | 102 | 0.644854 |
16c5ad86cd82ede7749039f69f9eab6aa6ad6753 | 1,381 | kt | Kotlin | stopwatch-core/src/main/java/com/danielbostwick/stopwatch/core/service/DefaultStopwatchService.kt | bostwick/android-stopwatch | 94735805b22592f077a40b5578d661983a57b42a | [
"BSD-3-Clause"
] | 29 | 2015-02-25T23:04:31.000Z | 2021-02-17T11:28:06.000Z | stopwatch-core/src/main/java/com/danielbostwick/stopwatch/core/service/DefaultStopwatchService.kt | bostwick/android-stopwatch | 94735805b22592f077a40b5578d661983a57b42a | [
"BSD-3-Clause"
] | 4 | 2016-04-28T18:25:07.000Z | 2018-02-15T08:44:15.000Z | stopwatch-core/src/main/java/com/danielbostwick/stopwatch/core/service/DefaultStopwatchService.kt | bostwick/android-stopwatch | 94735805b22592f077a40b5578d661983a57b42a | [
"BSD-3-Clause"
] | 21 | 2015-02-25T23:04:28.000Z | 2021-12-15T05:51:26.000Z | package com.danielbostwick.stopwatch.core.service
import com.danielbostwick.stopwatch.core.model.Stopwatch
import com.danielbostwick.stopwatch.core.model.StopwatchState.PAUSED
import com.danielbostwick.stopwatch.core.model.StopwatchState.STARTED
import org.joda.time.DateTime
import org.joda.time.Duration
import org.jo... | 39.457143 | 102 | 0.738595 |
77dc628b667e03b20e1edf93e26555d7ef12180a | 348 | lua | Lua | repositories/redis/luaScripts/increment.lua | EthanAmador/redis-luaScript | 9aa3a5336fd68e5aaf7d54d7ad7e208458ddfcab | [
"MIT"
] | null | null | null | repositories/redis/luaScripts/increment.lua | EthanAmador/redis-luaScript | 9aa3a5336fd68e5aaf7d54d7ad7e208458ddfcab | [
"MIT"
] | null | null | null | repositories/redis/luaScripts/increment.lua | EthanAmador/redis-luaScript | 9aa3a5336fd68e5aaf7d54d7ad7e208458ddfcab | [
"MIT"
] | null | null | null | local function createIfNotExists(keyName)
if redis.call('EXISTS',keyName) == 0 then
redis.call('SET',keyName,0)
end
end
local keyName = KEYS[1]
local increment = ARGV[1]
createIfNotExists(keyName)
local keyValue = redis.call('GET',keyName);
keyValue = keyValue + increment
redis.call('SET', keyNam... | 29 | 45 | 0.718391 |
5b175b219a0692a2df8cd6b1cedfce902d4856fd | 2,932 | c | C | src/pack.c | macton/shannon-fano | e82a26939f34180aff25f5676dd9cc6392b78367 | [
"BSD-3-Clause"
] | null | null | null | src/pack.c | macton/shannon-fano | e82a26939f34180aff25f5676dd9cc6392b78367 | [
"BSD-3-Clause"
] | null | null | null | src/pack.c | macton/shannon-fano | e82a26939f34180aff25f5676dd9cc6392b78367 | [
"BSD-3-Clause"
] | 1 | 2019-06-13T12:15:36.000Z | 2019-06-13T12:15:36.000Z | #include "main.h"
static ptab ptable[MAPSIZE];
static char codes[MAPSIZE][256];
void
pack(const char *input, const char *output)
{
#ifdef STAT
clock_t time1, time2;
time1 = clock();
#endif
int c, i, j;
FILE *infile = fopen(input, "r");
assert(infile);
int size = ptablebuild(infile, ptable);
encode(0, size -... | 16.947977 | 85 | 0.536835 |
86a289bcf9ce1febf6414ad4df0e8eaf8b9c59a9 | 1,985 | rs | Rust | rust-hdl-pcb/src/kemet_ceramic_caps.rs | edgex004/rust-hdl | 91e27f63a96137563c3e3aded06f7fc462d3ce8c | [
"MIT"
] | null | null | null | rust-hdl-pcb/src/kemet_ceramic_caps.rs | edgex004/rust-hdl | 91e27f63a96137563c3e3aded06f7fc462d3ce8c | [
"MIT"
] | null | null | null | rust-hdl-pcb/src/kemet_ceramic_caps.rs | edgex004/rust-hdl | 91e27f63a96137563c3e3aded06f7fc462d3ce8c | [
"MIT"
] | null | null | null | use rust_hdl_pcb_core::prelude::*;
fn map_part_number_to_size(part: &str) -> SizeCode {
(&part[1..=4]).parse().unwrap()
}
fn map_part_number_to_voltage(part: &str) -> f64 {
match &part[10..11] {
"9" => 6.3,
"8" => 10.0,
"4" => 16.0,
"3" => 25.0,
"6" => 35.0,
"5"... | 29.626866 | 88 | 0.598992 |
3ef74a45487ef684eda81fe738c3e8bee9e2a584 | 2,861 | h | C | src/ScoreTracker.h | syi47/spacebilliards | 39a0a55761917144920a0a5ac4ff145a83d69a55 | [
"Apache-2.0"
] | null | null | null | src/ScoreTracker.h | syi47/spacebilliards | 39a0a55761917144920a0a5ac4ff145a83d69a55 | [
"Apache-2.0"
] | null | null | null | src/ScoreTracker.h | syi47/spacebilliards | 39a0a55761917144920a0a5ac4ff145a83d69a55 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2009 Tatham Johnson
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... | 29.802083 | 107 | 0.692765 |
72ba66a1ffade0abd7d9777fb505ec5a703b5441 | 4,797 | lua | Lua | layout/stack.lua | ErikRoelofs/renderer | f0702d05752859a6d097f39e08ed97256e677f09 | [
"MIT"
] | 1 | 2016-09-26T18:49:36.000Z | 2016-09-26T18:49:36.000Z | layout/stack.lua | ErikRoelofs/looky | f0702d05752859a6d097f39e08ed97256e677f09 | [
"MIT"
] | null | null | null | layout/stack.lua | ErikRoelofs/looky | f0702d05752859a6d097f39e08ed97256e677f09 | [
"MIT"
] | null | null | null | local renderChildren = function(self)
self:renderBackground()
local locX, locY = self:startCoordsBasedOnGravity()
for k, v in ipairs(self.children) do
love.graphics.push()
love.graphics.translate( self.scaffold[v][1], self.scaffold[v][2])
v:render()
love.graphics.pop()
end
end
local fu... | 29.611111 | 111 | 0.631228 |
04108e947a54ae058a80cfc202a80959843732ca | 124,295 | js | JavaScript | tests/baked_texture_test/js/ThreeExtras.js | duhnnie/3-dreams-of-black | 15aded97f57a82e5a4c95c4e74bcd603b3fc6e1e | [
"Apache-2.0"
] | 475 | 2015-01-02T07:49:46.000Z | 2022-03-17T04:01:47.000Z | tests/baked_texture_test/js/ThreeExtras.js | duhnnie/3-dreams-of-black | 15aded97f57a82e5a4c95c4e74bcd603b3fc6e1e | [
"Apache-2.0"
] | 3 | 2015-03-06T10:51:03.000Z | 2019-09-10T19:39:39.000Z | tests/baked_texture_test/js/ThreeExtras.js | duhnnie/3-dreams-of-black | 15aded97f57a82e5a4c95c4e74bcd603b3fc6e1e | [
"Apache-2.0"
] | 130 | 2015-01-15T02:08:21.000Z | 2021-12-20T19:15:22.000Z | // ThreeExtras.js r32 - http://github.com/mrdoob/three.js
var THREE=THREE||{};THREE.Color=function(a){this.autoUpdate=true;this.setHex(a)};
THREE.Color.prototype={setRGB:function(a,b,d){this.r=a;this.g=b;this.b=d;if(this.autoUpdate){this.updateHex();this.updateStyleString()}},setHex:function(a){this.hex=~~a&16777215;... | 489.350394 | 2,961 | 0.73019 |
3e305e18caecf6a7d77748a6d0b65a68d42fa369 | 121 | h | C | src/Menu/ToggleOption.h | nightmareci/shiromino | ddcf6cc8659a3006b8960fa677d0392813d3e698 | [
"CC-BY-4.0",
"MIT"
] | 6 | 2020-02-10T12:42:59.000Z | 2020-08-17T21:04:25.000Z | src/Menu/ToggleOption.h | nightmareci/shiromino | ddcf6cc8659a3006b8960fa677d0392813d3e698 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | src/Menu/ToggleOption.h | nightmareci/shiromino | ddcf6cc8659a3006b8960fa677d0392813d3e698 | [
"CC-BY-4.0",
"MIT"
] | 7 | 2020-05-08T09:47:44.000Z | 2020-10-26T21:30:51.000Z | #pragma once
namespace Shiro {
struct ToggleOptionData {
bool *param;
std::string labels[2];
};
} | 17.285714 | 30 | 0.586777 |
867012d916288cd4069bdd77e804bf029e186e52 | 5,878 | rs | Rust | src/image.rs | daj-code/floki | aad9593e109dd837809cb3fd2178ce4729f2a61f | [
"MIT"
] | null | null | null | src/image.rs | daj-code/floki | aad9593e109dd837809cb3fd2178ce4729f2a61f | [
"MIT"
] | 5 | 2021-09-27T18:17:49.000Z | 2022-01-18T18:21:58.000Z | src/image.rs | daj-code/floki | aad9593e109dd837809cb3fd2178ce4729f2a61f | [
"MIT"
] | null | null | null | use failure::Error;
use quicli::prelude::*;
use std::fs;
use std::path::{Path, PathBuf};
use std::process::{Command, Stdio};
use yaml_rust::YamlLoader;
use crate::errors::{FlokiError, FlokiSubprocessExitStatus};
#[derive(Debug, PartialEq, Serialize, Deserialize)]
pub struct BuildSpec {
name: String,
#[serde(d... | 30.298969 | 132 | 0.484689 |
5f0e0b705c650888e6a1c7bb92439febdc1a9e91 | 192 | ts | TypeScript | implementations/typescript/tests/operator/less_than_or_equal_to_when_equal.spec.ts | JosephNaberhaus/agnostic | 241d33f7dea12a29e3c45d22b5c8570edc2b0412 | [
"MIT"
] | null | null | null | implementations/typescript/tests/operator/less_than_or_equal_to_when_equal.spec.ts | JosephNaberhaus/agnostic | 241d33f7dea12a29e3c45d22b5c8570edc2b0412 | [
"MIT"
] | null | null | null | implementations/typescript/tests/operator/less_than_or_equal_to_when_equal.spec.ts | JosephNaberhaus/agnostic | 241d33f7dea12a29e3c45d22b5c8570edc2b0412 | [
"MIT"
] | null | null | null | import { expect } from 'chai';
describe('TypeScript', () => {
describe('Operator', () => {
it('LessThanOrEqualToWhenEqual', () => {
expect(10 <= 10).to.be.true;
});
});
});
| 19.2 | 44 | 0.520833 |
d84ab6a9cad84a34ade5ed2caf191f382d7975f2 | 145 | sql | SQL | sql_and_node/movies-App/db/migrations/migration-07242017.sql | myfriendtania/PostgreSQL | 65e4f15b9c9f5a8a129ffa2a9190aa7b8324f488 | [
"PostgreSQL"
] | 1 | 2021-05-18T20:53:35.000Z | 2021-05-18T20:53:35.000Z | sql_and_node/movies-App/db/migrations/migration-07242017.sql | myfriendtania/PostgreSQL | 65e4f15b9c9f5a8a129ffa2a9190aa7b8324f488 | [
"PostgreSQL"
] | null | null | null | sql_and_node/movies-App/db/migrations/migration-07242017.sql | myfriendtania/PostgreSQL | 65e4f15b9c9f5a8a129ffa2a9190aa7b8324f488 | [
"PostgreSQL"
] | 1 | 2022-02-23T09:50:20.000Z | 2022-02-23T09:50:20.000Z | \c delorean_movies_dev
CREATE TABLE IF NOT EXISTS movies (
id SERIAL PRIMARY KEY,
title VARCHAR(255),
year BIGINT,
genre VARCHAR(255)
); | 18.125 | 35 | 0.731034 |
86ba5194b078a22319981b37fe1902b2584fae13 | 49 | rs | Rust | build/classes/visao/jasperreports-6.15.0/src/net/sf/jasperreports/compilers/GroovyClassFilter.rs | EuKaique/Projeto-Diagnostico-Medico | cf7cc535ff31992b7568dba777c8faafafa6920c | [
"MIT"
] | null | null | null | build/classes/visao/jasperreports-6.15.0/src/net/sf/jasperreports/compilers/GroovyClassFilter.rs | EuKaique/Projeto-Diagnostico-Medico | cf7cc535ff31992b7568dba777c8faafafa6920c | [
"MIT"
] | null | null | null | build/classes/visao/jasperreports-6.15.0/src/net/sf/jasperreports/compilers/GroovyClassFilter.rs | EuKaique/Projeto-Diagnostico-Medico | cf7cc535ff31992b7568dba777c8faafafa6920c | [
"MIT"
] | null | null | null | net.sf.jasperreports.compilers.GroovyClassFilter
| 24.5 | 48 | 0.897959 |
56a84be513e5c743897966d8cb399ad03926eab7 | 205 | ts | TypeScript | lib/fetcher/profiles/IProfileFetcher.d.ts | gatesolve/planner.js | 7e0179e0c82214c552fa55ab0faed9e142427d64 | [
"MIT"
] | null | null | null | lib/fetcher/profiles/IProfileFetcher.d.ts | gatesolve/planner.js | 7e0179e0c82214c552fa55ab0faed9e142427d64 | [
"MIT"
] | null | null | null | lib/fetcher/profiles/IProfileFetcher.d.ts | gatesolve/planner.js | 7e0179e0c82214c552fa55ab0faed9e142427d64 | [
"MIT"
] | null | null | null | import Profile from "../../entities/profile/Profile";
export default interface IProfileFetcher {
parseProfileBlob(blob: object, id: string): Promise<Profile>;
get(url: string): Promise<Profile>;
}
| 34.166667 | 65 | 0.731707 |
77e57aae25476783412603e36caaa852e987551e | 1,174 | rs | Rust | contract/src/geohash.rs | enigmampc/safetraceV2 | 6d0598e75c109cab0300e67366074656b9d9b64a | [
"MIT"
] | 4 | 2020-11-22T08:37:05.000Z | 2021-01-21T09:20:04.000Z | contract/src/geohash.rs | enigmampc/safetraceV2 | 6d0598e75c109cab0300e67366074656b9d9b64a | [
"MIT"
] | null | null | null | contract/src/geohash.rs | enigmampc/safetraceV2 | 6d0598e75c109cab0300e67366074656b9d9b64a | [
"MIT"
] | null | null | null | use cosmwasm_std::{StdError, StdResult};
use geohash::{encode, Coordinate};
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
const PRECISION: usize = 9usize;
/// return the geohash to a precision degree specified by `PRECISION`.
/// 7 ~ 76m
/// 8 ~ 20m
/// 9 ~ 7m
/// 10 ~ 1m
pub fn ghash(x: f64, y: f64... | 24.458333 | 96 | 0.625213 |
46ad28146bd64adb699e33270b59873618d8d999 | 145 | css | CSS | docs/stylesheets/extra.css | adverley/folding-demonstrations | cdb769d69b6fa504a5da02d86bb131d7b9bdc6ff | [
"CC-BY-4.0"
] | 1 | 2021-07-21T04:36:45.000Z | 2021-07-21T04:36:45.000Z | docs/stylesheets/extra.css | adverley/folding-demonstrations | cdb769d69b6fa504a5da02d86bb131d7b9bdc6ff | [
"CC-BY-4.0"
] | null | null | null | docs/stylesheets/extra.css | adverley/folding-demonstrations | cdb769d69b6fa504a5da02d86bb131d7b9bdc6ff | [
"CC-BY-4.0"
] | null | null | null | .md-typeset {
font-size: 15px;
}
.md-footer {
font-size: 15px;
}
.md-footer-nav__link, .md-footer-nav__title {
font-size: initial;
}
| 14.5 | 45 | 0.627586 |
261a0d698dc68097efa663be00acba5d065c6ec4 | 1,973 | java | Java | matos-android/src/main/java/android/os/Power.java | Orange-OpenSource/matos-profiles | fb27c246911437070052197aa3ef91f9aaac6fc3 | [
"Apache-2.0"
] | 4 | 2015-05-31T02:12:56.000Z | 2016-01-27T11:53:06.000Z | matos-android/src/main/java/android/os/Power.java | Orange-OpenSource/matos-profiles | fb27c246911437070052197aa3ef91f9aaac6fc3 | [
"Apache-2.0"
] | null | null | null | matos-android/src/main/java/android/os/Power.java | Orange-OpenSource/matos-profiles | fb27c246911437070052197aa3ef91f9aaac6fc3 | [
"Apache-2.0"
] | 5 | 2015-05-31T00:15:20.000Z | 2021-06-22T10:21:38.000Z | package android.os;
/*
* #%L
* Matos
* $Id:$
* $HeadURL:$
* %%
* Copyright (C) 2010 - 2014 Orange 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.apach... | 28.185714 | 105 | 0.714648 |
58168f9e003194ccb85c421d9d31e2980c89e3c2 | 208 | h | C | linux_Latexey/include/main.h | ray-pH/Latexey | beae653e3af91b1c449b19f261ae2386d4f11a45 | [
"MIT"
] | null | null | null | linux_Latexey/include/main.h | ray-pH/Latexey | beae653e3af91b1c449b19f261ae2386d4f11a45 | [
"MIT"
] | null | null | null | linux_Latexey/include/main.h | ray-pH/Latexey | beae653e3af91b1c449b19f261ae2386d4f11a45 | [
"MIT"
] | null | null | null | #include <wx/wx.h>
#include <string.h>
#include "latexey.h"
// class TaskBarIcon;
class MyApp : public wxApp{
public:
virtual bool OnInit();
std::string getDirPath();
private:
std::string execDir;
}; | 17.333333 | 27 | 0.6875 |
169d7024ac9d62a771d402f59303d70fb44b125e | 7,282 | c | C | bsp/apm32/libraries/APM32F10x_Library/USB_Device_Lib/Driver/src/drv_usb_device.c | cazure/rt-thread | 1bdde743433d331740766c895ff867df6268df20 | [
"Apache-2.0"
] | 1 | 2022-03-02T12:48:01.000Z | 2022-03-02T12:48:01.000Z | bsp/apm32/libraries/APM32F10x_Library/USB_Device_Lib/Driver/src/drv_usb_device.c | cazure/rt-thread | 1bdde743433d331740766c895ff867df6268df20 | [
"Apache-2.0"
] | 1 | 2018-12-20T00:02:50.000Z | 2018-12-20T00:02:50.000Z | bsp/apm32/libraries/APM32F10x_Library/USB_Device_Lib/Driver/src/drv_usb_device.c | cazure/rt-thread | 1bdde743433d331740766c895ff867df6268df20 | [
"Apache-2.0"
] | 1 | 2022-01-25T02:14:32.000Z | 2022-01-25T02:14:32.000Z | /*!
* @file drv_usb_device.c
*
* @brief This file contains all the functions for the USBD peripheral
*
* @version V1.0.0
*
* @date 2021-12-06
*
* @attention
*
* Copyright (C) 2020-2022 Geehy Semiconductor
*
* You may not use this file except in compliance with the
* GEEHY COPYRI... | 18.024752 | 91 | 0.574018 |
e758d99e0889dedb0fe8d2a65ca2c9210e1dd1cc | 179 | js | JavaScript | events/messageDelete.js | mirko93s/Chill-Bot | 37af48561d101c8c5c2608d4034cd4d38e63ab5f | [
"Apache-2.0"
] | null | null | null | events/messageDelete.js | mirko93s/Chill-Bot | 37af48561d101c8c5c2608d4034cd4d38e63ab5f | [
"Apache-2.0"
] | null | null | null | events/messageDelete.js | mirko93s/Chill-Bot | 37af48561d101c8c5c2608d4034cd4d38e63ab5f | [
"Apache-2.0"
] | null | null | null | module.exports = (client, msg) => {
if (client.settings.has(msg.guild.id, `reactionroles.${msg.id}`)) return client.settings.delete(msg.guild.id, `reactionroles.${msg.id}`);
}; | 59.666667 | 139 | 0.687151 |
5ec7926ca5e76118ce7f5d26b5b32467b7f5e2f7 | 485 | lua | Lua | Spellshock2/Data/Scripts/ChargeUpBarVisibility.lua | Core-Team-META/Game-Spellshock-2 | 6e51dd778c5ea078b8efe4a4aa543115dc0f2ddb | [
"Apache-2.0"
] | 1 | 2021-11-02T16:01:38.000Z | 2021-11-02T16:01:38.000Z | Spellshock2/Data/Scripts/ChargeUpBarVisibility.lua | Core-Team-META/Game-Spellshock-2 | 6e51dd778c5ea078b8efe4a4aa543115dc0f2ddb | [
"Apache-2.0"
] | null | null | null | Spellshock2/Data/Scripts/ChargeUpBarVisibility.lua | Core-Team-META/Game-Spellshock-2 | 6e51dd778c5ea078b8efe4a4aa543115dc0f2ddb | [
"Apache-2.0"
] | 1 | 2021-11-02T17:17:10.000Z | 2021-11-02T17:17:10.000Z | -- Simple script that makes the root visible or invisible when the global menu changes, only used on ChargeUpBar
local ROOT = script:GetCustomProperty("Root"):WaitForObject()
local wasVisible = true
function Tick()
if not _G.MENU_TABLE then return end
local isVisible = (_G.CurrentMenu == _G.MENU_TABLE["NONE"... | 32.333333 | 112 | 0.738144 |
3102946f5649bcd769be437ef734662b36f934ce | 849 | swift | Swift | Sources/PropertyWrappers/ExpirableValue.swift | kojirou1994/Kwift | 9a60adf4e4767014cc9850f80c2d71afe708dd41 | [
"MIT"
] | null | null | null | Sources/PropertyWrappers/ExpirableValue.swift | kojirou1994/Kwift | 9a60adf4e4767014cc9850f80c2d71afe708dd41 | [
"MIT"
] | null | null | null | Sources/PropertyWrappers/ExpirableValue.swift | kojirou1994/Kwift | 9a60adf4e4767014cc9850f80c2d71afe708dd41 | [
"MIT"
] | null | null | null | import Foundation
@propertyWrapper
public struct Expirable<Value> {
internal let duration: TimeInterval
internal var storage: (value: Value, expirationDate: Date)?
public init(duration: TimeInterval) {
self.duration = duration
storage = nil
}
// public init(wrappedValue: Value, expirationDat... | 22.945946 | 88 | 0.648999 |
dfdf0a0793736d8413235dfb32e0be3aa6c6d834 | 2,778 | ts | TypeScript | projects/ng-translation/src/lib/components/ng-trans-subcontent/ng-trans-subcontent.component.spec.ts | wjx774326739/ng-translation | adc0c53a14bb40cf256f75b082a0a3eb69cea37b | [
"MIT"
] | 3 | 2022-02-28T14:30:53.000Z | 2022-02-28T14:53:39.000Z | projects/ng-translation/src/lib/components/ng-trans-subcontent/ng-trans-subcontent.component.spec.ts | wjx774326739/ng-translation | adc0c53a14bb40cf256f75b082a0a3eb69cea37b | [
"MIT"
] | 3 | 2022-03-02T13:04:02.000Z | 2022-03-11T14:45:22.000Z | projects/ng-translation/src/lib/components/ng-trans-subcontent/ng-trans-subcontent.component.spec.ts | bigBear713/ng-translation | adc0c53a14bb40cf256f75b082a0a3eb69cea37b | [
"MIT"
] | null | null | null | import { ChangeDetectorRef, Component, TemplateRef, ViewChild } from '@angular/core';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { NgTransTestingModule } from '../../testing';
import { NgTransSubcontentComponent } from './ng-trans-subcontent.component';
@Component({
selector: 'mock-tpl... | 30.195652 | 104 | 0.703744 |
fe0eb07061b39334d48339b985fe3b2b23be1f6e | 486 | h | C | src/r2048u64t.h | cipherboy/ppc64le-2048-widemul | 65050476b2da7b028e4fc91dacc002868eea46d1 | [
"BSD-3-Clause"
] | null | null | null | src/r2048u64t.h | cipherboy/ppc64le-2048-widemul | 65050476b2da7b028e4fc91dacc002868eea46d1 | [
"BSD-3-Clause"
] | null | null | null | src/r2048u64t.h | cipherboy/ppc64le-2048-widemul | 65050476b2da7b028e4fc91dacc002868eea46d1 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <stdint.h>
typedef struct {
uint64_t data[64];
// Length in bits
uint16_t length;
} _u64t;
extern void u64t_translate(_u64t *ret, r2048bn *parameter);
extern void r2048bn_translate(r2048bn *ret, _u64t *parameter);
extern void u64t_modulus(_u64t *ret_n, _u64t *prime_p, _u64t *prime... | 27 | 82 | 0.744856 |
e52b5bf96b39ec51d6656bd3a65b5d5c1e225174 | 1,066 | ts | TypeScript | test.ts | kitsonk/resvg-wasm | 9fb916e037f0d3a92b4481c0b0cc5a92703c13b7 | [
"MIT"
] | 1 | 2021-11-30T02:51:04.000Z | 2021-11-30T02:51:04.000Z | test.ts | kitsonk/resvg-wasm | 9fb916e037f0d3a92b4481c0b0cc5a92703c13b7 | [
"MIT"
] | null | null | null | test.ts | kitsonk/resvg-wasm | 9fb916e037f0d3a92b4481c0b0cc5a92703c13b7 | [
"MIT"
] | null | null | null | import { assertEquals } from "https://deno.land/std@0.116.0/testing/asserts.ts";
import { render } from "./mod.ts";
Deno.test({
name: "basic",
fn() {
const data = render(
`<?xml version="1.0" encoding="UTF-8"?>
<svg width="820px" height="312px" viewBox="0 0 820 312" version="1.1" xmlns="http://www.... | 42.64 | 154 | 0.558161 |
6626288a1a71712e36a973419fdacdd96c3c4911 | 189 | kt | Kotlin | plugins/analysis/common/src/main/kotlin/arrow/meta/plugins/analysis/phases/analysis/solver/ast/context/elements/ExpressionResolvedValueArgument.kt | timrijckaert/arrow-meta | 2928e8a63d125c4537fb4480c25e508b1df615b2 | [
"Apache-2.0"
] | 4 | 2022-03-18T12:35:49.000Z | 2022-03-22T10:56:29.000Z | plugins/analysis/common/src/main/kotlin/arrow/meta/plugins/analysis/phases/analysis/solver/ast/context/elements/ExpressionResolvedValueArgument.kt | timrijckaert/arrow-meta | 2928e8a63d125c4537fb4480c25e508b1df615b2 | [
"Apache-2.0"
] | 4 | 2022-03-17T13:23:35.000Z | 2022-03-21T09:10:01.000Z | plugins/analysis/common/src/main/kotlin/arrow/meta/plugins/analysis/phases/analysis/solver/ast/context/elements/ExpressionResolvedValueArgument.kt | timrijckaert/arrow-meta | 2928e8a63d125c4537fb4480c25e508b1df615b2 | [
"Apache-2.0"
] | null | null | null | package arrow.meta.plugins.analysis.phases.analysis.solver.ast.context.elements
interface ExpressionResolvedValueArgument {
val argumentExpression: Expression?
val isSpread: Boolean
}
| 27 | 79 | 0.835979 |
bd678844424a88330ecee714ef93621dd3764236 | 4,126 | rs | Rust | oak_functions/lookup_data_generator/src/data.rs | shikharvashistha/oak | 411ce33cd8732ec3c4288da0fafd5907473d6337 | [
"Apache-2.0"
] | null | null | null | oak_functions/lookup_data_generator/src/data.rs | shikharvashistha/oak | 411ce33cd8732ec3c4288da0fafd5907473d6337 | [
"Apache-2.0"
] | null | null | null | oak_functions/lookup_data_generator/src/data.rs | shikharvashistha/oak | 411ce33cd8732ec3c4288da0fafd5907473d6337 | [
"Apache-2.0"
] | null | null | null | //
// Copyright 2021 The Project Oak Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law o... | 31.496183 | 98 | 0.642996 |
f6e42bc21f02affcb6df6e49cb779a3cbb2f3da1 | 2,869 | swift | Swift | FloatCoin/PairVC.swift | kaunteya/FloatCoin | fd8ff099f22657695c4a4aca012bf06a72ad84aa | [
"MIT"
] | 10 | 2018-10-07T04:05:23.000Z | 2022-02-12T19:01:00.000Z | FloatCoin/PairVC.swift | kaunteya/FloatCoin | fd8ff099f22657695c4a4aca012bf06a72ad84aa | [
"MIT"
] | null | null | null | FloatCoin/PairVC.swift | kaunteya/FloatCoin | fd8ff099f22657695c4a4aca012bf06a72ad84aa | [
"MIT"
] | 3 | 2018-12-08T02:04:17.000Z | 2021-02-18T21:37:28.000Z | //
// PairVC.swift
// FloatCoin
//
// Created by Kaunteya Suryawanshi on 25/12/17.
// Copyright © 2017 Kaunteya Suryawanshi. All rights reserved.
//
import AppKit
class PairVC: NSViewController {
@IBOutlet weak var exchangePopupButton: NSPopUpButton!
@IBOutlet weak var basePopupButton: NSPopUpButton!
... | 33.752941 | 114 | 0.686999 |
1841e94f18ebb1db5d263f6c79e86ba69f8b1573 | 703 | rb | Ruby | lib/discovery_service.rb | REANNZ/discovery-service | 10b8b10e1503e36c8e094bfc604efc3da4a58cc2 | [
"Apache-2.0"
] | null | null | null | lib/discovery_service.rb | REANNZ/discovery-service | 10b8b10e1503e36c8e094bfc604efc3da4a58cc2 | [
"Apache-2.0"
] | 1 | 2020-03-09T02:27:46.000Z | 2020-03-09T02:27:46.000Z | lib/discovery_service.rb | REANNZ/discovery-service | 10b8b10e1503e36c8e094bfc604efc3da4a58cc2 | [
"Apache-2.0"
] | null | null | null | # frozen_string_literal: true
require 'yaml'
require 'discovery_service/persistence'
require 'discovery_service/cookie'
require 'discovery_service/response'
require 'discovery_service/entity'
require 'discovery_service/validation'
require 'discovery_service/auditing'
require 'discovery_service/embedded_wayf'
require ... | 26.037037 | 53 | 0.830725 |
4f9a40ddaeef2dfe752121a12c272ab3436c571f | 1,978 | lua | Lua | hammerspoon/init.lua | inoc603/dotfiles | a7c7592a59d51bb45a8d7977e51293ac2e845e1b | [
"MIT"
] | 1 | 2017-04-20T13:24:50.000Z | 2017-04-20T13:24:50.000Z | hammerspoon/init.lua | inoc603/dotfiles | a7c7592a59d51bb45a8d7977e51293ac2e845e1b | [
"MIT"
] | null | null | null | hammerspoon/init.lua | inoc603/dotfiles | a7c7592a59d51bb45a8d7977e51293ac2e845e1b | [
"MIT"
] | null | null | null | hs.hotkey.bind({"cmd", "ctrl"}, "r", function()
hs.reload()
end)
hs.alert.show("Config loaded")
function posX(screen)
x, y = screen:position()
return x
end
function screenAtCenter()
local screens = hs.screen.allScreens()
table.sort(screens, function(a, b) return posX(a) < posX(b) end)
return scr... | 25.037975 | 96 | 0.651668 |
7f2cb3962526353a74c4993fc38b070e727cc695 | 1,886 | kt | Kotlin | samples/demoapp/src/main/java/com/joaquimverges/demoapp/view/MyDetailViewDelegate.kt | nairobi222/Helium | ae2a57bc70deea677a97f8d134d77e0dd8de75d4 | [
"Apache-2.0"
] | 1 | 2019-04-06T12:02:59.000Z | 2019-04-06T12:02:59.000Z | samples/demoapp/src/main/java/com/joaquimverges/demoapp/view/MyDetailViewDelegate.kt | nairobi222/Helium | ae2a57bc70deea677a97f8d134d77e0dd8de75d4 | [
"Apache-2.0"
] | null | null | null | samples/demoapp/src/main/java/com/joaquimverges/demoapp/view/MyDetailViewDelegate.kt | nairobi222/Helium | ae2a57bc70deea677a97f8d134d77e0dd8de75d4 | [
"Apache-2.0"
] | null | null | null | package com.joaquimverges.demoapp.view
import androidx.core.content.ContextCompat
import android.transition.TransitionManager
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ProgressBar
import android.widget.TextView
import com.joaquimverges.demoapp.R
imp... | 39.291667 | 90 | 0.711559 |
da9b62a16cfe728237e00e04a4547039e1238c98 | 3,988 | lua | Lua | libexec/httpd/lua/optparse.lua | calmsacibis995/minix | dfba95598f553b6560131d35a76658f1f8c9cf38 | [
"Unlicense"
] | 34 | 2015-02-04T18:03:14.000Z | 2020-11-10T06:45:28.000Z | libexec/httpd/lua/optparse.lua | calmsacibis995/minix | dfba95598f553b6560131d35a76658f1f8c9cf38 | [
"Unlicense"
] | 5 | 2015-06-30T21:17:00.000Z | 2016-06-14T22:31:51.000Z | libexec/httpd/lua/optparse.lua | calmsacibis995/minix | dfba95598f553b6560131d35a76658f1f8c9cf38 | [
"Unlicense"
] | 15 | 2015-10-29T14:21:58.000Z | 2022-01-19T07:33:14.000Z | -- Lua command line option parser.
-- Interface based on Pythons optparse.
-- http://docs.python.org/lib/module-optparse.html
-- (c) 2008 David Manura, Licensed under the same terms as Lua (MIT license)
--
-- To be used like this:
-- t={usage="<some usag... | 32.16129 | 123 | 0.541625 |
71c93e5ee87bdd8e27bd7dda9fc164d76fb9f88c | 4,113 | ts | TypeScript | src/lib/telegram/extra/menu.ts | gmalamuddeb/AnilistBot | 48507b7db246431d28dc8987760398a75940e1c8 | [
"MIT"
] | 33 | 2018-09-16T20:18:21.000Z | 2022-03-27T18:59:19.000Z | src/lib/telegram/extra/menu.ts | gmalamuddeb/AnilistBot | 48507b7db246431d28dc8987760398a75940e1c8 | [
"MIT"
] | 17 | 2018-10-11T22:18:24.000Z | 2022-02-13T07:38:54.000Z | src/lib/telegram/extra/menu.ts | gmalamuddeb/AnilistBot | 48507b7db246431d28dc8987760398a75940e1c8 | [
"MIT"
] | 27 | 2018-10-11T22:32:09.000Z | 2022-03-13T15:35:06.000Z | // tslint:disable: no-submodule-imports
import { aboutKeyboard, countdownKeyboard, counterBackKeyboard, guideKeyboard, languageBackKeyboard, languageKeyboard, menuKeyboard,
notifyBackKeyboard, notifyKeyboard, recommendationKeyboard, startKeyboard, timeBackKeyboard, timeHourKeyboard, timeKeyboard,
timePeriodKeyboard, us... | 52.063291 | 132 | 0.742281 |
161a26670648f222d07a3cc7d9d0d73373cc4f96 | 9,445 | ts | TypeScript | src/blockchain/transactions.ts | OasisDEX/xDex | e75d9fe69a9f9ceda4097546c9f6a8308b599a8d | [
"Apache-2.0"
] | null | null | null | src/blockchain/transactions.ts | OasisDEX/xDex | e75d9fe69a9f9ceda4097546c9f6a8308b599a8d | [
"Apache-2.0"
] | 1 | 2022-02-21T14:14:10.000Z | 2022-02-22T06:16:16.000Z | src/blockchain/transactions.ts | OasisDEX/xDex | e75d9fe69a9f9ceda4097546c9f6a8308b599a8d | [
"Apache-2.0"
] | 1 | 2021-08-01T16:29:45.000Z | 2021-08-01T16:29:45.000Z | /*
* Copyright (C) 2020 Maker Ecosystem Growth Holdings, INC.
*/
import * as _ from 'lodash';
import { fromPairs } from 'ramda';
import { bindNodeCallback, combineLatest, fromEvent, merge, Observable, of, Subject, timer } from 'rxjs';
import { takeWhileInclusive } from 'rxjs-take-while-inclusive';
import { ajax } fr... | 27.456395 | 120 | 0.602859 |
dd7983017a466571396f064b001a766a345a9a97 | 694 | php | PHP | database/seeds/ReportValueTypeSeeder.php | j2cey/adminitL7 | 526e96e46872caae28958e0bb074d4b08e5d7e13 | [
"MIT"
] | null | null | null | database/seeds/ReportValueTypeSeeder.php | j2cey/adminitL7 | 526e96e46872caae28958e0bb074d4b08e5d7e13 | [
"MIT"
] | 4 | 2021-02-02T20:34:23.000Z | 2022-02-27T08:18:21.000Z | database/seeds/ReportValueTypeSeeder.php | j2cey/adminitL7 | 526e96e46872caae28958e0bb074d4b08e5d7e13 | [
"MIT"
] | null | null | null | <?php
use App\ReportValueType;
use Illuminate\Database\Seeder;
class ReportValueTypeSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$report_value_types = [
[ 'valuetype' => "STRING" ],
[ 'valuetyp... | 23.931034 | 61 | 0.495677 |
949ccc28c98abe3831de81a62d9e928c64ebe7c1 | 9,037 | rs | Rust | piet-gpu/src/main.rs | msiglreith/piet-gpu | 144f46c5fa89a28d3d0acb290dedf38ca78d6c43 | [
"Apache-2.0",
"MIT"
] | null | null | null | piet-gpu/src/main.rs | msiglreith/piet-gpu | 144f46c5fa89a28d3d0acb290dedf38ca78d6c43 | [
"Apache-2.0",
"MIT"
] | null | null | null | piet-gpu/src/main.rs | msiglreith/piet-gpu | 144f46c5fa89a28d3d0acb290dedf38ca78d6c43 | [
"Apache-2.0",
"MIT"
] | null | null | null | use std::fs::File;
use std::io::BufWriter;
use std::path::Path;
use rand::{Rng, RngCore};
use piet::kurbo::{BezPath, Circle, Line, Point, Vec2};
use piet::{Color, RenderContext};
use piet_gpu_hal::vulkan::VkInstance;
use piet_gpu_hal::{CmdBuf, Device, MemFlags};
mod render_ctx;
use render_ctx::PietGpuRenderContext... | 35.439216 | 91 | 0.577072 |
d2c9a759cf9e605bec8e246e2efff5549e6d6323 | 903 | php | PHP | src/Model/Env/EnvEntry.php | jakubtobiasz/Yacht | efb5a626ef1f452bed34e3a6e52bf0f5ce3ef83b | [
"MIT"
] | null | null | null | src/Model/Env/EnvEntry.php | jakubtobiasz/Yacht | efb5a626ef1f452bed34e3a6e52bf0f5ce3ef83b | [
"MIT"
] | null | null | null | src/Model/Env/EnvEntry.php | jakubtobiasz/Yacht | efb5a626ef1f452bed34e3a6e52bf0f5ce3ef83b | [
"MIT"
] | null | null | null | <?php
/*
* This file is part of the Yacht project.
*
* (c) Jakub Tobiasz <jakub@wolen.software>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Wolen\Yacht\Model\Env;
final class EnvEntry i... | 18.8125 | 75 | 0.613511 |
16735c586d5093674db4ba9ef9cbe38c9e1c85be | 4,614 | ts | TypeScript | src/app/registro/registro.component.ts | jmirandaa/Prestamigos-Angular2 | ab3beebbd671f58e24ec858c14c05ddc4e80d26d | [
"MIT"
] | 1 | 2017-10-31T07:46:49.000Z | 2017-10-31T07:46:49.000Z | src/app/registro/registro.component.ts | jmirandaa/Prestamigos-Angular2 | ab3beebbd671f58e24ec858c14c05ddc4e80d26d | [
"MIT"
] | null | null | null | src/app/registro/registro.component.ts | jmirandaa/Prestamigos-Angular2 | ab3beebbd671f58e24ec858c14c05ddc4e80d26d | [
"MIT"
] | null | null | null | declare var componentHandler: any;
import { Component, OnInit } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import {ValidatorService} from '../servicios/validator.service';
import {UIService} from '../servicios/ui.service';
import {UsuarioService} from '../servicios/usuario.service'... | 36.046875 | 127 | 0.490247 |
ddd664b86501564b8335ac2f7be893151c97d048 | 4,699 | c | C | pkg/imphttab/test_getphttab.c | rendinam/hstcal | e08676b02e4c7cd06e3d5630b62f7b59951ac8c3 | [
"BSD-3-Clause"
] | 8 | 2016-07-28T15:14:27.000Z | 2020-04-02T16:37:23.000Z | pkg/imphttab/test_getphttab.c | rendinam/hstcal | e08676b02e4c7cd06e3d5630b62f7b59951ac8c3 | [
"BSD-3-Clause"
] | 484 | 2016-03-14T20:44:42.000Z | 2022-03-31T15:54:38.000Z | pkg/imphttab/test_getphttab.c | rendinam/hstcal | e08676b02e4c7cd06e3d5630b62f7b59951ac8c3 | [
"BSD-3-Clause"
] | 21 | 2016-03-14T14:22:35.000Z | 2022-02-07T18:41:49.000Z | #include <stdio.h>
#include <string.h>
#include "hstio.h"
#include "hstcal.h"
#include "c_iraf.h"
#include "imphttab.h"
/* Function to implement a self-test of this library */
int main(int argc, char **argv){
void c_irafinit (int, char **);
void compute_values(char [], char [], double, float, float, FILE *);
... | 35.330827 | 87 | 0.638647 |
b61bda5453864afa81954b3f65003c7271264e82 | 566 | rb | Ruby | lib/problem_027.rb | hsteinhilber/project_euler | 1270e1d7e09e8efc6cbfcc889af82d0bf4bc2388 | [
"MIT"
] | null | null | null | lib/problem_027.rb | hsteinhilber/project_euler | 1270e1d7e09e8efc6cbfcc889af82d0bf4bc2388 | [
"MIT"
] | null | null | null | lib/problem_027.rb | hsteinhilber/project_euler | 1270e1d7e09e8efc6cbfcc889af82d0bf4bc2388 | [
"MIT"
] | null | null | null | require 'integer'
require 'prime_generator'
class Problem027
def count_consec_primes(a, b)
n = 0
n += 1 while (n**2 + a*n + b).prime?
return n
end
def pairs(max)
Enumerator.new do |yielder|
PrimeGenerator.new.take_while { |p| p < max }.each do |p|
(-max+1...max).each... | 18.258065 | 65 | 0.538869 |
24c6dec269d7c632d90e9801d7fd371e425dba33 | 14,669 | go | Go | make-plural.go | gotnospirit/makeplural | a5f48d94d976801ab2251014c9a626d1c86d7e22 | [
"BSD-2-Clause"
] | 1 | 2020-04-02T01:08:35.000Z | 2020-04-02T01:08:35.000Z | make-plural.go | gotnospirit/makeplural | a5f48d94d976801ab2251014c9a626d1c86d7e22 | [
"BSD-2-Clause"
] | null | null | null | make-plural.go | gotnospirit/makeplural | a5f48d94d976801ab2251014c9a626d1c86d7e22 | [
"BSD-2-Clause"
] | 2 | 2019-04-12T07:23:21.000Z | 2020-04-01T08:17:57.000Z | package main
import (
"encoding/json"
"flag"
"fmt"
"io/ioutil"
"net/http"
"os"
"sort"
"strconv"
"strings"
"text/template"
"time"
)
type (
Source interface {
Culture() string
CultureId() string
Code() string
}
Test interface {
toString() string
}
FuncSource struct {
culture, vars, impl stri... | 23.4704 | 125 | 0.602631 |
e52cdc546334d8bb5764116e1f2580314fbe0a67 | 67 | ts | TypeScript | es/PhotoFilter.d.ts | eugeneilyin/mdi-norm | e9ee50f99aafa1f4dd77ffbe8c06fbdc49ec58f4 | [
"MIT"
] | 3 | 2018-11-11T01:48:20.000Z | 2019-12-02T06:13:14.000Z | es/PhotoFilter.d.ts | eugeneilyin/mdi-norm | e9ee50f99aafa1f4dd77ffbe8c06fbdc49ec58f4 | [
"MIT"
] | 1 | 2019-02-21T05:59:35.000Z | 2019-02-21T21:57:57.000Z | src/PhotoFilter.d.ts | eugeneilyin/mdi-norm | e9ee50f99aafa1f4dd77ffbe8c06fbdc49ec58f4 | [
"MIT"
] | null | null | null | export { default as PhotoFilter } from './utils/createThemedIcon';
| 33.5 | 66 | 0.761194 |
9c1ee7f7dfb62d8c58708a4207fc522043b1f694 | 822 | tsx | TypeScript | material-icons/src/icons/StretchToPageIcon.tsx | otissv/redesign | d2838f8463d4222af1cd55bf93749ea445a0dcf3 | [
"MIT"
] | 1 | 2021-04-13T06:23:57.000Z | 2021-04-13T06:23:57.000Z | material-icons/src/icons/StretchToPageIcon.tsx | otissv/redesign | d2838f8463d4222af1cd55bf93749ea445a0dcf3 | [
"MIT"
] | null | null | null | material-icons/src/icons/StretchToPageIcon.tsx | otissv/redesign | d2838f8463d4222af1cd55bf93749ea445a0dcf3 | [
"MIT"
] | null | null | null | import React, { FC } from 'react';
import { Icon, IconInterface } from "@redesign-system/ui-core";
export const StretchToPageIcon: FC<IconInterface> = function StretchToPageIcon({
className,
...propsRest
}) {
const classNames = `StretchToPageIcon ${className}`;
return (
<Ico... | 51.375 | 344 | 0.659367 |
064e45a665221d8f83f71d07fb3cc963c10c2196 | 369 | kt | Kotlin | ltviewsx/src/main/java/com/lt/ltviewsx/lt_scrollimageview/LtPosition.kt | 1764780379/ltviews | edd0033768e7d9b9e9597f3a53f3b0e110248f88 | [
"BSD-2-Clause"
] | 9 | 2018-06-12T03:19:51.000Z | 2021-12-19T14:48:03.000Z | ltviewsx/src/main/java/com/lt/ltviewsx/lt_scrollimageview/LtPosition.kt | 1764780379/ltviews | edd0033768e7d9b9e9597f3a53f3b0e110248f88 | [
"BSD-2-Clause"
] | null | null | null | ltviewsx/src/main/java/com/lt/ltviewsx/lt_scrollimageview/LtPosition.kt | 1764780379/ltviews | edd0033768e7d9b9e9597f3a53f3b0e110248f88 | [
"BSD-2-Clause"
] | 2 | 2020-09-02T09:25:22.000Z | 2021-12-19T14:49:05.000Z | package com.lt.ltviewsx.lt_scrollimageview
/**
* 创 建: lt 2018/1/5--9:08
* 作 用: 小圆点的方向的枚举
* 注意事项: x轴位置_y轴位置
*/
enum class LtPosition {
LEFT_TOP,
CENTER_TOP,
RIGHT_TOP,
LEFT_CENTER,
CENTER_CENTER,
RIGHT_CENTER,
LEFT_BOTTOM,
CENTER_BOTTOM,
RIGHT_BOTTOM,
LEFT_BOTTOM_O... | 17.571429 | 42 | 0.653117 |
149e40eb324765f72b30ac300899143823cc1062 | 1,109 | kt | Kotlin | app/src/main/java/com/mapswithme/maps/search/BookingFilterParams.kt | dnemov/omim.kt | 8b75114193e141aee14fcbc207a208c4a39de1db | [
"Apache-2.0"
] | 1 | 2020-03-06T13:56:02.000Z | 2020-03-06T13:56:02.000Z | app/src/main/java/com/mapswithme/maps/search/BookingFilterParams.kt | dnemov/omim.kt | 8b75114193e141aee14fcbc207a208c4a39de1db | [
"Apache-2.0"
] | null | null | null | app/src/main/java/com/mapswithme/maps/search/BookingFilterParams.kt | dnemov/omim.kt | 8b75114193e141aee14fcbc207a208c4a39de1db | [
"Apache-2.0"
] | null | null | null | package com.mapswithme.maps.search
import android.os.Parcel
import android.os.Parcelable
import com.mapswithme.util.ConnectionState
import kotlinx.android.parcel.Parcelize
@Parcelize
class BookingFilterParams (val mCheckinMillisec: Long,
val mCheckoutMillisec: Long,
... | 29.972973 | 90 | 0.593327 |
2a2420f29f6adadd9dd8c5d5870a17ab58203aac | 1,766 | java | Java | src/main/java/com/zzm/controller/CourseController.java | jadeghost84/ChildProgrammingEducation | a3d6b8b1e3c898d4a616819deb97b113b1f81830 | [
"MIT"
] | null | null | null | src/main/java/com/zzm/controller/CourseController.java | jadeghost84/ChildProgrammingEducation | a3d6b8b1e3c898d4a616819deb97b113b1f81830 | [
"MIT"
] | null | null | null | src/main/java/com/zzm/controller/CourseController.java | jadeghost84/ChildProgrammingEducation | a3d6b8b1e3c898d4a616819deb97b113b1f81830 | [
"MIT"
] | null | null | null | package com.zzm.controller;
import com.zzm.domain.Course;
import com.zzm.domain.CourseSection;
import com.zzm.domain.CourseType;
import com.zzm.service.CourseService;
import com.zzm.service.UserService;
import com.zzm.util.QiNiuYunUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfr... | 31.535714 | 101 | 0.720272 |
0a09c11029c1df0858027057735da987139faff6 | 54 | ts | TypeScript | src/interfaces/ClickCounter.ts | marathe-atharva/react-typescript-template | 78fbf7face1c70345c29e3a996004a146b6ee49c | [
"MIT"
] | null | null | null | src/interfaces/ClickCounter.ts | marathe-atharva/react-typescript-template | 78fbf7face1c70345c29e3a996004a146b6ee49c | [
"MIT"
] | 117 | 2021-05-08T05:56:10.000Z | 2022-03-29T18:57:01.000Z | src/interfaces/ClickCounter.ts | marathe-atharva/react-typescript-template | 78fbf7face1c70345c29e3a996004a146b6ee49c | [
"MIT"
] | null | null | null | export interface ClickCounterProps {
limit: number
}
| 13.5 | 36 | 0.796296 |
750cbafe43f0db14963e557e6c46eb43e9cdf5b7 | 1,691 | sql | SQL | data/ca/sqlite/subdivisions_PL.sqlite.sql | timshadel/subdivision-list | 869415cee0886e34a1cb44e8a545a2e5a82aeb8c | [
"MIT"
] | 26 | 2017-04-14T16:15:13.000Z | 2021-11-20T17:41:39.000Z | data/ca/sqlite/subdivisions_PL.sqlite.sql | timshadel/subdivision-list | 869415cee0886e34a1cb44e8a545a2e5a82aeb8c | [
"MIT"
] | null | null | null | data/ca/sqlite/subdivisions_PL.sqlite.sql | timshadel/subdivision-list | 869415cee0886e34a1cb44e8a545a2e5a82aeb8c | [
"MIT"
] | 15 | 2018-05-23T14:36:47.000Z | 2021-11-04T08:26:20.000Z | CREATE TABLE subdivision_PL (id VARCHAR(6) NOT NULL, name VARCHAR(255), level VARCHAR(64) NOT NULL, PRIMARY KEY(id));
INSERT INTO "subdivision_PL" ("id", "name", "level") VALUES ('PL-WP', 'Voivodat de Gran Polònia', 'voivodship');
INSERT INTO "subdivision_PL" ("id", "name", "level") VALUES ('PL-KP', 'Voivodat de Cuiàv... | 99.470588 | 120 | 0.678888 |
cc84e3c5a96b4ed8cdd822cd7eff4bd5d384cde1 | 1,064 | swift | Swift | Architecture/Sources/Architecture/UIViewController+Router.swift | AndreaRR18/ACME-App | 2e7cf804ba89026aa6a7dfe94dc015e5c1181621 | [
"MIT"
] | null | null | null | Architecture/Sources/Architecture/UIViewController+Router.swift | AndreaRR18/ACME-App | 2e7cf804ba89026aa6a7dfe94dc015e5c1181621 | [
"MIT"
] | null | null | null | Architecture/Sources/Architecture/UIViewController+Router.swift | AndreaRR18/ACME-App | 2e7cf804ba89026aa6a7dfe94dc015e5c1181621 | [
"MIT"
] | null | null | null | import UIKit
extension UIViewController: Router {
public func presentPage(_ module: Presentable, animated: Bool, _ completion: (() -> Void)?) {
let destination = module.presented()
destination.modalPresentationStyle = .fullScreen
present(destination, animated: animated, completion: com... | 34.322581 | 97 | 0.684211 |
85cfdd5a9b267c3341b0863873d6b5b9ba05f9b0 | 223 | js | JavaScript | app/routes/cityRoute.js | tranducminh/TravelVietnam | 637b59343ddaf6dabd67cb697c23254d6414b167 | [
"MIT"
] | null | null | null | app/routes/cityRoute.js | tranducminh/TravelVietnam | 637b59343ddaf6dabd67cb697c23254d6414b167 | [
"MIT"
] | 3 | 2020-07-17T02:04:14.000Z | 2020-09-25T03:43:52.000Z | app/routes/cityRoute.js | tranducminh/DiscoverVietnam | 637b59343ddaf6dabd67cb697c23254d6414b167 | [
"MIT"
] | null | null | null | let router = require('express').Router();
let cityCtrl = require('../controllers').City;
router.route('/:cityNameID')
.get(cityCtrl.renderCityPage)
router.param('cityNameID', cityCtrl.findOne)
module.exports = router; | 27.875 | 46 | 0.730942 |
d28fa5b5b4c88774ceb8368539a12240aca60301 | 1,493 | php | PHP | src/Esgi/UserBundle/Entity/User.php | Axel29/SymfonyBlog | b697988d40763811b38d2e3467eb0517191fc45d | [
"MIT"
] | null | null | null | src/Esgi/UserBundle/Entity/User.php | Axel29/SymfonyBlog | b697988d40763811b38d2e3467eb0517191fc45d | [
"MIT"
] | null | null | null | src/Esgi/UserBundle/Entity/User.php | Axel29/SymfonyBlog | b697988d40763811b38d2e3467eb0517191fc45d | [
"MIT"
] | null | null | null | <?php
namespace Esgi\UserBundle\Entity;
use FOS\UserBundle\Model\User as BaseUser;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="User")
*/
class User extends BaseUser
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValu... | 18.898734 | 119 | 0.569324 |
85c2ade2fccccc56a9f84144f7913d8b15ee6c60 | 343 | js | JavaScript | strongloop/node_modules/strong-pm/lib/receive.js | vnyrjkmr/myapp | abfc83107436e19ccae80389a713985386f37e62 | [
"MIT"
] | null | null | null | strongloop/node_modules/strong-pm/lib/receive.js | vnyrjkmr/myapp | abfc83107436e19ccae80389a713985386f37e62 | [
"MIT"
] | null | null | null | strongloop/node_modules/strong-pm/lib/receive.js | vnyrjkmr/myapp | abfc83107436e19ccae80389a713985386f37e62 | [
"MIT"
] | null | null | null | var http = require('http');
var cicada = require('cicada');
var path = require('path');
exports.listen = function listen(port, base) {
var git = cicada(path.resolve(base));
var server = http.createServer(git.handle);
server.listen(port);
server.git = git;
git.on('commit', server.emit.bind(server, 'commit'))... | 22.866667 | 55 | 0.673469 |
dd7735867f8a3fe27dec370490173792ee8fa98b | 201 | php | PHP | src/Network/Http/FormData/Part.php | mozmorris/cakephp | c58f152a32eddc3652782e489dba1d5c2f4aeb11 | [
"MIT"
] | 133 | 2015-01-12T07:11:36.000Z | 2022-02-16T13:25:18.000Z | vendor/cakephp/cakephp/src/Network/Http/FormData/Part.php | jagoree/task-manager | 5d97ccf4c1736ba1676ca793ee059351b16303cf | [
"MIT"
] | 534 | 2015-01-05T21:49:45.000Z | 2022-03-31T16:27:03.000Z | vendor/cakephp/cakephp/src/Network/Http/FormData/Part.php | jagoree/task-manager | 5d97ccf4c1736ba1676ca793ee059351b16303cf | [
"MIT"
] | 448 | 2015-01-09T15:40:09.000Z | 2022-03-11T15:13:25.000Z | <?php
// @deprecated 3.4.0 Load new class and alias.
class_exists('Cake\Http\Client\FormDataPart');
deprecationWarning('Use Cake\Http\Client\FormDataPart instead of Cake\Network\Http\FormData\Part.');
| 40.2 | 100 | 0.781095 |
bf90b7e283fcee7cd3ce3b9899620ab3a16b7ac4 | 9,476 | rs | Rust | src/files.rs | opengirok/ogk | 6a5deab22f6e5edbd592398cc5b5c52865ceb5ad | [
"MIT"
] | 6 | 2022-03-06T13:07:53.000Z | 2022-03-10T06:49:56.000Z | src/files.rs | opengirok/ogk | 6a5deab22f6e5edbd592398cc5b5c52865ceb5ad | [
"MIT"
] | null | null | null | src/files.rs | opengirok/ogk | 6a5deab22f6e5edbd592398cc5b5c52865ceb5ad | [
"MIT"
] | null | null | null | use crate::client::{BillWithFiles, Client, DntcFile, DtlVo};
use crate::utils::{config, date};
use async_trait::async_trait;
use bytes::Bytes;
use chrono::prelude::Utc;
use console::Emoji;
use dirs::home_dir;
use git2::{
self, Commit, Cred, IndexAddOption, ObjectType, Oid, RemoteCallbacks, Repository, Signature,
};... | 32.675862 | 96 | 0.485965 |
894df5287d3d8f04f5b7464e18854f531d833648 | 1,917 | swift | Swift | InventoryManagement/Other/ImagePicker.swift | tkreind/InventoryManagementApp | 591d04e557a9d3a3916d0bc3aba7222ee9ee89e8 | [
"MIT"
] | 1 | 2021-05-06T03:58:50.000Z | 2021-05-06T03:58:50.000Z | InventoryManagement/Other/ImagePicker.swift | tkreind/InventoryManagementApp | 591d04e557a9d3a3916d0bc3aba7222ee9ee89e8 | [
"MIT"
] | null | null | null | InventoryManagement/Other/ImagePicker.swift | tkreind/InventoryManagementApp | 591d04e557a9d3a3916d0bc3aba7222ee9ee89e8 | [
"MIT"
] | null | null | null | //
// ImagePicker.swift
// InventoryManagement
//
// Created by Tristan Kreindler on 7/28/20.
// Copyright © 2020 Tristan Kreindler. All rights reserved.
//
import SwiftUI
import ImgurAnonymousAPI
struct ImagePickerAndUploader: UIViewControllerRepresentable {
@Environment(\.presentationMode) var presentationM... | 33.631579 | 149 | 0.668232 |
b11ac9bac63d77d27214db46409c77416b1f4c67 | 378 | css | CSS | src/components/chat/ChatBox.css | mitstark13/marchmadnessdraft | f505561c749a2c0d8f20ab0d19d6ed1a1c8f1131 | [
"MIT"
] | null | null | null | src/components/chat/ChatBox.css | mitstark13/marchmadnessdraft | f505561c749a2c0d8f20ab0d19d6ed1a1c8f1131 | [
"MIT"
] | 9 | 2020-03-11T15:32:21.000Z | 2022-03-08T22:43:59.000Z | src/components/chat/ChatBox.css | mitstark13/marchmadnessdraft | f505561c749a2c0d8f20ab0d19d6ed1a1c8f1131 | [
"MIT"
] | null | null | null | .chatInput {
display: flex;
align-items: center;
height: 42px;
}
.chatInput input {
flex: 1;
height: 100%;
border: 0;
padding: 0 15px;
}
.chatInput button {
flex: 0;
height: 100%;
padding: 0 20px;
border: none;
background: green;
color: white;
font-size: 18px;
text-align: center;
transition: .5s;
}
.... | 13.034483 | 25 | 0.65873 |
9c0698ed7b26cc72d5927f91acd756e350cca55f | 1,259 | js | JavaScript | apps/driver.js | islam-Attar/caps | d5fe693f3611dfed7f35b39327cecaafa82e29b2 | [
"MIT"
] | null | null | null | apps/driver.js | islam-Attar/caps | d5fe693f3611dfed7f35b39327cecaafa82e29b2 | [
"MIT"
] | null | null | null | apps/driver.js | islam-Attar/caps | d5fe693f3611dfed7f35b39327cecaafa82e29b2 | [
"MIT"
] | null | null | null | 'use strict';
const eventEmitter = require('../lib/events');
const {createOrder} = require('./vendor');
eventEmitter.on('pick up', pickUpHandler)
eventEmitter.on('in-transit', inTransitHandler)
eventEmitter.on('delivered', deliveredHandler)
function inTransitHandler(payload){
console.log('EVENT',payload);
... | 22.482143 | 79 | 0.667196 |
f50b4f0031deda9dd0708296cfeaa7f4287bb729 | 7,070 | rs | Rust | src/tex_the_program/section_0540_to_0543.rs | crlf0710/tex-rs | 9e3950423ec57175484794904151c92ee4adaa68 | [
"Apache-2.0",
"MIT"
] | 18 | 2020-10-08T04:25:49.000Z | 2022-02-12T04:34:00.000Z | src/tex_the_program/section_0540_to_0543.rs | crlf0710/tex-rs | 9e3950423ec57175484794904151c92ee4adaa68 | [
"Apache-2.0",
"MIT"
] | 2 | 2021-01-03T07:10:54.000Z | 2022-02-03T05:07:07.000Z | src/tex_the_program/section_0540_to_0543.rs | crlf0710/tex-rs | 9e3950423ec57175484794904151c92ee4adaa68 | [
"Apache-2.0",
"MIT"
] | 3 | 2020-12-11T09:12:56.000Z | 2021-11-11T13:51:48.000Z | //! @ The first 24 bytes (6 words) of a \.{TFM} file contain twelve 16-bit
//! integers that give the lengths of the various subsequent portions
//! of the file. These twelve integers are, in order:
//! $$\vbox{\halign{\hfil#&$\null=\null$#\hfil\cr
//! |lf|&length of the entire file, in words;\cr
//! |lh|&length of the... | 56.56 | 84 | 0.680198 |
df9d407c21446434d202dd10b6de457f68db6a7b | 1,759 | kt | Kotlin | bluetoothmc/src/main/java/com/ahmedabdelmeged/bluetoothmc/ui/adapter/BluetoothDevicesAdapter.kt | Ahmed-Abdelmeged/Android-BluetoothMCLibrary | 594f00b659b49a5d7a1bc7dd049b019d99cf6bde | [
"MIT"
] | 26 | 2017-05-25T23:17:40.000Z | 2022-03-09T13:56:57.000Z | bluetoothmc/src/main/java/com/ahmedabdelmeged/bluetoothmc/ui/adapter/BluetoothDevicesAdapter.kt | Ahmed-Abdelmeged/Android-BluetoothMCLibrary | 594f00b659b49a5d7a1bc7dd049b019d99cf6bde | [
"MIT"
] | 5 | 2019-04-09T12:45:59.000Z | 2021-02-21T14:58:52.000Z | bluetoothmc/src/main/java/com/ahmedabdelmeged/bluetoothmc/ui/adapter/BluetoothDevicesAdapter.kt | Ahmed-Abdelmeged/Android-BluetoothMCLibrary | 594f00b659b49a5d7a1bc7dd049b019d99cf6bde | [
"MIT"
] | 2 | 2019-04-07T09:04:29.000Z | 2021-02-22T07:07:29.000Z | package com.ahmedabdelmeged.bluetoothmc.ui.adapter
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.ahmedabdelmeged.bluetoothmc.R
import kotlinx.android.synthetic.main.item_device.view.*
... | 31.410714 | 127 | 0.725412 |
4a3efe6689775db25b79792d20e8cd85d57b877c | 341 | js | JavaScript | projects/05-travel-app/src/client/index.js | Gonzaloalcina/front-end-nanodegree-udacity | 4f834ac6a5c50484772a0ab273428bb96c33e57c | [
"MIT"
] | 2 | 2020-08-26T03:10:53.000Z | 2020-09-30T23:09:53.000Z | projects/05-travel-app/src/client/index.js | Gonzaloalcina/front-end-nanodegree-udacity | 4f834ac6a5c50484772a0ab273428bb96c33e57c | [
"MIT"
] | null | null | null | projects/05-travel-app/src/client/index.js | Gonzaloalcina/front-end-nanodegree-udacity | 4f834ac6a5c50484772a0ab273428bb96c33e57c | [
"MIT"
] | 3 | 2020-12-02T19:23:08.000Z | 2021-04-14T18:13:11.000Z | // import main functions
import {theUserTrip} from './js/app';
import {theTripChecker} from './js/tripChecker';
// import {welcome} from './js/functions';
// import {delete} from './js/functions';
// import styles
import './styles/main.scss';
// final exporting
export {
theUserTrip,
theTripChecker,
//welc... | 18.944444 | 48 | 0.665689 |
130f44ba0957ad1b5c49aa4da36d823ca30051dc | 1,093 | h | C | src/Waves/Transaction.h | taha-husain/pp-wallet-core | 68862468398854cef2d194cad8498801afcc3344 | [
"MIT"
] | 1 | 2020-10-27T17:27:04.000Z | 2020-10-27T17:27:04.000Z | src/Waves/Transaction.h | vaulto-wallet/wallet-core | 6f58ee2f18cc479eba2724b652e7c1fb4d783a33 | [
"MIT"
] | null | null | null | src/Waves/Transaction.h | vaulto-wallet/wallet-core | 6f58ee2f18cc479eba2724b652e7c1fb4d783a33 | [
"MIT"
] | 2 | 2020-01-08T14:28:22.000Z | 2020-01-21T15:46:52.000Z | // Copyright © 2017-2020 Trust Wallet.
//
// This file is part of Trust. The full Trust copyright notice, including
// terms governing use, modification, and redistribution, is contained in the
// file LICENSE at the root of the source code distribution tree.
#pragma once
#include "Address.h"
#include "../Data.h"
#in... | 30.361111 | 129 | 0.714547 |
7f7fae4f349875d3ab55b5f8faef572c7f91d8bc | 14,451 | go | Go | server/plugin/command.go | kaakaa/mattermost-plugin-reacji | 40f5715081c483dd4e00c6e4aba0384ae5ad73ac | [
"Apache-2.0"
] | null | null | null | server/plugin/command.go | kaakaa/mattermost-plugin-reacji | 40f5715081c483dd4e00c6e4aba0384ae5ad73ac | [
"Apache-2.0"
] | 13 | 2021-03-24T06:44:39.000Z | 2021-04-29T02:40:51.000Z | server/plugin/command.go | kaakaa/mattermost-plugin-reacji | 40f5715081c483dd4e00c6e4aba0384ae5ad73ac | [
"Apache-2.0"
] | 1 | 2021-09-16T10:18:57.000Z | 2021-09-16T10:18:57.000Z | package plugin
import (
"errors"
"fmt"
"regexp"
"strings"
"github.com/kaakaa/mattermost-plugin-reacji/server/reacji"
"github.com/mattermost/mattermost-server/v5/model"
"github.com/mattermost/mattermost-server/v5/plugin"
)
func (p *Plugin) registerCommand() error {
return p.API.RegisterCommand(&model.Command{... | 33.764019 | 229 | 0.680507 |
cb493c42819d31b414ebda897c1b87d112dc3574 | 1,718 | swift | Swift | XLsn0wQuora/Classes/APIManager/APIManager.swift | XLsn0w/XLsn0wQuora | 93d803a321b1696d0507df8294581c85058a2a3e | [
"MIT"
] | 10 | 2017-10-25T08:49:59.000Z | 2018-06-16T01:21:24.000Z | XLsn0wQuora/Classes/APIManager/APIManager.swift | XLsn0w/XLsn0wQuora | 93d803a321b1696d0507df8294581c85058a2a3e | [
"MIT"
] | null | null | null | XLsn0wQuora/Classes/APIManager/APIManager.swift | XLsn0w/XLsn0wQuora | 93d803a321b1696d0507df8294581c85058a2a3e | [
"MIT"
] | 1 | 2018-03-05T07:21:09.000Z | 2018-03-05T07:21:09.000Z |
import Foundation
import Moya
//: URL基地址
let BASE_URL = "http://english.6ag.cn/"
enum APIManager {
case getLaunchImg
case getNewsList
case getMoreNews(String)
case getThemeList
case getThemeDesc(Int)
case getNewsDesc(Int)
}
extension APIManager: TargetType {
/// The target's base `URL`.... | 23.861111 | 76 | 0.582072 |
596af664e04559c63c8135e68c3773175f1f0c03 | 14,003 | h | C | drivers/storage/port/scsi/miniport/advansys/asc/asclib.h | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | drivers/storage/port/scsi/miniport/advansys/asc/asclib.h | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | drivers/storage/port/scsi/miniport/advansys/asc/asclib.h | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*
** Copyright (c) 1994-1998 Advanced System Products, Inc.
** All Rights Reserved.
**
** Filename: asclib.h
**
*/
#ifndef __ASCLIB_H_
#define __ASCLIB_H_
/* *******************************************************************
** asc_eep.c
** **************************************************************... | 44.173502 | 85 | 0.501678 |
b15baae860d799a277acd24f4e8eb47e96270323 | 2,243 | h | C | DataMgr/ForeignStorage/ForeignDataWrapperFactory.h | yma11/omniscidb | 2f975266f5c9f4daeadffd154735dca30c7b633b | [
"Apache-2.0"
] | null | null | null | DataMgr/ForeignStorage/ForeignDataWrapperFactory.h | yma11/omniscidb | 2f975266f5c9f4daeadffd154735dca30c7b633b | [
"Apache-2.0"
] | null | null | null | DataMgr/ForeignStorage/ForeignDataWrapperFactory.h | yma11/omniscidb | 2f975266f5c9f4daeadffd154735dca30c7b633b | [
"Apache-2.0"
] | 1 | 2021-10-07T11:30:01.000Z | 2021-10-07T11:30:01.000Z | /*
* Copyright 2021 OmniSci, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 35.603175 | 90 | 0.687472 |
f72ace0a39ad6486331d470b37dac04fb915b1af | 643 | swift | Swift | Currency/MVVM/Views/Cells/ExchangeRatesCell.swift | Rahul-Mayani/Currency-Converter | 76a778d68dc65998c6d43d965432d44de7a3fa27 | [
"MIT"
] | 1 | 2022-02-15T19:14:06.000Z | 2022-02-15T19:14:06.000Z | Currency/MVVM/Views/Cells/ExchangeRatesCell.swift | Rahul-Mayani/Currency-Converter | 76a778d68dc65998c6d43d965432d44de7a3fa27 | [
"MIT"
] | 1 | 2021-06-22T13:30:23.000Z | 2021-06-22T13:30:23.000Z | Currency/MVVM/Views/Cells/ExchangeRatesCell.swift | Rahul-Mayani/Currency-Converter | 76a778d68dc65998c6d43d965432d44de7a3fa27 | [
"MIT"
] | null | null | null | //
// ExchangeRatesCell.swift
// Currency
//
// Created by Rahul Mayani on 31/05/21.
//
import UIKit
class ExchangeRatesCell: UICollectionViewCell {
// MARK: - IBOutlet -
@IBOutlet weak var currencyLabel: UILabel!
@IBOutlet weak var amountLabel: UILabel!
// MARK: - Variable -
var data... | 21.433333 | 59 | 0.59409 |
3b589052726a1235e3c99f3e172ad3f91e68e124 | 1,111 | c | C | GodHands/GodHands/Source/System/RamDisk/RamDiskTest.c | collinsmichael/GodHands | d4523ec83e7c9dac9199b67f365cf44b69c1a5b2 | [
"MIT"
] | 10 | 2020-02-16T23:51:47.000Z | 2021-11-21T16:59:02.000Z | GodHands/GodHands/Source/System/RamDisk/RamDiskTest.c | collinsmichael/GodHands | d4523ec83e7c9dac9199b67f365cf44b69c1a5b2 | [
"MIT"
] | 3 | 2020-02-15T08:50:58.000Z | 2021-03-28T18:19:13.000Z | GodHands/GodHands/Source/System/RamDisk/RamDiskTest.c | collinsmichael/GodHands | d4523ec83e7c9dac9199b67f365cf44b69c1a5b2 | [
"MIT"
] | 2 | 2021-03-31T19:23:41.000Z | 2021-11-21T16:59:07.000Z | #ifdef UNITTEST
#include "System/System.h"
#include "GodHands.h"
extern struct RAMDISK RamDisk;
UTEST(Test_0001_RamDisk, NonExistentFile) {
ASSERT_TRUE(RamDisk.Reset());
ASSERT_FALSE(RamDisk.Open("does not exist"));
ASSERT_FALSE(RamDisk.Close());
}
UTEST(Test_0002_RamDisk, OpenAndClose) {... | 26.452381 | 57 | 0.665167 |
61128f36a00c6ea5052d03f44024c900b79e1257 | 247 | css | CSS | assets/css/ui.css | neilstuff/jewel-thief | 60d6c9126b954c29d1271425506497924c17a1da | [
"CC0-1.0"
] | null | null | null | assets/css/ui.css | neilstuff/jewel-thief | 60d6c9126b954c29d1271425506497924c17a1da | [
"CC0-1.0"
] | null | null | null | assets/css/ui.css | neilstuff/jewel-thief | 60d6c9126b954c29d1271425506497924c17a1da | [
"CC0-1.0"
] | null | null | null | @font-face {
font-family: bitOperatorPlus;
src: url(../fonts/8bitOperatorPlusSC-Regular.ttf);
}
body,
p {
font-family: bitOperatorPlus;
}
.controls {
font-family: bitOperatorPlus;
font-size: 12px;
}
.preload {
display: none;
}
| 13 | 52 | 0.668016 |
2a33ebc50cadfc2c30cc891fd59867e0c3d85b75 | 4,527 | java | Java | adapters/mso-tenant-adapter/src/test/java/org/openecomp/mso/adapters/tenant/test/TenantTest.java | kweveen/so | f5618da7e8d8398d5f85fe950fd5c88e84481f83 | [
"Apache-2.0"
] | null | null | null | adapters/mso-tenant-adapter/src/test/java/org/openecomp/mso/adapters/tenant/test/TenantTest.java | kweveen/so | f5618da7e8d8398d5f85fe950fd5c88e84481f83 | [
"Apache-2.0"
] | null | null | null | adapters/mso-tenant-adapter/src/test/java/org/openecomp/mso/adapters/tenant/test/TenantTest.java | kweveen/so | f5618da7e8d8398d5f85fe950fd5c88e84481f83 | [
"Apache-2.0"
] | null | null | null | /*-
* ============LICENSE_START=======================================================
* ONAP - SO
* ================================================================================
* Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
* =============================================================... | 34.037594 | 134 | 0.649879 |
71bdef5d1f857c078626bd15d870416d283814f7 | 541 | tsx | TypeScript | packages/icons/src/GemSolid.tsx | Armedin/kuka-ui | dc5bc09402eeb6585a91e9af1919055112b42311 | [
"MIT"
] | null | null | null | packages/icons/src/GemSolid.tsx | Armedin/kuka-ui | dc5bc09402eeb6585a91e9af1919055112b42311 | [
"MIT"
] | null | null | null | packages/icons/src/GemSolid.tsx | Armedin/kuka-ui | dc5bc09402eeb6585a91e9af1919055112b42311 | [
"MIT"
] | null | null | null | import React from 'react';
import { SvgIcon, SvgIconProps } from '@kukui/ui';
const SvgComponent = props => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" {...props}>
<path d="M378.7 32H133.3L256 182.7 378.7 32zM512 192 404.6 50.7 289.6 192H512zM107.4 50.67 0 192h222.4l-115-141.33zM244.3 474.9c3... | 36.066667 | 211 | 0.676525 |
30cba74fdb69745c873ad1425930f97409611dc5 | 1,745 | swift | Swift | JKJSON/Array+Optional.swift | jankase/JKJSON | c1c31a0fee63f1a685eb7d5c384b0af8265449a3 | [
"MIT"
] | null | null | null | JKJSON/Array+Optional.swift | jankase/JKJSON | c1c31a0fee63f1a685eb7d5c384b0af8265449a3 | [
"MIT"
] | null | null | null | JKJSON/Array+Optional.swift | jankase/JKJSON | c1c31a0fee63f1a685eb7d5c384b0af8265449a3 | [
"MIT"
] | null | null | null | //
// Created by Jan Kase on 04/01/16.
// Copyright (c) 2016 Jan Kase. All rights reserved.
//
import Foundation
extension Array {
mutating func setOptionalObject(theObject: Element?, index theIndex: Index) throws {
if let aObject = theObject {
if theIndex < self.endIndex {
self[theIndex] = aObje... | 22.088608 | 102 | 0.608023 |
70747adc211c0f44a7f5d7cb2d2d7a6cdbc37b66 | 3,952 | c | C | product/synquacer/src/device_nor_mt25.c | wakuakihiro/SCP-firmware | de7e464ecd77130147103cf48328099c2d0e6289 | [
"BSD-3-Clause"
] | 1 | 2022-01-25T10:10:32.000Z | 2022-01-25T10:10:32.000Z | product/synquacer/src/device_nor_mt25.c | wakuakihiro/SCP-firmware | de7e464ecd77130147103cf48328099c2d0e6289 | [
"BSD-3-Clause"
] | null | null | null | product/synquacer/src/device_nor_mt25.c | wakuakihiro/SCP-firmware | de7e464ecd77130147103cf48328099c2d0e6289 | [
"BSD-3-Clause"
] | null | null | null | /*
* Arm SCP/MCP Software
* Copyright (c) 2022, Arm Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "nor/device_nor_mt25.h"
#include "qspi_api.h"
#include <fwk_id.h>
#include <fwk_module.h>
#include <fwk_status.h>
#include <stdbool.h>
#include <stdint.h>
/*
... | 20.163265 | 79 | 0.639676 |
16632363fdcc77be0a899f80e5c2a23ebd228586 | 719 | ts | TypeScript | dist/src/repositories/profile.repository.d.ts | david1asher/linkedin-private-api | e5f025f2f9ab46826caec627e818298ee494c2c8 | [
"MIT"
] | null | null | null | dist/src/repositories/profile.repository.d.ts | david1asher/linkedin-private-api | e5f025f2f9ab46826caec627e818298ee494c2c8 | [
"MIT"
] | null | null | null | dist/src/repositories/profile.repository.d.ts | david1asher/linkedin-private-api | e5f025f2f9ab46826caec627e818298ee494c2c8 | [
"MIT"
] | null | null | null | import { Client } from '../core/client';
import { LinkedInMiniProfile } from '../entities/linkedin-mini-profile.entity';
import { MiniProfile, ProfileId } from '../entities/mini-profile.entity';
import { Profile } from '../entities/profile.entity';
export declare const getProfilesFromResponse: <
T extends {
data:... | 29.958333 | 83 | 0.666203 |
0ee3a8b86c3e4d4e4766bc6ae488b44faf1de69a | 754 | ts | TypeScript | src/composables/Home/Announcement/useList.ts | hnit-acm/hnit-acm-web-v2 | 6724c85840a9095c2aaff95776cc988b54252674 | [
"MIT"
] | 1 | 2021-04-07T15:24:56.000Z | 2021-04-07T15:24:56.000Z | src/composables/Home/Announcement/useList.ts | hnit-acm/hnit-acm-web-v2 | 6724c85840a9095c2aaff95776cc988b54252674 | [
"MIT"
] | 9 | 2021-01-07T01:37:11.000Z | 2021-06-20T10:59:46.000Z | src/composables/Home/Announcement/useList.ts | hnit-acm/hnit-acm-web-v2 | 6724c85840a9095c2aaff95776cc988b54252674 | [
"MIT"
] | null | null | null | import {computed, ref, Ref, provide, inject, reactive} from "vue";
import {useRoute} from "vue-router";
type ListContext = {
visible: Ref<boolean>;
setVisible: (value: boolean) => void;
};
const ListSymbol = Symbol();
export function useListProvide(): ListContext {
const visible = ref(true)
const s... | 19.842105 | 83 | 0.629973 |
d2b33b1363816e6f828f855c681c965815288219 | 323 | php | PHP | Modules/Blog/Http/Repositories/BloggerRepositoryInterface.php | Nacimbob/Laravel-Blog-Api | ff6a0055f1ace57cc0aff1e2aca5e20df66ff5fd | [
"MIT"
] | null | null | null | Modules/Blog/Http/Repositories/BloggerRepositoryInterface.php | Nacimbob/Laravel-Blog-Api | ff6a0055f1ace57cc0aff1e2aca5e20df66ff5fd | [
"MIT"
] | null | null | null | Modules/Blog/Http/Repositories/BloggerRepositoryInterface.php | Nacimbob/Laravel-Blog-Api | ff6a0055f1ace57cc0aff1e2aca5e20df66ff5fd | [
"MIT"
] | null | null | null | <?php
namespace Modules\Blog\Http\Repositories;
use Modules\Blog\Entities\Blogger;
interface BloggerRepositoryInterface {
public function create(array $attributes);
public function update(Blogger $blogger,array $parameters);
public function delete(Blogger $blogger);
public function findById($id);
... | 19 | 63 | 0.758514 |