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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7a1dd4dc49b8a2a44bd8764fe9790ed63cdaab70 | 265 | rs | Rust | src/scoring.rs | mateka/rscuboids | b5685339a5a2e0bce0240ddb11946851734b2951 | [
"MIT"
] | null | null | null | src/scoring.rs | mateka/rscuboids | b5685339a5a2e0bce0240ddb11946851734b2951 | [
"MIT"
] | 10 | 2021-01-03T01:17:51.000Z | 2022-03-25T22:17:03.000Z | src/scoring.rs | mateka/rscuboids | b5685339a5a2e0bce0240ddb11946851734b2951 | [
"MIT"
] | null | null | null | use bevy::prelude::*;
#[derive(Debug, Clone)]
pub struct Score {
pub score: u32,
}
#[derive(Default)]
pub struct ScoringPlugin;
impl Plugin for ScoringPlugin {
fn build(&self, app: &mut AppBuilder) {
app.add_resource(Score { score: 0 });
}
}
| 16.5625 | 45 | 0.637736 |
0bee86659e0bc3c6d26a80fcf722418b2b8bfa12 | 3,855 | js | JavaScript | webpack.config.js | maxchernin/books-library | 8b50b6574a2bc424fd379f29cf1adb236ef011e5 | [
"MIT"
] | 1 | 2020-05-26T11:16:49.000Z | 2020-05-26T11:16:49.000Z | webpack.config.js | maxchernin/books-library | 8b50b6574a2bc424fd379f29cf1adb236ef011e5 | [
"MIT"
] | null | null | null | webpack.config.js | maxchernin/books-library | 8b50b6574a2bc424fd379f29cf1adb236ef011e5 | [
"MIT"
] | null | null | null | /**
* Created by Max on 3/8/2017.
*/
var webpack = require('webpack');
var path = require('path');
var ExtractTextPlugin = require("extract-text-webpack-plugin");
var ChunkManifestPlugin = require("chunk-manifest-webpack-plugin");
var WebpackChunkHash = require("webpack-chunk-hash");
var OpenBrowserPlugin = require("... | 30.117188 | 87 | 0.449287 |
0ef09aabf832abeae4020b86bf154436cfcb156f | 187 | tsx | TypeScript | lib/index.tsx | yangdepp/webpack4-demo | 558dcd89399c8565d6d2a044b275d2be92515dab | [
"MIT"
] | 11 | 2019-03-18T07:14:14.000Z | 2020-07-29T01:04:32.000Z | lib/index.tsx | yangdepp/react-golu-ui | 558dcd89399c8565d6d2a044b275d2be92515dab | [
"MIT"
] | null | null | null | lib/index.tsx | yangdepp/react-golu-ui | 558dcd89399c8565d6d2a044b275d2be92515dab | [
"MIT"
] | null | null | null | import './index.scss';
import Icon from './icon/icon';
import Button from './button/button';
import Dialog from './dialog/dialog';
export { Icon };
export { Button };
export { Dialog };
| 20.777778 | 37 | 0.679144 |
435d15be582ab898799829462a7898f01687476e | 84 | lua | Lua | src/LanguageModel.Tests/CorrectSampleLuaFiles/ComplexTableConstructor.lua | Bhaskers-Blu-Org2/VSLua | 37d87e08930e7f4c182bd43078c68644186854fa | [
"MIT"
] | 186 | 2015-09-28T16:50:16.000Z | 2019-05-03T07:30:23.000Z | src/LanguageModel.Tests/CorrectSampleLuaFiles/ComplexTableConstructor.lua | Strongc/VSLua | ac315984f92dd0301e068c8664d80099194f3ee6 | [
"MIT"
] | 19 | 2015-09-30T22:36:36.000Z | 2019-04-16T20:28:35.000Z | src/LanguageModel.Tests/CorrectSampleLuaFiles/ComplexTableConstructor.lua | Strongc/VSLua | ac315984f92dd0301e068c8664d80099194f3ee6 | [
"MIT"
] | 52 | 2015-09-28T18:35:23.000Z | 2019-05-02T07:08:13.000Z | y = {x=10, ["x"]=0, y=45; "one", print("hello world"), [3] = {x=10}, "two", "three"} | 84 | 84 | 0.464286 |
a9b05bd5351b7b01363b8fffa6ce94a88abbafac | 8,985 | html | HTML | public/themes/admin_simpleboot3/shop/admin_shop/base.html | hcwincom/zzicyun | 856cd97cbbb4bb741c121f34b5b1b2703ad0d61b | [
"Apache-2.0"
] | null | null | null | public/themes/admin_simpleboot3/shop/admin_shop/base.html | hcwincom/zzicyun | 856cd97cbbb4bb741c121f34b5b1b2703ad0d61b | [
"Apache-2.0"
] | null | null | null | public/themes/admin_simpleboot3/shop/admin_shop/base.html | hcwincom/zzicyun | 856cd97cbbb4bb741c121f34b5b1b2703ad0d61b | [
"Apache-2.0"
] | 1 | 2019-08-30T03:05:25.000Z | 2019-08-30T03:05:25.000Z |
<div class="form-group">
<label for="" class="col-sm-2 control-label">{$flag}名称</label>
<div class="col-md-6 col-sm-10">
<input type="text" class="form-control" name="name" value="{$info.name}" />
<present name='change.name'>
<input type="text" class="red form-control" value="{$ch... | 39.756637 | 134 | 0.585977 |
22d8743c7f923a9bc8b526ab8d20a2dcb0371a8d | 341 | kt | Kotlin | android/testData/lint/missingPermissionKotlin.kt | phpc0de/idea-android | 79e20f027ca1d047b91aa7acd92fb71fa2968a09 | [
"Apache-2.0"
] | 831 | 2016-06-09T06:55:34.000Z | 2022-03-30T11:17:10.000Z | android/testData/lint/missingPermissionKotlin.kt | phpc0de/idea-android | 79e20f027ca1d047b91aa7acd92fb71fa2968a09 | [
"Apache-2.0"
] | 19 | 2017-10-27T00:36:35.000Z | 2021-02-04T13:59:45.000Z | android/testData/lint/missingPermissionKotlin.kt | phpc0de/idea-android | 79e20f027ca1d047b91aa7acd92fb71fa2968a09 | [
"Apache-2.0"
] | 210 | 2016-07-05T12:22:36.000Z | 2022-03-19T09:07:15.000Z | package p1.p2
import android.annotation.SuppressLint
import android.app.Activity
import android.location.LocationManager
@Suppress("unused")
@SuppressLint("Registered")
class LocationTest : Activity() {
fun test(manager: LocationManager, provider: String) {
<error>manager.get<caret>LastKnownLocation(provi... | 24.357143 | 68 | 0.762463 |
21d6d42102da21b292510422ece6930d0e92a02c | 2,785 | html | HTML | rite_of_maturity/25.html | Vadskye/personal-website | a9f239ad6658ea300a5ba821ab4a907014492502 | [
"MIT"
] | null | null | null | rite_of_maturity/25.html | Vadskye/personal-website | a9f239ad6658ea300a5ba821ab4a907014492502 | [
"MIT"
] | null | null | null | rite_of_maturity/25.html | Vadskye/personal-website | a9f239ad6658ea300a5ba821ab4a907014492502 | [
"MIT"
] | null | null | null | <h2>Adventuring By Committee</h2>
<p>
Last week, the party noticed that Theodolus had gone missing<sup>1</sup>. They abandoned the corpses they were looting and raced after him. They chased his tracks back to the room with the tieflings, but there were too many exits to know which direction he went<sup>2</sup>, so t... | 47.20339 | 985 | 0.764452 |
61d8e14f781eb54be3fcbf6d4fb6b6ad2de5d92f | 52,677 | pls | SQL | svn_pod/hw/trunk/eagle/VET6_POD.pls | GliderWinchItems/embed | cc72aa7d8208db3871a15e38185e1e125fa7de47 | [
"MIT"
] | 1 | 2019-07-18T07:22:19.000Z | 2019-07-18T07:22:19.000Z | svn_pod/hw/trunk/eagle/VET6_POD.pls | GliderWinchItems/embed | cc72aa7d8208db3871a15e38185e1e125fa7de47 | [
"MIT"
] | null | null | null | svn_pod/hw/trunk/eagle/VET6_POD.pls | GliderWinchItems/embed | cc72aa7d8208db3871a15e38185e1e125fa7de47 | [
"MIT"
] | 2 | 2019-04-03T01:44:46.000Z | 2020-04-01T07:41:41.000Z | G75*
G70*
%OFA0B0*%
%FSLAX24Y24*%
%IPPOS*%
%LPD*%
%AMOC8*
5,1,8,0,0,1.08239X$1,22.5*
%
%ADD10C,0.0080*%
%ADD11C,0.0040*%
%ADD12C,0.0000*%
%ADD13C,0.0050*%
D10*
X001381Y000917D02*
X001381Y030838D01*
X036263Y030838D01*
X036263Y000917D01*
X036341Y000917D01*
X036263Y000917D02*
X001381Y000917D01*
D11*
X013403Y012425D02*
X01... | 18.934939 | 26 | 0.893768 |
d705a44d939961f595a9cbed5580b17ae7dcc890 | 281 | swift | Swift | BitsWallet/Model/CardDetails.swift | danesh-23/bitswallet | 7d5c87d8863ec46a148da4a714533deba544b542 | [
"MIT"
] | null | null | null | BitsWallet/Model/CardDetails.swift | danesh-23/bitswallet | 7d5c87d8863ec46a148da4a714533deba544b542 | [
"MIT"
] | null | null | null | BitsWallet/Model/CardDetails.swift | danesh-23/bitswallet | 7d5c87d8863ec46a148da4a714533deba544b542 | [
"MIT"
] | null | null | null | //
// CardDetails.swift
// BitsWallet
//
// Created by Danesh Rajasolan on 2021-05-25.
//
import Foundation
struct CardDetails: Codable, Equatable {
let number: String
let firstName: String
let lastName: String
let expiryDate: String
let cvvCode: String
}
| 16.529412 | 46 | 0.690391 |
5db70eb71a5c6e0c82e61e08b78dc2e796f50924 | 267 | go | Go | example_format_u2577_test.go | reiver/go-font8x8 | d7d13a60ce2700e4de5802c5f11c363f4eec54bd | [
"MIT"
] | 1 | 2020-01-26T21:51:57.000Z | 2020-01-26T21:51:57.000Z | example_format_u2577_test.go | reiver/go-font8x8 | d7d13a60ce2700e4de5802c5f11c363f4eec54bd | [
"MIT"
] | null | null | null | example_format_u2577_test.go | reiver/go-font8x8 | d7d13a60ce2700e4de5802c5f11c363f4eec54bd | [
"MIT"
] | null | null | null | package font8x8_test
import (
"github.com/reiver/go-font8x8"
"fmt"
)
func ExampleType_Format_u2577() {
fmt.Printf("%z\n", font8x8.U2577)
// Output:
//
// ░░░░░░░░
// ░░░░░░░░
// ░░░░░░░░
// ░░░░░░░░
// ░░░█░░░░
// ░░░█░░░░
// ░░░█░░░░
// ░░░█░░░░
}
| 11.125 | 34 | 0.40824 |
8bae8641e8b2bc7fa794537cd23b6f528d259cb0 | 314 | kt | Kotlin | app/app/src/main/java/com/nikolaykul/android/mvp/comparison/presentation/base/BasePresenter.kt | NikolayKul/Android-mvp-comarison | eef06d295d7f9d0b7514cfeef13c12d38c5f714b | [
"Apache-2.0"
] | null | null | null | app/app/src/main/java/com/nikolaykul/android/mvp/comparison/presentation/base/BasePresenter.kt | NikolayKul/Android-mvp-comarison | eef06d295d7f9d0b7514cfeef13c12d38c5f714b | [
"Apache-2.0"
] | null | null | null | app/app/src/main/java/com/nikolaykul/android/mvp/comparison/presentation/base/BasePresenter.kt | NikolayKul/Android-mvp-comarison | eef06d295d7f9d0b7514cfeef13c12d38c5f714b | [
"Apache-2.0"
] | null | null | null | package com.nikolaykul.android.mvp.comparison.presentation.base
/**
* Created by nikolay
*/
abstract class BasePresenter<TView : BaseMvpView> {
protected var view: TView? = null
open fun attachView(view: TView) {
this.view = view
}
open fun detachView() {
view = null
}
} | 17.444444 | 63 | 0.643312 |
aa27095979c379b76b1938637f89978c181de3a6 | 30,445 | sql | SQL | pealip_trip.sql | wawanneutron/dnmerapi | 4722d92c9b97291a282e3b9432ac4d5a2b5f2498 | [
"MIT"
] | null | null | null | pealip_trip.sql | wawanneutron/dnmerapi | 4722d92c9b97291a282e3b9432ac4d5a2b5f2498 | [
"MIT"
] | null | null | null | pealip_trip.sql | wawanneutron/dnmerapi | 4722d92c9b97291a282e3b9432ac4d5a2b5f2498 | [
"MIT"
] | null | null | null | -- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Sep 23, 2020 at 05:01 PM
-- Server version: 10.3.15-MariaDB
-- PHP Version: 7.3.6
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @O... | 72.661098 | 3,207 | 0.698867 |
c7819002f1c0af9de0fcbe6cafcb8f16a7df76e9 | 9,711 | sql | SQL | realestate scenario/full dynamap output/profiler_output/insertSQLfile.sql | MLacra/mapping_generation_experiments | d44266499c588958745ebf339a2cba62fe0e5409 | [
"Apache-2.0"
] | 1 | 2021-08-25T10:39:01.000Z | 2021-08-25T10:39:01.000Z | realestate scenario/full dynamap output/profiler_output/insertSQLfile.sql | MLacra/mapping_generation_experiments | d44266499c588958745ebf339a2cba62fe0e5409 | [
"Apache-2.0"
] | null | null | null | realestate scenario/full dynamap output/profiler_output/insertSQLfile.sql | MLacra/mapping_generation_experiments | d44266499c588958745ebf339a2cba62fe0e5409 | [
"Apache-2.0"
] | null | null | null | CREATE TABLE cotswold(
prov text,
price text,
url text,
postcode text,
description text,
property_type text,
bedroom_number text,
street_name text,
image text,
period_unit text,
origin_url text,
location_raw text);
COPY cotswold(prov,price,url,postcode,description,property_type,bedroom_number,str... | 22.120729 | 569 | 0.811966 |
28515e8bc9a74cfc3a8a56d5415d5d427c0b0232 | 338 | rb | Ruby | metadata.rb | manabuishii/docker-install-cookbook | 4c2ded4de4406275b171249d39aab5371c1fbb90 | [
"MIT"
] | null | null | null | metadata.rb | manabuishii/docker-install-cookbook | 4c2ded4de4406275b171249d39aab5371c1fbb90 | [
"MIT"
] | null | null | null | metadata.rb | manabuishii/docker-install-cookbook | 4c2ded4de4406275b171249d39aab5371c1fbb90 | [
"MIT"
] | null | null | null | name 'docker-install'
maintainer 'RIKEN Bioinformatics Research Unit Released'
maintainer_email 'Manabu ISHII'
license 'MIT'
description 'Install docker'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '1.2.0'
depends 'apt', '= 7.0.0'
depends 'd... | 30.727273 | 72 | 0.659763 |
a4ad5f2353bd5e841bcc51c4ad6e12273246250a | 372 | swift | Swift | ComposeViewController.swift | stevenpovlitz/Week4TwitterAppSteven | fb56bcbc0924dde3165567a6e77516b36f27c368 | [
"Apache-2.0"
] | null | null | null | ComposeViewController.swift | stevenpovlitz/Week4TwitterAppSteven | fb56bcbc0924dde3165567a6e77516b36f27c368 | [
"Apache-2.0"
] | 2 | 2016-02-22T04:57:40.000Z | 2016-03-01T14:50:54.000Z | ComposeViewController.swift | stevenpovlitz/Week4TwitterAppSteven | fb56bcbc0924dde3165567a6e77516b36f27c368 | [
"Apache-2.0"
] | null | null | null | //
// ComposeViewController.swift
//
//
// Created by Steven Povlitz on 2/27/16.
//
//
import UIKit
class ComposeViewController: UIViewController {
var tweet: Tweet?
override func viewDidLoad() {
super.vieDidLoad()
}
override func didRecieveMemoryWarning() {
... | 13.777778 | 47 | 0.596774 |
4a2c5c1929d7ea817f8e4b54348756191f078dd8 | 1,150 | js | JavaScript | src/commons/indexCalculator.js | sheldarr/Shift | 357dcff771fdd03b23d643b73f0912f0a9916ed5 | [
"MIT"
] | 1 | 2016-04-15T18:36:13.000Z | 2016-04-15T18:36:13.000Z | src/commons/indexCalculator.js | sheldarr/Shift | 357dcff771fdd03b23d643b73f0912f0a9916ed5 | [
"MIT"
] | 8 | 2017-01-17T19:44:54.000Z | 2017-02-05T14:13:14.000Z | src/commons/indexCalculator.js | sheldarr/shift | 357dcff771fdd03b23d643b73f0912f0a9916ed5 | [
"MIT"
] | null | null | null | 'use strict';
import constants from './constants';
const indexCalculator = {
calculateBmi (weight, height) {
return weight / Math.pow(height / 100, 2);
},
calculateBmr (weight, height, age, sex) {
if (sex == constants.sex.male) {
return 66.4730 + ((13.7516 * weight) +
... | 27.380952 | 104 | 0.582609 |
818e40365394dea65b44fe652d41be64aae4071e | 658 | rs | Rust | src/test/ui/impl-trait/recursive-impl-trait-type-through-non-recursive.rs | Eric-Arellano/rust | 0f6f2d681b39c5f95459cd09cb936b6ceb27cd82 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 66,762 | 2015-01-01T08:32:03.000Z | 2022-03-31T23:26:40.000Z | src/test/ui/impl-trait/recursive-impl-trait-type-through-non-recursive.rs | Eric-Arellano/rust | 0f6f2d681b39c5f95459cd09cb936b6ceb27cd82 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 76,993 | 2015-01-01T00:06:33.000Z | 2022-03-31T23:59:15.000Z | src/test/ui/impl-trait/recursive-impl-trait-type-through-non-recursive.rs | Eric-Arellano/rust | 0f6f2d681b39c5f95459cd09cb936b6ceb27cd82 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 11,787 | 2015-01-01T00:01:19.000Z | 2022-03-31T19:03:42.000Z | // Test that impl trait does not allow creating recursive types that are
// otherwise forbidden. Even when there's an opaque type in another crate
// hiding this.
fn id<T>(t: T) -> impl Sized { t }
fn recursive_id() -> impl Sized { //~ ERROR cannot resolve opaque type
id(recursive_id2())
}
fn recursive_id2() -> ... | 25.307692 | 73 | 0.674772 |
9305ebbb9253563c09d10eb14dca45fe2eb787c1 | 63 | kt | Kotlin | kcqrs-client-gson/src/test/kotlin/com/clouway/kcqrs/client/LearnToUseEventStoreTest.kt | clouway/kcqrs | 31dcf617cfcc36b6056d08ccfc17550e1f3de7e7 | [
"Apache-2.0"
] | 24 | 2018-01-04T19:49:42.000Z | 2021-12-31T18:41:11.000Z | kcqrs-client-gson/src/test/kotlin/com/clouway/kcqrs/client/LearnToUseEventStoreTest.kt | clouway/kcqrs | 31dcf617cfcc36b6056d08ccfc17550e1f3de7e7 | [
"Apache-2.0"
] | 39 | 2018-01-04T19:53:24.000Z | 2019-11-05T16:24:57.000Z | kcqrs-client-gson/src/test/kotlin/com/clouway/kcqrs/client/LearnToUseEventStoreTest.kt | clouway/kcqrs | 31dcf617cfcc36b6056d08ccfc17550e1f3de7e7 | [
"Apache-2.0"
] | 6 | 2018-01-09T14:36:36.000Z | 2018-08-29T12:14:16.000Z | /**
* @author Miroslav Genov (miroslav.genov@clouway.com)
*/
| 15.75 | 54 | 0.666667 |
7078c24d73c49d536150e026c4828643612b4269 | 1,035 | h | C | src/include/frmPassword.h | dpage/pgadmin3 | 6784e6281831a083fe5a0bbd49eac90e1a6ac547 | [
"Artistic-1.0"
] | 2 | 2021-07-16T21:45:41.000Z | 2021-08-14T15:54:17.000Z | src/include/frmPassword.h | dpage/pgadmin3 | 6784e6281831a083fe5a0bbd49eac90e1a6ac547 | [
"Artistic-1.0"
] | null | null | null | src/include/frmPassword.h | dpage/pgadmin3 | 6784e6281831a083fe5a0bbd49eac90e1a6ac547 | [
"Artistic-1.0"
] | 2 | 2017-11-18T15:00:24.000Z | 2021-08-14T15:54:30.000Z | //////////////////////////////////////////////////////////////////////////
//
// pgAdmin III - PostgreSQL Tools
// RCS-ID: $Id$
// Copyright (C) 2002 - 2010, The pgAdmin Development Team
// This software is released under the Artistic Licence
//
// frmPassword.h - Change password
//
///////////////////////////////... | 23.522727 | 76 | 0.611594 |
5c9d04810d991d11bddda922ee6dc627de18612e | 314 | lua | Lua | lua/nvim/plugins/markdown-preview/init.lua | Frankcs96/Vim-conf-Lua | 32a4cc43944f3a3c813adbad597369d9c056d3d7 | [
"MIT"
] | 1 | 2021-03-24T20:04:38.000Z | 2021-03-24T20:04:38.000Z | lua/nvim/plugins/markdown-preview/init.lua | Frankcs96/Vim-conf-Lua | 32a4cc43944f3a3c813adbad597369d9c056d3d7 | [
"MIT"
] | null | null | null | lua/nvim/plugins/markdown-preview/init.lua | Frankcs96/Vim-conf-Lua | 32a4cc43944f3a3c813adbad597369d9c056d3d7 | [
"MIT"
] | null | null | null | Variable.g({
mkdp_auto_start = true,
mkdp_auto_close = true,
mkdp_refresh_slow = false,
mkdp_command_for_global = false,
mkdp_open_to_the_world = false,
mkdp_browser = 'chromium',
mkdp_echo_preview_url = true,
mkdp_preview_options = {
sync_scroll_type = 'middle',
},
mkdp_filetypes = { 'markdown' }
})
| 22.428571 | 33 | 0.742038 |
9be812cbc9b11604750377a11f36997310cd730b | 1,905 | js | JavaScript | test/registrationTesting.js | Loaki07/BookStore_BackEnd | 7383b5afb12525b2959a91f5450b699eb6d767a1 | [
"MIT"
] | null | null | null | test/registrationTesting.js | Loaki07/BookStore_BackEnd | 7383b5afb12525b2959a91f5450b699eb6d767a1 | [
"MIT"
] | null | null | null | test/registrationTesting.js | Loaki07/BookStore_BackEnd | 7383b5afb12525b2959a91f5450b699eb6d767a1 | [
"MIT"
] | null | null | null | import chai from 'chai';
import chaiHttp from 'chai-http';
import { server } from '../app.js';
// Assertion Style
chai.should();
chai.use(chaiHttp);
describe('Registration API', () => {
/**
* @describe Testing LogIn POST request
*/
// describe('POST /registration', () => {
// it('It should register use... | 29.765625 | 136 | 0.532808 |
096469f1ebe2c28e4d15198cda6a4eb18351c894 | 1,675 | kt | Kotlin | dapp/src/main/kotlin/jp/co/soramitsu/dapp/config/DappContextConfiguration.kt | d3ledger/iroha-dapp | e3c0701897721030bb3faf678b197297120cc6e3 | [
"Apache-2.0"
] | 2 | 2019-06-21T07:20:37.000Z | 2019-12-07T10:34:53.000Z | dapp/src/main/kotlin/jp/co/soramitsu/dapp/config/DappContextConfiguration.kt | d3ledger/iroha-dapp | e3c0701897721030bb3faf678b197297120cc6e3 | [
"Apache-2.0"
] | 1 | 2019-05-17T07:05:40.000Z | 2019-05-17T07:05:40.000Z | dapp/src/main/kotlin/jp/co/soramitsu/dapp/config/DappContextConfiguration.kt | d3ledger/iroha-dapp | e3c0701897721030bb3faf678b197297120cc6e3 | [
"Apache-2.0"
] | 1 | 2019-06-26T15:08:02.000Z | 2019-06-26T15:08:02.000Z | /*
* Copyright D3 Ledger, Inc. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package jp.co.soramitsu.dapp.config
import com.d3.commons.config.RMQConfig
import com.d3.commons.config.loadRawLocalConfigs
import com.d3.commons.healthcheck.HealthCheckEndpoint
import com.d3.commons.sidechain.iroha.Reliab... | 27.916667 | 102 | 0.751642 |
2a42915962b1a8efbdbe291c7caaba9d1c160985 | 614 | lua | Lua | MMOCoreORB/bin/scripts/mobile/outfits/mos_taike_mayor_outfit.lua | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 18 | 2017-02-09T15:36:05.000Z | 2021-12-21T04:22:15.000Z | MMOCoreORB/bin/scripts/mobile/outfits/mos_taike_mayor_outfit.lua | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 61 | 2016-12-30T21:51:10.000Z | 2021-12-10T20:25:56.000Z | MMOCoreORB/bin/scripts/mobile/outfits/mos_taike_mayor_outfit.lua | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 71 | 2017-01-01T05:34:38.000Z | 2022-03-29T01:04:00.000Z | mos_taike_mayor_outfit = {
{
{objectTemplate = "object/tangible/wearables/shirt/shirt_s07.iff", customizationVariables = {} },
{objectTemplate = "object/tangible/wearables/pants/pants_s01.iff", customizationVariables = {} },
{objectTemplate = "object/tangible/wearables/boots/boots_s04.iff", customizationVariabl... | 47.230769 | 104 | 0.760586 |
dfcfb1f1136e233a7de1970010c60bbd9320534e | 664 | ts | TypeScript | src/server.ts | DanielSpasov/Cr46-Server | 01424750c10c6635375ce85d3abbe66ebb524263 | [
"MIT"
] | null | null | null | src/server.ts | DanielSpasov/Cr46-Server | 01424750c10c6635375ce85d3abbe66ebb524263 | [
"MIT"
] | null | null | null | src/server.ts | DanielSpasov/Cr46-Server | 01424750c10c6635375ce85d3abbe66ebb524263 | [
"MIT"
] | null | null | null | import express, { Application } from 'express';
import dotenv from 'dotenv';
import mongoose from 'mongoose';
const cors = require('cors');
import router from './routes';
dotenv.config();
const app: Application = express();
app.use(cors());
app.use(express.urlencoded({ extended: true }));
app.use(express.json());
a... | 27.666667 | 101 | 0.691265 |
3ef2869ba1a5ee3afa9cfef8dbbea0d3f5824ff8 | 738 | h | C | watchtest/Location.h | andriitishchenko/watchtest | 51f1cb562639e91cadcf7cafaa9de814aea804fa | [
"MIT"
] | null | null | null | watchtest/Location.h | andriitishchenko/watchtest | 51f1cb562639e91cadcf7cafaa9de814aea804fa | [
"MIT"
] | null | null | null | watchtest/Location.h | andriitishchenko/watchtest | 51f1cb562639e91cadcf7cafaa9de814aea804fa | [
"MIT"
] | null | null | null | //
// Location.h
// watchtest
//
// Created by Andrii Tishchenko on 27.07.15.
// Copyright (c) 2015 Andrii Tishchenko. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
@class Track;
@interface Location : NSManagedObject
@property (nonatomic, retain) NSNumber * altitude;
@p... | 27.333333 | 62 | 0.746612 |
7f7bb7c609362d0ad71248cbc37d0d27d084db15 | 3,130 | go | Go | pkg/cmd/lookup_tables/create/create.go | SumoLogic-Labs/sumocli | 7c05ce2bcfa38163728a25199e2d5876e0bc024f | [
"Apache-2.0"
] | 1 | 2022-01-08T09:29:31.000Z | 2022-01-08T09:29:31.000Z | pkg/cmd/lookup_tables/create/create.go | SumoLogic-Labs/sumocli | 7c05ce2bcfa38163728a25199e2d5876e0bc024f | [
"Apache-2.0"
] | 4 | 2022-01-08T08:38:38.000Z | 2022-01-10T11:43:55.000Z | pkg/cmd/lookup_tables/create/create.go | SumoLogic-Labs/sumocli | 7c05ce2bcfa38163728a25199e2d5876e0bc024f | [
"Apache-2.0"
] | null | null | null | package create
import (
"github.com/SumoLogic-Labs/sumocli/pkg/cmdutils"
"github.com/SumoLogic-Labs/sumologic-go-sdk/service/cip"
"github.com/SumoLogic-Labs/sumologic-go-sdk/service/cip/types"
"github.com/spf13/cobra"
)
func NewCmdLookupTablesCreate(client *cip.APIClient) *cobra.Command {
var (
description ... | 46.029412 | 144 | 0.728435 |
42fa64dc263085410d05e3e26e21e27b17a63232 | 2,246 | swift | Swift | TFGMLive/StationServiceAdapter/StationServiceAdapter.swift | Winnie90/TFGMLive | f8cc19e1812a137c3165a893960b3d7499aca567 | [
"MIT"
] | null | null | null | TFGMLive/StationServiceAdapter/StationServiceAdapter.swift | Winnie90/TFGMLive | f8cc19e1812a137c3165a893960b3d7499aca567 | [
"MIT"
] | null | null | null | TFGMLive/StationServiceAdapter/StationServiceAdapter.swift | Winnie90/TFGMLive | f8cc19e1812a137c3165a893960b3d7499aca567 | [
"MIT"
] | null | null | null | import Foundation
import StationRequest
struct StationServiceAdapter: DataSourceChangedDelegate {
init() {
WatchSessionManager.sharedManager.addDataSourceChangedDelegate(delegate: self)
}
func getAllStationRecords(completion: @escaping ([StationRecord], Error?)->()) {
StationS... | 35.09375 | 119 | 0.627337 |
c317158792fcfdc95316695b9156d46086ea78c4 | 3,200 | rs | Rust | src/assets_cache.rs | Leinnan/doppler | 9320ed97b683f40337485ae55175643ad754d4d1 | [
"MIT"
] | 1 | 2020-11-29T02:35:53.000Z | 2020-11-29T02:35:53.000Z | src/assets_cache.rs | Leinnan/doppler | 9320ed97b683f40337485ae55175643ad754d4d1 | [
"MIT"
] | null | null | null | src/assets_cache.rs | Leinnan/doppler | 9320ed97b683f40337485ae55175643ad754d4d1 | [
"MIT"
] | null | null | null | use crate::mesh::Texture;
use crate::model::Model;
use crate::utils::load_texture_from_dir;
use log::{error, info};
use std::collections::hash_map::DefaultHasher;
use std::collections::HashMap;
use std::hash::{Hash, Hasher};
#[derive(Default)]
pub struct AssetsCache {
textures: HashMap<u64, Texture>,
models: H... | 32.323232 | 95 | 0.534063 |
875a6e9cf01e4dbff3791462853d42c3fd1fab82 | 171 | html | HTML | template.html | honux77/level1-js | 61a615e1984714750c0cb57b82250d822cd25e2e | [
"MIT"
] | null | null | null | template.html | honux77/level1-js | 61a615e1984714750c0cb57b82250d822cd25e2e | [
"MIT"
] | null | null | null | template.html | honux77/level1-js | 61a615e1984714750c0cb57b82250d822cd25e2e | [
"MIT"
] | 1 | 2017-11-03T06:13:47.000Z | 2017-11-03T06:13:47.000Z | <!DOCTYPE html>
<html>
<title>HTML Tutorial</title>
<head>
<meta charset="utf-8">
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html> | 13.153846 | 28 | 0.631579 |
d7d0d8ac328896fae6e48e4e4efa97581abc3b66 | 1,197 | swift | Swift | Leetcode-Swift/Leetcode/1122.swift | devshiye/Leetcode-Swift | 5bf0bba0778fcf275c02f1f6c496ea5b0ddf4692 | [
"MIT"
] | null | null | null | Leetcode-Swift/Leetcode/1122.swift | devshiye/Leetcode-Swift | 5bf0bba0778fcf275c02f1f6c496ea5b0ddf4692 | [
"MIT"
] | null | null | null | Leetcode-Swift/Leetcode/1122.swift | devshiye/Leetcode-Swift | 5bf0bba0778fcf275c02f1f6c496ea5b0ddf4692 | [
"MIT"
] | null | null | null | //
// 1122.swift
// Leetcode-Swift
//
// Created by devshiye on 2022/1/2.
//
import Foundation
/*
1122. 数组的相对排序 (简单)
https://leetcode-cn.com/problems/relative-sort-array/
*/
class Solution_1122 {
func relativeSortArray(_ arr1: [Int], _ arr2: [Int]) -> [Int] {
if arr1.isEmpty {
return []... | 19 | 67 | 0.429407 |
e20903ec8722eb5f701a089f1f3b368daa074940 | 3,606 | kt | Kotlin | src/app.kt | kmdinake/fuzzy-lamp | 12c5c195ae73fb78695bdcb9da8b53e6c01e7c19 | [
"MIT"
] | null | null | null | src/app.kt | kmdinake/fuzzy-lamp | 12c5c195ae73fb78695bdcb9da8b53e6c01e7c19 | [
"MIT"
] | null | null | null | src/app.kt | kmdinake/fuzzy-lamp | 12c5c195ae73fb78695bdcb9da8b53e6c01e7c19 | [
"MIT"
] | null | null | null | import ai.*
fun main(args: Array<String>){
println("=================> Boundary Constrained PSO <=================")
var userInput: String?
var selectedPSOVariant: Int
var numberOfEpochs: Int
var numberOfParticles: Int
var numberOfDimensions: Int
do {
displayPSOVariants()
p... | 33.700935 | 89 | 0.559623 |
bf3a1f7ef273a950dad67e0fe992d641c9942eb2 | 288 | swift | Swift | SooMusic/Cell/SongCollectiveTypeTableViewCell.swift | martinolee/SooMusic | fa97a743165ae57c45644d8b08a549d987f41190 | [
"MIT"
] | null | null | null | SooMusic/Cell/SongCollectiveTypeTableViewCell.swift | martinolee/SooMusic | fa97a743165ae57c45644d8b08a549d987f41190 | [
"MIT"
] | null | null | null | SooMusic/Cell/SongCollectiveTypeTableViewCell.swift | martinolee/SooMusic | fa97a743165ae57c45644d8b08a549d987f41190 | [
"MIT"
] | null | null | null | //
// SongCollectiveTypeTableViewCell.swift
// SooMusic
//
// Created by Soohan Lee on 2019/12/10.
// Copyright © 2019 Soohan. All rights reserved.
//
import UIKit
class SongCollectiveTypeTableViewCell: UITableViewCell {
static let identifier = "SongCollectiveTypeCell"
}
| 18 | 56 | 0.732639 |
fc5006ee346248bf6ddad220681806a05206eb8a | 2,695 | kt | Kotlin | app/src/main/java/eu/yeger/koffee/ui/user/editing/UserEditingViewModel.kt | koffee-project/koffee-app | 8fd30631154ea3b9f568297152250322dd6d2f58 | [
"Apache-2.0"
] | 1 | 2021-07-20T13:09:25.000Z | 2021-07-20T13:09:25.000Z | app/src/main/java/eu/yeger/koffee/ui/user/editing/UserEditingViewModel.kt | koffee-project/koffee-app | 8fd30631154ea3b9f568297152250322dd6d2f58 | [
"Apache-2.0"
] | 1 | 2021-01-21T13:06:30.000Z | 2021-01-21T14:27:19.000Z | app/src/main/java/eu/yeger/koffee/ui/user/editing/UserEditingViewModel.kt | koffee-project/koffee-app | 8fd30631154ea3b9f568297152250322dd6d2f58 | [
"Apache-2.0"
] | null | null | null | package eu.yeger.koffee.ui.user.editing
import androidx.lifecycle.MutableLiveData
import eu.yeger.koffee.repository.AdminRepository
import eu.yeger.koffee.repository.UserRepository
import eu.yeger.koffee.ui.CoroutineViewModel
import eu.yeger.koffee.ui.DataAction
import eu.yeger.koffee.utility.nullIfBlank
import eu.yeg... | 37.957746 | 164 | 0.686827 |
7108837efff92e55c59707968481856347aa40d7 | 3,063 | swift | Swift | Struct/StructDemo.playground/Contents.swift | dengfeng520/RPDemo | 95c283f102f4aeee9af1842eb5579b3aae71e869 | [
"MIT"
] | null | null | null | Struct/StructDemo.playground/Contents.swift | dengfeng520/RPDemo | 95c283f102f4aeee9af1842eb5579b3aae71e869 | [
"MIT"
] | null | null | null | Struct/StructDemo.playground/Contents.swift | dengfeng520/RPDemo | 95c283f102f4aeee9af1842eb5579b3aae71e869 | [
"MIT"
] | null | null | null | import UIKit
var str = "Hello, playground"
// MARK: - struct
struct Color {
var red: Double = 0
var green: Double = 0
var blue: Double = 0
var alpha: Double? = 1
init(red: Double = 0, green: Double = 0, blue: Double = 0, alpha: Double? = 1) {
self.red = red
self.green... | 22.357664 | 95 | 0.5746 |
f83cf27b6384c0eafdfe24c0bf1bfdcb69f7a970 | 33,836 | kt | Kotlin | godot-kotlin/src/nativeGen/kotlin/godot/Image.kt | m4gr3d/godot-kotlin-native | 2a8529085ccb4aec280f898dc220c8aafd6d6de4 | [
"MIT"
] | 56 | 2019-01-17T13:32:07.000Z | 2022-01-11T23:33:50.000Z | godot-kotlin/src/nativeGen/kotlin/godot/Image.kt | m4gr3d/godot-kotlin-native | 2a8529085ccb4aec280f898dc220c8aafd6d6de4 | [
"MIT"
] | 25 | 2020-01-27T15:13:06.000Z | 2020-03-17T10:25:22.000Z | godot-kotlin/src/nativeGen/kotlin/godot/Image.kt | m4gr3d/godot-kotlin-native | 2a8529085ccb4aec280f898dc220c8aafd6d6de4 | [
"MIT"
] | 5 | 2020-01-27T14:45:21.000Z | 2020-04-26T09:41:11.000Z | // DO NOT EDIT, THIS FILE IS GENERATED FROM api.json
package godot
import gdnative.godot_method_bind
import gdnative.godot_string
import godot.core.Allocator
import godot.core.Color
import godot.core.Dictionary
import godot.core.GDError
import godot.core.Godot
import godot.core.PoolByteArray
import godot.core.Rect2
im... | 30.84412 | 95 | 0.645585 |
45ab81169fda8d9ecec9bf134a1c83977a01a27e | 1,637 | kt | Kotlin | ZimLX/src/org/zimmob/zimlx/preferences/RecyclerViewFragment.kt | damoasda/ZimLX | 0a52e0fcb7a068135d938da4d93d5b0ac91d95fa | [
"Apache-2.0"
] | 183 | 2018-05-03T03:08:09.000Z | 2021-12-26T18:22:57.000Z | ZimLX/src/org/zimmob/zimlx/preferences/RecyclerViewFragment.kt | damoasda/ZimLX | 0a52e0fcb7a068135d938da4d93d5b0ac91d95fa | [
"Apache-2.0"
] | 75 | 2018-06-04T15:11:53.000Z | 2020-07-30T18:08:20.000Z | ZimLX/src/org/zimmob/zimlx/preferences/RecyclerViewFragment.kt | damoasda/ZimLX | 0a52e0fcb7a068135d938da4d93d5b0ac91d95fa | [
"Apache-2.0"
] | 28 | 2018-06-07T03:42:17.000Z | 2021-04-12T04:38:43.000Z | /*
* This file is part of Lawnchair Launcher.
*
* Lawnchair Launcher is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later v... | 38.069767 | 116 | 0.74832 |
290ceb7e46e3bd7a90b0fcd755675f3ecfeae87b | 814 | py | Python | billing/integrations/stripe_integration.py | SimpleTax/merchant | 12ec88f6e47f81748add84cd82b0f6c8ac0aa2fc | [
"BSD-3-Clause"
] | null | null | null | billing/integrations/stripe_integration.py | SimpleTax/merchant | 12ec88f6e47f81748add84cd82b0f6c8ac0aa2fc | [
"BSD-3-Clause"
] | null | null | null | billing/integrations/stripe_integration.py | SimpleTax/merchant | 12ec88f6e47f81748add84cd82b0f6c8ac0aa2fc | [
"BSD-3-Clause"
] | null | null | null | from billing import Integration, get_gateway
from django.conf import settings
from django.conf.urls import patterns, url
from billing.forms.stripe_forms import StripeForm
class StripeIntegration(Integration):
def __init__(self):
super(StripeIntegration, self).__init__()
self.gateway = get_gateway... | 30.148148 | 78 | 0.697789 |
d7909f424ebd2528aa891a42af349004f7dc2030 | 1,122 | kt | Kotlin | library/src/main/kotlin/com/daniloaraujosilva/mathemagika/library/common/mathematica/functions/OutputControllabilityMatrix.kt | Danilo-Araujo-Silva/mathemagika | 4fcf68af14f55b8634132d34f61dae8bb2ee2942 | [
"Apache-2.0"
] | 2 | 2021-02-19T15:55:33.000Z | 2021-04-11T01:09:41.000Z | library/src/main/kotlin/com/daniloaraujosilva/mathemagika/library/common/mathematica/functions/OutputControllabilityMatrix.kt | Danilo-Araujo-Silva/mathemagika | 4fcf68af14f55b8634132d34f61dae8bb2ee2942 | [
"Apache-2.0"
] | null | null | null | library/src/main/kotlin/com/daniloaraujosilva/mathemagika/library/common/mathematica/functions/OutputControllabilityMatrix.kt | Danilo-Araujo-Silva/mathemagika | 4fcf68af14f55b8634132d34f61dae8bb2ee2942 | [
"Apache-2.0"
] | null | null | null | package com.daniloaraujosilva.mathemagika.library.common.mathematica.functions
import com.daniloaraujosilva.mathemagika.library.common.mathematica.MathematicaFunction
/**
*````
*
* Name: OutputControllabilityMatrix
*
* Full name: System`OutputControllabilityMatrix
*
* Usage: Outpu... | 28.769231 | 130 | 0.683601 |
53e75971968a161e253830ce21da6a93b338320d | 2,330 | java | Java | src/main/java/com/codetaylor/mc/athenaeum/integration/crafttweaker/PluginDelegate.java | codetaylor/athenaeum-1.12 | 4be7edcbffc4407165ca9fedddd55f397fae7616 | [
"Apache-2.0"
] | 1 | 2020-07-04T09:13:03.000Z | 2020-07-04T09:13:03.000Z | src/main/java/com/codetaylor/mc/athenaeum/integration/crafttweaker/PluginDelegate.java | codetaylor/athenaeum | 4be7edcbffc4407165ca9fedddd55f397fae7616 | [
"Apache-2.0"
] | 5 | 2017-12-24T00:03:03.000Z | 2020-01-02T16:21:32.000Z | src/main/java/com/codetaylor/mc/athenaeum/integration/crafttweaker/PluginDelegate.java | codetaylor/athenaeum | 4be7edcbffc4407165ca9fedddd55f397fae7616 | [
"Apache-2.0"
] | 1 | 2018-02-10T00:38:42.000Z | 2018-02-10T00:38:42.000Z | package com.codetaylor.mc.athenaeum.integration.crafttweaker;
import crafttweaker.IAction;
import net.minecraftforge.fml.common.Loader;
import net.minecraftforge.fml.common.ModContainer;
import java.util.HashMap;
import java.util.Map;
/**
* 2018.1.2:
* This class has been refactored to provide a delegate for each ... | 27.738095 | 94 | 0.727897 |
1aa3c5c20742e6cf2d0524acb04e5fd70fa23880 | 2,140 | rs | Rust | actix-redis/src/command/cluster_setslot.rs | Idein/actix-extras | f249474f01c50b70dbfaf065ea822629880c3c22 | [
"Apache-2.0",
"MIT"
] | null | null | null | actix-redis/src/command/cluster_setslot.rs | Idein/actix-extras | f249474f01c50b70dbfaf065ea822629880c3c22 | [
"Apache-2.0",
"MIT"
] | 1 | 2020-05-01T09:39:27.000Z | 2020-05-08T03:02:58.000Z | actix-redis/src/command/cluster_setslot.rs | Idein/actix-extras | f249474f01c50b70dbfaf065ea822629880c3c22 | [
"Apache-2.0",
"MIT"
] | 1 | 2020-04-30T06:16:26.000Z | 2020-04-30T06:16:26.000Z | use super::{DeserializeError, RedisCommand};
use crate::Error;
use actix::Message;
use redis_async::{resp::RespValue, resp_array};
#[derive(Debug)]
pub enum ClusterSetSlot {
Importing { slot: u16, source_node_id: String },
Migrating { slot: u16, dest_node_id: String },
Stable { slot: u16 },
Node { slo... | 26.419753 | 84 | 0.533178 |
01ba886e08360db0eb4af9d1358646016559bc48 | 529 | rs | Rust | examples/end2end_horizontal_switch_views.rs | Bolto720/cursive-multiplex | c4d5e5f4fdd5148d74a6b4ad166c1c9c06ab2dee | [
"BSD-3-Clause"
] | null | null | null | examples/end2end_horizontal_switch_views.rs | Bolto720/cursive-multiplex | c4d5e5f4fdd5148d74a6b4ad166c1c9c06ab2dee | [
"BSD-3-Clause"
] | null | null | null | examples/end2end_horizontal_switch_views.rs | Bolto720/cursive-multiplex | c4d5e5f4fdd5148d74a6b4ad166c1c9c06ab2dee | [
"BSD-3-Clause"
] | null | null | null | use cursive::views::TextView;
use cursive_multiplex::Mux;
fn main() {
let mut siv = cursive::default();
let mut mux = Mux::new();
let right = mux
.add_right_of(
TextView::new("Right".to_string()),
mux.root().build().unwrap(),
)
.expect("right failed");
le... | 25.190476 | 58 | 0.57656 |
85603caffc760be5132982454dfeac190a53109d | 418 | swift | Swift | Opera/Opera/Domain/Repositories/MoviesRepository.swift | Mahmoud-Abdelwahab/Opera-MVVM-C-Clean-Architecture | f212c0cdcde614c2fc6c474b8e657228aed410d1 | [
"MIT"
] | 4 | 2021-06-21T13:11:20.000Z | 2021-07-27T05:20:29.000Z | Opera/Opera/Domain/Repositories/MoviesRepository.swift | Mahmoud-Abdelwahab/Opera-MVVM-C-Clean-Architecture | f212c0cdcde614c2fc6c474b8e657228aed410d1 | [
"MIT"
] | null | null | null | Opera/Opera/Domain/Repositories/MoviesRepository.swift | Mahmoud-Abdelwahab/Opera-MVVM-C-Clean-Architecture | f212c0cdcde614c2fc6c474b8e657228aed410d1 | [
"MIT"
] | 2 | 2021-06-21T13:49:36.000Z | 2021-09-23T15:09:40.000Z | //
// MoviesRepository.swift
// Opera
//
// Created by Mahmoud Abdul-Wahab on 20/06/2021.
//
import Foundation
import RxSwift
protocol MoviesRepository {
func getNowPlaying(page: Int)->Observable<Page<Movie>>
func getTopRated(page: Int)->Observable<Page<Movie>>
func getMovieDetails(id: Int)->Observabl... | 24.588235 | 79 | 0.729665 |
3d4688eb05815675efb6732d6446676675d2776e | 2,928 | rs | Rust | src/launcher.rs | choihongil/sway-cli | 73f3f5d4faa5f6c6cc7ef494039ee5e6b4c98c10 | [
"MIT"
] | null | null | null | src/launcher.rs | choihongil/sway-cli | 73f3f5d4faa5f6c6cc7ef494039ee5e6b4c98c10 | [
"MIT"
] | null | null | null | src/launcher.rs | choihongil/sway-cli | 73f3f5d4faa5f6c6cc7ef494039ee5e6b4c98c10 | [
"MIT"
] | null | null | null | use std::env;
use std::fs;
const CONTAINER_TYPES: [&str; 2] = ["con", "floating_con"];
pub fn node_tree() -> Result<serde_json::Value, crate::error::Error> {
let response = crate::sway_ipc::MessageType::GetTree.execute()?;
Ok(serde_json::from_slice(&response)?)
}
fn containers(node: &serde_json::Value) -> Ve... | 30.821053 | 83 | 0.53791 |
995a33e6b045a23a0ad4db8f32d9661eea961b58 | 846 | h | C | Password Sync 2/PSSEncryptor.h | remyvhw/passwordsync-2 | 3bed389cfb6cb56408d2940bb0ec03958dad40e8 | [
"MIT"
] | null | null | null | Password Sync 2/PSSEncryptor.h | remyvhw/passwordsync-2 | 3bed389cfb6cb56408d2940bb0ec03958dad40e8 | [
"MIT"
] | null | null | null | Password Sync 2/PSSEncryptor.h | remyvhw/passwordsync-2 | 3bed389cfb6cb56408d2940bb0ec03958dad40e8 | [
"MIT"
] | 1 | 2020-04-02T07:40:45.000Z | 2020-04-02T07:40:45.000Z | //
// PSSEncryptor.h
// Password Sync 2
//
// Created by Remy Vanherweghem on 2013-07-06.
// Copyright (c) 2013 Pumax. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface PSSEncryptor : NSObject
+(NSData*)decryptData:(NSData*)encryptedData;
+(NSData*)encryptData:(NSData*)dataToEncrypt;
+(NSData... | 30.214286 | 107 | 0.765957 |
22edb9a37bf27293d95be7c9df8eaef3483fa902 | 358 | h | C | source/application/ui.h | Adv4nc3d/Win32App | ee6a1c237dac712ab56ee38ecb173e0d2a7ca581 | [
"BSD-3-Clause"
] | null | null | null | source/application/ui.h | Adv4nc3d/Win32App | ee6a1c237dac712ab56ee38ecb173e0d2a7ca581 | [
"BSD-3-Clause"
] | null | null | null | source/application/ui.h | Adv4nc3d/Win32App | ee6a1c237dac712ab56ee38ecb173e0d2a7ca581 | [
"BSD-3-Clause"
] | null | null | null | /**
*
* Win32 Application
* by Adv4nc3d
*
* Copyright 2021. All Rights Reserved.
*
* application/ui.h
*
*/
#ifndef UI_H
#define UI_H
// Context Menu
#define ID_CMENU_EXIT 200
#define ID_CMENU_APPNAME 201
/**
*
* extern
*
*/
void HandleButtonCmd(HWND hwnd, WPARAM wParam, HINSTANCE hInstance);
void HandleIconNoti... | 11.1875 | 68 | 0.715084 |
b0fcc17787f4c394b850762619dc525df7509625 | 920 | rs | Rust | src/lib.rs | rhysd/detect_git_service | cd8dd9b5e733260457ee1d412093ea354e6294e8 | [
"MIT"
] | 1 | 2019-02-05T23:58:32.000Z | 2019-02-05T23:58:32.000Z | src/lib.rs | rhysd/detect_git_service | cd8dd9b5e733260457ee1d412093ea354e6294e8 | [
"MIT"
] | null | null | null | src/lib.rs | rhysd/detect_git_service | cd8dd9b5e733260457ee1d412093ea354e6294e8 | [
"MIT"
] | null | null | null | //! Detect Git hosting service from file path
//!
//! This library provides APIs to detect Git hosting service used for given
//! file path. Service is detected based on a URL of remote repository of the
//! path.
//!
//! ```
//! use std::path::Path;
//! use detect_git_service::GitService;
//!
//! let path = Path::new(... | 25.555556 | 77 | 0.656522 |
a9c0804dc587b865e59ef3abb909da674d4ba92f | 427 | html | HTML | components/form-tel-field/html/country-sync-input.html | Frontendcore/frontendcore | 5cb4dfa4b3940d341de9cee30be6fd69f9ba37de | [
"Apache-2.0"
] | 6 | 2015-02-18T14:02:15.000Z | 2018-11-05T08:31:32.000Z | components/form-tel-field/html/country-sync-input.html | Frontendcore/frontendcore | 5cb4dfa4b3940d341de9cee30be6fd69f9ba37de | [
"Apache-2.0"
] | 10 | 2015-04-01T14:42:21.000Z | 2017-05-31T10:06:38.000Z | components/form-tel-field/html/country-sync-input.html | Frontendcore/frontendcore | 5cb4dfa4b3940d341de9cee30be6fd69f9ba37de | [
"Apache-2.0"
] | 4 | 2015-04-01T14:34:36.000Z | 2016-04-22T09:05:07.000Z | <ol>
<li>
<label>Telephone number</label>
<input id="phone" type="tel" data-fc-modules="tel-field" data-fc-country-field="#address-country-sync-input" data-fc-code-field="#code-country-sync-input">
</li>
<li>
<label>Country</label>
<input type="text" id="address-country-sync-input" />
</li>
<l... | 30.5 | 159 | 0.629977 |
41a1f81985fc9b8cc92379e1a9fee4ec95939798 | 688 | h | C | src/common.h | MartinezTorres/msx_qrcode | cc736e363f6c751f409eaabf18943559f6812372 | [
"MIT"
] | 2 | 2020-05-22T13:45:07.000Z | 2020-05-25T11:59:08.000Z | src/common.h | MartinezTorres/msx_qrcode | cc736e363f6c751f409eaabf18943559f6812372 | [
"MIT"
] | null | null | null | src/common.h | MartinezTorres/msx_qrcode | cc736e363f6c751f409eaabf18943559f6812372 | [
"MIT"
] | null | null | null | #pragma once
// If DEBUG is defined, the function debugBorder changes the border color, otherwise it does nothing.
//#define DEBUG TRUE
#include <msxhal.h>
#include <tms99X8.h>
#include <rand.h>
////////////////////////////////////////////////////////////////////////
// GRAPHICS
#include <graphics/graphics.h>
//... | 23.724138 | 101 | 0.418605 |
d40d5e9d739710b87e5548606fa758963e1c4256 | 1,625 | kt | Kotlin | mobile/src/main/java/com/siliconlabs/bledemo/blinky_thunderboard/ui/HueBackgroundView.kt | SiliconLabs/Bluegecko-android | b94a9c6a2b7cae0fda0ada7bed1b7ef2bb5906ff | [
"Apache-2.0"
] | 26 | 2017-06-20T05:35:27.000Z | 2020-01-16T07:42:47.000Z | mobile/src/main/java/com/siliconlabs/bledemo/blinky_thunderboard/ui/HueBackgroundView.kt | liunix61/EFRConnect-android | 46a72747a12ab63388138b7ccca08479057c764e | [
"Apache-2.0"
] | 9 | 2017-11-08T10:55:22.000Z | 2020-01-22T12:08:53.000Z | mobile/src/main/java/com/siliconlabs/bledemo/blinky_thunderboard/ui/HueBackgroundView.kt | liunix61/EFRConnect-android | 46a72747a12ab63388138b7ccca08479057c764e | [
"Apache-2.0"
] | 31 | 2017-07-24T06:55:49.000Z | 2020-03-20T13:22:28.000Z | package com.siliconlabs.bledemo.blinky_thunderboard.ui
import android.content.Context
import android.graphics.*
import android.util.AttributeSet
import android.view.View
import com.siliconlabs.bledemo.R
class HueBackgroundView @JvmOverloads constructor(
context: Context,
attrs: AttributeSet? = null,
... | 31.25 | 107 | 0.593846 |
bb5542fb746e7bf96c52e2cf672363fd2f9f3613 | 3,277 | rs | Rust | src/bin/gallery/mod.rs | sirion/static-gallery | 80fc5116c4f90a1d617ebca56c17d32140e65ceb | [
"MIT"
] | null | null | null | src/bin/gallery/mod.rs | sirion/static-gallery | 80fc5116c4f90a1d617ebca56c17d32140e65ceb | [
"MIT"
] | null | null | null | src/bin/gallery/mod.rs | sirion/static-gallery | 80fc5116c4f90a1d617ebca56c17d32140e65ceb | [
"MIT"
] | null | null | null | mod gallery;
mod collection;
mod picture;
// use crate::mi::img::Resolution;
pub use gallery::Gallery;
pub use collection::Collection;
pub use collection::CollectionInput;
pub use picture::Picture;
pub use picture::Image;
pub const GALLERY_CONFIGURATION_VERSION: u16 = 1;
pub const FULL_ARCHIVE_PATH: &str = "Gallery... | 21.418301 | 94 | 0.645713 |
aa9edda578ce652923e7d31a5712348cbd88ff3e | 1,556 | swift | Swift | Examples/Followers/Followers/Login/LoginView.swift | Goktug/Swiftagram | c8b340a9c1be91373a28b525983ff45f7c82ede8 | [
"Apache-2.0"
] | null | null | null | Examples/Followers/Followers/Login/LoginView.swift | Goktug/Swiftagram | c8b340a9c1be91373a28b525983ff45f7c82ede8 | [
"Apache-2.0"
] | null | null | null | Examples/Followers/Followers/Login/LoginView.swift | Goktug/Swiftagram | c8b340a9c1be91373a28b525983ff45f7c82ede8 | [
"Apache-2.0"
] | null | null | null | //
// LoginView.swift
// Followers
//
// Created by Stefano Bertagno on 10/03/2020.
// Copyright © 2020 Stefano Bertagno. All rights reserved.
//
import SwiftUI
import UIKit
import WebKit
import Swiftagram
import SwiftagramKeychain
class LoginViewController: UIViewController {
/// The completion handler.
... | 28.290909 | 92 | 0.616324 |
2b8f6a7ae58cfc604bd21701137a8ac81e077881 | 610 | swift | Swift | TestTaskFlickr/TestTaskFlickr/Views/ViewModelFactory.swift | rdv0011/test-task-flickr-collectionview | a55025b2c33d7e21151d8f00c11af1449072d29c | [
"Apache-2.0"
] | null | null | null | TestTaskFlickr/TestTaskFlickr/Views/ViewModelFactory.swift | rdv0011/test-task-flickr-collectionview | a55025b2c33d7e21151d8f00c11af1449072d29c | [
"Apache-2.0"
] | null | null | null | TestTaskFlickr/TestTaskFlickr/Views/ViewModelFactory.swift | rdv0011/test-task-flickr-collectionview | a55025b2c33d7e21151d8f00c11af1449072d29c | [
"Apache-2.0"
] | null | null | null | //
// Copyright © 2020 Dmitry Rybakov. All rights reserved.
import Foundation
import UIKit
/// Create different types of view models
class ViewModelFactory {
private let photoServiceConfiguration: PhotoService.Configuration
private lazy var photoService: PhotoService = {
PhotoService(configurat... | 25.416667 | 69 | 0.742623 |
29052b7c968f2f47c6caa9476a4d4ce94d943cd2 | 1,489 | py | Python | examples/variables.py | cyrilbois/PFNET.py | 81d2fd911c6e6aae4c5de0d1739c6f5361799ce2 | [
"BSD-2-Clause"
] | 3 | 2018-03-21T11:54:38.000Z | 2020-12-29T16:46:14.000Z | examples/variables.py | cyrilbois/PFNET.py | 81d2fd911c6e6aae4c5de0d1739c6f5361799ce2 | [
"BSD-2-Clause"
] | 23 | 2018-03-29T00:42:06.000Z | 2021-01-05T19:15:05.000Z | examples/variables.py | cyrilbois/PFNET.py | 81d2fd911c6e6aae4c5de0d1739c6f5361799ce2 | [
"BSD-2-Clause"
] | 5 | 2018-10-01T19:05:11.000Z | 2020-05-27T06:19:11.000Z | #***************************************************#
# This file is part of PFNET. #
# #
# Copyright (c) 2015, Tomas Tinoco De Rubira. #
# #
# PFNET is released under the BSD 2-clause license... | 24.409836 | 89 | 0.584285 |
c3b7b449bffe3efacb45b471a3d4a5f4304a1733 | 3,526 | go | Go | web/ctxflag.go | stephenthedev/golib | 35def7de9f5ee1e1f3524c07bdcdc92b218a5d7b | [
"Apache-2.0"
] | 62 | 2015-05-29T10:55:30.000Z | 2022-03-10T13:29:49.000Z | web/ctxflag.go | stephenthedev/golib | 35def7de9f5ee1e1f3524c07bdcdc92b218a5d7b | [
"Apache-2.0"
] | 67 | 2015-06-11T18:07:21.000Z | 2021-11-19T16:01:48.000Z | web/ctxflag.go | stephenthedev/golib | 35def7de9f5ee1e1f3524c07bdcdc92b218a5d7b | [
"Apache-2.0"
] | 23 | 2017-11-02T16:16:50.000Z | 2021-12-20T08:34:14.000Z | package web
import (
"context"
"math/rand"
"net/http"
"strconv"
"sync"
"github.com/signalfx/golib/v3/log"
)
// HeaderCtxFlag sets a debug value in the context if HeaderName is not empty, a flag string has
// been set to non empty, and the header HeaderName or query string HeaderName is equal to the set
// flag... | 32.348624 | 141 | 0.740216 |
abd06746515c2d56bb191d41fcb036f4ec011152 | 375 | sql | SQL | mtgdm/Data/Database Schemas/aspnetuserclaims.sql | ZombieFleshEaters/mtgdm | e8405a3f33f82afe4685ef21ca60fabf9700ff22 | [
"MIT"
] | 4 | 2019-01-20T23:08:14.000Z | 2021-01-14T14:27:33.000Z | mtgdm/Data/Database Schemas/aspnetuserclaims.sql | ZombieFleshEaters/mtgdm | e8405a3f33f82afe4685ef21ca60fabf9700ff22 | [
"MIT"
] | 3 | 2019-10-24T19:28:53.000Z | 2019-11-05T10:14:26.000Z | mtgdm/Data/Database Schemas/aspnetuserclaims.sql | ZombieFleshEaters/mtgdm | e8405a3f33f82afe4685ef21ca60fabf9700ff22 | [
"MIT"
] | null | null | null | CREATE TABLE `aspnetuserclaims` (
`Id` int(11) NOT NULL,
`UserId` varchar(255) NOT NULL,
`ClaimType` longtext,
`ClaimValue` longtext,
PRIMARY KEY (`Id`),
KEY `IX_AspNetUserClaims_UserId` (`UserId`),
CONSTRAINT `FK_AspNetUserClaims_AspNetUsers_UserId` FOREIGN KEY (`UserId`) REFERENCES `aspnetusers` (`id`) ... | 41.666667 | 126 | 0.741333 |
bb50768ede07cf1a651c531f2f400bb69946d0e9 | 1,273 | swift | Swift | Demo/AppDelegate.swift | royhsu/enum-based-table-view | bc878d9aa19bb58ed8d38dfbd97bd02ef831a3a4 | [
"MIT"
] | null | null | null | Demo/AppDelegate.swift | royhsu/enum-based-table-view | bc878d9aa19bb58ed8d38dfbd97bd02ef831a3a4 | [
"MIT"
] | null | null | null | Demo/AppDelegate.swift | royhsu/enum-based-table-view | bc878d9aa19bb58ed8d38dfbd97bd02ef831a3a4 | [
"MIT"
] | null | null | null | //
// AppDelegate.swift
// Demo
//
// Created by Roy Hsu on 2018/8/15.
// Copyright © 2018 TinyWorld. All rights reserved.
//
// MARK: - AppDelegate
import CoreLocation
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder {
let window = UIWindow(frame: UIScreen.main.bounds)
}
// MARK: - ... | 23.574074 | 91 | 0.608798 |
0b6a970c6ea0942a3a8927c5faff7c9dff07c309 | 4,096 | py | Python | tests/testJobQueue.py | hartloff/Tango | 9dd867a596441e0e2ba1069017781dddb9c79bdb | [
"Apache-2.0"
] | 2 | 2020-10-30T03:01:55.000Z | 2021-03-25T03:18:12.000Z | tests/testJobQueue.py | hartloff/Tango | 9dd867a596441e0e2ba1069017781dddb9c79bdb | [
"Apache-2.0"
] | 7 | 2018-06-26T02:48:09.000Z | 2021-01-21T03:12:19.000Z | tests/testJobQueue.py | hartloff/Tango | 9dd867a596441e0e2ba1069017781dddb9c79bdb | [
"Apache-2.0"
] | 9 | 2018-09-28T23:48:48.000Z | 2021-10-03T20:29:48.000Z | import unittest
import redis
from jobQueue import JobQueue
from tangoObjects import TangoIntValue, TangoJob
from config import Config
class TestJobQueue(unittest.TestCase):
def setUp(self):
if Config.USE_REDIS:
__db = redis.StrictRedis(
Config.REDIS_HOSTNAME, Config.REDIS_PO... | 29.681159 | 63 | 0.619141 |
f7723a2f8007da353eba482e0d1f8181f540a889 | 1,392 | kt | Kotlin | server-spring/src/main/kotlin/org/kotlink/core/exposed/DatabaseExceptionAspect.kt | ilya40umov/go-link | e4300ffeaa6b8d9ba8a3569e507f07ba6b679c54 | [
"Apache-2.0"
] | 35 | 2018-07-17T11:01:05.000Z | 2022-02-18T22:45:00.000Z | server-spring/src/main/kotlin/org/kotlink/core/exposed/DatabaseExceptionAspect.kt | ilya40umov/go-link | e4300ffeaa6b8d9ba8a3569e507f07ba6b679c54 | [
"Apache-2.0"
] | 29 | 2018-07-07T21:18:17.000Z | 2022-01-26T13:11:40.000Z | server-spring/src/main/kotlin/org/kotlink/core/exposed/DatabaseExceptionAspect.kt | ilya40umov/go-link | e4300ffeaa6b8d9ba8a3569e507f07ba6b679c54 | [
"Apache-2.0"
] | 3 | 2019-03-15T12:53:27.000Z | 2021-10-30T20:10:15.000Z | package org.kotlink.core.exposed
import org.aspectj.lang.ProceedingJoinPoint
import org.aspectj.lang.annotation.Around
import org.aspectj.lang.annotation.Aspect
import org.springframework.stereotype.Component
import java.lang.reflect.UndeclaredThrowableException
/**
* Makes sure PSQLException, ExposedSQLException, U... | 40.941176 | 116 | 0.724856 |
185697be0633ad7feaf086956a6c168ad1530d22 | 88 | css | CSS | test/cases/keyframes-linebreak/input.css | yogesh-1952/css-2 | 838d0719889780c85ad1f7e4534df3daa2fb2f8d | [
"MIT"
] | 1,243 | 2015-01-02T03:55:08.000Z | 2022-03-31T07:45:13.000Z | test/cases/keyframes-linebreak/input.css | yogesh-1952/css-2 | 838d0719889780c85ad1f7e4534df3daa2fb2f8d | [
"MIT"
] | 85 | 2015-01-13T12:20:01.000Z | 2022-03-31T09:38:18.000Z | test/cases/keyframes-linebreak/input.css | yogesh-1952/css-2 | 838d0719889780c85ad1f7e4534df3daa2fb2f8d | [
"MIT"
] | 263 | 2015-01-10T14:42:43.000Z | 2022-03-09T01:34:34.000Z | @keyframes
test
{
from { opacity: 1; }
to { opacity: 0; }
}
| 12.571429 | 28 | 0.397727 |
26327188af4cc3b6bd83a96c0630ab795fb10a06 | 2,832 | java | Java | redis/src/main/java/com/jdcloud/sdk/service/redis/model/CacheAnalysis.java | Tanc009/jdcloud-sdk-java | 12181e43d1396218e79639dbee387852c85b93b2 | [
"Apache-2.0"
] | 38 | 2018-04-19T09:53:59.000Z | 2021-11-08T12:52:15.000Z | redis/src/main/java/com/jdcloud/sdk/service/redis/model/CacheAnalysis.java | Tanc009/jdcloud-sdk-java | 12181e43d1396218e79639dbee387852c85b93b2 | [
"Apache-2.0"
] | 22 | 2018-04-24T12:17:20.000Z | 2022-03-31T10:39:18.000Z | redis/src/main/java/com/jdcloud/sdk/service/redis/model/CacheAnalysis.java | Tanc009/jdcloud-sdk-java | 12181e43d1396218e79639dbee387852c85b93b2 | [
"Apache-2.0"
] | 53 | 2018-04-19T10:48:05.000Z | 2022-03-16T09:15:16.000Z | /*
* Copyright 2018 JDCLOUD.COM
*
* 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... | 19.943662 | 76 | 0.604873 |
c445fef9dbf9ffe02906183e7645bd251768836e | 9,074 | c | C | src/main/subrequest_lua.c | kurtace72/lighttpd2 | 505bfb053f481b39ffd0f03336e4a8511f45883e | [
"Apache-2.0"
] | null | null | null | src/main/subrequest_lua.c | kurtace72/lighttpd2 | 505bfb053f481b39ffd0f03336e4a8511f45883e | [
"Apache-2.0"
] | null | null | null | src/main/subrequest_lua.c | kurtace72/lighttpd2 | 505bfb053f481b39ffd0f03336e4a8511f45883e | [
"Apache-2.0"
] | null | null | null |
#include <lighttpd/core_lua.h>
#include <lighttpd/actions_lua.h>
#include <lualib.h>
#include <lauxlib.h>
typedef struct liSubrequest liSubrequest;
struct liSubrequest {
liWorker *wrk;
liLuaState *LL;
int func_notify_ref, func_error_ref;
liVRequest *vr;
liJobRef *parentvr_ref;
liConInfo coninfo;
gboolean ... | 23.630208 | 105 | 0.718757 |
bb45d2cadb2ca3f615cb821616d4d7aec1ad85c0 | 1,419 | html | HTML | app/templates/admin/logout.html | jasparkatt/flask_fishing | 3b55a8b1ebdccdfd908ab5ef2658d1958b4f0a2d | [
"MIT"
] | 1 | 2021-02-01T20:21:22.000Z | 2021-02-01T20:21:22.000Z | app/templates/admin/logout.html | jasparkatt/flask_fishing | 3b55a8b1ebdccdfd908ab5ef2658d1958b4f0a2d | [
"MIT"
] | 1 | 2020-11-12T02:10:58.000Z | 2020-11-14T02:40:11.000Z | app/templates/admin/logout.html | jasparkatt/flask_fishing | 3b55a8b1ebdccdfd908ab5ef2658d1958b4f0a2d | [
"MIT"
] | null | null | null | {% extends "admin/admin_base.html" %}
{% block title %}Log Out{% endblock %}
{% block css %}
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/logout.css') }}"> {% endblock %}
{% block favicon %}
<link rel="shortcut icon" href="{{ url_for('static', filename='img/favicon_sa.ico') }}"> {% en... | 44.34375 | 114 | 0.667371 |
0b6b9493f9b4caffc3dc8d7eb74ffd39200333e1 | 6,891 | py | Python | hybmc/products/Swap.py | sschlenkrich/HybridMonteCarlo | 72f54aa4bcd742430462b27b72d70369c01f9ac4 | [
"MIT"
] | 3 | 2021-08-18T18:34:41.000Z | 2021-12-24T07:05:19.000Z | hybmc/products/Swap.py | sschlenkrich/HybridMonteCarlo | 72f54aa4bcd742430462b27b72d70369c01f9ac4 | [
"MIT"
] | null | null | null | hybmc/products/Swap.py | sschlenkrich/HybridMonteCarlo | 72f54aa4bcd742430462b27b72d70369c01f9ac4 | [
"MIT"
] | 3 | 2021-01-31T11:41:19.000Z | 2022-03-25T19:51:20.000Z | #!/usr/bin/python
import sys
sys.path.append('./')
import QuantLib as ql
from hybmc.simulations.Payoffs import Payoff, Fixed, ZeroBond, LiborRate, Cache, Asset
from hybmc.simulations.AmcPayoffs import AmcSum
from hybmc.products.Product import Product
def DiscountedPayoffFromCashFlow(cf, obsTime, payOrReceive, discY... | 43.06875 | 110 | 0.628646 |
2a84da66ed1eecf8d89f05218f61d7d7c4b5af23 | 1,084 | java | Java | Stack/leetcode_682_BaseballGames.java | FuyaoLi2017/leetcode | be6d5112944c08bef442d46960270af4f08fe7a8 | [
"Apache-2.0"
] | 1 | 2019-10-09T05:21:18.000Z | 2019-10-09T05:21:18.000Z | Stack/leetcode_682_BaseballGames.java | FuyaoLi2017/leetcode | be6d5112944c08bef442d46960270af4f08fe7a8 | [
"Apache-2.0"
] | null | null | null | Stack/leetcode_682_BaseballGames.java | FuyaoLi2017/leetcode | be6d5112944c08bef442d46960270af4f08fe7a8 | [
"Apache-2.0"
] | 1 | 2021-01-30T18:13:01.000Z | 2021-01-30T18:13:01.000Z | class Solution {
public int calPoints(String[] ops) {
int sum = 0;
Stack<Integer> stack = new Stack<>();
for(int i = 0; i < ops.length; i++){
// System.out.print(ops[i] + ": ");
if(ops[i].equals("+")){
int temp1 = stack.pop();
int temp2... | 29.297297 | 52 | 0.380074 |
6f874c6ef5270c2bd1b3af7a96b5fa078eb5c2da | 26,034 | rs | Rust | compiler/src/swc.rs | igaisin/aleph.js | e5078f0b95e817bcfa8a2f0d951e0d3954260948 | [
"MIT"
] | 3,825 | 2020-11-04T23:36:26.000Z | 2022-03-31T17:37:24.000Z | compiler/src/swc.rs | igaisin/aleph.js | e5078f0b95e817bcfa8a2f0d951e0d3954260948 | [
"MIT"
] | 358 | 2020-11-06T15:30:29.000Z | 2022-03-26T02:06:18.000Z | compiler/src/swc.rs | igaisin/aleph.js | e5078f0b95e817bcfa8a2f0d951e0d3954260948 | [
"MIT"
] | 162 | 2020-11-05T11:00:38.000Z | 2022-03-30T16:48:03.000Z | use crate::error::{DiagnosticBuffer, ErrorBuffer};
use crate::export_names::ExportParser;
use crate::import_map::ImportHashMap;
use crate::jsx::{jsx_magic_fold, jsx_magic_pass_2_fold};
use crate::resolve_fold::resolve_fold;
use crate::resolver::{is_remote_url, DependencyDescriptor, Resolver};
use crate::source_type::So... | 32.420922 | 148 | 0.575478 |
1ccad1d8147369586f46ef2c3e2d293f9916ad7f | 3,057 | css | CSS | css/navStyle.css | dev-arekusandoru/raisingTheBar | db5d53ee00cb561bd75188ee149278067d909ac3 | [
"MIT"
] | null | null | null | css/navStyle.css | dev-arekusandoru/raisingTheBar | db5d53ee00cb561bd75188ee149278067d909ac3 | [
"MIT"
] | null | null | null | css/navStyle.css | dev-arekusandoru/raisingTheBar | db5d53ee00cb561bd75188ee149278067d909ac3 | [
"MIT"
] | null | null | null | * {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/*defines background and font to be used on all pages*/
body {
background-color: #eaeaea;
font-family: 'Poppins', sans-serif;
overflow-x: hidden;
}
/*sets up nav*/
nav {
z-index: -1;
padding: 0;
display: flex;
flex-direction... | 16.983333 | 84 | 0.580635 |
65106635994d91a479c18b140e8932588b6e8457 | 2,385 | py | Python | result/forms.py | Uqhs-1/uqhs | 1c7199d8c23a9d9eb3f75b1e36633a145fd2cd40 | [
"MIT"
] | 3 | 2020-06-16T20:03:31.000Z | 2021-01-17T20:45:51.000Z | result/forms.py | Uqhs-1/uqhs | 1c7199d8c23a9d9eb3f75b1e36633a145fd2cd40 | [
"MIT"
] | 8 | 2020-02-08T09:04:08.000Z | 2021-06-09T18:31:03.000Z | result/forms.py | Uqhs-1/uqhs | 1c7199d8c23a9d9eb3f75b1e36633a145fd2cd40 | [
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
"""
Created on Wed Jan 23 08:25:37 2019
@author: AdeolaOlalekan
"""
from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from .models import BTUTOR, CNAME, Edit_User, QSUBJECT, Post
class login_form(forms.Fo... | 29.8125 | 154 | 0.609224 |
d29b97677a88a2086ea4edf0620ce0901cf434a9 | 2,141 | php | PHP | protected/modules/orderService/models/Report/concreteReport/AbstractReport.php | VVIkon/kmp-old | 85a4e8a5e1e42dfeae3f8265534a42af72633a80 | [
"MIT"
] | 1 | 2019-10-04T10:19:28.000Z | 2019-10-04T10:19:28.000Z | protected/modules/orderService/models/Report/concreteReport/AbstractReport.php | VVIkon/kmp-old | 85a4e8a5e1e42dfeae3f8265534a42af72633a80 | [
"MIT"
] | null | null | null | protected/modules/orderService/models/Report/concreteReport/AbstractReport.php | VVIkon/kmp-old | 85a4e8a5e1e42dfeae3f8265534a42af72633a80 | [
"MIT"
] | null | null | null | <?php
/**
* Created by PhpStorm.
* User: rock
* Date: 13.09.17
* Time: 17:56
*/
abstract class AbstractReport
{
const NA = 'N/A';
/**
* @var SOReport
*/
protected $SOReport;
/**
* @var OrdersServices[]|OrderModel[]
*/
protected $data;
/**
*
* @return mixed... | 21.626263 | 99 | 0.52639 |
4a3cbb389b4b531ccf3c89281a1d0aaa662a7fe9 | 271 | js | JavaScript | src/const/size.js | mtngun/gatsby-starter | b9e9dacf17fc5dacf4d9ce4222ffff44d0126305 | [
"MIT"
] | null | null | null | src/const/size.js | mtngun/gatsby-starter | b9e9dacf17fc5dacf4d9ce4222ffff44d0126305 | [
"MIT"
] | 1 | 2018-11-10T03:47:10.000Z | 2018-11-10T03:47:10.000Z | src/const/size.js | mtngun/gatsby-starter | b9e9dacf17fc5dacf4d9ce4222ffff44d0126305 | [
"MIT"
] | null | null | null | export default {
FONT: {
BASE: 14,
MEDIUM: 16,
LARGE: 18,
},
RADIUS: {
BASE: 4
},
MEDIA: {
X_SMALL: 320,
SMALL: 576,
MEDIUM: 768,
LARGE: 992,
X_LARGE: 1200
},
HEADER: {
HEIGHT: 32
},
MAIN: {
WIDTH: 1024
}
}
| 11.291667 | 17 | 0.468635 |
1e1b66fca985925f28673dcab55c163a7b0ccac6 | 482 | css | CSS | css/myresponsive.css | Ishtiakur/kamla.com | e357eb44f41636688e4e53ddf9be151773a0030f | [
"Apache-2.0"
] | null | null | null | css/myresponsive.css | Ishtiakur/kamla.com | e357eb44f41636688e4e53ddf9be151773a0030f | [
"Apache-2.0"
] | null | null | null | css/myresponsive.css | Ishtiakur/kamla.com | e357eb44f41636688e4e53ddf9be151773a0030f | [
"Apache-2.0"
] | null | null | null | @media only screen and (max-width: 390px) {
.jobs-top-nav{
background: #277DC7;
padding: 15px 0;
}
.carousel-caption {
top: 50%;
transform: translateY(-50%);
}
.carousel-caption h1 {
display: none;
}
.carousel-caption h3 {
display: none;
}
.spacebtn {
margin-top: 15px;
... | 11.47619 | 43 | 0.564315 |
9c29b6a69aef5d4201d8584cc4c8c4d8bae33356 | 4,213 | js | JavaScript | src/js/components/Datasets/DatasetDataGrid.js | codeaudit/DIVE-frontend | 2c630f28319612dd2a050f0744f9dad8a0b06657 | [
"MIT"
] | null | null | null | src/js/components/Datasets/DatasetDataGrid.js | codeaudit/DIVE-frontend | 2c630f28319612dd2a050f0744f9dad8a0b06657 | [
"MIT"
] | 1 | 2022-02-14T12:19:37.000Z | 2022-02-14T12:19:37.000Z | src/js/components/Datasets/DatasetDataGrid.js | RBozydar/DIVE-frontend | 75070a7eecfa37d918099e6ea29c3ffbe472d1cd | [
"MIT"
] | 2 | 2018-07-03T19:33:26.000Z | 2018-07-03T19:34:20.000Z | import React, { Component, PropTypes } from 'react';
import styles from './Datasets.sass';
import DatasetRow from './DatasetRow';
import MetadataRow from './MetadataRow';
import DatasetHeaderCell from './DatasetHeaderCell';
import DatasetMetadataCell from './DatasetMetadataCell';
import DataGrid from '../Base/DataGrid... | 32.407692 | 160 | 0.591028 |
a7248637553c229af45a6b05b8e815d229e60e7c | 1,841 | kt | Kotlin | app/src/main/kotlin/tech/hombre/bluetoothchatter/ui/widget/GoDownButton.kt | HombreTech/BluetoothChat | c50f4579bbe899ab2138b2c4ab795237c1d470af | [
"Apache-2.0"
] | null | null | null | app/src/main/kotlin/tech/hombre/bluetoothchatter/ui/widget/GoDownButton.kt | HombreTech/BluetoothChat | c50f4579bbe899ab2138b2c4ab795237c1d470af | [
"Apache-2.0"
] | 2 | 2022-03-25T08:14:00.000Z | 2022-03-30T11:07:40.000Z | app/src/main/kotlin/tech/hombre/bluetoothchatter/ui/widget/GoDownButton.kt | HombreTech/BluetoothChat | c50f4579bbe899ab2138b2c4ab795237c1d470af | [
"Apache-2.0"
] | null | null | null | package tech.hombre.bluetoothchatter.ui.widget
import android.annotation.SuppressLint
import android.content.Context
import com.google.android.material.floatingactionbutton.FloatingActionButton
import androidx.core.view.ViewCompat
import android.util.AttributeSet
import android.widget.FrameLayout
import android.widget... | 34.092593 | 112 | 0.741988 |
774f51ebd5f162453ea432ec5dfb5314efc903d6 | 1,222 | html | HTML | myblog/templates/blog/_posts.html | gloomyline/MyBlog | dbe6bee7671a678b5380d5da6aab2e8c8222b861 | [
"MIT"
] | null | null | null | myblog/templates/blog/_posts.html | gloomyline/MyBlog | dbe6bee7671a678b5380d5da6aab2e8c8222b861 | [
"MIT"
] | null | null | null | myblog/templates/blog/_posts.html | gloomyline/MyBlog | dbe6bee7671a678b5380d5da6aab2e8c8222b861 | [
"MIT"
] | null | null | null | {% from 'bootstrap/pagination.html' import render_pagination %}
{% if posts %}
{% for post in posts %}
<h3 class="text-primary">
<a href="{{ url_for('.show_post', post_id=post.id) }}">{{ post.title }}</a>
</h3>
<p>{{ post.body|striptags|truncate }}<small><a href="{{ url_for('.sh... | 50.916667 | 224 | 0.562193 |
965dd8ca53af857cba56deff4f798db029abf152 | 223 | php | PHP | app/VotesCategory.php | santiagogo2/api-rest-votaciones | a7c155615b5326a5384be03214b79da4cab66629 | [
"MIT"
] | null | null | null | app/VotesCategory.php | santiagogo2/api-rest-votaciones | a7c155615b5326a5384be03214b79da4cab66629 | [
"MIT"
] | 1 | 2020-05-11T17:08:38.000Z | 2020-05-11T17:08:38.000Z | app/VotesCategory.php | santiagogo2/api-rest-votaciones | a7c155615b5326a5384be03214b79da4cab66629 | [
"MIT"
] | null | null | null | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class VotesCategory extends Model
{
protected $table = 'votes_category';
protected $fillable = [
'name','startDate','startTime','endDate','endTime'
];
}
| 14.866667 | 52 | 0.717489 |
a95b883c0038c7b5c9e6ef30d8652778024c1c24 | 64 | sql | SQL | application/models/al.sql | tejas-webmavens/success4u | a5c22acc59e543d94101331ad9e4beefb54cdbc6 | [
"MIT"
] | null | null | null | application/models/al.sql | tejas-webmavens/success4u | a5c22acc59e543d94101331ad9e4beefb54cdbc6 | [
"MIT"
] | null | null | null | application/models/al.sql | tejas-webmavens/success4u | a5c22acc59e543d94101331ad9e4beefb54cdbc6 | [
"MIT"
] | null | null | null |
update `arm_history` set `Balance`='1000' where HistoryId='67'; | 32 | 63 | 0.734375 |
0a50b213a58be1d40ed7b7958443182618d0441c | 221 | h | C | CCTimePicker/UIView+CCUtil.h | bref-Chan/CCTimePickerDemo | 40a218b8a655935e7e951c1161880939ff525b14 | [
"MIT"
] | 97 | 2017-08-01T01:59:56.000Z | 2021-09-26T14:29:41.000Z | CCTimePicker/UIView+CCUtil.h | MrDML/CCTimePickerDemo | 40a218b8a655935e7e951c1161880939ff525b14 | [
"MIT"
] | 1 | 2018-01-12T03:27:19.000Z | 2018-01-12T03:27:19.000Z | CCTimePicker/UIView+CCUtil.h | MrDML/CCTimePickerDemo | 40a218b8a655935e7e951c1161880939ff525b14 | [
"MIT"
] | 18 | 2017-09-18T06:44:03.000Z | 2021-09-26T14:29:43.000Z | //
// UIView+CCUtil.h
// CCTimePickerDemo
//
// Created by eHome on 17/3/31.
// Copyright © 2017年 Bref. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIView (CCUtil)
+ (instancetype)viewFromXib;
@end
| 13.8125 | 48 | 0.674208 |
e163b96d1a777a4ca323a62216c18c25a81c434b | 2,397 | swift | Swift | DynamicRegistration/RegistrationViewModel.swift | allbto/iOS-DynamicRegistration | fc2ccab1f5b2bbbbcdce5ff3abd97806a9accbcb | [
"MIT"
] | 3 | 2016-02-12T14:12:39.000Z | 2017-01-29T06:21:51.000Z | DynamicRegistration/RegistrationViewModel.swift | allbto/iOS-DynamicRegistration | fc2ccab1f5b2bbbbcdce5ff3abd97806a9accbcb | [
"MIT"
] | null | null | null | DynamicRegistration/RegistrationViewModel.swift | allbto/iOS-DynamicRegistration | fc2ccab1f5b2bbbbcdce5ff3abd97806a9accbcb | [
"MIT"
] | null | null | null | //
// RegistrationViewModel.swift
// ReactiveRegistration
//
// Allan Barbato on 09.02.16.
// Copyright © 2016 Allan Barbato. All rights reserved.
//
import Swiftility
struct RegistrationForm
{
var email = String()
var password = String()
var passwordAgain = String()
var isEmailValid: Bool {... | 23.271845 | 100 | 0.610346 |
477698ec6de2b648fd3c4ebb7db80f1a789ec228 | 826 | html | HTML | client/angular-commerce/src/app/demoangular/demoangular.component.html | PANCnnss/MEANCapOrig | 4e89ec653c93b443b332bc904bc8529a1b18edf6 | [
"MIT"
] | 1 | 2021-08-28T04:32:44.000Z | 2021-08-28T04:32:44.000Z | client/angular-commerce/src/app/demoangular/demoangular.component.html | EffrenAnthony/MEANCap | f624d7278682ccd7617bc742a83f652a5ef7d557 | [
"MIT"
] | null | null | null | client/angular-commerce/src/app/demoangular/demoangular.component.html | EffrenAnthony/MEANCap | f624d7278682ccd7617bc742a83f652a5ef7d557 | [
"MIT"
] | null | null | null | <p>Hola {{title}}</p>
<input type="text" [(ngModel)]="nuevoNombre">
<button type="button" (click)='addPerson()'>Agregar nuevo</button>
<div [ngSwitch]='nuevoNombre'>
<p *ngSwitchCase="'Pedro'">el es Pedro</p>
<p *ngSwitchCase="'Gricel'">ella es Gricel</p>
<p *ngSwitchCase="'Carlos'">el es Carlos</p>
<p *ngSwitc... | 34.416667 | 80 | 0.606538 |
5c7a3805a90118da849d790d4fd285021514ce33 | 160 | css | CSS | wwwroot/css/AdicionarPedido.css | joaomlfa/doceglamourcore | bd8aaac619956c258c6fe72c26d48d5781e88109 | [
"MIT"
] | null | null | null | wwwroot/css/AdicionarPedido.css | joaomlfa/doceglamourcore | bd8aaac619956c258c6fe72c26d48d5781e88109 | [
"MIT"
] | 1 | 2020-06-01T00:25:00.000Z | 2020-06-01T00:25:00.000Z | wwwroot/css/AdicionarPedido.css | joaomlfa/doceglamourcore | bd8aaac619956c258c6fe72c26d48d5781e88109 | [
"MIT"
] | 2 | 2020-05-31T17:54:32.000Z | 2020-08-03T00:10:02.000Z | #buscarCliente {
padding-top: 40px;
padding-left: 0;
}
main {
}
#quantidade {
margin-top: 32px;
}
#AdicionarProduto {
margin-top: 32px;
}
| 8.888889 | 22 | 0.59375 |
3e9faa9bc1f054b1e720fa736fe410b89ada98d9 | 2,681 | h | C | C Plus Plus/Graph/Graph/Vertex.h | felixsoum/Data-Structure-and-Algorithm | 4e8e70e3e1f844bd8cbcf7f37af43c496fbf4587 | [
"MIT"
] | 3 | 2019-05-10T00:47:52.000Z | 2020-10-26T05:16:05.000Z | C Plus Plus/Graph/Graph/Vertex.h | felixsoum/Data-Structure-and-Algorithm | 4e8e70e3e1f844bd8cbcf7f37af43c496fbf4587 | [
"MIT"
] | null | null | null | C Plus Plus/Graph/Graph/Vertex.h | felixsoum/Data-Structure-and-Algorithm | 4e8e70e3e1f844bd8cbcf7f37af43c496fbf4587 | [
"MIT"
] | 1 | 2020-11-18T00:46:06.000Z | 2020-11-18T00:46:06.000Z | /*
* Author: Alexandre Lepage
* Date: March 2020
*/
#ifndef VERTEX
#define VERTEX
#include <limits.h>
#include <iostream>
/// <summary>
/// Enumerator class color
/// </summary>
enum class Color
{
White,
Grey,
Black
};
/// <summary>
/// overload of the left shift operator for the Color enumerator color
/// ... | 20.945313 | 70 | 0.633346 |
cb321cfe2769949a908a84380d97d6bb7f9f388d | 673 | go | Go | go/vt/vtgate/planbuilder/filter.go | guokeno0/vitess | 2228de2d8f0c5032c5a53277abf5515ae9fc38a1 | [
"BSD-3-Clause"
] | null | null | null | go/vt/vtgate/planbuilder/filter.go | guokeno0/vitess | 2228de2d8f0c5032c5a53277abf5515ae9fc38a1 | [
"BSD-3-Clause"
] | null | null | null | go/vt/vtgate/planbuilder/filter.go | guokeno0/vitess | 2228de2d8f0c5032c5a53277abf5515ae9fc38a1 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2016, Google Inc. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package planbuilder
import "github.com/youtube/vitess/go/vt/sqlparser"
// splitAndExpression breaks up the BoolExpr into AND-separated conditions
// and appends ... | 35.421053 | 101 | 0.768202 |
a5b20420eaea481560b95d60de01dfe8c7e3dc1e | 9,632 | kt | Kotlin | jvm/src/main/kotlin/org/ionproject/core/common/Uri.kt | i-on-project/core | 339407d56e66ec164ecdc4172347272d97cc26b3 | [
"Apache-2.0"
] | 7 | 2020-02-24T14:20:55.000Z | 2021-03-13T17:59:37.000Z | jvm/src/main/kotlin/org/ionproject/core/common/Uri.kt | i-on-project/core | 339407d56e66ec164ecdc4172347272d97cc26b3 | [
"Apache-2.0"
] | 201 | 2020-02-22T16:11:44.000Z | 2022-02-28T01:49:15.000Z | jvm/src/main/kotlin/org/ionproject/core/common/Uri.kt | i-on-project/core | 339407d56e66ec164ecdc4172347272d97cc26b3 | [
"Apache-2.0"
] | 1 | 2021-03-15T14:59:29.000Z | 2021-03-15T14:59:29.000Z | package org.ionproject.core.common
import org.ionproject.core.search.model.SearchQuery
import org.springframework.web.util.UriTemplate
import java.net.URI
object Uri {
private const val DEFAULT_BASE_URL = "http://localhost:8080"
val baseUrl = System.getenv("ION_CORE_BASE_URL")
?: DEFAULT_BASE_URL
... | 39.63786 | 113 | 0.7201 |
408a418b0aa079bf2f133b522eb5c3ea7c6a6495 | 3,136 | py | Python | Test.py | kaifamiao/geSinaStockData | 417f81b45eca1bd0ce42d1218218feb82895ba7a | [
"Apache-2.0"
] | null | null | null | Test.py | kaifamiao/geSinaStockData | 417f81b45eca1bd0ce42d1218218feb82895ba7a | [
"Apache-2.0"
] | null | null | null | Test.py | kaifamiao/geSinaStockData | 417f81b45eca1bd0ce42d1218218feb82895ba7a | [
"Apache-2.0"
] | null | null | null | # -*- coding: UTF-8 -*-
import urllib.request
import re
import pandas as pd
import pymysql
import time
def sinaStockUrl(pageNum):
print('pageNum : ' + str(pageNum))
rows = 10
url = 'http://vip.stock.finance.sina.com.cn/quotes_service/api/json_v2.php/Market_Center.getHQNodeData?'
url += 'page=' + ... | 33.72043 | 183 | 0.563776 |
b3ac8792e71f653aff11fffb3d2473c15e281a12 | 1,624 | rb | Ruby | cookbooks/ssh/recipes/default.rb | digilist/my-server-chef | 08bb8b8acd0962e0d4912a9df78d38558cdd5b44 | [
"MIT"
] | null | null | null | cookbooks/ssh/recipes/default.rb | digilist/my-server-chef | 08bb8b8acd0962e0d4912a9df78d38558cdd5b44 | [
"MIT"
] | null | null | null | cookbooks/ssh/recipes/default.rb | digilist/my-server-chef | 08bb8b8acd0962e0d4912a9df78d38558cdd5b44 | [
"MIT"
] | null | null | null | #
# Cookbook Name:: ssh
# Recipe:: default
#
# Copyright 2013, Markus Fasselt
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights ... | 32.48 | 72 | 0.748768 |
d5c50d9caf7f65d50e42174496dfc211ae8ac3a6 | 425 | c | C | hw/xfree86/vgahw/vgaHWmodule.c | larsclausen/xglamo | 4176d6fdc061553b8366c20890635a464fe7fee2 | [
"X11"
] | 2 | 2016-05-08T18:39:05.000Z | 2018-11-01T06:58:35.000Z | hw/xfree86/vgahw/vgaHWmodule.c | larsclausen/xglamo | 4176d6fdc061553b8366c20890635a464fe7fee2 | [
"X11"
] | null | null | null | hw/xfree86/vgahw/vgaHWmodule.c | larsclausen/xglamo | 4176d6fdc061553b8366c20890635a464fe7fee2 | [
"X11"
] | 1 | 2021-12-05T20:56:48.000Z | 2021-12-05T20:56:48.000Z | /*
* Copyright 1998 by The XFree86 Project, Inc
*/
#ifdef HAVE_XORG_CONFIG_H
#include <xorg-config.h>
#endif
#include "xf86Module.h"
static XF86ModuleVersionInfo VersRec = {
"vgahw",
MODULEVENDORSTRING,
MODINFOSTRING1,
MODINFOSTRING2,
XORG_VERSION_CURRENT,
0, 1, 0,
ABI_CLASS_VIDEODRV,
ABI_VIDEODRV_VERSION,... | 17 | 68 | 0.743529 |
2e2514178dfe8923840f615b5326fd56fe108c41 | 4,786 | sql | SQL | SE228_Web Development/The third iteration/mystore.sql | jiayangchen/SJTU_courses | 14b165c454feaaca5691c97f227946159d1cda24 | [
"MIT"
] | null | null | null | SE228_Web Development/The third iteration/mystore.sql | jiayangchen/SJTU_courses | 14b165c454feaaca5691c97f227946159d1cda24 | [
"MIT"
] | null | null | null | SE228_Web Development/The third iteration/mystore.sql | jiayangchen/SJTU_courses | 14b165c454feaaca5691c97f227946159d1cda24 | [
"MIT"
] | null | null | null | /*
Navicat MySQL Data Transfer
Source Server : ChenJiayang
Source Server Version : 50505
Source Host : localhost:3306
Source Database : mystore
Target Server Type : MYSQL
Target Server Version : 50505
File Encoding : 65001
Date: 2016-06-14 19:06:44
*/
SET FOREIGN_KEY_CHECKS=0;
--... | 31.486842 | 84 | 0.571249 |
b99d5a9bddebb95e954406a8e8d15ee1eb8cd178 | 3,338 | c | C | kubernetes/model/io_k8s_api_node_v1_overhead.c | zouxiaoliang/nerv-kubernetes-client-c | 07528948c643270fd757d38edc68da8c9628ee7a | [
"Apache-2.0"
] | null | null | null | kubernetes/model/io_k8s_api_node_v1_overhead.c | zouxiaoliang/nerv-kubernetes-client-c | 07528948c643270fd757d38edc68da8c9628ee7a | [
"Apache-2.0"
] | null | null | null | kubernetes/model/io_k8s_api_node_v1_overhead.c | zouxiaoliang/nerv-kubernetes-client-c | 07528948c643270fd757d38edc68da8c9628ee7a | [
"Apache-2.0"
] | null | null | null | #include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "io_k8s_api_node_v1_overhead.h"
io_k8s_api_node_v1_overhead_t *io_k8s_api_node_v1_overhead_create(
list_t* pod_fixed
) {
io_k8s_api_node_v1_overhead_t *io_k8s_api_node_v1_overhead_local_var = malloc(sizeof(io_k8s_api_node_v1_overhead_t))... | 31.790476 | 121 | 0.723787 |
1e2967899a91834411d60faac37c146f869f4266 | 6,333 | swift | Swift | Hoppla/HopplaSummaryBoard.swift | orucrob/Hoppla | 7fff3596940b400ef633d9872e556cd64aeeea45 | [
"MIT"
] | null | null | null | Hoppla/HopplaSummaryBoard.swift | orucrob/Hoppla | 7fff3596940b400ef633d9872e556cd64aeeea45 | [
"MIT"
] | 1 | 2015-01-21T12:59:40.000Z | 2015-02-16T14:15:30.000Z | Hoppla/HopplaSummaryBoard.swift | orucrob/Hoppla | 7fff3596940b400ef633d9872e556cd64aeeea45 | [
"MIT"
] | null | null | null | /*
The MIT License (MIT)
Copyright (c) 2015 Rob
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, ... | 31.507463 | 109 | 0.544292 |
a9a1db335eb4b5e8b753249219b43d718d2ca423 | 3,654 | html | HTML | app/index.html | anowell/pagerdash | d975b38d3676784e346b13d2aec49ff9bc9f79b5 | [
"MIT"
] | null | null | null | app/index.html | anowell/pagerdash | d975b38d3676784e346b13d2aec49ff9bc9f79b5 | [
"MIT"
] | null | null | null | app/index.html | anowell/pagerdash | d975b38d3676784e346b13d2aec49ff9bc9f79b5 | [
"MIT"
] | null | null | null | <!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="/sty... | 46.253165 | 112 | 0.582649 |
652230e81ba4d8d4037cbc54fc3f6d5ceb60f00b | 2,779 | rs | Rust | src/test/instruction_tests/setne.rs | epakskape/rust-x86asm | adb4128f7b12642336a919e32bd56509c9a835d4 | [
"MIT"
] | 49 | 2017-10-31T10:26:54.000Z | 2021-07-06T09:04:12.000Z | src/test/instruction_tests/setne.rs | epakskape/rust-x86asm | adb4128f7b12642336a919e32bd56509c9a835d4 | [
"MIT"
] | 6 | 2018-02-28T05:57:28.000Z | 2020-01-05T01:54:41.000Z | src/test/instruction_tests/setne.rs | epakskape/rust-x86asm | adb4128f7b12642336a919e32bd56509c9a835d4 | [
"MIT"
] | 7 | 2018-09-09T13:08:16.000Z | 2020-06-14T00:06:07.000Z | use ::{BroadcastMode, Instruction, MaskReg, MergeMode, Mnemonic, OperandSize, Reg, RoundingMode};
use ::RegType::*;
use ::instruction_def::*;
use ::Operand::*;
use ::Reg::*;
use ::RegScale::*;
fn setne_1() {
run_test(&Instruction { mnemonic: Mnemonic::SETNE, operand1: Some(Direct(CL)), operand2: None, operand3: No... | 69.475 | 364 | 0.709248 |
5604e10233e4a7eb4e05a1f3b2bc784088fe4552 | 1,792 | go | Go | monitorables/ping/api/usecase/ping_test.go | YoannMa/monitoror | c2861a418734e60c5bd09ecbac4d54eac1da8d49 | [
"MIT"
] | 3,645 | 2019-04-06T17:55:13.000Z | 2022-03-31T19:11:10.000Z | monitorables/ping/api/usecase/ping_test.go | YoannMa/monitoror | c2861a418734e60c5bd09ecbac4d54eac1da8d49 | [
"MIT"
] | 330 | 2019-04-06T20:05:07.000Z | 2022-03-24T14:44:07.000Z | monitorables/ping/api/usecase/ping_test.go | jsdidierlaurent/monitoror | 66235d0d604fa3db1b552b108ad4dd960e892690 | [
"MIT"
] | 179 | 2019-10-22T08:59:28.000Z | 2022-03-25T17:48:27.000Z | package usecase
import (
"errors"
"testing"
"time"
coreModels "github.com/monitoror/monitoror/models"
"github.com/monitoror/monitoror/monitorables/ping/api"
"github.com/monitoror/monitoror/monitorables/ping/api/mocks"
"github.com/monitoror/monitoror/monitorables/ping/api/models"
"github.com/stretchr/testify/... | 24.216216 | 91 | 0.732143 |
71784457b131e2a4b8ba9c97a96aaa95f1ac6339 | 3,610 | ts | TypeScript | src/Reactions/composeReactions.spec.ts | atomservicesjs/atomservices | ebcb3fa7a95422eda49fbcc19a041d6ba7fb8724 | [
"MIT"
] | 2 | 2018-01-30T11:27:31.000Z | 2019-03-05T12:00:25.000Z | src/Reactions/composeReactions.spec.ts | atomservicesjs/atomservices | ebcb3fa7a95422eda49fbcc19a041d6ba7fb8724 | [
"MIT"
] | 23 | 2018-01-31T02:32:09.000Z | 2021-05-08T03:58:12.000Z | src/Reactions/composeReactions.spec.ts | atomservicesjs/atomservices | ebcb3fa7a95422eda49fbcc19a041d6ba7fb8724 | [
"MIT"
] | null | null | null | import { expect } from "chai";
import * as sinon from "sinon";
import { composeReactions } from "./composeReactions";
describe("composeReactions.ts tests", () => {
it("expect to compose an instance of Reactions", async () => {
// arranges
const reaction1: any = {
name: "Reaction1",
scope: "TEST",... | 25.602837 | 110 | 0.538504 |
92ffbea79aa3c828e7ec5f334af9632f863fb4e3 | 6,533 | c | C | std/races/shapeshifted_races/life_elemental.c | SwusInABox/SunderingShadows | 07dfe6ee378ca3266fc26fdc39ff2f29223ae002 | [
"MIT"
] | 9 | 2021-07-05T15:24:54.000Z | 2022-02-25T19:44:15.000Z | std/races/shapeshifted_races/life_elemental.c | SwusInABox/SunderingShadows | 07dfe6ee378ca3266fc26fdc39ff2f29223ae002 | [
"MIT"
] | 4 | 2021-03-15T18:56:39.000Z | 2021-08-17T17:08:22.000Z | std/races/shapeshifted_races/life_elemental.c | SwusInABox/SunderingShadows | 07dfe6ee378ca3266fc26fdc39ff2f29223ae002 | [
"MIT"
] | 10 | 2021-03-13T00:18:03.000Z | 2022-03-29T15:02:42.000Z | #include <std.h>
#include <daemons.h>
#include <magic.h>
inherit SHAPESHIFT;
// all of the functions set in create below need to be there so it doesn't bug when trying to shapeshift -Ares
// when making a new shape, be sure to include those functions or it'll fall back to the defaults
void create()
{
::create... | 49.120301 | 1,097 | 0.666769 |
e72bd611305070862192c1c29c44cd81c27d9beb | 1,882 | js | JavaScript | src/pages/downloads/toki-news.js | alijaya/toki-web | 6c4115178cd694662500468acf2e9330c9162906 | [
"MIT"
] | 2 | 2020-02-23T05:01:19.000Z | 2020-02-29T03:33:18.000Z | src/pages/downloads/toki-news.js | alijaya/toki-web | 6c4115178cd694662500468acf2e9330c9162906 | [
"MIT"
] | 4 | 2020-03-26T06:41:26.000Z | 2020-03-26T07:00:12.000Z | src/pages/downloads/toki-news.js | alijaya/toki-web | 6c4115178cd694662500468acf2e9330c9162906 | [
"MIT"
] | 1 | 2020-03-26T08:52:55.000Z | 2020-03-26T08:52:55.000Z | import { faDownload, faFilePdf } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { graphql } from "gatsby";
import React from "react";
import Footer from "../../components/footer";
import Layout from "../../components/layout";
import LightNavbar from ".... | 29.40625 | 74 | 0.514878 |
9f06b7cacd5ed55e24adee966e44acf748fc6c74 | 600 | sql | SQL | coeus-db/coeus-db-sql/src/main/resources/org/kuali/coeus/coeus-sql/log/Release_1_0_logs/s2s/procfunpacks/get_budget_sub_award_att_all.sql | mrudulpolus/kc | 55f529e5ff0985f3bf5247e2a1e63c5dec07f560 | [
"ECL-2.0"
] | null | null | null | coeus-db/coeus-db-sql/src/main/resources/org/kuali/coeus/coeus-sql/log/Release_1_0_logs/s2s/procfunpacks/get_budget_sub_award_att_all.sql | mrudulpolus/kc | 55f529e5ff0985f3bf5247e2a1e63c5dec07f560 | [
"ECL-2.0"
] | null | null | null | coeus-db/coeus-db-sql/src/main/resources/org/kuali/coeus/coeus-sql/log/Release_1_0_logs/s2s/procfunpacks/get_budget_sub_award_att_all.sql | mrudulpolus/kc | 55f529e5ff0985f3bf5247e2a1e63c5dec07f560 | [
"ECL-2.0"
] | null | null | null | CREATE OR REPLACE PROCEDURE GET_BUDGET_SUB_AWARD_ATT_ALL
( AW_PROPOSAL_NUMBER IN OSP$BUDGET_SUB_AWARD_ATT.proposal_number%TYPE,
AW_VERSION_NUMBER IN OSP$BUDGET_SUB_AWARD_ATT.VERSION_NUMBER%TYPE,
cur_budget_sub_award_att IN OUT result_sets.cur_generic) is
begin
open cur_budget_sub_award_att for
select PROP... | 42.857143 | 98 | 0.835 |
50683c884d7dbc2b79ef143364749c690bb1f3d3 | 1,921 | go | Go | controllers/util/drpolicy_util.go | vdeenadh/ramen | 4cec36b58f32b28207444e822b32abc003377d21 | [
"Apache-2.0"
] | 1 | 2021-12-30T10:12:42.000Z | 2021-12-30T10:12:42.000Z | controllers/util/drpolicy_util.go | vdeenadh/ramen | 4cec36b58f32b28207444e822b32abc003377d21 | [
"Apache-2.0"
] | 1 | 2021-12-24T06:35:09.000Z | 2021-12-24T06:35:09.000Z | controllers/util/drpolicy_util.go | vdeenadh/ramen | 4cec36b58f32b28207444e822b32abc003377d21 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2021 The RamenDR 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 or agreed to in writing, sof... | 28.671642 | 94 | 0.745966 |
61b1b08e62796d171b0198abfff71f76a8d19284 | 367 | swift | Swift | swift-pd/Sources/Playdate/Display.swift | mossprescott/swift-pd | c4ef6d1907e1288765c7db44c37d6ff4fb9b020e | [
"MIT"
] | 2 | 2022-03-23T03:31:46.000Z | 2022-03-23T03:48:57.000Z | swift-pd/Sources/Playdate/Display.swift | mossprescott/swift-pd | c4ef6d1907e1288765c7db44c37d6ff4fb9b020e | [
"MIT"
] | 1 | 2022-03-30T17:10:52.000Z | 2022-03-30T17:10:52.000Z | swift-pd/Sources/Playdate/Display.swift | mossprescott/swift-pd | c4ef6d1907e1288765c7db44c37d6ff4fb9b020e | [
"MIT"
] | null | null | null | import CPlaydate
public enum Display {
public static var width: Int {
Int(Playdate.c_api.display.pointee.getWidth())
}
public static var height: Int {
Int(Playdate.c_api.display.pointee.getHeight())
}
public static func setRefreshRate(_ rate: Float) {
Playdate.c_api.displa... | 24.466667 | 68 | 0.675749 |
26752924d0d67677b6965867c2d91d2ad51d4872 | 5,592 | java | Java | parancoe-yaml/src/main/java/org/parancoe/yaml/parser/ParserReader.java | mahamuniraviraj/parancoe | 69d7ab126b7a6ff54335f48caa76e100eec7f53c | [
"Apache-2.0"
] | 1 | 2019-05-22T18:54:04.000Z | 2019-05-22T18:54:04.000Z | parancoe-yaml/src/main/java/org/parancoe/yaml/parser/ParserReader.java | mahamuniraviraj/parancoe | 69d7ab126b7a6ff54335f48caa76e100eec7f53c | [
"Apache-2.0"
] | null | null | null | parancoe-yaml/src/main/java/org/parancoe/yaml/parser/ParserReader.java | mahamuniraviraj/parancoe | 69d7ab126b7a6ff54335f48caa76e100eec7f53c | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 2006-2010 The Parancoe Team <info@parancoe.org>
*
* This file is part of Parancoe Yaml - DISCONTINUED.
*
* 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
*
... | 28.385787 | 91 | 0.540594 |
2db937da0e082ed863284d2266d29e18c0176a35 | 2,728 | html | HTML | campeoes-brasileiro/index.html | jonathanslima/jonathanslima.github.io | d6c9e0d59339c5b15cf31aec5a173dc78037fc56 | [
"MIT"
] | 2 | 2016-04-07T16:03:41.000Z | 2016-11-16T21:05:29.000Z | campeoes-brasileiro/index.html | jonathanslima/jonathanslima.github.io | d6c9e0d59339c5b15cf31aec5a173dc78037fc56 | [
"MIT"
] | 25 | 2016-04-11T00:09:33.000Z | 2018-06-15T03:48:37.000Z | campeoes-brasileiro/index.html | jonathanslima/jonathanslima.github.io | d6c9e0d59339c5b15cf31aec5a173dc78037fc56 | [
"MIT"
] | 2 | 2016-02-08T14:46:19.000Z | 2020-01-23T15:07:00.000Z | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<ul class="times">
<li class="pos pos-amg">
<picture>
<img src="img/ateliticomg.png" alt="... | 19.625899 | 71 | 0.554985 |
2fe3ab683484a3abd0541c1934735e4c9ea7e105 | 704 | rs | Rust | chapter-3-exercises/fibonnaci/src/main.rs | tlow22/learn-rust | 0fca60d9c0a8c5cfdade714583c0f65f240416b9 | [
"MIT"
] | null | null | null | chapter-3-exercises/fibonnaci/src/main.rs | tlow22/learn-rust | 0fca60d9c0a8c5cfdade714583c0f65f240416b9 | [
"MIT"
] | null | null | null | chapter-3-exercises/fibonnaci/src/main.rs | tlow22/learn-rust | 0fca60d9c0a8c5cfdade714583c0f65f240416b9 | [
"MIT"
] | null | null | null | use std::io;
// generates the n-th fibonnaci number
fn main() {
// get user input
println!("Enter n-th Fibonnaci number desired");
let mut idx = String::new();
io::stdin()
.read_line(&mut idx)
.expect("Failed to read");
let idx:u32 = match idx.trim().parse() {
Ok(num) =... | 22 | 79 | 0.544034 |