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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b511615faf93d7f59230fbed00377f6585a343be | 759 | rs | Rust | src/main.rs | gaeulbyul/just | ef45b02cc38d7cf8b7223a764c2935cd38f70be2 | [
"CC0-1.0"
] | null | null | null | src/main.rs | gaeulbyul/just | ef45b02cc38d7cf8b7223a764c2935cd38f70be2 | [
"CC0-1.0"
] | null | null | null | src/main.rs | gaeulbyul/just | ef45b02cc38d7cf8b7223a764c2935cd38f70be2 | [
"CC0-1.0"
] | null | null | null | #[macro_use]
extern crate lazy_static;
extern crate ansi_term;
extern crate brev;
extern crate clap;
extern crate dotenv;
extern crate edit_distance;
extern crate itertools;
extern crate libc;
extern crate regex;
extern crate target;
extern crate tempdir;
extern crate unicode_width;
#[cfg(test)]
#[macro_use]
mod testi... | 15.18 | 27 | 0.781291 |
4d888bd8eaeb4e694ab623be7221fc8438aa8e03 | 6,215 | lua | Lua | game/helpers/mahjong/logic.lua | lualcs/xsServer | dc774f9f4364b5a24924c9ce5293d7cf5265c2d4 | [
"MIT"
] | 1 | 2021-02-08T12:27:24.000Z | 2021-02-08T12:27:24.000Z | game/helpers/mahjong/logic.lua | lualcs/xsServer | dc774f9f4364b5a24924c9ce5293d7cf5265c2d4 | [
"MIT"
] | null | null | null | game/helpers/mahjong/logic.lua | lualcs/xsServer | dc774f9f4364b5a24924c9ce5293d7cf5265c2d4 | [
"MIT"
] | 1 | 2022-01-23T05:14:55.000Z | 2022-01-23T05:14:55.000Z | --[[
file:mahjongLogic.lua
desc:麻将扑克
auth:Carol Luo
]]
local ipairs = ipairs
local math = require("extend_math")
local table = require("extend_table")
local class = require("class")
local gameLogic = require("game.logic")
---@class mahjongLogic:gameLogic @麻将扑克
local logic = class(gameLogic)
local this = l... | 20.57947 | 55 | 0.651167 |
b2f530408fd43221cdf3c37a95a00dd22b60da33 | 18,688 | sql | SQL | ===db/omwebsolution (19).sql | Mrunal001/omwebsolution | 51ddbed51b351c75f3aeec682b02be29834fa3dd | [
"MIT"
] | null | null | null | ===db/omwebsolution (19).sql | Mrunal001/omwebsolution | 51ddbed51b351c75f3aeec682b02be29834fa3dd | [
"MIT"
] | null | null | null | ===db/omwebsolution (19).sql | Mrunal001/omwebsolution | 51ddbed51b351c75f3aeec682b02be29834fa3dd | [
"MIT"
] | null | null | null | -- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jan 02, 2022 at 07:55 AM
-- Server version: 10.4.18-MariaDB
-- PHP Version: 7.4.16
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIE... | 32.785965 | 893 | 0.678457 |
feda0dd23ee06bd06bfc5e94efd8c6bd28f7296a | 25 | html | HTML | projects/ng-multi-keywords-highlighter/src/lib/color-palette/color-palette.component.html | dylannnn/ng-multi-keywords-highlighter-workspace | ef434cef2843c22a0380b4e703e446ed30290e5b | [
"MIT"
] | 1 | 2021-02-25T19:46:27.000Z | 2021-02-25T19:46:27.000Z | projects/ng-multi-keywords-highlighter/src/lib/color-palette/color-palette.component.html | dylannnn/multi-keywords-highlighter-workspace | ef434cef2843c22a0380b4e703e446ed30290e5b | [
"MIT"
] | 1 | 2021-03-01T12:01:25.000Z | 2021-03-01T12:01:25.000Z | projects/ng-multi-keywords-highlighter/src/lib/color-palette/color-palette.component.html | dylannnn/ng-multi-keywords-highlighter-workspace | ef434cef2843c22a0380b4e703e446ed30290e5b | [
"MIT"
] | null | null | null | <p>Works in progress</p>
| 12.5 | 24 | 0.68 |
74c255402e983c73d83484c079fb4dc14fb70ca0 | 82,220 | js | JavaScript | client/web-h5/static/js/pages-index-index.2916f04c.js | lxh888/openshop | 62e81d913d8fdbde70e4b8b5ad5f3cda6e445614 | [
"Apache-2.0"
] | null | null | null | client/web-h5/static/js/pages-index-index.2916f04c.js | lxh888/openshop | 62e81d913d8fdbde70e4b8b5ad5f3cda6e445614 | [
"Apache-2.0"
] | null | null | null | client/web-h5/static/js/pages-index-index.2916f04c.js | lxh888/openshop | 62e81d913d8fdbde70e4b8b5ad5f3cda6e445614 | [
"Apache-2.0"
] | null | null | null | (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-index"],{"06e1":function(t,e,o){e=t.exports=o("2350")(!1),e.push([t.i,'.content[data-v-d2df5580]{width:100%;text-align:center;overflow-y:sroll}.content .title-box[data-v-d2df5580]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display... | 4,567.777778 | 55,597 | 0.754293 |
478ba80787b2c8590c611a5afdd7cc86b702aa8f | 173 | html | HTML | kb/knowledge_base_of_numeric_models/sections/section_calculus_and_analysis/sections/section_special_functions/sections/section_transcendental_inequalities/concepts/concept_exponential_inequality/exponential_inequality_3.html | CMEXOB/ostis-algebra | 4742dbd99dea47cf5b36d21681e5a70ccf0578e4 | [
"MIT"
] | null | null | null | kb/knowledge_base_of_numeric_models/sections/section_calculus_and_analysis/sections/section_special_functions/sections/section_transcendental_inequalities/concepts/concept_exponential_inequality/exponential_inequality_3.html | CMEXOB/ostis-algebra | 4742dbd99dea47cf5b36d21681e5a70ccf0578e4 | [
"MIT"
] | 1 | 2021-12-15T08:20:29.000Z | 2021-12-15T08:20:29.000Z | kb/knowledge_base_of_numeric_models/sections/section_calculus_and_analysis/sections/section_special_functions/sections/section_transcendental_inequalities/concepts/concept_exponential_inequality/exponential_inequality_3.html | CMEXOB/ostis-algebra | 4742dbd99dea47cf5b36d21681e5a70ccf0578e4 | [
"MIT"
] | 4 | 2021-12-15T17:55:14.000Z | 2021-12-18T11:02:19.000Z | Если a > 1, неравенство a<sup>f(x)</sup> > a<sup>g(x)</sup>
равносильно неравенству
f(x) > g(x).
Аналогично, a<sup>f(x)</sup> < a<sup>g(x)</sup> ⇔ f(x) < g(x).
| 24.714286 | 73 | 0.583815 |
af8cfa3038529c47ba17c0ad3c9d09a26c264101 | 1,839 | rb | Ruby | attributes/default.rb | tubbo/omakase | 08a34eb5583cf95060b0e1f5b299269113f604dc | [
"MIT"
] | 1 | 2015-02-11T19:09:08.000Z | 2015-02-11T19:09:08.000Z | attributes/default.rb | tubbo/omakase | 08a34eb5583cf95060b0e1f5b299269113f604dc | [
"MIT"
] | null | null | null | attributes/default.rb | tubbo/omakase | 08a34eb5583cf95060b0e1f5b299269113f604dc | [
"MIT"
] | null | null | null | #
# Cookbook Name:: omakase
# Attributes:: default
#
# These attributes are set up as an example only. They are mostly used
# as fixture data within Test Kitchen to stand up test instances of this
# cookbook. For more information on how to properly use this cookbook,
# see the README.
#
# Copyright (C) 2014 Tom Scott
#... | 47.153846 | 79 | 0.760196 |
6083670ea87fece642c68fc8e1631210a15c7fe7 | 204,688 | sql | SQL | plug-in/region_type_plugin_dev_hartenfeller_slideover.sql | phartenfeller/apex-slide-over-plugin | 8c7621340cc21ffc83e3e620261b91d613669886 | [
"MIT"
] | 1 | 2021-05-29T05:12:48.000Z | 2021-05-29T05:12:48.000Z | plug-in/region_type_plugin_dev_hartenfeller_slideover.sql | phartenfeller/apex-slide-over-plugin | 8c7621340cc21ffc83e3e620261b91d613669886 | [
"MIT"
] | 3 | 2021-06-10T10:18:38.000Z | 2021-06-11T07:06:35.000Z | plug-in/region_type_plugin_dev_hartenfeller_slideover.sql | phartenfeller/apex-slide-over-plugin | 8c7621340cc21ffc83e3e620261b91d613669886 | [
"MIT"
] | 1 | 2021-06-14T12:20:36.000Z | 2021-06-14T12:20:36.000Z | prompt --application/set_environment
set define off verify off feedback off
whenever sqlerror exit sql.sqlcode rollback
--------------------------------------------------------------------------------
--
-- ORACLE Application Express (APEX) export file
--
-- You should run the script connected to SQL*Plus as the Oracle... | 194.017062 | 241 | 0.946279 |
662c7d4a3eba4ccf4e556e75cd81258429a1af30 | 91 | lua | Lua | src/components/generate-Lua/sources/original/DigiLed.lua | graphical-interface-programming/Scratch_miniCar | 785978398f40c142d5fe2ba6bfa312300094f3fb | [
"BSD-3-Clause"
] | 2 | 2019-08-15T17:34:41.000Z | 2019-08-19T01:43:44.000Z | src/components/generate-Lua/sources/original/DigiLed.lua | graphical-interface-programming/Scratch_miniCar | 785978398f40c142d5fe2ba6bfa312300094f3fb | [
"BSD-3-Clause"
] | null | null | null | src/components/generate-Lua/sources/original/DigiLed.lua | graphical-interface-programming/Scratch_miniCar | 785978398f40c142d5fe2ba6bfa312300094f3fb | [
"BSD-3-Clause"
] | 3 | 2019-08-15T17:34:42.000Z | 2019-09-16T07:27:04.000Z | -- 数码管接受信号
--1
function SetDigiLed(dispArr)
sendCanMsg(11, dispArr) -- id, len, data{}
end | 18.2 | 43 | 0.703297 |
9e22ed8734ebdb82ff1da4d8ae0c9018e434bba7 | 104 | sql | SQL | yoo-master-dc2492330d5d46b48f1ceca891e0f9f7e1593fee/module/yoomath/ym-task/src/main/java/tpl/sql/SectionQuestionStat.sql | wangsikai/learn | af85f7c7db5c38b5009ebdfb8c8985032eca565c | [
"Apache-2.0"
] | 1 | 2019-01-20T06:19:53.000Z | 2019-01-20T06:19:53.000Z | yoo-master-dc2492330d5d46b48f1ceca891e0f9f7e1593fee/module/yoomath/ym-task/src/main/java/tpl/sql/SectionQuestionStat.sql | wangsikai/learn | af85f7c7db5c38b5009ebdfb8c8985032eca565c | [
"Apache-2.0"
] | null | null | null | yoo-master-dc2492330d5d46b48f1ceca891e0f9f7e1593fee/module/yoomath/ym-task/src/main/java/tpl/sql/SectionQuestionStat.sql | wangsikai/learn | af85f7c7db5c38b5009ebdfb8c8985032eca565c | [
"Apache-2.0"
] | 2 | 2019-01-20T06:19:54.000Z | 2021-07-21T14:13:44.000Z | ##删除统计表
#macro($deleteStat(version))
delete from section_question_stat where version = :version
#end | 26 | 60 | 0.769231 |
7bc93fdecfa5b82897ceb1c95e7758cf25f991ca | 2,021 | css | CSS | component/_var.css | thefirstweb/layout_component | 7acf39ec839bff23d00b323a46226c786202d38c | [
"MIT"
] | null | null | null | component/_var.css | thefirstweb/layout_component | 7acf39ec839bff23d00b323a46226c786202d38c | [
"MIT"
] | null | null | null | component/_var.css | thefirstweb/layout_component | 7acf39ec839bff23d00b323a46226c786202d38c | [
"MIT"
] | null | null | null | :root {
--content-width: 1260px;
--flag-bg-color: #fff100;
--flag-fg-color: #f7e31b;
--flag-bg-width: 28px;
--flag-fg-width: 24px;
--grid-img-width: 150px;
--grid-border-width: 4px;
--gird-divider: solid 1px #dcdcdc;
--grid-product-width: calc(200px + 3px*2);
--grid-price-compari... | 20.21 | 93 | 0.601188 |
6513f213b7ae02509adbae8bebb7d8031a8a3323 | 110 | py | Python | pond5/blueprints/webui/views.py | IvanFrezzaJr/pond5 | 02cc39262b33eac59727ee416645f7006a99b099 | [
"MIT"
] | null | null | null | pond5/blueprints/webui/views.py | IvanFrezzaJr/pond5 | 02cc39262b33eac59727ee416645f7006a99b099 | [
"MIT"
] | null | null | null | pond5/blueprints/webui/views.py | IvanFrezzaJr/pond5 | 02cc39262b33eac59727ee416645f7006a99b099 | [
"MIT"
] | null | null | null | from flask import render_template
def index():
return render_template("index.html", title='pond5 test')
| 18.333333 | 60 | 0.745455 |
6fe07f6bbcf564bf1355bbc028f03e5afbd1aeaa | 8,829 | rs | Rust | binary/src/cli/remote.rs | iiYese/OMFG | 38162bdc322de53d50bb34abc6fd244636694cb7 | [
"MIT"
] | null | null | null | binary/src/cli/remote.rs | iiYese/OMFG | 38162bdc322de53d50bb34abc6fd244636694cb7 | [
"MIT"
] | null | null | null | binary/src/cli/remote.rs | iiYese/OMFG | 38162bdc322de53d50bb34abc6fd244636694cb7 | [
"MIT"
] | null | null | null | use std::{
io::{Write, Read},
fs::{File, rename}, path::{Path, PathBuf},
env::current_exe
};
use reqwest::{
StatusCode,
blocking::{Client, multipart::Form}
};
use serde::{Serialize, Deserialize};
use anyhow::{Context, anyhow, bail, Result as AnyHow};
use mac_address::get_mac_address;
use short_cryp... | 29.235099 | 102 | 0.508891 |
a6b567d4127164502dc5453f9f462fbecf5f943f | 425 | swift | Swift | src/util/AppleScript.swift | Norviah/spotify | d11dafca6dd8ef72b71d661a4c51499404b85ecd | [
"MIT"
] | 1 | 2020-08-15T23:28:22.000Z | 2020-08-15T23:28:22.000Z | src/util/AppleScript.swift | Norviah/spotify | d11dafca6dd8ef72b71d661a4c51499404b85ecd | [
"MIT"
] | null | null | null | src/util/AppleScript.swift | Norviah/spotify | d11dafca6dd8ef72b71d661a4c51499404b85ecd | [
"MIT"
] | null | null | null | //
// AppleScript.swift
// spotify
//
// Created by Norviah on 8/10/20.
// Copyright © 2020 Norviah. All rights reserved.
//
import Foundation
/// Executes the given string as AppleScript.
/// - Parameter source: The script to execute.
/// - Returns: The result of the execution.
@discardableResult
func AppleScrip... | 23.611111 | 71 | 0.722353 |
5da3d5f79a11c826b17a756ba82e7adda225bc73 | 596 | sql | SQL | parse/src/test/resources/ddl/alter/test_44.sql | yuanweikang2020/canal | 9f6021cf36f78cc8ac853dcf37a1769f359b868b | [
"Apache-2.0"
] | 23,220 | 2015-01-04T13:48:17.000Z | 2022-03-31T15:38:51.000Z | parse/src/test/resources/ddl/alter/test_44.sql | yuanweikang2020/canal | 9f6021cf36f78cc8ac853dcf37a1769f359b868b | [
"Apache-2.0"
] | 3,863 | 2015-01-04T12:13:41.000Z | 2022-03-31T11:06:07.000Z | parse/src/test/resources/ddl/alter/test_44.sql | yuanweikang2020/canal | 9f6021cf36f78cc8ac853dcf37a1769f359b868b | [
"Apache-2.0"
] | 7,006 | 2015-01-04T10:06:29.000Z | 2022-03-31T07:25:23.000Z | CREATE TABLE `tb_sgqyviwkyz` (
`col_qcgurbenzo` enum('enum_or_set_0','enum_or_set_1','enum_or_set_2') CHARACTER SET utf8mb4,
UNIQUE `uk_vidzaimrjm` (`col_qcgurbenzo`)
) DEFAULT CHARSET=latin1;
RENAME TABLE `tb_sgqyviwkyz` TO `tb_faqsxuetwm`;
ALTER TABLE `tb_faqsxuetwm` CHARACTER SET utf8mb4;
ALTER TABLE `tb_faqsxue... | 54.181818 | 95 | 0.798658 |
15afac12ee5f97e6c04966c0d018fc4da23dabef | 2,362 | rb | Ruby | db/schema.rb | saintprug/ddd_cqrs_example | 0ea7d3d1c3381b591e681dddc068199aa1985525 | [
"MIT"
] | 1 | 2019-02-16T13:58:48.000Z | 2019-02-16T13:58:48.000Z | db/schema.rb | saintprug/ddd_cqrs_example | 0ea7d3d1c3381b591e681dddc068199aa1985525 | [
"MIT"
] | null | null | null | db/schema.rb | saintprug/ddd_cqrs_example | 0ea7d3d1c3381b591e681dddc068199aa1985525 | [
"MIT"
] | 1 | 2019-08-13T15:58:01.000Z | 2019-08-13T15:58:01.000Z | # This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative source for your
# dat... | 40.724138 | 116 | 0.737511 |
841134aef66eaf1e4db76592adc76d3eb50bd16d | 1,000 | asm | Assembly | programs/oeis/014/A014217.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/014/A014217.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/014/A014217.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A014217: a(n) = floor(phi^n), where phi = (1+sqrt(5))/2 is the golden ratio.
; 1,1,2,4,6,11,17,29,46,76,122,199,321,521,842,1364,2206,3571,5777,9349,15126,24476,39602,64079,103681,167761,271442,439204,710646,1149851,1860497,3010349,4870846,7881196,12752042,20633239,33385281,54018521,87403802,141422324,228826126,37024... | 45.454545 | 729 | 0.788 |
7022a2195656909f1c5fa2293284995323441e63 | 4,281 | go | Go | cmd/cmd/tags.go | jtvaughan/freebean | 45cad104c392e5a4c0f5fce2446d51e0d70d0697 | [
"BSD-2-Clause"
] | null | null | null | cmd/cmd/tags.go | jtvaughan/freebean | 45cad104c392e5a4c0f5fce2446d51e0d70d0697 | [
"BSD-2-Clause"
] | null | null | null | cmd/cmd/tags.go | jtvaughan/freebean | 45cad104c392e5a4c0f5fce2446d51e0d70d0697 | [
"BSD-2-Clause"
] | null | null | null | /*
Copyright (c) 2021, Jordan Vaughan
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the followi... | 32.679389 | 117 | 0.71175 |
a3391222a301df745d3c307e7292b961f08becdd | 353 | swift | Swift | Sources/Mendoza/Plugins/TestExtractionPlugin.swift | IgorPlotnikov/Mendoza | a129904aac354e214e52fecaf8684ff7f500516e | [
"Apache-2.0"
] | 50 | 2019-03-18T10:51:13.000Z | 2022-03-24T12:27:48.000Z | Sources/Mendoza/Plugins/TestExtractionPlugin.swift | IgorPlotnikov/Mendoza | a129904aac354e214e52fecaf8684ff7f500516e | [
"Apache-2.0"
] | 6 | 2019-04-16T06:20:27.000Z | 2021-11-02T05:40:19.000Z | Sources/Mendoza/Plugins/TestExtractionPlugin.swift | IgorPlotnikov/Mendoza | a129904aac354e214e52fecaf8684ff7f500516e | [
"Apache-2.0"
] | 10 | 2019-03-22T09:19:32.000Z | 2021-11-24T08:24:21.000Z | //
// TestExtractionPlugin.swift
// Mendoza
//
// Created by Tomas Camin on 22/01/2019.
//
import Foundation
class TestExtractionPlugin: Plugin<TestExtractionInput, [TestCase]> {
init(baseUrl: URL, plugin: (data: String?, debug: Bool) = (nil, false)) {
super.init(name: "TestExtractionPlugin", baseUrl: ... | 23.533333 | 82 | 0.68272 |
0ee82c56c2ad451f5d18a4e2f26f8c2f52234881 | 1,593 | h | C | R-link/aimms4r/src/ReadTable.h | aimms/R-Link | 42007491f3565429e06d6124a476e3d1080ebee5 | [
"DOC",
"Unlicense"
] | 1 | 2022-03-07T20:22:47.000Z | 2022-03-07T20:22:47.000Z | R-link/aimms4r/src/ReadTable.h | aimms/R-Link | 42007491f3565429e06d6124a476e3d1080ebee5 | [
"DOC",
"Unlicense"
] | null | null | null | R-link/aimms4r/src/ReadTable.h | aimms/R-Link | 42007491f3565429e06d6124a476e3d1080ebee5 | [
"DOC",
"Unlicense"
] | 2 | 2017-10-07T01:06:24.000Z | 2021-02-25T04:53:46.000Z | /* This file is part of R-Link.
R-Link is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
R-Link is distributed in the ho... | 31.235294 | 80 | 0.595104 |
3e10ea75b9b1fcfd7404f6cfe6d013997d46350a | 797 | kt | Kotlin | src/main/kotlin/com/example/word_wrap/exception/CustomExceptionHandler.kt | sur3-bb2/word_wrap | 0807c2e7afdacecab3f9bdfb6ce611b3d981f5f3 | [
"Apache-2.0"
] | null | null | null | src/main/kotlin/com/example/word_wrap/exception/CustomExceptionHandler.kt | sur3-bb2/word_wrap | 0807c2e7afdacecab3f9bdfb6ce611b3d981f5f3 | [
"Apache-2.0"
] | null | null | null | src/main/kotlin/com/example/word_wrap/exception/CustomExceptionHandler.kt | sur3-bb2/word_wrap | 0807c2e7afdacecab3f9bdfb6ce611b3d981f5f3 | [
"Apache-2.0"
] | null | null | null | package com.example.word_wrap.exception
import org.springframework.http.HttpStatus
import org.springframework.web.bind.annotation.ControllerAdvice
import org.springframework.web.bind.annotation.ExceptionHandler
import org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
import java.io.I... | 44.277778 | 103 | 0.848181 |
996f59dafd585e7faae903af1086f8d8ec09bcbd | 403 | h | C | headers/particle.h | chiragdhawan24/majorphyengine | e41f68defe32bd7d9fe676e0b3d993a16966da57 | [
"MIT"
] | null | null | null | headers/particle.h | chiragdhawan24/majorphyengine | e41f68defe32bd7d9fe676e0b3d993a16966da57 | [
"MIT"
] | null | null | null | headers/particle.h | chiragdhawan24/majorphyengine | e41f68defe32bd7d9fe676e0b3d993a16966da57 | [
"MIT"
] | null | null | null | #include"namedefs.h"
#include"vectormath.h"
namespace wizphys{
class Particle{
public:
Vector3D position;
Vector3D velocity;
Vector3D acceleration;
Vector3D forceAccum;
real damping;
real massinverse;
real mass;
void integrate(real duration);
bool hasFiniteMass();
real g... | 20.15 | 37 | 0.677419 |
189e1af7dc3c0867b5ce2e7dfcc1832fd4f34dae | 1,884 | rb | Ruby | lib/rchess/move_validators/check_validator.rb | AlexeyBazanov/rchess | f0e0268a844ab5099eb80bc8d50736d2e82891fe | [
"MIT"
] | null | null | null | lib/rchess/move_validators/check_validator.rb | AlexeyBazanov/rchess | f0e0268a844ab5099eb80bc8d50736d2e82891fe | [
"MIT"
] | null | null | null | lib/rchess/move_validators/check_validator.rb | AlexeyBazanov/rchess | f0e0268a844ab5099eb80bc8d50736d2e82891fe | [
"MIT"
] | null | null | null | module Rchess
class CheckValidator < MoveValidator
def validate(turn, round)
current_side_move_collections = round.get_move_collections turn.color
opposite_side_move_collections = round.get_move_collections turn.color.opposite
check_moves = collect_check_moves opposite_side_move_collections
... | 30.387097 | 107 | 0.737261 |
c6b724fa1abe00c04e2a08c7c395c97362fb3ff1 | 656 | rb | Ruby | spec/cucumber/rest/body_spec.rb | blinkboxbooks/cucumber-rest.rb | 3b6d53a77a42cb8c0140e9a1aac0ef75eb76e010 | [
"MIT"
] | null | null | null | spec/cucumber/rest/body_spec.rb | blinkboxbooks/cucumber-rest.rb | 3b6d53a77a42cb8c0140e9a1aac0ef75eb76e010 | [
"MIT"
] | null | null | null | spec/cucumber/rest/body_spec.rb | blinkboxbooks/cucumber-rest.rb | 3b6d53a77a42cb8c0140e9a1aac0ef75eb76e010 | [
"MIT"
] | null | null | null | require "cucumber/rest/body"
describe Cucumber::Rest::Body, :body do
context "#ensure_empty" do
def generate_response(body: nil)
response = MockResponse.new
response.body = body
response
end
it "does not raise an error when the response body is empty" do
response = generate_respo... | 29.818182 | 89 | 0.698171 |
8e98703ecf6a67fbc8620f26f87529b770785884 | 756 | rb | Ruby | app/models/profile.rb | JhymerMartinez/mo_clon | 36d3deb04b689e3691dd99f425ca6af1a10f9e07 | [
"MIT"
] | null | null | null | app/models/profile.rb | JhymerMartinez/mo_clon | 36d3deb04b689e3691dd99f425ca6af1a10f9e07 | [
"MIT"
] | 87 | 2015-01-28T17:38:08.000Z | 2022-03-30T22:16:04.000Z | app/models/profile.rb | JhymerMartinez/mo_clon | 36d3deb04b689e3691dd99f425ca6af1a10f9e07 | [
"MIT"
] | 1 | 2018-03-13T22:07:56.000Z | 2018-03-13T22:07:56.000Z | # == Schema Information
#
# Table name: profiles
#
# id :integer not null, primary key
# name :string
# biography :text
# user_id :integer not null
# neuron_ids :text default([]), is an Array
# created_at :datetime not null
# updated_at :datetime no... | 24.387097 | 56 | 0.56746 |
dbf7efc2ab9792c24fbe0f79e7bb703d0b6d80d8 | 3,948 | kt | Kotlin | web/src/main/kotlin/service/AuthenticationService.kt | MFori/Piskvorky | 8333fa53793a3ea1a9c83cfa821b5c4e8573ec4b | [
"Apache-2.0"
] | null | null | null | web/src/main/kotlin/service/AuthenticationService.kt | MFori/Piskvorky | 8333fa53793a3ea1a9c83cfa821b5c4e8573ec4b | [
"Apache-2.0"
] | null | null | null | web/src/main/kotlin/service/AuthenticationService.kt | MFori/Piskvorky | 8333fa53793a3ea1a9c83cfa821b5c4e8573ec4b | [
"Apache-2.0"
] | null | null | null | package service
import core.ApiClient
import core.ApiResult
import cz.martinforejt.piskvorky.api.Api
import cz.martinforejt.piskvorky.api.model.*
import cz.martinforejt.piskvorky.domain.model.UserWithToken
import cz.martinforejt.piskvorky.domain.service.AuthenticationService
import cz.martinforejt.piskvorky.domain.use... | 32.9 | 128 | 0.650709 |
5b163fd2c9cf669619a5f19dd0e9828047036492 | 1,577 | c | C | thread_io.c | angel-devicente/thread_io | fc5c375e99ed67285984aafd41acb5ee51ef0f2b | [
"MIT"
] | null | null | null | thread_io.c | angel-devicente/thread_io | fc5c375e99ed67285984aafd41acb5ee51ef0f2b | [
"MIT"
] | null | null | null | thread_io.c | angel-devicente/thread_io | fc5c375e99ed67285984aafd41acb5ee51ef0f2b | [
"MIT"
] | null | null | null | #include <mpi.h>
#include <stdio.h>
#include <string.h>
#include <pthread.h>
#include <unistd.h>
#include "def.h"
#include "thread_io.h"
static pthread_t thread_id;
static FILE* tlog;
/*******************************************************/
void *io_processor(void *io_comm) {
char buf[IO_MAX_LEN];
MPI_Status st... | 25.031746 | 67 | 0.639822 |
95cffc364ccba6fc4a92b4ca81625bee576b5d48 | 8,701 | css | CSS | public/style.css | grace-shopper-gh1809/donutJar | 2c6686f17e67682cff0c14ba2d8cc9b78960a069 | [
"MIT"
] | null | null | null | public/style.css | grace-shopper-gh1809/donutJar | 2c6686f17e67682cff0c14ba2d8cc9b78960a069 | [
"MIT"
] | 85 | 2018-10-29T20:04:12.000Z | 2018-11-06T22:59:10.000Z | public/style.css | grace-shopper-gh1809/donutJar | 2c6686f17e67682cff0c14ba2d8cc9b78960a069 | [
"MIT"
] | null | null | null | * {
box-sizing: border-box;
font-family: arial, sans-serif;
}
body {
font-family: sans-serif;
background: linear-gradient(#f57cbe, #d1aac9);
height: 100%;
margin: 0;
background-repeat: no-repeat;
background-attachment: fixed;
font-weight: bold;
color: rgba(59, 5, 46, 0.863);
text-shadow: 0px 2px ... | 20.915865 | 72 | 0.600161 |
4946d1dbf708e2508829fe777208e1469f70247f | 389 | swift | Swift | Isomet/Portals/PortalStart.swift | mtrsservices/demon | f626faca1605bb58c8140f3fb97f219d0dc6f4d8 | [
"MIT"
] | null | null | null | Isomet/Portals/PortalStart.swift | mtrsservices/demon | f626faca1605bb58c8140f3fb97f219d0dc6f4d8 | [
"MIT"
] | null | null | null | Isomet/Portals/PortalStart.swift | mtrsservices/demon | f626faca1605bb58c8140f3fb97f219d0dc6f4d8 | [
"MIT"
] | null | null | null | let Portal = "Portal"
func PortalStartLink(URL("./1"){
func start(){
INSERT(ParametersArray[]=['0','...','100'])
INSERT(MenuOptionsArray[]=['0','...','61'])
INSERT(PermissionsArray[]=['0','...','17'])
INSERT(UserArray[]=['0','1','2','3'])}
if User = (UserAthenticated)
then
{return Start.append.UserArray[]=['4']
els... | 22.882353 | 53 | 0.596401 |
cb1a053c8dfc68f93c75f50e4afad3b2ca52fc69 | 397 | kt | Kotlin | buildSrc/src/main/java/Dependencies.kt | Innovattic/App-Badge | a87b0659b4b331701623cb0c6e495f5c1f75f23a | [
"MIT"
] | 1 | 2021-09-14T14:01:02.000Z | 2021-09-14T14:01:02.000Z | buildSrc/src/main/java/Dependencies.kt | Innovattic/App-Badge | a87b0659b4b331701623cb0c6e495f5c1f75f23a | [
"MIT"
] | null | null | null | buildSrc/src/main/java/Dependencies.kt | Innovattic/App-Badge | a87b0659b4b331701623cb0c6e495f5c1f75f23a | [
"MIT"
] | null | null | null | object Versions {
const val kotlin = "1.5.30"
const val gradlePlugin = "7.0.1"
const val projectVersion = "1.0.4"
}
object BuildScriptPlugins {
const val android = "com.android.tools.build:gradle:${Versions.gradlePlugin}"
const val kotlin = "org.jetbrains.kotlin:kotlin-gradle-plugin:${Versions.kotl... | 26.466667 | 85 | 0.700252 |
7fba380d633cca1b3126f7360f3bb7f7cf5ae026 | 217 | go | Go | checkParam.go | gonyyi/mutt | 9333a661a62bd93a1c23cb81da24334636e91445 | [
"MIT"
] | null | null | null | checkParam.go | gonyyi/mutt | 9333a661a62bd93a1c23cb81da24334636e91445 | [
"MIT"
] | null | null | null | checkParam.go | gonyyi/mutt | 9333a661a62bd93a1c23cb81da24334636e91445 | [
"MIT"
] | null | null | null | // (C) 2021 GON Y YI.
// https://gonyyi.com/copyright.txt
package mutt
func CheckParamString(fields ...string) bool {
for i := 0; i < len(fields); i++ {
if fields[i] == "" {
return false
}
}
return true
}
| 15.5 | 46 | 0.599078 |
e753ae0bbb9fe406685a205661e19967d59f6dbe | 2,061 | js | JavaScript | client/src/statuspage/Statuspage.test.js | noeleont/renku-ui | f9c5429d8a724386bc3783571beeac276cc241bf | [
"Apache-2.0"
] | 7 | 2019-02-07T13:28:26.000Z | 2021-10-19T05:26:22.000Z | client/src/statuspage/Statuspage.test.js | noeleont/renku-ui | f9c5429d8a724386bc3783571beeac276cc241bf | [
"Apache-2.0"
] | 1,255 | 2018-05-17T22:13:29.000Z | 2022-03-31T11:05:42.000Z | client/src/statuspage/Statuspage.test.js | noeleont/renku-ui | f9c5429d8a724386bc3783571beeac276cc241bf | [
"Apache-2.0"
] | 4 | 2018-06-01T08:55:48.000Z | 2022-02-17T10:19:52.000Z | /*!
* Copyright 2021 - Swiss Data Science Center (SDSC)
* A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and
* Eidgenössische Technische Hochschule Zürich (ETHZ).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Li... | 30.761194 | 87 | 0.693838 |
672c1d8f650051131845ac40e711a2ccbacdd94a | 333 | lua | Lua | assets/preload/characters/rtbf.lua | NT810/fnfremix | 14ff85a57d8157d0288fbb9e515e93df34c75ec0 | [
"Apache-2.0"
] | null | null | null | assets/preload/characters/rtbf.lua | NT810/fnfremix | 14ff85a57d8157d0288fbb9e515e93df34c75ec0 | [
"Apache-2.0"
] | null | null | null | assets/preload/characters/rtbf.lua | NT810/fnfremix | 14ff85a57d8157d0288fbb9e515e93df34c75ec0 | [
"Apache-2.0"
] | 1 | 2022-03-12T12:41:36.000Z | 2022-03-12T12:41:36.000Z | function onCreate()
setPropertyFromClass('GameOverSubstate', 'characterName', 'rtbf'); --Character json file for the death animation
setPropertyFromClass('GameOverSubstate', 'loopSoundName', 'heartbreak'); --put in mods/music/
setPropertyFromClass('GameOverSubstate', 'endSoundName', 'heartbreakend'); --put in mod... | 66.6 | 114 | 0.771772 |
cf379fe2717dd0c923d1316dc3447cd90ea2aa98 | 411 | kt | Kotlin | compiler/fir/analysis-tests/testData/resolve/scopes/specialFunctionInJava_3.kt | andreyfomenkov/kotlin-relaxed | 0f3f251454e49d20d4c7242beeac5d4bda021c28 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | compiler/fir/analysis-tests/testData/resolve/scopes/specialFunctionInJava_3.kt | andreyfomenkov/kotlin-relaxed | 0f3f251454e49d20d4c7242beeac5d4bda021c28 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | compiler/fir/analysis-tests/testData/resolve/scopes/specialFunctionInJava_3.kt | andreyfomenkov/kotlin-relaxed | 0f3f251454e49d20d4c7242beeac5d4bda021c28 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | // SCOPE_DUMP: D:x;getX;y;getY
// FILE: B.java
public abstract class B extends A {
@Override
public int getX() { return 0; }
}
// FILE: C.java
public interface C {
int getX();
int getY();
}
// FILE: D.java
public abstract class D extends B implements C {}
// FILE: main.kt
abstract class A {
ope... | 14.172414 | 49 | 0.579075 |
e654764b1b101c29a5d2f7b86cfd12f77348f911 | 826 | swift | Swift | library/swift/TestEngineBuilder.swift | phlax/envoy-mobile | 4f4b43d6c4d03aaec8b2229a6142283f04ab75a3 | [
"Apache-2.0"
] | 399 | 2019-06-17T23:05:09.000Z | 2020-11-11T09:15:47.000Z | library/swift/TestEngineBuilder.swift | phlax/envoy-mobile | 4f4b43d6c4d03aaec8b2229a6142283f04ab75a3 | [
"Apache-2.0"
] | 619 | 2019-06-17T22:22:59.000Z | 2020-11-11T03:58:27.000Z | library/swift/TestEngineBuilder.swift | phlax/envoy-mobile | 4f4b43d6c4d03aaec8b2229a6142283f04ab75a3 | [
"Apache-2.0"
] | 40 | 2019-06-18T16:09:58.000Z | 2020-10-21T19:11:42.000Z | import Foundation
/// Builder that can be used to construct instances of the Envoy engine
/// which have the added functionality of returning "direct" responses to
/// requests over a local connection. This can be particularly useful for mocking/testing.
public final class TestEngineBuilder: EngineBuilder {
/// Adds... | 41.3 | 90 | 0.751816 |
1410c372222c2ae5c4ad890f48fd7478a98bef6f | 5,255 | lua | Lua | torch_lua/src/util/torch_util.lua | migushu/rul-1 | a25f8a21ab978cfef2826ed7918de6dccaaa1c22 | [
"MIT"
] | 17 | 2017-11-22T19:14:49.000Z | 2021-11-09T07:22:52.000Z | torch_lua/src/util/torch_util.lua | johnsbuck/rul | a25f8a21ab978cfef2826ed7918de6dccaaa1c22 | [
"MIT"
] | null | null | null | torch_lua/src/util/torch_util.lua | johnsbuck/rul | a25f8a21ab978cfef2826ed7918de6dccaaa1c22 | [
"MIT"
] | 4 | 2018-11-19T01:35:56.000Z | 2020-02-17T05:47:07.000Z | ----------------------------------------------------------------------
-- A utility module containing Torch-based functions for editing
-- tensors, normalization, and other purposes.
-- @author John Bucknam
-- @license MIT
-- @module Torch-Utilities
-----------------------------------------------------------------... | 25.386473 | 75 | 0.559087 |
11e47cbd109bfb9c190110c889aa6701caf6aec8 | 22,079 | html | HTML | Docs/api/UnofficialMultiplayerAPI.ISyncMethod.html | Pecius/UnofficialMultiplayerAPI | 0775cb4052b82aa18ee427b7bf23ee8a41f17fd6 | [
"MIT"
] | 2 | 2019-03-14T21:58:06.000Z | 2019-05-19T06:45:58.000Z | Docs/api/UnofficialMultiplayerAPI.ISyncMethod.html | Pecius/UnofficialMultiplayerAPI | 0775cb4052b82aa18ee427b7bf23ee8a41f17fd6 | [
"MIT"
] | 1 | 2019-03-15T12:43:46.000Z | 2019-03-15T12:43:46.000Z | Docs/api/UnofficialMultiplayerAPI.ISyncMethod.html | Pecius/UnofficialMultiplayerAPI | 0775cb4052b82aa18ee427b7bf23ee8a41f17fd6 | [
"MIT"
] | null | null | null | <!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Interface ISyncMethod
</title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Interface ISyncMethod
... | 41.895636 | 616 | 0.601884 |
c84da5e318d0b088d6b41f35bbdcd9d0c857f7b8 | 1,832 | kt | Kotlin | css-gg/src/commonMain/kotlin/compose/icons/cssggicons/PushUp.kt | ravitejasc/compose-icons | 09f752ef051b1c47e60554f3893bbed5ddd8bc1f | [
"MIT"
] | 230 | 2020-11-11T14:52:11.000Z | 2022-03-31T05:04:52.000Z | css-gg/src/commonMain/kotlin/compose/icons/cssggicons/PushUp.kt | ravitejasc/compose-icons | 09f752ef051b1c47e60554f3893bbed5ddd8bc1f | [
"MIT"
] | 17 | 2021-03-02T00:00:32.000Z | 2022-03-02T16:01:03.000Z | css-gg/src/commonMain/kotlin/compose/icons/cssggicons/PushUp.kt | ravitejasc/compose-icons | 09f752ef051b1c47e60554f3893bbed5ddd8bc1f | [
"MIT"
] | 18 | 2021-02-08T06:18:41.000Z | 2022-03-22T21:48:23.000Z | package compose.icons.cssggicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
import... | 38.166667 | 93 | 0.607533 |
30fa96b1fc34001efa2db1c626cf63ea265e3d1c | 395 | asm | Assembly | programs/oeis/204/A204160.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/204/A204160.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/204/A204160.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A204160: Symmetric matrix based on f(i,j)=(3i-2 if i=j and = 0 otherwise), by antidiagonals.
; 1,1,1,1,4,1,1,1,1,1,1,1,7,1,1,1,1,1,1,1,1,1,1,1,10,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,13,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,16,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,19,1,1,1,1,1,1,1,1,1,1,1,1
lpb $0,1
add $1,4
su... | 26.333333 | 199 | 0.55443 |
f16ff4a0094062012a3a3dc99d9980c9f45f72e3 | 5,059 | rb | Ruby | caption/serve.rb | amatsuda/takeout-app | 861964cd51ee932daf9f93f4d0b59ae49ebc44b6 | [
"MIT"
] | 90 | 2021-09-11T06:17:13.000Z | 2022-03-30T13:47:14.000Z | caption/serve.rb | amatsuda/takeout-app | 861964cd51ee932daf9f93f4d0b59ae49ebc44b6 | [
"MIT"
] | null | null | null | caption/serve.rb | amatsuda/takeout-app | 861964cd51ee932daf9f93f4d0b59ae49ebc44b6 | [
"MIT"
] | 8 | 2021-09-11T07:43:08.000Z | 2021-09-14T05:36:16.000Z | require 'socket'
require 'logger'
require 'thread'
require 'aws-sdk-transcribestreamingservice'
require 'json'
require_relative '../config/environment'
require_relative '../app/models/conference'
# ffmpeg -i ... -vn -f s16le -ar 16000 -ac 1 - | ruby serve.rb a |& tee -a /tmp/serve
# ffmpeg -i udp://0.0.0.0:10000 -f ... | 24.090476 | 126 | 0.692232 |
2bf7a282c11fd73c5cc905d1b7acaca5e2b2f355 | 427 | lua | Lua | ensure/keystroke.lua | anoxape/.hammerspoon | 6f5cccab9c2b7f6dd2bae8cca0b140b135d5d70f | [
"MIT"
] | 4 | 2017-08-05T10:06:15.000Z | 2020-10-19T03:27:27.000Z | ensure/keystroke.lua | anoxape/.hammerspoon | 6f5cccab9c2b7f6dd2bae8cca0b140b135d5d70f | [
"MIT"
] | null | null | null | ensure/keystroke.lua | anoxape/.hammerspoon | 6f5cccab9c2b7f6dd2bae8cca0b140b135d5d70f | [
"MIT"
] | 1 | 2020-10-19T03:27:39.000Z | 2020-10-19T03:27:39.000Z | local newKeyEvent = require 'hs.eventtap'.event.newKeyEvent
local usleep = require 'hs.timer'.usleep
local _M = {}
_M.config = {
delay = 200000,
}
local delay
function _M.init(config)
delay = config.delay
end
local function send(app, modifiers, character)
newKeyEvent(modifiers, character, true):post(ap... | 17.08 | 59 | 0.716628 |
abb91dc04859d56df64cca8558f1c74a23a34fe4 | 5,928 | rb | Ruby | lib/calendrical/base.rb | kipcole9/calendrical-ruby | e7e5693fa582c443ed3802fc8eed1dd98b59e9f3 | [
"MIT"
] | 1 | 2016-09-19T11:23:08.000Z | 2016-09-19T11:23:08.000Z | lib/calendrical/base.rb | kipcole9/calendrical-ruby | e7e5693fa582c443ed3802fc8eed1dd98b59e9f3 | [
"MIT"
] | null | null | null | lib/calendrical/base.rb | kipcole9/calendrical-ruby | e7e5693fa582c443ed3802fc8eed1dd98b59e9f3 | [
"MIT"
] | null | null | null | module Calendrical
class InvalidQuarter < StandardError; end
class InvalidMonth < StandardError; end
class InvalidWeek < StandardError; end
class InvalidDay< StandardError; end
class UnknownLunarPhase < StandardError; end
class DayError < StandardError; end
class MonthError < StandardError; end
class St... | 30.244898 | 78 | 0.550776 |
7e019890c3305fd173343d5248e9f8b141514046 | 451 | asm | Assembly | oeis/271/A271578.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/271/A271578.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/271/A271578.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A271578: Magic sums of 4 X 4 magic squares composed of primes.
; Submitted by Jon Maiga
; 120,126,132,136,138,140,142,144,146,148,150,154,156,158,160,162,164,166,168,170,172,174,176,178,180,182,184,186,188,190,192,194,196,198,200,202,204,206,208,210,212,214,216,218,220,222,224,226,228,230,232,234
mov $1,$0
mov $3,$0... | 22.55 | 209 | 0.660754 |
abbfcb4de0637b910c5024fce85eff32b6ba4284 | 278 | kt | Kotlin | src/main/kotlin/io/github/durun/lateko/model/structure/StructureElement.kt | Durun/lateko | b5809e171acf41a804b2fbdb4ddb21185bd93e8b | [
"MIT"
] | 1 | 2022-01-16T10:50:55.000Z | 2022-01-16T10:50:55.000Z | src/main/kotlin/io/github/durun/lateko/model/structure/StructureElement.kt | Durun/lateko | b5809e171acf41a804b2fbdb4ddb21185bd93e8b | [
"MIT"
] | 20 | 2020-03-04T13:10:08.000Z | 2020-04-10T13:57:02.000Z | src/main/kotlin/io/github/durun/lateko/model/structure/StructureElement.kt | Durun/lateko | b5809e171acf41a804b2fbdb4ddb21185bd93e8b | [
"MIT"
] | null | null | null | package io.github.durun.lateko.model.structure
import io.github.durun.lateko.model.Element
interface StructureElement : Element {
fun <R> accept(visitor: StructureVisitor<R>): R
val id: String get() = this.hashCode().toString()
val context: StructureContext? get() = null
} | 30.888889 | 50 | 0.758993 |
42cc0ac1546cae4ebc687ac3254e52adae4e8ef0 | 1,792 | lua | Lua | src/luacheck/check_state.lua | srinivas32/luacheck | 7ab26494a4a0f41c6f96e85fda846045429e3326 | [
"MIT"
] | 1,641 | 2015-01-03T18:57:09.000Z | 2022-03-30T22:08:29.000Z | src/luacheck/check_state.lua | srinivas32/luacheck | 7ab26494a4a0f41c6f96e85fda846045429e3326 | [
"MIT"
] | 206 | 2015-01-05T09:22:24.000Z | 2022-03-10T03:33:54.000Z | src/luacheck/check_state.lua | srinivas32/luacheck | 7ab26494a4a0f41c6f96e85fda846045429e3326 | [
"MIT"
] | 299 | 2015-01-07T02:08:52.000Z | 2022-03-27T10:26:47.000Z | local utils = require "luacheck.utils"
local check_state = {}
local CheckState = utils.class()
function CheckState:__init(source_bytes)
self.source_bytes = source_bytes
self.warnings = {}
end
-- Returns column of a character in a line given its offset.
-- The column is never larger than the line length.
-- Th... | 26.746269 | 78 | 0.748884 |
38a7f8b0d9a5da3be59bd3c39ba6c33b530ce757 | 807 | swift | Swift | swiftGame/SSExtension.swift | shen5214444887/lightGame | f6bcbeab0c1a19d3a8f8c9e89a0650c2cad475d9 | [
"MIT"
] | 1 | 2018-05-29T10:29:49.000Z | 2018-05-29T10:29:49.000Z | swiftGame/SSExtension.swift | shen5214444887/lightGame | f6bcbeab0c1a19d3a8f8c9e89a0650c2cad475d9 | [
"MIT"
] | null | null | null | swiftGame/SSExtension.swift | shen5214444887/lightGame | f6bcbeab0c1a19d3a8f8c9e89a0650c2cad475d9 | [
"MIT"
] | null | null | null | //
// SSExtension.swift
// swiftGame
//
// Created by xiaobei on 2018/5/28.
// Copyright © 2018年 xiaobei. All rights reserved.
//
import UIKit
extension UIColor {
var toImage: UIImage {
let bounds = CGRect(origin: .zero, size: CGSize(width: 1.0, height: 1.0))
let renderer = UIGra... | 21.810811 | 81 | 0.550186 |
0bcc8bb22fe6e01746b28050ed699fd62037c9d2 | 982 | js | JavaScript | server.js | deeleman/mean-boilerplate | 9cd443647b50a2d089e11b39fc3c01b4726e53da | [
"Unlicense"
] | null | null | null | server.js | deeleman/mean-boilerplate | 9cd443647b50a2d089e11b39fc3c01b4726e53da | [
"Unlicense"
] | null | null | null | server.js | deeleman/mean-boilerplate | 9cd443647b50a2d089e11b39fc3c01b4726e53da | [
"Unlicense"
] | null | null | null | 'use strict';
var port = process.env.PORT || 3000;
var express = require('express');
var app = express();
var fs = require('fs');
var notifications = require('./app/lib/notifications');
// Routes
fs.readdirSync(__dirname + '/app/routes').forEach(function (controller) {
app.use('/api/' + controller.replace('.js', ... | 27.277778 | 92 | 0.667006 |
b85506f691d8cf99a5fb824a2f063eb80c3b84e7 | 44 | rs | Rust | mk/src/component/not_yet_complete.rs | AcrylicShrimp/mk | 518bd804ff1b6f56b22163e94d758a0d5581a40a | [
"MIT"
] | null | null | null | mk/src/component/not_yet_complete.rs | AcrylicShrimp/mk | 518bd804ff1b6f56b22163e94d758a0d5581a40a | [
"MIT"
] | null | null | null | mk/src/component/not_yet_complete.rs | AcrylicShrimp/mk | 518bd804ff1b6f56b22163e94d758a0d5581a40a | [
"MIT"
] | null | null | null | #[derive(Debug)]
pub struct NotYetComplete;
| 14.666667 | 26 | 0.772727 |
51a324d8da36a820def95d82d248a64e0f57971f | 5,980 | swift | Swift | PsychopompNX/Services/Generated/Nn_Grcsrv.swift | daeken/HelenaNX | ccc24813f775b55e9ad2424f8026ffcc907e0e4c | [
"Apache-2.0"
] | 63 | 2020-12-03T22:29:35.000Z | 2022-03-25T09:36:43.000Z | PsychopompNX/Services/Generated/Nn_Grcsrv.swift | daeken/HelenaNX | ccc24813f775b55e9ad2424f8026ffcc907e0e4c | [
"Apache-2.0"
] | 1 | 2020-12-22T18:57:22.000Z | 2020-12-22T18:57:22.000Z | PsychopompNX/Services/Generated/Nn_Grcsrv.swift | daeken/HelenaNX | ccc24813f775b55e9ad2424f8026ffcc907e0e4c | [
"Apache-2.0"
] | 3 | 2020-12-14T08:12:06.000Z | 2021-08-22T10:53:18.000Z | typealias NnGrcsrv_GameMovieId = [UInt8]
class NnGrcsrv_IContinuousRecorder: IpcService {
func unknown1() throws { throw IpcError.unimplemented(name: "nn::grcsrv::nn::grcsrv::IContinuousRecorder#Unknown1") }
func unknown2() throws { throw IpcError.unimplemented(name: "nn::grcsrv::nn::grcsrv::IContinuousRecorder#Unkn... | 46.71875 | 204 | 0.738127 |
16374b3d18f7538d753116a8f261078d00b22b9c | 35,467 | c | C | apps/plugins/resistor.c | Rockbox-Chinese-Community/Rockbox-RCC | a701aefe45f03ca391a8e2f1a6e3da1b8774b2f2 | [
"BSD-3-Clause"
] | 24 | 2015-03-10T08:43:56.000Z | 2022-01-05T14:09:46.000Z | apps/plugins/resistor.c | Rockbox-Chinese-Community/Rockbox-RCC | a701aefe45f03ca391a8e2f1a6e3da1b8774b2f2 | [
"BSD-3-Clause"
] | 4 | 2015-07-04T18:15:33.000Z | 2018-05-18T05:33:33.000Z | apps/plugins/resistor.c | Rockbox-Chinese-Community/Rockbox-RCC | a701aefe45f03ca391a8e2f1a6e3da1b8774b2f2 | [
"BSD-3-Clause"
] | 15 | 2015-01-21T13:58:13.000Z | 2020-11-04T04:30:22.000Z | /* === Rockbox Resistor code/value calculator ===
[insert relevant/useful information here]
TODO:
[ ] Own numeric keypad
*/
#include "plugin.h"
#include "lib/display_text.h"
#include "lib/pluginlib_actions.h"
#include "lib/picture.h"
#include "lib/helper.h"
/* Defining player-specific constants */
#if defined(HAVE_... | 33.907266 | 94 | 0.526969 |
1690e6fa9ae34bc67a42f3b743d0c12b65fb8ab0 | 81 | sql | SQL | stuff/queries/all shapes linea 5.sql | matteocontrini/expelliarbusbot | ff94ca8d0a0b0e639cd5ea5cf69516972ae944ee | [
"MIT"
] | 8 | 2019-02-27T15:41:43.000Z | 2022-02-22T14:17:30.000Z | stuff/queries/all shapes linea 5.sql | matteocontrini/expelliarbusbot | ff94ca8d0a0b0e639cd5ea5cf69516972ae944ee | [
"MIT"
] | 6 | 2019-03-01T11:21:08.000Z | 2019-10-16T12:53:59.000Z | stuff/queries/all shapes linea 5.sql | matteocontrini/expelliarbusbot | ff94ca8d0a0b0e639cd5ea5cf69516972ae944ee | [
"MIT"
] | 3 | 2019-09-16T14:04:56.000Z | 2019-10-02T18:42:07.000Z | select distinct shape_id
from trips
where route_id = 400
and direction_id = 1
| 16.2 | 25 | 0.777778 |
4c872955b25288b95579136f1c0f924cb04e27b5 | 12,701 | kt | Kotlin | base/build-system/integration-test/application/src/test/java/com/android/build/gradle/integration/library/LibraryBuildConfigTest.kt | qiangxu1996/vmtrace | 3411c5436d0d34e6e2b84cbf0e9395ac8c55c9d4 | [
"Apache-2.0"
] | 1 | 2020-10-04T19:30:22.000Z | 2020-10-04T19:30:22.000Z | base/build-system/integration-test/application/src/test/java/com/android/build/gradle/integration/library/LibraryBuildConfigTest.kt | qiangxu1996/vmtrace | 3411c5436d0d34e6e2b84cbf0e9395ac8c55c9d4 | [
"Apache-2.0"
] | null | null | null | base/build-system/integration-test/application/src/test/java/com/android/build/gradle/integration/library/LibraryBuildConfigTest.kt | qiangxu1996/vmtrace | 3411c5436d0d34e6e2b84cbf0e9395ac8c55c9d4 | [
"Apache-2.0"
] | 2 | 2020-10-04T19:30:24.000Z | 2020-11-04T05:58:17.000Z | /*
* Copyright (C) 2019 The Android Open Source Project
*
* 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 app... | 38.604863 | 125 | 0.557594 |
4d5674411d50b392066051176c5d3cf9e702c165 | 3,985 | cql | SQL | src/data/NCD/Cat1/Mammograms/Mammograms.cql | mettlesolutions/coverage_determinations | 1c4e5422204429f9784b9fa469028079bf5fb7cb | [
"Apache-2.0"
] | null | null | null | src/data/NCD/Cat1/Mammograms/Mammograms.cql | mettlesolutions/coverage_determinations | 1c4e5422204429f9784b9fa469028079bf5fb7cb | [
"Apache-2.0"
] | 81 | 2018-08-27T05:26:20.000Z | 2019-01-03T07:56:59.000Z | src/data/NCD/Cat1/Mammograms/Mammograms.cql | mettlesolutions/coverage_determinations | 1c4e5422204429f9784b9fa469028079bf5fb7cb | [
"Apache-2.0"
] | null | null | null | //Mammograms
library Mammograms
using FHIR
include FHIRHelpers version '1.8' called FHIRHelpers
//include otherLibrary version 'x.x' called otherLibrary
//codesystem codeSystemName : 'OID' version 'x.x'
//valueset valuesetName : 'OID' version 'x.x' codesystems{codeSystem1 , codeSystem2, etc}
//code codeName : 'OID' f... | 48.597561 | 175 | 0.657716 |
962a8dc6e1a9a3cddabcba9d35fc5a6ceaac1001 | 3,118 | sql | SQL | hasura/migrations/1597267956798_window_views/up.sql | wbez/il-covid19-api | 1d0b89ec2b104af804ee203b5d83400d2a97d1ed | [
"MIT"
] | null | null | null | hasura/migrations/1597267956798_window_views/up.sql | wbez/il-covid19-api | 1d0b89ec2b104af804ee203b5d83400d2a97d1ed | [
"MIT"
] | 12 | 2020-07-28T16:50:16.000Z | 2020-10-16T16:23:16.000Z | hasura/migrations/1597267956798_window_views/up.sql | wbez/il-covid19-api | 1d0b89ec2b104af804ee203b5d83400d2a97d1ed | [
"MIT"
] | 3 | 2020-07-31T21:20:30.000Z | 2021-07-15T13:33:24.000Z | CREATE MATERIALIZED VIEW public.state_testing_results_change
AS
SELECT
date,
total_tested,
total_tested - lag(total_tested) OVER (ORDER BY date) AS total_tested_change,
round(
(
(total_tested - lag(total_tested) OVER (ORDER BY date))::numeric / lag(total_tested) OVER (ORDER BY da... | 35.431818 | 170 | 0.63406 |
5b093ee7d541e228c4182742866a29c331dee406 | 711 | h | C | src/WtPorter/ExpParser.h | v1otusc/wondertrader | fd65a052d26be32882f89e8e9dfcd1d7b8736a3b | [
"MIT"
] | null | null | null | src/WtPorter/ExpParser.h | v1otusc/wondertrader | fd65a052d26be32882f89e8e9dfcd1d7b8736a3b | [
"MIT"
] | 1 | 2022-03-21T06:51:59.000Z | 2022-03-21T06:51:59.000Z | src/WtPorter/ExpParser.h | v1otusc/wondertrader | fd65a052d26be32882f89e8e9dfcd1d7b8736a3b | [
"MIT"
] | null | null | null | #pragma once
#include "../Includes/IParserApi.h"
USING_NS_WTP;
class ExpParser : public IParserApi
{
public:
ExpParser(const char* id):_id(id){}
virtual ~ExpParser(){}
public:
virtual bool init(WTSVariant* config) override;
virtual void release() override;
virtual bool connect() override;
... | 16.928571 | 61 | 0.700422 |
f56a74aaa6f6bbc1bfde37c56c6b20c6dad95b7c | 700 | sql | SQL | MySQL/consultas_avancadas.sql | thiagofreitascarneiro/MySQL | 1b00a728df9ccce7ede6fe7c25986688d1f388d8 | [
"MIT"
] | null | null | null | MySQL/consultas_avancadas.sql | thiagofreitascarneiro/MySQL | 1b00a728df9ccce7ede6fe7c25986688d1f388d8 | [
"MIT"
] | null | null | null | MySQL/consultas_avancadas.sql | thiagofreitascarneiro/MySQL | 1b00a728df9ccce7ede6fe7c25986688d1f388d8 | [
"MIT"
] | null | null | null | # consultas complexa
#passo 1 - Trazer as compras
select * from compras;
#Passo 2 - Colocar o nome dos clientes nas compras
select com.id as "id compra", cli.nome as "cliente", com.data as "data compra"
from compras as com, clientes as cli where com.id_cliente = cli.id;
#Passo 3 - Produtos Compra
select * FR... | 33.333333 | 91 | 0.714286 |
a17d80c93bc7e8b524d36d6678fafb6aeefa31ca | 2,584 | go | Go | model/logistic/Param.go | phpyandong/opentaobao | a7e3cc3ec7eeb492b20a6b8023798d5592d15fe5 | [
"Apache-2.0"
] | 1 | 2021-06-29T08:56:24.000Z | 2021-06-29T08:56:24.000Z | model/logistic/Param.go | phpyandong/opentaobao | a7e3cc3ec7eeb492b20a6b8023798d5592d15fe5 | [
"Apache-2.0"
] | null | null | null | model/logistic/Param.go | phpyandong/opentaobao | a7e3cc3ec7eeb492b20a6b8023798d5592d15fe5 | [
"Apache-2.0"
] | null | null | null | package logistic
// Param
type Param struct {
// appId
AppId string `json:"app_id,omitempty" xml:"app_id,omitempty"`
// 外部订单号
PartnerOrderCode string `json:"partner_order_code,omitempty" xml:"partner_order_code,omitempty"`
// 渠道code
ChannelId string `json:"cha... | 22.08547 | 118 | 0.655573 |
bd3e365b167d91fb49b8a1f61b59246d2dddf698 | 20,125 | rs | Rust | src/provision/providers/provider_vultr.rs | ppearson/prod | 95a42c7316b6377de1e14a573b9bd4a1a2fe8086 | [
"Apache-2.0"
] | 2 | 2021-11-25T23:27:24.000Z | 2022-02-22T23:24:22.000Z | src/provision/providers/provider_vultr.rs | ppearson/prod | 95a42c7316b6377de1e14a573b9bd4a1a2fe8086 | [
"Apache-2.0"
] | null | null | null | src/provision/providers/provider_vultr.rs | ppearson/prod | 95a42c7316b6377de1e14a573b9bd4a1a2fe8086 | [
"Apache-2.0"
] | null | null | null | /*
Prod
Copyright 2021-2022 Peter Pearson.
Licensed under the Apache License, Version 2.0 (the "License");
You may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,... | 39.383562 | 171 | 0.558807 |
9a60a815ef63ff84d14c504b0235283b8f3b39b5 | 298 | asm | Assembly | Practice/Assignments assembly class/7.asm | WardunIslam/CSE331L_Section_7_Summer_2020_NSU | 4f36bf223c44afd2233a243a2f8ba92df18f5545 | [
"MIT"
] | null | null | null | Practice/Assignments assembly class/7.asm | WardunIslam/CSE331L_Section_7_Summer_2020_NSU | 4f36bf223c44afd2233a243a2f8ba92df18f5545 | [
"MIT"
] | null | null | null | Practice/Assignments assembly class/7.asm | WardunIslam/CSE331L_Section_7_Summer_2020_NSU | 4f36bf223c44afd2233a243a2f8ba92df18f5545 | [
"MIT"
] | null | null | null | org 100h
L1: NOP
L2: MOV AX, 0F000H
MOV DS, AX
MOV BX, 0FFFFH
MOV AL, BYTE PTR DS:[BX]
L3: MOV CX, 00000H
MOV DS, CX
MOV BX, 00000H
MOV AH, BYTE PTR DS:[BX]
L4: SUB AL, AH
L5: JNS L7
L6: OUT 00H, AL
JMP L8
L7: MOV DX, 0FFFFH
OUT DX, AL
L8: HLT
ret | 11.037037 | 28 | 0.553691 |
1cd68541c75cf64f35fd6635e5a48a5f800a4a8e | 13,673 | css | CSS | css-custom.django.css | pdmpro/gae-site-scaffold | 2220668774242c94e2d4159b9a809fa00300db2f | [
"MIT"
] | null | null | null | css-custom.django.css | pdmpro/gae-site-scaffold | 2220668774242c94e2d4159b9a809fa00300db2f | [
"MIT"
] | null | null | null | css-custom.django.css | pdmpro/gae-site-scaffold | 2220668774242c94e2d4159b9a809fa00300db2f | [
"MIT"
] | null | null | null | /*
primary styles -- based on the Shield theme, but extremely slimmed down
onDevEnv: {{onDevEnv}}
BTW, isn't this the coolest thing? https://www.sessions.edu/color-calculator/
*/
/* general, incl. bootstrap 3 fixes */
html,
button,
input,
select,
textarea {
color: #222;
}
html,
body {
height: 100%;
}
body {
font-fa... | 19.902475 | 103 | 0.667227 |
0b88cc0b918db3b0b9bc55668bf46c025033b785 | 2,237 | py | Python | authlib/oauth2/rfc6749/__init__.py | geoffwhittington/authlib | 096f2a41f4fb18f9850427f07d556d4b9ab97383 | [
"BSD-3-Clause"
] | null | null | null | authlib/oauth2/rfc6749/__init__.py | geoffwhittington/authlib | 096f2a41f4fb18f9850427f07d556d4b9ab97383 | [
"BSD-3-Clause"
] | null | null | null | authlib/oauth2/rfc6749/__init__.py | geoffwhittington/authlib | 096f2a41f4fb18f9850427f07d556d4b9ab97383 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
authlib.oauth2.rfc6749
~~~~~~~~~~~~~~~~~~~~~~
This module represents a direct implementation of
The OAuth 2.0 Authorization Framework.
https://tools.ietf.org/html/rfc6749
"""
from .wrappers import OAuth2Request, OAuth2Token, HttpRequest
from .errors import (
OAuth2... | 27.617284 | 67 | 0.743406 |
75a753c55818dca1a776afcd6291600d307ebff7 | 4,101 | h | C | Frameworks/MapKit.framework/MKDirectionsRequest.h | shaojiankui/iOS10-Runtime-Headers | 6b0d842bed0c52c2a7c1464087b3081af7e10c43 | [
"MIT"
] | 36 | 2016-04-20T04:19:04.000Z | 2018-10-08T04:12:25.000Z | Frameworks/MapKit.framework/MKDirectionsRequest.h | shaojiankui/iOS10-Runtime-Headers | 6b0d842bed0c52c2a7c1464087b3081af7e10c43 | [
"MIT"
] | null | null | null | Frameworks/MapKit.framework/MKDirectionsRequest.h | shaojiankui/iOS10-Runtime-Headers | 6b0d842bed0c52c2a7c1464087b3081af7e10c43 | [
"MIT"
] | 10 | 2016-06-16T02:40:44.000Z | 2019-01-15T03:31:45.000Z | /* Generated by RuntimeBrowser
Image: /System/Library/Frameworks/MapKit.framework/MapKit
*/
@interface MKDirectionsRequest : NSObject <NSCopying> {
NSArray * _additionalTransportTypesRequested;
NSDate * _arrivalDate;
GEOAutomobileOptions * _automobileOptions;
NSDate * _departureDate;
MKMapItem ... | 47.137931 | 246 | 0.801756 |
85c1b13200baea3bdacd750b1fd8bf16db7b683c | 1,730 | js | JavaScript | src/index.js | kingflamez/screen-size-vue | b53df37540b7b0bd53c437cc55c7397ef7bce693 | [
"MIT"
] | 30 | 2020-07-21T00:17:58.000Z | 2021-05-04T11:26:10.000Z | src/index.js | kingflamez/screen-size-vue | b53df37540b7b0bd53c437cc55c7397ef7bce693 | [
"MIT"
] | 4 | 2021-10-06T20:16:55.000Z | 2022-02-27T08:38:25.000Z | src/index.js | kingflamez/screen-size-vue | b53df37540b7b0bd53c437cc55c7397ef7bce693 | [
"MIT"
] | null | null | null | const VueScreenSize = {
data() {
return {
$screenSize: null,
$breakPoint: {
xs: 'xs',
s: 's',
m: 'm',
l: 'l',
xl: 'xl'
}
}
},
methods: {
handleResize() {
c... | 27.03125 | 74 | 0.468208 |
9341097ef573b730abe6f187aa2d4770279d9a6a | 13,534 | lua | Lua | aliveai/bot.lua | sb613/aliveai_2.5.1 | c312f3e7c70da230441cf63f2efbc645b0ea64a3 | [
"CC0-1.0"
] | null | null | null | aliveai/bot.lua | sb613/aliveai_2.5.1 | c312f3e7c70da230441cf63f2efbc645b0ea64a3 | [
"CC0-1.0"
] | null | null | null | aliveai/bot.lua | sb613/aliveai_2.5.1 | c312f3e7c70da230441cf63f2efbc645b0ea64a3 | [
"CC0-1.0"
] | null | null | null |
aliveai.bot=function(self, dtime)
self.timer=self.timer+dtime
self.timerfalling=self.timerfalling+dtime
if self.timerfalling>0.2 then aliveai.falling(self) end
if self.timer<=self.time then return self end
self.timer=0
if aliveai.regulate_prestandard>0 and math.random(1,aliveai.regulate_prestandard)==1 ... | 32.147268 | 139 | 0.699867 |
0c97356ee6bbe49ca37564ac2a4ced12f750d008 | 624 | py | Python | sorting-and-searching/selection-sort.py | rayruicai/coding-interview | 4de5de63fe09eae488bdbde372aa1c0cb4defa85 | [
"MIT"
] | null | null | null | sorting-and-searching/selection-sort.py | rayruicai/coding-interview | 4de5de63fe09eae488bdbde372aa1c0cb4defa85 | [
"MIT"
] | null | null | null | sorting-and-searching/selection-sort.py | rayruicai/coding-interview | 4de5de63fe09eae488bdbde372aa1c0cb4defa85 | [
"MIT"
] | null | null | null | import unittest
# time complexity O(n**2)
# space complexity O(1)
def selection_sort(arr):
n = len(arr)
while n >= 2:
value_max = arr[0]
index_max = 0
for i in range(1, n):
if arr[i] > value_max:
value_max = arr[i]
index_max = i
arr[... | 22.285714 | 71 | 0.543269 |
efffd42bbf456a11cacf074d5ddff552bb906dd8 | 493 | asm | Assembly | programs/oeis/327/A327917.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/327/A327917.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/327/A327917.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A327917: Triangle T read by rows: T(k, n) = A(k-n, k) with the array A(k, n) = F(2*k+n) = A000045(2*k+n), for k >= 0 and n >= 0.
; 0,1,1,3,2,1,8,5,3,2,21,13,8,5,3,55,34,21,13,8,5,144,89,55,34,21,13,8,377,233,144,89,55,34,21,13,987,610,377,233,144,89,55,34,21,2584,1597,987,610,377,233,144,89,55,34,6765,4181,2584,1597,... | 82.166667 | 214 | 0.604462 |
0e604922764c1ab12bf0ef89400e7a218b002933 | 6,431 | html | HTML | recettes/Sandwich_chaud_pouletepinards_a_la_creme.html | bstevy/atelier_des_chefs | 05396a5cbad6f61a111896052472e21007799eb4 | [
"CC0-1.0"
] | null | null | null | recettes/Sandwich_chaud_pouletepinards_a_la_creme.html | bstevy/atelier_des_chefs | 05396a5cbad6f61a111896052472e21007799eb4 | [
"CC0-1.0"
] | null | null | null | recettes/Sandwich_chaud_pouletepinards_a_la_creme.html | bstevy/atelier_des_chefs | 05396a5cbad6f61a111896052472e21007799eb4 | [
"CC0-1.0"
] | null | null | null |
<!DOCTYPE html>
<html lang="fr">
<head>
<title> </title>
<meta content="text/html ; charset=utf-8" http-equiv="Content-Type"/>
<meta content="fr" http-equiv="language"/>
<meta content=" " name="description"/>
<!-- ===========================
recetteController
imprimerrecetteAction
... | 52.713115 | 338 | 0.671435 |
2719ce50d9f7f460d6334caa3b33f198f9bf2c09 | 2,587 | h | C | src/devices/gpio/drivers/as370-gpio/as370-gpio.h | dahlia-os/fuchsia-pine64-pinephone | 57aace6f0b0bd75306426c98ab9eb3ff4524a61d | [
"BSD-3-Clause"
] | 10 | 2020-12-28T17:04:44.000Z | 2022-03-12T03:20:43.000Z | src/devices/gpio/drivers/as370-gpio/as370-gpio.h | oshunter/fuchsia | 2196fc8c176d01969466b97bba3f31ec55f7767b | [
"BSD-3-Clause"
] | 1 | 2022-01-14T23:38:40.000Z | 2022-01-14T23:38:40.000Z | src/devices/gpio/drivers/as370-gpio/as370-gpio.h | oshunter/fuchsia | 2196fc8c176d01969466b97bba3f31ec55f7767b | [
"BSD-3-Clause"
] | 4 | 2020-12-28T17:04:45.000Z | 2022-03-12T03:20:44.000Z | // Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SRC_DEVICES_GPIO_DRIVERS_AS370_GPIO_AS370_GPIO_H_
#define SRC_DEVICES_GPIO_DRIVERS_AS370_GPIO_AS370_GPIO_H_
#include <lib/mmio/mmio.h>
#include <t... | 36.43662 | 95 | 0.764979 |
b9f9cb494cb37c84d586959fafde9de87f5c58a5 | 1,258 | swift | Swift | DigitalFare/Classes/GeocodingResponse.swift | althurzard/DigitalFare | 88b4445be887a91db6c3c4aa476d72c058f86be1 | [
"MIT"
] | null | null | null | DigitalFare/Classes/GeocodingResponse.swift | althurzard/DigitalFare | 88b4445be887a91db6c3c4aa476d72c058f86be1 | [
"MIT"
] | null | null | null | DigitalFare/Classes/GeocodingResponse.swift | althurzard/DigitalFare | 88b4445be887a91db6c3c4aa476d72c058f86be1 | [
"MIT"
] | null | null | null | //
// GeocodingResponse.swift
// digital-fare-lib
//
// Created by Nguyen Quoc Vuong on 7/29/20.
//
import Foundation
import CPAPIService
import CoreLocation
public struct GeocodingResponse: BaseModel {
public var results: [GeocodingResult]
}
public struct GeocodingResult: BaseModel {
public var form... | 28.590909 | 105 | 0.704293 |
80c16ee45eba190cb1320e404e11596152bf65f4 | 5,580 | kt | Kotlin | src/test/kotlin/com/velmie/parser/ParserTests.kt | velmie/jvm-api-error-parser | 49dd892984bd4fba263b2dc8f20b4733ff3ba169 | [
"MIT"
] | null | null | null | src/test/kotlin/com/velmie/parser/ParserTests.kt | velmie/jvm-api-error-parser | 49dd892984bd4fba263b2dc8f20b4733ff3ba169 | [
"MIT"
] | null | null | null | src/test/kotlin/com/velmie/parser/ParserTests.kt | velmie/jvm-api-error-parser | 49dd892984bd4fba263b2dc8f20b4733ff3ba169 | [
"MIT"
] | 1 | 2019-06-20T07:33:03.000Z | 2019-06-20T07:33:03.000Z | package com.velmie.parser
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
import com.velmie.parser.entity.DataEntity
import com.velmie.parser.entity.apiResponse.ApiResponseEntity
import com.velmie.parser.entity.apiResponse.interfaces.ErrorMessageInterface
import com.velmie.parser.entity.parserResp... | 40.729927 | 120 | 0.722581 |
5bd28168288a8896887fca1828b3ea080fab0725 | 2,591 | h | C | Volume_15/Number_4/Olsson2011/utils/Rendering.h | kyeonghopark/jgt-code | 08bbcc298e12582e32cb56a52e70344c57689d73 | [
"MIT"
] | 415 | 2015-10-24T17:37:12.000Z | 2022-02-18T04:09:07.000Z | Volume_15/Number_4/Olsson2011/utils/Rendering.h | kyeonghopark/jgt-code | 08bbcc298e12582e32cb56a52e70344c57689d73 | [
"MIT"
] | 8 | 2016-01-15T13:23:16.000Z | 2021-05-27T01:49:50.000Z | Volume_15/Number_4/Olsson2011/utils/Rendering.h | kyeonghopark/jgt-code | 08bbcc298e12582e32cb56a52e70344c57689d73 | [
"MIT"
] | 77 | 2015-10-24T22:36:29.000Z | 2022-03-24T01:03:54.000Z | /****************************************************************************/
/* Copyright (c) 2011, Markus Billeter, Ola Olsson, Erik Sintorn and Ulf Assarsson
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), t... | 29.443182 | 96 | 0.659591 |
9c6e1819c4e019cd12f08920a50f99537c6212e5 | 8,468 | js | JavaScript | app/fbcnms-projects/inventory/app/components/configure/AddEditWorkerTypeCard.js | danielrh135568/symphony-1 | 54c92a0f8775d1a837ab7c7bd6a08ccd906d28a4 | [
"BSD-3-Clause"
] | null | null | null | app/fbcnms-projects/inventory/app/components/configure/AddEditWorkerTypeCard.js | danielrh135568/symphony-1 | 54c92a0f8775d1a837ab7c7bd6a08ccd906d28a4 | [
"BSD-3-Clause"
] | 12 | 2022-02-14T04:20:30.000Z | 2022-03-28T04:20:17.000Z | app/fbcnms-projects/inventory/app/components/configure/AddEditWorkerTypeCard.js | danielrh135568/symphony-1 | 54c92a0f8775d1a837ab7c7bd6a08ccd906d28a4 | [
"BSD-3-Clause"
] | 1 | 2022-02-24T21:47:51.000Z | 2022-02-24T21:47:51.000Z | /**
* Copyright 2004-present Facebook. All Rights Reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
* @format
*/
import type {AddEditWorkerTypeCard_workerType} from './__generated__/AddEditWorkerTypeCard_worke... | 29.816901 | 111 | 0.599551 |
0cb901c85f60e28cdd422152266e1ce6e9afaf21 | 2,164 | py | Python | web/impact/impact/views/calendar_reminder_view.py | masschallenge/impact-api | 81075ced8fcc95de9390dd83c15e523e67fc48c0 | [
"MIT"
] | 5 | 2017-10-19T15:11:52.000Z | 2020-03-08T07:16:21.000Z | web/impact/impact/views/calendar_reminder_view.py | masschallenge/impact-api | 81075ced8fcc95de9390dd83c15e523e67fc48c0 | [
"MIT"
] | 182 | 2017-06-21T19:32:13.000Z | 2021-03-22T13:38:16.000Z | web/impact/impact/views/calendar_reminder_view.py | masschallenge/impact-api | 81075ced8fcc95de9390dd83c15e523e67fc48c0 | [
"MIT"
] | 1 | 2018-06-23T11:53:18.000Z | 2018-06-23T11:53:18.000Z | from django.views import View
from django.http import HttpResponseRedirect
from add2cal import Add2Cal
from pytz import timezone
import datetime
from django.http import (
JsonResponse,
HttpResponse
)
ADD2CAL_DATE_FORMAT = "%Y%m%dT%H%M%S"
CALENDAR_CONTENT_TYPE = 'text/calendar'
OUTLOOK_LINK_TYPE = 'outlook'
GOO... | 35.47541 | 79 | 0.636322 |
d82b2e9f0d080184069eb85c9cbf43fc07e12fd9 | 759 | sql | SQL | ArcanaErp.Database/dbo/Tables/RequirementPartyRole.sql | TheWizardAndTheWyrd/ArcanaERP | 7a1740b7dc91f27fa3971059d0883f76a19949a9 | [
"PostgreSQL"
] | null | null | null | ArcanaErp.Database/dbo/Tables/RequirementPartyRole.sql | TheWizardAndTheWyrd/ArcanaERP | 7a1740b7dc91f27fa3971059d0883f76a19949a9 | [
"PostgreSQL"
] | null | null | null | ArcanaErp.Database/dbo/Tables/RequirementPartyRole.sql | TheWizardAndTheWyrd/ArcanaERP | 7a1740b7dc91f27fa3971059d0883f76a19949a9 | [
"PostgreSQL"
] | null | null | null | CREATE TABLE [dbo].[RequirementPartyRole] (
[Id] INT IDENTITY (1, 1) NOT NULL,
[Description] VARCHAR (255) NULL,
[RequirementId] INT NULL,
[PartyId] INT NULL,
[RoleTypeId] INT NULL,
[ExternalIdentifier] VARCH... | 36.142857 | 90 | 0.55336 |
cb8c1143da35971ebc1b2488297e747858737071 | 1,079 | swift | Swift | Tests/BowLaws/MonadStateLaws.swift | Dragna/bow | 8cd19a4fd84463b53ce1b0772bec96d84f9f5007 | [
"Apache-2.0"
] | null | null | null | Tests/BowLaws/MonadStateLaws.swift | Dragna/bow | 8cd19a4fd84463b53ce1b0772bec96d84f9f5007 | [
"Apache-2.0"
] | null | null | null | Tests/BowLaws/MonadStateLaws.swift | Dragna/bow | 8cd19a4fd84463b53ce1b0772bec96d84f9f5007 | [
"Apache-2.0"
] | null | null | null | import Foundation
import SwiftCheck
@testable import Bow
class MonadStateLaws<F: MonadState & EquatableK> where F.S == Int {
static func check() {
getIdempotent()
setTwice()
setGet()
getSet()
}
private static func getIdempotent() {
property("Idempotence") <... | 28.394737 | 99 | 0.531047 |
f095e8c4203e79cda4b80de2f79b7f41a7b3d5b7 | 15,758 | js | JavaScript | lib/tests/lookaround-leapfrog.test.js | loveencounterflow/pipestreams | ef51c62cb8add08fe8d65e188e5b94c6917ba4d4 | [
"MIT"
] | null | null | null | lib/tests/lookaround-leapfrog.test.js | loveencounterflow/pipestreams | ef51c62cb8add08fe8d65e188e5b94c6917ba4d4 | [
"MIT"
] | null | null | null | lib/tests/lookaround-leapfrog.test.js | loveencounterflow/pipestreams | ef51c62cb8add08fe8d65e188e5b94c6917ba4d4 | [
"MIT"
] | null | null | null | (function() {
'use strict';
var $, $async, CND, FS, OS, PATH, PS, alert, badge, debug, defer, echo, help, info, inspect, is_empty, jr, log, rpr, test, urge, warn, whisper, xrpr;
//###########################################################################################################
CND = require('cnd');
... | 29.564728 | 151 | 0.32282 |
9a011801919fb898a9d05cb5b03df9d836e6cc8b | 5,983 | lua | Lua | print.lua | mah0x211/lua-print | 5fe19678a506a8f7317c9d7d5b0b733ba009376c | [
"MIT"
] | null | null | null | print.lua | mah0x211/lua-print | 5fe19678a506a8f7317c9d7d5b0b733ba009376c | [
"MIT"
] | null | null | null | print.lua | mah0x211/lua-print | 5fe19678a506a8f7317c9d7d5b0b733ba009376c | [
"MIT"
] | null | null | null | --
-- Copyright (C) 2022 Masatoshi Fukunaga
--
-- 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, ... | 23.371094 | 80 | 0.592178 |
e71b4bbb59cb0fbea1da603947d9704e78aebaee | 221 | js | JavaScript | node_modules/react-data-grid/lib/formatters/SimpleCellFormatter.js | Sharonyel/Enplloyee-Directory | fd05c2261711d1ad7ffb8cbb298def3b47163276 | [
"Unlicense"
] | null | null | null | node_modules/react-data-grid/lib/formatters/SimpleCellFormatter.js | Sharonyel/Enplloyee-Directory | fd05c2261711d1ad7ffb8cbb298def3b47163276 | [
"Unlicense"
] | null | null | null | node_modules/react-data-grid/lib/formatters/SimpleCellFormatter.js | Sharonyel/Enplloyee-Directory | fd05c2261711d1ad7ffb8cbb298def3b47163276 | [
"Unlicense"
] | null | null | null | import React from 'react';
export function SimpleCellFormatter(_a) {
var value = _a.value;
return React.createElement("div", { title: String(value) }, value);
}
//# sourceMappingURL=SimpleCellFormatter.js.map | 36.833333 | 72 | 0.714932 |
764823da13703c2d99d79f3e3df69b266dcb5ce0 | 485 | asm | Assembly | oeis/074/A074816.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/074/A074816.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/074/A074816.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A074816: a(n) = 3^A001221(n) = 3^omega(n).
; Submitted by Simon Strandgaard
; 1,3,3,3,3,9,3,3,3,9,3,9,3,9,9,3,3,9,3,9,9,9,3,9,3,9,3,9,3,27,3,3,9,9,9,9,3,9,9,9,3,27,3,9,9,9,3,9,3,9,9,9,3,9,9,9,9,9,3,27,3,9,9,3,9,27,3,9,9,27,3,9,3,9,9,9,9,27,3,9,3,9,3,27,9,9,9,9,3,27,9,9,9,9,9,9,3,9,9,9
add $0,1
mov $1,1
mov $2,2
lpb ... | 20.208333 | 209 | 0.507216 |
1576b882349f626fb3531c4f1405c820395509e1 | 1,580 | rb | Ruby | app.rb | hellospiral/tamagotchi_ruby | fbbafa83a874f2a06272128c4a0baa07c5fbec4b | [
"MIT"
] | null | null | null | app.rb | hellospiral/tamagotchi_ruby | fbbafa83a874f2a06272128c4a0baa07c5fbec4b | [
"MIT"
] | null | null | null | app.rb | hellospiral/tamagotchi_ruby | fbbafa83a874f2a06272128c4a0baa07c5fbec4b | [
"MIT"
] | null | null | null |
require('sinatra')
require('sinatra/reloader')
require('./lib/tamagotchi')
also_reload('lib/**/*.rb')
get('/') do
erb(:index)
end
post('/tamagotchi') do
@tamagotchi = Tamagotchi.new(params.fetch('name'))
Tamagotchi.set_last_active()
@name = @tamagotchi.name()
@food = @tamagotchi.food()
@sleep = @tamagot... | 23.939394 | 57 | 0.623418 |
30787943786e4439e813e7f1dd49ac0f1080d6d8 | 27,957 | html | HTML | statement-builders.html | lifeofpeace/mybatis | dc0cc6095198cb05c9467f012f4d90f5fd076d89 | [
"Apache-2.0"
] | null | null | null | statement-builders.html | lifeofpeace/mybatis | dc0cc6095198cb05c9467f012f4d90f5fd076d89 | [
"Apache-2.0"
] | null | null | null | statement-builders.html | lifeofpeace/mybatis | dc0cc6095198cb05c9467f012f4d90f5fd076d89 | [
"Apache-2.0"
] | null | null | null | <!DOCTYPE html>
<!--
| Generated by Apache Maven Doxia at 24 五月 2015
| Rendered using Apache Maven Fluido Skin 1.4
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh" lang="zh">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name=... | 42.359091 | 1,596 | 0.490575 |
b03e20cafacff97b7d999ce9efcf75fdcdc61932 | 2,024 | sql | SQL | ifs-data-layer/ifs-data-service/src/main/resources/db/integration/V113_0_4__Remove_old_competition.sql | adambirse/innovation-funding-service | db1c2bc5a25d3143df02bef9019aefd5261caf6f | [
"MIT"
] | 40 | 2017-03-29T13:58:42.000Z | 2021-07-04T22:13:12.000Z | ifs-data-layer/ifs-data-service/src/main/resources/db/integration/V113_0_4__Remove_old_competition.sql | adambirse/innovation-funding-service | db1c2bc5a25d3143df02bef9019aefd5261caf6f | [
"MIT"
] | 19 | 2017-09-30T11:57:32.000Z | 2022-02-13T18:38:48.000Z | ifs-data-layer/ifs-data-service/src/main/resources/db/integration/V113_0_4__Remove_old_competition.sql | adambirse/innovation-funding-service | db1c2bc5a25d3143df02bef9019aefd5261caf6f | [
"MIT"
] | 20 | 2017-04-05T11:34:30.000Z | 2022-03-22T14:42:08.000Z | -- Remove the Competition 1 and all the competition templates. They now exist in the test data dump file
delete from form_input_validator where form_input_id in (select fi.id from form_input fi join question q on q.id = fi.question_id where q.competition_id in (1,2,3,4,5,6,7,8));
delete from guidance_row where id in ... | 69.793103 | 228 | 0.780138 |
eb627a551fe82c27daa4ef83bc335fa933376653 | 23,914 | sql | SQL | dbnya/simas_2013_06_16_kerangka_ONEUSER.sql | butirpadi/appkeuangan | e808fb2aa5a3ca390bc38063ca707491bcc395c4 | [
"MIT"
] | null | null | null | dbnya/simas_2013_06_16_kerangka_ONEUSER.sql | butirpadi/appkeuangan | e808fb2aa5a3ca390bc38063ca707491bcc395c4 | [
"MIT"
] | null | null | null | dbnya/simas_2013_06_16_kerangka_ONEUSER.sql | butirpadi/appkeuangan | e808fb2aa5a3ca390bc38063ca707491bcc395c4 | [
"MIT"
] | null | null | null | -- --------------------------------------------------------
-- Host :127.0.0.1
-- Server version :5.5.27 - MySQL Community Server (GPL)
-- Server OS :Win32
-- HeidiSQL Version :7.0.0.4304
-- Created :2013-06-16 17:05:38
... | 49.307216 | 955 | 0.680898 |
974b8f3cdf1aeeed29e4a24a7845850aa5421e1a | 675 | sql | SQL | packages/cloud-functions/src/cico/transakWebhook.schema.sql | cajubelt/wallet | 55774511031c453bde33f0898a625e3b0e7a51cd | [
"Apache-2.0"
] | 2 | 2021-10-02T21:11:14.000Z | 2021-10-02T22:44:44.000Z | packages/cloud-functions/src/cico/transakWebhook.schema.sql | codyborn/ValoraWallet | eb943825c6d2b335eede8a99bef65bb394bce844 | [
"Apache-2.0"
] | null | null | null | packages/cloud-functions/src/cico/transakWebhook.schema.sql | codyborn/ValoraWallet | eb943825c6d2b335eede8a99bef65bb394bce844 | [
"Apache-2.0"
] | null | null | null | eventID: STRING,
id: STRING,
walletAddress: STRING,
createdAt: TIMESTAMP,
status: STRING,
fiatCurrency: STRING,
cryptoCurrency: STRING,
isBuyOrSell: STRING,
fiatAmount: FLOAT,
walletLink: STRING,
paymentOptionId: STRING,
quoteId: STRING,
addressAdditionalData: BOOLEAN,
network: STRING,
amountPaid: FLOAT,
redirectURL: S... | 21.774194 | 33 | 0.823704 |
9c2ef43b0a0469e700975561cd1a1dba6135a58b | 468 | js | JavaScript | File2Link.js | Nicify/JSBox-Scripts | 490aa8623a0a5a574ed04540b65c6698c6d86d4a | [
"MIT"
] | 5 | 2019-08-18T14:32:51.000Z | 2021-12-11T16:46:55.000Z | File2Link.js | 186c0/JSBox-Scripts | 490aa8623a0a5a574ed04540b65c6698c6d86d4a | [
"MIT"
] | null | null | null | File2Link.js | 186c0/JSBox-Scripts | 490aa8623a0a5a574ed04540b65c6698c6d86d4a | [
"MIT"
] | 2 | 2018-04-15T03:33:03.000Z | 2018-07-16T09:57:53.000Z | if (void 0 === $context.data) {
$ui.toast("请从分享面板运行");
$app.close();
}
$http.request({
method: "PUT",
url: "https://transfer.sh/" + encodeURIComponent($context.data.fileName),
body: $context.data,
handler: resp => {
let data = resp.data;
if (data) {
$clipboard.text = ... | 24.631579 | 77 | 0.482906 |
c6103af217b2cabfb59c13af65251c7185d78a07 | 1,272 | rb | Ruby | spec/anagram_spec.rb | jk0609/anagrams | 18b13ae1d1a00fd79303d9bf2b6a5a62878771a8 | [
"Unlicense"
] | null | null | null | spec/anagram_spec.rb | jk0609/anagrams | 18b13ae1d1a00fd79303d9bf2b6a5a62878771a8 | [
"Unlicense"
] | null | null | null | spec/anagram_spec.rb | jk0609/anagrams | 18b13ae1d1a00fd79303d9bf2b6a5a62878771a8 | [
"Unlicense"
] | null | null | null | require('rspec')
require('./lib/anagram')
describe('Word#anagram') do
#output is processed into a string on app.rb
it('returns non-anagram inputs as 1') do
expect('taste'.anagram('apple')).to(eq([1]))
end
it('returns 2 one-word anagram inputs as 0') do
expect('test'.anagram('estt')).to(eq([0])... | 37.411765 | 90 | 0.643082 |
652d0559a2243d1e92871449e1c32a5d4ef6cbbb | 8,660 | py | Python | bot/exts/filters/token_remover.py | adhikariprajitraj/bot | 207eb16e7be7a339bb3e670ffd74283e755a73a7 | [
"MIT"
] | null | null | null | bot/exts/filters/token_remover.py | adhikariprajitraj/bot | 207eb16e7be7a339bb3e670ffd74283e755a73a7 | [
"MIT"
] | null | null | null | bot/exts/filters/token_remover.py | adhikariprajitraj/bot | 207eb16e7be7a339bb3e670ffd74283e755a73a7 | [
"MIT"
] | null | null | null | import base64
import binascii
import logging
import re
import typing as t
from discord import Colour, Message, NotFound
from discord.ext.commands import Cog
from bot import utils
from bot.bot import Bot
from bot.constants import Channels, Colours, Event, Icons
from bot.exts.moderation.modlog import ModLog
from bot.ut... | 37.008547 | 105 | 0.639145 |
1aee7293410e64eebd7c098aa0f7a1dc7e4e5c01 | 488 | sql | SQL | aridb.sql | swiftlyanerd/ArianaBot-old | c435cafdc5ffa5e75cdb17d7d6aa594e2248c6f2 | [
"MIT"
] | null | null | null | aridb.sql | swiftlyanerd/ArianaBot-old | c435cafdc5ffa5e75cdb17d7d6aa594e2248c6f2 | [
"MIT"
] | null | null | null | aridb.sql | swiftlyanerd/ArianaBot-old | c435cafdc5ffa5e75cdb17d7d6aa594e2248c6f2 | [
"MIT"
] | null | null | null | CREATE TABLE members (
id BIGINT(20) NOT NULL,
username VARCHAR(30),
discriminator INT (4),
server VARCHAR(20) DEFAULT '' NOT NULL,
moonlight INT(10) DEFAULT 0 NOT NULL,
CONSTRAINT `PRIMARY` PRIMARY KEY (id, server)
);
CREATE TABLE uinfo (
id BIGINT(20) NOT NULL,
username VARCHAR(30),
... | 25.684211 | 49 | 0.657787 |
b1906e7639ae073b63682576c5c0d254804f1ca7 | 670 | h | C | 3-UserInput/data/RIGHT.h | khalladay/GBAByExample-SpriteAnimation | 09c16d3754789f64e21c39cb44d80742b26ac970 | [
"MIT"
] | 24 | 2017-06-09T12:37:35.000Z | 2022-01-11T19:19:11.000Z | 3-UserInput/data/RIGHT.h | khalladay/GBAByExample-SpriteAnimation | 09c16d3754789f64e21c39cb44d80742b26ac970 | [
"MIT"
] | null | null | null | 3-UserInput/data/RIGHT.h | khalladay/GBAByExample-SpriteAnimation | 09c16d3754789f64e21c39cb44d80742b26ac970 | [
"MIT"
] | 5 | 2018-12-15T17:14:23.000Z | 2022-02-17T23:25:08.000Z |
//{{BLOCK(RIGHT)
//======================================================================
//
// RIGHT, 64x32@8,
// + palette 3 entries, not compressed
// + 32 tiles Metatiled by 8x4 not compressed
// Total size: 6 + 2048 = 2054
//
// Time-stamp: 2017-04-15, 15:00:36
// Exported by Cearn's GBA Image Transmogrifier, v... | 23.103448 | 72 | 0.552239 |
85aa05879622ef26de000227578dd75c072672aa | 354 | js | JavaScript | app/main/services/training-video-service-serv.js | SkillitCooking/skillitMobile | e411f0418004149aa23d878503d304318a68040e | [
"BSD-Source-Code"
] | null | null | null | app/main/services/training-video-service-serv.js | SkillitCooking/skillitMobile | e411f0418004149aa23d878503d304318a68040e | [
"BSD-Source-Code"
] | null | null | null | app/main/services/training-video-service-serv.js | SkillitCooking/skillitMobile | e411f0418004149aa23d878503d304318a68040e | [
"BSD-Source-Code"
] | null | null | null | 'use strict';
angular.module('main')
.factory('TrainingVideoService', function (Restangular) {
var baseTrainingVideos = Restangular.all('trainingVideos');
return {
getTrainingVideosForCollection: function(collectionId) {
return baseTrainingVideos.customPOST({collectionId: collectionId}, 'getTrainingVideo... | 27.230769 | 107 | 0.748588 |
62ec2cbc29763f9735fa9bf2d64cb10ad5e08ea7 | 2,787 | sql | SQL | visconti db/industry_account_project_canvas_assignation.sql | mitapirvuet/uppscience | 03e48385dfaf046352a1e6735a1961631036162e | [
"BSD-3-Clause",
"MIT"
] | null | null | null | visconti db/industry_account_project_canvas_assignation.sql | mitapirvuet/uppscience | 03e48385dfaf046352a1e6735a1961631036162e | [
"BSD-3-Clause",
"MIT"
] | null | null | null | visconti db/industry_account_project_canvas_assignation.sql | mitapirvuet/uppscience | 03e48385dfaf046352a1e6735a1961631036162e | [
"BSD-3-Clause",
"MIT"
] | null | null | null | -- --------------------------------------------------------
-- Host: 127.0.0.1
-- Server version: 5.7.10-log - MySQL Community Server (GPL)
-- Server OS: Win32
-- HeidiSQL Version: 9.3.0.4984
-- --------------------------------------------------------... | 69.675 | 172 | 0.739146 |
a13b4c76945bcf9c9e5830aae8366268e006c06b | 6,588 | go | Go | part.go | cinience/go.enmime | 3702bd9092afd46a33a80af5bec693960b583418 | [
"MIT"
] | null | null | null | part.go | cinience/go.enmime | 3702bd9092afd46a33a80af5bec693960b583418 | [
"MIT"
] | null | null | null | part.go | cinience/go.enmime | 3702bd9092afd46a33a80af5bec693960b583418 | [
"MIT"
] | null | null | null | package enmime
import (
"bufio"
"bytes"
"encoding/base64"
"fmt"
"io"
"mime"
"mime/multipart"
"net/textproto"
"strings"
"github.com/sloonz/go-qprintable"
)
// MIMEPart is the primary interface enmine clients will use. Each MIMEPart represents
// a node in the MIME multipart tree. The Content-Type, Disposi... | 27.22314 | 91 | 0.686703 |
c6d4618ec1f2cab9f4674d4773508187a7d95025 | 824 | rb | Ruby | lib/flybuys_card_validation.rb | samjf/flybuys_card_validation | 186bc61cdea6d838fab735f46a3356fefe54cb54 | [
"MIT"
] | null | null | null | lib/flybuys_card_validation.rb | samjf/flybuys_card_validation | 186bc61cdea6d838fab735f46a3356fefe54cb54 | [
"MIT"
] | null | null | null | lib/flybuys_card_validation.rb | samjf/flybuys_card_validation | 186bc61cdea6d838fab735f46a3356fefe54cb54 | [
"MIT"
] | null | null | null | # frozen_string_literal: true
require_relative "flybuys_card_validation/version"
require_relative "flybuys_card_validation/card/base"
module FlybuysCardValidation
class Error < StandardError; end
##
# This class provides validation to Fly Buys cards
class Validator
def initialize(card_list_str)
@ca... | 22.27027 | 60 | 0.707524 |
118e0c1c6d04f3edd26a0fcd0ff25050963a53ae | 1,085 | asm | Assembly | programs/oeis/293/A293014.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/293/A293014.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/293/A293014.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A293014: a(n) = a(n-1) + a(n-2) - a(n-3) + a(n-4) for n > 4, where a(n)=0 for n < 4 and a(4) = 1.
; 0,0,0,0,1,1,2,2,4,6,11,17,28,44,72,116,189,305,494,798,1292,2090,3383,5473,8856,14328,23184,37512,60697,98209,158906,257114,416020,673134,1089155,1762289,2851444,4613732,7465176,12078908,19544085,31622993,51167078,8279... | 45.208333 | 737 | 0.752995 |
df5c22dc8d2179276ecc1e89292b63356fcda899 | 4,038 | kt | Kotlin | jvideo/src/main/java/com/jplus/jvideoview/utils/JvUtil.kt | HanPlus/Jvideoview | da2ee40b45ab9cba89c6aa0d2a78d878cb0aa94a | [
"Apache-2.0"
] | 4 | 2019-12-08T10:28:56.000Z | 2020-12-25T06:13:19.000Z | jvideo/src/main/java/com/jplus/jvideoview/utils/JvUtil.kt | HanPlus/Jvideoview | da2ee40b45ab9cba89c6aa0d2a78d878cb0aa94a | [
"Apache-2.0"
] | null | null | null | jvideo/src/main/java/com/jplus/jvideoview/utils/JvUtil.kt | HanPlus/Jvideoview | da2ee40b45ab9cba89c6aa0d2a78d878cb0aa94a | [
"Apache-2.0"
] | 1 | 2021-09-02T03:22:20.000Z | 2021-09-02T03:22:20.000Z | package com.jplus.jvideoview.utils
import android.content.Context
import android.graphics.Bitmap
import android.media.MediaMetadataRetriever
import android.provider.Settings
import android.util.Log
import android.view.WindowManager
import android.widget.LinearLayout
import java.text.SimpleDateFormat
import java.util.*... | 29.911111 | 104 | 0.60847 |
5b3c51498621ede0a2e5fe424027b2d0f6bb763b | 4,270 | c | C | io/read_hdf5.c | Andrei-EPFL/FCFC | fdf69fc5d6b24bdd7fff2bcdf8998c6ecacabdd6 | [
"MIT"
] | null | null | null | io/read_hdf5.c | Andrei-EPFL/FCFC | fdf69fc5d6b24bdd7fff2bcdf8998c6ecacabdd6 | [
"MIT"
] | null | null | null | io/read_hdf5.c | Andrei-EPFL/FCFC | fdf69fc5d6b24bdd7fff2bcdf8998c6ecacabdd6 | [
"MIT"
] | null | null | null | #include "read_file.h"
#include "libast.h"
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <ctype.h>
#include "hdf5.h"
static int read_col(hid_t group_id, char const *pos, real **data, hsize_t *num) {
const int ndims = 1;//H5Sget_simple_extent_ndims(data_space);
hsize_... | 26.855346 | 111 | 0.559016 |
d01d6124c530a7221e52ab6d400b5fcbc8bd40c4 | 151 | rb | Ruby | db/migrate/20161108173654_add_column_profissional_id_avaliacao.rb | danielsiebra/projeto_e_profissional | 291b1e5ba8f8687ccc14625bbe9a02e048527e3e | [
"BSD-3-Clause"
] | null | null | null | db/migrate/20161108173654_add_column_profissional_id_avaliacao.rb | danielsiebra/projeto_e_profissional | 291b1e5ba8f8687ccc14625bbe9a02e048527e3e | [
"BSD-3-Clause"
] | null | null | null | db/migrate/20161108173654_add_column_profissional_id_avaliacao.rb | danielsiebra/projeto_e_profissional | 291b1e5ba8f8687ccc14625bbe9a02e048527e3e | [
"BSD-3-Clause"
] | null | null | null | class AddColumnProfissionalIdAvaliacao < ActiveRecord::Migration
def change
add_column :avaliacoes_servicos, :profissional_id, :integer
end
end
| 25.166667 | 64 | 0.821192 |
0cae7bc6d95d0a5148d10292b4933dd1fd93753f | 1,968 | py | Python | chapters/10/src/biglittle/entity/user.py | PacktPublishing/-Learn-MongoDB-4.0 | 011f14fc66c42498dcbf07e64e760b5e9f420243 | [
"MIT"
] | 13 | 2020-08-06T17:05:50.000Z | 2021-11-08T13:12:11.000Z | chapters/10/src/biglittle/entity/user.py | PacktPublishing/-Learn-MongoDB-4.0 | 011f14fc66c42498dcbf07e64e760b5e9f420243 | [
"MIT"
] | 4 | 2020-09-20T05:30:39.000Z | 2021-04-01T08:35:40.000Z | chapters/10/src/biglittle/entity/user.py | PacktPublishing/-Learn-MongoDB-4.0 | 011f14fc66c42498dcbf07e64e760b5e9f420243 | [
"MIT"
] | 12 | 2020-08-07T06:45:43.000Z | 2021-12-08T06:58:23.000Z | # biglittle.entity.user
# tell python where to find module source code
import os,sys
sys.path.append(os.path.realpath('../../../src'))
from biglittle.entity.base import Base
class Name(Base) :
formFieldPrefix = 'name_'
fields = {
'title' : '',
'first' : '',
'middle' : '',
'la... | 22.363636 | 57 | 0.427846 |
d4c43c92497f3f6e158a6841197ef8bd34bff40e | 61 | kt | Kotlin | plugins/kotlin/refIndex/tests/testData/compilerIndex/properties/hierarchy/kotlin/set/KKKK/KKK.kt | 06needhamt/intellij-community | 63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b | [
"Apache-2.0"
] | null | null | null | plugins/kotlin/refIndex/tests/testData/compilerIndex/properties/hierarchy/kotlin/set/KKKK/KKK.kt | 06needhamt/intellij-community | 63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b | [
"Apache-2.0"
] | null | null | null | plugins/kotlin/refIndex/tests/testData/compilerIndex/properties/hierarchy/kotlin/set/KKKK/KKK.kt | 06needhamt/intellij-community | 63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b | [
"Apache-2.0"
] | null | null | null | open class KKK : KK() {
override var property: Int = 42
} | 20.333333 | 35 | 0.622951 |
a243c32bd2afc2eeb277de62059676cf64718f4d | 4,218 | asm | Assembly | Labs/Lab6/lab06_ex1.asm | ptr2578/CS61 | 682dccd6b986f383120a4612eb7e7a2d1e3cfa3f | [
"BSD-3-Clause"
] | 1 | 2019-01-01T23:31:22.000Z | 2019-01-01T23:31:22.000Z | Labs/Lab6/lab06_ex1.asm | ptr2578/CS61 | 682dccd6b986f383120a4612eb7e7a2d1e3cfa3f | [
"BSD-3-Clause"
] | null | null | null | Labs/Lab6/lab06_ex1.asm | ptr2578/CS61 | 682dccd6b986f383120a4612eb7e7a2d1e3cfa3f | [
"BSD-3-Clause"
] | null | null | null | ;=================================================
; Name: Sungho Ahn
; Email: sahn025@ucr.edu
; GitHub username: ptr2578
;
; Lab: lab 6
; Lab section: B21
; TA: Jason Goulding
;=================================================
.ORIG x3000
;--------------
; Instructions
;--------------
LD R1, ARRAY_PTR ; Load address... | 29.089655 | 76 | 0.613798 |