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
d37d3b2006b2801841f599fe7d6f798086fc7cf8245fb0203abeda93c07f29dd
using UnityEngine; using System.Collections; using System.Reflection; using UnityEditor; public abstract class OverrideEditor : Editor { readonly MethodInfo methodInfo = typeof(Editor).GetMethod("OnHeaderGUI", BindingFlags.NonPublic | BindingFlags.Instance); private Editor m_BaseEditor; protected Editor ...
C#
SpriteAnimationClip/Assets/Editor/OverrideEditor.cs
anchan828/unite2015tokyo
mit
1,942
80
codeparrot/github-code
d6e4899bca6f00fdd8260c43568df35862a1b265b0f5e1433ad9e5f23524d3e4
#include "optionsdialog.h" #include "ui_optionsdialog.h" #include "bitcoinunits.h" #include "monitoreddatamapper.h" #include "netbase.h" #include "optionsmodel.h" #include <QDir> #include <QIntValidator> #include <QLocale> #include <QMessageBox> #include <QRegExp> #include <QRegExpValidator> OptionsDialog::OptionsDi...
C++
src/qt/optionsdialog.cpp
Orbitcoin/Orbitcoin-Old
mit
8,084
257
codeparrot/github-code
8372c5faa4e55f9880ed9ca89816d8b7fd2478967b23b94abd0fb2b13c62037e
<?php # ---------------------------------------- # Usetiful - Php / Mysql Class generator # https://github.com/alby981/usetiful # Copyright 2013, Alberto Belotti # # Licensed under the MIT license: # http://www.opensource.org/licenses/MIT # ---------------------------------------- define("TAB", " "); define("...
PHP
usetiful.php
alby981/usetiful
mit
42,191
932
codeparrot/github-code
a257ecf02c6c32b8991fd25ce90fc2d4e4fc652e07c5c2360b12a6303a894fc2
/** * gamehandler.js * This file includes the gamehandler service module of the eendragt application. * @author Marco Rieser * @version 22.0 */ angular.module('eendragt.engine.services.gamehandler', []) .factory('GameHandler', function (Player, $rootScope, $location, AI, $timeout, Sound, Config) { ret...
JavaScript
client/eendragt/engine/services/gamehandler.js
marcorieser/phonegap-eendragt
mit
5,536
150
codeparrot/github-code
60fc248b0398716457fdfb1c0fbcd034545be5b82bd30bad56bcf83006a21220
import * as React from "react"; import { HashFilteredList, FilteredListItem } from "./HashFilteredList"; import { EntityListItem } from './EntityListItem'; import { PackageInjectedProps, withPackage, RouteComponentProps, createRouterProps } from "./hoc"; import { packageFriendlyName, normalizePath, sortEntities, file...
TypeScript
web/src/components/PackageFile.tsx
StephenClearyApps/DotNetApis
mit
2,041
60
codeparrot/github-code
c5789bcb6ee0cd51e2bae2b6f5c5a3c84a9e54de1224daee08f27f8a3135fbae
package controllers import org.scalatestplus.play._ import play.api.test._ import play.api.test.Helpers.{contentAsString, _} import java.nio.charset.StandardCharsets import java.util.Base64 import org.scalatestplus.play.guice.GuiceOneAppPerTest import play.api.cache.CacheApi import play.api.inject._ import play.api....
Scala
test/controllers/ApplicationControllerSpec.scala
kristiankime/calc-tutor
mit
2,765
92
codeparrot/github-code
f49b3c994d114c692aa648385c11c3dc77f9fe0b5ac8c4c75e61725d2c6a19d9
package api import ( "encoding/json" "fmt" "io/ioutil" "net/http" ) // Response from the Neocities API type Response struct { Result string `json:"result"` ErrorType string `json:"error_type"` Message string `json:"message"` Info Info Body []byte } // Info contains the properties for a site t...
GO
api/response.go
peterhellberg/neocities
mit
1,113
54
codeparrot/github-code
549f2283b0c120080f99ef2d322d84f3e7cc6444defec93fd55336263820ff31
var React = require('react'); var assign = require('object-assign'); var NavLink = require('./navigation/NavLink'); var UserLoginWidget = require('./widgets/UserLoginWidget'); function NavBar(props, context) { React.Component.call(this, props, context); } NavBar.prototype = Object.create(React.Component.prototype);...
JavaScript
src/components/Navbar.react.js
LynxyssCZ/perseverance-guild-web
mit
2,108
80
codeparrot/github-code
b6ad9e3d3a2a61e35374298f2d96cb18745f7e2e2ebdd3e0e087fd37ccf0cfd5
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
Java
lib/lib_src/apache-tomcat-8.0.14-src/java/org/apache/el/util/ReflectionUtil.java
byronka/xenos
mit
17,027
500
codeparrot/github-code
9e3309fbd946ddc5c9ff7b146f10998620d948dd6a505574a69ab19705556aa8
// // MonoTests.System.Web.Services.Description.ServiceDescriptionCollectionTest.cs // // Author: // Erik LeBel <eriklebel@yahoo.ca> // // (C) 2003 Erik LeBel // using NUnit.Framework; using System; using System.Web.Services.Description; namespace MonoTests.System.Web.Services.Description { [TestFixture] public ...
C#
qca_designer/lib/ml-pnet-0.8.1/mcs-sources/class/System.Web.Services/Test/System.Web.Services.Description/ServiceDescriptionCollectionTest.cs
jjenki11/blaze-chem-rendering
mit
1,370
62
codeparrot/github-code
598217d9afd0f3c715a7bec82cec87fdb6c109b464ae98ae1aa7a6dd89fbfd8f
#!/usr/bin/env python #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-# # # Name: goodness_of_fit.py # # Author: Constantin Weisser (weisser@mit.edu) # # Purpose: This is the main file of the Dalitz hirarchy. It takes in two # data files and uses either classifier_eval (sciki...
Python
Dalitz/goodness_of_fit.py
weissercn/MLTools
mit
4,498
146
codeparrot/github-code
935a6d95cdf344cb06eeecbeebfd684b3124a102d17a245f560b095dcc151919
#include "postextractor.h" #include "ui_postextractor.h" #include <QFile> #include <QFileInfo> #include <QFileDialog> #include <QDir> #include <QString> #include <QGridLayout> #include <QHBoxLayout> #include <QPushButton> #include <QJsonDocument> #include <QJsonArray> #include <QJsonObject> #include <QJsonValue> #inclu...
C++
postextractor.cpp
baddwin/wp-post-extractor
mit
5,581
174
codeparrot/github-code
bec0e286d24e2522b261eead41142845841343bcd2aff2b68721f4a91c608b70
/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
Java
library/src/main/java/com/labo/kaji/swipeawaydialog/SwipeDismissTouchListener.java
kakajika/SwipeAwayDialog
mit
10,927
281
codeparrot/github-code
20978c0570c887640e9f72a42388888e676ca579a1f4a545ceface57de04ce5c
//Author: Michael Neises //Date Modified: May 6, 2016 //Purpose: to handle intermediate steps in a graphing calculator var input = ""; var notfunc = ""; var x = 10; //The evaluateThis function simply evaluates an expression, captured in the "screen" element. function evaluateThis(){ input = document.getElementById(...
JavaScript
Mapper.js
SLongofono/EECS-368-Javascript
mit
4,981
178
codeparrot/github-code
24ed23a5bfa1e3c036e3b90729920577983be6c27e6c9b8b3e1f640e57b9ba1c
<?php if(! defined("BASEPATH")) exit("no direct acces to script"); /** * ci_tweitter_oauth library for codeiginter * * * @package libraries * @author nwadiugwu @ebuoe chukwuebuka * @version tested with CI 2.0.2 * @based on twitterOauth by Abraham Williams */ class ci_twitter_callback extends CI_Controller...
PHP
controllers/ci_twitter_callback.php
ebuoe/CI_twitter_oauth
mit
1,197
66
codeparrot/github-code
b33eb37f60a9ff2a7965606e1daefd219bc50ec146b9ae137073958bb3351f46
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Runtime.Serialization; using TrackableEntities; using TrackableEntities.Client; using System.ComponentModel.DataAnnotations; namespace AIM.Web.Admin.Models.EntityModels { [JsonObject(IsReference = true)] [DataContract(IsReferen...
C#
AIM.Admin.Web/AIM/AIM.Web.Admin/Models/EntityModels/Store.cs
ChaseMarcum/N-Tiered-ASP.NET-MVC--ASP.NET-Web-API--and-Entity-Framework-application
mit
5,158
201
codeparrot/github-code
163a8e7da5aa8428962c1e46a751f9f41a12b2007f535e2a90c78a00ab4dcb8a
var MainMenu = function() { this.button_startGame = null; this.button_options = null; this.button_help = null; this.button_credits = null; this.button_exit = null; this.buttonWidth = 200; this.buttonHeight = 100; this.background = null; }; MainMenu.prototype = { init: function() { }, ...
JavaScript
app/states/main/MainMenu.js
MartinNilss/space_something
mit
2,127
99
codeparrot/github-code
344b24ca75c720952834a7433b3364ed4ba4a7d09657a2ef89a2c2d5fc6b2e3a
package com.haxademic.demo.hardware.leapmotion; import com.haxademic.core.app.P; import com.haxademic.core.app.PAppletHax; import com.haxademic.core.app.config.AppSettings; import com.haxademic.core.app.config.Config; import com.haxademic.core.debug.DebugView; import de.voidplus.leapmotion.Arm; import de.voidplus.lea...
Java
src/com/haxademic/demo/hardware/leapmotion/Demo_LeapMotion.java
cacheflowe/haxademic
mit
11,555
352
codeparrot/github-code
c06c196111208ff4b61ed4a8b6a9dbbd425c7059d30ef5c227a8d2e775efead9
<? include('Campos.inc.php'); include('Conexion.inc.php'); include('Paginas.inc.php'); include('Sesion.inc.php'); include('Usuarios.inc.php'); include('Utiles.inc.php'); $PaginaTitulo = "Eventos"; AdministradorControla(); Conectar(); $sql = "Select * from eventos"; if ($Tipo) { $where...
PHP
Web/Eventos.php
ajlopez/Todocontenidos
mit
3,760
153
codeparrot/github-code
d309f4890ac9046010b0de23f38b58f9e99c20f04278faf193768719dff244ba
'use strict'; var promise = require('bluebird'), fs = require('fs'), tmp = require('tmp'), PreviewHandle = require('./previewHandle'); var FileCamera = function() { this.nextPhoto = 0; this.preview = null; }; FileCamera.prototype.reset = function() { if (this.preview) { return this.preview.clos...
JavaScript
embedded/cameras/file_camera.js
jtrudell/photobooth
mit
1,561
61
codeparrot/github-code
11066f3c6523b576cfef40fd81f0019073238fe3062ccd1495f6fe6c1b67d7bb
import * as React from "react"; import { merge } from "../utils"; import responsive from "../Responsive"; import ActionIcon from "../ActionIcon"; import { FullSize } from "../Layouts"; const minimize = require("./icons/minimize.svg"); const maximize = require("./icons/maximize.svg"); interface Props { menuTitle: s...
TypeScript
src/PageWithSideMenu/index.tsx
gurunars/portfolio
mit
3,217
146
codeparrot/github-code
15dc75f9a1e315b6c9b66bb97e596588036b37324e7e8c3fe8203d60ed124090
package com.reactnativeapp; import android.support.multidex.MultiDexApplication; import com.airbnb.android.react.maps.MapsPackage; import com.facebook.react.ReactApplication; import com.reactnativecommunity.webview.RNCWebViewPackage; import com.reactnativecommunity.netinfo.NetInfoPackage; import com.reactnativecommun...
Java
android/app/src/main/java/com/reactnativeapp/MainApplication.java
mrtnzlml/native
mit
2,324
67
codeparrot/github-code
d3d25c5d7cbadb59e2a1bfabbec32c7c0aade2f99ba7488af3dc40ff6b5a517b
///<reference path='refs.ts'/> module TDev.RT.WinRT { export function MediaManagerInit() { MediaManagerWinRT.init(); } export module MediaManagerWinRT { var _url: string; export function init() { if (Browser.isGenStubs) return; if (Windows.Media....
TypeScript
libwinRT/MediaManager.ts
jptarqu/csharptouchdevelop
mit
1,657
51
codeparrot/github-code
0082702178fa71d3e1b4e67fb1db97f326565f012ef6b955892f0c5b3f79f180
"""Record video frames to disk, and mark the timestamps in database. Parameters: <duration_sec> [<config_file>] """ # Import standard modules. from multiprocessing import Process import datetime as dt import os import sys import time import logging # Import 3rd party modules. import cv2 import mpipe import coils #...
Python
src/py/record.py
vmlaker/wabbit
mit
3,650
116
codeparrot/github-code
bd04d08e7ea180fa43af5821171469b5f6e528524d3a54fd70488a0adf2afbcb
<?php /* * This file is part of Hifone. * * (c) Hifone.com <hifone@hifone.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Hifone\Pipes; use Closure; use Illuminate\Support\Facades\DB; class UseDatabaseTransaction...
PHP
app/Pipes/UseDatabaseTransactions.php
underdogg-forks/hifone
mit
664
34
codeparrot/github-code
21f866197978c18118909b1fa67465717f035d2264b033b3e3817e006fca75ea
<?php ################################################################### ## ## Slideshow Database Model ## Version: 1.01 ## ## Last Edit: ## Sept 7 2012 ## ## Description: ## Slideshow Database System ## ## Author: ## By Shawn Purdy ## ## Comments: ## ## #############################################################...
PHP
sharpedge/modules/slideshow_admin/models/slideshow_admin_model.php
srpurdy/SharpEdgeCMS
mit
3,010
138
codeparrot/github-code
32499ff8f95fb67e325281065dc38772e87980a8d7dcefff4ed11b234278a284
#ifndef my_grid_generator_h #define my_grid_generator_h #include <iostream> #include <cmath> #include <deal.II/grid/grid_tools.h> #include <deal.II/grid/tria.h> #include <deal.II/grid/tria_accessor.h> #include <deal.II/grid/tria_iterator.h> namespace MyGridGenerator { using namespace dealii; template<in...
C
source/my_grid_generator.h
alexanderzimmerman/nsb-pcm
mit
1,379
56
codeparrot/github-code
03fcfb6046824f842f538abf657672f2f32c9668f8f543164dc1860a376818b8
<script> new Vue({ el: '#menu-app', data: { menu: window.menu, extensions: window.extensions, extension: {} }, computed: { menuId: function () { return this.menu.id || ""; } }, methods: { ...
PHP
src/resources/views/administrator/navigation/menu/partials/script.blade.php
yajra/cms-core
mit
3,287
80
codeparrot/github-code
b0e4e0b275c1259e62d7f241e23519fd048defa4b7860a9fff988eb75fb6997b
use std::io::prelude::*; use std::fs::File; struct Registers { a: i32, b: i32, c: i32, d: i32 } impl Registers { fn new() -> Registers { Registers{a: 0, b: 0, c: 0, d: 0} } fn get(&self, name: &str) -> i32 { match name { "a" => self.a, "b" => self.b...
Rust
2016/day12/assembunny.rs
mvader/advent-of-code
mit
2,269
86
codeparrot/github-code
84b38bf15ee954a6759ccf8cc36f167e3c26471c045e8871b06f6880cfe4924d
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>canon-bdds: Not compatible</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css...
HTML
clean/Linux-x86_64-4.10.0-2.0.6/extra-dev/8.11.dev/canon-bdds/8.7.0.html
coq-bench/coq-bench.github.io
mit
7,109
166
codeparrot/github-code
2170da90be1ea94bdefcbefe2f9f33bba8d3be219fbc5a7bdaefbf2e69c2c582
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>exceptions: Not compatible</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css...
HTML
clean/Linux-x86_64-4.09.0-2.0.5/released/8.10.0/exceptions/8.5.0.html
coq-bench/coq-bench.github.io
mit
6,639
161
codeparrot/github-code
f333337df2c214c52c16d30ab0a1c6f8544f1d168ded4bf986ed084551eb289d
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>higman-s: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.cs...
HTML
clean/Linux-x86_64-4.09.1-2.0.6/released/8.13.1/higman-s/8.5.0.html
coq-bench/coq-bench.github.io
mit
7,019
169
codeparrot/github-code
da50137dda6d6b8844662de7ffa0c1a9132dd3ef25911d6da21fbb696a5e2f3a
var cbbo = cbbo || {}; (function () { "use strict"; cbbo.barChart = function module() { var chart = {}, margin = {top: 20, right: 20, bottom: 40, left: 10}, width = 500, height = 500, gap = 10, ease = "cubic", chartClass = "char...
JavaScript
web-app/js/fundamental.js
benralexander/cow
mit
8,798
306
codeparrot/github-code
236e4710553229fea75042569106e7a420ae6153187cc9509651f78b3c103a65
/* Copyright (c) 2004-2006 Jesper Svennevid, Daniel Collin 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, modify, merge...
C++
Shared/Graphics/Scene/Node.cpp
jsvennevid/tbl-4edges
mit
6,298
231
codeparrot/github-code
7100a67bf4dc2154257cbf362a7a666cb011e940e728d5ae4249a7067195f862
package com.github.mottox.taomp.concurrent.locks; import java.util.concurrent.TimeUnit; import org.junit.Assert; import org.junit.Test; /** * {@link TOLock}测试类。 * * @author Robin Wang */ public class TOLockTest { @Test(timeout = 10000) public void testLockAndUnlock() throws Exception { LockTestH...
Java
src/test/java/com/github/mottox/taomp/concurrent/locks/TOLockTest.java
MottoX/TAOMP
mit
1,600
58
codeparrot/github-code
bc8d86b832d51f3b404f9e3b2f1e833660b26be1eda58869ad850b0620bb8f18
<TS language="bg" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Десен клик за промяна на адреса или името</translation> </message> <message> <source>Create a new address</source> <transla...
TypeScript
src/qt/locale/bitcoin_bg.ts
ppcoin/ppcoin
mit
86,388
2,513
codeparrot/github-code
211d11ddd88e12ebfe3a0f348d0456546e091d313807f26457c282daa9dd9e6e
"use strict"; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope...
JavaScript
lib/utils/APIdoc.js
renanhangai/servitude
mit
4,264
174
codeparrot/github-code
903f3ca7d502214a26cfb5c42ac6607f6bc7677f5bd4cbb2254c457b2723f339
""" Plots Arctic sea ice extent from June 2002-present using JAXA metadata Website : https://ads.nipr.ac.jp/vishop/vishop-extent.html Author : Zachary M. Labe Date : 4 August 2016 """ ### Import modules import numpy as np import matplotlib.pyplot as plt import matplotlib.animation as animation import matplo...
Python
Scripts/SeaIce/JAXA_seaice_movinglines.py
zmlabe/IceVarFigs
mit
6,992
191
codeparrot/github-code
a05d2dd0da83aa0a5656bc0d4d866aebe21b941a15b61327030a269c656ab2e0
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "db.h" #include "walletdb.h" #include "bitcoinrpc.h" #include "net.h" #inc...
C++
src/init.cpp
baseballcardcoin/BBCC
mit
33,745
880
codeparrot/github-code
dc05ffc6b9564a5c5c2abf9089442c4c5185eebdb0c2c6821905aafa0a428814
/* Copyright (C) 2017 Yifan Lu * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ #include <stdlib.h> #include <stdint.h> #include <string.h> #include <unistd.h> #define COPY_BLOCK_SIZE (1024) ssize_t read_block(int fd, void *buf, size_t n...
C
utils.c
yifanlu/psvimgtools
mit
1,617
82
codeparrot/github-code
33af7931a715f185c171c0203abdb8c998db09df708e8fd7ec63206e945c1845
package trie; public abstract class Element implements TrieElement, Comparable { protected String word; public Element(){} public Element(String word){ this.word = word; } public static int CharToIndex(char c){ switch(c){ case '!': return 0; case '(': return 1; case ')': return 2; case ...
Java
Element.java
Georgiana-Baclava/Trie
mit
702
44
codeparrot/github-code
0ba82c5eb8a7fd55bbaddaf7dffcf354c39dfc733537748a28c7303b538abd9f
import os import subprocess import sys __version__ = '0.0.1' __author__ = 'Jeroen Seegers' __license__ = 'MIT' HOME_DIR = os.path.expanduser('~') HISTORY_FILE = HOME_DIR + '/.git-history.log' def ensure_history_file(): """Ensure the history file exists""" if not os.path.isfile(HISTORY_FILE) and os.access(...
Python
git_history.py
jeroenseegers/git-history
mit
1,296
53
codeparrot/github-code
000e1f57e27605b00b434353aa74c2e20f94b00ede3fc2947e2d121600e465d4
import { Injectable } from '@angular/core'; import { CanActivate, Router, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router'; // Services import { LogService, SessionService } from 'app/services'; // State Management with Redux import '@ngrx/core/add/operator/select'; import...
TypeScript
src/app/components/shared/access/guards/auth.guard.ts
brakmic/BlockchainStore
mit
1,546
45
codeparrot/github-code
5a22c58f77c1584ba5ecb1e2ea865f0e66535f8c89d1cc7e67be7f93475833ed
/** * Base Class for HBoxLayout and VBoxLayout Classes. Generally it should not need to be used directly. */ Ext.define('Ext.layout.container.Box', { extend: 'Ext.layout.container.Container', alias: 'layout.box', alternateClassName: 'Ext.layout.BoxLayout', requires: [ 'Ext.layout.container....
JavaScript
ext/classic/classic/src/layout/container/Box.js
san4osq/bindformext
mit
67,039
1,685
codeparrot/github-code
d3bce768df31673a4f59ed87678ad10ca4dbb3a29c0c3aa04bee6efb99b785c2
<?php /* CREATE TABLE perm_posession ( id INT NOT NULL AUTO_INCREMENT, perm_id INT NOT NULL, user_id INT, group_id INT, PRIMARY KEY(id), FOREIGN KEY(group_id) REFERENCES perm_groups(id), FOREIGN KEY(user_id) REFERENCES users(id) ) ENGINE=InnoDB; */ class Permission extends Model { protected static $table_...
PHP
models/Permission.class.php
ryunoneil/a2-comp4
mit
890
61
codeparrot/github-code
6648dd9fcd57700cce1487e35512cc9940d8cb624159c9f8cff5080c378276df
from django.core.urlresolvers import reverse, reverse_lazy from django.shortcuts import render, redirect from django.views import generic from common.models import Discipline, Performance # renders index / home page def index(request): return redirect(reverse('tournaments.main')) # renders todo page def proces...
Python
Turnauswertung-py3/common/views.py
saechtner/turn-events
mit
2,597
93
codeparrot/github-code
3f69f56d7e6b417c75f3d92725caedb60d087b32d5e6deaf4b8ea123f77176f4
#include "intro.h" #include "ui_intro.h" #include "util.h" #include <QFileDialog> #include <QSettings> #include <QMessageBox> #include <boost/filesystem.hpp> /* Minimum free space (in bytes) needed for data directory */ static const uint64 GB_BYTES = 1000000000LL; static const uint64 BLOCK_CHAIN_SIZE = 10LL * GB_BYT...
C++
src/qt/intro.cpp
strataghyst/TooCoin
mit
7,922
271
codeparrot/github-code
429216a3782092702c57f6fa2b208a5daabd03432a76c5e389cee95559a8cf8e
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html><head><title></title> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <link rel="stylesheet" type="text/css" href="search.css"/> <script type="text/javascript" src="search...
HTML
doc/html/search/files_63.html
Baltasarq/cp3mm
mit
2,064
41
codeparrot/github-code
ee9fc6cbf981321eff161f322c3a42448a89b9dc12717b8ec7c6368a047bd832
// TODO: Handle Runtime Errors mod braces; mod loops; mod methods; /// Expand pipelines pub mod pipelines; mod words; use self::braces::BraceToken; pub use self::{ loops::ForValueExpression, methods::MethodError, words::{unescape, Select, SelectWithSize, WordIterator, WordToken}, }; use crate::{ parser...
Rust
src/lib/expansion/mod.rs
redox-os/ion
mit
30,853
844
codeparrot/github-code
cf980bdb5045472be96b8b858832f4821cd8fd67ceec638f209edf1657d4a38d
#include "bcm_host.h" #include "gfx.h" #include "../gfx_internal.h" #include "gl.h" #include "time.h" typedef struct _escontext { GLint width; GLint height; EGLNativeWindowType hWnd; EGLDisplay eglDisplay; EGLContext eglContext; EGLSurface eglSurface; } ESContext; ESCont...
C
src/framework/src/raspi/gfx_raspi.c
hhatinen/fridge-magnet
mit
4,758
181
codeparrot/github-code
9ea43b0f79dd018fffddd5f445fb26ac231444145fdaabc73b3bdf915bcc266c
package runefinder import ( "encoding/gob" "fmt" "io/ioutil" "log" "net/http" "os" "path" "sort" "strconv" "strings" "time" ) const ( ucdUrl = "http://www.unicode.org/Public/UCD/latest/ucd/UnicodeData.txt" indexFileName = "runefinder-index.gob" ) type RuneSlice []rune func (rs RuneSlice) Len() i...
GO
runefinder/runefinder.go
garoago/runefinder3
mit
3,985
192
codeparrot/github-code
a8153e9060452531240fb443aa8724dbe27a3018ea3748a60a4650f199f24b8a
/** * Copyright (C) 2012 - 2014 Xeiam LLC http://xeiam.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 rights to * use, copy,...
Java
xchange-cexio/src/main/java/com/xeiam/xchange/cexio/service/polling/CexIOTradeServiceRaw.java
habibmasuro/XChange
mit
4,196
101
codeparrot/github-code
761467ac7bf814d5689f0e7b729c272068822afad6d1f38ff219ff978412b483
using System; using System.Text; using System.Data; using System.Data.SqlClient; using System.Data.Common; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Configuration; using System.Xml; using System.Xml.Serialization; using SubSonic; using SubSonic.Utilities;...
C#
DalSic/generated/ConTipoActividadGrupal.cs
saludnqn/consultorio
mit
9,301
331
codeparrot/github-code
89ced27a6b3c47cd6e53c48aa688cf60f10b63b990033ce28cc0204895990bfa
const Therocktrading = require('therocktrading'); const _ = require('lodash'); const moment = require('moment'); const retry = require('../exchangeUtils').retry; const marketData = require("./therocktrading-markets.json"); const QUERY_DELAY = 350; const Trader = function(config) { this.post_only = true; this.use_...
JavaScript
exchange/wrappers/therocktrading.js
askmike/gekko
mit
7,682
287
codeparrot/github-code
1efea014c96231f6039c2d5f89ef4261ccf2bcfda4c1e3beb95cba0da4a8ac1d
using System.IO; using System.Linq; using System.Reflection; using RepositoryServices.Interfaces; using RepositoryServices.Models; namespace RepositoryServices.Repositories { internal class SettingsRepository : BaseRepository<Settings>, ISettingsRepository { public SettingsRepository() : base("Applicat...
C#
ScannerReader/RepositoryServices/Repositories/SettingsRepository.cs
arborQ/ScannerProcess
mit
1,158
42
codeparrot/github-code
70464ec2210ae063ad7b0cbbeb9797282a2ef7fb913512f71eb330946caeca81
<!DOCTYPE html> <html xmlns:msxsl="urn:schemas-microsoft-com:xslt"> <head> <meta content="en-us" http-equiv="Content-Language" /> <meta content="text/html; charset=utf-16" http-equiv="Content-Type" /> <title _locid="PortabilityAnalysis0">.NET Portability Report</title> <style> ...
HTML
Reports/yc/yc.fsyard.0.2.8.16/QuickGraph.Graphviz-net40.html
kuhlenh/port-to-core
mit
9,653
240
codeparrot/github-code
7339298a1fea3019a202e2b14f74462e4620d9dd93a5f1a21837347920c8eb64
package edu.gatech.xpert; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; import org.apache.commons.lang3.StringUtils; import com.crawljax.oraclecomparator.AbstractComparator; import com.crawljax.oraclecomparator.compa...
Java
src/edu/gatech/xpert/IsoChecker.java
gatech/xpert
mit
6,213
228
codeparrot/github-code
2c9c79ee5ba028ee469448a52fcaa85034d8f35f8ed61359c1a59c73e93f0e13
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Login Test</title> <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/aja...
HTML
aws-sdk-demo.html
rogusdev/ng2-auth-demo
mit
3,859
102
codeparrot/github-code
8d302d2c7023e5bb06a0f28e8675e948037d809aa5b75cc539078e59c66a90b4
import csv from subprocess import call# from datetime import datetime#Importing various libraries call(["color","F9"], shell=True)# call(["cls"], shell = True)#Setting colour for shell import sys, time# import time#More libraries prog=True#creating variable prog and assigning it as true time.sleep(1)# def typi...
Python
PRETEND assessment/PRETEND assessment csv.py
husky-prophet/personal-backup
mit
4,661
114
codeparrot/github-code
0b40bf9a3a6da9e829322798ebb1add8db825caf5bf593efca85ddd3582049dc
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page trimDirectiveWhitespaces="true" %> <%@ include file="../../../tagLib.jsp"%> <nav class="navbar" style="position: fixed;top:47px;z-index: 10"> <a class="return-btn" ng-click="back()"></a> <span class="filter-btn" ng-sh...
HTML
app/views/level2/level2-view.html
felix307253927/lovev
mit
8,061
170
codeparrot/github-code
cf19b095656b449a55c216d8381fedb39e96eed5857132e2895e689c4f31b2f9
extern crate xiapi_sys; extern crate libc; use xiapi_sys::xiapi; use libc::c_void; use std::mem; use std::ffi::CString; fn run() -> Result<(),String> { let mut numDevices = 0u32; unsafe { let result = xiapi::xiGetNumberDevices(&mut numDevices); println!("xiGetNumberDevices:\treturn: {}\tvalue...
Rust
examples/open_close.rs
erezny/xiapi_sys-rust
mit
2,602
79
codeparrot/github-code
ed326e4ae4d9f328ff065a7920104216ff3eb4f532e000a63ac2c9ccc4cbb7d0
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* * Main authors: * Christian Schulte <schulte@gecode.org> * * Copyright: * Christian Schulte, 2011 * * Last modified: * $Date: 2011-07-08 23:08:27 +0900 (金, 08 7 2011) $ by $Author: schulte $ * $Revision: 12168 $ * * This...
C++
gecode/int/no-overlap/man.hpp
kenhys/gecode
mit
3,413
120
codeparrot/github-code
1723a2b113019f61ebbab5d1561a04359670b107b09156a52cf917983dd03a85
// // The MIT License(MIT) // // Copyright(c) 2014 Demonsaw LLC // // 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, c...
C++
ds3/3_ds_mobile/model/chat_model.cpp
demonsaw/Code
mit
6,565
254
codeparrot/github-code
a6c2de466af8c592ee0013f3a20e1bb283e66fcf67437958b4e36fe337fdb32e
# -*- coding: utf-8 -*- """ Created on Mon Jun 26 16:43:46 2017 @author: DWyatt """ import pandas as pd import seaborn as sns import os import matplotlib.pyplot as plt df_train = pd.read_csv('train.csv') target = 'SalePrice' variables = [str(column) for column in df_train.columns if column!=target] dir1 = os.getcwd(...
Python
chart - sales price vs variables/generate_charts.py
BenChehade/datasciences
mit
724
30
codeparrot/github-code
89b74adb66248871dd54d2ea80890ddba645209593ae174cd478fdac66e0aa47
#require 'rbbt/util/chain_methods' require 'rbbt/util/misc' module NamedArray #extend ChainMethods #self.chain_prefix = :named_array attr_accessor :fields attr_accessor :key attr_accessor :entity_options attr_accessor :entity_templates def shift fields.shift super end def entity_templates ...
Ruby
lib/rbbt/util/named_array.rb
mikisvaz/rbbt-util
mit
5,156
222
codeparrot/github-code
7993b37b83452b8b5402d52ae18ae788b866112211f17db456c2d733e1fdf5ec
/** * Module dependencies. */ var express = require('express') , mongoStore = require('connect-mongo')(express) , flash = require('connect-flash') , helpers = require('view-helpers') , pkg = require('../package.json') module.exports = function (app, config, passport) { app.set('showStackError', true) ...
JavaScript
config/express.js
caulagi/toystori
mit
3,608
138
codeparrot/github-code
d5bf37c1c92717e22bcdb2e96e2565fa86bc0052bfdd80911cfd9b51c19161c2
require_relative "./exceptions" module ClickSession class WebRunnerProcessor def initialize @retries_made = 0 @making_requests = true end delegate :runner_class, :notifier_class, to: :clicksession_configuration def process(model) while can_make_requests? begin r...
Ruby
lib/click_session/web_runner_processor.rb
talltorp/click_session
mit
1,243
67
codeparrot/github-code
b7476ef3b22a471ac35f1994f246dd2f7000f406e31773fcfcfe7bcaeb0817a3
<!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html;charset=iso-8859-1" /> <meta name="author" content="www.frebsite.nl" /> <meta name="viewport" content="width=device-width initial-scale=1.0 maximum-scale=1.0 user-scalable=yes" /> <meta name="robots" content="noindex, nofollow" />...
HTML
.refs/mmenu.frebsite.nl/mmenu-3.0.2/docs/events/index.html
davo/BA-Apps
mit
2,888
82
codeparrot/github-code
3e049366546d7b10f871f1548464c73fa15b3d4e7519b08ebd94a421e13c7986
<?php // src/Acme/UserBundle/Entity/User.php namespace Web\BackendBundle\Entity; use FOS\UserBundle\Model\User as BaseUser; use Doctrine\ORM\Mapping as ORM; use FOS\MessageBundle\Model\ParticipantInterface; use Doctrine\Common\Collections\ArrayCollection; /** * @ORM\Entity * @ORM\Table() */ class User extends Base...
PHP
src/Web/BackendBundle/Entity/User.php
seekmas/office_mkt
mit
2,250
120
codeparrot/github-code
a38cc3b2af13f46a851c334b46e2ea4e4bc9cf7a8d2ea469b524dbc8123851c1
<?php declare(strict_types=1); /* * This file is part of the G.L.S.R. Apps package. * * (c) Dev-Int Création <info@developpement-interessant.com>. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace User\UI\Controller; us...
PHP
server/src/User/UI/Controller/CreateUser.php
Dev-Int/glsr
mit
1,544
50
codeparrot/github-code
0b2ad060f2835bb733f1e2c6c41206a689f0a6821f6242f53fc17839bac0bd58
#!/usr/bin/env python from itertools import count import doctest def delete_range(lines, r=None): """ >>> a = list(range(10)) >>> delete_range(a, (1, 3)) [0, 4, 5, 6, 7, 8, 9] """ r = r or (0, len(lines)) return replace_range(lines, [], (r[0], r[1] + 1)) def insert_range(lines, new_lines...
Python
sed/engine/sed_util.py
hughdbrown/sed
mit
3,112
119
codeparrot/github-code
2b36757d5a6a75c201bdcedc825c1b4be7cddfea33ebc3d55fb0236c750efbcc
describe("About Functions", function() { it("should declare functions", function() { function add(a, b) { return a + b; } expect(add(1, 2)).toBe(3); }); it("should know internal variables override outer variables", function () { var message = "Outer"; function getMessage...
JavaScript
koans/AboutFunctions.js
armandopmj/javascript-koans
mit
2,838
112
codeparrot/github-code
2f92ab8d05c0708240ed87ca2fddac73034330b7dcc19ce386dd0858b1182dbf
#include <seqan/sequence.h> #include <seqan/basic.h> #include <iostream> using namespace seqan; template <typename TAlphabet> void showAllLetterOfMyAlphabet(TAlphabet const &) { typedef typename Size<TAlphabet>::Type TSize; TSize alphSize = ValueSize<TAlphabet>::VALUE; for (TSize i = 0; i < alphSize; ++i) ...
C++
raw/workshop11/workshop2011-data-20110925/sources/xfdtznywb7qjx61s/45/sandbox/my_sandbox/apps/my_app/my_app.cpp
bkahlert/seqan-research
mit
1,369
66
codeparrot/github-code
a2004028ebe1f4968732fb10d3031eee58c0c04ce57eb11afb8e31340c0b4675
/* global suite, test */ const assert = require('assert'); const extension = require('../src/extension'); const packageJson = require('../package.json'); suite('extension tests', function() { function buildPrefix( directoryLevelsToPreserve, { currentFilename = '/Users/mike/projects/exa...
JavaScript
test/extension.test.js
schreifels/vscode-quick-open-related-files
mit
5,329
94
codeparrot/github-code
c129e4c64fd14b5d0b68aab530c5f13afb0d7962799213e770b05b897777810a
<?php namespace Anomaly\AddonsModule\Addon\Table; use Anomaly\Streams\Platform\Addon\Addon; use Anomaly\Streams\Platform\Addon\Extension\Extension; use Anomaly\Streams\Platform\Addon\Module\Module; /** * Class AddonTableButtons * * @link http://pyrocms.com/ * @author PyroCMS, Inc. <support@pyrocm...
PHP
core/anomaly/addons-module/src/Addon/Table/AddonTableButtons.php
fannan1991/pyrocms
mit
2,881
83
codeparrot/github-code
73ae8b91778b0d19e61a978f223b78991d43ca9029ea02eef3c7ddb334a03e3e
from datetime import datetime from html.parser import HTMLParser from django.core.management.base import BaseCommand, CommandError from django.db.utils import IntegrityError from django.utils import timezone from bookmarks.models import Bookmark def unixtime2datetime(t): dt = datetime.fromtimestamp(int(t)) re...
Python
project/bookmarks/management/commands/import_bookmarks.py
hnakamur/django-bootstrap-table-example
mit
1,584
56
codeparrot/github-code
51dc2fc31d9353f636f54970fc75145ca0b07daf031d4fb92c0bd773372ace27
/* MIT License Copyright (c) 2016 Erik Thomasson Forsberg 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, modify...
C++
SN76489.cpp
tEFFx/SN76489-emu
mit
3,004
102
codeparrot/github-code
03a6cf0c2618aeeb05cee2294dc9dc351c5e459033b5ca276c1872068c5c8674
using System.Data.Entity; using Ticket.DB.EntityFramework.Migrations; namespace Ticket.DB.EntityFramework { [DbConfigurationType(typeof(ContextConfig))] internal class Context : DbContext, IDataProvider { /// <summary>Gets and sets an provider to access events list</summary> public DbSet<...
C#
IngressosOnlineSolution/DataBase/Ticket.DB.EntityFramework/Context.cs
GustavoAmerico/IngressosOnline
mit
1,899
54
codeparrot/github-code
8ce238476cdde37f0903888a29d7714c5c7b8be7ef01fd2a659322b878c3b5f1
<!DOCTYPE html> <html > <head> <meta charset="UTF-8"> <title>entregar</title> <!--link rel="stylesheet" href="/www/css/table_style.css"--> <!--STYLE --> <style>@import url(https://fonts.googleapis.com/css?family=Roboto:400,500,700,300,100); body { background-color: #4A59A1; font-family:...
HTML
Data/entregar.html
lorientado/XimnasioDosVerbos
mit
28,222
815
codeparrot/github-code
df14f54c3dc51cde4c9ab03c162758018b52cdbb5a36b379db94f5e0279d3b0a
#include <assert.h> #include "TestDataStream.h" int main(int argc, char *argv[]) { for (int arg=1; arg<argc; ++arg) { TestDataStream datastream(argv[arg]); assert(datastream.isOk()); assert(datastream.open() == 0); TestDataStream::KeyTypeListConstIterator dsit = datastream.be...
C++
src/gui/qt_mdivwer/main.cpp
ombt/ombt
mit
1,036
40
codeparrot/github-code
e76b1492f54b2923adffe1d8b91b53e32ce9ceae44d78643fb4bc8f9cc28a372
/** * File: loginScript.js * * This file provides functionality for the login form. It opens the modal form when the * user clicks the login button, provides validation for logging in and allows the user to * close the form. * * Version 1 * Authors: Sarah Murphy */ // Get the element var modal = document.g...
JavaScript
js/loginscript.js
youjing402/pub_ordering_system
mit
1,641
70
codeparrot/github-code
87ef731d7708404102abd80f66b9e9533172d07efae554a34f4b6dd747180642
import { StandardArticleBody as StandardWinArticleBody, WorldInNumbersArticleBody as WorldInNumbersWinArticleBody, } from './body'; import ArticleTemplate from '@economist/component-articletemplate'; import CallToAction from './cta'; import WifHeader from './header-wif'; import WifSubheader from './subheader-wif'; ...
JavaScript
src/variant-article.js
danielmoll/component-win-articlepage
mit
2,171
66
codeparrot/github-code
ee05735c4cd0427d5a3dc4a733bb27d4473fe617816c5ab5a776da745e0e2389
'use strict' const expect = require('expect.js') const hedy = require('../') const memAdapter = require('./mem') describe('mem-adapter', function() { let data, store, userQuery, commentQuery, friendQuery beforeEach(function() { data = { user: [ { id: 1, name: 'heiner', age: 20 }, { id: ...
JavaScript
src/adapter/mem.test.js
StephanHoyer/hedy
mit
5,179
165
codeparrot/github-code
032ebc905df20a334b150d052c649f85443ff4b239e65229f4d6f3fa03cf8a07
package JUnitTesting; import static org.junit.Assert.assertEquals; import java.awt.Point; import java.io.IOException; import org.junit.Test; import entity.PolicyCard; public class PolicyCardTest { PolicyCard card; String nextScreen = "false"; @Test public void test() { System.out.printl...
Java
SecretLeader/src/JUnitTesting/PolicyCardTest.java
SomethingKL/SecretLeader
mit
580
31
codeparrot/github-code
dc69c4a1dbc0b068c94d9b55704c272e854adb24c06791c634f5bba95a415970
package io.paradoxical.cassieq.workers.reader; import com.codahale.metrics.MetricRegistry; import com.codahale.metrics.Timer; import com.godaddy.logging.Logger; import com.google.inject.Inject; import com.google.inject.assistedinject.Assisted; import io.paradoxical.cassieq.dataAccess.interfaces.QueueRepository; import...
Java
core/src/main/java/io/paradoxical/cassieq/workers/reader/ReaderImpl.java
paradoxical-io/cassieq
mit
9,187
253
codeparrot/github-code
c599fd5702a825ea17635186259d980134524ec757fc845de68314a0627d2aeb
module.exports = function init(storage, ToughCookie, WebStorageCookieStore) { var storeKey = '__advancedHttpCookieStore__'; var store = new WebStorageCookieStore(storage, storeKey); var cookieJar = new ToughCookie.CookieJar(store); return { setCookieFromString: setCookieFromString, setCookie: setCooki...
JavaScript
www/cookie-handler.js
silkimen/cordova-plugin-advanced-http
mit
1,847
71
codeparrot/github-code
16381e315a3d26b575868990b9450d8b609db98596ba88e80c54d42efb450c23
package org.dhbw.otp.filters; import java.io.IOException; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.http.HttpServletRequest; im...
Java
JAASAppWork11/src/org/dhbw/otp/filters/LogoutFilter.java
jannnic/two-factor-authentication
mit
1,044
42
codeparrot/github-code
41da3b2f95db4d43e33a677f00d6b3e203e4698097563d80d12b3271342760a3
""" Core ==== AudioSignals ------------ .. autoclass:: nussl.core.AudioSignal :members: :autosummary: Masks ----- .. automodule:: nussl.core.masks :members: :autosummary: Constants ------------ .. automodule:: nussl.core.constants :members: :autosummary: External File Zoo ----------------- ....
Python
nussl/core/__init__.py
interactiveaudiolab/nussl
mit
1,293
80
codeparrot/github-code
afbe46e6b050ae73a33b5ca7d886895057ded284163ac8059b7016dba699d81b
import { fireEvent } from "@testing-library/react-native" import { ArtworkFiltersState, ArtworkFiltersStoreProvider, } from "app/Components/ArtworkFilter/ArtworkFilterStore" import { renderWithWrappersTL } from "app/tests/renderWithWrappers" import React from "react" import { AuctionHouseOptionsScreen } from "./Auc...
TypeScript
src/app/Components/ArtworkFilter/Filters/AuctionHouseOptions.tests.tsx
artsy/eigen
mit
2,057
62
codeparrot/github-code
6878be5dc712dfc99b82a0ecbafd0e8fe67cfc89132b4c12fa03f74740d8e085
import { Action, AnyAction, Dispatch, Middleware, MiddlewareAPI } from 'redux' export interface HeartbeatMeta extends Timestamped { name: string } export interface Timestamped { timestamp: number } export interface TimestampedAction extends Timestamped { action: AnyAction } export type TimestampedAc...
TypeScript
src/index.ts
alechill/redux-heartbeat
mit
4,722
115
codeparrot/github-code
cb642bdd894c2294ecd6297d50213b3bcaf202637f2353351d4588ad5d2d49df
/* A Bison parser, made by GNU Bison 3.0.2. */ /* Bison implementation for Yacc-like parsers in C Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by...
C
lab1/syntax.tab.c
bashell/Compiler
mit
68,438
1,987
codeparrot/github-code
dbdf52f7dee95f9005e99fd09bb1e326cfd2be85793a50e473d7b6f43d2d0393
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ExtendType.OfDateTime.Validation { public static class Extensions { public static bool IsEmpty(this DateTime instance) { return instance == DateTime.MinValue; } public static bool...
C#
ExtendType.OfDateTime/Validation/Extensions.cs
ExtendType/OfDateTime
mit
816
37
codeparrot/github-code
86915508f9de238e682c3630c5445dbf6619764d9d9e72ee698c46b31e46c04f
package controllers import ( "io" "log" "time" r "github.com/dancannon/gorethink" "github.com/david-torres/duelyst-casual/models" "golang.org/x/net/websocket" ) // Socket handles the websocket func Socket(session *r.Session) websocket.Handler { return websocket.Handler(func(ws *websocket.Conn) { // decay ti...
GO
controllers/websocket.go
david-torres/duelyst-casual
mit
2,193
92
codeparrot/github-code
f2fc78ecb7cd9ffaa488f9646f11dd41c5fa679ec1d456f1fb256170e8c9858a
package gavilan.irc; import com.google.common.collect.ImmutableMap; import static gavilan.irc.Channels.norm; import static java.util.Objects.nonNull; import java.util.Optional; import static java.util.Optional.ofNullable; import org.pircbotx.User; import org.pircbotx.hooks.events.MessageEvent; public class ...
Java
src/main/java/gavilan/irc/ChatMessage.java
gavilancomun/irc-explorer
mit
1,392
57
codeparrot/github-code
e6de5c37ae602e8b5ac1d58c3d086016b6f9548c9cc6a7f6707e8e185d1b0b25
<?php namespace tutolympique\navigationBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Doctrine\ORM\Query\ResultSetMapping; class DefaultController extends Controller { public function categorieAction($categorie, $pagination) { // On récupère les catégories $repo...
PHP
src/tutolympique/navigationBundle/Controller/DefaultController.php
nico06530/tutolympique
mit
53,446
1,045
codeparrot/github-code
11b23610b86db304c95f2e75ee905935804695c5136605c557134d4db0ba9c8d
/* * This file is part of SpongeAPI, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Soft...
Java
src/main/java/org/spongepowered/api/event/cause/entity/damage/DamageTypes.java
JBYoshi/SpongeAPI
mit
3,076
68
codeparrot/github-code
65361b18cfd0862b056e4768a7b70bd9da10372aa088b2cf1e87932a979a4659
'use strict'; angular .module( 'app.controller.devices', [ 'ngMaterial', 'ngMessages', 'ngCookies' ] ) // constants .constant('MODULE_VERSION', '0.0.1') // // // // //...
JavaScript
src/v1/ui/src/controller/controller-devices.js
andre-lehnert/masterthesis-server
mit
4,411
168
codeparrot/github-code
703d103049503d947ee2a0da57f87d77086b20ae190dec77fec1ef8e635df7f7
jsonRPC = { version: '2.0', endPoint: null, namespace: null, setup: function(params) { this.endPoint = params.endPoint; this.namespace = params.namespace; this.cache = params.cache !== undefined ? params.cache : true; return this; }, request: function(method, opti...
JavaScript
static/jsonrpc.js
hanxi/jsonrpc.lua
mit
3,681
119
codeparrot/github-code
b29764224baa8688bfcf014530a86dfdb7e7a087904b68b6a82a29442f388711
#include "render/renderstate.h" #include "render/mesh.h" #include "base/debug.h" namespace base { namespace opengl { RenderState::RenderState(DeviceContext& context) : gl(context) , cullface(context) , depthTest(context) , blend(context) , depthWrite(context) , viewportArea(contex...
C++
src/render/renderstate.cpp
alexa-infra/negine
mit
1,812
55
codeparrot/github-code
e49cfef26abb8b837ee111b1f384f4306b56e0ce3eb4d303317e7d4a8483a271
--- A COW Map using lua's native tables, for testing local fun = require 'ltrie.fun' local TMap = {} local mt = { __index = TMap } local function ctor(data) assert(data.table) assert(data.count) return setmetatable(data, mt) end local EMPTY = ctor {table = {}, count = 0} --- Map from iterator function TMap.fro...
Lua
ltrie/tablemap.lua
Alloyed/ltrie
mit
1,205
74
codeparrot/github-code