code stringlengths 3 1.05M | repo_name stringlengths 4 116 | path stringlengths 4 991 | language stringclasses 9
values | license stringclasses 15
values | size int32 3 1.05M |
|---|---|---|---|---|---|
/*
* Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
* Copyright (C) 2004, 2005, 2006, 2008 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 source... | geminy/aidear | oss/qt/qt-everywhere-opensource-src-5.9.0/qtwebengine/src/3rdparty/chromium/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp | C++ | gpl-3.0 | 22,704 |
<?php
function generate_items_from_query()
{
$items = array();
$content;
if (!isset($_GET["eq"]))
$content = ";;;;;;;;;;;";
else
$content = $_GET["eq"];
try
{
$values = split(';', $content);
for ($i=0; $i < count($values); $i++)
{
$v... | doubotis/transmogrify | _code/utils/utils-parser.php | PHP | gpl-3.0 | 2,382 |
/*
* Copyright (c) 2017, Miguel Gamboa
*
* 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 dis... | isel-leic-mpd/mpd-2017-i41d | aula13-json/src/test/java/WeatherDomainTest.java | Java | gpl-3.0 | 3,152 |
#要注意 javascript 轉 python 語法差異
#document.getElementById -> doc[]
#module Math -> math
#Math.PI -> math.pi
#abs -> fabs
#array 可用 list代替
import math
import time
from browser import doc
import browser.timer
# 點類別
class Point(object):
# 起始方法
def __init__(self, x, y):
self.x = x
self.y = y
... | 2014c2g5/2014cadp | wsgi/local_data/brython_programs/brython_fourbar1.py | Python | gpl-3.0 | 11,960 |
/*
* #%L
* episodesmanager-services
*
* $Id$
* $HeadURL$
* %%
* Copyright (C) 2009 - 2010 Jean Couteau
* %%
* 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
... | kootox/episodes-manager | episodesmanager-services/src/main/java/org/kootox/episodesmanager/services/importExport/XMLWriter.java | Java | gpl-3.0 | 7,089 |
#include "simulation/Elements.h"
//#TPT-Directive ElementClass Element_PRTO PT_PRTO 110
Element_PRTO::Element_PRTO()
{
Identifier = "DEFAULT_PT_PRTO";
Name = "PRTO";
Colour = PIXPACK(0x0020EB);
MenuVisible = 1;
MenuSection = SC_SPECIAL;
Enabled = 1;
Advection = 0.0f;
AirDrag = 0.00f... | jacksonmj/Powder-Toy-Mods | src/simulation/elements/PRTO.cpp | C++ | gpl-3.0 | 5,973 |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package basicintast.util;
import org.antlr.v4.runtime.BaseErrorListener;
import org.antlr.v4.runtime.RecognitionException;
import org.... | wellingtondellamura/compilers-codes-samples | parsers/antlr/BasicIntAST/src/basicintast/util/ThrowingErrorListener.java | Java | gpl-3.0 | 1,023 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Управление общими сведениями о сборке осуществляется с помощью
// набора атрибутов. Измените значения этих атрибутов, чтобы изменить сведения,
// связанные со сборкой.
[assembly: AssemblyTitle("lexical")]
... | palexisru/pl2_rus | v01/pl2/lexical/lexical/Properties/AssemblyInfo.cs | C# | gpl-3.0 | 2,024 |
package net.diecode.killermoney.events;
import net.diecode.killermoney.objects.CCommand;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Player;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
public class KMCCommandExecutionEvent extends Event ... | diecode/KillerMoney | src/net/diecode/killermoney/events/KMCCommandExecutionEvent.java | Java | gpl-3.0 | 1,271 |
/**
Copyright:
2015/2016 Benjamin Aigner
developer.google.com
This file is part of AustrianPublicStream.
AustrianPublicStream 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 Licens... | benjaminaigner/AustrianPublicStream | app/src/main/java/systems/byteswap/publicstream/AppCompatPreferenceActivity.java | Java | gpl-3.0 | 3,612 |
#include "AsyncHTTPClient.h"
#include "../httprequest.h"
#include "../GlobalFuncs.h"
#include <comutil.h>
#include <winhttp.h>
AsyncHTTPClient::AsyncHTTPClient() :
m_url(""),
m_currentStatus(AsyncHTTPClient::HTTP_READY),
m_response(""),
m_responseCode(0)
{}
AsyncHTTPClient::~AsyncHTTPClient()
{
}
void... | zeriyoshi/LunaDLL | LunaDll/Misc/AsyncHTTPClient.cpp | C++ | gpl-3.0 | 4,828 |
/*
* lemonjuice - Java Template Engine.
* Copyright (C) 2009-2012 Manuel Tomis manuel@codegremlins.com
*
* This library 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... | mtomis/lemonjuice | src/com/codegremlins/lemonjuice/engine/EqualElement.java | Java | gpl-3.0 | 1,485 |
package br.net.ubre.lang.keyword.binary.relational;
import br.net.ubre.data.container.DataContainer;
import br.net.ubre.lang.data.literal.FalseStatement;
import br.net.ubre.lang.data.literal.TrueStatement;
import br.net.ubre.lang.statement.Statement;
/**
* COmpara se os valores das partes (esquerda e direita) são ig... | siviotti/ubre | ubre-core/src/main/java/br/net/ubre/lang/keyword/binary/relational/EqualsOperator.java | Java | gpl-3.0 | 895 |
/* PostMonster, universal HTTP automation tool
* Copyright (C) 2015 by Paul Artsishevsky <polter.rnd@gmail.com>
*
* This file is part of PostMonster.
*
* PostMonster 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 ... | PostMonster/postmonster | src/pluginregistry.cpp | C++ | gpl-3.0 | 3,715 |
/*
* A Command & Conquer: Renegade SSGM Plugin, containing all the single player mission scripts
* Copyright(C) 2017 Neijwiert
*
* 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 versio... | Neijwiert/C-C-Renegade-Mission-Scripts | Source/Single Player Scripts/M01_Nod_GuardTower_Tailgun_JDG.cpp | C++ | gpl-3.0 | 1,307 |
//: move/Nap.java
package pokepon.move;
import pokepon.enums.*;
import pokepon.pony.Pony;
import pokepon.battle.*;
/**
* Heal 50% of user's HP.
*
* @author silverweed
*/
public class Nap extends Move {
public Nap() {
super("Nap");
type = Type.NIGHT;
moveType = Move.MoveType.STATUS;
maxpp = pp = 10... | silverweed/pokepon | move/Nap.java | Java | gpl-3.0 | 1,192 |
package l2s.gameserver.ai;
import l2s.gameserver.model.Creature;
import l2s.gameserver.model.instances.NpcInstance;
import l2s.gameserver.model.instances.MonsterInstance;
/**
* @author Bonux
**/
public class SpecialTautiMonsters extends Fighter
{
public SpecialTautiMonsters(NpcInstance actor)
{
super(actor);
}
... | pantelis60/L2Scripts_Underground | gameserver/src/main/java/l2s/gameserver/ai/SpecialTautiMonsters.java | Java | gpl-3.0 | 1,320 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import time
timeformat='%H:%M:%S'
def begin_banner():
print ''
print '[*] swarm starting at '+time.strftime(timeformat,time.localtime())
print ''
def end_banner():
print ''
print '[*] swarm shutting down at '+time.strftime(timeformat,time.localtime()... | Arvin-X/swarm | lib/utils/banner.py | Python | gpl-3.0 | 334 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | Nobledez/MineKampf | MinecraftUSkinEditor/Properties/AssemblyInfo.cs | C# | gpl-3.0 | 1,452 |
package com.healthcare.db.client;
import com.healthcare.db.model.Itemmapping;
import com.healthcare.db.model.ItemmappingExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface ItemmappingMapper {
/**
* This method was generated by MyBatis Generator. This method corre... | punyararj/his-interface-core | HISIF_CORE/src/com/healthcare/db/client/ItemmappingMapper.java | Java | gpl-3.0 | 1,934 |
<?php
namespace Cms\Dao\Import;
use Cms\Dao\Import as Dao;
use Cms\Dao\Doctrine as DoctrineBase;
/**
* Doctrine Dao für den Import
*
* @package Cms
* @subpackage Dao
*/
class Doctrine extends DoctrineBase implements Dao
{
}
| rukzuk/rukzuk | app/server/library/Cms/Dao/Import/Doctrine.php | PHP | gpl-3.0 | 242 |
// GoSquared
var GoSquared = {};
GoSquared.acct = "GSN-064561-T";
(function(w){
function gs(){
w._gstc_lt = +new Date;
var d = document, g = d.createElement("script");
g.type = "text/javascript";
g.src = "//d1l6p2sc9645hc.cloudfront.net/tracker.js";
var s = d.getElementsByTagName("script")[0];
... | Moussa/Wiki-Fi | static/js/analytics.js | JavaScript | gpl-3.0 | 905 |
/*
* 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 distributed in the hope that it will be use... | cloudfy/economicsdk | ViewOptions.cs | C# | gpl-3.0 | 2,382 |
/**
* @file FESpace_imp.hpp
* @brief Implementation of the functional space class methods
* @author Carlo Marcati
* @date 2013-09-08
*/
/* 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... | carlomr/tspeed | lib/include/FESpace_imp.hpp | C++ | gpl-3.0 | 6,726 |
#!/usr/bin/python -Wall
# -*- coding: utf-8 -*-
"""
<div id="content">
<div style="text-align:center;" class="print"><img src="images/print_page_logo.png" alt="projecteuler.net" style="border:none;" /></div>
<h2>Number letter counts</h2><div id="problem_info" class="info"><h3>Problem 17</h3><span>Published on Friday, 1... | beyoungwoo/C_glibc_Sample | _Algorithm/ProjectEuler_python/euler_17.py | Python | gpl-3.0 | 1,631 |
/*******************************************************************************
* Copyright (c) 2013 Christian Wiwie.
* 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
* ... | deric/clusteval-parent | clusteval-backend/src/main/java/de/clusteval/data/goldstandard/format/GoldStandardFormat.java | Java | gpl-3.0 | 821 |
puts "Multiplying string 'abc' for 5 times ('abc' * 5)"
puts 'abc' * 5
puts "Compare strings ('x' > 'y')"
puts 'x' > 'y'
puts "Comparing strings ('y' > 'x')"
puts 'y' > 'x'
| darshand/beginner-ruby-from-novice-to-professional | chapter_3/string_expressions.rb | Ruby | gpl-3.0 | 175 |
namespace BreadPlayer.Core.Models
{
public class Query
{
public string QueryWord { get; set; }
}
} | theweavrs/BreadPlayer | BreadPlayer.Core/Models/Query.cs | C# | gpl-3.0 | 121 |
/*****************************************************************************
The Dark Mod GPL Source Code
This file is part of the The Dark Mod Source Code, originally based
on the Doom 3 GPL Source Code as published in 2011.
The Dark Mod Source Code is free software: you can redistribute ... | Extant-1/ThieVR | sys/stub/util_stub.cpp | C++ | gpl-3.0 | 948 |
<?php
namespace SuperUtils\Image\Driver;
/*
* :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
* ::
* :: GIFEncoder Version 2.0 by László Zsidi, http://gifs.hu
* ::
* :: This class is a rewritten 'GifMerge.class.php' version.
* ::
* :: Modification:
* :: - Simplified and easy code,
* :: - Ultra fas... | winerQin/SuperUtils | src/Image/Driver/GIFEncoder.php | PHP | gpl-3.0 | 7,735 |
package easyrec.poc.client.entity;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name="success")
@XmlAccessorType(XmlAccessType.FIELD)
public class Respon... | customertimes/easyrec-PoC | easyrec-client/src/main/java/easyrec/poc/client/entity/ResponseCode.java | Java | gpl-3.0 | 536 |
#region License
/*
Copyright 2014 - 2015 Nikita Bernthaler
Summoners.cs is part of SFXKillSteal.
SFXKillSteal 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 op... | Lizzaran/LeagueSharp-Standalones | SFXUtility/SFXKillSteal/Data/Summoners.cs | C# | gpl-3.0 | 6,544 |
package com.integreight.onesheeld.shields.controller;
import android.app.Activity;
import com.integreight.firmatabluetooth.ShieldFrame;
import com.integreight.onesheeld.enums.UIShield;
import com.integreight.onesheeld.shields.ControllerParent;
import com.integreight.onesheeld.utils.Log;
public class LcdShield extend... | donaldhwong/1Sheeld | oneSheeld/src/main/java/com/integreight/onesheeld/shields/controller/LcdShield.java | Java | gpl-3.0 | 9,331 |
Bitrix 16.5 Business Demo = 0a7f69738fccb3e80fcda38b38fdde03
| gohdan/DFC | known_files/hashes/bitrix/modules/bizproc/install/components/bitrix/bizproc.wizards.log/templates/.default/lang/en/template.php | PHP | gpl-3.0 | 61 |
package com.touchableheroes.drafts.app.sensors;
/**
* Created by asiebert on 06.12.14.
*/
public class ISensorListener {
}
| drdrej/android-drafts-app | app/src/main/java/com/touchableheroes/drafts/app/sensors/ISensorListener.java | Java | gpl-3.0 | 127 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace BBD.DSP.Models.IEEE11073
{
public class DataPacket
{
public APDU APDU;
public byte[] RawData;
public DataAPDU Data;
... | andrasfuchs/BioBalanceDetector | Software/Source/BBDCommon/BBD.DSP/Models/IEEE11073/APDUs.cs | C# | gpl-3.0 | 4,298 |
#! /usr/bin/env python
# ==========================================================================
# This scripts performs unit tests for the csiactobs script
#
# Copyright (C) 2016-2018 Juergen Knoedlseder
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General... | ctools/ctools | test/test_csiactobs.py | Python | gpl-3.0 | 13,064 |
/*******************************************************************
Part of the Fritzing project - http://fritzing.org
Copyright (c) 2007-2014 Fachhochschule Potsdam - http://fh-potsdam.de
Fritzing is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as publish... | sirdel/fritzing | src/items/note.cpp | C++ | gpl-3.0 | 24,662 |
/*!
* jQuery UI Effects Transfer 1.10.1
* http://jqueryui.com
*
* Copyright 2013 jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* http://api.jqueryui.com/transfer-effect/
*
* Depends:
* jquery.ui.effect.js
*/
(function( $, undefined ) {
... | Tinchosan/wingpanel | admin/js/jquery-ui/development-bundle/ui/jquery.ui.effect-transfer.js | JavaScript | gpl-3.0 | 1,284 |
/*
===========================================================================
Doom 3 GPL Source Code
Copyright (C) 1999-2011 id Software LLC, a ZeniMax Media company.
This file is part of the Doom 3 GPL Source Code (?Doom 3 Source Code?).
Doom 3 Source Code is free software: you can redistribute it and/or modify
it... | RobertBeckebans/Sikkpin-Feedback | neo/sys/linux/sound_alsa.cpp | C++ | gpl-3.0 | 11,042 |
#include "TerrainNoise.h"
TerrainNoise::TerrainNoise()
{
}
#undef CLASSNAME
#define CLASSNAME TerrainNoise
void TerrainNoise::bind_methods()
{
REG_CSTR(0);
} | Merg3D/Titan-Designer | src/world/TerrainNoise.cpp | C++ | gpl-3.0 | 168 |
using UnityEngine;
using System.Collections;
public class DocumentSwitchTrigger : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void OnTriggerStay2D(Collider2D col) {
if (GameObject.Find("GameManager").GetComponent<GameM... | rancex/sort-machine | Assets/Code/DocumentSwitchTrigger.cs | C# | gpl-3.0 | 1,761 |
class Issuer < ActiveRecord::Base
extend FriendlyId
friendly_id :name
default_scope order(:name)
belongs_to :institution
validates_presence_of :name, :abbreviation, :institution
validates_length_of :abbreviation, :is => 2
validates_uniqueness_of :name, :abbreviation
has_many :regulation_types, :depen... | alfrenovsky/Digesto | app/models/issuer.rb | Ruby | gpl-3.0 | 550 |
class BudgetDatatable < AjaxDatatablesRails::Base
# http://bobfly.blogspot.de/2015/05/rails-4-datatables-foundation.html
AjaxDatatablesRails::Extensions::Kaminari
def sortable_columns
# Declare strings in this format: ModelName.column_name
@sortable_columns ||= %w(Budget.title Budget.promise Budget.start... | iNeedCode/Maalify | app/datatables/budget_datatable.rb | Ruby | gpl-3.0 | 2,044 |
# Copyright 2015 Matthew J. Aburn
#
# 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. See <http://www.gnu.org/licenses/>.
... | mattja/sdeint | sdeint/wiener.py | Python | gpl-3.0 | 10,384 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#--------------------------------------------------------------------
# Copyright (c) 2014 Eren Inan Canpolat
# Author: Eren Inan Canpolat <eren.canpolat@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General... | canpolat/bookbinder | bookbinder/templates.py | Python | gpl-3.0 | 2,011 |
package company;
import java.util.Arrays;
import java.util.Comparator;
import java.util.HashMap;
import java.util.Map;
public class StringChains {
private int longestChain(String[] words) {
if (words == null || words.length == 0)
return 0;
int chainLength = 0;
Arrays.sort(wor... | Sriee/epi | Interview/src/company/StringChains.java | Java | gpl-3.0 | 1,592 |
<!DOCTYPE html>
<html>
<head>
<title>添加邀请注册</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="<?php echo $this->rootUrl; ?>/css/bootstrap-3.2.0... | goyoo-php/mobcent | app/modules/admin/views/uidiy/configedit.php | PHP | gpl-3.0 | 5,489 |
using System;
using System.IO;
using System.IO.Compression;
using System.Linq;
using Nancy;
using Nancy.Bootstrapper;
using NLog;
using NzbDrone.Common.EnvironmentInfo;
namespace Lidarr.Http.Extensions.Pipelines
{
public class GzipCompressionPipeline : IRegisterNancyPipeline
{
private readonly Logger _... | lidarr/Lidarr | src/Lidarr.Http/Extensions/Pipelines/GZipPipeline.cs | C# | gpl-3.0 | 3,335 |
//Copyright (c) 2011 Municipalidad de Rosario and Coop. de Trabajo Tecso Ltda.
//This file is part of SIAT. SIAT is licensed under the terms
//of the GNU General Public License, version 3.
//See terms in COPYING file or <http://www.gnu.org/licenses/gpl.txt>
package ar.gov.rosario.siat.rec.view.struts;
import javax.se... | avdata99/SIAT | siat-1.0-SOURCE/src/view/src/WEB-INF/src/ar/gov/rosario/siat/rec/view/struts/AdministrarNovedadRSDAction.java | Java | gpl-3.0 | 9,557 |
<?php
$L['Lightsquid_Description'] = 'Web proxy statistieken';
$L['Lightsquid_Tags'] = 'Grafische analyse statistiek Squid Web Proxy';
$L['Lightsquid_Title'] = 'Web Proxy Statistiek';
$L['Settings_title'] = 'Instellingen';
$L['Settings_label'] = 'Instellingen';
$L['Lang_label'] = 'Taal';
$L['BigFileLimit_label'] = 'R... | NethServer/nethserver-lang | locale/nl/server-manager/NethServer_Module_Lightsquid.php | PHP | gpl-3.0 | 451 |
var xForRefIcon = 0;
var yForRefIcon = 0;
var xForSubDiagramIcon = 0;
var yForSubDiagramIcon = 0;
var xForTransIcon = 0;
var yForTransIcon = 0;
var fileLinks = [];
var folderLinks = [];
var urlLinks = [];
var diagramLinks = [];
var shapeLinks = [];
var subdiagramLinks = [];
var fromTransitorLinks = []... | EdwardWuYiHsuan/Student-Course-System | poseitech-java-assignments/docs/content/link_popup.js | JavaScript | gpl-3.0 | 39,618 |
/*
This file is part of solidity.
solidity 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.
solidity is distributed in the hope that i... | bobsummerwill/solidity | test/libsolidity/StandardCompiler.cpp | C++ | gpl-3.0 | 39,368 |
var request = require('request');
var cheerio = require('cheerio');
var admin = require("firebase-admin");
//var serviceAccount = require("tehillim-17559-firebase-adminsdk-gx90v-b712a63ab5.json");
admin.initializeApp({
credential: admin.credential.cert("tehillim-17559-firebase-adminsdk-gx90v-b712a63ab5.json"),
... | miroo93/TehillimForAll | TehillimForAll/srv/scrape.js | JavaScript | gpl-3.0 | 3,344 |
import { FormsEpidemiologia } from '../modules/forms/forms-epidemiologia/forms-epidemiologia-schema';
async function run(done) {
const fichas = FormsEpidemiologia.find({ active: { $exists: false } }).cursor();
for await (const ficha of fichas) {
const _id = ficha.id;
const $set = { active: true... | andes/api | scripts/EP-167.ts | TypeScript | gpl-3.0 | 419 |
/*
Copyright (C) 2013 by Claudio Zopfi, Zurich, Suisse, z@x21.ch
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... | x21/rc1 | rc1/conf/layoutmodel.cpp | C++ | gpl-3.0 | 3,628 |
//
// input_properties_py.hpp
// blockscipy
//
// Created by Malte Moeser on 8/26/19.
//
#ifndef input_properties_py_h
#define input_properties_py_h
#include "method_tags.hpp"
#include <blocksci/chain/block.hpp>
struct AddInputMethods {
template <typename FuncApplication>
void operator()(FuncApplication ... | citp/BlockSci | blockscipy/src/chain/input/input_properties_py.hpp | C++ | gpl-3.0 | 1,555 |
var _ = require('lodash');
var doFacesIntersect = require('./face-intersection').doFacesIntersect;
function flatMeshIntersects(mesh){
var numFaces = mesh.faces.length;
for (var i = 0; i < numFaces; ++i) {
var firstFace = _.map(mesh.faces[i].vertices, function(vertexIndex){
return mesh.vert... | mjleehh/paper-model | lib/algorithms/flat-mesh-intersection.js | JavaScript | gpl-3.0 | 737 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Prasatec.Cu2Com.Data
{
public sealed class UserResetCollection : Raden.ICollection<UserReset>
{
private const int DEFAULT_LIMIT = 25;
... | PrasatecDevelopment/curve | alpha/0.1.230.0/Prasatec.Cu2Com/Data/UserResetCollection.cs | C# | gpl-3.0 | 2,630 |
// (C) Copyright 2009, Chong Wang, David Blei and Li Fei-Fei
// written by Chong Wang, chongw@cs.princeton.edu
// This file is part of slda.
// slda 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 ... | fmpr/MA-sLDAr | MA-sLDAr (smooth)/main.cpp | C++ | gpl-3.0 | 4,275 |
/**
* MegaMek - Copyright (C) 2004,2005 Ben Mazur (bmazur@sev.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 2 of the License, or (at your option)
* any later ve... | chvink/kilomek | megamek/src/megamek/common/weapons/WeaponHandler.java | Java | gpl-3.0 | 56,885 |
package org.ebookdroid.core;
import android.graphics.Rect;
import android.graphics.RectF;
import com.foobnix.model.AppBook;
import org.ebookdroid.common.settings.SettingsManager;
import org.ebookdroid.common.settings.types.DocumentViewMode;
import org.ebookdroid.common.settings.types.PageAlign;
import org.ebookdroid... | foobnix/LirbiReader | app/src/main/java/org/ebookdroid/core/HScrollController.java | Java | gpl-3.0 | 3,996 |
def main():
"""Instantiate a DockerStats object and collect stats."""
print('Docker Service Module')
if __name__ == '__main__':
main()
| gomex/docker-zabbix | docker_service/__init__.py | Python | gpl-3.0 | 148 |
# ScratchABit - interactive disassembler
#
# Copyright (c) 2018 Paul Sokolovsky
#
# 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... | pfalcon/ScratchABit | plugins/cpu/arm_32_arm_capstone.py | Python | gpl-3.0 | 891 |
package gui;
import java.awt.Dimension;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.text.DecimalFormat;
import java.text.NumberF... | otting/NebenkostenAssistent | src/gui/WorkFrame.java | Java | gpl-3.0 | 4,016 |
<?php
class SiteOrigin_Panels_Widget_Animated_Image extends SiteOrigin_Panels_Widget {
function __construct() {
parent::__construct(
__('Animated Image (Pootle)', 'siteorigin-panels'),
array(
'description' => __('An image that animates in when it enters the screen.', 'siteorigin-panels'),
'default_st... | pootlepress/genesis-page-builder | widgets/widgets/animated-image/animated-image.php | PHP | gpl-3.0 | 1,322 |
package com.infox.sysmgr.entity.base;
import java.io.Serializable;
public class BaseField implements Serializable {
private static final long serialVersionUID = 1L;
private int hashCode = Integer.MIN_VALUE;
// fields
private java.lang.String name;
private java.lang.String fieldType;
priva... | yhqmcq/infox | src/main/java/com/infox/sysmgr/entity/base/BaseField.java | Java | gpl-3.0 | 1,767 |
/*
* This file is part of the GeMTC software for MTC model generation and
* analysis. GeMTC is distributed from http://drugis.org/gemtc.
* Copyright (C) 2009-2012 Gert van Valkenhoef.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as... | drugis/mtc | mtc-gui/src/main/java/org/drugis/mtc/presentation/results/NetworkVarianceTableModel.java | Java | gpl-3.0 | 3,491 |
angular.module('app.travels', ['pascalprecht.translate'])
.controller('TravelsCtrl', function($scope, $http, $ionicModal, $timeout, $ionicLoading, $filter) {
$scope.loadMorePagination = true;
$scope.travels = [];
$scope.page = 0;
$scope.doRefresh = function() {
/* travels refresh: */
$ht... | arnaucode/carsincommonApp | www/js/travels.js | JavaScript | gpl-3.0 | 1,615 |
'use strict';
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope... | taco-themes/boilerplate | assets/dist/js/sidebar.customize-controls.js | JavaScript | gpl-3.0 | 13,082 |
/*****************************************************************************
* Copyright (C) 2004-2013 The PaGMO development team, *
* Advanced Concepts Team (ACT), European Space Agency (ESA) *
* http://apps.sourceforge.net/mediawiki/pagmo *
* ... | enikulenkov/PaGMO | src/util/hv_algorithm/hv4d.cpp | C++ | gpl-3.0 | 6,462 |
<?php
namespace BES\ContactBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use SKCMS\ContactBundle\Entity\ContactMessage as BaseMessage;
/**
* ContactMessage
*
* @ORM\Table()
* @ORM\Entity(repositoryClass="BES\ContactBundle\Entity\ContactMessageRepository")
*/
class ContactMessage extends BaseMessage
{
/**
... | kokmok/beswebdev | src/BES/ContactBundle/Entity/ContactMessage.php | PHP | gpl-3.0 | 610 |
# Example made by OssiLehtinen
#
from svgpathtools import svg2paths, wsvg
import numpy as np
import uArmRobot
import time
#Configure Serial Port
#serialport = "com3" # for windows
serialport = "/dev/ttyACM0" # for linux like system
# Connect to uArm
myRobot = uArmRobot.robot(serialport,0) # user 0 for ... | AnykeyNL/uArmProPython | svg_example.py | Python | gpl-3.0 | 1,467 |
<?php
// This file is part of mod_checkmark for Moodle - http://moodle.org/
//
// It 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.... | nitro2010/moodle | mod/checkmark/backup/moodle2/backup_checkmark_stepslib.php | PHP | gpl-3.0 | 4,986 |
using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Newegg.Oversea.Silverlight.ControlPanel.Core.Ba... | ZeroOne71/ql | 02_ECCentral/02_Portal/UI/ECCentral.Portal.UI.SO/Models/SODeliveryExpVM.cs | C# | gpl-3.0 | 2,701 |
# -*- coding: utf-8 -*-
# Author: Leo Vidarte <http://nerdlabs.com.ar>
#
# This file is part of lai-client.
#
# lai-client is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3
# as published by the Free Software Foundation.
#
# lai-client is distribut... | lvidarte/lai-client | lai/db/mongo.py | Python | gpl-3.0 | 6,391 |
from matplotlib import pyplot as plt
path = "C:/Temp/mnisterrors/chunk" + str(input("chunk: ")) + ".txt"
with open(path, "r") as f:
errorhistory = [float(line.rstrip('\n')) for line in f]
plt.plot(errorhistory)
plt.show()
| jabumaho/MNIST-neural-network | plot_error.py | Python | gpl-3.0 | 235 |
require 'nil/file'
require 'nil/http'
class Rune
attr_reader :id, :name, :description
def initialize(id, name, description)
@id = id
@name = name
@description = description
end
end
def processTier(tier)
host = 'http://na.leagueoflegends.com'
url = "#{host}/runes/#{tier}"
puts "Downloading tie... | epicvrvs/RiotControl | Web/Generation/runes.rb | Ruby | gpl-3.0 | 1,965 |
<?php
/**
* $Id$
*
* Copyright 2008 secure-net-concepts <info@secure-net-concepts.de>
*
* This file is part of Nagios Administrator http://www.nagiosadmin.de.
*
* Nagios Administrator is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
... | senecon/nagiosadmin | apps/backend/modules/generator/templates/_generator_footer.php | PHP | gpl-3.0 | 1,088 |
package com.gildedgames.aether.client.renderer.tile_entities;
import com.gildedgames.aether.client.models.entities.tile.ModelPresent;
import com.gildedgames.aether.common.items.blocks.ItemBlockPresent;
import com.gildedgames.aether.common.tiles.TileEntityPresent;
import net.minecraft.client.renderer.GlStateManager;
im... | Better-Aether/Better-Aether | src/main/java/com/gildedgames/aether/client/renderer/tile_entities/TileEntityPresentRenderer.java | Java | gpl-3.0 | 2,920 |
using KotaeteMVC.Context;
using KotaeteMVC.Models.Entities;
using KotaeteMVC.Models.ViewModels;
using KotaeteMVC.Models.ViewModels.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace KotaeteMVC.Service
{
public class LikesService : UsersService
{
public... | seranfuen/kotaete | KotaeteMVC/Service/LikesService.cs | C# | gpl-3.0 | 4,678 |
/** __ __
* _____ _/ /_/ /_ Computational Intelligence Library (CIlib)
* / ___/ / / / __ \ (c) CIRG @ UP
* / /__/ / / / /_/ / http://cilib.net
* \___/_/_/_/_.___/
*/
package net.sourceforge.cilib.problem.boundaryconstraint;
import net.sourceforge.cilib.entity.Entity;
import net.sourceforg... | censlin/cilib-old | library/src/main/java/net/sourceforge/cilib/problem/boundaryconstraint/PreviousPosition.java | Java | gpl-3.0 | 1,495 |
<?php
namespace AramisAuto\EmailController\MessageStrategy;
use AramisAuto\EmailController\Event\MessageEvent;
class NullMessageStrategy extends AbstractMessageStrategy
{
public function execute()
{
$event = new MessageEvent($this->getMessage());
$this->getEventDispatcher()->dispatch($this->su... | ARAMISAUTO/email-controller | src/src/AramisAuto/EmailController/MessageStrategy/NullMessageStrategy.php | PHP | gpl-3.0 | 346 |
# We calculate the flatness with the Roche model
# calculate omk knowing omc and vice-versa
from numpy import *
from scipy.optimize import root
# we have to solve a cubic equation a-J2*a**3=1+J2+0.5*omk**2
def eps(omk):
return omk**2/(2+omk**2)
def om_k(omc):
khi=arcsin(omc)
return sqrt(6*sin(khi/3)/omc-2)
omc... | ester-project/ester | postprocessing/Roche.py | Python | gpl-3.0 | 361 |
package org.monstercraft.irc.ircplugin.event.events;
import java.util.EventListener;
import org.monstercraft.irc.ircplugin.event.EventMulticaster;
import org.monstercraft.irc.ircplugin.event.listeners.IRCListener;
import org.monstercraft.irc.plugin.wrappers.IRCServer;
public class PluginDisconnectEvent extends IRCEv... | Monstercraft/MonsterIRC | src/main/java/org/monstercraft/irc/ircplugin/event/events/PluginDisconnectEvent.java | Java | gpl-3.0 | 758 |
/*****************************************************************************
* Copyright 2010-2012 Katholieke Universiteit Leuven
*
* Use of this software is governed by the GNU LGPLv3.0 license
*
* Written by Broes De Cat, Bart Bogaerts, Stef De Pooter, Johan Wittocx,
* Jo Devriendt, Joachim Jansen and Pieter ... | KULeuven-KRR/IDP | src/common.cpp | C++ | gpl-3.0 | 8,878 |
/**
*/
package sc.ndt.editor.fast.fastfst;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>nTEC Sres</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link sc.ndt.editor.fast.fastfst.nTEC_Sres... | cooked/NDT | sc.ndt.editor.fast.fst/src-gen/sc/ndt/editor/fast/fastfst/nTEC_Sres.java | Java | gpl-3.0 | 2,191 |
#!/usr/bin/env python
import sys
import os
output_dir = "erc2-chromatin15state-all-files"
if not os.path.exists(output_dir):
sys.stderr.write("Creating dir [%s]...\n" % (output_dir))
os.makedirs(output_dir)
prefix = "/home/cbreeze/for_Alex"
suffix = "_15_coreMarks_mnemonics.bed"
marks = [ '1_TssA',
... | charlesbreeze/eFORGE | docs/eforge-db-construction/construct_erc2-chromatin15state-all_files.py | Python | gpl-3.0 | 3,559 |
import {
parseProgrammes,
parseSubjects,
parseCourses,
} from "@education-data/parser";
import { join } from "path";
import { writeFileSync } from "fs";
import { format } from "date-fns";
import { sv } from "date-fns/locale";
import { sourceDirectory, outputDirectory, replacementsDirectory } from "./cfg";
async... | eweilow/swedish-education-data | packages/data-swedish-gymnasium/index.ts | TypeScript | gpl-3.0 | 1,305 |
<?php
/**
* This file is part of CMSGears Framework. Please view License file distributed
* with the source code for license details.
*
* @link https://www.cmsgears.org/
* @copyright Copyright (c) 2015 VulpineCode Technologies Pvt. Ltd.
*/
namespace cmsgears\cart\common\models\resources;
// Yii Imports
use Yii;... | cmsgears/module-cart | common/models/resources/OrderItem.php | PHP | gpl-3.0 | 14,285 |
<?php
//----------------------------------------------------------------------
//
// Copyright (C) 2017-2022 Artem Rodygin
//
// This file is part of eTraxis.
//
// You should have received a copy of the GNU General Public License
// along with eTraxis. If not, see <https://www.gnu.org/licenses/>.
//
//-----------... | etraxis/etraxis | src/Controller/OAuth2Controller.php | PHP | gpl-3.0 | 1,461 |
/*
* 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 distributed in the hope that it w... | automenta/adams-core | src/main/java/adams/gui/goe/AbstractIntegralNumberEditor.java | Java | gpl-3.0 | 3,227 |
<?php if (!defined('PmWiki')) exit();
## This is a sample config.php file. To use this file, copy it to
## local/config.php, then edit it for whatever customizations you want.
## Also, be sure to take a look at http://www.pmwiki.org/wiki/Cookbook
## for more details on the types of customizations that can be added... | tukusejssirs/eSpievatko | spievatko/espievatko/pmwiki_cho/local/config.php | PHP | gpl-3.0 | 8,561 |
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
#
# Copyright (c) 2017 Stephen Bunn (stephen@bunn.io)
# GNU GPLv3 <https://www.gnu.org/licenses/gpl-3.0.en.html>
from ._common import *
from .rethinkdb import RethinkDBPipe
from .mongodb import MongoDBPipe
| ritashugisha/neat | neat/pipe/__init__.py | Python | gpl-3.0 | 255 |
package fi.pyramus.dao.users;
import java.util.Date;
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Root;
import fi.pyramus.dao.PyramusEnti... | leafsoftinfo/pyramus | persistence/src/main/java/fi/pyramus/dao/users/PasswordResetRequestDAO.java | Java | gpl-3.0 | 2,326 |
import pandas as pd
from larray.core.array import Array
from larray.inout.pandas import from_frame
__all__ = ['read_stata']
def read_stata(filepath_or_buffer, index_col=None, sort_rows=False, sort_columns=False, **kwargs) -> Array:
r"""
Reads Stata .dta file and returns an Array with the contents
Param... | gdementen/larray | larray/inout/stata.py | Python | gpl-3.0 | 1,657 |
using System.Threading.Tasks;
namespace Yavsc.Services
{
public interface ISmsSender
{
Task SendSmsAsync(TwilioSettings settings, string number, string message);
}
}
| pazof/yavsc | src/Yavsc.Server/Interfaces/ISmsSender.cs | C# | gpl-3.0 | 188 |
<?php
namespace MultisiteMigrationFramework\modules;
use MultisiteMigrationFramework\classes\MultisiteMigration;
use MultisiteMigrationFramework\classes\MultisiteMigrationSystemAuthorization;
if (! defined('ABSPATH')) {
exit;
}
/**
* This module allows a new site to be created in the network with a specified blo... | codex-m/multisite-migration | modules/CreateBlogSpecificID.php | PHP | gpl-3.0 | 8,311 |
package com.stt.util2;
import java.util.UUID;
/**
* @Author shitongtong
* <p>
* Created by shitongtong on 2017/3/24.
*/
public class UUIDUtil {
/**
* 带"-"分割的
* @return
*/
public static String randomUUID(){
return UUID.randomUUID().toString();
}
/**
* 不带"-"分割的
* @... | shitongtong/libraryManage | stt-util/src/main/java/com/stt/util2/UUIDUtil.java | Java | gpl-3.0 | 603 |
#include "mesh_chunk_builder.h"
#include "mesh_chunk_vertices.h"
#include "chunk.h"
#include "color.h"
#include "voxel.h"
using minecpp::MeshChunkBuilder;
using minecpp::MeshChunkVertices;
using minecpp::RGBA8;
void MeshChunkBuilder::computeLightsPlacing(unsigned componentIndex) noexcept
{
while (!lightsPlace[com... | jangolare/MineCPP | src/mesh_chunk_builder.cpp | C++ | gpl-3.0 | 18,147 |