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/bitjjj/HFTracker/blob/master/HFTrackerAndroid/src/com/oppsis/app/hftracker/ui/PortValueChartActivity.java | Github Open Source | Open Source | Apache-2.0 | null | HFTracker | bitjjj | Java | Code | 68 | 526 | package com.oppsis.app.hftracker.ui;
import org.androidannotations.annotations.AfterViews;
import org.androidannotations.annotations.EActivity;
import org.androidannotations.annotations.Extra;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import com.oppsis.app.hftr... | 12,787 |
https://github.com/TecKnow/learning/blob/master/rosalind/rear/rearPath.py | Github Open Source | Open Source | BSD-3-Clause | null | learning | TecKnow | Python | Code | 606 | 1,789 | import itertools
import sys
def inverse(permutation):
x, y = zip(*sorted((tuple(reversed(x)) for x in enumerate(permutation))))
adjustment = min(permutation)
y = [i + adjustment for i in y]
return tuple(y)
def composition(theta, ro):
pi_list = list([0]*len(ro))
for x in range(len(pi_list)):
... | 24,798 |
https://github.com/freebsd/freebsd-ports/blob/master/www/p5-CGI-Application-Plugin-Authentication/Makefile | Github Open Source | Open Source | BSD-2-Clause | 2,023 | freebsd-ports | freebsd | Makefile | Code | 51 | 375 | PORTNAME= CGI-Application-Plugin-Authentication
PORTVERSION= 0.23
CATEGORIES= www perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= bofh@FreeBSD.org
COMMENT= Support for authenticating requests in CGI::Application
WWW= https://metacpan.org/release/CGI-Application-Plugin-Authentication
LICENSE= ART10 GPLv1+
LIC... | 954 |
https://github.com/liufangqi/hudi/blob/master/hudi-utilities/src/test/java/org/apache/hudi/utilities/sources/helpers/TestS3EventsMetaSelector.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | hudi | liufangqi | Java | Code | 296 | 1,106 | /*
* 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 ... | 38,464 |
https://github.com/brookyu/vue-playground/blob/master/src-javascript/components/Coupon.vue | Github Open Source | Open Source | MIT | 2,020 | vue-playground | brookyu | Vue | Code | 63 | 212 | <script>
import { ref } from 'vue';
export default {
name: 'Coupon',
props: ['percent'],
emits: ['redeem'],
setup(props, { emit }) {
const percent = ref(props.percent);
const useCoupon = () => emit('redeem', percent.value);
return { percent, useCoupon };
}
}
</script>
<template>
<form class="c... | 42,524 |
https://github.com/xxlv/Test/blob/master/JS/game/js/game.js | Github Open Source | Open Source | MIT | 2,017 | Test | xxlv | JavaScript | Code | 20 | 131 | var mycanvas = document.getElementById("myCanvasTag")
var ctx = mycanvas.getContext('2d');
function drawTank(ctx){
ctx.strokeStyle="#FF0000";
ctx.beginPath();
ctx.moveTo(10,10);
ctx.lineTo(150,10);
ctx.moveTo(10,10);
ctx.lineTo(10,150);
ctx.closePath();
ctx.stroke();
}
drawTank(ctx);
| 5,058 |
https://github.com/devhani/fulcrum_ui/blob/master/packages/bzx-common/src/contracts/artifacts/kovan/iTokenList.js | Github Open Source | Open Source | Apache-2.0 | null | fulcrum_ui | devhani | JavaScript | Code | 30 | 290 | export const iTokenList = [
[
'1',
'0xe3d99c2152Fc8eA5F87B733706FAA241C37592f1',
'0xfBE16bA4e8029B759D3c5ef8844124893f3ae470',
'ifWETH',
'ifWETH',
'1'
],
[
'1',
'0xF6a0690f22da5464924A28a8198E8ecA69ffc47e',
'0x5aE55494Ccda82f1F7c653BC2b6EbB4aD3C77Dac',
... | 29,729 |
https://github.com/Mrizwanshaik/bosh-ext-cli/blob/master/src/github.com/bosh-tools/bosh-ext-cli/web/deployments_table.go | Github Open Source | Open Source | Apache-2.0 | 2,018 | bosh-ext-cli | Mrizwanshaik | Go | Code | 86 | 326 | package web
const deploymentsTable string = `
<table id="deployment-tmpl" class="tmpl">
<tr>
<td class="deployment">
<a href="#" data-query="deployment" data-value="{name}">{name}</a>
<a href="#" data-query="instances-canvas" data-value="{name}">...</a>
</td>
</tr>
</table>
<script type="text/... | 15,475 |
https://github.com/akemimadoka/WinCustomDesktop/blob/master/CustomDesktop/CheckCovered.h | Github Open Source | Open Source | MIT | 2,017 | WinCustomDesktop | akemimadoka | C++ | Code | 55 | 226 | #pragma once
#include "Singleton.h"
#include <thread>
#include <memory>
namespace cd
{
// 检测桌面是否被遮挡了
class CheckCovered final : public Singleton<CheckCovered>
{
DECL_SINGLETON(CheckCovered);
public:
bool IsReady() { return m_runThreadFlag; }
bool Init();
bool Uninit();
private:
CheckCovered();
~Ch... | 49,288 |
https://github.com/gnumarcelo/DayRunning/blob/master/build/iphone/build/DayRunning.build/Debug-iphonesimulator/DayRunning.build/Objects-normal/i386/TiMapRouteAnnotationView.d | Github Open Source | Open Source | Apache-2.0 | 2,012 | DayRunning | gnumarcelo | Makefile | Code | 25 | 236 | dependencies: \
/Users/marcelomenezes/Documents/Titanium\ Studio\ Workspace/DayRunning/build/iphone/Classes/TiMapRouteAnnotationView.m \
/Users/marcelomenezes/Documents/Titanium\ Studio\ Workspace/DayRunning/build/iphone/Classes/TiBase.h \
/Users/marcelomenezes/Documents/Titanium\ Studio\ Workspace/DayRunning/bui... | 48,328 |
https://github.com/domien96/SolvasFleet/blob/master/backend/src/main/resources/db/migration/V3_7__unique_plate_vin.sql | Github Open Source | Open Source | MIT | null | SolvasFleet | domien96 | SQL | Code | 11 | 25 |
-- Drop the unique constraint
ALTER TABLE vehicles DROP CONSTRAINT vehicles_license_plate_key; | 2,172 |
https://github.com/tomhaigh/aws-sdk-net/blob/master/sdk/src/Services/Lightsail/Generated/Model/Region.cs | Github Open Source | Open Source | Apache-2.0 | 2,019 | aws-sdk-net | tomhaigh | C# | Code | 467 | 1,030 | /*
* Copyright 2010-2014 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "l... | 36,814 |
https://github.com/YunLemon/highj/blob/master/src/main/java/org/highj/data/transformer/StreamArrow.java | Github Open Source | Open Source | MIT | 2,022 | highj | YunLemon | Java | Code | 162 | 806 | package org.highj.data.transformer;
import org.derive4j.hkt.__2;
import org.derive4j.hkt.__3;
import org.highj.data.Stream;
import org.highj.data.transformer.stream_arrow.StreamArrowArrow;
import org.highj.data.transformer.stream_arrow.StreamArrowArrowCircuit;
import org.highj.data.transformer.stream_arrow.StreamArrow... | 1,846 |
https://github.com/natduca/ndbg/blob/master/tests/progdb/test_database.py | Github Open Source | Open Source | Apache-2.0 | 2,018 | ndbg | natduca | Python | Code | 235 | 728 | # Copyright 2011 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | 16,692 |
https://github.com/yola/ultradns/blob/master/tests/client_tests.py | Github Open Source | Open Source | MIT | 2,015 | ultradns | yola | Python | Code | 80 | 345 | from mock import Mock, patch
from unittest2 import TestCase
import ultradns
from ultradns.client import UltraDNSClient
from ultradns.exceptions import HTTPError
class ClientTestCase(TestCase):
def _mock_response(self, requests_mock, json_result, status_code=200,
content=None):
resp... | 45,972 |
https://github.com/v-yves-es/jdpe2/blob/master/src/main/java/chapter18/Gearbox.java | Github Open Source | Open Source | ADSL | 2,022 | jdpe2 | v-yves-es | Java | Code | 173 | 427 | /*
* Java Design Pattern Essentials - Second Edition, by Tony Bevis
* Copyright 2012, Ability First Limited
*
* This source code is provided to accompany the book and is provided AS-IS without warranty of any kind.
* It is intended for educational and illustrative purposes only, and may not be re-published
* ... | 33,781 |
https://github.com/mfkiwl/GNSS-Tools-Public-PPP-INS/blob/master/Utility Functions/Geo functions/antennaOffsetGPS.m | Github Open Source | Open Source | MIT | 2,020 | GNSS-Tools-Public-PPP-INS | mfkiwl | MATLAB | Code | 796 | 2,709 | function offset = antennaOffsetGPS(block)
% Input- GPS SV block (IIA/IIR/IIR-M/IIF)
% Output- antenna phase center offset from SV CM in body fixed coordinates
% using IGS convention [km]
switch block{1}
case 'IIF'
offset = [0.394 0 1.093]';%/1000; % IIF
offset = [0.394 0 1.6]';%/1000; % IIF
... | 36,360 |
https://github.com/ry/tokio/blob/master/tokio-udp/tests/udp.rs | Github Open Source | Open Source | MIT | 2,018 | tokio | ry | Rust | Code | 709 | 2,579 | extern crate futures;
extern crate tokio_udp;
extern crate tokio_codec;
#[macro_use]
extern crate tokio_io;
extern crate bytes;
extern crate env_logger;
use std::io;
use std::net::SocketAddr;
use futures::{Future, Poll, Stream, Sink};
use tokio_udp::{UdpSocket, UdpFramed};
use tokio_codec::{Encoder, Decoder};
use by... | 22,839 |
https://github.com/MSmedal/globalpayments-woocommerce/blob/master/vendor/globalpayments/php-sdk/src/Utils/CardUtils.php | Github Open Source | Open Source | MIT | null | globalpayments-woocommerce | MSmedal | PHP | Code | 595 | 2,432 | <?php
namespace GlobalPayments\Api\Utils;
use GlobalPayments\Api\Builders\AuthorizationBuilder;
use GlobalPayments\Api\Builders\ManagementBuilder;
use GlobalPayments\Api\Entities\Enums\CvnPresenceIndicator;
use GlobalPayments\Api\Entities\Enums\EmvLastChipRead;
use GlobalPayments\Api\Entities\Enums\PaymentMethodType;... | 38,212 |
https://github.com/c0nr3f/ocpp/blob/master/ocpp/v16/datatypes.py | Github Open Source | Open Source | MIT | 2,021 | ocpp | c0nr3f | Python | Code | 338 | 940 | from dataclasses import dataclass
from typing import List, Optional
from ocpp.v16.enums import (
AuthorizationStatus,
CiStringType,
ChargingRateUnitType,
ChargingProfilePurposeType,
ChargingProfileKindType,
Location,
RecurrencyKind,
ReadingContext,
UnitOfMeasure,
ValueFormat,
... | 41,399 |
https://github.com/Cleitoon1/Engenharia-de-Software-3/blob/master/src/model/Subject.java | Github Open Source | Open Source | MIT | null | Engenharia-de-Software-3 | Cleitoon1 | Java | Code | 31 | 102 | package model;
import java.util.List;
import org.json.JSONException;
import com.db4o.ObjectSet;
public interface Subject {
public ObjectSet<EducacaoMOD> getData(String link) throws JSONException;
public List<EducacaoMOD> exibirDados(String link, Boolean organizar, String campo, String ordem) throws JSONException;... | 8,206 |
https://github.com/maicong/OpenAPI/blob/master/MetInfo5.2/admin/admin/editor_pass.php | Github Open Source | Open Source | MIT | 2,019 | OpenAPI | maicong | PHP | Code | 36 | 218 | <?php
# MetInfo Enterprise Content Management System
# Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved.
require_once '../login/login_check.php';
$id=$admin_list[id];
$sexx[$admin_list[admin_sex]]="checked='checked'";
$css_url="../templates/".$met_skin."/css";
$img_url="../templates/".$met_sk... | 25,291 |
https://github.com/RobertWeaver10/CS361-Movie-Analyzer/blob/master/Graph.java | Github Open Source | Open Source | BSD-4-Clause-UC | null | CS361-Movie-Analyzer | RobertWeaver10 | Java | Code | 741 | 1,680 | package graph;
import java.util.*;
/**
* this class is an implementation of the GraphIfc interface. It uses
* a HashMap of vertex keys and list of vertex values.
* @authors Robert Weaver, Kyler Greenway
* This implementation assumes a directed graph
* @version 10/6/2021
*/
public class Graph<V> implements GraphI... | 11,846 |
https://github.com/vatsalkul/Rocket.Chat.iOS/blob/master/Rocket.Chat/Views/Chat/ChatAnnouncementView.swift | Github Open Source | Open Source | MIT | 2,020 | Rocket.Chat.iOS | vatsalkul | Swift | Code | 143 | 473 | //
// ChatAnnouncementView.swift
// Rocket.Chat
//
// Created by Bryan Lew on 24/1/19.
// Copyright © 2019 Rocket.Chat. All rights reserved.
//
import UIKit
final class ChatAnnouncementView: UIView {
override init(frame: CGRect) {
super.init(frame: frame)
setupUI()
}
required init?(c... | 45,435 |
https://github.com/emmersion/Emmersion.EventLogWalker/blob/master/Emmersion.EventLogWalker.UnitTests/EventLogWalkerStatusTests.cs | Github Open Source | Open Source | MIT | null | Emmersion.EventLogWalker | emmersion | C# | Code | 390 | 1,532 | using System;
using System.Collections.Generic;
using Emmersion.Testing;
using NUnit.Framework;
namespace Emmersion.EventLogWalker.UnitTests
{
internal class EventLogWalkerStatusTests : With_an_automocked<EventLogWalkerStatus>
{
[Test]
public void When_getting_current_event_index()
{
... | 6,419 |
https://github.com/xuqinghan/chatroom_flask/blob/master/app/static/js/userlist.js | Github Open Source | Open Source | MIT | 2,016 | chatroom_flask | xuqinghan | JavaScript | Code | 34 | 128 | (function () {
w = window,
w.user_list = {
clicked: function(item){
var temp = item.innerHTML;
var name = item.name;
var cNode = d.getElementById("user_list").getElementsByTagName('li');
for( var i=0; i<cNode.length; i++){
alert(cNode[i].innerHTML);
... | 2,908 |
https://github.com/Shi-Lin-Wang/gateway/blob/master/app/Http/Controllers/signupController.php | Github Open Source | Open Source | MIT | 2,020 | gateway | Shi-Lin-Wang | PHP | Code | 70 | 258 | <?php
namespace App\Http\Controllers;
use App\sign_up;
use App\Traits\ApiResponser;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use App\Services\registerService;
class signupController extends Controller
{
use ApiResponser;
public $registerService;
/**
* Create a new controller instance.... | 6,474 |
https://github.com/Zingsla/franz-instagram/blob/master/franz-instagram/View Controllers/ProfileViewController.m | Github Open Source | Open Source | Apache-2.0 | 2,020 | franz-instagram | Zingsla | Objective-C | Code | 441 | 1,752 | //
// ProfileViewController.m
// franz-instagram
//
// Created by Jacob Franz on 7/9/20.
// Copyright © 2020 Jacob Franz. All rights reserved.
//
#import "ProfileViewController.h"
#import "DetailsViewController.h"
#import "LoginViewController.h"
#import "Post.h"
#import "PostCell.h"
#import "SceneDelegate.h"
#impo... | 28,616 |
https://github.com/anastasiard/riiablo/blob/master/core/src/main/java/com/riiablo/table/schema/Missiles.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | riiablo | anastasiard | Java | Code | 440 | 1,230 | package com.riiablo.table.schema;
import com.riiablo.table.annotation.Format;
import com.riiablo.table.annotation.PrimaryKey;
import com.riiablo.table.annotation.Schema;
@Schema
@SuppressWarnings("unused")
public class Missiles {
@Override
public String toString() {
return Missile;
}
@PrimaryKey
public... | 33,650 |
https://github.com/wahibium/KFF/blob/master/logga/dataarray.h | Github Open Source | Open Source | MIT | 2,022 | KFF | wahibium | C | Code | 34 | 91 | #ifndef _DATAARRAY_H_
#define _DATAARRAY_H_
#define ArrayIDoffset 1000
struct DataArray
{
/* data */
int arrayID; // Array IDs range from 1001~2000
char * arrayName;
int dimension;
int xsize;
int ysize;
int zsize;
};
#endif | 9,457 |
https://github.com/alexluscombe/sajari-sdk-react/blob/master/src/components/Tabs/Tab/Tab.tsx | Github Open Source | Open Source | MIT | null | sajari-sdk-react | alexluscombe | TypeScript | Code | 158 | 429 | /** @jsx jsx */ jsx;
import { jsx } from "@emotion/core";
import classnames from "classnames";
import * as React from "react";
import { FilterConsumer } from "../../context/filter";
import { CSSObject } from "@emotion/css";
import { Container } from "./styled";
const ReturnKeyCode = 13;
const SpaceKeyCode = 32;
expo... | 12,386 |
https://github.com/atimhome/Wexflow/blob/master/tests/Wexflow.Tests/TextsDecryptor.cs | Github Open Source | Open Source | MIT, LicenseRef-scancode-free-unknown | 2,019 | Wexflow | atimhome | C# | Code | 79 | 402 | using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.IO;
namespace Wexflow.Tests
{
[TestClass]
public class TextsDecryptor
{
private static readonly string TextsDecryptorSrcFolder = @"C:\WexflowTesting\TextsDecryptor_src\";
private static readonly string TextsDecryptorDestFolde... | 27,174 |
https://github.com/andy-hanson/mason-compile/blob/master/lib/private/ast/With.d.ts | Github Open Source | Open Source | Unlicense | null | mason-compile | andy-hanson | TypeScript | Code | 43 | 100 | import Loc from 'esast/lib/Loc';
import Block from './Block';
import { Val, ValOrDo } from './LineContent';
import { LocalDeclare } from './locals';
export default class With extends ValOrDo {
declare: LocalDeclare;
value: Val;
block: Block;
constructor(loc: Loc, declare: LocalDeclare, value: Val, block... | 33,208 |
https://github.com/findnr/vue-element-puls-temp/blob/master/src/components/auth/CymLogin.vue | Github Open Source | Open Source | MIT | null | vue-element-puls-temp | findnr | Vue | Code | 409 | 1,859 | <!--
* @Author: 程英明
* @Date: 2022-01-18 14:03:01
* @LastEditTime: 2022-05-05 14:43:21
* @LastEditors: 程英明
* @Description:
* @FilePath: \vue-element-plus-temp\src\components\auth\CymLogin.vue
* QQ:504875043@qq.com
-->
<template>
<div class="index bg-gradient-to-t from-blue-500 to-blue-300 h-screen grid justi... | 7,438 |
https://github.com/cvbn127/captal-engine/blob/master/captal/src/captal/data/default.vert | Github Open Source | Open Source | MIT | 2,022 | captal-engine | cvbn127 | GLSL | Code | 82 | 206 | #version 450
layout(row_major, set = 0, binding = 0) uniform view_uniform
{
mat4 view;
mat4 proj;
} view;
layout(row_major, set = 1, binding = 0) uniform model_uniform
{
mat4 model;
} model;
layout(location = 0) in vec3 position;
layout(location = 1) in vec4 color;
layout(location = 2) in vec2 texture_co... | 14,460 |
https://github.com/CMGS/core/blob/master/engine/docker/docker.go | Github Open Source | Open Source | MIT | 2,022 | core | CMGS | Go | Code | 311 | 976 | package docker
import (
"context"
"fmt"
"io/ioutil"
"net/http"
"os"
"github.com/projecteru2/core/engine"
enginetypes "github.com/projecteru2/core/engine/types"
"github.com/projecteru2/core/log"
coretypes "github.com/projecteru2/core/types"
dockerapi "github.com/docker/docker/client"
"github.com/docker/go-... | 45,916 |
https://github.com/Core-Team-META/Strike-Team-Sector-9/blob/master/NewSniperAlley/Data/Scenes/Main/AudioFolderEnter_1/Tree.pbt | Github Open Source | Open Source | Apache-2.0 | 2,021 | Strike-Team-Sector-9 | Core-Team-META | Protocol Buffer Text Format | Code | 79 | 294 | Name: "AudioFolderEnter_1"
RootId: 9839474685740850460
Objects {
Id: 14692678752658692276
Name: "Wire Chain Link Fence Gate Hit Impact Heavy 01 SFX"
Transform {
Location {
Z: 59.6877518
}
Rotation {
Roll: 4.02874366e-06
}
Scale {
X: 1
Y: 1
Z: 1
}
}
ParentI... | 23,798 |
https://github.com/rtoy/cmucl/blob/master/src/code/sysmacs.lisp | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-public-domain | 2,023 | cmucl | rtoy | Common Lisp | Code | 959 | 3,365 | ;;; -*- Mode: Lisp; Package: Lisp; Log: code.log -*-
;;;
;;; **********************************************************************
;;; This code was written as part of the CMU Common Lisp project at
;;; Carnegie Mellon University, and has been placed in the public domain.
;;;
(ext:file-comment
"$Header: src/code/sys... | 3,002 |
https://github.com/elsayed85/medical_iot/blob/master/resources/views/layouts/user.blade.php | Github Open Source | Open Source | MIT | null | medical_iot | elsayed85 | PHP | Code | 1,031 | 4,172 | <!DOCTYPE html>
<html dir="ltr" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Tell the browser to be responsive to screen width -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<me... | 553 |
https://github.com/leeonky/DAL-java/blob/master/src/test/java/com/github/leeonky/dal/format/ComparatorTest.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | DAL-java | leeonky | Java | Code | 54 | 449 | package com.github.leeonky.dal.format;
import org.junit.jupiter.api.Test;
import static com.github.leeonky.util.function.Comparator.*;
import static org.assertj.core.api.Assertions.assertThat;
class ComparatorTest {
@Test
void less_than() {
assertThat(lessThan(1).compareTo(0)).isTrue();
asse... | 9,840 |
https://github.com/adam-bates/wikisearch/blob/master/src/main/java/com/adambates/wikisearch/search/factories/DirectoryFactory.java | Github Open Source | Open Source | MIT | null | wikisearch | adam-bates | Java | Code | 41 | 203 | package com.adambates.wikisearch.search.factories;
import lombok.SneakyThrows;
import org.apache.lucene.store.FSDirectory;
import org.apache.lucene.store.MMapDirectory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import java.nio.file.Paths;
@Component
p... | 30,410 |
https://github.com/ZhuoZhuoCrayon/bk-sops/blob/master/gcloud/tests/taskflow3/test_api.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | bk-sops | ZhuoZhuoCrayon | Python | Code | 483 | 2,098 | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community
Edition) available.
Copyright (C) 2017-2020 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in co... | 7,515 |
https://github.com/bernhard-buss/payload-plugin-cloud-storage/blob/master/src/collection/readHook.ts | Github Open Source | Open Source | MIT | 2,022 | payload-plugin-cloud-storage | bernhard-buss | TypeScript | Code | 82 | 230 | import { CollectionAfterReadHook } from 'payload/types'
import type { AdapterInterface } from '../adapter.d'
const readHook = (adapter: AdapterInterface<unknown, unknown>, propertyName: string) => {
const afterReadHook: CollectionAfterReadHook = async ({ doc }) => {
if (typeof doc.filename === 'string') {
... | 11,153 |
https://github.com/NeuroRoboticTech/AnimatLabPublicSource/blob/master/Libraries/AnimatGUI/DataObjects/ExternalStimuli/PropertyControlStimulus.vb | Github Open Source | Open Source | BSD-3-Clause | 2,021 | AnimatLabPublicSource | NeuroRoboticTech | Visual Basic | Code | 1,420 | 5,138 | Imports System
Imports System.Drawing
Imports System.Collections
Imports System.ComponentModel
Imports System.Windows.Forms
Imports System.Diagnostics
Imports System.IO
Imports System.Xml
Imports AnimatGuiCtrls.Controls
Imports AnimatGUI.Framework
Namespace DataObjects.ExternalStimuli
Public Class PropertyControl... | 37,391 |
https://github.com/rachitmishra/define/blob/master/app/src/main/java/in/ceeq/define/data/source/DefinitionDataSource.kt | Github Open Source | Open Source | MIT | 2,020 | define | rachitmishra | Kotlin | Code | 12 | 50 | package `in`.ceeq.define.data.source
import `in`.ceeq.define.data.entity.Definition
interface DefinitionDataSource {
fun getDefinition(phrase: String): Definition
}
| 11,489 |
https://github.com/midopple/infidel-sensor/blob/master/electrical/smt/gerber/filaSens.GTS | Github Open Source | Open Source | CC0-1.0 | 2,021 | infidel-sensor | midopple | Gerber Image | Code | 102 | 1,011 | G04 EAGLE Gerber RS-274X export*
G75*
%MOMM*%
%FSLAX34Y34*%
%LPD*%
%INSoldermask Top*%
%IPPOS*%
%AMOC8*
5,1,8,0,0,1.08239X$1,22.5*%
G01*
%ADD10C,1.311200*%
%ADD11C,1.727200*%
%ADD12C,6.045200*%
%ADD13C,1.727200*%
%ADD14P,1.869504X8X292.500000*%
%ADD15R,0.703200X2.403200*%
%ADD16R,0.903200X0.803200*%
%ADD17R,1.103200X0.... | 17,163 |
https://github.com/marcelloti/bootcamp-rocketseat-DESAFIO-FINAL/blob/master/mobile/src/pages/HelpOrders/SendHelpOrder/index.js | Github Open Source | Open Source | MIT | null | bootcamp-rocketseat-DESAFIO-FINAL | marcelloti | JavaScript | Code | 151 | 514 | import React, { useState } from 'react';
import { useSelector, useDispatch } from 'react-redux';
import { withNavigationFocus } from 'react-navigation';
import { Alert } from 'react-native';
import PropTypes from 'prop-types';
import Background from '~/components/Background';
import api from '~/services/api';
import {... | 37,496 |
https://github.com/DreamJieEn/jie-mall/blob/master/src/App.vue | Github Open Source | Open Source | MIT | null | jie-mall | DreamJieEn | Vue | Code | 80 | 481 | <template>
<div id="app">
<mt-header fixed title="可爱的鱼"></mt-header>
<router-view/>
<nav class="mui-bar mui-bar-tab">
<a class="mui-tab-item mui-active" href="#tabbar">
<span class="mui-icon mui-icon-home"></span>
<span class="mui-tab-label">首页</span>
</a>
<a class="mui-t... | 32,889 |
https://github.com/mecchu/mall/blob/master/mall-member/src/test/java/me/cchu/mall/member/MallMemberApplicationTests.java | Github Open Source | Open Source | Apache-2.0 | null | mall | mecchu | Java | Code | 28 | 141 | package me.cchu.mall.member;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
@SpringBootTest
class MallMemberApplicationTests {
@Test
void contextLoads() {
BCryptPasswordEncoder bCryptPassword... | 3,721 |
https://github.com/aalba6675/python-pkcs11/blob/master/tests/test_x509.py | Github Open Source | Open Source | Unlicense | null | python-pkcs11 | aalba6675 | Python | Code | 509 | 4,398 | """
X.509 Certificate Tests
"""
import base64
import subprocess
import datetime
from asn1crypto import pem
from asn1crypto.x509 import Certificate, TbsCertificate, Time, Name
from asn1crypto.keys import RSAPublicKey
from asn1crypto.csr import CertificationRequest, CertificationRequestInfo
import pkcs11
from pkcs11.u... | 1,839 |
https://github.com/jared2501/gerrit/blob/master/gerrit-server/src/main/java/com/google/gerrit/server/git/ProjectLevelConfig.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | gerrit | jared2501 | Java | Code | 316 | 887 | // Copyright (C) 2013 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... | 11,622 |
https://github.com/rui19921122/MeetingSystem/blob/master/src/views/ClassPlan/index.tsx | Github Open Source | Open Source | MIT | null | MeetingSystem | rui19921122 | TypeScript | Code | 7 | 18 | import ClassPlanView from './ClassPlanView'
export default ClassPlanView
| 48,335 |
https://github.com/ttsirkia/koodisailo/blob/master/src/components/TextFileIcon.tsx | Github Open Source | Open Source | MIT | 2,023 | koodisailo | ttsirkia | TSX | Code | 114 | 368 | import { FC } from "react";
export const TextFileIcon: FC = () => {
return (
// https://icons.getbootstrap.com/icons/file-earmark-text/
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="currentColor"
className="bi bi-file-earmark-text"
viewBox="0 0 16 1... | 45,419 |
https://github.com/pyfundation/cine-tasty-mobile/blob/master/src/components/screens/home/components/media-section-view-all/MediaSectionViewAll.tsx | Github Open Source | Open Source | MIT | 2,021 | cine-tasty-mobile | pyfundation | TSX | Code | 124 | 575 | import React from 'react';
import { Platform, FlatList } from 'react-native';
import MediaSectionViewAllListItem from '@components/common/full-media-list-item/FullMediaListItem';
import ListFooterComponent from '@components/common/pagination-footer/PaginationFooter';
import PopupAdvice from '@components/common/popup-a... | 36,124 |
https://github.com/peterkrauz/rpg-achievements-django/blob/master/achievements/admin.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | rpg-achievements-django | peterkrauz | Python | Code | 9 | 28 | from django.contrib import admin
from achievements import models
admin.site.register(models.Achievement)
| 25,035 |
https://github.com/rafaelpascoalrodrigues/realm/blob/master/realm/database.php | Github Open Source | Open Source | MIT | null | realm | rafaelpascoalrodrigues | PHP | Code | 340 | 1,107 | <?php
namespace Realm;
class Database {
public $connections;
public $errors;
public $config;
public function __construct() {
$this->connections = array();
$this->errors = array();
$this->config = \Realm\Configuration::Load('databases');
}
/* Try to open a database */... | 16,135 |
https://github.com/akazad13/direct-honda-parts/blob/master/direct-honda-parts-frontend/src/fake-server/filters/range-filter-builder.ts | Github Open Source | Open Source | MIT | null | direct-honda-parts | akazad13 | TypeScript | Code | 180 | 536 | import { Product } from '../../app/interfaces/product';
import { products as dbProducts } from '../database/products';
import { RangeFilter } from '../../app/interfaces/filter';
import { AbstractFilterBuilder } from './abstract-filter-builder';
export class RangeFilterBuilder extends AbstractFilterBuilder {
privat... | 37,931 |
https://github.com/ReykCS/navrep/blob/master/navrep/scripts/play_markoneencodedenv.py | Github Open Source | Open Source | MIT | 2,022 | navrep | ReykCS | Python | Code | 30 | 122 | import os
from navrep.tools.envplayer import EnvPlayer
from navrep.envs.markencodedenv import MarkOneEncodedEnv
from navrep.envs.markenv import FIRST_TRAIN_MAPS
if __name__ == "__main__":
os.environ["CUDA_VISIBLE_DEVICES"] = "-1" # disable GPU
env = MarkOneEncodedEnv(maps=FIRST_TRAIN_MAPS)
player = EnvP... | 28,470 |
https://github.com/Davidccy/Unity-Sudoku/blob/master/Sudoku/Assets/Scripts/UI/Sudoku/UISudokuInputBoard.cs | Github Open Source | Open Source | MIT | null | Unity-Sudoku | Davidccy | C# | Code | 109 | 360 | using System;
using System.Collections.Generic;
using UnityEngine;
public class UISudokuInputBoard : MonoBehaviour {
#region Serialized Fields
[SerializeField]
private List<UISudokuInput> _uiInputList = null;
#endregion
#region Internal Fields
private Action<UISudokuInput> _inputOnClickActio... | 24,675 |
https://github.com/AslanUOM/sqljet_modified/blob/master/sqljet/src/main/java/org/tmatesoft/sqljet/core/internal/db/SqlJetDbHandle.java | Github Open Source | Open Source | BSD-3-Clause | null | sqljet_modified | AslanUOM | Java | Code | 390 | 1,428 | /**
* SqlJetDbHandle.java
* Copyright (C) 2009-2010 TMate Software Ltd
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* This program is distributed in the... | 5,653 |
https://github.com/Psicowired87/TimeSeriesTools/blob/master/TimeSeriesTools/Burst_detection/bursts_detection.py | Github Open Source | Open Source | MIT | 2,015 | TimeSeriesTools | Psicowired87 | Python | Code | 638 | 1,725 |
"""This module contains the group of functions which carry out the pocess of
separate a sequence of spikes in bursts.
They share as input the sequence of spikes detected by some algorithm of spike
detection and returns a list of arrays which contains the times in which spikes
exists.
"""
import numpy as np
import mat... | 36,306 |
https://github.com/arosenk35/dbt_old_20211101/blob/master/models/cscart/cs_dim_owner.sql | Github Open Source | Open Source | Apache-2.0 | null | dbt_old_20211101 | arosenk35 | SQL | Code | 432 | 2,609 | {{
config({
"materialized": "table",
"post-hook": [
after_commit("create index index_{{this.name}}_on_acct_id on {{this.schema}}.{{this.name}} (account_id)"),
after_commit("create index index_{{this.name}}_on_arr_phone on {{this.schema}}.{{this.name}} using gin (array_phone)"),
after_commit("crea... | 15,131 |
https://github.com/Lostefra/TranslationCoherence/blob/master/Datasets/WikiNER/ontologies/de/de_sentence125.ttl | Github Open Source | Open Source | MIT | null | TranslationCoherence | Lostefra | Turtle | Code | 892 | 12,719 | <http://www.ontologydesignpatterns.org/ont/fred/domain.owl#offset_161_163_or>
a <http://www.essepuntato.it/2008/12/earmark#PointerRange> ;
<http://www.w3.org/2000/01/rdf-schema#label>
"or"^^<http://www.w3.org/2001/XMLSchema#string> ;
<http://ontologydesignpatterns.org/cp/ow... | 23,142 |
https://github.com/Dkbundi/santhathi-appointment/blob/master/app/helpers/cms/patients_helper.rb | Github Open Source | Open Source | MIT | 2,012 | santhathi-appointment | Dkbundi | Ruby | Code | 27 | 89 | module Cms::PatientsHelper
def row_class(name)
class_name = case name
#when "visited" then "color1"
when "prescribed" then "color5"
when "recommend_for_discharge" then "color3"
else ""
end
return class_name
end
end
| 3,765 |
https://github.com/opvizor/grafana/blob/master/pkg/services/alerting/init/init.go | Github Open Source | Open Source | Apache-2.0 | 2,020 | grafana | opvizor | Go | Code | 29 | 179 | package init
import (
"github.com/grafana/grafana/pkg/services/alerting"
_ "github.com/grafana/grafana/pkg/services/alerting/conditions"
_ "github.com/grafana/grafana/pkg/services/alerting/notifiers"
"github.com/grafana/grafana/pkg/setting"
_ "github.com/grafana/grafana/pkg/tsdb/graphite"
)
var engine *alerting.... | 17,016 |
https://github.com/factor-finance/xusd-contracts/blob/master/contracts/oracle/OracleRouter.sol | Github Open Source | Open Source | MIT | 2,022 | xusd-contracts | factor-finance | Solidity | Code | 534 | 1,961 | // SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.8.0;
import "../interfaces/chainlink/AggregatorV3Interface.sol";
import { IOracle } from "../interfaces/IOracle.sol";
import { Helpers } from "../utils/Helpers.sol";
abstract contract OracleRouterBase is IOracle {
uint256 constant MIN_DRIFT = uint256(7000000... | 34,692 |
https://github.com/nax2uk/nhs-virtual-visit-deploy/blob/master/src/components/TrustsListTable/index.js | Github Open Source | Open Source | MIT | 2,022 | nhs-virtual-visit-deploy | nax2uk | JavaScript | Code | 103 | 511 | import React from "react";
import AnchorLink from "../AnchorLink";
const TrustsTable = ({ trusts }) => (
<div className="nhsuk-table-responsive">
<table className="nhsuk-table">
<caption className="nhsuk-table__caption">List of trusts</caption>
<thead className="nhsuk-table__head">
<tr classN... | 30,806 |
https://github.com/mobinseven/VinarishCSB/blob/master/src/VinarishCsb.Shared/Dto/Email/EmailDto.cs | Github Open Source | Open Source | MIT | null | VinarishCSB | mobinseven | C# | Code | 87 | 216 | using System.ComponentModel.DataAnnotations;
namespace VinarishCsb.Shared
{
public class EmailDto
{
private string _name;
[Required]
public string ToAddress { get; set; }
public string ToName
{
get
{
if (string.IsNullOrEmpty(_name))
... | 44,866 |
https://github.com/JavaQualitasCorpus/nakedobjects-4.0.0/blob/master/core/metamodel/src/main/java/org/nakedobjects/metamodel/facets/SingleIntValueFacetAbstract.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | nakedobjects-4.0.0 | JavaQualitasCorpus | Java | Code | 43 | 121 | package org.nakedobjects.metamodel.facets;
public abstract class SingleIntValueFacetAbstract extends FacetAbstract implements SingleIntValueFacet {
private final int value;
public SingleIntValueFacetAbstract(final Class<? extends Facet> facetType, final FacetHolder holder, final int value) {
super(f... | 38,668 |
https://github.com/Rohit484/Distribution/blob/master/a/ag-grid/src/main/scala/typings/agGrid/mod/RowNode.scala | Github Open Source | Open Source | MIT | 2,020 | Distribution | Rohit484 | Scala | Code | 113 | 439 | package typings.agGrid.mod
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
@JSImport("ag-grid", "RowNode")
@js.native
class RowNode ()
extends typings.agGrid.rowNodeMod.RowNode
/* static members */
@JSImport("ag-grid... | 31,704 |
https://github.com/falkben/zoo-checks/blob/master/zoo_checks/templatetags/template_tags.py | Github Open Source | Open Source | Apache-2.0 | null | zoo-checks | falkben | Python | Code | 70 | 245 | import datetime
from django import template
register = template.Library()
@register.filter
def index(List, i):
return List[int(i)]
@register.filter(name="range")
def _range(_min, args=None):
_max, _step = None, None
if args:
if not isinstance(args, int):
_max, _step = map(int, args... | 31,491 |
https://github.com/MrMartin92/vscode-lua-wow/blob/master/API/Item.lua | Github Open Source | Open Source | MIT | 2,020 | vscode-lua-wow | MrMartin92 | Lua | Code | 356 | 2,104 | -- !!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!!
-- This file is automaticly generated. Don't edit manualy!
-- !!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!!
---@class C_Item
C_Item = {}
---[Wowpedia documentation](https://wow.gamepedia.com/API_C_Item.CanScrapItem)
---@param itemLoc table
---@retur... | 11,250 |
https://github.com/Hammerspoon/hammerspoon/blob/master/scripts/lua_stackguard_enforcer.py | Github Open Source | Open Source | MIT | 2,023 | hammerspoon | Hammerspoon | Python | Code | 405 | 1,113 | #!/usr/bin/env python
"""
Enforce the usage of Hammerspoon's Lua stack guarding macros
"""
from __future__ import print_function
import sys
from clang.cindex import Config
from clang.cindex import Index
from clang.cindex import CursorKind
from clang.cindex import TypeKind
FILENAME = "Unknown"
def is_function(node)... | 40,561 |
https://github.com/uosorio/heroku_face/blob/master/venv/boost_1_73_0/libs/graph/example/vf2_sub_graph_iso_example.cpp | Github Open Source | Open Source | Apache-2.0 | 2,020 | heroku_face | uosorio | C++ | Code | 158 | 551 | //=======================================================================
// Copyright (C) 2012 Flavio De Lorenzi (fdlorenzi@gmail.com)
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//=======================... | 46,507 |
https://github.com/Depado/experiments/blob/master/app/__init__.py | Github Open Source | Open Source | WTFPL | 2,015 | experiments | Depado | Python | Code | 24 | 73 | # -*- coding: utf-8 -*-
from flask import Flask
from werkzeug.contrib.fixers import ProxyFix
app = Flask(__name__)
app.config.from_object('config')
app.wsgi_app = ProxyFix(app.wsgi_app)
from app import views
| 32,472 |
https://github.com/xmidt-org/libmetriks/blob/master/src/metrics.h | Github Open Source | Open Source | Apache-2.0 | null | libmetriks | xmidt-org | C | Code | 987 | 1,784 | /*
* Copyright 2019 Comcast Cable Communications Management, 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | 31,207 |
https://github.com/sGrys/it-academy/blob/master/java-basic/projekty/calculator-3/src/main/java/com/company/NodeReader.java | Github Open Source | Open Source | MIT | 2,019 | it-academy | sGrys | Java | Code | 130 | 476 | package com.company;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import java.util.Scanner;
pub... | 9,018 |
https://github.com/KattiaBibi/sis-tickets/blob/master/app/ColaboradorEmpresas.php | Github Open Source | Open Source | MIT | 2,022 | sis-tickets | KattiaBibi | PHP | Code | 26 | 93 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class ColaboradorEmpresas extends Model
{
//
protected $table ='colaborador_empresas';
protected $primaryKey = 'id';
protected $fillable = [
'colaborador_id',
'empresa_id',
];
}
| 33,493 |
https://github.com/M3nin0/ProgrammingMyVacation/blob/master/PythonTKinter/LayoutPackSide2.py | Github Open Source | Open Source | Apache-2.0 | null | ProgrammingMyVacation | M3nin0 | Python | Code | 51 | 278 | #Colocando um item em cada canto da tela
from tkinter import *
def abreJanela():
janela2 = Tk()
janela2.title("Segunda janela =D")
janela2.geometry("300x300+400+300")
janela2.mainloop()
janela = Tk()
janela.title("Side Pack 2")
lb1 = Label(janela,text="Esquerda",bg="red")
lb1.pack(side=LEFT)
lb2 =... | 2,095 |
https://github.com/Ragolsnagol/RagolEngine/blob/master/RagolEngine/RagolEngine/Controls/LinkLabel.cs | Github Open Source | Open Source | MIT | null | RagolEngine | Ragolsnagol | C# | Code | 109 | 346 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
namespace RagolEngine.Controls
{
public class LinkLabel : Control
{
#region Fields and Properties
... | 10,413 |
https://github.com/keenu1/frameworkwebUAS/blob/master/application/controllers/Profile.php | Github Open Source | Open Source | MIT | null | frameworkwebUAS | keenu1 | PHP | Code | 120 | 602 | <?php
defined('BASEPATH') or exit('No direct script access allowed');
class Profile extends CI_Controller
{
public function index()
{
$this->load->model('M_profile');
$data['dataprofile'] = $this->M_profile->user();
$data['titleHeader'] = 'Profile';
$data['user'] = $this->db->g... | 9,781 |
https://github.com/aghasyedbilal/intellij-community/blob/master/plugins/configuration-script/src/providers/updateSettingsProvider.kt | Github Open Source | Open Source | Apache-2.0 | 2,020 | intellij-community | aghasyedbilal | Kotlin | Code | 91 | 447 | package com.intellij.configurationScript.providers
import com.intellij.configurationScript.ConfigurationFileManager
import com.intellij.configurationScript.readIntoObject
import com.intellij.configurationScript.schemaGenerators.PluginJsonSchemaGenerator
import com.intellij.openapi.components.BaseState
import com.intel... | 1,965 |
https://github.com/Prometeus-Network/ignite-back-end/blob/master/src/push-notifications/entities/index.ts | Github Open Source | Open Source | Apache-1.1 | 2,021 | ignite-back-end | Prometeus-Network | TypeScript | Code | 12 | 24 | export * from "./UserDevice";
export * from "./Notification";
export * from "./NotificationType";
| 27,730 |
https://github.com/kcjingjie/vue-element-admin/blob/master/src/views/layout/components/Navbar.vue | Github Open Source | Open Source | MIT | null | vue-element-admin | kcjingjie | Vue | Code | 139 | 577 | <template>
<el-menu :default-active="$route.path" router class="navbar" mode="horizontal" background-color="#545c64" text-color="#fff" active-text-color="#ffd04b" >
<template v-for="(item, index) in permission_routers" v-if="!item.hidden&&item.children">
<el-menu-item :index="item.path" :key="index">
... | 33,848 |
https://github.com/ixofoundation/ixo-webclient/blob/master/src/modules/Entities/SelectedEntity/EntityEdit/EditTemplate/EditTemplate.action.ts | Github Open Source | Open Source | Apache-2.0 | 2,022 | ixo-webclient | ixofoundation | TypeScript | Code | 1,253 | 4,562 | import { Dispatch } from 'redux'
import { FormData } from 'common/components/JsonForm/types'
import { ApiListedEntity } from 'common/api/blocksync-api/types/entities'
import blocksyncApi from 'common/api/blocksync-api/blocksync-api'
import { ApiResource } from 'common/api/blocksync-api/types/resource'
import { PageCont... | 50,997 |
https://github.com/LykkeCity/EthereumApiDotNetCore/blob/master/src/Service.UnitTests/Config.cs | Github Open Source | Open Source | MIT | 2,021 | EthereumApiDotNetCore | LykkeCity | C# | Code | 54 | 233 | using System;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Lykke.Service.EthereumCore.Services.Signature;
using EthereumSamuraiApiCaller;
// ReSharper disable once CheckNamespace
namespace Service.UnitTests
{
public class Config
{
public static IServiceProvider S... | 43,078 |
https://github.com/yanghao2777/PassEncrypt/blob/master/encrypt-api/build.gradle | Github Open Source | Open Source | Apache-2.0 | 2,020 | PassEncrypt | yanghao2777 | Gradle | Code | 106 | 354 | apply plugin: 'java-library'
//apply plugin: 'com.novoda.bintray-release'
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'org.xxtea:xxtea-java:1.0.5'
}
sourceCompatibility = "8"
targetCompatibility = "8"
def getPropertyFromLocalProperties(key) {
File file = proje... | 29,505 |
https://github.com/xueqiya/chromium_src/blob/master/out/release/gen/device/vr/public/mojom/browser_test_interfaces.mojom-forward.h | Github Open Source | Open Source | BSD-3-Clause | 2,021 | chromium_src | xueqiya | C++ | Code | 226 | 1,042 | // device/vr/public/mojom/browser_test_interfaces.mojom-forward.h is auto generated by mojom_bindings_generator.py, do not edit
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef DEVICE_VR_PUBLIC_... | 23,803 |
https://github.com/MSFTAuDX/BrickBand/blob/master/src/uwp/BrickBand/BrickBand.UWP/View/Base/CameraPageBase.cs | Github Open Source | Open Source | MIT | null | BrickBand | MSFTAuDX | C# | Code | 321 | 1,125 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.ApplicationModel;
using Windows.Devices.Enumeration;
using Windows.Graphics.Display;
using Windows.Graphics.Imaging;
using Windows.Media.Capture;
using Windows.Media.MediaProperties;
using ... | 26,498 |
https://github.com/DG-xixuan/uwcssa_ca/blob/master/frontend/src/containers/Login.js | Github Open Source | Open Source | MIT, PostgreSQL, Unlicense | 2,021 | uwcssa_ca | DG-xixuan | JavaScript | Code | 476 | 1,796 | import React, { useState } from "react";
import Avatar from "@material-ui/core/Avatar";
import { Button } from "@material-ui/core";
import CssBaseline from "@material-ui/core/CssBaseline";
import TextField from "@material-ui/core/TextField";
import FormControlLabel from "@material-ui/core/FormControlLabel";
import Chec... | 29,600 |
https://github.com/gprossignoli/Networks_Analysis_final_project/blob/master/src/Logic/SimulationLogic/OverloadModelUtils/ChartReport.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | Networks_Analysis_final_project | gprossignoli | Java | Code | 194 | 842 | package Logic.SimulationLogic.OverloadModelUtils;
import org.jfree.chart.ChartFactory;
import org.jfree.chart.ChartPanel;
import org.jfree.chart.ChartUtils;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.axis.NumberAxis;
import org.jfree.chart.plot.PlotOrientation;
import org.jfree.chart.plot.XYPlot;
import... | 2,324 |
https://github.com/krystianwieczorek/html-js-portfolio-webpage/blob/master/Local_Timer.js | Github Open Source | Open Source | MIT | null | html-js-portfolio-webpage | krystianwieczorek | JavaScript | Code | 40 | 139 | function timer(){
let today = new Date();
let hours = today.getHours();
if(hours<10) hours = "0"+hours;
let minutes = today.getMinutes();
if(minutes<10) minutes = "0"+minutes;
let seconds = today.getSeconds();
if(seconds<10) seconds = "0"+seconds;
document.getElementById("... | 6,968 |
https://github.com/joelbrinkley/NetStreams.Insights/blob/master/src/NetStreams.ControlCenter/Server/NetStreams.ControlCenter.TelemetryProcessor/EventHandlers/StreamStoppedNotificationHandler.cs | Github Open Source | Open Source | MIT | null | NetStreams.Insights | joelbrinkley | C# | Code | 55 | 226 | using MediatR;
using NetStreams.ControlCenter.Models.Abstractions;
using System.Threading;
using System.Threading.Tasks;
namespace NetStreams.ControlCenter.TelemetryProcessor.EventHandlers
{
public class StreamStoppedNotificationHandler : INotificationHandler<StreamStoppedNotification>
{
private IStre... | 38,195 |
https://github.com/Kunstmaan/rocketeer/blob/master/bin/rocketeer | Github Open Source | Open Source | MIT | 2,014 | rocketeer | Kunstmaan | PHP | Code | 44 | 132 | #!/usr/bin/env php
<?php
$vendors = array(
__DIR__.'/../vendor/autoload.php',
__DIR__.'/../../../autoload.php'
);
// Loop through the possible vendor folders and require the first
// one available
foreach ($vendors as $vendor) {
if (file_exists($vendor)) {
require $vendor;
}
}
// Then we launch the console app... | 7,285 |
https://github.com/alissonads/basic_employment_agency/blob/master/bea/public/js/main.js | Github Open Source | Open Source | MIT | null | basic_employment_agency | alissonads | JavaScript | Code | 2,740 | 9,243 |
function getElement(type, name) {
switch (type) {
case "id":
return document.getElementById(name);
break;
case "class":
return document.getElementsByClassName(name);
break;
case "name":
return document.getElementsByName(name);
break;
c... | 38,706 |
https://github.com/BohdanMosiyuk/samples/blob/master/snippets/visualbasic/VS_Snippets_WebNet/XmlDocumentSchemaSample/VB/XmlDocumentSchemaSample.vb | Github Open Source | Open Source | CC-BY-4.0, MIT | 2,022 | samples | BohdanMosiyuk | Visual Basic | Code | 234 | 558 | '<Snippet1>
Imports Microsoft.VisualBasic
Imports System.Xml
Imports System.Web
Imports System.Web.UI.WebControls
Imports System.Web.UI.Design
Public Class XmlDocumentSchemaSample
' This method fills a TreeView Web control from an XML file.
Public Sub FillTreeView(ByVal treeVw As TreeView, ByVal fileName As ... | 4,043 |
https://github.com/misery/AusweisApp2/blob/master/src/remote_device/RemoteDeviceModel.cpp | Github Open Source | Open Source | Apache-2.0 | null | AusweisApp2 | misery | C++ | Code | 708 | 3,136 | /*!
* \copyright Copyright (c) 2017-2018 Governikus GmbH & Co. KG, Germany
*/
#include "RemoteDeviceModel.h"
#include "AppSettings.h"
#include "LanguageLoader.h"
#include "RemoteClient.h"
#include <QtGlobal>
using namespace governikus;
RemoteDeviceModelEntry::RemoteDeviceModelEntry(const QString pDeviceName, co... | 21,560 |
https://github.com/arbdt/xiv-character-tracker/blob/master/models/user.js | Github Open Source | Open Source | MIT | null | xiv-character-tracker | arbdt | JavaScript | Code | 49 | 109 | // this is for the User DB entry
// imports
const mongoose = require("mongoose");
const Schema = mongoose.Schema;
// define User Schema
const UserSchema = new Schema({
userIdentity: {type: String, required: true},
savedCharacters: [Number]
});
// define model
const User = mongoose.model("User", UserSchema);
... | 41,177 |
https://github.com/hskendall/microcosm/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,018 | microcosm | hskendall | Ignore List | Code | 13 | 57 | coverage
node_modules
build
!bin/build
*.asm
*.cfg
tmp
.DS_Store
.babel-cache
lerna-debug.log
npm-debug.log
*.zip
.eslintcache
| 15,647 |
https://github.com/RedHatInsights/insights-frontend-components/blob/master/src/PresentationalComponents/Breadcrumbs/Breadcrumbs.js | Github Open Source | Open Source | Apache-2.0 | 2,019 | insights-frontend-components | RedHatInsights | JavaScript | Code | 130 | 413 | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import { Breadcrumb, BreadcrumbItem } from '@patternfly/react-core';
const Breadcrumbs = ({ items, current, className, onNavigate, ...props }) => {
console.warn('Breadcrumbs from FE component shouldn\'t be used anym... | 50,308 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.