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
d67f5d8b914bd84bb673a10a3795eceee52032e061d44992351203659ae44cc0
--- --- <!doctype html> <html class="default no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>UrlService | @uirouter/angular</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" hr...
HTML
_ng2_docs/6.0.2/classes/__uirouter_core_src_url_urlservice_.urlservice.html
ui-router/ui-router.github.io
mit
38,902
681
codeparrot/github-code
14f376b4a869ab093610947d55d741a6444b837353251fdffa7c267be49a1114
'use strict'; var memo = function() { // load requirements var _sqlite = require('sqlite3').verbose(), _coordinate = require('./coordinate'); var _db = null; var _env = null; var _init = function(env) { _env = env; if (!_db) { _db = new _sqlite.Database(...
JavaScript
memo.js
Leask/mnemosyne
mit
5,502
206
codeparrot/github-code
90d65cbf277bee63d0a677ef4aa81051bf86b51540c5b35c8ffbb58d5f519881
var CNC = require("./CNC"); var arcToBezier = require("svg-arc-to-cubic-bezier").default; // is used var parseSVG = require('svg-path-parser'); module.exports = function convert(argv, path, creasepath){ function doStuff(svg){ var wd = svg.split("\n").join(""); var rgx = new RegExp(/\<path.+?\ d="(.+?)...
JavaScript
converter.js
pfgithub/cnc-gen
mit
7,087
177
codeparrot/github-code
0ce710332e96c5e41ac9adf406ca19769b6720b1fcb9b8c37943a24f0ae8cd8c
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <boost/assign/list_of.hpp> #include "base58.h" #include "bitcoinrpc.h" #inclu...
C++
src/rpcrawtransaction.cpp
MammothCoin/MammothCoin
mit
20,292
565
codeparrot/github-code
eafc3aacf876411e2ad948dae86d3f56b54854f6262e11b97448e403b0c74e63
import re class UnknowItem(Exception): pass KEYWORDS = ("and", "as", "assert", "break", "class", "continue", "def", "del", "elif", "else", "except", "exec", "finally", "for", "from", "global", "if", "import", "in", "is", "lambda", "not", "or", "pass", "print", "raise", "return", "try", "while", "with", "yield") ...
Python
dependencies/baron/tokenizer.py
cbonoz/codehealth
mit
3,585
116
codeparrot/github-code
e79c22c9dffeec98d8bd65a92c5fa9dd3459c077707c009c00abf51cd2d63bbb
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>dpdgraph: 15 s</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="style...
HTML
clean/Linux-x86_64-4.10.0-2.0.6/released/8.12.0/dpdgraph/0.6.8.html
coq-bench/coq-bench.github.io
mit
7,703
173
codeparrot/github-code
eae923c3b3b44ffc97580bcf4a177ee973163ed2f58632b447e6551c6bb1ec25
package org.accela.spider.stage; import org.accela.spider.util.URL; import org.accela.spider.data.WebPage; import org.accela.spider.strategy.AbortPolicy; import org.accela.spider.strategy.impl.DelegateAbortPolicy; import org.accela.stage.InstantStage; import org.accela.stage.RejectedOutputException; import o...
Java
src/org/accela/spider/stage/ConstructingStage.java
accelazh/Spider
mit
1,214
53
codeparrot/github-code
12ecc062d0b1e639a0975fc26791d72f9dd43a79154a4a016eed7927f715cd7b
using System; using System.Data.Common; using SharpData.Exceptions; namespace SharpData.Databases.PostgreSql { public class PostgreSqlProvider : DataProvider { private const string SavepointId = "PostgreSqlId"; public PostgreSqlProvider(DbProviderFactory dbProviderFactory) : base(dbProviderFactor...
C#
SharpData/Databases/PostgreSql/PostgreSqlProvider.cs
SharpTools/sharpdata
mit
1,231
32
codeparrot/github-code
033c0c4221ebd7334b35ac8162c3e97660dbd0a3df59fe1bfca31b2832482ea0
<!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"> <meta name="keywords" content="how to business website Australia"> <meta name="description" content="How to buil...
HTML
how-to-business-website-Australia.html
bizonweb/bizon.com.au
mit
27,137
514
codeparrot/github-code
e6f5258712bf33f6b8fe86484786040b3347e976abae4b3d46cddc36cddbb23f
/* Bullet Continuous Collision Detection and Physics Library Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ 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 of this software. Permiss...
C
02_Library/Include/XMBullet/BulletCollision/CollisionDispatch/btBox2dBox2dCollisionAlgorithm.h
mcodegeeks/OpenKODE-Framework
mit
2,839
67
codeparrot/github-code
ea93b825ee468ab1b45a2e12baf8db03b1132168254ab2144221be5263dfeaed
'use strict'; (function(){ angular.module('juridicaWebApp') .factory('httpRequestInterceptor', function ($rootScope) { return { request: function($config) { $rootScope.materialPreloader = true; if( $rootScope.token ) { $config.headers['Authorization'] = 'UFG ' + ...
JavaScript
client/app/httpRequest.interceptor.js
jsmiguel/JuridicaWebApp
mit
886
43
codeparrot/github-code
cf4f83009436995cdd924976ce957e96bf2d0b69c1428fe0a841a41a0569a99e
/* * * This sample program is provided AS IS and may be used, executed, copied and * modified without royalty payment by customer (a) for its own instruction and * study, (b) in order to develop applications designed to run with an IBM * WebSphere product, either for customer's own internal use or for redistrib...
Java
Java/Java-CachingSamples/CacheServiceRESTSample/src/com/ibm/cachesample/ConnectionUtils.java
myhong0/sk-bmx-sample
mit
7,895
277
codeparrot/github-code
a55d68111113318e4e461f37dac1d6ad375610d26fe2729d0ccb55f4d4d58f1d
package ua.com.fielden.platform.sample.domain; import ua.com.fielden.platform.entity.AbstractEntity; import ua.com.fielden.platform.entity.DynamicEntityKey; import ua.com.fielden.platform.entity.annotation.CompanionObject; import ua.com.fielden.platform.entity.annotation.CompositeKeyMember; import ua.com.fielden.platf...
Java
platform-pojo-bl/src/main/java/ua/com/fielden/platform/sample/domain/TgOrgUnit5.java
fieldenms/tg
mit
1,822
67
codeparrot/github-code
301366a4f12d0d8265de3bed44ddb82be8056fe8060a7f511ccd8cf5e4dec2b2
require 'uri' module HttpVanilli class Util def self.decode_userinfo_from_header(header) header.sub(/^Basic /, "").unpack("m").first end def self.encode_unsafe_chars_in_userinfo(userinfo) unsafe_in_userinfo = /[^#{URI::REGEXP::PATTERN::UNRESERVED};&=+$,]|^(#{URI::REGEXP::PATTERN::ESCAPED})/ ...
Ruby
lib/http_vanilli/util.rb
lachie/http_vanilli
mit
915
33
codeparrot/github-code
37b7725f9db3708676f95c6936a6294ed2a2361e0748f331780a84fddec3b3c2
package AnyComicApp::Plugin::PageNavigator; use Mojo::Base 'Mojolicious::Plugin'; use POSIX( qw/ceil/ ); use Mojo::ByteStream 'b'; use strict; use warnings; our $VERSION = 0.01; # Homer: Well basically, I just copied the plant we have now. # Then, I added some fins to lower wind resistance. # And thi...
Perl
lib/AnyComicApp/Plugin/PageNavigator.pm
baboowang/anycomic
mit
3,787
148
codeparrot/github-code
5a4c6f8c36a9eec4f2cee5796e3af41ca3b9ffc69ccb2b38813b1e0629130f63
<?php /** * Created by PhpStorm. * User: thomas * Date: 03/08/17 * Time: 16:30 */ namespace Framework\Container; /** * Class Templating * @package Framework\Container */ class Templating { /** * @var \Twig_Environment */ private $twig; /** * Templating constructor. */ publ...
PHP
app/Container/Templating.php
TBoileau/formation-php
mit
1,159
52
codeparrot/github-code
4abc47bda9a4560e75fe85bc043329f91d497a9b6b71d1532d735711512736f1
<?php namespace Thruway; use Thruway\Common\Utils; use Thruway\Message\RegisterMessage; /** * Class Registration * * @package Thruway */ class Registration { /** * @var mixed */ private $id; /** * @var \Thruway\Session */ private $session; /** * @var string *...
PHP
src/Thruway/Registration.php
davidwdan/Thruway
mit
7,681
328
codeparrot/github-code
3f9f6c8176c1dbe9aaacb990bc61521fea25723fe812f53607b6aded6607e119
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>mathcomp-analysis: Not compatible</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap....
HTML
clean/Linux-x86_64-4.09.0-2.0.5/extra-dev/8.11.dev/mathcomp-analysis/0.1.0.html
coq-bench/coq-bench.github.io
mit
7,355
183
codeparrot/github-code
6fe0220592ba13708db96bc7d072055abf25e3a27be4a9a319ecf55baa9ccf71
/* global angular */ (function () { 'use strict'; angular.module('agreements') .component('scientillaAgreementVerifiedList', { templateUrl: 'partials/scientilla-agreement-verified-list.html', controller, controllerAs: 'vm', bindings: {} }); c...
JavaScript
assets/js/app/agreements/scientilla-agreement-verified-list.component.js
scientilla/scientilla
mit
2,439
82
codeparrot/github-code
0f05f5e34cde13d1ff0cdc7d4c72985cbdf2cbe14b078a3c795e42393601d80b
/* * ***** BEGIN LICENSE BLOCK ***** * Zimbra Collaboration Suite Server * Copyright (C) 2011 Zimbra, Inc. * * The contents of this file are subject to the Zimbra Public License * Version 1.3 ("License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at ...
Java
ZimbraSoap/src/java/com/zimbra/soap/mail/message/ItemActionResponse.java
nico01f/z-pec
mit
2,099
65
codeparrot/github-code
e39c75b809f2a71f2d29be6a7bc8880054e2bb38752295b777ba03e0216bf19f
/*global define,jasmine,angular,describe,it,expect*/ define(function (require) { 'use strict'; var Field = require('ng-admin/Main/component/service/config/Field'), ListView = require('ng-admin/Main/component/service/config/view/ListView'), DashboardView = require('ng-admin/Main/component/servi...
JavaScript
src/javascripts/test/unit/Main/component/service/config/FieldSpec.js
dongdiemthuy/nutrixs-ng-admin
mit
4,126
109
codeparrot/github-code
a744467eeecd9e7bf26466f03745340d9749fa27871e648ce7bfd514a00ab99d
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'D:\Sebastian\Mis documentos\Programacion\Proyectos\IA2013TPIRL\gui\qt\IA2013TPIRLGUI\gwgenrndestadosdialog.ui' # # Created: Tue Jul 09 15:27:46 2013 # by: PyQt4 UI code generator 4.10.2 # # WARNING! All changes made in this file will be...
Python
src/gui/qtgen/gwgenrndestadosdialog.py
ssebastianj/ia2013-tpi-rl
mit
1,334
38
codeparrot/github-code
525791daca2175f4bf3a37106063bb5526bb1e5b1da976b7ffef7055eadbf693
package net.anotheria.moskito.core.journey; import net.anotheria.moskito.core.calltrace.CurrentlyTracedCall; import java.util.ArrayList; import java.util.List; /** * A monitoring session at the runtime of recording. * @author lrosenberg * */ public class Journey { /** * Name of the journey. */ private Stri...
Java
moskito-core/java/net/anotheria/moskito/core/journey/Journey.java
bolbat/moskito
mit
2,009
93
codeparrot/github-code
9b85c99937568fc509784f93112410e8c4d5d4f6da142e508c65aa38e9403e3c
package org.jabref.model.openoffice.uno; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Objects; import java.util.Optional; import java.util.stream.Collectors; import com.sun.star.beans.Property; import com.sun.star.beans.UnknownPropertyException; import com.sun.star.bean...
Java
src/main/java/org/jabref/model/openoffice/uno/UnoProperties.java
JabRef/jabref
mit
2,965
96
codeparrot/github-code
7e7c53f74f3516cfc752b973623a41d17d9421ecab86a916519c3dfcd7f8f114
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2013 The Feathercoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "init.h" #include "util.h" #i...
C++
src/bitcoinrpc.cpp
FordCoin/fordcoin
mit
47,929
1,309
codeparrot/github-code
dc2a675a056b0aca4f033f2dd0d75bebaa923562a9bd8c9ff02e37b390018b93
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>pocklington: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min...
HTML
clean/Linux-x86_64-4.05.0-2.0.1/released/8.12.0/pocklington/8.6.0.html
coq-bench/coq-bench.github.io
mit
7,086
175
codeparrot/github-code
a9cbbce9167dbacebe755dffd4b8800fc2c64edebd4f89576568c7c175aa715c
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> <title>Customer Info</title> <!-- Bootstrap ...
HTML
ch11_src/CrudView/src/main/webapp/index.html
dheffelfinger/Java-EE-8-Application-Development-Code-Samples
mit
4,681
93
codeparrot/github-code
4fdc41a30547b917c11967495d8112c10c8c43c1e1deacccdfd72fa13a535853
/* The MIT License (MIT) Copyright (c) 2013 Newton Kim 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, pu...
C++
engine/gtk/gtk_engine.cc
babynewton/drew
mit
4,455
159
codeparrot/github-code
dc30427aae940ec0f553b96189a106804c2b6933261a2151da310e84511c3945
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Gallery extends Application { /** * Index Page for this controller. * * Maps to the following URL * http://example.com/index.php/welcome * - or - * http://example.com/index.php/welcome/index * - or - * Since this controll...
PHP
application/controllers/Gallery.php
beckyzhou/starter-lab02
mit
1,591
51
codeparrot/github-code
3db607df8cbe38959b6022b133a210be6d77115d9a1639ecf12ca1909e6ef784
var gulp = require('gulp'), del = require('del'), vinylPaths = require('vinyl-paths'), $ = require('gulp-load-plugins')(), spritesmith = require('gulp.spritesmith'); var paths = { scripts: ['src/trumbowyg.js'], langs: ['src/langs/**.js', '!src/langs/en.js'], plugins: ['plugins/*/**.js', '!p...
JavaScript
public/assets/plugins/Trumbowyg-2.0.0-beta.7/Gulpfile.js
jmaturrano/siav-qualitta
mit
5,909
175
codeparrot/github-code
8b4ea1d0e9015a5e606d022aa54221bf08869ca9f5b3e92f59e5fabfab89be7c
function loadMainContent( pagename ){ //var pagename = pagehash;//pagehash.substring(1, pagehash.length); $( ".container" ).load( pagename , errorResponse); } function loadBeachContent(content){ var src = "/images/" + content; $("#weather").attr("src", src); } function getLocalize(date){ var hours = date.getHours...
JavaScript
public/js/beachbum.js
ravinraven/cse170project
mit
1,263
38
codeparrot/github-code
d0e352d0b6fbdca5aa9de227a0805658e8601e5956b29d8a13ade12b62cacb4b
namespace AcademyEcosystem { public abstract class Organism : IOrganism { public bool IsAlive {get; protected set;} public Point Location { get; protected set; } public int Size { get; protected set; } public Organism(Point location, int size) { this.Locat...
C#
[C#]-03-OOP/Exam 13-Mar-25-evening/2. AcademyEcosystem/AcademyEcosystem/AcademyEcosystem/Organism.cs
shakuu/Homework
mit
665
32
codeparrot/github-code
366854ec0fe2d4e5bdb47c049f76b70abf14db3ae92e5635c726bd3000ec6388
package nl.hugojanssen.sqlgraph.shared; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; /** * Utility class that provides functions for the validation of directories and (SQL) files. * * @author hjanssen */ public class SQLParserUtil { /** * Returns the extension of the ...
Java
src/main/java/nl/hugojanssen/sqlgraph/shared/SQLParserUtil.java
nl-hugo/sqlgraph
mit
4,470
133
codeparrot/github-code
0791ece985c3929df849b00ccdec48ad32d6fcb72120d64415687345bcf345be
<?php namespace Phapi\Middleware\Serializer\Xml; use Phapi\Exception\InternalServerError; use Phapi\Serializer\Serializer; /** * Class XML * * Middleware that serializes the response body to XML * * @category Phapi * @package Phapi\Middleware\Serializer\Xml * @author Peter Ahinko <peter@ahinko.se> * @lic...
PHP
src/Phapi/Middleware/Serializer/Xml/Xml.php
phapi/serializer-xml
mit
2,069
86
codeparrot/github-code
d18cc13adbe1b4f680b974e8278b38d56e9494a98f35310b0f54b540b53fee1f
<!doctype html> <html class="theme-next mist use-motion"> <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, maximum-scale=1"/> <meta http-equiv="Cache-Control" content="no-transform" /> <meta h...
HTML
2017/03/07/创建和删除目录/index.html
shiyangnianhua/shiyangnianhua.github.io
mit
18,551
764
codeparrot/github-code
583881e5700688a7a7683035d0dbd16b51975ca2983302bef89fe5338b753d6b
package net.jselby.escapists.data.events.expression; import kotlin.Pair; import net.jselby.escapists.data.events.ExpressionValue; import net.jselby.escapists.game.events.Expression; import net.jselby.escapists.util.ByteReader; import java.lang.annotation.Annotation; import java.lang.reflect.Method; import java.util.A...
Java
core/src/main/java/net/jselby/escapists/data/events/expression/ExpressionFunction.java
j-selby/EscapistsRuntime
mit
2,233
74
codeparrot/github-code
fd1e1d810f8db01cc60d5176789cbc3553db905fe965ea9acb1232aee49a61ca
using FluentAssertions; using NUnit.Framework; using System.Collections.ObjectModel; namespace Nerdle.AutoConfig.Tests.Integration { [TestFixture] class MappingKeyedCollections : EndToEndTest { [Test] public void Mapping_keyed_collections() { var config = AutoConfig.Map...
C#
Nerdle.AutoConfig.Tests.Integration/MappingKeyedCollections.cs
edpollitt/Nerdle.AutoConfig
mit
1,282
43
codeparrot/github-code
f6911d908f2bf48c84ea69acd8bcfa34e0f3c8ef3263292e65ec49729f43aed6
// Copyright (c) Aurora Studio. All rights reserved. // // Licensed under the MIT License. See LICENSE in the project root for license information. using Aurora.Shared.Extensions; using System; using System.Collections.Generic; using System.Reflection; using Windows.Storage; using Windows.UI; namespace Aurora.Shared....
C#
Source/Aurora.Shared/Helpers/SettingsHelper.cs
pkzxs/Aurora.Music
mit
14,496
416
codeparrot/github-code
71064a1cceed370d02a5aff364df533bf38897fc3192a02081caa7d5eb9e78da
package application; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.logging.Level; import java.util.logging.Logger; import javafx.stage.FileChooser; public class WriteToTextFile { private int i; priv...
Java
TestVerktygAdminDemoVersion/src/application/WriteToTextFile.java
Maraln/Textvertyg
mit
5,774
186
codeparrot/github-code
61bc3b7de4b2ba22fde842af72662b174371afe09eb3e89af10d3af77916f353
// MIHandleCommands.h // Copyright (c) 2015 Zukini Ltd. @import Foundation; @import CoreGraphics; @class MIContext; @class MICGImage; #pragma clang assume_nonnull begin /** @brief The logging handler block definition for applying a logging function. @discussion If you provide a logging function to MovingImages ...
C
MovingImages Demo/MovingImages.framework/Versions/A/Headers/MIHandleCommands.h
SheffieldKevin/MovingImagesDemo
mit
7,104
140
codeparrot/github-code
3ab2fcdb99f2ce84877a1b338839172dd15c4f012d6c250523e7679b5736f9e2
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>euler-formula: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.m...
HTML
clean/Linux-x86_64-4.04.2-2.0.5/released/8.9.1/euler-formula/8.10.0.html
coq-bench/coq-bench.github.io
mit
7,216
175
codeparrot/github-code
7135cd3c3ac5b77de56d4cb5b5b522a59c714c9b7c9b2e04f0fe94b34eac5cfa
<?php namespace App\Http\Controllers; use App\Commands\ChangeLocaleCommand; use App\Repositories\SpecialtyRepository; use App\Repositories\BlogRepository; use App\Repositories\UserRepository; class HomeController extends Controller { /** * The BlogRepository instance. * * @var App\Repositories\BlogReposi...
PHP
app/Http/Controllers/HomeController.php
VadimPolh/emc_main
mit
1,824
93
codeparrot/github-code
78101afc89466a511201af6f321e114598e55569db161ae28c7e3d77bd09b099
require 'chie/recordset' module Chie class ListQuery attr_reader :fields, :tables, :where_phrase, :order_by def initialize(db, entity, opt = {}) @db = db @entity = entity @opt = opt @engine = @entity.engine generate_fields generate_tables generate_where_phrase ...
Ruby
lib/chie/listquery.rb
GreyCat/chie
mit
7,465
253
codeparrot/github-code
46a5034f50956a17a449edd24f675e0eb2978fc6b15f62a215348883665b5e7b
/* Panelsim1170_app.java: visual application framework for PDP-11/70 sim Copyright (c) 2015-2016, Joerg Hoppe j_hoppe@t-online.de, www.retrocmp.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 ...
Java
projects/09_javapanelsim/src/blinkenbone/panelsim/panelsim1170/Panelsim1170_app.java
j-hoppe/BlinkenBone
mit
13,442
398
codeparrot/github-code
d023d680d8eb2409a7e5ccffcc6122cba94b471f3d81d04e550b55cf73667e16
using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Runtime.Serialization; using Smellyriver.TankInspector.Pro.Repository; namespace Smellyriver.TankInspector.Pro.Data.Stats { [DataContract(Namespace = Stat.Xmlns)] public abstract class XPathSta...
C#
src/Smellyriver.TankInspector.Core/TankInspector.Pro/Data/Stats/XPathStat.Generic.cs
smellyriver/tank-inspector-pro
mit
5,501
155
codeparrot/github-code
6e8e37b455ffce3190a7b9d2c138c33bc5ca398037bcf67754c5aaae05ff67df
/* MIT License Copyright (c) 2019 Bart Bilos 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, publish, dis...
C++
software/soft_latching_tester/src/main.cpp
Squantor/various_PCB
mit
1,557
49
codeparrot/github-code
836f9cf887937c5d1d65b6ccb032f4829eae846692be438a3ffb5161ddb82b7b
/** @file @author Nicholas Gillian <ngillian@media.mit.edu> @version 1.0 @brief This is the main base class that all GRT PostProcessing algorithms should inherit from. A large number of the functions in this class are virtual and simply return false as these functions must be overwridden by the inherit...
C
libs/CoreModules/PostProcessing.h
cmuartfab/ofxLeapGestures
mit
10,186
256
codeparrot/github-code
4bbe18fb3fbfca93ead0f9915eec82ebeef75b303b954515873cece71f9071ce
(function(angular, window) { 'use strict'; /** * Demo modules * @type {Array} */ var modules = [ 'ngx.ui.addressInput', 'ngx.ui.checkboxlist', 'ngx.ui.confirm', 'ngx.ui.dateInput', 'ngx.ui.dialog', 'ngx.ui.geomap', 'ngx.ui.hashtagInput'...
JavaScript
demos/scripts/app.js
lmc-eu/ngx-library
mit
4,569
177
codeparrot/github-code
5c295f7d1ba1b55c6f68ec2ae1984bd350c4ca77fe7fb4e0a010bcfe9d1abb35
package codes.rusty.jagar.net; import codes.rusty.jagar.Core; import codes.rusty.jagar.Handler; import codes.rusty.jagar.net.packets.in.PacketInEjectMass; import codes.rusty.jagar.net.packets.in.PacketInMouseMove; import codes.rusty.jagar.net.packets.in.PacketInQPressed; import codes.rusty.jagar.net.packets.in.PacketI...
Java
src/main/java/codes/rusty/jagar/net/ServerHandler.java
Rustywolf/Jagar
mit
5,854
152
codeparrot/github-code
486d289f71f180b29f0468b7774aa93a2d82429ebc64cf813be4b2f8b02ded88
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. // // Implementation of the Redhawk Platform Abstraction Layer (PAL) library when MinWin is the platform. In this //...
C++
src/Native/Runtime/windows/PalRedhawkMinWin.cpp
yizhang82/corert
mit
65,546
1,871
codeparrot/github-code
8963812dc12ef6c28e76719197a80ec3b5d17913b619afaccd4b9bfdd02569a1
# ENV['RAILS_ENV'] = 'production'; reload!; p = SafariPushNotificationSend.new; p.perform([2], 2) class SafariPushNotificationSend include Sidekiq::Worker sidekiq_options retry: false, queue: :critical def perform(user_ids, entry_id) users = User.where(id: user_ids) tokens = Device.where(user_id: user_id...
Ruby
app/workers/safari_push_notification_send.rb
fearenales/feedbin
mit
2,028
63
codeparrot/github-code
2c9d61b0646d023be99b22cd6735eec5fdf2ea3501e48c2a9d66c1c57be434a9
#include<cstdio> #include<cstring> #include<cstdlib> #include<cctype> #include<cmath> #include<iostream> #include<algorithm> #include<vector> #include<set> #include<map> #include<queue> #include<stack> #include<cassert> typedef long long ll; typedef unsigned long long ull; using namespace std; const int MAXN=1510; cons...
C++
BZOJ/5292.cpp
Zhang-RQ/OI_DataBase
mit
2,017
79
codeparrot/github-code
9a588d31558719c022dbddfb670b972106d2bb2fa3cde6b93ba08f6a5fba7d64
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Login Page - Photon Admin Panel Theme</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"> <link rel="shortcut icon" href="ht...
HTML
lib/assets/images/photon/plugins/elrte/js/bootstrap/js/plugins/prettify/js/bootstrap/js/plugins/bootstrap-fileupload.min.js.html
user-tony/photon-rails
mit
15,727
197
codeparrot/github-code
57ba1bb1eb1d3d0e35e3c4307c6335b013b766c2c096bf1908571779f737a251
// ========================================================================== // SeqAn - The Library for Sequence Analysis // ========================================================================== // Copyright (c) 2006-2012, Knut Reinert, FU Berlin // All rights reserved. // // Redistribution ...
C
raw/pmbs12/pmsb13-data-20120615/sources/wtg1fr816tg4hs6w/5/core/include/seqan/arg_parse/arg_parse_argument.h
bkahlert/seqan-research
mit
59,576
1,604
codeparrot/github-code
1e7f4cd2e8ceba6d10a6e3203ee6c94e34198df446ae7f41d623e9df0df29f17
# -*- coding: utf-8 -*- """ Sahana Eden Menu Structure and Layout @copyright: 2011-2012 (c) Sahana Software Foundation @license: MIT 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 So...
Python
modules/eden/menus.py
mrGeen/eden
mit
70,805
1,741
codeparrot/github-code
63e208dbad32cb4861d07bef2f7159c2d1a33e17bd434d084f45185ecf23eedf
// Describe type conversion between C type value and mruby value. #include "mruby/string.h" #include <string> namespace mrubybind { //=========================================================================== // C <-> mruby type converter. // Base template class. template <class T> struct Type { // Type name use...
C
codegen/mrubybind_types.1.h
ktaobo/mrubybind
mit
4,973
146
codeparrot/github-code
7be248230d14678465d0d24bdc9146dea7f42333983ddc6f7100fc04f221127a
#pragma once #include <btBulletDynamicsCommon.h> #include <LinearMath/btIDebugDraw.h> #include "ezecs.hpp" #include "sceneObject.hpp" #include "interface.hpp" #include "topics.hpp" #include "vkc.hpp" using namespace ezecs; // TODO: figure out how to use bullet to simulate objects without collision components namesp...
C++
source/triceratone/systems/physics.hpp
a-day-old-bagel/at3
mit
1,865
58
codeparrot/github-code
6bc544d2de80075e988d56f4743b1aa21b590be7467b8fe03f01c94457dfc639
/** * This file defines the email tests for your project. * * Each email test should provide the locals used to render the * email template for preview. * * Values can either be an object (for simple tests), or a * function that calls a callback(err, locals). * * Sample generated emails, based on the keys and ...
JavaScript
routes/emails.js
JavaScript-NZ/javascript.org.nz
mit
1,063
43
codeparrot/github-code
2b8f04b4a9ba06472223b75bff89a9c3660e5e06f69f7bf69390ed5634c99f2e
#include <stdlib.h> #include "cmark.h" cmark_llist *cmark_llist_append(cmark_mem *mem, cmark_llist *head, void *data) { cmark_llist *tmp; cmark_llist *new_node = (cmark_llist *) mem->calloc(mem->data, 1, sizeof(cmark_llist)); new_node->data = data; new_node->next = NULL; if (!head) return new_node; ...
C
lib/cmark/linked_list.c
JaySandhu/vimdown
mit
787
38
codeparrot/github-code
2b8945d3470787227b3019043c228c11702814a7c87fe2f6d0e1d6985a4197c1
class segtree{ struct e { int a, b; }; public: int n; // array size vector<e> t; const e null_e = {-1000000000, -1000000000}; e combine(e l, e r) { return (l.a > r.a) ? l : r; } void build(vector<e> &v) { // build the tree for (int i = n; i < 2 * n; i++) t[i] = v[i - n]...
C++
cpp/segment_trees/combtree.cpp
petuhovskiy/Templates-CP
mit
942
39
codeparrot/github-code
3f5965c61b2f2bdd002c6a6f8dfd9056c3a6daec6eead1c1b574f71972c01425
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Framework.Graphics; namespace Storefront.Input { public enum DefaultChoices { Yes_No, Close, Ok_Cancel, } ...
C#
Input/SFDialogBox.cs
Misto423/Storefront
mit
12,326
325
codeparrot/github-code
e46f91083e21d505197b5485c01f603dc596f5f550e0317012dcba60a11bfc2d
//Handler package main import ( "encoding/json" "fmt" "github.com/gorilla/mux" "net/http" ) func Index(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "Welcome!") } func TestIndex(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "Test Index!") todos := Todos{ Todo{Name: "Write presentat...
GO
handlers.go
erikperez/metal
mit
581
34
codeparrot/github-code
3dcfbd3666a0959767111909c66a78bcb2068f5c04a1c4cad03cddbe2abbe319
package google import ( "fmt" "net/http" "os" "context" "github.com/otiai10/chant/server/middleware" ) // Client represents API Client for Google Search API type Client struct { APIKey string CustomSearchEngineID string Referer string *http.Client } // NewClient provides *google...
GO
server/middleware/lib/google/client.go
otiai10/chant
mit
1,283
50
codeparrot/github-code
3908626afbdea969f1050538a95cf7cdcc4f9e4f66a5fcb2599ab3b839ab27bb
module DockerCloud class StreamAPI < DockerCloud::API STREAM_API_PATH = 'wss://ws.cloud.docker.com/api'.freeze def websocket @websocket ||= begin url = URI.escape(STREAM_API_PATH + '/' + root_path + '/' + API_VERSION + websocket_path) Faye::WebSocket::Client.new(url, nil, ping: 240, hea...
Ruby
lib/docker_cloud/api/stream_api.rb
jntullo/ruby-docker-cloud
mit
1,834
85
codeparrot/github-code
3c7a738aec9088e650ea132636d2c04989aff8ff132af37f802933266076f8e0
import Component, { PropTypes } from 'lib/component'; import './styles.css'; export default class Page extends Component { /** * Updates the page title * @protected */ _updateTitle() { let title = this.t('page_title'); title && (document.title = title); } /** * @override */ component...
JavaScript
client/components/page/index.js
VodkaBears/another-one-fucking-boilerplate
mit
596
33
codeparrot/github-code
4567fdeecccb99b810359df54a4e9a6e6d199969adaa9a63aea2d59f83b5297e
package main import ( "fmt" "time" "gobot.io/x/gobot" "gobot.io/x/gobot/api" "gobot.io/x/gobot/drivers/aio" "gobot.io/x/gobot/drivers/gpio" "gobot.io/x/gobot/platforms/intel-iot/edison" ) var button *gpio.GroveButtonDriver var blue *gpio.GroveLedDriver var green *gpio.GroveLedDriver var red *gpio.GroveLedDriv...
GO
2016/airlock/edison/step6.go
hybridgroup/gobot-workshop-2017
mit
1,752
94
codeparrot/github-code
d2aaf72e84873465c3473adf8dcc1e2bcb5eb0d288946de1cdc68878d3e46efa
<?php namespace Fhaculty\Graph\Algorithm\Search; use Fhaculty\Graph\Vertex; use Fhaculty\Graph\Graph; use Fhaculty\Graph\Set\Vertices; class BreadthFirst extends Base { /** * * @return Vertices */ public function getVertices() { $queue = array($this->vertex); // to not add ...
PHP
lib/Fhaculty/Graph/Algorithm/Search/BreadthFirst.php
clue-labs/graph
mit
1,110
46
codeparrot/github-code
927227de090c0fccd71240e46f43a59bc4f6ea42c737f32045a6119a4dbad38d
package uk.co.transputersystems.transputer.assembler.expression; import uk.co.transputersystems.transputer.assembler.AssemblerExpressionBaseVisitor; import uk.co.transputersystems.transputer.assembler.AssemblerExpressionParser; import uk.co.transputersystems.transputer.assembler.LabelNotFoundException; import java.ut...
Java
tss-transputer-assembler/src/main/java/uk/co/transputersystems/transputer/assembler/expression/ExpressionEvaluator.java
TransputerSystems/TSS
mit
1,762
56
codeparrot/github-code
cc8c023650f194e4e91c36f388e99480d00b48a78f54f8aaedc1f5947f87e948
using System.Collections.Generic; using System.ComponentModel; namespace GitManagement.Models { public class Issue : INotifyPropertyChanged { private Assignee assignee; private Milestone milestone; private string title; private string body; public Assignee Assi...
C#
GitManagement/Models/Issue.cs
APopatanasov/ProjectManagement
mit
2,128
88
codeparrot/github-code
5c84afc412c3a1994ab3975ffdeeea6ad872542d81506695ef3c43e9222cce9f
# The code in this files is borrowed from Gedit Synctex plugin. # # Copyright (C) 2010 Jose Aliste # # This program is free software; you can redistribute it and/or modify it under # the terms of the GNU General Public Licence as published by the Free Software # Foundation; either version 2 of the Licence, or (at your...
Python
.vim/.vim/R/synctex_evince_forward.py
xdega/.dotfiles
mit
5,473
146
codeparrot/github-code
7e8ab0ef4b16d3687329ec6026ba82ad82d8fcba847f34017a4e48a973bc0e33
<?php /* TwigBundle:Exception:trace.txt.twig */ class __TwigTemplate_d48831595025ec7f7eb739cb5d0a2b5040a1cf62705c7c7d8351626159f91666 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = array( ...
PHP
app/cache/dev/twig/d4/88/31595025ec7f7eb739cb5d0a2b5040a1cf62705c7c7d8351626159f91666.php
fabsalito/famyly-app
mit
2,313
59
codeparrot/github-code
fad73aecda523b316d417fb60133b8b7734639c17122eecdd0f3227f41c742d6
import _plotly_utils.basevalidators class ShapesValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__(self, plotly_name="shapes", parent_name="layout", **kwargs): super(ShapesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
Python
packages/python/plotly/plotly/validators/layout/_shapes.py
plotly/python-api
mit
8,858
175
codeparrot/github-code
5abad9c203676f04202427a128d77d15a9eca150efc9bc5a66940815c8669543
// // ROCollectionCloudDatasource.h // whitewolfdemo // // This App has been generated using IBM Mobile UI Builder // #import <Foundation/Foundation.h> #import "RODatasource.h" #import "ROPagination.h" @class RORestClient; @interface ROCollectionCloudDatasource : NSObject <RODatasource,ROPagination> @property (n...
C
Matt_UI_Code/All_Code/whitewolfdemo-ObjC/whitewolfdemo/Core/Datasources/ROCollectionCloudDatasource.h
genterist/whiteWolf
mit
844
31
codeparrot/github-code
e821b2b5e8146e0510bd3e420df2653b26fcc27560d439ba47a2d6ea304e6187
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <!-- /fasttmp/mkdist-qt-4.3.5-1211793125/qtopia-core-opensource-src-4.3.5/src/gui/embedded/qkbddriverplugin_qws.cpp --> <h...
HTML
webserver/html/qkbddriverplugin-members.html
misizeji/StudyNote_201308
mit
7,165
77
codeparrot/github-code
bb9e6fb0b337f637520ee4c2c5b0bf5a2e8e7d11412586943043e3e2c8eb42eb
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.gemini.domain.dto; import java.util.ArrayList; import java.util.List; /** * * @author schari */ public class GeminiNet...
Java
src/main/java/com/gemini/domain/dto/GeminiNetworkDTO.java
SrikumarChari/geminimain
mit
1,743
89
codeparrot/github-code
5373e26b1065143a4a66e3d2b139678e66f1423a329a04a8ea05514b729e7ded
#include "bitcoinunits.h" #include <QStringList> BitcoinUnits::BitcoinUnits(QObject *parent): QAbstractListModel(parent), unitlist(availableUnits()) { } QList<BitcoinUnits::Unit> BitcoinUnits::availableUnits() { QList<BitcoinUnits::Unit> unitlist; unitlist.append(BTC); unitlist.append(mBT...
C++
src/qt/bitcoinunits.cpp
ZipperCoin/zippercoin
mit
4,289
182
codeparrot/github-code
3c11f6e62a288233a196f97e3c6b5aebb219bd4c1cc221a1e8bdb050c939d397
package com.purity.site.core.util; import java.util.HashMap; import java.util.Map; public class DomainUtil { private final static String HTTP = "http"; private final static String HTTPS = "https"; public static String getProtocol(String domainName) { if(domainName.startsWith(HTTP + "://") ) { domainName...
Java
src/main/java/com/purity/site/core/util/DomainUtil.java
aleksi1/Purity-Site
mit
1,286
61
codeparrot/github-code
71c8c4c97064db0eb954576aa6e5643f305aa68b0c26ca1898f4e6f001959ccc
'use strict'; export interface IEdge { from: symbol; to: symbol; } export class GustavGraph { sinkEdges: IEdge[]; transformEdges: Object; nodes: Object; constructor() { this.sinkEdges = []; this.transformEdges = {}; this.nodes = {}; } addEdge(from: symbol, to: symbol): void { if (!from...
TypeScript
GustavGraph.ts
SomeKittens/gustav
mit
1,628
59
codeparrot/github-code
184e412fe5a7ac41ae425dfea6cec76c6dd155c3e1d45617d3a7597868cf8224
package com.webbiko.pontointeligente.api.repositories; import com.webbiko.pontointeligente.api.BaseTest; import com.webbiko.pontointeligente.api.entities.Empresa; import org.junit.After; import org.junit.Before; import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import static org.ju...
Java
src/test/java/com/webbiko/pontointeligente/api/repositories/EmpresaRepositoryTest.java
webbiko/ponto-inteligente-api
mit
997
36
codeparrot/github-code
e932d81b7efa5c98bf6fff8a87ccafa227390ac79c944a6526ffc1ba37896fd1
package tsm1 import ( "fmt" "math" "os" "sync" "sync/atomic" "time" "github.com/influxdata/influxdb/models" "github.com/influxdata/influxdb/tsdb" "github.com/influxdata/influxql" "go.uber.org/zap" ) // ringShards specifies the number of partitions that the hash ring used to // store the entry mappings cont...
GO
tsdb/engine/tsm1/cache.go
vladlopes/influxdb
mit
22,673
811
codeparrot/github-code
cb496fb12192c9e5ac7d3156800e879195b441b4174cb90eaa4f9c5e914ff7c5
#include <cstdio> #include <cassert> #include "../deps/libmuxx/include/libmuxx.hpp" #include "../deps/libmuxx/include/utils.hpp" constexpr auto USAGE = R"(USAGE utf [-h] -w <wid> DESCRIPTION utf transfers focus to a window. OPTIONS -w, --wid <wid> window id to work on. -h, --help sho...
C++
src/utf.cpp
uwm-utility/core
mit
1,431
65
codeparrot/github-code
a6497b13a609eb076eecc4fa2b9f1d86a44ddffd66357560d9f45f759bf26321
// Decompiled with JetBrains decompiler // Type: LinqToWiki.Generated.Entities.logeventsSelect // Assembly: LinqToWiki.Generated, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null // MVID: A4304DCD-2C3F-4D9F-B552-69913FDA3067 // Assembly location: D:\work\my\AsoiafWikiDb\AsoiafWikiDb\bin\LinqToWiki.Generated.d...
C#
LinqToWiki.Generated/logevents.cs
lianzhao/AsoiafWikiDb
mit
5,103
108
codeparrot/github-code
e56e2ea4ea155c7ee02551a5850519476e399a60a78caaa18d291326d25df993
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "main.h" #include "db.h" #include "init.h" #include "bitcoinrpc.h" ...
C++
src/rpcmining.cpp
dollhairs/DollHairs
mit
21,691
589
codeparrot/github-code
03b8449821a88b60191d46a4c4056e2ceaaeab0c7e28717454c1928bbd629c2e
<div> <br/> <table style="font-family:Arial;"> <tr> <td height="70" colspan="2" align="center" valign="middle"> <a href="http://www.cuecasduomo.com.br" target="_blank" ><img src="{% data_url_image 'assinatura' 'logo-duomo-2020-02-05' %}" width="220" height="56" alt=""/></a> </td> <td rowspan...
HTML
src/template/email_signature/assin-abvtex.html
anselmobd/fo2
mit
2,936
57
codeparrot/github-code
b861ba2bc7c5448f68bc5cea40c8bc8a66f99e737c73b2a1409e9ddb84fb1c7a
#region License /* Distributed under the terms of a MIT-style license: The MIT License Copyright (c) 2010 Marius Klimantavičius 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...
C#
Marius.Html/Css/Properties/Orphans.cs
marius-klimantavicius/marius-html
mit
1,962
61
codeparrot/github-code
fff9ce5d1da0c8e39b54905d5c9172155d923f67d44d191e00a8b1e77f8aafe3
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>shuffle: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css...
HTML
clean/Linux-x86_64-4.09.1-2.0.6/extra-dev/8.10.dev/shuffle/8.7.0.html
coq-bench/coq-bench.github.io
mit
6,847
165
codeparrot/github-code
7f3c6ffb46db12bb7b4452858c0e811fd3cf24db47b80f450d95aab5c7cce0d8
package runner import ( "bufio" "fmt" "io" "os/exec" "syscall" ) type Runner struct { outStream, errStream io.Writer } func New(out, err io.Writer) *Runner { return &Runner{out, err} } func (r *Runner) Run(command string) error { cmd := exec.Command("cmd") cmd.SysProcAttr = &syscall.SysProcAttr{} cmd.SysP...
GO
lib/runner/runner.go
hidez8891/gomk
mit
970
58
codeparrot/github-code
c520d55985fc39cb778168cf913143a228e0da5582c74f63c13c1b981847e9fc
package main import ( "errors" "fmt" "github.com/nlopes/slack" ) func getSlackParams() slack.PostMessageParameters { params := slack.NewPostMessageParameters() params.Username = "rotator" params.IconEmoji = ":umbrella:" return params } func doSlackDM(message string, destination string) error { var destID st...
GO
slack.go
uffish/rotator
mit
1,498
68
codeparrot/github-code
cb51488995891276093b9ce4f17862122997238f42c5bd96731fada25e866952
"""data structure module """ import csv # setup csv format csv.register_dialect('result', delimiter='\t', lineterminator='\n') class Track(object): """Tracked point data struct. Public properties: point -- [Point] Tracked/clicked point position label -- [int] Index number time -- [float] Click...
Python
atamatracker/data.py
ptsg/AtamaTracker
mit
2,081
81
codeparrot/github-code
82dbb42a47b29b3f5d02f950174b6d598d805782fec63a4b1f4c0afc1c3dbf89
package assets.game.objects; import org.lwjgl.util.vector.Vector2f; import org.newdawn.slick.opengl.Texture; import engine.GameObject; import engine.Globals; import assets.Loader; public class Projectile extends GameObject { public static final float MISSILE_ACCEL = 0.8f; // missile accel in pix per frame ...
Java
src/main/java/assets/game/objects/Projectile.java
Michionlion/squadron4
mit
3,164
128
codeparrot/github-code
3def7dc712249bbc0822dbf1c3f51b539963428f1d0627c54419fe1fb4e08d5b
/* * Copyright (c) 2010 Rob Hoelz <rob@hoelz.ro> * * 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, ...
C
luabdb_private.h
hoelzro/luabdb
mit
2,245
65
codeparrot/github-code
4397d0c4c9b9719fecca158c5ece4391e9bd389330832a00eb5b4fdc47d61b15
import {codechecks, CodeChecksReport} from "@codechecks/client"; import {BENCHMARK_OPTIONS} from "./constants"; import {BenchmarkOptions} from "./interfaces/Benchmarks"; import {Benchmarks, getBenchmarks} from "./utils/getBenchmarks"; import {getReport} from "./utils/getReport"; const markdownTable = require("markdown-...
TypeScript
tools/benchmarks/src/codeChecksBenchmarks.ts
Romakita/ts-express-decorators
mit
1,221
33
codeparrot/github-code
6b22878729af2e04b4e93cac0ae1abb6d09df0990f3c3731a9fa0d6fef901fea
module OmniAuth module Strategies class Devise include OmniAuth::Strategy option :fields, [:name, :email] def callback_phase return fail!(:invalid_credentials) unless devise_model super end uid { devise_model.uid } info { devise_model.info } def devis...
Ruby
lib/omniauth/strategies/devise.rb
charly/omniauth-devise
mit
848
39
codeparrot/github-code
8c548c22c520ec8c835abe8ea3f5d83a4e982df6537784b51fc525fd5342bbc0
using System; using System.Numerics; class CalculateCombinatorics { static void Main() { /* * Problem 7: Calculate N! / (K! * (N-K)!) * * - In combinatorics, the number of ways to choose k different members out of a group of n different elements * (also know...
C#
01-CSharp-Part1/06-Loops/07-Calculate-Combinatorics/CalculateCombinatorics.cs
petar-p/TelerikAcademy
mit
1,977
67
codeparrot/github-code
69dec27272e8e8266098564f12651ea1e83cf80b3c70e4a8475211b7d5eb5ce6
// Copyright (c) 2015 fjz13. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. #pragma once #include "Resource/Effect/Shader/Parameter/IShaderParameter.h" MEDUSA_BEGIN; class ShaderAttribute :public IShaderParameter { friend class BaseProgra...
C
Medusa/Medusa/Resource/Effect/Shader/Parameter/ShaderAttribute.h
fjz13/Medusa
mit
1,315
40
codeparrot/github-code
e08ab1d8944d8519304a081828d5929b4558982a254d3f956d5cf56144abc75b
// @flow import * as React from 'react' import Input from 'frontend/components/Input' type Props = { name: string, saveDisplayName: Function } type State = { name: string } export default class Name extends React.Component<Props, State> { state = { name: this.props.name } static getDerivedStateFromP...
JavaScript
src/frontend/components/Settings/Name.js
jsonnull/aleamancer
mit
1,069
55
codeparrot/github-code
362d6e7b60cb3caa5828a47a04531774a8f4bbcb197453844108f0a10a9c9789
using System; using System.Net; using System.Threading.Tasks; using AspNetCoreSpa.Server.Entities; using AspNetCoreSpa.Server.Extensions; using AspNetCoreSpa.Server.Repositories.Abstract; using AspNetCoreSpa.Server.ViewModels; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; namespace AspNetCoreSpa...
C#
Server/Controllers/api/ProfileController.cs
crh225/AspNetCoreSpa
mit
4,104
113
codeparrot/github-code
afd205a7ceb99a698fc316e3b24f69a06e57db61600ea109883ac1dbaf61069c
import logging import time import numpy as np from pycqed.measurement import mc_parameter_wrapper import qcodes class Sweep_function(object): ''' sweep_functions class for MeasurementControl(Instrument) ''' def __init__(self, **kw): self.set_kw() def set_kw(self, **kw): ''' ...
Python
pycqed/measurement/sweep_functions.py
QudevETH/PycQED_py3
mit
14,291
410
codeparrot/github-code
45b5ab4201e0b57d753695387676a30e86bed5e5f10a5426c6d0c28b8460d63c
<?php /** * Italian texts * * phpGedView: Genealogy Viewer * Copyright (C) 2002 to 2010 PGV Development Team. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Founda...
PHP
PhpGedView/languages/admin.it.php
fweber1/Annies-Ancestors
mit
39,477
493
codeparrot/github-code
32d08258b243fc3fb5be39859f389ee7343bfd90bab1fa12c0a80acfb7d08e14
#region License // Copyright (c) 2007 James Newton-King // // 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,...
C#
Src/Newtonsoft.Json/Serialization/DefaultContractResolver.cs
ValtoLibraries/Newtonsoft.Json
mit
73,743
1,694
codeparrot/github-code