identifier stringlengths 42 383 | collection stringclasses 1
value | open_type stringclasses 1
value | license stringlengths 0 1.81k | date float64 1.99k 2.02k ⌀ | title stringlengths 0 100 | creator stringlengths 1 39 | language stringclasses 157
values | language_type stringclasses 2
values | word_count int64 1 20k | token_count int64 4 1.32M | text stringlengths 5 1.53M | __index_level_0__ int64 0 57.5k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
https://github.com/MusaddikAccuKnox/spire/blob/master/pkg/common/protoutil/masks.go | Github Open Source | Open Source | Apache-2.0 | null | spire | MusaddikAccuKnox | Go | Code | 80 | 386 | package protoutil
import (
"reflect"
"strings"
"github.com/spiffe/spire-api-sdk/proto/spire/api/types"
"github.com/spiffe/spire/proto/spire/common"
"google.golang.org/protobuf/proto"
)
var (
AllTrueAgentMask = MakeAllTrueMask(&types.AgentMask{}).(*types.AgentMask)
AllTrueBundleMask = MakeAllTrueMask(&types.B... | 4,469 |
https://github.com/wolfpilot/wolfpilot/blob/master/_src/assets/_sass/base/_mixins.scss | Github Open Source | Open Source | MIT | null | wolfpilot | wolfpilot | SCSS | Code | 239 | 636 | /*-----------------------------------------------------------------------------
----------------------------1--------$MIXINS-----------------------------------
-------------------------------------------------------------------------------*/
// -------------------------------------------------------------------------... | 670 |
https://github.com/doubleleee/iMall-server/blob/master/app/admin/model/index.js | Github Open Source | Open Source | MIT | 2,019 | iMall-server | doubleleee | JavaScript | Code | 8 | 23 | module.exports = class extends think.Model {};
//# sourceMappingURL=index.js.map | 40,721 |
https://github.com/werlos/types-checker/blob/master/tests/Command/CheckCommandTest.php | Github Open Source | Open Source | MIT | null | types-checker | werlos | PHP | Code | 332 | 1,579 | <?php declare(strict_types=1);
/*
* This file is part of Types checker.
*
* (c) 2016 Kuba Werłos
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Tests\Command;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Cons... | 37,589 |
https://github.com/Mchaney3/AXSResearch/blob/master/arduino/libraries/LovyanGFX/src/lgfx/v0/platforms/esp32_common.cpp | Github Open Source | Open Source | Unlicense | null | AXSResearch | Mchaney3 | C++ | Code | 1,289 | 6,122 | #include "../lgfx_common.hpp"
#if defined (LGFX_ENABLE_V0) && defined (ESP_PLATFORM)
#include "esp32_common.hpp"
#include <driver/i2c.h>
#include <driver/spi_common.h>
#include <driver/rtc_io.h>
#include <soc/rtc.h>
#if __has_include (<esp_private/periph_ctrl.h>)
#include <esp_private/periph_ctrl.h>
#else
#include... | 48,492 |
https://github.com/KhanSei/open-source-rpg/blob/master/src/components/modals/ChangePictureModal.jsx | Github Open Source | Open Source | MIT | 2,021 | open-source-rpg | KhanSei | JavaScript | Code | 323 | 1,339 | import React, { useEffect, useState } from 'react';
import { withStyles } from '@mui/styles';
import {
TextField, Dialog, DialogActions, DialogContent,
DialogTitle, Button, Grid, Link
} from '@mui/material'
import { api } from '../../utils';
const styles = theme => ({
})
function ChangePictureModal({
cl... | 38,022 |
https://github.com/mystborn/TaffyScript/blob/master/TaffyScript.Compiler/Symbols/SymbolNode.cs | Github Open Source | Open Source | MIT | 2,022 | TaffyScript | mystborn | C# | Code | 148 | 368 | using System.Collections.Generic;
namespace TaffyScript.Compiler
{
public class SymbolNode : ISymbol
{
public SymbolType Type { get; }
public SymbolScope Scope { get; }
public string Name { get; }
public Dictionary<string, ISymbol> Children { get; } = new Dictionary<string, ISy... | 29,293 |
https://github.com/Distrotech/mono/blob/master/external/aspnetwebstack/src/System.Web.Http.SelfHost/ServiceModel/Channels/ChannelAcceptor.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | mono | Distrotech | C# | Code | 186 | 557 | // Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
using System.ServiceModel;
using System.ServiceModel.Channels;
namespace System.Web.Http.SelfHost.ServiceModel.Channels
{
internal abstract class ChannelAcceptor<TChannel> : CommunicationObje... | 22,269 |
https://github.com/Mafaka77/computer-zirna/blob/master/resources/js/courses/CourseCard.js | Github Open Source | Open Source | MIT | null | computer-zirna | Mafaka77 | JavaScript | Code | 172 | 692 | import React from "react";
import Typography from '@material-ui/core/Typography'
import Card from '@material-ui/core/Card'
import CardContent from '@material-ui/core/CardContent'
import withStyles from '@material-ui/core/styles/withStyles'
import Button from "@material-ui/core/Button";
import {CardActions} from "@mater... | 33,094 |
https://github.com/J0NNYZER0/skilllit/blob/master/src/components/common/forms/elements/HiddenInput.js | Github Open Source | Open Source | MIT | null | skilllit | J0NNYZER0 | JavaScript | Code | 24 | 64 | import React from 'react';
const HiddenInput = ({name, value}) => {
return (
<input name={name} type="hidden" value={value} onChange={()=>{}} />
)
}
export default HiddenInput;
| 48,765 |
https://github.com/drmason789/nplot/blob/master/NPlot/Drawing/IGraphics.cs | Github Open Source | Open Source | BSD-2-Clause | 2,022 | nplot | drmason789 | C# | Code | 459 | 938 | /*
* NPlot - A charting library for .NET
*
* IGraphics.cs
* Copyright (C) 2003-2006 Matt Howlett and others.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of... | 23,240 |
https://github.com/wambozi/elastic-webcrawler/blob/master/pkg/clients/elasticsearch_test.go | Github Open Source | Open Source | MIT | 2,021 | elastic-webcrawler | wambozi | Go | Code | 213 | 823 | package clients
import (
"bytes"
"crypto/md5"
"encoding/hex"
"encoding/json"
"fmt"
"testing"
)
var (
endpoint = "http://localhost:9200"
username = "elastic"
password = "changeme"
)
func TestGenerateElasticConfig(t *testing.T) {
cfg := GenerateElasticConfig([]string{endpoint}, username, password)
if fmt.S... | 31,339 |
https://github.com/OsvaldoJD/Ardom/blob/master/authenticate.php | Github Open Source | Open Source | MIT | 2,018 | Ardom | OsvaldoJD | PHP | Code | 95 | 397 | <?php
require_once './config/config.php';
session_start();
if ($_SERVER['REQUEST_METHOD'] === 'POST')
{
$username = filter_input(INPUT_POST, 'username');
$passwd = filter_input(INPUT_POST, 'passwd');
$remember = filter_input(INPUT_POST, 'remember');
$passwd= md5($passwd);
//Get DB instance. ... | 7,567 |
https://github.com/vivaxy/examples/blob/master/web-api/event-source/here.js | Github Open Source | Open Source | MIT | 2,021 | examples | vivaxy | JavaScript | Code | 34 | 97 | /**
* @since 2015-11-21 13:57
* @author vivaxy
*/
'use strict';
module.exports = [
function* (next) {
if (this.request.path === '/event-source') {
this.type = 'text/event-stream';
this.body = '{"code": 200}';
}
yield next;
},
];
| 18,457 |
https://github.com/nmldiegues/jvm-stm/blob/master/classpath-0.98/gnu/classpath/jdwp/processor/PacketProcessor.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | jvm-stm | nmldiegues | Java | Code | 809 | 2,097 | /* PacketProcessor.java -- a thread which processes command packets
from the debugger
Copyright (C) 2005, 2006 Free Software Foundation
This file is part of GNU Classpath.
GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
t... | 39,210 |
https://github.com/jaridmargolin/mixins.js/blob/master/src/mixins.js | Github Open Source | Open Source | MIT, Unlicense | null | mixins.js | jaridmargolin | JavaScript | Code | 179 | 449 | /*!
* mixins.js
*/
define(function (require) {
/* -----------------------------------------------------------------------------
* dependencies
* ---------------------------------------------------------------------------*/
var _ = require('underscore');
var Mixer = require('./mixer');
var mixin = require('./mix... | 39,780 |
https://github.com/Ray6464/MonsterHTML/blob/master/modules/syntax.js | Github Open Source | Open Source | MIT | null | MonsterHTML | Ray6464 | JavaScript | Code | 188 | 597 | // imported modules
//const { readFileSync, writeFileSync, existsSync, lstatSync } = require('fs');
//const { resolve, basename } = require('path');
const XmlReader = require('xml-reader');
//const flags = require('ray-flags');
//const { sucide } = require('sucide');
//const json2html = require('node-json2html');
// ... | 15,076 |
https://github.com/rubrikinc/nbdb2/blob/master/python/nbdb/common/metric_parsers.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | nbdb2 | rubrikinc | Python | Code | 1,003 | 3,553 | """
MetricParsers for standard metric serialization formats
"""
import logging
import time
from typing import List, Dict
from nbdb.common.context import Context
from nbdb.common.telemetry import Telemetry
from nbdb.common.tracing_config import TracingConfig
from nbdb.config.settings import Settings
from nbdb.common.da... | 2,746 |
https://github.com/shaardie/starboard/blob/master/pkg/generated/listers/aquasecurity/v1alpha1/clusterconfigauditreport.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | starboard | shaardie | Go | Code | 195 | 649 | // Code generated by lister-gen. DO NOT EDIT.
package v1alpha1
import (
v1alpha1 "github.com/aquasecurity/starboard/pkg/apis/aquasecurity/v1alpha1"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/tools/cache"
)
// ClusterConfigAuditReportLister helps list ClusterConfigAudi... | 50,343 |
https://github.com/adriannistor/lucene-solr/blob/master/solr/contrib/dataimporthandler/src/test/org/apache/solr/handler/dataimport/TestErrorHandling.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | lucene-solr | adriannistor | Java | Code | 724 | 2,445 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 39,307 |
https://github.com/k8ssandra/k8ssandra/blob/master/scripts/install-helm-docs.sh | Github Open Source | Open Source | Apache-2.0 | 2,023 | k8ssandra | k8ssandra | Shell | Code | 44 | 160 | #!/bin/bash
VERSION=1.5.0
if [[ -n $1 ]]; then
VERSION=$1
shift
fi
if [ ! -d "bin" ]
then
mkdir bin
fi
if [ ! -f "bin/helm-docs" ]
then
curl -L "https://github.com/norwoodj/helm-docs/releases/download/v${VERSION}/helm-docs_${VERSION}_Linux_x86_64.tar.gz" | tar -xvzpf - -C bin helm-docs
chmod +x bin/helm-do... | 54,498 |
https://github.com/AakashOfficial/Online-Food-Order/blob/master/OnlineFoodOrders/src/com/servlet/RegisterAdmin.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | Online-Food-Order | AakashOfficial | Java | Code | 159 | 526 | package com.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.Statement;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http... | 8,780 |
https://github.com/angelis-reis/entropiaColetivaCrowdfunding/blob/master/app/views/catarse_bootstrap/shared/user_notifier/mailer/contribution_canceled_slip.html.slim | Github Open Source | Open Source | MIT | 2,020 | entropiaColetivaCrowdfunding | angelis-reis | null | Spoken | 106 | 345 | - contribution = @notification.contribution
- company_name = Entropia ColetivaSettings[:company_name]
- contact_email = Entropia ColetivaSettings[:email_contact]
|Olá, <strong>#{contribution.user.display_name}</strong>!
br
br
| Não recebemos a confirmação de pagamento do boleto gerado para o projeto #{link_to contribu... | 53,380 |
https://github.com/lnfernal/Social-Islands/blob/master/app/Store.php | Github Open Source | Open Source | MIT | 2,021 | Social-Islands | lnfernal | PHP | Code | 32 | 114 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Store extends Model
{
//
protected $fillable = [
'name', 'desc', 'price','img_url','created','last_updated','rare','rare_quantity','offsale','gold_only','layer'
];
protected $dateFormat = 'U';
public $timestamps = false;
... | 35,282 |
https://github.com/omnioiot/rust-tokio-retry/blob/master/src/strategy/fibonacci_backoff.rs | Github Open Source | Open Source | MIT | 2,019 | rust-tokio-retry | omnioiot | Rust | Code | 385 | 1,368 | use std::time::Duration;
use std::iter::Iterator;
use std::u64::MAX as U64_MAX;
/// A retry strategy driven by the fibonacci series.
///
/// Each retry uses a delay which is the sum of the two previous delays.
///
/// Depending on the problem at hand, a fibonacci retry strategy might
/// perform better and lead to bet... | 16,699 |
https://github.com/okalil/valoriza/blob/master/server/src/routes.ts | Github Open Source | Open Source | MIT | null | valoriza | okalil | TypeScript | Code | 187 | 663 | import { Router } from 'express';
import { CreateUserController } from './controllers/CreateUserController';
import { CreateTagController } from './controllers/CreateTagController';
import { ensureAdmin } from './middlewares/ensureAdmin';
import { AuthenticateUserController } from './controllers/AuthenticateUserControl... | 11,978 |
https://github.com/Queentaker/uzh/blob/master/Informatik1/Access/Ex 12/hex_gen.py | Github Open Source | Open Source | MIT | 2,022 | uzh | Queentaker | Python | Code | 73 | 225 | #!/usr/bin/env python3
from random import choice
class GameRunner(object):
def __init__(self):
self.rows = 17
self.columns = 2
def generate_hex_codes(self):
chars = "0123456789ABCDEF"
def rand():
for _ in range(self.columns*self.rows):
start = "0x"
... | 22,494 |
https://github.com/joelvandal/opengateway/blob/master/example_posts/new_customer_post.php | Github Open Source | Open Source | Unlicense | 2,021 | opengateway | joelvandal | PHP | Code | 67 | 481 | <?php
$url = "http://localhost/api/";
$post_string = '<?xml version="1.0" encoding="UTF-8"?>
<request>
<authentication>
<api_id>EB4RTDHWE5F18BDC8ZJ3</api_id>
<secret_key>FLIDRBM9S8E8PP9DZ9T319HC8WQCTUSINFFKJ7W3</secret_key>
</authentication>
<type>NewCustomer</type>
<first_name>David</first_name>
<last_name>... | 12,735 |
https://github.com/consulo/consulo-java/blob/master/plugin/src/main/java/com/intellij/java/impl/util/xml/converters/values/ClassValueConverter.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | consulo-java | consulo | Java | Code | 274 | 863 | /*
* Copyright 2000-2009 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 9,939 |
https://github.com/keithoma/Pong-Z/blob/master/sgfx/src/window.cpp | Github Open Source | Open Source | MIT | null | Pong-Z | keithoma | C++ | Code | 351 | 1,799 | #include <sgfx/window.hpp>
#include <stdexcept>
namespace {
const char* vertex_shader_source =
R"(#version 120
attribute vec2 vertices;
varying vec2 tex_coord;
void main()
{
vec2 tmp=(vertices+vec2(1,1))/2;
tex_coord=vec2(tmp[0],-(tmp[1]-1));
gl_Position=vec4(vertices,0, 1);
}
)";
const cha... | 11,563 |
https://github.com/Yann-Fontaine/Data-Go/blob/master/C-DAT-100-LYN-2-1-py05-yann.fontaine/Procfile | Github Open Source | Open Source | MIT | 2,021 | Data-Go | Yann-Fontaine | null | Spoken | 3 | 10 | web: gunicorn py05:app | 42,604 |
https://github.com/age-rs/blitz-path/blob/master/benches/jps.rs | Github Open Source | Open Source | MIT | 2,020 | blitz-path | age-rs | Rust | Code | 109 | 467 | use criterion::{black_box, criterion_group, criterion_main, Criterion};
use movingai::parser::parse_map_file;
use movingai::parser::parse_scen_file;
use movingai::{MovingAiMap, SceneRecord};
use std::path::Path;
use blitz_path::jps_path;
const MAP: &str = "./tests/map/maze512-32-9.map";
const SCEN: &str = "./tests/ma... | 11,367 |
https://github.com/talboterie/flysystem-gcp-storage/blob/master/tests/StorageAdapterTest.php | Github Open Source | Open Source | MIT | null | flysystem-gcp-storage | talboterie | PHP | Code | 614 | 3,250 | <?php
declare(strict_types=1);
namespace Talboterie\FlysystemGCPStorage\Tests;
use Google\Cloud\Core\Exception\NotFoundException;
use Google\Cloud\Storage\Acl;
use Google\Cloud\Storage\Bucket;
use Google\Cloud\Storage\Connection\ConnectionInterface;
use Google\Cloud\Storage\StorageObject;
use League\Flysystem\Config... | 50,399 |
https://github.com/jcallano/PJON/blob/master/examples/ARDUINO/Local/ThroughLoRa/Simplex/Transmitter/Transmitter.ino | Github Open Source | Open Source | Apache-2.0 | 2,022 | PJON | jcallano | null | Spoken | 76 | 274 |
#include <PJONThroughLora.h>
/* To use this example, please download the LoRa third party Library
from https://github.com/sandeepmistry/arduino-LoRa/ */
float test;
float mistakes;
int busy;
int fail;
PJONThroughLora bus(45);
int packet;
uint8_t content[] = "01234567890123456789";
void setup() {
bus.set_co... | 40,392 |
https://github.com/trifort/skarn/blob/master/src/test/scala/skarn/push/GCMJsonTest.scala | Github Open Source | Open Source | MIT | 2,021 | skarn | trifort | Scala | Code | 132 | 495 | package skarn.push
import skarn.push.PushRequestHandleActorProtocol.Ex
import org.scalatest.{MustMatchers, WordSpecLike}
/**
* Created by yusuke on 15/07/10.
*/
class GCMJsonTest extends WordSpecLike
with MustMatchers {
"GCMentity" must {
"JSONシリアライズできる" in {
import spray.json._
import GCMProtoc... | 17,280 |
https://github.com/KaiQiangSong/CATE/blob/master/search_methods/oo_mlp.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | CATE | KaiQiangSong | Python | Code | 619 | 2,620 | import os
import sys
sys.path.insert(0, os.getcwd())
import argparse
import json
import torch
import numpy as np
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
from collections import defaultdict
class MLP(nn.Module):
def __init__(self, input_dim, n_units):
super().__init... | 17,728 |
https://github.com/MauroArgentino/PSL1GHT/blob/master/docs/search/typedefs_6.js | Github Open Source | Open Source | MIT | 2,022 | PSL1GHT | MauroArgentino | JavaScript | Code | 11 | 351 | var searchData=
[
['padactparam',['padActParam',['../pad_8h.html#a73dbca72136d443355d88e09bdbff31e',1,'pad.h']]],
['padcapabilityinfo',['padCapabilityInfo',['../pad_8h.html#afb30a738971d362dab6d705df0cbbc52',1,'pad.h']]],
['paddata',['padData',['../pad_8h.html#abcb0398ea4afd58ad298e6be4c755e4c',1,'pad.h']]],
['... | 29,956 |
https://github.com/byung90/graphhopper/blob/master/go/model_solution.go | Github Open Source | Open Source | Apache-2.0 | null | graphhopper | byung90 | Go | Code | 205 | 466 | /*
* GraphHopper Directions API
*
* You use the GraphHopper Directions API to add route planning, navigation and route optimization to your software. E.g. the Routing API has turn instructions and elevation data and the Route Optimization API solves your logistic problems and supports various constraints like time w... | 31,381 |
https://github.com/Indigerd/yii2-ddd-boilerplate/blob/master/src/App/Api/v1/Controllers/ArticleController.php | Github Open Source | Open Source | MIT | null | yii2-ddd-boilerplate | Indigerd | PHP | Code | 156 | 523 | <?php declare(strict_types=1);
namespace App\Api\v1\Controllers;
use App\Api\v1\Serializer\ApiSerializer;
use App\Api\v1\Service\ArticleService;
use Domain\Entity\Article;
use Domain\Repository\Exception\ArticleNotFoundException;
use Infrastructure\Http\Request;
use Infrastructure\Http\Response;
use yii\base\Module;
... | 50,942 |
https://github.com/razzlefratz/MotleyTools/blob/master/gcc/tools/decout.c | Github Open Source | Open Source | 0BSD | 2,021 | MotleyTools | razzlefratz | C | Code | 165 | 409 | /*====================================================================*
*
* void decout (const byte memory [], size_t extent, char c, char e, FILE * fp);
*
* memory.h
*
* print a memory region as a series of decimal octets separated
* by character c; normally, c will be DEC_EXTENDER as defined in
* ... | 23,595 |
https://github.com/daniramdan74/AndroidVerify/blob/master/library/src/test/java/com/pchmn/formvalidator/validator/ValueValidatorTest.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | AndroidVerify | daniramdan74 | Java | Code | 201 | 1,073 | package com.pchmn.formvalidator.validator;
import com.pchmn.formvalidator.R;
import junit.framework.Assert;
import org.junit.Test;
import org.robolectric.RuntimeEnvironment;
import static junit.framework.Assert.fail;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import st... | 8,945 |
https://github.com/octplane/durite/blob/master/du-sys/examples/osx.rs | Github Open Source | Open Source | MIT | 2,015 | durite | octplane | Rust | Code | 24 | 105 | extern crate du_sys as du;
extern crate libc;
#[cfg(not(any(target_os="macos")))]
fn lets_get_kraken() {}
#[cfg(any(target_os="macos"))]
fn lets_get_kraken() {
println!("{:?}", du::mounted_volume_stats());
}
fn main() {
lets_get_kraken();
}
| 22,186 |
https://github.com/st-gb/CPUinfoAndControl/blob/master/ModelData/highloadthreadattributes.hpp | Github Open Source | Open Source | MIT | null | CPUinfoAndControl | st-gb | C++ | Code | 160 | 421 | /* Do not remove this header/ copyright information.
*
* Copyright © Trilobyte Software Engineering GmbH, Berlin, Germany 2010-2011.
* You are allowed to modify and use the source code from
* Trilobyte Software Engineering GmbH, Berlin, Germany for free if you are not
* making profit with it or its adaption. Else ... | 7,215 |
https://github.com/mafuru92/innovex/blob/master/storage/framework/views/b4333ff85c9b6dc2fe24513e78beda6c4a03e40c.php | Github Open Source | Open Source | MIT | 2,020 | innovex | mafuru92 | PHP | Code | 174 | 862 | <?php $__env->startSection('content'); ?>
<br><br><br>
<div class="col-md-12 col-lg-12">
<div class="panel panel-primary">
<div class="jumbotron"style="height: 100px;"><b><p align="center">Non Productive Time</b><a class="pull-right btn btn-primary btn-sm" href="/noproduct/create">Create new</a></div>
<div class="p... | 50,261 |
https://github.com/LGC33/mcf/blob/master/app/ui/sass/fm.scss | Github Open Source | Open Source | Apache-2.0 | 2,021 | mcf | LGC33 | SCSS | Code | 198 | 671 | /**
* @classification UNCLASSIFIED
*
* @module ui.sass.fm
*
* @copyright Copyright (C) 2018, Lockheed Martin Corporation
*
* @license Apache-2.0
*
* @owner James Eckstein
*
* @author Josh Kaplan
* @author Jake Ursetta
*
* @description This defines the Sass variables.
*/
// MBEE modules
@import './utils/... | 41,893 |
https://github.com/AnZaiyun/ShoppingMall/blob/master/shoppingmall-common/src/main/java/com/anzaiyun/common/valid/Anno/IntListValueConstraintValidator.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | ShoppingMall | AnZaiyun | Java | Code | 61 | 211 | package com.anzaiyun.common.valid.Anno;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.util.HashSet;
import java.util.Set;
public class IntListValueConstraintValidator implements ConstraintValidator<IntListValue,Integer> {
private Set<Integer> set = ne... | 17,545 |
https://github.com/sazik-rzn/yii2-shopcart-light/blob/master/Shopcart.php | Github Open Source | Open Source | BSD-3-Clause | null | yii2-shopcart-light | sazik-rzn | PHP | Code | 588 | 1,757 | <?php
namespace sazik\shopcart\light;
use Yii;
/**
* ShopCart component.
*/
class Shopcart extends \yii\base\Component {
/**
* Classname of Product model
* @var string
*/
public $model_class_name = false;
/**
* ID of current user component
* @var string
*/
pu... | 37,487 |
https://github.com/kubeedge/kubeedge/blob/master/cloud/pkg/admissioncontroller/admission.go | Github Open Source | Open Source | Apache-2.0 | 2,023 | kubeedge | kubeedge | Go | Code | 924 | 4,342 | package admissioncontroller
import (
"context"
"crypto/tls"
"errors"
"fmt"
"net/http"
"os"
admissionv1 "k8s.io/api/admission/v1"
admissionregistrationv1 "k8s.io/api/admissionregistration/v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io... | 14,738 |
https://github.com/albertpastrana/-scala/blob/master/result-specs2/build.sbt | Github Open Source | Open Source | MIT | 2,019 | -scala | albertpastrana | Scala | Code | 71 | 273 | import sbt.Keys._
import sbt._
name := "uscala-result-specs2"
organization := "org.uscala"
description := "Specs2 matchers for uscala result."
licenses += "MIT" -> url("https://opensource.org/licenses/MIT")
homepage := Some(url("https://github.com/albertpastrana/uscala/tree/master/result"))
developers := List(
Devel... | 37,525 |
https://github.com/shenlanAZ/standard-store/blob/master/stock/src/main/java/ltd/inmind/stock/service/StockService.java | Github Open Source | Open Source | MIT | 2,021 | standard-store | shenlanAZ | Java | Code | 238 | 889 | package ltd.inmind.stock.service;
import io.etcd.jetcd.ByteSequence;
import io.etcd.jetcd.Client;
import io.etcd.jetcd.KV;
import io.etcd.jetcd.KeyValue;
import io.etcd.jetcd.kv.GetResponse;
import io.etcd.jetcd.kv.TxnResponse;
import io.etcd.jetcd.op.Cmp;
import io.etcd.jetcd.op.CmpTarget;
import io.etcd.jetcd.op.Op;... | 45,050 |
https://github.com/quinnjr/quinnjr.tech/blob/master/server/@generated/prisma-nestjs-graphql/project/project-update-with-where-unique-without-user.input.ts | Github Open Source | Open Source | 0BSD | 2,021 | quinnjr.tech | quinnjr | TypeScript | Code | 42 | 143 | import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { ProjectWhereUniqueInput } from './project-where-unique.input';
import { ProjectUpdateWithoutUserInput } from './project-update-without-user.input';
@InputType()
export class ProjectUpdateWithWhereUniqueWithoutUserInput {
... | 42,928 |
https://github.com/llebc/laravel-orion/blob/master/src/Http/Routing/MorphManyRelationResourceRegistrar.php | Github Open Source | Open Source | MIT | 2,022 | laravel-orion | llebc | PHP | Code | 9 | 37 | <?php
namespace Orion\Http\Routing;
class MorphManyRelationResourceRegistrar extends HasManyRelationResourceRegistrar
{
} | 10,777 |
https://github.com/dreamwarakorn/coffee-order/blob/master/OrderCoffeeApplication/CustomizeViewController.swift | Github Open Source | Open Source | MIT | 2,018 | coffee-order | dreamwarakorn | Swift | Code | 1,452 | 6,078 | //
// CustomizeViewController.swift
// OrderCoffeeApplication
//
// Created by Warakorn Rungseangthip on 22/4/2561 BE.
// Copyright © 2561 Warakorn Rungseangthip. All rights reserved.
//
import UIKit
import CoreData
import Firebase
class CustomizeViewController: UIViewController {
@IBOutlet weak var imgView:... | 35,746 |
https://github.com/daifu/Course-Manager/blob/master/Resources/ui/SubDirectories/Courses.js | Github Open Source | Open Source | Apache-2.0 | 2,012 | Course-Manager | daifu | JavaScript | Code | 94 | 396 |
require('lib/require_patch').monkeypatch(this);
(function(){
// Working with the current window
var instance,
table = require('lib/tables'),
course_table,
dbData,
db = require('model/db'),
httpReq = require('lib/http_requests'),
term = Ti.UI.currentWindow.dataTo... | 638 |
https://github.com/nightlark/re2c/blob/master/test/captures/same1_leftmost.re | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-public-domain | 2,023 | re2c | nightlark | C++ | Code | 24 | 63 | // re2c $INPUT -o $OUTPUT -i --leftmost-captures --fixed-tags toplevel
// POSIX and leftmost policies produce the same results.
/*!re2c
(("a")* | ("a"*))* {}
*/
| 6,443 |
https://github.com/microsoftgraph/msgraph-sdk-java/blob/master/src/main/java/com/microsoft/graph/requests/WorkbookChartSeriesItemAtRequestBuilder.java | Github Open Source | Open Source | MIT | 2,023 | msgraph-sdk-java | microsoftgraph | Java | Code | 390 | 1,106 | // Template Source: BaseMethodRequestBuilder.java.tt
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// -----------------------------... | 7,771 |
https://github.com/animeloyalty/animeloyalty-client/blob/master/src/shared/managers/ScreenManager.ts | Github Open Source | Open Source | MIT | 2,021 | animeloyalty-client | animeloyalty | TypeScript | Code | 130 | 487 | import * as app from '..';
import * as mobx from 'mobx';
const fullscreenKey = 'fullscreen';
export class ScreenManager implements app.IInputHandler {
@mobx.action
attach() {
app.core.input.subscribe(this);
return this;
}
@mobx.action
onElectronStart() {
if (!app.core.store.getBoolean(fullscreen... | 75 |
https://github.com/webosce/chromium53/blob/master/src/ui/base/resource/resource_bundle_mac_unittest.mm | Github Open Source | Open Source | BSD-3-Clause, Apache-2.0 | 2,018 | chromium53 | webosce | Objective-C++ | Code | 733 | 2,452 | // Copyright 2015 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 "ui/base/resource/resource_bundle.h"
#import <AppKit/AppKit.h>
#include <stddef.h>
#include <stdint.h>
#include "base/base_paths.h"
#include "b... | 41,170 |
https://github.com/iridium-browser/iridium-browser/blob/master/buildtools/third_party/libc++/trunk/test/std/input.output/filesystems/class.rec.dir.itr/rec.dir.itr.members/ctor.pass.cpp | Github Open Source | Open Source | BSD-3-Clause, NCSA, LLVM-exception, MIT, Apache-2.0 | 2,023 | iridium-browser | iridium-browser | C++ | Code | 663 | 2,427 | //===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 40,214 |
https://github.com/bhavikji/gatsby-bug-repo/blob/master/src/templates/category-template.js | Github Open Source | Open Source | MIT | null | gatsby-bug-repo | bhavikji | JavaScript | Code | 420 | 1,706 | import React, {PureComponent} from 'react';
import {graphql, Link} from 'gatsby';
import Layout from "../components/layout";
import SEO from "../components/SEO";
import chunk from "lodash/chunk";
import Img from "gatsby-image";
import moment from "moment";
import ClampLines from "react-clamp-lines";
import bhavikji fr... | 33,937 |
https://github.com/wsAndy/free-view-point/blob/master/src/tool.cpp | Github Open Source | Open Source | MIT | null | free-view-point | wsAndy | C++ | Code | 2,062 | 7,588 | #include "tool.h"
using namespace std;
using namespace fvv_tool;
using namespace cv;
Tool::Tool()
{
cout << "Tool init." <<endl;
cali = new ImageFrame[camera_num];
}
Tool::Tool(string dataset_name, int cam_num)
{
if( dataset_name.compare("ballet") == 0)
{
MaxZ = 130;
MinZ = 42;
}e... | 15,614 |
https://github.com/mazgi-sandbox/201909.spike.frontend-bff-gke/blob/master/provisioning/domain/terraform.tf | Github Open Source | Open Source | MIT | 2,019 | 201909.spike.frontend-bff-gke | mazgi-sandbox | HCL | Code | 47 | 157 | # --------------------------------
# Terraform configuration
terraform {
required_version = "0.12.9"
required_providers {
google = "2.15.0"
google-beta = "2.15.0"
}
backend "gcs" {
prefix = "terraform/domain/state"
}
}
provider "google" {
project = var.gcp_project_id
region = "us-cen... | 3,724 |
https://github.com/jingtingzhiwu/open-cloud/blob/master/opencloud-common/opencloud-common-core/src/main/java/com/github/lyd/common/utils/SignatureUtils.java | Github Open Source | Open Source | MIT | null | open-cloud | jingtingzhiwu | Java | Code | 517 | 2,025 | package com.github.lyd.common.utils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.util.Assert;
import java.text.ParseException;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
/**
* @author liuyadu
*/
@Slf4j
public class SignatureUtils {
public st... | 276 |
https://github.com/ajyku/nft-marketplace-near/blob/master/contracts/MarketPlace.sol | Github Open Source | Open Source | MIT | 2,022 | nft-marketplace-near | ajyku | Solidity | Code | 1,012 | 3,504 | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.3;
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165Checker.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "./IRRoy... | 54,145 |
https://github.com/txstate-etc/mssql-async/blob/master/test/01.basic.ts | Github Open Source | Open Source | MIT | null | mssql-async | txstate-etc | TypeScript | Code | 440 | 1,125 | /* eslint-disable @typescript-eslint/no-unused-expressions */
/* global describe, it */
import { expect } from 'chai'
import db from '../src/db'
describe('basic tests', () => {
it('should be able to create a couple test tables', async () => {
await Promise.all([
db.execute(`CREATE TABLE dbo.test (
... | 7,763 |
https://github.com/NYUMedML/ObesityPY/blob/master/src/inputReader.py | Github Open Source | Open Source | MIT | 2,021 | ObesityPY | NYUMedML | Python | Code | 1,190 | 4,898 | import config as config_file
import pandas as pd
import pickle
import re
import matplotlib.pylab as plt
import time
from datetime import timedelta
from dateutil import parser
import numpy as np
def load_csv_input():
print('loading data:', config_file.input_csv)
data1 = pd.read_csv(config_file.input_csv[0], de... | 46,198 |
https://github.com/aepyornis/BushwickCommunityMap/blob/master/bower_components/cartodb.js/src/geo/ui/tooltip.js | Github Open Source | Open Source | BSD-3-Clause | 2,016 | BushwickCommunityMap | aepyornis | JavaScript | Code | 417 | 1,363 |
cdb.geo.ui.Tooltip = cdb.geo.ui.InfoBox.extend({
defaultTemplate: '<p>{{text}}</p>',
className: 'cartodb-tooltip',
defaults: {
vertical_offset: 0,
horizontal_offset: 0,
position: 'top|center'
},
initialize: function() {
this.options.template = this.options.template || this.defaultTemplate;... | 15,132 |
https://github.com/neal-nankivell-cko/checkout-sdk-net/blob/master/test/CheckoutSdk.Tests/ApiTestFixture.cs | Github Open Source | Open Source | MIT | null | checkout-sdk-net | neal-nankivell-cko | C# | Code | 89 | 326 | using Microsoft.Extensions.Configuration;
using Serilog;
using System;
using System.IO;
using System.Reflection;
using Xunit.Abstractions;
namespace Checkout.Tests
{
public class ApiTestFixture
{
private static readonly Lazy<CheckoutConfiguration> LazyConfiguration = new Lazy<CheckoutConfiguration>(Loa... | 37,609 |
https://github.com/clayne/toys/blob/master/avx512-utf8-to-utf32/avx512-transcode-utf8-ver1.inl.cpp | Github Open Source | Open Source | BSD-2-Clause | null | toys | clayne | C++ | Code | 657 | 2,628 | // included directly
__m512i avx512_utf8_to_utf32__aux__version1(__m512i utf8) {
/*
Input:
- utf8: bytes stored at separate 32-bit words
- valid: which words have valid UTF-8 characters
Bit layout of single word. We show 4 cases for each possible
UTF-8 character encoding. T... | 23,818 |
https://github.com/gevorgmo/nodify-shopify/blob/master/src/resources/location.coffee | Github Open Source | Open Source | MIT | 2,016 | nodify-shopify | gevorgmo | CoffeeScript | Code | 19 | 55 | Base = require './base'
class Location extends Base
slug: "location"
prefix: "/locations"
constructor: (site) ->
super(site)
module.exports = Location
| 42,102 |
https://github.com/aounhaider1/Crud2Go/blob/master/crud2go-testing/src/main/groovy/de/unioninvestment/crud2go/testing/CrudTestConfigBuilder.groovy | Github Open Source | Open Source | Apache-2.0 | 2,020 | Crud2Go | aounhaider1 | Groovy | Code | 1,296 | 4,274 | package de.unioninvestment.crud2go.testing
import de.unioninvestment.crud2go.testing.internal.CrudTestConfigImpl
import de.unioninvestment.crud2go.testing.internal.db.TestConnectionPoolFactory
import de.unioninvestment.crud2go.testing.internal.gui.GuiMocksBuilder
import de.unioninvestment.crud2go.testing.internal.prefs... | 34,343 |
https://github.com/Worseize/SmartHome/blob/master/MQTT/rules.js | Github Open Source | Open Source | MIT | null | SmartHome | Worseize | JavaScript | Code | 139 | 496 | var deviceNames = ["OfficeLamp", "OfficeLamp2", "OfficeVent", "LeftRollerShutter", "RightRollerShutter", "CentralRollerShutter"];
var titleNames = ["Office"];
defineVirtualDevice(deviceNames[0], {
title: titleNames[0],
cells: {
'OfficeLampControl': {type: "switch", value: false}, //Control
'OfficeLampStatu... | 11,764 |
https://github.com/AKarassev/datafari/blob/master/WebContent/admin/synonyms.jsp | Github Open Source | Open Source | Apache-2.0 | null | datafari | AKarassev | null | Spoken | 352 | 1,374 | <%@ page import="java.io.*,java.util.*, javax.servlet.*" %>
<%@ page import="javax.servlet.http.*" %>
<%@ page import="org.apache.commons.fileupload.*" %>
<%@ page import="org.apache.commons.fileupload.disk.*" %>
<%@ page import="org.apache.commons.fileupload.servlet.*" %>
<%@ page import="org.apache.commons.io.output.... | 30,583 |
https://github.com/ko9ma7/KaiheilaBot/blob/master/src/KaiheilaBot.Core/Extension/IEventExecutors/IPrivateDeletedReactionEventExecutor.cs | Github Open Source | Open Source | MIT | 2,021 | KaiheilaBot | ko9ma7 | C# | Code | 42 | 235 | using KaiheilaBot.Core.Models.Events;
using KaiheilaBot.Core.Models.Events.PrivateMessageEvents;
using System.Threading.Tasks;
using KaiheilaBot.Core.Services.IServices;
using Microsoft.Extensions.Logging;
namespace KaiheilaBot.Core.Extension.IEventExecutors
{
public interface IPrivateDeletedReactionEventExecutor... | 1,961 |
https://github.com/NatalyAristova/Training_python/blob/master/data/contacts.py | Github Open Source | Open Source | Apache-2.0 | null | Training_python | NatalyAristova | Python | Code | 18 | 106 | from model.group_contact import Group_contact
testdata = [
Group_contact(firstname="firstname1", middlename="middlename1", lastname="lastname1", nickname="nickname1", title="title1"),
Group_contact(firstname="firstname2", middlename="middlename2", lastname="lastname2", nickname="nickname2", title="title2")
]
| 39,858 |
https://github.com/johnymarek/tsdemuxer/blob/master/pshare/mem.cpp | Github Open Source | Open Source | MIT | 2,016 | tsdemuxer | johnymarek | C++ | Code | 37 | 189 | #include "mem.h"
#ifdef DEBUG
#include <stdlib.h>
namespace mem
{
size_t mem_total=0;
}
void* mem::malloc(size_t size)
{
char* p=(char*)::malloc(size+sizeof(size_t));
*((u_int32_t*)p)=size;
mem_total+=size;
return p+sizeof(size_t);
}
void mem::free(void* ptr)
{
char* p=(char*)ptr;
p-... | 23,369 |
https://github.com/Larsjep/boost-wintls/blob/master/test/async_echo_client.hpp | Github Open Source | Open Source | BSL-1.0 | 2,021 | boost-wintls | Larsjep | C++ | Code | 137 | 610 | //
// Copyright (c) 2021 Kasper Laudrup (laudrup at stacktrace dot dk)
//
// 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)
//
#ifndef BOOST_WINTLS_TEST_ASYNC_ECHO_CLIENT_HPP
#define BOOST_WINTLS_TEST_ASYNC_ECHO_CLIE... | 18,291 |
https://github.com/liuyanjun528/changshnegshu/blob/master/annaru-upms-service/src/main/java/com/annaru/upms/mapper/UserBasicMapper.java | Github Open Source | Open Source | Apache-2.0 | null | changshnegshu | liuyanjun528 | Java | Code | 228 | 1,007 | package com.annaru.upms.mapper;
import com.annaru.upms.entity.UserBasic;
import com.annaru.upms.entity.vo.UserCardVo;
import com.annaru.upms.entity.vo.UserExamMainDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extensi... | 11,532 |
https://github.com/laurentperez/lapin/blob/master/src/topology.rs | Github Open Source | Open Source | MIT | 2,020 | lapin | laurentperez | Rust | Code | 334 | 997 | use crate::{
channel::Channel,
consumer::Consumer,
exchange::ExchangeKind,
options::{BasicConsumeOptions, ExchangeDeclareOptions, QueueDeclareOptions},
queue::Queue,
types::{FieldTable, ShortString},
};
use serde::{Deserialize, Serialize};
use std::ops::Deref;
/// The current topology definitio... | 14,262 |
https://github.com/georgejecook/rooibos/blob/master/bsc-plugin/src/lib/rooibos/TestSuiteBuilder.spec.ts | Github Open Source | Open Source | MIT | 2,023 | rooibos | georgejecook | TypeScript | Code | 2,448 | 10,732 | import * as chai from 'chai';
// eslint-disable-next-line
import { expect } from 'chai';
import { TestSuiteBuilder } from './TestSuiteBuilder';
import type { TestSuite } from './TestSuite';
import type { TestCase } from './TestCase';
import { BrsFile, Program, ProgramBuilder } from 'brighterscript';
import { RooibosS... | 2,083 |
https://github.com/DetectiveQuack/duckumentJS/blob/master/tests/templates/class.js | Github Open Source | Open Source | MIT | null | duckumentJS | DetectiveQuack | JavaScript | Code | 39 | 51 | /**
* Class comment, the name of the class if what groups the subsequent comments
*
* Comment on new line, should be able to process this as still part of the description
*
*
* @class Test
*/
| 41,356 |
https://github.com/iOSWizards/AwesomeMedia/blob/master/Example/Pods/AwesomeCore/AwesomeCore/Classes/NetworkServices/EventRegistrationNS.swift | Github Open Source | Open Source | MIT | 2,019 | AwesomeMedia | iOSWizards | Swift | Code | 122 | 370 | //
// EventRegistrationNS.swift
// Pods
//
// Created by Leonardo Vinicius Kaminski Ferreira on 26/06/18.
//
import Foundation
class EventRegistrationNS {
static let shared = EventRegistrationNS()
lazy var awesomeRequester: AwesomeCoreRequester = AwesomeCoreRequester(cacheType: .realm)
init()... | 27,582 |
https://github.com/jxxiaoxi/ME_DEMO/blob/master/Launcher3/src/com/android/launcher3/AppsCustomizePagedView.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | ME_DEMO | jxxiaoxi | Java | Code | 20,000 | 47,168 | /* * Copyright (C) 2014 MediaTek Inc. * Modification based on code covered by the mentioned copyright * and/or permission notice(s). */ /* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Li... | 9,964 |
https://github.com/k-int/yarm/blob/master/yarm_app/grails-app/controllers/UrlMappings.groovy | Github Open Source | Open Source | Apache-2.0 | null | yarm | k-int | Groovy | Code | 169 | 873 | package yarm_app
class UrlMappings {
static mappings = {
"/$controller/$action?/$id?(.$format)?"{
constraints {
// apply constraints here
}
}
"/"(controller:'home',action:'index')
"/directory/org/$id/dashboard"(controller:'directory',action:... | 18,190 |
https://github.com/joeldiaz2302/react-native-rfid-nfc/blob/master/index.js | Github Open Source | Open Source | MIT | 2,022 | react-native-rfid-nfc | joeldiaz2302 | JavaScript | Code | 519 | 1,865 | 'use strict';
import {
NativeModules,
DeviceEventEmitter,
NativeEventEmitter,
Platform
} from 'react-native';
export const NfcDataType = {
NDEF : "NDEF",
TAG : "TAG"
};
export const NdefRecordType = {
TEXT : "TEXT",
URI : "URI",
MIME : "MIME"
};
const { ReactNativeNFC } = NativeModul... | 52,362 |
https://github.com/miker83z/IOTA_DHT/blob/master/hypfs-master/javascript/node_modules/@iota/converter/out/converter/src/ascii.js | Github Open Source | Open Source | Apache-1.1 | null | IOTA_DHT | miker83z | JavaScript | Code | 350 | 897 | "use strict";
exports.__esModule = true;
var _1 = require("./");
var errors = require("./errors");
/**
* This method converts ASCII characters to [trytes](https://docs.iota.org/docs/getting-started/0.1/introduction/ternary).
*
* ## Related methods
*
* To convert trytes to ASCII characters, use the [`trytesToAscii(... | 43,352 |
https://github.com/ricardojosegomezulmke/az-use-case-perf-tests/blob/master/analytics/_run.all.sh | Github Open Source | Open Source | MIT | 2,020 | az-use-case-perf-tests | ricardojosegomezulmke | Shell | Code | 525 | 1,582 | #!/usr/bin/env bash
# ---------------------------------------------------------------------------------------------
# MIT License
# Copyright (c) 2020, Solace Corporation, Ricardo Gomez-Ulmke (ricardo.gomez-ulmke@solace.com)
# ---------------------------------------------------------------------------------------------... | 27,526 |
https://github.com/fbrosda/weather-maps/blob/master/src/datafetcher/CloudDataFetcher.ts | Github Open Source | Open Source | MIT | 2,022 | weather-maps | fbrosda | TypeScript | Code | 267 | 834 | import NoaaDataFetcher from "./NoaaDataFetcher";
import { Variable, Level, Grib2Json } from "./NoaaTypes";
import { PNG } from "pngjs";
import { promises as fs } from "fs";
export default class CloudDataFetcher extends NoaaDataFetcher {
variableConfigs = [
{
variable: Variable.CloudCover,
level: Leve... | 26,508 |
https://github.com/hchiam/javascriptSandbox/blob/master/console-dir.js | Github Open Source | Open Source | MIT | 2,019 | javascriptSandbox | hchiam | JavaScript | Code | 37 | 73 | // console.dir is like console.log but in Firefox the direct descendants expand in the console for .dir:
console.dir({ topLevel: { immediateInner: { evenDeeper: "info" } } });
console.log({ topLevel: { immediateInner: { evenDeeper: "info" } } });
| 15,264 |
https://github.com/hazama-yuinyan/MathLanguage/blob/master/Parser.cs | Github Open Source | Open Source | MIT | null | MathLanguage | hazama-yuinyan | C# | Code | 1,577 | 4,925 | using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text.RegularExpressions;
using CalculatorCompetition.Backend.Runtime;
using CalculatorCompetition.Backend.Runtime.Instruction;
using CalculatorCompetition.Backend.TypeSystem;
using ... | 53,243 |
https://github.com/nm0i/shadowgate/blob/master/cmds/spells/c/_clashing_rocks.c | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,020 | shadowgate | nm0i | C | Code | 312 | 961 | #include <std.h>
#include <spell.h>
#include <magic.h>
#include <daemons.h>
inherit SPELL;
void create()
{
::create();
set_spell_name("clashing rocks");
set_spell_level(([ "mage" : 9, "druid":9,]));
set_mystery("stone");
set_domains("magic");
set_spell_sphere("conjuration_summoning");
set... | 50,617 |
https://github.com/karlvr/openapi-generator-plus-generators/blob/master/packages/typescript-fetch-node-client/templates/hooks/modelsImports.hbs | Github Open Source | Open Source | Apache-2.0 | 2,022 | openapi-generator-plus-generators | karlvr | null | Spoken | 6 | 10 | import { Buffer } from "buffer";
| 21,918 |
https://github.com/Ducasse/SmallKanren/blob/master/SmallKanren-Core.package/SKUnificationConstraint.class/instance/simplify..st | Github Open Source | Open Source | MIT | 2,021 | SmallKanren | Ducasse | null | Spoken | 23 | 44 | comparing
simplify: aConstraint
"Unification constraints are never already a part of existing constraints, so they should never be simplifying new constraints."
self shouldNotImplement.
| 51,220 |
https://github.com/haroldcarr/learn-haskell-coq-ml-etc/blob/master/haskell/topic/exceptions/2017-10-andre-van-der-merwe-pure-and-exceptions-2018-01-exceptions-and-free/E1_2.lhs | Github Open Source | Open Source | Unlicense | 2,021 | learn-haskell-coq-ml-etc | haroldcarr | null | Spoken | 410 | 731 | > {-# LANGUAGE NoImplicitPrelude #-}
> {-# LANGUAGE OverloadedStrings #-}
> {-# LANGUAGE ScopedTypeVariables #-}
>
> module E1_2 where
>
> import E1_1 (job1, job2, job3)
> ------------------------------------------------------------------------------
> import qualified Data.Text as T
> import q... | 42,422 |
https://github.com/jtgulbronson/idmexhibit/blob/master/dev/mural/script.js | Github Open Source | Open Source | MIT | 2,018 | idmexhibit | jtgulbronson | JavaScript | Code | 624 | 2,744 | // CURSOR STATE WHEN VIDEOS ARE PLAYING
// $(function(){
// var timer;
// var fadeIn = false;
// $(document).mousemove(function(){
// if(!fadeIn){
// if(timer){
// clearTimeout(timer);
// timer = 0;
// }
// $("html").css({
// cursor: ''
// });
// }else{
// $("video").css({
// cur... | 868 |
https://github.com/Bramas/tps-c-students/blob/master/include/cmd_args.h | Github Open Source | Open Source | MIT | null | tps-c-students | Bramas | C | Code | 117 | 333 | #ifndef CMD_ARGS_H
#define CMD_ARGS_H
#include <stdbool.h>
#include <stdlib.h>
#include "types.h"
#define COMMAND_ADD_STR "add"
#define COMMAND_LIST_STR "list"
#define COMMAND_REMOVE_STR "remove"
#define COMMAND_SEARCH_STR "search"
/**
* input arguments from the command line
*/
struct st_cmd_args
{
st_student_t... | 25,764 |
https://github.com/andyli/neko/blob/master/cmake/patch_mariadb.cmake | Github Open Source | Open Source | Apache-2.0 | 2,022 | neko | andyli | CMake | Code | 56 | 250 | # https://jira.mariadb.org/browse/CONC-174
set(cmakelists ${mariadb_source}/CMakeLists.txt)
file(READ ${cmakelists} content)
# do not use replace /MD with /MT
string(REPLACE
"STRING(REPLACE \"/MD\" \"/MT\" COMPILER_FLAGS \${COMPILER_FLAGS})"
"# STRING(REPLACE \"/MD\" \"/MT\" COMPILER_FLAGS \${COMPILER_FLAGS})"
co... | 23,113 |
https://github.com/tracker1/roughneckbbs-mods/blob/master/reference/sbbs-stock/exec/freqitcfg.js | Github Open Source | Open Source | 0BSD | 2,021 | roughneckbbs-mods | tracker1 | JavaScript | Code | 598 | 2,186 | load("sbbsdefs.js");
load("uifcdefs.js");
load("fidocfg.js");
var cfg=new FREQITCfg();
// Backward compatability hack.
if (typeof uifc.list.CTX === "undefined") {
uifc.list.CTX = function () {
this.cur = 0;
this.bar = 0;
}
}
/*
* Pass false if you will not be immediately redrawing your menu
*/
var dctx = {};... | 41,684 |
https://github.com/RyanOatz99/terraform-vault-identities/blob/master/modules/vault-identity-entities/main.tf | Github Open Source | Open Source | MIT | 2,020 | terraform-vault-identities | RyanOatz99 | HCL | Code | 83 | 266 | terraform {
required_version = ">= 0.12"
}
data "vault_auth_backend" "backend" {
for_each = {
for alias in var.aliases :
alias.name => alias
}
path = each.value.auth_path
}
resource "vault_identity_entity" "entity" {
for_each = {
for entity in var.entities :
entity.name => entity
}
name ... | 25,699 |
https://github.com/shakhruz/seeds-smart-contracts/blob/master/include/tables/size_table.hpp | Github Open Source | Open Source | MIT | 2,022 | seeds-smart-contracts | shakhruz | C++ | Code | 199 | 545 | #include <eosio/eosio.hpp>
using eosio::name;
#define DEFINE_SIZE_TABLE TABLE size_table { \
name id; \
uint64_t size; \
uint64_t primary_key()const { return id.value; } \
};
#define DEFINE_SIZE_TABLE_MULTI_INDEX typedef eosio::multi_index<"sizes"_n, size_table> size_tables;
#define DE... | 50,293 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.