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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
406a7f02a821260845fe6c5197506f0250a04413 | 1,354 | rb | Ruby | test/unchained/client_test.rb | andrewpthorp/unchained | 54db3bfdb41f141de95df9bb620cbd86de675d07 | [
"MIT"
] | null | null | null | test/unchained/client_test.rb | andrewpthorp/unchained | 54db3bfdb41f141de95df9bb620cbd86de675d07 | [
"MIT"
] | null | null | null | test/unchained/client_test.rb | andrewpthorp/unchained | 54db3bfdb41f141de95df9bb620cbd86de675d07 | [
"MIT"
] | null | null | null | require_relative '../test_helper'
describe Unchained::Client do
before do
@client = Unchained::Client.new
end
Unchained::Configuration::KEYS.each do |k|
it "should set up an accessor for #{k}" do
assert(
@client.respond_to?(k),
"Expected `@client` to respond to `#{k}`.",
)
... | 22.566667 | 60 | 0.616691 |
3552efb63a3a6a7c7858099d51eb384c85008d9e | 464 | lua | Lua | Blizzlike/ArcEmu/Scripts/Zones/Outland/Shadowmoon Valley/Bron.lua | 499453466/Lua-Other | 43fd2b72405faf3f2074fd2a2706ef115d16faa6 | [
"Unlicense"
] | 2 | 2015-06-23T16:26:32.000Z | 2019-06-27T07:45:59.000Z | Blizzlike/ArcEmu/Scripts/Zones/Outland/Shadowmoon Valley/Bron.lua | Eduardo-Silla/Lua-Other | db610f946dbcaf81b3de9801f758e11a7bf2753f | [
"Unlicense"
] | null | null | null | Blizzlike/ArcEmu/Scripts/Zones/Outland/Shadowmoon Valley/Bron.lua | Eduardo-Silla/Lua-Other | db610f946dbcaf81b3de9801f758e11a7bf2753f | [
"Unlicense"
] | 3 | 2015-01-10T18:22:59.000Z | 2021-04-27T21:28:28.000Z | function Bron_OnEnterCombat(Unit,Event)
Unit:RegisterEvent("Bron_ThrowHammer", 15000, 0)
end
function Bron_ThrowHammer(Unit,Event)
Unit:FullCastSpellOnTarget(33822,Unit:GetClosestPlayer())
end
function Bron_OnLeaveCombat(Unit,Event)
Unit:RemoveEvents()
end
function Bron_OnDied(Unit,Event)
Unit:RemoveEvents()
end... | 24.421053 | 58 | 0.818966 |
540e8860ce3f7b7b1db4e3fe2c1494ed497313e7 | 147 | rb | Ruby | test/riel/hash_test.rb | jpace/riel | fa6e8265a6759e0311cab2ea2a7d54211d2f317e | [
"MIT"
] | null | null | null | test/riel/hash_test.rb | jpace/riel | fa6e8265a6759e0311cab2ea2a7d54211d2f317e | [
"MIT"
] | null | null | null | test/riel/hash_test.rb | jpace/riel | fa6e8265a6759e0311cab2ea2a7d54211d2f317e | [
"MIT"
] | null | null | null | #!/usr/bin/ruby -w
# -*- ruby -*-
require 'test/unit'
require 'riel/hash'
class HashTestCase < Test::Unit::TestCase
def test_nothing
end
end
| 13.363636 | 41 | 0.673469 |
a311c63a55cdb232fba3d4d57d34f742b9fdb498 | 661 | c | C | src/C/Applications/Exam_Score_Table/source.c | Ahmopasa/TheCodes | 560ed94190fd0da8cc12285e9b4b5e27b19010a5 | [
"MIT"
] | null | null | null | src/C/Applications/Exam_Score_Table/source.c | Ahmopasa/TheCodes | 560ed94190fd0da8cc12285e9b4b5e27b19010a5 | [
"MIT"
] | null | null | null | src/C/Applications/Exam_Score_Table/source.c | Ahmopasa/TheCodes | 560ed94190fd0da8cc12285e9b4b5e27b19010a5 | [
"MIT"
] | null | null | null | #define _CRT_SECURE_NO_WARNINGS
#include "Data.h"
int main() {
//int total_students;
//check_total_students: printf("Welcome to the system.\nPlease, enter the total size of students: ");
//if (!(scanf("%d", &total_students) && total_students >= 0))
// goto check_total_students;
//student* personelInfo = (stude... | 24.481481 | 102 | 0.679274 |
43d5ed5d0c40dad623462a22bb5071bb88770749 | 226 | tsx | TypeScript | src/badges/Octave.tsx | NWylynko/react-clean-badges | 930212d5aac90afc9a72b211cea07b42aee92f11 | [
"MIT"
] | null | null | null | src/badges/Octave.tsx | NWylynko/react-clean-badges | 930212d5aac90afc9a72b211cea07b42aee92f11 | [
"MIT"
] | null | null | null | src/badges/Octave.tsx | NWylynko/react-clean-badges | 930212d5aac90afc9a72b211cea07b42aee92f11 | [
"MIT"
] | null | null | null |
import React from "react"
import { Badge } from "../badge"
import type { BadgeProps } from "../badge"
const Octave = (props: BadgeProps) => <Badge name="Octave" {...props} backgroundColor="#0790C0" />
export default Octave
| 25.111111 | 98 | 0.685841 |
5d44db651758063958bd93c9ed68644739749498 | 3,307 | cc | C++ | persistence/leveldb_sparql.cc | wastl/cmarmotta | b2c36f357b5336dd4da31259cec490762ed6e996 | [
"Apache-2.0"
] | 14 | 2015-11-16T06:43:28.000Z | 2020-01-12T11:55:06.000Z | persistence/leveldb_sparql.cc | wastl/cmarmotta | b2c36f357b5336dd4da31259cec490762ed6e996 | [
"Apache-2.0"
] | null | null | null | persistence/leveldb_sparql.cc | wastl/cmarmotta | b2c36f357b5336dd4da31259cec490762ed6e996 | [
"Apache-2.0"
] | 13 | 2016-01-19T19:39:36.000Z | 2021-09-03T07:46:19.000Z | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ma... | 29.008772 | 102 | 0.635319 |
7b76db9d932889292fbe4332e8b86636c6802856 | 1,801 | sql | SQL | sql/db_init.sql | koceilam/projet_test | 36097ece278e382f5d726dbb914bb8f61679ec71 | [
"MIT"
] | null | null | null | sql/db_init.sql | koceilam/projet_test | 36097ece278e382f5d726dbb914bb8f61679ec71 | [
"MIT"
] | null | null | null | sql/db_init.sql | koceilam/projet_test | 36097ece278e382f5d726dbb914bb8f61679ec71 | [
"MIT"
] | null | null | null |
--
-- Base de données: `db_holidays`
--
-- --------------------------------------------------------
--
-- Contenu de la table `employees`
--
INSERT INTO `employees` (`id`, `name`, `status`, `date_c`) VALUES
(1, 'Jean claude', 0, '2016-12-13 17:04:21'),
(2, 'Alexendre ', 1, '2016-12-13 17:04:21'),
(3, 'Valerie ', 1... | 48.675676 | 108 | 0.544142 |
383fe8f5c30ccd6eeab9fb967ff389924e228b55 | 2,344 | php | PHP | src/PhpNuts/Database/Sql/SqlStatement/InsertStatement.php | gwillings/phpnuts-basics | 6e9abee6ca7d3915400e36a2a2fe666c27df225a | [
"MIT"
] | 5 | 2019-07-14T03:50:51.000Z | 2019-10-29T01:57:39.000Z | src/PhpNuts/Database/Sql/SqlStatement/InsertStatement.php | gwillings/phpnuts-basics | 6e9abee6ca7d3915400e36a2a2fe666c27df225a | [
"MIT"
] | null | null | null | src/PhpNuts/Database/Sql/SqlStatement/InsertStatement.php | gwillings/phpnuts-basics | 6e9abee6ca7d3915400e36a2a2fe666c27df225a | [
"MIT"
] | null | null | null | <?php
namespace PhpNuts\Database\Sql\SqlStatement;
use PhpNuts\Database\Sql\SqlBlock\InsertBlock;
use PhpNuts\Database\Sql\SqlBlock\IntoBlock;
use PhpNuts\Database\Sql\SqlBlock\SetBlock;
use PhpNuts\Database\Sql\SqlFragment;
use PhpNuts\Database\Sql\SqlKeyword;
use PhpNuts\Database\Sql\SqlStatement\Traits\SetTrait;
... | 26.636364 | 97 | 0.619881 |
afaf61e1b49a121208dcb4a1afc7232b3a697af3 | 2,994 | lua | Lua | riven/Riven.lua | brenoln/Lactea | 30e1c76a4ed9f696516d75e64ae9e2eb8ee68346 | [
"Apache-2.0"
] | null | null | null | riven/Riven.lua | brenoln/Lactea | 30e1c76a4ed9f696516d75e64ae9e2eb8ee68346 | [
"Apache-2.0"
] | null | null | null | riven/Riven.lua | brenoln/Lactea | 30e1c76a4ed9f696516d75e64ae9e2eb8ee68346 | [
"Apache-2.0"
] | null | null | null | require('Inspired')
require('IWalk')
--Version RivenKiller v1.0.0.0
--Credits Lactea TheWelder Inspired
-- Script for Gaming on steroids
local myHero = nil
local champName = nil
local target = nil
AddInfo("Riven", "RivenKiller:")
AddButton("Q", "Use Q", true)
AddButton("W", "Use W", true)
AddButton("E", "Use E", tru... | 32.193548 | 123 | 0.716433 |
54e377b69f44c5d6c4d52ae143c0604e654fb272 | 2,380 | rb | Ruby | actividades/web/rails2-examples/clases/app/controllers/centros_controller.rb | oritelad/libro-de-actividades | d6cd3a1f7e45947d4ad9c9084d36482f1986545e | [
"CC0-1.0"
] | null | null | null | actividades/web/rails2-examples/clases/app/controllers/centros_controller.rb | oritelad/libro-de-actividades | d6cd3a1f7e45947d4ad9c9084d36482f1986545e | [
"CC0-1.0"
] | null | null | null | actividades/web/rails2-examples/clases/app/controllers/centros_controller.rb | oritelad/libro-de-actividades | d6cd3a1f7e45947d4ad9c9084d36482f1986545e | [
"CC0-1.0"
] | null | null | null | class CentrosController < ApplicationController
layout 'default'
# GET /centros
# GET /centros.xml
def index
@centros = Centro.find(:all)
@nav = :centros
@tab = :recursos
respond_to do |format|
format.html # index.html.erb
format.xml { render :xml => @centros }
end
end... | 23.564356 | 90 | 0.596639 |
e83ead5112851c6e57e1cad866ce4ee5edcc3ec2 | 76 | css | CSS | app/client/templates/users/user_rent.css | cfpg/mate | edb70792953dd7ef547156ab21916590c83af1ea | [
"Apache-2.0"
] | null | null | null | app/client/templates/users/user_rent.css | cfpg/mate | edb70792953dd7ef547156ab21916590c83af1ea | [
"Apache-2.0"
] | null | null | null | app/client/templates/users/user_rent.css | cfpg/mate | edb70792953dd7ef547156ab21916590c83af1ea | [
"Apache-2.0"
] | null | null | null | .aligncenter {
text-align: center;
}
.aligncenter h3 {
margin-top: 43px;
} | 12.666667 | 20 | 0.684211 |
13cf9440adbf4a426129faa13bec9a9248174cbe | 292 | lua | Lua | easy/roller_coaster.lua | IlkhamGaysin/ce-challenges | ac6b8c1fc4b6c098e380b9d694e93e614f6c969b | [
"BSD-3-Clause"
] | 2 | 2018-06-24T17:09:16.000Z | 2020-08-03T11:44:54.000Z | easy/roller_coaster.lua | IlkhamGaysin/ce-challenges | ac6b8c1fc4b6c098e380b9d694e93e614f6c969b | [
"BSD-3-Clause"
] | null | null | null | easy/roller_coaster.lua | IlkhamGaysin/ce-challenges | ac6b8c1fc4b6c098e380b9d694e93e614f6c969b | [
"BSD-3-Clause"
] | null | null | null | for line in io.lines(arg[1]) do
local up = true
for i in line:gmatch(".") do
if i:find("%a") then
if up then
io.write(i:upper())
up = false
else
io.write(i:lower())
up = true
end
else
io.write(i)
end
end
print()
end
| 16.222222 | 31 | 0.489726 |
5dbad53a80bd6f0cecb0edce527bdf09c0216a96 | 29,959 | cxx | C++ | Hekateros/sw/apps/hek_stalemate/SMCalib.cxx | roadnarrows-robotics/rnr-sdk | aee20c65b49fb3eedf924c5c2ec9f19f4f1a1b29 | [
"MIT"
] | null | null | null | Hekateros/sw/apps/hek_stalemate/SMCalib.cxx | roadnarrows-robotics/rnr-sdk | aee20c65b49fb3eedf924c5c2ec9f19f4f1a1b29 | [
"MIT"
] | null | null | null | Hekateros/sw/apps/hek_stalemate/SMCalib.cxx | roadnarrows-robotics/rnr-sdk | aee20c65b49fb3eedf924c5c2ec9f19f4f1a1b29 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
//
// Package: Hekateros
//
// Program: StaleMate
//
// File: SMCalib.cxx
//
/*! \file
*
* $LastChangedDate: 2012-06-05 15:17:26 -0600 (Tue, 05 Jun 2012) $
* $Rev: 2028 $
*
* \brief StaleMate calibration.
*
* \author Robin ... | 32.248654 | 80 | 0.580326 |
b28231caa353634e4f4fad520577693621d574ae | 856 | dart | Dart | lib/animated_segment.dart | saitbnzl/digital_glass_clock | ac4111a9146a0e9843dfd68cc4e93fe18378b8e4 | [
"MIT"
] | null | null | null | lib/animated_segment.dart | saitbnzl/digital_glass_clock | ac4111a9146a0e9843dfd68cc4e93fe18378b8e4 | [
"MIT"
] | null | null | null | lib/animated_segment.dart | saitbnzl/digital_glass_clock | ac4111a9146a0e9843dfd68cc4e93fe18378b8e4 | [
"MIT"
] | null | null | null | import 'package:digital_glass_clock/segment.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
class AnimatedSegment extends StatelessWidget {
const AnimatedSegment({
Key key,
@required this.size,
@required this.axis,
this.offOpacity: 0.2,
this.onOpacity: 1.0,
... | 21.948718 | 50 | 0.667056 |
0decba7baeb6820ac7cafab4d2703fa5bc9bd7e0 | 3,669 | cs | C# | Components/Index/Rows.cs | olegbruev/OrderMakerServer | 64089373452e06b499711affd29eca126e4bdb5c | [
"MIT"
] | null | null | null | Components/Index/Rows.cs | olegbruev/OrderMakerServer | 64089373452e06b499711affd29eca126e4bdb5c | [
"MIT"
] | null | null | null | Components/Index/Rows.cs | olegbruev/OrderMakerServer | 64089373452e06b499711affd29eca126e4bdb5c | [
"MIT"
] | null | null | null | /*
MTD OrderMaker - http://ordermaker.org
Copyright (c) 2019 Oleg Bruev <job4bruev@gmail.com>. All rights reserved.
*/
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using Mtd.OrderMaker.Server.Areas.Identity.Data;
using Mtd.OrderMaker.Server.Entity;
... | 41.693182 | 138 | 0.659853 |
7bda7b8671161a60717056e8b9f149dda12325a8 | 495 | cpp | C++ | DisjoinSetUnion/CPP/DSU.cpp | riship99/codeWith-hacktoberfest | f16fa9dc9a2af0009dea3dea3220e3eaa43d3d2b | [
"MIT"
] | 29 | 2020-10-03T17:41:46.000Z | 2021-10-04T17:59:22.000Z | DisjoinSetUnion/CPP/DSU.cpp | riship99/codeWith-hacktoberfest | f16fa9dc9a2af0009dea3dea3220e3eaa43d3d2b | [
"MIT"
] | 117 | 2020-10-03T15:39:39.000Z | 2021-10-06T08:21:37.000Z | DisjoinSetUnion/CPP/DSU.cpp | riship99/codeWith-hacktoberfest | f16fa9dc9a2af0009dea3dea3220e3eaa43d3d2b | [
"MIT"
] | 160 | 2020-10-03T15:39:23.000Z | 2021-10-13T09:07:05.000Z | #include <bits/stdc++.h>
using namespace std;
#define rank rnk
const int N = 1e5 + 5;
int rank[N], p[N];
void init() {
for (int i = 0; i < N; i++)
rank[i] = 0, p[i] = i;
}
int findp(int n) {
return n == p[n] ? n : p[n] = findp(p[n]);
}
bool merge(int u, int v) {
u = findp(u);
v = findp(v);
if (u == v)
retu... | 13.378378 | 43 | 0.527273 |
a8d9a00701573182fcbe46ee72747be5bb2560ad | 361 | dart | Dart | lib/constants.dart | monkey-underground-coders/reschedule-tsu-native | b8c83346803348a8d03b38ac4bb0db8c1ed0d0a5 | [
"MIT"
] | null | null | null | lib/constants.dart | monkey-underground-coders/reschedule-tsu-native | b8c83346803348a8d03b38ac4bb0db8c1ed0d0a5 | [
"MIT"
] | null | null | null | lib/constants.dart | monkey-underground-coders/reschedule-tsu-native | b8c83346803348a8d03b38ac4bb0db8c1ed0d0a5 | [
"MIT"
] | null | null | null | import 'package:flutter/material.dart';
final Color backgroundColor = Color(0xFF2A3DAD);
final Color backgroundColorTransient = backgroundColor.withOpacity(0.88);
final Color headlineColor = Color(0xFF1C2456);
final Color secondaryColor = Color(0xFF9D9D9D);
final Color secondaryBGColor = Color(0xFFF1F1F1);
final Colo... | 36.1 | 73 | 0.817175 |
e29e5cc9850231eaf0630eb80ff738820b80de6a | 7,309 | py | Python | data_processing/pm25_contour/pm2.5_transfer_to_contour_geojson.py | tasi788/pm2.5-idw-map | 59135705ce61d25f5f0a066dff00ed3a817675f6 | [
"BSD-2-Clause"
] | 26 | 2018-08-16T06:46:22.000Z | 2022-03-17T09:51:31.000Z | data_processing/pm25_contour/pm2.5_transfer_to_contour_geojson.py | tasi788/pm2.5-idw-map | 59135705ce61d25f5f0a066dff00ed3a817675f6 | [
"BSD-2-Clause"
] | 1 | 2021-11-23T08:36:31.000Z | 2021-12-16T15:56:08.000Z | data_processing/pm25_contour/pm2.5_transfer_to_contour_geojson.py | tasi788/pm2.5-idw-map | 59135705ce61d25f5f0a066dff00ed3a817675f6 | [
"BSD-2-Clause"
] | 7 | 2018-08-16T06:46:32.000Z | 2022-02-28T15:47:55.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on 2018 Apr.
@author: huanglipang
Discription:
converting pm2.5 data to contour geojosn using IDW
Dependencies:
python 3.6.4
numpy 1.14.0
matplotlib 2.1.2
geojsoncontour 0.3.0
"""
import numpy
import matplotlib
# use("Agg... | 29.591093 | 83 | 0.624162 |
2394ba42c6be35b8bd31686c0a5e444ec92a5e5e | 224 | swift | Swift | Sources/SherlockHUD/UncheckedSendable.swift | inamiy/SherlockForms | 9e995e2350102c8249443a734e3a4471a9d56c91 | [
"MIT"
] | 71 | 2022-02-14T13:42:10.000Z | 2022-03-30T01:59:35.000Z | Sources/SherlockHUD/UncheckedSendable.swift | inamiy/SherlockForms | 9e995e2350102c8249443a734e3a4471a9d56c91 | [
"MIT"
] | null | null | null | Sources/SherlockHUD/UncheckedSendable.swift | inamiy/SherlockForms | 9e995e2350102c8249443a734e3a4471a9d56c91 | [
"MIT"
] | null | null | null | // TODO: Remove `@unchecked Sendable` when `Sendable` is supported by each module.
import SwiftUI
extension AnyView: @unchecked Sendable {}
extension Binding: @unchecked Sendable {}
extension UUID: @unchecked Sendable {}
| 24.888889 | 82 | 0.763393 |
2f2ae035540e8568cfc1932c30647488af821b41 | 540 | js | JavaScript | node_modules/postcss-less/dist/tokenizer/tokenize-inline-comment.js | priyanka-ucreate/reactappnew | affc05d4c8b1cfac84d410213f24df81ce9d9493 | [
"MIT"
] | 25 | 2017-12-12T14:02:54.000Z | 2021-12-03T14:00:49.000Z | assets/manage/node_modules/postcss-less/dist/tokenizer/tokenize-inline-comment.js | nuridincs/bimbel_gama | be2d0d83d9579c52cda9649777552db9983e3d7b | [
"MIT"
] | 34 | 2020-09-28T07:24:42.000Z | 2022-02-26T14:29:57.000Z | assets/manage/node_modules/postcss-less/dist/tokenizer/tokenize-inline-comment.js | nuridincs/bimbel_gama | be2d0d83d9579c52cda9649777552db9983e3d7b | [
"MIT"
] | 7 | 2018-02-11T22:47:02.000Z | 2021-12-01T10:16:52.000Z | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = tokenizeInlineComment;
function tokenizeInlineComment(state) {
state.nextPos = state.css.indexOf('\n', state.pos + 2) - 1;
if (state.nextPos === -2) {
state.nextPos = state.css.length - 1;
}
state.tokens.push... | 30 | 170 | 0.690741 |
14db743c86bba1d1138692a8cda022947cc35637 | 2,410 | ts | TypeScript | src/utils/template.ts | atEaE/resource-manager | f08a589cf1c8357aa2a45e11f611285d37c8f9e0 | [
"MIT"
] | null | null | null | src/utils/template.ts | atEaE/resource-manager | f08a589cf1c8357aa2a45e11f611285d37c8f9e0 | [
"MIT"
] | null | null | null | src/utils/template.ts | atEaE/resource-manager | f08a589cf1c8357aa2a45e11f611285d37c8f9e0 | [
"MIT"
] | null | null | null | 'use strict';
import * as fs from 'fs';
import * as path from 'path';
/**
* WebviewPanel template engine
*/
export class TemplateEngine {
/**
* dummy template.
*/
public dummy: Template = new Template("dummy", notFoundTemplate);
/**
* Template folder to inspect.
*/
private templa... | 23.627451 | 111 | 0.59834 |
4141334d33b204c938235dd00a744687022a01c9 | 13,524 | rs | Rust | ftp_server/src/main_commands.rs | pachev/pachev_ftp | 84896281d0568a02ecb8d73f764d836506615331 | [
"MIT"
] | 9 | 2017-03-11T21:48:46.000Z | 2021-12-24T03:51:38.000Z | ftp_server/src/main_commands.rs | pachev/pachev_ftp | 84896281d0568a02ecb8d73f764d836506615331 | [
"MIT"
] | 3 | 2017-08-20T11:02:07.000Z | 2021-04-14T12:03:39.000Z | ftp_server/src/main_commands.rs | pachev/pachev_ftp | 84896281d0568a02ecb8d73f764d836506615331 | [
"MIT"
] | 5 | 2017-08-19T17:19:23.000Z | 2021-04-01T21:45:50.000Z | use rand::Rng;
use rand;
use std::fs::OpenOptions;
use std::io::BufReader;
use std::string::String;
use std::net::{TcpStream, TcpListener, Shutdown};
use std::path::Path;
use std::fs;
use std::fs::File;
use user::User;
use server::FtpMode;
use server;
/// # The FTP List command
/// This function implements the list ... | 33.066015 | 98 | 0.493641 |
1b5fb449a487eada2b96cce49becceaa5305bcb3 | 576 | js | JavaScript | js/main.js | karma-git/example-web-services | c6e44ed394d3ea90ca8f91dbceb28bc49cce5068 | [
"WTFPL"
] | null | null | null | js/main.js | karma-git/example-web-services | c6e44ed394d3ea90ca8f91dbceb28bc49cce5068 | [
"WTFPL"
] | null | null | null | js/main.js | karma-git/example-web-services | c6e44ed394d3ea90ca8f91dbceb28bc49cce5068 | [
"WTFPL"
] | null | null | null | const { response } = require('express');
const express = require('express')
const app = express()
const port = portFromEnv()
var os = require("os");
var uuid = require('uuid');
var jsresponse = {
"language": "javascript",
"hostname": os.hostname(),
"timestamp": new Date(),
"uuid": uuid.v4()
}
function... | 19.2 | 52 | 0.590278 |
031ab92b2a63340782ac149ba3fa22f6041b054a | 4,571 | rb | Ruby | spec/helpers/application_helper_spec.rb | BathHacked/school-power | 94651767cae02cea40131eb76c990859447263f9 | [
"MIT"
] | 10 | 2016-09-12T18:52:58.000Z | 2020-05-21T12:23:45.000Z | spec/helpers/application_helper_spec.rb | BathHacked/energy-sparks | b7d9a6622be6abbe59a6542f93b0fc18e66b2ace | [
"MIT"
] | 233 | 2016-09-05T11:27:54.000Z | 2020-03-04T00:02:11.000Z | spec/helpers/application_helper_spec.rb | BathHacked/school-power | 94651767cae02cea40131eb76c990859447263f9 | [
"MIT"
] | 2 | 2018-04-04T10:07:57.000Z | 2019-08-05T20:58:03.000Z | require 'rails_helper'
describe ApplicationHelper do
describe '.up_downify' do
it 'adds an up arrow icon for positive starts' do
expect(helper.up_downify('+10%')).to include('<i')
expect(helper.up_downify('+10%')).to include('up')
end
it 'adds an up arrow icon for increased' do
expec... | 34.368421 | 134 | 0.673594 |
23e9a7c75317f97d13bb62b67c539752aabf29e5 | 630 | js | JavaScript | packages/strapi-admin/admin/src/containers/Onboarding/constants.js | tonxxd/strapi | d623346637af28d9e3ec3c7a0bcde22fae4ca6f7 | [
"MIT"
] | 1,256 | 2018-01-19T11:05:45.000Z | 2022-03-28T21:37:15.000Z | packages/strapi-admin/admin/src/containers/Onboarding/constants.js | tonxxd/strapi | d623346637af28d9e3ec3c7a0bcde22fae4ca6f7 | [
"MIT"
] | 138 | 2018-01-16T10:15:21.000Z | 2022-03-24T22:31:31.000Z | packages/strapi-admin/admin/src/containers/Onboarding/constants.js | tonxxd/strapi | d623346637af28d9e3ec3c7a0bcde22fae4ca6f7 | [
"MIT"
] | 834 | 2018-02-05T06:30:37.000Z | 2022-03-30T14:30:31.000Z | /*
*
* Onboarding constants
*
*/
export const GET_VIDEOS = 'StrapiAdmin/Onboarding/GET_VIDEOS';
export const GET_VIDEOS_SUCCEEDED =
'StrapiAdmin/Onboarding/GET_VIDEOS_SUCCEEDED';
export const SHOULD_OPEN_MODAL = 'StrapiAdmin/Onboarding/SHOULD_OPEN_MODAL';
export const ON_CLICK = 'StrapiAdmin/Onboarding/ON_CLICK'... | 39.375 | 88 | 0.826984 |
3e8c4e4d211509ee967a56169e664589d237843e | 511 | html | HTML | src/solutions/common/templates/settings/app_user_admins.html | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | src/solutions/common/templates/settings/app_user_admins.html | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | src/solutions/common/templates/settings/app_user_admins.html | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | {% raw %}
<h3>${T('Admins')}
<sup id="admins_count" class="badge">${admins.length}</sup>
<button id="add_admin" class="btn btn-success"><i class="fa fa-plus"></i></button>
</h3>
<table id="admins" class="table table-striped table-bordered">
<thead>
<tr>
<th>${ T('Email') }</th>
<... | 24.333333 | 86 | 0.489237 |
1389ca4cf309f395253aa4af68b78904bd9f7e22 | 986 | sh | Shell | legacy/tools/build.sh | Tiamat-Tech/docker-nsolid | aa905a5ac81b70a41c24fd62b9eb545445f59c30 | [
"MIT"
] | 64 | 2016-02-21T08:53:56.000Z | 2022-02-02T21:52:30.000Z | legacy/tools/build.sh | Tiamat-Tech/docker-nsolid | aa905a5ac81b70a41c24fd62b9eb545445f59c30 | [
"MIT"
] | 20 | 2016-02-15T21:07:50.000Z | 2022-03-03T17:48:50.000Z | legacy/tools/build.sh | Tiamat-Tech/docker-nsolid | aa905a5ac81b70a41c24fd62b9eb545445f59c30 | [
"MIT"
] | 25 | 2016-02-15T17:51:57.000Z | 2022-02-02T21:52:34.000Z | #!/usr/bin/env bash
# Crash on error
set -e
# Get Working Directory
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
done
DIR=... | 23.47619 | 82 | 0.646045 |
84e3940a3afb8052da1f3d6484d2fbf1a1d48815 | 331 | cs | C# | Olympic.RazorConverter/WebForms/Filters/IWebFormsNodeFilter.cs | olympicsoftware/razor-converter | 842c82a51d79f1ee6ec69f3a3a1845125f8dc40b | [
"MIT"
] | null | null | null | Olympic.RazorConverter/WebForms/Filters/IWebFormsNodeFilter.cs | olympicsoftware/razor-converter | 842c82a51d79f1ee6ec69f3a3a1845125f8dc40b | [
"MIT"
] | null | null | null | Olympic.RazorConverter/WebForms/Filters/IWebFormsNodeFilter.cs | olympicsoftware/razor-converter | 842c82a51d79f1ee6ec69f3a3a1845125f8dc40b | [
"MIT"
] | null | null | null | using Olympic.RazorConverter.WebForms.DOM;
namespace Olympic.RazorConverter.WebForms.Filters
{
using System.Collections.Generic;
using Olympic.RazorConverter.WebForms.DOM;
public interface IWebFormsNodeFilter
{
IList<IWebFormsNode> Filter(IWebFormsNode node, IWebFormsNode previousFilteredNode... | 25.461538 | 92 | 0.773414 |
624f7157070d817f7042f78f05250a7231218d19 | 1,174 | dart | Dart | packages/flame/test/image_composition_test.dart | Sproute777/flame | 2058b05b3e88b6d055f066245225a810ac34d9a0 | [
"MIT"
] | 3 | 2022-02-01T07:37:37.000Z | 2022-02-02T11:37:13.000Z | packages/flame/test/image_composition_test.dart | Sproute777/flame | 2058b05b3e88b6d055f066245225a810ac34d9a0 | [
"MIT"
] | null | null | null | packages/flame/test/image_composition_test.dart | Sproute777/flame | 2058b05b3e88b6d055f066245225a810ac34d9a0 | [
"MIT"
] | null | null | null | import 'package:flame/image_composition.dart';
import 'package:mocktail/mocktail.dart';
import 'package:test/test.dart';
class MockImage extends Mock implements Image {}
void main() {
group('ImageComposition', () {
group('add', () {
test('breaks assertion when adding an invalid portion', () {
fina... | 30.102564 | 68 | 0.554514 |
141c318d6f158af04905368692b49a091bd7f03a | 153 | ts | TypeScript | lib/api/Cart/utils.d.ts | cruushmedia/wholesale-sdk | 0896c71107f28afff09c90d60618b5aca3b081c6 | [
"BSD-3-Clause"
] | null | null | null | lib/api/Cart/utils.d.ts | cruushmedia/wholesale-sdk | 0896c71107f28afff09c90d60618b5aca3b081c6 | [
"BSD-3-Clause"
] | null | null | null | lib/api/Cart/utils.d.ts | cruushmedia/wholesale-sdk | 0896c71107f28afff09c90d60618b5aca3b081c6 | [
"BSD-3-Clause"
] | 1 | 2021-02-03T09:33:31.000Z | 2021-02-03T09:33:31.000Z | import { ICheckoutModelLine } from "../../helpers";
export declare function sortCheckoutLines(a: ICheckoutModelLine, b: ICheckoutModelLine): 1 | -1 | 0;
| 51 | 100 | 0.745098 |
4479068e6993ffaee57841db8ee112460f7809d1 | 1,773 | py | Python | src/blockchain/block.py | slawiko/blockchain_practice | 24a06d59cc2e0d9674edcaba5ea8c358f3feedd7 | [
"Apache-2.0"
] | null | null | null | src/blockchain/block.py | slawiko/blockchain_practice | 24a06d59cc2e0d9674edcaba5ea8c358f3feedd7 | [
"Apache-2.0"
] | 1 | 2019-10-21T16:28:08.000Z | 2019-10-21T16:28:08.000Z | src/blockchain/block.py | slawiko/digital_image | 24a06d59cc2e0d9674edcaba5ea8c358f3feedd7 | [
"Apache-2.0"
] | null | null | null | import hashlib
import logging
from blockchain.transaction import Transaction
complexity = 5
log = logging.getLogger(__name__)
class Block:
def __init__(self, previous_hash, transactions, nonce=None, block_hash=None):
self.previousHash = previous_hash
# TODO: merkle tree?
self.transaction... | 29.065574 | 105 | 0.619853 |
dd57e0396681097fd8616941d0cb254390e4a6b1 | 10,263 | java | Java | fulltext/src/main/java/com/github/vantonov1/basalt/fulltext/impl/LuceneDAO.java | vantonov1/basalt | 073bf145c4406425e3fe8278c03d02949708211d | [
"Apache-2.0"
] | null | null | null | fulltext/src/main/java/com/github/vantonov1/basalt/fulltext/impl/LuceneDAO.java | vantonov1/basalt | 073bf145c4406425e3fe8278c03d02949708211d | [
"Apache-2.0"
] | null | null | null | fulltext/src/main/java/com/github/vantonov1/basalt/fulltext/impl/LuceneDAO.java | vantonov1/basalt | 073bf145c4406425e3fe8278c03d02949708211d | [
"Apache-2.0"
] | null | null | null | package com.github.vantonov1.basalt.fulltext.impl;
import com.github.vantonov1.basalt.repo.Pair;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field;
import org.apache.lucene.document.StringField;
impor... | 34.789831 | 164 | 0.561921 |
cd33d0b2d5d2712d7fe839aefe7b1eb4f385e83d | 757 | cs | C# | src/ImageSharp.Web/DependencyInjection/ImageSharpConfiguration.cs | brhinescot/ImageSharp.Web | 408801ae831f8134bbf75220f643e827dc82cb1c | [
"Apache-2.0"
] | 2 | 2021-05-02T11:17:20.000Z | 2022-03-28T05:34:52.000Z | src/ImageSharp.Web/DependencyInjection/ImageSharpConfiguration.cs | brhinescot/ImageSharp.Web | 408801ae831f8134bbf75220f643e827dc82cb1c | [
"Apache-2.0"
] | null | null | null | src/ImageSharp.Web/DependencyInjection/ImageSharpConfiguration.cs | brhinescot/ImageSharp.Web | 408801ae831f8134bbf75220f643e827dc82cb1c | [
"Apache-2.0"
] | null | null | null | // Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using Microsoft.Extensions.Options;
using SixLabors.ImageSharp.Web.Middleware;
namespace SixLabors.ImageSharp.Web.DependencyInjection
{
/// <summary>
/// Provides default configuration settings to be consumed by ... | 32.913043 | 89 | 0.689564 |
1a65484f58829b95d4722537a9c9406a1d7b7751 | 1,313 | cs | C# | ConvNetSharp/ConvNetSharp.Flow/Ops/Log.cs | NSqda/XCoinTrader | 5f985e7ec4a4fac489032b500ef56c24b487bf1e | [
"MIT"
] | 460 | 2015-06-23T03:14:20.000Z | 2022-03-29T10:55:42.000Z | ConvNetSharp/ConvNetSharp.Flow/Ops/Log.cs | NSqda/XCoinTrader | 5f985e7ec4a4fac489032b500ef56c24b487bf1e | [
"MIT"
] | 109 | 2015-06-03T03:05:47.000Z | 2020-12-07T05:26:46.000Z | ConvNetSharp/ConvNetSharp.Flow/Ops/Log.cs | NSqda/XCoinTrader | 5f985e7ec4a4fac489032b500ef56c24b487bf1e | [
"MIT"
] | 142 | 2016-02-04T09:47:41.000Z | 2021-10-09T10:26:26.000Z | using System;
using System.Collections.Generic;
using ConvNetSharp.Volume;
namespace ConvNetSharp.Flow.Ops
{
public class Log<T> : Op<T> where T : struct, IEquatable<T>, IFormattable
{
public Log(ConvNetSharp<T> graph, Dictionary<string, object> data) : base(graph)
{
}
public L... | 25.745098 | 88 | 0.533892 |
f8d0bda961d02d2374d131296a662f2e1335f74b | 437 | kt | Kotlin | src/jvmMain/kotlin/choliver/nespot/ui/Event.kt | oliver-charlesworth/nespot | e5d251b82e11f2986e8a732d55298c2ab0de3191 | [
"MIT"
] | 1 | 2020-05-29T15:15:19.000Z | 2020-05-29T15:15:19.000Z | src/jvmMain/kotlin/choliver/nespot/ui/Event.kt | oliver-charlesworth/nespot | e5d251b82e11f2986e8a732d55298c2ab0de3191 | [
"MIT"
] | 48 | 2020-05-01T15:52:36.000Z | 2020-06-07T19:59:25.000Z | src/jvmMain/kotlin/choliver/nespot/ui/Event.kt | oliver-charlesworth/nespot | e5d251b82e11f2986e8a732d55298c2ab0de3191 | [
"MIT"
] | null | null | null | package choliver.nespot.ui
import choliver.nespot.nes.Joypads
import javafx.scene.input.KeyCode
sealed class Event {
data class ControllerButtonDown(val button: Joypads.Button) : Event()
data class ControllerButtonUp(val button: Joypads.Button) : Event()
data class KeyDown(val code: KeyCode) : Event()
data cl... | 31.214286 | 71 | 0.750572 |
1a903c418b08f0b81067deae6cd963f7d8db215a | 299 | py | Python | python/search/largest_continuous_sum.py | amitsaha/playground | 82cb5ac02ac90d3fa858a5153b0a5705187c14ce | [
"Unlicense"
] | 4 | 2018-04-14T16:28:39.000Z | 2021-11-14T12:08:02.000Z | python/search/largest_continuous_sum.py | amitsaha/playground | 82cb5ac02ac90d3fa858a5153b0a5705187c14ce | [
"Unlicense"
] | 3 | 2022-02-14T10:38:51.000Z | 2022-02-27T16:01:16.000Z | python/search/largest_continuous_sum.py | amitsaha/playground | 82cb5ac02ac90d3fa858a5153b0a5705187c14ce | [
"Unlicense"
] | 4 | 2015-07-07T01:01:27.000Z | 2019-04-12T05:38:26.000Z | '''
Find the largest continuous sum
'''
def largest_cont_sum(arr):
if len(arr) == 0:
return 0
cur_sum = arr[0]
max_sum = arr[0]
for item in arr[1:]:
cur_sum = max(cur_sum+item, item)
if cur_sum >= max_sum:
max_sum = cur_sum
return max_sum
| 18.6875 | 41 | 0.561873 |
b03992e2193f2551da86bfb640cba3cd09cb558b | 4,095 | py | Python | sdk/python/pulumi_aws/s3/__init__.py | sibuthomasmathew/pulumi-aws | 6351f2182eb6f693d4e09e4136c385adfa0ab674 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/s3/__init__.py | sibuthomasmathew/pulumi-aws | 6351f2182eb6f693d4e09e4136c385adfa0ab674 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/s3/__init__.py | sibuthomasmathew/pulumi-aws | 6351f2182eb6f693d4e09e4136c385adfa0ab674 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
# Export this package's modules as members:
from ._enums import *
from .access_point import *
from .account_public_access_block import ... | 50.555556 | 99 | 0.715751 |
689722b91bfbe2bde8988d5e5478c2fdaa68ec38 | 253 | php | PHP | app/Models/Api/Mahasiswa.php | viky1sr/api-laravel-flluter | 31c7e0f56628268a8171a269b8fe33168be892c6 | [
"MIT"
] | null | null | null | app/Models/Api/Mahasiswa.php | viky1sr/api-laravel-flluter | 31c7e0f56628268a8171a269b8fe33168be892c6 | [
"MIT"
] | 5 | 2021-02-02T20:15:16.000Z | 2022-02-27T07:30:22.000Z | app/Models/Api/Mahasiswa.php | viky1sr/api-laravel-flluter | 31c7e0f56628268a8171a269b8fe33168be892c6 | [
"MIT"
] | null | null | null | <?php
namespace App\Models\Api;
use Illuminate\Database\Eloquent\Model;
class Mahasiswa extends Model
{
protected $table = 'mahasiswas';
protected $fillable = ['name','nim','no_tlpn','jenis_kelamin','tgl_lahir','jurusan','alamat','agama'];
}
| 21.083333 | 106 | 0.70751 |
93eb53a47eeb85eeec95eb29f51d780ce570dfc2 | 545 | cs | C# | Source/Clarity.Engine/Media/Models/Flexible/IFlexibleModelVertexSet.cs | Zulkir/ClarityWorlds | 2cbc91a2dfdee495428963de397e0eeca6661e7a | [
"MIT"
] | 1 | 2020-05-01T15:41:47.000Z | 2020-05-01T15:41:47.000Z | Source/Clarity.Engine/Media/Models/Flexible/IFlexibleModelVertexSet.cs | Zulkir/ClarityWorlds | 2cbc91a2dfdee495428963de397e0eeca6661e7a | [
"MIT"
] | null | null | null | Source/Clarity.Engine/Media/Models/Flexible/IFlexibleModelVertexSet.cs | Zulkir/ClarityWorlds | 2cbc91a2dfdee495428963de397e0eeca6661e7a | [
"MIT"
] | null | null | null | using System.Collections.Generic;
using Clarity.Common.GraphicalGeometry;
using Clarity.Engine.Resources;
using Clarity.Engine.Resources.RawData;
using JetBrains.Annotations;
namespace Clarity.Engine.Media.Models.Flexible
{
public interface IFlexibleModelVertexSet : IResource
{
[NotNull]
IRead... | 27.25 | 65 | 0.730275 |
c28a8a511875a51a3bac1914f8ec39007e4e4311 | 10,304 | c | C | target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c | opensag/microsemi-openwrt | f2e0e0e90801bb7cd87d1b82872cd9942c6e8df6 | [
"Apache-2.0"
] | 1,144 | 2018-12-18T09:46:47.000Z | 2022-03-07T14:51:46.000Z | target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c | opensag/microsemi-openwrt | f2e0e0e90801bb7cd87d1b82872cd9942c6e8df6 | [
"Apache-2.0"
] | 16 | 2019-01-28T06:08:40.000Z | 2019-12-04T10:26:41.000Z | target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c | opensag/microsemi-openwrt | f2e0e0e90801bb7cd87d1b82872cd9942c6e8df6 | [
"Apache-2.0"
] | 129 | 2018-12-18T09:46:50.000Z | 2022-03-30T07:30:13.000Z | /*
* ZyXEL NBG6716/NBG6616 board support
*
* Based on the Qualcomm Atheros AP135/AP136 reference board support code
* Copyright (c) 2012 Qualcomm Atheros
* Copyright (c) 2012-2013 Gabor Juhos <juhosg@openwrt.org>
* Copyright (c) 2013 Andre Valentin <avalentin@marcant.net>
*
* Permission to use, copy, modify, an... | 27.044619 | 76 | 0.746118 |
a453afaf60c69152c87a53a6bac055fb92b3c3d2 | 3,374 | php | PHP | app/views/users/register.php | Eduar2TC/Shareposts | f3a6920407c5f6e16e3b13bccd8dd88153456848 | [
"MIT"
] | null | null | null | app/views/users/register.php | Eduar2TC/Shareposts | f3a6920407c5f6e16e3b13bccd8dd88153456848 | [
"MIT"
] | null | null | null | app/views/users/register.php | Eduar2TC/Shareposts | f3a6920407c5f6e16e3b13bccd8dd88153456848 | [
"MIT"
] | null | null | null | <?php require_once APP_ROOT . '/views/inc/header.php'; ?>
<main class="d-flex align-items-center min-vh-100 py-2 py-md-0">
<div class="row container-fluid mx-auto mt-4 mb-3">
<div class="col-md-4 offset-md-2 d-flex justify-content-end px-0 img-container">
<img class="img-fluid align-self-end sha... | 68.857143 | 296 | 0.534381 |
57fe74b15c47db0ec6a45757184bdde701cf32e8 | 2,994 | php | PHP | tests/Dplr/Tests/TaskReportTest.php | muxx/dplr | 98d649c83904a2ea7b339d31e5f009f2ab06bcf8 | [
"MIT"
] | 11 | 2015-02-19T02:05:58.000Z | 2019-10-23T12:41:52.000Z | tests/Dplr/Tests/TaskReportTest.php | muxx/dplr | 98d649c83904a2ea7b339d31e5f009f2ab06bcf8 | [
"MIT"
] | null | null | null | tests/Dplr/Tests/TaskReportTest.php | muxx/dplr | 98d649c83904a2ea7b339d31e5f009f2ab06bcf8 | [
"MIT"
] | 1 | 2021-05-13T15:42:18.000Z | 2021-05-13T15:42:18.000Z | <?php
namespace Dplr\Tests;
use Dplr\Task;
use Dplr\TaskReport;
use InvalidArgumentException;
use PHPUnit\Framework\TestCase;
class TaskReportTest extends TestCase
{
public function testNoType(): void
{
$this->expectException(InvalidArgumentException::class);
$this->expectExceptionMessage('No... | 29.643564 | 107 | 0.548764 |
1a8a519104046f74dbcfea99b93c4ebb7df6122d | 3,477 | py | Python | src/main/python/programmingtheiot/cda/connection/RedisPersistenceAdapter.py | Taowyoo/-constrained-device-app | c858f786dfa7fc82006068d405a04dc21f2fcda5 | [
"MIT"
] | null | null | null | src/main/python/programmingtheiot/cda/connection/RedisPersistenceAdapter.py | Taowyoo/-constrained-device-app | c858f786dfa7fc82006068d405a04dc21f2fcda5 | [
"MIT"
] | 2 | 2020-10-31T06:33:20.000Z | 2020-11-05T06:36:44.000Z | src/main/python/programmingtheiot/cda/connection/RedisPersistenceAdapter.py | Taowyoo/-constrained-device-app | c858f786dfa7fc82006068d405a04dc21f2fcda5 | [
"MIT"
] | 1 | 2020-12-13T03:41:57.000Z | 2020-12-13T03:41:57.000Z |
import logging
from programmingtheiot.common import ConfigConst
from programmingtheiot.common.ConfigUtil import ConfigUtil
from programmingtheiot.common.ResourceNameEnum import ResourceNameEnum
from programmingtheiot.data.DataUtil import DataUtil
from programmingtheiot.data.SensorData import SensorData
import redis
... | 41.891566 | 136 | 0.663503 |
ef305782b19d3fb0107bdf10da178d2880d8ffec | 1,624 | h | C | include/libnodes/ValueNode.h | heisters/libnodes | f0699a2912b03f161c856e4ed14986a81921cd18 | [
"Unlicense"
] | 9 | 2017-09-09T06:36:36.000Z | 2022-01-02T20:04:16.000Z | include/libnodes/ValueNode.h | heisters/libnodes | f0699a2912b03f161c856e4ed14986a81921cd18 | [
"Unlicense"
] | null | null | null | include/libnodes/ValueNode.h | heisters/libnodes | f0699a2912b03f161c856e4ed14986a81921cd18 | [
"Unlicense"
] | 1 | 2017-11-01T03:57:27.000Z | 2017-11-01T03:57:27.000Z | #pragma once
#include "libnodes/Node.h"
namespace nodes {
//! A simple node that holds a primitive value and emits it when the value
//! changes.
template< typename T, typename ...Ts >
class ValueNode : public Node< Inlets< T, Ts... >, Outlets< T, Ts... > >
{
public:
typedef Node< Inlets< T, Ts... >, Outlets< T, ... | 21.945946 | 78 | 0.54064 |
e288c29ecb728d69118fc9f8242931e744fe1262 | 6,694 | py | Python | plaso/storage/redis/reader.py | kiddinn/plaso | c7d955724cfeeea09ce6166609fd4d3c77a99fc6 | [
"Apache-2.0"
] | null | null | null | plaso/storage/redis/reader.py | kiddinn/plaso | c7d955724cfeeea09ce6166609fd4d3c77a99fc6 | [
"Apache-2.0"
] | null | null | null | plaso/storage/redis/reader.py | kiddinn/plaso | c7d955724cfeeea09ce6166609fd4d3c77a99fc6 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""Redis reader."""
from plaso.lib import definitions
from plaso.storage.redis import redis_store
from plaso.storage import interface
class RedisStorageReader(interface.StorageReader):
"""Redis storage file reader."""
def __init__(self, task):
"""Initializes a Redis Storage Reader.
... | 26.458498 | 79 | 0.70496 |
79ed552caa695864c0ac8e43f87453694a5af9eb | 191 | php | PHP | resources/views/child_category.blade.php | Kaleemullah007/events | bedb49a0517bf769a4431e02afe1e63ec7b78a36 | [
"MIT"
] | null | null | null | resources/views/child_category.blade.php | Kaleemullah007/events | bedb49a0517bf769a4431e02afe1e63ec7b78a36 | [
"MIT"
] | null | null | null | resources/views/child_category.blade.php | Kaleemullah007/events | bedb49a0517bf769a4431e02afe1e63ec7b78a36 | [
"MIT"
] | null | null | null | <tr style="display: none" class="<?=$id?>" >
<td><a href="/search?category={{ str_replace(' ', '_', str_replace('&', '$', $child_category->name))}}">{{$child_category->name}}</a>
</td></tr> | 63.666667 | 134 | 0.575916 |
1b035b8aa13b22acf87b7a467c6aa7644aa09946 | 618 | dart | Dart | system_metrics_widget/lib/src/environment/android.dart | DisDis/dslideshow | 58e9b2afbcd43c7c7f99a2382dd109bcef5c4185 | [
"MIT"
] | 1 | 2021-04-29T14:49:00.000Z | 2021-04-29T14:49:00.000Z | system_metrics_widget/lib/src/environment/android.dart | DisDis/dslideshow | 58e9b2afbcd43c7c7f99a2382dd109bcef5c4185 | [
"MIT"
] | null | null | null | system_metrics_widget/lib/src/environment/android.dart | DisDis/dslideshow | 58e9b2afbcd43c7c7f99a2382dd109bcef5c4185 | [
"MIT"
] | 1 | 2021-07-15T18:34:22.000Z | 2021-07-15T18:34:22.000Z | import 'dart:io';
// import 'package:permission_handler/permission_handler.dart';
// import 'package:path_provider/path_provider.dart' as path_prov;
final bool isLinuxEmbedded = false;
// Future<Directory> getApplicationDocumentsDirectory() async{
// return path_prov.getApplicationDocumentsDirectory();
// }
//
// ... | 30.9 | 66 | 0.729773 |
4c1cf1c895a0bc6e9aa296d4e54e603ba624d534 | 122 | lua | Lua | Source Code/conf.lua | siddnikh/pong | 2d595f0b9ac9afb2289f4c4251bac657be489504 | [
"MIT"
] | null | null | null | Source Code/conf.lua | siddnikh/pong | 2d595f0b9ac9afb2289f4c4251bac657be489504 | [
"MIT"
] | null | null | null | Source Code/conf.lua | siddnikh/pong | 2d595f0b9ac9afb2289f4c4251bac657be489504 | [
"MIT"
] | null | null | null | function love.conf(t)
t.window.icon = 'icon.png'
t.window.borderless = false
t.window.resizable = true
end | 24.4 | 32 | 0.655738 |
e2a9cf9e0cae4c7e687ca418ba23e3dd66b07d95 | 5,339 | py | Python | grand/backends/networkx.py | aplbrain/grand | d85669df17a40834a13478ae200e984e13b41650 | [
"Apache-2.0"
] | 31 | 2020-10-16T16:46:02.000Z | 2022-03-04T20:45:05.000Z | grand/backends/networkx.py | aplbrain/grand | d85669df17a40834a13478ae200e984e13b41650 | [
"Apache-2.0"
] | 15 | 2020-10-15T16:28:49.000Z | 2022-02-10T16:41:32.000Z | grand/backends/networkx.py | aplbrain/grand | d85669df17a40834a13478ae200e984e13b41650 | [
"Apache-2.0"
] | null | null | null | from typing import Hashable, Generator, Iterable
import time
import pandas as pd
import networkx as nx
from .backend import Backend
class NetworkXBackend(Backend):
def __init__(self, directed: bool = False):
"""
Create a new Backend instance.
Arguments:
directed (bool: False... | 25.917476 | 81 | 0.556846 |
ff22f9b93f9ce4b0fcc06b4dadf84a7ade5ca1f0 | 3,363 | py | Python | utils.py | vjg28/Lunar-Lander-RL | 5307f9b9843a16b943ec044dbd3239b77d518bdc | [
"MIT"
] | null | null | null | utils.py | vjg28/Lunar-Lander-RL | 5307f9b9843a16b943ec044dbd3239b77d518bdc | [
"MIT"
] | null | null | null | utils.py | vjg28/Lunar-Lander-RL | 5307f9b9843a16b943ec044dbd3239b77d518bdc | [
"MIT"
] | null | null | null | '''
Common code blocks.
'''
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
import shutil,os
def agent_action(p_model, observation):
prob = p_model.sess.run(p_model.action_probs, feed_dict = {p_model.tf_observations: [observation]})
action = np.random.choice(np.ar... | 41.518519 | 200 | 0.644068 |
7987434cbebe09b1e1c9c745be0566df14cda324 | 5,262 | php | PHP | application/controllers/Order.php | dulkith/pizza_duka | d759be6075b4600bbbaa45741d7e81bb2383043c | [
"MIT"
] | null | null | null | application/controllers/Order.php | dulkith/pizza_duka | d759be6075b4600bbbaa45741d7e81bb2383043c | [
"MIT"
] | null | null | null | application/controllers/Order.php | dulkith/pizza_duka | d759be6075b4600bbbaa45741d7e81bb2383043c | [
"MIT"
] | null | null | null | <?php
/**
* Class Order
* Pizza NoW! online order system order controller class
*/
class Order extends CI_Controller
{
public function __construct()
{
parent::__construct();
// set local time zone
date_default_timezone_set('Asia/Colombo');
}
public function index()
{
// get cart data
$cartDataArray ... | 30.593023 | 89 | 0.63569 |
8752452a61f99c29967ae4e660a684ce1713099c | 218 | rb | Ruby | app/models/posts/paragraphs/comment.rb | harman28/parablogger | efead66943973daa411e8a6f94d8ffb883b7bf1c | [
"MIT"
] | null | null | null | app/models/posts/paragraphs/comment.rb | harman28/parablogger | efead66943973daa411e8a6f94d8ffb883b7bf1c | [
"MIT"
] | null | null | null | app/models/posts/paragraphs/comment.rb | harman28/parablogger | efead66943973daa411e8a6f94d8ffb883b7bf1c | [
"MIT"
] | null | null | null | class Posts::Paragraphs::Comment < ActiveRecord::Base
belongs_to :paragraph, class_name: '::Posts::Paragraph', foreign_key: 'posts_paragraph_id', primary_key: 'id'
validates :posts_paragraph_id, presence: true
end
| 43.6 | 111 | 0.779817 |
f46ad946c4e21c3353cc7e2471e174370d606cc9 | 1,684 | ts | TypeScript | src/index.ts | DIPSAS/ehrcraft-form-api | 78b2e9bce061dfa33b5cbdfff2a3fac178a706dc | [
"MIT"
] | null | null | null | src/index.ts | DIPSAS/ehrcraft-form-api | 78b2e9bce061dfa33b5cbdfff2a3fac178a706dc | [
"MIT"
] | 1 | 2021-01-28T04:33:56.000Z | 2021-01-28T04:36:37.000Z | src/index.ts | DIPSAS/ehrcraft-form-api | 78b2e9bce061dfa33b5cbdfff2a3fac178a706dc | [
"MIT"
] | null | null | null |
import {openEHR} from './rm/rm-model';
import {API} from './api';
import {CTX} from './ctx';
import {HTTP} from './http';
import DvOrdinal = openEHR.RM.QuantityPackage.DvOrdinal;
import DvText = openEHR.RM.TextPackage.DvText;
import DvCodedText = openEHR.RM.TextPackage.DvCodedText;
import DvCodePhrase = openEHR.RM.Tex... | 36.608696 | 66 | 0.808195 |
32d33d121c50136f5a5a606fe14bb4c5fd3426d1 | 2,201 | sql | SQL | Funserver/Trinity Core/SQL/Crystal Bow-100007.sql | 499453466/Lua-Other | 43fd2b72405faf3f2074fd2a2706ef115d16faa6 | [
"Unlicense"
] | 2 | 2015-06-23T16:26:32.000Z | 2019-06-27T07:45:59.000Z | Funserver/Trinity Core/SQL/Crystal Bow-100007.sql | Eduardo-Silla/Lua-Other | db610f946dbcaf81b3de9801f758e11a7bf2753f | [
"Unlicense"
] | null | null | null | Funserver/Trinity Core/SQL/Crystal Bow-100007.sql | Eduardo-Silla/Lua-Other | db610f946dbcaf81b3de9801f758e11a7bf2753f | [
"Unlicense"
] | 3 | 2015-01-10T18:22:59.000Z | 2021-04-27T21:28:28.000Z | INSERT INTO item_template (entry, `class`, subclass, unk0, `name`, displayid, Quality, Flags, BuyCount, BuyPrice, SellPrice, InventoryType, AllowableClass, AllowableRace, ItemLevel, RequiredLevel, RequiredSkill, RequiredSkillRank, requiredspell, requiredhonorrank, RequiredCityRank, RequiredReputationFaction, RequiredRe... | 1,100.5 | 1,704 | 0.763289 |
6317d509732020163ea2d55706f0e7d186aeb24d | 269 | lua | Lua | MMOCoreORB/bin/scripts/object/tangible/deed/city_deed/cityhall_naboo_03_deed.lua | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 18 | 2017-02-09T15:36:05.000Z | 2021-12-21T04:22:15.000Z | MMOCoreORB/bin/scripts/object/tangible/deed/city_deed/cityhall_naboo_03_deed.lua | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 61 | 2016-12-30T21:51:10.000Z | 2021-12-10T20:25:56.000Z | MMOCoreORB/bin/scripts/object/tangible/deed/city_deed/cityhall_naboo_03_deed.lua | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 71 | 2017-01-01T05:34:38.000Z | 2022-03-29T01:04:00.000Z | object_tangible_deed_city_deed_cityhall_naboo_03_deed = object_tangible_deed_city_deed_shared_cityhall_naboo_03_deed:new {
}
ObjectTemplates:addTemplate(object_tangible_deed_city_deed_cityhall_naboo_03_deed, "object/tangible/deed/city_deed/cityhall_naboo_03_deed.iff")
| 67.25 | 143 | 0.918216 |
3db8f5b3e6c3274c5e3a2cf7648fec21ee4a3f6c | 1,029 | dart | Dart | lib/view/bruteforce.dart | Manohar007/assignment | bffeacc22d4359f24407f215c41596fead58cc61 | [
"MIT"
] | null | null | null | lib/view/bruteforce.dart | Manohar007/assignment | bffeacc22d4359f24407f215c41596fead58cc61 | [
"MIT"
] | null | null | null | lib/view/bruteforce.dart | Manohar007/assignment | bffeacc22d4359f24407f215c41596fead58cc61 | [
"MIT"
] | null | null | null | import 'dart:math';
/// Estimates the strength of a password against a brute force attack.
/// The passwords length as well as the characters use are taken into
/// consideration.
double estimateBruteforceStrength(String password) {
if (password.isEmpty) return 0.0;
// Check which types of characters are used and... | 29.4 | 78 | 0.638484 |
8c3423991ffa95f654ba13d43d5afc872a4ba158 | 1,018 | dart | Dart | lib/main.dart | HYFRAK/SPS_ble | 28e0335ddef22413d3d373506d8647bc4b9f476d | [
"MIT"
] | null | null | null | lib/main.dart | HYFRAK/SPS_ble | 28e0335ddef22413d3d373506d8647bc4b9f476d | [
"MIT"
] | null | null | null | lib/main.dart | HYFRAK/SPS_ble | 28e0335ddef22413d3d373506d8647bc4b9f476d | [
"MIT"
] | null | null | null | import 'package:firebase_auth/firebase_auth.dart';
import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:sps_ble/LANDING/login.dart';
import 'package:sps_ble/LANDING/profile.dart';
import 'package:sps_ble/LANDING/sports_select.... | 29.941176 | 68 | 0.740668 |
f4abab5cc24d732d701a8f673add0a7abd312f28 | 232 | tsx | TypeScript | src/components/utility/safe.area.component.tsx | islandhuynh/WhatsForLinner | 6e26a414e1c09aa1feca6f04805e9834d6c9c450 | [
"MIT"
] | 1 | 2021-04-06T02:52:23.000Z | 2021-04-06T02:52:23.000Z | src/components/utility/safe.area.component.tsx | islandhuynh/WhatsForLinner | 6e26a414e1c09aa1feca6f04805e9834d6c9c450 | [
"MIT"
] | 1 | 2021-05-24T00:07:42.000Z | 2021-05-24T00:07:42.000Z | src/components/utility/safe.area.component.tsx | islandhuynh/WhatsForLinner | 6e26a414e1c09aa1feca6f04805e9834d6c9c450 | [
"MIT"
] | null | null | null | import { SafeAreaView, StatusBar } from "react-native";
import styled from 'styled-components';
export const SafeArea = styled(SafeAreaView)`
flex: 1;
${StatusBar.currentHeight && `margin-top: ${StatusBar.currentHeight}px;`}
`; | 33.142857 | 75 | 0.737069 |
06eed773166c195e6fef5822c122e9bbd71d88e9 | 1,207 | py | Python | purbeurre_project/settings/dev.py | etiennody/purbeurre-v2 | cee10b5ad3ccee6535f197070cd4ee80f2bad5d0 | [
"MIT"
] | null | null | null | purbeurre_project/settings/dev.py | etiennody/purbeurre-v2 | cee10b5ad3ccee6535f197070cd4ee80f2bad5d0 | [
"MIT"
] | 3 | 2020-10-12T13:58:38.000Z | 2020-11-12T01:02:14.000Z | purbeurre_project/settings/dev.py | etiennody/purbeurre-v2 | cee10b5ad3ccee6535f197070cd4ee80f2bad5d0 | [
"MIT"
] | 1 | 2021-02-03T18:49:31.000Z | 2021-02-03T18:49:31.000Z | """
Django settings for purbeurre_project project.
Generated by 'django-admin startproject' using Django 3.0.8.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
im... | 28.738095 | 86 | 0.714167 |
41f7372b427be2c002ba96989820c365320e6c2d | 6,713 | swift | Swift | ttt.swift | davidly/ttt | a1ae7327f587be752d92dbf32ba9aeaac793f584 | [
"CC0-1.0"
] | null | null | null | ttt.swift | davidly/ttt | a1ae7327f587be752d92dbf32ba9aeaac793f584 | [
"CC0-1.0"
] | null | null | null | ttt.swift | davidly/ttt | a1ae7327f587be752d92dbf32ba9aeaac793f584 | [
"CC0-1.0"
] | null | null | null | //
// main.swift
// sttt
//
// Created by David Lee on 1/30/21.
//
import Foundation
let SCORE_WIN = 6
let SCORE_TIE = 5
let SCORE_LOSE = 4
let SCORE_MAX = 9
let SCORE_MIN = 2
var g_moves = 0
enum Piece : UInt8 { case blank=0, X, O }
func winner_proc0(b : Board) -> Piece
{
let x = b.board[0];
if ( (... | 23.720848 | 100 | 0.448384 |
02442b85e4333538bb47ec156a3b13b5b764ea96 | 4,625 | h | C | dali/internal/graphics/gles-impl/gles-framebuffer-state-cache.h | dalihub/dali-adaptor | b7943ae5aeb7ddd069be7496a1c1cee186b740c5 | [
"Apache-2.0",
"BSD-3-Clause"
] | 6 | 2016-11-18T10:26:46.000Z | 2021-11-01T12:29:05.000Z | dali/internal/graphics/gles-impl/gles-framebuffer-state-cache.h | dalihub/dali-adaptor | b7943ae5aeb7ddd069be7496a1c1cee186b740c5 | [
"Apache-2.0",
"BSD-3-Clause"
] | 5 | 2020-07-15T11:30:49.000Z | 2020-12-11T19:13:46.000Z | dali/internal/graphics/gles-impl/gles-framebuffer-state-cache.h | dalihub/dali-adaptor | b7943ae5aeb7ddd069be7496a1c1cee186b740c5 | [
"Apache-2.0",
"BSD-3-Clause"
] | 7 | 2019-05-17T07:14:40.000Z | 2021-05-24T07:25:26.000Z | #ifndef DALI_GRAPHICS_GLES_CONTEXT_FRAMEBUFFER_STATE_CACHE_H
#define DALI_GRAPHICS_GLES_CONTEXT_FRAMEBUFFER_STATE_CACHE_H
/*
* Copyright (c) 2021 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Y... | 30.032468 | 100 | 0.704865 |
63aa6815f5bf91b0ba275cc91bef28eb7362dfe1 | 27,679 | rs | Rust | src/row.rs | tachiniererin/duckdb-rs | 3e78ad46d8a949b55291536c55ae484af82c8392 | [
"MIT"
] | null | null | null | src/row.rs | tachiniererin/duckdb-rs | 3e78ad46d8a949b55291536c55ae484af82c8392 | [
"MIT"
] | null | null | null | src/row.rs | tachiniererin/duckdb-rs | 3e78ad46d8a949b55291536c55ae484af82c8392 | [
"MIT"
] | null | null | null | use std::convert;
use std::sync::Arc;
use super::{Error, Result, Statement};
use crate::types::{self, FromSql, FromSqlError, ValueRef};
use arrow::array::{self, Array, StructArray};
use arrow::datatypes::*;
use fallible_iterator::FallibleIterator;
use fallible_streaming_iterator::FallibleStreamingIterator;
use rust_d... | 34.341191 | 120 | 0.518624 |
9039718abbf57b8f3ef5e7ba6f656f2c9c52ed07 | 93 | sql | SQL | net.solarnetwork.node.reactor.dao.jdbc/src/net/solarnetwork/node/dao/jdbc/reactor/derby-instruction-insert-status.sql | Tsvetelin98/Solar | 350341d4f6a32d53efd48778ee7a8ba89a591978 | [
"Apache-2.0"
] | null | null | null | net.solarnetwork.node.reactor.dao.jdbc/src/net/solarnetwork/node/dao/jdbc/reactor/derby-instruction-insert-status.sql | Tsvetelin98/Solar | 350341d4f6a32d53efd48778ee7a8ba89a591978 | [
"Apache-2.0"
] | null | null | null | net.solarnetwork.node.reactor.dao.jdbc/src/net/solarnetwork/node/dao/jdbc/reactor/derby-instruction-insert-status.sql | Tsvetelin98/Solar | 350341d4f6a32d53efd48778ee7a8ba89a591978 | [
"Apache-2.0"
] | null | null | null | INSERT INTO solarnode.sn_instruction_status (instruction_id, modified, state)
VALUES (?,?,?)
| 31 | 77 | 0.784946 |
4015ca8a1bd9ef9b570541a6a381bcddcfd25dfc | 2,671 | sql | SQL | MailProxy/account.sql | glorycloud/GloryMail | f5250bd53f0b45e4dd25adc3940902d20f5597c2 | [
"Apache-2.0"
] | 2 | 2019-10-06T11:07:51.000Z | 2021-04-14T01:25:54.000Z | MailProxy/account.sql | glorycloud/GloryMail | f5250bd53f0b45e4dd25adc3940902d20f5597c2 | [
"Apache-2.0"
] | null | null | null | MailProxy/account.sql | glorycloud/GloryMail | f5250bd53f0b45e4dd25adc3940902d20f5597c2 | [
"Apache-2.0"
] | 3 | 2018-12-23T15:56:47.000Z | 2022-01-31T14:36:43.000Z | /*
SQLyog Enterprise - MySQL GUI v8.14
MySQL - 5.1.44-community : Database - test
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MO... | 59.355556 | 298 | 0.688881 |
9531a04f555e7a48dcb14c39682c2686d52baf56 | 9,780 | asm | Assembly | PORTS/buzz2.asm | bushy555/ZX-Spectrum-1-Bit-Routines | 4d336dec9d7abc979a97af76d515104a9263f127 | [
"BSD-3-Clause"
] | null | null | null | PORTS/buzz2.asm | bushy555/ZX-Spectrum-1-Bit-Routines | 4d336dec9d7abc979a97af76d515104a9263f127 | [
"BSD-3-Clause"
] | null | null | null | PORTS/buzz2.asm | bushy555/ZX-Spectrum-1-Bit-Routines | 4d336dec9d7abc979a97af76d515104a9263f127 | [
"BSD-3-Clause"
] | null | null | null | ;
;--------------------------------
; BUZZKICK
; ------------------------------
;#define defb db
;#define defw dw
;#define db db
;#define dw dw
;#define end end
;#define org org
;#define DEFB db
;#define DEFW dw
;#define DB db
;#define DW dw
;#define END end
;#define ORG org
;#define equ equ
;#de... | 12.255639 | 43 | 0.478732 |
ff74fdc7b00342cad31d0e39c65d11e6576f8cbf | 2,190 | py | Python | zerosim/data/watchlists.py | rahulmkumar/ZeroSim1 | 63eb357c4831b666581df0de4355f85095653d06 | [
"MIT"
] | 1 | 2020-08-28T16:27:15.000Z | 2020-08-28T16:27:15.000Z | zerosim/data/watchlists.py | rahulmkumar/ZeroSim1 | 63eb357c4831b666581df0de4355f85095653d06 | [
"MIT"
] | null | null | null | zerosim/data/watchlists.py | rahulmkumar/ZeroSim1 | 63eb357c4831b666581df0de4355f85095653d06 | [
"MIT"
] | 1 | 2021-02-03T12:31:42.000Z | 2021-02-03T12:31:42.000Z | import shelve
import pandas as pd
class Watchlist(object):
def __init__(self, list_name, l_sym):
self.watchlist_name = list_name
self.l_symbols = l_sym
def get_watchlist_name(self):
return self.watchlist_name
def get_watchlist_sym(self):
return self.l_symbols
class Watc... | 28.076923 | 78 | 0.652055 |
8ea1552e5a667b8e4e116e9ddbb6abcf4afc263c | 394 | js | JavaScript | js/app.js | hackEns/VelibFxos | 8e81698cef7902d821fdaae2d0864f1191d7438a | [
"MIT"
] | 3 | 2015-01-13T14:53:05.000Z | 2015-09-30T02:24:41.000Z | js/app.js | Phyks/VelibFxos | 8e81698cef7902d821fdaae2d0864f1191d7438a | [
"MIT"
] | 97 | 2015-01-14T08:08:22.000Z | 2015-10-06T20:54:43.000Z | js/app.js | hackEns/VelibFxos | 8e81698cef7902d821fdaae2d0864f1191d7438a | [
"MIT"
] | 8 | 2015-01-13T14:53:11.000Z | 2015-10-03T23:03:04.000Z | "use strict";
/**********
* Ready()
**********/
// Wait for the localization to be done and loaded, and avoid having problems
// with unloaded localization variables.
document.addEventListener("localized", function() {
$(function() {
Views.init();
Geolocation.init();
Router.route();
... | 18.761905 | 77 | 0.581218 |
c680a3dde5e27a5dfede0824bcad1b9b53f59159 | 7,743 | rs | Rust | src/api/rcos/meetings/authorization_for.rs | gmisail/Telescope | ffb0738f78c8eb5358e7b9ce7634e2d212b794ad | [
"MIT"
] | null | null | null | src/api/rcos/meetings/authorization_for.rs | gmisail/Telescope | ffb0738f78c8eb5358e7b9ce7634e2d212b794ad | [
"MIT"
] | null | null | null | src/api/rcos/meetings/authorization_for.rs | gmisail/Telescope | ffb0738f78c8eb5358e7b9ce7634e2d212b794ad | [
"MIT"
] | null | null | null | //! GraphQL query to check if a user can view draft meetings.
use crate::api::rcos::meetings::{MeetingType, ALL_MEETING_TYPES};
use crate::api::rcos::prelude::*;
use crate::api::rcos::send_query;
use crate::api::rcos::users::UserRole;
use crate::error::TelescopeError;
use chrono::Local;
/// Type representing GraphQL ... | 38.331683 | 100 | 0.625597 |
e5aebd565fbb43c5a4bce82ea6ec4b4536ed592a | 4,595 | swift | Swift | Example/SwiftEventBusExample/SwiftEventBusTests/EventBusTests.swift | GarethShapiro/SwiftEventBus | 623876e05b540fa6a3b283e2e55df35af1375c4b | [
"MIT"
] | null | null | null | Example/SwiftEventBusExample/SwiftEventBusTests/EventBusTests.swift | GarethShapiro/SwiftEventBus | 623876e05b540fa6a3b283e2e55df35af1375c4b | [
"MIT"
] | null | null | null | Example/SwiftEventBusExample/SwiftEventBusTests/EventBusTests.swift | GarethShapiro/SwiftEventBus | 623876e05b540fa6a3b283e2e55df35af1375c4b | [
"MIT"
] | null | null | null | //
// EventBusTests.swift
// SwiftEventBusTests
//
// Created by Gareth Shapiro on 30/01/2019.
// Copyright © 2019 Gareth Shapiro. All rights reserved.
//
import XCTest
import SwiftEventBus
class EventBusTests: XCTestCase {
func testConsumeMethodWithCorrectEvent() {
// GIVEN an instance of EventBus
... | 41.396396 | 154 | 0.718607 |
3da41e8a846a73c60f1c9fbcc52de4c7dc1cf037 | 688 | swift | Swift | Canyoneer/Canyoneer/AppDataKit/Services/FavoriteService.swift | bricepollock/canyoneer | e95fe8577710a8ff0ca008f079951ae5c1b28b7f | [
"MIT"
] | null | null | null | Canyoneer/Canyoneer/AppDataKit/Services/FavoriteService.swift | bricepollock/canyoneer | e95fe8577710a8ff0ca008f079951ae5c1b28b7f | [
"MIT"
] | null | null | null | Canyoneer/Canyoneer/AppDataKit/Services/FavoriteService.swift | bricepollock/canyoneer | e95fe8577710a8ff0ca008f079951ae5c1b28b7f | [
"MIT"
] | null | null | null | //
// FavoriteService.swift
// Canyoneer
//
// Created by Brice Pollock on 1/12/22.
//
import Foundation
import RxSwift
import Combine
class FavoriteService {
func allFavorites() -> AnyPublisher<[Canyon], Never> {
return Just(UserPreferencesStorage.allFavorites).eraseToAnyPublisher()
}
... | 22.933333 | 78 | 0.65843 |
a339d2cbd113955c3ac090cb8dc8c85a9aa066fe | 29,549 | java | Java | examples/BasicGLSurfaceView/deploy/src/haxe/root/Array.java | haxorplatform/androidhx | 6644be77b59e6de5805646a0f47c5c191284bd01 | [
"MIT"
] | 8 | 2016-10-31T18:12:15.000Z | 2021-06-29T08:14:38.000Z | examples/BasicGLSurfaceView/deploy/src/haxe/root/Array.java | haxorplatform/androidhx | 6644be77b59e6de5805646a0f47c5c191284bd01 | [
"MIT"
] | null | null | null | examples/BasicGLSurfaceView/deploy/src/haxe/root/Array.java | haxorplatform/androidhx | 6644be77b59e6de5805646a0f47c5c191284bd01 | [
"MIT"
] | null | null | null | package haxe.root;
import haxe.root.*;
@SuppressWarnings(value={"rawtypes", "unchecked"})
public final class Array<T> extends haxe.lang.HxObject
{
public Array(T[] _native)
{
this.__a = _native;
this.length = _native.length;
}
public Array(haxe.lang.EmptyObject empty)
{
{
}
}
public Array... | 19.465744 | 173 | 0.518427 |
33b3f8b1f761c1c6d1b9750ffe8f0436de27cf22 | 5,266 | c | C | src/main/sdvxhook2/dllmain.c | Soyandroid/bemanitools | 0fd499266f4d724b8eea7217a6fd4e6a0caba948 | [
"Unlicense"
] | 5 | 2021-12-20T02:57:07.000Z | 2022-02-28T20:19:26.000Z | src/main/sdvxhook2/dllmain.c | Soyandroid/bemanitools | 0fd499266f4d724b8eea7217a6fd4e6a0caba948 | [
"Unlicense"
] | null | null | null | src/main/sdvxhook2/dllmain.c | Soyandroid/bemanitools | 0fd499266f4d724b8eea7217a6fd4e6a0caba948 | [
"Unlicense"
] | 1 | 2021-12-21T18:49:01.000Z | 2021-12-21T18:49:01.000Z | #include <windows.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "bemanitools/eamio.h"
#include "bemanitools/sdvxio.h"
#include "cconfig/cconfig-hook.h"
#include "hooklib/acp.h"
#include "hooklib/adapter.h"
#include "hooklib/app.h"
#include "hooklib/config-adapter.h"
#in... | 24.723005 | 80 | 0.675655 |
45a30f07369e97e7d560fcf15976b0f6a7918379 | 4,538 | py | Python | xchainpy/xchainpy_litecoin/xchainpy_litecoin/sochain_api.py | tirinox/xchainpy-lib | e01f146993c45ca0dad3ca40f07e7b45ed65653e | [
"MIT"
] | null | null | null | xchainpy/xchainpy_litecoin/xchainpy_litecoin/sochain_api.py | tirinox/xchainpy-lib | e01f146993c45ca0dad3ca40f07e7b45ed65653e | [
"MIT"
] | null | null | null | xchainpy/xchainpy_litecoin/xchainpy_litecoin/sochain_api.py | tirinox/xchainpy-lib | e01f146993c45ca0dad3ca40f07e7b45ed65653e | [
"MIT"
] | null | null | null | import json
import http3
def to_sochain_network(net: str):
return 'LTCTEST' if net == 'testnet' else 'LTC'
async def get_balance(sochain_url:str, net:str, address:str):
"""Get address balance
https://sochain.com/api#get-balance
:param net: mainnet or testnet
:type net: str
:param address: wa... | 30.456376 | 107 | 0.636844 |
532fa77e7818b412ad6f41d9e107f67e24f51ff7 | 584 | ps1 | PowerShell | Exchange/Exchange-resource-get-information.ps1 | badgumby/powershell-scripts | 24cc5f15543c99e915fe61d03574db31e58aac35 | [
"MIT"
] | null | null | null | Exchange/Exchange-resource-get-information.ps1 | badgumby/powershell-scripts | 24cc5f15543c99e915fe61d03574db31e58aac35 | [
"MIT"
] | null | null | null | Exchange/Exchange-resource-get-information.ps1 | badgumby/powershell-scripts | 24cc5f15543c99e915fe61d03574db31e58aac35 | [
"MIT"
] | null | null | null | Set-MailboxFolderPermission -AccessRights LimitedDetails somemailbox@domain.com:\Calendar -User default
Set-CalendarProcessing somemailbox@domain.com -AddOrganizerToSubject $true -DeleteSubject $true
$mailboxlist = Get-Mailbox -RecipientTypeDetails RoomMailbox | Get-CalendarProcessing | Select Identity,AddOrganizerTo... | 64.888889 | 139 | 0.851027 |
e0cd095b74c440946dacf2e2f1f67fed0e3d67ee | 146 | lua | Lua | garrysmod/gamemodes/darkrp/plugins/anomalies/sh_plugin.lua | Kek1ch/Kek1ch | fa545ac1c261c20639ba7a7119ccd7aa4aaacbdc | [
"Apache-2.0"
] | 7 | 2019-06-15T09:10:59.000Z | 2021-11-21T18:15:03.000Z | garrysmod/gamemodes/darkrp/plugins/anomalies/sh_plugin.lua | Kek1ch/Kek1ch | fa545ac1c261c20639ba7a7119ccd7aa4aaacbdc | [
"Apache-2.0"
] | null | null | null | garrysmod/gamemodes/darkrp/plugins/anomalies/sh_plugin.lua | Kek1ch/Kek1ch | fa545ac1c261c20639ba7a7119ccd7aa4aaacbdc | [
"Apache-2.0"
] | 6 | 2019-06-15T08:33:15.000Z | 2020-10-25T07:50:32.000Z | local PLUGIN = PLUGIN
PLUGIN.name = "ANOMS"
PLUGIN.author = "Kek1ch&WickedRabbit"
PLUGIN.desc = "Sample text"
nut.util.include("sv_plugin.lua")
| 18.25 | 37 | 0.739726 |
2c5784109944beece4969dfd149b7e4707b326f3 | 2,598 | py | Python | backend/projects/models.py | singsaker/intern | 9376732c6d537f46443ad43afa51e82df2005da8 | [
"MIT"
] | 4 | 2021-10-06T19:09:12.000Z | 2022-03-28T12:14:42.000Z | backend/projects/models.py | singsaker/intern | 9376732c6d537f46443ad43afa51e82df2005da8 | [
"MIT"
] | 2 | 2021-11-30T16:07:05.000Z | 2022-02-17T23:57:00.000Z | backend/projects/models.py | singsaker/intern | 9376732c6d537f46443ad43afa51e82df2005da8 | [
"MIT"
] | null | null | null | from datetime import timedelta
from django.db import models
from members.models import Member
class ProjectCategory(models.Model):
name = models.CharField(max_length=20)
def __str__(self) -> str:
return self.name
class Meta:
verbose_name_plural = "Project Categories"
class Project(mod... | 29.862069 | 106 | 0.699384 |
3a586cfbe740f420f8067fcdee51d16db65a7a25 | 639 | dart | Dart | lib/utils.dart | chaangliu/hybrid_stack_manager | cad3a18da9e1d5738e6bb7fd0788b73c5a3d52ab | [
"MIT"
] | 8 | 2019-02-18T01:31:48.000Z | 2021-02-23T10:32:08.000Z | lib/utils.dart | chaangliu/hybrid_stack_manager | cad3a18da9e1d5738e6bb7fd0788b73c5a3d52ab | [
"MIT"
] | null | null | null | lib/utils.dart | chaangliu/hybrid_stack_manager | cad3a18da9e1d5738e6bb7fd0788b73c5a3d52ab | [
"MIT"
] | 2 | 2019-03-06T07:45:33.000Z | 2021-02-23T10:32:09.000Z | class Utils extends Object {
static int baseId = 100;
static String pageNameSeperatorToken = "_";
static String lastGeneratedPageName = "";
static int generatePrimaryPageId() {
return baseId++;
}
static Map parseUniquePageName(String pageName) {
List components = pageName.split(pageNameSeperatorTo... | 30.428571 | 107 | 0.719875 |
ba2928c411e1656a3d35fd5494bbbe21665e5cfb | 647 | go | Go | pkg/ast/create_am_stmt_fingerprint.go | elliotcourant/melogale | 113bf14e67ca26912502283546c35ddea1a1a57b | [
"Apache-2.0"
] | null | null | null | pkg/ast/create_am_stmt_fingerprint.go | elliotcourant/melogale | 113bf14e67ca26912502283546c35ddea1a1a57b | [
"Apache-2.0"
] | null | null | null | pkg/ast/create_am_stmt_fingerprint.go | elliotcourant/melogale | 113bf14e67ca26912502283546c35ddea1a1a57b | [
"Apache-2.0"
] | null | null | null | // Auto-generated - DO NOT EDIT
package ast
func (node CreateAmStmt) Fingerprint(ctx FingerprintContext, parentNode Node, parentFieldName string) {
ctx.WriteString("CreateAmStmt")
if node.Amname != nil {
ctx.WriteString("amname")
ctx.WriteString(*node.Amname)
}
if node.Amtype != 0 {
ctx.WriteString("amtyp... | 20.870968 | 103 | 0.698609 |
dbeeab76c79737251daee3ce569fd076fb94dba8 | 1,175 | php | PHP | full-testimonial-loop.php | TagTheAgency/leadgrowth-wp | 28b7743033a4083c877a16cbbe02f5c16375c992 | [
"MIT"
] | null | null | null | full-testimonial-loop.php | TagTheAgency/leadgrowth-wp | 28b7743033a4083c877a16cbbe02f5c16375c992 | [
"MIT"
] | null | null | null | full-testimonial-loop.php | TagTheAgency/leadgrowth-wp | 28b7743033a4083c877a16cbbe02f5c16375c992 | [
"MIT"
] | null | null | null | <?php $args = array('post_type' => 'testimonial'); ?>
<?php $loop = new WP_query($args); ?>
<?php if ($loop->have_posts()):?>
<div class="container-fluid py-5">
<div class="container shadow-me">
<div class="row text-primary justify-content-center">
<div class="col-auto mb-3">
<h2>Testimonies</h2>
</d... | 34.558824 | 154 | 0.590638 |
b2ca46aa94925d1f7e0bb585a392cfe0793b7c45 | 7,665 | css | CSS | public/assets/themes/site/default/css/dev/fans.css | 253033688/bbs-laravel | d88ccee6fb62cd115dd9b788b51afa457cc95f82 | [
"MIT"
] | null | null | null | public/assets/themes/site/default/css/dev/fans.css | 253033688/bbs-laravel | d88ccee6fb62cd115dd9b788b51afa457cc95f82 | [
"MIT"
] | null | null | null | public/assets/themes/site/default/css/dev/fans.css | 253033688/bbs-laravel | d88ccee6fb62cd115dd9b788b51afa457cc95f82 | [
"MIT"
] | null | null | null | /*#
===================
@explain: 关注/粉丝/找人/访问脚印
@copyright: Copyright 2012,phpwind.com
@author: longwenid@gmail.com
$Id: fans.css 24448 2013-01-30 09:31:12Z yanchixia $
===================
#*/
/*
===================
粉丝关注列表
===================
*/
.fans_page{
}
.fans_list{
padding:15px 0;
}
.fans_list dl{
border-bot... | 16.308511 | 116 | 0.651533 |
d65b82fddc7ad4f9ef255f97fe1ad2d75e33523a | 301 | lua | Lua | examples/Environment/Skybox/main.lua | jmiskovic/lovr-docs | e16422b8a5f08e4e837c551ff5b648cde43828ec | [
"CC0-1.0"
] | 32 | 2017-01-13T23:15:10.000Z | 2022-02-12T11:36:53.000Z | examples/Environment/Skybox/main.lua | jmiskovic/lovr-docs | e16422b8a5f08e4e837c551ff5b648cde43828ec | [
"CC0-1.0"
] | 55 | 2017-11-22T07:34:49.000Z | 2022-03-14T19:24:51.000Z | examples/Environment/Skybox/main.lua | jmiskovic/lovr-docs | e16422b8a5f08e4e837c551ff5b648cde43828ec | [
"CC0-1.0"
] | 25 | 2017-10-06T21:57:27.000Z | 2022-03-14T19:17:19.000Z | -- Texture from Humus (www.humus.name)
function lovr.load()
cube = lovr.graphics.newTexture({
left = 'negx.jpg',
right = 'posx.jpg',
top = 'posy.jpg',
bottom = 'negy.jpg',
front = 'negz.jpg',
back = 'posz.jpg'
})
end
function lovr.draw()
lovr.graphics.skybox(cube)
end
| 17.705882 | 38 | 0.607973 |
7418342eb8b9b0dbe1a7451e3e9660d5ef9ddf30 | 919 | css | CSS | Section grid 3/style.css | LucasEduardoGoncalves/FlexBox | f8919a825d23254ca97abf27b3f2ca64232c51b6 | [
"MIT"
] | null | null | null | Section grid 3/style.css | LucasEduardoGoncalves/FlexBox | f8919a825d23254ca97abf27b3f2ca64232c51b6 | [
"MIT"
] | null | null | null | Section grid 3/style.css | LucasEduardoGoncalves/FlexBox | f8919a825d23254ca97abf27b3f2ca64232c51b6 | [
"MIT"
] | null | null | null | body,ul,li,p{
margin: 0px;
padding: 0px;
list-style: none;
font-size: 1.2rem;
font-family: arial;
}
a{
text-decoration: none;
color: white;
}
img{
max-width: 100%;
display: block;
}
header{
background-color: #1d1e20;
display: flex;
justify-content: space-between;
fl... | 14.138462 | 35 | 0.571273 |
1708f057a3406aec0b2018d089dbf51d149e6051 | 14,307 | cs | C# | Program.cs | dichternebel/recent-followers-for-obs | 8eaf89378dd05a902d7191c50c6b76cc639a4380 | [
"MIT"
] | null | null | null | Program.cs | dichternebel/recent-followers-for-obs | 8eaf89378dd05a902d7191c50c6b76cc639a4380 | [
"MIT"
] | null | null | null | Program.cs | dichternebel/recent-followers-for-obs | 8eaf89378dd05a902d7191c50c6b76cc639a4380 | [
"MIT"
] | null | null | null | using System;
using System.Configuration;
using System.Diagnostics;
using System.IO;
using System.IO.Compression;
using System.Net;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
using CliWrap;
using CliWrap.Buffered;
using Serilog;
using SixLabors.ImageSharp;
using SixLabors.ImageSharp... | 37.161039 | 220 | 0.572167 |
a33b081f08dc6d284048281aa7737e054ddacea4 | 519 | h | C | extra/logParser/qtWidgetLogParser/startupdialog.h | MickaelF/PTTK | 94683004927ac7127639578dededdca1132ce034 | [
"MIT"
] | null | null | null | extra/logParser/qtWidgetLogParser/startupdialog.h | MickaelF/PTTK | 94683004927ac7127639578dededdca1132ce034 | [
"MIT"
] | null | null | null | extra/logParser/qtWidgetLogParser/startupdialog.h | MickaelF/PTTK | 94683004927ac7127639578dededdca1132ce034 | [
"MIT"
] | null | null | null | #pragma once
#include <QDialog>
#include "ui_StartUpDialog.h"
class StartUpDialog : public QDialog, public Ui_StartUpDialog
{
Q_OBJECT
public:
explicit StartUpDialog(QWidget* parent = nullptr);
const QString& pathOpened() const { return m_pathOpened; }
void updateRecentComboBox(const QStringList& rec... | 20.76 | 62 | 0.736031 |
1f5f8adb8fa0b8821917906013fdb6760beab916 | 11,127 | cs | C# | Source/CurrencyCloud.Tests/ReportRequestsTest.cs | MrZoidberg/currencycloud-net | a12d3ad0e6d88f44cdd1ac05df33eaa382e2d653 | [
"MIT"
] | null | null | null | Source/CurrencyCloud.Tests/ReportRequestsTest.cs | MrZoidberg/currencycloud-net | a12d3ad0e6d88f44cdd1ac05df33eaa382e2d653 | [
"MIT"
] | null | null | null | Source/CurrencyCloud.Tests/ReportRequestsTest.cs | MrZoidberg/currencycloud-net | a12d3ad0e6d88f44cdd1ac05df33eaa382e2d653 | [
"MIT"
] | null | null | null | using NUnit.Framework;
using CurrencyCloud.Tests.Mock.Data;
using CurrencyCloud.Entity.Pagination;
using CurrencyCloud.Tests.Mock.Http;
using CurrencyCloud.Environment;
using System.Threading.Tasks;
using CurrencyCloud.Entity;
namespace CurrencyCloud.Tests
{
[TestFixture]
public class ReportRequestsTest
{
... | 46.949367 | 109 | 0.65768 |
8d938b4ef54b362c2c4c35e1b56afe4c97326b99 | 172 | js | JavaScript | generators/plopfile.js | PiperGuy/PiperGuy.github.io | 50bcdc2aa25db4f11fb1057d598ea336b9d1440a | [
"MIT"
] | 1 | 2022-02-02T07:44:54.000Z | 2022-02-02T07:44:54.000Z | generators/plopfile.js | PiperGuy/PiperGuy.github.io | 50bcdc2aa25db4f11fb1057d598ea336b9d1440a | [
"MIT"
] | 12 | 2022-01-27T10:41:12.000Z | 2022-02-02T07:41:24.000Z | generators/plopfile.js | PiperGuy/PiperGuy.github.io | 50bcdc2aa25db4f11fb1057d598ea336b9d1440a | [
"MIT"
] | null | null | null | const { component } = require('./settings')
module.exports = function (plop) {
plop.setDefaultInclude({generators: true})
plop.setGenerator('component', component)
}
| 24.571429 | 44 | 0.715116 |
11f6151b5f754854d40c13f52f4115a1f803c660 | 4,914 | go | Go | client/architect/delete_architect_prompt_parameters.go | freman/genesysapi | 34903e753622403b4576784f7ea7186443d71c91 | [
"MIT"
] | null | null | null | client/architect/delete_architect_prompt_parameters.go | freman/genesysapi | 34903e753622403b4576784f7ea7186443d71c91 | [
"MIT"
] | null | null | null | client/architect/delete_architect_prompt_parameters.go | freman/genesysapi | 34903e753622403b4576784f7ea7186443d71c91 | [
"MIT"
] | null | null | null | // Code generated by go-swagger; DO NOT EDIT.
package architect
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"context"
"net/http"
"time"
"github.com/go-openapi/errors"
"github.com/go-openapi/runtime"
cr "github.co... | 29.076923 | 106 | 0.7849 |
a3494ab7590b2a866fb297ef32a62c4717d3b97f | 34,227 | java | Java | plugin/src/main/java/com/intellij/spring/model/SpringUtils.java | consulo/consulo-spring | a9b2663ebf2f5ff6951a5fcce56b61544382080b | [
"Apache-2.0"
] | 1 | 2018-03-08T16:14:44.000Z | 2018-03-08T16:14:44.000Z | plugin/src/main/java/com/intellij/spring/model/SpringUtils.java | consulo/consulo-spring | a9b2663ebf2f5ff6951a5fcce56b61544382080b | [
"Apache-2.0"
] | 1 | 2020-11-15T10:06:43.000Z | 2020-11-15T10:06:43.000Z | plugin/src/main/java/com/intellij/spring/model/SpringUtils.java | consulo/consulo-spring | a9b2663ebf2f5ff6951a5fcce56b61544382080b | [
"Apache-2.0"
] | 1 | 2018-03-08T16:15:04.000Z | 2018-03-08T16:15:04.000Z | /*
* Copyright 2000-2009 JetBrains s.r.o.
*
* 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... | 39.614583 | 157 | 0.71838 |
ca83054f02316881ccb193c2423442f57748a12c | 2,125 | cs | C# | test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/internal/XamlBinding/TSDeviceInfo.cs | lavataste/TizenFX | 3fc9512605edf181efeaabfece170fe97fe51e9e | [
"Apache-2.0",
"MIT"
] | 149 | 2018-01-01T19:10:14.000Z | 2022-03-03T07:38:55.000Z | test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/internal/XamlBinding/TSDeviceInfo.cs | lavataste/TizenFX | 3fc9512605edf181efeaabfece170fe97fe51e9e | [
"Apache-2.0",
"MIT"
] | 2,078 | 2017-12-27T05:26:36.000Z | 2022-03-31T10:49:53.000Z | test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/internal/XamlBinding/TSDeviceInfo.cs | lavataste/TizenFX | 3fc9512605edf181efeaabfece170fe97fe51e9e | [
"Apache-2.0",
"MIT"
] | 394 | 2017-12-26T06:29:51.000Z | 2022-03-29T03:16:35.000Z | using global::System;
using NUnit.Framework;
using NUnit.Framework.TUnit;
using Tizen.NUI.Components;
using Tizen.NUI.BaseComponents;
using System.Reflection;
using System.Collections.Generic;
using Tizen.NUI.Binding;
namespace Tizen.NUI.Devel.Tests
{
using tlog = Tizen.Log;
[TestFixture]
[Description("i... | 31.716418 | 106 | 0.628706 |
dfd8e7214b996aebd843cb90b21367db149deab2 | 2,823 | cs | C# | Sonic 2D/Assets/Sprites/PhysicsObject.cs | Otterlord/Sonic-Engine-Unity2D | 33c2fcd49a6412c814c8d89caccc5478b641418a | [
"MIT"
] | 1 | 2021-08-06T23:34:25.000Z | 2021-08-06T23:34:25.000Z | Sonic 2D/Assets/Sprites/PhysicsObject.cs | Otterlord/Sonic-Engine-Unity2D | 33c2fcd49a6412c814c8d89caccc5478b641418a | [
"MIT"
] | 1 | 2018-08-20T01:35:44.000Z | 2018-08-20T01:35:44.000Z | Sonic 2D/Assets/Sprites/PhysicsObject.cs | Otterlord/Sonic-Engine-Unity2D | 33c2fcd49a6412c814c8d89caccc5478b641418a | [
"MIT"
] | null | null | null | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PhysicsObject : MonoBehaviour {
protected Vector2 velocity;
protected Vector2 target;
protected Vector2 targetV;
protected Rigidbody2D rb;
public float grv = 9.8f;
protected bool grounded = false;
... | 29.715789 | 92 | 0.57492 |
dc34aa9831dae50d5bc5ba897a9d612c2c983ff1 | 170 | tsx | TypeScript | src/pages/index.tsx | tsmvision/nextjs-typescript-jest-enzyme-template | 00a1e46cc46e9168f28ad1f1e83d929f46ccfa83 | [
"Apache-2.0"
] | null | null | null | src/pages/index.tsx | tsmvision/nextjs-typescript-jest-enzyme-template | 00a1e46cc46e9168f28ad1f1e83d929f46ccfa83 | [
"Apache-2.0"
] | null | null | null | src/pages/index.tsx | tsmvision/nextjs-typescript-jest-enzyme-template | 00a1e46cc46e9168f28ad1f1e83d929f46ccfa83 | [
"Apache-2.0"
] | null | null | null | import React from 'react';
const HomePage = () => {
return (
<div>
<h1>Welcome to Next.js</h1>
</div>
);
};
export default HomePage; | 15.454545 | 39 | 0.5 |
744fbb665aad6895ac6c412ea664df9919159514 | 245 | h | C | examples/demo_common/ProcedureLoader.h | rafael-radkowski/TrackingExpert- | 007310637e1582d9623e518510d5d9eccaa23c2c | [
"MIT"
] | 26 | 2020-02-28T06:20:36.000Z | 2021-12-09T09:52:06.000Z | examples/demo_common/ProcedureLoader.h | rafael-radkowski/TrackingExpert- | 007310637e1582d9623e518510d5d9eccaa23c2c | [
"MIT"
] | 6 | 2020-02-19T15:04:27.000Z | 2021-08-15T20:32:08.000Z | examples/demo_common/ProcedureLoader.h | rafael-radkowski/TrackingExpert- | 007310637e1582d9623e518510d5d9eccaa23c2c | [
"MIT"
] | 5 | 2020-07-09T18:58:34.000Z | 2021-08-16T00:40:06.000Z | #pragma once
/*!
*/
#include <string>
#include <stdio.h>
#include <iostream>
#include <opencv2/core.hpp>
#include "Procedure.h"
class ProcedureLoader
{
public:
static bool loadProcedure(const std::string& path, Procedure& _procedure);
}; | 12.894737 | 75 | 0.714286 |
a3b0c1fd4ca4b41ca1e6d0866650784b39e8a4e8 | 248 | ts | TypeScript | scripts/fmt.ts | littledivy/webview_deno | 2977bb9abf4bf651cb47b14e7bb291c14bea10d2 | [
"MIT"
] | 702 | 2020-06-14T15:21:25.000Z | 2022-03-29T13:12:40.000Z | scripts/fmt.ts | littledivy/webview_deno | 2977bb9abf4bf651cb47b14e7bb291c14bea10d2 | [
"MIT"
] | 72 | 2020-06-16T08:07:31.000Z | 2022-03-31T15:51:06.000Z | scripts/fmt.ts | littledivy/webview_deno | 2977bb9abf4bf651cb47b14e7bb291c14bea10d2 | [
"MIT"
] | 42 | 2020-06-18T11:30:13.000Z | 2022-03-25T21:09:58.000Z | import { requires, run } from "./_util.ts";
export async function fmt() {
await requires("cargo", "deno");
await run("formatting rust", ["cargo", "fmt"]);
await run("formatting deno", ["deno", "fmt"]);
}
if (import.meta.main) {
fmt();
}
| 19.076923 | 49 | 0.604839 |
beb77647689e48643d125ad391def3f50c311c7d | 3,038 | ts | TypeScript | src/api/types.ts | YoungProducer/zno-client | 5bc752f2523a071fd2ab2036606d688342c92e7a | [
"MIT"
] | null | null | null | src/api/types.ts | YoungProducer/zno-client | 5bc752f2523a071fd2ab2036606d688342c92e7a | [
"MIT"
] | 3 | 2021-03-10T19:54:39.000Z | 2022-02-27T05:30:50.000Z | src/api/types.ts | YoungProducer/zno-client | 5bc752f2523a071fd2ab2036606d688342c92e7a | [
"MIT"
] | null | null | null | /**
* Created by: Oleksandr Bezrukov
* Creation date: 26 February 2020
*
* Declare main interfaces related to API.
*/
// External imports
import { AxiosResponse, AxiosInstance } from 'axios';
export interface ISignUpCredentials {
email: string;
password: string;
}
export interface ISignInCredentials {
... | 24.5 | 118 | 0.683673 |
d16625e6c47e9a275c902c79bc99b20dd073a382 | 3,002 | rs | Rust | devtools/src/codegen/m2x4hd/mod.rs | jpattWPC/minidsp-rs | d10961cb47ee3ca26d0407480c9f5596d529165b | [
"Apache-2.0"
] | 43 | 2021-01-05T14:18:01.000Z | 2022-03-25T11:55:27.000Z | devtools/src/codegen/m2x4hd/mod.rs | jpattWPC/minidsp-rs | d10961cb47ee3ca26d0407480c9f5596d529165b | [
"Apache-2.0"
] | 271 | 2021-01-09T15:50:30.000Z | 2022-03-28T10:10:35.000Z | devtools/src/codegen/m2x4hd/mod.rs | jpattWPC/minidsp-rs | d10961cb47ee3ca26d0407480c9f5596d529165b | [
"Apache-2.0"
] | 7 | 2021-04-09T09:48:50.000Z | 2022-02-25T05:03:09.000Z | use bimap::BiHashMap;
use minidsp::formats::xml_config::Setting;
use strong_xml::XmlRead;
use super::spec::*;
pub struct Target {}
impl crate::Target for Target {
fn filename() -> &'static str {
"m2x4hd.rs"
}
fn symbols() -> bimap::BiMap<String, usize> {
symbols()
}
fn device() -... | 30.02 | 81 | 0.517988 |
b7176c107b4c4c326de6c7ac47392a995897d323 | 9,801 | hpp | C++ | include/mflib/waveformTemplate.hpp | uofuseismo/mflib | 14695f62082d28d4cc5603bb6edcaf1efe9dd980 | [
"MIT"
] | 5 | 2019-12-06T21:14:17.000Z | 2021-09-21T03:36:58.000Z | include/mflib/waveformTemplate.hpp | uofuseismo/mflib | 14695f62082d28d4cc5603bb6edcaf1efe9dd980 | [
"MIT"
] | 5 | 2019-11-27T19:06:06.000Z | 2020-04-24T19:07:44.000Z | include/mflib/waveformTemplate.hpp | uofuseismo/mflib | 14695f62082d28d4cc5603bb6edcaf1efe9dd980 | [
"MIT"
] | 2 | 2021-09-09T11:15:50.000Z | 2021-12-04T00:50:53.000Z | #ifndef MFLIB_WAVEFORMTEMPLATE_HPP
#define MFLIB_WAVEFORMTEMPLATE_HPP
#include <memory>
#include "mflib/enums.hpp"
namespace MFLib
{
class NetworkStationPhase;
/*!
* @brief Defines a waveform template.
* @copyright Ben Baker (University of Utah) distributed under the MIT license.
*/
class WaveformTemplate
{
public:
... | 35.255396 | 84 | 0.605755 |
6510c23e2fa1df889de4f68f508c805421170861 | 1,402 | rb | Ruby | lib/fog/openstack/requests/compute/list_volumes.rb | madebymany/fog | fedd31d89594e96f0617dfbd9cb819a014b45821 | [
"Unlicense",
"MIT"
] | 2 | 2015-06-02T17:14:30.000Z | 2015-11-05T01:29:06.000Z | lib/fog/openstack/requests/compute/list_volumes.rb | madebymany/fog | fedd31d89594e96f0617dfbd9cb819a014b45821 | [
"Unlicense",
"MIT"
] | null | null | null | lib/fog/openstack/requests/compute/list_volumes.rb | madebymany/fog | fedd31d89594e96f0617dfbd9cb819a014b45821 | [
"Unlicense",
"MIT"
] | null | null | null | module Fog
module Compute
class OpenStack
class Real
def list_volumes(detailed=true)
path = detailed ? 'os-volumes/detail' : 'os-volumes'
request(
:expects => 200,
:method => 'GET',
:path => path
)
end
end
... | 26.961538 | 62 | 0.424394 |
a352138d4a2edc695c04ea6cee16e71c57ce305f | 2,180 | ts | TypeScript | packages/commons/interfaces/models/content/media/Media.ts | nicoanders/shopware-pwa | 6b4ed692c5682e69ce039b8b585cd223955b2184 | [
"MIT"
] | 163 | 2019-09-26T10:59:51.000Z | 2020-12-12T09:58:06.000Z | packages/commons/interfaces/models/content/media/Media.ts | nicoanders/shopware-pwa | 6b4ed692c5682e69ce039b8b585cd223955b2184 | [
"MIT"
] | 1,242 | 2019-09-26T10:51:42.000Z | 2020-12-14T20:53:56.000Z | packages/commons/interfaces/models/content/media/Media.ts | nicoanders/shopware-pwa | 6b4ed692c5682e69ce039b8b585cd223955b2184 | [
"MIT"
] | 55 | 2021-01-10T22:32:18.000Z | 2022-03-26T18:09:12.000Z | import { MediaType } from "./MediaType";
import { MediaTranslation } from "./MediaTranslation";
import { Category } from "../category/Category";
import { ProductMedia } from "../product/ProductMedia";
import { MediaThumbnail } from "./MediaThumbnail";
import { MediaFolder } from "./MediaFolder";
import { PropertyGroupO... | 36.949153 | 80 | 0.711927 |
7d739f7fba5efcee35e735ca7c2267dc2dc64d3b | 1,931 | rs | Rust | parse-macros/src/parse_type_item.rs | yvt/rust-parse-generics | 48248a2de844772c0fd76cbaa24492e4dfc146af | [
"MIT"
] | 15 | 2016-04-30T08:52:29.000Z | 2020-12-30T18:36:54.000Z | parse-macros/src/parse_type_item.rs | yvt/rust-parse-generics | 48248a2de844772c0fd76cbaa24492e4dfc146af | [
"MIT"
] | 3 | 2016-07-30T09:57:32.000Z | 2018-05-02T17:11:50.000Z | parse-macros/src/parse_type_item.rs | yvt/rust-parse-generics | 48248a2de844772c0fd76cbaa24492e4dfc146af | [
"MIT"
] | 3 | 2017-04-05T16:51:50.000Z | 2021-03-28T18:21:59.000Z | /*
Copyright ⓒ 2016 rust-custom-derive contributors.
Licensed under the MIT license (see LICENSE or <http://opensource.org
/licenses/MIT>) or the Apache License, Version 2.0 (see LICENSE of
<http://www.apache.org/licenses/LICENSE-2.0>), at your option. All
files in the project carrying such notice may not be copied, m... | 25.407895 | 70 | 0.449508 |
bc2cacbec3ea14cd83ca3ddb86c2ef24c0ce9107 | 2,537 | lua | Lua | rayyy.lua | xVoid-xyz/Roblox-Scripts | 7eb176fa654f2ea5fbc6bcccced1b15df7ed82c2 | [
"BSD-3-Clause"
] | 70 | 2021-02-09T17:21:32.000Z | 2022-03-28T12:41:42.000Z | rayyy.lua | xVoid-xyz/Roblox-Scripts | 7eb176fa654f2ea5fbc6bcccced1b15df7ed82c2 | [
"BSD-3-Clause"
] | 4 | 2021-08-19T22:05:58.000Z | 2022-03-19T18:58:01.000Z | rayyy.lua | xVoid-xyz/Roblox-Scripts | 7eb176fa654f2ea5fbc6bcccced1b15df7ed82c2 | [
"BSD-3-Clause"
] | 325 | 2021-02-26T22:23:41.000Z | 2022-03-31T19:36:12.000Z | me = game.Players.xSoulStealerx
if script.Parent.className ~= "HopperBin" then
h = Instance.new("HopperBin")
h.Parent = me.Backpack
h.Name = "RayCast"
script.Parent = h
end
bin = script.Parent
function GetPhysicsChildren(path)
local objects = {}
for _, children in pairs(path:GetChildren()) do
if children.classNam... | 28.829545 | 228 | 0.717383 |