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 |
|---|---|---|---|---|---|---|---|---|
dc8e08bd35a3f72dc1b537740723b4225a4669c9ab30b42e30dd8707c443b24c | package org.amc.game.chessserver.spring;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;
import org.springframework.validation.Errors;
import org.springframewor... | Java | src/test/java/org/amc/game/chessserver/spring/InValidPasswordTest.java | subwoofer359/AMCChessGame | mit | 1,306 | 49 | codeparrot/github-code |
3ca50f993f5963e051638636e5d29bf905de0da59ca3e3caa60adc06b03b81c6 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Spells : MonoBehaviour {
const float slowTimeDuration = 4F;
public enum SPELL_NAMES { SlowTime };
static Dictionary<string, SPELL_NAMES> spells = new Dictionary<string, SPELL_NAMES>();
void Awake() {
... | C# | Assets/Scripts/Magic/Spells.cs | linxcat/CMPT406-VR | mit | 1,037 | 41 | codeparrot/github-code |
9104ce058c29875702a57989ce7284534174d9c0990f609f225ebc2a7f341100 | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ClickMode_1 = require("../Enums/Modes/ClickMode");
var InteractivityDetect_1 = require("../Enums/InteractivityDetect");
var Constants_1 = require("./Constants");
var EventListeners = (function () {
function EventListeners(container) {
... | JavaScript | ajax/libs/tsparticles/1.14.0-alpha.4/Utils/EventListeners.js | cdnjs/cdnjs | mit | 14,010 | 299 | codeparrot/github-code |
2a334de6ac7e3bffb631635299feec05d95d8cf05a0a3083ec82cd2203813f34 | <?php
namespace Elastica\Test\Suggest;
use Elastica\Document;
use Elastica\Index;
use Elastica\Suggest;
use Elastica\Suggest\CandidateGenerator\DirectGenerator;
use Elastica\Suggest\Phrase;
use Elastica\Test\Base as BaseTest;
class PhraseTest extends BaseTest
{
/**
* @return Index
*/
protected func... | PHP | test/Elastica/Suggest/PhraseTest.php | p365labs/Elastica | mit | 2,774 | 84 | codeparrot/github-code |
869ba78ae363432e7b9489c4646fb30547386d0d602cb4f854e941ceba4dd5fd | import { Material } from './Material.js';
import { Color } from '../math/Color.js';
/**
* @author alteredq / http://alteredqualia.com/
*
* parameters = {
* color: <hex>,
* map: new THREE.Texture( <Image> ),
* rotation: <float>,
* sizeAttenuation: <bool>
* }
*/
function SpriteMaterial( parameters ) {
Ma... | JavaScript | public/js/three.js/src/materials/SpriteMaterial.js | billroy/jchart | mit | 1,007 | 55 | codeparrot/github-code |
c132401ebe1144a00e876641e5a4eecc2da5ac6e35a46c984f6ce538ae8d8b9b | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Dialog = void 0;
var _react = _interopRequireWildcard(require("react"));
var _reactDom = _interopRequireDefault(require("react-dom"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _DomHandler = _interopReq... | JavaScript | ajax/libs/primereact/5.0.0-rc.1/components/dialog/Dialog.js | cdnjs/cdnjs | mit | 21,192 | 549 | codeparrot/github-code |
ab7c205bc27ef7bb21746ec745c8df0473e4a5f699d09fa3c5a0d1ac952a584e | <?php
/**
* File PrintController.php
* Created at: 2015-03-16 06-07
*
* @author Daniel Bojdo <daniel.bojdo@web-it.eu>
*/
namespace Webit\Bundle\ShipmentBundle\Controller;
use Symfony\Component\HttpFoundation\Response;
use Webit\Shipment\Consignment\ConsignmentInterface;
use Webit\Shipment\Consignment\DispatchCon... | PHP | src/Controller/PrintController.php | dbojdo/shipment-bundle | mit | 2,420 | 73 | codeparrot/github-code |
e0de41619c8207d928fe96445e96d97a4e04cb39a89fef40576a80f10b59f618 | <?php
namespace Agregator\FrontendBundle\Entity;
use Gedmo\Mapping\Annotation as Gedmo;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity(repositoryClass="Agregator\FrontendBundle\Repository\OfertaRepository")
*/
class Oferta
{
/**
* @ORM\Id
* @O... | PHP | src/Agregator/FrontendBundle/Entity/Oferta.php | banu-ioan/symfony2.dev | mit | 2,984 | 164 | codeparrot/github-code |
591a06922cbbe6516b990dd008135d5ac5117445b3c8b5a42b8fc684dcef1857 |
<!DOCTYPE html>
<!--[if IE 9]><html class="lt-ie9" lang="fr"><![endif]-->
<!--[if !IE]><!--><html lang="fr"><!--<![endif]-->
<head>
<title>Le Prince de Bel-Air - Série (1990) - Andy Borowitz - SensCritique</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
... | HTML | web/docs/series/2015-11-10/le-prince-de-bel-air/index.html | dieng444/smart-search | mit | 94,544 | 2,329 | codeparrot/github-code |
1e4c01f335ffc2a587d8f0a5248f5c741e370f01db6c2ecf32a59ab58691dc75 | (function (line) {
line.define('line.io.Storage', {
abstract: true,
events: ['load', 'change', 'error'],
methods: {
init: function () {
this._nodeMap = {};
this._isReady = true;
this._readyCallbacks = [];
},
... | JavaScript | src/io/Storage.js | occultknight/LineJS | mit | 10,903 | 327 | codeparrot/github-code |
29a4f3d20b7a1354cb69c7567f867dbc40ea3629701cbf3a95297fcda5ae407f | package main
import (
"fmt"
"log"
"os"
"github.com/nullbus/story"
)
func usageAndExit() {
write := func(args ...interface{}) { fmt.Fprintln(os.Stderr, args...) }
write("Usage: story <command> [options...]")
write(" story init")
write(" story auth")
write(" story info")
write(" story show")
write(" st... | GO | story/main.go | nullbus/story | mit | 2,521 | 135 | codeparrot/github-code |
f45978ccf0ceed5110f08c0e1ce7bae05e14fe3850616122815deef457dd8ec4 | def MinScalarProduct(vector1,vector2,case):
vector1.sort(reverse=False)
vector2.sort(reverse=True)
scalarProduct=0
i=0
while i<len(vector1):
scalarProduct+=vector1[i]*vector2[i]
i+=1
return "Case #"+str(case)+": "+str(scalarProduct)+"\n"
def readTestFile(inputFile,outputFile):
... | Python | 2008/1A/MinimumScalarProduct/MinScalarProduct.py | alexcasgarcia/GCJ | mit | 1,138 | 37 | codeparrot/github-code |
a31f7da6d8d0b531c15ff005c3aac7dca374d0de23564ca1c569f55870d33161 | var Template = require('../../lib/template');
var assertHtml = require('../helper').assertHtml;
describe('Code output', function() {
var template;
beforeEach(function() {
template = new Template(require('../../lib/vm_node'));
});
test('render with call', function() {
assertHtml(template, [
'p',
... | JavaScript | __tests__/core/code_output.js | slm-lang/slm | mit | 2,292 | 106 | codeparrot/github-code |
159601fd1df4ead49f33689af9bca087252ccb02eb8224a5e8d6e58997e2df37 | package com.tinkermode.lumos;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import com.tinkermode.MODEApp;
import com.tinkermode.MODEData;
impo... | Java | lumos/src/main/java/com/tinkermode/lumos/VerifyAccountActivity.java | moderepo/Android-SDK | mit | 6,661 | 160 | codeparrot/github-code |
c589d7e9bfd6baae106146f63cee94b6be03fc8a852a143a3e4f794c50453165 | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import KeyCode from '../utils/KeyCode';
import Menu from '../Menu/Menu';
import Popover from '../Popover/Popover';
import ThemeService from '../styles/ChamelThemeService';
class AutoComplete extends Component {
static propTypes = {
/**... | JavaScript | src/AutoComplete/AutoComplete.js | skystebnicki/chamel | mit | 10,427 | 353 | codeparrot/github-code |
b0266eda429bc7c9cdc7b4d6d53168bc47b076579e47dfce4d68155afffc30c3 | // Package authority creates and manages platform certificates.
package authority
import (
"crypto/rsa"
"crypto/x509"
"io/ioutil"
"os"
"path/filepath"
"dfss/auth"
"github.com/spf13/viper"
)
// PlatformID contains platform private key and root certificate
type PlatformID struct {
Pkey *rsa.PrivateKey
RootC... | GO | dfssp/authority/rootCA.go | Lesterpig/dfss | mit | 3,322 | 112 | codeparrot/github-code |
c8a9eba2ca52b99f09f54be2de4be6044ba07d3415e956c575bf9546c9dea18c | import { post } from 'axios';
import { getDatesToScheduleQueueFromDB, updateScheduledEvents, clearDatesToScheduleAndEventsToDeleteQueues } from '../src/controllers/userController';
import { HOST } from '../src/creds.json';
const deleteDuplicateEventsFlow = (uniqueUserId, newEvents) =>
getDatesToScheduleQueueFromDB(u... | JavaScript | functions/utils/deleteDuplicateEventsFlow.js | multani7871/wheres-my-money-server | mit | 1,233 | 33 | codeparrot/github-code |
eebe8568583d8f76afa07ab2a41ce8823449ff4e0904c036a9154d10f9f9ceda | package pub.threadpool;
/**
* �����Ƿ�ֹͬһ�̶߳�������в��������ͻ
*
*/
public class PooledThread extends Thread {
protected ThreadTask task;
//�߳��ܶ��ı�־
protected boolean running = false;
//�̴߳�������й����Ƿ�Ҫ��ֹ
protected boolean stopped = false;
//�̴߳�������й����Ƿ���ͣ
protect... | Java | DAtools/src/pub/threadpool/PooledThread.java | likelet/DAtools | mit | 2,036 | 98 | codeparrot/github-code |
d3e1eb3e59a2a43e7e2c573b2bcc7c000cfd8f06e010ea57217cb73e6f470b29 | <?php
/**
* GDOType is the base class for all datatypes used in GWFv5.
* Imagine it like a column descriptor with conversions and stuff.
*
* You can add them to GWF_Form::addField()
* You can add them to GDO::gdoColumns()
* You can add them to GWF_Module::getConfig()
*
* @author gizmore
* @since 5.0
*
* @... | PHP | inc/gdo5/ql/GDOType.php | gizmore/gwf5 | mit | 12,368 | 643 | codeparrot/github-code |
be6a41d6abfa34cbe68fec2f0cf409dcc7cf13d579e9b0fab9628f93ca088ac8 | using System.Collections.Generic;
using System.Diagnostics;
using Newtonsoft.Json;
using System.Net.Http;
using System.Text.RegularExpressions;
namespace PokemonGoApi
{
public static class AuthenticationService
{
public enum AuthenticationType
{
PTC = 0,
Google = 1
... | C# | PokemonGoApi/AuthenticationService.cs | ernilos/PokemonGoApi | mit | 10,485 | 171 | codeparrot/github-code |
d4ba797bebfc20188556bc8cfa475d240f4880ddf2b9b59f11534c9e7251e7cd | #!/usr/bin/env ruby
#
# flex_compiler.rb
#
# This object will compile an ActionScript project using the Flex compiler
# chain. It expects a project file. The format for the file uses yml and
# should look like:
require 'flash_mate'
require 'open3'
module FlashMate
# If nothing is set these are used when displaying ... | Ruby | Support/lib/flex_compiler.rb | adamelliot/actionscript-3-and-pixelbender.tmbundle | mit | 2,920 | 100 | codeparrot/github-code |
aee8e0dcec1e5076e33faf2b0037b4f2a11ca0fabf345f734f16dcba4bcb1047 | 'use strict';
const EventEmitter = require('events').EventEmitter;
const Gpio = require('onoff').Gpio;
const mutexify = require('mutexify');
const ROW_OFFSETS = [0x00, 0x40, 0x14, 0x54];
const COMMANDS = {
CLEAR_DISPLAY: 0x01,
HOME: 0x02,
SET_CURSOR: 0x80,
DISPLAY_ON: 0x04,
DISPLAY_OFF: ~0x04,
CURSOR_ON:... | JavaScript | lcd.js | fivdi/lcd | mit | 6,920 | 282 | codeparrot/github-code |
406155e083882f7f348fd1959560af5b9ca222e551c40025452a3e0f54cd8f19 | <?php
namespace Jumilla\Addomnipot\Laravel;
use Jumilla\Generators\Php\Constant;
use Jumilla\Generators\Php\ClassName;
use Jumilla\Generators\FileGenerator;
const ADDON_VERSION = 5;
class Generator
{
public function __construct() {
$this->DEFAULTS = [
'namespace' => '',
'director... | PHP | sources/Generator.php | jumilla/laravel-addomnipot | mit | 25,085 | 688 | codeparrot/github-code |
cd1789c474133d6a52a2b4c03385062dc89c66c907701b1a0e49e0d03e2616ba | package de.nedelosk.modularmachines.api.modules.handlers;
import java.util.EnumMap;
import de.nedelosk.modularmachines.api.modules.IModule;
import de.nedelosk.modularmachines.api.recipes.RecipeItem;
import net.minecraft.util.EnumFacing;
public interface IModuleContentHandlerAdvanced<C,M extends IModule> extends IMod... | Java | src/main/java/de/nedelosk/modularmachines/api/modules/handlers/IModuleContentHandlerAdvanced.java | Nedelosk/Forest-Mods | mit | 1,016 | 43 | codeparrot/github-code |
42c812624ce021a8f50b151ca80cb03d79030b0ab0feca0b987dc730cdb87509 | /* This view is for displaying level selection; user will be able to choose levels in this view*/
define(function(require, exports, module) {
var View = require('famous/core/View');
var Surface = require('famous/core/Surface');
var Modifier = require('famous/core/Modifier');
var Transform ... | JavaScript | app/src/views/LevelSelectionView.js | Famospace/Famo.us-Monospace | mit | 7,301 | 220 | codeparrot/github-code |
cc06b6ac29468d633d4e49a62f1ab36b337a24c3f15351ce1fa4edce0bfe6a44 | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Web.Mvc;
using Umbraco.Core;
using Umbraco.Web.Models;
using Umbraco.Web.Mvc;
using Webdotnet.Custom.Core.Helpers;
using Webdotnet.Custom.ViewModels;
namespace Webdotnet.Custom.Controllers
{
public class Al... | C# | Webdotnet.Custom/Controllers/AllArticlesController.cs | Haas360/webdotnet | mit | 3,432 | 95 | codeparrot/github-code |
b23ef8e37d9f935187ecba26ec4c9eceacd640e1c0bbdd0f0db2245dcc0afc7f | package com.coding4people.mosquitoreport.api.buckets;
import java.awt.image.BufferedImage;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import javax.imageio.ImageIO;
import javax.imageio.ImageWriteParam;
import javax.imageio.ImageWr... | Java | src/main/java/com/coding4people/mosquitoreport/api/buckets/PictureBucket.java | coding4people/mosquito-report-api | mit | 2,793 | 73 | codeparrot/github-code |
f65af1af4085b9bb2114064a145627aa3bc0665a8b02d9180a51ea3bc3da557a | <html><body><p><!-- saved from url=(0024)http://docs.autodesk.com -->
<!DOCTYPE html>
<!-- Mirrored from help.autodesk.com/cloudhelp/2016/ENU/Maya-Tech-Docs/PyMel/generated/classes/pymel.core.uitypes/pymel.core.uitypes.LayoutDialog.html by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 01 Aug 2015 05:32:06 GMT -->
<!-... | HTML | PyMel.docset/Contents/Resources/Documents/generated/classes/pymel.core.uitypes/pymel.core.uitypes.LayoutDialog.html | alexwidener/PyMelDocset | mit | 11,397 | 186 | codeparrot/github-code |
cc754c2bddb56ef266bf583a00ef7887379ccefccd15e61ee7a69831e8514971 | //
// MGTwitterYAJLParser.h
// MGTwitterEngine
//
// Created by Matt Gemmell on 18/02/2008.
// Copyright 2008 Instinctive Code.
//
#import "MGTwitterEngineGlobalHeader.h"
#import <yajl/yajl_parse.h>
#import "MGTwitterParserDelegate.h"
#import "MGTwitterEngineDelegate.h"
@interface MGTwitterYAJLParser : NSObject... | C | RunLog/third_party/twitterengine/MGTwitterYAJLParser.h | uwedeportivo/NikePlus-Cocoa-RunLog | mit | 1,665 | 61 | codeparrot/github-code |
558de7f377fb232b328b5fdffee30af766b26ac014cc0802566f265cbf2f88ef | require './src/reporter'
require './src/interface'
require './src/router'
class Robot < Interface
attr_accessor :x, :y, :facing, :router
def initialize(x = 0, y = 0, facing = :north, router = Router)
@router = router.new x, y, facing
@facing = @router.facing
@x = @router.x
@y = @router.y
@dire... | Ruby | src/robot.rb | igorescobar/toy-robot | mit | 546 | 32 | codeparrot/github-code |
3829466454ecceacfb634a04bb317f87cf90bd51088adefac4a4edbedd5f7de5 | var LogWindowManager = new Class({
Implements: [Events, Options],
options: {
container: 'body'
},
active: true,
reloadTimer: 0,
initialize: function()
{
this.container = window.document.getElement(this.options.container);
var self = this,
menu = new Element('div', {class:'header'}).inject(this.con... | JavaScript | themes/admin/javascript/ionize/ionize_log.js | adamos42/ionize | mit | 2,186 | 103 | codeparrot/github-code |
a3c692cf7d3c6dc11e9d3212233d168e9f6fab2afc5bbefe30bd872e06f78f76 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#define RESOURCE_SATELLITE_CONFIG
#if !PLATFORM_UNIX
#define FEATURE_USE_LCID
#endif // !PLATFORM_UNIX
#if ENABLE_W... | C# | src/System.Private.CoreLib/src/System/Resources/ResourceManager.cs | sandreenko/corert | mit | 60,176 | 1,362 | codeparrot/github-code |
636df6a3f4c223c623cec4be413d49de098693c8f58553a420510aa8c15eb01a | 'use strict';
/**
* Module dependencies.
*/
var _ = require('lodash'),
defaultAssets = require('./config/assets/default'),
testAssets = require('./config/assets/test'),
fs = require('fs'),
path = require('path');
module.exports = function (grunt) {
// Project Configuration
grunt.initConfig({
pkg: gr... | JavaScript | gruntfile.js | emil-alexandrescu/mean | mit | 6,243 | 245 | codeparrot/github-code |
e08910443063dae0a5cef3c8d991aa604cbc2d03c00f66d2fbf1048c8c715c9c | <?php
/**
* This file is part of the Propel package.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @license MIT License
*/
require_once dirname(__FILE__) . '/ScopedElement.php';
require_once dirname(__FILE__) . '/IDMethod.php'... | PHP | libraries/dabl/database/propel/model/Database.php | coleHafner/quizbot | mit | 16,058 | 652 | codeparrot/github-code |
abf438f168fd9f0b5fc759a29ec119cf598b06170e3e5633be19a99acd66144d | /*
* Copyright (c) 2015 Nelson Tran
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publis... | C++ | arduino/mouse.cpp | nelsontran/PyDuino-MK | mit | 6,036 | 273 | codeparrot/github-code |
a519d9ec1fb0ceb02f80ab502a396684cab727f59807dd7e4bb83166ab66b328 | /**
* The service worker will cache resources to allow offline usage :
* - GOOGLE : https://developers.google.com/web/fundamentals/primers/service-workers/#update-a-service-worker
* - MOZILLA : https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers
*/
var cacheName = 'v4';
v... | JavaScript | webapp/webapps-calculator-sw.js | guillaumeprevot/webapps-calculator | mit | 2,438 | 70 | codeparrot/github-code |
24fd72e1ae6910b893b3c7e3326b3ec5e8389250314ee4b906567b84021d0722 | var _ = require('underscore');
var numhelp = require('./numhelp.js');
var hex = require('./hex.js');
var errors = require('../errors.js');
function validate(number)
{
if (number.length < 1 || number.match(/[^01]/)) {
throw new errors.InvalidArgument('Invalid binary number: ' + number);
}
}
function grou... | JavaScript | src/lib/numbers/bin.js | noseglid/canumb | mit | 1,299 | 65 | codeparrot/github-code |
d3d34e055d64b34652f797eb164f8f75c4c7582c2f563408ac604600536344b5 | require "my_mongoid/version"
require "active_support"
require "active_model"
require "moped"
class MyMongoid::DuplicateFieldError < RuntimeError
end
class MyMongoid::UnknownAttributeError < RuntimeError
end
class MyMongoid::UnconfiguredDatabaseError < RuntimeError
end
class MyMongoid::RecordNotFoundError < RuntimeE... | Ruby | lib/my_mongoid.rb | hayeah/my_mongoid | mit | 7,346 | 381 | codeparrot/github-code |
8efbdf880a9c661fc52ccd7033e4d9681ca2f311a7c7b4f7a913a95f681f1dc4 | /*! \file kfbxprocessorxref.h
*/
#ifndef FBXFILESDK_FBXPROCESSORS_KFBXPROCESSORXREF_H
#define FBXFILESDK_FBXPROCESSORS_KFBXPROCESSORXREF_H
/**************************************************************************************
Copyright (C) 2001 - 2009 Autodesk, Inc. and/or its licensors.
All Rights Res... | C | external/fbxfilesdk/fbxprocessors/kfbxprocessorxref.h | decryphe/slimmesh | mit | 8,289 | 189 | codeparrot/github-code |
2ded3904dd1de8dff9c3c2572faf2c26a71060dc6c1194a53c559672628a933a | import platform
import os
import time
import sys
import json
from threading import Thread
from subprocess import Popen, PIPE
import subprocess
from Queue import Queue, Empty
from datetime import datetime
from ConfigParser import SafeConfigParser
from flask import render_template
from flask import Flask, request, rend... | Python | Flansible/flansible/__init__.py | nlucent/flansible | mit | 2,810 | 94 | codeparrot/github-code |
f334130ae58f6f6dc295d02b8f0b92e5e4696053478d110b4e98822a7b39ee41 | from django.shortcuts import render
from django.contrib.auth.models import User
from django.utils.text import slugify
from django.core.exceptions import ObjectDoesNotExist
from rest_framework import status
from rest_framework.decorators import api_view
from rest_framework.response import Response
from rest_framework.p... | Python | binge/core/views.py | skeuomorf/Binge | mit | 1,811 | 50 | codeparrot/github-code |
f93d583fac91bb7dcad3e35137b4e44e4a54f908468089e9af342e5145a097c9 | /* MIPVolumeMaterial: volume rendering using maximum intensity projection (MIP)
*/
#ifndef _MIPVolumeMaterial_H
#define _MIPVolumeMaterial_H
#include "Material.h"
#include "Colormap.h"
#include <itkImage.h>
#include <iostream>
#include <vector>
#include <string>
using namespace std;
class MIPVolumeMaterial : pub... | C | src/gl/MIPVolumeMaterial.h | daniel-perry/rt | mit | 1,294 | 55 | codeparrot/github-code |
a07cb17e7eb9e748137a8928bc81a922186f9fb567500584ef6463e92643e2e9 | import pygame, sys, math
from Meatball import *
class Player(Meatball):
def __init__(self, maxSpeed =5 , pos=[10,10]):
Meatball.__init__(self, pos, None)
size = [45,45]
self.maxSpeed = maxSpeed
self.images = [pygame.transform.scale(pygame.image.load("rsc/ball/SpoonerF.png"), si... | Python | Player.py | KRHS-GameProgramming-2016/Spoonghetti-Man | mit | 4,204 | 100 | codeparrot/github-code |
d0ce3867be25596ec302a895a72e248aef4f20f0369842ad243f3ca02c26530e | import { Selector, NoneSelector } from './selectorsBase'
// ----------------------------------------------------------------------------
// Operators
// ----------------------------------------------------------------------------
const none = new NoneSelector()
class PrefixOperator extends Selector {
constructor(rh... | JavaScript | packages/miew/src/chem/selectors/selectOps.js | epam/miew | mit | 1,254 | 56 | codeparrot/github-code |
47b90595e089609f46600c7a191300d35a2c6bed51494a6ad159583afb4d2c33 | using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Events;
using System.Collections;
using System.Collections.Generic;
public class InventoryTransferUI : MonoBehaviour
{
[SerializeField]
private InventoryUI playerInventoryUI;
[SerializeField]
private InventoryUI containerInventoryUI;
/// <summary>
//... | C# | Assets/Scripts/GUI/InventoryGUI/InventoryTransferUI.cs | bi3mer/SeniorProject | mit | 2,584 | 106 | codeparrot/github-code |
ccc61fb922d92aff41e8b64d7de3f2e005748351347d0ece4b3a599d9563547c | using System;
using System.Linq;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using System.Web.Http;
using Microsoft.Azure.Documents.Client;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.Azure.WebJobs.Host;
using Newtonsoft.Json;
using P... | C# | Producer/Producer.Functions/AuthenticateUser.cs | technicalpoets/producer | mit | 2,406 | 91 | codeparrot/github-code |
3b17fe7d2b09b1ddae535ec41deab1d2b1d623bba60abdbde52b57b0bed2af6a | <?php
namespace AppBundle\Action\GameReport\Update;
use AppBundle\Action\AbstractView2;
use Symfony\Component\HttpFoundation\Request;
class GameReportUpdateView extends AbstractView2
{
/** @var GameReportUpdateForm */
private $form;
private $project;
public function __construct(GameReportUpdateFor... | PHP | src/AppBundle/Action/GameReport/Update/GameReportUpdateView.php | cerad/ng2016 | mit | 2,719 | 82 | codeparrot/github-code |
b74effca831ec05db748245608e746b1fbf59eb99d4010be707447a6900cf241 | import * as React from 'react';
import useUpdateEffect from '../useUpdateEffect';
export interface Options<T> {
defaultValue?: T;
defaultValuePropName?: string;
valuePropName?: string;
trigger?: string;
}
export interface Props {
[key: string]: any;
}
interface StandardProps<T> {
value: T;
defaultValue... | TypeScript | packages/zarm/src/utils/hooks/useControllableValue/index.ts | ZhonganTechENG/zarm | mit | 1,576 | 67 | codeparrot/github-code |
14a4bcccbd588a3d8f6471b392d2bd639381958d89fd547f30bc12c82573ec78 | import unirest from "unirest"
import querystring from "querystring"
import _ from "lodash"
import {sleep, mapSeries} from "./misc"
import config from "../config"
const baseURL = "https://api.stackexchange.com/2.2/"
var backoff = 0
const handleResponse = function(response) {
if ("backoff" in response) backoff = res... | JavaScript | src/StackExchangeAPI.js | Gothdo/New-SO-Review | mit | 1,801 | 60 | codeparrot/github-code |
47284ad1109e2a40afc24f6556913f7f47a3b17790b9ad6d300518843b2a5a33 | <div class="create-container container" [ngClass]="{'padding-footer-double': isEditing}">
<div *ngIf="!isEditing && steps[0].isActive">
<div class="row">
<div class="col-12">
<h5>Choose type</h5>
<hr/>
</div>
</div>
<div class="row">
<div class="col-12 col-md-4 col-lg-4" ... | HTML | src/app/backlogItem/create.html | Ricsard-Kyokaza-BME/MSC-laboratory-1-frontend | mit | 9,478 | 198 | codeparrot/github-code |
525e66664f4140badf38e14c6511b6eb6422a07210621063dcd6a5010bbfb727 | using System;
namespace DomainTime
{
public class MyDomainTime
{
private const string DefaultTimeZone = "US/Pacific";
private string _timeZone;
private static Func<DateTime> _funcForDeterminingNow;
static MyDomainTime()
{
_funcForDeterminingNow = DefaultNowFunc;
}
// this is the default for how "... | C# | DomainTime/MyDomainTime.cs | iTrellisDevs/DomainTimeDemo | mit | 2,674 | 99 | codeparrot/github-code |
ee3c2c68c640778ec087273c20da038eb3d7f6ce52976198212c249e34db5a0a | <?php
/**
* Contact
*
* @author Team phpManufaktur <team@phpmanufaktur.de>
* @link https://kit2.phpmanufaktur.de/Contact
* @copyright 2013 Ralf Hertsch <ralf.hertsch@phpmanufaktur.de>
* @license MIT License (MIT) http://www.opensource.org/licenses/MIT
*/
namespace phpManufaktur\Contact\Control\Dialog\Simple;
... | PHP | Control/Dialog/Simple/TagList.php | phpManufaktur/kfContact | mit | 2,581 | 87 | codeparrot/github-code |
43b606ffcdf1e8b69841cee8b231c474354c9e9008a1220137e23669907f6e2a | import os
import sys
import houseKeeper
from multiprocessing import Pool
import time
def extractMumData(folderName, fileName):
# "Format of the dataList : 1 765 | 11596 10822 | 765 775 | 84.25 | ref_NC_001133_ scf7180000000702"
f = open(folderName + fileName, 'r')
dataLis... | Python | experimental/finisherSCCoreLib/alignerRobot.py | kakitone/finishingTool | mit | 8,230 | 209 | codeparrot/github-code |
791ce0dd3b39993bd1bd942ce8454ac52ffc0db429e80cd7d43894a8a73ad443 | using System;
namespace EPI.StacksAndQueues
{
/// <summary>
/// A queue can be implemented using an array and a beginning (head) and end (tail)
/// indices. This data structure is often referred to as a circular queue.
/// Implement a circular queue class containing a constructor that takes the capacity,
/// enq... | C# | EPIProblems/StacksAndQueues/CircularQueue.cs | dipakboyed/epibook.github.io.Puzzles | mit | 1,438 | 69 | codeparrot/github-code |
4822af8f1278f15e14b693ea0c40d67569b2baea3cebb047e174272d4f866f95 | 'use strict'
const Avvio = require('avvio')
const http = require('http')
const querystring = require('querystring')
let lightMyRequest
let version
let versionLoaded = false
const {
kAvvioBoot,
kChildren,
kBodyLimit,
kRoutePrefix,
kLogLevel,
kLogSerializers,
kHooks,
kSchemas,
kValidatorCompiler,
kS... | JavaScript | ajax/libs/fastify/3.8.0/fastify.js | cdnjs/cdnjs | mit | 20,544 | 646 | codeparrot/github-code |
45ac03d54dd1aad240740f75a09d59205d23dda845d3bca10e2df925b47e683e | /*! Buefy v0.9.1 | MIT License | github.com/buefy/buefy */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = global || self, factory(global.Skeleton = {}));
}(t... | JavaScript | ajax/libs/buefy/0.9.1/components/skeleton/index.js | cdnjs/cdnjs | mit | 6,072 | 207 | codeparrot/github-code |
a5a64756a962164539f3feec4450e538b1bbe80131660c468bc488fdd4a103f8 | /*! UIkit 3.3.3 | http://www.getuikit.com | (c) 2014 - 2019 YOOtheme | MIT License */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
typeof define === 'function' && define.amd ? define('uikitsortable', ['uikit-util'... | JavaScript | ajax/libs/uikit/3.3.3/js/components/sortable.js | cdnjs/cdnjs | mit | 16,835 | 512 | codeparrot/github-code |
d992d426e9937a3ad29f3b188ca520a9efbba56e268a912b6e034e9a20432df6 | <?php
//Query that requests for all categories from ther table
$sql = "SELECT * from add_business WHERE category='Soccer/Rugby/Athletics' AND region='Kampala'";
$query = mysqli_query($conn, $sql);
$count = mysqli_num_rows($query);
if ($count == 0) {
} else {
?>
<ul class="area" id="Ebb">
<h3 clas... | PHP | sports&outdoor/SoccerRugby&Athletics.php | cd2015/yuun94 | cc0-1.0 | 42,580 | 868 | codeparrot/github-code |
f28e993a64e8190f5f032f7120c3b0cff7cd899a907cf2e7a256587d164df95d | using System;
using System.Diagnostics.Contracts;
using Zoltu.Collections.Generic.NotNull;
namespace Zoltu.Linq.NotNull
{
internal sealed class SelectEnumerable<TSource, TResult> : INotNullEnumerable<TResult>
{
private readonly INotNullEnumerable<TSource> _source;
private readonly Func<TSource, TResult> _predic... | C# | Zoltu.Linq.NotNull/SelectEnumerable.cs | Zoltu/Zoltu.Linq.NotNull | cc0-1.0 | 2,948 | 119 | codeparrot/github-code |
2c4d1a0012a91353ad83bc9ad457bf28c81d22581fea53dc7b71cfda57b93b90 | /* Generated File */
package controllers.admin.customer
import com.kyleu.projectile.controllers.{BaseController, ServiceAuthController}
import com.kyleu.projectile.models.module.Application
import com.kyleu.projectile.models.result.RelationCount
import com.kyleu.projectile.models.result.orderBy.OrderBy
import com.kyle... | Scala | app/controllers/admin/customer/LanguageRowController.scala | KyleU/boilerplay | cc0-1.0 | 7,373 | 123 | codeparrot/github-code |
68f658ed2203a2976a486381b45e74281caf49372edbc91be113c2354eca7a86 | <!--
Automatically generated HTML file from DocOnce source
(https://github.com/doconce/doconce/)
-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="DocOnce: https://github.com/doconce/doconce/" />
<meta name="viewport" content="width=device-width, ini... | HTML | doc/pub/week9/html/._week9-bs050.html | CompPhysics/ComputationalPhysics2 | cc0-1.0 | 44,619 | 661 | codeparrot/github-code |
3ffbf959e9ee998c10a3ccd11920d87bea01cba66f7f0d9f3d8549b172cdfb67 | 'use strict';
/**
* learnlists and movelists-related macro
*
* Since new learnlists and movelists are handled automagically
* there should be no need to update this file
*/
(function(utils) {
const macros = utils.macros;
macros.intestazioni = function(str, type) {
var customTrans = {
learnset: {
learnlist... | JavaScript | macros/learnlist.js | pokemoncentral/wiki-macros | cc0-1.0 | 22,756 | 553 | codeparrot/github-code |
84cc28aac66be824743c099d8d2f923df5739ef016c89f2256d5de3cb7d8b330 | <?php defined('BASEPATH') OR exit('No direct script access allowed');
class Sync_model extends CI_Model
{
public function __construct()
{
parent::__construct();
}
public function getUserGroups()
{
$this->db->order_by('id', 'desc');
$q = $this->db->get("users_g... | PHP | billpro/billproplus/sma/models/Sync_model.php | ahenda/billpro | cc0-1.0 | 7,992 | 258 | codeparrot/github-code |
209b5f63a016e248ed4f7afa12e669ba98585de00519088dae42cb185b56da3e | <!DOCTYPE html>
<html lang="en">
<head>
<title>Command line tool for Linux command line junkies - NotesSensei's Blog</title>
<script>
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', 'UA-72033-1', 'auto');
ga('send', 'pageview');
</script>
<script async src='https://www.goog... | HTML | blog/2010/07/command-line-tool-for-linux-command-line-junkies.html | Stwissel/stwissel.github.io | cc0-1.0 | 15,936 | 276 | codeparrot/github-code |
50676e0b3221110aa32412227d11e4677d3b73c9374e25cf57f6e533f9fe32ef | <?php
//This is a script to read in all the items from the Hourly database and cnosolidate them by item, I'ts complicated!
include 'timezone.php';
include 'login_info.php';
//truncate the table so we start off with a new slate - this can be turned off for testing
$query = "TRUNCATE TABLE Consolidated;";
mysql_... | PHP | consolidator.php | sparktester/current_a_news_project | cc0-1.0 | 7,751 | 191 | codeparrot/github-code |
cece4b31c3428a85356489d79862c0b440edfa8ebc0932bd95838471bb820165 | package scala_docs
import java.io.InputStream
import java.util.zip.ZipInputStream
import scodec.bits.ByteVector
import scala_docs.stream._
import scalaz.concurrent.Task
package object zipfile {
case class MetaAndContent[A, B](meta: A, content: B)
type Entry[A] = MetaAndContent[A, ByteVector]
/**
* Reads... | Scala | src/main/scala/scala_docs/zipfile/package.scala | chris-martin/scala-docs | cc0-1.0 | 928 | 37 | codeparrot/github-code |
6db49878fe9d85bb4b7a1acf9a0f12b2e2fde3ac4219a141298c819372e77e34 | // An example Parse.js Backbone application based on the todo app by
// [Jérôme Gravel-Niquet](http://jgn.me/). This demo uses Parse to persist
// the todo items and provide user authentication and sessions.
$(function() {
Parse.$ = jQuery;
// Initialize Parse with your Parse application javascript keys
Parse.... | JavaScript | js/todos.js | elliot627/Parse_ToDo | cc0-1.0 | 11,451 | 416 | codeparrot/github-code |
db9fc0d8b452fba19735262ce12c2422f58bbf2b7c13b056c0b323f41a27fc5b | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Linq;
using System.Reflection;
namespace CuSer.Areas.HelpPage
{
/// <summary>
/// This class will create an object of a given type and populate it with sampl... | C# | CuSer/CuSer/Areas/HelpPage/SampleGeneration/ObjectGenerator.cs | cristi-gafita/Cuser | cc0-1.0 | 19,487 | 456 | codeparrot/github-code |
0084f8a8352939f91f51692b62bcb49c9bcef83a20268945673cb3dc2af1cbe9 | <!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Re: [Partido Pirata] [Buscador] Acha Filme - dúvida</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" sizes="114x114" href="http://www.mail-archive.c... | HTML | documentos/listapirata/listapirata@listas.partidopirata.org/msg01683.html | piratas/midiateca | cc0-1.0 | 17,652 | 299 | codeparrot/github-code |
ce6b3a3bee598748b7c5a0cb741e860f9b0d05fbded0bd4c2abaa712219f7efe | <!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Re: [Partido Pirata] RES: RES: RES: RES: RES: RES: Chapa 2011</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" sizes="114x114" href="https://www.mai... | HTML | documentos/listapirata/listapirata@listas.partidopirata.org/msg01227.html | piratas/midiateca | cc0-1.0 | 11,375 | 185 | codeparrot/github-code |
b732bb1e1117bdaa925d14eaba95e77befc64d2d02599e69809d79cbb943a0f7 | /*******************************************************************************
* Copyright (c) 2011, 2016 Eurotech and/or its affiliates
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distr... | Java | kura/org.eclipse.kura.linux.net/src/main/java/org/eclipse/kura/linux/net/wifi/Hostapd.java | markcullen/kura_Windows | epl-1.0 | 31,645 | 930 | codeparrot/github-code |
276fd4605119b50abb515a67ea63a832bde981c5f9de1d7629bdffea80e01a20 | package ch.elexis.hl7.message.ui.preference;
import java.util.StringJoiner;
public class Receiver {
private String application;
private String facility;
public static Receiver of(String string){
Receiver ret = new Receiver();
String[] parts = string.split("\\|");
if (parts != null && parts.length == 2... | Java | bundles/ch.elexis.hl7.message.ui/src/ch/elexis/hl7/message/ui/preference/Receiver.java | DavidGutknecht/elexis-3-base | epl-1.0 | 1,697 | 81 | codeparrot/github-code |
b1d0107173fa5fea83bf617bdc97dde616c21cf5d5dbd092ec1cd311e25d408b | /**
*/
package org.nasdanika.cdo.security.impl;
import java.lang.reflect.InvocationTargetException;
import java.util.Map;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.internal.cdo.CDOObjectImpl;
import org... | Java | org.nasdanika.cdo.security/src/org/nasdanika/cdo/security/impl/PrincipalImpl.java | Nasdanika/server | epl-1.0 | 4,417 | 165 | codeparrot/github-code |
2c5140c61ed1e084c2b2a8c2d8923e09e09175991014c904c24f6efb088b0ad5 | /**
* Copyright (c) 2010-2021 Contributors to the openHAB project
*
* See the NOTICE file(s) distributed with this work for additional
* information.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.... | Java | bundles/org.openhab.binding.somfytahoma/src/main/java/org/openhab/binding/somfytahoma/internal/model/SomfyTahomaRootPlace.java | paulianttila/openhab2 | epl-1.0 | 1,172 | 50 | codeparrot/github-code |
c2a6e1c15bc2d16d4d251fcab9fe9eed6d998eafa3a42f25264e20d7530a6381 | package de.ptb.epics.eve.viewer.debug;
import org.apache.log4j.Logger;
import de.ptb.epics.eve.viewer.Activator;
/**
* @author Marcus Michalsky
* @since 1.14
*/
public class PollInQueueSize implements Runnable {
private static final Logger LOGGER = Logger.getLogger(PollInQueueSize.class
.getName());
priva... | Java | bundles/de.ptb.epics.eve.viewer/src/de/ptb/epics/eve/viewer/debug/PollInQueueSize.java | eveCSS/eveCSS | epl-1.0 | 764 | 40 | codeparrot/github-code |
30285aeff847600bb6de12114ae414456ea054de04bb2a8ceddfa6faa7061454 | /*******************************************************************************
* Copyright (c) 2000, 2015 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... | Java | org.eclipse.ui.ide/src/org/eclipse/ui/part/MarkerTransfer.java | elucash/eclipse-oxygen | epl-1.0 | 7,216 | 223 | codeparrot/github-code |
5c83ed8784703136d481a7a4a48945f28f985eef360f62aa16a43c522daa6aed | /*******************************************************************************
* Copyright (c) 2010-2014, Benedek Izso, Gabor Szarnyas, Istvan Rath and Daniel Varro
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which ac... | Java | hu.bme.mit.trainbenchmark.ttc.benchmark/src/main/java/hu/bme/mit/trainbenchmark/ttc/benchmark/scenarios/AbstractBenchmarkLogic.java | dwagelaar/trainbenchmark-ttc | epl-1.0 | 1,620 | 44 | codeparrot/github-code |
a9a5d51cec0ce29dcb82edd14edcd6925cf0d1de7191de781b40938c3305dcfd | /* COPYRIGHT-ENEA-SRC-R1 *
**************************************************************************
* Copyright (C) 2007 by Enea Software AB.
* All rights reserved.
*
* This Software is furnished under a software license agreement and
* may be used only in accordance with the terms of such agreement.
* Any oth... | Java | Optima/com.ose.chart/src/com/ose/chart/ui/GraphicsContext.java | debabratahazra/OptimaLA | epl-1.0 | 7,988 | 172 | codeparrot/github-code |
a879cd7030cfa4cf4fbb3499d5c8654a8259bb05f21d4cb2b8022ab9c5775b8e | /*******************************************************************************
* Copyright (c) 2013-2015 UAH Space Research Group.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and i... | Java | common/es.uah.aut.srg.micobs/src/es/uah/aut/srg/micobs/common/impl/MCommonPackageParametricReferencingElementImpl.java | parraman/micobs | epl-1.0 | 6,494 | 193 | codeparrot/github-code |
48afd1c1499edd01448715d2eccc5782240d9900131274751073bb12dabf6961 | /*
* $Id: TexTemplateCompletion.java,v 1.4 2006/03/24 17:13:31 oskarojala Exp $
*
* Copyright (c) 2004-2005 by the TeXlapse Team.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is... | Java | net.sourceforge.texlipse/src/net/sourceforge/texlipse/templates/TexTemplateCompletion.java | kolovos/texlipse | epl-1.0 | 5,513 | 147 | codeparrot/github-code |
5b2714281e2d4b7f8ff537fd0750eb806cb280e573d5c79844c77bc8b46e5890 | package docompeticao;
import br.ufrn.dimap.pairg.sumosensei.android.R;
import android.content.Context;
public class CalculaPosicaoDoJogadorNoRanking {
public static String definirTituloDoJogadorNoRanking(Context contextoAplicacao)
{
SingletonGuardaDadosUsuarioNoRanking guardaDadosRanking = SingletonGuardaDadosU... | Java | src/docompeticao/CalculaPosicaoDoJogadorNoRanking.java | fabiophillip/sumosensei | epl-1.0 | 9,479 | 284 | codeparrot/github-code |
9cba402781ec2c8f0ca8448bae88ae3c8eeee0c27e5632556f4ab95fb93e54a1 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="copyright" content="(C) Copyrigh... | HTML | pdk/GUID-80897B6B-4FFE-33FD-8A3C-B941DB6EDB97.html | warlordh/fork_Symbian | epl-1.0 | 3,959 | 79 | codeparrot/github-code |
5b15aa7e88b97ebdd9c87b98ca2cda4516958d347193275a43f3868750391c51 | /*
* Copyright (c) 2015-2018 Red Hat, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Red H... | TypeScript | dashboard/src/components/attribute/attribute-config.ts | sleshchenko/che | epl-1.0 | 2,196 | 56 | codeparrot/github-code |
dd0d389ba93af64b5a7ba4c15ea17039c451f163760d3b762db052a33826ac96 | // -*-C++-*-
/*
VisionSVC_impl.cpp
Copyright (c) 2011 AIST All Rights Reserved.
Eclipse Public License v1.0 (http://www.eclipse.org/legal/epl-v10.html)
*/
/*!
* @file VisionSVC_impl.cpp
* @brief Service implementation code of Vision.idl
*
*/
#include <stdio.h>
#include <iostream>
#include <string>
#include <t... | C++ | example/component/SendImage/VisionSVC_impl.cpp | nagyistoce/openvgr | epl-1.0 | 21,477 | 863 | codeparrot/github-code |
bcef4ba2eea48c5f7439914966697e82184c963fa9a52a855804d416041b08de | /**
*/
package arch.provider;
import java.util.Collection;
import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.util.ResourceLocator;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.... | Java | plugins/incqueryd/hu.bme.mit.incqueryd.arch/hu.bme.mit.incqueryd.arch.edit/src/arch/provider/RoleItemProvider.java | FTSRG/viatra-dse-swarm | epl-1.0 | 2,896 | 110 | codeparrot/github-code |
cf7d67aff667b010b4d88abfbfa503a2de0816cf9c8f36f70dafb923ab9a117d | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<title>ByteArrayBackedDataSource (POI API Documentation)</title>
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
</head>
<body>
<scri... | HTML | Desktop/tool/poi-bin-3.15-20160924/poi-3.15/docs/apidocs/org/apache/poi/poifs/nio/ByteArrayBackedDataSource.html | tommylsh/test20170719 | epl-1.0 | 13,706 | 365 | codeparrot/github-code |
87caae6bae7a0ea9ce0f61d09d37136020c2a81513bdb0327602cccffbf8c29b | /*******************************************************************************
* Copyright (c) 2000, 2011 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... | Java | eclipse.jdt.ui/org.eclipse.jdt.junit.core/src/org/eclipse/jdt/internal/junit/JUnitCorePlugin.java | maxeler/eclipse | epl-1.0 | 8,813 | 286 | codeparrot/github-code |
f4b039e6a3f5e7350c1cdcbb2142c7b8853e5238578f9cc9b02f3bbafcf31689 | /*************************************************************************
*** FORTE Library Element
***
*** This file was generated using the 4DIAC FORTE Export Filter V1.0.x!
***
*** Name: F_UINT_TO_WSTRING
*** Description: convert UINT to WSTRING
*** Version:
*** 0.0: 2013-08-29/4DIAC-IDE - 4DIA... | C++ | src/modules/IEC61131-3/Conversion/UINT/F_UINT_TO_WSTRING.cpp | EstebanQuerol/Black_FORTE | epl-1.0 | 2,053 | 49 | codeparrot/github-code |
7b5833cdafd66e9c9819073e66e2c06d49a3f46fb5fae495592a97210617972d | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="copyright" content="(C) Copyrigh... | HTML | pdk/GUID-F70F08E7-2959-307F-A2E5-6C307495C2A3.html | warlordh/fork_Symbian | epl-1.0 | 8,471 | 145 | codeparrot/github-code |
2c28e028f3ce1457ddb8a7da89b105ec3a3d982fb0164c0dc0a4a826e1d9020e | /**
*
*/
var basePath = getRootPath();
var regex = /^(100|[1-9]?\d(\.\d\d?)?)%$/;
$(function(){
var validGzsz = false;
var validGzzl = false;
var validZfsj = false;
var validJfqx = false;
$("#gzsz").blur(function(){
var gzszVal = $(this).val();
if(!gzszVal){
$(this).parent().prev().css({"color":"#a... | JavaScript | WebContent/js/pfpz.js | SongyuCHen/SJY | epl-1.0 | 6,740 | 230 | codeparrot/github-code |
f8e80646847a6fe9adef8ff084631f7830673d4a29c60804eb4492c4c1834228 | /******************************************************************************
* Copyright (c) 2000-2017 Ericsson Telecom AB
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is avail... | C++ | compiler2/ttcn3/JsonAST.cc | BotondBaranyi/titan.core | epl-1.0 | 2,372 | 91 | codeparrot/github-code |
6a951a7963ba410b8ff365577f8e5f0bf15b1c8f453f4b2b7aebee0f69e1e96f | package org.apache.wicket.protocol.http.servlet;
import org.apache.wicket.util.value.*;
import javax.servlet.http.*;
import org.apache.wicket.util.lang.*;
import org.apache.wicket.*;
import java.io.*;
import java.util.*;
import org.apache.wicket.util.string.*;
import org.apache.wicket.util.upload.*;
public class Mult... | Java | test-files/src_example/org/apache/wicket/protocol/http/servlet/MultipartServletWebRequestImpl.java | windup/windup-sample-apps | epl-1.0 | 9,602 | 202 | codeparrot/github-code |
06c398dbe87860426964d49d84f5a5f5043aa150befc18ef108d97b677683732 | /*
* Copyright (C) 2013 see CREDITS.txt
* All rights reserved.
*/
package fi.uef.envi.wavellite.entity.situation;
import fi.uef.envi.wavellite.entity.situation.base.ValueDouble;
import fi.uef.envi.wavellite.entity.situation.base.ValueInteger;
import fi.uef.envi.wavellite.entity.situation.base.ValuePeriod;
import f... | Java | src/main/java/fi/uef/envi/wavellite/entity/situation/ValueVisitor.java | markusstocker/wavellite-entity | epl-1.0 | 875 | 44 | codeparrot/github-code |
3846b6ca30ee44c9ae76a765a924fcd1c823a9dc9079e2ec83fcf5eba49df987 | package net.ages.alwb.utils.nlp.wordnet.models;
import java.util.ArrayList;
import java.util.List;
import com.google.gson.annotations.Expose;
import edu.mit.jwi.item.ISynset;
import org.ocmc.ioc.liturgical.schemas.models.supers.AbstractModel;
public class Synset extends AbstractModel {
@Expose String id = ""; // i... | Java | src/main/java/net/ages/alwb/utils/nlp/wordnet/models/Synset.java | OCMC-Translation-Projects/ioc-liturgical-ws | epl-1.0 | 1,688 | 82 | codeparrot/github-code |
5dce09f6fd7c108c05976b49475a03abda62bc00d9617953103231652eaf17e3 | package org.jboss.windup.rules.apps.javaee.rules.jboss;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.logging.Logger;
import org.jboss.windup.config.AbstractRuleProvider;
import org.jboss.windup.config.GraphRewrite;
import org.jboss.windup.config.l... | Java | rules-java-ee/addon/src/main/java/org/jboss/windup/rules/apps/javaee/rules/jboss/GenerateJBossEjbDescriptorRuleProvider.java | d-s/windup | epl-1.0 | 7,356 | 151 | codeparrot/github-code |
3c126042851edef25c4ab60afa448f6bc2f13974a6cdd703f33275ee8bb0ad9c | package melnorme.lang.ide.debug.ui;
import java.util.Optional;
import org.eclipse.cdt.ui.text.c.hover.ICEditorTextHover;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.debug.ui.DebugUITools;
import org.eclipse.jface.text.IInformationControlCreator;
import org.eclipse.jface.text.IRegion;
import org.ecl... | Java | plugin_ide.debug/src-lang/melnorme/lang/ide/debug/ui/DelegatingDebugTextHover.java | GoClipse/goclipse | epl-1.0 | 3,169 | 99 | codeparrot/github-code |
b5b362def413634fd358a0e1aefb02f5cad6345195202e19eb220f615680f637 | package name.abuchen.portfolio.datatransfer.csv;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.text.MessageFormat;
import java.text.ParseException;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;
import java.util.StringJoiner;
import name.abuchen.portfolio.Messag... | Java | name.abuchen.portfolio/src/name/abuchen/portfolio/datatransfer/csv/CSVPortfolioTransactionExtractor.java | cmaoling/portfolio | epl-1.0 | 12,466 | 267 | codeparrot/github-code |
157ca6c078895e2ac5a517a59f5263a66c9286d424ad43edb254b93240e1c3d2 | /*
// $Id$
// This software is subject to the terms of the Eclipse Public License v1.0
// Agreement, available at the following URL:
// http://www.eclipse.org/legal/epl-v10.html.
// Copyright (C) 2005-2005 SAS Institute, Inc.
// Copyright (C) 2006-2009 Julian Hyde and others
// All Rights Reserved.
// You must accept t... | Java | testsrc/main/mondrian/test/CompatibilityTest.java | inevo/mondrian | epl-1.0 | 23,389 | 573 | codeparrot/github-code |
01f9680b30f1b42e2b0f8a6c333cdc947035f783ef6fd0ffadfb6f8860fe01c8 | /**
*/
package hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.impl;
import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.ConstantDeclaration;
import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.ConstantDefinition;
import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.LogiclanguagePack... | Java | Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logiclanguage/impl/ConstantDefinitionImpl.java | viatra/VIATRA-Generator | epl-1.0 | 6,736 | 241 | codeparrot/github-code |
39f3283d7aaad763586fc3985433561a9971099b4a5373cf5a07832e81d43ca8 | /***
* Copyright 2002-2010 jamod development team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | Java | src/main/java/net/wimpi/modbus/cmd/DIDOTest.java | sfeilmeier/org.openhab.binding.fems | epl-1.0 | 4,524 | 151 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.