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
a72a87dd97d2910c125b09dc2a9bacc47d78060e68146d406890e8c8c089d314
<?php namespace Concrete\Core\Page; use PageType; use Concrete\Core\Support\Facade\Database; use \Concrete\Core\Package\PackageList; use Core; /** * @Entity * @Table(name="PageTemplates") */ class Template { /** @Id @Column(type="integer") @GeneratedValue **/ protected $pTemplateID; /** @Column(type="...
PHP
concrete/src/Page/Template.php
victorli/cms
mit
6,417
215
codeparrot/github-code
1a8deef14ad73736426a9377aca6a330f8a836919e0061a9c80b4ab71d417b94
<?php /** * Created by david.ramentol@zappingconsulting.com * Date: 04/09/14 * Time: 12:08 */ namespace T\DomainBundle\Controller; use FOS\RestBundle\Controller\Annotations as Annotations; use FOS\RestBundle\Controller\FOSRestController; use FOS\RestBundle\Request\ParamFetcherInterface; use FOS\RestBundle\View\Vi...
PHP
src/T/DomainBundle/Controller/CommentController.php
dramentol/capitest
mit
2,092
70
codeparrot/github-code
1f730498385f33fc41bbc49ea0ade4baa04952e1e1cb40b807dbf7970abbe525
""" This example uses OpenGL via Pyglet and draws a bunch of rectangles on the screen. """ import random import time import pyglet.gl as GL import pyglet import ctypes # Set up the constants SCREEN_WIDTH = 700 SCREEN_HEIGHT = 500 RECT_WIDTH = 50 RECT_HEIGHT = 50 class Shape(): def __init__(self): self....
Python
experimental/a_quick_test5.py
mwreuter/arcade
mit
4,042
160
codeparrot/github-code
572e4144e36f0935986efc4d0217466f26f0daee63170497809b4e375bb6c18b
module MongoMemcached module Synchronize def self.included base base.class_eval do include InstanceMethods extend ClassMethods end end module InstanceMethods def self.included(mongo_class) mongo_class.class_eval do after_create :add_to_caches...
Ruby
lib/mongo_memcached/synchronize.rb
dinesh/mongo-memcached
mit
1,508
65
codeparrot/github-code
b3ce11f07054f44bc9ad771f7d973e5f7ad4f528d8303442971ab9c50462574c
<?php /* VoyageBundle:Annonce:index.html.twig */ class __TwigTemplate_0d407561a039ef2b28699ad245872f919e0fe7f29e48dcccaf68dd8dc7532a31 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = $this->env->loadTemplate("VoyageBundle:...
PHP
app/cache/dev/twig/0d/40/7561a039ef2b28699ad245872f919e0fe7f29e48dcccaf68dd8dc7532a31.php
Helpersgroup/Voyage
mit
15,491
297
codeparrot/github-code
a42a18484efe807a19673551e9988005ee5c388e493a3cfe1ec2b61444c920d6
<?php /* |-------------------------------------------------------------------------- | Dais |-------------------------------------------------------------------------- | | This file is part of the Dais Framework package. | | (c) Vince Kronlein <vince@dais.io> | | For the full copyright and license inform...
PHP
peaches/Facades/Language.php
maniargaurav/dais
mit
981
40
codeparrot/github-code
15e8770cdd036e47946c7c10be1504ac02e8e77a90ba97cadb66aeaf26ced5ba
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Walkthrough Responsive Web Design</title> <meta name="description" content="Resources for doing responsive web design the right way"> <meta name="author" content="David Plutado Fugate"> <meta name="apple-mobile-web-app-capable" content...
HTML
index.html
plutado/walkthrough-rwd
mit
30,280
887
codeparrot/github-code
40ac5fd5d9669aa71872953e4a38f4e96670b29af235f51e30b619890d254aeb
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Login Page - Photon Admin Panel Theme</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"> <link rel="shortcut icon" href="ht...
HTML
lib/assets/images/photon/plugins/elrte/js/plugins/js/plugins/css/css_compiled/js/plugins/jquery.timeentry.min.js.html
user-tony/photon-rails
mit
15,365
197
codeparrot/github-code
5db0047c89c43c957e7918f8e722d4d8e3943456af37a6d39ef146cc0298d064
download_node() { local node_url="http://s3pository.heroku.com/node/v$node_version/node-v$node_version-linux-x64.tar.gz" if [ ! -f ${cached_node} ]; then info "Downloading node ${node_version}..." curl -s ${node_url} -o ${cached_node} cleanup_old_node else info "Using cached node ${node_version}....
Shell
lib/build.sh
anderslime/phoenix-static-buildpack
mit
3,989
140
codeparrot/github-code
4bbe64bdbbd84dd84b1dc58591585d42180a5bf4c0edeed4129100182db0c6e6
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "bplustree.h" #include "pdfindex.h" #include "pdfmem.h" #include "pdfread.h" #include "pdffilter.h" #include "pdfdoc.h" extern pdf_parser *parser_inst; pdf_map * pdf_map_create() { pdf_map * m = pdf_malloc(sizeof(pdf_map)); if (m) ...
C
src/pdfindex.c
bluegum/PegDF
mit
3,419
185
codeparrot/github-code
0bbd06daab07b9007d046155b1eb47798d48491b70ffdda9ecc6898b3e53a5c4
<!DOCTYPE html> <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Managing your Applications ...
HTML
user_guide/general/managing_apps.html
SaraAlamillo/hermano2
mit
30,203
382
codeparrot/github-code
d16cb20b4f060e219fc3a6850b7b5a5b43a915d12d598f07a97762ed79c68989
#include "NNParticle.h" #include "NNApplication.h" #include "NNResourceManager.h" #include "NNConfig.h" #include <d2d1_1.h> ////////////////////////////////////////////////////////////////////////// /* NNParticle */ ////////////////////////////////////////////////////////////////////////// NNParticle* ...
C++
NNGameFramework/NNGameFramework/NNParticle.cpp
quxn6/wugargar
mit
3,584
118
codeparrot/github-code
a0cea4a42f4e5faf88251ff33e82f36af73ed1905c666265d04dda33c7e72711
# -*- coding: utf-8 -*- """ Created on Thu Aug 1 16:10:56 2013 @author: vterzopoulos, abrys """ # To ignore numpy errors: # pylint: disable=E1101 import nibabel import numpy from dicom2nifti.image_volume import load, SliceType, ImageVolume def reorient_image(input_image, output_image): """ Change the o...
Python
dicom2nifti/image_reorientation.py
icometrix/dicom2nifti
mit
6,865
140
codeparrot/github-code
3e5956cc1d2f9e623ba449e5cabff922bc8d29c1cd18809356c37420425fa5dd
import { Injectable, isDevMode } from '@angular/core'; @Injectable() export class CacheService { static KEY = 'CacheService'; _cache = new Map(); /** * check if there is a value in our store */ has(key: string | number): boolean { let _key = this.normalizeKey(key); return th...
TypeScript
Client/shared/cache/universal-cache.ts
hidden-sound-team/Hidden-Sound-Web
mit
2,221
98
codeparrot/github-code
913e0e3ba21c4ff21998f6de46ccd46188949c1e90f7e0226a0d6c4eddeba0ec
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework; namespace Gearset.Components.CurveEditorControl { /// <summary> /// Changes the tangent value of a given key. /// </summary> public class ChangeTangentCommand : CurveEditorCommand {...
C#
Gearset/Components/Bender/Commands/ChangeTangentCommand.cs
juancampa/Gearset
mit
2,683
88
codeparrot/github-code
8d8782989975ad58548696b1ae65f0e1945c7a7819b0787d2494c352d9026e87
# This is a modified version of original twilio_sms Gluu's script to work with Casa from java.util import Arrays from javax.faces.application import FacesMessage from org.gluu.jsf2.message import FacesMessages from org.gluu.oxauth.security import Identity from org.gluu.oxauth.service import UserService, Authenticati...
Python
static/casa/scripts/casa-external_twilio_sms.py
GluuFederation/community-edition-setup
mit
6,740
176
codeparrot/github-code
eaa9fdb6ea5971c41ccb5074a607f7128c8677bcb807b4a0abc0887770dfefa6
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import * as postsActions from 'redux/modules/posts'; import { asyncConnect } from 'redux-connect'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import ListPosts from '../Posts/ListPosts'; @asyncConnect([...
JavaScript
src/containers/Profile/Posts.js
Nuriddinkhuja/photoshare
mit
1,352
66
codeparrot/github-code
5b0ed9e604ba7adafa7fab0bfe54e118850df42feabaa9646f44a4818ce296e5
{% extends "base.html" %} {% block "title" %} {{ route.title }} > {{ waypoint.title }} {% endblock %} {% block "content" %} <h2> {% if waypoint.id %} Edit {% else %} New {% endif %} Waypoint </h2> <div class="row"> <div class="col-xs-12 col-md-6"> {% if error_message %} <p><strong>{{...
HTML
audioguide/routebuilder/templates/waypoint_edit.html
daveclifton/audioguide
mit
1,597
63
codeparrot/github-code
37099ea6af7970a6193c18e516d022f331ea4e8af4bb8c368b79bb042b3f4ece
// Copyright (c) 2014-2015 DiMS dev-team // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "common/segmentFileStorage.h" #include "common/supportTransactionsDatabase.h" #include "monitor/transactionRecordManager.h" ...
C++
src/monitor/transactionRecordManager.cpp
salivan-ratcoin-dev-team/dims
mit
1,809
62
codeparrot/github-code
d531e1237b089c2156380aa83a173b56727709e65d0d1ddc2a194d1bd2b4d4ed
#include <gtest/gtest.h> using namespace std; double myPow1(double x, int n) { double result = 1; bool sign = false; if (n < 0) { sign = true; n = -n; } while(--n >= 0) { result *= x; } if (sign) { result = 1 / result; } return result; } double myPow(double x, int n) { if (n==0) { return 1;...
C++
Cpp/Codes/Practice/LeetCode/50 Pow.cpp
QuincyWork/AllCodes
mit
689
56
codeparrot/github-code
a972df65911a812c635bed6ca1c354887df6dffa40a4b8afcbf82fea4131f059
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'sky-services', template: ` <div id="services" class="container-fluid py-5"> <div class="row row align-items-start justify-content-center"> <div class="col col-lg-4 col-md-6 col-sm-12" *ngFor="let service of servi...
TypeScript
angular/skypress-theme/src/app/home/services/services.component.ts
SkyPressATX/skypress-site
mit
3,481
66
codeparrot/github-code
75b7a284559434c01a08447c68a17d098a3f1ee53ce1ad4e12a4e7b835fb607d
using System; using Newtonsoft.Json; namespace SlothThinking { public interface ILoungeReplay { int Id { get; } string DiskName { get; set; } int FileSize { get; set; } string FileName { get; set; } string ContentType { get; set; } DateTime CreatedAt { get; set; ...
C#
SlothThinking/SlothLounge/LoungeReplay.cs
Takaloy/SlothThinking
mit
1,171
47
codeparrot/github-code
20184df0008dff91824d8ccb62bf97aa54dc8382db1d93dbd18ddfae6dbfc4c6
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); class Staff extends CI_Controller { function __construct() { parent::__construct(); $this->load->model('protected/staff_model'); $this->load->library('form_validation'); $this->general->cekUserLogin();...
PHP
application/controllers/protected/Staff.php
racheats/nexmedia
mit
13,168
317
codeparrot/github-code
019768cc1b05b8f393114e19f31252e37e6427cf4c9ecb7ee12d1a1d82f5a837
package com.devmate.pub.client.impl; public class CustomersQueryParams { private static final int DEFAULT_LIMIT = 10; private static final int DEFAULT_OFFSET = 0; private static final boolean DEFAULT_INCLUDE_LICENSE = false; private String email; private String firstName; private String lastNa...
Java
src/main/java/com/devmate/pub/client/impl/CustomersQueryParams.java
DevMate/DevMateClientJava
mit
4,660
185
codeparrot/github-code
b99485333df462a58bf1c516044e4feeaab76fac4a21b87c25bf48391f32a525
using System.Threading.Tasks; using Apollo.CommandSystem; using Apollo.Data; using Apollo.Services; namespace Apollo.Commands.Log { public class GetJournalEntries : AuthenticatedCommand { private readonly IJournalDataService journalDataService; public int start { get; set; } public G...
C#
server/Apollo/Commands/Journal/GetJournalEntries.cs
charlesj/Apollo
mit
915
32
codeparrot/github-code
573ad97510fbad3a8c38b16f7644c08993d4c981da9dca7c339861b482433d7a
package com.rhcloud.oldfish.augere.entity; import javax.persistence.*; import java.sql.Date; /** * Created by hadi on 8/12/15. */ @Entity public class User { private int id; private String email; private String username; private String password; private String firstname; private String lastn...
Java
src/main/java/com/rhcloud/oldfish/augere/entity/User.java
abdullahallmehedi/augere
mit
3,652
143
codeparrot/github-code
13a2f1104d7d2cbab771814bb0a59d12a0eef999cca9bac10b279229b62b68e6
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>recompoñer</title> </head> <body> </body> </html><!DOCTYPE html> <html > <head> <meta charset="UTF-8"> <title>reimpoñer</title> <!--link rel="stylesheet" href="/www/css/table_style.css"--> <!--STYLE --> <style>@import u...
HTML
Data/Recompoñer.html
lorientado/XimnasioDosVerbos
mit
19,150
566
codeparrot/github-code
cfff6a5c1fdadfdbae65fdfd381b5b01643822979b3bbfffca3139ea3deb13fc
/* * Populate DB with sample data on server start * to disable, edit config/environment/index.js, and set `seedDB: false` */ 'use strict'; var mongoose = require('mongoose'); var ObjectId = mongoose.Schema.Types.ObjectId; var env = process.env.NODE_ENV || 'development'; var User = require('../api/user/user.model'...
JavaScript
server/config/seed.js
AVEAutomation/vendor-app
mit
5,789
218
codeparrot/github-code
cfe369964852b73244807b165019b1527172acdf3772ec01a8a69358dfeda043
from db_utils import deleteLinksByHost from db_utils import deleteHost from db_utils import addNewHost from db_utils import getAllHosts from error_message import showErrorPage from error_message import ErrorMessages import utils import webapp2 from google.appengine.api import users from google.appengine.ext import ndb...
Python
src/admin_views.py
cloud-io/CloudUp
mit
2,370
89
codeparrot/github-code
314877e8e444c659f7ae8ef0b20ebed2f1905b2fcd485a4ffc1e114ff63f5f1b
/* global describe, test, expect, jest */ import React from "react"; import { mount } from "enzyme"; import Form from "../Form"; describe("HOC (WithWrapper)", () => { test("[handleOnKeyup] should reset the error state", () => { const onKeyUp = jest.fn(); const comp = mount( <Form.Input onChange={spy} v...
JavaScript
src/components/Form/_WithWrapper.test.js
tutti-ch/react-styleguide
mit
2,696
83
codeparrot/github-code
e4ef4bac716689017b205de74d7dfb1ef36586e29c6e39cdfcdb343c953c7b3e
using Accord.Neuro; using Accord.Neuro.Learning; using Accord.Neuro.Networks; using HtmlAgilityPack; using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Threading; using System.Threading.Tasks; namespace MsFest2016 { ...
C#
2016/MsFest/Demo2/Program.cs
dajbych/samples
mit
3,449
84
codeparrot/github-code
74046f0b95ac0be70f4fc10383fd7245f18154dcc4203eaf07e341b3f2ee2ff6
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script src="http://ajax.googleapis.com/ajax/libs...
HTML
contents/fonts/karla-bold-demo.html
maps-on-blackboard/maps-on-blackboard-wintersmith
mit
34,119
553
codeparrot/github-code
9fbed20668998c40acd54d29fc2ee379c4b30d2ef924378e3983c93b4ca2b1f7
/* Abraham Yuen 1H38 Quiz 10 4/9/2013 */ /* Problem 1 public int sum(int a[]) { return sum(a, 0); } public int sum(int a[], int index) { if (index > a.length - 1) { return 0; } else { return a[index] + sum(a, index + 1); } } /* Problem 2 The base case is when the counter index is larger than the length ...
Java
prog-fund-java-COP3502/lab-quizzes/Quiz10.java
atthehotcorner/coursework
mit
1,428
70
codeparrot/github-code
dd6faa7e8891e396a84dec4b3e87abc2266aa2435a6af6c8d4a59ac298c3848f
/* global require, describe, it */ 'use strict'; // MODULES // var // Expectation library: chai = require( 'chai' ), // Matrix data structure: matrix = require( 'dstructs-matrix' ), // Validate a value is NaN: isnan = require( 'validate.io-nan' ), // Cast typed arrays to a different data type cast = require...
JavaScript
test/test.js
compute-io/ceil
mit
7,622
424
codeparrot/github-code
768f62ca85c4d1f2ae79359935d3d0a2c34be780e9d8d9b285f995a955be964f
# Joey Velez-Ginorio # Gridworld Implementation # --------------------------------- from mdp import MDP from grid import Grid from scipy.stats import uniform from scipy.stats import beta from scipy.stats import expon import numpy as np import random import pyprind import matplotlib.pyplot as plt class GridWorld(MDP):...
Python
model_src/grid_world.py
joeyginorio/Action-Understanding-with-Rational-Rules
mit
9,591
421
codeparrot/github-code
eb3914771f04f9db7bfef302a3b1b826cbc268385f48cca0eceb92f24784f322
#pragma once class cMapController : public common::cObservable2 ,public common::cSingleton<cMapController> { public: cMapController(void); ~cMapController(void); bool CreateDefaultTerrain(); bool LoadTRNFile(const string &fileName); bool LoadHeightMap(const string &fileName); bool LoadHeightMapTextur...
C
Src/Tool/MapTool/MapController.h
sgajaejung/Game
mit
1,489
47
codeparrot/github-code
40a69a875f5d9db7459463baa23a0b06555e2251e7234121e9a2258e8a6a15a4
<?php namespace Aalberts\Filters\ParameterCounters\Product; use Aalberts\Filters\ParameterFilters\Product\SolutionParameter; use Czim\Filter\Contracts\ParameterFilterInterface; class SolutionCounter extends AbstractProductCounter { /** * Returns the countable key in the product filter. * * @return...
PHP
src/Filters/ParameterCounters/Product/SolutionCounter.php
czim/aalberts-pxlcms
mit
1,056
49
codeparrot/github-code
c2d789f38d0e9444716cc952d55469aa108f6ac5b1a33ab99d4f483c54838383
/* Copyright (C) 2007-2011 Gluu (http://ox.gluu.org/doku.php?id=oxd:mod_ox) * * 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 the Software without * restriction, including without limitation the rights to...
C
src/opk_exception.h
GluuFederation/mod_ox
mit
9,726
385
codeparrot/github-code
a8aea279ff00f3c5394874ed305b87252f54e788dce505f240f01e1bc0470319
#include "length.h" #include "defaultunit.h" #include <QReadWriteLock> #include <QReadLocker> namespace dewalls { Length::Length() : UnitType<Length>("length") { _meters = new DefaultUnit<Length>("m", this, 1.0L, 1.0L); _centimeters = new DefaultUnit<Length>("cm", this, 0.001L, _meters); _...
C++
src/length.cpp
jlillest/dewalls
mit
962
38
codeparrot/github-code
54d30750c40d6b8cd30da89aee7e7ab19dd8e4036b736215c8b0802067a79e14
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package Goliath.Graphics.Constants; /** * * @author kenmchugh */ public final class Position extends Goliath.DynamicEnum { protected Position(String tcValue) { super(tcValue); } private stat...
Java
src/Goliath/Graphics/Constants/Position.java
kmchugh/Goliath.Graphics
mit
2,636
109
codeparrot/github-code
cc3969c0999d46121cb53904e6aaacc6fb4fa6cf3869df18a241f641a3da7b4e
<?php declare(strict_types=1); /* * This file is part of the RollerworksSearch package. * * (c) Sebastiaan Stok <s.stok@rollerscapes.net> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Rollerworks\Component\Search\Elasticsearch; us...
PHP
lib/Elasticsearch/QueryConditionGenerator.php
rollerworks/search
mit
29,210
746
codeparrot/github-code
8a844c74ca2967e01447d8fae8e5b9c749ac1fe742bc6940ed20406c78b057a6
/* * file.js: Transport for outputting to a local log file * * (C) 2010 Charlie Robbins * MIT LICENCE * */ var events = require('events'), fs = require('fs'), path = require('path'), util = require('util'), colors = require('colors'), common = require('../common'), Transport = require('./...
JavaScript
lib/winston/transports/fileRotate.js
pphetra/winston
mit
10,116
377
codeparrot/github-code
66789e57dd7827f8f0e98fea0cc532eac4f82008f71e89af7f46e2865308923e
package com.exasol.adapter.dialects.athena; import static com.exasol.adapter.AdapterProperties.CATALOG_NAME_PROPERTY; import static com.exasol.adapter.AdapterProperties.SCHEMA_NAME_PROPERTY; import static com.exasol.adapter.capabilities.AggregateFunctionCapability.*; import static com.exasol.adapter.capabilities.Liter...
Java
src/main/java/com/exasol/adapter/dialects/athena/AthenaSqlDialect.java
EXASOL/virtual-schemas
mit
5,888
140
codeparrot/github-code
110f07ffc1c9230056cd130b387904e5ee7b53f3807c2f96f74e929c6112ce5e
/* JMG (Javascript Mini GUI) (c) Roberto Lopez <jmg.contact.box *at* gmail.com> The MIT License (MIT) 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 the Software without restriction, including...
JavaScript
lib/jmg.js
jmgweb/main
mit
31,588
1,209
codeparrot/github-code
29b76d587fc4f6974bcbf353e0d78dbcb38625cb204ccb04328af8f9b23b7f07
package com.example.leandro.appcar.control.rest; import com.example.leandro.appcar.model.Servico_OS; import org.json.JSONException; import org.json.JSONObject; import java.util.ArrayList; public class Servico_OSJSON { public static Servico_OS getServico_OSJSON(JSONObject object) { //instancia vetor de...
Java
app/src/main/java/com/example/leandro/appcar/control/rest/Servico_OSJSON.java
LeandroPinheiroo/AppCarMovel
mit
2,098
65
codeparrot/github-code
ac41da3d36ffb8b07110e186219feacbdd4c6c4aa8702349409ddec05fc764a5
/////////////////////////////////////////////////////////////////////////////// // SOFTWARE COPYRIGHT NOTICE AGREEMENT // // This software and its documentation are copyright (2015) by the // // Broad Institute. All rights are reserved. This software is supplied // ...
C++
src/paths/long/large/ImprovePath.cc
bayolau/discovardenovo
mit
28,241
662
codeparrot/github-code
33fe8fa1bd7c659fc15ca1dccd1d872946bb0a0ef6dbc8eca761290d7141e6a8
 <head> <title>Moodlet Generator - Space Station 13 - /tg/station branch</title> </head> <script type='text/javascript'> function dostuff(folder, id){ //document.write("T"); //document.write(""+folder+"/"+select.value); var select = document.getElementById(id); var preview = document.getElementById("proppr...
PHP
Image Generators/moodlet/index.php
balohmatevz/SS13Tools
mit
9,646
331
codeparrot/github-code
26dc768be79fdff8fb85d5bb9af6b22b56924a577c9d0b7f992342deae0ac918
const express = require('express') const path = require('path') const logger = require('morgan') const cookieParser = require('cookie-parser') const bodyParser = require('body-parser') const index = require('./routes/index') const app = express() // view engine setup app.engine('html', require('ejs').renderFile) ap...
JavaScript
app.js
jonishaso/httpApi
mit
1,157
44
codeparrot/github-code
f52fdab733ede489af424d7b3539246025c89dfde33285a3ed81e48e162ad72b
package org.asciicerebrum.neocortexengine.domain.core.particles; /** * * @author species8472 */ public class EventFact extends StringParticle { /** * Creates an instance from a string. * * @param eventFactInput the string to create the instance from. */ public EventFact(final String eve...
Java
src/main/java/org/asciicerebrum/neocortexengine/domain/core/particles/EventFact.java
asciiCerebrum/neocortexEngine
mit
729
35
codeparrot/github-code
f9a7dffbf3c57608f938910ba28157fa421c31642c03c1e4cf1b9460e5d51fc6
use std::fmt; use std::rc::Rc; use quire::validate as V; use serde::de::{self, Deserializer, Deserialize, EnumAccess, VariantAccess, Visitor}; use serde::ser::{Serializer, Serialize}; use crate::build_step::{Step, BuildStep}; use crate::builder::commands as cmd; macro_rules! define_commands { ($($module: ident :...
Rust
src/config/builders.rs
tailhook/vagga
mit
4,302
156
codeparrot/github-code
11b4e9d3d4913f0cc66a76153be5c44cefc994d6c4009065bf1bb1677559a98a
package com.theyavikteam.monsterboard.model.vo; import android.content.Context; import android.widget.TableRow; import android.widget.TextView; import com.theyavikteam.monsterboard.R; public class CellVO { private TextView textView; private TableRow tableRow; private int cellIndex; public CellVO(Co...
Java
app/src/main/java/com/theyavikteam/monsterboard/model/vo/CellVO.java
theyavikteam/MonsterBoard
mit
877
38
codeparrot/github-code
8bb8fdd44de4a0db274d94126e4dfc5847988047d6178db6e8cbe6e955006c94
// AFHTTPRequestOperation.h // // Copyright (c) 2011 Gowalla (http://gowalla.com/) // // 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 the Software without restriction, including without limitation the...
C
OCCommunicationLib/OCCommunicationLib/ExternalLibs/AFNetworking/AFHTTPRequestOperation.h
fresskarma/ios-library
mit
6,434
138
codeparrot/github-code
9de63a9df3c989f8e2a213abbb4ced845d9958de861eaf55f1422216a157bd70
#include <stdio.h> #include <time.h> // 159.335 assignment 3 // This is a working memory allocation program // but it is slow and uses lots of memory. // Martin Johnson 2000-2014 // the following is fixed by the OS // you are not allowed to change it #define PAGESIZE 4096 // you may want to change the following lines...
C
a3-2015.c
Jinpeiqi/Buddy-system
mit
4,642
164
codeparrot/github-code
b7dc322fb235af9031bf7f8e85d4fd324c10bf69ad8fdf1df7e968a4da144c29
require 'uri' require 'watchmob/page' module Watchmob class HeurekaSearchPage < Page def self.search(phrase) encoded_phrase = URI.encode_www_form_component(phrase) new("http://mobilni-telefony.heureka.cz/f:q:#{encoded_phrase}", phrase) end def initialize(uri, phrase = nil) super(uri) ...
Ruby
lib/watchmob/heureka_search_page.rb
honzasp/watchmob
mit
777
32
codeparrot/github-code
e16ce27b45bb9c8a86fb6cccb2417be2e3a2b4ffffa024b2f40eba5a17932e41
<?php namespace Resque\Failure; use Psr\Log\LoggerInterface; use Resque\Failure_Interface; /** * LoggerInterface backend for "storing" failed Resque jobs. * * @package Resque/Failure * @license http://www.opensource.org/licenses/mit-license.php */ class Log implements Failure_Interface { /** @var LoggerInter...
PHP
lib/Failure/Log.php
dmvorg/php-resque
mit
1,739
57
codeparrot/github-code
82c44cb3d1d3494dbf47b411fd50525fdc8d2b26af375349a86f4054f4b2278b
// BLASTX IMPLEMENTIERUNG VON ANNKATRIN BRESSIN UND MARJAN FAIZI // SOFTWAREPROJEKT VOM 2.4. - 29.5.2012 // VERSION VOM 21.APRIL.2013 #include "own_functions.h" // void FIND_MATCHES_FOR_ALL(StringSet<String<Dna5>> & Reads,StringSet<String<char>> & ReadID,StrSetSA & Proteine, StringSet<String<char>> & Protein...
C++
raw/pmsb13/pmsb13-data-20130530/sources/fjt74l9mlcqisdus/2013-04-28T22-39-48.328+0200/sandbox/my_sandbox/apps/blastX/finder.cpp
bkahlert/seqan-research
mit
1,646
53
codeparrot/github-code
7777ddbe66dc13dff4b992fb79daa94d9cae4ab628e9a441e6b8174029f59497
package org.rudirect.android.fragment; import android.Manifest; import android.app.Fragment; import android.content.Intent; import android.content.IntentSender; import android.content.pm.PackageManager; import android.location.Location; import android.os.Bundle; import android.os.Parcelable; import android.support.ann...
Java
app/src/main/java/org/rudirect/android/fragment/DirectionsFragment.java
churichard/ru-direct
mit
10,920
267
codeparrot/github-code
7391bdf9f7d2d92849635efe686cdd9da542f2d9d39b1763e279933d617299e4
package com.github.sbellus.fitnesse.graphviz.graphics; import java.util.regex.Matcher; import java.util.regex.Pattern; import fitnesse.wikitext.parser.Symbol; public class GraphicsProperties { private Integer width; private Integer height; private String caption; private String alignment; private...
Java
src/main/java/com/github/sbellus/fitnesse/graphviz/graphics/GraphicsProperties.java
sbellus/fitnesse-graphviz-plugin
mit
3,740
121
codeparrot/github-code
0b30f69aece0d60bc733d95a8813d2ffa84840e65545d3aea84ce1be46ed7f9f
""" Created on Thu May 05 20:02:00 2011 @author: Tillsten """ import numpy as np from scipy.linalg import qr eps = np.finfo(float).eps def mls(B, v, umin, umax, Wv=None, Wu=None, ud=None, u=None, W=None, imax=100): """ mls - Control allocation using minimal least squares. [u,W,iter] = mls_alloc(...
Python
modest/pymls/init.py
treverhines/ModEst
mit
7,780
262
codeparrot/github-code
e476053dcb35a5f4acca0db9f1957dfaa358a63af0c33ea1d7cd2981c30f82d2
package de.barzahlen.api.online.integration.notifications; import de.barzahlen.api.online.BarzahlenNotificationHandler; import de.barzahlen.api.online.Configuration; import de.barzahlen.api.online.notifications.TransactionExpiredNotificationHandler; import de.barzahlen.http.requests.DummyRequest; import de.barzahlen.h...
Java
src/test/java/de/barzahlen/api/online/integration/notifications/TransactionExpiredTest.java
Barzahlen/Barzahlen-Java
mit
3,626
70
codeparrot/github-code
bd08ff5c595c44371d79dc1a326d735a0cdba98dbb00c43176712ee59872f6a7
package ru.samsu.mj.board; /** * Represents a bottom-left-cornered board in both <b>A<sub>n-1</sub></b> and <b>C<sub>n</sub></b> (where <b>n</b> is even). * Encapsulates a boolean array of two dimensions which <b>[i][j]</b><sup>th</sup> element is <b>true</b> iff there is a rook in the board in <b>i</b><sup>th</sup>...
Java
src/main/java/ru/samsu/mj/board/BoardMatrix.java
masterj63/Rooks3
mit
1,963
67
codeparrot/github-code
91f5b94ec2a2060b74a3bfd3c75ead8815b207f7697030a7c8499182042896c3
using System; using System.Collections.Generic; using System.Text; namespace RedConn { public class RemoteValueList { private List<RemoteValue> items = new List<RemoteValue>(); public RemoteValue Get(int index) { return items[index]; } public void Add(Remo...
C#
RedConn/RemoteValueList.cs
redeqn/RedConn
mit
676
37
codeparrot/github-code
4612ab9e38e136d59982358391b5b71b62683785560774fa288bcf0930b1c35a
'use strict'; // ============================== // ABSTRACT PC BUILDER // ============================== var Workforce = function () { if (this.constructor === Workforce) { throw new Error("You cannot instantiate an abstract class!"); } }; Workforce.prototype.assemblePC = function () { throw new ...
JavaScript
GoF/classic/Creational/Builder/ECMAScript/ES5/API/Workforce.js
Badacadabra/PatternifyJS
mit
1,214
46
codeparrot/github-code
b6da0873755348e87f43ca1b1fa12b94d8e9697e5038b89992e31082a52ab967
'use strict'; const MongoClient = require('mongodb').MongoClient; module.exports = class Events { constructor() { this.database = null; this.collections = {}; } getDatabase(callback) { if (this.database) { callback(this.database); } else { MongoClient.connect('mongodb://writer:write...
JavaScript
server/database.js
Arkinsaal/tracks
mit
1,276
53
codeparrot/github-code
2d3074b8246dad2bace32c2231eaa4efa613a321a15051d7bb0f4ab7fa8ba18d
<?php /** *## TbButtonColumn class file. * * @author Christoffer Niska <ChristofferNiska@gmail.com> * @copyright Copyright &copy; Christoffer Niska 2011- * @license [New BSD License](http://www.opensource.org/licenses/bsd-license.php) * @since 0.9.8 */ Yii::import('zii.widgets.grid.CButtonColumn'); /** *## ...
PHP
protected/extensions/booster/widgets/TbButtonColumn.php
lesha724/votes
mit
3,470
113
codeparrot/github-code
86d3d77ab284f7245028dde22a76f860fdf4a0ba357a355f2ea32b244037b84f
import * as $ from './utilities'; export default { start(event) { const self = this; const e = $.getEvent(event); const target = e.target; if (target.tagName.toLowerCase() === 'img') { self.target = target; self.show(); } }, click(event) { const self = this; const e = $....
JavaScript
src/js/handlers.js
rlugojr/viewerjs
mit
8,195
393
codeparrot/github-code
9c7e7259b48a6efddd66c81756d469433eb1ce2c39136450af5ac7b4524636d0
/* * image_pointcloud_nodelet.h * * Created on: 11.08.2014 * Author: fnolden */ #ifndef SYNC_REMAP_NODELET_H_ #define SYNC_REMAP_NODELET_H_ #include <ros/ros.h> #include <sstream> #include <string.h> #include <map> #include <iostream> #include <functional> #include <image_transport/image_transport.h> #inc...
C
include/image_cloud/sync/remap.h
Flos/ros-image_cloud
mit
2,268
80
codeparrot/github-code
c62f411a7c02ea369f3cfaf2131211e47d5a413fa564a280a54f8f80d3d5fd8b
var playersController = exports; exports.constructor = function playersController(){}; var _ = require('lodash'); var players = require('../sonos/players'); playersController.list = function(req, res, next) { players.client.find(function(err, players) { if (err) { return next(err); } res.send(pl...
JavaScript
lib/controllers/players.js
jeffandersen/sonos-rest-api
mit
2,043
91
codeparrot/github-code
ef761a7733f3fec8103a2651ec6962e6fa1662362c322cbe97316f987e4f2bdf
#include "GlobalDef.h" #include "ADSType.h" #include "Input.h" #include "Periodic.h" #include "Led.h" #include "EEPROM.h" #include "ProgrammedModule.h" #include "Delay.h" #include "CAN.h" #include "BMW.h" #include "BMW_Database.h" #include "Tach.h" #include "Relay.h" #include "CANPack1.h" #include "J1850....
C
ele/hdar-code/example/New folder/Bypass/App/BMW/CAN/BMW.c
Darkstarxt/HDAR
mit
21,156
1,047
codeparrot/github-code
bf42dacd21f2649cdbdb76bb5d0d396a5b9b0fb099a682f1e0f8fe2a27e2fdd6
package gl8080.web.pessimistic; import gl8080.logic.pessimistic.Memo; import java.io.Serializable; public class MemoForm implements Serializable { private Long id; private String title; private String content; public static MemoForm valueOf(Memo memo) { MemoForm form = new Memo...
Java
src/main/java/gl8080/web/pessimistic/MemoForm.java
opengl-8080/concurrent-update-samples
mit
1,336
62
codeparrot/github-code
3b49e1af3fc879bbf9e090ed3ff2d6384f4fb3a1b5dbdf5183092d420718e0ea
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-licens...
C
src/hash.h
presstab/PIVX
mit
13,680
361
codeparrot/github-code
2960837555974e0f62f4fa8b2c9bd1e74e5d93eb761a3f9a4aedd18ead941b80
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> <meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"> <meta name=viewport content="width=device-width, initial-scale=1"> <title>Big Complaints of LinkedIn Users &#8211; Bor...
HTML
_site/linked-in/index.html
borker-co/borker-co.github.io
mit
15,391
290
codeparrot/github-code
00a23a66b4f4a6db200b77daa684ded7ebbe650f51fe381219e30c401be07787
using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Imaging; using System.Drawing.Text; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using SharpShell.SharpIconHandler; using System.Drawing.IconLib; using System.Collections; using System.Dra...
C#
IconRenderer.cs
jorticus/viscons-shell
mit
11,048
308
codeparrot/github-code
d4836486f1efb22deb8cf72583aafaa5f3b5a05d1cc1d025ea7bbcb72a7ba4e9
#pragma once #include <reflectionzeug/base/template_helpers.h> #include <reflectionzeug/property/PropertySignedIntegral.h> #include <reflectionzeug/property/PropertyUnsignedIntegral.h> #include <reflectionzeug/property/PropertyFloatingPoint.h> #include <reflectionzeug/property/PropertyBool.h> #include <reflectionzeu...
C
source/reflectionzeug/include/reflectionzeug/property/Property.h
simonkrogmann/libzeug
mit
5,027
221
codeparrot/github-code
5d31cd925d5c37c38d8a1fa256a18b7f6492f53da5f27aadf3a1315f98e2d7c7
# -*- coding: utf-8 -*- r""" # .---. .----------- # / \ __ / ------ # / / \( )/ ----- (`-') _ _(`-') <-. (`-')_ # ////// '\/ ` --- ( OO).-/( (OO ).-> .-> \( OO) ) .-> # //// / // : : --- (,------. \ .'_ (`-')----. ,...
Python
fileprocess/mergefile/filebuf.py
edonyM/toolkitem
mit
5,258
149
codeparrot/github-code
683e9fbc55afa2633ba69ea02f6b42cd35a2092f890de317b8d6ed14328262fd
from django.db.models import fields, ForeignKey, ManyToOneRel, OneToOneRel from .obj_types import clss from .search_schema import schema as search_schema def build_search_filters(cls): """Return list of dicts of options for a QueryBuilder filter. See https://querybuilder.js.org/#filters for details. ""...
Python
openprescribing/dmd/build_search_filters.py
ebmdatalab/openprescribing
mit
3,765
126
codeparrot/github-code
b30d1b5482e5018ff18e060bb159c9a6d3572cdda992f0aa66ce122757154ddf
// The solution of the problem was written by Izaron // Date: 16:38:59 25 Jul 2017 // Execution time: 1.669 // Please do not copy-paste the solution. // Try to understand what is happening here and write your own. #include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef long double ld; ty...
C++
Timus Online Judge/Volume 3/1249. Ancient Necropolis.cpp
Izaron/Competitive
mit
1,682
61
codeparrot/github-code
0c4b11a5b7d6111ea2ced2a910724889c360d4019a88b3ebda79a354c235f009
/** * This program and the accompanying materials * are made available under the terms of the License * which accompanies this distribution in the file LICENSE.txt */ package com.archimatetool.editor.diagram.commands; import org.eclipse.draw2d.geometry.Dimension; import com.archimatetool.model.IArchimate...
Java
com.archimatetool.editor/src/com/archimatetool/editor/diagram/commands/CreateBendpointCommand.java
archimatetool/archi
mit
1,421
52
codeparrot/github-code
a40624135577b3b126e78c4b50fc4d474effdd617d0c3dc66197249a55f01b36
namespace LaptopListingSystem.ViewModels.Account { using System.ComponentModel.DataAnnotations; public class ManageUserViewModel { [Required(AllowEmptyStrings = false, ErrorMessage = "Please enter password...")] [DataType(DataType.Password)] [StringLength(GlobalConstants.PasswordMa...
C#
ASP.NET MVC Projects/ExamPreparation/LaptopListingSystem/LaptopListingSystem/ViewModels/Account/ManageUserViewModel.cs
vladislav-karamfilov/TelerikAcademy
mit
1,680
36
codeparrot/github-code
aefa315fee8affaa23fd211fac826501d2ac916878764e78e11f008f135cf0b7
package ee.tuleva.onboarding.fund; import static java.util.stream.Collectors.toList; import static java.util.stream.StreamSupport.stream; import ee.tuleva.onboarding.fund.response.FundResponse; import ee.tuleva.onboarding.fund.statistics.PensionFundStatistics; import ee.tuleva.onboarding.fund.statistics.PensionFundSt...
Java
src/main/java/ee/tuleva/onboarding/fund/FundService.java
TulevaEE/onboarding-service
mit
1,603
46
codeparrot/github-code
206ad9f971b78255bcfa657e84d1741c526a2fd0b3b4e886fab0c2102dcbb1c0
# -*- coding: utf-8 -*- """VGG16 model for Keras. # Reference - [Very Deep Convolutional Networks for Large-Scale Image Recognition](https://arxiv.org/abs/1409.1556) """ from __future__ import print_function from __future__ import absolute_import import warnings from keras.models import Model from keras.layers imp...
Python
vgg16.py
cosmos342/VisionClassifier
mit
8,410
181
codeparrot/github-code
2149762f67e00c9953dbc5e8ede397d12c14ff19c3e62a24374fbf8dc7ec65af
'use strict'; var url = require('url'); var zlib = require('zlib'); var _ = require('./helpers'); module.exports = function(options, callback){ var callbackDone = false, httpProtocol = options.url.indexOf('https') === 0 ? 'https' : 'http', requestData = url.parse(options.url), method = (options....
JavaScript
src/index.js
matteofigus/minimal-request
mit
2,390
97
codeparrot/github-code
3b9c48343541f4295cf27871a73cf1c2afcca7301ff337aa9bbfd937dca6d35b
package net.spy.memcached; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.SortedMap; import java.util.TreeMap; import net.spy.memcached.compat.SpyObject; import net.spy.memcached.ketama.DefaultKetamaNodeLocatorConfigura...
Java
src/main/java/net/spy/memcached/KetamaNodeLocator.java
ciaranj/java-memcached-client
mit
4,658
172
codeparrot/github-code
0b9d1e6ed97c0377954d856f7faa83fc6cc6a44fdbd82c8dbaaeb27201f98a22
<!DOCTYPE html > <html> <head> <script src="../libraries/RGraph.common.core.js" ></script> <script src="../libraries/RGraph.common.dynamic.js" ></script> <script src="../libraries/RGraph.common.key.js" ></script> <script src="../libraries/RGraph.drawing.rect.js" ></script> <script src="../libraries/...
HTML
IASS/IASS_BASIC/IASS_Server/html/RGraph/demos/bar-interactive-key.html
LinkItONEDevGroup/LASS
mit
4,055
114
codeparrot/github-code
37515665473d3e7399e8ab87eee7a56e4731674757844c0a83c3210f3b1dac59
#!/usr/bin/env python """ othello.py Humberto Henrique Campos Pinheiro Game initialization and main loop """ import pygame import ui import player import board from config import BLACK, WHITE, HUMAN import log logger = log.setup_custom_logger('root') # py2exe workaround # import sys # import os # sys.stdout = open(...
Python
othello.py
humbhenri/pyOthello
mit
2,473
89
codeparrot/github-code
2a516dba8043d2ae2d297719ef939cb9055a439d39e3c5e47b280bfafae2559d
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Android.App; using Android.Content; using Android.OS; using Android.Runtime; using Android.Views; using Android.Widget; namespace Rybird.Framework { public class ObservableAdapterItem<T> : IDisposable { ...
C#
Android/Framework/Adapters/ObservableAdapterItem.cs
ryanhorath/Rybird.Framework
mit
1,523
61
codeparrot/github-code
2a32fef33b9a2b6ab1b9a553dfed117aa61ae0cbb3fa7fd6934e7ee7a5413738
handlers.getRegister = function (ctx) { ctx.loadPartials({ header: '../views/common/header.hbs', footer: '../views/common/footer.hbs' }).then(function () { this.partial('../views/user/register.hbs'); }); } handlers.getLogin = function (ctx) { ctx.loadPartials({ header: '../views/common/header.h...
JavaScript
10-JS Applications/17_EXAM/Exam/scripts/handlers/user-handler.js
MrPIvanov/SoftUni
mit
2,097
81
codeparrot/github-code
e172548721350fe9da4713c0579556e4ce0f5fc3b42d748bff86a3de7f898e78
import React from "react"; import Griddle from 'griddle-react'; import styles from "./style.css"; import restCalls from '../../utils/restCalls'; import { browserHistory } from 'react-router'; import AddNewCaseModal from '../../common/components/CaseModal'; import ViewCaseModal from '../../common/components/ViewCaseModa...
JavaScript
src/pages/home/page.js
ChrisWphoto/react-ccms
mit
11,330
444
codeparrot/github-code
223c09c2ae8438438c2f2546a447d17494fc67de8a934bfc23110542f2e49b3b
using MoG.Domain.Models; using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace MoG.Code { public class SecurityService { private delegate bool IsPermissionBaseGranted(Object context, UserProfileInfo user); private Dictionary<MoGPermission, IsPermission...
C#
MoG/Code/SecurityService.cs
jrocket/MOG
mit
1,177
44
codeparrot/github-code
920918354bca9858927e0967429b212b6a0dbc707b12f7fe76791857835a24b5
<!-- Copyright 2005-2008 Adobe Systems Incorporated Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt or a copy at http://stlab.adobe.com/licenses.html) Some files are held under additional license. Please see "http://stlab.adobe.com/licenses.html" for more information. -->...
HTML
documentation/html/classadobe_1_1notify__on__write.html
brycelelbach/asl
mit
22,325
397
codeparrot/github-code
0eefdc0639bfbdd5146e512941b3026c1fe1dd8f00558e30640f50581a7aa573
/*! * X-UniTMX: A tiled map editor file importer for Unity3d * https://bitbucket.org/Chaoseiro/x-unitmx * * Copyright 2013-2014 Guilherme "Chaoseiro" Maia * 2014 Mario Madureira Fontes */ using System; using System.Collections.Generic; using System.IO; using UnityEngine; using System.Collec...
C#
Assets/X-UniTMX/Code/TiledMapComponent.cs
Bware-studios/ld37
mit
5,026
164
codeparrot/github-code
f36d65b88620a43f18d2376eff97e6cede65d47316b117aa928fba4721f9f9b1
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import io import string import random # Simple recursive descent parser for dice rolls, e.g. '3d6+1d8+4'. # # roll := die {('+' | '-') die} ('+' | '-') modifier # di...
Python
imp/dice.py
jcarreiro/jmc-python
mit
1,405
69
codeparrot/github-code
a101d4bdc42466dedb999f21ed79a86980cd7728eb843a6db4d2f8e0570c8498
/** * The MIT License * Copyright (c) 2003 David G Jones * * 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 the Software without restriction, including without limitation the rights * to use, copy, ...
Java
src/main/java/info/dgjones/abora/white/collection/tables/ActualIntegerTable.java
jonesd/abora-white
mit
34,424
1,130
codeparrot/github-code
42e0a7a56e9667c7edcd431fcd69111361d5ce153eeb8743064b8b5fd96a22de
<head> <style> body { padding: 0; margin: 0; } div { position: absolute; z-index: 100; padding: 10px 0 0 10px; } </style> </head> <body> <div> <button id="nodes">Hide/Show Nodes</button> <button id="links">Hide/Show Links</button> ...
HTML
examples/circularNetwork.html
ekeneijeoma/ijeoma.js
mit
5,315
188
codeparrot/github-code
0e550e406d19ac3a3e16e0c3aec75c22771d2a49329f02770c99054f66bccb17
{% extends "base/base.html" %} {% load static from staticfiles %} {% block title %}登录{% endblock %} {% block css %} <link href="{% static 'css/login.css' %}" rel="stylesheet"> {% endblock%} {% block body %} {% if messages %} <ul class="messages"> {% for message in messages %} <li{% if message.tags %} cl...
HTML
src/templates/public/login.html
micfan/dinner
mit
1,435
38
codeparrot/github-code
a3df9819ceb311335b5a8077fe1a6e984db40354b1b4b5cc62b86254287566e2
<?php namespace Core; use App\Models\User; class Sorter { public $sort; public $join; public $orderBy; public function __construct() { if (isset($_GET['sort'])){ $this->sort = $_GET['sort']; $this->prepare(); } }/**/ public functio...
PHP
core/Sorter.php
akulyk/simple-mvs
mit
1,103
51
codeparrot/github-code
a1f66efb40011a79ea7575dff227d6fcc37bca2a057027659ec9bb5d0259b229
from __future__ import absolute_import, unicode_literals from copy import copy import json from peewee import Model, CharField, ForeignKeyField, IntegerField from utils.modules import BaseModule, modules from utils.modules.api import api as pmb_api from utils import db class Action(Model): class Meta: ...
Python
pimpmybot/utils/commands.py
Gagaro/PimpMyBot
mit
1,789
77
codeparrot/github-code
a84b95e9ac0e08e98377254de58ca240bfb3da1826a3bc7b733b2ce46c6fe3b4
#include <log.h> #include <lib/tree.h> #include <beryllium/device.h> #include <stdlib.h> #include <string.h> #include <stdio.h> #include <mutex.h> tree_t * device_tree = NULL; device_t * dev_root = NULL; device_t * kernel_ns = NULL; void device_tree_enumerate(tree_node_t * node, size_t height) { if (!node) r...
C
kernel/device.c
Lionel07/Beryllium2
mit
5,105
220
codeparrot/github-code
6b139fab15064a5174a4ad3a7ce4723d79261c94e4bf421417cb713cc9953944
// Copyright (c) 2011-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_QT_WALLETVIEW_H #define BITCOIN_QT_WALLETVIEW_H #include "amount.h" #include "masternodelist.h" #include <Q...
C
src/qt/walletview.h
ivansib/sibcoin
mit
5,265
161
codeparrot/github-code
5b6bb8d868b5e32e5e1e662579e37b3027207734bc0be9ddf2f333c4574a9306
<?php /* SonataCoreBundle:FlashMessage:render.html.twig */ class __TwigTemplate_3c24bc30db58e14d71b0038e501966304d7f8ed751bd1b9a8380fa115953eafc extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks...
PHP
app/cache/dev/twig/3c/24/bc30db58e14d71b0038e501966304d7f8ed751bd1b9a8380fa115953eafc.php
piotrek005/Library
mit
2,715
66
codeparrot/github-code