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/filecoin-shipyard/filecoin-cid-checker/blob/master/ui/src/theme/index.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | filecoin-cid-checker | filecoin-shipyard | JavaScript | Code | 184 | 734 | const theme = {
fonts: {
defaultSize: '14px',
fontFamily: `'Poppins'`,
fontFamilyCode: `'Poppins', sans-serif`,
},
colors: {
mainBodyBackgroundLeft: '#0A111E',
mainBodyBackgroundRight: '#1A283E',
},
header: {
backgroundImage: 'linear-gradient(to right, #0A111E, #1A283E)',
boxShadow... | 42,100 |
https://github.com/twitch4j/twitch4j/blob/master/rest-helix/src/main/java/com/github/twitch4j/helix/domain/CharityCampaignWrapper.java | Github Open Source | Open Source | MIT | 2,023 | twitch4j | twitch4j | Java | Code | 99 | 253 | package com.github.twitch4j.helix.domain;
import lombok.AccessLevel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.Setter;
import java.util.List;
import java.util.Optional;
@Data
@Setter(AccessLevel.PRIVATE)
@NoArgsConstructor
public class CharityCampaignWrapper {
/**
* A list that con... | 54,922 |
https://github.com/google/trillian-examples/blob/master/serverless/deploy/github/distributor/combine_witness_signatures/internal/distributor/state.go | Github Open Source | Open Source | Apache-2.0 | 2,023 | trillian-examples | google | Go | Code | 392 | 979 | // Copyright 2021 Google LLC. 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
//
// Unless required by applicable... | 29,611 |
https://github.com/AiYinZiLeGong/imgui/blob/master/src/main/kotlin/imgui/imgui/widgets selectableLists.kt | Github Open Source | Open Source | MIT | 2,019 | imgui | AiYinZiLeGong | Kotlin | Code | 1,316 | 3,585 | package imgui.imgui
import glm_.f
import glm_.glm
import glm_.i
import glm_.vec2.Vec2
import imgui.*
import imgui.ImGui.style
import imgui.ImGui.beginChildFrame
import imgui.ImGui.beginGroup
import imgui.ImGui.buttonBehavior
import imgui.ImGui.calcItemSize
import imgui.ImGui.calcItemWidth
import imgui.ImGui.calcTextSi... | 44,758 |
https://github.com/tonyberrynd/SugarDockerized/blob/master/sugar/modules/Forecasts/clients/base/views/config-worksheet-columns/config-worksheet-columns.js | Github Open Source | Open Source | Apache-2.0 | null | SugarDockerized | tonyberrynd | JavaScript | Code | 782 | 2,372 | /*
* Your installation or use of this SugarCRM file is subject to the applicable
* terms available at
* http://support.sugarcrm.com/Resources/Master_Subscription_Agreements/.
* If you do not agree to all of the applicable terms or do not have the
* authority to bind the entity as an authorized representative, then... | 28,635 |
https://github.com/dsasson48/dsasson.github.io/blob/master/.bundle/ruby/2.4.0/gems/nokogiri-1.8.1/ext/nokogiri/tmp/x86_64-apple-darwin16.7.0/ports/libxml2/2.9.5/libxml2-2.9.5/xml2Conf.sh | Github Open Source | Open Source | MIT | 2,019 | dsasson.github.io | dsasson48 | Shell | Code | 24 | 243 | #
# Configuration file for using the XML library in GNOME applications
#
XML2_LIBDIR="-L/Users/DavidSasson/Desktop/My Websites/Personal/dsasson48.github.io/.bundle/ruby/2.4.0/gems/nokogiri-1.8.1/ports/x86_64-apple-darwin16.7.0/libxml2/2.9.5/lib"
XML2_LIBS="-lxml2 -lz -lpthread -liconv -lm "
XML2_INCLUDEDIR="-I/Users... | 24,143 |
https://github.com/wlfsihua/reechat_base/blob/master/src/tcp_socket_wrapper.cpp | Github Open Source | Open Source | MIT | 2,019 | reechat_base | wlfsihua | C++ | Code | 1,218 | 5,342 | //
// EventSocketWarpper.cpp
// EventTest
//
// Created by raymon_wang on 2017/4/3.
// Copyright © 2017年 reechat studio. All rights reserved.
//
#include "tcp_socket_wrapper.hpp"
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <iostream>
#include <unistd.h>
#include <event.h>
#inc... | 3,913 |
https://github.com/mio4kon/AspectMahou/blob/master/decompile/output/app/src/main/java/org/aspectj/lang/reflect/NoSuchAdviceException.java | Github Open Source | Open Source | MIT | 2,016 | AspectMahou | mio4kon | Java | Code | 34 | 101 | package org.aspectj.lang.reflect;
public class NoSuchAdviceException
extends Exception
{
private static final long serialVersionUID = 3256444698657634352L;
private String name;
public NoSuchAdviceException(String paramString)
{
name = paramString;
}
public String getName()
{
return name;
... | 36,613 |
https://github.com/brucehu123/Bing.NetCore/blob/master/utils/src/Bing.Utils.Drawing/Bing/Drawing/CaptchaType.cs | Github Open Source | Open Source | MIT | 2,020 | Bing.NetCore | brucehu123 | C# | Code | 36 | 126 | namespace Bing.Drawing
{
/// <summary>
/// 验证码类型
/// </summary>
public enum CaptchaType
{
/// <summary>
/// 纯数值
/// </summary>
Number,
/// <summary>
/// 数值与字母组合
/// </summary>
NumberAndLetter,
/// <summary>
/// 汉字
... | 50,442 |
https://github.com/dfe-analytical-services/explore-education-statistics/blob/master/src/GovUk.Education.ExploreEducationStatistics.Content.Services.Tests/__snapshots__/DataGuidanceFileWriterTests.WriteToStream_SingleDataFile.snap | Github Open Source | Open Source | MIT | 2,023 | explore-education-statistics | dfe-analytical-services | null | Spoken | 212 | 336 | Test publication
2020 Reporting year
Description
This document describes the data included in the ‘Children looked after in England including adoptions: 2019 to 2020’ National Statistics release’s underlying data files. This data is released under the terms of the Open Government License and is intended to meet at l... | 12,912 |
https://github.com/ratdaddy/marty/blob/master/spec/dummy/app/models/gemini/grouping.rb | Github Open Source | Open Source | MIT | 2,015 | marty | ratdaddy | Ruby | Code | 15 | 68 | class Gemini::Grouping < ActiveRecord::Base
self.table_name = 'groupings'
has_mcfly append_only: true
validates_presence_of :name
mcfly_validates_uniqueness_of :name
end
| 33,309 |
https://github.com/maartenpaauw/json-resume-to-vcard/blob/master/src/phone.js | Github Open Source | Open Source | MIT | 2,019 | json-resume-to-vcard | maartenpaauw | JavaScript | Code | 28 | 75 | import Resume from './resume'
export default class Phone extends Resume {
constructor (resume) {
super(resume)
}
phones () {
return [{
type: 'home',
text: this.basics.phone
}]
}
}
| 54,344 |
https://github.com/Flytrex/mavlink/blob/master/src/main/java-gen/io/dronefleet/mavlink/common/MavMissionResult.java | Github Open Source | Open Source | MIT | 2,022 | mavlink | Flytrex | Java | Code | 206 | 770 | package io.dronefleet.mavlink.common;
import io.dronefleet.mavlink.annotations.MavlinkEntryInfo;
import io.dronefleet.mavlink.annotations.MavlinkEnum;
/**
* Result of mission operation (in a {@link io.dronefleet.mavlink.common.MissionAck MISSION_ACK} message).
*/
@MavlinkEnum
public enum MavMissionResult {
/**... | 6,558 |
https://github.com/WektorZabrze/ADV_29_11_2018/blob/master/Arek_przyklady/Przykład_2_fold_2/fold_2.cpp | Github Open Source | Open Source | MIT | 2,019 | ADV_29_11_2018 | WektorZabrze | C++ | Code | 425 | 987 | /**
* Fold expressions - przykład 2
* Przykład ma na celu ukazanie różnicy pomiędzy poszczególnymi
* rodzajami fold expressions, jak również pokazać proste
* zastosowanie nowej funkcjonalności.
*/
#include <iostream>
#include <string>
class Complex
{
public:
Complex (double real = 0.0, double imag = 0.0) : ... | 20,058 |
https://github.com/ambitia/ambitia/blob/master/src/Example/Test/IndexEntry.php | Github Open Source | Open Source | MIT | 2,016 | ambitia | ambitia | PHP | Code | 22 | 72 | <?php namespace Ambitia\Example\Test;
use Ambitia\Http\Output\Response;
class IndexEntry
{
public function index()
{
$response = new Response();
$response->setData('Hello world');
return $response->send();
}
} | 25,248 |
https://github.com/amasser/go-workers/blob/master/examples/multiple_workers/multipleworkers.go | Github Open Source | Open Source | MIT | 2,020 | go-workers | amasser | Go | Code | 137 | 432 | package main
import (
"context"
"fmt"
worker "github.com/catmullet/go-workers"
"math/rand"
)
func main() {
ctx := context.Background()
workerOne := worker.NewWorker(ctx, NewWorkerOne(), 10).Work()
workerTwo := worker.NewWorker(ctx, NewWorkerTwo(), 10).InFrom(workerOne).Work()
for i := 0; i < 10; i++ {
work... | 27,937 |
https://github.com/mintforpeople/robobo-ros2-ios-port/blob/master/ros2_mod_ws/build/robobo_msgs_aux/rosidl_typesupport_introspection_c/robobo_msgs_aux/msg/rosidl_typesupport_introspection_c__visibility_control.h | Github Open Source | Open Source | Apache-2.0 | 2,020 | robobo-ros2-ios-port | mintforpeople | C | Code | 101 | 736 | // generated from
// rosidl_typesupport_introspection_c/resource/rosidl_typesupport_introspection_c__visibility_control.h.in
// generated code does not contain a copyright notice
#ifndef ROBOBO_MSGS_AUX__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_
#define ROBOBO_MSGS_AUX__MSG__ROSIDL_TYPESUPPORT_INT... | 55,786 |
https://github.com/Pablogbellido/tienda/blob/master/src/indexBundle/Entity/Factura.php | Github Open Source | Open Source | BSD-3-Clause, MIT | 2,017 | tienda | Pablogbellido | PHP | Code | 314 | 946 | <?php
namespace indexBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Factura
*/
class Factura
{
/**
* @var int
*/
private $id;
/**
* @var \DateTime
*/
private $fecha;
/**
* @var int
*/
private $clienteId;
/**
* @var int
*/
private $em... | 31,738 |
https://github.com/yoozaki/UsbInfo/blob/master/UsbInfo/UsbInfo/Natives/DeviceIoControlInvoker.cs | Github Open Source | Open Source | MIT | 2,019 | UsbInfo | yoozaki | C# | Code | 129 | 477 | using System;
using System.Runtime.InteropServices;
using Microsoft.Win32.SafeHandles;
namespace UsbInfo.Natives
{
internal static class DeviceIoControlInvoker
{
internal static T Invoke<T>(SafeFileHandle handle, int ioControlCode) where T : struct
{
using (var output = new HGlobal... | 35,152 |
https://github.com/vikiana/ShenkuuWarriorII/blob/master/common-snapshot/src/com/neopets/games/inhouse/BubbleMaster/game/bubbleBlast.as | Github Open Source | Open Source | MIT | 2,021 | ShenkuuWarriorII | vikiana | null | Spoken | 241 | 918 | /*
Neopets adaption - 2/2010
*/
package com.neopets.games.inhouse.BubbleMaster.game{
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.filters.GlowFilter;
import flash.filters.DropShadowFilter;
import flash.text.*;
public class bubbleBlast extends MovieClip {
private var sco... | 27,849 |
https://github.com/ttysteale/packer-azure/blob/master/packer/builder/azure/driver_restapi/request_tests/GetVmImages_test.go | Github Open Source | Open Source | Apache-2.0 | 2,015 | packer-azure | ttysteale | Go | Code | 113 | 443 | // Copyright (c) Microsoft Open Technologies, Inc.
// All Rights Reserved.
// Licensed under the Apache License, Version 2.0.
// See License.txt in the project root for license information.
package request_tests
import (
"fmt"
"github.com/ttysteale/packer-azure/packer/builder/azure/driver_restapi/response"
"github... | 52,083 |
https://github.com/BlueChilli/ChilliSource.Front.Installer/blob/master/index.js | Github Open Source | Open Source | MIT | null | ChilliSource.Front.Installer | BlueChilli | JavaScript | Code | 282 | 1,007 | #!/usr/bin/env node
/** Libraries */
const commander = require('commander');
const chalk = require('chalk');
const os = require('os');
const packageJson = require('./package.json');
const path = require('path');
/** Helpers */
const {
createReactAppWithChilliSourceFrontEndAt,
installModulesAndTheirDependencies,
ge... | 30,421 |
https://github.com/wtfcoderz/streamlist/blob/master/internal/youtube/cmd/youtube.go | Github Open Source | Open Source | Apache-2.0 | 2,017 | streamlist | wtfcoderz | Go | Code | 42 | 182 | package main
import (
"fmt"
"github.com/streamlist/streamlist/internal/youtube"
"os"
)
func main() {
youtube.SetDebug()
videos, err := youtube.Search(os.Args[1])
if err != nil {
fmt.Println(err)
os.Exit(1)
}
for _, v := range videos {
fmt.Printf("%s\n", v.ID)
fmt.Printf("%s\n", v.Title)
fmt.Printf... | 203 |
https://github.com/NguyetHMM/AimsProject/blob/master/Modules/Account/Resources/views/login.blade.php | Github Open Source | Open Source | MIT | null | AimsProject | NguyetHMM | PHP | Code | 201 | 771 | @extends('layout.main')
@section('content')
<div class="body__overlay"></div>
<!-- Start Login Register Area -->
<div class="htc__login__register bg__white ptb--130"
style="background: rgba(0, 0, 0, 0) url({{ asset('images/bg/5.jpg') }}) no-repeat scroll center center / cover ;">
<div class... | 46,192 |
https://github.com/YouCodeLikeAGirl/object-detection-tensorflow-angular/blob/master/app/src/app/prediction/prediction.component.scss | Github Open Source | Open Source | MIT | 2,019 | object-detection-tensorflow-angular | YouCodeLikeAGirl | SCSS | Code | 62 | 153 | :host {
canvas {
left: 0;
position: absolute;
top: 0;
}
// Dirty style hacks, but enough for the demo.
// We should never ever accept this on prod.
::ng-deep canvas {
left: 0;
width: 100%;
}
::ng-deep .webcam-wrapper {
height: 100%;
position: relative;
width: 100%;
v... | 733 |
https://github.com/callmegema/SMB-clone/blob/master/Assets/Prefabs/Ground/Tree Top 5x1.prefab | Github Open Source | Open Source | BSD-2-Clause | 2,021 | SMB-clone | callmegema | Unity3D Asset | Code | 1,585 | 6,911 | %YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1001 &100100000
Prefab:
m_ObjectHideFlags: 1
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications: []
m_RemovedComponents: []
m_ParentPrefab: {fileID: 0}
m_RootGameObject: {fileID: 1679030339594966}
m_IsPrefabParent: ... | 47,327 |
https://github.com/bcgov/wps/blob/master/api/app/tests/test_health.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | wps | bcgov | Python | Code | 117 | 422 | """ Test the health endpoint
"""
import os
import json
import requests
from starlette.testclient import TestClient
import app.main
from app.tests.common import MockResponse
def test_ready_ok():
""" Test health endpoint, given that everything is fine """
client = TestClient(app.main.app)
response = client.... | 15,151 |
https://github.com/jbharatrhodes/parbat/blob/master/final/app/Events.php | Github Open Source | Open Source | MIT | 2,018 | parbat | jbharatrhodes | PHP | Code | 24 | 85 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Events extends Model
{
protected $table= "event";
protected $fillable = ['eventName', 'eventDesc','vdcid', 'overseasid', 'eventDate', 'eventTime','image','eventLocation','eventContact' ];
//
}
| 20,596 |
https://github.com/jsau-/madui/blob/master/src/Modal/Modal.styles.ts | Github Open Source | Open Source | MIT | null | madui | jsau- | TypeScript | Code | 63 | 182 | import { makeStyles } from '../styles/makeStyles';
import { Theme } from '../types/Theme';
export const useStyles = makeStyles(
(theme: Theme) => ({
backdrop: {
position: 'absolute',
top: 0,
bottom: 0,
left: 0,
right: 0,
visibility: 'hidden',
zIndex: -1,
},
root:... | 52,450 |
https://github.com/h4ck3rm1k3/federal-election-commission-aggregation-json-2011/blob/master/index/PAYEE/STATE/VA/ZIP/22314/CITY/ALEXANDRIA/STREET_1/117_N_SAINT_ASAPH_ST/ORGANIZATION_NAME/EDONATION_COM_DONATELLI_GROUP_CAMPAIGN_SOLUTIONS/2011/20110411/721738.fec_2/a03a3db7e048d1ed9a050e786c94ddb77ccca760.js | Github Open Source | Open Source | Unlicense | 2,013 | federal-election-commission-aggregation-json-2011 | h4ck3rm1k3 | JavaScript | Code | 1 | 39 | ../../../../../../../../../../../../../../../objects/a0/3a3db7e048d1ed9a050e786c94ddb77ccca760.js | 49,557 |
https://github.com/markbreneman/PubnubFork/blob/master/js/globe.js | Github Open Source | Open Source | MIT | null | PubnubFork | markbreneman | JavaScript | Code | 1,587 | 4,564 | // couple of constants
var POS_X = 1800; // Initial camera pos x
var POS_Y = 500; // Cam pos y
var POS_Z = 1800; // Cam pos z
var DISTANCE = 10000; // Camera distance from globe
var WIDTH = window.innerWidth; // Canvas width
var HEIGHT = window.i... | 39,375 |
https://github.com/petersutter/dashboard/blob/master/.ci/check | Github Open Source | Open Source | Apache-2.0 | 2,022 | dashboard | petersutter | Shell | Code | 79 | 181 | #!/usr/bin/env sh
# SPDX-FileCopyrightText: 2021 SAP SE or an SAP affiliate company and Gardener contributors
#
# SPDX-License-Identifier: Apache-2.0
set -e
if [[ -z "${SOURCE_PATH}" ]]; then
export SOURCE_PATH="$(readlink -f $(dirname ${0})/..)"
else
export SOURCE_PATH="$(readlink -f "${SOURCE_PATH}")"
fi
cd "... | 38,267 |
https://github.com/jared711/meteoroid_orbits/blob/master/src/mice/src/cspice/zzekrplk.c | Github Open Source | Open Source | MIT | 2,022 | meteoroid_orbits | jared711 | C | Code | 2,597 | 4,700 | /* zzekrplk.f -- translated by f2c (version 19980913).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* $Procedure ZZEKRPLK ( EK, look up record pointer ) */
/* Subroutine */ int zzekrplk_(integer *handle, integer *segdsc, integer *n,
integer *recptr... | 49,291 |
https://github.com/nikarm22/phone-book/blob/master/src/components/contact-item/__snapshots__/ContactItem.test.tsx.snap | Github Open Source | Open Source | MIT | 2,021 | phone-book | nikarm22 | null | Spoken | 54 | 285 | // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`components/ContactItem should match the snapshot 1`] = `
<DocumentFragment>
<li
class="MuiListItem-root MuiListItem-gutters"
>
<div
class="MuiListItemAvatar-root"
>
<div
class="MuiAvatar-root MuiAvatar-circle MuiAvatar-colorDefault... | 23,013 |
https://github.com/SamueleDelMoro/ACTAM.Project2122-TraningGame/blob/master/node_modules/standardized-audio-context/src/types/is-part-of-a-cycle-function.ts | Github Open Source | Open Source | MIT | 2,022 | ACTAM.Project2122-TraningGame | SamueleDelMoro | TypeScript | Code | 22 | 53 | import { IAudioNode } from '../interfaces';
import { TContext } from './context';
export type TIsPartOfACycleFunction = <T extends TContext>(audioNode: IAudioNode<T>) => boolean;
| 42,591 |
https://github.com/ptomato/jstar/blob/master/tests/cfg/recent/InitializeReferencedBinding.dot | Github Open Source | Open Source | BSD-2-Clause | 2,022 | jstar | ptomato | Graphviz (DOT) | Code | 145 | 604 | digraph {
node0 [shape=circle label=" " color="black" fillcolor="white" style=filled]
node5 [shape=cds, label=<<font color="black">6:app __x1__ = (base.InitializeBinding base V.ReferencedName W)</font>> color="black" fillcolor="white" style=filled]
node1 [shape=circle label=" " color="black" fillcolor="white" sty... | 8,350 |
https://github.com/itrobramos/fincontrol/blob/master/database/migrations/2021_03_11_021520_add_columns_to_snowball_projects_table.php | Github Open Source | Open Source | MIT | null | fincontrol | itrobramos | PHP | Code | 59 | 224 | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddColumnsToSnowballProjectsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('s... | 5,826 |
https://github.com/ciscochus/floristeriaescobar/blob/master/view/js/informes.js | Github Open Source | Open Source | MIT | 2,016 | floristeriaescobar | ciscochus | JavaScript | Code | 160 | 679 | /* global fecha, bootbox */
$(document).ready(function() {
$("#imprInforme").on("click", function() {
//recogemos el formulario insertado
opcion = $('input:radio[name=informes]:checked').val();
if (opcion == 'infClientes'){
window.open ('../informes/listado_clientes.php', '_blank');
}else if (opcion == '... | 35,535 |
https://github.com/seyeadamaUASZ/mbaba/blob/master/src/app/shared/services/terminal-service.service.ts | Github Open Source | Open Source | Apache-2.0 | 2,019 | mbaba | seyeadamaUASZ | TypeScript | Code | 64 | 200 | import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class TerminalServiceService {
host = '//localhost:8080/';
constructor(private http: HttpClient) { }
loadTerminal(): Observable<any> {
... | 24,041 |
https://github.com/krisbuote/data-collection-dotnet/blob/master/src/DataCollection.Shared/Binding Support/MapViewExtensions.cs | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-unknown-license-reference, Apache-2.0, MIT | 2,020 | data-collection-dotnet | krisbuote | C# | Code | 364 | 1,108 | /*******************************************************************************
* Copyright 2019 Esri
*
* 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... | 40,841 |
https://github.com/brianredbeard/005_breadboard/blob/master/005_breadboard.kicad_pcb | Github Open Source | Open Source | Apache-2.0 | 2,017 | 005_breadboard | brianredbeard | KiCad Layout | Code | 9,258 | 29,636 | (kicad_pcb (version 4) (host pcbnew 4.0.6)
(general
(links 40)
(no_connects 0)
(area 130.734999 78.664999 153.745001 134.695001)
(thickness 1.6)
(drawings 16)
(tracks 98)
(zones 0)
(modules 3)
(nets 41)
)
(page USLetter)
(layers
(0 F.Cu signal)
(31 B.Cu signal)
... | 24,890 |
https://github.com/hikalkan/homeworks/blob/master/java/tcp-ip/src/tcpip/hicp/HICP.java | Github Open Source | Open Source | MIT | 2,019 | homeworks | hikalkan | Java | Code | 103 | 419 | package tcpip.hicp;
import java.util.*;
import tcpip.tcp.TCPDinleyici;
public class HICP
{
private static HICP hicp;
public static HICP getHICP() { return HICP.hicp; }
/** Kullanılmayan portların listesi */
private LinkedList<Short> bosPortListesi;
/** Açık ve aktif olan port numaralarını kullanan bağlan... | 16,549 |
https://github.com/puneethotcool/SoftwareManagement/blob/master/app/models/api/blockchain.js | Github Open Source | Open Source | MIT | 2,015 | SoftwareManagement | puneethotcool | JavaScript | Code | 169 | 592 | var request = require('request')
var exports = module.exports = {};
var Colu = require('colu');
exports.queryAssets = function(address,callback){
request.get('http://testnet.api.coloredcoins.org:80/v3/addressinfo/'+address, function (error, response, body) {
/*if (error) {
return callba... | 12,664 |
https://github.com/igolskyi/bullmq-mailbot/blob/master/src/mail.proccessor.ts | Github Open Source | Open Source | MIT | 2,022 | bullmq-mailbot | igolskyi | TypeScript | Code | 70 | 211 | import { Mail } from "./mail.interface";
import { Job } from "bullmq";
import { SES } from "aws-sdk";
import nodemailer from "nodemailer";
import config from "./config";
let transporter: any;
if (config.smtp.host) {
transporter = nodemailer.createTransport(config.smtp);
} else {
// Make sure you have setup your ... | 49,431 |
https://github.com/nyaruka/surveyor/blob/master/app/src/main/java/io/rapidpro/surveyor/activity/OrgActivity.java | Github Open Source | Open Source | 0BSD | 2,021 | surveyor | nyaruka | Java | Code | 587 | 2,410 | package io.rapidpro.surveyor.activity;
import android.app.AlertDialog;
import android.app.Fragment;
import android.app.FragmentTransaction;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuIte... | 26,984 |
https://github.com/astrofox-io/astrofox/blob/master/__tests__/utils/object.spec.js | Github Open Source | Open Source | MIT | 2,022 | astrofox | astrofox-io | JavaScript | Code | 117 | 322 | /**
* @jest-environment jsdom
*/
import { updateExistingProps } from 'utils/object';
import cloneDeep from 'lodash/cloneDeep';
describe('updateExistingProps works properly', () => {
test('oldProps !== newProps', () => {
const oldProps = { speed: "100", theta: 75, acceleration: "2m/s", undefined: null };
co... | 44,560 |
https://github.com/GrayNerd/gotk3-samples/blob/master/simpletextview/simpletextview.go | Github Open Source | Open Source | MIT | 2,021 | gotk3-samples | GrayNerd | Go | Code | 238 | 971 | package main
import (
"log"
"github.com/gotk3/gotk3/pango"
"github.com/gotk3/gotk3/gtk"
)
func main() {
gtk.Init(nil)
win, err := gtk.WindowNew(gtk.WINDOW_TOPLEVEL)
if err != nil {
log.Fatal(err)
}
win.SetTitle("Text view")
win.SetPosition(gtk.WIN_POS_CENTER)
win.SetDefaultSize(300, 200)
vBox, err :... | 4,147 |
https://github.com/bylickilabs/opg-core-public-domain-model/blob/master/src/Opg/Core/Model/Entity/Document/AnnualReport.php | Github Open Source | Open Source | LicenseRef-scancode-public-domain | 2,015 | opg-core-public-domain-model | bylickilabs | PHP | Code | 390 | 1,577 | <?php
namespace Opg\Core\Model\Entity\Document;
use Doctrine\ORM\Mapping as ORM;
use Opg\Common\Filter\BaseInputFilter;
use Opg\Common\Model\Entity\EntityInterface;
use JMS\Serializer\Annotation\GenericAccessor;
use JMS\Serializer\Annotation\Type;
use JMS\Serializer\Annotation\Groups;
use JMS\Serializer\Annotation\Ac... | 25,736 |
https://github.com/nioinnovation/topic-grapher.js/blob/master/__test__/topic-graph-test.js | Github Open Source | Open Source | 0BSD | null | topic-grapher.js | nioinnovation | JavaScript | Code | 395 | 1,568 | import { expect } from 'chai';
import graph from '../src';
import { simple, circular, env, simpleLocal, id } from './fixtures.json'
describe('topic graph', () => {
describe('with a simple pub/sub', () => {
const result = graph(simple.services, simple.blocks);
it('should have two nodes', () => {
expec... | 33,748 |
https://github.com/AlfredoElizarraras/My-drinks/blob/master/app/helpers/devise_helper.rb | Github Open Source | Open Source | MIT | 2,020 | My-drinks | AlfredoElizarraras | Ruby | Code | 40 | 156 | # frozen_string_literal: true
module DeviseHelper
def minimum_password_length(form)
if @minimum_password_length
form.password_field(:password, autocomplete: 'new-password',
placeholder: "password #{@minimum_password_length} characters long at least")
else
form... | 44,097 |
https://github.com/Raul-Masnada/laravel-relations/blob/master/laravel-relations/resources/views/pages/home.blade.php | Github Open Source | Open Source | MIT | 2,021 | laravel-relations | Raul-Masnada | Blade | Code | 81 | 305 | @extends('layout.main-layout')
@section('content')
<main>
<ul>
@foreach ($cars as $car)
<li>
<h3>
Casa costruttrice:
</h3>
<h4>
{{$car -> brand -> name}},
<br>
... | 37,416 |
https://github.com/Vedant1202/picstir/blob/master/frontend/src/components/members-list/members-list.component.jsx | Github Open Source | Open Source | MIT | null | picstir | Vedant1202 | null | Spoken | 192 | 685 | /** @format */
import React from 'react';
import {
Button,
RadioButtonGroup,
Modal,
ModalOverlay,
ModalContent,
ModalHeader,
ModalFooter,
ModalBody,
ModalCloseButton,
} from '@chakra-ui/core';
import { createStructuredSelector } from 'reselect';
import { selectCurrentUser } from '.... | 29,520 |
https://github.com/fibdesign/blog/blob/master/src/Controllers/CategoryController.php | Github Open Source | Open Source | MIT | null | blog | fibdesign | PHP | Code | 62 | 185 | <?php
namespace Fibdesign\Blog\Controllers;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Fibdesign\Blog\Models\Category;
class CategoryController extends Controller
{
public function index() { return Category::all(); }
public function store(Request $request)
{
$data = $re... | 37,228 |
https://github.com/dearisma/Data-Penduduk/blob/master/application/views/kabupaten.php | Github Open Source | Open Source | MIT | null | Data-Penduduk | dearisma | PHP | Code | 240 | 1,065 |
<!-- End of Topbar -->
<!-- Begin Page Content -->
<div class="container-fluid">
<!-- DataTales Example -->
<div class="col-md">
<a href="<?= base_url('index.php/Kabupaten/tambah/') ?>" style="float: left;" class="btn b... | 54,375 |
https://github.com/ttalvitie/aoc2021/blob/master/Makefile | Github Open Source | Open Source | MIT | null | aoc2021 | ttalvitie | Makefile | Code | 112 | 526 | CXX ?= g++
CFLAGS_COMMON := -std=c++17 -Wall -Wextra -fno-exceptions
CFLAGS_debug := $(CFLAGS_COMMON) -g -O0 -DFRSTD_DEBUG
CFLAGS_release := $(CFLAGS_COMMON) -O3 -DNDEBUG
LDFLAGS_COMMON :=
LDFLAGS_debug := $(LDFLAGS_COMMON)
LDFLAGS_release := $(LDFLAGS_COMMON)
SRCS := $(shell find src -name "*.cpp")
.PHONY: debug rele... | 24,648 |
https://github.com/WS1009/WsRepository/blob/master/ui-library/src/main/java/com/ws/ui/icfont/IconFontTextView.kt | Github Open Source | Open Source | Apache-2.0 | null | WsRepository | WS1009 | Kotlin | Code | 42 | 181 | package com.ws.ui.icfont
import android.content.Context
import android.graphics.Typeface
import android.util.AttributeSet
import androidx.appcompat.widget.AppCompatTextView
/**
* 用以支持全局iconfont资源的引用,可以在布局中直接设置text
*/
class IconFontTextView
@JvmOverloads constructor(context: Context, attributeSet: AttributeSet?, defS... | 39,555 |
https://github.com/cfpb/porchlight/blob/master/src/static/js/modules/dashboard/controllers/dashboardHeaderController.js | Github Open Source | Open Source | CC0-1.0 | 2,015 | porchlight | cfpb | JavaScript | Code | 64 | 279 | (function() {
'use strict';
angular
.module('porchlight.dashboard')
.controller('dashboardHeaderController', dashboardHeaderController);
function dashboardHeaderController($scope, $http, RepoFactory){
var vm = this;
vm.selected = undefined;
vm.searchRepos = searchRepos;
vm.selectRepo = ... | 39,178 |
https://github.com/aditya-sengupta/tesscomp-prototyping/blob/master/photometry/photometry/AperturePhotometry/photometry.py | Github Open Source | Open Source | MIT | null | tesscomp-prototyping | aditya-sengupta | Python | Code | 940 | 3,447 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Simple Aperture Photometry using K2P2 to define masks.
.. codeauthor:: Rasmus Handberg <rasmush@phys.au.dk>
"""
import numpy as np
from bottleneck import allnan
import logging
from .. import BasePhotometry, STATUS
from ..utilities import mag2flux
from . import k2p2v2 ... | 55,278 |
https://github.com/PiTomar/hoodie-plugin-store-crypto/blob/master/tests/utils/browser-test.js | Github Open Source | Open Source | Apache-2.0 | 2,019 | hoodie-plugin-store-crypto | PiTomar | JavaScript | Code | 200 | 465 | 'use strict'
module.exports = browserTest
const browserify = require('browserify')
const puppeteer = require('puppeteer')
const puppeteerFirefox = require('puppeteer-firefox')
/**
* Run a test in a browser and returns the result of the test function.
* @param {'chrome'|'firefox'} browserName Name of the browser th... | 41,233 |
https://github.com/teamreportate/reportate-comunity/blob/master/source/back-office/back-office-ui/src/app/administration/enfermedades/modal-enfermedad/modal-enfermedad.component.ts | Github Open Source | Open Source | PostgreSQL | 2,020 | reportate-comunity | teamreportate | TypeScript | Code | 302 | 1,155 | import { Component, OnInit, ViewEncapsulation, Output, Inject, ChangeDetectorRef } from '@angular/core';
import { ClicComponent } from 'src/app/core/utils/clic-component';
import { BlockUI, NgBlockUI } from 'ng-block-ui';
import { FormGroup, FormBuilder, FormControl, Validators } from '@angular/forms';
import { Adminis... | 17,610 |
https://github.com/mziener/Leo-III/blob/master/contrib/unsolved_starexec | Github Open Source | Open Source | BSD-3-Clause, LicenseRef-scancode-unknown-license-reference | 2,019 | Leo-III | mziener | Python | Code | 246 | 748 | #!/usr/bin/env python
import argparse
import os
import subprocess
import tempfile
def is_valid_file(parser, arg):
if not os.path.isfile(arg):
parser.error("'%s' does not exist or is not a file." % arg)
else:
return os.path.abspath(arg)
parser = argparse.ArgumentParser(description='Print (num... | 11,605 |
https://github.com/FullmerJake/team-portfolio-generator/blob/master/__test__/Intern.test.js | Github Open Source | Open Source | MIT | 2,020 | team-portfolio-generator | FullmerJake | JavaScript | Code | 97 | 241 |
const { exportAllDeclaration } = require('@babel/types');
const Intern = require('../lib/Intern');
// All the tests ran to make sure Intern Class works. First parameter of test displays what each test does.
test('Can set school via constructor', () => {
const testSchool = 'UVU';
const employee = new Intern... | 38,092 |
https://github.com/markov00/elastic-charts/blob/master/packages/charts/src/common/geometry.ts | Github Open Source | Open Source | SSPL-1.0, Apache-2.0, LicenseRef-scancode-unknown-license-reference, Elastic-2.0, W3C-20150513, W3C, MIT, ISC | 2,022 | elastic-charts | markov00 | TypeScript | Code | 451 | 874 | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server... | 12,780 |
https://github.com/trantienhd97/trantien97-react-native-mentions-editor/blob/master/src/MentionListItem/index.js | Github Open Source | Open Source | MIT | 2,022 | trantien97-react-native-mentions-editor | trantienhd97 | JavaScript | Code | 101 | 402 | import React from "react";
import PropTypes from "prop-types";
import { Text, View, TouchableOpacity } from "react-native";
// Styles
import styles from "./MentionListItemStyles";
import Avatar from "../Avatar";
export class MentionListItem extends React.PureComponent {
static propTypes = {
item: PropTypes.obj... | 38,106 |
https://github.com/rendyfutsuy/rocketin_be/blob/master/Modules/Profile/Resources/lang/id/gender.php | Github Open Source | Open Source | MIT | 2,021 | rocketin_be | rendyfutsuy | PHP | Code | 10 | 33 | <?php
return [
'1' => 'Laki-laki',
'0' => 'Perempuan',
]; | 49,457 |
https://github.com/brunyuriy/quick-fix-scout/blob/master/QFSpeculationHack/src/edu/washington/cs/quickfix/speculation/hack/ICompletionProposalPopupSpeculationHack.java | Github Open Source | Open Source | MIT | 2,015 | quick-fix-scout | brunyuriy | Java | Code | 458 | 901 | package edu.washington.cs.quickfix.speculation.hack;
import edu.washington.cs.hack.IHack;
/**
* Extension point declaration for org.eclipse.jface.text.CompletionPropsoalPopup.
*
* @author Kivanc Muslu
*/
public interface ICompletionProposalPopupSpeculationHack extends IHack
{
/**
* This method is called... | 22,148 |
https://github.com/SeisSol/SeisSol/blob/master/src/ResultWriter/MiniSeisSolWriter.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,023 | SeisSol | SeisSol | C++ | Code | 112 | 475 | #include "MiniSeisSolWriter.h"
#include "Parallel/MPI.h"
#include "Common/filesystem.h"
#include <fstream>
#include <algorithm>
#include <unistd.h>
void seissol::writer::MiniSeisSolWriter::write(double elapsedTime, double weight) {
auto elapsedTimeVector = seissol::MPI::mpi.collect(elapsedTime);
auto weightVector ... | 48,589 |
https://github.com/sned65/sn-bridge-system/blob/master/src/main/scala/sne/bs/renderers/html/HtmlRenderer.scala | Github Open Source | Open Source | MIT | null | sn-bridge-system | sned65 | Scala | Code | 881 | 3,675 | package sne.bs.renderers.html
import os.{Path, SubPath}
import sne.bs.BsException
import sne.bs.parser._
import sne.bs.renderers.Renderer
import java.io.{ByteArrayOutputStream, OutputStream}
import java.nio.charset.StandardCharsets
class HtmlRenderer(title: String, subtitle: String, bsDoc: BsDoc) extends Renderer {
... | 25,451 |
https://github.com/Dethroner/practice-git/blob/master/vagrant/examples/6/files/ansible.sh | Github Open Source | Open Source | MIT | 2,021 | practice-git | Dethroner | Shell | Code | 58 | 182 | #!/usr/bin/env bash
# Install ansible
echo "[Info] Install ansible..."
apt-get -y install software-properties-common
apt-add-repository -y ppa:ansible/ansible
apt-get update
apt-get -y install ansible
# copy examples into /home/vagrant (from inside the master node)
cp -a /vagrant/files/ansible /home/appuser
chown -R ... | 4,481 |
https://github.com/ScalablyTyped/SlinkyTyped/blob/master/w/winrt/src/main/scala/typingsSlinky/winrt/Windows/Networking/Sockets/StreamWebSocketInformation.scala | Github Open Source | Open Source | MIT | 2,021 | SlinkyTyped | ScalablyTyped | Scala | Code | 50 | 224 | package typingsSlinky.winrt.Windows.Networking.Sockets
import typingsSlinky.winrt.Windows.Networking.HostName
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
@js.native
trait S... | 31,870 |
https://github.com/bolcom/google-cloud-java/blob/master/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressSettings.java | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,019 | google-cloud-java | bolcom | Java | Code | 839 | 2,321 | /*
* Copyright 2019 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 27,263 |
https://github.com/codefucker1111/DBH-Manage/blob/master/index.js | Github Open Source | Open Source | MIT | 2,021 | DBH-Manage | codefucker1111 | JavaScript | Code | 180 | 520 | /* ____ ____ __ __ __ __ _
/ __ \____ _____ / __ )____ / /_ / / / /___ _____/ /_(_)___ ____ _
/ / / / __ `/ __ \/ __ / __ \/ __/ / /_/ / __ \/ ___/ __/ / __ \/ __ `/
/ /_/ / /_/ / / / / /_/ / /_/ / /_ / __ / /_/ (__ ) /_/ / / / / /_/ /
/_____/\__,_/_/ ... | 31,794 |
https://github.com/FFFrankkkkk/news-sever/blob/master/WebRoot/index3.jsp | Github Open Source | Open Source | MIT | 2,019 | news-sever | FFFrankkkkk | null | Spoken | 186 | 1,471 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib uri="/myTagLib" prefix="myTag"%>
<!doc... | 40,957 |
https://github.com/aghasyedbilal/intellij-community/blob/master/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/ChangesTreeHandlers.kt | Github Open Source | Open Source | Apache-2.0 | 2,020 | intellij-community | aghasyedbilal | Kotlin | Code | 229 | 698 | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.vcs.changes.ui
import com.intellij.ui.DoubleClickListener
import com.intellij.util.Processor
import com.intellij.util.ui.tree.WideSelectionTreeUI.isW... | 37,119 |
https://github.com/kkwong02/Moodr/blob/master/Moodr/app/src/androidTest/java/com/cmput301w17t08/moodr/AddMoodTest.java | Github Open Source | Open Source | MIT | 2,017 | Moodr | kkwong02 | Java | Code | 214 | 876 | package com.cmput301w17t08.moodr;
/**
* Created by kskwong on 3/13/17.
*/
import android.app.Activity;
import android.test.ActivityInstrumentationTestCase2;
import android.util.Log;
import android.widget.Toolbar;
import com.robotium.solo.Solo;
import java.util.ArrayList;
import java.util.Collections;
import java.... | 13,627 |
https://github.com/danhaggard/react-scroll-collapse/blob/master/config/webpack.base.config.js | Github Open Source | Open Source | MIT | 2,021 | react-scroll-collapse | danhaggard | JavaScript | Code | 80 | 273 | const webpack = require('webpack');
module.exports = (opts) => {
const {
DEVELOPMENT, PRODUCTION, DIST_PATH
} = opts;
// const entry = [path.join(SRC_PATH, 'index.js')];
// environment vars - passed when running node e.g.
// NODE_ENV=development node dev-server.js
const define = new webpack.DefinePlug... | 10,880 |
https://github.com/nshen/loaders.gl/blob/master/modules/core/test/lib/register-loaders.spec.js | Github Open Source | Open Source | Apache-2.0 | null | loaders.gl | nshen | JavaScript | Code | 65 | 242 | import test from 'tape-promise/tape';
import {registerLoaders, getRegisteredLoaders} from '@loaders.gl/core/lib/register-loaders';
test('registerLoaders', t => {
const registeredLoadersCount = getRegisteredLoaders().length;
registerLoaders({
parseTextSync: d => d,
extensions: ['ext1']
});
t.is(getReg... | 14,554 |
https://github.com/marcoromagnolo/javaee-vs-spring-cloud/blob/master/wildfly/poker-game/poker-manager/src/main/java/jeevsspring/wildfly/poker/manager/api/json/hand/CheckIn.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | javaee-vs-spring-cloud | marcoromagnolo | Java | Code | 75 | 234 | package jeevsspring.wildfly.poker.manager.api.json.hand;
import jeevsspring.wildfly.poker.manager.api.json.player.PlayerSessionIn;
public class CheckIn extends PlayerSessionIn {
private String handId;
private String tableId;
public String getTableId() {
return tableId;
}
public void set... | 13,310 |
https://github.com/developerharo/CreandoApiConExpressyMongoDB-05-Express-parte1/blob/master/app.js | Github Open Source | Open Source | MIT | 2,021 | CreandoApiConExpressyMongoDB-05-Express-parte1 | developerharo | JavaScript | Code | 328 | 1,093 | const debug = require('debug')('app:inicio');
// const dbDebug = require('debug')('app:db');
const express = require('express');
const config = require('config');
// const logger = require('./logger');
const morgan = require('morgan');
const Joi = require('joi');
const app = express();
app.use(express.json()); //body
... | 40,584 |
https://github.com/AsahiOS/gate/blob/master/usr/src/common/ficl/extras.c | Github Open Source | Open Source | MIT | null | gate | AsahiOS | C | Code | 481 | 1,759 | #include "ficl.h"
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
/*
* Ficl interface to system (ANSI)
* Gets a newline (or NULL) delimited string from the input
* and feeds it to the ANSI system function...
* Example:
* system del *.*
* \ ouch!
*/
static void
ficlPrimitiveSystem(ficlVm *vm)
{
... | 25,834 |
https://github.com/nagilum/varcache/blob/master/index.js | Github Open Source | Open Source | MIT | 2,014 | varcache | nagilum | JavaScript | Code | 1,542 | 3,236 | /**
* @file
* varcache, a pure memory based cache for Javascript.
*
* @author
* Stian Hanger <pdnagilum@gmail.com>
*/
'use strict';
var cache = {},
debug = false,
hitCount = 0,
hitLog = {},
allKeys = {},
missCount = 0,
missLog = {},
recordHits =... | 20,542 |
https://github.com/lukeskinner/othub/blob/master/OTHub.Settings/BlockchainSettings.cs | Github Open Source | Open Source | MIT | 2,021 | othub | lukeskinner | C# | Code | 23 | 82 | using System;
namespace OTHub.Settings
{
public enum BlockchainNetwork
{
Mainnet,
Rinkeby,
Kovan
}
public enum BlockchainType
{
Ethereum,
Starfleet,
xDai,
Polygon
}
} | 39,357 |
https://github.com/manaty226/kong-go-plugin-keycloak-authz/blob/master/test/functionalTest/function_test.go | Github Open Source | Open Source | MIT | 2,021 | kong-go-plugin-keycloak-authz | manaty226 | Go | Code | 72 | 297 | package main
import (
"functionalTest/client"
"testing"
)
func TestMain(m *testing.M) {
m.Run()
}
func Test_Keycloak(t *testing.T) {
token := getUserToken()
res := client.Send(
"http://kong:8081",
"GET",
map[string]string{},
map[string]string{
"Authorization": "Bearer " + token,
},
)
if res.St... | 52,290 |
https://github.com/kompo/vue-kompo/blob/master/js/element/mixins/HasVueComponent.js | Github Open Source | Open Source | MIT | 2,021 | vue-kompo | kompo | JavaScript | Code | 29 | 103 | export default {
methods: {
$_vueComponent(element){
return element ? element.vueComponent : this.component.vueComponent
},
$_vueTag(element){
return 'Vl' + this.$_vueComponent(element)
},
$_komposerTag(komposer){
return komposer ? komposer... | 9,745 |
https://github.com/SilenWang/dgidb/blob/master/spec/lib/importers/importer_spec.rb | Github Open Source | Open Source | MIT | 2,022 | dgidb | SilenWang | Ruby | Code | 252 | 876 | require 'spec_helper'
describe Genome::Importers::Importer do
before :each do
@importer = Genome::Importers::Importer.new({source_db_name: 'test'})
end
it 'should respond to creation method calls for each entity name' do
@importer.send(:entity_names).each do |entity_name|
expect(@importer.send("c... | 34,149 |
https://github.com/Hellsinner/common-lang-in-go/blob/master/Int64Utils/constatnt.go | Github Open Source | Open Source | MIT | 2,020 | common-lang-in-go | Hellsinner | Go | Code | 13 | 36 | package Int64Utils
import "math"
const (
MAX = math.MaxInt64
MIN = math.MinInt64
)
| 14,086 |
https://github.com/jeffhandley/redux-playground/blob/master/src/pages/Container.jsx | Github Open Source | Open Source | Apache-2.0 | null | redux-playground | jeffhandley | null | Spoken | 21 | 61 | import React from 'react';
export default (props) => (
<div id='page-content'>
{ props.children }
<script dangerouslySetInnerHTML={{__html: props.pageState }} />
</div>
);
| 50,318 |
https://github.com/HTMLProgrammer2001/diploma-back/blob/master/src/features/import/services/import.service.ts | Github Open Source | Open Source | MIT | null | diploma-back | HTMLProgrammer2001 | TypeScript | Code | 3,521 | 14,741 | import {Injectable, Logger} from '@nestjs/common';
import {Workbook} from 'exceljs';
import {validate} from 'class-validator';
import {isNil, uniq} from 'lodash';
import * as bcrypt from 'bcrypt';
import {ConfigService} from '@nestjs/config';
import {ImportRequest} from '../types/request/import.request';
import {Import... | 20,763 |
https://github.com/mookie1097/NausicaaMod/blob/master/src/main/java/mooklabs/nausicaamod/keysticksetc/MooklabTickHandler.java | Github Open Source | Open Source | MIT | 2,015 | NausicaaMod | mookie1097 | Java | Code | 96 | 364 | package mooklabs.nausicaamod.keysticksetc;
import net.minecraft.client.Minecraft;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.gameevent.TickEvent.ClientTickEvent;
import cpw.mods.fml.common.gameevent.TickEvent.Phase;
import cpw.mods.fml.common.gameevent.TickEvent.ServerTickEvent;... | 46,409 |
https://github.com/yannissgarra/security-bundle/blob/master/tests/Token/Extractor/CookieTokenExtractorTest.php | Github Open Source | Open Source | MIT | null | security-bundle | yannissgarra | PHP | Code | 116 | 515 | <?php
/*
* (c) Yannis Sgarra <hello@yannissgarra.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Webmunkeez\SecurityBundle\Test\Token\Extractor;
use Symfony\Bundle\FrameworkBundle\Test\Kern... | 9,516 |
https://github.com/RomanErli/MaTILda/blob/master/src/routes/index.js | Github Open Source | Open Source | MIT | null | MaTILda | RomanErli | JavaScript | Code | 121 | 365 | var express = require('express');
var router = express.Router();
var output = (express);
const http = require('http')
module.exports = router;
function setResHtml(cb) {};
//var reo ='<html><head><title>Node.js MySQL Select</title></head><body><h1>Node.js MySQL Select</h1>{${table}}</body></html>';
/*
der Teil mach... | 29,615 |
https://github.com/RedWagon/cad/blob/master/camera_base.scad | Github Open Source | Open Source | Unlicense | null | cad | RedWagon | null | Spoken | 65 | 522 | include<threads.scad>;
height=50;
base=150;
top=25;
stopper=20;
stopper_h=10;
stopper_pitch=2.5;
$fn=200;
cut=base*0.8;
cut_d=base/3-5;
cuts=3;
pad=0.1;
base_angle=atan(height/(base/2-top/2));
top_angle=90-base_angle;
function inset(wall) = wall/sin(base_angle)+wall/tan(base_angle);
module trim_top(h) {
transl... | 33,890 |
https://github.com/jluncc/code-generator/blob/master/src/main/java/cjl/util/FileUtil.java | Github Open Source | Open Source | MIT | 2,022 | code-generator | jluncc | Java | Code | 42 | 152 | package cjl.util;
import java.io.File;
/**
* 文件工具类
* <p>
* Created by jinglun on 2021-02-08
*/
public class FileUtil {
public static boolean mkdirs(File file) {
if (!file.exists()) {
if (!file.mkdirs()) {
LogUtil.ERR.error("尝试创建文件夹失败,直接返回!文件夹路径:{}", file);
... | 3,377 |
https://github.com/tomsnail/snail-nlua/blob/master/src/npc_service.lua | Github Open Source | Open Source | Apache-2.0 | null | snail-nlua | tomsnail | Lua | Code | 324 | 1,349 | local _M = {}
local loadbalance = require("load_balance")
function _M.filter(args)
local cjson = require "cjson"
local util = require("util")
local RedisManager = require("RedisManager")
local rurl = ngx.var.url
local _url = args.url
local _args = args.args
local urlStr = args.urlMapStr
if urlStr =... | 8,953 |
https://github.com/cfeclipse/cfeclipse/blob/master/org.cfeclipse.cfml/src/org/cfeclipse/cfml/editors/contentassist/AssistContributor.java | Github Open Source | Open Source | MIT | 2,022 | cfeclipse | cfeclipse | Java | Code | 301 | 770 | package org.cfeclipse.cfml.editors.contentassist;
import org.cfeclipse.cfml.preferences.CFMLPreferenceManager;
import org.eclipse.jface.resource.ImageDescriptor;
public class AssistContributor {
/** The image descriptor for this category, or <code>null</code> if none specified. */
private final ImageDescriptor fIm... | 56,023 |
https://github.com/tedeh/jayson/blob/master/test/tcp.client-server.test.js | Github Open Source | Open Source | MIT | 2,023 | jayson | tedeh | JavaScript | Code | 354 | 1,218 | 'use strict';
const should = require('should');
const jayson = require('./../');
const support = require('./support');
const suites = require('./support/suites');
const net = require('net');
const url = require('url');
const JSONStream = require('JSONStream');
describe('jayson.tcp', function() {
describe('server',... | 9,063 |
https://github.com/DZGoldman/vector-modal/blob/master/src/constants/index.ts | Github Open Source | Open Source | MIT | null | vector-modal | DZGoldman | TypeScript | Code | 253 | 1,093 | import { theme, useStyles } from './style';
export const CHAIN_INFO_URL = 'https://chainid.network/chains.json';
const PROD_IFRAME_WALLET = 'https://wallet.connext.network';
export const iframeSrc = PROD_IFRAME_WALLET;
export const ethProvidersOverrides = JSON.parse(
process.env.REACT_APP_ETH_PROVIDERS || '{}'
);... | 51,115 |
https://github.com/minyez/cpp-primer-plus-6th/blob/master/ch12/stack.cpp | Github Open Source | Open Source | MIT | 2,022 | cpp-primer-plus-6th | minyez | C++ | Code | 238 | 581 | /*
* Date : 2022-03-21 14:50:18
* Author: Min-Ye Zhang
* Usage :
* TODO :
*/
#include<iostream>
#include "stack.h"
using std::cout;
using std::ostream;
using std::endl;
Stack::Stack(int n)
{
if(n > MAX)
{
cout << "Request stack over maximal size, reset to MAX = " << MAX << endl;
n = MA... | 7,891 |
https://github.com/EVATool/evatool-backend/blob/master/src/main/java/com/evatool/application/controller/impl/ValueTypeControllerImpl.java | Github Open Source | Open Source | MIT | null | evatool-backend | EVATool | Java | Code | 123 | 672 | package com.evatool.application.controller.impl;
import com.evatool.application.controller.api.ValueTypeController;
import com.evatool.application.dto.ValueTypeDto;
import com.evatool.application.service.impl.ValueTypeServiceImpl;
import com.evatool.common.util.AuthUtil;
import com.evatool.common.util.UriUtil;
import ... | 16,923 |
https://github.com/tlzAny/infoblox-java/blob/master/src/main/java/com/oneops/infoblox/model/zone/ZoneDelegate.java | Github Open Source | Open Source | Apache-2.0 | null | infoblox-java | tlzAny | Java | Code | 115 | 366 | package com.oneops.infoblox.model.zone;
import com.google.auto.value.AutoValue;
import com.oneops.infoblox.model.Record;
import com.squareup.moshi.Json;
import com.squareup.moshi.JsonAdapter;
import com.squareup.moshi.Moshi;
import java.util.List;
/**
* DNS Authoritative Zone.
*
* <p>Note: TTL field for this recor... | 7,550 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.