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
f521934e7965d182b2c6eb5dc34492db99825c4ee96f6c1dc3a0bb054f458b82
#!/usr/bin/python from src.sqllist import GLOBALS class BasicResolver(object): """General resolver class""" def __init__(self, conn=None): self.conn = conn pass def resolve(self, detections, sources): """Template resolve function. Returns resolution status and an array...
Python
CEP/GSM/bremen/src/resolve.py
jjdmol/LOFAR
gpl-3.0
2,496
73
codeparrot/github-code
cb0b86c96f464c7c60a61d50ca2adfb6742d4a607dda8db2f1e112ee6b4b0f3f
package net.minecraft.client.gui; import java.io.IOException; import java.util.Random; import net.minecraft.client.resources.I18n; import net.minecraft.util.ChatAllowedCharacters; import net.minecraft.world.GameType; import net.minecraft.world.WorldSettings; import net.minecraft.world.WorldType; import net.minecraft.w...
Java
mcp/src/minecraft/net/minecraft/client/gui/GuiCreateWorld.java
MartyParty21/AwakenDreamsClient
gpl-3.0
21,756
549
codeparrot/github-code
3d2501fe84f733f9dcf34ea78556d2fcae8b9bf63f56666af64a596e18a17861
# -*- coding: utf-8 -*- # # Copyright (C) 2014-2019 khalim19 # # 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 applicab...
Python
export_layers/pygimplib/gui/itembox.py
khalim19/gimp-plugin-export-layers
gpl-3.0
18,637
592
codeparrot/github-code
547fb8a49cb3b20e7efda30d4adb0ebc5c6f754a58591030a97a6333d9f026e7
// Copyright 2016 The go-elementrem Authors. // This file is part of go-elementrem. // // go-elementrem 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)...
GO
cmd/utils/fdlimit_unix.go
elementrem/go-elementrem
gpl-3.0
1,621
51
codeparrot/github-code
39bde356bb7433947372e8f453fe4553c3f223a6af2a6d916920710ae8dbcfdd
#ifndef MWGUI_ENCHANTINGDIALOG_H #define MWGUI_ENCHANTINGDIALOG_H #include "spellcreationdialog.hpp" #include "../mwbase/windowmanager.hpp" #include "../mwmechanics/enchanting.hpp" namespace MWGui { class ItemSelectionDialog; class ItemWidget; class EnchantingDialog : public WindowBase, public Referen...
C++
apps/openmw/mwgui/enchantingdialog.hpp
Demorde/openmw-android
gpl-3.0
1,852
73
codeparrot/github-code
adb74ed70277282ee5079b2072d288a609c00a3a253813e2d8bf717b14279cea
//----------------------------------------------------------------------------- // // Copyright 1993-1996 id Software // Copyright 1999-2016 Randy Heit // Copyright 2016 Magnus Norddahl // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as ...
C
src/rendering/swrenderer/line/r_walldraw.h
Xane123/MaryMagicalAdventure
gpl-3.0
2,675
96
codeparrot/github-code
7b20d8f609a365306caf10137cbb1ca501e3d19facea4b0dc50d1dbb51bdd31c
package com.xminds.aws.cognito; /** * Maintains SDK configuration. */ public final class CognitoIdentityProviderClientConfig { /** * Maximum threshold for refresh tokens, in milli seconds. */ private static long REFRESH_THRESHOLD_MAX = 1800 * 1000; /** * Minimum threshold for refresh toke...
Java
src/main/java/com/xminds/aws/cognito/CognitoIdentityProviderClientConfig.java
xminds/cognitowrapper
gpl-3.0
1,333
41
codeparrot/github-code
0661896e01503d5d8462824c68be29377fa93df5b1a37a3db4bf143579977243
function changeQueryStr(name, value) { var query = window.location.search.substring(1), newQuery = '?', notFound = true, vars = query.split('&'); for (var i = 0; i < vars.length; i++) { var pair = vars[i].split('='); if (pair == '' || pair[0] == 'page') continue; if (pair...
JavaScript
general/static/general/js/list_filtering.js
RomanOsadchuk/GoStory
gpl-3.0
1,490
46
codeparrot/github-code
2e8cd22b0ac05b714b974d9ec80c34208e6ea891b57f44fea72c78c0053ff796
""" Follow Me activity for Sugar Copyright (C) 2010 Peter Hewitt 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 late...
Python
rc_skip_last.py
walterbender/followme
gpl-3.0
1,984
71
codeparrot/github-code
1620e6690040b6efc6d1a8b27f145477d8b39b1c734f8b14c51d597ed0cfeff5
#ifndef PLAYLIST_QUEUE_HH #define PLAYLIST_QUEUE_HH #include <vector> #include <gtkmm.h> #include <GUI/playlist.h> #include <GUI/fidel-popover.h> #include <Utilities/util.h> class FidelPopover; class FidelOptions; class PlaylistQueue : public Playlist{ public: PlaylistQueue(); PlaylistQueue(Gtk::Button *queue_o...
C
src/GUI/playlist-queue.h
kloke-source/fidel-musicplayer
gpl-3.0
1,552
62
codeparrot/github-code
cf998762710c8babf1afdcf06bdb900d5404fae5e5d6cbfc36820a2029ab3bab
# originally from # http://code.google.com/p/django-syncr/source/browse/trunk/app/delicious.py # supousse django-syncr should be installed as external app and this code # inherit from that, but django-syncr have not a setup.py file (so can't be # added in src/pinax/requirements/external_apps.txt) and is not migrate...
Python
delicious/delicious.py
duy/pinax-syncr-delicious
gpl-3.0
8,100
224
codeparrot/github-code
2d971a014bc0b93ac763338ec7e8c2a6319596e479c66410e48e4cd1d41f51bf
/* =========================================================================== Doom 3 GPL Source Code Copyright (C) 1999-2011 id Software LLC, a ZeniMax Media company. This file is part of the Doom 3 GPL Source Code ("Doom 3 Source Code"). Doom 3 Source Code is free software: you can redistribute it and/or modify it...
C++
neo/idlib/CmdArgs.cpp
revelator/MHDoom
gpl-3.0
5,010
236
codeparrot/github-code
cc0e38dff92cde89e99b67103338f87f130a0faa3880b3bb268053b2045b65c7
/* * Copyright 2010 Tilera 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, version 2. * * This program is distributed in the hope that it will ...
C
arch/tile/mm/fault.c
Demicro/SM-J510FN_KERNEL
gpl-3.0
25,354
908
codeparrot/github-code
92f1a6cfcbf860a449f6bbf29eee05b5af8a3a2b78288a6b1d4e76fadb170a19
package uni.miskolc.ips.ilona.positioning.web; import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; import org.springframe...
Java
web/src/main/java/uni/miskolc/ips/ilona/positioning/web/IlonaPositioningApplicationContext.java
ZsoltToth/ilona-positioning
gpl-3.0
5,114
110
codeparrot/github-code
4b51cf51aaa236268cd05720896e4cab30191b6293a069aceffa8a5275e67bff
{% extends 'common/master-page/master-page.html' %} {% block title %} SharingCars {% endblock %} {% block contents %}{% load staticfiles %} <div id="content"> <div class="container"> <div class="row"> <div class="col-lg-12"> {% for announcement in object_list %} <...
HTML
sharingcars/templates/announcements/announcement/list.html
rubgombar1/sharing-cars
gpl-3.0
6,991
110
codeparrot/github-code
9471a0477de9fa175660a4e1ececee4527b23c1680c0e339f5a7fb40565d0eb0
/* * 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, or (at your option) any later version. This * program is distributed in the hope that it will be useful, but WITHOUT ANY ...
Java
authserver/src/main/java/l2s/authserver/network/l2/L2LoginClient.java
pantelis60/L2Scripts_Underground
gpl-3.0
5,175
250
codeparrot/github-code
d8961c4d441d433632f74d1e7d03d69fb50accbea57d9ac4f3eed395dfcccff9
""" Module to handle distortions in diffraction patterns. """ import numpy as np import scipy.optimize def filter_ring(points, center, rminmax): """Filter points to be in a certain radial distance range from center. Parameters ---------- points : np.ndarray Candidate points. ...
Python
ncempy/algo/distortion.py
ercius/openNCEM
gpl-3.0
8,278
294
codeparrot/github-code
b17bfbc2c815325f53557104f77f2d6ecf3eca9cda58877bc72bea46f2b6d456
package net.therap.controller; import net.therap.domain.Notification; import net.therap.domain.User; import net.therap.service.NotificationService; import net.therap.service.UserService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springfr...
Java
application/book-worm/src/main/java/net/therap/controller/NotificationController.java
shovonis/bookworm
gpl-3.0
2,867
75
codeparrot/github-code
7f78eaa4cedb73becc422781582808ecfa9919dd30ae40b42a8f9018c7e01b39
DevID="2" DevType="Aircon" MQTT_Server="192.168.1.1" MQTT_Port="1883" WiFi_SSID="taihenkaku" WiFi_PSK="18577288034" Temp=0 Humi=0 function wait(t) tmr.delay(t*1000) end function mseconds() return tmr.now()/1000 end function moto_duty(p) pwm.setduty(2,p) end function led1_duty(p) pwm.setduty(4,1023-p) ...
Lua
HAP-NodeMCU/src_v2/Aircon/init.lua
Tonny-Gu/Project-Habrew
gpl-3.0
3,260
143
codeparrot/github-code
a56566e8d867e6c1bc68bec2711c0e3a720b84f1e6330d87c7b2efba4db947eb
#!/usr/bin/env python # coding=utf-8 import flask from flask import flash from flask_login import login_required from rpress.models import SiteSetting from rpress.database import db from rpress.runtimes.rpadmin.template import render_template, navbar from rpress.runtimes.current_session import get_current_site, get_...
Python
rpress/views/rpadmin/settings.py
rexzhang/rpress
gpl-3.0
1,428
55
codeparrot/github-code
04d326dfd5390487ef26e1eddb2b9b647fd783612d94cb8a6b7756540681e864
function PingPongPaddle(x, y, z, radius) { this.x = x; this.y = y; this.z = z; this.radius = radius; } PingPongPaddle.prototype = { rotation: new THREE.Vector3(0, 0, 0), init: function(scene) { var tableImage = THREE.ImageUtils.loadTexture('images/paddle_texture.jpg'); //var geo...
JavaScript
war/js/ping_pong_paddle.js
mryan23/PingPongServer
gpl-3.0
1,903
53
codeparrot/github-code
af9f90d6394a390f14910232167c9dc80dc65848208cd6d3dc9041d48e0d6989
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.Common; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using Sudemax.Properties; using Sudemax.FormExtension; using Sudemax.DataGridViewExtension; namespace Sudema...
C#
Sudemax/PeliculaMainForm.cs
emegeve/Sudemax
gpl-3.0
5,499
169
codeparrot/github-code
5adfd9a112295daf440999232f5c769ae4318bc1fca982aec2c5ee6876a3eb9e
!------------------------------------------------------------------------------ ! ! This file is part of the SternheimerGW code. ! Parts of this file are taken from the Quantum ESPRESSO software ! P. Giannozzi, et al, J. Phys.: Condens. Matter, 21, 395502 (2009) ! ! Copyright (C) 2010 - 2018 Quantum ESPRESSO group, ! H...
FORTRAN
algo/symmetry/src/star_q.f90
mmdg-oxford/SternheimerGW
gpl-3.0
4,936
147
codeparrot/github-code
2038ed42ce45d44ee33690639b6a57c4e12f18d03e4e1c5291880a2ddea35547
// Copyright © 2011-2013 Yanick Castonguay // // This file is part of MPfm. // // MPfm 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 versio...
C#
ProjectFileReader.cs
ycastonguay/VSProjectSync
gpl-3.0
2,147
59
codeparrot/github-code
2c2d39636c310e1cc760906ed49eb88379a516977c2be5eeced200552c04519d
package com.houtekamert.testmod1.item; import com.houtekamert.testmod1.creativetab.CreativeTabTM1; import com.houtekamert.testmod1.reference.Reference; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.item.Ite...
Java
src/main/java/com/houtekamert/testmod1/item/ItemTM1.java
houtekamert/Testmod
gpl-3.0
1,334
47
codeparrot/github-code
ea76aaef115961ef7c41be8802ee83efe1317e92d01846d5a0264457617d0390
/* * Copyright © 2017 No0n3Left <no0n3left@gmail.com> * * This file is part of Remnant * * Remnant 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)...
C++
src/opengl/mesh.cpp
No0n3Left/Remnant
gpl-3.0
5,256
142
codeparrot/github-code
f992188bccb2f0dfae4b65e0386013346d8d81a66d1d2cc7e493b2fe2e3ea92f
<?php /** * Copyright (C) 2007,2008 Arie Nugraha (dicarve@yahoo.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 la...
PHP
admin/modules/bibliography/pop_topic.php
yuannet/slims8_akasia
gpl-3.0
7,436
189
codeparrot/github-code
b6b84ffff7767c7d5fe1718e7eeaca828fa1f5361094e4bf2567f2154031abc1
function InstrumentSelector(list) { this.instruments = list; this.currentInstrument; this.updateInstrumentView(); } InstrumentSelector.prototype.addInstrument = function (type, url, colorCode) { var l = this.instruments.push(new Instrument(type, url, colorCode)); this.createInstrumentView(l-1); } InstrumentSele...
JavaScript
release/beta_0.3/include/InstrumentSelector.js
mqtlam/cloud-composer
gpl-3.0
2,208
68
codeparrot/github-code
dfb1517339e16de4cc2dc192a66e04b8b7cab2ef3d2d7a7f134277cc8dd73ee8
from __future__ import unicode_literals from __future__ import absolute_import from django.views.generic.base import TemplateResponseMixin from wiki.core.plugins import registry from wiki.conf import settings class ArticleMixin(TemplateResponseMixin): """A mixin that receives an article object as a parameter (u...
Python
wiki/views/mixins.py
Infernion/django-wiki
gpl-3.0
1,668
42
codeparrot/github-code
173edf527d920172087352a9a7ee0224b3f9b1d0919f1d84c8687bc46a493e9c
#!/usr/bin/env ruby # # Usage: ruby load_data.rb *txt # require File.dirname(__FILE__) + '/../../../config/environment' require File.dirname(__FILE__) + '/../../load_utils' # First get hold of the region region = Region.find_or_initialize_by_region("Denmark") region.lat = 56.2639 region.lng = 9.5018 region.country = ...
Ruby
stats/europe/denmark/load_stats.rb
guydavis/babynamemap
gpl-3.0
1,307
49
codeparrot/github-code
2f4819fa9d497c7bdd6e1680708a262ad68b7aef8eed3d99ddd099b45c34639c
/************************************************************************* * * The Contents of this file are made available subject to the terms of * the BSD license. * * Copyright 2000, 2010 Oracle and/or its affiliates. * All rights reserved. * * Redistribution and use in source and binary forms, with or...
Java
odk/examples/java/Inspector/UnoTreeRenderer.java
qt-haiku/LibreOffice
gpl-3.0
5,903
133
codeparrot/github-code
9c3eeb505f366193b1543530305a22fad9460b38914c2d020bedffaa689c27f9
package antlr; /* ANTLR Translator Generator * Project led by Terence Parr at http://www.cs.usfca.edu * Software rights: http://www.antlr.org/license.html * * $Id: //depot/code/org.antlr/release/antlr-2.7.7/antlr/TreeBlockContext.java#2 $ */ /**The context needed to add root,child elements to a Tree. There * i...
Java
acide/antlr/TreeBlockContext.java
salcedonia/acide-0-8-release-2010-2011
gpl-3.0
1,263
36
codeparrot/github-code
c98e9d347a2deb54d1972a421022a601f8da9db439deeaa9c020980225a035f4
/* AGS - Advanced GTK Sequencer * Copyright (C) 2005-2011 Joël Krähemann * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later ...
C
src/ags/X/ags_machine_editor.c
weedlight/gsequencer
gpl-3.0
17,694
554
codeparrot/github-code
b4490923964cbd2b288af36e81c78560dfdaa97c97e4d82f89d9f16bd9e7a717
""" A mode for working with Circuit Python boards. Copyright (c) 2015-2017 Nicholas H.Tollervey and others (see the AUTHORS file). 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...
Python
mu/modes/circuitpython.py
carlosperate/mu
gpl-3.0
10,028
305
codeparrot/github-code
65e57088cd55883e04a4034dbf76f2a9b47b5b023d9d2cc4c4dfb5de7f554eca
import os from collections import defaultdict from django.conf import settings from django.contrib import messages from django.core.paginator import Paginator, InvalidPage, EmptyPage from django.core.urlresolvers import reverse from django.db.models import Count, Q from django.http import HttpResponseRedirect, Http404...
Python
orb/views.py
mPowering/django-orb
gpl-3.0
30,008
828
codeparrot/github-code
ffa1d9ccd5a6a7cdf2d8b735d11a9d1301c595785730013d5153df813e656b18
<?php /* * Starting player: Take the Starting player token and all the Food that has * accumulated on this Action space. Additionally, take 2 Ore (in games with 1 * to 3 players) or 1 Ruby (in games with 4 to 7 players) from the general * supply. (1 Food is added to this Action space every round.) */ namespace...
PHP
src/Caverna/CoreBundle/Entity/ActionSpace/StartingPlayerActionSpace.php
nanomuelle/caverna
gpl-3.0
2,605
126
codeparrot/github-code
2fea346fd644361e684086f9adb45e17db35ec480563bfdaec6a689cff7922b5
package get_cocoa import ( "log" "github.com/gonum/plot" "github.com/gonum/plot/plotter" "github.com/gonum/plot/plotutil" "github.com/gonum/plot/vg" ) type PlotStruct struct { X float64 Y float64 } func Plot(series plotter.XYs) { p, err := plot.New() if err != nil { log.Fatal(err) } p.Title.Text = "Tim...
GO
src/get_cocoa/plotting.go
tchitchikov/instant_cocoa
gpl-3.0
566
37
codeparrot/github-code
2d1f3d6125938d7ba0fb26aa527eba1896ee355f8b3593787531b572ee053664
/* * Copyright (c) 2017 SamuelGjk <samuel.alva@outlook.com> * * This file is part of DiyCode * * DiyCode 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...
Java
app/src/main/java/moe/yukinoneko/diycode/module/about/AboutActivity.java
SamuelGjk/DiyCode
gpl-3.0
1,983
70
codeparrot/github-code
930feacdc149be659dcdcac9ad2860795c503667013d5c5c5e6940b76a3b9083
/** * \file IMP/atom/Selection.cpp * \brief Select a subset of a hierarchy. * * Copyright 2007-2017 IMP Inventors. All rights reserved. * */ #include "IMP/atom/hierarchy_tools.h" #include <IMP/SingletonContainer.h> #include <IMP/algebra/vector_generators.h> #include <IMP/atom/Atom.h> #include <IMP/atom/Chain....
C++
modules/atom/src/Selection.cpp
shanot/imp
gpl-3.0
41,273
1,169
codeparrot/github-code
403c4042cdfc2b649ce9d02cb2a4053f489495cae5ed97a34ae17ff3768a09b9
<?php /** Copyright 2011-2015 Nick Korbel This file is part of Booked Scheduler. Booked Scheduler is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later ve...
PHP
lang/es.php
JoseTfg/booked3
gpl-3.0
45,366
797
codeparrot/github-code
0a138aa7bf946aea664d5f7ffd9df1d94fd912e562ec87479643d1bb47d372a3
/* cr-ellipse.h * Copyright (C) 2006 Robert Gibbs <bgibbs@users.sourceforge.net> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your o...
C
libs/crcanvas-0.19/crcanvas/cr-ellipse.h
fastcoding/sirrannon
gpl-3.0
2,149
77
codeparrot/github-code
aca81275b8271acbbde5db76eb430d917ab9b1f60b566776ec11af5bd5fbe2cd
module ApplicationEnvironment protected def get_setting(key) @setting = Setting.find(:first, :conditions => ["key = ?", key], :limit => 1 ) return @setting.value end def path_for_thumbnail(thumbnail_name, username) path = Rails.root.join( get_setting('public_pictures_directory...
Ruby
lib/application_environment.rb
khanku/raillery
gpl-3.0
1,125
51
codeparrot/github-code
c72a647c51808393d8879d4e86cab34e579ac0785c90e97055e7249fdda69a18
package madsdf.ardrone.controller.neuralnet; import com.google.common.eventbus.EventBus; import java.util.Arrays; import java.util.LinkedList; import java.util.ListIterator; import madsdf.shimmer.gui.AccelGyro; /** * Movement model implementing the abstract MovementModel and implementing the * processFeat...
Java
src/madsdf/ardrone/controller/neuralnet/MeanDifferenceMedianMovement.java
heig-iict-ida/ardrone_gesture
gpl-3.0
4,036
119
codeparrot/github-code
83e7d9e3d0b0d11a7a64dcf6c4441aadfa7c5faf239e4a4207a8969c19eaf17c
/* This file is produced by the C++/CLI AutoWrapper utility. Copyright (c) 2006 by Argiris Kirtzidis */ #pragma once #pragma managed(push, off) #include "OgrePageContentCollection.h" #pragma managed(pop) #include "MogrePlatform.h" #include "MogrePrerequisites.h" namespace Mogre { //#######################...
C
References/mogre/include/auto/MogrePageContentCollection.h
ss13remake/mspriterenderer
gpl-3.0
1,710
99
codeparrot/github-code
3f36ec8d0c356519c0cf29a0415ea519dfc09258cee66596923c9aa240c359b9
package edu.osu.cse5236.group9.dieta; import android.content.Intent; import android.os.Bundle; import android.support.v4.app.FragmentActivity; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentTransaction; import android.util.Log; import android.view.View; import android.widget.TextV...
Java
src/Dieta/app/src/main/java/edu/osu/cse5236/group9/dieta/DetailedResultsActivity.java
lisiyuan656/dieta
gpl-3.0
4,468
121
codeparrot/github-code
0c5d36f493630f51a417c60e314c3946cd85c55f70b7cde671ab2c965096dc9e
class SiteController < ApplicationController skip_before_filter :authenticate_user!, only: [:index, :weixin, :weixin_mobile] layout :action_layout def index end def main @notices=General::Notice.where("date<=? AND e_date>=?", Date.today, Date.today ) end def presentation end def weixin end def wei...
Ruby
app/controllers/site_controller.rb
ImJayQiu/ssics
gpl-3.0
533
42
codeparrot/github-code
67afb9aa5df3c763d8676a084cdfde1c6c2a6cc0f3360bf8429f2a4f61b14888
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package cz.webarchiv.webanalyzer.dictionary; /** * * @author praso */ class Word implements java.lang.Comparable<Word> { private String word; public String getWord() { return word; } publi...
Java
src/cz/webarchiv/webanalyzer/dictionary/Word.java
WebArchivCZ/webanalyzer
gpl-3.0
800
43
codeparrot/github-code
0bae9a5d15a1de2de7ca098fdf15ffa0a10deead7e2ad3b811b2f066ddbca0a4
/** ****************************************************************************** * @file LwIP/LwIP_IAP/Src/tftpserver.c * @author MCD Application Team * @version V1.5.0 * @date 17-February-2017 * @brief basic tftp server implementation for IAP (only Write Req supported) ****************...
C
libs/STM32Cube_FW_F4_V1.16.0/Projects/STM324x9I_EVAL/Applications/LwIP/LwIP_IAP/Src/tftpserver.c
TRothfelder/Multicopter
gpl-3.0
14,736
462
codeparrot/github-code
3b6c2606a081962c473db51569d6b6dee11bb58533df66fc0f74753109149c57
require "torch" require "nn" require "math" -- global variables learningRate = 0.01 innerIteration = 1 outerIteration = 1 fraction = 0.01 batchsize = 500 num_roc_points = 10 function subset(dataset, head, tail) local sub = {} local index = 0 for i = head, tail do index = index + 1 sub[index] = dataset[...
Lua
Lab3/train_five_hidden.lua
vsocrates/mhealth-grabapp
gpl-3.0
16,054
512
codeparrot/github-code
573be31a929817f4729887088e139ec7bffdbcdedc03bbd26d99bb9c52798c66
// ----------------------------------------------- // This file is script-generated... // ----------------------------------------------- #ifndef VDIS_ENUMS_H #define VDIS_ENUMS_H #include <ostream> #include "vdis_enumerations.h" #include "ack_acknowledge_flag.h" #include "ack_response_flag.h" #include "action_seq_...
C
vdis/src/vdis_enums.h
tpinkston/vdb
gpl-3.0
51,500
1,592
codeparrot/github-code
3a90708a9326c492a17f1daba18e7bef3f25ee0ea5bdb6cd87fcf6724fb9b5d5
<?php /* Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org> * Copyright (C) 2005-2014 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2005-2010 Regis Houssin <regis.houssin@capnetworks.com> * Copyright (C) 2010-2013 Juanjo Menent <jmenent@2byte.es> * * This prog...
PHP
htdocs/admin/prelevement.php
ozit/dolibarr
gpl-3.0
9,338
290
codeparrot/github-code
e8a4cc726b17a436413fe542cd2abd93f185f6ed734d5bf6aae83a5dcdfc10c7
package com.a4server.gameserver.network.packets.clientpackets; import com.a4server.gameserver.model.GameLock; import com.a4server.gameserver.model.GameObject; import com.a4server.gameserver.model.Hand; import com.a4server.gameserver.model.Player; import com.a4server.gameserver.model.inventory.AbstractItem; import com....
Java
server/src/com/a4server/gameserver/network/packets/clientpackets/InventoryClick.java
arksu/origin
gpl-3.0
4,782
194
codeparrot/github-code
e7cc371709c562eecf97112078e5522acf415854aab11eec06698c1b0a59d8f8
/* | Copyright 2015 Pispidikis john | | Licensed under the GNU GENERAL PUBLIC LICENSE Version 3 | you may not use this file except in compliance with the License. | | | Unless required by applicable law or agreed to in writing, software | distributed under the License is distributed on an "AS IS" BASIS, | W...
JavaScript
lib/OGCfunction.js
pispidikisj/Topo3DcityDBPS
gpl-3.0
13,602
447
codeparrot/github-code
e60126680869d221438366d0bd82e5f699bebc5018e245ec25df8fcdf2cac221
#include "qtreversimenudialog.h" #include <QKeyEvent> #include <QApplication> #include <QDesktopWidget> #include "reversimenudialog.h" #include "qtaboutdialog.h" #include "qtreversimaindialog.h" #include "reversimenudialog.h" #include "ui_qtreversimenudialog.h" ribi::reversi::QtReversiMenuDialog::QtReversiMen...
C++
qtreversimenudialog.cpp
richelbilderbeek/Reversi
gpl-3.0
1,084
55
codeparrot/github-code
1347f3574bba5bc641250d17ec65532855c68442f0f580f35a3cee380aafcde3
## # This module requires Metasploit: http://metasploit.com/download # Current source: https://github.com/rapid7/metasploit-framework ## require 'msf/core' class Metasploit3 < Msf::Auxiliary include Msf::Exploit::Remote::Tcp include Msf::Auxiliary::Dos def initialize(info = {}) super(update_info(info, ...
Ruby
modules/auxiliary/dos/http/nodejs_pipelining.rb
cSploit/android.MSF
gpl-3.0
2,959
93
codeparrot/github-code
3ad9bee7c2e76cc79f3b955e21459f23cac083ef248b889161183e7ace255874
/** * * Copyright (c) 2013-2014, Openflexo * Copyright (c) 2011-2012, AgileBirds * * This file is part of Gina-core, a component of the software infrastructure * developed at Openflexo. * * * Openflexo is dual-licensed under the European Union Public License (EUPL, either * version 1.1 of the License, o...
Java
gina-api/src/main/java/org/openflexo/gina/model/widget/FIBTableAction.java
openflexo-team/gina
gpl-3.0
8,774
279
codeparrot/github-code
b453357750ad43d2253ac5aed0e71b842c5b664f64df7f7d65c5b58e1a7783ed
<?php /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * * Copyright (c) 2001-2019 * * ...
PHP
ecrire/exec/base_repair.php
JLuc/SPIP
gpl-3.0
1,697
55
codeparrot/github-code
77735801c9cd157a9f5ab8fac86b01ae5ee4aaa3887e373269583aff6b049657
/* cmapbash - a simple Minecraft map renderer written in C. © 2014 saltire sable, x@saltiresable.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...
C
src/map/image.h
saltire/cmapbash
gpl-3.0
2,087
72
codeparrot/github-code
2c2adcc408bc735d7674f737048a084a0ffdada399f951ab6dd92fc7ea133bda
<?php class ModelOpenbayAmazonPatch extends Model { public function runPatch($manual = true) { $this->load->model('setting/setting'); $settings = $this->model_setting_setting->getSetting('openbay_amazon'); if ($settings) { $this->db->query(" CREATE TABLE IF NOT EXISTS `" . DB_PREFIX . "amazon_product_s...
PHP
upload/admin/model/openbay/amazon_patch.php
villagedefrance/OpenCart-Overclocked
gpl-3.0
1,268
42
codeparrot/github-code
b31b7b81c7510832cba86bf1010e4befb995a6e91de6d67885524632e5544ed6
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2012 Tuukka Turto # # This file is part of satin-python. # # pyherc 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 ...
Python
satin/label.py
tuturto/satin-python
gpl-3.0
2,211
78
codeparrot/github-code
912c1ddfdc98000ca35276855a38fe61f5feb6b0c3aeaec7b9df06e7115b55a7
'use strict'; const {Application} = require('backbone.marionette'); const Geppetto = require('backbone.geppetto'); const debug = require( 'debug' )( 'dpac:app', '[Context]' ); const eventLog = require( 'debug' )( 'dpac:core.events', '\u2709' ); const app = module.exports = new Application(); const AppContext = Geppett...
JavaScript
src/scripts/core/App.js
d-pac/d-pac.client
gpl-3.0
957
32
codeparrot/github-code
be479dad27ccc986bb8a53665424acc3f4522337d072be7a3a8fba2cc4ec0751
jQuery(document).ready(function(jQuery){ jQuery('.smile-upload-media').click(function(e) { _wpPluploadSettings['defaults']['multipart_params']['admin_page']= 'customizer'; var button = jQuery(this); var id = 'smile_'+button.attr('id'); var uid = button.data('uid'); var rmv_btn = 'remove_'+button.attr('id');...
JavaScript
wp-content/plugins/convertplug/framework/lib/fields/media/media.js
emergugue/emergugue_wp_theme
gpl-3.0
5,553
153
codeparrot/github-code
650a89411043638cdf7d09d12c24fd693f28bbb74bb7af4dbe6e19d11493373a
package engsoft; import junit.framework.TestCase; import java.lang.System; public class EProgressaoTest extends TestCase { public void testProgressaoAritmetica() { Progressao p = new ProgressaoAritmetica(); assertEquals(0, p.inicia()); assertEquals(1, p.proxTermo()); assertEquals(...
Java
src/test/java/engsoft/EProgressaoTest.java
rranelli/engsoft-progressoes
gpl-3.0
6,340
176
codeparrot/github-code
21a35b9b17880b2a42577c290af688f7362f672428ed3c2f25e13f776201e055
from django.contrib.contenttypes.fields import GenericForeignKey, GenericRelation from django.contrib.contenttypes.models import ContentType from django.db import models from base.models import ModelloSemplice from base.tratti import ConMarcaTemporale class Giudizio(ModelloSemplice, ConMarcaTemporale): """ R...
Python
social/models.py
CroceRossaItaliana/jorvik
gpl-3.0
4,591
154
codeparrot/github-code
e3a69d9041cf504286b63855b1fe30fbbf0abccd796dcbb8e3b46b7139ebfa11
import {Component, Input, OnInit, ViewChild} from '@angular/core'; import {Messages} from "../../models/message"; import {Threadz} from "../../models/threadz"; import {HttpClient} from "@angular/common/http"; import {MatRipple} from "@angular/material"; import {FormBuilder, FormGroup} from "@angular/forms"; @Component...
TypeScript
src/app/components/content/content.component.ts
whiteshadoww/smsWpc
gpl-3.0
897
46
codeparrot/github-code
f1be7cb475aa221d629be70ff178c4e06d76a87d2796fc75ff87c9e596b807e3
<?php namespace App\Repositories\Implementation\Cms; use App\Repositories\Contracts\Cms\Industry as IndustryInterface; use App\Repositories\Implementation\BaseImplementation; use App\Models\Industri as IndustryModels; use App\Models\IndustriTrans as IndustryTransModels; use App\Services\Transformation\Cms\Industry as...
PHP
app/Repositories/Implementation/Cms/Industry.php
kiki091/LintasEbtke
gpl-3.0
11,280
439
codeparrot/github-code
7e762a4d03f0781ab167c3733935660983186849374838904b7509d4eff4c7d6
# -*- coding: utf-8 -*- # # Copyright (C) 2016 Taifxx # # 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....
Python
context.addtolib/resources/lib/ext/li2_.py
Taifxx/xxtrep
gpl-3.0
6,354
165
codeparrot/github-code
7be648be67def0b6435214284fd2352f884af41c9483a59473c6814869aead4d
<?php class ModelDefinitionForumCategory extends Model { public function addCategory($data) { $this->db->query("INSERT INTO " . DB_PREFIX . "forum_category SET parent_id = '" . (int)$data['parent_id'] . "', `top` = '" . (isset($data['top']) ? (int)$data['top'] : 0) . "', `column` = '" . (int)$data['column'] . "', s...
PHP
public_html/admin/model/definition/forum_category.php
fahrettinaksoy/anet-support-center
gpl-3.0
11,068
162
codeparrot/github-code
b0c887767f247329e83597f290428dcfd165b7b8dd7bb00c04f921d8ca0bfa30
namespace WindowsFormsApplication4 { partial class TimeLinerSub { /// <summary> /// 必需的设计器变量。 /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// 清理所有正在使用的资源。 /// </summary> /// <param name="disposing">如果应...
C#
Timeliner/TimeLinerSub.Designer.cs
lyn0328/Timeliner
gpl-3.0
8,031
173
codeparrot/github-code
521bb300d36deb4b451bbf732a34d3f299f00b3a6cd5c6876c1319df44fea1ab
from api.callers.api_caller import ApiCaller from exceptions import ResponseTextContentTypeError from colors import Color import os from cli.arguments_builders.default_cli_arguments import DefaultCliArguments import datetime from cli.cli_file_writer import CliFileWriter from cli.formatter.cli_json_formatter import CliJ...
Python
cli/wrappers/cli_caller.py
PayloadSecurity/VxAPI
gpl-3.0
6,739
159
codeparrot/github-code
9ba3c20bcdbcd272a0869e6201dc7461379c7c6de867c35df97a3af5acad2d87
/* First created by JCasGen Wed Sep 07 16:18:03 EDT 2016 */ package edu.pitt.dbmi.xmeso.model.Model; import org.apache.uima.jcas.JCas; import org.apache.uima.jcas.JCasRegistry; import org.apache.uima.cas.impl.CASImpl; import org.apache.uima.cas.impl.FSGenerator; import org.apache.uima.cas.FeatureStructure; import org...
Java
src/main/java/edu/pitt/dbmi/xmeso/model/Model/XmesoSentence_Type.java
dbmi-pitt/xmeso
gpl-3.0
5,475
149
codeparrot/github-code
6d30e00c91d55155b1c0d0248e09a72e069e45e4f5833ca50167b8c49b2de84c
# -*- coding: utf-8 -*- ######################################################################### # # Copyright (C) 2016 OSGeo # # 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 ...
Python
geonode/security/views.py
mcldev/geonode
gpl-3.0
9,784
279
codeparrot/github-code
d5cafba76b9ec0f1825cdd934a1b0fc4088c28b5c6eac8f84ece391b48404f42
# Alternative during matching. Contains a list of symbols where each is tried. # Since we are parsing a CFG, there is no precedence to the alternatives. Only # fails if all alternatives fail. # # Example: # # str('a') | str('b') # matches either 'a' or 'b' # class Marpa::Atoms::Alternative < Marpa::Ato...
Ruby
ruby/marpa/atoms/alternative.rb
rhinton/libmarpa-bindings
gpl-3.0
3,452
103
codeparrot/github-code
7952111ee7c9d110f7eb3190aa6c3b350665f70a557b9fc4811868dbf70d94ab
#ifndef ATOOLS_Math_MathTools_H #define ATOOLS_Math_MathTools_H /* Declarations for discrete functions */ #ifdef __GNUC__ // GNU C++ Compiler #include <cmath> #include <cstdlib> /* if __GNUC__ == 3 && __GNUC_MINOR__ == 0. if defined __GNUC__ && defined __cplusplus && __GNUC_MINOR__ >= 8 if !def...
C++
ATOOLS/Math/MathTools.H
cms-externals/sherpa
gpl-3.0
8,456
293
codeparrot/github-code
fca4b8be86e997024e0079e23a5b179a1aaeba0527b991f480875c9fe4cd072a
ManageIndexes = { GridPanel : function(config) { config.autoExpandColumn = 'columns'; config.viewConfig = { forceFit: true }; ManageIndexes.GridPanel.superclass.constructor.call(this, config); }, gridPanelStore : function(data) { var store = new Ext.data.SimpleStore( { fields : data.fields }); ...
JavaScript
app/js/dblite/manageindexes.js
manusis/dblite
gpl-3.0
11,797
409
codeparrot/github-code
0b81101353920df5c42df0787007d02cc4a41f1d9bfed7a0ff2fadb624e8f237
#include <string> #include <vector> #include <stdio.h> #include "graphics.h" #include "engine.h" #include "Lib/BufferedFile.h" #include "Lib/getvar.h" using namespace std; using namespace sf; int GraphicResources::GetGraphicCount() { return Graphics.size() - 1; } GraphicData& GraphicResources::GetGraphic(int Index)...
C++
Source/graphics.cpp
Nvreformat/Argentum-Engine
gpl-3.0
6,132
232
codeparrot/github-code
748d1bc30193a171c05e079184e2b54d2545315c6f83d104483aa2d8d4ad6c7d
/* This file is part of the db4o object database http://www.db4o.com Copyright (C) 2004 - 2011 Versant Corporation http://www.versant.com db4o is free software; you can redistribute it and/or modify it under the terms of version 3 of the GNU General Public License as published by the Free Software Foundation. db4o ...
Java
src/db4oj/core/src/com/db4o/io/CachedIoAdapter.java
potty-dzmeia/db4o
gpl-3.0
13,271
514
codeparrot/github-code
7e63fa479f8072d6685bb0455787f51187aa4a8f3f2b720841b0d1968f44ffa1
<?php declare(strict_types = 1); namespace AppBundle\Repository; use AppBundle\Model\Edit; use AppBundle\Model\Page; use AppBundle\Model\Project; /** * An EditRepository fetches data about a single revision. * @codeCoverageIgnore */ class EditRepository extends Repository { /** * Get an Edit instance giv...
PHP
src/AppBundle/Repository/EditRepository.php
x-Tools/xtools
gpl-3.0
2,791
82
codeparrot/github-code
b242b0b1f2b2732b98946830389dca87ff4661883cff928ab3506006dd5c4792
<?php namespace app\modules\systemJournal\models; use app\components\custom\TSearchModelTools; use app\components\helpers\TimeHelper; use Yii; use yii\data\ActiveDataProvider; class SystemJournalSearch extends SystemJournal { const VIEW_MODE_ALL = 'All'; const VIEW_MODE_DELETED = 'Deleted'; use TSea...
PHP
modules/systemJournal/models/SystemJournalSearch.php
eugene-siderka/randevu
gpl-3.0
3,828
102
codeparrot/github-code
94d1f0962d73cde409526ca26d584a8af05f631bb5bffe2cdecd10dae1d874cf
/*********************************************************************************** Copyright (C) 2014-2015 Ahmet Öztürk (aoz_2@yahoo.com) This file is part of Lifeograph. Lifeograph is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License a...
C++
src/win_wao.cpp
blhps/lifeograph-windows
gpl-3.0
17,191
460
codeparrot/github-code
f06ff39ddf4b83065b1f2b34ec894ab77d8491e1ca34762b73d1841fd4629e2a
// -------------------------------------------------------------------------------------------------- // Copyright (c) 2016 Microsoft Corporation // // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and // associated documentation files (the "Software"), to deal in th...
Java
Malmo-0.16.0-Windows-64bit/Minecraft/src/main/java/com/microsoft/Malmo/Utils/JSONWorldDataHelper.java
maxfoow/MalmoExperience
gpl-3.0
8,861
179
codeparrot/github-code
55aa503f587dac414d2f72455728ffd5e641e6efd7f25be406f3ce8ca4391b09
/* * This file is part of EchoPet. * * EchoPet 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. * * EchoPet is distributed in th...
Java
modules/v1_14_R1/src/com/dsh105/echopet/compat/nms/v1_14_R1/entity/type/EntityEvokerPet.java
Borlea/EchoPet
gpl-3.0
2,379
69
codeparrot/github-code
ebb9b34d852cf1d6895a0bb7b1705643632d56c2effa7d62e8d36b5d1a60cd1b
/* * R Cloud - R-based Cloud Platform for Computational Research * at EMBL-EBI (European Bioinformatics Institute) * * Copyright (C) 2007-2015 European Bioinformatics Institute * Copyright (C) 2009-2015 Andrew Tikhonov - andrew.tikhonov@gmail.com * Copyright (C) 2007-2009 Karim Chine - karim.chine@m4x.org * * T...
Java
rcloud-bench/src/main/java/workbench/views/basiceditor/highlighting/DocumentBlockLevels.java
andrewtikhonov/RCloud
gpl-3.0
3,628
113
codeparrot/github-code
839c653b3f2dc3eb7ce34567fd8e9d820f56bd02387062eb59060a10e7e81fac
/* Copyright © 2007, 2008, 2009, 2010, 2011 Vladimír Vondruš <mosra@centrum.cz> This file is part of Kompas. Kompas is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 3 only, as published by the Free Software Foundation. ...
C++
src/Matrix.cpp
mosra/kompas-sdl
gpl-3.0
7,046
193
codeparrot/github-code
f0d1ea4738ac4524b02a4167a55c4f33e0086a6c37b03ecc5a74d9ea9f7bb6ae
from elasticsearch import Elasticsearch from django.conf import settings def get_es_client(silent=False): """ Returns the elasticsearch client which uses the configuration file """ es_client = Elasticsearch([settings.ELASTIC_SEARCH_HOST], scheme='http', ...
Python
src/online_discourse/elastic.py
fako/datascope
gpl-3.0
1,813
59
codeparrot/github-code
37b3f094e102cd50e9f1b2c66073d58b9ab9fdd3e8b23972866dc399a8061c35
#!/usr/bin/perl # Copyright 2000-2002 Katipo Communications # # This file is part of Koha. # # Koha 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...
Perl
opac/opac-alert-subscribe.pl
dpavlin/Koha
gpl-3.0
2,838
94
codeparrot/github-code
8f0e7b69a59479e8cecb16dadec6edf71fd1ed70b7150e89acc1b9ee1e1c5231
/* * Grakn - A Distributed Semantic Database * Copyright (C) 2016 Grakn Labs Limited * * Grakn 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
grakn-graph/src/main/java/ai/grakn/graph/internal/CastingImpl.java
fppt/mindmapsdb
gpl-3.0
3,785
110
codeparrot/github-code
f359b5cb620744191ebb384a6acc93fda38d99d36e4b7650b5df405d7de71d29
package com.nilhcem.bblfr.core.dagger; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; import com.jakewharton.picasso.OkHttp3Downloader; import com.nilhcem.bblfr.BBLApplication; import com.nilhcem.bblfr.BuildConfig; import com.nilhcem.bblfr.core.map.Loc...
Java
app/src/main/java/com/nilhcem/bblfr/core/dagger/BBLModule.java
Nilhcem/bblfr-android
gpl-3.0
1,947
62
codeparrot/github-code
5290a730a919bff8099c161291ca45962126de7dab7efd8b5b8d1ebba3d1422f
//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/SerBanDesGen.java
avdata99/SIAT
gpl-3.0
4,361
196
codeparrot/github-code
a550db97ef3673effa3bcf49d3b15912b25315ceb853af58bc8b8aa139a3b371
'use strict'; const path = require('path'); const os = require('os'); const fs = require('fs-extra'); const fieHome = require('fie-home'); const debug = require('debug')('core-report'); const fieUser = require('fie-user'); const execSync = require('child_process').execSync; const spawn = require('cross-spawn'); const ...
JavaScript
packages/fie-report/lib/utils.js
fieteam/fie
gpl-3.0
4,409
199
codeparrot/github-code
cbc8d7e4c0116b9aa12125709b1a37a08ca18a5b1825c00489622cc4a3ca8a4e
/* * A catalog is used to map names to objects. */ #ifndef catalog_h #define catalog_h #include <InterViews/stub.h> class Catalog { public: Catalog(int size); ~Catalog(); void Register(const char*, ObjectStub*); void UnRegister(const char*); boolean Find(ObjectStub*&, const char*); private: ...
C
cmds/public/IV2.5/src/InterViews/catalog.h
axelmuhr/Helios-NG
gpl-3.0
535
34
codeparrot/github-code
5950d7f3629c4ae40a61e8a35a193772e4115a889eb0324bd576e6abda28e349
#------------------------------------------------------------------------------- # Name: MissingPersomForm.py # # Purpose: Create Missing Person Flyer from data stored in the Subject # Information data layer within MapSAR # # Author: Don Ferguson # # Created: 12/12/2011 # Copyright: (...
Python
MissingPersonForm.py
dferguso/IGT4SAR
gpl-3.0
6,940
171
codeparrot/github-code
41e2595289b7f6fff792792c765360b4929a5100c9872ec03359ef8554eb838b
/** * Client. * @module client */ /** * View configuration. * @class ViewConfig */ function ViewConfig(resources) { this.playAnimations = true; this.resources = resources; } /** * Should we play animations? * @method setPlayAnimations */ ViewConfig.prototype.setPlayAnimations = function(value) { this.play...
JavaScript
src/client/resources/ViewConfig.js
limikael/netpoker
gpl-3.0
832
50
codeparrot/github-code
bd99cfcfe59d35ee0a5a0f56f76c8e606be4e1754b53ba869f54902bd92e5813
from kivy.lib import osc from time import sleep import pocketclient from kivy.utils import platform as kivy_platform SERVICE_PORT = 4000 def platform(): p = kivy_platform() if p.lower() in ('linux', 'waindows', 'osx'): return 'desktop' else: return p class Service(object): def __ini...
Python
service/main.py
tshirtman/kpritz
gpl-3.0
1,497
61
codeparrot/github-code
24b032c3f41db144321885f204cd0599b1b39e69f712eecec9f175c20b1f29b8
package it.niedermann.owncloud.notes.main.items.selection; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.recyclerview.selection.ItemKeyProvider; import androidx.recyclerview.widget.RecyclerView; import static androidx.recyclerview.widget.RecyclerView.NO_POSITION; public cla...
Java
app/src/main/java/it/niedermann/owncloud/notes/main/items/selection/ItemIdKeyProvider.java
stefan-niedermann/OwnCloud-Notes
gpl-3.0
1,115
33
codeparrot/github-code
02fadf2f04cad9f417d5078da63f0644e929f944923342498db724203f477e90
using System; using System.Collections.Generic; using System.Text; using libtcodWrapper; namespace RogueBasin { class MapGeneratorCave { Map baseMap; /// <summary> /// Chance of digging surrounding squares /// </summary> public int DiggingChance { get; se...
C#
RogueBasin/RogueBasin/MapGeneratorCave.cs
flend/roguelike
gpl-3.0
17,932
555
codeparrot/github-code
9986d3b56ff2646b2c8562bed33981c1f39958bcc1208bf0b7358f4e10ce6f99
/* * Process Hacker - * debug console * * Copyright (C) 2010-2011 wj32 * * This file is part of Process Hacker. * * Process Hacker is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 o...
C
ProcessHacker/dbgcon.c
processhacker2/processhacker
gpl-3.0
53,673
1,713
codeparrot/github-code
29dc1adf32114b551a2a73b649f27e930e10387fb869a880ea27125b95ccdf5a
import cv2 import numpy as np import datetime as dt # constant faceCascade = cv2.CascadeClassifier('haarcascade_frontalface_alt.xml') OPENCV_METHODS = { "Correlation": 0, "Chi-Squared": 1, "Intersection": 2, "Hellinger": 3} hist_limit = 0.6 ttl = 1 * 60 q_limit = 3 # init variables total_count = 0 pre...
Python
counter.py
kvasnyj/face_counter
gpl-3.0
2,444
89
codeparrot/github-code
138d6156227377ede13e401c722a2c3eff75264d3a88503a7ba088faada724d6
/* * Copyright (c) 2015 Evan Kale * Email: EvanKale91@gmail.com * Website: www.ISeeDeadPixel.com * www.evankale.blogspot.ca * * This file is part of Breakout. * * Breakout is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * ...
C
src/game/Ball.h
evankale/Breakout
gpl-3.0
1,271
53
codeparrot/github-code
c0fa3e98142c75a08f20a6f286dd1790c1386e33d91030d22e3a23d346125e7b
/* * This file is part of vallumd. * * Copyright (C) 2017 Stijn Tintel <stijn@linux-ipv6.be> * * 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 ...
C
src/main.c
nmaas87/vallumd
gpl-3.0
2,681
100
codeparrot/github-code