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
df030da0a6a9b8972e120633cd5fc44473a001dd8f4c7c40e81d175c3d7f18f3
/** * C++ interface to a python PropertyNode() */ #include "pyprops.h" #include <string> #include <sstream> using std::string; using std::ostringstream; // 'cache' is a global c-string -> python unicode name cache. This // conversion is relatively costly in python3, so this cache save // repeating the work many t...
C++
library/src/pyprops.cpp
AuraUAS/aura-props
mit
21,619
762
codeparrot/github-code
3dea4cdbb0f8dea64671c6e177869f487c293cd2d716d4aa98152fe35b3d6d0b
// Copyright (c) 2014-2015 Oliver Eilhard. All rights reserved. // Use of this source code is governed by the MIT license. // See LICENSE file for details. package balancers import ( "net/http" "net/url" "sync" "time" ) // Connection is a single connection to a host. It is defined by a URL. // It also maintains s...
GO
connection.go
olivere/balancers
mit
2,828
117
codeparrot/github-code
306579579ee5cb9c20b1a216db6e2b1b4198463822a68d301f000a65030d5483
using System; using NetRuntimeSystem = System; using System.ComponentModel; using NetOffice.Attributes; namespace NetOffice.MSHTMLApi { /// <summary> /// DispatchInterface IHTMLDOMNode2 /// SupportByVersion MSHTML, 4 /// </summary> [SupportByVersion("MSHTML", 4)] [EntityType(EntityType.IsDispatchInterface)] ...
C#
Source/MSHTML/DispatchInterfaces/IHTMLDOMNode2.cs
NetOfficeFw/NetOffice
mit
3,723
119
codeparrot/github-code
542f108693b9a4678c88cc19781be208c393c1851f10c6fd796f5285c68faf5b
angular.module('schemaForm').config( ['schemaFormProvider', 'schemaFormDecoratorsProvider', 'sfPathProvider', function(schemaFormProvider, schemaFormDecoratorsProvider, sfPathProvider) { var download = function(name, schema, options) { if (schema.type === 'string' && schema.format ==...
JavaScript
src/angular-schema-form-download.js
rafialikhan/angular-schema-form-download
mit
1,602
46
codeparrot/github-code
2a643d9d8a1d0b9dae9b5d050f571445d3f1fe32cbb4d3be5cafcfa993b84ffe
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
JavaScript
bundle.js
odangitsdjang/CleaningApp
mit
4,338
156
codeparrot/github-code
2fdf379dba1751ab82b39f512b740160b84bb2b8a8bfcdcb9a8d8c138961622e
#!/usr/bin/env python # T. Carman # January 2017 import os import json def get_CMTs_in_file(aFile): ''' Gets a list of the CMTs found in a file. Parameters ---------- aFile : string, required The path to a file to read. Returns ------- A list of CMTs found in a file. ''' data = read_paramf...
Python
scripts/param_util.py
tobeycarman/dvm-dos-tem
mit
11,387
441
codeparrot/github-code
15fa1be0a26ec263ed3ef469cc4642d3784633ee2c7567623952f8ee98e1026d
'use strict'; describe('service', function() { var countKeys = function(data) { var count = 0 for(var k in data) { count++; } return count; } // load modules beforeEach(module('mavrixAgenda')); // Test service availability it('check the existence of Storage factory', in...
JavaScript
app/components/users/users.test.js
jomarmar/mavrix-test
mit
606
32
codeparrot/github-code
56255b5b1f08e8603500d2fe722234f967b509c1f221bd7b56eacaf10a8a22ee
<?php namespace User\UserBundle\Controller; use Symfony\Component\Security\Core\Exception\AccessDeniedException; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Reservable\ActivityBundle\Entity\Activity; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\JsonResponse; use...
PHP
src/User/UserBundle/Controller/ConsultController.php
silver819/alm-cristina
mit
8,653
263
codeparrot/github-code
e7c3222616a007b07ca098754fa63bd82c624bf4c0a178009caba8c5efc8e811
# -*- test-case-name: twisted.test.test_task,twisted.test.test_cooperator -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Scheduling utility methods and classes. @author: Jp Calderone """ __metaclass__ = type import time from zope.interface import implements from twisted.python imp...
Python
libs/twisted/internet/task.py
Varriount/Colliberation
mit
24,723
790
codeparrot/github-code
049d36d31e546c69c7bc38aec9ed079bb76dfad0469a5ece850d645d670fe103
<!DOCTYPE html> <html lang="ko-kr"> <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="generator" content="Hugo 0.15" /> <title>#Ludens</title> <meta property=...
HTML
tags/branding/index.html
ludens/ludens.kr
mit
10,474
229
codeparrot/github-code
9238a7fd5e9c584962adc6fff86d5670ee35c62ba6b605da31ef83cc93a2c734
#ifndef KALI_UI_NATIVE_WIDGETS_BASE_INCLUDED #define KALI_UI_NATIVE_WIDGETS_BASE_INCLUDED #include "kali/function.h" #include "kali/containers.h" #include "kali/ui/base.h" // ............................................................................ namespace kali { namespace ui { namespace native { namespa...
C
libraries/kali/ui/native/widgets.base.h
seven-phases/spectrum-analyzer
mit
1,149
48
codeparrot/github-code
d18aa12c605e9c01e2f7bbae49ae1a0a6770c6844066246e588f823e5d560a72
<?php namespace DUDEEGO\PlatformBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; use Symfony\Component\Form\Extension\Core\Type\SubmitType; use Symfony\Component\Form\Extension\Core\Type\TextType; use Vich\Up...
PHP
src/DUDEEGO/PlatformBundle/Form/EA_DocumentType.php
HosseinChibane/CFPMS
mit
4,433
126
codeparrot/github-code
d37bfe60b119d65da5c01d89eb03ac53dda852e7166a30f6bad9d6dd34807052
<?php namespace Kodix\Support\Traits\Component; use CComponentEngine; /** * This trait makes complex class easier to write * You just need to change setUrlTemplates404 method with your paths * * Class ComplexTrait * @package Malyusha\Helpers\Traits * * @property array $arParams */ trait ComplexTrait { p...
PHP
src/Support/Traits/Component/ComplexTrait.php
malyusha/kodix
mit
2,709
100
codeparrot/github-code
8faa07c5ae44d25e27db9a75f266c156b4e653e4700970f43af591a52e276ae6
/* * Background sketch * Author: Uriel Sade * Date: Feb. 22, 2017 */ var canvas; var time_x, time_y, time_z, time_inc; var field = []; var particles = []; var rows, cols; var scl = 20; function setup() { canvas = createCanvas(windowWidth, windowHeight); canvas.position(0,0); canvas.style('z-value', '-1...
JavaScript
flowfield.js
urielsade/urielsade.github.io
mit
1,411
77
codeparrot/github-code
047a8907f22885739abe3d8f83068ba187c8c1a0864a774c3c066a250fc1bda7
/***************************** Include Files *******************************/ #include "example_core_lite.h" #include "xparameters.h" #include <stdio.h> #include <stdlib.h> #include "xil_io.h" /************************** Constant Definitions ***************************/ uint32_t a_tests[] = {1,321097,45,4294967295,0,...
C
example_core_lite_1.0/drivers/example_core_lite_v1_0/src/example_core_lite_selftest.c
inmcm/Zynq_Custom_Core_Templates
mit
4,428
170
codeparrot/github-code
54996ac2e531bead7d2fe32bad7ad822dcf569c71afe08be17026cb5abb55d60
import test from 'tape' import { forEach, get, isArray, isMatch, isNumber, omit } from 'lodash' import { entityDel, ENTITY_DEL, entityPut, ENTITY_PUT, entityPutAll, ENTITY_PUTALL, entityUpdate, ENTITY_UPDATE, pickTypeId, tripleDel, TRIPLE_DEL, triplePut, TRIPLE_PUT, } from '../src' import { agent, creator, item, ma...
JavaScript
test/actions.spec.js
cape-io/redux-graph
mit
2,479
69
codeparrot/github-code
17da81e1c69f9c5019151ab29c57f7a4251fbf983dd2b24155b60e7f700f9f56
package com.github.gv2011.util.bytes; import static com.github.gv2011.testutil.Assert.assertThat; import static com.github.gv2011.testutil.Matchers.is; import org.junit.Test; import com.github.gv2011.util.BeanUtils; import com.github.gv2011.util.icol.ICollections; import com.github.gv2011.util.json.JsonUtil...
Java
test/src/test/java/com/github/gv2011/util/bytes/DataTypeTest.java
gv2011/util
mit
1,762
61
codeparrot/github-code
218f154490a82f9f4f423e78b5a19b63f7fcbb6e5e2357c7ce896116d94b4d5d
<?php /* Version: 1.0 Author: Artur Sułkowski Website: http://artursulkowski.pl */ class ControllerModuleBreadcrumbBackgroundImage extends Controller { private $error = array(); public function index() { $this->language->load('module/breadcrumb_background_image'); $this->document->setTitle('Breadcrumb ...
PHP
admin/controller/module/breadcrumb_background_image.php
monkdaf/skuter77-opencart
mit
3,459
105
codeparrot/github-code
2d83855d439901218ef5843d4768c67ed3195a92eb9b9d957fc3e27258f3da2a
package com.kata.businessrules; import org.w3c.dom.Document; import com.google.inject.AbstractModule; import com.google.inject.TypeLiteral; import com.kata.businessrules.products.Product; public class MainModule extends AbstractModule { @Override protected void configure() { installDummyModules(); bind(new Ty...
Java
src/main/java/com/kata/businessrules/MainModule.java
a-ostrovsky/business_rules_kata
mit
895
40
codeparrot/github-code
93033ab5e496f66010bf9f2a9ac6081227966576521724de6eb711f60313eba4
(function (root, factory) { if (typeof define === 'function' && define.amd) { define([], factory); } else if (typeof exports === 'object') { module.exports = factory(); } else { root.UtmConverter = factory(); } }(this, function () { ////////////////////////////////////////////////////////////////...
JavaScript
src/converter.js
urbanetic/utm-converter
mit
19,752
661
codeparrot/github-code
3276e5432713fa79a2503603746e7d0ff2d1fd493b89bfa49d158bdc5ee68398
import loudRejection from 'loud-rejection'; import { fireEvent, getByTestId, getByText } from '@testing-library/dom'; import { act, screen } from '@testing-library/react'; import { MAILBOX_LABEL_IDS } from '@proton/shared/lib/constants'; import { addApiMock, clearAll, getDropdown, getHistory, render...
TypeScript
applications/mail/src/app/components/header/MailHeader.test.tsx
ProtonMail/WebClient
mit
7,113
213
codeparrot/github-code
4b41bbac677464346fe9c82fb52777aa4af1e1f54c33f14a34cf8c2ffe6a7fd3
#!/bin/bash set -xv #adam-example# ./do_coadd_batch.sh MACS1115+01 W-J-B 'all exposure ' 'none' OCFI 2>&1 | tee -a OUT-coadd_W-J-B.log2 #adam-example# ./do_coadd_batch.sh ${cluster} ${filter} 'good ' 'none' 'OCFR' 'yes' 'yes' 2>&1 | tee -a OUT-coadd_${cluster}.${filter}.log ### new coaddition script ### ### the astro-...
Shell
adam_do_coadd_batch.sh
deapplegate/wtgpipeline
mit
37,258
685
codeparrot/github-code
fe36462822113d13916571611b34c6ad5d54b8bf9c05df97df267d15636d38dc
<!DOCTYPE html> <html> <head> <title></title> <meta name="viewport" content="width=device-width"> </head> <body> <script type="text/javascript" src='jquery-1.11.1.js'></script> <div class="num"></div> <div class="slider"> <div class="touch"></div> <div class="bg"></div> </div> <dic class="console"></dic...
HTML
slider/index.html
huhai586/learn
mit
1,578
78
codeparrot/github-code
0b3057544ad74a8a46caf4afb3fca89463b6bcfc2911309dceb751e6857ae054
<!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
_layouts/home-one-smart-code-hosted.html
hariombalhara/hariombalhara.github.io
mit
1,886
60
codeparrot/github-code
d06a1ce9193302227a5d1e6148195880a7659efdcf413ec75bb49779adac5184
package edu.cmu.hcii.whyline.analysis; import java.util.SortedSet; import java.util.TreeSet; import edu.cmu.hcii.whyline.bytecode.MethodInfo; import edu.cmu.hcii.whyline.source.JavaSourceFile; import edu.cmu.hcii.whyline.source.Line; import edu.cmu.hcii.whyline.source.Token; import edu.cmu.hcii.whyline.ui.WhylineUI; ...
Java
edu/cmu/hcii/whyline/analysis/FindOverriders.java
andyjko/whyline
mit
1,239
51
codeparrot/github-code
7c80969c937d9e383bd1ec503fb25108310279c305a7f1aca2c37725c546c35d
#include <algorithm> #include <iterator> #include <vector> #include "ihanoi.hpp" #include "aim.hpp" // Algorithm to be tested template <int from, int other, int to> struct ApplyMapping { std::pair<std::size_t, std::size_t> operator()(std::pair<std::size_t, std::size_t> const& move) { static_assert(from != ...
C++
algorithms/recurse/hanoi-towers/implem_iterative_no_stack.cpp
dubzzz/various-algorithms
mit
1,956
56
codeparrot/github-code
c186aded52c8b02729656ec351e3c122d4396cecee1b8eb0869a67d425696e94
package statsd import ( "context" "fmt" "hash/adler32" "sync" "github.com/ash2k/stager/wait" "github.com/atlassian/gostatsd" "github.com/atlassian/gostatsd/pkg/statser" ) // AggregatorFactory creates Aggregator objects. type AggregatorFactory interface { // Create creates Aggregator objects. Create() Aggreg...
GO
pkg/statsd/dispatcher.go
tiedotguy/gostatsd
mit
3,174
122
codeparrot/github-code
3c5686adc61457e5d12b7a097d369f77638e71210cb7e3695efb63e7c36f88ff
package lib import ( "log" "strings" ) type ( Question struct { RelatesTo struct { Answers []string `json:"answers"` Save bool `json:"save"` SaveTag string `json:"saveTag"` } `json:"relatesTo"` Context []string `json:"context"` QuestionText string `json:"question"` Possible...
GO
lib/Question.go
jh-bate/fantail-bot
mit
1,207
58
codeparrot/github-code
74fbf54f78bb4909014fcf97cc443fdcdf714c736a5c1b2c32343a2a742383b9
app.router = Backbone.Router.extend({ el : $('main'), routes: { // '': 'home', // '!/': 'home', '!/event-list/': function () { app.preRoute('event-list', this.el); new app.eventListView({ el: this.el }); }, '!/event-detail/:key': function (key) { ...
JavaScript
public/assets/js/router.js
nblenke/buzz-proto
mit
1,903
62
codeparrot/github-code
e5858cefb173699ea54d49313e9b29a6a058b3c6cdf747f4a0bd95dc9150afad
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Brian Schrader - 06ee</title> <link rel="shortcut icon" href="/assets/images/favicon.ico"> <link rel="sty...
HTML
_site/2016/04/01/06ee.html
Sonictherocketman/mirror.microblog
mit
70,859
1,701
codeparrot/github-code
4a24c2cd941b2a96ef288acd93b260b720c03ab1fd84f4e3ecbfff96c49e6fa3
<?php /** * @name Upload Module * @author Philipp Maurer * @author Tobias Reich * @copyright 2014 by Philipp Maurer, Tobias Reich */ if (!defined('LYCHEE')) exit('Error: Direct access is not allowed!'); function upload($files, $albumID) { global $database, $settings; switch($albumID) { // s for public ...
PHP
source/php/modules/upload.php
massyas/lychee_ynh
mit
9,705
407
codeparrot/github-code
658af633bc19a00563f4116322ab041a2592669b6865c5be2c5afe1a9ad33707
--- --- <!doctype html> <html class="default no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>ResolvableLiteral | UI-Router</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" hre...
HTML
_ng2_docs/1.0.0-beta.3/interfaces/resolve.resolvableliteral.html
ui-router/ui-router.github.io
mit
21,047
443
codeparrot/github-code
6a25e043b8bdd75e6a4574f1efe2d7c06e3a6c1ab46039a3020c602359f10caa
import pl.edu.agh.amber.common.AmberClient; import pl.edu.agh.amber.drivetopoint.DriveToPointProxy; import pl.edu.agh.amber.drivetopoint.Location; import pl.edu.agh.amber.drivetopoint.Point; import pl.edu.agh.amber.drivetopoint.Result; import java.io.IOException; import java.util.Arrays; import java.util.List; import ...
Java
amber-java-examples/src/main/java/DriveToPointExample.java
project-capo/amber-java-clients
mit
2,273
69
codeparrot/github-code
631cf37543a2c48bd74e87b47c21f9d99e840fdd95e2b940d0f3fc86e250d8b0
/**************************************************************************** Copyright (c) 2013-2015 scutgame.com http://www.scutgame.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software ...
C#
Sample/Koudai/Server/src/ZyGames.Tianjiexing.BLL/Action/Action4206.cs
wenhulove333/ScutServer
mit
4,295
120
codeparrot/github-code
b5789f95f232abef6006bc0601abc233a0baf44fb8f86c53a4e42d814d9549a7
<?php declare(strict_types = 1); namespace PHPStan\Rules\Comparison; use PHPStan\Type\Constant\ConstantBooleanType; class BooleanOrConstantConditionRule implements \PHPStan\Rules\Rule { public function getNodeType(): string { return \PhpParser\Node\Expr\BinaryOp\BooleanOr::class; } /** * @param \PhpParser\...
PHP
src/Rules/Comparison/BooleanOrConstantConditionRule.php
rquadling/phpstan
mit
1,115
49
codeparrot/github-code
ef64d6d7eefe443d55a1abfef8c62b3ab5befc24e43bcda6cd4c996e2a3d31b1
<html> <head> <title> Keep fighting for justice! </title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <?php include "../../legacy-includes/Script.htmlf" ?> </head> <body bgcolor="#FFFFCC" text="000000" link="990000" vlink="660000" alink="003366" leftmargin="0" topmargin="0"> <table width...
PHP
web/2004-1/488/488_04_KennyCollins.php
ISO-tech/sw-d8
mit
3,573
53
codeparrot/github-code
b450fcf36f47473566bdea11fca35d11017a23cf2ca75f2b93eb33e9d17b452c
// member.cs // // Copyright 2010 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by appli...
C#
Aphysoft.Share/External/AjaxMin/JavaScript/member.cs
afisd/jovice
mit
2,558
100
codeparrot/github-code
548ae8af941a2ae8e9cbdcc99c38efb97ea8bea0d0d09c20c939ca3fa7141b0e
<?php /** * TableBlock.php * * @since 31/05/15 * @author gseidel */ namespace Enhavo\Bundle\AppBundle\Block\Block; use Enhavo\Bundle\AppBundle\Block\BlockInterface; use Enhavo\Bundle\AppBundle\Type\AbstractType; class TableBlock extends AbstractType implements BlockInterface { public function render($parame...
PHP
src/Enhavo/Bundle/AppBundle/Block/Block/TableBlock.php
kiwibun/enhavo
mit
3,107
107
codeparrot/github-code
b492f5383b467106933dfddab1c6207b04efdaa730cf41136197461c74489d0b
// package main provides an implementation of netcat using the secio package. // This means the channel is encrypted (and MACed). // It is meant to exercise the spipe package. // Usage: // seccat [<local address>] <remote address> // seccat -l <local address> // // Address format is: [host]:port package main imp...
GO
cmd/seccat/seccat.go
kyledrake/go-ipfs
mit
5,208
248
codeparrot/github-code
5b46160724f8a539ad1b90f11d4964809a9ded96a2813c7a3c5ac0b3a3464413
<!doctype html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> <head> <meta charset="ut...
HTML
client/index.html
tdang2/tdpharma-client
mit
10,329
162
codeparrot/github-code
37b8d780a8810db669bdf17b5300fd684eeb4040f32af8dc61943d435a749d7b
<?php /* WebProfilerBundle:Collector:memory.html.twig */ class __TwigTemplate_ccb1a70d7cfd163aa51619d0fc404c67 extends Twig_Template { protected $parent; public function __construct(Twig_Environment $env) { parent::__construct($env); $this->blocks = array( 'toolbar' => array($...
PHP
app/cache/dev/twig/cc/b1/a70d7cfd163aa51619d0fc404c67.php
radzikowski/alf
mit
2,299
67
codeparrot/github-code
4807bc385f11872bafb2e3567d1f2f70f9f46e644c9ad8ce64857914853ebd3e
<!DOCTYPE html> <html lang="en"> <!-- Mirrored from bucketadmin.themebucket.net/google_map.html by HTTrack Website Copier/3.x [XR&CO'2013], Fri, 21 Feb 2014 19:39:48 GMT --> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" conten...
HTML
public/partials/theme/google_map.html
mromrell/quotadeck-frontend
mit
29,840
750
codeparrot/github-code
48f0f8366abc779f4e9f6d6f5fcfb75a1ee2bd265837432cef203f65514ae510
<?php /** * CompraingredienteFixture * */ class CompraingredienteFixture extends CakeTestFixture { /** * Fields * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'unsigned' => false, 'key' => 'primary'), 'resto_id' => array('type' => 'integer',...
PHP
app/Test/Fixture/CompraingredienteFixture.php
kster007/CUBETECH-SOLTERA
mit
2,307
53
codeparrot/github-code
093c8777d3373c14e264ff4497f78b42c4d4ecdd117f80bc82ce7e0426520781
/* * The MIT License (MIT) * * Copyright (c) 2016 by luxe - https://github.com/de-luxe - BURST-LUXE-RED2-G6JW-H4HG5 * * 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, ...
Java
src/main/java/burstcoin/faucet/data/Account.java
de-luxe/burstcoin-faucet
mit
2,187
83
codeparrot/github-code
e37886b2df8a33cb92fe7b764ee7e73d620bbd4831282e11e5021588dd136906
"use strict"; const _ = require ('underscore') _.hasTypeMatch = true /* Type matching for arbitrary complex structures (TODO: test) ======================================================================== */ Meta.globalTag ('required') Meta.globalTag ('atom') $global.const ('$any', _.identity) _.deferTest ([...
JavaScript
base/tier0/typeMatch.js
xpl/useless
mit
6,903
145
codeparrot/github-code
149a5c4f43d9e9052a004c5ff65d3b2bef6c85d27f2a5b7b9e484b6206ac00b7
import { $, util } from './util-node' import Taglet from './taglet' var lace, version = '1.0.0', defaults = { opts: {} }, warehouse = { singleton: null, compiled_dom: null, laces: { global: null }, taglets: {} } ; class Lace {...
JavaScript
src/es6/lace.js
jRoadie/lace
mit
1,897
100
codeparrot/github-code
9af9ea586da50997013ee9c8b189f5fe5bebf377923a2d4a98da4fc956f56d89
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Cinema { class Program { static void Main(string[] args) { var project = Console.ReadLine().ToLower(); var r = double.Parse(Console.ReadLine());...
C#
Projects/ComplexCondition/Cinema/Program.cs
vasilchavdarov/SoftUniHomework
mit
873
38
codeparrot/github-code
f6fb12f04b1e04107add40d0d160898b69bde9ecf2bf0a03f72f7e826a115a9d
import angular from 'rollup-plugin-angular'; import commonjs from 'rollup-plugin-commonjs'; import nodeResolve from 'rollup-plugin-node-resolve'; import typescript from 'rollup-plugin-typescript'; import uglify from 'rollup-plugin-uglify'; import { minify } from 'uglify-es'; // rollup-plugin-angular addons import sas...
JavaScript
rollup.config.js
ngx-form/element
mit
3,416
123
codeparrot/github-code
a13b5ec9b487fa47278803dc7bcf72f36bfc82ba1596c9398cc37a7d13ab14fe
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>stalmarck: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.c...
HTML
clean/Linux-x86_64-4.07.1-2.0.6/released/8.13.2/stalmarck/8.9.0.html
coq-bench/coq-bench.github.io
mit
7,121
175
codeparrot/github-code
d8dfc9d64f09d006df6957730499dbe6260e002e8ef2c8e68d2aae0c9c48023f
using System; using System.Collections; using UnityEngine; namespace Doubility3D.Resource.Downloader { public class WWWDownloader : IDownloader { private string home; internal WWWDownloader (string _home) { home = _home; if (home [home.Length - 1] != '/') { home += "/"; } } public IEnumerat...
C#
DoubilityUnity/Runtime/Doubility3D/Resource/Downloader/WWWDownloader.cs
lighter-cd/Doubility3D
mit
702
40
codeparrot/github-code
c891845bdca574031f89b451960ed4acb0841737bcff23cb2e6df9ebf3696c35
package seedu.tache.ui; import java.util.logging.Logger; //import org.controlsfx.control.Notifications; import com.google.common.eventbus.Subscribe; import javafx.application.Platform; //import javafx.geometry.Pos; import javafx.scene.control.Alert; import javafx.scene.control.Alert.AlertType; import javafx.scene.i...
Java
src/main/java/seedu/tache/ui/UiManager.java
CS2103JAN2017-T09-B4/main
mit
6,234
163
codeparrot/github-code
6de856f1e02a2845595f1fc20e39d675667fe0d52cb4d2a98c036f4f75edaa38
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <!-- template designed by Marco Von Ballmoos --> <title>Docs for page Updated.php</title> ...
HTML
lib/gapps/ZendGdata-1.10.8/documentation/api/core/Zend_Gdata/App/_Gdata---App---Extension---Updated.php.html
broadinstitute/gdata-cli
mit
6,213
177
codeparrot/github-code
9140482fbf416bf926d726a969c28f182ef673f813d22b0b0e749097d313f3f2
#define VMA_IMPLEMENTATION #include <vk_mem_alloc.h> #include "VulkanMemoryAllocator.h" #include "VulkanUtility.h" #include "Core/Assertion.h" namespace cube { namespace rapi { void VulkanMemoryAllocator::Initialize(VkInstance instance, VkPhysicalDevice GPU, VkDevice device) { VkR...
C++
Source/RenderAPIs/VulkanAPI/VulkanMemoryAllocator.cpp
Cube219/CubeEngine
mit
4,378
119
codeparrot/github-code
6ad7c020b8f97f82779721ebcb680b329dde43cc36f82760aaa9cd911843a97f
#ifndef VPP_OPENCV_UTILS_HH_ # define VPP_OPENCV_UTILS_HH_ # include <iostream> # include <regex> # include <opencv2/highgui/highgui.hpp> # include <vpp/core/boxNd.hh> # include <vpp/core/image2d.hh> inline bool open_videocapture(const char* str, cv::VideoCapture& cap) { if (std::regex_match(str, std::regex("[0-9]+...
C++
thirdparty/vpp/vpp/utils/opencv_utils.hh
pdebus/MTVMTL
mit
1,322
61
codeparrot/github-code
fbd1fead1ab2067967dc57d16551e07c90c148e673da857cd15d9d7d20fb675f
import collections puzzle_input = (0,13,1,8,6,15) test_inputs = [ ([(0,3,6), 10], 0), ([(1,3,2)], 1), ([(2,1,3)], 10), ([(1,2,3)], 27), ([(2,3,1)], 78), ([(3,2,1)], 438), ([(3,1,2)], 1836), # Expensive Tests # ([(0,3,6), 30000000], 175594), # ([(1,3,2), 30000000], 2578), #...
Python
AdventOfCode/2020/day_15/solution.py
AustinTSchaffer/DailyProgrammer
mit
1,352
52
codeparrot/github-code
d3e6acd4c6f0c20dd55e76eaab658fbf054420413b9537c623c368a46b166fc5
import { DomSanitizer } from '@angular/platform-browser'; export declare class IndexTrack { transform(_x: any): (index: any) => any; } export declare class Stringify { transform(input: any, spaces?: number): string; } export declare class ForceArray { transform(input: any, repeat?: any, repeatValue?: any): ...
TypeScript
pipes.d.ts
AckerApple/ack-angular
mit
3,095
106
codeparrot/github-code
4577da5ed5adc33dd2ad108d211488d47a32eb660081046270ee6897f7875b8e
<?php namespace Fdr\UserBundle\Form\Type; //use Symfony\Component\Form\FormBuilder; //use FOS\UserBundle\Form\Type\RegistrationFormType as BaseType; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Doctrine\ORM\EntityRepository; class RegistrationFormType extends AbstractTy...
PHP
src/Fdr/UserBundle/Form/Type/RegistrationFormType.php
ingetat2014/www
mit
2,725
52
codeparrot/github-code
8210b649f19feee0f4d015598c11ceaaf74758e16d5ebad650d1609b2d08090e
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using UnityEngine; namespace Microsoft.MixedReality.Toolkit.Physics { /// <summary> /// A Distorter that distorts points based on their distance and directi...
C#
Assets/MRTK/Core/Utilities/Physics/Distorters/DistorterGravity.cs
SystemFriend/HoloLensUnityChan
mit
2,820
95
codeparrot/github-code
0ffc2932fb3afb71eb5a165a9435332b356926dc2953a6cc943646900936cbf9
#pragma once // MESSAGE ATTITUDE_TARGET PACKING #define MAVLINK_MSG_ID_ATTITUDE_TARGET 83 MAVPACKED( typedef struct __mavlink_attitude_target_t { uint32_t time_boot_ms; /*< Timestamp in milliseconds since system boot*/ float q[4]; /*< Attitude quaternion (w, x, y, z order, zero-rotation is 1, 0, 0, 0)*/ f...
C
ARDrone/ARDrone/include/common/mavlink_msg_attitude_target.h
YKSamgo/AR-Drone
mit
17,916
356
codeparrot/github-code
e0b1e8aa9ece24028f67aa80c2fd1d240a71f6eb6ca81b76f110a4318d3f73f9
#include "questdisplay.h" #include "../core/global.h" //QuestLister stuff QuestLister::QuestLister(int xp, int yp, int wp, int hp) : BasicGUI(xp, yp, wp, hp) { headerSize = 35; //-1 due to the header displayableQuestCount = h / headerSize - 1; padding = 5; selectedElementPos = 0; defaultBGTexture = Global::res...
C++
src/player/questdisplay.cpp
kovleventer/FoD
mit
6,449
194
codeparrot/github-code
e1eb38bea7a888105bef284c755ff47f194496729775be0575640e547615f268
package com.github.gilz688.mifeditor; import com.github.gilz688.mifeditor.proto.MIEView; import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.scene.Scene; import javafx.scene.layout.AnchorPane; import javafx.stage.Stage; public class MIEApplication extends Application { pri...
Java
MIFImageEditor/src/main/java/com/github/gilz688/mifeditor/MIEApplication.java
gilz688/MIF-ImageEditor
mit
1,289
46
codeparrot/github-code
172ad6fce3a8ffe6a2622f901e9449073a5b1fbde7140569e4ca28d0fac35533
/* * ================================================================================== * * Filename: poller.h * * Description: * * Verson: 1.0 * Created: 2016-03-09 * Compiler: g++ * * Author: Jiewei Wei <weijieweijerry@163.com> * Company: S...
C
src/poller.h
JieweiWei/lnet
mit
1,023
55
codeparrot/github-code
6fec7e8b6aa544a76d37bae0caa7e741a6c3240eb37e690bb0e35c1fe6042ce2
#pragma once #include "afxwin.h" #include "CM5/ListCtrlEx.h" #include "CM5/CStatic/staticex.h" // CBoatMonitorViewer form view class CBoatMonitorViewer : public CFormView { DECLARE_DYNCREATE(CBoatMonitorViewer) public: CBoatMonitorViewer(); // protected constructor used by dynamic creation virtual ~CBo...
C
T3000/BoatMonitorViewer.h
temcocontrols/T3000_Building_Automation_System
mit
832
42
codeparrot/github-code
6ed1380b638341dfdd08f24e405397e8e977d8e3a52c8eee079638faead6b3ea
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d...
JavaScript
src/app/page/settings/settings.component.js
Ragingart/TRage
mit
1,673
34
codeparrot/github-code
4194cb3db84792c29632c37d048abffb7dc6253ed5549ff6c902d60062409415
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.ComponentModel.DataAnnotations; using System.Globalization; using System.Reflection; using System.Runtime.Serialization; using System.Web.Http; using System.Web.Http.Description; using System.Xml...
C#
examples/Betabit EventHub Example/Betabit.Lora.Nuget.EventHub/Betabit.Lora.Nuget.EventHub/Areas/HelpPage/ModelDescriptions/ModelDescriptionGenerator.cs
kpnlora/LoRaClient
mit
19,100
451
codeparrot/github-code
f94011c6da77d18821e27782fa840a1ada1f6fac3679348dc94a90e7b5b26bf0
'use strict'; import React from 'react-native' import { AppRegistry, Component, Navigator, ToolbarAndroid, View, } from 'react-native'; import globalStyle, { colors } from './globalStyle'; class NavBar extends Component { onClickBackToHome() { this.props.navigator.push({ name: 'home', sc...
JavaScript
components/NavBar.js
kmjennison/boop
mit
1,192
56
codeparrot/github-code
9a20bf2d2c35a8a2d8ccc8283cf284194471b118dc699d219ef07b38921b45e0
<?php namespace App; use App\models\User; use Illuminate\Database\Eloquent\Model; class InstDepartment extends Model { public static function get_departments_by_inst_id($id) { $departments = InstDepartment::where('institution_id', $id)->get(); return $departments; } public static f...
PHP
app/InstDepartment.php
Webnician/EduForum
mit
2,871
95
codeparrot/github-code
79f00ac71afeb24e6539f81095c080c0b6d882ee1a856b65c313d44776df8fa3
/* Copyright (c) 2002-2010 Dovecot authors, see the included COPYING file */ /* @UNSAFE: whole file */ #include "lib.h" #include "ioloop.h" #include "write-full.h" #include "network.h" #include "sendfile-util.h" #include "istream.h" #include "istream-internal.h" #include "ostream-internal.h" #include <unistd.h> #inc...
C
src/lib/ostream-file.c
via/dovecot-clouddb
mit
24,954
967
codeparrot/github-code
e3bd6ebcbd819f9ec0bd39d63d82333f68bd71e0452dad48f8201686d9cb4307
import React, { Component, PropTypes } from 'react'; import ItemTypes from './ItemTypes'; import { DragSource, DropTarget } from 'react-dnd'; import flow from 'lodash.flow'; function isNullOrUndefined(o) { return o == null; } const cardSource = { beginDrag(props) { return { id: props.id, index: pr...
JavaScript
src/index.js
jas-chen/react-dnd-card
mit
3,144
123
codeparrot/github-code
58dc7dcd3c3ff77dad1dfbdffc43ecd519d6872e53a9c911bf5ae7b531597730
using System; using Microsoft.Hadoop.MapReduce; namespace MapReduceSamples.Utils { public class TestReducerCombinerContext : ReducerCombinerContext { public TestReducerCombinerContext(bool isCombiner) : base(isCombiner) { } public override void EmitKeyValue(string key, string ...
C#
MapReduceSamples/MapReduceSamples.Utils/TestReducerCombinerContext.cs
SaschaDittmann/MapReduceSamples
mit
1,518
54
codeparrot/github-code
847248f420894edb9f9037fae95f82c5c76b7b8b02c5f565c0d7f065502eb7af
#!/usr/bin/env python import os import time import argparse import tempfile import PyPDF2 import datetime from reportlab.pdfgen import canvas parser = argparse.ArgumentParser("Add signatures to PDF files") parser.add_argument("pdf", help="The pdf file to annotate") parser.add_argument("signature", help="The signature...
Python
signpdf.py
yourcelf/signpdf
mit
2,594
76
codeparrot/github-code
46d3589ba13707a746a4db881f118f27c5ffbfedbe404322ae88a3d366051c03
// @license // Redistribution and use in source and binary forms ... // Copyright 2012 Carnegie Mellon University. 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 sou...
JavaScript
tmc-1.2.1-linux/timemachine-viewer/js/org/gigapan/timelapse/mercator.js
CI-WATER/tmaps
mit
2,858
71
codeparrot/github-code
98ebe55bdb60e362c05527b0ea74e60e6a2ca9c37ff7767f0f30cd386de2cd68
describe('gridClassFactory', function() { var gridClassFactory; beforeEach(module('ui.grid.ie')); beforeEach(inject(function(_gridClassFactory_) { gridClassFactory = _gridClassFactory_; })); describe('createGrid', function() { var grid; beforeEach( function() { grid = gridClassFactory.cre...
JavaScript
test/unit/core/services/GridClassFactory.spec.js
domakas/ui-grid
mit
8,044
143
codeparrot/github-code
e1c216b22b76519518b22c3576cbed58900e86be0526891f25dbdea3a3f5752c
#include "../../include/domains/AODeterminization.h" #include "../../include/domains/DummyAction.h" AllOutcomesDeterminization:: AllOutcomesDeterminization(mlcore::Problem* problem) { originalProblem_ = problem; problem->generateAll(); int s_idx = 0; for (mlcore::State* s : problem->states()) ...
C++
src/domains/AODeterminization.cpp
luisenp/mdp-lib
mit
2,532
73
codeparrot/github-code
23f9426982aad01f87441b729a91aa8bc1b274a988fc6b0ef8d3f40b90c64642
/*Owner & Copyrights: Vance King Saxbe. A.*//*Copyright (c) <2014> Author Vance King Saxbe. A, and contributors Power Dominion Enterprise, Precieux Consulting and other contributors. Modelled, Architected and designed by Vance King Saxbe. A. with the geeks from GoldSax Consulting and GoldSax Technologies email @vsaxbe@...
PHP
App/HITEJINRO.php
VanceKingSaxbeA/KOSPI-Engine
mit
9,175
260
codeparrot/github-code
da9f7f6273310639f6bdaa084e2629c6accc5eabbc62b97f386fda23e79b5437
#!/usr/bin/python import pexpect import sys import logging import vt102 import os import time def termcheck(child, timeout=0): time.sleep(0.05) try: logging.debug("Waiting for EOF or timeout=%d"%timeout) child.expect(pexpect.EOF, timeout=timeout) except pexpect.exceptions.TIMEOUT: logging.debug("Hit timeout...
Python
demo/demo3.py
paulboal/pexpect-curses
mit
1,476
58
codeparrot/github-code
ee12786bd97d25b2be0b387bed72ab883ff85b01965f23d56d911cad627d9216
// Copyright (c) Microsoft Corporation // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Runtime.InteropServices; namespace Microsoft.Xbox.Services.Leaderboard { public partial class LeaderboardQuery { public string StatNam...
C#
CSharpSource/Source/api/Leaderboard/LeaderboardQuery.cs
MSFT-Heba/xbox-live-unity-plugin
mit
1,787
80
codeparrot/github-code
b9a14dc65dede29aa4f3c0e8cfe509f202e2912c2b463910600e887f7e802c82
/** * Returns an Express Router with bindings for the Admin UI static resources, * i.e files, less and browserified scripts. * * Should be included before other middleware (e.g. session management, * logging, etc) for reduced overhead. */ var browserify = require('../middleware/browserify'); var express = requir...
JavaScript
admin/server/app/createStaticRouter.js
joerter/keystone
mit
1,923
58
codeparrot/github-code
d4a6520aea1ea0ef362108d3b7135bc20117d9f5c75424296b371ecf82bef9c4
package org.nextrtc.signalingserver.api; import lombok.extern.log4j.Log4j; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Service; import com.google.common.eventbus.EventBus; @Log4j @Service("nextRTCEventBus") @Scope("singleton") public class NextRTCEventBus { private E...
Java
src/main/java/org/nextrtc/signalingserver/api/NextRTCEventBus.java
kevintanhongann/nextrtc-signaling-server
mit
719
37
codeparrot/github-code
5955614b9d9febbd4792b7615fd9ffb6f81b7e52c7f984fe7624286cc3c0e440
'use strict' const isPlainObject = require('lodash.isplainobject') const getPath = require('lodash.get') const StaticComponent = require('./StaticComponent') const DynamicComponent = require('./DynamicComponent') const LinkedComponent = require('./LinkedComponent') const ContainerComponent = require('./ContainerCompo...
JavaScript
src/components/index.js
zaboco/deependr
mit
1,892
70
codeparrot/github-code
5b8fc6474d33a993d8b37f1cacb27241a9719c78ab895126fdb84639f4f0291a
//----------------------------------------------------------------------- // <copyright file="PropertiesFileGenerator.cs" company="SonarSource SA and Microsoft Corporation"> // Copyright (c) SonarSource SA and Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the pr...
C#
SonarRunner.Shim/PropertiesFileGenerator.cs
HSAR/sonar-msbuild-runner
mit
14,480
342
codeparrot/github-code
20643a83b5b9ee48a496c901535a38c8f46c1dbe822e0f1f4b0df1c0acc1fe01
'use strict'; var program = require('commander'); var Q = require('q'); var fs = require('fs'); var resolve = require('path').resolve; var stat = Q.denodeify(fs.stat); var readFile = Q.denodeify(fs.readFile); var writeFile = Q.denodeify(fs.writeFile); var assign = require('./util/assign'); program .option('--get', ...
JavaScript
lib/config.js
zorrodg/fox-cove
mit
1,822
74
codeparrot/github-code
4bedac65da356060ae5db612fa39f717f33d28b697300a3662e9592882a61dfa
package pt.lsts.imc; import java.io.IOException; import java.net.URI; import java.util.concurrent.Future; import org.eclipse.jetty.websocket.api.Session; import org.eclipse.jetty.websocket.api.annotations.OnWebSocketConnect; import org.eclipse.jetty.websocket.api.annotations.OnWebSocketMessage; import org.eclipse.jet...
Java
src/pt/lsts/imc/ImcClientSocket.java
LSTS/imcproxy
mit
1,796
65
codeparrot/github-code
23cd6103b8e97bcf92acd9eac99dfcf520506cc2dafdc55e0d25d2b01cb86703
<?php namespace Core; use Silex\ControllerCollection; abstract class AbstractController { /** * * @var Application */ protected $app; public function __construct( Application $app ) { $this->app = $app; } /** * * @param \Silex\ControllerCollection $controllers * @return \Si...
PHP
src/Core/AbstractController.php
kor3k/silex
mit
714
36
codeparrot/github-code
089b62876e95fb709e0966f48e73f00adab0c15a11722ab274261bef2cdd7182
# -*- coding: utf-8 -*- import json from axe.http_exceptions import BadJSON def get_request(request): return request def get_query(request): return request.args def get_form(request): return request.form def get_body(request): return request.data def get_headers(request): return request.header...
Python
axe/default_exts.py
soasme/axe
mit
680
36
codeparrot/github-code
442e53f4426ce4ad6a5b180907aa61fb8d560de7ceec567ce0e8c054d5b74235
'use strict'; import cheerio = require('cheerio'); import fs = require('fs'); import mkdirp = require('mkdirp'); import my_request = require('./my_request'); import path = require('path'); import subtitle from './subtitle/index'; import vlos from './vlos'; import video from './video/index'; import xml2js = require('xml...
TypeScript
src/episode.ts
Godzil/Crunchy
mit
13,573
526
codeparrot/github-code
d6e8faa1426ececdb17f1445a1db9c5502dbedbf1fe224f6f9bb15190c16aa7a
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ComponentModel; using System.Reflection; using System.Net.Http; using Newtonsoft.Json; namespace Codenesium.DataConversionExtensions { public static class ObjectExtensions { ...
C#
DataConversionExtensions/ObjectExtensions.cs
codenesium/DataConversionExtensions
mit
2,901
91
codeparrot/github-code
d2e70010f74808358a2bdcd5707339165acbb06dd2ab3e5194c587252a951e91
import qambi, { getMIDIInputs } from 'qambi' document.addEventListener('DOMContentLoaded', function(){ console.time('loading and parsing assets took') qambi.init({ song: { type: 'Song', url: '../data/minute_waltz.mid' }, piano: { type: 'Instrument', url: '../../instruments/h...
JavaScript
examples/concat/main.js
abudaan/qambi
mit
1,165
56
codeparrot/github-code
5b4b31fc4cd8c70df9d250c9f882c1097c583215257784bd4bb3573eadaf16e8
module Doorkeeper class TokensController < Doorkeeper::ApplicationMetalController def create response = authorize_response headers.merge! response.headers self.response_body = response.body.to_json self.status = response.status rescue Errors::DoorkeeperError => e hand...
Ruby
app/controllers/doorkeeper/tokens_controller.rb
EasterAndJay/doorkeeper
mit
2,774
83
codeparrot/github-code
55074f8bb99b55a54b5e392bad753ee503ab5d2241fe70c785e16f2408fb857c
/* * JBox2D - A Java Port of Erin Catto's Box2D * * JBox2D homepage: http://jbox2d.sourceforge.net/ * Box2D homepage: http://www.gphysics.com * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use o...
Java
libraries/JBox2D/src/org/jbox2d/testbed/TestSettings.java
cr0ybot/MIRROR
mit
2,286
74
codeparrot/github-code
2a9a2ea834f8a0f3156c2b42f91fb666942fd452efea7f07057bff3daa4cfba8
package org.github.mervyn.io; import static org.junit.Assert.*; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * @ClassName: FileInputStreamTest * @Des...
Java
java-learn-io/src/test/java/org/github/mervyn/io/FileInputStreamTest.java
csmervyn/java-learn
mit
1,407
55
codeparrot/github-code
6c253b70f3ef21151b09007b022c7eecf68b84c150c59a5d7e43561b40ed14cc
package com.zs.leetcode.array; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List; public class MergeIntervals { public static void main(String[] args) { } public List<Interval> merge(List<Interval> intervals) { List<Interval> list = new ...
Java
src/com/zs/leetcode/array/MergeIntervals.java
zsgithub3895/common.code
mit
1,011
43
codeparrot/github-code
25a6dc0c8d11b43f44c14fac50f0b6b56aecc83084f247dbd58a791daaf4ab65
/** * Created by kalle on 12.5.2014. */ /// <reference path="jquery.d.ts" /> var TheBall; (function (TheBall) { (function (Interface) { (function (UI) { var ResourceLocatedObject = (function () { function ResourceLocatedObject(isJSONUrl, urlKey, onUpdate, boundToElements, boundTo...
JavaScript
WebTemplates/AdminTemplates/categoriesandcontent/assets/oiplib1.0/TheBall.Interface.UI/UpdatingDataGetter.js
abstractiondev/TheBallDeveloperExamples
mit
4,578
100
codeparrot/github-code
270f1fc37fb50985cf2dee6c241bba78a45ff6dd919203126390cd324838e020
package bixie.checker.transition_relation; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.LinkedList; import bixie.boogie.controlflow.AbstractControlFlowFactory; import bixie.boogie.controlflow.BasicBlock; import bixie.boogie.controlflow.CfgProcedure; import ...
Java
src/main/java/bixie/checker/transition_relation/FaultLocalizationTransitionRelation.java
SRI-CSL/bixie
mit
5,883
183
codeparrot/github-code
9bff69d0bb48e9d175efbe73ef5f81dcf1241ee19147fb7968d3ce2e5b70e7bc
<?php function getHost() { // Determine the "host" (domain) part of the requested resource URL. if(isset($_SERVER['HTTP_X_FORWARDED_HOST']) && $host = $_SERVER['HTTP_X_FORWARDED_HOST']) { $elements = explode(',', $host); $host = trim(end($elements)); } el...
PHP
application/config/appenv.php
Scowen/osrs-market
mit
3,628
80
codeparrot/github-code
f4020dc37b61f984cd12f2a34febdb3e5e751943b5d60784a01abccabb0d4aa0
package ru.ifmo.springaop.namepc; import org.springframework.aop.Advisor; import org.springframework.aop.framework.ProxyFactory; import org.springframework.aop.support.DefaultPointcutAdvisor; import org.springframework.aop.support.NameMatchMethodPointcut; import ru.ifmo.springaop.staticpc.SimpleAdvice; /** ...
Java
SpringAOP/src/main/java/ru/ifmo/springaop/namepc/NamePointcutExample.java
meefik/java-examples
mit
1,089
35
codeparrot/github-code
dbd421fd4c0589910bdcf77b9f757bc2442c74b0f97b993cb49321e4947f8eff
package fastlanestat import ( "net/http" "html/template" // "fmt" // Import appengine urlfetch package, that is needed to make http call to the api "appengine" "appengine/datastore" ) type ViewContext struct { PricePoints []PricePoint } func viewStatsHandler(w http.ResponseWriter, r...
GO
view.go
ido-ran/fastlanestats
mit
881
37
codeparrot/github-code
4bfb2e1426ae7931c3db497b8eb8d7c5dfaeaf537b6e766851a1e801d47bd1e6
// The MIT License (MIT) // Copyright © 2015 AppsLandia. All rights reserved. // 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 ...
Java
src/main/java/com/appslandia/common/base/BufferedWriter.java
haducloc/appslandia-common
mit
3,683
144
codeparrot/github-code
b25171cec32ac747aa0af982f865434b028c7680783ef979cca1b8478ea98e7b
/** * Copyright (c) 2010 Daniel Murphy * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publ...
Java
src/main/java/com/dmurph/mvc/gui/combo/MVCJComboBox.java
pearlqueen/java-simple-mvc
mit
10,703
416
codeparrot/github-code
ef3de7f981d52355b2098f01a0f78dae9d2ddad377a76e4320328a330cd65536
using System; using System.Data.Entity; using System.Data.Entity.Infrastructure; using System.Threading; using System.Web.Mvc; using WebMatrix.WebData; using PersonaMVC4Example.Models; namespace PersonaMVC4Example.Filters { [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false, I...
C#
MVC4/PersonaMVC4Example/Filters/InitializeSimpleMembershipAttribute.cs
shanselman/AspNetPersonaId
mit
2,016
51
codeparrot/github-code