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 |
|---|---|---|---|---|---|---|---|---|
75e3d486bf3dabdfe46961b2fe659cf3ea73a206982a13213a983ea96ae4f02a | package com.github.gdefacci.raz
import shapeless._
import shapeless.ops.hlist.Tupler
trait ToPathDecoder[H, T, S <: PathPosition, E <: PathPosition] {
def apply(h: H): PathDecoder[T, S, E]
}
object ToPathDecoder {
implicit def htuple[H <: HList, HR <: HList, TUP, S <: PathPosition, E <: PathPosition](
imp... | Scala | raz/src/main/scala/com/github/gdefacci/raz/ToPathDecoder.scala | gdefacci/raz | mit | 1,318 | 40 | codeparrot/github-code |
629a5db1c1c9533fce5d8ff203dc8df6c2a921c0b64aa096063965f9967cff05 | #include "stdafx.h"
#include "Square.h"
#include "Piece.h"
// Constructors
Square::Square(Pos::XY pos, Color c)
: piece(nullptr), originalColor(c)
{
setColor(c);
setPos(pos);
}
Square::~Square()
{
delete piece;
piece = nullptr;
}
// Setter methods
void Square::setPiece(Piece* p)
{
piece = p;
}
void Squa... | C++ | ChessLibrary/Square.cpp | jimmy-loyola/Chess | mit | 996 | 79 | codeparrot/github-code |
00b7e59aa84bf5adab2e658cb96245640fddd5a65e2107933b3647492fc9c457 | #ifndef HYDRONETMODEL_H
#define HYDRONETMODEL_H
#include <datastr/GeographicMap.h>
#include <datastr/ScaledGeographicMap.h>
#include <datastr/TemporalGeographicMap.h>
#include <datastr/PartialConfidenceTemporalGeographicMap.h>
#include <datastr/TimeSeries.h>
#include <datastr/DividedRange.h>
#include <tools/hydro/DInf... | C | SJHydroNetModel.h | jrising/hydronet | mit | 12,044 | 295 | codeparrot/github-code |
bd8787ab6244a413e64a2bcb0cdb9cd63193a78773993a7277389e07b9bcfa89 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* Description of AltaTipoGasto_model
*
* @author sebastian.ituarte@gmail.com
*/
class AltaTipoGasto_model extends CI_Model {
private $table = 'tipos_gasto';
function __construct() {
parent::__construct();
$this-... | PHP | application/models/AltaTipoGasto_model.php | sebajax/sis_maletas | mit | 774 | 31 | codeparrot/github-code |
fc5e04fa2297ba7905a7fb21660c299b940cca334c4a78700fd3a747c60883c0 | import { Component } from '@angular/core';
import { NavController, NavParams } from 'ionic-angular';
@Component({
selector: 'page-list',
templateUrl: 'list.html'
})
export class ListPage {
selectedItem: any;
icons: string[];
items: Array<{title: string, note: string, icon: string}>;
constructor(public nav... | TypeScript | src/pages/list/list.ts | pymalch/news | mit | 1,094 | 40 | codeparrot/github-code |
3c6b00edb432277e069358f7ca4fd001477a83585c9f183b659074a4857b5c2b | namespace MaterialSkin.Controls
{
using System;
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Windows.Forms;
public class MaterialCard : Panel, IMaterialControl
{
[Browsable(false)]
public int Depth { get; set; }
[B... | C# | MaterialSkin/Controls/MaterialCard.cs | Stefangansevles/RemindMe | mit | 4,035 | 118 | codeparrot/github-code |
37adb92371c0da5bf519990c84e8f5d58ceabf89e528df4d44658fbfad382afc | <?php
namespace Att\M2X;
class HttpRequest {
/**
* Holds the resource handle for the CURL request
*
* @var resource
*/
protected $request;
/**
* List of headers to be sent
*
* @var array
*/
protected $headers = array();
/**
* Performs a GET request
*
* @param string $url
* @param array $params
* @... | PHP | src/HttpRequest.php | attm2x/m2x-php | mit | 3,911 | 177 | codeparrot/github-code |
6c5247deb2d5d857b0302965085839942f41870750bc53e124f144ee7c3e3ced | package com.oltruong.teamag.rest;
import com.oltruong.teamag.interfaces.AdminChecked;
import com.oltruong.teamag.interfaces.SecurityChecked;
import com.oltruong.teamag.model.Task;
import com.oltruong.teamag.service.AbstractService;
import com.oltruong.teamag.service.MemberService;
import com.oltruong.teamag.service.Ta... | Java | src/main/java/com/oltruong/teamag/rest/TaskEndPoint.java | oltruong/teamag | mit | 3,195 | 113 | codeparrot/github-code |
5e977bc88e6fd6cf57c90e9faafaf3de025f2ea0d81742eb5c11474799cb0a2a | /**
* Function: CatmullClarkSubdivisionOneIteration
* Description: Runs one iteration of Catmull-Clark subdivision on a body.
* Parameters:
* body {Body} the body
* Returns:
* {Body} the result
*/
JSM.CatmullClarkSubdivisionOneIteration = function (body)
{
function AddOriginalVertices (body, result, adjacencyInfo)
{
... | JavaScript | src/extras/subdivision.js | kovacsv/JSModeler | mit | 6,220 | 189 | codeparrot/github-code |
e58024949643c63a0785912c1aa15c63ba1cf2728d1cf78187cbef69ca3d5d03 | <?php
/* FOSUserBundle:Group:show.html.twig */
class __TwigTemplate_5b3c7a4400b9775078dd83a1211581ea30c9532a5605f1648e2319f5ebe43aad extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 1
$this->parent = $this->loadTemplate("FO... | PHP | var/cache/prod/twig/16/16ed61b195336d458bf7c75901016e1ea43e95c4bc17254f2eab5e2ec35fd40d.php | deileo/Autoservisas_Kursinis | mit | 1,532 | 55 | codeparrot/github-code |
6e0327f8f18298a7780ba9082f2f0f8845a8a4d756824a439477c78f7b0a4f69 | //
// EditLineReader is a LineReader that uses the libedit library to read
// input from the user.
//
// Part of ccons, the interactive console for the C programming language.
//
// Copyright (c) 2009 Alexei Svitkine. This file is distributed under the
// terms of MIT Open Source License. See file LICENSE for details.
... | C++ | EditLineReader.cpp | AugustusHuang/ccons | mit | 1,995 | 96 | codeparrot/github-code |
f2ceb3bd5bee7853016e26d66e454f9fb9097fd6df72d3fa41233091e5effbca | using System;
using System.Collections.Generic;
using System.Net;
using System.Net.Http;
using System.Net.Sockets;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
using JetBrains.Annotations;
using Squirrel;
using Newtonsoft.Json;
using Wox.Core.Resource;
using Wox.Infrastructure;
using Wox.Infr... | C# | Wox.Core/Updater.cs | lances101/Wox | mit | 4,320 | 120 | codeparrot/github-code |
cb84de520a943c2f82e60053f85618d833b9a2ccf79b822e65ff2cff7aa04c43 | \hypertarget{http__header__cache__directive__base_8h_source}{\section{http\-\_\-header\-\_\-cache\-\_\-directive\-\_\-base.\-h}
}
\begin{DoxyCode}
00001
00007 \textcolor{preprocessor}{#ifndef HTTP\_HEADER\_CACHE\_DIRECTIVE\_BASE\_H\_20130107210619546}
00008 \textcolor{preprocessor}{}\textcolor{preprocessor}{#define H... | TeX | doc/latex/http__header__cache__directive__base_8h_source.tex | hiroyuki-seki/hryky-codebase | mit | 8,503 | 146 | codeparrot/github-code |
5556ef47718139dca714f558c080936303f5eccff84846ede8a338d205176674 | require 'erb'
require File.expand_path('../../../spec_helper', __FILE__)
describe "ERB#result" do
it "return the result of compiled ruby code" do
input = <<'END'
<ul>
<% for item in list %>
<li><%= item %>
<% end %>
</ul>
END
expected = <<'END'
<ul>
<li>AAA
<li>BBB
<li>CCC
</ul>
END
erb = E... | Ruby | library/erb/result_spec.rb | JuanitoFatas/rubyspec | mit | 2,015 | 103 | codeparrot/github-code |
270ef1c612a2f497f3b8edd3e85b88f568030df6759b484e3a6bf4924eb9faf3 | var PORT = 3113;
var fsapi = require('../lib/fsapi')({
developerKey: 'NNNN-NNNN-NNNN-NNNN-NNNN-NNNN-NNNN-NNNN',
userAgent: "node-fsapi-example-express/0.1.0",
referenceHost: "https://sandbox.familysearch.org",
callbackURL: "http://127.0.0.1:"+PORT+"/auth/familysearch/callback"
});
var express = require('expre... | JavaScript | example/example.js | redbugz/node-fsapi | mit | 3,202 | 72 | codeparrot/github-code |
817d2af325c8255128b0d9f3bc0da986101fe2057399d296988b2816d79ea848 | 'use strict';
const _ = require('lodash');
const Influx = require('..');
const client = new Influx('http://127.0.0.1:8086/mydb');
// select code,spdy,type from ajax where spdy = '0' and time >= now() - 3h and use <= 300 limit 2
{
const reader = client.query('http');
reader.addField('code', 'spdy', 'type');
reade... | JavaScript | examples/read-points.js | vicanso/influxdb-nodejs | mit | 1,222 | 52 | codeparrot/github-code |
2d28876bd49b7e621d499f6003692656dfa12eacedd62d568e3164b10b2e6a83 | //
// gpsClass.cpp
//
//
// Created by 岩井聡 on 2014/07/28.
//
//
#include "gpsClass.h"
#include "Arduino.h"
void gpsClass::auto_detect_baud_rate(void){
const unsigned int bauds[] = {
57600, 38400, 28800, 14400, 9600, 4800 };
Serial.print("auto detect... ");
for(int i=0; i<(sizeof(bau... | C++ | gpsClass.cpp | stihahi/gpsClass | mit | 8,040 | 306 | codeparrot/github-code |
4229c28d261254254261231c1db00235b23009cb523f947fa6de7938a776dd82 |
var ids=[];
var oldid=0;
var ClassForModel=function(){
};
function loader()
{
$.get('http://localhost:3030/inbox',function(res)
{
if(!$.isEmptyObject(res))
{
console.log(res);
arr2=res;
for(var i in arr2){
if(ids.indexOf(arr2[i]._id)==-1){
var message=arr2[i... | JavaScript | Task 4- Email/public/js/model.js | itsmemz53/Pilabs---Summer-Of-Code | mit | 700 | 47 | codeparrot/github-code |
6dfccd8ba72bbc9a8036377f0cba74f5f420df9dcbfa58117885f1cb2d74010a | // Copyright (c) Dyoub Applications. All rights reserved.
// Licensed under MIT (https://github.com/dyoub/app/blob/master/LICENSE).
using Dyoub.App.Controllers.Commercial;
using Dyoub.App.Models.ViewModel.Commercial.PaymentMethods;
using Dyoub.App.Results.Commercial.PaymentMethods;
using Dyoub.Test.Contexts.Commercia... | C# | src/Dyoub.Test/Controllers/Commercial/PaymentMethodsControllerTest.cs | dyoub/app | mit | 3,539 | 92 | codeparrot/github-code |
ed111662cb8ad3e317fa1849714f7a77f1f6922b221d2afbb06cc8df10abc1ac | <o2 use Html::Ajax />
<o2 header onLoad="fixHeight()" />
<o2 use Js::Lang />
<o2 addJsLangFile file="o2/System/Search" />
<o2 addJsFile file="DOMUtil" />
<o2 addJsFile file="componentBase" />
<o2 addJsFile file="Tree" />
<o2 addJsFile file="dragDrop" />
<o2 addJsFile file="ExpandTree" />
<o2 a... | HTML | var/templates/System/Framework/frameLeft.html | haakonsk/O2-CMS | mit | 3,352 | 117 | codeparrot/github-code |
dbc24110f4bd4540b21ee84c208a82ddf6260a5181862bf0c44fb861b48c0596 | import PropTypes from 'prop-types';
import React from 'react';
import { compose, pure, setPropTypes } from 'recompose';
import { flow, camelCase, upperFirst, kebabCase } from 'lodash';
import Placeholder from '@ui/Placeholder';
import * as Icons from './icons';
const pascalCase = string => flow(camelCase, upperFirst)... | JavaScript | src/@ui/Icon/index.js | NewSpring/Apollos | mit | 1,221 | 47 | codeparrot/github-code |
6607d00e61b3b95ae4d3ed8560bb1c1212ae8b8c82923e28028b7a663c6d4cdc | <?php
/**
* Created by JetBrains PhpStorm.
* User: vitya
* Date: 03.07.15
* Time: 15:09
* To change this template use File | Settings | File Templates.
*/
namespace Redmine\Bundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Validator\Cons... | PHP | src/Redmine/Bundle/Form/CommentFormType.php | treasury23/Project_SF2 | mit | 1,116 | 45 | codeparrot/github-code |
431d2b92f2e6c0c6da3cc5c41b7bc00bbd1b78ffce9b3f1d432dc9bfe7883ae1 | package jenkins.model;
import com.google.common.base.Predicate;
import hudson.Extension;
import hudson.Util;
import hudson.model.Job;
import hudson.model.PermalinkProjectAction.Permalink;
import hudson.model.Run;
import hudson.model.TaskListener;
import hudson.model.listeners.RunListener;
import hudson.util.AtomicFile... | Java | core/src/main/java/jenkins/model/PeepholePermalink.java | ktan2020/jenkins-1.507 | mit | 7,311 | 207 | codeparrot/github-code |
84cd5b60a003b7e76d3171ea0e43943c035446150f7ece49e05ba419d934d13d | //
// TOCropToolbar.h
//
// Copyright 2015-2022 Timothy Oliver. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitati... | C | Objective-C/TOCropViewController/Views/TOCropToolbar.h | TimOliver/TOCropViewController | mit | 4,167 | 90 | codeparrot/github-code |
2cd26fe264185bf6dce7f26505d677373478f98fdeb03cbc4da3157478a9f7e7 | 'use strict';
var test = require('tape');
var sinon = require('sinon');
var resizeCursor = require('resize-cursors');
var Store = require('../lib/store');
var helpers = require('../lib/helpers');
var createEl = require('./spec_util').createEl;
var getCursorState = helpers.getCursorState;
function cursorStyle(state) {... | JavaScript | test/store.test.js | jimf/resizabull | mit | 6,146 | 211 | codeparrot/github-code |
5b2fbb80d533bab0e19558d0f49b866a9cc1179bb42cb249041cbf1abd9780cd | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using TypeMock.ArrangeActAssert;
namespace Nucleo.Web.ContainerControls.ClientSettings
{
[TestClass]
public class PanelDraggingClientEventsTest
{
#region " Tests "
[TestMethod]
public void CreatingEventsWorksOK()
{
//Arrange
var even... | C# | src/Nucleo.UnitTests.40.MS/Web/ContainerControls/ClientSettings/PanelDraggingClientEventsTest.cs | brianmains/Nucleo.NET | mit | 1,506 | 56 | codeparrot/github-code |
7a5bad46b7ea2d05d5d029d4ca6771e9b2b19a65f375d8a970a981953147eafb | // @flow
import logger from 'debug'
import { Observable } from 'rxjs'
const debug = logger('smtApp:createStateStreams')
const createInitialstateReq$ = (client: Function) =>
Observable.create(observer => {
debug('Requesting initial state...')
client.record.snapshot('knx/initialBusState', (error, record) => ... | JavaScript | lib/shared/create-state-streams.js | cjk/smart-home-app | mit | 1,256 | 40 | codeparrot/github-code |
28a89036055b0ca8f981fbf3b7a56bdc8481d1754d5bddda40a7aeb352aed262 | package cn.itcast.dao;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang.StringUtils;
import org.hibernate.SQLQuery;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfr... | Java | src/main/java/cn/itcast/dao/TimeLineDaoImpl.java | wuzhiweiallen/sshdemo | mit | 6,300 | 212 | codeparrot/github-code |
0682c31bace745a744cbc46850e5882e29287a207d5ea91393e55f909ee52996 | 'use strict';
var path = require('path');
var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var StatsPlugin = require('stats-webpack-plugin');
module.exports = {
entry: [
path.join(__dirname, 'client/main.js'... | JavaScript | webpack.production.config.js | jabhishek/react-express-webpack-boilerplate | mit | 1,372 | 56 | codeparrot/github-code |
5875fec56b32befbbcf77583ec1d5296969aa1ce8d30fe8955bc06efe551ca36 | /*
The MIT License (MIT)
Copyright (c) 2018 Helix Toolkit contributors
*/
using SharpDX;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Diagnostics;
#if !NETFX_CORE
namespace Heli... | C# | Source/HelixToolkit.SharpDX.Shared/Model/Scene/Abstract/SceneNode.cs | chrkon/helix-toolkit | mit | 41,142 | 1,118 | codeparrot/github-code |
352889a72672b98369ee17be97fddcb8f487c2da8237b6c0c676bf43e2a39db4 | require 'action_controller/metal/responder'
require 'action_controller/metal/renderers'
# Monkey-patched Responder class.
class ActionController::Responder
# @return [String] JSON representation of resource in reaction format.
def to_reaction
controller.render :reaction => resource
end
end
module Reaction
... | Ruby | lib/reaction/rails/serializer.rb | jimjh/reaction | mit | 2,976 | 106 | codeparrot/github-code |
8acb38221704d7a5cf8850a98d89208ca988fe0d5ef81db0b6831f15941438df | // For vendors for example jQuery, Lodash, angular2-jwt just import them here unless you plan on
// chunking vendors files for async loading. You would need to import the async loaded vendors
// at the entry point of the async loaded file. Also see custom-typings.d.ts as you also need to
// run `typings install x` wher... | TypeScript | webapp/src/vendor.ts | bryant-pham/brograder | mit | 1,534 | 50 | codeparrot/github-code |
897a0137a6e8be8b38bdb3f3adba3a722a0532ad4998eb858fe14467de9ec0fd | print("Lua thread starting ...")
local h2olib = require("h2olib")
local ffi = require("ffi")
ffi.cdef[[
int myprintf ( const char * format, ... );
]]
ffi.C.myprintf("Hello %s!\n", "world")
local str_format = string.format
local lua_prefix = "/LUA/"
local after_lua_prefix_len = #lua_prefix + 1
local lua2_prefix = ... | Lua | h2o-on-thread-start.lua | mingodad/h2o | mit | 4,777 | 182 | codeparrot/github-code |
cd50d1ac8e7c3486c7302f176c6d99723f11cc1a4ae4b780914b79be093b8275 | // Music player requires
var child = require('child_process');
var Player = function (songPath) {
this.songPath = songPath;
console.log("Going to open song file " + songPath);
}
Player.prototype.play = function () {
if (process.platform == 'darwin') {
Player.song = child.exec("afplay " + this.songPath, func... | JavaScript | src/music-player.js | Dermah/pulsar-input-keyboard | mit | 976 | 32 | codeparrot/github-code |
fdad612b43215dc3c4efdadddf9bc1ba39bf05b9cdf34ceaa1099e578e7da423 | <?php
/*
* This file is part of the Marlon Ogone package.
*
* (c) Marlon BVBA <info@marlon.be>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Ogone;
/**
* Ogone Passphrase Value Object
*/
final class Passphrase
{
... | PHP | lib/Ogone/Passphrase.php | Meabed/ogone | mit | 760 | 40 | codeparrot/github-code |
c668d709011ee77c80d014b93633c7f7894a73df6918ab8d7253511c2d575f90 | package io.jenkins.blueocean.service.embedded.rest;
import hudson.model.Cause;
import hudson.model.CauseAction;
import hudson.model.Item;
import hudson.model.Job;
import hudson.model.Queue;
import hudson.model.queue.ScheduleResult;
import hudson.util.RunList;
import io.jenkins.blueocean.commons.ServiceException;
impor... | Java | blueocean-rest-impl/src/main/java/io/jenkins/blueocean/service/embedded/rest/RunContainerImpl.java | tfennelly/blueocean-plugin | mit | 3,370 | 105 | codeparrot/github-code |
3c48b70b8a534c75f1e063c84c67a9e3f5487803ea406439473aafac6ba4a92d | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _promise = require('babel-runtime/core-js/promise');
var _promise2 = _interopRequireDefault(_promise);
exports.default = neo;
var _util = require('./util');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj ... | JavaScript | lib/neo.js | AJFunk/nasa-sdk | mit | 2,390 | 66 | codeparrot/github-code |
8715f0d73793574506b2b317c37d1dbf5441a4561689b4ac844108b2cf1b6a50 |
<!doctype html>
<html dir="ltr" lang="en-GB">
<head>
<meta charset="UTF-8">
<title>h-event microformat-shiv</title>
<meta name="description" content="microformat-shiv - A cross browser javascript microformats parser" />
<link rel="shortcut icon" href="images/logo16.png" />
<link rel="stylesheet" m... | HTML | static/h-event.html | glennjones/microformat-shiv-site | mit | 7,031 | 175 | codeparrot/github-code |
ef2c935ff9cf11948cbefb73b271d93e2b8c649b07403c7357303d0a02c4144a | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<style>
@import url(http://fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,400italic,500,700,500italic,900,700italic,900italic);
@import url(//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css);
@import url(http://... | HTML | app/assets/html/views/theme1.html | capapas/AirCloneDroid | mit | 14,815 | 524 | codeparrot/github-code |
9b36aead9f8e5bf86315ab3931b2820ddef0d8bfe34f717122f1e0638dad0ff7 | @ECHO OFF
REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set BUILDDIR=build
set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% source
if NOT "%PAPER%" == "" (
set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%
)
if "%1" == "" goto help
if "%1" == ... | Batchfile | make.bat | tdavis/twisted-docs | mit | 4,517 | 171 | codeparrot/github-code |
35f7eff15fde80bfcfe74451eb05461bc2d610b249858d436ecc579def5959d5 | package request
import (
"errors"
"fmt"
"time"
"github.com/codeforsanjose/open311-gateway/common"
"github.com/codeforsanjose/open311-gateway/common/cv"
"github.com/codeforsanjose/open311-gateway/common/geo"
"github.com/codeforsanjose/open311-gateway/common/sid"
"github.com/codeforsanjose/open311-gateway/engin... | GO | engine/request/search.go | codeforsanjose/open311_gateway | mit | 17,242 | 572 | codeparrot/github-code |
7eb8f93f0ec64e0c6b88c9fbf0493f22c2ed6ba0ae8ffddee438a50ad5b43c88 | #include "codec.h"
#include <tesla/base/Logger.h>
#include <tesla/base/Mutex.hpp>
#include <tesla/base/Noncopyable.hpp>
#include <tesla/net/EventLoop.h>
#include <tesla/net/TcpServer.h>
#include <boost/bind.hpp>
#include <set>
#include <stdio.h>
using namespace tesla::base;
using namespace tesla::net;
class ChatS... | C++ | examples/chat/server.cc | liuheng/tesla | mit | 2,150 | 92 | codeparrot/github-code |
eaedd2b88532a7fb7706e6b1e11a65656e2cb0cfe7036779b32c9031eef46304 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reactive;
using System.Reactive.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Media;
namespace Fatty.UniversalFramework.Output
{
public... | C# | Fatty.UniversalFramework/Output/MediaExtensions.cs | FlatlinerDOA/FattyRobot | mit | 1,120 | 33 | codeparrot/github-code |
544bf34db950194292b82a4c1e459c98714db03fc53040b3d95059ccf59225f2 | <?php
namespace Nature;
class cURL {
private $ch;
function __construct(){
$this->ch = curl_init();;
curl_setopt($this->ch, CURLOPT_RETURNTRANSFER, true);
}
function __setup($cfg){
curl_setopt($this->ch, CURLOPT_TIMEOUT, isset($cfg['timeout']) ?... | PHP | App/Nature/cURL.class.php | shiny/Nature | mit | 1,272 | 34 | codeparrot/github-code |
136ba5899f49f45aaecd3ad4ec7d1e7071718865c88ffeabd093179fd784131e | <?php
namespace jfadich\EloquentResources\Console;
use Illuminate\Console\GeneratorCommand as LaravelGenerator;
use Illuminate\Filesystem\Filesystem;
use jfadich\EloquentResources\Exceptions\GeneratorException;
abstract class GeneratorCommand extends LaravelGenerator
{
/**
* Classes that need to be imported... | PHP | src/Console/GeneratorCommand.php | jfadich/json-responder | mit | 4,669 | 197 | codeparrot/github-code |
7a92ca9a6d2c08cde4de7415efbf5693e9f58632c20117e597f025346a208a64 | // Copyright (c) 2011-2013 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef KCOIN_QT_MACNOTIFICATIONHANDLER_H
#define KCOIN_QT_MACNOTIFICATIONHANDLER_H
#include <QObject>
/** Macintosh-specif... | C | src/qt/macnotificationhandler.h | Kcoin-project/kcoin | mit | 890 | 31 | codeparrot/github-code |
11a44a6b5fd5e568c8be5ffcedf884cfa6edd42ca4bf2847bc1f9bf994703679 | // Copyright (C) 2002-2012 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#ifndef __I_LIGHT_SCENE_NODE_H_INCLUDED__
#define __I_LIGHT_SCENE_NODE_H_INCLUDED__
#include "ISceneNode.h"
#include "SLight.h"
namespace... | C | include/ILightSceneNode.h | u-engine/uEngine | mit | 2,972 | 87 | codeparrot/github-code |
12711e680ff49d6db7b41973c4c1b7d37624c6ca4f28f57b1aa06c62e11149ef | package zap
import (
"bytes"
"fmt"
"io"
"net/http"
"encoding/json"
"github.com/Jeffail/gabs/v2"
)
// IndexHandler handles all the non status expansions.
func IndexHandler(ctx *Context, w http.ResponseWriter, r *http.Request) (int, error) {
var host string
if r.Header.Get("X-Forwarded-Host") != "" {
host =... | GO | cmd/zap/web.go | issmirnov/zap | mit | 2,097 | 82 | codeparrot/github-code |
588ed481457bdca9e956ed98b1938e9d691bc89f64b47fafa96633063383a50c | //
// PitchClassEstimator.h
// DSPLibrary
//
// Created by Mayank on 9/11/12.
// Copyright (c) 2012 Mayank Sanganeria. All rights reserved.
//
#ifndef __DSPLibrary__PitchClassEstimator__
#define __DSPLibrary__PitchClassEstimator__
#include <iostream>
#include "SimpleDelayLine.h"
class PitchClassEstimator {
priva... | C | Classes/PitchClassEstimator.h | e7mac/MKDSPKit | mit | 725 | 36 | codeparrot/github-code |
28db8405d636b1abbbae81c2489e19a3399ad65b12a145c592cbaf12414ef683 | <?php
if (!defined('DIR_APPLICATION'))
exit('No direct script access allowed');
/**
* Created by PhpStorm.
* User: root
* Date: 4/4/15
* Time: 1:05 PM
*/
/**
* Smatsa Question Bank
*
* @category PhpStorm
* @package smatsa
* @copyright Copyright 2009-2014 Semite d.o.o. Developments
* @license htt... | PHP | map/model/localisation/zone.php | mikrotikAhmet/avista | mit | 3,361 | 118 | codeparrot/github-code |
ab131ec44fc5932f38f8c25d86a3407b1e64ed0df0547c7f4e5b70a574952cae | var Crop = require("../../lib/functions/crop");
var Base = require("../../lib/functions/base");
describe("functions.Crop", function() {
var regexp = Crop.regexp;
it("should delegate the generate method to base", function() {
sinon.stub(Base, "regexpGenerate").withArgs(Crop, regexp,"/an/url").returns("hello wo... | JavaScript | test/functions/crop_spec.js | blomming/image-server | mit | 1,690 | 46 | codeparrot/github-code |
c8f45e15f2c548bfd352ff9bfd3bbbfa8124d347f9ec8afe39ef92e2f4865eac | /*
* File: Missile.h
* Author: zach
*
* Created on March 5, 2009, 1:23 PM
*/
#ifndef _MISSILE_H
#define _MISSILE_H
#include <SDL/SDL.h>
#include "Sprite.h"
class Vector;
class Visitor;
class Missile:public Sprite {
public:
Missile(int x, int y, int mouse_x, int mouse_y);
~Missile();
void update(... | C | Missile.h | zachshutters/Xaster | mit | 815 | 43 | codeparrot/github-code |
342e1bb205d7ec1e4c5a5082850358017efdb27fe5f8096656aa8bb5fa798ab2 | require 'csv'
class CsvTool
include Enumerable
attr_accessor :data, :headers
def initialize(data_file)
@data_file = data_file
@headers = Array.new
@data = Array.new
CSV.read(data_file, :encoding => 'windows-1252:utf-8').first.each do |h|
@headers << h.strip.to_sym
end
row_count... | Ruby | lib/csv-tool.rb | healsjnr/csv-tool | mit | 814 | 49 | codeparrot/github-code |
ffe7742437c39faac2ff090a78d69b4270340941cda8b2434281b5475e7aaeec | /*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | Java | src/edu/bupt/calendar/event/AttendeesView.java | x7hub/Calendar_lunar | mit | 19,272 | 487 | codeparrot/github-code |
143f5e70702803a265e172f00dfb8cf6e8bed28631d145bc5a4c085a4a29e847 | package org.biopax.validator.api;
import java.util.Collection;
import org.biopax.validator.api.beans.ErrorType;
import org.biopax.validator.api.beans.Validation;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
* A validation rule.
*
* @author rodche
*
* @param <T> a typ... | Java | validator-core/src/main/java/org/biopax/validator/api/BaseRule.java | BioPAX/validator | mit | 2,481 | 93 | codeparrot/github-code |
f2e057cc011664b39a75d7cace031f9fe2bc28e224a07c723bba084aec349a34 | using System;
namespace Kondor.Data
{
public class QueryData
{
public QueryData(string command, string action, string data)
{
Command = command;
Action = action;
Data = data;
Ticks = DateTime.Now.Ticks;
}
public string Command { ... | C# | src/Kondor.Data/QueryData.cs | odises/kondor | mit | 1,389 | 51 | codeparrot/github-code |
ea22f60ce2d9141a18b730d3004151a4026ef3ed6b491afd2cb852db22c39122 | //******************************************************************************
//
// UICollectionViewUpdateItem.h
// PSPDFKit
//
// Copyright (c) 2012-2013 Peter Steinberger. All rights reserved.
// Contributed by Sergey Gavrilyuk.
//
// Copyright (c) 2015 Microsoft Corporation. All rights reserved.
//
// This code i... | C | Frameworks/UIKit/UICollectionViewUpdateItem.h | bleupierre/WinObjC | mit | 2,118 | 55 | codeparrot/github-code |
ca1a41070cd9e70baba60ce3e32fab66e979dc0127e9a90c4857bc0fce97e65b | export default {
apiUrl: 'http://yoursite.com/api/'
};
const siteConfig = {
siteName: 'EncontrAR',
siteIcon: 'ion-flash',
footerText: 'EncontrAR ©2017'
};
const themeConfig = {
topbar: 'themedefault',
sidebar: 'themedefault',
layout: 'themedefault'
};
const language = 'english';
const AlgoliaSearchConfig... | JavaScript | src/config.js | EncontrAR/backoffice | mit | 1,383 | 70 | codeparrot/github-code |
c60321c3a749659656ebe1f05b9df3a7bf66d8bee5f4a8245fe0ae784799cc87 | using ElectronicObserver.Data;
using ElectronicObserver.Resource;
using ElectronicObserver.Resource.Record;
using ElectronicObserver.Utility.Data;
using ElectronicObserver.Utility.Mathematics;
using ElectronicObserver.Window.Control;
using ElectronicObserver.Window.Support;
using System;
using System.Collections.Gener... | C# | ElectronicObserver/Window/Dialog/DialogAlbumMasterShip.cs | sorube314/ElectronicObserver | mit | 35,069 | 968 | codeparrot/github-code |
b4844d9236cd2ebd288d96f814c6f6608ea9017aedee2ddab1dca84123f01735 | <style type="text/css">
.modal-dialog{width:920px;}
/*#param-items{height:600px;overflow-y: auto;width:858px;display: block;}
#param-items tr{width:858px;display: block;}
#param-items tr td{display: table-cell;}*/
</style>
<div class="content_hasoption">
<!--<form class="form-horizontal form-validat... | HTML | addons/ewei_shopv2/plugin/live/template/web/room/hasoption.html | Broomspun/shanque | mit | 8,227 | 173 | codeparrot/github-code |
590bc8d49d23f6d9e437b61e224244629f2cb1bc257e0471961c0a0e27eb4462 | #include "openmc/tallies/filter_sptl_legendre.h"
#include <utility> // For pair
#include <fmt/core.h>
#include "openmc/capi.h"
#include "openmc/error.h"
#include "openmc/math_functions.h"
#include "openmc/xml_interface.h"
namespace openmc {
void
SpatialLegendreFilter::from_xml(pugi::xml_node node)
{
this->set_o... | C++ | src/tallies/filter_sptl_legendre.cpp | tjlaboss/openmc | mit | 5,209 | 208 | codeparrot/github-code |
755962a5eadb2b4b89b517e029f361b15895e5fa8e7261862f12cb3b3349d2e7 | 'use strict';
angular.module('myApp.private', ['myApp.backend', 'myApp.authentication', 'myApp.common', 'myApp.config', 'ui.bootstrap', 'ui.router' ])
.config(function($stateProvider, USER_ROLES) {
$stateProvider.state('private', {
url: '/private',
component: 'private',
abstract: true,
data: {
aut... | JavaScript | app/private/private.js | Zokormazo/ngLlery | mit | 2,755 | 94 | codeparrot/github-code |
72c744bb7d211df12a76c601723bc1c20333ab1c2feb768f0fb02fc6c1139e57 | # -*- coding: utf-8 -*-
# @Author: Yue Wu <me@blaulan.com>
# @Date: 2020-02-29 17:49:05
# @Last Modified By: Yue Wu <me@blaulan.com>
# @Last Modified Time: 2020-03-02 22:06:26
from prompt_toolkit import PromptSession
from prompt_toolkit.completion import Completer, Completion
from prompt_toolkit.validation import ... | Python | commandline.py | blaulan/alfred-beancount | mit | 2,565 | 92 | codeparrot/github-code |
01e9d7acd061e6379d5696c1d4478c54c4c07f452e5456f739e6410178f7b669 | //_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/.
// VisualNovelToolkit /_/_/_/_/_/_/_/_/_/.
// Copyright ©2013 - Sol-tribe. /_/_/_/_/_/_/_/_/_/.
//_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/.
using UnityEngine;
using System.Collections;
/// <summary>
/// Messaging handler.
/// In HandleOpcode Method... | C# | Assets/VisualNovelToolkit/Scripts/Internal/MessagingHandler.cs | lapius/MusicalCube | mit | 7,389 | 208 | codeparrot/github-code |
bc17b3fc97eb790b0c5c5274cc70c679e73c358c23f977663bc9cc6d27b385ff | <!DOCTYPE html>
<html>
<head>
<title>酷音</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
<meta name="format-detection" content="telephone=no"/>
<meta charset="utf-8">
<style type="text/css">
*{
margin: 0;
padding: ... | HTML | work/1609-努比亚混合APP H5/index.html | wbpmrck/css-layout-study | mit | 28,883 | 1,125 | codeparrot/github-code |
66c48d5c9e579deab7d3d6365ff0b089d07b991369805bd0d1d2a68fafa9e49a | const Order = require('../models/order')
const Q = require('q')
const ObjectID = require('mongodb')
.ObjectID
module.exports = function OrdersLogic(TransactionsLogic) {
let saveOrder = (order) => {
return new Order(order)
.save()
}
let getOrders = (query) => (Order.find(query))
let removeOrder = (... | JavaScript | business/orders-logic.js | diegomanjarres/nodejs-inventory | mit | 1,665 | 65 | codeparrot/github-code |
9f183ffe16da3971b4b6597cc1890fac4bcf48070ec41723009dbd1c76cbbe8f | # -*- coding: utf-8 -*-
import sqlalchemy.ext.declarative
from sqlalchemy import types
from sqlalchemy.dialects import postgresql
import uuid
class Base(object):
pass
#:
Base = sqlalchemy.ext.declarative.declarative_base(cls=Base)
class GUID(types.TypeDecorator):
"""Platform-independent GUID type.
Use... | Python | midauth/models/base.py | smartstudy/midauth | mit | 1,286 | 49 | codeparrot/github-code |
8b47f299097e13da6ba7bc48c2edf829289fa1ce82d5d1a69bc8f4b3b6b084c0 | package com.company.baru;
/*import java.util.Random;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Scanner;
import java.util.Set;
import java.util.Iterator;
import java.util.Map; */
import java.util.*;
public class Main {
public static void main(String[] args) {
int num = -1;
Random ran... | Java | src/JAVA/Main.java | kebunit/xperiEmacs2016 | mit | 8,337 | 270 | codeparrot/github-code |
313a494f5e43f7c3639cbedd3e96c3cd02dfbe25006c5400c2b66e43691f73f6 | require 'chronic_tree/command'
module ChronicTree
module Operation
class ChangeParent
attr_reader :source, :source_root_id, :ready_to_move_elements, :new_ancestors
def initialize(source, new_parent_object)
@source = source
@ready_to_move_elements = source.
descendants_rel... | Ruby | lib/chronic_tree/operation.rb | bigxiang/chronic_tree | mit | 6,371 | 213 | codeparrot/github-code |
faaaecdf0a6c67c54dd1738138dfd4122c2b6ac48ed1720c1ae145f6dc5e8cd2 | <div id="modal_lov_simulasi" class="modal fade" tabindex="-1" style="overflow-y: scroll;z-index:10900;">
<div class="modal-dialog" style="width:1070px;">
<div class="modal-content">
<!-- modal title -->
<div class="modal-header no-padding">
<div class="table-head... | PHP | application/views/lov/lov_simulasi.php | isyageri/optima | mit | 7,670 | 164 | codeparrot/github-code |
6031bd57050ffabfdf8062ef59c1b57f5478a4c020cc13176af287a81b215a72 | /***
* Inferno Engine v4 2015-2017
* Written by Tomasz "Rex Dex" Jonarski
*
* [# filter: driver\objects\buffers #]
***/
#pragma once
#include "glObject.h"
#include "glObjectResolver.h"
namespace plugin
{
namespace gl4
{
//---
/// wrapper for persistent buffers
class Buffer : public O... | C | dev/src/plugin/gl4_api/src/glBuffer.h | InfernoEngine/engine | mit | 2,417 | 83 | codeparrot/github-code |
7e26fc8db52c22b2b304e9d8e10cc2675ec3102664d34c689cea0e4899710a40 | <?php
/* FOSUserBundle:Group:edit.html.twig */
class __TwigTemplate_dc3c4d1f991bac2f59d645a77a1973080816d010a1a055cbe733dc6beb0ba639 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 1
$this->parent = $this->loadTemplate("FO... | PHP | app/cache/prod/twig/1b/1b8c7f65ea1f0efc4e5285e58b66f6ac433a08b411f8d949abe7b48ccc7c91a2.php | landolsi1/tunisiehologram | mit | 1,901 | 62 | codeparrot/github-code |
985d673dd681d2c32cc61fd85395cef7462255f1af9d9e4d4c4f6db00741d326 | //////////////////////////////////////////////////////////////////////////////
//
// Copyright 2019, Cornutum Project
// www.cornutum.org
// All Rights Reserved
//
//////////////////////////////////////////////////////////////////////////////
pa... | Java | tcases-openapi/src/test/java/org/cornutum/tcases/openapi/SchemaMatcher.java | Cornutum/tcases | mit | 9,762 | 297 | codeparrot/github-code |
aa403d7f10de6d58c59aa5f302dd376c2a61d9305a56619155bc826bf72be720 |
#include "openmc/cell.h"
#include <algorithm>
#include <cctype>
#include <cmath>
#include <iterator>
#include <set>
#include <sstream>
#include <string>
#include <fmt/core.h>
#include <gsl/gsl>
#include "openmc/capi.h"
#include "openmc/constants.h"
#include "openmc/dagmc.h"
#include "openmc/error.h"
#include "openm... | C++ | src/cell.cpp | smharper/openmc | mit | 40,807 | 1,311 | codeparrot/github-code |
6289f53f001610ef623dc1fac4c6aaae9206c0a863d0d887f04296f229b015c6 | "use strict";
var Layout;
(function (Layout) {
Layout.button = function (inheritor) {
var self = Layout.contentHost(inheritor || this);
self.type = 'button';
self.addProperty('isDisabled',{get:true,set:true,'default':false})
self.addProperty('pointerOverStyle');
self.addProp... | JavaScript | src/core/button.js | Stradus/LayoutJs | mit | 1,557 | 45 | codeparrot/github-code |
e3c38c578215862ae95ad66905b7407a9df247680b127337f12f4ed1c6c23f18 | package matchers
import (
"fmt"
"github.com/cross-dev/script-server/Godeps/_workspace/src/github.com/onsi/gomega/format"
"strings"
)
type ContainSubstringMatcher struct {
Substr string
Args []interface{}
}
func (matcher *ContainSubstringMatcher) Match(actual interface{}) (success bool, err error) {
actualStr... | GO | Godeps/_workspace/src/github.com/onsi/gomega/matchers/contain_substring_matcher.go | cross-dev/script-server | mit | 1,137 | 38 | codeparrot/github-code |
0aeddd6e1424e7599bf88ffba6f1e56846192feed2e0466c003c22090462a19f | namespace Zutatensuppe.DiabloInterface.Gui
{
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Windows.Forms;
using Zutatensuppe.DiabloInterface.Lib.Extensions;
using Zutatensuppe.DiabloInt... | C# | src/DiabloInterface/Gui/ConfigWindow.cs | Zutatensuppe/DiabloInterface | mit | 61,812 | 1,349 | codeparrot/github-code |
fb47df2a97889e2efea7a53c4fb409d5859dd3a749bd2b169a14b9b752f7f2bd | <?php
/**
* Created by PhpStorm.
* User: daniel
* Date: 25.12.15
* Time: 19:36
*/
namespace AppBundle\Controller\Api;
use AppBundle\Entity\DpClient;
use AppBundle\Entity\DpProduct;
use Doctrine\DBAL\Types\TimeType;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\... | PHP | src/AppBundle/Controller/Api/ProductController.php | gustawdaniel/pricing | mit | 4,683 | 133 | codeparrot/github-code |
8a19b4fb56be1fd0084d9bf623cbadf6f439a3b0b3622beaa2881583fa2f7f24 | package twg2.cli;
/**
* @author TeamworkGuy2
* @since 2015-4-30
*/
public class ParameterParserResult {
/** null if the parameter was parsed successfully, non-null if there was a parsing or validation error */
private ParameterParserException parseError;
private ParameterType resultType;
private boolean isParse... | Java | src/twg2/cli/ParameterParserResult.java | TeamworkGuy2/JParameter | mit | 1,040 | 52 | codeparrot/github-code |
2e46fe2f756c33a435aafc2b08a5d484a806e80d6ed8c21b4e8526c7c4aa0765 | <?php
// CREATE TABLE sessions (id INT AUTO_INCREMENT PRIMARY KEY, time DATETIME, `key` VARCHAR(32), data TEXT);
class Session
{
protected $__sid = 0;
function __construct()
{
// get cookie name (if it's configured)
if(!($cookie_name = $this->__getCookieName()))
return;
// get cookie TTL
$cookie_ttl... | PHP | session.php | serghei/wmvc | mit | 2,595 | 141 | codeparrot/github-code |
45bf9ec12afbcebf205a00bc9fc0d222038d0154989c26bd9c1c5b97dc3dd13a | <?php
namespace Knp\Bundle\LastTweetsBundle\Twitter;
class Tweet
{
protected $id;
protected $createdAt;
protected $text;
protected $username;
protected $isReply;
protected $isRetweet;
public function __construct(array $object)
{
$this->id = (string) $object['id'];
$thi... | PHP | Twitter/Tweet.php | TomAdam/KnpLastTweetsBundle | mit | 1,267 | 64 | codeparrot/github-code |
aeda4deba4c471d71c23a0c5608ab77a92b7cf7145d5ed608f24e3a9f1e1abe3 | 'use strict';
const React = require('react');
const pt = require('./../prop-types');
const {routeTo} = require('./../flux/action');
const RouteStore = require('./../flux/route-store');
const internationalize = require('./../mixins/internationalize');
const debug = require('./../mixins/dev-tools');
const displayName = '... | JavaScript | src/client/common/components/navbar.js | k-sheth/react-getting-started | mit | 2,838 | 79 | codeparrot/github-code |
df54c671aa0ec3e4b29bdac4c426b39cc49c6f2e3a8bcf8bd8450eb107f07a57 | /*
The MIT License (MIT)
Copyright (c) 2015 A Kazim, Brandon Jones, Colin MacKenzie IV.
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 right... | C | ntm/ntm_vec3.h | theakman2/libntm | mit | 2,962 | 69 | codeparrot/github-code |
ae8b750b4d564ee2b3d239ebd8cd001e78d3d2df2be8bd5dbaba6e9ea4ff037c | import hashlib
import os
import threading
from Queue import Queue
import requests
from boto.s3.connection import S3Connection
from boto.s3.key import Key
from pyftpdlib.authorizers import DummyAuthorizer
from pyftpdlib.handlers import FTPHandler
from pyftpdlib.servers import FTPServer
from konfig import Konfig
konf ... | Python | server.py | jpf/ftp-to-s3 | mit | 3,319 | 118 | codeparrot/github-code |
db9a6bd85752f41da2dcd98216ef008b83aad11cdcb0d79e14e8ae985b2e5398 | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace Skybrud.Social.Json {
public class JsonArray : IJsonObject {
private object[] _array;
public object[] InternalArray {
get { return _array; }
}
... | C# | src/Skybrud.Social/Json/JsonArray.cs | kendallb/Skybrud.Social | mit | 5,421 | 165 | codeparrot/github-code |
f825dcdc1aea0540d6dcadeff4a95968fc0aa7a821f56882f2b9a20bf45de59c | // Copyright (C) 2016-2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.
#ifndef TYPE_SAFE_DETAIL_MAP_INVOKE_HPP_INCLUDED
#define TYPE_SAFE_DETAIL_MAP_INVOKE_HPP_INCLUDED
#include <utility>
na... | C++ | backend/libs/type_safe/include/type_safe/detail/map_invoke.hpp | abeimler/cmdocker-tmpl | mit | 1,420 | 39 | codeparrot/github-code |
d1b3540713d88806d9c97fd3e94326c9556c8e1b442891582757d2b1e790ab98 | // Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modi... | JavaScript | src/node/test/simple/test-asynclistener-error-net.js | x684867/nemesis | mit | 3,166 | 110 | codeparrot/github-code |
148ece6b1a045ceb0105aa2d1ab0b076384df06921721efeb60b003a189d9831 | # frozen_string_literal: true
class SubjectAPI < Grape::API
include BaseAPI
INTEGER_FINGERPRINT_REGEXP = /^[0-9]+$/.freeze
rescue_from ActiveRecord::RecordNotFound do
subject_not_found!
end
rescue_from SchemaRegistry::InvalidAvroSchemaError do
invalid_avro_schema!
end
rescue_from SchemaRegist... | Ruby | app/api/subject_api.rb | salsify/avro-schema-registry | mit | 4,496 | 137 | codeparrot/github-code |
466d1f02bcf4bd151e4e85d980660d269fbd58a2a5f2cdc4a418fe5c9dffda87 | package seedu.typed.model.task;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import seedu.typed.commons.core.UnmodifiableObservableList;
import seedu.typed.commons.exceptions.DuplicateDataException;
im... | Java | src/main/java/seedu/typed/model/task/UniqueTaskList.java | CS2103JAN2017-W09-B2/main | mit | 7,658 | 237 | codeparrot/github-code |
2a1799c2a59b08af3bef88cb7e5beace541ff4fd7b1d50f6b53c837553c91aac | using System.Threading.Tasks;
using KodiRemote.Core.Model;
using KodiRemote.Core.Requests;
using KodiRemote.Core.Responses;
namespace KodiRemote.Core.Commands
{
public sealed class Files : CommandCollection
{
private readonly Request _request;
internal Files(Connection xbmc)
{
... | C# | src/KodiRemote.Core/Commands/Files.cs | FabienLavocat/kodi-remote | mit | 1,595 | 43 | codeparrot/github-code |
c6e4be4a2733807c469a51723e2dfdf6e36c79bc2abe253184d69c6409f01964 | /* Copyright (c) 2013, Enrico Gueli <enrico.gueli@gmail.com> All
rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redistributions of source code must retain the above copyright
notice, this list of condit... | C++ | src/LcdScreen.cpp | rainerum-robotics-arduino/LcdScreen | mit | 6,325 | 251 | codeparrot/github-code |
fbaeabd33f9e834a47b5e087de8446b1307b98202ca2db0a32214fc159f2f345 | import * as types from "./types";
import * as yargs from "yargs";
export const SECURITIES_DEFAULT = "*";
export const SOURCE_EXTENSION_DEFAULT = "csv";
export interface CommandLineParserResult {
options: types.LeanDataKitConversionOptions;
error: string;
}
class CommandLineParserResultImpl implements Command... | TypeScript | src/commandlineparser.ts | thequantapprentice/leandatakit | mit | 2,289 | 63 | codeparrot/github-code |
cc4e9ae5cfc78644bcd3665dea23372b8dfdb7538daab8989c3e33f35756f042 | # -*- coding: utf-8 -*-
from protoLib.getStuff import getDjangoModel
from protoExt.utils.utilsWeb import JsonError , doReturn
from . import validateRequest
import json
from django.contrib.admin.sites import site
from protoExt.utils.utilsBase import traceError
def protoExecuteAction(request):
""" Ejecuta una ... | Python | src/protoExt/views/protoActionAction.py | DarioGT/docker-carra | mit | 3,186 | 117 | codeparrot/github-code |
bca3af98c0721ffef4c21fea5b88f0c0ee79e7eff6e94dd254b4aceb82c82867 | package simpledb;
import java.io.IOException;
import java.util.*;
/**
* Implements a DbIterator by wrapping an Iterable<Tuple>.
*/
public class TupleIterator implements DbIterator {
Iterator<Tuple> i = null;
TupleDesc td = null;
Iterable<Tuple> tuples = null;
/**
* Constructs an iterator from ... | Java | src/simpledb/TupleIterator.java | ashish-17/simpledb_437_hw | mit | 1,332 | 59 | codeparrot/github-code |
1a300ef786980d34ce558f96a6e8e096af45a5e6e3fb023910a49e2b7b6748ec | <!--
Author: W3layouts
Author URL: http://w3layouts.com
License: Creative Commons Attribution 3.0 Unported
License URL: http://creativecommons.org/licenses/by/3.0/
-->
<!DOCTYPE html>
<html>
<head>
<title>Perfection a Wedding Category Flat bootstrap Responsive website Template | Home :: w3layouts</title>
<link href="cs... | HTML | index.html | NimzyMaina/planner | mit | 9,334 | 245 | codeparrot/github-code |
5845be547904dba74833145029d52be39dbaf086a6052b09945e0542e6ce8f63 | //
// Created by DengJiaming on 14-7-6.
//
//
#ifdef __cplusplus
#if !defined(__rio_helper_h__)
#define __rio_helper_h__
#include "CAStreamBasicDescription.h"
#define kNumDrawBuffers 1
#define kDefaultDrawSamples 1024
#define kMinDrawSamples 64
#define kMaxDrawSamples 4096
extern int drawBufferIdx;
extern int drawB... | C | Sound/MicSound/Vendors/FFT/Resouces/aurio_helper.h | AllanChen/WorkSample | mit | 872 | 43 | codeparrot/github-code |
28e2be889f4d5e2ada96b1b90d7bdf9eb2bddc5438e28c7d348f4e2b98934dbc | # DeviceAPI - an interface to allow for automation of devices
module DeviceAPI
# iOS component of DeviceAPI
module IOS
# Namespace for all methods encapsulating idevice calls
class IDeviceDebug < Execution
# idevicedebug doesn't return until the app you are attempting to run
# exits. By passing... | Ruby | lib/device_api/ios/idevicedebug.rb | bbc/device_api-ios | mit | 1,381 | 36 | codeparrot/github-code |
2b2e276e5e7bee44c212923511857d84593c943113248203fe99d5edef7f9cce | /*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */
/*
* What follows is the result of much research on cross-browser styling.
* Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
* Kroc Camen, and the H5BP dev community and team.
*/
/* ============================================... | CSS | public/css/main.css | rubysolo/logjam | mit | 5,932 | 316 | codeparrot/github-code |
be813fa337ba518dfc9ecdc1ef729084ba2da3823db975483cc4c4fbd28fd49e | /*
* PSI Evaluation module GUI 0.6
*
* Author: James Montgomery (james.montgomery at anu.edu.au)
*
* Developed as part of the Protocols and Structures for Inference project: http://psi.cecs.anu.edu.au
*/
define(['jquery','underscore','backbone','psi.client','psi.common-ui','psi.evaluation','psi.forms','psi.sch... | JavaScript | js/psi.evaluation-ui.js | psi-project/client | mit | 5,288 | 103 | codeparrot/github-code |
2c4396bb3e7b2096f029e557fe7009e663e78c31db0e7a676c786ac300e00bde |
#include "save_image_tga.hpp"
#include "type_pun.hpp"
#include <cstdint>
#include <fstream>
#include <stdexcept>
namespace {
constexpr int rgba_image_type = 2;
struct Tga_header {
std::uint8_t image_id_length = 0;
std::uint8_t color_map_type = 0;
std::uint8_t image_type = rgba_image_type;
std::uint8_t ... | C++ | src/save_image_tga.cpp | SleepKiller/swbf-unmunge | mit | 2,205 | 83 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.