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 |
|---|---|---|---|---|---|---|---|---|
c235124d1cb74dbc99aef54b7be5183b9a37c614bcf55265002d97e8f861a533 | package com.neemre.bitplexus.backend.crypto.adapter;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Component;
import com.google.common.collect.Lists;
import com.neemre.bitplexus.backend.crypto.Bitco... | Java | src/main/java/com/neemre/bitplexus/backend/crypto/adapter/NodeClientAdapter.java | priiduneemre/bitplexus | gpl-3.0 | 14,630 | 362 | codeparrot/github-code |
42675a2ba592797031efbb0882e23243dd2a1ff5abba03fc78f9ae0886733ac4 | using System;
using algs4.stdlib;
namespace algs4.algs4
{
public class BoyerMoore
{
/// <summary>
/// Tthe bad-character skip array
/// </summary>
private readonly int[] _right;
/// <summary>
/// Store the pattern as a character array
/// </summary>
... | C# | algs4/algs4/BoyerMoore.cs | mina-asham/algs4-CSharp | gpl-3.0 | 4,473 | 161 | codeparrot/github-code |
966fde6a227a1d74543469a3f20ca8769212448a2bd6f01a3ee4cc042079f1e4 | #include "Sender.h"
#include "MouseEvent.h"
#include "Math/Vector.h"
#include "memdbg.h"
using namespace myengine;
Sender<MouseEvent> myengine::mouseEventSender;
//=============================================================================
// Constructor
//======================================================... | C++ | Source/Engine/EventSystem/MouseEvent.cpp | skilion/jump-and-run | gpl-3.0 | 1,406 | 56 | codeparrot/github-code |
6728d3603d0f521bcd29aa8d138a60abcffea86713cf588563f65eb6a60a5b08 | #include "Plane.h"
/*
get a speed scaling number for control surfaces. This is applied to
PIDs to change the scaling of the PID with speed. At high speed we
move the surfaces less, and at low speeds we move them more.
*/
float Plane::get_speed_scaler(void)
{
float aspeed, speed_scaler;
if (ahrs.airspeed... | C++ | ArduPlane/Attitude.cpp | jmachuca77/ardupilot | gpl-3.0 | 27,819 | 711 | codeparrot/github-code |
9d4625b6bdd0843e26abe48b524a7e3effdfebb160259fca9781cb70148cb074 | /*
* irc-bar-item.c - bar items for IRC plugin
*
* Copyright (C) 2003-2021 Sébastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
* WeeChat is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as publish... | C | src/plugins/irc/irc-bar-item.c | talisein/weechat-1 | gpl-3.0 | 24,911 | 832 | codeparrot/github-code |
ffec5add1a767b5d58d8de1add6054d4262eff5d55294c21fd8f859fe2567c69 | /*
* Copyright (c) 2013 OBiBa. All rights reserved.
*
* This program and the accompanying materials
* are made available under the terms of the GNU Public License v3.0.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*... | Java | opal-core-ws/src/main/java/org/obiba/opal/web/provider/ConstraintViolationExceptionMapper.java | apruden/opal | gpl-3.0 | 1,120 | 39 | codeparrot/github-code |
e9a6ec26429bcb54cbf3cc383c7cb9fa70130b0c91d94502b6c53c55123a0ac7 | local parser = require 'parser'
local writer = require 'writer'
local function validKey(k)
if type(k) ~= 'string' then
return true
end
if k:sub(1, 1) == '_' then
return false
end
return true
end
local function checkeq (x, y, p)
if p then
print(x, y)
end
if type(... | Lua | test/ast/init.lua | syj2010syj/JassParser | gpl-3.0 | 2,811 | 94 | codeparrot/github-code |
1d9db53911d583311cdc071f68dedf1cf0306ca74d2a515b47dc9b1b2d3e4a88 | <?php
class WeekSurveyController extends Controller
{
/**
* @var string the default layout for the views. Defaults to '//layouts/column2', meaning
* using two-column layout. See 'protected/views/layouts/column2.php'.
*/
public $layout='//layouts/column4';
/**
* @return array action filters
*... | PHP | protected/controllers/WeekSurveyController.php | daixunxing/mmdsysu | gpl-3.0 | 13,665 | 382 | codeparrot/github-code |
c42122fd66aa8a6a67bbf9ea2a77215046fe9429d0cd7ac5974cb3dfa9f93d44 | # -*- coding: utf-8 -*-
"""
/***************************************************************************
VetEpiGIS-Stat
A QGIS plugin
Spatial functions for vet epidemiology
-------------------
begin : 2016-01-06
git sha : $Format:%H$
... | Python | plugin/globalt.py | IZSVenezie/VetEpiGIS-Stat | gpl-3.0 | 21,379 | 633 | codeparrot/github-code |
6380de6b67d4c520e8c1e8ed41c4a06981b5eb4fe72b0b66a990d94a760eae3f | /*
* 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 com.atlanta.educati.service;
/**
*
* @author Abel
*/
/*
* To change this license header, choose License Header... | Java | src/java/com/atlanta/educati/service/PersonaService.java | nbaez001/educatiback | gpl-3.0 | 1,261 | 57 | codeparrot/github-code |
495c0a7012f393f95b686e4b747d6536ba87bcbdc555f3542c322a8f32d8f8e4 | /*
* Copyright (C) 2016 Chan Chung Kwong <1m02math@126.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.
*
... | Java | test/com/github/chungkwong/jschememin/NonStandardProcedureTest.java | chungkwong/JSchemeMin | gpl-3.0 | 14,938 | 171 | codeparrot/github-code |
d12a1deca122bccb4b5386e1f75d589f0c7d7f6e58b4b15cb4b614792504b94a | #include <avr/io.h>
#include <stdint.h>
#include <util/delay.h>
#include <stdbool.h>
#include "config.h"
#include "onewire.h"
bool OneWireNeedinit = true;
void OneWireInit()
{
if(OneWireNeedinit){
ONE_WIRE_PORT &= ~(1 << ONE_WIRE_PIN);
ONE_WIRE_DDR &= ~(1 << ONE_WIRE_PIN);
OneWireNeedinit = false;
}
}
void ... | C | granum-space/src/onewire.c | granum-space/main | gpl-3.0 | 1,801 | 127 | codeparrot/github-code |
081628ca09ad633521bf463cafdff737c7ffb7ca52e307be4502301f312ef9ba | package Cards.Card;
public class Four extends NumberCard{
private int value = 4;
public String getString() {
return "4";
}
public String toString() {
return "Four";
}
public void setValue(int i) {
this.value = i; }
public int getValue() {
return value;
}
public Numb... | Java | HJA Pract1/src/Cards/Card/Four.java | rdaton/HIJA2015 | gpl-3.0 | 508 | 34 | codeparrot/github-code |
8eaa5beeaaac1aab772e85bf9e937670602990988d2a211e01807529cb676ee9 | #!/usr/bin/env python
#
# "TC BOUT BOARD" a wrestling Match Bout Board application for youth matches or tournaments
# Copyright (C) 2016 Anthony Cetera
#
# 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
# t... | Python | app/tc_bout_board.py | nitrotc/tc-bout-board | gpl-3.0 | 27,003 | 640 | codeparrot/github-code |
b96554c0d562a12186b03e03e1b9afc825732a263968d6c7441110288c334585 | // Copyright 2015 The go-ethereum Authors
// This file is part of go-ethereum.
//
// go-ethereum 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 la... | GO | cmd/utils/client.go | SaferLuo/EtherIOT | gpl-3.0 | 1,884 | 56 | codeparrot/github-code |
514bdbe736c71b203901378d163120af1f318e7fe229cf8c34d70f77153fe8a2 | package me.staartvin.statz.commands;
import me.staartvin.statz.Statz;
import me.staartvin.statz.commands.manager.StatzCommand;
import me.staartvin.statz.language.Lang;
import me.staartvin.statz.util.StatzUtil;
import me.staartvin.statz.util.StatzUtil.Time;
import org.bukkit.ChatColor;
import org.bukkit.OfflinePlayer;
... | Java | src/me/staartvin/statz/commands/PurgeCommand.java | Staartvin/Statz | gpl-3.0 | 3,977 | 113 | codeparrot/github-code |
ce3ba0ced978a2918dfd57b4e66c4e334e72ccbdcb8ffc6e99e1b44c64732efd | #!/usr/bin/env python3
'''
Runs Gajim's Test Suite
Unit tests tests will be run on each commit.
'''
import sys
import unittest
import getopt
use_x = True
verbose = 1
try:
shortargs = 'hnv:'
longargs = 'help no-x verbose='
opts, args = getopt.getopt(sys.argv[1:], shortargs, longargs.split())
except geto... | Python | test/runtests.py | lovetox/gajim | gpl-3.0 | 1,510 | 62 | codeparrot/github-code |
8023acc17f6de66cd58e4e6b3260d7b64cdad4ee8a74260244566c4e65c3d612 | import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import com.google.common.base.Function;
import com.google.common.collect.Multimap;
public class Anagram {
public static final Function<String, Integer> hasher = new Function<String, Integer>() {
@Override
public Integer ap... | Java | 2012/submissions/Khalil Fazal/4/src/Anagram.java | CS-CLUB/contests | gpl-3.0 | 2,126 | 66 | codeparrot/github-code |
52608fef5984d0e7b2a365e164bff78cb7589e5638b38d741dee47ff5a6bdda2 | /*
** KindleTool, kindle_table.h
**
** Copyright (C) 2011-2012 Yifan Lu
** Copyright (C) 2012-2020 NiLuJe
** Concept based on an original Python implementation by Igor Skochinsky & Jean-Yves Avenard,
** cf., http://www.mobileread.com/forums/showthread.php?t=63225
**
** This program is free software: you can r... | C | KindleTool/kindle_table.h | NiLuJe/KindleTool | gpl-3.0 | 4,554 | 73 | codeparrot/github-code |
44c7fee4511fafbe0d9ff2c9355bb1e61b2936917f4018f16a1f93ef28460d15 | /**** BSIM4.8.0 Released by Navid Paydavosi 11/01/2013 ****/
/**********
Copyright 1990 Regents of the University of California. All rights reserved.
Author: 1987 Gary W. Ng
**********/
/*
* NevalSrc2 (noise, lnNoise, ckt, type, node1, node2, param, node3, node4, param2)
* This routine is a modified versi... | C | BSIM480/BSIM480_Code/nevalsrc2.c | promach/divide_by_two | gpl-3.0 | 2,633 | 81 | codeparrot/github-code |
69d80e6e5e347521a58f2e6018aa76afe052fb095f103aa068af50a7a86cc4c4 | # -*-coding:UTF-8 -*
import os
import Auth.authentication as auth
import Auth.login as log
import Menu.barreOutils as barre
import Users.Model as U
import Projects.Model as P
#On appelle le module d'identification - Commenté pour les pahses de test d'autres modules
login = log.Login()
login.fenetre.mainloop()
#auth.... | Python | main.py | Aveias/gestt | gpl-3.0 | 1,101 | 38 | codeparrot/github-code |
5f04e99be3cf2f6f7ec516d5eed4e8ca6648ad931bde4159e44e2c0015eaa7c7 | <!DOCTYPE html>
<html>
<head>
<title>CouchGrid</title>
<meta charset="utf-8">
<link href="vendor/kendo/examples-offline.css" rel="stylesheet">
<link href="vendor/qtip2/jquery.qtip.min.css" rel="stylesheet">
<link href="vendor/kendo/kendo.rtl.min.css" rel="stylesheet">
<link rel=... | HTML | index.html | ctzurcanu/Datalog | gpl-3.0 | 11,575 | 304 | codeparrot/github-code |
c3b6bedcbbb60fd7a32c4e7ba006ff6517593c3310370fc16eedb7380e18c9b9 | /* Lips of Suna
* Copyright© 2007-2010 Lips of Suna development team.
*
* Lips of Suna is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any la... | C | src/lipsofsuna/extension/tiles/ext-module.h | TheAncientGoat/GodheadLips | gpl-3.0 | 1,604 | 63 | codeparrot/github-code |
2e9363acedaa46748b3a0d00f6265ae782b087b42954321e633fac1113aaff31 | /**
* 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/gui/renderer/performance/MultiClassificationPerformanceRenderer.java | transwarpio/rapidminer | gpl-3.0 | 2,226 | 58 | codeparrot/github-code |
72f5d6cd4e74a14bdb571c3dd1e9b255b936cde3c97c261601c601f6d9a36f65 | package amidst.mojangapi.world.biome;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import amidst.documentation.Immutable;
import amidst.documentation.NotThreadSafe;
@Immutable
public class Biome {
@Immutable
private static class BiomeIterable implements Iterable<Biome> {
@Override
... | Java | src/main/java/amidst/mojangapi/world/biome/Biome.java | BlueSteelAUS/amidst | gpl-3.0 | 13,720 | 208 | codeparrot/github-code |
b877f61d5884516ca6c233a20fd4a9a0acaab85c22893912161d9c731367e461 | using System;
using System.Collections.Generic;
using NetworkSimulator.Bll.Tests;
namespace NetworkSimulator.Bll.Jitterbug
{
internal class JitterBugShaping : JitterBugBase
{
#region Declarations
private List<Bin> _bins;
private readonly Random _random = new Random();
private ... | C# | ipd_generation/NetworkSimulator/Jitterbug/JitterBugShaping.cs | rjwalls/Liquid | gpl-3.0 | 9,934 | 271 | codeparrot/github-code |
479f843220a83f86dff87062f3a95cb23bc1120c20b282d4c514e8a45a53aa2c | /*************************************************************************
* SMOz (Start Menu Organizer)
* Copyright (C) 2006 Nithin Philips
*
* 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 Softwar... | C# | src/libSmoz/Commands/UI/RenameProgramItemCommand.cs | nithinphilips/SMOz | gpl-3.0 | 3,184 | 97 | codeparrot/github-code |
78e0d9fac1273a60241aefc15ddbf9ed78c530d55a7b1ddcdd47967a9ac25e79 | using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Newegg.Oversea.Silverlight.ControlPanel.Core.B... | C# | 02_ECCentral/02_Portal/UI/ECCentral.Portal.UI.Inventory/Models/Request/ConvertRequestVM.cs | ZeroOne71/ql | gpl-3.0 | 12,201 | 475 | codeparrot/github-code |
06e9a7d035e7ecedf6812f8dd1d1a10154491a0af36d9698780f83551aca5f75 | <?php
/*-----------------------------------------------------------------------------
| Bitsand - an online booking system for Live Role Play events
|
| File admin_finalconfirmation.php
| Author: Russell Phillips
| Copyright: (C) 2006 - 2015 The Bitsand Project
| (http://github.com/PeteAUK/bitsan... | PHP | admin/admin_finalconfirmation.php | PeteAUK/bitsand | gpl-3.0 | 10,958 | 291 | codeparrot/github-code |
9d7699bf9c615506b7811debb0a07eef056fa8bbb862c3bc342fa18fad1a2824 | // asathiabalan@gmail.com
// Author : Abhishek Sathiabalan
// (C) 2016 - 2017. All rights Reserved. Goverened by Included EULA
using System.Collections.Generic;
using LitDev;
using Microsoft.SmallBasic.Library;
namespace DBM
{
public static class Utilities
{
static List<string> _UI_Name = new List<stri... | C# | DBM/Source/Utilities/Utilities.cs | 65001/DBM-CSharp | gpl-3.0 | 1,834 | 59 | codeparrot/github-code |
70f7b07a269ffeb5e53be60083bc54e6d0c1cb250ffb6537a1e96226f66e1a9d | //# SourceData.cc: Class for a Blob file holding sources and their parameters
//#
//# Copyright (C) 2012
//# ASTRON (Netherlands Institute for Radio Astronomy)
//# P.O.Box 2, 7990 AA Dwingeloo, The Netherlands
//#
//# This file is part of the LOFAR software suite.
//# The LOFAR software suite is free software: you can ... | C++ | CEP/ParmDB/src/SourceData.cc | kernsuite-debian/lofar | gpl-3.0 | 7,099 | 206 | codeparrot/github-code |
9eb0704b0cda996839b6ef3bb4f2a8f2833ecd59fdc7e8f5d3f09b14effe4aa2 | package edu.projet;
/**
* Classe Passager qui représente le passager de la réservation
*
* @author Seme
*
*/
public class Passager
{
/**
* Id du passager
*/
private int idPas;
/**
* Nom du passager
*/
private String nom;
/**
* Prenom du passager
*/
private String prenom;
... | Java | src/main/java/edu/projet/Passager.java | Scriqui/agence-de-voyage | gpl-3.0 | 1,710 | 123 | codeparrot/github-code |
73d40f5da1b3e8a49aafd4af5ee4b750ea0d298688bfd3b47ac374988c436615 | /*
*
* BlueZ - Bluetooth protocol stack for Linux
*
* Copyright (C) 2012 Thiago da Silva Arruda <thiago.xth1@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; either ... | C | src/diagram_elements/event_diagram.c | xth1/bluez-traffic | gpl-3.0 | 9,046 | 356 | codeparrot/github-code |
0c285acb799406df2ab692dae9e9077744656fa147c6c24feae6e65b84659274 | /* xoreos - A reimplementation of BioWare's Aurora engine
*
* xoreos is the legal property of its developers, whose names
* can be found in the AUTHORS file distributed with this source
* distribution.
*
* xoreos is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Publ... | C++ | src/aurora/ifofile.cpp | kevL/xoreos | gpl-3.0 | 8,613 | 364 | codeparrot/github-code |
917e7760b66d3792a102ec38c0b7c126c8cb83149c19095d54cf12c80797ab91 | #!/usr/bin/env python
""" (Re)build the README.md file from README-template.md.
"""
# This file is part of Twempest. Copyright 2018 Dave Rogers <info@yukondude.com>. Licensed under the GNU General Public
# License, version 3. Refer to the attached LICENSE file or see <http://www.gnu.org/licenses/> for details.
import... | Python | build-readme.py | yukondude/Twempest | gpl-3.0 | 1,279 | 42 | codeparrot/github-code |
ccb9fc99cf4a9f8e92d437d4d1b33ba42901613fa4c3adb3b870a46e9ca02f0e | /***********************************************************************
Copyright (C) 2010 Alex R <burbulator@gmail.com>
This file is part of Qvernote.
Qvernote 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, e... | C | QNotesViewGraphicsWidget.h | cas--/Qvernote | gpl-3.0 | 3,454 | 129 | codeparrot/github-code |
387046a689c174ff4137f90e730f5de483bc485539958f05b54bcf1ce432518c | package org.unbiquitous.uImpala.engine.io;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map.Entry;
import org.unbiquitous.uImpala.engine.core.GameSingletons;
import org.unbiquitous.uImpala.util.observer.Observation;
import org.unbiqui... | Java | src/org/unbiquitous/uImpala/engine/io/KeyboardManager.java | matheuscscp/uImpala | gpl-3.0 | 4,307 | 160 | codeparrot/github-code |
e539c080d63a26bed4fbc06d42c1ee9d23b18b257e883868861c05d114d2b9be | ###
# Copyright 2016 - 2022 Green River Data Analysis, LLC
#
# License detail: https://github.com/greenriver/boston-cas/blob/production/LICENSE.md
###
class AccountPasswordsController < ApplicationController
before_action :authenticate_user!
before_action :set_user
def edit
render 'accounts/edit'
end
d... | Ruby | app/controllers/account_passwords_controller.rb | greenriver/boston-cas | gpl-3.0 | 775 | 39 | codeparrot/github-code |
b8396ca18b5ae7fcc4f4a55b039a51b96a253c47a4d3cf555b1318d3ffdd1c96 | # Copyright (C) 2017 Christopher M. Biwer
# 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 distribut... | Python | pycbc/transforms.py | soumide1102/pycbc | gpl-3.0 | 57,402 | 1,607 | codeparrot/github-code |
b51763206f21b93dfd03c15d3a85c59c04a6c716de1911e88000c42c53239d10 | <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Consultas Ajax con jQuery</title>
<link rel="stylesheet" type="text/css" href="http://code.jquery.com/ui/jquery-ui-git.js"/>
<link rel="stylesheet" type="text/css" href="http://code.jquery.com/ui/j... | PHP | ejemploAjax/ej2.php | gvera85/sikronk | gpl-3.0 | 8,284 | 234 | codeparrot/github-code |
07183e97ef0333a5bff51db9437e07e519f8276e82f93ee09f49c8fae3a6a62f | /*
* Copyright 2012, 2013 Hannes Janetzek
*
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
*
* This program is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free Software
* Foundation, eit... | Java | vtm/src/org/oscim/renderer/bucket/TextureBucket.java | mapzen/vtm | gpl-3.0 | 4,609 | 166 | codeparrot/github-code |
930a1cffcd44817feafd4c164699a834cbf890f3505fd89cca39593173e50938 | #include "stdafx.h"
#include <random>
#include "libapass/libapass.hpp"
#include "libapass/pe_log.h"
#if defined(_DEBUG) && defined(_MSC_VER)
# ifndef DBG_NEW
# define DBG_NEW new ( _NORMAL_BLOCK , __FILE__ , __LINE__ )
# define new DBG_NEW
# endif
#endif // _DEBUG
#ifndef _MSC_VER
# define _getpid getpid
#endif
... | C++ | libapass/APass.cpp | Aulddays/APass | gpl-3.0 | 17,305 | 527 | codeparrot/github-code |
6d6fadaa187eddef3d04bfeb54943ea2a0f69a0d6b2c49c992b857cf6ea13d86 | /* Horizon Microkernel - Hobby Operating System
* Copyright (C) 2014 Wyatt Lindquist
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your optio... | C | kernel/arch/i586/sw/int/isr.c | wquist/Horizon-Microkernel | gpl-3.0 | 1,903 | 58 | codeparrot/github-code |
892d5bb659f1987f1700f2cdccc6b41effb85eac9c909b5a8320cf1cb73c2992 | // adaugaContact.cpp : implementation file
//
#include "stdafx.h"
#include "Agenda.h"
#include "adaugaContact.h"
#include "afxdialogex.h"
// adaugaContact dialog
IMPLEMENT_DYNAMIC(adaugaContact, CDialogEx)
CStatic *s;
adaugaContact::adaugaContact(CWnd* pParent /*=NULL*/)
: CDialogEx(adaugaContact::IDD, pParent)... | C++ | [PH]Teme/Tema2/Agenda/Agenda/adaugaContact.cpp | RobertAlexandroaie/C_CPP | gpl-3.0 | 4,031 | 195 | codeparrot/github-code |
d7862c8d879e6ef012ef1eadc4471909a6415713f774caea4aa813725cd73a42 | <?php
include_once (dirname(__FILE__) .
'/includes/config.php');
header("Content-Type: text/html;charset=UTF-8");
?>
<title>Time-Reporting Emphasize Roadmap</title>
<script type="text/javascript">
function inc(id, orig) {
var pre=$("#v"+id).text()*1;
var next=pre+1;
if (Math.abs(next-orig) >1) {
ret... | PHP | roadmap.php | MartinHartnagel/emphasize.de | gpl-3.0 | 23,166 | 295 | codeparrot/github-code |
c6bc60ad69c1617fd49babbe62e386d3c9d87bffc2c2a5a0d1b2b72c1b0ed98a | import React from "react";
import hoistStatics from "hoist-non-react-statics";
import { connect } from "react-redux";
import { entityStoreActions } from "actions";
import { select, meta } from "utils/entityUtils";
import { statisticsAPI, analyticReportsAPI, requests } from "api";
import subDays from "date-fns/subDays";... | JavaScript | client/src/hoc/analytics/withAnalyticsReport.js | ManifoldScholar/manifold | gpl-3.0 | 4,920 | 159 | codeparrot/github-code |
e6fec28d3d7e36b411d19651898e19046ce1791beb94f1f0c716d3a1766b3a51 | ;;
;
; Name: generic
; Type: Macro Set
; Qualities: None
; Authors: skape <mmiller [at] hick.org>
; Version: $Revision: 1407 $
; License:
;
; This file is part of the Metasploit Exploit Framework
; and is subject to the same licenses and copyrights as
; the rest of this... | Assembly | external/source/shellcode/linux/ia32/generic.asm | cSploit/android.MSF | gpl-3.0 | 2,563 | 164 | codeparrot/github-code |
a5a30f05a452296e9295f1fe78f4c07114fbc1506157be3a49889b32ede44b44 | /*
Copyright (c) 2007-2010 iMatix Corporation
This file is part of 0MQ.
0MQ is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any... | C++ | perf/local_thr.cpp | dermoth/zeromq2 | gpl-3.0 | 3,790 | 138 | codeparrot/github-code |
e2d7d03b8c2c57412769993aa14e37d9a5e1cd7b36b369f461c53efdf5a4c52b | /*
Copyright (C) 2014-2016 de4dot@gmail.com
This file is part of dnSpy
dnSpy 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 late... | C# | Extensions/dnSpy.Debugger/dndbg/Engine/DnModuleId.cs | MeteorAdminz/dnSpy | gpl-3.0 | 7,651 | 211 | codeparrot/github-code |
2ae372e3b4c7b3cd4a5f3c55694931063a1b0b9e066c46fbc690479f96228b10 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <sys/wait.h>
#include <time.h>
#include <pcap.h>
#include <netinet/in.h>
#include <sys/select.h>
#include "thc-ipv6.h"
extern int debug;
char *interface = NULL,... | C | flood_dhcpc6.c | gebi/thc-ipv6 | gpl-3.0 | 6,870 | 211 | codeparrot/github-code |
009438abf686ba5aedfcdcd915660fca6b04f164872cf41d60fb25ea463f3e82 | <?php
function strip_mq_gpc($arg)
{
$arg = str_replace('"',"'",$arg);
$arg = stripslashes($arg);
return $arg;
}
function cleanit($text)
{
return htmlentities(strip_tags(stripslashes($text)), ENT_COMPAT, "UTF-8");
}
function get_last_ip(){
$lstip = get_client_ip();
if ($lstip!="::1"){
return... | PHP | core/main.php | bndghn/nms | gpl-3.0 | 32,366 | 1,161 | codeparrot/github-code |
933e2b17cbef1217218adf38b4bfd3f98e23c7f1b3d25fd575d4bd9254a3e102 | using OmInsurance.FundPackages;
using OmInsurance.FundPackages.Request;
using OMInsurance.BusinessLogic.FundRequest;
using OMInsurance.Configuration;
using OMInsurance.DataAccess.DAO;
using OMInsurance.DBUtils;
using OMInsurance.Entities;
using OMInsurance.Entities.Core;
using OMInsurance.Entities.Searching;
... | C# | OMInsurance.BusinessLogic/FundRequest/FundRequestBusinessLogic.cs | openzones/OMI | gpl-3.0 | 36,058 | 623 | codeparrot/github-code |
692f98c570c7d2cea322893a7fd381a65a2e5e91999179e3375d23b0ce5c9271 | #include "capstone_gui.h"
#include "Configuration.h"
#include "StringUtil.h"
CapstoneTokenizer::CapstoneTokenizer(int maxModuleLength)
: _maxModuleLength(maxModuleLength),
_success(false)
{
SetConfig(false, false, false, false);
}
std::map<CapstoneTokenizer::TokenType, CapstoneTokenizer::Toke... | C++ | src/gui/Src/Disassembler/capstone_gui.cpp | wynick27/x64dbg | gpl-3.0 | 19,932 | 554 | codeparrot/github-code |
22b0807cfc07ad255f577c3e29a87893a3e5bb53d6b96087664cdcb65d3cf7e6 | Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# Code is not reloaded between requests.
config.cache_classes = true
# Eager load code on boot. This eager loads most of Rails and
# your application in memory, allowing both threaded web serve... | Ruby | config/environments/production.rb | HongQiGong/megamillions | gpl-3.0 | 3,580 | 87 | codeparrot/github-code |
f8ba6715a6aa253e4e4a2da394a3a8e6b9139849d661586797edb5a201d2ee24 | /* $Id: e2_option_bool.c 2064 2010-03-12 13:15:36Z tpgww $
Copyright (C) 2004-2010 tooar <tooar@emelfm2.net>
This file is part of emelFM2.
emelFM2 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... | C | QMOLEDEV/emelfm2-0.9.1/src/config/e2_option_bool.c | chriskmanx/qmole | gpl-3.0 | 4,434 | 171 | codeparrot/github-code |
802fdbc2c4ac6c32950f7b4192e567366091fd1e4ea9f08908dc6cd082e8bdd2 | /* Copyright (C) 2003-2013 Runtime Revolution Ltd.
This file is part of LiveCode.
LiveCode is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License v3 as published by the Free
Software Foundation.
LiveCode is distributed in the hope that it will be useful, ... | C++ | libscript/src/script-object.cpp | livecodestephen/livecode | gpl-3.0 | 21,110 | 417 | codeparrot/github-code |
85bc0b770ffc543ae62e6540f61da9f59a3a346ad5a46deab64e759be5cccb0f | /*
* EZLinkTransitFactory.java
*
* This file is part of FareBot.
* Learn more at: https://codebutler.github.io/farebot/
*
* Copyright (C) 2011-2012, 2014-2016 Eric Butler <eric@codebutler.com>
* Copyright (C) 2011 Sean Cross <sean@chumby.com>
* Copyright (C) 2012 tbonang <bonang@gmail.com>
* Copyright (C) 2012... | Java | farebot-transit-ezlink/src/main/java/com/codebutler/farebot/transit/ezlink/EZLinkTransitFactory.java | codebutler/farebot | gpl-3.0 | 3,006 | 78 | codeparrot/github-code |
b40341ed45b8d2fc473b3f4f9db848e308b065b542ef62367ce1974a98da2a85 | /*
* https://github.com/achatain/catalog
*
* Copyright (C) 2017 Antoine Chatain (achatain [at] outlook [dot] 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... | Java | src/main/java/com/github/achatain/catalog/servlet/AuthenticatedJsonHttpServlet.java | achatain/catalog | gpl-3.0 | 4,157 | 97 | codeparrot/github-code |
c2a962445412e43cc37b6e12997ccbcaead2cf85511fc8c3962f7ccfba775c06 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.graylog2.messagehandlers.common;
import org.graylog2.Tools;
import java.util.HashMap;
import java.util.Map;
import org.bson.types.ObjectId;
import org.junit.Before;
import org.junit.Test;
import static org.... | Java | src/test/java/org/graylog2/messagehandlers/common/MessageCounterTest.java | ansyeow/graylog2-server | gpl-3.0 | 4,856 | 171 | codeparrot/github-code |
5c32da1a68d28bffb608b19f1ffa6cc950c9c284a4ba2f533cebb284b907a8ea | // Copyright 2015-2017 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any lat... | JavaScript | js/src/api/transport/jsonRpcBase.js | nipunn1313/parity | gpl-3.0 | 3,204 | 146 | codeparrot/github-code |
940c35b58714453e3475ac99c361ef20e6e608753da49cfe41073a11d552ab70 | <?php
/**
* This code is part of the FileManager software (www.gerd-tentler.de/tools/filemanager), copyright by
* Gerd Tentler. Obtain permission before selling this code or hosting it on a commercial website or
* redistributing it over the Internet or in any other medium. In all cases copyright must remain intact.... | PHP | includes/filemanager/class/FM_Image.php | gemichelst/localNET | gpl-3.0 | 12,886 | 530 | codeparrot/github-code |
1ec331d5e7b5c20b293c4a1027d01fc1e7562f33b8147f49fdff0b0c0a916729 | package it.stasbranger.rotarylive.domain;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.web.multipart.MultipartFile;
import com.... | Java | src/main/java/it/stasbranger/rotarylive/domain/Member.java | stasbranger/RotaryLive | gpl-3.0 | 2,271 | 135 | codeparrot/github-code |
cec584a944e02301d057e559f9d80e3b171a7ddfe41862d6b7ef7d991ca724ff | define([
'core/js/adapt',
'core/js/views/componentView',
'core/js/models/componentModel',
'libraries/mediaelement-and-player',
'libraries/mediaelement-fullscreen-hook'
], function(Adapt, ComponentView, ComponentModel) {
var froogaloopAdded = false;
// The following function is used to to prevent a memor... | JavaScript | js/adapt-media-autoplay.js | deltanet/adapt-media-autoplay | gpl-3.0 | 34,272 | 985 | codeparrot/github-code |
290570e63d286b9b84c2e58c1937a411da71323dae48a619ce212bec52f9fed9 | # x = last | random
# expected step N => 32 bit full
# 1 bit expected (step 1) = 1/2
# 1 bit expected (step 2) = 1/2^2
# 1 bit expected (step n) = 1/2^n
# 1 bit expected step = 1/2+2(1/2^2)+3*1/2^3)+4*1/2^4
# ???? n step or step
# 00
# 1.999999999
def bit1():
onebit = 0
for i in range(1000):
onebi... | Python | ProjectEuler/p323.py | CroMarmot/MyOICode | gpl-3.0 | 1,577 | 91 | codeparrot/github-code |
83d23b03964335917b2bf4204b9670743ee62f7917ade5660b28321eeb75743e | /*
Copyright 2015, 2017 Olli Helin / GainIT
This file is part of Kerppi, a free software released under the terms of the
GNU General Public License v3: http://www.gnu.org/licenses/gpl-3.0.en.html
*/
using System;
using System.Globalization;
using System.Windows.Data;
namespace Kerppi.ViewModels... | C# | Kerppi/ViewModels/RoundingMultiplyConverter.cs | ohel/kerppi | gpl-3.0 | 997 | 33 | codeparrot/github-code |
6f059118de4db4cb5dc3db478c88c30b4defabaa35fda104c2050de3663c3e98 | // -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*-
/*
* Copyright (C) 2011 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... | C | UnityCore/GLibWrapper-inl.h | foer/linuxmuster-client-unity | gpl-3.0 | 2,272 | 127 | codeparrot/github-code |
b296a4dbacf0b0d65874b8de1addd789553ee3df4b45ee6f76541227b2f4c209 | #include "SignalAspectModel.h"
#include "GlobalDefs.h"
#include "JSonModel.h"
#include "API.h"
SignalAspectModel::SignalAspectModel(QObject *parent)
: EntityModel("signalAspect", parent), m_deviceID(0)
{
connect(API::instance(), SIGNAL(apiReady()), this, SLOT(apiReady()));
}
QHash<int, QByteArray> SignalAspec... | C++ | LCSAdmin/SignalAspectModel.cpp | garfieldclarendon/ardunio | gpl-3.0 | 2,541 | 93 | codeparrot/github-code |
dda7119c3a70a8186c4cb3c17e0dc04f90b0af22b82b85939f8ec8a438c3ce78 | /*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation
\\/ M anipulation |
--------... | C++ | src/postProcessing/functionObjects/utilities/Peclet/Peclet.H | OpenCFD/OpenFOAM-history | gpl-3.0 | 4,891 | 183 | codeparrot/github-code |
7dc802b743234886ca99dab2a3c6cc3049299e24c3d30b77dc4f5ec2d6bc749c | package org.droidplanner.android.widgets;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.LinearGradient;
import android.graphics.Paint;
import android.graphics.Paint.Cap;
import android.graphics.Paint.Style;
import android.graphics.Path;
import an... | Java | Android/src/org/droidplanner/android/widgets/AttitudeIndicator.java | 0359xiaodong/droidplanner | gpl-3.0 | 5,700 | 182 | codeparrot/github-code |
abe6098207a9249af4f0da4b18dd520c44a6754d26b503d4275680f30fc8f186 | from threading import Thread
import winsound
import cv2
class WebcamVideoStream:
def __init__(self, src=0):
# initialize the video camera stream and read the first frame
# from the stream
self.stream = cv2.VideoCapture(src)
(self.grabbed, self.frame) = self.stream.read()
# ... | Python | BETA/TestCode/OpenCV/imutils-test/imultils-test2.py | RyanChinSang/ECNG3020-ORSS4SCVI | gpl-3.0 | 2,355 | 74 | codeparrot/github-code |
9ffea81d802b92aadd65dd3ed84824a4380f5da3c2e715ad355f726e9e97d345 | /* jshint node: true */
module.exports = function(environment) {
var ENV = {
modulePrefix: 'goodiebag',
environment: environment,
locationType: 'hash',
EmberENV: {
FEATURES: {
// Here you can enable experimental features on an ember canary build
// e.g. 'with-controller': true
... | JavaScript | config/environment.js | ToS-Addons/GoodieBag | gpl-3.0 | 1,057 | 47 | codeparrot/github-code |
1a34acad440652be8605dda975ae1bf6412e265eb12c26266d2e543f41f9f4db | {% extends "teachers/teacher_base.html" %}
{% load i18n %}
{% block content %}
<script type="text/javascript">
function checkAll(source) {
checkboxes = document.getElementsByName('suscription');
for (var i in checkboxes)
checkboxes[i].checked = source.checked;
}
</script>
<form method="post" action="">
{%... | HTML | teachers/templates/teachers/listsuscription.html | pelgoros/kwyjibo | gpl-3.0 | 2,922 | 91 | codeparrot/github-code |
0376b19b8cca6028acb343729d7d36da3761dab77205117fee7f9af0a5ff8b86 | """
Script to evaluate intermodal forward Brillouin scattering in a cylindrical SiO2 waveguide
"""
# Import the necessary packages
import time
import datetime
import numpy as np
import sys
import copy
from matplotlib.ticker import AutoMinorLocator
import math
sys.path.append("../backend/")
import material... | Python | JOSAB_tutorial/simo-josab-IFSBS-1umcylwg-SiO2.py | bjornsturmberg/NumBAT | gpl-3.0 | 7,020 | 148 | codeparrot/github-code |
89820678d473804c620d9ed7b210eb04824d4f37cea5b68ba39ce7189f220dcb | /*
* Copyright (c) 2012 Truong-Huy D. Nguyen.
* 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://www.gnu.org/licenses/gpl.html
*
* Contributors:
* Truong-H... | C++ | CAPIRSolver/src/utils/Simulator.cc | truonghuy/capir | gpl-3.0 | 14,910 | 578 | codeparrot/github-code |
1beb6bf848dfbea91917b282597f69cc2f8d10799b6bf24a2d6751a7c169272c | #!/usr/bin/php -q
<?php
require_once('PHPOTP.php');
require_once('Base32.php');
function DumpBinStr($BinStr) {
$Result='';
$Len=strlen($BinStr);
for ($i=0; $i<$Len; $i++) {
$Value=ord($BinStr[$i]);
if ($Value<16)
$Result.='0';
$Result.=dechex($Value).' ';
}
return rtrim($Result,' ');
}
/* Straight from ... | PHP | Test.php | adsllc/PHPOTP | gpl-3.0 | 1,561 | 79 | codeparrot/github-code |
48b0c20c97beb9ff6142b8af98c03201180f9a159568b1496d5db1051ce59758 | /*
* Copyright (C) 2012-2013 CypherCore <http://github.com/organizations/CypherCore>
*
* 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 opti... | C# | Framework/Configuration/AuthConfig.cs | ovr/CypherCore | gpl-3.0 | 1,520 | 37 | codeparrot/github-code |
a9571c095bf5d663a39e977de24249b9d0d0454663670333277f4a3e96199301 | #include <QPainter>
#include <QKeyEvent>
#include "ToolPen.h"
ToolPen::ToolPen(QGraphicsItem *drawingItem, int penSize, QColor color):
m_PenSize(penSize),
m_Color(color),
m_LineItem(drawingItem)
{}
ToolPen::~ToolPen() {}
void ToolPen::setSize(int size){
m_PenSize = size;
}
/**
* @brief ToolPen::pa... | C++ | src/Canvas/Tools/ToolPen.cpp | Nepta/nixjdr | gpl-3.0 | 5,228 | 179 | codeparrot/github-code |
cb2ffe846341bde9763c87e8872fb46531bd9a4be1b48981f18f21eb3d6b3398 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Database: `mailsc... | SQL | files/mailwatch/create.sql | deependhulla/archive-plus-ediscovery | gpl-3.0 | 10,084 | 280 | codeparrot/github-code |
4db393e4473d7011aa7b32613d5672dda48287e05f728bd301ce1e385cdf68aa | import turtle
import time
window = turtle.Screen()
def test():
allturtles = []
for i in range(4):
t1 = turtle.Turtle()
t2 = turtle.Turtle()
t3 = turtle.Turtle()
t4 = turtle.Turtle()
t1.speed(0)
t2.speed(0)
t3.speed(0)
t4.speed(0)
t1.penup()
t2.penup()
t3.penup()
t4.penup()
t1.... | Python | advProg/turtleStuff/helloturtleworld.py | willybh11/python | gpl-3.0 | 846 | 53 | codeparrot/github-code |
e928a58fdabc469cd5cc781bdff516e33830b1d9e7fa986d37b05ab3b852238c | var serverUptime = require('os').uptime(),
toTitleCase = require('./../../utils/utils.js').toTitleCase;
module.exports = {
usage: "Returns **stats** for the bot. Includes **bot/process/server** uptime, **memory usage**, **# of shards**, **channels/privateChannels/guilds/users** available, & **command usage**. ... | JavaScript | commands/mod/stats.js | ddlr/WishBot | gpl-3.0 | 3,385 | 73 | codeparrot/github-code |
f95606f826c7a9aebb871a4ae3980229b769ecb980fd978f8dde8091d2ddb3e3 | package uk.co.mysterymayhem.mysthighlights.config;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.common.config.ConfigCategory;
import net.minecraftforge.common.config.Configuration;
import net.minecraftforge.common.config.Property;
import net.minecraftforge.fml.client.event.ConfigChangedEv... | Java | src/main/java/uk/co/mysterymayhem/mysthighlights/config/Config.java | Mysteryem/MystHighlights | gpl-3.0 | 20,933 | 457 | codeparrot/github-code |
1c162a858185ac48aa235c6ef015628d9636dfad195b76e17306f4f8741fc75b | """
Copyright 2008, 2009, 2011 Free Software Foundation, Inc.
This file is part of GNU Radio
GNU Radio Companion is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option... | Python | grc/gui/MainWindow.py | glennlive/gnuradio-wg-grc | gpl-3.0 | 13,903 | 385 | codeparrot/github-code |
eedbc67668762ab7e54fb5e1b5405cf6a845742169a54f749ff8d2348372fa51 | <doctype html>
<head>
<!--
Design Name : SMK Widya Wisata site design
Design Coded : 03-10-2016
Design Finished : NA
Style : Materialism, Minimalist and Responsive
Designer : Iqbal Aqaba Putera
Designer url : www.iqbalaqaba.github.io
License : This design is licensed under the... | HTML | index.html | iqbalaqaba/widyawisata_pro | gpl-3.0 | 7,319 | 231 | codeparrot/github-code |
62a30670ed33a9742da5e090f6a1a92dff5efab9debf1ce679c65f0e4e5e9191 | /*
ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010,
2011,2012,2013 Giovanni Di Sirio.
This file is part of ChibiOS/RT.
ChibiOS/RT 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... | C | ChibiOS/os/ports/GCC/ARMCMx/SAM4L/vectors.c | alex31/bras_robot_e407_lcd4ds | gpl-3.0 | 15,464 | 311 | codeparrot/github-code |
9160c632b7fc1471645c65a1693a22c443567f3db143b4f95cc52cb40cba8d4e | package ihl.processing.metallurgy;
import java.util.List;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import ic2.api.energy.event.EnergyTileLoadEvent;
import ic2.api.energy.event.EnergyTileUnloadEvent;
import ic2.api.energy.tile.IEnergySink;
import ic2.core.ContainerBase;
i... | Java | src/main/java/ihl/processing/metallurgy/MachineBaseTileEntity.java | Foghrye4/ihl | gpl-3.0 | 6,735 | 280 | codeparrot/github-code |
c47bcb51913d4bb9b8f0ce473b6311c186df88f53e88a7eb6e496bba4ec60c0a | #pragma region Copyright (c) 2014-2016 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/management/news_item.h | halfbro/OpenRCT2 | gpl-3.0 | 2,170 | 73 | codeparrot/github-code |
ee5da4738a5a5434fed9be893cb80d216ede18f9f79ff4d5736c603f7b7b7555 | from django.contrib import admin
from django.conf import settings
from geonode.base.models import (TopicCategory, SpatialRepresentationType,
Region, RestrictionCodeType, ContactRole, ResourceBase, Link, License, Thumbnail)
class LicenseAdmin(admin.ModelAdmin):
model = License
list_display = ('id', 'name')... | Python | geonode/base/admin.py | mishravikas/geonode-cas | gpl-3.0 | 4,283 | 113 | codeparrot/github-code |
b5b1cb3964f1be517c0c75112ded127442492fb417452cc6860a871dc9effb65 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<title>Source code</title>
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
</head>
<body>
<div class="sourceContainer">
<pre><span class="sourceLineNo">0... | HTML | lib/slf4j-1.7.24/site/apidocs/src-html/org/slf4j/instrumentation/ToStringHelper.html | marcosruiz/esignature | gpl-3.0 | 19,106 | 264 | codeparrot/github-code |
1e43a9539b1f32bc547f8926d7b7658ff6c23ffc52fd29e51d7f3f9f818b1712 | /*
Copyright (C) 2011,2012 Makoto Nishiura.
This file is part of ERASM++.
ERASM++ 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, or (at your option) any later
version.
E... | C++ | src/erasm/x64_assembler_impl.hpp | nishiuramakoto/erasm-plusplus | gpl-3.0 | 9,405 | 481 | codeparrot/github-code |
1a8dfe57e9b86e1bc7ce03e2bb3b0f6dd975cb8a01db3e370c524ee591100cf6 | /*******************************************************************************
Copyright © 2010 Didier Corbiere
Distributable under the terms of the GNU Lesser General Public License,
as specified in the LICENSE file.
Searcher.hpp
**************************************************************************... | C++ | src/searcher/Searcher.hpp | marsender/atoll-digital-library | gpl-3.0 | 2,669 | 95 | codeparrot/github-code |
ca57674094d46ad4de086aedfb01c94cdc1a5d30da2f02b3c16156f93a0ed914 | /// <reference path="../Dialogs/DialogCondition.ts" />
@DialogConditionClass
class CheckInventory extends ConditionClass
{
public Display(id: number, values: string[], updateFunction?: string): string
{
var html = "";
html += this.Label("Item");
html += this.OptionList(id, 0, world.Inv... | TypeScript | public/Engine/Logic/Conditions/CheckInventory.ts | alain-bertrand/Dot-World-Maker | gpl-3.0 | 1,696 | 55 | codeparrot/github-code |
fb6150278d4b3a19a944c512b1656c309fc6071fe097ba5921ef3a95e0600a4c | ##
# This module requires Metasploit: http://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
require 'msf/core'
class Metasploit3 < Msf::Exploit::Remote
Rank = ExcellentRanking
include Msf::Exploit::Remote::HttpClient
def initialize(info={})
super(update_info(in... | Ruby | modules/exploits/multi/http/pmwiki_pagelist.rb | cSploit/android.MSF | gpl-3.0 | 2,805 | 103 | codeparrot/github-code |
581948d6fe5f4b1f316e3580a1b46268d703e2a092359a916474c650a3f80d52 | #ifndef INSERTOPERATION_H
#define INSERTOPERATION_H
#include <QtCore/QObject>
#include "operationitem.h"
class InsertOperation : public OperationItem
{
Q_OBJECT
public:
enum PositionType {
Prefix = 0,
Suffix = 1,
Fixed = 2,
BeforeText = 3,
AfterText = 4
};
Q_DE... | C | src/core/insertoperation.h | metamorphose/metamorphose3 | gpl-3.0 | 836 | 37 | codeparrot/github-code |
a4ff4647e51c70ab8d21d023dd298fcfac67c771950456b40e7d772306bb598a | var gameEvent = cc.Class({
ctor: function() {
if (arguments[0]) {
this.handle = arguments[0];
} else {
this.handle = cc.find('Game').getComponent('EventHandle');
}
this.event = {};
},
properties: {
loop: false,
repeatCount: 0,
... | JavaScript | assets/scripts/core/system/GameEvent.js | neveis/RPGMakerFP | gpl-3.0 | 5,035 | 182 | codeparrot/github-code |
f85d54949faeedd32ee3924322bb83a23459faf9d702dbc7d0e131478a1a2205 | ##!/usr/bin/python
import numpy as np
import pylab as plt
import seaborn as sns
sns.set_context('poster')
plt.subplot(1,1,1)
data = np.genfromtxt(fname='cor.dat')
#for x in range(1,data.shape[-1]):
plt.plot(data[:,0],data[:,1],lw=2,label='Re')
plt.plot(data[:,0],data[:,2],lw=2,label='Im')
#plt.plot(data[:,0]... | Python | GWP/2D/1.0.7/cor.py | binghongcha08/pyQMD | gpl-3.0 | 1,054 | 43 | codeparrot/github-code |
e9caaa6a66abc10dc00a92374fce9d874c84a5230673df5e9e7ab0f7b2e674f9 | <?php
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// ... | PHP | mdl_course.php | OBU-OBIS/moodle-local_obu_application | gpl-3.0 | 4,482 | 160 | codeparrot/github-code |
5db90604a3e5f92c63493f58d12a49548bae0fca13c91af05a17dacffe60b8ff | /**
* ueditor完整配置项
* 可以在这里配置整个编辑器的特性
*/
(function () {
//这里你可以配置成ueditor目录在您网站中与根目录之间的相对路径或者绝对路径(指以http开头的绝对路径)
//window.UEDITOR_HOME_URL可以在外部配置,这里就不用配置了
//场景:如果你有多个页面使用同一目录下的editor,因为路径不同,所以在使用editor的页面上配置这个路径写在这个js外边
//var URL = window.UEDITOR_HOME_URL || '../';
var tmp = window.l... | JavaScript | ueditor/editor_config.js | zning1994/newscentersystem | gpl-3.0 | 18,551 | 416 | codeparrot/github-code |
2801ae971c3a1ca1c03d34d9f07e514249d5fdd0f295c3c36f7f5b73c82b6ee0 | class StateObject(object):
def _get_state(self):
raise NotImplementedError # pragma: nocover
def _load_state(self, state):
raise NotImplementedError # pragma: nocover
@classmethod
def _from_state(cls, state):
raise NotImplementedError # pragma: nocover
# Usually, thi... | Python | libmproxy/stateobject.py | phase-dev/phase | gpl-3.0 | 2,608 | 73 | codeparrot/github-code |
bf6d3816fac50ea3c5f51bf3ad7fd08db1ecfcaf1897b94ad19f62d69b8464ab | /*
* Imp: Copyright 2016, 2017 Jesse Litton (imp@eternaldusk.com)
*
* This file is part of Imp.
*
* Imp 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 o... | C++ | src/asyncinfo.cpp | 3vi1/IMP | gpl-3.0 | 12,822 | 425 | codeparrot/github-code |
112670365699b09a963c01382b70a43c1fb96f4ae58a79768a45906e4284535a | /*
fuzzylite (R), a fuzzy logic control library in C++.
Copyright (C) 2010-2017 FuzzyLite Limited. All rights reserved.
Author: Juan Rada-Vilela, Ph.D. <jcrada@fuzzylite.com>
This file is part of fuzzylite.
fuzzylite is free software: you can redistribute it and/or modify it under
the terms of the FuzzyLite Lic... | C++ | fuzzylite/src/defuzzifier/WeightedSum.cpp | fuzzylite/fuzzylite | gpl-3.0 | 3,148 | 98 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.