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/stepanroznik/wish-list-backend/blob/master/src/common/api-key.guard.ts | Github Open Source | Open Source | MIT | null | wish-list-backend | stepanroznik | TypeScript | Code | 43 | 132 | import { Injectable, CanActivate, ExecutionContext } from '@nestjs/common';
import { Reflector } from '@nestjs/core';
@Injectable()
export class ApiKeyGuard implements CanActivate {
constructor(private reflector: Reflector) {}
canActivate(context: ExecutionContext): boolean {
const request = context.s... | 22,507 |
https://github.com/ShubhamTiwari007/ExamPortal/blob/master/Backend(using java)/examserver/src/main/java/com/exam/controller/AuthenticateController.java | Github Open Source | Open Source | MIT | null | ExamPortal | ShubhamTiwari007 | Java | Code | 151 | 710 | package com.exam.controller;
import java.security.Principal;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.authentication.BadCredentialsExcepti... | 5,482 |
https://github.com/EranBoudjnah/RandomGen/blob/master/randomgen/src/main/java/com/mitteloupe/randomgen/fielddataprovider/PaddedFieldDataProvider.java | Github Open Source | Open Source | MIT | 2,018 | RandomGen | EranBoudjnah | Java | Code | 232 | 641 | package com.mitteloupe.randomgen.fielddataprovider;
import com.mitteloupe.randomgen.FieldDataProvider;
/**
* A {@link FieldDataProvider} that pads generated data (as {@code String}) with repetitions of the provided {@code String}.
*
* Created by Eran Boudjnah on 16/08/2018.
*/
public class PaddedFieldDataProvider... | 5,818 |
https://github.com/simplic/WpfDesigner/blob/master/WpfDesign.Designer/Tests/Designer/NamespaceTests.cs | Github Open Source | Open Source | MIT | 2,022 | WpfDesigner | simplic | C# | Code | 537 | 2,107 | // Copyright (c) 2019 AlphaSierraPapa for the SharpDevelop Team
//
// 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 use, co... | 6,834 |
https://github.com/shivalinga/Gooru-Web/blob/master/src/main/java/org/ednovo/gooru/server/service/UrlGenerator.java | Github Open Source | Open Source | MIT | null | Gooru-Web | shivalinga | Java | Code | 333 | 660 | /*******************************************************************************
* Copyright 2013 Ednovo d/b/a Gooru. All rights reserved.
*
* http://www.goorulearning.org/
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (... | 40,989 |
https://github.com/cscheid/cscheid-js/blob/master/src/cscheid/random.js | Github Open Source | Open Source | MIT | null | cscheid-js | cscheid | JavaScript | Code | 406 | 991 | /** @module cscheid/random */
import * as cscheid from '../cscheid.js';
// plain box-muller
let hasPrevGauss = false; let prevGauss;
export function normalVariate() {
if (hasPrevGauss) {
hasPrevGauss = false;
return prevGauss;
}
const u1 = Math.random(); const u2 = Math.random();
const r = Math.sqrt(-... | 35,165 |
https://github.com/gaimtime78/kmm-risnov/blob/master/resources/views/user/list-mahasiswa-kkn-detail.blade.php | Github Open Source | Open Source | MIT | null | kmm-risnov | gaimtime78 | PHP | Code | 206 | 891 | @extends('layout.user')
@section('content1')
<section class="section">
<div class="container">
<div class="row">
<div class="col-md-2"></div>
<div class="col-md-4">
<div class="row">
<div class="col-md-12">
<div class="image... | 19,416 |
https://github.com/ideaconnect/fakepay-payum/blob/master/src/Action/ConvertPaymentAction.php | Github Open Source | Open Source | MIT | null | fakepay-payum | ideaconnect | PHP | Code | 112 | 469 | <?php
namespace IDCT\Payum\Fakepay\Action;
use IDCT\Payum\Fakepay\Constants;
use Payum\Core\Action\ActionInterface;
use Payum\Core\Bridge\Spl\ArrayObject;
use Payum\Core\Exception\InvalidArgumentException;
use Payum\Core\Exception\RequestNotSupportedException;
use Payum\Core\Model\PaymentInterface;
use Payum\Core\Req... | 17,782 |
https://github.com/alexwilkinson/immedialist-backend/blob/master/app/services/query/album.rb | Github Open Source | Open Source | MIT | null | immedialist-backend | alexwilkinson | Ruby | Code | 14 | 76 | class Query::Album < Query
private
def query_by_name
MusicQuerier.search_by_album_name(name)
end
def query_by_external_id
MusicQuerier.search_by_album_id(external_id)
end
end
| 3,402 |
https://github.com/Dysar/Blinq/blob/master/Blinq/ClientApp/src/app/workers-table/workers-table.component.ts | Github Open Source | Open Source | MIT | null | Blinq | Dysar | TypeScript | Code | 254 | 804 | import { Component, AfterViewInit, Inject } from '@angular/core';
import { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material';
import { HttpClient } from '@angular/common/http';
import { MatTableDataSource } from '@angular/material';
import { Observable } from 'rxjs/Observable';
import { interval } fro... | 38,391 |
https://github.com/dickjustice/bbuddy/blob/master/src/fffind.py | Github Open Source | Open Source | MIT | 2,020 | bbuddy | dickjustice | Python | Code | 565 | 1,648 | #!/usr/bin/env python3
#
# fffind.py
#
# (c) 2020 Dick Justice
# Released under MIT license.
import sys,os,subprocess
from pathlib import Path
FFFIND_VER = '0.0.003'
RED="\033[1;31m"; YELLOW="\033[0;33m"; GREEN="\033[0;32m"; RESET="\033[0;0m"; BOLD="\033[;1m";BLUE="\033[1;34m"
BOLD_YELLOW = "\033[1;33m"
BOLD_R... | 21,861 |
https://github.com/chewtoys/nuxt-typescript-strapi-boilerplate/blob/master/client/assets/sass/_vars.sass | Github Open Source | Open Source | MIT | 2,019 | nuxt-typescript-strapi-boilerplate | chewtoys | Sass | Code | 69 | 235 | $default-font: "font", sans-serif
$default-font-size: 24px
$d: #283229
$l: #FFEBCD //#EDD1A5
$a: #E5E5E5
$shadow: 0px 3px 8px 0px rgba($d, 0.08)
$shadow-active: 3px 6px 12px 3px rgba($d, 0.08)
$radius: 3px
$space: 10px
$gradient: radial-gradient(circle 50px at 20% 30%, #fff, $l)
// Grid variables
$grid-column: 16
$pre... | 31,895 |
https://github.com/dot42/api/blob/master/System/Threading/Tasks/TaskFactory_TResult.cs | Github Open Source | Open Source | Apache-2.0 | 2,017 | api | dot42 | C# | Code | 422 | 1,248 | // Copyright (C) 2014 dot42
//
// Original filename: TaskFactory_TResult.cs
//
// 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
//
// Un... | 36,707 |
https://github.com/zhangrxiang/GolangTraining/blob/master/05_blank-identifier/02_http-get_example/01_with-error-checking/main.go | Github Open Source | Open Source | Apache-2.0 | 2,020 | GolangTraining | zhangrxiang | Go | Code | 73 | 316 | package main
import (
"fmt"
"io/ioutil"
"log"
"net/http"
)
func body(response *http.Response) []byte {
page, err := ioutil.ReadAll(response.Body)
response.Body.Close()
if err != nil {
log.Fatal(err)
}
return page
}
func response(response *http.Response) {
fmt.Println(response.Status)
fmt.Println(response... | 19,730 |
https://github.com/Ruben-VandeVelde/mathlib/blob/master/src/data/real/pi.lean | Github Open Source | Open Source | Apache-2.0 | 2,021 | mathlib | Ruben-VandeVelde | Lean | Code | 1,920 | 5,572 | /-
Copyright (c) 2019 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import analysis.special_functions.trigonometric
namespace real
variable (x : ℝ)
/-- the series `sqrt_two_add_series x n` is `sqrt(2 + sqrt(2 + ... ))` with `n` ... | 35,329 |
https://github.com/hupfdule/exi-testsuite/blob/master/framework/src/fc/fp/util/xmlr/RefTreeImpl.java | Github Open Source | Open Source | W3C-19980720, W3C | 2,019 | exi-testsuite | hupfdule | Java | Code | 60 | 174 | // $Id: RefTreeImpl.java,v 1.1 2010/02/23 20:31:10 tkamiya Exp $
package fc.fp.util.xmlr;
/** Default implementation of {@link RefTree}.
*/
public class RefTreeImpl implements RefTree {
protected RefTreeNode root;
/** Create a new reftree.
* @param root root of the reftree
*/
public RefTreeImpl(RefTree... | 39,598 |
https://github.com/shaojiankui/iOS10-Runtime-Headers/blob/master/Frameworks/Speech.framework/SFSpeechRecognizer.h | Github Open Source | Open Source | MIT | 2,018 | iOS10-Runtime-Headers | shaojiankui | C | Code | 181 | 774 | /* Generated by RuntimeBrowser
Image: /System/Library/Frameworks/Speech.framework/Speech
*/
@interface SFSpeechRecognizer : NSObject <AFDictationDelegate> {
long long _defaultTaskHint;
<SFSpeechRecognizerDelegate> * _delegate;
AFDictationConnection * _dictationConnection;
<NSObject> * _facetimeObs... | 5,909 |
https://github.com/RDJGraceShopper/graceshopper/blob/master/client/store/order.js | Github Open Source | Open Source | MIT | null | graceshopper | RDJGraceShopper | JavaScript | Code | 512 | 1,471 | import axios from 'axios'
// ACTION TYPES
import {
GOT_ALL_ORDERS,
GOT_SINGLE_ORDER,
GOT_OPEN_ORDER,
REMOVE_FROM_CART
} from './actionTypes'
// INITIAL STATE
const initialState = {
selectedOrder: {},
orders: [],
openOrder: {}
}
// ACTION CREATORS
const gotOrders = orders => {
return {
type: GO... | 1,919 |
https://github.com/pozetroninc/qrbarco_de-frontend/blob/master/src/App.vue | Github Open Source | Open Source | Apache-2.0 | 2,023 | qrbarco_de-frontend | pozetroninc | Vue | Code | 485 | 1,913 | <template>
<div id="app">
<app-header
:active-color-scheme="ACTIVE_COLOR_SCHEME_KEY"
:active-method="method"
:handle-method-change="switchMethod"
/>
<section class="section">
<div class="container">
<div class="columns">
<div class="column is-two-thirds">
... | 32,374 |
https://github.com/cloud-hybrid/factory/blob/master/src/commands/factory/initialize.ts | Github Open Source | Open Source | BSD-3-Clause | null | factory | cloud-hybrid | TypeScript | Code | 861 | 1,873 | import Assertion from "assert";
import FS from "fs";
import Module from "module";
import Path from "path";
import Process from "process";
import Utility from "util";
import { Argv } from "yargs";
import { Distributable } from "../../library/types/distributable.js";
const Remove = Utility.promisify( FS.rm );
/*** *C... | 18,932 |
https://github.com/kapiya/137-stopmove/blob/master/src/main/java/onethreeseven/stopmove/command/FindStopsMovesGBSMoT.java | Github Open Source | Open Source | MIT | 2,018 | 137-stopmove | kapiya | Java | Code | 240 | 707 | package onethreeseven.stopmove.command;
import com.beust.jcommander.Parameter;
import onethreeseven.datastructures.model.STPt;
import onethreeseven.datastructures.model.STStopTrajectory;
import onethreeseven.datastructures.model.SpatioCompositeTrajectory;
import onethreeseven.stopmove.algorithm.GBSMoT;
import java.ut... | 28,439 |
https://github.com/isabella232/p2p_incentives/blob/master/node.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | p2p_incentives | isabella232 | Python | Code | 2,844 | 6,377 | """
This module contains Neighbor and Peer classes. They are both representatives of nodes.
Note that sometimes we use "node" and "peer" interchangeably in the comment.
"""
import collections
import copy
from typing import Deque, Set, Dict, List, Tuple, TYPE_CHECKING
from message import OrderInfo, Order
from data_type... | 27,222 |
https://github.com/apache/activemq-artemis/blob/master/artemis-jdbc-store/src/main/java/org/apache/activemq/artemis/jdbc/store/journal/JDBCJournalLoaderCallback.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-public-domain, MIT, OFL-1.1 | 2,023 | activemq-artemis | apache | Java | Code | 340 | 876 | /*
* 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 n... | 27,766 |
https://github.com/dcarrol3/Otter-Game/blob/master/core/src/com/game/otter/game/GameScreen.java | Github Open Source | Open Source | MIT | null | Otter-Game | dcarrol3 | Java | Code | 1,814 | 6,024 | // Otter Game
// Main game screen
// By Doug Carroll and Jon Jordan
package com.game.otter.game;
import java.util.ArrayList;
import java.util.Random;
import com.badlogic.gdx.Application.ApplicationType;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input.Keys;
import com.badlogic.gdx.InputAdapter;
import com.b... | 24,874 |
https://github.com/chisuhua/llvm/blob/master/try/run_ppu_test.sh | Github Open Source | Open Source | Apache-2.0 | null | llvm | chisuhua | Shell | Code | 251 | 2,348 | #!/bin/bash
# -*- coding: utf-8 -*-
CPU=riscv32
CPU=PPU
#CPU=AMDGPU
if [ $CPU == "AMDGPU" ]; then
OPT_CPU="-mtriple=amdgcn-unknown-unknown"
cpu="amdgpu"
triple="amdgcn"
fi
#OPT_CPU="-mtriple=ppu-unknown-unknown"
if [ $CPU == "PPU" ]; then
OPT_CPU="-mtriple=ppu"
cpu="ppu"
triple="ppu"
fi
#cd /work/git/chisuhua/proje... | 1,612 |
https://github.com/yashghantala/quarkusio.github.io/blob/master/_generated-config/config/quarkus-micrometer-config-group-config-micrometer-config-binder-config.adoc | Github Open Source | Open Source | CC-BY-3.0 | null | quarkusio.github.io | yashghantala | AsciiDoc | Code | 160 | 860 | [.configuration-legend]
icon:lock[title=Fixed at build time] Configuration property fixed at build time - All other configuration properties are overridable at runtime
[.configuration-reference, cols="80,.^10,.^10"]
|===
h|[[quarkus-micrometer-config-group-config-micrometer-config-binder-config_configuration]]link:#qu... | 14,932 |
https://github.com/cytomine/Cytomine-core/blob/master/test/functional/be/cytomine/security/SecurityTestsAbstract.groovy | Github Open Source | Open Source | Apache-2.0 | 2,023 | Cytomine-core | cytomine | Groovy | Code | 241 | 646 | package be.cytomine.security
/*
* Copyright (c) 2009-2022. Authors: see NOTICE file.
*
* 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
*
* U... | 27,481 |
https://github.com/skeletongo/cube/blob/master/module/init.go | Github Open Source | Open Source | Apache-2.0 | null | cube | skeletongo | Go | Code | 77 | 204 | package module
import (
"github.com/skeletongo/cube/base"
)
var Obj *base.Object
type sink struct {
}
func (s *sink) OnStart() {
}
func (s *sink) OnTick() {
gModuleMgr.OnTick()
}
func (s *sink) OnStop() {
}
var Config = new(Configuration)
type Configuration struct {
Options *base.Options
}
func (c *Configur... | 30,095 |
https://github.com/javaobjects/ipm_boot/blob/master/src/main/java/com/protocolsoft/word/service/ReportModalService.java | Github Open Source | Open Source | MulanPSL-2.0, LicenseRef-scancode-mulanpsl-2.0-en, LicenseRef-scancode-unknown-license-reference | 2,023 | ipm_boot | javaobjects | Java | Code | 196 | 717 | /**
*<p>Copyright © 北京协软科技有限公司版权所有。</p>
*/
package com.protocolsoft.word.service;
import java.util.List;
import java.util.Map;
import com.protocolsoft.user.bean.SystemUserBean;
import com.protocolsoft.word.bean.ReportModalBean;
/**
*
* @ClassName: ReportModalService
* @Description:
* @author 刘斌
*
*/
public... | 36,888 |
https://github.com/NardiniA/Design-Test/blob/master/ShapeMorphIdeas/js/demo3.js | Github Open Source | Open Source | MIT | 2,019 | Design-Test | NardiniA | JavaScript | Code | 69 | 294 | /**
* demo3.js
* http://www.codrops.com
*
* Licensed under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*
* Copyright 2017, Codrops
* http://www.codrops.com
*/
{
class MorphingBG {
constructor(el) {
this.DOM = {};
this.DOM.el = el;
this.DOM.paths = Array.from(this.DOM.el.q... | 10,989 |
https://github.com/Pyriaxis/gbf-teambuilder/blob/master/src/data/calculation.js | Github Open Source | Open Source | MIT | null | gbf-teambuilder | Pyriaxis | JavaScript | Code | 247 | 794 | import * as buffs from "./category/buffs";
import * as nukes from "./category/nukes";
import {round} from "lodash";
import {CHARGE_BAR_BOOST} from "./category/buffs";
export function calcNormalAtk(array){
let multiplier = 1.00;
let mulA = 0;
let mulB = 0;
let mulC = 0;
array.forEach(buff=>{
... | 45,402 |
https://github.com/g-yonchev/TelerikAcademy/blob/master/Homeworks/C# 2/ExamsPractice/Examples/01. Zerg - SecondWay/ZergProblem.cs | Github Open Source | Open Source | MIT | 2,015 | TelerikAcademy | g-yonchev | C# | Code | 146 | 389 | namespace Zerg
{
using System;
class ZergProblem
{
static int ConvertZergDigitToInt(string digit)
{
switch (digit)
{
case "Rawr": return 0; break;
case "Rrrr": return 1; break;
case "Hsst": return 2; break;
... | 35,284 |
https://github.com/JacekDanecki/compute-runtime/blob/master/opencl/test/unit_test/api/cl_release_command_queue_tests.inl | Github Open Source | Open Source | MIT | 2,021 | compute-runtime | JacekDanecki | C++ | Code | 190 | 884 | /*
* Copyright (C) 2018-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/test/common/helpers/unit_test_helper.h"
#include "opencl/source/context/context.h"
#include "opencl/test/unit_test/fixtures/device_host_queue_fixture.h"
#include "opencl/test/unit_test/mocks/mock_kernel.h"
#inc... | 20,584 |
https://github.com/billy-poon/yii2-app-basic/blob/master/models/tree/TreeNodeInterface.php | Github Open Source | Open Source | BSD-3-Clause | null | yii2-app-basic | billy-poon | PHP | Code | 46 | 118 | <?php
namespace app\models\tree;
interface TreeNodeInterface
{
public function getDepth();
public function getParent();
public function setParent(TreeNodeInterface $node = null);
public function getChildren();
public function appendChild(TreeNodeInterface $node);
public function each($bfs = false);
... | 13,275 |
https://github.com/yudaprama/iso20022/blob/master/model/TradeLeg9.go | Github Open Source | Open Source | MIT | 2,023 | iso20022 | yudaprama | Go | Code | 937 | 2,731 | package model
// Provides the trade leg details.
type TradeLeg9 struct {
// Margin account where the negotiation and liquidation risks will be calculated.
MarginAccount *SecuritiesAccount19 `xml:"MrgnAcct,omitempty"`
// Account opened by the central counterparty in the name of the clearing member or its settlemen... | 21,527 |
https://github.com/arankin-irl/LWSL/blob/master/src/test/java/xyz/baddeveloper/lwsl/client/SocketClientTest.java | Github Open Source | Open Source | Apache-2.0 | null | LWSL | arankin-irl | Java | Code | 271 | 1,149 | package xyz.baddeveloper.lwsl.client;
import org.json.JSONObject;
import org.junit.Before;
import org.junit.Test;
import xyz.baddeveloper.lwsl.client.exceptions.ConnectException;
import xyz.baddeveloper.lwsl.packet.Packet;
import xyz.baddeveloper.lwsl.server.SocketServer;
import xyz.baddeveloper.lwsl.ssl.SSLContextCon... | 3,268 |
https://github.com/theoners/C-OOP-February-2019/blob/master/Reflection and Attributes - Lab/01.Stealer/Spy.cs | Github Open Source | Open Source | MIT | 2,019 | C-OOP-February-2019 | theoners | C# | Code | 69 | 236 | using System;
using System.Linq;
using System.Reflection;
using System.Text;
public class Spy
{
public string StealFieldInfo(string className, params string[] requestedFields)
{
var classType = Type.GetType(className);
var fields = classType.GetFields(B... | 30,805 |
https://github.com/reysatu/sisGest/blob/master/app/Http/Controllers/AuthController.php | Github Open Source | Open Source | MIT | null | sisGest | reysatu | PHP | Code | 113 | 427 | <?php
namespace App\Http\Controllers;
use App\Models\Usuario;
use App\Models\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Auth;
use Symfony\Component\HttpFoundation\Response;
use Illuminate\Support\Facades\Cookie;
class AuthController extends Controller
{
... | 9,319 |
https://github.com/rxrdsoft/gestionar-datos/blob/master/resources/views/auth/login.blade.php | Github Open Source | Open Source | MIT | null | gestionar-datos | rxrdsoft | PHP | Code | 208 | 885 | @extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card-group">
<div class="card p-4">
<div class="card-body">
<for... | 32,012 |
https://github.com/adrian-tarau/testware/blob/master/spi/src/test/java/net/microfalx/testware/spi/HookTest.java | Github Open Source | Open Source | Apache-2.0 | null | testware | adrian-tarau | Java | Code | 56 | 323 | package net.microfalx.testware.spi;
import net.microfalx.testware.spi.metadata.ClassDescriptor;
import net.microfalx.testware.spi.metadata.MethodDescriptor;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
class HookTest {
@org.junit.jupi... | 34,773 |
https://github.com/cbsa-informatik-uni-siegen/gtitool/blob/master/tinylaf/source/de/muntjak/tinylookandfeel/Theme.java | Github Open Source | Open Source | MIT | null | gtitool | cbsa-informatik-uni-siegen | Java | Code | 20,000 | 33,554 | /******************************************************************************* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Tiny Look and Feel * * (C) Copyright 2003 - 2007 Hans Bickel * * For * licensing information and credits, please refer to the * comment in file * de.muntjak.ti... | 43,602 |
https://github.com/akashkalal/grow/blob/master/grow/ui/sass/composite/admin.sass | Github Open Source | Open Source | MIT | 2,022 | grow | akashkalal | Sass | Code | 71 | 221 | html, body
font-family: "Roboto", "Helvetica", sans-serif
ul ul
margin: 10px 0
header .title
margin: 0 0 15px
header nav
margin-bottom: 15px
table
border-collapse: collapse
table tr td,
table tr th
border: 1px sol #efefef
padding: 5px 10px
table tr th
font-weight: bd
text-align: left
dt
font-... | 31,378 |
https://github.com/dusktreader/py-buzz/blob/master/examples/with_buzz_class.py | Github Open Source | Open Source | MIT | 2,023 | py-buzz | dusktreader | Python | Code | 122 | 342 | """
This example shows how the Buzz exception class might be used as the base of a derived class
"""
from buzz import Buzz
from helpers import wrap_demo
class DerivedError(Buzz):
pass
def demo_check_expression():
with DerivedError.check_expressions(f"Some of our expressions were falsey!") as check:
... | 43,756 |
https://github.com/l2c2technologies/sms-send-in-esms/blob/master/t/liveaccttest.t | Github Open Source | Open Source | Artistic-1.0 | null | sms-send-in-esms | l2c2technologies | Perl | Code | 120 | 324 | # Before 'make install' is performed this script should be runnable with
# 'make test'. After 'make install' it should work as 'perl SMS-Send-IN-eSMS.t'
#########################
# Actual live test of sending transactional SMS via eSMS
# Requires paid account with at least one approved message
# template along with... | 45,487 |
https://github.com/skn123/GPc/blob/master/ndlassert.cpp | Github Open Source | Open Source | MIT | 2,022 | GPc | skn123 | C++ | Code | 91 | 304 | #include "ndlassert.h"
void ndlCheckBounds(bool cond)
{
if(cond)
return;
else
{
throw std::out_of_range("Bound check failed.");
}
}
void ndlCheckDimension(bool cond)
{
if(cond)
return;
else
{
throw ndlexceptions::Error("Dimension match check failed.");
}
}
void ndlCheckCharArguments(boo... | 35,079 |
https://github.com/yeeezsh/FluentSearch-Mini/blob/master/src/insight/schema/insight.schema.ts | Github Open Source | Open Source | MIT | 2,021 | FluentSearch-Mini | yeeezsh | TypeScript | Code | 73 | 157 | import { InsightSchema } from 'fluentsearch-types';
import { Document, Schema } from 'mongoose';
export type InsightDoc = Document<InsightSchema>;
export const insightSchema = new Schema<InsightDoc>({
fileId: { type: String, required: true },
result: { type: String, required: true },
model: { type: String },
... | 17,622 |
https://github.com/onesky/onesky-sdk-cl/blob/master/src/build/build.go | Github Open Source | Open Source | BSD-3-Clause | 2,022 | onesky-sdk-cl | onesky | Go | Code | 21 | 92 | package build
import (
"github.com/onesky/onesky-sdk-cli/src/app"
)
var DefaultConfig = app.Config{
Title: "OneSky config",
Api: app.Api{
Url: "https://management-api.onesky.app/v1",
Timeout: 30,
},
}
| 21,786 |
https://github.com/MorevM/more-bem-classnames/blob/master/src/bem-fn.ts | Github Open Source | Open Source | MIT | null | more-bem-classnames | MorevM | TypeScript | Code | 119 | 330 | import { isObject, kebabCase } from '@morev/helpers';
import type { FunctionOptions, ModuleOptions } from '../types';
export default function bemFn(
{
namespace, block, element, modifiers, mixins,
}: FunctionOptions,
{ hyphenate, delimiters: ds }: ModuleOptions,
) {
if (!block) return '';
const root = element
... | 35,795 |
https://github.com/FahrenheitKid/WeFixIt/blob/master/WeFixIt/Assets/Scripts/InputManager.cs | Github Open Source | Open Source | MIT | null | WeFixIt | FahrenheitKid | C# | Code | 155 | 573 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public enum KeyActions
{
Up,
Down,
Left,
Right,
Action
}
public static class InputManager
{
private static KeyCode[][] playerKeys = new KeyCode[4][];
public static void Initialize()
{
playerKeys[0]... | 24,374 |
https://github.com/minigame-network/evolution/blob/master/src/me/chasertw123/evolution/game/GameManager.java | Github Open Source | Open Source | MIT | null | evolution | minigame-network | Java | Code | 1,041 | 5,087 | package me.chasertw123.evolution.game;
import de.robingrether.idisguise.iDisguise;
import me.chasertw123.evolution.Main;
import me.chasertw123.evolution.game.ai.AIPlayer;
import me.chasertw123.evolution.game.ai.GeneralPlayerContainer;
import me.chasertw123.evolution.game.boards.Scoreboard_Game;
import me.chasertw123.e... | 4,529 |
https://github.com/isabella232/msgraph-beta-sdk-java/blob/master/src/main/java/com/microsoft/graph/models/extensions/DataSharingConsent.java | Github Open Source | Open Source | MIT | null | msgraph-beta-sdk-java | isabella232 | Java | Code | 341 | 836 | // ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
pa... | 18,304 |
https://github.com/hyxiaohaiyang/N0018-Genesis-crowd-funding/blob/master/letv-crowdfund-web/src/main/java/com/fbd/web/app/sxyPay/action/SxyPayWithDrawAction.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | N0018-Genesis-crowd-funding | hyxiaohaiyang | Java | Code | 395 | 2,634 | package com.fbd.web.app.sxyPay.action;
import java.util.HashMap;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
i... | 40,731 |
https://github.com/Elwalle/openshift-ansible-contrib-master/blob/master/reference-architecture/gcp/3.9/bastion.sh | Github Open Source | Open Source | Apache-2.0 | 2,022 | openshift-ansible-contrib-master | Elwalle | Shell | Code | 553 | 3,115 | #!/bin/bash
set -eo pipefail
warnuser(){
cat << EOF
###########
# WARNING #
###########
This script is distributed WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
Refer to the official documentation
https://access.redhat.com/documentation/en-us/reference_architectures/2018/html-single/deploying_and_managing_openshift_... | 45,184 |
https://github.com/cmoser8892/MoleDymCode/blob/master/Sourcefiles/clusterGenerator.cpp | Github Open Source | Open Source | MIT | null | MoleDymCode | cmoser8892 | C++ | Code | 1,120 | 2,986 | //
// ih.C
//
// Create Mackay icosaheron structure.
//
// Written by: Yanting Wang 07/21/2003
//
#include "../Headerfiles/clusterGenerator.h"
#include "../Headerfiles/xyz.h"
#include <iostream>
#include <stdlib.h>
#include <libgen.h>
struct Particle
{
char s[10];
Vector v;
}*p;
struct Edge
{
int i;... | 8,920 |
https://github.com/IIGhouLII/IITC_Ingress/blob/master/keys.user.js | Github Open Source | Open Source | MIT | null | IITC_Ingress | IIGhouLII | JavaScript | Code | 1,415 | 6,191 | // ==UserScript==
// @id iitc-plugin-keys@xelio
// @name IITC plugin: Keys
// @category Keys
// @version 0.3.0.20161003.4740
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
// @updateURL https://static.iitc.me/build/release/plugins/keys.meta.js
// @... | 13,050 |
https://github.com/npocmaka/Windows-Server-2003/blob/master/com/netfx/src/framework/winforms/managed/system/winforms/propertyvaluechangedeventhandler.cs | Github Open Source | Open Source | Unlicense | 2,021 | Windows-Server-2003 | npocmaka | C# | Code | 64 | 183 | //------------------------------------------------------------------------------
// <copyright file="PropertyValueChangedEventHandler.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//-------------... | 28,773 |
https://github.com/DavidArppe/GameOff2020/blob/master/Assets/Misc/Terra/Source/Graph/Generators/AbsFractalNoiseNode.cs | Github Open Source | Open Source | MIT | null | GameOff2020 | DavidArppe | C# | Code | 47 | 123 | namespace Terra.Graph.Generators {
public abstract class AbsFractalNoiseNode: AbsGeneratorNode {
[Input] public float Frequency = 1f;
[Input] public float Lacunarity = 2.17f;
[Input] public int OctaveCount = 6;
[Input] public bool Tiling = true;
[Input] public float Period = 1f;
protec... | 45,034 |
https://github.com/wyatt-howe/1-out-of-n/blob/master/demo/io-example.js | Github Open Source | Open Source | MIT | 2,021 | 1-out-of-n | wyatt-howe | JavaScript | Code | 141 | 384 | /*
* Client-Server Communications
*/
var listeners = {};
var mailbox = {};
const dummy_socket = computation_id => ({
get: function (op_id, session_id, tag) {
return new Promise(function (resolve) {
tag = computation_id + ':' + op_id + ':' + session_id + ':' + tag;
if (mailbox[tag] == null) {
... | 47,408 |
https://github.com/pmaciel/climetlab/blob/master/climetlab/vocabularies/aliases.py | Github Open Source | Open Source | Apache-2.0 | null | climetlab | pmaciel | Python | Code | 139 | 383 | #!/usr/bin/env python
#
# (C) Copyright 2021- ECMWF.
#
# This software is licensed under the terms of the Apache Licence Version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
# In applying this licence, ECMWF does not waive the privileges and immunities
# granted to it by virtue of its stat... | 43,160 |
https://github.com/Bhaskers-Blu-Org1/BlueMatter/blob/master/svntrunk/src/pk/pkmain/src/main.cpp | Github Open Source | Open Source | BSD-2-Clause | 2,022 | BlueMatter | Bhaskers-Blu-Org1 | C++ | Code | 598 | 1,349 | /* Copyright 2001, 2019 IBM Corporation
*
* 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 above copyright notice, this list of conditions and the
* following d... | 20,311 |
https://github.com/meroxa/apicurio-registry/blob/master/utils/maven-plugin/src/main/java/io/apicurio/registry/maven/AbstractRegistryMojo.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | apicurio-registry | meroxa | Java | Code | 229 | 536 | /*
* Copyright 2018 Confluent Inc. (adapted from their Mojo)
* Copyright 2019 Red Hat
*
* 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... | 35,306 |
https://github.com/baggio63446333/incubator-nuttx/blob/master/drivers/video/video.c | Github Open Source | Open Source | Apache-2.0 | 2,021 | incubator-nuttx | baggio63446333 | C | Code | 3,552 | 13,709 | /****************************************************************************
* drivers/video/video.c
*
* Copyright 2018 Sony Semiconductor Solutions Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met... | 12,234 |
https://github.com/Hellena42/testproject/blob/master/resources/views/blocks/header/logo.blade.php | Github Open Source | Open Source | MIT | null | testproject | Hellena42 | PHP | Code | 10 | 59 | <div class="header-logotype">
<a class="header-logotype__link"><img class="header-logotype-image" src="img/logo.png" width="195" height="37" alt="Test"></a>
</div> | 28,235 |
https://github.com/kadhirvelm/out-of-step/blob/master/packages/backend/src/cronJobs/instantiateAllCronJobs.ts | Github Open Source | Open Source | MIT | null | out-of-step | kadhirvelm | TypeScript | Code | 243 | 822 | /* eslint-disable @typescript-eslint/quotes */
import _ from "lodash";
import { scheduleJob } from "node-schedule";
import dayjs from "dayjs";
import { getNextTimeWithinMarketHours } from "@stochastic-exchange/utils";
import { postgresPool } from "../utils/getPostgresPool";
import { pricingStocksCronJob } from "./stock... | 33,599 |
https://github.com/roblillack/tack/blob/master/commands/serve.go | Github Open Source | Open Source | MIT | 2,021 | tack | roblillack | Go | Code | 225 | 848 | package commands
import (
"fmt"
"log"
"net/http"
"path/filepath"
"sync"
"time"
"github.com/roblillack/tack/core"
)
var noCacheHeaders = map[string]string{
"Cache-Control": "no-cache, no-store, no-transform, must-revalidate, private, max-age=0",
"Expires": time.Unix(0, 0).Format(time.RFC1123),
"Pragma... | 14,416 |
https://github.com/tonfonka/UpToTrain2/blob/master/resources/views/schedule.blade.php | Github Open Source | Open Source | MIT | null | UpToTrain2 | tonfonka | PHP | Code | 272 | 1,488 | @extends('layouts.layout')
@section('content')
<!-- newedit About Section -->
<!--<section id="about" align="center" padding-top= "50%">-->
<div align="right">
<!--<button type="button" class="btn btn-default btn-lg">
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span> Cl... | 21,820 |
https://github.com/anpint/azure-sdk-for-net/blob/master/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/BookmarkTimelineItem.Serialization.cs | Github Open Source | Open Source | LicenseRef-scancode-generic-cla, MIT, LGPL-2.1-or-later, Apache-2.0 | 2,022 | azure-sdk-for-net | anpint | C# | Code | 223 | 880 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
using System.Text.Json;
using Azure.Core;
namespace Azure.ResourceManager.SecurityInsights.Models
{
public partial class Bookmark... | 40,722 |
https://github.com/Baytul163-15/Nogoraion/blob/master/config/weather.php | Github Open Source | Open Source | MIT | null | Nogoraion | Baytul163-15 | PHP | Code | 162 | 479 | <?php
return [
'setting' => [
'api_key' => '18103825fb389181de986d249211193c', // Api key
'units' => 'metric', // Units of measurement. standard, metric and imperial units are available.
],
'citys' => [
'Dhaka' => [
'city' => null,
'lat' => 23.81,
... | 7,435 |
https://github.com/OxCom/SymfonyRollbarBundle/blob/master/Provider/Api/Filter.php | Github Open Source | Open Source | MIT | 2,021 | SymfonyRollbarBundle | OxCom | PHP | Code | 72 | 162 | <?php
namespace SymfonyRollbarBundle\Provider\Api;
/**
* Class Validator
*
* Before calls to API we have to check some restrictions on Rollbar side to avoid drops of request
*
* @package SymfonyRollbarBundle\Provider\Api
*/
class Filter
{
/**
* @param mixed $value
* @param string $filterName
... | 19,862 |
https://github.com/Mhithrandir/go-cms/blob/master/www/templates/app/website/src/app/classes/user.ts | Github Open Source | Open Source | MIT | 2,021 | go-cms | Mhithrandir | TypeScript | Code | 46 | 113 | import { BasicTable } from "./basic-table";
import { UserType } from "./user-type";
export class User extends BasicTable {
public Username!: string;
public Password!: string;
public LastLogin!: Date;
public DatePassword!: Date;
public PasswordDuration!: number;
public IDUserType!: number;
public CodeResetPas... | 9,033 |
https://github.com/kongaraju/antkorp/blob/master/3party/dtl-1.18/test/comparators.hpp | Github Open Source | Open Source | CC-BY-3.0, Apache-2.0 | 2,015 | antkorp | kongaraju | C++ | Code | 66 | 195 | #ifndef DTL_COMPARATORS
#define DTL_COMPARATORS
class CaseInsensitive: public dtl::Compare<char> {
public:
virtual bool impl(const char& a, const char& b) const {
return tolower(a) == tolower(b);
}
};
class StringCaseInsensitive: public dtl::Compare<string> {
public:
virtual bool impl(string& a, s... | 20,667 |
https://github.com/I-Enderlord-I/CCTweaks/blob/master/src/test/java/org/squiddev/cctweaks/core/network/PacketTest.java | Github Open Source | Open Source | MIT | 2,016 | CCTweaks | I-Enderlord-I | Java | Code | 286 | 1,098 | package org.squiddev.cctweaks.core.network;
import com.google.gson.Gson;
import dan200.computercraft.api.network.IPacketSender;
import dan200.computercraft.api.network.Packet;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Vec3d;
import net.minecraft.world.World;
import org.junit.Test;
import ... | 43,041 |
https://github.com/ricardodalarme/CryBits/blob/master/Client.Framework/Audio/Sound.cs | Github Open Source | Open Source | MIT | 2,023 | CryBits | ricardodalarme | C# | Code | 94 | 261 | using CryBits.Client.Framework.Constants;
using SFML.Audio;
namespace CryBits.Client.Framework.Audio;
public static class Sound
{
// Dispositivo sonoro
public static readonly Dictionary<string, SFML.Audio.Sound> List = new();
public static void Load()
{
var files = Directories.Sounds.GetFile... | 3,642 |
https://github.com/il3n/PodTest/blob/master/PodTest/PodTest/Shared/Person.m | Github Open Source | Open Source | MIT | 2,016 | PodTest | il3n | Objective-C | Code | 26 | 72 | //
// Person.m
// PodTest
//
// Created by lijun on 16/11/23.
//
//
#import "Person.h"
@implementation Person
-(void) sayHello {
NSLog(@"Hello from Pod");
}
@end
| 31,958 |
https://github.com/robertsundstrom/PointOfSale/blob/master/WebApi/WebApi/Catalog/Models.cs | Github Open Source | Open Source | MIT | 2,021 | PointOfSale | robertsundstrom | C# | Code | 183 | 451 | namespace WebApi.Catalog;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using WebApi.Hal;
using WebApi.Shared;
public class Items : Resource<ItemsEmbedded>
{
public int Count { get; set; }
public int Total { get; set; }
}
public class ItemsEmbedded
{
[JsonProperty("items", NullValueHandli... | 3,046 |
https://github.com/theemack/webumenia.sk/blob/master/app/Harvest/Harvesters/ItemHarvester.php | Github Open Source | Open Source | MIT, LicenseRef-scancode-proprietary-license, LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain | 2,020 | webumenia.sk | theemack | PHP | Code | 283 | 1,079 | <?php
namespace App\Harvest\Harvesters;
use App\Harvest\Importers\ItemImporter;
use App\Harvest\Repositories\ItemRepository;
use App\Harvest\Result;
use App\Item;
use App\SpiceHarvesterRecord;
use Illuminate\Support\Str;
use Monolog\Logger;
class ItemHarvester extends AbstractHarvester
{
/** @var array */
pr... | 47,196 |
https://github.com/classicsunny/grafana/blob/master/public/app/features/dashboard/services/DashboardLoaderSrv.ts | Github Open Source | Open Source | Apache-2.0 | 2,017 | grafana | classicsunny | TypeScript | Code | 365 | 1,177 | import angular from 'angular';
import moment from 'moment'; // eslint-disable-line no-restricted-imports
import _ from 'lodash';
import $ from 'jquery';
import kbn from 'app/core/utils/kbn';
import { AppEvents, dateMath, UrlQueryValue } from '@grafana/data';
import impressionSrv from 'app/core/services/impression_srv';... | 32,618 |
https://github.com/sbcmadn1/Have-a-pet/blob/master/有宠ZJZ离线测试版/有宠ZJZ/Classes/Share(分享)/View/CZStatuseCell.h | Github Open Source | Open Source | MIT | 2,015 | Have-a-pet | sbcmadn1 | Objective-C | Code | 35 | 279 | //
// CZStatuseCell.h
// 15-微博案例(屏幕适配)
//
#import <UIKit/UIKit.h>
@class CZStatuse;
@interface CZStatuseCell : UITableViewCell
@property (nonatomic,strong) CZStatuse *statuse;
/**
* 1.如果采用连线方式使指针对象指向一个同类型的对象,可以使用weak属性,因为这时候被连线的对象是全局的
* 2.如果采用写代码创建一个同类型的对象,并赋值给该对象的话,属性必须是strong,因为代码创建的对象是局部的,必须用一个强指针执行,不然出了方... | 240 |
https://github.com/itfuyun/jeebud/blob/master/jeebud-modules/module-upms/src/main/java/com/jeebud/module/upms/controller/LogController.java | Github Open Source | Open Source | MIT | 2,021 | jeebud | itfuyun | Java | Code | 212 | 1,089 | package com.jeebud.module.upms.controller;
import com.jeebud.core.web.RestEntity;
import com.jeebud.core.log.OpTypeEnum;
import com.jeebud.core.log.Operation;
import com.jeebud.module.upms.model.entity.LoginLog;
import com.jeebud.module.upms.model.entity.OperationLog;
import com.jeebud.module.upms.model.param.log.Logi... | 46,182 |
https://github.com/sanshishen/webgl-first/blob/master/public/assets/js/sun.js | Github Open Source | Open Source | MIT | null | webgl-first | sanshishen | JavaScript | Code | 191 | 749 | /**
* sun
* @date 2018-05-29 11:59:17
* @version 1.0.0
*/
define(['sim/sim', 'js/static'], function(Sim, STATIC) {
function Sun() {
Sim.Object.call(this);
}
Sun.prototype = new Sim.Object();
Sun.prototype.init = function() {
var sunGroup = new THREE.Object3D(),
sunMap ... | 5,437 |
https://github.com/aqkhan/weconnect-demo/blob/master/src/components/footer.js | Github Open Source | Open Source | MIT | null | weconnect-demo | aqkhan | JavaScript | Code | 100 | 490 | import React from "react"
const footer = () => {
return (
<footer>
<div className="container">
<div className="row">
<div className="col-md-4">
<img src="/images/logo_footer.webp" alt=""/>
<p className="email lato-regular">
... | 7,424 |
https://github.com/lihaochen910/RPGMakerProject/blob/master/js/ecs/component.js | Github Open Source | Open Source | MIT | null | RPGMakerProject | lihaochen910 | JavaScript | Code | 1,102 | 2,596 | const ComponentRefs = require ( './componentrefs' );
const UUID = require ( 'uuid/v1' );
const CoreProperties = new Set ( [
'ecs', 'entity', 'type', '_values', '_ready', 'id',
'updated', 'constructor', 'stringify', 'clone', 'getObject'
] );
class BaseComponent {
constructor ( ecs, entity, initialValues ) {
Obje... | 23,943 |
https://github.com/aszecsei/Crimson/blob/master/Crimson.UI/Flags.cs | Github Open Source | Open Source | MIT | null | Crimson | aszecsei | C# | Code | 350 | 749 | using System;
namespace Crimson.UI
{
[Flags]
public enum Align
{
None = 0,
CenterX = 1 << 0,
CenterY = 1 << 1,
Top = 1 << 2,
Bottom = 1 << 3,
Left = 1 << 4,
Right = 1 << 5,
TopLeft = Top | Left,
TopCenter = Top | Cen... | 13,269 |
https://github.com/oursky/eslint-oursky/blob/master/.gitignore | Github Open Source | Open Source | Apache-2.0 | 2,023 | eslint-oursky | oursky | Ignore List | Code | 5 | 24 | node_modules/
*.log
dist/
.parcel-cache/
.DS_Store
| 31,660 |
https://github.com/Ortus-Solutions/ColdCukes/blob/master/index.cfm | Github Open Source | Open Source | MIT | 2,021 | ColdCukes | Ortus-Solutions | ColdFusion | Code | 564 | 1,944 | <cfscript>
/*
start here to make changes to how the stub files are generated
*/
// this is where your *.feature files (Gherkin formatted text) should live
param name="form.featuresDir" type="string" default='#expandPath(".") & "\testData"#';
// this is your stub files results
param name="form.outputDir" type=... | 47,623 |
https://github.com/yunfandev/AlbiteREADER-WindowsPhone/blob/master/Albite.Reader.Core/Test/IsolatedContainerTest.cs | Github Open Source | Open Source | Apache-2.0 | 2,016 | AlbiteREADER-WindowsPhone | yunfandev | C# | Code | 96 | 293 | using Albite.Reader.Core.IO;
using Albite.Reader.Core.Test;
using System.IO;
namespace Albite.Reader.Core.Test
{
public class IsolatedContainerTest : TestCase
{
string basePath;
string[] entityNames;
public IsolatedContainerTest(string basePath, string[] entityNames)
{
... | 14,149 |
https://github.com/luxonis/depthai-hardware/blob/master/OSHW_KiCad_Community/Footprints/Altium Transfer Archive/OSHW_CAP_Altium_Vault_Generic_20201223.pretty/CAPC1005(2512)165_N.kicad_mod | Github Open Source | Open Source | MIT | 2,023 | depthai-hardware | luxonis | KiCad Layout | Code | 194 | 730 | (module "CAPC1005(2512)165_N" (layer F.Cu) (tedit 5B0D3C36)
(fp_line (start -0.05000 -0.65000) (end 0.05000 -0.65000) (layer Cmts.User) (width 0.2))
(fp_line (start -0.05000 0.65000) (end 0.05000 0.65000) (layer Cmts.User) (width 0.2))
(fp_line (start -2.05000 0.65000) (end -2.05000 -0.65000) (layer Cmts.User) (w... | 16,773 |
https://github.com/787917909/lottery/blob/master/app/src/main/java/com/example/qiang/adapter/LotteryAdapter.java | Github Open Source | Open Source | Apache-2.0 | null | lottery | 787917909 | Java | Code | 285 | 1,092 | package com.example.qiang.adapter;
import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Filter;
import android.widget.Filterable;
import android.widget.ImageView;
import android.widget.TextView;... | 21,032 |
https://github.com/sparsetech/pine/blob/master/src/test/scala-js/pine/dom/DOMSpec.scala | Github Open Source | Open Source | Apache-2.0 | 2,020 | pine | sparsetech | Scala | Code | 1,056 | 4,364 | package pine.dom
import org.scalajs.dom
import org.scalatest.funsuite.AnyFunSuite
import pine._
import scala.collection.mutable.ListBuffer
import scala.scalajs.js
class DOMSpec extends AnyFunSuite {
/*
test("Render node with one-way binding") {
val title = Var("test")
val span = html"""<div id="text"></... | 44,386 |
https://github.com/pagupasoft/NEOPAGUPA/blob/master/resources/views/admin/citasMedicas/atencionCitas/individualPlano.blade.php | Github Open Source | Open Source | MIT | null | NEOPAGUPA | pagupasoft | PHP | Code | 253 | 1,412 | @extends ('admin.layouts.admin')
@section('principal')
<div class="card card-secondary">
<div class="card-header">
<h3 class="card-title">Informe Individual de Clientes</h3>
</div>
<!-- /.card-header -->
<div class="card-body">
<form class="form-horizontal" method="get" action="{{ u... | 16,978 |
https://github.com/blongz/elfinder-2.x-servlet/blob/master/src/main/java/org/grapheco/elfinder/util/FsServiceUtils.java | Github Open Source | Open Source | BSD-2-Clause | 2,022 | elfinder-2.x-servlet | blongz | Java | Code | 43 | 176 | package org.grapheco.elfinder.util;
import java.io.IOException;
import org.grapheco.elfinder.controller.executor.FsItemEx;
import org.grapheco.elfinder.service.FsItem;
import org.grapheco.elfinder.service.FsService;
public abstract class FsServiceUtils
{
public static FsItemEx findItem(FsService fsService, String h... | 32,889 |
https://github.com/akiles987/cursoslaravel/blob/master/app/Http/Controllers/ProfesoreController.php | Github Open Source | Open Source | MIT | null | cursoslaravel | akiles987 | PHP | Code | 152 | 585 | <?php
namespace App\Http\Controllers;
use App\Models\Profesore;
use Illuminate\Http\Request;
use PDF;
use App\Rules\Validardni;
class ProfesoreController extends Controller
{
public function index()
{
$profesores = Profesore::all();
return view('profesores.index', compact('profesores'));
... | 15,540 |
https://github.com/shark8me/kubeapps/blob/master/dashboard/src/components/ChartList/ChartListItem.tsx | Github Open Source | Open Source | Apache-2.0 | null | kubeapps | shark8me | TypeScript | Code | 126 | 447 | import * as React from "react";
import { Link } from "react-router-dom";
import placeholder from "../../placeholder.png";
import { IChart } from "../../shared/types";
import Card, { CardContent, CardIcon } from "../Card";
import "./ChartListItem.css";
interface IChartListItemProps {
chart: IChart;
}
class ChartLi... | 49,288 |
https://github.com/rkausch/opensphere-desktop/blob/master/open-sphere-plugins/wps/src/main/java/io/opensphere/wps/ui/detail/WpsDetailPanel.java | Github Open Source | Open Source | LicenseRef-scancode-free-unknown, Apache-2.0, LicenseRef-scancode-public-domain | 2,020 | opensphere-desktop | rkausch | Java | Code | 655 | 2,493 | package io.opensphere.wps.ui.detail;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import io.opensphere.controlpanels.DetailPane;
import io.opensphere.core.Toolbox;
import io.opensphere.core.util.collections.New;
import io.opensphere.co... | 18,884 |
https://github.com/trowik/document-merge-service/blob/master/document_merge_service/api/tests/test_template.py | Github Open Source | Open Source | MIT | 2,019 | document-merge-service | trowik | Python | Code | 654 | 2,935 | import io
import pytest
from django.core.exceptions import ImproperlyConfigured
from django.urls import reverse
from docx import Document
from lxml import etree
from rest_framework import status
from .. import models
from ..views import walk_nested
from .data import django_file
@pytest.mark.parametrize(
"templa... | 5,649 |
https://github.com/datenreisender/dotfiles/blob/master/bin/off | Github Open Source | Open Source | MIT | 2,023 | dotfiles | datenreisender | Shell | Code | 17 | 65 | #!/bin/sh
resize "" $(longest_line < ~/downloads.txt)
caffeinate bash -c "
cat ~/downloads.txt &&
otr-fetch &&
(otr-decode-move; otr-print-failures)"
| 19,449 |
https://github.com/Kleidukos/haddock/blob/master/html-test/src/PR643.hs | Github Open Source | Open Source | BSD-2-Clause | 2,023 | haddock | Kleidukos | Haskell | Code | 10 | 29 | {-# LANGUAGE Haskell2010 #-}
module PR643 (test) where
import PR643_1
| 21,232 |
https://github.com/reverofx/rv6/blob/master/user/usys.pl | Github Open Source | Open Source | MIT-0 | 2,022 | rv6 | reverofx | Perl | Code | 134 | 478 | #!/usr/bin/perl -w
# Generate usys.S, the stubs for syscalls.
print "# generated by usys.pl - do not edit\n";
print "#include \"kernel/syscall.h\"\n";
$target = $ENV{'TARGET'};
if($target eq "riscv") {
*entry = sub {
my $name = shift;
print ".global $name\n";
print "${name}:\n";
... | 19,023 |
https://github.com/chandrab/steampipe_alchemy/blob/master/tests/main/test_steampipe_alchemy.py | Github Open Source | Open Source | BSD-3-Clause | 2,021 | steampipe_alchemy | chandrab | Python | Code | 238 | 1,138 | #!/usr/bin/env python
"""
Tests for `steampipe_alchemy` package.
For testing we grab lists of values via boto3 and compare that to what we get from steampipe-alchemy. This requires AWS
credentials to be set in the environment, because of this these tests only run when merged.
The credentials used for https://github.c... | 33,701 |
https://github.com/bjqiwei/unimrcp/blob/master/libs/sofia-sip/utils/apps_utils.h | Github Open Source | Open Source | Apache-2.0 | null | unimrcp | bjqiwei | C | Code | 425 | 1,466 | #ifndef APPS_UTILS_H /** Defined when apps_utils.h has been included. */
#define APPS_UTILS_H
/**
* @nofile apps_utils.h
* @brief
*
* Copyright (C) 2005 Nokia Corporation.
*
* Written by Pekka Pessi <pekka -dot pessi -at- nokia -dot- com>
*
* @STARTLGPL@
* This library is free software; you can redistribute i... | 10,930 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.