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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
29e4c775ce1631f78ac5ec1e426a1a53ff260a5b | 1,520 | rs | Rust | 2019/day-6/day6/src/main.rs | Petrosz007/advent-of-code | f779bc8810dad22aacbbee3951dafa7507af7bd6 | [
"MIT"
] | null | null | null | 2019/day-6/day6/src/main.rs | Petrosz007/advent-of-code | f779bc8810dad22aacbbee3951dafa7507af7bd6 | [
"MIT"
] | null | null | null | 2019/day-6/day6/src/main.rs | Petrosz007/advent-of-code | f779bc8810dad22aacbbee3951dafa7507af7bd6 | [
"MIT"
] | null | null | null | use std::collections::HashMap;
fn part1_bfs<'a>(u: &'a str, graph: &HashMap<&'a str, Vec<&'a str>>, visited: &mut HashMap<&'a str, bool>, dist: u32) -> u32 {
if visited[u] {
return 0;
}
visited.insert(u, true);
let mut sum = dist;
for v in graph.get(u).unwrap() {
sum += part1_bfs(... | 26.206897 | 126 | 0.532895 |
eb638843e993dbd50caffebb58afd5342bff21d7 | 58,973 | css | CSS | src/assets/fonts/iconfont/iconfont.css | SJYsun/fcsample | 146bfba1564f083c89d2b244af0f6025c8d91952 | [
"MIT"
] | 1 | 2018-04-25T08:06:14.000Z | 2018-04-25T08:06:14.000Z | src/assets/fonts/iconfont/iconfont.css | zhaopeiyan/Easyfcexample | 9c26f62adf59522cc6d893532cf0458412d551dd | [
"MIT"
] | null | null | null | src/assets/fonts/iconfont/iconfont.css | zhaopeiyan/Easyfcexample | 9c26f62adf59522cc6d893532cf0458412d551dd | [
"MIT"
] | null | null | null |
@font-face {font-family: "iconfont";
src: url('iconfont.eot?t=1524889468689'); /* IE9*/
src: url('iconfont.eot?t=1524889468689#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAIwgAAsAAAAA4KgAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADMAAABC... | 126.551502 | 47,907 | 0.904923 |
c47621d6b4f0c61a6c33fc2c834f9f42419536c9 | 5,217 | cpp | C++ | OGDF/src/ogdf/fileformats/xml/Lexer.cpp | shahnidhi/MetaCarvel | f3bea5fdbbecec4c9becc6bbdc9585a939eb5481 | [
"MIT"
] | 13 | 2017-12-21T03:35:41.000Z | 2022-01-31T13:45:25.000Z | OGDF/src/ogdf/fileformats/xml/Lexer.cpp | shahnidhi/MetaCarvel | f3bea5fdbbecec4c9becc6bbdc9585a939eb5481 | [
"MIT"
] | 7 | 2017-09-13T01:31:24.000Z | 2021-12-14T00:31:50.000Z | OGDF/src/ogdf/fileformats/xml/Lexer.cpp | shahnidhi/MetaCarvel | f3bea5fdbbecec4c9becc6bbdc9585a939eb5481 | [
"MIT"
] | 15 | 2017-09-07T18:28:55.000Z | 2022-01-18T14:17:43.000Z | /** \file
* \brief Implementation of simple XML lexer.
*
* \author Łukasz Hanuszczak
*
* \par License:
* This file is part of the Open Graph Drawing Framework (OGDF).
*
* \par
* Copyright (C)<br>
* See README.txt in the root directory of the OGDF installation for details.
*
* \par
* This program is free so... | 17.989655 | 77 | 0.608396 |
6a7101835665310526da2caa394a2afb4600ea5c | 357 | swift | Swift | swift/Fch_Contact/Fch_Contact/AppClasses/Model/DeptModel.swift | february29/Learning | e909fd0a10b1a6d2ba6847e5821233548a778508 | [
"MIT"
] | null | null | null | swift/Fch_Contact/Fch_Contact/AppClasses/Model/DeptModel.swift | february29/Learning | e909fd0a10b1a6d2ba6847e5821233548a778508 | [
"MIT"
] | 4 | 2021-03-09T04:53:30.000Z | 2022-02-26T11:14:26.000Z | swift/Fch_Contact/Fch_Contact/AppClasses/Model/DeptModel.swift | february29/Learning | e909fd0a10b1a6d2ba6847e5821233548a778508 | [
"MIT"
] | null | null | null | //
// DeptModel.swift
// Fch_Contact
//
// Created by bai on 2017/12/1.
// Copyright © 2017年 北京仙指信息技术有限公司. All rights reserved.
//
import UIKit
import HandyJSON
class DeptModel:HandyJSON {
required init() {
}
var id : Int!
var book_id : Int!
var name : String!
var ... | 13.730769 | 56 | 0.579832 |
2f0ba6debc9b284d1bc658077558a1eeacf535ad | 6,073 | js | JavaScript | pages/edit-product.js | Spop08/shopify-metafields-app | 9bcecce311727f1818678955b4efa0d41dd79c6a | [
"MIT"
] | 44 | 2020-04-24T12:38:57.000Z | 2022-01-27T07:10:48.000Z | pages/edit-product.js | Spop08/shopify-metafields-app | 9bcecce311727f1818678955b4efa0d41dd79c6a | [
"MIT"
] | null | null | null | pages/edit-product.js | Spop08/shopify-metafields-app | 9bcecce311727f1818678955b4efa0d41dd79c6a | [
"MIT"
] | 3 | 2020-09-28T17:13:48.000Z | 2022-02-08T23:36:28.000Z | import React from "react";
import {
Card,
List,
Page,
Thumbnail,
TextField,
Layout,
Button,
Heading,
Subheading,
ButtonGroup,
Icon,
AppProvider,
ContextualSaveBar,
Frame
} from "@shopify/polaris";
import { DeleteMinor } from "@shopify/polaris-icons";
import { Redirect } from "@shopify/app-br... | 25.733051 | 114 | 0.586366 |
da11edd32372f8cc5f38d1c762daa5bf8aa89a15 | 1,917 | php | PHP | ignition_application/views/admin/blog/list.php | rewphus/tidbitsdev | cbe806516c83cd0d4ba601425fc13601d5c44a86 | [
"MIT"
] | 20 | 2015-01-07T03:23:02.000Z | 2020-06-02T20:38:49.000Z | ignition_application/views/admin/blog/list.php | rewphus/tidbitsdev | cbe806516c83cd0d4ba601425fc13601d5c44a86 | [
"MIT"
] | 57 | 2015-01-01T13:10:50.000Z | 2017-07-23T17:26:09.000Z | ignition_application/views/admin/blog/list.php | rewphus/tidbitsdev | cbe806516c83cd0d4ba601425fc13601d5c44a86 | [
"MIT"
] | 7 | 2015-09-21T19:41:51.000Z | 2020-01-19T22:48:29.000Z | <ul class="breadcrumb">
<li itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb"><span itemprop="title"><a href="/">Home</a></span></li>
<li itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb"><span itemprop="title"><a href="/admin">Admin</a></span></li>
<li items... | 35.5 | 153 | 0.56025 |
c48efe9fe55ce710f8798cae5f040f4587aa5cf1 | 6,387 | hh | C++ | src/grid.hh | lanl/libparty | ae0ee61e23f4335a820d0aee04be58944450d251 | [
"Apache-2.0"
] | 2 | 2020-03-19T08:28:37.000Z | 2020-06-29T08:05:12.000Z | src/grid.hh | lanl/libparty | ae0ee61e23f4335a820d0aee04be58944450d251 | [
"Apache-2.0"
] | null | null | null | src/grid.hh | lanl/libparty | ae0ee61e23f4335a820d0aee04be58944450d251 | [
"Apache-2.0"
] | 3 | 2017-06-21T20:49:57.000Z | 2020-03-19T08:28:38.000Z | /*
* Copyright 2014. Los Alamos National Security, LLC. This material was produced
* under U.S. Government contract DE-AC52-06NA25396 for Los Alamos National
* Laboratory (LANL), which is operated by Los Alamos National Security, LLC
* for the U.S. Department of Energy. The U.S. Government has rights to use,
... | 38.945122 | 114 | 0.567716 |
20a9de2b7e432d7723ae2900ca820b3d07d3057f | 192 | py | Python | windse/TurbineManager.py | malihass/WindSE | ea6763847a5988c54a74db16126f90b3975c79c3 | [
"Apache-2.0"
] | null | null | null | windse/TurbineManager.py | malihass/WindSE | ea6763847a5988c54a74db16126f90b3975c79c3 | [
"Apache-2.0"
] | null | null | null | windse/TurbineManager.py | malihass/WindSE | ea6763847a5988c54a74db16126f90b3975c79c3 | [
"Apache-2.0"
] | null | null | null | class GenericTurbine(object):
def __init__(self, loc, RD, W):
self.loc = loc # Location in Space
self.RD = RD # Rotor Diameter
self.W = W # Width of influence | 38.4 | 43 | 0.59375 |
07484ed383311f6949f8f1a525575c70b233b35c | 671 | css | CSS | decks/8008.css | cccswann/gotype-app | 396cd818e25faec6e9f9fa31ab0df5162f676416 | [
"MIT"
] | null | null | null | decks/8008.css | cccswann/gotype-app | 396cd818e25faec6e9f9fa31ab0df5162f676416 | [
"MIT"
] | null | null | null | decks/8008.css | cccswann/gotype-app | 396cd818e25faec6e9f9fa31ab0df5162f676416 | [
"MIT"
] | null | null | null | /*
Colors inspired by GMK 8008 by Dixie Mech
https://dixiemech.com/gmk8008
Dark Blue: #3c4756
Light Blue: #a2aebd
Pink: #f44c7f
*/
body {
background: #3c4756;
}
#header {
color: #f44c7f;
}
#left-wing {
color: #f44c7f;
}
#right-wing {
color: #f44c7f;
}
#typing-area, #theme-area{
background: #a2a... | 10.822581 | 41 | 0.615499 |
9cdf033366045345845dc3b31d45041d7aaa6db1 | 108 | psm1 | PowerShell | Powershell Module/Devolutions.Server/Private/Types/enums/SessionRecordingTarget.generated.psm1 | Devolutions/devolutions-server-rest-service | 3fb263f17c91d0980493ea1551fa2ffd69b9c16c | [
"Apache-2.0"
] | 5 | 2020-11-26T20:44:57.000Z | 2022-01-25T16:51:27.000Z | Powershell Module/Devolutions.Server/Private/Types/enums/SessionRecordingTarget.generated.psm1 | Devolutions/devolutions-server-rest-service | 3fb263f17c91d0980493ea1551fa2ffd69b9c16c | [
"Apache-2.0"
] | 11 | 2021-03-24T20:54:48.000Z | 2021-09-23T12:59:08.000Z | Powershell Module/Devolutions.Server/Private/Types/enums/SessionRecordingTarget.generated.psm1 | Devolutions/devolutions-server-rest-service | 3fb263f17c91d0980493ea1551fa2ffd69b9c16c | [
"Apache-2.0"
] | 3 | 2021-07-16T14:06:46.000Z | 2021-12-09T09:05:34.000Z | enum SessionRecordingTarget
{
Default = 0
Local = 1
Remote = 2
Inherited = 3
Root = 4
}
| 12 | 27 | 0.574074 |
df459bd0e95e28c1271d862c416564bae52a86b5 | 7,879 | lua | Lua | addons/xyz_prison/lua/xyz_prison/core/sv_core.lua | JacubRSTNC/PoliceRP-OpenSource | adcf19f765331521b6934ecb1c180a978ba7f44d | [
"MIT"
] | 17 | 2021-08-17T16:05:20.000Z | 2022-03-17T09:55:24.000Z | addons/xyz_prison/lua/xyz_prison/core/sv_core.lua | JacubRSTNC/PoliceRP-OpenSource | adcf19f765331521b6934ecb1c180a978ba7f44d | [
"MIT"
] | null | null | null | addons/xyz_prison/lua/xyz_prison/core/sv_core.lua | JacubRSTNC/PoliceRP-OpenSource | adcf19f765331521b6934ecb1c180a978ba7f44d | [
"MIT"
] | 4 | 2021-08-19T11:41:36.000Z | 2022-03-20T08:56:28.000Z | function PrisonSystem.Arrest(ply, time)
-- Just demote the president
if (ply:Team() == TEAM_PRESIDENT) or (ply:Team() == TEAM_VICE_PRESIDENT) then
ply:changeTeam(TEAM_CITIZEN, true, true)
xLogs.Log(xLogs.Core.Player(ply).." has been demoted to citizen as they were arrested as a (Vice) President.", "Prison")
XYZ... | 31.770161 | 146 | 0.741845 |
6d131d64b7f5a45ab6e6bcd2a7b4bd9023d018b8 | 1,011 | tsx | TypeScript | src/Alert.tsx | hiloki/ubie-icons | 2fee6e727155217069755c4769b65ca14662195e | [
"MIT"
] | null | null | null | src/Alert.tsx | hiloki/ubie-icons | 2fee6e727155217069755c4769b65ca14662195e | [
"MIT"
] | null | null | null | src/Alert.tsx | hiloki/ubie-icons | 2fee6e727155217069755c4769b65ca14662195e | [
"MIT"
] | null | null | null | import * as React from "react";
function SvgAlert(props: React.SVGProps<SVGSVGElement>) {
return (
<svg
width="1em"
height="1em"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path
fillRule="evenodd"
clipRule="evenodd... | 42.125 | 607 | 0.666667 |
2caa27e09bb42e231e5fe7cc6cdaf049ec13eb34 | 2,378 | py | Python | modules/collection.py | Arpan-206/Web3-CLI | ede5d109f4744346f2c9170b45660cb54489a52b | [
"MIT"
] | 4 | 2022-01-25T07:24:43.000Z | 2022-01-26T04:40:32.000Z | modules/collection.py | Arpan-206/Web3-CLI | ede5d109f4744346f2c9170b45660cb54489a52b | [
"MIT"
] | null | null | null | modules/collection.py | Arpan-206/Web3-CLI | ede5d109f4744346f2c9170b45660cb54489a52b | [
"MIT"
] | null | null | null | import sys
# Importing the required modules
from PyInquirer import Separator, prompt
from termcolor import colored
def nft_collection(nft_module):
"""
This is the main function of the NFT collection module. It will prompt you to select the action that you want to do on the NFT collection module. Then it will... | 32.135135 | 223 | 0.50799 |
a362fe549eb8c6f2435b199eb21b021d1796991e | 5,196 | c | C | src/libc/sys/syscall.c | monwarez/libc6-shim | 80620419334df3bc6b58bdc854ccd4a14157eec4 | [
"MIT"
] | 17 | 2018-11-16T20:59:16.000Z | 2020-09-26T06:48:19.000Z | src/libc/sys/syscall.c | monwarez/libc6-shim | 80620419334df3bc6b58bdc854ccd4a14157eec4 | [
"MIT"
] | 2 | 2020-11-15T00:13:05.000Z | 2020-12-11T23:17:40.000Z | src/libc/sys/syscall.c | monwarez/libc6-shim | 80620419334df3bc6b58bdc854ccd4a14157eec4 | [
"MIT"
] | 1 | 2022-01-07T11:05:04.000Z | 2022-01-07T11:05:04.000Z | #include <assert.h>
#include <errno.h>
#include <pthread_np.h>
#include <stdarg.h>
#include <stdio.h>
#include <time.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <sys/thr.h>
#include "../time.h"
#include "../../shim.h"
#ifdef __i386__
#define LINUX_WRITE 4
#define LINUX_OPE... | 24.167442 | 94 | 0.5995 |
2780a24c11f549a49ca989dc9a8d2e458b641030 | 3,317 | rb | Ruby | test/unit/etsy/model_test.rb | envylabs/etsy | 1c49575bcbcbddb77106d0cd201dfe367f389aac | [
"MIT"
] | 1 | 2019-12-23T08:57:41.000Z | 2019-12-23T08:57:41.000Z | test/unit/etsy/model_test.rb | envylabs/etsy | 1c49575bcbcbddb77106d0cd201dfe367f389aac | [
"MIT"
] | null | null | null | test/unit/etsy/model_test.rb | envylabs/etsy | 1c49575bcbcbddb77106d0cd201dfe367f389aac | [
"MIT"
] | 1 | 2022-03-14T10:14:05.000Z | 2022-03-14T10:14:05.000Z | require File.expand_path('../../../test_helper', __FILE__)
module Etsy
class TestModel
include Etsy::Model
end
class ModelTest < Test::Unit::TestCase
def mock_empty_request(options = {})
body = options.delete(:body) { '{}' }
Request.expects(:new).with('', options).returns(stub(:get => stub(... | 35.287234 | 102 | 0.599337 |
cd3f926fb74bfa0aa413ab4966b3b9dc2431808d | 542 | cs | C# | Kahla.CLI/Program.cs | AiursoftWeb/Kahla | 533bb5da4d00c23d3b0b4a77276c38cffa154f7c | [
"MIT"
] | 78 | 2018-10-13T23:17:33.000Z | 2022-03-01T18:37:44.000Z | Kahla.CLI/Program.cs | AiursoftWeb/Kahla | 533bb5da4d00c23d3b0b4a77276c38cffa154f7c | [
"MIT"
] | 76 | 2018-10-13T16:50:39.000Z | 2021-02-06T11:13:10.000Z | Kahla.CLI/Program.cs | AiursoftWeb/Kahla | 533bb5da4d00c23d3b0b4a77276c38cffa154f7c | [
"MIT"
] | 31 | 2018-12-03T11:50:22.000Z | 2022-03-22T13:50:42.000Z | using Kahla.SDK.Abstract;
using System.Linq;
using System.Threading.Tasks;
namespace Kahla.CLI
{
public class EmptyBot : BotBase { }
public class Program
{
public async static Task Main(string[] args)
{
await CreateBotBuilder()
.Build<EmptyBot>()
... | 20.846154 | 52 | 0.531365 |
798424e39fdb6355b37ba16d9f4b0c8a72267df1 | 1,262 | lua | Lua | lib/kong/plugins/gluu-oauth-auth/access.lua | sanyamason/gluu-gateway | abe98ecf4dc251cde698dd51dd157394431e66bb | [
"Apache-2.0"
] | 31 | 2018-01-04T08:55:46.000Z | 2021-09-06T14:33:24.000Z | lib/kong/plugins/gluu-oauth-auth/access.lua | sanyamason/gluu-gateway | abe98ecf4dc251cde698dd51dd157394431e66bb | [
"Apache-2.0"
] | 365 | 2017-11-30T16:19:19.000Z | 2021-04-23T18:51:19.000Z | lib/kong/plugins/gluu-oauth-auth/access.lua | sanyamason/gluu-gateway | abe98ecf4dc251cde698dd51dd157394431e66bb | [
"Apache-2.0"
] | 20 | 2018-01-12T11:23:05.000Z | 2022-01-28T00:20:16.000Z | local oxd = require "gluu.oxdweb"
local kong_auth_pep_common = require "gluu.kong-common"
-- @return introspect_response, status, err
-- upon success returns only introspect_response,
-- otherwise return nil, status, err
local function introspect_token(self, conf, token)
local ptoken = kong_auth_pep_common.get_pro... | 31.55 | 108 | 0.698098 |
3f2e352246d91295077940bdeacc53a3aa9e6d4d | 156 | rb | Ruby | config/initializers/zip.rb | openSNP/snpr | f995d368163d3ad3df5b0e20289a8ea30b953a00 | [
"MIT"
] | 97 | 2016-02-12T15:53:25.000Z | 2022-03-27T01:32:02.000Z | config/initializers/zip.rb | openSNP/snpr | f995d368163d3ad3df5b0e20289a8ea30b953a00 | [
"MIT"
] | 211 | 2016-02-08T11:44:28.000Z | 2022-03-14T15:34:50.000Z | config/initializers/zip.rb | openSNP/snpr | f995d368163d3ad3df5b0e20289a8ea30b953a00 | [
"MIT"
] | 44 | 2016-02-09T07:58:07.000Z | 2022-02-06T23:59:01.000Z | # frozen_string_literal: true
require "zip"
Zip.setup do |z|
z.write_zip64_support = true
z.unicode_names = true
z.continue_on_exists_proc = true
end
| 19.5 | 34 | 0.762821 |
06bd5fb5e042b34db0bedaedb5a30395ea6ad209 | 1,245 | py | Python | imagechops/imagechops-logic.py | martinmcbride/python-imaging-book-examples | 37e4ccf9b7b2fc3ff75b1fdb9f772de452a843b2 | [
"MIT"
] | 1 | 2021-08-22T17:09:44.000Z | 2021-08-22T17:09:44.000Z | imagechops/imagechops-logic.py | sthagen/python-imaging-book-examples | 2a079c5271f9849bc90a33bed6f3288142035ea7 | [
"MIT"
] | null | null | null | imagechops/imagechops-logic.py | sthagen/python-imaging-book-examples | 2a079c5271f9849bc90a33bed6f3288142035ea7 | [
"MIT"
] | 1 | 2021-08-22T17:09:48.000Z | 2021-08-22T17:09:48.000Z | # Author: Martin McBride
# Created: 2021-08-08
# Copyright (C) 2021, Martin McBride
# License: MIT
# Combine images using logical operators
# Logical operations only work with 1-bit images. In these examples we convert
# black and white images to 1 bit images
from PIL import Image, ImageDraw, ImageFont, ImageChops
... | 29.642857 | 78 | 0.727711 |
5813ea397322e78c08687d53dd26b0fede8800be | 29 | css | CSS | docs/_theme/djangodocs/static/default.css | sergei-maertens/django-systemjs | efd4a3862a39d9771609a25a5556f36023cf6e5c | [
"MIT"
] | 49 | 2015-07-07T13:58:59.000Z | 2019-07-23T21:06:21.000Z | docs/_theme/djangodocs/static/default.css | sergei-maertens/django-systemjs | efd4a3862a39d9771609a25a5556f36023cf6e5c | [
"MIT"
] | 31 | 2015-07-12T10:06:45.000Z | 2016-12-14T11:39:17.000Z | docs/_theme/djangodocs/static/default.css | sergei-maertens/django-systemjs | efd4a3862a39d9771609a25a5556f36023cf6e5c | [
"MIT"
] | 5 | 2015-07-12T09:19:29.000Z | 2020-03-03T07:55:50.000Z | @import url(djangodocs.css);
| 14.5 | 28 | 0.758621 |
b864aa48e7bf0cd71ef8ccee1f4da43d42f37d30 | 8,022 | dart | Dart | lib/routes/login.dart | dhzdhd/flixcard | e629b0060b6e213228dd7a7a77c1aca1bd586e3e | [
"MIT"
] | null | null | null | lib/routes/login.dart | dhzdhd/flixcard | e629b0060b6e213228dd7a7a77c1aca1bd586e3e | [
"MIT"
] | null | null | null | lib/routes/login.dart | dhzdhd/flixcard | e629b0060b6e213228dd7a7a77c1aca1bd586e3e | [
"MIT"
] | null | null | null | import 'package:black_tortoise/backend/auth.dart';
import 'package:black_tortoise/models/login.dart';
import 'package:black_tortoise/models/theme.dart';
import 'package:black_tortoise/widgets/login_field.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:provider/pro... | 39.131707 | 80 | 0.373722 |
4cee6132a118117d6e52ff3408677c769a660ba8 | 448 | py | Python | authors/apps/authentication/tests/test_settings.py | andela/-ah-backend-thor | fe8d49531ccb1adebfea8b0f30ff0ebd172c31ba | [
"BSD-3-Clause"
] | 1 | 2018-11-08T16:47:03.000Z | 2018-11-08T16:47:03.000Z | authors/apps/authentication/tests/test_settings.py | andela/-ah-backend-thor | fe8d49531ccb1adebfea8b0f30ff0ebd172c31ba | [
"BSD-3-Clause"
] | 72 | 2018-10-23T12:34:14.000Z | 2021-06-01T22:50:57.000Z | authors/apps/authentication/tests/test_settings.py | andela/-ah-backend-thor | fe8d49531ccb1adebfea8b0f30ff0ebd172c31ba | [
"BSD-3-Clause"
] | 1 | 2018-10-23T16:18:01.000Z | 2018-10-23T16:18:01.000Z | from ....settings import DATABASES, TEST_RUNNER
from django.test import TestCase
class TestSettingsAndCore(TestCase):
def test_database(self):
checklist = ['ENGINE', 'NAME', 'USER', 'PASSWORD', 'HOST', 'PORT']
self.assertTrue('default' in DATABASES)
self.assertIn([x for x in checklist][0],... | 34.461538 | 74 | 0.696429 |
b08ccb7149e5ed62c7c5be424e3ff24a7953a08c | 10,368 | py | Python | train.py | theresearchai/vehicle_routing_rl | b3e0fc349d1a175c0c07011a55b2bfe1d52e591f | [
"MIT"
] | 2 | 2021-01-20T18:46:10.000Z | 2021-11-10T10:07:32.000Z | train.py | theresearchai/vehicle_routing_rl | b3e0fc349d1a175c0c07011a55b2bfe1d52e591f | [
"MIT"
] | null | null | null | train.py | theresearchai/vehicle_routing_rl | b3e0fc349d1a175c0c07011a55b2bfe1d52e591f | [
"MIT"
] | 2 | 2021-10-05T09:37:16.000Z | 2021-10-07T18:55:32.000Z | ## File for training and evaluation of model
import os
import time
from tqdm import tqdm
import torch
import math
import numpy as np
from torch.utils.data import DataLoader
from torch.nn import DataParallel
from nets.attention_model import set_decode_type
from utils.log_utils import log_values
from utils import move_... | 40.980237 | 140 | 0.67988 |
cda40d1241374f8c94176e9fafd35ab250d46050 | 1,467 | cs | C# | LemonTS/Assets/LemonTS/Scripts/TsMgr.cs | onelei/LemonTS | a0646d7ada5a7c963567a7b6498517684cde7ab1 | [
"MIT"
] | 1 | 2021-01-16T20:49:15.000Z | 2021-01-16T20:49:15.000Z | LemonTS/Assets/LemonTS/Scripts/TsMgr.cs | onelei/LemonTS | a0646d7ada5a7c963567a7b6498517684cde7ab1 | [
"MIT"
] | null | null | null | LemonTS/Assets/LemonTS/Scripts/TsMgr.cs | onelei/LemonTS | a0646d7ada5a7c963567a7b6498517684cde7ab1 | [
"MIT"
] | null | null | null | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Puerts;
using System;
using System.IO;
namespace LemonTS
{
public class TsMgr : MonoBehaviour
{
public static string TsInitFilePath = "TsInit.js";
public static JsEnv jsEnv;
public static TsLoader loa... | 26.196429 | 78 | 0.549421 |
b06857ea3c82de6ae01203385006db54afdcc9a6 | 3,008 | py | Python | tomt/data/imdb.py | samarthbhargav/tomt-data | 1132222c4a93ce0330faf0df918575e3cc037c9b | [
"MIT"
] | null | null | null | tomt/data/imdb.py | samarthbhargav/tomt-data | 1132222c4a93ce0330faf0df918575e3cc037c9b | [
"MIT"
] | null | null | null | tomt/data/imdb.py | samarthbhargav/tomt-data | 1132222c4a93ce0330faf0df918575e3cc037c9b | [
"MIT"
] | null | null | null | import re
import os
import pickle as pkl
from urllib.parse import urlparse
import imdb
imdb_id_re = re.compile("^tt[0-9]+")
def extract_imdb_ids(urls):
ids = set()
for url in urls:
url = urlparse(url)
for p in url.path.split("/"):
match = imdb_id_re.match(p)
if match:... | 28.377358 | 75 | 0.569814 |
fb5c1ffe28916c9635b357518b79671574e9f75a | 527 | swift | Swift | Sources/UIImageColors/Deprecated.swift | nighthawk/UIImageColors | 1d5b75ef02b13fafa0425125019f8368224e9960 | [
"MIT"
] | 10 | 2021-11-05T14:23:50.000Z | 2022-03-08T04:15:03.000Z | Sources/UIImageColors/Deprecated.swift | nighthawk/UIImageColors | 1d5b75ef02b13fafa0425125019f8368224e9960 | [
"MIT"
] | null | null | null | Sources/UIImageColors/Deprecated.swift | nighthawk/UIImageColors | 1d5b75ef02b13fafa0425125019f8368224e9960 | [
"MIT"
] | 2 | 2021-11-11T12:31:08.000Z | 2021-12-11T06:39:15.000Z | //
// Deprecated.swift
// UIImageColors
//
// Created by Felix Herrmann on 05.10.21.
//
#if canImport(UIKit)
import UIKit
@available(*, deprecated, renamed: "UIImage.Colors")
public typealias UIImageColors = UIImage.Colors
#endif
#if canImport(AppKit) && !targetEnvironment(macCatalyst)
import AppKit
@availab... | 17.566667 | 56 | 0.753321 |
457c568091d3e59679151054417b66eb0a5bd907 | 2,010 | py | Python | tests/test_endpoints.py | orlandodiaz/insta_api | 5dc5914a751fd7c2b1fcfe50fea792112d6d50d5 | [
"MIT"
] | 11 | 2018-10-10T19:18:27.000Z | 2021-05-29T17:15:42.000Z | tests/test_endpoints.py | orlandodiaz/insta_api | 5dc5914a751fd7c2b1fcfe50fea792112d6d50d5 | [
"MIT"
] | 3 | 2020-02-21T14:10:59.000Z | 2022-01-25T00:36:33.000Z | tests/test_endpoints.py | orlandodiaz/insta_api | 5dc5914a751fd7c2b1fcfe50fea792112d6d50d5 | [
"MIT"
] | 5 | 2019-04-03T09:46:38.000Z | 2022-01-24T23:52:26.000Z | import pytest
from insta_api.insta_api import InstaAPI
from insta_api.endpoints import *
@pytest.fixture(scope="module")
def insta():
insta = InstaAPI(use_cookies=False)
yield insta
insta._close_session()
class TestEndpoints:
""" These tests make sure that the API endpoints are still reachable and ... | 32.95082 | 89 | 0.658706 |
c9c3270e7c59c10cf535c54357c4213b61f1efba | 808 | ts | TypeScript | test-project/src/generated/__type__/parent/tests/JsonStringEnumMixedTest.ts | jsoncodegen/generator-typescript | ca3525d9f4a727268222e5031d93538a76755611 | [
"MIT"
] | null | null | null | test-project/src/generated/__type__/parent/tests/JsonStringEnumMixedTest.ts | jsoncodegen/generator-typescript | ca3525d9f4a727268222e5031d93538a76755611 | [
"MIT"
] | null | null | null | test-project/src/generated/__type__/parent/tests/JsonStringEnumMixedTest.ts | jsoncodegen/generator-typescript | ca3525d9f4a727268222e5031d93538a76755611 | [
"MIT"
] | null | null | null | import { JsonStringEnum as __type___JsonStringEnum } from "../../JsonStringEnum"
import { JsonStringEnum as __type___parent_JsonStringEnum } from "../JsonStringEnum"
import { JsonStringEnum as __type___parent_sibling_JsonStringEnum } from "../sibling/JsonStringEnum"
import { JsonStringEnum as __type___parent_tests_Json... | 47.529412 | 101 | 0.841584 |
e75857b4090a89aa13063f2cc700ae79944d73db | 773 | php | PHP | mysite/code/Blocks/SectionLinkBlock.php | ByronMorley/silverstripe_master_template | 84d721de82fd2039d0e48b346e34e54bda683175 | [
"MIT"
] | null | null | null | mysite/code/Blocks/SectionLinkBlock.php | ByronMorley/silverstripe_master_template | 84d721de82fd2039d0e48b346e34e54bda683175 | [
"MIT"
] | null | null | null | mysite/code/Blocks/SectionLinkBlock.php | ByronMorley/silverstripe_master_template | 84d721de82fd2039d0e48b346e34e54bda683175 | [
"MIT"
] | null | null | null | <?php
class SectionLinkBlock extends Section {
private static $db = array(
'href' => 'VarChar(250)',
'name' => 'VarChar(100)',
'prompt' => 'VarChar(100)',
'internal' => 'Boolean'
);
public function getCMSFields()
{
$fields = parent::getCMSFields();
$f... | 21.472222 | 62 | 0.531695 |
3fa333972915dfc76fd2662171a9a7c90fb1ba06 | 1,204 | php | PHP | src/SaleDocument/Unlock.php | bigyouth/cegid-y2-sdk | ab202c4b6b7c6b6860e8e4807fc4d887b8284741 | [
"MIT"
] | 7 | 2019-09-01T14:46:00.000Z | 2022-02-07T14:18:22.000Z | src/SaleDocument/Unlock.php | bigyouth/cegid-y2-sdk | ab202c4b6b7c6b6860e8e4807fc4d887b8284741 | [
"MIT"
] | null | null | null | src/SaleDocument/Unlock.php | bigyouth/cegid-y2-sdk | ab202c4b6b7c6b6860e8e4807fc4d887b8284741 | [
"MIT"
] | 2 | 2019-11-26T10:37:12.000Z | 2021-02-26T11:12:07.000Z | <?php
namespace Y2\SaleDocument;
class Unlock
{
/**
* @var Unlock_Request $unlockRequest
*/
protected $unlockRequest = null;
/**
* @var RetailContext $clientContext
*/
protected $clientContext = null;
/**
* @param Unlock_Request $unlockRequest
* @param RetailContex... | 18.523077 | 63 | 0.598007 |
d41b631ad4d189bc0de4732b170534ae3e1a49b3 | 878 | asm | Assembly | programs/oeis/108/A108954.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/108/A108954.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/108/A108954.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A108954: a(n) = pi(2*n) - pi(n). Number of primes in the interval (n,2n].
; 1,1,1,2,1,2,2,2,3,4,3,4,3,3,4,5,4,4,4,4,5,6,5,6,6,6,7,7,6,7,7,7,7,8,8,9,9,9,9,10,9,10,9,9,10,10,9,9,10,10,11,12,11,12,13,13,14,14,13,13,12,12,12,13,13,14,13,13,14,15,14,14,13,13,14,15,15,15,15,15,15,16,15,16,16,16,17,17,16,17,18,18,18,18,18,1... | 87.8 | 707 | 0.638952 |
20cd5fadeffe69f875b8a42d9cf0e70933e93780 | 972 | cs | C# | MainFunctionality/SOLID/StrategyPattern/Program.cs | tanyta78/CSharpOOPAdv | d98d959ecc15e247e6a37b9c1a911ecc288f9e30 | [
"MIT"
] | null | null | null | MainFunctionality/SOLID/StrategyPattern/Program.cs | tanyta78/CSharpOOPAdv | d98d959ecc15e247e6a37b9c1a911ecc288f9e30 | [
"MIT"
] | null | null | null | MainFunctionality/SOLID/StrategyPattern/Program.cs | tanyta78/CSharpOOPAdv | d98d959ecc15e247e6a37b9c1a911ecc288f9e30 | [
"MIT"
] | null | null | null | namespace StrategyPattern
{
public class Program
{
static void Main()
{
/* public class Client
{
public IStrategy Strategy { get; set; }
public void CallAlgorithm()
{
Console.WriteLine(Strate... | 23.142857 | 62 | 0.369342 |
173990946378b9b2068084f03768bb9ba46ea5c5 | 6,538 | hpp | C++ | libs/full/agas_base/include/hpx/agas_base/server/symbol_namespace.hpp | bhumitattarde/hpx | 5b34d8d77b1664fa552445d44cd98e51dc69a74a | [
"BSL-1.0"
] | 1 | 2022-02-08T05:55:09.000Z | 2022-02-08T05:55:09.000Z | libs/full/agas_base/include/hpx/agas_base/server/symbol_namespace.hpp | deepaksuresh1411/hpx | aa18024d35fe9884a977d4b6076c764dbb8b26d1 | [
"BSL-1.0"
] | null | null | null | libs/full/agas_base/include/hpx/agas_base/server/symbol_namespace.hpp | deepaksuresh1411/hpx | aa18024d35fe9884a977d4b6076c764dbb8b26d1 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2011 Bryce Adelstein-Lelbach
// Copyright (c) 2012-2021 Hartmut Kaiser
// Copyright (c) 2016 Thomas Heller
//
// SPDX-License-Identifier: BSL-1.0
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt... | 33.187817 | 83 | 0.683236 |
819f5b82fc08a73b87375e0607e113dea6c8b357 | 740 | php | PHP | plugins/AdminMenuEditorPro.php | arjendejong12/composer-wp-pro-plugins | fa6515ac6cff32f288a6a55176230c5320f8a9b2 | [
"MIT"
] | null | null | null | plugins/AdminMenuEditorPro.php | arjendejong12/composer-wp-pro-plugins | fa6515ac6cff32f288a6a55176230c5320f8a9b2 | [
"MIT"
] | null | null | null | plugins/AdminMenuEditorPro.php | arjendejong12/composer-wp-pro-plugins | fa6515ac6cff32f288a6a55176230c5320f8a9b2 | [
"MIT"
] | null | null | null | <?php
/**
* Admin Menu Editor Pro Plugin.
*
* @package arjendejong12\Composer\WPProPlugins\Plugins
*/
namespace arjendejong12\Composer\WPProPlugins\Plugins;
/**
* AdminMenuEditorPro class.
*/
class AdminMenuEditorPro {
/**
* The version number of the plugin to download.
*
* @var string Version number.
... | 18.04878 | 113 | 0.671622 |
06cf33ab66415b57a802f9563c68de6fd0aadbd3 | 1,162 | py | Python | singlet/io/csv/__init__.py | iosonofabio/singlet | 66d3b13581f571450c9551e99d86845cce992d32 | [
"MIT"
] | 11 | 2017-09-12T02:45:33.000Z | 2021-05-18T13:04:12.000Z | singlet/io/csv/__init__.py | Takshan/singlet | 66d3b13581f571450c9551e99d86845cce992d32 | [
"MIT"
] | 6 | 2017-10-03T22:14:42.000Z | 2019-02-02T05:12:20.000Z | singlet/io/csv/__init__.py | Takshan/singlet | 66d3b13581f571450c9551e99d86845cce992d32 | [
"MIT"
] | 4 | 2018-02-15T12:00:04.000Z | 2021-03-25T12:26:04.000Z | # vim: fdm=indent
# author: Fabio Zanini
# date: 02/08/17
# content: Support module for filenames related to CSV/TSV files.
# Modules
import numpy as np
from singlet.config import config
csv_formats = ['csv', 'tsv', 'csv.gz', 'tsv.gz']
# Parser
def parse_samplesheet(path, fmt):
import pandas as pd
... | 21.518519 | 68 | 0.591222 |
8ba83e34e6d3a54a64b2f94081d4d24084da849b | 772 | rb | Ruby | spec/word_integration_spec.rb | cleriphil/dictionary | 40df51a887a23d7ac256df60e73096f9ad948536 | [
"MIT"
] | null | null | null | spec/word_integration_spec.rb | cleriphil/dictionary | 40df51a887a23d7ac256df60e73096f9ad948536 | [
"MIT"
] | null | null | null | spec/word_integration_spec.rb | cleriphil/dictionary | 40df51a887a23d7ac256df60e73096f9ad948536 | [
"MIT"
] | null | null | null | require('capybara/rspec')
require('./app')
Capybara.app = Sinatra::Application
set(:show_expectations, false)
describe('the path of the Word class', {:type => :feature}) do
it('processes the user input returns a list of words in the homepage') do
visit('/')
fill_in('word', :with => 'paint')
click_button('Add ... | 32.166667 | 75 | 0.708549 |
bacb5938952c163eefdad96eeb83138eba0a9528 | 420 | go | Go | types/sendmail.go | Virus-V/ican | c38a801a975a6dde817c0fa256605877ba9801f2 | [
"MIT"
] | null | null | null | types/sendmail.go | Virus-V/ican | c38a801a975a6dde817c0fa256605877ba9801f2 | [
"MIT"
] | null | null | null | types/sendmail.go | Virus-V/ican | c38a801a975a6dde817c0fa256605877ba9801f2 | [
"MIT"
] | null | null | null | package types
import (
"github.com/google/uuid"
)
// 发送邮件模块
// SrvSendMailUUID 发送邮件服务
var SrvSendMailUUID = uuid.UUID{0xa, 0x6f, 0x7d, 0xe5, 0x1, 0xf, 0x45, 0xf6, 0x8b, 0xa2, 0x40, 0xf2, 0x95, 0x67, 0x55, 0x80}
// MailAddr 邮件地址属性
type MailAddr struct {
Addr string // 邮件地址
Name string // 收件人姓名
}
// SendMailServi... | 19.090909 | 124 | 0.716667 |
01e3827e26e27a7b379c3ad309626a09172afab5 | 805 | lua | Lua | data/scripts/actions/other/costume_bag.lua | Waclaw-I/BagnoOTS | dbeb04322698ecdb795eba196872815b36ca134f | [
"MIT"
] | null | null | null | data/scripts/actions/other/costume_bag.lua | Waclaw-I/BagnoOTS | dbeb04322698ecdb795eba196872815b36ca134f | [
"MIT"
] | null | null | null | data/scripts/actions/other/costume_bag.lua | Waclaw-I/BagnoOTS | dbeb04322698ecdb795eba196872815b36ca134f | [
"MIT"
] | null | null | null | local setting = {
-- Common
[653] = {
"orc warrior",
"pirate cutthroat",
"dworc voodoomaster",
"dwarf guard",
"minotaur mage"
},
-- Uncommon
[654] = {
"quara hydromancer",
"diabolic imp",
"banshee",
"frost giant",
"lich"
},
-- Deluxe
[655] = {
"serpent spawn",
"demon",
"juggernaut",
... | 17.5 | 83 | 0.678261 |
c9d4507ff19bc5310fd0c70906d8df9a35589744 | 649 | ts | TypeScript | src/types/Subscription.ts | tanem/hackernews-node | ddf7a372901425861f9988912add00bfc57c7560 | [
"MIT"
] | 1 | 2021-12-07T16:39:57.000Z | 2021-12-07T16:39:57.000Z | src/types/Subscription.ts | tanem/hackernews-node | c825523b5b2280b5ee22aa002d6400f57dedc552 | [
"MIT"
] | 29 | 2020-08-01T02:23:04.000Z | 2022-02-26T04:58:21.000Z | src/types/Subscription.ts | tanem/hackernews-node | ddf7a372901425861f9988912add00bfc57c7560 | [
"MIT"
] | null | null | null | import { subscriptionType } from '@nexus/schema'
import { Link } from './Link'
import { Vote } from './Vote'
export const Subscription = subscriptionType({
definition(t) {
t.field('newLink', {
type: Link,
nullable: true,
resolve(payload) {
return payload
},
subscribe(root, a... | 22.37931 | 55 | 0.571649 |
3f8d079d227dca4835d15c539bcb72c11a89e746 | 1,673 | php | PHP | database/seeds/RolesSeeder.php | bachtiarfr/ta-hrms | 21327fc08e7261506d18d11e758436af843498c1 | [
"MIT"
] | null | null | null | database/seeds/RolesSeeder.php | bachtiarfr/ta-hrms | 21327fc08e7261506d18d11e758436af843498c1 | [
"MIT"
] | null | null | null | database/seeds/RolesSeeder.php | bachtiarfr/ta-hrms | 21327fc08e7261506d18d11e758436af843498c1 | [
"MIT"
] | null | null | null | <?php
use Illuminate\Database\Seeder;
class RolesSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
\DB::table('roles')->insert([
[
'name' => 'Admin | HR',
'description' => 'Has all the r... | 30.981481 | 59 | 0.410042 |
db6d4ee8dfe66097d6150f89299fad5d4cb1a685 | 2,564 | php | PHP | routes/api.php | rakhacimano/api_laundry | 9cc42bb4cb6540b6831fa2736452c944103a5486 | [
"MIT"
] | null | null | null | routes/api.php | rakhacimano/api_laundry | 9cc42bb4cb6540b6831fa2736452c944103a5486 | [
"MIT"
] | null | null | null | routes/api.php | rakhacimano/api_laundry | 9cc42bb4cb6540b6831fa2736452c944103a5486 | [
"MIT"
] | null | null | null | <?php
use App\Http\Controllers\MemberController;
use App\Http\Controllers\OutletController;
use App\Http\Controllers\PaketController;
use App\Http\Controllers\UserController;
use App\Http\Controllers\TransaksiController;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
Route::middleware('auth:sanctu... | 40.698413 | 82 | 0.695008 |
4f08eb11cb5d3999f3e9b9bd80012503e4718810 | 19,430 | sql | SQL | bs.sql | KevindelCid/sbs | aec6fd8396f8352c2b07d54b2b0ac942798f11f6 | [
"MIT"
] | null | null | null | bs.sql | KevindelCid/sbs | aec6fd8396f8352c2b07d54b2b0ac942798f11f6 | [
"MIT"
] | null | null | null | bs.sql | KevindelCid/sbs | aec6fd8396f8352c2b07d54b2b0ac942798f11f6 | [
"MIT"
] | null | null | null | -- MySQL dump 10.13 Distrib 8.0.20, for Win64 (x86_64)
--
-- Host: 127.0.0.1 Database: bs
-- ------------------------------------------------------
-- Server version 5.7.24
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101... | 55.198864 | 5,231 | 0.739887 |
99e83388eedb58d2e5a17a475b3f41bb871d7f29 | 1,588 | rs | Rust | src/device/testdma.rs | shift-crops/x64emu | 18f661a9a64bfbfce76c15dc7039abee73e4e128 | [
"MIT"
] | null | null | null | src/device/testdma.rs | shift-crops/x64emu | 18f661a9a64bfbfce76c15dc7039abee73e4e128 | [
"MIT"
] | null | null | null | src/device/testdma.rs | shift-crops/x64emu | 18f661a9a64bfbfce76c15dc7039abee73e4e128 | [
"MIT"
] | null | null | null | use core::convert::TryInto;
use std::rc::Rc;
use std::cell::RefCell;
use std::sync::{Arc, RwLock};
use crate::hardware::memory;
pub struct TestDMA {
irq: super::IReq,
mem: Arc<RwLock<memory::Memory>>,
raw: [u8; 0x10],
}
impl TestDMA {
pub fn new(irq: super::IReq, mem: Arc<RwLock<memory::Memory>>) -> (... | 25.612903 | 109 | 0.558564 |
f46c72ba6935b783ab6cc5de04b744496326e953 | 1,616 | ts | TypeScript | src/tools/logger.ts | mortenbroesby/screeps-typescript | ed26ecf51ce7a182993403977ab476541cc07670 | [
"Unlicense"
] | 3 | 2021-03-01T10:13:15.000Z | 2021-03-07T22:19:23.000Z | src/tools/logger.ts | mortenbroesby/screeps-typescript | ed26ecf51ce7a182993403977ab476541cc07670 | [
"Unlicense"
] | null | null | null | src/tools/logger.ts | mortenbroesby/screeps-typescript | ed26ecf51ce7a182993403977ab476541cc07670 | [
"Unlicense"
] | 1 | 2021-03-06T22:30:06.000Z | 2021-03-06T22:30:06.000Z | import { LogLevel } from "../enums";
import { convertToString } from "./utils";
class Logger {
private _logLevel: LogLevel = LogLevel.DEBUG;
public get logLevel(): LogLevel {
return this._logLevel;
}
public set logLevel(level: LogLevel) {
this._logLevel = level;
}
private _log({
message,
... | 26.064516 | 77 | 0.633663 |
755004d488fa4ee9f40437f493f02b877e24c010 | 49,745 | css | CSS | public/css/app.css | heartone/realtime-chat | ac9d3366c69380b7a789e9b3299e05ff5b003e55 | [
"MIT"
] | 1 | 2022-03-20T14:55:48.000Z | 2022-03-20T14:55:48.000Z | public/css/app.css | heartone/realtime-chat | ac9d3366c69380b7a789e9b3299e05ff5b003e55 | [
"MIT"
] | null | null | null | public/css/app.css | heartone/realtime-chat | ac9d3366c69380b7a789e9b3299e05ff5b003e55 | [
"MIT"
] | null | null | null | /*! tailwindcss v3.0.23 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-family:Nunito,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans... | 24,872.5 | 49,744 | 0.77457 |
b075175b37f8235c7162dc7fe7128daf416761f4 | 1,302 | py | Python | summer/utils.py | monash-emu/summer | e401fa986543ddade0082d271f9261d640b22bec | [
"BSD-2-Clause-FreeBSD"
] | 4 | 2021-11-05T02:47:34.000Z | 2022-01-31T11:25:11.000Z | summer/utils.py | monash-emu/summer | e401fa986543ddade0082d271f9261d640b22bec | [
"BSD-2-Clause-FreeBSD"
] | 3 | 2021-04-28T22:29:32.000Z | 2021-08-30T12:13:01.000Z | summer/utils.py | monash-emu/summer | e401fa986543ddade0082d271f9261d640b22bec | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2021-04-29T05:52:34.000Z | 2021-04-29T05:52:34.000Z | """
General utility functions used accross submodules
"""
import pandas as pd
from datetime import timedelta, datetime
from typing import Iterable
def get_scenario_start_index(base_times, start_time):
"""
Returns the index of the closest time step that is at, or before the scenario start time.
"""
ass... | 36.166667 | 98 | 0.728111 |
8e99cc7648b90db4a8dc51f9fd7e72a62ec101c3 | 19,529 | js | JavaScript | ciat-bim-cesium/src/main/resources/static/bim/lib/CesiumPlugins/draw-ex/plotUtil.js | zjtyxy/bimServer | 7b8d199c9ca5c1627397b937ed7334c6468b8c4f | [
"MIT"
] | 1 | 2022-02-28T02:04:47.000Z | 2022-02-28T02:04:47.000Z | ciat-bim-cesium/src/main/resources/static/bim/lib/CesiumPlugins/draw-ex/plotUtil.js | zjtyxy/bimServer | 7b8d199c9ca5c1627397b937ed7334c6468b8c4f | [
"MIT"
] | null | null | null | ciat-bim-cesium/src/main/resources/static/bim/lib/CesiumPlugins/draw-ex/plotUtil.js | zjtyxy/bimServer | 7b8d199c9ca5c1627397b937ed7334c6468b8c4f | [
"MIT"
] | null | null | null |
!function (o) {
var C = {};
C.Constants = {
TWO_PI: 2 * Math.PI,
HALF_PI: Math.PI / 2,
FITTING_COUNT: 100,
ZERO_TOLERANCE: 1e-4
}, C.PlotUtils = {}, C.PlotUtils.distance = function (t, i) {
return Math.sqrt(Math.pow(t[0] - i[0], 2) + Math.pow(t[1] - i[1], 2))
}, ... | 71.534799 | 868 | 0.50786 |
97973ee277ed96ab5bfb81ffe1e5fd5bec45fd27 | 237 | rb | Ruby | problem-solving/lib/simple_math.rb | Heybluguy/ruby-lab | b9ad8fbf31e1cb84240eb297660c74e35a5ecaba | [
"MIT",
"Unlicense"
] | null | null | null | problem-solving/lib/simple_math.rb | Heybluguy/ruby-lab | b9ad8fbf31e1cb84240eb297660c74e35a5ecaba | [
"MIT",
"Unlicense"
] | null | null | null | problem-solving/lib/simple_math.rb | Heybluguy/ruby-lab | b9ad8fbf31e1cb84240eb297660c74e35a5ecaba | [
"MIT",
"Unlicense"
] | null | null | null | class SimpleMath
def add(first, second)
first + second
end
def subtract(first, second)
first - second
end
def multiply(first, second)
first * second
end
def divide(first, second)
first / second
end
end | 13.166667 | 29 | 0.654008 |
a14383f29a882d34b8e3604cb38a2dc48749a6e3 | 2,407 | ts | TypeScript | ruleta_backend/src/routes/jugadores.controllers.ts | josecarvajalhernandez/ruleta | 6391fc3d0b758205479e2f150c6421435b9bf663 | [
"MIT"
] | null | null | null | ruleta_backend/src/routes/jugadores.controllers.ts | josecarvajalhernandez/ruleta | 6391fc3d0b758205479e2f150c6421435b9bf663 | [
"MIT"
] | null | null | null | ruleta_backend/src/routes/jugadores.controllers.ts | josecarvajalhernandez/ruleta | 6391fc3d0b758205479e2f150c6421435b9bf663 | [
"MIT"
] | null | null | null | import { RequestHandler } from "express";
import Jugador from './Jugador';
export const createJugador: RequestHandler = async (req, res) => {
const jugadorFound = await Jugador.findOne({nombre: req.body.nombre})
if(jugadorFound){
return res.status(301).json({message: 'jugador ya existe'});
}
c... | 29 | 97 | 0.649356 |
25df12008605e6945ff69cae926c798f5fb8dfec | 337 | cs | C# | ExampleProject.Core/Models/Music.cs | gokdag/ExampleProject | 98691b1c80222013f532312cae6c549e728c06c5 | [
"MIT"
] | null | null | null | ExampleProject.Core/Models/Music.cs | gokdag/ExampleProject | 98691b1c80222013f532312cae6c549e728c06c5 | [
"MIT"
] | null | null | null | ExampleProject.Core/Models/Music.cs | gokdag/ExampleProject | 98691b1c80222013f532312cae6c549e728c06c5 | [
"MIT"
] | null | null | null | using ExampleProject.Core.Models;
using System;
using System.Collections.Generic;
using System.Text;
namespace MusicMarket.Core.Models
{
public class Music
{
public int Id { get; set; }
public string Name { get; set; }
public int ArtistId { get; set; }
public Artist Artist { ge... | 22.466667 | 42 | 0.64095 |
4cfd4249a9667f1f9b04788764ccb3843f5ef80d | 864 | py | Python | algorithm/config.py | magictomagic/diplomaProject | db1447874424ae02d2cddf0d602aa2a70047fb84 | [
"MIT"
] | null | null | null | algorithm/config.py | magictomagic/diplomaProject | db1447874424ae02d2cddf0d602aa2a70047fb84 | [
"MIT"
] | null | null | null | algorithm/config.py | magictomagic/diplomaProject | db1447874424ae02d2cddf0d602aa2a70047fb84 | [
"MIT"
] | null | null | null | import redis
train_db = "comments_zh" # comments_zh tmp1
predict_db = "tmp1"
threshold_role = 6
threshold_dr = 8
threshold_ner = 4
part_cluster = None
role_cluster = None
dr_cluster = None
rs_cluster = None
heatage_cluster = None
# Config your filter strategy
# 铁定水军:11889
part_delete = {12741: 6, 24964: 6, 12217:... | 27 | 115 | 0.71875 |
f40b26d0566364fe4d8d0c091b67ddfaece05425 | 2,387 | cs | C# | src/Samples/Modules/Modular.WebHost/Application.cs | Yoshi325/spark | da58c19574c88cca9685ce7c25f58d876a21cfe3 | [
"Apache-2.0"
] | 99 | 2015-01-02T14:15:29.000Z | 2021-09-11T16:28:02.000Z | src/Samples/Modules/Modular.WebHost/Application.cs | dtabuenc/spark | 5488c035f5690a80cf5c167e85efee73855b3855 | [
"Apache-2.0"
] | 13 | 2015-02-02T23:00:34.000Z | 2021-08-24T15:12:13.000Z | src/Samples/Modules/Modular.WebHost/Application.cs | dtabuenc/spark | 5488c035f5690a80cf5c167e85efee73855b3855 | [
"Apache-2.0"
] | 44 | 2015-02-02T22:56:44.000Z | 2021-11-12T21:09:27.000Z | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using Castle.Facilities.Logging;
using Castle.MicroKernel;
using Castle.MicroKernel.Registration;
using Castle.Windsor;
using Spark.Modules;
using Spark.Web.Mvc;
namespace M... | 36.723077 | 131 | 0.541265 |
b0361c18aa588ddb28bdd809f68046f13c198e67 | 1,789 | py | Python | rbacProject/apps/system/migrations/0001_initial.py | xeroCBW/testmodel | 6000d79f91d11bcf6ba76befb3a94a007231ecdc | [
"MIT"
] | null | null | null | rbacProject/apps/system/migrations/0001_initial.py | xeroCBW/testmodel | 6000d79f91d11bcf6ba76befb3a94a007231ecdc | [
"MIT"
] | 54 | 2020-06-24T07:12:19.000Z | 2022-03-12T00:43:57.000Z | rbacProject/apps/system/migrations/0001_initial.py | xeroCBW/testmodel | 6000d79f91d11bcf6ba76befb3a94a007231ecdc | [
"MIT"
] | null | null | null | # Generated by Django 2.1.5 on 2020-06-17 09:21
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='EmailSetup',
fields=[
('id', models.AutoFie... | 40.659091 | 114 | 0.571269 |
e5612b498db322e6e168cbee4ea72be601093738 | 177 | go | Go | test/e2e/doc.go | gralfca/kubed | 768ccf4878a385b0519af900f1234d5b9b961fe6 | [
"Apache-2.0"
] | null | null | null | test/e2e/doc.go | gralfca/kubed | 768ccf4878a385b0519af900f1234d5b9b961fe6 | [
"Apache-2.0"
] | null | null | null | test/e2e/doc.go | gralfca/kubed | 768ccf4878a385b0519af900f1234d5b9b961fe6 | [
"Apache-2.0"
] | 1 | 2018-12-14T13:37:50.000Z | 2018-12-14T13:37:50.000Z | package e2e
// This file is for avoiding this error:
// go build github.com/appscode/kubed/test/e2e: no non-test Go files in /home/ac/go/src/github.com/appscode/kubed/test/e2e
| 35.4 | 122 | 0.757062 |
2563b425c8fa3335dd1676f20e6122bab8f39b41 | 2,396 | cs | C# | Assets/Akasha/Scripts/Interfaces/IMainMenuUIController.cs | BigETI/Akasha | fa6fe2507fbb3f66f95bfd190ec74f57ac1f17a9 | [
"MIT"
] | 2 | 2020-07-28T03:17:08.000Z | 2022-03-13T03:52:05.000Z | Assets/Akasha/Scripts/Interfaces/IMainMenuUIController.cs | BigETI/Akasha | fa6fe2507fbb3f66f95bfd190ec74f57ac1f17a9 | [
"MIT"
] | 1 | 2020-08-05T20:12:53.000Z | 2020-08-06T10:48:07.000Z | Assets/Akasha/Scripts/Interfaces/IMainMenuUIController.cs | BigETI/Akasha | fa6fe2507fbb3f66f95bfd190ec74f57ac1f17a9 | [
"MIT"
] | null | null | null | using TMPro;
/// <summary>
/// Akasha namespace
/// </summary>
namespace Akasha
{
/// <summary>
/// Main menu UI controller interface
/// </summary>
public interface IMainMenuUIController : IBehaviour
{
/// <summary>
/// World name input field
/// </summary>
TMP_Inp... | 23.038462 | 66 | 0.50626 |
63c81839af8d691601b60f2e536f9177c5c9d3a6 | 248 | sql | SQL | key/backend/schema.sql | ryneci/keyBoarder | 97bdf63d237a19f17aaca4559b0709b5abf717a8 | [
"MIT"
] | null | null | null | key/backend/schema.sql | ryneci/keyBoarder | 97bdf63d237a19f17aaca4559b0709b5abf717a8 | [
"MIT"
] | null | null | null | key/backend/schema.sql | ryneci/keyBoarder | 97bdf63d237a19f17aaca4559b0709b5abf717a8 | [
"MIT"
] | null | null | null | CREATE TABLE Preset (
presetid int NOT NULL AUTO_INCREMENT,
presetName varchar(50) NOT NULL,
waveshape varchar(10) NOT NULL,
timedelay varchar(10) NOT NULL,
dist int NOT NULL,
oversample varchar(10) NOT NULL,
PRIMARY KEY (presetid)
); | 27.555556 | 39 | 0.737903 |
e701e4a8e838ae1987394b936eaea233be78ecba | 1,043 | php | PHP | lib/utils/mysqlCliWrapper.class.php | agallou/mageia-app-db | 450dbe0d0213d8cba72fc931681e55f0be5409f8 | [
"MIT"
] | 4 | 2015-05-15T16:27:45.000Z | 2019-06-29T23:50:27.000Z | lib/utils/mysqlCliWrapper.class.php | agallou/mageia-app-db | 450dbe0d0213d8cba72fc931681e55f0be5409f8 | [
"MIT"
] | 10 | 2015-09-07T10:39:45.000Z | 2018-06-21T12:58:00.000Z | lib/utils/mysqlCliWrapper.class.php | agallou/mageia-app-db | 450dbe0d0213d8cba72fc931681e55f0be5409f8 | [
"MIT"
] | 4 | 2016-08-16T14:53:16.000Z | 2020-11-07T17:45:27.000Z | <?php
class mysqlCliWrapper
{
protected $dbInfos = null;
protected $fs = null;
public function __construct(dbInfos $dbInfos, sfFilesystem $filesystem)
{
$this->dbInfos = $dbInfos;
$this->filesystem = $filesystem;
}
public function getFilesystem()
{
return $this->filesystem;
}
p... | 22.191489 | 147 | 0.596357 |
44965725247c09b82d7215c3404efc79076877db | 877 | lua | Lua | Slipe/Core/Lua/Compiled/Client/Source/SlipeClient/Browsers/Events/OnPopupEventArgs.lua | DezZolation/trains | 0ed198bf6f314860b13e045f06714c644de55686 | [
"Apache-2.0"
] | 1 | 2020-08-29T20:34:10.000Z | 2020-08-29T20:34:10.000Z | Slipe/Core/Lua/Compiled/Client/Source/SlipeClient/Browsers/Events/OnPopupEventArgs.lua | DezZolation/trains | 0ed198bf6f314860b13e045f06714c644de55686 | [
"Apache-2.0"
] | null | null | null | Slipe/Core/Lua/Compiled/Client/Source/SlipeClient/Browsers/Events/OnPopupEventArgs.lua | DezZolation/trains | 0ed198bf6f314860b13e045f06714c644de55686 | [
"Apache-2.0"
] | null | null | null | -- Generated by CSharp.lua Compiler
local System = System
System.namespace("Slipe.Client.Browsers.Events", function (namespace)
namespace.class("OnPopupEventArgs", function (namespace)
local __ctor__
__ctor__ = function (this, target, opener, isPopup)
this.Url = System.cast(System.String, target)
... | 29.233333 | 81 | 0.573546 |
444ee450018e970552baf85bff6060524f44ecaa | 8,190 | py | Python | nnef_tools/optimization/tensorflow/tf_data_format_optimizer.py | jnorwood/NNEF-Tools | 5eb3755b5322040d42893e41b15093337abe04ce | [
"Apache-2.0"
] | null | null | null | nnef_tools/optimization/tensorflow/tf_data_format_optimizer.py | jnorwood/NNEF-Tools | 5eb3755b5322040d42893e41b15093337abe04ce | [
"Apache-2.0"
] | null | null | null | nnef_tools/optimization/tensorflow/tf_data_format_optimizer.py | jnorwood/NNEF-Tools | 5eb3755b5322040d42893e41b15093337abe04ce | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2017 The Khronos Group Inc.
#
# 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 ... | 42 | 120 | 0.656777 |
f43c98d8f887d709c1e5709d3293d6f1793afde6 | 1,430 | cs | C# | ProcInsp/Dtos/MachineInfo.cs | CUSTIS-public/ProcInsp | 6a3d114003bda6d9673d46dde0baa6508f9126d4 | [
"MIT"
] | 16 | 2021-01-27T22:37:44.000Z | 2022-03-30T11:15:53.000Z | ProcInsp/Dtos/MachineInfo.cs | CUSTIS-public/ProcInsp | 6a3d114003bda6d9673d46dde0baa6508f9126d4 | [
"MIT"
] | 2 | 2021-01-25T13:22:37.000Z | 2021-01-26T14:25:20.000Z | ProcInsp/Dtos/MachineInfo.cs | CUSTIS-public/ProcInsp | 6a3d114003bda6d9673d46dde0baa6508f9126d4 | [
"MIT"
] | 2 | 2021-02-20T08:27:13.000Z | 2022-01-14T15:25:34.000Z | using System;
using System.Diagnostics;
using System.Linq;
using System.Management;
namespace ProcInsp.Dtos
{
public class MachineInfo
{
public string Name { get; set; }
public int CpuUsage { get; set; }
public double? RamUsage { get; set; }
/// <summary>Initial... | 37.631579 | 146 | 0.60979 |
ff4381182c94b90ec2e42ebb7162bf61ad4cdd86 | 34,946 | py | Python | manila/share/drivers/ibm/gpfs.py | nidhimittalhada/access_group_repo | 62f3365bc5fb728fcca692a9b3977690fabcd78f | [
"Apache-2.0"
] | 1 | 2019-05-06T10:33:38.000Z | 2019-05-06T10:33:38.000Z | manila/share/drivers/ibm/gpfs.py | nidhimittalhada/access_group_repo | 62f3365bc5fb728fcca692a9b3977690fabcd78f | [
"Apache-2.0"
] | 5 | 2015-08-13T15:17:28.000Z | 2016-08-02T02:55:01.000Z | manila/share/drivers/ibm/gpfs.py | nidhimittalhada/access_group_repo | 62f3365bc5fb728fcca692a9b3977690fabcd78f | [
"Apache-2.0"
] | 3 | 2019-05-03T12:32:47.000Z | 2021-01-30T20:26:19.000Z | # Copyright 2014 IBM Corp.
#
# 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 t... | 40.872515 | 79 | 0.570194 |
55b46c37e5b1adc32fc2786f6bd297cbfc7a2f35 | 8,111 | dart | Dart | lib/ui/main_pages.dart | fuadhs88/komikcast-app | c898967a59a283393d4fe7ed511195140e9aaa42 | [
"MIT"
] | 13 | 2020-08-18T13:26:50.000Z | 2021-12-22T06:22:37.000Z | lib/ui/main_pages.dart | fuadhs88/komikcast-app | c898967a59a283393d4fe7ed511195140e9aaa42 | [
"MIT"
] | 1 | 2020-10-30T09:52:41.000Z | 2020-11-01T15:58:53.000Z | lib/ui/main_pages.dart | fuadhs88/komikcast-app | c898967a59a283393d4fe7ed511195140e9aaa42 | [
"MIT"
] | 6 | 2020-08-25T14:56:36.000Z | 2021-12-22T06:22:41.000Z | import 'package:bottom_navy_bar/bottom_navy_bar.dart';
import 'package:cached_network_image/cached_network_image.dart';
import 'package:flutter/material.dart';
import 'package:flutter_email_sender/flutter_email_sender.dart';
import 'package:flutter_modular/flutter_modular.dart';
import 'package:flutter_web_browser/flut... | 32.705645 | 79 | 0.50561 |
2c3df7950f4f587a8f9d7c36ab871f9210188f40 | 1,641 | py | Python | examples/example_input.py | jfilipedias/InquirerPy | 9f67125f808cbe6a73ab3cb652f35faba3f3443e | [
"MIT"
] | null | null | null | examples/example_input.py | jfilipedias/InquirerPy | 9f67125f808cbe6a73ab3cb652f35faba3f3443e | [
"MIT"
] | null | null | null | examples/example_input.py | jfilipedias/InquirerPy | 9f67125f808cbe6a73ab3cb652f35faba3f3443e | [
"MIT"
] | null | null | null | from InquirerPy import inquirer, prompt
from InquirerPy.validator import NumberValidator
def classic():
"""Classic syntax example."""
questions = [
{"type": "input", "message": "Enter your name:"},
{
"type": "input",
"message": "Which company would you like to apply:",
... | 27.35 | 64 | 0.511274 |
853834b60c197cba4919094f38d9b46e1d30cf77 | 2,296 | cs | C# | UpLauncher Public/utils/utils.cs | RaphaelGoulmot/Uplauncher-Public | 413e41d51f72a347b212bcb5f8a522b24a3c5408 | [
"Apache-2.0"
] | null | null | null | UpLauncher Public/utils/utils.cs | RaphaelGoulmot/Uplauncher-Public | 413e41d51f72a347b212bcb5f8a522b24a3c5408 | [
"Apache-2.0"
] | null | null | null | UpLauncher Public/utils/utils.cs | RaphaelGoulmot/Uplauncher-Public | 413e41d51f72a347b212bcb5f8a522b24a3c5408 | [
"Apache-2.0"
] | null | null | null | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace UpLauncher_Public.utils
{
public class utils
{
public static void set_text(Control ctrl, string text)
{
try... | 26.090909 | 112 | 0.440767 |
e7172c5f4061d98e82a8e3f220cb6be5b46a5f8f | 559 | php | PHP | resources/views/convocatorias/MEDICO_GENERAL.blade.php | Socrates5068/cdes2 | 367650ec8570060eead1ad0336641721818bed87 | [
"MIT"
] | null | null | null | resources/views/convocatorias/MEDICO_GENERAL.blade.php | Socrates5068/cdes2 | 367650ec8570060eead1ad0336641721818bed87 | [
"MIT"
] | null | null | null | resources/views/convocatorias/MEDICO_GENERAL.blade.php | Socrates5068/cdes2 | 367650ec8570060eead1ad0336641721818bed87 | [
"MIT"
] | null | null | null | @extends('layout')
@section('meta-title')
Inicio | Servicio Departamental de Salud Potosí
@endsection
@section('listardenunciar')
<div class="col-12">
<div class="center-block">
<iframe style="center" width="1300" height="800" src="https://sedespotosi.com/convocatorias/MEDICO_GENERAL.PDF" frameborder="0... | 46.583333 | 197 | 0.697674 |
4b36247c8813b04b33a622511f617e995f35c1a0 | 2,887 | kt | Kotlin | baselibrary/src/main/java/com/lq/baselibrary/view/dialog/loadingview/style/FoldingCube.kt | yuqianglianshou/BestProject | 7f648b8a213143ac05fed4a67b42961802331aab | [
"Apache-2.0"
] | null | null | null | baselibrary/src/main/java/com/lq/baselibrary/view/dialog/loadingview/style/FoldingCube.kt | yuqianglianshou/BestProject | 7f648b8a213143ac05fed4a67b42961802331aab | [
"Apache-2.0"
] | null | null | null | baselibrary/src/main/java/com/lq/baselibrary/view/dialog/loadingview/style/FoldingCube.kt | yuqianglianshou/BestProject | 7f648b8a213143ac05fed4a67b42961802331aab | [
"Apache-2.0"
] | null | null | null | package com.lq.baselibrary.view.dialog.loadingview.style
import android.animation.ValueAnimator
import android.graphics.Canvas
import android.graphics.Rect
import android.view.animation.LinearInterpolator
import com.lq.baselibrary.view.dialog.loadingview.animation.SpriteAnimatorBuilder
import com.lq.baselibrary.view.d... | 34.783133 | 219 | 0.562175 |
7987ed07e7f7d97264be5fcfa23d6f25098fa0e7 | 32,228 | php | PHP | app/Http/Controllers/TeacherCreditScoreController.php | Bimbimmmm/eGuru | 3c6045b650569465fa7373e313941fa9a9a87e8a | [
"MIT"
] | null | null | null | app/Http/Controllers/TeacherCreditScoreController.php | Bimbimmmm/eGuru | 3c6045b650569465fa7373e313941fa9a9a87e8a | [
"MIT"
] | null | null | null | app/Http/Controllers/TeacherCreditScoreController.php | Bimbimmmm/eGuru | 3c6045b650569465fa7373e313941fa9a9a87e8a | [
"MIT"
] | null | null | null | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\AssesmentCredit;
use App\Models\AssesmentCreditScore;
use App\Models\AssesmentCreditScoreRejected;
use App\Models\ReferenceAssesmentCreditScoreActivity;
use App\Models\ReferenceEducationCreditScore;
use App\Models\PerformanceTarget;
use... | 50.913112 | 166 | 0.65983 |
4f59e42c3db29f1518f639d7eaf8977c6cecd27e | 56 | sql | SQL | ee7/jms/jms-xa/src/main/resources/META-INF/load.sql | Thihup/jakartaee-samples | 3a688522c4bed35db1e92eca3aa2f4d118413050 | [
"MIT"
] | 2,150 | 2015-01-01T20:41:01.000Z | 2022-03-27T19:44:00.000Z | ee7/jms/jms-xa/src/main/resources/META-INF/load.sql | Thihup/jakartaee-samples | 3a688522c4bed35db1e92eca3aa2f4d118413050 | [
"MIT"
] | 106 | 2015-01-05T12:37:30.000Z | 2022-01-21T23:22:50.000Z | ee7/jms/jms-xa/src/main/resources/META-INF/load.sql | Thihup/jakartaee-samples | 3a688522c4bed35db1e92eca3aa2f4d118413050 | [
"MIT"
] | 1,669 | 2015-01-03T13:13:24.000Z | 2022-03-22T12:21:50.000Z | INSERT INTO T_USERS("EMAIL") VALUES ('jack@itcrowd.pl')
| 28 | 55 | 0.732143 |
43aebf06907e41f2c12ecc043cd962c2f7cb5f65 | 796 | ts | TypeScript | src/socketio/ns-booking/ns-booking.service.ts | heremamit/socketio | 49966bae28b89ecd9d0a2ed5339b5375853fab61 | [
"MIT"
] | null | null | null | src/socketio/ns-booking/ns-booking.service.ts | heremamit/socketio | 49966bae28b89ecd9d0a2ed5339b5375853fab61 | [
"MIT"
] | null | null | null | src/socketio/ns-booking/ns-booking.service.ts | heremamit/socketio | 49966bae28b89ecd9d0a2ed5339b5375853fab61 | [
"MIT"
] | null | null | null | import { Injectable } from '@nestjs/common';
import {
OnGatewayConnection,
SubscribeMessage,
WebSocketGateway,
WebSocketServer,
} from '@nestjs/websockets';
import { Server, Socket } from 'socket.io';
import { NameSpaces } from '../name-space/ns-list';
@Injectable()
@WebSocketGateway({ namespace: 'booking' })
e... | 29.481481 | 62 | 0.690955 |
02ba104c1168ba8820fcfeb2afa53da656a9db43 | 2,194 | cpp | C++ | Code/GUI/ProgressBar.cpp | BomjSoft/BCL | f6863035d987b3fad184db8533d395d73beaf601 | [
"MIT"
] | null | null | null | Code/GUI/ProgressBar.cpp | BomjSoft/BCL | f6863035d987b3fad184db8533d395d73beaf601 | [
"MIT"
] | null | null | null | Code/GUI/ProgressBar.cpp | BomjSoft/BCL | f6863035d987b3fad184db8533d395d73beaf601 | [
"MIT"
] | null | null | null | //---------------------------------------------------------------------------
#include "ProgressBar.h"
//---------------------------------------------------------------------------
namespace bcl {
//---------------------------------------------------------------------------
CProgressBar::CProgressBar() : CComponen... | 30.472222 | 182 | 0.377393 |
e278679def31bb516c38783c82e22315560571a2 | 2,358 | js | JavaScript | src/libs/scene-manager.js | xuanye/pitaya | 605c4a5a515bb4099b83f12100807bfa44195297 | [
"MIT"
] | null | null | null | src/libs/scene-manager.js | xuanye/pitaya | 605c4a5a515bb4099b83f12100807bfa44195297 | [
"MIT"
] | null | null | null | src/libs/scene-manager.js | xuanye/pitaya | 605c4a5a515bb4099b83f12100807bfa44195297 | [
"MIT"
] | null | null | null | import Scene from './scene';
/**
* 场景管理器
*/
export default class SceneManager {
constructor(game) {
this._scenes = {}; //场景的类
this._scenesInstances = {}; //场景的实例
this._active = {
//活跃的信息
name: null,
update: null,
scene: null,
};
... | 28.756098 | 102 | 0.498728 |
24b5154218e65b2be3e7f5b9f58272884fccbb20 | 742 | php | PHP | tests/Omnipay/Common/GatewayFactoryTest.php | mbeech/omnipay | 1753433a54672ffd6f9c92222c861abffec88a65 | [
"MIT"
] | null | null | null | tests/Omnipay/Common/GatewayFactoryTest.php | mbeech/omnipay | 1753433a54672ffd6f9c92222c861abffec88a65 | [
"MIT"
] | null | null | null | tests/Omnipay/Common/GatewayFactoryTest.php | mbeech/omnipay | 1753433a54672ffd6f9c92222c861abffec88a65 | [
"MIT"
] | null | null | null | <?php
namespace Omnipay\Common;
use Omnipay\TestCase;
class GatewayFactoryTest extends TestCase
{
public function testCreate()
{
$gateway = GatewayFactory::create('Stripe');
$this->assertInstanceOf('\\Omnipay\\Stripe\\Gateway', $gateway);
}
/**
* @expectedException \Omnipay\Comm... | 23.935484 | 75 | 0.650943 |
5ad231701174d2d67bbec7a1d0ec562059268ebc | 1,408 | cs | C# | Nucleus/Nucleus/Base/CollectionCopyAttribute.cs | escooo/Nucleus | 38f0aa73ad1d3c00f6e6b87004a97a021bbae11e | [
"MIT"
] | 15 | 2017-07-02T00:30:37.000Z | 2022-03-15T12:19:54.000Z | Nucleus/Nucleus/Base/CollectionCopyAttribute.cs | escooo/Nucleus | 38f0aa73ad1d3c00f6e6b87004a97a021bbae11e | [
"MIT"
] | 5 | 2018-02-23T10:58:31.000Z | 2021-05-09T22:32:20.000Z | Nucleus/Nucleus/Base/CollectionCopyAttribute.cs | escooo/Nucleus | 38f0aa73ad1d3c00f6e6b87004a97a021bbae11e | [
"MIT"
] | 4 | 2019-05-12T20:58:26.000Z | 2020-06-23T12:49:49.000Z | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Nucleus.Base
{
/// <summary>
/// Attribute applied to collection types and fields to determine the correct procedure for dealing
/// with them when automatically copying their valu... | 42.666667 | 111 | 0.701705 |
dc7ff01d21939304fa62a8f0ad0bd1bc719ba2fb | 2,605 | rb | Ruby | spec/features/cart_path_spec.rb | langlk/ecommerce-refactor | 34b7c53f9d7a7d2e05683a22ec191499069b46e7 | [
"MIT"
] | null | null | null | spec/features/cart_path_spec.rb | langlk/ecommerce-refactor | 34b7c53f9d7a7d2e05683a22ec191499069b46e7 | [
"MIT"
] | null | null | null | spec/features/cart_path_spec.rb | langlk/ecommerce-refactor | 34b7c53f9d7a7d2e05683a22ec191499069b46e7 | [
"MIT"
] | null | null | null | require "rails_helper"
describe "the cart management path" do
before do
@user = FactoryBot.create(:user)
visit '/sign_in'
fill_in "Email", with: @user.email
fill_in "Password", with: @user.password
click_on "sign_in_button"
end
it "allows a user to add items to their cart" do
product = F... | 32.160494 | 90 | 0.71286 |
f617dbf2f2a635fcb5e8a5a3993d00b80ded8790 | 13,969 | cpp | C++ | sources/cpp/wasmint/main.cpp | xunilrj/sandbox | f92c12f83433cac01a885585e41c02bb5826a01f | [
"Apache-2.0"
] | 7 | 2017-04-01T17:18:35.000Z | 2022-01-12T05:23:23.000Z | sources/cpp/wasmint/main.cpp | xunilrj/sandbox | f92c12f83433cac01a885585e41c02bb5826a01f | [
"Apache-2.0"
] | 6 | 2020-05-24T13:36:50.000Z | 2022-02-15T06:44:20.000Z | sources/cpp/wasmint/main.cpp | xunilrj/sandbox | f92c12f83433cac01a885585e41c02bb5826a01f | [
"Apache-2.0"
] | 2 | 2018-09-20T01:07:39.000Z | 2019-02-22T14:55:38.000Z | #define CATCH_CONFIG_MAIN
#include "../catch/catch.hpp"
#include <Windows.h>
#include <string>
#include <stack>
#include <unordered_map>
template <typename T>
T &read(uint8_t *&p)
{
auto *ptr = (T *)p;
p += sizeof(T);
return *ptr;
}
uint32_t readULEB128(uint8_t *&p)
{
uint32_t result = 0;
uint3... | 23.919521 | 129 | 0.455222 |
57a9e3bb938ea31a0793effddde568abe3df1685 | 3,806 | dart | Dart | semana16/dia1/reconocimiento_imagenes/lib/barcode_reader.dart | EffrenAnthony/CodiGoFlutterStart | fdd29d9f2ae334f6ccd1f19a7bc1e50d6bb1e34b | [
"MIT"
] | 1 | 2020-09-27T04:21:04.000Z | 2020-09-27T04:21:04.000Z | semana16/dia1/reconocimiento_imagenes/lib/barcode_reader.dart | EffrenAnthony/CodiGoFlutterStart | fdd29d9f2ae334f6ccd1f19a7bc1e50d6bb1e34b | [
"MIT"
] | null | null | null | semana16/dia1/reconocimiento_imagenes/lib/barcode_reader.dart | EffrenAnthony/CodiGoFlutterStart | fdd29d9f2ae334f6ccd1f19a7bc1e50d6bb1e34b | [
"MIT"
] | 1 | 2020-09-22T05:48:26.000Z | 2020-09-22T05:48:26.000Z | import 'dart:io';
import 'package:firebase_ml_vision/firebase_ml_vision.dart';
import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart';
class BarcodeReader extends StatefulWidget {
File file;
BarcodeReader(this.file);
@override
_BarcodeReaderState createState() => _BarcodeRead... | 31.983193 | 80 | 0.49238 |
233df43ffc5edcdf12cd4db63546b53f23fdf814 | 713 | css | CSS | view/css/yla-tooltip.css | wykhuh/shiori | 0296782dbb0002a2289ed215992f38f5bd767bb8 | [
"MIT"
] | 1 | 2019-05-18T16:36:41.000Z | 2019-05-18T16:36:41.000Z | view/css/yla-tooltip.css | wykhuh/shiori | 0296782dbb0002a2289ed215992f38f5bd767bb8 | [
"MIT"
] | null | null | null | view/css/yla-tooltip.css | wykhuh/shiori | 0296782dbb0002a2289ed215992f38f5bd767bb8 | [
"MIT"
] | 1 | 2019-05-15T08:20:13.000Z | 2019-05-15T08:20:13.000Z | .yla-tooltip{font-size:14px;color:#FFF;background-color:#232323;padding:8px;border-radius:4px;position:relative;z-index:1000}.yla-tooltip::after{content:'';display:block;position:absolute;border:8px solid transparent}.yla-tooltip.left{margin-left:-14px}.yla-tooltip.left::after{top:50%;right:-16px;margin-top:-8px;border... | 713 | 713 | 0.784011 |
2557c674b0c190747af4f1a1154f858180d937ef | 2,587 | cs | C# | PX.HMRC/Messages.cs | Acumatica/MTDCompliance | bf2599059ff5d827fcd8fd1b7ac7693c2761cd0f | [
"MIT"
] | null | null | null | PX.HMRC/Messages.cs | Acumatica/MTDCompliance | bf2599059ff5d827fcd8fd1b7ac7693c2761cd0f | [
"MIT"
] | null | null | null | PX.HMRC/Messages.cs | Acumatica/MTDCompliance | bf2599059ff5d827fcd8fd1b7ac7693c2761cd0f | [
"MIT"
] | 1 | 2020-02-24T23:06:55.000Z | 2020-02-24T23:06:55.000Z | using PX.Common;
namespace PX.HMRC
{
[PXLocalizable(Messages.Prefix)]
public static class Messages
{
public const string Prefix = "HMRC Error";
public const string Fulfilled = "Fulfilled";
public const string Open = "Open";
public const string VatReturnWillBeSentToHMRC = ... | 52.795918 | 163 | 0.705064 |
0db8473bf2103d107b5902399f408cd1c480814f | 371 | cs | C# | src/EasyGet/Feed.cs | pepelev/EasyGet | a35880a36399373fd4a1e57f29207b65cc86b38d | [
"MIT"
] | null | null | null | src/EasyGet/Feed.cs | pepelev/EasyGet | a35880a36399373fd4a1e57f29207b65cc86b38d | [
"MIT"
] | null | null | null | src/EasyGet/Feed.cs | pepelev/EasyGet | a35880a36399373fd4a1e57f29207b65cc86b38d | [
"MIT"
] | null | null | null | using System.Collections.Generic;
using System.Threading.Tasks;
namespace EasyGet
{
public abstract class Feed
{
public abstract Task<IReadOnlyList<Version>> VersionsAsync(Id packageId);
public abstract Task<Manifest> ManifestAsync(Reference reference);
public abstract Task<Pa... | 30.916667 | 82 | 0.719677 |
c393198e72599850923204816ccc912d13bd3613 | 2,145 | cs | C# | app/Application/DomainEventHandlers/SchemeEventHandlers/SchemeUnpublishedEventHandler.Spec.cs | Midnight-Lizard/Schemes-Processor | d6ac119a6cacfe9348d8c5b8cc8c9c0fccb1f235 | [
"MIT"
] | null | null | null | app/Application/DomainEventHandlers/SchemeEventHandlers/SchemeUnpublishedEventHandler.Spec.cs | Midnight-Lizard/Schemes-Processor | d6ac119a6cacfe9348d8c5b8cc8c9c0fccb1f235 | [
"MIT"
] | 1 | 2018-11-30T09:32:33.000Z | 2018-11-30T09:32:33.000Z | app/Application/DomainEventHandlers/SchemeEventHandlers/SchemeUnpublishedEventHandler.Spec.cs | Midnight-Lizard/Schemes-Processor | d6ac119a6cacfe9348d8c5b8cc8c9c0fccb1f235 | [
"MIT"
] | null | null | null | using FluentAssertions;
using MediatR;
using MidnightLizard.Commons.Domain.Interfaces;
using MidnightLizard.Commons.Domain.Messaging;
using MidnightLizard.Commons.Domain.Model;
using MidnightLizard.Commons.Domain.Results;
using MidnightLizard.Schemes.Domain.PublicSchemeAggregate;
using MidnightLizard.Schemes.Domain.Pu... | 42.058824 | 227 | 0.756643 |
0d30f749259e03a829a1f107951ebcce8eb8e917 | 2,157 | rb | Ruby | core/rails/db/migrate/20170615091500_fix_busted_unique.rb | mugithi/rebar | cdbf6ed84973207d65c77526867f55e2ad4797c9 | [
"Apache-2.0"
] | 103 | 2016-09-29T17:29:40.000Z | 2022-03-13T23:16:08.000Z | core/rails/db/migrate/20170615091500_fix_busted_unique.rb | mugithi/rebar | cdbf6ed84973207d65c77526867f55e2ad4797c9 | [
"Apache-2.0"
] | 48 | 2016-09-15T22:19:59.000Z | 2018-03-06T14:06:20.000Z | core/rails/db/migrate/20170615091500_fix_busted_unique.rb | mugithi/rebar | cdbf6ed84973207d65c77526867f55e2ad4797c9 | [
"Apache-2.0"
] | 25 | 2016-09-14T18:43:26.000Z | 2020-07-25T20:01:56.000Z | # Copyright 2017, RackN
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software... | 37.189655 | 74 | 0.70561 |
92e7826d875e01456ae294117cefdc87598b6744 | 207 | rb | Ruby | gem/lib/hokaido.rb | ursmhbry/hokaido | 817f65dc9a95e6e0c83a1a8c4a0e277ff069b4f7 | [
"MIT"
] | 26 | 2015-07-07T04:25:29.000Z | 2019-09-03T13:31:12.000Z | gem/lib/hokaido.rb | ursmhbry/hokaido | 817f65dc9a95e6e0c83a1a8c4a0e277ff069b4f7 | [
"MIT"
] | 6 | 2015-10-31T07:04:58.000Z | 2017-02-02T04:50:33.000Z | gem/lib/hokaido.rb | ursmhbry/hokaido | 817f65dc9a95e6e0c83a1a8c4a0e277ff069b4f7 | [
"MIT"
] | 4 | 2015-10-31T06:57:54.000Z | 2016-02-08T03:18:47.000Z | require 'hokaido/version'
module Hokaido
autoload :Broadcast, 'hokaido/broadcast'
autoload :CLI, 'hokaido/cli'
autoload :Server, 'hokaido/server'
autoload :Watcher, 'hokaido/watcher'
end
| 23 | 42 | 0.710145 |
08fc1cb195d1fb5877ee7756ac6a1d13acc0c517 | 6,679 | swift | Swift | OysterKit/OysterKit/Framework/Base/Token.swift | elpsk/Swift-Koan | 15cad0963f7011bd3644300daeadbf93e2fba683 | [
"MIT"
] | 3 | 2016-05-31T14:07:44.000Z | 2017-04-22T11:57:46.000Z | OysterKit/OysterKit/Framework/Base/Token.swift | elpsk/Swift-Koan | 15cad0963f7011bd3644300daeadbf93e2fba683 | [
"MIT"
] | null | null | null | OysterKit/OysterKit/Framework/Base/Token.swift | elpsk/Swift-Koan | 15cad0963f7011bd3644300daeadbf93e2fba683 | [
"MIT"
] | null | null | null | /*
Copyright (c) 2014, RED When Excited
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 above copyright notice, this
list of conditions and the following... | 33.903553 | 132 | 0.667615 |
d6391e9544e0e44dec450a528c1df82f6e86d398 | 374 | cs | C# | NBitcoin.Zcash/ZcashConsensusFactory.cs | LykkeCity/NBitcoin.Zcash | 7e039534a59d573845ced5ccac2d10fe0c0de056 | [
"MIT"
] | 4 | 2018-02-06T13:47:23.000Z | 2018-08-09T15:58:34.000Z | NBitcoin.Zcash/ZcashConsensusFactory.cs | LykkeCity/NBitcoin.Zcash | 7e039534a59d573845ced5ccac2d10fe0c0de056 | [
"MIT"
] | 3 | 2018-05-07T21:26:00.000Z | 2018-09-18T12:28:18.000Z | NBitcoin.Zcash/ZcashConsensusFactory.cs | LykkeCity/NBitcoin.Zcash | 7e039534a59d573845ced5ccac2d10fe0c0de056 | [
"MIT"
] | 4 | 2018-11-19T08:11:29.000Z | 2020-07-01T13:45:17.000Z | namespace NBitcoin.Zcash
{
public class ZcashConsensusFactory : ConsensusFactory
{
private ZcashConsensusFactory()
{
}
public static ZcashConsensusFactory Instance { get; } = new ZcashConsensusFactory();
public override Transaction CreateTransaction()
{
... | 22 | 92 | 0.622995 |
435b6a50288201bb31c94291f63fe0b71f57c9d5 | 1,850 | ts | TypeScript | src/app/catalogue/model/publish/order.ts | hrabhijith/frontend-service | 11058df1d504d9b741d670169544854fe81c98c1 | [
"Apache-2.0"
] | 9 | 2017-06-01T11:57:53.000Z | 2020-07-03T08:47:46.000Z | src/app/catalogue/model/publish/order.ts | ROBxTASK/frontend-service | 5ce13949138bc48b60c9ccf56a224ece9e954cff | [
"Apache-2.0"
] | 103 | 2017-06-27T09:26:38.000Z | 2020-04-08T09:49:31.000Z | src/app/catalogue/model/publish/order.ts | ROBxTASK/frontend-service | 5ce13949138bc48b60c9ccf56a224ece9e954cff | [
"Apache-2.0"
] | 9 | 2019-03-11T07:57:51.000Z | 2021-08-23T17:50:09.000Z | /*
* Copyright 2020
* SRDC - Software Research & Development Consultancy; Ankara; Turkey
In collaboration with
* SRFG - Salzburg Research Forschungsgesellschaft mbH; Salzburg; Austria
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the Lice... | 45.121951 | 90 | 0.705946 |
ebb95ca7d8e0a12158cd8815d3d9ca41323af301 | 4,658 | css | CSS | assets/mobirise/css/mbr-additional.css | rajnandanweb/banking-and-loan-system | 30567456053b594db31918f34a323c27523ab179 | [
"MIT"
] | null | null | null | assets/mobirise/css/mbr-additional.css | rajnandanweb/banking-and-loan-system | 30567456053b594db31918f34a323c27523ab179 | [
"MIT"
] | null | null | null | assets/mobirise/css/mbr-additional.css | rajnandanweb/banking-and-loan-system | 30567456053b594db31918f34a323c27523ab179 | [
"MIT"
] | 1 | 2021-11-13T15:04:53.000Z | 2021-11-13T15:04:53.000Z | @import url(https://fonts.googleapis.com/css?family=Montserrat:400,700);
@import url(https://fonts.googleapis.com/css?family=Oswald:400,300,700);
@import url(https://fonts.googleapis.com/css?family=Bitter:400,700);
@import url(https://fonts.googleapis.com/css?family=Ubuntu:400,300,700);
#dropdown-menu-2btn-0 .hide-b... | 21.269406 | 76 | 0.679691 |
e55b3cd2f6825fac74eb24ad8c1113b0dbfe1cdf | 15,648 | go | Go | doc.go | helmutkemper/iotmaker.docker.builder | aea5ca8ef0c3d651125d2705f39f49c3a143e14b | [
"Apache-2.0"
] | null | null | null | doc.go | helmutkemper/iotmaker.docker.builder | aea5ca8ef0c3d651125d2705f39f49c3a143e14b | [
"Apache-2.0"
] | null | null | null | doc.go | helmutkemper/iotmaker.docker.builder | aea5ca8ef0c3d651125d2705f39f49c3a143e14b | [
"Apache-2.0"
] | null | null | null | // Package iotmakerdockerbuilder
//
// English:
//
// Golang and Docker in a simple way
//
// Documentation in progress
//
// This package facilitates the use of docker containers by golang code, enabling the creation of unit tests involving
// containers in linear and chaos scenarios, enabling the development of micro... | 42.871233 | 133 | 0.707119 |
170f823226ed98712a3d5bebd417725cc57dc087 | 853 | kt | Kotlin | shared/src/commonMain/kotlin/com/mzukic/superhero/shared/data/network/api/SuperHeroApi.kt | mzukic3/SuperHero | 53d8fe1a802c80e34ee5c12090d49750a1ed7c55 | [
"Apache-2.0"
] | 2 | 2020-09-15T08:46:03.000Z | 2020-10-07T15:34:59.000Z | shared/src/commonMain/kotlin/com/mzukic/superhero/shared/data/network/api/SuperHeroApi.kt | mzukic3/SuperHero | 53d8fe1a802c80e34ee5c12090d49750a1ed7c55 | [
"Apache-2.0"
] | null | null | null | shared/src/commonMain/kotlin/com/mzukic/superhero/shared/data/network/api/SuperHeroApi.kt | mzukic3/SuperHero | 53d8fe1a802c80e34ee5c12090d49750a1ed7c55 | [
"Apache-2.0"
] | 1 | 2020-12-23T17:37:34.000Z | 2020-12-23T17:37:34.000Z | package com.mzukic.superhero.shared.data.network.api
import com.mzukic.superhero.shared.data.network.response.SuperHeroSearchResponse
import io.ktor.client.*
import io.ktor.client.features.*
import io.ktor.client.features.json.*
import io.ktor.client.features.json.serializer.*
import io.ktor.client.request.*
class T... | 27.516129 | 84 | 0.66823 |
bef1a6ad600894f6bf75ce7cca4754eed31ff9a9 | 127 | ts | TypeScript | react/outline/quote.ts | la-moore/scarlab-icons | 97b1083f9eb0c3e89ee05bb00ebc06e30c90d563 | [
"MIT"
] | 3 | 2022-02-11T06:49:31.000Z | 2022-03-30T06:49:18.000Z | react/solid/quote.ts | la-moore/scarlab-icons | 97b1083f9eb0c3e89ee05bb00ebc06e30c90d563 | [
"MIT"
] | null | null | null | react/solid/quote.ts | la-moore/scarlab-icons | 97b1083f9eb0c3e89ee05bb00ebc06e30c90d563 | [
"MIT"
] | null | null | null | import * as React from 'react';
declare function Quote(props: React.ComponentProps<'svg'>): JSX.Element;
export default Quote;
| 31.75 | 72 | 0.76378 |
b090a7773f564d4aeacf610afa06708779f8943a | 11,902 | py | Python | bulls_and_cows.py | gloriajzhou/bulls_and_cows | 73f8e6b7ec1fc9512d083b5b34b7a082df9b1796 | [
"MIT"
] | null | null | null | bulls_and_cows.py | gloriajzhou/bulls_and_cows | 73f8e6b7ec1fc9512d083b5b34b7a082df9b1796 | [
"MIT"
] | null | null | null | bulls_and_cows.py | gloriajzhou/bulls_and_cows | 73f8e6b7ec1fc9512d083b5b34b7a082df9b1796 | [
"MIT"
] | null | null | null | # Bulls and Cows (4-digit numerical version)
# Generate a random four-digit code
import random
print("Can you break the four-digit code?")
print("First, let's go over some terminology.")
print("One 'hit' means there is one number in the code you guessed that is both correct and in the correct position.")
print("One 'd... | 136.804598 | 2,247 | 0.710217 |
76dbbc8301629dd75bc5df943291e9a4c32b36a3 | 1,330 | swift | Swift | ConcurrencyLab/ConcurrencyLab/UI/CountryDetailVC.swift | CasandraGrullon/Pursuit-Core-iOS-Concurrency-Lab | 1ecbc37add5bb4e3c06d26dc402f375f7301ab1d | [
"MIT"
] | null | null | null | ConcurrencyLab/ConcurrencyLab/UI/CountryDetailVC.swift | CasandraGrullon/Pursuit-Core-iOS-Concurrency-Lab | 1ecbc37add5bb4e3c06d26dc402f375f7301ab1d | [
"MIT"
] | null | null | null | ConcurrencyLab/ConcurrencyLab/UI/CountryDetailVC.swift | CasandraGrullon/Pursuit-Core-iOS-Concurrency-Lab | 1ecbc37add5bb4e3c06d26dc402f375f7301ab1d | [
"MIT"
] | null | null | null | //
// CountryDetailVC.swift
// ConcurrencyLab
//
// Created by casandra grullon on 12/6/19.
// Copyright © 2019 casandra grullon. All rights reserved.
//
import UIKit
class CountryDetailVC: UIViewController {
@IBOutlet weak var flagImage: UIImageView!
@IBOutlet weak var countryNameLabel: UILabel!
@IB... | 27.142857 | 128 | 0.558647 |
488d36cc84cbd7dc6b00c83bf5234a9dce4a9f3a | 6,234 | sql | SQL | app/database/dump/seven_ora.sql | srph/dream-rose | 5162119a51cf9d0eac3ac92f561fc7a092c6d99d | [
"zlib-acknowledgement"
] | 2 | 2018-03-25T23:24:23.000Z | 2018-05-02T17:54:07.000Z | app/database/dump/seven_ora.sql | srph/dream-rose | 5162119a51cf9d0eac3ac92f561fc7a092c6d99d | [
"zlib-acknowledgement"
] | null | null | null | app/database/dump/seven_ora.sql | srph/dream-rose | 5162119a51cf9d0eac3ac92f561fc7a092c6d99d | [
"zlib-acknowledgement"
] | null | null | null | /*
Navicat MySQL Data Transfer
Source Server : localhost
Source Server Version : 50617
Source Host : localhost:3306
Source Database : seven_ora
Target Server Type : MYSQL
Target Server Version : 50617
File Encoding : 65001
Date: 2014-04-15 20:04:57
*/
SET FOREIGN_KEY_CHECKS=0;
--... | 31.17 | 47 | 0.627045 |
5dae0f10370c9c8626c1d63c15a43820ef313c15 | 403 | cpp | C++ | hackerrank/algorithms/2-implementation/020.cpp | him1411/algorithmic-coding-and-data-structures | 685aa95539692daca68ce79c20467c335aa9bb7f | [
"MIT"
] | null | null | null | hackerrank/algorithms/2-implementation/020.cpp | him1411/algorithmic-coding-and-data-structures | 685aa95539692daca68ce79c20467c335aa9bb7f | [
"MIT"
] | null | null | null | hackerrank/algorithms/2-implementation/020.cpp | him1411/algorithmic-coding-and-data-structures | 685aa95539692daca68ce79c20467c335aa9bb7f | [
"MIT"
] | 2 | 2018-10-04T19:01:52.000Z | 2018-10-05T08:49:57.000Z | #include <bits/stdc++.h>
using namespace std;
int main()
{
vector<int> a(26);
for(int i = 0; i < 26; i++)
{
cin >> a[i];
}
string word;
cin >> word;
int k = word.length ();
vector<int> b(k);
int max =0;
for (int i = 0; i < k; ++i)
{
if (a[(int)word[i]-97]>max)
... | 15.5 | 32 | 0.431762 |
2f55952a6832f933e46d93bf1c08d997c277dbe7 | 794 | js | JavaScript | module-4/arraySum.js | zentestuken/js-webinar | 225d69766733fdc6d9812a012a5527b2290ff47c | [
"MIT"
] | null | null | null | module-4/arraySum.js | zentestuken/js-webinar | 225d69766733fdc6d9812a012a5527b2290ff47c | [
"MIT"
] | null | null | null | module-4/arraySum.js | zentestuken/js-webinar | 225d69766733fdc6d9812a012a5527b2290ff47c | [
"MIT"
] | null | null | null | /**
* It receives an array of strings, integers and
* array like itself.
* Return the summary of all integers in it on * any level.
*
* @param {Array} elements
* @returns {number} summary of all integers or 0 in other cases
*/
function arraySum(elements) {
if (!Array.isArray(elements) || elements.length < 2... | 28.357143 | 66 | 0.588161 |
38542772d016ea7b807f1fca41ae5bac110dbb50 | 2,901 | php | PHP | lib/class.datasource.MultilingualNavigation.php | Solutions-Nitriques/page_lhandles | acef6189cf68eadbbcd0788398cc2a6244ec00bf | [
"MIT"
] | null | null | null | lib/class.datasource.MultilingualNavigation.php | Solutions-Nitriques/page_lhandles | acef6189cf68eadbbcd0788398cc2a6244ec00bf | [
"MIT"
] | null | null | null | lib/class.datasource.MultilingualNavigation.php | Solutions-Nitriques/page_lhandles | acef6189cf68eadbbcd0788398cc2a6244ec00bf | [
"MIT"
] | null | null | null | <?php
require_once(TOOLKIT . '/class.datasource.php');
require_once(TOOLKIT . '/data-sources/class.datasource.navigation.php');
Class MultilingualNavigationDatasource extends NavigationDatasource {
public function __buildPageXML($page, $page_types, $qf) {
$lang_code = FLang::getLangCode();
$oPage = new... | 29.01 | 145 | 0.620476 |
de13cec4f9f552710761e59aa17baccbacdd2d56 | 1,583 | dart | Dart | satsang_attendance/lib/main.dart | aakashbaranwal/flutter-authentication | 7c20d423264e8986544bfa440cdcb827e6fc18ba | [
"MIT"
] | null | null | null | satsang_attendance/lib/main.dart | aakashbaranwal/flutter-authentication | 7c20d423264e8986544bfa440cdcb827e6fc18ba | [
"MIT"
] | null | null | null | satsang_attendance/lib/main.dart | aakashbaranwal/flutter-authentication | 7c20d423264e8986544bfa440cdcb827e6fc18ba | [
"MIT"
] | null | null | null | import 'package:flutter/material.dart';
import 'package:satsang_attendance/account_setup_details.dart';
import 'package:satsang_attendance/profile.dart';
import 'package:satsang_attendance/profile_view.dart';
import 'login.dart';
import 'sign_up.dart';
import 'home_page.dart';
import 'services/auth_service.dart';
impor... | 46.558824 | 151 | 0.6753 |
732c81bb82e7c451d7240e34cee8f6f28257167b | 10,898 | asm | Assembly | ge/kernel/1pump/arch/x86/pumpcore/appmx/sw.asm | octetd/gramado | a29f13d1f49639ed984b47fcc11834176cd9ccf4 | [
"BSD-2-Clause"
] | 4 | 2020-12-18T01:32:16.000Z | 2020-12-18T14:09:05.000Z | ge/kernel/1pump/arch/x86/pumpcore/appmx/sw.asm | moneytech/gramado | 6cef2167281f4d9e93aa1c84135cc918ecb8a008 | [
"BSD-2-Clause"
] | null | null | null | ge/kernel/1pump/arch/x86/pumpcore/appmx/sw.asm | moneytech/gramado | 6cef2167281f4d9e93aa1c84135cc918ecb8a008 | [
"BSD-2-Clause"
] | 1 | 2020-12-18T14:10:37.000Z | 2020-12-18T14:10:37.000Z | ;
; File: x86/sw.inc
;
; Descri��o:
; Interrup��es de software.
; * As primeiras s�o em ordem num�rica.
; * As outras s�o gen�ricas ou especiais.
; * As interrup��es de software come�am na 48! v�o at� 255.
;
; History:
; 2015 - Created by Fred Nora.
; 2016 - Review.
;
;; #todo: deletar.
exter... | 17.162205 | 76 | 0.561571 |
e7521a56091e72a3b49e26da7626e29891be0c2a | 2,724 | php | PHP | app/Http/Controllers/Api/AuthController.php | NortonPerson/KTPM_OpenSource_Core | c7cce337878da8ea47966d9a430329b918256c8c | [
"MIT"
] | null | null | null | app/Http/Controllers/Api/AuthController.php | NortonPerson/KTPM_OpenSource_Core | c7cce337878da8ea47966d9a430329b918256c8c | [
"MIT"
] | null | null | null | app/Http/Controllers/Api/AuthController.php | NortonPerson/KTPM_OpenSource_Core | c7cce337878da8ea47966d9a430329b918256c8c | [
"MIT"
] | null | null | null | <?php
namespace App\Http\Controllers\Api;
use App\Http\Requests\Api\LoginRequest;
use App\User;
use Carbon\Carbon;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Hash;
use Tymon\JWTAuth\Facades\JWTAuth;
use Tymon\JWTAuth\Facades\JWTFactory;
use Validator;
class AuthC... | 30.606742 | 193 | 0.540015 |
5d6fe65c08f398e3f90cb09b236e570fdce17ca2 | 6,612 | cpp | C++ | Graph/10numberOfOpsToMakeNetworkConnected.cpp | Coderangshu/450DSA | fff6cee65f75e5a0bb61d5fd8d000317a7736ca3 | [
"MIT"
] | 1 | 2021-01-18T14:51:20.000Z | 2021-01-18T14:51:20.000Z | Graph/10numberOfOpsToMakeNetworkConnected.cpp | Coderangshu/450DSA | fff6cee65f75e5a0bb61d5fd8d000317a7736ca3 | [
"MIT"
] | null | null | null | Graph/10numberOfOpsToMakeNetworkConnected.cpp | Coderangshu/450DSA | fff6cee65f75e5a0bb61d5fd8d000317a7736ca3 | [
"MIT"
] | null | null | null | class Solution {
public:
// Method 1: Using adjacency matrix and DFS/BFS to traverse for each nodes
// By traversing each nodes we find the components of a graph
// then check if atleast component-1 redundant edges are present or not
// if present we return ans as component-1 as that... | 37.355932 | 86 | 0.540532 |
4ef4d8b1a1af8be443fee78f25a6ba05823fccf0 | 3,226 | cpp | C++ | cpp/varint/leveldb/varint.cpp | yyyshi/asshole_algorithm | 270460f2afcdb7a00a08979053e8cfb80ef93b5b | [
"Apache-2.0"
] | null | null | null | cpp/varint/leveldb/varint.cpp | yyyshi/asshole_algorithm | 270460f2afcdb7a00a08979053e8cfb80ef93b5b | [
"Apache-2.0"
] | null | null | null | cpp/varint/leveldb/varint.cpp | yyyshi/asshole_algorithm | 270460f2afcdb7a00a08979053e8cfb80ef93b5b | [
"Apache-2.0"
] | null | null | null | // encode
char* EncodeVarint32(char* dst, uint32_t v) {
// Operate on characters as unsigneds
uint8_t* ptr = reinterpret_cast<uint8_t*>(dst);
static const int B = 128;
if (v < (1 << 7)) {
*(ptr++) = v;
} else if (v < (1 << 14)) {
*(ptr++) = v | B;
*(ptr++) = v >> 7;
} else if (v < (1 << 21)) {
... | 26.442623 | 79 | 0.534408 |