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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5d6de6ff03ea4e48c23109b4857d7e6d2a989d08 | 50 | sql | SQL | resources/migrations/201911180000164-create-index-idx_form_template_prompt_sort.down.sql | jaydeesimon/vetd-app | d431e9e71de649102ce8a17a30a1041f90496787 | [
"MIT"
] | 98 | 2020-02-05T21:17:40.000Z | 2022-03-03T19:40:24.000Z | resources/migrations/201911180000164-create-index-idx_form_template_prompt_sort.down.sql | jaydeesimon/vetd-app | d431e9e71de649102ce8a17a30a1041f90496787 | [
"MIT"
] | 2 | 2020-02-06T19:15:38.000Z | 2020-02-09T17:45:00.000Z | resources/migrations/201911180000164-create-index-idx_form_template_prompt_sort.down.sql | jaydeesimon/vetd-app | d431e9e71de649102ce8a17a30a1041f90496787 | [
"MIT"
] | 19 | 2020-02-06T02:26:12.000Z | 2022-02-11T19:43:16.000Z | DROP INDEX IF EXISTS idx_form_template_prompt_sort | 50 | 50 | 0.92 |
fc8014ed4b9355c17a2cd5c2c556318da9052c46 | 5,603 | dart | Dart | lib/views/booking/components/slot_list.dart | RyzAnugrah/parking_u | b6d1f3727cb975613992096c5d4564ef905d8e3c | [
"MIT"
] | null | null | null | lib/views/booking/components/slot_list.dart | RyzAnugrah/parking_u | b6d1f3727cb975613992096c5d4564ef905d8e3c | [
"MIT"
] | null | null | null | lib/views/booking/components/slot_list.dart | RyzAnugrah/parking_u | b6d1f3727cb975613992096c5d4564ef905d8e3c | [
"MIT"
] | null | null | null | import 'package:flutter/material.dart';
import 'package:parking_u/models/parkir_model.dart';
import 'package:sizer/sizer.dart';
import 'package:parking_u/constants.dart';
import 'package:parking_u/size_config.dart';
class SlotList extends StatefulWidget {
final ParkirModel item;
const SlotList({Key key, this.item... | 30.785714 | 68 | 0.499732 |
f41a6268d0f10c0ade8e5df2406623c6d124c9e0 | 1,192 | dart | Dart | lib/cryptography.dart | itMcdull/gl_cryptography | 1bd3f97229ca9ba1f5fa83f29fc89f87f5ef02b3 | [
"Apache-2.0"
] | null | null | null | lib/cryptography.dart | itMcdull/gl_cryptography | 1bd3f97229ca9ba1f5fa83f29fc89f87f5ef02b3 | [
"Apache-2.0"
] | null | null | null | lib/cryptography.dart | itMcdull/gl_cryptography | 1bd3f97229ca9ba1f5fa83f29fc89f87f5ef02b3 | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 Gohilla (opensource@gohilla.com).
//
// 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 la... | 39.733333 | 75 | 0.78104 |
3a3069240fee96d573aba309e145ba64777d0faa | 2,347 | lua | Lua | Themes/_fallback/BGAnimations/ScreenPlayerOptions overlay.lua | kangalioo/etterna | 11630aa1c23bad46b2da993602b06f8b659a4961 | [
"MIT"
] | 1 | 2020-11-09T21:58:28.000Z | 2020-11-09T21:58:28.000Z | Themes/_fallback/BGAnimations/ScreenPlayerOptions overlay.lua | kangalioo/etterna | 11630aa1c23bad46b2da993602b06f8b659a4961 | [
"MIT"
] | null | null | null | Themes/_fallback/BGAnimations/ScreenPlayerOptions overlay.lua | kangalioo/etterna | 11630aa1c23bad46b2da993602b06f8b659a4961 | [
"MIT"
] | null | null | null | local t = Def.ActorFrame {}
local NSPreviewSize = 0.5
local NSPreviewX = 35
local NSPreviewY = 125
local NSPreviewXSpan = 35
local NSPreviewReceptorY = -30
local OptionRowHeight = 35
local NoteskinRow = 0
function NSkinPreviewWrapper(dir, ele)
return Def.ActorFrame {
InitCommand = function(self)
self:zoom(NSPre... | 24.447917 | 121 | 0.683426 |
6d3f24f7fcc18a388802cfa833f0e2e247098ecd | 1,681 | ts | TypeScript | src/app/services/supabase.service.ts | flozim/cosTask | 09d32e3487e8132d1dac99669450f34b6ead4eda | [
"MIT"
] | null | null | null | src/app/services/supabase.service.ts | flozim/cosTask | 09d32e3487e8132d1dac99669450f34b6ead4eda | [
"MIT"
] | null | null | null | src/app/services/supabase.service.ts | flozim/cosTask | 09d32e3487e8132d1dac99669450f34b6ead4eda | [
"MIT"
] | null | null | null | import { createClient, SupabaseClient } from "@supabase/supabase-js";
import { from } from "rxjs/internal/observable/from";
import { environment } from "src/environments/environment";
import { map, tap } from "rxjs/operators";
import { Observable } from "rxjs";
import { Injectable } from "@angular/core";
import { AppIm... | 27.112903 | 93 | 0.577037 |
fa1d427f4907498834b2f85ae3fa22c683432fd1 | 7,916 | cpp | C++ | CodeSnippets/rotateMatrix.cpp | Teabeans/CPP_Learn | a767dd323d67fab5c2baffb5aa6dd3f1e6baa35a | [
"MIT"
] | 1 | 2019-01-31T23:42:59.000Z | 2019-01-31T23:42:59.000Z | CodeSnippets/rotateMatrix.cpp | Teabeans/CPP_Learn | a767dd323d67fab5c2baffb5aa6dd3f1e6baa35a | [
"MIT"
] | null | null | null | CodeSnippets/rotateMatrix.cpp | Teabeans/CPP_Learn | a767dd323d67fab5c2baffb5aa6dd3f1e6baa35a | [
"MIT"
] | 1 | 2020-03-04T18:09:15.000Z | 2020-03-04T18:09:15.000Z | //-----------------------------------------------------------------------------|
// Authorship
//-----------------------------------------------------------------------------|
//
// Tim Lum
// twhlum@gmail.com
// Created: 2018.07.15
// Modified: 2018.08.22
//
/*
1.7 - RotateMatrix() - P.91
Given an image represented ... | 28.681159 | 84 | 0.457302 |
fcb283a0a809671056f8f52d259da81c9f5b8372 | 1,180 | dart | Dart | lib/main.dart | Clashkid155/Dspace | 91029af7bfb74336524a53c9a6adb1524a79b2b2 | [
"MIT"
] | null | null | null | lib/main.dart | Clashkid155/Dspace | 91029af7bfb74336524a53c9a6adb1524a79b2b2 | [
"MIT"
] | null | null | null | lib/main.dart | Clashkid155/Dspace | 91029af7bfb74336524a53c9a6adb1524a79b2b2 | [
"MIT"
] | null | null | null | import 'package:dspace/widgets/tab.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'function/functions.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
@override
State<MyApp> createSt... | 22.264151 | 82 | 0.621186 |
ec6cf7fef367cce3a79d91a341e17037e6731435 | 327 | sql | SQL | tests/feature/db_backup.sql | muzk6/sparrow | 7c92f9b6ec065a7dd1994ba0793fe10dd8c6b2df | [
"MIT"
] | 5 | 2020-01-14T17:40:11.000Z | 2020-10-12T01:41:52.000Z | tests/feature/db_backup.sql | muzk6/sparrow | 7c92f9b6ec065a7dd1994ba0793fe10dd8c6b2df | [
"MIT"
] | null | null | null | tests/feature/db_backup.sql | muzk6/sparrow | 7c92f9b6ec065a7dd1994ba0793fe10dd8c6b2df | [
"MIT"
] | null | null | null | CREATE DATABASE IF NOT EXISTS `test` /*!40100 DEFAULT CHARACTER SET utf8mb4 */;
USE `test`;
DROP TABLE IF EXISTS `test`;
CREATE TABLE `test` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL DEFAULT '',
`order` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=u... | 32.7 | 79 | 0.697248 |
e2940544dc8f10bcf94059e7b62a94a157f6a4b9 | 698 | js | JavaScript | src/App.js | Formalibus/bochaper | 1f6d9b7f78355438dfa1d6fc931c1c369cf87e6a | [
"CC0-1.0"
] | null | null | null | src/App.js | Formalibus/bochaper | 1f6d9b7f78355438dfa1d6fc931c1c369cf87e6a | [
"CC0-1.0"
] | null | null | null | src/App.js | Formalibus/bochaper | 1f6d9b7f78355438dfa1d6fc931c1c369cf87e6a | [
"CC0-1.0"
] | null | null | null | import { BrowserRouter, HashRouter, Route, Switch } from "react-router-dom";
import Navbar from "./bochaper/Navbar";
import Footer from "./bochaper/Footer";
import Main from "./pages/Main";
import Tabs from "./pages/Tabs";
import Music from "./pages/Music";
function App() {
return (
<BrowserRouter>
<HashRo... | 22.516129 | 76 | 0.528653 |
00429ccac0c2eb21aacba9fa655f94e1021a5389 | 6,055 | sql | SQL | toko.sql | arvitlp/ecom_arvita | 9f760ef024321c21dc5ef5316626d15949d22da6 | [
"MIT"
] | null | null | null | toko.sql | arvitlp/ecom_arvita | 9f760ef024321c21dc5ef5316626d15949d22da6 | [
"MIT"
] | null | null | null | toko.sql | arvitlp/ecom_arvita | 9f760ef024321c21dc5ef5316626d15949d22da6 | [
"MIT"
] | null | null | null | -- phpMyAdmin SQL Dump
-- version 4.8.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 09 Apr 2020 pada 15.54
-- Versi server: 10.1.37-MariaDB
-- Versi PHP: 5.6.40
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHAR... | 28.294393 | 106 | 0.623947 |
e747bdc1bec4ffd07afbbc0ee3f23d9192f5c010 | 1,002 | php | PHP | app/Http/Controllers/Admin/ProductImageController.php | Dejan1990/E-Commerce-App | 939ce6401c20fae9cbb44c1099cbda9159a3c4be | [
"MIT"
] | null | null | null | app/Http/Controllers/Admin/ProductImageController.php | Dejan1990/E-Commerce-App | 939ce6401c20fae9cbb44c1099cbda9159a3c4be | [
"MIT"
] | null | null | null | app/Http/Controllers/Admin/ProductImageController.php | Dejan1990/E-Commerce-App | 939ce6401c20fae9cbb44c1099cbda9159a3c4be | [
"MIT"
] | null | null | null | <?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Models\Product;
use App\Models\ProductImage;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Storage;
class ProductImageController extends Controller
{
public function upload(Request $request)
{
$requ... | 22.266667 | 78 | 0.572854 |
057b730a2f2ed588317f3ad487c59eae9d7949b6 | 3,287 | lua | Lua | lua/prosesitter/linter/lintreq.lua | dvdsk/prosesitter.nvim | fc8b34e6f60ef212bfe7b6e98b64b818d472f36c | [
"MIT"
] | 6 | 2021-11-08T23:43:47.000Z | 2022-03-13T12:43:21.000Z | lua/prosesitter/linter/lintreq.lua | dskleingeld/prosesitter | fc8b34e6f60ef212bfe7b6e98b64b818d472f36c | [
"MIT"
] | 21 | 2021-07-09T16:32:32.000Z | 2021-09-19T17:01:25.000Z | lua/prosesitter/linter/lintreq.lua | dvdsk/prosesitter.nvim | fc8b34e6f60ef212bfe7b6e98b64b818d472f36c | [
"MIT"
] | null | null | null | local log = require("prosesitter/log")
local util = require("prosesitter/util")
local state = require("prosesitter/state")
local api = vim.api
local ns = state.ns_placeholders
local M = {}
M.__index = M -- failed table lookups on the instances should fallback to the class table, to get methods
function M.new()
local ... | 25.091603 | 105 | 0.672041 |
2c8491766b0000c5fc83a77dc8c63fa70a598ad8 | 503 | py | Python | src/vaulthelpers/management/commands/revoke_vault_leases.py | ArroyoDev-LLC/django-vault-helpers | 14777c7a50dc52d5a6be95c094f3b2105488b5db | [
"0BSD"
] | null | null | null | src/vaulthelpers/management/commands/revoke_vault_leases.py | ArroyoDev-LLC/django-vault-helpers | 14777c7a50dc52d5a6be95c094f3b2105488b5db | [
"0BSD"
] | null | null | null | src/vaulthelpers/management/commands/revoke_vault_leases.py | ArroyoDev-LLC/django-vault-helpers | 14777c7a50dc52d5a6be95c094f3b2105488b5db | [
"0BSD"
] | null | null | null | from django.core.management.base import BaseCommand
from vaulthelpers import common
class Command(BaseCommand):
help = 'Revoke the active Vault token and any associated secret leases'
def handle(self, *args, **options):
authenticator = common.get_vault_auth()
if authenticator is None:
... | 33.533333 | 81 | 0.713718 |
c5775c7db57a26d09a7c690d54ae1257a7a9f10e | 116 | css | CSS | BetterTouchToolDocs/styles/website.css | idjevm/BetterTouchTool | 7a53a8401de46b6c7c98f7069a6d08c71f31110b | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | BetterTouchToolDocs/styles/website.css | idjevm/BetterTouchTool | 7a53a8401de46b6c7c98f7069a6d08c71f31110b | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | BetterTouchToolDocs/styles/website.css | idjevm/BetterTouchTool | 7a53a8401de46b6c7c98f7069a6d08c71f31110b | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | .page-inner {
position: relative;
max-width: 1000px;
margin: 0 auto;
padding: 20px 15px 40px 15px;
} | 19.333333 | 33 | 0.62931 |
78f58952c461a5a4bbaf44d5fe59277b0dae4b93 | 2,760 | lua | Lua | Interface/AddOns/Prat-3.0/services/links.lua | swgloomy/Wow-plugin | 187e1e27f2cc3fbe7962d1a0ab00e30b8b06f0da | [
"MIT"
] | null | null | null | Interface/AddOns/Prat-3.0/services/links.lua | swgloomy/Wow-plugin | 187e1e27f2cc3fbe7962d1a0ab00e30b8b06f0da | [
"MIT"
] | null | null | null | Interface/AddOns/Prat-3.0/services/links.lua | swgloomy/Wow-plugin | 187e1e27f2cc3fbe7962d1a0ab00e30b8b06f0da | [
"MIT"
] | null | null | null | ---------------------------------------------------------------------------------
--
-- Prat - A framework for World of Warcraft chat mods
--
-- Copyright (C) 2006-2018 Prat Development Team
--
-- This program is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public Licen... | 26.285714 | 143 | 0.625725 |
da8fd77ab3b627c2473e97d8a92ba1d7cc465b80 | 9,367 | php | PHP | src/Resources/views/Web/Cart/cargo_select.html.php | cagatayy94/symfonyshop.tk | 28027995f773bd88692582826ae84534a0053314 | [
"MIT"
] | null | null | null | src/Resources/views/Web/Cart/cargo_select.html.php | cagatayy94/symfonyshop.tk | 28027995f773bd88692582826ae84534a0053314 | [
"MIT"
] | null | null | null | src/Resources/views/Web/Cart/cargo_select.html.php | cagatayy94/symfonyshop.tk | 28027995f773bd88692582826ae84534a0053314 | [
"MIT"
] | null | null | null | <?php $view->extend('Web/default.html.php'); ?>
<?php $view['slots']->start('body'); ?>
<div role="main" class="main">
<section class="page-header">
<div class="container">
<div class="row">
<div class="col-md-12">
<ul class="breadcrumb... | 55.755952 | 178 | 0.430874 |
30a3f0dee4314b70c7c0d1fb712a87fbc79af188 | 725 | lua | Lua | MMOCoreORB/bin/scripts/mobile/lair/creature_lair/yavin4_tybis_male_neutral_medium_boss_01.lua | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 18 | 2017-02-09T15:36:05.000Z | 2021-12-21T04:22:15.000Z | MMOCoreORB/bin/scripts/mobile/lair/creature_lair/yavin4_tybis_male_neutral_medium_boss_01.lua | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 61 | 2016-12-30T21:51:10.000Z | 2021-12-10T20:25:56.000Z | MMOCoreORB/bin/scripts/mobile/lair/creature_lair/yavin4_tybis_male_neutral_medium_boss_01.lua | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 71 | 2017-01-01T05:34:38.000Z | 2022-03-29T01:04:00.000Z | yavin4_tybis_male_neutral_medium_boss_01 = Lair:new {
mobiles = {{"male_tybis", 1},{"female_tybis", 1}},
bossMobiles = {{"grand_tybis",1}},
spawnLimit = 15,
buildingsVeryEasy = {"object/tangible/lair/base/poi_all_lair_dead_log_large_fog_green.iff"},
buildingsEasy = {"object/tangible/lair/base/poi_all_lair_dead_log... | 55.769231 | 101 | 0.817931 |
18625e60946914d4e97bc4d51a5a56e54b26bf84 | 1,464 | swift | Swift | ChowTown/Models/Meal.swift | jordainfg/ChowTown | 6e05598d53746e83f1669e46fab985d89813f53e | [
"MIT"
] | null | null | null | ChowTown/Models/Meal.swift | jordainfg/ChowTown | 6e05598d53746e83f1669e46fab985d89813f53e | [
"MIT"
] | null | null | null | ChowTown/Models/Meal.swift | jordainfg/ChowTown | 6e05598d53746e83f1669e46fab985d89813f53e | [
"MIT"
] | null | null | null | //
// Meal.swift
// ChowTown
//
// Created by Jordain Gijsbertha on 21/11/2019.
// Copyright © 2019 Jordain Gijsbertha. All rights reserved.
//
import Foundation
public struct Meal{
var companyID : String
var name: String
var detail : String
var price : Double
var about : Array<Int>
va... | 31.826087 | 88 | 0.595628 |
b0594ae49374433f3aa1f3742afab1c61b1b7b74 | 444 | py | Python | py_code/test_0.py | marcoromanelli-github/GreedyFeatureSelection | d8fcba2701422c689e526b6a0f70bb121cca323c | [
"MIT"
] | null | null | null | py_code/test_0.py | marcoromanelli-github/GreedyFeatureSelection | d8fcba2701422c689e526b6a0f70bb121cca323c | [
"MIT"
] | null | null | null | py_code/test_0.py | marcoromanelli-github/GreedyFeatureSelection | d8fcba2701422c689e526b6a0f70bb121cca323c | [
"MIT"
] | null | null | null | import numpy as np
from gfs import PygfsManager
def test0():
feat = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9], [1, 1, 1]])
labels = [1, 3, 4, 5]
gfsMan = PygfsManager(feat, labels, "shannon".encode())
print("Selected features ---> ", gfsMan.greedyAlgorithm(2))
gfsMan = PygfsManager(feat, labels, ... | 24.666667 | 65 | 0.608108 |
4576de23e37082e2dea8e638cef12f85c2f2f63b | 5,442 | py | Python | test/unit2/usersignup/validation_test.py | cdoremus/udacity-python_web_development-cs253 | 87cf5dd5d0e06ee745d3aba058d96fa46f2aeb6b | [
"Apache-2.0"
] | null | null | null | test/unit2/usersignup/validation_test.py | cdoremus/udacity-python_web_development-cs253 | 87cf5dd5d0e06ee745d3aba058d96fa46f2aeb6b | [
"Apache-2.0"
] | null | null | null | test/unit2/usersignup/validation_test.py | cdoremus/udacity-python_web_development-cs253 | 87cf5dd5d0e06ee745d3aba058d96fa46f2aeb6b | [
"Apache-2.0"
] | null | null | null | '''
Created on Apr 25, 2012
@author: h87966
'''
import unittest
from unit2.usersignup.validation import UserSignupValidation
from unit2.usersignup.validation import VERIFICATION_MESSAGES
from unit2.usersignup.validation import VERIFICATION_MESSAGES_KEYS
from unit2.usersignup.validation import MISMATCHED_PASSWORDS_MESS... | 45.35 | 165 | 0.722161 |
cb73f4fefac266ce48b01257841b58df1d8971d8 | 8,637 | h | C | kernel/daoClass.h | kunal/dao | a9b71620cf0e5214f39e6c4b4bdbffbfc65a7348 | [
"BSD-2-Clause"
] | 165 | 2015-01-23T02:09:29.000Z | 2022-02-05T06:20:45.000Z | kernel/daoClass.h | kunal/dao | a9b71620cf0e5214f39e6c4b4bdbffbfc65a7348 | [
"BSD-2-Clause"
] | 220 | 2015-01-01T12:26:07.000Z | 2021-05-31T19:07:50.000Z | kernel/daoClass.h | kunal/dao | a9b71620cf0e5214f39e6c4b4bdbffbfc65a7348 | [
"BSD-2-Clause"
] | 19 | 2015-02-17T19:14:15.000Z | 2021-06-24T09:19:47.000Z | /*
// Dao Virtual Machine
// http://daoscript.org
//
// Copyright (c) 2006-2017, Limin Fu
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the... | 44.066327 | 103 | 0.745977 |
2743032a694c23dbd33561abc63f62bb66670628 | 80 | rb | Ruby | app/models/special_event.rb | Slavkata/hoteldb101 | 3e227224b3e78e53a4aed51cbaa70c50d998531f | [
"MIT"
] | null | null | null | app/models/special_event.rb | Slavkata/hoteldb101 | 3e227224b3e78e53a4aed51cbaa70c50d998531f | [
"MIT"
] | null | null | null | app/models/special_event.rb | Slavkata/hoteldb101 | 3e227224b3e78e53a4aed51cbaa70c50d998531f | [
"MIT"
] | null | null | null | class SpecialEvent < ApplicationRecord
self.table_name = "Special_events"
end
| 20 | 38 | 0.8125 |
8125707948e40e60a21f924207772a55943bff34 | 7,924 | dart | Dart | lib/HomePage.dart | Murali-jha/cpu-scheduler | d12fa41ab56699a49b3a562a830fd00865f784c7 | [
"MIT"
] | null | null | null | lib/HomePage.dart | Murali-jha/cpu-scheduler | d12fa41ab56699a49b3a562a830fd00865f784c7 | [
"MIT"
] | null | null | null | lib/HomePage.dart | Murali-jha/cpu-scheduler | d12fa41ab56699a49b3a562a830fd00865f784c7 | [
"MIT"
] | null | null | null | import 'package:flutter/material.dart';
import 'package:scheduling/drawer.dart';
import 'AlgoApp.dart';
import 'help.dart';
class HomePage extends StatefulWidget {
@override
_HomePageState createState() => _HomePageState();
}
class _HomePageState extends State<HomePage> {
@override
Widget build(BuildContext c... | 56.6 | 1,014 | 0.602726 |
1a74c9294166e6d2c868dddf706d31d842ce797a | 3,038 | py | Python | engine/src/juliabox/plugins/vol_defcfg/defcfg.py | karthiganesh/juliabox | 761d39c7f8f481bdb5bf1dc4011d4e267158e551 | [
"MIT"
] | 50 | 2016-09-09T02:17:09.000Z | 2022-03-15T17:16:20.000Z | engine/src/juliabox/plugins/vol_defcfg/defcfg.py | wsshin/JuliaBox | 395df7654834f9671ab132cd29c02fb05ce42c27 | [
"MIT"
] | 58 | 2016-08-29T19:19:28.000Z | 2018-11-14T01:49:16.000Z | engine/src/juliabox/plugins/vol_defcfg/defcfg.py | wsshin/JuliaBox | 395df7654834f9671ab132cd29c02fb05ce42c27 | [
"MIT"
] | 24 | 2016-09-27T18:20:54.000Z | 2022-01-02T09:37:44.000Z | import os
from juliabox.jbox_util import ensure_delete, make_sure_path_exists, unique_sessname, JBoxCfg
from juliabox.vol import JBoxVol
class JBoxDefaultConfigVol(JBoxVol):
provides = [JBoxVol.JBP_CONFIG]
FS_LOC = None
@staticmethod
def configure():
cfg_location = os.path.expanduser(JBoxCf... | 35.325581 | 98 | 0.691244 |
b057f7c52f6c617ec26be274861241fa5f76df6c | 1,003 | py | Python | run_glm.py | ys7yoo/npglm | 98cc040fff8a861e2d7e210fef049207f1714b2a | [
"MIT"
] | 9 | 2020-11-20T17:43:36.000Z | 2021-02-26T22:18:59.000Z | run_glm.py | ys7yoo/npglm | 98cc040fff8a861e2d7e210fef049207f1714b2a | [
"MIT"
] | 1 | 2021-02-04T13:51:17.000Z | 2021-02-04T23:56:07.000Z | run_glm.py | ys7yoo/npglm | 98cc040fff8a861e2d7e210fef049207f1714b2a | [
"MIT"
] | 1 | 2020-11-22T19:36:35.000Z | 2020-11-22T19:36:35.000Z | from GLM.GLM_Model.Model_Runner import Model_Runner
from Utils import utils, SpikeGen
import torch
def main():
expt = 'expt_supp'
params = utils.Params('GLM/GLM_Params/params.json')
params.torch_d_type = torch.float64
params.gp_filter_plot_path = f"Results_Data/{expt}/data/gp_filter_plot"
params.... | 32.354839 | 81 | 0.702891 |
ef7c8154f6171fac1b8f012260d43a854279d2eb | 24,082 | c | C | xfit/obFileSelect.c | scattering-central/CCP13 | e78440d34d0ac80d2294b131ca17dddcf7505b01 | [
"BSD-3-Clause"
] | null | null | null | xfit/obFileSelect.c | scattering-central/CCP13 | e78440d34d0ac80d2294b131ca17dddcf7505b01 | [
"BSD-3-Clause"
] | null | null | null | xfit/obFileSelect.c | scattering-central/CCP13 | e78440d34d0ac80d2294b131ca17dddcf7505b01 | [
"BSD-3-Clause"
] | 3 | 2017-09-05T15:15:22.000Z | 2021-01-15T11:13:45.000Z |
/*******************************************************************************
obFileSelect.c
Associated Header file: obFileSelect.h
*******************************************************************************/
#include <stdio.h>
#ifdef MOTIF
#include <Xm/Xm.h>
#include <Xm/MwmUtil.h>
#include <Xm/Dial... | 27.397042 | 122 | 0.641309 |
aff1c0eb8b7dc63fa464f39be82ae8945e56c68b | 14,075 | py | Python | tests/test_fpack_field.py | frankurcrazy/fpack | ce2369ec3018b20d79f101ed0b439fd312681472 | [
"BSD-3-Clause"
] | 2 | 2020-08-26T14:16:39.000Z | 2021-01-11T08:43:36.000Z | tests/test_fpack_field.py | frankurcrazy/fpack | ce2369ec3018b20d79f101ed0b439fd312681472 | [
"BSD-3-Clause"
] | 17 | 2021-04-28T06:02:45.000Z | 2022-03-29T18:05:56.000Z | tests/test_fpack_field.py | frankurcrazy/fpack | ce2369ec3018b20d79f101ed0b439fd312681472 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import struct
import unittest
try:
from fpack import *
except ImportError:
import os
import sys
sys.path.append(os.path.abspath(os.path.join(".", "..")))
from fpack import *
class TestField(unittest.TestCase):
def test_not_implemented_methods(self):
field = Fie... | 28.783231 | 96 | 0.590764 |
9762cc19812d32230e130044b3d2ceffb8a48927 | 98 | sql | SQL | pgAdmin/pgadmin4/web/pgadmin/browser/server_groups/servers/pgagent/templates/pga_job/sql/pre3.4/run_now.sql | WeilerWebServices/PostgreSQL | ae594ed077bebbad1be3c1d95c38b7c2c2683e8c | [
"PostgreSQL"
] | 4 | 2019-10-03T21:58:22.000Z | 2021-02-12T13:33:32.000Z | openresty-win32-build/thirdparty/x86/pgsql/pgAdmin 4/web/pgadmin/browser/server_groups/servers/pgagent/templates/pga_job/sql/pre3.4/run_now.sql | nneesshh/openresty-oss | bfbb9d7526020eda1788a0ed24f2be3c8be5c1c3 | [
"MIT"
] | 10 | 2020-06-05T19:42:26.000Z | 2022-03-11T23:38:35.000Z | openresty-win32-build/thirdparty/x86/pgsql/pgAdmin 4/web/pgadmin/browser/server_groups/servers/pgagent/templates/pga_job/sql/pre3.4/run_now.sql | nneesshh/openresty-oss | bfbb9d7526020eda1788a0ed24f2be3c8be5c1c3 | [
"MIT"
] | 1 | 2021-01-13T09:30:29.000Z | 2021-01-13T09:30:29.000Z | UPDATE pgagent.pga_job
SET jobnextrun=now()::timestamptz
WHERE jobid={{ jid|qtLiteral }}::integer
| 24.5 | 40 | 0.77551 |
14a0ee4b321cc9c246952841c7f108efaccdf1fd | 2,895 | ts | TypeScript | index.d.ts | Rocket1184/ncm-releases | 63267488419f7ce238e584226a575a5d7fe2987e | [
"MIT"
] | null | null | null | index.d.ts | Rocket1184/ncm-releases | 63267488419f7ce238e584226a575a5d7fe2987e | [
"MIT"
] | 1 | 2020-04-12T06:54:01.000Z | 2020-04-12T06:54:01.000Z | index.d.ts | Rocket1184/ncm-releases | 63267488419f7ce238e584226a575a5d7fe2987e | [
"MIT"
] | null | null | null | // from `@octokit/rest`
type ReposListCommitsResponseItemParentsItem = { url: string; sha: string };
type ReposListCommitsResponseItemCommitter = {
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string;
url: string;
html_url: string;
followers_url: string;
... | 24.327731 | 76 | 0.672884 |
33edfda8b13257b4179bba3935cbda0ae0916474 | 2,767 | h | C | include/materials/RandomMix_t.h | guillaumetousignant/another_path_tracer | 2738b32f91443ce15d1e7ab8ab77903bdfca695b | [
"MIT"
] | 1 | 2019-08-08T12:19:45.000Z | 2019-08-08T12:19:45.000Z | include/materials/RandomMix_t.h | guillaumetousignant/another_path_tracer | 2738b32f91443ce15d1e7ab8ab77903bdfca695b | [
"MIT"
] | 38 | 2019-07-11T16:18:00.000Z | 2021-09-16T14:54:36.000Z | include/materials/RandomMix_t.h | guillaumetousignant/another_path_tracer | 2738b32f91443ce15d1e7ab8ab77903bdfca695b | [
"MIT"
] | null | null | null | #ifndef APTRACER_RANDOMMIX_T_H
#define APTRACER_RANDOMMIX_T_H
#include "entities/Material_t.h"
#include "entities/Ray_t.h"
#include <random>
namespace APTracer { namespace Entities {
class Shape_t;
}}
using APTracer::Entities::Ray_t;
using APTracer::Entities::Shape_t;
using APTracer::Entities::Mater... | 50.309091 | 199 | 0.654138 |
c3d0a76a1dbccde73b5ea2ca6b1f1febe26a1186 | 1,062 | swift | Swift | animation/Transition/Transition.swift | MChainZhou/animation | d6cd6875bfd783b7af01e983046aa7ab3fa0ba55 | [
"MIT"
] | null | null | null | animation/Transition/Transition.swift | MChainZhou/animation | d6cd6875bfd783b7af01e983046aa7ab3fa0ba55 | [
"MIT"
] | null | null | null | animation/Transition/Transition.swift | MChainZhou/animation | d6cd6875bfd783b7af01e983046aa7ab3fa0ba55 | [
"MIT"
] | null | null | null | //
// Transition.swift
// animation
//
// Created by USER on 2018/10/23.
// Copyright © 2018年 USER. All rights reserved.
//
import UIKit
class Transition: NSObject {
}
extension Transition: UIViewControllerTransitioningDelegate {
func animationController(forPresented presented: UIViewController, presenting:... | 31.235294 | 170 | 0.757062 |
af85339abcf9cdc6c1c0d4d49be5260fdb385720 | 5,877 | py | Python | aos/util/trapezoid_profile.py | AustinSchuh/971-Robot-Code | 99abc66fd2d899c0bdab338dc6f57dc5def9be8d | [
"Apache-2.0"
] | 39 | 2021-06-18T03:22:30.000Z | 2022-03-21T15:23:43.000Z | aos/util/trapezoid_profile.py | AustinSchuh/971-Robot-Code | 99abc66fd2d899c0bdab338dc6f57dc5def9be8d | [
"Apache-2.0"
] | 10 | 2021-06-18T03:22:19.000Z | 2022-03-18T22:14:15.000Z | aos/util/trapezoid_profile.py | AustinSchuh/971-Robot-Code | 99abc66fd2d899c0bdab338dc6f57dc5def9be8d | [
"Apache-2.0"
] | 4 | 2021-08-19T19:20:04.000Z | 2022-03-08T07:33:18.000Z | #!/usr/bin/python3
import numpy
class TrapezoidProfile(object):
"""Computes a trapezoidal motion profile
Attributes:
_acceleration_time: the amount of time the robot will travel at the
specified acceleration (s)
_acceleration: the acceleration the robot will use to get to the target
(unit... | 37.433121 | 84 | 0.671261 |
fd007fd86515bdb4a1cd29cfbf2d65e840d6bf17 | 66 | sql | SQL | src/test/resources/sql/select/20497a66.sql | Shuttl-Tech/antlr_psql | fcf83192300abe723f3fd3709aff5b0c8118ad12 | [
"MIT"
] | 66 | 2018-06-15T11:34:03.000Z | 2022-03-16T09:24:49.000Z | src/test/resources/sql/select/20497a66.sql | Shuttl-Tech/antlr_psql | fcf83192300abe723f3fd3709aff5b0c8118ad12 | [
"MIT"
] | 13 | 2019-03-19T11:56:28.000Z | 2020-08-05T04:20:50.000Z | src/test/resources/sql/select/20497a66.sql | Shuttl-Tech/antlr_psql | fcf83192300abe723f3fd3709aff5b0c8118ad12 | [
"MIT"
] | 28 | 2019-01-05T19:59:02.000Z | 2022-03-24T11:55:50.000Z | -- file:regex.sql ln:65 expect:true
select 'xyy' ~ '(?<=[xy])yy+'
| 22 | 35 | 0.590909 |
8dadeca8517870a3842b21bdd82a2bc906692675 | 3,728 | js | JavaScript | screens/wizzard/WizzardScreen.js | aenniw/esp-mdns-lights | d2df7860c2662bc4a0057819984fff04d0904466 | [
"MIT"
] | 1 | 2019-04-19T16:12:49.000Z | 2019-04-19T16:12:49.000Z | screens/wizzard/WizzardScreen.js | aenniw/esp-mdns-lights | d2df7860c2662bc4a0057819984fff04d0904466 | [
"MIT"
] | 1 | 2019-07-01T12:14:33.000Z | 2019-12-24T18:41:39.000Z | screens/wizzard/WizzardScreen.js | aenniw/esp-mdns-lights | d2df7860c2662bc4a0057819984fff04d0904466 | [
"MIT"
] | null | null | null | import React from "react";
import { Platform, StyleSheet, View } from "react-native";
import * as Permissions from "expo-permissions";
import { BarCodeScanner } from "expo-barcode-scanner";
import WizzardModal from "./WizzardModal";
import { IconButton } from "../../components/Buttons";
import { MonoText, LocaleText }... | 25.360544 | 80 | 0.546674 |
aca84deda1b0b6d77ad779a3a9a699cac1a540a9 | 1,276 | lua | Lua | wyx/event/EntityPositionEvent.lua | scottcs/wyx | 554324cf36faf28da437d4af52fe392e9507cf62 | [
"MIT"
] | null | null | null | wyx/event/EntityPositionEvent.lua | scottcs/wyx | 554324cf36faf28da437d4af52fe392e9507cf62 | [
"MIT"
] | null | null | null | wyx/event/EntityPositionEvent.lua | scottcs/wyx | 554324cf36faf28da437d4af52fe392e9507cf62 | [
"MIT"
] | null | null | null | local Class = require 'lib.hump.class'
local Event = getClass 'wyx.event.Event'
-- EntityPositionEvent
--
local EntityPositionEvent = Class{name='EntityPositionEvent',
inherits=Event,
function(self, entityID, toX, toY, fromX, fromY)
if type(entityID) ~= 'string' then entityID = entityID:getID() end
verify('strin... | 27.148936 | 77 | 0.746082 |
c6a265a39c9e43189485eaec90c7b91a01bff007 | 575 | css | CSS | src/routes/EditEventPage/EditEventPage.css | JizongL/stressTrac | 9bf051e8ebc667121a64115484c6e2c7ce4ce9e4 | [
"MIT"
] | null | null | null | src/routes/EditEventPage/EditEventPage.css | JizongL/stressTrac | 9bf051e8ebc667121a64115484c6e2c7ce4ce9e4 | [
"MIT"
] | 4 | 2020-09-04T20:35:17.000Z | 2021-05-08T16:28:40.000Z | src/routes/EditEventPage/EditEventPage.css | JizongL/stressTrac-client | 9bf051e8ebc667121a64115484c6e2c7ce4ce9e4 | [
"MIT"
] | null | null | null | .edit_event_form{
display: flex;
justify-content: center;
color:white;
font-size: 15px;
}
.edit_event_form input{
width:500px;
}
.edit_event_form select{
margin-bottom: 10px;
}
.edit_event_page{
display:flex;
flex-direction: column;
background-color: #049c41;
font-family:'Roboto',sans-serif... | 14.02439 | 36 | 0.664348 |
728597fcab696c9d5089f3ebfba13afe8e14a92a | 11,160 | cs | C# | Stepon.FaceRecognization/FaceDemo/Main.cs | maxjove/FaceRecognization | d14e6a995ba5ceb3437a3ab5e98cab2e7694aa9b | [
"Apache-2.0"
] | 242 | 2017-09-29T02:24:04.000Z | 2021-11-09T12:09:45.000Z | Stepon.FaceRecognization/FaceDemo/Main.cs | maxjove/FaceRecognization | d14e6a995ba5ceb3437a3ab5e98cab2e7694aa9b | [
"Apache-2.0"
] | 14 | 2017-10-10T06:30:25.000Z | 2019-04-07T08:16:21.000Z | Stepon.FaceRecognization/FaceDemo/Main.cs | maxjove/FaceRecognization | d14e6a995ba5ceb3437a3ab5e98cab2e7694aa9b | [
"Apache-2.0"
] | 95 | 2017-10-10T05:42:21.000Z | 2022-02-19T09:00:34.000Z | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
using NReco.VideoConverter;
using ... | 32.347826 | 146 | 0.495251 |
da56872f8ffc75b959896a9bb1ab9c3e22a74cc3 | 6,737 | php | PHP | src/Component/Cache/Redis/RedisAttendant.php | src-run/teavee-object-cache-bundle | 66f7f82706ddb4e38cc3b77bbfd69e2d5fcaf8d4 | [
"MIT"
] | null | null | null | src/Component/Cache/Redis/RedisAttendant.php | src-run/teavee-object-cache-bundle | 66f7f82706ddb4e38cc3b77bbfd69e2d5fcaf8d4 | [
"MIT"
] | 1 | 2015-03-01T10:09:40.000Z | 2015-03-22T18:02:52.000Z | src/Component/Cache/Redis/RedisAttendant.php | src-run/teavee-object-cache-bundle | 66f7f82706ddb4e38cc3b77bbfd69e2d5fcaf8d4 | [
"MIT"
] | null | null | null | <?php
/*
* This file is part of the Teavee Block Manager Bundle.
*
* (c) Scribe Inc. <oss@scr.be>
* (c) Rob Frawley 2nd <rmf@scr.be>
*
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/
namespace Scribe\Teavee\ObjectCacheBundl... | 21.119122 | 206 | 0.541339 |
38b7b691e1aac03e024ad38cecb2a8617ddf82da | 110 | php | PHP | vendor/pagerfanta/pagerfanta/src/Exception/LogicException.php | linhcatcat/wcf | 9823a3db37f8157337e81f1e92363d129c83f13a | [
"MIT"
] | 5 | 2021-09-29T06:55:24.000Z | 2022-03-02T02:47:00.000Z | vendor/pagerfanta/pagerfanta/src/Exception/LogicException.php | linhcatcat/wcf | 9823a3db37f8157337e81f1e92363d129c83f13a | [
"MIT"
] | 1 | 2021-05-09T23:38:59.000Z | 2021-05-09T23:38:59.000Z | vendor/pagerfanta/pagerfanta/src/Exception/LogicException.php | linhcatcat/wcf | 9823a3db37f8157337e81f1e92363d129c83f13a | [
"MIT"
] | null | null | null | <?php
namespace Pagerfanta\Exception;
class LogicException extends \LogicException implements Exception
{
}
| 13.75 | 65 | 0.818182 |
0dc0e7a7a8194ab1ce36f1e3098b19042bfad3d9 | 337 | rb | Ruby | test/test_helper.rb | tech-angels/annotator | ad8f203635633eb3428105be7c39b80694184a2b | [
"MIT"
] | 8 | 2015-06-29T10:34:59.000Z | 2019-08-29T07:39:28.000Z | test/test_helper.rb | tech-angels/annotator | ad8f203635633eb3428105be7c39b80694184a2b | [
"MIT"
] | null | null | null | test/test_helper.rb | tech-angels/annotator | ad8f203635633eb3428105be7c39b80694184a2b | [
"MIT"
] | null | null | null | require 'fileutils'
# Configure Rails Environment
ENV["RAILS_ENV"] = "test"
# Load support files
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
TestApp.prepare!
require File.expand_path("#{TestApp.path}/config/environment.rb", __FILE__)
require "rails/test_help"
Rails.backtrace_cleaner.re... | 21.0625 | 76 | 0.74184 |
2c847d6ed812e04e3e82982325c29e59d9aa8aee | 1,346 | py | Python | SedOperations.py | p10rahulm/brandyz-reco | 95d5e3f291cdb5b951e0c7d83ff30c59f8a3797f | [
"MIT"
] | null | null | null | SedOperations.py | p10rahulm/brandyz-reco | 95d5e3f291cdb5b951e0c7d83ff30c59f8a3797f | [
"MIT"
] | null | null | null | SedOperations.py | p10rahulm/brandyz-reco | 95d5e3f291cdb5b951e0c7d83ff30c59f8a3797f | [
"MIT"
] | null | null | null | # for windows download sed from here: http://gnuwin32.sourceforge.net/packages/sed.htm
# on second thoughts: https://stackoverflow.com/questions/1823591/sed-creates-un-deleteable-files-in-windows/25407238
# Use the following: https://github.com/mbuilov/sed-windows/blob/master/sed-4.4-x64.exe
import subprocess
def ta... | 48.071429 | 117 | 0.725854 |
1f2d7525bf1813f9928bb71de41246e5eafba6f7 | 416 | sql | SQL | Views/vinyl_info.sql | KamranDjourshari24/Vinyl-Record-Database | fd8154c1a4ef056fe035335efd107c8485a8d54a | [
"MIT"
] | 2 | 2021-01-10T20:11:44.000Z | 2021-01-10T23:26:21.000Z | Views/vinyl_info.sql | KamranDjourshari24/Vinyl-Record-Database | fd8154c1a4ef056fe035335efd107c8485a8d54a | [
"MIT"
] | null | null | null | Views/vinyl_info.sql | KamranDjourshari24/Vinyl-Record-Database | fd8154c1a4ef056fe035335efd107c8485a8d54a | [
"MIT"
] | 2 | 2021-04-22T20:39:52.000Z | 2021-04-22T21:00:03.000Z | USE project;
CREATE OR REPLACE VIEW vinyl_info AS
SELECT artist_name AS "Artist Name", album_name AS "Album Name",
genre AS "Genre", track_amount "Number of Songs", runtime AS "Runtime",
first_available AS "Date when First Available", IF(is_explicit, "True", "False") AS "Is Explicit?"
FROM vinyl JOIN singer... | 32 | 101 | 0.71875 |
540ce22d1dfacf7247ef098bdde4bb677e972232 | 1,083 | lua | Lua | gatherer.lua | shagu/delvermd | 946709d5b75c8df29b7ac106bb5181573c476dd9 | [
"MIT"
] | 1 | 2021-04-17T06:14:11.000Z | 2021-04-17T06:14:11.000Z | gatherer.lua | shagu/delvermd | 946709d5b75c8df29b7ac106bb5181573c476dd9 | [
"MIT"
] | null | null | null | gatherer.lua | shagu/delvermd | 946709d5b75c8df29b7ac106bb5181573c476dd9 | [
"MIT"
] | null | null | null | -- download gatherer images
local gatherer = {}
function gatherer:Fetch(collection, images)
local https = require("ssl.https")
local id = 0
for i, card in pairs(collection) do
id = id + 1
io.write("\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b")
io.write("\b\b\b\b\b\b\b\b\b\b\b\b... | 29.27027 | 92 | 0.601108 |
14e7511a3dcb031cdfc7f54d1bdf1d1681127298 | 7,356 | ts | TypeScript | packages/cli/src/question/question.ts | swatDong/TeamsFx | 393402bce7831e171332fc26e82ab35b52af8270 | [
"MIT"
] | null | null | null | packages/cli/src/question/question.ts | swatDong/TeamsFx | 393402bce7831e171332fc26e82ab35b52af8270 | [
"MIT"
] | null | null | null | packages/cli/src/question/question.ts | swatDong/TeamsFx | 393402bce7831e171332fc26e82ab35b52af8270 | [
"MIT"
] | null | null | null | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
"use strict";
import inquirer, { DistinctQuestion } from "inquirer";
import {
NodeType,
QTreeNode,
OptionItem,
Question,
ConfigMap,
getValidationFunction,
RemoteFuncExecutor,
isAutoSkipSelect,
getSingleOption,
SingleSelectQ... | 30.147541 | 143 | 0.617047 |
e049170d6449887e8ac1d2ff9c2f310b8c656e11 | 37,647 | h | C | code/qcommon/qcommon.h | raynorpat/xreal | 2fcbf9179fa22dc6e808bb65b879ac2ee7616ebd | [
"BSD-3-Clause"
] | 11 | 2016-06-03T07:46:15.000Z | 2021-09-09T19:35:32.000Z | code/qcommon/qcommon.h | raynorpat/xreal | 2fcbf9179fa22dc6e808bb65b879ac2ee7616ebd | [
"BSD-3-Clause"
] | 1 | 2016-10-14T23:06:19.000Z | 2016-10-14T23:06:19.000Z | code/qcommon/qcommon.h | raynorpat/xreal | 2fcbf9179fa22dc6e808bb65b879ac2ee7616ebd | [
"BSD-3-Clause"
] | 5 | 2016-10-13T04:43:58.000Z | 2019-08-24T14:03:35.000Z | /*
===========================================================================
Copyright (C) 1999-2005 Id Software, Inc.
Copyright (C) 2006-2008 Robert Beckebans <trebor_7@users.sourceforge.net>
This file is part of XreaL source code.
XreaL source code is free software; you can redistribute it
and/or modify it under ... | 31.138958 | 125 | 0.656467 |
cd3a1f10c14c803c27fff695cd1f60851660107b | 2,926 | rs | Rust | src/reader/types.rs | tiffany352/wasm-rs | 373e9857a440ee64abcab84023561b5e6be67b16 | [
"Apache-2.0",
"MIT"
] | 2 | 2016-10-30T03:29:41.000Z | 2016-11-02T00:18:03.000Z | src/reader/types.rs | tiffany352/wasm-rs | 373e9857a440ee64abcab84023561b5e6be67b16 | [
"Apache-2.0",
"MIT"
] | null | null | null | src/reader/types.rs | tiffany352/wasm-rs | 373e9857a440ee64abcab84023561b5e6be67b16 | [
"Apache-2.0",
"MIT"
] | null | null | null | use super::*;
use std::io;
pub struct TypeSection<'a>(pub &'a [u8], pub usize);
pub struct TypeEntryIterator<'a>(&'a [u8], usize);
pub enum TypeEntry<'a> {
Function(FunctionType<'a>),
}
pub struct FunctionType<'a> {
pub form: LanguageType,
params_count: usize,
params_raw: &'a [u8],
pub return_ty... | 30.164948 | 95 | 0.543062 |
8bdf68efa32961b587042c8e9a636d234dad0a26 | 285 | sql | SQL | db/geonames/countries/YT.sql | IsiRoca/Geodata-Importer | b2cc65d6d561d1a80205b1ab2ceab73da68aa451 | [
"MIT"
] | null | null | null | db/geonames/countries/YT.sql | IsiRoca/Geodata-Importer | b2cc65d6d561d1a80205b1ab2ceab73da68aa451 | [
"MIT"
] | null | null | null | db/geonames/countries/YT.sql | IsiRoca/Geodata-Importer | b2cc65d6d561d1a80205b1ab2ceab73da68aa451 | [
"MIT"
] | null | null | null | LOAD DATA LOCAL INFILE './././download/geonames/countries/YT.txt' INTO TABLE geoname CHARACTER SET 'UTF8' (geonameid, name, asciiname, alternatenames, latitude, longitude, fclass, fcode, country, cc2, admin1, admin2, admin3, admin4, population, elevation, gtopo30, timezone, moddate);
| 142.5 | 284 | 0.77193 |
535e480adddb002700850e3556db9caf8d77b713 | 2,955 | rb | Ruby | spec/switch/plugins/aws_alb_spec.rb | lscheidler/switch | 9b8a122166bcd25f52c34cd637cea234f44bc54a | [
"Apache-2.0"
] | null | null | null | spec/switch/plugins/aws_alb_spec.rb | lscheidler/switch | 9b8a122166bcd25f52c34cd637cea234f44bc54a | [
"Apache-2.0"
] | null | null | null | spec/switch/plugins/aws_alb_spec.rb | lscheidler/switch | 9b8a122166bcd25f52c34cd637cea234f44bc54a | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Lars Eric Scheidler
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | 42.826087 | 243 | 0.745516 |
0f9f909609c4b1a612380954f45da311b8bc89ac | 3,334 | swift | Swift | Tests/RelayTests/PokemonListQuery.swift | Astrocoders/Relay.swift | d38835f19405812587d185040dc6bb6765e6078a | [
"MIT"
] | 51 | 2020-08-28T19:24:41.000Z | 2022-03-08T23:14:41.000Z | Tests/RelayTests/PokemonListQuery.swift | Astrocoders/Relay.swift | d38835f19405812587d185040dc6bb6765e6078a | [
"MIT"
] | 33 | 2020-12-28T08:12:00.000Z | 2021-11-02T14:49:23.000Z | Tests/RelayTests/PokemonListQuery.swift | Astrocoders/Relay.swift | d38835f19405812587d185040dc6bb6765e6078a | [
"MIT"
] | 2 | 2021-08-30T12:49:51.000Z | 2021-10-11T03:56:42.000Z | // Auto-generated by relay-compiler. Do not edit.
import Relay
struct PokemonListQuery {
var variables: Variables
init(variables: Variables) {
self.variables = variables
}
static var node: ConcreteRequest {
ConcreteRequest(
fragment: ReaderFragment(
name: ... | 30.87037 | 72 | 0.407918 |
beaf9f55d9c6f48d5928ad2312409258de2440bd | 380 | sh | Shell | ci/linux/build.sh | lodrantl/reversi | 8d579e72fdf689f56e7ebbbe16fb9135420573cc | [
"Apache-2.0"
] | 1 | 2017-05-02T09:50:49.000Z | 2017-05-02T09:50:49.000Z | ci/linux/build.sh | lodrantl/reversi | 8d579e72fdf689f56e7ebbbe16fb9135420573cc | [
"Apache-2.0"
] | 1 | 2017-02-24T11:49:32.000Z | 2017-03-28T13:58:31.000Z | ci/linux/build.sh | lodrantl/reversi | 8d579e72fdf689f56e7ebbbe16fb9135420573cc | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env bash
set -ev #echo on
python -m pytest
# Build executables with pyinstaller
python -m PyInstaller -y reversi.spec
# Move to final dir
mkdir dist/final
mv dist/reversi dist/final/reversi-${VERSION}-${TRAVIS_OS_NAME}
# Run tests
ls -la dist/
ls -la dist/final
#Workaround for https://github.com/travis-... | 19 | 66 | 0.744737 |
b72ba37b25e9a84db429d533e2a07e383b2cabfb | 8,714 | cpp | C++ | dblsqd/feed.cpp | Mudlet/dblsqd-sdk-qt | 80f0da767c24e9c1a89e58aac913dd86e22d4c06 | [
"Apache-2.0"
] | 1 | 2021-06-02T06:33:52.000Z | 2021-06-02T06:33:52.000Z | dblsqd/feed.cpp | Mudlet/dblsqd-sdk-qt | 80f0da767c24e9c1a89e58aac913dd86e22d4c06 | [
"Apache-2.0"
] | 2 | 2020-11-12T11:46:45.000Z | 2021-11-17T23:53:35.000Z | dblsqd/feed.cpp | Mudlet/dblsqd-sdk-qt | 80f0da767c24e9c1a89e58aac913dd86e22d4c06 | [
"Apache-2.0"
] | null | null | null | #include "dblsqd/feed.h"
namespace dblsqd {
/*!
\class Feed
* \brief The Feed class provides methods for accessing DBLSQD Feeds and downloading Releases.
*
* A Feed is a representation of an Application’s Releases.
* This class can retrieve Feeds via HTTP(S) and offers convenience methods for
*
* \section3 Lo... | 28.759076 | 119 | 0.653661 |
79ded1de805d55f15da03dc7d376a0167f2bf00c | 1,954 | php | PHP | frontend/views/notification/_item.php | baoguok/getyii | f8a0f5cd7b545f773d61074e93ffbcdd97e31abd | [
"BSD-3-Clause"
] | 1 | 2019-11-04T09:22:42.000Z | 2019-11-04T09:22:42.000Z | frontend/views/notification/_item.php | baoguok/getyii | f8a0f5cd7b545f773d61074e93ffbcdd97e31abd | [
"BSD-3-Clause"
] | null | null | null | frontend/views/notification/_item.php | baoguok/getyii | f8a0f5cd7b545f773d61074e93ffbcdd97e31abd | [
"BSD-3-Clause"
] | null | null | null | <?php
/**
* author : forecho <caizh@snsshop.com>
* createTime : 2015/4/23 14:52
* description:
*/
use yii\helpers\Html;
use yii\helpers\HtmlPurifier;
?>
<?php if ($model->status && $model->post): ?>
<div class="media-left">
<?= Html::a(Html::img($model->fromUser->userAvatar, ['class' ... | 34.892857 | 113 | 0.477482 |
26f4944917347895933e258a51d23a145da50357 | 5,497 | kts | Kotlin | game/src/main/kotlin/world/gregs/voidps/world/community/chat/QuickChat.kts | jarryd229/void | 890a1a7467309503737325ee3d25e6fb0cd2e197 | [
"BSD-3-Clause"
] | null | null | null | game/src/main/kotlin/world/gregs/voidps/world/community/chat/QuickChat.kts | jarryd229/void | 890a1a7467309503737325ee3d25e6fb0cd2e197 | [
"BSD-3-Clause"
] | null | null | null | game/src/main/kotlin/world/gregs/voidps/world/community/chat/QuickChat.kts | jarryd229/void | 890a1a7467309503737325ee3d25e6fb0cd2e197 | [
"BSD-3-Clause"
] | null | null | null | package world.gregs.voidps.world.community.chat
import world.gregs.voidps.cache.definition.data.QuickChatType
import world.gregs.voidps.engine.client.message
import world.gregs.voidps.engine.client.update.view.Viewport.Companion.VIEW_RADIUS
import world.gregs.voidps.engine.client.variable.getVar
import world.gregs.voi... | 43.283465 | 123 | 0.686192 |
e1aa9d9b86ddb38a58967b4f1ff0c6fe2d7791d5 | 3,222 | kt | Kotlin | src/main/kotlin/org/nexial/core/SystemVariables.kt | nexiality/nexial-incubate | ee16530ba5b223d943790f9c7ba36b5db9676e19 | [
"Apache-2.0"
] | null | null | null | src/main/kotlin/org/nexial/core/SystemVariables.kt | nexiality/nexial-incubate | ee16530ba5b223d943790f9c7ba36b5db9676e19 | [
"Apache-2.0"
] | null | null | null | src/main/kotlin/org/nexial/core/SystemVariables.kt | nexiality/nexial-incubate | ee16530ba5b223d943790f9c7ba36b5db9676e19 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2012-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 33.216495 | 114 | 0.682806 |
a9fe6795e57574e5791b9a2efdd1e926247e4a1e | 1,652 | php | PHP | vendor/ZF2/library/Zend/ZendPdf/library/ZendPdf/Resource/Font/Simple/Parsed/TrueType.php | ngmautri/nhungttk | 70c5aadcad11b9975cd926bf03eba95501ce7841 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2020-09-28T03:04:16.000Z | 2020-09-28T03:04:16.000Z | vendor/ZF2/library/Zend/ZendPdf/library/ZendPdf/Resource/Font/Simple/Parsed/TrueType.php | ngmautri/nhungttk | 70c5aadcad11b9975cd926bf03eba95501ce7841 | [
"Apache-2.0",
"BSD-3-Clause"
] | 3 | 2020-08-31T06:17:58.000Z | 2021-10-02T01:11:57.000Z | vendor/ZF2/library/Zend/ZendPdf/library/ZendPdf/Resource/Font/Simple/Parsed/TrueType.php | ngmautri/nhungttk | 70c5aadcad11b9975cd926bf03eba95501ce7841 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | <?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @pa... | 33.714286 | 100 | 0.708232 |
0d7220e2a6da8d1ae15b986f80f63c31592c0aed | 4,984 | rb | Ruby | lib/rhouse.rb | derailed/rhouse | 2c1c45077d58586a3101191f885c57aaa4361301 | [
"Unlicense",
"MIT"
] | 10 | 2015-03-18T13:08:54.000Z | 2021-07-31T02:29:16.000Z | lib/rhouse.rb | derailed/rhouse | 2c1c45077d58586a3101191f885c57aaa4361301 | [
"Unlicense",
"MIT"
] | null | null | null | lib/rhouse.rb | derailed/rhouse | 2c1c45077d58586a3101191f885c57aaa4361301 | [
"Unlicense",
"MIT"
] | 3 | 2016-02-01T16:49:45.000Z | 2021-07-31T02:29:45.000Z | # Sets up the Rhouse gem environment.
# Configures logging, database connection and various paths
module Rhouse
# Gem version
VERSION = '0.0.3'
# Root path of rhouse
PATH = ::File.expand_path(::File.join(::File.dirname(__FILE__), *%w[..]))
# Lib path
LIBPATH = ::File.join( PATH, "lib" )
# Confi... | 33.675676 | 120 | 0.582865 |
cd2e086e950dfaeee67854944e64b1e1846f58c6 | 1,237 | cs | C# | Concepts/ViewModels/SliderViewModel.cs | MaciekSwiszczowski/DebuggingAndProfilingExamples | da3977bf684d5d08f466c73c6f9e2caa5b142482 | [
"MIT"
] | null | null | null | Concepts/ViewModels/SliderViewModel.cs | MaciekSwiszczowski/DebuggingAndProfilingExamples | da3977bf684d5d08f466c73c6f9e2caa5b142482 | [
"MIT"
] | null | null | null | Concepts/ViewModels/SliderViewModel.cs | MaciekSwiszczowski/DebuggingAndProfilingExamples | da3977bf684d5d08f466c73c6f9e2caa5b142482 | [
"MIT"
] | null | null | null | using System;
using System.ComponentModel.Composition;
using System.Windows.Input;
using Prism.Commands;
using Prism.Mvvm;
namespace Concepts.ViewModels
{
[Export]
[PartCreationPolicy(CreationPolicy.Shared)]
public class SliderViewModel : BindableBase
{
private double _rangeStart;
pri... | 21.701754 | 90 | 0.536783 |
2fd72d125f5346054e3757f9a48f62bf0af118ee | 565 | py | Python | ADA_KING.py | myid13221/CODECHEF-PYTHON | 849532482f1ede127b299ab2d6000f27b99ee7b9 | [
"MIT"
] | null | null | null | ADA_KING.py | myid13221/CODECHEF-PYTHON | 849532482f1ede127b299ab2d6000f27b99ee7b9 | [
"MIT"
] | 4 | 2020-10-04T07:49:30.000Z | 2021-10-02T05:24:40.000Z | ADA_KING.py | myid13221/CODECHEF-PYTHON | 849532482f1ede127b299ab2d6000f27b99ee7b9 | [
"MIT"
] | 7 | 2020-10-04T07:46:55.000Z | 2021-11-05T14:30:00.000Z | # cook your dish here
try:
t = int(input())
for _ in range(t):
r, c, k = map(int, input().rstrip().split(' '))
if r <= k:
start_row = 1
else:
start_row = r-k
if c <= k:
start_col = 1
else:
start_col = c-k
if r+k >= 8... | 20.925926 | 66 | 0.39646 |
b51e1360a4b238a2d297ecacd230e425d7278201 | 912 | js | JavaScript | API_Gateways/Customer.js | radishj/FreshVcitoriaServer | 3e835babdae3dd6e3449b10006d4d293aa1d3932 | [
"Apache-2.0"
] | null | null | null | API_Gateways/Customer.js | radishj/FreshVcitoriaServer | 3e835babdae3dd6e3449b10006d4d293aa1d3932 | [
"Apache-2.0"
] | null | null | null | API_Gateways/Customer.js | radishj/FreshVcitoriaServer | 3e835babdae3dd6e3449b10006d4d293aa1d3932 | [
"Apache-2.0"
] | null | null | null | const express = require('express');
const router = express.Router();
//const asyncHandler = require('../Helpers/asyncHandler');
//const validate = require('validate.js');
const C = require('../DBServices/Customer');
router.get("/:phone_number",async function(req, res, next) {
var phone = req.params.phone_number;
... | 31.448276 | 60 | 0.672149 |
3905b5a759cf16385fad603df3999be49ecaf31d | 2,184 | py | Python | Bank.py | sahgh313/Bank_project | 9a24ff9fd4946b8dd84e77bc5f9e2e03527b2f26 | [
"MIT"
] | null | null | null | Bank.py | sahgh313/Bank_project | 9a24ff9fd4946b8dd84e77bc5f9e2e03527b2f26 | [
"MIT"
] | null | null | null | Bank.py | sahgh313/Bank_project | 9a24ff9fd4946b8dd84e77bc5f9e2e03527b2f26 | [
"MIT"
] | null | null | null | #پروژه بانک
#نوشته شده توسط امیر حسین غرقی
class Bank:
def Create(self):
self.first_name = input( 'Enter first name : ')
self.last_name = input("Enter your last name : ")
self.phone_number = input("Enter your phone number, sample : 0912*****54 :")
self.value = float(input("Ent... | 24.539326 | 110 | 0.553114 |
2af2ae06377e1a2a73db29f5ab35e11e69f19af6 | 81 | sql | SQL | administrator/components/com_admin/sql/updates/mysql/2.5.0-2012-01-10.sql | ElectricEasel/posrgnew | a9e2d244a3cf29f4620de4705171d4cdbdc579b4 | [
"PostgreSQL"
] | null | null | null | administrator/components/com_admin/sql/updates/mysql/2.5.0-2012-01-10.sql | ElectricEasel/posrgnew | a9e2d244a3cf29f4620de4705171d4cdbdc579b4 | [
"PostgreSQL"
] | null | null | null | administrator/components/com_admin/sql/updates/mysql/2.5.0-2012-01-10.sql | ElectricEasel/posrgnew | a9e2d244a3cf29f4620de4705171d4cdbdc579b4 | [
"PostgreSQL"
] | null | null | null | ALTER TABLE `#__updates` ADD COLUMN `infourl` text NOT NULL AFTER `detailsurl`;
| 40.5 | 80 | 0.753086 |
051dcfe87e4e0cbbe1f37fc4ca5c51fa1b82cfbb | 20,525 | sql | SQL | project3.sql | Maahi5656/Laravel-Admin-Template | a697c83170cda77e2edd5cbf412db6d2001cb483 | [
"MIT"
] | null | null | null | project3.sql | Maahi5656/Laravel-Admin-Template | a697c83170cda77e2edd5cbf412db6d2001cb483 | [
"MIT"
] | null | null | null | project3.sql | Maahi5656/Laravel-Admin-Template | a697c83170cda77e2edd5cbf412db6d2001cb483 | [
"MIT"
] | null | null | null | -- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 01, 2021 at 02:09 PM
-- Server version: 10.4.18-MariaDB
-- PHP Version: 7.4.16
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIE... | 47.075688 | 1,455 | 0.706358 |
ddb6a92175a3dc8477bd7c1af55541ea0908d55a | 1,173 | java | Java | DAP/library/api/fermat-dap-api/src/main/java/com/bitdubai/fermat_dap_api/layer/dap_transaction/common/exceptions/RecordsNotFoundException.java | jorgeejgonzalez/fermat | d5f0f7c98510f19f485ac908501df46f24444190 | [
"MIT"
] | 3 | 2016-03-23T05:26:51.000Z | 2016-03-24T14:33:05.000Z | DAP/library/api/fermat-dap-api/src/main/java/com/bitdubai/fermat_dap_api/layer/dap_transaction/common/exceptions/RecordsNotFoundException.java | yalayn/fermat | f0a912adb66a439023ec4e70b821ba397e0f7760 | [
"MIT"
] | 17 | 2015-11-20T20:43:17.000Z | 2016-07-25T20:35:49.000Z | DAP/library/api/fermat-dap-api/src/main/java/com/bitdubai/fermat_dap_api/layer/dap_transaction/common/exceptions/RecordsNotFoundException.java | yalayn/fermat | f0a912adb66a439023ec4e70b821ba397e0f7760 | [
"MIT"
] | 26 | 2015-11-20T13:20:23.000Z | 2022-03-11T07:50:06.000Z | package com.bitdubai.fermat_dap_api.layer.dap_transaction.common.exceptions;
import com.bitdubai.fermat_dap_api.layer.all_definition.exceptions.DAPException;
/**
* Created by Víctor A. Mars M. (marsvicam@gmail.com) on 26/10/15.
*/
public class RecordsNotFoundException extends DAPException {
//VARIABLE DECLARAT... | 26.659091 | 109 | 0.726343 |
4b9f4ffb8f7f140a3470bd0bf5449145af0bfa38 | 15,593 | cpp | C++ | tests/src/error_event_test.cpp | Appdynamics/iot-cpp-sdk | abb7d70b2364089495ac73adf2a992c0af6eaf8c | [
"Apache-2.0"
] | 3 | 2018-09-13T21:26:27.000Z | 2022-01-25T06:15:06.000Z | tests/src/error_event_test.cpp | Appdynamics/iot-cpp-sdk | abb7d70b2364089495ac73adf2a992c0af6eaf8c | [
"Apache-2.0"
] | 11 | 2018-01-30T00:42:23.000Z | 2019-10-20T07:19:37.000Z | tests/src/error_event_test.cpp | Appdynamics/iot-cpp-sdk | abb7d70b2364089495ac73adf2a992c0af6eaf8c | [
"Apache-2.0"
] | 5 | 2018-01-29T18:52:21.000Z | 2019-05-19T02:38:18.000Z | /*
* Copyright (c) 2018 AppDynamics LLC and its affiliates
*
* 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 appli... | 33.897826 | 103 | 0.775669 |
03118c8e46c7107e174c5ab5f0ed56b3ea4bdb6f | 2,120 | hh | C++ | include/Prostokat.hh | KPO-2020-2021/zad3-mszleger | 96479d275c42e534821f55ab889ae83e0316d0bb | [
"Unlicense"
] | null | null | null | include/Prostokat.hh | KPO-2020-2021/zad3-mszleger | 96479d275c42e534821f55ab889ae83e0316d0bb | [
"Unlicense"
] | null | null | null | include/Prostokat.hh | KPO-2020-2021/zad3-mszleger | 96479d275c42e534821f55ab889ae83e0316d0bb | [
"Unlicense"
] | null | null | null | #ifndef PROSTOKAT_HH
#define PROSTOKAT_HH
#include <iostream>
#include <fstream>
#include "Wektor2D.hh"
#include "Macierz2x2.hh"
#define ILOSCWIERZCHOLKOW 4
/**
* Klasa modelująca prostokąt
**/
class Prostokat {
Wektor wierzcholek[ILOSCWIERZCHOLKOW]; // Tablica przechowująca współrzędn... | 57.297297 | 165 | 0.675 |
f1ff68da5603090fb71338fab35450060a8d1803 | 13,496 | rb | Ruby | lib/jenkins/jenkins_neo4j.rb | glennsarti/JenkinsAggregator | 70bc1e4c6783709fb0fa80f3e9fc453143b565d9 | [
"Apache-2.0"
] | null | null | null | lib/jenkins/jenkins_neo4j.rb | glennsarti/JenkinsAggregator | 70bc1e4c6783709fb0fa80f3e9fc453143b565d9 | [
"Apache-2.0"
] | null | null | null | lib/jenkins/jenkins_neo4j.rb | glennsarti/JenkinsAggregator | 70bc1e4c6783709fb0fa80f3e9fc453143b565d9 | [
"Apache-2.0"
] | null | null | null | require 'neo4j-core'
require 'base64'
class PipelineAggregator::JenkinsNeo4j < PipelineAggregator::Base
def initialize(config_data)
@config_data = config_data
# TODO Validate config file is correct
end
public
def purge
neo4j_session = get_session
neo4j_session.query("MATCH ()-[r]-() DE... | 37.803922 | 145 | 0.60981 |
b739eb66a555bfff0b34e91c1b041133a2a1322c | 1,121 | cpp | C++ | src/main.cpp | tomazas/open-bomber | ddbcbd701f1440acb579f8927dee02701dc44b7c | [
"MIT"
] | null | null | null | src/main.cpp | tomazas/open-bomber | ddbcbd701f1440acb579f8927dee02701dc44b7c | [
"MIT"
] | null | null | null | src/main.cpp | tomazas/open-bomber | ddbcbd701f1440acb579f8927dee02701dc44b7c | [
"MIT"
] | null | null | null | // ------------------------------------------------------------------
// Open-bomber - open-source online bomberman remake
// ------------------------------------------------------------------
#include "Elf.h"
#include "ElfExtra.h"
#include "game.h"
#pragma comment(lib, "Elf2D.lib")
#pragma comment(lib, "win... | 22.877551 | 80 | 0.457627 |
f050210662cbaf973098b267cb9680a7b1ba2f0b | 506 | go | Go | 01-Variable/var.go | Mixko50/Learn-GoLang | 26ba3adfd8c23e3f08e8d6be02f55f77796ce47e | [
"MIT"
] | null | null | null | 01-Variable/var.go | Mixko50/Learn-GoLang | 26ba3adfd8c23e3f08e8d6be02f55f77796ce47e | [
"MIT"
] | null | null | null | 01-Variable/var.go | Mixko50/Learn-GoLang | 26ba3adfd8c23e3f08e8d6be02f55f77796ce47e | [
"MIT"
] | null | null | null | package main
import "fmt"
var (
actor string = "Mixko"
geo string = "Geo"
number1 int = 1
season float32 = .3
)
const (
yu string = "Hello"
te string = "World"
op int = 50
)
func main() {
fmt.Println("Hello")
var i int
i = 50
k := 99 //Can't re assignment
var t float32 = 5.5978
var con... | 14.055556 | 41 | 0.608696 |
977acf9304d66b08424594379e8808256cd4b945 | 158 | rb | Ruby | lib/output/text.rb | ssoroka/grepmate | 6b175a39a31f1ac43f31433e625c96c34fc9b8cf | [
"MIT"
] | 1 | 2016-05-08T18:35:36.000Z | 2016-05-08T18:35:36.000Z | lib/output/text.rb | ssoroka/grepmate | 6b175a39a31f1ac43f31433e625c96c34fc9b8cf | [
"MIT"
] | null | null | null | lib/output/text.rb | ssoroka/grepmate | 6b175a39a31f1ac43f31433e625c96c34fc9b8cf | [
"MIT"
] | null | null | null | module Output
class Text
def initialize(grepmate)
@grepmate = grepmate
end
def process
puts @grepmate.results
end
end
end | 14.363636 | 28 | 0.626582 |
d9a1cc6c1ed788ed971a712ae9b103d77af0b91c | 161 | swift | Swift | Sources/Models/Platform.swift | TICESoftware/TICE-SwiftModels | 72cb6add59e5ef4156bea0aed8a5591459489085 | [
"MIT"
] | null | null | null | Sources/Models/Platform.swift | TICESoftware/TICE-SwiftModels | 72cb6add59e5ef4156bea0aed8a5591459489085 | [
"MIT"
] | null | null | null | Sources/Models/Platform.swift | TICESoftware/TICE-SwiftModels | 72cb6add59e5ef4156bea0aed8a5591459489085 | [
"MIT"
] | null | null | null | //
// Copyright © 2019 Anbion. All rights reserved.
//
import Foundation
public enum Platform: String, Codable {
case iOS
case android
case web
}
| 13.416667 | 49 | 0.670807 |
364b306495d7d4936efa56daed17a1e1abbbf71d | 4,241 | lua | Lua | Client/Spec.lua | vugi99/nanos-vzombies | 7aaf33a474cd1947c9bc12b93ebe238aefce1c7d | [
"Unlicense"
] | 4 | 2021-11-17T22:04:49.000Z | 2022-03-08T17:29:32.000Z | Client/Spec.lua | vugi99/nanos-vzombies | 7aaf33a474cd1947c9bc12b93ebe238aefce1c7d | [
"Unlicense"
] | null | null | null | Client/Spec.lua | vugi99/nanos-vzombies | 7aaf33a474cd1947c9bc12b93ebe238aefce1c7d | [
"Unlicense"
] | null | null | null |
Spectating_Player = nil
function GetResetPlyID(old_ply_id, prev_ply)
local selected_ply_id
local selected_ply
for k, v in pairs(Player.GetPairs()) do
if not v.BOT then
if v ~= Client.GetLocalPlayer() then
if v:GetID() ~= old_ply_id then
local char =... | 30.292857 | 331 | 0.626975 |
233ad2df22ad3c39ffb63510bb89820c4a5a4275 | 244 | css | CSS | src/navBar/NavBar.module.css | thepuskar/yelp-clone | 3b4418380624d432405c0a8c2666d8830b8a8602 | [
"MIT"
] | 3 | 2020-07-31T13:44:45.000Z | 2021-01-19T06:39:50.000Z | src/navBar/NavBar.module.css | devpuskar/yelp-clone | 3b4418380624d432405c0a8c2666d8830b8a8602 | [
"MIT"
] | null | null | null | src/navBar/NavBar.module.css | devpuskar/yelp-clone | 3b4418380624d432405c0a8c2666d8830b8a8602 | [
"MIT"
] | 1 | 2022-01-17T00:06:02.000Z | 2022-01-17T00:06:02.000Z | .navBar {
display: flex;
background-color: #d32323;
padding: 1rem 0;
align-items: center;
justify-content: center;
}
.logo {
width: 75px;
margin-right: 1rem;
}
:global(.button).nav-button {
margin-left: 1rem;
} | 15.25 | 30 | 0.610656 |
e702dc1fedc757a461a24a44611dd26f779d228b | 1,432 | php | PHP | Factory/DoctrineOrmPaginatorFactory.php | dimmir/RestPaginatorBundle | 07512e461440ecc156cc50712cc252c8b0526298 | [
"MIT"
] | 1 | 2018-02-11T16:23:38.000Z | 2018-02-11T16:23:38.000Z | Factory/DoctrineOrmPaginatorFactory.php | dimmir/RestPaginatorBundle | 07512e461440ecc156cc50712cc252c8b0526298 | [
"MIT"
] | 1 | 2017-08-09T19:48:46.000Z | 2017-08-09T19:48:46.000Z | Factory/DoctrineOrmPaginatorFactory.php | dimmir/PaginatorBundle | 07512e461440ecc156cc50712cc252c8b0526298 | [
"MIT"
] | null | null | null | <?php
namespace DMR\Bundle\PaginatorBundle\Factory;
use DMR\Bundle\PaginatorBundle\Exception\RuntimeException;
use DMR\Bundle\PaginatorBundle\Pagination\RequestParameters;
use DMR\Bundle\PaginatorBundle\Paginator\DoctrineOrmPaginator;
use DMR\Bundle\PaginatorBundle\Paginator\PaginatorInterface;
use Doctrine\ORM\Query... | 36.717949 | 122 | 0.734637 |
db7c8958620cf45e9dc4055c9186f44096e1392f | 1,451 | php | PHP | resources/views/powernode/list.blade.php | lixingxuan246/1911admin1 | fc6dc1ed140f4faf786323f7e54f849b2fd5f427 | [
"MIT"
] | null | null | null | resources/views/powernode/list.blade.php | lixingxuan246/1911admin1 | fc6dc1ed140f4faf786323f7e54f849b2fd5f427 | [
"MIT"
] | null | null | null | resources/views/powernode/list.blade.php | lixingxuan246/1911admin1 | fc6dc1ed140f4faf786323f7e54f849b2fd5f427 | [
"MIT"
] | null | null | null | @extends('shou.index')
@section('content')
<table class="layui-table">
<colgroup>
<col width="150">
<col width="200">
<col>
</colgroup>
<thead>
<tr>
<th>ID</th>
<th>节点名称</th>
<th>节点路径</th>
<th>父级节点</... | 29.02 | 112 | 0.464507 |
52276f617171eb8650f617fa1dea856240313edb | 1,905 | lua | Lua | scripts/paint_bucket.lua | iamOgunyinka/tests | 522825129820a2b0822980509540e1830fd76bea | [
"MIT"
] | 2 | 2018-11-04T09:49:34.000Z | 2020-07-20T23:07:01.000Z | scripts/paint_bucket.lua | iamOgunyinka/tests | 522825129820a2b0822980509540e1830fd76bea | [
"MIT"
] | 4 | 2021-09-23T18:03:15.000Z | 2021-12-15T18:09:42.000Z | scripts/paint_bucket.lua | iamOgunyinka/tests | 522825129820a2b0822980509540e1830fd76bea | [
"MIT"
] | 3 | 2018-08-13T07:07:52.000Z | 2021-09-20T10:08:39.000Z | -- Copyright (C) 2020-2021 Igara Studio S.A.
--
-- This file is released under the terms of the MIT license.
-- Read LICENSE.txt for more information.
dofile('./test_utils.lua')
app.activeTool = 'paint_bucket'
assert(app.activeTool.id == 'paint_bucket')
assert(app.activeBrush.type == BrushType.CIRCLE)
assert(app.act... | 34.017857 | 89 | 0.595276 |
0dbb9b6548cedde6b1eb97ba17dd9fcfd09ef172 | 916 | cshtml | C# | src/Payments.Emails/Views/Shared/_Layout.cshtml | ucdavis/payments | c9ee57801f1f51c7605cbcf646b2dfa5d9405671 | [
"MIT"
] | null | null | null | src/Payments.Emails/Views/Shared/_Layout.cshtml | ucdavis/payments | c9ee57801f1f51c7605cbcf646b2dfa5d9405671 | [
"MIT"
] | 130 | 2016-11-30T17:33:10.000Z | 2022-02-17T22:26:35.000Z | src/Payments.Emails/Views/Shared/_Layout.cshtml | ucdavis/payments | c9ee57801f1f51c7605cbcf646b2dfa5d9405671 | [
"MIT"
] | null | null | null | @using Payments.Core.Domain
@using RazorLight
@inherits TemplatePage<dynamic>
@{
var team = (Team) ViewBag.Team;
}
<mjml lang="en-us">
<mj-head>
</mj-head>
<mj-body background-color="#fff">
<mj-section padding-top="0" background-color="#f3f3f3">
<mj-column padding="0">
... | 27.757576 | 205 | 0.561135 |
d9fdfbe33e1ec76f66ecc92a5b9d5a79c2128b9e | 549 | sql | SQL | ADHDatabaseProject/dbo/Stored Procedures/spTestRequests_AddNewRequest.sql | AhmedDuraid/ADH-Medical-System | fd47cec5dc71d72b6d0ad8274398005f7c6996b6 | [
"MIT"
] | null | null | null | ADHDatabaseProject/dbo/Stored Procedures/spTestRequests_AddNewRequest.sql | AhmedDuraid/ADH-Medical-System | fd47cec5dc71d72b6d0ad8274398005f7c6996b6 | [
"MIT"
] | null | null | null | ADHDatabaseProject/dbo/Stored Procedures/spTestRequests_AddNewRequest.sql | AhmedDuraid/ADH-Medical-System | fd47cec5dc71d72b6d0ad8274398005f7c6996b6 | [
"MIT"
] | null | null | null | -- =============================================
-- Author: dbo
-- Create date: 2020-10-16
-- Description: AddNew request
-- =============================================
CREATE PROCEDURE spTestRequests_AddNewRequest
@Id nvarchar(128)
,@PatientId nvarchar(128)
,@TestId nvarchar(128)
,@CreatorID nvarchar(128)
AS
B... | 18.931034 | 49 | 0.510018 |
1993c0e0b3bbcd26c9ae571e4b192f650e050b00 | 385 | dart | Dart | lib/gateway/data/model/remote/weather_data.dart | bowyer-app/weather-station-flutter | da8028889242af1ab50431e075e0c2cf57fa1ab2 | [
"MIT"
] | 6 | 2021-06-06T10:52:30.000Z | 2022-03-08T14:54:59.000Z | lib/gateway/data/model/remote/weather_data.dart | bowyer-app/weather-station-flutter | da8028889242af1ab50431e075e0c2cf57fa1ab2 | [
"MIT"
] | 8 | 2021-06-04T13:01:08.000Z | 2022-03-21T18:15:51.000Z | lib/gateway/data/model/remote/weather_data.dart | bowyer-app/weather-station-flutter | da8028889242af1ab50431e075e0c2cf57fa1ab2 | [
"MIT"
] | null | null | null | import 'package:freezed_annotation/freezed_annotation.dart';
part 'weather_data.freezed.dart';
part 'weather_data.g.dart';
@freezed
class WeatherData with _$WeatherData {
factory WeatherData(
{@Default("") String description,
@Default("") String icon}) = _WeatherData;
factory WeatherData.fromJson(Ma... | 24.0625 | 60 | 0.72987 |
964dee5d71f46251d086244f1f758b020f58de56 | 1,310 | dart | Dart | lib/ui/pages/list_category_page/components/app_bar.dart | agusprayogi02/flu-indomic | 0b62595f2868a2db515a2aa729719e0bda3696e5 | [
"MIT"
] | null | null | null | lib/ui/pages/list_category_page/components/app_bar.dart | agusprayogi02/flu-indomic | 0b62595f2868a2db515a2aa729719e0bda3696e5 | [
"MIT"
] | null | null | null | lib/ui/pages/list_category_page/components/app_bar.dart | agusprayogi02/flu-indomic | 0b62595f2868a2db515a2aa729719e0bda3696e5 | [
"MIT"
] | 1 | 2021-06-21T16:03:32.000Z | 2021-06-21T16:03:32.000Z | import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:indomic/controllers/list_category_controller.dart';
import 'package:indomic/ui/utils/utils.dart';
AppBar buildAppBar() {
return AppBar(
elevation: 0,
backgroundColor: lightPrimaryC.withOpacity(0.8),
title: Text(
... | 26.2 | 67 | 0.540458 |
39171033648d5e97ba961743028825223e0906a7 | 1,152 | lua | Lua | Test/TestNILModule.lua | jpbubble/NIL-isn-t-Lua | 47ffccd02696ef1ef1638ebb70a9b4416a4ed0f2 | [
"MIT"
] | 2 | 2020-07-29T06:23:31.000Z | 2020-08-03T22:39:38.000Z | Test/TestNILModule.lua | jpbubble/NIL-isn-t-Lua | 47ffccd02696ef1ef1638ebb70a9b4416a4ed0f2 | [
"MIT"
] | 50 | 2019-04-30T16:23:50.000Z | 2019-09-13T08:16:10.000Z | Test/TestNILModule.lua | jpbubble/NIL-isn-t-Lua | 47ffccd02696ef1ef1638ebb70a9b4416a4ed0f2 | [
"MIT"
] | 1 | 2019-05-08T20:16:01.000Z | 2019-05-08T20:16:01.000Z | --[[
***********************************************************
TestNILModule.lua
This particular file has been released in the public domain
and is therefore free of any restriction. You are allowed
to credit me as the original author, but this is not
required.
This file was setup/modified in:
If the law of your cou... | 20.210526 | 60 | 0.652778 |
2b65a6214d4cdd3d0a98bda890ae6a4ce7d781c6 | 2,945 | rb | Ruby | app/controllers/admin/offerings/restrictions/exemptions_controller.rb | uwexpd/expo | 17315640d6db7bcbbf0e6f9c275b9194ac1bbe8f | [
"Unlicense"
] | null | null | null | app/controllers/admin/offerings/restrictions/exemptions_controller.rb | uwexpd/expo | 17315640d6db7bcbbf0e6f9c275b9194ac1bbe8f | [
"Unlicense"
] | 1 | 2020-07-15T21:53:05.000Z | 2020-07-15T21:53:05.000Z | app/controllers/admin/offerings/restrictions/exemptions_controller.rb | uwexpd/expo | 17315640d6db7bcbbf0e6f9c275b9194ac1bbe8f | [
"Unlicense"
] | 1 | 2019-10-02T11:12:58.000Z | 2019-10-02T11:12:58.000Z | class Admin::Offerings::Restrictions::ExemptionsController < Admin::Offerings::RestrictionsController
before_filter :fetch_restriction
before_filter :add_exemptions_breadcrumbs
def index
@exemptions = @restriction.exemptions.all
respond_to do |format|
format.html # index.html.erb
format.x... | 31 | 111 | 0.675042 |
ec253a6b9ccff5840ede9b140c69d504c1eff0e4 | 735 | rb | Ruby | lib/soulmate/matcher.rb | jwarchol/soulmate-goliath | 879586747018d4ac5d0f78ecf2b1a57ec3e84621 | [
"MIT"
] | 2 | 2015-11-05T05:23:08.000Z | 2019-05-14T11:59:31.000Z | lib/soulmate/matcher.rb | jwarchol/soulmate-goliath | 879586747018d4ac5d0f78ecf2b1a57ec3e84621 | [
"MIT"
] | null | null | null | lib/soulmate/matcher.rb | jwarchol/soulmate-goliath | 879586747018d4ac5d0f78ecf2b1a57ec3e84621 | [
"MIT"
] | null | null | null | module Soulmate
class Matcher < Base
def matches_for_term(term, options = {})
words = normalize(term).split(' ').reject do |w|
w.size < MIN_COMPLETE or STOP_WORDS.include?(w)
end.sort
options[:limit] ||= 5
cachekey = "#{cachebase}:" + words.join('|')
if !Soulmate.redis.e... | 29.4 | 88 | 0.609524 |
79a06129e1a4e8f9e9f8d753888b65ce029de2dd | 2,301 | php | PHP | resources/views/admin/products/index.blade.php | weihong19971222/nintendo | ca6dcbd0d2eea23652cac677a02ac8c481d2d4e1 | [
"MIT"
] | null | null | null | resources/views/admin/products/index.blade.php | weihong19971222/nintendo | ca6dcbd0d2eea23652cac677a02ac8c481d2d4e1 | [
"MIT"
] | null | null | null | resources/views/admin/products/index.blade.php | weihong19971222/nintendo | ca6dcbd0d2eea23652cac677a02ac8c481d2d4e1 | [
"MIT"
] | null | null | null | @extends('layouts/app2')
@section('css')
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.22/css/dataTables.bootstrap4.min.css">
@endsection
@section('content')
<a class="btn btn-info mb-3" href="/admin/products/create">新增商品</a>
<table id="example" class="table table-striped table-bordered" style="wid... | 35.4 | 136 | 0.480661 |
7027cdbb9be5fdb17bab6135670339352cb93e72 | 1,100 | lua | Lua | game/dota_addons/dota_imba_reborn/scripts/vscripts/components/hero_selection.lua | EarthSalamander42/dota_imba | 3be7127094e3752bcd8630145a669811675b7949 | [
"Apache-2.0"
] | 105 | 2018-07-10T11:53:23.000Z | 2022-03-31T21:00:27.000Z | game/dota_addons/dota_imba_reborn/scripts/vscripts/components/hero_selection.lua | EarthSalamander42/dota_imba | 3be7127094e3752bcd8630145a669811675b7949 | [
"Apache-2.0"
] | 52 | 2018-08-14T09:18:49.000Z | 2021-09-22T12:24:36.000Z | game/dota_addons/dota_imba_reborn/scripts/vscripts/components/hero_selection.lua | EarthSalamander42/dota_imba | 3be7127094e3752bcd8630145a669811675b7949 | [
"Apache-2.0"
] | 34 | 2018-08-06T20:32:59.000Z | 2022-03-31T14:20:11.000Z | if not HeroSelection then
HeroSelection = class({})
HeroSelection.herolist = {}
HeroSelection.imbalist = {}
end
ListenToGameEvent('game_rules_state_change', function()
if GameRules:State_Get() == DOTA_GAMERULES_STATE_HERO_SELECTION then
HeroSelection:Init()
end
end, nil)
function HeroSelection:Init()
local he... | 27.5 | 103 | 0.741818 |
b34e65161cb58e31a73e1f60bad43fc81c1e0f3f | 2,822 | rs | Rust | attacker/src/lib.rs | jtimberlake/cherrybomb | d24c0864d0d88bfbd3b4270e3f2d79ab92bf0d5d | [
"Apache-2.0"
] | 183 | 2022-01-31T14:22:23.000Z | 2022-03-29T14:54:35.000Z | attacker/src/lib.rs | jtimberlake/cherrybomb | d24c0864d0d88bfbd3b4270e3f2d79ab92bf0d5d | [
"Apache-2.0"
] | 5 | 2022-01-31T15:20:22.000Z | 2022-03-31T05:24:43.000Z | attacker/src/lib.rs | jtimberlake/cherrybomb | d24c0864d0d88bfbd3b4270e3f2d79ab92bf0d5d | [
"Apache-2.0"
] | 10 | 2022-02-01T01:45:08.000Z | 2022-03-31T07:56:28.000Z | use decider::Anomaly;
use mapper::digest::*;
use serde::{Deserialize, Serialize};
use std::fs::OpenOptions;
use std::io::Write;
mod genetic;
pub use genetic::*;
mod genome;
use genome::*;
mod attack;
use attack::*;
mod auth;
pub use auth::*;
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
pub struct At... | 27.666667 | 90 | 0.558469 |
ff9bc5ab4842e7843a1b236ef9a6f7677a154cd1 | 7,505 | py | Python | ImageAnalysisSanSalvadorCNN.py | falbav/Image-Analysis-San-Salvador | c2cb2a27ffed3b134ceb329d9358563d374bddd9 | [
"MIT"
] | 1 | 2021-04-22T23:05:49.000Z | 2021-04-22T23:05:49.000Z | ImageAnalysisSanSalvadorCNN.py | falbav/Image-Analysis-San-Salvador | c2cb2a27ffed3b134ceb329d9358563d374bddd9 | [
"MIT"
] | null | null | null | ImageAnalysisSanSalvadorCNN.py | falbav/Image-Analysis-San-Salvador | c2cb2a27ffed3b134ceb329d9358563d374bddd9 | [
"MIT"
] | null | null | null | """
This code explores Different Models of Convolutional Neural Networks
for the San Salvador Gang Project
@author: falba and ftop
"""
import os
import google_streetview.api
import pandas as pd
import numpy as np
import sys
import matplotlib.image as mp_img
from matplotlib import pyplot as plot
from skima... | 31.533613 | 122 | 0.72445 |
4483085aa1a5617f634634d102a9b9e536d610e8 | 931 | py | Python | testproject/fiber_test/test_util.py | bsimons/django-fiber | 0f4b03217a4aeba6b48908825507fbe8c5732c8d | [
"Apache-2.0"
] | null | null | null | testproject/fiber_test/test_util.py | bsimons/django-fiber | 0f4b03217a4aeba6b48908825507fbe8c5732c8d | [
"Apache-2.0"
] | null | null | null | testproject/fiber_test/test_util.py | bsimons/django-fiber | 0f4b03217a4aeba6b48908825507fbe8c5732c8d | [
"Apache-2.0"
] | null | null | null | import re
from django.template import Template, Context
try:
from django.utils.timezone import make_aware, utc
except ImportError:
make_aware, utc = None, None
def format_list(l, must_sort=True, separator=' '):
"""
Format a list as a string. Default the items in the list are sorted.
E.g.
>>>... | 25.162162 | 99 | 0.619764 |
c6e5e9ca5bba0334cc99aaf95af172aebe594614 | 354 | css | CSS | assets/css/footer.css | GilangBrilians/obati | 137d6c204a9e8f64acdf78e704f2ac8e873aab00 | [
"MIT"
] | null | null | null | assets/css/footer.css | GilangBrilians/obati | 137d6c204a9e8f64acdf78e704f2ac8e873aab00 | [
"MIT"
] | null | null | null | assets/css/footer.css | GilangBrilians/obati | 137d6c204a9e8f64acdf78e704f2ac8e873aab00 | [
"MIT"
] | null | null | null | footer {
padding: 1em;
background: #74BDCB;
font-family: Roboto;
}
footer a {
color: #FFFFFF;
font-weight: 700;
}
footer a:hover {
color: var(--passive-dark);
}
footer h4 {
color: #FFFFFF;
}
footer p {
color: #FFFFFF;
}
span {
font-size: 0.7em;
font-family: Roboto;
}
.page-break {... | 8.634146 | 31 | 0.587571 |
b13ccfad2951d647cb40f2c1270d80f96834712b | 1,734 | py | Python | tensorflowpractice/MNIST_data/transform.py | nifannn/MachineLearningNotes | de38b2072a52a22483168fb10ac2cb896826c7e5 | [
"MIT"
] | 1 | 2021-11-11T14:52:11.000Z | 2021-11-11T14:52:11.000Z | tensorflowpractice/MNIST_data/transform.py | nifannn/MachineLearningNotes | de38b2072a52a22483168fb10ac2cb896826c7e5 | [
"MIT"
] | null | null | null | tensorflowpractice/MNIST_data/transform.py | nifannn/MachineLearningNotes | de38b2072a52a22483168fb10ac2cb896826c7e5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from PIL import Image
import struct
import csv
import progressbar
def read_image(filename, saveaddr):
with open(filename, 'rb') as f:
buf = f.read()
index = 0
magic, number, rows, cols = struct.unpack_from('>IIII', buf, index)
index += struct.calcsize('>IIII')
readbar = progressbar.Pro... | 27.52381 | 76 | 0.67474 |
c2df81ed9b7feb3c6f937724c126f8937383c722 | 826 | sql | SQL | Lab2/scripts/triggerAndProcedure.sql | yzghurovskyi/RelationalDBsLabs | 13eed8c027f9b721e61edfc92d9ab2f38dcca7b2 | [
"MIT"
] | null | null | null | Lab2/scripts/triggerAndProcedure.sql | yzghurovskyi/RelationalDBsLabs | 13eed8c027f9b721e61edfc92d9ab2f38dcca7b2 | [
"MIT"
] | null | null | null | Lab2/scripts/triggerAndProcedure.sql | yzghurovskyi/RelationalDBsLabs | 13eed8c027f9b721e61edfc92d9ab2f38dcca7b2 | [
"MIT"
] | 2 | 2018-12-25T11:30:41.000Z | 2019-11-19T21:58:04.000Z | CREATE OR REPLACE FUNCTION process_club_audit() RETURNS TRIGGER AS $club_audit$
BEGIN
IF (TG_OP = 'DELETE') THEN
INSERT INTO clubs_audit
SELECT nextval('audit_id_seq'), 'D'::char, now(), user, OLD.club_id;
RETURN OLD;
ELSIF (TG_OP = 'UPDATE') THEN
INSE... | 37.545455 | 80 | 0.610169 |
1a5deced67a2828d31afaddfb51aa5b844c7631f | 6,106 | cs | C# | base/Windows/BuildTasks/TaskBase.cs | sphinxlogic/Singularity-RDK-2.0 | 2968c3b920a5383f7360e3e489aa772f964a7c42 | [
"MIT"
] | null | null | null | base/Windows/BuildTasks/TaskBase.cs | sphinxlogic/Singularity-RDK-2.0 | 2968c3b920a5383f7360e3e489aa772f964a7c42 | [
"MIT"
] | null | null | null | base/Windows/BuildTasks/TaskBase.cs | sphinxlogic/Singularity-RDK-2.0 | 2968c3b920a5383f7360e3e489aa772f964a7c42 | [
"MIT"
] | null | null | null | // ----------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ----------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Text;
using Microsof... | 30.378109 | 128 | 0.504586 |
14eed5172e267f3139ed5a2d73f778f134eefe9b | 34 | ts | TypeScript | src/app/staff/index.ts | sniper-ninja/MIS_SYSTEM | e4edbc0a66d9c35623e9c08a71109120e4993f3b | [
"MIT"
] | null | null | null | src/app/staff/index.ts | sniper-ninja/MIS_SYSTEM | e4edbc0a66d9c35623e9c08a71109120e4993f3b | [
"MIT"
] | 8 | 2021-03-10T17:23:53.000Z | 2022-02-27T04:19:54.000Z | src/app/staff/index.ts | thechamp325/frontend24_9 | c2699d65c839b405c473372c74aa8b69b1c297c6 | [
"MIT"
] | 1 | 2019-09-10T02:58:04.000Z | 2019-09-10T02:58:04.000Z | export * from './staff.component'; | 34 | 34 | 0.705882 |
23a045018c745b728f97a9aeba167c1f0d78390b | 128 | js | JavaScript | Blob_Lib/glfw-3.3.7/glfw/docs/html/search/variables_7.js | antholuo/Blob_Traffic | 5d6acf88044e9abc63c0ff356714179eaa4b75bf | [
"MIT"
] | null | null | null | Blob_Lib/glfw-3.3.7/glfw/docs/html/search/variables_7.js | antholuo/Blob_Traffic | 5d6acf88044e9abc63c0ff356714179eaa4b75bf | [
"MIT"
] | null | null | null | Blob_Lib/glfw-3.3.7/glfw/docs/html/search/variables_7.js | antholuo/Blob_Traffic | 5d6acf88044e9abc63c0ff356714179eaa4b75bf | [
"MIT"
] | null | null | null | version https://git-lfs.github.com/spec/v1
oid sha256:dfe8067e32d70806198b8fd156a8a23b580f1d93a7c23cba20c905c3a0b9bfea
size 219
| 32 | 75 | 0.882813 |
1496ce6c0018f81f6e04305657fb7471155885f0 | 133 | ts | TypeScript | packages/espoir-cli/lib/runnable/self-update/index.d.ts | AntoineYANG/electron-react-cli | 83b477c7786c6624e430f9ac0b2516d97a19666a | [
"MIT"
] | null | null | null | packages/espoir-cli/lib/runnable/self-update/index.d.ts | AntoineYANG/electron-react-cli | 83b477c7786c6624e430f9ac0b2516d97a19666a | [
"MIT"
] | null | null | null | packages/espoir-cli/lib/runnable/self-update/index.d.ts | AntoineYANG/electron-react-cli | 83b477c7786c6624e430f9ac0b2516d97a19666a | [
"MIT"
] | null | null | null | import RunnableScript from '@runnable';
/**
* @since 1.0.0
*/
declare const SelfUpdate: RunnableScript;
export default SelfUpdate;
| 19 | 41 | 0.744361 |
126df0d0b6af194128e85b99bff3977f5cbbad09 | 429 | cs | C# | Source/SharpVectorCore/Svg/Painting/ISvgPaint.cs | johncao158/SharpVectors | 6b72acccdc44e7b6062ab0119c7a2d90e7c2392c | [
"BSD-3-Clause"
] | 450 | 2017-12-17T20:49:46.000Z | 2022-03-30T02:55:40.000Z | Source/SharpVectorCore/Svg/Painting/ISvgPaint.cs | johncao158/SharpVectors | 6b72acccdc44e7b6062ab0119c7a2d90e7c2392c | [
"BSD-3-Clause"
] | 192 | 2017-11-29T02:32:28.000Z | 2021-12-27T21:47:24.000Z | Source/SharpVectorCore/Svg/Painting/ISvgPaint.cs | johncao158/SharpVectors | 6b72acccdc44e7b6062ab0119c7a2d90e7c2392c | [
"BSD-3-Clause"
] | 112 | 2018-01-10T07:17:27.000Z | 2022-03-02T06:29:17.000Z | namespace SharpVectors.Dom.Svg
{
/// <summary>
/// The SvgPaint interface corresponds to basic type paint and represents the values of
/// properties 'fill' and 'stroke'.
/// </summary>
public interface ISvgPaint : ISvgColor
{
SvgPaintType PaintType{get;}
string Uri{get;}
void SetUri ( stri... | 26.8125 | 90 | 0.682984 |
75d4793c6b6a59e2852780ea3690ee384d180a83 | 251 | css | CSS | src/components/Navbar/style.css | AlexandreCMoraes/projeto-geek-react | d91b6cfb1c9a70069ca3b7133d542051074e5a52 | [
"MIT"
] | null | null | null | src/components/Navbar/style.css | AlexandreCMoraes/projeto-geek-react | d91b6cfb1c9a70069ca3b7133d542051074e5a52 | [
"MIT"
] | null | null | null | src/components/Navbar/style.css | AlexandreCMoraes/projeto-geek-react | d91b6cfb1c9a70069ca3b7133d542051074e5a52 | [
"MIT"
] | null | null | null | @import url('https://fonts.googleapis.com/css2?family=Nerko+One&family=Roboto&display=swap');
.geral{
font-family: 'Nerko One', cursive;
font-size: 25px;
background-color: #8e249c;
box-shadow: 2px 10px 10px black;
}
.logoNome{
} | 20.916667 | 93 | 0.673307 |
63cc39d178e1ccbf55d8a1c46ed24536025571c3 | 3,581 | dart | Dart | lib/app/modules/search_results/search_results_controller.dart | 7ANV1R/RoveAssist | 5b7cc71171bb03faa30ebde463e0e4766bfda261 | [
"MIT"
] | 2 | 2021-10-12T05:32:38.000Z | 2021-11-04T22:01:39.000Z | lib/app/modules/search_results/search_results_controller.dart | 7ANV1R/RoveAssist | 5b7cc71171bb03faa30ebde463e0e4766bfda261 | [
"MIT"
] | null | null | null | lib/app/modules/search_results/search_results_controller.dart | 7ANV1R/RoveAssist | 5b7cc71171bb03faa30ebde463e0e4766bfda261 | [
"MIT"
] | null | null | null | import 'dart:convert';
import 'package:flutter/cupertino.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';
import 'package:get/get.dart';
import 'package:http/http.dart' as http;
import 'package:roveassist/app/data/models/service_model/place_model.dart';
import 'package:roveassist/app/data/models/service_mod... | 31.690265 | 84 | 0.646188 |
473033793ca1b021402587d30137b92a5d6b3ab6 | 1,738 | rb | Ruby | lib/scaffold/generators/views_generator.rb | gudata/scaffold_pico | 04bdf0213f51e6743da584e31944cafe7ae569cc | [
"MIT"
] | 21 | 2016-12-18T16:48:05.000Z | 2022-03-12T09:37:27.000Z | lib/scaffold/generators/views_generator.rb | gudata/scaffold_pico | 04bdf0213f51e6743da584e31944cafe7ae569cc | [
"MIT"
] | 8 | 2017-03-20T14:20:55.000Z | 2022-02-26T03:44:18.000Z | lib/scaffold/generators/views_generator.rb | gudata/scaffold_pico | 04bdf0213f51e6743da584e31944cafe7ae569cc | [
"MIT"
] | 3 | 2016-12-18T19:13:55.000Z | 2018-05-03T07:36:16.000Z | module Scaffold
module Generators
class ViewsGenerator < Scaffold::Generators::BaseGenerator
attr :css_framework, false
attr :template, false
def generate template, css_framework
@css_framework = css_framework
@template = template
views_path = create_views_path
... | 30.491228 | 118 | 0.658803 |
b01dca4c7fd50c169eb78f6cd96703e886ac93bb | 4,976 | py | Python | src/data/make_dataset.py | maycownd/deep-learning-fashion-mnist | bbaf0c952d92f37f40052d76470c44fc3d71bad5 | [
"MIT"
] | null | null | null | src/data/make_dataset.py | maycownd/deep-learning-fashion-mnist | bbaf0c952d92f37f40052d76470c44fc3d71bad5 | [
"MIT"
] | null | null | null | src/data/make_dataset.py | maycownd/deep-learning-fashion-mnist | bbaf0c952d92f37f40052d76470c44fc3d71bad5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import click
import logging
from dotenv import find_dotenv, load_dotenv
import pandas as pd
import numpy as np
from PIL import Image
PATH_TRAIN = "data/raw/fashion-mnist_train.csv"
PATH_TEST = "data/raw/fashion-mnist_test.csv"
DATA_PATH = "data/raw/"
dict_fashion = {
0: 'T-shirt/... | 32.953642 | 87 | 0.635651 |
e243967487eee46a415e887eaa8e1ac94e34fbda | 5,669 | js | JavaScript | obj/Release/netcoreapp3.1/PubTmp/Out/wwwroot/_content/Syncfusion.Blazor/scripts/sf-barcode-866b4e.min.js | onejbsmith/BlazorTrader | aa05db83334e3a1980c627127d144e98c26d79e6 | [
"MIT"
] | null | null | null | obj/Release/netcoreapp3.1/PubTmp/Out/wwwroot/_content/Syncfusion.Blazor/scripts/sf-barcode-866b4e.min.js | onejbsmith/BlazorTrader | aa05db83334e3a1980c627127d144e98c26d79e6 | [
"MIT"
] | null | null | null | obj/Release/netcoreapp3.1/PubTmp/Out/wwwroot/_content/Syncfusion.Blazor/scripts/sf-barcode-866b4e.min.js | onejbsmith/BlazorTrader | aa05db83334e3a1980c627127d144e98c26d79e6 | [
"MIT"
] | null | null | null | !function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d... | 5,669 | 5,669 | 0.698889 |