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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7acd2794a54f8046e70aaecc7b9c1522f2f89254 | 2,183 | cs | C# | src/CtrlNet.Util/Mapping/MapperExtensions.cs | fhcodegit/CtrlNet.Util | b8e862a826c9893f13eb30d852bf3e2eeeb4589e | [
"MIT"
] | 4 | 2019-08-01T02:59:02.000Z | 2019-10-07T10:25:51.000Z | src/CtrlNet.Util/Mapping/MapperExtensions.cs | hueifeng/CtrlNet.Util | b8e862a826c9893f13eb30d852bf3e2eeeb4589e | [
"MIT"
] | 1 | 2020-02-10T12:18:00.000Z | 2020-02-10T12:18:00.000Z | src/CtrlNet.Util/Mapping/MapperExtensions.cs | hueifeng/CtrlNet.Util | b8e862a826c9893f13eb30d852bf3e2eeeb4589e | [
"MIT"
] | 3 | 2019-08-01T02:59:21.000Z | 2019-10-07T10:48:03.000Z | using AgileObjects.AgileMapper;
using System.Linq;
namespace CtrlNet.Util.Mapping
{
/// <summary>
/// 对象映射扩展
/// </summary>
public static class MapperExtensions
{
/// <summary>
/// 深度克隆
/// </summary>
/// <typeparam name="TSource"></typeparam>
/// <param n... | 32.58209 | 113 | 0.539624 |
ff6cf14a4cea1606a4adf0c362e58675add26049 | 829 | py | Python | src/maggma/api/query_operator/sorting.py | materialsproject/maggflow | 9f8d7a0865ec13212a3fd00d5edebd3cb7b40e7d | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/maggma/api/query_operator/sorting.py | materialsproject/maggflow | 9f8d7a0865ec13212a3fd00d5edebd3cb7b40e7d | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/maggma/api/query_operator/sorting.py | materialsproject/maggflow | 9f8d7a0865ec13212a3fd00d5edebd3cb7b40e7d | [
"BSD-3-Clause-LBNL"
] | null | null | null | from typing import Optional, List
from fastapi import HTTPException, Query
from maggma.api.query_operator import QueryOperator
from maggma.api.utils import STORE_PARAMS
class SortQuery(QueryOperator):
"""
Method to generate the sorting portion of a query
"""
def query(
self,
_sort_f... | 25.121212 | 66 | 0.581423 |
9f66f110184d59bed09e55cf12a91141b821ebc2 | 1,628 | swift | Swift | Example/WPAppKit/PresentPopViewViewController.swift | WHeB/WPAppKit | 3b5e9e0d97f2d92c283ff12035bb154187dc7e27 | [
"MIT"
] | 5 | 2019-10-14T07:53:08.000Z | 2020-11-02T05:35:54.000Z | Example/WPAppKit/PresentPopViewViewController.swift | WHeB/WPAppKit | 3b5e9e0d97f2d92c283ff12035bb154187dc7e27 | [
"MIT"
] | null | null | null | Example/WPAppKit/PresentPopViewViewController.swift | WHeB/WPAppKit | 3b5e9e0d97f2d92c283ff12035bb154187dc7e27 | [
"MIT"
] | null | null | null | //
// PresentPopViewViewController.swift
// WPAppKit_Example
//
// Created by 王鹏 on 2019/9/25.
// Copyright © 2019 CocoaPods. All rights reserved.
//
import UIKit
class PresentPopViewViewController: UIViewController {
private var popView: UIView!
override func viewWillAppear(_ animated: Bool) {... | 30.148148 | 102 | 0.62715 |
4636f14063a639467f47140a64545857150ba091 | 874 | php | PHP | application/views/blank.php | mhaerul/project1 | d636817093b4f7a7b4528b7a62f7b6f050364053 | [
"MIT"
] | null | null | null | application/views/blank.php | mhaerul/project1 | d636817093b4f7a7b4528b7a62f7b6f050364053 | [
"MIT"
] | null | null | null | application/views/blank.php | mhaerul/project1 | d636817093b4f7a7b4528b7a62f7b6f050364053 | [
"MIT"
] | null | null | null | <div id="wrapper">
<ul class="sidebar navbar-nav">
<li class="nav-item">
<a class="nav-link" href="<?php echo base_url(); ?>index.php/karyawan">
<i class="fas fa-fw fa-user"></i>
<span>Karyawan</span>
</a>
</li>
</ul>
<div id="content-wrapper">
<div class="container-fluid">... | 25.705882 | 77 | 0.542334 |
438c0ac979a808d7c4c58dec4b12844640066890 | 2,201 | ts | TypeScript | ngx-tl-common-sample/src/app/services/component-preferences.service.ts | vbeauplet/ngx-tl-common | 14975f1ba5afddbd61097e86496cceb265204828 | [
"MIT"
] | 4 | 2021-03-13T18:03:55.000Z | 2021-05-26T10:45:34.000Z | ngx-tl-common-sample/src/app/services/component-preferences.service.ts | vbeauplet/ngx-tl-common | 14975f1ba5afddbd61097e86496cceb265204828 | [
"MIT"
] | null | null | null | ngx-tl-common-sample/src/app/services/component-preferences.service.ts | vbeauplet/ngx-tl-common | 14975f1ba5afddbd61097e86496cceb265204828 | [
"MIT"
] | null | null | null | import { Injectable } from '@angular/core';
import { Subject } from 'rxjs';
import { ITlSelectProposal } from 'ngx-tl-common';
export interface IComponentStyle{
tlStyle: string,
subTlStyle: string;
size: string,
shape: string
subShape: string;
color: string;
}
@Injectable({
providedIn: 'root'
})
export ... | 21.163462 | 81 | 0.6597 |
a35360f9dd2891366639c3d8c2877feed98bf07e | 5,205 | java | Java | oscm-accountmgmt-unittests/javasrc/org/oscm/accountservice/bean/UserLicenseServiceLocalBeanTest.java | TecArt/servicecatalog-development | 1959abd7e4905d1e39bb5583268e9afadf5e892a | [
"Apache-2.0"
] | 56 | 2015-10-06T15:09:39.000Z | 2021-08-09T01:18:03.000Z | oscm-accountmgmt-unittests/javasrc/org/oscm/accountservice/bean/UserLicenseServiceLocalBeanTest.java | TecArt/servicecatalog-development | 1959abd7e4905d1e39bb5583268e9afadf5e892a | [
"Apache-2.0"
] | 845 | 2016-02-10T14:06:17.000Z | 2020-10-20T07:44:09.000Z | oscm-accountmgmt-unittests/javasrc/org/oscm/accountservice/bean/UserLicenseServiceLocalBeanTest.java | TecArt/servicecatalog-development | 1959abd7e4905d1e39bb5583268e9afadf5e892a | [
"Apache-2.0"
] | 41 | 2015-10-22T14:22:23.000Z | 2022-03-18T07:55:15.000Z | /*******************************************************************************
*
* Copyright FUJITSU LIMITED 2017
* ... | 36.145833 | 131 | 0.622094 |
4ce359d2d70da6141d571bfc5f73cf5429be8923 | 7,174 | py | Python | tests/api/config_test.py | Cal-CS-61A-Staff/templar | 2c2a5a544da377e3c311750fadd6606bba3b7e75 | [
"MIT"
] | 6 | 2015-05-04T06:17:49.000Z | 2021-09-11T00:13:14.000Z | tests/api/config_test.py | albert12132/templar | 39851c89730ab69e5c73d0a46adca2a44ecc4165 | [
"MIT"
] | 17 | 2015-01-07T03:25:47.000Z | 2016-10-08T03:53:44.000Z | tests/api/config_test.py | Cal-CS-61A-Staff/templar | 2c2a5a544da377e3c311750fadd6606bba3b7e75 | [
"MIT"
] | 6 | 2015-10-08T11:37:17.000Z | 2019-06-03T21:27:52.000Z | """Tests templar/api/config.py"""
from templar.api.config import ConfigBuilder
from templar.api.config import ConfigBuilderError
from templar.api.rules.core import Rule
import unittest
import mock
class ConfigBuilderTest(unittest.TestCase):
def testEmptyBuilder(self):
config = ConfigBuilder().build()
... | 42.702381 | 97 | 0.668943 |
29c5e6d47470758a8509559aa2f2d24b13c3dae6 | 4,801 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48_notsx.log_21829_523.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48_notsx.log_21829_523.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48_notsx.log_21829_523.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r15
push %rbx
push %rcx
push %rdx
lea addresses_D_ht+0x1a148, %rcx
nop
nop
nop
nop
nop
xor %r10, %r10
mov $0x6162636465666768, %r11
movq %r11, %xmm4
movups %xmm4, (%rcx)
nop
nop
add %r15, %r15
lea addresses_A_ht+0xb98a, %rbx
nop
nop
nop
cmp %rdx, %r... | 47.534653 | 2,999 | 0.657155 |
2fa13ee457543f3924333a36c7c6e4d2244025ed | 803 | py | Python | incident/migrations/0008_auto_20200528_1307.py | BuildForSDG/team-271-backend | db2bd8eb5f4d9f46bd6baff05e0e705aba883a83 | [
"MIT"
] | 1 | 2020-08-20T01:24:46.000Z | 2020-08-20T01:24:46.000Z | incident/migrations/0008_auto_20200528_1307.py | BuildForSDG/team-271-backend | db2bd8eb5f4d9f46bd6baff05e0e705aba883a83 | [
"MIT"
] | 12 | 2020-05-13T04:40:32.000Z | 2022-03-12T00:39:09.000Z | incident/migrations/0008_auto_20200528_1307.py | BuildForSDG/team-271-backend | db2bd8eb5f4d9f46bd6baff05e0e705aba883a83 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.6 on 2020-05-28 10:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('incident', '0007_incident_reporter'),
]
operations = [
migrations.AlterField(
model_name='incident',
name='plateNumb... | 26.766667 | 72 | 0.590286 |
dbd5e874fc5d939372571a280ccfd9b6681aaf9d | 943 | php | PHP | resources/views/clients/clientinfos.blade.php | FallouNdiaye/FallouNdiaye | e3de810f613d9acb8997f6278eae06e0f476f304 | [
"MIT"
] | null | null | null | resources/views/clients/clientinfos.blade.php | FallouNdiaye/FallouNdiaye | e3de810f613d9acb8997f6278eae06e0f476f304 | [
"MIT"
] | null | null | null | resources/views/clients/clientinfos.blade.php | FallouNdiaye/FallouNdiaye | e3de810f613d9acb8997f6278eae06e0f476f304 | [
"MIT"
] | null | null | null |
@extends('layout')
@section('content')
<h6>{{$client}}</h6>
{{-- <span>{{$client->profil? $client->profil->path : "pas d'image" }}</span> --}}
<img src="{{Storage::url($client->profil->path)}}" alt="">
<hr>
@forelse ( $client->commentaires as $commentaire )
<div>
{{$commentaire->content}} | cree ... | 33.678571 | 103 | 0.601273 |
a42ce51580babd0ab384cd7d1abec57fbcf899bb | 2,816 | swift | Swift | Yep/Extensions/NSURL+Yep.swift | zhangjiehua/Yep | 0e90d7a2a6dabb1cb3fe25c973e8d106b2cc5afc | [
"MIT"
] | 6,790 | 2016-02-01T14:39:40.000Z | 2022-03-23T09:31:04.000Z | Yep/Extensions/NSURL+Yep.swift | zhangjiehua/Yep | 0e90d7a2a6dabb1cb3fe25c973e8d106b2cc5afc | [
"MIT"
] | 673 | 2016-02-01T14:46:08.000Z | 2021-06-09T10:09:57.000Z | Yep/Extensions/NSURL+Yep.swift | zhangjiehua/Yep | 0e90d7a2a6dabb1cb3fe25c973e8d106b2cc5afc | [
"MIT"
] | 1,772 | 2016-02-01T14:40:42.000Z | 2021-12-27T09:29:34.000Z | //
// NSURL+Yep.swift
// Yep
//
// Created by nixzhu on 15/11/9.
// Copyright © 2015年 Catch Inc. All rights reserved.
//
import Foundation
import YepKit
extension NSURL {
private var allQueryItems: [NSURLQueryItem] {
if let components = NSURLComponents(URL: self, resolvingAgainstBaseURL: false), que... | 22.894309 | 124 | 0.551491 |
7dea4f5e1736a936382ac0069ce54f8cbe91f83f | 4,322 | css | CSS | WebContent/skins/default/css/helppage.css | homiak/pims-lims | 5292a55a1ce9861839e9e24062b137682ee7f2ba | [
"BSD-2-Clause"
] | null | null | null | WebContent/skins/default/css/helppage.css | homiak/pims-lims | 5292a55a1ce9861839e9e24062b137682ee7f2ba | [
"BSD-2-Clause"
] | null | null | null | WebContent/skins/default/css/helppage.css | homiak/pims-lims | 5292a55a1ce9861839e9e24062b137682ee7f2ba | [
"BSD-2-Clause"
] | null | null | null |
/*
* helppage.css
*
* Styles for the help pages
* Obsolete
*/
/********************************************************************************
* Help with old style template
******************************************************************************** */
/*styles for use in help pages
div{border: 1px soli... | 48.561798 | 140 | 0.643915 |
731eed7f95af2126220c5d491028ce3efe2ddb19 | 6,495 | lua | Lua | assets/codebase/core/game.lua | drikdrok/Ludum-Dare41 | 4d56d5aaf51b1e592a30bf8474ce23991f875880 | [
"MIT"
] | null | null | null | assets/codebase/core/game.lua | drikdrok/Ludum-Dare41 | 4d56d5aaf51b1e592a30bf8474ce23991f875880 | [
"MIT"
] | null | null | null | assets/codebase/core/game.lua | drikdrok/Ludum-Dare41 | 4d56d5aaf51b1e592a30bf8474ce23991f875880 | [
"MIT"
] | null | null | null | game = class("game")
local heartImage = love.graphics.newImage("assets/gfx/hud/heart.png")
function game:initialize()
createSoundEffects()
self.fonts = {}
self.font = love.graphics.newFont("assets/gfx/fonts/04B_03__.ttf")
love.graphics.setFont(self.font)
camera = Camera(players[controller.currentPlayer].x, pl... | 24.235075 | 193 | 0.692841 |
25a1abd506dd1a14db57fe74b92d6514f75668d5 | 491 | cshtml | C# | FullStackReference/FullStackReference/Views/Home/Index.cshtml | hobbyPastor/FullStack-AngularJS-reference-code | fbf8611c04bb986dd7226ae1986ae04d9d8a03b6 | [
"MIT"
] | null | null | null | FullStackReference/FullStackReference/Views/Home/Index.cshtml | hobbyPastor/FullStack-AngularJS-reference-code | fbf8611c04bb986dd7226ae1986ae04d9d8a03b6 | [
"MIT"
] | null | null | null | FullStackReference/FullStackReference/Views/Home/Index.cshtml | hobbyPastor/FullStack-AngularJS-reference-code | fbf8611c04bb986dd7226ae1986ae04d9d8a03b6 | [
"MIT"
] | null | null | null | @model IEnumerable<FullStackReference.Data.Topic>
@{
ViewBag.Title = "Home Page";
ViewBag.InitModule = "homeIndex";
}
@section Scripts {
<script src="~/Js/home-index.js"></script>
}
<div ng-view></div>
<!--
@foreach (var topic in Model)
{
<div>@topic.Title</div>
<div>@topic.Body</div>
}
.message... | 23.380952 | 174 | 0.659878 |
94f06cff86aa46093f8dc5d344313eaa78558be0 | 828,940 | sql | SQL | data/open-source/extracted_sql/GTSoftware_GTRetail.sql | tushartushar/dbSmellsData | 07d53621825746fe38c27f47bead960b9cda0556 | [
"MIT"
] | 2 | 2017-11-26T22:35:16.000Z | 2019-07-23T10:40:12.000Z | data/open-source/extracted_sql/GTSoftware_GTRetail.sql | tushartushar/dbSmellsData | 07d53621825746fe38c27f47bead960b9cda0556 | [
"MIT"
] | 1 | 2019-07-23T10:40:06.000Z | 2019-07-24T03:11:21.000Z | data/open-source/extracted_sql/GTSoftware_GTRetail.sql | tushartushar/dbSmellsData | 07d53621825746fe38c27f47bead960b9cda0556 | [
"MIT"
] | 1 | 2022-01-14T14:46:23.000Z | 2022-01-14T14:46:23.000Z | INSERT INTO ubicacion_localidades VALUES (6321, 15, 'LOS CAMPAMENTOS', '5634', 0)
INSERT INTO ubicacion_localidades VALUES (3387, 4, 'PICHANAL', '0', 0)
INSERT INTO ubicacion_localidades VALUES (5172, 14, 'RETIRO', '5703', 0)
INSERT INTO ubicacion_localidades VALUES (4607, 14, 'LA AGUADA', '5831', 0)
INSERT INTO ubicac... | 79.362374 | 900 | 0.743277 |
2318e7f6865ae8f13b16caa5b316facf95bee14e | 183 | sql | SQL | scalajvm/conf/evolutions/default/1.sql | Orhideous/loglist | 6111b370d9b7b2c83e71bd109cebf6705a3fb758 | [
"MIT"
] | 5 | 2016-03-29T15:36:28.000Z | 2021-01-12T18:19:10.000Z | scalajvm/conf/evolutions/default/1.sql | Orhideous/loglist | 6111b370d9b7b2c83e71bd109cebf6705a3fb758 | [
"MIT"
] | 181 | 2015-01-01T13:32:51.000Z | 2022-01-20T14:47:47.000Z | scalajvm/conf/evolutions/default/1.sql | Orhideous/loglist | 6111b370d9b7b2c83e71bd109cebf6705a3fb758 | [
"MIT"
] | 9 | 2015-04-05T10:12:58.000Z | 2022-03-18T11:03:01.000Z | # --- !Ups
create table if not exists "QUOTE" (
"ID" bigserial primary key,
"TIME" timestamp not null,
"CONTENT" varchar not null
);
# --- !Downs
drop table if exists "QUOTE";
| 18.3 | 36 | 0.650273 |
797632b90f7086fd07de9d83745af7eaacfb9350 | 13,348 | php | PHP | vendor/dvizh/yii2-promocode/src/views/promo-code/_form.php | agapofff/nrk87 | 9ae70cad6b1ec5f509299727808bd1d35798c49d | [
"BSD-3-Clause"
] | null | null | null | vendor/dvizh/yii2-promocode/src/views/promo-code/_form.php | agapofff/nrk87 | 9ae70cad6b1ec5f509299727808bd1d35798c49d | [
"BSD-3-Clause"
] | null | null | null | vendor/dvizh/yii2-promocode/src/views/promo-code/_form.php | agapofff/nrk87 | 9ae70cad6b1ec5f509299727808bd1d35798c49d | [
"BSD-3-Clause"
] | null | null | null | <?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\bootstrap\Modal;
use kartik\date\DatePicker;
use yii\helpers\Url;
use dvizh\promocode\assets\Asset;
Asset::register($this);
?>
<div class="promo-codes-form">
<div class="container">
<?php $form = ActiveForm::begin(); ?>
<inpu... | 56.559322 | 225 | 0.331435 |
05aa4d8faad006e282020d7a7dea476b0357eb4c | 171 | py | Python | backend/healthify/wsgi.py | Rahul91/Real-Time-Chat-App | b6938a1f18115558a144bb3fc070cc8737b4d540 | [
"MIT"
] | 2 | 2016-10-04T06:26:43.000Z | 2020-12-15T20:15:43.000Z | backend/healthify/wsgi.py | Rahul91/Real-Time-Chat-App | b6938a1f18115558a144bb3fc070cc8737b4d540 | [
"MIT"
] | null | null | null | backend/healthify/wsgi.py | Rahul91/Real-Time-Chat-App | b6938a1f18115558a144bb3fc070cc8737b4d540 | [
"MIT"
] | null | null | null | from healthify import config
from healthify.app import app
__author__ = 'rahul'
if __name__ == "__main__":
app.run(debug=config.FLASK_DEBUG, port=config.FLASK_PORT)
| 21.375 | 61 | 0.766082 |
cf0396aacc406c379e2dfdd4dc18271f6604d629 | 1,348 | php | PHP | app/Models/Subcategory.php | DeezedMinds/poultry | 80126fa27e193c781fea10ef371700b352e1e6a7 | [
"MIT"
] | null | null | null | app/Models/Subcategory.php | DeezedMinds/poultry | 80126fa27e193c781fea10ef371700b352e1e6a7 | [
"MIT"
] | null | null | null | app/Models/Subcategory.php | DeezedMinds/poultry | 80126fa27e193c781fea10ef371700b352e1e6a7 | [
"MIT"
] | null | null | null | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Models\Category;
use App\Models\Product;
class Subcategory extends Model
{
use HasFactory;
protected $fillable = ['name', 'image', 'category_id'];
protected $appends = ['ful... | 21.741935 | 73 | 0.623145 |
dad7bbac9e0f1310c2ac97a64489474688d38f93 | 177 | rb | Ruby | spec/rails_admin/config/fields/types/decimal_spec.rb | jdufresne/rails_admin | 126f7ac79b2ce7846cbbed7bbca1cc26dfe46fb6 | [
"MIT"
] | 123 | 2021-10-29T20:19:25.000Z | 2022-03-30T19:04:39.000Z | spec/rails_admin/config/fields/types/decimal_spec.rb | jdufresne/rails_admin | 126f7ac79b2ce7846cbbed7bbca1cc26dfe46fb6 | [
"MIT"
] | 135 | 2021-10-30T04:46:05.000Z | 2022-03-31T09:52:56.000Z | spec/rails_admin/config/fields/types/decimal_spec.rb | jdufresne/rails_admin | 126f7ac79b2ce7846cbbed7bbca1cc26dfe46fb6 | [
"MIT"
] | 29 | 2021-11-01T18:30:36.000Z | 2022-03-25T03:11:52.000Z | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe RailsAdmin::Config::Fields::Types::Decimal do
it_behaves_like 'a float-like field type', :float_field
end
| 22.125 | 60 | 0.79096 |
7af3ebcefd3f3c097d7dfe388d9178475d52bca0 | 1,578 | cs | C# | Hinode.Izumi.Commands/UserCommands/ContractCommands/ContractCommands.cs | envyvox/Hinode.Izumi | fdc5f1bacb9e050d09f9b756ddd81f232bf3d99b | [
"MIT"
] | 1 | 2021-07-27T16:26:01.000Z | 2021-07-27T16:26:01.000Z | Hinode.Izumi.Commands/UserCommands/ContractCommands/ContractCommands.cs | evkkxo/Hinode.Izumi | fdc5f1bacb9e050d09f9b756ddd81f232bf3d99b | [
"MIT"
] | null | null | null | Hinode.Izumi.Commands/UserCommands/ContractCommands/ContractCommands.cs | evkkxo/Hinode.Izumi | fdc5f1bacb9e050d09f9b756ddd81f232bf3d99b | [
"MIT"
] | null | null | null | using System.Threading.Tasks;
using Discord.Commands;
using Hinode.Izumi.Commands.UserCommands.ContractCommands.ContractAcceptCommand;
using Hinode.Izumi.Commands.UserCommands.ContractCommands.ContractListCommand;
using Hinode.Izumi.Data.Enums;
using Hinode.Izumi.Services.WebServices.CommandWebService.Attributes;
nam... | 42.648649 | 119 | 0.73891 |
2315ffcd46d836dc43e96254022fb49c25509635 | 2,164 | css | CSS | public/external/pydio/plugins/downloader.http/bookmarklet/ajxp.css | WooDzu/PhalconEye | 71294f6a8400ce128cd1507027818db675efc326 | [
"BSD-3-Clause"
] | 119 | 2015-01-04T00:02:21.000Z | 2016-10-14T11:15:26.000Z | public/external/pydio/plugins/downloader.http/bookmarklet/ajxp.css | WooDzu/PhalconEye | 71294f6a8400ce128cd1507027818db675efc326 | [
"BSD-3-Clause"
] | 38 | 2016-10-24T13:09:28.000Z | 2019-09-03T13:45:10.000Z | public/external/pydio/plugins/downloader.http/bookmarklet/ajxp.css | WooDzu/PhalconEye | 71294f6a8400ce128cd1507027818db675efc326 | [
"BSD-3-Clause"
] | 64 | 2015-01-06T11:22:51.000Z | 2016-10-21T10:22:51.000Z | #ajxp_bm_main, #ajxp_bm_main a {
color: #999 !important;
}
.ajxp_bm_menu{
position: absolute;
top: 5px;
right: 5px;
width: 245px;
background-color: rgba(255, 255, 255, 0.9);
border-radius: 5px;
padding: 5px 10px;
font-family: arial;
font-size: 16px;
opacity: 1;
... | 20.807692 | 53 | 0.628004 |
aaa46e62fcb8b27576c175b3a0563ad363f2f22e | 267 | sql | SQL | prisma/migrations/20220327184643_remove_int/migration.sql | elizandrodantas/news-api | b4a80a314c322fac70ad79e288a64d74f83c8f15 | [
"MIT"
] | 1 | 2022-03-04T22:59:23.000Z | 2022-03-04T22:59:23.000Z | prisma/migrations/20220327184643_remove_int/migration.sql | elizandrodantas/news-api | b4a80a314c322fac70ad79e288a64d74f83c8f15 | [
"MIT"
] | null | null | null | prisma/migrations/20220327184643_remove_int/migration.sql | elizandrodantas/news-api | b4a80a314c322fac70ad79e288a64d74f83c8f15 | [
"MIT"
] | null | null | null | /*
Warnings:
- You are about to alter the column `expire` on the `basic_auth` table. The data in that column could be lost. The data in that column will be cast from `BigInt` to `Int`.
*/
-- AlterTable
ALTER TABLE `basic_auth` MODIFY `expire` INTEGER NOT NULL;
| 29.666667 | 173 | 0.715356 |
23af2477278863ebd5e7e8aab3866c47c31c88a5 | 3,427 | js | JavaScript | src/pages/signin.js | Nirav591/gitPort | 2d1530d7b91c72383d72054bb25958583a492ce7 | [
"RSA-MD"
] | null | null | null | src/pages/signin.js | Nirav591/gitPort | 2d1530d7b91c72383d72054bb25958583a492ce7 | [
"RSA-MD"
] | null | null | null | src/pages/signin.js | Nirav591/gitPort | 2d1530d7b91c72383d72054bb25958583a492ce7 | [
"RSA-MD"
] | null | null | null | import React from "react";
import Layout from "../components/layout";
import SEO from "../components/seo";
import Style from "../assets/Style/Login.module.scss";
import { Container, Row, Col } from "react-bootstrap";
import { Link } from "gatsby";
import { IoMdLogIn } from "react-icons/io";
import { AiFillGoogleCi... | 36.073684 | 91 | 0.347826 |
dbab36f68d9bc7a28882549f0c78513a6f25b621 | 9,889 | php | PHP | application/controllers/brAdmin/AuthorC.php | ViishalRana/Bookopia | 1d3fa8985dac451731aba64cc896d528a5513d21 | [
"MIT"
] | null | null | null | application/controllers/brAdmin/AuthorC.php | ViishalRana/Bookopia | 1d3fa8985dac451731aba64cc896d528a5513d21 | [
"MIT"
] | null | null | null | application/controllers/brAdmin/AuthorC.php | ViishalRana/Bookopia | 1d3fa8985dac451731aba64cc896d528a5513d21 | [
"MIT"
] | null | null | null | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class AuthorC extends CI_Controller
{
public function __construct()
{
parent::__construct();
$this->load->model("brAdmin/AuthorM","am");
$this->load->model("brAdmin/BookM","bm");
$this->load->model("brAdmin/CityM","ctm");
$this->load->m... | 27.242424 | 285 | 0.596521 |
9d5a86b3629a13478161dea5314b1280c820f987 | 744 | h | C | ogsr_engine/Layers/xrRenderPC_R4/light_smapvis.h | stepa2/OGSR-Engine | 32a23aa30506684be1267d9c4fc272350cd167c5 | [
"Apache-2.0"
] | 7 | 2018-03-27T12:36:07.000Z | 2020-06-26T11:31:52.000Z | ogsr_engine/Layers/xrRenderPC_R4/light_smapvis.h | stepa2/OGSR-Engine | 32a23aa30506684be1267d9c4fc272350cd167c5 | [
"Apache-2.0"
] | 2 | 2018-05-26T23:17:14.000Z | 2019-04-14T18:33:27.000Z | ogsr_engine/Layers/xrRenderPC_R4/light_smapvis.h | stepa2/OGSR-Engine | 32a23aa30506684be1267d9c4fc272350cd167c5 | [
"Apache-2.0"
] | 5 | 2020-10-18T11:55:26.000Z | 2022-03-28T07:21:35.000Z | #pragma once
class smapvis : public R_feedback
{
public:
enum {
state_counting = 0,
state_working = 1,
state_usingTC = 3,
} state;
xr_vector<dxRender_Visual*> invisible;
u32 frame_sleep;
u32 test_count;
u32 test_current;
dxRender_Visual* testQ_V;
u32 testQ_id;
u32 ... | 21.257143 | 82 | 0.641129 |
d54442fb923eeba5fd37e8b7303dab79467e649c | 2,523 | sql | SQL | examples/minitwit/minitwit/population_shard.sql | SwatiSah00/flask_4 | a95838a833473ff0525239dd6efe4687888aba37 | [
"BSD-3-Clause"
] | null | null | null | examples/minitwit/minitwit/population_shard.sql | SwatiSah00/flask_4 | a95838a833473ff0525239dd6efe4687888aba37 | [
"BSD-3-Clause"
] | null | null | null | examples/minitwit/minitwit/population_shard.sql | SwatiSah00/flask_4 | a95838a833473ff0525239dd6efe4687888aba37 | [
"BSD-3-Clause"
] | null | null | null | INSERT INTO user (user_id,username, email, pw_hash)
VALUES (UUID('839b83a4-abce-44e2-b506-7d40c0d937c1'),'swati', 'swati@gmail.com', 'pbkdf2:sha256:50000$K44zojNm$aad044ee1a5c1be1eb3bfdf4af2f370717519669c5cb8e5e48e7131229553c2b');
INSERT INTO user (user_id,username, email, pw_hash)
VALUES (UUID('ad98530c-b419-43f2-be2... | 54.847826 | 180 | 0.795482 |
e16565df147c6665c4c92b10b2e7f3280f926925 | 294 | lua | Lua | test.lua | ousttrue/luada | 7ae8e114d233c61b687080e404212753796c3458 | [
"MIT"
] | null | null | null | test.lua | ousttrue/luada | 7ae8e114d233c61b687080e404212753796c3458 | [
"MIT"
] | null | null | null | test.lua | ousttrue/luada | 7ae8e114d233c61b687080e404212753796c3458 | [
"MIT"
] | null | null | null | ---@param src string
---@return string
local function normalize_path(src)
local drive, path = src:match("^(%w:)(.*)")
if not drive then
drive = ""
path = src
end
return drive:upper() .. path:gsub("/", "\\")
end
print(normalize_path("c:/a/b/c.lua"))
| 22.615385 | 49 | 0.547619 |
7490769c06552e9f4d5ab361a3d647f51ebf8d97 | 278 | css | CSS | public/css/default.css | omarcoteixeira/angular-material-design-template | ebfb7d5105b0483b0a2c63885818d1e7c533912a | [
"Apache-2.0"
] | null | null | null | public/css/default.css | omarcoteixeira/angular-material-design-template | ebfb7d5105b0483b0a2c63885818d1e7c533912a | [
"Apache-2.0"
] | null | null | null | public/css/default.css | omarcoteixeira/angular-material-design-template | ebfb7d5105b0483b0a2c63885818d1e7c533912a | [
"Apache-2.0"
] | null | null | null | .varios-elementos{background:#ccc}.varios-elementos p{color:red}.varios-elementos input{-moz-border-radius:20px;border-radius:20px;-webkit-border-radius:20px;border-left:solid 1px #eaeaeb;border-right:solid 1px #eaeaeb;border-bottom:solid 1px #eaeaeb;border-top:solid 3px #ccc}
| 139 | 277 | 0.805755 |
981b2583b2dfdf3db840e393d537b4cf59adfe97 | 3,462 | py | Python | Features/New OT Class with Selected Glyphs.py | juandelperal/Glyphs-Scripts | 1f3cb71683ec044dff67a46cd895773e8271effa | [
"Apache-2.0"
] | null | null | null | Features/New OT Class with Selected Glyphs.py | juandelperal/Glyphs-Scripts | 1f3cb71683ec044dff67a46cd895773e8271effa | [
"Apache-2.0"
] | null | null | null | Features/New OT Class with Selected Glyphs.py | juandelperal/Glyphs-Scripts | 1f3cb71683ec044dff67a46cd895773e8271effa | [
"Apache-2.0"
] | null | null | null | #MenuTitle: New OT Class with Selected Glyphs
# -*- coding: utf-8 -*-
from __future__ import division, print_function, unicode_literals
from builtins import str
__doc__="""
Creates a new OT class containing the selected glyphs.
"""
import vanilla
class OTClassCreator( object ):
def __init__( self ):
self.w = vanil... | 38.043956 | 149 | 0.712305 |
581bcca1b30d027ed6cc7a38a2b0799b2d328e34 | 72 | css | CSS | src/main/resources/static/css/style.css | thiagotigaz/ijue-ebola-website | e50d74877e62007190a6208b731bdadc54f048eb | [
"MIT"
] | null | null | null | src/main/resources/static/css/style.css | thiagotigaz/ijue-ebola-website | e50d74877e62007190a6208b731bdadc54f048eb | [
"MIT"
] | null | null | null | src/main/resources/static/css/style.css | thiagotigaz/ijue-ebola-website | e50d74877e62007190a6208b731bdadc54f048eb | [
"MIT"
] | null | null | null | @media(min-width:1200px){
#right-container{
margin-top:50px;
}
} | 10.285714 | 25 | 0.638889 |
1a680b6b38bed3b6f2c6146b85145b50b27b0e03 | 162 | dart | Dart | lib/api/consts/divisions.dart | Driky/LeagueOfApi | 68ec67ef3d52a7b8e7064b50cc146a12bccee5a5 | [
"MIT"
] | null | null | null | lib/api/consts/divisions.dart | Driky/LeagueOfApi | 68ec67ef3d52a7b8e7064b50cc146a12bccee5a5 | [
"MIT"
] | null | null | null | lib/api/consts/divisions.dart | Driky/LeagueOfApi | 68ec67ef3d52a7b8e7064b50cc146a12bccee5a5 | [
"MIT"
] | null | null | null | enum Division { I, II, III, IV }
const Map<Division, String> DIVISIONS = {
Division.I: 'I',
Division.II: 'II',
Division.III: 'III',
Division.IV: 'IV',
};
| 20.25 | 41 | 0.611111 |
464f2fc072856e3171c3f8af32409038e751bf59 | 12,870 | php | PHP | src/Contract/Collection.php | geekcom/collection | 82d568b3b86d4d772b21f43b7716bf085cff2243 | [
"MIT"
] | null | null | null | src/Contract/Collection.php | geekcom/collection | 82d568b3b86d4d772b21f43b7716bf085cff2243 | [
"MIT"
] | null | null | null | src/Contract/Collection.php | geekcom/collection | 82d568b3b86d4d772b21f43b7716bf085cff2243 | [
"MIT"
] | null | null | null | <?php
/**
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
namespace loophp\collection\Contract;
use Countable;
use Iterator;
use IteratorAggregate;
use JsonSerializable;
use loophp\collection\Contract\Operati... | 34.228723 | 84 | 0.768376 |
2f0597eb3ae4adef0d39c76892f23a3d2c7358c9 | 246 | js | JavaScript | JS/script.js | HereIronman7746/Player | 774ca86bf7b94ec4bd9c3a59d17a1a8c6ca949d8 | [
"MIT"
] | null | null | null | JS/script.js | HereIronman7746/Player | 774ca86bf7b94ec4bd9c3a59d17a1a8c6ca949d8 | [
"MIT"
] | null | null | null | JS/script.js | HereIronman7746/Player | 774ca86bf7b94ec4bd9c3a59d17a1a8c6ca949d8 | [
"MIT"
] | null | null | null | function onload() {
const QueryString = window.location.search;
const urlParams = new URLSearchParams(QueryString);
var url = urlParams.get('url');
var player = new Playerjs({id:"player", poster:"./Images/BG.jpg", file:url});
}
| 35.142857 | 81 | 0.674797 |
2c625bd9b3f33f426d1fd967450d1e0f9622ff0f | 27,238 | py | Python | Model/patent2vec.py | chetanborse007/Patent2Vec | cd7b06d8a4ce645e5d7c251547c2ed9b44cea88a | [
"Apache-2.0"
] | null | null | null | Model/patent2vec.py | chetanborse007/Patent2Vec | cd7b06d8a4ce645e5d7c251547c2ed9b44cea88a | [
"Apache-2.0"
] | null | null | null | Model/patent2vec.py | chetanborse007/Patent2Vec | cd7b06d8a4ce645e5d7c251547c2ed9b44cea88a | [
"Apache-2.0"
] | 1 | 2020-05-21T11:41:41.000Z | 2020-05-21T11:41:41.000Z | # -*- coding: utf-8 -*-
"""
@File: patent2vec.py
@Description: This is a module for generating document embedding for patents.
This application,
1. Creates Patent2Vec model
2. Initializes Patent2Vec model's weights
with pre... | 36.907859 | 90 | 0.530252 |
d214c1f3c68c502f8f27bd9b2549957b3e6a3ffc | 3,804 | sql | SQL | Complete SQL Mastery - Mosh/02.Retrieving Data From a Single Table.sql | aman-gupta-1995/SQL-Data-Analysis-and-Data-Visualisation-Projects | a7aa7172dc10fe4890770dee8d8e5f3382527902 | [
"MIT"
] | 195 | 2020-11-28T20:45:09.000Z | 2022-03-29T17:49:07.000Z | Complete SQL Mastery - Mosh/02.Retrieving Data From a Single Table.sql | mineoran/SQL-Data-Analysis-and-Visualization-Projects | d5462caa7c79b4fa0c6a9d488e25b889820025d8 | [
"MIT"
] | null | null | null | Complete SQL Mastery - Mosh/02.Retrieving Data From a Single Table.sql | mineoran/SQL-Data-Analysis-and-Visualization-Projects | d5462caa7c79b4fa0c6a9d488e25b889820025d8 | [
"MIT"
] | 124 | 2020-11-18T06:09:50.000Z | 2022-03-31T19:12:30.000Z | /*********************************/
/* Reterive Data */
/*********************************/
USE mosh_sql_store;
SELECT * FROM customers
WHERE customer_id > 5
ORDER BY first_name;
SELECT DISTINCT state
FROM customers;
/*return all the products name, unit price, new price (unit price *1.1) */
SELECT na... | 17.693023 | 101 | 0.668507 |
309163b079d3839003bb0272bccdcc6de9da4eb2 | 11,041 | rs | Rust | src/result.rs | peterhj/libnanomsg | 62ae28550f0edf987386612449629ab398c3bfdf | [
"MIT",
"X11",
"Unlicense"
] | null | null | null | src/result.rs | peterhj/libnanomsg | 62ae28550f0edf987386612449629ab398c3bfdf | [
"MIT",
"X11",
"Unlicense"
] | null | null | null | src/result.rs | peterhj/libnanomsg | 62ae28550f0edf987386612449629ab398c3bfdf | [
"MIT",
"X11",
"Unlicense"
] | null | null | null | extern crate libc;
use libc::{c_int, c_char};
use nanomsg_sys;
use std::str;
use std::fmt;
use std::io;
use std::convert::From;
use std::ffi::CStr;
use std::result;
use std::error;
pub type Result<T> = result::Result<T, Error>;
#[derive(Clone, Copy, Eq, PartialEq)]
pub enum Error {
Unknown = ... | 49.511211 | 107 | 0.576216 |
d04040dee2c4d38af49b4f205f073a872d53cc66 | 2,548 | cpp | C++ | src/parser/mode/createCoroutine.cpp | tositeru/watagashi | d4fcfbb4a7f44fcbf68652e7d99a4b13c6e035d4 | [
"MIT"
] | null | null | null | src/parser/mode/createCoroutine.cpp | tositeru/watagashi | d4fcfbb4a7f44fcbf68652e7d99a4b13c6e035d4 | [
"MIT"
] | null | null | null | src/parser/mode/createCoroutine.cpp | tositeru/watagashi | d4fcfbb4a7f44fcbf68652e7d99a4b13c6e035d4 | [
"MIT"
] | null | null | null | #include "createCoroutine.h"
#include "../line.h"
#include "../enviroment.h"
#include "normal.h"
namespace parser
{
IParseMode::Result CreateCoroutineParseMode::parse(Enviroment& env, Line& line)
{
if (line.length() <= 0) {
return Result::Continue;
}
switch (env.currentScope().type()) {
cas... | 32.666667 | 127 | 0.658163 |
7640dbd2a5eae9b9410d63d1bab30b092c9d7aa2 | 867 | rs | Rust | rust/src/easy/e1710_maximum_units_on_a_truck.rs | linshaoyong/leetcode | ea052fad68a2fe0cbfa5469398508ec2b776654f | [
"MIT"
] | 6 | 2019-07-15T13:23:57.000Z | 2020-01-22T03:12:01.000Z | rust/src/easy/e1710_maximum_units_on_a_truck.rs | linshaoyong/leetcode | ea052fad68a2fe0cbfa5469398508ec2b776654f | [
"MIT"
] | null | null | null | rust/src/easy/e1710_maximum_units_on_a_truck.rs | linshaoyong/leetcode | ea052fad68a2fe0cbfa5469398508ec2b776654f | [
"MIT"
] | 1 | 2019-07-24T02:15:31.000Z | 2019-07-24T02:15:31.000Z | struct Solution;
impl Solution {
pub fn maximum_units(box_types: Vec<Vec<i32>>, truck_size: i32) -> i32 {
let mut res = 0;
let mut tsize = truck_size;
let mut cloned = box_types.clone();
cloned.sort_by(|a, b| b[1].cmp(&a[1]));
for box_type in cloned {
if tsize <=... | 24.083333 | 90 | 0.448674 |
0dfc94ce40bb0b5f027d55e16c8857fe362a9793 | 172 | rb | Ruby | lang/Ruby/discordian-date-2.rb | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | 5 | 2021-01-29T20:08:05.000Z | 2022-03-22T06:16:05.000Z | lang/Ruby/discordian-date-2.rb | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | lang/Ruby/discordian-date-2.rb | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | 1 | 2021-04-13T04:19:31.000Z | 2021-04-13T04:19:31.000Z | [[2012, 2, 28], [2012, 2, 29], [2012, 3, 1], [2011, 10, 5], [2015, 10, 19]].each do |date|
dd = DiscordianDate.new(*date)
puts "#{"%4d-%02d-%02d" % date} => #{dd}"
end
| 34.4 | 90 | 0.517442 |
c525efe2abec866eae4d6e75dbfb9ffb1dd2ad89 | 787 | ps1 | PowerShell | Modules/SharePointDsc/Examples/Resources/SPSearchServiceSettings/1-ConfigureSettings.ps1 | JamesHoC/SharePointDsc | 2c67e59a2882dafac5e825cde5498cbbe1ffadba | [
"MIT"
] | null | null | null | Modules/SharePointDsc/Examples/Resources/SPSearchServiceSettings/1-ConfigureSettings.ps1 | JamesHoC/SharePointDsc | 2c67e59a2882dafac5e825cde5498cbbe1ffadba | [
"MIT"
] | 1 | 2018-07-19T15:16:08.000Z | 2018-07-19T15:16:08.000Z | Modules/SharePointDsc/Examples/Resources/SPSearchServiceSettings/1-ConfigureSettings.ps1 | JamesHoC/SharePointDsc | 2c67e59a2882dafac5e825cde5498cbbe1ffadba | [
"MIT"
] | null | null | null | <#
.EXAMPLE
This example creates a new search service app in the local farm
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount,
[Parameter(Mandatory = $true)]
[PSCredential]
$SearchAc... | 26.233333 | 67 | 0.526048 |
75ccff64ea4cd91cc47533cb90076b8a4c449fbd | 45 | css | CSS | AULA1/style.css | jorgeclesio/LTP-FADESA | 76b81dc1702df1810acc1cff41dae33a08de167e | [
"Apache-2.0"
] | 4 | 2018-03-02T02:31:21.000Z | 2021-10-05T14:55:47.000Z | AULA1/style.css | jorgeclesio/LTP-FADESA | 76b81dc1702df1810acc1cff41dae33a08de167e | [
"Apache-2.0"
] | null | null | null | AULA1/style.css | jorgeclesio/LTP-FADESA | 76b81dc1702df1810acc1cff41dae33a08de167e | [
"Apache-2.0"
] | 7 | 2018-03-09T03:08:35.000Z | 2018-04-19T19:42:09.000Z | #ola{
color:red;
}
.ola{
color:blue;
} | 6.428571 | 12 | 0.511111 |
ef40d3a538a84d81d04ca133e872b4399f363bfb | 22,095 | h | C | docset_iterators.h | EvilMcJerkface/Trinity | a745a0c13719ca9d041e1dfcfeb81e6bf85a996f | [
"Apache-2.0"
] | 246 | 2017-05-09T11:20:33.000Z | 2022-03-30T11:43:36.000Z | docset_iterators.h | EvilMcJerkface/Trinity | a745a0c13719ca9d041e1dfcfeb81e6bf85a996f | [
"Apache-2.0"
] | 16 | 2017-05-24T13:42:17.000Z | 2020-04-04T04:51:03.000Z | docset_iterators.h | EvilMcJerkface/Trinity | a745a0c13719ca9d041e1dfcfeb81e6bf85a996f | [
"Apache-2.0"
] | 23 | 2017-05-10T15:04:20.000Z | 2021-02-05T23:19:36.000Z | // ## Important impl. requirement for all Iterators
// Iterators may not advance themselves (i.e via next() or advance() methods), or any of its sub-iterators they keep track of
// in their constructors. Doing so would cause all kinds of issues with Docsets Spans.
#pragma once
#include "docset_iterators_base.h"
#includ... | 43.070175 | 273 | 0.453542 |
445727318c2abc0e0dbc23a2b2ef95d8b48ae416 | 801 | py | Python | generator/write_data.py | dheeraj7596/HashNews | 2c849bf6bdda40e8caa328754d5ba3cee2ce507f | [
"MIT"
] | 1 | 2020-03-07T08:57:02.000Z | 2020-03-07T08:57:02.000Z | write_data.py | dheeraj7596/hashtagGen | c43422ccdcb4f213fd40b10af9ad1e1d8ed9d07f | [
"MIT"
] | null | null | null | write_data.py | dheeraj7596/hashtagGen | c43422ccdcb4f213fd40b10af9ad1e1d8ed9d07f | [
"MIT"
] | 1 | 2021-04-28T21:54:39.000Z | 2021-04-28T21:54:39.000Z | if __name__ == "__main__":
base_path = "/data4/dheeraj/hashtag/all/Twitter/"
f_tweets = open(base_path + "train_post.txt", "r")
f_tags = open(base_path + "train_tag.txt", "r")
tweets = f_tweets.readlines()
tags = f_tags.readlines()
f_tags.close()
f_tweets.close()
tweets = tweets[:100]
... | 28.607143 | 67 | 0.563046 |
4955a70fc25a05fad7ec9c632a3c2270d6d6aec1 | 1,792 | lua | Lua | lua/misc/FPSBoost.lua | EPCN-fla/Nixware-Instruction | 169e7c919124da73f12310208c668459c47b60ee | [
"MIT"
] | 6 | 2021-08-04T04:37:56.000Z | 2022-03-20T14:28:02.000Z | lua/misc/FPSBoost.lua | EPCN-fla/Nixware-Instruction | 169e7c919124da73f12310208c668459c47b60ee | [
"MIT"
] | null | null | null | lua/misc/FPSBoost.lua | EPCN-fla/Nixware-Instruction | 169e7c919124da73f12310208c668459c47b60ee | [
"MIT"
] | 2 | 2021-08-10T09:56:10.000Z | 2022-01-12T11:17:25.000Z | function on_create_move(cmd)
se.get_convar("cl_foot_contact_shadows"):set_int(0)
se.get_convar("cl_csm_shadows"):set_int(0)
se.get_convar("cl_csm_rope_shadows"):set_int(0)
se.get_convar("cl_csm_world_shadows"):set_int(0)
se.get_convar("cl_csm_world_shadows_in_viewmodelcascade"):set_int(0)
se.get_convar("cl_... | 38.956522 | 70 | 0.777902 |
a158284c4a53c51479ed88c23e946ecd3931a022 | 330 | tsx | TypeScript | generators/app/templates/functional/__REPLACE_THAT__.test.tsx | devxkit/generator-atomic | 1097b456baeee4df5d99fd7e75210219b6308eda | [
"MIT"
] | 1 | 2021-09-17T09:27:17.000Z | 2021-09-17T09:27:17.000Z | generators/app/templates/class_based_components/__REPLACE_THAT__.test.tsx | devxkit/generator-atomic | 1097b456baeee4df5d99fd7e75210219b6308eda | [
"MIT"
] | null | null | null | generators/app/templates/class_based_components/__REPLACE_THAT__.test.tsx | devxkit/generator-atomic | 1097b456baeee4df5d99fd7e75210219b6308eda | [
"MIT"
] | 1 | 2021-09-17T09:32:39.000Z | 2021-09-17T09:32:39.000Z | import {render, screen} from '@testing-library/react';
<%- componentImport %>
const elementName = '<%- name %>';
const basicElement = <<%- name %>><%- name %></<%- name %>>;
test('element exists', () => {
render(basicElement);
const root = screen.getByTestId(elementName + '-root');
expect(root).toBeInTheDocume... | 25.384615 | 60 | 0.630303 |
ff647a5b13906782266b5c4973f68d0801877968 | 408 | py | Python | perma_web/perma/tests/test_forms.py | leppert/perma | adb0cec29679c3d161d72330e19114f89f8c42ac | [
"MIT",
"Unlicense"
] | null | null | null | perma_web/perma/tests/test_forms.py | leppert/perma | adb0cec29679c3d161d72330e19114f89f8c42ac | [
"MIT",
"Unlicense"
] | null | null | null | perma_web/perma/tests/test_forms.py | leppert/perma | adb0cec29679c3d161d72330e19114f89f8c42ac | [
"MIT",
"Unlicense"
] | null | null | null | from django.test import TestCase
from perma.forms import ContactForm
class FormsTestCase(TestCase):
def test_contact_form(self):
"""
Cruedely test that we're requiring a message in our
contact form.
"""
form_data = {'email': 'test@example.com', 'message': 'some message'}
... | 31.384615 | 76 | 0.654412 |
eabe128d161f95610ff52fba39146e460229eb33 | 1,979 | rb | Ruby | spec/services/create_passcode_service_spec.rb | marnen/passcoder | a5e14da70c2f53d092cef7b55cf197d5aa6c821f | [
"MIT"
] | null | null | null | spec/services/create_passcode_service_spec.rb | marnen/passcoder | a5e14da70c2f53d092cef7b55cf197d5aa6c821f | [
"MIT"
] | null | null | null | spec/services/create_passcode_service_spec.rb | marnen/passcoder | a5e14da70c2f53d092cef7b55cf197d5aa6c821f | [
"MIT"
] | null | null | null | require 'rails_helper'
describe CreatePasscodeService do
shared_examples_for 'a passcode with line items' do
it 'has associated line items' do
line_items = passcode.line_items
expect(line_items.size).to be == 1
expect(line_items.first.attributes.symbolize_keys).to include line_items_attributes
... | 35.339286 | 136 | 0.700354 |
a47fe818c5ed501075b3c57089a91dce3d171dc8 | 295 | php | PHP | app/Http/Controllers/Backend/FileManagerController.php | MusheAbdulHakim/Laravel-Smarthr | a2b380a71d932688433e69af5ec9ef687740546f | [
"MIT"
] | 6 | 2021-07-20T04:51:15.000Z | 2022-02-15T15:15:40.000Z | app/Http/Controllers/Backend/FileManagerController.php | benmoumene/Laravel-Smarthr-grh | 9abd6cdea459ff81939914dbd384e47693d1c28b | [
"MIT"
] | 3 | 2021-07-28T11:18:16.000Z | 2022-01-01T00:18:23.000Z | app/Http/Controllers/Backend/FileManagerController.php | benmoumene/Laravel-Smarthr-grh | 9abd6cdea459ff81939914dbd384e47693d1c28b | [
"MIT"
] | 8 | 2021-09-13T17:06:52.000Z | 2022-03-18T19:59:37.000Z | <?php
namespace App\Http\Controllers\Backend;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class FileManagerController extends Controller
{
public function index(){
$title = "File Manager";
return view('backend.filemanager',compact('title'));
}
}
| 19.666667 | 60 | 0.711864 |
d641c08346acd0ae52b103273504ac894999bb43 | 3,657 | cs | C# | TestsETLBox/src/Helper/ConnectionStringTests.cs | SipanOhanyan/etlbox | 58d69bcf2139916283a78909498c1fd9b93411d7 | [
"MIT"
] | null | null | null | TestsETLBox/src/Helper/ConnectionStringTests.cs | SipanOhanyan/etlbox | 58d69bcf2139916283a78909498c1fd9b93411d7 | [
"MIT"
] | null | null | null | TestsETLBox/src/Helper/ConnectionStringTests.cs | SipanOhanyan/etlbox | 58d69bcf2139916283a78909498c1fd9b93411d7 | [
"MIT"
] | null | null | null | using ALE.ETLBox;
using ALE.ETLBox.ConnectionManager;
using ALE.ETLBox.ControlFlow;
using ALE.ETLBox.DataFlow;
using ALE.ETLBox.Helper;
using ALE.ETLBox.Logging;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Xunit;
namespace ALE.ETLBoxTests
{
publi... | 36.207921 | 117 | 0.643424 |
b000d7e32a3360c54c1b81b0de380d94f4b300e6 | 128 | py | Python | Mundos/Mundo 1/Aulas/Aula 7/ex05.py | NicolasdeLimaAlves/Curso-de-Python | 4987a2c8075a76f676aa69bfd968fdf8d1c7fa52 | [
"MIT"
] | null | null | null | Mundos/Mundo 1/Aulas/Aula 7/ex05.py | NicolasdeLimaAlves/Curso-de-Python | 4987a2c8075a76f676aa69bfd968fdf8d1c7fa52 | [
"MIT"
] | null | null | null | Mundos/Mundo 1/Aulas/Aula 7/ex05.py | NicolasdeLimaAlves/Curso-de-Python | 4987a2c8075a76f676aa69bfd968fdf8d1c7fa52 | [
"MIT"
] | null | null | null | nu = int(input('Digite um número: '))
an = nu - 1
su = nu + 1
print('O sucessor de {} é {} e o\nsucessor é {}'.format(nu,an,su)) | 32 | 66 | 0.585938 |
b00700882368eabad6cf83f93a243cbae3a56601 | 2,793 | py | Python | tests/test_add.py | mcgid/morenines | b5825d33ae4c44e39fc0b9763bdf371e00112b64 | [
"MIT"
] | null | null | null | tests/test_add.py | mcgid/morenines | b5825d33ae4c44e39fc0b9763bdf371e00112b64 | [
"MIT"
] | 21 | 2016-04-15T19:22:12.000Z | 2016-07-08T16:22:54.000Z | tests/test_add.py | mcgid/morenines | b5825d33ae4c44e39fc0b9763bdf371e00112b64 | [
"MIT"
] | null | null | null | import os
from click.testing import CliRunner
from conftest import tmp_chdir, assert_mn_dirs_equal
from morenines import application
def test_add_no_changes(data_dir, expected_dir):
"""No difference between source and expected."""
with tmp_chdir(data_dir):
runner = CliRunner()
result = runne... | 30.032258 | 112 | 0.703545 |
0de531e666ab1d1bce33f8eb0e9b24b04c6b6ccc | 270 | cs | C# | src/Hqub.Esenin.App/Messages/ChangeSelectedQuatrainMessage.cs | avatar29A/Esenin | 54acc3246a62e50c2bdb1ebda5dc75d560a6cb24 | [
"MIT"
] | null | null | null | src/Hqub.Esenin.App/Messages/ChangeSelectedQuatrainMessage.cs | avatar29A/Esenin | 54acc3246a62e50c2bdb1ebda5dc75d560a6cb24 | [
"MIT"
] | null | null | null | src/Hqub.Esenin.App/Messages/ChangeSelectedQuatrainMessage.cs | avatar29A/Esenin | 54acc3246a62e50c2bdb1ebda5dc75d560a6cb24 | [
"MIT"
] | null | null | null | namespace Hqub.Esenin.App.Messages
{
public class ChangeSelectedQuatrainMessage
{
public string QuatrainId { get; set; }
public ChangeSelectedQuatrainMessage(string quatraineId)
{
QuatrainId = quatraineId;
}
}
}
| 20.769231 | 64 | 0.633333 |
21687bcd09d905156d31f8b36a87bb5060699756 | 610 | js | JavaScript | src/components/page_components/Clues/Clues.js | anthonyjshaw/whodunnit | aa9b51b27a23861fa1165d62fb19bc816663fc64 | [
"MIT"
] | null | null | null | src/components/page_components/Clues/Clues.js | anthonyjshaw/whodunnit | aa9b51b27a23861fa1165d62fb19bc816663fc64 | [
"MIT"
] | null | null | null | src/components/page_components/Clues/Clues.js | anthonyjshaw/whodunnit | aa9b51b27a23861fa1165d62fb19bc816663fc64 | [
"MIT"
] | null | null | null | import React from "react";
import { Link } from "react-router-dom";
export default function Clues(props) {
const clues = !props.mappedClues ?
<p style={{ height: 200, fontSize: '2em', textAlign: 'center' }}>
No clues! Why don't you <Link to="/locations">search for some clues?</Link>
</p> :
<d... | 32.105263 | 83 | 0.57377 |
8ec1bc1d1f77adedf87bb65255192942da3535e5 | 2,954 | js | JavaScript | www/kham06/cv08/main.js | l-k-sfr-jt/4IZ268-2020-2021-ZS | b2e7829ca986bd52ca41533ee2a1b75e3b0fa3ac | [
"MIT"
] | 5 | 2020-10-04T09:16:38.000Z | 2020-11-16T19:58:25.000Z | www/kham06/cv08/main.js | l-k-sfr-jt/4IZ268-2020-2021-ZS | b2e7829ca986bd52ca41533ee2a1b75e3b0fa3ac | [
"MIT"
] | 104 | 2020-09-30T22:03:14.000Z | 2021-02-05T21:04:13.000Z | www/kham06/cv08/main.js | l-k-sfr-jt/4IZ268-2020-2021-ZS | b2e7829ca986bd52ca41533ee2a1b75e3b0fa3ac | [
"MIT"
] | 16 | 2020-11-05T17:13:19.000Z | 2021-11-24T20:28:13.000Z | console.log('Ahoj svete') // prosto pokazivaetsa v console
console.error('Hele chyba')// pokazivaet oshibku v console
console.warn('Upozorneni')// pokazivaet warning prompt stroka
//var,let,const - var se ne pouziva
let age = 20;
console.log(age);
const height = 170;
console.log(height);
age= 12 ;
conso... | 23.822581 | 98 | 0.637102 |
511aac138a21cf5bfec768b01d6e3318cd9a9634 | 3,702 | rs | Rust | simple-exercises/rust-exercises/sample-code-2/code007.rs | mithi/algorithm-playground | ee35df7e343544b56c145b3912eca263c566d819 | [
"MIT"
] | 85 | 2017-12-19T19:51:51.000Z | 2021-05-26T20:00:39.000Z | simple-exercises/rust-exercises/sample-code-2/code007.rs | mithi/algorithm-playground | ee35df7e343544b56c145b3912eca263c566d819 | [
"MIT"
] | 1 | 2019-01-02T07:00:40.000Z | 2019-01-02T07:00:40.000Z | simple-exercises/rust-exercises/sample-code-2/code007.rs | mithi/algorithm-playground | ee35df7e343544b56c145b3912eca263c566d819 | [
"MIT"
] | 34 | 2018-03-29T11:51:53.000Z | 2020-11-17T08:24:51.000Z | // convert string in base 64 to vector of u8
// https://docs.rs/crate/base64/0.3.1/source/tests/tests.rs
#[macro_use]
extern crate lazy_static;
use std::collections::HashMap;
const ALL64: [char; 64] = [
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
'N', 'O', 'P', 'Q', 'R', 'S', 'T', ... | 32.761062 | 375 | 0.526472 |
152935d339bddb90c236fbac7615cae5418f5f71 | 226 | sql | SQL | conf/evolutions/default/2.sql | HZ0118/2ndyearproject | e57a3496492fe0d2776eae3db12f5fea8460d8b1 | [
"Apache-2.0"
] | null | null | null | conf/evolutions/default/2.sql | HZ0118/2ndyearproject | e57a3496492fe0d2776eae3db12f5fea8460d8b1 | [
"Apache-2.0"
] | null | null | null | conf/evolutions/default/2.sql | HZ0118/2ndyearproject | e57a3496492fe0d2776eae3db12f5fea8460d8b1 | [
"Apache-2.0"
] | null | null | null | insert into user (email,role,name,password) values ('jayson@flights.com', 'admin','Jayson Singson', 'admin');
insert into user (email,role,name,password) values ('hailing@flights.com', 'customer','Hailing Zhou', 'customer');
| 56.5 | 114 | 0.730088 |
29d353f5769a5b08d955a5ba7dbabb8359051bc7 | 22,745 | sql | SQL | application/migrations/services.sql | yoidel86/login | 6928dcffbab9b010662619b49f839f1f202a710c | [
"MIT"
] | null | null | null | application/migrations/services.sql | yoidel86/login | 6928dcffbab9b010662619b49f839f1f202a710c | [
"MIT"
] | null | null | null | application/migrations/services.sql | yoidel86/login | 6928dcffbab9b010662619b49f839f1f202a710c | [
"MIT"
] | null | null | null | -- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Nov 29, 2017 at 04:14 PM
-- Server version: 10.1.16-MariaDB
-- PHP Version: 7.0.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI... | 34.938556 | 294 | 0.652979 |
b72faa3af2987906a98316a5bd7213df17989063 | 2,109 | cpp | C++ | ModelItems/VarPathModelItem.cpp | yoann01/FabricUI | d4d24f25245b8ccd2d206aded2b6c5f2aca09155 | [
"BSD-3-Clause"
] | null | null | null | ModelItems/VarPathModelItem.cpp | yoann01/FabricUI | d4d24f25245b8ccd2d206aded2b6c5f2aca09155 | [
"BSD-3-Clause"
] | null | null | null | ModelItems/VarPathModelItem.cpp | yoann01/FabricUI | d4d24f25245b8ccd2d206aded2b6c5f2aca09155 | [
"BSD-3-Clause"
] | null | null | null | //
// Copyright (c) 2010-2017 Fabric Software Inc. All rights reserved.
//
#include <assert.h>
#include <FabricUI/DFG/DFGUICmdHandler.h>
#include <FabricUI/ModelItems/VarPathModelItem.h>
#include <FabricUI/ModelItems/VarPathItemMetadata.h>
#include <QStringList>
namespace FabricUI {
namespace ModelItems {
//////////... | 19 | 75 | 0.682314 |
0506201197c0cecd008e74e12fb29fb8ba35c1df | 1,127 | swift | Swift | Canary/Canary/Cells/AdUnitTableViewHeader.swift | alfred-systems/mopub-ios-sdk | 1345b8184e490c8f20ecb2f8a05b1c0ff0b9a98e | [
"OML"
] | 320 | 2015-01-03T07:59:46.000Z | 2022-03-31T18:24:00.000Z | Canary/Canary/Cells/AdUnitTableViewHeader.swift | alfred-systems/mopub-ios-sdk | 1345b8184e490c8f20ecb2f8a05b1c0ff0b9a98e | [
"OML"
] | 291 | 2015-01-05T19:40:41.000Z | 2022-03-18T19:05:42.000Z | Canary/Canary/Cells/AdUnitTableViewHeader.swift | alfred-systems/mopub-ios-sdk | 1345b8184e490c8f20ecb2f8a05b1c0ff0b9a98e | [
"OML"
] | 429 | 2015-01-14T17:04:21.000Z | 2022-03-29T05:40:59.000Z | //
// AdUnitTableViewHeader.swift
//
// Copyright 2018-2021 Twitter, Inc.
// Licensed under the MoPub SDK License Agreement
// http://www.mopub.com/legal/sdk-license-agreement/
//
import UIKit
class AdUnitTableViewHeader: UITableViewHeaderFooterView {
// Outlets from `AdUnitTableViewHeader.xib`
@IBOutlet ... | 28.897436 | 81 | 0.677019 |
ff7ba1cef293510588c2ae436f4c98912dd5f0b3 | 205 | dart | Dart | zzdocflutter/lib/common/values/shadows.dart | 2017IOTrepo/EnglishManFlutter | badfe251c4b8aebae23df2abd99e34524a554e44 | [
"Apache-2.0"
] | 1 | 2022-03-18T10:31:30.000Z | 2022-03-18T10:31:30.000Z | lib/common/constant/shadows.dart | yodeput/flutter-getx-foodies | c81782652162ef24951cca134976dfd3106954fd | [
"Apache-2.0"
] | null | null | null | lib/common/constant/shadows.dart | yodeput/flutter-getx-foodies | c81782652162ef24951cca134976dfd3106954fd | [
"Apache-2.0"
] | 1 | 2021-07-08T07:06:55.000Z | 2021-07-08T07:06:55.000Z | import 'package:flutter/rendering.dart';
class Shadows {
static const BoxShadow primaryShadow = BoxShadow(
color: Color.fromARGB(38, 27, 27, 29),
offset: Offset(0, 5),
blurRadius: 10,
);
} | 22.777778 | 51 | 0.678049 |
b5b564e01abd5d913f5a38257c7432c00e9bfe5a | 2,135 | rb | Ruby | google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/environment_pb.rb | doodzik/google-cloud-ruby | a28225ff4637df3bfb264467c02214fcb89d6c23 | [
"Apache-2.0"
] | 8 | 2021-04-24T02:35:09.000Z | 2022-01-29T03:05:45.000Z | google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/environment_pb.rb | doodzik/google-cloud-ruby | a28225ff4637df3bfb264467c02214fcb89d6c23 | [
"Apache-2.0"
] | 1 | 2021-02-24T07:42:47.000Z | 2021-02-24T07:42:47.000Z | google-cloud-dialogflow-v2/lib/google/cloud/dialogflow/v2/environment_pb.rb | doodzik/google-cloud-ruby | a28225ff4637df3bfb264467c02214fcb89d6c23 | [
"Apache-2.0"
] | 2 | 2021-06-02T18:47:14.000Z | 2021-09-18T07:08:17.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/dialogflow/v2/environment.proto
require 'google/protobuf'
require 'google/api/annotations_pb'
require 'google/api/field_behavior_pb'
require 'google/api/resource_pb'
require 'google/protobuf/empty_pb'
require 'google/protobuf/field_mask... | 41.057692 | 155 | 0.746136 |
a9740f0debb594c9bd942d1a20ee0c258ad018fd | 362 | go | Go | tipe/tipe.go | dmegbert/headfirstgo | f0e9ebb9653949ceb62d172aab12f0749372a54c | [
"MIT"
] | null | null | null | tipe/tipe.go | dmegbert/headfirstgo | f0e9ebb9653949ceb62d172aab12f0749372a54c | [
"MIT"
] | null | null | null | tipe/tipe.go | dmegbert/headfirstgo | f0e9ebb9653949ceb62d172aab12f0749372a54c | [
"MIT"
] | null | null | null | package main
import "fmt"
func main() {
tank := Liters(10)
otherTank := tank.LitersToGallons()
tank.DoubleMe()
fmt.Printf("other tank is %#v\n", otherTank)
fmt.Printf("Doubled is %0.2f", tank)
}
type Liters float64
type Gallons float64
func (l *Liters) LitersToGallons() Gallons {
return Gallons(*l * 0.264)
}
... | 15.73913 | 45 | 0.671271 |
2a27968385ea57716bd40aae7b6fb2cd3784b856 | 4,730 | dart | Dart | app/maxwell/agents/mi_dashboard/src/proposal_subscribers.dart | bleonard252-forks/topaz | 75e3e219a9197294032f52a00a8d742542bd538f | [
"BSD-3-Clause"
] | null | null | null | app/maxwell/agents/mi_dashboard/src/proposal_subscribers.dart | bleonard252-forks/topaz | 75e3e219a9197294032f52a00a8d742542bd538f | [
"BSD-3-Clause"
] | null | null | null | app/maxwell/agents/mi_dashboard/src/proposal_subscribers.dart | bleonard252-forks/topaz | 75e3e219a9197294032f52a00a8d742542bd538f | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2017 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:convert';
import 'dart:io';
import 'package:collection/collection.dart';
import 'package:lib.app.dart/app.dart';
import 'package:fuchsia.fidl... | 31.744966 | 80 | 0.721564 |
6d8a41090234853d253dcebdf71a51863a817e1b | 3,942 | ts | TypeScript | test/agents.ts | maxiruani/teeny-request | 01ee045dca8630118f90f0f3667d226eb35f29b7 | [
"Apache-2.0"
] | null | null | null | test/agents.ts | maxiruani/teeny-request | 01ee045dca8630118f90f0f3667d226eb35f29b7 | [
"Apache-2.0"
] | null | null | null | test/agents.ts | maxiruani/teeny-request | 01ee045dca8630118f90f0f3667d226eb35f29b7 | [
"Apache-2.0"
] | null | null | null | /*!
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 31.03937 | 75 | 0.582699 |
1ac066ac7fe2a2b36ec212672702b70fbaf86fe0 | 3,906 | py | Python | main.py | Krishna-Sivakumar/movie-night | 2a5eb3b774a87a15f2f69fd0833e80c3f8cde351 | [
"MIT"
] | null | null | null | main.py | Krishna-Sivakumar/movie-night | 2a5eb3b774a87a15f2f69fd0833e80c3f8cde351 | [
"MIT"
] | null | null | null | main.py | Krishna-Sivakumar/movie-night | 2a5eb3b774a87a15f2f69fd0833e80c3f8cde351 | [
"MIT"
] | 1 | 2021-06-03T06:57:14.000Z | 2021-06-03T06:57:14.000Z | from datetime import datetime
from flask import Flask, request, render_template
import flask
import flask_login
import hashlib
import redis
import toml
config = toml.loads(
open("config.toml", "r").read()
)
auth_dict = toml.loads(
open("auth.toml", "r").read()
)
admins = auth_dict['admin']
admin_dict = {}
for... | 25.2 | 127 | 0.621352 |
ddbf3b6865285a0ce94d9247a3412d4393656b28 | 1,388 | java | Java | ifs-resources/src/main/java/org/innovateuk/ifs/organisation/resource/OrganisationTypeResource.java | adambirse/innovation-funding-service | db1c2bc5a25d3143df02bef9019aefd5261caf6f | [
"MIT"
] | null | null | null | ifs-resources/src/main/java/org/innovateuk/ifs/organisation/resource/OrganisationTypeResource.java | adambirse/innovation-funding-service | db1c2bc5a25d3143df02bef9019aefd5261caf6f | [
"MIT"
] | null | null | null | ifs-resources/src/main/java/org/innovateuk/ifs/organisation/resource/OrganisationTypeResource.java | adambirse/innovation-funding-service | db1c2bc5a25d3143df02bef9019aefd5261caf6f | [
"MIT"
] | null | null | null | package org.innovateuk.ifs.organisation.resource;
public class OrganisationTypeResource {
private Long id;
private String name;
private String description;
private Boolean visibleInSetup;
private Long parentOrganisationType;
public OrganisationTypeResource(Long id, String name, Long parentOrga... | 23.133333 | 88 | 0.664986 |
401bccb8ff7eb07e0610c9ceef9af350ff309447 | 10,409 | rb | Ruby | test/rails_root/spec/models/inheritance_hierarchy_access_spec.rb | troystribling/has_ancestor | 1c3ae086b9f9b0797fdf1327e4022ad13fc8ff72 | [
"MIT"
] | 1 | 2016-05-08T17:55:12.000Z | 2016-05-08T17:55:12.000Z | test/rails_root/spec/models/inheritance_hierarchy_access_spec.rb | troystribling/has_ancestor | 1c3ae086b9f9b0797fdf1327e4022ad13fc8ff72 | [
"MIT"
] | null | null | null | test/rails_root/spec/models/inheritance_hierarchy_access_spec.rb | troystribling/has_ancestor | 1c3ae086b9f9b0797fdf1327e4022ad13fc8ff72 | [
"MIT"
] | null | null | null | require File.dirname(__FILE__) + '/../spec_helper'
#########################################################################################################
describe "discovery of descendant model from model instance" do
before(:all) do
@c = ChildModel.new(model_data[:child_model_1])
@c.save
end
... | 40.660156 | 797 | 0.686809 |
585dc9624a63d08c3f5c64f49fae85dce02a30f4 | 51 | css | CSS | styles.css | DockerNashvilleMeetup/remarkjs | 9d20c14063a066da1a620cba9a81b9ad7eac6a12 | [
"Apache-2.0"
] | 9 | 2017-06-05T20:56:44.000Z | 2021-03-29T18:41:35.000Z | styles.css | DockerNashvilleMeetup/remarkjs | 9d20c14063a066da1a620cba9a81b9ad7eac6a12 | [
"Apache-2.0"
] | 135 | 2017-10-02T07:31:23.000Z | 2022-03-24T13:06:53.000Z | styles.css | DockerNashvilleMeetup/remarkjs | 9d20c14063a066da1a620cba9a81b9ad7eac6a12 | [
"Apache-2.0"
] | 4 | 2016-12-12T21:38:43.000Z | 2021-10-03T00:55:57.000Z | # No-op CSS file that allows for styling overrides
| 25.5 | 50 | 0.784314 |
05d2ae2097d84756e07f11a27a6b53846eb99253 | 906 | py | Python | setup.py | willprice/gulp_metadata_modifier | 1c6d263e13f4fff2504d6e603ada1c64fb616ed2 | [
"MIT"
] | 1 | 2020-02-06T23:38:19.000Z | 2020-02-06T23:38:19.000Z | setup.py | willprice/gulp_metadata_modifier | 1c6d263e13f4fff2504d6e603ada1c64fb616ed2 | [
"MIT"
] | null | null | null | setup.py | willprice/gulp_metadata_modifier | 1c6d263e13f4fff2504d6e603ada1c64fb616ed2 | [
"MIT"
] | null | null | null | import setuptools
with open("VERSION", "r") as f:
version = f.read().strip()
setuptools.setup(
name="gulp_metadata_modifier", # Replace with your own username
version=version,
author="Will Price",
author_email="will.price94@gmail.com",
license="MIT",
description="A tool for updating gulp ... | 31.241379 | 69 | 0.679912 |
037f2f272cd23e61e03060164fee97d40cd1415b | 3,858 | rb | Ruby | vendor/bundle/ruby/2.2.0/gems/amq-protocol-1.9.2/spec/amq/protocol/queue_spec.rb | yoshiekiura/algopeatio | e97ae5f507a0567302dbece05fedeedc4b7b83c8 | [
"MIT"
] | 1 | 2021-08-28T00:07:05.000Z | 2021-08-28T00:07:05.000Z | vendor/bundle/ruby/2.2.0/gems/amq-protocol-1.9.2/spec/amq/protocol/queue_spec.rb | yoshiekiura/algopeatio | e97ae5f507a0567302dbece05fedeedc4b7b83c8 | [
"MIT"
] | null | null | null | vendor/bundle/ruby/2.2.0/gems/amq-protocol-1.9.2/spec/amq/protocol/queue_spec.rb | yoshiekiura/algopeatio | e97ae5f507a0567302dbece05fedeedc4b7b83c8 | [
"MIT"
] | 1 | 2020-11-04T03:27:25.000Z | 2020-11-04T03:27:25.000Z | # encoding: binary
require File.expand_path('../../../spec_helper', __FILE__)
module AMQ
module Protocol
class Queue
describe Declare do
describe '.encode' do
it 'encodes the parameters into a MethodFrame' do
channel = 1
queue = 'hello.world'
passive ... | 29.676923 | 118 | 0.541991 |
1449b83a154190163757f4b666282318d59d2d52 | 402 | ts | TypeScript | src/app/store/cart.reducer.ts | vpcom/angular6-poster-shop | e5f88c7b7d8e81ca944f94af384e0e3343fd603f | [
"MIT"
] | 1 | 2020-02-14T22:26:05.000Z | 2020-02-14T22:26:05.000Z | src/app/store/cart.reducer.ts | vpcom/angular6-poster-shop | e5f88c7b7d8e81ca944f94af384e0e3343fd603f | [
"MIT"
] | null | null | null | src/app/store/cart.reducer.ts | vpcom/angular6-poster-shop | e5f88c7b7d8e81ca944f94af384e0e3343fd603f | [
"MIT"
] | null | null | null | import {Action} from '@ngrx/store';
import { PosterType, emptyPoster } from '../shared/model/poster.type';
export interface CartState {
cartContent: PosterType[];
}
// TODO enum
export const ADD = 'ADD';
export function cartReducer(state: PosterType[] = [], action) {
switch (action.type) {
case ADD:
... | 19.142857 | 70 | 0.641791 |
aa71264e2d3ea8dd6819a78c9b198049140598a6 | 1,136 | rb | Ruby | api/routes/locations.rb | myAmericaDevSummit2015/Ascent | 93a2b16246469fdbd6017ceeede3c46128ba988d | [
"Apache-2.0"
] | null | null | null | api/routes/locations.rb | myAmericaDevSummit2015/Ascent | 93a2b16246469fdbd6017ceeede3c46128ba988d | [
"Apache-2.0"
] | null | null | null | api/routes/locations.rb | myAmericaDevSummit2015/Ascent | 93a2b16246469fdbd6017ceeede3c46128ba988d | [
"Apache-2.0"
] | null | null | null | require 'sinatra'
require 'mongoid'
require_relative '../models/location'
require_relative '../app/locations_impl'
module Sinatra
module SampleApp
module Routing
module Locations
def self.registered(app)
locations_impl = LocationsImpl.new
# Returns a list of locations associat... | 29.894737 | 87 | 0.621479 |
05c22cd6ca4a48eeb3b6a2f94a882497b7b43c55 | 129 | py | Python | topCoder/srms/200s/srm201/div2/multiples.py | gauravsingh58/algo | 397859a53429e7a585e5f6964ad24146c6261326 | [
"WTFPL"
] | 1 | 2020-09-30T19:53:08.000Z | 2020-09-30T19:53:08.000Z | topCoder/srms/200s/srm201/div2/multiples.py | gauravsingh58/algo | 397859a53429e7a585e5f6964ad24146c6261326 | [
"WTFPL"
] | null | null | null | topCoder/srms/200s/srm201/div2/multiples.py | gauravsingh58/algo | 397859a53429e7a585e5f6964ad24146c6261326 | [
"WTFPL"
] | 1 | 2020-10-15T09:10:57.000Z | 2020-10-15T09:10:57.000Z | class Multiples:
def number(self, min, max, factor):
return len(filter(lambda i: i%factor == 0, xrange(min, max+1)))
| 32.25 | 71 | 0.635659 |
14363cced753487d97cc8a05347ec871ea1fce8d | 12,218 | ts | TypeScript | Code/Websites/DanpheEMR/wwwroot/DanpheApp/src/app/wardsupply/wardsupply-asset/wardsupply-asset-requisition/wardsupply-asset-requisition-list.component.ts | MenkaChaugule/hospital-management-emr | 6c9afb0cda5ca4f8ea726e083f57b7a16a35a58d | [
"MIT"
] | 1 | 2022-03-03T09:53:27.000Z | 2022-03-03T09:53:27.000Z | Code/Websites/DanpheEMR/wwwroot/DanpheApp/src/app/wardsupply/wardsupply-asset/wardsupply-asset-requisition/wardsupply-asset-requisition-list.component.ts | MenkaChaugule/hospital-management-emr | 6c9afb0cda5ca4f8ea726e083f57b7a16a35a58d | [
"MIT"
] | null | null | null | Code/Websites/DanpheEMR/wwwroot/DanpheApp/src/app/wardsupply/wardsupply-asset/wardsupply-asset-requisition/wardsupply-asset-requisition-list.component.ts | MenkaChaugule/hospital-management-emr | 6c9afb0cda5ca4f8ea726e083f57b7a16a35a58d | [
"MIT"
] | 3 | 2022-02-01T03:55:18.000Z | 2022-02-02T07:31:08.000Z | import { Component } from "@angular/core";
import { Router } from '@angular/router';
import GridColumnSettings from '../../../shared/danphe-grid/grid-column-settings.constant';
import { GridEmitModel } from "../../../shared/danphe-grid/grid-emit.model";
import { Requisition } from "../../../inventory/shared/requisiti... | 36.801205 | 171 | 0.676379 |
9ba4d9f55449e1ade91923f859b9db551508869f | 657 | ps1 | PowerShell | Functions/Tests/CreateOstFiles.ps1 | FSLogix/Remove-FslOldOstFile | d2a7508b3f5ac952de914745c6e87491131eae78 | [
"MIT"
] | null | null | null | Functions/Tests/CreateOstFiles.ps1 | FSLogix/Remove-FslOldOstFile | d2a7508b3f5ac952de914745c6e87491131eae78 | [
"MIT"
] | null | null | null | Functions/Tests/CreateOstFiles.ps1 | FSLogix/Remove-FslOldOstFile | d2a7508b3f5ac952de914745c6e87491131eae78 | [
"MIT"
] | null | null | null | $path = 'D:\jimm\ost'
New-Item -Path (Join-Path $path 'test.ost') -ItemType 'File'
New-Item -Path (Join-Path $path 'test(1).ost') -ItemType 'File'
New-Item -Path (Join-Path $path 'test(2).ost') -ItemType 'File'
New-Item -Path (Join-Path $path 'test(3).ost') -ItemType 'File'
New-Item -Path (Join-Path $path 'blah.ost')... | 50.538462 | 63 | 0.669711 |
a3470cde7c504f91dd85040ffccab8d329d6a423 | 444 | java | Java | src/main/java/com/alan19/astral/api/sleepmanager/ISleepManager.java | Alan19/Astral | 6c2b4c0ed97720fb0a04a749ff0d09b77c933062 | [
"MIT"
] | 3 | 2020-01-15T05:46:28.000Z | 2020-06-21T17:13:42.000Z | src/main/java/com/alan19/astral/api/sleepmanager/ISleepManager.java | Alan19/Astral | 6c2b4c0ed97720fb0a04a749ff0d09b77c933062 | [
"MIT"
] | 114 | 2019-10-23T21:11:22.000Z | 2021-12-05T07:00:38.000Z | src/main/java/com/alan19/astral/api/sleepmanager/ISleepManager.java | Alan19/Astral | 6c2b4c0ed97720fb0a04a749ff0d09b77c933062 | [
"MIT"
] | 1 | 2021-06-12T01:40:07.000Z | 2021-06-12T01:40:07.000Z | package com.alan19.astral.api.sleepmanager;
import net.minecraft.nbt.CompoundNBT;
import net.minecraftforge.common.util.INBTSerializable;
public interface ISleepManager extends INBTSerializable<CompoundNBT> {
boolean isGoingToInnerRealm();
void setGoingToInnerRealm(boolean goingToInnerRealm);
int getSle... | 21.142857 | 70 | 0.765766 |
b751e9acf8a3c429052bbcff08f55f9dce66b607 | 2,237 | cs | C# | Demonstration Programs/Demonstration Programs/BintoDec.cs | brandon-crandall/CSC440FinalPortfolio | e7f8d66d7b1cc0bae46467772c68f02f2852cd2d | [
"MIT"
] | null | null | null | Demonstration Programs/Demonstration Programs/BintoDec.cs | brandon-crandall/CSC440FinalPortfolio | e7f8d66d7b1cc0bae46467772c68f02f2852cd2d | [
"MIT"
] | null | null | null | Demonstration Programs/Demonstration Programs/BintoDec.cs | brandon-crandall/CSC440FinalPortfolio | e7f8d66d7b1cc0bae46467772c68f02f2852cd2d | [
"MIT"
] | null | null | null | /// <summary>
/// SOURCE: Homework assignment in python class. (Python code at bottom)
///
/// STUDENT: Brandon Crandall
///
/// SYNOPSIS: Create a function to change binary into decimal.
/// </summary>
using System;
using System.Collections.Generic;
using System.Text;
namespace Demonstration_Programs
{
//class... | 29.434211 | 125 | 0.594099 |
c4fbc70e4741770df8cd09eb41601131ae677538 | 3,090 | hpp | C++ | include/SSVStart/Assets/Internal/Loader.hpp | vittorioromeo/SSVStart | ba604007e54462df30346d9c0545ba3274850f49 | [
"AFL-3.0"
] | 11 | 2015-01-27T09:45:11.000Z | 2017-10-05T17:14:40.000Z | include/SSVStart/Assets/Internal/Loader.hpp | vittorioromeo/SSVStart | ba604007e54462df30346d9c0545ba3274850f49 | [
"AFL-3.0"
] | 2 | 2019-12-16T00:24:29.000Z | 2019-12-17T13:57:42.000Z | include/SSVStart/Assets/Internal/Loader.hpp | vittorioromeo/SSVStart | ba604007e54462df30346d9c0545ba3274850f49 | [
"AFL-3.0"
] | 7 | 2015-01-29T17:05:52.000Z | 2020-08-12T22:59:47.000Z | // Copyright (c) 2013-2015 Vittorio Romeo
// License: Academic Free License ("AFL") v. 3.0
// AFL License page: http://opensource.org/licenses/AFL-3.0
#pragma once
#include "SSVStart/BitmapText/BitmapText.hpp"
#include "SSVStart/Tileset/Tileset.hpp"
#include "SSVStart/Assets/Internal/Helper.hpp"
#include <SSVUtils/C... | 23.769231 | 73 | 0.615858 |
aca74824bd9421cc4351abd46e22aab64702cea9 | 1,288 | kt | Kotlin | app/src/main/java/org/com/castcodechallenge/comcastcodechallenge/api/model/SrcOptions.kt | jitzian/SimpsonsAndTheWire | a91e71b6b56c6c7dc491099463adf3c743decbe6 | [
"MIT"
] | null | null | null | app/src/main/java/org/com/castcodechallenge/comcastcodechallenge/api/model/SrcOptions.kt | jitzian/SimpsonsAndTheWire | a91e71b6b56c6c7dc491099463adf3c743decbe6 | [
"MIT"
] | null | null | null | app/src/main/java/org/com/castcodechallenge/comcastcodechallenge/api/model/SrcOptions.kt | jitzian/SimpsonsAndTheWire | a91e71b6b56c6c7dc491099463adf3c743decbe6 | [
"MIT"
] | null | null | null | package org.com.castcodechallenge.comcastcodechallenge.api.model
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
class SrcOptions {
@SerializedName("skip_qr")
@Expose
var skipQr: String? = null
@SerializedName("is_mediawiki")
@Expose
var isMediawiki... | 24.769231 | 64 | 0.678571 |
f45eb0ac202a42b9ff814846deca7f64d2f4f68a | 383 | ts | TypeScript | projects/ionic-context-menu/src/lib/ionic-context-menu-content.component.ts | smartin85/ionic-context-menu | 8f0ae7711456790c4f20d3cb3b57d93d07483ea8 | [
"MIT"
] | 6 | 2019-05-23T01:38:03.000Z | 2021-12-24T19:09:01.000Z | projects/ionic-context-menu/src/lib/ionic-context-menu-content.component.ts | smartin85/ionic-context-menu | 8f0ae7711456790c4f20d3cb3b57d93d07483ea8 | [
"MIT"
] | 15 | 2019-07-23T09:06:58.000Z | 2022-02-26T05:36:54.000Z | projects/ionic-context-menu/src/lib/ionic-context-menu-content.component.ts | smartin85/ionic-context-menu | 8f0ae7711456790c4f20d3cb3b57d93d07483ea8 | [
"MIT"
] | 3 | 2019-08-19T15:13:39.000Z | 2019-11-29T18:34:31.000Z | import { Component, Input, TemplateRef } from '@angular/core';
@Component({
selector: 'ionic-context-menu-content',
template: `
<ng-template #defaultTemplate>
<div></div>
</ng-template>
<ng-container *ngTemplateOutlet="template ? template : defaultTemplate"></ng-container>
`
})
export class IonicContextM... | 25.533333 | 89 | 0.715405 |
6b6b6aa46b5555b967589fbd3182d66846b32b9d | 27,883 | js | JavaScript | web/rainmaker/dev-packages/egov-services-dev/src/ui-config/screens/specs/egov-services/checkAvailabilityForm_pcc.js | pritamsavst/frontend | 45f534b227139261f12dad5ebaafd5028ade9768 | [
"MIT"
] | null | null | null | web/rainmaker/dev-packages/egov-services-dev/src/ui-config/screens/specs/egov-services/checkAvailabilityForm_pcc.js | pritamsavst/frontend | 45f534b227139261f12dad5ebaafd5028ade9768 | [
"MIT"
] | 1 | 2021-01-24T05:36:24.000Z | 2021-01-24T05:36:24.000Z | web/rainmaker/dev-packages/egov-services-dev/src/ui-config/screens/specs/egov-services/checkAvailabilityForm_pcc.js | pritamsavst/frontend | 45f534b227139261f12dad5ebaafd5028ade9768 | [
"MIT"
] | null | null | null | import {
getBreak,
getCommonCard,
getCommonContainer,
getCommonHeader,
getCommonSubHeader,
getCommonTitle,
getSelectField,
getDateField,
getLabel,
getPattern,
} from "egov-ui-framework/ui-config/screens/specs/utils";
import {
prepareFinalObject,
handleScreenConfigurationFieldChange as handleFie... | 31.793615 | 218 | 0.543378 |
874492453eeff19ea101ee3d228cc7149450d758 | 479 | sql | SQL | components/backend/structure.sql | stainful/rvloco | 85e8b83667a58c1bb863a2778b8dc64f82715ad1 | [
"MIT"
] | null | null | null | components/backend/structure.sql | stainful/rvloco | 85e8b83667a58c1bb863a2778b8dc64f82715ad1 | [
"MIT"
] | null | null | null | components/backend/structure.sql | stainful/rvloco | 85e8b83667a58c1bb863a2778b8dc64f82715ad1 | [
"MIT"
] | null | null | null | CREATE TABLE translations (
keyname text PRIMARY KEY,
ru_translation text,
en_translation text
);
CREATE TABLE users (
id SERIAL PRIMARY KEY,
login TEXT unique NOT NULL,
password text NOT NULL,
active boolean DEFAULT false
);
CREATE TABLE changes_history (
id SERIAL,
translation_key text NOT NULL RE... | 22.809524 | 83 | 0.759916 |
a3cf117044a5e920540aa3c85b94e878dd944bf7 | 3,236 | java | Java | cayenne-dbsync/src/test/java/org/apache/cayenne/dbsync/reverse/dbload/BaseLoaderIT.java | wx930910/autorefactor_cayenne | cea13147d920de8ad0da56df5052790dca4e18f3 | [
"Apache-2.0"
] | 1 | 2015-01-22T13:33:13.000Z | 2015-01-22T13:33:13.000Z | cayenne-dbsync/src/test/java/org/apache/cayenne/dbsync/reverse/dbload/BaseLoaderIT.java | wx930910/autorefactor_cayenne | cea13147d920de8ad0da56df5052790dca4e18f3 | [
"Apache-2.0"
] | 3 | 2021-02-03T19:31:00.000Z | 2022-03-31T20:06:08.000Z | cayenne-dbsync/src/test/java/org/apache/cayenne/dbsync/reverse/dbload/BaseLoaderIT.java | wx930910/autorefactor_cayenne | cea13147d920de8ad0da56df5052790dca4e18f3 | [
"Apache-2.0"
] | null | null | null | /*****************************************************************
* 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
* ... | 32.36 | 87 | 0.683251 |
ad046f89672a59ff3e1bc518db09d8f6442b4b4f | 3,949 | rs | Rust | src/lib.rs | thomcc/arcstr | f5eed2a78a5081f20bc13472705af4d45d2cde8d | [
"Zlib",
"Apache-2.0",
"MIT"
] | 58 | 2020-08-14T08:38:28.000Z | 2022-03-13T19:43:34.000Z | src/lib.rs | thomcc/arcstr | f5eed2a78a5081f20bc13472705af4d45d2cde8d | [
"Zlib",
"Apache-2.0",
"MIT"
] | 34 | 2020-08-14T07:22:48.000Z | 2022-03-26T06:40:24.000Z | src/lib.rs | thomcc/arcstr | f5eed2a78a5081f20bc13472705af4d45d2cde8d | [
"Zlib",
"Apache-2.0",
"MIT"
] | 9 | 2020-08-14T19:12:05.000Z | 2022-01-04T10:16:42.000Z | //! # Better reference counted strings
//!
//! This crate defines [`ArcStr`], a type similar to `Arc<str>`, but with a
//! number of new features and functionality. Theres a list of
//! [benefits][benefits] in the `ArcStr` documentation comment which covers some
//! of the reasons you might want to use it over other al... | 36.229358 | 82 | 0.663966 |
79aeae4f3a4ee21a99d8e41cf63dc52fe0af63b5 | 443 | ps1 | PowerShell | text files/lollipop 2.ps1 | MartinFen/Network-Technlogies-1 | 1dfbad10aafbcc1b4c1ad8890a8807b189ccc740 | [
"Apache-2.0"
] | null | null | null | text files/lollipop 2.ps1 | MartinFen/Network-Technlogies-1 | 1dfbad10aafbcc1b4c1ad8890a8807b189ccc740 | [
"Apache-2.0"
] | null | null | null | text files/lollipop 2.ps1 | MartinFen/Network-Technlogies-1 | 1dfbad10aafbcc1b4c1ad8890a8807b189ccc740 | [
"Apache-2.0"
] | null | null | null |
enable
conf t
int Fa0/0.05
enc dot1Q 5
ip address 192.168.5.1 255.255.255.0
ip helper-address 192.168.15.10
EXIT
EXIT
EXIT
enable
conf t
int Fa0/0
ip helper-address 192.168.10.10
EXIT
EXIT
EXIT
enable
conf t
int Fa0/0.15
enc dot1Q 15
ip address 192.168.15.1 255.255.255.0
ip helper-address 192.168.15.10
EXIT
EXIT
EXI... | 11.657895 | 37 | 0.75395 |
6a4b1bcdd1e177e3f0a9b897bffd0b75efd0af1b | 248 | swift | Swift | CodeSamples/RandomDontWorkOnLinux/Sources/main.swift | jeffreybergier/SwiftServerSlugTalk | a647c0e93dd4750d6c480f3bc8d6411d59e8797a | [
"MIT"
] | 1 | 2016-12-19T23:16:07.000Z | 2016-12-19T23:16:07.000Z | CodeSamples/RandomDontWorkOnLinux/Sources/main.swift | jeffreybergier/SwiftServerSlugTalk | a647c0e93dd4750d6c480f3bc8d6411d59e8797a | [
"MIT"
] | null | null | null | CodeSamples/RandomDontWorkOnLinux/Sources/main.swift | jeffreybergier/SwiftServerSlugTalk | a647c0e93dd4750d6c480f3bc8d6411d59e8797a | [
"MIT"
] | null | null | null |
#if os(Linux)
import Glibc
#else
import Darwin
#endif
for i in 1 ... 5 {
#if os(Linux)
let randomNumber = random()
#else
let randomNumber = Int(arc4random_uniform(UInt32.max))
#endif
print("Round \(i): \(randomNumber)")
}
| 15.5 | 58 | 0.629032 |
c6cf7f0a27dec6c446025467e2a6b4ac4ea015e9 | 2,016 | py | Python | rec_to_nwb/processing/time/timestamp_converter.py | LorenFrankLab/rec_to_nwb | d0630f414662963ebbe23aedf8f3ce07628636bc | [
"Apache-2.0"
] | 1 | 2021-01-20T00:26:30.000Z | 2021-01-20T00:26:30.000Z | rec_to_nwb/processing/time/timestamp_converter.py | LorenFrankLab/rec_to_nwb | d0630f414662963ebbe23aedf8f3ce07628636bc | [
"Apache-2.0"
] | 12 | 2020-11-13T01:36:32.000Z | 2022-01-23T20:35:55.000Z | rec_to_nwb/processing/time/timestamp_converter.py | LorenFrankLab/rec_to_nwb | d0630f414662963ebbe23aedf8f3ce07628636bc | [
"Apache-2.0"
] | 3 | 2020-10-20T06:52:45.000Z | 2021-07-06T23:00:53.000Z | import logging.config
import os
import numpy as np
path = os.path.dirname(os.path.abspath(__file__))
logging.config.fileConfig(
fname=os.path.join(str(path), os.pardir, os.pardir, 'logging.conf'),
disable_existing_loggers=False)
logger = logging.getLogger(__name__)
NANOSECONDS_PER_SECOND = 1E9
class Times... | 36 | 79 | 0.685516 |
131d98c1015b6a9c577e99660062e0f60b5c31ba | 2,429 | dart | Dart | packages/binder/test/observer_test.dart | letsar/binder | 8cb571c17be1c8c91a3085034757993c18c3b298 | [
"MIT"
] | 177 | 2020-10-26T07:46:48.000Z | 2022-02-22T15:03:04.000Z | packages/binder/test/observer_test.dart | letsar/binder | 8cb571c17be1c8c91a3085034757993c18c3b298 | [
"MIT"
] | 19 | 2020-10-29T00:25:09.000Z | 2021-08-01T23:13:21.000Z | packages/binder/test/observer_test.dart | letsar/binder | 8cb571c17be1c8c91a3085034757993c18c3b298 | [
"MIT"
] | 9 | 2020-10-27T19:15:06.000Z | 2022-01-28T02:43:40.000Z | import 'package:binder/src/build_context_extensions.dart';
import 'package:binder/src/core.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
group('DelegatingStateObserver', () {
testWidgets(
'An observer should be called for every changes with ex... | 26.402174 | 80 | 0.503911 |
980ab3bc4a57447b3222534b3167de92a4804cb1 | 1,641 | py | Python | neural_sp/models/modules/zoneout.py | SunSki/neural_sp | 4e4aca9b4cda1c7d95a1774d22f4d3298ad4ba4b | [
"Apache-2.0"
] | null | null | null | neural_sp/models/modules/zoneout.py | SunSki/neural_sp | 4e4aca9b4cda1c7d95a1774d22f4d3298ad4ba4b | [
"Apache-2.0"
] | null | null | null | neural_sp/models/modules/zoneout.py | SunSki/neural_sp | 4e4aca9b4cda1c7d95a1774d22f4d3298ad4ba4b | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2019 Kyoto University (Hirofumi Inaguma)
# Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
"""Zoneout regularization."""
import torch.nn as nn
class ZoneoutCell(nn.Module):
def __init__(self, cell, zoneout_prob_h, zoneout_prob_c):
... | 28.789474 | 71 | 0.606947 |
5d9a9dd797a42e7794f2b88dd787c4a107c2ccc5 | 1,983 | cpp | C++ | dnn_project/dnn/util/spikes_list.cpp | alexeyche/dnn_old | 58305cf486187575312cef0a753c86a8c7792196 | [
"MIT"
] | null | null | null | dnn_project/dnn/util/spikes_list.cpp | alexeyche/dnn_old | 58305cf486187575312cef0a753c86a8c7792196 | [
"MIT"
] | null | null | null | dnn_project/dnn/util/spikes_list.cpp | alexeyche/dnn_old | 58305cf486187575312cef0a753c86a8c7792196 | [
"MIT"
] | null | null | null |
#include "spikes_list.h"
#include <dnn/base/factory.h>
namespace dnn {
Ptr<TimeSeries> SpikesList::convertToBinaryTimeSeries(const double &dt) const {
Ptr<TimeSeries> out(Factory::inst().createObject<TimeSeries>());
out->info = info;
out->setDimSize(seq.size());
double max_spike_time = std::numeri... | 34.789474 | 113 | 0.476551 |
f47118e06fc9362b1b22acdae676762762710629 | 7,889 | ts | TypeScript | src/app/reports/view-supplier-orders-monthly/view-supplier-orders-monthly.component.ts | MuhammadUsamaAhsan/QAS_Front_End | 107db0c790968bff3d3b506b608961fb10cd9f92 | [
"MIT"
] | null | null | null | src/app/reports/view-supplier-orders-monthly/view-supplier-orders-monthly.component.ts | MuhammadUsamaAhsan/QAS_Front_End | 107db0c790968bff3d3b506b608961fb10cd9f92 | [
"MIT"
] | null | null | null | src/app/reports/view-supplier-orders-monthly/view-supplier-orders-monthly.component.ts | MuhammadUsamaAhsan/QAS_Front_End | 107db0c790968bff3d3b506b608961fb10cd9f92 | [
"MIT"
] | null | null | null | import { Component, OnInit } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import { HttpClient } from '@angular/common/http';
import * as Chart from 'chart.js';
import { SomeSharedService } from '../../globals/globals.component';
import { AuthenticationService } from '../../Services/au... | 25.285256 | 190 | 0.541894 |
e218846aa5890b0ebf6f5c03bd566921c9ba7f7c | 502 | py | Python | elastic_agent_setup/api/__init__.py | MSAdministrator/elastic-agent-setup | 5cb8202aaed281f73706556a86657f5525495b56 | [
"MIT"
] | 1 | 2022-02-04T16:59:53.000Z | 2022-02-04T16:59:53.000Z | elastic_agent_setup/api/__init__.py | MSAdministrator/elastic-agent-setup | 5cb8202aaed281f73706556a86657f5525495b56 | [
"MIT"
] | 1 | 2021-07-21T11:30:13.000Z | 2021-11-09T14:30:10.000Z | elastic_agent_setup/api/__init__.py | MSAdministrator/elastic-agent-setup | 5cb8202aaed281f73706556a86657f5525495b56 | [
"MIT"
] | null | null | null | from .check_fleet_setup import CheckFleetSetup
from .check_fleet_agents_setup import CheckFleetAgentsSetup
from .check_service import CheckService
from .create_enrollment_key import CreateEnrollmentKey
from .delete_enrollment_key import DeleteEnrollmentKey
from .get_enrollment_key import GetEnrollmentKey
from .get_enro... | 50.2 | 60 | 0.90239 |
b1f936937cd88f3bdea1c9687f4514f9ca8851d9 | 11,642 | dart | Dart | lib/generated/intl/messages_ru.dart | filonov/kachculator | 023645502790fe56d19d9f593aa7e07026027809 | [
"MIT"
] | 3 | 2020-09-10T10:45:55.000Z | 2022-01-27T18:22:28.000Z | lib/generated/intl/messages_ru.dart | filonov/kachculator | 023645502790fe56d19d9f593aa7e07026027809 | [
"MIT"
] | 21 | 2020-09-03T16:29:15.000Z | 2020-11-06T10:35:25.000Z | lib/generated/intl/messages_ru.dart | filonov/kachculator | 023645502790fe56d19d9f593aa7e07026027809 | [
"MIT"
] | null | null | null | // DO NOT EDIT. This is code generated via package:intl/generate_localized.dart
// This is a library that provides messages for a ru locale. All the
// messages from the main program should be duplicated here with the same
// function name.
// Ignore issues from commonly used lints in this file.
// ignore_for_file:unn... | 63.967033 | 588 | 0.718347 |
cddfd3417a974f2001a994ac146b627a9452e20f | 250 | cs | C# | src/SFMBE.Shared/UserInfo.cs | Rado-K/SFMBE | 217d626237f78d8f6ea2b7166c9a29533e0bd9cd | [
"MIT"
] | 2 | 2020-11-29T07:49:00.000Z | 2022-03-08T20:54:33.000Z | src/SFMBE.Shared/UserInfo.cs | Rado-K/SFMBE | 217d626237f78d8f6ea2b7166c9a29533e0bd9cd | [
"MIT"
] | null | null | null | src/SFMBE.Shared/UserInfo.cs | Rado-K/SFMBE | 217d626237f78d8f6ea2b7166c9a29533e0bd9cd | [
"MIT"
] | null | null | null | namespace SFMBE.Shared
{
using System.Collections.Generic;
public class UserInfo
{
public bool IsAuthenticated { get; set; }
public string Username { get; set; }
public Dictionary<string, string> ExposedClaims { get; set; }
}
} | 19.230769 | 65 | 0.688 |
bfea3b998ecdd982790084714a9509fd67868479 | 16,784 | swift | Swift | Tests/FidoHistoryActionTests.swift | openalloc/FINporterFido | 945eb179c0a761afe2d111ca3e198bf468835603 | [
"Apache-2.0"
] | null | null | null | Tests/FidoHistoryActionTests.swift | openalloc/FINporterFido | 945eb179c0a761afe2d111ca3e198bf468835603 | [
"Apache-2.0"
] | null | null | null | Tests/FidoHistoryActionTests.swift | openalloc/FINporterFido | 945eb179c0a761afe2d111ca3e198bf468835603 | [
"Apache-2.0"
] | null | null | null | //
// FidoHistoryTests.swift
//
// Copyright 2021 FlowAllocator LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requ... | 65.819608 | 235 | 0.634652 |
0db00310c768db8490b1031187a07f344ebdb43c | 1,824 | cs | C# | PrimarSql.Data/Planners/Ddl/Index/IndexDefinition.cs | ScriptBox99/chequer-PrimarSql.Data | 97b4c110ad7997c16532e4170c642b9b1d3b5e42 | [
"MIT"
] | 2 | 2021-01-25T08:24:09.000Z | 2021-08-29T13:23:02.000Z | PrimarSql.Data/Planners/Ddl/Index/IndexDefinition.cs | ScriptBox99/chequer-PrimarSql.Data | 97b4c110ad7997c16532e4170c642b9b1d3b5e42 | [
"MIT"
] | null | null | null | PrimarSql.Data/Planners/Ddl/Index/IndexDefinition.cs | ScriptBox99/chequer-PrimarSql.Data | 97b4c110ad7997c16532e4170c642b9b1d3b5e42 | [
"MIT"
] | 1 | 2021-01-28T22:13:54.000Z | 2021-01-28T22:13:54.000Z | using System.Collections.Generic;
using System.Linq;
using Amazon.DynamoDBv2;
using Amazon.DynamoDBv2.Model;
namespace PrimarSql.Data.Planners.Index
{
internal sealed class IndexDefinition
{
private Projection _projection;
private List<KeySchemaElement> _keySchema;
public bool ... | 28.952381 | 103 | 0.489583 |
966672d1acd92e5021e2ef9942347e5dc98ba9fd | 82 | kts | Kotlin | addOns/kotlin/src/test/resources/org/zaproxy/addon/kotlin/classloaderTest2.kts | theamanrawat/zap-extensions | 38271747467f3c18e6c2125b6a8095ce7cf3cd60 | [
"Apache-2.0"
] | 623 | 2015-05-07T10:47:49.000Z | 2022-03-28T21:15:00.000Z | addOns/kotlin/src/test/resources/org/zaproxy/addon/kotlin/classloaderTest2.kts | theamanrawat/zap-extensions | 38271747467f3c18e6c2125b6a8095ce7cf3cd60 | [
"Apache-2.0"
] | 1,466 | 2015-05-11T11:49:43.000Z | 2022-03-31T16:51:56.000Z | addOns/kotlin/src/test/resources/org/zaproxy/addon/kotlin/classloaderTest2.kts | theamanrawat/zap-extensions | 38271747467f3c18e6c2125b6a8095ce7cf3cd60 | [
"Apache-2.0"
] | 801 | 2015-05-07T10:48:05.000Z | 2022-03-28T21:15:02.000Z | import org.zaproxy.zap.ZAP
fun f(): Class<ZAP> {
return ZAP::class.java
}
f() | 13.666667 | 26 | 0.646341 |
b0347df7a60e6914c2a2b748f8c7a743cfac0c76 | 769 | py | Python | apps/functions/models.py | hashqueue/beer_server | 7b471d5c3fdd021564bc87d73c4e04a69059d291 | [
"MIT"
] | 12 | 2021-11-16T07:20:22.000Z | 2022-02-17T17:25:45.000Z | apps/functions/models.py | hashqueue/beer_server | 7b471d5c3fdd021564bc87d73c4e04a69059d291 | [
"MIT"
] | 1 | 2021-07-02T09:57:44.000Z | 2021-08-07T12:02:59.000Z | apps/functions/models.py | hashqueue/beer_server | 7b471d5c3fdd021564bc87d73c4e04a69059d291 | [
"MIT"
] | 3 | 2021-09-17T08:22:02.000Z | 2021-12-16T06:22:30.000Z | from django.db import models
from project.models import Project
from utils.django_utils.base_model import BaseModel
# Create your models here.
class Function(BaseModel):
function_name = models.CharField(max_length=150, verbose_name='全局函数名称', help_text='全局函数名称')
function_desc = models.CharField(max_length=25... | 34.954545 | 119 | 0.742523 |
a9160173539a6a9b65e590f0cee1a521e140007d | 43 | css | CSS | lib/column-rule-width/coruwi-tc.css | nwmcsween/asm.css | 8036ae5cbdd111c4b3169375ba4e5514d1041413 | [
"MIT"
] | null | null | null | lib/column-rule-width/coruwi-tc.css | nwmcsween/asm.css | 8036ae5cbdd111c4b3169375ba4e5514d1041413 | [
"MIT"
] | 2 | 2016-06-14T05:31:51.000Z | 2016-06-25T02:15:46.000Z | lib/column-rule-width/coruwi-tc.css | nwmcsween/asm.css | 8036ae5cbdd111c4b3169375ba4e5514d1041413 | [
"MIT"
] | 1 | 2016-06-21T09:49:28.000Z | 2016-06-21T09:49:28.000Z | .coruwi-tc {
column-rule-width: thick;
}
| 10.75 | 27 | 0.651163 |