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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
da3e967a3e4b474291234d16ece0eca0eff4459f | 2,404 | php | PHP | elc.php | swarangi203/CGPA-calculator | f26c76bda5540013b2cade83024a9bc8e67dc152 | [
"Apache-2.0"
] | null | null | null | elc.php | swarangi203/CGPA-calculator | f26c76bda5540013b2cade83024a9bc8e67dc152 | [
"Apache-2.0"
] | null | null | null | elc.php | swarangi203/CGPA-calculator | f26c76bda5540013b2cade83024a9bc8e67dc152 | [
"Apache-2.0"
] | null | null | null | <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Swarangi's Website</title>
<link rel="stylesheet" href="css.css">
<script src="https://kit.fontawesome.com/a076d05399.js"></script>
</head>
<body>
<nav>
<ul>
<li><a style="color=white" href="php.php">Home</a></li>
<l... | 40.066667 | 96 | 0.604825 |
570fb43dd86a4bc35a1c6e108be6566ffa85d5e8 | 87 | js | JavaScript | flutter_demo1/lib/flutter_node_server/router/config.js | Unrealplace/flutterapp | adde64cf3791ba4775ed49dda997ad35ea1ea07c | [
"MIT"
] | null | null | null | flutter_demo1/lib/flutter_node_server/router/config.js | Unrealplace/flutterapp | adde64cf3791ba4775ed49dda997ad35ea1ea07c | [
"MIT"
] | null | null | null | flutter_demo1/lib/flutter_node_server/router/config.js | Unrealplace/flutterapp | adde64cf3791ba4775ed49dda997ad35ea1ea07c | [
"MIT"
] | null | null | null | const config = {
IP: '192.168.1.103',
PORT:'3000',
};
module.exports = config; | 14.5 | 24 | 0.574713 |
661dae858c1cb2660f91e159e8c4de39caebf99f | 370 | py | Python | app/models.py | seethadixit/InsightProject | 662b74ebef13aac8292080081a78f963ba61e884 | [
"Apache-2.0"
] | 1 | 2018-11-13T03:10:56.000Z | 2018-11-13T03:10:56.000Z | app/models.py | seethavenkatadri/InsightProject | 662b74ebef13aac8292080081a78f963ba61e884 | [
"Apache-2.0"
] | null | null | null | app/models.py | seethavenkatadri/InsightProject | 662b74ebef13aac8292080081a78f963ba61e884 | [
"Apache-2.0"
] | null | null | null | import db
from sqlalchemy import Column,Integer,String
class BaseModel(db.Model):
__abstract__ = True
# define here __repr__ and json methods or any common method
# that you need for all your models
class TestModel(BaseModel):
__tablename__ = 'test_table'
# define your model
id = Column(Integer... | 30.833333 | 64 | 0.72973 |
43e8b42114bb1b06041199bf9601c81c1929dd86 | 1,071 | ts | TypeScript | src/lib/content/model/ContentLifecycle.ts | LukeT-Amplience/dc-delivery-sdk-js | 37012f3d01b9d4b5345cc7eb7643a1ca0e788104 | [
"Apache-2.0"
] | 57 | 2019-03-13T17:41:33.000Z | 2021-06-15T16:46:27.000Z | src/lib/content/model/ContentLifecycle.ts | LukeT-Amplience/dc-delivery-sdk-js | 37012f3d01b9d4b5345cc7eb7643a1ca0e788104 | [
"Apache-2.0"
] | 45 | 2020-02-10T14:19:51.000Z | 2022-03-02T07:37:27.000Z | src/lib/content/model/ContentLifecycle.ts | LukeT-Amplience/dc-delivery-sdk-js | 37012f3d01b9d4b5345cc7eb7643a1ca0e788104 | [
"Apache-2.0"
] | 10 | 2019-06-26T13:34:04.000Z | 2022-01-05T14:08:10.000Z | /**
* Class representing the lifecycle status of a Content Item with helper functions.
*/
export class ContentLifecycle {
/**
* Date the content should expire in ISO 8601 format.
* The content will not become unpublished at this time but this value may be used
* by applications to choose not to show this c... | 24.906977 | 100 | 0.654528 |
a319d80bb8479730fa6aa4bd3d2790eee3039bd7 | 220 | ts | TypeScript | src/server/src/ts/api/v1.0/task/index.ts | strisys/web-application-quickstart-node | 2b028368df8dd61e645ad4234e8f76fa8e1a77db | [
"MIT"
] | null | null | null | src/server/src/ts/api/v1.0/task/index.ts | strisys/web-application-quickstart-node | 2b028368df8dd61e645ad4234e8f76fa8e1a77db | [
"MIT"
] | null | null | null | src/server/src/ts/api/v1.0/task/index.ts | strisys/web-application-quickstart-node | 2b028368df8dd61e645ad4234e8f76fa8e1a77db | [
"MIT"
] | null | null | null | import { Router } from 'express';
import { Controller } from './controller';
export const router = Router();
const controller = new Controller();
router.get(`/`, controller.get);
router.get(`/:id`, controller.getOne);
| 24.444444 | 42 | 0.695455 |
f8d9f80aed99ed433a7070608458b1fb23c19518 | 2,814 | dart | Dart | lib/main.dart | ankit2001/MyExpenses | 2ffc1b95795111a016f5b086835ebc193a3f4627 | [
"MIT"
] | null | null | null | lib/main.dart | ankit2001/MyExpenses | 2ffc1b95795111a016f5b086835ebc193a3f4627 | [
"MIT"
] | null | null | null | lib/main.dart | ankit2001/MyExpenses | 2ffc1b95795111a016f5b086835ebc193a3f4627 | [
"MIT"
] | null | null | null | import 'package:flutter/cupertino.dart';
import './widgets/addTransactions.dart';
import './widgets/transactionList.dart';
import 'package:flutter/material.dart';
import './models/transaction.dart';
import './widgets/chart.dart';
class MyExpenses extends StatelessWidget {
@override
Widget build(BuildContext conte... | 25.351351 | 78 | 0.574271 |
45d5eb13d0c3e2309ab95b5f04fccd479efaa70b | 97 | lua | Lua | bundle-example-areas/areas/limbo/manifest.lua | Gowa2017/skynetmudbundles | ca6e2221b5167b59442cdd09851ddda37567325b | [
"MIT"
] | null | null | null | bundle-example-areas/areas/limbo/manifest.lua | Gowa2017/skynetmudbundles | ca6e2221b5167b59442cdd09851ddda37567325b | [
"MIT"
] | null | null | null | bundle-example-areas/areas/limbo/manifest.lua | Gowa2017/skynetmudbundles | ca6e2221b5167b59442cdd09851ddda37567325b | [
"MIT"
] | null | null | null | return {
behaviors = { ["progressive-respawn"] = { interval = 20 } },
title = "Limbo",
}
| 19.4 | 62 | 0.546392 |
05c210ae6e34e957b1e8991733d00bcb9b33baf2 | 1,359 | kt | Kotlin | fints4k/src/commonMain/kotlin/net/dankito/banking/fints/messages/HbciCharset.kt | codinux-gmbh/fints4k.BAK | b4232dffd35346883ad02b220d420c46af83e815 | [
"RSA-MD"
] | null | null | null | fints4k/src/commonMain/kotlin/net/dankito/banking/fints/messages/HbciCharset.kt | codinux-gmbh/fints4k.BAK | b4232dffd35346883ad02b220d420c46af83e815 | [
"RSA-MD"
] | null | null | null | fints4k/src/commonMain/kotlin/net/dankito/banking/fints/messages/HbciCharset.kt | codinux-gmbh/fints4k.BAK | b4232dffd35346883ad02b220d420c46af83e815 | [
"RSA-MD"
] | null | null | null | package net.dankito.banking.fints.messages
import io.ktor.utils.io.charsets.Charsets
/**
* Der HBCI-Basiszeichensatz baut auf dem international normierten Zeichensatz ISO 8859 auf.
* Im DE „Unterstützte Sprachen“ in die Bankparameterdaten (s. Kap. D.2) stellt das Kreditinstitut
* das jeweiligen Codeset des ISO 88... | 46.862069 | 100 | 0.796909 |
f451c8553b799954eb79c266d753224fad61bb46 | 677 | ts | TypeScript | src/utils/connect-database.ts | PiotrBlachnio/MoviesAPI | c33a260e81acf0f5f609ef19b741ec71480c7901 | [
"MIT"
] | null | null | null | src/utils/connect-database.ts | PiotrBlachnio/MoviesAPI | c33a260e81acf0f5f609ef19b741ec71480c7901 | [
"MIT"
] | null | null | null | src/utils/connect-database.ts | PiotrBlachnio/MoviesAPI | c33a260e81acf0f5f609ef19b741ec71480c7901 | [
"MIT"
] | null | null | null | import { createConnection, Connection } from 'typeorm';
import logger from './logger';
export let connection: Connection;
export default async (retries = 5) => {
while(retries) {
try {
connection = await createConnection();
await logger.log({ type: 'info', message: 'Connected to th... | 32.238095 | 134 | 0.590842 |
0d2eb0bfc8cd7aac4eb3ec0fe39dab85767f5891 | 124 | rb | Ruby | app/exceptions/transaction_error.rb | katakeynii/meppay | 7ea69af76f6a46c939803fde403035402fb55b01 | [
"MIT"
] | null | null | null | app/exceptions/transaction_error.rb | katakeynii/meppay | 7ea69af76f6a46c939803fde403035402fb55b01 | [
"MIT"
] | null | null | null | app/exceptions/transaction_error.rb | katakeynii/meppay | 7ea69af76f6a46c939803fde403035402fb55b01 | [
"MIT"
] | null | null | null | class TransactionError < StandardError
def message
"Le montant doit etre egal au total des recettes"
end
end | 24.8 | 57 | 0.717742 |
389102f652752fa0be34fe66fe36c1666ff799f7 | 5,946 | php | PHP | application/views/rmekanik/downtime_breakdown.php | diananggit/gi-production | dc70788134175569ac8779676716a2b0c5a989e2 | [
"MIT"
] | null | null | null | application/views/rmekanik/downtime_breakdown.php | diananggit/gi-production | dc70788134175569ac8779676716a2b0c5a989e2 | [
"MIT"
] | null | null | null | application/views/rmekanik/downtime_breakdown.php | diananggit/gi-production | dc70788134175569ac8779676716a2b0c5a989e2 | [
"MIT"
] | null | null | null | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Production Report | Dashboard</title>
<!-- Tell the browser to be responsive to screen width -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Font Awesome ... | 30.030303 | 133 | 0.434746 |
af9ee821eb1ae294fbb00483c520610bd079e51b | 809 | py | Python | api/utils.py | RonakRoy/spotidata | 632163d937c5640e465431ecab8d5fd904054fcb | [
"MIT"
] | null | null | null | api/utils.py | RonakRoy/spotidata | 632163d937c5640e465431ecab8d5fd904054fcb | [
"MIT"
] | 5 | 2021-03-19T00:44:59.000Z | 2021-06-10T18:38:09.000Z | api/utils.py | RonakRoy/tunelyze | 632163d937c5640e465431ecab8d5fd904054fcb | [
"MIT"
] | null | null | null | key_mapping = ['C', 'C#/D♭', 'D', 'D#/E♭', 'E', 'F', 'F#/G♭', 'G', 'G#/A♭', 'A', 'A#/B♭', 'B']
def get_dict_list(l):
return [e.to_dict() for e in l]
def get_english_list(l):
length = len(l)
if length == 0:
return "none"
elif length == 1:
return l[0]
elif length == 2:
ret... | 21.864865 | 94 | 0.504326 |
f4e97880eca5a4e9416273945c832ef39b400ba3 | 921 | tsx | TypeScript | packages/popover/src/styles.tsx | wygkzqa/reactour | af9de30a59f1aed7cfaf3b0f1546fae88a0fe096 | [
"MIT"
] | 2,936 | 2017-03-31T10:55:35.000Z | 2022-03-31T09:33:09.000Z | packages/popover/src/styles.tsx | wygkzqa/reactour | af9de30a59f1aed7cfaf3b0f1546fae88a0fe096 | [
"MIT"
] | 413 | 2017-03-31T16:14:42.000Z | 2022-03-30T07:58:39.000Z | packages/popover/src/styles.tsx | wygkzqa/reactour | af9de30a59f1aed7cfaf3b0f1546fae88a0fe096 | [
"MIT"
] | 334 | 2017-03-31T16:02:15.000Z | 2022-03-31T15:40:34.000Z | export type StylesKeys = 'popover'
export type StylesObj = {
[key in StylesKeys]?: StyleFn
}
export type StyleFn = (
props: { [key: string]: any },
state?: { [key: string]: any }
) => React.CSSProperties
export type Styles = {
popover: StyleFn
}
export type StyleKey = keyof Styles
export const defaultStyle... | 21.418605 | 64 | 0.619978 |
d1aeb20a5297a274be72233ce1c4b857d55db573 | 1,133 | rs | Rust | frontend/src/pages/mod.rs | r0m4n27/help_me | 66c3cdfef6dcfc9f88ff66649805e92e7d64abf5 | [
"MIT"
] | null | null | null | frontend/src/pages/mod.rs | r0m4n27/help_me | 66c3cdfef6dcfc9f88ff66649805e92e7d64abf5 | [
"MIT"
] | null | null | null | frontend/src/pages/mod.rs | r0m4n27/help_me | 66c3cdfef6dcfc9f88ff66649805e92e7d64abf5 | [
"MIT"
] | null | null | null | use seed::prelude::*;
use crate::{
model::{user::User, Model},
msg::Msg,
views::nav_bar_view,
};
use self::{
admin::admin_view, guest::guest_view, requested_guest::requested_guest_view, tutor::tutor_view,
};
mod admin;
mod guest;
mod requested_guest;
mod tutor;
pub fn page_view(model: &Model) -> Nod... | 25.75 | 99 | 0.590468 |
da1097414e1400ea8205f984f9586741dbf59675 | 11,353 | php | PHP | pm.php | gaomy007/matchmaker | db60ad21a5abc84ebd8b26c70ef41f57f5c68f5d | [
"Unlicense"
] | 1 | 2016-03-05T11:30:55.000Z | 2016-03-05T11:30:55.000Z | pm.php | gaomy007/matchmaker | db60ad21a5abc84ebd8b26c70ef41f57f5c68f5d | [
"Unlicense"
] | null | null | null | pm.php | gaomy007/matchmaker | db60ad21a5abc84ebd8b26c70ef41f57f5c68f5d | [
"Unlicense"
] | null | null | null | <?php
require_once("models/config.php");
if (!securePage($_SERVER['PHP_SELF'])) {
die();
}
if (!isUserLoggedIn()) {
header("Location: index.php");
die();
}
// Set the userid to 2 for testing purposes... you should have your own usersystem, so this should contain the userid
$loggedInU... | 35.589342 | 171 | 0.476614 |
23e2c290e14f7ed2dda7dc7ee19e93bfe32d96c7 | 3,150 | js | JavaScript | index.js | shinespark/sbi-message2mail | 38f1c5c77f700d49760faf299821043f5a53e36d | [
"MIT"
] | null | null | null | index.js | shinespark/sbi-message2mail | 38f1c5c77f700d49760faf299821043f5a53e36d | [
"MIT"
] | null | null | null | index.js | shinespark/sbi-message2mail | 38f1c5c77f700d49760faf299821043f5a53e36d | [
"MIT"
] | null | null | null | const fs = require('fs');
const path = require('path');
const puppeteer = require('puppeteer');
const {google} = require('googleapis');
require('dotenv').config();
const SBI = {
"loginUrl": "https://www.netbk.co.jp/contents/pages/wpl010101/i010101CT/DI01010210",
"messageBoxUrl": "https://www.netbk.co.jp/contents/p... | 31.5 | 95 | 0.673016 |
d2acd8a59e2015841354e49474513b1affb1f4ed | 1,554 | dart | Dart | lib/utils/app_color.dart | luuthanhminh/flutter_twivideo | 22b9d6dd5d7afc4fb46e776e635c85dc2d9c5dd7 | [
"MIT"
] | null | null | null | lib/utils/app_color.dart | luuthanhminh/flutter_twivideo | 22b9d6dd5d7afc4fb46e776e635c85dc2d9c5dd7 | [
"MIT"
] | null | null | null | lib/utils/app_color.dart | luuthanhminh/flutter_twivideo | 22b9d6dd5d7afc4fb46e776e635c85dc2d9c5dd7 | [
"MIT"
] | null | null | null | import 'package:flutter/material.dart';
class AppColors {
static const Color jadeGreen = Color(0xFF26a93c);
static const Color lipstick = Color(0xFFe91e55);
static const Color warmGrey = Color(0xFF808080);
static const Color warmGrey2 = Color(0x50979797);
static const Color white82 = Color(0x82f8f8f8);
sta... | 44.4 | 57 | 0.76834 |
583c10a1812d8730f08aaf85211b6a72c5fcc93b | 3,065 | ps1 | PowerShell | scripts/deploy.ps1 | totollygeek/serverless-with-fn | 161e4d513112e0e263f263cbdfdf78bb4422a344 | [
"Apache-2.0"
] | null | null | null | scripts/deploy.ps1 | totollygeek/serverless-with-fn | 161e4d513112e0e263f263cbdfdf78bb4422a344 | [
"Apache-2.0"
] | null | null | null | scripts/deploy.ps1 | totollygeek/serverless-with-fn | 161e4d513112e0e263f263cbdfdf78bb4422a344 | [
"Apache-2.0"
] | null | null | null | # This will do a clean deploy of an application in Fn and two functions,
# along with the stats ASP.NET Core application
# This script should be run from the .\scripts folder
# We initialize some variables used below
$appName = 'fndotnet'
$mySqlContainerName = 'mysql0'
$volumeMap = "$($PSScriptRoot):/scripts"
$prometh... | 25.541667 | 117 | 0.688091 |
c9985be410a55fb54aa57f5757129503ef89bced | 567 | ts | TypeScript | src/index.ts | extend-chrome/storage | 66b6189274496506eb951fa60c774230ed2c0280 | [
"MIT"
] | 26 | 2020-06-13T07:21:59.000Z | 2022-03-24T08:39:30.000Z | src/index.ts | extend-chrome/storage | 66b6189274496506eb951fa60c774230ed2c0280 | [
"MIT"
] | 11 | 2020-06-08T22:31:02.000Z | 2022-02-07T02:19:12.000Z | src/index.ts | extend-chrome/storage | 66b6189274496506eb951fa60c774230ed2c0280 | [
"MIT"
] | 1 | 2019-08-21T12:01:05.000Z | 2019-08-21T12:01:05.000Z | import { getBucket } from './bucket'
/**
* Buckets for each storage area.
*/
export const storage = {
local: getBucket<Record<string, any>>('local', 'local'),
sync: getBucket<Record<string, any>>('sync', 'sync'),
managed: getBucket<Record<string, any>>('managed', 'managed'),
}
// Workaround for @rollup/plugin... | 24.652174 | 64 | 0.664903 |
f1ef31cad542618e02eacec944028bc4f5d742c0 | 454 | rb | Ruby | metadata.rb | OpSitters/opsit_role | 5df1b58d6e95f1433ce9a8c2145b6f4b1ab78a70 | [
"Apache-2.0"
] | null | null | null | metadata.rb | OpSitters/opsit_role | 5df1b58d6e95f1433ce9a8c2145b6f4b1ab78a70 | [
"Apache-2.0"
] | null | null | null | metadata.rb | OpSitters/opsit_role | 5df1b58d6e95f1433ce9a8c2145b6f4b1ab78a70 | [
"Apache-2.0"
] | null | null | null | name 'opsit_role'
maintainer 'OpSitters'
maintainer_email 'oss@opsitters.com'
version '1.0.1'
license 'Apache 2.0'
description 'OpSitters base role'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
depends "opsit_libs"
depends "opsit_ops"
%w{
chef-sol... | 18.916667 | 72 | 0.669604 |
2a805faf3230fd4b9c6ef2818ca9d2ccce17d395 | 71 | css | CSS | css/styles.css | Makiz7791/vid.customer-reviews | 7644c82fd61539cdf9950334189414d80db5f5c6 | [
"MIT"
] | null | null | null | css/styles.css | Makiz7791/vid.customer-reviews | 7644c82fd61539cdf9950334189414d80db5f5c6 | [
"MIT"
] | null | null | null | css/styles.css | Makiz7791/vid.customer-reviews | 7644c82fd61539cdf9950334189414d80db5f5c6 | [
"MIT"
] | null | null | null | body {
font-family: DM Sans, arial, sans-serif;
color: #000;;
} | 17.75 | 44 | 0.591549 |
a11b27794b6d816e5168b260065b46eee94475c6 | 862 | ts | TypeScript | src/services/user/__tests__/user.controller.spec.ts | ynwd/fastify-di | 9048a907cab6909296683d31144da1a03dea6bb1 | [
"MIT"
] | 1 | 2021-05-16T04:04:40.000Z | 2021-05-16T04:04:40.000Z | src/services/user/__tests__/user.controller.spec.ts | ynwd/fastify-di | 9048a907cab6909296683d31144da1a03dea6bb1 | [
"MIT"
] | null | null | null | src/services/user/__tests__/user.controller.spec.ts | ynwd/fastify-di | 9048a907cab6909296683d31144da1a03dea6bb1 | [
"MIT"
] | null | null | null | import { FastifyInstance } from 'fastify'
import { createServer, serviceContainer } from '../../../core'
import { UserService } from '../user.service'
let server: FastifyInstance
let service: UserService
beforeAll(async () => {
server = await createServer({ logger: false })
service = serviceContainer.get('UserSer... | 21.55 | 74 | 0.62645 |
0ad897a47198d48f39f5af0d0dc3a902c65e47da | 335 | cs | C# | DriftySquirrel/Assets/Plugins/StansAssets/Foundation/APIModules/Public/Tests/Models/SA_TestConfig.cs | ElectriVellum/DriftySquirrel | 6b4a576029c8b3d1293518188ec9f38f0767508f | [
"MIT"
] | null | null | null | DriftySquirrel/Assets/Plugins/StansAssets/Foundation/APIModules/Public/Tests/Models/SA_TestConfig.cs | ElectriVellum/DriftySquirrel | 6b4a576029c8b3d1293518188ec9f38f0767508f | [
"MIT"
] | null | null | null | DriftySquirrel/Assets/Plugins/StansAssets/Foundation/APIModules/Public/Tests/Models/SA_TestConfig.cs | ElectriVellum/DriftySquirrel | 6b4a576029c8b3d1293518188ec9f38f0767508f | [
"MIT"
] | null | null | null | using UnityEngine;
using System.Collections;
using System;
using TypeReferences;
using SA.Foundation.Tests;
namespace SA.Foundation.Tests {
[Serializable]
public class SA_TestConfig {
[ClassExtends(typeof(SA_BaseTest))]
public ClassTypeReference TestReference;
public bool StopsNextTests... | 25.769231 | 48 | 0.740299 |
cdf97f8a96a457ded9e14df226162918dad7aaed | 207 | cs | C# | BloomFilter/BloomFilter/Utilities/HashFunctionDotNet.cs | cagaray/bloom-filter | 385a1200e828e5ab728965ab10f30d1db0ebded0 | [
"MIT"
] | null | null | null | BloomFilter/BloomFilter/Utilities/HashFunctionDotNet.cs | cagaray/bloom-filter | 385a1200e828e5ab728965ab10f30d1db0ebded0 | [
"MIT"
] | null | null | null | BloomFilter/BloomFilter/Utilities/HashFunctionDotNet.cs | cagaray/bloom-filter | 385a1200e828e5ab728965ab10f30d1db0ebded0 | [
"MIT"
] | null | null | null | namespace BloomFilter.Utilities
{
public class HashFunctionDotNet<T> : IHashFunction<T>
{
public int ComputeHash(T value)
{
return value.GetHashCode();
}
}
}
| 18.818182 | 57 | 0.584541 |
b0bd79a348ed8b5dfc8c43840a20e6830ef6b75f | 304 | py | Python | remove_file.py | Kondziowy/PythonBasicTraining | b7f98a4263faee6f94179a0786ba7eb2dd1e2191 | [
"BSD-3-Clause"
] | 1 | 2018-07-31T10:19:26.000Z | 2018-07-31T10:19:26.000Z | remove_file.py | Kondziowy/PythonBasicTraining | b7f98a4263faee6f94179a0786ba7eb2dd1e2191 | [
"BSD-3-Clause"
] | null | null | null | remove_file.py | Kondziowy/PythonBasicTraining | b7f98a4263faee6f94179a0786ba7eb2dd1e2191 | [
"BSD-3-Clause"
] | 2 | 2018-10-16T14:03:26.000Z | 2021-11-03T11:03:20.000Z | import os
file_to_remove = os.path.join(os.getcwd(), "non_existent_file")
print("Do you want to remove %s? Please answer yes or no" % file_to_remove)
answer = input()
answer_is_true = bool(answer)
if answer_is_true:
print("Removing file %s" % file_to_remove)
os.unlink(file_to_remove) | 25.333333 | 76 | 0.717105 |
db954c6324bf8588f5269450fec0ecd79ddf610d | 13,523 | php | PHP | frontend/views/tbl-permohonan/view.php | sgntkeroro/e-Perolehan | fc6961d0686c5ccf53ed2c8bf1b6ffbba27d4496 | [
"BSD-3-Clause"
] | null | null | null | frontend/views/tbl-permohonan/view.php | sgntkeroro/e-Perolehan | fc6961d0686c5ccf53ed2c8bf1b6ffbba27d4496 | [
"BSD-3-Clause"
] | null | null | null | frontend/views/tbl-permohonan/view.php | sgntkeroro/e-Perolehan | fc6961d0686c5ccf53ed2c8bf1b6ffbba27d4496 | [
"BSD-3-Clause"
] | null | null | null | <?php
use yii\helpers\Html;
use yii\widgets\DetailView;
use yii\helpers\Url;
/* @var $this yii\web\View */
/* @var $model frontend\models\TblPermohonan */
$this->title = 'ID : '.$model->permohonan_id;
$sokong = $model->sokongan;
$nombor = 1;
?>
<style type="text/css">
.table
{
/*border-left: 2... | 43.066879 | 188 | 0.398063 |
42129b3dca0f9355a276da4b7891d509df896cbf | 1,432 | cs | C# | NeuralNetLearning/Maths/Activations/ReluActivation.cs | nikolaimerritt/NeuralNet | e145f0cfb7e4a88408afc2a4f463f10225986859 | [
"MIT"
] | null | null | null | NeuralNetLearning/Maths/Activations/ReluActivation.cs | nikolaimerritt/NeuralNet | e145f0cfb7e4a88408afc2a4f463f10225986859 | [
"MIT"
] | null | null | null | NeuralNetLearning/Maths/Activations/ReluActivation.cs | nikolaimerritt/NeuralNet | e145f0cfb7e4a88408afc2a4f463f10225986859 | [
"MIT"
] | null | null | null | using MathNet.Numerics.LinearAlgebra;
using MathNet.Numerics.LinearAlgebra.Double;
using NeuralNetLearning.Serialization;
namespace NeuralNetLearning.Maths.Activations
{
public class ReluActivation : Activation
{
[SerializableHyperParameter("leak")]
private readonly double _leak = 0;
p... | 31.130435 | 96 | 0.554469 |
66fda841f74b9b15869bb95915fd7a614c3c67e7 | 1,254 | swift | Swift | Buok/CommonViews/BuokmarkFlagView.swift | kimhyebeen/Buok-iOS | 4a1c2cd70a544865463b6b1ad5fd468998d895cb | [
"Apache-2.0"
] | 6 | 2021-03-08T09:07:30.000Z | 2021-06-19T10:23:02.000Z | Buok/CommonViews/BuokmarkFlagView.swift | kimhyebeen/Buok-iOS | 4a1c2cd70a544865463b6b1ad5fd468998d895cb | [
"Apache-2.0"
] | 5 | 2021-04-14T03:06:01.000Z | 2021-05-22T23:39:02.000Z | Buok/CommonViews/BuokmarkFlagView.swift | kimhyebeen/Buok-iOS | 4a1c2cd70a544865463b6b1ad5fd468998d895cb | [
"Apache-2.0"
] | 1 | 2021-04-03T14:48:19.000Z | 2021-04-03T14:48:19.000Z | //
// BuokmarkFlagView.swift
// Buok
//
// Copyright © 2021 Buok. All rights reserved.
//
import UIKit
class BuokmarkFlagView: UIView {
let flagLine = UIView()
let flagView = UIView()
override init(frame: CGRect) {
super.init(frame: frame)
setupView()
}
required i... | 24.115385 | 83 | 0.603668 |
bedea7e139a7104f17752631350407306546cb77 | 1,462 | ts | TypeScript | src/pure-function-helpers/message-file-name.ts | zixia/wechaty-puppet-wechat4u | bcda65dab56d9b9c0e01303cd055b242dbe34610 | [
"Apache-2.0"
] | 16 | 2018-07-26T09:11:17.000Z | 2019-11-06T10:00:39.000Z | src/pure-function-helpers/message-file-name.ts | zixia/wechaty-puppet-wechat4u | bcda65dab56d9b9c0e01303cd055b242dbe34610 | [
"Apache-2.0"
] | 21 | 2018-06-29T18:18:16.000Z | 2019-08-15T04:28:30.000Z | src/pure-function-helpers/message-file-name.ts | zixia/wechaty-puppet-wechat4u | bcda65dab56d9b9c0e01303cd055b242dbe34610 | [
"Apache-2.0"
] | 10 | 2018-07-26T09:11:36.000Z | 2019-10-15T15:51:54.000Z | import {
WebAppMsgType,
WebMessageRawPayload,
WebMessageType,
} from '../web-schemas.js'
export function messageFileName (
rawPayload: WebMessageRawPayload,
): string {
let filename = rawPayload.FileName || rawPayload.MediaId || rawPayload.MsgId
const re = /\.[a-z0-9]{1,7}$/i
i... | 19.756757 | 78 | 0.594391 |
1cd428144c914840ec00de4247028dcb08f548ea | 700 | lua | Lua | HIVE/SceneNodeEditor/nodes/CreateJetTransferTexture/jettrans.lua | digirea/HIVE | 8896b0cc858c1ad0683888b925f71c0f0d71bf9d | [
"MIT"
] | null | null | null | HIVE/SceneNodeEditor/nodes/CreateJetTransferTexture/jettrans.lua | digirea/HIVE | 8896b0cc858c1ad0683888b925f71c0f0d71bf9d | [
"MIT"
] | null | null | null | HIVE/SceneNodeEditor/nodes/CreateJetTransferTexture/jettrans.lua | digirea/HIVE | 8896b0cc858c1ad0683888b925f71c0f0d71bf9d | [
"MIT"
] | null | null | null | function CreateJetTransferTexture(property)
-- Create 1D transfer function texture
-- Jet color table from OSPray example
-- r, g, b, alpha
local tf =
{ 0 , 0 , 0.562493 , 1.0
, 0 , 0 , 1 , 1.0
, 0 , 1 , 1 , 1.0
... | 28 | 52 | 0.404286 |
3d599741602a0c5bd40dd5c275c046a3a77695ae | 779 | dart | Dart | LibTest/io/InternetAddress/type_A01_t02.dart | tvolkert/co19 | 435727789062a45da3d20da09024651fdeb8cafe | [
"BSD-3-Clause"
] | null | null | null | LibTest/io/InternetAddress/type_A01_t02.dart | tvolkert/co19 | 435727789062a45da3d20da09024651fdeb8cafe | [
"BSD-3-Clause"
] | null | null | null | LibTest/io/InternetAddress/type_A01_t02.dart | tvolkert/co19 | 435727789062a45da3d20da09024651fdeb8cafe | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
* for details. All rights reserved. Use of this source code is governed by a
* BSD-style license that can be found in the LICENSE file.
*/
/**
* @assertion InternetAddressType type
* The type of the [InternetAddress] specified what IP... | 26.862069 | 77 | 0.679076 |
6d59a37ad8891f769bfd1acff9b5878f64445774 | 753 | ts | TypeScript | src/app.module.ts | 2021-summer-hackerthon/server | 5e3cf6ad866497c323fb85a175d29aebc96f9e42 | [
"MIT"
] | null | null | null | src/app.module.ts | 2021-summer-hackerthon/server | 5e3cf6ad866497c323fb85a175d29aebc96f9e42 | [
"MIT"
] | null | null | null | src/app.module.ts | 2021-summer-hackerthon/server | 5e3cf6ad866497c323fb85a175d29aebc96f9e42 | [
"MIT"
] | null | null | null | import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { ormConfig } from './config/ormConfig';
import { UserModule } from './user/user.module';
import { TokenModule } from './token/to... | 30.12 | 60 | 0.702523 |
5e207d035d55da4d91f878f902dd1d11fe2d6430 | 1,212 | dart | Dart | public/day_03/solution.dart | dumazy/aoc21 | a0240a381e9b047dfb82dd91a3427a84f1cb1f30 | [
"MIT"
] | null | null | null | public/day_03/solution.dart | dumazy/aoc21 | a0240a381e9b047dfb82dd91a3427a84f1cb1f30 | [
"MIT"
] | null | null | null | public/day_03/solution.dart | dumazy/aoc21 | a0240a381e9b047dfb82dd91a3427a84f1cb1f30 | [
"MIT"
] | null | null | null | // find the input at adventofcode.com
import 'dart:math';
import 'values.dart';
void main() {
_calculate(values);
}
void _calculate(List<String> values) {
final matrix = values.map(asDigits).toList();
final gammaArray = List.generate(matrix.width, (index) {
final column = matrix.getColumn(index);
retu... | 21.642857 | 77 | 0.628713 |
5331c638c4d6b4f6af5a8c6a2d2e119b720a851b | 6,534 | ps1 | PowerShell | functions/New-PSPropertySet.ps1 | jdhitsolutions/PSTypeExtensionTools | a558a2363dc4ac5179d86502c24f2ac6b0cd31fa | [
"MIT"
] | 35 | 2017-11-12T15:14:45.000Z | 2022-02-05T02:05:46.000Z | functions/New-PSPropertySet.ps1 | jdhitsolutions/PSTypeExtensionTools | a558a2363dc4ac5179d86502c24f2ac6b0cd31fa | [
"MIT"
] | 21 | 2017-10-31T18:53:30.000Z | 2021-08-10T22:50:57.000Z | functions/New-PSPropertySet.ps1 | jdhitsolutions/PSTypeExtensionTools | a558a2363dc4ac5179d86502c24f2ac6b0cd31fa | [
"MIT"
] | 11 | 2017-11-11T16:10:12.000Z | 2021-08-12T07:21:40.000Z | Function New-PSPropertySet {
[cmdletbinding(SupportsShouldProcess, DefaultParameterSetName = "new")]
Param(
[Parameter(Position = 0, Mandatory, HelpMessage = "Enter the object typename.")]
[ValidateNotNullOrEmpty()]
[string]$Typename,
[Parameter(Mandatory, HelpMessage = "Enter th... | 42.154839 | 124 | 0.572084 |
76ba63bc9bc0594aea859aaea1f0ad6c324435c8 | 470 | h | C | src/num/md_wrapper.h | Zhitao-Li/bart | e2e3cc68cbe6e4d1ce8f0be455b599ec48c0a03a | [
"BSD-3-Clause"
] | 189 | 2015-10-28T15:36:23.000Z | 2022-03-27T10:30:17.000Z | src/num/md_wrapper.h | Zhitao-Li/bart | e2e3cc68cbe6e4d1ce8f0be455b599ec48c0a03a | [
"BSD-3-Clause"
] | 158 | 2015-11-17T18:55:08.000Z | 2022-02-15T15:36:44.000Z | src/num/md_wrapper.h | Zhitao-Li/bart | e2e3cc68cbe6e4d1ce8f0be455b599ec48c0a03a | [
"BSD-3-Clause"
] | 153 | 2015-10-25T02:30:45.000Z | 2022-03-28T07:03:34.000Z | void zfmac_gpu_batched_loop(unsigned int N, const long dims[__VLA(N)], const long ostr[__VLA(N)], _Complex float* optr, const long istr1[__VLA(N)], const _Complex float* iptr1, const long istr2[__VLA(N)], const _Complex float* iptr2);
void zfmacc_gpu_batched_loop(unsigned int N, const long dims[__VLA(N)], const long os... | 235 | 235 | 0.76383 |
b886a1d13423a66b65792f9873f4aad3fb9092fa | 8,837 | h | C | tf2_src/utils/tfstats/regexp/include/jm/fileiter.h | d3fc0n6/TeamFortress2 | 1b81dded673d49adebf4d0958e52236ecc28a956 | [
"MIT"
] | 4 | 2021-10-03T05:16:55.000Z | 2021-12-28T16:49:27.000Z | tf2_src/utils/tfstats/regexp/include/jm/fileiter.h | Counter2828/TeamFortress2 | 1b81dded673d49adebf4d0958e52236ecc28a956 | [
"MIT"
] | null | null | null | tf2_src/utils/tfstats/regexp/include/jm/fileiter.h | Counter2828/TeamFortress2 | 1b81dded673d49adebf4d0958e52236ecc28a956 | [
"MIT"
] | 3 | 2022-02-02T18:09:58.000Z | 2022-03-06T18:54:39.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//
//=============================================================================//
/*
*
* Copyright (c) 1998-9
* Dr John Maddock
*
* Permission to use, copy, modify, distribute and sell this software... | 23.948509 | 97 | 0.672174 |
0349ee081974f0aa75e958748a6b7d13c9286364 | 5,978 | ps1 | PowerShell | deprecated/Disable-InactiveUserProfile.ps1 | johnsarie27/AWSReporting | 9d102b4c2453d4d68066575521c2a149bbf50cb4 | [
"Apache-2.0"
] | 5 | 2019-10-31T06:25:45.000Z | 2022-01-21T20:09:44.000Z | deprecated/Disable-InactiveUserProfile.ps1 | johnsarie27/AWSReporting | 9d102b4c2453d4d68066575521c2a149bbf50cb4 | [
"Apache-2.0"
] | 5 | 2019-02-15T22:54:39.000Z | 2019-03-21T22:21:39.000Z | deprecated/Disable-InactiveUserProfile.ps1 | johnsarie27/AWSReporting | 9d102b4c2453d4d68066575521c2a149bbf50cb4 | [
"Apache-2.0"
] | 1 | 2021-07-02T23:27:57.000Z | 2021-07-02T23:27:57.000Z | function Disable-InactiveUserProfile {
<# =========================================================================
.SYNOPSIS
Disable unused IAM User Profile
.DESCRIPTION
Disable any IAM User Profiles that has not been used in 90 or more days
.PARAMETER ProfileName
AWS Credential... | 39.853333 | 141 | 0.521412 |
20043ee28180e90bb1886c98f4db6a56a3e43d01 | 60 | py | Python | mlflow/version.py | jkthompson/mlflow | 7fde53e497c50b4eb4da1e9988710695b8c2e093 | [
"Apache-2.0"
] | null | null | null | mlflow/version.py | jkthompson/mlflow | 7fde53e497c50b4eb4da1e9988710695b8c2e093 | [
"Apache-2.0"
] | null | null | null | mlflow/version.py | jkthompson/mlflow | 7fde53e497c50b4eb4da1e9988710695b8c2e093 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Databricks, Inc.
VERSION = "1.12.1.dev0"
| 12 | 33 | 0.683333 |
753e3db58006945bffa61f7bcc775b5e4ccbbfe7 | 7,093 | ps1 | PowerShell | Tests/pyc/test_pyc.ps1 | btddg28/ironpython | 8006238c19d08db5db9bada39d765143e631059e | [
"Apache-2.0"
] | 1,872 | 2015-01-02T18:56:47.000Z | 2022-03-31T07:34:39.000Z | Tests/pyc/test_pyc.ps1 | btddg28/ironpython | 8006238c19d08db5db9bada39d765143e631059e | [
"Apache-2.0"
] | 675 | 2015-02-27T09:01:01.000Z | 2022-03-31T14:03:25.000Z | Tests/pyc/test_pyc.ps1 | btddg28/ironpython | 8006238c19d08db5db9bada39d765143e631059e | [
"Apache-2.0"
] | 278 | 2015-01-02T03:48:20.000Z | 2022-03-29T20:40:44.000Z | #####################################################################################
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#
# This source code is subject to terms and conditions of the Apache License, Version 2.0. A
# copy of the license can be found in the License.html file at the root of t... | 33.616114 | 201 | 0.61032 |
da4b6000921cf6f104a9e64fa177a5387962ad8a | 6,346 | php | PHP | app/Blueprint/Generators/GraphQLSchemaGenerator.php | ibagayoko/ilara | 9143ad71f8727b820b80af197b902b47a8bb4e1e | [
"MIT"
] | null | null | null | app/Blueprint/Generators/GraphQLSchemaGenerator.php | ibagayoko/ilara | 9143ad71f8727b820b80af197b902b47a8bb4e1e | [
"MIT"
] | 5 | 2021-03-10T03:05:14.000Z | 2022-02-26T21:49:23.000Z | app/Blueprint/Generators/GraphQLSchemaGenerator.php | ibagayoko/ilara | 9143ad71f8727b820b80af197b902b47a8bb4e1e | [
"MIT"
] | null | null | null | <?php
namespace App\Blueprint\Generators;
use Blueprint\Contracts\Generator;
use Blueprint\Models\Column;
use Blueprint\Models\Model;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Support\Str;
class GraphQLSchemaGenerator implements Generator
{
const INDENT = ' ';
protected $stubs_path ;
/** @... | 30.219048 | 96 | 0.489127 |
232d6c056bf2853161d751502f1efe48b9297235 | 5,887 | lua | Lua | client/main.lua | vwxyzzett/td-atmrob | d0259d1c841e5f5d2f577db1de98a6c9425c2880 | [
"Apache-2.0"
] | null | null | null | client/main.lua | vwxyzzett/td-atmrob | d0259d1c841e5f5d2f577db1de98a6c9425c2880 | [
"Apache-2.0"
] | null | null | null | client/main.lua | vwxyzzett/td-atmrob | d0259d1c841e5f5d2f577db1de98a6c9425c2880 | [
"Apache-2.0"
] | 1 | 2022-02-15T12:53:47.000Z | 2022-02-15T12:53:47.000Z | ESX = nil
local startrob = false
local dosyaprop = false
local hsn = 0
Citizen.CreateThread(function ()
while ESX == nil do
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
Citizen.Wait(5)
end
end)
local doktousb = {
{x = -1056.88 , y = -233.17... | 27.381395 | 137 | 0.573807 |
a9692e9c93fa02535b2fbe3ec8293648d273f706 | 1,709 | html | HTML | templates/googlemaps.html | Fuchai/cs330final | a753155cd94ea5192dddcea46dcd45ad5ed2df6d | [
"Apache-2.0"
] | null | null | null | templates/googlemaps.html | Fuchai/cs330final | a753155cd94ea5192dddcea46dcd45ad5ed2df6d | [
"Apache-2.0"
] | null | null | null | templates/googlemaps.html | Fuchai/cs330final | a753155cd94ea5192dddcea46dcd45ad5ed2df6d | [
"Apache-2.0"
] | null | null | null | {% extends "headerbase.html" %}
{% block title %}
Restaurant Locator
{% endblock %}
{% block styles %}
{{ super() }}
<link href="../css/googlemap.css" rel="stylesheet" type="text/css">
<link href="../css/sidebar.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.co... | 34.877551 | 197 | 0.686366 |
8e7e900d37d542a6895a43395cc77137f9e3cf13 | 7,475 | js | JavaScript | frontend/src/components/Filter/CalendarFilter.spec.js | lumawelhot/Luma-varaukset | 09d873d5b4140b0ab51eebd4ef7fdcee0a829e4c | [
"MIT"
] | 1 | 2021-12-30T12:34:19.000Z | 2021-12-30T12:34:19.000Z | frontend/src/components/Filter/CalendarFilter.spec.js | lumawelhot/Luma-varaukset | 09d873d5b4140b0ab51eebd4ef7fdcee0a829e4c | [
"MIT"
] | 119 | 2021-05-25T10:42:53.000Z | 2022-03-11T11:01:04.000Z | frontend/src/components/Filter/CalendarFilter.spec.js | lumawelhot/Luma-varaukset | 09d873d5b4140b0ab51eebd4ef7fdcee0a829e4c | [
"MIT"
] | 3 | 2021-05-18T04:31:26.000Z | 2021-05-25T17:09:05.000Z | import React from 'react'
import '@testing-library/jest-dom/extend-expect'
import { render, fireEvent, waitFor } from '@testing-library/react'
import CalendarFilter from './CalendarFilter'
import '../../i18n'
const events = [
{
'title': 'Maanjäristysten alueellisuus ja niiden vaikutukset',
'start': '2021-07-... | 40.846995 | 94 | 0.676789 |
ff2872b28f8c916dddf8527b91ef237d7511666f | 8,859 | py | Python | lhotse/features/kaldifeat.py | stachu86/lhotse | d5e78154db2d4d52f15aaadc8882f76eb5b77640 | [
"Apache-2.0"
] | null | null | null | lhotse/features/kaldifeat.py | stachu86/lhotse | d5e78154db2d4d52f15aaadc8882f76eb5b77640 | [
"Apache-2.0"
] | null | null | null | lhotse/features/kaldifeat.py | stachu86/lhotse | d5e78154db2d4d52f15aaadc8882f76eb5b77640 | [
"Apache-2.0"
] | null | null | null | from abc import ABC
from dataclasses import asdict, dataclass
from typing import Any, Dict, List, Optional, Sequence, Union
import numpy as np
import torch
from lhotse.features.base import FeatureExtractor, register_extractor
from lhotse.utils import EPSILON, Seconds, is_module_available
@dataclass
class KaldifeatF... | 34.741176 | 112 | 0.6468 |
e2f42806018eea53dd93c2a054516986740fe4cb | 847 | py | Python | MLBook/14 MCMC/lcg.py | AjayKrP/Machine-Learning | d039e99bbe09845174a845786099cfdd9a6913cb | [
"MIT"
] | null | null | null | MLBook/14 MCMC/lcg.py | AjayKrP/Machine-Learning | d039e99bbe09845174a845786099cfdd9a6913cb | [
"MIT"
] | null | null | null | MLBook/14 MCMC/lcg.py | AjayKrP/Machine-Learning | d039e99bbe09845174a845786099cfdd9a6913cb | [
"MIT"
] | null | null | null |
# Code from Chapter 14 of Machine Learning: An Algorithmic Perspective
# by Stephen Marsland (http://seat.massey.ac.nz/personal/s.r.marsland/MLBook.html)
# You are free to use, change, or redistribute the code in any way you wish for
# non-commercial purposes, but please maintain the name of the original author.
# Th... | 26.46875 | 82 | 0.639906 |
11144af78e4c5c966996602e755f5429753f46f5 | 2,901 | swift | Swift | UFO Emoji/UFO Emoji/GameTransitions/GameOver.swift | StarPlayrX/UFOEmoji2020 | ad30d2693645bce0dad78b28100b769867ded0f6 | [
"MIT"
] | null | null | null | UFO Emoji/UFO Emoji/GameTransitions/GameOver.swift | StarPlayrX/UFOEmoji2020 | ad30d2693645bce0dad78b28100b769867ded0f6 | [
"MIT"
] | null | null | null | UFO Emoji/UFO Emoji/GameTransitions/GameOver.swift | StarPlayrX/UFOEmoji2020 | ad30d2693645bce0dad78b28100b769867ded0f6 | [
"MIT"
] | null | null | null | //
// GameOver.swift
// UF Emoji
//
// Created by todd on 12/7/15.
// Copyright © 2015 Todd Bruss. All rights reserved.
//
import SpriteKit
class GameOver: SKScene {
weak var gd = gameDelegate
override init(size: CGSize ) {
super.init(size: size)
self.removeAllActio... | 26.135135 | 78 | 0.521889 |
5de0866d172736958bd7f785d6d2b2f265c6201b | 495 | hpp | C++ | contracts/vapaeetokens/vapaeetokens.dispatcher.hpp | vapaee/vapaee.io-source | b2b0c07850a817629055a848b9239a59dc10b545 | [
"MIT"
] | 7 | 2019-06-09T03:52:14.000Z | 2020-03-01T13:27:24.000Z | contracts/vapaeetokens/vapaeetokens.dispatcher.hpp | vapaee/vapaee.io-source | b2b0c07850a817629055a848b9239a59dc10b545 | [
"MIT"
] | 27 | 2019-12-28T12:29:12.000Z | 2022-03-02T04:08:55.000Z | contracts/vapaeetokens/vapaeetokens.dispatcher.hpp | vapaee/vapaee.io-source | b2b0c07850a817629055a848b9239a59dc10b545 | [
"MIT"
] | 2 | 2019-11-29T22:32:47.000Z | 2021-02-18T23:47:47.000Z | #define HANDLER void
#define EOSIO_DISPATCH_VAPAEE( TYPE, MEMBERS, HANDLERS ) \
extern "C" { \
void apply( uint64_t receiver, uint64_t code, uint64_t action ) { \
if( code == receiver ) { \
switch( action ) { \
EOSIO_DISPATCH_HELPER( TYPE, MEMBERS ) \
} \
} \
name han... | 30.9375 | 82 | 0.567677 |
436d414bc859777a812013f024f0d9364d271498 | 2,184 | ts | TypeScript | packages/rc-hooks/date/src/hooks/useWeekView.ts | yi-tuan/hooks | b4e343f267073a52e6a544a32c6719971d633187 | [
"Apache-2.0"
] | 45 | 2020-07-14T07:01:13.000Z | 2020-10-12T08:45:20.000Z | packages/rc-hooks/date/src/hooks/useWeekView.ts | yi-tuan/hooks | b4e343f267073a52e6a544a32c6719971d633187 | [
"Apache-2.0"
] | 1 | 2020-10-13T03:09:40.000Z | 2020-10-13T03:09:40.000Z | packages/rc-hooks/date/src/hooks/useWeekView.ts | yi-tuan/hooks | b4e343f267073a52e6a544a32c6719971d633187 | [
"Apache-2.0"
] | 13 | 2020-07-14T11:05:59.000Z | 2020-10-13T08:59:31.000Z | /**
* @file useWeekPanel 获取周面板
*/
import {useCallback, useEffect} from 'react';
import {IWeekPanelViewData, IWeekPanelViewItem, PanelType} from '@co-hooks/date';
import {useShallowState} from '@rc-hooks/use';
import {usePanel} from './usePanel';
export interface IWeekPanelView extends IWeekPanelViewData {
setCu... | 29.513514 | 87 | 0.621795 |
df9195a098d8489da02d8006357030a253a66cfa | 11,175 | cs | C# | QLite/WebControls/QueryView.cs | known/QLite | d8626f420bceff25b5f35850cc1951b182ba5ffe | [
"MIT"
] | null | null | null | QLite/WebControls/QueryView.cs | known/QLite | d8626f420bceff25b5f35850cc1951b182ba5ffe | [
"MIT"
] | null | null | null | QLite/WebControls/QueryView.cs | known/QLite | d8626f420bceff25b5f35850cc1951b182ba5ffe | [
"MIT"
] | null | null | null | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web.UI;
using System.Web.UI.WebControls;
using Known.QLite.Helpers;
namespace Known.QLite.WebControls
{
[ToolboxData("<{0}:QueryView runat=\"server\"></{0}:QueryView>")]
p... | 39.073427 | 127 | 0.481074 |
3f3b2a77db5cfc7ad0a3af435dc20b1129426c51 | 1,726 | ps1 | PowerShell | Functions/Get-JSMProcessingStatusEntry.ps1 | exactmike/JobSetManager | 8e52a0ef362fe423d366092fb2f7f91a6a07cd53 | [
"MIT"
] | 1 | 2018-07-08T06:02:08.000Z | 2018-07-08T06:02:08.000Z | Functions/Get-JSMProcessingStatusEntry.ps1 | exactmike/poshRSJobFlowManager | 8e52a0ef362fe423d366092fb2f7f91a6a07cd53 | [
"MIT"
] | null | null | null | Functions/Get-JSMProcessingStatusEntry.ps1 | exactmike/poshRSJobFlowManager | 8e52a0ef362fe423d366092fb2f7f91a6a07cd53 | [
"MIT"
] | 1 | 2020-07-15T23:53:58.000Z | 2020-07-15T23:53:58.000Z | function Get-JSMProcessingStatusEntry
{
<#
.SYNOPSIS
Gets entries from the module scope array variablle JSMProcessingLoopStatus
.DESCRIPTION
Gets all entries or specified entries (by JobName or EntryID) from the module scope array variable JSMProcessingLoopStatus
.EXAMPLE
PS C:\>... | 26.96875 | 130 | 0.54635 |
b35829957542c4d9b959727d95d83e5c13e2f5b0 | 3,344 | py | Python | large_vocab_adt_dafx2018/features.py | mcartwright/dafx2018_adt | 057ac6b1e39cd0c80554d52535cc9d88b6316c74 | [
"BSD-2-Clause"
] | 6 | 2019-02-28T05:43:58.000Z | 2021-03-02T17:05:13.000Z | large_vocab_adt_dafx2018/features.py | mcartwright/dafx2018_adt | 057ac6b1e39cd0c80554d52535cc9d88b6316c74 | [
"BSD-2-Clause"
] | null | null | null | large_vocab_adt_dafx2018/features.py | mcartwright/dafx2018_adt | 057ac6b1e39cd0c80554d52535cc9d88b6316c74 | [
"BSD-2-Clause"
] | 1 | 2020-02-07T17:10:40.000Z | 2020-02-07T17:10:40.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import division
import librosa
import scipy.signal
import numpy as np
from .utils import read_audio
FRAME_INTERVAL = 0.01 # s
def cq_matrix(bins_per_octave, num_bins, f_min, fft_len, sr):
"""
Compute center frequencies of the log-spaced filter... | 31.54717 | 110 | 0.58134 |
660fc4978c7513eaf5583fc522a8ee74ebb46435 | 8,846 | py | Python | resources/parser.py | ohhdemgirls/GrabIt | 516c0f25d562aa396c12df2c80b78156a80565f1 | [
"MIT"
] | 1 | 2020-06-18T01:57:27.000Z | 2020-06-18T01:57:27.000Z | resources/parser.py | ohhdemgirls/GrabIt | 516c0f25d562aa396c12df2c80b78156a80565f1 | [
"MIT"
] | null | null | null | resources/parser.py | ohhdemgirls/GrabIt | 516c0f25d562aa396c12df2c80b78156a80565f1 | [
"MIT"
] | null | null | null | import argparse
import logging
import sys
import os
from resources.config import Config
class Singleton(type):
def __init__(self, *args, **kwargs):
self.__instance = None
super().__init__(*args, **kwargs)
def __call__(self, *args, **kwargs):
if self.__instance is None:
se... | 42.941748 | 144 | 0.59541 |
43b6d0073e4884bff5f041dd7b063ac48e197cb8 | 748 | ts | TypeScript | 5 cloudfunction/Angular/app.routing.module.ts | YaeLing/sampleCode | 0da8f2e9c306e2b5f619c8a697e1b55f5cecc1a0 | [
"MIT"
] | null | null | null | 5 cloudfunction/Angular/app.routing.module.ts | YaeLing/sampleCode | 0da8f2e9c306e2b5f619c8a697e1b55f5cecc1a0 | [
"MIT"
] | null | null | null | 5 cloudfunction/Angular/app.routing.module.ts | YaeLing/sampleCode | 0da8f2e9c306e2b5f619c8a697e1b55f5cecc1a0 | [
"MIT"
] | null | null | null | import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { LoginComponent } from './loginComponent';
import { ProductsComponent } from './productsComponent';
import { QrcodeComponent } from './qrcodeComponent';
import { AccountsComponent } from './accountsComponent';
c... | 34 | 61 | 0.68984 |
1a51f56e9ef0d547d513ed03e886d40057c96b93 | 1,091 | py | Python | Virtual Assistant/API/ipGeoLocation.py | Codingmace/JARVIS | 826d8eeaac9472511ffe5cae6f6924aa041cc723 | [
"MIT"
] | 1 | 2021-02-06T13:08:37.000Z | 2021-02-06T13:08:37.000Z | Virtual Assistant/API/ipGeoLocation.py | Codingmace/JARVIS | 826d8eeaac9472511ffe5cae6f6924aa041cc723 | [
"MIT"
] | null | null | null | Virtual Assistant/API/ipGeoLocation.py | Codingmace/JARVIS | 826d8eeaac9472511ffe5cae6f6924aa041cc723 | [
"MIT"
] | null | null | null | import requests
from variables import rapidApiKey
def ipLocation(ipAddress):
url = "https://ip-location5.p.rapidapi.com/get_geo_info"
payload = "ip="+ipAddress
headers = {
'content-type': "application/x-www-form-urlencoded",
'x-rapidapi-key': rapidApiKey,
'x-rapidapi-host': "ip-loc... | 21.82 | 75 | 0.603116 |
e6aa96759af6ccc5a20e63915fa373ae9f025365 | 3,717 | h | C | pySurfaceHierarchy/src/TangentParam/param_util.h | msraig/pfcnn | ae8530efeb795e50495dc1758ced61b0d02a677f | [
"MIT"
] | 18 | 2020-04-23T08:09:51.000Z | 2022-02-27T05:34:39.000Z | pySurfaceHierarchy/src/TangentParam/param_util.h | msraig/pfcnn | ae8530efeb795e50495dc1758ced61b0d02a677f | [
"MIT"
] | 5 | 2020-06-25T05:19:16.000Z | 2022-03-06T08:24:16.000Z | pySurfaceHierarchy/src/TangentParam/param_util.h | msraig/pfcnn | ae8530efeb795e50495dc1758ced61b0d02a677f | [
"MIT"
] | 5 | 2020-05-14T10:29:56.000Z | 2021-02-05T01:26:19.000Z | #pragma once
#include <cmath>
#include <vector>
#include "TNT\tnt_matrix.h"
#include "TriMeshDef.hpp"
inline int get_axis_map_p2p(const TriMesh::Point& centN, const TriMesh::Point& nbN, int anum,
const std::vector<TriMesh::Point>& centAxes, const std::vector<TriMesh::Point>& nbAxes) {
// rotation mat from nbN to c... | 29.267717 | 120 | 0.57116 |
ef8020efcb0c5c8fc3302ed9701c67008dffaa50 | 3,971 | h | C | APCAppCore/APCAppCore/DataSubstrate/APCUser.h | chb/AppCore | 3284a7a6803cc635795a8a260531df6a1e937b19 | [
"BSD-3-Clause"
] | null | null | null | APCAppCore/APCAppCore/DataSubstrate/APCUser.h | chb/AppCore | 3284a7a6803cc635795a8a260531df6a1e937b19 | [
"BSD-3-Clause"
] | null | null | null | APCAppCore/APCAppCore/DataSubstrate/APCUser.h | chb/AppCore | 3284a7a6803cc635795a8a260531df6a1e937b19 | [
"BSD-3-Clause"
] | 1 | 2020-11-19T13:35:25.000Z | 2020-11-19T13:35:25.000Z | //
// APCUser.h
// APCAppCore
//
// Copyright (c) 2015, Apple Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notic... | 32.54918 | 131 | 0.780408 |
bb57b370274be6960ca0d6e21ca0bc10fb4d1823 | 1,621 | cs | C# | Tower Defense/Assets/_Main/Scripts/Utilities/Audio/Audio Sliders/AudioSlider.cs | Horothenic/tower-defense | a9692e2551404c439dbb653cf120ecf05a190875 | [
"MIT"
] | null | null | null | Tower Defense/Assets/_Main/Scripts/Utilities/Audio/Audio Sliders/AudioSlider.cs | Horothenic/tower-defense | a9692e2551404c439dbb653cf120ecf05a190875 | [
"MIT"
] | 29 | 2021-01-15T02:31:51.000Z | 2021-01-18T21:25:10.000Z | Tower Defense/Assets/_Main/Scripts/Utilities/Audio/Audio Sliders/AudioSlider.cs | Horothenic/tower-defense | a9692e2551404c439dbb653cf120ecf05a190875 | [
"MIT"
] | null | null | null | using System;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Events;
using Zenject;
namespace Utilities.Audio
{
public class AudioSlider : MonoBehaviour
{
#region FIELDS
[Inject] protected AudioManager audioManager = null;
[Header("COMPONENTS")]
[SerializeField] ... | 22.830986 | 69 | 0.599013 |
7f41ff1698114cf853a70240de0c540fad05a698 | 1,904 | php | PHP | platform/plugins/gallery/src/Providers/HookServiceProvider.php | ttungbmt/laragis | 783140681f4913ae30a6a7b14e743811d993a153 | [
"MIT"
] | 1 | 2020-07-25T15:28:33.000Z | 2020-07-25T15:28:33.000Z | platform/plugins/gallery/src/Providers/HookServiceProvider.php | ttungbmt/laragis | 783140681f4913ae30a6a7b14e743811d993a153 | [
"MIT"
] | 5 | 2020-05-20T02:12:09.000Z | 2022-02-27T10:38:40.000Z | platform/plugins/gallery/src/Providers/HookServiceProvider.php | ttungbmt/laragis | 783140681f4913ae30a6a7b14e743811d993a153 | [
"MIT"
] | null | null | null | <?php
namespace Botble\Gallery\Providers;
use Assets;
use Illuminate\Support\ServiceProvider;
class HookServiceProvider extends ServiceProvider
{
/**
* @throws \Throwable
*/
public function boot()
{
add_action(BASE_ACTION_META_BOXES, [$this, 'addGalleryBox'], 13, 2);
if (functi... | 29.292308 | 120 | 0.58771 |
31c11c84a2aa763cef6f1f0090eb0f8f54197ac7 | 3,559 | go | Go | private/keys/ops_db_test.go | VerseApp/ssb | 628285b56f8cf0b5c2acf4c906390d7a88f63929 | [
"Apache-2.0",
"MIT"
] | 133 | 2018-10-26T10:37:01.000Z | 2022-03-23T20:48:29.000Z | private/keys/ops_db_test.go | VerseApp/ssb | 628285b56f8cf0b5c2acf4c906390d7a88f63929 | [
"Apache-2.0",
"MIT"
] | 114 | 2018-12-27T19:46:02.000Z | 2022-03-29T14:23:44.000Z | private/keys/ops_db_test.go | VerseApp/ssb | 628285b56f8cf0b5c2acf4c906390d7a88f63929 | [
"Apache-2.0",
"MIT"
] | 20 | 2019-06-03T05:14:25.000Z | 2022-03-23T16:12:59.000Z | // SPDX-FileCopyrightText: 2021 The Go-SSB Authors
//
// SPDX-License-Identifier: MIT
package keys
import (
"context"
"testing"
"github.com/dgraph-io/badger/v3"
"github.com/stretchr/testify/require"
librarian "go.cryptoscope.co/margaret/indexes"
libbadger "go.cryptoscope.co/margaret/indexes/badger"
"go.crypto... | 23.11039 | 112 | 0.670413 |
385421c2e6a87e0f916d5094262fa6ac3d011df6 | 837 | dart | Dart | lib/src/features/compose/misc/metadata_viewmodel.dart | MBaumgartenBR/elpcd_dart | d23a343fb05452d83c6ea226a37f61e99d3f13f1 | [
"MIT"
] | 2 | 2020-05-20T17:54:08.000Z | 2020-07-30T17:40:55.000Z | lib/src/features/compose/misc/metadata_viewmodel.dart | MBaumgartenBR/ElPCD | d23a343fb05452d83c6ea226a37f61e99d3f13f1 | [
"MIT"
] | 4 | 2020-10-29T12:26:54.000Z | 2020-11-12T15:36:11.000Z | lib/src/features/compose/misc/metadata_viewmodel.dart | mbaumgartenbr/elpcd_dart | d23a343fb05452d83c6ea226a37f61e99d3f13f1 | [
"MIT"
] | 1 | 2020-07-30T17:42:16.000Z | 2020-07-30T17:42:16.000Z | const kMetadadosEArqBrasil = <String>{
'Registro de Abertura',
'Registro de Desativação',
'Reativação da Classe',
'Registro de Mudança de Nome de Classe',
'Registro de Deslocamento de Classe',
'Registro de Extinção',
'Indicador de Classe Ativa/Inativa',
'Prazo de Guarda na Fase Corrente',
'Evento que ... | 27.9 | 77 | 0.721625 |
4fca900cd81c9fe8232e237e1d15f7c35e517ff1 | 417 | rb | Ruby | spec/ruby/core/thread/initialize_spec.rb | olsemeno/jruby | 106dcc283f5be0dd9e9c0b0d73f604e3655321ed | [
"Ruby",
"Apache-2.0"
] | 2,793 | 2019-07-28T02:15:11.000Z | 2022-03-30T02:52:20.000Z | spec/ruby/core/thread/initialize_spec.rb | olsemeno/jruby | 106dcc283f5be0dd9e9c0b0d73f604e3655321ed | [
"Ruby",
"Apache-2.0"
] | 4,590 | 2015-01-01T01:36:06.000Z | 2022-03-31T23:45:59.000Z | spec/ruby/core/thread/initialize_spec.rb | olsemeno/jruby | 106dcc283f5be0dd9e9c0b0d73f604e3655321ed | [
"Ruby",
"Apache-2.0"
] | 617 | 2015-01-01T02:03:55.000Z | 2022-03-17T22:36:36.000Z | require_relative '../../spec_helper'
require_relative 'fixtures/classes'
describe "Thread#initialize" do
describe "already initialized" do
before do
@t = Thread.new { sleep }
end
after do
@t.kill
@t.join
end
it "raises a ThreadError" do
-> {
@t.instance_eval do... | 14.892857 | 39 | 0.589928 |
5d7ff57b5c2c8a3bf27e87bb779cbca23e13083c | 2,346 | sql | SQL | trms.sql | 2004javausf/Project1PattonZ | ed238b5ce9bd93982155096500dca2e9031d5c99 | [
"MIT"
] | null | null | null | trms.sql | 2004javausf/Project1PattonZ | ed238b5ce9bd93982155096500dca2e9031d5c99 | [
"MIT"
] | 2 | 2020-06-18T17:34:22.000Z | 2021-01-21T01:17:57.000Z | trms.sql | 2004javausf/Project1PattonZ | ed238b5ce9bd93982155096500dca2e9031d5c99 | [
"MIT"
] | null | null | null | CREATE TABLE EMPLOYEE(
EMP_ID NUMBER PRIMARY KEY,
NAME_FIRST VARCHAR2 (50),
NAME_LAST VARCHAR2 (50),
EMAIL VARCHAR2 (50),
USER_NAME VARCHAR2 (50),
PASS_WORD VARCHAR2 (50),
AVAIL_REIM NUMBER);
INSERT INTO EMPLOYEE VALUES (3, 'Dave', 'Patton', 'davepat@email.com', 'DP', 'pass', 1000);
INSERT INTO EMPLOYEE VALUES (4, 'J... | 32.136986 | 269 | 0.758738 |
0d90804e952325cfa8bb029621fe1cc9572a56af | 1,912 | cs | C# | sources/Interop/Windows/Windows/um/winioctl/FORMAT_EX_PARAMETERS.cs | JeremyKuhne/terrafx.interop.windows | 337dab04103688027ccfbee0180568de552283de | [
"MIT"
] | null | null | null | sources/Interop/Windows/Windows/um/winioctl/FORMAT_EX_PARAMETERS.cs | JeremyKuhne/terrafx.interop.windows | 337dab04103688027ccfbee0180568de552283de | [
"MIT"
] | null | null | null | sources/Interop/Windows/Windows/um/winioctl/FORMAT_EX_PARAMETERS.cs | JeremyKuhne/terrafx.interop.windows | 337dab04103688027ccfbee0180568de552283de | [
"MIT"
] | null | null | null | // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
// Ported from um/winioctl.h in the Windows SDK for Windows 10.0.20348.0
// Original source is Copyright © Microsoft. All rights reserved.
namespace TerraFX.Interop.Windows... | 45.52381 | 145 | 0.729079 |
14fb3e7e778f88a45b4b9ee4d392ac0d5a64f072 | 184 | ts | TypeScript | pipeline.ts | emilniklas/pipeline.ts | afbc40c224e88a2e4df6bd3ab4520aea43d3d936 | [
"MIT"
] | null | null | null | pipeline.ts | emilniklas/pipeline.ts | afbc40c224e88a2e4df6bd3ab4520aea43d3d936 | [
"MIT"
] | null | null | null | pipeline.ts | emilniklas/pipeline.ts | afbc40c224e88a2e4df6bd3ab4520aea43d3d936 | [
"MIT"
] | null | null | null | /// <reference path="typings/tsd.d.ts" />
export * from "./src/pipeline"
export * from "./src/types"
import _Middleware from "./src/middleware"
export const Middleware = _Middleware
| 23 | 42 | 0.711957 |
1a5e949455541a42e802e76788aa01684ed7fd1f | 775 | py | Python | scripts/coverage_check.py | jbenden/pipeline | 43c5196e466324007cf6e2e173d4610102d6a838 | [
"MIT"
] | 30 | 2017-12-05T11:12:06.000Z | 2021-11-06T18:27:58.000Z | scripts/coverage_check.py | jbenden/pipeline | 43c5196e466324007cf6e2e173d4610102d6a838 | [
"MIT"
] | 112 | 2017-10-15T12:13:38.000Z | 2021-01-12T22:29:58.000Z | scripts/coverage_check.py | jbenden/pipeline | 43c5196e466324007cf6e2e173d4610102d6a838 | [
"MIT"
] | 6 | 2018-08-12T17:01:52.000Z | 2021-08-17T06:05:24.000Z | #!/usr/bin/env python
import sys
def percentage(total, missing):
return (total - missing) * 100.0 / total
statements_total = int(sys.argv[1])
statements_missing = int(sys.argv[2])
statements_percentage = percentage(statements_total, statements_missing)
branches_total = int(sys.argv[3])
branches_missing = int(s... | 35.227273 | 88 | 0.740645 |
1b36c8dab0e93ff70c1b095b190dbef95ebe26b1 | 514 | rb | Ruby | config/routes.rb | kriti-rai/concert-spotter | 949167498de2fae26defd8bab2835b3c38c73f85 | [
"MIT"
] | 6 | 2019-04-21T01:00:04.000Z | 2020-08-19T00:49:22.000Z | config/routes.rb | kriti-rai/concert-spotter | 949167498de2fae26defd8bab2835b3c38c73f85 | [
"MIT"
] | 13 | 2020-02-25T21:39:22.000Z | 2022-03-30T23:04:35.000Z | config/routes.rb | kriti-rai/concert-spotter | 949167498de2fae26defd8bab2835b3c38c73f85 | [
"MIT"
] | 2 | 2019-11-11T22:41:25.000Z | 2020-04-12T18:46:07.000Z | Rails.application.routes.draw do
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
namespace :api do
resources :hikes, only: [:index]
resources :users, only: [:create]
resources :sessions, only: [:create]
get '/show' => 'users#show'
post '/add_f... | 32.125 | 101 | 0.684825 |
5d60f4453a4e2c0bff29e205fc60cc7dd8f2b7f5 | 5,548 | cpp | C++ | src/core/transform/ojph_colour_sse2.cpp | jpambrun/OpenJPH | 9cce6ed4a74b3dd0f0cdc48d90b595cd0b8d9030 | [
"BSD-2-Clause"
] | null | null | null | src/core/transform/ojph_colour_sse2.cpp | jpambrun/OpenJPH | 9cce6ed4a74b3dd0f0cdc48d90b595cd0b8d9030 | [
"BSD-2-Clause"
] | null | null | null | src/core/transform/ojph_colour_sse2.cpp | jpambrun/OpenJPH | 9cce6ed4a74b3dd0f0cdc48d90b595cd0b8d9030 | [
"BSD-2-Clause"
] | null | null | null | /****************************************************************************/
// This software is released under the 2-Clause BSD license, included
// below.
//
// Copyright (c) 2019, Aous Naman
// Copyright (c) 2019, Kakadu Software Pty Ltd, Australia
// Copyright (c) 2019, The University of New South Wales, Austral... | 37.486486 | 78 | 0.550108 |
25abe540a714bb0c1afe7c03abc176c8d4f0bc12 | 4,340 | swift | Swift | OCBCDemo/OCBCDemo/ViewControllers/Transfer/Transfer+Extension.swift | lazyworkaholics/iOS-ocbc-mdt-demo | 4d88a5fc773c4f6ac3000d85043024e29ebb9b58 | [
"MIT"
] | null | null | null | OCBCDemo/OCBCDemo/ViewControllers/Transfer/Transfer+Extension.swift | lazyworkaholics/iOS-ocbc-mdt-demo | 4d88a5fc773c4f6ac3000d85043024e29ebb9b58 | [
"MIT"
] | null | null | null | OCBCDemo/OCBCDemo/ViewControllers/Transfer/Transfer+Extension.swift | lazyworkaholics/iOS-ocbc-mdt-demo | 4d88a5fc773c4f6ac3000d85043024e29ebb9b58 | [
"MIT"
] | null | null | null | //
// TransferViewController+UIExtension.swift
// OCBCDemo
//
// Created by Pabbineedi Harsha on 31/10/21.
//
import UIKit
extension TransferViewController {
func setupUILayout() {
self.view.backgroundColor = UIColor.init(named: CUSTOM_COLOR.BACKGROUND.SECONDARY)
self.title = LITERAL.T... | 38.75 | 160 | 0.654839 |
a183d05a3dd350aab5cacfdaa01c4d64030e9ce9 | 365 | ts | TypeScript | src/core/errors/exceptions/swyft-ok.exception.ts | sabival89/swyft | c0d8b9d53b275474adbc7c79ec69c74465d671fb | [
"MIT"
] | 1 | 2021-05-05T14:32:44.000Z | 2021-05-05T14:32:44.000Z | src/core/errors/exceptions/swyft-ok.exception.ts | sabival89/swyft | c0d8b9d53b275474adbc7c79ec69c74465d671fb | [
"MIT"
] | null | null | null | src/core/errors/exceptions/swyft-ok.exception.ts | sabival89/swyft | c0d8b9d53b275474adbc7c79ec69c74465d671fb | [
"MIT"
] | null | null | null | import { HttpException, HttpStatus } from '@nestjs/common';
/**
* Http OK Response
*/
export class Swyft_OKException extends HttpException {
/**
* Swyft Http OK Response Exception
* @param message
*/
constructor(message: string) {
super(
{
status: HttpStatus.OK,
message: messag... | 17.380952 | 59 | 0.60274 |
b0f42d8aba628bf5ac94071308e7261ea7373d80 | 55,132 | c | C | retro/cores/nes/src/drivers/libretro/libretro.c | MatPoliquin/retro | c70c174a9818d1e97bc36e61abb4694d28fc68e1 | [
"MIT-0",
"MIT"
] | 2,706 | 2018-04-05T18:28:50.000Z | 2022-03-29T16:56:59.000Z | retro/cores/nes/src/drivers/libretro/libretro.c | MatPoliquin/retro | c70c174a9818d1e97bc36e61abb4694d28fc68e1 | [
"MIT-0",
"MIT"
] | 242 | 2018-04-05T22:30:42.000Z | 2022-03-19T01:55:11.000Z | retro/cores/nes/src/drivers/libretro/libretro.c | MatPoliquin/retro | c70c174a9818d1e97bc36e61abb4694d28fc68e1 | [
"MIT-0",
"MIT"
] | 464 | 2018-04-05T19:10:34.000Z | 2022-03-28T13:33:32.000Z | #include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include "libretro.h"
#include "../../fceu.h"
#include "../../fceu-endian.h"
#include "../../input.h"
#include "../../state.h"
#include "../../ppu.h"
#include "../../cart.h"
#include "../../x6502.h"
#include "../../git.... | 29.435131 | 310 | 0.642295 |
1b2a4d1657fba0c193760390847ec89e8e397a24 | 1,302 | rb | Ruby | bot.rb | gabriellesc/thm-slack-status-bot | b01b9b9e3dc8c7643330dfe3f89205991dbd88be | [
"MIT"
] | 1 | 2018-11-29T19:56:52.000Z | 2018-11-29T19:56:52.000Z | bot.rb | gabriellesc/thm-slack-status-bot | b01b9b9e3dc8c7643330dfe3f89205991dbd88be | [
"MIT"
] | null | null | null | bot.rb | gabriellesc/thm-slack-status-bot | b01b9b9e3dc8c7643330dfe3f89205991dbd88be | [
"MIT"
] | null | null | null | #!/usr/bin/env ruby
require "net/http"
require "json"
require "fortune_gem"
EMOJI_FILE = 'animal_emoji_list'
get_uri = URI('https://slack.com/api/users.profile.get')
res = Net::HTTP.start(get_uri.host,
get_uri.port,
:use_ssl => get_uri.scheme == 'https') do |http|
get_req... | 31 | 85 | 0.658986 |
692b2b36af21d33ad532cbc39ace0b16ff57b143 | 7,244 | rb | Ruby | lib/nyan_cat_formatter/common.rb | hedgesky/nyan-cat-formatter | 54ead6ab8d35d4a50bc538740ad99b83a9cb3dd1 | [
"MIT"
] | 371 | 2015-01-06T11:17:13.000Z | 2022-03-29T20:17:07.000Z | lib/nyan_cat_formatter/common.rb | hedgesky/nyan-cat-formatter | 54ead6ab8d35d4a50bc538740ad99b83a9cb3dd1 | [
"MIT"
] | 7 | 2015-03-10T22:41:20.000Z | 2017-08-02T06:55:56.000Z | lib/nyan_cat_formatter/common.rb | hedgesky/nyan-cat-formatter | 54ead6ab8d35d4a50bc538740ad99b83a9cb3dd1 | [
"MIT"
] | 44 | 2015-02-07T03:59:25.000Z | 2022-03-24T23:38:08.000Z | # -*- coding: utf-8 -*-
module NyanCat
module Common
ESC = "\e["
NND = "#{ESC}0m"
PASS = '='
PASS_ARY = ['-', '_']
FAIL = '*'
ERROR = '!'
PENDING = '+'
VT100_CODES =
{
:black => 30,
:red => 31,
:green => 32,
:yellow => 33,
... | 27.439394 | 120 | 0.567918 |
797cdccedb2a6109317fc5e31379fa687419e0ae | 417 | php | PHP | app/Competence.php | safartech/clp | b5563ac6b08950c0ab645a1f0160ec5b5b5ef8fc | [
"MIT"
] | 1 | 2019-09-27T02:07:40.000Z | 2019-09-27T02:07:40.000Z | app/Competence.php | safartech/clp | b5563ac6b08950c0ab645a1f0160ec5b5b5ef8fc | [
"MIT"
] | null | null | null | app/Competence.php | safartech/clp | b5563ac6b08950c0ab645a1f0160ec5b5b5ef8fc | [
"MIT"
] | null | null | null | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Competence extends Model
{
public function eleves(){
return $this->belongsToMany('App\Eleve','epc','competence_id')->withPivot(['id','validation','session_id']);
}
public function domaine(){
return $this->belongsTo('App\... | 18.130435 | 116 | 0.635492 |
01e8dd517c29fc2e5f8a71a6f4dad3f61d00c3ab | 21,668 | lua | Lua | modules/mqtt/lua/mqtt.lua | czanyou/node.lua | 1711425dd042ff5b6034a866653400fb00bede76 | [
"Apache-2.0"
] | 19 | 2016-05-04T12:22:12.000Z | 2021-11-04T17:36:44.000Z | modules/mqtt/lua/mqtt.lua | czanyou/node.lua | 1711425dd042ff5b6034a866653400fb00bede76 | [
"Apache-2.0"
] | 2 | 2015-11-01T12:48:13.000Z | 2018-10-25T09:14:41.000Z | modules/mqtt/lua/mqtt.lua | czanyou/node.lua | 1711425dd042ff5b6034a866653400fb00bede76 | [
"Apache-2.0"
] | 6 | 2016-03-30T15:21:06.000Z | 2020-10-27T06:48:48.000Z | --[[
Copyright 2016-2020 The Node.lua Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable la... | 28.176853 | 159 | 0.65036 |
1733d912a56b3711f61a0f2d23c669d5645d7d95 | 2,635 | cpp | C++ | src/meta_optimization/pattern.cpp | cmccomb/CISAT | 45b6864fc8c83eb1b8eee56f0f74912fecd3973d | [
"MIT"
] | 1 | 2021-08-30T23:06:03.000Z | 2021-08-30T23:06:03.000Z | src/meta_optimization/pattern.cpp | THREDgroup/CISAT-cpp | 45b6864fc8c83eb1b8eee56f0f74912fecd3973d | [
"MIT"
] | 2 | 2021-11-21T18:02:11.000Z | 2022-03-28T20:51:58.000Z | src/meta_optimization/pattern.cpp | THREDgroup/CISAT-cpp | 45b6864fc8c83eb1b8eee56f0f74912fecd3973d | [
"MIT"
] | null | null | null | #include "../../include/meta_optimization/pattern.hpp"
PatternSearch::PatternSearch(std::string file_name){
seed_time();
parse_parameter_file(file_name);
}
void PatternSearch::solve(int max_iter){
// Do some initial things
current_iteration = 0;
std::vector<std::vector<long double> > fx_current;
... | 35.608108 | 96 | 0.531309 |
da6ee94e41341639a30b7fa560dc8d31219399e3 | 1,276 | php | PHP | lib/SteamCondenser/Servers/Packets/S2CCHALLENGEPacket.php | Fluxter/steam-condenser-php | 8368619578a6fdb2a991fd0c0da26b37aaa2044e | [
"BSD-3-Clause"
] | 112 | 2015-01-16T02:40:52.000Z | 2022-01-31T14:23:07.000Z | lib/SteamCondenser/Servers/Packets/S2CCHALLENGEPacket.php | Fluxter/steam-condenser-php | 8368619578a6fdb2a991fd0c0da26b37aaa2044e | [
"BSD-3-Clause"
] | 6 | 2015-03-01T15:48:27.000Z | 2021-01-29T18:20:55.000Z | lib/SteamCondenser/Servers/Packets/S2CCHALLENGEPacket.php | Fluxter/steam-condenser-php | 8368619578a6fdb2a991fd0c0da26b37aaa2044e | [
"BSD-3-Clause"
] | 61 | 2015-01-05T15:42:16.000Z | 2022-03-25T01:55:11.000Z | <?php
/**
* This code is free software; you can redistribute it and/or modify it under
* the terms of the new BSD License.
*
* Copyright (c) 2008-2014, Sebastian Staudt
*
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
*/
namespace SteamCondenser\Servers\Packets;
/**
* This packe... | 27.73913 | 81 | 0.696708 |
45bf8c2b1321dcb3661a777dcf47ac9ae122b85e | 2,149 | py | Python | DailyProgrammer/DP20120713B.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | 2 | 2020-12-23T18:59:22.000Z | 2021-04-14T13:16:09.000Z | DailyProgrammer/DP20120713B.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | null | null | null | DailyProgrammer/DP20120713B.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | null | null | null | """
Write a function graph(f, low, high, tests) that outputs a probability graph of the function f from range low to high
(inclusive) over tests tests (i.e., counting the frequencies of f() outputs). f takes no arguments and returns an
integer, low, high and tests are all integer values. For example, a function f that ... | 25.282353 | 117 | 0.574221 |
dc6dd107cac4bc85bac1070b14be02001ea46ab7 | 285 | ts | TypeScript | tests/intersperse.ts | ikatyang/types | 97ae230c2214b56fa8dc593678b7ad2538e8f5a1 | [
"MIT"
] | null | null | null | tests/intersperse.ts | ikatyang/types | 97ae230c2214b56fa8dc593678b7ad2538e8f5a1 | [
"MIT"
] | null | null | null | tests/intersperse.ts | ikatyang/types | 97ae230c2214b56fa8dc593678b7ad2538e8f5a1 | [
"MIT"
] | null | null | null | import * as R_intersperse from '../ramda/dist/src/intersperse';
declare const object_array: object[];
declare const string: string;
// @dts-jest:pass
R_intersperse(string);
// @dts-jest:pass
R_intersperse(string, object_array);
// @dts-jest:pass
R_intersperse(string)(object_array);
| 23.75 | 63 | 0.757895 |
a1444c4d3f7956221dd1aa0d9288af45b096f849 | 1,707 | ts | TypeScript | src/index.ts | ozeron/loc-pr-guard | 47755e0cddb11dfa3f3209baab5dc65c5c149c45 | [
"0BSD"
] | null | null | null | src/index.ts | ozeron/loc-pr-guard | 47755e0cddb11dfa3f3209baab5dc65c5c149c45 | [
"0BSD"
] | null | null | null | src/index.ts | ozeron/loc-pr-guard | 47755e0cddb11dfa3f3209baab5dc65c5c149c45 | [
"0BSD"
] | null | null | null | import { Application, Context } from 'probot' // eslint-disable-line no-unused-vars
import { CheckStatus, CheckConclusion } from './types'
import fileFilter from './fileFilter'
const ADDITIONS_MAX_NUM = 1000
async function eventHandler (context: Context) {
const owner : string = context.payload.pull_request.base.r... | 40.642857 | 116 | 0.725835 |
cf5117c9f06d545977ffe872984504780c044e1f | 2,197 | rs | Rust | src/cluster/src/error.rs | simlay/fluvio | a42283200e667223d3a52b217d266db8927db4eb | [
"Apache-2.0"
] | null | null | null | src/cluster/src/error.rs | simlay/fluvio | a42283200e667223d3a52b217d266db8927db4eb | [
"Apache-2.0"
] | null | null | null | src/cluster/src/error.rs | simlay/fluvio | a42283200e667223d3a52b217d266db8927db4eb | [
"Apache-2.0"
] | null | null | null | use std::io::Error as IoError;
use thiserror::Error;
use fluvio::FluvioError;
use k8_config::{ConfigError as K8ConfigError};
use k8_client::{ClientError as K8ClientError};
use crate::helm::HelmError;
use crate::check::CheckError;
/// The types of errors that can occur during cluster management
#[derive(Error, Debug)]... | 30.943662 | 74 | 0.637233 |
2f2220253437de4eb555702f85bfbe308593a503 | 15,508 | js | JavaScript | projects/xl_app/src/utils/request.js | baikaifa/self-tool | 5f3538ea9901cef0c9aabfa5ba43d77e68b0a2ea | [
"MIT"
] | null | null | null | projects/xl_app/src/utils/request.js | baikaifa/self-tool | 5f3538ea9901cef0c9aabfa5ba43d77e68b0a2ea | [
"MIT"
] | 9 | 2021-03-09T13:28:35.000Z | 2022-02-26T15:55:59.000Z | projects/xl_app/src/utils/request.js | baikaifa/self-tool | 5f3538ea9901cef0c9aabfa5ba43d77e68b0a2ea | [
"MIT"
] | null | null | null | import axios from "axios"
import qs from 'Qs'
import Vue from 'vue' // vue主体
function getReco(path, params, noToken) {
path = 'http://118.144.88.218:7999' + path;
return new Promise((resolve, reject) => {
get(path, params, noToken).then(res => {
resolve(res);
}).catch(err => {
// alert("出错了 > post request ... | 28.455046 | 141 | 0.637155 |
0aa088867161cb325679e25239bc45a89c65c753 | 1,477 | cs | C# | OriginalClayResources/src/ClaySharp/IClayBehavior.cs | jdselig/ClayUnity | 24b803f47751da83294c0edc0d2305e339224cd6 | [
"MIT"
] | 90 | 2017-05-03T04:00:39.000Z | 2022-03-31T06:24:17.000Z | OriginalClayResources/src/ClaySharp/IClayBehavior.cs | jdselig/ClayUnity | 24b803f47751da83294c0edc0d2305e339224cd6 | [
"MIT"
] | 3 | 2018-02-23T09:04:11.000Z | 2021-06-22T22:18:41.000Z | OriginalClayResources/src/ClaySharp/IClayBehavior.cs | jdselig/ClayUnity | 24b803f47751da83294c0edc0d2305e339224cd6 | [
"MIT"
] | 18 | 2017-05-03T04:50:10.000Z | 2022-03-31T06:24:23.000Z | using System;
using System.Collections.Generic;
using System.Linq.Expressions;
namespace ClaySharp {
public interface IClayBehavior {
object GetMember(Func<object> proceed, object self, string name);
object SetMember(Func<object> proceed, object self, string name, object value);
ob... | 50.931034 | 115 | 0.704807 |
3880cc72692b38568c034e09cb84754ebd165953 | 549 | php | PHP | tpl/safehouse/main.conf.php | bilicraft/BilicraftWebsite | ba0c9cb6b2d4f5da9a6a3160114fa92ae4db465c | [
"Apache-2.0"
] | null | null | null | tpl/safehouse/main.conf.php | bilicraft/BilicraftWebsite | ba0c9cb6b2d4f5da9a6a3160114fa92ae4db465c | [
"Apache-2.0"
] | null | null | null | tpl/safehouse/main.conf.php | bilicraft/BilicraftWebsite | ba0c9cb6b2d4f5da9a6a3160114fa92ae4db465c | [
"Apache-2.0"
] | null | null | null | <?php
class config_tpl_safehouse_main{
function get_config(){
// 继承配置
$cfg = TPL::load_config('public/common');
return TPL::extend_config($cfg, array(
'css' => [
],
'less' => [
'safehouse/less/main'
],
... | 21.115385 | 49 | 0.315118 |
af8673fd2f3f980c9766d0d85eeaac3a5193b93d | 874 | py | Python | pros/grpc-py/src/CameraAIClinent.py | LightSun/study-grpc | 900cfb4154654e75100f295b762f4cf48100b564 | [
"Apache-2.0"
] | null | null | null | pros/grpc-py/src/CameraAIClinent.py | LightSun/study-grpc | 900cfb4154654e75100f295b762f4cf48100b564 | [
"Apache-2.0"
] | null | null | null | pros/grpc-py/src/CameraAIClinent.py | LightSun/study-grpc | 900cfb4154654e75100f295b762f4cf48100b564 | [
"Apache-2.0"
] | null | null | null |
from __future__ import print_function
import logging
import grpc
import CameraAI_pb2
import CameraAI_pb2_grpc
def run():
# NOTE(gRPC Python Team): .close() is possible on a channel and should be
# used in circumstances in which the with statement does not fit the needs
# of the code.
with grpc.insec... | 34.96 | 138 | 0.742563 |
4413a9d184942cb268a314aed1c7c334a1fbdf09 | 11,564 | py | Python | ssvm_evaluation/utils.py | aalto-ics-kepaco/lcms2struct_exp | 5baa3edd0e58d24f739efd4086031f6fbdba6ad9 | [
"MIT"
] | null | null | null | ssvm_evaluation/utils.py | aalto-ics-kepaco/lcms2struct_exp | 5baa3edd0e58d24f739efd4086031f6fbdba6ad9 | [
"MIT"
] | null | null | null | ssvm_evaluation/utils.py | aalto-ics-kepaco/lcms2struct_exp | 5baa3edd0e58d24f739efd4086031f6fbdba6ad9 | [
"MIT"
] | null | null | null | ####
#
# The MIT License (MIT)
#
# Copyright 2021, 2022 Eric Bach <eric.bach@aalto.fi>
#
# 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 ... | 38.165017 | 169 | 0.649256 |
475ceb4223fe2badfdeb2adda98943a0b7d7bae8 | 524 | rb | Ruby | metadata.rb | criteo-cookbooks/w32time | 8f8eed389ac34daf53692114b67176baeeaee557 | [
"Apache-2.0"
] | 1 | 2018-03-08T21:34:50.000Z | 2018-03-08T21:34:50.000Z | metadata.rb | criteo-cookbooks/w32time | 8f8eed389ac34daf53692114b67176baeeaee557 | [
"Apache-2.0"
] | 2 | 2016-11-18T14:23:35.000Z | 2016-12-07T03:23:20.000Z | metadata.rb | criteo-cookbooks/w32time | 8f8eed389ac34daf53692114b67176baeeaee557 | [
"Apache-2.0"
] | 1 | 2016-11-17T12:24:05.000Z | 2016-11-17T12:24:05.000Z | name 'w32time'
maintainer 'Nicolas BENOIT'
maintainer_email 'sre-core-infra@criteo.com'
license 'Apache-2.0'
description 'This cookbook configure w32time'
long_description 'Installs/Configures w32time'
chef_version '>= 12.16' if respond_to?(:chef_version)
issues_url 'https://gi... | 43.666667 | 89 | 0.700382 |
d67ef92a89de3ed1af5ea0e7cf511dae398fc023 | 923 | cs | C# | Database-centric-architecture/server/PetFoodShop.Foods/Controllers/CategoriesController.cs | Domin1k/Microservices | 5334f243a1879d392b2412b9082aacedc3cac608 | [
"MIT"
] | 4 | 2020-07-21T16:40:45.000Z | 2021-02-22T13:53:49.000Z | Database-centric-architecture/server/PetFoodShop.Foods/Controllers/CategoriesController.cs | Domin1k/Microservices | 5334f243a1879d392b2412b9082aacedc3cac608 | [
"MIT"
] | 11 | 2020-07-17T06:31:37.000Z | 2022-03-02T09:58:25.000Z | Database-centric-architecture/server/PetFoodShop.Foods/Controllers/CategoriesController.cs | Domin1k/Microservices | 5334f243a1879d392b2412b9082aacedc3cac608 | [
"MIT"
] | 1 | 2020-07-21T16:40:59.000Z | 2020-07-21T16:40:59.000Z | namespace PetFoodShop.Foods.Controllers
{
using Microsoft.AspNetCore.Mvc;
using PetFoodShop.Controllers;
using PetFoodShop.Foods.Services;
using System.Threading.Tasks;
public class CategoriesController : ApiController
{
private readonly IFoodCategoryService foodCategoryService;
... | 28.84375 | 81 | 0.651138 |
8e53b2d1ad76845022ae7bfe101045bf475f5cd6 | 582 | js | JavaScript | src/utils/make-link.js | ivankristianto/wp-local-docker-v2 | c2b1b3736e012b6f844d7fe0a862b2a6f1c0d5a4 | [
"MIT"
] | 391 | 2018-10-10T17:29:03.000Z | 2022-03-31T00:43:22.000Z | src/utils/make-link.js | ivankristianto/wp-local-docker-v2 | c2b1b3736e012b6f844d7fe0a862b2a6f1c0d5a4 | [
"MIT"
] | 231 | 2018-10-13T15:49:23.000Z | 2022-03-31T14:20:10.000Z | src/utils/make-link.js | ivankristianto/wp-local-docker-v2 | c2b1b3736e012b6f844d7fe0a862b2a6f1c0d5a4 | [
"MIT"
] | 81 | 2018-11-30T14:30:28.000Z | 2022-03-30T15:12:41.000Z | const chalk = require( 'chalk' );
const terminalLink = require( 'terminal-link' );
const stripAnsi = require( 'strip-ansi' );
function makeLink( text, link ) {
if ( ! terminalLink.isSupported ) {
return link !== stripAnsi( text ) ? `${ text } (${ link })` : link;
}
return terminalLink( text, link );
}
function ... | 21.555556 | 90 | 0.642612 |
f62f1a39f186141cf5bcc647a9be7668ac6314ad | 7,801 | cpp | C++ | app/src/main/engine/android/esutil_android.cpp | qige023/learning-opengles3-android | cbe0742637a6eeed41c76756021913cc570cc30e | [
"MIT"
] | 10 | 2015-05-06T17:59:51.000Z | 2019-12-03T10:08:23.000Z | app/src/main/engine/android/esutil_android.cpp | qige023/OpenGL-ES3-Programming-On-Android | cbe0742637a6eeed41c76756021913cc570cc30e | [
"MIT"
] | null | null | null | app/src/main/engine/android/esutil_android.cpp | qige023/OpenGL-ES3-Programming-On-Android | cbe0742637a6eeed41c76756021913cc570cc30e | [
"MIT"
] | null | null | null | //
// This file contains the Android implementation of the windowing functions.
#include <android/log.h>
#include <android/keycodes.h>
#include <android/input.h>
#include <android_native_app_glue.h>
#include <time.h>
#include <iostream>
#include <stdexcept>
using std::cout;
using std::cerr;
using std::endl;
#incl... | 31.329317 | 145 | 0.596077 |
dfd8ca95467fa6806d61852aa1962ac6ff668760 | 375 | cs | C# | libsw/FFXIVDataHandler/Structs/Header.cs | Project-Novum/ffxiv-tools | 3852aa560bc9307bebe7d96974885a5c60e3df6e | [
"MIT"
] | 2 | 2022-01-05T06:37:29.000Z | 2022-01-05T18:59:49.000Z | libsw/FFXIVDataHandler/Structs/Header.cs | Project-Novum/ffxiv-tools | 3852aa560bc9307bebe7d96974885a5c60e3df6e | [
"MIT"
] | null | null | null | libsw/FFXIVDataHandler/Structs/Header.cs | Project-Novum/ffxiv-tools | 3852aa560bc9307bebe7d96974885a5c60e3df6e | [
"MIT"
] | 2 | 2022-01-05T13:53:13.000Z | 2022-01-05T18:50:19.000Z | namespace FFXIVDataHandler.Structs;
public class Header
{
public char[] Type { get; }
public byte[] Unknown { get; }
public int PayloadSize { get; }
public Header(BinaryReader reader)
{
Type = reader.ReadChars(4);
Unknown = reader.ReadBytes(4);
PayloadSize = reader.ReadInt... | 22.058824 | 41 | 0.621333 |
1321235d4b8496c4f562fe38b1128961f597281b | 1,109 | rb | Ruby | spec/git_log_extraction_spec.rb | sushil10018/git_timelog | 3753d0d2b362af01e73271330c3f43598315bc4d | [
"MIT"
] | null | null | null | spec/git_log_extraction_spec.rb | sushil10018/git_timelog | 3753d0d2b362af01e73271330c3f43598315bc4d | [
"MIT"
] | null | null | null | spec/git_log_extraction_spec.rb | sushil10018/git_timelog | 3753d0d2b362af01e73271330c3f43598315bc4d | [
"MIT"
] | null | null | null | require "spec_helper"
describe GitTimelog do
# TODO: Refactor
describe '#git_timelog' do
it "should extract git commits" do
expect(git_timelog).to eql(`git log --pretty=format:"git__title:%sgit__description:%bgit__date:%cd" --author="#{current_author}" --since='6am'} --reverse --all`)
end
end
#... | 25.790698 | 167 | 0.6844 |
ae59d44f7e51a53f79c605cee6ef10dc99c394de | 2,450 | cshtml | C# | WebObs.MVC/Views/Security/Register.cshtml | cihatfurkaneken/school-management | c566af9851469e0c07d31f594361cde46c817a7b | [
"MIT"
] | 1 | 2021-06-04T14:38:09.000Z | 2021-06-04T14:38:09.000Z | WebObs.MVC/Views/Security/Register.cshtml | cihatfurkaneken/school-management | c566af9851469e0c07d31f594361cde46c817a7b | [
"MIT"
] | null | null | null | WebObs.MVC/Views/Security/Register.cshtml | cihatfurkaneken/school-management | c566af9851469e0c07d31f594361cde46c817a7b | [
"MIT"
] | null | null | null | @model WebObs.MVC.Models.Security.RegisterViewModel
@{
ViewData["Title"] = "Register";
Layout = "~/Views/Shared/_LayoutSecurity.cshtml";
}
<div class="account-pages"></div>
<div class="clearfix"></div>
<div class="wrapper-page">
<div class="m-t-40 card-box">
<div class="text-center">
</div>... | 42.241379 | 165 | 0.473878 |
1a9b43d89422c6eadfc739afdde0d6ab6efcead3 | 326 | py | Python | python3/tls/client_test1.py | jtraver/dev | c7cd2181594510a8fa27e7325566ed2d79371624 | [
"MIT"
] | null | null | null | python3/tls/client_test1.py | jtraver/dev | c7cd2181594510a8fa27e7325566ed2d79371624 | [
"MIT"
] | null | null | null | python3/tls/client_test1.py | jtraver/dev | c7cd2181594510a8fa27e7325566ed2d79371624 | [
"MIT"
] | null | null | null | #!/usr/local/bin/python3.7
# https://docs.python.org/3/library/ssl.html
import socket
import ssl
hostname = 'www.python.org'
context = ssl.create_default_context()
with socket.create_connection((hostname, 443)) as sock:
with context.wrap_socket(sock, server_hostname=hostname) as ssock:
print(ssock.versi... | 23.285714 | 70 | 0.742331 |
1f0ed89ab0e8d38d11236a3adbf22b9d814dd150 | 3,335 | cs | C# | src/Collections/Artemis.Plugins.PhilipsHue/RGB.NET/HueRGBDeviceProvider.cs | skedgyedgy/Artemis.Plugins | 25ee578a864578548959fe778e6839ef31e29fce | [
"MIT"
] | null | null | null | src/Collections/Artemis.Plugins.PhilipsHue/RGB.NET/HueRGBDeviceProvider.cs | skedgyedgy/Artemis.Plugins | 25ee578a864578548959fe778e6839ef31e29fce | [
"MIT"
] | null | null | null | src/Collections/Artemis.Plugins.PhilipsHue/RGB.NET/HueRGBDeviceProvider.cs | skedgyedgy/Artemis.Plugins | 25ee578a864578548959fe778e6839ef31e29fce | [
"MIT"
] | null | null | null | using System;
using System.Collections.Generic;
using System.Linq;
using Artemis.Plugins.PhilipsHue.RGB.NET.Hue;
using Q42.HueApi;
using Q42.HueApi.Interfaces;
using Q42.HueApi.Models.Groups;
using Q42.HueApi.Streaming;
using Q42.HueApi.Streaming.Models;
using RGB.NET.Core;
namespace Artemis.Plugins.PhilipsHue.RGB.NE... | 39.702381 | 145 | 0.63928 |
df5fb97e954df48237c1335566132a51eaefb81d | 7,521 | cs | C# | ExchangeFormat/Form1.Designer.cs | Asteriskx/ExchangeFormatter | 1f6b5c9488b0254791f69944699b9daaf5b89a5a | [
"MIT"
] | 3 | 2017-08-26T21:38:39.000Z | 2017-10-30T05:49:17.000Z | ExchangeFormat/Form1.Designer.cs | Asteriskx/ExchangeFormatter | 1f6b5c9488b0254791f69944699b9daaf5b89a5a | [
"MIT"
] | null | null | null | ExchangeFormat/Form1.Designer.cs | Asteriskx/ExchangeFormatter | 1f6b5c9488b0254791f69944699b9daaf5b89a5a | [
"MIT"
] | null | null | null | namespace ExchangeFormat
{
partial class Form1
{
/// <summary>
/// 必要なデザイナー変数です。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 使用中のリソースをすべてクリーンアップします。
/// </summary>
/// <param name="disp... | 45.581818 | 160 | 0.569206 |
f414f2c819ddcbb4c4b08fde4dc8a74f85a1498c | 28,413 | cs | C# | Ao3TrackReader/Ao3TrackReader/Data/SyncedStorage.cs | Antyos/Ao3-Tracker | 55634d20a6796f0cc10009db23ad1e1b8228fbd3 | [
"Apache-2.0"
] | 8 | 2017-11-30T14:33:42.000Z | 2021-12-27T07:29:08.000Z | Ao3TrackReader/Ao3TrackReader/Data/SyncedStorage.cs | Antyos/Ao3-Tracker | 55634d20a6796f0cc10009db23ad1e1b8228fbd3 | [
"Apache-2.0"
] | 10 | 2017-04-27T11:47:35.000Z | 2020-10-26T13:24:40.000Z | Ao3TrackReader/Ao3TrackReader/Data/SyncedStorage.cs | Antyos/Ao3-Tracker | 55634d20a6796f0cc10009db23ad1e1b8228fbd3 | [
"Apache-2.0"
] | 4 | 2018-03-21T02:51:42.000Z | 2022-01-26T16:07:29.000Z | /*
Copyright 2017 Alexis Ryan
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, software
di... | 40.706304 | 190 | 0.447718 |
a16543418271c494ee734f3e1c3b67fbc3f3fc9f | 182 | ts | TypeScript | src/app/models/WorkExperience.model.ts | Swaraj-Deep/Portfolio | 9f88ee5429ef125a2ab1450609482f3286ae53ca | [
"MIT"
] | 2 | 2021-11-01T18:12:47.000Z | 2021-11-06T10:20:21.000Z | src/app/models/WorkExperience.model.ts | Swaraj-Deep/Portfolio | 9f88ee5429ef125a2ab1450609482f3286ae53ca | [
"MIT"
] | null | null | null | src/app/models/WorkExperience.model.ts | Swaraj-Deep/Portfolio | 9f88ee5429ef125a2ab1450609482f3286ae53ca | [
"MIT"
] | null | null | null | export interface WorkExperience {
title: string;
description: string[];
organization: string;
location: string;
techStack: string[];
startDate: Date;
endDate?: Date;
}
| 18.2 | 33 | 0.703297 |
dd6b9aacf7705a55d48fc78a520b0bafcb501a6c | 175 | java | Java | src/main/java/block/event/separator/interfaces/mixin/IMinecraftServer.java | SpaceWalkerRS/block-event-separator | 978ae1fa5abbdf9221e1b1fc5d23f83430d0cdeb | [
"MIT"
] | 1 | 2022-03-22T10:46:17.000Z | 2022-03-22T10:46:17.000Z | src/main/java/block/event/separator/interfaces/mixin/IMinecraftServer.java | SpaceWalkerRS/block-event-separator | 978ae1fa5abbdf9221e1b1fc5d23f83430d0cdeb | [
"MIT"
] | null | null | null | src/main/java/block/event/separator/interfaces/mixin/IMinecraftServer.java | SpaceWalkerRS/block-event-separator | 978ae1fa5abbdf9221e1b1fc5d23f83430d0cdeb | [
"MIT"
] | 1 | 2022-03-16T19:53:36.000Z | 2022-03-16T19:53:36.000Z | package block.event.separator.interfaces.mixin;
public interface IMinecraftServer {
default boolean isPaused() {
return false;
}
public void postBlockEvents_bes();
}
| 14.583333 | 47 | 0.765714 |
312735cb21115510bfe1e1cf15af2f76c2d073ec | 3,124 | rb | Ruby | sli/bulk-extract/marker/marker.rb | jstokes/secure-data-service | 94ae9df1c2a46b3555cdee5779929f48405f788d | [
"Apache-2.0"
] | null | null | null | sli/bulk-extract/marker/marker.rb | jstokes/secure-data-service | 94ae9df1c2a46b3555cdee5779929f48405f788d | [
"Apache-2.0"
] | null | null | null | sli/bulk-extract/marker/marker.rb | jstokes/secure-data-service | 94ae9df1c2a46b3555cdee5779929f48405f788d | [
"Apache-2.0"
] | null | null | null | =begin
Copyright 2012 Shared Learning Collaborative, LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to ... | 31.24 | 105 | 0.661652 |
f4621062b20fa8f76c3861c861490d452aab2522 | 1,389 | ts | TypeScript | src/__tests__/with-query-hoc.spec.ts | kevinydhan/gatsby-with-query | adb74349217991b60b0289f3c468b27dff9b3557 | [
"MIT"
] | null | null | null | src/__tests__/with-query-hoc.spec.ts | kevinydhan/gatsby-with-query | adb74349217991b60b0289f3c468b27dff9b3557 | [
"MIT"
] | 6 | 2020-12-17T19:05:55.000Z | 2020-12-18T03:29:59.000Z | src/__tests__/with-query-hoc.spec.ts | kevinydhan/gatsby-with-query | adb74349217991b60b0289f3c468b27dff9b3557 | [
"MIT"
] | null | null | null | /**
* TypeScript linting is disabled to test for invalid arguments.
*/
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck
import { createElement } from 'react'
import withQuery from '../with-query'
const DivComponent = () => createElement('div')
const emptyQueryHook = () => ({})
describe('... | 35.615385 | 81 | 0.716343 |