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
4b55cb34924191917bae51319fb2c87040dbcebe845599cf761ed57839823646
//============== IV:Multiplayer - https://github.com/Neproify/ivmultiplayer ============== // // File: VehicleNatives.cpp // Project: Server.Core // Author(s): jenksta // Einstein // License: See LICENSE in root directory // //==========================================================================...
C++
Server/Core/Natives/VehicleNatives.cpp
Neproify/ivmultiplayer
gpl-3.0
31,222
1,300
codeparrot/github-code
458e7c811b492f0b9b80668b05524e98e7aa9030744cef067b04ee81599305cd
#!/usr/bin/python3 # import concurrent.futures import os # produce an imp file def calcuImp(mods, edges, index): # med results filedir = './{}_{}/'.format(mods, edges) filename = 'workflow_{}_{}_{}.txt'.format(mods, edges, index) filename = os.path.join(filedir,filename) results = open(filename, '...
Python
src/main/resources/output/evalresults2014/calcuImp.py
lxylinki/medCC
gpl-3.0
1,644
61
codeparrot/github-code
b73891c6a4ef8385e27a08715336f4b974145ceaf179e394d9950736e131d05d
/*************************************************************************** * Copyright (C) 2011 by Hramchenko * * v.hramchenko@gmail.com * * * * Thi...
C
UDDTray/src/AlertsWatcher.h
Hramchenko/userdatadefence
gpl-3.0
2,724
75
codeparrot/github-code
066d6b77bd33f061b5adcd44124ed5488adb2d19efffd3c9d967dfe27cfb4677
/* Public available functions here... */ #include <cygne/polysolve.h> /* ...and static ones here: */ /* Solve analytically a first order equation: a*x + b = 0 */ static int poly_solve_1(double complex *poly, double complex *sols); /* Solve analytically a second order equation: a*x^2 + b*x + c = 0 */ static int po...
C
src/libcygne/polysolve/libpoly.c
SimoneCnt/cygne
gpl-3.0
14,767
540
codeparrot/github-code
d37f2cf6cfe652e97cdaa7f82e1bd1a53fff14a313df792bc2e30af1ab64fdce
using System.Windows.Forms; using JetBrains.Annotations; namespace GitUIPluginInterfaces { public class NumberSetting<T> : ISetting { public NumberSetting(string name, T defaultValue) : this(name, name, defaultValue) { } public NumberSetting(string name, string cap...
C#
Plugins/GitUIPluginInterfaces/Settings/NumberSetting.cs
EbenZhang/gitextensions
gpl-3.0
3,732
140
codeparrot/github-code
86a2d9ea8ec6aa1b89fba2f2a23fedc6c89610861e0752b9682410d086b2d44d
/* This file is part of BooruSurfer2. BooruSurfer2 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. BooruSurfer2 is distributed in the ...
C++
src/pages/HomePage.cpp
spillerrec/rss2rss
gpl-3.0
1,190
41
codeparrot/github-code
3b7e5ce2e9046099f818f18abe620240d19831240af4cab8108ae63495918411
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="generator" content=""> <meta name="description" content="Entropia card game on Kickstarter - A star&#39;s journey is written in the cards"> ...
HTML
docs/posts/entropia-new-card-game-kickstarter/index.html
vladfr/wefightwithcards
gpl-3.0
14,492
370
codeparrot/github-code
a2e95abc569b9f5ed037fc07d828f4be068e8856bbb72dccd88ad50f4fabdb40
/* * Copyright 2013 MovingBlocks * * 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 applicable law or agreed ...
C#
Source/Framework/zSprite.Framework/entitySystem2/entity/lifecycleEvents/BeforeRemoveComponent.cs
xposure/zSprite_Old
gpl-3.0
1,331
44
codeparrot/github-code
34574f171093b78473bb4b5fba4bd6eb983f4ffa606700fc3d2a3b170826ab0f
import sys import argparse import numpy as np import pylab as pl import netCDF4 import logging import pymqdatastream.connectors.todl.todl_data_processing as todl_data_processing try: from PyQt5 import QtCore, QtGui, QtWidgets except: from qtpy import QtCore, QtGui, QtWidgets #https://matplotlib.org/3.1.0/gall...
Python
pymqdatastream/connectors/todl/tools/todl_quickview.py
MarineDataTools/pymqdatastream
gpl-3.0
9,129
269
codeparrot/github-code
7fe5227e2f1b760160895f7445fa7c9742b74daaadd3beb66f8522e13e8f6229
#pragma once #include <vector> #include <queue> #include <memory> #include <thread> #include <mutex> #include <condition_variable> #include <future> #include <functional> #include <stdexcept> class ThreadPool { public: ThreadPool(size_t); ~ThreadPool(); template<class F, class... Args> auto e...
C
src/thread_pool.h
drbasic/EulerSum
gpl-3.0
2,801
100
codeparrot/github-code
94b0a65803111abc714ffbcdc1e3b566346be2146dc8322346ade030edf427be
/*************************** * Author: Ahmad Rajeh * * Last Updated: 21-11-2016 ****************************/ #include <iostream> #include <sstream> #include <vector> #include <queue> #include <set> #define BLACK 1 #define WHITE 0 #define HAPPY 1 #define SAD 0 #define INF 99 using namespace std; //////////////...
C++
kattis.cpp
rajeha/catdog
gpl-3.0
7,373
316
codeparrot/github-code
fde79763fb0ed0a29b3724bdd000591e467a1b766eb771bb6b5e0934eb672150
//////////////////////////////////////////////////////////////////////////// // Atol file manager project <http://atol.sf.net> // // This code is licensed under BSD license.See "license.txt" for more details. // // File: This is a list of a single panel browsing history (storing visited paths). // List ca...
C
QMOLEDEV/atol-0.7.3/src/core/BrowseHistoryList.h
chriskmanx/qmole
gpl-3.0
1,236
51
codeparrot/github-code
123b9478d062076cb099e474c5cfce08b3ef38bf65fa90879b4046c2b145b7ef
//Copyright (c) 2011 Municipalidad de Rosario and Coop. de Trabajo Tecso Ltda. //This file is part of SIAT. SIAT is licensed under the terms //of the GNU General Public License, version 3. //See terms in COPYING file or <http://www.gnu.org/licenses/gpl.txt> package ar.gov.rosario.siat.gde.buss.bean; import java.util....
Java
siat-1.0-SOURCE/src/buss/src/ar/gov/rosario/siat/gde/buss/bean/TipoProcurador.java
avdata99/SIAT
gpl-3.0
1,776
74
codeparrot/github-code
a9dc7b0f8f5ee69a07adee1ff8b0c039d7e7d288067a484edd86f609dd3d83d3
/** WeBikeSD, Copyright 2014 Code for Philly * * @author Lloyd Emelle <lloyd@codeforamerica.org> * @author Christopher Le Dantec <ledantec@gatech.edu> * @author Anhong Guo <guoanhong15@gmail.com> * * Updated/Modified for Philly's app deployment. Based on the * CycleTracks codebase for SFCTA and Cyc...
Java
CyclePhillyAndroid/src/main/java/org/phillyopen/mytracks/cyclephilly/TripUploader.java
groberts619/WeBikeSD
gpl-3.0
15,787
391
codeparrot/github-code
cb29a666e3be306b693368d9d148d3cf7de5dcf73ad63d003dd847b61e04e39c
/* This file is part of Wicked. Wicked 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. Wicked is distributed in the...
C
lib/src/main.c
esoma/wicked
gpl-3.0
15,503
456
codeparrot/github-code
ca6f9eda21d8ce28186547d271ac4fdf42524e06ebe7a2e8f90cbbc98bec2945
# -*- coding: utf-8 -*- # # Copyright © 2012 - 2017 Michal Čihař <michal@cihar.com> # # This file is part of Weblate <https://weblate.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, eith...
Python
weblate/accounts/captcha.py
lem9/weblate
gpl-3.0
4,972
178
codeparrot/github-code
b6eb7061cccbf731f4fc20b8fe2d1c4e46ec115c737a8745eb48192f3108d0bd
# -*- coding: utf-8 -*- # # Woofer - free open-source cross-platform music player # Copyright (C) 2015 Milan Herbig <milanherbig[at]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, e...
Python
components/scheduler.py
m1lhaus/woofer
gpl-3.0
14,594
355
codeparrot/github-code
80d9002e5ed6c0a163b8eb3476cd7791035be8ea8daa49506ccc4841a8f9893f
<div id='title' class='palm-header'></div> <div style='height: 40px'></div> <div id='guide' class='palm-body-text' style='display: none;'> <dl> <dt> Getting Started with Just Type </dt> <dd> When you first launch Koto, and after each update, it will start caching your songs for Just Type. This will allow y...
HTML
app/views/content/content-scene.html
Tibfib/Koto-Player
gpl-3.0
6,806
100
codeparrot/github-code
5eb349948b13eea2dfc3c2583da44a70028669a9940c508f56fa172d46162e4a
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigati...
C#
SCA.WPF/SCA.WPF/ViewsRoot/Views/DetailInfo/DeviceInfo8007View.xaml.cs
A1X71/twilight
gpl-3.0
2,124
55
codeparrot/github-code
88f49c05ffe976d524466d47b71561fc7d9caa82bc5d97e99b235a1a7829a6b7
/* -*- mia-c++ -*- * * This file is part of MIA - a toolbox for medical image analysis * Copyright (c) Leipzig, Madrid 1999-2017 Gert Wollny * * MIA is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; eith...
C++
mia/2d/segsetwithimages.hh
gerddie/mia
gpl-3.0
3,935
119
codeparrot/github-code
f03a549dc3509375a6fc84f1eb473c23d843450f3655b60b8069edcf9bd79d53
#!/bin/bash # Copyright 2017 David Paul <DavidPaul31@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. # # Th...
Shell
validate-values.sh
Kasijjuf/RAID-0-Recovery
gpl-3.0
3,475
128
codeparrot/github-code
049f0fee6d4b0c52d16f1a83ebbacb1f20f4da855d002c0ac716bf054f56224c
from __future__ import unicode_literals from rest_framework import viewsets from rest_framework import permissions from videos.api.serializers import video as video_serializers from videos.models import Video class VideoViewSet(viewsets.ModelViewSet): permission_classes = [permissions.DjangoModelPermissionsOrA...
Python
videos/api/viewsets/video.py
sdeleeuw/contagement
gpl-3.0
1,272
46
codeparrot/github-code
6ff93ad8b0e2ea5a48cbeae3edc378421bb493c596927e228e2da9f7f5fac797
#include <vector> #include <cmath> #include <iostream> #include "dsp/eq.h" class nixecho { public: nixecho(); ~nixecho(); float do_left(float); float do_right(float); void clear_buffer(); void set_sample_rate(float); void reset(); int echo_speed; float echo_decay; EQSTATE* eq; EQSTATE* eq2; float feedba...
C++
nix-echo.hpp
thunderox/triceratops
gpl-3.0
501
39
codeparrot/github-code
1b19c53d81f3773cfa9563ab35a9bead34323f0cef524dfd1e86f5573d815744
import { BrowserWindow, app } from 'electron'; import { getWindowManager } from '../lib/window-manager'; import { isOSX } from '../../shared/utils/platform'; export function getMainWindow( focusedWindow = BrowserWindow.getFocusedWindow() ) { if (focusedWindow) { return focusedWindow; } const wins = getWind...
JavaScript
src/main/utils/window.js
buttercup-pw/buttercup
gpl-3.0
1,286
55
codeparrot/github-code
332f9c06564862604097a1ed39ad0582781640246a2aee747fe2adcf28818ac1
class CartController < ApplicationController before_filter :load_cart skip_before_filter :verify_authenticity_token # Add an item to the shopping cart def add product = current_website.products.find(params[:product_id]) variant = product.product_variants.find(params[:variant_id]) if params[:variant_id...
Ruby
app/controllers/cart_controller.rb
standout/standoutcms
gpl-3.0
1,562
58
codeparrot/github-code
6c61ba4fdc8eea88932e0c8d3fff2878c32a9af57dc8ae6b5a799074f47e1e1c
/* * Copyright (c) 2015 OpenSilk Productions LLC * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This prog...
Java
app3/src/main/java/org/opensilk/music/ui3/nowplaying/QueueScreenComponent.java
OpenSilk/Orpheus
gpl-3.0
1,554
45
codeparrot/github-code
c0f2c17397fcd0192f89a12580c71044ea8ed011cc2e02291926095ae545aa0f
/** * Javascript for the view menu * * @package mahara * @subpackage core * @author Catalyst IT Ltd * @license http://www.gnu.org/copyleft/gpl.html GNU GPL version 3 or later * @copyright For copyright information on Mahara, please see the README file distributed with this software. * */ /* * This ...
JavaScript
htdocs/js/viewmenu.js
rboyatt/mahara
gpl-3.0
6,633
171
codeparrot/github-code
162ad900b7ac9e943de06ebf23124a0ac96893b22a6c2c7e0c3875d3947c41e2
#include "bitmap.h" #include "util.h" #include <gui/mouse.h> namespace GUI { gboolean ZCGtkBitmap::redraw(GtkWidget* widget, cairo_t* cr, ZCGtkBitmap* bmp) { bmp->backend->redraw(); GtkStyleContext* ctx=gtk_widget_get_style_context(widget); gtk_render_icon(ctx, cr, bmp->pixbuf, 0, 0); return TRUE; } ...
C++
src/gui/gtk/bitmap.cpp
zeromus/ZeldaClassic
gpl-3.0
5,066
168
codeparrot/github-code
70cd7d13000539e4c0129720be9bf7afc4e1d236eaabe1c863561a472ff9acd8
<?php (defined('BASEPATH')) OR exit('No direct script access allowed'); (defined('EXT')) OR define('EXT', '.php'); global $CFG; /* get module locations from config settings or use the default module location and offset */ is_array(Modules::$locations = $CFG->item('modules_locations')) OR Modules::$locations...
PHP
code/application/third_party/MX/Modules.php
Rih/transruta
gpl-3.0
7,289
243
codeparrot/github-code
a61c00af863201f831bd5fe4da170be2475dadf389f41e9b7ef5f2d2a5ce3d57
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Drawing.Drawing2D; using Circular.Decorations; using System.Drawing; using Circular.Words; namespace Circular.LetterShapes.Shapes { [Serializable] public class SmallSunrise : aSyllable { public overr...
C#
Circular/LetterShapes/shapes/SmallSunRise.cs
ochensati/CircularEditor2
gpl-3.0
5,873
183
codeparrot/github-code
96888e605090573a7f5be290c0138ff5304aea61e566deda0d9809cba18a3af0
--------------------------------------------------- -- Frost Breath --------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstertpmoves"); --------------------------------------------------- function onAbilityCheck(player...
Lua
scripts/globals/abilities/pets/pet_frost_breath.lua
hooksta4/darkstar
gpl-3.0
1,215
34
codeparrot/github-code
6de5ce6c196f8c1b7795738095be9d327bf07d70a803c78af565fcb1f93c81e6
package com.github.shadowsocks.preference import android.content.{ActivityNotFoundException, Intent} import android.graphics.Typeface import android.graphics.drawable.Drawable import android.net.Uri import android.os.Bundle import android.provider.Settings import android.support.design.widget.BottomSheetDialog import ...
Scala
mobile/src/main/scala/com/github/shadowsocks/preference/BottomSheetPreferenceDialogFragment.scala
KublaikhanGeek/shadowsocks-android
gpl-3.0
3,987
93
codeparrot/github-code
bcc847f4ec47598e87c5f5ec990ea6e7a6cfa83d1bb851cfac2b7eee41959b5e
/* * Copyright (c) 2013 Qualcomm Atheros, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted (subject to the limitations in the * disclaimer below) provided that the following conditions are met: * * * Redistributions of source code ...
C
FIRMWARE_WIFI/open-ath9k-htc-firmware/target_firmware/wlan/if_ath.c
CognetTestbed/COGNET_CODE
gpl-3.0
53,973
1,985
codeparrot/github-code
58b27ebdc79df414e856eb4d714862f5b8989be2303f832373605750c4d9ed43
/** * Copyright (C) 2015 langboost * * 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...
C#
curve25519/curve25519/csharp/ge_cached.cs
langboost/curve25519-pcl
gpl-3.0
1,074
40
codeparrot/github-code
4ac326e3f8303ef608d4760871684fa2f70430a2a73f5cf7f145aebb89b5d3e0
#ifndef MAZEWINDOW_H #define MAZEWINDOW_H #include <iostream> #include <fstream> #include <string> #include <QWindow> //#include <QtCore> #include <QExposeEvent> #include <QOpenGLContext> #include <QOpenGLFunctions> #include <QOpenGLPaintDevice> #include <QOpenGLShaderProgram> #include <QScreen> #include <QString> #i...
C
MazeWindow.h
Mortonium/QtHelloTriangle
gpl-3.0
1,284
75
codeparrot/github-code
aab6bc53b9f50a24ed092bae199294ce2bac9cf07ead8fba6ee4a8520fc833bc
/* * <p>豆浆包子</p> * <p>Email:doujiangbaozi@gmail.com</p> * <p>QQ:6041738</p> * <p>Description:</p> */ package cn.sliver.application.entity.system; import java.io.Serializable; import java.util.HashSet; import java.util.Set; import com.fasterxml.jackson.annotation.JsonIgnore; import cn.sliver.framework.entity.Pa...
Java
src/main/java/cn/sliver/application/entity/system/SystemUser.java
doujiangbaozi/SliverFramework
gpl-3.0
6,036
266
codeparrot/github-code
1cfeb51a1a7690d5560c29475520e9feee8cb2f240262af7564f637b2571f1dd
<!DOCTYPE html> <html> <head> <meta charset=utf-8> <title>My first Three.js app</title> <style> body { margin: 0; } canvas { width: 100%; height: 100% } </style> </head> <body> <script src="../js/three.min.js"></script> <script src="../js/controls/TrackballControls.js"></script> <scr...
HTML
star-gamepad.html
StefanKochGit/three-tests
gpl-3.0
2,752
81
codeparrot/github-code
61f99758c73f1def5672bf690561aae6bb93b25cc8de3bce83f7f817f21e578a
/* javascript for weewx standard report */ var cookie_prefix = "weewx.standard."; function setup(widgets) { // set the state of the history widget var id = get_cookie('history', 'day'); choose_history(id); // if we got a list of widget names, then use it. otherwise, query the doc // for every object with a...
JavaScript
skins/wxobs/standard.js
glennmckechnie/weewx-wxobs
gpl-3.0
4,281
146
codeparrot/github-code
a78df5a46254b89f1ea78a6bb0d01f3bc9590a68b2cc90c7d8b2b771e6b971a0
package stringfinder.update; import java.io.*; import java.net.*; import stringfinder.StringFinder; /** * * @author SunnyBat */ public class UpdateHandler { private static volatile String versionNotes; private static volatile boolean useBetaVersion; private static volatile int updateLevel = -1; private st...
Java
src/stringfinder/update/UpdateHandler.java
SunnyBat/StringFinder
gpl-3.0
12,679
347
codeparrot/github-code
41fbbd36a3bf80abb66222ae988644fad184316b552949e7b5619d3fd34fa298
package edu.buffalo.cse.ubcollecting; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; //import android.support.v7.app.AlertDialog; //import android.support.v7.app.AppCompatActivity; //import android.support.v7.widget.LinearLayoutManager; ...
Java
AndroidApp/UBCollecting/app/src/main/java/edu/buffalo/cse/ubcollecting/TableViewActivity.java
jcgood/kpaamcam
gpl-3.0
8,171
225
codeparrot/github-code
7b0784d84245ec04978cd7fe9cb9b75ef7028e9a445b810509789215da73d62d
#!/usr/bin/env python # -*- coding: iso-8859-1 -*- # # PyMTP # Developed by: Nick Devito (nick@nick125.com) # (c) 2008 Nick Devito # Released under the GPLv3 or later. # import os import ctypes import ctypes.util from models import * from constants import * from errors import * _module_path = ctypes.util.find_librar...
Python
pymtp/main.py
nathanbullock/pymtp-nkb
gpl-3.0
23,914
933
codeparrot/github-code
c7f48cef33e344c850f7dbff31caa7d2f7df473308ba1e0c1b287675550bbb95
/* * 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/system/subject/UnsupportedEncodingExceptionMapper.java
apruden/opal
gpl-3.0
1,459
47
codeparrot/github-code
ceab31b69e71f59bd56ac5a8ecaff49b4f7b4fbb0a64552f72ceb8c225fe7082
#include <map> #include <iostream> #include <fstream> #include <cmath> #include <gsl/gsl_randist.h> #include <cstdio> #include <cstdlib> #include <cstring> #include "smctc.hh" using namespace std; vector<string> all_uids; map<string, float> positions; bool debug; class State { public: State() {} State(vector<st...
C++
examples/cluster/cluster.cc
psathyrella/smctc
gpl-3.0
6,493
223
codeparrot/github-code
b7836840bcfe238de21add2023165de62aa5127b165e857f9445dcf85840609c
<?php if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Abstract WC Data Class * * Implemented by classes using the same CRUD(s) pattern. * * @version 2.6.0 * @package WooCommerce/Abstracts * @category Abstract Class * @author WooThemes */ abstract class WC_Data { /** * ID for this object. * @var int ...
PHP
includes/abstracts/abstract-wc-data.php
neonics/woocommerce
gpl-3.0
12,970
550
codeparrot/github-code
351571c06583fa5200c11ce192542498fed0f1761e43c22b0712a08c0fa5a5b2
package dnd5_dm_db import dnd5_dm_db.html_gen.Templates import dnd5_dm_db.html_gen.Templates.NameExtractor import dnd5_dm_db.lang.Lang import dnd5_dm_db.model._ import dnd5_dm_db.xml_parse.{SpellXmlParser, MonsterXmlParser, MonsterNameXmlParser, NameXmlParser} import xml_parse.Utils._ import scala.xml.{XML, Node} /*...
Scala
src/main/scala/dnd5_dm_db/Index.scala
lorilan/dnd5_dm_db
gpl-3.0
5,681
196
codeparrot/github-code
ae51a947936cf32b3624cf9977c4961f28a721a3cdcfe7b8cac95ea841627323
package se.uu.ub.cora.bookkeeper.validator; import se.uu.ub.cora.testutils.mcr.MethodCallRecorder; public class DataElementValidatorFactorySpy implements DataElementValidatorFactory { public DataElementValidatorSpy elementValidator; public boolean factorWasCalled = false; public String metadataIdSentToFactory; p...
Java
src/test/java/se/uu/ub/cora/bookkeeper/validator/DataElementValidatorFactorySpy.java
lsu-ub-uu/cora-bookkeeper
gpl-3.0
939
33
codeparrot/github-code
76d657e297a8280add446a14f98c4a99b913ef4fc1485812979fa72e8dcb0464
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'interfazCompilador.ui' # # Created: Mon Oct 5 22:22:09 2015 # by: PyQt4 UI code generator 4.10.4 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 ex...
Python
interfazCompilador.py
franco12594/Compilador
gpl-3.0
2,205
53
codeparrot/github-code
f0d9272559ff61ce6976151d5533383cf0197c25bf94a9ae828313498e767617
/* title: Startup-Code-CortexM4 impl C implementation of startup code for CortexM4 based boards. Copyright: This program is free software. See accompanying LICENSE file. Author: (C) 2016 Jörg Seebohn file: startup.h Header file <Startup-Code-CortexM4>. file: startup.c Implementation fi...
C
stm32f3/startup.c
je-so/testcode
gpl-3.0
12,750
265
codeparrot/github-code
bb1b4a702ded5c2082e2bdba285e8229c115aaaf3222fae288f41395934e3304
package com.sopa89.sopasbackpacks.handler; import java.io.File; import net.minecraftforge.common.config.Configuration; import com.sopa89.sopasbackpacks.reference.Reference; import cpw.mods.fml.client.event.ConfigChangedEvent; import cpw.mods.fml.common.eventhandler.SubscribeEvent; public class ConfigurationHandler...
Java
src/main/java/com/sopa89/sopasbackpacks/handler/ConfigurationHandler.java
timcampbell/SopasBackpacks
gpl-3.0
1,141
48
codeparrot/github-code
cfee4f18260c64674d2aab47a654182952dffe149f90f377c08335b8ab62cf35
import time import os from pdfLib import PdfLib import langdetect from filter import Filter import json class ProcessWorker(): def __init__(self, filename, wd, od, logger, uq, fileExtension = u'.json'): """ wd -> working dir od -> output dir uq -> update queue """ ...
Python
Han_the_Converter/processingPdfFiles/processingPdfFiles.py
n-witt/EconstorCorpus
gpl-3.0
4,598
127
codeparrot/github-code
81a7ffd814fed747fabe5c00cde751d5d9191a22002a1fe100535b4fe63f6f7c
namespace MsCrmTools.WebResourcesManager.Forms { partial class OptionsDialog { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /...
C#
Plugins/MsCrmTools.WebResourcesManager/Forms/OptionsDialog.Designer.cs
mbochenko/XrmToolBox
gpl-3.0
11,198
228
codeparrot/github-code
ba4c2ac2fed191b88c36b0fe57df01b8ad6f743d4876fef937723ba2f5280f2b
package osh.hal.exchange; import java.util.UUID; import osh.eal.hal.exchange.HALControllerExchange; import osh.en50523.EN50523OIDExecutionOfACommandCommands; import osh.hal.interfaces.appliance.IHALGenericApplianceEn50523Command; /** * * @author Florian Allerding, Kaibin Bao, Till Schuberth, Ingo Mauser * */ p...
Java
source/osh_driver_appliance_miele/src/osh/hal/exchange/MieleApplianceControllerExchange.java
organicsmarthome/OSHv4
gpl-3.0
948
43
codeparrot/github-code
dd01cc1d9c925b566a9b67d01068ec97e8d50740f5733921c2a5e793cbd1d36e
import browserHistory from 'react-router/lib/browserHistory'; import Features from 'config/features'; import { asyncRoute } from 'helpers/routerHelpers'; function requireAuth(user) { if (user) { browserHistory.push('/'); } return false; } function onEnter() { document.body.classList.add('m-access'); } fu...
JavaScript
information/blendle-frontend-react-source/app/modules/access/routes.js
BramscoChill/BlendleParser
gpl-3.0
962
47
codeparrot/github-code
0f41fcfb606cbece036effaee4972f2fdcfb889689bc6a64fcc45359c50ebf26
/** * Copyright (c) 2002-2014 "Neo Technology," * Network Engine for Objects in Lund AB [http://neotechnology.com] * * This file is part of Neo4j. * * Neo4j is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundati...
Java
src/test/java/examples/AutoIndexerExampleTests.java
apatry/neo4j-lucene4-index
gpl-3.0
13,215
350
codeparrot/github-code
b0241fbf02ffcc430517316cab185b87290d715165f31510f6a89bcb94455615
/**************************************************************************** * This file is part of Liri. * * Copyright (C) 2018 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com> * * $BEGIN_LICENSE:LGPLv3+$ * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU ...
C++
src/imports/policykit/listener_p.cpp
qmlos/shell
gpl-3.0
9,149
269
codeparrot/github-code
81b1a88bfdc5086c5360d1cca2179e9c0cf3b1678000279da0817b08d444f2a5
package mine.allen.api.translate; import mine.allen.util.net.NetL; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * Created by Allen on 2017.03.31. */ public class GoogleTrans { public static void main(String[] args) throws Exception{ System.out.println(translate("我爱你","auto","en"...
Java
myApi/src/main/java/mine/allen/api/translate/GoogleTrans.java
lzs0420/mytest
gpl-3.0
6,415
140
codeparrot/github-code
2549f0aaff2eaa2969da5bf50a1764d1dc78cb10394f0538390d6dafd60b2f43
/* * Copyright (C) 2011, 2014 Nicolas Bonnefon and other contributors * * This file is part of glogg. * * glogg 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...
C
src/sessioninfo.h
Pac72/glogg
gpl-3.0
2,154
73
codeparrot/github-code
64359a104fbd381e7b49deb08cb55c2fa1fed3ba085e562513cacdc6178447a1
/**************************************************************************** * Open RPG Maker 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 ...
C
src/editor/projectdata_menunavigation.h
timdetering/openrpgmaker
gpl-3.0
2,530
64
codeparrot/github-code
be8321f60f124b57002131113c4c271c7f0974d8c43b7c6c40dac4a2fdea43d4
from vsg import parser class with_keyword(parser.keyword): ''' unique_id = selected_waveform_assignment : with_keyword ''' def __init__(self, sString): parser.keyword.__init__(self, sString) class select_keyword(parser.keyword): ''' unique_id = selected_waveform_assignment : select...
Python
vsg/token/selected_waveform_assignment.py
jeremiah-c-leary/vhdl-style-guide
gpl-3.0
1,188
57
codeparrot/github-code
eafe0919d583ca94fb9ad736a091d1483cf3a6567318f36a52d11b4ecd813614
import {TFunction} from 'i18next' import Storage from 'local-storage-fallback' import {useMemo} from 'react' import {useSelector} from 'react-redux' import {useTranslation} from 'react-i18next' import {RootState} from 'store/actions' import {convertFromProtoPost} from 'store/api' import {parseQueryString} from 'store/...
TypeScript
frontend/client/src/store/user.ts
bayesimpact/bob-emploi
gpl-3.0
18,447
536
codeparrot/github-code
81195a00c807ec26c841ecb35a4a9f12e4b6fa4729343d778a7b1150fdbe2f38
<?php /* "Copyright 2012 A3 Revolution Web Design" This software is distributed under the terms of GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 */ class WC_PS_Posts_Data { public function install_database() { global $wpdb; $collate = ''; if ( $wpdb->has_cap( 'collation' ) ) { if( ! empty($wpdb->charset...
PHP
classes/data/class-wc-ps-posts-data.php
wp-plugins/woocommerce-predictive-search
gpl-3.0
5,710
178
codeparrot/github-code
ff96a71dc8127941904b13405b0851c194056d48650161ca62ec82f2eef9e6fd
/* * Copyright (C) 2005-2011 MaNGOS <http://www.getmangos.com/> * * Copyright (C) 2008-2011 Trinity <http://www.trinitycore.org/> * * Copyright (C) 2010-2011 Project SkyFire <http://www.projectskyfire.org/> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU ...
C++
src/server/game/Battlegrounds/ArenaTeam.cpp
cristal/shapeshift-forms
gpl-3.0
33,385
858
codeparrot/github-code
2630982063a37ea48f5555bd9440f451e421f230557a3c74e46106a8763e94e9
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- /************************************************************ * AP_Gimbal -- library to control a 3 axis rate gimbal. * * * * Author: Arthur Benemann, Paul Riseborough; * * * * Purpose: ...
C
libraries/AP_Mount/AP_Gimbal.h
bugobliterator/ardupilot-solo
gpl-3.0
2,976
94
codeparrot/github-code
49ecc03802e65dda00b799d16e8981b6e38bbfba07702292d35e315ace0bb38b
/* * Dreamos * cpuid.c * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the ho...
C
hardware/cpuid.c
BackupTheBerlios/dreamos
gpl-3.0
5,644
207
codeparrot/github-code
d5e1e377c85bd6f0d77ff2bda1bb458d0b79319647c1b37e29c35c1175245dcd
/* GeoGen - Programmable height map generator Copyright (C) 2015 Matej Zabsky 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 ver...
C++
src/GeoGen/corelib/ArithmeticAssignmentOperatorFunctionDefinition.hpp
mzabsky/geogen
gpl-3.0
1,813
58
codeparrot/github-code
cfb270e204cbcea5bf093815ad32e2331ee1371a7aaffe31b82780f9b769c6a7
package pt.uminho.sysbio.biosynth.integration.etl.biodb; import java.util.HashMap; import java.util.Map; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import pt.uminho.sysbio.biosynth.integration.GraphMetaboliteProxyEntity; import pt.uminho.sysbio.biosynth.integration.GraphReactionEntity; import pt.uminho...
Java
biosynth-integration/src/main/java/pt/uminho/sysbio/biosynth/integration/etl/biodb/ModelSeedReactionTransform.java
Fxe/biosynth-framework
gpl-3.0
5,289
133
codeparrot/github-code
c90380264bf38a271aed52ea42281e2a1cca61aa522affc2f6da6a1c21ed8804
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> === * * Copyright 2015, Christian Muehlhaeuser <muesli@tomahawk-player.org> * * Tomahawk is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Fre...
C
src/libtomahawk/DownloadJob.h
pmpontes/tomahawk
gpl-3.0
3,393
122
codeparrot/github-code
f24bde3c314f623930fad23c9e802253f847d3e4706c90f50ed891881deea447
# frozen_string_literal: true # Copyright (C) 2017-2021 Dimitri Arrigoni <dimitri@arrigoni.me> # License GPLv3+: GNU GPL version 3 or later # <http://www.gnu.org/licenses/gpl.html>. # This is free software: you are free to change and redistribute it. # There is NO WARRANTY, to the extent permitted by law. require_rel...
Ruby
lib/ylem/concern/output.rb
SwagDevOps/ylem
gpl-3.0
1,757
79
codeparrot/github-code
2cbbc55f1dcab3cb46f17b2ee9009ad29d1c50e86b3280e1a1d17a7f08c65615
#include <pebble.h> //The width of the screen is 144 pixels and the height is 168 pixels. //The height of the status bar is 16 pixels. // TODO: Add screen to configure sensitivity, threshold, and tracking speed (size of slow buffer). // Screen will have a circle indicating threshold and a line tracking the diff...
C
src/main.c
eamonjohnson/RockerCalc
gpl-3.0
28,792
803
codeparrot/github-code
05478c3cab4fdd2ea6fb082cd9ed52c28bc0e179d2beefd6b1b8ad6dd4f8e36d
// templated callback system // Copyright (C) 2008, 2009 Tim Blechmann // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any lat...
C++
server/supernova/utilities/callback_system.hpp
iani/SC_SourceCode_Study
gpl-3.0
2,646
102
codeparrot/github-code
bd4b2c8eeb4f920a54b5aabe7a37bb5733972a22b3383e5736f774fd6699c122
// Copyright (C) 2015 Fabio Petroni // Contact: http://www.fabiopetroni.com // // This file is part of GASGD simulator. // // GASGD 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 L...
Java
src/partitioner/Partitioner.java
fabiopetroni/GASGD
gpl-3.0
5,293
134
codeparrot/github-code
119b43fae6dd5d91ac9f39402ac318a8a648169b10cb8a6fd0962770938151a4
#include "cache.h" #include "controller/baseboard.h" #include "settingslocker.h" #include "stored/thread.h" #include "translator.h" #include <BeQt> #include <BTranslator> #include <QByteArray> #include <QCache> #include <QDateTime> #include <QDebug> #include <QLocale> #include <QMap> #include <QReadLocker> #include ...
C++
src/lib/cache.cpp
ololoepepe/ololord
gpl-3.0
22,277
772
codeparrot/github-code
6ed3b65a4b28d92897424f926e22b319c7f48267117bcd7d228a8f1f711b5a1f
<?php /** * /_includes/settings/reporting-ssl-cost-by-domain.inc.php * * This file is part of DomainMOD, an open source domain and internet asset manager. * Copyright (c) 2010-2016 Greg Chetcuti <greg@chetcuti.com> * * Project: http://domainmod.org Author: http://chetcuti.com * * DomainMOD is free software: y...
PHP
_includes/settings/reporting-ssl-cost-by-domain.inc.php
koep/domainmod
gpl-3.0
3,169
65
codeparrot/github-code
3b228d69b8ec50d8ada652a54b4a188a1280b8bd44d040a843f2325eca670903
# Copyright (c) 2015-2017 Michael Eastwood # # 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 distrib...
Julia
src/wrappers/FastTransformsWrapper.jl
mweastwood/BPJSpec.jl
gpl-3.0
3,588
131
codeparrot/github-code
e0f674016d4c457242f6eb244cfaaab0100afe3f43ae1705bd1f4fbcef1d09ef
/* * This file is part of Transitime.org * * Transitime.org is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License (GPL) as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * Transitime.org is distrib...
Java
transitclock/src/main/java/org/transitclock/core/predAccuracy/gtfsrt/GTFSRealtimePredictionAccuracyModule.java
TheTransitClock/transitime
gpl-3.0
20,832
592
codeparrot/github-code
916abc7e1f4e8838fd5f01882e99d293147d1dc905118bf9967f7113f2997e19
package dep import ( "fmt" "github.com/Jguer/yay/v11/pkg/db" aur "github.com/Jguer/yay/v11/pkg/query" "github.com/Jguer/yay/v11/pkg/stringset" "github.com/Jguer/yay/v11/pkg/text" ) type Order struct { Aur []Base Repo []db.IPackage Runtime stringset.StringSet } func newOrder() *Order { return &Order{...
GO
pkg/dep/depOrder.go
Jguer/yay
gpl-3.0
4,113
202
codeparrot/github-code
7b10da7b82962ef670e0ea017a6bb70d38603837b10322c628fc11fbca3d4807
// generated from file './/valve.dsp' by dsp2cc: // Code generated with Faust 0.9.73 (http://faust.grame.fr) namespace valve { class Dsp: public PluginLV2 { private: uint32_t fSamplingFreq; void connect(uint32_t port,void* data); void init(uint32_t samplingFreq); void compute(int count, FAUSTFLOAT *input0, FAUST...
C++
dsp/valve.cc
brummer10/GxSVT.lv2
gpl-3.0
2,301
101
codeparrot/github-code
b106e6a33bd5500c9113d9c61c6bfbf16daf33dd1cf2a2daba5dd14f3df96c34
# coding=utf-8 """Clip and mask a hazard layer.""" import logging from qgis.core import ( QgsGeometry, QgsFeatureRequest, QgsWkbTypes, QgsFeature, ) from safe.definitions.fields import hazard_class_field, aggregation_id_field from safe.definitions.hazard_classifications import not_exposed_class from...
Python
safe/gis/vector/union.py
ismailsunni/inasafe
gpl-3.0
12,362
331
codeparrot/github-code
0cbd0054a3993b506a57a17ee17704ccfeca86e595b34d4a9d4a48591d42017f
from __future__ import unicode_literals from .common import InfoExtractor from ..utils import ( int_or_none, determine_ext, mimetype2ext, ) class TweakersIE(InfoExtractor): _VALID_URL = r'https?://tweakers\.net/video/(?P<id>\d+)' _TEST = { 'url': 'https://tweakers.net/video/9926/new-nintendo-3ds-xl-op-alle-fr...
Python
src/plugins/youtube_dl/youtube_dl/extractor/tweakers.py
valmynd/MediaFetcher
gpl-3.0
1,742
63
codeparrot/github-code
b685208aa525dd88b507a170187bcd7cddaee46690b31a407f31f867528e7913
/************************************************************************ * Author : SoberPeng 2017-09-02 * Description : ************************************************************************/ #ifndef LIBCURLCLIENT_CHTTPCLIENT_H #define LIBCURLCLIENT_CHTTPCLIENT_H #include "basedefines.h" #include <string> c...
C
src/run/power_manage/config/chttpsync.h
SoberPeng/isaws
gpl-3.0
2,024
75
codeparrot/github-code
b40b15d13b00eb60ac748b89d58577e169337bf619f57b7e2b661401dc8328aa
# -*- Python -*- import os def get_required_attr(config, attr_name): attr_value = getattr(config, attr_name, None) if attr_value == None: lit_config.fatal( "No attribute %r in test configuration! You may need to run " "tests from your build directory or add this attribute " "to lit.site.cfg....
Python
3rd/templight/llvm/projects/compiler-rt/test/ubsan_minimal/lit.common.cfg.py
r0mai/metashell
gpl-3.0
1,525
41
codeparrot/github-code
49a3e86439f9825cbdec15b148978e007708037b78628a5936a470873681e5ad
/// \file /// \brief The cath_hit_resolver class definitions /// \copyright /// CATH Tools - Protein structure comparison tools such as SSAP and SNAP /// Copyright (C) 2011, Orengo Group, University College London /// /// This program is free software: you can redistribute it and/or modify /// it under the terms of th...
C++
source/ct_resolve_hits/cath/resolve_hits/cath_hit_resolver.cpp
UCLOrengoGroup/cath-tools
gpl-3.0
7,185
200
codeparrot/github-code
e970ab631ce566cc954fbf333062955d4456f2b0e14f3428f8d10b370d4a9852
#!/bin/bash # This script is meant to be called by the "script" step defined in # .travis.yml. See http://docs.travis-ci.com/ for more details. # The behavior of the script is controlled by environment variabled defined # in the .travis.yml in the top level folder of the project. set -e python --version python -c "im...
Shell
ci/test.sh
qbuat/rootpy
gpl-3.0
1,016
31
codeparrot/github-code
51ddbb5d1499df49e2683f81fe1c93224321118113bb02d7d96de7772f706e40
/* j8583 A Java implementation of the ISO8583 protocol Copyright (C) 2007 Enrique Zamudio Lopez This library 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 2.1 of the License, or (at your o...
Java
j8583-code/j8583/src/main/java/com/solab/iso8583/IsoMessage.java
golo120/MyProject
gpl-3.0
13,326
396
codeparrot/github-code
7e46b02c22407b70352e24fe8fd3f37ef5ea17da099d320ca301b4681f35684d
package eu.siacs.conversations; import android.graphics.Bitmap; import eu.siacs.conversations.xmpp.chatstate.ChatState; public final class Config { private static final int UNENCRYPTED = 1; private static final int OPENPGP = 2; private static final int OTR = 4; private static final int OMEMO = 8; private sta...
Java
src/main/java/eu/siacs/conversations/Config.java
igoninlab/Conversations
gpl-3.0
5,609
153
codeparrot/github-code
f90ee6a98c3f54d33b69d428569e5b9ba3a73bbc0cc6f5d08597b76bbd0c5077
#ifndef ENTITYMANAGER_H #define ENTITYMANAGER_H #include "Dragon.h" #include <vector> #include "AI.h" class EntityManager{ private: std::vector<Entity*>* m_all_entities; std::vector<Entity*>* m_all_npc_enemy; int m_entities_count; static EntityManager* m_instance; EntityManager(); BasicAI m_ai; public: ~EntityMa...
C
Dragons/EntityManager.h
Artemijs/Dragons
gpl-3.0
989
32
codeparrot/github-code
388fa611e2187006f84a14bfe699ae2fe554511cce043d46387c6cf4fdb611b3
package com.pwn9.PwnFilter.util; import com.pwn9.PwnFilter.FilterState; import java.util.logging.Logger; import java.util.regex.Pattern; import java.util.regex.PatternSyntaxException; /** * Some helpful utility methods. */ public class Patterns { /** * Class Utility Methods */ static Logger logge...
Java
src/com/pwn9/PwnFilter/util/Patterns.java
riking/PwnFilter3
gpl-3.0
1,427
45
codeparrot/github-code
123fc3965295a215d3ab702e8dfbee6e6a610bbe2296d5fbb2889872d65e2992
angular.module("rubedoBlocks").lazy.controller("BlocproduitHomeController",['$scope','$compile','RubedoProductsService',"$route","RubedoContentTypesService","RubedoContentsService","RubedoPagesService",function($scope,$compile,RubedoProductsService,$route,RubedoContentTypesService,RubedoContentsService,RubedoPagesServi...
JavaScript
theme/new/src/modules/rubedoBlocks/controllers/BlocproduitHomeController.js
bdienot/rubedo-ext
gpl-3.0
11,997
258
codeparrot/github-code
4de41f8f0f77d5a26c59b05d81f875cc58a2cc250006d3ae4e6b30289ea75fe7
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import print_function, unicode_literals import frappe from erpnext.accounts.doctype.cash_flow_mapper.default_cash_flow_mapper import DEFAULT_MAPPERS from .default_success_acti...
Python
erpnext/setup/install.py
saurabh6790/erpnext
gpl-3.0
4,976
161
codeparrot/github-code
0c70039e7c2bb92a3f452670df5e963ff0dec091af2425c7c8ebf6a72e4a0368
/* ChibiOS - Copyright (C) 2016..2019 Rocco Marco Guglielmi This file is part of ChibiOS. ChibiOS 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
os/ex/devices/ST/lsm6ds0.c
ChibiOS/ChibiOS
gpl-3.0
36,319
1,110
codeparrot/github-code
90e3dfaeb239faf8ee51966330a1cbf890afbf5c92c722e37f1d7e103f4eb8ea
<?PHP require_once("website.php"); $adminModuleUtils->checkAdminModule(MODULE_PHOTO); $mlText = $languageUtils->getMlText(__FILE__); $warnings = array(); $formSubmitted = LibEnv::getEnvHttpPOST("formSubmitted"); if ($formSubmitted) { $photoAlbumId = LibEnv::getEnvHttpPOST("photoAlbumId"); $name = LibEnv::get...
PHP
modules/photo/album/edit.php
stephaneeybert/learnintouch
gpl-3.0
7,677
226
codeparrot/github-code
3024a3054610e837c7cbf0f5a6423ac8de4b9fab106c1ddcdbd8edb00aab2b29
/* * Copyright (c) 2017 Projekt Substratum * This file is part of Substratum. * * Substratum 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...
Java
app/src/main/java/projekt/substratum/util/helpers/StringUtils.java
iskandar1023/substratum
gpl-3.0
1,465
41
codeparrot/github-code
7922739718deafcafa4dda8fa81125a3961add78b3a53483e1d9775ff2193cab
/* * Copyright (C) 2012 Alex Kuiper * * This file is part of PageTurner * * PageTurner 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 ...
Java
src/net/nightwhistler/nucular/parser/TitleParser.java
tangqifa/PageTurner
gpl-3.0
1,508
61
codeparrot/github-code
91f1091c9c5bf6c9e4b3543bac0b130b563a05312f456c13a3ded62dfcfbb0d9
package kitchenmod; import java.io.File; import kitchenmod.blocks.Blocks; import kitchenmod.config.ConfigurationHander; import kitchenmod.core.handler.BonemealHandler; import kitchenmod.core.handler.GuiHandler; import kitchenmod.items.Items; import kitchenmod.lib.References; import kitchenmod.misc.CreativeTabKitchen...
Java
common/kitchenmod/KitchenMod.java
Rasmustof/Kitchenmod
gpl-3.0
2,607
91
codeparrot/github-code
7af120c93ea03af54a232fc3e5a8dc5509324e956d63197a176386d493b1b44c
#!/bin/bash # $1 prefix # $2 arch # $3 version # $4+ exe if [ $# -eq 0 ]; then echo "Usage: $0 <bottle> <arch> <version> <executable>" exit 1 fi BASE_PREFIX="$HOME/wine" WINEPREFIX="${BASE_PREFIX}/${1}" LOGFILE="${WINEPREFIX}/wine.out" LOGGER_TAG="${1}" WINEARCH="${2}" if [[ $WINEARCH == 32 || $WINEARCH == 64...
Shell
scraps/winelauncher.sh
arshesney/winelauncher
gpl-3.0
2,066
72
codeparrot/github-code
c052d5b70fd197ae300bafed566b97fe450a0bdda3a83095080722765c3af460
//go:generate stringer -type=TokenType package lexer import "fmt" // Token is a token type Token struct { typ TokenType value string line int column int } // NewToken is a convenice method for making new tokens for testing etc. func NewToken(typ TokenType, value string, line, column int) Token { return T...
GO
lexer/tokens.go
bongo227/Furlang
gpl-3.0
4,844
317
codeparrot/github-code
ece8d629c3ae11872d135fdaf4c20745c468b04128f2fcefe73ce51a90a7928f
/* * Copyright 2011 Sven Mikael Persson * * THIS SOFTWARE IS DISTRIBUTED UNDER THE TERMS OF THE GNU GENERAL PUBLIC LICENSE v3 (GPLv3). * * This file is part of ReaK. * * ReaK is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as publish...
C++
src/ReaK/ctrl/topologies/extern_templates/Ndof_linear_spaces_ext.cpp
mikael-s-persson/ReaK
gpl-3.0
3,337
93
codeparrot/github-code
b9bbf32a3d8b3b3b3a0409e2b9ddaef37165f2ce3a4e5b022d66e4ed53a2da6d
package libnode import ( "crypto/rand" "crypto/tls" "crypto/x509" "crypto/x509/pkix" "encoding/hex" "math/big" "net" "time" "util" ) import _ "crypto/sha512" // Listen on an address and wrap incoming connections in TLS func (n *Node) tlsListen(address string, t chan *tls.Conn) { rc := make(chan struct{}) ...
GO
src/libnode/tls.go
c00w/hydrogen
gpl-3.0
2,591
105
codeparrot/github-code
adfe9b9752c9e179af3713a9b2a60d385d98f84e0015b87063baaab0598cb125
/* * This file 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 file is distributed in the hope that it will be useful, b...
C
libraries/AP_RCProtocol/AP_RCProtocol.h
squilter/ardupilot
gpl-3.0
3,536
132
codeparrot/github-code
c0f442822b318457cd876126af0b2cbc74abb415512ff876b941f99a4e7276b6
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * MeetiX OS By MeetiX OS Project [Marco Cicognani] * * * * DERIVED FROM THE GHOST OPERATING SYSTEM ...
C++
source/kernel/EvangelionNG/filesystem/FsDelegateTasked.cpp
MarcoCicognani/MeetiX-OS-Project
gpl-3.0
24,070
644
codeparrot/github-code