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 |
|---|---|---|---|---|---|---|---|---|
257448d9e9819c1eb619373d1cd2beece6f43979f680238fe13c69b31c9857e2 | package Classes;
import javafx.stage.*;
import javafx.scene.*;
import javafx.scene.layout.*;
import javafx.scene.control.*;
import javafx.geometry.*;
/**
* Created by gimy on 11/05/2016.
*/
public class OkAlert {
public static void display(String title, String message) {
Stage Alert = new Stage();
... | Java | GUI/Gimy/Tahfiz_Project_GUI-master/Children_Memorization/src/Classes/OkAlert.java | gimyboya/OOP_Tutorials | mit | 962 | 39 | codeparrot/github-code |
9fe7cd4456aed84529dac7c0e29fc28b14b2f700026c45405e45dcb5b5b2cd07 | #------------------------------------------------------------------------------
#
# SystemConfig
#
# This is a singleton that is used to set default options for TransAM applications
# and is used to store and access important configuration information. This
# class is immutable and cannot be updated at run time
#
# The... | Ruby | app/models/system_config.rb | nycdot/transam_core | mit | 4,847 | 146 | codeparrot/github-code |
53a940460514dfc4c7288ff9405d671508e85c6131ce9a81ae4a7d2f9283154f | //////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright 1982-2006 by Autodesk, Inc.
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the abo... | C | 2007/inc/AcTc.h | kevinzhwl/ObjectARXCore | mit | 33,786 | 797 | codeparrot/github-code |
89538b9672bfff18477cba3d003ee098a77010d9555cc622b4faac132dac89b1 | package com.arckenver.nations.cmdexecutor.nation;
import org.spongepowered.api.command.CommandException;
import org.spongepowered.api.command.CommandResult;
import org.spongepowered.api.command.CommandSource;
import org.spongepowered.api.command.args.CommandContext;
import org.spongepowered.api.command.spec.CommandExe... | Java | src/main/java/com/arckenver/nations/cmdexecutor/nation/NationMarkExecutor.java | Arckenver/Nations | mit | 1,290 | 40 | codeparrot/github-code |
7c3d6f56ac96085b4575c098ff85e91c63a22fb2e6f0bf4b18aaf6a139a469c6 | using System;
using System.Drawing;
namespace ImageEditor.Effects
{
class Wind: BaseEffect
{
private Direction direction;
private int size;
private Random randomShift;
public Wind(Bitmap sourceImage, Direction direction, int size): base(sourceImage)
{
name =... | C# | ImageEditor/Effects/Wind.cs | axazeano/ImageEditor | mit | 3,041 | 110 | codeparrot/github-code |
bd3432a550a6270a70342c09c75c0622503ca3c45ac57a481f9beda3e678ad91 | #include "DXContext.h"
#include "BF/Graphics/API/Context.h"
#include "BF/Engine.h"
#include "DXError.h"
namespace BF
{
namespace Platform
{
namespace API
{
namespace DirectX
{
using namespace BF::Graphics::API;
DXContext::DXContext() :
device(nullptr), context(nullptr), swapChain(nullptr), re... | C++ | Blue-Flame-Engine/Core/BF/Platform/API/DirectX/DXContext.cpp | Vault16Software/Blue-Flame-Engine | mit | 7,091 | 251 | codeparrot/github-code |
2c8528090f0891c727368f437e0cbbf5614da7c1043dc8a4e9e9a228a0407009 | import {settings} from './settings';
let _lines = {};
class Line {
constructor(dot1, dot2) {
this.dot1 = dot1;
this.dot2 = dot2;
this.boxes = [];
this.drawn = false;
}
draw(ctx) {
let coords1 = this.dot1.coords();
let coords2 = this.dot2.coords();
... | JavaScript | js/lines.js | rolyatmax/dots | mit | 1,179 | 61 | codeparrot/github-code |
df06a756d45e6832418448b44ce4a0fe0c0c7947766b97cd18b652bfc660992e | (function() {
'use strict';
angular
.module('orders')
.controller('CartController', CartController);
CartController.$inject = ['$window', '$scope','OrdersService','$location','$state', '$http'];
function CartController($window, $scope, OrdersService, $location, $state, $http) {
var vm = this;
... | JavaScript | modules/orders/client/controllers/cart.client.controller.js | JavaScriptAcademy/oneStep | mit | 2,602 | 85 | codeparrot/github-code |
eb99ae7d4e20959672ddf168ee07c2b6070df35f016bb0cee58b5d9abc33b367 | /**
* Created by syrel on 14.05.17.
*/
import Sparql from '../Sparql'
import LClass from './LClass'
import LBNode from './LBNode'
import _ from 'underscore'
const ALL_CLASSES_QUERY = `
SELECT DISTINCT ?type
WHERE {
?a ?property ?type.
FILTER (?property in (<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>)... | JavaScript | app/src/client/app/model/LEndpoint.js | syrel/Open-Data | mit | 2,663 | 102 | codeparrot/github-code |
a5a8dcecb75d3f9ef5a2d69001970d75b4a936651ad69fc12d8c6ab49f26e163 | 'use strict';
const ConfigValidator = require('./config-validator');
const NotImplementedError = require('./not-implemented-error');
describe('ConfigValidator', () => {
describe('#isConfigValid', () => {
it('should throw an error if the class is not extended', () => {
expect(ConfigValidator.validateConfi... | JavaScript | lib/utils/config-validator.spec.js | emartech/client-publish | mit | 1,124 | 35 | codeparrot/github-code |
60e5955a3d1622c30e73bd5f9d348a61524e8ab438b4ba7d9e150649d93e2cc4 | from flask import Blueprint, request, render_template, redirect, url_for
from app import db
from app.surveys.models import Surveys, Questions
from app.surveys.forms import SurveyForm, QuestionForm
mod = Blueprint('surveys', __name__, url_prefix='/surveys')
@mod.route('/')
def surveys():
surveys = Surveys.query.... | Python | app/surveys/views.py | jasonamyers/h4cn-index | mit | 1,285 | 41 | codeparrot/github-code |
60dea384a9db812e36a0b154d885861313e4370a80ac9a50c2cac8e4f1405703 | #include "stdafx.h"
#include "inc\PerlinNoise.h"
#define _USE_MATH_DEFINES
#include <math.h>
float Perlin::Noise2D( __int32 x, __int32 y )
{
__int32 n = x + y * 57;
n = ( n<<13 ) ^ n;
return ( 1.0f - ( (n * (n * n * 15731 + 789221) + 1376312589) & 0x7fffffff) / 1073741824.0f );
}
float Perlin::SmoothNoise2D( flo... | C++ | Lif/PerlinNoise.cpp | paperweight86/Lif | mit | 2,100 | 64 | codeparrot/github-code |
4a5ae7e80f2f5607a5dc7dfed7cbeb886c8830e776a287caf14fb7be36eb92b4 | import React from 'react';
import PropTypes from 'prop-types';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { withRouter } from 'react-router';
import { Form, Input, Button, message, Card } from 'antd';
import md5 from 'md5';
import Header from './../../components/Header';
... | JavaScript | web/src/containers/Settings/index.js | shiyangzhaoa/call-club | mit | 7,182 | 269 | codeparrot/github-code |
8ce7519959f410e33cbae535407bf0f4e985a49f45cea3bc6c391a87ee071d3f | const Discord = require('discord.js');
const fs = require('fs');
const path = require('path');
const request = require('request');
const async = require('async');
const URL = require('url');
const bot = new Discord.Client();
// Paths
const modulesPath = path.join(__dirname, 'modules');
const localPath = path.join(__di... | JavaScript | app.js | Mesmaroth/discord-ApolloBot | mit | 50,942 | 1,645 | codeparrot/github-code |
c7e7d5033894a2f69ed32778c1830823cae47e7911a8c50832273b8e53d94b2e | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See License.txt in the project root.
package com.microsoft.alm.authentication;
import com.microsoft.alm.helpers.Action;
import com.microsoft.alm.helpers.Debug;
import com.microsoft.alm.helpers.Environment;
import com.microsoft... | Java | src/main/java/com/microsoft/alm/authentication/VsoAzureAuthority.java | shadyysf/ImportedFromSomewhere | mit | 12,574 | 298 | codeparrot/github-code |
ef872801bf933213e7856d26b02a28a319b3843870ad3e5c2e3555ad09c80ac8 | <!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>FindClosestCluster | Kartwars Bot</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href=".... | HTML | docs/classes/dracoolaart.kartwarsbot.tactics.resource.food.findclosestcluster.html | kmataru/kartwars.io-bot | mit | 24,630 | 459 | codeparrot/github-code |
eff68af1a648aca97940e7d863b816b2013e1a777bac762485a44b1f9935f839 | from hk2.types import interface
@interface
class ITracer(object):
def codec_write(self, conn, msg):
pass
def codec_read(self, conn):
pass
def connectionFactory_get(self, url):
pass
def connectionFactory_release(self, conn):
pass
def router_getRoutes(self, req):
... | Python | pynnacle/tracing/tracer.py | mikhtonyuk/pynnacle | mit | 1,547 | 76 | codeparrot/github-code |
4a42a83d5a132e121639513cfb9598b661f995d56fb3b2c60f8d133463b55024 | importScripts('./prettier/standalone.js');
function prettify({ content, type }) {
let parser;
switch (type) {
case 'js':
parser = 'babylon';
importScripts('./prettier/parser-babylon.js')
break;
case 'json':
parser = 'json';
importScripts('./prettier/parser-babylon.js')
break;
case 'css':
ca... | JavaScript | src/lib/prettier-worker.js | chinchang/web-maker | mit | 882 | 45 | codeparrot/github-code |
0b154bab4c681b4b313863edb2f670025680916ee3c7c112481d8c9a1cb5c414 | package ProGAL.geom2d.delaunay;
import java.awt.Color;
import java.util.ArrayList;
import java.util.List;
import java.util.PriorityQueue;
import ProGAL.geom2d.Circle;
import ProGAL.geom2d.Point;
import ProGAL.geom2d.Vector;
import ProGAL.geom2d.viewer.J2DScene;
import ProGAL.geom2d.viewer.TextShape;
import ProGAL.mat... | Java | src/ProGAL/geom2d/delaunay/KineticTessellation.java | DIKU-Steiner/ProGAL | mit | 7,996 | 250 | codeparrot/github-code |
31a8a5604b5d728691109c1a1ae5f2d82d4a49bfa1fc4cff9d3e1b8f9d4494f7 | document.body.style.backgroundImage = 'url(' + uki.theme.imageSrc('body') + ')';
var ContactsRender = {
template: uki.theme.template('contacts-render'),
render: function(data, rect, i) {
return uki.extend(this.template, [undefined, uki.theme.imageSrc('unknown'), undefined, data[0] || data[1]]).join('');... | JavaScript | app/functional/wave.js | rwaldron/uki | mit | 8,857 | 100 | codeparrot/github-code |
a749c73c82708a9ba14d579e4426dff535f576bd67da8d1309cae53d1aec777a | package dummy
import (
"log"
"sync"
"time"
"github.com/svenwiltink/go-musicbot/pkg/music"
)
type SongPlayer struct {
lock sync.Mutex
}
func (player *SongPlayer) CanPlay(song music.Song) bool {
return true
}
func (player *SongPlayer) Wait() {
player.lock.Lock()
defer player.lock.Unlock()
time.Sleep(time.S... | GO | pkg/music/provider/dummy/dummy.go | SvenWiltink/go-MusicBot | mit | 844 | 53 | codeparrot/github-code |
c4dcb00cd373f5ed660272adcd4f6804c448add5438f1207a4919cb869841ed8 | namespace SchemaFactor.Vst.MidiMapperX
{
partial class MainWindow
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summar... | C# | Source/SchemaFactor.Vst.MidiMapperX/UI/MainWindow.Designer.cs | LeifBloomquist/MIDIMapperX | mit | 16,147 | 296 | codeparrot/github-code |
b6d1e43cc654aedb025e8660b470f4b1a13fc1a7e3443bbdfdbbc1f2cb2d533d | #include <string.h>
#include <openssl/x509v3.h>
#include <openssl/ssl.h>
#include "openssl_helpers.h"
/* Return a NULL-terminated array of strings representing the subjectAltNames in [cert].
* If the subjectAltNames extension is not present, an array of length 0 is returned.
*
* NULL is returned if OpenSSL returns ... | C | bindings/openssl_helpers.c | janestreet/async_ssl | mit | 4,694 | 151 | codeparrot/github-code |
daf47f7957c52d7f15d1364b60e31047f806de0d099c13a106ae575dc67b8874 | // Copyright (c) Samuel Cragg.
//
// Licensed under the MIT license. See LICENSE file in the project root for
// full license information.
namespace Crest.Host.Serialization.UrlEncoded
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.CompilerServices;
using S... | C# | src/Crest.Host/Serialization/UrlEncoded/UrlEncodedStreamWriter.cs | samcragg/Crest | mit | 8,438 | 246 | codeparrot/github-code |
a733afc1dc906a8f857a9ded9f8a3040def16390c5d71ecd53471c3f962f3d4a | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Artemis;
namespace Warlocked
{
[Artemis.Attributes.ArtemisComponentPool()]
class Damage : ComponentPoolable
{
public int damage;
public int currentDamage;
public... | C# | ECS/Components/Damage.cs | Engensmax/Warlocked | mit | 793 | 33 | codeparrot/github-code |
f07fc8da7b1811a2fc9ce7d134dfeb613b6988c1901df3c2a23cd03246b48d00 | package com.zhiheng.JDBCStudy.concurrent;
public class SimpleThreads {
public static void threadMessage(String message) {
String threadName = Thread.currentThread().getName();
System.out.format("%s: %s%n", threadName, message);
}
private static class MessageLoop implements Runnable {
@Override
public v... | Java | com.zhiheng.JDBCStudy/src/main/java/com/zhiheng/JDBCStudy/concurrent/SimpleThreads.java | yunikoro/JDBCStudy | mit | 1,556 | 59 | codeparrot/github-code |
2cbfc370add5621e47176934f7e91cc19f80e8d4534db476c537282bc2b1ec28 | using System;
using System.Collections.Generic;
using System.Text;
namespace Vostok.Commons.Extensions.Uri
{
public static class UriNormalizationExtensions
{
private static readonly IDictionary<string, Func<string, int, int, bool>> segementCheckers = new Dictionary<string, Func<string, int, int, bool>... | C# | Vostok.Core/Commons/Extensions/Uri/UriNormalizationExtensions.cs | vostok/core | mit | 5,225 | 165 | codeparrot/github-code |
966d87f31d3924eff4ffee3201d6c1a4d9080b18b74af96d06c588fbf30c0197 | <?php
// src/AppBundle/Controller/AdminController.php
namespace AppBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\Fr... | PHP | src/AppBundle/Controller/AdminController.php | michaelhaw/waybsys | mit | 1,156 | 44 | codeparrot/github-code |
b2bbdc0235e58b3d0d0fb082b5fbe086fb530cbc014630e4156a741ae326dcd5 | import mongoose from 'mongoose';
import mongoosePaginate from 'mongoose-paginate';
import deepPopulate from 'mongoose-deep-populate';
import objectTransformation from '../helpers/standard-transformation';
const Schema = mongoose.Schema;
const ObjectId = Schema.ObjectId;
const threadSchema = new Schema({
title: {
... | JavaScript | server/models/thread/index.js | Stram/tomato-forum | mit | 922 | 43 | codeparrot/github-code |
d262ce48c14dcd311cda96ce1629d91c62c47379cdfe12ae8bd1e63333d963b4 | #include "AppDelegate.h"
#include "GameScene.h"
#include "SelectStageScene.h"
USING_NS_CC;
AppDelegate::AppDelegate() {
}
AppDelegate::~AppDelegate()
{
}
bool AppDelegate::applicationDidFinishLaunching() {
// initialize director
auto director = Director::getInstance();
auto glview = director->getOpenG... | C++ | Classes/AppDelegate.cpp | myunpe/fireattack | mit | 1,469 | 57 | codeparrot/github-code |
736fdc0dfc3177e510a4bd8ff219bdee594d0ad021a28f46d65cf01044805dac | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta content="App Inventor for Android" name="description" />
<meta content="Android, Blocks App Inventor, Mobile, Phone, IDE" name="keywords" />
<title>
Map Tour 2 - App Inventor for Android
</title>
<link href="/static/images/a... | HTML | appinventor/docs/learn/tutorials/maptour/maptour2.html | ajhalbleib/aicg | mit | 22,036 | 722 | codeparrot/github-code |
366022ba3caea6f30c5bef44d8a268110e612e87a7e71f1ff289adff46c67c69 | using UnityEngine;
using System.Collections.Generic;
using System;
public class TextureStorage
{
List<Texture2D> textureList = new List<Texture2D>();
public static bool UsingArray { get; private set; }
AtlasCreator.Atlas atlas;
Texture2DArray textureArray;
Dictionary<int, string> texIndexToNam... | C# | Assets/Scripts/MapGen/TextureAtlas/TextureStorage.cs | JapaMala/armok-vision | mit | 4,283 | 147 | codeparrot/github-code |
5a48f3b35d683c12103539f14ed895c347434ded45878a3d31ce70d9634d1880 | # -*- coding: utf-8 -*-
import json
from concurrent.futures import ThreadPoolExecutor
from datetime import date, timedelta
import requests
import common
# ------------------------------------------------------------------------
def grab(url):
requests.packages.urllib3.disable_warnings()
# 请求头
headers ... | Python | grab.py | Cuile/Grab-the-National-Train-Timetable | mit | 7,640 | 200 | codeparrot/github-code |
9c5612c95cb40dd2e0f009414f806c20815041e56428769af9834811b0e854ec | /**
* __ __ _ _ _ _
* \ \ / / (_) | | | | |
* \ \ /\ / / __ _| |_| |__ _ __ ___| |_
* \ \/ \/ / '__| | __| '_ \ | '_ \ / _ \ __|
* \ /\ /| | | | |_| | | |_| | | | __/ |_
* \/ \/ |_| |_|\__|_| |_(_)_| |_|\___|\__|
*
* @author Kevi... | JavaScript | js/Topbar.js | kkragenbrink/Topbar | mit | 1,781 | 56 | codeparrot/github-code |
6f36666d15d4c6900ec7540a65289787eae2ff8b480d8ff30cd9e8f42923b891 | \documentclass[a4paper, 12pt, oneside]{report} % for final draft compilation
% \documentclass[a4paper, 12pt, oneside, draft]{report} % for draft compilation
% Preamble:
\usepackage[T1]{fontenc} % package for specifying output font encoding
\usepackage[acronym,style=super,nogroupskip]{gl... | TeX | thesis/thesis.tex | rikutakei/mastersDoc | mit | 6,297 | 178 | codeparrot/github-code |
bace4c9938f98403977f1603eca49e4882fa9bd5a4cfe4a4edbdf3bdc2cd14be | #[doc = "Register `BRSPND[%s]` reader"]
pub struct R(crate::R<BRSPND_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<BRSPND_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<BRSPND_SPEC>> for R {
#[inline(always)]
fn from(reader: crat... | Rust | src/vadc/brspnd.rs | lucasbrendel/xmc4200 | mit | 23,981 | 812 | codeparrot/github-code |
d69735734640ea419bf6b324c890124c727b8f4ce750753c543a55e329c08f5f | @import url(https://fonts.googleapis.com/css?family=Montserrat:400,700);#main {
overflow: visible;
padding-top: 70px;
margin-left: 240px;
background-size: 55px 100px;
background-repeat: no-repeat;
transition: min-height 100ms;
background-position: center 40vh;
background-image: url('{{ img("theme::img/w... | CSS | resources/css/theme.css | pyrocms/accelerant-theme | mit | 59,977 | 2,752 | codeparrot/github-code |
82b87a4460e819a14a636860ec7607273b9ceb9e663b79cd7e4d7cec25a556c0 | @echo off
@rem ===========================================================================
@rem
@rem This confidential and proprietary software may be used only
@rem as authorized by a licensing agreement from Thumb o'Cat Inc.
@rem In the event of publication, the following notice is applicable:
@rem
@rem... | Batchfile | script/test/model/allegro_h264.bat | luuvish/libvio | mit | 3,673 | 104 | codeparrot/github-code |
c31c3e613ee700faf1e4a640fcb0b1353ce165e1de7e5a8999516b4697f9cc4a | import { NgModule, APP_INITIALIZER } from '@angular/core';
import { CommonModule } from '@angular/common';
import { HttpModule } from '@angular/http';
import { FeatureFlagDirective } from './directive/feature-flag.directive';
import { FeatureFlagService } from './services/feature-flag.service';
export { FeatureFlagCo... | TypeScript | src/ngFeatureFlag/dark-lumos-feature-flags.module.ts | Incognitus-Io/ngFeatureFlags | mit | 821 | 32 | codeparrot/github-code |
484a67d776bd4c0e2acd24d9c20ab6343992b63cb1d8f1a32153f10745a9c287 | <?php
/*
* This file is part of the Mamba microframework.
*
* (c) Mauro Cassani <assistenza@easy-grafica.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Mamba\Providers;
use Pimple\Container;
use Pimple\ServicePro... | PHP | src/Providers/ClientServiceProvider.php | mauretto78/mamba-base | mit | 1,365 | 52 | codeparrot/github-code |
95cf3b667964558aa50bb2be4c9d289e7dbd27f9c4c5bb4d9c0aaf27de74de64 | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.IO.MemoryMappedFiles;
using System.Runtime.InteropServices;
using System.Text;
using lingvo.core;
namespace lingvo.classify
{
/// <summary>
///
/// </summary>
unsafe public abstract class ModelNat... | C# | classify/Models/Native/ModelNativeBase.cs | zamgi/lingvo--classify | mit | 10,874 | 280 | codeparrot/github-code |
f5e3a64a60450dd1996db85dba76fcd74e2dcd8a2097cb5c9348409fca81d75a | ---
layout: default
title: Mickey Theme for Jekyll
---
<section class="section--first section--frontpage">
<div class="section-title">
<div class="container">
<h1 class="textLogo textLogo--frontpage">
{{ site.name }}
</h1>
<div class="postMeta-wrapper postMeta-wrapper--frontpage">
... | HTML | index.html | Glatisant315/Glatisant315.github.io | mit | 1,733 | 51 | codeparrot/github-code |
d0da218820b576636c01c0920259aeebc9f17948c661e17f3ec10a388280a7a9 | import { word } from 'js/types';
import { ProDOSVolume } from '.';
import type { VDH } from './vdh';
const BLOCK_ENTRIES = 4096;
export class BitMap {
private vdh: VDH;
private blocks: Uint8Array[];
constructor(volume: ProDOSVolume) {
this.vdh = volume.vdh();
this.blocks = volume.blocks()... | TypeScript | js/formats/prodos/bit_map.ts | whscullin/apple2js | mit | 1,556 | 50 | codeparrot/github-code |
78d65a158e504b27b79c15c05db04da6d19308b8941f259bad6e0cb47ba0f2ac | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Om developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_BIGNUM_H
#define BITCOIN_BIGNUM_H
#include <stdexcept>
#include <vector... | C | src/bignum.h | DavidSantamaria/Om | mit | 17,207 | 591 | codeparrot/github-code |
111a5e6a61f13c608e2067d0720c079a44fafaf8d1f0dd88c2863750fcb709c9 | require 'yaml'
require_relative 'textpow/syntax'
require_relative 'textpow/debug_processor'
require_relative 'textpow/recording_processor'
require_relative 'textpow/score_manager'
require_relative 'textpow/version'
module Textpow
class ParsingError < Exception; end
def self.syntax_path
File.join(File.dirname(... | Ruby | lib/textpow.rb | aziz/tmTheme-Editor-Parser | mit | 1,175 | 51 | codeparrot/github-code |
d0f5bcdc4bcee94dcf98ac31d1a967f4c48e4519522a3123091f7bbd33ef5b55 | <?php
/**
* PHP Static Analysis project 2015
*
* @author Patsura Dmitry https://github.com/ovr <talk@dmtry.me>
*/
namespace PHPSA\Visitor\Expression\Operators\Arithmetical;
use PHPSA\CompiledExpression;
use PHPSA\Context;
use PHPSA\Visitor\Expression;
use PHPSA\Visitor\Expression\AbstractExpressionCompiler;
clas... | PHP | src/Visitor/Expression/Operators/Arithmetical/Plus.php | krakjoe/phpsa | mit | 2,254 | 65 | codeparrot/github-code |
d0924f6d2a8ade16b17b8396ccafecb13062b1c33ed448decee750de083c57f3 | <?php
/**
*
* Part of the QCubed PHP framework.
*
* @license MIT
*
*/
namespace QCubed\Jqui;
use QCubed\Exception\Caller;
use QCubed\Exception\InvalidCast;
use QCubed\Project\Application;
use QCubed\Type;
/**
* Class ResizableBase
*
* Implements the JQuery UI Resizable capabilities into a QCubed Control
*
... | PHP | src/Jqui/ResizableBase.php | qcubed/application | mit | 4,098 | 146 | codeparrot/github-code |
eea8abc5fa7525d9a57f174005e7eebe791b64dc9917a2fdd2c2f80b0539c7de | <?php
class Produto_Destaques_model extends CI_Model {
// -- SELECT -- /
function Listar($pData = null){
// TB
$this->db->from("tb_produto_destaques");
// WHERE
if(isset($pData["Id"])){ $this->db->where("tb_produto_destaques.Id", $pData["Id"]);}
if(isset($pData["IdTipoPreco"])... | PHP | application/models/Produto_Destaques_model.php | andrebonetti/Gerensys_LojaVirtual | mit | 4,308 | 123 | codeparrot/github-code |
365a44e43d8d50c9c462681022cf3f528cf4e53c35a16db48433338a26adf062 | import Client from '../client'
import { Constructor } from '../util'
import { SiteArgs } from '../client.type'
import {
DeleteMemberArgs,
DeleteMemberResult,
SaveMemberArgs,
SaveMemberResult,
SearchMemberArgs,
SearchMemberResult,
UpdateMemberArgs,
UpdateMemberResult,
} from './memberable.type'
// eslin... | TypeScript | src/client/memberable.ts | linyows/gmopg.js | mit | 1,654 | 56 | codeparrot/github-code |
06792849ca4753dea0660bab56d2389cbfa8ee28d13ebeba1cd4d72ebcd775f3 | #include "sendcoinsentry.h"
#include "ui_sendcoinsentry.h"
#include "guiutil.h"
#include "bitcoinunits.h"
#include "addressbookpage.h"
#include "walletmodel.h"
#include "optionsmodel.h"
#include "addresstablemodel.h"
#include <QApplication>
#include <QClipboard>
SendCoinsEntry::SendCoinsEntry(QWidget *parent) :
... | C++ | src/qt/sendcoinsentry.cpp | CaliforniaCoin/CaliforniaCoin | mit | 4,428 | 182 | codeparrot/github-code |
d59ae36421c9ab6e825957ece927d0401e1a8d3d12007f2b5b8cca16670bdd23 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Reflection;
using System.Security.Cryptography;
using System.Threading.Tasks;
using Pdelvo.Async.Extensions;
using Pdelvo.Minecraft.Network;
using Pdelvo.Minecraft.Protocol.Helper;
using Pdelvo.M... | C# | Pdelvo.Minecraft.Proxy/Pdelvo.Minecraft.Proxy.Library/ProxyServer.cs | pdelvo/Pdelvo.Minecraft.Proxy | mit | 12,815 | 357 | codeparrot/github-code |
249e955af557b8d06202881f9de54130f40a5f0e92d32e956c058361fbf0ab9d | // BERT-JS
// Copyright (c) 2009 Rusty Klophaus (@rklophaus)
// Contributions by Ben Browning (@bbrowning)
// See MIT-LICENSE for licensing information.
// BERT-JS is a Javascript implementation of Binary Erlang Term Serialization.
// - http://github.com/rklophaus/BERT-JS
//
// References:
// - http://www.erlang-fact... | JavaScript | priv/static/n2o/bert.js | RomanShestakov/n2o_tabs | mit | 14,080 | 537 | codeparrot/github-code |
ec5b9851837a52c3da8b32417e33d2752b68fd1776ada084f4acf4dbc4697281 | (function() {
"use strict";
jQuery.sap.require("sap.ui.ipw.ViewApp.util.Formatter");
jQuery.sap.require("sap.m.MessageBox");
sap.ui.core.mvc.Controller.extend("sap.ui.ipw.ViewApp.view.Login", {
onInit: function() {
this._oView = this.getView();
this._oView.setModel(new sap.ui.model.json.JSONM... | JavaScript | launchpad/view/Login.controller.js | thorger/ui5samples | mit | 3,909 | 119 | codeparrot/github-code |
3b536ce109e26e8b521acda5548c876629fd35a8d6f2dde8a403c95e2d969ef8 | <?php
namespace wcf\system\option;
use wcf\data\option\Option;
use wcf\data\teamspeak3server\TeamSpeak3ServerCache;
use wcf\system\exception\UserInputException;
use wcf\system\WCF;
/**
* Option type implementation for select lists.
*
* @author Thomas Abröll
* @copyright 2013-2015 Thomas Abröll
* @license http://o... | PHP | files/lib/system/option/TeamSpeak3ServerSelectOptionType.class.php | mcwolle/eu.mc-w.wcf.teamspeak3viewer | mit | 1,396 | 49 | codeparrot/github-code |
af245ebeb1abd5db560c82b252c495304b4b49a924a15762f69a0887c89ba0c3 | /**
* Graphology Assertions Unit Tests
* =================================
*/
var assert = require('assert');
var Graph = require('graphology');
var lib = require('./index.js');
var haveSameNodes = lib.haveSameNodes;
var haveSameNodesDeep = lib.haveSameNodesDeep;
var areSameGraphs = lib.areSameGraphs;
var areSameGr... | JavaScript | src/assertions/test.js | graphology/graphology | mit | 6,709 | 256 | codeparrot/github-code |
d66e3b0613c7546c7b05f3da8192953d7286e203240d9708424f5c5a26f6dc52 | {% load app_buttons %}
<div class="span4" id="left">
{% for app in apps %}
{% if not forloop.counter|divisibleby:2 %}
{% app_button app forloop.counter %}
{% endif %}
{% endfor %}
</div>
<div class="span4" id="right">
{% for app in apps %}
{% if forloop.counter|divisibleby:2 %}
{% app_but... | HTML | src/apps/templates/app_buttons.html | abhijithanilkumar/ns-3-AppStore | mit | 1,362 | 47 | codeparrot/github-code |
8bf4c19fa35d762237b26ce030de04fc7e4021c185355b1e2eef6c5629bd2d10 | package html
import (
"golang.org/x/net/html/atom"
)
// FindByAtom finds element nodes by their atom across multiple levels.
func (node *Node) FindByAtom(atoms ...atom.Atom) (nodes []*Node) {
nodes = make([]*Node, 1)
nodes[0] = node
for _, a := range atoms {
children := make([]*Node, 0)
for _, n := range node... | GO | byatom.go | felixrabe-go/html | mit | 979 | 44 | codeparrot/github-code |
7bf7e4a5dbdeaf3d5f910c7d1d8234b0533e2db350e0921a93a14003c5d7df2b | namespace Services.RaspberryPi.GpIo.Debug
{
using System.Threading;
using System.Windows.Forms;
using Chains;
using Chains.Play.Web;
using RaspberryPiDotNet;
using Services.Communication.Protocol;
using Services.Management.Administration.Worker;
using Services.RaspberryPi.GpIo.Actions;
... | C# | RaspberryPi.Gpio/Services.RaspberryPi.GpIo/Debug/GpioTest.cs | phaetto/FoosPi | mit | 4,552 | 134 | codeparrot/github-code |
f7fc899503ca7f2477b6919cf1b7eb4ec220fe2dae7d4d6dadc3bcba2b09a5c4 | (function (define) {
define(function () {
'use strict';
var buster = require('buster'),
fail = buster.assertions.fail,
assert = buster.assertions.assert,
refute = buster.assertions.refute,
runner = require('./cpuRunner'),
types = runner.t... | JavaScript | test/bvm/addressing-test.js | bvm-org/bvm | mit | 4,046 | 73 | codeparrot/github-code |
bc48ea2bd352b1f8a7cfa60038d09800359443e6a0658ddb7cb8d02fcc1eed64 |
.styleSans23.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 23.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans167.0000<enum PANGO_WEIGHT_NORMAL... | CSS | ocr_extracted/W29227_text/style.css | datamade/elpc_bakken | mit | 16,550 | 661 | codeparrot/github-code |
cc31d4d01e67b0f262515d53f95e05d21f8c692d506491c835c988915186d575 | #include "board.h"
#include "utils/logger.h"
#include <boost/date_time/posix_time/posix_time.hpp>
#include <thread>
#include <iostream>
using namespace std;
using namespace boost;
using namespace boost::posix_time;
using namespace boost::asio;
using namespace home_system::io;
board::board(const std::string &name, con... | C++ | io-relay-board/src/board.cpp | wozio/home-system | mit | 4,724 | 207 | codeparrot/github-code |
e8c706138c338d0dfb38e373e25b85fb5d2069e0c34028b2a08a55230d982d8f | package gui;
import java.awt.Component;
import java.awt.Toolkit;
import java.io.File;
import java.util.List;
import javax.swing.DefaultListModel;
import javax.swing.JFileChooser;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.SwingUtilities;
import javax.swing.SwingWorker;
import utils.E... | Java | src/gui/frmMailing.java | xdelvalle/gestion-clientes | mit | 17,329 | 361 | codeparrot/github-code |
3b1013ce46bb4e0915f970b14513da45ba98c96efe5e3c3e4cabb325701b69c4 | # import datetime
import json
import os
import re
import time
import redis
import requests
from flask import Flask, render_template
APP_URL = os.environ.get('URL')
ASSET_URLS = re.compile(r'(src|href)="(.*)"')
CSS_ASSETS = re.compile(r'(url\([\'|"]?(.*)[\'|"]?\))')
app = Flask(__name__)
if os.environ.get('ENV') is... | Python | app.py | tofumatt/fat-mirror | mit | 3,143 | 101 | codeparrot/github-code |
9361e5967b099b7d934a64f2e0b1febc145d0f4c30962fae2825f0c6b72e7fd6 | package simulation_type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
import cells.Cell;
public class WaTorRule extends Rule {
private int fish_breed_steps;
private int shark_breed_steps;
private double max_shark_energy;
private dou... | Java | src/simulation_type/WaTorRule.java | vanessawuhoo/Cell-Society | mit | 5,773 | 176 | codeparrot/github-code |
e3d3a7ef1ed88c072d761029b1529adbf24beb736772ccee86b73ecb02b5a6a7 | /* ownCloud Android Library is available under MIT license
* Copyright (C) 2014 ownCloud 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, including ... | Java | src/com/owncloud/android/lib/resources/files/FileUtils.java | ironsquishy/ACM_Pi_Cloud | mit | 2,737 | 79 | codeparrot/github-code |
6a6baded82ac966a38603f0dcd4ad3033e52bfa2435fc307e4df20c385092aba | ///////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2001, Eric D. Friedman All Rights Reserved.
// Copyright (c) 2009, Rob Eden All Rights Reserved.
// Copyright (c) 2009, Jeff Randall All Rights Reserved.
//
// This library is free software; you can redistribute it and/or
/... | Java | src/main/java/gnu/trove/impl/hash/TObjectHash.java | digitalheir/java-probabilistic-earley-parser | mit | 20,013 | 603 | codeparrot/github-code |
0956afb63a13b1c8feb9997a54109fe659fef418b62b4d50b23e2e545a4e2d2b | package com.gmail.trentech.wirelessred.init;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import org.spongepowered.api.item.ItemTypes;
import com.gmail.trentech.pjc.core.ConfigManager;
import com.gmail.trentech.pjc.core.RecipeManager;
import com.gmail.trentec... | Java | src/main/java/com/gmail/trentech/wirelessred/init/Common.java | trentech/WirelessRed | mit | 9,638 | 153 | codeparrot/github-code |
9be173748edd1cd7c951e221ea4e4b88580b47a7f7c8f8d0845e01dd24042264 | package org.miczilla.lcm.shop;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.miczilla.lcm.domain.OrderRequest;
import org.miczilla.lcm.domain.Product;
import static org.junit.Assert.*;
public class DataAccessTest {
private DataAccess dataAccess;
@Before
public void setUp... | Java | shop/src/test/java/org/miczilla/lcm/shop/DataAccessTest.java | miwurster/mesog-jms | mit | 1,699 | 55 | codeparrot/github-code |
16cbdf82b1d338c9992b8e83fd196303eba062ebcf72d32d5a6b0c7aac7f0fdd | package me.lachlanap.physicsplayground.physics;
/**
*
* @author lachlan
*/
public class Vector2 {
public double x, y;
public Vector2(double x, double y) {
this.x = x;
this.y = y;
}
public Vector2() {
}
public Vector2 minus(Vector2 b, Vector2 store) {
store.x = x ... | Java | src/main/java/me/lachlanap/physicsplayground/physics/Vector2.java | thorinii/physicsplayground | mit | 1,380 | 84 | codeparrot/github-code |
1796606c3ee7b08b7f7b0916598ca35e8a9d40027742858a665585c9297d2f35 | package de.hpi.bpt.chimera.parser.fragment.bpmn.unmarshaller.xml;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlTransient;
@XmlTransient
@... | Java | src/main/java/de/hpi/bpt/chimera/parser/fragment/bpmn/unmarshaller/xml/AbstractEvent.java | bptlab/JEngine | mit | 1,061 | 41 | codeparrot/github-code |
e8cc7e83295c612e09ec3cad118cb78ae00b410a88975cbec0dba3eb382e6f53 | module Hermes
module Plugin
##
# Plugin that allows users to retrieve definitions from Urban Dictionary.
#
class UrbanDictionary
include Cinch::Plugin
set :help => 'u/ud/urban [TERM] - Retrieves the definition of a term ' \
'using Urban Dictionary',
:plugin_name => 'urban'... | Ruby | lib/hermes/plugin/urban_dictionary.rb | YorickPeterse/Hermes | mit | 2,096 | 79 | codeparrot/github-code |
3f5a9c132c74587af9307d0393eae3e4badd7196580fc07f857cf2df9484cc1e | # frozen_string_literal: true
# The CSV contains the key of each node and the direction of energy
# flow (input or output) and the hourly load in MWh.
class CurvesCSVSerializer
# Provides support for multiple carriers in the serializer.
class Adapter
attr_reader :attribute
def initialize(carrier, attribut... | Ruby | app/serializers/curves_csv_serializer.rb | quintel/etengine | mit | 2,729 | 114 | codeparrot/github-code |
5964a8fb1908af2b9acf0d60526da81926a9087a047b50dc9e3236a2790b16ae | var path = require('path');
var webpack = require('webpack');
var autoprefixer = require('autoprefixer');
var precss = require('precss');
module.exports = {
entry: ['webpack-hot-middleware/client?path=/__webpack_hmr&timeout=20000',
'./client/router.jsx'],
output: {
//path: path.join(__dirname, '/publ... | JavaScript | webpack.config.js | phuston/audius78 | mit | 1,286 | 47 | codeparrot/github-code |
aa3493a0bc0ac2342f712988d48216ab3c3f3dc3d3a81794bdda5d16737ab4f5 | class Games::Leaderboards::ScoresController < ApplicationController
before_action :set_games_leaderboards_score, only: [:show, :update, :destroy]
# GET /games/leaderboards/scores
# GET /games/leaderboards/scores.json
def index
@games_leaderboards_scores = Games::Leaderboards::Score.all
render json: @g... | Ruby | lib/LeaderBored/app/controllers/games/leaderboards/scores_controller.rb | SufficientlyAdvancedTechnologies/SAGN | mit | 1,703 | 60 | codeparrot/github-code |
e44cb889fd3bd8d900f9f430b0edf9f5cb00c45d5bddd7efc10e76cf603d9c96 | using System.Collections.Generic;
using System.Net.Http;
using System.Threading.Tasks;
using Antix.Http.Services.Models;
using Antix.Services.Models;
namespace Antix.Http.Services.Client
{
public static class HttpClientServiceExtensions
{
public static async Task<HttpServiceResponse<T>> ExecuteAndRead... | C# | source/Antix.Http/Services/Client/HttpClientServiceExtensions.cs | MrAntix/antix | mit | 1,903 | 59 | codeparrot/github-code |
bd2bbee331f958bbf00bf38420238685374131a33fb70f8f5bff208436d5d350 | package fr.upem.journal.service;
import android.os.AsyncTask;
import android.util.Log;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import fr.upem.journal.newsfeed.WeatherFeed;
import fr.upem.journal.utils.RSSParser;
public class WeatherService {
... | Java | app/src/main/java/fr/upem/journal/service/WeatherService.java | mdamis/journal | mit | 3,584 | 131 | codeparrot/github-code |
39ea3b88e8eaab6fc07d6455a6aa7b871106126ca9d11b1c3e74efd157f44e12 | using System;
using System.IO;
using System.Reactive;
using System.Reactive.Concurrency;
using System.Reactive.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using System.Threading.Tasks;
using Windows.Storage.Streams;
using Windows.UI;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Media.Imaging;
using stat... | C# | ReactWindows/ReactNative/Modules/Image/BitmapImageHelpers.cs | bluejeans/react-native-windows | mit | 6,930 | 182 | codeparrot/github-code |
6c7c7f73da4914b8c550358681181d34f6689bdb0d2518230ac65c0fc4267561 | package cn.sefa.ast;
import java.rmi.AccessException;
import cn.sefa.symbol.IEnvironment;
import cn.sefa.symbol.NestedEnv;
/**
* @author Lionel
*
*/
public class SefaObject {
private IEnvironment env ;
public SefaObject(NestedEnv env) {
this.env = env ;
}
public Object read(String member) throws AccessE... | Java | src/cn/sefa/ast/SefaObject.java | LLionel/sefa | mit | 687 | 39 | codeparrot/github-code |
b84d1f0f3ee5c759194f8d15fe3ee03b5d8d550953a453a350317a1d496591b2 |
public class Engine {
private String model;
private int power;
private int displacement;
private String efficiency;
public Engine(String model, int power) {
super();
this.model = model;
this.power = power;
this.efficiency = "n/a";
this.displacement = -1;
}
public Engine(String model, int power, i... | Java | 06_OOP_Basic/02_Defining Classes_ex/0602_07_Car Salesman/src/Engine.java | akkirilov/SoftUniProject | mit | 1,006 | 53 | codeparrot/github-code |
ea21adef49ebd3422646cb8f61d86b86006ac4689cb02f6240bf591f1f9fb356 | package com.groupr.util;
import android.os.AsyncTask;
import android.util.Log;
import com.groupr.backend.eventApi.EventApi;
import com.groupr.backend.eventApi.model.Event;
import com.groupr.backend.userApi.UserApi;
import com.groupr.backend.userApi.model.User;
import java.util.ArrayList;
public class GetAttendeesAs... | Java | app/src/main/java/com/groupr/util/GetAttendeesAsyncTask.java | raedmakhlouf/ECE452-Groupr | mit | 1,555 | 46 | codeparrot/github-code |
0431a5480dfe44b4ae98540fe0616e20b53a19debbc5a2052aad157bd286dcb5 | <!DOCTYPE html>
<html>
<head>
<title>ZIP 222: Transparent Zcash Extensions</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="css/style.css"></head>
<body>
<section>
<pre>ZIP: 222
Title: Transparent Zcash Extensions
Owner... | HTML | zip-0222.html | zcash/zips | mit | 29,779 | 380 | codeparrot/github-code |
0634f5814e4ad28f344fb54bca33700c0a3723d5d2baa6943b72516924bade68 | <?php
namespace App;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
protected $primaryKey = 'id';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'username', 'email', 'firstname', 'lastname'... | PHP | app/User.php | ArnaudWeyts/showtime | mit | 697 | 36 | codeparrot/github-code |
c82cbc0a6ae51a0f0dcb0e3161aeb17a3318b0579a6ce0bd6cf2d5ca90b40ae2 | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="UmlClassBox.cs" company="OxyPlot">
// Copyright (c) 2014 OxyPlot contributors
// </copyright>
// <summary>
// Represents an UML box.
// </summary>
// -------------------------... | C# | Source/OxyPlot/Drawing/DrawingModel/Elements/UmlClassBox.cs | objorke/oxyplot | mit | 7,191 | 181 | codeparrot/github-code |
22dc4596a30cb737bfbb58bcd1258d53ab7597472b13958e4d363318ed1dd88e | /*
* The MIT License (MIT)
*
* Copyright (c) 2016 Alberto Romeu
*
* 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 u... | Java | apineitor-meetup/src/main/java/com/apineitor/meetup/Meetup.java | alrocar/apineitor | mit | 6,731 | 157 | codeparrot/github-code |
86ac3334af379d210a06ad9836f497bc690fb90399869fd87520f664ec2f9b10 | /* ────────╮
│ cordial🍋 Macro toolkit: Composite tasks
╰─────────┴─────────────────────────────────────────────────────────────────── */
import path from 'path'
import gulp from 'gulp'
import createTaskGroup from '../classes/task-group'
export default function macros(session_, api_) {
return (config_ = {}) => {
... | JavaScript | src/lib/workers/macros.js | MarkGriffiths/cordial | mit | 5,677 | 240 | codeparrot/github-code |
59772d94b8c84c097e53e3c290b9155a1bcc644493b5152886993cd874c22551 | <!-- <pre> -->
<?php
//print_r($views);
?>
<!-- </pre> -->
<!--
D:\Users\Taebu\My Documents\2.회사\2.9.Paid_PG\products-WB0R5L90S\Static_Full_Version\form_advanced.html -->
<script src="/prq/include/js/mysql/prq_store.js" type="text/javascript"></script>
<link href="/prq/include/css/plugins/select2/select2.m... | PHP | prq/application/views/store/ata_pay/modify_v.php | Taebu/prq | mit | 19,258 | 625 | codeparrot/github-code |
35fb34d08dc3e869a7929aed9408fc8012fd36071d0ff1f77b40e778f81a9bee | using System;
using System.Text;
using System.Windows.Forms;
namespace xr
{
public sealed class TextEditor
{
public struct SelectionRange
{
public int StartIndex;
public int Length;
public SelectionRange(int startIndex, int length)
{
... | C# | src/xrConsole/TextEditor.cs | nitrocaster/xrConsole | mit | 11,247 | 394 | codeparrot/github-code |
e992bfad3aa484b9c88d3aeb01268d4bf54b6aec234aac18ac807f468c23df51 | #include "addeditatomnode.h"
#include "ui_addeditatomnode.h"
#include "masternodeconfig.h"
#include "masternodemanager.h"
#include "ui_masternodemanager.h"
#include "walletdb.h"
#include "wallet.h"
#include "ui_interface.h"
#include "util.h"
#include "amount.h"
#include "key.h"
#include "script.h"
#include "init.h"
#i... | C++ | src/qt/addeditatomnode.cpp | masternodecoin/masternodecoin | mit | 3,327 | 114 | codeparrot/github-code |
ad2d6158404a2203dc2ecd9b94d6c43a43fe0816674c4663c63c68515fa4b179 | package hostqueue
import (
"html/template"
"net/http"
"regexp"
"appengine"
"github.com/gorilla/mux"
)
type Status struct {
Name string `json:"name"`
Hosts []Host `json:"hosts"`
Next int `json:"next"`
}
/* group/status/{groupUUID}
Respond with the group name, current queue, who is up next in that qu... | GO | host-queue/groupStatus.go | AnnAddicks/hostq | mit | 1,377 | 62 | codeparrot/github-code |
a66790efdd87b132f666460ec97b5b597cf71427270f381c53330bb5dd8daf22 | #include "crosstable.h"
#include "automation.h"
static bool configured;
/* put here the initalization */
void setup(void)
{
configured = false;
}
/* put here the operation made every 100ms */
void loop(void)
{
if (! configured && CH0_NETGOOD)
{
// analog inputs configuration
... | C++ | TPAC1008_02_AB/Latency_test/automation.cpp | MECTsrl/mect_apps | mit | 1,761 | 82 | codeparrot/github-code |
51c218925fb960be0273f4d669b77b1aca2381b2ac99b5f65e03d959d5ced312 | 'use strict';
const PI = Math.PI;
const RAD_PER_DEG = PI / 180;
const DOUBLE_PI = PI * 2;
const HALF_PI = PI / 2;
const QUARTER_PI = PI / 4;
const TWO_THIRDS_PI = PI * 2 / 3;
/**
* @namespace Chart.helpers.canvas
*/
/**
* Returns the aligned pixel value to avoid anti-aliasing blur
* @param {Chart} chart - The cha... | JavaScript | src/helpers/helpers.canvas.js | touletan/Chart.js | mit | 6,198 | 212 | codeparrot/github-code |
7164c7c0674abbf5cbc31bf324609b53653d3c4d2d839e07ea770d18ebbb5b23 | /****************************************************************************
**
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the QtCore module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
*... | C | Qt/QtCore/5.4.2/QtCore/private/qringbuffer_p.h | Yangff/mvuccu | mit | 9,295 | 312 | codeparrot/github-code |
26b203254b4cefb18639e8f117a481646111829dda5eeccac8e2c85a5f0b794d | /*=============================================================================
Copyright (c) 2005 Dan Marsden
Copyright (c) 2005-2007 Joel de Guzman
Copyright (c) 2007 Hartmut Kaiser
Copyright (c) 2015 John Fletcher
Distributed under the Boost Software License, Version 1.0. (See accompanying... | C++ | boost/libs/phoenix/test/algorithm/querying_find2.cpp | zjutjsj1004/third | mit | 3,490 | 108 | codeparrot/github-code |
2c6fab23cbc2d97df0f4526865470b6f6df1edc8a8b12210b2b00cd5d03d4f2d | require 'fileutils'
module DataParse
class FileType
def self.descendants
ObjectSpace.each_object(Class).select { |klass| klass < self }
end
def initialize(file, format)
@file = file
@format = format
end
def make_dir(destination = 'tmp')
@destination = destination
F... | Ruby | lib/data_parse/file_type/file_type.rb | lucasdc6/data_parse | mit | 599 | 33 | codeparrot/github-code |
85d864c8520ace6bd37aa417c426a80fae0a4b762d1094a245eef30ca8c8c9fd | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>relation-algebra: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstra... | HTML | clean/Linux-x86_64-4.04.2-2.0.5/released/8.7.2/relation-algebra/1.3.html | coq-bench/coq-bench.github.io | mit | 7,135 | 176 | codeparrot/github-code |
df048f9417e948000ecc474791aaf726add44f9be401d6adb7a3f4a8d0ecf2e7 | import chai from 'chai';
import { replaceParam } from '../../src/index';
chai.expect();
const expect = chai.expect;
describe('replaceParam()', () => {
it('should be a function', () => {
expect(replaceParam).to.be.a('function');
});
if (this && this === this.window) {
it('should default to using the c... | JavaScript | test/specs/replaceparam.js | alvinteh/url-params-helper | mit | 913 | 35 | codeparrot/github-code |
be80dc2bd3f3e0efecde71f502e2b2c92b4a8f50692f2b34dfa3430d64a8c586 | #include <iostream>
#include <stdio.h>
#include <math.h>
#include <memory.h>
#include <string.h>
#include <time.h>
#include "Earlab.h"
#include "BushyCell2.h"
#include "CParameterFile.h"
#include "ParameterStatus.h"
#include "EarlabException.h"
#include <math.h>
#ifdef _WIN32
# include <windows.h>
#else
... | C++ | src/Modules/BushyCell2/BushyCell2.cpp | AuditoryBiophysicsLab/EarLab | mit | 16,134 | 438 | codeparrot/github-code |
c651124b4aab960eaa870aac772dd478e379c27727bc92745f50f214d40ce4f7 | package com.sharply.sharplyandroidutils.model.graph;
/**
* Created by adrianbudzynski on 07.10.2017.
*/
public class Edge<T> {
Vertex<T> from = null;
Vertex<T> to = null;
int cost = 0;
public Edge(int cost, Vertex<T> from, Vertex<T> to) {
if (from == null || to == null)
throw (... | Java | app/src/main/java/com/sharply/sharplyandroidutils/model/graph/Edge.java | adrianbudzynski/sharply-android-utils | mit | 1,965 | 82 | codeparrot/github-code |
22cf2eb8138c2c80275c507494ea01386e70fabd59cf6ed8b50d669d8b057c99 | var $ = require('../../../config/node_modules/jquery');
/* Dynamic Styling ------------------ */
// Links
$('.field-style a').each(function() {
var $this = $(this);
$this.attr(
'style',
$this
.next('pre')
.children('code')
.text... | JavaScript | app/src/assets/js/dynamic-styling.js | acezard/jekyll-styleguide-builder | mit | 1,687 | 79 | codeparrot/github-code |
e715128ff11fbaeb890ffd193cf7db07b0fad886ffbc3263072f10e1dba23189 | package flyway.userlayer;
import fi.nls.oskari.log.LogFactory;
import fi.nls.oskari.log.Logger;
import fi.nls.oskari.util.JSONHelper;
import org.flywaydb.core.api.migration.jdbc.JdbcMigration;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.sql.Connection;
import java... | Java | content-resources/src/main/java/flyway/userlayer/V1_0_8__add_name_and_type_to_fields.java | nls-oskari/oskari-server | mit | 2,438 | 68 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.