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 |
|---|---|---|---|---|---|---|---|---|
ab78f7c508305d237eb0b6457c9f00f917d12111fc031629e9609c4eab0be37d | package com.ekey.service.impl;
import com.ekey.repository.BooksRepository;
import com.ekey.repository.UserRepository;
import com.ekey.models.Book;
import com.ekey.models.Transaction;
import com.ekey.models.User;
import com.ekey.models.out.UserOut;
import com.ekey.service.TransactionService;
import org.slf4j.Logger;
im... | Java | src/main/java/com/ekey/service/impl/TransactionServiceImpl.java | Faos7/ekey_backend_java | mit | 2,722 | 82 | codeparrot/github-code |
eef63637827fa09fdb8ac47d33c2b1fe0b130ac238ec38c0815d7ae6359788aa | <?php
/**
* Description of FoursquareUser
*
* @author ner0tic
*/
namespace Ddnet\FoursquareBundle\Foursquare;
class FoursquareUser { //extends FoursquareBase {
protected
$id = null,
$createdAt = null,
$oAuthToken = null,
$fname ... | PHP | src/Ddnet/FoursquareBundle/Foursquare/FoursquareUser.php | ner0tic/daviddurost.net | mit | 3,752 | 124 | codeparrot/github-code |
cd705a81ce11b7d2e3aefbd1bad74bbfe5623789fc03b7ad071f24b7473a1151 | using System;
using System.Security.Cryptography;
using System.Text;
namespace Songhay.Extensions
{
using Songhay.Models;
/// <summary>
/// Extensions of <see cref="OpenAuthorizationData"/>.
/// </summary>
public static class OpenAuthorizationDataExtensions
{
/// <summary>
///... | C# | SonghayCore/Extensions/OpenAuthorizationDataExtensions.cs | BryanWilhite/SonghayCore | mit | 3,890 | 92 | codeparrot/github-code |
c4d49b9eb8a85feafc6ad2a23a45ca70d43b7ad78c8445ae71c833404bc7008a | import global from 'global';
import dedent from 'ts-dedent';
import { RenderContext, ElementArgs, OptionsArgs } from './types';
const { window: globalWindow, document } = global;
declare let Ember: any;
const rootEl = document.getElementById('root');
const config = globalWindow.require(`${globalWindow.STORYBOOK_NAM... | TypeScript | app/ember/src/client/preview/render.ts | storybooks/storybook | mit | 2,077 | 81 | codeparrot/github-code |
cc2d3df80d7432fb430add28b7cfc60eff8cb7fad638643ee2c448c9b3766209 | package com.petukhovsky.tpack.task.judge;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.petukhovsky.jvaluer.commons.checker.CheckResult;
import com.petukhovsky.jvaluer.commons.run.InvocationResult;
import com.petukhovsky.tpack.task.tests.Test;
/*... | Java | src/main/java/com/petukhovsky/tpack/task/judge/JudgeTestInfo.java | petuhovskiy/task-packager | mit | 1,002 | 38 | codeparrot/github-code |
33aa5141a277c3eca46e701a142584ffb41ab84807220acfb7d5f299a0f6a630 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>qarith-stern-brocot: 3 m 26 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.m... | HTML | clean/Linux-x86_64-4.08.1-2.0.5/released/8.7.2/qarith-stern-brocot/8.9.0.html | coq-bench/coq-bench.github.io | mit | 21,605 | 283 | codeparrot/github-code |
4d6548397eef93c7d6613b1f60e074c75817b5cfc7332e11bc1c33729f6c56eb | #include "stdafx.h"
#include "Exception.h"
#include "ThreadLocal.h"
#include "Log.h"
#include "IocpManager.h"
#include "EduServer_IOCP.h"
#include "ClientSession.h"
#include "IOThread.h"
#include "ClientSessionManager.h"
#include "DBContext.h"
IocpManager* GIocpManager = nullptr;
LPFN_DISCONNECTEX IocpManager::mFnDi... | C++ | Homework6/EduServer_IOCP/IocpManager.cpp | abiles/gameServer2015 | mit | 5,347 | 186 | codeparrot/github-code |
f61f12f30d1a0b24ed1664d69c3cd4ce701c97fef3346acde9cdd8a190c6e007 | package com.lab603.picencyclopedias;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.support.annotation.Nullable;
import android.view.KeyEvent;
import android.view.Window;
import android.view.WindowManager;
import android.widget.TextView;
... | Java | app/src/main/java/com/lab603/picencyclopedias/SplashActivity.java | Lab603/PicEncyclopedias | mit | 1,929 | 66 | codeparrot/github-code |
2abd327a9a2c515c478a30aa7afc3a0ec8c699ad963fce7ffbe49183e392c1a8 | $.widget( "alexandra.panelSlider", {
options: {
currentView: null, // The panel currently in focus
panels:[] // All panels added to the navigation system
},
//The constructor of the panelSLide widget
_create: function() {
var tempThis=this;
this.element.addClass("pan... | JavaScript | panelSlider.js | alexandrainst/jQuery_panelSlider | mit | 4,880 | 139 | codeparrot/github-code |
9c630f7f9358820ce9b5fb18cc2a310a5be2c881dc15ab7feb06e7ae1a7067ef | /*********************************************************************************
* (Remove duplicates) Write a method that removes the duplicate elements from *
* an array list of integers using the following header: *
* ... | Java | Exercise_11/Exercise_11_13/Exercise_11_13.java | jsquared21/Intro-to-Java-Programming | mit | 1,749 | 48 | codeparrot/github-code |
e69f80fb82889866c6a52ce64a2b55dc9ee982f9d78d3b36c4faa7d6c890639b | (function() {
'use strict';
function movieDetail(movieDetailService) {
return {
restrict: 'EA',
replace: true,
templateUrl: './src/app/movieDetail/template.html',
scope: {},
controllerAs: 'vm',
bindToController: true,
/*jshint unused:false*/
controller: function(... | JavaScript | client/src/app/movieDetail/directive.js | gonzalesm/AngularProject | mit | 1,513 | 44 | codeparrot/github-code |
8a3db0124fb0cbb346ab78403977cf5ea231ace0b3b809fe2a3f69a2c7b1e662 | /*
* The MIT License
*
* Copyright (c) 2015, SmartBear Software
*
* 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... | Java | src/main/java/com/smartbear/jenkins/plugins/testcomplete/TcSummaryAction.java | jenkinsci/testcomplete-plugin | mit | 3,844 | 125 | codeparrot/github-code |
0cfbf6e171285dd999f615cf2803d6d42a6af0c76d4ad262dcdf0aa57684b061 | #ifndef ESCAPESTRINGS_H
#define ESCAPESTRINGS_H
#include "Basics.h"
#include <string>
#include <vector>
/** A Scenario string without any modification
May not contain NUL characters besides the terminator. */
class RawString : public std::string
{
public:
RawString() : std::string() { }
RawString(const std::stri... | C | Chkdraft/src/MappingCore/EscapeStrings.h | mdejean/Chkdraft | mit | 7,438 | 150 | codeparrot/github-code |
d74ec7023f45710f381f9415638473de4ad3b66c658d1179be235dd53aafa98d | /* See license.txt for terms of usage */
require.def("domplate/toolTip", [
"domplate/domplate",
"core/lib",
"core/trace"
],
function(Domplate, Lib, Trace) { with (Domplate) {
// ************************************************************************************************
// Globals
var mouseEvents = ... | JavaScript | harviewer/scripts/domplate/toolTip.js | modjs/mod-pageload-reporter | mit | 3,280 | 127 | codeparrot/github-code |
7fa3e6b9beffb8dbc5d81b14b0b84418d6ada940f4af372a790a4468b194ea09 | package com.gh.datetimeformat;
import static org.hamcrest.Matchers.equalTo;
import static org.junit.Assert.assertThat;
import java.net.URL;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import o... | Java | src/test/java/com/gh/datetimeformat/DateTimeControllerIT.java | datetimeformat/datetimeformat-java | mit | 1,255 | 42 | codeparrot/github-code |
181d721116c8af63b741d1793f1bee6a2948adeb373e77a48b0f9faf232f9623 | import robot from 'robotjs'
import sleep from 'sleep'
import orifice from './fc8_orifice_map.json'
var fs = require('fs')
/*//set speed
robot.setKeyboardDelay(150)
robot.setMouseDelay(100)*/
let type = [
"Orifice",
"Venturi",
"Nozzle",
"Fixed Geometry",
"V-Cone",
"Segmental Meters",
"Linea... | JavaScript | fc8_helpers.js | volcano-group/desktop-automata | mit | 5,602 | 212 | codeparrot/github-code |
73de4b26ab66535a2f06a8797d3a0846466fce9a7f33a3f7448df47a5df27107 | package commands
import (
"bytes"
"errors"
"fmt"
"io"
"time"
key "github.com/ipfs/go-ipfs/blocks/key"
cmds "github.com/ipfs/go-ipfs/commands"
notif "github.com/ipfs/go-ipfs/notifications"
path "github.com/ipfs/go-ipfs/path"
ipdht "github.com/ipfs/go-ipfs/routing/dht"
u "github.com/ipfs/go-ipfs/util"
peer ... | GO | core/commands/dht.go | palkeo/go-ipfs | mit | 13,375 | 581 | codeparrot/github-code |
17af92c4d31a356c0e14fb549647f743abc55e8d80d7a4c76faf7b6fc77146a0 | package petrichor;
import behavior.Aggressive;
import behavior.Behavior;
import robocode.*;
import java.awt.Color;
/**
* Petrichor - a robot by Piper Chester and Michael Timbrook
*/
public class Petrichor extends AdvancedRobot
{
private Behavior active;
/**
* Petrichor's default behavior. Initi... | Java | src/petrichor/Petrichor.java | piperchester/petrichor | mit | 1,021 | 50 | codeparrot/github-code |
b05f899cbef34c0ea82fe35f53c1cc38d64009ced5b2123ea4d5141e6e825d31 | /**
* parent.h 2014-05-03 15:06:28
* anonymouse(anonymouse@email)
*
* Copyright (C) 2000-2014 All Right Reserved
*
* THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
* KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNE... | C | auto-gen/oop/inheritance/parent.h | huawenyu/Design-Patterns-in-C | mit | 1,826 | 74 | codeparrot/github-code |
b6c3254350c3c7406e1f010af09d36f582715fb4e28134ed64fdf7e7b26c1706 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="eo" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About BitTor</source>
<translation>Pri BitTor</translation>
</message>... | TypeScript | src/qt/locale/bitcoin_eo.ts | BitTorCrypto/BitTor | mit | 98,354 | 2,917 | codeparrot/github-code |
397f3c03b8e84e7770e8ad7a29b70ac79cc1410858c0df2043c325616b812570 | package net.techcable.jstruct.visitor;
import net.techcable.jstruct.StructData;
import net.techcable.jstruct.StructManager;
import org.objectweb.asm.*;
import org.objectweb.asm.commons.AnalyzerAdapter;
import org.objectweb.asm.commons.InstructionAdapter;
import org.objectweb.asm.commons.LocalVariablesSorter;
import j... | Java | src/main/java/net/techcable/jstruct/visitor/PassByValueMethodVisitor.java | Techcable/JStruct | mit | 6,480 | 163 | codeparrot/github-code |
2c42a13ed1c3c8ee5c7d7cefd2279353a1d3405fa9c61b1f3b385e9a1b6b0236 | <?php
namespace AppBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
class LocationType extends AbstractType
{
/**
* @param FormBuilderInterface $builder
* @param array $options
*/
... | PHP | src/AppBundle/Form/LocationType.php | chrisciampoli/swiftly | mit | 1,016 | 46 | codeparrot/github-code |
8f1d6a272be4b46637d8760f4b40c9a294c5fb839109f09424851da5224de695 | #region License
// Distributed under the MIT License
// ============================================================
// Copyright (c) 2019 Hotcakes Commerce, LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software
// and associated documentation files (the "Software")... | C# | Libraries/Hotcakes.Commerce/Catalog/OptionSelection.cs | HotcakesCommerce/core | mit | 5,663 | 165 | codeparrot/github-code |
c1d3c789e5aee86a5eb7c4675b9684519876477b6747eebd9ac512bb94850e19 | <?php
/*
* This file is part of the symfony package.
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* sfValidatorDoctrineUnique validates that the uniqueness of ... | PHP | plugins/sfDoctrine/lib/validator/sfValidatorDoctrineUnique.class.php | liding211/hotels | mit | 4,680 | 156 | codeparrot/github-code |
d7c6874d7b8d1f0b9fbf9ae0ab6137aeb77f800fe8b8f740cab362fc99ba1059 | import {
TASK_STATUS_ACTIVE,
TASK_STATUS_COMPLETED
} from 'modules/task/constants';
export class RouterService {
constructor($state, $stateParams) {
this.state = $state;
this.params = $stateParams;
}
isActiveTasks() {
return this.state.is('app.tasks', {filter: TASK_STATUS_ACTIVE});
}
isCom... | JavaScript | src/modules/router/router-service.js | r-park/todo-angular-rx | mit | 738 | 37 | codeparrot/github-code |
f2c1d33242cfac189add9f62de4e8175cb4ca86054e862540344d350121e7da7 | package org.dol.json;
import com.fasterxml.jackson.annotation.JacksonAnnotationsInside;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonToken;
import com.fasterxml.jackson.dat... | Java | common/src/main/java/org/dol/json/JSON.java | dolphinzhang/framework | mit | 13,362 | 336 | codeparrot/github-code |
e2ee9acc3e862e7339f6bcc982fc157690c6e7a8adea71279cf9ebe69d155727 | <?php
namespace DataProcessingProjectBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use UserBundle\Form\UserType;
class Accoun... | PHP | src/DataProcessingProjectBundle/Controller/AccountController.php | celiatoulza/DataProcessingProject | mit | 1,992 | 66 | codeparrot/github-code |
60fc1ea9d6f3a908b7bdaac0a776281c27395721e3689507b5afa050231c9e98 | /**
* @module creatine.transitions
**/
(function() {
"use strict";
/**
* A transition effect to scroll the new scene.
*
* ## Usage example
*
* var game = new tine.Game(null, {
* create: function() {
* var transition = new tine.transitions.Scroll(tine.TOP, null, 1000);
*... | JavaScript | src/scenes/transitions/Scroll.js | renatopp/creatine | mit | 3,100 | 122 | codeparrot/github-code |
d9f588e4d075bfbf0c7da712a84a75b11afdd11fc710670892dfaaea40f1be53 | package com.sevenheaven.zoomviewtest;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.Point;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;... | Java | app/src/main/java/com/sevenheaven/zoomviewtest/MidCircleView.java | 7heaven/SHZoomView | mit | 6,738 | 215 | codeparrot/github-code |
4c52499484d76cb160cf34bb58239aebd23e9333dcb4e9ac9093ce3b6a0f161a | package org.javacs.example;
/**
* A class
*/
public class AutocompleteDocstring {
public void members() {
this.;
}
public void statics() {
AutocompleteDocstring.;
}
/**
* A fieldStatic
*/
public static String fieldStatic;
/**
* A fields
*/
public ... | Java | src/test/examples/maven-project/src/org/javacs/example/AutocompleteDocstring.java | georgewfraser/vscode-javac | mit | 535 | 35 | codeparrot/github-code |
3b00eb65653919bacab9b2fcef0e686a8adf09c7fcbfa8d77dcd7c228391c39f | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package KutzCarRental.WS;
import KutzCarRental.DB.DataBase;
import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.ejb.Stateless;
import KutzCarRental.Domain.Car;
import KutzCar... | Java | KutzCarRentalApplication/src/java/KutzCarRental/WS/KutzCarRentalWS.java | Wirwing/TopicosWeb | mit | 2,666 | 89 | codeparrot/github-code |
4646ebad2b141b3223edb87e54d21857afe26b7fc2db1b44fb285340570bd97b | #include <amqp_tcp_socket.h>
#include <amqp.h>
#include <amqp_framing.h>
#include <iostream>
#include <thread>
#include <chrono>
#include <string.h>
#include <signal.h>
volatile bool g_running = false;
void handler(int)
{
g_running = true;
}
int main(int argc, char**argv)
{
if(argc != 4)
{
std::cerr<<"usag... | C++ | rabbitmq/amqp_publisher.cpp | 60East/comparison-rabbitmq | mit | 2,378 | 79 | codeparrot/github-code |
e3cdb541351bd51e9028a1c3d85af8769ded351ac77c7ee191ce8029b37bf82a | '''
This script demonstrates how to create a periodic Gaussian process
using the *gpiso* function.
'''
import numpy as np
import matplotlib.pyplot as plt
from sympy import sin, exp, pi
from rbf.basis import get_r, get_eps, RBF
from rbf.gproc import gpiso
np.random.seed(1)
period = 5.0
cls = 0.5 # characteristic le... | Python | docs/scripts/gproc.e.py | treverhines/RBF | mit | 1,343 | 46 | codeparrot/github-code |
1295ab1612a60e2771443a497d4e16fcc3467f75aa3906e4eaa058990653b5df | import { Node, Store, Cache } from "gatsby"
/**
* @see https://www.gatsbyjs.org/packages/gatsby-source-filesystem/?=files#createfilepath
*/
export function createFilePath(args: CreateFilePathArgs): string
/**
* @see https://www.gatsbyjs.org/packages/gatsby-source-filesystem/?=files#createremotefilenode
*/
export ... | TypeScript | packages/gatsby-source-filesystem/index.d.ts | ChristopherBiscardi/gatsby | mit | 2,147 | 105 | codeparrot/github-code |
afce3a7af4cf9101cc83d29587c6b3bbf7029fa42fa3330ee1990ad47118961c | <?php
/**
* WPSEO Premium plugin file.
*
* @package WPSEO\Premium\Classes\Redirects
*/
/**
* Represents the filter for removing redirected entries from the sitemaps.
*/
class WPSEO_Redirect_Sitemap_Filter implements WPSEO_WordPress_Integration {
/**
* URL to the homepage.
*
* @var string
*/
protected ... | PHP | wp-content/plugins/wordpress-seo-premium/premium/classes/redirect/redirect-sitemap-filter.php | misfit-inc/misfit.co | mit | 1,780 | 86 | codeparrot/github-code |
3436653471c7829a4766dce762faf8ed9b317cf986dcc7051c236cd4f9a6f11a | /* The copyright in this software is being made available under the BSD
* License, included below. This software may be subject to other third party
* and contributor rights, including patent rights, and no such rights are
* granted under this license.
*
* Copyright (c) 2010-2013, ITU/ISO/IEC
* All rights reser... | C++ | source/Lib/TLibEncoder/TEncSbac.cpp | daewook/video_compression | mit | 55,305 | 1,587 | codeparrot/github-code |
6f9157b4df8b0dc621e0fbd5c865e005bed981d7bc547bbeb86c8e2e8b1ed37c | var should = require('should'),
supertest = require('supertest'),
testUtils = require('../../../utils/index'),
localUtils = require('./utils'),
config = require('../../../../server/config/index'),
ghost = testUtils.startGhost,
request;
describe('Slug API', function () {
var accesstoken = ''... | JavaScript | core/test/regression/api/v0.1/slugs_spec.js | Gargol/Ghost | mit | 5,073 | 137 | codeparrot/github-code |
cab38178fefea2d92e1a29be3c6063fd7d4aa0627a8800ce9bd5aa9bf835c85f | package org.usfirst.frc.team2583.robot;
import org.usfirst.frc.team2583.robot.commands.JoystickDrive;
import edu.wpi.first.wpilibj.IterativeRobot;
import edu.wpi.first.wpilibj.command.Command;
import edu.wpi.first.wpilibj.command.Scheduler;
import edu.wpi.first.wpilibj.livewindow.LiveWindow;
import edu.wpi.first.wpil... | Java | 2016 FRC Java/src/org/usfirst/frc/team2583/robot/Robot.java | WestwoodRobotics/FRC-2016 | mit | 3,165 | 93 | codeparrot/github-code |
ae8de652d99fa01e707e0f32d6f889cc85e8285d2bbb7c5f553e2ed36645c8da | #pragma once
#include "Cpp/Warnings.h"
#include "Cpp/Fundamental.h"
INTRA_PUSH_DISABLE_REDUNDANT_WARNINGS
namespace Intra { namespace Audio {
struct MusicNote
{
enum Type: byte {C, CSharp, D, DSharp, E, F, FSharp, G, GSharp, A, ASharp, B};
//Таблица соответствия нот субконтроктавы частотам
static const float B... | C | Intra/Audio/MusicNote.h | gammaker/Intra | mit | 1,234 | 39 | codeparrot/github-code |
1895f6d1bb6acec9d1949d966e2f72a02c728f8f51af141fb3cd78e75d60f2f7 | ---
layout: default
---
<div class="post">
<h1 class="post-title">
<a href="{{ page.url }}">
{{ page.title }}
</a>
</h1>
<span class="post-date">{{ page.date | date_to_string }} - <span><a href="{{ post.url }}#disqus_thread" data-disqus-identifier="{{ post.url }}"></a></span></span>
{% if page.... | HTML | _layouts/post.html | LiuJoyceC/LiuJoyceC.github.io | mit | 2,040 | 68 | codeparrot/github-code |
17b753fb5e0e73662d8a248cc9892bf3f06499024900e82f7630c318b1cd536b | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!--<meta charset="UTF-8">-->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<!--<meta na... | HTML | index.html | saritajoshi9389/CS7280-VizDOM | mit | 37,875 | 731 | codeparrot/github-code |
24b07249b1f6486670e0f47181fd90afde280a158fdd6bc88afdd143d05eb373 | import * as React from 'react';
import { Component } from 'react';
import { Button, Checkbox, Icon, Table, Input, Container } from 'semantic-ui-react'
import { observable, action } from "mobx";
import { observer } from "mobx-react";
import { BudgetEditorModal } from '../BudgetEditorModal';
import { lazyInject } from ".... | TypeScript | budgety-web/src/components/pages/BudgetsPage.tsx | jacob-swanson/budgety | mit | 3,736 | 93 | codeparrot/github-code |
b546c192fb2c5108fe9e2ff970079c1dcbbeab6a4070eaeef48825e9ce290185 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>pi-agm: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" re... | HTML | clean/Linux-x86_64-4.05.0-2.0.6/released/8.10.1/pi-agm/1.2.2.html | coq-bench/coq-bench.github.io | mit | 7,636 | 176 | codeparrot/github-code |
997d58e1b39aad589308e789c12de8b3c95dfb5b8e6dbbb2f5c552a18e91365f | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>menhirlib: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.c... | HTML | clean/Linux-x86_64-4.13.1-2.0.10/released/8.13.0/menhirlib/20190626.html | coq-bench/coq-bench.github.io | mit | 7,047 | 176 | codeparrot/github-code |
7fca53b44aef1a48eb6198e2c2466de33b76190cdda6834c9cbf55fa3bddf20d | function Grid(size) {
this.size = size;
this.startTiles = 2;
this.cells = [];
this.build();
this.playerTurn = true;
}
// pre-allocate these objects (for speed)
Grid.prototype.indexes = [];
for (var x=0; x<4; x++) {
Grid.prototype.indexes.push([]);
for (var y=0; y<4; y++) {
Grid.prototype.indexes[... | JavaScript | js/grid.js | Kelly27/my2048 | mit | 15,249 | 584 | codeparrot/github-code |
cd99256103895085894cddeb5214518989146550110309e810645035edb73429 | // Base Grab Attach|GrabAttachMechanics|50010
namespace VRTK.GrabAttachMechanics
{
using UnityEngine;
/// <summary>
/// Provides a base that all grab attach mechanics can inherit from.
/// </summary>
/// <remarks>
/// **Script Usage:**
/// > This is an abstract class that is to be inheri... | C# | Assets/VRTK/Source/Scripts/Interactions/Interactables/GrabAttachMechanics/VRTK_BaseGrabAttach.cs | Fulby/VRTK | mit | 14,157 | 290 | codeparrot/github-code |
9bf92a3ffd52ed40282e8f189a024eaaee3b044ef5185ea40e17482573567f4c | package test.processing.calc
import slogger.model.common.TimePeriod
import slogger.model.specification.extraction.ExtractionSpecs
import play.api.libs.json.Json
import slogger.model.specification.extraction.TimeLimits
import slogger.model.specification.extraction.SlicingSpecs
import org.joda.time.DateTime
import slogg... | Scala | core/src/test/scala/test/processing/calc/CalculatorTest.scala | IvanMykhailov/stats-logger | mit | 3,093 | 91 | codeparrot/github-code |
fdcc057191eba7c7458b6dc5a0d0fea68365e7d3fa1cf7f90b5af2850b38b709 |
function generateList(people, template){
var i,
result = '',
len = people.length;
result += '<ul>';
for(i = 0; i < len; i += 1){
result += '<li>';
result += template;
result = result.replace('-{name}-', people[i]['name']);
result = result.replace('-{age}... | JavaScript | JavaScript-Fundamentals/09.Strings/12.GenerateList/script.js | ni4ka7a/TelerikAcademyHomeworks | mit | 681 | 34 | codeparrot/github-code |
cf42bad029a443bf54b47c07b13fa0385a2463e85f3c9bcee807f3c2dd890851 | const admin = require('firebase-admin');
const DATABASE_URL = process.env.DATABASE_URL || 'https://dailyjack-8a930.firebaseio.com';
// const DATABASE_URL = 'https://dailyjack-d2fa0.firebaseio.com';
const jackDB = (config = {}) => {
const app = admin.initializeApp({
credential: admin.credential.cert({
proj... | JavaScript | packages/dailyjack-core/index.js | kevin940726/dailyjack | mit | 2,926 | 132 | codeparrot/github-code |
b531e1cfd2f65ae5cee436bb7e7b291c90d767ebcc94d5e80ccf68536fd81028 | #!/usr/bin/env perl6
use v6.c;
class Node {
has Str $.id;
has Int $.x;
has Int $.y;
has Int $.size;
has Int $.used is rw;
has Int $.avail is rw;
method new(Int() :$x, Int() :$y, Int() :$size, Int() :$used, Int() :$avail) {
return self.bless(:$x, :$y, :$size, :$used, :$avail, :id("(... | Perl | 2016/advent-of-code/22.pl | duelafn/advent-of-code-2016-in-perl6 | mit | 3,935 | 141 | codeparrot/github-code |
309b683762ea621eadd8606ca5e9505f1b615ef25e0016f6e09f1bc495ab5c27 | //TODO : socket.ioコネクション処理を1.0推奨の非同期方式にする
describe('serverクラスのテスト', function() {
var SERVER_PORT = process.env.PORT || 3000;
var SERVER_URL = 'http://localhost:'+SERVER_PORT;
var assert = require('chai').assert;
var io = require('socket.io-client');
var server = require('../../../server/server.js')... | JavaScript | test/server/otherApi/serverLeavRoomTest.js | kaidouji85/gbraver | mit | 1,477 | 55 | codeparrot/github-code |
758cb8a4d99974a6ee3ebdf9833a10f267e24432bff8eac15200db7541f804da | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Login Page - Photon Admin Panel Theme</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<link rel="shortcut icon" href="ht... | HTML | lib/assets/css/css_compiled/@{photonImagePath}plugins/elrte/css/css_compiled/js/bootstrap/css/css_compiled/js/plugins/jquery.tagsinput.min.js.html | user-tony/photon-rails | mit | 17,015 | 197 | codeparrot/github-code |
b8eb776cbfd8815c8abb2a6b8d1dc309020044660568c6b4548d72bb0918ac10 | package com.thoughtworks.securityinourdna;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
public class JdbcInvoiceRepo implements InvoiceRepo {
private final Connection connection;
pub... | Java | src/main/java/com/thoughtworks/securityinourdna/JdbcInvoiceRepo.java | jacksingleton/campr-xss-workshop | mit | 1,136 | 41 | codeparrot/github-code |
fe48fdad7da9c3d29d78a86002d348282b9d45f9633499eca24b7043165dd249 | package compiler
import (
"bytes"
"fmt"
"net/http"
"github.com/go-on/lib/html/element"
"github.com/go-on/lib/misc/replacer"
)
func mkPhHandler(e *element.Element, key string, buf *bytes.Buffer) (phdl []*placeholderHandler) {
phdl = []*placeholderHandler{}
element.Pre(e, buf)
// fmt.Printf("checking %s\n", e... | GO | html/element/compiler/placeholderhandler.go | go-on/lib | mit | 1,098 | 51 | codeparrot/github-code |
5b273f1d1a56c1d382d6e6be244b56cc92bdd5cf82c04314d7c0f664a9fe2577 | -- phpMyAdmin SQL Dump
-- version 4.5.4.1deb2ubuntu2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Mar 01, 2017 at 09:51 AM
-- Server version: 5.7.17-0ubuntu0.16.04.1
-- PHP Version: 7.0.15-0ubuntu0.16.04.2
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_C... | SQL | misc/MovieDiary database.sql | kristenkotkas/moviediary | mit | 3,681 | 170 | codeparrot/github-code |
d9161523d51016fa4c1ffc6535ac76601e555df78a06818d1a34434b37fdf173 | using CleanCode.Resources;
using CleanCode.Settings;
using JetBrains.Application.Settings;
using JetBrains.ReSharper.Daemon.Stages.Dispatcher;
using JetBrains.ReSharper.Feature.Services.Daemon;
using JetBrains.ReSharper.Psi.CSharp.Tree;
using JetBrains.ReSharper.Psi.Tree;
namespace CleanCode.Features.ClassTooBig
{
... | C# | CleanCode/src/CleanCode/Features/ClassTooBig/ClassTooBigCheck.cs | hhariri/CleanCode | mit | 1,253 | 31 | codeparrot/github-code |
ba7144e1c0c089d563408be8cd8f6953c24c9f76e5ff10fed656300bef9bd781 | #pragma once
#include <QVector>
#include "BufferInterface.h"
#include "Maze.h"
#include "MazeGraphic.h"
#include "TriangleGraphic.h"
#include "TriangleTexture.h"
namespace mms {
class MazeView {
public:
MazeView(const Maze* maze, bool isTruthView);
MazeGraphic* getMazeGraphic();
void initTileGraphicTe... | C | src/MazeView.h | mackorone/mms | mit | 1,113 | 43 | codeparrot/github-code |
b09ec864555858ce3f7c102f4fd3e330a5e56bd3d83c8bc8d03421fbad4974e1 | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Runtime.InteropServices;
namespace RD_AAOW
{
/// <summary>
/// Класс описывает кодек для изображений типа ZSoft Paintbrush image
/// </summary>
public class PCXCodec:ICodec, IPaletteC... | C# | src/PCXCodec.cs | adslbarxatov/BatchImageConvertor | mit | 7,272 | 236 | codeparrot/github-code |
6bc16c9f89369f1b2d5247ed5916f4f4400b5cf55d8974759380a3508a4e7424 | //
// TypeScriptProject.cs
//
// Author:
// Matt Ward <ward.matt@gmail.com>
//
// Copyright (C) 2013-2014 Matthew Ward
//
// 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 res... | C# | src/TypeScriptBinding/TypeScriptProject.cs | chrisber/typescript-addin | mit | 28,176 | 856 | codeparrot/github-code |
57758a6494508b54b7a0f692972aa8e1defb1aa3d041c9b58d63bad7a51d6d36 | package main
import (
"github.com/james4k/terminal"
)
// ScreenInfo type
type ScreenInfo struct {
Width int
Height int
Chars []rune
Fcolors []terminal.Color
Bcolors []terminal.Color
CursorX int
CursorY int
CursorVisible bool
top int
bottom int... | GO | screenInfo.go | sugyan/ttyrec2gif | mit | 2,695 | 119 | codeparrot/github-code |
e37d5b8efba1677e9d2e8aed00e4e0859f84498632d87c45855854fb17f9d5c0 | "use strict";
/* global describe it before */
const { assert } = require("chai");
const Database = require("./lib/database");
const testcases = (env) => {
describe("Basic operations", () => {
before(async () => {
await Database.start();
});
it("should list zero objects", asyn... | JavaScript | src/lib/servicecom/test/testcases.js | Combitech/codefarm | mit | 3,396 | 122 | codeparrot/github-code |
338a1884911d7587888386dcd0d8ace983f121a6d267636f1a7b7fd42b4fb3e9 | var fs = require('fs')
var parseTorrent = require('parse-torrent')
var test = require('tape')
var WebTorrent = require('../')
var DHT = require('bittorrent-dht/client')
var parallel = require('run-parallel')
var bufferEqual = require('buffer-equal')
var leaves = fs.readFileSync(__dirname + '/torrents/leaves.torrent')
... | JavaScript | test/basic.js | tradle/webtorrent | mit | 6,281 | 199 | codeparrot/github-code |
9a2a932017f96b9172005488b6fef7790ee52f597e6b72433c5918520bdf6dc8 | #!/bin/bash
# Configuration installer for SSL DisplayBoard
becho() { echo -e "\033[1m ** $@\033[0m"; }
bbecho() { echo -e "\033[1m -> $@\033[0m"; }
cerr() { if [ ! "$1" = "0" ];then becho "Previous command exited with code $1. Check output for more details."; exit 1; fi; }
SCRIPT_DIR="$( cd "$( dirname "${BASH_... | Shell | install_oemsplash.sh | UMDSpaceSystemsLab/DisplayBoards | mit | 869 | 32 | codeparrot/github-code |
f0d4c35272182dd6bdc19270b9716472bc51b50f14a3f5d0d288d0f80c5e17af | #include <chrono>
#include <thread>
#include "./input.h"
#include "../common/SharedState.h"
#include "../common/Logger.h"
#include "./FaceDetector.h"
using namespace std;
void inputLoop()
{
SharedState& state = SharedState::getInstance();
Logger& logger = Logger::getInstance();
double posX = 0.5;
Fa... | C++ | src/input/input.cpp | Thegaram/falling-blocks-cam | mit | 774 | 40 | codeparrot/github-code |
fc5279369fbb95b145660ec862e9f8577f47b8c983fc10a6573aafaf76a7a9e2 | Menubar.Add = function ( editor ) {
var meshCount = 0;
var lightCount = 0;
// event handlers
function onObject3DOptionClick () {
var mesh = new THREE.Object3D();
mesh.name = 'Object3D ' + ( ++ meshCount );
editor.addObject( mesh );
editor.select( mesh );
}
//Plane
function onPlaneOptionClick () {... | JavaScript | js/Menubar.Add.js | akshaynagpal/3d_graphics_editor | mit | 7,783 | 331 | codeparrot/github-code |
b0b6faa9ddb9d0fca5036765fb6558e9052db894484dd4e7e93ce53a6bee741d | #ifndef __CA__RECTANGLE_H__
#define __CA__RECTANGLE_H__
#include "BasicDeclaration.h"
BEGIN_NAMESPACE_CA_DRAWING
template <typename T>
class RectangleT
{
public:
RectangleT();
RectangleT(const T& x, const T& y,
const T& width, const T& height);
RectangleT(const PointT<T>& location,
const SizeT<T>& size);... | C | CodeAdapter/Rectangle.h | NeuroWhAI/CodeAdapter | mit | 852 | 53 | codeparrot/github-code |
1e04fa79e6903a9a26203a86a732faff76e933beba2e34cd74aa2effc286a5b2 | <?php require_once __DIR__.'/Autoloader.php'; ?>
<?php spl_autoload_register('Autoloader::loader'); ?>
<?php
class Employee {
private $employee_id;
private $employee_firstname;
private $employee_lastname;
private $employee_username;
private $employee_password;
private $hash;
private $emplo... | PHP | employee_project/classes/Employee.php | nexon91/employee-project | mit | 4,612 | 150 | codeparrot/github-code |
80d6db6548f14f930332beba57de9cc10cc42a0b012ea4e05ebe8784d9ca04a8 | #!/usr/bin/python
import petsc4py
import sys
petsc4py.init(sys.argv)
from petsc4py import PETSc
Print = PETSc.Sys.Print
# from MatrixOperations import *
from dolfin import *
import numpy as np
import matplotlib.pylab as plt
import scipy.sparse as sps
import scipy.sparse.linalg as slinalg
import os
import scipy.io
i... | Python | MHD/FEniCS/ShiftCurlCurl/saddle.py | wathen/PhD | mit | 5,740 | 240 | codeparrot/github-code |
b734a6411c895e40f5338015e2b1cb3ba1a7e9a3bdef11d016c0067a310c74ed | <!DOCTYPE html>
<html>
<head>
<title>GTAV PC Delayed; Heists Confirmed March For Consoles | Game Golem</title>
<meta name="keywords" content="Video Game, News, Video Game News, Xbox One, Playstation4, Grand Theft Auto V, Grand Theft Auto 5, Delayed, PC, Micrsoft, Sony" />
... | HTML | html_old/gtav-heists-march-pc-version-delayed-april.html | Codewow/GameGolem | mit | 7,943 | 119 | codeparrot/github-code |
2d982be3cb4fa10fb114a2bac644815a5a90f125188f5688cd3d1813cfe1abcb |
/***************************************************************
* Name: Core.h
* Purpose: Defines Node-CEF Core Class
* Author: Joshua GPBeta (studiocghibli@gmail.com)
* Created: 2016-05-24
* Copyright: Studio GPBeta (www.gpbeta.com)
* License:
**********************************************... | C | include/ncjs/Core.h | GPBeta/nc.js | mit | 1,465 | 62 | codeparrot/github-code |
0fcf691994b88fadaafc52dda99193b38bdf4c8cda3f991a32bc1361eb89bf2f | package principal.peticiones;
import java.io.Serializable;
import principal.cs.*;
public class PeticionRegistro implements Serializable{
private String usuario;
private char[] password;
private String email;
public PeticionRegistro(String u, char[] p, String e) {
this.usuario = u;
this.password = p;
th... | Java | TheLordOfSouls/src/principal/peticiones/PeticionRegistro.java | Crakens/jrpg | mit | 507 | 30 | codeparrot/github-code |
928943572c725d6ccdce7552438744bce0b835a11fd50aba69ba9a79a7fc58f4 | /**
* Module dependencies
*/
var Server = require('annex-ws-node').Server;
var http = require('http');
var stack = require('connect-stack');
var pns = require('pack-n-stack');
module.exports = function createServer(opts) {
var server = http.createServer();
server.stack = [];
server.handle = stack(server.stac... | JavaScript | server.js | poegroup/poe-service-node | mit | 1,468 | 60 | codeparrot/github-code |
fd9625269a35f3afabeb039a296aea40e7ca0faf26aa7e6938b05fd5afb6abf5 | /*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... | Java | src/main/java/org/spongepowered/common/registry/type/block/DoublePlantTypeRegistryModule.java | kamcio96/SpongeCommon | mit | 2,972 | 64 | codeparrot/github-code |
3003e03eea423551836d75ed71dbc69680803e1721fb018f44206643b54822f7 | (function () {
'use strict';
/* Controllers */
var pollsControllers = angular.module('pollsControllers', []);
var author = 'Patrick Nicholls';
pollsControllers.controller('PollListCtrl', ['$scope', '$http',
function ($scope, $http) {
var resource = "/~pjn59/365/polls/index... | JavaScript | angularjs/js/controllers.js | agronauts/poll | mit | 2,957 | 86 | codeparrot/github-code |
d149c21d4eedd7691a829c68e6c428209f524ce4dcae67a4eddc23ef796e5822 | package TerrariaClone.GameData;
import TerrariaClone.BlockToolsProvider;
import TerrariaClone.HorrificBlockNameProvider;
import TerrariaClone.HorrificBlockToolsProvider;
import org.junit.Test;
import java.util.HashMap;
import java.util.Map;
import static org.junit.Assert.*;
public class JsonBlockToolsProviderTest {... | Java | src/test/java/TerrariaClone/GameData/JsonBlockToolsProviderTest.java | polytomous/TerrariaClone | mit | 1,606 | 49 | codeparrot/github-code |
bcbb87083ab902b2b846742792d4caa6071b5e395828c2a484d616ed8872cdb5 | namespace Elephant.Hank.WindowsApplication
{
partial class frmMain
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summa... | C# | Elephant.Hank.WindowsApplication/src/WindowsApplication/frmMain.Designer.cs | elephant-insurance/hank | mit | 23,271 | 447 | codeparrot/github-code |
623999ac5aa6f2d2c68217acfd3611ca9dc2f721ab1b2a4ef07f8df1a9a32b19 | #!/usr/bin/env python
# Usage parse_shear sequences.fna a2t.txt emb_output.b6
import sys
import csv
from collections import Counter, defaultdict
sequences = sys.argv[1]
accession2taxonomy = sys.argv[2]
alignment = sys.argv[3]
with open(accession2taxonomy) as inf:
next(inf)
csv_inf = csv.reader(inf... | Python | scripts/parse_shear.py | knights-lab/analysis_SHOGUN | mit | 2,010 | 62 | codeparrot/github-code |
275e2e2c80aca9f6a033bdbe2af2392977a41407216eccdfec90e4117654afdf | <?php
namespace Bprs\CommandLineBundle\Command;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
class StopWorkerCommand extends ContainerAwareCo... | PHP | Command/StopWorkerCommand.php | SrgSteak/BPRSCommandlineBundle | mit | 954 | 36 | codeparrot/github-code |
33a5e86cd5028691020deb6afdb74ef73798e2fd3b5ed588f248ce18e2e19a04 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>elpi: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" r... | HTML | clean/Linux-x86_64-4.05.0-2.0.1/released/8.6.1/elpi/1.2.0.html | coq-bench/coq-bench.github.io | mit | 7,486 | 175 | codeparrot/github-code |
82f8de44d629df0c396a904ab53a91f812d415e3ea5d11bfb2c30a6ae2e1cdcc | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>cats-in-zfc: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min... | HTML | clean/Linux-x86_64-4.05.0-2.0.1/released/8.8.2/cats-in-zfc/8.5.0.html | coq-bench/coq-bench.github.io | mit | 7,521 | 183 | codeparrot/github-code |
a95fdf3236890791b926ff156898ed7607dc369b40dc1a92da84ee645d8950fb | // ---------------------------------------------------------------------------
// <copyright file="PhoneEntityCollection.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ---------------------------------------------------------------------------
//----... | C# | ComplexProperties/PhoneEntityCollection.cs | dclaux/ews-managed-api | mit | 2,624 | 73 | codeparrot/github-code |
7254aaeae7eb8fdfe66c288949adb921a48cf6c24b861c516a610d0bf148b502 |
<!DOCTYPE html>
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<head>
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-16" http-equiv="Content-Type" />
<title _locid="PortabilityAnalysis0">.NET Portability Report</title>
<style>
... | HTML | Reports/ze/zetlon.oauth.twitch.1.0.1/Zetlon.OAuth.Twitch-net45.html | kuhlenh/port-to-core | mit | 23,228 | 541 | codeparrot/github-code |
1b571be83cdd136c56c9a25bb0a1cad500bf884d31a2d475406f8e3730789a09 | class BreatheIn::Scraper
@@air_quality_info = {}
@@scraped = nil
def self.air_quality
@@air_quality_info
end
def self.scraped_pg
@@scraped
end
def self.scraped_page(zipcode)
begin
@@scraped = Nokogiri::HTML(open("https://airnow.gov/?action=airnow.local_city&zipcode=#{zipcode}&sub... | Ruby | lib/breathe_in/scraper.rb | eric-an/breathe-in | mit | 5,930 | 134 | codeparrot/github-code |
de7a66d32e67a2a489f02dfe17b4e34d7871a9c5cdb7fb7006e40d4a6a643d02 | <?php namespace Barryvdh\Omnipay;
use Omnipay\Common\GatewayFactory;
class GatewayManager{
/**
* The application instance.
*
* @var \Illuminate\Foundation\Application
*/
protected $app;
/**
* The registered gateways
*/
protected $gateways;
/**
* The default se... | PHP | src/GatewayManager.php | alxy/laravel-omnipay | mit | 2,342 | 102 | codeparrot/github-code |
a9540f3d3c1b9051de6bb300b646b664281e3b52d55454f858a589c29180e5a6 | /*
* slush-ml-3t
* https://github.com/edmacabebe/slush-ml-3t
*
* Copyright (c) 2017, edmacabebe
* Licensed under the MIT license.
*/
'use strict';
var gulp = require('gulp'),
install = require('gulp-install'),
conflict = require('gulp-conflict'),
template = require('gulp-template'),
rename = req... | JavaScript | slushfile.js | edmacabebe/ML-3T-Dev | mit | 2,940 | 104 | codeparrot/github-code |
3720757e6d25fc37b9236856f533e903db5c44182e0c6454d7c7bbb1866423f2 | /**
* B1 Computer Emulator
* (c) 2014-2015 Michał Siejak
*/
#ifndef CPU_H
#define CPU_H
#include "common.h"
#include "mcc.h"
#include "vpu.h"
#include "spu.h"
#include "keyboard.h"
// Memory reference
struct Ref
{
U16 A;
U8 V;
operator U8() const { return V; }
Ref& operator=(const U8 InV) { V=In... | C | cpu.h | Nadrin/B1 | mit | 2,551 | 130 | codeparrot/github-code |
d4f96ec18878965932a7b1e99752de31a95516a93c6100907dc83cb4c57117db | <?php
declare(strict_types = 1);
use PHPUnit\Framework\TestCase;
use Sop\ASN1\Type\Constructed\Sequence;
use Sop\CryptoTypes\AlgorithmIdentifier\AlgorithmIdentifier;
use Sop\CryptoTypes\AlgorithmIdentifier\Hash\SHA256AlgorithmIdentifier;
/**
* @group asn1
* @group algo-id
*
* @internal
*/
class SHA256AITest ext... | PHP | test/unit/algo-id/hash/SHA256AITest.php | sop/crypto-types | mit | 980 | 47 | codeparrot/github-code |
21fdab19e0f10cd73474c578f8b14ab5dd4c44779171209c14f7fe6794ad6bb6 | using System;
using Newtonsoft.Json;
namespace PayStack.Net
{
public class ChargeTokenize
{
public class Customer
{
[JsonProperty("id")]
public int Id { get; set; }
[JsonProperty("customer_code")]
public string CustomerCode { get; set; }
... | C# | src/main/Apis/Charge/Tokenize.cs | adebisi-fa/paystack-dotnet | mit | 2,023 | 80 | codeparrot/github-code |
0322af08468489fcff5bca015a3f71512edc2bd2f351529ea34365d04d5a39d0 |
angular.module('streama').controller('adminVideosCtrl', ['$scope', 'apiService', 'modalService', '$state', function ($scope, apiService, modalService, $state) {
$scope.loading = true;
apiService.genericVideo.list().then(function (response) {
$scope.videos = response.data;
$scope.loading = false;
});
$scop... | JavaScript | grails-app/assets/javascripts/streama/controllers/admin-videos-ctrl.js | dularion/streama | mit | 1,084 | 40 | codeparrot/github-code |
fd915ba0138014b141f1a1196272773bdb09a87e47dba58845a8b484d4a46663 | var cookie = require('../index');
chai.should();
describe('cookie monster', function() {
it('sets a cookie', function (){
cookie.setItem('cookieKey', 'cookieVal');
document.cookie.should.contain('cookieKey=cookieVal');
});
it('gets a cookie', function (){
document.cookie = 'dumby=mcdumberson;';
... | JavaScript | test/cookie-monster-spec.js | kahnjw/cookie-monster | mit | 1,068 | 36 | codeparrot/github-code |
61454a8b88dd4e7d5bcb98045b6356f9520920c9d7da6275c637f60a6987316e | package io.github.agileek.maven;
import com.helger.jcodemodel.JCodeModel;
import java.io.File;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.List;
import org.apache.maven.project.MavenProject;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Before;
import org.juni... | Java | src/test/java/io/github/agileek/maven/ChecksumFlywayMojoTest.java | agileek/java-checksum-flyway-maven-plugin | mit | 4,274 | 117 | codeparrot/github-code |
51a641dbcc5083c11bdd4ae6536b2374a9f004d2b506e75562768804eac28644 | // Description: C# Extension Methods | Enhance the .NET Framework and .NET Core with over 1000 extension methods.
// Website & Documentation: https://csharp-extension.com/
// Issues: https://github.com/zzzprojects/Z.ExtensionMethods/issues
// License (MIT): https://github.com/zzzprojects/Z.ExtensionMethods/blob/master/... | C# | src/Z.Data/System.Data.IDataReader/IDataReader.ToEntities.cs | zzzprojects/Z.ExtensionMethods | mit | 2,073 | 59 | codeparrot/github-code |
c81eabeb25715d3b6afdb9c3929862c2ab7603f0e78d676238dca151c7dd4864 | <?php
/**
* RedirectApi
*
* @category Class
* @package Pananames
*/
namespace Pananames\Api;
class RedirectApi extends ApiClient
{
private $settings;
public function __construct($signature, $url)
{
if (empty($signature)) {
throw new \InvalidArgumentException('Signature was not provided or was invalid.'... | PHP | lib/Api/RedirectApi.php | Pananames/php-api | mit | 3,052 | 103 | codeparrot/github-code |
cd0e0e09d16fc9afc9ceb7e8391610526513ffd795693316b442feab33f13d7d | namespace DictionaryEdit
{
partial class DefinitionForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
... | C# | CSCI 473/DictionaryEdit/DefinitionForm.Designer.cs | joedanpar/Academic-Projects | mit | 7,504 | 187 | codeparrot/github-code |
25ba002a649436e38600cf6491d69f23e0071564adb3d9f6305c8461bf0f8784 | package org.amityregion5.terragame;
public class GameLoop implements Runnable {
private void loop(double delta) {
}
@Override
public void run() {
long fpsTimer = System.currentTimeMillis();
int targetFPS = 30;
double nsPerUpdate = 1000000000.0 / targetFPS;
// last update
double then = Syst... | Java | core/src/org/amityregion5/terragame/GameLoop.java | AmityHighCSDevTeam/TerraGame | mit | 1,242 | 68 | codeparrot/github-code |
32fc095dce7b0228d089e7697ca20706c7ddb4ac8a8f58142a6df5101401c6f3 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ipc: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" re... | HTML | clean/Linux-x86_64-4.11.2-2.0.7/released/8.12.2/ipc/8.6.0.html | coq-bench/coq-bench.github.io | mit | 7,443 | 180 | codeparrot/github-code |
9618d205c5945816cad45b20013be04527a159c62cfd970d3403215e23139d1e | /*
* stylie.treeview
* https://github.com/typesettin/stylie.treeview
*
* Copyright (c) 2015 Yaw Joseph Etse. All rights reserved.
*/
'use strict';
var extend = require('util-extend'),
CodeMirror = require('codemirror'),
StylieModals = require('stylie.modals'),
editorModals,
events = require('events'),
classi... | JavaScript | resources/js/stylieeditor.js | typesettin/periodicjs.ext.asyncadmin | mit | 19,967 | 480 | codeparrot/github-code |
0ffce888f8bed6bc618623ca4ab77e272bf4cec94959aa6082d0d62fac0d1956 | <?php
/**
* YAWIK
*
* @filesource
* @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de)
* @license MIT
*/
namespace Auth\Factory\Service;
use Auth\Repository;
use Auth\Service\Register;
use Interop\Container\ContainerInterface;
use Interop\Container\Exception\ContainerException;
use Zend\... | PHP | module/Auth/src/Auth/Factory/Service/RegisterFactory.php | kilip/YAWIK | mit | 1,972 | 67 | codeparrot/github-code |
c49484798e128d3e518055de9f7bc78ad802af6cb5067e40571d627e06ad4579 | // $Id: HTTP_Service_Handler.cpp 82739 2008-09-16 12:20:46Z johnnyw $
#define ACE_BUILD_SVC_DLL
#include "ace/OS.h"
#include "ace/Get_Opt.h"
#include "jaws3/Concurrency.h"
#include "HTTP_Service_Handler.h"
#include "HTTP_States.h"
#include "HTTP_Data.h"
JAWS_HTTP_Service_Handler::JAWS_HTTP_Service_Handler (void)
... | C++ | 3rd/ACE-5.7.0/ACE_wrappers/apps/JAWS3/http/HTTP_Service_Handler.cpp | binghuo365/BaseLab | mit | 1,204 | 68 | codeparrot/github-code |
2ee1ca165594bd24b99c6c85982428d2d2e374d32ca858a90ef09eb8c7202490 | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ShapeType_1 = require("../Enums/ShapeType");
var Updater_1 = require("./Particle/Updater");
var Utils_1 = require("../Utils/Utils");
var PolygonMaskType_1 = require("../Enums/PolygonMaskType");
var RotateDirection_1 = require("../Enums/Rot... | JavaScript | ajax/libs/tsparticles/1.14.0-alpha.6/Core/Particle.js | cdnjs/cdnjs | mit | 16,661 | 370 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.