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 |
|---|---|---|---|---|---|---|---|---|
7751b975dc23cfaac2760ee34957202a87a52a6124179cae2834ef5a75df1764 | use {Player,SQ,File,Piece};
use core::masks::*;
use core::score::*;
const BONUS: [[[Score; (FILE_CNT / 2)]; RANK_CNT]; PIECE_TYPE_CNT] = [
[ // NO PIECE
[ Score(0, 0), Score(0, 0), Score(0, 0), Score(0, 0)],
[ Score(0, 0), Score(0, 0), Score(0, 0), Score(0, 0)],
[ Score(0, 0), Score(0, 0... | Rust | pleco/src/helper/psqt.rs | sfleischman105/Pleco | mit | 7,236 | 157 | codeparrot/github-code |
a7c0f9ed05cf529bfdff2f482ad563a0af71a27b1a94e95f139d354ac3b3735c | /*
* Copyright (c) 2015 Uber Technologies, Inc.
*
* 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, me... | Java | tchannel-core/src/main/java/com/uber/tchannel/messages/RawResponse.java | uber/tchannel-java | mit | 5,647 | 176 | codeparrot/github-code |
e19842632d2ba28c637af2cf218a1f5dfb8a40c2cc4d5f3a8d8de25d3f9241c2 | <?php
declare(strict_types=1);
namespace Test\Unit\Common\EventDispatcher;
use Common\EventDispatcher\EventDispatcher;
use PHPUnit\Framework\TestCase;
final class EventDispatcherTest extends TestCase
{
/**
* @test
*/
public function it_dispatches_events_to_generic_subscribers_and_domain_specific_su... | PHP | test/Unit/EventDispatcher/EventDispatcherTest.php | matthiasnoback/php-workshop-tools | mit | 1,766 | 68 | codeparrot/github-code |
c8e353a75321c09a7c26a536ac204e535f610bdf705193c5b4a31ed8e262a81f | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| ------------ -------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| ... | PHP | application/config/routes.php | Godan/progress_useless | mit | 2,012 | 58 | codeparrot/github-code |
d9e9f4983ddab14a3857a674d6e6090992193d80d460eaff8c9620e3c1cdd445 | var _ = require( 'lodash' );
var fs = require( 'fs' );
var path = require( 'path' );
var Promise = require( 'bluebird' );
var getKey = require( '../util/ssh-keys' );
var Connection = require( 'ssh2' );
module.exports = {
getReadStreams: getReadStreams,
cleanup: closeConnection
};
function getReadStreams(request, op... | JavaScript | lib/channels/scp.js | lkwdwrd/mc-download | mit | 5,082 | 205 | codeparrot/github-code |
91624eb50c9fed29b243ef77f0bc6e6140c60e4ccd0017a9941fa9a7ce9d0cc7 | STYLES = {
"side_color": "#4C9BB0",
"header_color": "#306B7B",
"header_bg_color": "#E4EEF1",
"text_color": "#272B33"
}
def get_documentation(bean_name, file_path, function_name, function_metadata):
model_doc = dict(STYLES)
model_doc["links"] = [{"href": "go_to_definition", "text": "Go to Definition"}]
model_do... | Python | src/modelcompletions/documentation.py | jcberquist/SublimeText-Lucee | mit | 1,258 | 36 | codeparrot/github-code |
dc8caad62fe05fa2e0eb586dfc753252d6ae2a5b6e57ff522be6908fa419f0e4 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Start Page</title>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/meshki/1.4.2/meshki.min.css">
<script type="text/javascript" src=... | HTML | Desktop_version/www/app/simple_start.html | danielpetrica/Telegram-Desktop-themes-maker | mit | 5,808 | 133 | codeparrot/github-code |
0ec9f122c6c4fc13b297b81b05df7ee7088ae6bfa27f32b54772b01fe4815e8a | using System.Collections.Generic;
using System.Linq;
namespace VistaMedTools
{
public partial class PrevalidatorParamsForm : DateRangeParamsForm
{
public PrevalidatorParamsForm()
{
InitializeComponent();
}
public override void SetDataSource(object source)
{... | C# | VistaMedTools/Utilites/PrevalidatorParamsForm.cs | vvboborykin/VistaMedTools | mit | 1,189 | 41 | codeparrot/github-code |
a1d68d7c7da706ee48973160684f7b192fa08f8f5809e86a5f088c797e25a0d6 | jQuery(function(){
// 20130129 - no longer using 'is_primary'
// jQuery('form.edit_study_subject input:checkbox.is_primary_selector').click(function(){
// /* if primary is checked,
// check partial race as well as uncheck other primary
// */
// if( jQuery(this).prop('checked') ){
// jQuery('#'+jQuery(this).at... | JavaScript | app/assets/javascripts/edit_study_subject.js | ccls/odms | mit | 1,819 | 56 | codeparrot/github-code |
3738f4c36b9910b70d151275715e6009f3f55ba49a6b2227c424cdcebee7c040 | 'use strict';
var Config = require('../config');
var Environment = require('../environ');
var TitleState = function() {};
function _waitForStart() {
if (this.input.keyboard.isDown(Config.Keymap.Start) || this.input.activePointer.isDown) {
this.game.state.start('title', true, false);
}
}
function _p... | JavaScript | src/gradience/states/game-over.js | rehabstudio/ludumdare-32 | mit | 2,592 | 92 | codeparrot/github-code |
8e78b6be9e70aaf90ad27b8e55f76aacef81e8bdbd959749b7f17ffc366b4f89 | package org.clafer.compiler;
import java.util.ArrayList;
import java.util.List;
import org.chocosolver.solver.Model;
import org.chocosolver.solver.Solution;
import org.chocosolver.solver.Solver;
import org.chocosolver.solver.constraints.Constraint;
import org.chocosolver.solver.search.strategy.Search;
import org.choco... | Java | src/main/java/org/clafer/compiler/ClaferMultiObjectiveOptimizerGIA.java | gsdlab/chocosolver | mit | 5,874 | 180 | codeparrot/github-code |
fef8d1cdbbf3ebebb53e55a5a55e138ca1e95c921af65f765e6583c245734680 | var ENV = {
debug: true
};
ENV.data = {};
seajs.use('nav');
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-33919587-17']);
_gaq.push(['_setDomainName', '${domain}']);
_gaq.push(['_setAllowHash', false]);
var dpga = function (key) {
_gaq.push(['_trackPageview', key || ''])
}
var pageTracker = {_trackPagevi... | JavaScript | static/seajs/js/init.js | yongli82/swallow | mit | 1,749 | 49 | codeparrot/github-code |
789434c7b1b71de3297a84faf37930c87686e4b5d9e9c0d079f49ece4dc14c54 | var expect = require('chai').expect,
Postman = require('../../../lib/importers/postman'),
Project = require('../../../lib/entities/project'),
_ = require('lodash');
describe('Postman Importer', function() {
var postmanImporter;
beforeEach(function() {
postmanImporter = new Postman();
});
describe('... | JavaScript | test/lib/importers/postman.js | stoplightio/api-spec-converter | mit | 6,123 | 203 | codeparrot/github-code |
0be78a4e02d172996e0c4c9d740c7fdf1657412ecc6d660a3a9595394d83f2be | <!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Lesson 4 - JavaScript Introduction Pt. 2</title>
<meta name="description" content="This is an introduction to JavaScript curriculum, developed by Sylvia Richardson for the Raleigh/Durham chapter.
The course is meant to be taught in... | HTML | class4.html | architechs/techtalks | mit | 26,181 | 645 | codeparrot/github-code |
e5ee383d97167556d2b55f717076ba51e0adcb5ae4405cceb1701468070014ad | #region MIT License
/*Copyright (c) 2012-2013, 2015 Robert Rouhani <robert.rouhani@gmail.com>
SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), ... | C# | Source/[Tools]/[Libraries]/SharpFont/GlyphSlot.cs | jbatonnet/system | mit | 13,492 | 465 | codeparrot/github-code |
f639cb171626e7f3b5b39f7ef42871043dd0f9abf7227e4f14233ddf352c6e01 | <?php
namespace App\Containers\Debugger\Tasks;
use App;
use App\Ship\Parents\Tasks\Task;
use DB;
use Illuminate\Support\Facades\Config;
use Log;
/**
* Class QueryDebuggerTask.
*
* @author Mahmoud Zalt <mahmoud@zalt.me>
*/
class QueryDebuggerTask extends Task
{
/**
* Write the DB queries in the Log and... | PHP | app/Containers/Debugger/Tasks/QueryDebuggerTask.php | Drummer01/ForestChat | mit | 1,243 | 49 | codeparrot/github-code |
afabafbf5d713416fa250fc9a9bfb9e90a0d132ccee7a21173d7ec1014b66322 | using promoCodeApp.Models;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Net;
using System.Threading.Tasks;
using System.Web.Mvc;
namespace promoCodeApp.Controllers
{
[Authorize]
public class gamePackagesController : Controller
{
private promoCodeDbCon... | C# | WebAppCode/promoCodeApp/Controllers/gamePackagesController.cs | pujariamol/promo_code_generator | mit | 6,027 | 156 | codeparrot/github-code |
ee61cec11be1a718aa7568c69ed0af578836f433a603abcfc03b999990d5b3c3 | angular.module('mymasjid.services')
.factory("PushRegistration", function(
Restangular,
$ionicPlatform,
$cordovaPushV5,
appConfig,
$q
) {
function initialize() {
if(window.PushNotification == null){
console.error("Couldn't find PushNotification, only available on device.");
return;
}
... | JavaScript | www/app/push_registration.serv.js | masjidnow/mymasjid-app | mit | 1,900 | 70 | codeparrot/github-code |
242f51320d23f16160ff160cefe7c930f1b25d5df56584c2cf3024922e5370bf | MIME-Version: 1.0
Server: CERN/3.0
Date: Monday, 06-Jan-97 21:34:58 GMT
Content-Type: text/html
Content-Length: 9401
Last-Modified: Monday, 22-Jul-96 19:24:47 GMT
<HTML>
<!-- This document is in HyperText Markup Language. HTML tags are enclosed
-- in angle brackets. This is a comment tag and won't be display... | HTML | webkb/other/texas/http:^^www.cs.utexas.edu^users^hiep^resume.html | ML-SWAT/Web2KnowledgeBase | mit | 9,572 | 280 | codeparrot/github-code |
bb2958af379995ae0d43c10a99e4a74586c80515255661f836d0e1b572523a80 | package ca.uwaterloo.joos.parser;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
import java.util.ListIterator;
import java.util.Stack;
import java.util.logging.Level;
import java.util.logging.Logger;
import ca.uwaterloo.joos.Main;
import ca.uwaterloo.joos.parser.LR1.Action;
import ca.uw... | Java | src/ca/uwaterloo/joos/parser/LR1Parser.java | gregwym/joos-compiler-java | mit | 4,812 | 149 | codeparrot/github-code |
82929c992f1eeb358a350fb68242353f448e77679fa2bb7e85e62d15e2656d4e | import * as ts from 'typescript';
import { create_function_declaration } from '../declarations/function-declaration';
import { IGenericDeclaration } from '../declarations/generic-declaration';
import { IParameterDeclaration } from '../declarations/parameter-declaration';
import { create_object_member, IObjectMember } f... | TypeScript | src/parsers/method-signature.ts | ikatyang/dts-element | mit | 1,246 | 31 | codeparrot/github-code |
2723e736f523942faa5583cd9125ab6886dba5f6bc92a148514c9ba1087f3588 | // This file is part of Indico.
// Copyright (C) 2002 - 2020 CERN
//
// Indico is free software; you can redistribute it and/or
// modify it under the terms of the MIT License; see the
// LICENSE file for more details.
import _ from 'lodash';
import {createSelector} from 'reselect';
import {Translate} from 'indico/re... | JavaScript | indico/modules/events/editing/client/js/editing/timeline/selectors.js | mic4ael/indico | mit | 7,215 | 228 | codeparrot/github-code |
21cb0ea9ed40665a3d17dbf0a7e28d6658949d815e31f4621b6707bf18f2fee3 | <!DOCTYPE html>
<!--[if IE 9]> <html class="ie9 no-focus"> <![endif]-->
<!--[if gt IE 9]><!--> <html class="no-focus"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>OneUI - Admin Dashboard Template & UI Framework</title>
<meta name="description" content="OneUI - Adm... | HTML | .theme/02 - OneUI Source (HTML)/src/base_ui_modals_tooltips.html | pinouchon/bicornebi | mit | 95,310 | 1,437 | codeparrot/github-code |
7d27e9ded54bb3d4ac84705fc46ec71a3f3d454f56d4096cb978b3e220243c5f | /*
* Copyright (c) 2013 The CCP project authors. All Rights Reserved.
*
* Use of this source code is governed by a Beijing Speedtong Information Technology Co.,Ltd license
* that can be found in the LICENSE file in the root of the web site.
*
* http://www.cloopen.com
*
* An additional intellectual propert... | Java | plugin_common/src/main/java/com/lspooo/plugin/common/common/menu/RXActionMenuItem.java | LSPOoO/com.lspooo.example | mit | 5,068 | 268 | codeparrot/github-code |
fedc573dd3e8cd1684cdcdecdcc632cb3ba1833641c4ee8c280de0fa06c9cc14 | <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable... | HTML | docs/org/json/package-summary.html | anas-ambri/androidcompat | mit | 59,841 | 1,298 | codeparrot/github-code |
a5610ee0ab400dfed071219ff06d9031eff6a9939fd0b7e9f2ace3171c84473f | namespace Couchcoding.Logbert.Dialogs.Docking
{
partial class FrmLogBookmarks
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
#region Windows Form Designer generated code
/// <summary>
/// Required method for D... | C# | src/Logbert/Dialogs/Docking/FrmLogBookmarks.Designer.cs | couchcoding/Logbert | mit | 12,912 | 226 | codeparrot/github-code |
bab9141ca9502ee935ec0bda779f11f7e517cefff72f0f2668e9549cf25d2fd8 | status :published
satisfies_need 355
# Q1
multiple_choice :basis_of_calculation? do
option "days-worked-per-week" => :calculation_period?
option "hours-worked-per-week" => :calculation_period?
option "casual-or-irregular-hours" => :casual_or_irregular_hours?
option "annualised-hours" => :annualised_hours?
op... | Ruby | lib/flows/calculate-your-holiday-entitlement.rb | keithiopia/smart-answers | mit | 8,347 | 292 | codeparrot/github-code |
0501551db496794d0eac754dfc444025056d3fbf66cd51025ca4e12535937014 | 'use babel'
import { findDOMNode } from 'react-dom'
import React, { PropTypes, Component } from 'react'
import { connect } from 'react-redux'
import classNames from 'classnames'
import _ from 'underscore-plus'
import SlackMessage from './SlackMessage'
// Style
import * as colors from './colors'
import styled from 'st... | JavaScript | components/MessagesList.js | shemerey/im | mit | 3,509 | 161 | codeparrot/github-code |
8cbd78830b4321a1fc22f2bef77770331552044c65edfda6abde37dc1e650111 | <?php
namespace Satooshi\Bundle\CoverallsV1Bundle\Command;
use Satooshi\Bundle\CoverallsV1Bundle\Api\Jobs;
use Satooshi\Bundle\CoverallsV1Bundle\Config\Configuration;
use Satooshi\Bundle\CoverallsV1Bundle\Config\Configurator;
use Satooshi\Bundle\CoverallsV1Bundle\Repository\JobsRepository;
use Satooshi\Component\Log\C... | PHP | src/Satooshi/Bundle/CoverallsV1Bundle/Command/CoverallsV1JobsCommand.php | pascaldevink/php-coveralls | mit | 4,536 | 164 | codeparrot/github-code |
be0ccda89ab016874d16fe0db5a91a1a2359fa5389fad1eb8139e98358a333bd | // SPDX-License-Identifier: MIT
package mealplaner.plugins;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.function.Supplier;
import mealplaner.commons.errorhandling.MealException;
import mealplaner.plugins.api.IngredientE... | Java | mealplaner-model/src/main/java/mealplaner/plugins/PluginStore.java | Martin-Idel/mealplaner | mit | 6,265 | 144 | codeparrot/github-code |
2b26fa4b4f181162cc8b76595cfb0e3d8137ef49bb24107857835565b7829ad0 | package com.douglaswhitehead.controller;
import java.util.UUID;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.mobile.device.Device;
import org.spr... | Java | src/main/java/com/douglaswhitehead/controller/LoginControllerImpl.java | dsw9742/pages-datalayer-ensighten-demo | mit | 2,140 | 60 | codeparrot/github-code |
05dc649826f63699d4dff2e01993e2274a171f855421c1ec1fcefe2fe6db6f79 | # vi:fdm=marker fdl=0
# $Id: Correlation.pm,v 1.1 2006/01/25 22:20:42 jettero Exp $
package Statistics::Basic::Correlation;
use strict;
no warnings;
use Carp;
use Statistics::Basic::Vector;
use Statistics::Basic::StdDev;
use Statistics::Basic::CoVariance;
1;
# new {{{
sub new {
my $this = shift;
my $v1 =... | Perl | libraries/Statistics/Basic/Correlation.pm | AstraZeneca-NGS/Seq2C | mit | 3,601 | 169 | codeparrot/github-code |
e843dafb62d791f35e92d32503e5380b13e508dbb11add54faffae336da404c9 | package utils;
import java.math.BigInteger;
import static java.lang.Math.max;
import static java.math.BigInteger.ONE;
import static java.math.BigInteger.ZERO;
public class Combinatoric {
private static BigInteger facts[] = null;
private static BigInteger d[][] = new BigInteger[102][102];
... | Java | src/main/common/utils/Combinatoric.java | Fantast/project-euler | mit | 1,680 | 59 | codeparrot/github-code |
d47da6fc7d229ceecb2870ada93aefef18fc2c88b4b19bd00beab0a383e27f87 | # shipper_account_id string Shipper account ID
# status string Manifest status Accepts: manifesting,manifested,failed.
# limit string Number of records per page
# created_at_min string Start date and time of the record created (default: 24hrs ago)
# created_at_max string End date and time of the record created (default... | Ruby | lib/postmen/query/manifest_query.rb | postmen/postmen-sdk-ruby | mit | 1,526 | 51 | codeparrot/github-code |
9ca000b98390cf16cb2ef64b841ef8f6dfe8150f93ab37922bfdc2adb3a38e78 | package jp.obcn.memoleep;
import android.content.Context;
import android.content.Intent;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import android.util.Log;
import com.google.android.gms.wearable.MessageEvent... | Java | wear/src/main/java/jp/obcn/memoleep/WearableService.java | tokyo-hackademics/teamobcn | mit | 2,152 | 78 | codeparrot/github-code |
388b14ac2fd9c538a015e99ce867c72c59cb249e5627ad0f4061b336ca93bc5d | /*
General Linklist Library.
Author czfshine (https://github.com/czfshine)
Date :2017-05-10 11:10
Langage :ANSI C
Listen :MIT
Description:
The general linklist,other infomation to see code .
通用链表库,支持链表的增删查改寻。
*/
#include "linklist.h"
#include "common.h"
LinkList LinkListInit() {
/*初始化*/
LinkNode *n... | C | project/ERP4C/linklist.c | czfshine/my_oj | mit | 2,181 | 116 | codeparrot/github-code |
fc4be7c97546f8684af0cc90663c5295530edac207196907463ec3ce9f6a2f09 | # pymkcmd | dale@pbdr.info | http://pbdr.info
# The main logic of pymkcmd.
import sys
import inspect
import argparse
import logging
from functools import wraps
def mkcmd(func, doc_format='plain', ant_format='auto', parse_bool=True):
'''
Generate a CLI (command line interface) for a function.
:param fun... | Python | pymkcmd/core.py | pbdr/pymkcmd | mit | 8,606 | 308 | codeparrot/github-code |
09e2b6b4f23900ee3af0812a083fc446f0476a14bf3d7df6c173f73567d16b84 | {-# LANGUAGE RankNTypes, ImpredicativeTypes, LiberalTypeSynonyms #-}
module Treb.Config (withTrebEnv) where
import qualified Hasql as H
import qualified Hasql.Postgres as HP
import qualified Data.Map as M
import qualified Data.ByteString.Lazy as B
import qualified Data.ByteString.Char8 as BC
import qualified Database.... | Haskell | src/Treb/Config.hs | MadSciGuys/trebuchet | mit | 11,175 | 240 | codeparrot/github-code |
ce0e65298d9a1c0d162c469f3de785123c254fc4b3a98a132a8258af76991345 | /*
* 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... | Java | tomcat_files/8.0.0/Http11NioProcessor.java | plumer/codana | mit | 21,992 | 575 | codeparrot/github-code |
e1aefe6b49b5463574dcb37814508ff29239cdb016c872dabb00e61e34db8107 | using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace CSC.CSClassroom.Model.Assignments
{
/// <summary>
/// An exercise that requires a class (or part of a class)
/// to be written.
/// </summary>
public class ClassQuestion : CodeQuestion
{
/// <summary>
/// The class ques... | C# | Services/src/CSClassroom/CSClassroom.Model/Assignments/ClassQuestion.cs | CSClassroom/CSClassroom | mit | 5,254 | 179 | codeparrot/github-code |
0eb2c9c090c8f46b9c70dfd84e4bb6b711683461f899fbadce562dd9cdf56cb8 | // Copyright (c) 2011-2017 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <qt/guiutil.h>
#include <qt/bitcoinaddressvalidator.h>
#include <qt/bitcoinunits.h>
#include <qt/qvalidatedlineedit... | C++ | src/qt/guiutil.cpp | ppcoin/ppcoin | mit | 32,297 | 1,017 | codeparrot/github-code |
0d5710e3fb0474cc6a735c0fd8f379d3aeb3c63cb26cc0dcb9411509fd2090ad | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
The Art of an Artificial Intelligence
http://art-of-ai.com
https://github.com/artofai
"""
__author__ = 'xevaquor'
__license__ = 'MIT'
import numpy as np
import util
class LayerBase(object):
def __init__(self):
self.size = None
self.W = np.zeros((0,0))... | Python | layer.py | artofai/neural-network | mit | 4,245 | 157 | codeparrot/github-code |
7f283c8e35dc5a0b4b930992b4cec42c47726dd7619f9cbf2ccec5cf35610c6b |
/********************************************************************************\
* Uruky Project *
* *
* Copyright (C) 2006 Ahmed Zamil - ahmed@dijlh.com ... | C# | Esiur/Net/Packets/Packet.cs | esiur/esiur-dotnet | mit | 13,141 | 368 | codeparrot/github-code |
54a066c97dffe391327a2900d8c3b1e8e657dd4ee4a9ede3ab41ed947c424bc3 | package br.com.starcode.parccser.model.expression;
import java.util.List;
import br.com.starcode.parccser.model.Context;
public class PseudoExpression {
private List<Item> items;
private EvaluatedExpression evaluatedExpression;
private String text;
private Context context;
... | Java | src/main/java/br/com/starcode/parccser/model/expression/PseudoExpression.java | utluiz/parCSSer | mit | 1,283 | 52 | codeparrot/github-code |
a2e34a33c0e38641b2dde76f119bd696951260af8885139f71cf1e3f76ba6b5e | <!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta chars... | HTML | index.html | narze/blltz-wife-counter | mit | 2,878 | 59 | codeparrot/github-code |
fee4d2ca7bf3f1af5589cfb34e4ccfc69e1df6576885210f25be5e9ef4dedb16 | package info.bitrich.xchangestream.coinmate.v2.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.math.BigDecimal;
import org.knowm.xchange.coinmate.dto.marketdata.CoinmateTransactionsEntry;
public class CoinmateWebSocketTrade {
private final long timestamp;
private final BigDecimal price;
p... | Java | xchange-stream-coinmate/src/main/java/info/bitrich/xchangestream/coinmate/v2/dto/CoinmateWebSocketTrade.java | douggie/XChange | mit | 1,499 | 58 | codeparrot/github-code |
c052e0d144b68e6d4edbac75b7b6888641e936375f05f02446ccf0656a6bc1c9 | package speedy.model.algebra;
import speedy.model.algebra.operators.IAlgebraTreeVisitor;
import speedy.model.algebra.operators.ITupleIterator;
import speedy.model.database.mainmemory.MainMemoryDB;
import speedy.model.database.mainmemory.MainMemoryVirtualDB;
import speedy.utility.SpeedyUtility;
import java.util.ArrayLi... | Java | src/speedy/model/algebra/Scan.java | dbunibas/Speedy | mit | 3,921 | 120 | codeparrot/github-code |
bc2845894c48e76bf74e73d66b6fd66f02809e734a88af1d909f4e3e757e1e57 | /* libunwind - a platform-independent unwind library
Copyright (C) 2012 Tommi Rantala <tt.rantala@gmail.com>
Copyright (C) 2013 Linaro Limited
This file is part of libunwind.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"So... | C | src/aarch64/Gis_signal_frame.c | atanasyan/libunwind-android | mit | 2,074 | 69 | codeparrot/github-code |
ee60d978fb48dc33fba856577cd1ab1bb174337d887d6cec6a4cb37e48a76ffd | package dmillerw.sound.client.gui;
/**
* @author dmillerw
*/
public class SoundEntryString {
public final String string;
public final String resourceDomain;
public final String fullPath;
public final boolean end;
public SoundEntryString(String string, String resourceDomain, String fullPath, bo... | Java | src/main/java/dmillerw/sound/client/gui/SoundEntryString.java | dmillerw/SoundMuffler | mit | 853 | 38 | codeparrot/github-code |
5953a89409435c871323b323631b0df397333c561a2bc6b1825155d2982f212e | package com.tom.factory.tileentity.inventory;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.Slot;
import net.minecraft.util.math.MathHelper;
import com.tom.api.inventory.SlotOutput;
import com.tom.factory.tileentity.TileEntityRubber... | Java | src/main/java/com/tom/factory/tileentity/inventory/ContainerRubberBoiler.java | tom5454/Toms-Mod | mit | 1,287 | 34 | codeparrot/github-code |
d4a725968901aac2f2d550f77a4984fe9b1872c11fef7e1a3dffa26b16ae8fb4 | #include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <inttypes.h>
#include "error_stuff.h"
#include "util.h"
void process_wave(
FILE *headerfile,
FILE *datafile,
long riff_offset
);
int main(int argc, char **argv)
{
fprintf(stderr, "build GENH from decompressed Conduit dumps\n");
... | C | soundbank/weconduit/conduit/cnd_dmp2genh/cnd_dmp2genh.c | hcs64/vgm_ripping | mit | 11,020 | 333 | codeparrot/github-code |
65eb9e1e369cce7a27163daabdf553f8f43bbb8b5200ac351158555dc872a123 | /*
Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if(!dojo._hasResource["dojox.form.ListInput"]){ //_hasResource checks added by build. Do not use _hasResource directly in y... | JavaScript | htdocs/libs/dojo/release/geomoose2.6/dojox/form/ListInput.js | henry-gobiernoabierto/geomoose | mit | 25,206 | 1,009 | codeparrot/github-code |
8674cd3edbd581b4f984a22e734c7f84e3a12e304b71f98bbd1d5e54cb795ae7 | """Web dashboard."""
import os
import sys
import json
import aiohttp
from discord.ext import commands
import util.dynaimport as di
from .cog import Cog
japronto = di.load('japronto')
sanic = di.load('sanic')
response = di.load('sanic.response')
root_dir = os.path.dirname(os.path.abspath(sys.modules['__main__'].core_fi... | Python | default_cogs/web.py | Armored-Dragon/goldmine | mit | 1,742 | 62 | codeparrot/github-code |
720bc061f86a2d703343525f640a9c5ba559974485ca0e5ea87d91c364e84a78 | /*
-----------------------------------------------------------------------------
This source file is part of fastbird engine
For the latest info, see http://www.jungwan.net/
Copyright (c) 2013-2015 Jungwan Byun
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and ass... | C | FBThread/WorkerThread.h | fastbird/fastbirdEngine | mit | 1,994 | 55 | codeparrot/github-code |
44ce2beece99e4410f0c5030d7ccd175aa8e4233e6d80ef5970b8f32b6e59b23 | #!/usr/bin/env python2.6
"""
Tue Dec 4 11:54:18 PST 2012
Parse Blast XML output file and cluster sequences using greedy approach.
Input: Blast xml file
Output: Text file, each line = 1 cluster, each element of a cluster is space-separated
Algorithm summary:
Sorted sequences by descending in size
Start with the large... | Python | src/clusterBlastXml.py | ngannguyen/immunoseq | mit | 16,441 | 404 | codeparrot/github-code |
8998e7ce4599b02b7089e59d987a11db1957c6112dafd544f59ad790077e6c19 | using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Xml;
using System.Xml.Serialization;
using System.Drawing;
using OpenTK;
using RMC;
using Lexing;
using CadCommon;
namespace FileImportExport.VRML
{
public class VrmlFile : FileBase
{
public Point3DF Out... | C# | source/CsgTest/FileImportExport/VRML/VrmlFile.cs | bobc/csg_tool | mit | 55,102 | 1,735 | codeparrot/github-code |
edcb6dbc3ba67c28fb7d2fc655dbfff6105539b04a8e4bfb189eb3e88a68312d | using System.Runtime.Serialization;
using Carbon.Platform.Computing;
using Carbon.Platform.Resources;
using Carbon.Versioning;
namespace Carbon.Platform
{
[DataContract]
public class DeploymentDetails
{
public DeploymentDetails() { }
public DeploymentDetails(IProgram program, params Manag... | C# | src/Carbon.Platform.Client/Models/DeploymentDetails.cs | carbon/Platform | mit | 2,310 | 78 | codeparrot/github-code |
68a01b8c6aa8bd53896fc2618ba8bf699cd52b7e8e110b34166da5d38eb998ca | 'use strict';
const chai = require('chai'),
expect = chai.expect,
Support = require(__dirname + '/../support'),
DataTypes = require(__dirname + '/../../../lib/data-types'),
sinon = require('sinon'),
Promise = require('bluebird');
describe(Support.getTestDialectTeaser('Hooks'), () => {
beforeEach(function(... | JavaScript | test/integration/hooks/bulkOperation.test.js | gintsgints/sequelize | mit | 17,928 | 569 | codeparrot/github-code |
0bbbd43b4780bcb4fb0b92d1fe593f800a251f79230efb7c77d4ce439f370e77 | 'use strict';
require('styles//CurrentIteration.css');
import React from 'react';
import { connect } from "react-redux"
@connect((store) => {
return {
};
})
class CurrentIterationComponent extends React.Component {
propTypes: {
}
defaultProps: {
}
constructor(props) {
super(props);
}
r... | JavaScript | client/src/components/CurrentIterationComponent.js | krzysztofkolek/github-bugtracker | mit | 533 | 36 | codeparrot/github-code |
9d19a94b5c9c502e1f7cefd750e1f6a507eff0a68534a380e9b4a9b22eeea77e | <?php
/*
* This file is part of the Wid'op package.
*
* (c) Wid'op <contact@widop.com>
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
*/
namespace Widop\Twitter\OAuth;
use Widop\HttpAdapter\HttpAdapterInterface;
use Widop\Twitter\... | PHP | src/Widop/Twitter/OAuth/OAuth.php | widop/twitter-oauth | mit | 11,123 | 371 | codeparrot/github-code |
aea8c67f009a9be7c61ccade1b77aea766aea452a10ad1dbb0c063b2d5b41f48 | namespace FreshBooks.Api.DefaultTermsGet {
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.6.81.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.X... | C# | src/FreshBooks.Api/DefaultTermsGetResponse.cs | mattjcowan/FreshBooks.Api | mit | 2,132 | 73 | codeparrot/github-code |
9278fdd45111508df8d83f1ee1afd8333eefc32fc26461183d0218d8740a54a8 | """
luas.api
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Provides methods for interrogating Dublin's Luas tram API
Copyright (c) 2018 Ronan Murray <https://github.com/ronanmu>
Licensed under the MIT License
"""
import logging
from xml.etree import ElementTree
from xml.etree.ElementTree import ParseError
import requests
from luas.mo... | Python | luas/api.py | ronanmu/luas.py | mit | 6,539 | 202 | codeparrot/github-code |
48f317960742833dc89c9f9c406acce9eb9dd7fb64e90f52e84cb95f11743308 | angular.module('cms.images').controller('ImageDetailsController', [
'$routeParams',
'$q',
'$location',
'_',
'shared.LoadState',
'shared.modalDialogService',
'shared.permissionValidationService',
'shared.urlLibrary',
'images.imageService',
'images.modulePath',
function (
$rou... | JavaScript | src/Cofoundry.Web.Admin/Admin/Modules/Images/Js/Routes/ImageDetailsController.js | cofoundry-cms/cofoundry | mit | 3,562 | 142 | codeparrot/github-code |
a7346d54a7480ae55ecdbc86d8b75becf53a009b2e06a88bc3a06570cfb13285 | <?php
namespace Platformsh\Cli\Command\Project;
use Platformsh\Cli\Command\PlatformCommand;
use Symfony\Component\Console\Helper\Table;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
class ProjectListCommand ex... | PHP | src/Command/Project/ProjectListCommand.php | supriyantomaftuh/platformsh-cli | mit | 1,890 | 67 | codeparrot/github-code |
f4054a0053896d7ee579154626554cb77afa0b217af71681ebc56e38db544439 | import React, {Component} from "react";
import {StyleSheet, Text, View, Image,ScrollView,RefreshControl,Platform,NativeModules,LayoutAnimation} from "react-native";
import {Icon, Carousel,WhiteSpace} from "antd-mobile";
import Card from './Component/Card'
import {inject,observer} from 'mobx-react'
import {AppState,Draw... | TypeScript | src/Tab2.tsx | dddzg/app | mit | 5,219 | 141 | codeparrot/github-code |
1b19dcbbc9ed922ded3c6f6b20338f75d0d08ad8cc1fc6ec6a3a087f1ff24ea9 | #include "SceneRenderSystem.h"
#include "../ComponentModel/GameObjectFilterFunctions.h"
#include "../ComponentModel/GameObjectManager.h"
#include "../ComponentModel/DrawableComponent.h"
SceneRenderSystem::SceneRenderSystem(Scene *const scene) :
_scene(scene)
{
}
SceneRenderSystem::~SceneRenderSystem()
{
this-... | C++ | src/2DXngine.Engine/Scenes/SceneRenderSystem.cpp | Harunx9/2DXngine | mit | 1,460 | 56 | codeparrot/github-code |
c530ab2168bcc6bb0278b39485bacc2f481d65eafccdc5205c6948490f16ff79 | package at.hollanderkalauner.gpgpu.simplecl;
import org.lwjgl.opencl.*;
import java.util.Arrays;
import java.util.List;
public class Platform {
private final CLPlatform clPlatform;
public Platform(CLPlatform clPlatform) {
this.clPlatform = clPlatform;
}
public CLPlatform getClPlatform() {
... | Java | src/main/java/at/hollanderkalauner/gpgpu/simplecl/Platform.java | ReneHollander/dezsys08-gpgpu | mit | 2,552 | 88 | codeparrot/github-code |
f7c6df7fc0602cf28455c596e7deefc9417750cd1036183e66bb74db7536f01a | <?php
/* modular/features.html.twig */
class __TwigTemplate_cee17c65ed03f472d2e85903f084080bbd25ad5740d3af141e02a936b7833f73 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
);... | PHP | cache/twig/37/37b2e2a8073cf66092fd2d1b76d4c0a6a30f729ba0eb78bb5f7c09f999f8fbd9.php | 2nomads/2nomads-2.0 | mit | 4,561 | 118 | codeparrot/github-code |
76c9d3893258f20ff8725d112a684e5c1772b85cd504bf05373c6b2553eff9b2 | =begin
MiniDynDNS v1.3.1
by Stephan Soller <stephan.soller@helionweb.de>
# About the source code
To keep the source code hackable and easier to understand it's organized in
sections rather than classes. I've tried several class layouts but rejected them
all because they added to much boiler plate and self organizati... | Ruby | dns.rb | arkanis/minidyndns | mit | 28,183 | 745 | codeparrot/github-code |
b786da807eeeb1a9b18f4f17ed15e011f58a679e72f446bd606d5cfe93711bfd | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>lc: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel... | HTML | clean/Linux-x86_64-4.11.2-2.0.7/released/8.12.2/lc/8.5.0.html | coq-bench/coq-bench.github.io | mit | 7,074 | 176 | codeparrot/github-code |
4e6aebc842d05fa2bfc5b466d0593599b097b2bf2f81728ca1933b2a1ce6104e | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>quicksort-complexity: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstr... | HTML | clean/Linux-x86_64-4.05.0-2.0.6/released/8.11.1/quicksort-complexity/8.6.0.html | coq-bench/coq-bench.github.io | mit | 7,554 | 171 | codeparrot/github-code |
228ed0ae7bbdaf9e24c1b3a97dd1add402277701e7f1bd5f9876082534b55af2 | <?php
/**
* Created by Dan Blaisdell's DABL
* Do not alter base files, as they will be overwritten.
* To alter the objects, alter the extended classes in
* the 'models' folder.
*
*/
abstract class baseQuestion extends ApplicationModel {
const ID = 'question.id';
const SESSION_ID = 'question.session_id';
c... | PHP | models/base/baseQuestion.php | coleHafner/quizbot | mit | 27,921 | 1,088 | codeparrot/github-code |
944946eff21430d6501eb11b2456a8319185c4fcfb19806cf967a1d25e582f95 | import fetch from 'isomorphic-fetch'
import base64 from 'base-64'
import utf8 from 'utf8'
import FormData from 'form-data'
export function encodeAccount(username, password) {
let bytes = utf8.encode(`${ username }:${ password }`)
return base64.encode(bytes)
}
export function loadFormData(payload) {
if (!payload... | JavaScript | app/utils/Request.js | KrateLabs/KrateLabs-REST | mit | 2,539 | 96 | codeparrot/github-code |
25393fcd3de554e53bd90cbac5aacc5491ac1b6055fababbbcd48b47a52680a4 | import * as React from 'react';
import { RouteComponentProps } from 'react-router-dom';
import { Dialog, DialogType, DialogFooter } from 'office-ui-fabric-react/lib/Dialog';
import { PrimaryButton, DefaultButton } from 'office-ui-fabric-react/lib/Button';
interface DeleteModalProps {
open: boolean;
onHide: () ... | TypeScript | src/Designer/App/components/deleteModal/DeleteModal.tsx | simonjaeger/azure-bot-pack | mit | 1,380 | 39 | codeparrot/github-code |
b9bcae7ac9e1df9c761ed254fe50b4f31dbebc97b3d34140d25d30fc1c715ee6 | // Copyright 2006 The Closure Library Authors. All Rights Reserved.
//
// 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 requ... | JavaScript | js/goog/useragent/useragenttestutil.js | bowmessage/MotionPlanning | mit | 2,770 | 84 | codeparrot/github-code |
6c9a1059c7c7c6cd6b9ffaccafc71364890a31054df86d17a40cd5d320bbab8b | # == Schema Information
#
# Table name: teams
#
# id :integer not null, primary key
# name :string not null
# email :citext
# created_at :datetime not null
# updated_at :datetime not null
# type :string
# parent_id :integer
# role :string
# cod... | Ruby | app/models/business_unit.rb | ministryofjustice/correspondence_tool_staff | mit | 5,307 | 199 | codeparrot/github-code |
c0a6a7769fdad55f3f1ecaef252040b8384503e049e3b3210b6705880b29e496 | import {fireEvent as dtlFireEvent} from '@testing-library/dom'
// react-testing-library's version of fireEvent will call
// dom-testing-library's version of fireEvent. The reason
// we make this distinction however is because we have
// a few extra events that work a bit differently
const fireEvent = (...args) => dtlF... | JavaScript | src/fire-event.js | testing-library/react-testing-library | mit | 2,217 | 70 | codeparrot/github-code |
c4e840f47ad308ed9116eb35144211e013bbc97644e0c9f04f9dd83f0529c9b0 | #! /usr/bin/env python
# -*- coding: UTF-8 -*-
from datetime import date, datetime, timedelta
from icalendar import Calendar, Event, vRecur
import json
import os.path
from os.path import dirname
from uuid import uuid4
class iCalSchedule(object):
DAYS = ['MO', 'TU', 'WE', 'TH', 'FR', 'SA', 'SU']
def __init_... | Python | edt2ics/ical.py | bfontaine/edt2ics | mit | 3,060 | 102 | codeparrot/github-code |
92f3f2b7ce1fcfd8e67fc74aa41a5610b0dc4d97d3f4cf8bd4597af47a6b3934 | <?php
/**
* Created by JetBrains PhpStorm.
* User: fernando
* Date: 18/10/13
* Time: 8:46
* To change this template use File | Settings | File Templates.
*/
namespace Fer\SifpeBundle\Service;
use Fer\SifpeDomain\Model\IEntidad;
use Fer\SifpeDomain\Repository\IRepository;
class EntityService implements IEntity... | PHP | src/Fer/SifpeBundle/Service/EntityService.php | farconada/SifpeV5 | mit | 1,034 | 57 | codeparrot/github-code |
bf42ba4fa0a0c2304bbd8921d390d1b326f24604b077bd7d4c603602fbe8ff3c | 'use strict'
/**
* PEM
* @ignore
*/
const privatePKCS1 = `-----BEGIN EC PRIVATE KEY-----
MIHcAgEBBEIBp7eAMe6QHQ4Av4tEfeVYFQUn3nWHFFEAfyqOcjSUHzPFmNQpH2kM
wFpZu6XPxauBTVTnFW8QAtD1ov1L6V7aHpagBwYFK4EEACOhgYkDgYYABAFHzefo
k5MWo1mRqDXvo8zQqUsnb6JeTKyn/kD0tJP92cYFutmHTq3rKQF2Kyvvhv339iKB
q11jsNpLjNCVooqDpwEHOpuFthlQH1is... | JavaScript | test/keys/ECDSA/P521.js | EternalDeiwos/keyto | mit | 1,885 | 58 | codeparrot/github-code |
26162de5f47a98345b5d0c6c2da536a8653758778ba734dddd69adeb75c12742 | <?php
namespace ZEDx\Http\Controllers\Backend;
use Illuminate\Support\Collection;
use ZEDx\Http\Controllers\Controller;
use ZEDx\Http\Requests\AdtypeRequest;
use ZEDx\Models\Adtype;
use ZEDx\Models\Subscription;
use ZEDx\Models\User;
class AdtypeController extends Controller
{
/**
* Display a listing of the... | PHP | src/Http/Controllers/Backend/AdtypeController.php | indesign47/core | mit | 3,853 | 151 | codeparrot/github-code |
6b8244e555715ea99da2f2ff7d89e055d2b2efccec278984f8171d9d14083ebe |
<!-- Navigation Start -->
<nav class="navbar navbar-custom navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-main-collapse">
<i class="fa fa-bars"></i>
</button>
... | HTML | _includes/navigation.html | Matdu/matdu.github.io | mit | 1,891 | 57 | codeparrot/github-code |
0e4ce8227f1b6ad0df16e9da7f3da2ebeac5e0a38adc0764d42a505facd1357f | <?php
/**
* User Welcome Block
*
* This block will print basic information and links for the user.
*
* phpGedView: Genealogy Viewer
* Copyright (C) 2002 to 2009 PGV Development Team. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms o... | PHP | PhpGedView/blocks/user_welcome.php | fweber1/Annies-Ancestors | mit | 3,875 | 73 | codeparrot/github-code |
98a4ab79193332f07c388436e35a63f33a86c61d998278d4be7d9e462e1e7659 | package de.woerteler.gui;
import static de.woerteler.gui.GUIActions.ActionID.*;
import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.Rectangle;
import java.awt.geom.Rectangle2D;
import java.awt.image.BufferedImage;
impor... | Java | src/de/woerteler/gui/ChartyGUI.java | LeoWoerteler/ChartyGUI | mit | 16,921 | 539 | codeparrot/github-code |
a24321a4e0c4680d9e4068bd439692a8aa811c6e26df4c5b108e7c23f40d2bc0 | require('./datetime-picker.directive.css');
directive.$inject = ['$datetimeModalService'];
function directive($datetimeModalService){
return {
retrict: 'AE',
require: 'ngModel',
scope: {
mode: '@'
},
template: require('./datetime-range.directive.html'),
link: function($scope, $ele, $attr, ngMo... | JavaScript | src/global/datetime-range.directive.js | calary/tms | mit | 1,648 | 63 | codeparrot/github-code |
fcfe0c5d9b69c688cbb54382028662c4b857782bb9a7c72c11b077b7e9c40a32 | (function(ns){
var Shade = require("../../../interfaces.js");
var Syntax = require('estraverse').Syntax;
var Tools = require("../../tools.js");
var ANNO = require("../../../type-system/annotation.js").ANNO;
var TYPES = Shade.TYPES,
KINDS = Shade.OBJECT_KINDS;
var Mat4Instance = {
... | JavaScript | src/generate/glsl/registry/mat4.js | xml3d/shade.js | mit | 858 | 38 | codeparrot/github-code |
e73cb4b2f7961bdc847731be3a31f8effb5e276ea2d6fffa9fc2aea6a1d510a3 | using Assisticant;
using System;
using System.Collections.Generic;
using System.Linq;
namespace Correspondence
{
class Subscription
{
private Community _community;
private Func<IEnumerable<CorrespondenceFact>> _pivotsFunction;
private List<CorrespondenceFact> _pivots;
private Co... | C# | Portable/Correspondence/Subscription.cs | michaellperry/Correspondence | mit | 1,243 | 40 | codeparrot/github-code |
b5c980cc995efccfecf87ffab995f0c2f5cd58a12bad920eb75f91296c92574d | package chess.data;
import static chess.enums.Team.BLACK;
import static chess.enums.Team.WHITE;
import static chess.enums.Unit.BISHOP;
import static chess.enums.Unit.KING;
import static chess.enums.Unit.KNIGHT;
import static chess.enums.Unit.PAWN;
import static chess.enums.Unit.QUEEN;
import static chess.enums.Unit.ROO... | Java | ChessSrv/src/chess/data/ChessBoard.java | MichaelDennisCompSci/ChessSrv | mit | 15,430 | 495 | codeparrot/github-code |
517da6e68324e15d98c999c22c1455cbac2d58b115faa717f35a54a95ada2811 | <!--
Copyright 2015 - Tomasz Cichocinski <tomaszcichocinski@gmail.com>
Released under the MIT License - https://github.com/Baransu/mendela-pl-p
-->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>16</title>
</head>
<body>
<script type="text/javascript">
... | HTML | 16.html | Baransu/mendela-pl-p | mit | 1,166 | 39 | codeparrot/github-code |
1865084f7a3a05d3bd256e236e93e7a67ab98318723e8544dc55c7da3eaf0145 | package matgr.ai.neuralnet;
public class NeuronState<NeuronT extends Neuron> {
public final NeuronT neuron;
public double preSynapse;
public double postSynapse;
public double postSynapseErrorDerivative;
public NeuronState(NeuronState<NeuronT> other) {
this(Neuron.deepClone(other.neuron)... | Java | neuralnet/src/main/java/matgr/ai/neuralnet/NeuronState.java | matgr1/ai-playground | mit | 881 | 31 | codeparrot/github-code |
7fb15202bc7a500d56e80ddf83874d763f49a705371fe13de1fe8d715c19e16d | /*This module reads the following:
* A file with the exons and the names of the reads hitting them
chr1_1497
E88BQJZ01A813B cedric
E88BQJZ02FPN4Q cedric
E86HODY01CHHBZ spirit
FF4D8XH01DBURR spirit
FF4D8XH01C2UIA spirit
FF4D8XH01EZAQD spirit
FF4D8XH02QU0GF spirit
chr1_2983
E88BQJZ02GXSXA cedric
E86HODY02GR... | C | src/assemble1.c | aakrosh/DIAL | mit | 33,092 | 1,217 | codeparrot/github-code |
a28827e9e5cc807322760ff11a73b48b5f0d6ee42cb350da381dd57415ab7963 | #pragma once
#ifndef _ICamera_header_included_
#define _ICamera_header_included_
#include <CommonLib/SmartPtr.h>
#include <Engine/SpatialObject.h>
namespace fastbird
{
class BoundingVolume;
class ICameraListener
{
public:
virtual void OnViewMatChanged() = 0;
virtual void OnProjMatChanged() = 0;
};
class I... | C | Code/Engine/ICamera.h | yorung/fastbirdEngine | mit | 2,715 | 81 | codeparrot/github-code |
1e67029ffe4e730127253b4c95b3d96bcdabb5ec60b8d852e2a15ef991176ad3 | package main
import "./buildings"
//all this setup allows the board to expand infinitely out in all directions
var board [2][2][][]buildings.Building //the first 2 indices are for negative in X and Y
func bget(x, y int) buildings.Building {
xIndex, yIndex := 0, 0 //0 means positive, 1 means negative
if x < 0 {
xI... | GO | server/board.go | orangebaron/ordos | mit | 1,613 | 64 | codeparrot/github-code |
77ef697a676d62d8650015ba0126ea702f34bb56aa610db1df19186e546af4cd | #include <iostream>
using namespace std;
int main()
{
int N;
cin >> N;
for (int n = 1; n <= N; n++) {
string s;
cin >> s;
int hms[3];
hms[0] = 10*(s[0]-'0')+s[1]-'0';
hms[1] = 10*(s[3]-'0')+s[4]-'0';
hms[2] = 10*(s[6]-'0')+s[7]-'0';
cout << n << ' ';
for (int i = 5; i >= 0; i--) {... | C++ | poj/3/3789.cc | eagletmt/procon | mit | 575 | 31 | codeparrot/github-code |
95f3a4f62221e7b9de90c5182e460ca305d534665f93c421a56e2f5dc154b724 | #pragma clang diagnostic ignored "-Wdeprecated-declarations"
#include "selfdrive/loggerd/omx_encoder.h"
#include <fcntl.h>
#include <sys/stat.h>
#include <unistd.h>
#include <cassert>
#include <cstdlib>
#include <cstdio>
#include <OMX_Component.h>
#include <OMX_IndexExt.h>
#include <OMX_QCOMExtns.h>
#include <OMX_V... | C++ | selfdrive/loggerd/omx_encoder.cc | commaai/openpilot | mit | 23,790 | 646 | codeparrot/github-code |
e11195023f57585cc53ad939e510723d550f41a7be6098a3f484b2363179213a | //*********************************************************
//GLFONT.CPP -- glFont routines
//Copyright (c) 1998 Brad Fish
//Copyright (c) 2002 Henri Kyrki
//See glFont.txt for terms of use
//10.5 2002
//*********************************************************
#include <stdio.h>
#include "glfont.h"
//***************... | C++ | 3dGraphics/code/glfont_cpp/glfont.cc | Akfly/Graphics3d | mit | 5,481 | 217 | codeparrot/github-code |
a1275ef5de8a2c2585f93a58f0509694dc11e2ceecebd9fab9c54e50e86e5ba9 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>error-handlers: 16 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" r... | HTML | clean/Linux-x86_64-4.06.1-2.0.5/released/8.9.1/error-handlers/1.1.1.html | coq-bench/coq-bench.github.io | mit | 6,734 | 164 | codeparrot/github-code |
06786d93e3500b74d0bc1e2c40ff3bf0fb83a9e42c87d4053dd24475ae4380eb | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
#include "dc.h"
int main(int argc, char * argv[]) {
// Process options
unsigned int w = 32, p = 19937, N = 32, s = 0;
int help = 0;
char * fname = NULL, * hname = NULL;
struct option options[] = { { "wordsize", required_argumen... | C | rng/mtdc32.c | garymacindoe/cuda-cholesky | mit | 6,002 | 181 | codeparrot/github-code |
f85ce377b4df3dbf748d3b04de94ae867ad42724ff045771def18bc83b006e91 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="... | HTML | _site/design/2016/02/04/circus.html | betulersahin/betulersahin.github.io | mit | 18,792 | 492 | codeparrot/github-code |
aabbf9bccad3232a1565c3c09e9566dc7724352b9bf76d22328eef59d9189603 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>domain-theory: 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.7.1/domain-theory/8.10.0.html | coq-bench/coq-bench.github.io | mit | 6,827 | 171 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.