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
f0431ce2e07c1475a283d92c2f654b0acd25f2b96c1dfa0db73a19153c379629
// @public import RavenType = require('raven-js'); import {Breadcrumb, CaptureOptions, User} from './interface'; export {Breadcrumb, CaptureOptions, User}; let output = { enabled: false, captureException(ex: Error, options?: CaptureOptions) {}, context<T>(fn: () => T): T { return fn(); }, wrap<TFunc ex...
TypeScript
packages/sentry/src/client.ts
mopedjs/moped
mit
1,735
63
codeparrot/github-code
c134f7ab261d42eed945de9588512475f1ab5a8f07184acef2915d1a97d9e8bd
#region Copyright (c) 2014 Orcomp development team. // ------------------------------------------------------------------------------------------------------------------- // <copyright file="GraphExplorerViewModel.cs" company="Orcomp development team"> // Copyright (c) 2014 Orcomp development team. All rights reserv...
C#
src/Orc.GraphExplorer/ViewModels/GraphExplorerViewModel.cs
Orcomp/Orc.GraphExplorer
mit
5,678
173
codeparrot/github-code
7d95860d5a2a844f10374dc89a9771f333a15f89f96c44d3ce18ed2b9c48c728
package com.yngvark.communicate_through_named_pipes.input; import org.slf4j.Logger; import java.io.BufferedReader; import java.io.IOException; import static org.slf4j.LoggerFactory.getLogger; public class InputFileReader { private final Logger logger = getLogger(getClass()); private final BufferedReader buf...
Java
source/lib/communicate-through-named-pipes/source/src/main/java/com/yngvark/communicate_through_named_pipes/input/InputFileReader.java
yngvark/gridwalls2
mit
2,016
74
codeparrot/github-code
a1ed3bd080320d1999af462df7dee244b537bb00711b325d45ec07381da6a0d3
/** * Dont edit this file! * This module generates itself from lang.js files! * Instead edit the language files in /lang/ **/ /*global define*/ define(function () { "use strict"; var i18n = {}; i18n.de = { "Visit %s overview" : "Zur %s Übersicht", "An error occured, please reload." : "Es gab einen unerwar...
JavaScript
src/assets/source/scripts/modules/serlo_i18n.js
creitiv/athene2
mit
2,080
49
codeparrot/github-code
4bc17896f4e3c487f4b1c80033033215328361daaa57840d2836ad5017cd70d0
use chrono::{offset::Utc, DateTime}; use rustorm::{pool, DbError, FromDao, Pool, ToColumnNames, ToDao, ToTableName}; /// Run using: /// ```sh /// cargo run --example insert_usage_mysql --features "with-mysql" /// ``` fn main() { mod for_insert { use super::*; #[derive(Debug, PartialEq, ToDao, ToCol...
Rust
examples/insert_usage_mysql.rs
ivanceras/rustorm
mit
1,853
56
codeparrot/github-code
d5009ff9e385e58435386382b46133acd4a99b85753fcd2712cf204071c9ca23
// Copyright 2017 The Lynx Authors. All rights reserved. #ifndef LYNX_BASE_THREADING_MESSAGE_PUMP_POSIX_H_ #define LYNX_BASE_THREADING_MESSAGE_PUMP_POSIX_H_ #include "base/task/task.h" #include "base/threading/condition.h" #include "base/threading/message_pump.h" #include "base/timer/timer.h" namespace base { class...
C
Core/base/threading/message_pump_posix.h
hxxft/lynx-native
mit
844
38
codeparrot/github-code
81fcd6c6d45adf1d20bf9a85fef69423063636f527007d86eed029e7224bb1e9
'use strict'; /** * Module dependencies. */ var path = require('path'), mongoose = require('mongoose'), Person = mongoose.model('Person'), errorHandler = require(path.resolve('./modules/core/server/controllers/errors.server.controller')), _ = require('lodash'); /** * Create a Person */ exports.create = fu...
JavaScript
modules/people/server/controllers/people.server.controller.js
tmrotz/LinkedIn-People-MEAN.JS
mit
4,096
194
codeparrot/github-code
1b2ac1bf03dd3c5a5d4814872a57a730f33f7acd43f99dfe8345c9a6f088d9d7
#include <Core/Platform.h> #include <Shared/misc.h> #include <Core/Core.h> #include "DebugCamera.h" #include "SceneTools.h" DebugCamera::DebugCamera(Pimp::World* world) : world(world) , isEnabled(false) , isLookingAt(false) { ASSERT(nullptr != world); camera = new Pimp::Camera(world); world->GetElements().push_b...
C++
Src/Player/DebugCamera.cpp
visualizersdotnl/tpb-06-final
mit
2,869
119
codeparrot/github-code
c417e76c2136b8994c08c7338735d98a92905b2141c446fd1cc99ee360687569
#ifndef OPENTISSUE_COLLISION_SDF_SDF_COMPUTE_POINT_SAMPLING_H #define OPENTISSUE_COLLISION_SDF_SDF_COMPUTE_POINT_SAMPLING_H // // OpenTissue Template Library // - A generic toolbox for physics-based modeling and simulation. // Copyright (C) 2008 Department of Computer Science, University of Copenhagen. // // OTTL is li...
C
3RDPARTY/OpenTissue/OpenTissue/collision/sdf/sdf_compute_point_sampling.h
misztal/GRIT
mit
5,941
170
codeparrot/github-code
2c568abf3b761828507be1717f8c7397a63227ba5d5301c960d37b24aa62c7d8
import { delay } from "../delay" import { getOneTrustConsent } from "../getOneTrustConsent" import { oneTrustReady } from "../oneTrustReady" jest.mock("../delay") jest.mock("../oneTrustReady") describe("getOneTrustConsent", () => { const delayMock = delay as jest.Mock const oneTrustReadyMock = oneTrustReady as je...
TypeScript
src/lib/analytics/segmentOneTrustIntegration/__tests__/getOneTrustConsent.jest.ts
artsy/force
mit
1,310
43
codeparrot/github-code
4beec2bbed0ad0933c7e16e9d2d81882ebdcd91ca73e0eb046b4a6f9e5c9a32b
'use strict' const { describe, it, beforeEach, afterEach } = require('mocha') const Helper = require('hubot-test-helper') const { expect } = require('chai') const mock = require('mock-require') const http = require('http') const sleep = m => new Promise(resolve => setTimeout(() => resolve(), m)) const request = uri =...
JavaScript
test/test.js
lgaticaq/hubot-info-rut
mit
9,066
322
codeparrot/github-code
e3e91cc8301874f7b8513d727bd8cb96e340ade922514a7ea325bdac00a5e0b1
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Fungus { // <summary> /// Add force to a Rigidbody2D /// </summary> [CommandInfo("Rigidbody2D", "AddForce2D", "Add force to a Rigidbody2D")] [AddComponentMenu("")] public ...
C#
Assets/Fungus/Scripts/Commands/Rigidbody2D/AddForce2D.cs
FungusGames/Fungus
mit
2,489
85
codeparrot/github-code
7e672b1dd880c6e36729c32b63a073273cef6104954ea8de87f6587688433866
using Microsoft.Diagnostics.Tracing; using System; using System.Collections.Concurrent; using System.Diagnostics; using System.Linq; using System.Management.Automation; using System.Reactive.Disposables; using System.Reactive.Linq; using System.Threading; namespace EtwStream.PowerShell { [Cmdlet(VerbsCommon.Get, ...
C#
EtwStream.PowerShell/GetTraceEventStream.cs
pierre3/EtwStream.PowerShell
mit
7,930
179
codeparrot/github-code
91697a6d09dc6333e3a189b84c96488034a3af6e6dc3791143f1757f0794234f
package com.ipvans.flickrgallery.ui.main; import android.util.Log; import com.ipvans.flickrgallery.data.SchedulerProvider; import com.ipvans.flickrgallery.di.PerActivity; import com.ipvans.flickrgallery.domain.FeedInteractor; import com.ipvans.flickrgallery.domain.UpdateEvent; import java.util.concurrent.TimeUnit; ...
Java
FlickrGallery/app/src/main/java/com/ipvans/flickrgallery/ui/main/MainPresenterImpl.java
VansPo/flickr-gallery
mit
2,680
83
codeparrot/github-code
36f3c3c834eb9e12c47f498ea7c6b1d7dbb611ea1a26efb34bc2268e94911759
/* * Copyright (c) 2005 Dizan Vasquez. * * 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, pub...
Java
src/net/jenet/Packet.java
seeseekey/jenet
mit
6,482
200
codeparrot/github-code
792fea1779a3e914b680ab0109bdbf9d6bb5fa47601d0d17ac813cffbcd70c39
'use strict'; angular.module('core').controller('HomeController', ['$scope', 'Authentication', '$http', '$modal','$rootScope', function($scope, Authentication, $http, $modal, $rootScope) { // This provides Authentication context. $scope.authentication = Authentication; $scope.card = {}; $scop...
JavaScript
public/modules/core/controllers/home.client.controller.js
bonzyKul/continuous
mit
7,537
195
codeparrot/github-code
6b030dba1f8d87fba84704775825e86e0b4a34dcfefa08db1adf343ff2e53f33
import {Component, OnInit} from '@angular/core'; import {ActivityService} from '../../services/activity.service'; import {Activity} from "../../models/activity"; import {BarChartComponent} from "../bar-chart/bar-chart.component"; @Component({ selector: 'records-view', moduleId: module.id, templateU...
TypeScript
app/components/records-view/records-view.component.ts
montgomeryce/HAVC
mit
951
34
codeparrot/github-code
415f8c77831ee28c7eaab11dd7e782fb802a62b2297357987a7179a97d6641ab
from __future__ import (absolute_import, division, print_function, unicode_literals) RJUST = 12 def format_fans(fans): return format_line(prefix='fans'.rjust(RJUST), values=fans) def format_rpms(rpms): return format_line(prefix='rpms'.rjust(RJUST), values=rpms) def format_pwms(pwm...
Python
python/fancontrol/ui/cli_util.py
Bengt/AL-FanControl
mit
2,042
85
codeparrot/github-code
f637ee9a912c374769fe6428b33ad12b9a11613d93cfacd0abb6849cb68d2b80
/* ///////////////////////////////////////////////////////////////////////// * File: stlsoft/conversion/internal/explicit_cast_specialisations.hpp * * Purpose: Specialisations of explicit_cast * * Created: 13th August 2003 * Updated: 10th August 2009 * * Home: http://stlsoft.or...
C++
fetched_code/cpp/code/explicit_cast_specialisations.hpp
rokn/Count_Words_2015
mit
11,877
544
codeparrot/github-code
3ea3293b7ea1a3bd7dad9720e3ac3c06d6555ce8e39248d72740fa7c20022ae7
<?php namespace CoreBundle\Model\map; use \RelationMap; use \TableMap; /** * This class defines the structure of the 'list_holidays' table. * * * * This map class is used by Propel to do runtime db structure discovery. * For example, the createSelectSql() method checks the type of a given column used in an *...
PHP
Backend/PROLS/src/CoreBundle/Model/map/ListHolidaysTableMap.php
aianguanlao/prols
mit
1,732
60
codeparrot/github-code
7b7b8923c4cfe5dfd5adc6bed07d8f0f5ee59ccc03e1f9bf93207a07a63cde7d
// Modified from https://github.com/dburrows/draft-js-basic-html-editor/blob/master/src/utils/draftRawToHtml.js 'use strict'; import { List } from 'immutable'; import * as InlineStylesProcessor from './inline-styles-processor'; import ApiDataInstance from './api-data-instance'; import AtomicBlockProcessor from './atom...
JavaScript
fields/types/html/editor/draft-converter.js
nickhsine/keystone
mit
7,620
182
codeparrot/github-code
71a06a0933d94d07ad485b6a3ffa938f19e76a3a0873e00dc2fcdcf31ba7eb70
package ch.hesso.master.caldynam; import android.app.Fragment; import android.app.FragmentManager; import android.app.FragmentTransaction; import android.graphics.Outline; import android.os.Bundle; import android.support.v4.widget.DrawerLayout; import android.support.v7.app.ActionBarActivity; import android.support.v7...
Java
app/src/main/java/ch/hesso/master/caldynam/MainActivity.java
Chavjoh/CalDynam
mit
9,388
280
codeparrot/github-code
1189ffac34c813b7cd8ab292329afb650683a0293e0becedddb2f6e0f5a185ef
#include <iostream> #include <string> #include <tuple> std::tuple<int,int> wczytaj_liczby(); int main () { std::string opcja; do { int a,b; std::cout << "wybierz opcje przeliczania" << std::endl; std::cout << "dodawanie, odejmowanie, mnozenie czy dzielenie?" << std::endl; std::cin >> opcja; if (opcja==...
C++
calc1/Ekhem.cpp
mateka/cpp-school
mit
1,120
52
codeparrot/github-code
529d046ac04fa29702245ef5f4698004fa1a701c1a74603f9c810fa1d3dd4086
var log = require('./logger')('reporter', 'yellow'); var colors = require('colors'); /* eslint no-console: 0 */ module.exports = function(diff) { var keys = Object.keys(diff); var count = 0; var timer = log.timer('reporting'); if (keys.length === 0) { log('✔ no diff detected', 'green'); } else { log('...
JavaScript
lib/reporter.js
zeachco/css-specs
mit
1,156
36
codeparrot/github-code
8034015b95eba9053257303ce999fa331d37d2fc385c5426b5fc2b711b21947a
/** * The MIT License * Copyright (c) 2003 David G Jones * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, ...
Java
src/main/java/info/dgjones/abora/white/edgeregion/TransitionEdge.java
jonesd/abora-white
mit
5,464
196
codeparrot/github-code
911352ae6f8588685fc834c5c796d77b8d0fd570f52424556dfb6fbff66f84c6
'use strict'; const moment = require('moment-timezone'); const mongoose = web.require('mongoose'); const Schema = mongoose.Schema, ObjectId = Schema.ObjectId; const OTHERS = {key: 'OTH', value: 'Others'}; module.exports = function({ modelName, displayName, cols, colMap = {}, enableDangerousClientFilter...
JavaScript
utils/dbeditSaveController.js
mannyvergel/braziw-plugin-dbedit
mit
13,441
474
codeparrot/github-code
9c86e42972ccd4da84b21e6a2d0a0adb3d8f02fc1b962c18cbdacc9ee1c92047
<?php declare(strict_types=1); namespace Y0lk\SQLDumper; use ArrayObject; use PDO; use InvalidArgumentException; /** * A TableDumperCollection is used to group TableDumper objects together, allowing you to specify dump options on multiple table at once. * All TableDumper methods can be called directly on a TableDu...
PHP
src/TableDumperCollection.php
Y0lk/sqldumper
mit
5,834
188
codeparrot/github-code
6e1dbaee24ab6034fc0bca23b2628da2217f65ddf19e7c6ae55b0d73929fbeef
// // partial2js // Copyright (c) 2014 Dennis Sänger // Licensed under the MIT // http://opensource.org/licenses/MIT // "use strict"; var glob = require('glob-all'); var fs = require('fs'); var path = require('path'); var stream = require('stream'); var htmlmin = require('html-minifier').minify; var escape...
JavaScript
index.js
ds82/partial2js
mit
4,306
195
codeparrot/github-code
35d4731c2680f48400302038f7f1b08cba9ccb1ff040b8a033a3f896cac993f2
<?php class AsuransiForm extends CFormModel { public $stringNIM; public $arrayNIM; public function rules() { return array( array('stringNIM', 'required'), ); } public function attributeLabels() { return array( 'stringNIM' => Yii::t('app','NIM'), ); } protected function beforeValidate() { p...
PHP
protected/models/AsuransiForm.php
ata/kkn
mit
910
50
codeparrot/github-code
39d6f3d10721de4ff5a21cab556283026c789538ded794cd16b6f0a75a9d14a5
// Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. #nullable disable namespace StyleCop.Analyzers.OrderingRules { using System; using System.Collections.Immutable; using Microsoft.CodeAnalysis;...
C#
StyleCop.Analyzers/StyleCop.Analyzers/OrderingRules/SA1203ConstantsMustAppearBeforeFields.cs
DotNetAnalyzers/StyleCopAnalyzers
mit
6,368
141
codeparrot/github-code
610339468f165b532ce76cf0af7b4a10f433282f79d1e90cce9697cdd7832a6b
// // Created by Kévin POLOSSAT on 14/01/2018. // #ifndef LW_TCP_SERVER_SOCKET_H #define LW_TCP_SERVER_SOCKET_H #include <memory> #include <type_traits> #include "Socket.h" #include "Reactor.h" #include "Buffer.h" #include "Operation.h" #include "SSLSocket.h" namespace lw_network { template<typename Sock = Socket> ...
C
src/modules/server/lw_network/ReactiveSocketBase.h
polosskevin/zia
mit
5,069
184
codeparrot/github-code
7f44c9a5a58694189dc8a3f58b66339a65fb42067c7087c40f91cdec341add62
from __future__ import absolute_import, division, print_function, unicode_literals # Statsd client. Loosely based on the version by Steve Ivy <steveivy@gmail.com> import logging import random import socket import time from contextlib import contextmanager log = logging.getLogger(__name__) class StatsD(object): ...
Python
smarkets/statsd.py
smarkets/smk_python_sdk
mit
2,824
96
codeparrot/github-code
ae7ea715b140d4847903d220c8d31a1d86f201a052a95e4537a9bbbe6b8f8aac
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="Profiler.cs" company="Kephas Software SRL"> // Copyright (c) Kephas Software SRL. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root ...
C#
src/Kephas.Core/Diagnostics/Profiler.cs
quartz-software/kephas
mit
19,833
463
codeparrot/github-code
a9d2098bcac25dda4ee4b83abc6dc3f3d553ce1d44c9bdd3d27c38158369a738
using Silk.NET.Input; using Silk.NET.Maths; using Silk.NET.Windowing; namespace WemkuhewhallYekaherehohurnije { class Program { private static IWindow _window; private static void Main(string[] args) { //Create a window. var options = WindowOptions.Default; ...
C#
WemkuhewhallYekaherehohurnije/WemkuhewhallYekaherehohurnije/Program.cs
lindexi/lindexi_gd
mit
2,127
81
codeparrot/github-code
7b9adaac4a0faba935d6907a65af9dd2ab53c46fdafd3cc586748a96260af349
<?php namespace Libreame\BackendBundle\Helpers; use Libreame\BackendBundle\Controller\AccesoController; use Libreame\BackendBundle\Repository\ManejoDataRepository; use Libreame\BackendBundle\Entity\LbIdiomas; use Libreame\BackendBundle\Entity\LbUsuarios; use Libreame\BackendBundle\Entity\LbEjemplares; use Libreame...
PHP
src/Libreame/BackendBundle/Helpers/GestionEjemplares.php
BaisicaSAS/LibreameBE
mit
38,002
717
codeparrot/github-code
d3dd349b83919a766ed607505111a18a6b92ab559b474d3570ba609f9aa49a55
import React from "react"; import { Message } from "semantic-ui-react"; import Bracket from "./Bracket"; import "./index.scss"; import parseStats from './parseStats'; export default class Brackets extends React.PureComponent { constructor(props) { super(props); this.state = { data: this.updateStats(p...
JavaScript
src/components/Lobby/Tournament/types/Brackets/index.js
socialgorithm/ultimate-ttt-web
mit
1,151
51
codeparrot/github-code
f6038083334b050844a0b4ff256de8b9d1957420855da594d7250c6dc0fd10e5
define([ 'backbone', 'metro', 'util' ], function(Backbone, Metro, Util) { var MotivationBtnView = Backbone.View.extend({ className: 'motivation-btn-view menu-btn', events: { 'click': 'toggle', 'mouseover': 'over', 'mouseout': 'out', }, initialize: function(){ //ensure correct scope _....
JavaScript
WebContent/module/view/tools/MotivationBtnView.js
AjaxJackjia/TGA
mit
4,112
155
codeparrot/github-code
1d4b0caa4386e6f2e1b955bd59ea0ec3c2fbf0084fd5d003e298d944c6df72de
// Copyright (c) 2009-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_NETADDRESS_H #define BITCOIN_NETADDRESS_H #include "compat.h" #include "serialize.h" #include <stdint.h> #i...
C
src/netaddress.h
neutroncoin/neutron
mit
6,442
173
codeparrot/github-code
fdc95f1a26190426a4d947be34510379aba7a078666933db2d4fde994b9b3e5d
import pandas as pd import os import time from datetime import datetime import re from time import mktime import matplotlib import matplotlib.pyplot as plt from matplotlib import style style.use("dark_background") # path = "X:/Backups/intraQuarter" # for Windows with X files :) # if git clone'ed then use relative path...
Python
p10.py
PythonProgramming/Support-Vector-Machines---Basics-and-Fundamental-Investing-Project
mit
4,949
148
codeparrot/github-code
5cadad582b606aad2b5a3313fe6623eb56d8699a2b4b498a2e9887bd50268af2
package cmd import ( "errors" "github.com/cretz/go-safeclient/client" "github.com/spf13/cobra" "log" "os" ) var lsShared bool var lsCmd = &cobra.Command{ Use: "ls [dir]", Short: "Fetch directory information", RunE: func(cmd *cobra.Command, args []string) error { if len(args) != 1 { return errors.New("...
GO
cmd/ls.go
cretz/go-safeclient
mit
804
38
codeparrot/github-code
24488c33c6ad89856b59e06ac16aa5a9713cd5b9f51c6a3238ac143b491719c5
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <base data-ice="baseUrl"> <title data-ice="title">Home | incarnate</title> <link type="text/css" rel="stylesheet" href="css/style.css"> <link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css"> <script src="script/prettify/prettify.js"></sc...
HTML
docs/index.html
resistdesign/incarnate
mit
7,614
183
codeparrot/github-code
2548fbba9db0817c8c55ae9fd6607e41fc42d8452a28c66a785adc89a7036384
// ========================================================================== // DG.ScatterPlotModel // // Author: William Finzer // // Copyright (c) 2014 by The Concord Consortium, Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may no...
JavaScript
apps/dg/components/graph/plots/scatter_plot_model.js
concord-consortium/codap
mit
31,775
870
codeparrot/github-code
4c466bcd9c3f5badabe3de809893adabe2017edcc64ce72adfd3aed50a994a25
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>sudoku: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css"...
HTML
clean/Linux-x86_64-4.11.2-2.0.7/released/8.11.1/sudoku/8.8.0.html
coq-bench/coq-bench.github.io
mit
6,835
164
codeparrot/github-code
6e5da7f08a733be7ac2e550469370808cb03fb28576629a7622e7e29b20f9bc2
game.PlayerEntity = me.Entity.extend ({ //builds the player class init: function(x, y, settings){ this.setSuper(x, y); this.setPlayerTimer(); this.setAttributes(); this.type="PlayerEntity"; this.setFlags(); me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH); //locks camera on the character thi...
JavaScript
js/entities/entities.js
romulus1/FinalAwesomauts
mit
8,421
275
codeparrot/github-code
ac74f37942196941e2a94469ca38e2b192dc602d1383d9a996d04c82fae18088
<!DOCTYPE html> <html xmlns:msxsl="urn:schemas-microsoft-com:xslt"> <head> <meta content="en-us" http-equiv="Content-Language" /> <meta content="text/html; charset=utf-16" http-equiv="Content-Type" /> <title _locid="PortabilityAnalysis0">.NET Portability Report</title> <style> ...
HTML
Reports/ne/netcdf-ikvm.4.1.0/IKVM.OpenJDK.Beans-Net40.html
kuhlenh/port-to-core
mit
15,187
359
codeparrot/github-code
d7d829f1173a43dbf3ceec7503936dc6150ae138f74d6f922a3bce04c8600cee
package uk.gov.dvsa.ui.pages.vehicleinformation; import org.openqa.selenium.Keys; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; import uk.gov.dvsa.domain.model.vehicle.Make; import uk.gov.dvsa.domain.navigation.PageNavigator; import uk.gov.dvsa.framework.config.webdriver.MotAppDrive...
Java
mot-selenium/src/main/java/uk/gov/dvsa/ui/pages/vehicleinformation/VehicleMakePage.java
dvsa/mot
mit
1,635
48
codeparrot/github-code
6a3d79dd85ac0099b53f5ee4f3045bf09feb48e20633be26448a8320ddf623ca
<?php namespace Tecnokey\ShopBundle\Controller\Frontend\User; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; use Tecnokey\S...
PHP
src/Tecnokey/ShopBundle/Controller/Frontend/User/OrderController.php
mqmtech/Tecnokey
mit
6,501
220
codeparrot/github-code
b7f42c5e4042ee73a8e4383b033af1e01dfe185ef7225b2b940f8f0fd898755e
import {Component, ViewChild} from '@angular/core'; import { Platform, MenuController, NavController} from 'ionic-angular'; import { StatusBar } from '@ionic-native/status-bar'; import { SplashScreen } from '@ionic-native/splash-screen'; import { HomeComponent } from './pages/home-page/home.component'; import {CityLis...
TypeScript
src/app/app.component.ts
zhuzhiqiang/tianyingqing
mit
1,396
54
codeparrot/github-code
8e4474d0b67459f4881a77837d581fd0556439b8c66352512ac9f83f79f88f97
package tsmt import ( "encoding/xml" "github.com/fgrid/iso20022" ) type Document01800105 struct { XMLName xml.Name `xml:"urn:iso:std:iso:20022:tech:xsd:tsmt.018.001.05 Document"` Message *FullPushThroughReportV05 `xml:"FullPushThrghRpt"` } func (d *Document01800105) AddMessage() *FullPushThroug...
GO
tsmt/FullPushThroughReportV05.go
fgrid/iso20022
mit
5,855
140
codeparrot/github-code
4695f3460247c5ec5eccf92b26c03b42b34fda08614a93575ce34a8c87e1fd58
package io.prajesh.config; import io.prajesh.domain.HelloWorld; import io.prajesh.service.HelloWorldService; import io.prajesh.service.HelloWorldServiceImpl; import io.prajesh.service.factory.HelloWorldFactory; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configurat...
Java
spring-core/src/main/java/io/prajesh/config/HelloConfig.java
prajesh-ananthan/spring-playfield
mit
980
40
codeparrot/github-code
143ff7f6496f0e040b39e3b06d52623b6f5acf193fed280d7fb903356b5ea6f6
angular.module('MEANcraftApp', ['ngRoute', 'MEANcraftApp.login', 'MEANcraftApp.overview', 'btford.socket-io'/*,'socket-io', 'flow'*/]) .config(function ($httpProvider, $routeProvider) { $httpProvider.interceptors.push('TokenInterceptor'); $routeProvider .when('/login', { templateUrl: '...
JavaScript
client/app/app.js
frotunato/MEANcraft
mit
1,953
55
codeparrot/github-code
8e2c76cc7454d4e92f104b5922c61204587df9c92458ef631a43db4033d4a02f
var GridLayout = require("ui/layouts/grid-layout").GridLayout; var ListView = require("ui/list-view").ListView; var StackLayout = require("ui/layouts/stack-layout").StackLayout; var Image = require("ui/image").Image; var Label = require("ui/label").Label; var ScrapbookList = (function (_super) { global.__e...
JavaScript
AppendixB/PetScrapbook/app/views/shared/scrapbook-list/scrapbook-list.js
mikebranstein/NativeScriptInAction
mit
3,048
90
codeparrot/github-code
8d220429d83c88db7d1e49715a759ef9a3820c5a6c0646d1c19a77570263f4a9
<?php /** * @package toolkit */ /** * The Datasource class provides functionality to mainly process any parameters * that the fields will use in filters find the relevant Entries and return these Entries * data as XML so that XSLT can be applied on it to create your website. In Symphony, * there are four Datasou...
PHP
symphony/lib/toolkit/class.datasource.php
jdsimcoe/symphony-boilerplate
mit
19,238
546
codeparrot/github-code
f91fe3bc702f61e06f9a6dee1f7732744af9cbfb11afe76fd6dc7a436b1436a7
#include <cstdio> #include <cstring> #include <cmath> #include <algorithm> using namespace std; const double EPS = 1e-9; inline char DBLCMP(double d) { if (fabs(d) < EPS) return 0; return d>0 ? 1 : -1; } struct spoint { double x, y, z; spoint() {} spoint(double xx, double yy, double zz): x(xx), y(yy), z(zz) {} ...
C++
ural/1093.cpp
jffifa/algo-solution
mit
2,211
123
codeparrot/github-code
8e840fb16a46e0ac5e87c4e506c7d515d2d2de4d250c83fa1f0dace2c268b4f2
import React, {Component} from 'react'; import {Typeahead} from 'react-bootstrap-typeahead'; import {inject, observer} from 'mobx-react'; import {action, toJS, autorunAsync} from 'mobx'; import myClient from '../agents/client' require('react-bootstrap-typeahead/css/ClearButton.css'); require('react-bootstrap-typeahead...
JavaScript
src/main/js/components/eroTypeahead.js
haniotak/oscars-frontend
mit
3,673
129
codeparrot/github-code
835a45fe591a6a70ea805053b400d0faafcc7e9c09c03260eb0787d4f4bd3546
TOP_DIR = ../.. LIB_DIR = lib/ DEPLOY_RUNTIME ?= /kb/runtime TARGET ?= /kb/deployment include $(TOP_DIR)/tools/Makefile.common SPEC_FILE = handle_mngr.spec SERVICE_NAME = HandleMngr SERVICE_CAPS = HandleMngr SERVICE_PORT = 9001 SERVICE_DIR = handle_mngr SERVICE_CONFIG = HandleMngr ifeq ($(SELF_URL),) SELF_U...
Makefile
Makefile
kbase/handle_mngr
mit
13,184
334
codeparrot/github-code
bd9f7f431bd48b8cc65e4e2bf840c56452c352f6f32af4ad8e68344aeba1c216
package sql.fredy.sqltools; /** XLSExport exports the result of a query into a XLS-file. To do this it is using HSSF from the Apache POI Project: http://jakarta.apache.org/poi Version 1.0 Date 7. aug. 2003 Author Fredy Fischer XLSExport is part of the Admin-Suite Once instantiated there are the ...
Java
src/fredy/sqltools/XLSExport.java
hulmen/SQLAdmin
mit
23,048
663
codeparrot/github-code
d02cb540193d870c633f2553ecc3c8d41cfad743f18ce18c2cf6b4a8e49b4f14
# -*- coding: utf-8 -*- # Copyright (c) 2016 Jérémie DECOCK (http://www.jdhp.org) # 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 right...
Python
jdhp/tictactoe/player/greedy.py
jeremiedecock/tictactoe-py
mit
1,949
59
codeparrot/github-code
e80323610122a5b74acdbe90d4c3604e72a05047e3aa83d7be52bb3dc9976808
/* * Copyright (c) 2015. Vin @ vinexs.com (MIT License) * * 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, co...
Java
eeb-core/src/main/java/com/vinexs/view/ScalableLinearLayout.java
vinexs/extend-enhance-base
mit
3,281
93
codeparrot/github-code
7dd3387d05405f8331820025d457097b5c75436139b02fa05219254cb2292a48
__author__ = 'besta' class BestaPlayer: def __init__(self, fichier, player): self.fichier = fichier self.grille = self.getFirstGrid() self.best_hit = 0 self.players = player def getFirstGrid(self): """ Implements function to get the first grid. :retur...
Python
bestaplayer.py
KeserOner/puissance4
mit
9,518
290
codeparrot/github-code
66ac893797bb9be3994e90be83d3d552a232f97dc9d2d58c5b3749f3e5f606b9
PP.lib.shader.shaders.color = { info: { name: 'color adjustement', author: 'Evan Wallace', link: 'https://github.com/evanw/glfx.js' }, uniforms: { textureIn: { type: "...
JavaScript
src/lib/Shader.color.js
rdad/PP.js
mit
20,938
493
codeparrot/github-code
3947e2cb258151e73245008d7351487536c712a2a5f801e622cf75f94d8dde28
// Specifically test buffer module regression. import { Buffer as ImportedBuffer, SlowBuffer as ImportedSlowBuffer, transcode, TranscodeEncoding, constants, kMaxLength, kStringMaxLength, Blob, } from 'buffer'; const utf8Buffer = new Buffer('test'); const base64Buffer = new Buffer('', 'b...
TypeScript
types/node/test/buffer.ts
georgemarshall/DefinitelyTyped
mit
8,025
293
codeparrot/github-code
33598cbe99db090c786fdfa7d09603a29103437c3826a1bcf22745e720907e14
/* * Copyright (c) 2016-2017 Mozilla Foundation * * 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, me...
Java
src/nu/validator/xml/UseCountingXMLReaderWrapper.java
tripu/validator
mit
22,613
676
codeparrot/github-code
ffd662a10e053722babdf4c4b4e22ffdc50f00d0e7a7469f22905899662f1f6f
<?php //Announce.php namespace litepubl\post; use litepubl\view\Lang; use litepubl\view\Schema; use litepubl\view\Vars; /** * Post announces * * @property-write callable $before * @property-write callable $after * @property-write callable $onHead * @method array before(array $params) * @method ...
PHP
lib/post/kernel.php
litepubl/cms
mit
69,969
2,573
codeparrot/github-code
77bd4f86ea5303e3e47dda720f2dc0c2946daff5b18a74e1445469ec2fda47cf
#ifndef GLMESH_H #define GLMESH_H #include <GLplus.hpp> namespace tinyobj { struct shape_t; } // end namespace tinyobj namespace GLmesh { class StaticMesh { std::shared_ptr<GLplus::Buffer> mpPositions; std::shared_ptr<GLplus::Buffer> mpTexcoords; std::shared_ptr<GLplus::Buffer> mpNormals; std::s...
C++
GLmesh/include/GLmesh.hpp
nguillemot/LD48-Beneath-The-Surface
mit
605
34
codeparrot/github-code
9b26c159ce9974ac8d78e9f33027ba468cf7097a590871088e5be114e12895b1
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>smooth scroll polyfill</title> <meta name="viewport" content="width=device-width"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/4.1.1/normalize.min.css"> <link href='https://fonts.googleapis.com/css?family...
HTML
index.html
DylanPiercey/smoothscroll
mit
10,144
307
codeparrot/github-code
8e4428bcc39c63f486530adfe4eb6f6087b5a68f7b56b12b19528a9eedd82efe
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="vi...
HTML
emat20005/index.html
jdleesmiller/jdleesmiller.github.io
mit
32,228
483
codeparrot/github-code
1c9345419ef5e3bcf8da4969d67b97b4cde26fe49977d177c0512a31340f1df7
package components.diagram.edit.commands; import org.eclipse.core.commands.ExecutionException; import org.eclipse.core.runtime.IAdaptable; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.emf.ecore.EObject; import org.eclipse.gmf.runtime.common.core.command.CommandResult; import org.eclipse.gmf.run...
Java
ComponentTester.diagram/src/components/diagram/edit/commands/ConnectionCreateCommand.java
peterbartha/component-diagram
mit
4,550
156
codeparrot/github-code
27d46c9c64a44cdd17e47a1393e1cde85fa6be92b7284a9398cad9e41e4fc2d4
import Vue from 'vue'; import merge from 'element-ui/src/utils/merge'; import PopupManager from 'element-ui/src/utils/popup/popup-manager'; import getScrollBarWidth from '../scrollbar-width'; let idSeed = 1; const transitions = []; const hookTransition = (transition) => { if (transitions.indexOf(transition) !== -1)...
JavaScript
src/utils/popup/index.js
JavascriptTips/element
mit
6,321
280
codeparrot/github-code
1df86c9d9906a2d09263fddf45cb58195d1eb4c05f2047e4027a2445a8849cf6
package edu.gatech.oad.antlab.pkg1; import edu.cs2335.antlab.pkg3.*; import edu.gatech.oad.antlab.person.*; import edu.gatech.oad.antlab.pkg2.*; /** * CS2335 Ant Lab * * Prints out a simple message gathered from all of the other classes * in the package structure */ public class AntLabMain { ...
Java
M2/src/main/java/edu/gatech/oad/antlab/pkg1/AntLabMain.java
PranovD/CS2340
mit
2,551
97
codeparrot/github-code
626d45140c62c4ca238de8a54a8c6505654ae31c7fff00a055045268b2fd84c5
package net.alloyggp.tournament.internal.admin; import net.alloyggp.escaperope.Delimiters; import net.alloyggp.escaperope.RopeDelimiter; import net.alloyggp.escaperope.rope.Rope; import net.alloyggp.escaperope.rope.ropify.SubclassWeaver; import net.alloyggp.escaperope.rope.ropify.Weaver; import net.alloyggp.tournament...
Java
src/main/java/net/alloyggp/tournament/internal/admin/InternalAdminActions.java
AlexLandau/ggp-tournament
mit
1,179
34
codeparrot/github-code
5547d31468556e38d1a7af5e944de76fdd10734688c27096040ae93841c30105
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3"> <head> <title>System Manager Dashboard</title> <meta name="viewport" content="width=device-width, initial-scale=1" /> <link rel="stylesheet" th:href="@...
HTML
src/main/resources/templates/manager/pendingtransfers.html
Nikh13/securbank
mit
2,902
89
codeparrot/github-code
e5b18fae599a6f7486cb211e53975abf73df3e3cebd6b84995f360876f67c6ff
(function () { 'use strict'; /** * @ngdoc function * @name app.test:homeTest * @description * # homeTest * Test of the app */ describe('homeCtrl', function () { var controller = null, $scope = null, $location; beforeEach(function () { module('g4mify-client-app'); }); beforeEach(inject(function (...
JavaScript
client/app/modules/home/home-test.js
ltouroumov/amt-g4mify
mit
739
39
codeparrot/github-code
060ce115e625cbc9c6ffc1a74ae902e9895931218c7cb2e3f4e3e621aa8a9089
var eejs = require('ep_etherpad-lite/node/eejs') /* * Handle incoming delete requests from clients */ exports.handleMessage = function(hook_name, context, callback){ var Pad = require('ep_etherpad-lite/node/db/Pad.js').Pad // Firstly ignore any request that aren't about chat var isDeleteRequest = false; if(co...
JavaScript
index.js
marcelklehr/ep_push2delete
mit
1,374
52
codeparrot/github-code
633d646d2d931d53190ad9632fc539d20d531b68fb92bd7285553e9bb84eb550
//#include <stdio.h> //#include <stdlib.h> //#include <stdint.h> //#include <stdbool.h> //#include <string.h> //#include <stddef.h> #include "esp_common.h" #include "coap.h" #include "shell.h" //#include <rtthread.h> //#define shell_printf rt_kshell_printf extern void endpoint_setup(void); extern const...
C
app/user/coap.c
AccretionD/ESP8266_freertos_coap
mit
12,020
438
codeparrot/github-code
0b2dd6c916a177ad6ce403dadf9128b195e96a250014d980a59ed15069db2b5c
package com.agileEAP.workflow.definition; /** 活动类型 */ public enum ActivityType { /** 开始活动 */ //C# TO JAVA CONVERTER TODO TASK: Java annotations will not correspond to .NET attributes: //[Remark("开始活动")] StartActivity(1), /** 人工活动 */ //C# TO JAVA CONVERTER TODO TASK: Java annotations will not co...
Java
agileEAP-workflow/src/main/java/com/agileEAP/workflow/definition/ActivityType.java
AgileEAP/aglieEAP
mit
1,688
91
codeparrot/github-code
0a8b66f706e4207182648633610e06b2b9f657f25169f6d8957115acb2f38d78
package foodtruck.linxup; import java.util.List; import com.google.common.base.MoreObjects; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; import org.joda.time.DateTime; import foodtruck.model.Location; /** * @author aviolette * @since 11/1/16 */ public class Trip { pr...
Java
main/src/main/java/foodtruck/linxup/Trip.java
aviolette/foodtrucklocator
mit
3,020
142
codeparrot/github-code
f119b379a9fb851ff71e99d6b84c358a1619952bcc9d89ef290c1c1563c3fb3f
 <!DOCTYPE HTML> <!-- Solid State by HTML5 UP html5up.net | @ajlkn Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) --> <html> <head> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-72755780-1"></script> <script> window.dataLayer = window.dataLayer || [...
HTML
tags/Progressive-Web-App.html
kingstonrichard/kingstonrichard.github.io
mit
5,558
145
codeparrot/github-code
0fb23f016dfea5fe80aa6cc4df3c8c5e16941e54fea6104a0d4d7b85f1c5f083
#include "Extensions.hpp" #include "Extensions.inl" #include <Math/Rect.hpp> #include <Math/Vector.hpp> #include <Script/ScriptExtensions.hpp> #include <SFML/Graphics/CircleShape.hpp> #include <angelscript.h> #include <cassert> namespace { void create_CircleShape(void* memory) { new(memory)sf::Circl...
C++
Source/Script/SFML/CircleShape.cpp
ace13/LD31
mit
1,833
50
codeparrot/github-code
019b9700912bfc9cc262c9e4110d6421d5004cda575d3628f80a0c6d28ec7c7a
#include <CImageLibI.h> #include <CImageColorDefP.h> #include <cstring> bool CImageColorDef:: getRGB(const std::string &name, double *r, double *g, double *b) { int ri, gi, bi; if (! getRGBI(name, &ri, &gi, &bi)) return false; double rgb_scale = 1.0/255.0; *r = ri*rgb_scale; *g = gi*rgb_scale; *b =...
C++
src/CImageColorDef.cpp
colinw7/CImageLib
mit
801
47
codeparrot/github-code
9b9ef393557758dfdecff220dda6b69793e67be92b4bee132165a1b24cfa5a17
const {xObjectForm} = require('./xObjectForm'); exports._getPathOptions = function _getPathOptions(options = {}, originX, originY) { this.current = this.current || {}; const colorspace = options.colorspace || this.options.colorspace; const colorName = options.colorName; const pathOptions = { o...
JavaScript
lib/vector.helper.js
chunyenHuang/hummusRecipe
mit
7,549
240
codeparrot/github-code
67d94614181a6a5fd00b005a002f70f1cfc7850a29377bd13cc985c1778a6e35
SUBROUTINE WFN1_AD_DSYGST( ITYPE, UPLO, N, A, LDA, B, LDB, INFO ) USE WFN1_AD1 IMPLICIT NONE #include "blas/double/intf_wfn1_ad_dsymm.fh" #include "blas/double/intf_wfn1_ad_dsyr2.fh" #include "blas/double/intf_wfn1_ad_dsyr2k.fh" #include "blas/double/intf_wfn1_ad_dtrmm.fh" #include "blas/double/intf_w...
FORTRAN
src/rdmft/recycling/wfn1/lapack/double/wfn1_ad_dsygst.f
rangsimanketkaew/NWChem
mit
9,696
265
codeparrot/github-code
3551c937917c276fe157345d0ae469c348eae9e6d828534bd94bfa7022e50fa1
<?php namespace WebEd\Base\ThemesManagement\Actions; use WebEd\Base\Actions\AbstractAction; class EnableThemeAction extends AbstractAction { /** * @param $alias * @return array */ public function run($alias) { do_action(WEBED_THEME_BEFORE_ENABLE, $alias); $theme = get_theme...
PHP
src/Actions/EnableThemeAction.php
sgsoft-studio/themes-management
mit
971
39
codeparrot/github-code
86505bc656fa7bb1f240269489fcb60da765a9fc34ac35071e69c1c29e03b033
// Copyright 2014 The Gogs Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package models import ( "bufio" "bytes" "fmt" "html" "html/template" "io" "io/ioutil" "os" "os/exec" "strings" "github.com/Unknwon/com" "github....
GO
models/git_diff.go
svcavallar/gogs
mit
10,244
418
codeparrot/github-code
fcbf96a043d6eccb5174eac1f96a3dc8359be12f6ce9a9215a30fd884c751ea3
using System; using Pulse.FS; namespace Pulse.UI { public sealed class UiWpdLeafsAccessor : IUiLeafsAccessor { private readonly WpdArchiveListing _listing; private readonly WpdEntry[] _leafs; private readonly bool? _conversion; public UiNodeType Type { get ...
C#
Pulse.UI/Windows/Main/Dockables/GameFileCommander/UiTree/Accessors/UiWpdLeafsAccessor.cs
kidaa/Pulse
mit
1,059
36
codeparrot/github-code
22fe4a415504a9ba12b2c768aa8ebf82edcd330b60b51e2e62c80699551877df
// // Created by paysonl on 16-10-20. // #include <vector> using std::vector; #include <iostream> #include <cassert> int min3(int a, int b, int c); int minSubSum(const vector<int>& a); int minSubRec(const vector<int>& a, int left, int right); int main() { vector<int> v{-2, -1, -2, 3, -4}; assert(minSubSum(...
C++
DS_a_Algo_in_CPP/ch2/2-17-a.cpp
frostRed/Exercises
mit
1,349
56
codeparrot/github-code
b591b361e98892bec24526fe4bb0db1c48ba3de53f04d9d777d4294a8f5f1dfe
<?php /** * Created by PhpStorm. * User: Jan * Date: 17.03.2015 * Time: 17:03 */ namespace AppBundle\Repository; use Doctrine\ORM\EntityRepository; class ThreadRepository extends EntityRepository { public function findAllOrderedByLastModifiedDate($category_id) { $repository = $this->getEntityMana...
PHP
src/AppBundle/Repository/ThreadRepository.php
mueller-jan/symfony-forum
mit
978
38
codeparrot/github-code
2b8ea0b00e4f7fbfcc8b00bd24c0994dd232a9eae7ae932fde45ba03af64425e
# User info wrapper object import logging class User(object): """ Wrapper object around an entry in users.json. Behaves like a read-only dictionary if asked, but adds some useful logic to decouple the front end from the JSON structure. """ _NAME_KEYS = ["display_name", "real_name"] _DEFAULT_IM...
Python
slackviewer/user.py
hfaran/slack-export-viewer
mit
2,188
74
codeparrot/github-code
fb3c07886caa2268b08894a7bef2bb792c48e52c7c85a41e5562316fe7790d91
package net.lightstone.net.codec; import java.io.IOException; import net.lightstone.msg.Message; import org.jboss.netty.buffer.ChannelBuffer; public abstract class MessageCodec<T extends Message> { private final Class<T> clazz; private final int opcode; public MessageCodec(Class<T> clazz, int opcode) { this....
Java
src/net/lightstone/net/codec/MessageCodec.java
grahamedgecombe/lightstone
mit
613
33
codeparrot/github-code
df56f4b4ef9af06dde694bb67f101acfa1259eadaadb86d0cca415c621d3ecaf
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * vim: set ts=8 sts=4 et sw=4 tw=99: * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ ...
C
EmbeddedJXcoreEngineIOS/jxcore/include/node/vm/PropDesc.h
agenthunt/EmbeddedJXcoreEngineIOS
mit
12,213
367
codeparrot/github-code
d74bd25a528ca8e16d5cc21f94ca0ec656f3d14a3c5fefb1800169ab6652e5d2
#define _IRR_STATIC_LIB_ #include <irrlicht.h> #include <stdio.h> #include <string> #include <sstream> #include <iostream> #include "dc-config.h" #include "manager_gui.h" #include "manager_filesystem.h" #include "manager_core.h" #include "irrlicht_event_handler.h" #include "context_application.h" using namespace irr;...
C++
src/decentralised/main.cpp
ballisticwhisper/decentralised
mit
2,662
107
codeparrot/github-code
73371863469b8e180beeb410325d516ab663b7d858a77d2527c70c84a87ba23c
test('has a constructor for initialization', () => { // Create an Animal class // Add a constructor that takes one param, the name. // Set this.name to the name passed in const animal = new Animal() const dog = new Animal('Dog') expect(animal.name).toBeUndefined() expect(dog.name).toBe('Dog') }) test('...
JavaScript
exercises/10_class.test.js
wizzy25/es6-workshop
mit
2,133
72
codeparrot/github-code
62ae2619f9545c612ac9b49c232fe7e4381398b626c81ff6a4cea93dbe53f401
using Caliburn.Micro; using FollowMe.Messages; using System; using System.Collections.Generic; using System.Linq; using System.ServiceModel; using System.Text; using System.Threading.Tasks; namespace FollowMe.WebService { /// <summary> /// RemoteControl to control the Ar.Drone indirectly. /// You can star...
C#
FollowMe/WebService/RemoteControl.cs
HeinrichChristian/FlyingRobotToWarnVisuallyImpaired
mit
2,772
91
codeparrot/github-code
8f63ca2e57b44ccbcf47cef3baf60a8df8337b6fc108862df932815a10952012
package tests_dominio; import org.junit.Assert; import org.junit.Test; import dominio.Asesino; import dominio.Hechicero; import dominio.Humano; public class TestAsesino { @Test public void testRobar(){ } @Test public void testCritico(){ Humano h = new Humano("Nicolas",new Asesino(),1); Humano h2 = new Hum...
Java
src/test/java/tests_dominio/TestAsesino.java
programacion-avanzada/jrpg-2017a-dominio
mit
931
38
codeparrot/github-code
f55ef709290848f6defd8fbc58518f0384ec761183b1d31e962629c0c284fd91
#include <iostream> #include <seqan/graph_types.h> #include <seqan/graph_algorithms.h> #include <seqan/find_motif.h> using namespace seqan; int main () { typedef unsigned int TCargo; typedef Graph<Undirected<TCargo> > TGraph; typedef VertexDescriptor<TGraph>::Type TVertexDescriptor; TGraph g; ...
C++
raw/pmsb13/pmsb13-data-20130530/sources/fjt74l9mlcqisdus/2013-04-12T11-39-06.554+0200/sandbox/my_sandbox/apps/tutorial_20/tutorial_20.cpp
bkahlert/seqan-research
mit
989
34
codeparrot/github-code
3f284af1c906a3fbc34de81f667d4d15b09094b79d3c5713ef1e09b503381b7e
 var report_test_url = "reports\\BSV_GC_n_08_du_22_octobre_2013.pdf"; var report_dir = "files/"; var report_extension = ".pdf"; /***************************************************************************************************************************/ /* report_panel */ function report_panel(panel, report_panel){/...
JavaScript
web/scripts/report_panel.js
win-stub/PestObserver
mit
11,252
258
codeparrot/github-code
b115a7549bec025ac82168fb5c7e0e448658cf7c2de0bab6aa589df0ceaa5d96
// LICENSE package com.forgedui.editor.edit; import java.beans.PropertyChangeEvent; import java.util.ArrayList; import java.util.List; import org.eclipse.draw2d.geometry.Rectangle; import org.eclipse.gef.commands.Command; import org.eclipse.gef.requests.CreateRequest; import com.forgedui.editor.GUIEditorPlugin; impo...
Java
com.forgedui.editor/src/com/forgedui/editor/edit/TableViewEditPart.java
ShoukriKattan/ForgedUI-Eclipse
mit
4,096
134
codeparrot/github-code
e028abd9137c4b17cba65a7bda6701534645e72eba88315334422255c1a1ca21
package com.daviancorp.android.data.database; import android.database.Cursor; import android.database.CursorWrapper; import com.daviancorp.android.data.classes.Location; /** * A convenience class to wrap a cursor that returns rows from the "locations" * table. The {@link getLocation()} method will give you a Locat...
Java
MonsterHunter3UDatabase/src/com/daviancorp/android/data/database/LocationCursor.java
dbooga/MonsterHunter3UDatabase
mit
1,054
39
codeparrot/github-code
1a09cdada790c187c5557a8328f729c7c0a56f6d765ba8240282df467342818e
var bind = require('bind'); var debug = require('debug')('uj:app'); var Entity = require('./entity'); var inherit = require('inherit'); /** * Initialize a new `App` with `options`. * * @param {Object} options */ function App (options) { this.defaults = {} this.debug = debug; Entity.call(this, options); } ...
JavaScript
apps/cdn/lib/app.js
prateekbhatt/userjoy
mit
655
49
codeparrot/github-code
16f2cf01743bfe23bd5d6dff038e0b24541bc39491b0132e01084fb9b32e9f3a
<!DOCTYPE html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> <head> <meta chars...
HTML
index.html
argayash/gadiawot
mit
3,044
67
codeparrot/github-code