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 |
|---|---|---|---|---|---|---|---|---|
96d570509fe339dc0874b39b64efd0b369884d812c8b68008b93d7fca0feff3a | #include "module.h"
#include "lauxlib.h"
#include "lmem.h"
#include "platform.h"
#include "user_interface.h"
#include "c_types.h"
#include "c_string.h"
#include "gpio.h"
#include "hw_timer.h"
#include "pin_map.h"
#include "driver/gpio16.h"
#define TIMER_OWNER 'P'
#define xstr(s) str(s)
#define str(s) #s
// Maximum d... | C | app/modules/gpio_pulse.c | devsaurus/nodemcu-firmware | mit | 13,773 | 498 | codeparrot/github-code |
f9bb8151474ca69b3111ca583678461854307a6b7a2e33da5584a2a0220384fb | <?php
namespace Proxy\Http;
use Proxy\Http\ParamStore;
class Request {
private $method;
private $url;
private $protocol_version = '1.1';
// Custom attributes to go with each Request instance - has nothing to do with HTTP
public $params; // parameters
// HTTP headers for this request - al... | PHP | src/Http/Request.php | Athlon1600/php-proxy | mit | 10,353 | 371 | codeparrot/github-code |
0e2c1c91afbc5ed6ea6a0e71134367966002c43c9426e6be06abbafef41d4af1 | # -*- encoding : utf-8 -*-
# simple testing support
#
require 'test/unit'
def Testing(*args, &block)
Class.new(Test::Unit::TestCase) do
eval("This=self")
def self.slug_for(*args)
string = args.flatten.compact.join('-')
words = string.to_s.scan(%r/\w+/)
words.map!{|word| wor... | Ruby | test/lib/testing.rb | dojo4/exact-target | mit | 2,002 | 76 | codeparrot/github-code |
fd73ddb56564a16d7d46d6872e616a622d680d4da6f2853162b2dbb01511cbdd | define([
'lodash'
],
function (_) {
'use strict';
function SqlQueryBuilder(target) {
this.target = target;
}
function renderTagCondition (tag, index) {
var str = "";
var operator = tag.operator;
var value = tag.value;
if (index > 0) {
str = (tag.condition || 'AND') + ' ';
}
... | JavaScript | src/public/query_builder.js | anzai/grafana-sqldb | mit | 3,612 | 117 | codeparrot/github-code |
89ac079b52e45b876b511ae7bd54fb5c7e7d7a362e8af763a12e6ef12b9c0d06 | #! /usr/bin/env python
import json
import sys
sys.path.append('..')
from CodewebsIndexClient import CodewebsIndexClient
def loadTextFile(fname):
with open(fname) as fid:
return fid.read()
def wrap(ast,code,map,codeblockid):
astjson = json.loads(ast)
wrappedJSON = {'ast': astjson,
... | Python | src/analogyFinder/src/daemons/example/exampleclient.py | tanonev/codewebs | mit | 1,439 | 57 | codeparrot/github-code |
d4b53b9c077ca2b44834aaed2405e7c37ff4b8482bb5e3e65b8caeb7dafe874c | # -*- coding: utf-8 -*-
# OBS! Dårlig kodingstil! For eksempel, kommentarer skal høre til funksjoner og være mellom '''disse'''
from sm import SM
import sys
class River(SM):
river_db = [] # En klønete måte å definere database på, bør være i egen klasse og kanskje ikke en liste?
# Blir kalt hve... | Python | Uke-15-ICA-9/ICA-8-Python/Model/river.py | Mathih13/IS-105_2016_Gruppe-5 | mit | 16,033 | 302 | codeparrot/github-code |
85a44a7ed4c17d16aed26583fb422f3039166227d0baba638c6b541750f232c9 | # -*- coding: utf-8 -*-
import os
import sys
import re
import shutil
#1.24.4.6387
PayloadProc = 0x0045DCC8
###############################################################
carsh_re = re.compile(r"\={78}[\s\S]*\-{78}")
war3_version_re = re.compile(r"Warcraft\ III\ \(build\ (?P<VERSION>[0-9]*)\)")
map_path_re = re.comp... | Python | parse_carsh.py | actboy168/war3-parsecarsh | mit | 15,442 | 398 | codeparrot/github-code |
219c0fbf9b2bc09f7511f2bb614f259fc4cd200299deec6e526b04716f7c6f08 | <?php
require_once __DIR__.'/actions.php';
require_once APP_ROOT.'/model/InstallLog.php';
require_once APP_ROOT.'/model/Random.php';
require_once APP_ROOT.'/model/AttachedFile.php';
class installActions extends packageActions
{
const TOKEN_KEY_PREFIX = 'ios_plist_token_';
protected function makeToken()
{
$pkg_id... | PHP | mainmodules/package/actions/installActions.php | KLab/emlauncher | mit | 2,764 | 103 | codeparrot/github-code |
8c5c590f2ace5105ce990bdea0a1c0922b1c8328b85891b4acdacbc4b1e0b58c | package client
import (
"github.com/golang/glog"
"github.com/oikomi/FishChatServer2/http_server/msg-api/conf"
sd "github.com/oikomi/FishChatServer2/service_discovery/etcd"
"google.golang.org/grpc"
)
type ManagerRPCCli struct {
conn *grpc.ClientConn
}
func NewManagerRPCCli() (managerRPCCli *ManagerRPCCli, err er... | GO | http_server/msg-api/rpc/client/manager.go | liberalman/im | mit | 963 | 35 | codeparrot/github-code |
4de032dba9b6a9bf93d9d0bb271ec6e716cc0cd71a3ab01a4c71a5d4dffc36e0 | extern crate dotenv;
extern crate lettre;
extern crate uuid;
use std::env;
use lettre::email::{EmailBuilder, SendableEmail};
use lettre::transport::EmailTransport;
use lettre::transport::smtp;
struct Report {
contents: String,
recipient: String,
}
impl SendableEmail for Report {
fn from_address(&self) ->... | Rust | vol2/src/bin/day22.rs | zsiciarz/24daysofrust | mit | 1,898 | 64 | codeparrot/github-code |
4a6f0b56ea395918f79ede72626a8f10d5ae4f7b0ba5fe2bc9d71cc8d931bd7d | using Sampling
using Base.Test
function test_binomsampler(s, params::(Int, Float64), ns::Int, tol::Float64)
# s: the sampler to be tested
# params: the binomial parameters, in the form of (n, p)
# n: the number of samples to be generated
# tol: the tolerance of deviation
n, p = params
if p == ... | Julia | test/binomial.jl | lindahua/Sampling.jl | mit | 1,551 | 53 | codeparrot/github-code |
615196a719eae22804d759f3e53554617a28ea4897f79268d04b595ed58477e9 | 'use strict';
angular.module('copayApp.controllers').controller('createController',
function($scope, $rootScope, $location, $timeout, $log, lodash, go, profileService, configService, isMobile, isCordova) {
var self = this;
var defaults = configService.getDefaults();
this.isWindowsPhoneApp = isMobile.Win... | JavaScript | src/js/controllers/create.js | GeopaymeEE/btcpaysme | mit | 2,425 | 91 | codeparrot/github-code |
9dcc1d74194cf747cd842dbca7bf6c0bedd2c10529c9d371a87c419fdfc60ca0 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Net.Http;
using System.Net.Http.Headers;
using System.IO;
namespace Aspose.Imaging.Live.Demos.UI.Helpers
{
///<Summary>
/// MultipartFormDataStreamProviderSafe class
///</Summary>
public class MultipartFormDataStream... | C# | Demos/src/Aspose.Imaging.Live.Demos.UI/Helpers/MultipartFormDataStreamProviderSafe.cs | aspose-imaging/Aspose.Imaging-for-.NET | mit | 1,515 | 55 | codeparrot/github-code |
314a327daf5187d522f91eefeb0ef7900a653f2ee819c710ee144ccefcca14ca | package com.safecharge.request;
import javax.validation.ConstraintViolationException;
import javax.validation.Valid;
import javax.validation.constraints.Size;
import com.safecharge.model.Addendums;
import com.safecharge.model.DynamicDescriptor;
import com.safecharge.request.builder.SafechargeTransactionBuilder;
impor... | Java | src/main/java/com/safecharge/request/SettleTransactionRequest.java | SafechargeBulgaria/safecharge-retail-java | mit | 5,411 | 149 | codeparrot/github-code |
5fa2429a5dae4f1d517b9f95fe9eb453311e887915cccf6291030e334855748b | /**
* Date Time
*
* DateTime utility class that spits out UTC timestamp strings usually used in a reporting, print-capable process.
*/
(function ()
{
"use strict";
/**
* Register the class with RequireJS.
*/
define([], function ()
{
/**
* Creates a date timestamp string.
... | JavaScript | client/src/joelray/utils/DateTime.js | joelray/joelray.ca-2015 | mit | 2,091 | 77 | codeparrot/github-code |
71295be1417f4bfc4a2874ca9b8b2de697c2a015448e89a0d728a953be579b08 | // package merkledag implements the ipfs Merkle DAG datastructures.
package merkledag
import (
"fmt"
"sync"
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context"
blocks "github.com/ipfs/go-ipfs/blocks"
bserv "github.com/ipfs/go-ipfs/blockservice"
u "github.com/ipfs/go-ipfs/util"
)
var log = ... | GO | merkledag/merkledag.go | nchabra/go-ipfs | mit | 6,147 | 271 | codeparrot/github-code |
24e51040b0021db74cf7c6109f5d6d936f3e725ff93bcac3b767586315ce7e5f | import "reflect-metadata";
import {ConnectionOptions, createConnection} from "../../src/index";
import {Post} from "./entity/Post";
import {Author} from "./entity/Author";
import {Category} from "./entity/Category";
import {PostMetadata} from "./entity/PostMetadata";
const options: ConnectionOptions = {
type: "mys... | TypeScript | sample/sample19-one-side-relations/app.ts | gintsgints/typeorm | mit | 4,657 | 130 | codeparrot/github-code |
aa2a4847e33dac3cb11f73827b9655dfd36e5f3b800157c17294cebbf7065102 | using LmpClient.Base;
using LmpClient.Base.Interface;
using LmpClient.Systems.ShareCareer;
using LmpCommon.Message.Data.ShareProgress;
using LmpCommon.Message.Interface;
using LmpCommon.Message.Types;
using System.Collections.Concurrent;
namespace LmpClient.Systems.ShareFunds
{
public class ShareFundsMessageHandl... | C# | LmpClient/Systems/ShareFunds/ShareFundsMessageHandler.cs | DaggerES/LunaMultiPlayer | mit | 1,377 | 38 | codeparrot/github-code |
f08be006feaebc31210e760b2cd9e685a0c8ed79b9e08dcbcc0aab64084ab720 | /* © 2014 the PBNF Authors under the MIT license. See AUTHORS for the list of authors.*/
/**
* \file lf_openlist.h
*
*
*
* \author eaburns
* \date 2009-04-12
*/
#if !defined(_LF_OPENLIST_H_)
#define _LF_OPENLIST_H_
#include "open_list.h"
extern "C" {
#include "lockfree/include/lockfree.h"
}
class LF_OpenLis... | C | src/lf_openlist.h | eaburns/pbnf | mit | 657 | 41 | codeparrot/github-code |
0ec6e4e7d52b01a8dfebf5857088b4b4a981a19b18e87489d80e7e177d5e5947 | /***********************************************
streamcluster.h
: header file to streamcluster
- original code from PARSEC Benchmark Suite
- parallelization with CUDA API has been applied by
Sang-Ha (a.k.a Shawn) Lee - sl4ge@virginia.edu
University of Virginia
Department of Electrical and Computer Engineeri... | C | streamcluster/streamcluster.h | zhangfengthu/CoRunBench | mit | 3,819 | 158 | codeparrot/github-code |
08f5f149868d15d68a2a75fbb15633ba1b89b0290a16416e868bf2bfd62e194f | /*
-----------------------------------------------------------------------------
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 per... | C | Samples/Common/include/SampleContext.h | j-rivero/ogre-acornacorn | mit | 36,162 | 993 | codeparrot/github-code |
b878a6b0715ed774932681eca23437a54e0cee2f2203980c5dced4c126f76b0b | using System;
namespace HoloToolkit.Sharing
{
/// <summary>
/// C# wrapper for the Sharing SyncListener, making changes available through the Action class.
/// </summary>
public class SyncStateListener : SyncListener
{
/// <summary>
/// Event sent when
/// </summary>
... | C# | ShareAndKeepSynced/Assets/HoloToolKit/Sharing/Scripts/SyncStateListener.cs | AllBecomesGood/Share-UpdateHolograms | mit | 789 | 33 | codeparrot/github-code |
1c5ea40d9f34cb0dbf7f4baa574e10e29ad81ebee1e3c259d23aa9d131915a22 | // Versioning file
define(['src/util/versionhandler'], function(VersionHandler) {
var version = [2, 2, 2].join('.');
var dataHandler = new VersionHandler(),
viewHandler = new VersionHandler(),
view, data;
viewHandler.version = version;
dataHandler.setType('data');
viewHandler.setType('view');
dataHandle... | JavaScript | src/src/util/versioning.js | khaliiid/visualizer | mit | 1,515 | 92 | codeparrot/github-code |
f6f6bd0fff618238d3db27c0f8169e991be3104fd5176276595b69227a81062e | #include "transactionview.h"
#include "transactionfilterproxy.h"
#include "transactionrecord.h"
#include "walletmodel.h"
#include "addresstablemodel.h"
#include "transactiontablemodel.h"
#include "freecoinunits.h"
#include "csvmodelwriter.h"
#include "transactiondescdialog.h"
#include "editaddressdialog.h"
#include "o... | C++ | src/qt/transactionview.cpp | kczuse/freecoin | mit | 15,096 | 433 | codeparrot/github-code |
102514c1967b9f921e9d3ed98142fc105fa7e1938a8b021f9356cd7535e1f694 | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { chainPropTypes } from '@material-ui/utils';
import withSty... | JavaScript | ajax/libs/material-ui/5.0.0-alpha.7/es/CircularProgress/CircularProgress.js | cdnjs/cdnjs | mit | 6,557 | 212 | codeparrot/github-code |
6168e8c71462315ff7cf29163ea9da326f231651556e66bfde182960eb2f3f42 | // =========================================================================
// Arithmetique.h
// J. Menu - http://cui.unige.ch/DI/cours/CompInterpretes
//
// Version $Id$ du $Date$
// =========================================================================
#ifndef __Arithmetique__
#define __Arithmetique__
#includ... | C | src/Semantique/Arithmetique.h | supranove/lista | mit | 11,496 | 417 | codeparrot/github-code |
0c3ee53e66a8e5531b199574e0402718ee4c4b9d65449dfa891ad1c972f061ac | <!DOCTYPE html>
<html>
<head><meta name="generator" content="Hexo 3.9.0">
<!-- hexo-inject:begin --><!-- hexo-inject:end --><meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Archives: 2019/1 | TechBridge 技術共筆部落格</title>
<m... | HTML | archives/2019/01/index.html | TechBridgeWeekly/techbridgeweekly.github.io | mit | 11,291 | 331 | codeparrot/github-code |
0cee8ad1c4327d7898723296cca5327cc48ec27d13a50fed3077cac11d02fc50 | package com.alorma.github.ui.activity.base;
import android.accounts.Account;
import android.app.ProgressDialog;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.support.annotation.NonNull;
import android.support.annotation.StringRes;
import... | Java | app/src/main/java/com/alorma/github/ui/activity/base/BaseActivity.java | epiphany27/Gitskarios | mit | 4,889 | 177 | codeparrot/github-code |
1a105d1a6bc23e021d5914baab9f93ee009c35fbb65f2f7e66a42886aa15ee95 | package com.xeiam.xchange.cexio.dto.marketdata;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Author: brox
* Since: 2/5/14
*/
public class CexIOTicker {
private final BigDecimal last;
private final BigDecimal high;
private final BigDecimal low;
private final Big... | Java | xchange-cexio/src/main/java/com/xeiam/xchange/cexio/dto/marketdata/CexIOTicker.java | Achterhoeker/XChange | mit | 1,645 | 85 | codeparrot/github-code |
c537711e9bb657ed196c282d69050a58b01050b5ab8a582eec7d754961c53d55 | from flask import Blueprint, request
from aleph.core import db
from aleph.model import Alert
from aleph.search import DatabaseQueryResult
from aleph.views.serializers import AlertSerializer
from aleph.views.util import require, obj_or_404
from aleph.views.util import parse_request
from aleph.views.context import tag_r... | Python | aleph/views/alerts_api.py | pudo/aleph | mit | 3,323 | 128 | codeparrot/github-code |
ef002b410481f6f05ee6aaac62b598107ff0b335f7eca77d03e28fa77b0aed6c | package cli
import (
"fmt"
"io"
"os"
"path"
"path/filepath"
"sort"
"strings"
cmds "github.com/ipfs/go-ipfs/commands"
files "github.com/ipfs/go-ipfs/commands/files"
u "gx/ipfs/QmSU6eubNdhXjFBJBSksTp8kv8YRub8mGAPv8tVJHmL2EU/go-ipfs-util"
logging "gx/ipfs/QmSpJByNKFX1sCsHBEp3R73FL4NF6FnQTEGyNAXHm2GS52/go-log... | GO | commands/cli/parse.go | Quantomicus/go-ipfs | mit | 13,688 | 527 | codeparrot/github-code |
442283e0873d3fff780b41df0f60e336ede1ad41fb6c778a3fed03fc0f988276 | /* eslint-disable no-param-reassign, no-continue, no-underscore-dangle */
const net = require('net')
const { EventEmitter } = require('events')
const logger = require('p2p-chat-logger')
const each = require('p2p-chat-utils/each')
const noop = require('p2p-chat-utils/noop')
const login = require('./login')
const ensure... | JavaScript | packages/p2p-chat-core/lib/Chat.js | dgeibi/p2p-chat | mit | 3,401 | 136 | codeparrot/github-code |
3467dc63041ea93859aba116bf250c75731256ec6ac4c2e9af150dc602f1bba9 | from worldengine.simulations.basic import find_threshold_f
import numpy
class HumiditySimulation(object):
@staticmethod
def is_applicable(world):
return world.has_precipitations() and world.has_irrigation() and (
not world.has_humidity())
def execute(self, world, seed):
assert... | Python | worldengine/simulations/humidity.py | MM1nd/worldengine | mit | 1,502 | 37 | codeparrot/github-code |
3be43e10ca9254ff7d0377b350e1b2486f69f5854b6bcc097f46e544f5d113fd | package net.ldvsoft.warofviruses;
import com.google.gson.Gson;
import com.google.gson.JsonObject;
import java.util.List;
/**
* Created by ldvsoft on 14.12.15.
*/
public class ServerNetworkPlayer extends Player {
private static final Gson gson = new Gson();
private final User opponent;
private WarOfVir... | Java | server/src/main/java/net/ldvsoft/warofviruses/ServerNetworkPlayer.java | krasko/spbau-code-review | mit | 2,097 | 64 | codeparrot/github-code |
0b6a74200c9896a4e267acbbfcb3a5e6240466095e79aea93e3ecc3aca21b474 | <?php
/*
* This file is part of the idlErrorManagementPlugin
* (c) Idael Software <info AT idael.ch>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* idlCommentApplicationErrorActions Actions related to comment error
* @pac... | PHP | modules/idlCommentApplicationError/actions/actions.class.php | idael/idlErrorManagementPlugin | mit | 2,646 | 80 | codeparrot/github-code |
33ccb1b70164380437b54666d51ba228d2a9837613579f1a1c8ecf458f624b8e | import $ from 'jquery';
import _ from 'lodash';
import utils from 'bigcommerce/stencil-utils';
import StencilDropDown from './stencil-dropdown';
export default function () {
let stencilDropDown;
const TOP_STYLING = 'top: 49px;';
const $quickSearchResults = $('.quickSearchResults');
const $quickSearchDi... | JavaScript | assets/js/theme/global/quick-search.js | diztinct-tim/BeautyBridge | mit | 2,211 | 66 | codeparrot/github-code |
922809c397136a046083b5c56491b6654f97c29578c06ce0e9cd71df09ab3cd5 | from scapy.all import *
import os
import sys
import threading
interface = "en1"
target_ip = "172.16.1.71"
gateway_ip = "172.16.1.254"
packet_count = 1000
poisoning = True
def restore_target(gateway_ip,gateway_mac,target_ip,target_mac):
# slightly different method using send
print "[*] Rest... | Python | Python/BHP/BHP-Code/BHP-Code/Chapter4/arper.py | vdrey/Toolbox | mit | 2,682 | 106 | codeparrot/github-code |
471c2a522fff62de3b944d4b6aa3f14d07e8d1ec0c9e36c1c7b952c6cf6ca0e2 | <?php
/*
* This file is part of the Acilia Component / Rating Bundle.
*
* (c) Acilia Internet S.L. <info@acilia.es>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Acilia\Bundle\RatingBundle\Service;
use Acilia\Bundle\... | PHP | Service/RatingService.php | rodmen/RatingBundle | mit | 11,136 | 337 | codeparrot/github-code |
837317e3904d00a78486ba2a618311e9b67071498b653eecdd63138481663577 | var React = require('react');
var classNames = require('classnames');
/**
* SortButton Component
* Used to add the sorting arrows to columns that are sortable.
*
* @class SortButton
* @type {ReactComponent}
*
* @memberOf TableComponents
* @see {@link TableComponents}
*/
var SortButton = React.createClass({
p... | JavaScript | lib/components/visualization/tables/SortButton.js | fuzz-productions/Mortar-JS | mit | 1,691 | 81 | codeparrot/github-code |
06631ab0ca13cf5839f886380e504683d8f293285dc91b0a9ddb45cf99bb135a | using Serenity.Abstractions;
using Serenity.ComponentModel;
using StackExchange.Redis;
using System;
namespace Serenity.Caching
{
public class RedisDistributedCache : IDistributedCache
{
ConnectionMultiplexer redis;
IDatabase cache;
string keyPrefix;
public RedisD... | C# | Serenity.Caching.Redis/RedisDistributedCache.cs | rolembergfilho/Serenity | mit | 2,180 | 78 | codeparrot/github-code |
caca256038583325c83b00f7482db1b54305c3543c17a20fa9bbd62ba58c8e81 | <!DOCTYPE HTML>
<html lang = "en">
<head>
<meta charset="utf-8" />
<title>First Direct - Platypus</title>
<meta content="IE=edge" http-equiv="X-UA-Compatible" />
<meta content="width=device-width, initial-scale=1" name="viewport" />
<meta name="google-site-verification" content="HXPDAWYIepFJGNogMyAiitf... | HTML | flinhong/public/flinhong/public/flinhong/public/flinhong/public/flinhong/public/flinhong/public/media/First-Direct-Platypus/index.html | Justmylife/project | cc0-1.0 | 21,124 | 554 | codeparrot/github-code |
4f49762c50742ddc9bfa8e7687f9c99bf1fd10d427a16ddf0dc59939c999d5f6 | import umontreal.iro.lecuyer.simevents.*;
import umontreal.iro.lecuyer.simprocs.*;
import umontreal.iro.lecuyer.rng.*;
import umontreal.iro.lecuyer.randvar.*;
import umontreal.iro.lecuyer.stat.Tally;
import java.io.*;
public class TimeShared {
int nbTerminal = 20; // Number of terminals.
double quantum; ... | Java | code/ssj/examples/TimeShared.java | fracta/ift6561_simulation_stochastique | cc0-1.0 | 3,394 | 88 | codeparrot/github-code |
55b2fcf88785b961f209c970cb7abe814417017f120ebe437715ed6c08f86703 | Clazz.declarePackage ("JS");
Clazz.load (["JS.JComponent"], "JS.JPanel", ["JU.SB", "JS.Grid", "$.GridBagConstraints"], function () {
c$ = Clazz.decorateAsClass (function () {
this.grid = null;
this.nElements = 0;
this.last = null;
Clazz.instantialize (this, arguments);
}, JS, "JPanel", JS.JComponent);
Clazz.makeConstru... | JavaScript | app/webroot/js/jsmol/j2s/JS/JPanel.js | stuchalk/OSDB | cc0-1.0 | 1,712 | 40 | codeparrot/github-code |
7d559366ed74e6d58e8a5fcc31b4ea2d51a4d81677ecb8559f5f6730ea4318a8 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
... | HTML | wks/2016/bios/308_ydolma.html | NYCAASC/nycaasc | cc0-1.0 | 7,062 | 135 | codeparrot/github-code |
81da5d7d9eff2e0215d6f549c9f30f12babb5995475f7c46575836157359d310 | /*******************************************************************************
* Copyright (c) 2017, 2021 IBM Corporation and others.
* 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 | dev/com.ibm.ws.webcontainer.servlet.4.0_fat/test-applications/TrailersTest.war/src/trailers/servlets/ServletSetTrailers.java | kgibm/open-liberty | epl-1.0 | 4,354 | 113 | codeparrot/github-code |
a7f4ff40745cf66e78a78b2b79c31a8b468aca9e539504026f57128e1a969fcb | /*******************************************************************************
* Copyright (c) 1997, 2018 IBM Corporation and others.
* 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 | dev/com.ibm.ws.session.store/src/com/ibm/ws/session/store/common/BackedSession.java | OpenLiberty/open-liberty | epl-1.0 | 39,711 | 916 | codeparrot/github-code |
a560f5d9fb73e4f39012b3c3e64571cd8f01da16c2b4e68623bcd32719a2ed9f | /*
* Copyright (c) 2014 Cisco Systems, Inc. and others. 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-v10.html
*/
package org... | Java | opendaylight/md-sal/sal-remoterpc-connector/src/main/java/org/opendaylight/controller/remote/rpc/RemoteRpcProviderFactory.java | my76128/controller | epl-1.0 | 2,127 | 52 | codeparrot/github-code |
15adb644feae080af936e689ac04db007beeb9c3b3d7d014067836d0754b9fec | /*******************************************************************************
* Copyright (c) 2017, 2020 IBM Corporation and others.
* 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 | dev/com.ibm.ws.microprofile.metrics/src/com/ibm/ws/microprofile/metrics/helper/PrometheusBuilder.java | OpenLiberty/open-liberty | epl-1.0 | 11,644 | 252 | codeparrot/github-code |
970aeacb63e64ad8e3755f82512c5bdbcd4f21958a7e09f7e1e5aeac7fd52700 | /*******************************************************************************
* Copyright (C) 2007, 2008, Robin Rosenberg <robin.rosenberg@dewire.com>
* Copyright (C) 2008, Roger C. Soares <rogersoares@intelinet.com.br>
* Copyright (C) 2008, Shawn O. Pearce <spearce@spearce.org>
* Copyright (C) 2008, Marek Zawir... | Java | org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/components/RepositorySelectionPage.java | SmithAndr/egit | epl-1.0 | 31,134 | 1,069 | codeparrot/github-code |
dd567c5dc64d93c51fb99a35f8a41c05d75de9ef96ce16d16261009604859ccf | /*******************************************************************************
* Copyright (c) 2010, 2015 IBM Corporation and others.
* 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 | dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionProcessorContext.java | OpenLiberty/open-liberty | epl-1.0 | 7,465 | 181 | codeparrot/github-code |
638fa1da3afd6ed07d817911437ffc5a77d5e909bda9fecb7fa59bd99c9cf3cf | package org.jboss.windup.reporting.model;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.NoSuchElementException;
import org.apache.tinkerpop.gremlin.structure.Direction;
import org.apache.tinkerpop.gremlin.structure.Vertex;
import org.jboss.windup.graph.MapInAdjacentPropertie... | Java | reporting/api/src/main/java/org/jboss/windup/reporting/model/ApplicationReportModel.java | johnsteele/windup | epl-1.0 | 6,643 | 171 | codeparrot/github-code |
06e65214ed8796ae4ac847240a0a0c26ecdb9a2b9585e9fb25db9dc6af9dd4e7 | /*******************************************************************************
* Copyright (c) 2020 IBM Corporation and others.
* 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 a... | Java | dev/com.ibm.ws.springboot.support_fat/fat/src/com/ibm/ws/springboot/support/fat/ApplicationStartedEventTests.java | OpenLiberty/open-liberty | epl-1.0 | 1,906 | 52 | codeparrot/github-code |
91424ef398f292180808231086ddbe170513fc08b1e0ddc34f3c970cfcb1f37b | /**
* Copyright (c) 2010-2020 Contributors to the openHAB project
*
* See the NOTICE file(s) distributed with this work for additional
* information.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.... | Java | bundles/binding/org.openhab.binding.tinkerforge/src/main/java/org/openhab/binding/tinkerforge/internal/model/impl/JoystickButtonImpl.java | openhab/openhab | epl-1.0 | 29,696 | 954 | codeparrot/github-code |
2826f8312d7bd19e5205692eab997554508c5429ebc9b8f959b5b37b29c25769 | /*******************************************************************************
* Copyright (c) 2012-2016 Codenvy, S.A.
* 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 ... | Java | plugin-machine/che-plugin-machine-ext-client/src/main/java/org/eclipse/che/ide/extension/machine/client/machine/console/ClearConsoleAction.java | ollie314/che-plugins | epl-1.0 | 2,303 | 63 | codeparrot/github-code |
2c68bbb1de29c692c5df6b65b90579167bf203ac695199be605e215b979dabc3 | /*
* Copyright 2012 International Business Machines Corp.
*
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership. Licensed under the Apache License,
* Version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may ob... | Java | dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/artifact/proxy/SkipProcessListenerProxy.java | OpenLiberty/open-liberty | epl-1.0 | 1,419 | 42 | codeparrot/github-code |
b3099537f375aeb99d84f766d5862846479ce3f0870a544ba48d50882cce775c | /******************************************************************************
* Copyright (C) 2011-2013 Fabio Zadrozny and others
*
* 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 ... | Java | plugins/org.python.pydev.debug/src/org/python/pydev/debug/ui/PythonTypePropertyTester.java | bobwalker99/Pydev | epl-1.0 | 1,942 | 52 | codeparrot/github-code |
fa3eef74373a0e1a6d533724a23c75306c9a0405d4e1eb37c629d58f1cf34d55 | #include "../src/m_pd.h"
/* ---------- tabread: control, non-interpolating ------------------------ */
static t_class *tabread_class;
typedef struct _tabread
{
t_object x_obj;
t_symbol *x_arrayname;
} t_tabread;
static void tabread_float(t_tabread *x, t_float f)
{
t_garray *a;
int npoints;
t_sam... | C | apps/plugins/pdbox/PDa/intern/tabread.c | realtsiry/rockbox4linux | gpl-2.0 | 1,331 | 54 | codeparrot/github-code |
c92baa3370910272caf28c8746b7c6480bbec71ca59ee712742647a7b3079ed9 | /**************************************************************************************************
$Id: libptr.c,v 1.8 2005/04/20 17:22:25 bboy Exp $
Copyright (C) 2002-2005 Don Moore <bboy@bboy.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Publi... | C | src/util/libptr.c | flowly/mydns-ng | gpl-2.0 | 6,747 | 219 | codeparrot/github-code |
20d654b9f4dbbb2b3dcf31541e813a464ec42c9601cfee0794e3e9db46070810 | /*
* arch-tag: Header for search entry/browse toggle container
*
* Copyright (C) 2003 Colin Walters <walters@verbum.org>
*
* 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 vers... | C | shell/rb-source-header.h | paulbellamy/Rhythmbox-iPod-Plugin | gpl-2.0 | 2,985 | 81 | codeparrot/github-code |
a7d500b6b3c439f6c307090e2e9b36c8c358517cdc9dbac4b59f7babc2862bb1 |
/*
* CINELERRA
* Copyright (C) 2008 Adam Williams <broadcast at earthling dot 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 Software Foundation; either version 2 of the License, or
* (at your optio... | C | cinelerra/track.h | petterreinholdtsen/cinelerra-cv | gpl-2.0 | 11,210 | 368 | codeparrot/github-code |
7020197de089af5c25d43ba3beca7c8a0ec3d1b312088add029800abad6ca3e3 | <html>
<head>
<script src="sylvester.js"></script> <!-- Matrix manipulation -->
<script src="wavepot-runtime.js"></script> <!-- Wavepot runtime -->
<script src="wavepot-composition.js"></script> <!-- Object to represents a piece of music -->
<s... | HTML | index.html | elgehelge/Browserbased-Random-Music-Generator | gpl-2.0 | 1,251 | 44 | codeparrot/github-code |
81d63a176abf9eef152b268bf27bb07f455b734de9e9537925809dfc717f72c0 | /* 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/spm_devices.c | PatrikKT/useless | gpl-2.0 | 10,551 | 420 | codeparrot/github-code |
f35114d5d689234f7d8aca6e5fd6543eb69537b135546c074585cef4f2df1510 | /*
* ringq.c -- Ring queue buffering module
*
* Copyright (c) GoAhead Software Inc., 1995-2000. All Rights Reserved.
*
* See the file "license.txt" for usage and redistribution license requirements
*
* $Id: ringq.c,v 1.4 2009/11/29 13:20:52 ralf Exp $
*/
/******************************** Description **********... | C | cpukit/httpd/ringq.c | yunusdawji/rtems-at91sam9g20ek | gpl-2.0 | 13,829 | 585 | codeparrot/github-code |
2345c6581d851ea52ddd1eb2ef040daf8c5d27f9d9c3a0439fd265a2047e8a3f | /*
* #%L
* OME SCIFIO package for reading and converting scientific file formats.
* %%
* Copyright (C) 2005 - 2012 Open Microscopy Environment:
* - Board of Regents of the University of Wisconsin-Madison
* - Glencoe Software, Inc.
* - University of Dundee
* %%
* Redistribution and use in source and binar... | Java | components/scifio/src/loci/formats/FilePatternBlock.java | ximenesuk/bioformats | gpl-2.0 | 5,362 | 182 | codeparrot/github-code |
37156097ffbe73869391cabc80baa58c2171e13f3ec3e54d0084a4b9c6fbedd4 | <?php
/**
* Country List Language File
* Version: 2.0
* Date: 04/10/2014
*
* Array keys refer to the ISO code that is saved in the database
* @link http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
*
*/
$_country_lang["ad"] = 'アンドラ'; // Andorra
$_country_lang["ae"] = 'アラブ首長国連邦'; // United Arab Emirates
$_country_lang["a... | PHP | core_gl_xVCs4l0eEu/lexicon/country/ja.inc.php | sergeiforward/gl | gpl-2.0 | 12,424 | 292 | codeparrot/github-code |
f88dcb7e5e45191120148b29536aa03aca83edcac3ba932323cc34da879a4fe5 | /*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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 S... | C++ | code/game/actor_curious.cpp | openmoh/openmohaa | gpl-2.0 | 10,808 | 518 | codeparrot/github-code |
7564b9dcb60f45a6232102e91ff018be2c5398d9f40521af7415b619b2a5b424 | /* ScummVM - Graphic Adventure Engine
*
* ScummVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of ... | C++ | engines/zvision/utility/utility.cpp | clone2727/scummvm | gpl-2.0 | 9,478 | 238 | codeparrot/github-code |
8ee76e6414b626427bb86dbc635df767bdf0c1ad01503f19ad1bf0a8318371b2 | (function($) {
//'use strict';
wp.customize('wbb_ocm_sidebar_side', function(value) {
var value_back = $(value);
value.bind(function(to) {
var tostring = to.toString();
var delay_update_sidebar = setInterval(function() {
if ( to.toString() === "right... | JavaScript | admin/js/wbb-ocm-customizer.js | sergiowebberty/wbb-offcanvas-menu | gpl-2.0 | 1,776 | 77 | codeparrot/github-code |
afe9f725772932175e0a93ad9088dbc7405986edbdb81f38732e3e362979ac75 | <?php
/**
* @category Model
* @package JomSocial
* @subpackage Messaging
* @copyright (C) 2008 by Slashes & Dots Sdn Bhd - All rights reserved!
* @license GNU/GPL, see LICENSE.php
*/
defined('_JEXEC') or die('Restricted access');
require_once( JPATH_ROOT . DS . 'components' . DS . 'com_community' . D... | PHP | components/com_community/models/notification.php | kiennd146/nhazz.com | gpl-2.0 | 6,411 | 204 | codeparrot/github-code |
13c749275756accf9456ac2ff7506c27e355bd105efc0244067233d610ccc3d3 | <?php
/* core/themes/classy/templates/form/details.html.twig */
class __TwigTemplate_fcc828bdb61bec56661d679c9d414c05104be85c943c83dc07aab8c42c94a263 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->b... | PHP | docroot/sites/default/files/php/twig/c770312a_details.html.twig_c3ee867061cce646fbe883cda4b44d0b324f7089d32119feb4215098d6188420/1f25998aafd81965b642acddd8118f8a761c91fc716a805f38dab03a9e1e64ca.php | neetumorwani/blogging | gpl-2.0 | 5,838 | 145 | codeparrot/github-code |
fcf72f2c49a205268c6e087cc9153cb8d8b61f8e66fd04835a9e819a52906b99 | /* bcal_threefish512.c */
/*
This file is part of the AVR-Crypto-Lib.
Copyright (C) 2006-2015 Daniel Otte (bg@nerilex.org)
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 3 of the... | C | bcal/bcal_threefish512.c | nerilex/avr-crypto-lib | gpl-2.0 | 1,680 | 58 | codeparrot/github-code |
b127a809c6fe94bc6eaa9798bed48adfa3a20dc97d5ede014a45e22c0900163a | package util;
import java.util.HashMap;
import java.util.Map;
public class StatisticPrinter {
public enum StatisticKey {
SLOTS_SIZE,
CONSTRAINT_SIZE,
CNF_VARIABLE_SIZE,
CNF_CLAUSES_SIZE,
LOGIQL_PREDICATES_SIZE,
LOGIQL_DATA_SIZE,
CONSTRAINT_GENERATI... | Java | src/util/StatisticPrinter.java | Jianchu/LogiqlSolver | gpl-2.0 | 3,379 | 86 | codeparrot/github-code |
fad0f9a5b3073c494733a332e717a981dcc0d3f3252b9896d69085aa053273d2 | <?php
//error_reporting(0);
$link = mysqli_connect("localhost", "root", "dosh1", "dojotest");
$url_body = file_get_contents('php://input');
$json_obj = json_decode($url_body, true);
$nodehash = $json_obj['nodehash'];
$nodehash = mysqli_real_escape_string($link,$nodehash);
$username = $json_obj['username'];... | PHP | elevate26-zagato-edition/startNodeTree.php | mikezucc/dojo-site-api | gpl-2.0 | 6,929 | 211 | codeparrot/github-code |
18005828f91db1bb98ba80178595a16c72c6ebdabe89caaf93a8c70358922631 | /*
* Synopsys DesignWare Multimedia Card Interface driver
* (Based on NXP driver for lpc 31xx)
*
* Copyright (C) 2009 NXP Semiconductors
* Copyright (C) 2009, 2010 Imagination Technologies Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Publ... | C | include/linux/mmc/dw_mmc.h | alesaiko/UK-PRO5 | gpl-2.0 | 15,770 | 521 | codeparrot/github-code |
e10217e466f903157d7da522d895338249ee14ccda78675a5db26fcf17df101d | <?php
/**
* This file is part of http://github.com/LukeBeer/BroadworksOCIP
*
* (c) 2013-2015 Luke Berezynskyj <eat.lemons@gmail.com>
*/
namespace BroadworksOCIP\api\Rel_17_sp4_1_197_OCISchemaAS\OCISchemaDeprecated15;
use BroadworksOCIP\api\Rel_17_sp4_1_197_OCISchemaAS\OCISchemaDataTypes\AccessDeviceEnhancedConf... | PHP | src/BroadworksOCIP/api/Rel_17_sp4_1_197_OCISchemaAS/OCISchemaDeprecated15/GroupAccessDeviceGetResponse14sp6.php | paericksen/broadworks-ocip | gpl-2.0 | 17,544 | 572 | codeparrot/github-code |
90e094a6c61b2756a51ec46ec8bc3cc51912c9611e63eecc473ceb97e1161c11 | /*
SDL_ttf: A companion library to SDL for working with TrueType (tm) fonts
Copyright (C) 1997-2004 Sam Lantinga
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
... | C | Classes/SDL/SDL_ttf.c | fstltna/Wesnoth-New-Era | gpl-2.0 | 45,410 | 1,815 | codeparrot/github-code |
2dce92d926526ecf208c4e5b766cf8e7b9a691aed46d8639da959efc32e2464c | /*
* *************************************************************************
* OnRepeatListener.java
* **************************************************************************
* Copyright © 2015 VLC authors and VideoLAN
* Author: Geoffrey Métais
*
* This program is free software; you can redistribute it ... | Java | vlc-android/src/org/videolan/vlc/widget/OnRepeatListener.java | khavnu/VideoPlayer | gpl-2.0 | 3,829 | 107 | codeparrot/github-code |
dede1f39e8835225466221bf4996d8696dd6a597adac72c211a339981d24cfc8 | #ifndef _LINUX_FS_H
#define _LINUX_FS_H
/*
* This file has definitions for some important file table
* structures etc.
*/
#include <linux/limits.h>
#include <linux/ioctl.h>
#include <linux/blk_types.h>
#include <linux/types.h>
/*
* It's silly to have NR_OPEN bigger than NR_FILE, but you can change
* the file li... | C | include/linux/fs.h | SlimRoms/kernel_htc_msm8974 | gpl-2.0 | 95,632 | 2,762 | codeparrot/github-code |
080d5c50ba3a75aa4b8c1305bd949ca7a742ad18c5e76de9e6b2f04c769a8499 | /*****************************************************************************
*
* ManageBackends.js - Functions which are used by the backend management
*
* Copyright (c) 2004-2013 NagVis Project (Contact: info@nagvis.org)
*
* License:
*
* This program is free software; you can redistribute it and/or modify
*... | JavaScript | share/frontend/nagvis-js/js/ManageBackends.js | indigo423/nagvis | gpl-2.0 | 7,037 | 221 | codeparrot/github-code |
57c424e1ed17a7854a883ca1be2703da62b9a31e0d6279b09c3ef3fcfd595c15 | /* GStreamer
* Copyright (C) <2011> Wim Taymans <wim.taymans@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any... | C | gst-libs/gst/video/gstvideometa.c | kkonopko/gst-plugins-base | gpl-2.0 | 20,389 | 712 | codeparrot/github-code |
28dc32dc9c290e86c24dc09a5c0bfda4cd279aa1e10bca5e5f75982e42ca0429 | /*
* Copyright (c) 2005, 2016, 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 | test/javax/smartcardio/TestCardPermission.java | FauxFaux/jdk9-jdk | gpl-2.0 | 2,867 | 85 | codeparrot/github-code |
eb0289e8f0884cb37d04de424f04acf780841233868fdca7c453c864b0d64cd1 | <?php
/**
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
/**
* el-GR localise class
*
* @package Joomla.Site
* @since 1.6
*/
abstract class el_GRLocalise {
/**
* ... | PHP | language/el-GR/el-GR.localise.php | icos-urenio/citybrandingContainer | gpl-2.0 | 5,422 | 214 | codeparrot/github-code |
14c1e0a976b48d82ba3726428dca8b8c4577549c8ae5fd50c6ea7d10bbc0a95b | #ifndef __CLIENTGAMECOMMAND_H__
#define __CLIENTGAMECOMMAND_H__
#include "listener.h"
#include "scripttimer.h"
class LocalSound : public Listener {
private:
void *stream;
str name;
str path;
qboolean loop;
qboolean stopping;
int position;
int baserate;
float rate, start_rate, target_rate... | C | code/cgame_hook/script/clientgamecommand.h | openmoh/openmohaa | gpl-2.0 | 1,604 | 73 | codeparrot/github-code |
22202a2a787fceece3dcf7d299771bec466a65bdf5a3a15ba099ec8155e21ed5 | /* <!-- copyright */
/*
* aria2 - The high speed download utility
*
* Copyright (C) 2006 Tatsuhiro Tsujikawa
*
* 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 Lice... | C++ | src/HttpSkipResponseCommand.cc | zhaili/aria2 | gpl-2.0 | 8,452 | 242 | codeparrot/github-code |
9408c774d454b4b26db7d1b3af57aaa3dc21a9c344c40c85e77a988a7ef5c7de | <?php
/**
* Test Class for upload_max_filesize
*
* @package PhpSecInfo
* @author Ed Finkler <coj@funkatron.com>
*/
/**
* require the PhpSecInfo_Test_Core class
*/
require_once(PHPSECINFO_BASE_DIR . '/Test/Test_Core.php');
/**
* The max recommended size for the upload_max_filesize setting, in bytes
*
*/
defi... | PHP | analytics/plugins/SecurityInfo/PhpSecInfo/Test/Core/upload_max_filesize.php | hendrasaputra/hendrasaputra.com | gpl-2.0 | 1,813 | 74 | codeparrot/github-code |
a0f3d87acd203991bb6301dd1e0cea7564b4f5a6b2113b9550824fc2740e4b66 | /*
* linux/drivers/video/backlight/pwm_bl.c
*
* simple PWM based backlight control, board code has to setup
* 1) pin configuration so PWM waveforms can output
* 2) platform_data being correctly configured
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Ge... | C | drivers/video/backlight/pwm_bl.c | crewrktablets/rk3x_kernel_3.10 | gpl-2.0 | 9,683 | 403 | codeparrot/github-code |
a5f53f371117f65d08268a0b3840c995d821115e7a362bb560abc4f3eccf9802 | <?php
/**
* ---------------------------------------------------------------------
* GLPI - Gestionnaire Libre de Parc Informatique
* Copyright (C) 2015-2021 Teclib' and contributors.
*
* http://glpi-project.org
*
* based on GLPI - Gestionnaire Libre de Parc Informatique
* Copyright (C) 2003-2014 by the INDEPNET... | PHP | inc/itiltemplatepredefinedfield.class.php | smartcitiescommunity/Civikmind | gpl-2.0 | 12,696 | 375 | codeparrot/github-code |
ca52f8ad599ae7adb4a588eb4a0dff882e526a5cf160e27cf038a7dbd57a601e | /*
SDL_main.c, placed in the public domain by Sam Lantinga 4/13/98
The WinMain function -- calls your program's main() function
*/
#include <stdio.h>
#include <stdlib.h>
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#ifdef _WIN32_WCE
# define DIR_SEPERATOR TEXT("\\")
# undef _getcwd
# define _getcwd(str... | C | third-party/distrib/sdl-1.2.12/src/main/win32/SDL_win32_main.c | aguirrem/skyeye | gpl-2.0 | 8,230 | 359 | codeparrot/github-code |
11ff9e2d3866ce9b8be502413e850a477e4571131d445c24b98cf0822d4dd0c8 | /*
Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
dojo._xdResourceLoaded(function(dojo, dijit, dojox){
return {depends: [["provide", "dojo.dnd.Selector"],
["require", "dojo.... | JavaScript | pkgdb/static/js/dojo/dnd/Selector.xd.js | fedora-infra/packagedb | gpl-2.0 | 8,872 | 300 | codeparrot/github-code |
0bc6678303b6d8baf47a3a39b72aaa345b69916d6e033e66091e4c84b8dfa040 | #ifndef BTANKS_MENU_CONTROL_H__
#define BTANKS_MENU_CONTROL_H__
/* Battle Tanks Game
* Copyright (C) 2006-2009 Battle Tanks team
*
* 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 ve... | C | engine/menu/control.h | sorokin/btanks | gpl-2.0 | 2,438 | 74 | codeparrot/github-code |
0433086ac1e7e072e3e8a8857588f0e66fdcc10e30b2fff235e3baae4e2a2b33 | <?php
/**
* @version $Id: category.php 1812 2013-01-14 18:45:06Z lefteris.kavadas $
* @package K2
* @author JoomlaWorks http://www.joomlaworks.net
* @copyright Copyright (c) 2006 - 2013 JoomlaWorks Ltd. All rights reserved.
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
*/
// no direct acc... | PHP | templates/ja_mitius/html/com_k2/ja_mitius_blog/category.php | ForAEdesWeb/AEW25 | gpl-2.0 | 9,602 | 268 | codeparrot/github-code |
e8377d60d89646fa7dd4ccb0a899294d35dc23644b5c134de6ce6e94ebf3cc34 | <?php namespace ShahiemSeymor\Roles\Controllers;
use BackendMenu;
use Backend\Classes\Controller;
use Flash;
use ShahiemSeymor\Roles\Models\Permission;
class Permissions extends Controller
{
public $implement = [
'Backend.Behaviors.FormController',
'Backend.Behaviors.ListController'
];
p... | PHP | hostweb/kernel/plugins/shahiemseymor/roles/controllers/Permissions.php | janusnic/Portfolio | gpl-2.0 | 1,034 | 42 | codeparrot/github-code |
e4738cdc8e6a50b836136d06a4f325e748d496ce4b32b965a4bca43f65457cf2 | #ifndef SQL_QUERY_REWRITE_INCLUDED
#define SQL_QUERY_REWRITE_INCLUDED
/* Copyright (c) 2015, Oracle and/or its affiliates. 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 as published by
the Free Software Foundatio... | C | block/sql_query_rewrite.h | myblockchain/myblockchain | gpl-2.0 | 1,700 | 48 | codeparrot/github-code |
782621cb853c3ac6888a6d40619277eb9b29e6ad024b6a723ffc6c793859b9b3 | #ifndef __CARET_SPARSE_FILE_H__
#define __CARET_SPARSE_FILE_H__
/*LICENSE_START*/
/*
* Copyright (C) 2014 Washington University School of Medicine
*
* 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 | src/Files/CaretSparseFile.h | Washington-University/workbench | gpl-2.0 | 4,361 | 112 | codeparrot/github-code |
9b21e602141f01b713bdc75b966d1781d1d1ff334d919008da2ac59e1dc8faac | //=================================================================================================
// Parameters.cpp
// Contains all functions for calculating default values and reading in
// new values from the simulation parameter file.
//
// This file is part of GANDALF :
// Graphical Astrophysics code for N-b... | C++ | src/Common/Parameters.cpp | gandalfcode/gandalf | gpl-2.0 | 26,208 | 723 | codeparrot/github-code |
4cae834519a23866618d1affc4c9c014e6558345a645a8215cbba1e7ab12916a | #!/usr/bin/env python
# B a r a K u d a
#
# L. Brodeau, 2017]
import sys
import numpy as nmp
from PIL import Image
import string
import os
from netCDF4 import Dataset
narg = len(sys.argv)
if narg != 2:
print 'Usage: '+sys.argv[0]+' <mesh_mask>'; sys.exit(0)
cf_mm = sys.argv[1]
cf_bmp = string.repl... | Python | python/exec/orca_mesh_mask_to_bitmap.py | brodeau/barakuda | gpl-2.0 | 842 | 48 | codeparrot/github-code |
92555ca6774c486a2da71003085941cafa5cd38ce172a5db221a871cd29fcad8 | /* Copyright (C) 2020 Open Information Security Foundation
*
* You can copy, redistribute or modify this Program under the terms of
* the GNU General Public License version 2 as published by the Free
* Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARR... | Rust | rust/src/ike/logger.rs | norg/suricata | gpl-2.0 | 8,404 | 233 | codeparrot/github-code |
bada32e3d66da29b3a6101575f1f6ed6eed32c21ad0f5304e844267783115270 | /**********************************************************************
Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
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; eith... | C | client/gui-qt/plrdlg.h | freeciv/freeciv | gpl-2.0 | 5,296 | 179 | codeparrot/github-code |
d097d28fc31caeddfe52fc29010f35572a7629b5bab751172bfdd34ef2116e8a | <?php
/**
* Copyright (c) 2011 ScientiaMobile, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
*... | PHP | plugins/mobile/scientia/scientia/UserAgentMatchers/HTCMacUserAgentMatcher.php | Jak95/www.jak95.ru-joomla | gpl-2.0 | 1,791 | 58 | codeparrot/github-code |
2a1a8bed9eb005b16eb9bf628726c38750ca5dd6c630c811a502ac422157ed51 | /*
* ipcp.c - PPP IP Control Protocol.
*
* Copyright (c) 1984-2000 Carnegie Mellon University. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must r... | C | package/ppp/files/code/pppd/ipcp.c | uwehermann/easybox-904-lte-firmware | gpl-2.0 | 59,217 | 2,270 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.