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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c9353e982c46a0174dbf30019467b6f2bce4a73a | 418 | ts | TypeScript | assets/script/core/utils/SingletonFactory.ts | CaoHu0/CocosCreater-TS | 5ae6a51e5daddbaa24ccf9cdcd5d808aef591d96 | [
"Apache-2.0"
] | null | null | null | assets/script/core/utils/SingletonFactory.ts | CaoHu0/CocosCreater-TS | 5ae6a51e5daddbaa24ccf9cdcd5d808aef591d96 | [
"Apache-2.0"
] | null | null | null | assets/script/core/utils/SingletonFactory.ts | CaoHu0/CocosCreater-TS | 5ae6a51e5daddbaa24ccf9cdcd5d808aef591d96 | [
"Apache-2.0"
] | 1 | 2020-10-06T05:27:33.000Z | 2020-10-06T05:27:33.000Z |
/**
* 单例工厂
*/
export class SingletonFactory {
private static instances: Map<{ new() }, Object> = new Map<{ new() }, Object>();
public static getInstance<T>(c: { new(): T }): T {
if (!SingletonFactory.instances.has(c)) {
let obj = new c();
SingletonFactory.instances.set(c, ob... | 24.588235 | 84 | 0.545455 |
5baa4f0fb6c02edb2165c53c64972267c2ab16e4 | 347 | sh | Shell | make.sh | qnib/docker-plugin-authz | 81d5d47d78a0a94955524d5d0a0606730542e1aa | [
"Apache-2.0"
] | null | null | null | make.sh | qnib/docker-plugin-authz | 81d5d47d78a0a94955524d5d0a0606730542e1aa | [
"Apache-2.0"
] | null | null | null | make.sh | qnib/docker-plugin-authz | 81d5d47d78a0a94955524d5d0a0606730542e1aa | [
"Apache-2.0"
] | null | null | null | #!/bin/sh
set -x
name=${1:-"qnib/docker-plugin-authz"}
docker build -f Dockerfile.pluginbuild -t "$name" .
id=$(docker create "$name")
rm -rf rootfs
mkdir -p rootfs
docker export "$id" | tar -xvf - -C rootfs
docker rm "$id"
rm -rf rootfs/proc rootfs/sys rootfs/go rootfs/etc rootfs/dev
docker plugin rm "$name"
dock... | 19.277778 | 61 | 0.688761 |
436bf1983447c65fae2d22e2082d8b3ebb4d180a | 373 | ts | TypeScript | src/types.spec.ts | rogalmic/vscode-xml-complete | d484083d7dc56b40cf92257eed11f5cbc056febe | [
"MIT"
] | 28 | 2019-04-09T09:14:52.000Z | 2021-11-09T09:56:50.000Z | test/src/types.spec.ts | zkoss/ZK-vscode-plugin | 163fe8bc46c2bc1e9291eb1869ee3db345ec4a6f | [
"MIT"
] | 31 | 2019-03-08T16:42:13.000Z | 2021-04-21T09:35:09.000Z | test/src/types.spec.ts | zkoss/ZK-vscode-plugin | 163fe8bc46c2bc1e9291eb1869ee3db345ec4a6f | [
"MIT"
] | 19 | 2019-05-29T20:08:13.000Z | 2022-03-11T02:33:29.000Z | import { CompletionString, XmlTagCollection } from "./types";
describe("XmlTagCollection", () => {
it("return empty string when data missing", () => {
const xtc = new XmlTagCollection();
xtc.setNsMap("a", "b");
expect(xtc.fixNs(new CompletionString(""), new Map<string, string>()))
... | 28.692308 | 78 | 0.595174 |
a385a013c04dc7aa6bb69111dd9e05deef6aefc6 | 2,015 | java | Java | thirdeye/thirdeye-detector/src/main/java/com/linkedin/thirdeye/lib/util/MetricTimeSeriesUtils.java | Hanmourang/Pinot | 85204d140c34470a948e000a8562b87c0cc3f1d7 | [
"Apache-2.0"
] | 17 | 2015-11-27T15:56:18.000Z | 2020-11-17T12:38:17.000Z | thirdeye/thirdeye-detector/src/main/java/com/linkedin/thirdeye/lib/util/MetricTimeSeriesUtils.java | Hanmourang/Pinot | 85204d140c34470a948e000a8562b87c0cc3f1d7 | [
"Apache-2.0"
] | null | null | null | thirdeye/thirdeye-detector/src/main/java/com/linkedin/thirdeye/lib/util/MetricTimeSeriesUtils.java | Hanmourang/Pinot | 85204d140c34470a948e000a8562b87c0cc3f1d7 | [
"Apache-2.0"
] | 10 | 2015-12-30T07:50:16.000Z | 2019-10-31T03:13:23.000Z | package com.linkedin.thirdeye.lib.util;
import com.linkedin.thirdeye.api.MetricTimeSeries;
import org.apache.commons.math3.util.Pair;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Collections;
import java.util.Set;
/**
*
*/
public class MetricTimeSeriesUtils {
private static final Lo... | 31.984127 | 112 | 0.683375 |
f0afead3c3737842fde4f208ec17f0b72b32bc05 | 9,196 | lua | Lua | node.lua | flazer/package-remotephotoviewer | a0183743a9101d090b247ed548f74321243ec158 | [
"MIT"
] | null | null | null | node.lua | flazer/package-remotephotoviewer | a0183743a9101d090b247ed548f74321243ec158 | [
"MIT"
] | null | null | null | node.lua | flazer/package-remotephotoviewer | a0183743a9101d090b247ed548f74321243ec158 | [
"MIT"
] | null | null | null | gl.setup(NATIVE_WIDTH, NATIVE_HEIGHT)
local json = require "json"
local font = resource.load_font "roboto.ttf"
local black = resource.create_colored_texture(0,0,0,1)
local shaders = {
multisample = resource.create_shader[[
uniform sampler2D Texture;
varying vec2 TexCoord;
uniform vec4 Col... | 26.967742 | 91 | 0.5311 |
313dc2ab60b87ec605b085bd2044891c11887002 | 157,640 | rb | Ruby | gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/client.rb | DalavanCloud/aws-sdk-ruby | 6f190d198f8857ec63fcf32bf5aee9b104ffa938 | [
"Apache-2.0"
] | 1 | 2018-11-04T17:54:43.000Z | 2018-11-04T17:54:43.000Z | gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/client.rb | DalavanCloud/aws-sdk-ruby | 6f190d198f8857ec63fcf32bf5aee9b104ffa938 | [
"Apache-2.0"
] | null | null | null | gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/client.rb | DalavanCloud/aws-sdk-ruby | 6f190d198f8857ec63fcf32bf5aee9b104ffa938 | [
"Apache-2.0"
] | null | null | null | # WARNING ABOUT GENERATED CODE
#
# This file is generated. See the contributing guide for more information:
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
#
# WARNING ABOUT GENERATED CODE
require 'seahorse/client/plugins/content_length.rb'
require 'aws-sdk-core/plugins/credentials_configuration.rb'
... | 48.017058 | 603 | 0.680348 |
99a5afcd59385c77f650f54924c9415d75b36270 | 6,554 | rs | Rust | as_derive_utils/src/utils.rs | Monadic-Cat/abi_stable_crates | 19d71ec9175f870c1c784c37dae730b99948cacf | [
"Apache-2.0",
"MIT"
] | 284 | 2019-04-13T05:27:34.000Z | 2022-03-22T16:38:11.000Z | as_derive_utils/src/utils.rs | Monadic-Cat/abi_stable_crates | 19d71ec9175f870c1c784c37dae730b99948cacf | [
"Apache-2.0",
"MIT"
] | 43 | 2019-04-28T21:08:24.000Z | 2022-03-04T21:44:44.000Z | as_derive_utils/src/utils.rs | Monadic-Cat/abi_stable_crates | 19d71ec9175f870c1c784c37dae730b99948cacf | [
"Apache-2.0",
"MIT"
] | 18 | 2019-08-02T06:50:45.000Z | 2022-02-13T18:02:22.000Z | use std::{
fmt::Display,
ops::{Deref,DerefMut},
mem::{self,ManuallyDrop},
ptr,
};
use quote::ToTokens;
use proc_macro2::{
TokenStream as TokenStream2,
Span,
};
use syn::spanned::Spanned;
////////////////////////////////////////////////////////////////////////////////
#[derive(Debug,Copy,Clon... | 23.241135 | 80 | 0.537534 |
be5ed84c5ea22f77f08c79a7d66db17ff06b1aff | 5,169 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_st_sm_/i9-9900K_12_0xca_notsx.log_21829_1399.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_st_sm_/i9-9900K_12_0xca_notsx.log_21829_1399.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_st_sm_/i9-9900K_12_0xca_notsx.log_21829_1399.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x9fc7, %rsi
lea addresses_D_ht+0xcfc7, %rdi
nop
nop
inc %rax
mov $116, %rcx
rep movsq
nop
xor %r9, %r9
lea addresses_WC_ht+0x614f, %r12
nop
and $37188, %rcx
mov (%r12), %r9d
add %r12, %r12
po... | 43.805085 | 2,999 | 0.659315 |
72d7ed02a7843bc5983430b2aa253bbe3db9d912 | 1,414 | sql | SQL | Learn/SQL/Preliminary/Fundamental SQL with SELECT Statement/Fundamental SQL with SELECT Statement.sql | IrvanKurnia213/DQLab | 13469ea4fba29228ac04ce64a9b9a2adeeaf14d1 | [
"MIT"
] | 22 | 2021-04-06T02:20:44.000Z | 2022-03-23T11:47:26.000Z | Learn/SQL/Preliminary/Fundamental SQL with SELECT Statement/Fundamental SQL with SELECT Statement.sql | IrvanKurnia213/DQLab | 13469ea4fba29228ac04ce64a9b9a2adeeaf14d1 | [
"MIT"
] | 1 | 2021-02-08T04:58:25.000Z | 2021-02-08T04:58:25.000Z | Learn/SQL/Preliminary/Fundamental SQL with SELECT Statement/Fundamental SQL with SELECT Statement.sql | IrvanKurnia213/DQLab | 13469ea4fba29228ac04ce64a9b9a2adeeaf14d1 | [
"MIT"
] | 50 | 2021-03-31T10:32:55.000Z | 2022-03-15T11:04:35.000Z | USE dqlab;
-- Perintah SELECT [2/2]
SELECT
*
FROM
ms_produk;
-- Mengambil Satu Kolom dari TABLE
SELECT
nama_produk
FROM
ms_produk;
-- Mengambil Lebih dari Satu Kolom
SELECT
nama_produk,
harga
FROM
ms_produk;
-- Membatasi Pengambilan Jumlah Row Data
SELECT
nama_produk
FROM
ms_prod... | 13.862745 | 50 | 0.693777 |
4feeaf08a3a1cd49f430a14acd8025a6b999ddaf | 1,157 | lua | Lua | tests/lib/charon/dispatcher/dispatchController.lua | lazaroness/charonplatform | aeee2a803f86995b48c1b5a151b964e41ee7f602 | [
"BSD-3-Clause"
] | 1 | 2018-02-22T01:09:18.000Z | 2018-02-22T01:09:18.000Z | tests/lib/charon/dispatcher/dispatchController.lua | lazaroness/charonplatform | aeee2a803f86995b48c1b5a151b964e41ee7f602 | [
"BSD-3-Clause"
] | null | null | null | tests/lib/charon/dispatcher/dispatchController.lua | lazaroness/charonplatform | aeee2a803f86995b48c1b5a151b964e41ee7f602 | [
"BSD-3-Clause"
] | null | null | null | local json = require('charon.json')
local dispatcher = require('charon.dispatcher')
local test = {}
package.path = package.path .. ';util/?.lua'
test.beforeAll = function()
dispatcher.output = function() end
end
test.afterAll = function()
end
test.should_return_error_if_action_not_found = function()
local ... | 27.547619 | 78 | 0.689715 |
a48c1d5873214eee54c35b7d89ba291c2dca5e08 | 40,209 | dart | Dart | lib/avl_tree.dart | LBXjixiangniao/dart_tree | fece33c9904c499cfe5bdb09a0ccf9123e5e63ee | [
"MIT"
] | 1 | 2020-12-14T02:16:33.000Z | 2020-12-14T02:16:33.000Z | lib/avl_tree.dart | LBXjixiangniao/dart_tree | fece33c9904c499cfe5bdb09a0ccf9123e5e63ee | [
"MIT"
] | null | null | null | lib/avl_tree.dart | LBXjixiangniao/dart_tree | fece33c9904c499cfe5bdb09a0ccf9123e5e63ee | [
"MIT"
] | null | null | null | part of 'dart_tree.dart';
/// AVL树节点
/**
* 二叉树节点的平衡因子A的被定义为高度差(右子树高度-左子树高度)
* 如果二叉搜索树所有节点的平衡因子在{-1,0,1}范围内,则称为AVL树
* 如果节点平衡因子 < 0,被称为“左重”;如果节点平衡因子 > 0,被称为“右重”;如果节点平衡因子 == 0, 有时简称为“平衡”
*/
class _AVLTreeNode<K, Node extends _AVLTreeNode<K, Node>> extends _BinaryTreeNode<K, Node> {
///平衡因子,新节点没有子树,所以平衡因子为0
int fa... | 29.392544 | 107 | 0.581238 |
da63a47f0342787b0d055e8f15e62b905b6fab90 | 975 | php | PHP | application/modules/grafik_responden/models/M_data.php | TeamHackathon15sep/hackathon15sep | 68cf58ce457a1f0582131c1a826cd40979cafc7c | [
"MIT"
] | null | null | null | application/modules/grafik_responden/models/M_data.php | TeamHackathon15sep/hackathon15sep | 68cf58ce457a1f0582131c1a826cd40979cafc7c | [
"MIT"
] | null | null | null | application/modules/grafik_responden/models/M_data.php | TeamHackathon15sep/hackathon15sep | 68cf58ce457a1f0582131c1a826cd40979cafc7c | [
"MIT"
] | null | null | null | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class M_data extends CI_Model {
function get_data()
{
$query = $this->db->query("SELECT id_survey, COUNT( * ) AS jumlah, DATE_FORMAT(tgl_survey,'%d/%m/%Y') AS tgl_survey FROM survey GROUP BY DAY(tgl_survey) ORDER BY id_surv... | 40.625 | 213 | 0.642051 |
4a5f4d7b0c97cfaba7502bd01e75ab34207242db | 5,068 | lua | Lua | docker/minetest/home/mods/advtrains/advtrains_train_subway/init.lua | batako/mine_blockly | 64a2a6114e4281c68caea6b806a18b64f2b5a7d9 | [
"MIT"
] | 8 | 2018-02-26T12:43:17.000Z | 2020-06-06T13:47:08.000Z | docker/minetest/home/mods/advtrains/advtrains_train_subway/init.lua | batako/mine_blockly | 64a2a6114e4281c68caea6b806a18b64f2b5a7d9 | [
"MIT"
] | 54 | 2018-03-03T03:19:02.000Z | 2022-03-30T22:31:52.000Z | docker/minetest/home/mods/advtrains/advtrains_train_subway/init.lua | batako/mine_blockly | 64a2a6114e4281c68caea6b806a18b64f2b5a7d9 | [
"MIT"
] | 2 | 2019-05-30T11:06:57.000Z | 2021-03-04T14:14:58.000Z | local S
if minetest.get_modpath("intllib") then
S = intllib.Getter()
else
S = function(s,a,...)a={a,...}return s:gsub("@(%d+)",function(n)return a[tonumber(n)]end)end
end
advtrains.register_wagon("subway_wagon", {
mesh="advtrains_subway_wagon.b3d",
textures = {"advtrains_subway_wagon.png"},
drives_on={defau... | 29.811765 | 147 | 0.681334 |
1f08a39acb19398aa2760c6ab940c10b5b5a063d | 90 | lua | Lua | MapLoad.lua | JulianoCP/game-dungeonCrawler-lua | 2cedc6a4f3767790674512b2b9804dd5afdfe241 | [
"MIT"
] | 1 | 2021-12-15T14:55:19.000Z | 2021-12-15T14:55:19.000Z | MapLoad.lua | JulianoCP/game-dungeonCrawler-lua | 2cedc6a4f3767790674512b2b9804dd5afdfe241 | [
"MIT"
] | 1 | 2019-12-04T21:46:38.000Z | 2019-12-04T21:46:38.000Z | MapLoad.lua | JulianoCP/game-dungeonCrawler-lua | 2cedc6a4f3767790674512b2b9804dd5afdfe241 | [
"MIT"
] | 1 | 2019-12-11T21:20:18.000Z | 2019-12-11T21:20:18.000Z | names = {
"Dungeon",
"Fosso",
"Siberia",
"Mix",
"Novo",
}
return names | 11.25 | 14 | 0.466667 |
9e13a0c0bb3e18b97488238bd230e4ee4427652e | 11,010 | cs | C# | OtherComponents/MDWSvistalayer/MDWS Source/mdo/mdo/src/mdo/dao/oracle/mhv/sm/FolderDao.cs | frankfont/RAPTOR_FORK | 2d9d4a4b11c7d79268495d1ccdf5ae4c7eb45331 | [
"Apache-2.0"
] | 7 | 2016-02-17T17:54:27.000Z | 2021-03-18T08:21:32.000Z | OtherComponents/MDWSvistalayer/MDWS Source/mdo/mdo/src/mdo/dao/oracle/mhv/sm/FolderDao.cs | frankfont/RAPTOR_FORK | 2d9d4a4b11c7d79268495d1ccdf5ae4c7eb45331 | [
"Apache-2.0"
] | 6 | 2016-02-03T19:32:29.000Z | 2017-02-13T19:26:29.000Z | OtherComponents/MDWSvistalayer/MDWS Source/mdo/mdo/src/mdo/dao/oracle/mhv/sm/FolderDao.cs | frankfont/RAPTOR_FORK | 2d9d4a4b11c7d79268495d1ccdf5ae4c7eb45331 | [
"Apache-2.0"
] | 9 | 2015-01-03T16:46:54.000Z | 2017-07-29T18:22:53.000Z | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using Oracle.DataAccess.Client;
using Oracle.DataAccess.Types;
using gov.va.medora.mdo.exceptions;
namespace gov.va.medora.mdo.dao.oracle.mhv.sm
{
public class FolderDao
{
MdoOracleConnection _cxn;... | 38.767606 | 177 | 0.615622 |
05be8fa3598cb3c899491652530770a0eca158b9 | 12,599 | swift | Swift | sofastcar/sofastcar/View/Login/CheckDriverLicenseView.swift | SoFastCar/SoFastCar-IOS | bafe1e9bd1f0f077d672e433f017b1af51f48999 | [
"MIT"
] | 1 | 2021-04-03T05:35:13.000Z | 2021-04-03T05:35:13.000Z | sofastcar/sofastcar/View/Login/CheckDriverLicenseView.swift | SoFastCar/SoFastCar-IOS | bafe1e9bd1f0f077d672e433f017b1af51f48999 | [
"MIT"
] | 102 | 2020-09-01T05:50:09.000Z | 2020-10-08T01:40:37.000Z | sofastcar/sofastcar/View/Login/CheckDriverLicenseView.swift | SoFastCar/SoFastCar-IOS | bafe1e9bd1f0f077d672e433f017b1af51f48999 | [
"MIT"
] | 11 | 2020-08-13T12:52:18.000Z | 2021-08-17T00:01:23.000Z | //
// CheckDriverLicenseView.swift
// sofastcar
//
// Created by 김광수 on 2020/09/01.
// Copyright © 2020 김광수. All rights reserved.
//
import UIKit
class CheckDriverLicenseView: UIScrollView {
// MARK: - Properties
let smallPadding: CGFloat = 10
let padding: CGFloat = 15
let contentView: UIView = {
l... | 32.809896 | 121 | 0.685451 |
12bbf87ed011ac04e613a11e83d6a41b0acdf092 | 1,218 | cs | C# | Gladiator.Application/Gladiator/QueryHandlers/GetAllGladiatorsHandler.cs | LexiconGr7-1/gladiator-management-simulator | eeb48e8b94ac1fcf6f537278c07ab9fe03395a2d | [
"Apache-2.0"
] | null | null | null | Gladiator.Application/Gladiator/QueryHandlers/GetAllGladiatorsHandler.cs | LexiconGr7-1/gladiator-management-simulator | eeb48e8b94ac1fcf6f537278c07ab9fe03395a2d | [
"Apache-2.0"
] | 25 | 2022-03-24T13:00:58.000Z | 2022-03-31T12:34:45.000Z | Gladiator.Application/Gladiator/QueryHandlers/GetAllGladiatorsHandler.cs | LexiconGr7-1/gladiator-management-simulator | eeb48e8b94ac1fcf6f537278c07ab9fe03395a2d | [
"Apache-2.0"
] | null | null | null | using Gladiator.Application.Gladiator.Mappers;
using Gladiator.Application.Gladiator.Queries;
using Gladiator.Application.Gladiator.Responses;
using Gladiator.Core.Repositories;
using MediatR;
namespace Gladiator.Application.Gladiator.QueryHandlers
{
public class GetAllGladiatorsHandler : IRequestHandler<
... | 31.230769 | 96 | 0.68555 |
39f5957c2adc8b2c15cba3789d951f28be4aff5b | 336 | dart | Dart | lib/src/blocs/lesson_filter/lesson_filter_event.dart | striveapp/checkin | 5f762738c50bd8c2d915bf212c295818eb8886a3 | [
"Apache-2.0"
] | 5 | 2020-05-10T10:38:39.000Z | 2022-01-17T14:29:12.000Z | lib/src/blocs/lesson_filter/lesson_filter_event.dart | striveapp/checkin | 5f762738c50bd8c2d915bf212c295818eb8886a3 | [
"Apache-2.0"
] | 2 | 2020-11-23T23:41:04.000Z | 2020-12-07T18:09:07.000Z | lib/src/blocs/lesson_filter/lesson_filter_event.dart | striveapp/checkin | 5f762738c50bd8c2d915bf212c295818eb8886a3 | [
"Apache-2.0"
] | 1 | 2022-01-17T14:29:17.000Z | 2022-01-17T14:29:17.000Z | import 'package:flutter/foundation.dart';
import 'package:freezed_annotation/freezed_annotation.dart';
part 'lesson_filter_event.freezed.dart';
@freezed
class LessonFilterEvent with _$LessonFilterEvent {
const factory LessonFilterEvent.lessonFilterUpdated({required Set<String> availableLessonTypes}) =
LessonF... | 30.545455 | 100 | 0.821429 |
0d9a446d7d7bd06f8830368bea66ec845c9a5643 | 49,169 | rb | Ruby | lib/rubocop/sketchup/features.rb | Eneroth3/rubocop-sketchup | d0630cfbc2991aa3dc0811786601c81ab4ae47c9 | [
"MIT"
] | null | null | null | lib/rubocop/sketchup/features.rb | Eneroth3/rubocop-sketchup | d0630cfbc2991aa3dc0811786601c81ab4ae47c9 | [
"MIT"
] | null | null | null | lib/rubocop/sketchup/features.rb | Eneroth3/rubocop-sketchup | d0630cfbc2991aa3dc0811786601c81ab4ae47c9 | [
"MIT"
] | null | null | null | # frozen_string_literal: true
# How to update this file:
#
# FEATURES constant:
#
# 1. Run the `rubocop-changelog` YARD template on the API stubs repository:
# (https://github.com/SketchUp/rubocop-sketchup/issues/4#issuecomment-370753043)
#
# yardoc -c -t rubocop-changelog -f text > rubocop-changelog.txt
#
# 2. ... | 38.503524 | 83 | 0.530416 |
4ba8148da6fb6bef9c21d0fa9310229516ae052c | 2,290 | dart | Dart | live_compilation_server/lib/main.dart | wanbing/flutter_ide | 90464e894dbbd294942e4e732814ce23105c4d19 | [
"MIT"
] | 1,032 | 2019-01-05T15:47:42.000Z | 2022-03-27T06:16:12.000Z | live_compilation_server/lib/main.dart | wanbing/flutter_ide | 90464e894dbbd294942e4e732814ce23105c4d19 | [
"MIT"
] | 38 | 2019-01-06T15:54:17.000Z | 2022-02-13T12:48:01.000Z | live_compilation_server/lib/main.dart | wanbing/flutter_ide | 90464e894dbbd294942e4e732814ce23105c4d19 | [
"MIT"
] | 177 | 2019-01-06T01:43:19.000Z | 2022-03-28T21:05:11.000Z | import 'dart:convert';
import 'dart:io';
import 'package:flutter/material.dart';
import 'temp_widget.dart';
import 'package:flutter/foundation.dart'
show debugDefaultTargetPlatformOverride;
import 'widget_converter.dart';
//import '../../pkg/widget_converter/lib/widget_converter.dart';
//import '/Users/Norbert/wor... | 20.818182 | 100 | 0.682096 |
a363a252bcf572a678fd56533f0c4c9083179150 | 8,952 | java | Java | bus-office/src/main/java/org/aoju/bus/office/magic/Info.java | jingshuai5213/bus | f3ec545617acffaf2668ea78e974a05be268cfd1 | [
"MIT"
] | null | null | null | bus-office/src/main/java/org/aoju/bus/office/magic/Info.java | jingshuai5213/bus | f3ec545617acffaf2668ea78e974a05be268cfd1 | [
"MIT"
] | null | null | null | bus-office/src/main/java/org/aoju/bus/office/magic/Info.java | jingshuai5213/bus | f3ec545617acffaf2668ea78e974a05be268cfd1 | [
"MIT"
] | null | null | null | /*********************************************************************************
* *
* The MIT License (MIT) *
* ... | 38.25641 | 102 | 0.583333 |
d706126c3f065c9252b0da25b98f8bea4ab57a56 | 327 | kt | Kotlin | src/main/kotlin/com/easy/springboot/simpleloginbackend/controller/HelloWorldController.kt | EasySpringBoot/simple-login-back-end | 681e46ceefff255ae1578599d496a59573eeb910 | [
"ISC"
] | 3 | 2018-11-10T16:51:54.000Z | 2021-08-10T02:25:49.000Z | src/main/kotlin/com/easy/springboot/simpleloginbackend/controller/HelloWorldController.kt | EasySpringBoot/simple-login-back-end | 681e46ceefff255ae1578599d496a59573eeb910 | [
"ISC"
] | null | null | null | src/main/kotlin/com/easy/springboot/simpleloginbackend/controller/HelloWorldController.kt | EasySpringBoot/simple-login-back-end | 681e46ceefff255ae1578599d496a59573eeb910 | [
"ISC"
] | 1 | 2018-11-14T08:06:19.000Z | 2018-11-14T08:06:19.000Z | package com.easy.springboot.simpleloginbackend.controller
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RestController
@RestController
class HelloWorldController {
@GetMapping(value = ["/hello"])
fun hello(): String {
return "Hello World!"
... | 21.8 | 61 | 0.755352 |
23cb3335d8e4eecf9b1a2d3ecd8e0761d15a4dbd | 4,815 | js | JavaScript | src/Home/Home.js | wangyan4/react-native-HomeApp | e02f42ba32256e88c3ddf58e8d23a71d1dbca45a | [
"MIT"
] | null | null | null | src/Home/Home.js | wangyan4/react-native-HomeApp | e02f42ba32256e88c3ddf58e8d23a71d1dbca45a | [
"MIT"
] | 1 | 2021-05-11T08:34:26.000Z | 2021-05-11T08:34:26.000Z | src/Home/Home.js | wangyan4/react-native-HomeApp | e02f42ba32256e88c3ddf58e8d23a71d1dbca45a | [
"MIT"
] | null | null | null | import React, { Component } from 'react'
import { Text, View ,StyleSheet,TextInput,Dimensions,Image} from 'react-native'
import Icon from 'react-native-vector-icons/FontAwesome5';
import Button from 'react-native-button';
import Swiper from 'react-native-swiper';
const {width} = Dimensions.get('window');
const p = widt... | 32.1 | 166 | 0.584839 |
6da490131bf92c2c96336ff53d87a97edab3c66a | 1,363 | h | C | System/Library/Frameworks/Security.framework/XPCServices/TrustedPeersHelper.xpc/OTPrivateKey.h | lechium/tvOS130Headers | 6b47cdcd4a6f453b399aa9d742b5d0f7e3f732fd | [
"MIT"
] | 11 | 2019-11-06T04:48:48.000Z | 2022-02-09T17:48:15.000Z | System/Library/Frameworks/Security.framework/XPCServices/TrustedPeersHelper.xpc/OTPrivateKey.h | lechium/tvOS130Headers | 6b47cdcd4a6f453b399aa9d742b5d0f7e3f732fd | [
"MIT"
] | 1 | 2020-04-16T01:41:56.000Z | 2020-04-16T04:32:00.000Z | System/Library/Frameworks/Security.framework/XPCServices/TrustedPeersHelper.xpc/OTPrivateKey.h | lechium/tvOS130Headers | 6b47cdcd4a6f453b399aa9d742b5d0f7e3f732fd | [
"MIT"
] | 3 | 2019-12-22T20:17:53.000Z | 2021-01-25T09:47:49.000Z | /*
* This header is generated by classdump-dyld 1.0
* on Tuesday, November 5, 2019 at 2:50:47 AM Mountain Standard Time
* Operating System: Version 13.0 (Build 17J586)
* Image Source: /System/Library/Frameworks/Security.framework/XPCServices/TrustedPeersHelper.xpc/TrustedPeersHelper
* classdump-dyld is licensed under G... | 30.977273 | 120 | 0.735143 |
dd9f6d7fcea86aa6c9f21898c7a5bfa17bd58f08 | 6,130 | py | Python | scripts/pre_adapt_tidefac.py | jamal919/SCHISMMB | f02106ffafeaeee6da5c7382e33f74ca1c327c37 | [
"Apache-2.0"
] | 1 | 2022-03-08T13:33:21.000Z | 2022-03-08T13:33:21.000Z | scripts/pre_adapt_tidefac.py | jamal919/SCHISMMB | f02106ffafeaeee6da5c7382e33f74ca1c327c37 | [
"Apache-2.0"
] | 1 | 2022-03-26T13:08:56.000Z | 2022-03-26T13:08:56.000Z | scripts/pre_adapt_tidefac.py | jamal919/SCHISMMB | f02106ffafeaeee6da5c7382e33f74ca1c327c37 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Reads tidefac output and adapt given bctides file as required by the tidefac
outputs.
@author: khan
@email: jamal.khan@legos.obs-mip.fr
"""
import numpy as np
from datetime import datetime, timedelta
import sys
import re
class Bctides(object):
def __init__(self, info='', ntip=0, tip_d... | 37.378049 | 119 | 0.515824 |
39e3f4622bb7331fb29b68f091cbf6312bf53f34 | 27,039 | dart | Dart | test/flutter_sidekick_test.dart | Jayshanx/flutter_sidekick | decca53a735aa51b7a97c7824b2003b8f351dea6 | [
"MIT"
] | 287 | 2018-11-03T08:59:13.000Z | 2022-03-27T00:36:12.000Z | test/flutter_sidekick_test.dart | silexcorp/flutter_sidekick | 7f8312e9b39c27d8ad2d202e8324a387917dd8ad | [
"MIT"
] | 11 | 2018-11-07T21:13:20.000Z | 2021-08-30T10:35:04.000Z | test/flutter_sidekick_test.dart | silexcorp/flutter_sidekick | 7f8312e9b39c27d8ad2d202e8324a387917dd8ad | [
"MIT"
] | 34 | 2018-11-05T06:57:19.000Z | 2022-03-26T18:02:20.000Z | import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:flutter_sidekick/flutter_sidekick.dart';
Duration frameDuration = const Duration(milliseconds: 16);
Key simpleSource = const Key('simple-source');
Key simpleTarget = const Key('simple-target');
class SimpleExample... | 35.252934 | 80 | 0.612042 |
7daa9f075aaaa9d41fe03d7b69d315e63e6d8c2c | 707 | rs | Rust | lib/src/likelihood/mod.rs | ManifoldFR/hawkes-process-rust | 04d80ff6d01e8bc1857378b07f4548970af4eea0 | [
"MIT"
] | 28 | 2018-07-01T16:50:00.000Z | 2021-12-11T21:12:54.000Z | lib/src/likelihood/mod.rs | ManifoldFR/hawkes-process-rust | 04d80ff6d01e8bc1857378b07f4548970af4eea0 | [
"MIT"
] | 4 | 2018-10-14T18:07:16.000Z | 2019-08-17T15:46:36.000Z | lib/src/likelihood/mod.rs | ManifoldFR/hawkes-process-rust | 04d80ff6d01e8bc1857378b07f4548970af4eea0 | [
"MIT"
] | 1 | 2021-02-03T09:01:38.000Z | 2021-02-03T09:01:38.000Z | //! Utility functions to compute the log-likelihood of the data under the models.
//! The general form is given by
//! $$
//! \ell(\Theta) = \sum_i \log(\lambda_{t_i}) - \int_0^T \lambda_t dt
//! $$
mod hawkes;
pub use hawkes::{hawkes_likelihood,HawkesLikelihood};
use ndarray::prelude::*;
use crate::temporal::{P... | 25.25 | 81 | 0.653465 |
9ad70178d0c9618f039bf0852346e652fc171cf6 | 14,727 | py | Python | epitator/incident_annotator.py | langstok/EpiTator | 721fdc444382a0493702ee5976c987954753f47a | [
"Apache-2.0"
] | 40 | 2017-05-27T03:53:22.000Z | 2021-08-07T16:33:58.000Z | epitator/incident_annotator.py | langstok/EpiTator | 721fdc444382a0493702ee5976c987954753f47a | [
"Apache-2.0"
] | 25 | 2017-07-17T14:33:24.000Z | 2021-04-09T10:27:56.000Z | epitator/incident_annotator.py | langstok/EpiTator | 721fdc444382a0493702ee5976c987954753f47a | [
"Apache-2.0"
] | 9 | 2017-11-15T05:13:53.000Z | 2021-08-07T16:33:59.000Z | #!/usr/bin/env python
"""
Create incidents that group together multiple layers of annotations.
This is based on the createIncidentReportsFromEnhancements function from
EIDR-Connect, although some differences exist in the output structure,
and code related to manual curation (e.g. the accepted attribute)
is not included... | 45.736025 | 118 | 0.595437 |
f31809f8d12666c73ef39ee61f4ac004c8d1feb7 | 1,724 | dart | Dart | lib/main.dart | kvutien/steve_b | 4e9b586ceb6445ae644af7dde9d505fe37d312ad | [
"MIT"
] | null | null | null | lib/main.dart | kvutien/steve_b | 4e9b586ceb6445ae644af7dde9d505fe37d312ad | [
"MIT"
] | null | null | null | lib/main.dart | kvutien/steve_b | 4e9b586ceb6445ae644af7dde9d505fe37d312ad | [
"MIT"
] | 1 | 2022-03-06T05:04:27.000Z | 2022-03-06T05:04:27.000Z | /*
Flutter 2.8.1 stable, Android Studio 2021.1 Bumblebee, Android SDK 32
Main program of Steve Observer, (c) Vu Tien Khang, Jan 2022
*/
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:flutter_inappwebview/flutter_inappwebview.dart';
// import 'package:provider/provider.dart';
import 'pac... | 31.345455 | 77 | 0.694896 |
bea5a22313e340ac35cf21570cb60ba55ceec9a7 | 913 | ts | TypeScript | dist/PackType.d.ts | Joelant05/mc-project-core | e7810269080c20f0f8412d990878d30883a759c2 | [
"MIT"
] | 1 | 2021-11-09T15:21:13.000Z | 2021-11-09T15:21:13.000Z | dist/PackType.d.ts | Joelant05/mc-project-core | e7810269080c20f0f8412d990878d30883a759c2 | [
"MIT"
] | 1 | 2022-01-31T12:15:53.000Z | 2022-01-31T21:18:05.000Z | dist/PackType.d.ts | Joelant05/mc-project-core | e7810269080c20f0f8412d990878d30883a759c2 | [
"MIT"
] | 2 | 2022-01-21T19:54:31.000Z | 2022-01-30T20:49:56.000Z | import { ProjectConfig } from './ProjectConfig';
export interface IPackType {
id: TPackTypeId;
matcher: string | string[];
color: string;
icon: string;
}
export declare type TPackTypeId = 'behaviorPack' | 'resourcePack' | 'skinPack' | 'worldTemplate';
export declare abstract class PackType<TSetupArg> {
... | 38.041667 | 97 | 0.710843 |
93a9ae84b63dce933117e0b6ee37dd1e8c496bb3 | 1,201 | cs | C# | Discreet-GUI/Services/Extensions/BitmapEx.cs | DiscreetNetwork/discreet-gui | fb0ec3bd956559d6c9e8dccaccc108277ed6533b | [
"MIT"
] | null | null | null | Discreet-GUI/Services/Extensions/BitmapEx.cs | DiscreetNetwork/discreet-gui | fb0ec3bd956559d6c9e8dccaccc108277ed6533b | [
"MIT"
] | null | null | null | Discreet-GUI/Services/Extensions/BitmapEx.cs | DiscreetNetwork/discreet-gui | fb0ec3bd956559d6c9e8dccaccc108277ed6533b | [
"MIT"
] | null | null | null | using QRCoder;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace Services.Extensions
{
/// <summary>
/// Bitmap class to extend static methods
/// </summary>
public static class BitmapEx
{
/// <summary>
/// Creates a QRCode System.Drawing... | 33.361111 | 149 | 0.644463 |
ecb4d7a51e915443f93a6f160b6692b8d67675e4 | 12,898 | sql | SQL | src/main/resources/static/create.sql | TH-Brandenburg/University-Evaluation-Backend | fc43a166f62770a558da4e38e455b06ec5bf0019 | [
"Apache-2.0"
] | 1 | 2016-06-22T13:49:25.000Z | 2016-06-22T13:49:25.000Z | src/main/resources/static/create.sql | TH-Brandenburg/University-Evaluation-Backend | fc43a166f62770a558da4e38e455b06ec5bf0019 | [
"Apache-2.0"
] | 37 | 2016-06-01T13:09:10.000Z | 2017-10-07T13:14:34.000Z | src/main/resources/static/create.sql | TH-Brandenburg/University-Evaluation-Backend | fc43a166f62770a558da4e38e455b06ec5bf0019 | [
"Apache-2.0"
] | null | null | null | -- phpMyAdmin SQL Dump
-- version 4.2.7.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Erstellungszeit: 05. Jan 2016 um 15:37
-- Server Version: 5.6.20
-- PHP-Version: 5.5.15
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/... | 19.904321 | 135 | 0.577764 |
69445abf21ecbad844220e1bef5c62b0421d9310 | 76 | kt | Kotlin | common/src/commonMain/kotlin/com/trikot/sample/viewmodels/base/BaseNavigationDelegate.kt | mirego/trikot.patron | e03afc848e8043c5aaeb852e351fa9665c26456e | [
"BSD-3-Clause"
] | 12 | 2020-05-27T19:51:35.000Z | 2021-06-14T13:39:06.000Z | common/src/commonMain/kotlin/com/trikot/sample/viewmodels/base/BaseNavigationDelegate.kt | mirego/trikot.patron | e03afc848e8043c5aaeb852e351fa9665c26456e | [
"BSD-3-Clause"
] | 11 | 2020-05-20T21:10:45.000Z | 2022-01-14T17:03:40.000Z | common/src/commonMain/kotlin/com/trikot/sample/viewmodels/base/BaseNavigationDelegate.kt | mirego/trikot.patron | e03afc848e8043c5aaeb852e351fa9665c26456e | [
"BSD-3-Clause"
] | 2 | 2020-12-22T10:26:11.000Z | 2021-03-19T02:56:50.000Z | package com.trikot.sample.viewmodels.base
interface BaseNavigationDelegate
| 19 | 41 | 0.881579 |
9ff82e1e50901d8f1404bd9895ee3c2613ee71a2 | 149 | py | Python | multispinsys/TensorOps/__init__.py | Marcupio/SpinProgram | 4d47e5e5048423ae69869a0300558e1fee809bf0 | [
"Apache-2.0"
] | null | null | null | multispinsys/TensorOps/__init__.py | Marcupio/SpinProgram | 4d47e5e5048423ae69869a0300558e1fee809bf0 | [
"Apache-2.0"
] | null | null | null | multispinsys/TensorOps/__init__.py | Marcupio/SpinProgram | 4d47e5e5048423ae69869a0300558e1fee809bf0 | [
"Apache-2.0"
] | null | null | null | from . import Reduce
from . import spinops
from . import spintensor
__all__ = ["Reduce",
"spinops",
"spintensor"
]
| 16.555556 | 24 | 0.557047 |
8d049b47e82b183ebbd60dd3771dbff7f8b90f86 | 639 | kt | Kotlin | app/src/main/java/com/example/chadrick/datalabeling/Models/ServerInfo.kt | chadrick-kwag/datalabeling_app | f73ff0c64718c20692a157ca6b5ece499512ff24 | [
"MIT"
] | null | null | null | app/src/main/java/com/example/chadrick/datalabeling/Models/ServerInfo.kt | chadrick-kwag/datalabeling_app | f73ff0c64718c20692a157ca6b5ece499512ff24 | [
"MIT"
] | null | null | null | app/src/main/java/com/example/chadrick/datalabeling/Models/ServerInfo.kt | chadrick-kwag/datalabeling_app | f73ff0c64718c20692a157ca6b5ece499512ff24 | [
"MIT"
] | null | null | null | package com.example.chadrick.datalabeling.Models
import android.content.Context
import java.io.*
/**
* Created by chadrick on 17. 12. 4.
*/
class ServerInfo private constructor() {
private object holder {
val INSTANCE = ServerInfo()
}
lateinit var serveraddress: String
companion object... | 18.257143 | 72 | 0.672926 |
7be7e64476cd97a7a8a935625fc1d6b4b1e345a0 | 21,222 | cpp | C++ | libraries/mne/c/mne_proj_op.cpp | Andrey1994/mne-cpp | 6264b1107b9447b7db64309f73f09e848fd198c4 | [
"BSD-3-Clause"
] | 2 | 2021-11-16T19:38:12.000Z | 2021-11-18T20:52:08.000Z | libraries/mne/c/mne_proj_op.cpp | Andrey1994/mne-cpp | 6264b1107b9447b7db64309f73f09e848fd198c4 | [
"BSD-3-Clause"
] | null | null | null | libraries/mne/c/mne_proj_op.cpp | Andrey1994/mne-cpp | 6264b1107b9447b7db64309f73f09e848fd198c4 | [
"BSD-3-Clause"
] | 1 | 2021-11-16T19:39:01.000Z | 2021-11-16T19:39:01.000Z | //=============================================================================================================
/**
* @file mne_proj_op.cpp
* @author Lorenz Esch <lesch@mgh.harvard.edu>;
* Matti Hamalainen <msh@nmr.mgh.harvard.edu>;
* Christoph Dinh <chdinh@nmr.mgh.harvard.edu>
* @version... | 27.66884 | 127 | 0.499105 |
7b295abe56ce46d9e00fc11a94901fada02ddc92 | 5,235 | rb | Ruby | lib/rester/client.rb | roberthoner/rester | ee1c31ac7164614bd745b947d4d4af71a3410442 | [
"MIT"
] | null | null | null | lib/rester/client.rb | roberthoner/rester | ee1c31ac7164614bd745b947d4d4af71a3410442 | [
"MIT"
] | null | null | null | lib/rester/client.rb | roberthoner/rester | ee1c31ac7164614bd745b947d4d4af71a3410442 | [
"MIT"
] | null | null | null | require 'json'
require 'active_support/inflector'
require 'logger'
module Rester
class Client
autoload(:Adapters, 'rester/client/adapters')
autoload(:Resource, 'rester/client/resource')
autoload(:Response, 'rester/client/response')
autoload(:Middleware, 'rester/client/middleware')
attr_rea... | 27.845745 | 79 | 0.633811 |
79a8ba7507d474c23652f943ecc436fe5eb5989a | 4,103 | php | PHP | resources/views/auth/passwords/reset.blade.php | PrismPrince/SSG-Electronic-Dropbox | 56f67a667e957edb83072b3ee812f02964253954 | [
"MIT"
] | null | null | null | resources/views/auth/passwords/reset.blade.php | PrismPrince/SSG-Electronic-Dropbox | 56f67a667e957edb83072b3ee812f02964253954 | [
"MIT"
] | null | null | null | resources/views/auth/passwords/reset.blade.php | PrismPrince/SSG-Electronic-Dropbox | 56f67a667e957edb83072b3ee812f02964253954 | [
"MIT"
] | null | null | null | @extends('layouts.app')
@section('content')
<div class="container root-content">
<div class="row">
<div class="col-md-8 col-md-offset-2" v-cloak>
@if (session('status'))
<alert-success>
<span class="glyphicon glyphicon-ok-sign"></span>
{{ session('status') }}
</alert-su... | 32.824 | 112 | 0.46137 |
45b40c3a76715f4f8c204708b5e7ea962011d45e | 7,209 | py | Python | shoot/shoot_simple.py | EliRockenbeck/gamedev | 1d0786703cf32fbb7320e9ea5ce2fb7408ff15ad | [
"MIT"
] | 63 | 2016-01-17T15:44:19.000Z | 2022-01-19T00:40:32.000Z | shoot/shoot_simple.py | EliRockenbeck/gamedev | 1d0786703cf32fbb7320e9ea5ce2fb7408ff15ad | [
"MIT"
] | 1 | 2017-01-14T22:23:37.000Z | 2017-01-15T03:39:23.000Z | shoot/shoot_simple.py | EliRockenbeck/gamedev | 1d0786703cf32fbb7320e9ea5ce2fb7408ff15ad | [
"MIT"
] | 53 | 2016-04-06T17:41:44.000Z | 2022-03-06T01:25:41.000Z | # Shoot!
# by KidsCanCode 2014
# A generic space shooter - prototype (no art)
# For educational purposes only
import pygame
import sys
import random
# define some colors
BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
RED = (255, 0, 0)
GREEN = (0, 255, 0)
BLUE = (0, 0, 255)
BGCOLOR = BLACK
class Meteor(pygame.sprite.Sprit... | 30.16318 | 81 | 0.588847 |
e6b6b59cbc9c4a0a0fd81e6e5401c96acea5c4a5 | 119 | sql | SQL | models/tmp/stg_youtube__channel_demographics_tmp.sql | fivetran-chloe/dbt_youtube_analytics_source | c3ab92c68ce960d3836b1fa679fedf7f61d6486b | [
"Apache-2.0"
] | null | null | null | models/tmp/stg_youtube__channel_demographics_tmp.sql | fivetran-chloe/dbt_youtube_analytics_source | c3ab92c68ce960d3836b1fa679fedf7f61d6486b | [
"Apache-2.0"
] | 2 | 2021-08-23T19:42:56.000Z | 2022-03-30T18:01:27.000Z | models/tmp/stg_youtube__channel_demographics_tmp.sql | fivetran-chloe/dbt_youtube_analytics_source | c3ab92c68ce960d3836b1fa679fedf7f61d6486b | [
"Apache-2.0"
] | 1 | 2021-08-19T22:00:40.000Z | 2021-08-19T22:00:40.000Z | {{ config(enabled=var('youtube__using_channel_demographics', true)) }}
select *
from {{ var('channel_demographics') }} | 29.75 | 70 | 0.739496 |
9054a203f2c0bc1252398588e6a19a77c65891b3 | 1,175 | h | C | components/base/include/cgv/base/node.h | tobias-haenel/cgv-density-estimation | 3be1b07a7b21d1cfd956fb19b5f0d83fb51bd308 | [
"BSD-3-Clause"
] | 1 | 2020-07-26T10:54:41.000Z | 2020-07-26T10:54:41.000Z | components/base/include/cgv/base/node.h | tobias-haenel/cgv-density-estimation | 3be1b07a7b21d1cfd956fb19b5f0d83fb51bd308 | [
"BSD-3-Clause"
] | null | null | null | components/base/include/cgv/base/node.h | tobias-haenel/cgv-density-estimation | 3be1b07a7b21d1cfd956fb19b5f0d83fb51bd308 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include "named.h"
#include <cgv/data/ref_ptr.h>
#include "lib_begin.h"
namespace cgv {
namespace base {
class CGV_API node;
/// ref counted pointer to a node
typedef data::ref_ptr<node,true> node_ptr;
/** The node class keeps a pointer to its parent */
class CGV_API node : public named
{
protected:
... | 21.363636 | 81 | 0.71234 |
44001c8a179b931d505378b7957ab8c0d4d1d91d | 2,957 | py | Python | python/pysnips/ml/stats.py | obilaniu/PySnips | b543cba5661b2c562ea542af891ea8d26bab4cd8 | [
"MIT"
] | 2 | 2017-01-30T23:57:19.000Z | 2017-02-17T21:13:57.000Z | python/pysnips/ml/stats.py | obilaniu/PySnips | b543cba5661b2c562ea542af891ea8d26bab4cd8 | [
"MIT"
] | 1 | 2018-01-29T00:01:04.000Z | 2018-01-29T00:24:14.000Z | python/pysnips/ml/stats.py | obilaniu/PySnips | b543cba5661b2c562ea542af891ea8d26bab4cd8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Imports
import numpy as np, warnings
#
# Collect statistics on tensors in a dictionary.
#
# Interesting statistics about tensors:
#
# - Shape
# - CountElem/Count0/CountPInf/CountNInf/CountPFin/CountNFin/CountNaN
# - Sum
# - L1/L2 Norm
# - Min/Mean/Med/Max
#... | 30.484536 | 75 | 0.623943 |
e040c9ffc928b3ac105f7dcfd21ed7d307b571e1 | 621 | cs | C# | Scripts/Items/Components/LooseScrew.cs | SeracStudio/rocket-miner | 7d8f7c1ae5617663bab6f05366815f50334507c5 | [
"OLDAP-2.2.1"
] | null | null | null | Scripts/Items/Components/LooseScrew.cs | SeracStudio/rocket-miner | 7d8f7c1ae5617663bab6f05366815f50334507c5 | [
"OLDAP-2.2.1"
] | 1 | 2020-12-24T18:50:20.000Z | 2020-12-24T18:50:20.000Z | Scripts/Items/Components/LooseScrew.cs | SeracStudio/rocket-miner | 7d8f7c1ae5617663bab6f05366815f50334507c5 | [
"OLDAP-2.2.1"
] | null | null | null | using Photon.Pun;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class LooseScrew : MonoBehaviour
{
Player player;
private void Start()
{
player = GetComponent<Player>();
MapController.RUNNING.OnRoomLoaded += Effect;
}
private void Effect()
... | 23.884615 | 71 | 0.644122 |
390ac0c4a654a89f8ec1ad844d38973b24d5a68e | 1,268 | py | Python | tests/hs2019_default.py | backupbrain/drf-keypair-permissions | d3e427b4780b20033d66d934d22dbb9ce7f439f5 | [
"0BSD"
] | 2 | 2021-05-19T23:01:32.000Z | 2021-05-20T10:57:17.000Z | tests/hs2019_default.py | backupbrain/drf-keypair-permissions | d3e427b4780b20033d66d934d22dbb9ce7f439f5 | [
"0BSD"
] | null | null | null | tests/hs2019_default.py | backupbrain/drf-keypair-permissions | d3e427b4780b20033d66d934d22dbb9ce7f439f5 | [
"0BSD"
] | null | null | null | #!/usr/bin/env/python3
from keys import p256_private_key_string, p256_public_key_id
from securehttpclient import SecureHttpClient
"""
Test default settings for ECDSA-P256.
If a list of headers is not included,
the date is the only header that is signed by default for hs2019.
The string to sign would be:
------------... | 30.190476 | 191 | 0.745268 |
5ae21d665f099becb108431731ba62b5dc121a45 | 1,213 | cs | C# | source.contracts/OpenFMSL.Contracts/OpenFMSL.Core/ThermodynamicModels/SafeLiquidDensity.cs | Nukleon84/OpenFMSL | 5ab22296a6c4af84fc06fcc15091980093d5eec2 | [
"MIT"
] | 10 | 2018-03-24T17:52:56.000Z | 2021-11-13T12:01:53.000Z | source.contracts/OpenFMSL.Contracts/OpenFMSL.Core/ThermodynamicModels/SafeLiquidDensity.cs | Nukleon84/OpenFMSL | 5ab22296a6c4af84fc06fcc15091980093d5eec2 | [
"MIT"
] | 1 | 2018-06-21T21:12:12.000Z | 2018-06-21T21:12:12.000Z | source.contracts/OpenFMSL.Contracts/OpenFMSL.Core/ThermodynamicModels/SafeLiquidDensity.cs | Nukleon84/OpenFMSL | 5ab22296a6c4af84fc06fcc15091980093d5eec2 | [
"MIT"
] | 2 | 2019-05-28T02:53:14.000Z | 2021-01-07T08:09:06.000Z | using OpenFMSL.Core.Expressions;
using OpenFMSL.Core.Thermodynamics;
using OpenFMSL.Core.UnitsOfMeasure;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OpenFMSL.Core.ThermodynamicModels
{
public class SafeLiquidDensity : Expression
... | 25.808511 | 83 | 0.590272 |
6353aa85747b07252b0a24f121ff4f4752860800 | 673 | sql | SQL | SchoolDatabase/SchoolDatabase/dspUtil/Stored Procedures/LogEnable.sql | directsp/SchoolSample | bb7c95a11247d7f27ac28763752ea8e93d9662f5 | [
"MIT"
] | null | null | null | SchoolDatabase/SchoolDatabase/dspUtil/Stored Procedures/LogEnable.sql | directsp/SchoolSample | bb7c95a11247d7f27ac28763752ea8e93d9662f5 | [
"MIT"
] | null | null | null | SchoolDatabase/SchoolDatabase/dspUtil/Stored Procedures/LogEnable.sql | directsp/SchoolSample | bb7c95a11247d7f27ac28763752ea8e93d9662f5 | [
"MIT"
] | null | null | null | CREATE PROCEDURE [dspUtil].[LogEnable]
@RemoveAllFilters AS BIT = 0
AS
BEGIN
SET @RemoveAllFilters = ISNULL(@RemoveAllFilters, 0);
-- install log system if it is not installed
IF (dspUtil.LogIsInstalled()=0)
EXEC dspUtil.LogInstall;
-- Set enable flag
IF NOT EXISTS(SELECT 1 FROM dspUtil.LogUser AS LU WHER... | 28.041667 | 83 | 0.73997 |
a390a0875e679def4b4b50a163b4210f4d94aec7 | 930 | ts | TypeScript | forgerock-openbanking-ui/projects/cdr-tpp/src/app/pages/transactions/transactions.component.ts | MbqIIB/openbanking-tpp | 54ce830d1ad04cf8119b10fbb6221cffc521cdbb | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2020-06-12T13:13:46.000Z | 2021-07-20T19:08:53.000Z | forgerock-openbanking-ui/projects/cdr-tpp/src/app/pages/transactions/transactions.component.ts | MbqIIB/openbanking-tpp | 54ce830d1ad04cf8119b10fbb6221cffc521cdbb | [
"ECL-2.0",
"Apache-2.0"
] | 94 | 2019-12-11T17:24:27.000Z | 2022-02-25T11:36:50.000Z | forgerock-openbanking-ui/projects/cdr-tpp/src/app/pages/transactions/transactions.component.ts | MbqIIB/openbanking-tpp | 54ce830d1ad04cf8119b10fbb6221cffc521cdbb | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-03-20T08:28:34.000Z | 2021-03-20T08:28:34.000Z | import {
Component,
OnInit,
ChangeDetectionStrategy,
ElementRef,
NgZone,
OnDestroy
} from '@angular/core';
import { CdkScrollable, ScrollDispatcher } from '@angular/cdk/overlay';
@Component({
selector: 'app-transactions',
template: `
<app-transactions-container></app-transactions-container>
`,
... | 28.181818 | 115 | 0.746237 |
15d86b43b67272dea8f75b938c5574a5b36c1fb2 | 2,916 | rb | Ruby | app/controllers/application_controller.rb | Ilinicz/cupofme | b84365388e562562d7fbd602ad5c987b3a27ba7e | [
"MIT"
] | null | null | null | app/controllers/application_controller.rb | Ilinicz/cupofme | b84365388e562562d7fbd602ad5c987b3a27ba7e | [
"MIT"
] | null | null | null | app/controllers/application_controller.rb | Ilinicz/cupofme | b84365388e562562d7fbd602ad5c987b3a27ba7e | [
"MIT"
] | null | null | null | class ApplicationController < ActionController::Base
if ENV['BASIC_AUTH']
user, pass = ENV['BASIC_AUTH'].split(':')
http_basic_authenticate_with name: user, password: pass
end
before_action :meta, if: "request.get?"
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :nul... | 28.31068 | 129 | 0.65775 |
0794f4ba604bd530cf15bedaf6f13d2529aec5dd | 21,257 | cpp | C++ | lib/Conversion/StencilToStandard/ConvertStencilToStandard.cpp | Mogball/open-earth-compiler | 81e137b9b15ac6c49d291ac86ee36666abc15b62 | [
"Apache-2.0"
] | null | null | null | lib/Conversion/StencilToStandard/ConvertStencilToStandard.cpp | Mogball/open-earth-compiler | 81e137b9b15ac6c49d291ac86ee36666abc15b62 | [
"Apache-2.0"
] | null | null | null | lib/Conversion/StencilToStandard/ConvertStencilToStandard.cpp | Mogball/open-earth-compiler | 81e137b9b15ac6c49d291ac86ee36666abc15b62 | [
"Apache-2.0"
] | null | null | null | #include "Conversion/StencilToStandard/ConvertStencilToStandard.h"
#include "Conversion/StencilToStandard/Passes.h"
#include "Dialect/Stencil/StencilDialect.h"
#include "Dialect/Stencil/StencilOps.h"
#include "Dialect/Stencil/StencilTypes.h"
#include "Dialect/Stencil/StencilUtils.h"
#include "PassDetail.h"
#include "ml... | 39.075368 | 80 | 0.657289 |
b8e161f655c4bd4c0dbd0877ac0a8cbb52070fe1 | 563 | c | C | src/QQ29.c | LeyvinoBezerra/LISTA1-C-RESOLUCAO | cf112cb626927560302d0fdc23444a9402913f49 | [
"MIT"
] | null | null | null | src/QQ29.c | LeyvinoBezerra/LISTA1-C-RESOLUCAO | cf112cb626927560302d0fdc23444a9402913f49 | [
"MIT"
] | null | null | null | src/QQ29.c | LeyvinoBezerra/LISTA1-C-RESOLUCAO | cf112cb626927560302d0fdc23444a9402913f49 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
int main()
{
int maior, menor, vet[5], i;
for(i = 0;i < 5;i++)
{
printf("Entre com o %d valor do vetor: ", i+1);
scanf("%d", &vet[i]);
}
maior = vet[0];
menor = vet[0];
for(i = 1;i < 5;i++)
{
if(maior < vet[i])
... | 16.558824 | 55 | 0.435169 |
959a62b4f6bb4643c3d35fdcf3f4337fdad3fd0f | 224 | lua | Lua | migrations/0.1.0.lua | maartenpeels/LTN-Combinator | dc51b0c207d944b01e740a08b75b2faab0e47eba | [
"MIT"
] | 1 | 2020-10-11T21:09:03.000Z | 2020-10-11T21:09:03.000Z | migrations/0.1.0.lua | maartenpeels/LTN-Combinator | dc51b0c207d944b01e740a08b75b2faab0e47eba | [
"MIT"
] | 1 | 2020-11-29T19:52:45.000Z | 2021-03-24T11:04:13.000Z | migrations/0.1.0.lua | maartenpeels/LTN-Combinator | dc51b0c207d944b01e740a08b75b2faab0e47eba | [
"MIT"
] | 2 | 2020-12-04T15:34:00.000Z | 2020-12-16T18:53:17.000Z | for index, force in pairs(game.forces) do
if force.technologies["logistic-train-network"] ~= nil and force.technologies["logistic-train-network"].researched then
force.recipes["ltn-combinator"].enabled = true
end
end | 44.8 | 121 | 0.758929 |
ec54b6c943989f8d856c0730c5763b14b9e2eac8 | 29,896 | asm | Assembly | hasher/asm/nasm/SHA1x86.asm | Hitsounds/ShokoServer | 9b895e425576790107b4240e9a76ed43b05b1750 | [
"MIT"
] | 183 | 2017-07-19T09:49:32.000Z | 2022-03-30T00:53:52.000Z | hasher/asm/nasm/SHA1x86.asm | Hitsounds/ShokoServer | 9b895e425576790107b4240e9a76ed43b05b1750 | [
"MIT"
] | 331 | 2017-07-17T02:38:31.000Z | 2022-03-26T21:09:33.000Z | hasher/asm/nasm/SHA1x86.asm | Hitsounds/ShokoServer | 9b895e425576790107b4240e9a76ed43b05b1750 | [
"MIT"
] | 68 | 2017-07-24T01:52:47.000Z | 2022-02-07T20:25:58.000Z | section .text
global _SHA_Compile_p5@0
align 10h
_SHA_Compile_p5@0:
mov edi, [ebp+0]
bswap edi
mov [esp+4h], edi
mov esi, [ebp+4]
bswap esi
mov [esp+8h], esi
mov ebx, [ebp+8]
bswap ebx
mov [esp+0Ch], ebx
mov ebx, [ebp+0Ch]
bswap ebx
mov [esp+... | 21.400143 | 30 | 0.461533 |
dba04956eb83c5c333453249b2759ecd1ef6e33d | 128 | php | PHP | resources/views/public/video.blade.php | videouri/api | a3d4f77b9ce5fb3ca4c643979be8a731b777b9e4 | [
"MIT"
] | 1 | 2015-08-12T13:02:55.000Z | 2015-08-12T13:02:55.000Z | resources/views/public/video.blade.php | videouri/videouri | a3d4f77b9ce5fb3ca4c643979be8a731b777b9e4 | [
"MIT"
] | 5 | 2016-07-09T14:10:56.000Z | 2016-09-26T22:54:37.000Z | resources/views/public/video.blade.php | videouri/videouri | a3d4f77b9ce5fb3ca4c643979be8a731b777b9e4 | [
"MIT"
] | null | null | null | @extends('app')
@section('content')
<video-page :video="{{ $video }}" :user="{{ Auth::user() }}"></video-page>
@endsection
| 21.333333 | 78 | 0.578125 |
f47d2ed5486eaa22951483b4fac1cede1a589f91 | 42,750 | rs | Rust | libindy/indy-wallet/src/cache/wallet_cache.rs | btosello/sync | 064d931967a8d6b0d090e81f7428183969e4db22 | [
"Apache-2.0"
] | 7 | 2021-10-18T16:49:15.000Z | 2022-02-06T13:44:49.000Z | libindy/indy-wallet/src/cache/wallet_cache.rs | alejandroalffer/cheqd-sdk | 7605689df046788652f1437d5c740faa23c7f4d8 | [
"Apache-2.0"
] | 13 | 2021-08-23T09:13:42.000Z | 2021-09-16T16:09:58.000Z | libindy/indy-wallet/src/cache/wallet_cache.rs | alejandroalffer/cheqd-sdk | 7605689df046788652f1437d5c740faa23c7f4d8 | [
"Apache-2.0"
] | 2 | 2021-12-10T11:03:22.000Z | 2022-03-12T02:09:16.000Z | use crate::{
cache::{
lru::LruCache,
cache::Cache,
},
storage::{
Tag::{Encrypted, PlainText},
TagName::{OfEncrypted, OfPlain},
StorageRecord, Tag, TagName,
},
wallet::EncryptedValue,
RecordOptions,
};
use std::{
collections::{HashSet, HashMap},
ite... | 30.866426 | 99 | 0.555977 |
b75cfe6dbda9e66acdf42f4480e39184ba41ea21 | 449 | cpp | C++ | code/data-structures/segment_tree_node.cpp | viswamy/CompetitiveProgramming | 497d58adce25cfe4fc327301d977da275ad80201 | [
"MIT"
] | null | null | null | code/data-structures/segment_tree_node.cpp | viswamy/CompetitiveProgramming | 497d58adce25cfe4fc327301d977da275ad80201 | [
"MIT"
] | null | null | null | code/data-structures/segment_tree_node.cpp | viswamy/CompetitiveProgramming | 497d58adce25cfe4fc327301d977da275ad80201 | [
"MIT"
] | 1 | 2019-07-28T03:12:29.000Z | 2019-07-28T03:12:29.000Z | #ifndef STNODE
#define STNODE
struct node {
int l, r;
ll x, lazy;
node() {}
node(int _l, int _r) : l(_l), r(_r), x(0), lazy(0) { }
node(int _l, int _r, ll _x) : node(_l,_r) { x = _x; }
node(node a, node b) : node(a.l,b.r) { x = a.x + b.x; }
void update(ll v) { x = v; }
void range_update(... | 29.933333 | 59 | 0.492205 |
5436d7bd76c73cec0e99784dbaed9df2fdbfd5bd | 35,847 | lua | Lua | sc/space/hsc_space_blockchain.lua | aergoio/horde-smart-contract | 0704bb3c54a70ce3c85989b14f7bd97aafe28d0c | [
"MIT"
] | 1 | 2019-01-04T07:21:53.000Z | 2019-01-04T07:21:53.000Z | sc/space/hsc_space_blockchain.lua | aergoio/horde-smart-contract | 0704bb3c54a70ce3c85989b14f7bd97aafe28d0c | [
"MIT"
] | null | null | null | sc/space/hsc_space_blockchain.lua | aergoio/horde-smart-contract | 0704bb3c54a70ce3c85989b14f7bd97aafe28d0c | [
"MIT"
] | 2 | 2019-08-03T11:01:36.000Z | 2019-10-30T12:49:42.000Z | --
-- Horde Smart Contract (HSC): Blockchain space
--
MODULE_NAME = "__HSC_SPACE_BLOCKCHAIN__"
MODULE_NAME_DB = "__MANIFEST_DB__"
MODULE_NAME_COMPUTING = "__HSC_SPACE_COMPUTING__"
state.var {
-- contant variables
_MANIFEST_ADDRESS = state.value(),
}
local function __init__(manifestAddress)
_MANIFEST_ADDRESS:s... | 28.359968 | 101 | 0.63679 |
a32ac86f53c9b9358864fe408cdd722b6c0dba68 | 2,976 | java | Java | app/src/androidTest/java/com/arles/swissmanager/test/ui/TourneyActivityTest.java | floring/SwissManager | 0857bde171397f1b08f5e1a755c4adfea9accdd9 | [
"Apache-2.0"
] | 3 | 2015-09-01T20:21:17.000Z | 2019-12-28T17:46:38.000Z | app/src/androidTest/java/com/arles/swissmanager/test/ui/TourneyActivityTest.java | floring/SwissManager | 0857bde171397f1b08f5e1a755c4adfea9accdd9 | [
"Apache-2.0"
] | 8 | 2015-07-27T15:18:16.000Z | 2015-09-01T17:10:47.000Z | app/src/androidTest/java/com/arles/swissmanager/test/ui/TourneyActivityTest.java | floring/SwissManager | 0857bde171397f1b08f5e1a755c4adfea9accdd9 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2015 Arles. All rights reserved.
* <p/>
* 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
* <p/>
* http://www.apache.org/licenses/LICENSE-2.0
* <p/>
* Unless required ... | 38.649351 | 105 | 0.775538 |
a167a5d2586237b6d8da2804ca0f1889a4e59e03 | 5,137 | ps1 | PowerShell | functions/Select-MenuEntryFromList.ps1 | netcloud/powershell-cli-menu-helpers | 1328a72dd94c78c8d564c2a34eb37272376061c0 | [
"MIT"
] | 7 | 2021-08-17T09:02:00.000Z | 2022-01-27T12:52:59.000Z | functions/Select-MenuEntryFromList.ps1 | netcloud/powershell-cli-menu-helpers | 1328a72dd94c78c8d564c2a34eb37272376061c0 | [
"MIT"
] | null | null | null | functions/Select-MenuEntryFromList.ps1 | netcloud/powershell-cli-menu-helpers | 1328a72dd94c78c8d564c2a34eb37272376061c0 | [
"MIT"
] | null | null | null | function Select-MenuEntryFromList {
<#
.Synopsis
Offers the possibility to render a menu inside the cli and to select one entry.
.DESCRIPTION
Offers the possibility to render a menu inside the cli and to select one entry.
The function will return the selected menu entry.
... | 31.515337 | 141 | 0.503407 |
3f722506c6715b6b381014af46335ccb203485c7 | 6,122 | php | PHP | application/controllers/Main.php | fahmi0721/ppk_sorong_ok | 927302fe600d7a762cd242551409eddf5a6bfcfe | [
"MIT"
] | null | null | null | application/controllers/Main.php | fahmi0721/ppk_sorong_ok | 927302fe600d7a762cd242551409eddf5a6bfcfe | [
"MIT"
] | null | null | null | application/controllers/Main.php | fahmi0721/ppk_sorong_ok | 927302fe600d7a762cd242551409eddf5a6bfcfe | [
"MIT"
] | null | null | null | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Main extends CI_Controller {
/**
* Index Page for this controller.
*
* Maps to the following URL
* http://example.com/index.php/welcome
* - or -
* http://example.com/index.php/welcome/index
* - or -
* Since this controlle... | 31.394872 | 142 | 0.647664 |
e27f3bae35662ddcab3f2b26fec016ee1e7e0189 | 3,088 | py | Python | tests/test_settings.py | pedrobcst/Xerus | 09df088e0207176df0d20715e1c9778d09d28250 | [
"MIT"
] | 18 | 2021-12-10T03:05:49.000Z | 2022-03-25T15:48:35.000Z | tests/test_settings.py | pedrobcst/Xerus | 09df088e0207176df0d20715e1c9778d09d28250 | [
"MIT"
] | 14 | 2022-02-24T11:09:26.000Z | 2022-03-30T07:42:17.000Z | tests/test_settings.py | pedrobcst/Xerus | 09df088e0207176df0d20715e1c9778d09d28250 | [
"MIT"
] | 1 | 2022-02-25T16:26:54.000Z | 2022-02-25T16:26:54.000Z | # Test for configuration & GSAS Binaries
import sys, os
from pathlib import Path
from . import INSTALL_PATH
from Xerus.settings.settings import TEST_XRD, INSTR_PARAMS, GSAS2_BIN
sys.path.append(GSAS2_BIN)
import GSASIIscriptable as G2sc
from Xerus.db.localdb import LocalDB
from Xerus.settings.settings import MP_API_KEY... | 31.191919 | 120 | 0.643135 |
dbc38841a4725d2314f00b0b6b6352d1973f6874 | 2,423 | php | PHP | src/Schema/Normalizer/EventNormalizer.php | Becklyn/schema-org | cf525c19e44c5b1dda4b7475a47788ee1d4191e1 | [
"BSD-3-Clause"
] | 4 | 2020-08-05T21:29:33.000Z | 2022-01-16T22:59:49.000Z | src/Schema/Normalizer/EventNormalizer.php | Becklyn/schema-org | cf525c19e44c5b1dda4b7475a47788ee1d4191e1 | [
"BSD-3-Clause"
] | null | null | null | src/Schema/Normalizer/EventNormalizer.php | Becklyn/schema-org | cf525c19e44c5b1dda4b7475a47788ee1d4191e1 | [
"BSD-3-Clause"
] | null | null | null | <?php declare(strict_types=1);
namespace Becklyn\SchemaOrg\Schema\Normalizer;
use Becklyn\SchemaOrg\Data\Event;
use Becklyn\SchemaOrg\Data\SchemaOrgDataInterface;
use Becklyn\SchemaOrg\Schema\MetaDataNormalizerRegistry;
class EventNormalizer extends ThingNormalizer
{
public const SCHEMA_TYPE = "Event";
/**... | 40.383333 | 177 | 0.655799 |
694b396602a0cb388d085a6b01f9c7ef5d5f7fad | 536 | rb | Ruby | app/models/spree/order_decorator.rb | Top-Form-Investment/cash_on_delivery | 69148a99d4bb9e669cda97b30e4d25385553f4fc | [
"BSD-3-Clause"
] | null | null | null | app/models/spree/order_decorator.rb | Top-Form-Investment/cash_on_delivery | 69148a99d4bb9e669cda97b30e4d25385553f4fc | [
"BSD-3-Clause"
] | null | null | null | app/models/spree/order_decorator.rb | Top-Form-Investment/cash_on_delivery | 69148a99d4bb9e669cda97b30e4d25385553f4fc | [
"BSD-3-Clause"
] | null | null | null | Spree::Order.class_eval do
before_save :change_sp_state, if: ->(order) { order.state == 'complete' && order.shipments.present?}
# Return available payment methods
def available_payment_methods
@available_payment_methods ||= (Spree::PaymentMethod.available(:front_end) + Spree::PaymentMethod.available(:both)).... | 35.733333 | 124 | 0.735075 |
8eb1fa4384d53e81c32941d87c37152f44d4470b | 542 | js | JavaScript | app/render/notification.js | zx2c4-forks/irccloud-desktop | fbb21b8f485d07194759c0f83ca9c1b4636edecc | [
"Apache-2.0"
] | null | null | null | app/render/notification.js | zx2c4-forks/irccloud-desktop | fbb21b8f485d07194759c0f83ca9c1b4636edecc | [
"Apache-2.0"
] | null | null | null | app/render/notification.js | zx2c4-forks/irccloud-desktop | fbb21b8f485d07194759c0f83ca9c1b4636edecc | [
"Apache-2.0"
] | null | null | null | var remote = require('electron').remote;
function listenNotification() {
remote.getCurrentWindow().webContents.executeJavaScript(
'new Promise((resolve, reject) => { if (SESSION) { SESSION.once("notificationClick", function () { resolve(); }); } });'
).then(() => {
remote.app.emit('activate');
l... | 30.111111 | 125 | 0.671587 |
aff5d1fb8c3f2b1ced5a7ee6e563dd5a18e6fd72 | 2,650 | py | Python | src/systems/crafting_system.py | CGirdlestone/TextAdventure | 6127d6c98ce3ad4c6e4d4fd0262310e74f2e4fad | [
"MIT"
] | null | null | null | src/systems/crafting_system.py | CGirdlestone/TextAdventure | 6127d6c98ce3ad4c6e4d4fd0262310e74f2e4fad | [
"MIT"
] | null | null | null | src/systems/crafting_system.py | CGirdlestone/TextAdventure | 6127d6c98ce3ad4c6e4d4fd0262310e74f2e4fad | [
"MIT"
] | null | null | null | """crafting_system.py
This class represents a simple crafting system. All recipe-related data is
stored externally in a JSON file.
"""
class CraftingSystem:
def __init__(self, event_queue, **kwargs):
self.event_queue = event_queue
self.event_queue.register_system(self)
self.__dict__.updat... | 36.805556 | 76 | 0.637736 |
da208fcff4f9c76fb76d6f51974ae30f5b2be18f | 3,417 | php | PHP | src/Html.php | bm2ilabs/favicon | ee42aef84568f280154dd30c24a2a3c8b72380e1 | [
"MIT"
] | 9 | 2015-08-29T19:16:59.000Z | 2020-07-06T20:46:14.000Z | src/Html.php | bm2ilabs/favicon | ee42aef84568f280154dd30c24a2a3c8b72380e1 | [
"MIT"
] | 2 | 2015-06-24T14:47:55.000Z | 2017-07-16T14:11:45.000Z | src/Html.php | bm2ilabs/favicon | ee42aef84568f280154dd30c24a2a3c8b72380e1 | [
"MIT"
] | 4 | 2015-11-04T02:34:10.000Z | 2019-01-08T14:49:08.000Z | <?php
namespace HieuLe\Favicon;
/**
* Output HTML tags based on a config
*
* @author Hieu Le <letrunghieu.cse09@gmail.com>
*/
class Html
{
/**
* Write meta and link tags
*
* @param bool $noOldApple exclude old apple touch link
* @param bool $noAndroid exclude android mani... | 45.56 | 154 | 0.551653 |
bfdfd694ba9595535a1c49a1dcd805389c953b32 | 2,562 | dart | Dart | chain_app/lib/pages/user/daily_task_page.dart | Crabsclaws/FlutterExamples | cb3072add88bb0c206b8188acd8eebeebf39e70c | [
"MIT"
] | null | null | null | chain_app/lib/pages/user/daily_task_page.dart | Crabsclaws/FlutterExamples | cb3072add88bb0c206b8188acd8eebeebf39e70c | [
"MIT"
] | null | null | null | chain_app/lib/pages/user/daily_task_page.dart | Crabsclaws/FlutterExamples | cb3072add88bb0c206b8188acd8eebeebf39e70c | [
"MIT"
] | null | null | null | import 'package:chain_app/models/task_record_list.dart';
import 'package:chain_app/style/w_style.dart';
import 'package:chain_app/tools/routes.dart';
import 'package:chain_app/tools/s_manager.dart';
import 'package:chain_app/tools/services/news_services.dart';
import 'package:flutter/material.dart';
class DailyTaskPag... | 26.968421 | 76 | 0.544106 |
aa05a9313b301f532381ea2a4d0b5591355de16f | 280 | rb | Ruby | spec/spec_helper.rb | Unpakt/lobot | 33d31986a2a7c1a02c34173a3bcfd1e6c4071d15 | [
"MIT"
] | null | null | null | spec/spec_helper.rb | Unpakt/lobot | 33d31986a2a7c1a02c34173a3bcfd1e6c4071d15 | [
"MIT"
] | null | null | null | spec/spec_helper.rb | Unpakt/lobot | 33d31986a2a7c1a02c34173a3bcfd1e6c4071d15 | [
"MIT"
] | null | null | null | require "rubygems"
require 'rails/all'
require 'rails/generators'
require File.expand_path('../lib/lobot', File.dirname(__FILE__))
require 'generator_spec/test_case'
require 'generator_spec'
require File.expand_path('../../lib/generators/lobot/install_generator.rb', __FILE__) | 25.454545 | 85 | 0.782143 |
387ba8c4c6a8f43d2d14adfbc5ee823da72ed82d | 4,519 | php | PHP | application/views/template/footer.php | achmunib/utsg.co.id-3 | ae7ec0680527297f056975c2a93c1248478955bf | [
"MIT"
] | null | null | null | application/views/template/footer.php | achmunib/utsg.co.id-3 | ae7ec0680527297f056975c2a93c1248478955bf | [
"MIT"
] | null | null | null | application/views/template/footer.php | achmunib/utsg.co.id-3 | ae7ec0680527297f056975c2a93c1248478955bf | [
"MIT"
] | null | null | null | <!-- ======= Footer ======= -->
<footer id="footer" >
<div class="footer-top">
<div class="container">
<div class="row">
<div class="col-lg-3 col-md-6 footer-contact">
<h3 class="logo">
<a href="<?= base_url()?>">
<img src="<?= base_url()?>asse... | 45.646465 | 140 | 0.549458 |
98166217004180b5505a43409079844cfaefab0c | 1,179 | lua | Lua | cocos/cc_extension/Manifest.lua | Xrysnow/lstgx_Doc | 8495153f3f19c65eefa1972f556e6fde337dde52 | [
"MIT"
] | 2 | 2019-01-27T17:38:39.000Z | 2019-08-24T08:27:32.000Z | cocos/cc_extension/Manifest.lua | Xrysnow/lstgx_LuaDoc | 8495153f3f19c65eefa1972f556e6fde337dde52 | [
"MIT"
] | null | null | null | cocos/cc_extension/Manifest.lua | Xrysnow/lstgx_LuaDoc | 8495153f3f19c65eefa1972f556e6fde337dde52 | [
"MIT"
] | null | null | null |
--------------------------------
-- @module Manifest
-- @extend Ref
-- @parent_module cc
---@class cc.Manifest:cc.Ref
local Manifest = {}
cc.Manifest = Manifest
--------------------------------
--- @brief Gets remote manifest file url.
---@return string
function Manifest:getManifestFileUrl()
end
------------------... | 19.327869 | 73 | 0.573367 |
b0928bb26745a4a1c2cc95ce0206a81733880280 | 14,963 | py | Python | src/analysis/correlation_perFreq.py | phoebsc/hyperscanning_BCI | 1cd55e289fdc85fcbbab9c49706d52fb34a31ff7 | [
"MIT"
] | 6 | 2021-05-25T00:56:59.000Z | 2021-11-23T14:40:50.000Z | src/analysis/correlation_perFreq.py | phoebsc/hyperscanning_BCI | 1cd55e289fdc85fcbbab9c49706d52fb34a31ff7 | [
"MIT"
] | 16 | 2021-05-19T02:57:55.000Z | 2021-09-17T11:56:04.000Z | src/analysis/correlation_perFreq.py | phoebsc/hyperscanning_BCI | 1cd55e289fdc85fcbbab9c49706d52fb34a31ff7 | [
"MIT"
] | 1 | 2022-03-06T12:22:42.000Z | 2022-03-06T12:22:42.000Z | """
Correlation module calculating connectivity values from data
"""
import logging
import numpy as np
import os
from itertools import islice
from pylsl import local_clock
from scipy.signal import hilbert
from scipy.signal import lfilter
from scipy.stats import zscore
from astropy.stats import circmean
from itertools i... | 47.201893 | 142 | 0.627615 |
2766ed8ddf8ac80745811efa11c2e01bcdc2f994 | 230 | rs | Rust | crate/src/models/tile.rs | Semester-Project-WS19-20/bomberman-wasm | bbe60c8c45341aaf4b917705c9f0d5facccebd94 | [
"MIT"
] | null | null | null | crate/src/models/tile.rs | Semester-Project-WS19-20/bomberman-wasm | bbe60c8c45341aaf4b917705c9f0d5facccebd94 | [
"MIT"
] | null | null | null | crate/src/models/tile.rs | Semester-Project-WS19-20/bomberman-wasm | bbe60c8c45341aaf4b917705c9f0d5facccebd94 | [
"MIT"
] | 1 | 2020-04-15T16:18:08.000Z | 2020-04-15T16:18:08.000Z | use wasm_bindgen::prelude::*;
#[wasm_bindgen]
#[repr(u8)]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum Tile {
Empty,
HardBlock,
SoftBlock,
PowerupBombNumber,
PowerupBombPower,
PowerupSpeed,
PowerupBoots,
}
| 15.333333 | 44 | 0.704348 |
a00a6fe56fe5b799b52e0911fa5aa9d9b07d4a8b | 260 | ts | TypeScript | src/app/pages/pricing/pricing.module.ts | tyayers/apigee.material | 0d7de6d4df026ff27c8b8679375c297e1a867fe7 | [
"Apache-2.0"
] | null | null | null | src/app/pages/pricing/pricing.module.ts | tyayers/apigee.material | 0d7de6d4df026ff27c8b8679375c297e1a867fe7 | [
"Apache-2.0"
] | null | null | null | src/app/pages/pricing/pricing.module.ts | tyayers/apigee.material | 0d7de6d4df026ff27c8b8679375c297e1a867fe7 | [
"Apache-2.0"
] | null | null | null | import { NgModule, OnInit } from '@angular/core';
import { PricingComponent } from './pricing.component';
@NgModule({
imports: [
PricingComponent
],
exports: [],
declarations: [],
providers: [],
})
export class PricingModule {} | 21.666667 | 55 | 0.615385 |
60829c2a22950c3fb262a1926d2cc056c15050cb | 534 | asm | Assembly | programs/oeis/087/A087656.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/087/A087656.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/087/A087656.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A087656: Let f be defined on the rationals by f(p/q) =(p+1)/(q+1)=p_{1}/q_{1} where (p_{1},q_{1})=1. Let f^k(p/q)=p_{k}/q_{k} where (p_{k},q_{k})=1. Sequence gives least k such that p_{k}-q_{k} = 1 starting at n.
; 1,2,2,4,3,6,3,4,5,10,4,12,7,6,4,16,5,18,6,8,11,22,5,8,13,6,8,28,7,30,5,12,17,10,6,36,19,14,7,40,9,42,12... | 35.6 | 214 | 0.58427 |
8e524a26d6a7b657ecd35a26d580c2f3bd240d38 | 622 | sql | SQL | openGaussBase/testcase/KEYWORDS/force/Opengauss_Function_Keyword_Force_Case0029.sql | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | openGaussBase/testcase/KEYWORDS/force/Opengauss_Function_Keyword_Force_Case0029.sql | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | openGaussBase/testcase/KEYWORDS/force/Opengauss_Function_Keyword_Force_Case0029.sql | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | -- @testpoint:opengauss关键字force(非保留),作为表空间名
--关键字不带引号,创建成功
drop tablespace if exists force;
CREATE TABLESPACE force RELATIVE LOCATION 'hdfs_tablespace/hdfs_tablespace_1';
drop tablespace force;
--关键字带双引号,创建成功
drop tablespace if exists "force";
CREATE TABLESPACE "force" RELATIVE LOCATION 'hdfs_tablespace/hdfs_table... | 28.272727 | 81 | 0.805466 |
a14830c4d9c9e06557d59572fd0589f7f79aa0be | 4,932 | ts | TypeScript | packages/util/http-utils/src/__tests__/httpUtils.test.ts | navikt/k9-frontend-modules | b935c3b8c346515f14000bfe1624dc27b319aa05 | [
"MIT"
] | null | null | null | packages/util/http-utils/src/__tests__/httpUtils.test.ts | navikt/k9-frontend-modules | b935c3b8c346515f14000bfe1624dc27b319aa05 | [
"MIT"
] | 2 | 2021-08-23T13:00:46.000Z | 2022-02-22T10:16:19.000Z | packages/util/http-utils/src/__tests__/httpUtils.test.ts | navikt/k9-frontend-modules | b935c3b8c346515f14000bfe1624dc27b319aa05 | [
"MIT"
] | null | null | null | import axios from 'axios';
import { get, post } from './../httpUtils';
import * as responseHelpers from './../responseHelpers';
jest.mock('axios');
const axiosMock = axios as jest.Mocked<typeof axios>;
describe('httpUtils', () => {
const mockedErrorHandler = () => null;
beforeAll(() => {
jest.spyOn(c... | 48.831683 | 108 | 0.658151 |
1f5f565e83dffaeef0e6790e2919bee739d1be22 | 170 | cs | C# | LibraCore/LevelBuilding/AnimationLoopDescriptor.cs | KamiNeko/Libra | 96bea89c923ed80ae9938dff4ee5e651c39402d5 | [
"MIT"
] | 2 | 2020-07-04T16:44:30.000Z | 2020-08-18T05:54:38.000Z | LibraCore/LevelBuilding/AnimationLoopDescriptor.cs | KamiNeko/Libra | 96bea89c923ed80ae9938dff4ee5e651c39402d5 | [
"MIT"
] | null | null | null | LibraCore/LevelBuilding/AnimationLoopDescriptor.cs | KamiNeko/Libra | 96bea89c923ed80ae9938dff4ee5e651c39402d5 | [
"MIT"
] | 1 | 2019-11-03T21:12:19.000Z | 2019-11-03T21:12:19.000Z | namespace LibraCore.LevelBuilding
{
public class AnimationLoopDescriptor
{
public bool Active { get; set; }
public int Key { get; set; }
}
}
| 18.888889 | 40 | 0.617647 |
28da37d5295b111557e86e98e48a1d3f2d353399 | 98 | swift | Swift | Tests/LinuxMain.swift | craterdog-bali/swift-bali-document-notation | a7a78eebc9652db841e4199b531c031cec597daf | [
"MIT"
] | null | null | null | Tests/LinuxMain.swift | craterdog-bali/swift-bali-document-notation | a7a78eebc9652db841e4199b531c031cec597daf | [
"MIT"
] | null | null | null | Tests/LinuxMain.swift | craterdog-bali/swift-bali-document-notation | a7a78eebc9652db841e4199b531c031cec597daf | [
"MIT"
] | null | null | null | import XCTest
import BDN
var tests = [XCTestCaseEntry]()
tests += BDN.allTests()
XCTMain(tests)
| 12.25 | 31 | 0.734694 |
1a562b9def7b7b81504ab8431af6bc7aba62a43c | 473 | cs | C# | EnvironmentalSensor/EnvironmentalSensor/Usb/Payloads/LatestDataLongCommandPayload.cs | kasanami/EnvironmentalSensor | 040808344da0a4ea0a9c854b8c5f5cf7c581ef6c | [
"MIT"
] | null | null | null | EnvironmentalSensor/EnvironmentalSensor/Usb/Payloads/LatestDataLongCommandPayload.cs | kasanami/EnvironmentalSensor | 040808344da0a4ea0a9c854b8c5f5cf7c581ef6c | [
"MIT"
] | null | null | null | EnvironmentalSensor/EnvironmentalSensor/Usb/Payloads/LatestDataLongCommandPayload.cs | kasanami/EnvironmentalSensor | 040808344da0a4ea0a9c854b8c5f5cf7c581ef6c | [
"MIT"
] | null | null | null | namespace EnvironmentalSensor.Usb.Payloads
{
/// <summary>
/// 最新データを要求するペイロード
/// </summary>
public class LatestDataLongCommandPayload : CommandPayload
{
public override FrameCommand Command { get => FrameCommand.Read; }
public override FrameAddress Address { get => FrameAddress.La... | 29.5625 | 84 | 0.615222 |
19219fae101f9901ff3ef5708953545e2f14d65d | 226 | html | HTML | _includes/header.html | elyday/jekyll-swift-theme | 0afeaaddea164a07a019487a87a32c92f0d1465c | [
"MIT"
] | null | null | null | _includes/header.html | elyday/jekyll-swift-theme | 0afeaaddea164a07a019487a87a32c92f0d1465c | [
"MIT"
] | 4 | 2021-10-11T22:11:31.000Z | 2021-10-30T01:40:00.000Z | _includes/header.html | elyday/jekyll-swift-theme | 0afeaaddea164a07a019487a87a32c92f0d1465c | [
"MIT"
] | null | null | null | <header class="nav">
<nav class="nav-menu">
<a href="/" class="nav-brand nav_item">{{ site.title }}</a>
<div class="nav_bar-wrap">
<div class="nav_bar"></div>
</div>
</nav>
</header> | 28.25 | 67 | 0.504425 |
dd6d71ee103a6c655730c2ac2474e8bf0bd45df2 | 12,119 | java | Java | src/br/ufc/lps/view/panels/ViewerPanelResultFeatures.java | anderson-uchoa/DyMMer-NFP | cef913244aa2daeb3d41039b2595c7ff19f098a9 | [
"MIT"
] | 5 | 2017-01-11T13:25:03.000Z | 2017-08-19T13:52:28.000Z | src/br/ufc/lps/view/panels/ViewerPanelResultFeatures.java | anderson-uchoa/DyMMer | cef913244aa2daeb3d41039b2595c7ff19f098a9 | [
"MIT"
] | null | null | null | src/br/ufc/lps/view/panels/ViewerPanelResultFeatures.java | anderson-uchoa/DyMMer | cef913244aa2daeb3d41039b2595c7ff19f098a9 | [
"MIT"
] | null | null | null | package br.ufc.lps.view.panels;
import java.awt.BorderLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.Li... | 28.249417 | 118 | 0.698572 |
af9dc5332b2bd51c46e4d524c10c9d03f6428190 | 3,286 | py | Python | testing/cubep3m/CubeP3MData.py | egpbos/egp | 5e82c2de9e6884795b4ee89f2b15ed5dde70388f | [
"Apache-2.0"
] | null | null | null | testing/cubep3m/CubeP3MData.py | egpbos/egp | 5e82c2de9e6884795b4ee89f2b15ed5dde70388f | [
"Apache-2.0"
] | null | null | null | testing/cubep3m/CubeP3MData.py | egpbos/egp | 5e82c2de9e6884795b4ee89f2b15ed5dde70388f | [
"Apache-2.0"
] | null | null | null | import os
class CubeP3MData(object):
"""
Load a CubeP3M checkpoint file and gather related meta-data from the
parameter files present in the run directory. The run directory is
assumed to be one directory up from the checkpoint's location. If not,
you need to specify the run_path in the initializat... | 40.073171 | 150 | 0.59434 |
4375dcfa52427b44f7af2671f33498849c03934c | 1,613 | ts | TypeScript | src/app/middleware/responseHandler.ts | izhostov/interview-task-be | 7b9a9159f5a6eaf120663e6f9c90d1b8da57a793 | [
"MIT"
] | 7 | 2020-01-22T08:42:47.000Z | 2021-07-08T15:06:45.000Z | src/app/middleware/responseHandler.ts | izhostov/interview-task-be | 7b9a9159f5a6eaf120663e6f9c90d1b8da57a793 | [
"MIT"
] | 9 | 2021-03-02T01:09:04.000Z | 2022-02-27T01:29:14.000Z | src/app/middleware/responseHandler.ts | izhostov/interview-task-be | 7b9a9159f5a6eaf120663e6f9c90d1b8da57a793 | [
"MIT"
] | 1 | 2022-01-17T12:18:09.000Z | 2022-01-17T12:18:09.000Z | import { DefaultContext } from 'koa';
import { constants } from 'http2';
export default () => async (ctx: DefaultContext, next: () => Promise<any>) => {
ctx.success = ({statusCode, data = undefined}: any) => {
const status = 'success';
if (!!statusCode && (statusCode < constants.HTTP_STATUS_BAD_RE... | 29.327273 | 98 | 0.553627 |
8e03861dbcf385a2c51499969416566d8fffefb7 | 3,931 | rb | Ruby | cookbooks/volgactf/recipes/netdata.rb | VolgaCTF/public-infra | d3b02d2a8e820c0701c74f4261713832eb4f62cd | [
"MIT"
] | null | null | null | cookbooks/volgactf/recipes/netdata.rb | VolgaCTF/public-infra | d3b02d2a8e820c0701c74f4261713832eb4f62cd | [
"MIT"
] | null | null | null | cookbooks/volgactf/recipes/netdata.rb | VolgaCTF/public-infra | d3b02d2a8e820c0701c74f4261713832eb4f62cd | [
"MIT"
] | null | null | null | # frozen_string_literal: true
if node['netdata']['enabled']
%w[autoconf autoconf-archive autogen automake cmake curl gcc git gzip libelf-dev libjson-c-dev libjudy-dev liblz4-dev libmnl-dev libssl-dev libtool libuv1-dev make netcat pkg-config python3 tar uuid-dev zlib1g-dev].each do |pkg_name|
package pkg_name
... | 34.482456 | 235 | 0.666243 |
7b2195cdf4c51fd72538d28c99e8edd7885e052b | 3,672 | rb | Ruby | migrate/helper.rb | pjmtdw/kagetra | eeaad91052ab5d563146d2e420a6a6371921b16c | [
"MIT"
] | 2 | 2016-04-30T05:28:18.000Z | 2017-01-23T11:31:32.000Z | migrate/helper.rb | pjmtdw/kagetra | eeaad91052ab5d563146d2e420a6a6371921b16c | [
"MIT"
] | 18 | 2016-08-02T05:57:30.000Z | 2020-07-19T08:33:59.000Z | migrate/helper.rb | pjmtdw/kagetra | eeaad91052ab5d563146d2e420a6a6371921b16c | [
"MIT"
] | 4 | 2016-04-30T05:28:32.000Z | 2021-06-25T14:28:10.000Z |
module Sequel
class Database
CUSTOM_EXTRA_BLOCKS = {
base: lambda{|x|
primary_key :id
DateTime :created_at, index:true, null:false
DateTime :updated_at, index:true, null:false
},
env: lambda{|x|
String :remote_host, size:72
String :remote_addr, size:48
... | 40.351648 | 131 | 0.634804 |
268628d0a70dca551a79d9513dd11f17363f5738 | 3,386 | swift | Swift | RaceReviews/Controllers/LocationsResultsController.swift | joinpursuit/Pursuit-Core-iOS-RaceReviews | 11e9f1921a18db9114b5dede874f4c1d8e228d7c | [
"MIT"
] | null | null | null | RaceReviews/Controllers/LocationsResultsController.swift | joinpursuit/Pursuit-Core-iOS-RaceReviews | 11e9f1921a18db9114b5dede874f4c1d8e228d7c | [
"MIT"
] | null | null | null | RaceReviews/Controllers/LocationsResultsController.swift | joinpursuit/Pursuit-Core-iOS-RaceReviews | 11e9f1921a18db9114b5dede874f4c1d8e228d7c | [
"MIT"
] | 4 | 2019-02-13T16:03:39.000Z | 2019-11-09T00:40:37.000Z | //
// LocationsResultsControllerViewController.swift
// RaceReviews
//
// Created by Alex Paul on 2/16/19.
// Copyright © 2019 Alex Paul. All rights reserved.
//
import UIKit
import MapKit
protocol LocationResultsControllerDelegate: AnyObject {
func didSelectCoordinate(_ locationResultsController: LocationsResu... | 35.270833 | 124 | 0.763142 |
4ceb7a07ea52fd2eaf7d9f44e5a03e05646b91d4 | 947 | py | Python | module/DilatedConvolutions.py | ForrestPi/DL_module | 1ddd041ac742b670217fab0098b3939ff252ee26 | [
"MIT"
] | 1 | 2019-11-14T10:34:39.000Z | 2019-11-14T10:34:39.000Z | module/DilatedConvolutions.py | ForrestPi/DL_module | 1ddd041ac742b670217fab0098b3939ff252ee26 | [
"MIT"
] | null | null | null | module/DilatedConvolutions.py | ForrestPi/DL_module | 1ddd041ac742b670217fab0098b3939ff252ee26 | [
"MIT"
] | null | null | null | import numpy as np
from torchvision.transforms import Compose, ToTensor
from torch import nn
import torch.nn.init as init
def transform():
return Compose([
ToTensor(),
# Normalize((12,12,12),std = (1,1,1)),
])
arr = range(1,26)
arr = np.reshape(arr,[5,5])
arr = np.expand_dims(arr,2)
arr = arr.a... | 30.548387 | 92 | 0.665259 |
a38883c29bcbefbdbbc78642b19c10d259b82d93 | 539 | java | Java | content/modules/maps/examples/ex1/src/main/java/maps/ex1/screen/order/OrderEdit.java | SevDan/jmix-docs | 309f1a4e7cf838e16098a141eec9ae067f358621 | [
"CC-BY-4.0"
] | 12 | 2020-11-27T14:45:39.000Z | 2022-03-17T07:23:41.000Z | content/modules/maps/examples/ex1/src/main/java/maps/ex1/screen/order/OrderEdit.java | SevDan/jmix-docs | 309f1a4e7cf838e16098a141eec9ae067f358621 | [
"CC-BY-4.0"
] | 309 | 2020-11-10T12:04:33.000Z | 2022-03-18T12:20:43.000Z | content/modules/maps/examples/ex1/src/main/java/maps/ex1/screen/order/OrderEdit.java | SevDan/jmix-docs | 309f1a4e7cf838e16098a141eec9ae067f358621 | [
"CC-BY-4.0"
] | 9 | 2021-03-29T10:33:53.000Z | 2022-02-14T11:05:11.000Z | package maps.ex1.screen.order;
import io.jmix.mapsui.component.GeoMap;
import io.jmix.mapsui.component.GeoMapImpl;
import io.jmix.mapsui.component.layer.VectorLayer;
import io.jmix.mapsui.component.leaflet.translators.GeoObjectWrapper;
import io.jmix.ui.screen.*;
import maps.ex1.entity.Order;
import org.springframewor... | 29.944444 | 69 | 0.816327 |
257d0671a5a21c5906b0cdf16f4c00944a482866 | 232 | js | JavaScript | src/routes/news.js | nguyenvanvy1999/Course-shop | 39893804a77b10fd9a0523d4adf6c8bfa9bc0319 | [
"MIT"
] | 1 | 2021-02-12T14:54:52.000Z | 2021-02-12T14:54:52.000Z | src/routes/news.js | nguyenvanvy1999/Course-shop | 39893804a77b10fd9a0523d4adf6c8bfa9bc0319 | [
"MIT"
] | null | null | null | src/routes/news.js | nguyenvanvy1999/Course-shop | 39893804a77b10fd9a0523d4adf6c8bfa9bc0319 | [
"MIT"
] | null | null | null | const express = require('express'),
router = express.Router(),
NewsController = require('../app/controllers/news');
router.get('/:slug', NewsController.show);
router.get('/', NewsController.index);
module.exports = router; | 29 | 56 | 0.698276 |
b7813484cca95908f3d11b44181fb9af9562b0d0 | 33,137 | cs | C# | WodiLib/WodiLib.Test/Common/Model/Internal/CommonEventSpecialNumberArgDesc.InnerDescDatabaseTest.cs | kameske/WodiLib | f8d74b5565f38cc550b37e26b63e105c4691be2d | [
"MIT"
] | 12 | 2019-02-24T09:14:20.000Z | 2022-02-03T05:53:29.000Z | WodiLib/WodiLib.Test/Common/Model/Internal/CommonEventSpecialNumberArgDesc.InnerDescDatabaseTest.cs | kameske/WodiLib | f8d74b5565f38cc550b37e26b63e105c4691be2d | [
"MIT"
] | 10 | 2019-03-18T13:02:36.000Z | 2021-02-28T03:31:24.000Z | WodiLib/WodiLib.Test/Common/Model/Internal/CommonEventSpecialNumberArgDesc.InnerDescDatabaseTest.cs | kameske/WodiLib | f8d74b5565f38cc550b37e26b63e105c4691be2d | [
"MIT"
] | 4 | 2020-02-28T12:54:25.000Z | 2021-09-09T13:41:57.000Z | using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using Commons;
using NUnit.Framework;
using WodiLib.Common;
using WodiLib.Database;
using WodiLib.Sys;
using WodiLib.Test.Tools;
namespace WodiLib.Test.Common.Internal
{
[TestFixture]
public class CommonEventSpec... | 40.708845 | 116 | 0.564203 |
df1c7de13f8f4109069cb8e02a45dddd18d2c1d3 | 702 | rb | Ruby | lib/simple-info/tag.rb | kubenstein/simple-info | 52b7b847102f66619df5d66997a5fbfc282f98f0 | [
"MIT"
] | 1 | 2015-10-16T12:34:04.000Z | 2015-10-16T12:34:04.000Z | lib/simple-info/tag.rb | kubenstein/simple-info | 52b7b847102f66619df5d66997a5fbfc282f98f0 | [
"MIT"
] | null | null | null | lib/simple-info/tag.rb | kubenstein/simple-info | 52b7b847102f66619df5d66997a5fbfc282f98f0 | [
"MIT"
] | null | null | null | module SimpleInfo
class Tag
TAG_NAME = 'simple_info_storage'
def edit
execute("git tag -f -a #{TAG_NAME} `git log --format=%H | tail -1`")
end
def show
return '' unless info_tag_exists?
execute("git cat-file tag #{TAG_NAME}").split("\n\n")[1].strip
end
def pull(remote)
... | 20.057143 | 87 | 0.603989 |
4ba51fe2d0e110efb1d029bbed86e7d898449a8e | 3,889 | rs | Rust | nes/src/emulator/test/mod.rs | DiscoViking/mos-6500 | fba56c079832d8ee0656b75a1663b1a60456b417 | [
"MIT"
] | 3 | 2018-12-06T07:40:00.000Z | 2020-03-05T23:49:38.000Z | nes/src/emulator/test/mod.rs | DiscoViking/mos-6500 | fba56c079832d8ee0656b75a1663b1a60456b417 | [
"MIT"
] | 36 | 2018-10-23T05:34:07.000Z | 2018-11-10T15:08:49.000Z | nes/src/emulator/test/mod.rs | DiscoViking/nes | fba56c079832d8ee0656b75a1663b1a60456b417 | [
"MIT"
] | null | null | null | mod image_capture;
mod instr_misc;
mod instr_test_v5;
mod instr_timing;
mod mappers;
mod nestest;
mod ppu_sprite_hit;
mod ppu_sprite_overflow;
use std::cell::RefCell;
use std::env;
use std::fs::File;
use std::io::Read;
use std::path::{Path, PathBuf};
use std::rc::Rc;
use md5::{Digest, Md5};
use crate::emulator::ines... | 27.195804 | 92 | 0.602469 |
da87ddd2a61501ecb78b86613bec31b34d086be9 | 298 | php | PHP | application/config/Parameters/Crm/preview.php | eelco2k/repucaution | 0579b7d3c56b0be1ee7bbf3e8e7ced5f27f65665 | [
"CC0-1.0"
] | 23 | 2016-11-09T12:18:32.000Z | 2022-03-29T15:16:31.000Z | application/config/Parameters/Crm/preview.php | DittoPardo/repucaution | 0579b7d3c56b0be1ee7bbf3e8e7ced5f27f65665 | [
"CC0-1.0"
] | null | null | null | application/config/Parameters/Crm/preview.php | DittoPardo/repucaution | 0579b7d3c56b0be1ee7bbf3e8e7ced5f27f65665 | [
"CC0-1.0"
] | 19 | 2016-04-29T17:24:25.000Z | 2021-06-28T18:24:27.000Z | <?php
/**
* Settings of limit activities for loading and displaying on client activity page
*/
$config['parameters.crm.preview.options'] = array(
'activities_limit' => 10,
'directories_limit' => 20
); | 37.25 | 82 | 0.489933 |
ccbf4f2c5feb8effcb330529da8b3965cb69602c | 614 | rb | Ruby | app/services/actions/parse_and_update_categories.rb | TheLocusCo/locuscorev3 | bfe602ae3e89df1c709f88794eb0e7ce0ecf48c5 | [
"MIT"
] | null | null | null | app/services/actions/parse_and_update_categories.rb | TheLocusCo/locuscorev3 | bfe602ae3e89df1c709f88794eb0e7ce0ecf48c5 | [
"MIT"
] | null | null | null | app/services/actions/parse_and_update_categories.rb | TheLocusCo/locuscorev3 | bfe602ae3e89df1c709f88794eb0e7ce0ecf48c5 | [
"MIT"
] | 1 | 2019-09-04T19:26:02.000Z | 2019-09-04T19:26:02.000Z | module Actions
class ParseAndUpdateCategories
extend LightService::Action
expects :params, :main_object
promises :params, :main_object
# errors for invalid categories are caught in application controller
executed do |context|
next context if !context.params.key?(:categories) || cont... | 29.238095 | 94 | 0.672638 |
b79f065dd24efde05544cd69cfb7560c26402f21 | 573 | lua | Lua | lua/entities/wm_bottle/cl_init.lua | BLEEPBLOOPforLife/Alcohol-Mod | 05a9e60145e6ff8e7f7f32004993223cc8df1b26 | [
"MIT"
] | 1 | 2021-11-18T20:35:07.000Z | 2021-11-18T20:35:07.000Z | lua/entities/wm_bottle/cl_init.lua | eggroll-bot/alcohol-mod | 05a9e60145e6ff8e7f7f32004993223cc8df1b26 | [
"MIT"
] | 1 | 2016-12-31T14:57:34.000Z | 2017-01-06T23:35:01.000Z | lua/entities/wm_bottle/cl_init.lua | BLEEPBLOOPforLife/Alcohol-Mod | 05a9e60145e6ff8e7f7f32004993223cc8df1b26 | [
"MIT"
] | null | null | null | include( "shared.lua" )
function ENT:Initialize( )
end
function ENT:Draw( )
self:DrawModel( )
end
net.Receive( "StartAMWineEffect", function( )
local DrunkBlurTime = net.ReadFloat()
if timer.Exists( "EggrollAMDrunkBlur" ) then
timer.Remove( "EggrollAMDrunkBlur" )
end
timer.Create( "EggrollAMDr... | 22.038462 | 73 | 0.705061 |
052f329207beb0994eb0edbc5e1fb2b22eacc98e | 100 | rb | Ruby | lib/escape_java_properties/parsing.rb | trace-devops/escape_java_properties | 928a8c45fe0d165268e9a04bcdc870fbf3931582 | [
"MIT"
] | null | null | null | lib/escape_java_properties/parsing.rb | trace-devops/escape_java_properties | 928a8c45fe0d165268e9a04bcdc870fbf3931582 | [
"MIT"
] | null | null | null | lib/escape_java_properties/parsing.rb | trace-devops/escape_java_properties | 928a8c45fe0d165268e9a04bcdc870fbf3931582 | [
"MIT"
] | null | null | null | require 'escape_java_properties/parsing/normalizer'
require 'escape_java_properties/parsing/parser'
| 33.333333 | 51 | 0.88 |
da6d2f97c87697cc2177c9e7317c4f9e12c42e6a | 162 | php | PHP | src/Entity/PickupPoint.php | errogaht/delivery-aggregator | 477f9ba28d2bf6ebf0d6da7db16d79ed01a2f363 | [
"MIT"
] | 3 | 2017-11-08T19:17:44.000Z | 2022-01-23T10:08:51.000Z | src/Entity/PickupPoint.php | errogaht/delivery-aggregator | 477f9ba28d2bf6ebf0d6da7db16d79ed01a2f363 | [
"MIT"
] | null | null | null | src/Entity/PickupPoint.php | errogaht/delivery-aggregator | 477f9ba28d2bf6ebf0d6da7db16d79ed01a2f363 | [
"MIT"
] | null | null | null | <?php
/**
* Created by PhpStorm.
* User: errogaht
* Date: 18.05.2017
* Time: 17:34
*/
namespace Errogaht\DeliveryAggregator\Entity;
class PickupPoint
{
} | 10.8 | 45 | 0.67284 |
da4c4ad1eb5fff00a1eb9bb873a205b0e4e0f95a | 993 | php | PHP | resources/views/install/done.blade.php | swagat-dash/mc-sms-mail | 091a3094b0b8755a9a902fb908e362fbb647b419 | [
"MIT"
] | null | null | null | resources/views/install/done.blade.php | swagat-dash/mc-sms-mail | 091a3094b0b8755a9a902fb908e362fbb647b419 | [
"MIT"
] | null | null | null | resources/views/install/done.blade.php | swagat-dash/mc-sms-mail | 091a3094b0b8755a9a902fb908e362fbb647b419 | [
"MIT"
] | null | null | null | @extends('../layout/side-menu')
@section('head')
<title>Swagmail - Email & SMS Marketing Application</title>
@endsection
@section('content')
<div class="container">
<!-- BEGIN: Congratulations Page -->
<div class="page flex flex-col lg:flex-row items-center justify-center h-screen text-center ... | 41.375 | 198 | 0.581067 |
7bfe9d91357541f1b1fb30f6d6c7e9cfe3598492 | 8,374 | rb | Ruby | lib/money_s3/parsers/pol_objedn_type.rb | Masa331/moneys3 | 97304d5500d407ff724ae73bcff1fd79a67e3a66 | [
"MIT"
] | 4 | 2018-02-07T19:30:53.000Z | 2020-10-16T16:27:01.000Z | lib/money_s3/parsers/pol_objedn_type.rb | Masa331/moneys3 | 97304d5500d407ff724ae73bcff1fd79a67e3a66 | [
"MIT"
] | 1 | 2020-04-25T18:22:37.000Z | 2020-04-25T18:22:37.000Z | lib/money_s3/parsers/pol_objedn_type.rb | Masa331/moneys3 | 97304d5500d407ff724ae73bcff1fd79a67e3a66 | [
"MIT"
] | 1 | 2021-04-20T23:15:19.000Z | 2021-04-20T23:15:19.000Z | module MoneyS3
module Parsers
class PolObjednType
include ParserCore::BaseParser
def popis
at 'Popis'
end
def popis_attributes
attributes_at 'Popis'
end
def poznamka
at 'Poznamka'
end
def poznamka_attributes
attributes_at 'Poznamk... | 25.766154 | 98 | 0.621686 |
b0674e18143cdd4dde785b9d81bf6ebcff85810a | 4,393 | py | Python | sentiment_analyser/sentiment_analyser.py | JanelleTang/COMP90024_Assignment_2 | c6ef17f8d20ebca3c7f525a4d0c9483f1002a78c | [
"Apache-2.0"
] | 1 | 2021-06-04T11:11:22.000Z | 2021-06-04T11:11:22.000Z | sentiment_analyser/sentiment_analyser.py | JanelleTang/COMP90024_Assignment_2 | c6ef17f8d20ebca3c7f525a4d0c9483f1002a78c | [
"Apache-2.0"
] | null | null | null | sentiment_analyser/sentiment_analyser.py | JanelleTang/COMP90024_Assignment_2 | c6ef17f8d20ebca3c7f525a4d0c9483f1002a78c | [
"Apache-2.0"
] | null | null | null | # ============= COMP90024 - Assignment 2 ============= #
#
# The University of Melbourne
# Team 37
#
# ** Authors: **
#
# JJ Burke 1048105
# Janelle Tang 694209
# Shuang Qiu 980433
# Declan Baird-Watson 640975
# Avinash Rao 1024577 ... | 30.296552 | 115 | 0.563852 |
7f151484d3fd3f042016a79c2ea7e4f3b7ea6b64 | 2,187 | cs | C# | DotNet/DotNet/UE4/Generated/MovieScene/MovieSceneEvaluationTrack.cs | UE4DotNet/Plugin | 08240b2a965904a69b8ef680d94261f300cf1652 | [
"MIT"
] | 2 | 2021-04-25T03:00:29.000Z | 2021-09-17T03:14:54.000Z | DotNet/DotNet/UE4/Generated/MovieScene/MovieSceneEvaluationTrack.cs | UE4DotNet/Plugin | 08240b2a965904a69b8ef680d94261f300cf1652 | [
"MIT"
] | null | null | null | DotNet/DotNet/UE4/Generated/MovieScene/MovieSceneEvaluationTrack.cs | UE4DotNet/Plugin | 08240b2a965904a69b8ef680d94261f300cf1652 | [
"MIT"
] | 2 | 2019-08-08T02:09:16.000Z | 2021-09-17T03:14:56.000Z | // Copyright 2018 by JCoder58. See License.txt for license
// Auto-generated --- Do not modify.
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using UE4.Core;
using UE4.CoreUObject;
using UE4.CoreUObject.Native;
using UE4.InputCore;
using UE4.Native;
namespace UE4.MovieScene{
... | 42.057692 | 170 | 0.690444 |