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 |
|---|---|---|---|---|---|---|---|---|
42c29f2ac63dcf8149b022387a46b1a3bde44bc504896cfe9213ff3b1b44b187 | /*
* Darmix-Core Copyright (C) 2013 Deremix
* Integrated Files: CREDITS.md and LICENSE.md
*/
/* ScriptData
Name: Instance_Hellfire_Ramparts
Complete(%): 95
Comment:
Category: Hellfire Ramparts
EndScriptData */
#include "ScriptPCH.h"
#include "hellfire_ramparts.h"
#define ENCOUNTERS 3
struct instance_ramparts... | C++ | src/scripts/Outland/HellfireCitadel/hellfire_ramparts/instance_hellfire_ramparts.cpp | deremix/darmixcore | gpl-3.0 | 3,598 | 152 | codeparrot/github-code |
6ccbf401e47895a6a99280435349fbedb228d78a26286e003ed94f64b6ce3dd9 | /*---------------------------------------------------------------------------*\
========= |
\\ / F ield | foam-extend: Open Source CFD
\\ / O peration | Version: 3.2
\\ / A nd | Web: http://www.foam-extend.org
\\/ M anipulation | For ... | C++ | src/thermophysicalModels/solids/CaCO3/CaCO3.C | Unofficial-Extend-Project-Mirror/foam-extend-foam-extend-3.2 | gpl-3.0 | 2,336 | 83 | codeparrot/github-code |
f25f38735e8d90cf226b1bd528d094a49b70e3c08bae04104e22258af8e3b603 | #ifndef __TrexRequest__
#define __TrexRequest__
#include <iostream>
#include <string>
#include <map>
#include "../mongoose/mongoose.h"
using namespace std;
namespace Trex {
class Request {
private:
struct mg_connection *_conn;
const struct mg_request_info* _request;
string _body;
... | C | src/trex/Request.h | scripting/trex | gpl-3.0 | 568 | 31 | codeparrot/github-code |
3a6481a3e0a8e917eee9fb0edd8771cf52e0f87b24d2068b08372dc480e33613 | package fishly
import (
"bufio"
"fmt"
"io"
"log"
"os"
"strconv"
"strings"
)
//
// loop -- main file in fishly which receives input lines from driver
// which would be either readline (terminal) or HTTP client (web),
// starts cancel handler and interprets input command by command
//
type ContextPromptFormat... | GO | fishly/loop.go | myaut/salsa-rex | gpl-3.0 | 8,350 | 334 | codeparrot/github-code |
20da9a0882c1c7fd182e047c3c87f3c2eb21b2f2e658cc2c3726f49ad2f51635 | /**
* @file
* $Revision: 1.3 $
* $Date: 2008/06/18 19:35:16 $
*
* Unless noted otherwise, the portions of Isis written by the USGS are
* public domain. See individual third-party library and package descriptions
* for intellectual property information, user agreements, and related
* information.
*
* ... | C++ | isis/src/base/objs/BufferManager/BufferManager.cpp | corburn/ISIS | gpl-3.0 | 9,922 | 265 | codeparrot/github-code |
7960d8ca562eb4a779131dee43725a62d5fd3179800ba7026df7e79e170f3e65 | <?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license a... | PHP | Zend/Gdata/Entry.php | jvianney/SwiftHR | gpl-3.0 | 4,617 | 132 | codeparrot/github-code |
eb6512652d334e07299fdecff899da8cb4aeb0d1a3b3cc05a5f1b0b46d3b4add | /*
* pepper - SCM statistics report generator
* Copyright (C) 2010-present Jonas Gehring
*
* Released under the GNU General Public License, version 3.
* Please see the COPYING file in the source distribution for license
* terms and conditions, or see http://www.gnu.org/licenses/.
*
* file: mercurial.h
* Mercur... | C | src/backends/mercurial.h | jgehring/pepper | gpl-3.0 | 1,429 | 52 | codeparrot/github-code |
13135a14981b66901cdff7656e3b600dba4f37b14658d5927c1e9450a8012997 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Create a child SDO_DataObject</title>
</head>
<body><div class="manualnavbar" style="text-align: center;">
<div class="... | HTML | php-manual/sdo-dataobject.createdataobject.html | Sliim/sleemacs | gpl-3.0 | 3,949 | 122 | codeparrot/github-code |
5c94a5c9b33f7bfd1dc526d7510838ad2db96c9fe8959529f4d7971faa2b1feb | __author__ = "Laura Martinez Sanchez"
__license__ = "GPL"
__version__ = "1.0"
__email__ = "lmartisa@gmail.com"
from osgeo import gdal, gdalnumeric, ogr, osr
import numpy as np
from PIL import Image, ImageDraw
from collections import defaultdict
import pickle
import time
from texture_common import *
#Uses a gdal ge... | Python | clipshape.py | madi/DeadTrees-BDEOSS | gpl-3.0 | 4,289 | 146 | codeparrot/github-code |
233e4de3a41d202d6a0eda10e8bfbe006c2d7c046649a70716db8a094460a3d7 | /*
* LibrePCB - Professional EDA for everyone!
* Copyright (C) 2013 LibrePCB Developers, see AUTHORS.md for contributors.
* https://librepcb.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 Fou... | C++ | libs/librepcb/editor/project/cmd/cmdboardremove.cpp | LibrePCB/LibrePCB | gpl-3.0 | 2,471 | 76 | codeparrot/github-code |
ec17f1a3c1de114e5f2cb97f41323cdf7e6f229c93586e70d0a4a9d6054c52b4 | """
Playlist Generation
"""
from os import path
from random import choice
import string
import pafy
from .. import content, g, playlists, screen, util, listview
from ..playlist import Playlist
from . import command, search, album_search
@command(r'mkp\s*(.{1,100})')
def generate_playlist(sourcefile):
"""Gene... | Python | mps_youtube/commands/generate_playlist.py | np1/mps-youtube | gpl-3.0 | 4,048 | 135 | codeparrot/github-code |
9c23538567b1538f3d43f5ac20a03d23b3a15194e37f2d21f6b115444b6376b6 | using System.Collections.Generic;
using System.Linq;
using LeagueSharp;
using LeagueSharp.Data.Enumerations;
using LeagueSharp.SDK;
using LeagueSharp.SDK.Enumerations;
using LeagueSharp.SDK.Utils;
using SharpDX;
using Collision = LeagueSharp.SDK.Collision;
using PlayAIO;
internal static class Common
{
private... | C# | PlayAIO/PlayAIO/Utilities/Common.cs | Alqohol/LeagueSharp | gpl-3.0 | 4,819 | 145 | codeparrot/github-code |
eb319579df2e939e6ce072bf9a3c01132a5e2e13e17ff11a3d7cd938600f007d | /*========================================================================
Copyright (c) 2012-2016 Seppo Laakko
http://sourceforge.net/projects/cmajor/
Distributed under the GNU General Public License, version 3 (GPLv3).
(See accompanying LICENSE.txt or http://www.gnu.org/licenses/gpl.html)
===... | C++ | Cm.Ast/Solution.cpp | slaakko/cmajor | gpl-3.0 | 5,524 | 147 | codeparrot/github-code |
bf20c468ba0ca1eb4a60fd88592d33bd20a11db3bd837ce406d91280e2fafa2e | package org.uavteam;
import java.awt.*;
import java.awt.image.BufferedImage;
/**
* Created by jtb20 on 6/5/2017.
*/
public class TargetData {
BufferedImage target;
double lat;
double lon;
String rotation;
String shape;
String shapeColor;
String letterColor;
String letter;
String... | Java | src/org/uavteam/TargetData.java | uav-team-ut/Manual-Recognition-Station | gpl-3.0 | 2,311 | 81 | codeparrot/github-code |
dd0956a12973469623f9349bad1afb9aa20528e962e5cd30d6c4ec69772dac5b | /*
This file is part of leafDrums.
leafDrums 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.
leafDrums is distribut... | C | leafDrums2/PatternHandler.h | quen/leafdrums2 | gpl-3.0 | 3,187 | 113 | codeparrot/github-code |
00ea5c95bf0f5594c1da1e824c0c772cd6244806cad9ca6de475160d7afdf2a7 | <?php namespace CoasterCms\Libraries\Blocks;
class Selectmultiple extends Select
{
/**
* @var string
*/
protected $_renderDataName = 'options';
/**
* @var string
*/
protected $_renderRepeatedItemName = 'option';
/**
* Unserialize string to php array befor... | PHP | src/Libraries/Blocks/Selectmultiple.php | Web-Feet/coasterframework | gpl-3.0 | 2,404 | 94 | codeparrot/github-code |
1e62b2455fa646ad9d9460c07c777feaf4cff440f6253f4835b8b6594ccdc241 | package photostream
import (
"errors"
"fmt"
"time"
)
// WebStreamItemDerivative represents the one of the sizes
// (derivatives) available for this particular media item
type WebStreamItemDerivative struct {
Checksum string `mapstructure:"checksum"`
Size int `mapstructure:"fileSize"`
Height int `map... | GO | client/webstream.go | apokalyptik/photostream | gpl-3.0 | 3,837 | 112 | codeparrot/github-code |
6e10908a961bde2ba7b408809c844e9e72c595716dd88aa288ade4d0edb2c13d | # frozen_string_literal: true
# Seed script generator for Users
class UserGenerator
include Callable
def self.generate_superuser(**overrides)
new(overrides: overrides.merge(role: 'superuser')).generate
end
def initialize(overrides: {})
gen_params(overrides: overrides)
@params.delete(:password) if... | Ruby | lib/seed/user_generator.rb | YaleSTC/vesta | gpl-3.0 | 1,283 | 48 | codeparrot/github-code |
4fa633458b1aec14dd83d3284b5e9353e237bb14774ebce7c8214d93e61cd0ec |
; convert 64 bit register reg to its 32 bit version
; for >= r8, r8d is the 32 bit version
raxd equ eax
rbxd equ ebx
rcxd equ ecx
rdxd equ edx
rbpd equ ebp
rsid equ esi
rdid equ edi
macro align value,addr
{
local base,size
if addr eq
align value
else
if addr>$
base = addr-size
size = ((base+value-1)/... | Assembly | asmFish/guts/BasicMacros.asm | muxel/asmFish | gpl-3.0 | 6,798 | 435 | codeparrot/github-code |
358e84156b44deefc655e709bdd54098736aaef6b7106370a89c91cf1101caf3 | /***************************************************************************
* *
* Copyright (C) 2017 Seamly, LLC *
* *
* https:/... | C++ | src/libs/vtools/dialogs/tools/dialogrotation.cpp | FashionFreedom/Seamly2D | gpl-3.0 | 16,951 | 472 | codeparrot/github-code |
564be18162ddef29aea2b4bb79bc8b1af85d6431afeddc269ef5213e1d4b0286 | from openstates.utils import LXMLMixin
import datetime as dt
from pupa.scrape import Scraper, Event
from .utils import get_short_codes
from requests import HTTPError
import pytz
URL = "http://www.capitol.hawaii.gov/upcominghearings.aspx"
class HIEventScraper(Scraper, LXMLMixin):
def get_related_bills(self, hre... | Python | openstates/hi/events.py | cliftonmcintosh/openstates | gpl-3.0 | 3,151 | 89 | codeparrot/github-code |
baf73bbdfd06f7017e1882415f219257861edd98dd544e6aefc00de48addd87b | package com.fr.design.editor.editor;
import com.fr.base.Utils;
import com.fr.general.Inter;
/**
* 整数编辑器
*
* @author zhou
* @since 2012-3-29下午4:02:06
*/
public class IntegerEditor extends NumberEditor<Integer> {
private static final long serialVersionUID = 1L;
public IntegerEditor() {
this(n... | Java | designer_base/src/com/fr/design/editor/editor/IntegerEditor.java | fanruan/finereport-design | gpl-3.0 | 984 | 49 | codeparrot/github-code |
19167669a09a34906a15947f3f657d850a2a7d7d1dcfd47f549a77f376c3e572 | /*
* 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... | Java | src/main/java/adams/gui/chooser/BaseFileChooser.java | automenta/adams-core | gpl-3.0 | 16,950 | 602 | codeparrot/github-code |
a8df13ea1af3b6599e6854fa9ee8d8d50cb210fa6843c2f4d8d0b124a7b34641 | #define NBDEBUG 0
/*
Unix SMB/CIFS implementation.
SMB torture tester
Copyright (C) Andrew Tridgell 1997-1998
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 o... | C | source3/torture/nbio.c | kernevil/samba | gpl-3.0 | 8,103 | 378 | codeparrot/github-code |
e73bd8df5f197e0de37b0ad0344f53631d10024bf893a96337c452ec454a0281 | /* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999-2005, 2007-2012 Free Software Foundation, Inc.
GNU Mailutils 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 vers... | C | pop3d/pop3d.h | Distrotech/mailutils | gpl-3.0 | 8,656 | 319 | codeparrot/github-code |
455e8e58eb13332be510083e38dbcc854fbba2a7194ebd7a49a3e5d7c7e2b75a | # -*- coding: utf-8 -*-
from oauth2 import Consumer, Client, Token
from httplib2 import ProxyInfo
from httplib2.socks import PROXY_TYPE_HTTP
from django.conf import settings
class Authentication(object):
def __init__(self, consumer_key, consumer_secret, token_key, token_secret):
consumer = Consumer(key... | Python | baobab/utils/authentication.py | Gandi/baobab | gpl-3.0 | 950 | 33 | codeparrot/github-code |
65494f8cd0d161742c0cde07c0a07341c1fc791e933ae8c725cf876c371cfcf3 | package org.vpac.ndg.storage;
import java.sql.Types;
import org.hibernate.dialect.PostgreSQL94Dialect;
/**
* Hibernate's PostgreSQLDialect doesn't define mappings for the ARRAY type,
* because there is no possible one-to-one mapping. So we define new types and
* map those instead.
*
* http://stackoverflow.com/qu... | Java | src/storagemanager/src/main/java/org/vpac/ndg/storage/PostgreSQLCustomDialect.java | vpac-innovations/rsa | gpl-3.0 | 1,177 | 32 | codeparrot/github-code |
beca9d27af0ef7ec3cf42ec05e4d69f812dfc9a3314fd685e2d320c70f9b2664 | package tm.fissionwarfare.entity;
import net.minecraft.block.BlockDirectional;
import net.minecraft.entity.Entity;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.server.MinecraftServer;
import net.minecraft.util.MathHelper;
import net.minecraft.world.World;
import net.minecraft.world.storage.WorldInfo;
... | Java | src/main/java/tm/fissionwarfare/entity/EntityFlakey.java | TeamMonumental/FissionWarfare | gpl-3.0 | 2,055 | 92 | codeparrot/github-code |
4c5875f3bd50a3894b01278154b89ad2676bdd74399973e96e66af0490404bd1 | /*
* Copyright (C) 2010 ETH Zurich
*
* This file is part of Fosstrak (www.fosstrak.org) and
* was developed as part of the webofthings.com initiative.
*
* Fosstrak is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by... | Java | src/main/java/org/fosstrak/webadapters/epcis/model/events/QuantityEvent.java | Fosstrak/fosstrak-webadapters | gpl-3.0 | 4,102 | 167 | codeparrot/github-code |
5f94a37b5033b9919e67fe9f5ba4607bf0acaf07819b2bd9ab73de37c53e1055 | package ZoneSeek.common.entities.render;
import ZoneSeek.common.entities.Pterodactyl;
import ZoneSeek.common.models.ModelPterodactyl;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.renderer.entity.RenderLiving;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivin... | Java | ZoneSeek/common/entities/render/RenderPterodactyl.java | TheBasedRebel/ZoneSeek | gpl-3.0 | 1,772 | 45 | codeparrot/github-code |
779855e04b4c36abcd351ab70ead02674d079c819a6163b4934992132362aa38 | package com.liferay.util;
import com.dotcms.UnitTestBase;
import org.junit.Test;
import java.util.Arrays;
import java.util.List;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
/**
* Created by Oscar Arrieta on 6/19/17.
*/
public class ValidatorTest extends UnitTestBase {
... | Java | dotCMS/src/test/java/com/liferay/util/ValidatorTest.java | dotCMS/core | gpl-3.0 | 1,014 | 42 | codeparrot/github-code |
d8966183fb7aeac53d67db516c305e5ccabc061f93fda250266e5c0c784774eb | <?php
namespace TNTRun\commands\Sub;
use pocketmine\Player;
use pocketmine\command\CommandSender;
use TNTRun\commands\SubCmd;
class SetMinPlayersSubCmd extends SubCmd{
public function execute(CommandSender $sender, array $args){
if(!($sender instanceof Player)){
$sender->sendMessage($this->g... | PHP | plugin/src/TNTRun/commands/sub/SetMinPlayersSubCmd.php | ItalianDevs4PM/TNTRun | gpl-3.0 | 1,237 | 38 | codeparrot/github-code |
6a3545d018ffeffdf010c8b9b9d244f33d409afc031785e9c9c183e8e23bb36b | import { history } from 'byebye';
import React from 'react';
import AltContainer from 'alt-container';
import { MANUAL_LOGOUT } from 'app-constants';
import { loginIfAuthorized as autoFacebookLogin } from 'managers/facebook';
import Analytics from 'instances/analytics';
import parseJWT from 'helpers/parseJWT';
import {... | JavaScript | information/blendle-frontend-react-source/app/modules/emailLogin/module.js | BramscoChill/BlendleParser | gpl-3.0 | 2,195 | 76 | codeparrot/github-code |
21e366f2a476409dc0fa45ac5d0998ea5dda10753137ba9952d1e375e89e2373 | package se.idega.idegaweb.commune.message.data;
import java.util.Collection;
import javax.ejb.EJBException;
import javax.ejb.FinderException;
import com.idega.block.process.data.AbstractCaseBMPBean;
import com.idega.block.process.data.Case;
import com.idega.block.school.data.School;
import com.idega.core.file.data.ICF... | Java | src/se/idega/idegaweb/commune/message/data/PrintedLetterMessageBMPBean.java | idega/platform2 | gpl-3.0 | 22,210 | 651 | codeparrot/github-code |
1e96e0f4c14b6e7538cf3bde153ae263fd4bccc1e9ec2c6ded14e32e690da5c5 | /****************************************************************************
ePMC - an extensible probabilistic model checker
Copyright (C) 2017
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 Softw... | Java | plugins/constraintsolver-isat3/src/test/java/epmc/constraintsolver/isat3/ISat3TextualTest.java | liyi-david/ePMC | gpl-3.0 | 5,155 | 122 | codeparrot/github-code |
ecbd31db7d41d62bf14b25f0d055a5974ed0ef0831c2ce0e03c19946504ab97a | package org.teapot.backend.model.meta;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.teapot.backend.model.BaseEntity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Tab... | Java | src/main/java/org/teapot/backend/model/meta/TeapotAction.java | teapot-org/teapot-backend | gpl-3.0 | 691 | 35 | codeparrot/github-code |
c606f24ffe1d858ea7dff82c85a24f0000c27d26d32765d4b29ae162ef5f5b48 | /*
* Copyright (c) 2016, NVIDIA CORPORATION. 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 list of co... | C++ | jetsontx2/samples/common/classes/NvJpegEncoder.cpp | winnerineast/Origae-6 | gpl-3.0 | 7,945 | 285 | codeparrot/github-code |
ebd3ad1ec8f002bd56907ea5a4376c5f2a6178b5a19bba384a8dfac7b19fcd59 | package bibcanon
import bibtex._
import concurrent._
import concurrent.duration._
import scala.slick.driver.H2Driver
import scala.slick.jdbc.JdbcBackend.Database
object Run {
def main(args: Array[String]) {
val BIB_FILE = "/home/jneeman/math/all-utf8.bib"
val AUX_FILE = "/home/jneeman/math/isoperimetry/bore... | Scala | src/bibcanon/Run.scala | jneem/bibcleaner | gpl-3.0 | 1,059 | 36 | codeparrot/github-code |
cf3b150b7a5ce95ac94f5c9ab6718e88ba78c3f6c43815aac69e8df4e998e744 | // besmellahe rahmane rahim
// Allahoma ajjel le-valiyek al-faraj
using System;
using IRI.Msh.MeasurementUnit;
namespace IRI.Msh.CoordinateSystem
{
public struct SphericalPoint<TLinear, TAngular> : ISphericalPoint
where TLinear : LinearUnit, new()
where TAngular : AngularUnit, new()
{
... | C# | IRI.Mosha/IRI.Msh.Common/CoordinateSystems/CoordinateSystem/Curvilinear.Spherical/SphericalPoint.cs | hosseinnarimanirad/IRI.Japey | gpl-3.0 | 3,651 | 138 | codeparrot/github-code |
df757d239eb98670347f9222578c8965a139389a09992aecdc13f6a26664358f | package io.github.trulyfree.modular6.test.action.impl;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import io.github.trulyfree.modular6.action.Action;
import io.github.trulyfree.modular6.action.ActionGroup;
/* Modular6 library by TrulyFree: A general-use module-building library.
*... | Java | src/test/java/io/github/trulyfree/modular6/test/action/impl/SimpleActionGroup.java | TrulyFree/Modular6 | gpl-3.0 | 1,957 | 81 | codeparrot/github-code |
f1da760e623e4f10992eaa4ee99ec1166b90b8e8a73403b3490e3ecc402a10fe | package edu.wisc.cs.will.FOPC.visitors;
import edu.wisc.cs.will.FOPC.Sentence;
import edu.wisc.cs.will.FOPC.Term;
import edu.wisc.cs.will.FOPC.Variable;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
public class VariableCollector {
private static final VariableCo... | Java | code/src/edu/wisc/cs/will/FOPC/visitors/VariableCollector.java | boost-starai/BoostSRL | gpl-3.0 | 1,289 | 47 | codeparrot/github-code |
7c712ec4e36bb3b592ddba6e575590d97619387e69ae80d865bba00a450caafb | // SuperTux
// Copyright (C) 2006 Matthias Braun <matze@braunis.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 ... | C++ | src/object/rock.hpp | SuperTux/supertux | gpl-3.0 | 2,177 | 63 | codeparrot/github-code |
10ca78869012432ddf145d06d970a24bc09d3b40931e76ac1a3b7371a82a794d | package com.mapzen.open.support;
import android.app.ActionBar;
import android.graphics.drawable.Drawable;
import android.view.View;
import android.widget.SpinnerAdapter;
import org.robolectric.Robolectric;
public class TestActionBar extends ActionBar {
private CharSequence title;
private boolean homeButtonEn... | Java | src/test/java/com/mapzen/open/support/TestActionBar.java | opensciencemap/open | gpl-3.0 | 4,345 | 235 | codeparrot/github-code |
fd8471634aca7c25989c4245a4eee5a24cb156550126aa3fd790b1e5a283ca40 | #
# Copyright 2013 Red Hat, Inc.
#
# This software is licensed to you under the GNU General Public
# License as published by the Free Software Foundation; either version
# 2 of the License (GPLv2) or (at your option) any later version.
# There is NO WARRANTY for this software, express or implied,
# including the implie... | Ruby | lib/katello_foreman_engine/actions/user_destroy.rb | Katello/katello-foreman-engine | gpl-3.0 | 1,046 | 37 | codeparrot/github-code |
84608a34c63eb26488c229db69333e37a25e509ff6d25c71c92575ef742bf388 | /*
* This file is part of the L2J Global 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... | Java | java/com/l2jglobal/gameserver/model/stats/finalizers/RegenMPFinalizer.java | rubenswagner/L2J-Global | gpl-3.0 | 5,614 | 148 | codeparrot/github-code |
516afd72edf9b7c8297e83fd6574d9d5ee8188f04e37ed48c928a9ee1130e2e2 | /*
* Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | C++ | oss/qt/qt-everywhere-opensource-src-5.9.0/qtwebengine/src/3rdparty/chromium/third_party/webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl_unittest.cc | geminy/aidear | gpl-3.0 | 20,651 | 558 | codeparrot/github-code |
9dcf8bc6200e4a7e72bdfc76c265257e598d5cd7770f5f4ca501f3d17317851b | package com.yelbosh.gof.template;
/**
* A concrete class extends AbstractRead
* This class can read HTML from a HTTP URL
*/
import java.io.*;
import java.net.*;
public class ReadHtml extends AbstractRead {
private URLConnection conn;
private BufferedReader in;
public ReadHtml() {
... | Java | src/main/java/com/yelbosh/gof/template/ReadHtml.java | Yelbosh/deep-in-algorithms | gpl-3.0 | 1,544 | 56 | codeparrot/github-code |
436e2f8423c96bc5096031aee78f7d6bc94ff61f1e64d094f56a22a29df8867a | /* Sequential list data type implemented by a hash table with a binary tree.
Copyright (C) 2006, 2009-2014 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public Licens... | C | gnulib/lib/gl_rbtreehash_list.h | Distrotech/coreutils | gpl-3.0 | 1,169 | 35 | codeparrot/github-code |
a92bf193059e4125fa7821f7cafe626b69c4eea00daaf38828b0eae244a80596 | import sinon from 'sinon';
import expect from 'expect';
import sleeper from '..';
describe('sleeper', () => {
it('should be a function', () => {
expect(sleeper).toEqual(expect.any(Function));
});
it('should expose the Resource constructor', () => {
expect(sleeper.Resource).toEqual(expect.any(Function));
});
... | JavaScript | test/sleeper.test.js | developit/sleeper | gpl-3.0 | 6,745 | 309 | codeparrot/github-code |
b4e5c6093a5edaf91b87b8d9856086a68bceec2cbd7009ea02e8bbe7c148f846 | /*
* OGF/Graphite: Geometry and Graphics Programming Library + Utilities
* Copyright (C) 2000-2005 INRIA - Project ALICE
*
* 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 o... | C | math/principal_axes.h | LiangliangNan/PolyFit | gpl-3.0 | 3,525 | 138 | codeparrot/github-code |
b3b3e6c764053909c63bd89bcb2e2fb172f602330eb6f9d2b9ce0efb7527e897 | /*******************************************************************************
* This file is part of KaHyPar.
*
* Copyright (C) 2014 Sebastian Schlag <sebastian.schlag@kit.edu>
*
* KaHyPar is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as publishe... | C | kahypar/partition/coarsening/policies/rating_tie_breaking_policy.h | MalleusMalleficarum/kahypar | gpl-3.0 | 1,388 | 54 | codeparrot/github-code |
9597118d2f875d71c33a4490b6cac7aaaa61c2a8bd88fc1eb28985ff53ee4ad5 | #include<iostream>
#include<cstdio>
#include<cmath>
#include<cctype>
#include<cstring>
#include<cstdlib>
#include<string>
#include<vector>
#include<algorithm>
#include<map>
#include<iomanip>
using namespace std;
int main()
{
int n,i,N[1000],temp,cnt;
bool flag;
while(cin >> n)
{
cnt=0;
... | C++ | UVA/Accepted/10327.cpp | ZOARDER-JR/Programming | gpl-3.0 | 680 | 54 | codeparrot/github-code |
9259e0e38d3b01c4eb9294f9cc8e02ef831f2f9b0f0ef155194629d275b7a2fa | // Copyright (C) 2014, HydroComplexity Group
// All rights reserved.
//
// GPU-BASED CONJUNCTIVE SURFACE-SUBSURFACE FLOW MODEL (GCSFlow)
// GCSFlow model 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... | C++ | src/configload.cc | HydroComplexity/GCSFlow | gpl-3.0 | 5,154 | 112 | codeparrot/github-code |
7b669313aab7d0ac1938a2d048af33b79f908037e45e5098137073a527e1b0b3 | --TB2-051_SPR Unyielding Victory Son Goku
local ds=require "expansions.utility_dbscg"
local scard,sid=ds.GetID()
function scard.initial_effect(c)
ds.EnableBattleAttribute(c)
ds.AddSetcode(c,SPECIAL_TRAIT_SAIYAN,CHARACTER_SON_GOKU_CHILDHOOD,CHARACTER_INCLUDES_SON_GOKU,SPECIAL_TRAIT_WORLD_TOURNAMENT)
ds.AddPlayProcedu... | Lua | expansions/script/c27004254.lua | Hello23-Ygopro/ygopro-ds | gpl-3.0 | 1,513 | 39 | codeparrot/github-code |
595cfe98d80c3fffbbb69a7ac91ccf260d988930635a88dfd8332260bd0a8449 | /*
* Copyright (C) 2021 Timo Vesalainen <timo.vesalainen@iki.fi>
*
* 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 ve... | Java | jmx/src/main/java/org/vesalainen/jmx/SimpleMBeanServerBuilder.java | tvesalainen/util | gpl-3.0 | 1,505 | 47 | codeparrot/github-code |
2ea7ca5f2688c0f03dd2edf557b4eb2fcb78a7061016aa88acb68a5a51b3dbec | /**
*
* This file is part of Tulip (www.tulip-software.org)
*
* Authors: David Auber and the Tulip development Team
* from LaBRI, University of Bordeaux 1 and Inria Bordeaux - Sud Ouest
*
* Tulip is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public Licens... | C++ | tulip-3.8.0-src/library/tulip/src/FaceIterator.cpp | kdbanman/browseRDF | gpl-3.0 | 5,125 | 215 | codeparrot/github-code |
2017282bc8bb025c9d50087a92b1dcee65f880904d3c3d0071cc29ac4c3e703e | <?php
namespace App\Notifications;
use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Notification;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
class UserActivationCode extends Notification implements ShouldQueue
{
/**
... | PHP | app/Notifications/UserActivationCode.php | hanwant0/503_multiauth | gpl-3.0 | 1,455 | 58 | codeparrot/github-code |
f81d859639dbeb2f0dfed7a9549d3d5d1e37ec0826570cca7e66f3920e0391d0 | /**
* Copyright 2015 Alexander Matthes
*
* This file is part of OLAV.
*
* OLAV 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.
*
* OLAV... | C++ | src/olav/OgreFramework.hpp | ComputationalRadiationPhysics/olav | gpl-3.0 | 3,753 | 122 | codeparrot/github-code |
2408535e06ff1674d50da44abb6a9981dd1976d8bf701da149aeb118e21877f8 | using Nikse.SubtitleEdit.Core.Common;
using Nikse.SubtitleEdit.Core.SubtitleFormats;
using Nikse.SubtitleEdit.Logic;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Text.RegularExpressions;
using System.Windows.Forms;
using System.Xm... | C# | src/ui/Forms/ImportText.cs | SubtitleEdit/subtitleedit | gpl-3.0 | 61,168 | 1,450 | codeparrot/github-code |
f5fede3e1d0d5c0ac7862c1dd832470d614b40b01585956dbdabac6b933c8b17 | package at.big_buum_man.server.gui.objects;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import at.big_buum_man.server.gui.helper.Variables;
/***
* @version 1.0
* @author Michael Januschek
*
*/
public class MapListe
{
ArrayList<String[]> v=ne... | Java | source/big-buum-man-server/src/main/java/at/big_buum_man/server/gui/objects/MapListe.java | MichaelJ2/big-buum-man | gpl-3.0 | 1,486 | 66 | codeparrot/github-code |
8c349d2f3e93c905163fc17fd70ce838e9566ee7fcdde4e325e2888c09e11a5c | package org.bglogin.web.config;
import java.util.Locale;
import org.springframework.context.MessageSource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.su... | Java | bglogin-web/src/main/java/org/bglogin/web/config/SpringMvcConfig.java | gvincenzi/bglogin | gpl-3.0 | 2,435 | 68 | codeparrot/github-code |
42e7924182d6735d4a5a20bf006dde61165ad8abb3ede11f114a899eab667f70 | /*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\/ M anipulation |
-------------... | C++ | src/OpenFOAM/meshes/pointMesh/pointPatches/derived/coupled/coupledFacePointPatch.C | kempj/OpenFOAM-win | gpl-3.0 | 2,039 | 55 | codeparrot/github-code |
f5858c463b32f797516d451140c2861ea9509ee8d22dcdf952f28da96569c679 | /**
* Copyright (C) 2010-2016 Structr GmbH
*
* This file is part of Structr <http://structr.org>.
*
* Structr 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 y... | Java | structr-core/src/main/java/org/structr/core/graph/NodeService.java | derkaiserreich/structr | gpl-3.0 | 7,077 | 260 | codeparrot/github-code |
551089e1a1c6997538903cd998ad7819c59e46a36e75afb1f35f3ea28dbcec76 | using System;
using System.Linq;
using ICSharpCode.NRefactory.TypeSystem;
namespace OmniSharp.Solution
{
public class ProjectReference : IAssemblyReference
{
readonly ISolution _solution;
readonly string _projectTitle;
readonly Guid _projectGuid;
public ProjectReference(I... | C# | python/ycm/completers/cs/OmniSharpServer/OmniSharp/Solution/ProjectReference.cs | ldong/vim_youcompleteme | gpl-3.0 | 1,034 | 33 | codeparrot/github-code |
89566179c95434af693dd7f24d659014e277dc4182f6a022182202fe4ce7fc4b | #pragma region Copyright (c) 2014-2017 OpenRCT2 Developers
/*****************************************************************************
* OpenRCT2, an open source clone of Roller Coaster Tycoon 2.
*
* OpenRCT2 is the work of many authors, a full list can be found in contributors.md
* For more information, visit h... | C++ | src/openrct2/title/TitleScreen.cpp | Dennis-Z/OpenRCT2 | gpl-3.0 | 8,229 | 325 | codeparrot/github-code |
7715215ebd19876c5e902bc51610ca51992f25b02d4bb1a2ab5b3a731f8030bd | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="p2pool">
<meta name="author" content="">
<link rel="icon" href="favicon.... | HTML | web-static/index.html | wellenreiter01/p2pool-neoscrypt | gpl-3.0 | 20,031 | 575 | codeparrot/github-code |
0803de0b43dd53b2827c7283a12413650c8672dbf5af93172fc632d7ff3309f5 | /*
* This file is part of RawTherapee.
*
* RawTherapee 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.
*
* RawTherapee i... | C | rtgui/editwindow.h | VonChenPlus/rawtherapee | gpl-3.0 | 1,912 | 60 | codeparrot/github-code |
8451796907599c5b026f07d9ea87a0b6756892c2fe6e3e0c1e5d3ebd444457f6 | <?php
get_header();
$show_default_title = get_post_meta( get_the_ID(), '_et_pb_show_title', true );
$is_page_builder_used = et_pb_is_pagebuilder_used( get_the_ID() );
?>
<div id="main-content">
<div class="breadcrumbs">
<a href="/">CRGC Home</a> > <a href="/news/">News</a> >
</div>
<div class="container">
<div ... | PHP | single.php | tcheektulane/DiviRAND | gpl-3.0 | 4,624 | 142 | codeparrot/github-code |
293282ed66a10b9fe25458bb6d7c868a924b40dc19ccd7524ea782a714d62ce0 | /*
*
* Copyright (c) 2011-2016 The University of Waikato, Hamilton, New Zealand.
* All rights reserved.
*
* This file is part of libprotoident.
*
* This code has been developed by the University of Waikato WAND
* research group. For further information please see http://www.wand.net.nz/
*
* libprotoident is f... | C++ | lib/udp/lpi_fasp.cc | elnappo/libprotoident | gpl-3.0 | 2,192 | 87 | codeparrot/github-code |
3eff2c5a28ef1f72bef71d4185723898559e9d2727327c2e85fb9bf7e7556e2e | package de.mud.jta.plugin;
import de.mud.jta.FilterPlugin;
import de.mud.jta.Plugin;
import de.mud.jta.PluginBus;
import de.mud.jta.event.ConfigurationListener;
import de.mud.jta.event.OnlineStatus;
import de.mud.jta.event.SocketListener;
import java.io.IOException;
// import java.io.InputStream;
// import java.io.O... | Java | src/main/java/de/mud/jta/plugin/Shell.java | timrs2998/JTA-Fork | gpl-3.0 | 2,792 | 94 | codeparrot/github-code |
7d2359182e946b44ad34067d68ae2e92e0921806ee7437fd04f464445fcc61b9 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- Copyright (C) 1995-2016 Free Software Foundation, Inc.
Permission is granted to copy, distribute and/or modify this document
under the terms of... | HTML | aquamacs/doc/Aquamacs Help/misc/gnus.html/Predicate-Specifiers.html | davidswelt/aquamacs-emacs | gpl-3.0 | 4,759 | 128 | codeparrot/github-code |
895183268b36dbb88708a81c35f643bd72b6baf0ec9cfd40ff2b87e78c670302 | <?PHP
/**
* Coders/Contractors Work Log - A time tracking/invoicing app
* Copyright (C) 2015 Jim A Kinsman (cworklog.com) relipse@gmail.com github.com/relipse
*
* But God demonstrates His own love toward us, in that while we were still sinners,
* Christ died for us. - Rom 5:8
*
* LICENSES - GPL 3.... | PHP | public_html/api_worklog.php | relipse/cworklog | gpl-3.0 | 3,041 | 65 | codeparrot/github-code |
e886fc96636f5ca77eb410aa36666ae5f09db7eb78bbeb6c783d321720bc0786 | /*---------------------------------------------------------------------------*\
========= |
\\ / F ield | cfMesh: A library for mesh generation
\\ / O peration |
\\ / A nd | Author: Franjo Juretic (franjo.juretic@c-fields.com)
\\/ M anipulation |... | C++ | src/mesh/cfMesh/utilities/smoothers/geometry/meshOptimizer/tetMeshOptimisation/advancedSmoothers/meshUntangler/meshUntangler.H | Unofficial-Extend-Project-Mirror/foam-extend-foam-extend-3.2 | gpl-3.0 | 4,713 | 153 | codeparrot/github-code |
72c58bbf03fac3017cffbc5a8c9fd22b522b877701cea169c537a7ba4e436883 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | HTML | UE/S2/Projet/Web/public/doc/html/user_2account_2role_2get_2index_8php.html | rpereira-dev/ENSIIE | gpl-3.0 | 4,917 | 117 | codeparrot/github-code |
271c94880d34e99f2e758fea24f777d409eb6c85961de35ae9395d75c4296dec | package com.example.mynote.adapter;
import android.content.Context;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android... | Java | app/src/main/java/com/example/mynote/adapter/NoteRecyclerAdapter.java | czwen-ing/mynote | gpl-3.0 | 10,157 | 320 | codeparrot/github-code |
fa27ab4dab7da96c44372a87c55da75e87803c8e0ebb0ee4629b91ef6d66d071 | #ifndef PARTICLE_SIMULATOR_HPP
#define PARTICLE_SIMULATOR_HPP
#include <boost/bind.hpp>
// #include "Sphere.hpp"
// #include "Cylinder.hpp"
// #include "Box.hpp"
#include "utils/range_support.hpp"
//#include "NetworkRulesWrapper.hpp"
#include "ReactionRuleInfo.hpp"
#include "ReactionRecorder.hpp"
#include "ReactionRec... | C++ | ecell4/egfrd/ParticleSimulator.hpp | ToruNiina/ecell4 | gpl-3.0 | 6,485 | 208 | codeparrot/github-code |
36150e2a20e8116c77fb886de46c63ae9ea7e128a9b31f27b149880bc4d50978 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
... | HTML | 05-bootstrap/05-bootstrap-3.0/src/ejemplos/ejemplos/ejemplos/jumbotron-narrow/index.html | asanzdiego/curso-interfaces-web-2017 | gpl-3.0 | 3,545 | 89 | codeparrot/github-code |
1e94711bd51575a0cbc616c13f88b5eb742c400cd13386b3d0c8dd403bd782d8 | //--------------------------------------------------------------------------
//
// Copyright (C) 2008-2014 Rhys Ulerich
// Copyright (C) 2012-2014 The PECOS Development Team
// Please see http://pecos.ices.utexas.edu for more information on PECOS.
//
// This file is part of Suzerain.
//
// Suzerain is free software: yo... | C++ | apps/reacting/manufactured_solution.cpp | RhysU/suzerain | gpl-3.0 | 18,677 | 510 | codeparrot/github-code |
6b8eb772f26e67fb0a50ce32adfd34772f49450a2f18fae13d8804c2b11b2f51 | #include <errno.h>
#include <stdio.h>
#include <sys/ioctl.h>
#include <sys/select.h>
#include <ConsoleManager.h>
#include <system/System.h>
ConsoleManager::ConsoleManager (ConsoleListener& listener)
: input_size (4),
log_size (8),
listener (listener)
{
//trace (TRACE_MAXIMUM);
/* XXX: estupido curses, graci... | C++ | src/cliente/ConsoleManager.cc | diegonc/concuconversation | gpl-3.0 | 3,331 | 168 | codeparrot/github-code |
5389a9ccf5dddb336caa7d88776353a2587a09aa07badaab2cd6829fdbba23ea | /**********************************************************
* Version $Id: grid_pca.cpp 1921 2014-01-09 10:24:11Z oconrad $
*********************************************************/
///////////////////////////////////////////////////////////
// //
// ... | C++ | saga-gis/src/modules/statistics/statistics_grid/grid_pca.cpp | UoA-eResearch/saga-gis | gpl-3.0 | 15,990 | 606 | codeparrot/github-code |
a2fcd155629c1469ec0d2e4022d388f60aa1490ec4baff9b896a17dd1bbe68d2 | <?php
enforce_login();
authorize();
if (!check_perms('admin_convert_tags')) {
error(403);
}
$tagtype = $_POST['tagtype'];
if (!in_array($tagtype, ['bad','good'])) error(0);
$returnmessage = '';
$result = 0;
if (isset($_POST["old{$tagtype}tags"])) {
$oldIDs = $_POST["old{$tagtype}tags"];
if (is_array($old... | PHP | application/Legacy/sections/tools/managers/tags_goodbad_alter.php | Empornium/Luminance | gpl-3.0 | 2,813 | 74 | codeparrot/github-code |
2e08631ba03e22029d94b8fedefbe7502d2a1a72907a8d9ee3a48f6dba942a2c | #include <windows.h>
#include <stdio.h>
#include <string>
#include <vector>
#include <algorithm>
#include <fstream>
#include <ctime>
#include <functional>
#include "Plugin.h"
struct Configuration {
char logName[10];
uint numberOfInstructions; // how many instructions to read
uint numberOfJumps; // how deep is re... | C | InstructionDump.c | inovkovic/Instruction-dump-plugin | gpl-3.0 | 13,123 | 534 | codeparrot/github-code |
220c151963e75eee82dc0d81ccbc1850dc51aa71caae2ae00f1a47641f6739e4 | var _ = require('underscore');
var express = require('express');
var router = express.Router();
var Autocomplete = require('autocomplete');
var autocomplete = Autocomplete.connectAutocomplete();
var categoryNames = [];
var categories = require('../data/categories.json');
_.each(categories, function (category) {
if(... | JavaScript | routes/categories.js | jalalahmad/autocomplete | gpl-3.0 | 1,255 | 36 | codeparrot/github-code |
ad0f55b486d671bb9c3bade9bc8024bda01d289e62d5035b4301f96346f0a784 | /****************************************************************************
ePMC - an extensible probabilistic model checker
Copyright (C) 2017
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 Softw... | Java | plugins/jani-interaction/src/main/java/epmc/jani/interaction/remote/TaskServerLocal.java | liyi-david/ePMC | gpl-3.0 | 9,131 | 239 | codeparrot/github-code |
ae0a58d81d871d9bddb1a415470e2dae688281e0f4edc39ce3c10fa2f61b01e3 | #include <stdio.h>
#include <string.h>
#include <avr/interrupt.h>
#include <avr/eeprom.h>
#include <avr/io.h>
#include <avr/wdt.h>
#include <util/delay.h>
/* data interface */
#include <data/data.h>
#include <data/databasictypes.h>
#include <data/datadirectories.h>
#include <data/dataarrays.h>
#include <data/datastr... | C | src/hacks/firstra8816/firstra8816.c | seandepagnier/openmag | gpl-3.0 | 1,114 | 63 | codeparrot/github-code |
d63d35a6ea5afccfe440d337cf1c21b6b32182267a7631811d03c46c505f4be9 | /**
* helper functions for event entities
*/
(function () {
/**
* show self contained popup for listing Course Event entities
*/
radio('Event-CourseEvent').subscribe(function(modelId){
var id = new Date().getTime();
$.get(document.endpoints.event.getCourseEvent + "/" + modelId , function (html) {
... | JavaScript | App.Mvc/Scripts/Tools/event.js | NTiering/TrainingManager | gpl-3.0 | 19,404 | 412 | codeparrot/github-code |
5dcda78ea386b8afe9bc461182393813a507164b7076c2245e107926256b7031 | /*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2014-2017 Alberto Passalacqua
\\/ M anipulation |
--------... | C++ | src/quadratureMethods/momentInversion/univariate/basic/gaussRadauMomentInversion/gaussRadauMomentInversion.C | jheylmun/OpenQBMM-dev | gpl-3.0 | 3,541 | 126 | codeparrot/github-code |
0734f2446568830ae8d8534c41ddf87352670ad6f33101cc4041d8f0c06f00f7 | package com.cake.notificator;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.widget.Switch;
public class SettingsActivity extends AppCompatActivity {
@Override
protected void onCreat... | Java | source/app/src/main/java/com/cake/notificator/SettingsActivity.java | NapoleonTheCake/notificatorro | gpl-3.0 | 5,812 | 165 | codeparrot/github-code |
39be7560c80548138852b19cc8c63c26eb463ed7ae6fd61052f5d12c470826f6 | /*************************************************************************
> File Name: VoxelWeapon.h
> Project Name: Cubby
> Author: Chan-Ho Chris Ohk
> Purpose: Voxel weapon.
> Created Time: 2016/07/03
> Copyright (c) 2016, Chan-Ho Chris Ohk
*************************************************************************/
... | C | Sources/Models/VoxelWeapon.h | MineScroll/Cubby | gpl-3.0 | 5,885 | 253 | codeparrot/github-code |
5b3dd9b40925b3022c42977a47832198d0f904e091950ab2d142e2ffc77cb3a6 | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package etomica.units.dimensions;
import java.io.ObjectStreamException;
import etomica.units.Prefix;
import etom... | Java | etomica-core/src/main/java/etomica/units/dimensions/Temperature.java | etomica/etomica | mpl-2.0 | 1,632 | 52 | codeparrot/github-code |
da827e1c9dfaa571bba7ffe5031c3800de671483bbf9e2a3c947b3c5582ebf1b | #ifndef HASH_H
#define HASH_H
struct s_sym {
char *name;
struct s_var *value;
struct s_sym *next;
};
struct s_hash {
int size;
bool closure;
struct s_hash *outer;
struct s_sym **sym;
};
typedef struct s_hash HASH;
typedef struct s_sym SYM;
struct s_iter {
HASH* hash;
int index;
SY... | C | myc/env.h | mpwillson/mal | mpl-2.0 | 663 | 40 | codeparrot/github-code |
385e38469b4aaffef6deaea7cb29642c51008459e8332744d13fc64b59ca26f6 | package terraform
import (
"fmt"
"github.com/hashicorp/go-version"
)
// The main version number that is being run at the moment.
const Version = "0.10.6"
// A pre-release marker for the version. If this is "" (empty string)
// then it means that it is a final release. Otherwise, this is a pre-release
// such as "... | GO | terraform/version.go | mafrosis/terraform | mpl-2.0 | 942 | 32 | codeparrot/github-code |
ed001974467e91949405873472ce9be59ebf15e37c1449765e1a5a0dfdfd8f22 | #! /bin/bash -e
# This file is a wrapper around docker build with specific concerns around image
# versions and registry deployment... It also attempts to detect any potential
# missing dependencies and warns you about them.
gecko_root="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../.." && pwd )"
usage() {
echo "Build... | Shell | testing/docker/build.sh | cstipkovic/spidermonkey-research | mpl-2.0 | 3,188 | 115 | codeparrot/github-code |
0937bac568381cfcc05bba1efc443bae4124e6bf8028edabf9f94a3923a4720d | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use style::computed_values::font_weight;
use platform::font_context::FontContextHandle;
use platform::font::FontHa... | Rust | src/components/gfx/font_template.rs | seanmonstar/servo | mpl-2.0 | 4,170 | 116 | codeparrot/github-code |
75c6d4c694ff227badbe58b3d303d28c25c9a5a6c3303b90f9d3fc14cfb9ea16 | package org.mifos.mobilebanking;
import android.content.Context;
import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mifos.mobilebanking.api.DataManager;
import org.mifos.mobilebanking.models.beneficary.Beneficiary;
import org.mifo... | Java | app/src/test/java/org/mifos/mobilebanking/ThirdPartyTransferPresenterTest.java | therajanmaurya/self-service-app | mpl-2.0 | 3,144 | 97 | codeparrot/github-code |
6ae7cf135a0fb413c782b64fcbf6fcb707c92aa182f9e2f2fadeeee4fde24edc | angular.module('qmsk.e2.server', [
'qmsk.e2',
'qmsk.e2.console',
'qmsk.e2.web',
'ngResource',
'ngRoute',
'jsonFormatter',
'ui.bootstrap',
])
.config(function($routeProvider) {
$routeProvider
.when('/main', {
templateUrl: '/static/qmsk.e2/s... | JavaScript | static/qmsk.e2/server.js | depili/e2 | mpl-2.0 | 10,066 | 366 | codeparrot/github-code |
3616140ac9b2634e91411a996b5fa9378cd4c17149c8beced1da16a67b593f13 | module Kitos.Services {
"use strict";
interface ISystemRoleModel {
Id: number;
HasReadAccess: boolean;
HasWriteAccess: boolean;
Name: string;
IsActive: boolean;
Description?: any;
ObjectOwnerId: number;
LastChanged: Date;
LastChangedByUse... | TypeScript | Presentation.Web/app/services/itSystemService.ts | os2kitos/kitos | mpl-2.0 | 1,975 | 65 | codeparrot/github-code |
e5189dc4eacad42a8b6a67dddf27e38331428c0e654e7a6072acb7814fa97bda | /*
* gcd.c
*
* Greatest common divisor
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#includ... | C | security/nss/lib/freebl/mpi/utils/gcd.c | Yukarumya/Yukarum-Redfoxes | mpl-2.0 | 1,950 | 96 | codeparrot/github-code |
707bf603f83b0301d7aeb24fc80befedc9529a782575a5792f217dc97dcbd660 | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
define(
[
'underscore',
'backbone',
'lib/localizer'
],
function (_, Backbone, Localizer) {
'... | JavaScript | app/scripts/views/base.js | mozilla/chronicle | mpl-2.0 | 4,193 | 169 | codeparrot/github-code |
8144630d0d995b2d4807423f633cf72fc752db4bf41c8dfee138c5762e8d014f | // @flow
import type {
Action, ExpandedSet, ProfileSelection,
} from '../actions/types';
import type { Days, StartEndRange } from '../../common/types/units';
import type { IndexIntoFuncTable, Profile, ThreadIndex } from '../../common/types/profile';
import type { TransformStacksPerThread } from '../../common/types/t... | JavaScript | src/content/reducers/types.js | squarewave/bhr.html | mpl-2.0 | 2,440 | 102 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.