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
840a11428975e153a2ef01b5ff08519fbdfbe4e68f901069224d634fda1e1e5e
# coding: utf-8 import django_filters from django import forms from django.utils.translation import ugettext_lazy as _ from courses.models import Course from issues.models import Issue from issues.model_issue_status import IssueStatus class IssueFilterStudent(django_filters.FilterSet): is_active = django_filte...
Python
anytask/issues/model_issue_student_filter.py
znick/anytask
mit
2,807
64
codeparrot/github-code
35422c0954126217eb4343dde1a80ca3ad5513ab8a760ee6a97bea4ac2e373c1
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>qcert: Not compatible</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel...
HTML
clean/Linux-x86_64-4.05.0-2.0.6/extra-dev/8.11.dev/qcert/1.0.5.html
coq-bench/coq-bench.github.io
mit
6,614
165
codeparrot/github-code
4728927751290cc72d8b98912de4cc3464f81e6008849c269326c027c6ca50fc
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>unicoq: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css"...
HTML
clean/Linux-x86_64-4.06.1-2.0.5/released/8.9.1/unicoq/1.3+8.7.html
coq-bench/coq-bench.github.io
mit
6,658
166
codeparrot/github-code
9c89a17860e282250c795dec3061fbbf911f6500baba42d0297b73af981727f1
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>iris: 15 m 24 s 🏆</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="s...
HTML
clean/Linux-x86_64-4.08.1-2.0.5/released/8.13.0/iris/3.5.0.html
coq-bench/coq-bench.github.io
mit
52,613
549
codeparrot/github-code
eec1fa3f40c7a8a8eb0ee52e7e6290935944d6ee480075a0ef41d4fd28315555
using System.Linq; using Bloggy.Domain.Entities; using Raven.Abstractions.Indexing; using Raven.Client.Indexes; namespace Bloggy.Domain.Indexes { // ref: http://stackoverflow.com/questions/11900478/ravendb-map-reduce-with-grouping-by-date public class BlogPostArchiveIndex : AbstractIndexCreationTask<B...
C#
src/Bloggy.Domain/Indexes/BlogPostArchiveIndex.cs
tugberkugurlu/Bloggy
mit
1,699
46
codeparrot/github-code
568a40bba6d2a5451d2ab342fce7ced5e7546e5b09e04236d5f109fb47cf03b7
{{extend 'layout.html'}} {{block layer01}} <hr/> <div class="container-fluid"> <div class="row"> <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> <div class="jumbotron" style="background-color:white;border-radius: 5px;"> <div class=" hidden-xs" id="qrcode"></div> <div class=" visible-xs" id="qrcod...
HTML
views/gamectrl/bitecodeqrcodepage_old.html
evadestruco/pandemic2
mit
1,565
66
codeparrot/github-code
c4658fdc583e9d10845fd4e6cd1fb5f3c1de2dc8cf95f05735b30f6c880534b8
from django.db import models import datetime def get_choices(lst): return [(i, i) for i in lst] # # Person # pprint_pan = lambda pan: "%s %s %s" % (pan[:5], pan[5:9], pan[9:]) class Person(models.Model): name = models.CharField(max_length=255, db_index=True) fathers_name = models.CharField(max_length=2...
Python
report/models.py
annual-client-report/Annual-Report
mit
8,050
183
codeparrot/github-code
4a05e068aeca00b8b9eed26cdf6c46715168157410fa744142444d539e039374
using System; using Microsoft.Kinect; using System.Diagnostics; namespace RippleFloorApp.Utilities.KinectGestures.Segments { /// <summary> /// The first part of the swipe down gesture with the right hand /// </summary> public class SwipeDownSegment1 : IRelativeGestureSegment { /// <summary...
C#
Ripple/RippleFloorApp/Utilities/KinectGestures/Segments/SwipeDown/SwipeDownSegment1.cs
Microsoft/kinect-ripple
mit
1,695
39
codeparrot/github-code
0c11f2065410c20dd871239208fc8dcb1b3053d5357a1d0e392af63266060dc4
package edu.washington.cs.figer.ml; import edu.washington.cs.figer.data.Instance; import edu.washington.cs.figer.util.V; import java.util.ArrayList; /** * * @author Xiao Ling * */ public class LRInference extends Inference { /** * */ private static final long serialVersionUID = 505636918...
Java
src/main/java/edu/washington/cs/figer/ml/LRInference.java
infsci2560fa16/full-stack-web-project-usernameoliver
mit
2,410
96
codeparrot/github-code
d6a622e6c34d8af3f434859dcebef7d83c4e23fb9f89f5005d1c81956eaf36fd
// 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. namespace System.Runtime.Serialization { [System.AttributeUsageAttribute((System.AttributeTargets)(12), Inherite...
C#
netstandard/ref/System.Runtime.Serialization.cs
weshaggard/standard
mit
35,348
532
codeparrot/github-code
b129d2ca5a3c4ae9567b530f67957ecc47b2cc69e22538675a512e1b0a7fafc2
package org.apache.jsp; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.jsp.*; import java.net.InetAddress; public final class login_jsp extends org.apache.jasper.runtime.HttpJspBase implements org.apache.jasper.runtime.JspSourceDependent { private static final JspFactory _jspxFactory...
Java
copy/var/tmp/dcm4chee-2.17.3-mysql/server/default/work/jboss.web/localhost/dcm4chee-web3/org/apache/jsp/login_jsp.java
alcir/mibe-dcm4chee
mit
9,975
200
codeparrot/github-code
53f5c4120750a52873c115541355fa2175168dee03152ca37b54c8cff01ad8f7
using System; using System.Xml.Serialization; namespace HoloXPLOR.Data.DataForge { [XmlRoot(ElementName = "TransformationInterpolatorParams")] public partial class TransformationInterpolatorParams { [XmlElement(ElementName = "startOffsetValues")] public Vec3 StartOffsetValues { get; set; } ...
C#
HoloXPLOR.Data/DataForge/AutoGen/TransformationInterpolatorParams.cs
dolkensp/HoloXPLOR
mit
1,444
40
codeparrot/github-code
cb00042cd28770333262cb2def5b97d206ef2a28bb7ffdd104e072748f9308fd
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>containers: 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.7.1+2/containers/8.5.0.html
coq-bench/coq-bench.github.io
mit
7,181
167
codeparrot/github-code
e652b40d284eb60fb6f5ea68f20364c1d50818c9748aebad69494a63b7b6f781
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>pi-agm: Not compatible</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" re...
HTML
clean/Linux-x86_64-4.05.0-2.0.6/released/8.9.0/pi-agm/1.0.0.html
coq-bench/coq-bench.github.io
mit
7,419
174
codeparrot/github-code
38527e038a27128d83bebbdfaab0bda9764bcbc6c397354af5d0fab6b7944611
package city.restaurant.yixin; import java.util.*; public class Menu { public List<Food> menu = new ArrayList<Food>(); Menu(){ menu.add(new Food("Steak", 15.99)); menu.add(new Food("Chicken", 10.99)); menu.add(new Food("Salad", 5.99)); menu.add(new Food("Pizza", 8.99)); } public void remove(String s){...
Java
source/city/restaurant/yixin/Menu.java
yixincai/CS201_FinalProject_SimCity
mit
769
43
codeparrot/github-code
ff85a892488031cd42f097af9a61d5317e49147ef818649cc2267535a9b58964
'use strict'; //dts import {IGlobalSumanObj} from "../../../suman-types/dts/global"; //polyfills const process = require('suman-browser-polyfills/modules/process'); const global = require('suman-browser-polyfills/modules/global'); //core import fs = require('fs'); import path = require('path'); import EE = require('...
TypeScript
src/runner-helpers/on-exit.ts
sumanjs/suman
mit
1,605
52
codeparrot/github-code
bdfe92ade745f15a807bb5e55f7505c8c4d1a7ab719a361d4ddc0a3b6fe7324e
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>traversable-fincontainer: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../...
HTML
clean/Linux-x86_64-4.07.1-2.0.6/released/8.11.1/traversable-fincontainer/8.7.0.html
coq-bench/coq-bench.github.io
mit
7,042
170
codeparrot/github-code
3ebe77dcea3744294747a9cd3e0ab898317bc12c3f0884ed50dcad81927a0c4a
const clone = require('lodash/clone'); const testHelpers = require('@quoin/node-test-helpers'); const BasicTypes = require('./basic-types'); const expect = testHelpers.expect; describe("lib/core/basic-types", () => { it("should export an object", () => { expect(BasicTypes).to.be.an('object'); }); ...
JavaScript
lib/core/basic-types.unit.test.js
WarpWorks/warpjs
mit
1,280
51
codeparrot/github-code
20ab35978307e82e85776d0cffa4f1c8c95deb6a2f3bbedb5946e131e728f074
/* * Squidex Headless CMS * * @license * Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved. */ import { Pipe, PipeTransform } from '@angular/core'; @Pipe({ name: 'sqxKNumber', pure: true, }) export class KNumberPipe implements PipeTransform { public transform(value: number) { ...
TypeScript
frontend/src/app/framework/angular/pipes/numbers.pipes.ts
Squidex/squidex
mit
1,183
55
codeparrot/github-code
9f90885b4ea6c9fa3646e06d501c7e48604362851f985f5e063dff2b6fcbca36
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>coinductive-reals: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstr...
HTML
clean/Linux-x86_64-4.07.1-2.0.6/released/8.13.1/coinductive-reals/8.7.0.html
coq-bench/coq-bench.github.io
mit
7,302
169
codeparrot/github-code
aeebcb2f9ed1ff799877914ab28f3f981b27dfd90a13fcfc7f7aa1f742a120ea
namespace YKToolkit.Sample.ViewModels { using System.Linq; using YKToolkit.Bindings; using YKToolkit.Helpers; public class FourierViewModel : ViewModelBase { private int _dataNum = 512; /// <summary> /// フーリエ変換対象のデータ点数を取得または設定します。 /// </summary> public int D...
C#
YKToolkit.Sample/ViewModels/Helpers/FourierViewModel.cs
YKSoftware/YKToolkit.Controls
mit
2,632
89
codeparrot/github-code
1d8bac5e40eb1ab57031c323f66919b15c8a7f5b6919ff09e811f46249d6168a
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>lesniewski-mereology: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../boot...
HTML
clean/Linux-x86_64-4.12.1-2.0.8/released/8.13.2/lesniewski-mereology/8.9.0.html
coq-bench/coq-bench.github.io
mit
8,129
175
codeparrot/github-code
5f704475dbceb37db924d7166a2a3fd8b983f8a198e57e2dd8369e1fe72d7f63
#ifndef COUNT_VISITS_TO_SUBDOMAINS_HPP #define COUNT_VISITS_TO_SUBDOMAINS_HPP /* https://leetcode.com/problems/subdomain-visit-count/ A website domain like "discuss.leetcode.com" consists of various subdomains. At the top level, we have "com", at the next level, we have "leetcode.com", and at the lowest level, "discus...
C++
src/algorithms/data_structures/hashmap/count_visits_to_subdomains.hpp
iamantony/CppNotes
mit
4,149
111
codeparrot/github-code
f9a511214e8fd7245b368e5c61c63e09794c7233568b31eaf9ee15bac12f7cae
// This file is part of byfly-wifi-auth. For the copyright and license information, please view the LICENSE file that was distributed with this source code. #include <curl/curl.h> int main () { curl_global_init ( CURL_GLOBAL_DEFAULT ); CURL * curl = curl_easy_init (); if ( curl == NULL ) { curl_e...
C
cmake/checks/libcurl/main.c
andrew-aladev/byfly-wifi-auth
mit
1,127
43
codeparrot/github-code
941463a9792c2e401961c63429bb85bed90562b205bfbb1d43e77b9de554cfce
package gk.nickles.ndimes.services; import com.google.inject.Inject; import java.util.LinkedList; import java.util.List; import gk.nickles.ndimes.dataaccess.AttendeeStore; import gk.nickles.ndimes.dataaccess.ExpenseStore; import gk.nickles.ndimes.dataaccess.ParticipantStore; import gk.nickles.ndimes.dataaccess.UserS...
Java
app/src/main/java/gk/nickles/ndimes/services/DebtCalculator.java
Gchorba/NickleAndDimed
mit
2,002
63
codeparrot/github-code
865caad8a860e69bbf647fe71e9c0dbd9a329d6f7d880464e38c3439f195980d
import React from 'react'; import { storiesOf } from '@storybook/react'; import { linkTo, hrefTo } from '@storybook/addon-links'; import LinkTo from '@storybook/addon-links/react'; import { action } from '@storybook/addon-actions'; storiesOf('Addons|Links.Link', module) .add('First', () => <LinkTo story="Second">Go ...
JavaScript
examples/official-storybook/stories/addon-links.stories.js
rhalff/storybook
mit
1,718
47
codeparrot/github-code
89defe3978238755cbb73755525a24d905c25907f3c00d56710a5acea30484cc
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>mathcomp-ssreflect: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootst...
HTML
clean/Linux-x86_64-4.04.2-2.0.5/released/8.8.1/mathcomp-ssreflect/1.6.html
coq-bench/coq-bench.github.io
mit
7,960
172
codeparrot/github-code
28ce96282590fcd92e74ba1db88ca7778c0f49b3cea404a91852c5cfd0543eda
#pragma once /** Utils for driving a WS2812 (WS2812B) RGB LED strips. It's implemented as macros to avoid overhead when passing values, and to enable driving multiple strips at once. To avoid bloating your code, try to reduce the number of invocations - compute color and then send it. [IMPORTANT] Som...
C
projects/color-memory-game/lib/ws2812.h
MightyPork/avr-projects
mit
3,153
99
codeparrot/github-code
74b7e40bf547b3a0c2255041c909454b017580eb22a25002b89b2b4d27136bc1
<?php declare(strict_types=1); /* * This file is part of the Sonata Project package. * * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Sonata\DoctrineORMAdminBundl...
PHP
src/Filter/ClassFilter.php
pulzarraider/SonataDoctrineORMAdminBundle
mit
2,415
94
codeparrot/github-code
1e72201cdde198a6a94f8b9e1b5513cd724313a4dba3439c805fbeb197523dcf
using System; using Conejo.Extensions; using RabbitMQ.Client; namespace Conejo { public class Connection : IDisposable { private readonly Lazy<IConnection> _connection; public Connection(ConnectionConfiguration configuration) { _connection = new Lazy<IConnectio...
C#
src/Conejo/Connection.cs
mikeobrien/Conejo
mit
2,500
71
codeparrot/github-code
69dd9d13319b58d73b872b468239caa8e2668581eb59997ab0a0a4ba46854c16
module TomcatRails class WebApp attr_reader :context, :config def initialize(context, config) @context = context @config = config end def add_rack_filter filter_def = TomcatRails::Tomcat::FilterDef.new filter_def.setFilterName('RackFilter') filter_def.setFilterC...
Ruby
lib/tomcat-rails/web_app.rb
jabley/tomcat-rails
mit
2,743
82
codeparrot/github-code
5ca1d784655ce905c6dbbcbe04feeb86d4008e45db9366f837d763f4295835f1
#ifndef FUNCIONES_H_INCLUDED #define FUNCIONES_H_INCLUDED #include <math.h> #include <vector> #include <stdio.h> #include <stdlib.h> /********************************************************/ /* AABB-triangle overlap test code */ /* by Tomas Akenine-Möller */ /* Func...
C
include/custom_utilities/geometric_operations.h
pooyan-dadvand/SearchLab
mit
8,010
251
codeparrot/github-code
062e0cf0fcfaa20b2a2e944b8b79ae7a29a282b3b249ad087e4329e7ce3c4f26
/* =================================================== */ var treeData = [ { "name": "Top Level", "parent": "null", "children": [ { "name": "Level 2: A", "parent": "Top Level", "children": [ { "name": "Son of A", "parent": "Level 2: A" ...
JavaScript
www/cartesian.js
readycyr/dashahp_caseStudy0
mit
8,416
241
codeparrot/github-code
4e792f4cdae60b2272f04a8da800773c537d9b73b1c36e1df4018cb367fa5cd6
using Contracts; using System; using System.Collections.Generic; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using Terrain; using Color = System.Drawing.Color; namespace TestNoise { class Program { static void Main(string[] args) {...
C#
TestNoise/Program.cs
simonejsing/Prerelease
mit
12,073
316
codeparrot/github-code
40ae1aed13af7ea64ecb956f4775b7dcff19e572a510e48e4856367d31ccc0a0
$("#btnAddButton").on('click', addButton); $("#btnRemoveButton").on('click', removeButton); $('#btnAddTrail').on('click', loadFiles); $(document).ready(function() { }); var counter = 0; function addButton(event) { if(counter >= 10){ alert("Only 10 textboxes are allowed"); return false; } ...
JavaScript
nodejs/public/js/cli-trailbuilder.js
vesapehkonen/jatrailmap
mit
5,082
183
codeparrot/github-code
83449e79b6db4cf64963478208be25a21ee91cde8b5805f00ba7dc4527b33266
(function (window, document, angular, jQuery, undefined) { 'use strict'; angular.module('vissensePlayground') .controller('TrackSectionsDemoCtrl', [ '$window', '$document', '$scope', 'VisSense', function ($window, $document, $scope, VisSense) { $scope.scrollToElement = f...
JavaScript
app/scripts/demos/track-sections-demo-ctrl.js
vissense/vissense-demo
mit
1,788
54
codeparrot/github-code
27f75ea345ed8e9acb27b53e3c32cbcdd51e7be37796ef8cccfe27c63877eae2
<?php namespace AppBundle\Controller; use AppBundle\Form\NodoType; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use AppBundle\Controller\BaseController; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Request; use Sensio\Bundle\FrameworkExtraBundle\Configuration\...
PHP
src/AppBundle/Controller/NodoController.php
christiancannata/velaforfun
mit
3,288
147
codeparrot/github-code
597502881299207496f66c3d496eb8e50d29bb78453de176c191686bb95919fe
# Patchless XMLRPC Service for Django # Kind of hacky, and stolen from Crast on irc.freenode.net:#django # Self documents as well, so if you call it from outside of an XML-RPC Client # it tells you about itself and its methods # # Brendan W. McAdams <brendan.mcadams@thewintergrp.com> # SimpleXMLRPCDispatcher lets us r...
Python
buildfarm/views.py
SolusOS-discontinued/RepoHub
mit
5,488
186
codeparrot/github-code
420e1e9ce158ef5bfdcc575c8ec1e4002f69eb321e294022c43264c33270d3d0
var albumId; var addPictures = function (result) { UserFBAlbums.update({id: albumId}, {$set: {'paging': result.paging}}); for (var i = 0; i < result.data.length; i++) { UserFBAlbums.update({id: albumId}, {$addToSet: {'pictures': result.data[i]}}); } IonLoading.hide(); }; Template.gallery.events(...
JavaScript
client/templates/facebookPhotos/gallery/gallery.js
DavidFishman/dfishman
mit
2,657
87
codeparrot/github-code
bc856e47a23f38cbcc05680ece60b679ef59cf13028e30e63e0dacbf3ffc4c65
local ig = require 'ffi.imgui' local table = require 'ext.table' local class = require 'ext.class' local file = require 'ext.file' local tooltip = require 'hydro.tooltip' local real = require 'hydro.real' -- really 'realparam' local half = require 'cl.obj.half' local toreal, fromreal = half.toreal, half.fromreal -- ...
Lua
hydro/op/selfgrav.lua
thenumbernine/hydro-cl-lua
mit
4,584
152
codeparrot/github-code
ea3f16077575a4a508adc90d704386931461b34bf8248a797607a3db20c1d56c
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using Syste...
C#
LiveProcessInspector/LiveProcessInspector/GeneralScreenView.xaml.cs
lookuper/LiveProcessInspector
mit
1,429
56
codeparrot/github-code
c1369d0ae7ecdb101fe4e6e4aed57b73b1f457a5cf02c614c38482c2dff49ec4
<?php /** * SimplePie * * A PHP-Based RSS and Atom Feed Framework. * Takes the hard work out of managing a complete RSS/Atom solution. * * Copyright (c) 2004-2012, Ryan Parman, Geoffrey Sneddon, Ryan McCue, and contributors * All rights reserved. * * Redistribution and use in source and binary forms, with or w...
PHP
Classes/SimplePie/library/SimplePie/IRI.php
b13/t3ext-newsfeedimport
mit
28,363
1,239
codeparrot/github-code
a8b875f3c71ceacb87483e6c08fb80d50b716d40eba2e924128abec91612bba5
<?php /** * This file is part of the phpkata project. * * (c) Yannick Voyer (http://github.com/yvoyer) */ namespace Star\Kata\Infrastructure\InMemory; use Star\Component\Collection\TypedCollection; use Star\Kata\Domain\Kata; use Star\Kata\Domain\KataRepository; /** * Class KataCollection * * @author Yannick ...
PHP
lib/Infrastructure/InMemory/KataCollection.php
yvoyer/php-kata
mit
1,522
83
codeparrot/github-code
95d83402bb4971f787e554bb2167b583c4a5a372b3c716f1413d613923166df4
using System.Linq; using FluentAssertions; using HiveEngine.Tests.Unit.Extensions; using HiveEngine.Tests.Unit.Utilities; using NUnit.Framework; namespace HiveEngine.Tests.Unit { [TestFixture] class SecondMoveTests { [Test] public void white_second_turns_with_one_available_tile_has_correct_...
C#
HiveEngine.Tests.Unit/SecondMoveTests.cs
robinweston/hive-engine
mit
2,082
61
codeparrot/github-code
f5cf55606fa989a3c88dc446a0e7d9f87cac47dc4c14372cc405009b262ab7f0
var assert = require("chai").assert; var Init = require("truffle-init"); var Migrate = require("truffle-migrate"); var Contracts = require("../lib/contracts"); var Networks = require("../lib/networks"); var path = require("path"); var fs = require("fs"); var TestRPC = require("ethereumjs-testrpc"); var Resolver = requi...
JavaScript
test/migrate.js
prashantpawar/truffle
mit
6,446
168
codeparrot/github-code
3ffc2dee4d57fe52ce2aaee5757b74e57bb294ad6893ae6a22e36a96d4efa73e
var LiveStream = require('../') var SubLevel = require('level-sublevel') var db = SubLevel(require('level-test')()('test-level-live-stream')) var assert = require('assert') var i = 10 var j = 10 var k = 10 LiveStream(db, {tail: true}).on('data', function (data) { console.log(data) if(data.type === 'put') as...
JavaScript
test/index.js
dominictarr/level-live-stream
mit
886
43
codeparrot/github-code
81c5aa22f2d785c0e6dad89add62699bd1c8170a8cb287979ce99652ac42fb73
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { fetchIP } from '../../actions/fetchIP'; import { Snackbar } from 'react-toolbox'; import theme from './Snackbar.css'; class SnackbarComponent extends Component { constructor(props) {...
JavaScript
src/app/components/Snackbar/Snackbar.js
ericvandevprod/redux-d3
mit
1,668
74
codeparrot/github-code
63562ae8e7a8b60c6968b6701b74ea93b53d7fca4402dc94b66e24dc457d5815
// @flow import React, { type Node, Component } from 'react'; import { Image, View, ScrollView, StyleSheet, TouchableHighlight, TouchableOpacity, Dimensions, } from 'react-native'; const reactNativePackage = require('react-native/package.json'); const splitVersion = reactNativePackage.version.split('.')...
JavaScript
ImageSlider.js
PaulBGD/react-native-image-slider
mit
8,352
322
codeparrot/github-code
d204f8bb66046234d044a0928cbb5732a69bd1191bc97eb045eedb2d421f5935
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @emails oncall+relay * @format */ 'use strict'; const RelayClassic = require('../../RelayPublic'); const RelayQuery = require...
JavaScript
packages/react-relay/classic/traversal/__tests__/splitDeferredRelayQueries-test.js
freiksenet/relay
mit
32,018
1,256
codeparrot/github-code
7154be95c29294d486c9b874281e20b9fa6187abcd11283ad6e923999d45e489
// Copyright (c) DotSpatial Team. All rights reserved. // Licensed under the MIT license. See License.txt file in the project root for full license information. using System; using System.Collections.Generic; using System.Data; using System.Data.SQLite; using System.Diagnostics; using System.IO; using System...
C#
Source/DotSpatial.Plugins.SpatiaLite/SpatiaLiteHelper.cs
DotSpatial/DotSpatial
mit
19,146
512
codeparrot/github-code
ce2fa5fba41fc140a81b1f839e82e5b4f09320865c1cdbff4caeb8d40a568ee6
/* * Copyright © 2012 Intel Corporation * * 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, pub...
C
src/glsl/ir_builder.h
mapbox/glsl-optimizer
mit
6,539
220
codeparrot/github-code
f6b7f21ef7be715b76113a97f7135448ec83609ac47896ea26a14d40af635ca6
<?php /* * This file is part of the AdminBundle package. * * (c) Muhammad Surya Ihsanuddin <surya.kejawen@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfonian\Indonesia\AdminBundle\Controller; use Doctr...
PHP
Controller/ProfileController.php
SymfonyId/AdminBundle
mit
7,219
191
codeparrot/github-code
914d14f95d2f7b506f0df3d9c90846c621dc54ec5e09ddd72ae466807eafe0b3
#include "LayerView.h" #include "LayerWindow.h" #include "LayerItem.h" LayerView::LayerView (BRect frame, const char *name, CanvasView *_myView) : BView (frame, name, B_FOLLOW_ALL_SIDES, B_FRAME_EVENTS | B_WILL_DRAW) { fMyView = _myView; fFrame = frame; for (int i = 0; i < MAX_LAYERS; i++) layerItem[i] = NULL; } ...
C++
source/LayerView.cpp
orangejua/Becasso
mit
1,559
66
codeparrot/github-code
0cd1c730a5b0c2670befa6b1d5401c12e14ea586f5b2737e7f0b500743d3b7c1
from django.core.management.base import BaseCommand, CommandError from ship_data.models import GpggaGpsFix import datetime from main import utils import csv import os from django.db.models import Q import glob from main.management.commands import findgpsgaps gps_bridge_working_intervals = None # This file is part of ...
Python
ScienceCruiseDataManagement/main/management/commands/exportgpstracks.py
cpina/science-cruise-data-management
mit
8,461
210
codeparrot/github-code
73ec5f8ac2c532d392e26d57cad78d408971a0576acd99b4b4851e5121dfe8ac
using System.Collections.ObjectModel; using System.ComponentModel; namespace FG5eParserModels.Utility_Modules { public class ReferenceManual : INotifyPropertyChanged { private string ChapterName { get; set; } public ObservableCollection<string> SubchapterNameList { get; set; } public O...
C#
FG5eParserModels/Utility Modules/ReferenceManual.cs
kay9911/FG5EParser
mit
2,848
107
codeparrot/github-code
5470cff0d01d9d7f64f36ddda41024ee21d445fa62c023c37dd4fc3c1d9bf4e8
const expect = require('chai').expect const includeMimeType = require('../src/file').includeMimeType const findInFile = require('../src/file').findInFile describe('file : includeMimeType', () => { it('MIME_TYPES_IGNORED contain this mime type', () => { expect(includeMimeType('test/directoryTest/file2.png')).to....
JavaScript
test/file.spec.js
arncet/position-in-file
mit
1,224
45
codeparrot/github-code
83eef4d1a4ee0949e921c6c4ab6cb9ee05bf9f65fb9e96879892222d8070cacf
var fs = require('fs'); var assert = require('assert'); var JSZip = require('jszip'); var path = require('path') var compareWorkbooks = require('./util/compareworkbooks.js') var excelbuilder = require('..'); describe('It generates a simple workbook', function () { it('generates a ZIP file we can save', function (...
JavaScript
test/na.js
protobi/msexcel-builder
mit
1,273
47
codeparrot/github-code
8a23564f463e02cfd2085ad3b26c91fe1377f291f3d2c4ff67f55d3c4e322af5
<?php /** * Created by PhpStorm. * User: juan2ramos * Date: 13/08/15 * Time: 23:43 */ class Code_model extends CI_Model { function __construct() { parent::__construct(); $this->load->database(); } function getCodes() { $query = $this->db->get('codes'); return $query...
PHP
application/models/Code_model.php
juan2ramos/panama
mit
951
45
codeparrot/github-code
72e8556f02fea67054d3492f5815a14479dc22c6d84576754b06b01d07c6e30f
<?php class Empresa extends DataMapper { var $db_params = 'default'; var $table = 'empresa'; public $model = 'empresa'; var $has_one = array('atividade','uf'); var $has_many = array('setor','historico','contato'); var $CI; var $validation = array( 'nome' => array( 'rules' => array( 'required', 'tri...
PHP
application/models/macaetec/empresa.php
coutinho2004/macaetec
mit
1,033
40
codeparrot/github-code
71e257486edceac9f770aab1fae8b7d323bb10a113a696103ee82a3a56c12b75
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Module crap_json</title> <link rel="stylesheet" type="text/css" href="stylesheet.css" title="EDoc"> </head> <body bgcolor="white"> <div class="navbar"><a name="#navbar...
HTML
doc/crap_json.html
StoneCypher/crap_json
mit
12,612
242
codeparrot/github-code
d7542803e1daf9234a2159d072825896d77b219f0e5804e6c8f2dedaa7252d6a
<?php class Default_ErrorController extends Zend_Controller_Action { public function errorAction() { $errors = $this->_getParam('error_handler'); if (!$errors || !$errors instanceof ArrayObject) { $this->view->message = 'You have reached the error page'; return; ...
PHP
application/modules/default/controllers/ErrorController.php
scottyadean/socialWorks
mit
1,879
57
codeparrot/github-code
f1a62750d28b378601a3c3de9f1d6f8cbcc4ae1e36ae6353bf07eab907c2351d
/* * Datagrid.js */ function dg_send(url, grid, form, page, tamano, orderby, orderdirection) { var oForm = $("#"+form); var oGrid = $("#"+grid); var oLoader = $("#loader_"+grid); $('#Form_'+grid+'_page').val(page); $('#Form_'+grid+'_tamano').val(tamano); $('#Form_'+grid+'_orderby').val(orderby); $('#Form_'+...
JavaScript
src/Admin/DashboardBundle/Resources/public/js/components/datagrid.js
wiccano/Symfony2-SoftwareFreedomDay2012
mit
2,131
81
codeparrot/github-code
8e5298b70901aedd7d2e23ecb9800d759563f18b63bef8d21efa685194f5ed70
"use strict"; exports.buttonEvent = function(id) { return function(cb) { return function() { var el = document.getElementById(id); el.addEventListener('click', function(ev) { cb(); }); } }; }; exports.keydownEvent = function(el) { return function(cb) { return function() { ...
JavaScript
src/Genetics/Browser/UI.js
chfi/purescript-genetics-browser
mit
2,967
126
codeparrot/github-code
009061e5aa8acfb87231ce051bb0bbc73372d9d40e350374a168703a273dfcd0
package com.wordsaretoys.quencher.common; import android.app.Activity; import android.content.res.Resources; import android.os.Bundle; import android.preference.Preference; import android.preference.Preference.OnPreferenceChangeListener; import android.preference.PreferenceFragment; import android.view.View; import an...
Java
app/src/main/java/com/wordsaretoys/quencher/common/SettingsActivity.java
wordsaretoys/quencher
mit
2,489
94
codeparrot/github-code
fa0270d8f06b2225dad64a2a60ba541d0acc8f9edfd1005f3e3b2e85c76899b1
from yaml import load from os import environ from os.path import join, isfile from ..module_ultra_repo import ModuleUltraRepo from ..module_ultra_config import ModuleUltraConfig class RepoDaemonConfig: """Represent a MU repo to the MU daemon.""" def __init__(self, **kwargs): self.repo_name = kwargs...
Python
moduleultra/daemon/config.py
MetaSUB/ModuleUltra
mit
3,078
91
codeparrot/github-code
624b2b4fe4ed528aebdc91b99731500748c38ec3b96f8576d676f584b729ece6
import Express from 'express'; import compression from 'compression'; import mongoose from 'mongoose'; import bodyParser from 'body-parser'; import path from 'path'; import morgan from 'morgan'; //import jwt from 'jsonwebtoken'; import IntlWrapper from '../client/modules/Intl/IntlWrapper'; // Webpack Requirements imp...
JavaScript
server/server.js
jyothigundeti/sample-app
mit
6,574
208
codeparrot/github-code
70cd1b82e933ebf9fabf80548296b7885b777cc155372c5604e0bfd146049369
using System; using System.IO; using Serenity.IO; #if !COREFX using System.Drawing; using System.Drawing.Imaging; #endif namespace Serenity.Web { public class UploadProcessor { #if !COREFX public UploadProcessor() { ThumbBackColor = Color.Empty; } ...
C#
Serenity.Web/Upload/UploadProcessor.cs
dfaruque/Serenity
mit
8,411
224
codeparrot/github-code
a605e766e49e0acf975f24647ef2dfb0003ac4040880866285e212c108f16699
// // TBTableViewController.h // Pods // // Created by Tanner on 2/11/16. // // #import <UIKit/UIKit.h> typedef void(^VoidBlock)(); NS_ASSUME_NONNULL_BEGIN /// This class functions as its table view's delegate and data source. Changing either of those will /// defeat the purpose of this class and render most of t...
C
Example/YakKit/TBTableViewController.h
ThePantsThief/YakKit
mit
2,829
53
codeparrot/github-code
aa3d4ad1bf90f0f3698953366d6bf37d0df8942dfb92ce505d008c65dca0ad8b
package org.whiskeysierra.process; import com.google.common.io.ByteSource; import java.io.IOException; import java.nio.file.Path; import java.util.Map; // TODO specify IOException as exception of choice?! public interface ManagedProcess { // TODO find better name ManagedProcess setExecutable(Path executable...
Java
src/main/java/org/whiskeysierra/process/ManagedProcess.java
whiskeysierra/primal
mit
1,143
43
codeparrot/github-code
20e12481a165d9c78dc5f2def74bfc939ee3964943a518be097843d1ebb5985c
module.exports = flatten([ require("./base/dualfilter"), require("./base/filter"), require("./base/mirrorBlocks"), require("./base/overlayMask"), require("./base/split"), require("./base/splitMask"), require("./colourset/lerp"), require("./colourset/distinct"), require("./colourset/chunks"), requir...
JavaScript
parts/all.js
chris-j-major/unique-wallpaper
mit
1,651
73
codeparrot/github-code
cc369e201dbe625f6b2a2fae3d76805a8636627751adf6c974bcb8c1063e806c
using System; namespace Mail.Library.Configuration { /// <summary> /// Section /// </summary> [AttributeUsage(AttributeTargets.Class)] public class IniSectionAttribute : Attribute { /// <summary> /// Section name. /// Valid characters: alphabet, numeric, underscore, space. /// </summary> public string...
C#
Mail.Library/Configuration/IniSectionAttribute.cs
fakhrulhilal/MailClient
mit
783
33
codeparrot/github-code
08fd69acd216b41b233087b621e1a13130809a30c19856824ab34cc503d9985c
# Copyright (c) 2014 Sean Vig # Copyright (c) 2014, 2019 zordsdavini # Copyright (c) 2014 Alexandr Kriptonov # Copyright (c) 2014 Tycho Andersen # # 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 Softw...
Python
libqtile/widget/gmail_checker.py
ramnes/qtile
mit
2,825
65
codeparrot/github-code
bfc209b284ddd623bb1ced4877f82685f084ee5192cda4ff4131a93ce1962121
using CharacterMap.Core; using CharacterMap.Models; using System; using System.Collections.Generic; using Windows.UI.Xaml.Controls; namespace CharacterMap.Provider { public class VBDevProvider : DevProviderBase { public VBDevProvider(CharacterRenderingOptions r, Character c) : base(r, c) { ...
C#
CharacterMap/CharacterMap/Provider/VBDevProvider.cs
EdiWang/UWP-CharacterMap
mit
2,091
50
codeparrot/github-code
8a16359a4dc041677e132b56fe967b9b19069e3bd5b554692b8b5f1a9d11fa3f
function Rook(loc, isWhite, asset){ Piece.call(this, loc, isWhite, asset); this.name = "Rook"; } Rook.prototype = Object.create(Piece.prototype); Rook.prototype.constructor = Rook; Rook.prototype.getValidMoveSet = function(board) { var result = []; var currentX = this.loc.x+1; var currentY = this.loc.y; v...
JavaScript
webapp/cast-receiver/javascript/rook.js
xLeachimx/ChessCast
mit
2,168
73
codeparrot/github-code
7a628238dc216dc71ab198f2ee85a00758a799c1533c190e3fd9083354d264b9
<?php /** * This file is part of the Taco Projects. * * Copyright (c) 2004, 2013 Martin Takáč (http://martin.takac.name) * * For the full copyright and license information, please view * the file LICENCE that was distributed with this source code. * * PHP version 5.3 * * @author Martin Takáč (martin@takac.na...
PHP
source/main/tasks/taco/TacoAutoloadTask.php
tacoberu/phing-tasks
mit
2,051
110
codeparrot/github-code
bd6caf51600e08fa2dc7413357b7f7d48e59ab600ecffa1e83aa9fbd1565d176
// 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 <QApplication> #include "paymentserver.h" #include "guiconstants.h" #include "ui_interface.h" #include "util.h" #i...
C++
src/qt/paymentserver.cpp
PAPAFRANCESCOCoin/PAPAFRANCESCOCoin
mit
4,523
163
codeparrot/github-code
9eb4e51793426680e3d88bfa83a72e9e83902375e65dd6ab7c20451d70483ae6
var flow = require('js-flow'), assert = require('assert'), tubes = require('evo-tubes'); describe('evo-states', function () { var TIMEOUT = 60000; var sandbox; beforeEach(function (done) { this.timeout(TIMEOUT); (sandbox = new tubes.Sandbox()) .add(new tubes.Environmen...
JavaScript
test/states-int-test.js
evo-cloud/states
mit
1,527
49
codeparrot/github-code
99a0e1f64f806253f310d53594efbdfaffe1fd08a9a04e1b2e662b92a1dab6e9
using System; using NetRuntimeSystem = System; using System.ComponentModel; using NetOffice.Attributes; namespace NetOffice.OutlookApi { /// <summary> /// DispatchInterface _DocumentItem /// SupportByVersion Outlook, 9,10,11,12,14,15,16 /// </summary> [SupportByVersion("Outlook", 9,10,11,12,14,15,16)] [EntityT...
C#
Source/Outlook/DispatchInterfaces/_DocumentItem.cs
NetOfficeFw/NetOffice
mit
25,895
821
codeparrot/github-code
b6d94331deb35ac6fb7f24e203a9b2be6aa1a0cc5a2dc8cf17f8af314881d2e6
import { Injectable, ViewContainerRef, ComponentFactoryResolver, Output, EventEmitter } from '@angular/core'; import { Util } from './util/util'; @Injectable() export class SharedService { _util: Util; @Output() sendmsg: EventEmitter<any> = new EventEmitter(); constructor(private _resolver: ComponentFactoryRe...
TypeScript
src/client/app/shared/shared.service.ts
GoEngin/GoEngin
mit
1,752
67
codeparrot/github-code
90bb4295bddd57515280362b80c82db31cf2250ce66d535a73aa132755117ae4
const _ = require("lodash"); const Path = require("path-parser"); const { URL } = require("url"); const mongoose = require("mongoose"); const requireSignIn = require("../middlewares/requireSignIn"); const requireCredits = require("../middlewares/requireCredits"); const Mailer = require("../services/Mailer"); const surv...
JavaScript
server/routes/surveyRoutes.js
ibramos/The-Feed
mit
2,308
81
codeparrot/github-code
ac84f705bd88a35106c861a3c0c7424da7f24e7e67dda5b67715abd91f54d913
#ifndef KALAH_BOARD_H #define KALAH_BOARD_H #include <vector> #include "houseContainer.hpp" #include "storeContainer.hpp" using namespace std; class kalahBoard { public: kalahBoard(unsigned int numberOfHousesIn); void fillHouses(vector<unsigned int> homeHouseInitialSeedCount, vector<unsigned int> awayHou...
C++
src/kalahBoard.hpp
chadvoegele/kalah-ncurses
mit
590
31
codeparrot/github-code
6e58d8e940027de9a55e2b694f498a045e19289ec200547e9dfcac20f3cde57f
package interpreter import ( "fmt" "github.com/Azer0s/Hummus/parser" ) // NodeType a variable type type NodeType uint8 // Node a variable node type Node struct { Value interface{} NodeType NodeType } const ( // NODETYPE_INT int variable type NODETYPE_INT NodeType = 0 // NODETYPE_FLOAT float variable type ...
GO
interpreter/node.go
Azer0s/LBox
mit
2,670
116
codeparrot/github-code
58c228c95f3f0bf51c3b7fab9af7c7461167d88815096e7e5988ad8f44cd8aaa
// Geometry building functions import Vector from '../vector'; import Geo from '../geo'; import earcut from 'earcut'; var Builders; export default Builders = {}; Builders.debug = false; Builders.tile_bounds = [ { x: 0, y: 0}, { x: Geo.tile_scale, y: -Geo.tile_scale } // TODO: correct for flipped y-axis? ];...
JavaScript
src/styles/builders.js
rosamcgee/tangram
mit
23,298
657
codeparrot/github-code
c4a46907a8e2179b49ec6be9380d60b0a1cdec2745b7b59b0d50c832b49bf943
<!DOCTYPE html> <html > <head> <title>Impexui - layout</title> <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> <meta http-equiv="content-type" content="text/html;charset=utf-8"> <link rel="stylesheet" type="text/css" href="themes/default.css"/> <link rel="stylesheet" type="text/css" href="lib/fo...
HTML
examples/index.html
MrSoya/impex
mit
6,600
186
codeparrot/github-code
3257ecc00573b78f48152f3bef5d3a7932f51c876887b88565127b79eaa67c21
#ifndef __VIENNA_RNA_PACKAGE_OLD_EPARS__ #define __VIENNA_RNA_PACKAGE_OLD_EPARS__ /** \file 1.8.4_epars.h \brief Free energy parameters for parameter file conversion This file contains the free energy parameters used in ViennaRNAPackage 1.8.4. They are summarized in: D.H.Mathews, J. Sabina, M. ZUk...
C
lib/ViennaRNA-2.1.9/lib/1.8.4_epars.h
lauringlab/CodonShuffle
mit
14,716
367
codeparrot/github-code
323435b43002c6e25c0b3e3703944075faf583a6cb341e152b2a197a9f70aa0b
package com.fxexperience.javafx.animation; import javafx.animation.KeyFrame; import javafx.animation.KeyValue; import javafx.animation.TimelineBuilder; import javafx.scene.Node; import javafx.util.Duration; /** * Animate a bounce in right big effect on a node * * Port of BounceInRightBig from Animate.css http://d...
Java
Botcoin-javafx/src/com/fxexperience/javafx/animation/BounceInRightTransition.java
adv0r/botcoin
mit
2,122
68
codeparrot/github-code
9cedfae91b86eeaa86b63592d8b4ef27a7adf217a007455d5195f5130bd41fcb
// // MonsterManager.cpp // LuoBoGuard // // Created by jwill on 16/2/26. // // #include "MonsterManager.hpp" #include "PointConvertCtrl.hpp" MonsterManager* MonsterManager::s_sharedMonsterManager = nullptr; MonsterManager* MonsterManager::getInstance() { if (s_sharedMonsterManager == nullptr) { s...
C++
Classes/MonsterManager.cpp
cjddny/cocos2d_guardCarrot
mit
3,430
111
codeparrot/github-code
15ea20e82d20c7674e84a78a9602e586eeb45a72dbbaa0337052943dd7dacd7f
//initialize Settings. zsi.init({ baseURL : base_url ,errorUpdateURL : base_url + "common/errors_update" ,sqlConsoleName : "runsql" ,excludeAjaxWatch : ["checkDataExist","employe_search_json"] }); //check cookie and load user menus. var userInfo = readCookie("userinfo"); if(u...
JavaScript
assets/js/jsdb/zsi_init.js
smager/app-ci01
mit
2,098
68
codeparrot/github-code
d475435b4eef22fc1a4903d44f54e54bb321638c560bbfc22d228f5d43b6b6d7
// Copyright (c) 2013 Guillaume Lebur. All rights reserved. // // This software may be modified and distributed under the terms // of the MIT license. See the LICENSE file for details. using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; namespace Ninteract.Engine { ...
C#
Ninteract.Engine/MethodFormatter.cs
infosaurus/NInteract
mit
3,897
101
codeparrot/github-code
1330cd36933732fe4658c70750eec4b33fb4064304b5f996836cc1ae42736dc8
var recLength = 0, recBuffers = [], sampleRate; this.onmessage = function(e){ switch(e.data.command){ case 'init': init(e.data.config); break; case 'record': record(e.data.buffer); break; case 'exportWAV': exportWAV(e.data.type); break; case 'getBuffer': ...
JavaScript
client/scripts/app/recorder/recorderWorker.js
dgaspari/tonetrainer
mit
3,005
127
codeparrot/github-code
22b5945e73adde528daf78bb47e22aec8efcb411d9772c2398bc588183eb9aab
function dialogoCV() { var dialogo = getDiv(); var actualizarDialogoPsiquica = function() { var titulo; var contenido; var cvLibres = personaje_actual.getHabilidadDePersonaje(HB_CV).valorFinalActual() - personaje_actual.getCVGastados(); dialogo.empty(); /** *...
JavaScript
js/view/Psiquica_vw.js
wwhere/animaunico
mit
6,860
170
codeparrot/github-code
42e03d1023ef6957d59fdba04ac9ec2572b7d91c7f18b01b13ab0f7e1a44e90f
/* ** GENEREATED FILE - DO NOT MODIFY ** */ package com.wilutions.mslib.outlook; import com.wilutions.com.*; /** * OlFormatInteger. * */ @SuppressWarnings("all") @CoInterface(guid="{00000000-0000-0000-0000-000000000000}") public class OlFormatInteger implements ComEnum { static boolean __typelib__load...
Java
java/joa/src-gen/com/wilutions/mslib/outlook/OlFormatInteger.java
wolfgangimig/joa
mit
2,302
61
codeparrot/github-code
89f93d58d03004204381293eca45000c953ad1926de5aaaee020027b764d043a
//-------------------------------------------------------------------------------------- // File: Game.cpp // // Developer unit test for DirectXTK GamePad // // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // // http://go.microsoft.com/fwlink/?LinkId=248929 //---------------------------------...
C++
GamePadTest/Game.cpp
walbourn/directxtktest
mit
25,950
727
codeparrot/github-code
f1e6557d818b9a6aa01dea41ec50d727f8d34a948398ed2b412e33b9a3e88348
package session import ( "crypto/sha256" "fmt" "github.com/fasthttp/session/v2" "github.com/authelia/authelia/v4/internal/utils" ) // EncryptingSerializer a serializer encrypting the data with AES-GCM with 256-bit keys. type EncryptingSerializer struct { key [32]byte } // NewEncryptingSerializer return new en...
GO
internal/session/encrypting_serializer.go
clems4ever/two-factor-auth-server
mit
1,265
59
codeparrot/github-code
b98be4e648da1ca5b2aa1caa685c8e2a9d0acef3dc65f3f3c469c026894fd704
package parser import ( "io" "time" "github.com/lestrrat/go-lex" "github.com/lestrrat/go-xslate/internal/frame" "github.com/lestrrat/go-xslate/node" ) const ( ItemError lex.ItemType = lex.ItemDefaultMax + 1 + iota ItemEOF ItemRawString ItemComment ItemNumber ItemComplex ItemChar ItemSpace ItemTagStart ...
GO
parser/interface.go
lestrrat/go-xslate
mit
3,503
145
codeparrot/github-code
ac20c9f7c1d91ccb11238729dc2dab0cdbd65288b80e6bf41ddd64ca36e70027
using System; using System.Collections.Generic; using System.Linq; using System.Text; //25. Write a program that extracts from given HTML file its title (if available), // and its body text without the HTML tags. Example: namespace _25_ExtractHTML { class ExtractHTML { static void Main() {...
C#
CSharp programing part 2/8.Strings-and-Text-Processing/25_ExtractHTML/ExtractHTML.cs
razsilev/TelerikAcademy_Homework
mit
2,046
79
codeparrot/github-code
434bbbb9d8d7f623fbbf35115d132f6b048aafa1671d482678f9a77df46716fa
import React, {Component, PropTypes} from 'react'; import {View, ListView, Image, CameraRoll, TouchableHighlight, StyleSheet} from 'react-native'; import MessageDao from '../../dao/MessageDao'; import LoadingSpinner from '../common/LoadingSpinner'; import Icon from 'react-native-vector-icons/MaterialIcons'; import Medi...
JavaScript
app/components/media/MediaGallery.js
ramsundark5/stitchchat
mit
4,056
129
codeparrot/github-code
7d87401ece268d00f7e964546c085accf7c21e52a9249c4871d089b8e5b5d438
<?php /** * Dibs A/S * Dibs Payment Extension * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * ...
PHP
src/WP_Ecommerce_4.1.8/dibspw.php
DIBS-Payment-Services/Ecommerce
mit
36,309
922
codeparrot/github-code
32aec0e78453370f92c04b395c505f3837480540dbc194bfc5c52c6e1ed73332
<?php namespace Rice\DeckKeeperBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; use Rice\DeckKeeperBundle\Entity\CardSet; use Rice\DeckKeeperBundle\Form\CardSetType; class CardSetController extends Controller { /** *...
PHP
src/Rice/DeckKeeperBundle/Controller/CardSetController.php
cystbear/rice
mit
1,297
55
codeparrot/github-code
834776cf54361b8dc121000289d803c03bc66a13c7ed44da94b0d2bc450089a0
{% extends "base.html" %} {% load staticfiles %} {% load analysis_tags %} {% block content %} <div class="flex-nav"> {% include "analysis/pages/nav-sidebar.html" %} <section class="flex-nav__body cuckoo-analysis" tabindex="0"> <header class="page-header cuckoo-analysis__header"> ...
HTML
cuckoo/web/templates/analysis/pages/static/index.html
cuckoobox/cuckoo
mit
3,574
69
codeparrot/github-code