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 |
|---|---|---|---|---|---|---|---|---|
fc5f6bddad1ce03c7c38e7571e9aed871e316b054b70a5d169643f8be706205f | namespace TransferCavityLock2012
{
partial class LockControlPanel
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
... | C# | TransferCavityLock2012/LockControlPanel.Designer.cs | jstammers/EDMSuite | mit | 18,413 | 350 | codeparrot/github-code |
aed222df58a8be6eb45091b38768aac25cdd1b83f86242440be7a11ba6b247be |
#include "..\stdafx.h"
#pragma once
class CMutex
{
private:
HANDLE m_mutex;
bool m_isLocked;
void Lock()
{
WaitForSingleObject(this->m_mutex, INFINITE);
}
void Unlock()
{
if (this->m_isLocked)
{
this->m_isLocked = false;
ReleaseMutex(this->m_mutex);
}
}
public:
CMutex()
{
this->m_mutex =... | C | cache/Utils/Mutex.h | fieryorc/gitprompt | mit | 637 | 57 | codeparrot/github-code |
a6681ba08ee9d1481b7d6df9e75daa715c0c400f72302d9e45911d58d8c9f536 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>tlc: 2 m 40 s</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="styles... | HTML | clean/Linux-x86_64-4.10.0-2.0.6/extra-dev/dev/tlc/20200328.html | coq-bench/coq-bench.github.io | mit | 23,109 | 319 | codeparrot/github-code |
89fa3bcb78d6ab21f3b9bc01968bfb221e3f4c055744f023143dcdd772664270 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>bignums: 1 m 56 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel=... | HTML | clean/Linux-x86_64-4.08.1-2.0.5/extra-dev/8.10.0/bignums/8.10+beta1.html | coq-bench/coq-bench.github.io | mit | 15,671 | 248 | codeparrot/github-code |
0a454f0746382114c759ff0abfec01c5e4d3bc93a24c99a05bce07a0a08e5c93 | package de.espend.idea.shopware.util.dict;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiFile;
import com.intellij.psi.PsiManager;
import com.intellij.psi.PsiRecursiveElementWalkingVisitor;
import com.intellij.ps... | Java | src/de/espend/idea/shopware/util/dict/PsiParameterStorageRunnable.java | ShopwareHackathon/idea-php-shopware-plugin | mit | 5,005 | 107 | codeparrot/github-code |
8dbf90df4fb48edb8b35c4033a5a3187cd33a2d15d4b638361bf873c9e5a09ca |
#include "Internal.hpp"
#include <LuminoEngine/Graphics/Texture.hpp>
#include <LuminoEngine/Rendering/Material.hpp>
#include <LuminoEngine/Mesh/Mesh.hpp>
#include <LuminoEngine/Visual/StaticMeshComponent.hpp>
namespace ln {
//=============================================================================
... | C++ | src/LuminoEngine/src/Visual/StaticMeshComponent.cpp | lriki/Lumino | mit | 2,430 | 85 | codeparrot/github-code |
e4e7d7822834667823bc4601ec9a493504d1e0904f55da75d7c05ded0c794e5f | <!DOCTYPE html>
<html class="no-js" lang="es">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="p5.js a JS client-side library for creating graphic and interactive ... | HTML | es/examples/simulate-multiple-particle-systems.html | mayaman/p5js-website | mit | 8,623 | 200 | codeparrot/github-code |
28ce4840bdd2b5b3c721d77c91e621e10503bf41e1873a4aa163a3b6c7836eec | <?php namespace App\Controllers\Admin;
use BaseController;
use DB, View, Datatables, Input, Redirect, Str, Validator, Image, File;
use App\Models\Music;
class MusicController extends BaseController {
private $upload_path = "uploads/music/";
public function getList()
{
$music_count = Music::count();
$data = ar... | PHP | app/controllers/admin/MusicController.php | benhanks040888/subud | mit | 3,793 | 127 | codeparrot/github-code |
2bab0b507de9a251b66a96bb9d25cb790b09ba78fe17e5055ca89c6ae2ca81e5 | package org.jabref.logic.importer.fetcher;
import java.io.IOException;
import java.net.URL;
import java.util.Collections;
import java.util.List;
import java.util.Optional;
import org.jabref.logic.formatter.bibtexfields.ClearFormatter;
import org.jabref.logic.formatter.bibtexfields.NormalizePagesFormatter;
import org.... | Java | src/main/java/org/jabref/logic/importer/fetcher/DoiFetcher.java | zellerdev/jabref | mit | 3,259 | 87 | codeparrot/github-code |
05d64aab911915848229d3458f463e913caa13a492e2e44a1682e33c9dcb172d |
from __future__ import division, print_function #, unicode_literals
"""
Multiples of 3 and 5
If we list all the natural numbers below 10 that are multiples
of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.
Find the sum of all the multiples of 3 or 5 below 1000.
"""
import numpy as np
# Setup.
nu... | Python | problem_001.py | Who8MyLunch/euler | mit | 632 | 34 | codeparrot/github-code |
ab717929a9a84b8595eefad94bb8c95d75591a816f79d7faec9e3a747b98d1cf | <#
Microsoft provides programming examples for illustration only, without warranty either expressed or
implied, including, but not limited to, the implied warranties of merchantability and/or fitness
for a particular purpose.
This sample assumes that you are familiar with the programming language being demonst... | PowerShell | SharePoint/ServiceApplications/Search/Get-CustomResultSource.ps1 | joerodgers/powershell | mit | 4,744 | 103 | codeparrot/github-code |
e6ed3e2ff6ac0bde82c059ffeaed02c15b1101fec1b2f5ca3ecb82354cf28b14 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ordinal: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css... | HTML | clean/Linux-x86_64-4.08.1-2.0.5/released/8.11.2/ordinal/0.5.0.html | coq-bench/coq-bench.github.io | mit | 6,478 | 166 | codeparrot/github-code |
63108fa562c918e99f3d63a71bd5da9a7d24968165dfff5fa1c852f01897e695 | var mongoose = require('mongoose');
var statuses = ['open', 'closed', 'as_expected'];
var priorities = ['major','regular','minor','enhancement'];
var Comment = new mongoose.Schema(
{
comment: String,
username: String,
name: String,
dca: {type: Date, default: Dat... | JavaScript | models/bug.js | baliganikhil/Storm | mit | 1,110 | 45 | codeparrot/github-code |
df1d2a6a9c10afc1a065469da2a7aaff68e01c0a6c09b886de6c37862b1fea38 | package is.hail.expr.ir.functions
import is.hail.annotations.{Region, StagedRegionValueBuilder}
import is.hail.asm4s
import is.hail.asm4s._
import is.hail.expr.ir._
import is.hail.types.physical._
import is.hail.types.virtual._
import is.hail.utils._
import java.util.Locale
import java.time.{Instant, ZoneId}
import ja... | Scala | hail/src/main/scala/is/hail/expr/ir/functions/StringFunctions.scala | danking/hail | mit | 12,228 | 288 | codeparrot/github-code |
ea7b6a02b2350edcaf9fb588913384c0b1aa50ec1b7c26c4b353e6f30167312f | using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MageTurret : Turret
{
[SerializeField]
float range;
[SerializeField]
float baseDamage = 0.00f;
float currentDamage = 0.00f;
[SerializeField]
float damageIncrease;
[SerializeFiel... | C# | Assets/Turrets/MageTower/Scripts/MageTurret.cs | GoldenArmor/HostileKingdom | mit | 4,397 | 190 | codeparrot/github-code |
f84a61ed890c524e104f0aed054f5877924ae3460de695ca509ccf560b09163a | #include "Namespace_Base.h"
#include <co/Coral.h>
#include <co/IComponent.h>
#include <co/IPort.h>
#include <co/IInterface.h>
namespace co {
//------ co.Namespace has a facet named 'namespace', of type co.INamespace ------//
co::IInterface* Namespace_co_INamespace::getInterface()
{
return co::typeOf<co::INamespace>... | C++ | src/core/generated/Namespace_Base.cpp | coral-framework/coral | mit | 1,595 | 79 | codeparrot/github-code |
768b9c68922d825e38bf44ab9d9978e15ecfe8add3fb03f5ff9a8a815236a595 | <?php
/**
* Go! AOP framework
*
* @copyright Copyright 2013, Lisachenko Alexander <lisachenko.it@gmail.com>
*
* This source file is subject to the license that is bundled
* with this source code in the file LICENSE.
*/
namespace Demo\Example;
/**
* Human class example
*/
class HumanDemo
{
/**
* Eat... | PHP | demos/Demo/Example/HumanDemo.php | latamautos/goaop | mit | 880 | 59 | codeparrot/github-code |
9e990275168af4e2100fba7ba821d74f0f4be4fc41b3954c870d94d43b4622e2 | using Microsoft.AspNet.Http;
using Microsoft.AspNet.Routing;
using Migrap.AspNet.Multitenant;
using System;
using System.Collections.Generic;
namespace Migrap.AspNet.Routing {
public class TenantRouteConstraint : IRouteConstraint {
public const string TenantKey = "tenant";
private readonly ISet<st... | C# | src/Migrap.AspNet.Multitenant/Routing/TenantRouteConstraint.cs | migrap/Migrap.AspNet.Multitenant | mit | 1,078 | 33 | codeparrot/github-code |
1bc2708520241a42d16a5a29673b29f3cf92cdf5e8cf082739cd9ca60042f6f3 | import numpy as np
__author__ = 'David John Gagne <djgagne@ou.edu>'
def main():
# Contingency Table from Wilks (2011) Table 8.3
table = np.array([[50, 91, 71],
[47, 2364, 170],
[54, 205, 3288]])
mct = MulticlassContingencyTable(table, n_classes=table.shape[0],
... | Python | hagelslag/evaluation/MulticlassContingencyTable.py | djgagne/hagelslag | mit | 2,908 | 77 | codeparrot/github-code |
c988b73733000c965acb59dd7ea0166c85a158aac774dc8e6e98a1b65288f350 | <?php
/**
* Provides low-level debugging, error and exception functionality
*
* @copyright Copyright (c) 2007-2011 Will Bond, others
* @author Will Bond [wb] <will@flourishlib.com>
* @author Will Bond, iMarc LLC [wb-imarc] <will@imarc.net>
* @author Nick Trew [nt]
* @license http://flourishlib.c... | PHP | _example/thirdparty/flourish/fCore.php | mkrause/roy | mit | 39,704 | 1,208 | codeparrot/github-code |
a88d84576af63ffbabd2a6d8856cae6c2bc6d8b58a8cfdf4ff845a06ce075ebe | // Copyright (c) 2014 blinkbox Entertainment Limited. All rights reserved.
package com.blinkboxbooks.android.list;
import android.content.Context;
import android.database.ContentObserver;
import android.database.Cursor;
import android.database.MergeCursor;
import android.support.v4.content.AsyncTaskLoader;
import andr... | Java | app/src/main/java/com/blinkboxbooks/android/list/LibraryLoader.java | blinkboxbooks/android-app | mit | 5,766 | 188 | codeparrot/github-code |
c4f1573fa37a088e4fe036db05ca0a9a6f9264b9c9d465910b7a65a48e764763 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-multinomials: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../boo... | HTML | clean/Linux-x86_64-4.05.0-2.0.1/released/8.13.2/mathcomp-multinomials/1.1.html | coq-bench/coq-bench.github.io | mit | 7,594 | 181 | codeparrot/github-code |
1d9b8099931218679aa645cf8ce8499c7cf04aa8c09f8ea8254a966505d21c85 | using System;
using System.Net.Http;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
using Castle.Core;
using DotJEM.Json.Storage.Adapter;
using DotJEM.Pipelines;
using DotJEM.Web.Host.Diagnostics.Performance;
using DotJEM.Web.Host.Providers.Concurrency;
using DotJEM.Web.Host.Providers.Services.Di... | C# | src/DotJEM.Web.Host/Providers/Services/ContentService.cs | dotJEM/web-host | mit | 7,583 | 199 | codeparrot/github-code |
d267fe80edb94b79b687d7a91114b01c2c73b02e224c9d05934d9f3934facc9f | package com.gdgand.rxjava.rxjavasample.hotandcold;
import android.app.Application;
import com.gdgand.rxjava.rxjavasample.hotandcold.di.component.ApplicationComponent;
import com.gdgand.rxjava.rxjavasample.hotandcold.di.component.DaggerApplicationComponent;
import com.gdgand.rxjava.rxjavasample.hotandcold.di.module.Ap... | Java | 2016-06-15_hot_and_cold/app/src/main/java/com/gdgand/rxjava/rxjavasample/hotandcold/SampleApplication.java | gdgand/android-rxjava | mit | 911 | 31 | codeparrot/github-code |
30000e26aa02a76decccf421406094c7c3d7cf09629dfbe1805e105e29fb8c14 | 'use strict'
var solc = require('solc/wrapper')
var compileJSON = function () { return '' }
var missingInputs = []
module.exports = function (self) {
self.addEventListener('message', function (e) {
var data = e.data
switch (data.cmd) {
case 'loadVersion':
delete self.Module
// NOTE: w... | JavaScript | src/app/compiler/compiler-worker.js | Yann-Liang/browser-solidity | mit | 1,202 | 46 | codeparrot/github-code |
996e8965c2b58a4cfbe77e14352e047afb26a979b3822994ac0636e37963f471 | //Express, Mongo & Environment specific imports
var express = require('express');
var morgan = require('morgan');
var serveStatic = require('serve-static');
var bodyParser = require('body-parser');
var cookieParser = require('cookie-parser');
var compression = require('compression');
var errorHandler = require('errorha... | JavaScript | app.js | rpelger/books-app-mean | mit | 1,664 | 61 | codeparrot/github-code |
fecdc1be8a10e39230136be9fa570451f9dc8be8e47d389adf97aa28ac8bba59 | "use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... | JavaScript | src/components/conversation-header/conversation-header.component.js | DREEBIT/ng-messenger | mit | 1,657 | 32 | codeparrot/github-code |
ddbcbf47c9c067fc50ba40a313b4475baf052620a478f5345b5274f47784a7b6 | <?php
if (!file_exists('./../include/config.php')){
header('Location:install.php');
}
include('./../include/config.php');
include('./../include/functions.php');
if (isset($_POST['step']))
$step = intval($_POST['step']);
else{
$step = 0;
}
?>
<!DOCTYPE html>
<html>
<head>
<title>SPC - DB Upgrade</title>
... | PHP | install/upgrade.php | 50thomatoes50/simple-photos-contest | mit | 3,262 | 134 | codeparrot/github-code |
728596e8773b4b4207d480f72bd01190b4126b17636db95c7d4768ac1be814f0 | /**
* jQuery object.
* @external jQuery
* @see {@link http://api.jquery.com/jQuery/}
*/
/**
* The jQuery plugin namespace.
* @external "jQuery.fn"
* @see {@link http://docs.jquery.com/Plugins/Authoring The jQuery Plugin Guide}
*/
/**
* The plugin global configuration object.
* @external "jQuery.vulcanup"
*... | JavaScript | src/js/vulcanup.js | vulcan-estudios/vulcanup | mit | 7,069 | 272 | codeparrot/github-code |
44d57c3310dd9c25ff7b040e7bf62708064c7eada0f1d33b2b4baa2d962d5000 | package com.lht.dot.ui.view;
import android.content.Context;
import android.support.annotation.Nullable;
import android.support.v7.widget.RecyclerView;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
import com.bumptech.glide.Glide;
/**
* Created by lht-Mac on 2017/7/11.... | Java | app/src/main/java/com/lht/dot/ui/view/PhotoShotRecyclerView.java | LiuHongtao/Dot | mit | 1,901 | 69 | codeparrot/github-code |
120959202081aff2bd436bfbae503c240d303cae971d1aaa321123e5255222ca | <?php
namespace LolApi\Classes\TournamentProvider;
/**
* TournamentCodeParameters
*
* @author Javier
*/
class TournamentCodeParameters {
// ~ maptype ~
const MAPTYPE_SUMMONERS_RIFT='SUMMONERS_RIFT';
const MAPTYPE_TWISTED_TREELINE='TWISTED_TREELINE';
const MAPTYPE_HOWLING_ABYSS='HOWLING_ABYSS';
... | PHP | src/LolApi/Classes/TournamentProvider/TournamentCodeParameters.php | javierglch/HexaniaBlogSymfony | mit | 2,170 | 77 | codeparrot/github-code |
64794abdaeb81d8a0899008191dc82e2aeb32cec56a65a628f1e744fe6d5797b | <!DOCTYPE html>
<html>
<head>
<script src="https://cdn.rawgit.com/konvajs/konva/1.4.0/konva.min.js"></script>
<meta charset="utf-8">
<title>Konva Animate Position Demo</title>
<style>
body {
margin: 0;
padding: 0;
overflow: hidden;
background-color... | HTML | public/test3.html | leinadpb/Fisica | mit | 1,205 | 48 | codeparrot/github-code |
8f0ca1f2b1b3a32e0f6afbd24933c69c5b8d92d8056570c188a090f4544a1669 | /*
* The MIT License
*
* Copyright 2015 Adam Kowalewski.
*
* 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 | opw/src/main/java/com/adamkowalewski/opw/entity/OpwLink.java | OtwartaPlatformaWyborcza/OPW-backend-JavaEE | mit | 5,602 | 185 | codeparrot/github-code |
c6ecfd1e72cf72e698cfeb94bb7101708982a66e6fa742ceca45055a98a81621 | // http://www.w3.org/2010/05/video/mediaevents.html
var poppy = popcorn( [ vid_elem_ref | 'id_string' ] );
poppy
// pass-through video control methods
.load()
.play()
.pause()
// property setters
.currentTime( time ) // skip forward or backwards `time` seconds
.playbackRate( rate )
.volume( delt... | JavaScript | popcorn-js/popcorn-api-notes.js | rwaldron/butter | mit | 2,970 | 145 | codeparrot/github-code |
b324d9a88971cbad5e7f6dbe40b5af1904b3f51ed8407c8dca250d97f6f63797 | /*
_____ __ _____________ _______ ______ ___________
/ \| | \____ \__ \\_ __ \/ ___// __ \_ __ \
| Y Y \ | / |_> > __ \| | \/\___ \\ ___/| | \/
|__|_| /____/| __(____ /__| /____ >\___ >__|
\/ |__| \/ \/ \/
Copyright (C) 2004 - 2020 Ingo Berg
Redistri... | C++ | Siv3D/src/ThirdParty/muparser/muParserDLL.cpp | Siv3D/OpenSiv3D | mit | 25,026 | 993 | codeparrot/github-code |
302d1917e835caae42cfa44a21eb7a0bcbb6204c7b185660cc7e0ea71b318c3c | <!--
Smart Data Platform - Reference Implementation
This page shows how to receive and visualize the data stream from
a sensor in real-time.
In particular data is received using Socket.IO, which provides an
abstraction layer to Websocket API.
Data visualizzation is based on D3js library (<http://d3js.org).
--... | HTML | reference-realtime/webapplication/sdp-ref/index.html | csipiemonte/smartlab | mit | 6,042 | 169 | codeparrot/github-code |
e54744f28dea002d8689e65f70fb9d9bb2eaee9d79bf00b177bea441045af178 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Topup extends MY_Controller {
/**
* Index Page for this controller.
*
* Maps to the following URL
* http://example.com/index.php/welcome
* - or -
* http://example.com/index.php/welcome/index
* - or -
* Since this co... | PHP | application/controllers/super_admin/topup.php | seegan/Myproj | mit | 1,936 | 79 | codeparrot/github-code |
197f3df618ffea433bf0d24f66f272d25dff5a1ed603b0d92823ede92536c249 | <!DOCTYPE html>
<!--[if IE 8]> <html class="ie ie8"> <![endif]-->
<!--[if IE 9]> <html class="ie ie9"> <![endif]-->
<!--[if gt IE 9]><!--> <html> <!--<![endif]-->
<head>
<!-- Basic -->
<meta charset="utf-8">
<title>VirUCA</title>
<meta name="keywords" content="" />
<meta n... | PHP | application/views/jugar.php | mariamartinmarin/virUCA | mit | 17,693 | 392 | codeparrot/github-code |
50e548a20f88b75c129a467210a56444e9c4e6bb8c6961152dfa761187601de1 | package com.management.dao.impl.calcs;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;
import org.apache.commons.dbutils.QueryRunner;
import org.apache.commons.dbutils.handlers.BeanListHandler;
import com.management.bean.calculate.ProjectCalc;
import com.management.bean.calculate.Pro... | Java | src/com/management/dao/impl/calcs/ProjectCalcDaoImpl.java | ztmark/managementsystem | mit | 2,035 | 71 | codeparrot/github-code |
b0826482055ca580786e1e698581c3bdf1e22a45a639d3fbc9b1404f8925c695 | // // Copyright (c) Microsoft. All rights reserved.
// // Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Windows;
using System.Windows.Forms;
using System.Windows.Forms.Integration;
using System.Windows.Media;
using WPFControls;
namespace... | C# | Migration and Interoperability/WindowsFormsHostingWpfControl/FormsApp/Form1.cs | Microsoft/WPF-Samples | mit | 5,367 | 156 | codeparrot/github-code |
7741d45de8b442466e6aafbc0ef19e85c5ceffe6486f193002465b3128586573 | /*
* Author: Minho Kim (ISKU)
* Date: March 3, 2018
* E-mail: minho.kim093@gmail.com
*
* https://github.com/ISKU/Algorithm
* https://www.acmicpc.net/problem/13169
*/
import java.util.*;
public class Main {
private static long[] array;
private static int N;
public static void main(String... args) {
Scann... | Java | BOJ/13169/Main.java | ISKU/Algorithm | mit | 630 | 33 | codeparrot/github-code |
63b8aded5a64905d95543542ffc60554381d2feb2b85d091b6d815a62349757b | package pp.iloc.model;
import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import pp.iloc.model.Num.NumKind;
import pp.iloc.model.Operand.Type;
import pp.iloc.parse.FormatException;... | Java | lib/pp/iloc/model/Program.java | tcoenraad/compiler-construction | mit | 7,199 | 266 | codeparrot/github-code |
c7614efa4a9087c28bed1a66db842a05b25642c7aad4570e7dd7242f4d635057 | import { IHiveMindNeuron, IHiveMindNeurons } from './HiveMindNeurons';
import { UserInput } from '../../BasicUserInput';
import { RequestContext } from '../../BasicRequestContext';
import { INeuronsResponse, ISingleNeuronsResponse, SingleNeuronsResponse } from './NeuronsResponse';
import { INeuronResponse } from '../..... | TypeScript | src/emergent/hivemind/neurons/PureEmergentHiveMindNeurons.ts | OFTechLabs/oratio | mit | 2,881 | 66 | codeparrot/github-code |
779354174ca1e0761043176da1dccf48ff7a94ac297d5449b39f6811f781a82c | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>circuits: 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/extra-dev/8.11.dev/circuits/8.6.0.html | coq-bench/coq-bench.github.io | mit | 6,830 | 166 | codeparrot/github-code |
0a2e65381d7e8cce810435dc12a318e8b1b2f5312f8f57d036b6c1b555cb5491 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-abel: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.m... | HTML | clean/Linux-x86_64-4.07.1-2.0.6/released/8.9.0/mathcomp-abel/1.0.0.html | coq-bench/coq-bench.github.io | mit | 7,438 | 184 | codeparrot/github-code |
d7669daea2c4c8fde07a572eb9926fb2c281ff137813aa8513f668f206e53283 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Aug 25 21:11:45 2017
@author: hubert
"""
import numpy as np
import matplotlib.pyplot as plt
class LiveBarGraph(object):
"""
"""
def __init__(self, band_names=['delta', 'theta', 'alpha', 'beta'],
ch_names=['TP9', 'AF7', 'A... | Python | python/extra_stuff/livebargraph.py | bcimontreal/bci_workshop | mit | 940 | 51 | codeparrot/github-code |
831390358def69ef7ea3e48b3a09c59faea2e00fef1906be24424c4e532e0be7 | #!/usr/bin/env bash
# DETAILS: Invokes rsyncs with well known better options.
# CREATED: 06/29/13 16:14:34 IST
# MODIFIED: 10/24/17 14:36:30 IST
#
# AUTHOR: Ravikiran K.S., ravikirandotks@gmail.com
# LICENCE: Copyright (c) 2013, Ravikiran K.S.
#set -uvx # Warn unset vars as error, Verbose (echo each com... | Shell | bash/rsync.sh | rkks/scripts | mit | 5,109 | 131 | codeparrot/github-code |
b7dd665c8780af25cf7b711cb2582ad6c2c7c2ae344689973886af7183a40201 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<title>Transaction</title>
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.hr... | HTML | html/doc/nxt/Transaction.html | stevedoe/nxt-client | mit | 13,838 | 462 | codeparrot/github-code |
b22cbb7843414b77faba14c90474336f028b879af02546adc12f5b63f90bcbf8 | <?php
namespace Ekyna\Bundle\CartBundle\Provider;
use Ekyna\Bundle\CartBundle\Model\CartProviderInterface;
use Ekyna\Bundle\OrderBundle\Entity\OrderRepository;
use Ekyna\Component\Sale\Order\OrderInterface;
use Ekyna\Component\Sale\Order\OrderTypes;
use Symfony\Component\HttpFoundation\Session\SessionInterface;
/**
... | PHP | Provider/CartProvider.php | ekyna/CartBundle | mit | 2,735 | 127 | codeparrot/github-code |
a711bf88e82055a4f59476cab485650e85e9e715176ae465116478fb6a2f8180 | # -*- coding: utf-8 -*-
from modules import Robot
import time
r = Robot.Robot()
state = [0, 1000, 1500]
(run, move, write) = range(3)
i = run
slowdown = 1
flag_A = 0
flag_C = 0
lock = [0, 0, 0, 0]
while(True):
a = r.Read()
for it in range(len(lock)):
if lock[it]:
lock[it] = lock[it] - 1
... | Python | pilot.py | KMPSUJ/lego_robot | mit | 4,777 | 146 | codeparrot/github-code |
f2beebcffe8e5da3aa628e75ec0a2115fc61f0cda5a75b29e9d93c166e4939a9 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
using System.Collections.Generic;
using Windows.Foundation.Collections;
using Windows.Media;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Contr... | C# | MixedRemoteViewCompositor/Samples/LowLatencyMRC/UWP/Viewer/Playback.xaml.cs | jimshalo10/HoloLensCompanionKit | mit | 4,070 | 130 | codeparrot/github-code |
3a5ae45cd0349e3ec5bb3ea0afb2daafcb9c4e1a7019307cf1aee5f52511eb8a | #ifndef _SIMPLE_POLYGON_H
#define _SIMPLE_POLYGON_H
#include <vector>
#include <QtOpenGL>
#include "AGVector.h"
#include "Triangulate.h"
#define MAX_DIST 0.1
using std::vector;
class SimplePolygon {
public:
SimplePolygon();
~SimplePolygon();
void DrawPolygon();
void Clear();
void Update(AGVector v,... | C | headers/SimplePolygon.h | thejnich/ArtGalleryProblem | mit | 808 | 39 | codeparrot/github-code |
326ed60a2455d03181f9aa4d46be1aee48b6e4526370b6ce67c2f98cc5818b46 | /*
* This code it's help you to check JS plugin function (e.g. jQuery) exist.
* When function not exist, the code will auto reload JS plugin from your setting.
*
* plugin_name: It's your plugin function name (e.g. jQuery). The type is string.
* reload_url: It's your reload plugin function URL. The type is string.... | JavaScript | checkJSPluginExist.js | opoepev/checkJSPluginExist | mit | 1,273 | 35 | codeparrot/github-code |
54e78ae71357ee04b9d6ddcd3d9b9ffbdf05724548b0ae0e9b13f376cae67cf1 | # -*- coding: utf-8 -*-
from django.db import models
from Corretor.base import CorretorException
from Corretor.base import ExecutorException
from Corretor.base import CompiladorException
from Corretor.base import ComparadorException
from Corretor.base import LockException
from model_utils import Choices
class Retorn... | Python | AMAO/apps/Corretor/models/retorno.py | arruda/amao | mit | 2,625 | 66 | codeparrot/github-code |
f48c3339de1201c2881bb8b1f4610e99174953ec08594c2a6a7564bcbb80210e | <?php
require "../zxcd9.php";
//$stmt = $db->prepare("SELECT * from fin_allotments where hrdbid=:id");
//$stmt->bindParam(':id', $_SESSION['id']);
//$stmt->execute();
//$rowfa = $stmt->fetch(PDO::FETCH_ASSOC);
//echo $rowfa['hrdbid'];
// echo $_SESSION['id'];
// while ($rowfa = $stmt->fetch(PDO::FETCH_ASSOC)) {... | PHP | finance/allotments.php | jmigdelacruz/SLPonline | mit | 18,757 | 637 | codeparrot/github-code |
6805ee40e43e5620f3a3e280cc1a49a54458d4fdc72dc80e0a6744b4ed53b4f9 | namespace XHTMLClassLibrary.AttributeDataTypes
{
/// <summary>
/// One or more digits.
/// </summary>
public class Number : IAttributeDataType
{
private int? _number = null;
public string Value
{
get
{
if (_number.HasValue)
... | C# | fb2epub/HTML5ClassLibrary/AttributeDataTypes/Number.cs | LordKiRon/fb2converters | mit | 691 | 33 | codeparrot/github-code |
aa52fe5dc04b47af51b9086964a363e532dc65e507407fc7a6b17e67d2984a9a | require "houston/releases/engine"
require "houston/releases/configuration"
module Houston
module Releases
extend self
def dependencies
[ :commits ]
end
def config(&block)
@configuration ||= Releases::Configuration.new
@configuration.instance_eval(&block) if block_given?
@con... | Ruby | lib/houston/releases.rb | houston/houston-releases | mit | 1,708 | 66 | codeparrot/github-code |
4833e729f50df16862252e98c967987c61e0dcd85863186be21d93f4c39ad019 | const path = require('path');
const inquirer = require('inquirer');
const yargs = require('yargs');
const {
sanitizeArgs,
ui,
invalidGitRepo,
ingredients,
addIngredients,
promiseTimeout
} = require('../common');
const {
cloneRepo,
deleteGitFolder,
establishLocalGitBindings,
addGitRemote,
pushLoca... | JavaScript | commands/prepare.js | appirio-digital/ezbake | mit | 6,465 | 231 | codeparrot/github-code |
7e9e256758a85e872a4895d517c0e76765d0893551f31dd731a3d87a450baf32 | import React from 'react'
import { useSelector } from 'react-redux'
import Container from 'react-bootstrap/Container'
import Row from 'react-bootstrap/Row'
import Col from 'react-bootstrap/Col'
import MoveSelector from '../containers/move-selector'
import Footer from '../containers/footer'
import Player from '../conta... | JavaScript | src/components/game.js | koscelansky/Dama | mit | 1,182 | 48 | codeparrot/github-code |
fc349b16677a466743a6fae12bdaab063cb5a814a0320cd8113721d92ded1450 | namespace EnergyTrading.MDM.Test.Contracts.Validators
{
using System;
using System.Collections.Generic;
using System.Linq;
using EnergyTrading.MDM.ServiceHost.Unity.Configuration;
using global::MDM.ServiceHost.Unity.Sample.Configuration;
using Microsoft.Practices.Unity;
using NUnit.Framew... | C# | Code/Service/MDM.UnitTest.Sample/Contracts/Validators/BrokerValidatorFixture.cs | RWE-Nexus/EnergyTrading-MDM-Sample | mit | 6,568 | 166 | codeparrot/github-code |
ae0cb5d8a40448781eff65d7ee682767cc379e834656539a1aa5de0ca299962a | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `mk_bare_fn` fn in crate `rustc_typeck`.">
<meta name="keyw... | HTML | Rust/share/doc/rust/html/rustc_typeck/middle/ty/fn.mk_bare_fn.html | ArcherSys/ArcherSys | mit | 4,495 | 95 | codeparrot/github-code |
c2c80f7a11b90f77ec328e34767e7fd07d05f0de0ff39b8aab7e8a765da13596 | const fs = require('fs');
const path = require('path');
class Service {
constructor() {
this.getFileRecursevly = this.getFileRecursevly.bind(this);
this.getFiles = this.getFiles.bind(this);
}
getFileRecursevly(folderPath, shortPath = '') {
var files = [];
var folder = fs.read... | JavaScript | app/src/TreeView/service.js | blckt/electron | mit | 1,003 | 32 | codeparrot/github-code |
77032c9a2e0f13d20ba566c34e883b1610af0f91c9cda19718b5399005f8fcb9 | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="MemoryStandardStream.Read.cs" company="Naos Project">
// Copyright (c) Naos Project 2019. All rights reserved.
// </copyright>
// ----------------------------------------------... | C# | Naos.Database.Domain/Protocols/Classes/Stream/MemoryStandard/MemoryStandardStream.Read.cs | NaosProject/Naos.Database | mit | 10,170 | 231 | codeparrot/github-code |
cbed10017d2d461f4e66ce1fb161dcd672c8b270f4467af1550ec698421d52ae | package com.falcon.cms.web.rest;
import com.falcon.cms.web.rest.vm.LoggerVM;
import ch.qos.logback.classic.Level;
import ch.qos.logback.classic.LoggerContext;
import com.codahale.metrics.annotation.Timed;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.a... | Java | src/main/java/com/falcon/cms/web/rest/LogsResource.java | dooma/falconcms | mit | 1,166 | 40 | codeparrot/github-code |
463f7e241344ca1ff3870ee14af81c7a0fd31497dbadb380057006646aee05e7 | #include "stdafx.h"
#include "record.hpp"
namespace tc { namespace log {
const char* record::type_acronym( void ) const {
switch( type ) {
case log::trace: return "T";
case log::debug: return "D";
case log::info: return "I";
case log::warn: return "W";
case log::error: return "E";
case log::fatal: return "F";
... | C++ | srcs/tc.log/record.cpp | aoziczero/deprecated-libtc | mit | 591 | 33 | codeparrot/github-code |
5b61787cc9048fdbcee1d34c91dac3f863e826b5664241785d2df62b038e2a3d | <!DOCTYPE html>
<html><head>
<script type="text/javascript" src="lightgl.js"></script>
<script type="text/javascript" src="csg.js"></script>
<script type="text/javascript" src="openjscad.js"></script>
<script type="text/javascript" src="braille.jscad" charset="utf-8"></script>
<script type="text/javascript" src="jquer... | HTML | index.html | v01pe/Text2Braille3d | mit | 3,907 | 141 | codeparrot/github-code |
9e10a315390198116c29c4edc206afb8bbd6b93698517b73389870acdee1ea9d | 'use strict';
var _ = require('./underscore-mixins.js');
var fnToNode = new Map();
exports.load = function (nodes, prefix) {
let uuid = require('uuid');
if (prefix != null && prefix.length > 0) {
prefix = prefix + ':';
} else {
prefix = '';
}
_(nodes).forEach(function (fn, name... | JavaScript | lib/dag.js | Alex-D/one-gulp | mit | 8,407 | 357 | codeparrot/github-code |
bf70ad51b03f0667e98a291d1d14615c9441552ce6af07f6333822085528f291 | package com.dranawhite.mybatis.handler;
import com.alibaba.fastjson.JSON;
import com.dranawhite.mybatis.model.Address;
import com.dranawhite.mybatis.model.FullAddress;
import org.apache.ibatis.type.JdbcType;
import org.apache.ibatis.type.MappedJdbcTypes;
import org.apache.ibatis.type.MappedTypes;
import org.apache.iba... | Java | test-framework/test-mybatis/src/main/java/com/dranawhite/mybatis/handler/FullAddressJsonHandler.java | dranawhite/test-java | mit | 1,582 | 49 | codeparrot/github-code |
ac18789236b07295c900ab8a610d52cd8fac8498ae884cbc024cd008320889bc | <!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/css/css_compiled/@{photonImagePath}plugins/elrte/js/plugins/prettify/js/plugins/prettify/css/css_compiled/css/css_compiled/photon-min.css-v1.1.html | user-tony/photon-rails | mit | 17,803 | 197 | codeparrot/github-code |
18e8ba65a4c458d3739241a832ef6ec0ad1e48bceeb9e62d111b590cdf6e8c4f | export hom, hom_check
"""
`hom_check(G,H,d)` checks if the dictionary `d` is a graph homomorphism
from `G` to `H`.
"""
function hom_check(G::SimpleGraph, H::SimpleGraph, d::Dict)::Bool
for e in G.E
v, w = e
x = d[v]
y = d[w]
if !H[x, y]
return false
end
end
... | Julia | src/hom.jl | scheinerman/SimpleGraphAlgorithms.jl | mit | 1,166 | 67 | codeparrot/github-code |
950eae80f2bd9d47718167f15af5617b187a8563dc3c900420a4fb7b7dde53ba | /*
* Copyright (C) 2013 The Android Open Source Project
*
* 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 app... | Java | App/BluetoothLeGatt/Application/src/main/java/com/example/android/bluetoothlegatt/DeviceControlActivity.java | cedar-renjun/RemoteControl-Car | mit | 25,248 | 664 | codeparrot/github-code |
20e59d23e71fc61dbe2039fe643a02ff9688a71d25a5d3117059fe9b67a13aed | require('babel-polyfill');
/* eslint-disable */
// Webpack config for creating the production bundle.
var path = require('path');
var webpack = require('webpack');
var CleanPlugin = require('clean-webpack-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var strip = require('strip-loader');
va... | JavaScript | webpack/prod.config.js | chuson1996/frontend-advisor | mit | 3,197 | 87 | codeparrot/github-code |
187cc8cb315582603439d0d1fd419ea5fd8c9ea0c6af5ccc61c825859fabb859 | using OpenTK;
using OpenTK.Graphics.OpenGL;
namespace p_1
{
class Spritebatch
{
public static void DrawSprite(Texture2D texture, RectangleF rectangle)
{
DrawSprite(texture, new Vector2(rectangle.X, rectangle.Y), new Vector2(rectangle.Width / texture.Width, rectangle.Height / texture.Height), Color.White, Vect... | C# | SpriteBatch.cs | doshaq/Dosha_Engine | mit | 2,305 | 74 | codeparrot/github-code |
de22e7dd7233b8ae724bbc81f3e143c6221a1a77b8269cd9138e72b76d3b53b5 | /*
* Copyright 2011 Matt Crinklaw-Vogt
*
* 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, publ... | Java | src/examples/java/com/tantaman/commons/examples/ParallelForDemo.java | tantaman/commons | mit | 2,605 | 75 | codeparrot/github-code |
00b4d1cfc216225fc0110eab7a0997f4fd78f4b89140e0e21c4658e721a03c29 | <?php
namespace Akamon\OAuth2\Server\Domain\Service\Token\TokenGranter;
use Akamon\OAuth2\Server\Domain\Exception\OAuthError\GrantTypeNotFoundOAuthErrorException;
use Akamon\OAuth2\Server\Domain\Exception\OAuthError\UnauthorizedClientForGrantTypeOAuthErrorException;
use Akamon\OAuth2\Server\Domain\Exception\OAuthErro... | PHP | src/Akamon/OAuth2/Server/Domain/Service/Token/TokenGranter/TokenGranterByGrantType.php | Akamon/oauth2-server | mit | 2,338 | 72 | codeparrot/github-code |
7875d30913cc78640d63a96c66d484295adce8e3b430e20f987f6d2076b9ff9c | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>metacoq-safechecker: 6 m 37 s</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.... | HTML | clean/Linux-x86_64-4.05.0-2.0.6/released/8.8.1/metacoq-safechecker/1.0~alpha+8.8.html | coq-bench/coq-bench.github.io | mit | 10,954 | 201 | codeparrot/github-code |
13e31f89a8eff4420f7d22fbb7f82ef7cca67680c05ac75d84ceaef59e15f06c | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jmlcoq: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css"... | HTML | clean/Linux-x86_64-4.08.1-2.0.5/released/8.7.0/jmlcoq/8.13.0.html | coq-bench/coq-bench.github.io | mit | 7,094 | 175 | codeparrot/github-code |
75cd1b78052a6893c3ec9a6cbefb2c42d54e539e06934b0e545e40c1813e043f | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>propcalc: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.cs... | HTML | clean/Linux-x86_64-4.03.0-2.0.5/released/8.6/propcalc/8.9.0.html | coq-bench/coq-bench.github.io | mit | 7,369 | 177 | codeparrot/github-code |
cfd406418b011a5e349544cca26151a188daeae8822fa3e5dc6243efa212d36f | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>karatsuba: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.c... | HTML | clean/Linux-x86_64-4.07.1-2.0.6/released/8.7.1+1/karatsuba/8.6.0.html | coq-bench/coq-bench.github.io | mit | 6,907 | 170 | codeparrot/github-code |
29932b6f3a76d8fc51264bb8eb133b70055828d6d71a349540d0874bb4190851 | package com.flockinger.spongeblogSP.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.documentation.service.A... | Java | src/main/java/com/flockinger/spongeblogSP/config/SwaggerConfig.java | daflockinger/spongeblogSP | mit | 1,216 | 32 | codeparrot/github-code |
5a06b97ea2bb60774c8d4fa903f81ac4bdbd77449974efa731568dd7f9fd327f | import {keccak256, bufferToHex} from "ethereumjs-util"
export default class MerkleTree {
constructor(elements) {
// Filter empty strings and hash elements
this.elements = elements.filter(el => el).map(el => keccak256(el))
// Deduplicate elements
this.elements = this.bufDedup(this.eleme... | JavaScript | utils/merkleTree.js | livepeer/protocol | mit | 3,202 | 136 | codeparrot/github-code |
0b075f82fd22e0c07cf756cf98a28dd7f8474f13e397779d86447749b9157c50 | //
// peas.js
//
// tree data structure in javascript
//
//////////////////////////
var peas = function() {
// "sub" here is used as an object container for
// operations related to sub nodes.
// Each pea node will have a "sub" property
// with an instance of "sub"
var sub = function() {}
// the current node... | JavaScript | peas.js | nzonbi/peas.js | mit | 4,109 | 268 | codeparrot/github-code |
b62100c8208345322a07f32010bc78c1ce858ac13f898c39800d7a21cc2f5fca | using System;
using System.Linq;
using System.Reflection;
using System.Text;
namespace Stealer
{
public class Spy
{
public string StealFieldInfo(string className, params string[] fieldsNames)
{
var sb = new StringBuilder();
sb.AppendLine($"Class under investigation: {c... | C# | C# OOP Advanced/Reflection/Stealer/Spy.cs | BlueDress/School | mit | 855 | 31 | codeparrot/github-code |
15ac27f71e68c2775050ada35e54d94d89b5592231f38bf1048e0bda5b394340 | /*
* engine.h
*
* Created on: Mar 9, 2017
* Author: sushil
*/
#ifndef ENGINE_H_
#define ENGINE_H_
class InputMgr;
#include <GfxMgr.h>
#include <inputMgr.h>
#include <EntityMgr.h>
#include <gameMgr.h>
#include <Types.h>
#include <UiMgr.h>
#include <SoundMgr.h>
#include <Grid.h>
class EntityMgr;
class Eng... | C | inc/engine.h | dissolete/Cries | mit | 900 | 62 | codeparrot/github-code |
154079d670643c54605af1b13c2e20e466f817c0aec954de9105e2c48f643831 | import React from 'react';
import { withStyles } from '@material-ui/core/styles';
import { green } from '@material-ui/core/colors';
import Radio, { RadioProps } from '@material-ui/core/Radio';
import RadioButtonUncheckedIcon from '@material-ui/icons/RadioButtonUnchecked';
import RadioButtonCheckedIcon from '@material-u... | TypeScript | docs/src/pages/components/radio-buttons/RadioButtons.tsx | kybarg/material-ui | mit | 1,939 | 69 | codeparrot/github-code |
f509c06f3c616bd268e370046f5e81f1021740de61a9010f170106b0f8cbda0a | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'><head><title>app/helpers/cars_helper.rb - C0 code coverage information</title>
<style type='text/css'>body { background-color: ... | HTML | coverage/app-helpers-cars_helper_rb.html | jared/ygo_classic | mit | 13,184 | 613 | codeparrot/github-code |
3877d72e4c40f17c6ad96195a9c86ddd9747cd89c56be124c96a67871e0302e1 | class JeraPushGenerator < Rails::Generators::NamedBase
desc "This generator creates an initializer file at config/initializers"
source_root File.expand_path("../templates", __FILE__)
MissingModel = Class.new(Thor::Error)
def initializer_file
template 'jera_push.rb', 'config/initializers/jera_push.rb'
... | Ruby | lib/generators/jera_push/jera_push_generator.rb | jera/jera-push | mit | 1,499 | 44 | codeparrot/github-code |
4ec50a75ef946891d3b65ff5cc290f872a318ceef6b46b8254fc2a54d24c5687 | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2011-2012 Litecoin Developers
// Copyright (c) 2013 doriancoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-licen... | C++ | src/wallet.cpp | doriancoin/doriancoin-v3 | mit | 52,573 | 1,618 | codeparrot/github-code |
843f908bdcdddedf3fbca72c83cb1ebd803395d04454a7c2578e1c95650c0f77 | var final_transcript = '';
var recognizing = false;
//var socket = io.connect('http://collab.di.uniba.it:48922');//"http://collab.di.uniba.it/~iaffaldano:48922"
//socket.emit('client_type', {text: "Speaker"});
if ('webkitSpeechRecognition' in window) {
var recognition = new webkitSpeechRecognition();
recognitio... | JavaScript | client/src/js/transcriptor.js | collab-uniba/scriba | mit | 2,610 | 99 | codeparrot/github-code |
39a591e966ee537c9504615f9ff4ead1621418c6c27a4ad9f190938602f03d20 | /* eslint-disable promise/always-return */
import { runAuthenticatedQuery, runQuery } from "schema/v1/test/utils"
describe("UpdateCollectorProfile", () => {
it("updates and returns a collector profile", () => {
/* eslint-disable max-len */
const mutation = `
mutation {
updateCollectorProfile(in... | JavaScript | src/schema/v1/me/__tests__/update_collector_profile.test.js | mzikherman/metaphysics-1 | mit | 2,055 | 75 | codeparrot/github-code |
dc2f115ae3dd661ee10cdaff4200b87ccdec82a4dc8df39eaafc6fe12ebf2989 | /**
* Created by Administrator on 2017/3/11.
*/
public class ReverseWordsInSequence {
public void reverseSequence(String str) {
if (str == null) return;
String[] strArray = str.split(" ");
StringBuilder sb = new StringBuilder();
for (int i = strArray.length-1; i >= 0; --i)
... | Java | 042_ReverseWordsInSequence.java | RudyZH/Aim2Offer | mit | 1,796 | 63 | codeparrot/github-code |
19505623d3878b5f11ee826b0ff91636b747295bc1781102e413bc50a9f9b209 | <?php
class Autoreportemail_model extends CI_Model {
public function __construct()
{
parent::__construct();
}
public function get_milist($where = array())
{
$this->db->select('*');
$this->db->where($where);
$query = $this->db->get('autoreport_email');
re... | PHP | application/models/Autoreportemail_model.php | garpepi/Mini-HRM | mit | 2,189 | 81 | codeparrot/github-code |
85beb920f268d1ef87113c7055f00ce53df584930b0277255e0ed0d16f69d94b | <!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>CTEArmorRicochet | demofile</title>
<meta name="description" content="Documentation for demofile">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel=... | HTML | docs/interfaces/_sendtabletypes_.ctearmorricochet.html | saul/demofile | mit | 6,739 | 170 | codeparrot/github-code |
8d2eb64eac06e5bd60c841303f3bd96817977ebe14c4c81fdd6734790b850c62 | /*!
* Bootstrap v3.3.7 (http://getbootstrap.com)
* Copyright 2011-2016 Twitter, Inc.
* Licensed under the MIT license
*/
if (typeof jQuery === 'undefined') {
throw new Error('Bootstrap\'s JavaScript requires jQuery')
}
+function ($) {
'use strict';
var version = $.fn.jquery.split(' ')[0].split('.')
if ((v... | JavaScript | js/bootstrap.js | austinxiao-ucsd/cogs120-webapp | mit | 71,641 | 2,450 | codeparrot/github-code |
65bece48d99d9b3dc7690cdd80f8ccd77d734eb30352aa552ed86078c1c31c1f | #!/bin/sh -e
usage()
{
echo "Usage: ${0} [--structure-only] DATABASE_NAME"
}
STRUCTURE_ONLY=false
if [ "${1}" = --structure-only ]; then
STRUCTURE_ONLY=true
shift
fi
DATABASE_NAME="${1}"
if [ "${DATABASE_NAME}" = "" ]; then
usage
exit 1
fi
if [ "${STRUCTURE_ONLY}" = true ]; then
FILE="${D... | Shell | bin/backup-database.sh | FunTimeCoding/mysql-tools | mit | 717 | 40 | codeparrot/github-code |
adaec32f7c97dae43f5cdb850f4b2bbcbd9d354e7c294fad081b9dd3f46be769 | #! /usr/bin/env node
import minimist from 'minimist'
import Avifors from './Avifors'
import YamlModelBuilder from './model/YamlModelBuilder'
import Configuration from './Configuration'
import {helpMessage} from './help'
import YamlHelper from './tools/YamlHelper'
const avifors = new Avifors()
const corePlugins = ['./... | JavaScript | src/main.js | antarestupin/Avifors | mit | 994 | 34 | codeparrot/github-code |
443e010a7590a6c92c89cc938ff17ff814128503c896aefc3d661f3bb80181e8 | # -*- coding: utf-8 -*-
import os.path
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.conf import settings as django_settings
from django.db.models import signals
from know.plugins.attachments import settings
from know import managers
from know.models.pluginbase import ... | Python | src/gork/application/know/plugins/attachments/models.py | indexofire/gork | mit | 6,582 | 193 | codeparrot/github-code |
7890a8be822fe0f2c375ba360c4c7a3ff16a325f16bc57eb19295a972505b6fe | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>dep-map: 32 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="sty... | HTML | clean/Linux-x86_64-4.09.1-2.0.6/released/8.7.1+1/dep-map/8.7.0.html | coq-bench/coq-bench.github.io | mit | 8,726 | 181 | codeparrot/github-code |
993fc3bd61213a450e14f9c7ecdc1ececf30ace33fe6f16542331937989c79e9 | package h1z1.screens;
import h1z1.MainFrame;
import h1z1.game.GameState;
import h1z1.input.ButtonHandler;
import h1z1.input.InputButton;
import h1z1.input.InputProvider;
import h1z1.io.ResourceManager;
import javax.imageio.ImageIO;
import java.awt.*;
import java.util.List;
import h1z1.game.Maze;
public class PlayGa... | Java | src/main/java/h1z1/screens/PlayGameScreenManager.java | johnathandavis/H1Z1 | mit | 1,193 | 49 | codeparrot/github-code |
b21b019ec749728c9ab25d9928b18f927e2b0d4af6c946a732d784c51b69b1e6 | import express from 'express'
import cors from 'cors'
import bodyParser from 'body-parser'
import helmet from 'helmet'
import httpStatus from 'http-status'
import path from 'path'
import routes from './routes'
import logger from './helpers/logger.js'
const app = express()
// Pug
app.set('view engine', 'pug')
app.set... | JavaScript | app/app.js | AitorDB/API-NodeJS | mit | 1,199 | 53 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.