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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
20d9874a474e7025860488dc3bc574ab410afbed | 245 | css | CSS | src/components/dashboard/projects/ProjectList.css | afractal/Daze.Spa | 97c299026a3a2897dee07d0c186c8c2d72669934 | [
"MIT"
] | null | null | null | src/components/dashboard/projects/ProjectList.css | afractal/Daze.Spa | 97c299026a3a2897dee07d0c186c8c2d72669934 | [
"MIT"
] | 39 | 2017-10-30T22:25:18.000Z | 2019-09-10T18:11:16.000Z | src/components/dashboard/projects/ProjectList.css | afractal/Daze.Spa | 97c299026a3a2897dee07d0c186c8c2d72669934 | [
"MIT"
] | null | null | null |
.projects-section {
margin: 2em;
}
.project-list {
text-align: center;
cursor: default;
display: inline-flex;
flex-flow: column nowrap;
align-content: center;
align-items: flex-start;
justify-content: center;
} | 16.333333 | 29 | 0.640816 |
e7790aa36a41901b74bb66a3634417b192fd8c92 | 1,039 | js | JavaScript | src/index.js | simonma10/wow_react | 126db1500b11e3ba5e80c5a78441b71fc4c82f88 | [
"MIT"
] | null | null | null | src/index.js | simonma10/wow_react | 126db1500b11e3ba5e80c5a78441b71fc4c82f88 | [
"MIT"
] | null | null | null | src/index.js | simonma10/wow_react | 126db1500b11e3ba5e80c5a78441b71fc4c82f88 | [
"MIT"
] | null | null | null | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { BrowserRouter, Route, Switch } from 'react-router-dom';
import promise from 'redux-promise';
import reducers from './reducers/index';
import Header from ".... | 33.516129 | 72 | 0.647738 |
753ca75b22fd72039bd1853b056edc9396218818 | 1,416 | c | C | dataset/Lab-7/3075/295396_correct.c | jyi/ITSP | 0553f683f99403efb5ef440af826c1d229a52376 | [
"MIT"
] | 18 | 2017-06-14T07:55:45.000Z | 2022-03-24T09:32:43.000Z | dataset/Lab-7/3075/295396_correct.c | jyi/ITSP | 0553f683f99403efb5ef440af826c1d229a52376 | [
"MIT"
] | 2 | 2017-07-25T13:44:39.000Z | 2018-03-16T06:43:40.000Z | dataset/Lab-7/3075/295396_correct.c | jyi/ITSP | 0553f683f99403efb5ef440af826c1d229a52376 | [
"MIT"
] | 5 | 2017-07-29T19:09:37.000Z | 2021-04-10T16:39:48.000Z | /*numPass=9, numTotal=9
Verdict:ACCEPTED, Visibility:1, Input:"abcdef
2", ExpOutput:"efabcd", Output:"efabcd"
Verdict:ACCEPTED, Visibility:1, Input:"programming
11", ExpOutput:"programming", Output:"programming"
Verdict:ACCEPTED, Visibility:1, Input:"hello-@programmer
5", ExpOutput:"ammerhello-@progr", Output:"ammerh... | 26.222222 | 61 | 0.647599 |
9c28610f65db30c04900032be46a50d26e7d9f3a | 1,918 | js | JavaScript | keywordTool/pubfiles/src/code/sphnews/128804/default.js | dsofowote/KW-Tool | d8d9a5a6f79c33732f0301b7c72ec21d1df4d750 | [
"MIT"
] | null | null | null | keywordTool/pubfiles/src/code/sphnews/128804/default.js | dsofowote/KW-Tool | d8d9a5a6f79c33732f0301b7c72ec21d1df4d750 | [
"MIT"
] | null | null | null | keywordTool/pubfiles/src/code/sphnews/128804/default.js | dsofowote/KW-Tool | d8d9a5a6f79c33732f0301b7c72ec21d1df4d750 | [
"MIT"
] | null | null | null | integration.meta = {
'sectionID' : '128804',
'siteName' : 'The Business Times - Tablet - (SG)',
'platform' : 'tablet'
};
integration.testParams = {
};
integration.flaggedTests = [];
integration.params = {
'mf_siteId' : '1035569',
'plr_PageAlignment' : 'center',
'plr_ContentW' : 1200,
'plr_ContentType' : 'PAGE... | 39.958333 | 273 | 0.660063 |
309043dda7df9cf431bc5e5b7325bfe5d9990ed6 | 657 | html | HTML | templates/page/new_article.html | blackstorm/python3-tornado-blog | 71198d37cb91ad07a7a7088e67d617d117361f54 | [
"MIT"
] | 8 | 2016-11-04T09:03:42.000Z | 2019-04-22T02:14:40.000Z | templates/page/new_article.html | blackstorm/python3-tornado-blog | 71198d37cb91ad07a7a7088e67d617d117361f54 | [
"MIT"
] | null | null | null | templates/page/new_article.html | blackstorm/python3-tornado-blog | 71198d37cb91ad07a7a7088e67d617d117361f54 | [
"MIT"
] | 6 | 2016-06-13T00:11:51.000Z | 2022-01-18T11:35:18.000Z | {% extends "../common/main.html" %}
{% block title %}
<title>发表文章</title>
{% end %}
{% block body %}
<table class="art">
<tbody>
<form action="/write" method="post">
<tr>
<td><input class="myTitle" type="text" name='title' placeholder="请输入标题"></td>
</tr>
<tr>
<td>... | 27.375 | 89 | 0.494673 |
287401f8cb0c098e08ebef1b45b9c6df311fe8d7 | 8,459 | rb | Ruby | vgvm.rb | sonota88/vm2gol-v2 | 9323532d6e6ad63a42ce9a6bcc7a38207df8f2de | [
"MIT"
] | 9 | 2021-01-18T22:50:09.000Z | 2022-01-11T10:25:31.000Z | vgvm.rb | sonota88/vm2gol-v2 | 9323532d6e6ad63a42ce9a6bcc7a38207df8f2de | [
"MIT"
] | null | null | null | vgvm.rb | sonota88/vm2gol-v2 | 9323532d6e6ad63a42ce9a6bcc7a38207df8f2de | [
"MIT"
] | null | null | null | require "json"
require_relative "./common"
module TermColor
RESET = "\e[m"
RED = "\e[0;31m"
BLUE = "\e[0;34m"
end
class Memory
attr_accessor :main, :stack, :vram
MAIN_DUMP_WIDTH = 10
def initialize(stack_size)
@main = []
# スタック領域
@stack = Array.new(stack_size, 0)
@vram = Array.n... | 18.881696 | 69 | 0.506916 |
e15b7eb9099a761e2ac54aba5ed851cec854a407 | 75 | tab | SQL | wordLists/wikt/wn-wikt-pav.tab | vatbub/auto-hotkey-noun-replacer | 467c34292c1cc6465cb2d4003a91021b763b22d7 | [
"Apache-2.0"
] | 3 | 2016-07-11T21:11:08.000Z | 2016-10-04T01:27:06.000Z | wordLists/wikt/wn-wikt-pav.tab | vatbub/auto-hotkey-noun-replacer | 467c34292c1cc6465cb2d4003a91021b763b22d7 | [
"Apache-2.0"
] | 55 | 2016-06-24T00:14:38.000Z | 2022-03-01T04:03:47.000Z | wordLists/wikt/wn-wikt-pav.tab | vatbub/auto-hotkey-noun-replacer | 467c34292c1cc6465cb2d4003a91021b763b22d7 | [
"Apache-2.0"
] | null | null | null | # Wiktionary pav http://wiktionary.org/ CC BY-SA
02512053-n pav:lemma hwam
| 25 | 48 | 0.76 |
229cba16fcfae357646335daf3ae227f3a6dd61c | 276 | html | HTML | exercicios/ex007/html4.html | MuriWolf/html-css | 35ef493e09f8a717869d4763b5f32403fd20d3cc | [
"MIT"
] | null | null | null | exercicios/ex007/html4.html | MuriWolf/html-css | 35ef493e09f8a717869d4763b5f32403fd20d3cc | [
"MIT"
] | null | null | null | exercicios/ex007/html4.html | MuriWolf/html-css | 35ef493e09f8a717869d4763b5f32403fd20d3cc | [
"MIT"
] | null | null | null | <html>
<head>
<title>Meu site html4</title>
</head>
<body bgcolor="gray">
<h1>HTML4</h1>
Eu moro na <u>Rua Churusbango Churusbago, 1987 - Acre</u>
<marquee behavior="" direction="right">Teste de Marquee</marquee>
</body>
</html> | 27.6 | 73 | 0.572464 |
4a30212f06c52a278d54bb3d71adec34ed1cf665 | 1,935 | js | JavaScript | bin/redis-queue-worker.js | davidahouse/redis-queue | b672cadc7b3b0b3c957178bc05612ee5bd620893 | [
"MIT"
] | null | null | null | bin/redis-queue-worker.js | davidahouse/redis-queue | b672cadc7b3b0b3c957178bc05612ee5bd620893 | [
"MIT"
] | 2 | 2019-03-24T17:36:45.000Z | 2019-03-25T11:38:22.000Z | bin/redis-queue-worker.js | davidahouse/redis-queue-worker | b672cadc7b3b0b3c957178bc05612ee5bd620893 | [
"MIT"
] | null | null | null | #!/usr/bin/env node
const chalk = require('chalk')
const clear = require('clear')
const figlet = require('figlet')
const redis = require('redis')
const conf = require('rc')('redisqueueworker', {
// defaults
sourceRedisHost: 'localhost',
sourceRedisPort: 6379,
sourceRedisPassword: null,
sourceQueueName: 'gith... | 32.25 | 83 | 0.663049 |
9b842d6b267b9285d71f0249fd0efbe8bb1aad0a | 542 | js | JavaScript | api/pmc.js | FahimEcho/Bubu | 6cb05d4f464f47bc1b166a75c6e6d65ebecff8df | [
"MIT"
] | null | null | null | api/pmc.js | FahimEcho/Bubu | 6cb05d4f464f47bc1b166a75c6e6d65ebecff8df | [
"MIT"
] | 9 | 2020-07-19T18:22:55.000Z | 2022-02-13T02:59:27.000Z | api/pmc.js | hubgit/bibu | 76a9b0629d8c401a670d2778838af9311017d189 | [
"MIT"
] | null | null | null | const bibutils = require('bibutils.js')
const axios = require('axios')
module.exports = async (req, res) => {
const { toFormat = 'ris', id } = req.query
const response = await axios.get(
'https://api.ncbi.nlm.nih.gov/lit/ctxp/v1/pmc/',
{
params: {
format: 'ris',
id
} ,
he... | 19.357143 | 64 | 0.5369 |
6b52d484f72d299ffa0f80dbe2a5dad34864b091 | 15,812 | rs | Rust | bril-rs/src/lib.rs | femtomc/bril | 51bb0c5a4d38787b12204882d3502c94e963103a | [
"MIT"
] | 1 | 2021-02-15T04:24:08.000Z | 2021-02-15T04:24:08.000Z | bril-rs/src/lib.rs | femtomc/bril | 51bb0c5a4d38787b12204882d3502c94e963103a | [
"MIT"
] | null | null | null | bril-rs/src/lib.rs | femtomc/bril | 51bb0c5a4d38787b12204882d3502c94e963103a | [
"MIT"
] | null | null | null | use std::fmt::{self, Display, Formatter};
use std::io::{self, Write};
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct Program {
pub functions: Vec<Function>,
}
impl Display for Program {
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
for func in ... | 28.235714 | 76 | 0.426195 |
50358040403f6a1725a127e427d22ad39a3a386a | 608 | go | Go | lib/dtos/github_commit.go | skeswa/gophr | e811c582b32b7fd3ec5915d1b91e28c81e47d8cd | [
"Apache-2.0"
] | 19 | 2016-03-12T19:47:43.000Z | 2016-09-28T15:48:31.000Z | lib/dtos/github_commit.go | skeswa/gophr | e811c582b32b7fd3ec5915d1b91e28c81e47d8cd | [
"Apache-2.0"
] | 126 | 2016-03-29T18:28:12.000Z | 2016-09-29T03:29:45.000Z | lib/dtos/github_commit.go | gophr-pm/gophr | e811c582b32b7fd3ec5915d1b91e28c81e47d8cd | [
"Apache-2.0"
] | 2 | 2016-11-01T03:04:07.000Z | 2016-11-22T06:35:36.000Z | package dtos
import "time"
//go:generate ffjson $GOFILE
// GithubCommit is the response to a Github API commit detail request.
type GithubCommit struct {
SHA string `json:"sha"`
}
// GithubCommitLookUp is the response to a Github API commit detail request.
type GithubCommitLookUp struct {
Commit *GithubCommitDeta... | 23.384615 | 76 | 0.779605 |
21f1f3d8fd4f389d53110caa6d795484086370ad | 103 | html | HTML | docs/archive/documents/161.html | Basileus4/site | 9af12c1c45b345e566fa900659506fc2e1f9e5c2 | [
"Apache-2.0"
] | null | null | null | docs/archive/documents/161.html | Basileus4/site | 9af12c1c45b345e566fa900659506fc2e1f9e5c2 | [
"Apache-2.0"
] | null | null | null | docs/archive/documents/161.html | Basileus4/site | 9af12c1c45b345e566fa900659506fc2e1f9e5c2 | [
"Apache-2.0"
] | null | null | null | ---
layout: tei
tei: '../tei/161.xml'
facs: '../facs/161.html'
prev: '160'
self: '161'
next: '162'
---
| 11.444444 | 24 | 0.553398 |
3285c7bcf8a45e226a8861a3ccbc819526f84ad0 | 993 | lua | Lua | test/tests/colonrange.lua | jugglerchris/textadept-vi | 46eb2c6502df9a0166a4de2a8c14fca66b4a0220 | [
"MIT"
] | 35 | 2015-02-06T01:48:41.000Z | 2022-01-01T17:31:10.000Z | test/tests/colonrange.lua | jugglerchris/textadept-vi | 46eb2c6502df9a0166a4de2a8c14fca66b4a0220 | [
"MIT"
] | 31 | 2015-02-24T22:23:30.000Z | 2020-12-11T22:50:45.000Z | test/tests/colonrange.lua | jugglerchris/textadept-vi | 46eb2c6502df9a0166a4de2a8c14fca66b4a0220 | [
"MIT"
] | 9 | 2015-06-21T11:51:17.000Z | 2020-05-27T17:13:19.000Z | -- Check that running :commands works.
-- Add a dummy command
local assertEq = test.assertEq
local myvar = nil
local vi_mode = require 'textadept-vi.vi_mode'
local cmd_errors = {}
local function save_errors(f)
return function(...)
ok, err = pcall(f, ...)
if ok then return err end
... | 29.205882 | 74 | 0.668681 |
5c76396750dd1efc593e3327d96f190c7f22c18d | 289 | h | C | RunTime/Six/RunTimeExample/RunTimeExample/Module/RunTime/Views/RunTimeCell.h | CainRun/iOS-Project-Example | a02b669a14b5ade94456924c41421d511ffd12f7 | [
"MIT"
] | 10 | 2017-08-12T03:14:39.000Z | 2017-11-26T04:08:22.000Z | RunTime/Five/RunTimeExample/RunTimeExample/Module/RunTime/Views/RunTimeCell.h | CainLuo/iOS-Project-Example | a02b669a14b5ade94456924c41421d511ffd12f7 | [
"MIT"
] | 1 | 2017-08-16T03:36:28.000Z | 2017-08-16T03:37:06.000Z | RunTime/Five/RunTimeExample/RunTimeExample/Module/RunTime/Views/RunTimeCell.h | CainLuo/iOS-Project-Example | a02b669a14b5ade94456924c41421d511ffd12f7 | [
"MIT"
] | 6 | 2018-01-16T06:48:46.000Z | 2021-11-11T03:37:28.000Z | //
// RunTimeCell.h
// RunTimeExample
//
// Created by Cain on 2017/9/26.
// Copyright © 2017年 Cain. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "RunTimeModel.h"
@interface RunTimeCell : UITableViewCell
- (void)cl_confgiRunTimeCellWithModel:(RunTimeModel *)model;
@end
| 17 | 60 | 0.716263 |
21d9807dea4a56c43f7241d8c80bc88e5da14f74 | 565 | html | HTML | www/templates/tab-insert.html | raqystyle/kid-tracker-app | 279e6acf1edaf8c92b47e7c31757abcfb1a38739 | [
"MIT"
] | null | null | null | www/templates/tab-insert.html | raqystyle/kid-tracker-app | 279e6acf1edaf8c92b47e7c31757abcfb1a38739 | [
"MIT"
] | null | null | null | www/templates/tab-insert.html | raqystyle/kid-tracker-app | 279e6acf1edaf8c92b47e7c31757abcfb1a38739 | [
"MIT"
] | null | null | null | <ion-view view-title="Add activity">
<ion-content class="padding">
<button ng-click="InsertC.addBreastFeeding()" class="button button-block button-positive">
Had breast
</button>
<button ng-click="InsertC.addFormula()" class="button button-block button-positive">
Ate formula
</button>
... | 33.235294 | 94 | 0.670796 |
5c892372dbaf3a6d0723f82a094a2eee24af9345 | 2,373 | h | C | src/Generic/patterns/UnionPattern.h | BBN-E/serif | 1e2662d82fb1c377ec3c79355a5a9b0644606cb4 | [
"Apache-2.0"
] | 1 | 2022-03-24T19:57:00.000Z | 2022-03-24T19:57:00.000Z | src/Generic/patterns/UnionPattern.h | BBN-E/serif | 1e2662d82fb1c377ec3c79355a5a9b0644606cb4 | [
"Apache-2.0"
] | null | null | null | src/Generic/patterns/UnionPattern.h | BBN-E/serif | 1e2662d82fb1c377ec3c79355a5a9b0644606cb4 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2006 by BBNT Solutions LLC
// All Rights Reserved.
#ifndef UNION_PATTERN_H
#define UNION_PATTERN_H
#include "Generic/common/Symbol.h"
#include "Generic/patterns/Pattern.h"
#include "Generic/patterns/PatternTypes.h"
/** A sentence-matching pattern that will match a sentence iff any of its
... | 44.773585 | 147 | 0.770333 |
fbe07604ef5299ddd13b9220eaa963ba3d0046a9 | 873 | asm | Assembly | sw/552tests/rand_simple/t_2_srli.asm | JPShen-UWM/ThreadKraken | 849c510531f28e36d3469535737b2120bd774935 | [
"MIT"
] | 1 | 2022-02-15T16:03:25.000Z | 2022-02-15T16:03:25.000Z | sw/552tests/rand_simple/t_2_srli.asm | JPShen-UWM/ThreadKraken | 849c510531f28e36d3469535737b2120bd774935 | [
"MIT"
] | null | null | null | sw/552tests/rand_simple/t_2_srli.asm | JPShen-UWM/ThreadKraken | 849c510531f28e36d3469535737b2120bd774935 | [
"MIT"
] | null | null | null | // seed 2
lbi r0, 104 // icount 0
slbi r0, 209 // icount 1
lbi r1, 44 // icount 2
slbi r1, 82 // icount 3
lbi r2, 45 // icount 4
slbi r2, 104 // icount 5
lbi r3, 216 // icount 6
slbi r3, 122 // icount 7
lbi r4, 119 // icount 8
slbi r4, 97 // icount 9
lbi r5, 239 // icount 10
slbi r5, 62 // icount 11
lbi r6, 118 // icou... | 24.942857 | 28 | 0.620848 |
4508ee6008e7ebc72fbd03560085019adbd695fd | 8,982 | asm | Assembly | src/test/cpp/raw/pmp/build/pmp.asm | cjearls/VexRiscv | b92e408bc40cfd93730213312877447c19475f2d | [
"MIT"
] | 1 | 2021-07-04T05:24:20.000Z | 2021-07-04T05:24:20.000Z | src/test/cpp/raw/pmp/build/pmp.asm | cjearls/VexRiscv | b92e408bc40cfd93730213312877447c19475f2d | [
"MIT"
] | null | null | null | src/test/cpp/raw/pmp/build/pmp.asm | cjearls/VexRiscv | b92e408bc40cfd93730213312877447c19475f2d | [
"MIT"
] | 1 | 2021-07-04T05:24:24.000Z | 2021-07-04T05:24:24.000Z |
build/pmp.elf: file format elf32-littleriscv
Disassembly of section .crt_section:
80000000 <_start>:
80000000: 00000097 auipc ra,0x0
80000004: 01008093 addi ra,ra,16 # 80000010 <trap>
80000008: 30509073 csrw mtvec,ra
8000000c: 00c0006f j 80000018 <test0>
80000010 <trap>:... | 44.029412 | 75 | 0.631374 |
7f0f21abeeec2906c522c0a9c1ca06cf0a0b4f94 | 1,405 | rs | Rust | src/data/streams.rs | merembablas/spearmint | 7c4545872a987840fbf97f5466380d4595bb35dd | [
"MIT"
] | null | null | null | src/data/streams.rs | merembablas/spearmint | 7c4545872a987840fbf97f5466380d4595bb35dd | [
"MIT"
] | null | null | null | src/data/streams.rs | merembablas/spearmint | 7c4545872a987840fbf97f5466380d4595bb35dd | [
"MIT"
] | 1 | 2022-02-07T04:27:47.000Z | 2022-02-07T04:27:47.000Z | use binance::websockets::*;
use comfy_table::Table;
use std::collections::HashMap;
use std::sync::atomic::AtomicBool;
pub fn run(exchange: &str, symbols: Vec<String>) {
if exchange == "binance" {
let mut endpoints: Vec<String> = Vec::new();
let mut prices: HashMap<String, f32> = HashMap::new();
... | 30.543478 | 86 | 0.520285 |
12351d5936fea3081f9fadcaa00f98d24ac38e3b | 3,293 | h | C | include/Circuit.h | cross-platform/route20 | ad9ecccac16c782caa1df55055f4583dae15e7a9 | [
"BSD-2-Clause"
] | 1 | 2021-09-18T22:59:35.000Z | 2021-09-18T22:59:35.000Z | include/Circuit.h | cross-platform/route20 | ad9ecccac16c782caa1df55055f4583dae15e7a9 | [
"BSD-2-Clause"
] | null | null | null | include/Circuit.h | cross-platform/route20 | ad9ecccac16c782caa1df55055f4583dae15e7a9 | [
"BSD-2-Clause"
] | 3 | 2021-07-05T01:39:26.000Z | 2022-03-27T17:09:35.000Z | /************************************************************************
Route20 - Cross-Platform C++ Dataflow Metaprogramming Framework
Copyright (c) 2021 Marcus Tomlinson
This file is part of Route20.
Simplified BSD Licence:
Redistribution and use in source and binary forms, with or without
modification, are... | 29.141593 | 105 | 0.628606 |
f333d79fdc55230b0697b969290a6db3f721c691 | 282 | lua | Lua | plugins/cwweapons/items/cwweapons/sh_tokarev.lua | LtTaylor97/taylors-ix-plugins | 72a7471218c3aa1d3bdfddcf67df942a8e413b7f | [
"MIT"
] | 1 | 2022-02-26T18:03:51.000Z | 2022-02-26T18:03:51.000Z | plugins/cwweapons/items/cwweapons/sh_tokarev.lua | LtTaylor97/taylors-ix-plugins | 72a7471218c3aa1d3bdfddcf67df942a8e413b7f | [
"MIT"
] | null | null | null | plugins/cwweapons/items/cwweapons/sh_tokarev.lua | LtTaylor97/taylors-ix-plugins | 72a7471218c3aa1d3bdfddcf67df942a8e413b7f | [
"MIT"
] | null | null | null | ITEM.name = "Tokarev TT-33"
ITEM.description = "An old semi-automatic handgun. Fires 7.62x25mm."
ITEM.model = "models/weapons/ethereal/w_tokarev.mdl"
ITEM.class = "cw_kk_ins2_tokarev"
ITEM.weaponCategory = "secondary"
ITEM.width = 2
ITEM.height = 1
ITEM.price = 1150
ITEM.weight = 3 | 31.333333 | 68 | 0.755319 |
b1af606db9680128ac0ff91d7a876390af18e546 | 302 | h | C | Example/RHMarkdownLabelExample/AppDelegate.h | chriscdn/RHMarkdownLabel | 86bd7221a8ccba22a60eb1a5f31e8c0e19d064ad | [
"MIT"
] | 1 | 2018-03-28T12:26:56.000Z | 2018-03-28T12:26:56.000Z | Example/RHMarkdownLabelExample/AppDelegate.h | chriscdn/RHMarkdownLabel | 86bd7221a8ccba22a60eb1a5f31e8c0e19d064ad | [
"MIT"
] | 2 | 2018-04-06T09:26:04.000Z | 2019-01-20T11:00:07.000Z | Example/RHMarkdownLabelExample/AppDelegate.h | chriscdn/RHMarkdownLabel | 86bd7221a8ccba22a60eb1a5f31e8c0e19d064ad | [
"MIT"
] | 1 | 2018-03-28T13:34:09.000Z | 2018-03-28T13:34:09.000Z | //
// AppDelegate.h
// RHMarkdownLabelExample
//
// Created by Christopher Meyer on 23/02/16.
// Copyright © 2016 Christopher Meyer. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end | 20.133333 | 60 | 0.735099 |
d9b16eb71f19f7742e1cf04a91b75e444a4a9f13 | 996 | lua | Lua | tools/sysbench-mongo/sysbench/sysbench/tests/mongodb/write_only.lua | DipanshKhandelwal/litmus | 69c679f9fc59fcd23f9d8daa2fddb766b559cbc8 | [
"Apache-2.0"
] | 20 | 2019-06-20T08:54:38.000Z | 2022-03-17T00:08:59.000Z | tools/sysbench-mongo/sysbench/sysbench/tests/mongodb/write_only.lua | DipanshKhandelwal/litmus | 69c679f9fc59fcd23f9d8daa2fddb766b559cbc8 | [
"Apache-2.0"
] | 49 | 2019-08-12T11:23:51.000Z | 2022-03-14T16:24:38.000Z | tools/sysbench-mongo/sysbench/sysbench/tests/mongodb/write_only.lua | DipanshKhandelwal/litmus | 69c679f9fc59fcd23f9d8daa2fddb766b559cbc8 | [
"Apache-2.0"
] | 42 | 2019-05-16T12:35:04.000Z | 2022-02-23T16:57:46.000Z | -- Copyright (C) 2016 Percona
pathtest = string.match(test, "(.*/)") or ""
dofile(pathtest .. "common.lua")
function thread_init(thread_id)
db_connect()
set_vars()
end
function event(thread_id)
for i=1, oltp_index_updates do
mongodb_index_update("sbtest" .. sb_rand(1, oltp_tables_count), sb_... | 32.129032 | 167 | 0.575301 |
0b656cc83021e203c812d1aff73f032e83584937 | 16,883 | sql | SQL | src/sql/plugins/appointment/plugin/create_db_appointment.sql | lutece-platform/lutece-apps-plugin-appointment | fda78dfd38cbdf3a5abcf635540763b7d9a74844 | [
"Unlicense"
] | 2 | 2019-03-18T11:19:46.000Z | 2022-03-13T20:17:23.000Z | src/sql/plugins/appointment/plugin/create_db_appointment.sql | lutece-platform/lutece-apps-plugin-appointment | fda78dfd38cbdf3a5abcf635540763b7d9a74844 | [
"Unlicense"
] | 13 | 2020-04-16T09:13:10.000Z | 2022-01-26T15:05:09.000Z | src/sql/plugins/appointment/plugin/create_db_appointment.sql | lutece-platform/lutece-apps-plugin-appointment | fda78dfd38cbdf3a5abcf635540763b7d9a74844 | [
"Unlicense"
] | 10 | 2016-11-10T09:37:39.000Z | 2022-03-30T15:11:27.000Z | DROP TABLE IF EXISTS appointment_reservation_rule ;
DROP TABLE IF EXISTS appointment_appointment_response ;
DROP TABLE IF EXISTS appointment_form_message ;
DROP TABLE IF EXISTS appointment_form_portlet ;
DROP TABLE IF EXISTS appointment_time_slot ;
DROP TABLE IF EXISTS appointment_working_day ;
DROP TABLE IF EXIS... | 42.102244 | 135 | 0.70106 |
f034b8b6b6d0852450c50577d53070c406d80750 | 770 | py | Python | lambda-archive/lambda-functions/codebreaker-update-testcaseCount/lambda_function.py | singaporezoo/codebreaker-official | 1fe5792f1c36f922abd0836d8dcb42d271a9323d | [
"MIT"
] | 11 | 2021-09-19T06:32:44.000Z | 2022-03-14T19:09:46.000Z | lambda-archive/lambda-functions/codebreaker-update-testcaseCount/lambda_function.py | singaporezoo/codebreaker-official | 1fe5792f1c36f922abd0836d8dcb42d271a9323d | [
"MIT"
] | null | null | null | lambda-archive/lambda-functions/codebreaker-update-testcaseCount/lambda_function.py | singaporezoo/codebreaker-official | 1fe5792f1c36f922abd0836d8dcb42d271a9323d | [
"MIT"
] | 1 | 2022-03-02T13:27:27.000Z | 2022-03-02T13:27:27.000Z | import json
import boto3 # Amazon S3 client library
s3 = boto3.resource('s3')
dynamodb = boto3.resource('dynamodb')
problems_table = dynamodb.Table('codebreaker-problems')
bucket = s3.Bucket('codebreaker-testdata')
def lambda_handler(event, context):
problemName = event['problemName']
testcaseCount = 0
fo... | 28.518519 | 72 | 0.672727 |
1df4f103df8598e40d21d6583bae177c600aa9d5 | 23,290 | sql | SQL | hj-sw.sql | iamhj/ssms | fb867728bf6518bb97bdee188cb30ebe25d4014e | [
"Apache-2.0",
"MIT"
] | null | null | null | hj-sw.sql | iamhj/ssms | fb867728bf6518bb97bdee188cb30ebe25d4014e | [
"Apache-2.0",
"MIT"
] | null | null | null | hj-sw.sql | iamhj/ssms | fb867728bf6518bb97bdee188cb30ebe25d4014e | [
"Apache-2.0",
"MIT"
] | null | null | null | /*
Navicat Premium Data Transfer
Source Server : iamhj
Source Server Type : MySQL
Source Server Version : 50726
Source Host : localhost:3306
Source Schema : sw
Target Server Type : MySQL
Target Server Version : 50726
File Encoding : 65001
Date: 09/07/2021 17:35:02
*/... | 65.238095 | 232 | 0.663718 |
d1c3b7b35fc90da2b462faf8a1838db04649f99a | 308 | rs | Rust | terraria-protocol/src/packets/sync_extra_value.rs | annihilatorrrr/terry | d17e029eebd7ef21c7e8b8eac42a838376d64fad | [
"Apache-2.0",
"MIT"
] | 8 | 2020-07-09T21:34:30.000Z | 2022-01-19T09:59:26.000Z | terraria-protocol/src/packets/sync_extra_value.rs | annihilatorrrr/terry | d17e029eebd7ef21c7e8b8eac42a838376d64fad | [
"Apache-2.0",
"MIT"
] | 3 | 2021-06-27T11:18:14.000Z | 2021-10-03T11:24:02.000Z | terraria-protocol/src/packets/sync_extra_value.rs | annihilatorrrr/terry | d17e029eebd7ef21c7e8b8eac42a838376d64fad | [
"Apache-2.0",
"MIT"
] | 8 | 2020-07-14T08:40:10.000Z | 2021-12-14T15:27:29.000Z | use crate::serde::packet_struct;
use crate::structures::Vec2;
packet_struct! {
/// Sync an extra value.
///
/// Direction: Server <-> Client (Sync).
pub struct SyncExtraValue {
const TAG = 92;
pub npc_index: u16,
pub extra_value: i32,
pub pos: Vec2,
}
}
| 19.25 | 44 | 0.574675 |
43998fdc33c60fef19e2c8f6867383e734085ebb | 282 | go | Go | parser/generator_test.go | haklop/bazooka | 616e5a8ddba9ab22c725b9c4f55073204c670840 | [
"MIT"
] | 72 | 2015-02-26T14:55:04.000Z | 2022-03-13T10:40:11.000Z | parser/generator_test.go | haklop/bazooka | 616e5a8ddba9ab22c725b9c4f55073204c670840 | [
"MIT"
] | 121 | 2015-02-26T13:27:53.000Z | 2019-02-01T11:05:23.000Z | parser/generator_test.go | haklop/bazooka | 616e5a8ddba9ab22c725b9c4f55073204c670840 | [
"MIT"
] | 5 | 2015-04-18T08:02:58.000Z | 2019-09-09T19:20:48.000Z | package main
import (
"testing"
"text/template"
)
func TestParseTemplate(t *testing.T) {
template.Must(template.ParseFiles("template/bazooka_phase.sh"))
template.Must(template.ParseFiles("template/bazooka_run.sh"))
template.Must(template.ParseFiles("template/Dockerfile"))
}
| 21.692308 | 64 | 0.77305 |
c41a05b41f7b4fe9752387216be9014b7d867dec | 2,177 | h | C | firmware/CellularTCPIP_SIM800.h | tzurolo/Water-Tank-Display | 4ff9bd102ffa00f3b0057647cf8a4d13e682add0 | [
"MIT"
] | null | null | null | firmware/CellularTCPIP_SIM800.h | tzurolo/Water-Tank-Display | 4ff9bd102ffa00f3b0057647cf8a4d13e682add0 | [
"MIT"
] | null | null | null | firmware/CellularTCPIP_SIM800.h | tzurolo/Water-Tank-Display | 4ff9bd102ffa00f3b0057647cf8a4d13e682add0 | [
"MIT"
] | null | null | null | //
// Cellular Communications, TCP/IP sesssions for SIM800
//
// You can poll for connection status using CellularTCPIP_connectionStatus() or
// you can use the callback you pass to the connect function.
//
#ifndef CELLULARTCPIP_H
#define CELLULARTCPIP_H
#include <stdint.h>
#include <stdbool.h>
#include ... | 32.014706 | 105 | 0.776298 |
f00829ce69ca21d2a75d867579f5065b5c43824d | 395 | py | Python | lib/locator/location_test.py | alt-locator/address-locator-python | 9f052dc7721223bde926723648790a17b06e9d7a | [
"MIT"
] | null | null | null | lib/locator/location_test.py | alt-locator/address-locator-python | 9f052dc7721223bde926723648790a17b06e9d7a | [
"MIT"
] | null | null | null | lib/locator/location_test.py | alt-locator/address-locator-python | 9f052dc7721223bde926723648790a17b06e9d7a | [
"MIT"
] | null | null | null | import location
import unittest
class LocationTest(unittest.TestCase):
def testToJson(self):
test_location = location.Location(name='foo',
local_ip_address={'en0': {'local_ip_address': '1.2.3.4'}})
test_json = test_location.to_json()
self.assertEqual(test_json['name'], 'foo')
self.assertEqual(... | 30.384615 | 78 | 0.698734 |
98955a0b5198154ca8aed79f178970d92fe263fe | 432 | html | HTML | src/app/components/ui-elements/toolbar-navigation/toolbar-navigation-menu/toolbar-navigation-menu.component.html | wilsonsergio2500/fogo-cms | 1eeba260b9175d03da9f1d6393d96c39adadee95 | [
"MIT"
] | null | null | null | src/app/components/ui-elements/toolbar-navigation/toolbar-navigation-menu/toolbar-navigation-menu.component.html | wilsonsergio2500/fogo-cms | 1eeba260b9175d03da9f1d6393d96c39adadee95 | [
"MIT"
] | 1 | 2021-12-26T21:32:30.000Z | 2021-12-26T21:32:30.000Z | src/app/components/ui-elements/toolbar-navigation/toolbar-navigation-menu/toolbar-navigation-menu.component.html | wilsonsergio2500/fogo-cms | 1eeba260b9175d03da9f1d6393d96c39adadee95 | [
"MIT"
] | 1 | 2022-01-05T04:35:26.000Z | 2022-01-05T04:35:26.000Z | <mat-menu #menu>
<ng-container *ngFor="let item of navigations">
<a *ngIf="!item.children?.length; else branch" routerLink="{{item.Url}}" mat-menu-item>{{item.Label}}</a>
<ng-template #branch>
<a mat-menu-item [matMenuTriggerFor]="innerPanel.menu">{{item.Label}}</a>
<toolbar-navigation-menu #inner... | 43.2 | 109 | 0.671296 |
c16ceeec6201e4f54d20f9700d90b73c8cbd98c6 | 2,525 | lua | Lua | plugins/easymedikit/sv_hooks.lua | Frosty1940/helix-hl2rp | 0c14c75cc7502164b3989d173d7a149e683eda56 | [
"MIT"
] | null | null | null | plugins/easymedikit/sv_hooks.lua | Frosty1940/helix-hl2rp | 0c14c75cc7502164b3989d173d7a149e683eda56 | [
"MIT"
] | null | null | null | plugins/easymedikit/sv_hooks.lua | Frosty1940/helix-hl2rp | 0c14c75cc7502164b3989d173d7a149e683eda56 | [
"MIT"
] | null | null | null |
local PLUGIN = PLUGIN
PLUGIN.BulletDamages = {
[DMG_BULLET] = true,
[DMG_SLASH] = true,
[DMG_BLAST] = true,
[DMG_AIRBOAT] = true,
[DMG_BUCKSHOT] = true,
[DMG_SNIPER] = true,
[DMG_MISSILEDEFENSE] = true
}
function PLUGIN:EntityTakeDamage(target, info)
if ( target:IsValid() and target:IsPlayer... | 25.505051 | 83 | 0.716832 |
e9dd366c5c2991ca31f4412a4046e939cc1940f2 | 714 | rb | Ruby | lib/acapi/config.rb | ideacrew/acapi | 8f4b6cf53d7eb98f331c722bbcdf8e21aa265a76 | [
"MIT"
] | 2 | 2015-04-01T19:00:07.000Z | 2018-06-22T20:21:45.000Z | lib/acapi/config.rb | ideacrew/acapi | 8f4b6cf53d7eb98f331c722bbcdf8e21aa265a76 | [
"MIT"
] | null | null | null | lib/acapi/config.rb | ideacrew/acapi | 8f4b6cf53d7eb98f331c722bbcdf8e21aa265a76 | [
"MIT"
] | 3 | 2015-06-14T04:27:13.000Z | 2017-08-09T20:49:36.000Z | require "acapi/config/environment"
# require "acapi/config/options"
module Acapi
module Config
extend self
def load!(path, environment = nil)
settings = Environment.load_yaml(path, environment)
if settings.present?
load_configuration(settings)
end
settings
end
def l... | 21.636364 | 57 | 0.654062 |
e9147cf4bcc0292e88382d6f3ee6df51daa6215d | 1,947 | rb | Ruby | spec/flight_radar_spec.rb | kupolak/flight_radar | 673bc47d18f0b8b47b010ecc605ac922d94c8580 | [
"MIT"
] | null | null | null | spec/flight_radar_spec.rb | kupolak/flight_radar | 673bc47d18f0b8b47b010ecc605ac922d94c8580 | [
"MIT"
] | null | null | null | spec/flight_radar_spec.rb | kupolak/flight_radar | 673bc47d18f0b8b47b010ecc605ac922d94c8580 | [
"MIT"
] | null | null | null | # frozen_string_literal: true
require "spec_helper"
RSpec.describe FlightRadar do
it "gets airlines" do
result = FlightRadar.airlines
expect(result.count).to be >= 100
end
it "gets airports" do
airports = FlightRadar.airports
expect(airports.count).to be > 4000
end
it "gets airport" do
... | 26.310811 | 112 | 0.671803 |
b2fdd34a89c4f597f4f4706f3635728cd6c36c6a | 2,827 | py | Python | train_utils.py | BatyrM/QL-Net | b245aadeb106810d075064137f26d773b2dbd679 | [
"MIT"
] | null | null | null | train_utils.py | BatyrM/QL-Net | b245aadeb106810d075064137f26d773b2dbd679 | [
"MIT"
] | null | null | null | train_utils.py | BatyrM/QL-Net | b245aadeb106810d075064137f26d773b2dbd679 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
from torch.autograd import Variable
import torch.optim as optim
def accuracy(output, target, topk=(1,)):
"""Computes the precision@k for the specified values of k"""
maxk = max(topk)
batch_size = target.size(0)
_, pred = output.topk(maxk, 1, True, True)
pred = pr... | 36.714286 | 97 | 0.573753 |
d53b0c9051915c1223dcd291230166274cc27b46 | 4,232 | sql | SQL | db/schema.sql | gabiseabra/hs-picturefarm | f8440c75216815f2cd8e4202c0997e4811622a75 | [
"BSD-3-Clause"
] | 3 | 2020-02-27T15:36:48.000Z | 2021-04-22T01:57:21.000Z | db/schema.sql | gabiseabra/hs-picturefarm | f8440c75216815f2cd8e4202c0997e4811622a75 | [
"BSD-3-Clause"
] | null | null | null | db/schema.sql | gabiseabra/hs-picturefarm | f8440c75216815f2cd8e4202c0997e4811622a75 | [
"BSD-3-Clause"
] | null | null | null | SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET client_min_messages = warning;
SET row_security = off;
--
-- N... | 22.631016 | 110 | 0.725662 |
3e70634f44bcb23bf0bd42868426660d485ce647 | 94,454 | c | C | sdktools/debuggers/imagehlp/walkx86.c | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | sdktools/debuggers/imagehlp/walkx86.c | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | sdktools/debuggers/imagehlp/walkx86.c | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*++
Copyright (c) 1993-2002 Microsoft Corporation
Module Name:
walkx86.c
Abstract:
This file implements the Intel x86 stack walking api. This api allows for
the presence of "real mode" stack frames. This means that you can trace
into WOW code.
Author:
Wesley Witt (wesw) 1-... | 31.442743 | 118 | 0.496919 |
ce9ed96e588e8fbbf39a9de9470f0c25cf085d01 | 615 | kt | Kotlin | presentation/src/main/java/com/test/grability/view/activity/MainActivity.kt | andresbelt/MarvelExample | 8d805d195481cb19179d272186c307e18369ea76 | [
"MIT"
] | null | null | null | presentation/src/main/java/com/test/grability/view/activity/MainActivity.kt | andresbelt/MarvelExample | 8d805d195481cb19179d272186c307e18369ea76 | [
"MIT"
] | null | null | null | presentation/src/main/java/com/test/grability/view/activity/MainActivity.kt | andresbelt/MarvelExample | 8d805d195481cb19179d272186c307e18369ea76 | [
"MIT"
] | null | null | null | package com.test.grability.view.activity
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.test.grability.R
import com.test.grability.base.BaseActivity
import com.test.grability.databinding.ActivityLoginBinding
import com.test.grability.databinding.ActivityMainBinding
class MainActiv... | 23.653846 | 61 | 0.770732 |
9c4f88fff83ae3228c24372d92b027f713b9c59b | 753 | js | JavaScript | components/Expbar/styles.js | jose-garzon/masterpath | cb2a8136b0e2afe620867c3b4baf4e07c70636c3 | [
"MIT"
] | null | null | null | components/Expbar/styles.js | jose-garzon/masterpath | cb2a8136b0e2afe620867c3b4baf4e07c70636c3 | [
"MIT"
] | 28 | 2020-12-18T03:31:25.000Z | 2020-12-19T23:00:46.000Z | components/Expbar/styles.js | hack-learning/masterpath_frontend | 8d1b8a0dd4fae4c5998dbd67ef955530ff26fc14 | [
"MIT"
] | null | null | null | // import Libraries
import styled from 'styled-components';
// import variables
import { colors, border } from '../../globalStyles/stylesVariables';
// ---------- COMPONENTS ---------- //
export const Bar = styled.main`
position: relative;
padding: 5px 40px;
text-align: center;
color: ${colors.white};
background... | 22.147059 | 68 | 0.64409 |
dd09a3ab7bfd50f6e89d71abca726c05ff28a45a | 340 | asm | Assembly | src/chips/UPD7759.asm | sharksym/vgmplay-sharksym | d7763b87a379da4e6dadcc55026969d310957952 | [
"BSD-2-Clause"
] | 6 | 2020-04-21T17:26:27.000Z | 2021-09-25T18:41:01.000Z | src/chips/UPD7759.asm | sharksym/vgmplay-sharksym | d7763b87a379da4e6dadcc55026969d310957952 | [
"BSD-2-Clause"
] | null | null | null | src/chips/UPD7759.asm | sharksym/vgmplay-sharksym | d7763b87a379da4e6dadcc55026969d310957952 | [
"BSD-2-Clause"
] | null | null | null | ;
; VGM UPD7759 chip
;
UPD7759: MACRO
super: Chip UPD7759_name, Header.uPD7759Clock, System_Return
ENDM
; ix = this
; iy = header
UPD7759_Construct: equ Chip_Construct
; jp Chip_Construct
; ix = this
UPD7759_Destruct: equ Chip_Destruct
; jp Chip_Destruct
;
SECTION RAM
UPD7759_instance: UPD7759
ENDS
UPD7759_na... | 13.076923 | 61 | 0.758824 |
67c5a27ba2b47f268716d1b1f229e9562da3363b | 2,996 | lua | Lua | src/mod/noafindskitten/data/map_template.lua | Ruin0x11/OpenNefia | 548f1a1442eca704bb1c16b1a1591d982a34919f | [
"MIT"
] | 109 | 2020-04-07T16:56:38.000Z | 2022-02-17T04:05:40.000Z | src/mod/noafindskitten/data/map_template.lua | Ruin0x11/OpenNefia | 548f1a1442eca704bb1c16b1a1591d982a34919f | [
"MIT"
] | 243 | 2020-04-07T08:25:15.000Z | 2021-10-30T07:22:10.000Z | src/mod/noafindskitten/data/map_template.lua | Ruin0x11/OpenNefia | 548f1a1442eca704bb1c16b1a1591d982a34919f | [
"MIT"
] | 15 | 2020-04-25T12:28:55.000Z | 2022-02-23T03:20:43.000Z | local InstancedMap = require("api.InstancedMap")
local Pos = require("api.Pos")
local Gui = require("api.Gui")
local I18N = require("api.I18N")
local Feat = require("api.Feat")
local Rand = require("api.Rand")
local Input = require("api.Input")
local Anim = require("mod.elona_sys.api.Anim")
local Color = require("mod.e... | 29.087379 | 127 | 0.646862 |
cb6fd862b26f5701a798f84fb660860482ce746c | 3,921 | go | Go | server/udp/session.go | millken/tcpwder | b6e34bad5919a930bd73e9e90b460984436273ed | [
"MIT"
] | 3 | 2019-03-08T14:14:08.000Z | 2022-02-09T09:23:39.000Z | server/udp/session.go | millken/tcpwder | b6e34bad5919a930bd73e9e90b460984436273ed | [
"MIT"
] | null | null | null | server/udp/session.go | millken/tcpwder | b6e34bad5919a930bd73e9e90b460984436273ed | [
"MIT"
] | 6 | 2017-08-23T13:49:39.000Z | 2022-02-09T09:23:42.000Z | /**
* session.go - udp "session"
*
* @author Illarion Kovalchuk <illarion.kovalchuk@gmail.com>
* @author Yaroslav Pogrebnyak <yyyaroslav@gmail.com>
*/
package udp
import (
"log"
"net"
"sync/atomic"
"time"
"github.com/millken/tcpwder/core"
"github.com/millken/tcpwder/server/scheduler"
)
/**
* Emulates UDP... | 19.033981 | 103 | 0.646009 |
afdd2f892950fa953e4cb95977aba47fb8acfb28 | 5,764 | kt | Kotlin | platform/elevation/daemon/src/com/intellij/execution/process/mediator/daemon/ProcessManager.kt | anatawa12/intellij-community | d2557a13699986aa174a8969952711130718e7a1 | [
"Apache-2.0"
] | null | null | null | platform/elevation/daemon/src/com/intellij/execution/process/mediator/daemon/ProcessManager.kt | anatawa12/intellij-community | d2557a13699986aa174a8969952711130718e7a1 | [
"Apache-2.0"
] | null | null | null | platform/elevation/daemon/src/com/intellij/execution/process/mediator/daemon/ProcessManager.kt | anatawa12/intellij-community | d2557a13699986aa174a8969952711130718e7a1 | [
"Apache-2.0"
] | null | null | null | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.execution.process.mediator.daemon
import com.google.protobuf.ByteString
import com.intellij.execution.process.mediator.daemon.FdConstants.STDERR
import com.i... | 31.497268 | 140 | 0.671929 |
9c76f906bbd794932320fe81ebbaf419020bf820 | 659 | js | JavaScript | src/_11ty/shortcodes/imgix.js | ddemaree/dd11ty | 43fc43574ac189f06b9d2783d691cea21be69bb1 | [
"MIT"
] | null | null | null | src/_11ty/shortcodes/imgix.js | ddemaree/dd11ty | 43fc43574ac189f06b9d2783d691cea21be69bb1 | [
"MIT"
] | 3 | 2021-06-09T15:14:20.000Z | 2021-06-22T02:47:05.000Z | src/_11ty/shortcodes/imgix.js | ddemaree/website | 43fc43574ac189f06b9d2783d691cea21be69bb1 | [
"MIT"
] | null | null | null | const _ = require('lodash');
const imgixClient = require('../imgixClient')
module.exports = (path, width=null, height=null, alt="Image for post") => {
let attrs = {}
const src = imgixClient.buildURL(path, {
w: width,
h: height
})
const srcset = imgixClient.buildSrcSet(
path,
{},
{
... | 18.828571 | 79 | 0.559939 |
8b88a3eb0c9be43f32691a05c6a6d74412bb4dcd | 565 | sql | SQL | kata-files/lesson2/postgresql/expected/MYLARGESCHEMA/function/func430.sql | goldmansachs/obevo-kata | 5596ff44ad560d89d183ac0941b727db1a2a7346 | [
"Apache-2.0"
] | 22 | 2017-09-28T21:35:04.000Z | 2022-02-12T06:24:28.000Z | kata-files/lesson2/postgresql/expected/MYLARGESCHEMA/function/func430.sql | goldmansachs/obevo-kata | 5596ff44ad560d89d183ac0941b727db1a2a7346 | [
"Apache-2.0"
] | 6 | 2017-07-01T13:52:34.000Z | 2018-09-13T15:43:47.000Z | kata-files/lesson2/postgresql/expected/MYLARGESCHEMA/function/func430.sql | goldmansachs/obevo-kata | 5596ff44ad560d89d183ac0941b727db1a2a7346 | [
"Apache-2.0"
] | 11 | 2017-04-30T18:39:09.000Z | 2021-08-22T16:21:11.000Z | CREATE FUNCTION func430() RETURNS integer
LANGUAGE plpgsql
AS $$ DECLARE val INTEGER; BEGIN val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE160);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE371);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE457);val:=(SELECT COUNT(*)INTO MYCOU... | 80.714286 | 496 | 0.773451 |
c3a1ef30209b0a842ecbd13219a25b8e2839af3d | 86 | sql | SQL | gcp-test/tests/gcp_compute_address/test-list-query.sql | xanonid/steampipe-plugin-gcp | f0e6a76233c367d227e4b80f142035f174ff4e46 | [
"Apache-2.0"
] | 10 | 2021-01-21T19:06:58.000Z | 2022-03-14T06:25:51.000Z | gcp-test/tests/gcp_compute_address/test-list-query.sql | Leectan/steampipe-plugin-gcp | c000c1e234fd53e2c52243a44f64d0856bf6f60f | [
"Apache-2.0"
] | 191 | 2021-01-22T07:14:32.000Z | 2022-03-30T15:44:33.000Z | gcp-test/tests/gcp_compute_address/test-list-query.sql | Leectan/steampipe-plugin-gcp | c000c1e234fd53e2c52243a44f64d0856bf6f60f | [
"Apache-2.0"
] | 6 | 2021-05-04T21:29:31.000Z | 2021-11-11T20:21:03.000Z | select name, description
from gcp.gcp_compute_address
where title = '{{resourceName}}' | 28.666667 | 32 | 0.802326 |
ce667b4f3c12c57557ffb88b08c140040f2ac337 | 902 | asm | Assembly | programs/oeis/027/A027659.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/027/A027659.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/027/A027659.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A027659: a(n) = binomial(n+2,2) + binomial(n+3,3) + binomial(n+4,4) + binomial(n+5,5).
; 4,18,52,121,246,455,784,1278,1992,2992,4356,6175,8554,11613,15488,20332,26316,33630,42484,53109,65758,80707,98256,118730,142480,169884,201348,237307,278226,324601,376960,435864,501908,575722,657972,749361,850630,962559,1085968,12... | 90.2 | 754 | 0.815965 |
e8e29b7b8972a06149daa7c111affc519cbc1ff4 | 629 | py | Python | FormulaAccordingPrint.py | FreeBirdsCrew/Brainstorming_Codes | 9d06216cd0772ce56586acff2c240a210b94ba1f | [
"Apache-2.0"
] | 1 | 2020-12-11T10:24:08.000Z | 2020-12-11T10:24:08.000Z | FormulaAccordingPrint.py | FreeBirdsCrew/Brainstorming_Codes | 9d06216cd0772ce56586acff2c240a210b94ba1f | [
"Apache-2.0"
] | null | null | null | FormulaAccordingPrint.py | FreeBirdsCrew/Brainstorming_Codes | 9d06216cd0772ce56586acff2c240a210b94ba1f | [
"Apache-2.0"
] | null | null | null | """
Write a program that calculates and prints the value according to the given formula:
Q = Square root of [(2 * C * D)/H]
Following are the fixed values of C and H:
C is 50. H is 30.
D is the variable whose values should be input to your program in a comma-separated sequence.
Example
Let us assume the followin... | 28.590909 | 94 | 0.694754 |
f5c8d5b28c1cabb40471ee36053b2cf3cb8e06f1 | 478 | lua | Lua | db.lua | minetest-mods/turtle | bd7d49f1843c7e35a0e6647ef19bb6b7cae61f3c | [
"MIT"
] | 9 | 2016-03-15T05:11:35.000Z | 2022-02-06T04:13:03.000Z | db.lua | minetest-mods/turtle | bd7d49f1843c7e35a0e6647ef19bb6b7cae61f3c | [
"MIT"
] | 1 | 2016-01-31T02:43:55.000Z | 2016-01-31T14:13:10.000Z | db.lua | Novatux/turtle | bd7d49f1843c7e35a0e6647ef19bb6b7cae61f3c | [
"MIT"
] | 2 | 2016-01-26T21:04:28.000Z | 2022-03-05T16:47:32.000Z | db = {}
local worldpath = minetest.get_worldpath() .. "/"
function db.read_file(filename)
local file = io.open(worldpath .. filename, "r")
if file == nil then
return {}
end
local contents = file:read("*all")
file:close()
if contents == "" or contents == nil then
return {}
end
return minetest.deserialize(co... | 21.727273 | 49 | 0.692469 |
bef82410ebdce954f037259d9ca00e36eb6cf26a | 220 | html | HTML | src/app/components/surface/surface.component.html | hamzakilic/wjimg | d2960c1bd23e0f4366299cc183168a764e1cc9fe | [
"Apache-2.0"
] | 2 | 2018-04-16T17:34:12.000Z | 2018-12-03T01:03:27.000Z | src/app/components/surface/surface.component.html | hamzakilic/photoedit_app | d2960c1bd23e0f4366299cc183168a764e1cc9fe | [
"Apache-2.0"
] | 12 | 2017-04-15T19:30:39.000Z | 2018-01-02T15:06:42.000Z | src/app/components/surface/surface.component.html | hamzakilic/wjimg | d2960c1bd23e0f4366299cc183168a764e1cc9fe | [
"Apache-2.0"
] | null | null | null |
<canvas #renderCanvas class="canvas"
[(attr.width)]="surface.width" [(style.width.px)]="surface.width*surface.scale"
[(attr.height)]="surface.height" [(style.height.px)]="surface.height*surface.scale" >
</canvas>
| 24.444444 | 86 | 0.695455 |
fef2f39b4029c211a794b38e85c932ee09087162 | 902 | html | HTML | Pulicat/_vti_cnf/action.html | vu2ow/vu2ow.github.io | bae8f04a89ebfe0c5ad9953e6962f8b11db7227e | [
"Unlicense"
] | null | null | null | Pulicat/_vti_cnf/action.html | vu2ow/vu2ow.github.io | bae8f04a89ebfe0c5ad9953e6962f8b11db7227e | [
"Unlicense"
] | null | null | null | Pulicat/_vti_cnf/action.html | vu2ow/vu2ow.github.io | bae8f04a89ebfe0c5ad9953e6962f8b11db7227e | [
"Unlicense"
] | null | null | null | vti_encoding:SR|utf8-nl
vti_timelastmodified:TR|31 Jul 2015 14:50:44 -0000
vti_extenderversion:SR|12.0.0.0
vti_author:SR|VU3RGK\\kc2kb
vti_modifiedby:SR|VU3RGK\\kc2kb
vti_timecreated:TR|31 Jul 2015 14:50:44 -0000
vti_cacheddtm:TX|31 Jul 2015 14:50:44 -0000
vti_filesize:IR|1813
vti_cachedtitle:SR|Untitled 1
vti_cachedbo... | 42.952381 | 203 | 0.834812 |
0033860216a5b2d31a5b0555aff2ebb229b3f111 | 136 | swift | Swift | Examples/Example-iOS/Sources/Common/UITableViewExtension.swift | swaromik/Carbon | 9dd7d8ba046010cc33a9d685661c26ade49b76fe | [
"Apache-2.0"
] | 1 | 2019-07-22T17:33:46.000Z | 2019-07-22T17:33:46.000Z | Examples/Example-iOS/Sources/Common/UITableViewExtension.swift | swaromik/Carbon | 9dd7d8ba046010cc33a9d685661c26ade49b76fe | [
"Apache-2.0"
] | null | null | null | Examples/Example-iOS/Sources/Common/UITableViewExtension.swift | swaromik/Carbon | 9dd7d8ba046010cc33a9d685661c26ade49b76fe | [
"Apache-2.0"
] | null | null | null | import UIKit
extension UITableView {
open override func touchesShouldCancel(in view: UIView) -> Bool {
return true
}
}
| 17 | 69 | 0.676471 |
2bb495fa1d8ce642bcba8593e5419ddcb34efca6 | 662 | asm | Assembly | programs/oeis/034/A034108.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/034/A034108.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/034/A034108.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A034108: Fractional part of square root of a(n) starts with 2: first term of runs.
; 5,18,28,39,52,68,85,105,126,149,175,202,232,263,296,332,369,409,450,493,539,586,636,687,740,796,853,913,974,1037,1103,1170,1240,1311,1384,1460,1537,1617,1698,1781,1867,1954,2044,2135,2228,2324,2421,2521,2622
mov $7,$0
mul $0,2
mov $... | 15.761905 | 209 | 0.60423 |
6b4bc973a026a487da4c77d811af7630b3524a27 | 7,615 | h | C | third_party/gecko-16/win32/include/nsIScreen.h | bwp/SeleniumWebDriver | 58221fbe59fcbbde9d9a033a95d45d576b422747 | [
"Apache-2.0"
] | 1 | 2018-02-05T04:23:18.000Z | 2018-02-05T04:23:18.000Z | third_party/gecko-16/win32/include/nsIScreen.h | bwp/SeleniumWebDriver | 58221fbe59fcbbde9d9a033a95d45d576b422747 | [
"Apache-2.0"
] | null | null | null | third_party/gecko-16/win32/include/nsIScreen.h | bwp/SeleniumWebDriver | 58221fbe59fcbbde9d9a033a95d45d576b422747 | [
"Apache-2.0"
] | null | null | null | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM e:/builds/moz2_slave/rel-m-rel-xr-w32-bld/build/widget/nsIScreen.idl
*/
#ifndef __gen_nsIScreen_h__
#define __gen_nsIScreen_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_... | 41.840659 | 238 | 0.778726 |
3be187b0b4e7933536a1ad9b827b103021d8fe34 | 2,973 | kt | Kotlin | plugins/api/src/main/kotlin/org/rsmod/plugins/api/protocol/codec/js5/Js5Decoder.kt | Rune-Server/rsmod-1 | 533909dbcf2153b472714beb52b3eb3238850a48 | [
"0BSD"
] | null | null | null | plugins/api/src/main/kotlin/org/rsmod/plugins/api/protocol/codec/js5/Js5Decoder.kt | Rune-Server/rsmod-1 | 533909dbcf2153b472714beb52b3eb3238850a48 | [
"0BSD"
] | null | null | null | plugins/api/src/main/kotlin/org/rsmod/plugins/api/protocol/codec/js5/Js5Decoder.kt | Rune-Server/rsmod-1 | 533909dbcf2153b472714beb52b3eb3238850a48 | [
"0BSD"
] | null | null | null | package org.rsmod.plugins.api.protocol.codec.js5
import com.github.michaelbull.logging.InlineLogger
import io.netty.buffer.ByteBuf
import io.netty.channel.Channel
import io.netty.channel.ChannelHandlerContext
import io.netty.handler.codec.ByteToMessageDecoder
import org.rsmod.plugins.api.protocol.codec.ResponseType
im... | 32.67033 | 89 | 0.635049 |
23022c89b531b74add6d9f3c3659ad04541aafcb | 1,561 | kt | Kotlin | src/main/kotlin/com/sergeysav/voxel/client/screen/loading/LoadingUI.kt | SergeySave/Voxel | 446f91f11661f1b87e1fb7b2f533f9e24b45704e | [
"MIT"
] | null | null | null | src/main/kotlin/com/sergeysav/voxel/client/screen/loading/LoadingUI.kt | SergeySave/Voxel | 446f91f11661f1b87e1fb7b2f533f9e24b45704e | [
"MIT"
] | null | null | null | src/main/kotlin/com/sergeysav/voxel/client/screen/loading/LoadingUI.kt | SergeySave/Voxel | 446f91f11661f1b87e1fb7b2f533f9e24b45704e | [
"MIT"
] | null | null | null | package com.sergeysav.voxel.client.screen.loading
import com.sergeysav.voxel.client.nuklear.Gui
import com.sergeysav.voxel.client.nuklear.GuiWindow
import com.sergeysav.voxel.client.nuklear.HAlign
import com.sergeysav.voxel.common.Voxel
import org.lwjgl.nuklear.Nuklear
/**
* @author sergeys
*
* @constructor Create... | 36.302326 | 122 | 0.574632 |
f5a2e263d25e7c6612696fc01c9bb197b7040dcf | 1,349 | rs | Rust | src/libstd/sys/vxworks/fast_thread_local.rs | MOZGIII/rust | e3976fff44e6ce14c2f92252e6a807800b9aa7c0 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 15 | 2015-12-17T18:20:31.000Z | 2019-12-10T20:07:24.000Z | src/libstd/sys/vxworks/fast_thread_local.rs | MOZGIII/rust | e3976fff44e6ce14c2f92252e6a807800b9aa7c0 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 8 | 2017-03-16T17:51:46.000Z | 2017-07-18T01:47:29.000Z | src/libstd/sys/vxworks/fast_thread_local.rs | MOZGIII/rust | e3976fff44e6ce14c2f92252e6a807800b9aa7c0 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 10 | 2016-12-13T07:07:21.000Z | 2022-03-20T06:08:58.000Z | #![cfg(target_thread_local)]
#![unstable(feature = "thread_local_internals", issue = "0")]
// Since what appears to be glibc 2.18 this symbol has been shipped which
// GCC and clang both use to invoke destructors in thread_local globals, so
// let's do the same!
//
// Note, however, that we run on lots older linuxes, ... | 36.459459 | 75 | 0.640474 |
bb994ed8b18b232e424dbc14be5372160507fcfd | 5,174 | rs | Rust | src/rust/iced-x86/src/decoder/handlers_fpu.rs | Ralith/iced | 76f4101c5eb19e190d21a8d0c8d1e615636f0753 | [
"MIT"
] | 1 | 2021-01-13T07:21:32.000Z | 2021-01-13T07:21:32.000Z | src/rust/iced-x86/src/decoder/handlers_fpu.rs | Ralith/iced | 76f4101c5eb19e190d21a8d0c8d1e615636f0753 | [
"MIT"
] | null | null | null | src/rust/iced-x86/src/decoder/handlers_fpu.rs | Ralith/iced | 76f4101c5eb19e190d21a8d0c8d1e615636f0753 | [
"MIT"
] | null | null | null | /*
Copyright (C) 2018-2019 de4dot@gmail.com
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distr... | 38.902256 | 115 | 0.763626 |
7a917740e05f6c6e3675b06eaccb07ffe2e2a859 | 703 | rs | Rust | src/efuse/efuse_int_raw.rs | ducktec/esp32c3 | 64b9547e200a3ee7e6587d81178be8732e99bee9 | [
"Apache-2.0",
"MIT"
] | null | null | null | src/efuse/efuse_int_raw.rs | ducktec/esp32c3 | 64b9547e200a3ee7e6587d81178be8732e99bee9 | [
"Apache-2.0",
"MIT"
] | null | null | null | src/efuse/efuse_int_raw.rs | ducktec/esp32c3 | 64b9547e200a3ee7e6587d81178be8732e99bee9 | [
"Apache-2.0",
"MIT"
] | null | null | null | #[doc = "Reader of register EFUSE_INT_RAW"]
pub type R = crate::R<u32, super::EFUSE_INT_RAW>;
#[doc = "Reader of field `EFUSE_PGM_DONE_INT_RAW`"]
pub type EFUSE_PGM_DONE_INT_RAW_R = crate::R<bool, bool>;
#[doc = "Reader of field `EFUSE_READ_DONE_INT_RAW`"]
pub type EFUSE_READ_DONE_INT_RAW_R = crate::R<bool, bool>;
impl... | 37 | 72 | 0.671408 |
8c94df4da911d834988f60373b47f3960029885a | 627 | asm | Assembly | oeis/100/A100178.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/100/A100178.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/100/A100178.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A100178: Structured hexagonal diamond numbers (vertex structure 5).
; 1,8,29,72,145,256,413,624,897,1240,1661,2168,2769,3472,4285,5216,6273,7464,8797,10280,11921,13728,15709,17872,20225,22776,25533,28504,31697,35120,38781,42688,46849,51272,55965,60936,66193,71744,77597,83760,90241,97048,104189,111672,119505,127696,13... | 62.7 | 499 | 0.800638 |
b5dc99cc56bd473ab3ff07ca7c25a3bfdc9fc207 | 2,616 | asm | Assembly | 3-Assemble(80x86)/lab-1/lab1.asm | ftxj/4th-Semester | 1d5c7e7e028176524bdafc64078775d42b73b51c | [
"MIT"
] | null | null | null | 3-Assemble(80x86)/lab-1/lab1.asm | ftxj/4th-Semester | 1d5c7e7e028176524bdafc64078775d42b73b51c | [
"MIT"
] | null | null | null | 3-Assemble(80x86)/lab-1/lab1.asm | ftxj/4th-Semester | 1d5c7e7e028176524bdafc64078775d42b73b51c | [
"MIT"
] | null | null | null | ;.386
STACK SEGMENT ;USE16 STACK
DB 300 DUP(0)
STACK ENDS
DATA SEGMENT; USE16
N EQU 30
POIN DW 0
BUF DB 'zhangsan', 0, 0
DB 100, 85, 80, ?
DB 'lisi', 6 DUP(0)
DB 80, 100, 70, ?
DB 'B',0,0,0,0,0,0,0,0,0
DB 10, 20, 12, ?
DB N-4 DUP('TempValue',0, 80, 90, 95, ?)
DB 'xinji... | 13.84127 | 49 | 0.570336 |
be8970cb3018c5498733a7e0c820cca277b6aea8 | 9,263 | kt | Kotlin | datacapture/src/main/java/com/google/android/fhir/datacapture/QuestionnaireViewModel.kt | jingtang10/android-fhir | 80a9de1813df8ba95c7413a2e13f96e73d41afb2 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | datacapture/src/main/java/com/google/android/fhir/datacapture/QuestionnaireViewModel.kt | jingtang10/android-fhir | 80a9de1813df8ba95c7413a2e13f96e73d41afb2 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | datacapture/src/main/java/com/google/android/fhir/datacapture/QuestionnaireViewModel.kt | jingtang10/android-fhir | 80a9de1813df8ba95c7413a2e13f96e73d41afb2 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Copyright 2020 Google 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... | 44.533654 | 127 | 0.768002 |
b8990a433ead2a2574955f31a541c7da37713840 | 4,107 | rs | Rust | src/profile/messages/totals.rs | thegedge/fittle | 350feef2faaac7d66985ab5eb2274c9d039ce22f | [
"MIT"
] | 2 | 2019-03-17T15:50:55.000Z | 2019-03-18T05:27:34.000Z | src/profile/messages/totals.rs | thegedge/fittle | 350feef2faaac7d66985ab5eb2274c9d039ce22f | [
"MIT"
] | null | null | null | src/profile/messages/totals.rs | thegedge/fittle | 350feef2faaac7d66985ab5eb2274c9d039ce22f | [
"MIT"
] | null | null | null | // DO NOT EDIT -- generated code
use byteorder::{
ByteOrder,
ReadBytesExt
};
use serde::Serialize;
#[allow(unused_imports)]
use crate::bits::BitReader;
#[allow(unused_imports)]
use crate::fields::{
Field,
FieldContent,
FieldDefinition,
};
#[derive(Debug, Default, Serialize)]
pub struct Totals {... | 28.324138 | 93 | 0.475043 |
bfcf6b6ddd6e7623fbc90a42affde0bf66769505 | 7,926 | rs | Rust | src/lib.rs | ZenGo-X/kms-ed25519 | 702cf7f50bb5824be1ef1258db23678660555f9a | [
"MIT"
] | null | null | null | src/lib.rs | ZenGo-X/kms-ed25519 | 702cf7f50bb5824be1ef1258db23678660555f9a | [
"MIT"
] | null | null | null | src/lib.rs | ZenGo-X/kms-ed25519 | 702cf7f50bb5824be1ef1258db23678660555f9a | [
"MIT"
] | null | null | null | //! # KMS-Edwards25519
//! The `kms-edwards25519` crate is intended to provide an HD-wallet functionality
//! working in a [BIP-32](https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki)
//! like fashion for [Ed25519](https://datatracker.ietf.org/doc/html/rfc8032) keys.
//!
//! **This crate supports only non-h... | 41.28125 | 179 | 0.652031 |
7d861c26e354d18007669aabaa8aee8ac8615f3a | 2,304 | html | HTML | packages/300_template_src/_includes/themes/j1/modules/connectors/ad/google-adsense.html | jekyll-one-org/j1-template | 48b71df38a06a5e6058370ccd703af3cb3b4d395 | [
"MIT"
] | null | null | null | packages/300_template_src/_includes/themes/j1/modules/connectors/ad/google-adsense.html | jekyll-one-org/j1-template | 48b71df38a06a5e6058370ccd703af3cb3b4d395 | [
"MIT"
] | 3 | 2020-06-17T08:52:10.000Z | 2021-08-11T16:54:22.000Z | packages/300_template_src/_includes/themes/j1/modules/connectors/ad/google-adsense.html | jekyll-one-org/j1-template | 48b71df38a06a5e6058370ccd703af3cb3b4d395 | [
"MIT"
] | 1 | 2021-06-29T18:02:26.000Z | 2021-06-29T18:02:26.000Z | {% comment %}
# -----------------------------------------------------------------------------
# ~/_includes/themes/j1/procedures/provider/ad/google-adsense.html
# Support of advertising provider Google Adsense for J1 Template
#
# Product/Info:
# http://jekyll.one
#
# Copyright (C) 2021 Juergen Adams
#
# ... | 41.142857 | 97 | 0.447483 |
8ada68683c80f9bbace366712c2700f068e1482d | 543 | sql | SQL | hello-max-file-up/src/main/resources/sql/upload_file.sql | xiaoashuo/base | 366e225251dd4c95c34dfa7bc33cebb59e7dbc3d | [
"Apache-2.0"
] | 1 | 2021-08-11T05:07:49.000Z | 2021-08-11T05:07:49.000Z | hello-max-file-up/src/main/resources/sql/upload_file.sql | xiaoashuo/base | 366e225251dd4c95c34dfa7bc33cebb59e7dbc3d | [
"Apache-2.0"
] | null | null | null | hello-max-file-up/src/main/resources/sql/upload_file.sql | xiaoashuo/base | 366e225251dd4c95c34dfa7bc33cebb59e7dbc3d | [
"Apache-2.0"
] | 10 | 2020-05-28T06:43:33.000Z | 2021-11-03T01:32:37.000Z | CREATE TABLE `upload_file` (
`file_id` VARCHAR(32) NOT NULL,
`file_path` VARCHAR(128) NOT NULL COMMENT '文件存储路径',
`file_size` VARCHAR(32) NOT NULL COMMENT '文件大小',
`file_suffix` VARCHAR(25) NOT NULL COMMENT '文件后缀',
`file_name` VARCHAR(32) NOT NULL COMMENT '文件名',
`file_md5` VARCHAR(32) NOT NULL COM... | 41.769231 | 58 | 0.686924 |
7f242a3d0900d8e198a8441cba1e3c6e090196db | 1,711 | go | Go | config.go | minodisk/go-tree | 4359fe8378dbd0dece75189226f653e5479054a6 | [
"MIT"
] | null | null | null | config.go | minodisk/go-tree | 4359fe8378dbd0dece75189226f653e5479054a6 | [
"MIT"
] | 1 | 2017-01-17T12:06:17.000Z | 2017-01-17T12:06:17.000Z | config.go | minodisk/go-tree | 4359fe8378dbd0dece75189226f653e5479054a6 | [
"MIT"
] | null | null | null | package tree
import (
"os/user"
"path/filepath"
"regexp"
)
var (
ConfigDefault = &Config{
Indent: " ",
PrefixDirOpened: "-",
PrefixDirClosed: "+",
PrefixFile: "|",
PrefixSelected: "*",
PostfixDir: "/",
RegexpProject: `^(?:\.git)$`,
}
)
func init() {
if err := func() error {
... | 18.597826 | 72 | 0.656926 |
d85d1fa41bdefa15ec09d62c6bf10684f6d1aa95 | 2,229 | swift | Swift | Fokus/Focus/FocusController.swift | dnlggr/Fokus | 7efba4c63fa963e8e3d3fd0d78638285e1b6c207 | [
"MIT"
] | 3 | 2018-11-12T14:47:08.000Z | 2019-08-06T18:21:53.000Z | Fokus/Focus/FocusController.swift | dnlggr/Fokus | 7efba4c63fa963e8e3d3fd0d78638285e1b6c207 | [
"MIT"
] | null | null | null | Fokus/Focus/FocusController.swift | dnlggr/Fokus | 7efba4c63fa963e8e3d3fd0d78638285e1b6c207 | [
"MIT"
] | null | null | null | //
// FocusController.swift
// Fokus
//
// Created by Daniel on 01.09.18.
// Copyright © 2018 Daniel Egger. All rights reserved.
//
import Cocoa
import WindowLayout
class FocusController {
// MARK: Initialization
init() { }
// MARK: API
func focusLeft() {
moveFocus(toward: .west)
}... | 29.328947 | 103 | 0.6559 |
9c144a128c2cfc04978db96c4592e52afc946dd4 | 891 | js | JavaScript | sources/task/queries/tasksQueryHandler.spec.js | MichaelBorde/todo-list-api | 67ea6e73fc2554c42b8b99b66e38310deb770b66 | [
"MIT"
] | null | null | null | sources/task/queries/tasksQueryHandler.spec.js | MichaelBorde/todo-list-api | 67ea6e73fc2554c42b8b99b66e38310deb770b66 | [
"MIT"
] | null | null | null | sources/task/queries/tasksQueryHandler.spec.js | MichaelBorde/todo-list-api | 67ea6e73fc2554c42b8b99b66e38310deb770b66 | [
"MIT"
] | null | null | null | 'use strict';
require('chai').should();
var MemoryDatabase = require('@arpinum/backend').MemoryDatabase;
var TaskProjection = require('../projections/TaskProjection');
var tasksQueryHandler = require('./tasksQueryHandler');
describe('The tasks query handler', function () {
var handler;
var database;
beforeEac... | 25.457143 | 70 | 0.634119 |
13ff2e351718ba8443d41424a3be15bb39a14bc7 | 304 | kt | Kotlin | src/main/kotlin/com/github/breadmoirai/ttsexplorer/model/VectorLines.kt | BreadMoirai/TTSExplorer | 975cd4dcdc3d1e206db8a1c92314fa1946ee8d81 | [
"Apache-2.0"
] | null | null | null | src/main/kotlin/com/github/breadmoirai/ttsexplorer/model/VectorLines.kt | BreadMoirai/TTSExplorer | 975cd4dcdc3d1e206db8a1c92314fa1946ee8d81 | [
"Apache-2.0"
] | null | null | null | src/main/kotlin/com/github/breadmoirai/ttsexplorer/model/VectorLines.kt | BreadMoirai/TTSExplorer | 975cd4dcdc3d1e206db8a1c92314fa1946ee8d81 | [
"Apache-2.0"
] | null | null | null | package com.github.breadmoirai.ttsexplorer.model
import com.squareup.moshi.Json
data class VectorLines(
@Json(name = "points3") val points3: List<Vector3>,
@Json(name = "color") val color: Color,
@Json(name = "thickness") val thickness: Double,
@Json(name = "loop") val loop: Boolean?
) | 30.4 | 55 | 0.697368 |
9a542c3d53d6149d857f830bee1e2251b6bfceef | 1,799 | swift | Swift | Example/YahooWather/YahooWather/ViewController.swift | beekpr/EasyTheme | 0ea47fd730517058fd0cf0bbe9acdeaf5c3c65fa | [
"MIT"
] | 217 | 2017-06-06T17:20:49.000Z | 2020-01-23T04:05:05.000Z | Example/YahooWather/YahooWather/ViewController.swift | beekpr/EasyTheme | 0ea47fd730517058fd0cf0bbe9acdeaf5c3c65fa | [
"MIT"
] | 6 | 2017-06-04T16:14:40.000Z | 2019-07-22T16:34:04.000Z | Example/YahooWather/YahooWather/ViewController.swift | beekpr/EasyTheme | 0ea47fd730517058fd0cf0bbe9acdeaf5c3c65fa | [
"MIT"
] | 21 | 2017-06-06T19:30:11.000Z | 2020-01-01T04:20:50.000Z | import UIKit
import Themes
import DayNightSwitch
struct MyTheme: Theme {
let image: UIImage
let textColor: UIColor
init(image: UIImage, textColor: UIColor) {
self.image = image
self.textColor = textColor
}
}
struct ThemeList {
static let day = MyTheme(image: UIImage(named: "day")!, textColor: UICol... | 28.109375 | 87 | 0.648694 |
598ec75bbefdb667fda8699c075da902b9fd6d99 | 322 | kt | Kotlin | mongokrypt-shared/src/main/kotlin/com/mongokrypt/shared/MongoKryptConstants.kt | JacobRhiel/mongo-krypt | 91d52404f706ca5b8fb87cf9e8174f630bfab0db | [
"MIT"
] | null | null | null | mongokrypt-shared/src/main/kotlin/com/mongokrypt/shared/MongoKryptConstants.kt | JacobRhiel/mongo-krypt | 91d52404f706ca5b8fb87cf9e8174f630bfab0db | [
"MIT"
] | null | null | null | mongokrypt-shared/src/main/kotlin/com/mongokrypt/shared/MongoKryptConstants.kt | JacobRhiel/mongo-krypt | 91d52404f706ca5b8fb87cf9e8174f630bfab0db | [
"MIT"
] | null | null | null | package com.mongokrypt.shared
import com.mongokrypt.shared.schema.algorithm.EncryptionAlgorithm
/**
* @author Jacob Rhiel <jacob.rhiel@gmail.com>
* @created Jul 16, 2021
*/
object MongoKryptConstants {
val possibleAlgorithms = setOf(EncryptionAlgorithm.Deterministic::class, EncryptionAlgorithm.Random::class)
... | 24.769231 | 111 | 0.785714 |
decf3502048172c72f835a4d3a3233e13fdf8e71 | 182 | rs | Rust | ref/7 Statements and expressions/7.2 Expressions/7.2.15 Lambda expressions/1 Mutable closures./lib.rs | Kha/rustabelle | bd4655d91ca65856fb8373637ce3e7b17ee3a190 | [
"Apache-2.0"
] | 295 | 2016-06-29T03:43:22.000Z | 2022-03-26T21:37:52.000Z | ref/7 Statements and expressions/7.2 Expressions/7.2.15 Lambda expressions/1 Mutable closures./lib.rs | Kha/rustabelle | bd4655d91ca65856fb8373637ce3e7b17ee3a190 | [
"Apache-2.0"
] | 3 | 2016-09-16T14:19:27.000Z | 2018-02-05T13:32:34.000Z | ref/7 Statements and expressions/7.2 Expressions/7.2.15 Lambda expressions/1 Mutable closures./lib.rs | Kha/rustabelle | bd4655d91ca65856fb8373637ce3e7b17ee3a190 | [
"Apache-2.0"
] | 7 | 2016-07-23T19:32:02.000Z | 2020-07-05T18:47:04.000Z | fn apply<T, F: FnMut(T) -> T>(mut f: F, x: T) -> T {
let y = f(x);
f(y)
}
fn foo(x: i32, mut y: i32) -> i32 {
apply(move |x| {
y += 1;
x + y
}, x)
}
| 15.166667 | 52 | 0.362637 |
0b72b6b59c7098297806590340d0f99c8c866547 | 426 | py | Python | chartconvert/mpp.py | e-sailing/avnav | b3e8df4d6fa122b05309eee09197c716e29b64ec | [
"MIT"
] | null | null | null | chartconvert/mpp.py | e-sailing/avnav | b3e8df4d6fa122b05309eee09197c716e29b64ec | [
"MIT"
] | null | null | null | chartconvert/mpp.py | e-sailing/avnav | b3e8df4d6fa122b05309eee09197c716e29b64ec | [
"MIT"
] | null | null | null | #! /usr/bin/env python
#
# vim: ts=2 sw=2 et
#
import sys
#from wx.py.crust import Display
inchpm=39.3700
dpi=100
if len(sys.argv) >1:
dpi=int(sys.argv[1])
displaympp=1/(float(dpi)*inchpm)
print "display mpp=%f"%(displaympp)
mpp= 20037508.342789244 * 2 / 256
print "Level : mpp \t\t: scale"
for i in ra... | 16.384615 | 54 | 0.638498 |
74df56df940ef4af46fce3b42e59aeb91278a604 | 50,122 | js | JavaScript | app/assets/js/custom.js | cheenbabes/bbt-ngjs1 | 79a3a05b882bf7d22d2b7cdd9a4d8210d9cbdfb7 | [
"MIT"
] | null | null | null | app/assets/js/custom.js | cheenbabes/bbt-ngjs1 | 79a3a05b882bf7d22d2b7cdd9a4d8210d9cbdfb7 | [
"MIT"
] | 1 | 2018-05-08T19:30:16.000Z | 2018-05-08T19:30:16.000Z | app/assets/js/custom.js | cheenbabes/bbt-ngjs1 | 79a3a05b882bf7d22d2b7cdd9a4d8210d9cbdfb7 | [
"MIT"
] | 1 | 2018-05-08T18:32:41.000Z | 2018-05-08T18:32:41.000Z | /*!
*
* Angle - Bootstrap Admin App + jQuery
*
* Version: 3.8.8
* Author: @themicon_co
* Website: http://themicon.co
* License: https://wrapbootstrap.com/help/licenses
*
*/
!function(e,t,o,a){if(void 0===o)throw new Error("This application's JavaScript requires jQuery");o.localStorage=Storages.localStorage,o(f... | 4,556.545455 | 49,940 | 0.683093 |
1204b9476193d9b7a55bfa796e3b52f0b2b8a1c3 | 1,026 | kt | Kotlin | src/main/kotlin/de/sambalmueslie/games/hll/tool/game/db/TranslationEntryRepository.kt | sambalmueslie/hll-tool | a67a6acefeb38b341bc87d24c5e44157349a62a5 | [
"Apache-2.0"
] | null | null | null | src/main/kotlin/de/sambalmueslie/games/hll/tool/game/db/TranslationEntryRepository.kt | sambalmueslie/hll-tool | a67a6acefeb38b341bc87d24c5e44157349a62a5 | [
"Apache-2.0"
] | 6 | 2022-02-22T22:02:57.000Z | 2022-03-24T23:11:22.000Z | src/main/kotlin/de/sambalmueslie/games/hll/tool/game/db/TranslationEntryRepository.kt | sambalmueslie/hll-tool | a67a6acefeb38b341bc87d24c5e44157349a62a5 | [
"Apache-2.0"
] | 1 | 2021-12-19T22:14:38.000Z | 2021-12-19T22:14:38.000Z | package de.sambalmueslie.games.hll.tool.game.db
import io.micronaut.data.annotation.Query
import io.micronaut.data.annotation.Repository
import io.micronaut.data.jdbc.annotation.JdbcRepository
import io.micronaut.data.model.Page
import io.micronaut.data.model.Pageable
import io.micronaut.data.model.query.builder.sql.D... | 44.608696 | 149 | 0.815789 |
f08d6a5ab818812444812ca4dc80526029133be3 | 5,649 | js | JavaScript | brototype.js | letsgetrandy/brototype | 731b02f614971341e6677adc763cb3efafb64c35 | [
"MIT"
] | 945 | 2015-01-07T12:28:39.000Z | 2022-03-29T02:40:45.000Z | brototype.js | letsgetrandy/brototype | 731b02f614971341e6677adc763cb3efafb64c35 | [
"MIT"
] | 31 | 2015-01-05T23:35:30.000Z | 2021-03-22T05:49:34.000Z | brototype.js | letsgetrandy/brototype | 731b02f614971341e6677adc763cb3efafb64c35 | [
"MIT"
] | 48 | 2015-01-27T12:20:10.000Z | 2021-12-06T12:07:26.000Z | /*global module:true, window:true, require:false, define:false*/
(function() {
'use strict';
// Bromise... it's stronger than a Promise
function Bromise(object, method, args) {
this.object = object;
this.method = method;
this.args = args.length > 1 ? args.slice(1) : [];
}
B... | 32.096591 | 130 | 0.438485 |
1e4a7d298f3670aa1cd8f7f92260c244a4f12f4a | 402 | css | CSS | V9 (CSS)/meiryoui.css | MasterDalK/kktCSS | 8592874732c352baccece088b47fbaae40b11bb6 | [
"MIT"
] | 27 | 2017-04-16T03:13:34.000Z | 2020-06-30T00:37:25.000Z | V9 (CSS)/meiryoui.css | MasterDalK/kktCSS | 8592874732c352baccece088b47fbaae40b11bb6 | [
"MIT"
] | 46 | 2017-04-16T04:48:22.000Z | 2020-04-07T20:44:46.000Z | V9 (CSS)/meiryoui.css | MasterDalK/kktCSS | 8592874732c352baccece088b47fbaae40b11bb6 | [
"MIT"
] | 8 | 2017-04-16T03:41:15.000Z | 2017-08-13T18:10:18.000Z | @font-face {
font-family: 'Meiryo UI';
font-style: normal;
font-weight: normal;
letter-spacing: .1em;
padding: 1em;
}
@media screen and (-webkit-min-device-pixel-ratio:0) {
@font-face {
font-family: 'Meiryo UI';
letter-spacing: .1em;
padding: 1em;
}
}
body {
font-family: "Meiryo UI";
fon... | 16.75 | 54 | 0.631841 |
7564b1bed71d63edf90f7ca9438f83ca113edfcb | 334 | h | C | Example/Pods/Headers/Private/PandaFMDB/OPFTableProtocol.h | lingen/PandaFMDB | a76251063b6eac3f367e2299e56f9a61b053f584 | [
"MIT"
] | null | null | null | Example/Pods/Headers/Private/PandaFMDB/OPFTableProtocol.h | lingen/PandaFMDB | a76251063b6eac3f367e2299e56f9a61b053f584 | [
"MIT"
] | null | null | null | Example/Pods/Headers/Private/PandaFMDB/OPFTableProtocol.h | lingen/PandaFMDB | a76251063b6eac3f367e2299e56f9a61b053f584 | [
"MIT"
] | null | null | null | //
// OPTableProtocol.h
// Pods
//
// Created by lingen on 16/3/21.
//
//
#import <Foundation/Foundation.h>
@class OPFTable;
@protocol OPFTableProtocol <NSObject>
@required
/*
* 实现此方法,用于数据库表的创建
*/
+(OPFTable*)createTable;
/*
*实现此方法,用于数据库表的升级功能
*/
+(NSArray*)updateTable:(int)fromVersion toVersion:(int)toVe... | 11.133333 | 65 | 0.679641 |
4b7f84cf0d276e61e97004664ed311373e1a22e4 | 1,838 | kt | Kotlin | kotlinsugardemo/src/test/java/dev/mko/kotlinsugardemo/KotlinSugarDemoTest.kt | mark-kowalski/KotlinExtensions-Android | f76453e35e37e8daf28602f903e4d623e4252853 | [
"MIT"
] | null | null | null | kotlinsugardemo/src/test/java/dev/mko/kotlinsugardemo/KotlinSugarDemoTest.kt | mark-kowalski/KotlinExtensions-Android | f76453e35e37e8daf28602f903e4d623e4252853 | [
"MIT"
] | null | null | null | kotlinsugardemo/src/test/java/dev/mko/kotlinsugardemo/KotlinSugarDemoTest.kt | mark-kowalski/KotlinExtensions-Android | f76453e35e37e8daf28602f903e4d623e4252853 | [
"MIT"
] | null | null | null | package dev.mko.kotlinsugardemo
import dev.mko.kotlinsugar.model.AssociatedEnum
import dev.mko.kotlinsugar.multiCatch
import dev.mko.kotlinsugar.multiLet
import org.junit.Test
import java.io.IOException
/**
* Unit test to demonstrate how to use these awesome Extension functions
*/
class KotlinSugarDemoTest {
@... | 26.637681 | 108 | 0.605005 |
932f8abc5ef5b178e864eb8ee5aa76114a4dde35 | 511 | kt | Kotlin | presentation/controller/src/main/kotlin/com/kazakago/blueprint/presentation/controller/global/entrypoint/MainActivity.kt | weathercock/AndroidCleanArchitectureSample | 9d92409366926b8d19645dd454acc8610c84a44b | [
"Apache-2.0"
] | null | null | null | presentation/controller/src/main/kotlin/com/kazakago/blueprint/presentation/controller/global/entrypoint/MainActivity.kt | weathercock/AndroidCleanArchitectureSample | 9d92409366926b8d19645dd454acc8610c84a44b | [
"Apache-2.0"
] | null | null | null | presentation/controller/src/main/kotlin/com/kazakago/blueprint/presentation/controller/global/entrypoint/MainActivity.kt | weathercock/AndroidCleanArchitectureSample | 9d92409366926b8d19645dd454acc8610c84a44b | [
"Apache-2.0"
] | null | null | null | package com.kazakago.blueprint.presentation.controller.global.entrypoint
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import com.kazakago.blueprint.presentation.controller.global.routing.Router
import dagger.hilt.android.AndroidEntryPoint
@AndroidEntr... | 30.058824 | 75 | 0.806262 |
ce7686c970d95cd193b291be3c0da2f75bc91d14 | 1,953 | kt | Kotlin | apptentive-survey/src/main/java/apptentive/com/android/feedback/survey/model/SurveyResponsePayload.kt | apptentive/apptentive-android-sdk | 7f158214cf78ef91f667136e79dbfaf56f3b7308 | [
"BSD-3-Clause"
] | null | null | null | apptentive-survey/src/main/java/apptentive/com/android/feedback/survey/model/SurveyResponsePayload.kt | apptentive/apptentive-android-sdk | 7f158214cf78ef91f667136e79dbfaf56f3b7308 | [
"BSD-3-Clause"
] | null | null | null | apptentive-survey/src/main/java/apptentive/com/android/feedback/survey/model/SurveyResponsePayload.kt | apptentive/apptentive-android-sdk | 7f158214cf78ef91f667136e79dbfaf56f3b7308 | [
"BSD-3-Clause"
] | null | null | null | package apptentive.com.android.feedback.survey.model
import androidx.annotation.Keep
import apptentive.com.android.feedback.Constants.buildHttpPath
import apptentive.com.android.feedback.engagement.interactions.InteractionId
import apptentive.com.android.feedback.model.payloads.ConversationPayload
import apptentive.co... | 36.849057 | 132 | 0.69022 |
739c4d8c0ff0142ea91a26701a2294cb09da0abb | 526 | sql | SQL | queries/sherlock/setup/feed_quality_score.sql | stefmolin/watson-api | 49ca922f66646f3134b500c4ec9e6cd23fb31f2c | [
"MIT"
] | null | null | null | queries/sherlock/setup/feed_quality_score.sql | stefmolin/watson-api | 49ca922f66646f3134b500c4ec9e6cd23fb31f2c | [
"MIT"
] | 1 | 2018-09-20T01:04:57.000Z | 2018-10-06T21:39:44.000Z | queries/sherlock/setup/feed_quality_score.sql | stefmolin/watson-api | 49ca922f66646f3134b500c4ec9e6cd23fb31f2c | [
"MIT"
] | null | null | null | SELECT
day
, CASE WHEN COUNT(DISTINCT day) = 0 THEN 0
ELSE (SUM(catalog_quality)/COUNT(DISTINCT day))/10000 END AS feed_quality
, MAX(last_date_import) AS feed_import
FROM
schema.fact_table AS fc
JOIN
(SELECT
partner_id
, client_id
FROM
schema.dim_table
WHERE
client_id = {client_i... | 18.137931 | 82 | 0.692015 |
c829c2d4ff87ef172ea1732f1adad21590a72250 | 1,586 | lua | Lua | server/main.lua | vwxyzzett/td-atmrob | d0259d1c841e5f5d2f577db1de98a6c9425c2880 | [
"Apache-2.0"
] | null | null | null | server/main.lua | vwxyzzett/td-atmrob | d0259d1c841e5f5d2f577db1de98a6c9425c2880 | [
"Apache-2.0"
] | null | null | null | server/main.lua | vwxyzzett/td-atmrob | d0259d1c841e5f5d2f577db1de98a6c9425c2880 | [
"Apache-2.0"
] | 1 | 2022-02-15T12:53:47.000Z | 2022-02-15T12:53:47.000Z | ESX = nil
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
ESX.RegisterServerCallback('hasan:copCount', function(source, cb)
local xPlayers = ESX.GetPlayers()
copConnected = 0
for i=1, #xPlayers, 1 do
local xPlayer = ESX.GetPlayerFromId(xPlayers[i])
if xPlayer.job.name == 'police' then
c... | 24.030303 | 78 | 0.742749 |
4a2fbf7c9e1a02547e27985eabbd8e286a972048 | 1,897 | js | JavaScript | generators/app/templates/webpack.config.js | deyhle/generator-ec.dynamic-website | 4facdb984a4c3a692b9a578f07cb5c47efedcda3 | [
"MIT"
] | 1 | 2020-07-29T18:59:16.000Z | 2020-07-29T18:59:16.000Z | generators/app/templates/webpack.config.js | deyhle/generator-ec.dynamic-website | 4facdb984a4c3a692b9a578f07cb5c47efedcda3 | [
"MIT"
] | 3 | 2020-09-04T16:51:46.000Z | 2021-05-08T06:17:46.000Z | generators/app/templates/webpack.config.js | deyhle/generator-ec.dynamic-website | 4facdb984a4c3a692b9a578f07cb5c47efedcda3 | [
"MIT"
] | null | null | null | const path = require('path');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const ManifestPlugin = require('webpack-manifest-plugin');
const FixStyleOnlyEntriesPlugin = require('webpack-fix-style-only-entries');
module.exports = {
entry: {
main: ['intersection-observer', 'babel-polyfill', './s... | 25.635135 | 97 | 0.534001 |
b516f6a02af30c7eab2766b0881373c52e49499b | 839 | rs | Rust | host/build/rust.rs | CDirkx/ipcheck | d222a7a5a1377715ea68a62f864077ea34655b95 | [
"MIT"
] | null | null | null | host/build/rust.rs | CDirkx/ipcheck | d222a7a5a1377715ea68a62f864077ea34655b95 | [
"MIT"
] | null | null | null | host/build/rust.rs | CDirkx/ipcheck | d222a7a5a1377715ea68a62f864077ea34655b95 | [
"MIT"
] | null | null | null | pub fn build() -> std::io::Result<&'static str> {
if !std::path::Path::new("../artifacts/rust").exists() {
std::fs::create_dir("../artifacts/rust").expect("failed to create Rust artifacts dir");
}
std::fs::copy("../impls/rust/main.rs", "../artifacts/rust/main.rs")?;
std::fs::copy("../impls/rust... | 33.56 | 117 | 0.529201 |
3e6413db8d045f8f8ddfe7d6379cdd2de7d6049d | 17,812 | h | C | src/callback.h | tiankk/taskthread | 10fa84c7d31da3365b8aad31d96f739ffb001af4 | [
"MIT"
] | 1 | 2016-09-12T12:43:12.000Z | 2016-09-12T12:43:12.000Z | src/callback.h | tiankk/taskthread | 10fa84c7d31da3365b8aad31d96f739ffb001af4 | [
"MIT"
] | null | null | null | src/callback.h | tiankk/taskthread | 10fa84c7d31da3365b8aad31d96f739ffb001af4 | [
"MIT"
] | null | null | null | #ifndef __CALLBACK_H__
#define __CALLBACK_H__
#include "callback_internal.h"
// /* bind function */
// int Return5() { return 5; }
// tthread::utility::Callback<int(void)> func_cb = tthread::Bind(&Return5);
// LOG(INFO) << func_cb.Run(); // Prints 5.
//
// void PrintHi() { LOG(INFO) << "hi."; }
// tthread::utility:... | 41.423256 | 91 | 0.58528 |
50c4b5619cfddd86c5ca925d4d2c8c7c01c36157 | 97 | go | Go | pfennig.go | embik/pfennig | 91c277efb9616a9084b40095838b32b4ee274332 | [
"MIT"
] | null | null | null | pfennig.go | embik/pfennig | 91c277efb9616a9084b40095838b32b4ee274332 | [
"MIT"
] | null | null | null | pfennig.go | embik/pfennig | 91c277efb9616a9084b40095838b32b4ee274332 | [
"MIT"
] | null | null | null | package main
import (
"github.com/embik/pfennig/cmd"
)
func main() {
cmd.StartPfennig()
}
| 9.7 | 31 | 0.659794 |
0c998b3ac75eae9f76dce560875ced69e8123b01 | 6,511 | py | Python | cmdb_v0.1/apps/detail/models.py | codemaker-man/projects | 334aac28b72a7b466fba23df4db11e95df13a3ec | [
"MIT"
] | 1 | 2018-12-05T05:29:46.000Z | 2018-12-05T05:29:46.000Z | cmdb_v0.1/apps/detail/models.py | codemaker-man/projects | 334aac28b72a7b466fba23df4db11e95df13a3ec | [
"MIT"
] | null | null | null | cmdb_v0.1/apps/detail/models.py | codemaker-man/projects | 334aac28b72a7b466fba23df4db11e95df13a3ec | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
from django.db import models
import django.utils.timezone as timezone
# 用户登录信息表(服务器、虚拟机)
class ConnectionInfo(models.Model):
# 用户连接相关信息
ssh_username = models.CharField(max_length=10, default='', verbose_name=u'ssh用户名', null=True)
ssh_userpasswd = models.CharField(max_length=40, defa... | 42.835526 | 109 | 0.714176 |
93c3a4b565cb03debef83384b043256fc0d30706 | 27,225 | rs | Rust | frame/oracle/src/tests.rs | ArturoFinance/composable | 8ea2468b3ea955cf12dc98a0fbd4979788c67864 | [
"Unlicense"
] | null | null | null | frame/oracle/src/tests.rs | ArturoFinance/composable | 8ea2468b3ea955cf12dc98a0fbd4979788c67864 | [
"Unlicense"
] | null | null | null | frame/oracle/src/tests.rs | ArturoFinance/composable | 8ea2468b3ea955cf12dc98a0fbd4979788c67864 | [
"Unlicense"
] | null | null | null | use crate::{
mock::{AccountId, Call, Extrinsic, *},
AssetInfo, Error, PrePrice, Price, Withdraw, *,
};
use codec::Decode;
use composable_traits::defi::CurrencyPair;
use frame_support::{
assert_noop, assert_ok,
traits::{Currency, OnInitialize},
BoundedVec,
};
use pallet_balances::Error as BalancesError;
use parking... | 26.177885 | 95 | 0.678678 |
21fedb507f0cd3599fc7edade4f45774fdd26d49 | 6,906 | html | HTML | 14_student_account.html | debug314/rsitm-web | 0d4983227006709dfc8b0f98e3d9267abcc20eb7 | [
"BSD-3-Clause"
] | null | null | null | 14_student_account.html | debug314/rsitm-web | 0d4983227006709dfc8b0f98e3d9267abcc20eb7 | [
"BSD-3-Clause"
] | null | null | null | 14_student_account.html | debug314/rsitm-web | 0d4983227006709dfc8b0f98e3d9267abcc20eb7 | [
"BSD-3-Clause"
] | null | null | null | <!DOCTYPE html>
<html lang="en">
<head>
<title>Student's Site | Articles</title>
<meta charset="utf-8">
<link rel="stylesheet" href="css/reset.css" type="text/css" media="all">
<link rel="stylesheet" href="css/style.css" type="text/css" media="all">
<script type="text/javascript" src="js/jquery-1.4.2.min.js" ></... | 37.32973 | 125 | 0.477266 |
c57570bcbb0fbe787b812ba62024f5b2ab3a35d4 | 580 | kt | Kotlin | app/src/main/java/com/rabindra/app/weatherapp/domain/datasource/forecast/ForecastLocalDataSource.kt | rabindranarayanpandit/android | acc759c89a2c9bcf14e93aa575d4a5ef967d4208 | [
"MIT"
] | null | null | null | app/src/main/java/com/rabindra/app/weatherapp/domain/datasource/forecast/ForecastLocalDataSource.kt | rabindranarayanpandit/android | acc759c89a2c9bcf14e93aa575d4a5ef967d4208 | [
"MIT"
] | null | null | null | app/src/main/java/com/rabindra/app/weatherapp/domain/datasource/forecast/ForecastLocalDataSource.kt | rabindranarayanpandit/android | acc759c89a2c9bcf14e93aa575d4a5ef967d4208 | [
"MIT"
] | null | null | null | package com.rabindra.app.weatherapp.domain.datasource.forecast
import com.rabindra.app.weatherapp.db.dao.ForecastDao
import com.rabindra.app.weatherapp.db.entity.ForecastEntity
import com.rabindra.app.weatherapp.domain.model.ForecastResponse
import javax.inject.Inject
/**
* Created by Furkan on 2019-10-21
*/
class... | 29 | 89 | 0.793103 |
95381cda43e59ebc1eef405ef7efadf3381a93fd | 1,311 | css | CSS | src/binary_browser/css/style.css | tranminhduc4796/far_cry_online | 8efc063f3f7de1912a5b3767a629fbe67a1c78a1 | [
"MIT"
] | null | null | null | src/binary_browser/css/style.css | tranminhduc4796/far_cry_online | 8efc063f3f7de1912a5b3767a629fbe67a1c78a1 | [
"MIT"
] | 3 | 2021-01-28T19:53:38.000Z | 2022-03-25T18:44:26.000Z | src/binary_browser/css/style.css | tranminhduc4796/far_cry_online | 8efc063f3f7de1912a5b3767a629fbe67a1c78a1 | [
"MIT"
] | null | null | null | * {
padding: 0;
margin: 0;
font-family: 'Roboto', sans-serif;
}
body {
background: url('../../../assets/binary_browser_background.png');
}
.icon {
margin: 0 5px;
opacity: 0.7;
padding: 2px;
-webkit-app-region: no-drag;
}
.icon:hover {
opacity: 1;
}
nav {
width: 100%;
disp... | 15.244186 | 69 | 0.587338 |
dd707193dd1fd3d7843445fb6338dfaa0d6482ba | 3,079 | go | Go | examples/restore.go | IrennaLumbuun/nimble-golang-sdk | 2af65b6ef8137fbc07c24cc78c2118206ca04149 | [
"Apache-2.0"
] | null | null | null | examples/restore.go | IrennaLumbuun/nimble-golang-sdk | 2af65b6ef8137fbc07c24cc78c2118206ca04149 | [
"Apache-2.0"
] | null | null | null | examples/restore.go | IrennaLumbuun/nimble-golang-sdk | 2af65b6ef8137fbc07c24cc78c2118206ca04149 | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 Hewlett Packard Enterprise Development LP
package main
import (
"fmt"
"github.com/hpe-storage/nimble-golang-sdk/pkg/client/v1/nimbleos"
"github.com/hpe-storage/nimble-golang-sdk/pkg/param"
"github.com/hpe-storage/nimble-golang-sdk/pkg/service"
)
func main() {
// login to Array, get groupServic... | 28.509259 | 115 | 0.715167 |
9c39c03462738217dee5cad2afd2fb9bd45ef7ac | 2,378 | js | JavaScript | CMS/CMSScripts/CMSModules/CMS.Forms/Directives/CMSInputAttributesDirective.js | mzhokh/FilterByCategoryWidget | c6b83215aea4f4df607d070fe4c772bd96ee6a95 | [
"MIT"
] | 26 | 2019-02-26T19:44:44.000Z | 2021-07-19T01:45:37.000Z | CMS/CMSScripts/CMSModules/CMS.Forms/Directives/CMSInputAttributesDirective.js | mzhokh/FilterByCategoryWidget | c6b83215aea4f4df607d070fe4c772bd96ee6a95 | [
"MIT"
] | 34 | 2018-12-10T09:30:13.000Z | 2020-09-02T11:14:12.000Z | CMS/CMSScripts/CMSModules/CMS.Forms/Directives/CMSInputAttributesDirective.js | mzhokh/FilterByCategoryWidget | c6b83215aea4f4df607d070fe4c772bd96ee6a95 | [
"MIT"
] | 50 | 2018-12-06T17:32:43.000Z | 2021-11-04T09:48:07.000Z | cmsdefine([], function () {
/**
* This directive looks for supported attributes in the parent scope. If any of the supported
* value is found, it is passed to the context element.
* If the scope specifies id attribute, its value will be used for the name attribute as well.
*
* This direct... | 37.746032 | 150 | 0.519765 |
2b59cdc909c3f77b9904fd75a847089e1d0e82e9 | 3,908 | sql | SQL | resources/migrations/2017091817300000-update-completed_benchmark-metrics.up.sql | nucleotides/event-api | aea8f9ce8e76fbff646d1535228c6c09be4a7158 | [
"BSD-3-Clause-LBNL"
] | null | null | null | resources/migrations/2017091817300000-update-completed_benchmark-metrics.up.sql | nucleotides/event-api | aea8f9ce8e76fbff646d1535228c6c09be4a7158 | [
"BSD-3-Clause-LBNL"
] | null | null | null | resources/migrations/2017091817300000-update-completed_benchmark-metrics.up.sql | nucleotides/event-api | aea8f9ce8e76fbff646d1535228c6c09be4a7158 | [
"BSD-3-Clause-LBNL"
] | null | null | null | -- Drop this view first to then drop dependent views
DROP VIEW completed_benchmark_metrics;
-- No longer going to base the completed_benchmark_metrics table off of this view
DROP VIEW image_task_benchmarking_state;
--
-- View of numbers of tasks per benchmark instance by benchmark type
--
-- The numbers of tasks is ... | 44.409091 | 124 | 0.691146 |
39cb2cd9a2be2a89503423d8460a50ab99de9008 | 129 | js | JavaScript | settings.js | Sollunad/Niles-Edit | 4c340c6900e324f3aad472398fd7beefb962be92 | [
"MIT"
] | null | null | null | settings.js | Sollunad/Niles-Edit | 4c340c6900e324f3aad472398fd7beefb962be92 | [
"MIT"
] | 1 | 2021-05-11T10:52:11.000Z | 2021-05-11T10:52:11.000Z | settings.js | Sollunad/Niles-Edit | 4c340c6900e324f3aad472398fd7beefb962be92 | [
"MIT"
] | 1 | 2019-09-24T15:21:02.000Z | 2019-09-24T15:21:02.000Z | module.exports = {
secrets: require("./config/secrets.json"),
calendarConfig: require("./config/calendarsettings.js")
};
| 25.8 | 59 | 0.689922 |
dd856166ea47c636e9ad3e78c25a6a64e15f013d | 1,561 | go | Go | cmd/podman/shared/funcs_test.go | gbraad/libpod | 8cccac54979b804d1086ff42654de07dba802a2e | [
"Apache-2.0"
] | 2 | 2020-04-20T23:10:51.000Z | 2021-01-06T12:09:05.000Z | cmd/podman/shared/funcs_test.go | gbraad/libpod | 8cccac54979b804d1086ff42654de07dba802a2e | [
"Apache-2.0"
] | null | null | null | cmd/podman/shared/funcs_test.go | gbraad/libpod | 8cccac54979b804d1086ff42654de07dba802a2e | [
"Apache-2.0"
] | null | null | null | package shared
import (
"testing"
"github.com/containers/libpod/pkg/util"
"github.com/stretchr/testify/assert"
)
var (
name = "foo"
imageName = "bar"
)
func TestGenerateRunEnvironment(t *testing.T) {
opts := make(map[string]string)
opts["opt1"] = "one"
opts["opt2"] = "two"
opts["opt3"] = "three"
envs... | 28.907407 | 56 | 0.721973 |
fa2a0bf1b8f9a96b3e09e1d0a0b80af640de9d84 | 122 | sql | SQL | SQL/sign_in_validation.sql | yanirmor/shiny-user-management | ec63f167281d4b151cce802fe46944e1f09fc7d2 | [
"MIT"
] | 25 | 2018-09-13T15:51:33.000Z | 2022-02-12T05:24:58.000Z | SQL/sign_in_validation.sql | apollolrr/shiny-user-management | ec63f167281d4b151cce802fe46944e1f09fc7d2 | [
"MIT"
] | 1 | 2021-08-12T15:35:06.000Z | 2021-08-12T15:35:06.000Z | SQL/sign_in_validation.sql | apollolrr/shiny-user-management | ec63f167281d4b151cce802fe46944e1f09fc7d2 | [
"MIT"
] | 6 | 2021-03-09T11:20:22.000Z | 2022-02-10T10:47:59.000Z | SELECT username, color
FROM user_management
WHERE is_enabled = 'y'
AND username = ?username
AND password = ?password;
| 20.333333 | 27 | 0.754098 |