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
95960c4b21808edeef24bdd297b1065e6a341ff85105255092ae3296550c1375
/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2014-2018 Alberto Passalacqua \\/ M anipulation | --------...
C++
src/quadratureMethods/momentInversion/univariate/basic/gaussRadauMomentInversion/gaussRadauMomentInversion.H
matteoicardi/OpenQBMM-dev
gpl-3.0
3,186
113
codeparrot/github-code
237adb85316035d5d0aa4dc0a66b8fa000f8c59e7ea170d069d2270bb371f86c
import datetime import numpy as np from artist import Plot from sapphire import Station from sapphire.transformations.clock import datetime_to_gps, gps_to_datetime from get_aligned_eventtimes import get_aligned, get_station_numbers YEARS = range(2004, datetime.date.today().year + 1) YEARS_TICKS = np.array([datetim...
Python
130711_event_histogram/eventtime_histogram.py
HiSPARC/topaz
gpl-3.0
2,523
69
codeparrot/github-code
6dd1991ec20e88336ce82e1ca1f587cebb9bb4bc019232bcfac9977b39f94dee
// qrcodegui.cpp : Defines the entry point for the application. // #include "stdafx.h" #include "qrcodegui.h" using namespace Gdiplus; #define MAX_LOADSTRING 100 // Global Variables: HINSTANCE hInst; // current instance TCHAR szTitle[MAX_LOADSTRING]; // The title bar text TCHAR szWindowClass[M...
C++
contrib/qrencode-win32/vc8/qrcodegui/qrcodegui.cpp
savoirfairelinux/ring-client-uwp
gpl-3.0
9,737
318
codeparrot/github-code
edc37e7cc9c00bd6d8b564f333067b4d75f4c2b8df4a25142f632b58553273f8
/* ** Copyright (C) 2015 University of Oxford ** ** This file is part of msprime. ** ** msprime 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...
C
lib/object_heap.c
ashander/msprime
gpl-3.0
4,839
188
codeparrot/github-code
6a09efee644cb4dd7f88038c51a381d4a110d35d12269aec48f55326f0500255
<!DOCTYPE html> <html dir="ltr" lang="en"> <head> <!-- Meta Tags --> <meta name="viewport" content="width=device-width,initial-scale=1.0"/> <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> <meta name="description" content="HairCare- Beauty Salon & Barber HTML5 Template for Women & Men" /> <...
HTML
templates/Original/haircare-client-html/portfolio-masonry-boxed-2-col.html
brandonccy/SmartNano
gpl-3.0
87,764
1,391
codeparrot/github-code
45e3e02f99fa030096669a1b9717af1b0cc0b5b1cba7efeb334dbd7a08dbbde5
/* This file is part of RUbioSeq-GUI. RUbioSeq-GUI 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. RUbioSeq-GUI is distributed in the...
Java
src/main/java/es/uvigo/ei/sing/rubioseq/gui/view/models/experiments/CSExperiment.java
hlfernandez/rubioseq-gui-webapp
gpl-3.0
1,429
54
codeparrot/github-code
ac5725619e7ea09cb4bfab5a2a636f87d5c26849e6da756dae2cf181b692f21f
#include <stdexcept> #include <algorithm> #include <sstream> #include "termcolor/termcolor.hpp" #include "statevalue.h" #include "basicmath.h" #include "cosinedistance.h" #include "levensteindistance.h" #include "newptr.h" namespace goap { using namespace std; using namespace basicmath; using namespa...
C++
GoapMain/GoapLibrary/statevalue.cpp
dvdjg/GoapCpp
gpl-3.0
12,818
527
codeparrot/github-code
337c1f11e8401caf098219f83237349becaa8c4a2431459127d7e29d7f466b7e
import { Move } from './move'; import { Serializable } from './iserializable'; interface IUnit { unitName: String; reflect: Number; life: Number; speed: Number; imageUrl: String; affinity: String; moves: any[]; } export class Unit implements Serializable<IUnit>, IUnit { unitName: Stri...
TypeScript
src/models/unit.ts
a16-synthese/web
gpl-3.0
1,008
46
codeparrot/github-code
4f9ad88cefa282afe293d37d8c871c640a1996da8e2e923dd9785f2ba9243034
//# ParmDBCasa.cc: Object to hold parameters in an Casa table. //# //# Copyright (C) 2002 //# 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 redistribute it...
C++
CEP/ParmDB/src/ParmDBCasa.cc
kernsuite-debian/lofar
gpl-3.0
27,808
760
codeparrot/github-code
8b5bb3ef491734cc772be9cb9745a723fac91e91bd535592613b9dbf7a3cd897
local argparse = require 'argparse' local torch = require 'torch' local gnuplot = require 'gnuplot' local paths = require 'paths' parser = argparse() parser:option('--load_paths', 'paths to experiments to plot'):args('+') parser:option('--type', 'test | dis | dis-real | dis-fake | gen', 'test') parser:option('--interv...
Lua
torch/plot.lua
stormraiser/GAN-weight-norm
gpl-3.0
1,539
55
codeparrot/github-code
05dd0fccbc05819099252ff5b0484af43e35ebe2a6fe5b4e9576d6949fb3a83e
/* * Copyright (c) 2005 Sandia Corporation. Under the terms of Contract * DE-AC04-94AL85000 with Sandia Corporation, the U.S. Governement * retains certain rights in this software. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following con...
C
src/plugins/xdmExodus/exodusii/cbind/src/exgvarparam.c
wdicharry/xdm
gpl-3.0
4,312
141
codeparrot/github-code
89e26ad92e78ef977ad96039fe138f46940066f14eff928944b31164636cd87a
package gaddag import ( "errors" "fmt" "github.com/domino14/macondo/alphabet" ) // zero value works. not threadsafe. type DawgAnagrammer struct { ans alphabet.MachineWord freq []uint8 blanks uint8 queryLength int } func (da *DawgAnagrammer) commonInit(dawg GenericDawg) { alph := dawg.Get...
GO
gaddag/dawg_anagrammer.go
domino14/macondo
gpl-3.0
4,952
193
codeparrot/github-code
4c58f97b7c2db9808ca4b6ceeb3e372a1d1ac0a81b1f00e0ccde6becc4fa579e
from twisted.internet import protocol from twisted.python import log import uuid import re class FTPUnix(protocol.Protocol): localhost = None remote_host = None session = None ### START CUSTOM VARIABLES ############################################################### username = None UNAUTH, INAUTH = range(...
Python
HoneyPy-0.6.2/plugins/FTPUnix/FTPUnix.py
leyondlee/HoneyPy-Docker
gpl-3.0
2,806
74
codeparrot/github-code
873c7bd3f7872d9c0081c6ca7fbf342dde04262f488b40a1f4d81a7b87d03b04
/*- * #%L * Genome Damage and Stability Centre SMLM ImageJ Plugins * * Software for single molecule localisation microscopy (SMLM) * %% * Copyright (C) 2011 - 2020 Alex Herbert * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as ...
Java
src/main/java/uk/ac/sussex/gdsc/smlm/fitting/JumpDistanceAnalysis.java
aherbert/GDSC-SMLM
gpl-3.0
81,045
2,257
codeparrot/github-code
54502f5e072fc46f7cca40f73be0f5e8c658b730ec1d99932797cc5ee2209cfb
// -*- 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...
C
UnityCore/Preview.h
isaacj87/unity
gpl-3.0
1,689
67
codeparrot/github-code
30288b70227e7223018b0445d276867bfb05eb84987ce662797e183e9482c42c
<?php /** * Copyright © OXID eSales AG. All rights reserved. * See LICENSE file for license details. */ namespace OxidEsales\EshopCommunity\Application\Controller\Admin; use OxidEsales\Eshop\Core\Registry; /** * Class manages deliveryset countries */ class DeliverySetCountryAjax extends \OxidEsales\Eshop\Appli...
PHP
source/Application/Controller/Admin/DeliverySetCountryAjax.php
OXID-eSales/oxideshop_ce
gpl-3.0
4,627
115
codeparrot/github-code
ac0d4424b1aa71085686b4b55fdada1be2f0050ff79e3f561f8fa88bccca505d
package edu.hucare.controller; import edu.hucare.model.ControlDevice; import edu.hucare.repository.ControlDeviceRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; /** * Created by Kuzon on 8/2/2016. */ @RestController @RequestMapping("/contro...
Java
server/device-service/src/main/java/edu/hucare/controller/ControlDeviceController.java
adalee-group/watering-system
gpl-3.0
1,142
47
codeparrot/github-code
f473902e6dd3fd0d7326dc60e91d2ab542d207a2fc9e447afbb8b7b79676feb9
/* * ===================================================================================== * * Filename: reimann_ivars.cc * * Description: * * Created: 04/27/2009 02:52:44 PM EDT * Author: Dinesh Kumar (dkumar), dkumar@buffalo.edu * License: GNU General Public License * ...
C++
src/riemann_solve.cc
zhixuanc/Titan_GSPH
gpl-3.0
4,235
157
codeparrot/github-code
33531e1e43f5db9cd8ad9092c1dc2a1809eead5af402f98f03c24a7fe05103f0
package org.inbio.neoportal.core.entity; import java.io.Serializable; import java.math.BigDecimal; /** * * @author avargas */ public class ImportDwc implements Serializable { //Record-level terms private String type; private String modified; private String language; private String rights; pri...
Java
neoportal-core/src/main/java/org/inbio/neoportal/core/entity/ImportDwc.java
INBio/NeoPortal
gpl-3.0
64,922
3,351
codeparrot/github-code
b261d6a1c5c946f78aa1b85b41c96c4502325d68f2c423f33d378738594c9329
/* * Copyright (C) 2014 - 2015 Initial Author * Copyright (C) 2017 Nicolai Ehemann * * This file is part of Peris. * * Peris is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the Lice...
Java
app/src/main/java/de/enlightened/peris/BBCodeParser.java
McNetic/peris
gpl-3.0
15,553
384
codeparrot/github-code
fd9414484983945588ac64461d5fbf4eebfe2c8cd70ef98c00c53c5868cb3485
/* * HawkEye Redux * Copyright (C) 2012-2013 Cubeville <http://www.cubeville.org> and contributors * * 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 * ...
Java
api/src/main/java/org/cubeville/hawkeye/item/data/FireworkItemData.java
Cubeville/HawkEye-Redux
gpl-3.0
3,667
129
codeparrot/github-code
42bbb0f7fadd98f0883067fccdc47de785ab60d987f8b6e153e4f90c4297a035
PROJECT_NAME := saadc_pca10036 export OUTPUT_FILENAME #MAKEFILE_NAME := $(CURDIR)/$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)) MAKEFILE_NAME := $(MAKEFILE_LIST) MAKEFILE_DIR := $(dir $(MAKEFILE_NAME) ) TEMPLATE_PATH = ../../../../../components/toolchain/gcc ifeq ($(OS),Windows_NT) include $(TEMPLATE_P...
Makefile
examples/peripheral/saadc/pca10036/armgcc/Makefile
polybassa/nRF51
gpl-3.0
10,755
290
codeparrot/github-code
6eab7114f0ba976949e79c40f6775340ff35ece646e61723cce8095d501f69c9
/* Copyright (C) 2016, Alexandre Gazet. Copyright (C) 2012-2014, Quarkslab. This file is part of ret-sync. ret-sync 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
ext_olly2/tunnel.c
bootleg/ret-sync
gpl-3.0
10,802
448
codeparrot/github-code
49ec2c1ddab610cac7e7bd2671769779ecee2b4d1d8e3eef37309db8eb5ce366
#!/usr/bin/env sh # generated from catkin/cmake/template/setup.sh.in # Sets various environment variables and sources additional environment hooks. # It tries it's best to undo changes from a previously sourced setup file before. # Supported command line options: # --extend: skips the undoing of changes from a previou...
Shell
ws/ps4_ws/devel/setup.sh
Madh93/ros
gpl-3.0
2,554
95
codeparrot/github-code
648b66a143b0732c2ad0bd0b435a1ff2f51dc9bfebebd4f09d42d158bed2f540
/************************************************************************** copyright : (C) 2007 by Lukáš Lalinský email : lalinsky@gmail.com **************************************************************************/ /************************************************************...
C
src/tagger/tg_mp4_boxes.h
martinjlowm/silverjuke
gpl-3.0
15,179
616
codeparrot/github-code
ba26b8fe7e88add37619e6c037f012b0a449d7bfb4eb23bb050b3fef5d7d04d8
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.SUP = exports.SUB = exports.S = exports.U = exports.EM = exports.STRONG = undefined; var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _FormatBold = require('material-ui-icons/FormatBold'); var _Fo...
JavaScript
lib/plugins/emphasize.js
MaxKelsen/ory-slate-plugin
gpl-3.0
7,632
217
codeparrot/github-code
624807df8fc230167b6828a7f04f3ed61499c90d2243c4c18aa6e565c707dd95
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/Users/chernomirdinmacuvele/Documents/workspace/PescArt2.0/UserInt/ui_Ficha_Recolha_Tab_Amostras.ui' # # Created by: PyQt5 UI code generator 5.8.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtW...
Python
GeneratedFiles/ui_Ficha_Recolha_Tab_Amostras.py
InUrSys/PescArt2.0
gpl-3.0
4,188
80
codeparrot/github-code
a972a1e9aa8e6880ad42966d28f0a988b2941440aae9dad8a687243371436335
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.0" language="ru_RU"> <context> <name>ConfigWindow</name> <message> <location filename="../src/configwindow.ui" line="14"/> <source>Qt Ponies</source> <translation>Qt Ponies</translation> </message> <message> ...
TypeScript
translations/qt-ponies_ru.ts
myszha/qt-ponies
gpl-3.0
9,617
249
codeparrot/github-code
c255779320a6cda9da47b99be5025237027479c2a1e6a86a2c5ff328959bf5c2
<?php /* PrestaShopBundle:Admin/Product/Include:catalog_order_carrets.html.twig */ class __TwigTemplate_06e127cb0d3c210c4f54efdee26927a290dfe48133342a6f9799d7e50ebc3897 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false...
PHP
prestashop_1.7/app/cache/prod/twig/9a/9ab26599954547f1ed571f900e363cdf0aa23bf3e16b8819c5ac6cf7ee833930.php
jonathankablan/prestashop-1.6
gpl-3.0
3,033
88
codeparrot/github-code
4234a01092459a75c9e286ee9bc00fd7e834ee52f0f93a7b3bf78ace852bc6de
<?php //Tạo header function title_header($text) { header('Cache-Control: no-cache, must-revalidate'); header('Content-type: text/html; charset=UTF-8'); echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?> <!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\"\"http://www.wapforum.org/DTD/xhtml-mobile10.dtd...
PHP
includes/function.php
tienthanh2509/PTStory---Wap
gpl-3.0
3,994
100
codeparrot/github-code
528fa85f5ea0a0882487811938dd005dbaf0d0f42b6453b33992878ee84a8ac6
/* * Copyright 2010-2014 OpenXcom Developers. * * This file is part of OpenXcom. * * OpenXcom 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 ...
C
src/Menu/OptionsVideoState.h
sfalexrog/OpenXcom
gpl-3.0
3,242
101
codeparrot/github-code
bb0f9798ae073a417587d8474a1f4dd2381bfa4cff458d3909dbcd280eed22ba
/* ----------------------------------------------------------------------------- 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
src/ppm_java/_dev/concept/example/multithread/waitfree/TVisitor.java
ustegrew/ppm-java
gpl-3.0
2,004
67
codeparrot/github-code
83263a9cba8fe567377b4933be97439a16ef2eabb311f4f883bfb92627326c8f
\hypertarget{classStrategyCostVar}{\section{\-Strategy\-Cost\-Var \-Class \-Reference} \label{classStrategyCostVar}\index{\-Strategy\-Cost\-Var@{\-Strategy\-Cost\-Var}} } \-Strategy \-Pattern to compute the projected cost on a variable. {\ttfamily \#include $<$strategy\-\_\-cost\-\_\-var.\-hpp$>$} \-Inheritanc...
TeX
latex/classStrategyCostVar.tex
richoux/Adaptive_Framework
gpl-3.0
2,138
58
codeparrot/github-code
fdf0a6a6dd998f4c504da2e8c2817bdf2525f6a80b362547b600b65a792c5171
<?php if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } ?> <tr class="fee <?php echo ( ! empty( $class ) ) ? $class : ''; ?>" data-order_item_id="<?php echo $item_id; ?>"> <td class="check-column"><input type="checkbox" /></td> <td class="thumb"></td> <td class="name"> <div class="view"> <...
PHP
includes/admin/meta-boxes/views/html-order-fee.php
kaleemon/haviya
gpl-3.0
3,656
85
codeparrot/github-code
3905b4749ee959a638b08fae8a704f4f8f8e5f9f1d6cb0c45dd75dad1d32ab7e
/** * Copyright 2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
Java
zipcloud-parent/zipcloud-core/src/main/java/org/springframework/social/yahoo/filter/SortFields.java
alex-bretet/cloudstreetmarket.com
gpl-3.0
3,964
119
codeparrot/github-code
24049ecd6d56247cf9ac69fa90d7fba42f0ba9ff81815e48ce3251c92d0279b5
#ifndef W_INSINSTALLAZZIONE_H #define W_INSINSTALLAZZIONE_H #include <GuiHeaders/w_insveicolo.h> #include "QPushButton" #include "ModelloHeaders/installazione.h" #include "w_insimpianto.h" #include "ModelloHeaders/officina.h" #include <QErrorMessage> #include "gestionegui.h" class W_insInstallazzione:public W_...
C
GuiHeaders/w_insinstallazzione.h
sballari/GasEquipment
gpl-3.0
808
34
codeparrot/github-code
ea3b79ce973e1d016db5e2590bd8e8127c0abb300c5930ffae06de3a0c0f54a2
/* * @Author: Vaninadh * @Date: 2016-05-05 16:02:54 * @Last Modified by: Vaninadh * @Last Modified time: 2016-05-09 11:01:01 */ define(function(require) { var defineComponent = require("flight/lib/component"); var noty = require('noty'); var ns = window.kc.ns; return defineComponent...
JavaScript
enhancedmd/public/js/KCEPROD/ui/edit_panel/ui_notify.js
realzzz/wechateditor
gpl-3.0
4,470
119
codeparrot/github-code
b9f0f63db1c0f123960120df86f70f001c00d40cec2a3a640ff77d32a0d0c68c
<?php namespace Elementor; use Elementor\Core\Files\Assets\Svg\Svg_Handler; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } /** * Elementor icons manager. * * Elementor icons manager handler class * * @since 2.4.0 */ class Icons_Manager { const NEEDS_UPDATE_OPTION = 'icon_manager_needs...
PHP
includes/managers/icons.php
kobizz/elementor
gpl-3.0
13,994
466
codeparrot/github-code
410a39527ff4660533bade70162b71c5737948464f08074cb37ce6e606670256
package com.TigersIter2.views; import com.TigersIter2.assets.StaticVar; import javax.swing.*; import java.awt.*; import java.util.List; /** * Created by slichtenheld on 2/25/2016. */ public class AreaView extends View { //For now the constructor of area view takes in map and avatar. //we may edit this to ...
Java
src/com/TigersIter2/views/AreaView.java
OOP-Team-Project/RPG-Iteration-2
gpl-3.0
1,227
42
codeparrot/github-code
ee1b7a63ee6e0470215ea1c0430f40bb5cf4b00fdd25314d01f9c6b1ca55b5e8
<?php /** * This file is part of OXID eShop Community Edition. * * OXID eShop Community Edition 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 yo...
PHP
application/controllers/tag.php
NikolayPetrenko/oxid
gpl-3.0
10,272
363
codeparrot/github-code
dbdd1f203cfeec1c8da74efdda6362951c7c2c6c7100e6a2f14fc1f57dd77890
/* ========================================================= * bootstrap-datepicker.js * http://www.eyecon.ro/bootstrap-datepicker * ========================================================= * Copyright 2012 Stefan Petre * * Modified By: * Jakub Pastuszek (jpastuszek@gmail.com) * * Licensed under the Apache L...
JavaScript
assets/js/bootstrap-datepicker.js
jpastuszek/dms-web-application
gpl-3.0
12,125
422
codeparrot/github-code
ab645dcfaa3fa372f2fd5291a25cd5ed1c02b9e18b37f20b6fca29638e466acd
/** ****************************************************************************** * @file Demonstrations/Src/main.c * @author MCD Application Team * @brief This demo describes how display bmp images from SD card on LCD using the Adafruit 1.8" TFT shield with Joystick and microSD mounted on ...
C
Software/Handmouse_STM/Lib_DL/STM32Cube_FW_F0_V1.8.0/Projects/STM32F030R8-Nucleo/Demonstrations/Src/main.c
Fdepraetre/Handmouse
gpl-3.0
20,396
666
codeparrot/github-code
d368c0fc382269875fd10c2b1b41a304ad455287f184a6e0db509fcb0a2aa44c
/* * Copyright (C) 2013 Tim Vaughan <tgvaughan@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 version 3 of the License, or * (at your option) any later version. * * ...
Java
src/multitypetree/util/TypeChangeCounts.java
aand065/MultiTypeTree
gpl-3.0
5,338
182
codeparrot/github-code
4c95bb7ae1872d5c943c0977a10a118f0e6c595331f9bd217d3d29312df688d8
package ar.com; import java.text.SimpleDateFormat; import java.util.Date; import java.util.List; import java.util.ArrayList; import ar.com.mutual.bean.geografia.Provincia; import ar.com.mutual.bean.productos.Combo; import ar.com.mutual.bean.productos.ComboCobertura; import ar.com.mutual.bean.productos.Producto; impor...
Java
core/src/test/java/ar/com/CalculoTest.java
damiancom/garantia
gpl-3.0
20,950
521
codeparrot/github-code
626b944cd5eae8234a6e6dcbcd41e4b22772f0629bcdfb2ab208db3bc6e31ee2
/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\/ M anipulation | -------------...
C++
src/meshTools/sets/faceZoneSources/setsToFaceZone/setsToFaceZone.C
kempj/OpenFOAM-win
gpl-3.0
7,028
218
codeparrot/github-code
1be05164d07601704ddc3fab4369ee6e53b1e334bf0e93138d6e1f5678cdd74d
package net.parostroj.timetable.gui.actions.impl; import java.io.FileNotFoundException; import java.net.URL; import java.util.zip.ZipInputStream; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import net.parostroj.timetable.gui.actions.execution.ActionContext; import net.parostroj.timetable.gui.actions.exe...
Java
grafikon-gui/src/main/java/net/parostroj/timetable/gui/actions/impl/LoadLibraryUrlModelAction.java
jub77/grafikon
gpl-3.0
2,589
69
codeparrot/github-code
4a8a0c702260f90f85ec1ebbae02be74fae07e0ea556fe8d6aec549042a59d5a
-- -- (C) 2019-22 - ntop.org -- -- ############################################## local flow_alert_keys = require "flow_alert_keys" -- Import the classes library. local classes = require "classes" -- Make sure to import the Superclass! local alert = require "alert" -- ############################################## ...
Lua
scripts/lua/modules/alert_definitions/flow/alert_flow_tcp_no_data_exchanged.lua
ntop/ntopng
gpl-3.0
1,584
48
codeparrot/github-code
3af4e2cfcbabd29c58463a10f480c87f0786ac6b9821ab86175ded84612a7921
/* Result.java */ /* Date : 16 March 2016 * Author: Ankit Pati */ import java.util.Scanner; interface Exam{ float PercentCal(); }; class Student{ String name; int roll; float mark1, mark2; Student(String name, int roll, float mark1, float mark2) { this.name = name; this.r...
Java
main/Result.java
ankitpati/jwt
gpl-3.0
1,843
88
codeparrot/github-code
65dc101de04e0598a38bce246aa9dad4238fda1672e96d64f32ec08f27d4ac29
// // SuperTuxKart - a fun racing game with go-kart // Copyright (C) 2004 Ingo Ruhnke <grumbel@gmx.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 t...
C++
src/graphics/skid_marks.cpp
kiennguyen1994/game-programming-cse-hcmut-2012
gpl-3.0
12,597
330
codeparrot/github-code
471632ad7a27959923edafc902749be28286245707f096419b952174001ecee3
#!python ############################################### # POP3 Fuzzer # # Author: malwrforensics # # Contact: malwr at malwrforensics dot com # ############################################### import sys, socket from random import randint MIN_LIMIT = 50 MAX_LIMI...
Python
scripts/pop3.py
asaygo/malwrforensics
gpl-3.0
1,227
55
codeparrot/github-code
c290b6547a7e37d13215a70e719ab4087acd7489190cc2d3d9e20a3a2c0afa6f
package br.ufc.great.greatdc.fcm; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.media.RingtoneManager; import android.net.Uri; import android.support.v4.app.NotificationCompat; import android.util.Log; import com...
Java
GREatDC/app/src/main/java/br/ufc/great/greatdc/fcm/MyFirebaseMessagingService.java
rodlucas/GREatDataCenter
gpl-3.0
1,839
43
codeparrot/github-code
88258a1ae7b559f6b29bbe97906641a921cc961831b1a4bd221993e516fb6f1b
// Copyright (C) 2003, 2004, 2005, 2007, 2009, 2010, 2011 Rob Caelers <robc@krandor.org> // All rights reserved. // // 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 Lic...
C++
libs/core/src/IdleLogManager.cc
rcaelers/workrave
gpl-3.0
26,039
1,031
codeparrot/github-code
5b70de46a8d9cbd22a6f2286df60e5ace0ff4bedbd729b266c50d141853019db
package com.hartwig.hmftools.linx.utils; import static java.util.stream.Collectors.toList; import static com.hartwig.hmftools.linx.utils.SvTestUtils.initialiseSV; import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import java.util.List; import com.google.common.collect.List...
Java
linx/src/test/java/com/hartwig/hmftools/linx/utils/SampleDataLoader.java
hartwigmedical/hmftools
gpl-3.0
2,173
63
codeparrot/github-code
22da28f382ca830dd148965c9be0eba8b2cd3dc00544eb1b6b3d03de5f1619d1
#pragma once /* This file is part of Kraft der Mada. Copyright (c) 2009 Daniel Wickert Kraft der Mada 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 ...
C
src/foundation/properties/Property.h
LibreGameArchive/kraft-der-mada
gpl-3.0
2,889
95
codeparrot/github-code
8fb512986622054aacf8c51c078e05737ec2800424cb7805d6d95d0b572761c1
/******************************************************************************* * Copyright (c) 2009 Eucalyptus Systems, Inc. * * 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, only ve...
Java
clc/modules/configuration/src/main/java/com/eucalyptus/config/ArbitratorControl.java
sosilent/euca
gpl-3.0
7,135
164
codeparrot/github-code
b881f847e9614c43ff04ab79d8e437c49a4d811944a7820afc5f0ee895e09a99
using System; using DFM.Generic; using Keon.Util.DB; namespace DFM.Entities { public class Control : IEntityLong { public Control() { Active = false; Creation = DateTime.UtcNow; } public virtual Int64 ID { get; set; } public virtual DateTime Creation { get; set; } public virtual DateTime? LastAc...
C#
core/Entities/Control.cs
darakeon/dfm
gpl-3.0
1,212
55
codeparrot/github-code
303d141556f1ed993e7610ea536190d78512b493d5a96ee5b16af2a6264fea22
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); include 'assets/phpexcel/Classes/PHPExcel.php'; class Excel_Reader extends CI_Controller { /** * Index Page for this controller. * * Maps to the following URL * http://example.com/index.php/welcome * - or - * http://example....
PHP
application/controllers/excel_reader.php
hangsopheak/knn
gpl-3.0
11,038
263
codeparrot/github-code
fca5f3b65eb0f4106abf62954929a6978e0674987c977cd7c48bde8048f92a92
/** * Copyright (C) 2008 Daniel Maturana * This file is part of gocup-pmed. * * gocup-pmed 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 vers...
C++
lineiterator.hh
dimatura/gocup-pmed
gpl-3.0
1,242
46
codeparrot/github-code
b77910182d024336541eb3d969b8d896990921e76b3e6f223f774dce977831fb
#!/usr/bin/env python """extract only the unique IDs from a BSR matrix""" from __future__ import print_function from optparse import OptionParser import sys import os def test_file(option, opt_str, value, parser): try: with open(value): setattr(parser.values, option.dest, value) except IOError: ...
Python
tools/isolate_uniques_BSR.py
jasonsahl/LS-BSR
gpl-3.0
1,944
63
codeparrot/github-code
dc476d8076f2d2233e2e4a1566abeea95c9faa5fbb679553884bfb46bfd5577a
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright 2017 Julien Girard # # Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3 ; # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://http://www.gnu.org/licenses/gpl-3.0.htm...
Python
openstick/openstick.py
julien-girard/openstick
gpl-3.0
8,147
265
codeparrot/github-code
1351651d86b7bacbafa292a873eedc7645eb44c206e88c1ad91f048ac3c71c6d
/****************************************************************************** Copyright (C), 2013-2033, Hisilicon Tech. Co., Ltd. ****************************************************************************** File Name : hi_comm_fisheye.h Version : Author : Hisilicon Hi35xx MPP Team Crea...
C
src/lib/platform/hi3518ev200/include/hi_comm_fisheye.h
SoberPeng/isaws
gpl-3.0
4,662
118
codeparrot/github-code
c26f215d27f8d64bce4a562fa7adc12f4a2f08d30b9752c57c5752246f395624
<!DOCTYPE html> <head> <meta charset="utf-8"> <link rel="stylesheet" href="foundation.css" /> <link rel="stylesheet" href="app.css" /> <link rel="stylesheet" href="d3-context-menu.css" /> <!--<style> #topNavigationBar { width: 49%; } #topNavigationBar ul...
HTML
knowledgeTreeRestService/knowledgetreeJSModules/webUITree/index.html
Naras/knowledgetree
gpl-3.0
36,935
624
codeparrot/github-code
7d2ec927d1d62fab96f9ac308119d2bd6b445801634f057372d718770c07f3ae
import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk,Gdk from .plantlist import PlantList from funky.cards import cards colors = ( Gdk.RGBA(0.22265625, 0.234375, 0.6484375), Gdk.RGBA(0.58984375, 0.20703125, 0.54296875), Gdk.RGBA(0.71484375, 0.70703125, 0.23828125), Gdk.RGBA(0.61718...
Python
funky/playerlist.py
giannitedesco/funky
gpl-3.0
4,819
146
codeparrot/github-code
347a8d2f9e306b2497e6428d48972cd3cbcdffc7a0ed2b8041ca0212953a2688
package net.econcraft.vanish53.listeners; import net.econcraft.vanish53.Main53; import net.econcraft.vanish53.User53; import org.bukkit.ChatColor; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.block.BlockBreakEvent; import or...
Java
src/net/econcraft/vanish53/listeners/ItemEvents.java
Owlie/vanish53
gpl-3.0
1,613
54
codeparrot/github-code
fd49a161f28b8d6d0d5d8a17174badc5dc201663cd6c672388b983f28fe4325e
using System; using System.Collections; using System.Collections.Generic; using Server.Network; using Server.Items; using Server.Targeting; using Server.Mobiles; namespace Server.Spells.Mysticism { public class NetherCycloneSpell : MysticismSpell { private static SpellInfo m_Info = new SpellInfo( ...
C#
Scripts/Distro/Spells/Mysticism/NetherCycloneSpell.cs
greeduomacro/xrunuo
gpl-3.0
5,016
168
codeparrot/github-code
029bb0a8f407e8ae14428d7716e29c27e0e364d4ccaf679fbb5e97bbfaa0bf55
require 'package' class Wxformbuilder < Package description 'RAD tool for wxWidgets GUI design' homepage 'https://github.com/wxFormBuilder/wxFormBuilder' version '3.9.0' source_url 'https://github.com/wxFormBuilder/wxFormBuilder/archive/v3.9.0.tar.gz' source_sha256 'e63532e71828d5e168388380fe627225f997267495...
Ruby
packages/wxformbuilder.rb
chromebrew/chromebrew-test
gpl-3.0
1,769
44
codeparrot/github-code
c516f16dcc9297d99fbde9e02d7d24a6bb36de8628f6e9af4047b7dea1818200
package sablier; import SPhere.TestSphere.Trajectoires; import info.emptycanvas.library.object.*; import info.emptycanvas.library.testing.TestObjetSub; import java.awt.*; /** * Created by manue on 01-11-15. */ public class TestSablier extends TestObjetSub { public void ginit() { this.setMaxFrames(...
Java
src/main/java/sablier/TestSablier.java
Graphics3D/ect
gpl-3.0
960
42
codeparrot/github-code
5aa622bb4583f98eb46d1f336392efccc99234567c5ded027578829b764d2fad
using System; using System.Windows; using System.Windows.Data; using System.Windows.Forms; using deduper.console; using deduper.core; namespace deduper.wpf { public sealed partial class MainWindow : Window { public DuplicateGroupCollection DuplicateGroups; public MainWindow() { ...
C#
src/desktop/MainWindow.xaml.cs
kns98/ndupfinder
gpl-3.0
1,293
45
codeparrot/github-code
59bff8957f83fe686335a66d20496ad6062ce5c82971842079e6f137430d852c
/* Copyright (C) 2011 Equinor ASA, Norway. The file 'enkf_config_node.h' is part of ERT - Ensemble based Reservoir Tool. ERT 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 th...
C++
lib/include/ert/enkf/enkf_config_node.hpp
Statoil/libres
gpl-3.0
15,382
246
codeparrot/github-code
5506277466b27d3adfa1493697d06298ac19a0b317ee6d63c6a04dd72ac698c1
package osberbot.data; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * TODO: Description * * @author Tititesouris * @since 2016/03/13 */ public class PARTData extends TwitchData { private static final Pattern PATTERN = Pattern.compile(":(\\w+)!\\w+@\\w+\\.tmi\\.twitch\\.tv PART #(\\w+)...
Java
src/osberbot/data/PARTData.java
Tititesouris/OsberBot
gpl-3.0
924
44
codeparrot/github-code
55741a52564cfb3c3618c075712e2d85e05659c3a2f8563e5fed09d9f513e919
#ifndef SPACEFLEAS_STDNEURALNETWORK_HPP #define SPACEFLEAS_STDNEURALNETWORK_HPP #include <SpaceFleas/NeuralNetwork.hpp> #include <SpaceFleas/ublas.hpp> #include <boost/shared_ptr.hpp> #include <boost/serialization/access.hpp> #include <boost/serialization/vector.hpp> namespace SpaceFleas { /** * Feedforward multil...
C++
src/SpaceFleas/NeuralNetwork/StdNeuralNetwork.hpp
gmaslov/ga-nn-followers
gpl-3.0
1,509
55
codeparrot/github-code
9599d6996995f09b058e92011218f8616c28f8f58bdfe897c6ff94fb18cbc9c8
#!/usr/bin/env python2.7 ''' AFL crash analyzer, crash triage for the American Fuzzy Lop fuzzer Copyright (C) 2015 floyd 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 ve...
Python
AflCrashAnalyzer.py
chubbymaggie/afl-crash-analyzer
gpl-3.0
9,878
204
codeparrot/github-code
48e8fc22bcb93ebf7596c9f3dbc3e1bbca801d9d793cb5e4d7701c1634f7bc38
package com.kolo.karl.sharemyfi; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.SQLException; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.util.Log; /** * Created by karl o...
Java
app/src/main/java/com/kolo/karl/sharemyfi/StorageUtil.java
kacabal/ShareMyFi
gpl-3.0
3,966
128
codeparrot/github-code
f6f92b20b7ceddafd5d8b44f50fd1c78dd3be0f0e7c6ffddf4a3731b4a6176ac
/* * This file is part of ldbc-flink-import. * * ldbc-flink-import 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. * * ldbc-fli...
Java
src/main/java/org/s1ck/ldbc/functions/VertexPropertyGroupCoGroupReducer.java
s1ck/ldbc-flink-import
gpl-3.0
1,695
44
codeparrot/github-code
cce4cbf59c160f057fd19fb12d7768abd6b20d42335402021b73b8acf56e8d4e
package com.baeldung.springsecuritythymeleaf; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.authentication.builders.AuthenticationManag...
Java
projects/tutorials-master/tutorials-master/spring-security-thymeleaf/src/main/java/com/baeldung/springsecuritythymeleaf/SecurityConfiguration.java
Niky4000/UsefulUtils
gpl-3.0
1,880
51
codeparrot/github-code
7290d74c93cb28f2d5e24dd2dd9b5724cd262c5cfeec83962c7ef7dc03c59d9a
from django import forms from django.db.models.fields import CharField, DecimalField from django.utils.translation import ugettext_lazy as _ from tendenci.apps.invoices.models import Invoice from tendenci.apps.events.models import Event class AdminNotesForm(forms.ModelForm): class Meta: model = Invoice ...
Python
tendenci/apps/invoices/forms.py
alirizakeles/tendenci
gpl-3.0
4,200
110
codeparrot/github-code
5d0f6a2dec1995d28a952d0cd7d19b1c4b242046941c9558da77cddba2fa5215
/* (C) 2001-2014 Andrew J. Kroll */ /* see file README for license details */ /* UDP RFC 0768 Checksum is the 16-bit one's complement of the one's complement sum of a pseudo header of information from the IP header, the UDP header, and the data, padded with zero octets at the end (if necessary) to make a multip...
C
udp.c
xxxajk/ajkstack
gpl-3.0
4,457
197
codeparrot/github-code
52450fb7ef8b4e4c2a2b8582102df6c9212bf2ff9f3477c83185b90f1007f6bf
package com.aol.mineusb.bootstrap; import java.awt.Toolkit; import java.io.BufferedInputStream; import java.io.BufferedReader; import java.io.File; import java.io.FileOutputStream; import java.io.FileReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.lang.refl...
Java
src/com/aol/mineusb/bootstrap/Bootstrap.java
MineUSBTeam/MineUSB-Bootstrap
gpl-3.0
7,469
254
codeparrot/github-code
e5e12ceea84e77ad906bf6d44307e9a54d3bd53323a82bd49120cd2107d514ac
/* * Kontalk Android client * Copyright (C) 2018 Kontalk Devteam <devteam@kontalk.org> * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your optio...
Java
app/src/main/java/org/kontalk/provider/MyUsers.java
115ek/androidclient
gpl-3.0
4,392
107
codeparrot/github-code
aabefc2762f60a9e371aec73675dff8b929cbc1a6a0e10ba5af9440e96514d58
(function() { 'use strict'; }()); var connect = { socket: io('http://127.0.0.1:3120'), runf: function() { connect.socket.on('connect', function() { console.log('connect success'); }); connect.socket.on('chat message from server', function(msg) { console.log(ms...
JavaScript
Texas/src/connect.js
TheQuail/LandlordFighter
gpl-3.0
2,163
72
codeparrot/github-code
ab1d9d99f0fc10165cf19372301e6101342c3e905f1486a44ef13a4ec63798ac
<?php /* * Copyright (C) 2017 docwho * * 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 dist...
PHP
classes/EssentialScript/Frontend/Queuing.php
tetravalence/essential-script
gpl-3.0
2,018
70
codeparrot/github-code
146ec9d1992f1c4e821b6ed81bed3abb373ee73ae8ed67dd653c5f8578cbf1ba
/* * Geeqie * (C) 2006 John Ellis * Copyright (C) 2008 - 2012 The Geeqie Team * * Author: John Ellis * * This software is released under the GNU General Public License (GNU GPL). * Please read the included file COPYING for more information. * This software comes with no warranty of any kind, use at your own ri...
C
QMOLEDEV/geeqie-1.1/src/img-view.c
chriskmanx/qmole
gpl-3.0
37,782
1,722
codeparrot/github-code
e1b45ed23d24998daef9f7cf776cf028ba289041cbd04f32341a04ae6170acae
# -*- coding: utf-8 -*- from __future__ import unicode_literals import datetime from hashlib import md5 from flask import (redirect, url_for, request, abort, session, current_app, make_response, flash) from flask_login import login_user from ..models import Credentials, Users fr...
Python
engine/emcweb/login/views/login.py
Emercoin/emcweb
gpl-3.0
4,001
142
codeparrot/github-code
d88a884aa495e2905039a1b9f675696a3b72e53a163c244e66fa596b6765842a
package be.ppareit.android; import android.content.Context; import android.preference.MultiSelectListPreference; import android.util.AttributeSet; import android.view.View; import net.vrallev.android.cat.Cat; /** * Created by ppareit on 31/12/15. */ public class DynamicMultiSelectListPreference extends MultiSelect...
Java
app/src/main/java/be/ppareit/android/DynamicMultiSelectListPreference.java
tuzhao/rsftp
gpl-3.0
927
38
codeparrot/github-code
7c9e80c754c9eb33a306decdf459f8c498a0004409a1f12d15b78f17fc3e8054
package au.com.vaadinutils.jasper; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import java.util.HashMap; import java.util.LinkedHashMap; import java.util.Map; import org.apache.logging.log4j.Logger; import com.google.gson.Gson; import com.google.gson.reflect.TypeToken; import net.sf.jas...
Java
src/main/java/au/com/vaadinutils/jasper/CustomJRHyperlinkProducer.java
rlsutton1/VaadinUtils
gpl-3.0
2,733
101
codeparrot/github-code
c45c2505126bbbcf1b68e6ba71aff8f6ddbc11dba6c417e438d04dcd8b667aea
using MassCo.API.Models; using MassCo.API.TokenMiddleware; using MassCo.Data.UnitOfWork; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Options; using Microsoft.Extensions.DependencyInjection; using Microsoft.IdentityModel.Tokens; using System; using System.Security.Cla...
C#
src/Server/MassCo/MassCo.API/Startup.Auth.cs
duszekmestre/MassCo
gpl-3.0
3,402
90
codeparrot/github-code
bee317b99f8ddc0db4c8d495b7e7311719f5f386fe4478cd77cd1f1d7cec51ee
package at.logic.gapt.provers.sat import at.logic.gapt.expr.hol.fastStructuralCNF import at.logic.gapt.expr.{ HOLAtomConst, Formula } import at.logic.gapt.formats.dimacs.{ DIMACS, DIMACSEncoding } import at.logic.gapt.models.{ Interpretation, MapBasedInterpretation } import at.logic.gapt.proofs.drup.{ DrupProof, DrupT...
Scala
core/src/main/scala/at/logic/gapt/provers/sat/SATSolver.scala
gebner/gapt
gpl-3.0
2,676
66
codeparrot/github-code
71b08bbaf164f72d8bc79f54e6a3cff05def72b6fa1c853cadf7506679062a72
#include <utility/rtc_util.h> #include <libmaple/rcc.h> #include <libmaple/bitband.h> #include <time.h> #ifndef _RTCLOCK_H_ #define _RTCLOCK_H_ class RTClock { public: RTClock(); RTClock(rtc_clk_src src ); RTClock(rtc_clk_src src, uint16 prescaler ); //~RTClock(); //to implement void setTime (time_...
C
Arduino_STM32/STM32F1/libraries/RTClock/src/RTClock.h
AtDinesh/Arduino_progs
gpl-3.0
855
43
codeparrot/github-code
9ed1abca867bbf5d405a4876f079f38ce4eccddf06e80cda52c9b570c833d436
/* * Copyright 2015-2020 Liam Williams <liam.williams@zoho.com>. * * This file is part of op. * * op 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...
Java
src/test/java/io/github/theangrydev/op/generation/jvm/attribute/instruction/BipushTest.java
theangrydev/op
gpl-3.0
1,607
43
codeparrot/github-code
f797708b42bce3bf66271cfdb61d6951ecd5c67e6e030bd2eb31cbd26ced2d17
/* * Copyright (C) 2007-2019 Crafter Software Corporation. All Rights Reserved. * * 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...
Java
utilities/src/main/java/org/craftercms/commons/monitoring/VersionInfo.java
avasquez614/commons
gpl-3.0
7,394
229
codeparrot/github-code
74ed4dad023b36f71748e61d44c99d90ee9df3e71adedb81b2d2a6961774e437
/* * Copyright (C) 2017 Ostanin Igor * This file is part of adddxdx. * * adddxdx 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
src/main/java/org/adddxdx/engine/futures/SyncDispatcher.java
niemandkun/adddxdx
gpl-3.0
1,497
49
codeparrot/github-code
0df7f5ecffccbfdacb0c811c522b5c16c26c4805f21eda38e6adbf4c466fd0a9
/* This file is a part of libcds - Concurrent Data Structures library (C) Copyright Maxim Khizhinsky (libcds.dev@gmail.com) 2006-2017 Source code repo: http://github.com/khizmax/libcds/ Download: http://sourceforge.net/projects/libcds/files/ Redistribution and use in source and binary forms, with...
C
libcds/test/include/cds_test/stat_lazy_list_out.h
whc10002/study
gpl-3.0
3,127
72
codeparrot/github-code
85555263ea004c975bd18227d8f2ecc2eb9e03d5c03addbe3031c6a88deefc58
using ZooKeeperNet.Generate; namespace ZooKeeperNet.Recipes { using System.Collections.Generic; using System; using System.Linq; using System.Runtime.CompilerServices; using System.Threading; public class WriteLock : ProtocolSupport { private readonly string dir; private read...
C#
src/ZooKeeperNet.Recipes/WriteLock.cs
sharptogether/DotnetSpider
gpl-3.0
6,929
234
codeparrot/github-code
57848124f5f64eebce3143f27d9a24bff1628347120aeb82cdb46340a0d74827
// Header files. // ====================================================================== #include <stdlib.h> #include <string.h> #include "list.h" #include "map.h" // Typedefs. // ====================================================================== typedef void (*FreeFunc)(void *); typedef int (*CmpFunc)(voi...
C
datastructs/map.c
craigthelinguist/turing
gpl-3.0
10,256
360
codeparrot/github-code
a432d37b9f04760357482903763d810d4e97f57b3013c661b1d588cedd52c058
#include <stdio.h> #include <unistd.h> #include <errno.h> #include <string.h> int switch_to_user() { int ret; uid_t euid = geteuid(); gid_t egid = getegid(); // because of the extra security of bash (and/or other shells), the shell will set the // effective uid (EUID) back to the real uid (RUID), ...
C
trac/trac-admin-suid.c
aroth-arsoft/arsoft-python
gpl-3.0
1,533
56
codeparrot/github-code
e2f1bedc2ce30f649684fad27f674d97a76052fca6690f520b3660e1a1935623
/* Copyright (C) 2011-2012 de4dot@gmail.com This file is part of de4dot. de4dot 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 l...
C#
de4dot.code/renamer/asmmodules/Module.cs
Predator75/de4dot
gpl-3.0
8,283
244
codeparrot/github-code
3cd7837cf25b10f75ae0b3c6b1549571df742b1ef2b811812daac0176aa22494
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package old.arcadeflex; import java.applet.Applet; import java.awt.*; import java.awt.event.*; import java.awt.image.BufferedImage; import java.awt.image.DirectColorModel; import java.awt.image.ImageConsumer; import jav...
Java
emulator/src/old/arcadeflex/MainApplet.java
georgemoralis/arcadeflex037b7
gpl-3.0
13,955
375
codeparrot/github-code
d7e793b6490bbd4ddac75d91f1b1e8632124497a90a3a3821c515f6e97976d9c
/* * scaling-report.c * * Write a nice PDF of scaling parameters * * Copyright © 2012-2013 Deutsches Elektronen-Synchrotron DESY, * a research centre of the Helmholtz Association. * * Authors: * 2010-2013 Thomas White <taw@physics.org> * * This file is part of CrystFEL. * * CrystFEL...
C
src/scaling-report.c
biochem-fan/CrystFEL
gpl-3.0
20,858
899
codeparrot/github-code
e71fe4a5ef691185224f6592e4833eff82384902111490e65c89aed7b229b4de
// -*- Mode: Go; indent-tabs-mode: t -*- /* * Copyright (C) 2015-2018 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 hop...
GO
daemon/api.go
zyga/snapd
gpl-3.0
66,032
2,463
codeparrot/github-code
a0fdcd5c083b8a1e083ff7dd8e2c542ea6684a21de0a8ee4707505f6646dd792
/* * Copyright (C) 2005 Luca Veltri - University of Parma - Italy * Copyright (C) 2009 The Sipdroid Open Source Project * * This file is part of MjSip (http://www.mjsip.org) * * MjSip is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as publis...
Java
src/org/zoolu/sip/provider/SipProvider.java
manusreload/android-siplib
gpl-3.0
47,690
1,413
codeparrot/github-code