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 |
|---|---|---|---|---|---|---|---|---|
9c9b9f76b3f42ffc9c12504a9ed95cf4eb9653d101f11e133791a7b46fcb6c52 | /**********************************************************\
| |
| hprose |
| |
| Official WebSite: http://www.hprose.com/ |
| ... | Java | src/main/java/hprose/io/unserialize/TreeMapUnserializer.java | zijan/hprose-java | mit | 1,814 | 41 | codeparrot/github-code |
991e553444d9f2504967554ccc8ed026c75fef1fa6038bfd414838fdd105b687 | import {NO_ERRORS_SCHEMA} from '@angular/core';
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {ReactiveFormsModule} from '@angular/forms';
import {MatButtonModule, MatCardModule, MatInputModule, MatRadioModule, MatSelectModule,} from '@angular/material';
import {NoopAnimationsModule} fr... | TypeScript | src/app/datastore/module0/cmp9/cmp9.component.spec.ts | angular/angular-bazel-example | mit | 1,307 | 44 | codeparrot/github-code |
35a13d6530e436ee672359aa04a78501bd1ea1ef43514c18382b7252167ddda0 | package org.springframework.integration.aws.sns.channel;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.context.SmartLifecycle;
import org.springframework.integration.Message;
import org.springfram... | Java | spring-integration-aws/src/main/java/org/springframework/integration/aws/sns/channel/PublishSubscribeSnsChannel.java | 3pillarlabs/spring-integration-aws | mit | 3,176 | 129 | codeparrot/github-code |
b51dcda67f8fb1af8f93b75891e0dc6cf354244ea185d596075ecb538c224cce |
package org.usfirst.frc.team4915.stronghold;
import org.usfirst.frc.team4915.stronghold.commands.AutoCommand1;
import org.usfirst.frc.team4915.stronghold.commands.PortcullisMoveUp;
import org.usfirst.frc.team4915.stronghold.subsystems.Autonomous;
import org.usfirst.frc.team4915.stronghold.subsystems.DriveTrain;
import... | Java | src/org/usfirst/frc/team4915/stronghold/Robot.java | schmirob000/2016-Stronghold | mit | 7,923 | 218 | codeparrot/github-code |
939d613071ebbc6bdecd307b0747dd4978b9605f5e87432b25c2d7c64cfa15b0 | using MvvmCross.Core.ViewModels;
using ProductPriceCalc.Core.Services;
namespace ProductPriceCalc.Core.ViewModels
{
public class FirstViewModel
: MvxViewModel
{
private readonly IProductPriceService _productPriceService;
public FirstViewModel(IProductPriceService productPriceService)
... | C# | ProductPriceCalc.Core/ViewModels/FirstViewModel.cs | mauricemarkvoort/ProductPriceCalc | mit | 1,363 | 53 | codeparrot/github-code |
0f37fc3472f727f86a4e3471da6db153d2ec4583ad3b18a9db3d971ef7dcfc25 | <?php
namespace Acme\StoreBundle\Controller;
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
use Symfony\Component\HttpKernel\KernelEvents;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
class LocaleListener implements EventSubscriberInterface
{
private $defaultLocale;
... | PHP | src/Acme/StoreBundle/Controller/LocaleListener.php | kimy82/llibreria | mit | 1,135 | 38 | codeparrot/github-code |
ed03b80deb93f41a3926774f685d761cae8a82dfa89f04eb59d60c5cd483e8b1 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.TeamFoundation.Client;
using Microsoft.TeamFoundation.WorkItemTracking.Client;
using Microsoft.TeamFoundation.VersionControl.Client;
using Microsoft.TeamFoundation.Server;
namespace tfin... | C# | tfinfo/TfsInfo.cs | zdeslav/tfinfo | mit | 6,506 | 170 | codeparrot/github-code |
3b515ae3d2c3fe71cfbb31785512ed62ebde2cccda60a7b07d05da29b6ecb028 | <?php
declare (strict_types=1);
namespace Rector\Caching;
use Rector\Caching\Detector\ChangedFilesDetector;
use Symplify\SmartFileSystem\SmartFileInfo;
final class UnchangedFilesFilter
{
/**
* @var \Rector\Caching\Detector\ChangedFilesDetector
*/
private $changedFilesDetector;
public function __... | PHP | packages/Caching/UnchangedFilesFilter.php | RectorPHP/Rector | mit | 1,302 | 39 | codeparrot/github-code |
d761ced2408f297308a609ee2d3329164dfa39fceffa80ac68cc86499a525bc4 | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
using MonoTouch.Dialog;
namespace Verses.iOS
{
public class StyledStringElement : StringElement, IElementSizing
{
public StyledStringElement (string caption) : base (caption)
... | C# | Verses.iOS/Settings/StyledStringElement.cs | pierceboggan/Verses | mit | 1,309 | 61 | codeparrot/github-code |
7081240ba95ae132ca37b29056121c14ff4f0d774071454d6d9b411b0d8089eb | namespace Ioke.Lang {
using Ioke.Lang.Util;
using System.Text;
public class Locals {
public static void Init(IokeObject obj) {
obj.Kind = "Locals";
obj.GetMimics().Clear();
obj.SetCell("=", obj.runtime.Base.Cells["="]);
var assgn = IokeObjec... | C# | src/ikc/main/Ioke.Lang/Locals.cs | vic/ioke-outdated | mit | 6,990 | 94 | codeparrot/github-code |
aad7fc19e8839f8281974669e0626f203a9ad1fa6cdf55f2e09c44e7f735f3ff | import {Component, ElementRef} from '@angular/core';
import { ProductionTileService } from '../../shared/services/productiontile.service';
import { Router } from '@angular/router';
import {Observable} from 'rxjs/Rx';
//import 'style-loader!./tiles.scss';
@Component({
selector: 'production-tiles',
styleUrls: ['./tile... | TypeScript | src/app/pages/productiontiles/productiontiles.component.ts | NPM57/OPTOWeb2 | mit | 1,203 | 42 | codeparrot/github-code |
53106dbab55a46a570778e372c2a58490b91c01f7795044c72498992a49b46f7 | using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using System.Web.Http;
using System.Web.Http.ExceptionHandling;
namespace Hyperfriendly.WebApi.ErrorHandling
{
public class HyperfriendlyExceptionHandler : ExceptionHandler
{
private readonly ExceptionTransformer _transformer... | C# | Hyperfriendly.WebApi/ErrorHandling/HyperfriendlyExceptionHandler.cs | hyperfriendly/Hyperfriendly.WebApi | mit | 1,629 | 46 | codeparrot/github-code |
38d55a5f065cb11de35fb8358013e248a458f6df9b8d976da5e78c4f80c9e29b | <?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = [
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\Security... | PHP | app/AppKernel.php | saltarin/servicioIOS | mit | 1,933 | 58 | codeparrot/github-code |
140a5ee66366b5cfc285d260b94e6b990decda837a2ae1d7a8c40fbe29883286 | var playState = {
create: function(){
var background = game.add.sprite(0, 0, 'cidade');
background.width = 1300;
background.height = 650;
graphics = game.add.graphics(0, 0);
groupCidade = game.add.group();
groupCidade.inputEnableChildren = true;
var x = 1... | JavaScript | .history/animaSom/js/play_20170606134526.js | RenatoMAlves/AnimaSom-Game | mit | 2,197 | 90 | codeparrot/github-code |
d125345501e44a26e3e9172d8b9753ebd583bd982f986af78de215b488f20214 | #include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "vm.h"
ProcessorState * ProcessorState_new() {
// State box for this processor
ProcessorState *new_procstate = (ProcessorState *) malloc(sizeof(ProcessorState));
// Setup the processor
Processor *new_proc = (Pro... | C | src/c/vm.c | zinic/schematic | mit | 4,940 | 161 | codeparrot/github-code |
ba5cf4e9dce453da2afa0239675131765cbc39253f08db5c205c59d37b63e242 | using System;
using System.Globalization;
using Newtonsoft.Json;
using HolisticWare.Ph4ct3x.Sports.Judo.InternationalJudoFederation.Internal;
namespace HolisticWare.Ph4ct3x.Sports.Judo.InternationalJudoFederation.Internal
{
public class SearchAllResult
{
[JsonProperty("module")]
public Module... | C# | source/business-domain-logic/Sports/HolisticWare.Ph4ct3x.Sports.Judo/InternationalJudoFederation/Internal/SearchAllResult.cs | moljac/Ph4ct3x | mit | 4,090 | 130 | codeparrot/github-code |
0fadc36098beb1a3fe4d0f4533fd92be3e97eb408ab9d6be4bcc3722bc3dc0c4 | // 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 org
import (
"strings"
"github.com/gogits/gogs/models"
"github.com/gogits/gogs/modules/auth"
"github.com/gogits/gogs/modules/base"
"github.com/... | GO | routers/org/setting.go | chriswatt/gogs | mit | 4,698 | 164 | codeparrot/github-code |
307536c274d684d33eb45fc9304ed3a96c3d3089e1c28ed474f4a430d7c44369 | //-----------------------------------------------------------------------
// <copyright file="Reserve.cs" company="ShareKnowledge">
// Copyright (c) ShareKnowledge. All rights reserved.
// </copyright>
// <author>Alejandro Perdomo</author>
//-----------------------------------------------------------------------
... | C# | csharp/Testing.SingletonPattern/Testing.SingletonPattern/Entity/Reserve.cs | Kathooloo/DesignPatternForTesters | mit | 809 | 35 | codeparrot/github-code |
87c8785050e001d57f4627e18122a558f9c812ffecc8a55a207746e6b889e82f | /**
* Example
* @version 0.0.1
*/
var MetaReponse = require('./MetaResponse');
var MetaData = require('./MetaData');
var MetaError = require('./MetaError');
var data1 = new MetaData();
var mr = new MetaReponse();
data1.setId(3);
data1.setType('recipe');
data1.addAttribute('title', 'Risotto al funghi');
dat... | JavaScript | example.js | AlwinCorp/jsonapi-response-builder | mit | 952 | 37 | codeparrot/github-code |
5373c7a02c0cb0965a69daf228bd50841eb46921802fa5ab71cb1c1700a47bb4 | <?php
// library for using escaped sql
class DB {
protected static $db;
static function getDB() {
return self::$db;
}
// choose database
static function init($databaseName) {
//insert MySQL server, user, password
self/* or DB */::$db = mysqli_connect("yourServer", "yourUs... | PHP | libdb.php | KiraThobas/guesthouse | mit | 1,892 | 66 | codeparrot/github-code |
22e1a770fbc3aa087058e32a731377371ba2b9613b564e180bd9f5a9e0b111be | import { Class as Model } from 'meteor/jagi:astronomy';
import * as Errors from './errors.js';
export function init(config) {
config.collection = new Mongo.Collection(config.collectionName);
config.model = Model.create({
name: config.modelName,
collection: config.collection,
fields: co... | JavaScript | imports/_common/meteor-methods.js | jaumesola/invoices-mvp | mit | 1,209 | 50 | codeparrot/github-code |
53741732a057a35cabdf29c79fe959595801cee434d4297cd19081e8d3e918a0 | /*
UrchinTSS
Copyright (c) Microsoft Corporation
All rights reserved.
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 right... | C++ | Middlewares/Urchin/Lib/Startup.cpp | LordOfDorks/RazorClamDICE | mit | 3,481 | 120 | codeparrot/github-code |
1bb8a7d7e3e27d74aaea44c0a32f6b4391a58c7e007c1088b630b636ec4f4f4f | /*******************************************************************************
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html.
*
* This f... | Java | com.ibm.wala.core/src/com/ibm/wala/demandpa/alg/IntraProcFilter.java | nithinvnath/PAVProject | mit | 3,985 | 114 | codeparrot/github-code |
eb6ea82c55504b68a4e8e1db83f353a776745a459552c23a18b45227c626640a | <?php
@ini_set("display_errors","1");
@ini_set("display_startup_errors","1");
require_once("include/dbcommon.php");
$table = postvalue("table");
if (!checkTableName($table))
{
exit(0);
}
require_once("include/".$table."_variables.php");
if((!isLogged() || !CheckSecurity(@$_SESSION["_".$strTableName."_OwnerID"],"Se... | PHP | Events1/output/rte.php | tony19760619/PHPRunnerProjects | mit | 2,160 | 83 | codeparrot/github-code |
10e84fc0f06e25718dd3c290399eb21ba37618ee6506cf5df93c8fdc5e6b1aa1 | /*
Algorithm for Influence Estimation and Maximization
Copyright (c) Microsoft Corporation
All rights reserved.
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 re... | C | src/MetisGraphBuilder.h | Luftschlange/ms-skim | mit | 8,016 | 235 | codeparrot/github-code |
fcb53f8326f957262f0278b63a8e5b6ee770504b60102539324ab67d9e9f5cf6 |
//
// This source file is part of appleseed.
// Visit http://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2010-2013 Francois Beaune, Jupiter Jazz Limited
// Copyright (c) 2014-2016 Francois Beaune, The appleseedhq Organization
//
... | C | src/appleseed/foundation/utility/commandlineparser/flagoptionhandler.h | docwhite/appleseed | mit | 3,470 | 111 | codeparrot/github-code |
2222f6cd4a66b4828e32003ec1802c6a997058c0a429c07c6a982da3b1e19bc6 | #include "stdafx.h"
#include "Help.h"
namespace LiteCppDB_Console_Commands
{
DataAccess Help::getAccess() noexcept
{
return DataAccess::None;
}
bool Help::IsCommand(LiteCppDB::StringScanner& s) noexcept
{
return s.Scan("help[[:s:]]*").length() > 0;
}
void Help::Execute(LiteCppDB::LiteEngine engine, LiteCp... | C++ | LiteCppDB/LiteCppDB.Console/Help.cpp | pnadan/LiteCppDB | mit | 6,284 | 109 | codeparrot/github-code |
ce81d69226893dd03f0bc5991a8d87d5e6c78500c1c0f39dfc17b3afc37f47b8 | #if UNIT_TEST_PROG == true
#include "tests/unit_tests.hpp"
#endif
#include <utility>
#include "common/global/program_data.hpp"
#include "menus/budget_menu.hpp"
namespace
{
global::program_data load_program_data();
int start_prog();
/**
* @brief Returns a global::program_data that is initi... | C++ | source/main.cpp | BeenEncoded/Budget_Management_Program | mit | 1,183 | 50 | codeparrot/github-code |
137e63427a855a88ed2b5e62c924c6c704f028eaac216a82eaa6217725c2dd75 | <?php
namespace EPFL\Menus\CLI;
if (! defined( 'ABSPATH' )) {
die( 'Access denied.' );
}
use \WP_CLI;
use \WP_CLI_Command;
require_once(dirname(__DIR__) . '/lib/i18n.php');
use function EPFL\I18N\___;
require_once(__DIR__ . '/epfl-menus.php');
use \EPFL\Menus\ExternalMenuItem;
class EPFLMenusCLICommand extend... | PHP | data/wp/wp-content/plugins/epfl/menus/wpcli.php | epfl-idevelop/jahia2wp | mit | 2,267 | 71 | codeparrot/github-code |
68fa3c03ac7dceb230c68194474f01bb550a62d84b5aa7ab74a481180de12667 | package compilerapi
import (
"encoding/json"
"fmt"
"io/ioutil"
"log"
"net/http"
"net/url"
"strings"
)
const (
GoogleEndpointUrl = "http://closure-compiler.appspot.com/compile"
)
// See https://developers.google.com/closure/compiler/docs/api-ref for details about the options
type Client struct {
// Possible... | GO | client.go | ant0ine/go-closure-compilerapi | mit | 3,163 | 140 | codeparrot/github-code |
0be0376c310b866944e4b99286b731c85ec907ade4034adcd7c76a6cf81764f5 | interface ITableListBindings {
addButton: any;
config: any;
data: any;
extra: any;
filters: any;
onAction: Function;
onSort: Function;
openFiltersPanel: Function;
rowClickable: boolean;
sort: any;
title: string;
}
interface ITableListController extends ITableListBindings {
isFunction(field: any... | TypeScript | src/components/table-list/table-list.controller.ts | eliagentili/entheos-angular-utilities | mit | 1,779 | 97 | codeparrot/github-code |
ea7901b4bb63f1e93775b38312487001d0b9df4b0ebb600bf5e56f05e683c8db | '''
Created on Jun 16, 2014
@author: lwoydziak
'''
import pexpect
import sys
from dynamic_machine.cli_commands import assertResultNotEquals, Command
class SshCli(object):
LOGGED_IN = 0
def __init__(self, host, loginUser, debug = False, trace = False, log=None, port=22, pexpectObject=None):
se... | Python | dynamic_machine/cli_ssh.py | Pipe-s/dynamic_machine | mit | 5,503 | 160 | codeparrot/github-code |
1a5a927ad75c8faccd0413f7e044f1eff618d57853325d3511269ffa84d077a7 | package com.revolut.sinap.payment;
import java.util.Objects;
import java.util.UUID;
public class Payment implements PaymentServiceOperation {
private final UUID transactionId;
private long sourceAccountId;
private Currency sourceCurrency;
/**
* minor units
*/
private long sourceAmount;
... | Java | sinap-payment/src/main/java/com/revolut/sinap/payment/Payment.java | seregamorph/revolut | mit | 2,839 | 119 | codeparrot/github-code |
1ac44001879f1377cc9e94b752373fff2ca7602f7ba0a1364e3c63af3d90c2b5 | // Operational amplifier
extern struct {
// OPAMP1 control register
struct {
unsigned int OPAMP1_EN: 1; // OPAMP1 enable
unsigned int FORCE_VP: 1; // FORCE_VP
unsigned int VP_SEL: 2; // OPAMP1 Non inverting input selection
unsigned int : 1; // Reserved
unsigned int VM_SEL: 2; // OPAMP1 i... | C | SVD_Inc/OPAMP.h | elmot/open-oscilloscope-stm32f3 | mit | 4,236 | 85 | codeparrot/github-code |
d4b77ef59850cd406975943dd42ab8972a890a495218d44911bcb70ddc515373 | (function($){
$.applyBulkSelectTable = function(obj, settings) {
var lastClickedElement = null,
lastClickedChecked = false,
lastClickedIndex = null;
var applyClass = function(obj, className, checked) {
if(checked)
obj.addClass(className);
else
obj.removeClass(className);
};
obj.... | JavaScript | src/bulkselect-table.js | goonjs/bulkselect-table | mit | 2,394 | 85 | codeparrot/github-code |
93152a2eb9781648d435852071233e56c2d1b1d80b8880863c88d1dc732ac8f2 | using Asteroids.Model;
using Asteroids.Utils;
using System;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Windows;
using Xamarin.Forms;
namespace Asteroids.ViewModel
{
public class AsteroidsViewModel : INotifyPropertyChanged
{
#r... | C# | Asteroids/ColorGrid/ColorGrid/ViewModel/AsteroidsViewModel.cs | balintsoos/EVA2-bead3 | mit | 5,165 | 193 | codeparrot/github-code |
49966a1a34f6bd9ddeb5927407017761e70e156f9a2b66f242bf6110b9f500f5 | #include "DecisionTreeLearner.h"
#include "RowListUtil.h"
#include <stdexcept>
#include <vector>
#include <sstream>
using namespace std;
using namespace ml;
typedef vector<DecisionTree*>::iterator DTIterator;
typedef vector<DecisionTree*>::const_iterator DTCIterator;
typedef vector<DecisionTree*>::reverse_iterator DT... | C++ | src/DecisionTree/DecisionTreeLearner.cpp | djhaskin987/ml | mit | 2,495 | 102 | codeparrot/github-code |
e1adaaeea880109b89aa493d553c08f89ce5fb235f1cfc881da2acd4a8134b6a | <?php
if ( ! class_exists( 'WP_Customize_Control' ) )
return NULL;
/**
* Customize Control for Heading
*/
class WEN_Customize_Heading_Control extends WP_Customize_Control {
public $type = 'heading';
public function render_content() {
?>
<h3 class="wen-customize-heading"><?php echo esc_html( $thi... | PHP | www/wordpress-default/wp-content/themes/wen-associate/wen-customizer/controls.php | tu-software-studio/VVV | mit | 3,202 | 132 | codeparrot/github-code |
700c723b10394d326a41af17b5f0ad9702112921ae97fc2d164a350f64a4ef36 | package controller.tasks;
import static controller.NAMControllerCompilerMain.LOGGER;
import java.io.File;
import java.io.FileFilter;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.Queue;
import java.util.concurrent.ExecutionException;
import javax.swing.SwingWorker;
import controller.Compile... | Java | src/controller/tasks/CollectRULsTask.java | memo33/NAMControllerCompiler | mit | 3,307 | 113 | codeparrot/github-code |
ee39f633c9b57971e0d0a076dae3d7507c3185afa917116871556c9d32d51964 | package seedu.task.commons.util;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import javafx.stage.FileChooser;
import javafx.stage.FileChooser.ExtensionFilter;
import javafx.stage.Stage;
/**
* Writes and reads files
*/
public class FileUtil {
private static final String CHARSET... | Java | src/main/java/seedu/task/commons/util/FileUtil.java | CS2103JAN2017-F11-B3/main | mit | 4,193 | 134 | codeparrot/github-code |
b4bf6ba6bf7fb46727c2a6ddb777e6e28411ed35dfa0fdbe2339bf2085c9e15b | #include "actiongroup.h"
#include "taskheader_p.h"
#include "taskgroup_p.h"
#include "actionlabel.h"
#include "actionpanelscheme.h"
#include <QtGui/QPainter>
namespace QSint
{
ActionGroup::ActionGroup(QWidget *parent)
: QWidget(parent)
{
myHeader = new TaskHeader(QPixmap(), "", false, this);
myHeader->se... | C++ | QSint/src/Core/actionpanel/actiongroup.cpp | ansleliu/GWMS-German-Word-Memory-Software | mit | 5,476 | 251 | codeparrot/github-code |
2326d6409b8dcb637c702b5a53fcbaf52b268db6e40658d9235e03259f09d1a6 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# File: test.py
#
# Copyright 2018 Costas Tyfoxylos
#
# 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 li... | Python | _CI/scripts/test.py | costastf/python_library_cookiecutter | mit | 3,282 | 86 | codeparrot/github-code |
12c172cc8fc354f3207fec79023b517de29f56d42384e2507abd034d836da251 | import {assert} from 'chai'
import {toConsole} from '../src/destinations'
import {Message} from '../src/message'
import {addDestination} from '../src/output'
import {assertContainsFields} from '../src/testing'
describe('toConsole', function() {
/** @test {toConsole} */
it('performs a noop if no suitable meth... | JavaScript | test/destinations.js | jonathanj/eliot.js | mit | 1,260 | 43 | codeparrot/github-code |
fe3c9fe840121fd661e4a8e6d0f0f14e503262c2a26a3de0fe0858c07677ca8c | /*
* Copyright (C) 2014 United States Government as represented by the Administrator of the
* National Aeronautics and Space Administration. All Rights Reserved.
*/
/**
* @exports BMNGRestLayer
*/
define([
'../error/ArgumentError',
'../layer/Layer',
'../util/Logger',
'../... | JavaScript | src/layer/BMNGRestLayer.js | NASAWorldWindResearch/AgroSphere | mit | 9,792 | 210 | codeparrot/github-code |
c708457c287e0d13e73ebd210f463f52c26b226f62596c976d68426b33a3f9bb | console.log('Hello!');
var thermostat = new Thermostat();
var updateTemperature = function() {
$('#temperature_display').text(thermostat.temperature);
$('#temperature_display').css('color', thermostat.colour);
};
$(document).ready(function() {
updateTemperature();
$('#increase-button').on('click', functio... | JavaScript | src/application.js | sarahkristinepedersen/Thermostat | mit | 1,565 | 65 | codeparrot/github-code |
806f1fb4727a6d6cd6837200ea34da2f656d2ed00ae67fc4e43f03400e4b25b2 | package pieces;
import java.util.ArrayList;
import chess.ChessboardCell;
/**
* This is the Bishop Class.
* The Move Function defines the basic rules for movement of Bishop on a chess board
*
*
*/
public class Bishop extends Piece{
//Constructor
public Bishop(String i,String p,int c)
{
setId(i);
setPa... | Java | src/pieces/Bishop.java | RafidSaad/CI_And_Refactoring | mit | 2,069 | 96 | codeparrot/github-code |
f62d903d96974e798882a02229840d63f7deaf51640835972147aefa77fa550d | package uristqwerty.CraftGuide.api;
import java.util.List;
/**
* When a recipe is rendered, the ItemSlots provided to the template are
* used to determine the layout of the recipe's items.
*
* @deprecated API re-organization. Use the copy in uristqwerty.craftguide.api.slotTypes
* instead, if possible. This copy... | Java | src/main/java/uristqwerty/CraftGuide/api/ItemSlot.java | Uristqwerty/CraftGuide | mit | 4,518 | 159 | codeparrot/github-code |
91068edc2b58722fee8d8d9261dfa56fce6134b52f9c02b2291f1fd901242fb1 | <?php
class acf_field_ETAC_has_capability extends acf_field {
/*
* __construct
*
* This function will setup the field type data
*
* @type function
* @date 5/03/2014
* @since 5.0.0
*
* @param n/a
* @return n/a
*/
function __construct() {
/*
* name (string) Single word, no spaces. Under... | PHP | acf-ETAC_has_capability-v5.php | jjrohrer/Advanced-Custom-Fields-Has-Capability | mit | 10,987 | 540 | codeparrot/github-code |
b8403f901886d7de4825f562e7a4147ae2ddb9d821c820b4f539b89019a8d038 | package ch.x01.fuzzy.core;
import ch.x01.fuzzy.parser.SymbolTable;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Objects;
/**
* This class implements the concept of a linguistic variable. Linguistic variables take... | Java | src/main/java/ch/x01/fuzzy/core/LinguisticVariable.java | ch-x01/fuzzy | mit | 5,647 | 178 | codeparrot/github-code |
4d088eda298a912137d5c452a0bfa4a51b99a0aafac9ec8fe91c12caed1bd64d | var Observer = require('../../../../src/observer')
var config = require('../../../../src/config')
var _ = require('../../../../src/util')
describe('Observer', function () {
it('create on non-observables', function () {
// skip primitive value
var ob = Observer.create(1)
expect(ob).toBeUndefined()
//... | JavaScript | test/unit/specs/observer/observer_spec.js | coopsource/vue | mit | 5,426 | 196 | codeparrot/github-code |
99340320565f6b4d3c9f076f4a5d151a694867848b1e3399b86f9c3aaba72b85 | using System;
using System.Collections.Generic;
using System.Linq;
using Foundation;
using UIKit;
namespace XF_Map.iOS
{
// The UIApplicationDelegate for the application. This class is responsible for launching the
// User Interface of the application, as well as listening (and optionally responding) to
... | C# | XF_Map/XF_Map/XF_Map.iOS/AppDelegate.cs | ytabuchi/Study | mit | 1,097 | 32 | codeparrot/github-code |
7e47fb1d639c2a06589683af737b8d1287d19d71f0f98aca5abb8989fb4a7950 | #include "qm.h"
#include "matrix.h"
#include "eq.h"
#include "2el.h"
#include "tools.h"
#include "gradient.h"
#include "vec3.h"
#define EPS 1e-15
static void f_eq30_mp_grad(int ma, int mv, int la, int lv, int qa, int qk, double * g, double ra[3], double rk[3], qmdata * qmd){
double z[3];
r3diff(z, ra, rk);
doub... | C | source/qm/E2_grad.c | briling/qm | mit | 10,021 | 372 | codeparrot/github-code |
2d3f720c9693ec08832900898fdfa8e3438fafea441d9efab43e85a1cd820e7d |
;(function(){
"use strict";
const module = window.load = {
name: "xhr"
};
const xhr = module.exports = (type, url, cb, opts) => {
const xhr = new XMLHttpRequest();
if (opts) Object.keys(opts).map(key => xhr[key] = opts[key]);
xhr.open(type, url);
xhr.onreadystatechange = () => {
if (xhr.readyState... | JavaScript | engine/xhr.js | GottZ/game-engine | mit | 605 | 31 | codeparrot/github-code |
84715019cbc3b47661ff2a34c04c664c1f6a2a6bae505f8d2dd7cea9747b9b66 | package com.lamepancake.chitchat.packet;
import java.nio.ByteBuffer;
import java.nio.charset.StandardCharsets;
import java.util.Objects;
/**
* Contains a message to be sent to other users in the chat.
*
* Specifies the chat to which the message is to be sent and the user sending
* the message.
*
* @author sh... | Java | src/com/lamepancake/chitchat/packet/MessagePacket.java | funIntentions/chitchat | mit | 3,310 | 131 | codeparrot/github-code |
ccb1da8f4540ce9d3f337904fb1779035fe7a91d99aa548a812d050b1627aa45 | const merge = require('webpack-merge')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const base = require('./webpack.config.base')
const pkg = require('../app/package.json')
module.exports = merge(base, {
entry: {
renderer: ['./app/rende... | JavaScript | tasks/webpack.config.renderer.js | zlsoftdq/Notebook | mit | 2,745 | 86 | codeparrot/github-code |
a9083eb875f973becb30a42eaab8a447677ef4e72d0579b6606f783af69bda2e | <?php if ( !defined("BASE_PATH")) exit( "No direct script access allowed" );
function argument($argv){
$_ARG = array();
foreach ($argv as $arg) {
if ( preg_match('/--([^=]+)=(.*)/',$arg,$reg)) {
$_ARG[$reg[1]] = $reg[2];
}else if(preg_match('/-([a-zA-Z0-9])/',$arg,$reg)) {
... | PHP | system/helper/cli.php | pokoot/Rubik | mit | 3,356 | 186 | codeparrot/github-code |
561709b37ddb64fb85371dd23fe03deee5064f8374e26a7296508a0f5f070c0b | #include "../../vm/vm.h"
#include <fstream>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[]) {
unsigned char banner[] = {
0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
0x20, 0x20, 0x20, 0x5f, 0x20, 0x20, 0x20, 0x5f, 0x20, ... | C++ | polictf/client/pasticciotto_client.cpp | peperunas/pasticciotto | mit | 8,424 | 115 | codeparrot/github-code |
725b6d8d1fcc51bc00dbe1dea509b4900a36478b383a8741e54dbc53052bfd20 | using System;
using System.Threading;
using System.Threading.Tasks;
using RunRabbitRun.Net.Attributes;
using RunRabbitRun.Net.Sample.Models;
using RabbitMQ.Client;
using Newtonsoft.Json;
namespace RunRabbitRun.Net.Sample
{
public class UserModule : Module
{
public UserModule()
{
}
... | C# | src/RunRabbitRun.Net.Sample/Api/UserModule.cs | vadimline/RunRabbitRun.Net | mit | 1,586 | 53 | codeparrot/github-code |
53acd44c01f871ff631b4d100cf70cea47684a76d6b64c14f2dbd72003053fe9 | var https = require('https');
var xml2js = require('xml2js');
var groups = {};
var host, port , auth, origin;
groups.getUserGroups = function(req, res) {
var options = {
rejectUnauthorized: false,
hostname: host,
port: port,
path: "/sap/opu/odata/UI2/PAGE_BUILDER_PERS/PageSets('%2... | JavaScript | services/group.js | micellius/sap-one-experience | mit | 9,934 | 223 | codeparrot/github-code |
a7c646a063baee9bc44cbbd3a5c8b3df717822544e88d3931938775229a1b66f | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Reflection;
using System.Text;
using FLS.Data.WebApi;
using FLS.Data.WebApi.Accounting;
namespace FLS.Server.Data.DbEntities
{
public part... | C# | src/FLS.Server.Data/DbEntities/Delivery.cs | flightlog/flsserver | mit | 4,240 | 144 | codeparrot/github-code |
68ea5c53cc5a82dec9acdfc31c260d84acde7a0a4c7f5d0416413c186eefc269 | <?php
$show_breadcrumbs = true;
require_once 'functions.php';
$section = 4;
$page = 6;
$keywords = $db->query("SELECT COUNT(*) AS total, keywords.keyword
FROM keywords_papers JOIN keywords ON keywords_papers.keyword = keywords.id
GROUP BY keywords.keyword
ORDER BY COUNT(*) DESC");
$keywords_alfabet = $db->query("SE... | PHP | publications.search.php | paulhoekman/mfa-tools | mit | 9,923 | 326 | codeparrot/github-code |
71a639b653ac6385b62f1802f5855e010b2b99eff55c5eecbcb40afb2c8e8e4f | //
// graphene_functions.hpp
// graphenePFC
//
// Created by Rachel Zucker on 8/15/16.
// Copyright © 2016 Rachel Zucker. All rights reserved.
//
#ifndef graphene_functions_hpp
#define graphene_functions_hpp
#include "matrix_types.hpp"
// an inital condition that produces an AC circle inside an AB matrix
void In... | C++ | graphenePFC/graphene_functions.hpp | rzucker/graphenePFC | mit | 2,087 | 46 | codeparrot/github-code |
8b41e999d79135855d33d0c5b8a13dcb952448c9eb936d2a0eb040cfa32916d2 | 'use strict';
const fs = require('fs');
const path = require('path');
const Router = require('koa-router');
const apiRouter = require('./api');
const ask = require('../lib/ask');
const config = require('config');
const indexFilePath = path.resolve(__dirname, '..', 'views', 'index.html');
const router = new ... | JavaScript | routes/index.js | ipelovski/users-api | mit | 1,246 | 40 | codeparrot/github-code |
91992558ca62ccf2d2f67b38e62d6d4bfb8db64bbbe75b1372248390d7cd78ad | #!/usr/bin/env python3
"""Combine logs from multiple bitcore nodes as well as the test_framework log.
This streams the combined log output to stdout. Use combine_logs.py > outputfile
to write to an outputfile."""
import argparse
from collections import defaultdict, namedtuple
import heapq
import itertools
import os
i... | Python | test/functional/combine_logs.py | LIMXTEC/BitCore | mit | 4,611 | 115 | codeparrot/github-code |
488007497bb6a1c528a5d34171c7cbaca6f1e422c4845eca38dfe9f8528784a4 |
// Shader Code
#include <windows.h>
#include <string>
#include <fstream>
#include <d3d9.h>
#include <d3dx9.h>
#include "../../math/Math.h"
#include "../../base/base.h"
#include "../../etc/Utility.h"
#include <vector>
#include <map>
#include <sstream>
#pragma comment( lib, "d3d9.lib" )
#pragma comment( lib, "d3dx9.lib... | C++ | Shader Study/ShaderPhongTexture/ShaderPhongTexture/ShaderPhongTexture.cpp | sgajaejung/3D-Lecture | mit | 8,712 | 333 | codeparrot/github-code |
d49fc8adb25373b3cb2e36a99d6ddba447c8d5817028dd32920bd47c2b104f30 | Server: Netscape-Communications/1.1
Date: Wednesday, 20-Nov-96 23:24:28 GMT
Last-modified: Monday, 24-Jun-96 14:59:21 GMT
Content-length: 5156
Content-type: text/html
<HTML>
<HEAD>
<TITLE>CIS 510 Handout 1</TITLE>
<BODY><! BODY BGCOLOR = "#000000" TEXT = "#FFFFFF">
<BODY bgcolor="#FFEFDB"> <! AntiqueWhite1>
<H1... | HTML | webkb/course/misc/http:^^www.cis.upenn.edu^~jean^cis510.html | ML-SWAT/Web2KnowledgeBase | mit | 5,366 | 144 | codeparrot/github-code |
3028a224d5246a61e137a09946d69fc6b63b53bb3184e5b60bdf1dccd7f65707 | #!/usr/bin/perl -w
use strict;
#### DEBUG
my $DEBUG = 0;
#$DEBUG = 1;
=head2
NAME dumpDb
PURPOSE
DUMP ALL THE TABLES IN A DATABASE TO .TSV FILES
INPUT
1. DATABASE NAME
2. LOCATION TO PRINT .TSV FILES
OUTPUT
1. ONE .TSV FILE FOR EACH TABLE IN DATABASE
USAGE
./dumpDb.... | Perl | bin/scripts/dumpDb.pl | agua/aguadev | mit | 3,457 | 151 | codeparrot/github-code |
82e826074a3930c8c7f35449cdbec32e176533e4261ae125ea558a426b73437c | <?php
namespace Protobuf;
use InvalidArgumentException;
use ArrayObject;
/**
* Protobuf Stream collection
*
* @author Fabio B. Silva <fabio.bat.silva@gmail.com>
*/
class StreamCollection extends ArrayObject implements Collection
{
/**
* @param array<\Protobuf\Stream> $values
*/
public function ... | PHP | src/StreamCollection.php | protobuf-php/protobuf | mit | 1,065 | 49 | codeparrot/github-code |
8bc453464d5c57e4ce4d960b321a6bf52ed569854129d33e7977f27f7eee8099 | package com.quizmaster.components;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
public class Question extends Component<Answer> {
private static final long serialVersionUID = 1L;
//The answers that are going to be displayed
priva... | Java | src/com/quizmaster/components/Question.java | dumrelu/QuizMaster | mit | 4,386 | 156 | codeparrot/github-code |
e08af367a92efc56e3c6557a516cfd337678216dab13b3150bb1b78f24c67f5a | // Copyright (c) 2011-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "splashscreen.h"
#include "clientversion.h"
#include "util.h"
#include <QPainter>
#undef loop /* ugh, remove this wh... | C++ | src/qt/splashscreen.cpp | mbitbooks/Mbitbooks | mit | 2,048 | 57 | codeparrot/github-code |
3a28b9dec768db06c45bfbab43ed26fb595bc334561d349ea1306f943ec71c02 | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | src/vs/editor/standalone/browser/accessibilityHelp/accessibilityHelp.ts | microsoft/vscode | mit | 12,898 | 389 | codeparrot/github-code |
1618a54a9eefb50f584019b52954f67c6de89517667a969e466bdda2d2cfc925 | #include "LightComponent.h"
#include "../../utils/d3d.h"
#include "../GameObject.h"
#include "Transform.h"
namespace thomas
{
namespace object
{
namespace component
{
LightComponent::LightComponent()
{
}
LightComponent::~LightComponent()
{
}
/**
DIRECTIONAL LIGHT
The light look do... | C++ | ThomasCore/src/thomas/object/component/LightComponent.cpp | Bojzen-I-Mitten/thomas | mit | 3,023 | 130 | codeparrot/github-code |
1bdffd454ac6fa10736cb11948cda6b8802122dd74887a62bad86e7f0df31315 | class Rubygem < ActiveRecord::Base
has_many :owners, :through => :ownerships, :source => :user
has_many :ownerships, :dependent => :destroy
has_many :subscribers, :through => :subscriptions, :source => :user
has_many :subscriptions, :dependent => :destroy
has_many :versions, :dependent => :destroy
has_many... | Ruby | app/models/rubygem.rb | alloy/gemcutter | mit | 5,698 | 211 | codeparrot/github-code |
a7e2d29378bd96ae4a32d51a5a0cfd67473eb2ff2432e29ba7a7ba90bb3ea3cb | package com.ul.deliveryclient;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import javax.jms.Connection;
import javax.jms.ConnectionFactory;
import javax.jms.Destination;
import javax.jms.MessageConsumer;
import javax.jms.MessageProducer;
import javax.jms.ObjectMessage;
import javax.jms... | Java | DeliveryClient/src/main/java/com/ul/deliveryclient/Main.java | GLAProject/Auction | mit | 5,219 | 129 | codeparrot/github-code |
4413465d0f35163751bdc774d45c789d8bee91f8d4d7c64a9082764a2b20fdf3 | // Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build darwin dragonfly freebsd netbsd openbsd rumprun
package syscall
import (
"runtime"
"unsafe"
)
var (
freebsdConfArch string // "machine $ar... | GO | 1.7/go/src/syscall/route_bsd.go | deferpanic/gorump | mit | 9,313 | 365 | codeparrot/github-code |
9c8d271adc62f71bad19696c9df65a7db1cdd538c35adf423227b3feca94256a | namespace myplayer
{
partial class PlayerForm
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源... | C# | myplayer/Form1.Designer.cs | wynfrith/myplayer | mit | 64,825 | 1,076 | codeparrot/github-code |
ec91597b8b5eea5293d761e31a763686c862423a17b57b84f621c00d41c5da95 | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
namespace DNK.PriceListImport.MetroClubLoader
{
public class DateRange
{
private DateTime? _start;
private DateTime? _end;
public DateTime? Start { get { return _start; } ... | C# | DNK.PriceListImport.MetroClubLoader/DateRange.cs | sdimons/Danko2015 | mit | 1,760 | 61 | codeparrot/github-code |
70076fc5bc2956064488680098cd954ebb12b355304f2742315082fc4b34bd99 | /*
* Copyright 2008-2011 Don Brown
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | Java | src/main/java/org/twdata/maven/mojoexecutor/MojoExecutor.java | lotaris/rox-commons-maven-plugin | mit | 9,298 | 325 | codeparrot/github-code |
7bb73b8ef0fe490783cc7bd667bb61d4e5a5df87dbf8f3f384f8c7d0d69b93f5 | class AlertList
def initialize(zipcode)
@response = HTTParty.get("http://api.wunderground.com/api/#{ENV["WUNDERGROUND_KEY"]}/alerts/q/#{zipcode}.json")
end
def all_alerts
@response["alerts"].map {|a| Alert.new(a)}
end
end
class Alert
def initialize(json)
@alert = json
end
def alert_type
... | Ruby | during/week4/2/alerts.rb | tiyd-rails-2016-01/tiyd-rails-2016-01.github.io | mit | 1,704 | 49 | codeparrot/github-code |
44c8a781a70c9a16886c809cc4578ec214ac00de7ee875d6bd2eac5967da6f11 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace ChoPGP4Win
{
public sealed class PGPDecryptFileOptions : INotifyPropertyChanged
{
private string inputFilePa... | C# | PGPDecryptFileOptions.cs | Cinchoo/ChoPGP4Win | mit | 2,427 | 86 | codeparrot/github-code |
fcd2903f351e75a770fd31dbe99ebcc891d63848506e1ead00939f498e96ead7 | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef CANNABISDARKCOIN_ALLOCATORS_H
#define CANNABISDARKCOIN_ALLOCATORS_H
#inclu... | C | src/allocators.h | cannabisdark/cannabisdarkcoin | mit | 8,555 | 258 | codeparrot/github-code |
fe91eb16a46b8b7ee1ece055dc325542e1af1d6d161b7754f5b840cc81c5e911 | 'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
errorHandler = require('./errors'),
Book = mongoose.model('Book'),
_ = require('lodash');
// ,
// googleapi = require('node-google-api')('AIzaSyAffzxPYpgZ14gieEE04_u4U-5Y26UQ8_0');
// exports.gbooks = function(req, res) {
// goog... | JavaScript | app/controllers/books.server.controller.js | thcmc/th82 | mit | 2,643 | 137 | codeparrot/github-code |
55f39b81196f9ed39725bed04d64f63373797146e67c59de9cbeafdf4e2b5113 | #include "kk_dictionary.h"
namespace penciloid
{
namespace kakuro
{
Dictionary::Dictionary() : data_(nullptr)
{
}
Dictionary::~Dictionary()
{
if (data_ != nullptr) delete[] data_;
}
void Dictionary::CreateDefault()
{
Release();
data_ = new unsigned int[kDictionarySize];
for (int n_cells = 0; n... | C++ | src/kakuro/kk_dictionary.cpp | semiexp/penciloid2 | mit | 1,158 | 54 | codeparrot/github-code |
01c71893fa6850e05b0bbd8d4ab2465a13f660ac69fdefabfcbfa5c391bb33ca | 'use babel';
import moment from 'moment';
import openUrl from 'opn';
const addError = ({ project, branch, build, endDate, commit }) => {
const relativeTime = moment(endDate).fromNow();
atom.notifications.addError(`Build #${build.id} has failed`, {
buttons: [
{
onDidClick() {
openUrl(`... | JavaScript | lib/codeship-notifications.js | cbovis/atom-codeship | mit | 915 | 36 | codeparrot/github-code |
6026f7720d0ef9a2500ccefc93043cd6cddea549e7ba583a0890b416f5b4052f | <!DOCTYPE html><html><head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="description">
<meta name="keywords" content="static content generator,static site generator,static site,HTML,web development,.NET,C#,Razor,Markdown,YAML">
<meta n... | HTML | docs/api/OpenTl.Schema/TSecureValueError/00302CDC.html | OpenTl/OpenTl.Schema | mit | 10,981 | 280 | codeparrot/github-code |
006764372e2077933f5ddbd24ccef0502f825c4ee6d881b850d8f28a814e535f | #!/usr/local/bin/perl -w
=head1 NAME
load_clones_from_fpc.pl - Populates a core Ensembl DB with FPC clone data
=head1 SYNOPSIS
perl load_clones_from_fpc.pl [options] fpc_file
Options:
-h --help
-m --man
-r --registry_file
-s --species
-f --fasta_file
-c --cb_to_bp
-n --no_insert
=head1 OPTIONS
Reads the B... | Perl | maize/load-scripts/load_clones_from_fpc.pl | warelab/gramene-ensembl | mit | 16,626 | 485 | codeparrot/github-code |
2ab1dbf4e29727cc69c07474afa6e9091426bed3730f982048f3b05d267cecaa | <!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
<title>hilary_mason_data 2009 knowledge graph</title>
</head>
<body>
<p><a title="hilary_mason_data" href="../hilary_mason_data_home.html">hilary_mason_data</a> <a title="hilary_mason_data-2009" href="#">hilary_mason_data-2009</a> knowledge-graph by maker-knowledge-mi... | HTML | blog-mining/hilary_mason_data/home/hilary_mason_data-2009_home.html | makerhacker/makerhacker.github.io | mit | 19,441 | 191 | codeparrot/github-code |
7b6ebfc7b61aa2033aaabed4c856982dae3c1747718ae55a80f0f06e38131513 | class ErrorFactory {
getError(errorName: string, status: number): any {
class NestedError extends Error {
errorMessages: any;
status: number;
constructor(msg: any) {
super(`${errorName}: ${msg.toString()}`);
if (!(msg instanceof String) &&... | TypeScript | generators/app/templates/src/routes/error/factory.ts | icepeng/generator-express-pgp-typescript | mit | 1,182 | 43 | codeparrot/github-code |
a951f3c863afb2f148e8aba86ce8e53658ed12fef4f56a07d524f917277f6b88 | /**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {IMinimatch, Minimatch} from 'minimatch';
/** Map that holds patterns and their corresponding Minimatch glob... | TypeScript | dev-infra/pullapprove/condition_evaluator.ts | matsko/angular | mit | 4,008 | 100 | codeparrot/github-code |
09112e17b910584ca88636ecae12789d22d162cf588cf66c7b70bb0ce3f33b39 | using System.Threading.Tasks;
using JetBrains.Annotations;
namespace System
{
public static class DelegateExtensions
{
public static async Task InvokeAsync([NotNull] this Action action)
{
if (action == null) throw new ArgumentNullException(nameof(action));
awa... | C# | Jasily.Core/DelegateExtensions.cs | Cologler/jasily.cologler | mit | 1,056 | 32 | codeparrot/github-code |
03954f1917b99b106fe47704cd0616d2391f7ff7a3c53befaf5f6b8e38777abc | // Copyright (c) 2011-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.
#include "askpassphrasedialog.h"
#include "ui_askpassphrasedialog.h"
#include "guiconstants.h"
#include "walletmodel.h"
#in... | C++ | src/qt/askpassphrasedialog.cpp | janko33bd/bitcoin | mit | 11,219 | 295 | codeparrot/github-code |
377734f1c25a01e23f5160faab74cfd4f74b623dc657e220f44298e4f5a7c066 | /*
Copyright (c) 2012, 2013 Kajetan Swierk <k0zmo@outlook.com>
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
... | C | include/clw/Image.h | k0zmo/clw | mit | 5,813 | 193 | codeparrot/github-code |
51aae82bee0b911f3900d2dfee8c451e5670137c61639589c9638147b93d55fa | <fieldset>
<legend class="
{{#if isLegendHidden}}
visuallyhidden
{{else}}
form-title heading-large
{{/if}}"
id="{{legendId}}">{{{legend}}}</legend>
{{#EL_ROW}}
{{#EL_2FA}}
<div class="two-fa">
<img src="{{@root.assetPa... | HTML | app/views/_partials/molecule_formgroup.html | visualunderground/kurad-styleguide | mit | 8,565 | 164 | codeparrot/github-code |
17d79352201efd8b1a15f8e47e87311823022d6131f04a2de2c174325de95f17 | import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NgModule } from '@angular/core';
import { HttpClientModule } from '@angular/common/http';
import { AngularFireModule } from 'angularfire2';
import { AngularFireDatabaseModu... | TypeScript | src/app/app.module.ts | thomas-crane/where-is-reddit | mit | 1,941 | 50 | codeparrot/github-code |
cbda112896e789eb0eac551f7d5c25ed9f26405b4f326243cc9a8411e0701869 | package WorldCup::Command::teams;
# ABSTRACT: Returns the teams in the World Cup.
use strict;
use warnings;
use WorldCup -command;
use JSON;
use LWP::UserAgent;
use File::Basename;
use Term::ANSIColor;
use List::Util qw(max);
sub opt_spec {
return (
[ "outfile|o=s", "A file to place a listing of the teams" ... | Perl | lib/WorldCup/Command/teams.pm | sestaton/WorldCupStats | mit | 3,201 | 146 | codeparrot/github-code |
56a7d686d904630e0690c4116d08b1e44f53408e973c245d825eae63f72dc440 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.ApplicationModel;
using Windows.ApplicationModel.Activation;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xam... | C# | rubbish/rubbishProducer/App.xaml.cs | lindexi/lindexi_gd | mit | 3,269 | 109 | codeparrot/github-code |
e311eb900028520b788d1b2d0e8978420763dcad39d0c3cf2dfcedc2cf73c6ef | require 'markdown_section_numbering/version'
class MarkdownSectionNumbering
class << self
def config(max_level)
@max_level = max_level
end
def convert(input)
@section_index = [-1] + [0] * max_level
input.lines.map do |line|
convert_line(line)
end.join("\n") + "\n"
end... | Ruby | lib/markdown_section_numbering.rb | xoyip/markdown_section_numbering | mit | 1,221 | 54 | codeparrot/github-code |
c158c1033a70449317070d749bb5e225d908a6f0ff3b670bc5d6303afbc7cf95 | import React from 'react';
import { FieldProps } from 'formik';
import { Text, BorderBox, FilterList } from '@primer/components';
import { iconThemes } from '@renderer/icons';
const IconPicker: React.FC<FieldProps> = ({ field, form }): JSX.Element => {
const currentIconTheme = iconThemes.find(
(iconTheme) => ic... | TypeScript | src/renderer/components/icon-picker.tsx | jamiestraw/streaker | mit | 2,516 | 91 | codeparrot/github-code |
c251ea461f89bb2af5c817d78f15860d3f30dbf523fba90b68076cd8daaa3d74 | <section class="usernameprofile">
<div class="widgets">
<p-growl [value]="msgs"></p-growl>
<div class="row">
<div class="col-md-10">
<ba-card title="USER PROFILE" baCardClass="with-scroll">
<form class="form-horizontal">
<div *ngFor="let fields of fieldLists">
<... | HTML | src/app/pages/users/components/myprofile/myprofile.html | AhmedAlmodrs/datacenter | mit | 12,936 | 159 | codeparrot/github-code |
0b0b474a37eae66c1768ad78d76435a4f1ee575674f57872590dd16cc7ea1cd6 | <?php
require_once __DIR__."/../note/note_core.php";
function nodeComplete_GetById( $ids ) {
$multi = is_array($ids);
if ( !$multi )
$ids = [$ids];
$nodes = node_GetById($ids);
if ( !$nodes )
return null;
$metas = nodeMeta_ParseByNode($ids);
$links = nodeLink_ParseByNode($ids);
$loves = nodeLove_GetByN... | PHP | src/shrub/src/node/node_complete.php | StormBurpee/ludumdare | mit | 4,514 | 189 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.