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 |
|---|---|---|---|---|---|---|---|---|
ef9f9f8f9881e217486e67a43c6ebd3ca4874c5b9a831869cc09c67e7207ba6e | #!/usr/bin/env python
"""
Re-write config file and optionally convert to python
"""
__revision__ = "$Id: writeCfg.py,v 1.1 2011/09/19 21:41:44 paus Exp $"
__version__ = "$Revision: 1.1 $"
import getopt
import imp
import os
import pickle
import sys
import xml.dom.minidom
from random import SystemRandom
from ProdCom... | Python | filefi/024/writeCfg.py | cpausmit/Kraken | mit | 6,916 | 224 | codeparrot/github-code |
e38d9345b7f690423672fc0b45657f9485a25de999a5aa4b19f16c65b962f0b9 | 'use strict';
import * as path from 'path';
import * as Promise from 'bluebird';
import {ITestSuite} from './ITestSuite';
import File from '../file/File';
import Timer from '../util/Timer';
import TscTest from '../tsc/TscTest';
import TestQueue from '../test/TestQueue';
import TestResult from '../test/TestResult';... | TypeScript | src/suite/TestSuiteBase.ts | DefinitelyTyped/definition-tester | mit | 2,067 | 81 | codeparrot/github-code |
52b231365735deb26f75d8065456f56ef8d871ccc2d8514e69c2035001977ff5 | // @flow
/* eslint-disable no-unused-vars, eqeqeq */
/**
* @module boldr-core/apollo/createApolloClient
*/
import { ApolloClient } from 'react-apollo';
import { createNetworkInterface } from './networkInterface';
import { createBatchingNetworkInterface } from './batchNetworkInterface';
export type ApolloClientConfi... | JavaScript | packages/core/src/shared/apollo/createApolloClient.js | boldr/boldr | mit | 2,126 | 88 | codeparrot/github-code |
d7338089fe335b2351b44ef4e5ffaf5798c86cadd0e5d6a4773d02fc3cad2c9d | // Copyright (c) 2012 The Bitcoin developers
// Copyright (c) 2012 Litecoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_VERSION_H
#define BITCOIN_VERSION_H
#include <string>
//
// client versi... | C | src/version.h | Meee32/net2 | mit | 1,667 | 57 | codeparrot/github-code |
d80cde640ffc8ae7950ccd0daf9681ef5c387a48aa39e9adf8751c3ecc419612 | /** @module utils/helpers */
import convert from './convert';
import CryptoHelpers from './CryptoHelpers';
import TransactionTypes from './TransactionTypes';
/**
* Check if wallet already present in an array
*
* @param {string} walletName - A wallet name
* @param {array} array - A wallets array
*
* @return {boo... | JavaScript | src/app/utils/helpers.js | AtrauraBlockchain/Landstead | mit | 9,612 | 369 | codeparrot/github-code |
99d54db05952e27ec55af31a4c5a1b00cdda63d6538ce98dde0962a072f0e7e5 | <?php
/**
* This file is part of Gitonomy.
*
* (c) Alexandre Salomé <alexandre.salome@gmail.com>
* (c) Julien DIDIER <genzo.wm@gmail.com>
*
* This source file is subject to the GPL license that is bundled
* with this source code in the file LICENSE.
*/
namespace Gitonomy\Bundle\CoreBundle\Git;
use Symfony\Co... | PHP | src/Gitonomy/Bundle/CoreBundle/Git/RepositoryPool.php | gitonomy/gitonomy | mit | 3,427 | 124 | codeparrot/github-code |
5dc9289f39def10f6e1c71aa35e811ae5e27e85d7f7da324968356bac3373ee6 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PowerArgs.Cli
{
public static class ChartLabelFormatters
{
public static Func<double, ConsoleString> SecondGranularityCompactTimestamp = (d) =>
{
var dateTime = new DateTime((long)d);
... | C# | PowerArgs/CLI/Controls/LineChart.cs | 3bit/PowerArgs | mit | 13,989 | 422 | codeparrot/github-code |
ec9ac41e2a6b1b34d97ac4aae03eca1984067869bd76bc4df52717f878430adf | 'use strict';
const DirectedGraphTracer = require('./directed_graph');
class UndirectedGraphTracer extends DirectedGraphTracer {
static getClassName() {
return 'UndirectedGraphTracer';
}
constructor(name) {
super(name);
if (this.isNew) initView(this);
}
setTreeData(G, root) {
return super... | JavaScript | js/module/tracer/undirected_graph.js | archie94/AlgorithmVisualizer | mit | 2,147 | 86 | codeparrot/github-code |
04605eb76d37f7c791c9c46d0e2d1f4da4dfe84e914bdfa1f4c25657169cdd70 | import { ComponentFixture, fakeAsync, TestBed, tick, waitForAsync
} from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { DebugElement } from '@angular/core';
import { Router } from '@angular/router';
import { addMatchers, newEvent } from '../../testing';
import { HeroService } from ... | TypeScript | aio/content/examples/testing/src/app/hero/hero-list.component.spec.ts | wKoza/angular | mit | 4,729 | 142 | codeparrot/github-code |
d4a9fbeda5f263b9322cef54b98e203ffb4f82de170a3fbe0515c3f2d8bec5ef | /*********************************************************************
* #### Twitter Post Fetcher v13.0 ####
* Coded by Jason Mayes 2015. A present to all the developers out there.
* www.jasonmayes.com
* Please keep this disclaimer with my code if you use it. Thanks. :-)
* Got feedback or questions, ask here:
* ... | JavaScript | js/twitterfetcher/js/twitterFetcher.js | dominiqueclarke/portfolio | mit | 12,143 | 354 | codeparrot/github-code |
f01514e578674840bd193fdbff67c48b4c0fea8d7ef0265001a73cbf90add49c |
<!DOCTYPE html>
<html>
<head>
<title>fromResult</title>
<link rel="stylesheet" href="prism.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="header">
<div class="doc-title"><a href="folktale.html"><span class="doc-title"><span class="product-name">Folktale</span><span c... | HTML | docs/api/v2.0.0/en/folktale.validation.fromresult.html | folktale/folktale | mit | 4,159 | 38 | codeparrot/github-code |
80ac3f0de3f913d74181cf8735a584511d16ca21df7d00e964bdda8677db3d29 | package model;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import commands.Command;
import commands.multiple_turtles.Tell;
/**
* interprets user input and contains state
* @author Kevin, Carlos
*/
public class Model implements TurtleCommands, TurtleQueries, Ma... | Java | src/model/Model.java | kjian279/slogo | mit | 5,727 | 274 | codeparrot/github-code |
49f7f53ad81358d744a303d70b931d04b869d8e6f11bfdef430b025fd6cf5007 | var _ = require('lodash'),
uuid = require('node-uuid'),
when = require('when'),
errors = require('../errorHandling'),
Showdown = require('showdown'),
ghostgfm = require('../../shared/lib/showdown/extensions/ghostgfm'),
converter = new Sho... | JavaScript | core/server/models/post.js | vlmhco/personal-blog | mit | 16,412 | 459 | codeparrot/github-code |
b214d6be319129c61872edd37834237a8c046357dfe4599d7925c23ef32b124a | 'use strict'
const {ipcRenderer, remote, webFrame} = require('electron')
const v8Util = process.atomBinding('v8_util')
const guestViewInternal = require('./guest-view-internal')
const webViewConstants = require('./web-view-constants')
const hasProp = {}.hasOwnProperty
// ID generator.
let nextId = 0
c... | JavaScript | electron/renderer/web-view/web-view.js | JOT85/JOTPOT-OS | mit | 15,933 | 452 | codeparrot/github-code |
9ef100563732d767bce56ae47523539cd6ee40057f2bc8b96e4272d5917fedd2 | using System;
using NBitcoin.BouncyCastle.Utilities;
namespace NBitcoin.BouncyCastle.Crypto.Modes.Gcm
{
public class BasicGcmExponentiator
: IGcmExponentiator
{
private byte[] x;
public void Init(byte[] x)
{
this.x = Arrays.Clone(x);
}
public void ExponentiateX(long pow, byte[] outp... | C# | NBitcoin.BouncyCastle/crypto/modes/gcm/BasicGcmExponentiator.cs | you21979/NBitcoin | mit | 714 | 41 | codeparrot/github-code |
f333ab4fd02061590cb4c72416b5834b60fc3baeec88bcb4b06792f2bdc509dd | # Copyright (C) 2010 Google Inc.
#
# 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 to in writ... | Python | src/googlecl/picasa/service.py | charany1/googlecl | mit | 14,137 | 376 | codeparrot/github-code |
39b515d0552074cf3e20883b00e83418bbe0b500560ea13e54910c213292bd80 | var shellService = require('./shellService');
var CommandStatus = require('../util/CommandStatus');
var FilebotCommandType = require('../util/FilebotCommandType');
var filebot = require('./filebotCommand/FilebotCommand');
var log = require('./logger');
var settingsService = require('./settingsService');
var _ = require... | JavaScript | services/filebotService.js | dfernandezm/commands-api | mit | 10,531 | 273 | codeparrot/github-code |
92c48026e468dcdf964bdb40e1838247706a4437a4eb6238eb1503692fe94c75 | class CensusRecordSearch
extend ActiveModel::Naming
include ActiveModel::Conversion
include ActiveModel::Validations
attr_accessor :page, :s, :f, :fs, :g, :user, :c, :d, :paged, :per, :entity_class
attr_writer :scoped
delegate :any?, :present?, :each, :first, :last,
:current_page, :total_pages,... | Ruby | app/models/census_record_search.rb | dfurber/mapwarper | mit | 3,769 | 149 | codeparrot/github-code |
e13eecd8735c7b3241654b8c5310faad136a47b3ead0c3f9c1b6437fb2f11f1e | /*
*
* ChartGanttSerie.h
*
* Written by Cédric Moonen (cedric_moonen@hotmail.com)
*
*
*
* This code may be used for any non-commercial and commercial purposes in a compiled form.
* The code may be redistributed as long as it remains unmodified and providing that the
* author name and this disclaimer remain i... | C | Modbus Poll/ChartCtrl/ChartGanttSerie.h | temcocontrols/T3000_Building_Automation_System | mit | 4,848 | 163 | codeparrot/github-code |
02a78abaa1a90ef36fda1bfa912f73ea3b4069ebba39f3d99383cbdf05b7867f | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Qt 4.8: m... | HTML | QtEsrc/qt-everywhere-opensource-src-4.8.5/doc/html/draganddrop-fridgemagnets-main-cpp.html | stephaneAG/PengPod700 | mit | 13,085 | 269 | codeparrot/github-code |
f7b593424c4972f56ac41f009eaa8cc4bf943793b7eaeac75f83c9a21b7042f0 | function Get-DbaAgentServer {
<#
.SYNOPSIS
Gets SQL Agent Server information for each instance(s) of SQL Server.
.DESCRIPTION
The Get-DbaAgentServer returns connected SMO object for SQL Agent Server information for each instance(s) of SQL Server.
.PARAMETER SqlInstance
The targ... | PowerShell | functions/Get-DbaAgentServer.ps1 | Splaxi/dbatools | mit | 3,807 | 75 | codeparrot/github-code |
f15eda1abd778333e0d3a64ffd217e2a429d24acecbd694a3736fbdf8af2e360 | /**CFile***********************************************************************
FileName [cuddInit.c]
PackageName [cudd]
Synopsis [Functions to initialize and shut down the DD manager.]
Description [External procedures included in this module:
<ul>
<li> Cudd_Init()
<li> Cudd_Quit()
</ul>
... | C | abc_with_bb_support/src/bdd/cudd/cuddInit.c | EliasVansteenkiste/ConnectionRouter | mit | 8,893 | 284 | codeparrot/github-code |
8c86b555b26dd4b1e0b772783a03773d6418d05a7028a9269c72733df8053c04 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using System.Collections;
using System.Data;
using Approve.EntityBase;
using Approve.Common;
using System.Data.SqlClient;
using Approve.RuleCenter;
using Project... | C# | SurveyDesign/JSDW/appmain/FileUp.aspx.cs | coojee2012/pm3 | mit | 3,731 | 138 | codeparrot/github-code |
095904396f04178c039563a97560ab7a5dc88077229b65158ddd29a99470e657 | <?php namespace Laravel; use FilesystemIterator as fIterator; use Closure;
class Blade {
/**
* All of the compiler functions used by Blade.
*
* @var array
*/
protected static $compilers = array(
'extensions',
'layouts',
'comments',
'echos',
'forelse',
'empty',
'endforelse',
'structure_openin... | PHP | app/laravel/blade.php | ramonigimenez/bugs | mit | 10,821 | 453 | codeparrot/github-code |
e3936363a0d7d94ebb2519340bf8b8204dd2eb4d660659e5d8accd26fcc4934d | <?php
namespace Rad\Configure\Loader;
use Rad\Configure\Exception;
use Rad\Configure\LoaderInterface;
/**
* Php Loader
*
* @package Rad\Configure\Loader
*/
class PhpLoader implements LoaderInterface
{
/**
* @var array|string
*/
protected $data;
/**
* PhpLoader constructor.
*
... | PHP | src/Configure/Loader/PhpLoader.php | radphp/radphp | mit | 1,017 | 52 | codeparrot/github-code |
659f23a3c0832bbe492d4f8eaf1877f248e17d5ad12716558c565e312fd21c87 | 'use strict';
exports.BattleMovedex = {
reflecttype: {
inherit: true,
onHit: function (target, source) {
if (source.template && source.template.num === 493) return false;
this.add('-start', source, 'typechange', '[from] move: Reflect Type', '[of] ' + target);
var typeMap = {};
source.typesData = [];
... | JavaScript | mods/hiddentype/moves.js | TheManwithskills/COC | mit | 873 | 36 | codeparrot/github-code |
e827f6c902bf9bbffd4f05dcaf40d93e794c820f88a61f68902c32605f441ff6 | class Projects::BranchesController < Projects::ApplicationController
include ActionView::Helpers::SanitizeHelper
# Authorize
before_action :require_non_empty_project
before_action :authorize_download_code!
before_action :authorize_push_code!, only: [:new, :create, :destroy]
def index
@sort = params[:so... | Ruby | app/controllers/projects/branches_controller.rb | Soullivaneuh/gitlabhq | mit | 2,104 | 68 | codeparrot/github-code |
98c408380a447a338899e8c81e53e1d7daa6cf41fd895a01cf830ac47fadf3ef | // Copyright (c) 2015-2017 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 <httpserver.h>
#include <chainparamsbase.h>
#include <compat.h>
#include <util.h>
#include <utilstrencodings.h>
#in... | C++ | src/httpserver.cpp | TheBlueMatt/bitcoin | mit | 22,062 | 681 | codeparrot/github-code |
5c6e3d32b891d310b921a3fe8b49d68a08e500407423b8cdf549f2ea8cc25b25 | define(function(){
(function($) {
// jQuery plugin definition
$.fn.timePicker = function(params) {
// merge default and user parameters
params = $.extend( {defaultTime: 0, mouseoverClass: 'jquery-timepicker-mouseover'}, params);
// some default cars
var newHTML = '';
var $t = $(this... | JavaScript | quickforms/WebContent/js/jquery/jquery.timepicker.js | uoForms/quickforms3 | mit | 2,335 | 76 | codeparrot/github-code |
20cdb425abdc05e6271f3b836cabaa149b299329440595471c74c848a3251fc5 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<title>Textbox (POI API Documentation)</title>
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="t... | HTML | eclipse/poi-3.12/docs/apidocs/org/apache/poi/ss/usermodel/Textbox.html | misuqian/ExcelTool | mit | 14,134 | 383 | codeparrot/github-code |
0a1026b8b06afc7a51e4b5f691f7e6bb0ab04f81cd8f35ae5a384042f36ee3f5 | /*
DO NOT MODIFY - This file has been generated and will be regenerated
Semantic UI v2.1.8
*/
/*!
* # Semantic UI - Modal
* http://github.com/semantic-org/semantic-ui/
*
*
* Copyright 2015 Contributors
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
;(function ( $, window, docum... | JavaScript | client/lib/semantic-ui/definitions/modules/modal.js | kmcroft13/box-templates | mit | 27,142 | 897 | codeparrot/github-code |
16f2691a76436dffa0ca266bcdb4f8daf83ceb07614d9c9d2d02e9c55c7f201a | // Copyright (c) 2012 The Bitcoin developers
// Copyright (c) 2012 Litecoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_MRUSET_H
#define BITCOIN_MRUSET_H
#include <set>
#include <deque>
/** ST... | C | src/mruset.h | mrflow27/66coins | mit | 1,937 | 97 | codeparrot/github-code |
4865a0d9060c6718bd0e61bba06afe52ae4a706b59a2573c08912d916cc8315b | // Copyright (c) 2014-2021 The Dash Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_GOVERNANCE_GOVERNANCE_OBJECT_H
#define BITCOIN_GOVERNANCE_GOVERNANCE_OBJECT_H
#include <cachemultimap.h>
#i... | C | src/governance/governance-object.h | dashpay/dash | mit | 9,619 | 348 | codeparrot/github-code |
8a4fbbc032cef347e162f7e3d18caed2a66e4eba03925182cb51c8462db6bae1 | /*
* Angular JS Multi Select
* Creates a dropdown-like button with checkboxes.
*
* Project started on: Tue, 14 Jan 2014 - 5:18:02 PM
* Current version: 4.0.0
*
* Released under the MIT License
* --------------------------------------------------------------------------------
* The MIT License (MIT)
*
* Co... | JavaScript | src/components/isteven-angular-multiselect/isteven-multi-select.js | ItamarBittton/colel | mit | 60,655 | 1,112 | codeparrot/github-code |
1fb1a918bfd2c24751efce189bf34b3f47c5baae39b2dd00116974b431b85abe | /*
* TFSFCond.h
*
* Created on: 25 янв. 2016 г.
* Author: aleksandr
*/
#ifndef TFSFCOND_H_
#define TFSFCOND_H_
#include "BoundaryCond.h"
#include "TFSFFunctorsTM/EzUpdater.h"
#include "TFSFFunctorsTM/HyUpdater.h"
#include "TFSFFunctorsTM/HxUpdater.h"
#include "../Structures/HostDeviceVector.h"
#include "..... | C | src/BoundaryCond/TFSFCondTM.h | SchadkoAO/FDTD_Solver | mit | 936 | 50 | codeparrot/github-code |
a94e8acca0a10fe5a51f10237327f5fa258d8064a5130a8484e8aead077d5c1e | import { Fetch, UrlConfig, Utils, AppConfig } from '@jenkins-cd/blueocean-core-js';
import { TypedError } from '../TypedError';
export const LoadError = {
TOKEN_NOT_FOUND: 'TOKEN_NOT_FOUND',
TOKEN_INVALID: 'TOKEN_INVALID',
TOKEN_REVOKED: 'TOKEN_REVOKED',
};
export const SaveError = {
INVALID_CREDENTIA... | JavaScript | blueocean-dashboard/src/main/js/credentials/bitbucket/BbCredentialsApi.js | kzantow/blueocean-plugin | mit | 2,462 | 80 | codeparrot/github-code |
74089947bea110a35b3a8f4b7b0f26dea53ae7401c1d79f0a82b08502730c8c9 | {{template "pageHeader" .}}
<div class="container topic">
<h1><span class="light">§</span> {{.Name}}</h1>
<div class="metadata">
<span class="light">Posted on</span> {{.PostDate}} <span class="light">by</span> {{.AuthorName}}
</div>
<p class="description">{{.Description}}</p>
<h2><span class="light">§</sp... | HTML | templates/viewTopic.html | cozmo/senatus | mit | 1,882 | 47 | codeparrot/github-code |
de83d02e720c22fe22385fa393fa3d9fc5a3d8dd4565cf3f5dc31fdf54e9c06d | import React, { Component, PropTypes, } from 'react';
import { Box, Columns, Column, } from 're-bulma';
// import 'font-awesome/css/font-awesome.css';
// import styles from '../../styles';
const propTypes = {
boxProps: PropTypes.any,
};
const defaultProps = {
};
class ResponsiveBars extends Component {
construct... | JavaScript | adminclient/src/components/ResponsiveBar/index.js | typesettin/periodicjs.ext.reactapp | mit | 1,192 | 48 | codeparrot/github-code |
be481cbd57e18ae7f23c0836b40279d26132e109f8e8772f1458877828e6cc7e | #ifndef NEWSBOAT_CONFIGPARSER_H_
#define NEWSBOAT_CONFIGPARSER_H_
#include <functional>
#include <map>
#include "configactionhandler.h"
namespace newsboat {
enum class ActionHandlerStatus {
INVALID_PARAMS,
TOO_FEW_PARAMS,
TOO_MANY_PARAMS,
INVALID_COMMAND,
FILENOTFOUND
};
class ConfigParser : public ConfigActi... | C | include/configparser.h | der-lyse/newsboat | mit | 1,495 | 56 | codeparrot/github-code |
c5f9639eef7799fb7e18903fe3d925e99ac2874a06fcf1ec20d5b21178376010 | <!DOCTYPE html><html lang="en">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>My {Java} Academy</title>
<link rel="shortcut" href="/icons/myJ.png"/>
<link rel="shortcut icon" href="/icons/myJ.png"/>
<meta propert... | HTML | docs/flex-tree-and-groupingcollection/index.html | myjavaacademy/mja-blog-site | mit | 12,507 | 236 | codeparrot/github-code |
5060cacb13dcba36a1fbd60543b86e7ebcd8baf59e9f040e13f0fc31f432fb10 | using log4net.Core;
namespace uShip.Logging.Appender
{
/// <summary>
/// Represents a summary of an API Log mocking logstash
/// </summary>
public class ApiErrorLogModel
{
/// <summary>
/// Gets or sets the rendered message as found in the <see cref="LoggingEvent"/> class.
... | C# | src/uShip.Logging/Appender/ApiErrorLogModel.cs | uShip/uShip.Logging | mit | 914 | 31 | codeparrot/github-code |
9965a89016028056a76a04f8146f51ee6faa36c97a949795ef14ba4128a42279 | package com.coinbase.exchange.api.payments;
import java.math.BigDecimal;
/**
* Created by robevansuk on 16/02/2017.
*/
public class Amount {
BigDecimal amount;
String currency;
public Amount() {}
public Amount(BigDecimal amount, String currency) {
this.amount = amount;
this.curren... | Java | api/src/main/java/com/coinbase/exchange/api/payments/Amount.java | irufus/coinbase-exchange-java | mit | 647 | 36 | codeparrot/github-code |
6a0a00e4c8fc75d56c91ac67efc35d021bd2ea9dc849d1021668aba8d803bd72 | /*
-------------------------------------------------------------------------------
This file is part of OgreKit.
http://gamekit.googlecode.com/
Copyright (c) 2006-2010 Nestor Silveira.
Contributor(s): none yet.
-------------------------------------------------------------------------------
... | C++ | Gamekit/Samples/LogicDemo/SceneLogic.cpp | Josiastech/vuforia-gamekit-integration | mit | 5,338 | 210 | codeparrot/github-code |
31d2220048199081905fee22b34247902479a8c2dae663772f6de0b4a2523d6e | define(function (require) {
'use strict';
/**
* Module exports
*/
return withMustache;
/**
* Module function
*/
function withMustache() {
/**
* Render a template with Mustache. Must provide either `request.template`
* or `request.templateName`.
*
* @param request {Obje... | JavaScript | public/bower_components/flight-mustache/lib/with_mustache.js | rogeliog/flight-examples | mit | 949 | 43 | codeparrot/github-code |
97475b7df076d75c40b7b29bb4cbfd60890710301c5102657b7d4d432aee53fb | using Newtonsoft.Json;
namespace EncompassRest.Company.Users.Rights
{
/// <summary>
/// MiscellaneousRights
/// </summary>
public sealed class MiscellaneousRights : DirtyExtensibleObject
{
private DirtyValue<bool?>? _eFolderAccess;
private DirtyValue<bool?>? _eFolderArchive;
... | C# | src/EncompassRest/Company/Users/Rights/MiscellaneousRights.cs | EncompassRest/EncompassRest | mit | 27,520 | 528 | codeparrot/github-code |
25bf31ce1c334b147f3cf002a74fe5998db9b8b258b0a7a151a267cb46971938 | /* print LPtype data structure
*
* PCx 1.1 11/97
*
* Authors: Joe Czyzyk, Sanjay Mehrotra, Michael Wagner, Steve Wright.
*
* (C) 1996 University of Chicago. See COPYRIGHT in main directory.
*/
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "memory.h"
#include "main.h"
int PrintLP(LP)
LPtyp... | C | SRC/lp.c | lrsantos11/PCx-C | mit | 1,170 | 48 | codeparrot/github-code |
2e9e2e756a46d682c5f10a6fc8109a1747188ea149316ab695bfa3846f59cb8f | /* Part of XPCE --- The SWI-Prolog GUI toolkit
Author: Jan Wielemaker and Anjo Anjewierden
E-mail: J.Wielemaker@cs.nu.nl
WWW: http://www.swi-prolog.nl/projects/xpce/
Copyright (c) 1985-2019, University of Amsterdam
VU University Amsterdam
... | Perl | docker/rootfs/usr/local/lib/swipl/xpce/prolog/boot/pce_principal.pl | TeamSPoon/logicmoo_workspace | mit | 12,623 | 419 | codeparrot/github-code |
1711671cc31e1bd27f93ac73eeaaf2f538986fe43c832a0f7b7b881ead3852d1 |
//
// 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-2017 Francois Beaune, The appleseedhq Organization
//
... | C++ | src/appleseed/renderer/modeling/surfaceshader/physicalsurfaceshader.cpp | aytekaman/appleseed | mit | 5,931 | 191 | codeparrot/github-code |
fe2b23e99f9b75826736446046b103cd3dea5ebfd2416b49eb4b4320974e215c | package main
// Slack outgoing and incoming webhooks are handled here. Requests come in and
// are examined to see if we need to respond. If we do, we set a timer to check
// if a response was already posted by calling the history api. Responses are
// sent back using an incoming webhook.
//
// Create an outgoing webh... | GO | web.go | grantmd/slack-fingerbumpbot | mit | 4,120 | 181 | codeparrot/github-code |
05943f9d2ad3e5dc9746c2c68922c3367a27c29c959501d4e29539d9ca4c19f8 | #include <getopt.h>
#include <list>
#include <set>
#include <tr1/unordered_set>
#include <tr1/unordered_map>
#include <fstream>
#include <algorithm>
#include "graph_rep.hpp"
#include "aaron_utils.hpp"
#include "Range.hpp"
const char gitstatus[] =
#include "comment.txt"
#include "gitstatus.txt"
;
using namespace std... | C++ | execs/CM-Overlapping-MOSES-McDaid/moses-2011-01-26/groupStats.cpp | rabbanyk/CommunityEvaluation | mit | 7,274 | 243 | codeparrot/github-code |
e74ac847c0990dba39128683f1db7b278a3f32c1d09fecc3eacc3e53ba0b98be | #! /bin/env ruby
require File.dirname(__FILE__) + '/../base/file_modifier'
class RoutesAdder < FileModifier
TARGET_FILENAME = "config/routes.rb"
def initialize(argv)
super(argv)
@status = SearchingKeyword.new
end
private
def target_filename
return TARGET_FILENAME
end
RE_COMMEN... | Ruby | script/subscript/routes_adder.rb | md1961/user_auth | mit | 4,130 | 171 | codeparrot/github-code |
fe18d1f7caaa35d7b003a46d1ea36e2904417cd4a02bba6dfa451c8859dcc382 | 'use strict';
var assert = require('power-assert'),
util = require('../../../lib/util/util.js');
describe('20_util/00_util', function () {
var got, exp;
it('require', function () {
assert(typeof util === 'object', 'is object');
});
it('parts', function () {
got = util.parts;
... | JavaScript | test/unit/20_util/00_util.js | sakusimu/mh4-skillsimu | mit | 1,972 | 75 | codeparrot/github-code |
214d74b954fc3e483cdddc6e02bdbd34a0c3493533d05a89c39647c554b07ce2 | var requestAnimationFrame = require("@nathanfaucett/request_animation_frame"),
scrollTo = require("./scrollTo");
var DELTA_TIME = 1000 / 60;
module.exports = scrollToTop;
function scrollToTop() {
var lastTime = 0,
scrollY = window.scrollY,
delta = -scrollY;
function scroll(ms) {
... | JavaScript | js/utils/scrollToTop.js | nathanfaucett/beaumont_flooring | mit | 639 | 33 | codeparrot/github-code |
00592bb5032316e4365d603e72a07247d493906fa859ecfcc1e0deea0f400c3b | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Linq;
using JetBrains.Annotations;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Frame... | C# | osu.Game/Screens/OnlinePlay/Multiplayer/Spectate/MultiSpectatorScreen.cs | ppy/osu | mit | 10,584 | 262 | codeparrot/github-code |
489c6e8f675110af433f2b944491b77f26deb72ae8728646981402cd974f5746 | nucleomediaApi
.filter('smartLimit', smartLimit)
.controller('feedCtrl', ['$scope', 'nucleomediaRequest', function($scope, nucleomediaRequest) {
var rootScope = $scope.$root;
var isAleatorio = false;
rootScope.carregarFeed = function() {
var url = "http://localhost:8080/getN... | JavaScript | src/nucleomediaFeed.js | duartepatriani/nmdstemplateapi | mit | 3,034 | 95 | codeparrot/github-code |
97cc056cd635b308d4e0bcc1596dfc163575fa4d48cec939f659daebdca8c6af | """
Additional strategies from Axelrod's second tournament.
"""
import random
from axelrod import Actions, Player, flip_action, random_choice
C, D = Actions.C, Actions.D
class Champion(Player):
"""
Strategy submitted to Axelrod's second tournament by Danny Champion.
"""
name = "Champion"
class... | Python | axelrod/strategies/axelrod_second.py | marcharper/Axelrod | mit | 3,354 | 118 | codeparrot/github-code |
4e6db8adf40da487541c11fafe9d26157aa1b47ed8cb05bee21660abfc5bd2c9 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.CodeAnalysis.CSharp.Symbols... | C# | src/Compilers/CSharp/Portable/BoundTree/BoundNode_Source.cs | abock/roslyn | mit | 16,991 | 424 | codeparrot/github-code |
6d0946ad48a72eda725cc808a29f0150058bbfa5503d7568667ddeb8c0deb80e | <?
class Coop_DutyReports extends Awsome_DbTable
{
public function __construct()
{
parent::__construct();
$this->tableName = "duty_reports";
$this->editableColumns = array("coop_id", "report_week_number", "report_year", "report_content", "report_reset_day");
$this->nameColumn = "report_week_number";
... | PHP | source/application/models/Coop/DutyReports.php | elpd/coop | mit | 1,579 | 65 | codeparrot/github-code |
65fe585ee5378d7df76cccc52626cacea4fd9001aa02572e4fcf807018b1e4bf | <?php
namespace Emergence\CMS;
use ActiveRecord;
class BlogRequestHandler extends AbstractRequestHandler
{
// RecordsRequestHandler config
public static $recordClass = 'Emergence\CMS\BlogPost';
public static $accountLevelAPI = false;
public static $accountLevelWrite = 'User';
public static $accou... | PHP | php-classes/Emergence/CMS/BlogRequestHandler.php | CfABrigadePhiladelphia/laddr | mit | 2,630 | 79 | codeparrot/github-code |
ae9bfa1e38ac34fce976896e2e71bf30c0410bcd5d85d43b1f1416abf8b8fc2f | using System;
using Android.OS;
using Android.Views;
using Android.Widget;
using WizarDroid.NET;
using WizarDroid.NET.Persistence;
namespace WizarDroid.NET_Sample.Wizards
{
public class CustomerWizardStep3 : WizardStep
{
[WizardState]
public Customer Cust;
public CustomerWizardStep3()
... | C# | WizarDroid.NET-Sample/Wizards/CustomerWizard/CustomerWizardStep3.cs | walkingtree/WizarDroid.Net | mit | 3,960 | 113 | codeparrot/github-code |
03e26e420aca8c89f1a4658f0e630f1c61a0441cc6ec840b3efdd475386e2bdd | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="DerSet.cs">
// Copyright (c) 2014 Alexander Logger.
// Copyright (c) 2000 - 2013 The Legion of the Bouncy Castle Inc. (http://www.bouncycastle.org).
// </copyright>
// ----... | C# | src/Raksha.Shared/Asn1/DerSet.cs | Everbytes/Raksha | mit | 2,862 | 109 | codeparrot/github-code |
05da0ab4fec96a55bc785a3b304ecf90569a07ccd0ce0891e3e786fe85453dd5 | /**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*
* Version: 5.8.2 (2021-06-23)
*/
(function () {
'use strict';
... | JavaScript | src/public/packages/tinymce/plugins/importcss/plugin.js | Laravel-Backpack/crud | mit | 11,661 | 344 | codeparrot/github-code |
814a7039221b42350540360e20c3959b95cc52375a924210c763613b76cb2f1c | // Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
// MIT License. See license.txt
frappe.ui.FilterList = Class.extend({
init: function(opts) {
$.extend(this, opts);
this.filters = [];
this.$w = this.$parent;
this.set_events();
},
set_events: function() {
var me = this;
// show filter... | JavaScript | frappe/public/js/frappe/ui/filters/filters.js | vCentre/vFRP-6233 | mit | 14,100 | 547 | codeparrot/github-code |
36cb45b1c382fc889fdd6a3df7b92ee963fe881dd40baa6f1ef5b38816c37774 | #pragma once
#define GETTER(type, name) \
type get_##name() const { \
return this->name; \
}
#define SETTER(type, name) \
void set_##name(type value) { \
this->name = value; \
}
#define SETTER_BY_POINTER(type, name) \
void set_##name(type value) { \
this->name = *value; \
}
#define GETT... | C | meta.h | Dremora/foo_musicbrainz | mit | 2,945 | 133 | codeparrot/github-code |
d8a5bf3ee81d9f1290901559c3126f29c2078c566283552a3c79c47c8354b6cc | <!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>EXTMultiObject Class Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<meta name="viewport" content="width=550" />
<link rel="stylesheet" type="text/css" href="../css/s... | HTML | Pods/Documentation/libextobjc/html/Classes/EXTMultiObject.html | BellGeorge/BGLibrary | mit | 11,201 | 379 | codeparrot/github-code |
ad26965516eb78ca609ea817e8fb4268a027fd1c30c6279f15eafbdc5b2e2e39 | <?php
/*
* This file is part of the symfony package.
* (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
require_once(dirname(__FILE__).'/sfPropelBaseTa... | PHP | lib/plugins/sfPropelPlugin/lib/task/sfPropelBuildFormsTask.class.php | hybmg57/jobeet | mit | 3,787 | 96 | codeparrot/github-code |
53f7e82045c53f0e4f213e30fde4e60b48306f7f6a807e42e12f1d89c4cf8fde | {-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE RankNTypes #-}
module Language.Haskell.Refact.Utils.ExactPrint
(
replace
, replaceAnnKey
, copyAnn
, setAnnKeywordDP
, clearPriorComments
, balanceAllCo... | Haskell | test/HaRe/src/Language/Haskell/Refact/Utils/ExactPrint.hs | SAdams601/ParRegexSearch | mit | 5,482 | 163 | codeparrot/github-code |
4c9a52a7ba642a0317e84a8ae3d8e312d023c7094e137c8d773a4c7c05961849 | /*---------------------------------------------------------------------------------------------
* 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/contrib/parameterHints/provideSignatureHelp.ts | Zalastax/vscode | mit | 1,723 | 42 | codeparrot/github-code |
659c21cdab9810500d2f3a114610f0cad0d4354f9844f6b980250536a3919e77 | // @remove-file-on-eject
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
// Makes the script crash on unhandled rejections instead of silently
// ignoring them. In the fu... | JavaScript | packages/react-scripts/scripts/eject.js | timlogemann/create-react-app | mit | 10,126 | 319 | codeparrot/github-code |
c972eaeb1151f9c0e4d49a56f76b2b3b32e0fbb2119368688c5f2961e7b7e26f | package config;
import java.io.File;
public class Config {
public static int TTSIZE = 50000000;
// public static int TTSIZE = 80000000;
public static int TTSIZE_TEST = 1024;
public static int ALPHABETA_PRINTOUT_INTERVAL = 100000;
public static boolean RESUME = true;
// A prime number roughly 3x 324
... | Java | src/main/java/config/Config.java | davidwufer/pentago | mit | 1,482 | 37 | codeparrot/github-code |
60de310cfe4b6fe12753e80dc3f746d0de111fb2d6e5d48ddcbd98ffb35623d6 | /*---------------------------------------------------------------------------------------------
* 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/contrib/snippet/test/snippetVariables.test.ts | cra0zy/VSCode | mit | 10,634 | 292 | codeparrot/github-code |
dfa94cda64d5fbb052f4e7caeeaca32029eb11e0caa42190bd3ff9be02a20523 | #!/usr/bin/python
"""
tsdv.py - timestamp dv
sets start/end times of dv files
Gets start from one of:
the file name (assumes yy_mm_dd/hh_mm_ss.dv format)
the file system time stamp,
the first frame of the dv
duration (in seconds) based on file size / BBF*FPS
last frame
"""
import os
import datetime
from fnmatch im... | Python | dj/scripts/tsdv.py | xfxf/veyepar | mit | 4,150 | 142 | codeparrot/github-code |
fac9196ded813dd1ba8b5b5b8d979ef08f96e5f3e581eccaf612cfbde487158d | Proto = {
cloneConstructor: new Function,
clone: function()
{
Proto.cloneConstructor.prototype = this;
var clone = new Proto.cloneConstructor;
clone.setProto(this);
if(clone.init)
{
clone.init();
}
return clone;
},
_proto: Object,
_protoType: "Proto",
protoType: function()
{
return th... | JavaScript | lib/Crux/Proto.js | stevedekorte/vertex.js | mit | 4,155 | 255 | codeparrot/github-code |
1f19f318a4d7d60b858f74cd30215057372a6fb2dc0f16c6595958a956cb612a | /*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2017 - ROLI Ltd.
JUCE is an open source library subject to commercial or open-source
licensing.
By using JUCE, you agree to the terms of both the JUCE 5 End-User Lic... | C | src/JuceLibraryCode/modules/juce_graphics/fonts/juce_CustomTypeface.h | Ultraschall/Soundboard | mit | 7,423 | 167 | codeparrot/github-code |
b4115c9d814b5c5cbc096ef52982d37198bb824857fce1b4285e99af6fba4912 | <html lang="en">
<head>
<title>AArch64 Directives - Using as</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Using as">
<meta name="generator" content="makeinfo 4.11">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="AArch64_002dDependent.html#AArc... | HTML | gcc-arm-none-eabi/share/doc/gcc-arm-none-eabi/html/as.html/AArch64-Directives.html | trfiladelfo/tdk | mit | 5,400 | 114 | codeparrot/github-code |
2ed96f126122094b89e015dd77c51480a78fa668d5a22cec71c74f580f56ffec | // Copyright (c) 2014 Dan Nagle. All rights reserved.
//
// Licensed MIT: https://github.com/dannagle/PacketSender-Android
package com.packetsender.android;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.wifi.WifiInfo;
import android.net.wif... | Java | Packet Sender/src/main/java/com/packetsender/android/DataStorage.java | dannagle/PacketSender-Android | mit | 15,619 | 497 | codeparrot/github-code |
a5cc9df8f172882de9882ab4ac55af6028503e9ed6ba6b43af4d175852c079fe | local loader = {}
local assets = {
levels = {
'assets/lvls/lvl1.lua',
'assets/lvls/lvl2.lua',
'assets/lvls/lvl3.lua'
},
}
local constructors = {
Player = player.new,
Teenager = enemy.teenager.new,
Granny = enemy.granny.new,
Book = book.new
}
function loader.load_tiled_file(lvl_file)
... | Lua | levelloader.lua | chanko08/KillerLibrarian2 | mit | 4,795 | 193 | codeparrot/github-code |
4edf545de7315d56af5c514d167b51ff962dd73d46402d0a877bd2f34fc78279 | package view;
import java.awt.Color;
import java.awt.Cursor;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.Mous... | Java | src/view/GameDisplayPanel.java | gizmo385/TheFourNations | mit | 30,754 | 769 | codeparrot/github-code |
ac65d2e20f31c5067bf7de44825e1fa9ac95330a8bd17fc0b964faa9b442fad8 | // @preserve jQuery.floatThead 1.2.11 - http://mkoryak.github.io/floatThead/ - Copyright (c) 2012 - 2014 Misha Koryak
// @license MIT
/* @author Misha Koryak
* @projectDescription lock a table header in place while scrolling - without breaking styles or events bound to the header
*
* Dependencies:
* jquery 1.9.0 +... | JavaScript | app/webroot/js/floatHead/jquery.floatThead.js | caesarius1187/contasynfotech | mit | 32,911 | 826 | codeparrot/github-code |
8830cc804a6df9435b2f5c996ff3700808d212b78e3eef44a8771bb98c1e8b6a | // * ———————————————————————————————————————————————————————— * //
// * cms editor controller
// * main controller for cms editor
// * ———————————————————————————————————————————————————————— * //
enduro_admin_app.controller('cms-editor-controller', ['$scope', '$rootScope', '$routeParams', 'content_service', 'culture_... | JavaScript | assets/js/controllers/cms_editor_controller.js | kiskadigitalmedia/Enduro_admin | mit | 5,825 | 193 | codeparrot/github-code |
57cb27cf9b36cc346ecf5d9e19690185100a911a061efb1fe0c2ed776730bce3 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Login extends CI_Controller
{
public function __construct()
{
parent::__construct();
$this->load->model("login_model");
$this->load->model("user_model");
$this->load->model("home_model");
$this->load->model("register_model... | PHP | application/controllers/Login.php | sonjer/cajaChica | mit | 6,279 | 240 | codeparrot/github-code |
361a8b630efdc62800466e51027637aacab5d32062c5b38d7721bb99bcc421bc | /**
* Personal video recorder constructor.
* @constructor
*/
function Pvr(){
this.has_active_rec = false;
this.current_ch_id = 0;
this.start_time = 0;
this.current_time = 0;
this.record_id = 0;
this.id_list = [];
this.data_list = [];
this.init_rec_list();
var self =... | JavaScript | c/pvr.js | saydulk/stalker_portal | mit | 2,663 | 128 | codeparrot/github-code |
9bdf7eefd658e119d6c845df7228d463e50b38ea42ba14bf75b8d848eed5ae04 | '''
battery.py: part of expfactory package
Functions to generate batteries
'''
from expfactory.vm import custom_battery_download, get_jspsych_init, get_stylejs
from expfactory.experiment import get_experiments, load_experiment
from expfactory.utils import copy_directory, get_template, \
sub_template, get_installd... | Python | expfactory/battery.py | vsoch/expfactory-python | mit | 18,863 | 397 | codeparrot/github-code |
881c04876c24989b993f3dddfaafbb70d30a6dcb57a4472cc26bd65abba1120c | using System.ComponentModel;
using Wisej.Web;
namespace CslaContrib.WisejWeb
{
/// <summary>
/// Helper class to manually do correct Bind and Unbind.
/// </summary>
public static class BindingSourceExtensions
{
/// <summary>
/// Unbind the binding source and the Data object.
/// Use this Method ... | C# | trunk/Source/CslaContrib.WisejWeb.Net45/BindingSourceExtensions.cs | MarimerLLC/cslacontrib | mit | 2,664 | 82 | codeparrot/github-code |
50f5c4e1607fa4d6687df241f87b7d4280ae9aea684683286618467b1a908d7f | package red.sukun1899.shishamo.model;
import java.util.Collection;
import java.util.List;
/**
* @author su-kun1899
*/
public class Column {
private String name;
private String defaultValue;
private boolean nullable;
private String type;
private String comment;
private ReferencedColumn parent... | Java | src/main/java/red/sukun1899/shishamo/model/Column.java | su-kun1899/shishamo | mit | 1,862 | 82 | codeparrot/github-code |
6effe418a9f10d9454cb6687fab8d67fccf05747ddc763876e0827b03e47d967 | /*!
\brief URG ZTpÌâÖ
\author Satofumi KAMIMURA
$Id: urg_utils.c,v da778fd816c2 2011/01/05 20:02:06 Satofumi $
*/
#include "urg_utils.h"
#include "urg_errno.h"
#define _USE_MATH_DEFINES
#include <math.h>
#undef max
#undef min
static int max(int a, int b)
{
return (a > b) ?... | C | ext/urg_library-1.1.8/src/urg_utils.c | ANW180/Pidar | mit | 4,711 | 210 | codeparrot/github-code |
4906895bef26c3542b89faa83e4419b83a2edda1d637b581ca3ec4cb19fe8deb | import iNaturalistJS from "inaturalistjs";
import { paramsForSearch } from "../reducers/search_params_reducer";
const UPDATE_OBSERVATIONS_STATS = "update_observations_stats";
function updateObservationsStats( stats ) {
return {
type: UPDATE_OBSERVATIONS_STATS,
stats
};
}
function fetchObservationsStats( ... | JavaScript | app/webpack/observations/identify/actions/observations_stats_actions.js | pleary/inaturalist | mit | 1,393 | 57 | codeparrot/github-code |
cb021c58039b54f481ba27965027c441d43a2cff69b834f392128f9023f7b186 | /**
* SEA3D SDK
* @author Sunag / http://www.sunag.com.br/
*/
'use strict';
var SEA3D = { VERSION : 17000 }
SEA3D.getVersion = function() {
// Max = 16777215 - VVSSBB | V = Version | S = Subversion | B = Buildversion
var v = SEA3D.VERSION.toString(), l = v.length;
return v.substring( 0, l - 4 ) + "." + v.s... | JavaScript | js/libs/versions/r72/sea3d/sea3d.js | easyfrog/easygame | mit | 84,884 | 4,760 | codeparrot/github-code |
df333201a95e9ff782ad0bedc5454255884f46dfce523d6c91f2617fb7b24bdc | /*
Simple DirectMedia Layer
Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to u... | C | lib/SDL/include/SDL_endian.h | alex-spataru/QJoysticks | mit | 6,363 | 237 | codeparrot/github-code |
836091f2849a9777a86c5cee6cc4a26dec95525103f0f9dd3476283d021ed322 | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Linq;
using osu.Framework.Allocation;
using osu.Framework.Audio;
using osu.Framework.Bindables;
using osu.Framework.Extensions.Color4Extensions... | C# | osu.Game/Screens/Ranking/Expanded/Accuracy/AccuracyCircle.cs | ppy/osu | mit | 16,409 | 430 | codeparrot/github-code |
bcf47cf76ab6fbadf891757fd572afd38db473e3dae3af2d930c0bd57351d222 | package com.xtremelabs.robolectric.shadows;
import android.app.Activity;
import android.content.Context;
import android.graphics.Point;
import android.graphics.drawable.ColorDrawable;
import android.view.*;
import android.view.View.MeasureSpec;
import android.view.animation.Animation;
import android.widget.LinearLayou... | Java | src/test/java/com/xtremelabs/robolectric/shadows/ViewTest.java | upsight/playhaven-robolectric | mit | 13,759 | 416 | codeparrot/github-code |
3e4f7e03d647fec8efee5a360527fbb4246c010c6ef51966c466f9f356c53516 | <head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<title>{% if page.use-site-title %}{{ site.title }} {{ site.title-separator }} {{ site.description }}{% elsif page.title %}{{ site.titl... | HTML | docs/_includes/head.html | ALeggeUp/confagrid | mit | 4,407 | 127 | codeparrot/github-code |
56817ba2b312bf053bd36444493088c31ec14c88a5f8ea5795e3b12d9f57a2c3 | using System;
using System.Threading.Channels;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using Orleans.Configuration;
using Orleans.Runtime.Configuration;
namespace Orleans.Runtime.Messaging
{
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1711:IdentifiersShou... | C# | src/Orleans.Runtime/Messaging/InboundMessageQueue.cs | sergeybykov/orleans | mit | 3,664 | 119 | codeparrot/github-code |
f7775695fdf0bab6f6995ab585c89ce036f7112f57acba4e0717b658604e7794 | import hashlib
from django.contrib.auth.models import Group
from django.db import models
USER_MODEL = 'auth.User'
class Organization( Group ):
'''
Umbrella object with which users are associated.
An organization can have multiple users.
'''
gravatar = models.EmailField( blank=True )
... | Python | keep_backend/organizations/models.py | DHLabs/keep | mit | 2,600 | 77 | codeparrot/github-code |
3a99af11c1a6ca24f56c29b7479ddacafd1c541cd002912aeee45b17a6d98f97 | /**
Подгружает JavaScript
Параметры
url - Адрес Javascript
onScriptLoaded - функция вызываемая после погрузки JavaScript
*/
function loadJS( url ){
var opt = null;
var onScriptLoaded = null;
if( arguments.length>1 ){
onScriptLoaded = arguments[1];
if( arguments.length>2 ){
opt ... | JavaScript | spacebot/www/loadjs.js | gochaorg/simplemath | mit | 24,381 | 911 | codeparrot/github-code |
55cab36cb43bc03ac9a940133d31674e13f6a5e95518d2a85d2ceff5e47ad257 | /*
ARPACK++ v1.2 2/20/2000
c++ interface to ARPACK code.
MODULE BNMatrxW.h
Class template for the n by n matrix A with entries
A(i,j) = k*(s(i))*(t(j)-1), if j-nl<= i <= j;
k*(t(j))*(s(i)-1), if j < i <= j+nu,
where s(i) = i/(n+1), t(j) = j/(n+1) and k = 1/(n+1).
... | C | arpack++/examples/matrices/nonsym/bnmatrxw.h | red2901/sandbox | mit | 1,151 | 69 | codeparrot/github-code |
d2e86d9596e9104e59d610a379511c441b6b5583d90ae6259fc965be55c01818 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>FileHelper - FAKE - F# Make</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="Steffen Forkmann, Mauricio Scheffer, Colin Bull"... | HTML | packages/FAKE/docs/apidocs/fake-filehelper.html | MatthiasKainer/DotNetRules.Events.Data.MongoDb | mit | 46,460 | 1,154 | codeparrot/github-code |
fe4eb390789d5198dea5ee7f78465793e96d73955bf28a80d0fc514f8a412618 | YUI.add('editor-selection', function (Y, NAME) {
/**
* Wraps some common Selection/Range functionality into a simple object
* @class EditorSelection
* @constructor
* @module editor
* @submodule selection
*/
//TODO This shouldn't be there, Y.Node doesn't normalize getting textnode... | JavaScript | diagram-builder/lib/editor-selection/editor-selection.js | leungwensen/lab | mit | 35,879 | 1,027 | codeparrot/github-code |
1476e1315598e7b677e5f6e567d2e0d7e45c10ace1c20b911cc72792dd4e5dc5 | --lookupsite.lua
package.path = package.path..";../?.lua"
local ffi = require("ffi")
local net = require("linux_net")
local sites = require("sites")
--[[
struct addrinfo {
int ai_flags; // AI_PASSIVE, AI_CANONNAME, ...
int ai_family; // AF_xxx
int ai_socktype; // SOCK_xxx
in... | Lua | testy/lookupsite.lua | Wiladams/schedlua | mit | 1,568 | 64 | codeparrot/github-code |
e4c21eaee951ed5dba02d8a523dc6183cb8e81c6f852abc4987418b48bb13a0f | //This is the main file for the iec61499 network with _TCREST as the top level block
#include "_Core022.h"
#ifndef PROGS_PER_CORE
#define PROGS_PER_CORE 1
#endif
//put a copy of the top level block into global memory
//struct _TCREST my_TCREST;
const int NOC_MASTER = 0;
void t(void* param);
void task(_Core022 * c... | C | examples/goFB_only/c_tcrest/messagepasser_mem/c_fbc/__tcrest_main.c | PRETgroup/goFB | mit | 1,496 | 76 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.