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 |
|---|---|---|---|---|---|---|---|---|
1bd9c1cbf07279dc8a4b4e4d524c2f881e713e5280d2cdf55d38eac17f7ab29c | import numpy as np
###############################################################################
## Surface Area
## ---------------------------------
## Planar polygon
###############################################################################
# Theorem of Green
#------------------------------------------------... | Python | src/surfacearea.py | matt77hias/Clipping | gpl-3.0 | 2,427 | 82 | codeparrot/github-code |
ff5118f5a448aa63b2ca327519a029f709c76e7675f5ae95ae44fc9a6af6d049 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Speech.Synthesis;
namespace ImageToSpeech
{
public partial class FormSenti... | C# | ImageToSpeech/FormSentir.cs | jmcarcela/ImageToSpeech | gpl-3.0 | 5,047 | 178 | codeparrot/github-code |
771e77525bafc2ee510f1439f09a564dacc48b138ffa91aa521ce2481a3b6e54 | require 'active_support/concern'
module EntityPaths
extend ActiveSupport::Concern
module ClassMethods
def name_to_legacy_slug(name)
parameterize_name(name)
end
def parameterize_name(name)
name.tr(" ", "_").tr("/", "~").tr('+', '_').tr('#', '')
end
def legacy_url(primary_ext, id, ... | Ruby | app/models/concerns/entity_paths.rb | public-accountability/littlesis-rails | gpl-3.0 | 757 | 34 | codeparrot/github-code |
018302c195d0de5d1ff9b75c0943f274cd1e6c55662694943da9468431da082a | /*
* Copyright (c) 2015 Martin Glueck <martin@mangari.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*/
#ifndef INPUT_H_
#define INPUT_H_
#include <sblib/debounce.h... | C | sensors/binary-inputs/in16-bim112/inc/input.h | selfbus/software-arm-incubation | gpl-3.0 | 734 | 32 | codeparrot/github-code |
0bc86e8e2e91707d6d6ec2b2679fcecfecd4d6029f8bf333aa83425d13ef6cea | /* radare - LGPL - Copyright 2014 - pancake, condret */
#include <r_io.h>
#define VIO_DEBUG 0
/*
| io.va | | io.ff |
.------------------.
| |
| VADDR ---> MADDR | ---> PADDR ---> PLUGINS
| | maddr->paddr+fd
`------------------'
virtual addresses are used when io.va... | C | libr/io/vio.c | jpenalbae/radare2 | gpl-3.0 | 10,791 | 331 | codeparrot/github-code |
3daa7ceee7f71b457f556969ce899272b71596d4839d34390a77915621a8b569 | !
! This is the include file "HARMONICS.F90"
!
! HARMONICS.F90 is a set of Fortran utilities for Spherical Harmonics (SH)
! analysis, and some other useful stuff, listed below.
!
! *** Modified by GS & FC 06-13-2008 = INTEL PORT = V 2.6
! *** Romberg integration program added July 09, 2008.
! *** On July 19, 2008 ... | FORTRAN | src/harmonics.f90 | mrajner/selen | gpl-3.0 | 88,302 | 3,111 | codeparrot/github-code |
dff292f51610bd7596539ddaa015c2c383757860524511d94b35b74241864194 | /*
* 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 version 2.
*
* This program is distributed "as is" WITHOUT ANY WARRANTY of any
* kind, whether express or implied; without even the implie... | C | drivers/phy/phy-dm816x-usb.c | williamfdevine/PrettyLinux | gpl-3.0 | 7,824 | 342 | codeparrot/github-code |
ba4a08a818ec217c33525d2c3dc4e0f58b605cc81e50c1f4afdc03e2d642a986 | #include "storm-config.h"
#include "storm-parsers/parser/SparseItemLabelingParser.h"
#include "storm/exceptions/FileIoException.h"
#include "storm/exceptions/OutOfRangeException.h"
#include "storm/exceptions/WrongFormatException.h"
#include "storm/models/sparse/StateLabeling.h"
#include "test/storm_gtest.h"
#include <... | C++ | src/test/storm/parser/SparseItemLabelingParserTest.cpp | moves-rwth/storm | gpl-3.0 | 9,204 | 185 | codeparrot/github-code |
eccf3d49f35bc1744e5306781403f92e93b883cfb3e9cebaf844cbbe2fe28a53 | package fr.guiguilechat.jcelechat.model.sde.types.apparel;
import java.io.InputStreamReader;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.Map;
import fr.guiguilechat.jcelechat.model.sde.Attribute;
import fr.guiguilechat.jcelechat.model.sde.IMetaCategory;
import fr.guiguilechat.jcelech... | Java | model/sde/SDE-Types/src/generated/java/fr/guiguilechat/jcelechat/model/sde/types/apparel/Outer.java | guiguilechat/EveOnline | gpl-3.0 | 4,038 | 129 | codeparrot/github-code |
4e925fdfac46b2ea9dba803b4403b58b06111d9bb76897eac9797643f92b8dea | using System;
using System.IO;
using SlimDX;
namespace MNL
{
public class FloatKey : BaseKey
{
public float Time;
public float Value;
public float Forward;
public float Backward;
public Vector3 TBC;
public FloatKey(BinaryReader reader, eKeyType ty... | C# | zoneeditor-oss/HMapEdit/NiLib/compounds/FloatKey.cs | thekroko/uthgard-opensource | gpl-3.0 | 944 | 35 | codeparrot/github-code |
3526138f93a9865ddbc2e2f64b272bec9d8c404449814f3560fe7a3f148d1e52 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package entidade;
import java.util.Scanner;
import java.io.*;
/**
*
* @author ana
*/
public class main extends IOSerial implements... | Java | integracao-repositorio-processos/src/entidade/main.java | annavicente/repositorio-de-processos | gpl-3.0 | 3,118 | 81 | codeparrot/github-code |
ec5816a93fca024f96a9be96233ff2d68f9238db986030ed31d19b4d7cfcbb2d | #! /usr/bin/perl
# Contributions by Max Bangs, Steve Mussmann, and Tyler Chafin
# Contact: tkchafin@uark.edu
use strict;
use warnings;
use Getopt::Std;
#Die if no arguments given
if( scalar( @ARGV ) == 0 ){
&help;
die "No options given\n\n";
}
#Parse arguments
my %opts;
getopts( 'p:i:1:2:a:o:hn:N:gPxr:', \%opts... | Perl | phylip2newhybrids.pl | tkchafin/scripts | gpl-3.0 | 22,357 | 847 | codeparrot/github-code |
66b788b5507969d487fbd13a943cceaf319411760edca6799fc3032d5db695c4 | /*
* Copyright (c) 2013-2019 Thomas Isaac Lightburn
*
*
* This file is part of OpenKJ.
*
* OpenKJ 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 License, or
* (at your option)... | C++ | src/dlgregularimport.cpp | OpenKJ/OpenKJ | gpl-3.0 | 12,877 | 329 | codeparrot/github-code |
8b3634b01711490cdc6c88707587e5909fb1e43c231b8d4c73699cd7e4f0c116 | package com.o3dr.android.client.apis;
import android.os.Bundle;
import com.MAVLink.enums.MAV_MOUNT_MODE;
import com.o3dr.android.client.Drone;
import com.o3dr.android.client.interfaces.DroneListener;
import com.o3dr.services.android.lib.drone.attribute.AttributeEvent;
import com.o3dr.services.android.lib.drone.attrib... | Java | ClientLib/src/main/java/com/o3dr/android/client/apis/GimbalApi.java | forgodsake/TowerPlus | gpl-3.0 | 8,741 | 241 | codeparrot/github-code |
8afb3d5c07d91c9aadf818278574960fb320cc20cd2a3067caf095fdf41d8051 | /**
* ===========================================
* Java Pdf Extraction Decoding Access Library
* ===========================================
*
* Project Info: http://www.jpedal.org
* (C) Copyright 1997-2008, IDRsolutions and Contributors.
* Main Developer: Simon Barnett
*
* This file is part of JPedal
*
* Copyright ... | Java | plugins/pdf/ext/src/jpedal_lgpl-3.83b38/src/org/jpedal/jbig2/decoders/ArithmeticDecoder.java | srnsw/xena | gpl-3.0 | 11,801 | 340 | codeparrot/github-code |
f08483b5cf516d3c4ccebedce66ca4b40c484e22b02c0a683cfce6fb9de40733 | #region Copyright
/////////////////////////////////////////////////////////////////////////////
// Altaxo: a data processing and data plotting program
// Copyright (C) 2002-2011 Dr. Dirk Lellinger
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of t... | C# | Altaxo/Core/Calc/Probability/ContinuousDistributions/LognormalDistribution.cs | Altaxo/Altaxo | gpl-3.0 | 11,532 | 367 | codeparrot/github-code |
631a3ec7222993a9497940cb6990b63b29a614b00b152de1db9b295a0f1958dc | /*
* Book.h
*
* Created on: Feb 18, 2016
* Author: quan
*/
#ifndef BOOK_H_
#define BOOK_H_
#include <iostream>
#include <string>
#include <stdexcept>
#include <Constants.h>
#include <Patron.h>
namespace LibraryCatalog {
class Book {
public:
Book();
Book(const std::string bookName, const std::string ISB... | C | include/Book.h | quantran13/Library-Catalog | gpl-3.0 | 3,177 | 125 | codeparrot/github-code |
f7b891169159aceb992567b2d0dd4bf05d8c14ceb7d29dd632a1d130645c4a03 | #include <iostream> // std::cout
#include <thread> // std::thread
#include <mutex> // std::mutex, std::unique_lock
#include <condition_variable> // std::condition_variable
#include <chrono>
std::mutex mtx;
std::condition_variable cv;
bool ready = false;
void print_id (int id)
{
... | C++ | ProgrammingLanguage/C_C++/C++11_condition_variable/condition_variable.cpp | Yoleimei/SourceCodeRepo | gpl-3.0 | 965 | 44 | codeparrot/github-code |
4aedc9367314b1ccc6799634e0a64c11b150cb0319f77ece09c2529b4d0d70a7 | package de.brunsen.guineatrack.backup;
import android.os.Bundle;
import android.widget.Button;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import butterknife.Unbinder;
import de.brunsen.guineatrack.R;
import de.brunsen.guineatrack.ui.activities.BaseActivity;
public class ... | Java | app/src/main/java/de/brunsen/guineatrack/backup/BackupRecoveryActivity.java | brunsen/guinea-track | gpl-3.0 | 1,664 | 58 | codeparrot/github-code |
3ca7492eedb478157da2e9d06b3cbac5e56af51b5f6a47bb0767b103e0212780 | package cbpdbms;
import java.util.NoSuchElementException;
/** Helper for implementing DbFileIterators. Handles hasNext()/next() logic. */
public abstract class AbstractDbFileIterator implements DbFileIterator {
public boolean hasNext() throws DbException, TransactionAbortedException {
if (next == null)
next = r... | Java | src/cbpdbms/AbstractDbFileIterator.java | shailendert/DBMS | gpl-3.0 | 1,061 | 41 | codeparrot/github-code |
761065bf93fb11d4149338b42eeff33101c1def4c083d5b8c82da6a56e162051 | /**
* Permission.js
*
* @description :: TODO: You might write a short summary of how this model works and what it represents here.
* @docs :: http://sailsjs.org/#!documentation/models
*/
var _ = require('lodash');
var AD = require('ad-utils');
module.exports = {
tableName:"site_permission",
attributes... | JavaScript | api/models/Permission.js | appdevdesigns/appdev-core | gpl-3.0 | 4,381 | 184 | codeparrot/github-code |
c1b04371a11c68e8eb0cf9b9c3a89fcbfc21278af232b59a9ccfda691064f195 | using System;
using System.Windows;
using System.Diagnostics;
namespace Ultima.Spy.Application
{
/// <summary>
/// Interaction logic for ErrorWindow.xaml
/// </summary>
public partial class ErrorWindow : Window
{
#region Constructors
/// <summary>
/// Constructs a new instance of ErrorWindow.
... | C# | Ultima.Spy.Application/ErrorWindow.xaml.cs | Vorspire/SpyUO | gpl-3.0 | 1,408 | 63 | codeparrot/github-code |
9569dc98f03938150e60158d4337a8b4e2bbea06a736bc492ad8c6b3f6130cd3 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.pepsoft.minecraft;
import java.util.*;
/**
*
* @author pepijn
*/
public final class Constants {
private Constants() {
// Prevent instantiation
}
public static final String TAG_L... | Java | WorldPainter/WPCore/src/main/java/org/pepsoft/minecraft/Constants.java | forairan/WorldPainter | gpl-3.0 | 28,717 | 518 | codeparrot/github-code |
cfdd49b8f461801fbdd5c04385f122a7e3960e84d8088f396996c1dbe275111f | <!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>4. More Control Flow Tools — Python 3.5.1 doc... | HTML | python-3.5.1-docs-en/tutorial/controlflow.html | DeanAaron/Python3 | gpl-3.0 | 82,820 | 834 | codeparrot/github-code |
d5818b25e22375d2a0212f952435203ab2117ec855b0f8e8704421bea296b42d | /* clang-format off */
/*
* Copyright (c) 2015, Freescale Semiconductor, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* o Redistributions of source code must retain the above copyright n... | C | src/third_part/mongoose/examples/NXP_K64/fsl_phy.c | SoberPeng/isaws | gpl-3.0 | 9,358 | 294 | codeparrot/github-code |
0accee688d69a0dd784020ccb8d9db1c204f6a68001e554f533b0cf67b33cbc5 | //Copyright (c) 2011 Municipalidad de Rosario and Coop. de Trabajo Tecso Ltda.
//This file is part of SIAT. SIAT is licensed under the terms
//of the GNU General Public License, version 3.
//See terms in COPYING file or <http://www.gnu.org/licenses/gpl.txt>
package ar.gov.rosario.siat.cyq.iface.model;
import java.uti... | Java | siat-1.0-SOURCE/src/iface/src/ar/gov/rosario/siat/cyq/iface/model/JuzgadoVO.java | avdata99/SIAT | gpl-3.0 | 1,437 | 75 | codeparrot/github-code |
cb110af05d37eb76544b419fcf19425f53f3b1b9f8333f2cc7cf5cfd549cd250 |
#include <Thor/Shapes.hpp>
#include <SFML/Graphics.hpp>
int main()
{
// Create render window
sf::RenderWindow window(sf::VideoMode(600, 500), "Thor Shapes", sf::Style::Close);
window.setVerticalSyncEnabled(true);
// Create a concave shape by directly inserting the polygon points
thor::ConcaveShape concaveShape... | C++ | extlibs/Thor/examples/Shapes.cpp | AdrienJarretier/MathGame | gpl-3.0 | 2,377 | 79 | codeparrot/github-code |
d87b46c3babc89da21c6d9fe7f7de0450b9e1a0851f466d1c27cad93e25ffbde | #include <stdint.h>
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "32016.h"
#include "Decode.h"
#include "mem32016.h"
#include "defs.h"
//#include "Trap.h"
#include "NDis.h"
#include "Profile.h"
#ifdef PROFILING
#define NUM_OPERAND_TYPES 80
uint32_t Frequencies[Instruction... | C | NS32016/Profile.c | hoglet67/PiTubeClient | gpl-3.0 | 3,400 | 138 | codeparrot/github-code |
532e87bbcd34c5abc5e7388cf8dff45967330d1bfb012218112e19a21f1eeb31 | /*
* This file is part of MystudiesMyteaching application.
*
* MystudiesMyteaching application 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 License, or
* (at your option) any l... | Java | src/main/java/fi/helsinki/opintoni/exception/http/NotFoundException.java | UH-StudentServices/mystudies-myteaching-backend | gpl-3.0 | 1,356 | 40 | codeparrot/github-code |
d3b5ad62be7ae2f8d56999d47d5a101dd7518839099b69a0c223ab9c89242716 | from __future__ import (
absolute_import,
division,
print_function,
unicode_literals,
)
import os
import socket
import subprocess
import sys
import core
from core import logger, version_check, APP_FILENAME, SYS_ARGV
if os.name == 'nt':
from win32event import CreateMutex
from win32api import C... | Python | core/utils/processes.py | clinton-hall/nzbToMedia | gpl-3.0 | 3,534 | 123 | codeparrot/github-code |
91b1c8d728ae4e6281b7d342010c0de125a930a3af118492199d135de8e7a347 | /*
* Copyright 2016 Broadcom
*
* 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 (the "GPL").
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT A... | C | drivers/net/phy/mdio-mux-bcm-iproc.c | williamfdevine/PrettyLinux | gpl-3.0 | 6,317 | 287 | codeparrot/github-code |
110004c0e730746d67f0575a09eaa4d8e1d3c6c23380531ccea492234fb24d8a | /*******************************************************************************
µBlock - a browser extension to block requests.
Copyright (C) 2014 Raymond Hill
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
... | JavaScript | src/js/tab.js | dhenyjarasandy/uBlock | gpl-3.0 | 9,657 | 301 | codeparrot/github-code |
d9e625bcbf25ca1b4ebe232e931790e3575ad97ea0ef0cb8031cc9e009f26b2c | /**
* Copyright (c) 1997-2013, www.tinygroup.org (luo_guo@icloud.com).
*
* Licensed under the GPL, Version 3.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.gnu.org/licenses/gpl.html
*
* Unless required by... | Java | framework/org.tinygroup.order/src/main/java/org/tinygroup/order/processor/OrderGroups.java | TinyGroup/tiny | gpl-3.0 | 2,177 | 81 | codeparrot/github-code |
90cbb6be729d23707e651f87c2ff3f59965d823576bdf02f4f6357c3b797f44f | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>glbox.h Example File | Active Qt 5.7</title>
<link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
<script type="text/javascript">
w... | HTML | Doc/activeqt/activeqt-activeqt-opengl-glbox-h.html | angeloprudentino/QtNets | gpl-3.0 | 7,379 | 142 | codeparrot/github-code |
7084b3226fbe406f5145f7c457485926a5a1008bf5ccc9240b1e1312a3602888 | /*
* GPL HEADER START
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This program 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 Software Foundation.
*
* This program is distributed... | C | drivers/staging/lustre/lustre/lov/lov_request.c | williamfdevine/PrettyLinux | gpl-3.0 | 16,698 | 837 | codeparrot/github-code |
4a4d48931685701cc48de5f33a797bd64d5e86d9007ec0c28079ebe824c084fa | /// <reference path="../Common/Libs/MiniQuery.ts" />
/// <reference path="Libs/nwjs.d.ts" />
var menuBar = {
"File": {
"New": () =>
{
StandaloneMaker.NewProject();
},
"&Open": () =>
{
StandaloneMaker.OpenProject();
},
"&Save": () =>
... | TypeScript | public/Engine/standalone_maker.ts | alain-bertrand/Dot-World-Maker | gpl-3.0 | 20,791 | 574 | codeparrot/github-code |
ddea0112fdb48e1d2cc92fb2b44327aabd15debab9ac6627d27cf4c2194f7444 | package dnsfilter
import (
"bytes"
"fmt"
"io/ioutil"
"sort"
"strconv"
"strings"
"time"
safeservices "github.com/AdguardTeam/AdGuardDNS/dnsfilter/safe_services"
"github.com/AdguardTeam/urlfilter/filterlist"
"github.com/joomcode/errorx"
"github.com/AdguardTeam/urlfilter"
"github.com/caddyserver/caddy"
"g... | GO | dnsfilter/setup.go | AdguardTeam/AdguardDNS | gpl-3.0 | 11,628 | 383 | codeparrot/github-code |
22e71bbbf8342214b23c532b932107170f26440de34321a2044f41630682c8c6 | <?php
/**
* @version 1.0.0
* @package Theme4Press PageBuilder
* @author Theme4Press
*/
if ( ! class_exists( 'Postslider' ) ) :
/**
* Create Postslider element.
*
* @package T4P PageBuilder Shortcodes
* @since 1.0.0
*/
class Postslider extends T4P_Pb_Shortcode_Element {
/**
* Constru... | PHP | wp-content/plugins/t4p-core-composer/shortcodes/postslider/postslider.php | bolsadoinfinito/site | gpl-3.0 | 15,968 | 495 | codeparrot/github-code |
d34fd97111857cec42f5178f09803eda86e6f70015f715bfa8b23208810b689f | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
#ifndef __GLADE_EDITOR_H__
#define __GLADE_EDITOR_H__
#include <gladeui/glade-signal-editor.h>
G_BEGIN_DECLS
#define GLADE_TYPE_EDITOR (glade_editor_get_type ())
#define GLADE_EDITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((... | C | ecc-core/php-gtk2/include/libgladeui-1.0/gladeui/glade-editor.h | PhoenixInteractiveNL/emuControlCenter | gpl-3.0 | 6,961 | 208 | codeparrot/github-code |
ee39c076f1b5e53f41e12f3d26ed46c792b27942f392fc5dca8f21eeb92a40de | import App from "../../app";
import ListsLogic from "../../lists";
let h = require("virtual-dom/h");
let panel = 0;
function icon() {
if(panel === 0) {
return "angle-right";
}
if(panel === 1) {
return "pencil";
}
return "trash-o";
}
export default class Lists {
static get properties() {
return {
"... | JavaScript | src/js/ui/side/lists.js | dzstara/lists-web | gpl-3.0 | 1,810 | 109 | codeparrot/github-code |
f33d230fa084f2848f01ea13643695a010d6ea31eaabd027f7f0fcfb568bedc7 | /*
This file is part of Zen Beat.
Zen Beat 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 License, or
(at your option) any later version.
Zen Beat is distributed in... | Java | ZenBeat/src/main/java/com/game/zen/beat/HowToActivity.java | samdroid-apps/Zen-Beat | gpl-3.0 | 5,814 | 188 | codeparrot/github-code |
5e14295d5cab34c2901206ccaff8e82e694b257e1af97cd357aa80ef6350178e | /*****************************************************************************/
/* usbparport -- at90usb82 parport device.
* based on
* uss720.c -- uss720 USB Parport Cable.
*
* Copyright (C) 1999, 2005, 2010
* Thomas Sailer (t.sailer@alumni.ethz.ch)
*
* This program is free software; you can redistribut... | C | kernel/src/usbparport-0.1/usbparport.c | y-salnikov/usb_parport | gpl-3.0 | 17,568 | 630 | codeparrot/github-code |
a83f818c0df4c864c3c454512e07eb76b0793a25d5af47d6f42c944c483f112e | var VMRCRE = (function () {
return {
servicesURL : (typeof VMR !== 'undefined') ? VMR.httpRoot + 'vmr/api/' : 'http://ntvmr.uni-muenster.de/community/vmr/api',
chapterSelectChanged : function() {
var book = $("#bookselect").val();
var chapter = $("#chapterselect").val();
$("#verseselect").html(... | JavaScript | static/collation/js/vmrcre_functions.js | scribe777/collation_editor | gpl-3.0 | 2,832 | 89 | codeparrot/github-code |
1aef7dc11161f92ca25b28aca186e9a1f242b97650ec21ed1b9dfb12a93a70a1 | /*
(C) 2014 by Daniel Brunkhorst <daniel.brunkhorst@web.de>
Heinz Knutzen <heinz.knutzen@gmail.com>
https://github.com/hknutzen/Netspoc-Web
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, ... | JavaScript | app/view/window/About.js | hknutzen/Netspoc-Web | gpl-3.0 | 7,339 | 203 | codeparrot/github-code |
2822b5f6b32d6509aa9b541d16541c1e1083e7fa643b76825265158334b997d1 | #! /bin/bash
#for each thread
#grep : ttt > findloopitertmp
grep : infothread.txt | while read line; do
#grep : ttt | while read line; do
#echo "$line"
line2=${line#*at }
echo 'shell echo '\'"$line2"\'
filename=${line2%:*}
#echo "$filename"
lineno=${line2#*:}
#echo "$lineno"
test=$(echo $line2 | grep... | Shell | delay-thread/Trash/findloopiter.sh | Bootz/multicore-opimization | gpl-3.0 | 1,211 | 47 | codeparrot/github-code |
38034d2c78496aae556176fafdb35743c244ee18a56b2b7cf5dfb9849846f484 | /*
Copyright (C) 2010-2011 Charles Pence <charles@charlespence.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 3 of the License, or
(at your option) any later version... | C++ | src/formula.cpp | cpence/aformula | gpl-3.0 | 2,732 | 130 | codeparrot/github-code |
fdd3955c0b67af958e6cdc00a32e2e60a73abe7fb4f75f6bcddbe153d01bd27f | import axios from 'axios'
import Api from '../config.js'
import { ADDRESSLIST } from './const';
function getCity(arr){
const prov = []
let len=arr.length;
for (let i = 0; i < len; i++) {
axios.get(Api.ROOT+Api.CITY,{
params:{
provinceid:arr[i].provinceid
}
... | JavaScript | N3-admin/src/utils/getprov.js | SimpleNice/www | gpl-3.0 | 1,899 | 75 | codeparrot/github-code |
4cbab58c096bd7102baaafad9f33e5f163c4098bc95170cd210cb8caa12ab8eb | package tmp.generated_cs;
import cide.gast.*;
import cide.gparser.*;
import cide.greferences.*;
import java.util.*;
public class creation_expressionPostFix2 extends creation_expressionPostFix {
public creation_expressionPostFix2(expression_list expression_list, rank_specifiers rank_specifiers, array_initializ... | Java | CIDE_Language_CS/src/tmp/generated_cs/creation_expressionPostFix2.java | ckaestne/CIDE | gpl-3.0 | 1,835 | 36 | codeparrot/github-code |
7245e3b0ab40b44c3cc420b30d08d50a107b9fde5bb8c600f23bb4a031508578 | /**
* Copyright (C) 2016 Luc Hermans
*
* 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
* License, or (at your option) any later version.
*
* This program i... | Java | Eclipse CA IDMS Schema Diagram Editor/bundles/org.lh.dmlj.schema.editor.core/src/org/lh/dmlj/schema/editor/property/section/RecordPrefixPropertiesSection.java | kozzeluc/dmlj | gpl-3.0 | 7,004 | 195 | codeparrot/github-code |
178da3f084b34cb96798fdb17cbde4804bf1ce68d2934c19a3916c2c5eec3b13 | // Copyright (c) 2017 - 2017 Settlers Freaks (sf-team at siedler25.org)
//
// This file is part of Return To The Roots.
//
// Return To The Roots 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 versio... | C++ | libs/s25main/animation/AnimationManager.cpp | nE0sIghT/s25client | gpl-3.0 | 4,310 | 151 | codeparrot/github-code |
a95c87fce256de44004804f9e31200718609bf9596374ca2f0ae24b2b7e0579f | import { Router } from 'express';
import { Issuer, Client, generators, errors } from 'openid-client';
import jwt from 'jsonwebtoken';
import ms from 'ms';
import { LocalAuthDriver } from './local';
import { getAuthProvider } from '../../auth';
import env from '../../env';
import { AuthenticationService, UsersService } ... | TypeScript | api/src/auth/drivers/openid.ts | directus/directus | gpl-3.0 | 10,248 | 350 | codeparrot/github-code |
9867540316eda27c830d110792a9670ae52980d732ef0fabc04c1e13cbc49f9b | <!DOCTYPE html>
<html>
<head>
<meta charset="utf8">
<title>Test UI</title>
<link href="https://fonts.googleapis.com/css?family=Arimo" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Ubuntu+Mono" rel="stylesheet">
<script type="text/javascript">
var new_image = {
"id" : "new_image",
"legen... | HTML | tmp/try_graph.html | crazybiocomputing/tijapi | gpl-3.0 | 9,639 | 441 | codeparrot/github-code |
cccc6bbabbf28965bc872ea9c2af4c71893199c9d709142ee4e469e90d44b46a | import React from 'react';
import PropTypes from 'prop-types';
import RangeControl from '../../../../../components/RangeControl';
class Gain extends React.Component {
constructor(props) {
super(props);
this.applySettings = this.applySettings.bind(this);
this.handleLevelChange = this.handleLevelChange.bi... | JavaScript | src/modules/Audio/components/EffectBank/Effects/Gain/index.js | ruebel/synth-react-redux | gpl-3.0 | 1,391 | 61 | codeparrot/github-code |
0ff2ef6dbb486121f7bf5711a190b6803f01505a6958d00b5937c29a14fe59af | #pragma once
#include "Mino.h"
#include <SDL2/SDL.h>
typedef SDL_Point TetrominoPattern[4];
#define pos(x, y) \
{ x, y }
/*
[*][*]
[*][*]
*/
const TetrominoPattern O_SHAPE = {pos(0, 0), pos(1, 0), pos(0, 1), pos(1, 1)};
/*
[*]
[*]
[*]
[*]
*/
con... | C | sprite/Shapes.h | winadam/newsdlgame | gpl-3.0 | 952 | 49 | codeparrot/github-code |
741d98963e46fe6bfe0924c87b7b7d22404e8fdc5862ce7ba31a74053b688f1a | <?php
namespace app\modules\place\models;
use app\components\custom\CForm;
use app\components\helpers\ArrayHelper;
use app\components\helpers\DbHelper;
use app\models\File;
use app\modules\contact\models\Address;
use app\modules\contact\models\City;
use app\modules\contact\models\Country;
use app\modules\contact\mode... | PHP | modules/place/models/PlaceForm.php | eugene-siderka/randevu | gpl-3.0 | 5,114 | 134 | codeparrot/github-code |
30f1178fcde612ad6dd74c3b638ed05b5bd5fc530767d86fe91cb3adc851dbad | <?php
/**
* hook-display_class.php file defines controller which manage hooks sequentially
*/
class BT_GactHookDisplay extends BT_GactHookBase
{
/**
* @var string $sHookType : define hook type
*/
protected $sHookType = null;
/**
* @var bool $bAlreadyExecute : define if one hook is already exec... | PHP | modules/gadwordstracking/lib/hook/hook-display_class.php | FranticFood/PS-Deli | gpl-3.0 | 13,914 | 380 | codeparrot/github-code |
1e20f87cdc31e38e19305afc0aa0014f51ca67b80c0cd0a7dc8fd5f74712cc73 | /****************************************************************************
** $Id: dl_attributes.h,v 1.2 2009/05/13 15:26:31 oconrad Exp $
**
** Copyright (C) 2001-2003 RibbonSoft. All rights reserved.
**
** This file is part of the dxflib project.
**
** This file may be distributed and/or modified under the terms o... | C | src/modules_io/shapes/io_shapes_dxf/dxflib/dl_attributes.h | gregorburger/SAGA-GIS | gpl-3.0 | 3,874 | 183 | codeparrot/github-code |
bb524a92166007ecb23111f3dd9a417a0091e3d6bcae5492d0d2d9dd3c1935f2 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Threading;
namespace MonetaPriemnik
{
public partial class Form1 : Form
{
/... | C# | MonetaPriemnik/Form1.cs | armanform/CoinChanger | gpl-3.0 | 10,770 | 355 | codeparrot/github-code |
403da722c2f8313b39cf378b914c0e2724ad64c03ebbdc8ac9940e36a5a2f11f | /*
* Red Bull Media Player
* Copyright (C) 2011, Red Bull
*
* 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 License, or
* (at your option) any later v... | C | RedBullPlayer/Modules/SettingsDetailView/LoopPlaylistSettingModel.h | baoping/Red-Bull-Media-Player | gpl-3.0 | 1,615 | 46 | codeparrot/github-code |
1fa658f4d1c4ba658f73bebe5672174a4736be34ae7d382f194e80a41a992c98 | /**
* This file is part of the Java Machine Learning Library
*
* The Java Machine Learning Library 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... | Java | src/main/java/net/sf/javaml/clustering/mcl/SparseMatrix.java | eracle/Gap | gpl-3.0 | 10,277 | 408 | codeparrot/github-code |
34640edc35b02ddd2f91ded1ba33f8a48763db23f6bcda3cdfa398895abf50a1 | import numpy as np
from scipy.signal import fftconvolve
from . import Tools
from .Filter import Filter
class Filter_Rect_LogSpaced(Filter) :
"""
This class defines a function of time expanded using log-spaced rectangular basis functions.
A filter f(t) is defined in the form f(t) = sum_j b_j*rect_j(t),
... | Python | fitgif/Filter_Rect_LogSpaced.py | awakenting/gif_fitting | gpl-3.0 | 7,817 | 234 | codeparrot/github-code |
85e5d57399535c268b9afac5dac7405046cd998053195115dce28b8ffa4fb029 | <?php /* Smarty version Smarty-3.1.19, created on 2016-02-10 12:25:34
compiled from "D:\OpenServer\domains\Creative.mu\admin\themes\default\template\controllers\products\images.tpl" */ ?>
<?php /*%%SmartyHeaderCode:3170956bb020e773598-92780625%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_v... | PHP | cache/smarty/compile/6c/c2/d8/6cc2d8f2bceeb1c341e3251877194f03aa1f5e89.file.images.tpl.php | TiJester/creative | gpl-3.0 | 18,886 | 462 | codeparrot/github-code |
f2d76adad07b9f57f58563384d3bcfbfdccd71e2e1bee9b81b9dc4eb488bdabe | using AutomationFrameWork.Reporter.ReportUtils;
using System;
using System.IO;
using System.Xml.Serialization;
namespace AutomationFrameWork.Reporter.ReportHelpers
{
public static class ReportXMLHelper
{
public static void Save<T> (this T t, string fullPath) where T : class
{
try
... | C# | AutomationFramework/Helper/ReportXMLHelper.cs | minhhoangvn/AutomationFramework | gpl-3.0 | 1,321 | 45 | codeparrot/github-code |
052810d53caa682910b3da50d1c886985e26658bd08ce74de19a4cbcd4cb9538 | package herocc.minecraft.mod.MoreOres.block.ore;
import herocc.minecraft.mod.MoreOres.MoreOres;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs;
public cl... | Java | moreores_common/herocc/minecraft/mod/MoreOres/block/ore/oreSilver.java | HeroCC/MoreOres | gpl-3.0 | 826 | 33 | codeparrot/github-code |
bf45edb5a218c45ec88a1dea44031dbf292428077c4acbe4adfab4676d623de6 | #ifndef FORTUNAGENERATOR_H_INCLUDED
#define FORTUNAGENERATOR_H_INCLUDED
#include "../data/BigInteger.h"
#include <coder/ByteArray.h>
#include <deque>
#include <thread>
namespace CK {
class AES;
class FortunaGenerator {
public:
FortunaGenerator();
~FortunaGenerator();
private:
Fortu... | C | include/random/FortunaGenerator.h | swbrenneis/CryptoKitty-C | gpl-3.0 | 1,013 | 47 | codeparrot/github-code |
1249cef69410fcc350eb29016d4b883cdb6011a4cb0aeb776938b60c154683e0 | """
Fitting example: simultaneous fit of two datasets
"""
import numpy as np
import matplotlib
from matplotlib import pyplot as plt
import bornagain as ba
from bornagain import deg, angstrom, nm
def get_sample(params):
"""
Returns a sample with uncorrelated cylinders and pyramids.
"""
radius_a = para... | Python | Examples/fit52_Advanced/multiple_datasets.py | gpospelov/BornAgain | gpl-3.0 | 6,791 | 215 | codeparrot/github-code |
ca75405dad0ea4f06903c24310ad6ac4dd292b4855b8e8942cadffa2fce3b12b | /**
* Created by xiyuan on 17-6-4.
*/
//服务接口
function serverInterface(innerConf) {
//实例传递
innerConf.example=this;
this.__innerConf__=innerConf;
}
//数据请求完成
serverInterface.prototype.complete=function () {
var This=this,
resData,
agrs=[].slice.call(arguments),
innerConf=this._... | JavaScript | src/engine/server/lib/serverInterface.js | jiyi1990118/frame-core | gpl-3.0 | 1,966 | 81 | codeparrot/github-code |
ab9b1df7acc1fab6480ad514b86fa7d74d6a53e673c4171db7130c16407eb0fe | #!/usr/bin/env python
"""
crate_anon/crateweb/config/urls.py
===============================================================================
Copyright (C) 2015-2021 Rudolf Cardinal (rudolf@pobox.com).
This file is part of CRATE.
CRATE is free software: you can redistribute it and/or modify
it under... | Python | crate_anon/crateweb/config/urls.py | RudolfCardinal/crate | gpl-3.0 | 18,507 | 382 | codeparrot/github-code |
15605d883b498b2bc1ef9906f87842c07dd45fb41c595c2a8521b8b7116a7990 | /*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: mods/deathmatch/logic/CPed.h
* PURPOSE: Ped entity class
* DEVELOPERS: Jax <>
* lil_Toady <>
*
* Mu... | C | MTA10_Server/mods/deathmatch/logic/CPed.h | sbx320/mtasa-blue-old | gpl-3.0 | 17,638 | 314 | codeparrot/github-code |
c1098781b8578c58f41ea776b714b121643d6d3a253481fb91f3a16a5edf75c3 | require 'package'
class Qb64 < Package
description 'QB64 is a modern extended BASIC+OpenGL language that retains QB4.5/QBasic compatibility and compiles native binaries for Windows, Linux and macOS.'
homepage 'https://www.qb64.org/'
version '1.2'
compatibility 'all'
source_url 'https://www.qb64.org/autobuild... | Ruby | packages/qb64.rb | cstrouse/chromebrew | gpl-3.0 | 2,428 | 56 | codeparrot/github-code |
9c190281f231a3df50bb2b5a0cf767d225df5e25793d5dec468d1e280c5d33c0 | #!/usr/bin/python3 -u
# vim: set tabstop=4 shiftwidth=4 softtabstop=4 expandtab textwidth=80 smarttab
#
# stdin -> IRC echo bot, with optional file input support.
#
# Written by Kate Turner <kate.turner@gmail.com>, source is in the public
# domain.
# Modified by Ryan Lane <rlane@wikimedia.org> for watching and taking i... | Python | modules/monitoring/files/bot/ircecho.py | miraheze/puppet | gpl-3.0 | 9,009 | 241 | codeparrot/github-code |
3c2c8fe8548eef067cfe52f7f37e84deaf6ff67c376291b70fbbc97ce509fb17 | #include <stdio.h>
int main ()
{
int n, b, k=0;
scanf ("%d", &n);
while (n--)
{
int a[4];
scanf ("%d", &b);
printf ("Come");
a[0] = b / 1000;
a[1] = b / 100 % 10;
a[2] = b / 10 % 10;
a[3] = b % 10;
printf ("%d %d", b, a[1]);
for (; b != 6174; )
{
for... | C | c/CPractice/6174问题.c | Rjerk/snippets | gpl-3.0 | 763 | 48 | codeparrot/github-code |
2d99281064830e846f69cc6e7f94e4cac94cdca98cdc125d35b8fd5b5a2556ae | /*
* xmmEvents.hpp
*
* Template classes for Event generators
*
* Contact:
* - Jules Francoise <jules.francoise@ircam.fr>
*
* This code has been initially authored by Jules Francoise
* <http://julesfrancoise.com> during his PhD thesis, supervised by Frederic
* Bevilacqua <href="http://frederic-bevilacqua.net>,... | C++ | src/core/common/xmmEvents.hpp | Ircam-RnD/xmm | gpl-3.0 | 3,323 | 114 | codeparrot/github-code |
3ce0d1a1814844650cabeb8230479bc652b1eec9af86798067353cdcb514cf0b | --新春型歌姬亚瑟
function c60816.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,nil,aux.NonTuner(nil),1)
c:EnableReviveLimit()
--pendulum summon
aux.EnablePendulumAttribute(c,false)
--destroy and search
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(60816,0))
e1:SetCategory(CATEGORY_DEST... | Lua | expansions/script/c60816.lua | MonokuroInzanaito/ygopro-777DIY | gpl-3.0 | 5,653 | 140 | codeparrot/github-code |
3a96e5b89330248786034c05f1dd488d3d7254bc2364e6b164c7b8507e0d9c43 | package simpledb.systemtest;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import org.junit.Test;
import cbpdbms.Aggregate;
import cbpdbms.Aggregator;
import cbpdbms.Database;
import cbpdbms.DbException;
import cbpdbms.DbFile;
import cbpdbms.HeapFile;
import ... | Java | test/simpledb/systemtest/AggregateTest.java | shailendert/DBMS | gpl-3.0 | 4,378 | 144 | codeparrot/github-code |
313db38606bc4854f2a03cc6f8461b14f2801797a0aa4b98a72403b96292e8b3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
using SmartStore.Core.Domain.Catalog;
using SmartStore.Core.Domain.Customers;
using SmartStore.Core.Domain.Localization;
using SmartStore.Core.Domain.Media;
using SmartStore.Core.Domain.Orders;
using SmartStore.Core.Localization;
... | C# | src/Presentation/SmartStore.Web/Controllers/ProductController.cs | mandocaesar/MesinkuNew | gpl-3.0 | 41,814 | 1,146 | codeparrot/github-code |
85a7bcb129fddd4dd2b06f79bb04a89d27623bd5c1fb45dfc7bb85adce240395 | var Joi = require('joi');
import {UserProfile} from './UserProfile';
export class UserProfileRepository {
constructor(knex) {
this.knex = knex;
}
/**
* Returns a user profile by specified
* provider name and external provider id.
*
* @returns {Promise} Fulfilled with UserProfi... | JavaScript | src/_domain/UserProfileRepository.js | whybug/whybug-server | gpl-3.0 | 1,293 | 55 | codeparrot/github-code |
66f60e0636af296aca10673bcec301ed7f94fb537b161d028f69dabb94aa307a | // Win32++ Version 8.2
// Release Date: 11th April 2016
//
// David Nash
// email: dnash@bigpond.net.au
// url: https://sourceforge.net/projects/win32-framework
//
//
// Copyright (c) 2005-2016 David Nash
//
// Permission is hereby granted, free of charge, to
// any person obtaining a copy ... | C | lib/Win32xx/wxx_propertysheet.h | Andreone/coolshell | gpl-3.0 | 27,938 | 971 | codeparrot/github-code |
8f871e06f8945be2742eb31cefac16ba7922206a2b85fe7fba0f27ea73ccd732 | /*
* STaRS, Scalable Task Routing approach to distributed Scheduling
* Copyright (C) 2012 Javier Celaya
*
* This file is part of STaRS.
*
* STaRS 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; e... | C++ | src/oldsim/CentralizedScheduler.cpp | jcelaya/stars | gpl-3.0 | 23,159 | 542 | codeparrot/github-code |
4a4d98f7ddf29db3f47f31895e70ca4ac71ac4d679df53f60b0ed99827f063ec | using System;
using System.Drawing;
using System.Drawing.Imaging;
using SharpDX;
using SharpDX.Direct2D1;
using Bitmap = SharpDX.Direct2D1.Bitmap;
namespace WoWEditor6.UI
{
class BitmapImage : IDisposable
{
private Bitmap mBitmap;
private int mWidth;
private int mHeight;
privat... | C# | WoWEditor6/UI/old/BitmapImage.cs | WowDevTools/Neo | gpl-3.0 | 3,816 | 125 | codeparrot/github-code |
b16842c1f93fead8879d99d666590478942e4cbb4a3b092c2c68023a7b471aee | package com.hartwig.hmftools.common.flagstat;
import java.io.File;
import java.io.IOException;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.nio.file.Files;
import java.util.List;
import com.google.common.collect.Lists;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotati... | Java | hmf-common/src/main/java/com/hartwig/hmftools/common/flagstat/FlagstatFile.java | hartwigmedical/hmftools | gpl-3.0 | 3,983 | 100 | codeparrot/github-code |
601f4d82dda61fc7beddfa1ad165e7b0d356590841324fbc8344a2f9bbd1c549 | /* mousetrap v1.5.3 craig.is/killing/mice */
(function(C,r,g){function t(a,b,h){a.addEventListener?a.addEventListener(b,h,!1):a.attachEvent("on"+b,h)}function x(a){if("keypress"==a.type){var b=String.fromCharCode(a.which);a.shiftKey||(b=b.toLowerCase());return b}return l[a.which]?l[a.which]:p[a.which]?p[a.which]:Strin... | JavaScript | devTools/tweeGo/targets/sugarcube-2/userlib.js | DrNoOne0/Free-Cities | gpl-3.0 | 25,104 | 749 | codeparrot/github-code |
0c9dc1b8c845212329efa3ff1ca35229b9abbc0e25af589ea4b7bc1844c92f1c | "use strict";
/*
fire( functionName, arguments, wave )
addListener( listener )
removeListener( listener )
link( list )
unlink( list )
get( index )
put( index, elem )
remove( elem )
removeAt( index )
mapInPlace( function(elem, index) )
*/
const
PM = require("tfw.binding.pr... | JavaScript | src/mod/tfw.binding.list.js | tolokoban/cameroun | gpl-3.0 | 6,365 | 246 | codeparrot/github-code |
037b17cf221a178cd75fde31ee141afcb4c0d8bccdc6b99ac08ed82e1656abd5 | <?php
namespace Chash\Command\Files;
use Chash\Command\Common\DatabaseCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Filesystem\Exception\IOException;
use Symfony\Component\Filesystem\Filesystem;
/**
* Class GenerateTempFileSt... | PHP | src/Command/Files/GenerateTempFileStructureCommand.php | chamilo/chash | gpl-3.0 | 2,136 | 72 | codeparrot/github-code |
f8b5754448cab37ca7eb1a3930b3b3e7707c0330a9f0274cfd48033daf177dac | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Windows.Forms;
namespace MissionPlanner.Controls
{
public partial class DistanceBar : UserControl
{
Brush brushbar = new SolidBrush(Color.FromArgb(50, Color.White));
private readonly Bitmap ... | C# | Controls/DistanceBar.cs | Aeronavics/MissionPlanner | gpl-3.0 | 4,920 | 171 | codeparrot/github-code |
22c202f247b444ed07bbf5f97d6524afde03f6339f14fdb2c7e6f3fef313ba7b | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Minimal web interface to cve-search to display the last entries
# and view a specific CVE.
#
# Software is free software released under the "Modified BSD license"
#
# Copyright (c) 2017 Pieter-Jan Moreels - pieterjan.moreels@gmail.com
# imports
import json
import os... | Python | zenoic_api/cve-search-master/web/advanced_api.py | deontp/misc | gpl-3.0 | 7,190 | 186 | codeparrot/github-code |
ccf6dd8ca282841d86f7f72c8eebea89ce9fb3d92693b3721ec2b032f19d3a2c | #include "van_der_pol.h"
Van_Der_Pol::Van_Der_Pol(void)
{
lambda = 3.;
Qw.resize(1);
Qw(0,0)= 1.;
Qv.resize(1);
Qv(0,0)=0.1;
X0.resize(2);
X0(0) = 0.5;
X0(1) = 0.5;
R0.resize(2);
R0.zero();
R0(0,0)=0.;
R0(1,1)=.1;
Ts=.1;
}
dcovector V... | C++ | EXAMPLES/Van_Der_Pol/src/van_der_pol.cpp | mikejmills/bfilt | gpl-3.0 | 1,131 | 67 | codeparrot/github-code |
76a39202b2d552b64809c3192359bf9fe691dc2a21b3f19ef1d6f2ca7e877eb3 | # Source: http://blog.miguelgrinberg.com/post/designing-a-restful-api-with-python-and-flask
from flask import Flask, jsonify, abort, make_response
app = Flask(__name__)
tasks = [
{
'id': 1,
'title': u'Buy groceries',
'description': u'Milk, Cheese, Pizza, Fruit, Tylenol',
'done': ... | Python | Web-Service/RESTful/referensi/restful-hudan/tasks-2.py | ardinusawan/Sistem_Terdistribusi | gpl-3.0 | 881 | 35 | codeparrot/github-code |
1212ae1d7c20205439d2561507897fd129a0bc0135ba593c5b8f35f77de405ff | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
@author: Mindaugas Greibus
trancriber mg1.4
'''
import sys, re
import collections
class TranscriberRegexp:
# http://cmusphinx.sourceforge.net/wiki/tutorialam
# Do not use case-sensitive variants like “e” and “E”. Instead, all your phones must be different even in c... | Python | transcriber_re_mg14.py | mondhs/heroku_test | gpl-3.0 | 7,832 | 212 | codeparrot/github-code |
4771fa3b14a26f91c4886751553ba59d02d2d51db908a5d0be749fbdd1ff55f1 | var Widget = require('../common/widget'),
{icon} = require('../../ui/utils'),
keyboardJS = require('keyboardjs'),
html = require('nanohtml'),
raw = require('nanohtml/raw')
class Keys extends Widget {
static defaults() {
return super.defaults({
_keys:'keys',
bindi... | JavaScript | src/client/app/widgets/inputs/keys.js | jean-emmanuel/Open-Stage-Control | gpl-3.0 | 3,699 | 151 | codeparrot/github-code |
2bfcafa8d07eba6ec19c32be870d01c60a4d3839fb2e86fd9674017ea37bfaad | /*
* Copyright (C) 2001-2003 Michael Niedermayer (michaelni@gmx.at)
*
* AltiVec optimizations (C) 2004 Romain Dolbeau <romain@dolbeau.org>
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*... | C | libs/ffmpeg-2.7/libpostproc/postprocess.c | LarsSch/qTox | gpl-3.0 | 37,951 | 1,044 | codeparrot/github-code |
0b2512a1227902bbd31943eac8e39ee3ebc253c4e7270772f498d18508adc4e6 | /* rgbhashtable.c
*
* A hashtable for storing RGB values for a Linkbot LED
* Chaining is used to resolve collisions
* RGB values need to be stored as an array of 3 values
* Includes reverse look-up of a string for nearest color match
*
*
* Dawn Hustig-Schultz
* 2013/12/20
*
*/
#include <stdio.h>
//#include... | C++ | src/rgbhashtable.c.cpp | BaroboRobotics/linkbot-cxx-library | gpl-3.0 | 22,088 | 1,056 | codeparrot/github-code |
b2e381c5cde76b217eac51c2676b309cb91b2cf9832ef155dc51c442e4b59593 | //
// Copyright 2004 Andras Varga
//
// 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 Free Software Foundation;
// either version 2 of the License, or any later version.
// The library is distributed in the hop... | C | inetmanet/src/applications/tcpapp/TCPSessionApp.h | martinlevesque/omnet-opendss-smart-grid-co-simulator | gpl-3.0 | 1,329 | 59 | codeparrot/github-code |
8cf38fe667a7f595848f38c559213db414f26e762067889658ada313ec15bc80 | #pragma region Copyright (c) 2014-2016 OpenRCT2 Developers
/*****************************************************************************
* OpenRCT2, an open source clone of Roller Coaster Tycoon 2.
*
* OpenRCT2 is the work of many authors, a full list can be found in contributors.md
* For more information, visit h... | C | src/scenario_list.c | halfbro/OpenRCT2 | gpl-3.0 | 16,910 | 557 | codeparrot/github-code |
2a084fded5fd43ae4c9c1d92b3ccc3cd692550964bb40fa83d2888ba5cc5cdaa | package com.xlogisticzz.learningModding.items;
import com.xlogisticzz.learningModding.LearningModdingCreativeTab;
import com.xlogisticzz.learningModding.entities.EntityLaunched;
import com.xlogisticzz.learningModding.lib.Constants;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import ne... | Java | src/main/java/com/xlogisticzz/learningModding/items/ItemEntityLauncher.java | xlogisticzz/LearningModdingMod | gpl-3.0 | 1,716 | 50 | codeparrot/github-code |
16006a7bee664d3956130eec274e8a020f87b9660f41ac9c67429c8811167064 | package io.github.baoliandeng.tunnel.httpconnect;
import io.github.baoliandeng.core.ProxyConfig;
import io.github.baoliandeng.tunnel.Tunnel;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.Selector;
import java.util.Locale;
public class HttpConnectTunnel extends Tunnel {
private... | Java | app/src/main/java/io/github/baoliandeng/tunnel/httpconnect/HttpConnectTunnel.java | madeye/BaoLianDeng | gpl-3.0 | 2,847 | 88 | codeparrot/github-code |
3bc50073652e4f01e617c3bcbe3edfe33c17c6ff37538e26959612fe730a253c | /**
* IMAS base code for the practical work.
* Copyright (C) 2014 DEIM - URV
*
* 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 License, or
* (at your ... | Java | src/cat/urv/imas/agent/UtilsAgents.java | MSYG2/imasproject | gpl-3.0 | 5,356 | 150 | codeparrot/github-code |
0df41f226998712eb974b80d84929474ead42de110160b7af13c5fa389695217 | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozil... | C | include/com/sun/star/uno/Reference.h | qt-haiku/LibreOffice | gpl-3.0 | 22,585 | 576 | codeparrot/github-code |
6310fba634d5273be846a23e6a1d8643c87bca58bd91cafca4a2c247be0045f2 | #include "thread.h"
int thread_create(thread *t, void *(*thread_routine)(void *), void *arg)
{
/* check parameters */
ASSERT(t != (thread *)0);
ASSERT(thread_routine != (void *(*)(void *))0);
ASSERT(arg != (void *)0);
/* create thread */
if (pthread_create(t, (pthread_attr_t *)0, threa... | C | thread.c | proebrock/sisyphos | gpl-3.0 | 1,444 | 101 | codeparrot/github-code |
e106c74baffe42497a1a797549ee8248d0b1b8344745e3f3ed25f9c563f56417 | <?php
namespace Luminance\Services\DB;
class LegacyWrapper {
public $stmt;
public $cached_results = [];
public $cached_done = false;
public $cached_index = 0;
public function __construct(\PDOStatement $stmt) {
$this->stmt = $stmt;
}
public function fetch($type = null) {
i... | PHP | application/Services/DB/LegacyWrapper.php | Empornium/Luminance | gpl-3.0 | 3,208 | 112 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.