id stringlengths 64 64 | content stringlengths 500 100k | language stringclasses 29
values | path stringlengths 4 333 | repo stringlengths 5 116 | license stringclasses 15
values | size int64 500 100k | lines int64 26 8.06k | source stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|
5c5fb97c7ce0b0262c695824cf828cb66ffba9f571bf01cdb0ceec7096d14179 | using Nikse.SubtitleEdit.Core;
using Nikse.SubtitleEdit.Logic;
using System.Collections.Generic;
using System.Windows.Forms;
namespace Nikse.SubtitleEdit.Forms
{
public sealed partial class YouTubeAnnotationsImport : Form
{
public YouTubeAnnotationsImport(Dictionary<string, int> stylesWithCou... | C# | src/Forms/YouTubeAnnotationsImport.cs | xylographe/subtitleedit | gpl-3.0 | 1,890 | 57 | codeparrot/github-code |
785a30881672e4766a6cc18d4bb61a6d8c50734c48a2ce0fcacac1a24e5c73ae | package net.shutingg.leetCode;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class WordAbbreviationSet {
private Map<String, List<String>> abbMap;
/*
* @param dictionary: a list of words
*/public WordAbbreviationSet(String[] dictionary) {
... | Java | src/main/java/net/shutingg/leetCode/WordAbbreviationSet.java | afatcat/LeetCodePractice | gpl-3.0 | 1,236 | 46 | codeparrot/github-code |
c7b8680b29e22434b8bf667baaccf291df29dc96edbb4331bec942c1fee95fa8 | # Copyright 2015 VPAC
#
# This file is part of Karaage.
#
# Karaage 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.
#
# Karaage is dist... | Python | karaage/plugins/kgapplications/views/base.py | Karaage-Cluster/karaage-debian | gpl-3.0 | 12,381 | 348 | codeparrot/github-code |
f12be53556f7595b19465f2beb3c434546e7d272b22f88b5aeb56dcbaab64d35 | /*
minqlbot - A Quake Live server administrator bot.
Copyright (C) Mino <mino@minomino.org>
This file is part of minqlbot.
minqlbot 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... | C | quake_common.h | razers3dge/Modified-Minoqlbot | gpl-3.0 | 4,240 | 107 | codeparrot/github-code |
52a3250aadea1229e4e169f62e7bfd1ab542df3e8f597e31269b0277ea3a8d6f | //=require vendor/jquery-latest.js
//=require vendor/bootstrap.js
//=require vendor/jquery.fancybox.pack.js
//=require custom
//=require DeferCSS
//=require sidebar.js
//old, points to antoine-vastel.fr, require recFp
//this is where we apply opacity to the arrow
$(window).scroll( function(){
//get scroll... | JavaScript | src/_assets/javascripts/main.js | rudametw/rudametw.github.io | gpl-3.0 | 2,368 | 85 | codeparrot/github-code |
95b84021ad1ba3822844a000711594729eeb5a3c04d708db2c3b4f32bf0f8ecf | /****************************************************************************/
/// @file MSNet.cpp
/// @author Christian Roessel
/// @author Daniel Krajzewicz
/// @author Jakob Erdmann
/// @author Clemens Honomichl
/// @author Eric Nicolay
/// @author Mario Krumnow
/// @author Michael Behrisch
/// @date Tu... | C++ | src/microsim/MSNet.cpp | rudhir-upretee/Sumo17_With_Netsim | gpl-3.0 | 26,128 | 805 | codeparrot/github-code |
98174d1fd84fcac634e6c10ce9f670f4439bade710fc74ad91159868fa9afcc0 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!--STYLE SHEETS BELOW-->
<link href="../../stylesheets/form.css" media="screen, projection" rel="stylesheet" type="text/css" />
<script src='https://www.google.com/recaptcha... | PHP | sections/hire-me/contact.php | jakeehall/Personal-Website | gpl-3.0 | 5,337 | 149 | codeparrot/github-code |
d4580bd781df0edc64fc8843006c5050ead7da65ae42fbc4d8e3011b129d7955 | import java.util.StringTokenizer;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.PrintWriter;
import java.math.BigInteger;
public class ATOMS {
public static void main(String[] args) throws I... | Java | SPOJ/ATOMS.java | suchithjn225/competitive-programming | gpl-3.0 | 1,097 | 35 | codeparrot/github-code |
1df1ed053878524e3356c2b0869c8d6950c324429e94c452e0629bda7170e2f4 | #!/usr/bin/perl -w
# This file is part of ktools.
#
# ktools 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.
#
# ktools is distributed... | Perl | viewtimes/viewtimes.pl | kbzod/ktools | gpl-3.0 | 1,629 | 67 | codeparrot/github-code |
73965824bd993ed762130d3cc321af5143366a64a6ec50d0652b7b8bc2e81d63 | /*
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 it ... | C | test/libsolidity/util/TestFunctionCall.h | ethereum/solidity | gpl-3.0 | 6,255 | 156 | codeparrot/github-code |
884d69c4224819586c45140a18a7d153bc59624be52eda800d6ee57791ed6d5f | #define welcomeText 3200
#define tkWarningText 3500
class WelcomeMessage {
idd = -1;
duration = 1e+011;
name= "WelcomeMessage";
onLoad = "uiNamespace setVariable ['WelcomeMessage', _this select 0]";
class controlsBackground {
class WelcomeMessage_Text:w_RscText
{
idc = welcomeText;
type = CT_STRUCTURED... | C++ | client/systems/playerMenu/dialog/welcome.hpp | Sandbird/A3Wasteland | gpl-3.0 | 1,182 | 56 | codeparrot/github-code |
328794fb7b34b5ed2f3824d6adb53d1f82adb832a8cc3d67016db09765cdac7c | package org.kevoree.modeling.generator;
import org.apache.velocity.Template;
import org.apache.velocity.VelocityContext;
import org.apache.velocity.app.Velocity;
import org.apache.velocity.app.VelocityEngine;
import org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader;
import org.kevoree.modeling.ast.*;... | Java | generator/src/main/java/org/kevoree/modeling/generator/Generator.java | kevoree-modeling/framework | gpl-3.0 | 8,353 | 178 | codeparrot/github-code |
976d66f7150262bfdfdbd8c50f76199379a3fa73d0ab1c0b41c15be109fa5884 | /*
* Copyright (c) 2017. Nuvolect 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.
*
* Contact legal@nuvolect.... | Java | SecureSuite/src/main/java/com/nuvolect/securesuite/license/Whitelist.java | Nuvolect/SecureSuite-Android | gpl-3.0 | 1,847 | 56 | codeparrot/github-code |
08534a1ad5d222dbdd6f6900050551c27fdd0df32d7277a4f8c4dc7b8db3ab04 | var TimeRangeParser = function(){
var _getStartTime = function(timeRange, baseDate){
if(timeRange){
var startTimeStr = timeRange.split('-')[0];
if(startTimeStr.length == 5)
return parseTime(startTimeStr, baseDate);
else
throw new Error(startTimeStr + ' is invalid time!');
... | JavaScript | lib/timeRangeParser.js | jacol/gdzietrening.pl | gpl-3.0 | 1,305 | 45 | codeparrot/github-code |
cc3f40fdaa257b7b8124e1f2f123a77040a64dbf18418f73ed60eb199a405e8e | /**
* Copyright (C) 2011-2012 Tim Besard <tim.besard@gmail.com>
*
* All rights reserved.
*/
//
// Configuration
//
// Include guard
#ifndef REPOSITORYINTERFACE_H_
#define REPOSITORYINTERFACE_H_
// Library includes
#include <QtCore/QObject>
#include <QtCore/QStateMachine>
#include <QtCore/QSettings>
#include <QtC... | C | src/repositoryinterface.h | MIRAvzw/codri-client | gpl-3.0 | 5,310 | 157 | codeparrot/github-code |
896ce474e9a1503bb3b062e43b93fa526c38518b1c6ee3fb4c53c7b36b4586ac | /**
* OpenKM, Open Document Management System (http://www.openkm.com)
* Copyright (c) 2006-2015 Paco Avila & Josep Llort
*
* No bytes were intentionally harmed during the development of this application.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GN... | Java | src/main/java/com/openkm/frontend/client/widget/searchin/GroupPopup.java | papamas/DMS-KANGREG-XI-MANADO | gpl-3.0 | 12,399 | 383 | codeparrot/github-code |
af27dd8aba6a0b3292271deaed2c1782de32607762cde3a8711ab73b55d5765d | /* Copyright (C) 2012-2014 Carlos Pais
*
* 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... | C++ | editor/actions/dialogue.cpp | fr33mind/Belle | gpl-3.0 | 7,477 | 316 | codeparrot/github-code |
eab1a060f7a41f23709f0e6bad346a91d4d85e1c2c2fecdcca8a3e926ad191da | package Main;
import java.util.Scanner;
public class Main {
/**
* @param args
*/
public static void main(String[] args) {
Scanner sIn = new Scanner(System.in);
Agenda agenda = new Agenda();
do {
System.out.println("\nMenu de la Agenda");
System.out.println("1. Agregar Persona");
System.out.pri... | Java | 2014-Paradigmas [Feb 08] [Agenda]/src/Main/Main.java | JhonPolitecnico/Proyectos-2014 | gpl-3.0 | 1,559 | 74 | codeparrot/github-code |
5512a77d5d81545275cc2148963a74bbfc3f9efa35ee330cb9d456c81b7b25b6 | using System;
using System.Collections.Generic;
using System.Text;
using MonoTorrent.Common;
namespace MonoTorrent.Client
{
class StoppingMode : Mode
{
WaitHandleGroup handle = new WaitHandleGroup();
public override TorrentState State
{
get { return TorrentState.Stopping; }
}
public StoppingMode(Torr... | C# | MonoTorrent/MonoTorrent/MonoTorrent.Client/Modes/StoppingMode.cs | Immortalt/imt-wanke-client | gpl-3.0 | 1,363 | 57 | codeparrot/github-code |
1a0510754a011771f2089d5ffe7f0cc73fd30826360e25ee36129d2c7550c75a | #region Copyright & License Information
/*
* Copyright 2007-2020 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, either version 3 of
* the Licen... | C# | OpenRA.Mods.Common/Traits/Attack/AttackFrontal.cs | tysonliddell/OpenRA | gpl-3.0 | 1,531 | 51 | codeparrot/github-code |
7b973f4faadc94d924a3809bff9e0a747f53bb0b9860c5ed71e005fe5cd4f4fc | /*
¹ØÓÚÕâ¸öÎļþµÄÏêϸ˵Ã÷£¬Çë²Î¼ûº¯Êý½Ó¿ÚÎĵµ
*/
#ifndef ServiceManagerInterface_H
#define ServiceManagerInterface_H
#include "mmcp_typedef.h"
#include "SICommonType.h"
#ifdef __cplusplus
extern "C"
{
#endif
/*
* Æô¶¯Ñ¡ÏÒ壬ÓÃÓÚÍⲿ½Ó¿Ú
*/
#define SM_EPG 0x01 //Æô¶¯EPG
#define SM_U... | C | TestCase/include/dtv/ServiceManager/ServiceManagerInterface.h | footoflove/coship | gpl-3.0 | 18,049 | 380 | codeparrot/github-code |
e3fc3cd20008c778c9885b0e28e6b43f39fd3ac485e7b250acfa45a14ce36455 | package com.jw.aop.aspect;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.jw.aop.JoinPoint;
import com.jw.aop.JointPointParameter;
import com.jw.aop.annotation.Around;
import com.jw.aop.annotation.Aspect;
import com.jw.aop.annotation.Pointcut;
import com.jw.cache.Cache;
import com.jw.cache.CacheM... | Java | jw-parent/jw-core/src/main/java/com/jw/aop/aspect/CacheableAspect.java | menyouping/jw | gpl-3.0 | 2,531 | 77 | codeparrot/github-code |
bf8081b5268fcea9958736c305cd1a4a2efe84fee6904fce1a2eb6562f0a14e3 | /*
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) 2012 Роман Браун <firdragon76@gmail.com>
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, ... | C | client/testthread.h | Horsmir/hstest | gpl-3.0 | 1,838 | 65 | codeparrot/github-code |
b931c0b5efdf58cbfcaf42cb3d87c98c0463a5dd0347dc4158dc5dbd8ca042c7 | <?php
define('NOTE_DISPLAY_NOTE', 0x01);
define('NOTE_NODISPLAY_NBRNOTES', 0x02);
define('NOTE_DISPLAY_BLOCK', 0x04);
class Note
{
## Public Methods ##
function Note($script, $idprov, $script_path, $notation_scale, $module_folder = '', $options = 0)
{
$this->module_folder... | PHP | kernel/framework/content/note.class.php | janus57/PHPBoost_v3c | gpl-3.0 | 7,637 | 287 | codeparrot/github-code |
8ca367605db5f0926a1cc5238806ac9c38c0cfeb587e5286ebe1d5067b2e1493 | /*
* 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 view;
import javafx.application.Application;
import javafx.stage.Stage;
/**
*
* @author Gabriel
*/
public cl... | Java | ProblemaTransporteVogel/src/view/ChamadaTelaDescricao.java | GabrielRodriguesS/ProblemaTransporte | gpl-3.0 | 686 | 31 | codeparrot/github-code |
42292e4e573d983464066add494b46da0c882b89e32f2ca02efc2c1c5b53bb0b | /*
* Mars Simulation Project
* EatDrinkMeta.java
* @date 2021-10-21
* @author Scott Davis
*/
package org.mars_sim.msp.core.person.ai.task.meta;
import org.mars_sim.msp.core.Msg;
import org.mars_sim.msp.core.Unit;
import org.mars_sim.msp.core.equipment.ResourceHolder;
import org.mars_sim.msp.core.person... | Java | mars-sim-core/src/main/java/org/mars_sim/msp/core/person/ai/task/meta/EatDrinkMeta.java | mars-sim/mars-sim | gpl-3.0 | 5,108 | 179 | codeparrot/github-code |
fe2bcdaac32978b0d189ea776bb6cdd093faa9e478d3de632b1aefb01ab3f758 | # -*- coding: utf-8 -*-
""" Projy template for Python script. """
# system
from datetime import date
# parent class
from projy.templates.ProjyTemplate import ProjyTemplate
# collectors
from projy.collectors.AuthorCollector import AuthorCollector
class PythonScriptTemplate(ProjyTemplate):
""" Projy template for a... | Python | projy/templates/PythonScriptTemplate.py | stephanepechard/projy | gpl-3.0 | 1,236 | 46 | codeparrot/github-code |
721f9cd4d50378bc133e4a3479a50c12b0649dd73ccc808e77b4268f58fbcc41 | <?php
/**
* This file is part of "PCPIN Chat 6".
*
* "PCPIN Chat 6" 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... | PHP | class/session.class.php | Dark1revan/chat1 | gpl-3.0 | 22,319 | 563 | codeparrot/github-code |
e530b3079d4674690468921da0854008b05da91b39d38d8339fdc1da1bbf56a3 | # Copyright (C) 2022 The Sipwise Team - http://sipwise.com
#
# 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 pr... | Python | repoapi/signals.py | sipwise/repoapi | gpl-3.0 | 6,714 | 193 | codeparrot/github-code |
1ba1a342daf59e1d91f739346749814b415a14ffdebf52c22b9d9b3b1c62a775 | class ShippingCost < ActiveRecord::Base
hobo_model # Don't put anything above this
fields do
shipping_method :string, :required
value :decimal, :required, :precision => 13, :scale => 5
vat :decimal, :required, :precision => 10, :scale => 2
timestamps
end
attr_accessible :... | Ruby | app/models/shipping_cost.rb | informatom/mercator | gpl-3.0 | 1,259 | 50 | codeparrot/github-code |
91e5f2a9de4de49ef9ad741c2fdac4d08209a9ff26d06b745194147c106f7ae4 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="styleshe... | HTML | admin-artist2.html | acebrianm/MinimaList | gpl-3.0 | 7,666 | 202 | codeparrot/github-code |
c82a7cf5b168be7737c1e07054f0f1c2115e437dfbd1286736bd55f2e6c14052 | // Copyright CERN and copyright holders of ALICE O2. This software is
// distributed under the terms of the GNU General Public License v3 (GPL
// Version 3), copied verbatim in the file "COPYING".
//
// See http://alice-o2.web.cern.ch/license for full licensing information.
//
// In applying this license CERN does not ... | C | Detectors/ITSMFT/MFT/base/include/MFTBase/Geometry.h | jniedzie/AliceO2 | gpl-3.0 | 4,847 | 141 | codeparrot/github-code |
fab7593b4e5587c9ede19035aae7664fb2bc9d73f167540ae0cbed1e59c48263 | /*
* Copyright (C) 2016 fernando-pucci
*
* 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... | Java | codificacao/ControleArmarios/src/br/com/etefgarcia/armarios/dao/BaseDAO.java | FernandoPucci/controleArmarios | gpl-3.0 | 1,632 | 44 | codeparrot/github-code |
8e5c01054608f1dd351562200008ef3e12aa7245ffde2e74ff1613e4a6e5614c | #include "rt_likelihood.hpp"
rt_likelihood::rt_likelihood(int a, int b, int c, int d, \
bool correct){
m_a = a;
m_b = b;
m_c = c;
m_d = d;
m_n = a + b + c + d;
if (correct){
// If either a, b, c or d = 0, we add .5 and
// adjust other variabl... | C++ | rt_likelihood.cpp | ps-pat/TetraTest | gpl-3.0 | 2,712 | 104 | codeparrot/github-code |
bc388a73b802ece41e452ee392c938172137cba83bb4644c2178f0c725096e85 | package com.java.io.udp;
public class MessageCreator {
private static final String SN_HEADER = "你好,收到你的广播信息,我是(SN):";
private static final String PORT_HEADER = "你好,收到请回电,端口(Port):";
public static String buildWithPort(int port) {
return PORT_HEADER + port;
}
public static int parsePort(Str... | Java | src/main/java/com/java/io/udp/MessageCreator.java | SnailFastGo/netty_op | gpl-3.0 | 761 | 31 | codeparrot/github-code |
089069cf1bb3802c5ce36dbc8ed43253c0a74eeacf1552ec749d6f0d978ef931 | /**
* The base template that all other ScriptBuilder templates should inherit from.
*
* A script builder template utilitiy for setting variables. These variables
* will be coupled with a script template in order to generate an actual text file.
*/
Ext.define('ScriptBuilder.templates.BaseTemplate', {
ext... | JavaScript | src/main/webapp/js/ScriptBuilder/templates/BaseTemplate.js | joshvote/ANVGL-Portal | gpl-3.0 | 5,220 | 132 | codeparrot/github-code |
e992fb11fcd029dc08cf7ff8aa821535f7fc2f7a12251512654879da6585d16b | /*
* #%L
* Eva
* %%
* Copyright (C) 2013 Abada Servicios Desarrollo (investigacion@abadasoft.com)
* %%
* 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... | JavaScript | eva-server/eva-web/src/main/webapp/ext4/src/slider/Multi.js | abada-investigacion/eva | gpl-3.0 | 28,471 | 881 | codeparrot/github-code |
6a6a0be3752d739e0e80276c34873ce783a6247a061363e991a1ad515fb68465 | <?php
/**
* @version $Id: tokenizer_base.class.php,v 1.8 2012-06-05 23:22:11 juanca Exp $
* @package VPL. Programing language tokenizer base class
* @copyright 2012 Juan Carlos Rodríguez-del-Pino
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @author Juan Carlos Rodríguez-del-Pino <jcrod... | PHP | mod/vpl/similarity/tokenizer_base.class.php | ecastro/moodle23ulpgc | gpl-3.0 | 1,162 | 49 | codeparrot/github-code |
5b506abde115ff33d464d9a4f9fe37094cdb98a32e4ff0c534e48eca528bc1ff | package de.tu_bs.wire.simwatch.ui;
import android.content.Context;
import android.widget.ListView;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import de.tu_bs.wire.simwatch.R;
import de.tu_bs.wire.simwatch.api.models.Instance;
import de.tu_bs.wire.simwatch.si... | Java | App/app/src/main/java/de/tu_bs/wire/simwatch/ui/MenuCreator.java | WiReSEP/SimWatch | gpl-3.0 | 3,336 | 89 | codeparrot/github-code |
c1dae2481c0b26f88d26476ffe2720b58d11102ed95c32ed269f9ece34f9e33e | #include "AudioEngine.h"
#include <iostream>
#include "../ErrorHandler.h"
namespace Engine
{
AudioEngine::~AudioEngine()
{
destroy();
}
bool AudioEngine::init()
{
if (Mix_Init(MIX_INIT_MP3 | MIX_INIT_OGG) == -1) {
std::cerr << "MixInit failed to initialize - " + std::s... | C++ | Engine/Audio/AudioEngine.cpp | bolkonksy/VirtualFESB | gpl-3.0 | 3,391 | 140 | codeparrot/github-code |
ed11c4275871936c058ae49390ebff544934091de4db6f3dbbae3eb1e74ac931 | c =================================================
subroutine atom_data
c - - - - - - - - - - - - - - - - - - - - - - - - -
c This subroutine stores the data for the nuclear
c charge distribution and some other constants
c
c knucl ..... Nuclear model:
c Knucl=1 Fermi mo... | FORTRAN | modqed/atom_data.f | fnevgeny/fac | gpl-3.0 | 16,209 | 463 | codeparrot/github-code |
3a544fa7088ce856e4925943269f3ed1ba61565eae584b0c0740db8af182f159 | using System;
using System.Drawing;
using System.Windows.Forms;
namespace TESVSnip.RecordControls
{
internal partial class OptionalElement : BaseElement, IOuterElementControl
{
private IElementControl innerControl;
public OptionalElement()
{
InitializeComponent();
... | C# | RecordControls/OptionalElement.cs | TESnip-Skyrim-Edition/TESV_Snip | gpl-3.0 | 2,296 | 80 | codeparrot/github-code |
8badc0e56500449a52566ef1620367c6c7e7434e50800d69d3eb44f22c837ac1 | /* $Id$
Script: TAP.js
TextAreaPlus 0.1 - A source code text editor in Javascript
License:
The GNU General Public License version 3 (GPLv3)
This file is part of TextArea+.
TextArea+ is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public Lice... | JavaScript | TAP.js | drslump/textareaplus | gpl-3.0 | 5,179 | 187 | codeparrot/github-code |
843c6c77186c34c62dfcc99ddedc929f958c488fb82df0190286cacb4ba84d60 | package chatroom;
import java.awt.Color;
import java.awt.Component;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.ListCellRenderer;
public class CustomCellRenderer extends JLabel implements ListCellRenderer<String>{
/**
*
*/
private static final long serialVersionUID = 1L;
@Overri... | Java | src/chatroom/CustomCellRenderer.java | dervel/chatroom | gpl-3.0 | 838 | 39 | codeparrot/github-code |
b256c9365150d13172f1d2d3b843c74a904b348803c101f9a3e1a31a1d188a9e | /*
Copyright 2013 David Scholberg <recombinant.vector@gmail.com>
This file is part of sysmon.
sysmon 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
(a... | C | error.c | davidscholberg/sysmon | gpl-3.0 | 1,075 | 41 | codeparrot/github-code |
148c512766b5b7d7d4ec91e79a907d405df69f00139f643a8741b0de477aceae | /***********************************************************************
This file is part of KEEL-software, the Data Mining tool for regression,
classification, clustering, pattern mining and so on.
Copyright (C) 2004-2010
F. Herrera (herrera@decsai.ugr.es)
L. Sánchez (luciano@uniovi.es)
J. Alcalá-Fdez... | Java | src/keel/Algorithms/Semi_Supervised_Learning/ADE_CoForest/Utils.java | SCI2SUGR/KEEL | gpl-3.0 | 67,771 | 2,244 | codeparrot/github-code |
07742fbda8cc86dc93f867178160621119115f9d45719d1eb2d7de4af5db8de5 | from rest_framework import serializers
from .models import Program, ContactNumber, SecondaryEmail, InstituteAddress
from django.contrib.auth.models import User
import copy
from .oauth import default_fields, user_fields
class ProgramSerializer(serializers.ModelSerializer):
class Meta:
model = Program
... | Python | user_resource/serializers.py | prateekchandan/ldap-oauth2 | gpl-3.0 | 1,772 | 58 | codeparrot/github-code |
f4f67e8e2bcc1edf6b853612dd1b820b99427ccf8e98bbe2375b8a229d0da5ce | /**
* Copyright (C) 2001-2016 by RapidMiner and the contributors
*
* Complete list of developers available at our web site:
*
* http://rapidminer.com
*
* This program is free software: you can redistribute it and/or modify it under the terms of the
* GNU Affero General Public License as published by the... | Java | rapidMiner/rapidminer-studio-core/src/main/java/com/rapidminer/tools/OperatorService.java | transwarpio/rapidminer | gpl-3.0 | 34,848 | 858 | codeparrot/github-code |
7d8f66c2a7de71a42a1a3381562f1b212b4bb16bf741f2bf81d9b9c3ed196237 | <!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Unity - Scripting API: Font.lineHeight</title>
<meta name="descript... | HTML | ScriptReference/Font-lineHeight.html | rakuten/Uinty3D-Docs-zhcn | gpl-3.0 | 10,231 | 219 | codeparrot/github-code |
ddb44570c87c90f764f1667056d165a8759f38997fc60932ebe512eee501034b |
from .Room import Room
from .Client import Client
from .Reservation import Reservation
from support import Singleton
from .ReservationSearcher import ReservationSearcher
@Singleton
class Repository(object):
def __init__(self):
self.rooms = []
self.clients = []
self.reservations = []
... | Python | models/Repository.py | morpheby/ist303-miye | gpl-3.0 | 2,779 | 76 | codeparrot/github-code |
8d22128c5a333f9950f36ebc6a330517a9a5d6bb4856232ec2f72a07f72f881d | #-------------------------------------------------------------------------------
# Copyright (c) 2012 Gael Honorez.
# 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
# http://w... | Python | src/modvault/utils.py | HaraldWeber/client | gpl-3.0 | 15,457 | 436 | codeparrot/github-code |
c67d9cb54a9677e091d7dc69bbcd3dd5e61a1bf6aa43d06988d4f57802a69fa1 | from pathlib import Path
from PySide2 import QtWidgets
import FreeCADGui as Gui
from PySide2.QtCore import Qt
civiltools_path = Path(__file__).absolute().parent.parent
class Form(QtWidgets.QWidget):
def __init__(self, etabs_obj):
super(Form, self).__init__()
self.form = Gui.PySideUic.loadUi(str... | Python | py_widget/torsion.py | ebrahimraeyat/civilTools | gpl-3.0 | 2,302 | 57 | codeparrot/github-code |
62133a3af93afe693b90b837b927a01f002da136839fca572f310c7decca41cd | /*
* Copyright (C) 2015-2017 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 that it will be useful,
* but WITHOUT A... | C | cmd/snap-confine/seccomp-support.c | syncloud/snapd | gpl-3.0 | 6,910 | 222 | codeparrot/github-code |
fb5a9dca614c20ca91154905478a6afcb0ae65fc35729b904b81be3722b5af08 | <?php
class ModelLocalisationOrderStatus extends Model {
public function addOrderStatus($data) {
foreach ($data['order_status'] as $language_id => $value) {
if (isset($order_status_id)) {
$this->db->query("INSERT INTO @@order_status SET order_status_id = " . (int)$order_status_id . ", language_id = " . (int... | PHP | admin/model/localisation/order_status.php | lingcarzy/v5cart | gpl-3.0 | 2,565 | 71 | codeparrot/github-code |
9b12d4dde717f83c9507784d385e86d3994ea440f608743eeb81a3c2550e3a6f | MOVEMENT = {
'^': (0, 1),
'v': (0, -1),
'<': (-1, 0),
'>': (1, 0)
}
def add_points(p1, p2):
return (p1[0] + p2[0], p1[1] + p2[1])
def main():
file_data = ''
with open('input.txt', 'r') as f:
file_data = f.read().strip()
positions = [(0, 0), (0, 0)]
visiteds = [[(0, 0)], [(0, 0)]]
who = 0
for instruction... | Python | 2015/day3/part2.py | The6P4C/adventofcode | gpl-3.0 | 716 | 37 | codeparrot/github-code |
b3b466a1b18a4b9e2f390ebbf7fab9728e06f274ea5b0f033d745e7b8b64f758 | require 'input_file.rb'
################################################################################
# Copyright (C) 2015 Darrell O. Ricke, PhD
#
# 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 Found... | Ruby | app/utilities/moves_file_loader.rb | doricke/IBio | gpl-3.0 | 2,191 | 60 | codeparrot/github-code |
d27d382cc564701bc118cb6c300557978b8882bdb84c3e16b514bb569f652308 | package com.yc.bean;
import java.io.Serializable;
public class Config_question_second_kind implements Serializable{
/**
*
*/
private static final long serialVersionUID = -4149730821315702928L;
/* 创建新表 "config_question_second_kind"。 */
/* "config... | Java | HRProject/src/main/java/com/yc/bean/Config_question_second_kind.java | 3CTW/HRProject2 | gpl-3.0 | 2,358 | 66 | codeparrot/github-code |
6d4ca548cfcc11ef9925e89cbe17fa4c0c2dd941537f79afeb2c04d13151bb40 | /**
* @class OPSPortal.NavBar
* @parent OPSPortal
*
* the .NavBar object manages the interface for creating/updating any opsportal
* navigation components.
*
*
* ## Usage
*
*/
var fs = require('fs');
var AD = require('ad-utils');
var _ = require('lodash');
var __cacheValues = {}; // hash of { 'use... | JavaScript | api/services/opsportal/navbar.js | appdevdesigns/appdev-opsportal | gpl-3.0 | 40,836 | 1,272 | codeparrot/github-code |
5297ed0b883ace9feeae5eb650224ab07e8157f5993f65938ae21450cec32d29 | package org.executequery.gui;
import org.executequery.GUIUtilities;
import org.executequery.components.table.BrowserTableCellRenderer;
import org.executequery.databasemediators.DatabaseConnection;
import org.executequery.databasemediators.QueryTypes;
import org.executequery.databasemediators.spi.DefaultStatementExecut... | Java | src/org/executequery/gui/ExecuteQueryDialog.java | redsoftbiz/executequery | gpl-3.0 | 22,024 | 624 | codeparrot/github-code |
e31f69968525178995d51d8ab771c0e0ad1fdb50fe3c1e25dd96e32268353dcd | <?php
namespace App\Util;
class Util
{
public static function eGeracaoDeFamilia($nome){
$nomes_geracao_familia = [
'JULIOR',
'FILHO',
'NETO',
'SOBRINHO',
'SENIOR'
];
if(in_array($nome, $nomes_geracao_familia)){
return t... | PHP | app/Util/Util.php | XadrezSuico/XadrezSuico | gpl-3.0 | 663 | 33 | codeparrot/github-code |
9d4b27fb3b50e97e1f5c2188a6d76795f6a4b35b96732df431cd208e8660734a | """
**********
Edge Lists
**********
Read and write NetworkX graphs as edge lists.
"""
__author__ = """Aric Hagberg (hagberg@lanl.gov)\nDan Schult (dschult@colgate.edu)"""
# Copyright (C) 2004-2008 by
# Aric Hagberg <hagberg@lanl.gov>
# Dan Schult <dschult@colgate.edu>
# Pieter Swart <swart@lanl.gov>
#... | Python | biana/ext/networkx/readwrite/edgelist.py | emreg00/biana | gpl-3.0 | 5,622 | 202 | codeparrot/github-code |
8bfe7b13e8326acdac2bd09b851069763b3d188f35a7ad01f66a1ab5b284ec30 | '''
____ _ _ _ _ _ ____ ___
| _ \ ___ __| | \ | | ___| |_ / \ | _ \_ _|
| |_) / _ \ / _` | \| |/ _ \ __| / _ \ | |_) | |
| __/ (_) | (_| | |\ | __/ |_ / ___ \| __/| |
|_| \___/ \__,_|_| \_|\___|\__| /_/ \_\_| |___|
File: CClock.py
Author: Zach Podbieln... | Python | Linux/Python/CClock.py | zachpodbielniak/PodNet | gpl-3.0 | 4,740 | 170 | codeparrot/github-code |
d13937abe36cf5d5f248963e05320f04143c6075d00533fcd4c0ac4f5e643f4c | //---------------------------------------------------------------------------
/*
The Thor Veen Project, simulation to investigate honest signalling
Copyright (C) 2006 Richel Bilderbeek
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as ... | C | UnitMigrationPool.h | richelbilderbeek/ProjectThorVeen | gpl-3.0 | 1,959 | 53 | codeparrot/github-code |
468b1de2f296bb4c039c861207a365f0b8758f4f8f9a477fa175afb43dce2337 | /**
* Genji Scrum Tool and Issue Tracker
* Copyright (C) 2015 Steinbeis GmbH & Co. KG Task Management Solutions
* <a href="http://www.trackplus.com">Genji Scrum Tool</a>
*
* 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... | Java | src/main/java/com/trackplus/model/Tattributevalue.java | trackplus/Genji | gpl-3.0 | 4,756 | 226 | codeparrot/github-code |
e673d6b389d6018046f8ad23fd9aa2df05c74500b830f0c1e70926dc9fdbf466 | #include "globals.h"
#include "module-anticasc.h"
#include "oscam-client.h"
#include "oscam-conf.h"
#include "oscam-conf-chk.h"
#include "oscam-conf-mk.h"
#include "oscam-config.h"
#include "oscam-garbage.h"
#include "oscam-lock.h"
#include "oscam-string.h"
#define cs_user "oscam.user"
static void account_tosleep_fn(... | C | oscam-config-account.c | mike22437120/oscam-nx111 | gpl-3.0 | 14,706 | 464 | codeparrot/github-code |
7802efeb259483ab8eaae42e306d659aee50af52b2e62d2d662edce7bb0ac51a | namespace Grove.Cards
{
using System.Collections.Generic;
using Artifical;
using Artifical.TargetingRules;
using Artifical.TimingRules;
using Gameplay.Abilities;
using Gameplay.Counters;
using Gameplay.Effects;
using Gameplay.Misc;
using Gameplay.Modifiers;
using Gameplay.Triggers;
public class ... | C# | source/Grove/Cards/VampiricEmbrace.cs | sorab2142/sorabpithawala-magicgrove | gpl-3.0 | 1,777 | 48 | codeparrot/github-code |
3f9ce229c296dc29f81193948f20cd75ed4d6de4294480a68e26680f864103f8 | package com.github.tyang513.batch.probe.util;
/**
* murmur hash 2.0.
*
* The murmur hash is a relatively fast hash function from
* http://murmurhash.googlepages.com/ for platforms with efficient
* multiplication.
*
* This is a re-implementation of the original C code plus some additional
* features.
*
* P... | Java | src/main/scala/com/github/tyang513/batch/probe/util/MurmurHash.java | tyang513/spark-batch-example | gpl-3.0 | 5,235 | 219 | codeparrot/github-code |
71a5983acb6d55cb86bf063ddcb49f069f0f164534f207c3f8c1b405af814d34 | /*
* Copyright (C) 2015-present Saul Cintero <http://www.saulcintero.com>.
*
* This file is part of MoveOn Sports Tracker.
*
* MoveOn Sports Tracker 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, eith... | Java | src/com/saulcintero/moveon/services/MediaButtonEventReceiver.java | scintero/moveon | gpl-3.0 | 1,787 | 48 | codeparrot/github-code |
15a481777a194d0cb93a3a361d6ee624ec7111208155e7c1cf5227e6230f01da | package org.emoflon.ibex.tgg.operational.benchmark;
import java.util.ArrayList;
import java.util.List;
public class EmptyBenchmarkLogger extends BenchmarkLogger {
@Override
public boolean isLoggingEnabled() {
return false;
}
@Override
public void startNewRun() {
// Intentionally left blank
... | Java | org.emoflon.ibex.tgg.core.runtime/src/org/emoflon/ibex/tgg/operational/benchmark/EmptyBenchmarkLogger.java | eMoflon/emoflon-ibex | gpl-3.0 | 1,928 | 109 | codeparrot/github-code |
e61a2519195c775ce6eadc12fbcbd1eace06736ec574aacc7c7e2eee15ae5aa1 | // -----------------------------------------------------------------------------
// SequenceList Class
// -----------------------------------------------------------------------------
class SequenceList {
constructor() {
this.sequences = [];
Object.defineProperties(this, {
length: {
get: funct... | JavaScript | js/class.Sequence.js | smariel/PTree | gpl-3.0 | 13,470 | 503 | codeparrot/github-code |
66f568cec62a29156dc0b79215cb6f5f77f8b8e179a953e079ade6abc8d81541 | import SourceBase
from tkinter import *
from tkinter import ttk
import re
class redditEarthporn(SourceBase.SourceBase):
pluginid = '_r_EarthPorn'
subreddit = 'EarthPorn'
sourceurl = 'http://reddit.com/r/EarthPorn'
def __init__(self):
pass
def load_plugin(self):
'''This method is c... | Python | FSOI_Plugins/Plugins/Reddit/redditEarthporn.py | Mgamerz/fsoi_plugins | gpl-3.0 | 5,107 | 114 | codeparrot/github-code |
e39b0a6b68c5bb3b48b4bebd5396c6e8372dfa2253b97f90c784bcc14afb64ea | /*
* The MIT License (MIT)
*
* Copyright (c) 2014 Pavel Kirienko
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* us... | C++ | libraries/AP_HAL_ChibiOS/CanIface.cpp | ChrisBird/ardupilot | gpl-3.0 | 33,113 | 1,066 | codeparrot/github-code |
8d26d75835e3121a104a967b364644fc5bd1f09477b692c68327681d4d6eb294 | // $Id: SDL.h 9357 2014-04-25 15:35:25Z FloSoft $
//
// Copyright (c) 2005 - 2015 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... | C | driver/video/SDL/src/SDL.h | uqs/s25client | gpl-3.0 | 2,965 | 89 | codeparrot/github-code |
f8c6a701085f6d4b9c8ed8a911d4b559176f0dde6ad21d2b1afeccdc912f5b9e | <html>
<script language="javascript" type="text/javascript" src="p5.min.js"></script>
<script language="javascript" type="text/javascript">
var x = 0.05;
var y = 0.05;
// AGHNFODVNJCP, pg 58
var a = [];
var startc = 32;
var startv = -4.5;
var endc = 127;
var endv = 5.0;
var iterations = 1;
var L = 0.0... | HTML | attractor2D.html | alinen/misc | gpl-3.0 | 4,253 | 185 | codeparrot/github-code |
32bfa522889a574c9821d4e7138993cef7d887eb2def0d1b2e94472ddf9c871a | <?php
include "blocks/_header_page_jeu.php";
ob_start();
if ($_REQUEST["methode"]=="utilise_potion")
{
// Mise en garde toxicité !!
if ($_REQUEST["cible"] != $perso_cod)
{
echo '<br /><strong>Attention !</strong> Le corps de votre cible contient encore des restes d’une potion bue précédemm... | PHP | web/www/jeu_test/choix_potion.php | Merrick28/delain | gpl-3.0 | 14,751 | 275 | codeparrot/github-code |
10abdf7cc9a4340fc91722ba917b2fcd9b1314243e77e17ecf75bd2142694358 | <?php
/*
* Copyright 2012 Karl Payne (www.karlpayne.co.uk)
*
* This file is part of KP-Validation
*
* KP-Validation 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
*... | PHP | validatorValidate.php | Karl33to/KP_Validation | gpl-3.0 | 8,057 | 294 | codeparrot/github-code |
2e1d028d0f6a2cde2abecfdba54bdca2bdcb1c2f731d6ac6694fd3cb8c547342 | #include "QitemFrame.hpp"
/**
* @brief FrameItem::FrameItem
* @param pframe
* @param parent
*/
FrameItem::FrameItem(FramePtr pframe, QTreeWidget *parent) :
PlayerItem(parent)
{
frame = pframe;
setText(0,QString("%1").arg(frame->getNumber()));
setText(1,QString(TAG_FRAME));
}
/**
* @brief FrameItem::getFrameR... | C++ | application/src/QitemFrame.cpp | BioFoV/BioFoV | gpl-3.0 | 750 | 43 | codeparrot/github-code |
970335406cdd8cbbfd708700118e11fa9e6a97e0cf1d82b004e0e609d632a894 | <?php
class Intraface_modules_accounting_Controller_Post_Show extends k_Component
{
protected $template;
function __construct(k_TemplateFactory $template)
{
$this->template = $template;
}
function dispatch()
{
if ($this->getPost()->get('id') == 0) {
throw new k_Page... | PHP | src/Intraface/modules/accounting/Controller/Post/Show.php | intraface/intraface.dk | gpl-3.0 | 2,496 | 93 | codeparrot/github-code |
964ceea78002cfc2d834a539d4fa85f72483679f15f08bcae44d4bf70c0aa43c | #include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
#include <math.h>
#include <pthread.h>
typedef uint8_t u8;
typedef uint32_t u32;
typedef uint64_t u64;
static u64 rnd_s[16];
static int rnd_p;
static u64 rdtscp(u32 *id) {
u32 ecx;
u64 tsc;
asm volatile (
"rdtscp;\t\... | C | c/parity.c | kt3108/ion | gpl-3.0 | 4,681 | 229 | codeparrot/github-code |
25be1827abf41d524625bd2197df652756171418a27bb6ba32988593681de05c | /*
* Meson Watchdog Driver
*
* Copyright (c) 2014 Carlo Caione
*
* 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 y... | C | drivers/watchdog/meson_wdt.c | williamfdevine/PrettyLinux | gpl-3.0 | 6,620 | 276 | codeparrot/github-code |
61dd7574ab4e71eb84c67fa4f160d767877bf0abe2317d082dbbf682108046ec | /*
* This file is part of rasdaman community.
*
* Rasdaman community 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.
*
* Rasdaman commu... | C++ | storagemgr/sstoragelayout.cc | hholzgra/rasdaman | gpl-3.0 | 17,099 | 506 | codeparrot/github-code |
076c813b88d51e30b64f316910af2621c8cb0d9f0c0e26c715d1749ff60918a3 | /*
Simple DirectMedia Layer
Copyright (C) 1997-2017 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | C | app/src/main/jni/sdl/src/events/SDL_events_c.h | tangalbert919/nds4droid | gpl-3.0 | 1,883 | 54 | codeparrot/github-code |
03966030f5673392c8001c6aae80da523ccb4f70829d46fafcac913663783707 | /****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance w... | C++ | src/plugins/clangcodemodel/clangcurrentdocumentfilter.cpp | qtproject/qt-creator | gpl-3.0 | 6,404 | 178 | codeparrot/github-code |
691bc9fbe0819947b47e40cebaf06c3177bf8aaa0f5787a5852543bb86f871fc | package cz.jaro.alarmmorning.checkalarmtime;
import android.app.AlarmManager;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Build;
import android.text.Html;
import android.... | Java | app/src/main/java/cz/jaro/alarmmorning/checkalarmtime/CheckAlarmTime.java | jmalenko/alarm-morning | gpl-3.0 | 36,291 | 761 | codeparrot/github-code |
5b124c75f58cbd00a9bab64cbc64e31b63591e19d22ca9000ae6b6499c425ccc | import os
from categorization import relative_rate_left_right
from methods import get_data_path
from constants import INNER_PATHS
# assign the root data folder
data_path = get_data_path()
RED = 0
BLUE = 1
all_data = []
for ip in INNER_PATHS:
print(ip)
all_data.append(relative_rate_left_right(os.path.join(data_pa... | Python | analysis/export.py | cpicanco/abpmc-2016 | gpl-3.0 | 997 | 47 | codeparrot/github-code |
d4212926296fedece0d211fcde5c705bee968fa3d41f9a43af42695a6f3f309b | // -*- C++ -*-
//
// This file is part of LHAPDF
// Copyright (C) 2012-2014 The LHAPDF collaboration (see AUTHORS for details)
//
#include "LHAPDF/PDFSet.h"
#include <boost/math/distributions/chi_squared.hpp>
namespace LHAPDF {
PDFSet::PDFSet(const string& setname) {
/// @todo Hmm, this relies on the standard ... | C++ | src/PDFSet.cc | ktf/LHAPDF | gpl-3.0 | 9,013 | 232 | codeparrot/github-code |
f4e87e883c806742149a9ac0f8314313b37ca095d75fd62193e03d37923b5fb3 | package net.BukkitPE.entity.passive;
import net.BukkitPE.item.Item;
import net.BukkitPE.level.format.FullChunk;
import net.BukkitPE.nbt.tag.CompoundTag;
/**
* Author: BeYkeRYkt
* BukkitPE Project
*/
public class EntityChicken extends EntityAnimal {
public static final int NETWORK_ID = 10;
public EntityCh... | Java | src/main/java/net/BukkitPE/entity/passive/EntityChicken.java | BukkitPE/BukkitPE | gpl-3.0 | 1,142 | 61 | codeparrot/github-code |
3eae54909c02d30f8076914e8d0ed3491a15d9e8e7b9520f322c64fdfa410cd2 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;
using System.IO;
using QueryIT.model;
using IPlugin;
using AutocompleteMenuNS;
namespace QueryIT {
publi... | C# | QueryIT/CoreModulForm/Chunk.cs | Maetti79/QueryIT | gpl-3.0 | 15,773 | 329 | codeparrot/github-code |
2f67b95232ce8cde1da8e06e8dcdadd0995b244b19ea5d2b8fa7012ac2139ccd | /*
Created: 6/5/2016
Modified: 6/17/2016
Project: IT 700 Capstone
Model: OAR Data Model
Author: Chris Ehmett
Database: PostgreSQL 9.4
*/
-- Create roles section (for roles used in schemas) ------------------------------------------
CREATE ROLE OAR_RO_ROLE NOINHERIT;
CREATE ROLE OAR_RW_ROLE NOINHERIT;
... | SQL | DDL/Tables/OAR_Tabels_DDL.sql | leaderdescar/OAR-DB-Project | gpl-3.0 | 10,561 | 326 | codeparrot/github-code |
0d65f446807503a0fbeedc2e4a1e579cc171acc9714ca753f4152744204e2f12 | #ifndef MANTIDQTCUSTOMINTERFACES_SANSRUNWINDOW_H_
#define MANTIDQTCUSTOMINTERFACES_SANSRUNWINDOW_H_
//----------------------
// Includes
//----------------------
#include "MantidQtWidgets/Common/UserSubWindow.h"
#include "SANSAddFiles.h"
#include "SANSConstants.h"
#include "SANSDiagnostics.h"
#include "SANSPlotSpecial... | C | qt/scientific_interfaces/ISISSANS/SANSRunWindow.h | ScreamingUdder/mantid | gpl-3.0 | 20,534 | 531 | codeparrot/github-code |
5b48caadbffa6df7d0b28b70c86aa137c2eb827e26f07ae808311e2f3bdad932 | /*
Copyright © 2011-2012 Clint Bellanger
Copyright © 2013 Kurt Rinnert
Copyright © 2014 Henrik Andersson
This file is part of FLARE.
FLARE 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 ... | C | src/WidgetLabel.h | SBasalaev/flare-engine | gpl-3.0 | 1,932 | 84 | codeparrot/github-code |
1bc45bfe514aeb5170d56b100a460d59716ae5ad06aac3bd97bdf9e391124c8b | """
OpenStreetMap to Land Use/Land Cover Maps
"""
def osm_to_sqdb(osmXml, osmSQLITE):
"""
Convert OSM file to SQLITE DB
"""
from gasp.toshp.gdal import ogr_btw_driver
return ogr_btw_driver(osmXml, osmSQLITE, supportForSpatialLite=True)
def osm_project(osmSQLITE, srs_epsg):
"""
R... | Python | gasp/osm2lulc/grs.py | JoaquimPatriarca/senpy-for-gis | gpl-3.0 | 17,992 | 496 | codeparrot/github-code |
088a8b43dfc744470988e771cfca4b3431288cb9e481d1646767bb55796ae7ce | /***************************************************************************
* Project file: NPlugins - NWorld - StockWorld.java *
* Full Class name: fr.ribesg.bukkit.nworld.world.StockWorld *
* *
* ... | Java | NWorld/src/main/java/fr/ribesg/bukkit/nworld/world/StockWorld.java | cnaude/NPlugins | gpl-3.0 | 1,569 | 47 | codeparrot/github-code |
92e3ee510a5f5a051ce0ca841a6d8eb4d43d5993f4831ebbb8fac6df9ce52937 | package cz.kramerius.searchIndex;
import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.Key;
import com.google.inject.name.Names;
import cz.incad.kramerius.fedora.RepoModule;
import cz.incad.kramerius.processes.starter.ProcessStarter;
import cz.incad.kramerius.processes.utils.Proc... | Java | search-index/src/main/java/cz/kramerius/searchIndex/NewIndexerProcessIndexObject.java | ceskaexpedice/kramerius | gpl-3.0 | 6,452 | 124 | codeparrot/github-code |
318286e4f8c2e10811cc39ab9ef60bf25247ae55be5f98141c2e8b13c38e0898 | /*
This file is part of Overmix.
Overmix 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.
Overmix is distributed in the hope that it w... | C++ | interface/gui/importers/VideoImporter.cpp | spillerrec/Overmix | gpl-3.0 | 2,284 | 73 | codeparrot/github-code |
10dc252cd6381aa836e2d566a2757fdf2f1c31d11644053968a74485c7176b25 | /*
* Copyright (c) 2017. ArvinSiChuan.com. All Right Reserved.
*
* 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... | JavaScript | PancakeofMountHuang/PancakeofMountHuang/src/main/resources/static/js/theWhiteSail/Login.js | Dawn-Team/dawn | gpl-3.0 | 4,802 | 119 | codeparrot/github-code |
78fcb4c4fc12c4b84b39f18786da51391af58401020e015da07abb100600c266 | // --------------------------------------------------------------------------------------------------------------------
// Copyright (C) 2016 L.A.S - LAS Soft
//
// 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 S... | C++ | WMIWrapper/PointingDevice.cpp | LAS82/WMIWrapper | gpl-3.0 | 5,419 | 132 | codeparrot/github-code |
2b72977fa1b008d0880326cf53712b04dc7a0cced6e45d7ddc3008f940383f11 | #include "flags.h"
Flags::Flags(uint16 hex): m_hex(hex)
{
}
Flags::~Flags()
{
}
bool
Flags::shouldSkipUnknownBlock()
{
return m_hex & 0x4000 ;
}
bool
Flags::hasAddedSize()
{
return m_hex & 0x8000;
}
MainFlags::MainFlags(uint16 hex): Flags(hex)
{
}
bool
MainFlags::isVolume()
{
return m_hex & 0x0001... | C++ | src/flags.cpp | adaptee/rar-fuse | gpl-3.0 | 1,793 | 174 | codeparrot/github-code |
27b31568e82da06538807543180ef80ce5a1c5ecd33805b5576801fa6a78a151 | #include "TraceParser.h"
#include <ctype.h>
TraceParser::TraceParser(std::istream &stream) : m_is(stream),
m_date(),
m_time(),
m_level(),
... | C++ | test/TraceParser.cpp | andriy-bilynskyy/Tracer | gpl-3.0 | 4,032 | 174 | codeparrot/github-code |
8675cbb985ea238f08abf251d4a0b8aa46e30bb773c99e4326e50b61a72951b0 | package com.xalero.dominion.controller.settings;
import com.xalero.dominion.manager.UserManager;
import com.xalero.dominion.server.model.PlayerType;
import com.xalero.dominion.server.model.SimplePlayerInfo;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
public class PlayerRow extends PlayerEditableRow {
p... | Java | src/main/java/com/xalero/dominion/controller/settings/PlayerRow.java | quicksilversly/Dominator | gpl-3.0 | 1,177 | 51 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.