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/MarginC/kame/blob/master/netbsd/sys/arch/arm/iomd/wsqms_iomd.c | Github Open Source | Open Source | BSD-3-Clause | 2,022 | kame | MarginC | C | Code | 511 | 1,267 | /* $NetBSD: wsqms_iomd.c,v 1.2 2001/11/27 01:03:53 thorpej Exp $ */
/*-
* Copyright (c) 2001 Reinoud Zandijk
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by Reinoud Zandijk
*
* Redistribution and use in source and binary forms, with or without
* modificat... | 50,785 |
https://github.com/jodi-one/jod/blob/master/jodi_core/src/main/java/one/jodi/etl/builder/impl/ProcedureTransformationBuilderImpl.java | Github Open Source | Open Source | Apache-2.0 | null | jod | jodi-one | Java | Code | 362 | 1,442 | package one.jodi.etl.builder.impl;
import com.google.inject.Inject;
import one.jodi.base.error.ErrorWarningMessageJodi;
import one.jodi.base.service.metadata.SchemaMetaDataProvider;
import one.jodi.core.procedure.CommandType;
import one.jodi.core.procedure.Procedure;
import one.jodi.core.procedure.Task;
import one.jod... | 15,045 |
https://github.com/minhduc3009/Arduino-Code/blob/master/Led_matrix_p10_font_TV/DMD2master/DMD2_TextBox.cpp | Github Open Source | Open Source | MIT | null | Arduino-Code | minhduc3009 | C++ | Code | 389 | 986 | /*
DMD TextBox implementation
Allows a simple scrolling text box that implements the Arduino Print
interface, so you can write to it like a serial port or character
LCD display.
Copyright (C) 2014 Freetronics, Inc. (info <at> freetronics <dot> com)
Updated by Angus Gratton, based on DMD by Marc Alexander.
---... | 46,533 |
https://github.com/jamessdixon/REPL-Driven-Development/blob/master/ChickenSoftware.StockAnalyzer.Solution/ChickenSoftware.StockAnalyzer/StockProvider.fs | Github Open Source | Open Source | MIT | 2,017 | REPL-Driven-Development | jamessdixon | null | Spoken | 120 | 434 | namespace ChickenSoftware.StockAnalyzer
open FSharp.Data
open Accord
open Accord.Statistics
open Accord.Statistics.Models.Regression.Linear
type YahooContext = CsvProvider<"http://ichart.finance.yahoo.com/table.csv?s=MSFT">
type StockProvider() =
member this.GetMostRecentPrice ticker =
try
... | 39,751 |
https://github.com/opensource-project-study/apollo-use-cases/blob/master/spring-boot-encrypt/src/main/java/com/ctrip/framework/apollo/use/cases/spring/boot/encrypt/Application.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | apollo-use-cases | opensource-project-study | Java | Code | 102 | 434 | package com.ctrip.framework.apollo.use.cases.spring.boot.encrypt;
import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
import java.util.concurrent.TimeUnit;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.S... | 28,072 |
https://github.com/lightj/ajax-lib/blob/master/index.js | Github Open Source | Open Source | WTFPL | null | ajax-lib | lightj | JavaScript | Code | 15 | 37 | const ajax = require('./dist')
if(typeof window === 'object') window.ajax = ajax.default
else module.exports = ajax
| 1,079 |
https://github.com/thevpc/nuts/blob/master/core/nuts-runtime/src/main/java/net/thevpc/nuts/runtime/bundles/nanodb/NanoDBTableDefinition.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | nuts | thevpc | Java | Code | 70 | 242 | package net.thevpc.nuts.runtime.bundles.nanodb;
public class NanoDBTableDefinition<T> {
private String name;
private Class<T> type;
private NanoDBSerializer<T> serializer;
private NanoDBIndexDefinition<T>[] indices;
public NanoDBTableDefinition(String name, Class<T> type, NanoDBSerializer<T> seria... | 8,797 |
https://github.com/savitha-p/tempest-1/blob/master/tempest/api/workloadmgr/license/test_licence.py | Github Open Source | Open Source | 2,021 | tempest-1 | savitha-p | Python | Code | 562 | 2,469 | import os
import sys
from oslo_log import log as logging
from tempest import command_argument_string
from tempest import config
from tempest import reporting
from tempest import tvaultconf
from tempest.api.workloadmgr import base
from tempest.lib import decorators
from tempest.util import cli_parser
sys.path.append(... | 20,655 | |
https://github.com/vehicle-history/npm-vehicle-history-model/blob/master/lib/builder/event/holderEventBuilder.js | Github Open Source | Open Source | MIT | 2,017 | npm-vehicle-history-model | vehicle-history | JavaScript | Code | 46 | 213 | const assert = require('assert-plus');
require('../../date');
const logger = require('../../logger/logger').logger;
const ChangeOwnerEventBuilder = require('../../model/response/event/changeOwnerEvent').ChangeOwnerEventBuilder;
const build = function build(event) {
logger.debug('build holder event:', event);
asse... | 31,499 |
https://github.com/TheODI-UD2D/blocktrain/blob/master/lib/blocktrain/lookups.rb | Github Open Source | Open Source | MIT | 2,015 | blocktrain | TheODI-UD2D | Ruby | Code | 153 | 511 | module Blocktrain
class Lookups
include Singleton
def lookups
init! if @lookups.nil?
@lookups
end
def aliases
init! if @aliases.nil?
@aliases
end
def reset!
@lookups = nil
end
# Separate out initialization for testing purposes
def init!
@look... | 32,490 |
https://github.com/ylniu/Nwchem-6.3/blob/master/src/eetrans/eet_2e.F | Github Open Source | Open Source | ECL-2.0 | 2,016 | Nwchem-6.3 | ylniu | null | Spoken | 988 | 4,175 | c $Id: eet_2e.F 19708 2010-10-29 18:04:21Z d3y133 $
subroutine eet_2e(rtdb,Dnbf, Anbf, Dbas, Abas, Dgeom, Ageom,
& max2e,mem2,tol2e,g_pa,g_pb,omega2, Vex)
implicit none
#include "errquit.fh"
c
c calculates the two-electron contribution to Vba, omega2
c
c nbf, basis, geom ... | 20,465 |
https://github.com/liruqi/cocotron/blob/master/objc/objc_property.m | Github Open Source | Open Source | MIT | 2,014 | cocotron | liruqi | Objective-C | Code | 118 | 510 | #import <objc/runtime.h>
#import <string.h>
#import <stddef.h>
#import <stdlib.h>
#import <ctype.h>
#import <Foundation/NSObject.h>
const char *property_getAttributes(objc_property_t property){
return property->attributes;
}
const char *property_getName(objc_property_t property) {
return property->name;
}
id o... | 33,169 |
https://github.com/fredlllll/simple-c/blob/master/SimpleC/Types/Tokens/KeywordToken.cs | Github Open Source | Open Source | MIT | 2,017 | simple-c | fredlllll | C# | Code | 189 | 509 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SimpleC.Types.Tokens
{
class KeywordToken : Token
{
private static readonly Dictionary<string, KeywordType> validKeywords = new Dictionary<string, KeywordType>()
{
... | 33,796 |
https://github.com/raphael-group/magi/blob/master/db/loadKnownGeneSets.js | Github Open Source | Open Source | MIT | 2,018 | magi | raphael-group | JavaScript | Code | 84 | 269 | // Load models
var db = require('../model/db'),
genesets = require('../model/genesets');
// Validate args
var argv = require('optimist').argv;
if (!( argv.gene_set_file && argv.dataset )){
usage = "Usage: node loadKnownGeneSets.js --gene_set_file=</path/to/genesets/file> --dataset={dataset name}"
console.log... | 41,815 |
https://github.com/VWarlock/mdlz80optimizer/blob/master/src/main/java/parser/dialects/Dialects.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | mdlz80optimizer | VWarlock | Java | Code | 241 | 708 | package parser.dialects;
import org.apache.commons.lang3.StringUtils;
import cl.MDLConfig;
/**
* Utility class to handle dialect identifier strings
*/
public class Dialects {
/**
* @return the default dialect identifier string
*/
public static String defaultDialect() {
return knownDialec... | 48,151 |
https://github.com/mcsyko/tubestar/blob/master/TubeStarDesktop/Game/Player.cs | Github Open Source | Open Source | MIT | null | tubestar | mcsyko | C# | Code | 261 | 632 | using System;
using System.Collections.Generic;
using System.Xml.Serialization;
namespace TubeStar
{
public class Player
{
private static Player _current;
public static Player Current
{
get
{
if (_current == null)
_current = n... | 18,515 |
https://github.com/Marfusios/websocket-client/blob/master/test/Websocket.Client.Tests/PerformanceTests.cs | Github Open Source | Open Source | MIT | 2,023 | websocket-client | Marfusios | C# | Code | 282 | 1,027 | using System;
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
using Websocket.Client.Tests.TestServer;
using Xunit;
using Xunit.Abstractions;
namespace Websocket.Client.Tests
{
#if DEBUG
public class PerformanceTests
{
private readonly TestContext<SimpleStartup> _contex... | 25,089 |
https://github.com/TanmayVig/sem6Labs/blob/master/Flash Magic/Bootloaders/Ethernet/LPC1800_LPC4300/Bootloader/isp_iap.h | Github Open Source | Open Source | MIT | null | sem6Labs | TanmayVig | C | Code | 338 | 1,068 | //-----------------------------------------------------------------------------
// Software that is described herein is for illustrative purposes only
// which provides customers with programming information regarding the
// products. This software is supplied "AS IS" without any warranties.
// NXP Semiconductors... | 30,176 |
https://github.com/shellyyip/extended-export-twitter-analytics/blob/master/scripts/json-order.js | Github Open Source | Open Source | MIT | 2,020 | extended-export-twitter-analytics | shellyyip | JavaScript | Code | 42 | 82 | // ***********
// Module: json-order
// * Orders the properties in a JSON object to a desired order.
// * Takes an object and an array of properties in desired order.
module.exports = function(object,orderArray){
var orderedObj = JSON.parse(JSON.stringify(object, orderArray));
return orderedObj;
}; | 15,868 |
https://github.com/cmsc430/www/blob/master/www/texts.scrbl | Github Open Source | Open Source | AFL-3.0 | 2,023 | www | cmsc430 | null | Spoken | 407 | 1,106 | #lang scribble/manual
@(require scribble/core "utils.rkt")
@title[#:style 'unnumbered]{Texts}
This course @bold{has no required textbook}. See the @secref{Notes}
instead.
@section{Background}
@itemlist[
@item{
@image[#:style float-right #:scale 1/3]{img/htdp-2e-cover.gif}
@link["https://htdp.org/2018-01-06/Boo... | 45,862 |
https://github.com/Sopra-Group-14/sopra-fs20-poker-server/blob/master/src/main/java/ch/uzh/ifi/seal/soprafs20/entity_in_game/GameLog.java | Github Open Source | Open Source | Apache-2.0 | null | sopra-fs20-poker-server | Sopra-Group-14 | Java | Code | 697 | 2,602 | package ch.uzh.ifi.seal.soprafs20.entity_in_game;
import ch.uzh.ifi.seal.soprafs20.cards.API_Card;
import ch.uzh.ifi.seal.soprafs20.cards.Card;
import ch.uzh.ifi.seal.soprafs20.constant.Action;
import ch.uzh.ifi.seal.soprafs20.constant.GameRound;
import java.util.ArrayList;
import java.util.LinkedList;
import java.ut... | 13,103 |
https://github.com/simlt/myrobotlab/blob/master/src/org/myrobotlab/service/Servo.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | myrobotlab | simlt | Java | Code | 2,684 | 6,981 | /**
*
* @author greg (at) myrobotlab.org
*
* This file is part of MyRobotLab (http://myrobotlab.org).
*
* MyRobotLab is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version... | 30,560 |
https://github.com/deKilla/IPPR2016/blob/master/ModellingPlatform-dev/src/app/components/services/ui-joint/ui-joint-paper.service.js | Github Open Source | Open Source | MIT | 2,020 | IPPR2016 | deKilla | JavaScript | Code | 68 | 241 | (function () {
'use strict';
angular.module('uiJoint.jointPaper', [])
.factory('jointPaper', jointPaper);
/** @ngInject */
function jointPaper($log, $rootScope, jointWindow, jointGraph) {
var service = this;
service.paper = null;
service.createPaper = function (elemen... | 38,921 |
https://github.com/foal/gwt-time-apt/blob/master/processor/src/main/java/org/jresearch/gwt/time/apt/PatternInfoClassBuilder.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | gwt-time-apt | foal | Java | Code | 1,115 | 5,494 | package org.jresearch.gwt.time.apt;
import java.time.format.FormatStyle;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Optional;
import java.util.regex.Matcher;
import javax.annotation.processing.Messager;
import javax.lang.model.element.Modifier;
imp... | 25,968 |
https://github.com/hyperium/hyper/blob/master/examples/params.rs | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,023 | hyper | hyperium | Rust | Code | 469 | 1,481 | // #![deny(warnings)] // FIXME: https://github.com/rust-lang/rust/issues/62411
#![warn(rust_2018_idioms)]
use bytes::Bytes;
use http_body_util::{combinators::BoxBody, BodyExt, Empty, Full};
use hyper::server::conn::http1;
use hyper::service::service_fn;
use hyper::{Method, Request, Response, StatusCode};
use tokio::n... | 20,615 |
https://github.com/Syadeu/CoreSystem/blob/master/Runtime/Presentation/RenderSystem/Shader/TestComputeShader.cs | Github Open Source | Open Source | Apache-2.0 | null | CoreSystem | Syadeu | C# | Code | 136 | 428 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TestComputeShader : MonoBehaviour
{
//public int sphereAmount = 17;
//public ComputeShader ComputeShader;
//ComputeBuffer resultBuffer;
//int kernel;
//uint threadGroupSize;
//Vector3[] output;
//Tr... | 25,481 |
https://github.com/woutervh-/typescript-is/blob/master/index.js | Github Open Source | Open Source | MIT | 2,023 | typescript-is | woutervh- | JavaScript | Code | 371 | 1,137 | let defaultGetErrorObject = undefined;
function checkGetErrorObject(getErrorObject) {
if (typeof getErrorObject !== 'function') {
throw new Error('This module should not be used in runtime. Instead, use a transformer during compilation.');
}
}
const assertionsMetadataKey = Symbol('assertions');
funct... | 51,095 |
https://github.com/AbdelhakimRafik/Pharmalogy-API/blob/master/src/database/seeders/2021032400000-demo-pharmacy.coffee | Github Open Source | Open Source | MIT | null | Pharmalogy-API | AbdelhakimRafik | CoffeeScript | Code | 140 | 574 | ###
* @author Abdelhakim RAFIK
* @version v1.0.1
* @license MIT License
* @copyright Copyright (c) 2021 Abdelhakim RAFIK
* @date Mar 2021
###
###
Create demo data for pharmacies
###
module.exports =
up: (queryInterface, Sequelize) ->
# create demo data
demoData = []
cities = ["Fez","Tangier","Mar... | 16,164 |
https://github.com/Swung0x48/Macado_bot/blob/master/Utils/Commands/CommandInstance.cs | Github Open Source | Open Source | Apache-2.0 | null | Macado_bot | Swung0x48 | C# | Code | 29 | 107 | using Macado_bot.Utils.Commands.Implemented;
namespace Macado_bot.Utils.Commands
{
public class CommandInstance
{
public static readonly CommandRouter CommandManager = new CommandRouter();
static CommandInstance()
{
CommandManager.RegisterCommand(new InfoCommand());
... | 2,285 |
https://github.com/nickc01/cuberite/blob/master/src/Physics/Explodinator.h | Github Open Source | Open Source | Apache-2.0 | 2,022 | cuberite | nickc01 | C | Code | 74 | 143 |
#pragma once
class cEntity;
class cWorld;
namespace Explodinator
{
/** Creates an explosion of Power, centred at Position, with ability to set fires as provided.
For maximum efficiency, Position should be in the centre of the entity or block that exploded.
The entity pointer is used to trigger OnBreak for ... | 2,771 |
https://github.com/webloper/actionview/blob/master/app/Project/Eloquent/AccessProjectLog.php | Github Open Source | Open Source | Apache-2.0 | 2,020 | actionview | webloper | PHP | Code | 24 | 97 | <?php
namespace App\Project\Eloquent;
use Jenssegers\Mongodb\Eloquent\Model;
class AccessProjectLog extends Model
{
//
protected $table = 'access_project_log';
protected $fillable = array(
'user_id',
'project_key',
'latest_access_time'
);
}
| 4,903 |
https://github.com/takawo/dailycoding/blob/master/sketches/sketch930236/mySketch.js | Github Open Source | Open Source | MIT | 2,020 | dailycoding | takawo | JavaScript | Code | 135 | 331 | function setup() {
createCanvas(400, 400);
angleMode(DEGREES);
}
function draw() {
background(128);
let d = 250;
let r = d / 2 * PI;
push();
translate(width / 2, height / 2.5);
stroke(255);
let a1 = random(r / 20, r / 10);
let a2 = random(r / 8, r / 4);
drawingContext.setLineDash([a1, a2]);
strokeWeight(r ... | 11,716 |
https://github.com/helq/old_code/blob/master/project euler solutions/Problem_045.py | Github Open Source | Open Source | CC0-1.0 | null | old_code | helq | Python | Code | 86 | 203 | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
from math import sqrt
#trian = lambda n: n*(n + 1)/2
#pent = lambda n: n*(3*n - 1)/2
hexa = lambda n: n*(2*n - 1)
def is_trian(x):
f = sqrt( .25 + 2*x ) - .5
return f - int(f) == 0
def is_pent(x):
f = (.5 + sqrt(.25 + 6*x) )/3
return f - int(f) == 0
# ... | 28,928 |
https://github.com/signaturefish/tendra/blob/master/trans/src/mips/tempdecs.c | Github Open Source | Open Source | HPND | 2,022 | tendra | signaturefish | C | Code | 699 | 1,885 | /*
* Copyright 2011-2012, The TenDRA Project.
* Copyright 1997, United Kingdom Secretary of State for Defence.
*
* See doc/copyright/ for the full copyright terms.
*/
#include <stddef.h>
#include <shared/bool.h>
#include <tdf/tag.h>
#include <reader/exp.h>
#include <construct/exp.h>
#include <main/flags.h>
... | 30,289 |
https://github.com/xueyicui5431/healthStoreMallAdminWeb/blob/master/src/api/prolist.js | Github Open Source | Open Source | MIT | null | healthStoreMallAdminWeb | xueyicui5431 | JavaScript | Code | 121 | 545 | import request from '@/utils/request'
export function fetchBooksList(params) {
return request({
url: '/sysScheme/list/sysScheme',
method: 'get',
params: params
})
}
//标题添加的接口**
export function proAddList(params) {
return request({
url: '/sysScheme/nacClassifyDic/list',
... | 45,593 |
https://github.com/decentralMind/sign-the-doc/blob/master/client/src/deployDoc/NextButton.js | Github Open Source | Open Source | MIT | 2,021 | sign-the-doc | decentralMind | JavaScript | Code | 56 | 178 | import React from 'react';
import { MainContext } from '../context/MainContext';
class NextButton extends React.Component {
updateMainContext = () => {
const context = this.context;
const toUpdate = this.props.toUpdate;
context.updateNextButton(toUpdate);
}
render() {
cons... | 5,515 |
https://github.com/trafort/Infiabot/blob/master/commands/stats.js | Github Open Source | Open Source | MIT | 2,021 | Infiabot | trafort | JavaScript | Code | 110 | 332 | const { version } = require("discord.js");
const moment = require("moment");
require("moment-duration-format");
exports.run = (client, message, args, level) => { // eslint-disable-line no-unused-vars
const duration = moment.duration(client.uptime).format(" D [days], H [hrs], m [mins], s [secs]");
message.channel.s... | 19,472 |
https://github.com/dfabulich/npmbox/blob/master/npmunbox.js | Github Open Source | Open Source | MIT | 2,014 | npmbox | dfabulich | JavaScript | Code | 116 | 421 | // npmbox by Glen R. Goodwin (@areinet)
// https://github.com/arei/npmbox.git
// Extracts an .npmbox file and installs the contained package.
(function(){
var unbox = require("./npmboxxer.js").unbox;
var argv = require("optimist")
.boolean(["v","verbose","g","global"])
.argv;
var args = argv._;
if (args.leng... | 4,071 |
https://github.com/im-Angry/inkchain/blob/master/protos/ledger/queryresult/kv_query_result.pb.go | Github Open Source | Open Source | Apache-2.0 | 2,018 | inkchain | im-Angry | Go | Code | 705 | 2,357 | // Code generated by protoc-gen-go. DO NOT EDIT.
// source: ledger/queryresult/kv_query_result.proto
/*
Package queryresult is a generated protocol buffer package.
It is generated from these files:
ledger/queryresult/kv_query_result.proto
It has these top-level messages:
KV
KeyModification
*/
package queryresult
... | 24,791 |
https://github.com/uk-gov-mirror/ONSdigital.address-index-api/blob/master/demo-ui/app/uk/gov/ons/addressIndex/demoui/modules/VersionModule.scala | Github Open Source | Open Source | MIT | 2,022 | ONSdigital.address-index-api | uk-gov-mirror | Scala | Code | 101 | 366 | package uk.gov.ons.addressIndex.demoui.modules
import com.google.inject.{ImplementedBy, Inject, Singleton}
import uk.gov.ons.addressIndex.demoui.client.AddressIndexClientInstance
import uk.gov.ons.addressIndex.model.server.response.address.AddressResponseVersion
import scala.concurrent.duration._
import scala.concurr... | 26,253 |
https://github.com/jigyasa-grover/CORMAS-Pharo/blob/master/Cormas-Core.package/DataSaver_Excel.class/class/requestForFilename..st | Github Open Source | Open Source | MIT | 2,022 | CORMAS-Pharo | jigyasa-grover | null | Spoken | 24 | 58 | new
requestForFilename: currentModel
"request a file name to store the data.
return Nil or a Filename
currentModel : <CormasModel>"
^self requestForFilename: currentModel extension: '.xls' | 39,418 |
https://github.com/ElTitoBadi/spam-abp/blob/master/public/js/functionsCharts.js | Github Open Source | Open Source | MIT | null | spam-abp | ElTitoBadi | JavaScript | Code | 745 | 2,965 |
function init(selectedNav){
var options = opcions(selectedNav);
consultarDataApi(options);
}
function llistaCharts(){
var llista = consultarLlistaApi();
creaLlista(llista);
}
//consulta la data allotjada a la nav per construir el grafic
function opcions(selectedNav){
var nav = $('#' + selec... | 37,673 |
https://github.com/PietroProperties/holms.platformclient.net/blob/master/csharp/HOLMS.Platform/HOLMS.Platform/Types/out/Guest.cs | Github Open Source | Open Source | MIT | 2,021 | holms.platformclient.net | PietroProperties | C# | Code | 621 | 2,557 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: crm/guests/guest.proto
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global:... | 33,427 |
https://github.com/EmilMitev/Telerik-Academy/blob/master/Database/Homeworks/02. Processing XML in .NET/Processing XML in .NET/Processing XML in .NET/Task08.cs | Github Open Source | Open Source | MIT | 2,018 | Telerik-Academy | EmilMitev | C# | Code | 73 | 298 | namespace Processing_XML_in.NET
{
using System.Text;
using System.Xml;
public class Task08
{
public static void CreateAnotherXmlFileFromExisting()
{
using (var writer = new XmlTextWriter("../../Album.xml", Encoding.UTF8))
{
writer.Formatting = Fo... | 33,360 |
https://github.com/drdima2/qirk/blob/master/qirk-parent/qirk-chat-parent/qirk-chat-services/src/main/java/org/wrkr/clb/chat/services/sql/SQLIssueChatService.java | Github Open Source | Open Source | MIT | 2,020 | qirk | drdima2 | Java | Code | 70 | 390 | package org.wrkr.clb.chat.services.sql;
import java.util.UUID;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.wrkr.clb.chat.model.sql.BaseAttachedChatMessage;
import org.wrkr.clb.chat.model.sql.IssueMessage;
import org.wrkr.clb.chat.repo.sql.Ba... | 2,462 |
https://github.com/noelex/GeographicLib.NET/blob/master/GeographicLib/Projections/LambertConformalConic.cs | Github Open Source | Open Source | MIT | 2,022 | GeographicLib.NET | noelex | C# | Code | 4,816 | 12,454 | using System;
using System.Collections.Generic;
using System.Text;
using static System.Math;
using static GeographicLib.MathEx;
namespace GeographicLib.Projections
{
/// <summary>
/// Lambert conformal conic projection.
/// </summary>
/// <remarks>
/// Implementation taken from the report,
//... | 13,720 |
https://github.com/DagW/filter-parser/blob/master/grammar/path_test.go | Github Open Source | Open Source | MIT | null | filter-parser | DagW | Go | Code | 37 | 165 | package grammar
import (
"fmt"
"github.com/di-wu/parser/ast"
)
func ExamplePath() {
p, _ := ast.New([]byte("members[value eq \"2819c223-7f76-453a-919d-413861904646\"].displayName"))
fmt.Println(Path(p))
// Output:
// [004] [[009] [[006] [[007] members], [005] [[006] [[007] value], [008] eq, [023] "2819c223-7f76... | 23,027 |
https://github.com/jaksco/dotfiles/blob/master/fish/functions/l.fish | Github Open Source | Open Source | 0BSD | null | dotfiles | jaksco | Fish | Code | 41 | 97 | # Defined in - @ line 2
function l --description 'alias l=tree -L 3 --sort=mtime --dirsfirst -f -h --prune --du --noreport -up'
setterm -linewrap off
tree -Lh 2 --sort=mtime --dirsfirst -d -h --prune --du -up -C $argv
setterm -linewrap on
end
| 43,377 |
https://github.com/lampepfl/dotty/blob/master/sbt-test/source-dependencies/class-based-memberRef/src/main/scala/A.scala | Github Open Source | Open Source | Apache-2.0 | 2,023 | dotty | lampepfl | Scala | Code | 18 | 32 | class A1 {
def foo: Int = 123
}
class A2 {
def bar: Int = 42
}
| 28,280 |
https://github.com/iov-one/ponferrada/blob/master/packages/bierzo-wallet/src/utils/test/identities.ts | Github Open Source | Open Source | Apache-2.0 | 2,020 | ponferrada | iov-one | TypeScript | Code | 101 | 327 | import { Algorithm, ChainId, Identity, PubkeyBytes } from "@iov/bcp";
import { Ed25519, Random, Secp256k1 } from "@iov/crypto";
export async function createIdentities(): Promise<readonly Identity[]> {
const identities = new Array<Identity>();
// create ETH pub key
const ethChain = "ethereum-eip155-5777" as Chai... | 4,002 |
https://github.com/old-mibmo/dv-multiplayer-mod/blob/master/DVMultiplayer/Patches/StopGamePauseInMenus.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | dv-multiplayer-mod | old-mibmo | C# | Code | 37 | 142 | using DVMultiplayer.Networking;
using HarmonyLib;
namespace DVMultiplayer.Patches
{
[HarmonyPatch(typeof(CanvasSpawner), "Open", new[] { typeof(MenuScreen), typeof(bool) })]
class StopGamePauseInMenus
{
static void Prefix(MenuScreen screenToOpen, ref bool pauseGame)
{
if(Networ... | 25,692 |
https://github.com/pskopek/wildfly-elytron/blob/master/src/test/java/org/wildfly/security/util/AbstractAlgorithmParametersSpiImplTest.java | Github Open Source | Open Source | Apache-2.0 | null | wildfly-elytron | pskopek | Java | Code | 273 | 746 | /*
* JBoss, Home of Professional Open Source.
* Copyright 2016 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* 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 Licen... | 17,141 |
https://github.com/EndGameGl/.NetBungieAPI/blob/master/DotNetBungieAPI.Generated/Models/Applications/Application.cs | Github Open Source | Open Source | MIT | 2,021 | .NetBungieAPI | EndGameGl | C# | Code | 278 | 647 | using System.Text.Json.Serialization;
namespace DotNetBungieAPI.Generated.Models.Applications;
public sealed class Application
{
/// <summary>
/// Unique ID assigned to the application
/// </summary>
[JsonPropertyName("applicationId")]
public int ApplicationId { get; init; }
/// <summary... | 10,551 |
https://github.com/asannasi/graphics/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,020 | graphics | asannasi | Ignore List | Code | 13 | 72 | /.vs
/Debug
/packages
/Release
/x64
/packages.config
/Graphics.vcxproj.user
/Graphics.vcxproj.filters
/Graphics.vcxproj
/Graphics.sln
/a.obj
/sphere.obj
/magnolia.obj | 49,074 |
https://github.com/hassan-codes/todoist/blob/master/routes/web.php | Github Open Source | Open Source | MIT | 2,021 | todoist | hassan-codes | PHP | Code | 57 | 177 | <?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\TodoItemController;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your applic... | 7,831 |
https://github.com/Talberon/solstandard/blob/master/SolStandard/Entity/Unit/Actions/ICommandAction.cs | Github Open Source | Open Source | RSA-MD | 2,022 | solstandard | Talberon | C# | Code | 9 | 27 | namespace SolStandard.Entity.Unit.Actions
{
public interface ICommandAction
{
}
} | 32,769 |
https://github.com/villeheikkila/tastice/blob/master/tastice-frontend/src/scenes/Profile/RatingChart.tsx | Github Open Source | Open Source | MIT | 2,019 | tastice | villeheikkila | TypeScript | Code | 110 | 336 | import { Typography } from '@material-ui/core';
import React, { useState } from 'react';
import { Bar, BarChart, Cell, XAxis } from 'recharts';
interface RatingChartProps {
ratings: any;
setRatingFilter: any;
}
export const RatingChart = ({ ratings, setRatingFilter }: RatingChartProps): JSX.Element => {
co... | 16,679 |
https://github.com/sahandnayebaziz/FormUIKit/blob/master/FormUIKit/ExampleFormTableViewController.swift | Github Open Source | Open Source | MIT | 2,018 | FormUIKit | sahandnayebaziz | Swift | Code | 543 | 1,666 | //
// ExampleFormTableViewController.swift
// FormUIKit
//
// Created by Sahand on 10/18/17.
// Copyright © 2017 Sahand. All rights reserved.
//
import UIKit
class ExampleFormTableViewController: FormTableViewController, UIPickerViewDataSource {
override func viewDidLoad() {
super.viewDidLoad()
... | 9,663 |
https://github.com/alekskos/react-gradual-upgrade-demo/blob/master/src/store.js | Github Open Source | Open Source | MIT | 2,022 | react-gradual-upgrade-demo | alekskos | JavaScript | Code | 88 | 154 | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import {createStore} from 'redux';
function reducer(state = 0, action) {
switch (action.type) {
case 'increment':
ret... | 34,826 |
https://github.com/mitheelgajare/Online-Examination-System/blob/master/src/components/HomePageNav.js | Github Open Source | Open Source | MIT | null | Online-Examination-System | mitheelgajare | JavaScript | Code | 139 | 400 | import React, { useState, useEffect } from "react";
import { Link } from "react-router-dom";
const HomePageNav = ({ select }) => {
const [currentUser, setCurrentUser] = useState(
sessionStorage.getItem("OES-CU")
);
return (
<div className="navbar">
<div className="userName">
<div className=... | 14,043 |
https://github.com/readthedocs/readthedocs.org/blob/master/readthedocs/audit/migrations/0001_initial.py | Github Open Source | Open Source | MIT | 2,023 | readthedocs.org | readthedocs | Python | Code | 188 | 970 | # Generated by Django 2.2.24 on 2021-07-29 18:34
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django_extensions.db.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
("projects", "0080_historicalproject")... | 32,734 |
https://github.com/rakasijosh/example-app/blob/master/resources/views/layout/footer.blade.php | Github Open Source | Open Source | MIT | null | example-app | rakasijosh | PHP | Code | 289 | 1,404 | <!-- start footer area -->
<footer class="footer-area-content">
<div class="container">
<div class="footer-wrapper style-3">
<div class="type-1">
<div class="footer-columns-entry">
<div class="row">
<div... | 18,902 |
https://github.com/vanttec/vct_i2c/blob/master/include/vcp_messages.hpp | Github Open Source | Open Source | MIT | null | vct_i2c | vanttec | C++ | Code | 160 | 580 | #ifndef VCP_MESSAGES_H
#define VCP_MESSAGES_H
#include <stdint.h>
const uint8_t VCT_DATAFRAME_LEN = 8;
const uint8_t VCT_MAX_PAXLOAD_LEN = 6;
const uint8_t DATA_START_BYTE = 2;
// VCT Message Identifier Enum
typedef enum : uint8_t
{
L_THRUSTER_CTRL_ID = 0,
R_THRUSTER_CTRL_ID = 1,
LE... | 40,611 |
https://github.com/kemmis/cydia.kemmis.info/blob/master/src/CydiaRepo.Web/Views/_ViewImports.cshtml | Github Open Source | Open Source | CC0-1.0 | 2,021 | cydia.kemmis.info | kemmis | C# | Code | 7 | 40 | @using CydiaRepo.Web
@using CydiaRepo.Web.Models
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
| 48,541 |
https://github.com/SamiAyed/SAuth/blob/master/helpers/auth.js | Github Open Source | Open Source | MIT | 2,021 | SAuth | SamiAyed | JavaScript | Code | 81 | 298 | class SAuth {
constructor(config) {
this.config = config;
this.drivers = {};
}
_availableDrivers() {
return ['facebook', 'twitter', 'google'];
}
_driversWithRequiredConfig() {
return ['facebook', 'twitter'];
}
driver(driverName) {
this.driverName = driverName;
if (!this._availa... | 19,714 |
https://github.com/SmBe19/slide/blob/master/template/include/common.cpp | Github Open Source | Open Source | MIT | null | slide | SmBe19 | C++ | Code | 229 | 595 | #include <bits/stdc++.h>
#define FOR(i,n) for(int i = 0; i < (n); i++)
#define FORS(i,s,n) for(int i = (s); i < (n); i++)
#define IN(...) lli __VA_ARGS__; input(__VA_ARGS__)
#define INT(T, ...) T __VA_ARGS__; input(__VA_ARGS__)
#define INV(v, n) vi v(n); FOR(iii, n) { cin >> v[iii]; } while(0)
#define ALL(x) x.begin()... | 10,461 |
https://github.com/nu50218/go-samples/blob/master/slides/snippets/test.sh | Github Open Source | Open Source | Apache-2.0 | 2,020 | go-samples | nu50218 | Shell | Code | 11 | 57 | #!/bin/bash
set -ex
export GOOGLE_APPLICATION_CREDENTIALS="$PWD/../application_credentials.json";
export GOPATH="$PWD"
go test -v ./...
| 28,399 |
https://github.com/noironetworks/aci-containers/blob/master/pkg/hostagent/ovs.go | Github Open Source | Open Source | Apache-2.0 | 2,023 | aci-containers | noironetworks | Go | Code | 1,733 | 6,739 | // Copyright 2016,2017 Cisco Systems, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ... | 26,183 |
https://github.com/x-chuiao/ppms/blob/master/src/main/java/top/xchuiao/ppms/controller/AccountController.java | Github Open Source | Open Source | MIT | 2,020 | ppms | x-chuiao | Java | Code | 252 | 1,213 | package top.xchuiao.ppms.controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import sun.rmi.runtime.Log;
import top.... | 40,529 |
https://github.com/saalk/cards/blob/master/server/src/main/help/applyextra/commons/model/financialdata/Finance.java | Github Open Source | Open Source | MIT | null | cards | saalk | Java | Code | 41 | 210 | package applyextra.commons.model.financialdata;
import applyextra.commons.model.Loan;
import applyextra.commons.model.SourceOfIncome;
import java.math.BigDecimal;
import java.util.List;
public interface Finance {
SourceOfIncome getSourceOfIncome();
BigDecimal getMonthlyNetIncome();
Boolean getIncomeFu... | 28,193 |
https://github.com/durul/Continuous-Delivery-for-Mobile-with-fastlane/blob/master/ReadingList/ReadingListServerRecord.swift | Github Open Source | Open Source | MIT | 2,018 | Continuous-Delivery-for-Mobile-with-fastlane | durul | Swift | Code | 153 | 341 | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
import Foundation
struct ReadingListServerRecord {
let serverMetadata: ReadingListServerMetadata?
let ur... | 30,929 |
https://github.com/rreusser/plotly-standalone-mock-viewer/blob/master/lib/dummy.js | Github Open Source | Open Source | MIT | 2,021 | plotly-standalone-mock-viewer | rreusser | JavaScript | Code | 51 | 65 | // This file exists only because budo does not accept a dynamic stream input
// for the entry point. Instead, we have to pass it this dummy file to get
// browserify working, then use a plugin to add dynamic content that references
// and bundles the correct plotly.js source location.
| 29,045 |
https://github.com/jcentino/freecodecamp/blob/master/views/layout.jade | Github Open Source | Open Source | MIT, Unlicense | null | freecodecamp | jcentino | null | Spoken | 50 | 429 | doctype html
html
head
script(src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js")
link(rel='shortcut icon', href='https://s3.amazonaws.com/freecodecamp/favicon.ico')
include partials/meta
title #{title} | Free Code Camp
meta(charset='utf-8')
meta(http-equiv='X-UA-Compatible', con... | 24,325 |
https://github.com/ch-plattner/witchcraft-go-server/blob/master/vendor/github.com/palantir/pkg/datetime/go.mod | Github Open Source | Open Source | BSD-3-Clause, Apache-2.0 | 2,020 | witchcraft-go-server | ch-plattner | Go Module | Code | 7 | 41 | module github.com/palantir/pkg/datetime
go 1.13
require github.com/stretchr/testify v1.4.0
| 43,831 |
https://github.com/gitter-badger/spot-framework/blob/master/spot-core/src/main/java/io/spotnext/core/infrastructure/interceptor/ItemValidateInterceptor.java | Github Open Source | Open Source | Apache-2.0 | null | spot-framework | gitter-badger | Java | Code | 67 | 160 | package io.spotnext.core.infrastructure.interceptor;
import io.spotnext.core.infrastructure.exception.ModelValidationException;
import io.spotnext.core.types.Item;
public interface ItemValidateInterceptor<T extends Item> extends ItemInterceptor<T> {
/**
* The given item has not been saved by the the persistence la... | 1,128 |
https://github.com/mc-societies/societies/blob/master/src/main/java/org/societies/sieging/wager/EmptyWager.java | Github Open Source | Open Source | WTFPL | 2,015 | societies | mc-societies | Java | Code | 47 | 149 | package org.societies.sieging.wager;
import org.societies.api.sieging.Wager;
import org.societies.groups.group.Group;
import java.util.UUID;
/**
* Represents a EmptyWager
*/
public class EmptyWager implements Wager {
@Override
public UUID getUUID() {
return null;
}
@Override
public boo... | 51,402 |
https://github.com/pawanrao100/astro/blob/master/app/Http/Controllers/HomeController.php | Github Open Source | Open Source | MIT | null | astro | pawanrao100 | PHP | Code | 691 | 3,042 | <?php
namespace App\Http\Controllers;
use App\Models\Setting;
use App\Models\Menu;
use App\Models\Slider;
use App\Models\Project;
use App\Models\Service;
use App\Models\Post;
use App\Models\Testimonial;
use App\Models\Member;
use App\Models\Language;
use App\Models\Pricing;
use App\Models\PricingSetting;
use App\Model... | 19,956 |
https://github.com/105491/jianyiwang/blob/master/src/js/list.js | Github Open Source | Open Source | MIT | null | jianyiwang | 105491 | JavaScript | Code | 374 | 2,404 | //下拉菜单
selectMenu('jianyi',2);
//回到顶部
ScrollToTOP('ad_top',1);
//获取cookic,欢迎来到首页
function delcookie(){
var name = Cookie.get('user');
if(name){
$('.top_right ul li:last').html('欢迎 '+'<a style="cursor:pointer;">'+name+'</a>'+' 来到我的首页'+'<a style="cursor:pointer;color:blue;" id="exit">退出</a>');
}else{
$('... | 40,327 |
https://github.com/dimagi/commcare-hq/blob/master/corehq/apps/accounting/migrations/0041_auto_20190130_1709.py | Github Open Source | Open Source | BSD-3-Clause | 2,023 | commcare-hq | dimagi | Python | Code | 32 | 136 | # Generated by Django 1.11.16 on 2019-01-30 17:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounting', '0040_auto_20181002_1721'),
]
operations = [
migrations.AlterField(
model_name='billingaccount',
name... | 49,354 |
https://github.com/AnyMMColque/farmacy/blob/master/resources/js/app.js | Github Open Source | Open Source | MIT | null | farmacy | AnyMMColque | JavaScript | Code | 12 | 52 | require('./bootstrap');
require('./map');
require('./mapedit');
require('./dinamicMap');
import Alpine from 'alpinejs';
window.Alpine = Alpine;
Alpine.start();
| 42,580 |
https://github.com/t3dbrida/VTK/blob/master/IO/EnSight/Testing/Python/EnSightCompound.py | Github Open Source | Open Source | BSD-3-Clause | 2,019 | VTK | t3dbrida | Python | Code | 103 | 423 | #!/usr/bin/env python
import vtk
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# create a rendering window and renderer
ren1 = vtk.vtkRenderer()
renWin = vtk.vtkRenderWindow()
renWin.AddRenderer(ren1)
renWin.StereoCapableWindowOn()
iren = vtk.vtkRenderWindowInteractor()
iren.SetRenderWindow... | 16,636 |
https://github.com/centos-yocto/meta-centos/blob/master/recipes-core/systemd/centos/0090-rule-syntax-check-allow-PROGRAM-as-an-assignment.patch | Github Open Source | Open Source | MIT | null | meta-centos | centos-yocto | null | Spoken | 149 | 736 | From 1dd326b6dd0a23d1a9ee1c567962c6d5d4ef03ca Mon Sep 17 00:00:00 2001
From: Jan Synacek <jsynacek@redhat.com>
Date: Wed, 30 Jan 2019 12:22:41 +0100
Subject: [PATCH] rule-syntax-check: allow PROGRAM as an assignment
(cherry picked from commit ed2dc503da57b0110819563e0d1c85d023435e07)
---
test/rule-syntax-check.py | 5... | 48,705 |
https://github.com/FirebirdSQL/firebird-qa/blob/master/tests/bugs/core_4081_test.py | Github Open Source | Open Source | MIT | 2,023 | firebird-qa | FirebirdSQL | Python | Code | 82 | 246 | #coding:utf-8
"""
ID: issue-4409
ISSUE: 4409
TITLE: Regression: Built-in functions and subselect no longer supported in "update or insert" value list
DESCRIPTION:
JIRA: CORE-4081
FBTEST: bugs.core_4081
"""
import pytest
from firebird.qa import *
db = db_factory()
test_script = """
... | 44,651 |
https://github.com/corda/bank-in-a-box/blob/master/clients/FrontEnd/bank-in-a-box/src/components/AccountRecurringPayments/AccountRecurringPayments.tsx | Github Open Source | Open Source | Apache-2.0 | 2,020 | bank-in-a-box | corda | TSX | Code | 457 | 1,785 | import { DateTimePicker, MuiPickersUtilsProvider } from '@material-ui/pickers';
import { Fade, Paper } from '@material-ui/core';
import React, { useCallback, useState } from 'react';
import { RecurringPayment, RedirectWithRecurringPayment, SortOrder } from '../../store/types';
import { RecurringPaymentsSortFields, getR... | 37,568 |
https://github.com/AmirBenAmara/GestionPresenceSalaires/blob/master/src/EmployeeBundle/Controller/PresenceController.php | Github Open Source | Open Source | MIT | 2,021 | GestionPresenceSalaires | AmirBenAmara | PHP | Code | 715 | 3,205 | <?php
namespace EmployeeBundle\Controller;
use EmployeeBundle\Entity\Week;
use EmployeeBundle\Entity\Salaire;
use EmployeeBundle\Entity\Presence;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
/**
* Presence contr... | 51,030 |
https://github.com/dbosque/Stub/blob/master/dBosque.Stub.Server.WebApi.Configuration/Model/MatchInstance.cs | Github Open Source | Open Source | Apache-2.0 | null | Stub | dbosque | C# | Code | 62 | 169 | using Newtonsoft.Json;
using System.Collections.Generic;
using System.Linq;
namespace dBosque.Stub.Server.WebApi.Configuration.Model
{
/// <summary>
/// A specific instance with value for a xpath/groupname
/// </summary>
public class MatchInstance : Match
{
/// <summary>
///
... | 16,630 |
https://github.com/Drivemode/TimberLorry/blob/master/timberlorry/src/main/java/com/drivemode/timberlorry/buffer/BufferResolver.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | TimberLorry | Drivemode | Java | Code | 181 | 411 | package com.drivemode.timberlorry.buffer;
import com.drivemode.timberlorry.payload.Payload;
import com.drivemode.timberlorry.payload.Record;
import com.drivemode.timberlorry.payload.Serializer;
import java.util.List;
/**
* BufferResolver is a bridge class to a buffer storage like {@link android.content.ContentResol... | 35,269 |
https://github.com/birdfishdrumn/gatsby-shopify-shop/blob/master/src/components/CartContents/styles.js | Github Open Source | Open Source | 0BSD | 2,021 | gatsby-shopify-shop | birdfishdrumn | JavaScript | Code | 154 | 661 | import styled from "styled-components";
export const CartHeader = styled.div `
display:grid;
grid-template-columns:2fr 1fr 1fr 0.5fr 1fr 40px;
font-weight:bold;
border-bottom: 1px solid black;
>div{
padding:8px;
&:first-child{
text-align:center;
}
}
@media(max-width:767px) {
>div{
display:none;
}
}
`... | 12,091 |
https://github.com/MetaVai/LinaEngine/blob/master/Sandbox/include/FPSDemo/FPSDemoLevel.hpp | Github Open Source | Open Source | MIT | 2,020 | LinaEngine | MetaVai | C++ | Code | 282 | 707 | /*
This file is a part of: Lina Engine
https://github.com/inanevin/LinaEngine
Author: Inan Evin
http://www.inanevin.com
Copyright (c) [2018-2020] [Inan Evin]
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 ... | 13,830 |
https://github.com/LLNL/fudge/blob/master/fudge/reactions/fissionComponent.py | Github Open Source | Open Source | BSD-3-Clause, LicenseRef-scancode-unknown-license-reference | 2,023 | fudge | LLNL | Python | Code | 62 | 146 | # <<BEGIN-copyright>>
# Copyright 2022, Lawrence Livermore National Security, LLC.
# See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: BSD-3-Clause
# <<END-copyright>>
"""
This module contains the fissionComponent class
"""
from . import base as baseModule
class FissionComponent(baseModule... | 7,680 |
https://github.com/termux/termux-packages/blob/master/packages/csh/build.sh | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause | 2,023 | termux-packages | termux | Shell | Code | 43 | 399 | TERMUX_PKG_HOMEPAGE=https://packages.debian.org/sid/csh
TERMUX_PKG_DESCRIPTION="C Shell with process control from 3BSD"
TERMUX_PKG_LICENSE="BSD 3-Clause"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=20110502
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://deb.debian.org/debian/pool/main/c/csh/csh_${TERMUX_PKG_VER... | 19,453 |
https://github.com/Ynakatsuka/g2net-gravitational-wave-detection/blob/master/src/misc/features/create_feets.py | Github Open Source | Open Source | BSD-2-Clause | 2,021 | g2net-gravitational-wave-detection | Ynakatsuka | Python | Code | 119 | 588 | import multiprocessing
import os
import warnings
import feets
import hydra
import pandas as pd
from base import BaseG2NetFeatureEngineeringDataset, G2NetFeatureEngineering
from omegaconf import DictConfig
class FeatsFeatures(BaseG2NetFeatureEngineeringDataset):
def _engineer_features(self, signals):
fs =... | 43,725 |
https://github.com/DRKV333/ShopExpander/blob/master/ShopExpander/Providers/CircularBufferProvider.cs | Github Open Source | Open Source | MIT | 2,021 | ShopExpander | DRKV333 | C# | Code | 144 | 357 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Terraria;
namespace ShopExpander.Providers
{
public class CircularBufferProvider : IShopPageProvider
{
private readonly Item[] items = new Item[ShopAggregator.FrameCapacity];
... | 2,854 |
https://github.com/fredrikekre/RedPitayaDAQServer/blob/master/src/client/julia/docs/make.jl | Github Open Source | Open Source | MIT | 2,021 | RedPitayaDAQServer | fredrikekre | Julia | Code | 81 | 299 | using RedPitayaDAQServer, Documenter
makedocs(
format = Documenter.HTML(prettyurls = false),
modules = [RedPitayaDAQServer],
sitename = "RP DAQ Server",
authors = "Tobias Knopp, Jonas Beuke, Matthias Gräser",
pages = [
"Home" => "index.md",
"Installation" => "installation.md",
... | 27,819 |
https://github.com/BillGR17/Dots/blob/master/WorkPlace/Scripts/helpers/proton | Github Open Source | Open Source | Unlicense | 2,023 | Dots | BillGR17 | Python | Code | 717 | 2,215 | #!/usr/bin/env python
import os
import sys
import shutil
PROTON_PREFIX = ""
PROTON_PATH = ""
def ifError(target, msg, code):
if not target:
print(msg)
sys.exit(code)
def inputLoop(msg, inp_min, inp_max):
loop = True
r_value = 0
while (loop):
userInput = int(input(msg))
... | 25,040 |
https://github.com/sillywalk/grazz/blob/master/llvm-7.0.0.src/test/CodeGen/PowerPC/named-reg-alloc-r0.ll | Github Open Source | Open Source | Apache-2.0 | 2,022 | grazz | sillywalk | LLVM | Code | 70 | 203 | ; RUN: not llc < %s -mtriple=powerpc-apple-darwin 2>&1 | FileCheck %s
; RUN: not llc < %s -mtriple=powerpc-unknown-linux-gnu 2>&1 | FileCheck %s
; RUN: not llc < %s -mtriple=powerpc64-unknown-linux-gnu 2>&1 | FileCheck %s
define i32 @get_reg() nounwind {
entry:
; FIXME: Include an allocatable-specific error message
; ... | 34,345 |
https://github.com/bpedziwiatr/Datavers-gen-cli/blob/master/DataverseGen.Core/Extensions/MetadataNamingExtensions.cs | Github Open Source | Open Source | MIT | 2,021 | Datavers-gen-cli | bpedziwiatr | C# | Code | 646 | 2,097 | using System;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Xml;
using DataverseGen.Core.Metadata;
using Microsoft.Xrm.Sdk.Metadata;
namespace DataverseGen.Core.Extensions
{
public static class MetadataNamingExtensions
{
private st... | 41,291 |
https://github.com/nginx/nginx-tests/blob/master/h3_server_tokens.t | Github Open Source | Open Source | BSD-2-Clause | 2,023 | nginx-tests | nginx | Perl | Code | 385 | 1,285 | #!/usr/bin/perl
# (C) Andrey Zelenkov
# (C) Nginx, Inc.
# Tests for HTTP/3 protocol with server_tokens directive.
###############################################################################
use warnings;
use strict;
use Test::More;
BEGIN { use FindBin; chdir($FindBin::Bin); }
use lib 'lib';
use Test::Nginx;
... | 20,713 |
https://github.com/vryleev/Mapsui/blob/master/Mapsui.Rendering.Skia/Extensions/SKColorExtensions.cs | Github Open Source | Open Source | MIT, LGPL-2.0-or-later | 2,023 | Mapsui | vryleev | C# | Code | 26 | 84 | using Mapsui.Styles;
using SkiaSharp;
namespace Mapsui.Rendering.Skia.Extensions;
public static class SKColorExtensions
{
public static Color ToMapsui(this SKColor color)
{
return new Color(color.Red, color.Green, color.Blue, color.Alpha);
}
}
| 23,303 |
https://github.com/dayvar14/grafana-dynamictext-panel/blob/master/website/sidebars.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | grafana-dynamictext-panel | dayvar14 | JavaScript | Code | 37 | 121 | module.exports = {
someSidebar: [
{
type: 'doc',
id: 'introduction',
},
{
type: 'doc',
id: 'installation',
},
{
type: 'doc',
id: 'options',
},
{
type: 'doc',
id: 'helpers',
},
{
type: 'doc',
id: 'recipes',
},
],
};
| 52,021 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.