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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8dd06b5f537a0ef25958d71cdf0307d9c122f74f | 2,957 | js | JavaScript | lib/core/shared/sdk/funnelProtocol.js | Richard-DEPIERRE/kuzzle | 67a6d403dff827ba0f9d32f5e82140ca00fcabf9 | [
"Apache-2.0"
] | 1,280 | 2015-08-25T07:49:06.000Z | 2022-03-26T06:07:15.000Z | lib/core/shared/sdk/funnelProtocol.js | Richard-DEPIERRE/kuzzle | 67a6d403dff827ba0f9d32f5e82140ca00fcabf9 | [
"Apache-2.0"
] | 2,214 | 2015-08-26T13:38:45.000Z | 2022-03-31T17:14:56.000Z | lib/core/shared/sdk/funnelProtocol.js | Richard-DEPIERRE/kuzzle | 67a6d403dff827ba0f9d32f5e82140ca00fcabf9 | [
"Apache-2.0"
] | 141 | 2015-09-17T09:53:23.000Z | 2022-03-16T07:32:30.000Z | /*
* Kuzzle, a backend software, self-hostable and ready to use
* to power modern apps
*
* Copyright 2015-2020 Kuzzle
* mailto: support AT kuzzle.io
* website: http://kuzzle.io
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.... | 27.896226 | 96 | 0.646263 |
1bed020c34bc3496a49b5f6d0d8f7eb5ce66e12b | 890 | rb | Ruby | lib/mail/gpg/rails/action_mailer_base_patch.rb | duckdalbe/mail-gpg | b21083369d46e9ad8e43aa6d561504c3a4179425 | [
"MIT"
] | 53 | 2015-01-07T03:06:52.000Z | 2021-12-16T11:21:25.000Z | lib/mail/gpg/rails/action_mailer_base_patch.rb | duckdalbe/mail-gpg | b21083369d46e9ad8e43aa6d561504c3a4179425 | [
"MIT"
] | 42 | 2015-04-25T13:46:52.000Z | 2021-07-02T20:35:03.000Z | lib/mail/gpg/rails/action_mailer_base_patch.rb | duckdalbe/mail-gpg | b21083369d46e9ad8e43aa6d561504c3a4179425 | [
"MIT"
] | 22 | 2015-05-25T12:35:41.000Z | 2021-04-13T15:54:40.000Z | require 'action_mailer/base'
module Mail
module Gpg
module Rails
module ActionMailerPatch
def self.apply
unless ActionMailer::Base < InstanceMethods
ActionMailer::Base.prepend InstanceMethods
ActionMailer::Base.singleton_class.prepend ClassMethods
end
... | 21.190476 | 67 | 0.54382 |
85197502ca6341e00d70de58b8f2cbacc989e035 | 31,041 | cs | C# | Rias/Migrations/20210530111302_UpdatedAt.Designer.cs | FenikkusuKoneko/RiasBot | 89d8d60b3107a363c4692bc04fc3a0a76409b0ff | [
"MIT"
] | 12 | 2020-05-04T05:46:18.000Z | 2021-07-26T08:32:53.000Z | Rias/Migrations/20210530111302_UpdatedAt.Designer.cs | FenikkusuNeko/RiasBot | b00d96800ca3e99b0d795392650984b4e632e735 | [
"MIT"
] | null | null | null | Rias/Migrations/20210530111302_UpdatedAt.Designer.cs | FenikkusuNeko/RiasBot | b00d96800ca3e99b0d795392650984b4e632e735 | [
"MIT"
] | 6 | 2018-04-23T21:57:36.000Z | 2019-08-12T16:26:47.000Z | // <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
using Rias.Database;
using Rias... | 41.005284 | 131 | 0.464257 |
7282e6997e080b739a0029e4befc8a2002a41fb3 | 3,939 | h | C | include/dark/polyfill.h | darkoverlordofdata/wrengame | 58a85b1fc4cacafb51780cadb694aa2b71382ec0 | [
"MIT"
] | null | null | null | include/dark/polyfill.h | darkoverlordofdata/wrengame | 58a85b1fc4cacafb51780cadb694aa2b71382ec0 | [
"MIT"
] | null | null | null | include/dark/polyfill.h | darkoverlordofdata/wrengame | 58a85b1fc4cacafb51780cadb694aa2b71382ec0 | [
"MIT"
] | null | null | null | /*******************************************************************
** This code is part of the Dark Framework.
**
MIT License
Copyright (c) 2018 Dark Overlord of Data
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to... | 24.61875 | 78 | 0.632394 |
f1fdeddaa3c0d0059438456aa011d40174182efb | 508 | rb | Ruby | lib/encryption.rb | NUBIC/nucore-open | 6fd4a8f9a380fec52b3a1c2cf147f7090a343c2d | [
"MIT"
] | null | null | null | lib/encryption.rb | NUBIC/nucore-open | 6fd4a8f9a380fec52b3a1c2cf147f7090a343c2d | [
"MIT"
] | null | null | null | lib/encryption.rb | NUBIC/nucore-open | 6fd4a8f9a380fec52b3a1c2cf147f7090a343c2d | [
"MIT"
] | null | null | null | require 'fast-aes'
require 'active_support/secure_random'
require 'base64'
module Encryption
#Basic AES symmetric encryption functions
#based on http://snippets.dzone.com/posts/show/4975
def self.encrypt(text)
aes = FastAES.new(Settings.aes_crypt_key)
salt = SecureRandom.base64(16)
Base64.encode64(... | 25.4 | 53 | 0.726378 |
1a84a1e199372b71944d65a7418368b247308d16 | 1,539 | py | Python | requests_spider/rule.py | jayvdb/requests_spider | f4aa1f21880bd49b05e7cdbfcefa5a41a082e96c | [
"MIT"
] | 5 | 2019-01-11T01:43:53.000Z | 2019-08-04T16:05:40.000Z | requests_spider/rule.py | jayvdb/requests_spider | f4aa1f21880bd49b05e7cdbfcefa5a41a082e96c | [
"MIT"
] | 1 | 2020-01-31T03:57:59.000Z | 2020-02-02T07:15:59.000Z | requests_spider/rule.py | jayvdb/requests_spider | f4aa1f21880bd49b05e7cdbfcefa5a41a082e96c | [
"MIT"
] | 2 | 2019-08-04T16:05:39.000Z | 2020-01-31T03:06:22.000Z | import re
from lxml.etree import ParserError
from requests_spider.request import Request
from requests_spider.const import mk_link
from requests_spider.response import Response
class Rule(Request):
def __init__(self, rule, **kwargs):
super().__init__(url=None, **kwargs)
self.rule = rule
def r... | 29.037736 | 93 | 0.647823 |
c6e4bb86615aaa97f8c7ad9c74a964755861c182 | 100 | css | CSS | resources/styles.css | scott-morris/fitbit-obs-switcher | c78acdd6dba3cebfc8399a8b89f0bce12225d827 | [
"Apache-2.0"
] | null | null | null | resources/styles.css | scott-morris/fitbit-obs-switcher | c78acdd6dba3cebfc8399a8b89f0bce12225d827 | [
"Apache-2.0"
] | 2 | 2022-01-22T13:06:51.000Z | 2022-02-13T17:46:44.000Z | resources/styles.css | scott-morris/fitbit-obs-switcher | c78acdd6dba3cebfc8399a8b89f0bce12225d827 | [
"Apache-2.0"
] | null | null | null | .background {
viewport-fill: black;
}
.medium-copy-bold {
fill: white;
text-anchor: middle;
} | 12.5 | 23 | 0.66 |
05a137a8fd209e4387eaca7b5418642531cea440 | 2,832 | py | Python | data/excape/make.py | ExaScience/smurff | 29c3859badca49275833024cd77f8ca7fa6f76be | [
"MIT"
] | 65 | 2017-06-23T14:01:58.000Z | 2022-03-10T16:13:48.000Z | data/excape/make.py | ExaScience/smurff | 29c3859badca49275833024cd77f8ca7fa6f76be | [
"MIT"
] | 143 | 2017-08-11T10:43:52.000Z | 2021-09-23T17:07:51.000Z | data/excape/make.py | ExaScience/smurff | 29c3859badca49275833024cd77f8ca7fa6f76be | [
"MIT"
] | 14 | 2018-05-17T18:33:28.000Z | 2021-12-23T20:41:32.000Z | import requests
import os
from hashlib import sha256
def download_file_from_google_drive(id, destination):
URL = "https://docs.google.com/uc?export=download"
trainSession = requests.TrainSession()
response = trainSession.get(URL, params = { 'id' : id }, stream = True)
token = get_confirm_token(respon... | 30.782609 | 83 | 0.609463 |
8511387adf40248bb856f1e7773980b4df1ea99e | 1,114 | cs | C# | source/Tools/TeachAppMaker/Commands/EditCommands.cs | LigangSun/AppCenter | b3f81e836ab2f4276cae33e5a2367752f3c3b050 | [
"MIT"
] | null | null | null | source/Tools/TeachAppMaker/Commands/EditCommands.cs | LigangSun/AppCenter | b3f81e836ab2f4276cae33e5a2367752f3c3b050 | [
"MIT"
] | null | null | null | source/Tools/TeachAppMaker/Commands/EditCommands.cs | LigangSun/AppCenter | b3f81e836ab2f4276cae33e5a2367752f3c3b050 | [
"MIT"
] | null | null | null | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SoonLearning.TeachAppMaker.Commands
{
public class EditCommands
{
public static readonly AddQuestionCommand AddQuestionCommand;
public static readonly AddSubQuestionCommand AddSubQuestionCommand;
... | 37.133333 | 75 | 0.716338 |
a9f29c82d01c77278f50c8181c2195d68235ca3d | 16,834 | php | PHP | admin/functions/functions.options.php | rodrigosady/redemindfulness | 1b21ef91822be43471d1285ffc7919efbaa64fb8 | [
"CC0-1.0"
] | null | null | null | admin/functions/functions.options.php | rodrigosady/redemindfulness | 1b21ef91822be43471d1285ffc7919efbaa64fb8 | [
"CC0-1.0"
] | null | null | null | admin/functions/functions.options.php | rodrigosady/redemindfulness | 1b21ef91822be43471d1285ffc7919efbaa64fb8 | [
"CC0-1.0"
] | null | null | null | <?php
add_action('init','of_options');
if (!function_exists('of_options'))
{
function of_options()
{
//Access the WordPress Categories via an Array
$of_categories = array();
$of_categories_obj = get_categories('hide_empty=0');
foreach ($of_categories_obj as $of_cat) {
$of_categories[$of_cat->cat_ID]... | 33.007843 | 259 | 0.488892 |
6c8ca32c26f0491266fb492168f1be9d696d0565 | 660 | asm | Assembly | oeis/100/A100070.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/100/A100070.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/100/A100070.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A100070: Number a(n) of forests with two components in the complete bipartite graph K_{n,n}.
; Submitted by Christian Krause
; 6,117,5632,515625,77262336,17230990189,5360119185408,2219048868131217,1180000000000000000,783948341202404638821,636404158746280870281216,619884903445287035295372217,71355233349273848795874145... | 50.769231 | 453 | 0.865152 |
6dffe7ab5ca88db5d18c187d3f0b9f63f59fe2ec | 559 | tsx | TypeScript | src/containers/Stage/index.tsx | laihaibo/vite-react-starter-kit | f06e3e7220e598c43f425292a6d1366f71c38420 | [
"MIT"
] | null | null | null | src/containers/Stage/index.tsx | laihaibo/vite-react-starter-kit | f06e3e7220e598c43f425292a6d1366f71c38420 | [
"MIT"
] | null | null | null | src/containers/Stage/index.tsx | laihaibo/vite-react-starter-kit | f06e3e7220e598c43f425292a6d1366f71c38420 | [
"MIT"
] | null | null | null | // eslint-disable-next-line no-use-before-define
import React from "react";
import { useLocalStore, observer } from "mobx-react";
import { Button } from "zarm";
import uiStore from "../../stores/uiStore";
import styles from "./index.module.css";
// 使用uselocalstore
function Index() {
const store = useLocalStore(() =... | 23.291667 | 64 | 0.647585 |
9b119b8de4f4a48a717d49b852679e7ae700423a | 2,355 | sql | SQL | imgUploader.sql | 6i9er/imgUploader | 97d82bd1c0c3ed555cd17477fe99bd6ce6c77e20 | [
"MIT"
] | null | null | null | imgUploader.sql | 6i9er/imgUploader | 97d82bd1c0c3ed555cd17477fe99bd6ce6c77e20 | [
"MIT"
] | null | null | null | imgUploader.sql | 6i9er/imgUploader | 97d82bd1c0c3ed555cd17477fe99bd6ce6c77e20 | [
"MIT"
] | null | null | null | -- phpMyAdmin SQL Dump
-- version 4.0.10deb1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Jun 08, 2016 at 07:09 PM
-- Server version: 5.5.49-0ubuntu0.14.04.1
-- PHP Version: 5.5.9-1ubuntu4.17
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_C... | 42.053571 | 108 | 0.685775 |
15ddc700dde5759ab9011cb9225d957441d12d45 | 653 | sql | SQL | microservices-2/tracks3.sql | beaubadilla/cpsc449_backend_engineering | 0edf216d76bb46482a90fcce58b921a2aaa9e26c | [
"CNRI-Python",
"RSA-MD",
"Xnet",
"blessing",
"X11"
] | null | null | null | microservices-2/tracks3.sql | beaubadilla/cpsc449_backend_engineering | 0edf216d76bb46482a90fcce58b921a2aaa9e26c | [
"CNRI-Python",
"RSA-MD",
"Xnet",
"blessing",
"X11"
] | null | null | null | microservices-2/tracks3.sql | beaubadilla/cpsc449_backend_engineering | 0edf216d76bb46482a90fcce58b921a2aaa9e26c | [
"CNRI-Python",
"RSA-MD",
"Xnet",
"blessing",
"X11"
] | null | null | null | -- $ sqlite3 tracks3.db < sqlite.sql
BEGIN TRANSACTION;
DROP TABLE IF EXISTS "Track";
CREATE TABLE "Track" (
"TrackId" GUID,
"TrackName" NVARCHAR(200) NOT NULL,
"Album" NVARCHAR(220) NOT NULL,
"Artist" NVARCHAR(220),
"Length" INTEGER NOT NULL,
"Url"... | 31.095238 | 189 | 0.6049 |
1e413e65535e5b6b56ed600d35f06cc628e89ad7 | 14 | lua | Lua | resources/words/vve.lua | terrabythia/alfabeter | da422481ba223ebc6c4ded63fed8f75605193d44 | [
"MIT"
] | null | null | null | resources/words/vve.lua | terrabythia/alfabeter | da422481ba223ebc6c4ded63fed8f75605193d44 | [
"MIT"
] | null | null | null | resources/words/vve.lua | terrabythia/alfabeter | da422481ba223ebc6c4ded63fed8f75605193d44 | [
"MIT"
] | null | null | null | return {'vve'} | 14 | 14 | 0.642857 |
e7a86829fad01956fcbeddc9a40b2163974c58bb | 569 | css | CSS | assets/css/style.css | klwidmer/Crystal-Game | c4ec09ca532638a194c03c2d848859d5123838d5 | [
"MIT"
] | null | null | null | assets/css/style.css | klwidmer/Crystal-Game | c4ec09ca532638a194c03c2d848859d5123838d5 | [
"MIT"
] | null | null | null | assets/css/style.css | klwidmer/Crystal-Game | c4ec09ca532638a194c03c2d848859d5123838d5 | [
"MIT"
] | null | null | null | /* @media (max-width : 768,980,1024px) {
} */
.jumbotron {
block-size: 15em;
}
ul {
text-align: left;
margin-left: auto;
}
h1 {
text-align: center;
font: bold;
}
body {
margin-left: 2em;
margin-right: 2em;
background: url(assets\images\crystalThree.jpg);
}
#border {
bac... | 13.878049 | 52 | 0.585237 |
3bc8aeb0eda99ea7388200c3b19d32c7335b1b8c | 15,698 | sql | SQL | sql/Financeiro/MENU.sql | crosiersource/crosierapp-radx | 252114671fa33a6742e29b6631528a988b606b1a | [
"MIT"
] | null | null | null | sql/Financeiro/MENU.sql | crosiersource/crosierapp-radx | 252114671fa33a6742e29b6631528a988b606b1a | [
"MIT"
] | 10 | 2020-05-08T03:13:54.000Z | 2022-03-24T13:18:47.000Z | sql/Financeiro/MENU.sql | crosiersource/crosierapp-radx | 252114671fa33a6742e29b6631528a988b606b1a | [
"MIT"
] | null | null | null | START TRANSACTION;
SET FOREIGN_KEY_CHECKS = 0;
--
--
-- Entrada no menu do crosier-core
DELETE
FROM cfg_entmenu
WHERE uuid = '189dd86e-f806-4f96-8d5e-2a3e388c6976';
INSERT INTO cfg_entmenu(uuid, label, icon, tipo, app_uuid, url, roles, pai_uuid, ordem, css_style, inserted, updated,
estabeleci... | 48.903427 | 202 | 0.68754 |
4d5ca4dd9b60a07d30bf7380209d56a5c766799f | 628 | cs | C# | src/AdoNet/Orleans.Persistence.AdoNet/Storage/Provider/OrleansDefaultHasher.cs | JohnDebono/orleans | 0c90d286f92a0e26b2b85b5da34350ef1dc79def | [
"MIT"
] | 9,108 | 2015-01-23T18:24:16.000Z | 2022-03-31T15:40:52.000Z | src/AdoNet/Orleans.Persistence.AdoNet/Storage/Provider/OrleansDefaultHasher.cs | JohnDebono/orleans | 0c90d286f92a0e26b2b85b5da34350ef1dc79def | [
"MIT"
] | 5,728 | 2015-01-24T01:18:32.000Z | 2022-03-31T23:56:27.000Z | src/AdoNet/Orleans.Persistence.AdoNet/Storage/Provider/OrleansDefaultHasher.cs | JohnDebono/orleans | 0c90d286f92a0e26b2b85b5da34350ef1dc79def | [
"MIT"
] | 2,491 | 2015-01-23T18:33:35.000Z | 2022-03-30T16:42:55.000Z | namespace Orleans.Storage
{
/// <summary>
/// A default implementation uses the same hash as Orleans in grains placement.
/// </summary>
public class OrleansDefaultHasher: IHasher
{
/// <summary>
/// <see cref="IHasher.Description"/>
/// </summary>
public string Desc... | 27.304348 | 107 | 0.557325 |
f4811ec3f619aeecfea197bb48ec306250a24a71 | 132 | ts | TypeScript | src/components/index.ts | wyze/matching-game | c7181ab8fd1e9dc7bd87313155533e22bd5e6828 | [
"MIT"
] | 1 | 2020-11-29T19:11:21.000Z | 2020-11-29T19:11:21.000Z | src/components/index.ts | wyze/matching-game | c7181ab8fd1e9dc7bd87313155533e22bd5e6828 | [
"MIT"
] | null | null | null | src/components/index.ts | wyze/matching-game | c7181ab8fd1e9dc7bd87313155533e22bd5e6828 | [
"MIT"
] | null | null | null | export * from './Button'
export * from './DifficultyToggle'
export * from './Card'
export * from './Runtime'
export * from './Text'
| 22 | 34 | 0.659091 |
b324c79cd98921c815f04a727084794ebb033708 | 2,147 | py | Python | kafka-twitter-producer.py | coti92/spark-streaming-twitter-kafka-master | 007b6da6dc2a3a515c57b20fe6d3c63096540321 | [
"MIT"
] | null | null | null | kafka-twitter-producer.py | coti92/spark-streaming-twitter-kafka-master | 007b6da6dc2a3a515c57b20fe6d3c63096540321 | [
"MIT"
] | null | null | null | kafka-twitter-producer.py | coti92/spark-streaming-twitter-kafka-master | 007b6da6dc2a3a515c57b20fe6d3c63096540321 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# import required libraries
from kafka import SimpleProducer, KafkaClient
from tweepy.streaming import StreamListener
from tweepy import OAuthHandler
from tweepy import Stream
# Twitter keys
consumer_key = 'HxTwHU4NS9ozBy5umXh5Y0VYv'
consumer_secret = 'gnlrkkoYNUNZT2B2sshoVIvfkjvRRosI7DWcLNlZ89... | 43.816327 | 693 | 0.755939 |
aac7edb2dd0f4da3ad6a76d0d125d105d3e9b8a7 | 3,338 | lua | Lua | Lua/Menu/MainMenu/mainMenuStyle.lua | andeandr100/Crumbled-World | e5dc7a3bb0f1b75045171998f1771c58d80d65f3 | [
"MIT"
] | 5 | 2017-03-13T12:22:23.000Z | 2017-07-23T14:23:20.000Z | Lua/Menu/MainMenu/mainMenuStyle.lua | andeandr100/Crumbled-World | e5dc7a3bb0f1b75045171998f1771c58d80d65f3 | [
"MIT"
] | null | null | null | Lua/Menu/MainMenu/mainMenuStyle.lua | andeandr100/Crumbled-World | e5dc7a3bb0f1b75045171998f1771c58d80d65f3 | [
"MIT"
] | null | null | null | --this = SceneNode()
MainMenuStyle = {}
MainMenuStyle.borderColor = Vec4(Vec3(0.45), 1.0)
MainMenuStyle.borderSize = 0.00135
MainMenuStyle.backgroundTopColor = Vec4(0,0,0,0.7)
MainMenuStyle.backgroundDownColor = Vec4(0,0,0,0.5)
MainMenuStyle.textColor = Vec3(0.7)
MainMenuStyle.textColorHighLighted = Vec3(0.92)
languag... | 34.061224 | 104 | 0.776213 |
8da7d242270ff1bfc4db46ae5ac0228556310030 | 1,867 | js | JavaScript | __tests__/flatten.js | alextoudic/conductor | 5fd7078ba9722a788470e6d9a0c10368d3b89c49 | [
"MIT"
] | 56 | 2018-02-26T09:31:30.000Z | 2020-01-15T09:17:56.000Z | __tests__/flatten.js | alextoudic/conductor | 5fd7078ba9722a788470e6d9a0c10368d3b89c49 | [
"MIT"
] | 102 | 2018-03-08T20:06:03.000Z | 2021-06-29T05:46:49.000Z | __tests__/flatten.js | alextoudic/conductor | 5fd7078ba9722a788470e6d9a0c10368d3b89c49 | [
"MIT"
] | 7 | 2018-03-10T12:29:32.000Z | 2019-08-08T19:45:27.000Z | const flatten = require('../src/flatten')
const array = [1, 2, 3]
const nestedArray = [1, [2, 3]]
const deepNestedArray = [1, [2, [3]]]
const object = { a: 1, b: 2, c: 3 }
const nestedObject = { a: { b: 2, c: 3 } }
const deepNestedObject = { a: { b: { c: 3 } } }
const set = new Set(array)
const nestedSet = new Set([... | 27.455882 | 77 | 0.591859 |
980a72fccef645cb19598fdd874c51d1fe85d79a | 7,654 | py | Python | step84_data/POD_imports.py | acse-hg2917/DDGAN_buildings | 91a6fbc74819e94f7b31a2d6b3fdbb3fa4959eba | [
"MIT"
] | null | null | null | step84_data/POD_imports.py | acse-hg2917/DDGAN_buildings | 91a6fbc74819e94f7b31a2d6b3fdbb3fa4959eba | [
"MIT"
] | null | null | null | step84_data/POD_imports.py | acse-hg2917/DDGAN_buildings | 91a6fbc74819e94f7b31a2d6b3fdbb3fa4959eba | [
"MIT"
] | null | null | null | #%%
import numpy as np
import matplotlib.pyplot as plt
from sklearn.metrics import mean_squared_error
# from nirom_dd_orig import plot_starshape
save_bf = False
snapshots_matrix_1 = np.load('snapshots/snapshots_pod_0709.npy')
snapshots_matrix_2 = np.load('snapshots/snapshots_pod.npy')
snapshots_matrix = np.concatenat... | 33.134199 | 107 | 0.70682 |
c4f71328bc68fc79f731aa6cb23abc7869f33e4d | 400 | cpp | C++ | practice/algorithms/birthday-cake-candles.cpp | geezardo/hackerrank | c3dd829ba803bd21ec3f432f419e40415cf6a6a8 | [
"MIT"
] | null | null | null | practice/algorithms/birthday-cake-candles.cpp | geezardo/hackerrank | c3dd829ba803bd21ec3f432f419e40415cf6a6a8 | [
"MIT"
] | null | null | null | practice/algorithms/birthday-cake-candles.cpp | geezardo/hackerrank | c3dd829ba803bd21ec3f432f419e40415cf6a6a8 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define endl '\n'
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int n;
cin >> n;
vector<int> a (n);
for (int i = 0; i < n; i++) cin >> a[i];
sort(a.begin(), a.end());
auto lb = lower_bound(a.begin(), a.end(), a[n - 1]);
int sum = 0;
for (au... | 14.814815 | 54 | 0.5175 |
c4c4e01696c18cdeaa7407ac894763a2ce5802da | 3,552 | hpp | C++ | apps/Cocles/old_src/ledger/internal/Database.hpp | tybl/tybl | cc74416d3d982177d46b89c0ca44f3a8e1cf00d6 | [
"Unlicense"
] | 1 | 2022-02-11T21:25:53.000Z | 2022-02-11T21:25:53.000Z | apps/Cocles/old_src/ledger/internal/Database.hpp | tybl/tybl | cc74416d3d982177d46b89c0ca44f3a8e1cf00d6 | [
"Unlicense"
] | 15 | 2021-08-21T13:41:29.000Z | 2022-03-08T14:13:43.000Z | apps/Cocles/old_src/ledger/internal/Database.hpp | tybl/tybl | cc74416d3d982177d46b89c0ca44f3a8e1cf00d6 | [
"Unlicense"
] | null | null | null | // License: The Unlicense (https://unlicense.org)
#ifndef COCLES_LEDGER_INTERNAL_DATABASE_HPP
#define COCLES_LEDGER_INTERNAL_DATABASE_HPP
#include "AccountEntry.hpp"
#include "AccountTypeEntry.hpp"
#include "AdjustmentEntry.hpp"
#include "FilteredTableView.hpp"
#include "RecordKeeper.hpp"
#include "TransactionEntry.hp... | 33.509434 | 99 | 0.798142 |
df5ec6bf287d829339eb7b6c87ec00114b1a187f | 894 | cs | C# | Swindom/Swindom/Source/Settings/HotkeyInformation.cs | FreeEcho1/Swindom | 54627a8e12e6a793546a1e712ba16777ef0b653f | [
"MIT"
] | null | null | null | Swindom/Swindom/Source/Settings/HotkeyInformation.cs | FreeEcho1/Swindom | 54627a8e12e6a793546a1e712ba16777ef0b653f | [
"MIT"
] | null | null | null | Swindom/Swindom/Source/Settings/HotkeyInformation.cs | FreeEcho1/Swindom | 54627a8e12e6a793546a1e712ba16777ef0b653f | [
"MIT"
] | null | null | null | namespace Swindom.Source.Settings
{
/// <summary>
/// 「ホットキー」機能の情報
/// </summary>
public class HotkeyInformation
{
/// <summary>
/// 処理状態 (無効「false」/有効「true」)
/// </summary>
public bool Enabled = false;
/// <summary>
/// 画面外に出る場合は位置やサイズを変更... | 29.8 | 85 | 0.525727 |
32670496faff12569f9b70e81b7e89c83683d658 | 4,304 | kt | Kotlin | app/src/main/java/io/exzocoin/wallet/modules/market/home/MarketHomeFragment.kt | rexdev0211/exzo-android-wallet-main | 1ed5d80490ecf1574499cafa5aad922c4ea9a362 | [
"MIT"
] | null | null | null | app/src/main/java/io/exzocoin/wallet/modules/market/home/MarketHomeFragment.kt | rexdev0211/exzo-android-wallet-main | 1ed5d80490ecf1574499cafa5aad922c4ea9a362 | [
"MIT"
] | null | null | null | app/src/main/java/io/exzocoin/wallet/modules/market/home/MarketHomeFragment.kt | rexdev0211/exzo-android-wallet-main | 1ed5d80490ecf1574499cafa5aad922c4ea9a362 | [
"MIT"
] | null | null | null | package io.exzocoin.wallet.modules.market.home
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.viewModels
import androidx.recyclerview.widget.ConcatAdapter
import io.exzocoin.wallet.R
import io.exzoc... | 40.603774 | 125 | 0.709572 |
a47a40e468881341ec4b48e8d8f1fd3a55334b63 | 979 | php | PHP | Helpers/NavItem.php | pennline/html | b7e3fefa335335858882dd69a4ee728a4c8e5a98 | [
"MIT"
] | null | null | null | Helpers/NavItem.php | pennline/html | b7e3fefa335335858882dd69a4ee728a4c8e5a98 | [
"MIT"
] | null | null | null | Helpers/NavItem.php | pennline/html | b7e3fefa335335858882dd69a4ee728a4c8e5a98 | [
"MIT"
] | null | null | null | <?php
namespace Pennline\Html\Helpers;
class NavItem {
/**
* @var string
*/
public $href;
/**
* @var string
*/
public $page;
/**
* @var string
*/
public $title;
/**
* @param array $item
*/
public function __construct( $item = array() ) {
$this->init();
$this->populate( $item );
}
pro... | 17.175439 | 71 | 0.560776 |
c6c2fcceff553d17c4d0292f5512365bcfb675c5 | 212 | css | CSS | src/main/webapp/css/housing.css | juliepwchen/PACT | decb30fdc379cc1218a6de4d9a58dffb758bb6be | [
"MIT"
] | 1 | 2020-03-05T20:25:38.000Z | 2020-03-05T20:25:38.000Z | src/main/webapp/css/housing.css | juliepwchen/PACT | decb30fdc379cc1218a6de4d9a58dffb758bb6be | [
"MIT"
] | null | null | null | src/main/webapp/css/housing.css | juliepwchen/PACT | decb30fdc379cc1218a6de4d9a58dffb758bb6be | [
"MIT"
] | null | null | null | .nav, .pagination, .carousel, .panel-title a {
cursor: pointer;
}
.panel-default > .panel-heading {
background-color: #7FE5CC;
text-align: center;
font-size: 12px;
}
ul.u {
list-style-type: none;
}
| 15.142857 | 46 | 0.646226 |
c3f000e008ecf2075a366084fa316df79c113454 | 1,271 | cs | C# | src/NnCase.CodeGen/Operators/StridedSlice.cs | dotnetGame/nncase | 09d40c6a9194542bb5a5fc2b8c74e0e8ed193486 | [
"Apache-2.0"
] | 11 | 2018-04-04T17:03:46.000Z | 2020-11-26T08:54:58.000Z | src/NnCase.CodeGen/Operators/StridedSlice.cs | dotnetGame/nncase | 09d40c6a9194542bb5a5fc2b8c74e0e8ed193486 | [
"Apache-2.0"
] | null | null | null | src/NnCase.CodeGen/Operators/StridedSlice.cs | dotnetGame/nncase | 09d40c6a9194542bb5a5fc2b8c74e0e8ed193486 | [
"Apache-2.0"
] | null | null | null | using System;
using System.Collections.Generic;
using System.Text;
using NnCase.Evaluation;
using NnCase.Evaluation.Operators;
using NnCase.IR;
using NnCase.IR.Operators;
using NnCase.Runtime.Operators;
namespace NnCase.CodeGen.Operators
{
internal static partial class DefaultEmitters
{
private static... | 32.589744 | 74 | 0.505901 |
7af468b3b84a22b573f1dc5d31d5b5d06225788c | 1,598 | cs | C# | src/VendingMachine/DataAccess/Queries/ShowVendingMachineQuery.cs | DrunkyBard/VendingMachine | 0c48a3df9ecdf90ab4efcad4972c9ae8156c76b1 | [
"MIT"
] | null | null | null | src/VendingMachine/DataAccess/Queries/ShowVendingMachineQuery.cs | DrunkyBard/VendingMachine | 0c48a3df9ecdf90ab4efcad4972c9ae8156c76b1 | [
"MIT"
] | null | null | null | src/VendingMachine/DataAccess/Queries/ShowVendingMachineQuery.cs | DrunkyBard/VendingMachine | 0c48a3df9ecdf90ab4efcad4972c9ae8156c76b1 | [
"MIT"
] | null | null | null | using System.Linq;
using VendingMachineApp.DataAccess.EF;
using VendingMachineApp.DataAccess.Entities;
using VendingMachineApp.Models;
namespace VendingMachineApp.DataAccess.Queries
{
public sealed class ShowVendingMachineQuery
{
public VendingMachineViewModel Ask()
{
using (var db... | 34 | 78 | 0.463705 |
b1006b6718db945a22535933aaea8a2aa65f4eb2 | 961 | sql | SQL | fuel/app/databases/ddl/20180511191300_LASHIC-34.sql | binh-lashic/lashic-care-web | 6c8d50c371eabdd3980318eb0b66fbe9cb525f43 | [
"MIT"
] | null | null | null | fuel/app/databases/ddl/20180511191300_LASHIC-34.sql | binh-lashic/lashic-care-web | 6c8d50c371eabdd3980318eb0b66fbe9cb525f43 | [
"MIT"
] | null | null | null | fuel/app/databases/ddl/20180511191300_LASHIC-34.sql | binh-lashic/lashic-care-web | 6c8d50c371eabdd3980318eb0b66fbe9cb525f43 | [
"MIT"
] | null | null | null | SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[nurse_call_data_daily](
[id] [int] IDENTITY (1, 1) NOT NULL,
[sensor_name] [nvarchar](255) NOT NULL,
[status] [int] NOT NULL,
[measurement_time] [datetime] NOT NULL,
[created_at] [datetime] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[nurse_cal... | 28.264706 | 115 | 0.756504 |
f449997000fd0a3e7dbf3c70e9350139b71da7a0 | 2,202 | ts | TypeScript | packages/server/src/service/contact/search.ts | ccardozov/mail-my-ballot | d5e8d62e30ffcfb04ba27464dd3c300a3756c972 | [
"Apache-2.0"
] | null | null | null | packages/server/src/service/contact/search.ts | ccardozov/mail-my-ballot | d5e8d62e30ffcfb04ba27464dd3c300a3756c972 | [
"Apache-2.0"
] | 6 | 2020-05-26T23:46:25.000Z | 2020-05-27T04:54:19.000Z | packages/server/src/service/contact/search.ts | ythecombinator/mail-my-ballot | 5efbd96a21301a990d7b0850cf171cfd59c29f7e | [
"Apache-2.0"
] | null | null | null | import { Locale, AvailableState } from "../../common"
import { normalizeLocale } from "./normalize"
const citySuffixes = (suffixes: string[], city: string): string[] => {
if (suffixes.some(suffix => city.endsWith(suffix))) {
return [city]
}
return [city, ...suffixes.map(suffix => city + suffix)]
}
/* add in... | 29.756757 | 95 | 0.638965 |
24bfb64b49a7718dadbfdba353dead018489d4bc | 4,625 | php | PHP | www/lib/FileLog.class.php | hyeonseok/pajet | 6d7be444bbc086c031bfc4d09207beadb2bf343c | [
"MIT"
] | 2 | 2017-09-06T05:30:35.000Z | 2021-03-24T05:44:38.000Z | www/lib/FileLog.class.php | hyeonseok/pajet | 6d7be444bbc086c031bfc4d09207beadb2bf343c | [
"MIT"
] | 1 | 2018-07-03T02:49:57.000Z | 2018-07-03T02:49:57.000Z | www/lib/FileLog.class.php | hyeonseok/pajet | 6d7be444bbc086c031bfc4d09207beadb2bf343c | [
"MIT"
] | 1 | 2017-06-28T13:40:30.000Z | 2017-06-28T13:40:30.000Z | <?php
/**
* Stores array data in simple tsv like file format.
* Retrives data by range, date, keyword search.
*/
class FileLog {
private $structure;
private $file_name;
public function __construct($file_name, $structure = null, $overwrite = false) {
date_default_timezone_set('Asia/Seoul');
$this->file_name... | 25.412088 | 121 | 0.583351 |
ed0cedf0de41fa9592ce0a32807c986f8c4fd845 | 2,087 | h | C | src/include/RingBufferWriter.h | nemo110110/RingBuffers | 9c4906a892314bcfeddd8fc6e847031f039fa995 | [
"MIT"
] | null | null | null | src/include/RingBufferWriter.h | nemo110110/RingBuffers | 9c4906a892314bcfeddd8fc6e847031f039fa995 | [
"MIT"
] | null | null | null | src/include/RingBufferWriter.h | nemo110110/RingBuffers | 9c4906a892314bcfeddd8fc6e847031f039fa995 | [
"MIT"
] | 1 | 2021-11-20T11:07:12.000Z | 2021-11-20T11:07:12.000Z | #ifndef RINGBUFFERWRITER_H
#define RINGBUFFERWRITER_H
#include "ARingBufferWriter.h"
template<class T> class RingBuffer;
template<class T> class RingBufferReader;
template<class T>
class RingBufferWriter : public ARingBufferWriter<T>
{
friend class RingBuffer<T>;
friend class RingBufferReader<T>;
priv... | 26.0875 | 125 | 0.669861 |
3c00898793b1874268eaec1eabf198a9dc7c30e8 | 514 | lua | Lua | gamemode/player_class/player_spectator.lua | MattJeanes/ObjHunt | 0c98cdfa3bd519d84ba6b4c3fab1dc747958e896 | [
"Apache-2.0"
] | 16 | 2015-03-23T04:34:07.000Z | 2021-08-16T01:18:12.000Z | gamemode/player_class/player_spectator.lua | MattJeanes/ObjHunt | 0c98cdfa3bd519d84ba6b4c3fab1dc747958e896 | [
"Apache-2.0"
] | 33 | 2015-03-10T21:40:03.000Z | 2020-03-22T07:09:40.000Z | gamemode/player_class/player_spectator.lua | MattJeanes/ObjHunt | 0c98cdfa3bd519d84ba6b4c3fab1dc747958e896 | [
"Apache-2.0"
] | 18 | 2015-01-11T00:07:59.000Z | 2021-09-06T12:33:48.000Z | DEFINE_BASECLASS( "player_default" )
local PLAYER = {}
--
-- See gamemodes/base/player_class/player_default.lua for all overridable variables
--
PLAYER.DisplayName = "Spectator"
PLAYER.SetObserverMode = 6
PLAYER.CanUseFlashlight = false
PLAYER.AvoidPlayers = false
PLAYER.lastTaunt = 0.0
function PLAY... | 22.347826 | 83 | 0.764591 |
0a52ffc56e048d37aae59bdd20ee65a57cc29015 | 3,539 | cs | C# | Xal/Extensions/RandomExtensions.cs | alexandretperez/Xal | c72ef1994ff60d245d017a3ab081e41d7c94747e | [
"MIT"
] | 2 | 2019-04-01T15:00:17.000Z | 2022-03-01T20:36:37.000Z | Xal/Extensions/RandomExtensions.cs | alexandretperez/Xal | c72ef1994ff60d245d017a3ab081e41d7c94747e | [
"MIT"
] | null | null | null | Xal/Extensions/RandomExtensions.cs | alexandretperez/Xal | c72ef1994ff60d245d017a3ab081e41d7c94747e | [
"MIT"
] | 1 | 2020-06-25T12:22:02.000Z | 2020-06-25T12:22:02.000Z | using System;
using System.Collections.Generic;
namespace Xal.Extensions
{
/// <summary>
/// Provides extension methods for <see cref="Random"/> objects.
/// </summary>
public static class RandomExtensions
{
/// <summary>
/// Generates a random string with the specified <paramref n... | 44.2375 | 136 | 0.587737 |
54eb79b71335eed178a2c984e87ee4b527d44c31 | 6,292 | cc | C++ | chromium/chrome/browser/external_extension_browsertest.cc | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | chromium/chrome/browser/external_extension_browsertest.cc | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | chromium/chrome/browser/external_extension_browsertest.cc | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <stddef.h>
#include "base/command_line.h"
#include "base/macros.h"
#include "base/prefs/pref_service.h"
#include "base/strings/string_util.h... | 37.903614 | 80 | 0.706135 |
cfab50d327446117bb01cefb5f39f0f426f13e75 | 1,169 | dart | Dart | geography/lib/src/countries/anguilla.dart | GioCirque/dart-pub | 44ae54c0cb6260d2ce3a1758f3fec080f1fa4556 | [
"BSD-3-Clause"
] | 2 | 2022-01-17T15:16:08.000Z | 2022-01-19T13:27:19.000Z | geography/lib/src/countries/anguilla.dart | GioCirque/pub-dev | 44ae54c0cb6260d2ce3a1758f3fec080f1fa4556 | [
"BSD-3-Clause"
] | null | null | null | geography/lib/src/countries/anguilla.dart | GioCirque/pub-dev | 44ae54c0cb6260d2ce3a1758f3fec080f1fa4556 | [
"BSD-3-Clause"
] | null | null | null | /// Access to known geographies in Anguilla and their meta data.
///
/// NOTICE: This file is auto-generated and should not be changed manually.
import '../base.dart';
/// The country of `🇦🇮 Anguilla`, and its 0 states
const Country anguilla = Country(
id: 8,
name: "Anguilla",
longitude: -63.16666666,
... | 23.857143 | 75 | 0.528657 |
650fea2f66a943f61a7df67af06d5e7c6c5c9522 | 418 | sql | SQL | egov/egov-tl/src/main/resources/db/migration/main/V20170704142131__tl_roleaction_view_dcb.sql | getwasim/egov-smartcity-suites-test | 361238c743d046080d66b7fcbe44673a8a784be2 | [
"MIT"
] | 1 | 2019-07-25T12:44:57.000Z | 2019-07-25T12:44:57.000Z | egov/egov-tl/src/main/resources/db/migration/main/V20170704142131__tl_roleaction_view_dcb.sql | getwasim/egov-smartcity-suites-test | 361238c743d046080d66b7fcbe44673a8a784be2 | [
"MIT"
] | 13 | 2020-03-05T00:01:16.000Z | 2022-02-09T22:58:42.000Z | egov/egov-tl/src/main/resources/db/migration/main/V20170704142131__tl_roleaction_view_dcb.sql | getwasim/egov-smartcity-suites-test | 361238c743d046080d66b7fcbe44673a8a784be2 | [
"MIT"
] | 1 | 2021-02-22T21:09:08.000Z | 2021-02-22T21:09:08.000Z | insert into eg_roleaction values ((select id from eg_role where name='TLCreator'),(select id from eg_action where url like '/dcb/view'));
insert into eg_roleaction values ((select id from eg_role where name='TLApprover'),(select id from eg_action where url like '/dcb/view'));
insert into eg_roleaction values ((select i... | 104.5 | 140 | 0.767943 |
865e4970b3449f2ad7601d2c87ee4d836df3eb3a | 8,546 | lua | Lua | Lua/Libraries/CYK/TPBar.lua | flxLumyni/CreateYourKris | 6400e3639c4c0ec80869818cc5c9d7ddd4e8d73d | [
"BSD-3-Clause"
] | 30 | 2019-03-09T17:39:27.000Z | 2022-01-07T20:13:44.000Z | Lua/Libraries/CYK/TPBar.lua | flxLumyni/CreateYourKris | 6400e3639c4c0ec80869818cc5c9d7ddd4e8d73d | [
"BSD-3-Clause"
] | 13 | 2019-02-03T05:52:02.000Z | 2021-11-29T15:36:58.000Z | Lua/Libraries/CYK/TPBar.lua | flxLumyni/CreateYourKris | 6400e3639c4c0ec80869818cc5c9d7ddd4e8d73d | [
"BSD-3-Clause"
] | 15 | 2019-03-25T20:23:15.000Z | 2022-02-15T18:59:43.000Z | return function(CreateYourKris)
-- TP bar and info
local self = { }
self.CreateYourKris = CreateYourKris -- CYK core
self.ySize = 187 -- Y size of the TP bar
self.trueValue = 0 -- TP the team has
self.barValue = 0 ... | 40.122066 | 171 | 0.5956 |
fd9b97a0ff847a2fb0006efaa076c0eb2f5d9b9b | 598 | css | CSS | src/assets/icon/iconfont.css | ggggggo/supermall | b5e1dc852a38637dc413b03f80c239036901d617 | [
"MIT"
] | null | null | null | src/assets/icon/iconfont.css | ggggggo/supermall | b5e1dc852a38637dc413b03f80c239036901d617 | [
"MIT"
] | null | null | null | src/assets/icon/iconfont.css | ggggggo/supermall | b5e1dc852a38637dc413b03f80c239036901d617 | [
"MIT"
] | null | null | null | @font-face {
font-family: "iconfont"; /* Project id 2589609 */
src: url('iconfont.woff2?t=1622705403903') format('woff2'),
url('iconfont.woff?t=1622705403903') format('woff'),
url('iconfont.ttf?t=1622705403903') format('truetype');
}
.iconfont {
font-family: "iconfont" !important;
font-size: 16px... | 18.6875 | 62 | 0.650502 |
ed5b1bca96e7cf35b03e5a16d0031436d9de1b86 | 155 | h | C | Estructura/Estructura/arbol bb-copia/nodo.h | dkmaster17/DKM | ef22411e57cb37f18b9ddd2305001050855cd137 | [
"MIT"
] | null | null | null | Estructura/Estructura/arbol bb-copia/nodo.h | dkmaster17/DKM | ef22411e57cb37f18b9ddd2305001050855cd137 | [
"MIT"
] | null | null | null | Estructura/Estructura/arbol bb-copia/nodo.h | dkmaster17/DKM | ef22411e57cb37f18b9ddd2305001050855cd137 | [
"MIT"
] | null | null | null | #ifndef NODO_H
#define NODO_H
#include <iostream>
using namespace std;
class nodo
{
public:
nodo *hi,*hd;
int info;
nodo(){hi=hd=NULL;}
};
#endif
| 10.333333 | 21 | 0.664516 |
b7aa44e2c5d0931d4fa140cf37788bc7d4ed7ae3 | 3,393 | cpp | C++ | sumo/src/netbuild/NBPTLine.cpp | iltempe/osmosi | c0f54ecdbb7c7b5602d587768617d0dc50f1d75d | [
"MIT"
] | null | null | null | sumo/src/netbuild/NBPTLine.cpp | iltempe/osmosi | c0f54ecdbb7c7b5602d587768617d0dc50f1d75d | [
"MIT"
] | null | null | null | sumo/src/netbuild/NBPTLine.cpp | iltempe/osmosi | c0f54ecdbb7c7b5602d587768617d0dc50f1d75d | [
"MIT"
] | 2 | 2017-12-14T16:41:59.000Z | 2020-10-16T17:51:27.000Z | /****************************************************************************/
/// @file NBPTLine.cpp
/// @author Gregor Laemmel
/// @author Nikita Cherednychek
/// @date Tue, 20 Mar 2017
/// @version $Id$
///
// The representation of one direction of a single pt line
/******************************************... | 31.12844 | 100 | 0.61008 |
1a8b48758fd78dc9f8109dbf304511cd2f57375b | 643 | py | Python | src/jamberry/order.py | soundstripe/jamberry | e5f7400ca274ceb357ef7098a32068f1b21db324 | [
"MIT"
] | null | null | null | src/jamberry/order.py | soundstripe/jamberry | e5f7400ca274ceb357ef7098a32068f1b21db324 | [
"MIT"
] | null | null | null | src/jamberry/order.py | soundstripe/jamberry | e5f7400ca274ceb357ef7098a32068f1b21db324 | [
"MIT"
] | null | null | null | class Order:
__slots__ = (
'id',
'order_number',
'customer_name',
'shipping_name',
'order_date',
'order_details_url',
'subtotal',
'shipping_fee',
'tax',
'status',
'retail_bonus',
'order_type',
'customer_url',
... | 18.371429 | 28 | 0.438569 |
41d857d92d504827e4cd96650cebbb21d32c8885 | 1,969 | c | C | table_layout_depr.c | sebgod/gtk-plus-tutorial | 3b9ed34bd87609cf65dc8c1ea572541786add686 | [
"CC0-1.0"
] | 1 | 2015-11-06T00:34:48.000Z | 2015-11-06T00:34:48.000Z | table_layout_depr.c | sebgod/gtk-plus-tutorial | 3b9ed34bd87609cf65dc8c1ea572541786add686 | [
"CC0-1.0"
] | null | null | null | table_layout_depr.c | sebgod/gtk-plus-tutorial | 3b9ed34bd87609cf65dc8c1ea572541786add686 | [
"CC0-1.0"
] | null | null | null | #include <gtk/gtk.h>
static void change_homogenous (GtkWidget *widget, GtkTable *table)
{
/* Homogenität ändern */
gtk_table_set_homogeneous (table, !gtk_table_get_homogeneous (table));
}
int main (int argc, char *argv[])
{
GtkWidget *window, *table, *buttons[5], *labels[4];
gtk_init (&argc, &argv... | 36.462963 | 74 | 0.669883 |
3a5ea8d93c0b749ba615284f9b65c47afebe4a99 | 589 | bash | Shell | tools/snippet/snippet.bash | minisu/cloudrunner-go | 803b2cace37e422b9a8f1f8264b66d01ffc14b60 | [
"MIT"
] | null | null | null | tools/snippet/snippet.bash | minisu/cloudrunner-go | 803b2cace37e422b9a8f1f8264b66d01ffc14b60 | [
"MIT"
] | null | null | null | tools/snippet/snippet.bash | minisu/cloudrunner-go | 803b2cace37e422b9a8f1f8264b66d01ffc14b60 | [
"MIT"
] | null | null | null | #!/bin/bash
file=$1
pattern=$2
# read stdin
IN=$(cat -)
# write snippet to file so that `sed` can read
# it with `r` command (inserting directly is problematic
# when snippet contains newlines).
echo '```' >> snippettmp.txt
echo "$IN" >> snippettmp.txt
echo '```' >> snippettmp.txt
lead="<!-- BEGIN $pattern -->"
tai... | 21.035714 | 58 | 0.648557 |
75e27bd029d9a440540894bc7c78720d3995396b | 102 | dart | Dart | lib/main.dart | purposebakery/glowflutter | a783cfe8cfff53831979d32e7c555ddcbfcb1dd2 | [
"Apache-2.0"
] | null | null | null | lib/main.dart | purposebakery/glowflutter | a783cfe8cfff53831979d32e7c555ddcbfcb1dd2 | [
"Apache-2.0"
] | null | null | null | lib/main.dart | purposebakery/glowflutter | a783cfe8cfff53831979d32e7c555ddcbfcb1dd2 | [
"Apache-2.0"
] | null | null | null | import 'package:flutter/widgets.dart';
import 'package:glow/App.dart';
void main() => runApp(App());
| 20.4 | 38 | 0.705882 |
da7d8508c94baa18d75468b8695097eeafc6d569 | 131 | php | PHP | src/Libraries/Text_Wiki/Wiki/Render/Plain/Include.php | mrcore5/parser | bf7f88af025e6853ba360c9b8faf8ed1c36a1f37 | [
"MIT"
] | null | null | null | src/Libraries/Text_Wiki/Wiki/Render/Plain/Include.php | mrcore5/parser | bf7f88af025e6853ba360c9b8faf8ed1c36a1f37 | [
"MIT"
] | null | null | null | src/Libraries/Text_Wiki/Wiki/Render/Plain/Include.php | mrcore5/parser | bf7f88af025e6853ba360c9b8faf8ed1c36a1f37 | [
"MIT"
] | null | null | null | <?php
class Text_Wiki_Render_Plain_Include extends Text_Wiki_Render
{
public function token()
{
return '';
}
}
| 14.555556 | 61 | 0.656489 |
4c9538138188e3fae761b632c3e5b581c83e77c5 | 689 | swift | Swift | Sources/Tools/llcastool/CommonOptions.swift | LaudateCorpus1/swift-llbuild2 | b03dc24359a2b365514a32cca657804ae34114d7 | [
"Apache-2.0"
] | 268 | 2020-05-26T20:50:16.000Z | 2022-03-23T04:30:15.000Z | Sources/Tools/llcastool/CommonOptions.swift | LaudateCorpus1/swift-llbuild2 | b03dc24359a2b365514a32cca657804ae34114d7 | [
"Apache-2.0"
] | 14 | 2020-05-29T18:36:35.000Z | 2021-04-23T18:23:18.000Z | Sources/Tools/llcastool/CommonOptions.swift | LaudateCorpus1/swift-llbuild2 | b03dc24359a2b365514a32cca657804ae34114d7 | [
"Apache-2.0"
] | 17 | 2020-05-27T14:59:47.000Z | 2022-03-26T10:42:51.000Z | // This source file is part of the Swift.org open source project
//
// Copyright (c) 2020 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LICENSE.txt for license information
// See http://swift.org/CONTRIBUTORS.txt for the list of ... | 26.5 | 78 | 0.725689 |
d7ebe7619ac1d991011df78d6786976e46822390 | 6,744 | rb | Ruby | spec/law/judgement_spec.rb | Freshly/law | 2d932f2325da0e096478374209aab90a7aca16ad | [
"MIT"
] | 1 | 2019-10-21T23:19:38.000Z | 2019-10-21T23:19:38.000Z | spec/law/judgement_spec.rb | Freshly/law | 2d932f2325da0e096478374209aab90a7aca16ad | [
"MIT"
] | 5 | 2019-12-17T14:55:39.000Z | 2021-06-09T15:39:56.000Z | spec/law/judgement_spec.rb | Freshly/law | 2d932f2325da0e096478374209aab90a7aca16ad | [
"MIT"
] | 1 | 2022-03-17T17:22:29.000Z | 2022-03-17T17:22:29.000Z | # frozen_string_literal: true
RSpec.describe Law::Judgement, type: :judgement do
subject(:example_judgement) { described_class.new(petition) }
let(:petition) { instance_double(Law::Petition, statute: statute) }
let(:statute) { instance_double(Law::StatuteBase, unregulated?: unregulated?) }
let(:unregulated?) ... | 31.661972 | 120 | 0.632117 |
0d4fff54cd46ac65efd31c5c369c853f39fd866b | 1,215 | cs | C# | Api/ViewModels/PostCreateEditVm.cs | afonsof/meganium | f01416e693ea242916bef73a736113c603e47745 | [
"MIT"
] | 4 | 2015-03-13T02:29:47.000Z | 2015-07-22T03:33:27.000Z | Api/ViewModels/PostCreateEditVm.cs | afonsof/meganium | f01416e693ea242916bef73a736113c603e47745 | [
"MIT"
] | null | null | null | Api/ViewModels/PostCreateEditVm.cs | afonsof/meganium | f01416e693ea242916bef73a736113c603e47745 | [
"MIT"
] | null | null | null | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using Meganium.Api.Entities;
using Meganium.Api.Resources;
namespace Meganium.Api.ViewModels
{
public class PostCreateEditVm
{
public List<Field> Fields { get; set; }
public Mult... | 30.375 | 66 | 0.637037 |
8dae2761060504a51b58e05078da7b870a429932 | 720 | js | JavaScript | lib/scheduler/speed.js | lagdotcom/rot.js | b30fb816bfbeb986a477dee929b988fd2c7f9bf3 | [
"BSD-3-Clause"
] | 1,653 | 2015-01-02T10:11:35.000Z | 2022-03-30T04:35:46.000Z | lib/scheduler/speed.js | lagdotcom/rot.js | b30fb816bfbeb986a477dee929b988fd2c7f9bf3 | [
"BSD-3-Clause"
] | 157 | 2015-01-02T20:03:56.000Z | 2022-03-23T20:17:08.000Z | lib/scheduler/speed.js | lagdotcom/rot.js | b30fb816bfbeb986a477dee929b988fd2c7f9bf3 | [
"BSD-3-Clause"
] | 258 | 2015-01-06T14:02:55.000Z | 2022-03-24T03:34:09.000Z | import Scheduler from "./scheduler.js";
/**
* @class Speed-based scheduler
*/
export default class Speed extends Scheduler {
/**
* @param {object} item anything with "getSpeed" method
* @param {bool} repeat
* @param {number} [time=1/item.getSpeed()]
* @see ROT.Scheduler#add
*/
add(ite... | 27.692308 | 79 | 0.572222 |
ebc132b57a091afd4443f7f4786d6614976108fc | 1,670 | css | CSS | src/taskpane/taskpane.css | Fukushima-Computer-System/outlook-check-recipients-addin | 99ffffb3ca0b162500f4f47395995dfd57c14398 | [
"MIT"
] | null | null | null | src/taskpane/taskpane.css | Fukushima-Computer-System/outlook-check-recipients-addin | 99ffffb3ca0b162500f4f47395995dfd57c14398 | [
"MIT"
] | 2 | 2021-11-09T05:12:57.000Z | 2021-11-15T01:51:28.000Z | src/taskpane/taskpane.css | Fukushima-Computer-System/outlook-check-recipients-addin | 99ffffb3ca0b162500f4f47395995dfd57c14398 | [
"MIT"
] | 1 | 2021-11-17T10:56:56.000Z | 2021-11-17T10:56:56.000Z | html,
body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
ul {
margin: 0;
padding: 0;
}
p {
margin-top: 8px;
margin-bottom: 8px;
}
.sample-container {
margin-top: 8px;
width: 90%;
height: 72px;
position: relative;
display: flex;
justify-content: center;
align-items: center;
bor... | 15.904762 | 92 | 0.647904 |
a3dc6795b3e8c7dbbe37d21da8e07cf15fde1905 | 8,884 | java | Java | src/rosplan/rosplan_dependencies/rddlsim/src/rddl/translate/cnf/SolutionReader.java | Eurobot2020/UAHR-ROSPlan | d171922ab2580bc86824addb47494b6ec9d46914 | [
"BSD-2-Clause"
] | null | null | null | src/rosplan/rosplan_dependencies/rddlsim/src/rddl/translate/cnf/SolutionReader.java | Eurobot2020/UAHR-ROSPlan | d171922ab2580bc86824addb47494b6ec9d46914 | [
"BSD-2-Clause"
] | null | null | null | src/rosplan/rosplan_dependencies/rddlsim/src/rddl/translate/cnf/SolutionReader.java | Eurobot2020/UAHR-ROSPlan | d171922ab2580bc86824addb47494b6ec9d46914 | [
"BSD-2-Clause"
] | null | null | null | package rddl.translate.cnf;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.HashMap... | 25.676301 | 85 | 0.637213 |
87904bf37f99cf74073bb5ac7bca12a7bb7111b9 | 5,814 | swift | Swift | Tests/IDNATests/SimpleToUnicodeTests.swift | karwa/swift-url-docs-test | 2f01206325f5b8e512dcc89ffaf2075a9e3c5a75 | [
"Apache-2.0"
] | null | null | null | Tests/IDNATests/SimpleToUnicodeTests.swift | karwa/swift-url-docs-test | 2f01206325f5b8e512dcc89ffaf2075a9e3c5a75 | [
"Apache-2.0"
] | null | null | null | Tests/IDNATests/SimpleToUnicodeTests.swift | karwa/swift-url-docs-test | 2f01206325f5b8e512dcc89ffaf2075a9e3c5a75 | [
"Apache-2.0"
] | null | null | null | // Copyright The swift-url Contributors.
//
// 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 ag... | 35.236364 | 118 | 0.610767 |
a7a59bbe0e1852d82a9f030ad50f91cd3ed9a316 | 3,443 | ps1 | PowerShell | Pester/Test-WSTrust.ps1 | Sarafian/WcfPS | 9bee3c5b110adf1e7913ad53611fb545b3727f51 | [
"MIT"
] | 6 | 2016-07-25T11:23:49.000Z | 2022-01-13T22:28:42.000Z | Pester/Test-WSTrust.ps1 | Sarafian/WcfPS | 9bee3c5b110adf1e7913ad53611fb545b3727f51 | [
"MIT"
] | null | null | null | Pester/Test-WSTrust.ps1 | Sarafian/WcfPS | 9bee3c5b110adf1e7913ad53611fb545b3727f51 | [
"MIT"
] | null | null | null | Param (
[Parameter(
Mandatory = $true
)]
[string]$MexUri,
[Parameter(
Mandatory = $true
)]
[string]$AuthenticationEndpoint,
[Parameter(
Mandatory = $false
)]
[PSCredential]$Credential=$null,
[Parameter(
Mandatory = $false
)]
[string]$Symmet... | 29.93913 | 142 | 0.601801 |
a0ca2bc011df325cf6d257bc46ca03e72a4a5e74 | 1,554 | swift | Swift | SwiftCalc/SwiftCalc/History/SwiftUI_HistoryView.swift | baju0218/SwiftCalc | 2735950b48da30c548b0ff1249be92ec192bb379 | [
"Apache-2.0"
] | null | null | null | SwiftCalc/SwiftCalc/History/SwiftUI_HistoryView.swift | baju0218/SwiftCalc | 2735950b48da30c548b0ff1249be92ec192bb379 | [
"Apache-2.0"
] | null | null | null | SwiftCalc/SwiftCalc/History/SwiftUI_HistoryView.swift | baju0218/SwiftCalc | 2735950b48da30c548b0ff1249be92ec192bb379 | [
"Apache-2.0"
] | null | null | null | //
// SwiftUI_HistoryView.swift
// SwiftCalc
//
// Created by 윤진영 on 2021/04/05.
//
import SwiftUI
struct SwiftUI_HistoryView: View {
weak var delegate: CalcPadViewController?
@State private var historyList : [History] = histories
var body: some View {
Button("닫기") {
deleg... | 26.793103 | 89 | 0.497426 |
dbc5a6f0431f091df5ad939da08ea871ebc192cc | 1,666 | php | PHP | src/RockPaperScissors.php | micahcourey/rock_paper_scissors | 3a13bd4c06aacb12a983a52e56a93d7a45c3b72d | [
"MIT",
"Unlicense"
] | null | null | null | src/RockPaperScissors.php | micahcourey/rock_paper_scissors | 3a13bd4c06aacb12a983a52e56a93d7a45c3b72d | [
"MIT",
"Unlicense"
] | null | null | null | src/RockPaperScissors.php | micahcourey/rock_paper_scissors | 3a13bd4c06aacb12a983a52e56a93d7a45c3b72d | [
"MIT",
"Unlicense"
] | null | null | null | <?php
class RockPaperScissors
{
function playRockPaperScissors($input1, $input2)
{
//Lowercase the user inputs.
$input1 = strtolower($input1);
$input2 = strtolower($input2);
//Validate the user input by making a counter that counts the number of v... | 36.217391 | 98 | 0.384754 |
751cff45edf0d48fc0c6a1bcda826b314f272c4b | 861 | css | CSS | data/usercss/183461.user.css | 33kk/uso-archive | 2c4962d1d507ff0eaec6dcca555efc531b37a9b4 | [
"MIT"
] | 118 | 2020-08-28T19:59:28.000Z | 2022-03-26T16:28:40.000Z | data/usercss/183461.user.css | 33kk/uso-archive | 2c4962d1d507ff0eaec6dcca555efc531b37a9b4 | [
"MIT"
] | 38 | 2020-09-02T01:08:45.000Z | 2022-01-23T02:47:24.000Z | data/usercss/183461.user.css | 33kk/uso-archive | 2c4962d1d507ff0eaec6dcca555efc531b37a9b4 | [
"MIT"
] | 21 | 2020-08-19T01:12:43.000Z | 2022-03-15T21:55:17.000Z | /* ==UserStyle==
@name HN MATERIAL DARK
@namespace USO Archive
@author karimel
@description `Material dark theme for Hacker News - work in progress...`
@version 20200509.10.17
@license NO-REDISTRIBUTION
@preprocessor uso
==/UserStyle== */
@-moz-document domain("news.ycombinator... | 20.023256 | 75 | 0.543554 |
fda0824cefa4f0c3a3ff055fa77a1a44864487ee | 214 | sql | SQL | NoteBooks/Curso de SQL/Queries_Platzi/rank.sql | Alejandro-sin/Learning_Notebooks | 161d6bed4c7b1d171b45f61c0cc6fa91e9894aad | [
"MIT"
] | 1 | 2021-02-26T13:12:22.000Z | 2021-02-26T13:12:22.000Z | NoteBooks/Curso de SQL/Queries_Platzi/rank.sql | Alejandro-sin/Learning_Notebooks | 161d6bed4c7b1d171b45f61c0cc6fa91e9894aad | [
"MIT"
] | null | null | null | NoteBooks/Curso de SQL/Queries_Platzi/rank.sql | Alejandro-sin/Learning_Notebooks | 161d6bed4c7b1d171b45f61c0cc6fa91e9894aad | [
"MIT"
] | null | null | null | SELECT *
FROM (
SELECT *,
RANK() OVER (PARTITION BY carrera_id ORDER BY colegiatura DESC) brand_rank
FROM public.alumnos
) AS rank_colegiaturas_por_carrera
WHERE brand_rank <3
ORDER BY carrera_id, brand_rank;
| 21.4 | 75 | 0.785047 |
8b5dcb1e1a0abd658212943c854851ef994c6e7f | 1,545 | rb | Ruby | spec/requests/openid_connect_authorize_spec.rb | s2t2/identity-idp | e2d1361093327b1e5c769939a7a4e05523fd1404 | [
"CC0-1.0"
] | null | null | null | spec/requests/openid_connect_authorize_spec.rb | s2t2/identity-idp | e2d1361093327b1e5c769939a7a4e05523fd1404 | [
"CC0-1.0"
] | null | null | null | spec/requests/openid_connect_authorize_spec.rb | s2t2/identity-idp | e2d1361093327b1e5c769939a7a4e05523fd1404 | [
"CC0-1.0"
] | null | null | null | require 'rails_helper'
describe 'user signs in partially and visits openid_connect/authorize' do
let(:user) { create(:user, :signed_up, phone: '+1 (202) 555-1213') }
it 'prompts the user to 2FA' do
openid_test('select_account')
follow_redirect!
expect(response).
to redirect_to login_two_factor_p... | 30.9 | 96 | 0.69644 |
254ec97d7701b2ebc47d1972b7b852e577bfd9bf | 320 | swift | Swift | mengmeng/CodePractice1/017 Daffodils.swift | haiyanw5837/CodePracticeResult | 9a619f32f417ba16966f1b86ce0ec0d68326bff8 | [
"Apache-2.0"
] | 18 | 2019-12-29T11:35:10.000Z | 2020-08-30T14:34:28.000Z | mengmeng/CodePractice1/017 Daffodils.swift | haiyanw5837/CodePracticeResult | 9a619f32f417ba16966f1b86ce0ec0d68326bff8 | [
"Apache-2.0"
] | 63 | 2020-01-04T19:34:57.000Z | 2021-01-02T21:57:43.000Z | mengmeng/CodePractice1/017 Daffodils.swift | haiyanw5837/CodePracticeResult | 9a619f32f417ba16966f1b86ce0ec0d68326bff8 | [
"Apache-2.0"
] | 36 | 2021-01-29T22:39:07.000Z | 2022-01-24T00:41:13.000Z | func daffodils() -> [Int] {
var a : [Int] = []
for i in 100 ... 999 {
let b = Int (i / 100)
let c = Int (i / 10 - b * 10)
let d = Int (i - b * 100 - c * 10)
if b * b * b + c * c * c + d * d * d == i {
a.append(i)
}
}
return a
}
show("\(daffodils())")
| 21.333333 | 51 | 0.35625 |
0ad95a176fa103bac62b77bd1baaf76ab4624e31 | 829 | cs | C# | Runtime/AnimationContext.cs | krylov-na/neat.tweening | 9e74d4e25ad98d097b3c66016ec7aed56f9a35e8 | [
"MIT"
] | null | null | null | Runtime/AnimationContext.cs | krylov-na/neat.tweening | 9e74d4e25ad98d097b3c66016ec7aed56f9a35e8 | [
"MIT"
] | null | null | null | Runtime/AnimationContext.cs | krylov-na/neat.tweening | 9e74d4e25ad98d097b3c66016ec7aed56f9a35e8 | [
"MIT"
] | null | null | null | using System.Collections.Generic;
using UnityEngine;
namespace Neat.Tweening {
public class AnimationContext : MonoBehaviour {
public string animationName;
private readonly List<Tween> tweens = new List<Tween>();
private int currentState = -1;
private void Reset() {
an... | 25.90625 | 73 | 0.574186 |
f4a8ca78083996db546df3a418acbe61b2b9f137 | 201 | ts | TypeScript | api/src/common/http_error.ts | LiZhiHao97/denolib_registry | cddea1ab79f130eaaf82568e3a5cb66948bc2f72 | [
"MIT"
] | 1 | 2021-07-09T05:18:57.000Z | 2021-07-09T05:18:57.000Z | api/src/common/http_error.ts | LiZhiHao97/denolib_registry | cddea1ab79f130eaaf82568e3a5cb66948bc2f72 | [
"MIT"
] | null | null | null | api/src/common/http_error.ts | LiZhiHao97/denolib_registry | cddea1ab79f130eaaf82568e3a5cb66948bc2f72 | [
"MIT"
] | null | null | null | import { HttpException, HttpStatus } from "@nestjs/common";
export class InvalidUrlException extends HttpException {
constructor() {
super("Invalid URL", HttpStatus.INTERNAL_SERVER_ERROR);
}
} | 28.714286 | 59 | 0.756219 |
459f654e31e45c6e4ce99f9d39d667c41d0dd137 | 234 | py | Python | Chapter01/2_add.py | blep/Deep-Learning-for-Computer-Vision | c5f07d1af15e804cf238e7f9dbdb3c139d5696b2 | [
"MIT"
] | null | null | null | Chapter01/2_add.py | blep/Deep-Learning-for-Computer-Vision | c5f07d1af15e804cf238e7f9dbdb3c139d5696b2 | [
"MIT"
] | null | null | null | Chapter01/2_add.py | blep/Deep-Learning-for-Computer-Vision | c5f07d1af15e804cf238e7f9dbdb3c139d5696b2 | [
"MIT"
] | null | null | null | import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
x = tf.placeholder(tf.float32)
y = tf.placeholder(tf.float32)
z = x + y
session = tf.Session()
values = {x: 5.0, y: 4.0}
result = session.run([z], values)
print(result)
| 14.625 | 33 | 0.683761 |
884961e0c2f6dceb304bc8242f1d7b0257cf6017 | 875 | lua | Lua | Assets/Art/MLua/UI/CreateRoleWindow/CreateRoleWindow.lua | Ganchong/LuaUI | 39c84d2d81d293824b2f593555b2790c81fe0532 | [
"MIT"
] | null | null | null | Assets/Art/MLua/UI/CreateRoleWindow/CreateRoleWindow.lua | Ganchong/LuaUI | 39c84d2d81d293824b2f593555b2790c81fe0532 | [
"MIT"
] | null | null | null | Assets/Art/MLua/UI/CreateRoleWindow/CreateRoleWindow.lua | Ganchong/LuaUI | 39c84d2d81d293824b2f593555b2790c81fe0532 | [
"MIT"
] | null | null | null | ---
--- Generated by EmmyLua(https://github.com/EmmyLua)
--- Created by 干冲.
--- DateTime: 2018/3/24 22:25
---
CreateRoleWindow = class("CreateRoleWindow", WindowBase)
local this = CreateRoleWindow
function this:OnWDAwake(uiObj)
Log("CreateRoleWindow InitUI")
self.UIObj = uiObj
self:BindWindow(uiObj)
s... | 24.305556 | 94 | 0.754286 |
828a40c5a054ba07d0839979881c468343844af0 | 1,407 | sql | SQL | database.sql | lagunal/videos | 71cc1dc372ed333663557e54d3057fa2689fb28b | [
"MIT"
] | null | null | null | database.sql | lagunal/videos | 71cc1dc372ed333663557e54d3057fa2689fb28b | [
"MIT"
] | null | null | null | database.sql | lagunal/videos | 71cc1dc372ed333663557e54d3057fa2689fb28b | [
"MIT"
] | null | null | null | CREATE DATABASE IF NOT EXISTS videos;
USE videos;
CREATE TABLE users(
id int(255) auto_increment not null,
role varchar(20),
name varchar(255),
surname varchar(255),
email varchar(255),
password varchar(255),
image varchar(255),
created_at datetime,
updated_at datetime,
remember_token varchar(255)... | 22.693548 | 72 | 0.74769 |
a99c79d23a0960917e6030e39d14425784ab1a75 | 411 | dart | Dart | bin/_9_loop_for.dart | somkiet073/BasicDartProgramming | 5388f59f77881f9409597241bd10d77f6b13f7da | [
"MIT"
] | null | null | null | bin/_9_loop_for.dart | somkiet073/BasicDartProgramming | 5388f59f77881f9409597241bd10d77f6b13f7da | [
"MIT"
] | null | null | null | bin/_9_loop_for.dart | somkiet073/BasicDartProgramming | 5388f59f77881f9409597241bd10d77f6b13f7da | [
"MIT"
] | null | null | null | // การเรียนรู้ภาษา Dart
// หัวข้อที่ 9 เรื่องการทำซ้ำด้วย loop for
void main() {
for(var i=0; i<=10; i++){
if(i == 6){
break;
}
print(i);
}
print('-----');
// for...in
var numbers = [0,1,2,3,4,5,6];
for(var number in numbers){
print(number);
}
print('-----');
List dayLists... | 15.222222 | 47 | 0.50365 |
c348c88a00b6f31e841ca9c8acf17235e3eb415a | 731 | sql | SQL | db/seed.sql | reggiemace/employee-tracker | 9488170382810ef2e42ede2b61001aa64abe076d | [
"MIT"
] | null | null | null | db/seed.sql | reggiemace/employee-tracker | 9488170382810ef2e42ede2b61001aa64abe076d | [
"MIT"
] | null | null | null | db/seed.sql | reggiemace/employee-tracker | 9488170382810ef2e42ede2b61001aa64abe076d | [
"MIT"
] | null | null | null | use employee_trackerDB;
INSERT INTO department (name) VALUES ('Cyber'), ('Devolopment'), ('Testing'),('Contracts');
INSERT INTO role (title, salary, department_id)
VALUES
('Securty Analyst', 100000, 1),
('Security Specialist', 75000, 1),
('Senior Software Developer', 100000, 2),
('Junior Software Developer', 65000... | 29.24 | 91 | 0.659371 |
8795ca6d5ea06b689d723710ca962a3304986f87 | 7,214 | rs | Rust | src/lib.rs | ignatenkobrain/unbytify | af20ecd9ec44bc3341feffe3d0be1a3543ebc31b | [
"Apache-2.0"
] | 3 | 2018-01-16T02:54:31.000Z | 2020-02-14T10:55:50.000Z | src/lib.rs | ignatenkobrain/unbytify | af20ecd9ec44bc3341feffe3d0be1a3543ebc31b | [
"Apache-2.0"
] | 2 | 2018-04-21T03:10:41.000Z | 2020-02-15T22:48:06.000Z | src/lib.rs | ignatenkobrain/unbytify | af20ecd9ec44bc3341feffe3d0be1a3543ebc31b | [
"Apache-2.0"
] | 2 | 2018-04-16T19:15:33.000Z | 2020-02-14T09:55:51.000Z | // Copyright 2017 Dmytro Milinevskyi <dmilinevskyi@gmail.com>
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicabl... | 29.08871 | 106 | 0.5402 |
6d215920e8ee2508e318060341ad679f51345a22 | 1,010 | tsx | TypeScript | packages/docs/docsite/src/components/mark-testers/arc-tester.tsx | ziminskida/chart-parts | 1805a7f5f43952b5f7e5c69fe0f61dae8c0aecb1 | [
"MIT"
] | 1 | 2021-03-12T16:38:36.000Z | 2021-03-12T16:38:36.000Z | packages/docs/docsite/src/components/mark-testers/arc-tester.tsx | ziminskida/chart-parts | 1805a7f5f43952b5f7e5c69fe0f61dae8c0aecb1 | [
"MIT"
] | 364 | 2020-04-24T20:17:00.000Z | 2021-08-02T17:14:30.000Z | packages/docs/docsite/src/components/mark-testers/arc-tester.tsx | aksh-h/test | 730ed5693cd971dfdab3f4b763ef6505d25e6c2a | [
"MIT"
] | 1 | 2020-07-30T12:40:24.000Z | 2020-07-30T12:40:24.000Z | /*!
* Copyright (c) Microsoft. All rights reserved.
* Licensed under the MIT license. See LICENSE file in the project.
*/
import React from 'react'
import { SingleMarkTester } from './util/single-mark-tester'
import * as palette from './util/palette'
const BASE_ITEM = {
stroke: palette.CRIMSON,
fill: palette.GRE... | 21.489362 | 67 | 0.577228 |
15cc841d2950bbe7dc5ca56308ef820201b9b9e4 | 2,379 | dart | Dart | lib/main.dart | Vedantgupta2303/GetSetPro | b63ab5cc7479a5077f7c9dd91848cb9c7e2c02d0 | [
"MIT"
] | 1 | 2021-05-30T05:13:07.000Z | 2021-05-30T05:13:07.000Z | lib/main.dart | aman440/Taskify | b63ab5cc7479a5077f7c9dd91848cb9c7e2c02d0 | [
"MIT"
] | null | null | null | lib/main.dart | aman440/Taskify | b63ab5cc7479a5077f7c9dd91848cb9c7e2c02d0 | [
"MIT"
] | null | null | null | import 'package:firebase_auth/firebase_auth.dart';
import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'models/tabs.dart';
import 'services/auth.dart';
import 'task_list/models/task_data.dart';
import 'vedant_task/slidebar.dart';
im... | 29.012195 | 78 | 0.62211 |
8db3c32ad7fe35d5b065157dddca36467abd27f7 | 2,475 | js | JavaScript | src/taroConvert/src/interface/goodsEvaluate.js | fightingljm/taro-fashop | fbb6c03e8403a7b3c0f7f63a5bb697b021b8d607 | [
"Apache-2.0"
] | 1 | 2019-01-26T01:14:22.000Z | 2019-01-26T01:14:22.000Z | src/taroConvert/src/interface/goodsEvaluate.js | fightingljm/taro-fashop | fbb6c03e8403a7b3c0f7f63a5bb697b021b8d607 | [
"Apache-2.0"
] | null | null | null | src/taroConvert/src/interface/goodsEvaluate.js | fightingljm/taro-fashop | fbb6c03e8403a7b3c0f7f63a5bb697b021b8d607 | [
"Apache-2.0"
] | null | null | null | import Interface from '../utils/interface.js'
import Exception from '../utils/exception.js'
export class GoodsEvaluateListInterface extends Interface {
constructor(param) {
super()
try {
this.total_number = param.total_number
this.list = param.list.map(function(item) {
return new GoodsEva... | 30.9375 | 71 | 0.686061 |
57fdd459d592a3e10cb0980184b28dede6985ff4 | 948 | php | PHP | mobile/detailtransaksi.php | TIF-GEMSTONE/RotiSIP-Web | b326fe9b66a83ad5e965e2bd830572169aeda349 | [
"MIT"
] | null | null | null | mobile/detailtransaksi.php | TIF-GEMSTONE/RotiSIP-Web | b326fe9b66a83ad5e965e2bd830572169aeda349 | [
"MIT"
] | 1 | 2018-05-02T04:56:01.000Z | 2018-05-02T04:56:01.000Z | mobile/detailtransaksi.php | TIF-GEMSTONE/RotiSIP-Web | b326fe9b66a83ad5e965e2bd830572169aeda349 | [
"MIT"
] | null | null | null | <?php
include 'koneksi.php';
if(mysqli_connect_errno()){
die('Unable to connect to database'.mysqli_connect_error());
}
//Mendapatkan Nilai Dari Variable nis yang ingin ditampilkan
$no = $_POST['no_transaksi'];
$stmt = $con->prepare("SELECT nama_roti, harga, jumlah_roti, sub_total_sales FROM tabel_transaksi_sa... | 33.857143 | 377 | 0.735232 |
8366c0b6d15d60347dbae3f4bcd218826bf92071 | 874 | lua | Lua | scripts/zones/Riverne-Site_A01/npcs/Unstable_Displacement.lua | MatthewJHBerry/topaz | aa6f3a1b4be1f1ae1e71dde680d768d958e163a9 | [
"FTL"
] | null | null | null | scripts/zones/Riverne-Site_A01/npcs/Unstable_Displacement.lua | MatthewJHBerry/topaz | aa6f3a1b4be1f1ae1e71dde680d768d958e163a9 | [
"FTL"
] | null | null | null | scripts/zones/Riverne-Site_A01/npcs/Unstable_Displacement.lua | MatthewJHBerry/topaz | aa6f3a1b4be1f1ae1e71dde680d768d958e163a9 | [
"FTL"
] | 1 | 2020-05-28T21:35:05.000Z | 2020-05-28T21:35:05.000Z | -----------------------------------
-- Area: Riverne Site #A01
-- NPC: Unstable Displacement
-----------------------------------
local ID = require("scripts/zones/Riverne-Site_A01/IDs")
require("scripts/globals/settings")
require("scripts/globals/status")
-----------------------------------
function onTrade(player, n... | 27.3125 | 84 | 0.631579 |
5316d032738e21ff11874cb82c9a3f6febc156de | 116 | swift | Swift | WMF Framework/Bundle.swift | svemir/wikipedia-ios | c8a8a56cba21e615431ec6ea5ca6c2ea9f72f6c8 | [
"MIT"
] | 3 | 2019-07-08T18:47:13.000Z | 2019-08-30T01:28:47.000Z | WMF Framework/Bundle.swift | ibhargav7/wikipedia-ios | 59a4aebca2ce86fe286dad729ad0cc90026c64b8 | [
"MIT"
] | 1 | 2021-03-09T21:22:06.000Z | 2021-03-09T21:22:06.000Z | WMF Framework/Bundle.swift | ibhargav7/wikipedia-ios | 59a4aebca2ce86fe286dad729ad0cc90026c64b8 | [
"MIT"
] | 1 | 2022-01-20T08:53:10.000Z | 2022-01-20T08:53:10.000Z | import Foundation
extension Bundle {
@objc static let wmf: Bundle = Bundle(identifier: "org.wikimedia.WMF")!
}
| 19.333333 | 75 | 0.724138 |
c6d868e243d8b1949db60caae3d8aed24ba595f0 | 4,932 | py | Python | src/lib3to6/__main__.py | mbarkhau/lib3to6 | a38d0f6aff079807a98a0fcecf9dafabc869f2bb | [
"MIT"
] | 11 | 2018-11-12T13:37:44.000Z | 2022-02-25T13:56:51.000Z | src/lib3to6/__main__.py | mbarkhau/lib3to6 | a38d0f6aff079807a98a0fcecf9dafabc869f2bb | [
"MIT"
] | 3 | 2018-09-04T14:07:59.000Z | 2022-01-25T09:54:42.000Z | src/lib3to6/__main__.py | mbarkhau/lib3to6 | a38d0f6aff079807a98a0fcecf9dafabc869f2bb | [
"MIT"
] | 2 | 2018-09-04T12:37:57.000Z | 2019-09-02T12:53:26.000Z | #!/usr/bin/env python
# This file is part of the lib3to6 project
# https://github.com/mbarkhau/lib3to6
#
# Copyright (c) 2019-2021 Manuel Barkhau (mbarkhau@gmail.com) - MIT License
# SPDX-License-Identifier: MIT
import io
import re
import sys
import typing as typ
import difflib
import logging
import click
from . imp... | 26.516129 | 88 | 0.628954 |
ff5f2604767219fd7aefda98b68f39ceb0404a95 | 7,990 | py | Python | release/stubs.min/System/Windows/Forms/__init___parts/Screen.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 182 | 2017-06-27T02:26:15.000Z | 2022-03-30T18:53:43.000Z | release/stubs.min/System/Windows/Forms/__init___parts/Screen.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 28 | 2017-06-27T13:38:23.000Z | 2022-03-15T11:19:44.000Z | release/stubs.min/System/Windows/Forms/__init___parts/Screen.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 67 | 2017-06-28T09:43:59.000Z | 2022-03-20T21:17:10.000Z | class Screen(object):
""" Represents a display device or multiple display devices on a single system. """
def Equals(self,obj):
"""
Equals(self: Screen,obj: object) -> bool
Gets or sets a value indicating whether the specified object is equal to this Screen.
obj: The object to compare ... | 24.660494 | 150 | 0.705757 |
455c52ef1fd06934a57e4b3dda7460cc4ef03550 | 5,645 | py | Python | src/manager/om/script/gspylib/inspection/items/device/CheckInodeUsage.py | wotchin/openGauss-server | ebd92e92b0cfd76b121d98e4c57a22d334573159 | [
"MulanPSL-1.0"
] | 1 | 2020-06-30T15:00:50.000Z | 2020-06-30T15:00:50.000Z | src/manager/om/script/gspylib/inspection/items/device/CheckInodeUsage.py | wotchin/openGauss-server | ebd92e92b0cfd76b121d98e4c57a22d334573159 | [
"MulanPSL-1.0"
] | null | null | null | src/manager/om/script/gspylib/inspection/items/device/CheckInodeUsage.py | wotchin/openGauss-server | ebd92e92b0cfd76b121d98e4c57a22d334573159 | [
"MulanPSL-1.0"
] | null | null | null | # -*- coding:utf-8 -*-
# Copyright (c) 2020 Huawei Technologies Co.,Ltd.
#
# openGauss is licensed under Mulan PSL v2.
# You can use this software according to the terms
# and conditions of the Mulan PSL v2.
# You may obtain a copy of Mulan PSL v2 at:
#
# http://license.coscl.org.cn/MulanPSL2
#
# THIS SOFTWARE... | 42.126866 | 79 | 0.573782 |
0a4a6ea88f527f86f3c000f229226d2771bd9dbb | 1,097 | cs | C# | Twisted/Assets/_Scripts/TubeCleaner.cs | CipicReborn/twisted | f05d854606764ad593c223572d0c33fa98ee905d | [
"Apache-2.0"
] | 1 | 2018-04-11T10:02:32.000Z | 2018-04-11T10:02:32.000Z | Twisted/Assets/_Scripts/TubeCleaner.cs | CipicReborn/twisted | f05d854606764ad593c223572d0c33fa98ee905d | [
"Apache-2.0"
] | null | null | null | Twisted/Assets/_Scripts/TubeCleaner.cs | CipicReborn/twisted | f05d854606764ad593c223572d0c33fa98ee905d | [
"Apache-2.0"
] | null | null | null | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TubeCleaner : MonoBehaviour {
#region PUBLIC METHODS
public void ClearPassedSegments () {
for (int i = 0; i < transform.childCount; i++) {
var lChild = transform.GetChild(0);
var end =... | 23.847826 | 77 | 0.597995 |
38c9a8bd8b4463c31dcb3890192c8d4dd9e0f86d | 403 | php | PHP | tests/Integration/Httplug/BaseIntegrationTest.php | ZebulanStanphill/Buzz | e7468d13f33fb6656068372533f2a446602fef09 | [
"MIT"
] | 1,080 | 2015-01-02T07:19:08.000Z | 2022-03-27T21:43:39.000Z | tests/Integration/Httplug/BaseIntegrationTest.php | ZebulanStanphill/Buzz | e7468d13f33fb6656068372533f2a446602fef09 | [
"MIT"
] | 183 | 2015-01-10T02:15:54.000Z | 2022-03-25T13:57:41.000Z | tests/Integration/Httplug/BaseIntegrationTest.php | ZebulanStanphill/Buzz | e7468d13f33fb6656068372533f2a446602fef09 | [
"MIT"
] | 193 | 2015-01-14T14:35:30.000Z | 2022-03-18T23:04:08.000Z | <?php
declare(strict_types=1);
namespace Buzz\Test\Integration\Httplug;
use Http\Client\Tests\HttpClientTest;
use Http\Client\Tests\PHPUnitUtility;
abstract class BaseIntegrationTest extends HttpClientTest
{
protected function setUp(): void
{
parent::setUp();
if (false === PHPUnitUtility::ge... | 20.15 | 57 | 0.672457 |
3866e31bc53f10122a85b96eb735bdc31ff51a09 | 215 | php | PHP | application/managers/model/ManagersModel.php | liaoyizhong/pumobile | a147e878e7b61264bcf64c3f5b6f4bfe7a38b306 | [
"Apache-2.0"
] | null | null | null | application/managers/model/ManagersModel.php | liaoyizhong/pumobile | a147e878e7b61264bcf64c3f5b6f4bfe7a38b306 | [
"Apache-2.0"
] | null | null | null | application/managers/model/ManagersModel.php | liaoyizhong/pumobile | a147e878e7b61264bcf64c3f5b6f4bfe7a38b306 | [
"Apache-2.0"
] | null | null | null | <?php
namespace app\managers\model;
use app\common\model\BasicModel;
/**
* User: liaoyizhong
* Date: 2017/12/7/007
* Time: 18:28
*/
class ManagersModel extends BasicModel
{
protected $table = 'managers';
} | 15.357143 | 38 | 0.693023 |
1aa860ee5b442fdbe09fb2b83a4cb5783db84dc3 | 799 | py | Python | Projects/Python/YoutubeDownloader.py | KevinGandhi9898/Hackoween-Hacktoberfest2021 | e99601b43aa032ac1bc76f5782a39302175383bd | [
"MIT"
] | 19 | 2021-10-03T06:12:28.000Z | 2021-10-30T13:07:56.000Z | Projects/Python/YoutubeDownloader.py | KevinGandhi9898/Hackoween-Hacktoberfest2021 | e99601b43aa032ac1bc76f5782a39302175383bd | [
"MIT"
] | 68 | 2021-10-03T05:59:13.000Z | 2021-10-31T17:34:40.000Z | Projects/Python/YoutubeDownloader.py | KevinGandhi9898/Hackoween-Hacktoberfest2021 | e99601b43aa032ac1bc76f5782a39302175383bd | [
"MIT"
] | 122 | 2021-10-01T03:01:59.000Z | 2021-11-02T16:45:42.000Z | # importing the module
# You must download pytube lib by "pip install pytube3"
from pytube import YouTube
# where to save
SAVE_PATH = "E:/" #to_do
# link of the video to be downloaded
link="https://www.youtube.com/watch?v=xWOoBJUqlbI"
try:
# object creation using YouTube
# which was imported in the beginning
yt =... | 24.212121 | 64 | 0.745932 |
c46eebd2204e02c3dc058ad76df2592432e13bdb | 580 | lua | Lua | behavior3/nodes/decorators/always_fail.lua | Cabriter/behavior3lua | c4dd0dae342d6664c23dbc1df1467eb9b4af78df | [
"MIT"
] | 53 | 2019-07-26T08:55:52.000Z | 2022-03-31T07:10:24.000Z | behavior3/nodes/decorators/always_fail.lua | Cabriter/behavior3lua | c4dd0dae342d6664c23dbc1df1467eb9b4af78df | [
"MIT"
] | 7 | 2019-10-25T01:28:17.000Z | 2022-03-14T02:43:02.000Z | behavior3/nodes/decorators/always_fail.lua | Cabriter/behavior3lua | c4dd0dae342d6664c23dbc1df1467eb9b4af78df | [
"MIT"
] | 21 | 2019-09-04T07:30:27.000Z | 2022-03-04T14:44:44.000Z | -- AlwaysSuccess
--
local bret = require 'behavior3.behavior_ret'
local M = {
name = 'AlwaysFail',
type = 'Decorator',
desc = '始终返回失败',
doc = [[
+ 只能有一个子节点,多个仅执行第一个
+ 不管子节点是否成功都返回失败
]]
}
function M.run(node, env, enemy)
local yeild, last_ret = node:resume(env)
if yeild then... | 18.125 | 45 | 0.584483 |
55dfb34e826f1a3ab9cbe7a0b2b062ea54925a71 | 11,948 | lua | Lua | spec/mat4_spec.lua | LuaDist-testing/cpml-ci | 22c50c541aaae9a87e1c9ae6e7fab6ce9138ff93 | [
"MIT"
] | 9 | 2016-12-13T21:10:27.000Z | 2020-06-13T05:25:35.000Z | libs/cpml/spec/mat4_spec.lua | artDeil4ek/ludum-dare-37 | 351e841c98f1729a4c3c4104720dc6c8022c59fe | [
"MIT"
] | 3 | 2016-12-15T18:49:57.000Z | 2016-12-15T22:03:21.000Z | libs/cpml/spec/mat4_spec.lua | artDeil4ek/ludum-dare-37 | 351e841c98f1729a4c3c4104720dc6c8022c59fe | [
"MIT"
] | 2 | 2016-12-13T19:42:55.000Z | 2020-06-13T05:25:52.000Z | local mat4 = require "modules.mat4"
local vec3 = require "modules.vec3"
local utils = require "modules.utils"
describe("mat4:", function()
it("creates an identity matrix", function()
local a = mat4()
assert.is.equal(1, a[1])
assert.is.equal(0, a[2])
assert.is.equal(0, a[3])
assert.is.equal(0, a[4])
asse... | 27.915888 | 72 | 0.607131 |
6de22f9c254dfd050054eb8597b62df05c7ca71f | 1,677 | ts | TypeScript | test/codegen/CodegenTest.ts | kasparsj/schema | 098f3dc2663da478a76c98a4f1aadbfed84923bc | [
"MIT"
] | 1 | 2020-03-24T01:48:07.000Z | 2020-03-24T01:48:07.000Z | test/codegen/CodegenTest.ts | sutext/schema | 811a9cd9504c11a2646a9cb7f23f57e471f65307 | [
"MIT"
] | null | null | null | test/codegen/CodegenTest.ts | sutext/schema | 811a9cd9504c11a2646a9cb7f23f57e471f65307 | [
"MIT"
] | null | null | null | import * as fs from "fs";
import * as path from "path";
import * as rimraf from "rimraf";
import * as glob from "glob";
import * as assert from "assert";
import { generate } from "../../src/codegen/api";
const INPUT_DIR = path.resolve(__dirname, "sources");
const OUTPUT_DIR = path.resolve(__dirname, "tmp-codegen-outpu... | 29.421053 | 80 | 0.587955 |
7ef2c7f8a4683a738724d7d888269196fba24e70 | 296 | rb | Ruby | sprout-osx-git/attributes/authors.rb | miketheman/sprout | 711f465803d37704065a123a8af9d84b395debc6 | [
"MIT"
] | 1 | 2020-02-02T21:56:45.000Z | 2020-02-02T21:56:45.000Z | sprout-osx-git/attributes/authors.rb | trinitronx/sprout-osx-apps | 84319f7897e00c1e892f0bde4755eb1e311abb1a | [
"MIT"
] | null | null | null | sprout-osx-git/attributes/authors.rb | trinitronx/sprout-osx-apps | 84319f7897e00c1e892f0bde4755eb1e311abb1a | [
"MIT"
] | 2 | 2016-12-22T18:06:25.000Z | 2022-03-18T19:31:18.000Z | node.default["sprout"]["git"]["domain"] = "pivotallabs.com"
node.default["sprout"]["git"]["authors"] = [
{"initials" => "bc", "author" => "Brian Cunnie", "username" => "cunnie"},
{"initials" => "ah", "author" => "Abhi Hiremagalur", "username" => "abhi", "email" => "abhijit@hiremaga.com"},
]
| 49.333333 | 112 | 0.587838 |
651addae4a3d8f72541495c61c9b4f4ca05441a1 | 7,523 | css | CSS | WebApp/Styles/SharePanel.css | AppGeo/GPV | 8adbbf68ad0022a3023eaec99310c2174e420233 | [
"Apache-2.0"
] | 10 | 2015-03-31T03:43:25.000Z | 2018-11-20T17:05:53.000Z | WebApp/Styles/SharePanel.css | AppGeo/GPV | 8adbbf68ad0022a3023eaec99310c2174e420233 | [
"Apache-2.0"
] | 147 | 2015-01-13T19:55:32.000Z | 2020-02-14T15:34:58.000Z | WebApp/Styles/SharePanel.css | AppGeo/GPV | 8adbbf68ad0022a3023eaec99310c2174e420233 | [
"Apache-2.0"
] | 8 | 2015-05-08T13:24:54.000Z | 2018-09-15T03:03:12.000Z | /* Copyright 2016 Applied Geographics, 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... | 21.494286 | 89 | 0.631929 |
f5e846b0a6f2b819254d49b9a978a4b64683b85d | 2,281 | css | CSS | frontend/web/css/leave.css | qingshanyinyin/yii-blog | be82a96d693f7a1b7b8b16d39ba2344b6a8be03d | [
"BSD-3-Clause"
] | 2 | 2019-01-08T09:06:34.000Z | 2019-07-09T07:52:39.000Z | frontend/web/css/leave.css | qingshanyinyin/yii-blog | be82a96d693f7a1b7b8b16d39ba2344b6a8be03d | [
"BSD-3-Clause"
] | null | null | null | frontend/web/css/leave.css | qingshanyinyin/yii-blog | be82a96d693f7a1b7b8b16d39ba2344b6a8be03d | [
"BSD-3-Clause"
] | null | null | null | @charset "UTF-8";
.leave-content {
padding: 20px 30px;
background: #fff;
margin-bottom: 15px;
position: relative;
border-radius: 5px;
}
.nav-tabs a:focus {
outline:none;
}
.comment-details {
padding: 10px 10px 0 10px;
margin-top: 15px;
border-bottom: 1px dashed #ccc;
}... | 14.908497 | 46 | 0.553705 |
c9804030c57ba10b31ec0a56c24642e618a60b9b | 519 | ts | TypeScript | src/publication/publication.controller.ts | FTN-Team-DevOps/nistagram-publications | 3d5ecb63cc65a357d96784586dd9ee338244871d | [
"MIT"
] | null | null | null | src/publication/publication.controller.ts | FTN-Team-DevOps/nistagram-publications | 3d5ecb63cc65a357d96784586dd9ee338244871d | [
"MIT"
] | null | null | null | src/publication/publication.controller.ts | FTN-Team-DevOps/nistagram-publications | 3d5ecb63cc65a357d96784586dd9ee338244871d | [
"MIT"
] | null | null | null | import { Controller } from '@nestjs/common';
import { MessagePattern, Payload } from '@nestjs/microservices';
import { PublicationService } from './publication.service';
@Controller('/')
export class PublicationController {
constructor(private readonly publicationService: PublicationService) {}
@MessagePattern('p... | 34.6 | 73 | 0.753372 |
20e02272d764fe7eb4c244f7cad64f150f590ce1 | 14,704 | py | Python | S3/FileLists.py | aral/s3cmd | df748aa5cd87c4d63423523392ab5514d6d336dc | [
"ADSL"
] | 1 | 2021-09-04T03:58:18.000Z | 2021-09-04T03:58:18.000Z | S3/FileLists.py | aral/s3cmd | df748aa5cd87c4d63423523392ab5514d6d336dc | [
"ADSL"
] | null | null | null | S3/FileLists.py | aral/s3cmd | df748aa5cd87c4d63423523392ab5514d6d336dc | [
"ADSL"
] | null | null | null | ## Create and compare lists of files/objects
## Author: Michal Ludvig <michal@logix.cz>
## http://www.logix.cz/michal
## License: GPL Version 2
from S3 import S3
from Config import Config
from S3Uri import S3Uri
from SortedDict import SortedDict
from Utils import *
from Exceptions import ParameterError
from l... | 42.49711 | 158 | 0.549034 |
1a20d0320eb0a5c753e94c1196b186080e2a3f83 | 470 | kt | Kotlin | app/src/main/java/danggai/app/parcelwhere/data/rxbus/RxBusMainSelectAll.kt | danggai/FindMyPackage | b05daaab95c0293c4d3e386b85f7f6fe646f69ec | [
"Unlicense"
] | null | null | null | app/src/main/java/danggai/app/parcelwhere/data/rxbus/RxBusMainSelectAll.kt | danggai/FindMyPackage | b05daaab95c0293c4d3e386b85f7f6fe646f69ec | [
"Unlicense"
] | 1 | 2021-08-31T00:58:53.000Z | 2021-09-09T00:38:40.000Z | app/src/main/java/danggai/app/parcelwhere/data/rxbus/RxBusMainSelectAll.kt | danggai/FindMyPackage | b05daaab95c0293c4d3e386b85f7f6fe646f69ec | [
"Unlicense"
] | null | null | null | package danggai.app.parcelwhere.data.rxbus
import io.reactivex.subjects.PublishSubject
class RxBusMainSelectAll{
companion object {
private var busSubject : PublishSubject<Boolean>? = null
fun getSubject():PublishSubject<Boolean>?{
if(busSubject == null){
busSubject = ... | 22.380952 | 64 | 0.593617 |
c67b04ea07e36bb365d41a0de1a38cde1545aee0 | 1,947 | rb | Ruby | model/credit_card.rb | cyhsutw-courses/service-security_credit-card-api-service | 4d18ccb8795e65d6eac1211dd9031808fb583955 | [
"MIT"
] | null | null | null | model/credit_card.rb | cyhsutw-courses/service-security_credit-card-api-service | 4d18ccb8795e65d6eac1211dd9031808fb583955 | [
"MIT"
] | null | null | null | model/credit_card.rb | cyhsutw-courses/service-security_credit-card-api-service | 4d18ccb8795e65d6eac1211dd9031808fb583955 | [
"MIT"
] | null | null | null | require 'json'
require 'base64'
require 'openssl'
require 'sinatra/activerecord'
require 'rbnacl/libsodium'
require_relative '../environments.rb'
require_relative '../lib/luhn_validator.rb'
# Credit card entity
class CreditCard < ActiveRecord::Base
# Mixin the validator
include LuhnValidator
# instance variable... | 26.310811 | 85 | 0.724191 |
33bc39fa6225ca14386f2ba39fed4c150cb942f4 | 318 | c | C | labs/4-uart/uart-tests/2hello-once.c | aym-v/cs140e-21spr | cb8460f5e4517ed03d47db40f81dd25470e1dab6 | [
"MIT"
] | 23 | 2022-01-05T00:06:04.000Z | 2022-03-29T06:14:31.000Z | labs/4-uart/uart-tests/2hello-once.c | aym-v/cs140e-21spr | cb8460f5e4517ed03d47db40f81dd25470e1dab6 | [
"MIT"
] | null | null | null | labs/4-uart/uart-tests/2hello-once.c | aym-v/cs140e-21spr | cb8460f5e4517ed03d47db40f81dd25470e1dab6 | [
"MIT"
] | 16 | 2021-03-31T06:30:25.000Z | 2021-12-08T23:06:35.000Z | // print a single hello world and do a clean reboot. this will only
// work with the bootloader. clean_reboot will cause my-install to
// exit. you should be able to run this over and over from the
// command line.
#include "rpi.h"
void notmain(void) {
uart_init();
printk("hello world\n");
clean_reboot();
}
| 26.5 | 69 | 0.707547 |
ba707fa5d726343e57612d3c1f75cf6324775947 | 12,061 | lua | Lua | ingredient_server.lua | Arc13/OC-BrewingManager | 770d5192c87d5433fb08e012f3e92353f63e5a8c | [
"MIT"
] | 1 | 2020-02-23T20:10:34.000Z | 2020-02-23T20:10:34.000Z | ingredient_server.lua | Arc13/OC-BrewingManager | 770d5192c87d5433fb08e012f3e92353f63e5a8c | [
"MIT"
] | null | null | null | ingredient_server.lua | Arc13/OC-BrewingManager | 770d5192c87d5433fb08e012f3e92353f63e5a8c | [
"MIT"
] | null | null | null | local bRun = true
local tQueue = {}
local tPotions = {["night_vision"] = "minecraft:golden_carrot", ["invisibility"] = {"minecraft:golden_carrot", "minecraft:fermented_spider_eye"}, ["fire_resistance"] = "minecraft:magma_cream", ["leaping"] = "minecraft:rabbit_foot", ["slowness"] = {{"minecraft:rabbit_foot", "minecraft... | 30.611675 | 791 | 0.647625 |
980a1c56d638d6420d167e7fa8190d3d53719714 | 5,595 | py | Python | asdfc/wrappers.py | surchs/ASD_subtype_code_supplement | 8ed67ada3cdceb2a45b53e5d69b2a0a8cd6035f1 | [
"CC-BY-4.0"
] | 1 | 2020-04-09T01:26:07.000Z | 2020-04-09T01:26:07.000Z | asdfc/wrappers.py | surchs/ASD_subtype_code_supplement | 8ed67ada3cdceb2a45b53e5d69b2a0a8cd6035f1 | [
"CC-BY-4.0"
] | null | null | null | asdfc/wrappers.py | surchs/ASD_subtype_code_supplement | 8ed67ada3cdceb2a45b53e5d69b2a0a8cd6035f1 | [
"CC-BY-4.0"
] | null | null | null | import functools
import numpy as np
import nibabel as nib
import pathlib as pal
from .stats import seed_correlation, \
subtype_partition, subtype_maps, subtype_weights, \
compute_icc
def unpacker(func):
# Wrapper used to turn argument functions into parallelizable functions that accept just one argument
... | 52.783019 | 119 | 0.675067 |
df148221f764e677248703f2bf93143da8f57e9a | 1,519 | rb | Ruby | yaks/lib/yaks.rb | carlesjove/yaks | 0bea2fbd398e02109a62bf1d988a7f91a358489a | [
"MIT"
] | null | null | null | yaks/lib/yaks.rb | carlesjove/yaks | 0bea2fbd398e02109a62bf1d988a7f91a358489a | [
"MIT"
] | null | null | null | yaks/lib/yaks.rb | carlesjove/yaks | 0bea2fbd398e02109a62bf1d988a7f91a358489a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
require 'forwardable'
require 'set'
require 'pathname'
require 'json'
require 'anima'
require 'concord'
require 'inflection'
require 'uri_template'
require 'rack/accept'
require 'yaks/version'
require 'yaks/util'
require 'yaks/configurable'
require 'yaks/fp'
require 'yaks/fp/callable'
require... | 19.986842 | 47 | 0.753127 |
de798fcea879311b7f6b0e5c296c8f0b4f49860a | 1,918 | lua | Lua | nodetimer.lua | SwissalpS/mineunit | 2d37a446cb9aab5342b8a800c3ff6a838332e7eb | [
"MIT"
] | 2 | 2022-02-06T17:23:20.000Z | 2022-03-22T14:40:57.000Z | nodetimer.lua | SwissalpS/mineunit | 2d37a446cb9aab5342b8a800c3ff6a838332e7eb | [
"MIT"
] | 27 | 2021-10-21T22:20:18.000Z | 2022-03-31T14:50:52.000Z | nodetimer.lua | SwissalpS/mineunit | 2d37a446cb9aab5342b8a800c3ff6a838332e7eb | [
"MIT"
] | 2 | 2022-02-09T10:02:24.000Z | 2022-03-19T22:19:06.000Z | local NodeTimerRef = {}
--
-- NodeTimerRef Mineunit execution API
--
function NodeTimerRef:_step(dtime, pos)
if self:is_started() then
self._elapsed = self._elapsed + (dtime or 0.1)
if pos then
self:_execute(pos)
end
end
end
function NodeTimerRef:_execute(pos)
local elapsed = self:get_elapsed()
local ti... | 23.108434 | 104 | 0.729927 |
c9af10bd9ecc2448b0d32424736622b3853d215a | 1,306 | ts | TypeScript | packages/genesys-web-messaging-tester/__tests__/fixtures/webMessagePayloads.ts | ovotech/genesys-web-messaging-tester | 481c7b8c22e4eedcfd4ff57de3e249ac0a1f25c2 | [
"Apache-2.0"
] | 5 | 2022-03-17T09:18:23.000Z | 2022-03-30T20:07:41.000Z | packages/genesys-web-messaging-tester/__tests__/fixtures/webMessagePayloads.ts | ovotech/genesys-web-messaging-tester | 481c7b8c22e4eedcfd4ff57de3e249ac0a1f25c2 | [
"Apache-2.0"
] | null | null | null | packages/genesys-web-messaging-tester/__tests__/fixtures/webMessagePayloads.ts | ovotech/genesys-web-messaging-tester | 481c7b8c22e4eedcfd4ff57de3e249ac0a1f25c2 | [
"Apache-2.0"
] | null | null | null | import { StructuredMessage, SessionResponse } from '../../src';
/**
* Payloads taken from real interactions
*/
export const webMessagePayloads = {
sessionResponse: (): SessionResponse => ({
type: 'response',
class: 'SessionResponse',
code: 200,
body: { connected: true, newSession: true },
}),
i... | 26.653061 | 80 | 0.601838 |