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 |
|---|---|---|---|---|---|---|---|---|
41b8ccc4e46f2cb5a22cd9081d9659970bc3234a30635f25d74e144583aa9553 | #pragma once
#include "Common\DirectXMathExtend.h"
#include <Eigen\Dense>
template <typename _Ty, typename _TScalar = float>
class octree
{
template <typename _TScalar>
struct vector_traits
{
};
template <>
struct vector_traits<float>
{
typedef DirectX::Vector3 vector_type;
};
template <>
struct vector_... | C | Causality/octree.h | ArcEarth/OpenAvataring | mit | 1,085 | 55 | codeparrot/github-code |
a54431752a737b14e92379bd5e3387af8653d3f712bb00cb8656625951d59946 | (function() {
"use strict"
/**
* Finds the series of n numbers in which each
* number is the sum of the two preceding numbers.
* @param {integer} n The number of iterations of Fibonacci
*/
function fibonacci(n) {
if (n == 1) {
return [ 1 ];
}
// Defi... | JavaScript | math/fibonacci/JavaScript/mattgd_fibonacci.js | EUNIX-TRIX/al-go-rithms | mit | 1,129 | 45 | codeparrot/github-code |
2769bc9f5423a0156a76530c2b8ddc190a41fa2f54bb7316f9fcb1ed4c12618b | use front::stdlib::value::{Value, ResultValue, VNumber, VInteger, to_value, from_value};
use front::stdlib::function::Function;
use std::f64::{NAN, MAX_VALUE, MIN_VALUE, INFINITY, NEG_INFINITY, EPSILON};
/// Parse a float into a value
pub fn parse_float(args:Vec<Value>, _:Value, _:Value, _:Value) -> ResultValue {
l... | Rust | src/lib/front/stdlib/number.rs | new-mind/js.rs | mit | 2,941 | 85 | codeparrot/github-code |
ab06282d4f10c4d54ba2c21119f0ccb31288855fc641ae4e16572c0a3b34c6be | # -*- coding: utf-8 -*-
"""
Messaging module
"""
module = "msg"
if deployment_settings.has_module(module):
def messaging_tables():
""" Load the tables required for Messaging, when-required"""
# Message priority
msg_priority_opts = {
3:T("High"),
2:T("Medium"),... | Python | models/msg.py | flavour/porto | mit | 32,132 | 640 | codeparrot/github-code |
6487b0449b3d0b6d6e1a0381bb3216872b9822e72e24c2b2bcfe43bdcb271539 | /*
Part of the GUI for Processing library
http://www.lagers.org.uk/g4p/index.html
http://gui4processing.googlecode.com/svn/trunk/
Copyright (c) 2013 Peter Lager
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published ... | Java | Experimental/Processing/Processing Libraries/G4P/src/g4p_controls/GSlider2D.java | mjs513/FreeIMU-Updates | mit | 16,523 | 616 | codeparrot/github-code |
cf9a10ce37e0237149cacaa276bb3a7f0fd84f6ff01868d6b42b194a3d5e27f4 | <?
include_once("../../PeoplePods.php");
$POD = new PeoplePod(array('debug'=>2,'lockdown'=>'adminUser','authSecret'=>@$_COOKIE['pp_auth']));
$POD->changeTheme('admin');
if (@$_GET['id'] && @$_GET['action'] == "") {
// load a document for editing
$doc = $POD->getContent(array('id'=>$_GET['id']));
if (... | PHP | admin/content/index.php | xoxco/PeoplePods | mit | 4,851 | 205 | codeparrot/github-code |
758ae8978b638a1b4f8d9b76db4cc6d9506170627dd786f4763e7ff63e2d0f07 | import {Box} from './util';
const Web3 = require('web3');
const web3 = new Web3();
const Tx = require('ethereumjs-tx');
const Wallet = require('ethereumjs-wallet');
const setWeb3Provider = () => {
web3.setProvider(new web3.providers.HttpProvider(process.env.REACT_APP_PROVIDER));
};
const CHAIN_ID = process.env.REA... | JavaScript | src/lib/dAppService.js | PhyrexTsai/ens-bid-dapp | mit | 4,781 | 176 | codeparrot/github-code |
0e423e7fb5ffb294bad10a8829b160293e9c17ab6799d52dc5172bb7e2a4e580 | $(document).ready(function () {
$(".todo-list").css({'overflow':'auto'});
$("#minute-step-timepicker").val("");
$("#todo-addform").hide();
$("#basic-datepicker").datepicker({
autoclose: true,
startDate: new Date(),
format:'MM d, yyyy',
});
//task-done
$('#minute-st... | JavaScript | assets/js/todo-admin.js | mayursn/lms_classes | mit | 4,431 | 134 | codeparrot/github-code |
a89ed068031f4e95ed88f6558eac27d9b78fef7cfa3a7d06cb12251f5d91aa9c | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using Microsoft.Protocols.TestManager.Detector;
namespac... | C# | ProtocolTestManager/Kernel/Detector/Detector.cs | dongruiqing/WindowsProtocolTestSuites | mit | 5,787 | 167 | codeparrot/github-code |
1e168878c86f23213d7f2491754a73f8503fa4a2bae8d8b081664a9d1bba873f | <?php
namespace futboleros\Http\Controllers;
use Illuminate\Http\Request;
use futboleros\Http\Requests;
use futboleros\Http\Controllers\Controller;
use futboleros\Log;
use futboleros\Tecnico;
use Illuminate\Routing\Route;
use Session;
use Redirect;
class TecnicosController extends Controller
{
public function __... | PHP | app/Http/Controllers/TecnicosController.php | wilsonwp/futbol_backend | mit | 2,481 | 103 | codeparrot/github-code |
595143343d5d92294a9a37a1f11de39545d68286f7878baa6b6008427042ec0e | from chainer import cuda
from chainer import function
from chainer.utils import type_check
def _kern():
return cuda.elementwise(
'T cond, T x, T slope', 'T y',
'y = cond >= 0 ? x : (T)(slope * x)', 'lrelu')
class LeakyReLU(function.Function):
"""Leaky rectifier unit."""
def __init__(se... | Python | chainer/functions/activation/leaky_relu.py | kiyukuta/chainer | mit | 2,382 | 90 | codeparrot/github-code |
e642965c31616f5a47395543131a984ae4a063897d9883cc88f760dfe8006458 | /*******************************************************************************
* ENdoSnipe 5.0 - (https://github.com/endosnipe)
*
* The MIT License (MIT)
*
* Copyright (c) 2012 Acroquest Technology Co.,Ltd.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this s... | Java | Javelin/src/main/java/jp/co/acroquest/endosnipe/javelin/converter/concurrent/monitor/SynchronizeMonitor.java | miyasakago/ENdoSnipe | mit | 3,430 | 123 | codeparrot/github-code |
61cbde066e299869ae79d4462fb8260f3318ad657868d6ab8a43e46bbf8a7106 | using System;
using System.Linq;
using GraphQL.Language.AST;
using GraphQL.Utilities;
namespace GraphQL.Validation.Rules
{
/// <summary>
/// Known type names
///
/// A GraphQL document is only valid if referenced types (specifically
/// variable definitions and fragment conditions) are defined by ... | C# | src/GraphQL/Validation/Rules/KnownTypeNames.cs | alexmcmillan/graphql-dotnet | mit | 1,541 | 44 | codeparrot/github-code |
611f5660f1d0c10e0e3642f3b33c3728ba3330e4a0795f7a4f936934c957f4de | import { lastItem } from 'utils/array';
export default function ( items, leadingPattern, trailingPattern ) {
var item;
if ( leadingPattern ) {
item = items[0];
if ( typeof item === 'string' ) {
item = item.replace( leadingPattern, '' );
if ( !item ) {
items.shift();
} else {
items[0] = item;
... | JavaScript | src/parse/utils/trimWhitespace.js | aliprogrammer69/ractive | mit | 569 | 32 | codeparrot/github-code |
f8e6152339d0146b1261fbf8b449e8601986310bf48314a9b35e2659e9c53e2d | Clazz.declarePackage ("J.shapespecial");
Clazz.load (["J.shape.AtomShape", "JU.P3", "$.V3"], "J.shapespecial.Polyhedra", ["java.lang.Boolean", "JU.AU", "$.BS", "$.Measure", "$.P3i", "$.SB", "J.c.PAL", "J.shapespecial.Polyhedron", "JU.Logger", "$.Normix"], function () {
c$ = Clazz.decorateAsClass (function () {
this.... | JavaScript | lib/jmol/jsmol/j2s/J/shapespecial/Polyhedra.js | kevinvanzyl/xrdportal | mit | 15,049 | 381 | codeparrot/github-code |
6a3728f9a27fef07c386046d140a116ebdbdd2fba8c40257f0a742dbee33ee53 | /*
Data Downloader
*/
var datenow = Date.now();
var data = exports.data = [
{
url: "https://raw.githubusercontent.com/Zarel/Pokemon-Showdown/master/config/formats.js",
file: "formats.js"
},
{
url: "https://raw.githubusercontent.com/Zarel/Pokemon-Showdown/master/data/formats-data.js",
file: "formats-data.j... | JavaScript | data-downloader.js | psnsVGC/Le-Spatula | mit | 2,149 | 90 | codeparrot/github-code |
53f4bfe7afa49c12d0994cfa308b0a70326c0e618094efbabe8cb6347caac86c | var expect = require('chai').expect,
FILL_ME_IN;
describe("About Expects", function() {
// We shall contemplate truth by testing reality, via spec expectations.
it("should expect true", function() {
expect(true).to.be.true; //This should be true
});
// To understand reality, we must compare our expect... | JavaScript | koans/00--AboutExpects.js | jmcreasman/javascript-koans | mit | 1,139 | 40 | codeparrot/github-code |
8cc30cc782f0320238dec58da60f4e89973df8cf524d885f88434085222aaa8c | #include <boost/test/unit_test.hpp>
#include <boost/foreach.hpp>
#include "base58.h"
#include "util.h"
#include "bitcoinrpc.h"
using namespace std;
using namespace json_spirit;
BOOST_AUTO_TEST_SUITE(rpc_tests)
static Array
createArgs(int nRequired, const char* address1=NULL, const char* address2=NULL)
... | C++ | src/test/rpc_tests.cpp | ucisal/UCICOIN | mit | 2,399 | 63 | codeparrot/github-code |
60391304dc3423fd928b4eac724a7de2b3a00c0ffaa23325cb91cf77dd4a3bea | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Arabic Cities List</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<link rel="stylesheet" type="text/css" href... | PHP | application/libraries/dompdf/I18N/Arabic/Examples/City.php | spokzers/auditing-system | mit | 6,834 | 207 | codeparrot/github-code |
b5bb51ae362bb2dbb1a00e4f4cfae893117a4eddab1b74bff01375b880fc91fa | // Copyright 2014 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package models
import (
"container/list"
"fmt"
"os/exec"
"strings"
"github.com/gogits/git-module"
"github.com/gogits/gogs/modules/log"
)
type Update... | GO | models/update.go | likeit92/gogs | mit | 3,933 | 159 | codeparrot/github-code |
d6a1e6ac23a79d312f63daf20d3a2183c1de3b32564d4e1aabe76e2cdbe268fb | // Platform: ubuntu
// ab3fc0f59dbba0cc402d40a26276675f05924ae1
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under th... | JavaScript | platforms/ubuntu/platform_www/cordova.js | vangamo/marco | mit | 48,514 | 1,575 | codeparrot/github-code |
da5a2c24e9196f4002df9c7322363100beb9c8617b991c395faa467b7acdbbee | 'use strict';
require('../common');
const assert = require('assert');
const initHooks = require('./init-hooks');
const tick = require('./tick');
const { checkInvocations } = require('./hook-checks');
const fs = require('fs');
const hooks = initHooks();
hooks.enable();
const watcher = fs.watch(__filename, onwatcherCh... | JavaScript | plugins/languageAPI/jsAPI/3rdParty/nodejs/10.1.0/source/test/async-hooks/test-fseventwrap.js | MTASZTAKI/ApertusVR | mit | 808 | 34 | codeparrot/github-code |
10736462aab4d5ad7b2b2518b24aaa474c1d85e69ec75a1e7903d9dd7d5a22f5 | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_VALIDATIONINTERFACE_H
#define BITCOIN_VALIDATIONINTERFACE_H
#inc... | C | src/validationinterface.h | puracore/pura | mit | 3,627 | 74 | codeparrot/github-code |
edb656c892beec0f69422bfad23cae15480632ce6af51db079b300fcfefaffe2 | package org.reactnative.camera.tasks;
import android.util.SparseArray;
import com.facebook.react.bridge.Arguments;
import com.facebook.react.bridge.ReadableArray;
import com.facebook.react.bridge.ReadableMap;
import com.facebook.react.bridge.WritableArray;
import com.facebook.react.bridge.WritableMap;
import com.face... | Java | android/src/general/java/org/reactnative/camera/tasks/TextRecognizerAsyncTask.java | lwansbrough/react-native-camera | mit | 6,049 | 179 | codeparrot/github-code |
b3934e2b6d503ebd39dedfa3a9a861dd2e5448d9e926dda045acfe4304290436 | <?php
namespace LoopAnime\UsersBundle\Command;
use Doctrine\ORM\EntityManager;
use LoopAnime\UsersBundle\Entity\Invitation;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Con... | PHP | src/LoopAnime/UsersBundle/Command/CreateInvitationCommand.php | GodOfConquest/LoopAnime-Website | mit | 3,236 | 89 | codeparrot/github-code |
f965c73c8bcf10f99860b56d9050d5d6741625a5b2bbf0f5cb87df761783e022 | // Copyright 2014-2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MI... | Rust | rust/liballoc/heap.rs | LazyOxen/redox | mit | 6,241 | 178 | codeparrot/github-code |
95b39bee57c81cc34679f78a00d40e2c257c67db4475e3bd117b3b1c9ea75a5e | import Orbit, {
ClientError,
KeyMap,
NetworkError,
Record,
RecordIdentity,
RecordOperation,
ReplaceRecordOperation,
Transform,
TransformNotAllowed,
Schema,
Source
} from '@orbit/data';
import JSONAPISource from '../src/jsonapi-source';
import { jsonapiResponse } from './support/jsonapi';
import '.... | TypeScript | packages/@orbit/jsonapi/test/jsonapi-source-test.ts | jpvanhal/orbit.js | mit | 39,666 | 1,179 | codeparrot/github-code |
13213968207f5260089e0d29c6b4f7c95d2c1b213f3b6c80144575459bfbee43 | using System;
using Microsoft.AspNetCore.Identity;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using Microsoft.Extensions.Options;
using Umbraco.Cms.Core.Cache;
using Umbraco.Cms.Core.Configuration.Models;
using Umbraco.Cms.Core.DependencyInjection;
using U... | C# | src/Umbraco.Web.BackOffice/DependencyInjection/UmbracoBuilder.BackOfficeIdentity.cs | umbraco/Umbraco-CMS | mit | 4,098 | 92 | codeparrot/github-code |
0320d2437d01641071df48a2ac0a220b9a0764bbfe6d78b5b31fc785a7fdcfc8 | package graphql.schema;
import graphql.GraphQLException;
import graphql.introspection.Introspection;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
public class SchemaUtil {
public boolean isLeafType(GraphQLType type) {
GraphQLUnmodifiedType unm... | Java | src/main/java/graphql/schema/SchemaUtil.java | erikogenvik/graphql-java | mit | 6,636 | 161 | codeparrot/github-code |
f5c3d000cfaedf6e0cd3e1242a544e5283cf9628db7f79f287a06b0cf6535923 | /*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org
Copyright (c) 2000-2009 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person obtai... | C | OgreMain/include/OgreRenderSystem.h | ttair/TuxSinbad | mit | 63,716 | 1,454 | codeparrot/github-code |
595bf46a33ce914a1a7cbc89e6a7481b93a26a8e2e314cc708675b37b40b6776 | var R = require('../source');
var eq = require('./shared/eq');
describe('useWith', function() {
function max() { return Math.max.apply(Math, arguments); }
function add1(x) { return x + 1; }
function mult2(x) { return x * 2; }
function div3(x) { return x / 3; }
var f = R.useWith(max, [add1, mult2, div3]);
... | JavaScript | test/useWith.js | CrossEye/ramda | mit | 1,345 | 44 | codeparrot/github-code |
ed7960c05d3e8d1b8398cb0ca1969b5fbf79cb5e03c18b67a2994ff55c28286f | /*
* Ext JS Library 2.0
* Copyright(c) 2006-2007, Ext JS, LLC.
* licensing@extjs.com
*
* http://extjs.com/license
*/
.x-btn{
font:normal 11px tahoma, verdana, helvetica;
cursor:pointer;
white-space: nowrap;
}
.x-btn button{
border:0 none;
background:transparent;
font:normal 11px tahoma,verdana,he... | CSS | src/main/resources/bazooka/public/js/ext/resources/css/button.css | tiagofernandez/bazooka | mit | 3,660 | 159 | codeparrot/github-code |
63df464194f6b4265099037620cee254ca31b2cd65a809eccc52b68ae3c06064 | // Copyright (c) 2013-2014 Sandstorm Development Group, Inc. and contributors
// Licensed under the 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, inc... | C++ | c++/src/kj/memory-test.c++ | mologie/capnproto | mit | 11,840 | 402 | codeparrot/github-code |
f8000aa43dcf3166b5005ddc7baf3bde9598e4386706ca6e089a0460483b33c1 | /*
Copyright 2012 Michael Edwards
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 i... | C# | packages/Glass.Mapper.Sc.Core.4.2.0.184/src/Source/Glass.Mapper.Sc/RenderField/LinkParameterKeys.cs | rmwatson5/Glass-Factory | mit | 1,300 | 48 | codeparrot/github-code |
2e4fb4cba91ae280a2ebcbbf621eb0cd43206cb41f473b05c303028581c73d1d | class EricWeixin::Report::UserData < ActiveRecord::Base
self.table_name = 'weixin_report_user_data'
belongs_to :weixin_public_account
USER_DATA_TYPE = ['summary', 'cumulate']
USER_SOURCE ={
0 => '其他',
30 => '扫二维码',
17 => '名片分享',
35 => '搜号码',
39 => '查询微信公众帐号',
43 => '图文页右上角菜单... | Ruby | app/models/eric_weixin/report/user_data.rb | beslow/eric_weixin | mit | 3,963 | 98 | codeparrot/github-code |
c8c6709ce86b70c299b9df673101e79eed58ef6f3801d4fd457c91dd0f9053cb | # This file is part of Indico.
# Copyright (C) 2002 - 2021 CERN
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see the
# LICENSE file for more details.
from sqlalchemy import func
from indico.modules.rb.models.rooms import Room
from indico.modules.rb.operat... | Python | indico/modules/rb/user_prefs.py | pferreir/indico | mit | 2,767 | 58 | codeparrot/github-code |
8a4e9d6275810330f9987cae360f6c8d4fd192bd907973fd48e48d152c853aec | /***********************************************************
* Credits:
*
* MSDN Documentation -
* Walkthrough: Creating an IQueryable LINQ Provider
*
* http://msdn.microsoft.com/en-us/library/bb546158.aspx
*
* Matt Warren's Blog -
* LINQ: Building an IQueryable Provider:
*
* http://blogs.msdn.com/mattw... | C# | src/LinqToTwitter4/Libraries/LinqToTwitterPcl/LinqToTwitter/TwitterQueryProvider.cs | JoeMayo/LinqToTwitter | mit | 5,760 | 152 | codeparrot/github-code |
05a7dd446a73ccc12ad7d918bfabbc6db39234154584c5f74c83b81858a28e3e | 'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
function getVF(n, opt_pre... | JavaScript | src/ngLocale/angular-locale_so-dj.js | ereddate/angular.js | mit | 2,454 | 121 | codeparrot/github-code |
2315429121578f8475f1645d744999f2d05f11ac5f604e4328224134d583be55 | /*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.tools} object, which contains
* utility functions.
*/
(function() {
var functions = [];
CKEDITOR.on('reset', f... | JavaScript | public/ckeditor/_source/core/tools.js | LeanLaunchLab/LeanLaunchLab | mit | 22,555 | 700 | codeparrot/github-code |
ba97171fe238029f0f1b222419a4660eae22aac5b399b9f6d4e87882c949332e | /* */
System.register(["aurelia-templating"], function (_export) {
"use strict";
var Behavior, _prototypeProperties, Show;
function addStyleString(str) {
var node = document.createElement("style");
node.innerHTML = str;
node.type = "text/css";
document.head.appendChild(node);
}
return {
... | JavaScript | jspm_packages/github/aurelia/templating-resources@0.8.8/system/show.js | behzad88/aurelia-converters-sample | mit | 1,752 | 62 | codeparrot/github-code |
d5dc85e3a0ee1231fe6fe576108f301ae152d7d0781eafc72efb85aad51ed8a3 | using Jil;
using LightNode.Core;
using LZ4;
using System;
using System.IO;
using System.Text;
namespace LightNode.Formatter
{
public class LZ4JilContentFormatter : ContentFormatterBase
{
readonly Options options;
public override string ContentEncoding
{
get
{
... | C# | Source/LightNode.Formatter.Jil.LZ4/LZ4JilContentFormatter.cs | neuecc/LightNode | mit | 2,326 | 72 | codeparrot/github-code |
46d69e4dd9146067483662fea4c0e4c9e931a22c33ed04bd6d2e27440dabd9b1 | /**
* @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 {CssRule, ShadowCss, processRules} from '@angular/compiler/src/shadow_css';
import {normalizeCSS} from '@angu... | TypeScript | packages/compiler/test/shadow_css_spec.ts | gjungb/angular | mit | 15,648 | 356 | codeparrot/github-code |
433a8b57f98d319f15aa9ab1e1f2484f361a93c9676ef86d49aea3652364898d | /**
** pequeña función para animar scroll
*/
$(document).ready(function() {
$('.popoverable').popover({});
$('a[href*=#]:not([href=#])').click(function() {
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
var target = $(this.hash);
... | JavaScript | js_old/condatos.js | e-gob/condatos | mit | 1,703 | 69 | codeparrot/github-code |
52767f54458e09b124786fe7808b1c775ebd8e28715ed145157d4f81b4e5b87f | /* global define, require */
(function (root, factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['seriously'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
factory(require('seriously'));
} else {
if (!root.Se... | JavaScript | effects/seriously.select.js | hwdro/Seriously.js | mit | 3,735 | 179 | codeparrot/github-code |
7005d8f5c1ef18b372fdf09d5d2e8f20f934421f45115b1ce89c2786b49d2f33 | <?php
namespace DuxCms\Model;
use Think\Model;
/**
* 表单字段操作
*/
class FieldFormModel extends Model {
//完成
protected $_auto = array (
array('show','intval',3,'function'),
array('post','intval',3,'function'),
);
/**
* 获取列表
* @return array 列表
*/
public function loadLis... | PHP | Application/DuxCms/Model/FieldFormModel.class.php | jsRuner/paiken | mit | 3,237 | 136 | codeparrot/github-code |
ef381031e371d2ac66dfa13ea82ea7cb1a03e0546f5935afa948441f6acfa1d5 | <HTML>
<HEAD>
<TITLE>
EMBOSS: dbigcg
</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" text="#000000">
<!--#include file="header1.inc" -->
dbigcg
<!--#include file="header2.inc" -->
<H2>
Function
</H2>
<!--#include file="inc/dbigcg.ione" -->
<H2>
Description
</H2>
<b>dbigcg</b> indexes a GCG-format database
... | HTML | lib/EMBOSS-6.6.0/doc/programs/master/emboss/apps/dbigcg.html | lauringlab/CodonShuffle | mit | 4,097 | 207 | codeparrot/github-code |
53456f469cd1fd4ea580cc0161ca84cf925cd9cf480867844ab8c0ecf3bbd8f1 | /*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2014 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person obta... | C++ | Components/Paging/src/OgreGrid2DPageStrategy.cpp | paroj/ogre | mit | 16,843 | 460 | codeparrot/github-code |
5c80bb53e0af881e5641e070e93e3fc18fbf761a3c3647e9700da624657b2883 | using System;
using System.Diagnostics;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
namespace LinqToDB.Data
{
using System.Data;
public class TraceInfo
{
public TraceInfo(TraceInfoStep traceInfoStep)
{
TraceInfoStep = traceInfoStep;
}
public TraceInfoStep Tra... | C# | Source/LinqToDB/Data/TraceInfo.cs | genusP/linq2db | mit | 2,108 | 78 | codeparrot/github-code |
53bf6238e25d6e1a44809ac8e28fb101f7985ef2a3d67d7bd81371a303bc68ee | #vim: set encoding=utf-8
from copy import deepcopy
from lxml import etree
from regparser.notice.diff import DesignateAmendment
from regparser.notice.util import spaces_then_remove
from regparser.tree.struct import Node, treeify
from regparser.tree.xml_parser import interpretations, tree_utils
def _is_interp_amend(a... | Python | regparser/notice/build_interp.py | EricSchles/regulations-parser | cc0-1.0 | 2,847 | 76 | codeparrot/github-code |
420b6f3fc23e0ee51df360c1c7684b8d52f5c2f1b82c152c12129aa7d590b153 | from datetime import datetime
from regulations.generator import api_reader
from regulations.generator.layers.utils import convert_to_python
def fetch_regulations_and_future_versions():
""" Returns a dict for all the regulations in the API. The dict includes
lists of future versions for each regulation. """
... | Python | regulations/generator/versions.py | jeremiak/regulations-site | cc0-1.0 | 1,918 | 57 | codeparrot/github-code |
63fe4b7369b081e0d029ff415f2c3d3f5f27ab3fc32e136e4d726a2470b7600e | <html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-12... | HTML | plugins/robotml/org.eclipse.papyrus.robotml.doc/html/RobotMLModellingLanguage.html | RobotML/RobotML-SDK-Juno | epl-1.0 | 21,681 | 450 | codeparrot/github-code |
8f4baf5ad8edf78eca53eb3fa04c05c0d299358ddde4e316f291c67936add083 | // mods by Patrick OReilly
// Twitter: @pato_reilly Web: http://patricko.byethost9.com
var game = new Phaser.Game(800, 600, Phaser.CANVAS, 'phaser-example', { preload: preload, create: create, update: update, render: render });
function preload() {
game.load.image('dude', 'assets/sprites/phaser-dude.png');
... | JavaScript | source/phasereditor/phasereditor.resources.phaser.examples/phaser-examples-master/examples/arcade physics/bounce knock.js | boniatillo-com/PhaserEditor | epl-1.0 | 1,861 | 80 | codeparrot/github-code |
40dc988da9ce138f69649543860324d33cfe994d01ebf7b66db8dbfd0603eff0 | /*!
* Copyright 2002 - 2013 Webdetails, a Pentaho company. All rights reserved.
*
* This software was developed by Webdetails and is provided under the terms
* of the Mozilla Public License, Version 2.0, or any later version. You may not use
* this file except in compliance with the license. If you need a copy of the... | JavaScript | js-lib/expanded/cdf/OpenMap/open_map.js | SteveSchafer-Innovent/innovent-pentaho-birt-plugin | epl-1.0 | 5,763 | 217 | codeparrot/github-code |
f872a2ea03817cbcb9dbd53779110e2df5a7b5784e54d39d4dd5cae1a87d1904 | /*******************************************************************************
* Copyright (c) 2004 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is availabl... | Java | chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/event/Oval3DRenderEvent.java | sguan-actuate/birt | epl-1.0 | 2,615 | 110 | codeparrot/github-code |
257e21af4c272183a856ffdcc84800cc4ccc32ebc90871ab5d168845df1677c6 | /*******************************************************************************
* Copyright (c) 2012 Oak Ridge National Laboratory.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... | Java | applications/alarm/alarm-plugins/org.csstudio.alarm.beast/src/org/csstudio/alarm/beast/TimestampHelper.java | css-iter/cs-studio | epl-1.0 | 1,938 | 57 | codeparrot/github-code |
8e01b0a238bbdc268dfb5ca9314f5de4f91c1006025fdf753d4499bd5bd1df47 | // COPIED FROM org.eclipse.jface.internal.text.html
// to get around "discouraged access" errors
/*******************************************************************************
* Copyright (c) 2006, 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made availa... | Java | source/thirdparty/jsdt/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/ui/text/html/HTMLMessages.java | boniatillo-com/PhaserEditor | epl-1.0 | 2,625 | 84 | codeparrot/github-code |
368e3ef3e8f234085ccc847e110e662771065b2e638ddc2a8ab4b33d049d1603 | /************************************************
* Copyright (c) IBM Corp. 2014
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v... | C++ | skv/server/skv_server_cursor_manager_if.hpp | eile/skv | epl-1.0 | 15,078 | 573 | codeparrot/github-code |
6ad256f6956798d86f2cf8eaa6863e5419e503958d9c19197d73b6e3678417b1 | """
controller device support class(es)
http://libvirt.org/formatdomain.html#elementsControllers
"""
from virttest.libvirt_xml import accessors
from virttest.libvirt_xml.devices import base, librarian
class Controller(base.TypedDeviceBase):
__slots__ = ('type', 'index', 'model', 'driver', 'address')
def _... | Python | virttest/libvirt_xml/devices/controller.py | rbian/virt-test | gpl-2.0 | 1,764 | 42 | codeparrot/github-code |
0c50a53ffaf73488dc364af0e3539ce4016b025d486fa9cca49ac2855f581538 | /*
* rlm_eap_mschapv2.c Handles that are called from eap
*
* Version: $Id: rlm_eap_mschapv2.c,v 1.8.4.1 2006/03/07 18:38:17 aland Exp $
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software ... | C | user/freeradius/src/modules/rlm_eap/types/rlm_eap_mschapv2/rlm_eap_mschapv2.c | ZHAW-INES/rioxo-uClinux-dist | gpl-2.0 | 17,692 | 651 | codeparrot/github-code |
2f1efc1e728c55180c6deae18333de9f33695d273c7c3b9b88b7654e7db3adc2 | package net.heartsome.cat.converter.word2007;
import java.io.File;
import org.eclipse.core.runtime.NullProgressMonitor;
import net.heartsome.cat.converter.StringSegmenter;
import net.heartsome.cat.converter.word2007.common.PathConstant;
import net.heartsome.cat.converter.word2007.common.PathUtil;
import net.heartsom... | Java | hsconverter/net.heartsome.cat.converter.word2007/src/net/heartsome/cat/converter/word2007/TestWord2007.java | heartsome/tmxeditor8 | gpl-2.0 | 7,288 | 160 | codeparrot/github-code |
4cfae2b4295e0c57a6ff65b68aecf14cc467484874c73b7216ab4d4cb3cb7b52 | /*
* Representation.cpp
*****************************************************************************
* Copyright © 2015 - VideoLAN and VLC Authors
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
* by the Free Sof... | C++ | modules/demux/hls/playlist/Representation.cpp | cogddo/vlc | gpl-2.0 | 2,324 | 80 | codeparrot/github-code |
508a09a66ce089e0bace3e7fd1aa99815d39db462f92aeaa2d15503bd342c881 | /******************************************************************************
*
* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the ... | C | manufacturer/EW7833UAC_linux_4.3.21_kernel_3.16-4.4/EW7833UAC_linux_v4.3.21_17997.20160531/hal/rtl8814a/rtl8814a_dm.c | Kawashima-Azumi/rtlwifi-legacy | gpl-2.0 | 14,403 | 547 | codeparrot/github-code |
7da537d085f502d3dc1715e69ddd3f733caeacd2a4e08b26fc1edbb63c0c16a6 | (function ($, document) {
var guideController;
function init(page, type) {
Dashboard.showLoadingMsg();
var apiClient = ApiClient;
apiClient.getJSON(apiClient.getUrl('Startup/Configuration')).done(function (config) {
var providerId = null;
if ((config.LiveT... | JavaScript | MediaBrowser.WebDashboard/dashboard-ui/scripts/wizardlivetvguide.js | TomGillen/MediaBrowser | gpl-2.0 | 2,463 | 102 | codeparrot/github-code |
5406ff10626a8b070979f123766d06847c7a85437deed339e27f993c40d481fe | /***************************************************************************
qgswmscapabilities.cpp
---------------------
begin : January 2014
copyright : (C) 2014 by Martin Dobias
email : wonder dot sk at gmail dot com
**************************************... | C++ | src/providers/wms/qgswmscapabilities.cpp | m-kuhn/QGIS | gpl-2.0 | 78,120 | 2,213 | codeparrot/github-code |
f1188eb97f6954173ddce7648672fbdb71e1253c43ede810b49134de3ee601c6 | // SPDX-License-Identifier: GPL-2.0-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
*
* Copyright (C) 2004-2011 Marcel Holtmann <marcel@holtmann.org>
*
*
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#define _GNU_SOURCE
#include <stdio.h>
#include <errno.h>
#include <ctype.h>
#include <sys/s... | C | tools/parser/lmp.c | cktakahasi/bluez | gpl-2.0 | 27,663 | 1,351 | codeparrot/github-code |
473b62df076cdd795984ca5fb984b6dda29867112f6d530b87e52dda5122c4df | package net.sf.jabref.gui.importer;
import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.util.LinkedHashMap;
import java.util.Map;
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ActionMap;
import javax.swin... | Java | src/main/java/net/sf/jabref/gui/importer/FetcherPreviewDialog.java | ambro2/jabref | gpl-2.0 | 9,720 | 306 | codeparrot/github-code |
f63a867170cc4312ca6644620d071ee1a551a37af30d1747fd725b8eead578c9 | /**
* ContentTranslation Tools
* A tool that allows editors to translate pages from one language
* to another with the help of machine translation and other translation tools
*
* @file
* @ingroup Extensions
* @copyright See AUTHORS.txt
* @license GPL-2.0+
*/
( function ( $, mw ) {
'use strict';
/**
* Cont... | JavaScript | modules/translation/ext.cx.translation.js | Rjaylyn/mediawiki-extensions-ContentTranslation | gpl-2.0 | 14,281 | 471 | codeparrot/github-code |
b40adb3a3d22a76c509c8fc9e3bfd537f1955caecb33ece75fa20d0339a4f784 | <?php
/**
* This file is part of the eZ Publish Kernel package.
*
* @copyright Copyright (C) eZ Systems AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/
namespace eZ\Bundle\EzPublishCoreBundle\Command;
use eZ\Publish\SPI\Persis... | PHP | eZ/Bundle/EzPublishCoreBundle/Command/ReindexCommand.php | ezecosystem/ezpublish-kernel | gpl-2.0 | 16,075 | 465 | codeparrot/github-code |
a0e7a67286d9db95b8e81783ef3e56988fe4215e7f897bf4b717a827ae0994da | // **********************************************************************
//
// Copyright (c) 2003-2015 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// ***************************************************... | C++ | cpp/src/Ice/SliceChecksums.cpp | buildhappy/ice | gpl-2.0 | 1,548 | 81 | codeparrot/github-code |
bfbf9b1611ba9581ba09c3b5a6df3db4287fa3e558a497231d2c27e5b7de8646 | <?php
function clean_galleries($order_by = "dbDate")
{
global $wpdb;
$galleries = get_posts("post_type=ocmx_gallery&showposts=-1");
foreach($galleries as $gallery) :
$postid = $gallery->ID;
$use_sql = "SELECT * FROM ".$wpdb->prefix."ocmx_gallery WHERE LinkTitle = '".$postid. "'";
$get_gallery = $wpdb->g... | PHP | wp-content/themes/casual/ocmx/front-end/gallery-functions.php | mgamini/wpthemes | gpl-2.0 | 3,053 | 91 | codeparrot/github-code |
32f39db2944ab550ba5f2b22d04fbdddb3e8c0ca82043763f011771a31cd38ad | /*
# recorder.h: the recording part of the streaming module of idjc
# Copyright (C) 2007-2009 Stephen Fairchild (s-fairchild@users.sourceforge.net)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Softwar... | C | c/recorder.h | radiocicletta/idjc-x | gpl-2.0 | 4,834 | 128 | codeparrot/github-code |
43215620f658fee10c44dd648ad7d4349ebe9c8bae34ac8b3b535fb0bcb11a99 | //C- -*- C++ -*-
//C- -------------------------------------------------------------------
//C- DjVuLibre-3.5
//C- Copyright (c) 2002 Leon Bottou and Yann Le Cun.
//C- Copyright (c) 2001 AT&T
//C-
//C- This software is subject to, and may be distributed under, the
//C- GNU General Public License, either Version 2 of ... | C++ | tools/djvm.cpp | Stannislav/djvulibre-3.5.25 | gpl-2.0 | 11,189 | 321 | codeparrot/github-code |
b3580feecc6b3e7f19ea63e9fc5b5a5d06b96028d5984402f53d78c3dc085c41 | /*
* linux/mm/oom_kill.c
*
* Copyright (C) 1998,2000 Rik van Riel
* Thanks go out to Claus Fischer for some serious inspiration and
* for goading me into coding this file...
* Copyright (C) 2010 Google, Inc.
* Rewritten by David Rientjes
*
* The routines in this file are used to kill a process when
*... | C | mm/oom_kill.c | neobuddy89/hammerhead | gpl-2.0 | 23,314 | 799 | codeparrot/github-code |
754905c53752cd9a0ef7363043971610b757bdd0a7ac49c752025411ee89f382 | <div class="container" id="mainContent">
<div id="topOfPage">
</div>
<h1>
Edit Course Details
</h1>
<br>
<input id="course-time-zone" type="hidden" value="UTC">
<div class="panel panel-primary">
<div class="panel-heading">
<strong>
Course:
</strong>
<div class="pull-right... | HTML | src/test/resources/pages/instructorCourseEditEditInstructorPrivilegesModal.html | kguo901/teammates | gpl-2.0 | 98,652 | 1,842 | codeparrot/github-code |
e19f44b4e350a441dccd293951f6edcbe0fd8f97cf5658a5af8c6e5bd266a977 | <?php
/**
* Add a custom Meta Box
*
* @param array $meta_box Meta box input data
*/
function zilla_add_meta_box( $meta_box )
{
if( !is_array($meta_box) ) return false;
// Create a callback function
$callback = create_function( '$post,$meta_box', 'zilla_create_meta_box( $post, $meta_box["args"] );'... | PHP | wp-content/themes/storey/framework/zilla-admin-metaboxes.php | TyRichards/mind_above_matter | gpl-2.0 | 12,756 | 400 | codeparrot/github-code |
7ed0d9546b8a2ca43aa1f9672fc98cd365f00d9b4e8896286ffdb333d1d7b418 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* ExpressionEngine - by EllisLab
*
* @package ExpressionEngine
* @author EllisLab Dev Team
* @copyright Copyright (c) 2003 - 2014, EllisLab, Inc.
* @license http://ellislab.com/expressionengine/user-guide/license.html
* @link htt... | PHP | xcrunner/expressionengine/libraries/Referrer.php | runrobrun/ee-xc-site | gpl-2.0 | 4,314 | 145 | codeparrot/github-code |
339f04aa4205a561cc5424349534da0d53c29395bf9a955861482c51db07b3b8 | /* Dia -- an diagram creation/manipulation program
* Copyright (C) 1998 Alexander Larsson
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your o... | C | objects/standard/ellipse.c | brunetton/dia | gpl-2.0 | 20,876 | 692 | codeparrot/github-code |
437eed447f3a4441731beecafcbd0808139deafd0fdc23d85d8b0efc43a95cb5 | ///////////////////////////////////////////////////////////////////////////////
// For information as to what this class does, see the Javadoc, below. //
// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, //
// 2007, 2008, 2009, 2010, 2014, 2015 by Peter Spirtes, Richard Scheines, Joseph... | Java | tetrad-lib/src/test/java/edu/cmu/tetrad/test/TestTimeLagGraph.java | ps7z/tetrad | gpl-2.0 | 3,653 | 122 | codeparrot/github-code |
37b76e3b0bf5ad850ecad943820d914eb8663d57e984fa8596d86c5f80cb5c1e | <?php
class AtayudasMapBuilder {
const CLASS_NAME = 'lib.model.ciudadanos.map.AtayudasMapBuilder';
private $dbMap;
public function isBuilt()
{
return ($this->dbMap !== null);
}
public function getDatabaseMap()
{
return $this->dbMap;
}
public function doBuild()
{
$this->dbMap = Propel::... | PHP | lib/model/ciudadanos/map/AtayudasMapBuilder.php | cidesa/siga-universitario | gpl-2.0 | 3,944 | 110 | codeparrot/github-code |
abcd9f8531f8311a28d3926324036a177d096d36b4d882053eea87dfdf91a847 | /*
* fs/cifs/cifsencrypt.c
*
* Copyright (C) International Business Machines Corp., 2005,2006
* Author(s): Steve French (sfrench@us.ibm.com)
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the F... | C | fs/cifs/cifsencrypt.c | cnauman/linux | gpl-2.0 | 23,654 | 831 | codeparrot/github-code |
854c517c9e855d7f2c4f3d6d88de24c53471b8e8ab3fb2e8b31d416e4b3995c0 | /*******************************************************************************
* This file is part of OpenNMS(R).
*
* Copyright (C) 2007-2012 The OpenNMS Group, Inc.
* OpenNMS(R) is Copyright (C) 1999-2012 The OpenNMS Group, Inc.
*
* OpenNMS(R) is a registered trademark of The OpenNMS Group, Inc.
*
* OpenNMS(... | Java | opennms-model/src/main/java/org/opennms/netmgt/model/discovery/IPAddressRange.java | rfdrake/opennms | gpl-2.0 | 9,915 | 331 | codeparrot/github-code |
73c7d8e655bdbf9bbf410261bc3222e5dc0d772c9c3fe97b76b7f8ab544df4fc | /* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
This file is part of systemd.
Copyright 2010 Lennart Poettering
***/
typedef struct Path Path;
typedef struct PathSpec PathSpec;
#include "unit.h"
typedef enum PathType {
PATH_EXISTS,
PATH_EXISTS_GLOB,
PATH_DIRECTORY_NOT_EMPTY,
... | C | src/core/path.h | vathpela/systemd | gpl-2.0 | 1,754 | 84 | codeparrot/github-code |
82335d75d7c332704ff78e383bedfd5752867259318e304d89c245a98be9b7f1 | /*
JPC: An x86 PC Hardware Emulator for a pure Java Virtual Machine
Copyright (C) 2012-2013 Ian Preston
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as published by
the Free Software Foundation.
This progra... | Java | src/org/jpc/emulator/execution/opcodes/rm/fclex.java | perkinslr/JPC | gpl-2.0 | 1,690 | 60 | codeparrot/github-code |
f570b42df1206beddf4bf73e6d51bf42ebaa54fbb83c32d144313115e7b33e6e | /* XRoar - a Dragon/Tandy Coco emulator
* Copyright (C) 2003-2010 Ciaran Anscomb
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your opt... | C | source/fs_unix.c | CrashSerious/PS3Roar | gpl-2.0 | 3,788 | 174 | codeparrot/github-code |
048ea66a2ac0d8d993c298bfe976fc50d1851f80180a74537c85de2d73c1e7a5 | /*
* RemoveStreamMessage.java
*
* Created on September 6, 2005, 3:14 PM
*
*/
package eunomia.messages.receptor.msg.cmd;
import eunomia.messages.Message;
import eunomia.messages.receptor.AbstractCommandMessage;
import eunomia.messages.receptor.CommandMessage;
import java.io.IOException;
import java.io.ObjectInput... | Java | client/trunk/shared/messages/src/eunomia/messages/receptor/msg/cmd/RemoveStreamMessage.java | nologic/nabs | gpl-2.0 | 1,347 | 63 | codeparrot/github-code |
23d80efc99dfe91ecb07e5216cd50b5ee56c6ab5872f6dff19eb54ea064b9107 | $(window).bind({
load: function() {
spNavReverse();
}
});
var imgWidth, ty, labelSecH, ua, sliderTimer, labelSecPos;
ua = navigator.userAgent.toLowerCase();
jQuery.easing['jswing'] = jQuery.easing['swing'];
jQuery.extend( jQuery.easing,{
def: 'easeOutQuad',
easeOutQuart: function (x, t, b, c, d) {
r... | JavaScript | html/user_data/packages/default_en-US/shared/js/common.js | ohnmarsoe/uverworld | gpl-2.0 | 13,480 | 630 | codeparrot/github-code |
0796f70f3e815884334f45f364fee2672e5b05b2cada5c949bd71c8d1b093a7a | /*
* ircd-ratbox: A slightly useful ircd.
* unix.c: various unix type functions
*
* Copyright (C) 1990 Jarkko Oikarinen and University of Oulu, Co Center
* Copyright (C) 2005 ircd-ratbox development team
* Copyright (C) 2005 Aaron Sethman <androsyn@ratbox.org>
*
* This program is free software; you can re... | C | libratbox/src/unix.c | asterIRC/DakotaIRCd-old | gpl-2.0 | 3,219 | 156 | codeparrot/github-code |
527d9263cc01fc3251e3064fee22d6309815b8675287a26021065be057732de3 | /*
* Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/>
* Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either ver... | C++ | src/server/game/AuctionHouse/AuctionHouseMgr.cpp | mynew4/Trinitycore-1 | gpl-2.0 | 33,162 | 888 | codeparrot/github-code |
e011c058b9fd918473d2a1c90f5d97b5f19d59906f3a855fcf7bdd768ebe8bf5 | /* ***** BEGIN LICENSE BLOCK *****
* Source last modified: $Id: rv_depack.c,v 1.1.1.1.2.1 2005/05/04 18:21:20 hubbe Exp $
*
* REALNETWORKS CONFIDENTIAL--NOT FOR DISTRIBUTION IN SOURCE CODE FORM
* Portions Copyright (c) 1995-2005 RealNetworks, Inc.
* All Rights Reserved.
*
* The contents of this file, and the f... | C | package/multimedia/libplayer/src/audio_codec/libraac/rv_depack.c | hardkernel/buildroot | gpl-2.0 | 9,904 | 293 | codeparrot/github-code |
d089d0dbce8ff2c05fe81667face7bcf337f80920c7acb02ceaad0352af2bea0 | /*BEGIN_LEGAL
Intel Open Source License
Copyright (c) 2002-2013 Intel Corporation. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
Redistributions of source code must retain the above copyright noti... | C++ | zsim-nvmain/pin_kit/extras/components/include/sync/os-posix-time.hpp | cyjseagull/SHMA | gpl-2.0 | 3,901 | 125 | codeparrot/github-code |
8ecb0730c43b7045f533b589aacd8479b6676138dd13655cd9f9042417dd28ae | /* asn_public.h
*
* Copyright (C) 2006-2016 wolfSSL Inc.
*
* This file is part of wolfSSL.
*
* wolfSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your op... | C | wolfssl/wolfcrypt/asn_public.h | jakobsa/wolfssl | gpl-2.0 | 9,838 | 287 | codeparrot/github-code |
6aeab56580e8240c1bc928fed1a051e6585cd17a40f89ba443ae4c0c3c84d4d2 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you... | Java | examples/Math-issue-309/src/test/java/org/apache/commons/math/TestUtils.java | justinwm/astor | gpl-2.0 | 13,485 | 354 | codeparrot/github-code |
c9c66c627aed20d671e56f06e21d93c9137799ff9c74d9b8c02bcd2b597187c6 | #include <stdio.h>
#include <netdb.h>
#include <string.h>
#include <stdlib.h>
#include <limits.h>
#include <getopt.h>
#include <arptables.h>
#include <linux/netfilter_arp/arpt_mangle.h>
static void
help(void)
{
printf(
"mangle target v%s options:\n"
"--mangle-ip-s IP address\n"
"--mangle-ip-d IP address\n"
"--mangle-... | C | external/ebtables/userspace/arptables/extensions/arpt_mangle.c | skinzor/henkate_kernel_j5-stock | gpl-2.0 | 5,421 | 216 | codeparrot/github-code |
ca0ec9d6f1c8924868c9233503406ab6c96f64181e78ad4a13224475790f7c13 | <HTML>
<CENTER><A HREF = "http://lammps.sandia.gov">LAMMPS WWW Site</A> - <A HREF = "Manual.html">LAMMPS Documentation</A> - <A HREF = "Section_commands.html#comm">LAMMPS Commands</A>
</CENTER>
<HR>
<H3>fix temp/rescale command
</H3>
<P><B>Syntax:</B>
</P>
<PRE>fix ID group-ID temp/rescale N Tstart Tstop windo... | HTML | doc/fix_temp_rescale.html | nchong/icliggghts | gpl-2.0 | 6,368 | 140 | codeparrot/github-code |
409225371f243da3b4600d94627ce9721fb7d612d1257cfcdcfc0a8892c9bfc2 | /*
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
* Copyright (C) 2008 TrinityCore <http://www.trinitycore.org/>
* Copyright (C) 2008-2014 Hellground <http://hellground.net/>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License a... | C | src/game/CreatureAI.h | superwow/hell.core | gpl-2.0 | 7,782 | 207 | codeparrot/github-code |
5887d703386475973b0be68cc38ed33211777b1acee22dfafa924259872772fe | // File: lzham_prefix_coding.cpp
// See Copyright Notice and license at the end of include/lzham.h
#include "lzham_core.h"
#include "lzham_prefix_coding.h"
#ifdef LZHAM_BUILD_DEBUG
//#define TEST_DECODER_TABLES
#endif
namespace lzham
{
namespace prefix_coding
{
bool limit_max_code_size(uint num_syms, u... | C++ | lzham/lzham_prefix_coding.cpp | fgenesis/liblvpa | gpl-2.0 | 11,012 | 351 | codeparrot/github-code |
69e6d960801e296c0b2cfdb1920ec3fc547d2f76a1e02cdbfba94d8285b8025b | /*
* Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | Java | modules/controls/src/test/java/javafx/scene/control/cell/ChoiceBoxTreeTableCellTest.java | loveyoupeng/rt | gpl-2.0 | 18,681 | 450 | codeparrot/github-code |
e50b953c99de9e88dccfe2ea1ea63aba3f9dc9aac58c3328eebbaeb53f387b4d | /* Branch prediction routines for the GNU compiler.
Copyright (C) 2000-2014 Free Software Foundation, Inc.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 3, or (a... | C | gcc/predict.c | xinchoubiology/gcc | gpl-2.0 | 92,251 | 3,242 | codeparrot/github-code |
963d47cb670ab5edbdcfa7ddf36fb98c7cfb58e6e9a7e24a5600803e406c3c9a | #include <bits/stdc++.h>
using namespace std;
int l;
char a[100005],b[100005];
bool au[26],bu[26];
bool usingA() {
for(int i=0;i<26;i++)
if(bu[i] && !au[i])
return false;
return true;
}
bool usingB() {
for(int i=0;i<26;i++)
if(au[i] && !bu[i])
retu... | C++ | COJ/1769.cpp | orlandoisay/Competitive-programming-solutions | gpl-2.0 | 654 | 40 | codeparrot/github-code |
d7bafb0b2970c0cb715d98ce0f3670bc66110ab93156ff648d4a2b3b16bfcc23 | /* Copyright (c) 2011-2013, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the... | C | arch/arm/mach-msm/ipc_socket.c | paul-xxx/kernel_sony_fuji-3.7 | gpl-2.0 | 12,608 | 544 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.