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 |
|---|---|---|---|---|---|---|---|---|
fc4067b99714c994b39fdf26b7726bab8e49688a8172aad755fcd98af703367f | ///////////////////////////////////////////////////////////////////////////////
// SOFTWARE COPYRIGHT NOTICE AGREEMENT //
// This software and its documentation are copyright (2012) by the //
// Broad Institute. All rights are reserved. This software is supplied //
... | C | src/kmers/ReadPatherDefs.h | bioinfologics/w2rap-contigger | mit | 36,995 | 1,043 | codeparrot/github-code |
896cd0460a561ae5421ed3c465a26527b790844494531cf1e36977cd3f62a537 | /*
* The MIT License
*
* Copyright 2015 Kiarash Korki <kiarash96@users.sf.net>.
*
* 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 limitati... | Java | src/bobby/scene/enemies/Zombie.java | kiarash96/Bobby | mit | 2,405 | 80 | codeparrot/github-code |
23efc54a626d22cb5b85c14200f1d493401acaeeea5dffb154231fe78540a4b4 | # -*- coding: utf-8 -*-
import os
import argparse
import datetime
from lxml import etree, html
from lxml.html.clean import Cleaner
import fnmatch # To match files by pattern
import re
import time
import pandas as pd
def timeit(method):
"""Time methods."""
def timed(*args, **kw):
ts = time.time()
... | Python | meps_ie.py | chozelinek/europarl | mit | 9,953 | 277 | codeparrot/github-code |
f6145d1bc1955b0d0fe9d508e592d670ea80bf7685dc291b4dd35c2ca026f1d6 | package drawings;
import java.awt.*;
import javax.swing.JPanel;
import resources.Constants;
import utils.TestUtil;
public class ConditionStackedFlipped extends JPanel {
private static final long serialVersionUID = 1L;
/*
* test case:
* - act1 = new ConresActivity(0, new Point(50, 35), "Activity 1", "ROL... | Java | CRVisualization/drawings/ConditionStackedFlipped.java | tslaats/SE2017-Team1 | mit | 1,824 | 47 | codeparrot/github-code |
bc758a7dc75d7bf8b0253079b451433a259db5b9de97079afebf44b9e4ee6c0e | using System;
using System.Fabric;
using System.Threading.Tasks;
namespace ServiceFabric.Utilities
{
public class ServiceStateProvider<TState>
where TState : class
{
private TState _activeState;
public TState Active
{
get
{
var active = ... | C# | src/ServiceFabric.Utilities/ServiceStateProvider.cs | sceneskope/service-fabric | mit | 1,333 | 51 | codeparrot/github-code |
dcd4de217d1bb01704a6b079da8bd2008aa63fc893cd3663d0dbda5b9d09af9a | module.exports = function(app) {
app.controller('FamilyTreeController', ['$scope', 'leafletData', '$http',
function($scope, leafletData, $http) {
var mapQuestKey = 'qszwthBye44A571jhqvCn4AWhTsEILRT';
// required for cypher parser
require('../../plugins/sigma.parsers.json.js');
//for loa... | JavaScript | app/js/family_tree/controllers/family_tree_controller.js | family-tree-project/family-tree-project | mit | 6,968 | 223 | codeparrot/github-code |
1bee4d5ba470a7e75f1aa903b5de566bc5ea77cd5f36ce6aba289a7f465c8a66 | # solve cliff-walking task with Q-Learning, very similar to SARSA
# original example problem from the book, introduction for reinforcement learning
# Author: Wenbin Li
# numeric backend
import pygame
from pygame.locals import *
import numpy as np
grid_size = 100
n_row = 4
n_col = 12
state = np.zeros((n_row * grid_siz... | Python | cliffWalk_QL.py | wenbinli/rl | mit | 6,866 | 215 | codeparrot/github-code |
71d08c2d1ffd5eb812ae8a7b4daae947f8d39c7219ea1916d91e1f6eccc68c18 | var path = require('path')
ScrewTurnPageFile.LATEST = -1
ScrewTurnPageFile.compare = compare
ScrewTurnPageFile.prototype.isLatest = isLatest
ScrewTurnPageFile.prototype.compareTo = compareTo
function ScrewTurnPageFile(filename) {
var revision = getRevision(filename)
, title = getTitle(filename)
this.__... | JavaScript | lib/model/ScrewTurnPageFile.js | Cyberitas/ScrewturnToMediawiki | mit | 1,480 | 62 | codeparrot/github-code |
0d677134ca12bacd030fcc68e7b80be37f2ac64c7067945744fd41f9f310e8cf | var http = require('http'),
fs = require('fs');
var people = {};
//var port = process.env.OPENSHIFT_NODEJS_PORT || "1337";
var port = "1337";
//var serverUrl = process.env.OPENSHIFT_NODEJS_IP || "127.0.0.1";
var serverUrl = "127.0.0.1";
var app = http.createServer(function (request, response)
{
//console.log(... | JavaScript | server.js | cdcunha/simplechat | mit | 2,929 | 68 | codeparrot/github-code |
3007772c706cec1945c74480dde97f0ffe2c49d7a7adece257575c236cbcfe0b | #include "uartserver.h"
void UARTserver::begin(unsigned long int baudrate) {
Serial.begin(baudrate);
while(Serial.available());
Serial.read();
}
#define CMD_SIZE 10
char *UARTserver::getCmd(void) {
int c;
int static index;
char static cmd[CMD_SIZE+1];
if ((c = Serial.read()) != -1) {... | C++ | uartserver.cpp | hsmptg/UARTserver | mit | 668 | 34 | codeparrot/github-code |
0167582aa4ff2d832bf9657a8efd78214a7032b7317dd7614fa61e098521d29f |
<!DOCTYPE html>
<!--[if IEMobile 7 ]><html class="no-js iem7"><![endif]-->
<!--[if lt IE 9]><html class="no-js lte-ie8"><![endif]-->
<!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js"><!--<![endif]-->
<head>
<meta charset="utf-8">
<title>
Swift - 函数式编程 - 李小争
</title>
<meta... | HTML | Blog/14799126696997.html | Mekor/Mekor.github.io | mit | 11,885 | 611 | codeparrot/github-code |
f574ddaa44b8c57710985943f938c095ad1ff80c776ea43b1ab41b94c766bc39 | package net.cooldude.homeworkmanager.api;
import java.io.File;
import java.io.IOException;
import javax.swing.JOptionPane;
import net.cooldude.homeworkmanager.HomeworkManager;
import net.cooldude.homeworkmanager.api.util.TimeUtil;
import org.joda.time.DateTime;
public class HomeworkTask {
public static final Str... | Java | src/net/cooldude/homeworkmanager/api/HomeworkTask.java | CoolDude9090/Homework-Manager | mit | 3,652 | 139 | codeparrot/github-code |
23276fa01e886519955d96106b5975f7727004f608ba46402624868c7372e893 | <?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Sylius\Bundle\CoreBundle\Doctrine\ORM;
use Doctrine\ORM\EntityMan... | PHP | src/Sylius/Bundle/CoreBundle/Doctrine/ORM/OrderRepository.php | Pitoune/Sylius | mit | 12,223 | 395 | codeparrot/github-code |
4122d30aec23e9d5865a26f60c92f18fa4ce006f3793f3655d2e2ad6a26785b3 | <?php
// vim: set et sw=4 ts=4 sts=4 ft=php fdm=marker ff=unix fenc=utf8 nobomb:
/**
* PHP Readability
*
* Readability PHP 版本,详见
* http://code.google.com/p/arc90labs-readability/
*
* ChangeLog:
* [+] 2014-02-08 Add lead image param and improved get title function.
* [+] 2013-12-04 Better error ha... | PHP | readability/lib/Readability.inc.php | conicalhat/LinkHay-Application | mit | 9,484 | 305 | codeparrot/github-code |
7ada2e2dcbc2a865bf2c55d5a141c767a76f07ccb5e050964b7827ff66815634 | package org.zalando.nakadi.validation;
import org.json.JSONArray;
import org.json.JSONObject;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.springframework.core.io.DefaultResourceLoader;
import org.zalando.nakadi.domain.CleanupPolicy;
import org.zalando.nakadi.domain.EventType;
im... | Java | core-services/src/test/java/org/zalando/nakadi/validation/JsonSchemaEnrichmentTest.java | zalando/nakadi | mit | 2,067 | 55 | codeparrot/github-code |
58dc1b1894b12c041de74d3a8269676abc702bea7718d5c406fe9f5fc46f9141 | /*
* context.h
*
* Created on: June 09, 2016
* Author: Hotak
*/
#ifndef CONTEXT_H_
#define CONTEXT_H_
#include <AL/al.h>
#include <AL/alc.h>
#include <AL/alext.h>
#include "source.h"
#include <vector>
/*
* The Context class places Listener and Source objects within the given 3D space room
* and mixes au... | C | audiomanager/inc/context.h | hereforu/tizen-multimedia-apps | mit | 801 | 48 | codeparrot/github-code |
046a5d2f58d672c1494d8bee0692fef96a3888fb45d219651cdf63797b827fa3 | /* globals Mustache */
var NAILS_Admin_CMS_Menus_Create_Edit;
NAILS_Admin_CMS_Menus_Create_Edit = function(items) {
/**
* Avoid scope issues in callbacks and anonymous functions by referring to `this` as `base`
* @type {Object}
*/
var base = this;
// -----------------------------------------... | JavaScript | assets/js/admin.menus.edit.js | nailsapp/module-cms | mit | 5,646 | 177 | codeparrot/github-code |
96df5f5f3b58b96c08870cf5954adc51afb9339bc8cf89a44ac5112ce04d1f66 | [?php
$first = ($pager->getPage() * $pager->getMaxPerPage() - $pager->getMaxPerPage() + 1);
$last = $first + $pager->getMaxPerPage() - 1;
?]
<table id="sf_admin_pager">
<tbody>
<tr>
<td class="left"></td>
<td class="center">
<table align="center" class="sf_admin_pagination">
<tbody>... | PHP | data/generator/sfDoctrineModule/jroller/template/templates/_pagination.php | braindata/sfAdminThemejRollerPlugin | mit | 2,701 | 65 | codeparrot/github-code |
ef2eb23685e76b75dfbc5420cbf908a08a4328236fb6fb6f1f1eee0e516b4eab | __author__ = 'jdaniel'
import copy
import random
import itertools
import operator
import math
import struct
import os
import sys
import json
from collections import defaultdict
class AlgorithmBase(object):
def __init__(self, objective_function):
"""
Base Algorithm class which contains utility fun... | Python | Algorithms/algorithm_base.py | jldaniel/Gaia | mit | 29,920 | 933 | codeparrot/github-code |
0e7311dc44ad5a28a220f284d57d7672bd79f0de3435127207e806e857e6b116 | using UnityEngine;
using System.Collections;
public class GrannyController : MonoBehaviour {
public float speed = 2.0f;
public GameObject bullet;
public Sprite grannyWithGlasses;
private const float grannySpeedWithCane = 4.0f;
private Vector3 target;
private const string myGlasses = "glasses";
private const ... | C# | Assets/scripts/house/GrannyController.cs | ermergerd/GameJam2015 | mit | 3,672 | 147 | codeparrot/github-code |
51c48c465107b0056aac879956ba813dc87d550b9599f845e084b4d5e33deef4 | package moe.yukisora.shitake;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import moe.yukisora.shitake.ui.account.ProfileFragment;
import moe.yukisora.shitake.ui.account.RegisterFragment;
public class AccountActivity extends AppCompatActivity {
public static final String REGISTER_P... | Java | app/src/main/java/moe/yukisora/shitake/AccountActivity.java | YukiSora/shitake | mit | 1,893 | 64 | codeparrot/github-code |
ffda2d2de0f173f3d941b3bb9516424e1c9a8a4111fef7648a5eb3edd63a3959 | /*
* Copyright (c) 2016 Valery Alex P.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of con... | C# | Assets/Varp/Scheme/Data/Value_Explicit.cs | hww/VARP | mit | 5,353 | 157 | codeparrot/github-code |
84b94230f810a6ab473c3c9c0e0d674b85a9b6a35cf5785dbf282f110cab8582 | import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import { Animated, StyleSheet } from 'react-native';
import { H6 } from '@ui/typography';
import styled from '@ui/styled';
export const LabelText = styled(({ theme }) => ({
color: theme.colors.text.secondary,
backgroundColor: 'transp... | JavaScript | src/@ui/inputs/FloatingLabel.js | NewSpring/Apollos | mit | 2,292 | 89 | codeparrot/github-code |
07e2cbc5c5a6120851805a8229e5e96c8d6f1a5ff3ab8f00bcc35b4b636562ae | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Database: `openbaltimore`
--
CREATE DATABASE IF NOT EXISTS `openbaltimore` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `openbaltimore`;
-- --------------------------------------------------------
--
-- Table structure for table `... | SQL | src/test/resources/createTestDB.sql | charleshb417/webrest | mit | 2,701 | 96 | codeparrot/github-code |
029a16b66bb8ac7427c4c65a39486ca07831149903edb08aa68281c692182a51 | package fr.ironcraft.nowel.entity.model.stuff;
import fr.ironcraft.nowel.Nowel;
import net.minecraft.client.Minecraft;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.util.ResourceLocation;
public class ModelSantaHat extends ModelBase
{
public Model... | Java | src/main/java/fr/ironcraft/nowel/entity/model/stuff/ModelSantaHat.java | wascar10/nowel | mit | 1,832 | 67 | codeparrot/github-code |
98043c0762f1e441300d774dffd6eaaf2c3e3b8babc57aedba8a9532f9f0b0e4 | // Load in dependencies
var exec = require('./utils').exec;
// Helper function to collect information about a window
function windowInfo(id) {
// Get active window and window info
// http://unix.stackexchange.com/questions/61037/how-to-resize-application-windows-in-an-arbitrary-direction-not-vertical-and-no
var ... | JavaScript | lib/windowInfo.js | metainfa/controlpad | mit | 1,354 | 37 | codeparrot/github-code |
ce1a44b75e5524f1d6dfcfcff84a9f280eb2e971b2f660b360818e82b7ddd964 | // Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "main.h"
#include "db.h"
#include "txdb.h"
#include "init.h"
#include "miner.h... | C++ | src/rpcmining.cpp | OfficialCrackCoin/CrackCoin | mit | 19,834 | 545 | codeparrot/github-code |
79fc6d7f80ce9540e62a3ce26d79fd564156f7f9ce4748dcfbd42638afeed137 | module Neo4j::ActiveRel
module Persistence
extend ActiveSupport::Concern
include Neo4j::Shared::Persistence
class RelInvalidError < RuntimeError; end
class ModelClassInvalidError < RuntimeError; end
class RelCreateFailedError < RuntimeError; end
def save(*)
create_or_update
end
... | Ruby | lib/neo4j/active_rel/persistence.rb | jmdeldin/neo4j | mit | 3,204 | 105 | codeparrot/github-code |
baaaa2be8ed4fa4d553cb7a87fec24a2bd866ed47f43c07a5c951044de728abd | import {Bounds, parseBounds, parseDocumentSize} from './css/layout/bounds';
import {COLORS, isTransparent, parseColor} from './css/types/color';
import {CloneConfigurations, CloneOptions, DocumentCloner, WindowOptions} from './dom/document-cloner';
import {isBodyElement, isHTMLElement, parseTree} from './dom/node-parse... | TypeScript | src/index.ts | niklasvh/html2canvas | mit | 6,451 | 176 | codeparrot/github-code |
7b09412f8346eddba06b0880041489bffa735bf24d239b26591638296021e34e | """Freebox component constants."""
from __future__ import annotations
import socket
from homeassistant.components.sensor import SensorEntityDescription
from homeassistant.const import DATA_RATE_KILOBYTES_PER_SECOND, PERCENTAGE, Platform
DOMAIN = "freebox"
SERVICE_REBOOT = "reboot"
APP_DESC = {
"app_id": "hass",... | Python | homeassistant/components/freebox/const.py | rohitranjan1991/home-assistant | mit | 2,269 | 82 | codeparrot/github-code |
8b25d49d270875673bc9b2f9ecb05c0eeccaeef6503778f4001f665fe0a6967e | /*******************************************************************************
* Copyright (c) 2012, 2013 IBM Corp.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.0 which accompany ... | C | implementation/Test/stdoutsub.c | PandoCloud/pando-protocol | mit | 19,048 | 711 | codeparrot/github-code |
4b22d006fc16267e0727075276f98758ade6f918a41f08527c59d962676b2f26 | using System;
using System.Globalization;
using System.Xml.Serialization;
namespace MyFlightscope.Proxy.DTO
{
/// <summary>
/// 2016-03-03 07:24:05
/// </summary>
public class MyFlightDatetime : IXmlSerializable, IFormattable, IComparable<DateTime>, IEquatable<DateTime>
{
public const stri... | C# | MyFlightscope.Proxy/DTO/MyFlightDatetime.cs | judgie79/MyFlight | mit | 1,691 | 65 | codeparrot/github-code |
47958d17e9a4e23039d98a90c7664fc858b3062bff757be36dc34b2f4a98879c | import * as React from "react";
import { mount, ReactWrapper } from "enzyme";
import { matchers } from "@emotion/jest";
expect.extend(matchers);
type ExpectFunc = (loader: ReactWrapper, multiplier: number) => void;
function speedMultiplierSpecs(Loader: typeof React.Component, expectFunction: ExpectFunc): void {
des... | TypeScript | __tests__/sharedSpecs/speedMultiplierSpecs.tsx | davidhu2000/react-spinners | mit | 1,208 | 37 | codeparrot/github-code |
f1e7f2347df24099088a4c923d4925b3bca12f275ee1507cf9d0c357ae7f84a8 | /*
* Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/lice... | C | Boss2D/addon/_old/openssl-1.1.0c_for_boss/crypto/bio/bf_buff.c | koobonil/Boss2D | mit | 12,117 | 456 | codeparrot/github-code |
3d49153aa2d6f2d4d1a37f69b4cdfb8c6a5bb5fc94504def9a6864c05bfd6b9c | <!--
Safe sample
input : get the field userData from the variable $_GET via an object, which store it in a array
sanitize : use of the function htmlentities. Sanitizes the query but has a high chance to produce unexpected results
File : use of untrusted data in one side of a quoted expression in a script
-->
<!--Copy... | PHP | XSS/CWE_79/safe/CWE_79__object-Array__func_htmlentities__Use_untrusted_data_script-side_Quoted_Expr.php | stivalet/PHP-Vulnerability-test-suite | mit | 1,727 | 74 | codeparrot/github-code |
68a5dea79c7dcbe979bd626b1f71f5381afacdf612a0c1a659820ef42394c6c3 | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2011-2012 Litecoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef __cplusplus
# error This he... | C | src/protocol.h | etanoox/agyrion | mit | 3,422 | 139 | codeparrot/github-code |
8302a1be9bbe26224eb515d0f5957fea9cd3a2395ea9ba7638ecd6fccaa7610f | define(['mousetrap'], function(Mousetrap){
'use strict';
var utils = require('util'),
instances = []
;
function IframeMousetrap(a){
var self = new Mousetrap(a);
/*self._instanceId = instances.push(this);
self._originalHandleKey = this._handleKey;
self._handleKey = IframeMousetrap.protot... | JavaScript | app/js/IframeMousetrap.js | danyg/Scrum4Display | mit | 724 | 32 | codeparrot/github-code |
ff4575b9b6972795b99c1410afa1b69e1dc3423042e330271d824e126296e7b7 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>coqeal: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css"... | HTML | clean/Linux-x86_64-4.07.1-2.0.6/released/8.13.2/coqeal/1.0.1.html | coq-bench/coq-bench.github.io | mit | 7,922 | 186 | codeparrot/github-code |
591d4c7551c3bf8b7c20ca212eaa62730b32b4f53646ee8f6a1115d7be6b1bd1 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>io-system-ocaml: 16 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" ... | HTML | clean/Linux-x86_64-4.03.0-2.0.5/released/8.7.1+1/io-system-ocaml/2.2.0.html | coq-bench/coq-bench.github.io | mit | 7,289 | 177 | codeparrot/github-code |
7f637043f2b7d375dbd05701a4f3bf936b0ab65f88724493c1470223d4593735 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>relation-algebra: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstra... | HTML | clean/Linux-x86_64-4.02.3-2.0.6/released/8.4.6~camlp4/relation-algebra/1.7.html | coq-bench/coq-bench.github.io | mit | 7,674 | 184 | codeparrot/github-code |
7dac8ea84a10873fa49bf059ff42ee4c4097d2afefc4b80c22cb3af7020c6c3e |
/* File list.c implements a generic doubly-linked-list. All data is
considered to be void pointers and is shuffled around as such. */
#include <stdlib.h>
#include "list.h"
/* Initialize a list data structure */
int
List_init ( List_t *list )
{
int all_ok = 0;
/* Set the list information to NULL pointers ... | C | list.c | Shippo7/Chat-Room | mit | 6,509 | 302 | codeparrot/github-code |
68815efb53bced4262decb163bcabbbafaf86bc12620177a9535243800a8247a | 'use strict';
const EmberApp = require('./ember-app');
/**
* FastBoot renders your Ember.js applications in Node.js. Start by
* instantiating this class with the path to your compiled Ember app:
*
*
* #### Sandboxing
*
* For security and correctness reasons, Ember applications running in FastBoot
* are run in... | JavaScript | packages/fastboot/src/index.js | ember-fastboot/ember-cli-fastboot | mit | 5,462 | 139 | codeparrot/github-code |
52282d56b8ade42e146f16408a93d612c9eb5a9dfd66f00964a9a7fa6936e03f | #pragma once
namespace Rumia
{
template <typename Ty, typename... Rest>
class Tuple : public Tuple<Rest...>
{
public:
template <typename _Ty>
Tuple( _Ty&& data, Rest... rest ) :
Tuple<Rest...>( rest... ),
m_data( std::forward<_Ty>( data ) )
{
}
... | C | Sources/Rumia/Tuple.h | HoRangDev/Rumia | mit | 1,798 | 82 | codeparrot/github-code |
9a8f97673a395bc42e49a558b8182ff1c5d8d324892fafa3039a44429333a04c | /* ========================================================================
* ZUI: browser.js
* http://zui.sexy
* ========================================================================
* Copyright (c) 2014 cnezsoft.com; Licensed MIT
* ======================================================================== */
... | JavaScript | src/js/browser.js | 404904728/ui_zui | mit | 3,387 | 100 | codeparrot/github-code |
bdb5e98082ab576cf9a150176fc0c920a1878021be189c7dd7a1b8e094132238 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mtac2: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" ... | HTML | clean/Linux-x86_64-4.06.1-2.0.5/released/8.11.2/mtac2/1.1+8.10.html | coq-bench/coq-bench.github.io | mit | 6,806 | 167 | codeparrot/github-code |
f48bc44850df44003634e0a09c615e88b962988787609b06ff50f8c5c93bcc5d | package com.pl.azurestorageexplorer.models;
/**
* Created by Praneet Loke on 7/30/2016.
*/
public class ARMStorageService {
private String id;
private String name;
private String location;
public ARMStorageService(String name) {
this.name = name;
}
public String getName() {
... | Java | app/src/main/java/com/pl/azurestorageexplorer/models/ARMStorageService.java | praneetloke/AzureStorageExplorerAndroid | mit | 685 | 39 | codeparrot/github-code |
f91c3ff2c1d423951480466a1fcd4f931625af5b83dd992682b51a69fb811f1c | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.flushCacheConfiguration = exports.getCacheConfiguration = exports.loadCacheConfigurations = exports.setCacheConfiguration = undefined;
var _stringify = require('babel-runtime/core-js/json/stringify');
var _stringify2 = _interopReq... | JavaScript | adminclient/_src/util/cache_configuration.js | typesettin/periodicjs.ext.reactadmin | mit | 8,550 | 204 | codeparrot/github-code |
f0e1cf5f6d1ef8bd05c16165805a4d634a0142769d180ee9b722f0688d8fb207 | /*
Dwarf Therapist
Copyright (c) 2009 Trey Stout (chmod)
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, m... | C | inc/uniform.h | splintermind/Dwarf-Therapist | mit | 2,732 | 75 | codeparrot/github-code |
57d96a1de36301f3da9b105fd78eb06448193732d242f837a1dfb1447731c2f1 | /*
* This file is part of the render object implementation for KHTML.
*
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
* Copyright (C) 2003 Apple Computer, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms o... | C++ | Source/core/rendering/RenderDeprecatedFlexibleBox.cpp | lordmos/blink | mit | 47,954 | 1,091 | codeparrot/github-code |
03f94890b950e5aacfc8d09a3d34deb6f258cd186d9a8ebb52b1463baee217d6 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Murali Krishna</title>
<meta name="description" content="">
<meta name="author" content="Murali Krishna">
<!-- Enable responsive viewport -->
<meta name="viewport"... | HTML | _site/contact/index.html | sant0sh/Murali-Arts | mit | 5,242 | 222 | codeparrot/github-code |
de292b465b2db53a7d1e163d8c06048d4dc64da386e50deceb401bda7ab02baa | # encoding: utf-8
module Attestor
# Describes the result, returned by safe validation
class Report
# @private
def initialize(object, error = nil)
@object = object
@error = error
freeze
end
# @!attribute [r] object
# The object being validated
#
# @return [Object]
... | Ruby | lib/attestor/report.rb | nepalez/attestor | mit | 944 | 52 | codeparrot/github-code |
3f476e6257a4435d7b08a97c454dd27a70e4820d3f6da6fdd528e4d5a1fae244 |
module TSV
class << self
attr_accessor :field_index_dir
def field_index_dir
@field_index_dir ||= Rbbt.var.cache.field_indices
end
end
attr_accessor :field_indices
def field_index(field)
@field_indices ||= {}
@field_indices[field] ||= Persist.persist_tsv(self, filename, {:field => f... | Ruby | lib/rbbt/tsv/field_index.rb | mikisvaz/rbbt-util | mit | 1,354 | 57 | codeparrot/github-code |
20a784f8495c612b649a2a7dbcb74c57f8e45d66f4ec7b80057b280b27310632 | jQuery.fn.showMeMore = function (options) {
var options = $.extend({
current: 4, // number to be displayed at start
count: 4, // how many show in one click
fadeSpeed: 300, // animation speed
showButton: '', // show button (false / string)
hideButton: '', // hide button
... | JavaScript | dev/showMeMore.js | alexandr-prikhodko/showMeMore | mit | 3,143 | 88 | codeparrot/github-code |
ba307a9e79af356bb736f4a934a28294b412d1ff9dd193cc2a3a7056837486fe | package fi.nls.oskari.control.view;
import fi.nls.oskari.analysis.AnalysisHelper;
import fi.nls.oskari.cache.JedisManager;
import fi.nls.oskari.control.ActionDeniedException;
import fi.nls.oskari.control.ActionException;
import fi.nls.oskari.control.ActionParamsException;
import fi.nls.oskari.domain.Role;
import fi.nl... | Java | control-base/src/main/java/fi/nls/oskari/control/view/PublishPermissionHelper.java | nls-oskari/oskari-server | mit | 10,228 | 239 | codeparrot/github-code |
b285ea1c8c31e94fadac44f2a76abafaa89d4b2b2302b58f06e09dcc230e4b5a | /***************************************************************************
* Copyright (C) 2006 by Arnaud Desaedeleer *
* arnaud@desaedeleer.com *
* *
* Thi... | Java | OpenOMR/openomr/omr_engine/PitchCalculation.java | nayan92/ic-hack | mit | 4,129 | 152 | codeparrot/github-code |
cc17eb8a2b2f52ee97b45311a0e0b801fd71ad8871fff2fe3b889ccb6c6c2b03 | import _ from 'lodash';
import 'ui/paginated_table';
import popularityHtml from 'plugins/kibana/management/sections/indices/_field_popularity.html';
import controlsHtml from 'plugins/kibana/management/sections/indices/_field_controls.html';
import dateScripts from 'plugins/kibana/management/sections/indices/_date_scrip... | JavaScript | kibana/src/core_plugins/kibana/public/management/sections/indices/_scripted_fields.js | istresearch/PulseTheme | mit | 4,010 | 118 | codeparrot/github-code |
d060eebbb63543b5225653eb55b2e5726d9a3a8ad5f11d6dccdb2a3a0f7204d8 | import {
connecting,
connected,
reconnecting,
connectionFailed
} from './actions';
export default uri => store => {
let ws;
let hasEverConnected = false;
const RECONNECT_TIMEOUT_MS = 2000;
const ACTION = 'ACTION';
const connect = () => {
ws = new WebSocket(uri);
... | JavaScript | src/store/enhancers/middleware/websocket/src.js | jesse-robertson/game-night | mit | 1,599 | 55 | codeparrot/github-code |
bf4baadba2ec6c42f8ad5079197c837a0e6f77d165399350a0a99478b960970d | import logging
from marshmallow import ValidationError, post_load
from marshmallow_jsonapi import Schema, fields
from timeswitch.auth.dao import User
class NullHandler(logging.Handler):
def emit(self, record):
pass
logging.getLogger(__name__).addHandler(NullHandler())
LOGGER = logging.getLogger(__name_... | Python | Flask-Server/timeswitch/auth/schema.py | weichweich/Pi-Timeswitch | mit | 1,110 | 42 | codeparrot/github-code |
46f362bc7a61b2c3d2b54ebb44d0f3708afb23abd21ac5fe850920c6e99baeab | #ifndef KEY64
#define KEY64
#endif
#include <octree/octree_nn.h>
#include <octree/octree_parser.h>
#include "ocnn.h"
vector<Tensor> octree_align(Tensor src_data, Tensor src_octree,
Tensor des_octree, int depth) {
// in data
src_data = src_data.contiguous();
float* src_ptr = src_data.... | C++ | pytorch/cpp/octree_align.cpp | microsoft/O-CNN | mit | 2,470 | 79 | codeparrot/github-code |
008f2c4d0bbbfc8bd51dd10f7fd0fc753864c2d5715ad79632fc71ecb56b6079 | //
// ViewController.h
// KRGpsTracker V1.4
//
// Created by Kalvar on 13/6/23.
// Copyright (c) 2013 - 2015年 Kuo-Ming Lin. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "KRGpsTracker.h"
@interface ViewController : UIViewController
{
}
@property (nonatomic, weak) IBOutlet MKMapView *outMapView... | C | KRGpsTracker/ViewController.h | Kalvar/ios-KRGpsTracker | mit | 758 | 30 | codeparrot/github-code |
0064bc49463faeedd6bd0cac16d4c021d7ef3b0823433c322a1ccbb9507e7a33 | /**
* Created by Deathnerd on 1/23/2015.
*/
var gulp = require('gulp');
var usemin = require('gulp-usemin');
var uglify = require('gulp-uglify');
var shell = require('gulp-shell');
var replace = require('gulp-replace');
gulp.task('usemin', function(){
gulp.src(['./src/template.html'])
.pipe(usemin({
... | JavaScript | gulpfile.js | Deathnerd/story.js | mit | 890 | 37 | codeparrot/github-code |
0f33764cf51d1f074468f3f826bf658b2b02e34803d1d2fbfb138fcdb29a38b4 | <TS version="2.1" language="cy">
<context>
<name>AddressBookPage</name>
<message>
<source>Create a new address</source>
<translation>Creu cyfeiriad newydd</translation>
</message>
<message>
<source>&New</source>
<translation>&Newydd</translation>
</message>
... | TypeScript | src/qt/locale/bitcoin_cy.ts | bitcoinknots/bitcoin | mit | 38,191 | 1,154 | codeparrot/github-code |
7f0cf749969bc8c286803a4136e0f0428067adceefb1a2417b3e08ac4ab3de1a | <!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="http://photonui.orangehilldev.com/images/photo... | HTML | lib/assets/images/photon/plugins/elrte/js/bootstrap/js/plugins/prettify/js/plugins/prettify/js/plugins/jquery.autotab-1.1b.js.html | user-tony/photon-rails | mit | 14,706 | 183 | codeparrot/github-code |
c67d1b8c3391e5cd557eb11f6a47b283348ef2a63ac74b283e688f22bbd5b941 | package com.pge.ev;
import java.util.*;
import java.io.*;
public class FileReader
{
public static double[] readPeaksTieredRateFile()
{
Scanner inFile = new Scanner("");
String lineData = "";
Scanner inLine = new Scanner("");
try
{
inFile = new Scanner(new File(FileReader.class.g... | Java | src/main/java/com/pge/ev/FileReader.java | jmusun1/sampleheroku | mit | 6,431 | 242 | codeparrot/github-code |
80a5e4ee56a4d0c4c29befc0b92f60d69b3c4acf54fedccfc6add9477c7ba07d | using System;
using System.Net.Sockets;
using Dataflow.Remoting;
namespace Dataflow.Remoting
{
public class SocketListenerConnection : SocketConnection
{
private readonly SocketListener _listener;
public SocketListenerConnection(SocketListener host)
: base(null)
{
... | C# | Dataflow.Remoting/Services/SocketListener.cs | Dataflow-Software/Dataflow.NET | mit | 1,679 | 61 | codeparrot/github-code |
8711225b848a97647810ce93f92284e1b26effc7d1d4de3233e68d91cea7c8d5 | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from random import shuffle
class Carta():
def __init__(self, numero, naipe):
self.numero = numero
self.naipe = naipe
def __repr__(self):
return '%s de %s' % (self.numero, self.naipe)
class Baralho():
... | Python | backend/appengine/pythonicos.py | renzon/fatec-script | mit | 1,283 | 59 | codeparrot/github-code |
77e0661bf2116d9341ed3843d936608902f2d20f94a7036d9f48a33905bbcb8c | require_relative 'hint'
class Step
attr_accessor :name, :value, :block, :result, :hint
def initialize(name, value, options = {}, &block)
@name = name
@value = value
@block = block
@result = false
if (options.has_key?(:hint))
@hint = Hint.new(self, options[:hint][:text], options[:hint][:... | Ruby | lib/completion-progress/step.rb | MirkoMignini/completion-progress | mit | 830 | 40 | codeparrot/github-code |
42d863c8936d3c329ca6c670230f07dd094cdb8fe9e46d3d80bc03ea1d99495a | # Quickly reload Bash configuration
alias src='source ~/.bashrc'
# Enable coloring of common commands
#
# Extracted from Ubuntu's .bashrc
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
alias grep='grep --c... | Shell | bash/.config/bash/aliases.bash | alcesleo/dotfiles | mit | 757 | 34 | codeparrot/github-code |
01a69756cfb7e675a4ca4773455a2900e1d3c5ac769b02ec861c57bf3e8e1ce7 | package algorithms.imageProcessing;
/**
* adapted from
* http://www.peterkovesi.com/matlabfns/FrequencyFilt/filtergrid.m
* which has copyright:
* Copyright (c) 1996-2013 Peter Kovesi
% Centre for Exploration Targeting
% The University of Western Australia
% peter.kovesi at uwa edu au
%
% Permission is hereby gran... | Java | src/algorithms/imageProcessing/FilterGrid.java | nking/curvature-scale-space-corners-and-transformations | mit | 6,266 | 195 | codeparrot/github-code |
5ca124f740a14ae7e280a0e214f335adc72a20c8fde9dd4d0f119d9ab33c65e1 | @ECHO OFF
REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set BUILDDIR=_build
set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% .
set I18NSPHINXOPTS=%SPHINXOPTS% .
if NOT "%PAPER%" == "" (
set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS... | Batchfile | docs/make.bat | charman2/rsas | mit | 7,240 | 264 | codeparrot/github-code |
df7f41aa01ba5baa8a6f90decfdd1428f3bf521b40e35d3797be6330f770f964 | var WO = WO || {};
WO.Track = Backbone.Model.extend({
urlRoot: '/api/tracks',
idAttribute: '_id',
defaults: {
notes: "",
title: 'Acoustic Piano',
isMuted: false,
solo: false,
octave: 4,
volume: 0.75,
instrument: "",
type: 'MIDI'
},
initialize : function(){
this.set('not... | JavaScript | public/js/models/trackModel.js | WorldOrchestra/WorldOrchestra | mit | 2,998 | 104 | codeparrot/github-code |
14b551ef4dffe87a899d32b65e99f9fd06dc586758ca2d4d434d905cd1853ad4 | describe('GiftCard Purchase Workflow', function () {
'use strict';
function waitForUrlToChangeTo (urlRegex) {
var currentUrl;
return browser.getCurrentUrl().then(function storeCurrentUrl (url) {
currentUrl = url;
}
).then(function waitForUrlToChangeTo () {
return browser.wait(function... | JavaScript | src/app/workflow.gift.card.e2e.spec.js | FelixLC/questionnaire.vinify | mit | 2,937 | 64 | codeparrot/github-code |
5d3c06d426c7e0e5a50f6f0b4979cce5cb3d36b518e7e4ca8918e7e051f58e2e | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | src/vs/workbench/contrib/tasks/test/common/configuration.test.ts | microsoft/vscode | mit | 46,943 | 1,763 | codeparrot/github-code |
f37bd801dc2255d32ead3c03c27b4ee9c6d97f3af00c4e1122cfee1292ed5f17 |
#ifndef MUSTACHE_NODE_HPP
#define MUSTACHE_NODE_HPP
#include <map>
#include <memory>
#include <stack>
#include <string>
#include <vector>
#include <stdint.h>
namespace mustache {
/*! \class Node
\brief Represents a token
This class represents a token.
*/
class Node {
public:
typedef std::auto_ptr<No... | C++ | src/node.hpp | cgvarela/libmustache | mit | 3,673 | 163 | codeparrot/github-code |
bb12546b6d959c49fcadb7d9eaeee98691b81928351fbcdae0432bee62809600 | /***************************************************************************
This is a library for the BNO055 orientation sensor
Designed specifically to work with the Adafruit BNO055 Breakout.
Pick one up today in the adafruit shop!
------> http://www.adafruit.com/products
These sensors use I2C to communica... | C | libraries/Adafruit_BNO055_t3/Adafruit_BNO055_t3.h | Eli-Woods/arduino | mit | 16,194 | 344 | codeparrot/github-code |
8a3966ebe2aaad6df074eaf8a2d3270e16a1ee1467d2597369afd19f5cf74fcb | import React from 'react';
import Wrapper, {
Header,
Content,
Footer,
Sidebar,
SidebarItem,
MainContent,
MainItem,
} from '../components/common/layouts/Container/Container';
import Menu from '../components/Menu/Menu';
import Filter from '../components/Filter/Filter';
const Main = () =>
<Wrapper>
<... | JavaScript | src/containers/StepTwo.js | AlbertFazullin/redux-form-demo | mit | 693 | 38 | codeparrot/github-code |
d7c9c4288b7e502c702095758ab1b043605ad7fd0ea9023072f6aa720d47b5b2 | <?php
namespace PW\CmsBundle\Controller;
use PW\ApplicationBundle\Controller\AbstractController,
Symfony\Component\HttpFoundation\Request,
Symfony\Component\HttpFoundation\Response,
Symfony\Component\Security\Core\SecurityContext,
Sensio\Bundle\FrameworkExtraBundle\Configuration\Route,
Sensio\Bund... | PHP | src/PW/CmsBundle/Controller/PageController.php | SparkRebel/sparkrebel.com | mit | 1,568 | 49 | codeparrot/github-code |
776a41866195691283c044880ed2db52eda1706a82396ebc93066f951078a7df | <?php
/**
* Shortnote.php
*
* @package Embera
* @author Michael Pratt <yo@michael-pratt.com>
* @link http://www.michael-pratt.com/
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Embera\Provider;
use Embera\Url;
/*... | PHP | upgrade/files/12.1.0-13.0.0.A1/files/plugins/mpratt/embera/src/Embera/Provider/Shortnote.php | unaio/una | mit | 1,790 | 74 | codeparrot/github-code |
8a4bfaba10907faaba6eed708bd46d8ef46b6785ea22fe6f839ddcc8be1b7f0f | using System;
using System.Collections.Generic;
using System.Web.Script.Serialization;
namespace OptionStrict.oEmbed
{
public class oEmbedJavaScriptConverter : JavaScriptConverter
{
static readonly Type[] _supportedTypes = new[]
{
... | C# | src/OptionStrict.oEmbed/oEmbedJavaScriptConverter.cs | codeprogression/OptionStrict.oEmbed | mit | 4,707 | 94 | codeparrot/github-code |
cba3e783a8617a14d4486e7bfdb7981912bd2eeb2bc42b770a80018d3dd6f065 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model.Enum;
namespace Model.Module.Interface
{
public class People : TranslateAble
{
public string Name { get; set; }
public string NickName { get; set; }
public string Id { get; set; }
... | C# | Project/WebMSN/Model/Module/Interface/People.cs | mt830813/code | mit | 659 | 35 | codeparrot/github-code |
3675002b93915744ee4489eab98198690743d166b44f48dd6dd7994d967c16df | import sys
import time
from pprint import pprint
import telepot
from telepot.namedtuple import StickerSet
TOKEN = sys.argv[1]
USER_ID = long(sys.argv[2])
STICKER_SET = sys.argv[3]
bot = telepot.Bot(TOKEN)
f = bot.uploadStickerFile(USER_ID, open('gandhi.png', 'rb'))
print 'Uploaded Gandhi'
bot.addStickerToSet(USER_I... | Python | test/test27_sticker.py | nickoala/telepot | mit | 727 | 32 | codeparrot/github-code |
7ba005cc653459fcb04b791c1697d56c6f8a9563e0d29bdfa87ee432d70984b1 | Rails.application.configure do
config.assets.raise_production_errors = true
# Settings specified here will take precedence over those in config/application.rb.
# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
... | Ruby | config/environments/development.rb | ruby005-reed-sufrin-tang/concertify-me | mit | 1,834 | 56 | codeparrot/github-code |
df5d5e92730603b0210d8534b8c24c11aa53cd3abf8f6a31dd3ed99da6134a2f | #pragma once
#include <stdlib.h>
namespace daw {
namespace radio {
namespace medtronic {
namespace packets {
namespace types {
enum MedtronicPacketType: uint8_t {
Pump = 0xA2,
Glucometre = 0xA5,
EnliteSensorWarmup = 0xAA,
EnliteSensor = 0xAB
};
}
struct __attribute_... | C | NightWatcher/packet_types.h | beached/NightWatcher | mit | 1,281 | 52 | codeparrot/github-code |
e80a367da86f23a39683e2e2d537e8ae17e612e2c51a560b523d099e62ec3b3f | package com.handi.floci.modules.conceptclassification;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.scene.control.ListView;
import javafx.scene.control.TreeItem;
import javafx.scene.control.... | Java | src/com/handi/floci/modules/conceptclassification/HierarchyGenerator.java | Hamhec/FLOCI | mit | 5,703 | 172 | codeparrot/github-code |
847a06343ef3ba3f50e710d982ad9db1817e946f7736fdfbb0dffcabfec4ff10 | class PleskLib::Actions::ListCustomers < PleskLib::Actions::Base
attr_reader :customers
MAPPING = {
'cr_date' => 'created_at', 'cname' => 'company_name', 'pname' => 'person_name',
'login' => 'login', 'status' => 'status', 'phone' => 'phone', 'fax' => 'fax',
'email' => 'email', 'address' => 'address', '... | Ruby | lib/plesk_lib/actions/list_customers.rb | molisoft/plesk_lib | mit | 1,691 | 53 | codeparrot/github-code |
a7df0be089ab5c7c738e9ed4b22b7bae9493c3475c412cef351b7d8d66654ed1 | /*
* Copyright (c) 2012, IDM
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted
* provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright notice, this list of
* conditions ... | C# | ThreadedIRCBot/Libraries/Cambridge Dictionary/SkPublishAPI.cs | graymalkin/gwen | mit | 19,957 | 526 | codeparrot/github-code |
bd522284181459bfd10b071757fa9b6801fca21a177a9bd48777c8da446fe09d | var React = require('react');
var Animation = require('react-addons-css-transition-group');
var NBButton = require('./NBItems').NBButton;
var NBTitle = require('./NBItems').NBTitle;
var NBEmpty = require('./NBItems').NBEmpty;
var Navbar = React.createClass({
render: function() {
return (
<div c... | JavaScript | app/scripts/components/TimerPage.js | React-Team-AM/react-template | mit | 1,659 | 56 | codeparrot/github-code |
c6c4fe5e83d0a10c3efce18513c6de0161352b10621041bece69b953a296f79b | <!DOCTYPE html>
<html lang="en" itemscope itemtype="http://schema.org/WebPage">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<title>404 Page not found - Fan's Blog</tit... | HTML | 404.html | dearxxj/dearxxj.github.io | mit | 8,521 | 215 | codeparrot/github-code |
597dae0492b3f48edcf28281c188ac56a263463d4bca9f59db7f3cb689c8dc35 | module Beckett
class Node::Element < Node::Base
def to_h
{}.tap do |element|
element[:node_name] = node_name
element[:node_type] = node_type
# NOTE: might add attributes as `nil` or empty Hash at a later date...
element[:attributes] = node_attributes if node_attributes
... | Ruby | lib/beckett/node/element.rb | coreyti/beckett | mit | 710 | 32 | codeparrot/github-code |
0651c02aef646ca35faf8c500fffdc681897b142f2d0233a6e552f23d084b1a8 | package modtweaker2.mods.tconstruct.handlers;
import static modtweaker2.helpers.InputHelper.toIItemStack;
import static modtweaker2.helpers.InputHelper.toStack;
import java.util.LinkedList;
import java.util.List;
import minetweaker.MineTweakerAPI;
import minetweaker.api.item.IIngredient;
import minetweaker.api.item.... | Java | src/main/java/modtweaker2/mods/tconstruct/handlers/TiCTweaks.java | yrsegal/ModTweaker2 | mit | 4,431 | 119 | codeparrot/github-code |
df3a891e9f69370ae28953329c57d567b42cc0dee97017e1d36429c182bc6213 | package twg2.cli;
/**
* @author TeamworkGuy2
* @since 2015-4-30
*/
public class ParameterParserException {
private ParameterParserExceptionType errorType;
private String message;
private Throwable cause;
/**
* @param message
* @param cause
* @param errorType
*/
public ParameterParserException(Paramet... | Java | src/twg2/cli/ParameterParserException.java | TeamworkGuy2/JParameter | mit | 661 | 40 | codeparrot/github-code |
cb2f9380cccfeea589f16275d5a90aa2b1f780a0920c4c4e28877ff5df14260f | {% extends "site_base.html" %}
{% load staticfiles %}
{% load qa_tags %}
{% block head_title %}{{test_list_instance.work_completed|date}} {{test_list_instance.test_list.name}} Details{% endblock %}
{% block body %}
<div class="row-fluid">
<div class="span12">
<h3>{{test_list_instance.work_comp... | HTML | qatrack/templates/qa/testlistinstance_detail.html | sharifelguindi/qatrackplus | mit | 8,294 | 180 | codeparrot/github-code |
9f3f203a1fbee805dd7da612c8a66fe509a22de5484111fd2599a0bbe857b134 | namespace WindowsRA1.Recepcion
{
partial class frmServiciosAtendidos
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </sum... | C# | RA-KimberlyMichelEstradaBlanco/WindowsRA1/Recepcion/frmServiciosAtendidos.Designer.cs | michel98/RA1 | mit | 5,763 | 118 | codeparrot/github-code |
35c26f9801726002bac24fe3f81008def857ebe39f9c82bb7ce38a33fc4027fb | var fs = require('fs');
var url = require('url');
var mime = require('mime');
var path = require('path');
exports.css = function(s) {
var pathname = url.parse(s.request.url).pathname;
var path = 'g' + pathname + '.css';
var locale = s.strings('locale.json');
var errors = s.strings('errors.json');
var conte... | JavaScript | routes/resources.js | Arubaruba/Hayya-Nabnee | mit | 2,414 | 99 | codeparrot/github-code |
25cbe60a16eb6b84f8d39c418b59b5d0617b3b92cbadec2278e9395334e564eb | //
// SSZipArchive.h
// SSZipArchive
//
// Created by Sam Soffes on 7/21/10.
// Copyright (c) Sam Soffes 2010-2015. All rights reserved.
//
#ifndef _SSZIPARCHIVE_H
#define _SSZIPARCHIVE_H
#import <Foundation/Foundation.h>
#include "SSZipCommon.h"
NS_ASSUME_NONNULL_BEGIN
extern NSString *const SSZipArchiveErrorD... | C | Pods/SSZipArchive/SSZipArchive/SSZipArchive.h | svdo/ipatool | mit | 5,617 | 106 | codeparrot/github-code |
cd93d5fd6c09899a04b248f325f6f92c8ee6a925a75f63787b3a0113d87edb86 | // Copyright 2013 Daniel Parker
// Distributed under the Boost license, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// See https://github.com/danielaparker/jsoncons for latest version
#ifndef JSONCONS_JSON_CONTAINER_TYPES_HPP
#define JSONCONS_JSON_CONTAINER_... | C++ | deps/jsoncons/json_container_types.hpp | wilseypa/warped2-models | mit | 70,585 | 1,991 | codeparrot/github-code |
a12cfec216095300a563fc1b5a2b02761d6495ffafa47ace0e77c21543a6edb3 | import React, { Component } from 'react';
import { SelectField, MenuItem } from 'fusionui-shared-components-react';
import PropTypes from 'prop-types';
import '../../FormField.scss';
import './FormSelectField.scss';
const style = {
width: '100%',
height: 30,
border: 'none',
backgroundColor: 'rgb(239, 239, 239)... | JavaScript | tp-3/juan-pablo-gonzalez/src/shared/components/sovos-dynamic-form/components/formField/components/formSelectField/FormSelectField.js | jpgonzalezquinteros/sovos-reactivo-2017 | mit | 2,005 | 75 | codeparrot/github-code |
b9259f2e18c72d6e5bb368ca7a6e0ba39d84434f6db74d155e0b4a25e3ab3fbb | #!/usr/bin/env python
import numpy as np
import os,sys
from mpl_toolkits.mplot3d import Axes3D
from matplotlib import pyplot as plt
import argparse
ap=argparse.ArgumentParser()
ap.add_argument('-vis') # 1 plot cropped point cloud
ap.add_argument('-refine') # 1 refine mesh
ap.add_argument('-clean') # 1 remove tmp... | Python | example/F3Dp/F3D_syn.py | Chunfang/defmod-swpc | mit | 4,626 | 135 | codeparrot/github-code |
5a96796c88462a541aa2d42297460bdbb40a4fd93df5085545f9099665a0a37c | <!DOCTYPE html><html><head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="description">
<meta name="keywords" content="static content generator,static site generator,static site,HTML,web development,.NET,C#,Razor,Markdown,YAML">
<meta n... | HTML | docs/api/OpenTl.Schema/IPaymentSavedCredentials/C9EA80EF.html | OpenTl/OpenTl.Schema | mit | 10,579 | 261 | codeparrot/github-code |
92fcaccd2c1301b8636946e312ae47b20b61b8e9e37fc4cd3647f6a4cc6b659b | 'use strict';
var mongoose = require('mongoose'),
async = require('async');
var DeleteChildrenPlugin = function(schema, options) {
schema.pre('remove', function(done) {
var parentField = options.parentField;
var childModel = options.childModel;
if (!parentField) {
var err = new Error('parentField not def... | JavaScript | server/components/nesting/index.js | icompuiz/pollio | mit | 2,628 | 107 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.