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 |
|---|---|---|---|---|---|---|---|---|
41a3a5e22138915dcf7f273fe0f48e93ad74a29ed6c8e7bf27573e1dfb51432b | //jQuery time
var current_fs, next_fs, previous_fs; //fieldsets
var left, opacity, scale; //fieldset properties which we will animate
var animating; //flag to prevent quick multi-click glitches
$(".next").click(function(){
if(animating) return false;
animating = true;
current_fs = $(this).parent();
next_fs = $(t... | JavaScript | survey/js/selective.js | quizzr-cms/quizzr | mit | 2,860 | 116 | codeparrot/github-code |
c0dc6b0e3dd7bc046e4083d794a62a6f438f32e65a4d52a1afb9078dce1b9c0e | #! /usr/bin/env python
"""
Arast Daemon
The Arast daemon runs on the control node.
"""
import argparse
import sys
import signal
import daemon
import logging
import lockfile
import multiprocessing
import os
import pymongo
import pika
import router
from ConfigParser import SafeConfigParser
import shock
import cloud
#... | Python | lib/assembly/arastd.py | levinas/assembly | mit | 4,544 | 132 | codeparrot/github-code |
b63deae869ab42f740cd4487945547dba2a2c40564b57242cbc512d7bbbd125e | using System;
using TrueCraft.API.Logic;
using TrueCraft.API;
using TrueCraft.API.World;
using TrueCraft.API.Networking;
namespace TrueCraft.Core.Logic.Blocks
{
public class TrapdoorBlock : BlockProvider, ICraftingRecipe
{
public enum TrapdoorDirection
{
West = 0x0,
East... | C# | TrueCraft.Core/Logic/Blocks/TrapdoorBlock.cs | robinkanters/TrueCraft | mit | 3,802 | 121 | codeparrot/github-code |
71d08e68d58d14f14a5b136c4c8536b5fda97caa5844be63869a3f2e116600bc | /*global define*/
define([
'../Core/Cartesian2',
'../Core/defaultValue',
'../Core/defined',
'../Core/defineProperties',
'../Core/destroyObject',
'../Core/DeveloperError',
'../Core/Matrix4',
'../Core/writeTextToCanvas',
'./BillboardCollection',
... | JavaScript | libraries/cesium/cesium-b30/Source/Scene/LabelCollection.js | uhef/Oskari-Routing-frontend | mit | 24,752 | 641 | codeparrot/github-code |
bbc0fd66e82187c1f1ffb589f3eea92ac0c9ae37fb21c6924212e0c9359ab1e2 | package org.lambda3.indra.core.vs;
/*-
* ==========================License-Start=============================
* Indra Core Module
* --------------------------------------------------------------------
* Copyright (C) 2016 - 2017 Lambda^3
* --------------------------------------------------------------------
* Pe... | Java | indra-core/src/main/java/org/lambda3/indra/core/vs/AbstractVectorSpace.java | Lambda-3/indra | mit | 8,609 | 212 | codeparrot/github-code |
22206b49cc8299833573f43fb75e541103b63350bda601cce0f7c17b8caa8857 | #include "f2c.h"
#include "blaswrap.h"
/* Subroutine */ int zlatrz_(integer *m, integer *n, integer *l,
doublecomplex *a, integer *lda, doublecomplex *tau, doublecomplex *
work)
{
/* System generated locals */
integer a_dim1, a_offset, i__1, i__2;
doublecomplex z__1;
/* Builtin functions */
voi... | C | third_party/clapack/SRC/zlatrz.c | dacap/loseface | mit | 5,138 | 170 | codeparrot/github-code |
ee099634ee29c2508c4e91c14c6c243f899d8fa797f3c606885cee50e13f62e1 | <?php
namespace PhpBrew\PrefixFinder;
use PhpBrew\PrefixFinder;
use PhpBrew\Utils;
/**
* The strategy of finding prefix using include paths.
*/
final class IncludePrefixFinder implements PrefixFinder
{
/**
* @var string
*/
private $path;
/**
* @param string $path
*/
public func... | PHP | src/PhpBrew/PrefixFinder/IncludePrefixFinder.php | phpbrew/phpbrew | mit | 524 | 34 | codeparrot/github-code |
95106439a4297b5c5c55d22852ef824960190edef30c95b935d01cb79a815fe1 | /* */
'use strict';
var SyntheticUIEvent = require("./SyntheticUIEvent");
var ViewportMetrics = require("./ViewportMetrics");
var getEventModifierState = require("./getEventModifierState");
var MouseEventInterface = {
screenX: null,
screenY: null,
clientX: null,
clientY: null,
ctrlKey: null,
shiftKey: null... | JavaScript | jspm_packages/npm/react@0.14.2/lib/SyntheticMouseEvent.js | JHKennedy4/nqr-client | mit | 1,298 | 39 | codeparrot/github-code |
ab300f10bda60a2f0ff4be0c6d6c402551a1306c534ab5aa4293608c96ba4796 | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
#python proto2csv.py --proto_file=/tmp/logs/minitaur_log_2019-01-27-12-59-31 --csv_file=/tmp/logs/out.csv
#each line in csv contains: angle, velocity, action, torque
import tensorflow as tf
import argparse
imp... | Python | shared/bullet3-2.89/examples/pybullet/gym/pybullet_envs/minitaur/actuatornet/proto2csv.py | MadManRises/Madgine | mit | 1,333 | 46 | codeparrot/github-code |
0773d9a8e367e16e16a094ed5c79dd020e88ac1b69c5b27f10465bc58ad63720 | 'use strict';
var Chain = require('./chain');
var Block = require('./block');
var DB = require('./db');
var chainlib = require('chainlib');
var BaseNode = chainlib.Node;
var util = require('util');
var bitcore = require('bitcore');
var Networks = bitcore.Networks;
var _ = bitcore.deps._;
var genesis = require('./genes... | JavaScript | lib/node.js | bitpay/chainlib-bitcoin | mit | 1,415 | 63 | codeparrot/github-code |
7ad5285e22c98e67975f4023753cc7aa0a683c2365d85ac3ba25d2624d7f71f3 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="description" content="admin-themes-lab">
<meta name="author" content="themes-lab">
<link rel="shortcut icon" href="../assets/global/i... | HTML | backend/normal/ThemeLab/layout2/forms-input-masks.html | newset/theme | mit | 59,776 | 1,191 | codeparrot/github-code |
505c59c2f3310318dbc192aabc5dc316431e725feb066866fbfa27e76612c0bf | /* Copyright (C) 2002-2021 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the ... | C | lib/libc/include/generic-glibc/sys/personality.h | zig-lang/zig | mit | 2,722 | 80 | codeparrot/github-code |
19ea715387513f1f550791253770d970245b6a8a61a7411ce554e25a711853de | declare module "react-router" {
// NOTE: many of these are re-exported by react-router-dom and
// react-router-native, so when making changes, please be sure to update those
// as well.
declare export type Location = {
pathname: string,
search: string,
hash: string,
state?: any,
key?: string... | JavaScript | definitions/npm/react-router_v4.x.x/flow_v0.53.x-v0.62.x/react-router_v4.x.x.js | flowtype/flow-typed | mit | 3,224 | 125 | codeparrot/github-code |
3609b105de171f6ac061df64a690ffe75c3efdb2895d29aa6f7cfd16414af89c | using Android.Support.V7.Widget;
using Android.Widget;
using Flowers.Helpers;
namespace Flowers
{
public partial class MainActivity : ActivityBaseEx
{
private RecyclerView _flowersList;
private TextView _lastLoadedText;
private Button _refreshButton;
public RecyclerView Flowers... | C# | Flowers/Flowers.Droid/MainActivity.ui.cs | lbugnion/sample-2017-techorama | mit | 1,004 | 42 | codeparrot/github-code |
8ac93bfef2d6a71af362ade8e86705da10641c9cb4629df4a68e21affbdfeacb | using WebHost.AspId;
using WebHost.IdSvr;
/*
* Copyright 2014 Dominick Baier, Brock Allen
*
* 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... | C# | CustomViews/IdSvr/Factory.cs | javagg/idsvr3-mono | mit | 1,513 | 46 | codeparrot/github-code |
736d7bc7f5f8969cc3b753a039e4a1f4b2c42c90f46a68ea40c719fed5aa5712 | /**
*
* @license
* Copyright (C) 2016 Joseph Roque
*
* 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 applicable ... | TypeScript | src/containers/discover/Discover.tsx | joseph-roque/uottawa-campus-guide | mit | 6,754 | 217 | codeparrot/github-code |
649782d7a76c58c1ecf78bf101b3788b0cb7ee7ee921e13c39962fdd057625d3 | using System;
using System.Collections.Generic;
using System.Threading;
namespace Common.RemoteUi
{
public interface IGuiTable
{
GuiTableData TableData { get; }
}
public class GuiTableData
{
public string[] Headers { get; set; }
public List<string[]> Data { get; set; }
... | C# | Common/RemoteUi/TableData.cs | LykkeCity/MarketPlace | mit | 7,530 | 317 | codeparrot/github-code |
d5ddb9339a00314f05887b79c8c3416c7adf5f4e23267a24491214e3a3cc61c5 | import expect from 'expect';
import Joi from 'joi';
import mockStore from '../../helpers/mockStore';
import validate from '../../../../frontend/src/actions/form/validate_schema';
import * as constants from '../../../../frontend/src/constants/form';
describe('form/validate_schema', () => {
const schema = Joi.object(... | JavaScript | test/unit/actions/form/validate_schema.js | carlosascari/opencollective-website | mit | 1,396 | 44 | codeparrot/github-code |
cea6601f1a9c5bbe57ecd7c160ffd5bf2b4b73057e13c3d14dd5c7a9c86b5e3f | /*
||
|| @file Keypad_I2C.cpp
|| @version 0.1.8
|| @author Mark Stanley, Alexander Brevig, Evan Simkowitz
|| @contact mstanley@technologist.com, alexanderbrevig@gmail.com, esimkowitz@wustl.edu
||
|| @description
|| | This library provides a simple interface for using matrix
|| | keypads over an I2C interface. It suppor... | C++ | firmware4/lib/Keypad_I2C/src/Keypad_I2C.cpp | peacemoon/IoTBox | mit | 9,371 | 301 | codeparrot/github-code |
b2d2093287212e87bb09f11f2e91b8ce295ec4e5badf99ad75232bb6664385c1 | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import {getLowestCommonAncestor, isAncestor} from 'shared/ReactTreeTraversal';
import {
executeDirectDispatch,
hasDispatches,... | JavaScript | packages/legacy-events/ResponderEventPlugin.js | Simek/react | mit | 24,162 | 613 | codeparrot/github-code |
3d3abb659e44f82dba86df84269cc577ec5fbed88f806a6d0d1c291aed232a07 | #include <Switch/Switch>
using namespace System;
namespace Examples {
class Program {
public:
// The main entry point for the application.
static void Main() {
int window = 10;
int freq = 60 * 60 * 2; // 2 hours;
DateTime d1 = DateTime::Now();
DateTime d2 = d1.AddSeconds(2 * wind... | C++ | examples/Switch.System/DateTime/DateTime.cpp | gammasoft71/Switch | mit | 2,651 | 61 | codeparrot/github-code |
7ca2a1f9fdf84adea139646cd9f95901246b482b348c1c745e817dec289539ee | #pragma strict
public var fadeSpeed : float = 2f; // How fast the light fades between intensities.
public var highIntensity : float = 2f; // The maximum intensity of the light whilst the alarm is on.
public var lowIntensity : float = 0.5f; // The minimum intensity of the light whilst the alarm is on... | JavaScript | Assets/Scripts/AlarmSystems/ALarmLight.js | pokka/Stealth | mit | 1,890 | 53 | codeparrot/github-code |
63eb64ffeb8c133801f07226612d614ef7a4bbd6af8e9a05d13f7d0a6468aa52 | """
Base Class for formatters. Does nothing with passed data by default;
Children should implement formatters as necessary
"""
# Import Built-Ins
import logging
from abc import ABCMeta, abstractmethod
# Import Third-Party
# Import Homebrew
# Init Logging Facilities
log = logging.getLogger(__name__)
class Formatter... | Python | bitex/formatters/base.py | nlsdfnbch/bitex-crawler | mit | 4,054 | 150 | codeparrot/github-code |
dad867d3970584552d261fd0d2144ce942762cfd3d09cf53a478517136bac81c | <?php
namespace Conekta;
use \Conekta\Object;
abstract class Util
{
public static $types = array(
'webhook' => '\Conekta\Webhook',
'webhook_log' => '\Conekta\WebhookLog',
'billing_address' => '\Conekta\Address',
'bank_transfer_payout... | PHP | lib/Conekta/Util.php | Curiosity-Education/curiosity-v.1.0 | mit | 2,965 | 85 | codeparrot/github-code |
25d871a2559540d293d14836dc6348b6c0d6a4a7ed25c4f3c532ab3f2a2edff0 | package com.example.avjindersinghsekhon.minimaltodo.About;
import android.content.pm.PackageInfo;
import android.graphics.Color;
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.Fragment;
im... | Java | app/src/main/java/com/example/avjindersinghsekhon/minimaltodo/About/AboutActivity.java | avjinder/Minimal-Todo | mit | 3,042 | 89 | codeparrot/github-code |
4da3b3ab00b7355459756e7b6119ffb463e03eec1035c8d67ab214ae02053399 | /* globals Stats, dat, AMI*/
// VJS classes we will be using in this lesson
var LoadersVolume = AMI.default.Loaders.Volume;
var CamerasOrthographic = AMI.default.Cameras.Orthographic;
var ControlsOrthographic = AMI.default.Controls.TrackballOrtho;
var HelpersStack = AMI.default.Helpers.Stack;
var M... | JavaScript | lessons/05/demo.js | Doomedfajita/UPCI-CoSBBI | mit | 18,422 | 416 | codeparrot/github-code |
58f71070e8d8e7cb3720ba777da07d03bef6fa9829df8fe9c99fbf039d2ea0c2 | var mongo=require("mongodb").MongoClient;
var ObjectId=require("mongodb").ObjectId;
var persistencia = function(db) {
this.db=db;
this.usuariosCol;
this.resultadosCol;
var self=this;
this.obtenerColeccion=function(nombreColeccion,callback){
mongo.connect("mongodb://pepe:pepe@ds131878.mlab.com:31878... | JavaScript | servidor/persistencia.js | AdrianBernal/procesos | mit | 3,484 | 114 | codeparrot/github-code |
244d6831cff44f5b0b23d1cebb07b80bec69415665ebec9e35517a1d8bf73973 | const passport = require('passport');
const { wrapAsync } = require('../util.js');
const ServiceFactory = require('../services/ServiceFactory.js');
const logger = require('../log.js');
module.exports.init = function(server, options) {
let userService = ServiceFactory.userService(options.db, ServiceFactory.configS... | JavaScript | server/api/user.js | cryogen/throneteki | mit | 2,387 | 66 | codeparrot/github-code |
e7ef6d7b4c42eef40944b916b1edbb352a4865ccd5e709832693f630710d08ab | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { expect } from 'chai';
import { describe, it } from 'mocha';
import { parse } from '../parser';
import { print } from '../printe... | JavaScript | src/language/__tests__/visitor-test.js | gabelevi/graphql-js | mit | 47,041 | 1,254 | codeparrot/github-code |
b3fcbb7fbd8fa2d5fa94581f339fa47d5e3072463d2d89d8f8c6759c3c86a99a | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information
namespace DotNetNuke.Web.DDRMenu
{
using System;
using System.Collections.Generic;
using System.... | C# | DNN Platform/Modules/DDRMenu/Actions.cs | nvisionative/Dnn.Platform | mit | 7,084 | 199 | codeparrot/github-code |
9d965a4650b76ab6aa8627f4d1ac8f7e5a20544ad34dfc1f13a11be2aa0c339a | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... | JavaScript | test/mashplayer.js | matita/mashplayer | mit | 49,510 | 1,863 | codeparrot/github-code |
bc138bebda10287c036cdbf9f9aa6af5127192e990bce5ebbd5fbfe72f274dc7 | define(['marionette',
'./menuJQueryUITemplate.hbs',
'rup.menu'], function (Marionette, MenuJQueryUITemplate) {
var MenuView = Marionette.LayoutView.extend({
template: MenuJQueryUITemplate,
redirectNavLink: fncRedirectNavLink,
ui: {
menuElement: '#x21aResponsiveWar_menu',
menuMixedElement: '#x21aResponsi... | JavaScript | demo/app/shared/menu/menuJQueryUIView.js | UDA-EJIE/uda-rup | mit | 7,641 | 342 | codeparrot/github-code |
75e9f2b4b67883fd6c4ed14a34a429d580d9cf439376fd6c4dd369ed29753025 | <?php
/* RMCARGODashboardAdminBundle:Admin:prio_monitoring.html.twig */
class __TwigTemplate_d1c284cc78b4aafef4c254f5fc0a39ed5b753c83ddd8ed46205089f7053ed592 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = $this->env->load... | PHP | app/cache.old/prod/twig/d1/c2/84cc78b4aafef4c254f5fc0a39ed5b753c83ddd8ed46205089f7053ed592.php | Diaks/git_repo-dashboard | mit | 5,827 | 147 | codeparrot/github-code |
00655fd28eb51f0377a5ab95f25b01606df331e876a1f347ad2053f5150a2183 | /*
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
* ... | Java | jsrepl/tools/closure-compiler/trunk/src/com/google/javascript/rhino/SimpleErrorReporter.java | Dandandan/wikiprogramming | mit | 3,814 | 121 | codeparrot/github-code |
35ec6439bcadf40355c860bbaa1c93361b9b0ba1bf888d7760d76ab55159fa18 | <!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
<head>
{{ partial "head-open" . }}
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ .Title }}</title>
{{ if .Site.Params.favicon }}
<link rel="icon" href="{{ .S... | HTML | themes/minimal/layouts/partials/header.html | ghishadow/ghishadow.github.io | mit | 2,934 | 78 | codeparrot/github-code |
3eb9bd416353ee20e73dc78bf03377f831455e8624fa472e6ad00f32e1973afe | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import operator
import string
import six
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from mptt import models as mptt
from polymorphic.models import PolymorphicModel
from simple_history imp... | Python | core/models/sample.py | wbg-optronix-lab/emergence-lab | mit | 16,814 | 419 | codeparrot/github-code |
eebc9e00bd2e1044c6b31713d8d53918a006c5341ad763061fc3a0ce6d57ce0d | #pragma once
#include <Alembic/AbcGeom/All.h>
#include <Alembic/AbcCoreHDF5/All.h>
#include <Alembic/AbcCoreOgawa/All.h>
#include "ofMain.h"
#include "ofxAlembicUtil.h"
namespace ofxAlembic
{
class PolyMesh;
class Points;
class Curves;
class Camera;
class XForm;
struct Point;
enum Type
{
POINTS = 0,
CURVES,
PO... | C | src/ofxAlembicType.h | perfume-dev/ofxAlembic | mit | 2,328 | 123 | codeparrot/github-code |
696943a67ef4b31535d81ba9bf866efa7598997db4217aab1bfe18bad5f62c13 | /*
* port of ECCE editor to Scratch
* modified by gtoal for scratch-llvm syntax
* THE CODE BELOW IS NOT A PART OF SCRATCH-LLVM,
* AND IS NOT LICENSED UNDER SCRATCH-LLVM'S LICENSE
*/
#include <stdio.h>
#include <stdlib.h>
static int instream = 0, outstream = 0;
int trap (int mask)
{
return (0);
}
void
dosigna... | C | console2.c | bobbybee/scratch-llvm | mit | 3,146 | 221 | codeparrot/github-code |
4cb42a7092049e08c7ac174ef9fb3906db9dbbe272788a8727e592578a85d52b | package mundosk_libraries.jsoup.parser;
import mundosk_libraries.jsoup.Jsoup;
import mundosk_libraries.jsoup.helper.Validate;
import mundosk_libraries.jsoup.nodes.*;
import java.util.List;
/**
* Use the {@code XmlTreeBuilder} when you want to parse XML without any of the HTML DOM rules being applied to the
* docum... | Java | src/mundosk_libraries/jsoup/parser/XmlTreeBuilder.java | TlatoaniHJ/MundoSK | mit | 5,090 | 138 | codeparrot/github-code |
f9be0b75f4fa998b8a862ec79c8f41d31886994cf0240db3c6bb01e4e69fd3a0 | /**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {Injector} from '../di';
import {NgModuleRef} from '../linker/ng_module_factory';
import {QueryList} from '..... | TypeScript | packages/core/src/view/types.ts | royling/angular | mit | 14,167 | 491 | codeparrot/github-code |
405d09b5850ae4b1ab9c3be113e537edefadf3ba3b05d5fd235c03dd413a037b | import os, sys, time
import zmq
#import chroma.api as api
#api.use_cuda()
import numpy as np
#from chroma.sim import Simulation
#from chroma.event import Photons
#import chroma.event
#from uboone import uboone
import ratchromadata_pb2
import photonHit_pb2
import cProfile
import message_pack_cpp
context = zmq.Context(... | Python | testing/ChromaPoller.py | phansen01/RATChromaServer | mit | 7,389 | 172 | codeparrot/github-code |
2da71ddc4accef8c2a94289056e6c8a14c54be1b232b9da79b2dc8058399efba | this.workbox = this.workbox || {};
this.workbox.navigationPreload = (function (exports,logger_mjs) {
'use strict';
try {
self.workbox.v['workbox:navigation-preload:3.6.2'] = 1;
} catch (e) {} // eslint-disable-line
/*
Copyright 2018 Google Inc.
Licensed under the Apache License, Version 2.0 (the ... | JavaScript | workbox-v3.6.2/workbox-navigation-preload.dev.js | Mountainview-WebDesign/lifestonechurch | mit | 5,360 | 160 | codeparrot/github-code |
9e89c8225e76c4f506cd88e8b5a3ba55b53a90e045c9603b08867f37fe40be6f | <?php
namespace Hautelook\ShipmentTracking;
/**
* @author Adrien Brault <adrien.brault@gmail.com>
*/
class ShipmentInformation
{
/**
* @var ShipmentEvent[]
*/
private $events;
/**
* @var \DateTime
*/
private $estimatedDeliveryDate;
public function __construct(
array... | PHP | src/ShipmentInformation.php | adrienbrault/shipment-tracking | mit | 1,990 | 91 | codeparrot/github-code |
b512787db58c7f2d277ab523486a11fa487326457e64cb095666064f3d3e68f8 | //%LICENSE////////////////////////////////////////////////////////////////
//
// Licensed to The Open Group (TOG) under one or more contributor license
// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
// this work for additional information regarding copyright ownership.
// Each contributor lice... | C | src/Providers/UNIXProviders/PickerStatData/UNIX_PickerStatData.h | brunolauze/openpegasus-providers-old | mit | 3,815 | 100 | codeparrot/github-code |
6391d4d8a0b1f73fd20d3004a905cd5d0b5e4028a5bc8c2d0a7d7442f85ac2ed | function Refspec(utils) {
return function (src, dst) {
var _this = this
, _priv = utils._createPrivate(_this);
_priv.srcRoot = (src !== null) && src.slice(-1) === "*" ? src.slice(0, -1) : src;
_priv.dstRoot = (dst !== null) && dst.slice(-1) === "*" ? dst.slice(0, -1) : dst;
utils._immutable... | JavaScript | lib/refspec.js | beni55/node-gitteh | mit | 1,387 | 53 | codeparrot/github-code |
6bf68ac70da553a5fc5e2ef3eef8263773e6e6cdee35c34e42f89410812ba568 | package devopsdistilled.operp.client.items.panes;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.inject.Inject;
import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JTe... | Java | OpERP/src/main/java/devopsdistilled/operp/client/items/panes/EditManufacturerPane.java | njmube/OpERP | mit | 3,523 | 115 | codeparrot/github-code |
366a80b04d766cfd0a183831599e535999d9fd200c5301a76dd8082a0c929889 | # coding: utf-8
class ApplicationController < ActionController::Base
protect_from_forgery
helper_method :current_user, :replace_locale, :namespace,
:fb_admins, :has_institutional_videos?, :institutional_video
before_filter :set_locale
before_filter :detect_locale
# TODO: Change this way to ... | Ruby | app/controllers/application_controller.rb | obedeugene/Urbanfunder | mit | 4,067 | 147 | codeparrot/github-code |
e7d1ab1de73a7d22fc8e757dd6847ff70678e300d4b21acb05217c0d2d4baf6a | # frozen_string_literal: true
require "action_dispatch/http/request"
require "action_dispatch/middleware/exception_wrapper"
require "action_dispatch/routing/inspector"
require "action_view"
module ActionDispatch
# This middleware is responsible for logging exceptions and
# showing a debugging page in case the re... | Ruby | actionpack/lib/action_dispatch/middleware/debug_exceptions.rb | bogdanvlviv/rails | mit | 5,796 | 181 | codeparrot/github-code |
51f71eb14e6d72eaa2bb975629638bffb1a9f5317019d0b2a5454183b407eb5e | 'use strict'
var fs = require('fs')
var path = require('path')
var test = require('tap').test
var requireInject = require('require-inject')
var npm = require('../../lib/npm.js')
// XXX update this when rpt's realpath.js is extracted out
var rptRealpath = require.resolve('read-package-tree/realpath.js')
const common =... | JavaScript | lts/deps/npm/test/tap/no-scan-full-global-dir.js | enclose-io/compiler | mit | 3,226 | 108 | codeparrot/github-code |
5e4eab4aff1299e7d9be75069d42ed52e0385677f2893dc0fd013337213f5a5d | <?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Class: Zip::ZipError</title>
<meta http-equiv="C... | HTML | tools/Rake/lib/ruby/gems/1.8/doc/rubyzip-0.9.4/rdoc/classes/Zip/ZipError.html | michaelsync/Giles | mit | 2,416 | 111 | codeparrot/github-code |
7787124e6a4d11f428563a9ede0ea9704ff12af1fafeb37c075cd7a52de794d2 | /* eslint-disable @typescript-eslint/no-use-before-define */
import * as React from 'react';
import ImageList from '@material-ui/core/ImageList';
import ImageListItem from '@material-ui/core/ImageListItem';
import ImageListItemBar from '@material-ui/core/ImageListItemBar';
import IconButton from '@material-ui/core/Icon... | JavaScript | docs/src/pages/components/image-list/CustomImageList.js | callemall/material-ui | mit | 3,599 | 126 | codeparrot/github-code |
111669409c8e466d1e3ea5bd69fa2e2fe8e119da85ceb63e64cd6869cac1d156 | using System;
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
#endif
namespace HouraiTeahouse {
/// <summary> A PropertyAttribute that exposes a Layer control on the editor </summary>
[AttributeUsage(AttributeTargets.Field)]
public class LayerAttribute : PropertyAttribute {
}
#if UNITY_EDITO... | C# | Attributes/LayerAttribute.cs | HouraiTeahouse/HouraiLib | mit | 985 | 34 | codeparrot/github-code |
b76f86278ac353af38692d74be0eafdaf9e8775f42b4eda7b48f958ac3010478 | /**
* This file is a component of Quartz Powered, this license makes sure any work
* associated with Quartz Powered, must follow the conditions of the license included.
*
* The MIT License (MIT)
*
* Copyright (c) 2015 Quartz Powered
*
* Permission is hereby granted, free of charge, to any person obtaining a cop... | Java | src/main/java/org/quartzpowered/protocol/codec/v1_8_R1/play/client/OpenWindowCodec.java | quartz-powered/server | mit | 2,831 | 67 | codeparrot/github-code |
57b8822ee6b1736a8e9606cae7485e294853f70fad49833a168ca81818177033 | namespace X.PagedList.Web.Common
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.Encodings.Web;
public sealed class PagedListRenderOptions
{
///<summary>
/// The default settings render all navigation links and no descriptive text
... | C# | src/X.PagedList.Mvc.Core/Common/PagedListRenderOptions.cs | kpi-ua/X.PagedList | mit | 19,954 | 430 | codeparrot/github-code |
5be26dbe801f4d10357f92bed62fe74571d11946b6fb69649bc9bf1bd83929c1 | <?php
declare(strict_types=1);
namespace Phpro\SoapClient\CodeGenerator\Assembler;
/**
* Class GetterAssemblerOptions
*
* @package Phpro\SoapClient\CodeGenerator\Assembler
*/
class GetterAssemblerOptions
{
/**
* @var bool
*/
private $boolGetters = false;
/**
* @var bool
*/
pr... | PHP | src/Phpro/SoapClient/CodeGenerator/Assembler/GetterAssemblerOptions.php | janvernieuwe/soap-client | mit | 1,792 | 100 | codeparrot/github-code |
a440088598166f68f002b1de376dad448c03c13e303456834acf8451a0d74103 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
using Azure.Core;
using Azure.Me... | C# | sdk/eventhub/Azure.Messaging.EventHubs.Shared/src/BlobCheckpointStore/BlobsCheckpointStore.cs | ayeletshpigelman/azure-sdk-for-net | mit | 56,566 | 959 | codeparrot/github-code |
d3f18b01337becddd31c2205967a3ccc5bb05ae1eb67c3b0a291bfb710d68c58 | // <copyright file="CudaLinearAlgebraProvider.cs" company="Math.NET">
// Math.NET Numerics, part of the Math.NET Project
// http://numerics.mathdotnet.com
// http://github.com/mathnet/mathnet-numerics
//
// Copyright (c) 2009-2016 Math.NET
//
// Permission is hereby granted, free of charge, to any person
// obtaining ... | C# | src/Numerics/Providers/LinearAlgebra/Cuda/CudaLinearAlgebraProvider.cs | albertp007/mathnet-numerics | mit | 6,567 | 172 | codeparrot/github-code |
97117d8a2cd4005f9d32c08674b8e529d2bd958fc322c91525973ec209934723 | /**
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be... | JavaScript | testing/rrdtool/js/Color.js | GridProtectionAlliance/ARMORE | mit | 2,327 | 77 | codeparrot/github-code |
25f11f2e22bf7dc99111c475de10942e6b7b53341b129eda107c9fe1de446a48 | using EngineLayer;
using EngineLayer.Calibration;
using EngineLayer.ClassicSearch;
using EngineLayer.FdrAnalysis;
using FlashLFQ;
using IO.MzML;
using MassSpectrometry;
using MzLibUtil;
using Nett;
using Proteomics;
using Proteomics.Fragmentation;
using System;
using System.Collections.Generic;
using System.IO;
using S... | C# | TaskLayer/CalibrationTask/CalibrationTask.cs | zrolfs/MetaMorpheus | mit | 20,790 | 348 | codeparrot/github-code |
e33461669bcfd14ababff92593ee13a8e6653c4e8758710dfe1a9d53542176bb | package functions;
import android.app.Activity;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.view.View;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;
import android.view.animation.AnimationSet;
... | Java | app/src/main/java/functions/Utils.java | Swati4star/NSIT-Connect | mit | 5,792 | 175 | codeparrot/github-code |
c5333bbc3fc0046ef70915380e8402961827dbb15a91da258d0412d3a800d98c | // * ———————————————————————————————————————————————————————— * //
// * website api forwarder
// * this module forwards the express application to enduro application
// * to enable building of custom api and functionality
// * ———————————————————————————————————————————————————————— * //
const website_api = function (... | JavaScript | libs/website_app.js | Gottwik/Enduro | mit | 1,078 | 36 | codeparrot/github-code |
d4a9156aadbdacd4d5e587495ae9ad0641e428b365d8486be1e86c919cee4ecc | <header-component tagline="Documentation"></header-component>
<section class="main-content">
<h2><a id="documentation" class="anchor" href="#documentation" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Documentation</h2>
<h3><a id="inputs" class="anchor" href="#configuration"... | HTML | src/app/pages/documentation/documentation.component.html | guilleva/ng2-smart-table | mit | 28,613 | 924 | codeparrot/github-code |
44f904e10832151ef46e82335d3e7b8b66f5b49dc90d6ef62932b921a27fa0a8 | package net.ontrack.extension.github.client;
import net.ontrack.core.model.Entity;
import net.ontrack.extension.api.property.PropertiesService;
import net.ontrack.extension.github.GitHubAuthenticationProperty;
import net.ontrack.extension.github.GitHubExtension;
import org.apache.commons.lang3.StringUtils;
import org.... | Java | ontrack-extension/ontrack-extension-github/src/main/java/net/ontrack/extension/github/client/DefaultGitHubClientConfiguratorFactory.java | joansmith/ontrack | mit | 1,428 | 37 | codeparrot/github-code |
08359ce93d253640ee22935be7e9a850a1d321176ce87a1c1eb4613700b9a805 | <!DOCTYPE html>
<html lang="en">
<head>
<title>three.js webgl - vector - text</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<link type="text/css" rel="stylesheet" href="main.css">
<style>
body {
background-col... | HTML | examples/webgl_shaders_vector.html | QingchaoHu/three.js | mit | 7,600 | 328 | codeparrot/github-code |
325547129e8e5f74d9df25c81c94421baa69fbbc28f6b97fe3a7b03e49c2781a | /**
* The MIT License
* Copyright (c) 2014 Ilkka Seppälä
*
* 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, ... | Java | cqrs/src/test/java/com/iluwatar/cqrs/IntegrationTest.java | SerhatSurguvec/java-design-patterns | mit | 4,119 | 117 | codeparrot/github-code |
2606f22aa0d8a3986e1c3f149271e82a0c45505bf8e5a0ffaa6f798b653ab141 | <?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>MDL Read test</title>
<script ... | HTML | test/ioTest/mdlTest.html | partridgejiang/Kekule.js | mit | 4,122 | 127 | codeparrot/github-code |
87447391d2bac9159551db054971622724092683e67010a76484ade90de5d72e | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.core.serializer.avro.jackson;
import com.azure.core.experimental.serializer.AvroSerializer;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.dataformat.avro.AvroMapper;
impor... | Java | sdk/core/azure-core-serializer-avro-jackson/src/main/java/com/azure/core/serializer/avro/jackson/JacksonAvroSerializerBuilder.java | selvasingh/azure-sdk-for-java | mit | 2,521 | 69 | codeparrot/github-code |
f95e4bcbfe880547e182b232c709c698d7b2473a3d2aa5e0675c67d3e23328f4 | /**
******************************************************************************
* @file stm32446e_eval_sd.c
* @author MCD Application Team
* @version V1.1.1
* @date 13-January-2016
* @brief This file includes the uSD card driver mounted on STM32446E-EVAL
* evaluation board.
... | C | drivers/BSP/STM32F446E_EVAL/stm32446e_eval_sd.c | ryankurte/stm32f4-base | mit | 19,305 | 601 | codeparrot/github-code |
c5da3cc52329f525d3bb891ea4c3eb7a1fca9f22e15be028c31e37dabc2eb8d7 | import Spotify from './Spotify'
const reservedName = 'ShufflyBlacklist';
let albumLoad;
let self = {};
function getAlbum(profileId) {
return albumLoad || (albumLoad = Spotify.getPlaylists().then(data =>
{
let blacklist;
for (const i in data.items) {
if (data.items[i].name === reser... | JavaScript | src/lib/Blacklist.js | shoegazer/shuffly-now | mit | 1,452 | 51 | codeparrot/github-code |
1c4b13ae41fb5ad1cfb34141a5de29328e77914ff4fcd16a89d5160c7d4382bf | # ============================================================================
#
# Copyright (c) 2007-2011 Integral Technology Solutions Pty Ltd,
# All Rights Reserved.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL... | Python | wlst/apps.py | Integral-Technology-Solutions/ConfigNOW | mit | 6,847 | 155 | codeparrot/github-code |
4b46d82f0e167133f079a23a54a128de2c67172f7799674f29e4976d21eb3296 | function getKOChanceText(damage, defender, field, hits, isBadDreams) {
if (isNaN(damage[0])) {
return 'something broke; please tell Austin or Marty';
}
if (damage[damage.length-1] === 0) {
return 'aim for the horn next time';
}
if (damage[0] >= defender.maxHP) {
return 'guar... | JavaScript | js/ko_chance.js | bmeduho/honko-damagecalc | mit | 12,203 | 307 | codeparrot/github-code |
a36f6e5b7ae848caa9d110c789e594322b1d9cc1a3eb348317b38f9f880e0fa2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<l... | HTML | webserver_files/html/assignment3.html | omegaphoenix/publicWeServed | mit | 22,417 | 477 | codeparrot/github-code |
dd986bb01d69d45ae797c68d9ce71fc640dad1d93942a92e752c969dd28ef240 | var path = require('path'),
fs = require('fs'),
util = require('util'),
Step = require('step'),
EventEmitter = require('events').EventEmitter,
options_merger = require('../util/options_merger'),
cached_key_map = require('../cached_key_map'),
replic... | JavaScript | lib/alfred/meta/database.js | Student007/alfred | mit | 12,000 | 447 | codeparrot/github-code |
d8890b0ec0a7fccc8fea6b1f4cfc02c162b72b3358b369153ed9f69c1f49f36e | // Flags: --expose-http2
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const h2 = require('http2');
const server = h2.createServer();
server.on('stream', common.mustCall(onStream));
function onStream(stream, headers, flag... | JavaScript | nodejs/test/parallel/test-http2-session-stream-state.js | hoho/dosido | mit | 3,385 | 100 | codeparrot/github-code |
ed56ecdbad03693500d107c2827c68e988e2d7904c55cdef433216657179f928 | package com.github.hburgmeier.jerseyoauth2.testsuite.rs2;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import java.io.UnsupportedEncodingException;
import java.net.URI;
import java.net.URLDecoder;
import java.util.LinkedHashMap;
import java.util.Map;
import javax.ws.rs.c... | Java | jersey-oauth2-testsuite-rs2/src/test/java/com/github/hburgmeier/jerseyoauth2/testsuite/rs2/Jersey2Test.java | xiaoligit/jerseyoauth2 | mit | 3,621 | 95 | codeparrot/github-code |
66564b8eef0b99f07254fa717bb5bd735c36617be7c2948f23c958d2810646e3 | /* Copyright (c) 2011 Inando
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish... | C# | src/AdsClient/Helpers/Extensions.cs | nikvoronin/adsclient | mit | 2,055 | 60 | codeparrot/github-code |
c55b1ac4e8c1cd5831663b6b7d72ef671b4ec180a77a6a965b9ff7815a5b727d | import { Injectable } from '@angular/core';
import { Headers, Http } from '@angular/http';
import 'rxjs/add/operator/toPromise';
import { AshaWorkerBasicDetailsModel } from '../model/asha-worker-basic-details-model';
import { AshaWorkersList, DummyAshaWorkerDetails } from './temporary/temp-data';
import { AshaWorkerP... | TypeScript | .history/src/app/service/asha-workers-details.service_20170224102150.ts | mnjkumar426/asha_front | mit | 1,975 | 47 | codeparrot/github-code |
14475a7ef20f256b04b6013a4440a6218cf2661c52afb66bed63a3ebe4b80210 | package ch.heigvd.amt.goomy.rest.dto;
import java.util.Date;
import java.util.Map;
/**
*
* @author Yassin Kammoun (yassin.kammoun@heig-vd.ch)
* @author Karim Ghozlani (karim.ghozlani@heig-vd.ch)
* @author Eléonore d'Agostino (eleonore.dagostino@heig-vd.ch)
*/
public class EventDTO {
private String type;... | Java | project/GoomY/src/main/java/ch/heigvd/amt/goomy/rest/dto/EventDTO.java | yibnl/Teaching-HEIGVD-AMT-2015-Project | mit | 825 | 45 | codeparrot/github-code |
3b18399aa71c65ab68531030028136917d7995c96e3fafdf5b2d6c6a758dca7d | import { path } from '../core/path.js';
import { http } from '../net/http.js';
import { Sprite } from '../scene/sprite.js';
/** @typedef {import('../asset/asset-registry.js').AssetRegistry} AssetRegistry */
/** @typedef {import('../graphics/graphics-device.js').GraphicsDevice} GraphicsDevice */
/** @typedef {import(... | JavaScript | src/resources/sprite.js | MicroWorldwide/PlayCanvas | mit | 5,071 | 149 | codeparrot/github-code |
14ab1f30b7f44b6400a6ea00ed604af628b4586448caaa4b657942e01313c362 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Qt 4.8: s... | HTML | QtEsrc/qt-everywhere-opensource-src-4.8.5/doc/html/script-qsdbg-scriptdebugger-cpp.html | stephaneAG/PengPod700 | mit | 77,941 | 933 | codeparrot/github-code |
429d25d2142d3d113e2b0c90a5e49643e98c0e6d9e0d2aed1f96d6b8e8648d03 | // Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "init.h"
#include "util.h"
#include "sync.h"
#include "ui_interface.h"
#includ... | C++ | src/bitcoinrpc.cpp | jubalix/terracoin-masterfork | mit | 47,482 | 1,331 | codeparrot/github-code |
5a828c22cc9ecf77b5218e0e13a331267165844948caa0a26e804f58684b36b5 | using System;
using System.Collections.Generic;
using System.Windows.Forms;
using WiimoteLib;
namespace WiiWandz
{
public partial class MultipleWiiWandzForm : Form
{
// map a wiimote to a specific state user control dealie
Dictionary<Guid,WiimoteInfo> mWiimoteMap = new Dictionary<Guid,WiimoteInfo>();... | C# | WiiWandz/MultipleWiiWandzForm.cs | bigokro/wiiwandz | mit | 2,500 | 92 | codeparrot/github-code |
7614e76706c7d3fad09d23bf5bafe8af40da08a8a863eb78fcf777d8857cc20b | if RUBY_VERSION < '1.9.0' # this is a string comparison, but it should work for any old ruby version
$stderr.puts "Heroku Toolbelt requires Ruby 1.9+."
exit 1
end
load('heroku/helpers.rb') # reload helpers after possible inject_loadpath
load('heroku/updater.rb') # reload updater after possible inject_loadpath
req... | Ruby | lib/heroku/cli.rb | duypq94/heroku | mit | 1,463 | 53 | codeparrot/github-code |
ee5a685642096b4c178f9170fa1cb40cecf69ede7a94f9df6eb4b1d2d632720f | #!/usr/bin/env python
import xml.etree.ElementTree as ET
import six
from leather.data_types import Number, Text
from leather.series import CategorySeries
from leather.shapes.base import Shape
from leather.utils import X, Y
class Columns(Shape):
"""
Render a series of data as columns.
:param fill_color... | Python | leather/shapes/columns.py | onyxfish/leather | mit | 2,238 | 79 | codeparrot/github-code |
81b0d3c826924db8e6ecd6ab4a30224f038f1fe6ddd8a9e7d88ac9481fa69c3b | <?php
/*
* This file is part of the project RMT
*
* Copyright (c) 2013, Liip AG, http://www.liip.ch
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Liip\RMT\Config;
/**
* Read, parse and validate configuration file
*... | PHP | src/Liip/RMT/Config/Handler.php | liip/RMT | mit | 7,615 | 225 | codeparrot/github-code |
b892c3889436470d744e5fb4bc0f397ed957dd7efac2b775c2b5b3c828b47d8d | //
// detail/win_iocp_null_buffers_op.hpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2018 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0... | C++ | source/LibTpBoost/boost_1_67_0/boost/asio/detail/win_iocp_null_buffers_op.hpp | SingularInversions/FaceGenBaseLibrary | mit | 3,973 | 124 | codeparrot/github-code |
488d88661b1ecb296f4fb775e103f6ec0fd9e0646c5827c050cd859d11c6774c | import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.assertEquals;
import java.math.BigInteger;
import java.util.*;
public class DiffieHellmanTest {
private DiffieHellman... | Java | exercises/practice/diffie-hellman/src/test/java/DiffieHellmanTest.java | jmluy/xjava | mit | 2,918 | 88 | codeparrot/github-code |
7a35618fe72ea1bfc14d8f9cf7ff03aafde2e808d145ae99c22392977e87b279 | /*
---------------------------------------------------------------------------
Open Asset Import Library (assimp)
---------------------------------------------------------------------------
Copyright (c) 2006-2018, assimp team
All rights reserved.
Redistribution and use of this software in source and binary forms,... | C++ | shared/assimp/code/CSMLoader.cpp | MadManRises/Madgine | mit | 11,765 | 309 | codeparrot/github-code |
abe05858fe735e4c92f7a743f9511ee96e6ff0b3fbf8a478f5699dcaf7d4394c | using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using UnityEngine;
namespace StageFSM
{
public abstract class InvokeLastBeat : StageStateMachineBehaviour
{
[SerializeField]
private string triggerName = "LastBeat";
bool subscribedToEve... | C# | Assets/Scripts/FSM/States/Microgame/InvokeLastBeat.cs | NitorInc/NitoriWare | mit | 1,793 | 58 | codeparrot/github-code |
53516d29c86dd20c8ddf33dc364d6d5addf9678caf8022e659983ba57e243d60 | "use strict";
/*<replacement>*/
var bufferShim = require('safe-buffer').Buffer;
/*</replacement>*/
var common = require('../common');
var stream = require('../../');
var assert = require('assert/');
{
var r = new stream.Readable({
autoDestroy: true,
read: function read() {
this.push('hello');
... | JavaScript | test/parallel/test-stream-auto-destroy.js | iojs/readable-stream | mit | 1,908 | 99 | codeparrot/github-code |
795fb817e0674b5000d038f41b1c7fe61e7db255396302f91fd31ba3b511c282 | //
// ContextPane.cs
//
// Authors:
// Gabriel Burt <gburt@novell.com>
//
// Copyright (C) 2009 Novell, Inc.
//
// 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, inclu... | C# | src/Core/Banshee.ThickClient/Banshee.ContextPane/ContextPane.cs | directhex/banshee-hacks | mit | 11,544 | 339 | codeparrot/github-code |
2435d76434c917b1b0ee52dfef06f74ae239b1bc7f3698303fc2e0735d68accf | define( "JBrowse/View/Track/WiggleBase", [
'dojo/_base/declare',
'dojo/_base/array',
'dojo/dom-construct',
'dojo/on',
'dojo/mouse',
'JBrowse/View/Track/BlockBased',
'JBrowse/View/Track/ExportMixin',
'JBrowse/Util',
... | JavaScript | html/plugins/view/jbrowse/src/JBrowse/View/Track/WiggleBase.js | agua/agua | mit | 13,132 | 377 | codeparrot/github-code |
ba069fdeadf8230c3061441ef273dd74e95e657de3bb3cc1de4dfbe910e4ff9b | #ifndef INTERACTIVEPHONEBOOK_H
#define INTERACTIVEPHONEBOOK_H value
#include "ContactManager.h"
class InteractivePhoneBook {
public:
// Starts the interactive phone book application.
void start();
private:
ContactManager contact_manager;
// Prints welcome message
void welcome();
// Prints help menu.
... | C | week11/code/phonebook/InteractivePhoneBook.h | hjalti/gagnaskipan-lectures | mit | 2,170 | 75 | codeparrot/github-code |
028edcce16b7ff8f0b23e5b359195fa2c3f3c734c479ca68ae70f5dd7cad8990 | <!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'>
<title>Atom-Beautify Documentation</title>
<script src='../javascript/application.js'></script>
<script src='../javascript/search.js'></script>
<link rel='stylesheet' href='../stylesheets/application.css' type='text/css'>
</head>
<body>
<div id='bas... | HTML | packages/atom-beautify/docs/code/extra/CHANGELOG.md.html | adammenges/atomconfig | mit | 38,993 | 559 | codeparrot/github-code |
6ab8eae43243cd5fa53392ba0a3f6b45b2f569410a0167a12c610013560cbbc6 | /****************************************************************************
*
* Open Watcom Project
*
* Portions Copyright (c) 1983-2002 Sybase, Inc. All Rights Reserved.
*
* ========================================================================
*
* This file contains Original Code... | C | programs/develop/open watcom/trunk/clib/handleio/lseekwnt.c | devlato/kolibrios-llvm | mit | 2,422 | 83 | codeparrot/github-code |
5baf4b3fa3cf94f292ce7dc315448c59a005837832317a7b76b3094b0f6504d6 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading;
using S... | C# | src/Features/Core/Portable/CodeFixes/ICodeFixService.cs | CyrusNajmabadi/roslyn | mit | 2,692 | 38 | codeparrot/github-code |
0917b65d5825317db6b66eaa797fd9b9fa6c7c4c391bf2d9f9051b3ddae6c9b2 | namespace TextAdventures.Quest.EditorControls
{
partial class WFListEditor
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.... | C# | EditorControls/WFListEditor.Designer.cs | siege918/quest | mit | 8,599 | 182 | codeparrot/github-code |
bc1be30130da526118fbf35dc4945c7d36f7e6558a845b49c44e448fe9566d21 | #include <bits/stdc++.h>
using namespace std;
typedef complex<double> Complex;
namespace FFT
{
const int Nmax = ( 1 << 18 );
const double PI = 3.141592653589793238460;
const double EPS = 1e-10;
Complex A[Nmax], B[Nmax], C[Nmax];
int powerOfTwo, expTwo;
int reverseBits( int x )
{
... | C++ | Contest-Classes/Fast Fourier Transform.cpp | AlexandruValeanu/Competitive-Programming | mit | 2,475 | 119 | codeparrot/github-code |
0ecdf7ed5fedbb873857b870f8b2596613b161b59ed118de6532a30c25e1ed27 | #!/bin/python
# -*- coding: utf-8 -*-
#######################################################
#
# xmlparser generator - by David++ (2014/08/15)
#
# usage:
# xmlpg.py --help
#
#######################################################
import sys
import os
import getopt
import xml.etree.ElementTree as ET
###############... | Python | tools/xmlpg.py | david-pp/tinyworld | mit | 15,160 | 414 | codeparrot/github-code |
c29811bce6f7530b310c5cfff48b6bfa69dd557703167d3ace4d68d5d566153d | /*global window*/
(function (window, undefined) {
// Contains all files that are loaded into the dom.
var domain = {};
window.__dirname = '';
/**
* Used to gain access to modules that have been exported to the
* browser.
* @param string filename Containing the required module.
* @return object
*/
w... | JavaScript | node.js | iaincarsberg/thorny-old | mit | 1,089 | 52 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.