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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dda5cd2ddadfc914da123de33de513bb645e2324 | 169 | php | PHP | application/helpers/allowed_helper.php | fyulistian/politeknik-learning | 6ba258b54680071bb613d5ee4cb4a3f8b60c8593 | [
"MIT"
] | null | null | null | application/helpers/allowed_helper.php | fyulistian/politeknik-learning | 6ba258b54680071bb613d5ee4cb4a3f8b60c8593 | [
"MIT"
] | null | null | null | application/helpers/allowed_helper.php | fyulistian/politeknik-learning | 6ba258b54680071bb613d5ee4cb4a3f8b60c8593 | [
"MIT"
] | null | null | null | <?php
function allowed($param)
{
$CI =& get_instance();
if ($CI->session->userdata('level') != $param) {
redirect(base_url(),'refresh');
}
} | 21.125 | 52 | 0.526627 |
26108252b3a89e05b0e1edf934c2f839d17a1121 | 506 | java | Java | src/main/java/com/api/demo/Controller/ApiController.java | aquajack22/CapstoneProject3 | c8edc0241b2fcde9e0bfbcb0334a0b14239b8048 | [
"MIT"
] | null | null | null | src/main/java/com/api/demo/Controller/ApiController.java | aquajack22/CapstoneProject3 | c8edc0241b2fcde9e0bfbcb0334a0b14239b8048 | [
"MIT"
] | null | null | null | src/main/java/com/api/demo/Controller/ApiController.java | aquajack22/CapstoneProject3 | c8edc0241b2fcde9e0bfbcb0334a0b14239b8048 | [
"MIT"
] | null | null | null | package com.api.demo.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/Assess")... | 33.733333 | 71 | 0.743083 |
26a11b12d32e89d070b1dd019defce4d7f819d7f | 8,375 | java | Java | app/src/main/java/com/appacitive/khelkund/activities/pick5/Pick5ListActivity.java | randhika/khelkund | c8d1b22e19c0c4cc950100d6efc299ca26844a03 | [
"Apache-2.0"
] | 2 | 2021-04-03T17:23:30.000Z | 2021-04-09T02:14:36.000Z | app/src/main/java/com/appacitive/khelkund/activities/pick5/Pick5ListActivity.java | randhika/khelkund | c8d1b22e19c0c4cc950100d6efc299ca26844a03 | [
"Apache-2.0"
] | null | null | null | app/src/main/java/com/appacitive/khelkund/activities/pick5/Pick5ListActivity.java | randhika/khelkund | c8d1b22e19c0c4cc950100d6efc299ca26844a03 | [
"Apache-2.0"
] | 7 | 2018-11-06T05:44:42.000Z | 2020-11-14T21:13:36.000Z | package com.appacitive.khelkund.activities.pick5;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Locale;
import android.content.Intent;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.app.ActionBar;
import android.support.v4.app.Fragment;
import a... | 32.587549 | 126 | 0.642149 |
abd4b9d5117e2ceb486d5e362ccc241beab85dc4 | 263 | go | Go | persister/bolt_interface.go | marknguyen85/server-api | aaa7c2b0fc3148307367ac321c22157c2a464f85 | [
"MIT"
] | null | null | null | persister/bolt_interface.go | marknguyen85/server-api | aaa7c2b0fc3148307367ac321c22157c2a464f85 | [
"MIT"
] | null | null | null | persister/bolt_interface.go | marknguyen85/server-api | aaa7c2b0fc3148307367ac321c22157c2a464f85 | [
"MIT"
] | null | null | null | package persister
import "github.com/marknguyen85/server-api/tomochain"
type BoltInterface interface {
StoreGeneralInfo(map[string]*tomochain.TokenGeneralInfo) error
GetGeneralInfo(map[string]tomochain.Token) (map[string]*tomochain.TokenGeneralInfo, error)
}
| 29.222222 | 91 | 0.828897 |
4042a9007a46eba46168c6133b48626596ed1a99 | 1,033 | py | Python | conference/tools/voteengine-0.99/ve.py | zevaverbach/epcon | 8352c030ee0d4197f559cdb58a54ee45c7a4471a | [
"BSD-2-Clause"
] | 40 | 2015-03-03T22:14:58.000Z | 2022-02-15T22:27:48.000Z | conference/tools/voteengine-0.99/ve.py | zevaverbach/epcon | 8352c030ee0d4197f559cdb58a54ee45c7a4471a | [
"BSD-2-Clause"
] | 699 | 2015-01-21T10:13:29.000Z | 2022-02-08T09:26:36.000Z | conference/tools/voteengine-0.99/ve.py | zevaverbach/epcon | 8352c030ee0d4197f559cdb58a54ee45c7a4471a | [
"BSD-2-Clause"
] | 96 | 2015-01-22T11:03:13.000Z | 2022-01-31T05:35:34.000Z | #!/usr/bin/python
"""
Vote counter by Blake Cretney
This work is distributed AS IS. It is up to you to
determine if it is useful and safe. In particular,
NO WARRANTY is expressed or implied.
I permanently give everyone the rights to use, modify,
copy, distribute, re-distribute, and perform this work,
and all ... | 23.477273 | 61 | 0.731849 |
580e2abeaa9bec5bdc64039b1e5a922e02395d1c | 1,523 | c | C | C02/ex09/ft_strcapitalize.c | dnl007/Piscina-42 | 6e8136163d33852393f0e1cb4368ace7efcac18a | [
"MIT"
] | null | null | null | C02/ex09/ft_strcapitalize.c | dnl007/Piscina-42 | 6e8136163d33852393f0e1cb4368ace7efcac18a | [
"MIT"
] | null | null | null | C02/ex09/ft_strcapitalize.c | dnl007/Piscina-42 | 6e8136163d33852393f0e1cb4368ace7efcac18a | [
"MIT"
] | null | null | null | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strcapitalize.c :+: :+: :+: ... | 27.690909 | 80 | 0.26264 |
6b488a889c7b6fd41f6df363ae638e325be8ccb6 | 12,664 | c | C | src/rt/rt.c | Wei-PSU/BioRT-Flux-PIHM | 7a32acfa467e3211ab52322d88fb7919242b37c2 | [
"MIT"
] | 4 | 2019-04-22T05:22:25.000Z | 2022-01-12T18:44:13.000Z | src/rt/rt.c | Li-Reactive-Water-Group/BioRT-Flux-PIHM | 7a32acfa467e3211ab52322d88fb7919242b37c2 | [
"MIT"
] | 1 | 2021-02-05T11:22:40.000Z | 2021-02-05T11:22:40.000Z | src/rt/rt.c | Li-Reactive-Water-Group/BioRT-Flux-PIHM | 7a32acfa467e3211ab52322d88fb7919242b37c2 | [
"MIT"
] | 8 | 2019-08-19T04:12:35.000Z | 2021-04-11T20:33:11.000Z | /*******************************************************************************
* RT-Flux-PIHM is a finite volume based, reactive transport module that operates
* on top of the hydrological land surface processes described by Flux-PIHM.
* RT-Flux-PIHM tracks the transportation and reaction in a given watershed. It
* u... | 30.887805 | 80 | 0.51603 |
043969154678200f43fd3d756f883c596915c257 | 1,321 | kt | Kotlin | sessionize/lib/src/commonMain/kotlin/co/touchlab/sessionize/ScheduleModel.kt | archiegq21/DroidconKotlin | 8c3ec05448d586037c924f245f77fcd0150f0476 | [
"Apache-2.0"
] | null | null | null | sessionize/lib/src/commonMain/kotlin/co/touchlab/sessionize/ScheduleModel.kt | archiegq21/DroidconKotlin | 8c3ec05448d586037c924f245f77fcd0150f0476 | [
"Apache-2.0"
] | 1 | 2021-06-14T11:55:00.000Z | 2021-06-15T15:03:39.000Z | sessionize/lib/src/commonMain/kotlin/co/touchlab/sessionize/ScheduleModel.kt | archiegq21/DroidconKotlin | 8c3ec05448d586037c924f245f77fcd0150f0476 | [
"Apache-2.0"
] | null | null | null | package co.touchlab.sessionize
import co.touchlab.droidcon.db.SessionWithRoom
import co.touchlab.sessionize.db.SessionizeDbHelper
import co.touchlab.sessionize.display.DaySchedule
import co.touchlab.sessionize.display.convertMapToDaySchedule
import co.touchlab.sessionize.display.formatHourBlocks
import co.touchlab.ses... | 30.022727 | 61 | 0.697956 |
176051bf7c1461b5f0d889d037364911bd88eb22 | 201 | html | HTML | src/app/item/item-detail.component.html | darlandc/doctor | 0546bd032d15091487119be896d8da1a38f3b4d2 | [
"Apache-2.0"
] | null | null | null | src/app/item/item-detail.component.html | darlandc/doctor | 0546bd032d15091487119be896d8da1a38f3b4d2 | [
"Apache-2.0"
] | null | null | null | src/app/item/item-detail.component.html | darlandc/doctor | 0546bd032d15091487119be896d8da1a38f3b4d2 | [
"Apache-2.0"
] | null | null | null | <ActionBar title="Welcome"></ActionBar>
<FlexboxLayout flexDirection="column">
<FlexboxLayout class="m-15">
<Label class="h2" text="Welcome"></Label>
</FlexboxLayout>
</FlexboxLayout>
| 25.125 | 49 | 0.681592 |
989c22044f40ad2cb0a51b8f3cd01f912339eaad | 21,779 | html | HTML | Stanford C++ Lib Doc/web.stanford.edu/class/archive/cs/cs106b/cs106b.1138/materials/cppdoc/index.html | Liquidibrium/PAbstractions | e3cf51b5d713a181abdda87ed5205d998289f878 | [
"MIT"
] | null | null | null | Stanford C++ Lib Doc/web.stanford.edu/class/archive/cs/cs106b/cs106b.1138/materials/cppdoc/index.html | Liquidibrium/PAbstractions | e3cf51b5d713a181abdda87ed5205d998289f878 | [
"MIT"
] | null | null | null | Stanford C++ Lib Doc/web.stanford.edu/class/archive/cs/cs106b/cs106b.1138/materials/cppdoc/index.html | Liquidibrium/PAbstractions | e3cf51b5d713a181abdda87ed5205d998289f878 | [
"MIT"
] | null | null | null | <html>
<!-- Mirrored from web.stanford.edu/class/archive/cs/cs106b/cs106b.1138/materials/cppdoc/ by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 13 Feb 2016 11:47:25 GMT -->
<head>
<title>The Stanford <code>cslib</code> package</title>
<link rel="stylesheet" type="text/css" href="cppdoc.css" />
</head>
<body>
<table ... | 112.262887 | 324 | 0.726893 |
9a87503e31abd72071658301c71bf1bc174596b3 | 4,977 | css | CSS | src/app/module/data-center/source/code/data-source-update-code.component.css | cagegit/chang-ng4 | e21eeb5400d302b855b978321b5a677c3ee6badb | [
"MIT"
] | null | null | null | src/app/module/data-center/source/code/data-source-update-code.component.css | cagegit/chang-ng4 | e21eeb5400d302b855b978321b5a677c3ee6badb | [
"MIT"
] | null | null | null | src/app/module/data-center/source/code/data-source-update-code.component.css | cagegit/chang-ng4 | e21eeb5400d302b855b978321b5a677c3ee6badb | [
"MIT"
] | null | null | null | .code_title {
padding-left: 116px;
background: url("../../../../../assets/img/code_bg.jpg") no-repeat left center;
}
.isource_title {
padding-left: 116px;
background: url("../../../../../assets/img/isource_bg.png") no-repeat left center;
}
.sync_radio {
height: 56px;
line-height: 56px;
padding-left: 25p... | 14.901198 | 90 | 0.652602 |
606277f407857fce7752fa6c2d1acce92b5e7e31 | 4,283 | html | HTML | app/content/texts/bengali_wbt/IS18.html | binu-alexander/thevachanonlineproject | 33c318bfc8b37de035d9c8e6b2a9bf8dea153b98 | [
"MIT"
] | 5 | 2019-12-18T05:17:19.000Z | 2020-04-04T07:07:21.000Z | app/content/texts/bengali_wbt/IS18.html | binu-alexander/thevachanonlineproject | 33c318bfc8b37de035d9c8e6b2a9bf8dea153b98 | [
"MIT"
] | 1 | 2020-04-30T01:25:38.000Z | 2020-04-30T01:25:38.000Z | app/content/texts/bengali_wbt/IS18.html | binu-alexander/thevachanonlineproject | 33c318bfc8b37de035d9c8e6b2a9bf8dea153b98 | [
"MIT"
] | null | null | null | <!DOCTYPE html>
<html><head><meta charset='UTF-8' />
<meta name='viewport' content='width=device-width, initial-scale=1.0, user-scalable=no' />
<title>পবিত্র বাইবেল যিশাইয় 18</title>
<link href='mukti.css' rel='stylesheet' />
<link href='fallback.css' rel='stylesheet' />
</head><body dir='ltr' class='section-document... | 75.140351 | 418 | 0.585804 |
e7bee31e7b4d3d20c4e0112d2a6c32b7899b92df | 1,361 | swift | Swift | Tests/WaniKaniClientTests/Requests/LevelProgression/GetAllLevelProgressionsRequestTests.swift | cplaverty/WaniKaniClient | 094d300f3813288c06a069bdd538c7d55def1d33 | [
"MIT"
] | 2 | 2019-12-28T03:32:48.000Z | 2020-04-19T12:56:43.000Z | Tests/WaniKaniClientTests/Requests/LevelProgression/GetAllLevelProgressionsRequestTests.swift | cplaverty/WaniKaniClient | 094d300f3813288c06a069bdd538c7d55def1d33 | [
"MIT"
] | null | null | null | Tests/WaniKaniClientTests/Requests/LevelProgression/GetAllLevelProgressionsRequestTests.swift | cplaverty/WaniKaniClient | 094d300f3813288c06a069bdd538c7d55def1d33 | [
"MIT"
] | null | null | null | import XCTest
@testable import WaniKaniClient
final class GetAllLevelProgressionsRequestTests: XCTestCase {
private let baseURL = URL(string: "https://api.wanikani.com/v2/")!
func testNoParams() {
let expected = URL(string: "level_progressions", relativeTo: baseURL)!.absoluteURL
l... | 35.815789 | 164 | 0.664217 |
90e0a3fe73680b6d78c677a08cb847e35af7aaf8 | 364 | py | Python | src/nlp/boneyard/scripts/find_security_group.py | khappucino/global-traffic-management | 81a80ae86c9119066c92df0727554cb5b61f9899 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/nlp/boneyard/scripts/find_security_group.py | khappucino/global-traffic-management | 81a80ae86c9119066c92df0727554cb5b61f9899 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/nlp/boneyard/scripts/find_security_group.py | khappucino/global-traffic-management | 81a80ae86c9119066c92df0727554cb5b61f9899 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | import boto3
def find_security_group(ec2_client):
filters = [{'Name':'tag:Name', 'Values':['int-test-backend-server']}]
results = ec2_client.describe_security_groups(Filters=filters)
if len(results) == 0:
print("none")
return None
else:
print(results['SecurityGroups'][0]['GroupId'])
ret... | 30.333333 | 71 | 0.678571 |
38a1b78a587d4119486040ab04021826afa0de66 | 726 | kt | Kotlin | src/main/kotlin/org/hildan/ipm/helper/galaxy/bonuses/Managers.kt | joffrey-bion/idle-planet-miner-helper | abd74f6fe41d8535a2690361f76b171c2083ecb4 | [
"MIT"
] | 1 | 2021-04-29T20:24:51.000Z | 2021-04-29T20:24:51.000Z | src/main/kotlin/org/hildan/ipm/helper/galaxy/bonuses/Managers.kt | joffrey-bion/idle-planet-miner-helper | abd74f6fe41d8535a2690361f76b171c2083ecb4 | [
"MIT"
] | null | null | null | src/main/kotlin/org/hildan/ipm/helper/galaxy/bonuses/Managers.kt | joffrey-bion/idle-planet-miner-helper | abd74f6fe41d8535a2690361f76b171c2083ecb4 | [
"MIT"
] | null | null | null | package org.hildan.ipm.helper.galaxy.bonuses
import org.hildan.ipm.helper.galaxy.planets.Planet
import org.hildan.ipm.helper.utils.completedBy
import java.util.EnumMap
data class Manager(
private val name: String,
private val planetBonus: PlanetBonus,
private val globalBonus: Bonus = Bonus.NONE
) {
fu... | 31.565217 | 116 | 0.710744 |
e9ee97b743eb5eae415e662d6e8be032839ab683 | 4,401 | go | Go | service/route53recoverycluster/doc.go | Skarlso/aws-sdk-go | 6a228d939132a3159d0dce221879efbedd842d61 | [
"Apache-2.0"
] | null | null | null | service/route53recoverycluster/doc.go | Skarlso/aws-sdk-go | 6a228d939132a3159d0dce221879efbedd842d61 | [
"Apache-2.0"
] | null | null | null | service/route53recoverycluster/doc.go | Skarlso/aws-sdk-go | 6a228d939132a3159d0dce221879efbedd842d61 | [
"Apache-2.0"
] | null | null | null | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package route53recoverycluster provides the client and types for making API
// requests to Route53 Recovery Cluster.
//
// Welcome to the Routing Control (Recovery Cluster) API Reference Guide for
// Amazon Route 53 Application Recovery Controller... | 57.907895 | 137 | 0.770052 |
cb263a70422995bec6a5d4a579c86953b37325db | 169 | h | C | prj.tools/augmentation/augmentation_utils.h | usilinsergey/objed | a5d0c82382a6546d5d4c649f153eec94c4ade0ee | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | prj.tools/augmentation/augmentation_utils.h | usilinsergey/objed | a5d0c82382a6546d5d4c649f153eec94c4ade0ee | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | prj.tools/augmentation/augmentation_utils.h | usilinsergey/objed | a5d0c82382a6546d5d4c649f153eec94c4ade0ee | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | #pragma once
#ifndef AUGMENTATION_UTILS_H_INCLUDED
#define AUGMENTATION_UTILS_H_INCLUDED
int normalValue(int mean, int sigma);
#endif // AUGMENTATION_UTILS_H_INCLUDED | 24.142857 | 40 | 0.846154 |
5d574fae34f574b9e231f85b46ec0eadb08e8a7b | 565 | go | Go | tests/nested_easy.go | reddyvinod/partialencode | 27c703181bf10ebc165f5086de3a74b3c2e7a755 | [
"MIT"
] | null | null | null | tests/nested_easy.go | reddyvinod/partialencode | 27c703181bf10ebc165f5086de3a74b3c2e7a755 | [
"MIT"
] | null | null | null | tests/nested_easy.go | reddyvinod/partialencode | 27c703181bf10ebc165f5086de3a74b3c2e7a755 | [
"MIT"
] | null | null | null | package tests
import (
"github.com/reddyvinod/partialencode"
"github.com/reddyvinod/partialencode/jwriter"
)
//partialencode:json
type NestedInterfaces struct {
Value interface{}
Slice []interface{}
Map map[string]interface{}
}
type NestedEasyMarshaler struct {
EasilyMarshaled bool
}
var _ partialencode.Mar... | 22.6 | 69 | 0.778761 |
274fea63bc618384624b356d1efe1e45f2175447 | 112 | css | CSS | src/components/Nav.css | easherma/netlify-cms-react-starter | 3c95d78a51faaa87063d6f331d5449586582c1b9 | [
"MIT"
] | null | null | null | src/components/Nav.css | easherma/netlify-cms-react-starter | 3c95d78a51faaa87063d6f331d5449586582c1b9 | [
"MIT"
] | null | null | null | src/components/Nav.css | easherma/netlify-cms-react-starter | 3c95d78a51faaa87063d6f331d5449586582c1b9 | [
"MIT"
] | null | null | null | .Nav {
background: white;
position: sticky;
top: 0;
z-index: 1;
}
.Nav--Container {
display: flex;
}
| 10.181818 | 20 | 0.589286 |
b6d0a7824306dcdea929c10794fd20569a4cba71 | 157 | rb | Ruby | project_cookbooks/packages/recipes/enable_internal_sources.rb | shabiel/ehmp-chef-repo | 6cbc7500305aefbf6bb600bcb8ea890408e68818 | [
"Apache-2.0"
] | null | null | null | project_cookbooks/packages/recipes/enable_internal_sources.rb | shabiel/ehmp-chef-repo | 6cbc7500305aefbf6bb600bcb8ea890408e68818 | [
"Apache-2.0"
] | null | null | null | project_cookbooks/packages/recipes/enable_internal_sources.rb | shabiel/ehmp-chef-repo | 6cbc7500305aefbf6bb600bcb8ea890408e68818 | [
"Apache-2.0"
] | null | null | null | #
# Cookbook Name:: no_internet
# Recipe:: default
#
include_recipe "packages::correct_ruby"
include_recipe "yum_wrapper"
include_recipe "rubygems_wrapper"
| 17.444444 | 39 | 0.796178 |
b960dd096c8c815605a819bb6b024d58cf81fd41 | 1,133 | asm | Assembly | programs/oeis/168/A168122.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/168/A168122.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/168/A168122.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A168122: n^2*(n^4+1)/2.
; 0,1,34,369,2056,7825,23346,58849,131104,265761,500050,885841,1493064,2413489,3764866,5695425,8388736,12068929,17006274,23523121,32000200,42883281,56690194,74018209,95551776,122070625,154458226,193710609,240945544,297412081,364500450,443752321,536871424,645734529,772402786,919133425,108839181... | 125.888889 | 1,058 | 0.878199 |
f9c5a6fb5bb7dfddf6a07ac400f32880161c7041 | 6,212 | go | Go | user/email/email.go | alonl/dex | 123ececd100c088bc08eea7ff102b4e965a0ffa8 | [
"Apache-2.0"
] | null | null | null | user/email/email.go | alonl/dex | 123ececd100c088bc08eea7ff102b4e965a0ffa8 | [
"Apache-2.0"
] | null | null | null | user/email/email.go | alonl/dex | 123ececd100c088bc08eea7ff102b4e965a0ffa8 | [
"Apache-2.0"
] | 1 | 2019-11-14T06:39:33.000Z | 2019-11-14T06:39:33.000Z | package email
import (
"net/url"
"time"
"github.com/coreos/go-oidc/jose"
"github.com/coreos/dex/email"
"github.com/coreos/dex/pkg/log"
"github.com/coreos/dex/user"
)
// UserEmailer provides functions for sending emails to Users.
type UserEmailer struct {
ur user.UserRepo
pwi ... | 29.164319 | 206 | 0.692531 |
560ed946ff2e9d001314f8bb025b6d660ae16699 | 994 | go | Go | pkg/k8s/poddisruptionbudget_test.go | bborbe/world | cf56490b360705677e53c7fb6e1e5ce1e0eba24e | [
"BSD-2-Clause"
] | null | null | null | pkg/k8s/poddisruptionbudget_test.go | bborbe/world | cf56490b360705677e53c7fb6e1e5ce1e0eba24e | [
"BSD-2-Clause"
] | null | null | null | pkg/k8s/poddisruptionbudget_test.go | bborbe/world | cf56490b360705677e53c7fb6e1e5ce1e0eba24e | [
"BSD-2-Clause"
] | null | null | null | // Copyright (c) 2018 Benjamin Borbe All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package k8s_test
import (
"bytes"
"testing"
"github.com/go-yaml/yaml"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/f... | 19.88 | 70 | 0.700201 |
5b128499db7f093607d7a4f558e48d5fe6361d18 | 3,426 | h | C | src/misynth/combinators.h | vmishenev/misynth | 5bd977cb32144a6d61670c874efad49982f75932 | [
"MIT"
] | null | null | null | src/misynth/combinators.h | vmishenev/misynth | 5bd977cb32144a6d61670c874efad49982f75932 | [
"MIT"
] | null | null | null | src/misynth/combinators.h | vmishenev/misynth | 5bd977cb32144a6d61670c874efad49982f75932 | [
"MIT"
] | null | null | null | #ifndef COMBINATORS_H
#define COMBINATORS_H
#include "util/vector.h"
class generator_permutation_with_repetitions
{
// URL: https://rosettacode.org/wiki/Permutations_with_repetitions#C.2B.2B
public:
generator_permutation_with_repetitions(int s, int v)
: m_slots(s),
m_valu... | 21.4125 | 82 | 0.360771 |
c884419c0379d9621e979f1f238e39dc4e1a03c0 | 1,339 | kt | Kotlin | app/src/androidTest/java/pl/gdg/myapplication/ExampleInstrumentedTest.kt | GDG-Wro/android_workshop_16 | 0f7e7bb2f2d3b7b9f06cf34f50310144806cc0f4 | [
"MIT"
] | null | null | null | app/src/androidTest/java/pl/gdg/myapplication/ExampleInstrumentedTest.kt | GDG-Wro/android_workshop_16 | 0f7e7bb2f2d3b7b9f06cf34f50310144806cc0f4 | [
"MIT"
] | 3 | 2020-12-14T00:52:41.000Z | 2020-12-14T17:57:50.000Z | app/src/androidTest/java/pl/gdg/myapplication/ExampleInstrumentedTest.kt | GDG-Wro/android_workshop_16 | 0f7e7bb2f2d3b7b9f06cf34f50310144806cc0f4 | [
"MIT"
] | null | null | null | package pl.gdg.myapplication
import androidx.test.core.app.launchActivity
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.action.ViewActions.click
import androidx.test.espresso.assertion.ViewAssertions
import androidx.test.espresso.matcher.ViewMatchers.withId
import androidx.test.espresso.m... | 35.236842 | 94 | 0.74832 |
85abb2a71f77035d9a81bc7aac5dc89d88fc61e4 | 1,457 | js | JavaScript | src/misc/helpers.js | shradhaagarwal01/Chat-Application | bd66599041b841c4abb967230e6ef6fd4cb082b0 | [
"MIT"
] | null | null | null | src/misc/helpers.js | shradhaagarwal01/Chat-Application | bd66599041b841c4abb967230e6ef6fd4cb082b0 | [
"MIT"
] | null | null | null | src/misc/helpers.js | shradhaagarwal01/Chat-Application | bd66599041b841c4abb967230e6ef6fd4cb082b0 | [
"MIT"
] | null | null | null | export function getNameInitials(name) {
const splitName = name.toUpperCase().split(' ');
if (splitName.length > 1) {
return splitName[0][0] + splitName[1][0];
}
return splitName[0][0];
}
export function transformToArr(snapVal) {
return snapVal ? Object.keys(snapVal) : [];
}
export function transformTo... | 22.075758 | 80 | 0.634866 |
7c86b441c37fa191396d56d1d9a6756fbab84617 | 668 | swift | Swift | Examples/UIScrollViewDemo/UIScrollViewDemo/CompanyCard/Cells/MyCoRightsRecommendCell.swift | huangboju/Moots | 122f54bc949b7f53a939e6153a8c04c3bef9a0f3 | [
"MIT"
] | 142 | 2016-12-05T07:23:50.000Z | 2022-02-15T05:25:59.000Z | Examples/UIScrollViewDemo/UIScrollViewDemo/CompanyCard/Cells/MyCoRightsRecommendCell.swift | liuchangjun9343/Moots | 9c004da865323d97a7ab929ca95e9881ade97804 | [
"MIT"
] | 1 | 2020-09-12T08:23:40.000Z | 2020-09-12T08:24:55.000Z | Examples/UIScrollViewDemo/UIScrollViewDemo/CompanyCard/Cells/MyCoRightsRecommendCell.swift | liuchangjun9343/Moots | 9c004da865323d97a7ab929ca95e9881ade97804 | [
"MIT"
] | 123 | 2016-11-02T05:52:12.000Z | 2022-02-15T05:26:01.000Z | //
// MyCoRightsRecommendCell.swift
// UIScrollViewDemo
//
// Created by 黄伯驹 on 2017/11/9.
// Copyright © 2017年 伯驹 黄. All rights reserved.
//
class MyCoRightsRecommendCell: UITableViewCell {
private lazy var recommendView: MyCoRightsRecommendView = {
let recommendView = MyCoRightsRecommendView()
... | 25.692308 | 79 | 0.699102 |
98d88e3f120ced8b2bad3afe49040233fbd0b3a4 | 248 | html | HTML | template.html | timhudson/github-markdown-preview | 597f9eed4ffbb29b65970a0dc335188f56c140de | [
"MIT"
] | 22 | 2015-01-16T05:55:37.000Z | 2021-09-03T01:33:31.000Z | template.html | timhudson/github-markdown-preview | 597f9eed4ffbb29b65970a0dc335188f56c140de | [
"MIT"
] | 3 | 2015-05-24T21:10:41.000Z | 2015-06-24T13:56:01.000Z | template.html | timhudson/github-markdown-preview | 597f9eed4ffbb29b65970a0dc335188f56c140de | [
"MIT"
] | 7 | 2015-05-24T09:58:22.000Z | 2021-06-27T21:57:04.000Z | <link rel="stylesheet" href="github-markdown.css">
<style>
.markdown-body {
min-width: 200px;
max-width: 790px;
margin: 0 auto;
padding: 30px;
}
</style>
<article class="markdown-body">{{markdown}}</article>
| 22.545455 | 53 | 0.592742 |
ddd27aa53b260d630065de209c11f28be968ea74 | 1,797 | go | Go | crdb/crdbgorm/gorm.go | geekhsy/cockroach-go | bde659970ca1031011e097c1347a60ee1f389d09 | [
"Apache-2.0"
] | null | null | null | crdb/crdbgorm/gorm.go | geekhsy/cockroach-go | bde659970ca1031011e097c1347a60ee1f389d09 | [
"Apache-2.0"
] | null | null | null | crdb/crdbgorm/gorm.go | geekhsy/cockroach-go | bde659970ca1031011e097c1347a60ee1f389d09 | [
"Apache-2.0"
] | null | null | null | // Copyright 2016 The Cockroach 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 ag... | 29.459016 | 86 | 0.72621 |
c2f5b078bba0e7beebd9d22235247005678eeef2 | 1,099 | go | Go | injection/injection.go | aaronkan007/owl | 6c82591e344a5e59a182cccc68e85da51fbd581f | [
"Apache-2.0"
] | 121 | 2021-08-13T03:40:33.000Z | 2022-02-23T06:14:24.000Z | injection/injection.go | aaronkan007/owl | 6c82591e344a5e59a182cccc68e85da51fbd581f | [
"Apache-2.0"
] | 13 | 2021-08-23T08:00:08.000Z | 2022-02-10T03:09:49.000Z | injection/injection.go | aaronkan007/owl | 6c82591e344a5e59a182cccc68e85da51fbd581f | [
"Apache-2.0"
] | 31 | 2021-08-19T09:43:27.000Z | 2022-01-13T03:43:31.000Z | package injection
import (
"github.com/ibanyu/owl/config"
"github.com/ibanyu/owl/dao"
"github.com/ibanyu/owl/service"
"github.com/ibanyu/owl/service/admin"
"github.com/ibanyu/owl/service/auth"
"github.com/ibanyu/owl/service/auth/login_check"
"github.com/ibanyu/owl/service/checker"
"github.com/ibanyu/owl/servic... | 24.977273 | 49 | 0.77707 |
7012b0ee0de563f59e1d753ee35ed4840b547dd3 | 710 | asm | Assembly | programs/oeis/033/A033562.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/033/A033562.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/033/A033562.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A033562: a(n) = 2*n^3 + 1.
; 1,3,17,55,129,251,433,687,1025,1459,2001,2663,3457,4395,5489,6751,8193,9827,11665,13719,16001,18523,21297,24335,27649,31251,35153,39367,43905,48779,54001,59583,65537,71875,78609,85751,93313,101307,109745,118639,128001,137843,148177,159015,170369,182251,194673,207647,221185,235299,250001,2... | 101.428571 | 652 | 0.815493 |
977b5e47c4aa853844a85364bdd795e082bd6585 | 185 | sql | SQL | lhc_web/doc/update_db/update_199.sql | stroonsN/livehelperchat | 6812f7cc5c89f6c9953dabbb0064acc21c48c226 | [
"Apache-2.0"
] | 1,528 | 2015-01-04T03:19:36.000Z | 2022-03-31T14:25:00.000Z | lhc_web/doc/update_db/update_199.sql | stroonsN/livehelperchat | 6812f7cc5c89f6c9953dabbb0064acc21c48c226 | [
"Apache-2.0"
] | 864 | 2015-01-01T18:06:22.000Z | 2022-03-23T08:39:17.000Z | lhc_web/doc/update_db/update_199.sql | stroonsN/livehelperchat | 6812f7cc5c89f6c9953dabbb0064acc21c48c226 | [
"Apache-2.0"
] | 796 | 2015-01-04T13:39:43.000Z | 2022-03-31T08:08:46.000Z | INSERT INTO `lh_chat_config` (`identifier`,`value`,`type`,`explain`,`hidden`) VALUES ('preload_iframes','0','0','Preload widget. It will avoid loading delay after clicking widget','0'); | 185 | 185 | 0.72973 |
0bb8f8f69bb52fa834faf685df61eb014236845c | 79 | js | JavaScript | lib/examples2.js | shishiawase/drrr-lambot | f814b0ca8c5d1593352c29a0cfc6cbaa3148a63b | [
"MIT"
] | null | null | null | lib/examples2.js | shishiawase/drrr-lambot | f814b0ca8c5d1593352c29a0cfc6cbaa3148a63b | [
"MIT"
] | null | null | null | lib/examples2.js | shishiawase/drrr-lambot | f814b0ca8c5d1593352c29a0cfc6cbaa3148a63b | [
"MIT"
] | null | null | null | const { ytMusic } = require('./lib/tools.js');
globalThis.ytSearch = ytSearch
| 19.75 | 46 | 0.696203 |
c7c1717b45ba66fa9944a35f364ccd17e44f5b42 | 191 | py | Python | python_client/setup.py | girder/slicer-extension-manager | 3aa563d24ed4cedff94a375381a2cf7fd31f3e64 | [
"Apache-2.0"
] | 2 | 2018-02-22T18:33:16.000Z | 2018-02-28T03:55:22.000Z | python_client/setup.py | girder/slicer-extension-manager | 3aa563d24ed4cedff94a375381a2cf7fd31f3e64 | [
"Apache-2.0"
] | 15 | 2018-02-20T23:44:25.000Z | 2018-03-01T02:55:46.000Z | python_client/setup.py | girder/slicer-extension-manager | 3aa563d24ed4cedff94a375381a2cf7fd31f3e64 | [
"Apache-2.0"
] | 1 | 2018-02-16T18:16:58.000Z | 2018-02-16T18:16:58.000Z | # -*- coding: utf-8 -*-
from setuptools import setup
# This file is required to support editable install
# See https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html
setup()
| 21.222222 | 74 | 0.748691 |
c82cafd0266bf5176bf6a4407d9ed75b934ce49a | 576 | asm | Assembly | data/baseStats/typhlosion.asm | adhi-thirumala/EvoYellow | 6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c | [
"Unlicense"
] | 16 | 2018-08-28T21:47:01.000Z | 2022-02-20T20:29:59.000Z | data/baseStats/typhlosion.asm | adhi-thirumala/EvoYellow | 6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c | [
"Unlicense"
] | 5 | 2019-04-03T19:53:11.000Z | 2022-03-11T22:49:34.000Z | data/baseStats/typhlosion.asm | adhi-thirumala/EvoYellow | 6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c | [
"Unlicense"
] | 2 | 2019-12-09T19:46:02.000Z | 2020-12-05T21:36:30.000Z | db DEX_TYPHLOSION ; pokedex id
db 78 ; base hp
db 84 ; base attack
db 78 ; base defense
db 109 ; base speed
db 92 ; base special
db FIRE ; species type 1
db FIRE ; species type 2
db 31 ; catch rate
db 209 ; base exp yield
INCBIN "pic/ymon/typhlosion.pic",0,1 ; sprite dimensions
dw TyphlosionPicFront
dw Typh... | 19.862069 | 57 | 0.725694 |
be2526a221386e53739cc9e771963f16435c05ab | 4,467 | rs | Rust | services/middleware/src/lib.rs | SergeiMal/exonum | 520324a321462bceb8acda9a92b9ed63fcdc3eaf | [
"Apache-2.0"
] | null | null | null | services/middleware/src/lib.rs | SergeiMal/exonum | 520324a321462bceb8acda9a92b9ed63fcdc3eaf | [
"Apache-2.0"
] | null | null | null | services/middleware/src/lib.rs | SergeiMal/exonum | 520324a321462bceb8acda9a92b9ed63fcdc3eaf | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 The Exonum Team
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | 32.369565 | 102 | 0.675397 |
3b4c479e95dbf792d069f6b9e4cc9ef9cb3c4ff8 | 4,655 | kt | Kotlin | app/src/main/java/com/keelim/comssa/ui/SplashActivity.kt | keelim/comssa | 84c8f15e1d52cab941fa122ff856bc41271583f8 | [
"Apache-2.0"
] | null | null | null | app/src/main/java/com/keelim/comssa/ui/SplashActivity.kt | keelim/comssa | 84c8f15e1d52cab941fa122ff856bc41271583f8 | [
"Apache-2.0"
] | 45 | 2021-07-15T12:27:15.000Z | 2022-03-30T12:31:43.000Z | app/src/main/java/com/keelim/comssa/ui/SplashActivity.kt | keelim/comssa | 84c8f15e1d52cab941fa122ff856bc41271583f8 | [
"Apache-2.0"
] | null | null | null | /*
* Designed and developed by 2021 keelim (Jaehyun Kim)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 32.78169 | 104 | 0.647691 |
906df488ef781352833a898b8bc9ccade2df57c0 | 835 | py | Python | cms/urls.py | schwalbe10/Django | 87fcc97669eccf6279e3a5064acacf97c26297cd | [
"MIT"
] | null | null | null | cms/urls.py | schwalbe10/Django | 87fcc97669eccf6279e3a5064acacf97c26297cd | [
"MIT"
] | null | null | null | cms/urls.py | schwalbe10/Django | 87fcc97669eccf6279e3a5064acacf97c26297cd | [
"MIT"
] | null | null | null | from django.conf.urls import patterns, url
from cms import views
urlpatterns = [
url(r'^record/$', views.record_list, name='record_list'), # List
url(r'^record/add/$', views.record_edit, name='record_add'), # Add
url(r'^record/mod/(?P<record_id>\d+)/$', views.record_edit, name='record_mod'), # Edit
... | 55.666667 | 112 | 0.634731 |
817532badf072e0ac82a1a1aca90c916497fbfe7 | 161 | kt | Kotlin | threejs/src/main/kotlin/three/renderers/webgl/WebGLShadowMap.kt | Pozo/threejs-kotlin | a53df48f15f633deba31467e33aa798b453104fc | [
"MIT"
] | 18 | 2017-05-12T07:23:11.000Z | 2020-09-19T00:31:07.000Z | threejs/src/main/kotlin/three/renderers/webgl/WebGLShadowMap.kt | Pozo/threejs-kotlin | a53df48f15f633deba31467e33aa798b453104fc | [
"MIT"
] | null | null | null | threejs/src/main/kotlin/three/renderers/webgl/WebGLShadowMap.kt | Pozo/threejs-kotlin | a53df48f15f633deba31467e33aa798b453104fc | [
"MIT"
] | 1 | 2021-06-02T08:14:31.000Z | 2021-06-02T08:14:31.000Z | @file:JsQualifier("THREE")
package three.renderers.webgl
@JsName("WebGLShadowMap")
external class WebGLShadowMap {
var enabled: Boolean
var type: Int
} | 17.888889 | 31 | 0.745342 |
35f0f168f7a9f68352c68817fc6c0a9399478f91 | 15,478 | swift | Swift | Hockey Game/Retro Experience/In Game/GameViewController.swift | ctdewaters/bitHockey | cfa4b4237f375bdf3f8c5d488c0224495b8fec3b | [
"MIT"
] | null | null | null | Hockey Game/Retro Experience/In Game/GameViewController.swift | ctdewaters/bitHockey | cfa4b4237f375bdf3f8c5d488c0224495b8fec3b | [
"MIT"
] | null | null | null | Hockey Game/Retro Experience/In Game/GameViewController.swift | ctdewaters/bitHockey | cfa4b4237f375bdf3f8c5d488c0224495b8fec3b | [
"MIT"
] | null | null | null | //
// GameViewController.swift
// Hockey Game
//
// Created by Collin DeWaters on 3/18/17.
// Copyright © 2017 Collin DeWaters. All rights reserved.
//
import UIKit
import SpriteKit
import GameplayKit
import AVFoundation
///`GameViewController`: view controller that will display the `GameView` to present the user... | 38.695 | 195 | 0.606086 |
5109fc601abaed1bd29d0e3c512db5a371716bca | 686 | swift | Swift | Constrictor/ConstrictorTests/Extensions/NSLayoutAttribute+Finder.swift | NSMyself/Constrictor | 7f8a25c5b68d063f8f5ead908dd816ca9e2a7787 | [
"MIT"
] | null | null | null | Constrictor/ConstrictorTests/Extensions/NSLayoutAttribute+Finder.swift | NSMyself/Constrictor | 7f8a25c5b68d063f8f5ead908dd816ca9e2a7787 | [
"MIT"
] | null | null | null | Constrictor/ConstrictorTests/Extensions/NSLayoutAttribute+Finder.swift | NSMyself/Constrictor | 7f8a25c5b68d063f8f5ead908dd816ca9e2a7787 | [
"MIT"
] | null | null | null | //
// NSLayoutConstraint.Attribute+Finder.swift
// ConstrictorTests
//
// Created by Pedro Carrasco on 23/05/2018.
// Copyright © 2018 Pedro Carrasco. All rights reserved.
//
import UIKit
extension NSLayoutConstraint {
func isFrom(_ attribute: NSLayoutConstraint.Attribute, relatedTo view: UIView?, at index: ... | 26.384615 | 129 | 0.721574 |
59c3ef680f40b23bee348cf82fd533d23a148808 | 1,778 | swift | Swift | MVP/MVP/Utils/TableDataSource.swift | pilot34/ios-architectures | 5cea13899938003214c64e1774266667f61fd1cc | [
"MIT"
] | null | null | null | MVP/MVP/Utils/TableDataSource.swift | pilot34/ios-architectures | 5cea13899938003214c64e1774266667f61fd1cc | [
"MIT"
] | null | null | null | MVP/MVP/Utils/TableDataSource.swift | pilot34/ios-architectures | 5cea13899938003214c64e1774266667f61fd1cc | [
"MIT"
] | null | null | null | //
// TableDataSource.swift
// MVP
//
// Created by Gleb Tarasov on 18/09/2018.
// Copyright © 2018 Gleb Tarasov. All rights reserved.
//
import UIKit
protocol Cell {
associatedtype Data
func update(data: Data)
}
extension Cell {
static var cellIdentifier: String {
return String(describing: ... | 29.633333 | 100 | 0.566367 |
3d0311e7781ad53451f3f1f45847b4ac2ee53c70 | 551 | go | Go | instructions/math_instructions/ishl.go | Frederick-S/jvmgo | d1d7e88027adca184aff511ef4ccde0dcb5a6247 | [
"MIT"
] | 1 | 2019-08-04T04:20:42.000Z | 2019-08-04T04:20:42.000Z | instructions/math_instructions/ishl.go | Frederick-S/jvmgo | d1d7e88027adca184aff511ef4ccde0dcb5a6247 | [
"MIT"
] | null | null | null | instructions/math_instructions/ishl.go | Frederick-S/jvmgo | d1d7e88027adca184aff511ef4ccde0dcb5a6247 | [
"MIT"
] | null | null | null | package math_instructions
import (
"github.com/Frederick-S/jvmgo/instructions/base_instructions"
"github.com/Frederick-S/jvmgo/runtime_data_area"
)
// ishl
// Shift left int
type IShl struct {
base_instructions.NoOperandsInstruction
}
func (iShl *IShl) Execute(frame *runtime_data_area.Frame) {
operandStack := fr... | 25.045455 | 62 | 0.794918 |
f42cb663d2b6fa331667904f5290d5646526d3ca | 377 | go | Go | services.go | equelin/gounity | 4c6f6f9b9b2d9335ef7ecb9e42034b051a83417f | [
"MIT"
] | 4 | 2018-10-23T20:51:45.000Z | 2021-01-14T14:37:32.000Z | services.go | equelin/gounity | 4c6f6f9b9b2d9335ef7ecb9e42034b051a83417f | [
"MIT"
] | null | null | null | services.go | equelin/gounity | 4c6f6f9b9b2d9335ef7ecb9e42034b051a83417f | [
"MIT"
] | 5 | 2018-04-06T14:08:07.000Z | 2022-02-03T08:01:09.000Z | package gounity
import types "github.com/equelin/gounity/types/v1"
//GetDNSServer purpose is to get the DNS configuration of the Unity array.
func (session *Session) GetDNSServer() (resp *types.DNSServer, err error) {
fields := "id,domain,origin,addresses"
err = session.Request("GET", "/api/types/dnsServer/instan... | 29 | 94 | 0.734748 |
4f18e8c8fb7bd4f9ed7bd065197d2507323db39a | 317 | swift | Swift | OnlySwitch/View/Setting/Radio/RadioSettingModel.swift | Mu-L/OnlySwitch | 6aedec5d665d54e4af551631b6f2ffd0528eec65 | [
"MIT"
] | null | null | null | OnlySwitch/View/Setting/Radio/RadioSettingModel.swift | Mu-L/OnlySwitch | 6aedec5d665d54e4af551631b6f2ffd0528eec65 | [
"MIT"
] | null | null | null | OnlySwitch/View/Setting/Radio/RadioSettingModel.swift | Mu-L/OnlySwitch | 6aedec5d665d54e4af551631b6f2ffd0528eec65 | [
"MIT"
] | null | null | null | //
// RadioSettingModel.swift
// OnlySwitch
//
// Created by Jacklandrin on 2022/6/8.
//
import Foundation
struct RadioSettingModel {
var radioList:[RadioPlayerItem] = [RadioPlayerItem]()
var selectRow:RadioPlayerItem.ID?
var showErrorToast = false
var errorInfo = ""
var currentTitle = ""
}
| 18.647059 | 57 | 0.690852 |
e512bdc28fd47eb6b83ffaa64850fabf88de9846 | 44,716 | html | HTML | doc/yahoofinance/YahooFinance.html | fthuin/FinanceFromYahoo | 80b3b7dea2e11eb3fd2b1db745cca0e24b027d94 | [
"MIT"
] | null | null | null | doc/yahoofinance/YahooFinance.html | fthuin/FinanceFromYahoo | 80b3b7dea2e11eb3fd2b1db745cca0e24b027d94 | [
"MIT"
] | null | null | null | doc/yahoofinance/YahooFinance.html | fthuin/FinanceFromYahoo | 80b3b7dea2e11eb3fd2b1db745cca0e24b027d94 | [
"MIT"
] | null | null | null | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="fr">
<head>
<!-- Generated by javadoc (version 1.7.0_79) on Fri Jul 10 15:44:48 CEST 2015 -->
<title>YahooFinance</title>
<meta name="date" content="2015-07-10">
<link rel="stylesheet" typ... | 52.607059 | 349 | 0.697133 |
74cdd10b763f14e553fb6c8ab64a13d4519a96ec | 5,542 | rs | Rust | src/game.rs | reniowood/tui-2048 | 0a28d94ad9611f80c66f79daa28c1c4546e0503a | [
"MIT"
] | null | null | null | src/game.rs | reniowood/tui-2048 | 0a28d94ad9611f80c66f79daa28c1c4546e0503a | [
"MIT"
] | null | null | null | src/game.rs | reniowood/tui-2048 | 0a28d94ad9611f80c66f79daa28c1c4546e0503a | [
"MIT"
] | null | null | null | use crate::block::block;
use crate::board::Board;
pub struct Game {
goal: u32,
pub board: Board,
pub width: usize,
pub height: usize,
pub score: u32,
}
impl Game {
pub fn new(goal: u32, width: usize, height: usize) -> Game {
let mut board = Board::new(width, height);
board = G... | 22.437247 | 64 | 0.433418 |
5f39789b325ea7156b409fafdf4e9857501b806c | 4,226 | ts | TypeScript | src/utils/context.ts | Ingenico-ePayments/connect-sdk-jss2s | fa9a616e6ffa7c661117a6dd875d180e9e540ead | [
"CC0-1.0"
] | 12 | 2016-07-11T17:44:03.000Z | 2021-12-26T15:25:03.000Z | src/utils/context.ts | Ingenico-ePayments/connect-sdk-jss2s | fa9a616e6ffa7c661117a6dd875d180e9e540ead | [
"CC0-1.0"
] | 6 | 2016-10-12T21:33:25.000Z | 2020-05-18T12:25:24.000Z | src/utils/context.ts | Ingenico-ePayments/connect-sdk-jss2s | fa9a616e6ffa7c661117a6dd875d180e9e540ead | [
"CC0-1.0"
] | 9 | 2016-09-17T07:15:10.000Z | 2020-01-24T16:05:07.000Z | import crypto = require("crypto");
import _ = require("lodash");
import { Context, Header, Logger, SdkContext } from "../model";
import { ShoppingCartExtension } from "../model/domain/metadata";
/**
* @param {Array} gcsHeaders Collection of headers that need to be sorted; only headers that start with X-GCS will be r... | 33.808 | 163 | 0.659962 |
e587edcbc173d6a1c4313d291619a1f92305dfdc | 1,211 | ts | TypeScript | packages/api/src/modules/role/types.ts | UriellViana/unnamed-project | 5dfef4f54d5aa23ac7d5d52580fb5c1b9d09fa12 | [
"MIT"
] | 1 | 2020-11-19T03:55:17.000Z | 2020-11-19T03:55:17.000Z | packages/api/src/modules/role/types.ts | UriellViana/unnamed-project | 5dfef4f54d5aa23ac7d5d52580fb5c1b9d09fa12 | [
"MIT"
] | 39 | 2020-11-04T21:59:59.000Z | 2021-09-13T15:03:58.000Z | packages/api/src/modules/role/types.ts | ditointernet/tradulab | c00d1e38932b00a84bddce9ba181dc9cfd8e1abb | [
"MIT"
] | null | null | null | import { gql } from 'apollo-server-express';
export default gql`
enum InvitedRole {
# viewer
contributor
proofreader
developer
manager
}
type Role {
id: ID!
role: String!
user: String!
project: String!
createdAt: Date!
updatedAt: Date!
}
type RoleWithProject {
... | 16.589041 | 63 | 0.610239 |
b1820d57476d317189a6b1aef81cf791e47b2c3f | 1,386 | h | C | MgpWallet/MGPToken/应用/OTC快捷买卖/订单详情页面/Model/OverTheCounterOrderDetailModel.h | mangochain2020/mangowallet-ios | 8481187bd16efd1f313bc77691aa0ecd47eebd8f | [
"MIT"
] | 1 | 2021-03-03T03:07:47.000Z | 2021-03-03T03:07:47.000Z | MgpWallet/MGPToken/应用/OTC快捷买卖/订单详情页面/Model/OverTheCounterOrderDetailModel.h | mangochain2020/mangowallet-ios | 8481187bd16efd1f313bc77691aa0ecd47eebd8f | [
"MIT"
] | null | null | null | MgpWallet/MGPToken/应用/OTC快捷买卖/订单详情页面/Model/OverTheCounterOrderDetailModel.h | mangochain2020/mangowallet-ios | 8481187bd16efd1f313bc77691aa0ecd47eebd8f | [
"MIT"
] | 3 | 2020-12-27T07:45:04.000Z | 2021-03-03T03:07:49.000Z | //
// OverTheCounterOrderDetailModel.h
// TaiYiToken
//
// Created by mac on 2020/12/31.
// Copyright © 2020 admin. All rights reserved.
//
#import <Foundation/Foundation.h>
/**
类目条目
*/
@interface CategoryDetailModel : NSObject
@property (nonatomic , assign)BOOL isTitle;
@property (nonatomic , copy)NSString *... | 21.65625 | 76 | 0.751804 |
76f90f737379dee6e178845a0fc08f66f6d17b1f | 1,033 | h | C | stab.h | mikequentel/c2ada | d2cc8ed2d42c4ca9ae35b5de144b795c58f97cc1 | [
"MIT"
] | 4 | 2017-06-07T11:43:08.000Z | 2022-03-14T00:29:06.000Z | stab.h | mikequentel/c2ada | d2cc8ed2d42c4ca9ae35b5de144b795c58f97cc1 | [
"MIT"
] | 1 | 2017-11-24T14:59:27.000Z | 2017-12-14T04:19:28.000Z | stab.h | mikequentel/c2ada | d2cc8ed2d42c4ca9ae35b5de144b795c58f97cc1 | [
"MIT"
] | 4 | 2015-06-26T10:48:39.000Z | 2020-04-13T18:05:01.000Z | #ifndef _H_STAB_
#define _H_STAB_
extern symbol_t *new_sym(void);
extern symbol_t *find_sym(char*);
extern void store_sym(symbol_t*);
/* Scopes */
typedef enum {
Unspecified_scope,
Func_scope,
File_scope,
Block_scope,
Proto_scope
} scope_kind_t;
extern scope_kind_t scope_kind(scope_id_t);
extern... | 21.520833 | 67 | 0.774443 |
52d6324055bdbd949c86a36e0fbf44409366118b | 434 | sql | SQL | database/script/2020_10_30_mercado.sql | Smukihub/ProyectoRecuperacion | 6f66797836d099d10eb387cb8ff12c855abc901c | [
"MIT"
] | null | null | null | database/script/2020_10_30_mercado.sql | Smukihub/ProyectoRecuperacion | 6f66797836d099d10eb387cb8ff12c855abc901c | [
"MIT"
] | null | null | null | database/script/2020_10_30_mercado.sql | Smukihub/ProyectoRecuperacion | 6f66797836d099d10eb387cb8ff12c855abc901c | [
"MIT"
] | 1 | 2021-08-21T06:12:00.000Z | 2021-08-21T06:12:00.000Z | CREATE TABLE `categorias` (
`id` int NOT NULL,
`nombre` varchar(20) COLLATE utf8_bin NOT NULL,
`descripcion` varchar(100) COLLATE utf8_bin NOT NULL,
`imagen` varchar(100) COLLATE utf8_bin NOT NULL,
`activa` tinyint(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
ALTER TABLE `c... | 28.933333 | 67 | 0.74424 |
46bc14824535b53c49c091dcc4051de806ea373d | 1,915 | css | CSS | src/assets/css/loginPage.css | Accomple/WebApp | afbfb02b544cb1c6e765838a835dac0cd7ae8149 | [
"MIT"
] | null | null | null | src/assets/css/loginPage.css | Accomple/WebApp | afbfb02b544cb1c6e765838a835dac0cd7ae8149 | [
"MIT"
] | null | null | null | src/assets/css/loginPage.css | Accomple/WebApp | afbfb02b544cb1c6e765838a835dac0cd7ae8149 | [
"MIT"
] | null | null | null | .login-form{
height: 100%;
border:solid 2px rgb(96, 195, 173) ;
background-color: white;
width: 40%;
height: 400px;
margin-left: 30%;
margin-top: 50px;
padding: 10px 10px 10px 10px;
}
.perks{
border:1px solid rgba(0,0,0,0.2);
margin-top: 15px;
margin-bottom: 10px;
padding: 4px;
border-radius: 0.25em... | 16.652174 | 40 | 0.65483 |
c7bcb664bcc58934dd16f4662e4af550f74af2c8 | 71,464 | py | Python | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_ip_tcp_cfg.py | bopopescu/ACI | dd717bc74739eeed4747b3ea9e36b239580df5e1 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_ip_tcp_cfg.py | bopopescu/ACI | dd717bc74739eeed4747b3ea9e36b239580df5e1 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_ip_tcp_cfg.py | bopopescu/ACI | dd717bc74739eeed4747b3ea9e36b239580df5e1 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-07-22T04:04:44.000Z | 2020-07-22T04:04:44.000Z | """ Cisco_IOS_XR_ip_tcp_cfg
This module contains a collection of YANG definitions
for Cisco IOS\-XR ip\-tcp package configuration.
This module contains definitions
for the following management objects\:
ip\-tcp\: Global IP TCP configuration
ip\: ip
Copyright (c) 2013\-2017 by Cisco Systems, Inc.
All rights rese... | 42.361589 | 293 | 0.451038 |
0f411e0daf137115e863f6edac5e9e7d40227cf0 | 43 | lua | Lua | ftplugin/yaml.lua | brainplot/nvim | 34726d41027575e02fe6d1a30fe187bdd5cf8bbe | [
"MIT"
] | 1 | 2020-07-21T12:23:02.000Z | 2020-07-21T12:23:02.000Z | ftplugin/yaml.lua | brainplot/nvim | 34726d41027575e02fe6d1a30fe187bdd5cf8bbe | [
"MIT"
] | null | null | null | ftplugin/yaml.lua | brainplot/nvim | 34726d41027575e02fe6d1a30fe187bdd5cf8bbe | [
"MIT"
] | 2 | 2020-05-05T01:04:00.000Z | 2020-07-21T08:04:43.000Z | vim.bo.tabstop = 2
vim.bo.expandtab = true
| 14.333333 | 23 | 0.72093 |
fb44d185d7370f3049acf65122bfa9e3e2b361c7 | 369 | h | C | matrix/mat_ones_kernel.h | YeonwooSung/DNN_Builder | b009aaca55665f581276b024b570744db7f72358 | [
"MIT"
] | null | null | null | matrix/mat_ones_kernel.h | YeonwooSung/DNN_Builder | b009aaca55665f581276b024b570744db7f72358 | [
"MIT"
] | null | null | null | matrix/mat_ones_kernel.h | YeonwooSung/DNN_Builder | b009aaca55665f581276b024b570744db7f72358 | [
"MIT"
] | null | null | null | #include <cuda_runtime.h>
#ifndef _mat_ones_kernel_
#define _mat_ones_kernel_
__global__ void mat_ones_kernel (const float * __restrict__ src,
float * __restrict__ dst, int m, int n);
#ifdef __cplusplus
extern "C" {
#endif
void mat_ones_kernel_exec(const float *src, float *dst, int... | 21.705882 | 74 | 0.691057 |
f083521712fdd7bcc50f7023b5b94d04976a33ac | 1,121 | js | JavaScript | pc_project/js/demo1.js | 1033291362/html-css-js | 4e17e843d8e4197d74c33ad78955768d8e1c3e6b | [
"MIT"
] | null | null | null | pc_project/js/demo1.js | 1033291362/html-css-js | 4e17e843d8e4197d74c33ad78955768d8e1c3e6b | [
"MIT"
] | null | null | null | pc_project/js/demo1.js | 1033291362/html-css-js | 4e17e843d8e4197d74c33ad78955768d8e1c3e6b | [
"MIT"
] | null | null | null | $(function(){
//首页链接
$(".t_bottom li").click(function(){
var index = $(".t_bottom li").index(this);
$(".t_bottom li").css({
"background":"#1a8fcb"
})
$(".t_bottom li").eq(index).css({
"background":"#00cc33"
})
})
//主页面图片切换
var user = {};
user.time = null;
index = 0;
user.pic=[
"img/1.jpg",
... | 18.683333 | 53 | 0.553078 |
40862d825ecfa36e98ae5a3ba1c02f58d5ccfa19 | 3,709 | swift | Swift | X10 Pelmanism/Pelmanism/GameScene.swift | JulesMoorhouse/100DaysOfSwift | 2435fefb42ca00e152ca954de2a3ec7e3d8dc2ee | [
"MIT"
] | 1 | 2019-08-12T08:24:55.000Z | 2019-08-12T08:24:55.000Z | X10 Pelmanism/Pelmanism/GameScene.swift | JulesMoorhouse/100DaysOfSwift | 2435fefb42ca00e152ca954de2a3ec7e3d8dc2ee | [
"MIT"
] | null | null | null | X10 Pelmanism/Pelmanism/GameScene.swift | JulesMoorhouse/100DaysOfSwift | 2435fefb42ca00e152ca954de2a3ec7e3d8dc2ee | [
"MIT"
] | null | null | null | //
// GameScene.swift
// Pelmanism
//
// Created by Julian Moorhouse on 10/09/2019.
// Copyright © 2019 Mindwarp Consultancy Ltd. All rights reserved.
//
import GameplayKit
import SpriteKit
class GameScene: SKScene, SKPhysicsContactDelegate {
var cards = [PlayingCard]()
var wonGame: MessageNode!
... | 31.432203 | 115 | 0.489889 |
9ec93f28b4296098ac849583156968f3623de761 | 1,633 | rs | Rust | christmastree/src/main.rs | Braafisch/rust-sandbox | aff6e343a46d7a6bb055478089dbfc7db52c6f88 | [
"Unlicense"
] | null | null | null | christmastree/src/main.rs | Braafisch/rust-sandbox | aff6e343a46d7a6bb055478089dbfc7db52c6f88 | [
"Unlicense"
] | null | null | null | christmastree/src/main.rs | Braafisch/rust-sandbox | aff6e343a46d7a6bb055478089dbfc7db52c6f88 | [
"Unlicense"
] | null | null | null | use clap::{App, Arg};
struct ChristmasTree {
height: u32,
has_star: bool,
}
impl ChristmasTree {
fn draw(&self) {
if self.has_star {
self.draw_star();
}
self.draw_tree();
self.draw_trunk();
}
fn draw_star(&self) {
self.output("*");
}
fn... | 22.680556 | 87 | 0.469688 |
f1dac3ad8681849a5b795b4642381141876570db | 193 | rb | Ruby | app/policies/result_policy.rb | MIT-IR/abet | 53d46c394fcdd7832735e78b056b5bac6b3f4c6f | [
"MIT"
] | 4 | 2016-10-13T19:30:11.000Z | 2018-07-29T08:47:02.000Z | app/policies/result_policy.rb | MIT-IR/abet | 53d46c394fcdd7832735e78b056b5bac6b3f4c6f | [
"MIT"
] | 156 | 2015-06-03T13:55:36.000Z | 2017-07-06T20:39:53.000Z | app/policies/result_policy.rb | MIT-IR/abet | 53d46c394fcdd7832735e78b056b5bac6b3f4c6f | [
"MIT"
] | 3 | 2015-06-02T21:20:44.000Z | 2018-04-12T18:44:04.000Z | class ResultPolicy < ApplicationPolicy
def create?
user.manage_results?(record.assignment.subject_department)
end
def update?
create?
end
def destroy?
create?
end
end
| 13.785714 | 62 | 0.715026 |
bd8dfd8db80900f9a24760865ec8b2661cdd3f9f | 7,333 | rs | Rust | util/src/date/mod.rs | SimonOsaka/rust-web-server-example | 624bc0091c5feb06c7abb4d7842cffcf1f25f9c5 | [
"MIT"
] | 5 | 2022-01-04T01:51:25.000Z | 2022-01-30T10:20:04.000Z | util/src/date/mod.rs | SimonOsaka/rust-web-server-example | 624bc0091c5feb06c7abb4d7842cffcf1f25f9c5 | [
"MIT"
] | null | null | null | util/src/date/mod.rs | SimonOsaka/rust-web-server-example | 624bc0091c5feb06c7abb4d7842cffcf1f25f9c5 | [
"MIT"
] | 1 | 2021-12-16T09:59:41.000Z | 2021-12-16T09:59:41.000Z | pub mod error;
pub mod format;
pub mod timezone;
use time::{format_description, OffsetDateTime, UtcOffset};
use self::{
error::DateError,
format::{
FORMAT_PATTERN_DAY, FORMAT_PATTERN_HOUR, FORMAT_PATTERN_MINUTE, FORMAT_PATTERN_MONTH,
FORMAT_PATTERN_SECOND, FORMAT_PATTERN_YEAR, FORMAT_PATTERN_Y... | 27.464419 | 114 | 0.549707 |
2aa1a688cd9d6ae13f7772b6d3e9f633078c3f07 | 3,357 | sql | SQL | database/d_delete.sql | Guergeiro/bd2-group2 | 34520e40ef915dc7bb89486ac2322f8994ac9862 | [
"MIT"
] | null | null | null | database/d_delete.sql | Guergeiro/bd2-group2 | 34520e40ef915dc7bb89486ac2322f8994ac9862 | [
"MIT"
] | 12 | 2019-11-17T21:22:49.000Z | 2020-01-19T18:10:00.000Z | database/d_delete.sql | Guergeiro/bd2-group2 | 34520e40ef915dc7bb89486ac2322f8994ac9862 | [
"MIT"
] | 2 | 2019-11-15T16:47:21.000Z | 2019-11-17T13:59:40.000Z | -- Delete Clientes
CREATE OR REPLACE PROCEDURE deleteclientes(VARCHAR(10))
LANGUAGE plpgsql
AS $deleteclientes$
BEGIN
DELETE FROM clientes WHERE cod_cliente = $1;
END
$deleteclientes$;
-- Delete Consumos
CREATE OR REPLACE PROCEDURE deleteconsumos(VARCHAR(10))
LANGUAGE plpgsql
AS $deleteconsumos$
BEGIN
DELET... | 19.073864 | 75 | 0.786416 |
0a1654e9bd673a58672b2fcf2c627e810704a509 | 695 | tsx | TypeScript | example/App.tsx | lastmagic/flax | b894d695ac307fd54bc26cf61f0f9b15e9e60ec1 | [
"MIT"
] | 3 | 2021-03-18T09:51:38.000Z | 2022-02-15T09:09:57.000Z | example/App.tsx | lastmagic/flax | b894d695ac307fd54bc26cf61f0f9b15e9e60ec1 | [
"MIT"
] | 3 | 2020-12-14T07:57:58.000Z | 2020-12-15T14:00:07.000Z | example/App.tsx | lastmagic/flax | b894d695ac307fd54bc26cf61f0f9b15e9e60ec1 | [
"MIT"
] | 3 | 2020-12-14T07:37:44.000Z | 2021-10-06T09:24:59.000Z | import React from 'react';
import {Link, Route, BrowserRouter, Switch} from 'react-router-dom';
import {Main} from './Main';
import {Page} from './Page';
import {PageChild} from './PageChild';
export function App() {
return (
<>
<BrowserRouter>
<div id="App">
<Link to="/">Main</Link> / <L... | 27.8 | 72 | 0.530935 |
dfa8eb0ef043732ccec94614a131f5acdaef0d83 | 2,999 | lua | Lua | Users/Shared/Binaries/stardust.lua | thesharpdev/Fuchas | 8941e8115e5c5ff63ad32184533c60fee7b27ee0 | [
"MIT"
] | null | null | null | Users/Shared/Binaries/stardust.lua | thesharpdev/Fuchas | 8941e8115e5c5ff63ad32184533c60fee7b27ee0 | [
"MIT"
] | null | null | null | Users/Shared/Binaries/stardust.lua | thesharpdev/Fuchas | 8941e8115e5c5ff63ad32184533c60fee7b27ee0 | [
"MIT"
] | null | null | null | local fs = require("filesystem")
local shell = require("shell")
local sec = require("security")
-- Free some memory
if package.loaded["OCX/OCDraw"] then
require("OCX/OCDraw").requestMemory()
end
if not sec.requestPermission("component.unrestricted") then
io.stderr:write("Stardust programs requires unrestricted acce... | 22.548872 | 109 | 0.694231 |
12c60798d7f4d181b9c4c69ef5dd5eb854aacf8a | 13,534 | html | HTML | _site/index.html | fjbautistas/fjbautistas.github.io | 59d01ec90c87309b92f6d9549b198f1fd5743ee8 | [
"MIT"
] | null | null | null | _site/index.html | fjbautistas/fjbautistas.github.io | 59d01ec90c87309b92f6d9549b198f1fd5743ee8 | [
"MIT"
] | null | null | null | _site/index.html | fjbautistas/fjbautistas.github.io | 59d01ec90c87309b92f6d9549b198f1fd5743ee8 | [
"MIT"
] | null | null | null | <!DOCTYPE html>
<html lang="en"><head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Frank Bautista | Physicist.</title><!-- Begin Jekyll SEO tag v2.6.1 -->
<meta name="generator" content="Jekyll v3.9.0" ... | 50.312268 | 455 | 0.664844 |
f038a863268c516819dbf950a745c99c6fc026b5 | 6,375 | py | Python | tutorials/03-advanced/image_captioning/model.py | xuwangyin/pytorch-tutorial | d6a29c19288c817432b3b101765596e037e01989 | [
"MIT"
] | 11 | 2017-08-20T18:12:34.000Z | 2020-03-18T18:03:16.000Z | tutorials/03-advanced/image_captioning/model.py | xuwangyin/pytorch-tutorial | d6a29c19288c817432b3b101765596e037e01989 | [
"MIT"
] | null | null | null | tutorials/03-advanced/image_captioning/model.py | xuwangyin/pytorch-tutorial | d6a29c19288c817432b3b101765596e037e01989 | [
"MIT"
] | 5 | 2017-08-10T05:15:37.000Z | 2021-12-01T08:23:30.000Z | import torch
import torch.nn as nn
import torchvision.models as models
from torch.nn.utils.rnn import pack_padded_sequence as pack
from torch.nn.utils.rnn import pad_packed_sequence as unpack
from torch.autograd import Variable
class EncoderCNN(nn.Module):
def __init__(self, embed_size):
"""Load the pretr... | 47.574627 | 132 | 0.674039 |
2677022d0f06ba2edd1595f12925003d5f558f34 | 1,510 | java | Java | src/main/java/com/max/util/Array2DUtils.java | mstepan/elements-of-programmin-interviews | f66a1ae02c693b3ea279fc7063df7c29a8df86cc | [
"MIT"
] | null | null | null | src/main/java/com/max/util/Array2DUtils.java | mstepan/elements-of-programmin-interviews | f66a1ae02c693b3ea279fc7063df7c29a8df86cc | [
"MIT"
] | 4 | 2020-12-08T08:40:58.000Z | 2022-01-04T16:35:48.000Z | src/main/java/com/max/util/Array2DUtils.java | mstepan/elements-of-programmin-interviews | f66a1ae02c693b3ea279fc7063df7c29a8df86cc | [
"MIT"
] | null | null | null | package com.max.util;
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotNull;
/**
* Utility class for 2D arrays.
*/
public final class Array2DUtils {
private Array2DUtils() {
throw new IllegalStateException("Utility only class")... | 26.034483 | 118 | 0.566225 |
080757e9bf383b75e6168b052f4afb683d5000c1 | 1,289 | html | HTML | client/404.html | sdarmaputra/linkbucket | 660c607e189d7270dbda067d3188ae1a9255af6a | [
"MIT"
] | null | null | null | client/404.html | sdarmaputra/linkbucket | 660c607e189d7270dbda067d3188ae1a9255af6a | [
"MIT"
] | null | null | null | client/404.html | sdarmaputra/linkbucket | 660c607e189d7270dbda067d3188ae1a9255af6a | [
"MIT"
] | null | null | null | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link href="https://fonts.googleapis.com/css?family=Quicksand:300" rel="stylesheet">
<title>LinkBucket | You've got lost :(</title>
<style>
html {
height: 100%;
}
body {
padding: 0;
margin: 0;
height: 100%;
color: #222;
font-fa... | 20.140625 | 154 | 0.596587 |
4073ae892cf743011bae401a26ea43702e91762a | 3,884 | py | Python | py/utils/string_utils.py | arccode/factory | a1b0fccd68987d8cd9c89710adc3c04b868347ec | [
"BSD-3-Clause"
] | 3 | 2022-01-06T16:52:52.000Z | 2022-03-07T11:30:47.000Z | py/utils/string_utils.py | arccode/factory | a1b0fccd68987d8cd9c89710adc3c04b868347ec | [
"BSD-3-Clause"
] | null | null | null | py/utils/string_utils.py | arccode/factory | a1b0fccd68987d8cd9c89710adc3c04b868347ec | [
"BSD-3-Clause"
] | 1 | 2021-10-24T01:47:22.000Z | 2021-10-24T01:47:22.000Z | # Copyright 2012 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""This module provides utility functions for string processing."""
from collections import namedtuple
import logging
def DecodeUTF8(data):
"""Deco... | 24.738854 | 79 | 0.654995 |
9c2a89e7067edbb780d2230a11183518b23b1af3 | 155 | ts | TypeScript | src/config/common/API_NAME.ts | ardalanamini/express-api-template | 89487b93cdc1d110a6fce889bf3ec3af48eed652 | [
"MIT"
] | 8 | 2022-02-07T23:59:35.000Z | 2022-02-24T21:48:08.000Z | src/config/common/API_NAME.ts | ardalanamini/express-api-template | 89487b93cdc1d110a6fce889bf3ec3af48eed652 | [
"MIT"
] | 25 | 2022-03-01T08:12:52.000Z | 2022-03-30T23:58:46.000Z | src/config/common/API_NAME.ts | ardalanamini/express-api-template | 89487b93cdc1d110a6fce889bf3ec3af48eed652 | [
"MIT"
] | null | null | null | // eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
import { name } from "#package.json";
export const API_NAME = name as string;
| 25.833333 | 61 | 0.729032 |
e95760a1e153bf30c72080eb589ad9e16cf3a5d6 | 2,025 | go | Go | registry/custom/custom.go | bn0ir/fabio | bf654ba0f4c94b855b25134e467e35f9c75b1637 | [
"MIT"
] | 3,725 | 2017-04-14T05:48:03.000Z | 2022-03-30T00:09:40.000Z | registry/custom/custom.go | bn0ir/fabio | bf654ba0f4c94b855b25134e467e35f9c75b1637 | [
"MIT"
] | 612 | 2017-04-14T06:14:10.000Z | 2022-03-26T19:16:39.000Z | registry/custom/custom.go | bn0ir/fabio | bf654ba0f4c94b855b25134e467e35f9c75b1637 | [
"MIT"
] | 444 | 2017-04-14T05:44:15.000Z | 2022-03-24T12:16:38.000Z | package custom
import (
"crypto/tls"
"encoding/json"
"fmt"
"github.com/fabiolb/fabio/config"
"github.com/fabiolb/fabio/route"
"log"
"net/http"
"time"
)
func customRoutes(cfg *config.Custom, ch chan string) {
var Routes *[]route.RouteDef
var trans *http.Transport
var URL string
if !cfg.CheckTLSSkipVerify... | 24.39759 | 91 | 0.65037 |
ba5a1df631795649ec244537f787ad14f53153a5 | 15,126 | sql | SQL | SQLDataDump/SQL_Full_Export.sql | Modus28/mos-eisley-cantina | 0b0fdcddfbd6a4269660b676fbeb14c2a2b931f1 | [
"MIT"
] | null | null | null | SQLDataDump/SQL_Full_Export.sql | Modus28/mos-eisley-cantina | 0b0fdcddfbd6a4269660b676fbeb14c2a2b931f1 | [
"MIT"
] | null | null | null | SQLDataDump/SQL_Full_Export.sql | Modus28/mos-eisley-cantina | 0b0fdcddfbd6a4269660b676fbeb14c2a2b931f1 | [
"MIT"
] | null | null | null | -- MySQL dump 10.13 Distrib 5.7.17, for macos10.12 (x86_64)
--
-- Host: localhost Database: bar
-- ------------------------------------------------------
-- Server version 5.7.16
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*... | 46.256881 | 1,046 | 0.68769 |
3889e199a13cbe830c7289c9365a49741c212e9b | 1,394 | c | C | d/deku/dark/elite.c | Dbevan/SunderingShadows | 6c15ec56cef43c36361899bae6dc08d0ee907304 | [
"MIT"
] | 13 | 2019-07-19T05:24:44.000Z | 2021-11-18T04:08:19.000Z | d/deku/dark/elite.c | Dbevan/SunderingShadows | 6c15ec56cef43c36361899bae6dc08d0ee907304 | [
"MIT"
] | 4 | 2021-03-15T18:56:39.000Z | 2021-08-17T17:08:22.000Z | d/deku/dark/elite.c | Dbevan/SunderingShadows | 6c15ec56cef43c36361899bae6dc08d0ee907304 | [
"MIT"
] | 13 | 2019-09-12T06:22:38.000Z | 2022-01-31T01:15:12.000Z | #include <std.h>
#include <objects.h>
inherit ROOM;
void create() {
::create();
set_property("light",0);
set_property("indoors",1);
set_property("no sticks",1);
set_terrain(BUILT_CAVE);
set_travel(DIRT_ROAD);
set_short("Darkelf elite guards");
set_long(
@KAYLA
Many skeletal forms lie n... | 26.807692 | 141 | 0.646341 |
4157cf26d2e3ef5f4b5b74c827d876f5994fb45e | 215 | h | C | MXInke/MXInke/Classes/Base/MXTabBarController.h | dibaicongyouwangzi/MXInke | c537e36ca948d4447f539ad5e3766bff16b4c651 | [
"MIT"
] | 1 | 2017-04-16T17:17:44.000Z | 2017-04-16T17:17:44.000Z | MXInke/MXInke/Classes/Base/MXTabBarController.h | dibaicongyouwangzi/MXInke | c537e36ca948d4447f539ad5e3766bff16b4c651 | [
"MIT"
] | null | null | null | MXInke/MXInke/Classes/Base/MXTabBarController.h | dibaicongyouwangzi/MXInke | c537e36ca948d4447f539ad5e3766bff16b4c651 | [
"MIT"
] | null | null | null | //
// MXTabBarController.h
// MXInke
//
// Created by 迪拜葱油王子 on 2017/4/14.
// Copyright © 2017年 迪拜葱油王子. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface MXTabBarController : UITabBarController
@end
| 15.357143 | 50 | 0.702326 |
c2d128cf2c6484afe771f02eb48006a8293c6e33 | 674 | go | Go | main.go | marema31/villip | 704fa5ccbf39e12546581869b5b7fc8db9f46655 | [
"BSD-2-Clause"
] | null | null | null | main.go | marema31/villip | 704fa5ccbf39e12546581869b5b7fc8db9f46655 | [
"BSD-2-Clause"
] | 5 | 2021-07-20T12:19:22.000Z | 2021-09-23T21:17:07.000Z | main.go | marema31/villip | 704fa5ccbf39e12546581869b5b7fc8db9f46655 | [
"BSD-2-Clause"
] | 1 | 2020-10-05T08:40:13.000Z | 2020-10-05T08:40:13.000Z | package main
import (
"os"
"golang.org/x/sync/errgroup"
"github.com/sirupsen/logrus"
"github.com/marema31/villip/filterlist"
)
func main() {
log := logrus.New()
filters := filterlist.New()
log.SetLevel(logrus.InfoLevel)
if _, ok := os.LookupEnv("VILLIP_DEBUG"); ok {
log.SetLevel(logrus.DebugLevel)
}
... | 16.439024 | 52 | 0.660237 |
6994e2f4b3b46a653a3f74cc798c0d3bef7b8997 | 845 | kt | Kotlin | app/src/main/kotlin/com/numero/itube/ui/video/detail/playlist/item/PlaylistHeaderItem.kt | NUmeroAndDev/iTube-android | f1ed07fd0efb98239563c8940f69d498ba6f2602 | [
"MIT"
] | 3 | 2018-07-27T15:03:30.000Z | 2019-07-22T09:53:01.000Z | app/src/main/kotlin/com/numero/itube/ui/video/detail/playlist/item/PlaylistHeaderItem.kt | NUmeroAndDev/iTube-android | f1ed07fd0efb98239563c8940f69d498ba6f2602 | [
"MIT"
] | 15 | 2018-04-27T03:13:52.000Z | 2018-11-02T12:40:00.000Z | app/src/main/kotlin/com/numero/itube/ui/video/detail/playlist/item/PlaylistHeaderItem.kt | NUmeroAndDev/iTube-android | f1ed07fd0efb98239563c8940f69d498ba6f2602 | [
"MIT"
] | null | null | null | package com.numero.itube.ui.video.detail.playlist.item
import com.numero.itube.R
import com.numero.itube.model.PlaylistDetail
import com.numero.itube.model.PlaylistId
import com.xwray.groupie.kotlinandroidextensions.Item
import com.xwray.groupie.kotlinandroidextensions.ViewHolder
import kotlinx.android.synthetic.main.... | 35.208333 | 81 | 0.772781 |
295f4d79f3bd66989f8261c17bc879a087f97930 | 554 | swift | Swift | LeetCode/Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts/main.swift | ShubhamJagtap2000/competitive-programming-1 | 3a9a2e3dd08f8fa8ab823f295cd020d08d3bff84 | [
"MIT"
] | 1 | 2021-07-22T07:37:31.000Z | 2021-07-22T07:37:31.000Z | LeetCode/Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts/main.swift | ShubhamJagtap2000/competitive-programming-1 | 3a9a2e3dd08f8fa8ab823f295cd020d08d3bff84 | [
"MIT"
] | null | null | null | LeetCode/Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts/main.swift | ShubhamJagtap2000/competitive-programming-1 | 3a9a2e3dd08f8fa8ab823f295cd020d08d3bff84 | [
"MIT"
] | null | null | null |
class Solution {
func maxArea(_ h: Int, _ w: Int, _ H: [Int], _ V: [Int]) -> Int {
var (horizontal, vertical) = (H, V)
horizontal += [0, h]
vertical += [0, w]
horizontal.sort()
vertical.sort()
var (maxHorizontalDiff, maxVerticalDiff) = (0, 0)
for i in 1 ..< horizontal.count {
maxHorizontalDiff = max(... | 29.157895 | 80 | 0.644404 |
5f5d17dd0f7a88514680ac9ef209127f1e3b172c | 133 | ts | TypeScript | src/services/apolloServer/createContext.ts | lffg/graphql-auth-boilerplate | 72a1ac6374cd3a6b77a2ce60fc02d21a17bb6bd8 | [
"MIT"
] | null | null | null | src/services/apolloServer/createContext.ts | lffg/graphql-auth-boilerplate | 72a1ac6374cd3a6b77a2ce60fc02d21a17bb6bd8 | [
"MIT"
] | null | null | null | src/services/apolloServer/createContext.ts | lffg/graphql-auth-boilerplate | 72a1ac6374cd3a6b77a2ce60fc02d21a17bb6bd8 | [
"MIT"
] | null | null | null | import { MyContext } from '../../types/MyContext'
export function createContext({ req }: any): MyContext {
return {
req
}
}
| 16.625 | 56 | 0.631579 |
a05c76d009d243bf428f6bd515f205eed89dc3d9 | 110 | sql | SQL | db/update4.0.1.sql | rwj42/MANYI-PMS | a01a76cd03d15bbcff3e55b271b2807d30eb7c39 | [
"MIT"
] | null | null | null | db/update4.0.1.sql | rwj42/MANYI-PMS | a01a76cd03d15bbcff3e55b271b2807d30eb7c39 | [
"MIT"
] | null | null | null | db/update4.0.1.sql | rwj42/MANYI-PMS | a01a76cd03d15bbcff3e55b271b2807d30eb7c39 | [
"MIT"
] | 1 | 2019-01-29T06:38:48.000Z | 2019-01-29T06:38:48.000Z | ALTER TABLE `zt_user` CHANGE `msn` `skype` CHAR( 90 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;
| 55 | 109 | 0.745455 |
beea137ba12e80d98254e74daa42e7d7c22bea55 | 1,924 | html | HTML | messengerext/templates/groups/links.html | groupsome/groupsome | 4edcf30d66ff458c4df37d3198ef187219a768d7 | [
"MIT"
] | 6 | 2016-10-07T13:43:17.000Z | 2017-10-07T22:34:44.000Z | messengerext/templates/groups/links.html | groupsome/groupsome | 4edcf30d66ff458c4df37d3198ef187219a768d7 | [
"MIT"
] | null | null | null | messengerext/templates/groups/links.html | groupsome/groupsome | 4edcf30d66ff458c4df37d3198ef187219a768d7 | [
"MIT"
] | 1 | 2020-07-15T04:29:31.000Z | 2020-07-15T04:29:31.000Z | {% extends "groups/_base.html" %}
{% load i18n staticfiles compress ifrole %}
{% block title %}{% trans "Links" %} - {{ block.super }}{% endblock %}
{% block group_content %}
<div class="section group-links">
<div class="page-header">
<h2>{% trans "Links" %}</h2>
</div>
{% if links %}
<table class="tabl... | 26.722222 | 125 | 0.516632 |
9b8bd045fcd738c612a566c5f09be103720a3d3b | 5,907 | js | JavaScript | JS-Advanced/20-Exam-Prep-2/02-PizzUni/test/tests.js | DenislavVelichkov/JS-Core-January-2020 | 8503a2de75ac3e67aad043b818a7cd95d607c8c2 | [
"MIT"
] | null | null | null | JS-Advanced/20-Exam-Prep-2/02-PizzUni/test/tests.js | DenislavVelichkov/JS-Core-January-2020 | 8503a2de75ac3e67aad043b818a7cd95d607c8c2 | [
"MIT"
] | null | null | null | JS-Advanced/20-Exam-Prep-2/02-PizzUni/test/tests.js | DenislavVelichkov/JS-Core-January-2020 | 8503a2de75ac3e67aad043b818a7cd95d607c8c2 | [
"MIT"
] | null | null | null | const { expect } = require("chai");
const { beforeEach } = require("mocha");
const PizzUni = require('../PizzUni');
describe('Tests', function () {
let user1;
let user2;
let user3;
let fakePizza;
beforeEach(function () {
pizzUni = new PizzUni();
user1 = {
email: "pako@aa.aa",
orderHist... | 28.536232 | 104 | 0.613171 |
0ec4af9cbf3c7a1a8413c5378c0629d9f19dd2a8 | 693 | sql | SQL | migrations/frontend/1528395943/up.sql | bobheadlabs/sourcegraph | 9699b27c150ea30b64abe06e4dfbf6eddc8b71b0 | [
"Apache-2.0"
] | 4 | 2022-03-25T13:46:37.000Z | 2022-03-31T15:30:47.000Z | migrations/frontend/1528395943/up.sql | bobheadlabs/sourcegraph | 9699b27c150ea30b64abe06e4dfbf6eddc8b71b0 | [
"Apache-2.0"
] | 1 | 2022-03-23T19:54:55.000Z | 2022-03-23T19:54:55.000Z | migrations/frontend/1528395943/up.sql | bobheadlabs/sourcegraph | 9699b27c150ea30b64abe06e4dfbf6eddc8b71b0 | [
"Apache-2.0"
] | 2 | 2022-03-25T13:47:23.000Z | 2022-03-25T13:51:12.000Z | CREATE EXTENSION IF NOT EXISTS citext;
COMMENT ON EXTENSION citext IS 'data type for case-insensitive character strings';
CREATE EXTENSION IF NOT EXISTS hstore;
COMMENT ON EXTENSION hstore IS 'data type for storing sets of (key, value) pairs';
CREATE EXTENSION IF NOT EXISTS intarray;
COMMENT ON EXTENSION intarray ... | 34.65 | 103 | 0.808081 |
3b614e6e05afb35c0abc36823a3792de8981289a | 12,218 | c | C | dlls/hnetcfg/tests/policy.c | castaneai/wine | 842452d4e79b20c42d2b7e279063b2feabeb31de | [
"MIT"
] | null | null | null | dlls/hnetcfg/tests/policy.c | castaneai/wine | 842452d4e79b20c42d2b7e279063b2feabeb31de | [
"MIT"
] | null | null | null | dlls/hnetcfg/tests/policy.c | castaneai/wine | 842452d4e79b20c42d2b7e279063b2feabeb31de | [
"MIT"
] | null | null | null | /*
* Copyright 2016 Alistair Leslie-Hughes
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This l... | 34.416901 | 121 | 0.665248 |
16c4d2d24372c599ec03cdb4b86346137448ff3b | 3,426 | asm | Assembly | B2G/external/libvpx/vp8/common/arm/neon/shortidct4x4llm_neon.asm | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | 3 | 2015-08-31T15:24:31.000Z | 2020-04-24T20:31:29.000Z | third_party/libvpx/source/libvpx/vp8/common/arm/neon/shortidct4x4llm_neon.asm | roisagiv/webrtc-ios | 953395a7d7a0922c825edb2304d2e458f3392686 | [
"BSD-3-Clause"
] | null | null | null | third_party/libvpx/source/libvpx/vp8/common/arm/neon/shortidct4x4llm_neon.asm | roisagiv/webrtc-ios | 953395a7d7a0922c825edb2304d2e458f3392686 | [
"BSD-3-Clause"
] | 4 | 2015-09-16T11:40:39.000Z | 2019-06-10T01:08:46.000Z | ;
; Copyright (c) 2010 The WebM project authors. All Rights Reserved.
;
; Use of this source code is governed by a BSD-style license
; that can be found in the LICENSE file in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing proje... | 27.408 | 96 | 0.508173 |
f12b68f665d3e7d39b1138c6c3d2bf10fe8e6dfe | 964 | rb | Ruby | app/controllers/pods_controller.rb | K-Eo/reddhub | 4984c9785cd760ffd891d6033093381be31a9539 | [
"MIT"
] | null | null | null | app/controllers/pods_controller.rb | K-Eo/reddhub | 4984c9785cd760ffd891d6033093381be31a9539 | [
"MIT"
] | null | null | null | app/controllers/pods_controller.rb | K-Eo/reddhub | 4984c9785cd760ffd891d6033093381be31a9539 | [
"MIT"
] | null | null | null | class PodsController < ApplicationController
before_action :authenticate_user!
def create
@pod = current_user.pods.new(pod_params)
respond_to do |format|
if @pod.save
format.html do
redirect_to root_path(current_user.username), notice: t(".notice")
end
format.json {... | 25.368421 | 79 | 0.620332 |
41829cee975a16e68331fc5adf5b60f8bbdd9acf | 129 | sql | SQL | src/test/resources/sql/create_table/e60d298e.sql | Shuttl-Tech/antlr_psql | fcf83192300abe723f3fd3709aff5b0c8118ad12 | [
"MIT"
] | 66 | 2018-06-15T11:34:03.000Z | 2022-03-16T09:24:49.000Z | src/test/resources/sql/create_table/e60d298e.sql | Shuttl-Tech/antlr_psql | fcf83192300abe723f3fd3709aff5b0c8118ad12 | [
"MIT"
] | 13 | 2019-03-19T11:56:28.000Z | 2020-08-05T04:20:50.000Z | src/test/resources/sql/create_table/e60d298e.sql | Shuttl-Tech/antlr_psql | fcf83192300abe723f3fd3709aff5b0c8118ad12 | [
"MIT"
] | 28 | 2019-01-05T19:59:02.000Z | 2022-03-24T11:55:50.000Z | -- file:create_index.sql ln:117 expect:true
CREATE TABLE radix_text_tbl AS
SELECT name AS t FROM road WHERE name !~ '^[0-9]'
| 32.25 | 53 | 0.72093 |
f73aff1b7ff6418f32ec8febc176564922651ab7 | 1,674 | h | C | core/display.h | codetiger/GameTiger-Console | c143f6d6d32e077205bf48f08665f63c50467de0 | [
"MIT"
] | 4 | 2022-03-09T13:27:03.000Z | 2022-03-31T01:59:29.000Z | core/display.h | codetiger/GameTiger-Console | c143f6d6d32e077205bf48f08665f63c50467de0 | [
"MIT"
] | null | null | null | core/display.h | codetiger/GameTiger-Console | c143f6d6d32e077205bf48f08665f63c50467de0 | [
"MIT"
] | null | null | null | #include "common.h"
#include "color.h"
#ifndef _GAME_TIGER_DISPLAY_H
#define _GAME_TIGER_DISPLAY_H
class Display {
private:
const uint8_t CS_PIN = 9;
const uint8_t BL_PIN = 13;
const uint8_t DC_PIN = 8;
const uint8_t RST_PIN = 12;
const uint8_t MOSI_PIN = 11;
const uint8_t SCK_PIN = 10;
#ifde... | 27.442623 | 100 | 0.688172 |
da0a5880a046664add8a3be13a2bded27835b5aa | 108 | sql | SQL | hasura/migrations/1619821930551_alter_table_job_queues_CombineVideosJob_alter_column_createdByAttendeeId/up.sql | LasseWolter/clowdr | 4777fc8386a7cd4f09b7a366ccd01662608c3e01 | [
"BSD-3-Clause"
] | 49 | 2021-01-09T07:09:08.000Z | 2022-03-27T05:16:46.000Z | hasura/migrations/1619821930551_alter_table_job_queues_CombineVideosJob_alter_column_createdByAttendeeId/up.sql | LasseWolter/clowdr | 4777fc8386a7cd4f09b7a366ccd01662608c3e01 | [
"BSD-3-Clause"
] | 333 | 2021-01-17T14:52:22.000Z | 2022-03-10T02:38:53.000Z | hasura/migrations/1619821930551_alter_table_job_queues_CombineVideosJob_alter_column_createdByAttendeeId/up.sql | LasseWolter/clowdr | 4777fc8386a7cd4f09b7a366ccd01662608c3e01 | [
"BSD-3-Clause"
] | 15 | 2021-01-29T14:17:38.000Z | 2022-02-14T22:13:48.000Z | alter table "job_queues"."CombineVideosJob" rename column "createdByAttendeeId" to "createdByRegistrantId";
| 54 | 107 | 0.833333 |
2163a0a3c3858ad766619eba029dda57b7b32111 | 268 | sql | SQL | tests/test_project/unit_tests/test_incremental_sum/model.sql | yida318/dbt-unit-test | 65c2ee91a78dc004ccd713879c68bff5251a3382 | [
"MIT"
] | 7 | 2021-03-11T09:34:24.000Z | 2022-01-12T07:52:48.000Z | tests/test_project/unit_tests/test_incremental_sum/model.sql | yida318/dbt-unit-test | 65c2ee91a78dc004ccd713879c68bff5251a3382 | [
"MIT"
] | 1 | 2021-12-18T16:57:21.000Z | 2021-12-18T16:57:21.000Z | tests/test_project/unit_tests/test_incremental_sum/model.sql | yida318/dbt-unit-test | 65c2ee91a78dc004ccd713879c68bff5251a3382 | [
"MIT"
] | 5 | 2021-06-13T01:56:20.000Z | 2022-03-08T17:52:59.000Z | {{
config(
materialized='incremental',
unique_key='grp'
)
}}
{{
incremental_sum(
reference = ref('test_incremental_sum_batch'),
metric_field = 'metric',
group_field = 'grp',
load_time_field = 'batch'
)
}} | 19.142857 | 54 | 0.548507 |
81a572c8cfa24d4e56c70a8c96b7e158179dbcf8 | 2,663 | rs | Rust | src/lib.rs | marekm4/dominant_color | 6c21be581bc3d0f168115ab902bd2f2bc399fd06 | [
"MIT"
] | 13 | 2019-08-21T22:31:28.000Z | 2021-09-25T06:23:53.000Z | src/lib.rs | marekm4/dominant_color | 6c21be581bc3d0f168115ab902bd2f2bc399fd06 | [
"MIT"
] | null | null | null | src/lib.rs | marekm4/dominant_color | 6c21be581bc3d0f168115ab902bd2f2bc399fd06 | [
"MIT"
] | 1 | 2021-09-12T21:57:45.000Z | 2021-09-12T21:57:45.000Z | #[derive(Copy, Clone, Debug)]
struct Bucket {
r: f64,
g: f64,
b: f64,
count: f64,
}
pub fn get_colors(pixels: &[u8], has_alpha: bool) -> Vec<u8> {
get_colors_with_config(&pixels, has_alpha, 224.0 * 224.0, 0.01)
}
pub fn get_colors_with_config(
pixels: &[u8],
has_alpha: bool,
down_size_... | 29.588889 | 76 | 0.517837 |
90aa1bf3211f40930af4835f5a69fc125b8d0418 | 5,321 | py | Python | neural_sp/evaluators/wordpiece_bleu.py | SunSki/neural_sp | 4e4aca9b4cda1c7d95a1774d22f4d3298ad4ba4b | [
"Apache-2.0"
] | null | null | null | neural_sp/evaluators/wordpiece_bleu.py | SunSki/neural_sp | 4e4aca9b4cda1c7d95a1774d22f4d3298ad4ba4b | [
"Apache-2.0"
] | null | null | null | neural_sp/evaluators/wordpiece_bleu.py | SunSki/neural_sp | 4e4aca9b4cda1c7d95a1774d22f4d3298ad4ba4b | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2020 Kyoto University (Hirofumi Inaguma)
# Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
"""Evaluate the wordpiece-level model by BLEU."""
import codecs
import logging
from tqdm import tqdm
from nltk.translate.bleu_score import corpus_bleu, sent... | 38.557971 | 117 | 0.557226 |
d67e3e20cc7fcc07503b5d1aa71ffd0dfaff6089 | 3,491 | swift | Swift | EvaluateDay/Nodes/UpdateNode.swift | bretsko/Evaluate-Day | 3413d97c062bb7a1f8abadc56458449ad9fbec74 | [
"MIT"
] | 6 | 2018-06-30T08:37:26.000Z | 2020-12-14T00:17:01.000Z | EvaluateDay/Nodes/UpdateNode.swift | bretsko/Evaluate-Day | 3413d97c062bb7a1f8abadc56458449ad9fbec74 | [
"MIT"
] | null | null | null | EvaluateDay/Nodes/UpdateNode.swift | bretsko/Evaluate-Day | 3413d97c062bb7a1f8abadc56458449ad9fbec74 | [
"MIT"
] | 2 | 2020-07-04T10:09:53.000Z | 2020-12-14T02:43:54.000Z | //
// UpdateNode.swift
// EvaluateDay
//
// Created by Konstantin Tsistjakov on 26/11/2017.
// Copyright © 2017 Konstantin Tsistjakov. All rights reserved.
//
import UIKit
import AsyncDisplayKit
class UpdateNode: ASCellNode {
// MARK: - UI
var titleNode = ASTextNode()
var subtitleNode = ASTextNod... | 45.337662 | 287 | 0.707534 |
1c594298c4aa2e2fa06fcd8e4f2dbfd4c6d1bb95 | 2,227 | css | CSS | assets/css/lightBlue.css | NarenderManral/AbyowWebsite | 699e18797cf8f86a4eda8be5788139ddc02df530 | [
"MIT"
] | 15 | 2017-10-28T11:23:40.000Z | 2022-03-28T13:44:11.000Z | assets/css/lightBlue.css | NarenderManral/AbyowWebsite | 699e18797cf8f86a4eda8be5788139ddc02df530 | [
"MIT"
] | 1 | 2021-09-20T09:21:11.000Z | 2021-09-20T09:21:11.000Z | assets/css/lightBlue.css | NarenderManral/AbyowWebsite | 699e18797cf8f86a4eda8be5788139ddc02df530 | [
"MIT"
] | 8 | 2018-10-24T19:45:04.000Z | 2022-02-14T15:33:13.000Z | /* ==================================
Main Style
================================== */
body, html {
background-color: #f7f7fd;
font-family: 'Raleway', sans-serif;
}
a:hover {
text-decoration: none;
}
/* ==================================
Container
================================== */
.container... | 18.254098 | 55 | 0.498877 |
76dd288da5afd55d2b3005df93731844bef2d28f | 412 | c | C | Userland/Wc/src/wc.c | mbrula/Shell-OS | b40891db466da672129fc9a1747749845a7ddc91 | [
"BSD-3-Clause"
] | null | null | null | Userland/Wc/src/wc.c | mbrula/Shell-OS | b40891db466da672129fc9a1747749845a7ddc91 | [
"BSD-3-Clause"
] | null | null | null | Userland/Wc/src/wc.c | mbrula/Shell-OS | b40891db466da672129fc9a1747749845a7ddc91 | [
"BSD-3-Clause"
] | null | null | null | // This is a personal academic project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
#include <clib.h>
int main(int argc, char const *argv[]) {
int car;
int lines = 0;
putchar('\n');
while ((car = getchar()) >= 0) {
putchar(car);
if (car == '\n')... | 25.75 | 75 | 0.616505 |
202a6200c4ea3b40e83d1dadb78091b9f5ea3c59 | 139 | css | CSS | typography.css | knagurski/pa55w0rd | 6eaf0514bb4426802be1058a4207313ce6db4163 | [
"MIT"
] | null | null | null | typography.css | knagurski/pa55w0rd | 6eaf0514bb4426802be1058a4207313ce6db4163 | [
"MIT"
] | null | null | null | typography.css | knagurski/pa55w0rd | 6eaf0514bb4426802be1058a4207313ce6db4163 | [
"MIT"
] | null | null | null | @font-face {
font-family: comfortaa;
font-display: swap;
src: url("./Comfortaa.ttf");
}
* {
font-family: comfortaa, sans-serif;
}
| 13.9 | 37 | 0.633094 |
c0866991669b466f6dfb9d242369a4a8cdde1e1a | 656 | kt | Kotlin | src/main/kotlin/com/deflatedpickle/hangerchan/extensions/PolygonShape.kt | DeflatedPickle/Hanger-chan | 60d85fdcc710f99c0bc7d221f8de1c271bf8ab2c | [
"MIT"
] | null | null | null | src/main/kotlin/com/deflatedpickle/hangerchan/extensions/PolygonShape.kt | DeflatedPickle/Hanger-chan | 60d85fdcc710f99c0bc7d221f8de1c271bf8ab2c | [
"MIT"
] | 8 | 2020-03-16T22:58:59.000Z | 2020-05-07T22:06:47.000Z | src/main/kotlin/com/deflatedpickle/hangerchan/extensions/PolygonShape.kt | DeflatedPickle/Hanger-chan | 60d85fdcc710f99c0bc7d221f8de1c271bf8ab2c | [
"MIT"
] | null | null | null | package com.deflatedpickle.hangerchan.extensions
import org.jbox2d.collision.shapes.PolygonShape
fun PolygonShape.getWidth(): Float = this.vertices[0].x + this.vertices[2].x
fun PolygonShape.getHeight(): Float = this.vertices[0].y + this.vertices[2].y
fun PolygonShape.getSize(): Pair<Float, Float> = Pair(this.getWi... | 32.8 | 88 | 0.669207 |
b9a74a1de58d42cf9ad394c10346f8814541e81c | 3,800 | c | C | src/s1ap/messages/asn1/r10.5/S1ap-CriticalityDiagnostics-IE-Item.c | lionelgo/openair-mme | 75bc0993613f61072342f5ae13dca28574253671 | [
"BSD-3-Clause"
] | 19 | 2020-04-25T15:51:52.000Z | 2021-11-24T04:51:02.000Z | src/s1ap/messages/asn1/r10.5/S1ap-CriticalityDiagnostics-IE-Item.c | lionelgo/openair-mme | 75bc0993613f61072342f5ae13dca28574253671 | [
"BSD-3-Clause"
] | 10 | 2020-09-09T09:54:20.000Z | 2021-04-27T20:47:52.000Z | src/s1ap/messages/asn1/r10.5/S1ap-CriticalityDiagnostics-IE-Item.c | lionelgo/openair-mme | 75bc0993613f61072342f5ae13dca28574253671 | [
"BSD-3-Clause"
] | 24 | 2020-05-31T01:41:12.000Z | 2022-01-16T17:06:35.000Z | /*
* Generated by asn1c-0.9.24 (http://lionet.info/asn1c)
* From ASN.1 module "S1AP-IEs"
* found in "S1AP-IEs.asn"
*/
#include "S1ap-CriticalityDiagnostics-IE-Item.h"
static asn_TYPE_member_t asn_MBR_S1ap_CriticalityDiagnostics_IE_Item_1[] = {
{ATF_NOFLAGS, 0,
offsetof(struct S1ap_CriticalityDiagnostics... | 43.181818 | 80 | 0.677632 |
015283b3a730797b0d509e1bad096e3c311aca3a | 1,100 | lua | Lua | chatcommands.lua | red-001/duel | 9d742f4e518d0f63fdc3ac1c1b1f1e3b5db721e4 | [
"MIT"
] | 1 | 2017-04-06T22:42:22.000Z | 2017-04-06T22:42:22.000Z | chatcommands.lua | red-001/duel | 9d742f4e518d0f63fdc3ac1c1b1f1e3b5db721e4 | [
"MIT"
] | 1 | 2017-04-06T22:43:17.000Z | 2017-04-07T17:15:22.000Z | chatcommands.lua | red-001/duel | 9d742f4e518d0f63fdc3ac1c1b1f1e3b5db721e4 | [
"MIT"
] | null | null | null | minetest.register_chatcommand("duel", {
params = "<player name>",
description = "Challenge a player to a duel",
func = function(caller, param)
if caller == param then
return false, "You can't have a duel with yourself"
end
local player = minetest.get_player_by_name(param)
if not player then
return f... | 25.581395 | 84 | 0.698182 |
3e2f7a4c5b10d1814e363a5fb2b3567f5140f246 | 7,938 | c | C | examples/c/module/example_module.c | CESNET/Nemea-Framework | 49877c3306aa570609b00b990b74633b29e5f331 | [
"BSD-3-Clause"
] | 12 | 2015-10-16T09:22:50.000Z | 2021-11-14T17:08:38.000Z | examples/c/module/example_module.c | krkos/Nemea-Framework | f9c3265724649968cdc260c3c4c4fbd548b304ff | [
"BSD-3-Clause"
] | 160 | 2015-11-27T10:16:44.000Z | 2021-12-29T16:57:37.000Z | examples/c/module/example_module.c | krkos/Nemea-Framework | f9c3265724649968cdc260c3c4c4fbd548b304ff | [
"BSD-3-Clause"
] | 34 | 2015-11-27T14:46:07.000Z | 2020-11-06T19:17:29.000Z | /**
* \file example_module.c
* \brief Example of NEMEA module.
* \author Vaclav Bartos <ibartosv@fit.vutbr.cz>
* \author Marek Svepes <svepemar@fit.cvut.cz>
* \date 2016
*/
/*
* Copyright (C) 2013,2014,2015,2016 CESNET
*
* LICENSE TERMS
*
* Redistribution and use in source and binary forms, with or without
... | 34.815789 | 119 | 0.696397 |
d01095098075ed279316da31159cde51dbc4986e | 8,161 | swift | Swift | Pod/Classes/RecastAI.swift | abossi/SDK-iOS | fbf45b11d82bdc249201aa1f720b63b53d1e2204 | [
"MIT"
] | null | null | null | Pod/Classes/RecastAI.swift | abossi/SDK-iOS | fbf45b11d82bdc249201aa1f720b63b53d1e2204 | [
"MIT"
] | null | null | null | Pod/Classes/RecastAI.swift | abossi/SDK-iOS | fbf45b11d82bdc249201aa1f720b63b53d1e2204 | [
"MIT"
] | null | null | null | //
// RecastAPI.swift
// Recast.AI Official iOS SDK
//
// Created by Pierre-Edouard LIEB on 24/03/2016.
//
// pierre-edouard.lieb@recast.ai
import Foundation
import Alamofire
import ObjectMapper
/**
RecastAIClient class handling request to the API
*/
public class RecastAIClient
{
static fileprivate let base_u... | 37.26484 | 220 | 0.580934 |