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 |
|---|---|---|---|---|---|---|---|---|
2860f270cf1c3bd37680f78f0c38cf4b64cefdf167a450e00614507853823739 | /* $OpenBSD: cread.c,v 1.13 2009/01/18 21:46:50 miod Exp $ */
/* $NetBSD: cread.c,v 1.2 1997/02/04 18:38:20 thorpej Exp $ */
/*
* Copyright (c) 1996
* Matthias Drochner. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the fol... | C | lib/libsa/cread.c | orumin/openbsd-efivars | isc | 10,442 | 451 | codeparrot/github-code |
b4973fe4a03cc4d57caa036e6bfb4d62281822b04795eb9082913784dadcd1cb | const test = require('tape')
const sinon = require('sinon')
const helpers = require('../test/helpers')
const MockCrock = require('../test/MockCrock')
const bindFunc = helpers.bindFunc
const curry = require('./curry')
const _compose = curry(require('./compose'))
const isFunction = require('./isFunction')
const isObjec... | JavaScript | src/core/List.spec.js | evilsoft/crocks | isc | 36,528 | 959 | codeparrot/github-code |
fe505a8c253a4e4bcf25f6fc0860b926aa6473d99028fd4cafc1916a24490721 |
package de.klimek.spacecurl.activities;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.content.Context;
import android.content.pm.ActivityInfo;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.u... | Java | app/src/main/java/de/klimek/spacecurl/activities/BasicTrainingActivity.java | Tetr4/Spacecurl | isc | 14,055 | 399 | codeparrot/github-code |
0d500a99815a26dcac25bbd431f78032d922283a0b06b6117995f4d52ab73ce2 | // C++ entry point
#include "Elf32.h"
// autogen.h contains the full kernel binary in a char array
#include "autogen.h"
extern "C" {
volatile unsigned char *uart1 = (volatile unsigned char*) 0x4806A000;
volatile unsigned char *uart2 = (volatile unsigned char*) 0x4806C000;
volatile unsigned char *uart3 = (volatile un... | C++ | src/system/boot/arm/main_beagle.cc | jmolloy/pedigree | isc | 26,018 | 913 | codeparrot/github-code |
7f4919a49ec923acb74efdb67e965b7f065dcc6cc6a0149bb6edabea24fc2fc3 | import AddLearningToStoryDescription from '../../../../src/content_scripts/pivotal_tracker/use_cases/add_learning_to_story_description'
import WWLTWRepository from '../../../../src/content_scripts/repositories/wwltw_repository';
import StoryTitleProvider from '../../../../src/content_scripts/utilities/story_title_provi... | JavaScript | test/content_scripts/pivotal_tracker/use_cases/add_learning_to_story_description_spec.js | oliverswitzer/wwltw-for-pivotal-tracker | isc | 2,332 | 57 | codeparrot/github-code |
cb2684cabaf50ee3b2d5a919aca0079960d97c771a25b77444c5f0d14bb032c7 | # ignore-together.py - a distributed ignore list engine for IRC.
from __future__ import print_function
import os
import sys
import yaml
weechat_is_fake = False
try:
import weechat
except:
class FakeWeechat:
def command(self, cmd):
print(cmd)
weechat = FakeWeechat()
weechat_is_fak... | Python | ignoretogether.py | kaniini/ignore-together | isc | 3,250 | 92 | codeparrot/github-code |
92797da9e9c4c779e5a95737da425cbaec24243f04b10a60740614dfa175cc3a | "use strict";
var Template = function (options) {
this._pageTitle = '';
this._titleSeparator = options.title_separator;
this._siteTitle = options.site_title;
this._req = null;
this._res = null;
};
Template.prototype.bindMiddleware = function(req, res) {
this._req = req;
this._re... | JavaScript | Template.js | mythos-framework/mythos-lib-template | isc | 1,091 | 48 | codeparrot/github-code |
60618227f9d85a8a17eba3f39bdacefaeb0311cae37b25c96e6c59178b513f4d | /* eslint-env mocha */
const mockBot = require('../mockBot')
const assert = require('assert')
const mockery = require('mockery')
const sinon = require('sinon')
const json = JSON.stringify({
state: 'normal',
nowTitle: 'Midnight News',
nowInfo: '20/03/2019',
nextStart: '2019-03-20T00:30:00Z',
nextTitle: 'Book ... | JavaScript | test/modules/radio.js | zuzakistan/civilservant | isc | 1,122 | 44 | codeparrot/github-code |
e48c0281d3261c0eb5fd4a1d685be31db20329d9c6e8f3a3243f1cd612b9ff20 | /*
* Copyright (c) 2012 Stanford University
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR(S)... | C++ | oridbg/cmd_listobj.cc | BBBSnowball/ori | isc | 1,918 | 66 | codeparrot/github-code |
e5149c7aca217dc59b30f8ebe96039a2e4bd8e7fe3c1edb052473c6341c3d90c | package com.evanbyrne.vending_machine_kata.ui;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Scanner;
import java.util.SortedMap;
import org.jooq.lambda.tuple.Tuple2;
import com.evanbyrne.vending_machine_kata.coin.Cents;
import com.evanbyrne.vending_machine_kata.c... | Java | src/main/java/com/evanbyrne/vending_machine_kata/ui/Console.java | evantbyrne/vending-machine-kata | isc | 4,553 | 140 | codeparrot/github-code |
de10d78a2d1ab2a619f92210b328326431f44991495e373ba6b456e0923871db | tressa.title('HyperHTML');
tressa.assert(typeof hyperHTML === 'function', 'hyperHTML is a function');
try { tressa.log(''); } catch(e) { tressa.log = console.log.bind(console); }
tressa.async(function (done) {
tressa.log('## injecting text and attributes');
var i = 0;
var div = document.body.appendChild(documen... | JavaScript | test/test.js | WebReflection/hyperHTML | isc | 47,224 | 1,379 | codeparrot/github-code |
d420b3da874ea97b1a9e09e0ebff96308ec7c0c2db14455f4aed9a92b8d36aff | var DND_START_EVENT = 'dnd-start',
DND_END_EVENT = 'dnd-end',
DND_DRAG_EVENT = 'dnd-drag';
angular
.module( 'app' )
.config( [ 'iScrollServiceProvider', function(iScrollServiceProvider){
iScrollServiceProvider.configureDefaults({
iScroll: {
momentum: false,
mouseWheel: true... | JavaScript | main.js | kosich/ng-hammer-iscroll-drag | isc | 1,547 | 64 | codeparrot/github-code |
4e9c9dc5a0c02124f40f64c5da10347aaee16ae806dce69298d0fce970715a23 | 'use strict'
let _ = require('lodash')
let HttpClient = require('./http-client')
/**
* Server configuration and environment information
* @extends {HttpClient}
*/
class Config extends HttpClient {
/**
* @constructs Config
* @param {Object} options General configuration options
* @param {Object} options... | JavaScript | lib/config.js | alanhoff/node-lxd | isc | 1,927 | 74 | codeparrot/github-code |
b49c6e5b4b1c5f54a855eeff2fc59ffe42ae67faef4edf0dfa24c0a9f9656b5c | import $ from 'jquery';
import { router } from 'src/router';
import './header.scss';
export default class Header {
static selectors = {
button: '.header__enter',
search: '.header__search'
};
constructor($root) {
this.elements = {
$root,
$window: $(window)
... | JavaScript | src/components/header/header.js | ksukhova/Auction | isc | 658 | 32 | codeparrot/github-code |
c8bf4a953f33ddd75d86d347ea55c2ec854df52e4e7a8736c279a0a0c8635a15 |
import re
from exchange.constants import (
CURRENCIES,
CURRENCY_NAMES,
DEFAULT_CURRENCY,
CURRENCY_EUR,
CURRENCY_UAH,
CURRENCY_USD,
CURRENCY_SESSION_KEY)
def round_number(value, decimal_places=2, down=False):
assert decimal_places > 0
factor = 1.0 ** decimal_places
sign = -1 ... | Python | exchange/utils.py | pmaigutyak/mp-shop | isc | 1,571 | 66 | codeparrot/github-code |
459de3da06beda6c8707742af27758fc8a8065d2fae7d7b3761fb5ebc5593ee2 | package org.apollo.game.event.handler.impl;
import org.apollo.game.event.handler.EventHandler;
import org.apollo.game.event.handler.EventHandlerContext;
import org.apollo.game.event.impl.ItemOnItemEvent;
import org.apollo.game.model.Inventory;
import org.apollo.game.model.Item;
import org.apollo.game.model.Player;
/*... | Java | src/org/apollo/game/event/handler/impl/ItemOnItemVerificationHandler.java | DealerNextDoor/ApolloDev | isc | 1,001 | 33 | codeparrot/github-code |
77a2409dcf963a3789cf403f4e254076f8770dae27c8f7396648ef8dcba6c819 | 'use strict';
var yeoman = require('yeoman-generator'),
chalk = require('chalk'),
yosay = require('yosay'),
bakery = require('../../lib/bakery'),
feedback = require('../../lib/feedback'),
debug = require('debug')('bakery:generators:cm-bash:index'),
glob = require('glob'),
path = require('path'),
_ = req... | JavaScript | generators/cm-bash/index.js | datapipe/generator-bakery | isc | 1,256 | 44 | codeparrot/github-code |
f813c1776b1fd54cfb077c5034e436e19031c387ee873077a2bb8bd5e45c136a | package com.leychina.activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.webkit.WebChromeClient;
import android.widget.ImageView;
import android.widget.TextView;
import com.leychina.R;
import com.leychina.mo... | Java | app/src/main/java/com/leychina/activity/ArtistDetailActivity.java | yuandunlong/leychina-android | isc | 2,114 | 62 | codeparrot/github-code |
fb806d5460d1b6fb383d131ac63c32e54b6780519c9fc0ea2711a9679de39fe4 | <!DOCTYPE html>
<HTML><head><TITLE>Manpage of PERF\-SCRIPT</TITLE>
<meta charset="utf-8">
<link rel="stylesheet" href="/css/main.css" type="text/css">
</head>
<body>
<header class="site-header">
<div class="wrap"> <div class="site-title"><a href="/manpages/index.html">linux manpages</a></div>
<div class="site-descr... | HTML | manpages/man1/perf-script.1.html | yuweijun/yuweijun.github.io | mit | 10,363 | 599 | codeparrot/github-code |
2210418549a83d4afeb3f499c4325c09ffbe04ed3b8b5133fe31ffe810965881 | /*
FreeRTOS V7.4.0 - Copyright (C) 2013 Real Time Engineers Ltd.
FEATURES AND PORTS ARE ADDED TO FREERTOS ALL THE TIME. PLEASE VISIT
http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
***************************************************************************
* ... | C | freeRTOS/FreeRTOSV7.4.0/FreeRTOSV7.4.0/FreeRTOS/Demo/CORTEX_MB9B500_IAR_Keil/main-full.c | andyOsaft/02_SourceCode | mit | 28,151 | 674 | codeparrot/github-code |
29a23957e885566bbe0650f2981744dba29653871593e8b1be74918ea5a267a5 | 'use strict';
// Proxy URL (optional)
const proxyUrl = 'drupal.dev';
// API keys
const TINYPNG_KEY = '';
// fonts
const fontList = [];
// vendors
const jsVendorList = [];
const cssVendorList = [];
// paths to relevant directories
const dirs = {
src: './src',
dest: './dist'
};
// paths to file sources
const sour... | JavaScript | gulpfile.babel.js | TricomB2B/tricom-drupal-7-base | mit | 5,441 | 253 | codeparrot/github-code |
05a33a2957d1f6658c313a3c84d9d13dd5ee778df0921d37e15aa6bb14123776 | /*
* Copyright (c) 2014 Stephan D. Cote' - All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the MIT License which accompanies this distribution, and is
* available at http://creativecommons.org/licenses/MIT/
*
* Contributors:
* Stephan D. ... | Java | src/test/java/coyote/i13n/EventListTest.java | sdcote/loader | mit | 4,336 | 208 | codeparrot/github-code |
dbe3e751d932bc441fba72bfb8e2946662a016f2af63b2799c8bcecbabc13819 | 'use strict';
const debug = require('debug')('WechatController');
const EventEmitter = require('events').EventEmitter;
const Cache = require('../../service/Cache');
const Wechat = require('../../service/Wechat');
const config = require('../../config');
const _ = require('lodash');
const async = require('async');
/* 微... | JavaScript | lib/controller/wechat/index.js | xwang1024/bomblab | mit | 9,692 | 251 | codeparrot/github-code |
88b749933ad1fa79131343870e421b34b3fc7b64fa9607607ecf2f035e05ec92 | <!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.13.1-2.0.10/released/8.13.1/sudoku/8.5.0.html | coq-bench/coq-bench.github.io | mit | 7,032 | 166 | codeparrot/github-code |
eca722a82229e78c5874414a863dbd2c0ff5ee576d1cf68bdcff25670837b661 | <?php
namespace Nemundo\Package\Bootstrap\Table;
use Nemundo\Html\Table\Table;
class BootstrapTable extends Table
{
/**
* @var bool
*/
public $smallTable = false;
/**
* @var bool
*/
public $hover = false;
/**
* @var bool
*/
public $inverse = false;
/**
... | PHP | src/Package/Bootstrap/Table/BootstrapTable.php | nemundo/framework | mit | 853 | 57 | codeparrot/github-code |
3cd4bd88fdc8bd5e23c9f8657a05cbb0db366ea4ecb439b9131256cafef4fdaf | using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Globalization;
using System.Linq;
using System.Text;
namespace EduHub.Data.Entities
{
/// <summary>
/// Leave Group Types Data Set
/// </summary>
[GeneratedCode("E... | C# | src/EduHub.Data/Entities/PLTDataSet.cs | garysharp/EduHub.Data | mit | 43,736 | 967 | codeparrot/github-code |
6ffc40bd3c9b6479880d0bb0a6784a480cedf942af1bad8f6478a4dd17a3666b | package iso20022
// Details of the standing settlement instruction to be applied.
type StandingSettlementInstruction9 struct {
// Specifies what settlement standing instruction database is to be used to derive the settlement parties involved in the transaction.
SettlementStandingInstructionDatabase *SettlementStand... | GO | StandingSettlementInstruction9.go | fgrid/iso20022 | mit | 1,985 | 38 | codeparrot/github-code |
3ea70b440899f527ac7746af1f5da532ef004acde6392b3fe0b3126c1419a875 | !(function(root) {
function Grapnel(opts) {
"use strict";
var self = this; // Scope reference
this.events = {}; // Event Listeners
this.state = null; // Router state object
this.options = opts || {}; // Options
this.options.env = this.options.env || (!!(Object.keys(... | JavaScript | portfolio/copylee/assets/mtk-route.js | matikbird/matikbird.github.io | mit | 16,205 | 483 | codeparrot/github-code |
4dcff905a13350fb094b55d4829f595b15c2a09d42b8e0519a30440e09b522d3 | package com.isme.zteui.cache;
import android.graphics.Bitmap;
import android.support.v4.util.LruCache;
import com.android.volley.toolbox.ImageLoader.ImageCache;
/**
* Title: Volley 的缓存类</br><br>
* Description: </br><br>
* Copyright: Copyright(c)2003</br><br>
* Company: ihalma </br><br>
* @author and</br><br>
... | Java | ZTEUI/src/com/isme/zteui/cache/BitmapLruCache.java | heyugtan/zteUI | mit | 920 | 45 | codeparrot/github-code |
01d467011f4b184efd9a4490cb520ce4909f10e2b46a90f181e4c19b2d2bb550 | package uk.gov.gds.ier.transaction.overseas.dateLeftSpecial
import uk.gov.gds.ier.test.ControllerTestSuite
import uk.gov.gds.ier.model.{LastRegisteredToVote, LastRegisteredType, DOB, DateOfBirth}
import uk.gov.gds.ier.model.LastRegisteredType._
import uk.gov.gds.ier.transaction.overseas.InprogressOverseas
class DateL... | Scala | test/uk/gov/gds/ier/transaction/overseas/dateLeftSpecial/DateLeftArmyStepTests.scala | michaeldfallen/ier-frontend | mit | 6,324 | 170 | codeparrot/github-code |
30ddfd1209a7587bd3adae5b72ff08e450e0b967d2655788a140ec5d7b853a2c | /* bzflag
* Copyright (c) 1993-2012 Tim Riker
*
* This package is free software; you can redistribute it and/or
* modify it under the terms of the license found in the file
* named COPYING that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
* IMPLIED WARRAN... | C | bzflag-2.4.2/include/BillboardSceneNode.h | SlyMongoose/462Shootout | mit | 2,940 | 111 | codeparrot/github-code |
f5888035d680a20e15653f90e966933215405b02fe6f94137395743c0dbfbaea | package gwent
const (
// AbilityNone means unit card has no ability at all
AbilityNone = iota
)
// CardUnit is single unit used for combat
type CardUnit struct {
UnitType CardType
UnitRange CardRange
UnitFaction CardFaction
UnitPower, UnitAbility int
UnitHero bool
BasicCard
}
// Play put... | GO | gwent/card.unit.go | bobesa/gwent | mit | 1,807 | 84 | codeparrot/github-code |
bde854068220f3851f877bc835163b481ab07cd80f5958ea555c3f6b524b080f | package medtronic
import (
"bytes"
"fmt"
"log"
"github.com/ecc1/medtronic/packet"
)
// Command represents a pump command.
type Command byte
//go:generate stringer -type Command
const (
ack Command = 0x06
nak Command = 0x15
cgmWriteTimestamp Command = 0x28
setBasalPatter... | GO | command.go | ecc1/medtronic | mit | 13,574 | 511 | codeparrot/github-code |
7101ca3744afe0ad873ec805390b851c8c4f1e61931057fb779b3cc4ee98d202 | """
SensitiveFloat objects for expectations involving r_s and c_s.
Args:
vs: A vector of variational parameters
Attributes:
Each matrix has one row for each color and a column for
star / galaxy. Row 3 is the gamma distribute baseline brightness,
and all other rows are lognormal offsets.
- E_l_a: A NUM_BANDS x NUM_SO... | Julia | src/deterministic_vi/source_brightness.jl | jeff-regier/Celeste.jl | mit | 10,351 | 230 | codeparrot/github-code |
4e408e0d43d3f67b457f14f50bebfc4203b71d74b159a2665605fe020de219d9 | /*
This software module was originally developed by Apple Computer, Inc.
in the course of development of MPEG-4.
This software module is an implementation of a part of one or
more MPEG-4 tools as specified by MPEG-4.
ISO/IEC gives users of MPEG-4 free license to this
software module or modifications thereof for use ... | C | lib/libisomediafile/src/MovieFragmentAtom.c | andresgonzalezfornell/TFM | mit | 7,783 | 265 | codeparrot/github-code |
0bc087f53d44a60b1341e6e2e3300630a047a85174bd8fb5909222456b40e7c1 | #include "forms/transactioncontrol.h"
#include "forms/graphicbutton.h"
#include "forms/label.h"
#include "forms/listbox.h"
#include "forms/scrollbar.h"
#include "forms/ui.h"
#include "framework/data.h"
#include "framework/framework.h"
#include "framework/logger.h"
#include "framework/renderer.h"
#include "game/state/ci... | C++ | forms/transactioncontrol.cpp | FranciscoDA/OpenApoc | mit | 29,041 | 926 | codeparrot/github-code |
b7a4e8b02c3f72780041a2ada259f977b4e5319cdb251213e7074e580b27f81d | <?php
namespace Upc\Cards\Bundle\CardsBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Upc\Cards\Bundle\CardsBundle\Entity\GroupCategory;
use Symfony\Compo... | PHP | src/Upc/Cards/Bundle/CardsBundle/Controller/GroupCategoryCrudController.php | devupc/cards | mit | 3,369 | 98 | codeparrot/github-code |
954a9484b708b62dbcca7f9c6d1aaf6f25a22107237bfd1b0f5f75389600150f |
var map;
var infoWindow;
// A variável markersData guarda a informação necessária a cada marcador
// Para utilizar este código basta alterar a informação contida nesta variável
var markersData = [
{
lat: -3.741262,
lng: -38.539389,
nome: "Campus do Pici - Universidade Federal do Ceará",
end... | JavaScript | js/mapslackline.js | KatharineAmaral29/ArenaSports | mit | 3,518 | 103 | codeparrot/github-code |
70a1f040a39cce0832995e2903e56e552fe91d696a4e314070f933070704432f | <?php require_once(APPPATH . 'views/header.php'); ?>
<link rel="stylesheet" href="<?= base_url(); ?>assets/css/fullcalendar.css" />
<link rel="stylesheet" href="<?= base_url(); ?>css/mine.css" />
<style>
.form-horizontal .controls {
margin-left: 12px;
}
</style>
<div class="page-content">
<div cla... | PHP | application/views/management.php | WereDouglas/epitrack | mit | 41,131 | 896 | codeparrot/github-code |
49696f5a292196ff8d6eb69bc6585cb8a9473e81a16c58f3c9f91016156d5a15 | var gulp = require('gulp');
var karma = require('karma').server;
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
var path = require('path');
var plumber = require('gulp-plumber');
var runSequence = require('run-sequence');
var jshint = require('gulp-jshint'... | JavaScript | gulpfile.js | nikita-yaroshevich/df-validator | mit | 2,192 | 106 | codeparrot/github-code |
6bbbf93ca326b1d6d878b0d7db6e47eabb981e41e887a69840b8d648005002cc | /*
* Copyright (c) 2003-2009 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | Java | lib/jME2_0_1-Stable/src/com/jme/curve/CurveController.java | accelazh/ThreeBodyProblem | mit | 9,311 | 246 | codeparrot/github-code |
dd663a79b0cdd7e0870f43264fcf623aa0290d92f541157d880594b0e29fd39a | # shellcheck disable=SC2148
# Defines transfer alias and provides easy command line file and folder sharing.
#
# source: https://gist.github.com/nl5887/a511f172d3fb3cd0e42d
#
# Authors:
# Remco Verhoef <remco@dutchcoders.io>
#
transfer() {
# check if curl is installed
if ! curl --version >/dev/null 2>&1; then
e... | Shell | zsh/scripts/transfer.zsh | niklas-heer/dotfiles | mit | 1,469 | 60 | codeparrot/github-code |
d41c11bcabd25889f0cdd3077c4edb8f234c014bf1470975caf2799961c8425b | using BizHawk.Common;
namespace BizHawk.Emulation.Cores.Nintendo.NES
{
//AKA half of mapper 034 (the other half is AVE_NINA_001 which is entirely different..)
public sealed class BxROM : NES.NESBoardBase
{
//configuration
int prg_bank_mask_32k;
int chr_bank_mask_8k;
//state
int prg_bank_32k;
int chr_b... | C# | Real-Time Corruptor/BizHawk_RTC/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/Boards/BxROM.cs | ircluzar/RTC3 | mit | 1,815 | 84 | codeparrot/github-code |
4f36c8659b5c6479a146cffa225759c872e68dbeb7b99a297a9a663c1f109a83 | /**
* morningstar-base-charts
*
* Copyright © 2016 . All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import defaultClasses from "../config/classes.js";
import ChartBase from "./chartBase.js";
import { ChartU... | JavaScript | src/js/charts/horizontal.js | jmconde/charts | mit | 3,155 | 121 | codeparrot/github-code |
4e5a5598819f7bd2b92fd45750fd872b93911f9f5254766fc3110216c994298b | # -*- coding: utf-8 -*-
r"""
Bending of collimating mirror
-----------------------------
Uses :mod:`shadow` backend.
File: `\\examples\\withShadow\\03\\03_DCM_energy.py`
Influence onto energy resolution
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Pictures after monochromator,
:ref:`type 2 of global normalization<globalNorm>`. ... | Python | examples/withShadow/04_06/04_dE_VCM_bending.py | kklmn/xrt | mit | 4,894 | 143 | codeparrot/github-code |
1eb493cb6380ae9502f7a0f02e79416c03dad8c7e93c7a956be4d98b7991ae94 | // Copyright (c) 2011-2016 The Cryptonote developers
// Copyright (c) 2014-2017 XDN-project developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once
#include <string.h>
#include <tuple>
#include <boost/uuid/u... | C | src/P2p/P2pProtocolTypes.h | xdn-project/digitalnote | mit | 1,478 | 64 | codeparrot/github-code |
e33b3d9d527b28da2b18c87a008d49886c4481422f96218dec940121d86680af | /**
* Copyright (c) 2014-2015, CKSource - Frederico Knabben. All rights reserved.
* Licensed under the terms of the MIT License (see LICENSE.md).
*/
( function( QUnit, bender ) {
var total = 0,
failed = 0,
passed = 0,
ignored = 0,
errors = 0,
result = {
success: true,
errors: []
};
// prevent Q... | JavaScript | lib/adapter.js | benderjs/benderjs-qunit | mit | 2,277 | 108 | codeparrot/github-code |
480d4ca0d938312b0b0df78e8456b684a4fe887f305e8f39b0ea82685507608b | #include "WebForm.h"
WebForm::WebForm(void)
:__pWeb(null), __phonegapCommand(null)
{
geolocation = null;
device = null;
accel = null;
network = null;
console = null;
compass = null;
contacts = null;
}
WebForm::~WebForm(void) {
}
bool
WebForm::Initialize()
{
return true;
}
result
WebForm::OnInitializing(voi... | C++ | chapter04/HelloWorld/src/WebForm.cpp | johnwargo/phonegap-essentials-code | mit | 5,118 | 213 | codeparrot/github-code |
4b4761fb8ee9a840d9d06e4ade61ce7368be7f9b4dd1bed790eb3a9305c65255 | package googlechat
import "time"
// ChatMessage is message type from Pub/Sub events
type ChatMessage struct {
Type string `json:"type"`
EventTime time.Time `json:"eventTime"`
Token string `json:"token"`
Message struct {
Name string `json:"name"`
Sender struct {
Name string `json:"... | GO | google-chat/chat_msg.go | go-chat-bot/bot | mit | 1,746 | 60 | codeparrot/github-code |
7566cf091c162468d166b6e78f3ddaeb868c1d32cfe53519ad14d79ed359984b | Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
# since you don't have to restart the web serv... | Ruby | config/environments/development.rb | kfrost32/AdventureAnswers | mit | 1,673 | 44 | codeparrot/github-code |
fd3b7be961f6dab6bf8d2e8418e0b00e71aaf1a5e90dc5c7b75136d662d4ba04 | import WebhookNotification, {
LinkClick,
LinkClickCount,
MessageTrackingData,
WebhookDelta,
WebhookObjectAttributes,
WebhookObjectData,
} from '../src/models/webhook-notification';
import { WebhookTriggers } from '../src/models/webhook';
describe('Webhook Notification', () => {
test('Should deserialize f... | JavaScript | __tests__/webhook-notification-spec.js | nylas/nylas-nodejs | mit | 4,538 | 124 | codeparrot/github-code |
334da5f7052fcb8d22f1ae2dd0c1ecfd1da6a6dfc299b8d0eac80fa8e1b3f15b | using HoloToolkit.Unity;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.Networking;
public class AuthorizationManager : Singleton<AuthorizationManager>
{
[SerializeField]
private string clientId = "... | C# | Frontend/GaMR/Assets/Scripts/Login/AuthorizationManager.cs | rwth-acis/GaMR | mit | 6,334 | 172 | codeparrot/github-code |
d8c82f4fb0e5ca60974ea7894aa996cb46e23338d2b2943e55007435514842fa | import deepFreeze from 'deep-freeze';
import { arrayToMap, mapKeysToArray } from './mapUtils';
describe('arrayToMap', () => {
it('should create map from 2D array', () => {
const a = [
['key1', 'value1'],
['key2', 'value2']
];
deepFreeze(a);
const result = arrayToMap(a);
expect(resu... | JavaScript | src/utils/mapUtils.test.js | TrueWill/embracer | mit | 1,107 | 49 | codeparrot/github-code |
0f2052fc7b7d3ffe18c6b8165e88559edd91a059ac255fba0c4066fae9b902ef | /**
*
*/
package com.kant.datastructure.queues;
import com.kant.sortingnsearching.MyUtil;
/**
* @author shaskant
*
*/
public class GenerateBinaryNumbers1toN {
/**
*
* @param n
* @return
* @throws OverFlowException
* @throws UnderFlowException
*/
public String[] solve(int n) throws OverFlowExcept... | Java | src/com/kant/datastructure/queues/GenerateBinaryNumbers1toN.java | thekant/myCodeRepo | mit | 1,022 | 49 | codeparrot/github-code |
a4373419f405d5fe098320fe5a1f8f1e2422bf40a79f1b6b9534f51a379dbdb0 | // Binary-search solution for balance.
// O(n * log (max coordinate / epsilon))
// David Garcia Soriano.
#include <algorithm>
#include <cstdio>
#include <cmath>
using namespace std;
const int maxn = 50000;
const double eps = 1e-11, infinity = 1e300;
double px[maxn], py[maxn];
int n;
bool possible(double d, double& p... | C++ | Java/PC2/Solutions/TrickTreat/balance.cpp | Emunt/contest_problems | mit | 1,320 | 57 | codeparrot/github-code |
998da006caeab899b92af19f94ac7d155c2e26e9571dfa6ba3fc89b69c1164f4 | require 'log4r'
module VagrantPlugins
module G5K
module Network
class Nat
def initialize(env, driver, oar_driver)
@logger = Log4r::Logger.new("vagrant::network::nat")
# command driver is unused
@env = env
@driver = driver
@oar_driver = oar_driver
... | Ruby | lib/vagrant-g5k/network/nat.rb | msimonin/vagrant-g5k | mit | 1,523 | 66 | codeparrot/github-code |
feb24da1dd561ea37e5262f35e39b8c08c54efc44dc562fd28672c5806594464 | <?php
namespace Gitlab\Clients;
class DeployKeyClient extends AbstractClient
{
/**
* @param int $projectId
* @return \Psr\Http\Message\ResponseInterface
*/
public function listDeployKeys($projectId)
{
return $this->getRequest(sprintf('projects/%u/keys', $projectId));
}
... | PHP | src/Clients/DeployKeyClient.php | AlexKovalevych/gitlab-api | mit | 1,173 | 46 | codeparrot/github-code |
eed05965a03e7642241347ef263da2f39aa9699199635a613e99ed204b1eab71 | from django.db import models
import warnings
from django.utils import timezone
import requests
from image_cropping import ImageRatioField
class CompMember(models.Model):
"""A member of compsoc"""
class Meta:
verbose_name = 'CompSoc Member'
verbose_name_plural = 'CompSoc Members'
index = ... | Python | general/models.py | compsoc-ssc/compsocssc | mit | 2,517 | 61 | codeparrot/github-code |
873f98ce69b736e54af9ce09c2328dce9ba8ca7a4ef9d35f69d9aca9932ff870 | from __future__ import division, print_function
from abc import ABCMeta, abstractmethod
import matplotlib as mpl
mpl.use('TkAgg')
from matplotlib.ticker import MaxNLocator, Formatter, Locator
from matplotlib.widgets import Slider, Button
import matplotlib.patches as patches
import matplotlib.pyplot as plt
from matplotl... | Python | tadtool/plot.py | vaquerizaslab/tadtool | mit | 28,848 | 723 | codeparrot/github-code |
8ccbec984e76aadcf357ff4f8b6ee5515f70b5d55271a1943ad9d8249857ee23 | #define BOOST_TEST_NO_LIB
#include <boost/test/auto_unit_test.hpp>
#include "dormouse-engine/essentials/Formatter.hpp"
using namespace dormouse_engine::essentials;
namespace {
BOOST_AUTO_TEST_SUITE(FormatterTestSuite);
BOOST_AUTO_TEST_CASE(FormatsEmptyString) {
std::string s;
Formatter f(Formatter::FormatterChar... | C++ | src/foundation/essentials/src/test/c++/dormouse-engine/essentials/Formatter.cpp | mikosz/dormouse-engine | mit | 3,664 | 129 | codeparrot/github-code |
997ef8416eaff55e573aab0ae98f9fe32a563b723c6a62843d3f09729f145e8e | package com.baomidou.hibernateplus.spring.vo;
import java.io.Serializable;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import com.baomidou.hibernateplus.entity.Convert;
/**
* <p>
* Vdemo
* </p>
*
* @author Caratacus
* @date 2016-12-2
*/
publi... | Java | hibernate-plus/src/test/java/com/baomidou/hibernateplus/spring/vo/Vdemo.java | baomidou/hibernate-plus | mit | 1,066 | 60 | codeparrot/github-code |
dd512105cde111a8e32972f959d4ca5b19e5be0f0475c64c1e233681b3e08c89 | using System;
using System.Collections.Generic;
using System.Xml.Serialization;
namespace Trafikverket.NET
{
/// <summary>
/// Timetable information, represents a single train at a location
/// </summary>
public class TrainAnnouncement
{
/// <summary>
/// Get ObjectType... | C# | src/Trafikverket.NET/Responses/DataModels/TrainAnnouncement.cs | mrjfalk/Trafikverket.NET | mit | 5,928 | 177 | codeparrot/github-code |
fee5dda35c2aabbcadb61d4ebc8b5766190f4fb23d19c68633e5878c9611f685 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Pasteurizer : Clickable {
[SerializeField]
private Transform positionMark;
private Vector3 initial;
[SerializeField]
private GameObject milkObject;
public override void OnStart() {
base.OnSt... | C# | Assets/Scripts/Barn/Pasteurizer.cs | TeamTorchBear/Guzzlesaurus | mit | 870 | 39 | codeparrot/github-code |
e3ebfa61812d46eaa75f54f8de00d368ed1e746c53ff908bbc5132bcc97c869a | <?php namespace Terion\PackageInstaller;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Foundation\Application;
use Symfony\Component\Finder\Finder;
/**
* Class ConfigUpdater
*
* @package Terion\PackageInstaller
* @author Volodymyr Kornilov <mail@terion.name>
* @license MIT http://opensource.org/licens... | PHP | src/Terion/PackageInstaller/ConfigUpdater.php | terion-name/package-installer | mit | 10,543 | 387 | codeparrot/github-code |
3e340250424b8becedf2ece0668549c36a037b530daf9c9cb2832688609f0adb | <#
.SYNOPSIS
Gets reader mode.
.DESCRIPTION
Gets the reader mode for all readers or the reader mode for a single reader if a panel id and reader id is specified.
If the result returns null, try the parameter "-Verbose" to get more details.
.EXAMPLE
Get-ReaderMode
.LINK
https://gi... | PowerShell | PSDataConduIT/Public/Get-ReaderMode.ps1 | erwindevreugd/PSDataConduIT | mit | 2,699 | 90 | codeparrot/github-code |
f2f9308c7b8f123aa6723497a8391e4f8297d64f62c3a6af1597582af142e24c | package main
import (
"flag"
"fmt"
"github.com/ammario/fastpass"
)
func cmdGet(fp *fastpass.FastPass) {
search := flag.Arg(0)
if len(flag.Args()) != 1 {
usage()
}
results := fp.Entries.SortByName()
if search != "" {
results = fp.Entries.SortByBestMatch(search)
}
if len(results) == 0 {
fail("no r... | GO | cmd/fp/cmd_get.go | ammario/fastpass | mit | 599 | 45 | codeparrot/github-code |
f9a1cc6874bc503a58df774e8e8ee704cacf0fefd17a65b3e2009f57a2f6b978 | from django.http import HttpResponse
from django.core.servers.basehttp import FileWrapper
from django.contrib.auth.models import User
from django.shortcuts import render_to_response, redirect, get_object_or_404
from requests import get
from urllib import urlretrieve
from common.models import Repository
from common.ut... | Python | viewer/views.py | vault/bugit | mit | 3,804 | 128 | codeparrot/github-code |
fece1fff51a338a1e8e4108fca0683a5952706492eb96d988ebfa932e9162f2a | <?php
/*
+------------------------------------------------------------------------+
| Phalcon Framework |
+------------------------------------------------------------------------+
| Copyright (c) 2011-2012 Phalcon Team (http://www.phalconphp.com) |
+... | PHP | app/library/Phalcon/Error/Error.php | le51/foundation | mit | 2,269 | 68 | codeparrot/github-code |
7ab531efdb18dd45457df365ea39bc4cc798eace93701552148b1a60ac9b42b5 | import classnames from 'classnames';
import cloneDeep from 'lodash/cloneDeep';
import React from 'react';
import {
HTMLFieldProps,
connectField,
filterDOMProps,
joinName,
useField,
} from 'uniforms';
export type ListAddFieldProps = HTMLFieldProps<
unknown,
HTMLSpanElement,
{ initialCount?: number }
>;
... | TypeScript | packages/uniforms-semantic/src/ListAddField.tsx | vazco/uniforms | mit | 1,438 | 67 | codeparrot/github-code |
e2607fc742037e4857be78630ee609ede2b2febddf860c1d63f304dcdefcf083 | ---
layout: article
title: “Nancy Grows Up,” the Media Age, and the Historian’s Craft
authors:
- schmidt-michael
excerpt: >
Historians have mostly relied on the printed page to communicate their work. But what about sound? Michael Schmidt looks to the alternate aural history of the twentieth century and unearths be... | HTML | _posts/issue-1-3/2013-09-03-schmidt-nancy.html | theappendix/theappendix-jekyll-source | mit | 22,597 | 220 | codeparrot/github-code |
4e4434cd1a70bb74c39439ec3cdb1f9fe7282872f6e590b14dae66082d33a9a8 | import * as Lint from 'tslint';
import * as ts from 'typescript';
const RULE_FAILURE = `Undecorated class defines fields with Angular decorators. Undecorated ` +
`classes with Angular fields cannot be extended in Ivy since no definition is generated. ` +
`Add a "@Directive" decorator to fix this.`;
/**
* Rule th... | TypeScript | tools/tslint-rules/noUndecoratedClassWithNgFieldsRule.ts | trimox/angular-mdc-web | mit | 2,257 | 65 | codeparrot/github-code |
616e7f796d2808380b1f17c08d6d07d00d742c75665451d14db30887806bdd49 | /*! fingoCarousel.js © heoyunjee, 2016 */
function(global, $){
'use strict';
/**
* width: carousel width
* height: carousel height
* margin: tabpanel margin
* count: how many tabpanels will move when you click button
* col: how many columns in carousel mask
* row: how many rows in carousel mask
... | JavaScript | fingo.carousel.js | ooyunjee/fingoCarousel | mit | 13,336 | 378 | codeparrot/github-code |
d2c6462cb6d85f605066d0958ad29abdf0c3b7054ed4dd2a81ca7a5e2f27ad78 | /*
* =============================================================================
*
* Filename: cqi_pool.c
*
* Description: connection queue item pool.
*
* Created: 10/18/2012 07:56:53 PM
*
* Author: Fu Haiping (forhappy), haipingf@gmail.com
* Company: ICT ( Institute Of C... | C | src/server/cqi_pool.c | forhappy/LLDB | mit | 4,584 | 192 | codeparrot/github-code |
0f12a04b2a441156c1ce7b36be933f199d1be062c865e59dee4d503a1245d832 | package xsmeral.semnet.sink;
import java.util.Properties;
import org.openrdf.repository.Repository;
import org.openrdf.repository.RepositoryException;
import org.openrdf.repository.sail.SailRepository;
import org.openrdf.sail.rdbms.RdbmsStore;
/**
* Factory of {@link RdbmsStore} repositories.
* <br />
* Takes para... | Java | SemNet/src/xsmeral/semnet/sink/RdbmsStoreFactory.java | rsmeral/semnet | mit | 1,464 | 40 | codeparrot/github-code |
ddc33c6499c32d2328309399992071bc1fbf31c55b7c6e1398e8a2620184fa0a | #pragma once
#include "base/Ref.h"
#include "math/vec3.h"
#include "math/mat4.h"
#include "math/quat.h"
#include "base/component/BaseComponent.h"
#include "base/Vector.h"
class Transform : public BaseComponent
{
public:
Transform(GameObject* owner = nullptr);
virtual ~Transform();
public:
virtual vo... | C | frameworks/base/component/Transform.h | lyzardiar/BWEngine | mit | 1,331 | 58 | codeparrot/github-code |
11c25a8820f2904a28fe01dd314b775540600a5dc87f83610a6fcd97e3efe214 | // MIT License
//
// Copyright(c) 2022 ICARUS Consulting GmbH
//
// 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, cop... | C# | src/Yaapii.Atoms/Scalar/Max.cs | icarus-consulting/Yaapii.Atoms | mit | 5,198 | 142 | codeparrot/github-code |
7474c389f443ed9bd5c68a24c3b081a1cf6780a12228807e73e54e2b5c6060ee | """
The MIT License (MIT)
Copyright (c) 2016 Louis-Philippe Querel l_querel@encs.concordia.ca
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... | Python | utility/jdk_override.py | louisq/staticguru | mit | 1,445 | 35 | codeparrot/github-code |
328b9dac41113a56b79be1b0042cd253890e740217cc9e598c710aec4a864fdd | /////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2009-2014 Alan Wright. All rights reserved.
// Distributable under the terms of either the Apache License (Version 2.0)
// or the GNU Lesser General Public License.
////////////////////////////////////////////////////////////... | C | Pod/Libraries/Header/Collection.h | afklm/lucenekit | mit | 7,497 | 271 | codeparrot/github-code |
29308bd0aecf19ef0088e72ce41d898182074292abc587cfacf8981b8ab7911d | # -*- coding: utf-8 -*-
"""
Created on Thu Sep 21 16:29:34 2017
@author: ishort
"""
import math
""" procedure to generate Gaussian of unit area when passed a FWHM"""
#IDL: PRO GAUSS2,FWHM,LENGTH,NGAUS
def gauss2(fwhm, length):
#length=length*1l & FWHM=FWHM*1l
#NGAUS=FLTARR(LENGTH)
... | Python | Gauss2.py | sevenian3/ChromaStarPy | mit | 996 | 42 | codeparrot/github-code |
392ae8b962f6b5860078eb4cad56497a04c5df9601eb2e83957575f30e01abad |
var compare = require('typewiselite')
var search = require('binary-search')
function compareKeys (a, b) {
return compare(a.key, b.key)
}
module.exports = function (_compare) {
var ary = [], kv
_compare = _compare || compare
function cmp (a, b) {
return _compare(a.key, b.key)
}
return kv = {
ge... | JavaScript | index.js | dominictarr/binary-map | mit | 1,040 | 51 | codeparrot/github-code |
92594c4db80bb9b622858c51fa73510d5c87a2ebb015f75fcbb8eac270a7dc87 |
namespace Grauenwolf.TravellerTools.Names
{
public class RandomPerson
{
/// <summary>
/// Initializes a new instance of the <see cref="RandomName"/> class.
/// </summary>
/// <param name="firstName"></param>
/// <param name="lastName"></param>
internal RandomPer... | C# | TravellerTools/Grauenwolf.TravellerTools.Services/Names/RandomPerson.cs | Grauenwolf/TravellerTools | mit | 1,109 | 33 | codeparrot/github-code |
a1188df8072262f03047ca7e367eef70a37f2aad0e9d7cc73d5ba06fbf4e8e16 | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------... | C# | src/DebugSession.cs | Microsoft/vscode-mono-debug | mit | 11,202 | 480 | codeparrot/github-code |
c4c37bedc95e7dd007d2f5c3f0f70912f8fdb253815c01504d07960fbd752084 | /**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2016 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
/**
* This is where the magic happens. The Game object is the heart of your game,
* providing quick access to common funct... | JavaScript | src/core/Game.js | vpmedia/phaser2-lite | mit | 31,928 | 1,136 | codeparrot/github-code |
8f215b11dd3d321ebbd8666f6f49f03fb7404bbaf693d2bc422ad6f3f5c6320c | #include "pci.h"
#include "pciids.h"
#include "kstdio.h"
#include "heap.h"
#include "ehci.h"
#define headerAddress(bus,dev,func,reg) \
((uint32_t)((((bus) & 0xFF) << 16) | (((dev) & 0x1F) << 11) | \
(((func) & 0x07) << 8) | (((reg) & 0x3F) << 2) | 0x80000000L)) \
uint8_t pci_read_8(int bus, int dev, int fu... | C | zos/src/pci.c | zzh8829/OSPP | mit | 3,137 | 126 | codeparrot/github-code |
f3a704a35189460cab75dbce267716515af9417481c53356c1b0086345ba1846 | # -*- coding: utf-8 -*-
""" Request Management System - Controllers """
prefix = request.controller
resourcename = request.function
if prefix not in deployment_settings.modules:
session.error = T("Module disabled!")
redirect(URL(r=request, c="default", f="index"))
# Options Menu (available in all Functions'... | Python | controllers/rms.py | ptressel/sahana-eden-madpub | mit | 6,228 | 178 | codeparrot/github-code |
5e54edb588d042832e234480a8e6c871e1fad13c6ee6a6d34d900014f5b55ef6 | <?php
/**
* Project: Epsilon
* Date: 10/26/15
* Time: 5:30 PM
*
* @link https://github.com/falmar/Epsilon
* @author David Lavieri (falmar) <daviddlavier@gmail.com>
* @copyright 2015 David Lavieri
* @license http://opensource.org/licenses/MIT The MIT License (MIT)
*/
namespace Epsilon\Environment;
d... | PHP | Libraries/Epsilon/Environment/Cookie.php | falmar/Epsilon | mit | 2,264 | 102 | codeparrot/github-code |
2b58a3997c923b779e335c1ecc55a51a4389fe30099064df9174fb93ea8d8ed1 | package org.jabref.gui.openoffice;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ButtonGroup;
import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.JDialog;... | Java | src/main/java/org/jabref/gui/openoffice/AdvancedCiteDialog.java | tobiasdiez/jabref | mit | 3,726 | 114 | codeparrot/github-code |
bc066615c4eb80b99fe094670feb8cde9b0f9555c250ef4bd0d378676580aa9a | //******************************************************************************************************
// App.xaml.cs - Gbtc
//
// Copyright © 2010, Grid Protection Alliance. All Rights Reserved.
//
// Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See
// the NO... | C# | Source/Applications/openPDCManager/Silverlight/App.xaml.cs | GridProtectionAlliance/openPDC | mit | 4,904 | 128 | codeparrot/github-code |
aafe048c186bd8910c20860e27a21e4d417c8d3ff42b93ecdc712494e6c68c74 | package com.ricex.aft.android.request;
import org.springframework.http.HttpStatus;
public class AFTResponse<T> {
/** The successful response from the server */
private final T response;
/** The error response from the server */
private final String error;
/** The HttpStatus code of the response */
private... | Java | aft-android/src/main/java/com/ricex/aft/android/request/AFTResponse.java | mwcaisse/AndroidFT | mit | 1,925 | 83 | codeparrot/github-code |
ab82cb02caae93b93121bb87f1048049330eedb516b7df11cf75b1d1e2a5e834 | /* app/ui/map/svg */
define(
[
'jquery',
'raphael',
'app/ui/map/data',
'app/ui/map/util',
'util/detector',
'pubsub'
],
function ($, Raphael, MapData, MapUtil, Detector) {
'use strict';
var SVG;
return {
nzte: {},
markers: [],
exports: {},
countryText: {},
sets: {},
continent... | JavaScript | original/assets/scripts/src/app/ui/map/svg.js | patocallaghan/questionnaire-js | mit | 9,937 | 378 | codeparrot/github-code |
ed9373770f4650f116fa97c2405f43ab178011c9da49e75314c6d26956b01c6e | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| DATABASE CONNECTIVITY SETTINGS
| -------------------------------------------------------------------
| This file will contain the settings needed to access your database.
|
|... | PHP | application/config/database.php | khandroj/lampbelttest | mit | 4,535 | 97 | codeparrot/github-code |
f04424cb77603c94cefcc228b3dff79c8f25000be0026442a8745f666e929ece | <?php
// src/AppBundle/Entity/Blog.php
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="blog")
*/
class Blog
{
/**
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @ORM\Column(... | PHP | src/AppBundle/Entity/Blog.php | codeglider/SymfonyShoeStoreDemo | mit | 1,238 | 87 | codeparrot/github-code |
e1d174010799250c87871ee8014b6e5841f89e8b5ff8b4f75e383f190bcba946 | import {Chart} from 'react-google-charts';
import React, {Component, PropTypes} from 'react';
import DataFormatter from '../../utils/DataFormatter';
class EnvyBarChart extends Component {
constructor(props) {
super(props);
this.state={
options:{
hAxis: {title: 'Event Type'},
vAxis: {title: 'Envy Events... | JavaScript | src/components/charts/EnvyBarChart.js | papernotes/actemotion | mit | 828 | 43 | codeparrot/github-code |
5f11383cd13dd789b190c103daeda8cfe64683f71224c70e21633e1cce606d9e | "use strict";
let mongoose = require('mongoose'),
Schema = mongoose.Schema,
EmailValidator = require('./emailValidator');
class User {
constructor(explicitConnection) {
this.explicitConnection = explicitConnection;
this.schema = new Schema({
email: {
type: 'string',
trim:... | JavaScript | api/model/user.js | koneksys/KLD | mit | 1,603 | 58 | codeparrot/github-code |
5b56dede4e5e26e2f8db2f7dc94e3eca3d5239a2f34ba852e2c3abae6605ac0a | package cn.edu.ustc.appseed.clubseed.activity;
/*
* Show the detail content of the event which you select.
* Why to use a custom toolbar instead of the default toolbar in ActionBarActivity?
* Because the custom toolbar is very convenient to edit it and good to unify the GUI.
*/
import android.content.Intent;
import ... | Java | app/src/main/java/cn/edu/ustc/appseed/clubseed/activity/StarContentActivity.java | leerduo/ClubSeed | mit | 2,293 | 64 | codeparrot/github-code |
3e157952fdb315f3aae5e222ebe887c9a716683d476e3c924ab7009bcef7426d | package com.smbc.droid;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.support.v4.view.ViewPager;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import com.android.volley.toolbox.NetworkImageView;
public class MainActivity extends FragmentA... | Java | app/src/main/java/com/smbc/droid/MainActivity.java | nindalf/smbc-droid | mit | 1,709 | 52 | codeparrot/github-code |
e57592a4c557c1042464286cd5df64b22712c6654ae6bbf70625271181dc8340 | using System;
using OKHOSTING.UI.Controls;
using OKHOSTING.UI.Controls.Layouts;
using OKHOSTING.UI.Xamarin.Mac.Controls;
using OKHOSTING.UI.Xamarin.Mac.Controls.Layout;
namespace OKHOSTING.UI.Xamarin.Mac
{
public class Platform
{
public override T Create<T>()
{
T control = null;
if (typeof(T) == typeof(I... | C# | src/Xamarin/OKHOSTING.UI.Xamarin.Mac/Platform.cs | okhosting/OKHOSTING.UI | mit | 5,379 | 227 | codeparrot/github-code |
fce6a944fd8678a6102905efa8e098a6a48fa7aeff57421014b12222ff675d5b | (function (ns) {
// dependencies
var assert = require('assert');
var esgraph = require('esgraph');
var worklist = require('analyses');
var common = require("../../base/common.js");
var Context = require("../../base/context.js");
var Base = require("../../base/index.js");
var codegen = r... | JavaScript | src/analyze/typeinference/typeinference.js | xml3d/shade.js | mit | 8,226 | 237 | codeparrot/github-code |
b3d49822daa2b817c49b0a064d91658c8af721cd4708f660b20ad364b82d3c54 | package lab;
public class IntArrayWorker
{
/** two dimensional matrix */
private int[][] matrix = null;
/** set the matrix to the passed one
* @param theMatrix the one to use
*/
public void setMatrix(int[][] theMatrix)
{
matrix = theMatrix;
}
/**
* Method to return the ... | Java | ApComSci/pictures_lab/lab/IntArrayWorker.java | Zedai/APCOMSCI | mit | 2,755 | 127 | codeparrot/github-code |
39b4c0b4968923532d3c1fddc42def6351d2610869817cd51fd9ad30be85ccac | <meta charset="utf-8">
<title>{% if page.title %}{{ page.title }} – {% endif %}{{ site.title }}</title>
<meta name="description" content="{{ page.description }}">
<meta name="keywords" content="{{ page.tags | join: ', ' }}">
<meta property="og:locale" content="en_US">
<meta property="og:title" content="{% if pa... | HTML | _includes/head-dark.html | sum37/es6aday.github.io | mit | 4,258 | 87 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.