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 |
|---|---|---|---|---|---|---|---|---|
b7ba7e68122465c3d9817e08c07e723c2f6c71421838cc954f653eb94a2ccc91 | /* Encoder Library, for measuring quadrature encoded signals
* http://www.pjrc.com/teensy/td_libs_Encoder.html
* Copyright (c) 2011,2013 PJRC.COM, LLC - Paul Stoffregen <paul@pjrc.com>
*
* Version 1.2 - fix -2 bug in C-only code
* Version 1.1 - expand to support boards with up to 60 interrupts
* Version 1.0 - ini... | C | firmware/utility/Encoder.h | fgu-cas/arenomat | mit | 25,785 | 943 | codeparrot/github-code |
d059b2b35e96b251f06cc7ac4f1402da1ae2a91c63344f456953e8ddac576829 | namespace SharpCompress.Compressor.LZMA
{
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
internal class BitVector
{
private uint[] mBits;
private int mLength;
public BitVector(List<bool> bits) : this(bits.Count)
{
... | C# | SharpCompressForUnity3D/SharpCompress/Compressor/LZMA/BitVector.cs | RainsSoft/sharpcompress | mit | 2,723 | 106 | codeparrot/github-code |
532bd9cf354124319300676d9df4b74eea4b439ac649f2ee7e89dc534b2cb649 | package proxy
import (
"bytes"
"net/http"
)
type Response interface {
Status() int
Header() http.Header
Body() []byte
}
type WriterRecorder struct {
http.ResponseWriter
status int
body bytes.Buffer
}
func (w *WriterRecorder) WriteHeader(status int) {
w.ResponseWriter.WriteHeader(status)
w.status = statu... | GO | writer.go | gchaincl/swagger-proxy | mit | 659 | 43 | codeparrot/github-code |
ecaaa741244846a5190ab37ebfb7f372768e397cc089080262ed65b54576abcd | /* UnaryOperator Copyright (C) 1998-2002 Jochen Hoenicke.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This prog... | Java | deps/alterrs/jode/expr/UnaryOperator.java | AlterRS/Deobfuscator | mit | 1,963 | 66 | codeparrot/github-code |
e10f4c8b5655cdc16f7f48024eca4734587685306e28fc54a624c0d718b9aff7 | <?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = [
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\Security... | PHP | app/AppKernel.php | ninsuo/symfony-quickstart | mit | 2,254 | 51 | codeparrot/github-code |
b677ffee8c9c2c938f2297c074bc8c5f40063a2282078b4cdd74e7b08c54c96b | using System;
using Computers.Common.Contracts;
namespace Computers.Common.Models.Components
{
public abstract class Cpu : MotherboardComponent, ICpu
{
private const int MinValue = 0;
private const string NumberTooLow = "Number too low.";
private const string NumberTooHigh = "Number t... | C# | Exam Preparations/HQC -Part 2/Computers/Problem/Computers.Common/Models/Components/Cpu.cs | dushka-dragoeva/TelerikSeson2016 | mit | 1,344 | 49 | codeparrot/github-code |
afc22b74116f235a859791301e4aaadc54cc36dad789d1601111da30254a851e | /* globals Promise:true */
var _ = require('lodash')
var EventEmitter = require('events').EventEmitter
var inherits = require('util').inherits
var LRU = require('lru-cache')
var Promise = require('bluebird')
var Snapshot = require('./snapshot')
var errors = require('../errors')
var util = require('../util')
/**
* @... | JavaScript | lib/blockchain/blockchain.js | chromaway/blockchainjs | mit | 4,218 | 184 | codeparrot/github-code |
991110e96df76e2ddf7f252894febd7a7f4148cee4930fe3e5ca5b568bee84ea | import { Cache } from '../cache/cache';
import { BoundedCache } from '../cache/bounded';
import { KeyType } from '../cache/key-type';
import { BoundlessCache } from '../cache/boundless';
import { Weigher } from '../cache/weigher';
import { DefaultLoadingCache } from '../cache/loading';
import { ExpirationCache } from '... | TypeScript | src/builder/unified-builder.ts | aholstenson/transitory | mit | 7,739 | 289 | codeparrot/github-code |
dfa6cf9039d2165c6dd9fa2007f17c9e9aaa4552153a4644826ec68bbafe86f4 | using Microsoft.Azure.AppService.ApiApps.Service;
using System.Collections.Generic;
using System.IO;
namespace FileWatcher.Models
{
// A simple in-memory trigger store.
public class InMemoryTriggerStore
{
private static InMemoryTriggerStore instance;
private IDictionary<string,... | C# | csharp/FileWatcher/FileWatcher/Models/InMemoryTriggerStore.cs | guangyang/apiapp-samples | mit | 2,325 | 64 | codeparrot/github-code |
b06f0edda27836a77c7d38601d45e0ba4f38eedc0aef8d5ce1fe635ecc2fe8a0 | <?php
namespace Application\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\Id;
use Doctrine\ORM\Mapping\GeneratedValue;
use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\OneToMany;
use Doctrine\ORM\Mapping\ManyToOne;
/**
* Person entity.
... | PHP | module/Application/src/Application/Entity/Person.php | Wbondar/Buddies | mit | 4,758 | 206 | codeparrot/github-code |
9bd55a28a4fcb75121b9d6f030e7f03ff977b0331e6223c49500b8cb13267121 | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { StyleSheet, css } from 'aphrodite';
import { changeTimeSignature } from '../../actions/track';
import HoverableText from './HoverableText';
const styles = StyleSheet.create({
text: {
fontFamily: 'Optima, Segoe, Segoe UI, C... | JavaScript | src/components/editor/TimeSignaturePopover.js | calesce/tab-editor | mit | 5,628 | 206 | codeparrot/github-code |
1275a20bcd706424b06e222dca4d1e09ec97c4328d3ef1a44975ef0149a05ac1 | <div class="sidebar">
<div class="sidebar-sticky">
<a href="{{ site.baseurl }}"><img class="sidebarimage" src="http://whataboutas.data.s3.amazonaws.com/images/SidebarImage.jpg" /></a>
<div class="sidebar-about">
<header class="masthead">
<h3 class="masthead-title">
<a href="{{ site.base... | HTML | _includes/sidebar.html | whataboutas/whataboutas.github.io | mit | 1,249 | 48 | codeparrot/github-code |
36212259650bbd91533f0ba04cb4d4c99564763ed802d3d8ba858b30f82eb10b | /*
The MIT License (MIT)
Copyright (c) <2010-2020> <wenshengming>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify... | C++ | LoginServer/LClientManager.cpp | MBeanwenshengming/linuxgameserver | mit | 3,307 | 133 | codeparrot/github-code |
637df0633e6e49f853a53165131099853b15033a9a648cd63a2f7308c56715e7 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Chart</title>
<... | HTML | web/index.html | slurdge/esp8266_dht11_oled | mit | 3,162 | 105 | codeparrot/github-code |
7b41025b8301cabab59d5faf82efb29f6cc4a88826bb55a1f1fb59c1985ac399 | package fr.univ_tln.trailscommunity.utilities.validators;
import java.util.Calendar;
/**
* Project TrailsCommunity.
* Package fr.univ_tln.trailscommunity.utilities.validators.
* File DateValidator.java.
* Created by Ysee on 26/11/2016 - 15:54.
* www.yseemonnier.com
* https://github.com/YMonnier
*/
public clas... | Java | app/android/TrailsCommunity/app/src/main/java/fr/univ_tln/trailscommunity/utilities/validators/DateValidator.java | YMonnier/TrailsCommunity | mit | 1,060 | 31 | codeparrot/github-code |
afc00f1ec0a7e1bd6d4352bb7246efb40dc7be0670e01ba7f576ba53047389a8 | using System;
using UnityEditor.Graphing;
using UnityEngine;
using Object = UnityEngine.Object;
using UnityEditor.UIElements;
using UnityEngine.UIElements;
namespace UnityEditor.ShaderGraph.Drawing.Slots
{
class TextureSlotControlView : VisualElement
{
Texture2DInputMaterialSlot m_Slot;
public... | C# | com.unity.shadergraph/Editor/Drawing/Views/Slots/TextureSlotControlView.cs | Unity-Technologies/ScriptableRenderLoop | mit | 1,120 | 35 | codeparrot/github-code |
e87d709c0d928a32bb64aacf9d97aaa87daa200a6af5c6d616ec432e6318a363 | using System;
using System.Diagnostics;
using UnityEngine.Rendering;
namespace UnityEngine.Experimental.Rendering.HDPipeline
{
// This enum is just here to centralize UniqueID values for skies provided with HDRP
public enum SkyType
{
HDRISky = 1,
ProceduralSky = 2,
Gradient = 3,
... | C# | com.unity.render-pipelines.high-definition/Runtime/Sky/VisualEnvironment.cs | Unity-Technologies/ScriptableRenderLoop | mit | 3,134 | 83 | codeparrot/github-code |
bb3d346ad3a7aaa87692e273607d77db52d013b490724242e175a200e663bcbd | #include <iostream>
#include <math.h>
#include <vector>
using namespace std;
#define ADJACENT_DIGITS_NUM 4
#define ROW_COL_LENGTH 20
int digits[ROW_COL_LENGTH][ROW_COL_LENGTH] = {
{ 8, 2, 22, 97, 38, 15, 0, 40, 0, 75, 4, 5, 7, 78, 52, 12, 50, 77, 91, 8 },
{ 49, 49, 99, 40, 17, 81, 18, 57, 60, 87, 17, 40,... | C++ | 11.cpp | DouglasSherk/project-euler | mit | 3,679 | 85 | codeparrot/github-code |
249a52881f37b542e87a17a1ad36f2f6524afe25be5487aed284be84312cd035 | package eu.bcvsolutions.idm.core.api.rest.lookup;
import java.io.IOException;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.List;
import java.util.Objects;
import java.util.UUID;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
imp... | Java | Realization/backend/core/core-api/src/main/java/eu/bcvsolutions/idm/core/api/rest/lookup/AbstractFormProjectionLookup.java | bcvsolutions/CzechIdMng | mit | 5,496 | 162 | codeparrot/github-code |
475891e815d6400edf494a59b9c0611975ae8a0acc4e3a98b749aac9e8f97ed2 | from __future__ import absolute_import, unicode_literals
from django.conf import settings
from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.auth import urls as djangoauth_urls
from search import views as search_views
from blog import views as blog_views
from wagtail.wagtai... | Python | myblog/urls.py | philba/myblog | mit | 1,474 | 43 | codeparrot/github-code |
6632d3159eb52189ac43acdab395b1eecf5b75ce2f23103ef381eeb0a6606f86 | /* -*- mode:C++; -*- */
/* MIT License -- MyThOS: The Many-Threads Operating System
*
* 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 ... | C++ | kernel/objects/capability-spinning/objects/CapEntry.cc | ManyThreads/mythos | mit | 4,691 | 165 | codeparrot/github-code |
c0815d5aacd4c086f0d3904a13148249f78a6905b23690eb41711a328197ef1b | <?php
use Winged\Model\Model;
/**
* Class Cidades
*
* @package Winged\Model
*/
class Cidades extends Model
{
public function __construct()
{
parent::__construct();
return $this;
}
/** @var $id_cidade integer */
public $id_cidade;
/** @var $id_estado integer */
public ... | PHP | projects/admin/models/Cidades.php | matheuswf/winged-framework | mit | 1,913 | 113 | codeparrot/github-code |
bc8ed4e95b05b78c3de3ae44eff3db0633028678c332c45fd312fd1dfcdb5af9 | using System;
namespace Glympse.EnRoute.iOS
{
class CustomerPickupManager : GCustomerPickupManager, EventSink.GGlyEventSink
{
private GlyCustomerPickupManager _raw;
private EventSink _eventSink;
public CustomerPickupManager(GlyCustomerPickupManager raw)
{
_raw = r... | C# | source/EnRouteApiiOS/Source/CustomerPickupManager.cs | Glympse/enroute-xamarin-sdk | mit | 2,496 | 105 | codeparrot/github-code |
2c09cd3882c27cf472ef48e30b8ba2e8b18063648b6b254aa3582e5108cb310b | import getDevTool from './devtool'
import getTarget from './target'
import getEntry from './entry'
import getOutput from './output'
import getResolve from './resolve'
import getResolveLoader from './resolveLoader'
import getModule from './module'
import getExternals from './externals'
import getPlugins from './... | JavaScript | src/webpack/make.js | cchamberlain/redux-webpack-boilerplate | mit | 1,031 | 32 | codeparrot/github-code |
672f5422d13008212abe005a88cb20babdd2a894f6c2f13382a92bc0b580b026 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>unicoq: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css"... | HTML | clean/Linux-x86_64-4.05.0-2.0.1/released/8.5.3/unicoq/1.3+8.7.html | coq-bench/coq-bench.github.io | mit | 6,588 | 165 | codeparrot/github-code |
14cb35c72194e95bbd4f2c68d17916a3007490749bf51af40407e6bf87bf68dc | /*
Copyright (c) 2012 Martin Sustrik All rights reserved.
Copyright 2015 Garrett D'Amore <garrett@damore.org>
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 restricti... | C | t/tcp.c | gridmq/gridmq | mit | 7,700 | 231 | codeparrot/github-code |
10fb4cce01c4c69a0be0da4aa9373323d0f3768f944d884ba694c974b188b091 | /***
* Inferno Engine v4 2015-2017
* Written by Tomasz "Rex Dex" Jonarski
*
* [# filter: actions #]
***/
#pragma once
#include "sceneEditorStructure.h"
#include "sceneEditorStructureNode.h"
#include "sceneEditorStructureLayer.h"
#include "sceneEditorStructureGroup.h"
#include "sceneEditorStructureWorldRoot.h"
#includ... | C | dev/src/plugin/editor_scene/include/sceneSelectionContext.h | InfernoEngine/engine | mit | 3,084 | 83 | codeparrot/github-code |
bb39c8d664f2a8674d3fb99d76443bffeaee5c64c34c9eec2ffbe38da4e17c26 | <?php
/**
* Created by PhpStorm.
* User: Nicolas Canfrère
* Date: 20/10/2014
* Time: 15:15
*/
/*
____________________
__ / ______ \
{ \ ___/___ / } \
{ / / # } |
{/ ô ô ; __} |
/ \__} / \ /\
<=(_ __<... | PHP | src/ZPB/AdminBundle/Form/Type/PostType.php | Grosloup/multisite3 | mit | 1,497 | 53 | codeparrot/github-code |
d2c12567be460d819368b6dd5f8c0ca588cb41ce5438b100f086980ef949200d |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>W29693_text</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div style="margin-left: auto; margin-right: auto; width: 800px; overflow: hidden;">
... | HTML | ocr_extracted/W29693_text/page44.html | datamade/elpc_bakken | mit | 2,411 | 45 | codeparrot/github-code |
3a51e6f134aecfbeab94bc011a3358c21f8f480ee0d11ab98508a9ee428771c3 | /*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2020 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the ... | C | src/Core/Algorithms/Math/ResizeMatrixAlgo.h | moritzdannhauer/SCIRunGUIPrototype | mit | 1,984 | 59 | codeparrot/github-code |
6781d1ec0ff2da0d071684c036029b1450c2fe211d4659fe6dc288ec9d0402f6 | #include "labyrinth.h"
#include <algorithm>
Labyrinth::Labyrinth(const int& width, const int& height, const std::vector<std::string>& map)
:_data(width, height), _visited(width, height)
{
for (int i = 0; i < width; ++i) {
for (int j = 0; j < height; ++j) {
_visited.set(i, j, false); //Non... | C++ | src/labyrinth.cc | Nixsm/labyrinth | mit | 2,581 | 109 | codeparrot/github-code |
d9ae2cf9e287a706df6437bc6ede7fbb77e02491f41f046e38b242ac904ec4a5 | class PagesController < Comfy::Admin::Cms::PagesController
helper 'page_blocks'
before_action :check_permissions
before_action :check_alternate_available, only: [:edit, :update, :destroy]
before_action :check_can_destroy, only: :destroy
def index
@all_pages = Comfy::Cms::Page.includes(:layout, :site, :c... | Ruby | app/controllers/pages_controller.rb | moneyadviceservice/cms | mit | 4,770 | 144 | codeparrot/github-code |
2b673b8d2f0341347f0376e67b76be44d38fca0f67f012b31bb04fd5af0b4015 | import { createReducer } from "redux-create-reducer";
import * as clone from "lodash/cloneDeep";
import {
INITIALIZE,
SWITCH,
} from "./actions";
import { IContainerModule } from "../types";
import { ITabState } from "./";
const initialState = {};
export default createReducer(initialState, {
[INITIALIZE](... | TypeScript | src/tab/reducer.ts | kencckw/redux-hoc | mit | 950 | 36 | codeparrot/github-code |
bbeaf510f0aff2fb1851740e6f889246b22d38a3be2cbaa00ecbc37f65558dc8 | <?php
class UserController extends BaseController {
public function register() {
if (Auth::check()){
return Redirect::to('/');
}
$colleges = College::all();
$areas = Area::all();
return View::make('user.register')
->with('colleges', $colleges)
... | PHP | app/controllers/UserController.php | Tuxers/yosise | mit | 2,053 | 69 | codeparrot/github-code |
de6fdf63833f568b485d731c8c9fdfa6aad15fb4e4be936f494803bc707b7b83 | #include "skynet.h"
#include "skynet_monitor.h"
#include "skynet_server.h"
#include "skynet.h"
#include "atomic.h"
#include <stdlib.h>
#include <string.h>
struct skynet_monitor
{
int version;
int check_version;
uint32_t source;
uint32_t destination;
};
struct skynet_monitor *skynet_monitor_new()
{
struct sky... | C | skynet-src/skynet_monitor.c | djianq/Game | mit | 1,046 | 53 | codeparrot/github-code |
02aed364d544df27fb03a9e45fd0c45e0083f160ca67a698baa496799bb96546 | /*
* The MIT License
* Copyright (c) 2014-2016 Nick Guletskii
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, c... | JavaScript | src/main/resources/public/resources/js/services/userService.js | nickguletskii/OpenOlympus | mit | 3,675 | 142 | codeparrot/github-code |
db3defdb2fb2c522c46d472e5cb331d030b79d9c0d5d3e321bcdd4fe8f45136d | // Copyright (c) Charlie Poole, Rob Prouse and Contributors. MIT License - see LICENSE.txt
#nullable enable
using System;
namespace NUnit.Framework
{
using Interfaces;
/// <summary>
/// Thrown when an assertion failed.
/// </summary>
[Serializable]
public class MultipleAssertException : Resu... | C# | src/NUnitFramework/framework/Exceptions/MultipleAssertException.cs | nunit/nunit | mit | 1,973 | 57 | codeparrot/github-code |
4ebe94be75e4d8d53b001885051477a6fc81440d0d7697368ca03c50f4f6622f | ##
# $Id: safari_libtiff.rb 10394 2010-09-20 08:06:27Z jduck $
##
##
# This file is part of the Metasploit Framework and may be subject to
# redistribution and commercial restrictions. Please see the Metasploit
# Framework web site for more information on licensing and terms of use.
# http://metasploit.com/fra... | Ruby | archive/exploits/hardware/remote/16862.rb | hahwul/mad-metasploit | mit | 4,828 | 175 | codeparrot/github-code |
c787fdf69b9491b7a696f649587ca4246c06a450e94ff2f65291bf8befdd0904 | define(['view',
'class'],
function(View, clazz) {
function Overlay(el, options) {
options = options || {};
Overlay.super_.call(this, el, options);
this.closable = options.closable;
this._autoRemove = options.autoRemove !== undefined ? options.autoRemove : true;
var self = this;
... | JavaScript | overlay.js | sailjs/overlay | mit | 924 | 43 | codeparrot/github-code |
e139349c26cd24433f7322251ae74820aec2ff4eab0f3f0a3eaddf39e0d035e2 | /**
* The MIT License
*
* Copyright (c) 2014 Martin Crawford and contributors.
*
* 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 r... | Java | src/main/java/org/atreus/impl/core/mappings/entities/builders/SimpleFieldComponentBuilder.java | bemisguided/atreus | mit | 3,523 | 84 | codeparrot/github-code |
e83a60a6434caf7ce4b043b824e4d2559429fcd0be6c8d13edea34d9423c0d5b | /*---------------------------------------------------------------------------------------------
* 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/editor/test/common/viewModel/prefixSumComputer.test.ts | microsoft/vscode | mit | 7,284 | 180 | codeparrot/github-code |
1edcca9da6595e32949c5c09d7b0ce459fdbe5194e0fc315949b6f669de50f69 | package org.zalando.intellij.swagger.documentation.openapi;
import com.intellij.openapi.components.ServiceManager;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiFile;
import java.util.Optional;
import java.util.s... | Java | src/main/java/org/zalando/intellij/swagger/documentation/openapi/OpenApiDocumentationProvider.java | zalando/intellij-swagger | mit | 3,876 | 90 | codeparrot/github-code |
78165899d64bdb73623c2883dea451ce4ab8a9095f9cca6bf8968c80e7608315 | /* this is all example code which should be changed; see query.js for how it works */
authUrl = "http://importio-signedserver.herokuapp.com/";
reEx.push(/\/_source$/);
/*
//change doReady() to auto-query on document ready
var doReadyOrg = doReady;
doReady = function() {
doReadyOrg();
doQuery();//query on ready
}
... | JavaScript | js/my.js | infiniteschema/importio-query | mit | 5,121 | 191 | codeparrot/github-code |
fc249bbb838fc19a5acfb9511ef6b1781c311a76529e6d704d4b4b8f67a90992 |
import sys
import time
import socket
import struct
import random
import hashlib
import urllib2
from Crypto import Random
from Crypto.Cipher import AES
# from itertools import izip_longest
# Setting timeout so that we won't wait forever
timeout = 2
socket.setdefaulttimeout(timeout)
limit = 256*256*256*256 - 1
def ... | Python | pyexfil/network/QUIC/quic_client.py | ytisf/PyExfil | mit | 6,330 | 193 | codeparrot/github-code |
f791062f8f2a7d74f577ab095512d39bf9d229ced62e3220e8cf01bcf02019a6 | <!DOCTYPE html>
<!--[if IE 8]> <html class="ie ie8"> <![endif]-->
<!--[if IE 9]> <html class="ie ie9"> <![endif]-->
<!--[if gt IE 9]><!--> <html> <!--<![endif]-->
<head>
<meta charset="utf-8" />
<title>Smarty - Multipurpose + Admin</title>
<meta name="keywords" content="HTML5,CSS3,Template" />
<meta name="... | HTML | HTML/portfolio-single-parallax-3.html | Emkrypted/premiereimports | mit | 73,015 | 1,716 | codeparrot/github-code |
d5e91586a4d62e1331c46fdaffb3679a88e3f33fd48e9433b26e58d7fab87297 | #include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <stdexcept>
#include <boost/program_options.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/tuple/tuple.hpp>
#include <btl/fasta_writer.h>
#include "ereal.h"
#include "dna_sequence.h"
#include "main_io.h"
#include "io.h"
#inclu... | C++ | src/rda/rda_main.cc | akhudek/feast | mit | 5,604 | 158 | codeparrot/github-code |
fccc43cae0102f98ae67bfef847ffb28978c42941239b22d8097335935719c84 | function flashMessage(type, message) {
var flashContainer = $('#flash-message');
var flash = null;
if (message.title) {
flash = $('<div class="alert alert-block alert-' + type + '"><h4 class="alert-heading">' + message.title + '</h4><p>' + message.message + '</p></div>');
}
else {
fl... | JavaScript | public/js/app.js | marcos-sandim/phalcon-proj | mit | 1,175 | 42 | codeparrot/github-code |
b4e7cbae27755ba52392e479e9de1295cf985e812914157dc284e49224bff289 | <!DOCTYPE html>
<html>
<head>
<title>Stupid jQuery table sort</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="../stupidtable.js?dev"></script>
<script>
// ======================================================
// Example 1
// ============... | HTML | examples/with-settings.html | joequery/Stupid-Table-Plugin | mit | 2,998 | 124 | codeparrot/github-code |
400ba42d0ebec3ae652649db935a9f02327c1f8f208077cb2a988f3ea0528e74 | import os
import re
import sys
import json
import shlex
import logging
import inspect
import functools
import importlib
from pprint import pformat
from collections import namedtuple
from traceback import format_tb
from requests.exceptions import RequestException
import strutil
from cachely.loader import Loader
from .... | Python | snagit/core.py | dakrauth/snarf | mit | 7,965 | 294 | codeparrot/github-code |
0cad8863d57f8079b508016788deeb0f4363277e563cbde4623ba39d7a670777 | <?php
/**
* CodeIgniter
*
* An open source application development framework for PHP
*
* This content is released under the MIT License (MIT)
*
* Copyright (c) 2014 - 2017, British Columbia Institute of Technology
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this softw... | PHP | system/core/Router.php | smallp/CodeIgniter | mit | 12,647 | 488 | codeparrot/github-code |
212ed15bc04b397122892d7e49479b8d8c5b9d52d7d21d9597364b940f4985f0 | import { Subscription } from 'rxjs/Subscription';
import * as _ from 'lodash-es';
import { ObservablesInterface } from './ngx-reactive-decorator.interface';
export const unsubscribeOnDestroy = function (target: any, observables?: ObservablesInterface): void {
// Original ngOnDestroy
const ngOnDestroy = target.pro... | TypeScript | src/unsubscribe-on-destroy.func.ts | ngx-reactive/decorator | mit | 1,180 | 34 | codeparrot/github-code |
1a26fd57f18a24255a0bc5f469fae4bf4d1e1003bf5e7a4ecee1ebd2655070c5 | package org.fscraper.helpers;
import org.jsoup.Connection;
import org.jsoup.HttpStatusException;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.net.SocketTimeoutException;
/**
* @author Jamil Rzayev March 2015... | Java | src/main/java/org/fscraper/helpers/ScraperHelper.java | jamilr/fashionScraper | mit | 1,389 | 56 | codeparrot/github-code |
aa81ac87ee6c0ddc0b0dcdb4429e449f5197caff4b73f0dcf0076beb872a299c | const fs = require('fs')
const Log = require('log')
const browserify = require('browserify')
const babelify = require('babelify')
const errorify = require('errorify')
const cssNext = require('postcss-cssnext')
const cssModulesify = require('css-modulesify')
const exec = require('child_process').exec
const log = new Lo... | JavaScript | scripts/build.js | pixelass/schachtel | mit | 1,530 | 67 | codeparrot/github-code |
382cc19c778f5947b036efb50ffdb22721d5d4920edadf87b351b2bb7306f1db | /**************************************************************************
The MIT License (MIT)
Copyright (c) 2015 Dmitry Sovetov
https://github.com/dmsovetov
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to ... | C++ | Source/Composer/Editors/SceneEditor.cpp | dmsovetov/dreemchest | mit | 40,007 | 997 | codeparrot/github-code |
a0d400528bf4ec9d14cc1d37f736b45ec443840ceb4ae4b60620dddd90eb74e8 | var style = document.createElement('p').style,
prefixes = 'O ms Moz webkit'.split(' '),
hasPrefix = /^(o|ms|moz|webkit)/,
upper = /([A-Z])/g,
memo = {};
function get(key) {
return (key in memo) ? memo[key] : memo[key] = prefix(key);
}
function prefix(key) {
var capitalizedKey = key.replace(/-([a-z])/g, fu... | JavaScript | app/templates/app/src/lib/swing/vendor-prefix.js | unbug/generator-webappstarter | mit | 1,162 | 51 | codeparrot/github-code |
9212231ff63f06b9bce4b7d04de196c889f696adcafaab03afb3b48cbdc64391 | /*
* Copyright (c) 2010 Matthew Zipay <mattz@ninthtest.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 limitation the
* rights to use, cop... | Java | src/main/java/net/ninthtest/CharacterEncodingTranslator.java | mzipay/CharacterEncodingTranslator | mit | 22,210 | 557 | codeparrot/github-code |
daac9acc27fcf1fed0f4545988836e90002b740cda20dc3ea57cf2be63cde3a5 | import antlr3;
import sqlite3;
import pickle;
import sys, os;
import re;
from SpeakPython.SpeakPython import SpeakPython;
from SpeakPython.SpeakPythonLexer import SpeakPythonLexer;
from SpeakPython.SpeakPythonParser import SpeakPythonParser;
#sort results based on length of labels
def sortResults(results):
l = len(r... | Python | devicecode/SpeakPythonMakeDB.py | netgio/voicecount | mit | 4,765 | 217 | codeparrot/github-code |
1a818bc8718221436335f6fc533d86c5df6da7a1d883289f13e6536b3960a786 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace YuGiOh.Bot.Extensions
{
public static class StringJoinExtensions
{
public static string Join(this string[] strArray, char separator)
=> string.Join(separator, strA... | C# | YuGiOh.Bot/Extensions/StringJoinExtensions.cs | MeLikeChoco/YuGiOhBot | mit | 1,288 | 38 | codeparrot/github-code |
952fb1d2ad56b69996433ef45384a6475bd2134a0038cbee4483ddd68e6d14da |
#ifndef SLG_MESH_HELPERS_HPP
#define SLG_MESH_HELPERS_HPP
#include "glm/glm.hpp"
#include "slg/Mesh.hpp"
#include <vector>
namespace slg {
bool loadObj(const char * filename,
std::vector<glm::vec3> & vertices,
std::vector<glm::vec2> & uvs,
std::vector<glm::vec3> & ... | C++ | include/slg/MeshHelpers.hpp | wibbe/slg | mit | 2,088 | 56 | codeparrot/github-code |
c9f0c798a2f539c87210f1e109ab76b78d1126f306b21c9460b6616b0e39c3a1 | from __future__ import unicode_literals
from __future__ import print_function
import socket
import time
import six
import math
import threading
from random import choice
import logging
from kazoo.client import KazooClient
from kazoo.client import KazooState
from kazoo.protocol.states import EventType
fro... | Python | solrzkutil/util.py | bendemott/solr-zkutil | mit | 13,103 | 341 | codeparrot/github-code |
13dcaf626ac34c98fa040c53bae85429b93c5f78516a4ba08e3cd30ddf15017d | package enums
import (
"encoding/json"
"fmt"
)
type VoiceType int
const (
VoiceType_FM VoiceType = iota
VoiceType_PCM
VoiceType_AL
)
func (t VoiceType) String() string {
s := "unknown"
switch t {
case 0:
s = "FM"
case 1:
s = "PCM"
case 2:
s = "AL"
}
return fmt.Sprintf("%s(%d)", s, t)
}
func (t Vo... | GO | smaf/enums/voice.go | but80/smaf825 | mit | 1,737 | 126 | codeparrot/github-code |
63ab936d181afbe1dfc08157dafebd6465cf1768a03dccc5a02811f1cd5d8a6c | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class CoinGenerator : MonoBehaviour {
public ObjectPooler coinPool;
public float coinMargins;
public void SpawnCoins(int coinAmount, Vector3 origin, float platformWidth)
{
if (coinAmount > 0)
{
... | C# | Assets/Scripts/CoinGenerator.cs | jolly-llama-games/bionic-salamander | mit | 1,221 | 35 | codeparrot/github-code |
141b126f569352a92839ff240565ad1efcb3a9334485cc15b3856c5be0faa09e | #pragma once
#include <cstddef>
#include <ostream>
#include <utility>
#include <vector>
#include <insertionfinder/algorithm.hpp>
namespace InsertionFinder {class Solution;};
std::ostream& operator<<(std::ostream&, const InsertionFinder::Solution&);
namespace InsertionFinder {
struct Insertion {
Algorithm ... | C++ | include/insertionfinder/insertion.hpp | xuanyan0x7c7/insertionfinder | mit | 2,266 | 57 | codeparrot/github-code |
13bf6a2f71d2a121a39420c3cd541208a7e4c3792368d36e4ed9c7852a4dc831 | /*########################################################################
*# #
*# Copyright (c) 2014 by #
*# Shanghai Stock Exchange (SSE), Shanghai, China #
*# ... | Java | source/step/src/sse/ngts/common/plugin/step/business/QuoteCancel.java | zkkz/OrientalExpress | mit | 5,629 | 236 | codeparrot/github-code |
22578da73b1eef0cf9887926c06552a8dda0d523a9d39b6c0174cb257d93d832 | module GitlabEngine
module Gitlab
class Merge
attr_accessor :project, :merge_request, :user
def initialize(merge_request, user)
self.user = user
self.merge_request = merge_request
self.project = merge_request.project
end
def can_be_merged?
result = false
... | Ruby | lib/gitlab_engine/gitlab/merge.rb | asceth/gitlab-engine | mit | 2,490 | 77 | codeparrot/github-code |
a6837e51c37652858e0f153c14b2c224b12839786559a2fa8f47d50a16f44a37 | 'use strict';
var angular = require('angular');
var calendarUtils = require('calendar-utils');
angular
.module('mwl.calendar')
.controller('MwlCalendarHourListCtrl', function($scope, $document, moment, calendarHelper) {
var vm = this;
// source: http://stackoverflow.com/questions/13382516/getting-scroll-... | JavaScript | src/directives/mwlCalendarHourList.js | mattlewis92/angular-bootstrap-calendar | mit | 4,724 | 172 | codeparrot/github-code |
479d7944e4e7cc203b92f23dbe17730fab98935c8fb689c27c508ae34acab55a | <?php
namespace Spolischook\MiniShopBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Component\Validator\Context\ExecutionContextInterface;
/**
* MoneyTransfer
*
* @ORM\Table(name="money_transfer")
* @ORM\Ent... | PHP | src/Spolischook/MiniShopBundle/Entity/MoneyTransfer.php | spolischook/MiniShop | mit | 5,264 | 269 | codeparrot/github-code |
a206a67ae3349a3a5ecda80685886db04b97a6c791d2350afdf0a633378c1037 | import React from 'react';
import PropTypes from 'prop-types';
import _get from 'lodash.get';
import _words from 'lodash.words';
import { VictoryAxis,
VictoryBar,
VictoryChart,
VictoryTheme } from 'victory';
export class CrawlChart extends React.Component {
constructor(props) {
super(props);
this.st... | JavaScript | src/components/CrawlChart.js | Benguino/star-wars-project | mit | 1,935 | 77 | codeparrot/github-code |
17e2424646ad002a4d56300cacbed8b6a3c7eb7242ade0edfcd6bec98fe3f776 | // ES2015 사용을 위한 babel 모듈 호출
import 'babel-polyfill';
// 전역 변수 객체 호출
import globalConfig from './helpers/global-config';
// npm 모듈 호출
import mobileDetect from 'mobile-detect';
//import scroll from 'scroll';
//import ease from 'ease-component';
import detectScrollPageObj from 'scroll-doc';
// devTools 호출
import devTo... | JavaScript | src/webpack/main.js | boolean99/gulp | mit | 3,301 | 126 | codeparrot/github-code |
0acac354620266049f5afd7f40fdb5a47620b0db661807a56695137933b27055 | package com.appian.intellij.k;
import java.util.Collection;
import java.util.Collections;
import org.jetbrains.annotations.NotNull;
import com.appian.intellij.k.psi.KElementFactory;
import com.appian.intellij.k.psi.KNamespaceDeclaration;
import com.appian.intellij.k.psi.KSymbol;
import com.appian.intellij.k.psi.KUse... | Java | src/main/java/com/appian/intellij/k/KSymbolicReference.java | a2ndrade/k-intellij-plugin | mit | 2,654 | 72 | codeparrot/github-code |
e70c5572f0df4ac29ffb46441452afc16f2f8bb781b6c9f198aa2dc05ea3ede2 | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2013-2014 Dogecoin Developers
// Copyright (c) 2013-2014 Team Mooncoin
// Copyright (c) 2014 UltimateCoin Developers and Research Group
// Distributed under the MIT/X11 software license, see the accompanying
/... | C | src/wallet.h | ultcoin/UltimateCoin | mit | 25,610 | 867 | codeparrot/github-code |
0cc86f503e402a35adf3eef546cd64dc00f28dde444646c2ba44b773065fc8b3 | # NOTE: we should probably be using seeds.rb instead of migrations for initializing data.
class SeedMetadataFields < ActiveRecord::Migration[5.1]
def up
# TODO: All the validation_types, proper association with Metadata-data entries, project associations, etc.
# +----------------------+
# | All/custom ... | Ruby | db/migrate/20190116005251_seed_metadata_fields.rb | chanzuckerberg/idseq-web | mit | 13,216 | 416 | codeparrot/github-code |
1ed84807fc100440be85b81ff5bb2411f3e571f9f838049073b0eb38d23ca822 | /* @flow */
/* **********************************************************
* File: tests/utils/dataStreams/graphBuffer.spec.js
*
* Brief: Provides a storage class for buffering data outputs
*
* Authors: Craig Cheney
*
* 2017.10.01 CC - Updated test suite for multi-device
* 2017.09.28 CC - Document created
*
************... | JavaScript | test/utils/dataStreams/graphBuffer.spec.js | TheCbac/MICA-Desktop | mit | 13,026 | 325 | codeparrot/github-code |
7330ea17e0c488beaefd6a662a9139f3db358205260872313c3dd0b57b726458 | <?php
namespace Boxc;
class Config {
// Your application identifier
const APP_ID = "";
// Your application secret
const APP_SECRET = "";
// API Endpoint
const ENDPOINT = "https://api.boxc.com/v1/";
// SDK Version
const VERSION = "1.2";
// The user's access token
public sta... | PHP | Resources/Config.php | boxc/api-php-sdk | mit | 556 | 32 | codeparrot/github-code |
e4fd202d84445e402a036c244942a018de8890e103eb8baaf109c4aa64e0ad63 | #!/usr/bin/env python
from __future__ import print_function
"""
Batch Normalization + SVRG on MNIST
Independent Study
May 24, 2016
Yintai Ma
"""
"""
# Use SGD AdaGrad instead
"""
"""
under folder of batch_normalization
Before merge; number 1
have options for "mlp", "mlpbn"; "sgd" and "custom_svrg2" and "sgd_adagrad... | Python | cifar/large_gpu_cifar10_ffn.py | myt00seven/svrg | mit | 20,715 | 576 | codeparrot/github-code |
9c35ba89b906ca87a192a0fa493d5bdd6df1048d8ebeb3f03ae423521c9405ed | <?php
/**
* This file is part of the Underbar.php package.
*
* Copyright (C) 2013 Shota Nozaki <emonkak@gmail.com>
*
* Licensed under the MIT License
*/
namespace Underbar\Iterator;
class InitialIterator implements \Iterator
{
private $it;
private $n;
private $queue;
private $current;
publi... | PHP | src/Underbar/Iterator/InitialIterator.php | emonkak/underbar.php | mit | 1,257 | 67 | codeparrot/github-code |
15e3f2cc19f3b43773fb4f553b820f352e3a910c6cf6e2e7cb2fcdfbd58acbc7 | namespace Vidyano.WebComponents {
"use strict";
@WebComponent.register({
properties: {
attribute: Object,
noLabel: {
type: Boolean,
reflectToAttribute: true,
value: false
},
editing: {
type: ... | TypeScript | src/WebComponents/PersistentObjectAttributePresenter/persistent-object-attribute-presenter.ts | jmptrader/Vidyano | mit | 16,166 | 358 | codeparrot/github-code |
3afa0dfb20bbf778fad809b5a04e8d738bb7e2597d162f4cafcf9d0facf2af1f | // This file contains functions for transpiling binary operator expressions.
package transpiler
import (
"fmt"
goast "go/ast"
"go/token"
"strings"
"github.com/elliotchance/c2go/ast"
"github.com/elliotchance/c2go/program"
"github.com/elliotchance/c2go/types"
"github.com/elliotchance/c2go/util"
)
// Comma pro... | GO | transpiler/binary.go | elliotchance/c2go | mit | 16,361 | 508 | codeparrot/github-code |
b683f6770063da5da2644be795eef3577f58fdba3187169fb2ba4ae690c3254d | module.exports = function (grunt) {
'use strict';
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-... | JavaScript | Gruntfile.js | samvandenberge/samvandenberge.github.io | mit | 7,077 | 227 | codeparrot/github-code |
e5024bf6c318e24f608916b53669549f787773eba1af204a45790bfaf90c0f51 | var expect = require('chai').expect;
var search = require('./');
describe('binary search', function() {
it('should search 0 elements', function() {
var arr = [];
expect(search(arr, 4)).to.equal(-1);
});
it('should search 1 element not found', function() {
var arr = [1];
expect(search(arr, 4)).t... | JavaScript | test.js | simplyianm/binarysearch-js | mit | 711 | 32 | codeparrot/github-code |
30f9424b6eab66d54889f1395bf36138435a71a5da069238608bc22de65fa613 | import { Client, ClientDao } from '../database/clientDao';
const dao = new ClientDao();
export default class ClientService {
static save(accessToken, refreshToken, profile, done) {
process.nextTick(() => {
let client = new Client();
client.name = profile.displayName;
c... | JavaScript | src/service/clientService.js | auromota/easy-pizza-api | mit | 943 | 33 | codeparrot/github-code |
9e834e538c091ed8e7a8416c5131d62890f1d349b15667fd71b9ddf08a351652 | //
// ImageHandler.cs
//
// Author:
// Lluis Sanchez <lluis@xamarin.com>
//
// Copyright (c) 2011 Xamarin 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 restrict... | C# | Xwt.XamMac/Xwt.Mac/ImageHandler.cs | hamekoz/xwt | mit | 11,561 | 365 | codeparrot/github-code |
750b95d5f6fe00dd4d2e82720798e3d50ff1c7617bdb23a1789267e8bcad8440 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="product" content="Metro UI CSS Framework">
<meta name="description" content="Simple responsive css framework">
<meta name="auth... | HTML | WebContent/forms2.html | sisinflab/losm | mit | 16,447 | 288 | codeparrot/github-code |
63aa5bca8b5e8dc1336453398e8ba46751bb687ee66daf3914563bc4b308d4ca | using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using NUnit.Framework;
using NSed;
using System.IO;
using NSed.Arguments.NSed;
using ArgumentHelper.Arguments.General;
namespace Tester.NSed
{
[TestFixture]
public class NSedArgumentCheckerTest
{
private const Str... | C# | Tester/NSed/NSedArgumentCheckerTest.cs | jns300/NSed | mit | 8,907 | 168 | codeparrot/github-code |
87c1aa466d49891d12bc68eeeeacc67c7d3928cbff71f3c8c4674dae63eff33e | import { createRangeFromZeroTo } from '../../helpers/utils/range'
describe('utils range', () => {
describe('createRangeFromZeroTo range 2', () => {
const range = createRangeFromZeroTo(2)
it('return the array 0 to 1', () => {
expect(range).toEqual([0, 1])
})
})
describe('createRangeFromZeroTo ... | JavaScript | assets/javascripts/kitten/helpers/utils/range.test.js | KissKissBankBank/kitten | mit | 1,232 | 52 | codeparrot/github-code |
78f2d14e171f05ae0c097cb77580152020305a6aad06694fd067f7f6e3b7d902 | using HtmlAgilityPack;
using WarframeDropRatesDataParser.DropTableParsers;
namespace WarframeDropRatesDataParser
{
internal sealed class DataFormatBuildDirector
{
private readonly Builder _builder;
private readonly HtmlDocument _dropRatesData;
public DataFormatBuildDirector(Builder bu... | C# | WarframeDropRatesDataParser/DataFormatBuilder/Director.cs | Vadim-AO/Warframe-Drop-Rates-Data | mit | 2,730 | 64 | codeparrot/github-code |
77bdc0b6899a20d9487d464682f0a2603c576b1e3469f601b53374df54f0545f | <?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AdminKernel extends Kernel
{
public function registerBundles()
{
$bundles = [
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\Securi... | PHP | app/AdminKernel.php | Aedius/crowfall-royaumes-eternel | mit | 2,075 | 58 | codeparrot/github-code |
c45dd5267190396fbd012d1f921a3b76a99a988618a781427fce0a1e3c11a8b5 | #!/usr/bin/env python
"""
cycle_basis.py
functions for calculating the cycle basis of a graph
"""
from numpy import *
import networkx as nx
import matplotlib
import matplotlib.pyplot as plt
from matplotlib import cm
from matplotlib.path import Path
if matplotlib.__version__ >= '1.3.0':
from matplotlib.p... | Python | cycle_basis.py | hronellenfitsch/nesting | mit | 11,955 | 367 | codeparrot/github-code |
4394facbe3495903fa212a163672dc7b855aefeb1e8a4d5b8c50c6e29de5acc3 | /*global YoBackbone, Backbone*/
YoBackbone.Collections = YoBackbone.Collections || {};
(function () {
'use strict';
var Todos = Backbone.Collection.extend({
model: YoBackbone.Models.Todo,
localStorage: new Backbone.LocalStorage('todos-backbone'),
// Filter down the list of all todo... | JavaScript | app/scripts/collections/todos.js | davidcunha/yo-backbone | mit | 1,325 | 44 | codeparrot/github-code |
8e49b360d21132eb759c51d66c9265a2c2c378381d51814c0933d9ec461c901f | <!doctype html>
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]-->
<!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"><!--<!... | HTML | _site/180grad/boules-spielen-bei-nacht-mit-leuchtenden-boule-kugeln/index.html | mediavrog/mediavrog.github.io | mit | 11,247 | 272 | codeparrot/github-code |
33fd2fb026ce3d17b98a535e88ebde2a9e8f20be8fc2e133acf3b135fff4de49 | <?php namespace ProcessWire\GraphQL\Test\Permissions\Editor\Update\NotAvailable;
use ProcessWire\GraphQL\Test\GraphqlTestCase;
class TemplateTest extends GraphqlTestCase
{
/**
* + For Editor.
* + The user has edit permission for the template.
* - The template is not legal.
*/
public static function ge... | PHP | test/Permissions/Editor/Update/NotAvailable/TemplateTest.php | dadish/ProcessGraphQL | mit | 1,006 | 42 | codeparrot/github-code |
eb4205103af79a7e40aa2f066110cf6dbfbe5772aff2afd633abcc5396766f08 | //
// CommunityDetailsTableView.h
// MierMilitaryNews
//
// Created by 李响 on 2016/10/28.
// Copyright © 2016年 miercn. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "CommunityDetailsModel.h"
@class CommunityCommentModel;
typedef void(^OpenUserHomeVCBlock)(NSString *uid , NSString *userName);
typedef v... | C | LEEThemeDemo/LEEThemeDemo/CommunityDemo/Community/Community_Details/View/CommunityDetailsTableView.h | lixiang1994/LEETheme | mit | 1,005 | 39 | codeparrot/github-code |
6c802a10a27d3abc9775618b8a34b81cbba901895ffdd46fd976caf81b3aba7e |
package ru.lanbilling.webservice.wsdl;
import javax.annotation.Generated;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <... | Java | src/main/java/ru/lanbilling/webservice/wsdl/InsupdInstallmentsPlan.java | kanonirov/lanb-client | mit | 2,811 | 92 | codeparrot/github-code |
f60530a95e8936667556e18d4778409f45620999e3b68bc494c416bfab586b11 | <?php
class Imageui {
public function Init(){
Event::Bind('CacheDelete','Imageui::EventCacheDelete');
}
public function Rules(){
return array('Настройка ImageUI');
}
public function Menu(){
return array(
'admin/imageui'=>array(
'ti... | PHP | custom/imageui/module.class.php | Doka-NT/SkobkaCMS | mit | 2,645 | 81 | codeparrot/github-code |
3668da5dd6ebc6c44b788d86985c5fb6cbc9089f9bd97c3197e61fa0b5df37cf | // Abacus Machine Simulator
// Gaurav Manek
//
// machine.js compiles the parser output to an intermediate form and simulates the machine.
"use strict";
// The compiler transforms the output of the parser to an intermediate form that the machine can use.
// Encode integer values as negative numbers to allow J... | JavaScript | machine.js | gauravmm/AbacusMachineSim | mit | 42,039 | 1,367 | codeparrot/github-code |
c31ff480bc4d7704112c3848eb6ea4d0941f903c7a47889118a921b44e9181ca | package com.iotticket.api.v1.model;
import com.google.gson.annotations.SerializedName;
import com.iotticket.api.v1.model.Datanode.DatanodeRead;
import java.net.URI;
import java.util.ArrayList;
import java.util.Collection;
public class ProcessValues {
@SerializedName("href")
private URI Uri;
@Serializ... | Java | src/main/java/com/iotticket/api/v1/model/ProcessValues.java | IoT-Ticket/IoT-JavaClient | mit | 639 | 34 | codeparrot/github-code |
a4ac6d1cdc48c9641a4424dcc8c69d4481975953bab98b3d59c77a894c92673e | /** SF2 annotations for glm types ********************************************
* *
* Copyright (c) 2015 Florian Oetke *
* This file is distributed under the MIT License *
* ... | C++ | src/mirrage/utils/include/mirrage/utils/sf2_glm.hpp | lowkey42/mirrage | mit | 3,943 | 129 | codeparrot/github-code |
d51479d62a7a242bdc4866a6c53995f1cd40dc72afa3d6538d3e72da43834b21 | from __future__ import unicode_literals
import re
from django.contrib.auth.models import (AbstractBaseUser, PermissionsMixin,
UserManager)
from django.core import validators
from django.core.mail import send_mail
from django.utils.translation import ugettext_lazy as _
from noti... | Python | app/models.py | othreecodes/MY-RIDE | mit | 11,305 | 288 | codeparrot/github-code |
6c27e2d2650b44edc33ab6584c6277c7ff8e29b529fb1bdb76735a1a0673b24f | define('view/rooms/users-rooms-list', [
'view'
], function (
View
) {
function UsersRoomsListView() {
View.apply(this, arguments);
}
View.extend({
constructor: UsersRoomsListView,
template: {
'root': {
each: {
view: UserRoomV... | JavaScript | js/view/rooms/users-rooms-list.js | redexp/chat | mit | 979 | 50 | codeparrot/github-code |
23dd29982dac02ae163322d453901301db85ef2fbd199c38e36d3cb78cd1dc3c | <!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>SocketServer | @socialgorithm/uttt</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="... | HTML | packages/server/docs/classes/_server_socketserver_.socketserver.html | aurbano/ultimate-ttt-server | mit | 29,100 | 557 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.