code stringlengths 3 1.05M | repo_name stringlengths 4 116 | path stringlengths 3 942 | language stringclasses 30
values | license stringclasses 15
values | size int32 3 1.05M |
|---|---|---|---|---|---|
#ifndef _STDINT_H
#define _STDINT_H
#include <features.h>
#include <inttypes.h>
typedef int8_t int_fast8_t;
typedef int64_t int_fast64_t;
typedef int8_t int_least8_t;
typedef int16_t int_least16_t;
typedef int32_t int_least32_t;
typedef int64_t int_least64_t;
typedef uint8_t uint_fast8_t;
typedef uint64_t uint_f... | wquist/Horizon-Microkernel | lib/libh/include/stdint.h | C | gpl-3.0 | 469 |
/*
* This class was automatically generated with
* <a href="http://www.castor.org">Castor 1.1.2.1</a>, using an XML
* Schema.
* $Id$
*/
package com.netxforge.oss2.config.linkd.descriptors;
//---------------------------------/
//- Imported classes and packages -/
//---------------------------------/
import c... | dzonekl/oss2nms | plugins/com.netxforge.oss2.config.model/src/com/netxforge/oss2/config/linkd/descriptors/VlansDescriptor.java | Java | gpl-3.0 | 5,982 |
/*
Copyright (C) 2016 PencilBlue, LLC
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is... | Whatsit2yaa/vast-tundra-84597 | include/service/media/renderers/slideshare_media_renderer.js | JavaScript | gpl-3.0 | 10,832 |
package net.BukkitPE.block;
import net.BukkitPE.item.Item;
import net.BukkitPE.item.ItemTool;
import net.BukkitPE.level.Level;
import net.BukkitPE.math.AxisAlignedBB;
import net.BukkitPE.math.Vector3;
import net.BukkitPE.utils.BlockColor;
/**
* Created on 2015/12/2 by xtypr.
* Package net.BukkitPE.block in project ... | BukkitPE/BukkitPE | src/main/java/net/BukkitPE/block/BlockFarmland.java | Java | gpl-3.0 | 2,452 |
This method is used to authenticate an existing Telegram user. If the user needs to register an account, they should use [auth.signUp](#!/method/auth.signUp) to register their number with the system. | tjhorner/schema.tl | docs/methods/auth.signIn.md | Markdown | gpl-3.0 | 199 |
#ifndef AST__EXCEPTION__UNKNOWNIDENTIFIEREXCEPTION_H_
#define AST__EXCEPTION__UNKNOWNIDENTIFIEREXCEPTION_H_
#include <exception>
namespace AST { namespace Exception {
class UnknownIdentifierException: public std::exception {
std::string identifierName;
public:
UnknownIdentifierException() throw();
UnknownI... | svschub/Symbolix | src/AST/Exception/UnknownIdentifierException.h | C | gpl-3.0 | 565 |
# -*- test-case-name: twisted.web.test.test_web -*-
# Copyright (c) 2001-2009 Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Tests for L{twisted.web.static}.
"""
import os, re, StringIO
from zope.interface.verify import verifyObject
from twisted.internet import abstract, interfaces
from twisted.python.... | Donkyhotay/MoonPy | twisted/web/test/test_static.py | Python | gpl-3.0 | 53,951 |
/*
VectorRenderer
This class facilitates particle data vector rendering. Various vector types, defined in
Particle.h, are supported. All vectors are rendered using lines and an arrowhead that is
determined by the vector type. Color classification is also tied to the vector type, using
the gradient approa... | pongsakcu/particlevis | VectorRenderer.h | C | gpl-3.0 | 1,065 |
# bash-scripts
centos-router.sh - Script to run on centos router VM
ubuntu-client.sh - Script to run on ubuntu client VM
| ozaretskyi/bash-scripts | README.md | Markdown | gpl-3.0 | 121 |
=========
## Modular RESTful API Modeling Language
### Relevant Articles:
- [Modular RAML Using Includes, Libraries, Overlays and Extensions](http://www.baeldung.com/modular-raml-includes-overlays-libraries-extensions)
| Niky4000/UsefulUtils | projects/tutorials-master/tutorials-master/raml/modularization/README.md | Markdown | gpl-3.0 | 221 |
package com.mirrorlabs.filebrowser;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import android.app.ActivityManager;
import android.app.AlertDialog;
import android.app.ActivityManager.MemoryInfo;
import android.app.ActivityManager.RunningAppProcessInfo;
... | kshark27/UltraExplorer | filebrowserULTRA/src/com/mirrorlabs/filebrowser/ProcessManager.java | Java | gpl-3.0 | 24,569 |
<?php
if (_DEBUGMODE)
{
$creation_time = getmt() - script_start_time;
echo sprintf("<p/><hr/><p>Script took %1.0f ms for generation\n</p>", $creation_time);
}
?>
</body>
</html>
| stefaweb/XAMS-0.3.x | gui/footer.php | PHP | gpl-3.0 | 206 |
#include <string>
#include <vector>
#include "TProfesor.h"
TProfesor::TProfesor(std::string _strNombre, int _intCodigo) {
intCodigo = _intCodigo;
strNombre = _strNombre;
}
TProfesor::TProfesor(const char* _pchrNombre, int _intCodigo) {
intCodigo = _intCodigo;
strNombre = _pchrNombre;
}
void TProfesor::PutCostAsigP... | KarlHeitmann/PlanificacionHorarios | src/ae/eda/TProfesor.cpp | C++ | gpl-3.0 | 1,195 |
'------------------------------------------------------------------------------
' <auto-generated>
' This code was generated by a tool.
' Runtime Version:4.0.30319.17929
'
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
' </auto-generated>
'---... | samsitconsulting/TimeKeeper | ITT_Admin/ITT_Admin/Database1DataSet2.Designer.vb | Visual Basic | gpl-3.0 | 108,780 |
<?php
/**
* All law firms and agents have been assigned. Now a lifespan must be negotiated.
*/
class DisputeOpened extends DisputeDefaults implements DisputeStateInterface {
public function getStateDescription() {
return 'Negotiating lifespan.';
}
public function canOpenDispute() {
retu... | ChrisBAshton/smartresolution | webapp/core/model/dispute_states/DisputeStateDisputeOpened.php | PHP | gpl-3.0 | 416 |
/*
* Copyright 2018 <copyright holder> <email>
*
* 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 la... | robocomp/robocomp | libs/dsr/gui/viewers/graph_viewer/graph_node.cpp | C++ | gpl-3.0 | 12,408 |
# dca
Distance Covariance Analysis
This readme will be updated soon with a user-friendly way to run DCA!
Reference:
"Distance covariance analysis." BR Cowley, JD Semedo, A Zandvakili, A Kohn, MA Smith, BM Yu (*AISTATS*, pp. 242-251, 2017).
# Example code (Matlab)
```matlab
% DCA will identify a nonlinear interact... | BenjoCowley/dca | README.md | Markdown | gpl-3.0 | 741 |
#include "myhead.h"
int errcode=0;
void err_quit(const char *str)
{
switch(errcode){
case ERNO:
perror(str);
break;
default:
printf("err: %s\n",str);
}//switch
exit(1);
}//err_quit
| kamura098/echo-srv | errs.c | C | gpl-3.0 | 194 |
-- Table: public.eb_form_drafts
-- DROP TABLE public.eb_form_drafts;
CREATE TABLE public.eb_form_drafts
(
id SERIAL,
title text,
form_data_json text,
form_ref_id text,
form_data_id integer,
draft_type integer,
message text,
stack_trace text,
eb_signin_log_id integer,
is_submitted "char"... | ExpressBaseSystems/ExpressBase.Common | sqlscripts/pgsql/datadb/tablecreate/eb_form_drafts.sql | SQL | gpl-3.0 | 732 |
/*
DESCRIPTION:
This function is used for selecting the solutions from the combined population
*/
#pragma once
#include "dsc_file.h"
void nondomination_selection()
{
struct obj_array
{
int index;
double obj_1;
double obj_2;
double dist_crowd;
};
int cnt_1 = 0;
int cnt_2 = 0;
int cnt_3 = 0;
int cnt_4 = 0... | aramisw/DoNSA_nsga2 | DoNSA_nsga2/nondomination_selection.c | C | gpl-3.0 | 8,571 |
using System;
using System.Drawing;
using System.Windows.Forms;
using GradeTracker.Data;
namespace GradeTracker.Forms
{
public class CourseGradeableTasksForm : Form
{
Course course;
#region Form elements
private Button addNewTaskButton;
private DataGridView tasksGrid;
#endregion
/// <summary>
/// Ma... | baconbum/GradeTracker | GradeTracker/Forms/CourseGradeableTasksForm.cs | C# | gpl-3.0 | 4,165 |
/**
* \file
* Copyright 2014-2015 Benjamin Worpitz
*
* This file is part of alpaka.
*
* alpaka is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any ... | erikzenker/alpaka-examples | alpaka/include/alpaka/core/Fold.hpp | C++ | gpl-3.0 | 4,795 |
using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using CheezeMod.NPCs;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CheezeMod.Items.Weapons.Ratchet
{
public class LavaGun : ModItem
{
public override void SetDefaults()
{
item.damage = 5;
item.ra... | Cheezegami/Mod-Sources-Cheezes-Content-Pack | CheezeMod/Items/Weapons/Ratchet/LavaGun.cs | C# | gpl-3.0 | 2,175 |
<?php use_helper('Date', 'Text', 'I18N', 'myWidgets', 'enMessageBox'); ?>
<div class="page-header">
<h1><?php echo __('Usuários do sistema') ?></h1>
</div>
<?php if ($sf_request->hasParameter('name')) : ?>
<div class="msg alert"><?php echo __('Procurando pelo termo') ?> <strong>"<?php echo $sf_request->getParamet... | jeffersonmolleri/sesra | apps/adm/modules/users/templates/_list.php | PHP | gpl-3.0 | 2,540 |
##
## This file is part of the libopencm3 project.
##
## Copyright (C) 2009 Uwe Hermann <uwe@hermann-uwe.de>
##
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation, either version 3 of the License... | henryeherman/libopencm3 | examples/stm32/f1/obldc/led/Makefile | Makefile | gpl-3.0 | 832 |
/**
* This file is part of da2i-boggle.
*
* da2i-boggle 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 3 of the License, or
* (at your option) any later version.
*
* da2i-boggl... | ecattez/da2i-boggle | sources/boggle/gui/decorateur/DecorateurBouton.java | Java | gpl-3.0 | 1,109 |
package de.metalcon.imageServer.protocol;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import org.junit.Test;
import de.metalcon.imageStorageServer.protocol.ProtocolConstants;
import de.metalcon.imageStorageServer.protocol.read.... | Metalcon/imageStorageServer | src/test/java/de/metalcon/imageServer/protocol/ReadScaledRequestTest.java | Java | gpl-3.0 | 4,366 |
package tk.natallymp.ratingimages;
import android.content.Intent;
import android.net.Uri;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;
import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.ImageVie... | x2wing/android | RatingImages/app/src/main/java/tk/natallymp/ratingimages/MainActivity.java | Java | gpl-3.0 | 1,981 |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalnum.c :+: :+: :+: ... | bamill/fillit | lib/libft/src/ft_isalnum.c | C | gpl-3.0 | 1,003 |
"""
============================
``ctypes`` Utility Functions
============================
See Also
---------
load_library : Load a C library.
ndpointer : Array restype/argtype with verification.
as_ctypes : Create a ctypes array from an ndarray.
as_array : Create an ndarray from a ctypes array.
References
----------... | ruibarreira/linuxtrail | usr/lib/python2.7/dist-packages/numpy/ctypeslib.py | Python | gpl-3.0 | 14,076 |
/*
* NESASM NES Assembler
* Copyright (C) 2014 David Jolly
* ----------------------
*
* NESASM 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 3 of the License, or
* (at your option) any... | majestic53/nesasm | src/core/nasm_language_type.h | C | gpl-3.0 | 1,719 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="pt">
<head>
<!-- Generated by javadoc (version 1.7.0_09) on Mon Sep 16 13:13:38 BRT 2013 -->
<title>AudioBuffer</title>
<meta name="date" content="2013-09-16">
<link rel="stylesheet... | robsonsmartins/acaas | source/acaas.jboss7/AcaaSweb/WebContent/doc/java/com/robsonmartins/acaas/util/AudioBuffer.html | HTML | gpl-3.0 | 16,671 |
/* bwgQuery - implements the query side of bigWig. See bwgInternal.h for definition of file
* format. */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "options.h"
#include "sig.h"
#include "sqlNum.h"
#include "obscure.h"
#include "dystring.h"
#i... | CRG-Barcelona/libbeato | jkweb/bwgQuery.c | C | gpl-3.0 | 11,554 |
************************************************************************
*
* ReportParametersDIS.f:
*
* This subroutine reports the DIS parameters.
*
************************************************************************
subroutine ReportParametersDIS
*
implicit none
*
include "../commons/We... | scarrazza/apfel | src/DIS/ReportParametersDIS.f | FORTRAN | gpl-3.0 | 5,524 |
/*
* Platformer Game Engine by Wohlstand, a free platform for game making
* Copyright (c) 2014-2019 Vitaly Novichkov <admin@wohlnet.ru>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, ei... | Wohlhabend-Networks/PGE-Project | Editor/networking/engine_intproc.cpp | C++ | gpl-3.0 | 5,233 |
/* Copyright © 2018 Maksim Lukyanov
This file is part of Cross++ Game Engine.
Cross++ Game Engine 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 3 of the License, or
(at your option) any lat... | maxon887/Cross | Sources/Utils/Cubemap.cpp | C++ | gpl-3.0 | 2,855 |
using CP77.CR2W.Reflection;
using FastMember;
using static CP77.CR2W.Types.Enums;
namespace CP77.CR2W.Types
{
[REDMeta]
public class enteventsEntityResize : redEvent
{
[Ordinal(0)] [RED("extents")] public Vector3 Extents { get; set; }
public enteventsEntityResize(CR2WFile cr2w, CVariable parent, string name) :... | Traderain/Wolven-kit | CP77.CR2W/Types/cp77/enteventsEntityResize.cs | C# | gpl-3.0 | 355 |
package com.ernstlustig.faeries.jei.FaeryProducts;
import mezz.jei.api.IGuiHelper;
import mezz.jei.api.gui.IDrawable;
import mezz.jei.api.gui.IGuiItemStackGroup;
import mezz.jei.api.gui.IRecipeLayout;
import mezz.jei.api.recipe.IRecipeCategory;
import net.minecraft.client.Minecraft;
import net.minecraft.item.ItemStack... | davqvist/Faeries | src/main/java/com/ernstlustig/faeries/jei/FaeryProducts/FaeryProductsCategory.java | Java | gpl-3.0 | 2,053 |
using Aperture.Parser.HTML.Microsyntaxes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Aperture.Parser.HTML
{
/// <summary>
/// Case-sensitivity and string comparison.
/// </summary>
public static class StringComparisons ... | Pneumaticat/Aperture | Aperture.Parser/HTML/StringComparisons.cs | C# | gpl-3.0 | 3,096 |
<!DOCTYPE html>
<html xml:lang="en-GB" lang="en-GB" xmlns="http://www.w3.org/1999/xhtml">
<head lang="en-GB">
<title>Ross Gammon’s Family Tree - LONG, Herbert William</title>
<meta charset="UTF-8" />
<meta name ="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1" />
<meta ... | RossGammon/the-gammons.net | RossFamilyTree/ppl/9/b/d15f604bd5f3aa4b244366af1b9.html | HTML | gpl-3.0 | 15,493 |
<!DOCTYPE html>
<html xml:lang="en-GB" lang="en-GB" xmlns="http://www.w3.org/1999/xhtml">
<head lang="en-GB">
<title>Ross Gammon’s Family Tree - GAMMON, Samuel</title>
<meta charset="UTF-8" />
<meta name ="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1" />
<meta name ="... | RossGammon/the-gammons.net | RossFamilyTree/ppl/f/e/d15f60972b7257fb0d56e778eef.html | HTML | gpl-3.0 | 22,042 |
docker exec -it qrl-node bash -c "top -p $(pgrep python)"
| alfaluck/qrl-node-docker | tools/resources_usage.cmd | Batchfile | gpl-3.0 | 58 |
'''
TypeString is a core class that extends mimetypes
'''
import re
import os
import mimetypes
import magic
UNKNOWN_MIMETYPE = ('application/x-empty', 'application/octet-stream', 'text/plain')
class TypeString:
def __init__(self, s):
self.str = s
# Extract arguments
if ':' in s:
... | michaelpb/omnithumb | omnithumb/types/typestring.py | Python | gpl-3.0 | 2,012 |
require 'bibtex/bibliography'
require 'test/unit'
class TestBibliography < Test::Unit::TestCase
include BibTeX
def setup
@b = Bibliography.new
@foo01 = Entry.new(EntryType::Book, 'foo01')
@foo01.add_field :author, 'C. Doof'
@foo01.add_field :year, 2007
@foo01.add_field Field.new(:url, 'www.do... | nickg/rbib | bibtex/test_bibliography.rb | Ruby | gpl-3.0 | 1,361 |
<?php
namespace Keyword\Model;
use Keyword\Model\Base\KeywordI18n as BaseKeywordI18n;
class KeywordI18n extends BaseKeywordI18n
{
}
| thelia-modules/Keyword | Model/KeywordI18n.php | PHP | gpl-3.0 | 136 |
/* vsprintf with automatic memory allocation.
Copyright (C) 2002-2003 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1, or (at your... | rvega/morphasynth | vendors/pd-extended-0.43.4/externals/moocow/gfsm/gfsm/src/libgfsm/gnulib/vasprintf.h | C | gpl-3.0 | 2,140 |
/*
* https://github.com/WebKit/webkit/blob/main/Source/WebKit2/Shared/API/c/WKType.h
* Copyright (C) 2010 Apple Inc. 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 ... | kfix/MacPin | modules/WebKitPrivates/WKType.h | C | gpl-3.0 | 2,573 |
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="MetadataGenericContext.cs" company="">
//
// </copyright>
// <summary>
//
// </summary>
// ----------------------------------------------------------------------------------... | FrankLIKE/il2bc | PEAssemblyReader/MetadataGenericContext.cs | C# | gpl-3.0 | 7,903 |
namespace CSV_Analyzer_Pro {
partial class CheckUpdate {
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// ... | flaminggenius/CSVAnalyzerPro | CSV Analyzer Pro/CSV Analyzer Pro/CheckUpdate.Designer.cs | C# | gpl-3.0 | 3,238 |
<?php
/**
* @In the name of God!
* @author: Iman Moodi (Iman92) & Mohammad Sadgeh Dehghan Niri (MSDN)
* @email: info@apadanacms.ir
* @link: http://www.apadanacms.ir
* @license: http://www.gnu.org/licenses/
* @copyright: Copyright © 2012-2015 ApadanaCms.ir. All rights reserved.
* @Apadana CMS is a Free So... | Apadana/apadana-cms | engine/comments.class.php | PHP | gpl-3.0 | 13,685 |
#define WeaponNoSlot 0 // dummy weapon
#define WeaponSlotPrimary 1 // primary weapon
#define WeaponSlotHandGun 2 // handGun/sidearm
#define WeaponSlotSecondary 4 // secondary weapon // 4 in ArmA, not 16.
#define WeaponSlotHandGunItem 16 // sidearm/GL magazines // 16 in ArmA, not ... | Raspu86/acre2 | addons/sys_prc77/CfgWeapons.hpp | C++ | gpl-3.0 | 1,266 |
var structrectangle =
[
[ "height", "structrectangle.html#af460193d9a375b8e2813bf1fe6216cce", null ],
[ "ulx", "structrectangle.html#a4feece2ec58d909444613177ec67e2bc", null ],
[ "uly", "structrectangle.html#ac537f5c6afbda6ef42cc428540058ecb", null ],
[ "width", "structrectangle.html#a57a9b24a714057d8d2... | kipr/harrogate | shared/client/doc/structrectangle.js | JavaScript | gpl-3.0 | 346 |
#!/usr/bin/env python
# encoding: utf-8
from lewei import Cloud as lewei
CLOUDS = {
"lewei": lewei,
} | jt6562/mytvoc | clouds/__init__.py | Python | gpl-3.0 | 110 |
package com.blogger.web.rest.vm;
import com.blogger.service.dto.UserDTO;
import javax.validation.constraints.Size;
import java.time.ZonedDateTime;
import java.util.Set;
/**
* View Model extending the UserDTO, which is meant to be used in the user management UI.
*/
public class ManagedUserVM extends UserDTO {
... | arslanberk/Blogger | src/main/java/com/blogger/web/rest/vm/ManagedUserVM.java | Java | gpl-3.0 | 1,374 |
/* Copyright (C) 2017 Thomas Terry - All Rights Reserved
* You may use, distribute and modify this code under the
* terms of the GNU GPLv3 license, which unfortunately won't be
* written for another century.
*
* You should have received a copy of the GPLv3 license with
* this file. If not, please visit : gnu.org
... | thomasscottterry121/roguelike | src/screen.cc | C++ | gpl-3.0 | 1,795 |
/*
* ComponentStrategyRegistryAsComponentStrategyRegistryTest.java
* Copyright 2008-2013 Gamegineer contributors and others.
* All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Sof... | gamegineer/dev | main/table/org.gamegineer.table.core.impl.tests/src/org/gamegineer/table/internal/core/impl/ComponentStrategyRegistryAsComponentStrategyRegistryTest.java | Java | gpl-3.0 | 2,425 |
#ifndef UTILS_NETGEN_HPP
#define UTILS_NETGEN_HPP
#include "args.hpp"
#include "graph.hpp"
#include <iomanip>
#include <random>
#include <sstream>
/**
* Names the vertices.
*/
template<typename G>
void
name_vertices(G &g)
{
int count = 1;
int number = boost::num_vertices(g);
int width = int(log10(number)) +... | iszczesniak/availa | utils_netgen.hpp | C++ | gpl-3.0 | 2,206 |
/*
* (C) 2009-2014 see Authors.txt
*
* This file is part of WinnerMediaPlayer.
*
* WinnerMediaPlayer 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 3 of the License, or
* (at yo... | WinnerSoftLab/WinnerMediaPlayer | src/filters/renderer/SyncClock/stdafx.h | C | gpl-3.0 | 1,248 |
#include <iostream>
#include "tempi/nodefactory.h"
#include "tempi/internals.h"
#include "tempi/midi/midilibrary.h"
using namespace tempi;
bool check_midi_library()
{
NodeFactory factory;
midi::MidiLibrary lib;
lib.load(factory, "midi.");
if (! factory.hasType("midi.receive"))
{
std::cout... | aalex/ubuntu-tempi | tests/check_libraries.cpp | C++ | gpl-3.0 | 1,588 |
# -*- coding: utf-8 -*-
# home made test
# Sign convention for fiber sections.
from __future__ import division
import xc_base
import geom
import xc
from solution import predefined_solutions
from model import predefined_spaces
from materials import typical_materials
from postprocess import prop_statistics
import math
... | lcpt/xc | verif/tests/materials/fiber_section/test_fiber_section_sign_convention01.py | Python | gpl-3.0 | 7,833 |
# This Python file uses the following encoding: utf-8
"""autogenerated by genpy from actionlib/TestRequestActionGoal.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import actionlib.msg
import genpy
import actionlib_msgs.msg
import std_msgs.msg
class... | UnbDroid/robomagellan | Codigos/Raspberry/desenvolvimentoRos/devel/lib/python2.7/dist-packages/actionlib/msg/_TestRequestActionGoal.py | Python | gpl-3.0 | 12,401 |
/*
ChibiOS/RT - Copyright (C) 2006-2013 Giovanni Di Sirio
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 req... | mekatronik-achmadi/molina_daq_v1 | project/halconf.h | C | gpl-3.0 | 9,600 |
Bitrix 16.5 Business Demo = 687b7436ad938b390cdc1d9dea84c199
| gohdan/DFC | known_files/hashes/bitrix/modules/seo/lang/ru/options.php | PHP | gpl-3.0 | 61 |
% This is part of Analyse Starter CTU
% Copyright (c) 2014
% Laurent Claessens,Carlotta Donadello
% See the file fdl-1.3.txt for copying conditions.
\begin{exercice}\label{exoanalyseCTU-0009}
Nous considérons les fonctions suivante.
\begin{multicols}{3}
\begin{enumerate}
\item $f_1(x)=\ln(x)$ ;
\item $f_2(x)=... | LaurentClaessens/frtex | src/test/java/latex/mazhe_tex_test/exoanalyseCTU-0009.tex | TeX | gpl-3.0 | 860 |
/* GIMP - The GNU Image Manipulation Program
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
*
* gimpbycolorselecttool.c
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either ver... | MichaelMure/Gimp-Cage-Tool | app/tools/gimpbycolorselecttool.c | C | gpl-3.0 | 4,474 |
package org.duniter.elasticsearch.user.dao.group;
/*
* #%L
* Ğchange Pod :: ElasticSearch plugin
* %%
* Copyright (C) 2014 - 2017 EIS
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation... | ucoin-io/ucoinj | cesium-plus-pod-user/src/main/java/org/duniter/elasticsearch/user/dao/group/GroupCommentDao.java | Java | gpl-3.0 | 978 |
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle 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 3 of the License, or
// (at your option) any later version.
//
// Moodle... | andreyamin/moodlebites-dev-course | mod/pairwork/version.php | PHP | gpl-3.0 | 1,463 |
<?php
/**
* @package project
* @version 0.4.0.0
* @author Roman Konertz <konertz@open-lims.org>
* @copyright (c) 2008-2016 by Roman Konertz
* @license GPLv3
*
* This file is part of Open-LIMS
* Available at http://www.open-lims.org
*
* This program is free software;
* you can redistribute it an... | open-lims/open-lims | www/core/include/project/exceptions/project_permission_group_create.exception.class.php | PHP | gpl-3.0 | 1,137 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" co... | zeiss-microscopy/libCZI | Doc/html/classlib_c_z_i_1_1_i_czi_metadata-members.html | HTML | gpl-3.0 | 10,436 |
#pragma once
#include <afxwin.h>
class CMPCThemeStatic :
public CStatic
{
DECLARE_DYNAMIC(CMPCThemeStatic)
public:
CMPCThemeStatic();
virtual ~CMPCThemeStatic();
void setFileDialogChild(bool set) { isFileDialogChild = set; };
DECLARE_MESSAGE_MAP()
afx_msg void OnPaint();
af... | clsid2/mpc-hc | src/mpc-hc/CMPCThemeStatic.h | C | gpl-3.0 | 476 |
#pragma once
#include "CoreTypes.h"
#include "Templates/Invoke.h"
namespace Algo
{
/**
* Checks if every element in the range is truthy.
*
* @param Range The range to check.
*
* @return true if all the elements are truthy, false otherwise.
*/
template <typename RangeType>
inline bool AllOf(const RangeTyp... | Physwf/physwf-x-lab | x0/Include/Algo/AllOf.h | C | gpl-3.0 | 962 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="it">
<head>
<!-- Generated by javadoc (1.8.0_51) on Sun Sep 11 12:16:02 CEST 2016 -->
<title>ControlType</title>
<meta name="date" content="2016-09-11">
<link rel="stylesheet" type=... | Forlini91/Empire-Earth---DB-Editor | doc/constants/ControlType.html | HTML | gpl-3.0 | 25,034 |
/*
* @brief LPC5411X UART driver
*
* @note
* Copyright(C) NXP Semiconductors, 2015
* All rights reserved.
*
* @par
* Software that is described herein is for illustrative purposes only
* which provides customers with programming information regarding the
* LPC products. This software is supplied "A... | murat-o/weddingdress | sw/code/mcu/src/lpcopen/uart_5411x.h | C | gpl-3.0 | 33,708 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" co... | zeiss-microscopy/libCZI | Doc/html/classlib_c_z_i_1_1_lib_c_z_i_exception-members.html | HTML | gpl-3.0 | 4,698 |
#
# Copyright (C) 2018, 2020
# Smithsonian Astrophysical Observatory
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any ... | cxcsds/ciao-contrib | ciao_contrib/downloadutils.py | Python | gpl-3.0 | 22,858 |
var annotated_dup =
[
[ "AbstractHive", "classAbstractHive.html", "classAbstractHive" ],
[ "Colour", "classColour.html", "classColour" ],
[ "Environment", "classEnvironment.html", "classEnvironment" ],
[ "EventManager", "classEventManager.html", "classEventManager" ],
[ "EvoBeeExperiment", "classEvo... | tim-taylor/evobee | docs/html/annotated_dup.js | JavaScript | gpl-3.0 | 2,376 |
<div class='fossil-doc' data-title='nnslog - Name service facility'>
<style>
HTML {
background: #FFFFFF;
color: black;
}
BODY {
background: #FFFFFF;
color: black;
}
DIV.doctools {
margin-left: 10%;
margin-right: 10%;
}
DIV.doctools H1,DIV.doctools H2 {
margin-left: -5%;
}
... | donomii/svarmr | tcltk/share/doc/tcllib/tcllib/files/apps/nnslog.html | HTML | gpl-3.0 | 8,043 |
#!/usr/local/bin/perl
# ----------------------------------------------------------------------
# Script Initialization
my $old_fh = select(STDOUT);
$| = 1;
select($old_fh);
my $EASY = 10;
my $NORMAL = 6;
my $CHALLENGING = 4;
my $ac = scalar @ARGV;
my $usage = <<"END_OF_USAGE";
Usage:
$0 <1|2|3|4> <e... | madhukarbhat/scrappy | perl/multiply.pl | Perl | gpl-3.0 | 4,350 |
#region Copyright & License Information
/*
* Copyright 2007-2014 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation. For more information,
* see COP... | UberWaffe/OpenRA | OpenRA.Mods.RA/ServerTraits/MasterServerPinger.cs | C# | gpl-3.0 | 3,554 |
--
-- Type: TABLE; Owner: BIOMART; Name: BIO_DATA_DISEASE
--
CREATE TABLE "BIOMART"."BIO_DATA_DISEASE"
( "BIO_DATA_ID" NUMBER(18,0) NOT NULL ENABLE,
"BIO_DISEASE_ID" NUMBER(18,0) NOT NULL ENABLE,
"ETL_SOURCE" VARCHAR2(100 BYTE),
CONSTRAINT "BIO_DATA_DISEASE_PK" PRIMARY KEY ("BIO_DATA_ID", "BIO_DISEASE_ID")
USI... | thehyve/transmart-data | ddl/oracle/biomart/bio_data_disease.sql | SQL | gpl-3.0 | 1,015 |
#! /usr/bin/env bash
slice=/sys/fs/cgroup/cpuset/machine.slice
crm_cpus=$(/usr/sbin/crm node utilization $HOSTNAME show cpu|perl -ne '/value=(\d+)$/ && print $1')
server_cpus=$(grep -c ^proc /proc/cpuinfo)
server_cpus=$((server_cpus-1))
first_allowed_cpu=$(echo $server_cpus - $crm_cpus |bc)
/usr/bin/cluster_set_cp... | mgrzybek/ansible-ha-cluster | files/machine-slice-configuration.sh | Shell | gpl-3.0 | 521 |
<?php
namespace E4u\Application\Controller;
use E4u\Response\Response;
/**
* <code>
* $exception = new Controller\Redirect();
* throw $exception->setUrl('security/login');
* </code>
*/
class Redirect extends \Exception
{
protected $code = Response::STATUS_REDIRECT;
private $url;
public function s... | nataniel/e4u-framework | src/E4u/Application/Controller/Redirect.php | PHP | gpl-3.0 | 455 |
////////////////////////////////////////////////////////
//
// GEM - Graphics Environment for Multimedia
//
// tigital@mac.com
// ported from pete's_plugins
//
// Implementation file
//
// For information on usage and redistribution, and for a DISCLAIMER OF ALL
// WARRANTIES, see the file, "GEM.LICENSE.TERMS" in ... | rvega/morphasynth | vendors/pd-extended-0.43.4/externals/Gem/src/Pixes/pix_backlight.cpp | C++ | gpl-3.0 | 16,287 |
/*
WorldGuard2Secuboid: Convert from WorldGuard regions to Secuboid lands
Copyright (C) 2015 Tabinol
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your... | Tabinol/WorldGuard2Secuboid | src/main/java/me/tabinol/worldguard2secuboid/ParType.java | Java | gpl-3.0 | 820 |
1. Log in. Note the time. Log out and log back in after 2 minutes. Check that welcome panel info is correct.
[Automate Test on Travis_CI]
2. Check performance on the raisin bread dataset: make sure the dashboard page displays within 5 seconds or less.
[Manual Test]
| driusan/Loris | modules/dashboard/test/TestPlan.md | Markdown | gpl-3.0 | 272 |
#ifndef CITAR_MODEL_PRIVATE_HH
#define CITAR_MODEL_PRIVATE_HH
#include <iostream>
#include <map>
#include <string>
#include <memory>
#include <unordered_map>
#include <citar/util/NonCopyable.hh>
#include <citar/tagger/hmm/BiGram.hh>
#include <citar/tagger/hmm/TriGram.hh>
#include <citar/tagger/hmm/UniGram.hh>
name... | brianray/citar | src/tagger/hmm/ModelPrivate.hh | C++ | gpl-3.0 | 2,739 |
using LinqToVisualTree;
using System;
using System.Collections.Generic;
using System.Linq;
using Telegram.Td.Api;
using Unigram.Controls;
using Unigram.Navigation;
using Unigram.Navigation.Services;
using Unigram.Services;
using Unigram.Services.ViewService;
using Unigram.ViewModels;
using Unigram.ViewModels.Settings;... | UnigramDev/Unigram | Unigram/Unigram/Common/TLNavigationService.cs | C# | gpl-3.0 | 12,617 |
<?php
namespace AwsSdk2\Aws\CloudTrail;
use AwsSdk2\Aws\S3\S3Client;
use AwsSdk2\Guzzle\Common\Collection;
/**
* The `AwsSdk2\Aws\CloudTrail\LogRecordIterator` provides an easy way to iterate over log records from log files generated by
* AWS CloudTrail. CloudTrail log files contain data about your AWS API calls a... | EITIorg/eiti | public_html/sites/all/libraries/awssdk2/Aws/CloudTrail/LogRecordIterator.php | PHP | gpl-3.0 | 5,581 |
package com.example.lars.connector;
import android.content.ContentValues;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
/**
* Created by lars on 09.03.17.
*/
public class DBHelper extends SQLiteOpenHelper {
private static final ... | FBrand/MobileComputing2017 | AppDBConnection/DBHelper.java | Java | gpl-3.0 | 7,405 |
/*
This file is part of Octetoscope.
Copyright (C) 2013-2015 Octetoscope contributors (see /AUTHORS.txt)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... | SpecLad/Octetoscope | core/src/main/scala/ru/corrigendum/octetoscope/core/MoleculeBuilder.scala | Scala | gpl-3.0 | 2,108 |
/************************************
* AUTHOR: Divyansh Gaba *
* INSTITUTION: ASET, BIJWASAN *
************************************/
#include<bits/stdc++.h>
#define fast ios_base::sync_with_stdio(0); cin.tie(0);
#define F first
#define S second
#define PB push_back
#define MP make_pair
#define REP(i,a,b) for (in... | divyanshgaba/Competitive-Coding | Random Pair/main.cpp | C++ | gpl-3.0 | 1,044 |
/*
* Kontalk Android client
* Copyright (C) 2018 Kontalk Devteam <devteam@kontalk.org>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your optio... | 115ek/androidclient | app/src/main/java/org/kontalk/service/msgcenter/event/VersionRequest.java | Java | gpl-3.0 | 1,049 |
<?php
/**
* @file
* Definition of Drupal\entity_test\Entity\EntityTestRev.
*/
namespace Drupal\entity_test\Entity;
use Drupal\Core\Field\FieldDefinition;
use Drupal\entity_test\Entity\EntityTest;
/**
* Defines the test entity class.
*
* @EntityType(
* id = "entity_test_rev",
* label = @Translation("Test... | Ignigena/bethel-dashboard | core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTestRev.php | PHP | gpl-3.0 | 1,893 |
/* Heap management routines (including unexec) for GNU Emacs on Windows NT.
Copyright (C) 1994, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008 Free Software Foundation, Inc.
This file is part of GNU Emacs.
GNU Emacs is free software; you can redistribute it and/or modify
it under the terms... | tanakamura/meadow | src/w32heap.h | C | gpl-3.0 | 3,440 |
---
resource: true
categories: [Cool-Code]
title: Renaming enumerating
description: For a bunch of files, this code renames the file adding a number to the beginning of the filename.
---
```
c=1; for file in `ls -Utp | grep -v / | awk '{ print $9 }' `; do mv "$file" "$[c++]"-"$file"; done
```
| AAlvz/aalvz.github.io | _pages/cool_code/random.md | Markdown | gpl-3.0 | 298 |
import React, { PureComponent } from "react";
import PropTypes from "prop-types";
import { withTranslation } from "react-i18next";
import FormattedDate from "global/components/FormattedDate";
import classNames from "classnames";
import Authorize from "hoc/Authorize";
import Avatar from "global/components/avatar/index";... | ManifoldScholar/manifold | client/src/global/components/Annotation/Annotation/UserContent/Meta.js | JavaScript | gpl-3.0 | 3,870 |
/*
* Copyright (C) 2012 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | OmniEvo/android_frameworks_base | services/core/java/com/android/server/power/Notifier.java | Java | gpl-3.0 | 27,822 |
/*@import url(//fonts.googleapis.com/earlyaccess/droidarabicnaskh.css);
*/
@font-face {
font-family: 'Sahel';
src: url('../font/Sahel.eot');
src: url('../font/Sahel.eot?#iefix') format('embedded-opentype'), url('../font/Sahel.woff') format('woff'), url('../font/Sahel.ttf') format('truetype');
font-weight: normal;
... | jadijadi/snowcrash | theme/bookstrap/static/css/style.css | CSS | gpl-3.0 | 1,000 |
// ************************************************************************************************
//
// BornAgain: simulate and fit reflection and scattering
//
//! @file gui2/model/applicationmodels.cpp
//! @brief Implements class CLASS?
//!
//! @homepage http://www.bornagainproject.org
//! @license GN... | gpospelov/BornAgain | gui2/model/applicationmodels.cpp | C++ | gpl-3.0 | 4,964 |
<?php
$vars = Array(
// Simple
// Block
"A" => Array(
Array(
"B" => Array(
Array(
"ALLOWED" => "TRUE"
),
Array(
"ALLOWED" => "FALSE"
),
Array(
"ALLOWED" => "TRUE"
)
)
),
Array(
"B" => Array(
Array(
"ALLOWED... | neooblaster/Template | tests/data-validation2.php | PHP | gpl-3.0 | 468 |