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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
43bbf2dab944983671dc98f225231d3e1cff07d6 | 1,213 | go | Go | pkg/restful/errors.go | GUAIK-ORG/go-restful | bf21f47b335b351353619bf3713c1810dd17e866 | [
"Apache-2.0"
] | 14 | 2019-12-26T20:16:08.000Z | 2020-11-10T01:37:03.000Z | pkg/restful/errors.go | GUAIK-ORG/go-restful | bf21f47b335b351353619bf3713c1810dd17e866 | [
"Apache-2.0"
] | 2 | 2020-04-08T13:06:36.000Z | 2020-04-09T03:19:38.000Z | pkg/restful/errors.go | GUAIK-ORG/gtask | 07ae2ff75b3f8c2fe153f296f9c93bff0b115724 | [
"Apache-2.0"
] | 1 | 2021-03-06T02:07:22.000Z | 2021-03-06T02:07:22.000Z | package restful
import (
"sync"
"github.com/golang/glog"
)
type Error struct {
Code string
Msg map[string]string // 支持多语言
}
type Errors struct {
errors map[string]Error
language string
}
type ErrorsBucket struct {
errorsMap []*Errors
}
var errorBucketInsObj *ErrorsBucket
var errorBucketOnce sync.Once
f... | 17.328571 | 72 | 0.684254 |
eb59041bc30d0822d35f9e2e67e1141ee3a0edff | 3,670 | rs | Rust | isymtope-generate/src/session.rs | tmzt/ismytope | f6caa4c7741e894032f67c9daa8a603fb47148c7 | [
"MIT"
] | 25 | 2017-09-19T09:27:39.000Z | 2021-01-02T09:52:09.000Z | isymtope-generate/src/session.rs | tmzt/isymtope | f6caa4c7741e894032f67c9daa8a603fb47148c7 | [
"MIT"
] | null | null | null | isymtope-generate/src/session.rs | tmzt/isymtope | f6caa4c7741e894032f67c9daa8a603fb47148c7 | [
"MIT"
] | null | null | null | use isymtope_ast_common::*;
use std::collections::HashMap;
#[cfg(feature = "session_time")]
use time::{get_time, Duration, Timespec};
#[derive(Debug)]
pub struct MemorySession {
#[cfg(feature = "session_time")]
created: Timespec,
#[cfg(feature = "session_time")]
expires: Option<Timespec>,
data: H... | 26.028369 | 129 | 0.531063 |
f0525be58f18cfa403bd3d99eff91736b253e21f | 4,849 | js | JavaScript | src/components/Navbar.js | kelinahu/react-material-ui-sidebar | b20cccd2570576fec341ddcbba4a4054daf4609d | [
"MIT"
] | null | null | null | src/components/Navbar.js | kelinahu/react-material-ui-sidebar | b20cccd2570576fec341ddcbba4a4054daf4609d | [
"MIT"
] | 2 | 2020-08-28T15:07:28.000Z | 2020-08-29T01:23:02.000Z | src/components/Navbar.js | kelinahu/react-material-ui-sidebar | b20cccd2570576fec341ddcbba4a4054daf4609d | [
"MIT"
] | null | null | null | import React, { useState } from 'react'
import MobilRightMenuSlider from '@material-ui/core/Drawer';
import { Link } from 'react-router-dom'
import {
AppBar,
Toolbar,
ListItem,
IconButton,
ListItemText,
ListItemIcon,
Avatar,
Divider,
List,
Typography,
Box
} from '@material-ui/core'
import {
Home,
Info... | 28.028902 | 108 | 0.472469 |
21b662896d82d210ca2832612df2142667c07acf | 3,152 | rs | Rust | src/util.rs | LunarCoffee/Lucent | d8b0669488c032a9131782a00ee603ae6b29560e | [
"MIT"
] | 2 | 2020-05-13T04:43:34.000Z | 2020-07-01T01:35:05.000Z | src/util.rs | LunarCoffee/lucent | d8b0669488c032a9131782a00ee603ae6b29560e | [
"MIT"
] | null | null | null | src/util.rs | LunarCoffee/lucent | d8b0669488c032a9131782a00ee603ae6b29560e | [
"MIT"
] | null | null | null | use std::time::SystemTime;
use async_std::io;
use chrono::{DateTime, Local, Utc};
use futures::{AsyncRead, AsyncReadExt};
use crate::consts;
// Used in handling range requests.
#[derive(Clone, Copy)]
pub struct Range {
pub low: usize,
pub high: usize,
}
pub fn get_time_utc() -> DateTime<Utc> { SystemTime::n... | 35.022222 | 117 | 0.600888 |
b421c1deecf88df0a8c6ecfd0070a6495763d833 | 646 | swift | Swift | Swift-data-processor/Modules/Actions/SDPHashes/Submodules/SDPArgon2ParametersPopup/Configurator/SDPArgon2ParametersPopupModuleBuilder.swift | Brassack/swift-data-processor | a458b9dd24c52f036bd3378655397e1805ed9b67 | [
"MIT"
] | 6 | 2020-12-25T17:10:07.000Z | 2022-03-21T00:32:25.000Z | Swift-data-processor/Modules/Actions/SDPHashes/Submodules/SDPArgon2ParametersPopup/Configurator/SDPArgon2ParametersPopupModuleBuilder.swift | Brassack/swift-data-processor | a458b9dd24c52f036bd3378655397e1805ed9b67 | [
"MIT"
] | 1 | 2019-07-12T08:54:19.000Z | 2019-08-25T06:16:15.000Z | Swift-data-processor/Modules/Actions/SDPHashes/Submodules/SDPArgon2ParametersPopup/Configurator/SDPArgon2ParametersPopupModuleBuilder.swift | Brassack/swift-data-processor | a458b9dd24c52f036bd3378655397e1805ed9b67 | [
"MIT"
] | null | null | null | //
// SDPArgon2ParametersPopupModuleBuilder.swift
// Swift-data-processor
//
// Created by Dmytro Platov on 8/27/18.
// Copyright © 2018 Dmytro Platov. All rights reserved.
//
import UIKit
class SDPArgon2ParametersPopupModuleBuilder {
class func buildArgon2ParametersPopup(completionBlock:@escaping () -> Void... | 26.916667 | 113 | 0.713622 |
857626b86e6fc330fa2f2b41f1a3b13b60ed2054 | 165 | js | JavaScript | egg-server/app/model/photo.js | yesmore/photosapi | 8eb9dcd6f5bf8a457e335f104231ab70cbaba678 | [
"MIT"
] | 12 | 2021-10-16T01:21:42.000Z | 2022-01-11T03:21:33.000Z | egg-server/app/model/photo.js | bai-23/photosapi | 8eb9dcd6f5bf8a457e335f104231ab70cbaba678 | [
"MIT"
] | null | null | null | egg-server/app/model/photo.js | bai-23/photosapi | 8eb9dcd6f5bf8a457e335f104231ab70cbaba678 | [
"MIT"
] | 1 | 2021-11-22T08:39:45.000Z | 2021-11-22T08:39:45.000Z | module.exports = app => {
const { STRING } = app.Sequelize;
const Photo = app.model.define('photo', {
uip: STRING,
count: STRING
});
return Photo
}
| 16.5 | 43 | 0.6 |
dc52a3174cc757b82e57f1d7bcce65a40ef0e2d7 | 2,468 | kt | Kotlin | spring-webmvc/src/main/kotlin/org/springframework/web/servlet/function/ServerRequestExtensions.kt | JunMi/SpringFramework-SourceCode | 4918e0e6a0676a62fd2a9d95acf6eb4fa5edb82b | [
"Apache-2.0"
] | 1 | 2019-07-30T08:39:13.000Z | 2019-07-30T08:39:13.000Z | spring-webmvc/src/main/kotlin/org/springframework/web/servlet/function/ServerRequestExtensions.kt | JunMi/SpringFramework-SourceCode | 4918e0e6a0676a62fd2a9d95acf6eb4fa5edb82b | [
"Apache-2.0"
] | null | null | null | spring-webmvc/src/main/kotlin/org/springframework/web/servlet/function/ServerRequestExtensions.kt | JunMi/SpringFramework-SourceCode | 4918e0e6a0676a62fd2a9d95acf6eb4fa5edb82b | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2002-2019 the original author or 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... | 30.469136 | 119 | 0.715964 |
dcc384ee188db8ec26d67ed090d28a6ff1adcfd8 | 9,379 | lua | Lua | lualib/LuaKit/framework/lib/TableLib.lua | cooee/skynet | 9a5e81de9d068c6595930d45614ded2746376731 | [
"MIT"
] | null | null | null | lualib/LuaKit/framework/lib/TableLib.lua | cooee/skynet | 9a5e81de9d068c6595930d45614ded2746376731 | [
"MIT"
] | null | null | null | lualib/LuaKit/framework/lib/TableLib.lua | cooee/skynet | 9a5e81de9d068c6595930d45614ded2746376731 | [
"MIT"
] | null | null | null | local tableConcat = table.concat
local tableInsert = table.insert
local type = type
local pairs = pairs
local tostring = tostring
local next = next
local TableLib = {}
--[[--
计算表格包含的字段数量
Lua table 的 "#" 操作只对依次排序的数值下标数组有效,TableLib.nums() 则计算 table 中所有不为 nil 的值的个数。
@param t 要计算的表格
@return integer
]]
function TableLib... | 21.811628 | 100 | 0.518925 |
91da93684d00230641ca5f1086b4bea101e28c84 | 944 | rs | Rust | src/txt/encoding/unicode.rs | dnsl48/yamlette | 593f172622d393086450023433549bf23843933f | [
"MIT"
] | 10 | 2017-02-07T18:10:21.000Z | 2021-03-21T15:43:51.000Z | src/txt/encoding/unicode.rs | dnsl48/yamlette | 593f172622d393086450023433549bf23843933f | [
"MIT"
] | 4 | 2018-01-15T18:54:14.000Z | 2020-08-20T20:49:41.000Z | src/txt/encoding/unicode.rs | dnsl48/yamlette | 593f172622d393086450023433549bf23843933f | [
"MIT"
] | 1 | 2018-01-28T13:58:25.000Z | 2018-01-28T13:58:25.000Z | pub trait Unicode {
fn char_max_bytes_len (self) -> u8;
fn check_bom (self, bom: &[u8]) -> bool;
unsafe fn to_unicode_ptr (self, ptr: *const u8, len: usize) -> (u32, u8);
fn to_unicode (self, stream: &[u8]) -> (u32, u8);
fn from_unicode (self, point: u32) -> [u8; 5];
fn check_is_dec_num (se... | 29.5 | 86 | 0.590042 |
f014f230f32ee89a8c47655fc0cc015933e37ef2 | 4,689 | swift | Swift | Sources/UIImage/Image+Creation.swift | Machipla/SugarLumpUIKit | d79a334df82bd74dddcdaed3fe4bdad93f66de58 | [
"MIT"
] | null | null | null | Sources/UIImage/Image+Creation.swift | Machipla/SugarLumpUIKit | d79a334df82bd74dddcdaed3fe4bdad93f66de58 | [
"MIT"
] | null | null | null | Sources/UIImage/Image+Creation.swift | Machipla/SugarLumpUIKit | d79a334df82bd74dddcdaed3fe4bdad93f66de58 | [
"MIT"
] | null | null | null | //
// Image+Creation.swift
// SugarLumpUIKit
//
// Created by Mario Chinchilla on 10/10/18.
//
import Foundation
import SugarLumpCoreGraphics
public extension UIImage{
public enum JPEGCompression: RawRepresentable{
case lowest
case low
case medium
case high
case highest
... | 33.255319 | 112 | 0.6029 |
9762e41320a03a6ddbae79052cc93cf4d6473627 | 661 | sql | SQL | models/transform/fb_ads_xf.sql | Ken-Lo/facebook-ads | 201e99e2c4da72baa9f89f3983f53944b89069e7 | [
"Apache-2.0"
] | null | null | null | models/transform/fb_ads_xf.sql | Ken-Lo/facebook-ads | 201e99e2c4da72baa9f89f3983f53944b89069e7 | [
"Apache-2.0"
] | null | null | null | models/transform/fb_ads_xf.sql | Ken-Lo/facebook-ads | 201e99e2c4da72baa9f89f3983f53944b89069e7 | [
"Apache-2.0"
] | null | null | null | with ads_xf_ads as (
select * from {{ref('fb_ads')}}
), ads_xf_windowed as (
select
*,
count(*) over (partition by ad_id) as num_versions,
row_number() over (partition by ad_id order by updated_at) as version_number
from ads_xf_ads
)
select
*,
case
when version_number = 1 then crea... | 21.322581 | 80 | 0.686838 |
9323ca7090e1d5c8c7f87245f3741fc4c1399879 | 387 | swift | Swift | Extensions/Array/Array.swift | ar-juan/swift-extensions | 4add2e3dafab9f7512f3c2c17dca361611d9c344 | [
"MIT"
] | 1 | 2017-01-24T03:36:38.000Z | 2017-01-24T03:36:38.000Z | Extensions/Array/Array.swift | ar-juan/swift-extensions | 4add2e3dafab9f7512f3c2c17dca361611d9c344 | [
"MIT"
] | null | null | null | Extensions/Array/Array.swift | ar-juan/swift-extensions | 4add2e3dafab9f7512f3c2c17dca361611d9c344 | [
"MIT"
] | null | null | null | //
// File.swift
//
// Created by Arjan on 07/03/16.
//
import UIKit
extension Array where Element : ExpressibleByStringLiteral {
func stringWithLineBreaksFromArray() -> String {
var localSelf = self
var result = "\(localSelf.removeFirst())"
for item in self {
result... | 18.428571 | 60 | 0.555556 |
f5ea9f5e34f5f5fa1eb81d4dc302632e018aff98 | 794 | rs | Rust | src/filter_checksum.rs | vhdirk/gmime-rs | 1d02cf114bfcd4c4d9c09e457454d14b8dbe0293 | [
"MIT"
] | 6 | 2019-03-25T08:24:10.000Z | 2021-12-02T10:35:54.000Z | src/filter_checksum.rs | vhdirk/gmime-rs | 1d02cf114bfcd4c4d9c09e457454d14b8dbe0293 | [
"MIT"
] | null | null | null | src/filter_checksum.rs | vhdirk/gmime-rs | 1d02cf114bfcd4c4d9c09e457454d14b8dbe0293 | [
"MIT"
] | null | null | null | use crate::FilterChecksum;
use glib::object::Cast;
use glib::object::IsA;
use glib::translate::*;
use libc::size_t;
pub trait FilterChecksumExtManual: 'static {
#[doc(alias = "g_mime_filter_checksum_get_digest")]
#[doc(alias = "get_digest")]
fn digest(&self) -> Vec<u8>;
}
impl<O: IsA<FilterChecksum>> Filt... | 26.466667 | 71 | 0.588161 |
e548faa342f032065ceaf31f7fe0fd715fb4eaf9 | 185 | ts | TypeScript | src/_lib/getCleanMqsKeys.ts | ivanbtrujillo/reactponsive | 59ec3de35dc95115c8ded26e0588d158a773b165 | [
"MIT"
] | 10 | 2019-04-09T06:52:02.000Z | 2021-10-05T17:06:51.000Z | src/_lib/getCleanMqsKeys.ts | ivanbtrujillo/reactponsive | 59ec3de35dc95115c8ded26e0588d158a773b165 | [
"MIT"
] | null | null | null | src/_lib/getCleanMqsKeys.ts | ivanbtrujillo/reactponsive | 59ec3de35dc95115c8ded26e0588d158a773b165 | [
"MIT"
] | 2 | 2019-11-30T19:32:30.000Z | 2019-12-13T20:25:46.000Z | const isNotDefault = (key: string) => key !== 'default';
const getCleanMqsKeys = <T>(mqs: Record<string, T>) => Object.keys(mqs).filter(isNotDefault);
export default getCleanMqsKeys;
| 30.833333 | 93 | 0.713514 |
56a71de3975c5381cc72b7615a797b2a06735ed4 | 855 | ts | TypeScript | packages/trade/exchange/src/pods/account-balance/handlers/get-asset-amount.handler.ts | Nick-Goorwah/origin | 4945663039240fa7fa64357e787ae145671d7261 | [
"MIT"
] | 89 | 2019-06-07T12:00:46.000Z | 2022-03-31T14:10:47.000Z | packages/trade/exchange/src/pods/account-balance/handlers/get-asset-amount.handler.ts | Nick-Goorwah/origin | 4945663039240fa7fa64357e787ae145671d7261 | [
"MIT"
] | 329 | 2019-06-18T09:37:48.000Z | 2022-03-18T15:33:22.000Z | packages/trade/exchange/src/pods/account-balance/handlers/get-asset-amount.handler.ts | Nick-Goorwah/origin | 4945663039240fa7fa64357e787ae145671d7261 | [
"MIT"
] | 59 | 2019-06-04T19:24:10.000Z | 2022-03-12T22:41:21.000Z | import { Logger } from '@nestjs/common';
import { IQueryHandler, QueryHandler } from '@nestjs/cqrs';
import { AssetAmount } from '..';
import { AccountBalanceService } from '../account-balance.service';
import { GetAssetAmountQuery } from '../queries/get-asset-amount.query';
@QueryHandler(GetAssetAmountQuery)
export ... | 38.863636 | 87 | 0.740351 |
43ee9896ea9e480469e0cc612ddd089742a08ed0 | 731 | go | Go | Algorithms/0076.minimum-window-substring/minimum-window-substring.go | superchaoran/LeetCode-in-Go | 3095fc6087cf2b6f38ae967620b618edafe3be36 | [
"MIT"
] | 2 | 2019-05-31T02:53:10.000Z | 2020-03-09T03:21:57.000Z | Algorithms/0076.minimum-window-substring/minimum-window-substring.go | kyl2016/LeetCode-in-Go | b49f2b80f6a70b72efaf700af1a9e1ba1fb89dc4 | [
"MIT"
] | null | null | null | Algorithms/0076.minimum-window-substring/minimum-window-substring.go | kyl2016/LeetCode-in-Go | b49f2b80f6a70b72efaf700af1a9e1ba1fb89dc4 | [
"MIT"
] | 1 | 2020-09-02T09:51:23.000Z | 2020-09-02T09:51:23.000Z | package problem0076
func minWindow(s string, t string) string {
sLen, tLen := len(s), len(t)
need := [256]int{}
for i := range t {
need[t[i]]++
}
has := [256]int{}
min := sLen + 1
begin, end, winBegin, winEnd, count := 0, 0, 0, 0, 0
for ; end < sLen; end++ {
if need[s[end]] == 0 {
continue
}
if... | 14.918367 | 62 | 0.508892 |
f37ab0a8aed4c218137ba1c5d41266869de441c4 | 5,026 | swift | Swift | FuzzyLogicPlayground.playground/Sources/Robot.swift | loufranco/FuzzyLogicPlayground | 8a77bc1d80dc7b79bfbae4844b4702aa8f7bddd1 | [
"MIT"
] | 6 | 2017-03-15T23:36:24.000Z | 2019-03-18T14:13:46.000Z | FuzzyLogicPlayground.playground/Sources/Robot.swift | loufranco/FuzzyLogicPlayground | 8a77bc1d80dc7b79bfbae4844b4702aa8f7bddd1 | [
"MIT"
] | null | null | null | FuzzyLogicPlayground.playground/Sources/Robot.swift | loufranco/FuzzyLogicPlayground | 8a77bc1d80dc7b79bfbae4844b4702aa8f7bddd1 | [
"MIT"
] | null | null | null | import Foundation
import UIKit
import GameplayKit
import SpriteKit
import PlaygroundSupport
public enum Direction: Int {
case north = 0
case northwest = 1
case west = 2
case southwest = 3
case south = 4
case southeast = 5
case east = 6
case northeast = 7
public func left() -> Direc... | 28.235955 | 110 | 0.58078 |
6dfce535937649eb55ce571cc989305fae687619 | 1,100 | asm | Assembly | data/mapObjects/CeladonMart3F.asm | AmateurPanda92/pokemon-rby-dx | f7ba1cc50b22d93ed176571e074a52d73360da93 | [
"MIT"
] | 9 | 2020-07-12T19:44:21.000Z | 2022-03-03T23:32:40.000Z | data/mapObjects/CeladonMart3F.asm | JStar-debug2020/pokemon-rby-dx | c2fdd8145d96683addbd8d9075f946a68d1527a1 | [
"MIT"
] | 7 | 2020-07-16T10:48:52.000Z | 2021-01-28T18:32:02.000Z | data/mapObjects/CeladonMart3F.asm | JStar-debug2020/pokemon-rby-dx | c2fdd8145d96683addbd8d9075f946a68d1527a1 | [
"MIT"
] | 2 | 2021-03-28T18:33:43.000Z | 2021-05-06T13:12:09.000Z | CeladonMart3F_Object:
db $f ; border block
db 3 ; warps
warp 12, 1, 0, CELADON_MART_4F
warp 16, 1, 1, CELADON_MART_2F
warp 1, 1, 0, CELADON_MART_ELEVATOR
db 12 ; signs
sign 2, 4, 6 ; CeladonMart3Text6
sign 3, 4, 7 ; CeladonMart3Text7
sign 5, 4, 8 ; CeladonMart3Text8
sign 6, 4, 9 ; CeladonMart3Text9
sign 2,... | 32.352941 | 63 | 0.732727 |
0c8658fada897af49d102d04bc6ce4b60336ae77 | 12,408 | asm | Assembly | Library/Kernel/DBase/dbaseErrorCheck.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Library/Kernel/DBase/dbaseErrorCheck.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Library/Kernel/DBase/dbaseErrorCheck.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1989 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Database manager.
FILE: ErrorCheck.asm
AUTHOR: John Wedgwood, Jun 21, 1989
ROUTINES:
Name Description
---- -----------
DBCheckIsGroup Ch... | 26.177215 | 79 | 0.539813 |
3b9be3d7db43df4ec0ca69b3931a9225d579062d | 686 | h | C | PathTracer/Renderer.h | bbtarzan12/PathTracer | 3178d6d2bfe05d505a67fbca4465cec154e3152d | [
"MIT"
] | null | null | null | PathTracer/Renderer.h | bbtarzan12/PathTracer | 3178d6d2bfe05d505a67fbca4465cec154e3152d | [
"MIT"
] | null | null | null | PathTracer/Renderer.h | bbtarzan12/PathTracer | 3178d6d2bfe05d505a67fbca4465cec154e3152d | [
"MIT"
] | null | null | null | #pragma once
#include <memory>
class Camera;
struct RendererOption
{
int width, height;
};
class Renderer
{
public:
Renderer(const RendererOption& rendererOption);
virtual ~Renderer() = default;
virtual void Init() = 0;
virtual void SetCamera(std::unique_ptr<Camera> camera);
virtual void Start() = 0;
virtual ... | 24.5 | 78 | 0.744898 |
f35e4d06885e77ff5b88a19b81892be8cc17efae | 701 | swift | Swift | igen_templates/commands/Mock.swift | tuan188/MGiGen | 8aa505255b95173adbebe7d1e90f83269bd3343f | [
"MIT"
] | 15 | 2019-04-04T00:57:58.000Z | 2022-02-09T02:35:48.000Z | igen_templates/commands/Mock.swift | tuan188/MGiGen | 8aa505255b95173adbebe7d1e90f83269bd3343f | [
"MIT"
] | null | null | null | igen_templates/commands/Mock.swift | tuan188/MGiGen | 8aa505255b95173adbebe7d1e90f83269bd3343f | [
"MIT"
] | 8 | 2019-05-17T02:39:13.000Z | 2021-12-01T07:17:24.000Z | {% if is_protocol %}
final class {{ class_name }}Mock: {{ protocol_name }} {
{% endif %}
{% for f in functions %}
// MARK: - {{ f.overloaded_name }}
var {{ f.overloaded_name }}Called = false
{% if not f.return_void %}
{% if f.return_nil %}
var {{ f.overloaded_name }}ReturnValue: {{ f.return_ty... | 29.208333 | 86 | 0.546362 |
8bf94b5c6286220a29634cb95f38ff65dce26838 | 227 | swift | Swift | Sources/Substrate/RPC/system/Health.swift | sbgiri/Substrate | bc7f33a187d8e33af41c5b43fb148f2f84ae8b0f | [
"Apache-2.0"
] | 9 | 2020-10-15T07:24:38.000Z | 2022-03-18T14:43:43.000Z | Sources/Substrate/RPC/system/Health.swift | sbgiri/Substrate | bc7f33a187d8e33af41c5b43fb148f2f84ae8b0f | [
"Apache-2.0"
] | 6 | 2020-11-30T09:28:07.000Z | 2022-01-24T12:30:19.000Z | Sources/Substrate/RPC/system/Health.swift | sbgiri/Substrate | bc7f33a187d8e33af41c5b43fb148f2f84ae8b0f | [
"Apache-2.0"
] | 6 | 2020-11-03T03:13:40.000Z | 2022-01-05T08:47:44.000Z | //
// Health.swift
//
//
// Created by Yehor Popovych on 06.08.2021.
//
import Foundation
public struct Health: Codable {
public let peers: UInt64
public let isSyncing: Bool
public let shouldHavePeers: Bool
}
| 15.133333 | 44 | 0.678414 |
87220115a7c0b2f79aa6cf99fe31ea76d21496e1 | 1,263 | kt | Kotlin | app/src/main/java/atanana/com/todoapp/screens/TodosFragment.kt | atanana/todos | 99a229e0d58aacc14303f5f24b0ac7efd993c14f | [
"MIT"
] | null | null | null | app/src/main/java/atanana/com/todoapp/screens/TodosFragment.kt | atanana/todos | 99a229e0d58aacc14303f5f24b0ac7efd993c14f | [
"MIT"
] | null | null | null | app/src/main/java/atanana/com/todoapp/screens/TodosFragment.kt | atanana/todos | 99a229e0d58aacc14303f5f24b0ac7efd993c14f | [
"MIT"
] | null | null | null | package atanana.com.todoapp.screens
import android.content.Intent
import android.os.Bundle
import android.widget.Toast
import androidx.fragment.app.Fragment
import androidx.lifecycle.Observer
import androidx.navigation.fragment.findNavController
import atanana.com.todoapp.screens.NavigationAction.*
abstract class Tod... | 37.147059 | 93 | 0.711006 |
5433e0904fe44465501ddc7dcb7e70f9c42c91fe | 8,053 | go | Go | schema2go/lex.go | bytemine/ldap-crud | 981cdde0a352e32f870ab527a0149364666c674a | [
"MIT"
] | 8 | 2015-12-24T07:42:37.000Z | 2022-01-10T05:46:15.000Z | schema2go/lex.go | deepdivenow/ldap-crud | 981cdde0a352e32f870ab527a0149364666c674a | [
"MIT"
] | null | null | null | schema2go/lex.go | deepdivenow/ldap-crud | 981cdde0a352e32f870ab527a0149364666c674a | [
"MIT"
] | 3 | 2015-10-28T23:48:34.000Z | 2022-01-10T05:46:04.000Z | package main
import (
"log"
"strings"
)
// An lexed item
type item struct {
typ int
val string
}
// A state function returns the next state function where lexing should continue
type stateFn func(*lexer) stateFn
// Removes comments from the input.
func filterComments(i string) string {
out := make([]rune, 0)
... | 20.543367 | 99 | 0.653794 |
7b9c5635b313cad596df9fa6ad5f470e7327ec7b | 7,035 | rb | Ruby | spec/models/queries/named_enrollment_queries_spec.rb | dchbx/enroll | a9bcd0aa5b20ce6e83e79f49af2ec7864b67ed7b | [
"MIT",
"Unlicense"
] | 43 | 2015-03-08T18:35:47.000Z | 2020-10-07T18:23:49.000Z | spec/models/queries/named_enrollment_queries_spec.rb | dchbx/enroll | a9bcd0aa5b20ce6e83e79f49af2ec7864b67ed7b | [
"MIT",
"Unlicense"
] | 911 | 2015-03-18T13:31:04.000Z | 2021-02-25T20:43:22.000Z | spec/models/queries/named_enrollment_queries_spec.rb | dchbx/enroll | a9bcd0aa5b20ce6e83e79f49af2ec7864b67ed7b | [
"MIT",
"Unlicense"
] | 55 | 2015-03-06T14:20:53.000Z | 2020-10-27T20:43:04.000Z | require "rails_helper"
require "#{BenefitSponsors::Engine.root}/spec/shared_contexts/benefit_market.rb"
require "#{BenefitSponsors::Engine.root}/spec/shared_contexts/benefit_application.rb"
describe Queries::NamedEnrollmentQueries, "Enrollment Queries", dbclean: :after_each do
include_context "setup benefit market ... | 58.140496 | 245 | 0.716844 |
894a15da18730816942ef24390d0788e01ab7c38 | 9,848 | lua | Lua | mods/pulse_network/code/controller_api.lua | MineWitherMC/trinium2 | f9d7ce90dec80d5f29b9c4df23725093f1048d48 | [
"BSD-3-Clause"
] | 2 | 2018-04-30T06:41:20.000Z | 2018-04-30T06:56:31.000Z | mods/pulse_network/code/controller_api.lua | MineWitherMC/trinium2 | f9d7ce90dec80d5f29b9c4df23725093f1048d48 | [
"BSD-3-Clause"
] | 1 | 2018-05-31T17:37:29.000Z | 2018-06-01T08:34:47.000Z | mods/pulse_network/code/controller_api.lua | MineWitherMC/trinium2 | f9d7ce90dec80d5f29b9c4df23725093f1048d48 | [
"BSD-3-Clause"
] | 1 | 2018-05-16T18:15:56.000Z | 2018-05-16T18:15:56.000Z | local api = trinium.api
local S = pulse_network.S
function pulse_network.trigger_update(controller_pos)
local meta = minetest.get_meta(controller_pos)
local cd = minetest.deserialize(meta:get_string"connected_devices")
for i = 1, #cd do
local name1 = minetest.get_node(cd[i]).name
if minetest.registered_items[na... | 32.288525 | 107 | 0.717201 |
0b8b1ecbeb3c81d6b86bae93b7d7c89aca388a29 | 893 | py | Python | mapclientplugins/loadcsvstep/utils/processCSV.py | mahyar-osn/mapclientplugins.loadcsvstep | 2d483d4054f4c30247303e8d4eba706b70364158 | [
"Apache-2.0"
] | null | null | null | mapclientplugins/loadcsvstep/utils/processCSV.py | mahyar-osn/mapclientplugins.loadcsvstep | 2d483d4054f4c30247303e8d4eba706b70364158 | [
"Apache-2.0"
] | null | null | null | mapclientplugins/loadcsvstep/utils/processCSV.py | mahyar-osn/mapclientplugins.loadcsvstep | 2d483d4054f4c30247303e8d4eba706b70364158 | [
"Apache-2.0"
] | null | null | null | import pandas as pd
class ProcessCSV:
"""
A general class to read in and process a csv format file using pandas.
"""
def __init__(self, filename, delim=',', header=None, usecols=None, dtype=None, ignore=False, *args):
self._filename = filename
self._args = args
self._df = self.... | 28.806452 | 106 | 0.631579 |
0bb87ea0ff6b45779f29d7320c7d59a43f012863 | 2,086 | js | JavaScript | script.js | mood4556/Login- | edbfe436ba196c411bd3c1f0eedc6247006faa40 | [
"MIT"
] | null | null | null | script.js | mood4556/Login- | edbfe436ba196c411bd3c1f0eedc6247006faa40 | [
"MIT"
] | null | null | null | script.js | mood4556/Login- | edbfe436ba196c411bd3c1f0eedc6247006faa40 | [
"MIT"
] | null | null | null | const labels = document.querySelectorAll('.form-control label')
labels.forEach(label => {
label.innerHTML = label.innerText
.split('')
.map((letter, idx) => `<span style="transition-delay:${idx * 50}ms">${letter}</span>`)
.join('')
})
window.addEventListener('load', (event) => {
debugg... | 37.927273 | 139 | 0.506232 |
057112fdba79eb270e8e1064ef8d483fc54ee457 | 441 | rb | Ruby | test/models/post.rb | megafono/aggregated_root | e35d666b61662685f723fbd11d750475b2085386 | [
"MIT"
] | null | null | null | test/models/post.rb | megafono/aggregated_root | e35d666b61662685f723fbd11d750475b2085386 | [
"MIT"
] | null | null | null | test/models/post.rb | megafono/aggregated_root | e35d666b61662685f723fbd11d750475b2085386 | [
"MIT"
] | null | null | null | # typed: true
# frozen_string_literal: true
class Post < AggregatedRecord::Base
Created = Class.new(RubyEventStore::Event)
Updated = Class.new(RubyEventStore::Event)
VisibilityChanged = Class.new(RubyEventStore::Event)
created_with Post::Created
updated_with Post::Updated
## ATTRIBUTES
attr_reader :tit... | 22.05 | 54 | 0.752834 |
1933adcd1ba59c23eefcb684e611ef4eb843f488 | 3,988 | swift | Swift | FBusiness/Classes/Common/HouseKeeping/View/HouseKeepingContainer.swift | ApterKing/FreshApp | 5f11b996aeb66488913dc695aa63be07c2ed1369 | [
"MIT"
] | 1 | 2020-03-17T12:57:42.000Z | 2020-03-17T12:57:42.000Z | FBusiness/Classes/Common/HouseKeeping/View/HouseKeepingContainer.swift | ApterKing/FreshApp | 5f11b996aeb66488913dc695aa63be07c2ed1369 | [
"MIT"
] | null | null | null | FBusiness/Classes/Common/HouseKeeping/View/HouseKeepingContainer.swift | ApterKing/FreshApp | 5f11b996aeb66488913dc695aa63be07c2ed1369 | [
"MIT"
] | null | null | null | //
// HouseKeepingContainer.swift
// FBusiness
//
//
import UIKit
import SwiftX
public class HouseKeepingContainer: BaseViewController {
private var houseStatus: [HouseKeepingModel.Status] = [
.unpaid, .paid, .recived, .finished, .canceled
]
private var segmentioView: BaseSegmentio!
pri... | 34.982456 | 212 | 0.631896 |
41c02bc83f1e36dafd0683a232a5f3c920f4685f | 1,658 | h | C | private/shell/ext/cscui/dll/fmtetc.h | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | 11 | 2017-09-02T11:27:08.000Z | 2022-01-02T15:25:24.000Z | private/shell/ext/cscui/dll/fmtetc.h | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | null | null | null | private/shell/ext/cscui/dll/fmtetc.h | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | 14 | 2019-01-16T01:01:23.000Z | 2022-02-20T15:54:27.000Z | //+-------------------------------------------------------------------------
//
// Microsoft Windows
//
// Copyright (C) Microsoft Corporation, 1997 - 1999
//
// File: fmtetc.h
//
//--------------------------------------------------------------------------
#ifndef _INC_CSCUI_FMTETC_H
#define _INC_C... | 27.633333 | 77 | 0.513269 |
c8a221e4cc7c3a8e7074f5073fd07532e0d8f5d9 | 18,733 | sql | SQL | bancodados/coletor.sql | EdgardOliveira/CMSColetor | 2efd140f82622000c9d8668a1b5a843f722844ab | [
"MIT"
] | 1 | 2021-05-10T16:44:14.000Z | 2021-05-10T16:44:14.000Z | bancodados/coletor.sql | EdgardOliveira/CMSColetor | 2efd140f82622000c9d8668a1b5a843f722844ab | [
"MIT"
] | null | null | null | bancodados/coletor.sql | EdgardOliveira/CMSColetor | 2efd140f82622000c9d8668a1b5a843f722844ab | [
"MIT"
] | null | null | null | -- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Nov 24, 2020 at 03:00 AM
-- Server version: 10.4.14-MariaDB
-- PHP Version: 7.4.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIE... | 34.562731 | 359 | 0.673838 |
21d750746e68886f439c99d178199b139127a37f | 1,663 | kt | Kotlin | QubeCode/src/main/java/ro/cnmv/qube/systems/CubesDrop.kt | GabrielMajeri/ftc-qube-new | 1249d1decea5eac57356b9443baceb35e172205c | [
"Apache-2.0"
] | 3 | 2018-04-10T18:54:18.000Z | 2019-03-06T15:46:40.000Z | QubeCode/src/main/java/ro/cnmv/qube/systems/CubesDrop.kt | QubeRomania/ftc-2017-2018-new | 1249d1decea5eac57356b9443baceb35e172205c | [
"Apache-2.0"
] | null | null | null | QubeCode/src/main/java/ro/cnmv/qube/systems/CubesDrop.kt | QubeRomania/ftc-2017-2018-new | 1249d1decea5eac57356b9443baceb35e172205c | [
"Apache-2.0"
] | null | null | null | package ro.cnmv.qube.systems
import com.qualcomm.robotcore.hardware.HardwareMap
import com.qualcomm.robotcore.hardware.Servo
import ro.cnmv.qube.Gamepad
class CubesDrop(hwMap: HardwareMap) {
private val leftDropServo = hwMap.servo["left_drop_servo"]
private val rightDropServo = hwMap.servo["right_drop_servo"... | 28.186441 | 71 | 0.63199 |
0cdee741020f9cadb35d114ce192b7140ac463d7 | 8,711 | py | Python | rulm/models/neural_net/encoder_only.py | IlyaGusev/rulm | 4e78a495eba6cd6ea1fea839463c8145ed7051f2 | [
"Apache-2.0"
] | null | null | null | rulm/models/neural_net/encoder_only.py | IlyaGusev/rulm | 4e78a495eba6cd6ea1fea839463c8145ed7051f2 | [
"Apache-2.0"
] | null | null | null | rulm/models/neural_net/encoder_only.py | IlyaGusev/rulm | 4e78a495eba6cd6ea1fea839463c8145ed7051f2 | [
"Apache-2.0"
] | null | null | null | from typing import Dict
import numpy as np
import torch
from torch.nn.functional import linear, log_softmax, embedding
from torch.nn import Dropout, LogSoftmax, NLLLoss
from allennlp.common import Params
from allennlp.models.model import Model
from allennlp.data.vocabulary import Vocabulary, DEFAULT_PADDING_TOKEN
from... | 44.218274 | 105 | 0.630926 |
6a8a4fadb00f852c0f4d37ad723652a625dfa4e9 | 143 | sql | SQL | TSQL/1_Names.sql | matt40k/Names | 34d163a5c99aa0581ad5d4965d51bf53dd9d78b4 | [
"MIT"
] | 1 | 2021-04-07T07:35:34.000Z | 2021-04-07T07:35:34.000Z | TSQL/1_Names.sql | matt40k/Names | 34d163a5c99aa0581ad5d4965d51bf53dd9d78b4 | [
"MIT"
] | null | null | null | TSQL/1_Names.sql | matt40k/Names | 34d163a5c99aa0581ad5d4965d51bf53dd9d78b4 | [
"MIT"
] | 2 | 2020-10-11T16:29:18.000Z | 2021-09-05T07:17:07.000Z | if ((select count(1) from sys.schemas where name = 'Names') = 0)
BEGIN
EXEC sp_executesql N'CREATE SCHEMA [Names] AUTHORIZATION [dbo]'
END
GO
| 23.833333 | 64 | 0.727273 |
50b7449ae78bd8770daae9245e5a5b5d40a40b74 | 5,243 | go | Go | internal/handlers/handlers.go | fenogentov/FerretDB | 0693990f1ff37e223c89da44c5d6081cb9c464d3 | [
"Apache-2.0"
] | 1,978 | 2021-12-01T19:59:30.000Z | 2022-03-31T16:09:30.000Z | internal/handlers/handlers.go | fenogentov/FerretDB | 0693990f1ff37e223c89da44c5d6081cb9c464d3 | [
"Apache-2.0"
] | 284 | 2021-12-01T18:21:14.000Z | 2022-03-31T18:44:10.000Z | internal/handlers/handlers.go | fenogentov/FerretDB | 0693990f1ff37e223c89da44c5d6081cb9c464d3 | [
"Apache-2.0"
] | 89 | 2021-12-02T09:58:11.000Z | 2022-03-29T01:30:03.000Z | // Copyright 2021 FerretDB Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | 41.611111 | 100 | 0.764066 |
22dc6e8b2a778650702878863b94e1fb14e82341 | 1,620 | h | C | Sources/Internal/FileSystem/Private/KeyedArchiveReflection.h | stinvi/dava.engine | 2b396ca49cdf10cdc98ad8a9ffcf7768a05e285e | [
"BSD-3-Clause"
] | 26 | 2018-09-03T08:48:22.000Z | 2022-02-14T05:14:50.000Z | Sources/Internal/FileSystem/Private/KeyedArchiveReflection.h | ANHELL-blitz/dava.engine | ed83624326f000866e29166c7f4cccfed1bb41d4 | [
"BSD-3-Clause"
] | null | null | null | Sources/Internal/FileSystem/Private/KeyedArchiveReflection.h | ANHELL-blitz/dava.engine | ed83624326f000866e29166c7f4cccfed1bb41d4 | [
"BSD-3-Clause"
] | 45 | 2018-05-11T06:47:17.000Z | 2022-02-03T11:30:55.000Z | #pragma once
#include "FileSystem/VariantType.h"
#include "Reflection/Private/Wrappers/StructureWrapperDefault.h"
#include "Reflection/Reflection.h"
namespace DAVA
{
VariantType PrepareValueForKeyedArchiveImpl(const Any& value, VariantType::eVariantType resultType);
class KeyedArchiveElementValueWrapper : public Val... | 41.538462 | 122 | 0.796296 |
088d5111f3905a2ec2f30c83fd40d6589c7f3b22 | 2,061 | go | Go | main/sudoku_test.go | Jonnytan555/Sudoku_Solver | 142202f6f92810f94d3a2d95f3c71c1d2d4d2bc8 | [
"MIT"
] | 1 | 2021-12-19T14:39:25.000Z | 2021-12-19T14:39:25.000Z | main/sudoku_test.go | Jonnytan555/Sudoku_Solver | 142202f6f92810f94d3a2d95f3c71c1d2d4d2bc8 | [
"MIT"
] | null | null | null | main/sudoku_test.go | Jonnytan555/Sudoku_Solver | 142202f6f92810f94d3a2d95f3c71c1d2d4d2bc8 | [
"MIT"
] | 1 | 2021-12-22T13:34:51.000Z | 2021-12-22T13:34:51.000Z | package main
import (
"bufio"
"log"
"os"
"os/exec"
"testing"
)
const programName = "main.go"
const fileName = "test-cases.txt"
type data struct {
user_arg string
expected string
}
var testCases = []data{}
func TestAsciiArt(t *testing.T) {
// func to get the test cases from the file
getTestCases()
for _,... | 21.925532 | 178 | 0.608443 |
85af8f8cb4b4700b1b2addb5a60ffa686383b11c | 964 | h | C | CallTraceForWeChat/CallTraceForWeChat/WeChat_Headers/WAAppDetailInfoManager.h | ceekay1991/CallTraceForWeChat | 5767cb6f781821b6bf9facc8c87e58e15fa88541 | [
"MIT"
] | 30 | 2020-03-22T12:30:21.000Z | 2022-02-09T08:49:13.000Z | CallTraceForWeChat/CallTraceForWeChat/WeChat_Headers/WAAppDetailInfoManager.h | ceekay1991/CallTraceForWeChat | 5767cb6f781821b6bf9facc8c87e58e15fa88541 | [
"MIT"
] | null | null | null | CallTraceForWeChat/CallTraceForWeChat/WeChat_Headers/WAAppDetailInfoManager.h | ceekay1991/CallTraceForWeChat | 5767cb6f781821b6bf9facc8c87e58e15fa88541 | [
"MIT"
] | 8 | 2020-03-22T12:30:23.000Z | 2020-09-22T04:01:47.000Z | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import "MMService.h"
#import "MMServiceProtocol-Protocol.h"
@class NSString;
@interface WAAppDetailInfoManager : MMService <MMServi... | 29.212121 | 133 | 0.764523 |
a51af0e2902f86cbf262007fc116b621ce733d50 | 721 | swift | Swift | VeryUsefulToolstoRemember/VeryUsefulToolstoRemember/Sources/UI/Views/CustomLoadingTableViewCell.swift | anacamargos/vuttr | 0da823923d81b0ebcd0baf9c1af542bae877f004 | [
"MIT"
] | 1 | 2021-07-28T13:38:41.000Z | 2021-07-28T13:38:41.000Z | VeryUsefulToolstoRemember/VeryUsefulToolstoRemember/Sources/UI/Views/CustomLoadingTableViewCell.swift | anacamargos/vuttr | 0da823923d81b0ebcd0baf9c1af542bae877f004 | [
"MIT"
] | null | null | null | VeryUsefulToolstoRemember/VeryUsefulToolstoRemember/Sources/UI/Views/CustomLoadingTableViewCell.swift | anacamargos/vuttr | 0da823923d81b0ebcd0baf9c1af542bae877f004 | [
"MIT"
] | null | null | null | //
// CustomLoadingTableViewCell.swift
// VeryUsefulToolstoRemember
//
// Created by Ana Leticia Camargos on 28/12/20.
// Copyright © 2020 Ana Letícia Camargos. All rights reserved.
//
import UIKit
final class CustomLoadingTableViewCell: CodedTableViewCell {
// MARK: - View Components
private let loadin... | 20.6 | 68 | 0.675451 |
85e60ecbd108af64c475081fcb288148636a40fe | 175 | lua | Lua | plugin/src/FormatScript/Vendor/Llama/Set/has.lua | howmanysmall/StyluaPlugin | a5f10432a82f68f2d746723007638e6240f759e9 | [
"MIT"
] | null | null | null | plugin/src/FormatScript/Vendor/Llama/Set/has.lua | howmanysmall/StyluaPlugin | a5f10432a82f68f2d746723007638e6240f759e9 | [
"MIT"
] | null | null | null | plugin/src/FormatScript/Vendor/Llama/Set/has.lua | howmanysmall/StyluaPlugin | a5f10432a82f68f2d746723007638e6240f759e9 | [
"MIT"
] | null | null | null | local Typer = require(script.Parent.Parent.Parent.Typer)
local function has(set, key)
return set[key] == true
end
return Typer.AssignSignature(Typer.Array, Typer.Any, has)
| 21.875 | 57 | 0.765714 |
e509e50eb9a0e34b352ddaa0a7b99b8fde3575e6 | 1,152 | ts | TypeScript | sites/x6-sites/examples/edge/tool/demo/segments.ts | vanton/X6 | 2dd62535e58d717837741c9d6a5df502afaeb859 | [
"MIT"
] | 3,182 | 2020-06-15T04:04:23.000Z | 2022-03-31T21:52:40.000Z | sites/x6-sites/examples/edge/tool/demo/segments.ts | vanton/X6 | 2dd62535e58d717837741c9d6a5df502afaeb859 | [
"MIT"
] | 1,766 | 2020-06-16T08:11:53.000Z | 2022-03-31T09:58:42.000Z | sites/x6-sites/examples/edge/tool/demo/segments.ts | vanton/X6 | 2dd62535e58d717837741c9d6a5df502afaeb859 | [
"MIT"
] | 867 | 2020-06-17T12:04:47.000Z | 2022-03-31T07:52:16.000Z | import { Graph } from '@antv/x6'
const graph = new Graph({
container: document.getElementById('container'),
grid: true,
onToolItemCreated({ tool }) {
const handle = tool as any
const options = handle.options
if (options && options.index % 2 === 1) {
tool.setAttrs({ fill: 'red' })
}
},
})
... | 17.19403 | 50 | 0.467882 |
0e728d3e61e15d171243539f2ac0fdda5e2f1e8e | 4,710 | html | HTML | lists.whatwg.org/pipermail/whatwg-whatwg.org/2007-April/011088.html | zcorpan/whatwg.org | 3374e69f013e5939abc5f3fffaae50bb6eaf0bd3 | [
"CC-BY-4.0"
] | 1 | 2022-02-14T23:44:51.000Z | 2022-02-14T23:44:51.000Z | lists.whatwg.org/pipermail/whatwg-whatwg.org/2007-April/011088.html | Seanpm2001-Google/whatwg.org | 33ad837c0dc53b68865f4a35ccdc1c68dc07fce6 | [
"BSD-3-Clause"
] | 1 | 2021-01-31T11:51:12.000Z | 2021-01-31T11:51:12.000Z | lists.whatwg.org/pipermail/whatwg-whatwg.org/2007-April/011088.html | Seanpm2001-Google/whatwg.org | 33ad837c0dc53b68865f4a35ccdc1c68dc07fce6 | [
"BSD-3-Clause"
] | null | null | null | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [whatwg] modal and modeless windows
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:whatwg%40lists.whatwg.org?Subject=Re%3A%20%5Bwhatwg%5D%20modal%20and%20modeless%20windows&In-Reply-To=%3Cbde87dd2070427053... | 44.018692 | 220 | 0.672187 |
24d425da989789a856a92b408492b0f2ded9e09c | 1,061 | go | Go | listener.go | daniel-gil/throttler | b957ed87b4762320330eb74bf0f8642ab77ca93e | [
"MIT"
] | 1 | 2018-03-06T10:57:53.000Z | 2018-03-06T10:57:53.000Z | listener.go | centraldereservas/throttler | edac3a522fb8c179afb9904fb80ebde0c3e6632a | [
"MIT"
] | null | null | null | listener.go | centraldereservas/throttler | edac3a522fb8c179afb9904fb80ebde0c3e6632a | [
"MIT"
] | null | null | null | package throttler
import (
"fmt"
"time"
)
type listener interface {
listen()
}
type requestHandler struct {
rate time.Duration
reqChan chan *Request
verbose bool
fulfiller fulfiller
}
func newListener(r time.Duration, ch chan *Request, v bool, f fulfiller) (listener, error) {
if ch == nil {
retur... | 21.653061 | 92 | 0.673893 |
0a70f25ea87fc014351a14004ef0ba830a4ce6d8 | 455 | sql | SQL | database/ddl/060_Component.sql | ceberhard/salut-app | aa53f8cccaf266a357baac8e820e96a1912adc89 | [
"MIT"
] | 1 | 2021-09-07T13:00:48.000Z | 2021-09-07T13:00:48.000Z | database/ddl/060_Component.sql | ceberhard/salut-app | aa53f8cccaf266a357baac8e820e96a1912adc89 | [
"MIT"
] | null | null | null | database/ddl/060_Component.sql | ceberhard/salut-app | aa53f8cccaf266a357baac8e820e96a1912adc89 | [
"MIT"
] | null | null | null | USE SalutApp;
CREATE TABLE IF NOT EXISTS Component
(
Id BIGINT AUTO_INCREMENT PRIMARY KEY,
GameSystemId BIGINT NOT NULL,
ComponentTypeId BIGINT NOT NULL,
ParentComponentId BIGINT NULL,
Name VARCHAR(256) NOT NULL,
Description VARCHAR(1028) NULL,
InstanceLimit INT NULL,
FOREIGN KEY (GameSystemId) REFERENCES Ga... | 32.5 | 60 | 0.797802 |
21f97f12e9558375a1cacfd90a02183e4ff5d213 | 1,375 | sql | SQL | tutorial-iot-stream-predict/splicemachine/src/main/resources/ddl/create_train_and_test_labels.sql | splicemachine/splice-community-sample-code | db82e57ef9478827007fd5e267c3d488d0b10d33 | [
"Apache-2.0"
] | 12 | 2016-08-09T17:40:00.000Z | 2019-09-17T02:36:00.000Z | tutorial-iot-stream-predict/splicemachine/src/main/resources/ddl/create_train_and_test_labels.sql | splicemachine/splice-community-sample-code | db82e57ef9478827007fd5e267c3d488d0b10d33 | [
"Apache-2.0"
] | 5 | 2016-10-20T20:08:11.000Z | 2021-01-20T23:01:59.000Z | tutorial-iot-stream-predict/splicemachine/src/main/resources/ddl/create_train_and_test_labels.sql | splicemachine/splice-community-sample-code | db82e57ef9478827007fd5e267c3d488d0b10d33 | [
"Apache-2.0"
] | 11 | 2016-10-13T16:08:51.000Z | 2021-07-23T15:55:59.000Z | set schema IOT;
drop table if exists TRAIN_LABEL_TEMP;
create table TRAIN_LABEL_TEMP
(
engine_type int,
unit int,
time bigint,
prediction int
);
insert into IOT.TRAIN_LABEL_TEMP
select a.engine_type, a.unit, a.time, case when ((b.maxtime - a.time) > 30) then 0 else 1 end from IOT.TRAIN_DATA a inner join (sel... | 35.25641 | 281 | 0.745455 |
5c3d9188f45a738aa47dbacc4cd494aacfd0f314 | 762 | h | C | src/HAL/Include/nanoHAL_Power.h | TIPConsulting/nf-interpreter | d5407872f4705d6177e1ee5a2e966bd02fd476e4 | [
"MIT"
] | null | null | null | src/HAL/Include/nanoHAL_Power.h | TIPConsulting/nf-interpreter | d5407872f4705d6177e1ee5a2e966bd02fd476e4 | [
"MIT"
] | 1 | 2021-02-22T07:54:30.000Z | 2021-02-22T07:54:30.000Z | src/HAL/Include/nanoHAL_Power.h | TIPConsulting/nf-interpreter | d5407872f4705d6177e1ee5a2e966bd02fd476e4 | [
"MIT"
] | null | null | null | //
// Copyright (c) .NET Foundation and Contributors
// See LICENSE file in the project root for full license information.
//
#ifndef _NANOHAL_POWER_H_
#define _NANOHAL_POWER_H_ 1
#include <nanoCLR_Headers.h>
typedef enum PowerLevel
{
PowerLevel__Active,
PowerLevel__SelectiveOff,
PowerLevel... | 20.594595 | 70 | 0.713911 |
b8b60d51f065e1858392915f79f89653a9a67076 | 180 | rs | Rust | src/arch/aarch64/boot.rs | thomasebsmith/rhubarb-os | 5892c947a6984e2f448446b4284af31d46344a71 | [
"MIT"
] | 1 | 2021-11-18T18:14:05.000Z | 2021-11-18T18:14:05.000Z | src/arch/aarch64/boot.rs | thomasebsmith/rhubarb-os | 5892c947a6984e2f448446b4284af31d46344a71 | [
"MIT"
] | null | null | null | src/arch/aarch64/boot.rs | thomasebsmith/rhubarb-os | 5892c947a6984e2f448446b4284af31d46344a71 | [
"MIT"
] | null | null | null | use core::arch::global_asm;
global_asm!(include_str!("boot.s"));
#[no_mangle]
pub fn _init_os() {
crate::init()
}
#[no_mangle]
pub fn _start_os() -> ! {
crate::main()
}
| 12.857143 | 36 | 0.611111 |
f10cba2a03a931c952fed00206dceb0be99125a7 | 589 | swift | Swift | Eventika/Resources/GlobalData.swift | zarkopopovski/eventika | 318ed493715d3cf86e62bceef7ecc76ae9c7725c | [
"MIT"
] | 1 | 2020-02-01T20:31:46.000Z | 2020-02-01T20:31:46.000Z | Eventika/Resources/GlobalData.swift | zarkopopovski/eventika | 318ed493715d3cf86e62bceef7ecc76ae9c7725c | [
"MIT"
] | null | null | null | Eventika/Resources/GlobalData.swift | zarkopopovski/eventika | 318ed493715d3cf86e62bceef7ecc76ae9c7725c | [
"MIT"
] | null | null | null | //
// GlobalData.swift
// App
//
// Created by Zarko Popovski on 11/5/18.
// Copyright © 2018 App. All rights reserved.
//
import UIKit
class GlobalData: NSObject {
static let sharedInstance = GlobalData()
var memberEntity:MemberEntity?
let API_TOKEN = ""
let BASE_URL = ""
... | 16.828571 | 46 | 0.585739 |
995d54b246b1349aed0e578b4c761e759c23a75b | 1,465 | swift | Swift | Sources/Data+Extensions.swift | kerimovscreations/SRP-Nimbus-Swift | e32d46fe00f2e93f61c35ae1b3d339f36349b854 | [
"MIT"
] | 4 | 2021-02-25T06:25:52.000Z | 2021-12-09T13:43:44.000Z | Sources/Data+Extensions.swift | kerimovscreations/SRP-Nimbus-Swift | e32d46fe00f2e93f61c35ae1b3d339f36349b854 | [
"MIT"
] | null | null | null | Sources/Data+Extensions.swift | kerimovscreations/SRP-Nimbus-Swift | e32d46fe00f2e93f61c35ae1b3d339f36349b854 | [
"MIT"
] | 2 | 2021-10-08T15:46:08.000Z | 2021-12-10T04:01:04.000Z | import Foundation
func ^ (lhs: Data, rhs: Data) -> Data? {
guard lhs.count == rhs.count else { return nil }
var result = Data(count: lhs.count)
for index in lhs.indices {
result[index] = lhs[index] ^ rhs[index]
}
return result
}
// Removed in Xcode 8 beta 3
func + (lhs: Data, rhs: Data) ->... | 27.12963 | 105 | 0.587713 |
16402d9abd094ad5ed9accd0a81f7e2dde89553e | 337 | h | C | HongKZH_IOS/Classes/Old/viewes/publish/HKPositionManageTableViewCell.h | wuruijie/LXZAPP | 15b8739bb4bee3f1665f0c841cce79bde0fe920e | [
"Apache-2.0"
] | 2 | 2019-05-09T18:32:14.000Z | 2020-04-23T08:38:58.000Z | HongKZH_IOS/Classes/Old/viewes/publish/HKPositionManageTableViewCell.h | wuruijie/LXZAPP | 15b8739bb4bee3f1665f0c841cce79bde0fe920e | [
"Apache-2.0"
] | null | null | null | HongKZH_IOS/Classes/Old/viewes/publish/HKPositionManageTableViewCell.h | wuruijie/LXZAPP | 15b8739bb4bee3f1665f0c841cce79bde0fe920e | [
"Apache-2.0"
] | 2 | 2019-05-27T15:47:28.000Z | 2019-08-23T06:43:01.000Z | //
// HKPositionManageTableViewCell.h
// HongKZH_IOS
//
// Created by hkzh on 2018/7/18.
// Copyright © 2018年 hkzh. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "HK_RecruitPositionData.h"
@interface HKPositionManageTableViewCell : UITableViewCell
@property (nonatomic, retain) HK_RecruitPositionData *po... | 21.0625 | 66 | 0.759644 |
978d178f853d8ce0ebac3f7013106d87194b8083 | 1,474 | swift | Swift | OctoPod/Settings UI/DialogsViewController.swift | ArtCC/OctoPod | 85d78f17aa0dfa3fe7c342c37970e0978eee9de2 | [
"Apache-2.0"
] | null | null | null | OctoPod/Settings UI/DialogsViewController.swift | ArtCC/OctoPod | 85d78f17aa0dfa3fe7c342c37970e0978eee9de2 | [
"Apache-2.0"
] | null | null | null | OctoPod/Settings UI/DialogsViewController.swift | ArtCC/OctoPod | 85d78f17aa0dfa3fe7c342c37970e0978eee9de2 | [
"Apache-2.0"
] | null | null | null | import UIKit
class DialogsViewController: ThemedStaticUITableViewController {
let appConfiguration: AppConfiguration = { return (UIApplication.shared.delegate as! AppDelegate).appConfiguration }()
@IBOutlet weak var onConnectLabel: UILabel!
@IBOutlet weak var onDisconnectLabel: UILabel!
@IBO... | 35.095238 | 122 | 0.705563 |
d25ecb05fb4bb63307f482500899753a13623a77 | 376 | asm | Assembly | libsrc/_DEVELOPMENT/math/float/math48/c/sdcc_iy/cm48_sdcciy_fdim_callee.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/math/float/math48/c/sdcc_iy/cm48_sdcciy_fdim_callee.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/math/float/math48/c/sdcc_iy/cm48_sdcciy_fdim_callee.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
; float fdim(float x, float y) __z88dk_callee
SECTION code_clib
SECTION code_fp_math48
PUBLIC cm48_sdcciy_fdim_callee, l0_cm48_sdcciy_fdim_callee
EXTERN am48_fdim, cm48_sdcciyp_dcallee2, cm48_sdcciyp_m482d
cm48_sdcciy_fdim_callee:
call cm48_sdcciyp_dcallee2
; AC'= y
; AC = x
l0_cm48_sdcciy_fdim_call... | 15.666667 | 59 | 0.789894 |
0256f2cc6a0a4a5a155a25d9e3438fd3842b6d5e | 576 | sql | SQL | src/Data/MyVote.Data.Database/Tables/MVReportedPollStateLog.sql | Magenic/MyVoteGC | b8d15b46db9d4aedbbf12ea027165083e409038b | [
"Apache-2.0"
] | null | null | null | src/Data/MyVote.Data.Database/Tables/MVReportedPollStateLog.sql | Magenic/MyVoteGC | b8d15b46db9d4aedbbf12ea027165083e409038b | [
"Apache-2.0"
] | null | null | null | src/Data/MyVote.Data.Database/Tables/MVReportedPollStateLog.sql | Magenic/MyVoteGC | b8d15b46db9d4aedbbf12ea027165083e409038b | [
"Apache-2.0"
] | null | null | null | CREATE TABLE [dbo].[MVReportedPollStateLog]
(
ReportedPollStateLogID int identity(1,1)
constraint pk_MVReportedPollStateLog primary key clustered
,ReportedPollID int not null
constraint fk_MVReportedPoll_MVReportedPollStateLog references dbo.MVReportedPoll(ReportedPollID)
,PollID int not null
constraint fk_M... | 41.142857 | 99 | 0.850694 |
1668c474bde95dd326f6fc1e4ff942cf79336a7a | 16,727 | c | C | components/platform/hosal/bl702_hal/bl_adc.c | jsaiko/framework-bouffalo-sdk | dff9054b3ebfa9008ce747c5e347829b89247faa | [
"Apache-2.0"
] | 1 | 2022-02-21T04:38:23.000Z | 2022-02-21T04:38:23.000Z | components/platform/hosal/bl702_hal/bl_adc.c | Community-BL-IOT/framework-bouffalo-sdk | dff9054b3ebfa9008ce747c5e347829b89247faa | [
"Apache-2.0"
] | null | null | null | components/platform/hosal/bl702_hal/bl_adc.c | Community-BL-IOT/framework-bouffalo-sdk | dff9054b3ebfa9008ce747c5e347829b89247faa | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2020 Bouffalolab.
*
* This file is part of
* *** Bouffalolab Software Dev Kit ***
* (see www.bouffalolab.com).
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
* 1. Redistributions ... | 33.454 | 183 | 0.58283 |
ddd74a46bc91181a6c493853949e91ce17dc767c | 4,681 | go | Go | plugins/inputs/logfile/tail/tail_test.go | taohungyang/amazon-cloudwatch-agent | f8067542b8220ac085b68f6ac40ca78049b60221 | [
"MIT"
] | null | null | null | plugins/inputs/logfile/tail/tail_test.go | taohungyang/amazon-cloudwatch-agent | f8067542b8220ac085b68f6ac40ca78049b60221 | [
"MIT"
] | null | null | null | plugins/inputs/logfile/tail/tail_test.go | taohungyang/amazon-cloudwatch-agent | f8067542b8220ac085b68f6ac40ca78049b60221 | [
"MIT"
] | null | null | null | package tail
import (
"fmt"
"io/ioutil"
"log"
"os"
"strings"
"testing"
"time"
"github.com/stretchr/testify/assert"
)
const linesWrittenToFile int = 10
type testLogger struct {
debugs, infos, warns, errors []string
}
func (l *testLogger) Errorf(format string, args ...interface{}) {
line := fmt.Sprintf(for... | 24.253886 | 132 | 0.668233 |
277bb21c1173e0967328e931d5de34ce4efcab9f | 985 | swift | Swift | VCFrame/WXWaterFlowView/WaterFlowCell.swift | mxw2/UIViewControllerFrameDemo | 436e3d86fe80af864aa2c3f6aecaf1fdea5dd7a6 | [
"MIT"
] | null | null | null | VCFrame/WXWaterFlowView/WaterFlowCell.swift | mxw2/UIViewControllerFrameDemo | 436e3d86fe80af864aa2c3f6aecaf1fdea5dd7a6 | [
"MIT"
] | null | null | null | VCFrame/WXWaterFlowView/WaterFlowCell.swift | mxw2/UIViewControllerFrameDemo | 436e3d86fe80af864aa2c3f6aecaf1fdea5dd7a6 | [
"MIT"
] | null | null | null | //
// WaterFlowCell.swift
// WaterFlowView
//
// Created by 王鑫 on 17/4/23.
// Copyright © 2017年 王鑫. All rights reserved.
//
import UIKit
class WaterFlowCell: UIView {
var identifier:String?
private lazy var imageView:UIImageView = UIImageView()
private lazy var lable:UILabel = UILabel()
var s... | 23.452381 | 89 | 0.610152 |
fa51ca65c89057b3e45052aced8c8ea79f2d9298 | 2,498 | swift | Swift | CovidTracker/CovidTracker/Utils/APICaller.swift | onurbasdas/covid-tracker | e4d1a5e269532301154d0ece25d6a1837abd2541 | [
"MIT"
] | null | null | null | CovidTracker/CovidTracker/Utils/APICaller.swift | onurbasdas/covid-tracker | e4d1a5e269532301154d0ece25d6a1837abd2541 | [
"MIT"
] | null | null | null | CovidTracker/CovidTracker/Utils/APICaller.swift | onurbasdas/covid-tracker | e4d1a5e269532301154d0ece25d6a1837abd2541 | [
"MIT"
] | null | null | null | //
// APICaller.swift
// CovidTracker
//
// Created by Onur Başdaş on 2.02.2022.
//
import Foundation
class APICaller {
static let shared = APICaller()
private init() {}
private struct Constants {
static let allStatesUrl = URL(string: "https://api.covidtracking.com/v2/states.json")
... | 29.046512 | 110 | 0.490793 |
2a5f4e13fb9cc25842bfb2cbd339dbe9fb50804b | 138 | kt | Kotlin | 11-spring-lab/src/test/kotlin/course/kotlin/spring/config/TestAppConfig.kt | iproduct/course-kotlin | 89884f8c29fffe6c6f0384a49ae8768c8e7ab509 | [
"Apache-2.0"
] | 3 | 2020-07-07T15:45:54.000Z | 2021-12-20T12:16:24.000Z | 11-spring-lab/src/test/kotlin/course/kotlin/spring/config/TestAppConfig.kt | iproduct/course-kotlin | 89884f8c29fffe6c6f0384a49ae8768c8e7ab509 | [
"Apache-2.0"
] | null | null | null | 11-spring-lab/src/test/kotlin/course/kotlin/spring/config/TestAppConfig.kt | iproduct/course-kotlin | 89884f8c29fffe6c6f0384a49ae8768c8e7ab509 | [
"Apache-2.0"
] | 1 | 2021-10-07T06:15:07.000Z | 2021-10-07T06:15:07.000Z | package course.kotlin.spring.config
import org.springframework.context.annotation.Configuration
@Configuration
class TestAppConfig {
}
| 15.333333 | 59 | 0.84058 |
7018cbcf6e0f30d29e6e1626989b95c8ad198a8e | 1,437 | go | Go | usecase/account/user_mock.go | joez-tkpd/go-sample-arch | 482c23a2cbf951881363435813a5c166331b3eea | [
"MIT"
] | null | null | null | usecase/account/user_mock.go | joez-tkpd/go-sample-arch | 482c23a2cbf951881363435813a5c166331b3eea | [
"MIT"
] | null | null | null | usecase/account/user_mock.go | joez-tkpd/go-sample-arch | 482c23a2cbf951881363435813a5c166331b3eea | [
"MIT"
] | null | null | null | // Code generated by MockGen. DO NOT EDIT.
// Source: ./user.go
// Package account is a generated GoMock package.
package account
import (
gomock "github.com/golang/mock/gomock"
entity "github.com/joez-tkpd/go-sample-arch/entity"
reflect "reflect"
)
// MockUserService is a mock of UserService interface
type MockU... | 29.326531 | 126 | 0.771051 |
5c8ba3c6157645091964556ce746b3f1dc3a18b6 | 210 | sql | SQL | backend/migrations/2021-01-23-110157_create_guildsettings/up.sql | dominikks/discord-soundboard-bot | 900c93f66d55434ac5e0e95fc5db224a6cf78401 | [
"MIT"
] | 4 | 2021-01-31T18:45:53.000Z | 2021-11-22T09:53:40.000Z | backend/migrations/2021-01-23-110157_create_guildsettings/up.sql | dominikks/discord-soundboard-bot | 900c93f66d55434ac5e0e95fc5db224a6cf78401 | [
"MIT"
] | null | null | null | backend/migrations/2021-01-23-110157_create_guildsettings/up.sql | dominikks/discord-soundboard-bot | 900c93f66d55434ac5e0e95fc5db224a6cf78401 | [
"MIT"
] | null | null | null | CREATE TABLE guildsettings (
id NUMERIC PRIMARY KEY NOT NULL,
user_role_id NUMERIC,
moderator_role_id NUMERIC,
target_max_volume REAL NOT NULL DEFAULT 0,
target_mean_volume REAL NOT NULL DEFAULT -13
) | 30 | 46 | 0.795238 |
7f3959e0f38563373a740545a15628a3b3f4001c | 224 | go | Go | cmd/sqlscan/sqlscan_test.go | mkasner/sqlscan | b2156b7a69ed07c721ea66cb3afbd2c76267f9b4 | [
"MIT"
] | null | null | null | cmd/sqlscan/sqlscan_test.go | mkasner/sqlscan | b2156b7a69ed07c721ea66cb3afbd2c76267f9b4 | [
"MIT"
] | null | null | null | cmd/sqlscan/sqlscan_test.go | mkasner/sqlscan | b2156b7a69ed07c721ea66cb3afbd2c76267f9b4 | [
"MIT"
] | null | null | null | package main
import (
"fmt"
"testing"
)
func TestExtractFields(t *testing.T) {
var g Generator
// names := []string{"sqlscan_test.go"}
g.parsePackageDir("./")
g.generate("Transaction")
fmt.Println(g.buf.String())
}
| 14.933333 | 40 | 0.674107 |
760244e04ba7f896b2dec43637257e775035bc17 | 150 | sql | SQL | src/test/resources/sql/select/4f19f5f3.sql | Shuttl-Tech/antlr_psql | fcf83192300abe723f3fd3709aff5b0c8118ad12 | [
"MIT"
] | 66 | 2018-06-15T11:34:03.000Z | 2022-03-16T09:24:49.000Z | src/test/resources/sql/select/4f19f5f3.sql | Shuttl-Tech/antlr_psql | fcf83192300abe723f3fd3709aff5b0c8118ad12 | [
"MIT"
] | 13 | 2019-03-19T11:56:28.000Z | 2020-08-05T04:20:50.000Z | src/test/resources/sql/select/4f19f5f3.sql | Shuttl-Tech/antlr_psql | fcf83192300abe723f3fd3709aff5b0c8118ad12 | [
"MIT"
] | 28 | 2019-01-05T19:59:02.000Z | 2022-03-24T11:55:50.000Z | -- file:create_type.sql ln:135 expect:true
SELECT format_type(atttypid,atttypmod) FROM pg_attribute
WHERE attrelid = 'mytab'::regclass AND attnum > 0
| 37.5 | 56 | 0.793333 |
7094a76f9132110880f658782da5e10f09e11a92 | 16,796 | c | C | src/main-md-trace.c | RRZE-HPC/gather-bench | 2f654cb043359197be07e0fa362324dab8899a33 | [
"MIT"
] | 1 | 2021-06-09T09:19:46.000Z | 2021-06-09T09:19:46.000Z | src/main-md-trace.c | RRZE-HPC/gather-bench | 2f654cb043359197be07e0fa362324dab8899a33 | [
"MIT"
] | null | null | null | src/main-md-trace.c | RRZE-HPC/gather-bench | 2f654cb043359197be07e0fa362324dab8899a33 | [
"MIT"
] | null | null | null | /*
* =======================================================================================
*
* Author: Jan Eitzinger (je), jan.eitzinger@fau.de
* Copyright (c) 2021 RRZE, University Erlangen-Nuremberg
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of th... | 38 | 131 | 0.444272 |
c663f5e6dfbf3f3b3a8edd89346cb54beb179cb6 | 67 | sql | SQL | migrations/2021-01-21-233737_civ_perks/up.sql | jakmeier/paddlers-browser-game | 6c7afbb1ac13467ed94c418a5515fcf98224149e | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 52 | 2019-10-05T08:05:39.000Z | 2022-03-07T02:18:53.000Z | migrations/2021-01-21-233737_civ_perks/up.sql | jakmeier/paddlers-browser-game | 6c7afbb1ac13467ed94c418a5515fcf98224149e | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 44 | 2020-01-19T11:57:52.000Z | 2022-02-27T10:30:02.000Z | migrations/2021-01-21-233737_civ_perks/up.sql | jakmeier/paddlers-browser-game | 6c7afbb1ac13467ed94c418a5515fcf98224149e | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 4 | 2020-04-22T13:37:46.000Z | 2020-10-20T03:42:59.000Z | ALTER TABLE players
ADD COLUMN civ_perks BIGINT NOT NULL DEFAULT 0; | 33.5 | 47 | 0.835821 |
a1a236ee5c12e99dd7c41ecd63440f9ca4f31f12 | 9,865 | go | Go | fonts/hkfonts8/digitalquill/digitalquill-9.go | spearson78/tinyamifont | 452b1c82d8bd8d2a035d073b24c1b21d075106f0 | [
"MIT"
] | null | null | null | fonts/hkfonts8/digitalquill/digitalquill-9.go | spearson78/tinyamifont | 452b1c82d8bd8d2a035d073b24c1b21d075106f0 | [
"MIT"
] | null | null | null | fonts/hkfonts8/digitalquill/digitalquill-9.go | spearson78/tinyamifont | 452b1c82d8bd8d2a035d073b24c1b21d075106f0 | [
"MIT"
] | null | null | null | package digitalquill
import "github.com/spearson78/tinyamifont"
const Regular9pt = tinyamifont.FontData("\x00\x00\x03\xf3\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x97\x00\x00\x03\xe9\x00\x00\x02\x97"+
"p\xffNu\x00\x00\x00\x00\x00\x00\x00\x00\f\x00\x00\x00\x00\x1a\x0f\x80\x00\x01\x... | 109.611111 | 172 | 0.696807 |
85ef1d2ca973b9b00352176f9ca56cc39ac5b3fb | 7,340 | rs | Rust | language/stdlib/natives/src/db.rs | learnforpractice/move4eos | 2b0dc5b8e5ff8742a26fb43db69e75377726c0fa | [
"Apache-2.0"
] | null | null | null | language/stdlib/natives/src/db.rs | learnforpractice/move4eos | 2b0dc5b8e5ff8742a26fb43db69e75377726c0fa | [
"Apache-2.0"
] | null | null | null | language/stdlib/natives/src/db.rs | learnforpractice/move4eos | 2b0dc5b8e5ff8742a26fb43db69e75377726c0fa | [
"Apache-2.0"
] | null | null | null | // Copyright (c) The Libra Core Contributors
// SPDX-License-Identifier: Apache-2.0
use crate::dispatch::{CostedReturnType, NativeReturnType, Result, StackAccessor};
use bitcoin_hashes::{hash160, sha256, Hash};
use std::borrow::Borrow;
use tiny_keccak::Keccak;
use types::byte_array::ByteArray;
extern crate libc;
use... | 36.517413 | 103 | 0.659946 |
e7854503f7103735ac5d4e7fca0cb4076f7684c5 | 1,485 | js | JavaScript | src/actions/pokedex/pokedex_actions.js | durgesh0001/pokedex | 0af46474720319e12755ed3f037c436196800988 | [
"MIT"
] | null | null | null | src/actions/pokedex/pokedex_actions.js | durgesh0001/pokedex | 0af46474720319e12755ed3f037c436196800988 | [
"MIT"
] | null | null | null | src/actions/pokedex/pokedex_actions.js | durgesh0001/pokedex | 0af46474720319e12755ed3f037c436196800988 | [
"MIT"
] | null | null | null | import {FETCH_START,FETCH_END,FETCH_GET_SUCCESS,FETCH_GET_FAIL,FETCH_GETBYID_SUCCESS} from '../types';
import axios from 'axios';
import { ROOT_URL } from '../../config/config';
/*
@method: fetchPokidexData
@desc: Get fetch pokedex data
*/
export function fetchPokidexData(callback) {
return (dispatch) => {
... | 23.571429 | 102 | 0.563636 |
b72a0209509e14ec641bbdfee990e243d8aba75d | 434 | asm | Assembly | oeis/246/A246697.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/246/A246697.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/246/A246697.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A246697: Row sums of the triangular array A246696.
; Submitted by Jamie Morken(s3)
; 1,5,16,34,67,111,178,260,373,505,676,870,1111,1379,1702,2056,2473,2925,3448,4010,4651,5335,6106,6924,7837,8801,9868,10990,12223,13515,14926,16400,18001,19669,21472,23346,25363,27455,29698,32020,34501,37065,39796
mov $2,$0
mov $3,$0
... | 22.842105 | 213 | 0.700461 |
9bb3386d3dc0e1e1c582f3b1a036d0ae0cbb62a6 | 1,873 | js | JavaScript | repos/tap/components/results/results.js | simpleviewinc/keg-herkin | b44877cd8a84e8c52189af5c6b44fe4913dbafad | [
"MIT"
] | 1 | 2021-04-02T17:51:53.000Z | 2021-04-02T17:51:53.000Z | repos/tap/components/results/results.js | simpleviewinc/keg-herkin | b44877cd8a84e8c52189af5c6b44fe4913dbafad | [
"MIT"
] | 7 | 2021-02-03T00:45:09.000Z | 2021-10-13T22:08:44.000Z | repos/tap/components/results/results.js | simpleviewinc/keg-herkin | b44877cd8a84e8c52189af5c6b44fe4913dbafad | [
"MIT"
] | null | null | null | import React, { useMemo } from 'react'
import { noOp } from '@keg-hub/jsutils'
import { getBaseApiUrl } from 'SVUtils/api'
import { Iframe } from 'SVComponents/iframe/iframe'
import { IframeHeader } from 'SVComponents/iframe/iframeHeader'
import { ExternalLink } from 'SVAssets/icons'
import { Surface } from 'SVComponen... | 30.704918 | 82 | 0.642285 |
86d703299c522156d9715fbf5aa3b7665fa9fd09 | 1,434 | rs | Rust | store/src/api/http/v1/health_test.rs | LeeMaster/datafuse | c0b6fead0c785c666b8fb48df9ffa94500c05b48 | [
"Apache-2.0"
] | 1 | 2021-09-17T05:18:09.000Z | 2021-09-17T05:18:09.000Z | store/src/api/http/v1/health_test.rs | CNLHC/databend | fad0df2843c148c9c74793dadd38a9e5db274a36 | [
"Apache-2.0"
] | 22 | 2021-12-17T17:27:04.000Z | 2022-03-31T17:31:39.000Z | store/src/api/http/v1/health_test.rs | CNLHC/databend | fad0df2843c148c9c74793dadd38a9e5db274a36 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2021 Datafuse Labs
*
* 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... | 29.265306 | 80 | 0.634589 |
3e23a7a46f265ef06391084dbaa486e8f5ba7609 | 1,931 | c | C | tests/cluecode/data/holders/holder_basic-copy_c.c | s4-2/scancode-toolkit | 8931b42e2630b94d0cabc834dfb3c16f01f82321 | [
"Apache-2.0",
"CC-BY-4.0"
] | 1,511 | 2015-07-01T15:29:03.000Z | 2022-03-30T13:40:05.000Z | tests/cluecode/data/holders/holder_basic-copy_c.c | s4-2/scancode-toolkit | 8931b42e2630b94d0cabc834dfb3c16f01f82321 | [
"Apache-2.0",
"CC-BY-4.0"
] | 2,695 | 2015-07-01T16:01:35.000Z | 2022-03-31T19:17:44.000Z | tests/cluecode/data/holders/holder_basic-copy_c.c | s4-2/scancode-toolkit | 8931b42e2630b94d0cabc834dfb3c16f01f82321 | [
"Apache-2.0",
"CC-BY-4.0"
] | 540 | 2015-07-01T15:08:19.000Z | 2022-03-31T12:13:11.000Z | /* minilzo.c -- mini subset of the LZO real-time data compression library
This file is part of the LZO real-time data compression library.
Copyright (C) 2008 Markus Franz Xaver Johannes Oberhumer
Copyright (C) 2007 Markus Franz Xaver Johannes Oberhumer
Copyright (C) 2006 Markus Franz Xaver Johannes Oberhu... | 35.109091 | 142 | 0.722424 |
7351767d4645920aca42a305bc3220d6fafaa67c | 1,821 | rs | Rust | oxide-auth/src/primitives/mod.rs | gabriel-araujjo/oxide-auth | 1e8d352a52d849d814cce740de4868cf86e490ef | [
"Apache-2.0",
"MIT"
] | 388 | 2017-11-29T16:56:42.000Z | 2022-03-31T09:29:20.000Z | oxide-auth/src/primitives/mod.rs | gabriel-araujjo/oxide-auth | 1e8d352a52d849d814cce740de4868cf86e490ef | [
"Apache-2.0",
"MIT"
] | 99 | 2017-11-30T16:11:09.000Z | 2022-03-07T02:02:13.000Z | oxide-auth/src/primitives/mod.rs | gabriel-araujjo/oxide-auth | 1e8d352a52d849d814cce740de4868cf86e490ef | [
"Apache-2.0",
"MIT"
] | 68 | 2017-12-15T17:56:14.000Z | 2022-02-27T14:14:00.000Z | //! A collection of primites useful for more than one authorization method.
//!
//! A primitive is the smallest independent unit of policy used in OAuth related endpoints. For
//! example, an `authorizer` generates and verifies Authorization Codes. There only is, as you
//! might have noticed, only the OAuth2 code gra... | 32.517857 | 95 | 0.684789 |
d5e8025a9433bcf891cc83057a3135e2415b2403 | 472 | h | C | QQZone/Classes/View/WKDockTabBar.h | hoowang/QQZone | fa6752e6908bb6d138339b5be3969de13f90880e | [
"MIT"
] | 2 | 2015-09-28T12:25:21.000Z | 2019-05-20T07:25:11.000Z | QQZone/Classes/View/WKDockTabBar.h | hoowang/QQZone | fa6752e6908bb6d138339b5be3969de13f90880e | [
"MIT"
] | null | null | null | QQZone/Classes/View/WKDockTabBar.h | hoowang/QQZone | fa6752e6908bb6d138339b5be3969de13f90880e | [
"MIT"
] | null | null | null | //
// WKDockTabBar.h
// QQZone
//
// Created by 王虎 on 15-8-9.
// Copyright (c) 2015年 hoowang. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol WKDockTabBarDelegate <NSObject>
@optional
- (void)selectedItemChanged:(NSUInteger)itemIndex;
@end
@interface WKDockTabBar : UIView
+ (instancetype)dockTabBar;
... | 18.88 | 71 | 0.743644 |
5c8b861caa7ae683dbbc577f95f4e41dff1f8534 | 10,848 | h | C | include/ac_math/ac_normalize.h | dgburnette/ac_math | 518629af779ae26167462055ea4a3c30738ba5f9 | [
"Apache-2.0"
] | 2 | 2018-03-22T08:46:54.000Z | 2018-04-03T06:09:00.000Z | include/ac_math/ac_normalize.h | dgburnette/ac_math | 518629af779ae26167462055ea4a3c30738ba5f9 | [
"Apache-2.0"
] | null | null | null | include/ac_math/ac_normalize.h | dgburnette/ac_math | 518629af779ae26167462055ea4a3c30738ba5f9 | [
"Apache-2.0"
] | null | null | null | /**************************************************************************
* *
* Algorithmic C (tm) Math Library *
* *
* Software Ver... | 41.40458 | 111 | 0.544893 |
0b74eec0867561a4a898bf75fbaaff914a919fe3 | 697 | asm | Assembly | ffight/lcs/boss/52.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | a4a0c86c200241494b3f1834cd0aef8dc02f7683 | [
"Apache-2.0"
] | 6 | 2020-10-14T15:29:10.000Z | 2022-02-12T18:58:54.000Z | ffight/lcs/boss/52.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | a4a0c86c200241494b3f1834cd0aef8dc02f7683 | [
"Apache-2.0"
] | null | null | null | ffight/lcs/boss/52.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | a4a0c86c200241494b3f1834cd0aef8dc02f7683 | [
"Apache-2.0"
] | 1 | 2020-12-17T08:59:10.000Z | 2020-12-17T08:59:10.000Z | copyright zengfr site:http://github.com/zengfr/romhack
03DE14 move.w #$5, ($52,A6) [boss+56]
03DE1A move.w #$1aa, ($50,A6) [boss+52]
03DE2A neg.w ($52,A6) [boss+50]
03DE2E bra $3f2f6 [boss+52]
03E176 move.w #$14, ($52,A6) [boss+50]
03E17C tst.b ($2e,A6) [boss+52]
03E186 neg.w ($52,A6) [boss+50]
03E... | 33.190476 | 54 | 0.609756 |
353fe39d44bb872171fdfabb72069b6b9e253a30 | 530 | kt | Kotlin | httpapp/src/main/java/com/lyl/httpapp/NetUtil.kt | laiyuling424/MVPTest | 8c8d10aa48546f0a66f0a466990e3b2f886b011c | [
"MIT"
] | 3 | 2021-02-26T00:22:45.000Z | 2021-04-27T15:06:02.000Z | httpapp/src/main/java/com/lyl/httpapp/NetUtil.kt | laiyuling424/MVPTest | 8c8d10aa48546f0a66f0a466990e3b2f886b011c | [
"MIT"
] | null | null | null | httpapp/src/main/java/com/lyl/httpapp/NetUtil.kt | laiyuling424/MVPTest | 8c8d10aa48546f0a66f0a466990e3b2f886b011c | [
"MIT"
] | 1 | 2021-04-30T08:31:06.000Z | 2021-04-30T08:31:06.000Z | package com.lyl.httpapp
/**
* Create By: lyl
* Date: 2019-07-18 11:20
*/
class NetUtil {
companion object {
public fun <T, M> sendJsonRequest(url: String, requestData: T, response: Class<M>, listener: IJsonDataListener<M>) {
var httpRequest = JsonHttpRequest()
var callBackListen... | 31.176471 | 124 | 0.656604 |
0b7531882bc3693d78e18104d816fb7003ff5f35 | 74,222 | py | Python | pyseq/main.py | nygctech/PySeq2500 | 6969f178a5f5837ce2f41887d59624bf4cc39433 | [
"MIT"
] | 9 | 2019-09-25T16:41:42.000Z | 2021-11-15T08:49:48.000Z | pyseq/main.py | nygctech/PySeq2500 | 6969f178a5f5837ce2f41887d59624bf4cc39433 | [
"MIT"
] | 8 | 2020-07-18T09:50:33.000Z | 2022-03-12T01:01:21.000Z | pyseq/main.py | nygctech/PySeq2500 | 6969f178a5f5837ce2f41887d59624bf4cc39433 | [
"MIT"
] | 5 | 2020-08-02T09:51:12.000Z | 2022-01-04T15:54:32.000Z | """
TODO:
"""
import time
import logging
import os
from os.path import join
import sys
import configparser
import threading
import argparse
from . import methods
from . import args
from . import focus
# Global int to track # of errors d... | 38.437079 | 159 | 0.52832 |
d132badbe2d769c0ccfe5aaf08b5b9357b18f364 | 3,216 | sql | SQL | load.sql | tgomudur/Stackexchange-XML-Dump-Importer | cc2676c58315c3024588fd623904817fcf114a31 | [
"MIT"
] | null | null | null | load.sql | tgomudur/Stackexchange-XML-Dump-Importer | cc2676c58315c3024588fd623904817fcf114a31 | [
"MIT"
] | null | null | null | load.sql | tgomudur/Stackexchange-XML-Dump-Importer | cc2676c58315c3024588fd623904817fcf114a31 | [
"MIT"
] | null | null | null | create database {} DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
use {};
create table badges (
Id INT NOT NULL PRIMARY KEY,
UserId INT,
Name VARCHAR(50),
CreationDate DATETIME
);
CREATE TABLE comments (
Id INT NOT NULL PRIMARY KEY,
PostId INT NOT NULL,
Score INT NOT NULL DEFAULT 0,
... | 23.474453 | 78 | 0.726057 |
2ebc623e16a4df8bfe48e36b7894a6e6a6dfc940 | 2,563 | swift | Swift | iPhoneMoCap/SocketController.swift | jiyaohui/iPhoneMoCapiOS | 6667babcdf5bdbcd3732aeffa885d37b2333958b | [
"MIT"
] | 384 | 2017-11-23T00:50:46.000Z | 2022-03-30T02:52:25.000Z | iPhoneMoCap/SocketController.swift | jiyaohui/iPhoneMoCapiOS | 6667babcdf5bdbcd3732aeffa885d37b2333958b | [
"MIT"
] | 7 | 2017-12-04T15:02:42.000Z | 2019-09-24T14:14:30.000Z | iPhoneMoCap/SocketController.swift | jiyaohui/iPhoneMoCapiOS | 6667babcdf5bdbcd3732aeffa885d37b2333958b | [
"MIT"
] | 70 | 2017-11-22T06:23:49.000Z | 2022-02-09T06:44:45.000Z | import UIKit
import CocoaAsyncSocket
import NotificationBannerSwift
protocol SocketControllerViewDelegate: class {
func updatedState(state: SocketControllerState)
}
enum SocketControllerState {
case waitingForHost
case readyToReceive
case error(message: String)
}
class SocketController: NSObject, Str... | 28.164835 | 136 | 0.625829 |
0406311018f77dd3c20075f19d4215e4f5381510 | 416 | lua | Lua | ffi.lua | CenIII/loadcaffe | 357f7e5200a1774cfdd84156a6ae0686fd15007f | [
"BSD-2-Clause"
] | 547 | 2015-01-18T12:56:24.000Z | 2022-03-18T05:59:29.000Z | ffi.lua | CenIII/loadcaffe | 357f7e5200a1774cfdd84156a6ae0686fd15007f | [
"BSD-2-Clause"
] | 104 | 2015-02-15T12:51:20.000Z | 2021-12-04T10:25:54.000Z | ffi.lua | CenIII/loadcaffe | 357f7e5200a1774cfdd84156a6ae0686fd15007f | [
"BSD-2-Clause"
] | 215 | 2015-01-20T23:40:16.000Z | 2022-03-31T11:19:51.000Z | local ffi = require 'ffi'
ffi.cdef[[
void loadBinary(void** handle, const char* prototxt_name, const char* binary_name);
void destroyBinary(void** handle);
void convertProtoToLua(void** handle, const char* lua_name, const char* cuda_package);
void loadModule(void** handle, const char* name, THFloatTensor* weight, THFl... | 37.818182 | 93 | 0.764423 |
1820e97abf3450563805db3a0ccda4dc6f8f7683 | 258 | kt | Kotlin | network/src/main/kotlin/world/gregs/voidps/network/instruct/InteractInterfaceNPC.kt | jarryd229/void | 890a1a7467309503737325ee3d25e6fb0cd2e197 | [
"BSD-3-Clause"
] | 14 | 2021-01-21T19:02:27.000Z | 2021-10-15T02:50:43.000Z | network/src/main/kotlin/world/gregs/voidps/network/instruct/InteractInterfaceNPC.kt | jarryd229/void | 890a1a7467309503737325ee3d25e6fb0cd2e197 | [
"BSD-3-Clause"
] | 163 | 2021-01-30T00:34:02.000Z | 2022-03-26T20:43:04.000Z | network/src/main/kotlin/world/gregs/voidps/network/instruct/InteractInterfaceNPC.kt | jarryd229/void | 890a1a7467309503737325ee3d25e6fb0cd2e197 | [
"BSD-3-Clause"
] | 8 | 2021-03-27T20:38:06.000Z | 2022-03-15T17:24:36.000Z | package world.gregs.voidps.network.instruct
import world.gregs.voidps.network.Instruction
data class InteractInterfaceNPC(
val npcIndex: Int,
val interfaceId: Int,
val componentId: Int,
val itemId: Int,
val itemSlot: Int
) : Instruction | 23.454545 | 45 | 0.744186 |
717658a9e08a6d9c0d6f232707ac1fc06231b474 | 2,345 | ts | TypeScript | src/pull_requests.ts | raynigon/release-documentation | 8f6e28b380656bc777bd79e5d0ff5d536a7e78e9 | [
"Apache-2.0"
] | null | null | null | src/pull_requests.ts | raynigon/release-documentation | 8f6e28b380656bc777bd79e5d0ff5d536a7e78e9 | [
"Apache-2.0"
] | 1 | 2021-05-24T19:58:00.000Z | 2021-05-28T09:43:22.000Z | src/pull_requests.ts | raynigon/release-documentation | 8f6e28b380656bc777bd79e5d0ff5d536a7e78e9 | [
"Apache-2.0"
] | 1 | 2021-06-17T16:00:48.000Z | 2021-06-17T16:00:48.000Z | import * as github from '@actions/github';
import * as core from '@actions/core';
interface PullRequest {
id: string
number: number
title: string,
state: string,
author: string,
labels: Array<string>
}
interface TemplateContext {
pull_requests: {
"_all": Array<PullRequest>,
"_no_label": Array<Pu... | 32.123288 | 122 | 0.589339 |
1b772700da24d5412b53e30ab3d20f4597a0055a | 6,741 | swift | Swift | NewDriver/Views/RidesList.swift | ThePrincelle/NewDriver | d7059eae9abd0cc550d73efd85ade10588ed062c | [
"MIT"
] | null | null | null | NewDriver/Views/RidesList.swift | ThePrincelle/NewDriver | d7059eae9abd0cc550d73efd85ade10588ed062c | [
"MIT"
] | null | null | null | NewDriver/Views/RidesList.swift | ThePrincelle/NewDriver | d7059eae9abd0cc550d73efd85ade10588ed062c | [
"MIT"
] | null | null | null | //
// RidesList.swift
// NewDriver
//
// Created by Maxime Princelle on 15/02/2022.
//
import SwiftUI
struct RidesList: View {
var rides: [Ride]
//@EnvironmentObject var vm: RideStorage
@State private var showDialog = false
@State private var showLive = false
var body: some View {
... | 58.617391 | 304 | 0.517282 |
419fd48dc5f468ce7e18fc928355c83bcd3f931f | 580 | h | C | SKFDownLoadListern/Classes/SKFDownLoadLister/SKFDownLoadBaseTVC.h | wubianxiaoxian/SKFDownLoadListern | 4766f3486fd8f9420b37a19c701da9adf255ff00 | [
"MIT"
] | null | null | null | SKFDownLoadListern/Classes/SKFDownLoadLister/SKFDownLoadBaseTVC.h | wubianxiaoxian/SKFDownLoadListern | 4766f3486fd8f9420b37a19c701da9adf255ff00 | [
"MIT"
] | null | null | null | SKFDownLoadListern/Classes/SKFDownLoadLister/SKFDownLoadBaseTVC.h | wubianxiaoxian/SKFDownLoadListern | 4766f3486fd8f9420b37a19c701da9adf255ff00 | [
"MIT"
] | null | null | null | //
// SKFDownLoadBaseTVC.h
// SKFDownLoadListern
//
// Created by 孙凯峰 on 2017/4/1.
// Copyright © 2017年 孙凯峰. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef UITableViewCell *(^GetCellBlock)(UITableView *tableView, NSIndexPath *indexPath);
typedef CGFloat (^GetHeightBlock)(id model);
typedef void (^BindBloc... | 36.25 | 154 | 0.775862 |
44d7f42ff1fe89db6a397f5c1d18c9278c9f8f0b | 5,579 | swift | Swift | MeshToolsTests/TransformTests.swift | CeranPaul/MeshTools | e889a3645e8fd395d947e4b89e7b9e963783d533 | [
"Apache-2.0"
] | null | null | null | MeshToolsTests/TransformTests.swift | CeranPaul/MeshTools | e889a3645e8fd395d947e4b89e7b9e963783d533 | [
"Apache-2.0"
] | null | null | null | MeshToolsTests/TransformTests.swift | CeranPaul/MeshTools | e889a3645e8fd395d947e4b89e7b9e963783d533 | [
"Apache-2.0"
] | null | null | null | //
// TransformPlusTests.swift
// SketchCurves
//
// Created by Paul on 2/14/16.
// Copyright © 2018 Ceran Digital Media. All rights reserved. See LICENSE.md
//
import XCTest
class TransformPlusTests: XCTestCase {
func testIdentity() {
let noChange = Transform()
XCTA... | 26.440758 | 91 | 0.523571 |
c42b5f2be977b3f4a666521e53302122bd6f0578 | 5,426 | c | C | usr/device_managers/xeon_phi/service.c | lambdaxymox/barrelfish | 06a9f54721a8d96874a8939d8973178a562c342f | [
"MIT"
] | 111 | 2015-02-03T02:57:27.000Z | 2022-03-01T23:57:09.000Z | usr/device_managers/xeon_phi/service.c | lambdaxymox/barrelfish | 06a9f54721a8d96874a8939d8973178a562c342f | [
"MIT"
] | 12 | 2016-03-22T14:44:32.000Z | 2020-03-18T13:30:29.000Z | usr/device_managers/xeon_phi/service.c | lambdaxymox/barrelfish | 06a9f54721a8d96874a8939d8973178a562c342f | [
"MIT"
] | 55 | 2015-02-03T05:28:12.000Z | 2022-03-31T05:00:03.000Z | /*
* Copyright (c) 2014 ETH Zurich.
* All rights reserved.
*
* This file is distributed under the terms in the attached LICENSE file.
* If you do not find this file, copies can be found by writing to:
* ETH Zurich D-INFK, Universitaetsstrasse 6, CH-8092 Zurich. Attn: Systems Group.
*/
#include <barrelfish/barre... | 25.838095 | 82 | 0.610026 |
114217af66707200b7a25af88bdaf40cfba7f438 | 57 | sql | SQL | src/main/resources/db/migration/general/V6_0__alter_prison.sql | nickmcmahon01/cmd-api | b29b5a7161ce28c925f3b08dceb524c4ee2e96df | [
"MIT"
] | null | null | null | src/main/resources/db/migration/general/V6_0__alter_prison.sql | nickmcmahon01/cmd-api | b29b5a7161ce28c925f3b08dceb524c4ee2e96df | [
"MIT"
] | 8 | 2020-08-06T13:29:28.000Z | 2022-01-28T14:19:41.000Z | src/main/resources/db/migration/general/V6_0__alter_prison.sql | nickmcmahon01/cmd-api | b29b5a7161ce28c925f3b08dceb524c4ee2e96df | [
"MIT"
] | 2 | 2020-11-06T16:47:10.000Z | 2021-04-11T06:28:15.000Z | ALTER TABLE prison
RENAME COLUMN prison TO prison_name; | 28.5 | 38 | 0.824561 |
87cc0616dc224380fe72f6b72a580110e552ccb8 | 1,118 | sql | SQL | Training/20762/Allfiles/Demofiles/Mod18/Workload/load_script1.sql | nmbazima/SQL-Scripts | 09a1c50a25db80a4d6f021ac1b7ed26263fe9523 | [
"Apache-2.0"
] | 1 | 2019-10-08T17:47:07.000Z | 2019-10-08T17:47:07.000Z | Training/20762/Allfiles/Demofiles/Mod18/Workload/load_script1.sql | nmbazima/SQL-Scripts | 09a1c50a25db80a4d6f021ac1b7ed26263fe9523 | [
"Apache-2.0"
] | null | null | null | Training/20762/Allfiles/Demofiles/Mod18/Workload/load_script1.sql | nmbazima/SQL-Scripts | 09a1c50a25db80a4d6f021ac1b7ed26263fe9523 | [
"Apache-2.0"
] | null | null | null | -- load generation script 1
-- loops for up to 60 minutes, or until the ##stopload shared temp table is created
DROP TABLE IF EXISTS ##stopload;
USE AdventureWorks;
GO
DECLARE @sql nvarchar(MAX), @delay varchar(20), @split int = @@SPID % 5
SELECT @sql = CASE WHEN @split = 0 THEN N'EXEC dbo.uspGetOrderTrackingBySale... | 27.95 | 89 | 0.686941 |
d5bf194e6a3faf800faa44f2bbb9fe85ba8fc5ad | 4,411 | h | C | src/game/client/iinput.h | vxsd/refraction | bb6def1feb6c2e5c94b2604ad55607ed380a2d7e | [
"MIT"
] | 14 | 2021-02-16T14:13:50.000Z | 2022-03-17T18:29:19.000Z | src/game/client/iinput.h | undbsd/refraction | bb6def1feb6c2e5c94b2604ad55607ed380a2d7e | [
"MIT"
] | 7 | 2021-08-06T18:40:37.000Z | 2022-03-09T18:05:08.000Z | src/game/client/iinput.h | undbsd/refraction | bb6def1feb6c2e5c94b2604ad55607ed380a2d7e | [
"MIT"
] | 2 | 2021-08-05T16:03:03.000Z | 2021-11-26T00:11:27.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//
//=============================================================================//
#if !defined( IINPUT_H )
#define IINPUT_H
#ifdef _WIN32
#pragma once
#endif
class bf_write;
class bf_read;
class CUserCmd... | 37.067227 | 116 | 0.631376 |
9dd8e53d5dd78ec65dd09c95e548001472c66ede | 2,416 | asm | Assembly | test/tests.asm | barrettotte/Subarashii-CPU | 1bf3d5a27dcda8d71672e104fe7775d736a39e8d | [
"MIT"
] | 1 | 2020-07-19T00:15:55.000Z | 2020-07-19T00:15:55.000Z | test/tests.asm | barrettotte/Subarashii-CPU | 1bf3d5a27dcda8d71672e104fe7775d736a39e8d | [
"MIT"
] | 29 | 2019-05-04T16:34:29.000Z | 2019-05-04T16:50:47.000Z | test/tests.asm | barrettotte/Subarashii-CPU | 1bf3d5a27dcda8d71672e104fe7775d736a39e8d | [
"MIT"
] | null | null | null | ; Test cases - Machine code used in src/rom.v
;
;
; Test ALU
ADD R0,R0,R0 ; [000] = 0000000000000000
ADI R1,0x02 ; [002] = 1000000100000010
ADI R2,0x01 ; [004] = 1000001000000001
ADD R3,R2,R1 ; [006] = 0000001100100001
SUB R3,R3,R0 ; [008] = 0001001100110000
AND R2,R2,R3 ; [010] = 001000100010... | 42.385965 | 76 | 0.645281 |
70e1bbb7cf3e8e85b6ceca000c08d0d03a676824 | 2,012 | c | C | lab-7/example1.c | chintamanand/Embedded-Systems-Project | 8e5651ad699dce8b4c962edb492c910200e00f36 | [
"MIT"
] | null | null | null | lab-7/example1.c | chintamanand/Embedded-Systems-Project | 8e5651ad699dce8b4c962edb492c910200e00f36 | [
"MIT"
] | null | null | null | lab-7/example1.c | chintamanand/Embedded-Systems-Project | 8e5651ad699dce8b4c962edb492c910200e00f36 | [
"MIT"
] | null | null | null | #include<LPC17xx.h>
#include<stdio.h>
#define FIRST_SEG 0XF87FFFFF
#define SECOND_SEG 0XF8FFFFFF
#define THIRD_SEG 0XF97FFFFF
#define FOURTH_SEG 0XF9FFFFFF
#define DISABLE_ALL 0XFA7FFFFF
unsigned int dig1=0x00,dig2=0x00,dig3=0x00,dig4=0x00;
unsigned int twenty_count=0x00,dig_count=0x00,temp1=0x00;
unsigned c... | 21.178947 | 81 | 0.58499 |
717951ac54e45587becf0097e66be76daa813e4c | 551 | ts | TypeScript | src/hooks/useReload.ts | Hanpeng-Chen/vue3-ts-admin | d3ffffeb893e2f975e7dbf0ff2cfd5189132494c | [
"MIT"
] | 2 | 2021-05-25T03:47:54.000Z | 2022-02-21T09:10:10.000Z | src/hooks/useReload.ts | Hanpeng-Chen/vue3-ts-admin | d3ffffeb893e2f975e7dbf0ff2cfd5189132494c | [
"MIT"
] | null | null | null | src/hooks/useReload.ts | Hanpeng-Chen/vue3-ts-admin | d3ffffeb893e2f975e7dbf0ff2cfd5189132494c | [
"MIT"
] | 1 | 2021-05-25T02:44:51.000Z | 2021-05-25T02:44:51.000Z | import { getCurrentInstance } from 'vue'
interface ReloadFn {
reloadPage: (title?: string, message?: string) => void
}
export const useReloadPage = (): ReloadFn => {
const { proxy } = getCurrentInstance()!
const reloadPage = (title = '刷新确认', message?: string) => {
proxy?.$confirm(message || '菜单已发生变动,是否要刷新当前... | 22.04 | 60 | 0.564428 |
bf11653778ac7a92639dc837625ffdd01c405e6d | 633 | kt | Kotlin | libs/utils/config/src/main/kotlin/no/arcane/platform/utils/config/readResource.kt | arcanetechnology/arcane-platform | a9e76455fc333ac8e59a793ed612e41959a993d0 | [
"MIT"
] | null | null | null | libs/utils/config/src/main/kotlin/no/arcane/platform/utils/config/readResource.kt | arcanetechnology/arcane-platform | a9e76455fc333ac8e59a793ed612e41959a993d0 | [
"MIT"
] | null | null | null | libs/utils/config/src/main/kotlin/no/arcane/platform/utils/config/readResource.kt | arcanetechnology/arcane-platform | a9e76455fc333ac8e59a793ed612e41959a993d0 | [
"MIT"
] | null | null | null | package no.arcane.platform.utils.config
import java.io.BufferedReader
import java.io.FileNotFoundException
import java.io.InputStreamReader
fun <R: Any> R.readResource(
name: String
): String {
val inputSystem = this::class.java.getResourceAsStream(name) ?: throw FileNotFoundException("resource: $name")
r... | 31.65 | 114 | 0.755134 |
10ac086a48014b4107939a6e3beb9178d49fddd7 | 573,602 | asm | Assembly | xv6-public/kernel.asm | mapleCows/xv6repo2 | c0fefb1ce848a9fb22086d71f7e356bd6ddc5bd1 | [
"MIT-0"
] | null | null | null | xv6-public/kernel.asm | mapleCows/xv6repo2 | c0fefb1ce848a9fb22086d71f7e356bd6ddc5bd1 | [
"MIT-0"
] | null | null | null | xv6-public/kernel.asm | mapleCows/xv6repo2 | c0fefb1ce848a9fb22086d71f7e356bd6ddc5bd1 | [
"MIT-0"
] | null | null | null |
kernel: file format elf32-i386
Disassembly of section .text:
80100000 <multiboot_header>:
80100000: 02 b0 ad 1b 00 00 add 0x1bad(%eax),%dh
80100006: 00 00 add %al,(%eax)
80100008: fe 4f 52 decb 0x52(%edi)
8010000b: e4 .byte 0xe4
8010000c <entry>:
# E... | 38.059983 | 74 | 0.528351 |
5c36200b3d938f0ff1aafc96d76a7f97e267873c | 544 | h | C | engine/src/core/log.h | nsweb/bigball | 79027e768924b724b21f029be02698e4faa7d812 | [
"MIT"
] | null | null | null | engine/src/core/log.h | nsweb/bigball | 79027e768924b724b21f029be02698e4faa7d812 | [
"MIT"
] | null | null | null | engine/src/core/log.h | nsweb/bigball | 79027e768924b724b21f029be02698e4faa7d812 | [
"MIT"
] | null | null | null |
#ifndef BB_CORELOG_H
#define BB_CORELOG_H
#include <stdint.h>
#include <cstdarg>
namespace bigball
{
#define BB_LOG(CategoryName, Verbosity, Format, ...) \
{ \
BBLog::Print(__FILE__, __LINE__, #CategoryName, BBLog::Verbosity, Format, ##__VA_ARGS__ ); \
}
class BIGBALL_API BBLog
{
public:
... | 14.702703 | 111 | 0.630515 |
1e505581f39bff412387f4639bb515671a97f4be | 3,734 | css | CSS | css/app.css | AymanMorsy/memory-game | 369f07c097d1d81ec7eff56a793717af47483b4e | [
"MIT"
] | 1 | 2020-08-06T21:37:26.000Z | 2020-08-06T21:37:26.000Z | css/app.css | AymanMorsy/Memory-Game | 369f07c097d1d81ec7eff56a793717af47483b4e | [
"MIT"
] | null | null | null | css/app.css | AymanMorsy/Memory-Game | 369f07c097d1d81ec7eff56a793717af47483b4e | [
"MIT"
] | null | null | null |
/* genral setting */
@import url('https://fonts.googleapis.com/css?family=Audiowide|Bungee+Inline');
*,
*::before,
*::after {
box-sizing: inherit;
}
html,
body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background: #13a5bd;
font-family: 'Open... | 15.558333 | 79 | 0.563203 |
b0efa3ed130cb2ece8d8f0694fb507d23f0c23de | 1,046 | asm | Assembly | ffight/lcs/container/1F.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | a4a0c86c200241494b3f1834cd0aef8dc02f7683 | [
"Apache-2.0"
] | 6 | 2020-10-14T15:29:10.000Z | 2022-02-12T18:58:54.000Z | ffight/lcs/container/1F.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | a4a0c86c200241494b3f1834cd0aef8dc02f7683 | [
"Apache-2.0"
] | null | null | null | ffight/lcs/container/1F.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | a4a0c86c200241494b3f1834cd0aef8dc02f7683 | [
"Apache-2.0"
] | 1 | 2020-12-17T08:59:10.000Z | 2020-12-17T08:59:10.000Z | copyright zengfr site:http://github.com/zengfr/romhack
0518CC bmi $518ee [container+1F]
051914 move.b #$32, ($1f,A6) [container+ 3]
05191A move.w #$400, ($50,A6) [container+1F]
052328 bmi $5234a [container+1F]
05236C move.b #$32, ($1f,A6) [container+ 3]
052372 movea.l #$523f4, A1 [container+1F]
0524C4... | 38.740741 | 54 | 0.650096 |
9add15194b14696aa0e31079e09a9e361e800ae7 | 68 | css | CSS | vue/static/css/chunk-7f9f29c0.623f323f.css | taomujian/linbing | fe772a58f41e3b046b51a866bdb7e4655abaf51a | [
"MIT"
] | 351 | 2020-02-26T05:23:26.000Z | 2022-03-26T12:39:19.000Z | vue/static/css/chunk-7f9f29c0.623f323f.css | taomujian/linbing | fe772a58f41e3b046b51a866bdb7e4655abaf51a | [
"MIT"
] | 15 | 2020-03-26T07:31:49.000Z | 2022-03-09T02:12:17.000Z | vue/static/css/chunk-7f9f29c0.623f323f.css | taomujian/linbing | fe772a58f41e3b046b51a866bdb7e4655abaf51a | [
"MIT"
] | 99 | 2020-02-28T07:30:46.000Z | 2022-03-16T16:41:09.000Z | .avatar[data-v-107562e4]{width:200px;height:200px;border-radius:50%} | 68 | 68 | 0.794118 |
adf3705a1f89bd34ea0aeb84aa3df7f72ce14ad2 | 8,395 | rs | Rust | src/handlers/major_change.rs | dtolnay-contrib/triagebot | b69d66682299396630424d4894c11754cd08acc9 | [
"Apache-2.0",
"MIT"
] | null | null | null | src/handlers/major_change.rs | dtolnay-contrib/triagebot | b69d66682299396630424d4894c11754cd08acc9 | [
"Apache-2.0",
"MIT"
] | null | null | null | src/handlers/major_change.rs | dtolnay-contrib/triagebot | b69d66682299396630424d4894c11754cd08acc9 | [
"Apache-2.0",
"MIT"
] | null | null | null | use crate::{
config::MajorChangeConfig,
github::{Event, Issue, IssuesAction, IssuesEvent, Label, ZulipGitHubReference},
handlers::Context,
interactions::ErrorComment,
};
use anyhow::Context as _;
use parser::command::second::SecondCommand;
#[derive(Clone, PartialEq, Eq, Debug)]
pub enum Invocation {
... | 31.920152 | 116 | 0.572365 |