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/AkiaCode/winget-cli/blob/master/src/AppInstallerCLIE2ETests/BaseCommand.cs | Github Open Source | Open Source | MIT | null | winget-cli | AkiaCode | C# | Code | 56 | 226 | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
namespace AppInstallerCLIE2ETests
{
using NUnit.Framework;
using System.Threading;
public class BaseCommand
{
[OneTimeSetUp]
public void Setup()
{
ResetTestSource();
}
[OneT... | 7,712 |
https://github.com/m00nl1ght/secBase/blob/master/routes/web.php | Github Open Source | Open Source | MIT | 2,020 | secBase | m00nl1ght | PHP | Code | 169 | 1,316 | <?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| ... | 9,482 |
https://github.com/devNajjary/laravel-multiple-responder/blob/master/src/DetectResponder.php | Github Open Source | Open Source | MIT | 2,021 | laravel-multiple-responder | devNajjary | PHP | Code | 74 | 331 | <?php
namespace DevNajjary\laravelMultipleResponder;
use FilesystemIterator;
use ReflectionClass;
class DetectResponder
{
public function find(): array
{
if (is_dir(app_path(Constants::RESPONDER_PATH))){
$iterator = new \RecursiveDirectoryIterator(app_path(Constants::RESPONDER_PATH), ... | 33,908 |
https://github.com/oodzpoo/galpi/blob/master/lib/models/book.dart | Github Open Source | Open Source | MIT | 2,020 | galpi | oodzpoo | Dart | Code | 236 | 838 | class Book {
final String id;
final String isbn;
final String title;
final String author;
final String publisher;
final String linkUri;
final String imageUri;
Book(
{this.id,
this.author,
this.imageUri,
this.isbn,
this.publisher,
this.linkUri,
this.title});
... | 42,097 |
https://github.com/j0hnd/jedi/blob/master/Jedi/Features/Users/Views/users/partials/form.blade.php | Github Open Source | Open Source | MIT | null | jedi | j0hnd | PHP | Code | 219 | 1,141 | <div id="create-user-container" class="uk-modal">
<div class="uk-modal-dialog">
<button type="button" class="uk-modal-close uk-close"></button>
<div class="uk-modal-header">
<h2>Add User</h2>
</div>
<span class="uk-icon-spin"></span>
<ul class="uk-tab" data-uk-sw... | 40,649 |
https://github.com/priyakdey/learn-spring/blob/master/src/main/java/com/priyak/test/SringBeanScopeTest.java | Github Open Source | Open Source | MIT | 2,019 | learn-spring | priyakdey | Java | Code | 50 | 225 | package com.priyak.test;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.priyak.myapp.impl.BaseBallCoach;
public class SringBeanScopeTest {
public static void main(String[] args) {
// Load the application COntext
ClassPathXmlApplicationContext context = new ClassPathXml... | 23,870 |
https://github.com/wph21cen/FOMCTextAnalysis/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,021 | FOMCTextAnalysis | wph21cen | Ignore List | Code | 17 | 85 | *.DS_Store
*.spyproject
*.pyc
*.log
*.iml
*.xml
*.pdf
*.txt
*.csv
*.pkl
*.dta
*.png
*.eps
/src/etm/data/*
/src/etm/embeddings/*
/src/etm/results/*
/src/raw_data/*
| 33,311 |
https://github.com/wissamdagher/Temenos-T24-COB-Monitor/blob/master/app/views/cobstart/cobsummary.blade.php | Github Open Source | Open Source | MIT | 2,021 | Temenos-T24-COB-Monitor | wissamdagher | PHP | Code | 63 | 362 | @if (isset($cobstartsummaries))
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">COB summary</h3>
</div>
<table class="table table-bordered table-hove... | 11,433 |
https://github.com/jungrok5/BitBox/blob/master/BitBoxWebServerExample/BitBoxWebServerExample/Scripts/Core/PacketResult.cs | Github Open Source | Open Source | MIT | 2,015 | BitBox | jungrok5 | C# | Code | 34 | 117 | using BitBox.Web;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using BitBoxExample.CSCommon;
namespace BitBoxWebServerExample.Scripts.Core
{
public class PacketResult : BinaryResult
{
public PacketResult(Packet packet)
{
Data = new ArraySegme... | 44,552 |
https://github.com/cthree/mcp79410/blob/master/rtcc.brd | Github Open Source | Open Source | Apache-2.0 | 2,022 | mcp79410 | cthree | Eagle | Code | 5,403 | 28,411 | <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE eagle SYSTEM "eagle.dtd">
<eagle version="8.1.0">
<drawing>
<settings>
<setting alwaysvectorfont="yes"/>
<setting verticaltext="up"/>
</settings>
<grid distance="0.05" unitdist="inch" unit="inch" style="lines" multiple="1" display="no" altdistance="0.01" altunitdist="inc... | 31,407 |
https://github.com/ispras/hdl-benchmarks/blob/master/hdl/iwls05/faraday/rtl/DSP/hdl/DAG/d_cla15.v | Github Open Source | Open Source | Apache-2.0 | 2,023 | hdl-benchmarks | ispras | Verilog | Code | 554 | 1,605 |
`define del 1
`include "x_def.v"
module CLA15_0 (/* IN */ A, B, Cin,
/* OUT */ SUM);
input [15:1] A, B;
input Cin;
output [15:1] SUM;
wire [15:1] P, G, PS;
wire GS;
assign P[15:1] = A[15:1] | B[15:1];
assign G[15:1] = A[15:1] & B[15:1];
assign PS[15:1] = A[15:1] ^ B[15:1];
assign GS = Cin ? (G[... | 1,461 |
https://github.com/UrosOgrizovic/ThirdPersonShooter/blob/master/Third Person Shooter/Assets/Scripts/Fire.cs | Github Open Source | Open Source | MIT | 2,021 | ThirdPersonShooter | UrosOgrizovic | C# | Code | 59 | 209 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Fire : MonoBehaviour
{
void Start()
{
}
void Update()
{
if (Input.GetButtonDown("Fire1"))
{
Vector3 centre = new Vector3(0.5f, 0.5f, 0);
Ray _rayStart = Cam... | 44,492 |
https://github.com/zyqhi/XQProjectTool/blob/master/XQProjectTool/MacTool/XQRegisterHotKey.m | Github Open Source | Open Source | MIT | 2,021 | XQProjectTool | zyqhi | Objective-C | Code | 200 | 972 | //
// XQRegisterHotKey.m
// XQTestHotKey
//
// Created by WXQ on 2018/6/4.
// Copyright © 2018年 SyKing. All rights reserved.
//
#import "XQRegisterHotKey.h"
#import <EventKit/EventKit.h>
#import <Carbon/Carbon.h>
@implementation XQRegisterHotKey
static XQRegisterHotKey *manager_ = nil;
+ (instancetype)manager... | 28,554 |
https://github.com/starwed/starwed.github.io/blob/master/crafty/site/node_modules/assemble-liquid/lib/assemble-liquid.js | Github Open Source | Open Source | MIT | 2,023 | starwed.github.io | starwed | JavaScript | Code | 197 | 559 | (function() {
var LiquidEngine, Path, Q, exports, fs, grunt, plugin;
LiquidEngine = require("./liquid-ext");
Q = require("q");
fs = require("fs");
Path = require("path");
grunt = require("grunt");
plugin = function() {
var compile, engine, ensureCompiled, init, partials, registerFunctions, regis... | 2,424 |
https://github.com/josspoupeney2/bugtracker/blob/master/extension-app/reducers/bugs/actions.js | Github Open Source | Open Source | MIT | null | bugtracker | josspoupeney2 | JavaScript | Code | 169 | 635 | import { RestClient,} from 'symphony-bdk-ui-toolkit';
import {
GET_BUGS,
GET_BUGS_SUCCESS,
GET_BUGS_FAILURE,
CREATE_BUG,
CREATE_BUG_SUCCESS,
CREATE_BUG_FAILURE,
UPDATE_BUG,
UPDATE_BUG_SUCCESS,
UPDATE_BUG_FAILURE,
DELETE_BUG,
DELETE_BUG_SUCCESS,
DELETE_BUG_FAILURE,
} from './types';
export func... | 13,247 |
https://github.com/Vccentric/React-Quiz/blob/master/src/components/Results.js | Github Open Source | Open Source | MIT | 2,018 | React-Quiz | Vccentric | JavaScript | Code | 93 | 283 | import React from "react";
import PropTypes from "prop-types";
// results component
const Results = ({ correctAnswers, totalQuestions, setQuizStats, setView }) => {
const resetQuiz = {
currentIndex: 0,
correctAnswers: 0,
selectedAnswer: false,
showResults: false,
};
return (
<div id="results"... | 32,551 |
https://github.com/helaplus/laravelmifos/blob/master/src/Http/ClientController.php | Github Open Source | Open Source | MIT | null | laravelmifos | helaplus | PHP | Code | 203 | 857 | <?php
namespace Helaplus\Laravelmifos\Http;
use Helaplus\Laravelmifos\Http\MifosHelperController;
use Illuminate\Support\Facades\Http;
class ClientController extends Controller {
public static function create($data)
{
$endpoint = "clients";
return MifosHelperController::MifosPostTransaction... | 44 |
https://github.com/jonathangray/386bsd/blob/master/src/sys.386bsd/i386/isa/wd.c | Github Open Source | Open Source | BSD-2-Clause | 1,992 | 386bsd | jonathangray | C | Code | 4,661 | 13,758 | /*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* William Jolitz.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condit... | 6,747 |
https://github.com/s3phir0th/TextureAttack/blob/master/src/de/tud/textureAttack/view/components/toolbox/attacktools/RandomAttackOptionsPane.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | TextureAttack | s3phir0th | Java | Code | 252 | 1,005 | /*******************************************************************************
* Copyright (c) 2013 Sebastian Funke.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Public License v3.0
* which accompanies this distribution, and is available at
* ... | 42,095 |
https://github.com/chrisbristow/Uhoh/blob/master/src/com/uhoh/Schnauzer.java | Github Open Source | Open Source | BSD-2-Clause-Views | 2,021 | Uhoh | chrisbristow | Java | Code | 506 | 949 | /*
Licence
-------
Copyright (c) 2015-2018, Chris Bristow
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must r... | 1,908 |
https://github.com/HasangaLakdinu/copycatMy/blob/master/lib/asyncUtils.js | Github Open Source | Open Source | MIT | 2,022 | copycatMy | HasangaLakdinu | JavaScript | Code | 21 | 55 | const mapSeries = (fn, arr) => {
return arr.reduce((promise, el) => promise.then(() => fn(el)), Promise.resolve())
}
module.exports = {
mapSeries,
}
| 52,148 |
https://github.com/instructure/instructure-ui/blob/master/packages/ui-codemods/__testfixtures__/updateV7Props/pill.output.js | Github Open Source | Open Source | MIT | 2,023 | instructure-ui | instructure | JavaScript | Code | 25 | 90 | /* eslint-disable */
import { Pill } from '@instructure/ui-pill'
const aVar = () => 'hello'
const a = (
<p>
<Pill>abc</Pill>
<Pill>{aVar()}</Pill>
<Pill>aaabcd</Pill>
</p>
)
| 9,506 |
https://github.com/wavesplatform/WavesGUI/blob/master/src/modules/ui/services/ConfirmTxService.js | Github Open Source | Open Source | MIT | 2,019 | WavesGUI | wavesplatform | JavaScript | Code | 525 | 1,954 | (function () {
'use strict';
const ds = require('data-service');
const { Asset } = require('@waves/data-entities');
const { SIGN_TYPE } = require('@waves/signature-adapter');
const analytics = require('@waves/event-sender');
const NO_EXPORT_TYPES = [
SIGN_TYPE.MASS_TRANSFER,
SI... | 14,966 |
https://github.com/akashic-contents/speed-jigsaw/blob/master/src/TitleScene.ts | Github Open Source | Open Source | CC-BY-4.0, MIT | 2,022 | speed-jigsaw | akashic-contents | TypeScript | Code | 102 | 376 | import { AStage } from "./AStage";
import { AudioPresenter } from "./AudioPresenter";
import { SpriteFactory } from "./SpriteFactory";
export class TitleScene extends AStage {
private scene: g.Scene;
private title: g.Sprite;
constructor(scene: g.Scene) {
super();
this.scene = scene;
}
activate(_s: g.Scene):... | 24,870 |
https://github.com/flubu-core/FlubuCore.Azure/blob/master/FlubuCore.Azure/Tasks/Iot/AzureIotDpsEnrollmentGroupCreateTask.cs | Github Open Source | Open Source | MIT | 2,018 | FlubuCore.Azure | flubu-core | C# | Code | 530 | 1,731 |
using System;
using System.Collections.Generic;
using System.Text;
using FlubuCore.Context;
using FlubuCore.Tasks;
using FlubuCore.Tasks.Process;
namespace FlubuCore.Azure.Tasks.Iot
{
public partial class AzureIotDpsEnrollmentGroupCreateTask : ExternalProcessTaskBase<AzureIotDpsEnrollmentGroupCreateTask>
{
... | 31,083 |
https://github.com/BAYSOFT-001/baysoft-stockwallet/blob/master/src/BAYSOFT.Core.Application/StockWallet/Sectors/Commands/PostSector/PostSectorCommandResponse.cs | Github Open Source | Open Source | MIT | null | baysoft-stockwallet | BAYSOFT-001 | C# | Code | 36 | 129 | using ModelWrapper;
using BAYSOFT.Core.Domain.Entities.StockWallet;
namespace BAYSOFT.Core.Application.StockWallet.Sectors.Commands.PostSector
{
public class PostSectorCommandResponse : ApplicationResponse<Sector>
{
public PostSectorCommandResponse(WrapRequest<Sector> request, object data, string messa... | 29,341 |
https://github.com/vnb/Introduction-to-Computational-Thinking-and-Data-Science/blob/master/genEven.py | Github Open Source | Open Source | MIT | 2,018 | Introduction-to-Computational-Thinking-and-Data-Science | vnb | Python | Code | 57 | 147 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Jul 2 14:19:17 2018
@author: varshabhat
"""
import random
def genEven():
'''
Returns a random even number x, where 0 <= x < 100
'''
# Your code here
even_no = [x for x in range(0,100,2)]
len_list = len(even_no)
rand_index =... | 32,687 |
https://github.com/ebenjaminrandall/CVSmodels/blob/master/simple_model/simple_exercise_model/CardiovascularMechanics_exercise.m | Github Open Source | Open Source | MIT | 2,021 | CVSmodels | ebenjaminrandall | MATLAB | Code | 675 | 2,250 | % This code is the main driver for the cardiovascular mechanics model
clear;
theta = 0; % exercise level, between 0 and 1
HR = 64*(1 + 1.9*theta); % 1/sec
Vtot = 5000;
Vw_LV = 80;
Vw_SEP = 38;
Vw_RV = 28; % Heart wall volumes (mL)
Amref_LV = 0.975*80; % LV midwall reference surface area, cm^2
Amref_SEP = 0.9... | 49,573 |
https://github.com/WeiDaiWD/APSI/blob/master/tests/unit/src/common/result_package.cpp | Github Open Source | Open Source | MIT | 2,022 | APSI | WeiDaiWD | C++ | Code | 368 | 1,981 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
// STD
#include <algorithm>
#include <memory>
#include <sstream>
#include <vector>
// APSI
#include "apsi/crypto_context.h"
#include "apsi/network/result_package.h"
#include "apsi/psi_params.h"
// SEAL
#include "seal/cont... | 38,830 |
https://github.com/erodner/liblinear-mmdt/blob/master/shared.h | Github Open Source | Open Source | BSD-3-Clause | 2,014 | liblinear-mmdt | erodner | C++ | Code | 135 | 422 | #ifndef SHAREDINCLUDE
#define SHAREDINCLUDE
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
typedef signed char schar;
template <class T> static inline void swap(T& x, T& y) { T t=x; x=y; y=t; }
#ifndef min
template <class T> static inline T min(T x,T y) { return (x<y)... | 31,068 |
https://github.com/TomotakaFukami/password_generator/blob/master/resources/assets/js/components/Password/Index.vue | Github Open Source | Open Source | MIT | 2,018 | password_generator | TomotakaFukami | Vue | Code | 487 | 1,869 | <template>
<div class="container">
<h2>Password Generator</h2>
<form>
<h3>パスワードに含む文字の種類</h3>
<md-checkbox v-model="option.upper" class="md-primary" @change="ValidationCheck">大文字</md-checkbox>
<md-checkbox v-model="option.lower" class="md-primary" @change="Validati... | 21,972 |
https://github.com/tom10987/Unity.Extension.CsvEditor/blob/master/Assets/Editor/Files/CSV/CustomCsvEditor.cs | Github Open Source | Open Source | Apache-2.0 | null | Unity.Extension.CsvEditor | tom10987 | C# | Code | 32 | 155 |
//------------------------------------------------------------
// TIPS:
// Unity のみで扱える独自形式のファイルをインスペクターに表示します。
//
// CSV 同様、テキストとして保存しますが、ヘッダー行を必ず含みます。
//
//------------------------------------------------------------
using UnityEditor;
using UnityEngine;
[CustomAsset(".ucsv")]
public class CustomCsvEditor : Custo... | 6,979 |
https://github.com/TDAmeritrade/stumpy/blob/master/stumpy/__init__.py | Github Open Source | Open Source | BSD-3-Clause | 2,023 | stumpy | TDAmeritrade | Python | Code | 857 | 2,730 | import os.path
from numba import cuda
from pkg_resources import DistributionNotFound, get_distribution
from .aamp import aamp # noqa: F401
from .aamp_mmotifs import aamp_mmotifs # noqa: F401
from .aamp_motifs import aamp_match, aamp_motifs # noqa: F401
from .aamp_ostinato import aamp_ostinato, aamp_ostinatoed # n... | 49,706 |
https://github.com/gonnavis/alien.js/blob/master/src/shaders/TextMaterial.vert.js | Github Open Source | Open Source | MIT | 2,021 | alien.js | gonnavis | JavaScript | Code | 36 | 88 | export default /* glsl */`
attribute vec2 uv;
attribute vec3 position;
uniform mat4 modelViewMatrix;
uniform mat4 projectionMatrix;
varying vec2 vUv;
void main() {
vUv = uv;
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
}
`;
| 46,603 |
https://github.com/atakanakbulut/imx-kernel/blob/master/imx7d-variscite/drivers/video/fbdev/omap2/dss/dss.c | Github Open Source | Open Source | MIT | 2,022 | imx-kernel | atakanakbulut | C | Code | 2,861 | 12,983 | /*
* linux/drivers/video/omap2/dss/dss.c
*
* Copyright (C) 2009 Nokia Corporation
* Author: Tomi Valkeinen <tomi.valkeinen@nokia.com>
*
* Some code and ideas taken from drivers/video/omap/ driver
* by Imre Deak.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of t... | 45,228 |
https://github.com/jncraton/gamecomponents.js/blob/master/src/gamecomponent.coffee | Github Open Source | Open Source | MIT | null | gamecomponents.js | jncraton | CoffeeScript | Code | 114 | 439 | class GameComponent
handlers = {}
constructor: (@x_res = 1000, @y_res = 1000) ->
addEventListener: (name, cb) ->
handlers[name] = cb
trigger: (event_name, arg) ->
if handlers[event_name]
handlers[event_name](arg)
clickHandler: (e) ->
if (@click)
... | 28,750 |
https://github.com/llogiq/koto/blob/master/src/runtime/src/core/map.rs | Github Open Source | Open Source | MIT | 2,021 | koto | llogiq | Rust | Code | 821 | 3,059 | use {
crate::{
runtime_error, value_iterator::ValueIteratorOutput as Output, value_sort::compare_values,
RuntimeResult, Value, ValueHashMap, ValueIterator, ValueKey, ValueMap, Vm,
},
std::{cmp::Ordering, ops::Deref},
};
pub fn make_module() -> ValueMap {
use Value::*;
let mut resul... | 7,082 |
https://github.com/coderzh/wasm-core-testsuite/blob/master/proposals/simd/simd_const.485.wat | Github Open Source | Open Source | Apache-2.0 | 2,021 | wasm-core-testsuite | coderzh | null | Spoken | 6 | 33 | (global v128 (v128.const f64x2 0x1.0p_+1 0x1.0p_+1)) | 24,869 |
https://github.com/senamakel/sentiment-trading-bot/blob/master/src/main/java/io/cryptocontrol/whitebird/exceptions/PositionFetchException.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | sentiment-trading-bot | senamakel | Java | Code | 35 | 110 | package io.cryptocontrol.whitebird.exceptions;
import io.cryptocontrol.whitebird.models.Exchange;
/**
* @author enamakel@cryptocontrol.io
*/
public class PositionFetchException extends Exception {
public PositionFetchException(Exchange ex) {
super(String.format("the positions failed to fetch from exchan... | 29,687 |
https://github.com/QRAX-LABS/QRAX/blob/master/src/qt/qrax/assets/graphicsscene.cpp | Github Open Source | Open Source | MIT | 2,022 | QRAX | QRAX-LABS | C++ | Code | 126 | 575 | // Copyright (c) 2021 The QRAX developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "qt/qrax/assets/node.h"
#include "qt/qrax/assets/graphicsscene.h"
#include <QGraphicsSceneMouseEvent>
#include <QGraphicsScene>
#... | 33,165 |
https://github.com/jimmythakkar-dev/webportal-kitting/blob/master/lib/kitting/README.rdoc | Github Open Source | Open Source | MIT | 2,018 | webportal-kitting | jimmythakkar-dev | RDoc | Code | 8 | 15 | = Kitting
This project rocks and uses MIT-LICENSE. | 30,520 |
https://github.com/benbose/yii2-rest/blob/master/config/modules.php | Github Open Source | Open Source | MIT | 2,019 | yii2-rest | benbose | PHP | Code | 11 | 35 | <?php
return [
'user' => [
'class' => 'app\apps\user\Bootstrap'
],
]; | 9,501 |
https://github.com/Profactor/cv-plot-qt/blob/master/CvPlotQt/inc/CvPlotQt/version.h | Github Open Source | Open Source | MIT | 2,020 | cv-plot-qt | Profactor | C | Code | 29 | 119 | // CvPlotQt - https://github.com/Profactor/cv-plot-qt
// Copyright (c) 2020 by PROFACTOR GmbH - https://www.profactor.at/
#pragma once
#include <CvPlotQt/libdef.h>
#include <string>
#define CVPLOTQT_VERSION "0.1"
namespace CvPlotQt {
CVPLOTQT_LIBRARY_INTERFACE std::string version();
}
| 25,679 |
https://github.com/AndreyLanko/perevorot-prozorro/blob/master/resources/assets/less/app.less | Github Open Source | Open Source | MIT | 2,017 | perevorot-prozorro | AndreyLanko | Less | Code | 8 | 48 | @import "vendor/bootstrap/bootstrap";
@import "//fonts.googleapis.com/css?family=Roboto:400,300";
body{
background: #EEE;
} | 24,197 |
https://github.com/Sasa8600/Ebit/blob/master/EbitWebApp/obj/Release/Package/PackageTmp/Ebit_Js/TrainingManagement/TrainingMgmtController.js | Github Open Source | Open Source | MIT | 2,018 | Ebit | Sasa8600 | JavaScript | Code | 7,954 | 30,724 | var TrainingMgmtController = angular.module('TrainingMgmtControllerModule', ['TrainingMgmtServiceModule', 'ValidationServiceModule', 'LoginServiceModule', 'angularUtils.directives.dirPagination', 'ui.grid', 'ui.grid.autoResize', 'ui.grid.selection', 'ui.grid.moveColumns', 'ui.grid.pagination', 'ui.grid.resizeColumns',... | 13,652 |
https://github.com/nyacpp/nya/blob/master/src/nya/invoker.hpp | Github Open Source | Open Source | MIT | null | nya | nyacpp | C++ | Code | 270 | 855 | #ifndef SIGNALNYA_HPP
#define SIGNALNYA_HPP
#include <tuple>
#include <utility>
namespace nya
{
template<typename EventLoop, typename Slot, typename... Args>
void invoke_in(EventLoop& eventLoop, Slot&& slotFunc, Args... args) // for post() which does not accept arguments
{
using namespace std;
// move arguments t... | 356 |
https://github.com/haw-itn/bitcoin2graphdb/blob/master/spec/bitcoin2graphdb/migration_spec.rb | Github Open Source | Open Source | MIT | 2,019 | bitcoin2graphdb | haw-itn | Ruby | Code | 134 | 926 | require 'spec_helper'
describe Bitcoin2Graphdb::Migration, migration: true do
describe 'load configuration' do
context 'default configuration' do
subject{
config = YAML.load(File.read("#{File.dirname(__FILE__)}/../fixtures/default-config.yml")).deep_symbolize_keys
Bitcoin2Graphdb::Migratio... | 17,694 |
https://github.com/frixid/koa/blob/master/test/context/state.js | Github Open Source | Open Source | MIT | 2,016 | koa | frixid | JavaScript | Code | 44 | 140 |
'use strict';
var request = require('supertest');
var assert = require('assert');
var koa = require('../..');
describe('ctx.state', function() {
it('should provide a ctx.state namespace', function(done) {
var app = koa();
app.use(function *() {
assert.deepEqual(this.state, {});
});
var serv... | 24,323 |
https://github.com/vivek-shukla/account-service/blob/master/src/main/java/com/assignment/accountservice/mapper/AccountMapper.java | Github Open Source | Open Source | MIT | null | account-service | vivek-shukla | Java | Code | 82 | 340 | package com.assignment.accountservice.mapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
im... | 14,667 |
https://github.com/gkedge/RoomToReact/blob/master/provision/ansible/playbooks/templates/etc_profiled_java.sh.j2 | Github Open Source | Open Source | MIT | 2,016 | RoomToReact | gkedge | Shell | Code | 5 | 36 | #!/bin/sh
export JAVA_HOME={{oracle_java_home}}
export PATH=$PATH:$JAVA_HOME/bin
| 5,079 |
https://github.com/BNedry/qwant-search-copywork/blob/master/src/components/Sidebar/Sidebar.js | Github Open Source | Open Source | MIT | null | qwant-search-copywork | BNedry | JavaScript | Code | 62 | 208 | import React from "react";
import { CloudIcon, NewspaperOIcon, ImageIcon, TwitterSquareIcon, VideoCameraIcon } from "react-line-awesome";
import SidebarItem from "../SidebarItem/SidebarItem";
import "./Sidebar.css";
export default class Sidebar extends React.Component {
render() {
return (
<d... | 26,977 |
https://github.com/jakubneubauer/prom-client/blob/master/tests/Prometheus.Client.Benchmarks.Comparison/ComparisonBenchmarkBase.cs | Github Open Source | Open Source | MIT | 2,021 | prom-client | jakubneubauer | C# | Code | 259 | 795 | extern alias Their;
using System;
using System.Linq;
using Prometheus.Client.Collectors;
namespace Prometheus.Client.Benchmarks.Comparison
{
public abstract class ComparisonBenchmarkBase
{
private IMetricFactory _factory;
private ICollectorRegistry _registry;
private Their.Prometheus.Co... | 40,251 |
https://github.com/ToufikHaitam/M2M/blob/master/database/migrations/2020_03_18_222628_create_teledeclarations_table.php | Github Open Source | Open Source | MIT | 2,020 | M2M | ToufikHaitam | PHP | Code | 77 | 620 | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateTeledeclarationsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('telede... | 52,813 |
https://github.com/Y-Sindo/memealyzer/blob/master/.devcontainer/devcontainer.json | Github Open Source | Open Source | MIT | 2,021 | memealyzer | Y-Sindo | null | Spoken | 162 | 965 | {
"name": "Memealyzer",
"build": {
"dockerfile": "Dockerfile"
},
"settings": {
"go.useGoProxyToCheckForToolUpdates": false,
"go.useLanguageServer": true,
"go.gopath": "/go",
"go.goroot": "/usr/local/go",
"go.toolsGopath": "/go/bin",
"python.pythonPath": "/opt/python/latest/bin/python",
"python.linti... | 45,573 |
https://github.com/Maledictus/leechcraft/blob/master/src/plugins/azoth/filesenddialog.cpp | Github Open Source | Open Source | BSL-1.0 | 2,021 | leechcraft | Maledictus | C++ | Code | 448 | 1,584 | /**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2006-2014 Georg Rudoy
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE... | 30,441 |
https://github.com/JuliaNeuroscience/SpikeSynchrony.jl/blob/master/test/SPIKEdistance_tests.jl | Github Open Source | Open Source | MIT | 2,022 | SpikeSynchrony.jl | JuliaNeuroscience | Julia | Code | 232 | 709 | using Test, SpikeSynchrony
####### ANALYTICAL TEST ########
y1 = [1]
y2 = [2]
ta = [0, 0, 1, 1, 2, 2, 3, 3]
# I calculated S by hand for these trains:
Sa = [0, 0, 5//9, 3//8, 3//8, 5//9, 0, 0]
t, S = SPIKE_distance_profile(y1, y2; tf = 3)
@test t == ta
@test S ≈ Sa atol = 1e-15
D_S_a = sum( 1//2 * (Sa[2:end] .+ S... | 21,976 |
https://github.com/des-yogi/fitnessdom-emarket/blob/master/src/blocks/nouislider/nouislider.scss | Github Open Source | Open Source | WTFPL | 2,020 | fitnessdom-emarket | des-yogi | SCSS | Code | 737 | 2,522 | .noUi-target,
.noUi-target * {
touch-action: none;
user-select: none;
box-sizing: border-box;
}
.noUi-target {
position: relative;
direction: ltr;
}
.noUi-base,
.noUi-connects {
width: 100%;
height: 100%;
position: relative;
z-index: 1;
}
/* Wrapper for all connect elements.
*/
.noUi-connects {
ove... | 24,548 |
https://github.com/webflorist/htmlfactory/blob/master/src/Components/ColorInputComponent.php | Github Open Source | Open Source | MIT | 2,022 | htmlfactory | webflorist | PHP | Code | 93 | 281 | <?php
namespace Webflorist\HtmlFactory\Components;
use Webflorist\HtmlFactory\Components\Contracts\RegisteredComponentInterface;
use Webflorist\HtmlFactory\Elements\InputElement;
use Webflorist\HtmlFactory\Attributes\Traits\AllowsAutocompleteAttribute;
/**
* Class representing the HTML-component '<input type="color... | 11,112 |
https://github.com/BerlinerMauAR/de.cdv.mauar.backend/blob/master/de.cdv.mauar.backend.generator/test/de/cdv/mauar/backend/generator/exif/ExifTest.xtend | Github Open Source | Open Source | MIT | 2,018 | de.cdv.mauar.backend | BerlinerMauAR | null | Spoken | 358 | 1,563 | package de.cdv.mauar.backend.generator.exif
import de.cdv.mauar.backend.generator.process.ProcessorDefinitions
import java.io.File
import java.nio.file.Paths
import java.util.List
import org.geojson.LngLatAlt
import org.geojson.Point
import org.junit.Test
import static de.cdv.mauar.backend.generator.exif.ExifDataHand... | 25,310 |
https://github.com/levieggert/FlumpOBJC/blob/master/Pods/Headers/Public/Sparrow/SPTouchEvent.h | Github Open Source | Open Source | MIT | 2,015 | FlumpOBJC | levieggert | C | Code | 1 | 20 | ../../../Sparrow/sparrow/src/Classes/SPTouchEvent.h | 38,638 |
https://github.com/SVemulapalli/jasper/blob/master/src/Jasper/EnvironmentChecks/IEnvironmentCheck.cs | Github Open Source | Open Source | MIT | null | jasper | SVemulapalli | C# | Code | 82 | 179 | namespace Jasper.EnvironmentChecks
{
// SAMPLE: IEnvironmentCheck
/// <summary>
/// Executed during bootstrapping time to carry out environment tests
/// against the application
/// </summary>
public interface IEnvironmentCheck
{
/// <summary>
/// A textual descr... | 17,988 |
https://github.com/ericAndrade/IAL-002/blob/master/src/aula1/Precedencia.java | Github Open Source | Open Source | MIT | null | IAL-002 | ericAndrade | Java | Code | 59 | 238 | package aula1;
import java.io.PrintStream;
public class Precedencia {
public static void main(String ... args)
{
PrintStream out = System.out;
out.println("2*6 + 11*5 = "+ ( (2*6) + (11*5) ) );
out.println("20/(-2)/5 = " + 20/(-2)/5);
out.println("20/2*2 = "+ 20/(2*2));
out.println("(3+9)/3*4 = "+ (3+9)... | 34,799 |
https://github.com/ox-it/sakai/blob/master/edu-services/gradebook-service/impl/src/java/org/sakaiproject/tool/gradebook/facades/sakai2impl/UserDirectoryServiceSakai2Impl.java | Github Open Source | Open Source | LicenseRef-scancode-generic-cla, ECL-2.0, LicenseRef-scancode-warranty-disclaimer | 2,022 | sakai | ox-it | Java | Code | 207 | 581 | /**********************************************************************************
*
* $Id$
*
***********************************************************************************
*
* Copyright (c) 2005, 2006, 2007, 2008 The Sakai Foundation, The MIT Corporation
*
* Licensed under the Educational Community License, V... | 41,902 |
https://github.com/modelbrouwers/modelbrouwers/blob/master/src/brouwers/kitreviews/views.py | Github Open Source | Open Source | MIT | 2,021 | modelbrouwers | modelbrouwers | Python | Code | 300 | 1,412 | from django.db.models import Count, Prefetch
from django.http import Http404
from django.shortcuts import get_object_or_404
from django.views.generic import DetailView, FormView, ListView, RedirectView
from django.views.generic.detail import SingleObjectMixin
from django.views.generic.edit import FormMixin
from extra_... | 28,842 |
https://github.com/xpharry/leetcode_and_lintcode_battle/blob/master/leetcode/cpp/257.cpp | Github Open Source | Open Source | MIT | null | leetcode_and_lintcode_battle | xpharry | C++ | Code | 46 | 185 | /**
* Tree, DFS
*/
class Solution {
public:
vector<string> binaryTreePaths(TreeNode* root) {
vector<string> ret;
string path;
if(root) dfs(root, path, ret);
return ret;
}
void dfs(TreeNode* root, string path, vector<string>& ret) {
if(!root->left && !root->right) r... | 29,189 |
https://github.com/SergioFLS/js2me/blob/master/js/me/javax/microedition/io/SecurityInfo.js | Github Open Source | Open Source | MIT | 2,020 | js2me | SergioFLS | JavaScript | Code | 1 | 11 | js2me.createClass({});
| 7,837 |
https://github.com/basiliqio/messy_json/blob/master/src/benches/vs_serde_dummy_obj.rs | Github Open Source | Open Source | MIT | 2,021 | messy_json | basiliqio | Rust | Code | 165 | 975 | use super::*;
use serde::{de::DeserializeSeed, Deserialize, Serialize};
use serde_json::Value;
const DUMMY_OBJ: &str = r#"
{
"hello": {
"hola": "world"
}
}
"#;
#[derive(Serialize, Deserialize)]
struct DummySerdeStructNested<'a> {
hola: Cow<'a, str>,
}
#[derive(Serialize, Deserialize)]
struct DummySerdeStruct... | 25,267 |
https://github.com/hpehl/hal.next/blob/master/app/src/main/java/org/jboss/hal/client/configuration/subsystem/modcluster/ProxyPreview.java | Github Open Source | Open Source | Apache-2.0 | null | hal.next | hpehl | Java | Code | 132 | 385 | /*
* Copyright 2022 Red Hat
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 14,328 |
https://github.com/Kryspo/L2jRamsheart/blob/master/src/main/java/l2f/gameserver/network/clientpackets/CharacterCreate.java | Github Open Source | Open Source | MIT | 2,018 | L2jRamsheart | Kryspo | Java | Code | 678 | 3,183 | package l2f.gameserver.network.clientpackets;
import java.sql.Connection;
import java.sql.SQLException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import l2f.commons.configuration.Config;
import l2f.gameserver.dao.CharacterDAO;
import l2f.gameserver.data.xml.holder.SkillAcquireHolder;
import l2f.gamese... | 47,839 |
https://github.com/Xenapto/contact-data/blob/master/lib/contact-data/link.rb | Github Open Source | Open Source | MIT | 2,016 | contact-data | Xenapto | Ruby | Code | 51 | 160 | # encoding: utf-8
# frozen_string_literal: true
module ContactData
class Link
extend ContactData
BASE = :links
class << self
def latest(params = {})
Fetcher.get :latest, params.to_options(BASE)
end
def info(params = {})
Fetcher.get :info, params.to_options(BASE)
e... | 36,776 |
https://github.com/lamansky/weakish-map/blob/master/test.js | Github Open Source | Open Source | MIT | 2,019 | weakish-map | lamansky | JavaScript | Code | 352 | 1,097 | 'use strict'
const assert = require('assert')
const WeakishMap = require('.')
describe('WeakishMap', function () {
describe('set()', function () {
it('should work for objects', function () {
const map = new WeakishMap()
map.set({}, 'value')
})
it('should work for strings', function () {
... | 49,145 |
https://github.com/Cherno-SuS/SunderingShadows/blob/master/d/laerad/parnelli/asgard/as66.c | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,021 | SunderingShadows | Cherno-SuS | C | Code | 151 | 450 | //Coded by Bane//
#include <daemons.h>
#include <std.h>
#include "/d/laerad/laerad.h"
inherit ASGARD;
void create(){
::create();
/*
set_terrain(WOOD_BUILDING);
set_travel(PAVED_ROAD);
set_name("Asgard's general store");
set_short("Asgard's general store");
set_long(
"%^BOLD%^Asgard's general s... | 11,955 |
https://github.com/alexcambose/zound/blob/master/imports/ui/forms/LoginFrom.js | Github Open Source | Open Source | MIT | 2,020 | zound | alexcambose | JavaScript | Code | 190 | 680 | import React, { Component } from 'react';
import { Meteor } from 'meteor/meteor';
import TextField from '@material-ui/core/TextField';
import InputAdornment from '@material-ui/core/InputAdornment';
import Icon from '@material-ui/core/Icon';
import IconButton from '@material-ui/core/IconButton';
import Button from '@mat... | 15,550 |
https://github.com/mbsoft31/360-feedback/blob/master/routes/web.php | Github Open Source | Open Source | MIT | null | 360-feedback | mbsoft31 | PHP | Code | 93 | 462 | <?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the Route... | 3,696 |
https://github.com/glow-mdsol/linkedct/blob/master/scripts/mapping-gen/xgen.py | Github Open Source | Open Source | Apache-2.0 | 2,015 | linkedct | glow-mdsol | Python | Code | 777 | 1,845 | #
# Copyright 2009-2015 Oktie Hassanzadeh
#
# 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 ... | 10,036 |
https://github.com/rentpath/qa_release_tasks/blob/master/lib/git/wiki.rb | Github Open Source | Open Source | MIT | 2,015 | qa_release_tasks | rentpath | Ruby | Code | 736 | 3,029 | module Git
class Wiki
require 'date'
require 'erb'
require 'enumerator'
include CLI
include Commands
require 'media_wiki'
require 'pivotal-tracker'
require 'yaml'
attr_reader :options
def initialize(options = {})
@options = options
assert_is_git_repo
initiali... | 50,251 |
https://github.com/carroll1118/Java-Basics/blob/master/network/tcp/threapool/TCPServer_Thredpool.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | Java-Basics | carroll1118 | Java | Code | 128 | 604 | package network.tcp.threapool;
import designMode.templatePattern.NewDriver;
import jdk.internal.org.objectweb.asm.tree.TryCatchBlockNode;
import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
/**
* @Auther Carroll
* @Date 2020/4/20
* @e-mail ggq_carroll@163.com
*
* 实现一个服务端可以同时接收多个客户端的消息。
*/
p... | 33,301 |
https://github.com/bekmuradov/todo-web-app/blob/master/client/src/components/~Global/FormComponents/AppInput.vue | Github Open Source | Open Source | MIT | null | todo-web-app | bekmuradov | Vue | Code | 41 | 156 | <template lang="html">
<q-input
borderless
dense
:type="type"
bg-color="white"
:placeholder="placeholder"
lazy-rules
class="new-todo"
/>
</template>
<script>
export default {
props: {
placeholder: {
type: String
},
type: {
type: String,
default: 'text'
... | 46,070 |
https://github.com/danteisalive/gem5-tc/blob/master/src/cpu/pred/lvpt.hh | Github Open Source | Open Source | BSD-3-Clause | 2,021 | gem5-tc | danteisalive | C++ | Code | 1,017 | 2,431 | /*
* Copyright (c) 2004-2005 The Regents of The University of Michigan
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met: redistributions of source code must retain the above copyright
* not... | 18,646 |
https://github.com/nitrofortin/datapho/blob/master/tests/test_frame.py | Github Open Source | Open Source | BSD-3-Clause | 2,018 | datapho | nitrofortin | Python | Code | 197 | 739 | import pandas as pd
import numpy as np
import pytest
import itertools
from dataflow.frame import SmartDataFrame
@pytest.fixture
def data():
size = 100
data = pd.DataFrame()
data['label_1'] = ['a','b','c','d','e']*int(size/5)
data['label_2'] = ['f','g','h','i','j']*int(size/5)
data['numeric'] = np... | 16,069 |
https://github.com/masharp/shoreside-apps/blob/master/camper-leaderboard/view.jade | Github Open Source | Open Source | Apache-2.0 | 2,016 | shoreside-apps | masharp | null | Spoken | 58 | 437 | doctype html
html
head
meta(charset = "utf-8")
meta(description content = "FreeCodeCamp Camper Leaderboard")
meta(name="viewport", content="width=device-width, initial-scale=1")
link(rel="stylesheet", href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css")
link(rel="st... | 9,932 |
https://github.com/pedrorijo91/gospeak/blob/master/web/app/fr/gospeak/web/auth/services/CustomUnsecuredErrorHandler.scala | Github Open Source | Open Source | Apache-2.0 | null | gospeak | pedrorijo91 | Scala | Code | 45 | 228 | package fr.gospeak.web.auth.services
import com.mohiva.play.silhouette.api.actions.UnsecuredErrorHandler
import fr.gospeak.web.pages.user.routes.UserCtrl
import fr.gospeak.web.utils.HttpUtils
import play.api.i18n.{I18nSupport, MessagesApi}
import play.api.mvc.Results.Redirect
import play.api.mvc.{RequestHeader, Result... | 21,592 |
https://github.com/AlexKnauth/my-unpossible/blob/master/utils/file-read-write-proc.rkt | Github Open Source | Open Source | MIT | 2,022 | my-unpossible | AlexKnauth | null | Spoken | 58 | 192 | #lang sweet-exp typed/racket/base
provide make-file-read-write-proc
: make-file-read-write-proc : Path-String -> (case-> [-> Any] [Any -> Void])
define (make-file-read-write-proc path)
when not(file-exists?(path))
call-with-output-file* path #:exists 'error void
: proc : (case-> [-> Any] [Any -> Void])
defi... | 35,631 |
https://github.com/andrzej151/AISD/blob/master/Aisd11/src/DrzewoRB/Sortowania.java | Github Open Source | Open Source | MIT | 2,017 | AISD | andrzej151 | Java | Code | 10 | 29 | package DrzewoRB;
public interface Sortowania {
Object[] sort(Object[] Lists);
}
| 51,563 |
https://github.com/rdyar/tdfc/blob/master/assets/js/recipes.js | Github Open Source | Open Source | MIT | 2,023 | tdfc | rdyar | JavaScript | Code | 113 | 284 | ---
---
const desserts = [ {title: "Chocolate Chip Cookies", url: ""},
{title: "Berries and Ice Cream", url: ""}, {% for dessert in site.desserts %} {title: "{{dessert.title}}", url: "{{dessert.url}}"}, {% endfor %} ];
const main_courses = [ {% for recipe in site.main-courses %} {title: "{{recipe.title}}", url: "{{... | 33,335 |
https://github.com/muulin-tech/sterna/blob/master/api/mid/db_middle.go | Github Open Source | Open Source | MIT | 2,021 | sterna | muulin-tech | Go | Code | 140 | 530 | package mid
import (
"net/http"
"runtime"
"github.com/94peter/sterna/auth"
"github.com/94peter/sterna/db"
"github.com/94peter/sterna/log"
"github.com/94peter/sterna/util"
"github.com/google/uuid"
)
type DBMidDI interface {
log.LoggerDI
db.MongoDI
}
type DBMiddle string
func NewDBMid(di DBMidDI, name stri... | 24,891 |
https://github.com/Augustalex/Some-fun-and-games-with-Electron/blob/master/app/scripts/StockMarket.js | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, CC0-1.0, LicenseRef-scancode-public-domain | 2,016 | Some-fun-and-games-with-Electron | Augustalex | JavaScript | Code | 187 | 642 | var FluxEngine = require("./FluxEngine.js");
var Company = require("./Company.js");
var View = require("./View.js");
function StockMarket(){
var self = this;
this.view = new View("StockMarket", self);
var companies = {};
var accounts = {};
this.fluxEngine = new FluxEngine(this);
this.init =... | 5,790 |
https://github.com/PaulBraetz/CitizenBank/blob/master/CBFrontend/UI/DataFrames/Citizens/CitizensFrame.razor.cs | Github Open Source | Open Source | MIT | null | CitizenBank | PaulBraetz | C# | Code | 159 | 794 | using CBApplication.Services.Abstractions;
using CBData.Entities;
using Microsoft.AspNetCore.Components;
using PBData.Entities;
using PBFrontend.UI.Authorization;
using PBShared.Events;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace CBFrontend.UI.DataFrames.Citizens
{
... | 28,406 |
https://github.com/apache/openoffice/blob/master/main/filter/source/config/cache/cacheitem.hxx | Github Open Source | Open Source | Apache-2.0, CPL-1.0, bzip2-1.0.6, LicenseRef-scancode-other-permissive, Zlib, LZMA-exception, LGPL-2.0-or-later, LicenseRef-scancode-free-unknown, LicenseRef-scancode-philippe-de-muyter, OFL-1.1, LGPL-2.1-only, MPL-1.1, X11, LGPL-2.1-or-later, GPL-2.0-only, OpenSSL, LicenseRef-scancode-cpl-0.5, GPL-1.0-or-later, NPL-1.... | 2,023 | openoffice | apache | C++ | Code | 920 | 2,042 | /**************************************************************
*
* 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 y... | 33,877 |
https://github.com/daleas202/IsingModel/blob/master/Matlab/sumNNN3D.m | Github Open Source | Open Source | MIT | 2,022 | IsingModel | daleas202 | MATLAB | Code | 350 | 1,272 | function S = sumNNN3D(spins, i, j, k, weights, periodic)
%{
%}
[M, N, P] = size(spins);
sNN_wt = weights(1);
sNNN_wt = weights(2);
sNNNN_wt = weights(3);
if periodic
% set up for 2D only right now
V = mod(M+i-2, M);
if V == 0
V = M;
end
W = mod(M+i-1, M);
if W == 0
W = M;... | 21,834 |
https://github.com/Auto-didact/lenshood_/blob/master/modules/listing/server-ts/sql.ts | Github Open Source | Open Source | MIT | null | lenshood_ | Auto-didact | TypeScript | Code | 716 | 2,468 | import { camelizeKeys, decamelizeKeys } from 'humps';
import { Model } from 'objection';
import { knex, returnId, orderedFor } from '@gqlapp/database-server-ts';
import { User } from '@gqlapp/user-server-ts/sql';
// Give the knex object to objection.
Model.knex(knex);
interface ListingImage {
imageUrl: string;
}
in... | 25,118 |
https://github.com/socware-net/jerryscript/blob/master/tests/jerry/string-upper-lower-case-conversion.js | Github Open Source | Open Source | Apache-2.0 | null | jerryscript | socware-net | JavaScript | Code | 217 | 741 | // Copyright 2015 University of Szeged
// Copyright 2015 Samsung Electronics Co., Ltd.
//
// 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... | 15,885 |
https://github.com/AMEND-Consulting-LLC/plural-artifacts/blob/master/crossplane/helm/crossplane/values.yaml.tpl | Github Open Source | Open Source | Apache-2.0 | 2,022 | plural-artifacts | AMEND-Consulting-LLC | null | Spoken | 12 | 52 | serviceAccount:
annotations:
eks.amazonaws.com/role-arn: arn:aws:iam::{{ .Project }}:role/{{ .Cluster }}-crossplane
clusterName: {{ .Cluster }}
| 39,897 |
https://github.com/eltociear/Yoakke/blob/master/Sources/SynKit/Libraries/Automata/IFiniteAutomaton.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | Yoakke | eltociear | C# | Code | 214 | 523 | // Copyright (c) 2021-2022 Yoakke.
// Licensed under the Apache License, Version 2.0.
// Source repository: https://github.com/LanguageDev/Yoakke
using System;
using System.Collections.Generic;
using System.Text;
namespace Yoakke.SynKit.Automata;
/// <summary>
/// Represents a generic finite automaton.
/// </summary... | 28,943 |
https://github.com/michael-franke/xor/blob/master/1st_attempt/experiments/01_RelCompPrior/static/js/main.js | Github Open Source | Open Source | MIT | 2,019 | xor | michael-franke | JavaScript | Code | 74 | 189 | // Initalize psiturk object: gives us variable *condition* from the server
var psiTurk = new PsiTurk(uniqueId, adServerLoc, mode);
// All pages to be loaded
var pages = [
"instructions/instruction.html",
"item.html",
"postquestionnaire.html"
];
var instructionPages = [
"instructions/instruction.html",
];
psiT... | 40,352 |
https://github.com/havardp/NTNU-IT2810-moviedb/blob/master/frontend-native/src/components/navbar/HamburgerButton.js | Github Open Source | Open Source | MIT | null | NTNU-IT2810-moviedb | havardp | JavaScript | Code | 35 | 98 | import React from 'react';
import Hamburger from 'react-native-hamburger';
import { Icon } from 'react-native-elements'
const HamburgerButton = ({ navigation })=> {
return (
<Icon
color="#E50914"
name="menu"
onPress={() => navigation.toggleDrawer()}
/>
)
}
export default HamburgerButton
| 52,558 |
https://github.com/ZavadskiyAS/goit-react-hw-03-phonebook/blob/master/src/components/section/phoneBook/PhoneBook.js | Github Open Source | Open Source | Unlicense | null | goit-react-hw-03-phonebook | ZavadskiyAS | JavaScript | Code | 149 | 475 | import React, { Component } from 'react';
import { v4 as uuidv4 } from 'uuid';
import PropTypes from 'prop-types';
class PhoneBook extends Component {
state = { name: '', number: '' };
handleChange = e => {
this.setState({
[e.target.name]: e.target.value,
});
};
contactsVerification = () => {
... | 44,045 |
https://github.com/fabiocody/easyrepay-web/blob/master/src/utils/pipes/required.pipe.ts | Github Open Source | Open Source | MIT | null | easyrepay-web | fabiocody | TypeScript | Code | 37 | 117 | import {ArgumentMetadata, BadRequestException, Injectable, PipeTransform} from '@nestjs/common';
@Injectable()
export class RequiredPipe implements PipeTransform {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
transform(value: any, _: ArgumentMetadata): any {
if (value) {
re... | 21,549 |
https://github.com/getong/zotonic/blob/master/apps/zotonic_mod_acl_user_groups/priv/templates/_admin_acl_rule_row_module.tpl | Github Open Source | Open Source | Apache-2.0 | 2,022 | zotonic | getong | null | Spoken | 64 | 197 | <td>
{% if rule.acl_user_group_id %}
{% for cg in m.hierarchy.acl_user_group.tree_flat %}
{% if cg.id == rule.acl_user_group_id %}
{{ cg.indent }} {{ cg.id.title }}
{% endif %}
{% endfor %}
{% else %}
<em>{_ All User Groups _}</em>
{% endif %}
... | 32,600 |
https://github.com/apache/etch/blob/master/binding-cpp/runtime/src/main/serialization/EtchFieldMap.cpp | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | 2,021 | etch | apache | C++ | Code | 247 | 695 | /* $Id$
*
* 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"); y... | 20,417 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.