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/mage-game/metagame-xm-server/blob/master/src/gameworld/gameworld/other/fb/rolepersonbossfb.hpp | Github Open Source | Open Source | MIT | 2,022 | metagame-xm-server | mage-game | C++ | Code | 59 | 245 | #ifndef __ROLE_FB_PERSONBOSS__
#define __ROLE_FB_PERSONBOSS__
#include "obj/character/attribute.hpp"
#include "servercommon/fbdef.hpp"
class Role;
class RolePersonBossFB
{
public:
RolePersonBossFB();
~RolePersonBossFB();
void SetRole(Role *role) { m_role = role; }
void Init(Role *role, const PersonBossParam &p... | 2,817 |
https://github.com/wangxingyu-group/newstandard-front/blob/master/mock/newReVisit/taskGetRevisitData.js | Github Open Source | Open Source | MIT | 2,020 | newstandard-front | wangxingyu-group | JavaScript | Code | 137 | 373 | import Mock from 'mockjs'
const List = []
const count = 20
for (let i = 0; i < count; i++) {
List.push(Mock.mock({
task: '@ctitle(2, 5)',
group: '@integer(1,20)',
expression: '@ctitle(5, 10)',
address: '@ctitle(10, 15)',
'status|1': ['effective', 'noneffective'],
remarks: '@ctitle(3, 6)',
... | 33,074 |
https://github.com/MaggiWuerze/xddcwebloader/blob/master/src/main/java/de/maggiwuerze/xdccloader/persistency/ChannelRepository.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | xddcwebloader | MaggiWuerze | Java | Code | 21 | 114 | package de.maggiwuerze.xdccloader.persistency;
import de.maggiwuerze.xdccloader.model.entity.Channel;
import java.util.List;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface ChannelRepository extends PagingAndSorting... | 15,971 |
https://github.com/AlisProject/frontend-application/blob/master/app/components/pages/CoinRanking.vue | Github Open Source | Open Source | MIT | 2,023 | frontend-application | AlisProject | Vue | Code | 147 | 534 | <template>
<div class="coin-ranking-container">
<app-header />
<default-header-nav />
<coin-ranking />
<app-footer />
</div>
</template>
<script>
import AppHeader from '../organisms/AppHeader'
import DefaultHeaderNav from '../molecules/DefaultHeaderNav'
import CoinRanking from '../organisms/CoinRan... | 18,503 |
https://github.com/pawank/PlayRestAPIWithTests/blob/master/app/controllers/CRUD.scala | Github Open Source | Open Source | MIT | null | PlayRestAPIWithTests | pawank | Scala | Code | 830 | 2,270 | package controllers
import models.{AppBaseModel, PK}
import org.joda.time.{LocalDateTime,DateTime}
import play.api.libs.json._
import models.common._
import play.api.mvc.{AnyContent, Result, Controller, Action}
import tables.{AppDbContract}
import javax.inject._
/**
* CRUD and other related actions for `Controlle... | 28,961 |
https://github.com/Sea2Data/NMDEchosounder/blob/master/runLSSSreport/getNMDinfo.py | Github Open Source | Open Source | MIT | null | NMDEchosounder | Sea2Data | Python | Code | 81 | 448 |
class getNMDinfo:
def __init__(self):
''' Constructor for this class. '''
# import urllib.request
import xmltodict
import urllib3
import pandas as pd
import numpy as np
self.server = "http://tomcat7.imr.no:8080/apis/n... | 19,553 |
https://github.com/mephan/regrasp/blob/master/node_modules/express-stormpath/node_modules/stormpath/node_modules/memcached/node_modules/hashring/benchmarks/benchmark.js | Github Open Source | Open Source | MIT, Apache-2.0 | 2,016 | regrasp | mephan | JavaScript | Code | 247 | 729 | /**
* Benchmark dependencies
*/
var Benchmark = require('benchmark')
, microtime = require('microtime');
/**
* Different hashring drivers
*/
var hashring = require('hashring')
, hash_ring = require('hash_ring')
, nodes = {'192.168.0.102:11212': 1, '192.168.0.103:11212': 1, '192.168.0.104:11212': 1};
/**
... | 26,384 |
https://github.com/eduardbadillo-igrid/deep-readdir-extended/blob/master/test/index.js | Github Open Source | Open Source | MIT | null | deep-readdir-extended | eduardbadillo-igrid | JavaScript | Code | 323 | 1,145 | /// <reference path='../typescript-definitions/mocha.d.ts' />
/// <reference path='../typescript-definitions/node.d.ts' />
/* jshint mocha:true */
'use strict';
var rdr = require('../index');
var assert = require('assert');
var _a = [rdr.deepReaddir, rdr.deepReaddirSync], deepReaddir = _a[0], deepReaddirSync = _a[1];
d... | 653 |
https://github.com/Tjoppen/mxflib/blob/master/mxfwrap/parseoptions.h | Github Open Source | Open Source | Zlib | 2,020 | mxflib | Tjoppen | C | Code | 222 | 395 | /*! \file parsoptions.h
* \brief Declarations for MXFWrap commandline options
*
* \version $Id: parseoptions.h,v 1.1 2011/01/10 10:42:27 matt-beard Exp $
*
*/
/*
* Copyright (c) 2010, Metaglue Corporation
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the aut... | 49,062 |
https://github.com/YangHao666666/hawq/blob/master/src/backend/catalog/caql/caller.py | Github Open Source | Open Source | Artistic-1.0-Perl, ISC, bzip2-1.0.5, TCL, Apache-2.0, BSD-3-Clause-No-Nuclear-License-2014, MIT, PostgreSQL, BSD-3-Clause | 2,018 | hawq | YangHao666666 | Python | Code | 496 | 1,172 | #!/usr/bin/env python
# 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
# "Li... | 4,022 |
https://github.com/suvadeepchaudhuri/ember-string-fns/blob/master/addon/helpers/string-to-kebab-case.js | Github Open Source | Open Source | MIT | 2,020 | ember-string-fns | suvadeepchaudhuri | JavaScript | Code | 48 | 132 | import { helper } from '@ember/component/helper';
/**
* kebab-case a string.
*
* @public
* @function stringToKebabCase
* @param {string} value The string to kebab-case.
* @returns {string} The kebab-cased string.
*/
export function stringToKebabCase([value = '']) {
return value
.toLowerCase()
.split('... | 5,132 |
https://github.com/K-Wu/libcxx.doc/blob/master/test/std/language.support/support.limits/limits/numeric.limits.members/quiet_NaN.pass.cpp | Github Open Source | Open Source | Apache-2.0 | null | libcxx.doc | K-Wu | C++ | Code | 143 | 680 | //===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 35,291 |
https://github.com/jiangbingyang/amazon-advertising-api-csharp/blob/master/source/Amazon.Advertising.API/Models/RequestReportParameter.cs | Github Open Source | Open Source | BSD-3-Clause | 2,020 | amazon-advertising-api-csharp | jiangbingyang | C# | Code | 180 | 352 | using Newtonsoft.Json;
namespace Amazon.Advertising.API.Models
{
public class RequestReportParameter
{
/// <summary>
/// The type of campaign for which performance data should be
/// generated.Must be sponsoredProducts
/// </summary>
[JsonProperty("campaignType")]
... | 39,223 |
https://github.com/n-syuichi/LAaaS-docker/blob/master/caliper/app/Translator/DiscussionViewed.php | Github Open Source | Open Source | MIT | 2,022 | LAaaS-docker | n-syuichi | PHP | Code | 82 | 316 | <?php
namespace App\Translator;
use App\Models\Moodle\{Event, User, Forum};
final class DiscussionViewed extends Translator
{
private $partOf;
public function __construct(Event $event)
{
$this->actor = $this->getUser($event->userid);
$this->object = $this->getModule($event->objecttable, ... | 14,288 |
https://github.com/iantal/AndroidPermissions/blob/master/apks/playstore_apps/com_idamob_tinkoff_android/source/com/google/zxing/e/j.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | AndroidPermissions | iantal | Java | Code | 159 | 462 | package com.google.zxing.e;
import com.google.zxing.NotFoundException;
public final class j
extends x
{
private final int[] a = new int[4];
public j() {}
protected final int a(com.google.zxing.common.a paramA, int[] paramArrayOfInt, StringBuilder paramStringBuilder)
throws NotFoundException
{
... | 5,331 |
https://github.com/heraclitusj/mgek_imgbed/blob/master/app/api/__init__.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | mgek_imgbed | heraclitusj | Python | Code | 51 | 139 | # @Author: Landers1037
# @Github: github.com/landers1037
# @File: __init__.py.py
# @Date: 2020-05-12
from flask import Blueprint
from flask_cors import CORS
api = Blueprint('img_api', __name__)
CORS(api)
from . import image_upload
from . import image_info
from . import image_list
from . import image_delete
from .... | 38,140 |
https://github.com/coderbydesign/kudo-o-matic/blob/master/app/dashboards/user_dashboard.rb | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,018 | kudo-o-matic | coderbydesign | Ruby | Code | 233 | 756 | require 'administrate/base_dashboard'
class UserDashboard < Administrate::BaseDashboard
# ATTRIBUTE_TYPES
# a hash that describes the type of each of the model's fields.
#
# Each different type represents an Administrate::Field object,
# which determines how the attribute is displayed
# on pages throughout... | 40,996 |
https://github.com/abelidze/planer-server/blob/master/app/src/test/java/com/skillmasters/server/common/requestbuilder/permission/GrantRequestBuilder.java | Github Open Source | Open Source | MIT | 2,019 | planer-server | abelidze | Java | Code | 49 | 210 | package com.skillmasters.server.common.requestbuilder.permission;
import com.skillmasters.server.common.requestbuilder.AppRequestBuilder;
import com.skillmasters.server.http.request.PermissionRequest;
public class GrantRequestBuilder extends AppRequestBuilder<GrantRequestBuilder>
{
public GrantRequestBuilder userId... | 5,128 |
https://github.com/SSoelvsten/coom/blob/master/test/adiar/bdd/test_evaluate.cpp | Github Open Source | Open Source | MIT | 2,022 | coom | SSoelvsten | C++ | Code | 809 | 2,617 | go_bandit([]() {
describe("BDD: Evaluate", [&]() {
// == CREATE BDD FOR UNIT TESTS ==
// START
/*
1 ---- x0
/ \
| 2 ---- x1
|/ \
3 4 ---- x2
/ \ / \
F T... | 25,271 |
https://github.com/willryan/MethodToDelegate.Ninject/blob/master/MethodToDelegate.Ninject.Test/ReturnDelegate/DelegateExample.cs | Github Open Source | Open Source | MIT | null | MethodToDelegate.Ninject | willryan | C# | Code | 123 | 305 | using System;
namespace MethodToDelegate.Ninject.Test.ReturnDelegate
{
public delegate string PythagDisplay(double x, double y);
public static class DelegateExample
{
public delegate double Add(double x, double y);
public delegate double Mult(double x, double y);
public delegate d... | 39,113 |
https://github.com/bbhsu2/druginformation/blob/master/pages/consumer.js | Github Open Source | Open Source | MIT | null | druginformation | bbhsu2 | JavaScript | Code | 358 | 1,748 | //TODO: abstract this out
function focusSearchQuery(){
$("#searchQuery").focus();
}
setTimeout(function() {
focusSearchQuery();
}, 500);
document.addEventListener('DOMContentLoaded', function () {
var label = $("div > label");
var flag = false; //TODO: fix this so it's based on checkbox state.
label[0].addEven... | 21,959 |
https://github.com/2006-jun15-net/mohamed-code/blob/master/1-chsarp/Serialization/Serialization/Program.cs | Github Open Source | Open Source | MIT | null | mohamed-code | 2006-jun15-net | C# | Code | 200 | 624 | using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.IO;
namespace Serialization
{
class Program
{
static async void Main(string[] args)
{
List<playerStats> data;
string filePath = "../../../data.json";
try
{
... | 45,513 |
https://github.com/magiclen/TakeGhostCard/blob/master/src/org/magiclen/takeghostcard/StringClass.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | TakeGhostCard | magiclen | Java | Code | 904 | 5,233 | /*
*
* Copyright 2015 magiclen.org
*
* 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 agr... | 16,056 |
https://github.com/IbexOmega/CrazyCanvas/blob/master/LambdaEngine/Include/Networking/API/UDP/INetworkDiscoveryClient.h | Github Open Source | Open Source | MIT | 2,021 | CrazyCanvas | IbexOmega | C | Code | 36 | 152 | #pragma once
#include "LambdaEngine.h"
#include "Networking/API/BinaryDecoder.h"
#include "Networking/API/IPEndPoint.h"
#include "Time/API/Timestamp.h"
namespace LambdaEngine
{
class LAMBDA_API INetworkDiscoveryClient
{
public:
DECL_INTERFACE(INetworkDiscoveryClient);
virtual void OnServerFound(BinaryDecod... | 19,762 |
https://github.com/GaoYYYang/image-optimize-loader/blob/master/test/fixtures/index.js | Github Open Source | Open Source | MIT | 2,022 | image-optimize-loader | GaoYYYang | JavaScript | Code | 16 | 61 | import minijpg from './images/jpg/mini.jpg';
import png1 from './images/png/1.png';
import png2 from './images/png/2.png';
import png3 from './images/png/3.png';
| 25,852 |
https://github.com/Marvinmw/dg/blob/master/tools/CMakeFiles/llvm-rd-dump.dir/depend.make | Github Open Source | Open Source | MIT | 2,020 | dg | Marvinmw | Makefile | Code | 104 | 1,896 | # CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.15
tools/CMakeFiles/llvm-rd-dump.dir/llvm-rd-dump.cpp.o: tools/TimeMeasure.h
tools/CMakeFiles/llvm-rd-dump.dir/llvm-rd-dump.cpp.o: tools/llvm-rd-dump.cpp
tools/CMakeFiles/llvm-rd-dump.dir/llvm-rd-dump.cpp.o: include/dg/ADT/... | 7,186 |
https://github.com/signalwire/snippets-cluecon-2020-game-theory/blob/master/relay/nodejs/App.js | Github Open Source | Open Source | MIT | null | snippets-cluecon-2020-game-theory | signalwire | JavaScript | Code | 164 | 410 | const { RelayConsumer } = require('@signalwire/node');
const consumer = new RelayConsumer({
project: '',
token: '',
contexts: ['FIRESTARTER'],
ready: async ({ client }) => {
// Consumer is successfully connected with Relay.
// You can make calls or send messages here..
},
onIncomingCall: async (cal... | 18,455 |
https://github.com/TriOxygen/oxygen-i18n/blob/master/src/index.ts | Github Open Source | Open Source | MIT | 2,023 | oxygen-i18n | TriOxygen | TypeScript | Code | 85 | 233 | import createTranslator, { Options } from './createTranslator';
export { addMessages } from './createTranslator';
const cache: Record<string, Record<string, ReturnType<typeof createTranslator>>> = {};
const defaultOptions: Options = {
fallback: false,
locale: 'en-US',
currency: 'EUR',
format: {}
};
export de... | 8,428 |
https://github.com/victory-jooyon/otlplus/blob/master/locust/locustfile.py | Github Open Source | Open Source | MIT | null | otlplus | victory-jooyon | Python | Code | 741 | 3,630 | from locust import HttpUser, task, between
import json
class OTL_Locust(HttpUser):
wait_time = between(3, 5)
code = "c857eb3a9234ccab38eb"
state = "8d973242f7cca7d3e253"
user_id = "1"
course_id = "865"
professor_id = "796"
csrf_token = None
lecture_id = 987440
def on_start(self... | 44,923 |
https://github.com/URIS-2021-2022/tim-5---fanray-tim-5-fanray/blob/master/test/Fan.Blog.Tests/Services/PageServiceTest.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | tim-5---fanray-tim-5-fanray | URIS-2021-2022 | C# | Code | 659 | 1,984 | using Fan.Blog.Data;
using Fan.Blog.Enums;
using Fan.Blog.Helpers;
using Fan.Blog.Models;
using Fan.Blog.Services;
using Fan.Blog.Tests.Helpers;
using Fan.Exceptions;
using Fan.Settings;
using Markdig;
using MediatR;
using Microsoft.Extensions.Caching.Distributed;
using Microsoft.Extensions.Caching.Memory;
using Micro... | 33,180 |
https://github.com/soumyadipdas37/finescoop.github.io/blob/master/cache/0fd03ccd14629dea10d8b80ffad78ef8aad874cb.php | Github Open Source | Open Source | MIT | null | finescoop.github.io | soumyadipdas37 | PHP | Code | 432 | 781 | <?php $__env->startSection('content'); ?><p>The Queen was crippled by obsessive compulsive disorder as a child and used to line up her pencils in perfectly straight lines to feel 'safe,' a new book has claimed.</p>
<p>A new book titled The Governess, released last month, has made the extraordinary claim about Britain'... | 21,452 |
https://github.com/TanakaYasen/SyscallMon/blob/master/SyscallMonUI/symloaddialog.cpp | Github Open Source | Open Source | MIT | 2,022 | SyscallMon | TanakaYasen | C++ | Code | 309 | 2,134 | #include "symloaddialog.h"
#include "ui_symloaddialog.h"
#include "EventMgr.h"
#include "DriverWrapper.h"
#include "ps.h"
#include "nt.h"
#include "util.h"
SymLoadDialog::SymLoadDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::SymLoadDialog)
{
ui->setupUi(this);
setWindowFlags(Qt::Dialog | Qt::W... | 13,620 |
https://github.com/Don734/testapp/blob/master/resources/scss/includes/modules/others.sass | Github Open Source | Open Source | MIT | null | testapp | Don734 | Sass | Code | 219 | 798 | .msg-error
max-width: 450px
width: 100%
margin-top: 20px
padding: 10px
font-weight: bold
box-shadow: 0 5px 10px rgba($color: $color-b, $alpha: 0.3)
border-radius: 5px
background: $color-w
text-align: center
.modalForm
display: none
position: fixed
top: 50%
left: 50... | 5,652 |
https://github.com/gabrieldewes/Aulas-ED1/blob/master/src/Aula13/Elemento.java | Github Open Source | Open Source | MIT | null | Aulas-ED1 | gabrieldewes | Java | Code | 41 | 130 | package Aula13;
import java.util.Scanner;
/**
* Created by ramon on 10/05/16.
*/
public class Elemento {
public String nome;
public Elemento proximo;
public void ler (){
System.out.println("Digite nome");
Scanner tc = new Scanner(System.in);
this.nome=tc.next();
}
pub... | 29,732 |
https://github.com/itzToxicGaming/Open-Cloud/blob/master/settings.gradle | Github Open Source | Open Source | MIT | 2,018 | Open-Cloud | itzToxicGaming | Gradle | Code | 9 | 33 | rootProject.name = "Open-Cloud"
include ':Open-Container'
include ':Open-Core'
include ':Open-Master' | 40,461 |
https://github.com/Chen-yu-Zheng/Semantic-segmentation-Tianchi/blob/master/dataset.py | Github Open Source | Open Source | MIT | null | Semantic-segmentation-Tianchi | Chen-yu-Zheng | Python | Code | 274 | 1,126 | from utils.figure import figureImgandMask
import torch
import cv2
from utils.rle2img import *
import torchvision.transforms as T
from torch.utils import data as D
import configs
import albumentations as A
import pandas as pd
import matplotlib.pyplot as plt
class TianChiDataset(D.Dataset):
def __init__(self, path... | 49,286 |
https://github.com/ticketmaster/cloud-custodian/blob/master/c7n/ufuncs/logsub.py | Github Open Source | Open Source | Apache-2.0 | null | cloud-custodian | ticketmaster | Python | Code | 367 | 1,032 | # Copyright 2016 Capital One Services, 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 by applicable law or agreed to in... | 29,654 |
https://github.com/agrz/karma-openui5/blob/master/karma.conf.js | Github Open Source | Open Source | Apache-2.0 | null | karma-openui5 | agrz | JavaScript | Code | 212 | 1,007 | module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['openui5','qunit'],
files: [{
pattern: 'bower_components/openui5-sap.ui.core/resources/**/*',
served: true,
included: false,
watched: false
}, {
pat... | 27,721 |
https://github.com/carnophager/node_modules/blob/master/intro_course/write_file.js | Github Open Source | Open Source | MIT | null | node_modules | carnophager | JavaScript | Code | 20 | 69 | const fs = require("fs")
fs.writeFile('message.txt', 'Hello world',
function(error_message)
{
if ( error_message )
{
return console.error(error_message);
}
console.log("Writing finished!");
}); | 6,323 |
https://github.com/dbo1001/UBU-TFG-Medidor-estadistico-metajuego-Magic-The-Gathering/blob/master/src/java/Controlador/RegistroManagedBean.java | Github Open Source | Open Source | MIT | 2,020 | UBU-TFG-Medidor-estadistico-metajuego-Magic-The-Gathering | dbo1001 | Java | Code | 161 | 574 | package Controlador;
import Modelo.GestorBD;
import Modelo.Usuario;
import java.io.IOException;
import java.sql.SQLException;
import java.util.ArrayList;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.faces.context.FacesContext;
@ManagedBean(name = "registroManagedBean")
@Req... | 50,826 |
https://github.com/Fyrlex/bs/blob/master/src/typings/bot.ts | Github Open Source | Open Source | MIT | null | bs | Fyrlex | TypeScript | Code | 68 | 176 | import { ApplicationCommandOption } from 'discord.js';
import { BSClient } from '../lib/structures/BSClient.js';
export interface BSCommand {
readonly name: string
readonly comingSoon: boolean
readonly description: string
readonly dev: boolean
readonly ephemeral: boolean
readonly options: ApplicationComman... | 22,853 |
https://github.com/Taiterbase/react-native-elements/blob/master/src/overlay/__tests__/Overlay.js | Github Open Source | Open Source | MIT | 2,020 | react-native-elements | Taiterbase | JavaScript | Code | 153 | 494 | import React from 'react';
import { Text } from 'react-native';
import { shallow } from 'enzyme';
import toJson from 'enzyme-to-json';
import { create } from 'react-test-renderer';
import { ThemeProvider } from '../../config';
import ThemedOverlay, { Overlay } from '../Overlay';
describe('Overlay', () => {
it('sho... | 2,477 |
https://github.com/jordanwallwork/jello/blob/master/src/Jello/Nodes/TerminalNode.cs | Github Open Source | Open Source | MIT | 2,014 | jello | jordanwallwork | C# | Code | 24 | 56 | namespace Jello.Nodes
{
public abstract class TerminalNode<T> : Node<T> where T : class
{
public override INode GetSingleChild()
{
return null;
}
}
} | 28,204 |
https://github.com/Kreijeck/learning/blob/master/Python/zzz_training_challenge/Python_Challenge/solutions/ch04_strings/solutions/ex07_capitalize.py | Github Open Source | Open Source | MIT | null | learning | Kreijeck | Python | Code | 188 | 681 | # Beispielprogramm für das Buch "Python Challenge"
#
# Copyright 2020 by Michael Inden
def capitalize(input):
input_chars = list(input)
capitalize_next_char = True
for i, current_char in enumerate(input_chars):
if current_char.isspace():
capitalize_next_char = True
elif capita... | 48,111 |
https://github.com/adiwg/mdTranslator/blob/master/lib/adiwg/mdtranslator/writers/html/sections/html_verticalExtent.rb | Github Open Source | Open Source | Unlicense | 2,022 | mdTranslator | adiwg | Ruby | Code | 121 | 424 | # HTML writer
# vertical extent
# History:
# Stan Smith 2017-04-04 refactored for mdTranslator 2.0
# Stan Smith 2015-04-03 original script
require_relative 'html_spatialReference'
module ADIWG
module Mdtranslator
module Writers
module Html
class Html_VerticalExtent
de... | 31,630 |
https://github.com/GouvernementFR/dsfr/blob/master/src/core/style/color/function/_get-color-from-option.scss | Github Open Source | Open Source | MIT | 2,022 | dsfr | GouvernementFR | SCSS | Code | 99 | 210 | ////
/// Core Function : Color get color from set
/// @group core
////
/// Obtenir une couleur depuis une combinaison
/// @access private
/// @param {String} $option - option de couleur (voir setting/options)
/// @param {String} $space - espace de la couleur (hex, hue, saturation, lightness)
/// @return {String} Retou... | 24,026 |
https://github.com/Roney-juma/NoteBook-Flask/blob/master/app/models.py | Github Open Source | Open Source | MIT | 2,021 | NoteBook-Flask | Roney-juma | Python | Code | 181 | 776 | from enum import unique
from flask_sqlalchemy.model import Model
from . import db,login_manager
from datetime import datetime
from flask_login import UserMixin,current_user
from werkzeug.security import generate_password_hash,check_password_hash
@login_manager.user_loader
def load_user(user_id):
return User.query.ge... | 19,766 |
https://github.com/kanish671/goalert/blob/master/auth/authtoken/token_test.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | goalert | kanish671 | Go | Code | 340 | 1,375 | package authtoken
import (
"bytes"
"encoding/base64"
"encoding/binary"
"testing"
"time"
uuid "github.com/satori/go.uuid"
"github.com/stretchr/testify/assert"
)
func TestToken_Version0(t *testing.T) {
tok := &Token{
ID: uuid.UUID{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16},
}
s, err := tok.Enco... | 32,860 |
https://github.com/kaka-lin/kaka-configs/blob/master/configs/mac/zshrc | Github Open Source | Open Source | MIT | 2,023 | kaka-configs | kaka-lin | Shell | Code | 575 | 2,109 | # If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# gnome-terminal-colors-solarized
# ~/.dir_colors/themefile
#eval `gdircolors $HOME/.dir_colors/dircolors.256dark`
eval `gdircolors $HOME/.dir_colors/dircolors.ansi-dark`
if [ -n "$LS_COLORS" ]; then
zstyle '... | 4,395 |
https://github.com/meltedlilacs/doodles/blob/master/build.rb | Github Open Source | Open Source | MIT | null | doodles | meltedlilacs | Ruby | Code | 236 | 1,041 | require "date"
def dir_parts(dir)
parts = dir.split("_")
month = Date::MONTHNAMES.select { |m| !m.nil? && m.downcase.include?(parts[2]) }[0]
{ num: parts[1], month: month, day: parts[3], year: "20#{parts[4]}" }
end
def pretty_text_dir(dir)
parts = dir_parts(dir)
"day #{parts[:num]}: #{parts[:month]} #{parts... | 32,911 |
https://github.com/scokljat/instagram-clone-client/blob/master/src/App.js | Github Open Source | Open Source | MIT | null | instagram-clone-client | scokljat | JavaScript | Code | 186 | 574 | import { Route, Routes, useNavigate } from "react-router-dom";
import { useDispatch, useSelector } from "react-redux";
import {
ChakraProvider,
ColorModeScript,
Button,
Flex,
} from "@chakra-ui/react";
import ThemeSwitcher from "./components/ThemeSwitcher";
import TheNavbar from "./components/TheNavbar";
impor... | 5,149 |
https://github.com/ZoltanTheHun/AppleII/blob/master/basic/zbudget.bas | Github Open Source | Open Source | BSD-3-Clause | null | AppleII | ZoltanTheHun | Visual Basic | Code | 601 | 1,695 | 1 TEXT
10 PRINT "STARTING ZBUDGET 0.031"
15 ONERR GOTO 11000
21 BC=50:REM "MAX BOND COUNT"
22 SS=500:REM "MAX STOCK COUNT"
25 DIM AI$(50):REM "ID":REM "ARRAYS FOR BONDS"
26 DIM AC(50):REM "CAPITAL"
27 DIM AR(50):REM "RATE"
28 DIM AM(50):REM "MATURITY"
29 DIM AY(50):REM "YEARS TO MATURITY"
30 DIM AU$(50):REM "CURRENC... | 38,469 |
https://github.com/Prashanth-Billa/Basic-IT-Ticket-management-CMS/blob/master/project_dbms/js/home.js | Github Open Source | Open Source | Apache-2.0 | null | Basic-IT-Ticket-management-CMS | Prashanth-Billa | JavaScript | Code | 221 | 1,223 |
$(document).ready(function() {
//$("body").css("display", "none");
// $("body").fadeIn(200);
$('#dattym').mouseover(function(){
$('#overlay').fadeIn('fast');
});
$("#cussearch").click(function () {
$(".cus").toggle("medium");
return ... | 48,946 |
https://github.com/xuxiaowei007/balm/blob/master/src/example/java/net/sf/balm/example/web/protocal/PageExample.java | Github Open Source | Open Source | Apache-2.0 | 2,009 | balm | xuxiaowei007 | Java | Code | 20 | 100 | package net.sf.balm.example.web.protocal;
import net.sf.balm.web.annotation.Uri;
import org.springframework.context.annotation.Scope;
@Uri("/example/protocal/page")
@Scope("prototype")
public class PageExample {
public String execute() {
return "page:/example/protocal/pagesuccess.jsp";
}
}
| 17,382 |
https://github.com/xmlet/RegexApi/blob/master/src/main/java/org/xmlet/regexapi/IfGroupMatchThenExpression.java | Github Open Source | Open Source | MIT | 2,019 | RegexApi | xmlet | Java | Code | 134 | 490 | package org.xmlet.regexapi;
import java.util.function.Consumer;
public class IfGroupMatchThenExpression<Z extends Element> implements CustomAttributeGroup<IfGroupMatchThenExpression<Z>, Z> {
protected final Z parent;
protected final ElementVisitor visitor;
public IfGroupMatchThenExpression(ElementVisitor vi... | 3,155 |
https://github.com/tellurianinteractive/Tellurian.Trains.ModulesRegistryApp/blob/master/SourceCode/Data/ModulesDbContext.cs | Github Open Source | Open Source | MIT | 2,022 | Tellurian.Trains.ModulesRegistryApp | tellurianinteractive | C# | Code | 1,533 | 8,252 | using Microsoft.EntityFrameworkCore;
#nullable disable
namespace ModulesRegistry.Data
{
public partial class ModulesDbContext : DbContext
{
//public ModulesDbContext() { }
public ModulesDbContext(DbContextOptions<ModulesDbContext> options) : base(options)
{
}
public v... | 29,644 |
https://github.com/parisk/nbg-python-sdk/blob/master/nbg/auth/signature_test.py | Github Open Source | Open Source | Apache-2.0 | null | nbg-python-sdk | parisk | Python | Code | 195 | 776 | from unittest import mock
import os
import pytest
from . import signature
@pytest.fixture
def client():
return signature.SignedClientMixin()
def test_nbg_certificate(client):
"""
Ensure that the signed client always returns the appropriate NBG
certificate.
"""
current_dir = os.path.dirname... | 14,279 |
https://github.com/akorda/Mp3Effects/blob/master/src/Mp3Effects.CLI/Program.cs | Github Open Source | Open Source | MIT | null | Mp3Effects | akorda | C# | Code | 95 | 284 | using System;
using System.Collections.Generic;
using System.Linq;
using CommandLine;
using Mp3Effects.Options;
using Mp3Effects.UI;
namespace Mp3Effects
{
class Program
{
static int Main(string[] args)
{
var result = Parser.Default.ParseArguments<CommandLineOptions>(args).MapResul... | 47,991 |
https://github.com/jvmf1/arduino-blink-c/blob/master/blink.c | Github Open Source | Open Source | MIT | 2,022 | arduino-blink-c | jvmf1 | C | Code | 49 | 149 | #include <avr/io.h>
#include <util/delay.h>
#include <stdbool.h>
#define DELAY 1000
int main() {
// Put B5 in output mode
DDRB |= (1 << DDB5);
while (true) {
// Set B5 HIGH
PORTB |= (1 << DDB5);
_delay_ms(DELAY);
// Set B5 LOW
PORTB &= ~ (1 << DDB5);
_delay_ms(DELAY);
}
}
| 18,522 |
https://github.com/psyll0n/bash_scripts/blob/master/bash_simple_menu.sh | Github Open Source | Open Source | MIT | null | bash_scripts | psyll0n | Shell | Code | 80 | 182 | #!/bin/bash
# bash_simple_menu.sh - Demonstrates how a menu can be built with 'while' loop and 'case' definitions.
function create_directory() {
declare -l directory
read -p "Enter a directory name: " directory
mkdir "$directory"
}
while true ; do
clear
echo "Choose from the menu below: "
ech... | 21,863 |
https://github.com/ChoiChangYong/Game_Programing/blob/master/WinAPI/WinAPI_180202_Mouse/WinAPI_180202_Mouse/XY.cpp | Github Open Source | Open Source | MIT | null | Game_Programing | ChoiChangYong | C++ | Code | 95 | 341 | #include "XY.h"
void XY::setXY_Start(int x, int y)
{
m_iX_Start = x;
m_iY_Start = y;
}
void XY::setXY_End(int x, int y)
{
m_iX_End = x;
m_iY_End = y;
}
int XY::getX_Start()
{
return m_iX_Start;
}
int XY::getX_End()
{
return m_iX_End;
}
int XY::getY_Start()
{
return m_iY_Start;
}
int XY::getY_End()
{
ret... | 37,361 |
https://github.com/jianlong108/WebView/blob/master/wkwebviewDemo/wkwebviewDemo/DataBaseCell.h | Github Open Source | Open Source | MIT | null | WebView | jianlong108 | C | Code | 50 | 179 | //
// DataBaseCell.h
// wkwebviewDemo
//
// Created by Wangjianlong on 2017/1/11.
// Copyright © 2017年 JL. All rights reserved.
//
#import <UIKit/UIKit.h>
@class Betcompany,DataBaseCell;
@protocol DataBaseCellDelegate <NSObject>
@optional
- (void)cell:(DataBaseCell *)cell ClickDetailBtn:(NSString *)str;
@end
... | 41,084 |
https://github.com/kishoremn/natural/blob/master/src/main/java/com/kb/natural/service/SubCategoryService.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | natural | kishoremn | Java | Code | 108 | 266 | package com.kb.natural.service;
import com.kb.natural.domain.SubCategory;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
/**
* Service Interface for managing SubCategory.
*/
public interface SubCategoryService {
/**
* Save a subCategory.
*
* @param ... | 17,226 |
https://github.com/Seanstoppable/apidoc/blob/master/core/src/test/scala/core/ImporterSpec.scala | Github Open Source | Open Source | MIT | null | apidoc | Seanstoppable | Scala | Code | 174 | 585 | package core
import com.bryzek.apidoc.spec.v0.models.{Application, Organization, Import}
import org.scalatest.{FunSpec, Matchers}
class ImporterSpec extends FunSpec with Matchers {
describe("with an invalid service") {
val json = """
{
"name": "Import Shared",
"apidoc": { "version": "0.9.6" }
... | 9,507 |
https://github.com/MWPainter/Spectral-Image-Analysis-for-Medical-Imaging/blob/master/.gitignore | Github Open Source | Open Source | Apache-2.0 | 2,016 | Spectral-Image-Analysis-for-Medical-Imaging | MWPainter | Ignore List | Code | 74 | 202 | .icon?
/image (1)/
/Data Part1.1/
/Teng Images/
/Reading (additional papers)/
/Spectral Image Analysis for Medical Imaging/SIC.jar
/Spectral Image Analysis for Medical Imaging/bin/
/Spectral Image Analysis for Medical Imaging/demo/
/Spectral Image Analysis for Medical Imaging/Encog apidocs/
/Spectral Image Analysis for... | 26,275 |
https://github.com/anthonykempka/Integrity-Instruments-Products/blob/master/Software/Windows/DataAquisitionUtilities/USBM300 Class/USBM300.cpp | Github Open Source | Open Source | BSD-3-Clause | null | Integrity-Instruments-Products | anthonykempka | C++ | Code | 3,086 | 9,741 | ///////////////////////////////////////////////////////////////////////////////////////////////////
//
// USBM300.cpp: implementation of the USBM300 class.
//
// Copyright (c) 2003, Integrity Instruments, Inc.
//
// 1-800-450-2001
//
// http://www.integrityusa.com
//
////////////////////////////////////////////////////... | 33,627 |
https://github.com/jpaoletti/java-presentation-manager-2/blob/master/modules/jpm2-web-core/src/main/java/jpaoletti/jpm2/web/converter/WebEditCollection2.java | Github Open Source | Open Source | MIT | 2,019 | java-presentation-manager-2 | jpaoletti | Java | Code | 227 | 704 | package jpaoletti.jpm2.web.converter;
import java.util.Collection;
import jpaoletti.jpm2.core.exception.ConfigurationException;
import jpaoletti.jpm2.core.exception.ConverterException;
import jpaoletti.jpm2.core.model.ContextualEntity;
import jpaoletti.jpm2.core.model.Field;
import jpaoletti.jpm2.util.JPMUtils;
/**
... | 36,680 |
https://github.com/wikimatze/vimfiles/blob/master/colors/github.vim | Github Open Source | Open Source | MIT | 2,022 | vimfiles | wikimatze | Vim Script | Code | 375 | 1,425 | " Vim color file
" Maintainer: Ricardo Valeriano <ricardo.valeriano@gmail.com>
" Based on the work by: Bruno Michel <bmichel@menfin.info>
" Last Change: July, 10, 2014
" Version: 0.2
" Homepage: http://github.com/ricardovaleriano/vim-github-theme
" It's a work from https://github.com/nono/github_vim_theme
" It is i... | 4,902 |
https://github.com/aonomike/Human-Connection/blob/master/webapp/components/Registration/CreateUserAccount.vue | Github Open Source | Open Source | MIT | null | Human-Connection | aonomike | Vue | Code | 341 | 1,481 | <template>
<ds-container width="small">
<ds-card v-if="success" class="success">
<ds-space>
<sweetalert-icon icon="success" />
<ds-text align="center" bold color="success">
{{ $t('registration.create-user-account.success') }}
</ds-text>
</ds-space>
</ds-card>
... | 38,057 |
https://github.com/FreeSunny/WisdomEducation/blob/master/Wisdom_Education_iOS/Modules/EduLogic/EduLogic/NEEduManager/Model/NEEduKitOptions.h | Github Open Source | Open Source | MIT | 2,021 | WisdomEducation | FreeSunny | Objective-C | Code | 60 | 157 | //
// NEEduInitOption.h
// EduLogic
//
// Created by Groot on 2021/5/13.
// Copyright © 2021 NetEase. All rights reserved.
// Use of this source code is governed by a MIT license that can be found in the LICENSE file
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface NEEduKitOptions : NSObj... | 2,355 |
https://github.com/wendiNurhermansah/apotek/blob/master/app/Http/Controllers/asyfa/DatabarangController.php | Github Open Source | Open Source | MIT | null | apotek | wendiNurhermansah | PHP | Code | 461 | 1,899 | <?php
namespace App\Http\Controllers\asyfa;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Models\Data_barang;
use App\Models\Jenis_barang;
use App\Models\Satuan;
use App\Models\Supplier;
use Yajra\DataTables\DataTables;
class DatabarangController extends Controller
{
/**
* Dis... | 35,359 |
https://github.com/toluolubajo/F1-Guest-Entry/blob/master/lib/Autoloader.php | Github Open Source | Open Source | MIT | 2,013 | F1-Guest-Entry | toluolubajo | PHP | Code | 86 | 252 | <?php
/**
* Classes source autoload
*/
class Autoloader
{
static protected $_instance;
/**
* Singleton pattern implementation
*
* @return Varien_Autoload
*/
static public function instance()
{
if (!self::$_instance) {
self::$_instance = new Autoloader();
... | 10,759 |
https://github.com/jmscshipp/GAM-372-Centipede/blob/master/CentipedeGame/ExplosionTwoTiles.h | Github Open Source | Open Source | MIT | null | GAM-372-Centipede | jmscshipp | C | Code | 47 | 167 | #ifndef _ExplosionTwoTiles
#define _ExplosionTwoTiles
#include "TEAL/CommonElements.h"
#include "Explosion.h"
class ExplosionTwoTiles : public Explosion
{
public:
ExplosionTwoTiles(); // big four
ExplosionTwoTiles(const ExplosionTwoTiles&) = delete;
ExplosionTwoTiles& operator = (const ExplosionTwoTiles&) = delete... | 25,604 |
https://github.com/coolafabbe/AdventOfCode2021/blob/master/Aron/Day5/answer.py | Github Open Source | Open Source | MIT | null | AdventOfCode2021 | coolafabbe | Python | Code | 340 | 1,135 | import time, sys
GREEN = '\033[92m'
GRAY = '\033[90m'
END_COLOR = '\033[0m'
CLR = '\x1B[0K'
g=100
def print_graph(graph, graph_dim, visualize):
danger_points = 0
for y in range(len(graph)):
for x in range(len(graph[0])):
if graph[x][y] == 0:
if visualize:
... | 41,695 |
https://github.com/acv/sr_tools/blob/master/shooting_mc.py | Github Open Source | Open Source | BSD-3-Clause | 2,013 | sr_tools | acv | Python | Code | 829 | 2,457 | #!/usr/bin/env python
import optparse
from lib.damage import DamageValue
from lib.shooting import *
def monte_carlo(shooter, target, columns, rolls, damage_value, accuracy, ap,
defensive_modifier, attack_modifier):
raw_results = []
for bonus in xrange(columns):
raw_results.append({})
... | 35,920 |
https://github.com/art-community/art-react/blob/master/widgets/Form.tsx | Github Open Source | Open Source | Apache-2.0 | 2,021 | art-react | art-community | TypeScript | Code | 30 | 100 | import React, {DetailedHTMLProps, HTMLAttributes} from "react";
import {Widget} from "./Widget";
import {proxy} from "./Proxy";
export const form = (widget: Widget<any>, properties?: DetailedHTMLProps<HTMLAttributes<HTMLFormElement>, HTMLFormElement>) => proxy(
<form {...properties}>
{widget.render()}
... | 28,117 |
https://github.com/sopian27/sobat-daging-cms/blob/master/application/controllers/auth/ReturnCancel.php | Github Open Source | Open Source | MIT | null | sobat-daging-cms | sopian27 | PHP | Code | 340 | 1,759 | <?php
class ReturnCancel extends CI_Controller
{
public function __construct()
{
parent::__construct();
date_default_timezone_set('Asia/Jakarta');
$this->load->model('auth/TRXReturnModel', 'trx_ret_model');
}
public function index()
{
//$tgl_trx = date("Y-m-d");... | 3,827 |
https://github.com/badiozam/concord/blob/master/src/main/java/com/i4one/base/web/controller/admin/members/MembershipReportController.java | Github Open Source | Open Source | MIT | 2,020 | concord | badiozam | Java | Code | 543 | 1,803 | /*
* MIT License
*
* Copyright (c) 2018 i4one Interactive, LLC
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to us... | 1,511 |
https://github.com/missilerider/blockbrain/blob/master/plugins/blocklibs/domotic/homeAssistant/homeAssistant.js | Github Open Source | Open Source | MIT | null | blockbrain | missilerider | JavaScript | Code | 603 | 1,801 | 'use strict';
const ha = require('./homeAssistant.lib.js');
const blocks = require('./homeAssistant.blocks.lib.js');
const debug = require('debug')('blockbrain:service:homeAssistant');
const log = global.log;
const sleep = (milliseconds) => {
return new Promise(resolve => setTimeout(resolve, milliseconds))
}
var ... | 50,764 |
https://github.com/SilasReinagel/HomeTaskManagement/blob/master/HomeTaskManagement.App/Common/EventSource/EventStoreExtensions.cs | Github Open Source | Open Source | MIT | 2,018 | HomeTaskManagement | SilasReinagel | C# | Code | 70 | 214 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace HomeTaskManagement.App.Common
{
public static class EventStoreExtensions
{
public static Response Commit(this IEventStore events, params Event[] e)
{
events.Commit(e);
return Response.Success(... | 14,393 |
https://github.com/PHELAT/DVDLiveWallpaper/blob/master/app/src/main/java/com/phelat/dvdlogo/state/DvdLogoState.kt | Github Open Source | Open Source | Apache-2.0 | 2,021 | DVDLiveWallpaper | PHELAT | Kotlin | Code | 18 | 63 | package com.phelat.dvdlogo.state
data class DvdLogoState(
var dimensionInSafeArea: Int,
var bitmapDimension: Int,
var screenDimension: Int,
var movementSpeed: Int
)
| 1,703 |
https://github.com/ShaliniThiyagarajan/Datastructure_and_Algorithm/blob/master/recursive/Recursion/src/sumofnaturalnumber.cpp | Github Open Source | Open Source | MIT | null | Datastructure_and_Algorithm | ShaliniThiyagarajan | C++ | Code | 67 | 231 | /*
* sumofnaturalnumber.cpp
*
* Created on: 16-Dec-2021
* Author: acer
*/
#include<iostream>
#include<stdio.h>
using namespace std;
int sum1(int n)
{
return n*(n+1)/2;
}
int sum(int n)
{
if(n >0)
{
return n+sum(n-1);
}
return 0;
}
int sum2(int n)
{
int sum=0;
for(int i=10;i>0; i--)
{
sum=sum+i;
... | 10,568 |
https://github.com/magnuseklund/materials/blob/master/MaterialsDomain/Capacitance/CapacitanceNumberingSystem.cs | Github Open Source | Open Source | Apache-2.0 | null | materials | magnuseklund | C# | Code | 239 | 754 | using System;
using System.Collections.Generic;
using System.Linq;
namespace MaterialsDomain
{
public struct CapacitanceNumberingSystem
{
public CapacitanceNumberingSystem(int value)
{
// Example: 473 = 47pF * 1000 (3 zeroes) = 47 000pf, 47nF, 0,047uF
CapacitanceCode = v... | 41,207 |
https://github.com/dhenson02/hl7js/blob/master/lib/grammar.js | Github Open Source | Open Source | MIT | 2,017 | hl7js | dhenson02 | JavaScript | Code | 57 | 126 | /**
* Author : Ramesh R
* Created : 8/6/2015 12:04 AM
* ----------------------------------------------------------------------
* This file is subject to the terms and conditions defined in
* file 'LICENSE', which is part of this source code package.
* -------------------------------------------------------------... | 33,409 |
https://github.com/FRC6004/2021-Thor/blob/master/src/main/java/frc/robot/Subsystems/Index.java | Github Open Source | Open Source | BSD-3-Clause | null | 2021-Thor | FRC6004 | Java | Code | 133 | 335 | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | 23,614 |
https://github.com/vincentcrowe4airelogic/MockApi/blob/master/Server/HttpRequestExtensions.cs | Github Open Source | Open Source | MIT | null | MockApi | vincentcrowe4airelogic | C# | Code | 146 | 522 | using System;
using System.Collections.Generic;
using System.IO;
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http.Features;
using Microsoft.Extensions.Primitives;
namespace MockApi.Server
{
public static class HttpRequestExtensions
{
public static MockApiAction GetMo... | 38,405 |
https://github.com/radtek/PInvoke-Printer-Example/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,018 | PInvoke-Printer-Example | radtek | Ignore List | Code | 3 | 23 | ESCPOSTester/bin/
ESCPOSTester/obj/
*.pfx
| 3,273 |
https://github.com/weiweitoo/EmoMap/blob/master/coling18/main/ablation/results/be2vad/lm/German/diff_Disgust.tsv | Github Open Source | Open Source | MIT | 2,020 | EmoMap | weiweitoo | TSV | Code | 64 | 286 | Valence Arousal Dominance Average
1 -0.0072 -0.0039 -0.0006 -0.0039
2 0.0064 0.0113 0.0046 0.0075
3 -0.0036 -0.0039 -0.0005 -0.0026
4 0.0031 0.0069 -0.0011 0.003
5 -0.0015 -0.002 -0.0002 -0.0013
6 -0.0026 -0.0007 0.0028 -0.0002
7 -0.0128 0.0019 -0.0012 -0.004
8 0.0032 0.0073 0.0204 0.0103
9 -0.0046 -0.0094 0.0019 -0.0... | 33,248 |
https://github.com/matteocoletta/windows_sdk/blob/master/IntegrationTesting/TestApp/CommandListener.cs | Github Open Source | Open Source | MIT | 2,019 | windows_sdk | matteocoletta | C# | Code | 66 | 218 | using System.Collections.Generic;
using TestLibrary;
namespace TestApp
{
public class CommandListener : ICommandListener
{
private readonly AdjustCommandExecutor _adjustCommandExecutor;
public CommandListener()
{
_adjustCommandExecutor = new AdjustCommandExecutor();
... | 31,946 |
https://github.com/octoi/wb-ui-clone/blob/master/app/lib/widgets/chat_card.dart | Github Open Source | Open Source | MIT | 2,021 | wb-ui-clone | octoi | Dart | Code | 192 | 678 | import 'package:app/utils/constants.dart';
import 'package:flutter/material.dart';
class ChatCard extends StatelessWidget {
final String image;
final String groupName;
final String lastMessage;
final bool hasNewMessage;
final String time;
final int remainingMessage;
const ChatCard({
Key? key,
re... | 39,208 |
https://github.com/crucially/timesplicedb/blob/master/perl/TSDB/t/agg.t | Github Open Source | Open Source | BSD-2-Clause | 2,017 | timesplicedb | crucially | Perl | Code | 295 | 939 | use Test::More tests => 40;
BEGIN { use_ok('TSDB') };
use strict;
unlink("aggtest.tsdb");
my $ct = 1258091219;
my $it = $ct;
my $tsdb = TSDB->new('aggtest.tsdb',
clobber => 1,
resolution => 60,
columns => 'test',
create_time => $ct);
foreach(1..9) {
$tsdb->insert('test' => $_, $it);
$it... | 15,428 |
https://github.com/KevinBlack/ele-admin/blob/master/src/views/example/detail-layout/components/pop-tab-gang.vue | Github Open Source | Open Source | MIT | null | ele-admin | KevinBlack | Vue | Code | 481 | 2,390 | <template>
<div class="detailsContainer">
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="用户管理" name="princeInfo">
<!-- part1 -->
<el-row :gutter="10">
<el-col :span="24">
<h5 class="dtl-title-line">公共信息</h5>
</el-col>
</el-... | 10,895 |
https://github.com/ruigil/shaders/blob/master/pixelspirit/00-TheVoid.glsl | Github Open Source | Open Source | MIT | 2,021 | shaders | ruigil | GLSL | Code | 108 | 196 | #version 300 es
precision highp float;
// Pixel Spirit Deck
// https://patriciogonzalezvivo.github.io/PixelSpiritDeck/
// A pixel shader is a function executed for every pixel.
// So if the image has 1280x720 pixels and refreshes 60 times per second...
// the function is executed 55 million times per second ! (1280... | 28,378 |
https://github.com/sillywalk/grazz/blob/master/tests/binutils-2.30/src/ld/testsuite/ld-elf/group3b.s | Github Open Source | Open Source | Apache-2.0 | 2,021 | grazz | sillywalk | GAS | Code | 11 | 47 | .section .data,"awG",%progbits,foo_group,comdat
.hidden foo
.globl foo
.type foo,%object
foo:
.word 0
| 50,003 |
https://github.com/3sidedcube/ThunderCloud/blob/master/ThunderCloud/Utilities.swift | Github Open Source | Open Source | Apache-2.0 | 2,020 | ThunderCloud | 3sidedcube | Swift | Code | 70 | 146 | //
// Utilities.swift
// ThunderCloud
//
// Created by Ben Shutt on 20/12/2019.
// Copyright © 2019 threesidedcube. All rights reserved.
//
import Foundation
/// Bound `value`between `lower` and `upper`
///
/// - Parameters:
/// - value: Value to bound
/// - lower: Lower bound
/// - upper: Upper bound
func... | 5,259 |
https://github.com/sniperkit/colly/blob/master/plugins/data/parser/ql/pzp26/term.go | Github Open Source | Open Source | Apache-2.0 | null | colly | sniperkit | Go | Code | 38 | 109 | package PZP26
type TermNode struct {
Right interface{}
Operator TermOperator
Left interface{}
}
func (t TermNode) String() string {
return "TODO"
}
func ParseTerm(term string) (TermNode, []error, []error) {
//return TermNode{}, []error{}, []error{errors.New("TODO")}
return TermNode{}, []error{}, []error... | 13,946 |
https://github.com/dobryy/rector/blob/master/packages/BetterPhpDocParser/Contract/BasePhpDocNodeVisitorInterface.php | Github Open Source | Open Source | MIT | null | rector | dobryy | PHP | Code | 13 | 100 | <?php
declare (strict_types=1);
namespace Rector\BetterPhpDocParser\Contract;
use RectorPrefix20211109\Symplify\SimplePhpDocParser\Contract\PhpDocNodeVisitorInterface;
interface BasePhpDocNodeVisitorInterface extends \RectorPrefix20211109\Symplify\SimplePhpDocParser\Contract\PhpDocNodeVisitorInterface
{
}
| 34,290 |
https://github.com/xpucmon/JavaExams/blob/master/190414 JavaSpringWeb/ebankdemoproject/src/main/java/org/softuni/ebankdemoproject/domain/entities/bankaccounts/BankAccount.java | Github Open Source | Open Source | MIT | null | JavaExams | xpucmon | Java | Code | 204 | 661 | package org.softuni.ebankdemoproject.domain.entities.bankaccounts;
import org.softuni.ebankdemoproject.domain.entities.BaseEntity;
import org.softuni.ebankdemoproject.domain.entities.users.User;
import javax.persistence.*;
import java.math.BigDecimal;
import java.time.LocalDateTime;
@Entity(name = "bank_accounts")
p... | 4,846 |
https://github.com/A-Pujo/NAC/blob/master/app/Views/dashboard/pages/acara/sma/2_berkas_bts.php | Github Open Source | Open Source | Apache-2.0 | 2,021 | NAC | A-Pujo | PHP | Code | 74 | 325 | <table class="tabel" id="tabel">
<thead>
<tr>
<th>#</th>
<th>Nama Tim</th>
<th>Berkas</th>
</tr>
</thead>
<tbody>
<?php $no=1; foreach(md('sma')->getAll('prelim', 1) as $peserta) : ?>
<tr>
<?php
if($peserta['ber... | 28,230 |
https://github.com/aingaRamangalahy/fanadinana/blob/master/src/app/core/services/auth.service.ts | Github Open Source | Open Source | MIT | null | fanadinana | aingaRamangalahy | TypeScript | Code | 42 | 121 | import { Injectable } from '@angular/core';
import { User } from '../interfaces';
import { MainService } from './main.service';
@Injectable({
providedIn: 'root'
})
export class AuthService {
apiUrl = "/api/v1/auth"
constructor(private mainService: MainService) { }
login(user: User) {
return this.mainServi... | 32,888 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.