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/DimaKoz/moexiss/blob/master/general_test.go | Github Open Source | Open Source | MIT | null | moexiss | DimaKoz | Go | Code | 502 | 1,574 | package moexiss
import (
"fmt"
"github.com/buger/jsonparser"
"io/ioutil"
"net/http"
"net/http/httptest"
"os"
"path/filepath"
"testing"
)
func TestParseStringWithDefaultValueNull(t *testing.T) {
var nullValue = []byte("null")
expectedValue := ""
var expectedErr error = nil
got, err := parseStringWithDefaul... | 31,606 |
https://github.com/luen-x/OfficeAssitant/blob/master/src/pages/components/sale/property-coin/popup/adjust-modal.vue | Github Open Source | Open Source | MIT | 2,020 | OfficeAssitant | luen-x | Vue | Code | 259 | 1,365 | <template>
<i-modal
ref="modal"
v-model="visible"
:loading="true"
:mask-closable="false"
title="调整微币余额"
width="400"
class="v-sale-property-coin-adjust-modal"
@on-ok="handleOk"
@on-cancel="handleCancel"
>
<i-form
ref="form"
:label-width="100"
:model="formData"
:rules="ruleValidate"
... | 36,718 |
https://github.com/hasanaburayyan/aws-cdk-presentation/blob/master/src/in_case_demo_emergency/solutions/my-first-stack.ts | Github Open Source | Open Source | Apache-2.0 | 2,021 | aws-cdk-presentation | hasanaburayyan | TypeScript | Code | 115 | 509 | import * as codebuild from '@aws-cdk/aws-codebuild';
import * as codecommit from '@aws-cdk/aws-codecommit';
import * as s3 from '@aws-cdk/aws-s3';
import * as cdk from '@aws-cdk/core';
import { MyFirstAspect } from '../in_case_demo_emergency/solutions/my-first-aspect';
export class MyFirstStack extends cdk.Stack {
c... | 36,014 |
https://github.com/Ericsson/eva/blob/master/annotator/migrations/0003_videolabels.py | Github Open Source | Open Source | BSD-2-Clause | 2,020 | eva | Ericsson | Python | Code | 51 | 226 | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-06-25 12:58
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('annotator', '0002_auto_20180619_1155'),
]
operations... | 3,859 |
https://github.com/cothong/kraken-rules/blob/master/kraken-model-api/src/main/java/kraken/model/context/ContextDefinition.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | kraken-rules | cothong | Java | Code | 278 | 564 | /*
* Copyright 2019 EIS Ltd and/or one of its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... | 11,254 |
https://github.com/vivacebelles/QCEngine/blob/master/qcengine/programs/entos.py | Github Open Source | Open Source | BSD-3-Clause | null | QCEngine | vivacebelles | Python | Code | 1,127 | 4,002 | """
The entos QCEngine Harness
"""
import json
import string
from typing import Any, Dict, List, Optional, Set, Tuple, TYPE_CHECKING
if TYPE_CHECKING:
from ..config import TaskConfig
from qcelemental.models import AtomicInput
from qcelemental.models import AtomicResult
from qcelemental.util import parse_vers... | 34,976 |
https://github.com/codepainters/edalize/blob/master/edalize/flows/sim.py | Github Open Source | Open Source | BSD-2-Clause | 2,022 | edalize | codepainters | Python | Code | 188 | 606 | # Copyright edalize contributors
# Licensed under the 2-Clause BSD License, see LICENSE for details.
# SPDX-License-Identifier: BSD-2-Clause
import os.path
from edalize.flows.edaflow import Edaflow
class Sim(Edaflow):
"""Run a simulation"""
argtypes = ["plusarg", "vlogdefine", "vlogparam"]
FLOW = [
... | 9,791 |
https://github.com/Solotov/fuxi/blob/master/fuxi/common/utils/poc_handler.py | Github Open Source | Open Source | MIT | 2,020 | fuxi | Solotov | Python | Code | 73 | 327 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author : jeffzhang
# @Time : 2019/1/21
# @File : poc_parser.py
# @Desc : ""
import re
from fuxi.common.utils.logger import logger
def poc_parser(poc_str):
name_pattern = re.compile(r'name\s*=\s*[\'\"\[](.*)[\'\"\]]')
app_pattern = re.compile(r'appNam... | 8,105 |
https://github.com/AlexBarazal/adaptInternetParaTodos/blob/master/gravaCliente.php | Github Open Source | Open Source | MIT | 2,017 | adaptInternetParaTodos | AlexBarazal | PHP | Code | 98 | 457 | <?php
if(isset($_POST['nome']) && isset($_POST['email']) && isset($_POST['senha']) && isset($_POST['cpf'])) {
include_once "conexao.php";
$nmCliente = $_POST["nome"];
$emailCliente = $_POST["email"];
$sen... | 37,269 |
https://github.com/Thorium-Sim/thorium-nova/blob/master/client/tailwind.config.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | thorium-nova | Thorium-Sim | JavaScript | Code | 192 | 925 | const plugin = require("tailwindcss/plugin");
module.exports = {
mode: "jit",
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
theme: {
extend: {
typography: theme => ({
DEFAULT: {
css: {
h1: {
color: theme("colors.gray.100"),
},
... | 44,150 |
https://github.com/DavidCoenFish/ancient-code-1/blob/master/Pride/PImage/PImageConvertor.cpp | Github Open Source | Open Source | Unlicense | 2,018 | ancient-code-1 | DavidCoenFish | C++ | Code | 913 | 2,704 | //file: Pride/PImage/PImageConvertor.cpp
#include "Pride/PridePreCompileHeader.h"
#include "Pride/PImage/PImageConvertor.h"
#include "Pride/PImage/PImage.h"
#include "Pride/PColour/PColour_Export.h"
#include <WINDOWS.H>
/////////////////////////////////////////////////////////////////
// using
/**/
using namespace... | 25,644 |
https://github.com/da99/boot_ups/blob/master/bin/reset_ufw | Github Open Source | Open Source | MIT | 2,016 | boot_ups | da99 | JavaScript | Code | 50 | 110 | #!/usr/bin/env bash
# -*- bash -*-
#
#!/usr/bin/env node
# -*- js -*-
#
#!/usr/bin/env lua
#
#
set -u -e -o pipefail
sudo ufw disable
sudo ufw reset
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw logging on
sudo ufw allow ssh
sudo ufw enable
| 4,067 |
https://github.com/PeterEB/SivannMakerCup-Fukuoka/blob/master/adminpanel/src/js/ZMapEndpoint.js | Github Open Source | Open Source | MIT | 2,016 | SivannMakerCup-Fukuoka | PeterEB | JavaScript | Code | 127 | 519 | import React from 'react';
import ReactDOM from 'react-dom';
class ZMapEndpoint extends React.Component {
constructor(props) {
super(props);
this.marker = null;
this.lat = props.data.lat;
this.lon = props.data.lon;
this.devices = props.data.devs || {};
}
generateMarker() {
return '<div class=\"marker... | 1,621 |
https://github.com/SalazarJuanMa/mern_graphql_master/blob/master/graphql/resolvers/auth.js | Github Open Source | Open Source | MIT | 2,021 | mern_graphql_master | SalazarJuanMa | JavaScript | Code | 274 | 614 | const bcrypt = require('bcryptjs');
const jwt = require('jsonwebtoken');
const User = require('../../models/user');
module.exports = {
createUser: async args => {
try {
const existingUser = await User.findOne({ email: args.userInput.email });
if (existingUser) {
throw new Error('User exists ... | 24,175 |
https://github.com/codedstructure/pylibftdi/blob/master/src/pylibftdi/examples/serial_loopback.py | Github Open Source | Open Source | MIT | 2,023 | pylibftdi | codedstructure | Python | Code | 162 | 535 | #!/usr/bin/env python3 -u
"""
test serial loopback; assumes Rx and Tx are connected
Copyright (c) 2010-2020 Ben Bass <benbass@codedstructure.net>
All rights reserved.
"""
import os
import sys
import time
from pylibftdi import SerialDevice
def test_string(length):
return os.urandom(length)
class LoopbackTeste... | 26,922 |
https://github.com/BuildForSDGCohort2/Team-616-Lambda/blob/master/Lambda/settings.py | Github Open Source | Open Source | MIT | 2,020 | Team-616-Lambda | BuildForSDGCohort2 | Python | Code | 320 | 1,655 |
import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/
# SECURITY WARNING: keep th... | 53,915 |
https://github.com/scasplte2/ergo/blob/master/benchmarks/src/test/scala/org/ergoplatform/nodeView/wallet/WalletBench.scala | Github Open Source | Open Source | CC0-1.0 | 2,021 | ergo | scasplte2 | Scala | Code | 165 | 663 | package org.ergoplatform.nodeView.wallet
import java.io.File
import akka.actor.{ActorRef, ActorSystem, Props}
import akka.pattern.ask
import akka.util.Timeout
import org.ergoplatform.Utils
import org.ergoplatform.modifiers.ErgoFullBlock
import org.ergoplatform.nodeView.NVBenchmark
import org.ergoplatform.nodeView.wal... | 43,227 |
https://github.com/AntoineLemichel/CardsMemory/blob/master/sass/index.scss | Github Open Source | Open Source | MIT | null | CardsMemory | AntoineLemichel | SCSS | Code | 67 | 199 | html,
body {
padding: 0;
margin: 0;
max-width: 700px;
margin: 50px auto auto auto;
}
.container-cards {
display: grid;
grid-template-columns: auto auto auto auto auto;
grid-column-gap: 10px;
grid-row-gap: 30px;
margin: auto;
.background-card {
display: block;
background: #000;
border: 1... | 21,762 |
https://github.com/morristech/concurrent/blob/master/concurrent-core/src/main/java/com/onehilltech/concurrent/Queue.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | concurrent | morristech | Java | Code | 630 | 1,644 | package com.onehilltech.concurrent;
import java.util.Collection;
import java.util.NoSuchElementException;
import java.util.concurrent.Executor;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.atomic.AtomicInteger;
public class Queue
{
public interface OnDrainListener
{
void onDrai... | 26,401 |
https://github.com/marcusoftnet/pickles/blob/master/src/Pickles/Pickles.Example.xUnit/Features/09CallingStepsFromSteps/CallingStepsFromStepDefinitionSteps.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | pickles | marcusoftnet | C# | Code | 145 | 481 | using Should;
using TechTalk.SpecFlow;
namespace Specs.CallingStepsFromSteps
{
[Binding]
public class CallingStepsFromStepDefinitionSteps : Steps // NOTE the inheritance
{
[BeforeScenario]
public void ScenarioSetup()
{
ScenarioContext.Current["stepcount"] = 0;
}... | 12,195 |
https://github.com/JeromeParadis/server-backbone-redis/blob/master/examples/express-client-push/app.js | Github Open Source | Open Source | MIT | 2,015 | server-backbone-redis | JeromeParadis | JavaScript | Code | 166 | 620 | var express = require('express'),
ejs = require('ejs'),
redis = require('redis'),
models = require('./models/models'),
settings = require('./settings');
var app = express.createServer();
var port = process.env.PORT || settings.port || 8080;
var rc = redis.createClient();
models.Backbone.setClie... | 43,441 |
https://github.com/akashic-games/akashic-games.github.io/blob/master/snippets/shin-ichiba/thiefBuster/node_modules/@akashic-extension/akashic-animation/lib/Content.js | Github Open Source | Open Source | MIT, CC-BY-4.0 | 2,023 | akashic-games.github.io | akashic-games | JavaScript | Code | 36 | 88 | "use strict";
/**
* コンテンツデータ。
*/
var Content = /** @class */ (function () {
function Content(type, name, data) {
this.type = type;
this.name = name;
this.data = data;
}
return Content;
}());
module.exports = Content;
| 53,835 |
https://github.com/GalaxyGFX/webmin/blob/master/file/FileManager.java | Github Open Source | Open Source | BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause | 2,022 | webmin | GalaxyGFX | Java | Code | 13,528 | 47,929 | import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.applet.*;
import java.net.*;
import java.util.*;
import netscape.javascript.JSObject;
// A java filemanager that allows the user to manipulate files on the
// Webmin server. Layout is similar to the windows explorer - directory
// tree on the le... | 7,528 |
https://github.com/management-partners/lavarvel_vue_default/blob/master/resources/sass/frontend/pages/forgetpassword.scss | Github Open Source | Open Source | MIT | null | lavarvel_vue_default | management-partners | SCSS | Code | 11 | 41 | #forgetpassword {
width: 60%;
margin-top: 7%;
margin-bottom: 16%;
color: #3c7f00;
} | 36,185 |
https://github.com/MewX/contendo-viewer-v1.6.3/blob/master/org/apache/xalan/xsltc/compiler/TransletOutput.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | contendo-viewer-v1.6.3 | MewX | Java | Code | 479 | 1,459 | /* */ package org.apache.xalan.xsltc.compiler;
/* */
/* */ import org.apache.bcel.generic.CompoundInstruction;
/* */ import org.apache.bcel.generic.ConstantPoolGen;
/* */ import org.apache.bcel.generic.INVOKEVIRTUAL;
/* */ import org.apache.bcel.generic.Instruction;
/* */ import org.apache.... | 51,424 |
https://github.com/call-a3/gulp-loader/blob/master/wrapper.coffee | Github Open Source | Open Source | MIT | null | gulp-loader | call-a3 | CoffeeScript | Code | 229 | 741 | # Import gulp libraries
gulp = require 'gulp'
gutil = require 'gulp-util'
plumber = require 'gulp-plumber'
del = require 'del'
path = require 'path'
extend = require 'extend'
minimist = require 'minimist'
bundle = require './bundle'
options = extend true, {
name:
infix: '-'
extension: '.... | 44,045 |
https://github.com/skyclean906/pro1-admin/blob/master/app/Http/Controllers/SettingController.php | Github Open Source | Open Source | MIT | null | pro1-admin | skyclean906 | PHP | Code | 319 | 1,179 | <?php
namespace App\Http\Controllers;
/******************************************************
* IM - Vocabulary Builder
* Version : 1.0.2
* Copyright© 2016 Imprevo Ltd. All Rights Reversed.
* This file may not be redistributed.
* Author URL:http://imprevo.net
****************************************************... | 16,390 |
https://github.com/blafabregue/TimeSeriesDeepClustering/blob/master/networks/bilstm_ae.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | TimeSeriesDeepClustering | blafabregue | Python | Code | 197 | 940 | """
Define the temporal Autoencoder proposed in:
Madiraju, N. S., Sadat, S. M., Fisher, D., & Karimabadi, H. (2018).
Deep temporal clustering: Fully unsupervised learning of time-domain features
Author:
Baptiste Lafabregue 2019.25.04
"""
import os
import tensorflow as tf
from tensorflow.keras import backend as K
fro... | 34,189 |
https://github.com/InversePalindrome/Rampancy/blob/master/src/SkyBuilder.cpp | Github Open Source | Open Source | MIT | 2,018 | Rampancy | InversePalindrome | C++ | Code | 224 | 817 | /*
Copyright (c) 2018 InversePalindrome
Rampancy - SkyBuilder.cpp
InversePalindrome.com
*/
#include "SkyBuilder.hpp"
#include "Vector.hpp"
#include "EnumUtility.hpp"
#include "FilePaths.hpp"
#include "XMLAttribute.hpp"
#include <OGRE/OgrePlane.h>
#include <RapidXML/rapidxml.hpp>
void SkyBuilder::loadSky(const std... | 39,710 |
https://github.com/Mic-JasonTang/QuickDraw/blob/master/public/js/action.js | Github Open Source | Open Source | Apache-2.0 | 2,019 | QuickDraw | Mic-JasonTang | JavaScript | Code | 242 | 853 | async function start() {
labels = $.ajax({
url: "model/class_names_min.txt",
async: false
}).responseText.split('\n');
model = await tf.loadLayersModel('model/model.json')
// const pred = model.predict(tf.zeros([1, 28, 28, 1]))
// console.log(pred.dataSync())
}
start()
function pre... | 15,601 |
https://github.com/phuong50398/tuyensinh2019/blob/master/application/views/danhmuc/Vxeplop.php | Github Open Source | Open Source | MIT | null | tuyensinh2019 | phuong50398 | PHP | Code | 313 | 1,488 | <div class="container-fluid fixdisplay" style="margin: 10px;">
<div class="panel panel-default">
<div class="panel-heading text-left">
<h5><b>Xếp lớp sinh viên nhập học</b></h5>
</div>
<div class="panel-body" style="padding: 18px;">
<div class="panel panel-warning">
... | 46,374 |
https://github.com/umeng/umeng_community_android/blob/master/umeng_comm_android_ui/src/com/umeng/comm/ui/emoji/People.java | Github Open Source | Open Source | MIT | 2,019 | umeng_community_android | umeng | Java | Code | 327 | 3,475 | /*
* Copyright 2014 Hieu Rocker
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 11,510 |
https://github.com/cferreirasuazo/shop/blob/master/src/components/HomeButton/HomeButton.js | Github Open Source | Open Source | 2,020 | shop | cferreirasuazo | JavaScript | Code | 56 | 187 | import React from "react";
import {useHistory} from "react-router-dom";
import { Button} from "@material-ui/core";
const styles = {
width:"200px",
height:"40px",
cursor:"pointer",
margin: "auto",
borderRadius:"50px",
textAlign:"center",
fontsize:"16px",
border: "1px solid transparent",
... | 28,554 | |
https://github.com/modelica/ModelicaStandardLibrary/blob/master/Modelica/Electrical/PowerConverters/ACDC/HalfControlledBridge2Pulse.mo | Github Open Source | Open Source | BSD-3-Clause | 2,023 | ModelicaStandardLibrary | modelica | Modelica | Code | 388 | 2,312 | within Modelica.Electrical.PowerConverters.ACDC;
model HalfControlledBridge2Pulse
"Two pulse Graetz half controlled rectifier bridge"
import Modelica.Constants.pi;
extends Icons.Converter;
parameter SI.Resistance RonDiode(final min=0) = 1e-05
"Closed diode resistance";
parameter SI.Conductance GoffDiode(f... | 12,878 |
https://github.com/itspaiva/DDTank4.1/blob/master/Source Server/SourceQuest4.5/Newtonsoft.Json/Newtonsoft.Json.Serialization/JsonStringContract.cs | Github Open Source | Open Source | MIT | 2,022 | DDTank4.1 | itspaiva | C# | Code | 23 | 80 | using System;
namespace Newtonsoft.Json.Serialization
{
public class JsonStringContract : JsonPrimitiveContract
{
public JsonStringContract(Type underlyingType)
: base(underlyingType)
{
ContractType = JsonContractType.String;
}
}
}
| 5,253 |
https://github.com/xplorld/WordOuroboros/blob/master/WordOuroboros/SlidableView.swift | Github Open Source | Open Source | MIT | null | WordOuroboros | xplorld | Swift | Code | 628 | 2,044 | //
// SlidableView.swift
// WordOuroboros
//
// Created by Xplorld on 2015/6/10.
// Copyright (c) 2015年 Xplorld. All rights reserved.
//
import UIKit
protocol SlidableViewDelegate : class {
func viewOfDirection(direction:PanGestureDirection,slidableView:SlidableView,currentView:UIView) -> UIView?
// func s... | 4,596 |
https://github.com/leikong/service-fabric/blob/master/src/prod/src/Common/FileVersion.h | Github Open Source | Open Source | MIT | null | service-fabric | leikong | C | Code | 73 | 189 | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#pragma once // intellisense w... | 23,410 |
https://github.com/0x0d01/api/blob/master/src/routes/as.js | Github Open Source | Open Source | MIT | 2,018 | api | 0x0d01 | JavaScript | Code | 92 | 274 | import express from 'express';
import { validateBody } from './middleware/validation';
import * as as from '../core/as';
const router = express.Router();
router.post('/service/:service_id', validateBody, async (req, res, next) => {
try {
const { service_id } = req.params;
const { service_name, min_ial, min... | 43,478 |
https://github.com/Malamut54/dbobrov/blob/master/chapter_002/src/main/java/ru/job4j/proffesions/Doctor.java | Github Open Source | Open Source | Apache-2.0 | null | dbobrov | Malamut54 | Java | Code | 86 | 236 | package ru.job4j.proffesions;
/**
*Task Professional.
*@author Dmitriy Bobrov (mailto:bobrov.dmitriy@gmail.com)
*@since 0.1
*/
public class Doctor extends Proffesions {
/**
*Class Doctor. Describes Doctor.
*/
/**
*Doctor constructor.
*@param name name
*@param age age
*@param gender gende... | 14,007 |
https://github.com/18776736744/xwl_ht/blob/master/application/index/controller/Qrcode.php | Github Open Source | Open Source | Apache-2.0 | 2,018 | xwl_ht | 18776736744 | PHP | Code | 183 | 1,031 | <?php
namespace app\index\controller;
use think\Request;
use think\Db;
/**
* 二维码接口
*/
class Qrcode extends \think\Controller {
//二维码生成
public function code()
{
$path=input('path')?input('path'):"pages/index/index";
$file_name = time()."code";
if (strstr($path,"?")) {
... | 44,966 |
https://github.com/asjianghang123/pchecker/blob/master/pchecker/app/Http/Middleware/BackLogin.php | Github Open Source | Open Source | MIT | 2,019 | pchecker | asjianghang123 | PHP | Code | 68 | 347 | <?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Support\Facades\View;
use App\Model\Users;
class BackLogin
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($req... | 48,304 |
https://github.com/SushiCoders/SushiCutters/blob/master/src/systems/mod.rs | Github Open Source | Open Source | Apache-2.0 | null | SushiCutters | SushiCoders | Rust | Code | 48 | 152 | pub use self::border_collision::BorderSystem;
pub use self::collision_debug::CollisionDebugSystem;
pub use self::collisions::CollisionsSystem;
pub use self::damage::DamageSystem;
pub use self::kill_after::KillAfterSystem;
pub use self::player_control::PlayerControlSystem;
pub use self::score::ScoreSystemDesc;
pub use s... | 20,192 |
https://github.com/gwenn/lemon-rs/blob/master/src/lexer/sql/error.rs | Github Open Source | Open Source | Unlicense | 2,022 | lemon-rs | gwenn | Rust | Code | 282 | 945 | use std::error;
use std::fmt;
use std::io;
use crate::lexer::scan::ScanError;
#[non_exhaustive]
#[derive(Debug)]
pub enum Error {
/// I/O Error
Io(io::Error),
UnrecognizedToken(Option<(u64, usize)>),
UnterminatedLiteral(Option<(u64, usize)>),
UnterminatedBracket(Option<(u64, usize)>),
Untermin... | 50,125 |
https://github.com/suacalis/The-MySQL-Workshop/blob/master/Chapter04/Activity05/Test Multiple Payments.sql | Github Open Source | Open Source | MIT | 2,021 | The-MySQL-Workshop | suacalis | SQL | Code | 18 | 127 | INSERT INTO `autoclub`.`membershipfees` (`MemberID`,`FeeAmount`,`DatePaid`) VALUES (1,123.45,'2020-02-15');
INSERT INTO `autoclub`.`membershipfees` (`MemberID`,`FeeAmount`,`DatePaid`) VALUES (5,123.45,'2020-02-15');
INSERT INTO `autoclub`.`membershipfees` (`MemberID`,`FeeAmount`,`DatePaid`) VALUES (6,123.45,'2020-02-15... | 22,417 |
https://github.com/DWay17/highmed-dsf/blob/master/dsf-fhir/dsf-fhir-server/src/main/java/org/highmed/dsf/fhir/service/SnapshotGeneratorImpl.java | Github Open Source | Open Source | Apache-2.0 | null | highmed-dsf | DWay17 | Java | Code | 203 | 804 | package org.highmed.dsf.fhir.service;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import org.hl7.fhir.r4.conformance.ProfileUtilities;
import org.hl7.fhir.r4.context.IWorkerContext;
import org.hl7.fhir.r4.hapi.ctx.HapiWorkerContext;
import org.hl7.fhir.r4.model.StructureDefinition;
im... | 47,187 |
https://github.com/P79N6A/tis-neptune/blob/master/tddl-dump/src/main/java/com/qlangtech/tis/indexbuilder/dump/Test_Thread.java | Github Open Source | Open Source | MIT | null | tis-neptune | P79N6A | Java | Code | 275 | 567 | /*
* The MIT License
*
* Copyright (c) 2018-2022, qinglangtech Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to... | 39,392 |
https://github.com/KhanhLee99/unitop.github.io/blob/master/BE/laravel-unitop.vn/app/Http/Controllers/Admin_PostController.php | Github Open Source | Open Source | MIT | 2,021 | unitop.github.io | KhanhLee99 | PHP | Code | 328 | 1,096 | <?php
namespace App\Http\Controllers;
use App\FeatureImages;
use App\Post;
use App\User;
use App\Product;
use Illuminate\Http\Request;
class Admin_PostController extends Controller
{
//
// function index(){
// echo "Đây là trang danh sách bài viết";
// }
// function add(){
// echo "Đ... | 11,699 |
https://github.com/sharpart555/nextline/blob/master/reader/fileReader.js | Github Open Source | Open Source | MIT | 2,022 | nextline | sharpart555 | JavaScript | Code | 152 | 372 | /**
* Import
*/
const fs = require('fs-extra');
/**
* File Reader
* @param param
* @param param.input
* @param param.readSize
* @param param.reverse
*/
function create(param) {
const param2 = {
readSize: 65536,
reverse: false,
...param,
};
const { input, reverse } = param2;
/**
* Varia... | 13,408 |
https://github.com/irons163/IRPlayer/blob/master/IRPlayer/Class/Core/Display/OpenGL/Program/Factory/IRGLProgramFactory.h | Github Open Source | Open Source | MIT | 2,022 | IRPlayer | irons163 | C | Code | 76 | 602 | //
// IRGLProgramFactory.h
// IRPlayer
//
// Created by Phil on 2019/7/5.
// Copyright © 2019 Phil. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "IRGLProgram2D.h"
#import "IRGLProgram2DFisheye2Pano.h"
#import "IRGLProgram2DFisheye2Persp.h"
#import "IRGLProgram3DFisheye.h"
#import "IRGLProgramM... | 48,291 |
https://github.com/xmlking/ngx-starter-kit/blob/master/libs/svg-viewer/src/lib/svg-viewer.config.ts | Github Open Source | Open Source | MIT | 2,022 | ngx-starter-kit | xmlking | TypeScript | Code | 61 | 182 | import { Inject, Optional, Injectable } from '@angular/core';
import { PlatformLocation, APP_BASE_HREF } from '@angular/common';
export class SvgViewerConfig {
baseUrl: string;
}
@Injectable()
export class SvgViewerDefaultConfig extends SvgViewerConfig {
constructor(
@Optional()
@Inject(APP_BASE_HREF)
... | 45,296 |
https://github.com/hydai/Cocoon/blob/master/Cocoon/src/cocoonServer/RunCode.java | Github Open Source | Open Source | BSD-2-Clause | 2,014 | Cocoon | hydai | Java | Code | 249 | 700 | package cocoonServer;
import java.io.File;
import java.io.IOException;
import java.util.Scanner;
/**
* Compiler and run code for user.
* Use java process.exec to call bash script.
* @author hydai
*
*/
public class RunCode {
private String language;
private String result;
private int runtimeID;
private int ti... | 26,688 |
https://github.com/chiragsanghavi/Tundra/blob/master/code/source/tundra/measure.java | Github Open Source | Open Source | MIT | 2,022 | Tundra | chiragsanghavi | Java | Code | 199 | 783 | package tundra;
// -----( IS Java Code Template v1.2
// -----( CREATED: 2017-05-07 10:55:49 EST
// -----( ON-HOST: 192.168.66.129
import com.wm.data.*;
import com.wm.util.Values;
import com.wm.app.b2b.server.Service;
import com.wm.app.b2b.server.ServiceException;
// --- <<IS-START-IMPORTS>> ---
import java.math.BigDe... | 6,021 |
https://github.com/marco-c/gecko-dev-wordified/blob/master/testing/web-platform/tests/wasm/jsapi/error-interfaces-no-symbol-tostringtag.js | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, BSD-3-Clause | 2,023 | gecko-dev-wordified | marco-c | JavaScript | Code | 88 | 215 | /
/
META
:
global
=
jsshell
test
(
(
)
=
>
{
assert_not_own_property
(
WebAssembly
.
CompileError
.
prototype
Symbol
.
toStringTag
)
;
}
"
WebAssembly
.
CompileError
"
)
;
test
(
(
)
=
>
{
assert_not_own_property
(
WebAssembly
.
LinkError
.
prototype
Symbol
.
toStringTag
)
;
}
"
WebAssembly
.
LinkError
"
)
;
test
(
(
)... | 7,276 |
https://github.com/djtorel/rust-book-2019/blob/master/03-Common-Programming-Concepts/Exercises/convert_temp/src/main.rs | Github Open Source | Open Source | MIT | null | rust-book-2019 | djtorel | Rust | Code | 154 | 422 | use std::io;
fn main() {
loop {
println!("Options:");
println!("Enter 1 to convert Fahrenheit to Celsius");
println!("Enter 2 to convert Celsius to Fahrenheit");
let option: u32 = match user_input().trim().parse() {
Ok(num) => match num {
1 | 2 => num,
... | 43,832 |
https://github.com/stephendpmurphy/K64F_sandbox/blob/master/KSDK/middleware/usb/middleware_usb_host_common_header_MK64F12.cmake | Github Open Source | Open Source | BSD-3-Clause | null | K64F_sandbox | stephendpmurphy | CMake | Code | 17 | 161 | if(NOT MIDDLEWARE_USB_HOST_COMMON_HEADER_MK64F12_INCLUDED)
set(MIDDLEWARE_USB_HOST_COMMON_HEADER_MK64F12_INCLUDED true CACHE BOOL "middleware_usb_host_common_header component is included.")
target_include_directories(${MCUX_SDK_PROJECT_NAME} PRIVATE
${CMAKE_CURRENT_LIST_DIR}/host
)
inclu... | 9,651 |
https://github.com/vovpff/YetiForceCRM/blob/master/app/YetiForce/Shop/Product/YetiForceInstallInHosting.php | Github Open Source | Open Source | MIT | 2,020 | YetiForceCRM | vovpff | PHP | Code | 196 | 697 | <?php
/**
* YetiForce shop InstallInHosting file.
*
* @package App
*
* @copyright YetiForce Sp. z o.o
* @license YetiForce Public License 3.0 (licenses/LicenseEN.txt or yetiforce.com)
* @author Mariusz Krzaczkowski <m.krzaczkowski@yetiforce.com>
*/
namespace App\YetiForce\Shop\Product;
/**
* YetiForce... | 29,132 |
https://github.com/NiFilonov/NFUIKit/blob/master/NFUIKit/NFUIKit.h | Github Open Source | Open Source | MIT | null | NFUIKit | NiFilonov | C | Code | 55 | 145 | //
// NFUIKit.h
// NFUIKit
//
// Created by Никита Филонов on 19.09.2021.
//
#import <Foundation/Foundation.h>
//! Project version number for NFUIKit.
FOUNDATION_EXPORT double NFUIKitVersionNumber;
//! Project version string for NFUIKit.
FOUNDATION_EXPORT const unsigned char NFUIKitVersionString[];
// In this he... | 35,903 |
https://github.com/12mo2525/angularMail/blob/master/src/pages/home/home.scss | Github Open Source | Open Source | MIT | null | angularMail | 12mo2525 | SCSS | Code | 186 | 700 |
#vries {
width: 100%;
height: 30%;
// font-size: 30px;
color: #007AB7;
font-family: fantasy;
padding: 0;
margin: 0;
border: 0;
background-image: url("../../assets/image/vries_image.png"), linear-gradient(to bottom left, white 0%, #9ACDE7 100%);
position: relative;
background-position: center;
... | 22,938 |
https://github.com/Rahulitsmca/skyux/blob/master/webdrivertest/test/modal/modal.visual.js | Github Open Source | Open Source | MIT | 2,016 | skyux | Rahulitsmca | JavaScript | Code | 88 | 351 | /*global describe, it, browser */
describe('modals', function () {
'use strict';
it('match the baseline modal screenshot', function () {
return browser
.setupTest('/modal/fixtures/test.full.html')
.compareScreenshot({
screenshotName: 'modal',
sel... | 54,909 |
https://github.com/egorpushkin/neurolab/blob/master/source/Plugins/ScriptEnv/LuaNeuroApi/Extensions/Training/fann_1.2.1/API/Api.cpp | Github Open Source | Open Source | MIT, CC-BY-4.0 | 2,017 | neurolab | egorpushkin | C++ | Code | 176 | 1,300 | #include "StdAfx.h"
#include "Api.h"
#include "../../../../ApiMacro.h"
#include "General.h"
#include "Initialization.h"
#include "Parser.h"
#include "Training.h"
#include "Parameters.h"
#include "MSE.h"
#include "Data.h"
#include "../Engine/fann.h"
// Package initialization
static const luaL_reg fann121lib[] = {
{... | 12,491 |
https://github.com/arrow-acs/moonstone-ios-gateway-demo/blob/master/AcnGatewayiOS/Devices/Properties/DeviceProperties.swift | Github Open Source | Open Source | Apache-2.0 | 2,019 | moonstone-ios-gateway-demo | arrow-acs | Swift | Code | 327 | 1,007 | //
// DeviceProperties.swift
// AcnGatewayiOS
//
// Created by Michael Kalinin on 01/06/16.
// Copyright © 2016 Arrow Electronics. All rights reserved.
//
import Foundation
import CoreBluetooth
enum PropertyType {
case boolean
case integer
case string
}
class DeviceProperty {
class var allVa... | 24,208 |
https://github.com/igorstojanovski/central-committee-junit5/blob/master/src/main/java/co/igorski/services/CentralCommitteeListener.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | central-committee-junit5 | igorstojanovski | Java | Code | 637 | 2,129 | package co.igorski.services;
import co.igorski.client.ApacheHttpClient;
import co.igorski.client.WebClient;
import co.igorski.configuration.Configuration;
import co.igorski.configuration.PropertiesConfigurationReader;
import co.igorski.exceptions.SnitcherException;
import co.igorski.model.Outcome;
import co.igorski.mo... | 37,757 |
https://github.com/hassanrehman01398/icq-bot-nodejs/blob/master/dist/interfaces/Response/ResponseChat.d.ts | Github Open Source | Open Source | MIT | 2,022 | icq-bot-nodejs | hassanrehman01398 | TypeScript | Code | 20 | 33 | import { Chat } from "../Entities/Chat";
import { Response } from "./Response";
export interface ResponseChat extends Chat, Response {
}
| 20,404 |
https://github.com/ailabteam/Daily-Working/blob/master/GO-practices/blockchain/go-p2p-blockchain/dashboard-demo/supplychain/api/Handlenext.php | Github Open Source | Open Source | MIT | 2,019 | Daily-Working | ailabteam | PHP | Code | 21 | 80 | <?php
$serialno = $_REQUEST["field"];
$postaction="http://localhost:8080/move/"."$serialno";
$response = file_get_contents($postaction);
$msg='You have sent the record successfully!';
echo json_encode(['status' => 'success', 'message' => $msg]);
| 40,140 |
https://github.com/AaronChanSunny/RxJavaSample/blob/master/app/src/test/java/me/aaron/rxjavasample/BaseTest.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | RxJavaSample | AaronChanSunny | Java | Code | 32 | 92 | package me.aaron.rxjavasample;
import org.junit.After;
import org.junit.Before;
/**
* Created by Chenll on 2016/8/23 0023.
*/
public class BaseTest {
@Before
public void setup() {
}
@After
public void tearDown() {
}
}
| 520 |
https://github.com/dyslexicanaboko/pro-mass-spammer/blob/master/ProMassSpammer.Tests/IntegrationTests.cs | Github Open Source | Open Source | MIT | null | pro-mass-spammer | dyslexicanaboko | C# | Code | 98 | 454 | using System.Collections.Generic;
using Microsoft.EntityFrameworkCore.Design;
using NUnit.Framework;
using ProMassSpammer.Core;
using ProMassSpammer.Data;
using ProMassSpammer.Data.Entities;
using ProMassSpammer.Data.Repositories;
using SimpleInjector;
namespace ProMassSpammer.Tests
{
[TestFixture]
public cla... | 45,391 |
https://github.com/parinpshah94/VanHacks-2018-Team-KPMG/blob/master/app/models.py | Github Open Source | Open Source | MIT | 2,019 | VanHacks-2018-Team-KPMG | parinpshah94 | Python | Code | 428 | 1,844 | from datetime import datetime
from hashlib import md5
from time import time
from flask import current_app
from flask_login import UserMixin
from werkzeug.security import generate_password_hash, check_password_hash
import jwt
from app import db, login
from sqlalchemy import create_engine
from sqlalchemy.orm import scope... | 5,670 |
https://github.com/dtu-02819-projects-fall2014/DMUP_Subtitle_Mining/blob/master/subtitleminer/data/subtitles/Pleasantville.1998.PROPER.DVDRip.XviD-SAPHiRE.CD1-EN.srt | Github Open Source | Open Source | MIT | 2,014 | DMUP_Subtitle_Mining | dtu-02819-projects-fall2014 | null | Spoken | 8,165 | 24,125 | 0
00:00:01,000 --> 00:00:04,000
Downloaded From www.AllSubs.org
1
00:00:34,367 --> 00:00:36,028
Went through the crack--
2
00:00:36,069 --> 00:00:38,503
Our twelfth edition of
the Psychic Friends Network--
3
00:00:38,538 --> 00:00:39,527
Shea Stadium--
4
00:00:41,541 --> 00:00:44,009
You're watching TV Time...
5
0... | 227 |
https://github.com/15686746535/elk-cloud-ui/blob/master/src/views/modules/visualization/rate.vue | Github Open Source | Open Source | MIT | null | elk-cloud-ui | 15686746535 | Vue | Code | 542 | 2,146 | <template>
<div style="height: 100%">
<div v-show="isRate" style="height: 100%">
<div style="height: 40px; width:100%;padding: 20px">
<el-date-picker value-format="timestamp" size="mini" v-model="interval" type="daterange" align="left" range-separator="-"
start-placeholder="开... | 35,443 |
https://github.com/DarkWugWug/GalacticaBot/blob/master/actions/puff.js | Github Open Source | Open Source | MIT | null | GalacticaBot | DarkWugWug | JavaScript | Code | 286 | 887 | const fs = require('fs');
exports.givePuff = {
name: 'givePuff',
admin: false,
description: 'Gives one puff to any @user',
man: '!givePuff @AnyUserName',
init: (bot) => {
try {
bot.puffcount = JSON.parse(fs.readFileSync(__dirname + "/../data/puffcount.json", 'utf8')).puffcount;
} catch(err) { b... | 49,991 |
https://github.com/DaNCeR/node/blob/master/src/node_stdio.cc | Github Open Source | Open Source | MIT | 2,022 | node | DaNCeR | C++ | Code | 696 | 2,210 | #include <node_stdio.h>
#include <node_events.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <errno.h>
#include <termios.h>
#include <sys/ioctl.h>
using namespace v8;
namespace node {
static int stdout_flags = -1;
static int stdin_flags = -1;
static struct termios orig_termios; /* in orde... | 15,229 |
https://github.com/shadston/PolyEngine/blob/master/PolyEngine/Core/Src/Math/AABox.cpp | Github Open Source | Open Source | MIT | 2,018 | PolyEngine | shadston | C++ | Code | 411 | 1,331 | #include "CorePCH.hpp"
#include "Math/AABox.hpp"
using namespace Poly;
//------------------------------------------------------------------------------
AABox::AABox(const Vector& position, const Vector& size)
: Pos(position), Size(size)
{
ASSERTE(Size.X >= 0 && Size.Y >= 0 && Size.Z >= 0, "Invalid aabox size!");
}... | 12,134 |
https://github.com/ruixie/onboard/blob/master/frontend/kernel/src/main/resources/static/js/ng-modules/story/archived-stories-ctrl.js | Github Open Source | Open Source | Apache-2.0 | 2,015 | onboard | ruixie | JavaScript | Code | 48 | 230 | /**
* Created by pkutxq on 15-5-22.
*/
angular.module('stories')
.controller('archivedStoriesCtrl', ['$scope', '$http', 'storyService', function ($scope, $http, storyService) {
storyService.getArchivedStories(true).then(function (archivedStories) {
$scope.archivedStories = archivedStories;
... | 25,107 |
https://github.com/bayuindra091191GMG/carefast/blob/master/resources/views/admin/customer/show.blade.php | Github Open Source | Open Source | MIT | null | carefast | bayuindra091191GMG | PHP | Code | 283 | 1,477 | @extends('layouts.admin')
@section('content')
<div class="row">
<div class="col-12">
<div class="card-body">
<div class="row">
<div class="col-md-8 col-12">
<a href="{{ route('admin.customer.index') }}" class="btn btn-outline-primary ... | 33,790 |
https://github.com/ampinsk/figmagic/blob/master/bin/functions/filesystem/getFromApi.mjs | Github Open Source | Open Source | MIT | 2,020 | figmagic | ampinsk | JavaScript | Code | 114 | 275 | import fetch from 'node-fetch';
import { errorGetFromApi } from '../../meta/errors.mjs';
/**
* Get data from API
*
* @exports
* @async
* @function
* @param {string} figmaToken - User's Figma API token
* @param {string} figmaUrl - String representing user's Figma document ID
* @param {string} [type] - String r... | 12,722 |
https://github.com/uxnivek/angular2-github-repository-search/blob/master/src/search/components/repositories.ts | Github Open Source | Open Source | MIT | null | angular2-github-repository-search | uxnivek | TypeScript | Code | 76 | 280 | import {Component} from 'angular2/core';
import {Http} from 'angular2/http';
import {Repository} from './repository';
import {LanguageService} from './language-service';
import {PieChart} from './pie-chart';
@Component({
selector: 'repositories',
templateUrl: 'search/components/repositories.html',
styleUrls: ['... | 22,141 |
https://github.com/lulzzz/azgov/blob/master/pkg/azure/regex_test.go | Github Open Source | Open Source | MIT | 2,018 | azgov | lulzzz | Go | Code | 82 | 457 | package azure
import (
"testing"
)
func TestExtractResourceGroupNameFromResourceId(t *testing.T) {
id := "/subscriptions/23asp310-b425-4a88-85a5-e60614bfde1b/resourceGroups/hereisthename/foo/bar/foo/bar"
result := extractResourceGroupNameFromResourceID(id)
if result != "hereisthename" {
t.Errorf("did not expec... | 28,122 |
https://github.com/jeffersonalvess/CareApp/blob/master/app/src/main/java/edu/depaul/csc595/careapp/Helpers/FacebookImageLoadTask.java | Github Open Source | Open Source | MIT | 2,018 | CareApp | jeffersonalvess | Java | Code | 96 | 324 | package edu.depaul.csc595.careapp.Helpers;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.AsyncTask;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
public class FacebookImageLoadTask extends AsyncTask<Void, Void, Bitmap>
{
// I'm not... | 37,149 |
https://github.com/imfdlh/bi-pangan/blob/master/BI-pangan/application/models/Dm_produktivitas_pangan_testing_result_m.php | Github Open Source | Open Source | MIT | 2,020 | bi-pangan | imfdlh | PHP | Code | 45 | 388 | <?php
/*
**@author Fadilah Nur Imani - 09031281621039
*/
class Dm_produktivitas_pangan_testing_result_m extends CI_Model {
function __construct()
{
parent::__construct();
$this->load->database();
}
public function bacaAllResult()
{
$this->db->select('dim_kecamatan.kecamatan, dm_produktivitas_pangan_testi... | 12,089 |
https://github.com/goodmind/FlowDefinitelyTyped/blob/master/flow-types/types/@storybook/addons_vx.x.x/flow_v0.25.x-/addons.js | Github Open Source | Open Source | MIT | 2,021 | FlowDefinitelyTyped | goodmind | JavaScript | Code | 218 | 693 | declare module "@storybook/addons" {
import typeof * as Channel from "@storybook/channels";
import type { RenderFunction, StoryDecorator } from "@storybook/react";
declare export var mockChannel: Channel;
declare export interface Context {
kind: string;
story: string;
}
declare export type GetStor... | 28,515 |
https://github.com/wahbahdoo-test/icc-travis/blob/master/test/test.c | Github Open Source | Open Source | CC0-1.0, LicenseRef-scancode-public-domain | 2,018 | icc-travis | wahbahdoo-test | C | Code | 20 | 68 | #if !defined(__INTEL_COMPILER)
#error Not Intel
#endif
#include <stdio.h>
int main(int argc, char *argv[]) {
fputs ("Success\n", stdout);
return 0;
}
| 26,525 |
https://github.com/Remonhasan/programming-solve/blob/master/UVA Online Judge Solve/UVA572.cpp | Github Open Source | Open Source | Apache-2.0 | null | programming-solve | Remonhasan | C++ | Code | 278 | 853 | // Remon Hasan
#include <cstdio>
#include <queue>
#include <utility>
using namespace std;
#define MAX_SIZE 100
#define OIL '@'
#define NON_OIL '*'
#define NUM_DIRECTION 8
const int rowDirect[NUM_DIRECTION] = {0, 0, 1, 1, 1, -1, -1, -1};
const int colDirect[NUM_DIRECTION] = {1, -1, 1, -1, 0, 1, -1, 0};
int countNumO... | 44,610 |
https://github.com/baloise/eZooKeeper/blob/master/org.massedynamic.eclipse.core/src/org/massedynamic/eclipse/core/viewers/IViewerType.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | eZooKeeper | baloise | Java | Code | 348 | 796 | /**
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribu... | 16,054 |
https://github.com/egovernments/DIGIT-OSS/blob/master/business-services/finance-collections-voucher-consumer/src/main/java/org/egov/receipt/consumer/model/InstrumentContract.java | Github Open Source | Open Source | MIT, LicenseRef-scancode-generic-cla | 2,023 | DIGIT-OSS | egovernments | Java | Code | 756 | 1,553 | /*
* eGov suite of products aim to improve the internal efficiency,transparency,
* accountability and the service delivery of the government organizations.
*
* Copyright (C) <2015> eGovernments Foundation
*
* The updated version of eGov suite of products as by eGovernments Foundation
* is availa... | 5,173 |
https://github.com/mapattacker/keras-efficientnet-finetuning/blob/master/project/img_processing/duplicate_removal.py | Github Open Source | Open Source | Apache-2.0 | null | keras-efficientnet-finetuning | mapattacker | Python | Code | 87 | 304 | import os
import imagehash
import pandas as pd
from PIL import Image
from tqdm import tqdm
def gen_hash_table(dir):
"""generate hash list and delete duplicate images"""
df = pd.DataFrame(columns=["imgpath", "hash"])
print("generating hash table")
for path in tqdm(os.listdir(dir)):
if path.e... | 15,283 |
https://github.com/Meuko/baseline-commit-mgr/blob/master/examples/bri-1/base-example/src/mods/types.ts | Github Open Source | Open Source | CC0-1.0 | null | baseline-commit-mgr | Meuko | TypeScript | Code | 222 | 656 | export enum Priority {
HIGH = 1,
MEDIUM,
LOW,
}
export enum SupplierType {
PORT = 1,
SPARE, //2
TECHNICIAN, //3
VESSEL, //4
}
export interface TaskMetadata {
timeWindow: number[];
taskLength: number;
}
export interface FileContentStructure {
supplierId: string;
supplierCost: number;
supplierR... | 30,449 |
https://github.com/simoneromano96/sdk/blob/master/clients/kratos/go/model_self_service_error_container.go | Github Open Source | Open Source | Apache-2.0 | null | sdk | simoneromano96 | Go | Code | 835 | 1,853 | /*
* Ory Kratos API
*
* Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the adminis... | 12,029 |
https://github.com/CynosuraPlatform/Cynosura/blob/master/Cynosura.sln | Github Open Source | Open Source | MIT | 2,019 | Cynosura | CynosuraPlatform | null | Spoken | 131 | 973 |
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27703.2000
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cynosura.Core", "Cynosura.Core\Cynosura.Core.csproj", "{13170EC7-0B5A-4297-9A2C-46829E795369}"
EndProject
... | 14,620 |
https://github.com/KayandTheBlack/Tower-defense/blob/master/src/Building.js | Github Open Source | Open Source | MIT | null | Tower-defense | KayandTheBlack | JavaScript | Code | 106 | 313 | 'use strict'
const C = require('./constants.js')
class Building {
constructor (type, position) {
this.type = type
this.lvl = 1
this.dmg = C[type].BASEDMG
this.cooldown = C[type].MAX_COOLDOWN
this.maxCD = C[type].MAX_COOLDOWN
this.target = null
this.position = {
i: position.i,
j... | 38,258 |
https://github.com/GSimas/EEL7125/blob/master/Open Sim/sdk/doc/html_user/classOpenSim_1_1Constraint.js | Github Open Source | Open Source | MIT | null | EEL7125 | GSimas | JavaScript | Code | 105 | 891 | var classOpenSim_1_1Constraint =
[
[ "Constraint", "classOpenSim_1_1Constraint.html#a2ef10dcb8e240fe470d6c35a26dec907", null ],
[ "~Constraint", "classOpenSim_1_1Constraint.html#a8fda45d0b852e35c09f69952c87607c5", null ],
[ "assignConstraintIndex", "classOpenSim_1_1Constraint.html#a88b999dc7124582286a39cfa9... | 44,357 |
https://github.com/NU-MSS/SageResearch-NU-MSS/blob/master/RSDTest/RSDTest/ViewController.swift | Github Open Source | Open Source | BSD-3-Clause | 2,020 | SageResearch-NU-MSS | NU-MSS | Swift | Code | 497 | 1,134 | //
// ViewController.swift
// ResearchTestApp
//
// Copyright © 2017 Sage Bionetworks. 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 source code must retain the ... | 21,409 |
https://github.com/chirashijs/chirashi/blob/master/build/matches-polyfill.js | Github Open Source | Open Source | MIT | 2,017 | chirashi | chirashijs | JavaScript | Code | 43 | 156 | if (!window.Element.prototype.matches) {
window.Element.prototype.matches =
window.Element.prototype.matchesSelector ||
window.Element.prototype.mozMatchesSelector ||
window.Element.prototype.msMatchesSelector ||
window.Element.prototype.oMatchesSelector ||
window.Element.prototype.webkitMatchesSe... | 14,568 |
https://github.com/ScalablyTyped/SlinkyTyped/blob/master/h/hashset/src/main/scala/typingsSlinky/hashset/mod.scala | Github Open Source | Open Source | MIT | 2,021 | SlinkyTyped | ScalablyTyped | Scala | Code | 148 | 422 | package typingsSlinky.hashset
import org.scalablytyped.runtime.Shortcut
import typingsSlinky.hashtable.IHashtableOptions
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
object ... | 25,414 |
https://github.com/johnbieren/ci-tools/blob/master/pkg/bitwarden/bitwarden.go | Github Open Source | Open Source | Apache-2.0 | null | ci-tools | johnbieren | Go | Code | 187 | 479 | package bitwarden
import "os"
// Field represents a field in BitWarden
type Field struct {
Name string `json:"name"`
Value string `json:"value"`
}
// Attachment represents an attachment in BitWarden
type Attachment struct {
ID string `json:"id"`
FileName string `json:"fileName"`
}
// Login represents log... | 1,671 |
https://github.com/coolzoom/namigator/blob/master/parser/Doodad/DoodadInstance.hpp | Github Open Source | Open Source | MIT | null | namigator | coolzoom | C++ | Code | 67 | 263 | #pragma once
#include "parser/Adt/AdtChunkLocation.hpp"
#include "parser/Doodad/Doodad.hpp"
#include "utility/BoundingBox.hpp"
#include "utility/Matrix.hpp"
#include "utility/Vector.hpp"
#include <set>
#include <vector>
namespace parser
{
class DoodadInstance
{
public:
const math::Matrix TransformMatrix;
mat... | 5,712 |
https://github.com/zh423328/NFServer/blob/master/NFServer/NFGameLogicPlugin/NFCGSTeamModule.h | Github Open Source | Open Source | Apache-2.0 | 2,016 | NFServer | zh423328 | C++ | Code | 275 | 1,147 | // -------------------------------------------------------------------------
// @FileName : NFCGSTeamModule.h
// @Author : ChuanBo.Guo
// @Date : 2013-07-10
// @Module : NFCGSTeamModule
//
// -------------------------------------------------------------------... | 44,803 |
https://github.com/luspi/nekRS/blob/master/src/libP/matlab/writeNodeData2D.m | Github Open Source | Open Source | BSD-3-Clause, MIT | 2,020 | nekRS | luspi | MATLAB | Code | 995 | 4,201 |
function writeNodeData2D(inN)
Globals2D;
N = inN;
Nfp = N+1;
Nfaces = 3;
%% Nodal data
[r,s] = Nodes2D(N);
[r,s] = xytors(r,s);
Np = length(r);
% find all the nodes that lie on each edge
NODETOL = 1e-8;
faceNodes1 = find( abs(s+1) < NODETOL)';
faceNodes2 = find( abs(r+s) < NODETOL)';
faceNodes3 = find( abs(r... | 32,382 |
https://github.com/zhangzheng521/couchbase-lite-core/blob/master/LiteCore/tests/DocumentKeysTest.cc | Github Open Source | Open Source | Apache-2.0 | 2,019 | couchbase-lite-core | zhangzheng521 | C++ | Code | 387 | 1,252 | //
// DocumentKeysTest.cc
//
// Copyright (c) 2016 Couchbase, Inc All rights reserved.
//
// 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
//
... | 46,193 |
https://github.com/nya3jp/tast-tests/blob/master/src/chromiumos/tast/local/bundles/cros/cellular/modem_fw_manifest_verification.go | Github Open Source | Open Source | BSD-3-Clause | 2,022 | tast-tests | nya3jp | Go | Code | 703 | 2,036 | // Copyright 2021 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package cellular
import (
"context"
"os"
"path/filepath"
"chromiumos/tast/local/cellular"
"chromiumos/tast/local/dlc"
"chromiumos/tast/local/modemfwd"
"chromiumos/ta... | 30,656 |
https://github.com/AlixFachin/riot-video/blob/master/src/index.js | Github Open Source | Open Source | MIT | null | riot-video | AlixFachin | JavaScript | Code | 28 | 73 | import './style.less'
import '@riotjs/hot-reload'
import { mount } from 'riot'
import registerGlobalComponents from './register-global-components'
// register
registerGlobalComponents()
// mount all the global components found in this page
mount('[data-riot-component]')
| 35,829 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.