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
3278ddd66aefa41b229a2dd82b750b063c4ba7cd5f1305d0d2954dc85cafd886
<!DOCTYPE html> <html > <head> <meta charset="UTF-8"> <title>valer</title> <!--link rel="stylesheet" href="/www/css/table_style.css"--> <!--STYLE --> <style>@import url(https://fonts.googleapis.com/css?family=Roboto:400,500,700,300,100); body { background-color: #4A59A1; font-...
HTML
Data/Valer.html
lorientado/XimnasioDosVerbos
mit
18,876
569
codeparrot/github-code
d888e6215c188f4c158bc0baeec55e565d36ab6000908456855e1d36329065ed
//! Path rasterization. use crate::{gpu::GpuVertex, Result, P2}; use lyon_path::Builder; use lyon_tessellation::{ BuffersBuilder, FillAttributes, FillOptions, FillTessellator, LineJoin, StrokeAttributes, StrokeOptions, StrokeTessellator, VertexBuffers, }; use palette::LinSrgba; /// The method by which the ras...
Rust
src/raster.rs
turnage/valora
mit
3,507
99
codeparrot/github-code
0c89058e170b8dd94155447725adaa2cbbe318556d9652c537f234beb8a4b739
/* * ******************************************************* * Copyright VMware, Inc. 2017. All Rights Reserved. * SPDX-License-Identifier: MIT * ******************************************************* * * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHE...
Java
src/main/java/vmware/samples/appliance/networking/proxy/ProxyWorkflow.java
kunal-pmj/vsphere-automation-sdk-java
mit
8,059
207
codeparrot/github-code
fb45e79894697ecd4ea283c2e37d7483aa2ecc2fc8369e8f13750c7f3488d068
// Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ssh import ( "crypto" "crypto/ecdsa" "crypto/elliptic" "crypto/rand" "crypto/subtle" "errors" "io" "math/big" "github.com/nofdev/fastforward/...
GO
Godeps/_workspace/src/golang.org/x/crypto/ssh/kex.go
nofdev/fastforward
mit
13,864
527
codeparrot/github-code
0ea715c98920e0eb004649d2388e3a297ff8040c9275d379ad85554cb8a45173
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """""" import inspect import colony from colony.entities.attributes import Age __title__ = "GameTime" __author__ = "DeflatedPickle" __version__ = "1.1.1" class GameTime(object): def __init__(self, parent): self.parent = parent self._time = colony....
Python
gametime.py
DeflatedPickle/Colony
mit
2,265
78
codeparrot/github-code
766910c59fc03f69496aa1fc13008a9102850cad832d448f9e04f0fa90b7e944
var size = 64; function colorOverhead () { var pixArr = []; for (var x = 0; x < 32; x++) { pixArr.push(new Array()); for (var y = 0; y < 32; y++) { var color = { r: SwatchField[Swatch[x][y][0]][3].r, g: SwatchField[Swatch[x][y][0]][3].g, b: SwatchField[Swatch[x][y][0]][3].b } pixArr[x]...
JavaScript
nbRender/render.js
cryptoquick/nanoblok
mit
7,869
358
codeparrot/github-code
27526098b8f4c23bb6fdd0f5ca1a82f2d46c0425a9e412f7150560b9f6f05deb
/* |--------------------------------------------------------------------------------- |Initing Assignments Grid System |--------------------------------------------------------------------------------- */ App.Views.initAssignment = Backbone.View.extend({ initialize : function(){ vent.on('assignment:edit', this....
JavaScript
application/assets/js/app/views/assignments.js
snoooopx/tms
mit
13,617
522
codeparrot/github-code
59bd7695bf0d3f22ce45e4dfab5cf9e27293dbf3e0076f9cec928ecd9a00eb77
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package servlets; import dao.EmployeeDAO; import dao.ProjectDAO; import entity.Employee; import entity.Project; import java.io.IOExcep...
Java
src/main/java/servlets/UpdateProjectHoursServlet.java
linyumai/icon
mit
4,422
121
codeparrot/github-code
bb3181837c682ee73b4103517802b9f31891245597c143976add82a7b0675fc9
var darling = require('darlingjs'); /** * DOM component */ darling.c('domView', { //color of DOM element color: null, //element for temporary storing element: null }); /** * Get Vendor Prefix. Based on CraftyJS <http://craftyjs.com> * @returns {*} */ function getVendorPrefix() { var ua = navigator.use...
JavaScript
js/dom.js
darlingjs/game-pong
mit
3,351
142
codeparrot/github-code
b23c458d24281f27170375831218fee658fe986371ccb820d6c2105668155471
package com.codeborne.selenide.commands; import com.codeborne.selenide.SelenideElement; import com.codeborne.selenide.impl.Alias; import com.codeborne.selenide.impl.WebElementSource; import org.junit.jupiter.api.Test; import static com.codeborne.selenide.impl.Alias.NONE; import static org.assertj.core.api.Assertions....
Java
src/test/java/com/codeborne/selenide/commands/GetAliasCommandTest.java
codeborne/selenide
mit
1,140
35
codeparrot/github-code
681169083ee0030b590c3caaef28054be55a9f309091a799536ee4748a299c6d
import { vertex } from '@tools/fragments'; import fragment from './twist.frag'; import { Filter } from '@pixi/core'; import { Point } from '@pixi/math'; interface TwistFilterOptions { radius: number; angle: number; padding: number; offset: Point; } /** * This filter applies a twist effect making disp...
TypeScript
filters/twist/src/TwistFilter.ts
pixijs/pixi-filters
mit
2,249
92
codeparrot/github-code
e13af008b282ef898483d8f0822c3b11de245062d4b1eec781c573b4887dfdc9
package com.muchencute.commons.sparkjava; import junit.framework.Assert; import junit.framework.TestCase; import java.util.HashSet; public class RouteUtilsTest extends TestCase { public void testMatchParameterizedRoute() { String route = "/api/v1/permissionuser/:id/role/:rid"; String path = "/a...
Java
src/test/java/com/muchencute/commons/sparkjava/RouteUtilsTest.java
muchencute/commons-java
mit
1,744
49
codeparrot/github-code
4dbd1781db734f29b4fa174d5452f6c56c17bbf9595ce18d40bd22ff1abe3904
// Check if we have a tab in the page selected onload // This might occur if someone wiht no pushState support // sends a link to someone if (window.location.hash.substring(1, 2) === '!') { // If not just a #! hash if (window.location.hash.length > 2) { // Build the url to what it would be if pushState supported ...
JavaScript
Annotated/Tabs/Tabs.js
innoying/green-abo.de
mit
2,078
70
codeparrot/github-code
402fedaa9277f3b9b968c2d12cf3c46ae1c7c7ac86fa9252d5070ce027dc0496
import { Component, Input, OnInit, OnDestroy, ViewChildren, QueryList } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { GameHubService } from '../services/game-services.imports'; import { Game, Field, FieldChecked } from '../game.models'; import { GameFieldComponent } from './board-com...
TypeScript
WordHunt.Web/ClientApp/app/game/board/game-board.component.ts
Saaka/WordHunt
mit
1,727
60
codeparrot/github-code
5ab33ea5a7c59b6bac9aa5835282507087fb1db7c619bbebb41ee41eac803a96
import { Component, ViewChild } from '@angular/core'; import { TranslateService } from '@ngx-translate/core'; import { ModalController, NavController, NavParams } from 'ionic-angular'; import * as _ from 'lodash'; import { Logger } from '../../../../providers/logger/logger'; // Pages import { FinishModalPage } from '....
TypeScript
src/pages/integrations/bitpay-card/bitpay-card-topup/bitpay-card-topup.ts
cmgustavo/copay
mit
42,494
1,319
codeparrot/github-code
7f2652e5249615e94d86dea62fe0f0858a3de789b43bb973a0ae327fd33584fc
<!DOCTYPE html> <!--[if IE 8]> <html class="ie ie8"> <![endif]--> <!--[if IE 9]> <html class="ie ie9"> <![endif]--> <!--[if gt IE 9]><!--> <html> <!--<![endif]--> <head> <meta charset="utf-8" /> <title>Smarty - Multipurpose + Admin</title> <meta name="keywords" content="HTML5,CSS3,Template" /> <meta name="...
HTML
HTML/feature-title-parallax-medium.html
Emkrypted/premiereimports
mit
62,492
1,396
codeparrot/github-code
3588305ba92493980808e693e67bb78cb4c366d1d14e8c6afad82068e3b95748
require("sugar"); var async = require("async"), uuid = require("node-uuid"), bcrypt = require('bcrypt-nodejs'); module.exports = { name: "Logins", key: { id: "text", timestamp: "number" }, indices: { ByUser: { columns: { user: "text", timestamp: "number" }, project...
JavaScript
lib/model/logins.js
triploc/pillowfort
mit
2,861
89
codeparrot/github-code
6bd2d3470897f86e70d969d7d8428fb43abc8a7d5ff20f721595cb9f7b351bfb
const async = require('async'); const fs = require('fs'); const gitRev = require('git-rev'); const config = require('../config'); const utils = require('./utils'); const execCommand = utils.execCommand; const GITHUB_TOKEN = process.env.GITHUB_TOKEN; const CDN = 'https://cdn.jsdelivr.net/gh/aframevr/aframe@'; const ...
JavaScript
lib/bumpAframeDist.js
ngokevin/a-frobot
mit
3,527
108
codeparrot/github-code
e9600b2b153ee97135d83fe054b4bf918aaa76cca6c0eb8a7f2b5dfe79e07717
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Threading; using System.Threading.Tasks; using System.Web.Http; namespace Commerce.Results { public class ChallengeResult : IHttpActionResult { public ChallengeResult(string loginPr...
C#
Commerce/Results/ChallengeResult.cs
gyuwon/.NET-Data-Access-Layer
mit
955
33
codeparrot/github-code
014710571148bb76da4488bd1607045a21adc8aa647a7b15494f7202c48b4ca1
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>plugin-utils: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.mi...
HTML
clean/Linux-x86_64-4.13.1-2.0.10/released/8.13.0/plugin-utils/1.1.0.html
coq-bench/coq-bench.github.io
mit
6,590
165
codeparrot/github-code
9bc54676899311bec48563c169bd14d95f601bafa8d101d110ee53803143e490
<?php /** * Base abstract class Controller * All the controller class extends this abstract class * * @author Jacky Amirel * */ abstract class BaseController { /** * urls' vlaues * * @access protected * @var mixed $urlvalues */ protected $urlvalues; /** * The action to execute * * @acces...
PHP
libraries/BaseController.class.php
jackbob2/jackbob
mit
2,651
123
codeparrot/github-code
0b8163c60771f3d2638ef6b77a712c52f0fb427b8bfaecf2736d65493654b0cc
#include <cilk/reducer.h> #include <list> #include <cassert> template<typename State, typename Item> class reducer_consume { public: // Function that consumes an Item to update a State object. typedef void (*func_type)(State*,Item); private: struct View { std::list<Item> items; ...
C
Dojo/Structured Parallel Programming/code/src/pipeline/cilkplus/reducer_consume.h
miguelraz/PathToPerformance
mit
1,452
51
codeparrot/github-code
c2c174eda7ac266f7996cfe422fcec7546d80eb02c0cc67c0e39a694fda93450
public class Circle { /** The radius of the circle */ private double radius = 1; /** The number of objects created */ private static int numberOfObjects = 0; /** Construct a circle with radius 1 */ public Circle() { numberOfObjects++; } /** Construct a circle with a specified radius */ public Circle(doubl...
Java
Exercise_11/Exercise_11_06/Circle.java
jsquared21/Intro-to-Java-Programming
mit
780
38
codeparrot/github-code
e33434a56cb2270cbb2187e20940009f759a2da853ee539b095e12b521f468f8
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Datagathering extends CI_Controller { public function __construct() { parent::__construct(); $this->load->model('Datagathering_model', 'nbdata'); } /** * Function to gather zip files. Currently hard coded to button post, but each b...
PHP
application/controllers/Datagathering.php
pbrooker/nbtest
mit
9,414
360
codeparrot/github-code
db5e82d8374da6d5d7581be8dc274232384050064cfd5bfafa2175b7743ab80e
<?php /* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS B...
PHP
lib/Doctrine/ODM/CouchDB/Configuration.php
marnusw/couchdb-odm
mit
10,408
357
codeparrot/github-code
7c9639690fe25e9531a7465b5d2c1be1d38079b3cd13da0051202a6d712123cc
var bgMobile = { initData: function() { var mobileAgent = new Array("iphone", "ipod", "ipad", "android", "mobile", "blackberry", "webos", "incognito", "webmate", "bada", "nokia", "lg", "ucweb", "skyfire") var browser = navigator.userAgent.toLowerCase() var isMobile = false var sn = b...
JavaScript
src/jsp/inc/bgmobile.js
YanlongLai/pofa-redux
mit
2,089
62
codeparrot/github-code
25ecd4f59a3d2cea136926730f2bd957e12926401901bedadcf0573370e133df
import { createEpicMiddleware, combineEpics } from './redux-promise-epic'; import getSyncEpic from './sync'; import getCacheEpic from './cache'; import { postEpic, deleteEpic } from './mutate'; // DEPRECATED // export specific values of internal modules export { API_REQ, API_RESP_SUCCESS, API_RESP_COMPLETE, API_R...
JavaScript
packages/mwp-api-state/src/index.js
meetup/meetup-web-platform
mit
1,126
41
codeparrot/github-code
e6a0e2fe67f472ac2ed2809a537c3cdb5a7fd4920a5b03d1c890f446ea1e210b
'use-strict'; var strategy = require('./strategy'); var _monitor = require('./../monitoring/monitoring'); //Settings var castlingRate = 40; var checkRate = 100; //var checkMateRate = 200000; //var staleMateRate = 150000; //var movabilityRate = 5; /** * Evaluate the current position for the current player (turn). *...
JavaScript
src/evaluation/evaluator-board.js
ChessCorp/chess-ai-kong
mit
3,486
116
codeparrot/github-code
7309057bd06b2ec83b318a010b55d41a0f867ae21da021ebdc223a668a0ebda4
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include <QMenu> #include <QMenuBar> #include <iostream> #include "CentralPane.h" #include "RightPane.h" #include "TextureViewer.h" #include "common.h" class MainWidget : public QWidget { Q_OBJECT public: MainWidget(QWidget * parent = 0); ...
C
mainwindow.h
siggame/MegaMinerAI-Animator
mit
1,300
90
codeparrot/github-code
744bec5847975b6682e8be8988846c017844eb66157624210c9341d0983742b7
/* * $Id: ReadConditionImpl.h 5426 2012-03-09 14:45:00Z calabrese_p $ * * * Distributed under the OpenDDS License. * See: http://www.opendds.org/license.html */ #ifndef OPENDDS_DCPS_READCONDITIONIMPL_H #define OPENDDS_DCPS_READCONDITIONIMPL_H #include "dds/DdsDcpsSubscriptionC.h" #include "dds/DCPS/ConditionImp...
C
dds/DCPS/ReadConditionImpl.h
binary42/OCI
mit
1,368
58
codeparrot/github-code
a956c3d334a87ce55edccb3bdb1d1fc05f29349cc3e1b5a2fbc6f40aa8ef3c19
/** @file ip_v6_common.h @brief common definitions for hryky::ip::v6. @author HRYKY @version $Id: ip_v6_common.h 324 2014-02-09 04:38:38Z hryky.private@gmail.com $ */ #ifndef IP_V6_COMMON_H_20120818171728387 #define IP_V6_COMMON_H_20120818171728387 //----------------------------------...
C
lib/ip/include/hryky/ip/ip_v6_common.h
hiroyuki-seki/hryky-codebase
mit
1,729
50
codeparrot/github-code
bde7556d6aba16eb6b55414f7821ff14e508526cb955988c5ffb2a87a72b7d31
\hypertarget{classhryky_1_1http_1_1_entity}{\section{hryky\-:\-:http\-:\-:Entity Class Reference} \label{classhryky_1_1http_1_1_entity}\index{hryky\-::http\-::\-Entity@{hryky\-::http\-::\-Entity}} } retains the information about a H\-T\-T\-P Message. {\ttfamily \#include $<$http\-\_\-entity.\-h$>$} \subsection...
TeX
doc/latex/classhryky_1_1http_1_1_entity.tex
hiroyuki-seki/hryky-codebase
mit
4,881
61
codeparrot/github-code
421ab17015572bdddf18e1fd46cb3dc9c850254a9e350518036751d260039806
<!DOCTYPE html> <!-- saved from url=(0064)https://asperin.fas.harvard.edu:444/oars/protected/showEntry.do? --> <html lang="en"> <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Form</title> <!-- Latest...
HTML
02_forms/form_DONE.html
michaelkerry/bootstrap_wksp
mit
8,010
179
codeparrot/github-code
385cd403cd9ca1129f17b99cecc2056676043041b81e51a22dfc2de8eafbef0f
package se.cygni.game; import java.util.stream.IntStream; public class WorldStateMerge { private final int width, height; private final TileMultipleContent[] tiles; private int noofMerges = 0; public WorldStateMerge(int width, int height) { this.width = width; this.height = height; ...
Java
domain/src/main/java/se/cygni/game/WorldStateMerge.java
cygni/snakebot
mit
2,138
84
codeparrot/github-code
c726c7278132437f96a332086fe4794b55f4c697a20e9714c402cab21f7e49ea
/* workq.c -- * * Driver syntax: ./workq [nthreads] * Defaults to nthreads = 1 * * Example of a multi-threaded work queue. This implementation does * not have proper synchronization -- your job is to add it in! Search * for the TODO comments below. * * We do provide some convenience functions to wrap the...
C
2015-09-22/workq/workq.c
huangyuan1993/lecture
mit
6,732
301
codeparrot/github-code
82c9119613ac1e91e31b8d66f59c40695a9563a5907b397dcfdce8ee6edb318f
package petclinic.owners; import java.util.*; import org.junit.*; import static org.junit.Assert.*; import petclinic.util.*; public final class OwnerScreenTest { @TestUtil OwnerData ownerData; @SUT OwnerScreen ownerScreen; @Test public void findOwnersByFullLastName() { Owner davis = ownerData....
Java
samples/petclinic/src/test/java/petclinic/owners/OwnerScreenTest.java
beluchin/jmockit1
mit
2,121
80
codeparrot/github-code
4000a7b4bad803c6b9410e222bbfb17d02730eceda9b1de17d5fd48ff7325ada
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 07 Mei 2017 pada 05.48 -- Versi Server: 10.1.13-MariaDB -- PHP Version: 5.6.20 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT...
SQL
database/mocount.sql
aditradoti/MoCount
mit
5,578
209
codeparrot/github-code
ffa0fe41be4977885f51c0254ba78e93d37528ba8670c225c3ade851f9156793
module IRCSupport module Case # @private @@ascii_map = ['a-z', 'A-Z'] # @private @@rfc1459_map = ['a-z{}^|', 'A-Z[]~\\'] # @private @@strict_rfc1459_map = ['a-z{}|', 'A-Z[]\\'] module_function # Turn a string into IRC upper case, modifying it in place. # @param [String] irc_strin...
Ruby
lib/ircsupport/case.rb
hinrik/ircsupport
mit
2,995
85
codeparrot/github-code
8ee4253d5a31e7db45ddbb7f9ef1a4d24ac9da716ee0811d78d16efb821b6114
<?php namespace Axiom\Rivescript; use Axiom\Rivescript\Cortex\Input; use Axiom\Rivescript\Cortex\Output; class Rivescript { /** * Create a new Rivescript instance. */ public function __construct() { include 'bootstrap.php'; } /** * Load RiveScript documents from files. ...
PHP
src/Rivescript.php
vulcan-project/rivescript-php
mit
749
40
codeparrot/github-code
3c1322a713677b5bcdab9f7eb651cd80042ea98616c3e341b604fcc4d804e215
class EqualCard::Solver attr_reader :pattern def initialize(pattern) @pattern = pattern end def solve equations.select do |equation| exps = equation.split('=') next false unless EqualCard::Solver.valid?(exps) first = EqualCard::Solver.eval_exp(exps[0]) exps.all? do |exp| ...
Ruby
lib/equal_card/solver.rb
kei-s/equal_card
mit
2,068
92
codeparrot/github-code
530fd39f17a09b40b8097a11c05ea8804664c3e6afa125b0854997c5eda08a2f
var React = require('react'); import PropTypes from 'prop-types'; export default class BooleanWidget extends React.Component { static propTypes = { componentname: PropTypes.string.isRequired, entity: PropTypes.object, name: PropTypes.string.isRequired, onChange: PropTypes.func, value: PropTypes.b...
JavaScript
src/components/widgets/BooleanWidget.js
aframevr/aframe-inspector
mit
1,088
51
codeparrot/github-code
2cf5cc4f5901fc16bd043d5797b990a6f44be38721cfb600a09f3b39c6ac9ac9
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="Website for The Electronics Club of IIT Bombay. Electronics Club is a group of ele...
HTML
tutorials/avr/8-pwm/index.html
elec-club-iitb/elec-club-iitb.github.io
mit
12,366
322
codeparrot/github-code
4cd6b4ef61ac2edbffe500ebf8806c0a40eac47eb3d3643cf25c08d8606d8833
import * as React from 'react' import ChannelMemberQuery from 'desktop/apps/article/queries/channelMember' import PropTypes from 'prop-types' import { positronql as _positronql } from 'desktop/lib/positronql' import styled from 'styled-components' import { data as _sd } from 'sharify' import { pluck, contains } from 'u...
JavaScript
src/desktop/apps/article/components/EditButton.js
kanaabe/force
mit
1,735
62
codeparrot/github-code
85a344dde213a200f318a861e73b2dc744890255129d29d3758b8ae1488fb929
<?php namespace re24\Qiiter\Test\Entity; use re24\Qiiter\Entity\Item; class ItemTest extends \PHPUnit_Framework_TestCase { private $item; public function setUp() { $this->item = new Item(); } public function itemProvider() { return [ [[ 'b...
PHP
test/src/Entity/ItemTest.php
re-24/qiiter
mit
3,519
106
codeparrot/github-code
7770059e7d201c673653d3195f0a6ae383d3f7b3ccb102d242557d5e806c94c6
class ProductsController < ApplicationController # GET /products # GET /products.xml access_control do allow :admin deny :member end def index @products = Product.find_all_by_farm_id(@farm.id) respond_to do |format| format.html # index.html.erb format.xml { render :xml => @pro...
Ruby
app/controllers/products_controller.rb
liahhansen/eggs
mit
2,267
93
codeparrot/github-code
174303450530cb05a8a97f2950393c271499bef4f59d5ad6bb73fb92c6ac82ba
#region License /* * EndPointListener.cs * * This code is derived from EndPointListener.cs (System.Net) of Mono * (http://www.mono-project.com). * * The MIT License * * Copyright (c) 2005 Novell, Inc. (http://www.novell.com) * Copyright (c) 2012-2020 sta.blockhead * * Permission is hereby granted, free of ch...
C#
websocket-sharp/Net/EndPointListener.cs
sta/websocket-sharp
mit
13,764
583
codeparrot/github-code
dc8d1251881b05565d2fa0eabe7a4a5c8b3fed64a5c89516378f28a2d09e4285
/** * A simple test case that determines if elements, specified by a selector, * exist or not. * * The test fails for elements that are found and a case is created for each * one. The test passes is the selector finds no matching elements. */ quail.domOrderMatchesVisualOrder = function (quail, test, Case, options...
JavaScript
src/assessments/domOrderMatchesVisualOrder.js
legendvijay/quail
mit
1,090
40
codeparrot/github-code
6138f98684c17bcd822a2b4c2ad43477a8b52315bd06ed21e50cbc0ab783bd21
namespace _09.List_of_Predicates { using System; using System.Collections.Generic; using System.Linq; public class Startup { public static void Main() { int endRange = int.Parse(Console.ReadLine()); int[] sequence = Console.ReadLine() .Split...
C#
C# Fundamentals/C# Advanced/12. Functional Programming - Exercises/09. List of Predicates/Startup.cs
MihailDobrev/SoftUni
mit
1,457
49
codeparrot/github-code
dc588410ba9c16637b88766e9d7307abb00850c5f3588f423f9569c791fa208b
<?php // Aac\AacBundle\Form\ContactoType.php namespace Aac\AacBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface; use EWZ\Bundle\RecaptchaBundle\Validator\Constraints\True; class ContactoType extends Ab...
PHP
src/Aac/AacBundle/Form/ContactoType.php
aleanalisis/aac
mit
3,702
91
codeparrot/github-code
569bc0871a730cb8e368c88a3f940b5abcdbfbc5f65a38bb1cce7f6c14f8f84a
namespace HELLION.Explorer { partial class FindForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> ...
C#
HELLION.Explorer/Forms/FindForm.Designer.cs
CheeseJedi/HELLION.Explorer
mit
6,807
150
codeparrot/github-code
f29aa6b357644d497803e6a3e2cfee7e3741db5e4960004e12d1b0f6d9ee438b
/** * Command parser * Pokemon Showdown - http://pokemonshowdown.com/ * * This is the command parser. Call it with CommandParser.parse * (scroll down to its definition for details) * * Individual commands are put in: * commands.js - "core" commands that shouldn't be modified * config/commands.js - other co...
JavaScript
command-parser.js
DaBicBoi/infinite
mit
13,550
422
codeparrot/github-code
fc71716af4cd013e33011a8d22de825afe10c22a5873647925181fc1eb2f50ce
/** * This file is part of the JsFormValidationBundle. * * (c) Abhoryo <abhoryo@free.fr> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ var jsfv = new function () { function getComputeMessage(key, placeholders, number) { ...
JavaScript
web/bundles/jsformvalidation/js/_home_form.js
Chivan/Dirigendo
mit
5,160
191
codeparrot/github-code
5a6bd027a8210fa69d1497fd0c2da25ebc018e5b38249277a1a3da644d5eec7a
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="author" content="Open Knowledge"> <meta name="description" content="The Global Open Data Index assesse...
HTML
place/turks-and-caicos-islands/water/2014/index.html
okfn/opendataindex-2015
mit
8,198
180
codeparrot/github-code
87cb7339dbed194a33c20557b71595f7bd5d2d46ee2b982d4512af39e713ec4a
from django import forms from seednetwork.forms import SeedNetworkBaseForm from seedlibrary.models import Event GRAIN_CHOICES = ( ('-','-'), ('amaranth','Amaranth'), ('barley', 'Barley'), ('buckwheat', 'Buckwheat'), ('corn', 'Corn'), # ('kaniwa', 'Kaniwa'), ('mil...
Python
seedlibrary/forms.py
RockinRobin/seednetwork
mit
6,875
100
codeparrot/github-code
5fa17e30a916693d2dece10ec7ea033639d81f6fdf6b396374ab1b395737ffc8
using System; using System.Collections.Generic; using System.Linq; using Ozeki.Media.Codec; using Ozeki.VoIP; using Ozeki.VoIP.Media; using Ozeki.VoIP.MessageSummary; using Ozeki.VoIP.SDK; using OzekiDemoSoftphoneWPF.Model.Data; using TestSoftphone; using System.ComponentModel; using Ozeki.Network.Nat; using System.Ne...
C#
OzekiDemoSoftphoneWPF/Model/SoftphoneEngine.cs
SmarterDB/secret-sensa
mit
27,886
941
codeparrot/github-code
4225eaa1c3e0f3c66f31cd426a24724bb2091359e87814a15484a1f3de2b71f3
<?php /** * Template Name: CMS_Location * * @package Genesis Sample * @author StudioPress * @license GPL-2.0+ * @link http://www.studiopress.com/ */ if ( !is_user_logged_in () ) { // Not logged in wp_redirect( esc_url( home_url( '/', 'https' ) ) ); exit; } // Add landing page body class to the head. add_...
PHP
web/app/themes/giftplatform-theme/page_cms_location.php
growlingfish/giftplatform-bedrock
mit
1,938
68
codeparrot/github-code
d2757ea94e7d2f51efd7d7c757a2bdab9a4cc5e1f394ff13eacf06ef1798f445
<section class="m-doc-details" id="{{ typedef.id }}"><div> <h3> {% if compound.templates != None or typedef.templates != None %} {% if typedef.include %} <div class="m-doc-include m-code m-inverted m-right-m m-text-right"><span class="cp">#include</span> <...
HTML
documentation/templates/doxygen/details-typedef.html
mosra/m.css
mit
3,043
51
codeparrot/github-code
e6a1985799e61327fd28aa1a4d22e351c00f75885d101b3bae618f52893d4dfd
#include "sendcoinsentry.h" #include "ui_sendcoinsentry.h" #include "guiutil.h" #include "bitcoinunits.h" #include "addressbookpage.h" #include "walletmodel.h" #include "optionsmodel.h" #include "addresstablemodel.h" #include <QApplication> #include <QClipboard> SendCoinsEntry::SendCoinsEntry(QWidget *parent) : ...
C++
src/qt/sendcoinsentry.cpp
betachen/ttcoin
mit
4,296
176
codeparrot/github-code
ad6ee9edd88a4771be7639f33ab04cf98e4bee25eaa60bd6949b60a16e9742f5
// Copyright 2016 CodisLabs. All Rights Reserved. // Licensed under the MIT (MIT-LICENSE.txt) license. package models import ( "time" "github.com/CodisLabs/codis/pkg/models/etcd" "github.com/CodisLabs/codis/pkg/models/fs" "github.com/CodisLabs/codis/pkg/models/zk" "github.com/CodisLabs/codis/pkg/utils/errors" )...
GO
pkg/models/client.go
wfxiang08/codis
mit
1,164
43
codeparrot/github-code
61f6f2acab10409dc99a4cee8d5c7a77ef7733666109bea4157e7cd3da7777e1
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Archives • fanei's Tech Blog</title> <!-- Twitter Cards --> <meta name="twitter:title" content="Archives"> <meta name="twitter:card" content="summary"> <meta name="twitter:image" content="/images/logo.png"> <!--...
HTML
_site/archives/index.html
fanei/fanei.github.io
mit
5,246
218
codeparrot/github-code
d9bbba8c9de4541b76b135c5abb7f226b56516951580f2bc23f74d31da20b073
<?php /* * This file is part of Twig. * * (c) 2010 Fabien Potencier * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ class Twig_Extensions_Extension_Intl extends Twig_Extension { public function __construct() { if ...
PHP
lib/Twig/Extensions/Extension/Intl.php
sroze/twig-extensions
mit
4,749
147
codeparrot/github-code
51be0a3fd49a802fc83d52b86a65619731bfcd939c76b8319f8a7fa7c1871b03
from pyramid.view import view_config from pyramid.httpexceptions import HTTPFound from pyramid_sqlalchemy import Session from ..forms.news import NewsAddForm, NewsForm from ..models.news import NewsModel @view_config(route_name='news', renderer='templates/news.jinja2') def news_view(request): news = Session.query(...
Python
fosstp/views/news.py
fosstp/fosstp
mit
2,170
63
codeparrot/github-code
549717f68fe58edc7bd5fcfdc6d1eee171a8cd18a3ce743b8cb3b0a29b1f2ee8
// // Created by Tomasz Nanowski on 09.01.2016. // #include "battle.h" int battle_cmp(const void *a, const void *b) { return (*(int *) b - *(int *) a); } Pair battle(int attack_power, int defense_power) { int attack_dices_amount, defense_dices_amount; int attack_dices[3], defense_dices[2]; while (at...
C
src/battle.c
AThom0x7cc/SimpleHexRiskGame
mit
1,175
42
codeparrot/github-code
fa94d70faf844af104dcb84126e162f059c8a153e83c4f21a185f0e73d706fd3
import _plotly_utils.basevalidators class LineValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__(self, plotly_name="line", parent_name="scatter3d.marker", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
Python
packages/python/plotly/plotly/validators/scatter3d/marker/_line.py
plotly/python-api
mit
5,005
102
codeparrot/github-code
63174a2b6d91c888b5068eb6eacca128dad2f0c1f7bbfb93c7dd0ddf6c0839b1
/* * The MIT License * * Copyright (c) 2017 Fulcrum Genomics LLC * * 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 us...
Scala
tools/src/main/scala/com/fulcrumgenomics/str/cmdline/FgStrMain.scala
fulcrumgenomics/fgstr
mit
3,279
88
codeparrot/github-code
2886a71cac56ea83c302ba2b60b1aef6fe3c062e169aab94c1618fccc0f48964
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Created on Sat Sep 26 23:44:04 2015 @author: willy """ import random import hashlib import argparse import shutil, os, time def write_a_file(destination, character, size=1): """ Create random file with specifyed size (in GBytes) and copy them to "destina...
Python
microSDcheck.py
willyrv/microSDcheck
mit
3,837
107
codeparrot/github-code
792e5a4a4ff7f614c5e178a25a990816c9d2f1749d71a03dc7da1047d06b778e
/** */ package petstore.implementation; import retrofit2.Retrofit; import petstore.Usages; import com.google.common.reflect.TypeToken; import com.microsoft.azure.CloudException; import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture; import com.microsoft.rest.ServiceResponse; import java....
Java
Samples/azure-storage/Azure.Java/implementation/UsagesImpl.java
anudeepsharma/autorest
mit
5,232
127
codeparrot/github-code
d18a70ae7cf5a6d366c07c548b4112a65507969bdc29b8249b934e20884ff0ef
# edge detection and colorspaces, includes laplacian and sobel filters that are tuned to the pink whiffle ball import cv2 import numpy as np def nothing(x): pass cap = cv2.VideoCapture(0) cv2.namedWindow('frame1') kernel = np.ones((5,5),np.uint8) # create trackbars for color change, tuned to pink whiffle ball #...
Python
preseason_edge_detection/edge_detection.py
FRC900/2016VisionCode
mit
1,892
68
codeparrot/github-code
28e5dfc01eb902d08059116acb0f4d9920609e1953531d9ca760419605bbda94
jui.define("chart.brush.rangebar", [], function() { /** * @class chart.brush.rangebar * @extends chart.brush.core */ var RangeBarBrush = function(chart, axis, brush) { var g, height, half_height, barHeight; var outerPadding, innerPadding; var borderColor, borderWidth, borderOpacity; this....
JavaScript
project/bonereport/js/chart/brush/rangebar.js
nizbridge/nizbridge.github.io
mit
1,890
72
codeparrot/github-code
6c44f6a1dd46059d1c4070a2f26c7fb7423ae6d8a97458e420a44837a977edf2
import {Component, OnInit, OnDestroy, Input} from '@angular/core'; import {ActivatedRoute, Router} from '@angular/router'; import {VehicleService} from './vehicle.service'; import {Vehicle, Maintenance, MaintenanceType} from './models'; import {AppService} from './app.service'; import {keyGenerator} from '../odm/main';...
TypeScript
app/maintenance.component.ts
rodrigopmatias/vehicles-dashboard
mit
2,024
78
codeparrot/github-code
cae157dab6a3d0f3aca9b777bef2cc12b9c71af309c90dc370bc3795a0001084
/* --------------------------------------------------------------------------- Open Asset Import Library (ASSIMP) --------------------------------------------------------------------------- Copyright (c) 2006-2010, ASSIMP Development Team All rights reserved. Redistribution and use of this software in source and bin...
C++
dependencies/assimp-2.0.863/code/BaseProcess.cpp
mtwilliams/mojo
mit
3,253
97
codeparrot/github-code
2f9a3715ad0668f3ea529c7461c6d725a688df97d7f5186caa05f484d75a58a1
--- layout: default main-class: 'async' --- <main class="home" id="scroll" role="main" itemprop="mainContentOfPage" itemscope="itemscope" itemtype="http://schema.org/Blog"> <h1 class="title-category">async</h1> <div id="grid" class="row flex-grid"> {% for post in site.posts %} {% if post.main-class...
HTML
category/sidekiq.html
rubygsoc/rubygsoc.github.io
mit
1,706
36
codeparrot/github-code
649b1a56e4945c8d135fda81d64bc0429b94adbcf9aa48e9c0418cdd526bd240
/** * Copyright 2017 Colin Doig. Distributed under the MIT license. */ #ifndef SPORT_LIMITORDER_H #define SPORT_LIMITORDER_H #include <json/json.h> #include "greentop/JsonMember.h" #include "greentop/Optional.h" #include "greentop/sport/enum/BetTargetType.h" #include "greentop/sport/enum/PersistenceType.h" #inclu...
C
include/greentop/sport/LimitOrder.h
captain-igloo/greentop
mit
4,595
113
codeparrot/github-code
5caaa4eb6376986aac904214f67a8574b8028aa5297c416884f913d74dc36483
/** * abstract class with logic that several collections share */ //window.themingStore.collections.AbstractCollection = Backbone.Collection.extend({ window.themingStore.collections.AbstractCollection = Backbone.Collection.extend({ /** * Searches the rest layer for matches to the input arriving inside the params...
JavaScript
web/js/compiled/compiled_part_6_AbstractCollection_2.js
jclaros/tst
mit
2,282
83
codeparrot/github-code
30e8519c9f2b80784b4e4d954df961a1bc6697e77f8cbf2d5e7c7d505768f565
package integration; import com.codeborne.selenide.ex.FrameNotFoundException; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import static com.codeborne.selenide.Condition.name; import static com.codeborne.selenide.Condition.text; import static org.assertj.core.api.Assertions.assertThat; ...
Java
src/test/java/integration/FramesTest.java
simple-elf/selenide
mit
4,454
131
codeparrot/github-code
692aeb7024b6d91d2ddbfae825eac66a873b6432b6779d1d4adb3c356779a850
using Sprache; using System.Collections.Generic; using System.Linq; namespace SharpVk.Generator.Specification { public static class SimpleParser { private static readonly Parser<LenExpression> lenExpressionParserRef = Parse.Ref(() => lenExpressionParser); private static readonly Parser<LenEx...
C#
src/SharpVk.Generator/Specification/SimpleParser.cs
FacticiusVir/SharpVk
mit
6,853
100
codeparrot/github-code
b405dc76b8bc9ca9826c7c32769b89761d1a271580e449beb31a778f4ab13df9
// Generated from DateRange.g4 by ANTLR 4.5.1 package com.beebell.datespecs; import org.antlr.v4.runtime.atn.*; import org.antlr.v4.runtime.dfa.DFA; import org.antlr.v4.runtime.*; import org.antlr.v4.runtime.misc.*; import org.antlr.v4.runtime.tree.*; import java.util.List; import java.util.Iterator; import java.util.A...
Java
src/main/java/com/beebell/datespecs/DateRangeParser.java
kodecharlie/datespecs
mit
46,747
1,591
codeparrot/github-code
2839dfb50c3440e8116180db5345002bd29e4d996a0b2a2df3976d1ebbcea480
/*--------------------------------------------------------- * Copyright (C) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------*/ 'use strict'; var goMode_1 = require('./go...
JavaScript
dotfiles/.vscode/extensions/lukehoban.Go-0.6.38/out/src/goStatus.js
colek42/devsetup
mit
1,272
37
codeparrot/github-code
376b0c607cc6822b2a7d62238c162758c297d7b6f3d83c166971008757592e09
import logging import gym import numpy as np from universe import spaces from universe import vectorized from universe.wrappers.gym_core import gym_core_action_space logger = logging.getLogger(__name__) def slither_vnc(space=False, left=False, right=False): return [spaces.KeyEvent.by_name('space', down=space), ...
Python
universe/wrappers/experimental/action_space.py
openai/universe
mit
6,525
139
codeparrot/github-code
97c59e92b84c08eca9548c6531c45a953171555d445c9e4065310d1b2398dae0
package commandline.language.parser; import commandline.command.CommandLineException; import org.jetbrains.annotations.Nullable; /** * User: gno, Date: 06.01.2015 - 17:04 */ public class CommandParseException extends CommandLineException { public CommandParseException() { super(); } public CommandParseExcepti...
Java
src/main/java/commandline/language/parser/CommandParseException.java
Gabro86/java-command-line-interface
mit
778
31
codeparrot/github-code
324407a61654a9e0d0a6c6300d641e616207152b4432f3fc215c6bd8e20d63c6
<div class="col-sm-4 pull-left left-nav-panel"> <div class="panel panel-default col-md-12"> <h4 class="panel-heading">User&rsquo;s Ads</h4> <ul class="panel-body"> <li class="list-group-item"> <a href="#/admin/ads" data-ng-click="myAdsSetFilter('0')">All</a> <a href="#/admin/ads" onclick="return false;...
HTML
template/admin/ads.html
theroot79/angularJSproject
mit
3,563
88
codeparrot/github-code
3c9e1c1b50c14a24fe57b29f0c175a8fcd07c3af8599700372181233ed087867
<!DOCTYPE html> <html lang="en"> <head> <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/> <meta charset="utf-8"/> <title> S3C3 API Documentation &raquo; \s3c3\except\SchemeNameException </title> <meta name="author" content=""/> <meta name...
HTML
docs/phpdoc/classes/s3c3.except.SchemeNameException.html
evardsson/s3c3
mit
45,426
736
codeparrot/github-code
800758454e13b4c626ce5ef31467a525b6362ea4ea7f3d7f7309b94951e7e967
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ namespace App\Util; /** * Description of ValiDataHelper * * @author MIGUEL */ class ValiDataHelper { ...
PHP
module/App/src/App/Util/ValiDataHelper.php
UVInventario/Relace
mit
3,992
120
codeparrot/github-code
6f6e02d54498e84febb3041477b60988cafa7db983fa351bde86ef9839aea9e2
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>hammer: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css"...
HTML
clean/Linux-x86_64-4.05.0-2.0.1/released/8.5.3/hammer/1.3.1+8.11.html
coq-bench/coq-bench.github.io
mit
7,292
179
codeparrot/github-code
16426d6ba59b0eed9648f0e603e4c499824e42a3510c302cc99cee66be622a7c
var cheerio = require("cheerio"); var fs = require("fs"); var optimizr = require("../optimizr.js").optimizr; var task = optimizr.newTask(); task.name("HTML scripts location"); task.debug("Checking if HTML files contain scripts before body tags"); task.explanation("When a browser encounters a script element, it delays ...
JavaScript
OptimizrJsPOC/tasks/Script Location Task.js
anlawande/POCs
mit
1,394
43
codeparrot/github-code
6bca16366f7356046576e1e17ff21f593ee8cad48e1da35964668c349783d59a
<?php /* @Framework/FormTable/hidden_row.html.php */ class __TwigTemplate_b1352d3c2f4f458821b8f84caed8af18d6cfabe6aec6162ee011b3cee8a9efa1 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = arr...
PHP
var/cache/prod/twig/58/58329df76ddf04b87d4ad2e9dda0a8042b7ef8683169b23fbf9e53fbf5b56347.php
deileo/Autoservisas_Kursinis
mit
925
43
codeparrot/github-code
fb4333d06f43aa707d6789d7edd662632f7a1cd63a9eaacc3b1501ba5022f523
# Sets completion options. # Return if requirements are not found. if [[ "$TERM" == 'dumb' ]]; then return 1 fi # Add zsh-completions to $fpath # Assumes brew install fpath=(/usr/local/share/zsh-completions $fpath) COMP_DUMP_FILE="${ZDOTDIR:-$HOME}/.zcompdump" # The path to the completion cache file. # Initiali...
Shell
zsh/completions.zsh
hpoydar/dotfiles
mit
6,826
157
codeparrot/github-code
055cebbd22aa649256b2f37c5223b125eb06469912e6e34b4c1ac5c7c9c26ad9
using System; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Hosting; using Serilog; using Serilog.Events; namespace DataCenter.Web { public class Program { public static int Main(string[] args) { Log.Logger = new LoggerConfiguration() #if DEBUG .Min...
C#
src/DataCenter.Web/Program.cs
xin2015/DataCenter
mit
1,570
55
codeparrot/github-code
3350bb35c8c64bb414a5144b618ecb236c71d3a73604d20922ba9d46dc29008c
/* * The MIT License * * Copyright (c) 2017 Edoardo Luppi <lp.edoardo@gmail.com>. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limita...
Java
src/lppedd/j/api/commands/STRJRNPF.java
lppedd/j
mit
3,553
111
codeparrot/github-code
d32b40355f4322d9ab3598112986d92d320d14563805fa085bc2584233f46b39
package orm import ( "database/sql" ) type MyDb struct { *sql.DB } func NewDb(driverName, dataSourceName string) (*MyDb, error) { db, err := sql.Open(driverName, dataSourceName) if err != nil { return nil, err } mydb := &MyDb{DB: db} return mydb, nil } func (this *MyDb) Query(query string, args ...interfac...
GO
orm/db_mysql.go
ourgo/wego
mit
2,976
145
codeparrot/github-code
e3231795d16c5f7b2beb918110c11a8cfc743317b5cbd07f931f17fc20a2e5c7
namespace HttpJsonRpc { public static class JsonRpcErrorCodes { public const int ParseError = -32700; public const int InvalidRequest = -32600; public const int MethodNotFound = -32601; public const int InvalidParams = -32602; public const int InternalError = -32603; ...
C#
src/HttpJsonRpc/JsonRpcErrorCodes.cs
httpjsonrpcnet/httpjsonrpcnet
mit
1,063
35
codeparrot/github-code
d0cdcc14b86483f5b28047ae9435e9ed7b0f19d74874f157d0c3a1d11bf3251c
"use strict"; var RunQuery = require('./runquery'); var Guid = require('./guid'); var StoryController = (function () { function StoryController() { } StoryController.getStories = function (username) { return RunQuery.runQuery("SELECT (SELECT COUNT(1) FROM cycles WHERE story = stories.id) AS cyclecou...
JavaScript
server/dal/storycontroller.js
saycle/saycle
mit
3,779
86
codeparrot/github-code
147ddc0fb411b371e3f2eaa4ac68fbfaa40e235afa6c26edd468495417a40360
/* * ArcadeModeView.h * Bumble Tales * * Created by Robert Shoemate on 7/30/09. * Copyright 2009 Conjured Realms LLC. All rights reserved. * */ #pragma once #include "ResourcePuzzle.h" #include "Input_Engine.h" #include "ArcadeModeHUD.h" #include "StarHUD.h" #include "IView.h" #include "StoryModeSaveInfo.h" ...
C
BumbleTales/ArcadeModeView.h
shoerob/BumbleTales
mit
2,883
128
codeparrot/github-code
d87bb4932bfab24f76190b87be7d2b53a8d2860ace31e57decafcbc8489619c3
<?php declare(strict_types=1); namespace StructType; use InvalidArgumentException; use WsdlToPhp\PackageBase\AbstractStructBase; /** * This class stands for NonEmptyArrayOfChannelEventsType StructType * @package Ews * @subpackage Structs * @author WsdlToPhp <contact@wsdltophp.com> */ class EwsNonEmptyArrayOfCh...
PHP
src/StructType/EwsNonEmptyArrayOfChannelEventsType.php
WsdlToPhp/PackageEws365
mit
36,356
642
codeparrot/github-code
d23e135aa351412b1cde53d49047a9ae5ce58cfce6a86e160deb58f514a58773
#include <nanogui/common.h> #include <nanogui/opengl.h> #include <nanogui/theme.h> #include <nanovg.h> #include <spdlog/spdlog.h> #include "graph.hpp" #include "graphnodelink.hpp" #include "graphnode.hpp" #include "connector.hpp" #include "sink.hpp" NAMESPACE_BEGIN(QCE); Connector::Connector(GraphNode *parent, Graph...
C++
src/connector.cpp
sosterwalder/mte7102-proj2
mit
4,507
163
codeparrot/github-code
3bf0b6482290d62a94861809a42a5deda1191bd99171200379b6883e5f762a3d
<?php namespace intelworx\dbvc; /** * Description of DBMigrationRevision * * @author JosephT */ abstract class DBMigrationRevision { protected $id; protected $title; protected $file; protected $checksum; public function __construct($id, $file, $checksum, $title = null) { $this->id = ...
PHP
DBMigrationRevision.php
logbon72/dbvc
mit
3,392
128
codeparrot/github-code
c2a40ec99868af16a768090856a605034af8b3951ce502bfecc2674a907a9c07
#ifndef INCLUDE_CORE_GRAPHICS_COLORUTILS_H_ #define INCLUDE_CORE_GRAPHICS_COLORUTILS_H_ namespace ml { class ColorUtils { public: /** * Converts an HSL color value to RGB. Conversion formula * adapted from http://en.wikipedia.org/wiki/HSL_color_space. * Assumes rgb and hsl values are in [0, 1]. */ templa...
C
mLib/include/core-graphics/colorUtils.h
techmatt/d3d11-interceptor
mit
2,980
96
codeparrot/github-code
09b30c5db1c76d8754ac62ceb8803e83ac2f2f34daf0e1e16e3e1851ba90abea
using LocalTravelInfo.Model; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Web; namespace LocalTravelInfo { public class PublishingTask { public string Title { get; set; } public string Description { get; set; } public byte[] FileConte...
C#
PublishingTask.cs
sdl/language-cloud-dotnet-sample
mit
864
35
codeparrot/github-code
5f7cb9cb28487a66693883125a54ccaa377f30bff327da4ff3398562021fd678
#include "agent_client_interface.h" #include "los_bsp_led.h" #include "los_task.h" #include "coap.h" #include "coap_liteos_port.h" #include "ocean_porting.h" static board_callback_t agentfunc; static coap_callback_t coapfunc; static int socket = -1; extern int get_cmd; extern int uset_value; int a...
C
1-nbiot-liteos-oceanconnect/miniprojects/LiteOS_ThunderSoft_STM32FL476VETx/LiteOS_Netport/agenttiny/agent_client_interface.c
softbaddog/iot-codelabs
mit
1,642
74
codeparrot/github-code
5f3b78585e1def49fad4291acfd3ce0e7a743e021675723085810076db284c08
// This optional code is used to register a service worker. // register() is not called by default. // This lets the app load faster on subsequent visits in production, and gives // it offline capabilities. However, it also means that developers (and users) // will only see deployed updates on subsequent visits to a p...
JavaScript
app/javascript/src/serviceWorker.js
michelson/chaskiq
mit
5,072
142
codeparrot/github-code