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 |
|---|---|---|---|---|---|
using System;
using System.Collections.Generic;
using System.Text;
using WorldWind.Renderable;
using Microsoft.DirectX;
using Microsoft.DirectX.Direct3D;
using System.Drawing;
namespace AppScene
{
/// <summary>
/// 此示例主要演示如何构造一个mesh网格,以及实现碰撞检测
/// </summary>
public class Sphere : RenderableObject
... | yhexie/AppScene | AppScene/Renderable/Sphere.cs | C# | gpl-3.0 | 10,686 |
from django import forms
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from form_utils.forms import BetterForm
import form_utils.fields as bf_fields
from tao.widgets import ChoiceFieldWithOtherAttrs, SelectWithOtherAttrs, TwoSidedSelectWidget, SpinnerWidget
from tao import d... | IntersectAustralia/asvo-tao | web/tao/sql_job_form.py | Python | gpl-3.0 | 4,293 |
/*
* Copyright (C) Alibaba Cloud Computing
* All rights reserved.
*
* 版权所有 (C)阿里云计算有限公司
*/
using System;
using System.Runtime.Serialization;
namespace Aliyun.OSS.Transform
{
[Serializable]
internal class ResponseDeserializationException : InvalidOperationException, ISerializable
{
... | bojuelu/unity-toolbox | Assets/AliyunSDK/sdk/Transform/ResponseDeserializationException.cs | C# | gpl-3.0 | 823 |
/*
* WAG.java
*
* BEAST: Bayesian Evolutionary Analysis by Sampling Trees
* Copyright (C) 2014 BEAST Developers
*
* BEAST 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... | armanbilge/B3 | src/beast/evomodel/substmodel/WAG.java | Java | gpl-3.0 | 7,525 |
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | foam-extend: Open Source CFD
\\ / O peration | Version: 3.2
\\ / A nd | Web: http://www.foam-extend.org
\\/ M anipulation | For ... | Unofficial-Extend-Project-Mirror/foam-extend-foam-extend-3.2 | src/finiteVolume/fvMesh/fvPatches/basic/generic/genericFvPatch.H | C++ | gpl-3.0 | 2,354 |
/*
*
* Copyright 2014-2016 Ignacio San Roman Lana
*
* This file is part of OpenCV_ML_Tool
*
* OpenCV_ML_Tool 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 opti... | IgnacioSRL/OpenCV_ML_Tool | src/Extraccion_Caracteristicas/basic_transformations.cpp | C++ | gpl-3.0 | 12,064 |
/*
* Copyright (C) 2014 Dominik Schürmann <dominik@dominikschuermann.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, or
* (at your option) any later ... | xSooDx/open-keychain | OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/DecryptActivity.java | Java | gpl-3.0 | 7,046 |
#include "fiber.h"
namespace focss {
Fiber Fiber::linear() const {
Fiber new_fiber = *this;
new_fiber.gamma = 0;
return new_fiber;
}
Fiber Fiber::nonlinear() const {
Fiber new_fiber = *this;
new_fiber.alpha = 0;
new_fiber.beta2 = 0;
return new_fiber;
}
Fiber Fiber::dispersive() const {
... | euav/ssfm | src/focss/module/fiber.cpp | C++ | gpl-3.0 | 974 |
package epmc.param.value.cancellator;
import epmc.param.value.polynomial.TypePolynomial;
import epmc.param.value.polynomial.ValuePolynomial;
public interface Cancellator {
interface Builder {
Builder setType(TypePolynomial type);
Cancellator build();
}
void cancel(ValuePolynomia... | liyi-david/ePMC | plugins/param/src/main/java/epmc/param/value/cancellator/Cancellator.java | Java | gpl-3.0 | 361 |
/*
SpiroNet.Avalonia
Copyright (C) 2019 Wiesław Šoltés
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 distri... | wieslawsoltes/SpiroNet | src/SpiroNet.Editor.Avalonia/Renderer/CanvasRenderer.cs | C# | gpl-3.0 | 16,438 |
import szurubooru.model.util
from szurubooru.model.base import Base
from szurubooru.model.comment import Comment, CommentScore
from szurubooru.model.pool import Pool, PoolName, PoolPost
from szurubooru.model.pool_category import PoolCategory
from szurubooru.model.post import (
Post,
PostFavorite,
PostFeatur... | rr-/szurubooru | server/szurubooru/model/__init__.py | Python | gpl-3.0 | 632 |
<?php
return [
'user-1' => 'Nom de l\'utilisateur',
'logout-1' => 'Déconnexion',
'logout-2' => 'Voulez-vous vous déconnecter ?',
'logout-3' => 'Cliquez sur Non si vous désirez continuer votre travail. Cliquez sur Oui pour vous déconnecter.',
'logout-4' => 'Oui',
'log... | ntja/smartschool | v1/view/resources/lang/fr/user.php | PHP | gpl-3.0 | 341 |
# -*- coding:binary -*-
require 'spec_helper'
require 'rex/proto/kerberos'
require 'msf/kerberos/client'
describe Msf::Kerberos::Client::Base do
subject do
mod = ::Msf::Exploit.new
mod.extend ::Msf::Kerberos::Client
mod.send(:initialize)
mod
end
let(:client_opts) do
{
:name_type => Re... | cSploit/android.MSF | spec/lib/msf/kerberos/client/base_spec.rb | Ruby | gpl-3.0 | 2,990 |
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | foam-extend: Open Source CFD
\\ / O peration | Version: 3.2
\\ / A nd | Web: http://www.foam-extend.org
\\/ M anipulation | For ... | Unofficial-Extend-Project-Mirror/foam-extend-foam-extend-3.2 | applications/utilities/postProcessing/miscellaneous/postChannel/channelIndex.C | C++ | gpl-3.0 | 7,956 |
package de.helfenkannjeder.istatus.server.business;
import static de.helfenkannjeder.istatus.server.business.Constants.LOADGRAPH;
import java.io.Serializable;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import javax.persistence.EntityGraph;
import javax.persistence.EntityMana... | KrugT/iStatus.report-Server | src/main/java/de/helfenkannjeder/istatus/server/business/SquadService.java | Java | gpl-3.0 | 2,929 |
package vivadaylight3.myrmecology.common.item.ant;
import net.minecraft.world.World;
import net.minecraft.world.biome.BiomeGenBase;
import vivadaylight3.myrmecology.api.item.ItemAnt;
import vivadaylight3.myrmecology.common.Reference;
import vivadaylight3.myrmecology.common.lib.Time;
public class AntPlains extends Ite... | SamTebbs33/myrmecology | src/minecraft/vivadaylight3/myrmecology/common/item/ant/AntPlains.java | Java | gpl-3.0 | 1,965 |
/*===========================================================================*\
* *
* OpenFlipper *
* Copyright (C) 2001-2014 by Computer Graphics Group, RWTH Aachen *
* ... | heartvalve/OpenFlipper | Plugin-VSI/types/objectId/TreeItem.cc | C++ | gpl-3.0 | 9,535 |
/*
* Controllable.cpp
*
* This file is part of the IHMC DisService Library/Component
* Copyright (c) 2006-2016 IHMC.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 3 (GPLv3) as published by the Free Software Foundation.
... | ihmc/nomads | aci/cpp/DisService/Controllable.cpp | C++ | gpl-3.0 | 983 |
using System;
using System.Globalization;
using System.Text;
using NReco.PdfGenerator;
using SmartStore.Core.Logging;
using SmartStore.Utilities;
namespace SmartStore.Services.Pdf
{
public class WkHtmlToPdfConverter : IPdfConverter
{
public WkHtmlToPdfConverter()
{
Logger = NullLogger.Instance;
}
public... | mfalkao/SmartStoreNET | src/Libraries/SmartStore.Services/Pdf/WkHtmlToPdfConverter.cs | C# | gpl-3.0 | 3,899 |
turingApp.controller('TurConverseTrainingListCtrl', [
"$scope",
"$filter",
"turConverseTrainingResource",
function ($scope, $filter, turConverseTrainingResource) {
$scope.conversations = turConverseTrainingResource.query( function() {
$scope.conversations = $filter('orderBy')($scope.... | openviglet/turing | src/main/resources/public/js/build/extract/feature/converse/training/TurConverseTrainingListCtrl.js | JavaScript | gpl-3.0 | 373 |
import curses
import datetime
import itertools
import sys
import time
from tabulate import tabulate
from Brick.sockserver import SockClient
def build_info(client):
headers = ["SID", "CONF", "BOOT", "TERM", "TIME", "STATE", "CPU%", "MEM%", "TASK", "NQ", "QUEUE"]
table = []
res = []
for status in clie... | Tefx/Brick | Brick/tools.py | Python | gpl-3.0 | 1,716 |
// -*- Mode: Go; indent-tabs-mode: t -*-
/*
* Copyright (C) 2020 Canonical Ltd
*
* This program 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.
*
* This program is distributed in the hope tha... | jdstrand/snapd | daemon/api_debug_seeding_test.go | GO | gpl-3.0 | 5,750 |
/*!
* @copyright © Kartik Visweswaran, Krajee.com, 2013 - 2016
* @version 4.0.1
*
* A simple yet powerful JQuery star rating plugin that allows rendering fractional star ratings and supports
* Right to Left (RTL) input.
*
* For more JQuery plugins visit http://plugins.krajee.com
* For more Yii related dem... | uc-web/CHAMBING | resources/plugins/ratingbar/star-rating.js | JavaScript | gpl-3.0 | 23,526 |
# Author: medariox <dariox@gmx.com>,
# based on Antoine Bertin's <diaoulael@gmail.com> work
# and originally written by Nyaran <nyayukko@gmail.com>
# URL: https://github.com/SickRage/SickRage/
#
# This file is part of SickRage.
#
# SickRage is free software: you can redistribute it and/or modify
# it under the terms of... | hernandito/SickRage | sickbeard/subtitles.py | Python | gpl-3.0 | 24,581 |
// Copyright (c) 2005 - 2017 Settlers Freaks (sf-team at siedler25.org)
//
// This file is part of Return To The Roots.
//
// Return To The Roots 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... | frin/s25client | src/desktops/dskMainMenu.cpp | C++ | gpl-3.0 | 4,997 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2016.08.... | DSRCorporation/imf-conversion | imf-essence-descriptors/src/main/java/org/smpte_ra/reg/_395/_2014/_13/_1/aaf/IndexTableSegment.java | Java | gpl-3.0 | 14,561 |
/*
* eGov suite of products aim to improve the internal efficiency,transparency,
* accountability and the service delivery of the government organizations.
*
* Copyright (C) <2015> eGovernments Foundation
*
* The updated version of eGov suite of products as by eGovernments Foundation
* is availa... | egovernments/egov-playground | eGov/egov/egov-commons/src/main/java/org/egov/lib/security/ParameterCheck.java | Java | gpl-3.0 | 2,224 |
<?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... | dixidix/simulacion | extras/moodledata/lang/es/gradeexport_txt.php | PHP | gpl-3.0 | 1,190 |
package org.arig.robot.system.blockermanager;
import lombok.extern.slf4j.Slf4j;
import org.arig.robot.model.CommandeRobot;
import org.arig.robot.model.enums.TypeConsigne;
import org.arig.robot.model.monitor.MonitorTimeSerie;
import org.arig.robot.monitoring.IMonitoringWrapper;
import org.arig.robot.services.Trajectory... | ARIG-Robotique/robots | robot-system-lib-parent/robot-system-lib-core/src/main/java/org/arig/robot/system/blockermanager/SystemBlockerManager.java | Java | gpl-3.0 | 3,005 |
import numpy as np
import matplotlib.pyplot as plt
from asteroseismology_model import *
keep = np.loadtxt('keep.txt')
# Trace plot of the number of peaks
plt.plot(keep[:,0].astype('int'))
plt.xlabel('Iteration', fontsize=18)
plt.ylabel('Number of Peaks', fontsize=18)
plt.show()
# Histogram of the number of peaks
pl... | eggplantbren/WinterSchool | Code/asteroseismology_results.py | Python | gpl-3.0 | 2,064 |
/**
* (C) 2013-2014 Stephan Rauh http://www.beyondjava.net
*
* 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.
*
... | stephanrauh/BackUp | AngularFaces/AngularFaces_1.0/AngularFaces-core/src/main/java/de/beyondjava/jsfComponents/inputText/NGInputText.java | Java | gpl-3.0 | 6,667 |
/*
This file is part of am.string~.
am.string~ 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.
am.string~ is distributed in the hop... | aengusm/am.string | Code/main.cpp | C++ | gpl-3.0 | 2,878 |
#include <iomanip>
#include <iostream>
#include <stdexcept>
#include <string>
#include <fstream>
using namespace std;
#include "Fecha.h"
#include "Consultorio.h"
typedef string medico;
typedef string paciente;
#ifndef DOMJUDGE
ifstream in("cola.txt");
auto cinbuf = std::cin.rdbuf(in.rdbuf()); //save old buf and re... | Alexis01/EDA | 16-17/2cuatri/practicas/week10/main.cpp | C++ | gpl-3.0 | 2,169 |
/**
* Copyright (c) 2002-2012 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j 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 Foundati... | dksaputra/community | kernel/src/main/java/org/neo4j/kernel/impl/batchinsert/SimpleRelationship.java | Java | gpl-3.0 | 2,023 |
<?php
namespace MediaCloud\Vendor\Illuminate\Contracts\Support;
interface Htmlable
{
/**
* Get content as a string of HTML.
*
* @return string
*/
public function toHtml();
}
| Interfacelab/ilab-media-tools | lib/mcloud-illuminate/contracts/Support/Htmlable.php | PHP | gpl-3.0 | 204 |
#include <wx/wxFlatNotebook/popup_dlg.h>
#include <wx/listctrl.h>
#include <wx/wxFlatNotebook/wxFlatNotebook.h>
#include <wx/wxFlatNotebook/renderer.h>
#include <wx/listbox.h>
#include <wx/image.h>
//#include <wx/mstream.h>
#include <wx/wxFlatNotebook/fnb_resources.h>
wxBitmap wxTabNavigatorWindow::m_bmp;
... | TricksterGuy/complx | lc3edit/wxFlatNotebook/popup_dlg.cpp | C++ | gpl-3.0 | 6,478 |
using Newtonsoft.Json;
using WebMerge.Client.Converters;
namespace WebMerge.Client.ResponseModels
{
public class DataRouteFile
{
[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("file_contents")]
[JsonConverter(typeof (Base64ByteConverter))]
public... | csharpsi/webmerge.net | src/WebMerge.Client/ResponseModels/DataRouteFile.cs | C# | gpl-3.0 | 364 |
namespace CaveVins
{
partial class Combien
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
... | jtraulle/WineTeK | src/CaveVins/CaveVins/15-Outils/Combien.designer.cs | C# | gpl-3.0 | 3,574 |
/* Copyright (c) 2001-2008, The HSQL Development Group
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
... | ckaestne/LEADT | workspace/hsqldb/src/org/hsqldb/jdbc/jdbcCallableStatement.java | Java | gpl-3.0 | 141,388 |
<?php
/**
* WPMovieLibrary Legacy functions.
*
* Deal with old WordPress/WPMovieLibrary versions.
*
* @since 1.3
*
* @package WPMovieLibrary
* @author Charlie MERLAND <charlie.merland@gmail.com>
* @license GPL-3.0
* @link http://www.caercam.org/
* @copyright 2014 CaerCam.org
*/
if ( ! de... | wp-plugins/wpmovielibrary | includes/functions/wpmoly-legacy-functions.php | PHP | gpl-3.0 | 1,413 |
/*****************************************************************************/
/* _QnA: Event Handlers and Helpers .js*/
/*****************************************************************************/
Template._QnA.events({
"submit #newQuestion": function (e, tmpl) {
e.preventDefault();
var question = Utils... | fletchtj/BackRowChatter | client/views/chatters/chatters_qna/chatters_qna.js | JavaScript | gpl-3.0 | 2,484 |
package name.herve.jtlm;
public class JTLMException extends Exception {
private static final long serialVersionUID = 8617680724685561829L;
public JTLMException() {
super();
}
public JTLMException(String message) {
super(message);
}
public JTLMException(String message, Throwable cause) {
su... | nrv/jTLM | src/main/java/name/herve/jtlm/JTLMException.java | Java | gpl-3.0 | 598 |
(function($){
/*
* VGA, SVGA, QVGA
*/
libDraw.ns('risc.hw.vga');
// Text mode...
//
/*
CGA 16 colors pallete:
*/
var _CGA_PALLETE = [
'#000000',
'#0000AA',
'#00AA00',
'#00AAAA',
'#AA0000',
'#AA00AA',
'#AA5500',
'#AAAAAA',
... | natemago/primer | src/hw/vga.js | JavaScript | gpl-3.0 | 5,034 |
<?php
/**
* @name Required
* Ensure that the length of the given value is lower than .
*
* @package Catapult.Data.Constraints
*
* @author Cyril Nicodème
* @version 1.0
*
* @since 04/2015
*
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace Catapult\Data\Constraints;
class Max... | cnicodeme/Catapult | data/constraints/maxlength.php | PHP | gpl-3.0 | 770 |
/*
===========================================================================
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/game/Actor.cpp | C++ | gpl-3.0 | 82,129 |
isc.defineClass("BrewClubs", "myWindow").addProperties({
initWidget: function(initData){
this.Super("initWidget", arguments);
this.BrewClubsDS = isc.myDataSource.create({
cacheAllData: false,
dataURL: serverPath + "BrewClubs.php",
showFilterEditor: true,
fields:[
{name: "clubID", primaryKey: true, ... | braddoro/cabrew | bluehost/smart/client/BrewClubs.js | JavaScript | gpl-3.0 | 1,399 |
class CreateTopics < ActiveRecord::Migration[5.0]
def change
create_table :topics do |t|
t.belongs_to :forum, index: true
t.belongs_to :author, :polymorphic => true, index: true
t.string :name
t.text :about
t.integer :hits, :default => 0
t.integer :posts_count, :default => 0
... | curriculr/curriculr | db/migrate/20130127014729_create_topics.rb | Ruby | gpl-3.0 | 752 |
#!/usr/bin/env python
from Media import Media
class Movie(Media):
"""Inherits Media.
Attributes:
section_type: The type of library this is (i.e. "TV Shows")
title: The title of the media item
natural_start_time: The scheduled start time before any shifting happens.
natural_en... | justinemter/pseudo-channel | src/Movie.py | Python | gpl-3.0 | 1,306 |
/* eslint-disable react/prop-types */
/* eslint-disable react/destructuring-assignment */
/* eslint-disable react/prefer-stateless-function */
import React, { Component } from 'react';
import IconButton from '@material-ui/core/IconButton';
import CloseIcon from '@material-ui/icons/Close';
import { withStyles } from '@m... | linea-it/dri | frontend/landing_page/src/pages/Home/partials/ModalInterfaces/CloseModal.js | JavaScript | gpl-3.0 | 772 |
#include "./graphics/texture.h"
#include "./image/image.h"
#include "./utils/log.h"
#include "./utils/timer.h"
#include <string>
using namespace std;
namespace Splash
{
/*************/
Texture::Texture(RootObject* root)
: GraphObject(root)
{
init();
}
/*************/
Texture::~Texture()
{
#ifdef DEBUG
... | sat-metalab/splash | src/graphics/texture.cpp | C++ | gpl-3.0 | 897 |
/*
* Copyright (c) 2005, Stephan Reiter <stephan.reiter@students.jku.at>,
* Christian Wressnegger <christian.wressnegger@students.jku.at>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are... | jzarl/inVRs | tools/libraries/Particles/ParticleType.cpp | C++ | gpl-3.0 | 4,196 |
<?php
/**
* TextSanitizer extension
*
* You may not change or alter any portion of this comment or credits
* of supporting developers from this source code or any supporting source code
* which is considered copyrighted (c) material of the original comment or credit authors.
* This program is distributed in the h... | labscoop/xortify | azure/class/textsanitizer/flash/config.php | PHP | gpl-3.0 | 974 |
package mx.gob.jovenes.guanajuato.activities;
import android.app.ProgressDialog;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.Snackbar;
import android.support.design.widget.TabLayout;
import android.support.v4.view.ViewPager;
impo... | leonardolb95/RegistroAEventos | app/src/main/java/mx/gob/jovenes/guanajuato/activities/EstadisticasActivity.java | Java | gpl-3.0 | 4,568 |
import { includes } from 'lodash';
import { NPC } from '../../../../../shared/models/npc';
import { Currency } from '../../../../../shared/interfaces/holiday';
import { SantasPresents } from '../../../../quests';
export const setup = async (npc: NPC) => {
npc.hostility = 'Never';
npc.affiliation = 'Frosty Friend... | seiyria/landoftherair | src/server/scripts/npc/holiday/christmas/santa.ts | TypeScript | gpl-3.0 | 3,257 |
#---LICENSE----------------------
'''
Copyright 2014 Travel Modelling Group, Department of Civil Engineering, University of Toronto
This file is part of the TMG Toolbox.
The TMG Toolbox is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as publ... | TravelModellingGroup/TMGToolbox | TMGToolbox/src/XTMF_internal/return_boardings.py | Python | gpl-3.0 | 6,999 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ManageBean;
import com.hp.hpl.jena.ontology.DatatypeProperty;
import com.hp.hpl.jena.ontology.Individual;
import com.hp.hpl.jena.ontology.ObjectProperty;
import com.hp.hpl.jena.ontology.OntClass;
import com.hp.h... | jimaguere/Maskana-Gestor-de-Conocimiento | src/java/ManageBean/LineaInvestigacionBean.java | Java | gpl-3.0 | 9,867 |
package tmp.generated_xhtml;
import cide.gast.*;
import cide.gparser.*;
import cide.greferences.*;
import java.util.*;
public class Content_sub_Choice124 extends Content_sub_Choice1 {
public Content_sub_Choice124(Element_acronym element_acronym, Token firstToken, Token lastToken) {
super(new Property[] {
... | ckaestne/CIDE | CIDE_Language_XML_concrete/src/tmp/generated_xhtml/Content_sub_Choice124.java | Java | gpl-3.0 | 837 |
<?php echo do_shortcode( '[ai1ec view="stream"]' ); ?> | briancompton/knightsplaza | enceinte/wp-content/themes/knightsplaza/inc/home-kp-events.php | PHP | gpl-3.0 | 55 |
namespace ConsoleApplication1.Entidades
{
public class Perfil
{
public string Tipo { get; set; }
public Entrega Entrega { get; set; }
}
}
| xxneeco83xx/Mapper | ConsoleApplication1/ConsoleApplication1/Entidades/Perfil.cs | C# | gpl-3.0 | 181 |
class Solution(object):
def intersection(self, nums1, nums2):
"""
:type nums1: List[int]
:type nums2: List[int]
:rtype: List[int]
"""
result = []
for i in nums1:
if i in nums2 and i not in result:
result.append(i)
return res... | CharlotteLock/LeetCode | 349. Intersection of Two Arrays.py | Python | gpl-3.0 | 324 |
/*****************************************************************************
* VATA Tree Automata Library
*
* Copyright (c) 2011 Ondra Lengal <ilengal@fit.vutbr.cz>
*
* Description:
* Operations for the command-line interface to the VATA library.
*
******************************************************... | ondrik/libvata | cli/operations.hh | C++ | gpl-3.0 | 7,750 |
#!/usr/bin/python
# BSD Licensed, Copyright (c) 2006-2008 MetaCarta, Inc.
import sys, os, traceback
import cgi as cgimod
from web_request.response import Response
import urllib
import StringIO
class ApplicationException(Exception):
"""Any application exception should be subclassed from here. """
status_cod... | guolivar/totus-niwa | service/thirdparty/featureserver/web_request/handlers.py | Python | gpl-3.0 | 10,134 |
"""
Mopaq archive format found in Blizzard titles Diablo 1.0 and later
Implemented according to info from http://www.zezula.net
"""
import struct, hashlib, sys
from collections import namedtuple
USERDATA_MAGIC = b'MPQ\x1A'
FILEHEADER_MAGIC = b'MPQ\x1B'
HET_MAGIC = b'HET\x1A'
BET_MAGIC = b'BET\x1A'
BITMAP_MAGIC = b'p... | Schala/format-scripts | mpq.py | Python | gpl-3.0 | 5,804 |
using System.Drawing;
using System.Drawing.Imaging;
using System.Runtime.InteropServices;
namespace GitExtUtils.GitUI.Theming
{
public abstract class BmpTransformation
{
private readonly Bitmap _bmp;
protected const int B = 0;
protected const int G = 1;
protected const int R = ... | EbenZhang/gitextensions | GitExtUtils/GitUI/Theming/BmpTransformation.cs | C# | gpl-3.0 | 1,622 |
#include "common.h"
#include "SoundMngr.h"
#include <FOnlineFileManager/FileManager.hpp>
//#include <SimpleLeakDetector/SimpleLeakDetector.hpp>
int SoundManager::Init()
{
if(active==true) return 1;
FONLINE_LOG("SoundManager Init\n");
if (!fm.Init(opt_masterpath.c_str(), opt_critterpath.c_str(), opt_... | alexknvl/fonline | src/FOnlineClient/SoundMngr.cpp | C++ | gpl-3.0 | 10,196 |
// <copyright file="RegistryAction.cs" project="SevenUpdate.Base">Robert Baker</copyright>
// <license href="http://www.gnu.org/licenses/gpl-3.0.txt" name="GNU General Public License 3" />
namespace SevenUpdate
{
using System.ComponentModel;
using System.Runtime.Serialization;
using ProtoBuf;
/// <su... | robertbaker/SevenUpdate | Source/SevenUpdate.Base/RegistryAction.cs | C# | gpl-3.0 | 908 |
import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), "./etc/"))
sys.path.append(os.path.join(os.path.dirname(__file__), "./lib/"))
from sheepsense.webapp import app as application
if __name__ == "__main__":
application.run()
| basbloemsaat/sheepsense_v2 | wsgi.py | Python | gpl-3.0 | 255 |
using System;
using System.Collections.Generic;
using Server;
using Server.Network;
using Server.Mobiles;
namespace Server.Items
{
public class VialOfArmorEssence : Item, IPetBooster
{
public override int LabelNumber { get { return 1113018; } } // Vial of Armor Essence
public TimeSpan Duration { ge... | greeduomacro/xrunuo | Scripts/Distro/Items/Skill Items/Animal Taming/VialOfArmorEssence.cs | C# | gpl-3.0 | 2,810 |
from setuptools import setup, find_packages
version = {}
with open('swk_casp/version.py') as f:
exec(f.read(), version)
url = 'https://github.com/trueneu/swiss-knife'
setup(name='swk_casp',
version=version['__version__'],
packages=find_packages(),
install_requires=[
'swk>=0.0.4a4',
... | trueneu/swiss-knife | swk_plugins/swk_casp/setup.py | Python | gpl-3.0 | 1,746 |
using UnityEngine;
using System.Collections;
public class projectileAI : MonoBehaviour
{
public float speed = 25;
void Start()
{
Vector3 newVelocity = Vector3.zero;
newVelocity.y = speed;
GetComponent<Rigidbody>().velocity = newVelocity;
}
// Update is called once per fr... | elmarjuz/gdp | Assets/SCRIPTS/projectileAI.cs | C# | gpl-3.0 | 359 |
package com.fr.design.scrollruler;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;
import com.fr.base.BaseUtils;
import com.fr.base.GraphHelper;
import com.fr.base.ScreenResolution;
import com.fr.base.Style;
import com.fr.base.Utils;
import com.fr.design.file.HistoryTemplat... | fanruan/finereport-design | designer_base/src/com/fr/design/scrollruler/VerticalRulerUI.java | Java | gpl-3.0 | 3,640 |
<?php defined( 'ABSPATH' ) or die( 'Restricted access' );
class gPersianDateCalendar extends gPersianDateModuleCore
{
public static function build( $atts = [], $current_time = NULL )
{
global $wpdb;
$current_date = gPersianDateDate::getByCalfromObject( $current_time, ( isset( $atts['calendar'] ) ? $atts['cale... | geminorum/gpersiandate | includes/calendar.class.php | PHP | gpl-3.0 | 11,713 |
<?php
use DataFX\DataFX;
use DataFX\Table;
use DataFX\Column;
use DataFX\ColumnValue;
use DataFX\Record;
use DataFX\RecordColumn;
use PhoenixSNS\Objects\UserPresenceStatus;
use PhoenixSNS\Objects\UserProfileVisibility;
/*
$tables[] = new Table("RealMoneyTradingResources", "rmtresource_", array
(
// ... | alcexhim/PhoenixSNS | Tenant/Include/Modules/001-Setup/Tables/RealMoneyTradingResources.inc.php | PHP | gpl-3.0 | 804 |
<?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 ... | ankitagarwal/moodle | report/infectedfiles/lang/en/report_infectedfiles.php | PHP | gpl-3.0 | 2,034 |
<?php
/**
* Domainer Template Functions
*
* @package Domainer
* @subpackage Utilities
*
* @api
*
* @since 1.0.0
*/
/**
* Filter the content to replace the domain name.
*
* @since 1.1.2 Use property_exists() to check if domain_id exists on blog object.
* @since 1.0.0
*
* @global \WP_Site $current_blog Th... | dougwollison/domainer | includes/functions-template.php | PHP | gpl-3.0 | 1,891 |
package main
import (
"encoding/json"
"flag"
"fmt"
"log"
"net/http"
"os"
"runtime"
"time"
"github.com/gorilla/handlers"
"github.com/gorilla/mux"
)
const (
WIDTH = 19
HEIGHT = 19
)
var hub map[string]*Room = make(map[string]*Room)
type player struct {
Name string
Score int
Index int
}
type coord s... | abombard/gomoku | main.go | GO | gpl-3.0 | 8,038 |
module.exports = function (grunt) {
var exec = require('child_process').exec;
var rimraf = require('rimraf');
var fs = require('fs');
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
connect: {
server: {
options: {
... | gengen1988/bootplate | Gruntfile.js | JavaScript | gpl-3.0 | 5,163 |
package de.grovie.renderer.GL2;
import java.nio.IntBuffer;
import javax.media.opengl.GL2;
import de.grovie.exception.GvExRendererBufferSet;
import de.grovie.exception.GvExRendererDrawGroup;
import de.grovie.exception.GvExRendererVertexArray;
import de.grovie.renderer.GvBufferSet;
import de.grovie.renderer.GvContext;... | grovie/grovie | grovie/src/de/grovie/renderer/GL2/GvContextGL2.java | Java | gpl-3.0 | 1,449 |
/*
* This file is part of the L2J Mobius project.
*
* 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 p... | karolusw/l2j | game/data/scripts/handlers/telnethandlers/HelpHandler.java | Java | gpl-3.0 | 3,766 |
# -*- coding: utf-8 -*-
#
# forms_function.py - Function Flask Forms
#
from flask_babel import lazy_gettext
from flask_wtf import FlaskForm
from wtforms import BooleanField
from wtforms import DecimalField
from wtforms import SelectField
from wtforms import StringField
from wtforms import SubmitField
from wtforms impor... | kizniche/Mycodo | mycodo/mycodo_flask/forms/forms_function.py | Python | gpl-3.0 | 3,125 |
<?php
namespace Autobahn\Cli;
use Symfony\Component\Console\Formatter\OutputFormatterStyle;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
/**
* Class Application
* @package Autobahn\Cli
*/
class Application extends \Symfony\Component\Console\Application
{... | mrgrain/autobahn-cli | src/Application.php | PHP | gpl-3.0 | 640 |
var class_undoable =
[
[ "Undoable", "class_undoable.html#a9b5187143377380164baa7bda8756b30", null ],
[ "execute", "class_undoable.html#a8ce5a456598a27152d873ebaeb063e00", null ],
[ "isClearingUndoRedo", "class_undoable.html#a58b3ab47ca3687f314542ef72497b858", null ],
[ "isExecutable", "class_undoable.h... | Ryoga-Unryu/pidgirl-engine | doc/html/class_undoable.js | JavaScript | gpl-3.0 | 612 |
using CP77.CR2W.Reflection;
namespace CP77.CR2W.Types
{
[REDMeta]
public class RemoteBreach : ActionBool
{
public RemoteBreach(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name) { }
}
}
| Traderain/Wolven-kit | CP77.CR2W/Types/cp77/RemoteBreach.cs | C# | gpl-3.0 | 215 |
#!/usr/bin/env python3
# encoding: utf-8
# Copyright (C) 2020 Space Science and Engineering Center (SSEC),
# University of Wisconsin-Madison.
#
# 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 F... | davidh-ssec/polar2grid | polar2grid/readers/viirs_sdr.py | Python | gpl-3.0 | 21,308 |
# -*- coding: utf-8 -*-
from django.db.models import Q
from django.conf import settings
from django.contrib.auth.models import Permission, Group
from django.utils.html import escape
from ajax_select import register, LookupChannel
from .models import (
Attribute,
ServerAttribute,
Package,
Property,
... | migasfree/migasfree | migasfree/server/lookups.py | Python | gpl-3.0 | 7,455 |
/* IcosaMapper - an rpg map editor based on equilateral triangles that form an icosahedron
* Copyright (C) 2013 Ville Jokela
*
* 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... | razalhague/IcosaMapper | src/main/java/org/penny_craal/icosamapper/map/layerrenderers/LayerRendererHelper.java | Java | gpl-3.0 | 2,008 |
# frozen_string_literal: true
require 'pio/open_flow13/meter'
describe Pio::OpenFlow13::Meter do
describe '.new' do
When(:meter) { Pio::OpenFlow13::Meter.new(options) }
context 'with 1' do
Given(:options) { 1 }
Then { meter.meter_id == 1 }
end
end
end
| trema/pio | spec/pio/open_flow13/meter_spec.rb | Ruby | gpl-3.0 | 283 |
<?php
namespace Orange\SearchBundle\DependencyInjection\Compiler;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\Reference;
/**
* Description of FilterCompilerPass
*
* @author aameziane
... | Solerni-R1-1/SearchBundle | DependencyInjection/Compiler/FilterCompilerPass.php | PHP | gpl-3.0 | 1,087 |
package net.bemacized.grimoire.data.retrievers.storeretrievers;
import net.bemacized.grimoire.data.models.card.MtgCard;
import net.bemacized.grimoire.data.models.scryfall.ScryfallCard;
import net.bemacized.grimoire.data.retrievers.ScryfallRetriever;
import java.util.HashMap;
import java.util.logging.Level;
public cl... | BeMacized/Grimoire | src/main/java/net/bemacized/grimoire/data/retrievers/storeretrievers/ScryfallPriceRetriever.java | Java | gpl-3.0 | 1,724 |
package com.leosoft.eam.userphoto;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.provider.MediaStore;
import com.leosoft.eam.utils.InfoText;
/**
* Created by Mickael on 10/10/2016.
*/
public class ImagePickerManager extends PickerManager {
public ImagePick... | SunnyLeo2008/ExpenseAccountManage | app/src/main/java/com/leosoft/eam/userphoto/ImagePickerManager.java | Java | gpl-3.0 | 937 |
/**
* Created on 28-Jun-2004
*
*/
package coaching.model;
/**
* An example Car class.
*/
public class Car extends AbstractVehicle implements CarInterface {
/**
* Instantiates a new car.
*/
public Car() {
super(new PetrolEngine());
}
/**
* Instantiates ... | Martin-Spamer/java-coaching | src/main/java/coaching/model/Car.java | Java | gpl-3.0 | 480 |
# Maked by Mr. Have fun! Version 0.2
# Shadow Weapon Coupons contributed by BiTi for the Official L2J Datapack Project
# Visit http://forum.l2jdp.com for more details
import sys
from com.l2scoria.gameserver.model.quest import State
from com.l2scoria.gameserver.model.quest import QuestState
from com.l2scoria.gameserver.... | zenn1989/scoria-interlude | L2Jscoria-Game/data/scripts/quests/408_PathToElvenwizard/__init__.py | Python | gpl-3.0 | 12,096 |
class Foo(object):
def __init__(self):
self.frotz = {'ping':'pong'}
class Bar(Foo):
def __init__(self, frob, frizzle):
Foo.__init__(self)
self.frotz['foo'] = 'bar'
self.frazzle = frizzle
bar = Bar(1,2)
print("frotz:", bar.frotz)
print("frazzle:", bar.frazzle) | ozzmeister00/textAdventureA | sandbox.py | Python | gpl-3.0 | 312 |
'use strict';
angular.module('risevision.common.header')
.controller('CompanySettingsModalCtrl', ['$scope', '$modalInstance',
'updateCompany', 'companyId', 'countries', 'REGIONS_CA', 'REGIONS_US',
'TIMEZONES', 'getCompany', 'regenerateCompanyField', '$loading',
'humanReadableError', 'userState', 'userAut... | Rise-Vision/rise-vision-app-launcher | web/scripts/common-header/controllers/ctr-company-settings-modal.js | JavaScript | gpl-3.0 | 6,693 |
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from mock import patch
from django.test import TestCase as DjangoTestCase
from tastypie.test import ResourceTestCase as TastypieResourceTestCase
from baobab.utils.mock import MockSN, MockLOG
class TestCase(DjangoTestCase):
def setUp(self, *args, *... | Gandi/baobab | baobab/utils/test.py | Python | gpl-3.0 | 1,573 |
#include "pluginmanager.h"
#include "plugininterface.h"
#include "server.h"
#include "../Utilities/CrossDynamicLib.h"
ServerPluginManager::ServerPluginManager(Server *ser) : server(ser), m_settings("config", QSettings::IniFormat)
{
loadPlugins();
}
QSettings &ServerPluginManager::settings()
{
return m_setting... | coyotte508/pokemon-online | src/Server/pluginmanager.cpp | C++ | gpl-3.0 | 489 |
var Main = require('../src/Main.purs');
var initialState = require('../src/Types.purs').init;
var debug = process.env.NODE_ENV === 'development'
if (module.hot) {
var app = Main[debug ? 'debug' : 'main'](window.puxLastState || initialState)();
app.state.subscribe(function (state) {
window.puxLastState = state;
})... | input-output-hk/rscoin-haskell | block-explorer/support/index.js | JavaScript | gpl-3.0 | 404 |
/*
Travel Expense: travel expense tracking application
Copyright (C) 2015 Chris Lin peijen@ualberta.ca
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 Lice... | peijen/TravelExpense | src/ca/ualberta/cs/peijen_travelexpense/ClaimInfoActivity.java | Java | gpl-3.0 | 4,796 |
module FoodsoftSplitManufacturer
module AddManufacturerToPdfControllers
def self.included(base) # :nodoc:
base.class_eval do
before_filter :foodsoft_split_manufacturer_set_options, only: [:show, :foodcoop_doc], if: -> { FoodsoftSplitManufacturer.enabled? }
private
def foodsoft_spl... | foodcoop-adam/foodsoft | lib/foodsoft_split_manufacturer/lib/foodsoft_split_manufacturer/add_manufacturer_to_pdf_controllers.rb | Ruby | gpl-3.0 | 955 |
#ifndef UTILITY_H
#define UTILITY_H
#include <string>
#include <ctime>
#include <cstdio>
#include <iostream>
const std::string log_file="assembly_log_details";
const std::string solid_kmers_file="solid_kmers";
const std::string assembly_file="contigs.fasta";
extern std::string prefix;// In case if you a... | SaraEl-Metwally/LightAssembler | Utility.hpp | C++ | gpl-3.0 | 1,271 |