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 |
|---|---|---|---|---|---|---|---|---|
8bfe8d04162f162b4ae92d31ffd8f5f1f122c5f38d6d5a05c856285e3722a313 | package com.android.app.pocketva;
import android.app.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.NavUtils;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.helper.ItemTouchHelper;
... | Java | app/src/main/java/com/android/app/pocketva/MainListFragment.java | Eritz/PocketVA | gpl-3.0 | 7,853 | 203 | codeparrot/github-code |
bc1130ce74439c474684e49737c2fb0eebd425acf3a9a87f6d28d84e6e7688ce | var gulp = require('gulp');
var sourcemaps = require('gulp-sourcemaps');
var source = require('vinyl-source-stream');
var buffer = require('vinyl-buffer');
var browserify = require('browserify');
var watchify = require('watchify');
var babel = require('babelify');
function compile(watch, file) {
var bundler = watc... | JavaScript | Gulpfile.js | steoo/Netflix-TV | gpl-3.0 | 1,159 | 39 | codeparrot/github-code |
9c1ec513f656db6f0ea3ce5333f4eb9e0ff308f65aceb07442209ddb3f956209 | #!/usr/bin/python
import os
import getpass
from Shadow import *
class Password():
def __init__(self, passwd):
self.data = Shadow(passwd)
def list(self):
info = self.data.getInfo()
for row in info:
#print row['id'] ,row['name'],row['user'],row['password']
print... | Python | start.py | bsurfer/CryptPass | gpl-3.0 | 3,177 | 99 | codeparrot/github-code |
cd56b3ec0c8b8fbd90d93d265e68d9ce297dbe1fab5c8c11a214c0a525a4bc6a | <?php
/**
* Created by PhpStorm.
* User: Dizzy
* Date: 15-7-2016
* Time: 20:42
*/
namespace Dizzy\Trakt\Console\Generators\Endpoint;
use Dizzy\Trakt\Console\Generators\TemplateWriter;
use Illuminate\Support\Collection;
use League\Flysystem\FilesystemInterface;
use ReflectionClass;
use ReflectionException;
/**
... | PHP | src/Dizzy/Trakt/Console/Generators/Endpoint/Method.php | ItsDizzy/trakt-api-laravel | gpl-3.0 | 5,821 | 234 | codeparrot/github-code |
e0bdcbae0fb8a1ab70666431f4d24e74e910970a821df3df4376b28abcd2f909 | /*
* Copyright (C) 2012-2013 Dominik Schürmann <dominik@dominikschuermann.de>
*
* 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 l... | Java | OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/CreateKeyDialogFragment.java | eric-stanley/apg | gpl-3.0 | 14,440 | 326 | codeparrot/github-code |
c58fae02d270559bff75f7ddf367dc1e740f58b33215189b68e9f369b71340d7 | package ozone.mai_2;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import com.google.gson.Gson;
import com.google.gson.GsonBuild... | Java | app/src/main/java/ozone/mai_2/ChooseJudgmentActivity.java | OzoneRPC/android_mai | gpl-3.0 | 2,732 | 85 | codeparrot/github-code |
4d6371bb8115b0c8e67a680600c35b24550e390df009a5b1a2a75341f7dbab1e | $().ready(function () {
//Внедряем зависимости
//Класс обмена событиями между элементами
var Dispatcher = SoCuteGraph.events.dispatchers.Dispatcher;
//Класс позиционирования
var Position = SoCuteGraph.helpers.coordinates.Position;
//Контроллер вершин (элементов схемы)
var Node = SoCuteGraph... | JavaScript | examples/example.js | snicksnk/grapeng | gpl-3.0 | 5,495 | 159 | codeparrot/github-code |
a356be11161d28b81668bde6c864095f7abd40a96c2eae4007b85dfc3790295e | /*
Simple DirectMedia Layer
Copyright (C) 1997-2017 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | C | app/src/main/jni/sdl/src/cpuinfo/SDL_cpuinfo.c | tangalbert919/nds4droid | gpl-3.0 | 24,797 | 778 | codeparrot/github-code |
4abb6b64876d984a3aaf431acbac3ef4cc351a49e59703b3c61c4940a541180f | //Custom Script
// $(function(){
// alert("Onload function of jquery!!!");
// });
// $(document).ready(function(){
// alert("Onload function!!");
// });
$(window).scroll(function() {
if ($(this).scrollTop() > 200) {
$('#navbar-fixed-top').addClass('navbar-fixed-top');
} else {
$('#nav... | JavaScript | SETEC/WBDI/js/main.js | SomboChea/sombochea.github.io | gpl-3.0 | 906 | 38 | codeparrot/github-code |
f17a3cb2a8ca3bf15b353c977f6d935fff6e6586e60b6a3a26fa1d62728fb664 | <?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle 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.
//
// Moodle ... | PHP | mod/notemy/newnotemy_personal.php | jike2016/308b-2016 | gpl-3.0 | 4,845 | 151 | codeparrot/github-code |
585b6a5f6dd08f0c61630cae90bf01c17f942f704478ed85fb3aec0cc27ba925 | # coding=utf-8
#
# <BestRussianTV plugin for XBMC>
# Copyright (C) <2011> <BestRussianTV>
#
# 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
# ... | Python | archive.py | tatigo/XBMC-BestRussianTVPlugin | gpl-3.0 | 9,702 | 252 | codeparrot/github-code |
9c1c9f63e2e6fa1a80fe74ceaa373de4000e6f621c42d22b2ba428bb12291108 | """Commands for making and seeing robotics team associations."""
import collections
import discord
from discord.ext.commands import BadArgument, guild_only
from ._utils import *
from ..asyncdb.orm import orm
from ..asyncdb import psqlt
# alter table team_numbers alter column team_number type text
class Teams(Cog):
... | Python | dozer/cogs/teams.py | guineawheek/Dozer | gpl-3.0 | 6,850 | 163 | codeparrot/github-code |
802c0c806667ceea09b5705e2f703cc8e60026b13e2375dad2a883959fb6c866 | <?php
/**
* Utility functions for External Data
*/
class EDUtils {
// how many times to try an HTTP request
private static $http_number_of_tries = 3;
private static $ampersandReplacement = "THIS IS A LONG STRING USED AS A REPLACEMENT FOR AMPERSANDS 55555555";
/**
* Wraps error message in a span with the "err... | PHP | extensions/ExternalData/ED_Utils.php | Facerafter/starcitizen-tools | gpl-3.0 | 34,203 | 1,057 | codeparrot/github-code |
22a402bd1007dc6f70a71b30db69bf41a9b16f465cc8d52fd56a030c70ea4dc5 |
{# this template will be used to generate the HTML file for each container ! #}
{% if container.introduction %}
{{ container.introduction|safe }}
{% endif %}
{% if versioned_object.children|length != 0 %}
<ul>
{% for extract in versioned_object.children %}
<li>
<a href="#{... | HTML | templates/tutorialv2/export/chapter.html | ChantyTaguan/zds-site | gpl-3.0 | 1,032 | 38 | codeparrot/github-code |
28e222491da11df5a9d38685967193abb3abdc59ba2f90421b3a88978882fd5a |
package jsat.distributions.multivariate;
import java.util.List;
import java.util.concurrent.ExecutorService;
import jsat.DataSet;
import jsat.classifiers.DataPoint;
import jsat.linear.DenseVector;
import jsat.linear.Vec;
/**
* Common class for implementing a multivariate distribution. A number of methods are pre im... | Java | JSAT/src/jsat/distributions/multivariate/MultivariateDistributionSkeleton.java | EdwardRaff/JSAT | gpl-3.0 | 1,234 | 38 | codeparrot/github-code |
68bfd87aa5801a0c0323e86048e0e9b60cf8fe1431b2f6f1d00be52dbc174c54 | /*
* openRatSLAM
*
* main_lv - ROS interface bindings for the local view cells
*
* Copyright (C) 2012
* David Ball (david.ball@qut.edu.au) (1), Scott Heath (scott.heath@uqconnect.edu.au) (2)
*
* RatSLAM algorithm by:
* Michael Milford (1) and Gordon Wyeth (1) ([michael.milford, gordon.wyeth]@qut.edu.au)
*
* ... | C++ | src/main_lv.cpp | mryellow/ratslam | gpl-3.0 | 4,061 | 132 | codeparrot/github-code |
27e45c57e4ab1c26f70f85f461fd098d73298eea134261a0b8e8800ad5350656 | <?php
/**
* Joomlatools Composer plugin - https://github.com/joomlatools/joomlatools-composer
*
* @copyright Copyright (C) 2011 - 2016 Johan Janssens and Timble CVBA. (http://www.timble.net)
* @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
* @link http://github.com/joomlatools/joomlatools-composer for... | PHP | src/Joomlatools/Composer/Plugin.php | joomlatools/joomla-composer | gpl-3.0 | 2,284 | 79 | codeparrot/github-code |
a5acec751c18114961e6e67ebdd2732fd02c7b261cd05fbf4b606998b380f9e3 | <?php
session_start();
if ($_SESSION['image_is_logged_in'] == 'true' ) {
$user = $_SESSION['user'];
$pcat=$_POST['cat'];
$psubcat=$_POST['subcat'];
$pprov=$_POST['prov'];
include 'config/configuracio.php';
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" >
<link rel="styles... | PHP | productes.php | cst777/30pnx_aplicoop | gpl-3.0 | 6,240 | 213 | codeparrot/github-code |
58a41f5af9fb4de76ca4a73846cffb5c786034bdd4e6fe213a049373e866db01 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- Created by GNU Texinfo 6.3, http://www.gnu.org/software/texinfo/ -->
<head>
<title>GNU Octave: Solvers</title>
<meta name="description" content="GNU Octave: Solvers">
<meta name="keywords" content="GNU Oc... | HTML | doc/interpreter/octave.html/Solvers.html | xmjiao/octave-debian | gpl-3.0 | 13,558 | 347 | codeparrot/github-code |
3706e14c0fea6f8f6662008aad266b3fd8c13d141ce61c19688684b85241485e | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Clean and analyse POS/NER patterns.
#
# Usage:
#
# Author: rja
#
# Changes:
# 2017-05-05 (rja)
# - initial version
from __future__ import print_function
import re
import fileinput
re_clean_ner = re.compile("\(([A-Z]+) .+?\)")
re_clean_sla = re.compile("\w+/([A-Z]+)")
# ... | Python | first/analyse_patterns.py | weltliteratur/vossanto | gpl-3.0 | 1,679 | 81 | codeparrot/github-code |
b3ec4cabe2d5e20b729d154cd77f57f5571591d8c100a2145a5836e813b4564a | <?php
namespace cart\behaviors;
use cart\widgets\CartSubView;
use cart\events\CartEvent;
/**
* CartSubViewBehavior class file
*
* @package cart\behaviors
*/
class CartSubViewBehavior extends \yii\base\Behavior
{
/**
* Attach events with this behavior.
* @return array
*/
public function event... | PHP | protected/common/modules/cart/behaviors/CartSubViewBehavior.php | ushainformatique/whatacart | gpl-3.0 | 898 | 41 | codeparrot/github-code |
3fb8d3f9e5cf174c28ff94f3efebdd82ecaa5500c493dcbd1e55cab051149555 | /*******************************************************************************
Copyright (C) 2014-2017 Wright State University - All Rights Reserved
Daniel P. Foose - Maintainer/Lead Developer
This file is part of Vespucci.
Vespucci is free software: you can redistribute it and/or modify
it unde... | C++ | VespucciLibrary/src/Math/Smoothing/whittaker.cpp | VespucciProject/Vespucci | gpl-3.0 | 1,925 | 50 | codeparrot/github-code |
474cdd6a46b0d684b59c9681cd0aecd66ff61a7a5fca5c6624e66ed543bd8577 | /**
* Genji Scrum Tool and Issue Tracker
* Copyright (C) 2015 Steinbeis GmbH & Co. KG Task Management Solutions
* <a href="http://www.trackplus.com">Genji Scrum Tool</a>
*
* 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... | Java | src/main/java/com/aurel/track/admin/customize/category/filter/MenuitemFilterBL.java | trackplus/Genji | gpl-3.0 | 10,948 | 324 | codeparrot/github-code |
cdbe2cf00bcae25908c237b92c3ad68dd655a8bf9ff446db0b97d61ecdbd3bc7 | package model;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Scanner;
import java.util.Stack;
import javafx.scene.control.Alert.A... | Java | src/model/Server.java | zhengyi20201/SushiSystem | gpl-3.0 | 8,661 | 356 | codeparrot/github-code |
dd68e91b6917d3e8ee1ad33cadd703e51c938a3ee21d9cac2a279f1db36a04e6 |
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Google Tag Manager Data Layer -->
<script>
dat... | HTML | others/docs.ansible.com/win_msi_module.html | radiensoftware/ojo | gpl-3.0 | 34,565 | 548 | codeparrot/github-code |
c9f944d1309f195793917539ae7b4fe69f69f7164b7098c13ff1a73c531ddebd | package com.song7749.log.value;
import javax.persistence.Column;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.modelmapper.ModelMapper;
import com.song7749.common.AbstractDto;
import com.song7749.log.domain.LogIncidentA... | Java | song7749-module-log/src/main/java/com/song7749/log/value/LogIncidentAlaramAddDto.java | MS-Song/dbclient | gpl-3.0 | 1,849 | 86 | codeparrot/github-code |
c07292c68c3c134f9f3a564ca9517a1c1a0fb837cd149f4b5e0699be39b82658 | LkRosMap.models.Gemeindeteil = function(store) {
var params = {
gid: store.ogc_fid,
type: 'MultiPolygonFeature',
kreis: store.kreis,
kreisname: store.kreisname,
amt: store.amt,
amtsname: store.amtsname,
gemeinde: store.gemeinde,
gemeindename: store.gemeindename,
gemeindeteil: store... | JavaScript | js/models/Gemeindeteil.js | pkorduan/lkrosmap | gpl-3.0 | 1,963 | 64 | codeparrot/github-code |
e8b4f88cb70cad69c9f8449dd79b2a1c568973648b3ac612866b7975d161f4e4 | #include <Windows.h>
#include <winnt.h>
#include "main.h"
PIMAGE_DOS_HEADER GetDosHeader(PUCHAR file) {
return (PIMAGE_DOS_HEADER)file;
}
/*
* returns the PE header
*/
PIMAGE_NT_HEADERS GetPeHeader(PUCHAR file) {
PIMAGE_DOS_HEADER pidh = GetDosHeader(file);
return (PIMAGE_NT_HEADERS)((DWORD)pidh + pidh->e_lfanew... | C++ | src/pe.cpp | 93aef0ce4dd141ece6f5/pe-infector | gpl-3.0 | 1,325 | 57 | codeparrot/github-code |
51b3a5a5fb68554a5b4a1de8f35b6919bf05a17765ea8a321ee770120bb9398d | /*
* Colosoft Framework - generic framework to assist in development on the .NET platform
* Copyright (C) 2013 <http://www.colosoft.com.br/framework> - support@colosoft.com.br
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as publ... | C# | Text/Colosoft.Text/GrammarReader.cs | fabrimaciel/colosoft | gpl-3.0 | 5,612 | 235 | codeparrot/github-code |
46eae48d86f226dc3600c36bdf0bdf7086b51444c844c6d3a05bbd04f291e215 | <?php
class ControllerExtensionFeedGoogleBase extends Controller {
public function index() {
if ($this->config->get('google_base_status')) {
$output = '<?xml version="1.0" encoding="UTF-8" ?>';
$output .= '<rss version="2.0" xmlns:g="http://base.google.com/ns/1.0">';
$output .= ' <channel>';
$ou... | PHP | upload/catalog/controller/extension/feed/google_base.php | robe4st/ideal-opencart | gpl-3.0 | 5,372 | 144 | codeparrot/github-code |
3453640cb052413d30189c6f5f45a6f8c1c7a317dcf0938d40fd3636d339c13a | #include <Arduino.h>
#include "debug.h"
#include "standardModes.h"
#include "controller.h"
#define EASE(s) controller.getEase()->ease(s)
void color( byte* rgb )
{
controller.color( rgb );
}
void merge( byte* rgb1, byte* rgb2, float ratio )
{
for ( int c = 0; c < 3; c ++ ) {
byte value = ratio * rg... | C++ | standardModes.cpp | nickthecoder/rgb_strip_lights | gpl-3.0 | 3,595 | 175 | codeparrot/github-code |
f438d21b85ac950e279b7013133a3927c78ad54bf6e9384e7c20c118b384fb05 | // BaDialog.cpp : implementation file
//
#include "stdafx.h"
#include "LHWY.h"
#include "BaDialog.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CBaDialog dialog
CBa... | C++ | script_language/sql/Distribute_System_AirTicket/reference_program/wks_学生成绩管理系统/LHWY/BaDialog.cpp | syslover33/ctank | gpl-3.0 | 15,574 | 643 | codeparrot/github-code |
a8ab55dc70221da595d7b88be32ae843da87d5edd3bb75b4ded33f6c0ea4fcd8 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BDDMobile.Data.Fake;
using BDDMobile.Shared.Enums;
using BDDMobile.Shared.Models;
using PropertyChanged;
using Xamarin.Forms;
namespace BDDMobile.ViewModels
{
[ImplementPropertyChanged]
pu... | C# | src/BDD_Mobile/BDD_Mobile/BDD_Mobile/ViewModels/AddTodoItemPageViewModel.cs | Xamariners/Bdd_Mobile_Presentation | gpl-3.0 | 1,257 | 53 | codeparrot/github-code |
6d9b44ac78268dc7f883e2884e1291b87b7346f094340c54b982848163d1632b | <?php
$menuItems = array("Available Tests", "All Tests", "Questions Bank", "Person Sets", "Electronic Books", "Library Management");
$menuImages = array("election.png", "world_48.png", "chcklst4.png", "person.png", "approve1.png", "person.png", "approve1.png");
$mdlNm = "e-Library";
$ModuleName = $mdlNm;
$dfltPrvldg... | PHP | app_code/elibry/elibry_intro.php | rhomicom-systems-tech-gh/Rhomicom-ERP-Web | gpl-3.0 | 4,277 | 118 | codeparrot/github-code |
178de78bcf1f6ef66d8da5332abe755d2bcae5073d8841fb56c2896491744f82 | /*
* 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 bitcoin;
import bitcoin.peerClient.MessageSender;
import bitcoin.messages.BuyMessage;
import bitcoin.messages.MiningM... | Java | BitCoin/src/bitcoin/Miner.java | daiogo/bitcoin-sim | gpl-3.0 | 5,371 | 125 | codeparrot/github-code |
91b3ba36f239107ac36d48e8b337d1e7b329da7b8aa2e5217af24a8a70494df3 | import wx
import os
from printrun.utils import imagefile
def Print_Control(root, parentpanel):
if os.name == "nt":
root.text_loading_file = wx.StaticText(parentpanel, label=str(root.var_loading_file_name), pos=(75, 33))
else:
root.text_loading_file = wx.StaticText(parentpanel, label=str(root.... | Python | printrun/gui/control_printing.py | yoosw/printrun_etri | gpl-3.0 | 6,280 | 114 | codeparrot/github-code |
1b9b01f567c30d52756a0a1a8ef3d690ac956fde8e3899898284e0c910d6abf7 | /*****************************************************************************
* Copyright (c) 2014-2018 OpenRCT2 developers
*
* For a complete list of all authors, please refer to contributors.md
* Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
*
* OpenRCT2 is licensed under the GNU Gener... | C++ | src/openrct2/ride/coaster/InvertedHairpinCoaster.cpp | rwjuk/OpenRCT2 | gpl-3.0 | 59,244 | 1,402 | codeparrot/github-code |
53e02f629627406b7a12e11d54f28ceb0657f5733a1d500fb0ab98b0b574d338 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<title>MarkUnsupportedException (POI API Documentation)</title>
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
</head>
<body>
<script t... | HTML | resources/Apache/Apache-POI-3.16-beta2/poi-bin-3.16-beta2-20170202/poi-3.16-beta2/docs/apidocs/org/apache/poi/hpsf/MarkUnsupportedException.html | doughtnerd/POD | gpl-3.0 | 11,615 | 320 | codeparrot/github-code |
1effb17887461e3c80bc0ed78c4881d4f378ad60fb869ffec5852f3a3f26eed6 | #include "AMControlToolButton.h"
AMControlToolButton::AMControlToolButton(AMControl *control, QWidget *parent) :
AMToolButton(parent)
{
control_ = 0;
// Current settings.
setControl(control);
}
AMControlToolButton::~AMControlToolButton()
{
}
void AMControlToolButton::setControl(AMControl *newControl)
{
if... | C++ | source/ui/beamline/AMControlToolButton.cpp | acquaman/acquaman | gpl-3.0 | 2,068 | 94 | codeparrot/github-code |
db0af49a62d810daa55c5f02a97ae5ec7411c1d42dfec99df81e3e02e061a005 | #ifndef TELEMETRYADVANCEDOPTIONSDIALOG_H_
#define TELEMETRYADVANCEDOPTIONSDIALOG_H_
#include "wx/wxprec.h"
#include "wx/valgen.h"
#include "raceCapture/raceCaptureConfig.h"
class TelemetryAdvancedOptionsDialog : public wxDialog
{
DECLARE_CLASS( OptionsDialog )
DECLARE_EVENT_TABLE();
public:
... | C | include/configuration/TelemetryAdvancedOptionsDialog.h | autosportlabs/RaceAnalyzer | gpl-3.0 | 1,233 | 46 | codeparrot/github-code |
afef406de1b7cdeff7b18bc6ada32728009da24ba2fa048e18a473e74360cd04 | #include <stdlib.h>
#include <stdio.h>
//#define GLEW_STATIC
#include <GL/glew.h>
#include "load_shader.h"
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
//----------------------------------------------------------------------------
static const GLchar*
ReadShader( const char* filename )
{
#ifdef WIN32
FILE... | C | src/load_shader.c | markmccormack/concentrator | gpl-3.0 | 3,484 | 144 | codeparrot/github-code |
55f716b5157dff889e75dc17cbbf25fc9999e85049fd31547896342401307735 | <!DOCTYPE html>
<html lang="en" prefix="og: http://ogp.me/ns# fb: https://www.facebook.com/2008/fbml" >
<head>
<title>PTRACE_TRACEME - jm33_ng</title>
<!-- Using the latest rendering mode for IE -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="utf-8">
<meta name="viewport" ... | HTML | tag/ptrace_traceme.html | jm33-m0/jm33-m0.github.io | gpl-3.0 | 28,272 | 756 | codeparrot/github-code |
7f1fe590ba96ebcf0ca1b4a694d9fb408bb707acbdcda072af21ccbd334c514a | import warnings
from asl_data import SinglesData
def recognize(models: dict, test_set: SinglesData):
""" Recognize test word sequences from word models set
:param models: dict of trained models
{'SOMEWORD': GaussianHMM model object, 'SOMEOTHERWORD': GaussianHMM model object, ...}
:param test_set: Si... | Python | hidden_markov_models/my_recognizer.py | loredanacirstea/ai-algos | gpl-3.0 | 1,646 | 43 | codeparrot/github-code |
58c7c7da771eacfed418fa7fb5cf8922d5c3aa13c9ea069290fc89229ccc546f | <?php
require_once "api-allocine-helper/api-allocine-helper.php";
// Construct the object
$allohelper = new AlloHelper;
// Get keywords
// echo "Title: ";
// Trim the input text.
$search = $argv[1];
//trim(substr(fgets(STDIN), 0, -1));
//echo "ZipCode: ";
... | PHP | src/request/backends/allocine/allocine_showtimes_zip.php | lutcheti/webtext | gpl-3.0 | 1,568 | 65 | codeparrot/github-code |
c34df9552b79c3e536bb29e264ac6775cfc7858afb35d664d1f56343c1624597 | /*
Copyright (C) 2010,2011,2012,2013 The ESPResSo project
This file is part of ESPResSo.
ESPResSo 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 opti... | C++ | src/core/statistics_observable.cpp | HaoZeke/espresso | gpl-3.0 | 47,714 | 1,611 | codeparrot/github-code |
94b72df1c93e110e44750064ea0fa99300c908bbf5fa90ff520aa509ba19e38b | <?php
class Assessoria_deleta_matriz_curso_controller extends MY_controller {
function __construct() {
parent::__construct();
$this->view_data['base_url'] = base_url();
$this->load->model('assessoria_login_model', 'login_model');
$this->load->model('e... | PHP | application/controllers/assessoria_deleta_matriz_curso_controller.php | mausrdr/sismobil | gpl-3.0 | 8,372 | 202 | codeparrot/github-code |
b2d33f51b94420e2216abb51f62c706ab35d59231e1940f13931dfeab799f0aa | "use strict";
var express = require("express");
var TodoItem = require("./data/daoTodoItem");
var logger = require("morgan");
var bodyParser = require("body-parser");
var cors = require("cors");
//create mongo connection
require("./data/connection")();
var app = express();
var router = express.Router();
router.use(l... | JavaScript | app.js | Xartok/NodeTodoAPI | gpl-3.0 | 2,493 | 97 | codeparrot/github-code |
a3c472cf2d2f607ba4ba643fa3913a1172b25cc64b6e038ecfb461ff58d6d961 | #
# Race Capture App
#
# Copyright (C) 2014-2016 Autosport Labs
#
# This file is part of the Race Capture App
#
# This 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 ... | Python | autosportlabs/racecapture/views/configuration/rcp/wirelessconfigview.py | ddimensia/RaceCapture_App | gpl-3.0 | 3,591 | 91 | codeparrot/github-code |
e924a965ab91bcc2f4dc12ba714bd99811b1fc36fdaed42d96a8c594b4bd3287 | /*
* BCFlight
* Copyright (C) 2016 Adrien Aubry (drich)
*
* 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++ | flight/boards/stm32/Thread.cpp | dridri/bcflight | gpl-3.0 | 2,843 | 120 | codeparrot/github-code |
44daf64ecafaf24377f761dd4d293b8baacead1e51ce1c02cc272041b3d5a446 | /*******************************************************************************
* Copyright (c) 2011-2014 SirSengir.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser Public License v3
* which accompanies this distribution, and is availabl... | Java | src/main/java/forestry/arboriculture/render/GermlingVanillaIconProvider.java | ThiagoGarciaAlves/ForestryMC | gpl-3.0 | 1,509 | 44 | codeparrot/github-code |
1559107d4d487c405749660fff33078f39749e3c1bd81c60a4e3def6bef6adf0 | <!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/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Javascript on Fibe... | HTML | html/en/d1/dac/interfaceRedisList-members.html | verdantyang/fibjs_docs | gpl-3.0 | 9,778 | 147 | codeparrot/github-code |
e7a6d7d0da2e62611e0bd64d0a2f2bc451111be4f5efd8e48ce55c673862ca4e | package fr.ircf.humanity.aster;
import fr.ircf.humanity.Game;
public class Resource {
private Game game;
private ResourceType type;
private double value = 0, delta = 0;
public Resource(Game game, ResourceType type, double value){
this.game = game;
this.type = type;
this.value = value;
}
public void up... | Java | src/fr/ircf/humanity/aster/Resource.java | mbautista/humanity | gpl-3.0 | 975 | 48 | codeparrot/github-code |
45cc7ed92ab11a9097e6902d4dd8bb179b9ff9fd939c00385f556587e4354c5e | <?php
namespace Fudge\Sknife\Form\DataTransformer;
use Symfony\Component\Form\DataTransformerInterface;
/**
* HTML to text converter
* @author Yohann Marillet
* @since 28/11/13
*/
class HtmlToTextTransformer implements DataTransformerInterface
{
/**
* @inheritdoc
* @author Yohann Marillet
*/
... | PHP | src/Fudge/Sknife/Form/DataTransformer/HtmlToTextTransformer.php | ymarillet/sknife | gpl-3.0 | 887 | 40 | codeparrot/github-code |
ee49ec08fd600925450c8f327d0da76890c8ee11ff71568c0901b8fcf604ba5a | <div id="map" class="ro-map" style="width:100%;height:600px"></div>
<script type="text/javascript" src="<?php echo load_lib(); ?>theme/js/jquery.min.js" ></script>
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB7xN19aOc0P7G4S9zP6N_uKywn7Vmeebs&callback=initMap">
</script>
<script ty... | PHP | application/modules/adminpanel/views/user/loadmap.php | srammram/jeevan | gpl-3.0 | 5,492 | 122 | codeparrot/github-code |
f4f970b9856255eeaed1c61ffd394a222617613386c3c5f54b5d3c61638284be | // implementing breadth first traversal in graphs
// Author: Kumar Jatin
#include<stdio.h>
#include<stdlib.h>
#include<stdbool.h>
#define maxNode 4
struct node
{
int vertex;
struct node *next;
};
struct node *list[maxNode];
void addNode(int,int);
void BFS(int);
int visited[maxNode]={0};
int queue[maxNode],rear=-1,fro... | C | DSA/Graph/breadth_first_traversal.c | ayushagg31/codelick | gpl-3.0 | 1,972 | 121 | codeparrot/github-code |
ad8a8e320046c90785d4f0ad4730d5e7818e1e05469e5214d2d54852f6b5ed60 | /*---------------------------------------------------------------------------*\
========= |
\\ / F ield | foam-extend: Open Source CFD
\\ / O peration | Version: 3.2
\\ / A nd | Web: http://www.foam-extend.org
\\/ M anipulation | For ... | C++ | src/dynamicMesh/meshMotion/mesquiteMotionSolver/mesquiteMotionSolver.H | Unofficial-Extend-Project-Mirror/foam-extend-foam-extend-3.2 | gpl-3.0 | 11,263 | 383 | codeparrot/github-code |
ab6be6d6551343bc73abc3eea75c9a26196c962568112405c799a09c279662fc | /*
*
* j-chkmail - Mail Server Filter for sendmail
*
* Copyright (c) 2001-2017 - Jose-Marcio Martins da Cruz
*
* Auteur : Jose Marcio Martins da Cruz
* jose.marcio.mc@gmail.org
*
* Historique :
* Creation : janvier 2002
*
* This program is free software, but with restricted license ... | C | libjoe/j-connopen.c | jmarcio/j-chkmail | gpl-3.0 | 8,732 | 356 | codeparrot/github-code |
46601020315d45b27cbdcc847f425810a33b6693b2e42a8678fddb06c6fdaeee | /* MCM file compressor
Copyright (C) 2016, Google Inc.
Authors: Mathieu Chartier
LICENSE
This file is part of the MCM file compressor.
MCM 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, ... | C++ | WordModel.hpp | mathieuchartier/mcm | gpl-3.0 | 7,570 | 320 | codeparrot/github-code |
189e99f23c62a13df0f2e9adc05f99894ec5463519ecae759dcb7e2ad4095d1f | use strict;
use warnings;
package MetaCPAN::Client::ResultSet;
# ABSTRACT: A Result Set
$MetaCPAN::Client::ResultSet::VERSION = '2.017000';
use Moo;
use Carp;
use MetaCPAN::Client::Types qw< ArrayRef >;
has type => (
is => 'ro',
isa => sub {
croak 'Invalid type' unless
grep { $_... | Perl | Files/Code/perl/lib/site_perl/5.26.1/MetaCPAN/Client/ResultSet.pm | mgood7123/UPM | gpl-3.0 | 3,310 | 174 | codeparrot/github-code |
02d060870c09bf11b1aadf6b47dfd9297b13df212f7e4ad427a1ace6e05168be | /*
* This file is part of Gradoop.
*
* Gradoop 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.
*
* Gradoop is distributed in th... | Java | gradoop-flink/src/main/java/org/gradoop/flink/model/impl/operators/split/functions/MultipleGraphIdsGroupReducer.java | Venom590/gradoop | gpl-3.0 | 1,889 | 55 | codeparrot/github-code |
c419d2834a705c20d58b8784cd100e77801e44dcf83b9f3b90fb5283802792e8 | /*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016-2021 hyStrath
\\/ M anipulation |
-------------------... | C++ | src/lagrangian/molecularDynamics/potential/tetherPotential/derived/restrainedHarmonicSpring/restrainedHarmonicSpring.H | vincentcasseau/hyStrath | gpl-3.0 | 2,809 | 106 | codeparrot/github-code |
0b5cc17981a697a801a1804c872339b0f707d300699ddf16dcf37d50b8d85ca6 | """
==================
Colormap reference
==================
Reference for colormaps included with Matplotlib.
This reference example shows all colormaps included with Matplotlib. Note that
any colormap listed here can be reversed by appending "_r" (e.g., "pink_r").
These colormaps are divided into the following cate... | Python | work/ch15/colormap_example.py | v00d00dem0n/PyCrashCourse | gpl-3.0 | 3,677 | 95 | codeparrot/github-code |
a7d7be3c335ad5d437bbe4495d97e3a7d0f94ddd7c77bdecb73a3d0289a0e74a | # UTF-8 encoded polish translation file for use with Oddmuse
#
# Copyright (c) 2006 Radomir Dopieralski
# Copyright (c) 2007 Marcin Borkowski
# Copyright (c) 2008 Przemysław Wesołek
#
# Permission is granted to copy, distribute and/or modify this
# document under the terms of the GNU Free Documentation License,
# Versi... | Perl | modules/translations/polish-utf8.pl | kensanata/oddmuse | gpl-3.0 | 48,526 | 1,704 | codeparrot/github-code |
0b93f1aac731df7021b232a85118b328f6867bc063dcfbbb2b4b9743e53cc348 | /*++
Copyright (c) 2006 Microsoft Corporation
Module Name:
bv_decl_plugin.cpp
Abstract:
<abstract>
Author:
Leonardo de Moura (leonardo) 2008-01-09.
Revision History:
--*/
#include<sstream>
#include"bv_decl_plugin.h"
#include"arith_decl_plugin.h"
#include"warning.h"
#include"ast... | C++ | contrib/Z3/lib/bv_decl_plugin.cpp | cs-au-dk/Artemis | gpl-3.0 | 32,742 | 841 | codeparrot/github-code |
62a92f673899c6d8e27171bec5ba468b0b1c92f856d67d714b2377648512dc49 | /*
Part of the NETLab Hub, which is part of the NETLab Toolkit project - http://netlabtoolkit.org
Copyright (c) 2006-2013 Ewan Branda
NETLab Hub 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 o... | Java | plugins/arduino/src/netlab/hub/plugins/arduino/ArduinoService.java | netlabtoolkit/hub | gpl-3.0 | 7,745 | 235 | codeparrot/github-code |
abae94f7d322ecdaab40997a44199d60a2d563da7925ecefd6db6f180926acef | <?php /* Smarty version Smarty-3.1.19, created on 2016-03-17 14:43:56
compiled from "/Users/Evergreen/Documents/workspace/licpresta/admin/themes/default/template/controllers/products/informations.tpl" */ ?>
<?php /*%%SmartyHeaderCode:115292829056eab49ca8c000-86537135%%*/if(!defined('SMARTY_DIR')) exit('no dire... | PHP | cache/smarty/compile/fa/e5/f2/fae5f250b8917817ba1faff77a2e846f9d3294af.file.informations.tpl.php | ToxEn/LicPresta | gpl-3.0 | 33,976 | 654 | codeparrot/github-code |
1bb536d2ac8f7a2887928a7f33b4d39b49d83938b936f69a3bd133da47eace03 | #include "closebutton.h"
#include <QStyle>
#include <QPainter>
#include <QPaintEvent>
#include <definitions/resources.h>
#include <definitions/stylesheets.h>
#include "iconstorage.h"
#include "stylestorage.h"
CloseButton::CloseButton(QWidget *AParent) : QAbstractButton(AParent)
{
setMouseTracking(true);
... | C++ | src/utils/closebutton.cpp | Rambler-ru/Contacts | gpl-3.0 | 1,063 | 47 | codeparrot/github-code |
51b5363a383ca344c9d3cfae3dcc0bd6edcca0ada1f5d4258e0b65898b288faa | using UnityEngine;
using System.Collections;
/*
* ----------------------------------------------------------------------------
* Creation Info
* ----------------------------------------------------------------------------
* BipedHelpers
* Version: 1.0
* Date: 2010.10.31
* Author: Adam Mechtley (http://adammecht... | C# | Assets/Biped Editor/ Scripts/Library/Characters/BipedHelpers.cs | minusreality/virtual-reality | gpl-3.0 | 3,626 | 109 | codeparrot/github-code |
1b2a272dbfe51c253a8414a04c5b427cd27206451ce1fccab2ef87966cd6ce13 | <?php
session_start();
require_once 'class.user.php';
$user = new USER();
if(!$user->is_logged_in())
$user->redirect('index.php');
if(isset($_SESSION['valid']) && isset($_GET['id']) && $_GET['id']!="" && !isset($_SESSION['start']))
{
$qid = preg_replace('/[^0-9]/', "", $_GET['id']);
$id = $_SESSION['userSession'];... | PHP | quiz.php | siddias/online-quiz | gpl-3.0 | 11,387 | 377 | codeparrot/github-code |
29db3902ee66fb0541af37d15a2c80e9fec0cea4ce9beff9e1d04f9732fb88d0 | /*
Copyright (C) 2004-2017 John W. Eaton
This file is part of Octave.
Octave 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.
Octave is di... | C | libinterp/octave-value/ov-int64.h | xmjiao/octave-debian | gpl-3.0 | 1,513 | 59 | codeparrot/github-code |
b2d86f1afed615cfd3ab5231307fac89987c81370572850df6dafce637b13630 | #include "stdinc.h"
#include "newhash.h"
#include "extfunc.h"
#include "extvab.h"
#include "ctype.h"
boolean upper_rev(char *in, int in_len);
void print_seq(FILE *out_file, char *sequence , int sequence_len);
char rev[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, //0
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, //10
... | C | fusion/prepare.c | aquaskyline/SOAPdenovo2 | gpl-3.0 | 7,614 | 255 | codeparrot/github-code |
6068aa0af0d1c721d0b579c54baa6ef95e0b4c5cc9b79ad1956b032cf45b8ec6 | (function (App) {
'use strict';
var API_ENDPOINT = URI('https://api-v2launch.trakt.tv'),
CLIENT_ID = '647c69e4ed1ad13393bf6edd9d8f9fb6fe9faf405b44320a6b71ab960b4540a2',
CLIENT_SECRET = 'f55b0a53c63af683588b47f6de94226b7572a6f83f40bd44c58a7c83fe1f2cb1',
REDIRECT_URI = 'urn:ietf:wg:oauth:... | JavaScript | src/app/lib/providers/trakttv.js | mattgilman10/butter-desktop | gpl-3.0 | 27,491 | 780 | codeparrot/github-code |
7cf78549dce161550c71357dd9c868f31d5ebdb99db2be8402987853e40bb6ee | /*---------------------------------------------------------------------------*\
========= |
\\ / F ield | foam-extend: Open Source CFD
\\ / O peration | Version: 3.2
\\ / A nd | Web: http://www.foam-extend.org
\\/ M anipulation | For ... | C++ | src/tetFiniteElement/tetPolyMesh/tetPolyBoundaryMesh/tetPolyBoundaryMesh.H | Unofficial-Extend-Project-Mirror/foam-extend-foam-extend-3.2 | gpl-3.0 | 3,412 | 123 | codeparrot/github-code |
da56bd7ab23d2a32d0e33142a192bee524da9b556c59999472d24e2f0d66e456 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/TR/REC-html40">
<!--
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | HTML | Source/hdf5-1.6.10/doc/html/cpplus_RM/H5Group_8cpp.html | glentner/Gadget | gpl-3.0 | 13,865 | 384 | codeparrot/github-code |
58719fd04d28583e23ca2fe2699ad10d37b55f7d5267d7e5f06a9382213ddb01 | # ===============================================================================
# Copyright (C) 2010 Diego Duclos
#
# This file is part of eos.
#
# eos 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, ... | Python | eos/db/saveddata/queries.py | pyfa-org/Pyfa | gpl-3.0 | 18,335 | 581 | codeparrot/github-code |
7cae5739e6fed9ceff43057f488a814eda217c5711401349d585b82aed0043ca | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace attica_gold.Models
{
[Table("tblCustomers")]
public class CustomerModels
{
[Key]... | C# | attica_gold/Models/CustomerModels.cs | Avoirblockchain1/Attica_gold | gpl-3.0 | 1,163 | 36 | codeparrot/github-code |
8bdd47d46ebfa8a9670bd8674f5c50505856686df2448286f45f288118c6403b | #!/usr/bin/env python3
# coding=utf-8
from Geometry.Vector2 import Vector2
import math
import pygame
def intersecting_rows(rect1, rect2):
"""
@param rect2: pygame.Rect
@param rect1: pygame.Rect
@return: tuple
"""
tile_left = math.floor(rect1.left / rect2.width)
tile_right = math.ceil(rect... | Python | Helpers.py | bubbles231/Prototype | gpl-3.0 | 20,270 | 554 | codeparrot/github-code |
bbf375394597b7e8741828b0e085275dc6647b9630c494d21b9e19fe98e96ad3 | #include <unistd.h>
#include <string.h>
#include <fcntl.h>
#include <errno.h>
#include "dv_types.h"
#include "dv_socket.h"
#include "dv_event.h"
#include "dv_errno.h"
#include "dv_mem.h"
#include "dv_msg.h"
#include "dv_ip_pool.h"
#include "dv_trans.h"
#include "dv_log.h"
#include "dv_server_cycle.h"
#include "dv_serv... | C | src/server/dv_server_socket.c | jasonchin221/DoveVPN | gpl-3.0 | 9,102 | 355 | codeparrot/github-code |
adae777a72947bbe71d67c5320827aa80920c850f1111121682c4d5fca98dcbd |
/************************************************************************
* FILE NAME: objectphysicsdata3d.cpp
*
* DESCRIPTION: Class containing the 3D object's physics data
************************************************************************/
// Physical component dependency
#include <obj... | C++ | library/objectdata/objectphysicsdata3d.cpp | GameCodingNinja/sdl2-opengl-game-engine | gpl-3.0 | 7,388 | 211 | codeparrot/github-code |
159627576869cf487b1e500fcc963dc0583502d801fd7c14acc572dbc4029a18 | using System;
using System.IO;
using System.Runtime.Remoting.Contexts;
namespace L2dotNET.Network
{
[Synchronization]
public abstract class GameserverPacket
{
private readonly MemoryStream _stream = new MemoryStream();
protected void WriteBytesArray(byte[] value)
{
_st... | C# | src/L2dotNET/Network/GameserverPacket.cs | MartLegion/L2dotNET | mpl-2.0 | 2,209 | 90 | codeparrot/github-code |
69f717dfbe96734d8fbe367e9f2e56c42d27ea194e3c8b06302ca17e894f36fb | /*
* Copyright (C) 2006 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Java | app/src/main/java/com/example/android/internal/util/XmlUtils.java | zamojski/TowerCollector | mpl-2.0 | 34,052 | 967 | codeparrot/github-code |
4992763364a304d61c83566f3b71d5c80d996d77847c0eaf65c0e1de3c938de8 | var EventEmitter2 = require('eventemitter2').EventEmitter2,
util = require('util'),
net = require('net'),
xml2js = require('xml2js'),
generateUuid = require('node-uuid'),
esl = require('./esl'),
Event = require('./Event'),
Parser = require('./Parser');
//- function(host, port, password)
//I... | JavaScript | lib/esl/Connection.js | fishdude/node-esl | mpl-2.0 | 25,146 | 792 | codeparrot/github-code |
8bcd498a3cc52282a0af9b41d763bcfceda365317a5f7ef9ecc2b209da89889f | package common
import (
"context"
"fmt"
"log"
"os"
"github.com/hashicorp/packer-plugin-sdk/multistep"
packersdk "github.com/hashicorp/packer-plugin-sdk/packer"
"github.com/hashicorp/packer-plugin-sdk/template/interpolate"
)
type guestAdditionsPathTemplate struct {
Version string
}
// This step uploads the g... | GO | builder/virtualbox/common/step_upload_guest_additions.go | ricardclau/packer | mpl-2.0 | 2,086 | 73 | codeparrot/github-code |
32f2974cac5304c2ecaa9397c12c333c6e1a035eed592df0d3c35098e3e4ccf4 | module Game.Toliman.Graphical.SDL.Core(
sdlCheckRet, sdlCheckRet',
sdlCheckPtr, sdlCheckPtr',
sdlCheckPred, sdlCheckPred',
sdlGetError ) where
import Foreign.C.Types (CInt)
import Foreign.C.String (peekCAString)
import Foreign.Ptr (Ptr, nullPtr)
import Text.Printf (printf)
import Control.Monad.Lift.IO (MonadI... | Haskell | src-lib/Game/Toliman/Graphical/SDL/Core.hs | duncanburke/toliman-graphical | mpl-2.0 | 1,577 | 47 | codeparrot/github-code |
d94f6c327e52be5dce8299a295fe559c7a1c26eba98f27d6d5fb4465527434e8 | /**
* Copyright (c) 2017-2018, RTE (http://www.rte-france.com)
* 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://mozilla.org/MPL/2.0/.
*/
package com.powsybl.cgmes.conversion.elements;
i... | Java | cgmes/cgmes-conversion/src/main/java/com/powsybl/cgmes/conversion/elements/SubstationConversion.java | powsybl/powsybl-core | mpl-2.0 | 2,902 | 72 | codeparrot/github-code |
bf564b3a81edbcb06e439375e24a7cb7318faea9c1bd1ea235912f1e176ecd6b | dojo.provide("dojox.layout.GridContainerLite");
dojo.require("dijit._Templated");
dojo.require("dijit.layout._LayoutWidget");
dojo.require("dojox.mdnd.AreaManager");
dojo.require("dojox.mdnd.DropIndicator");
dojo.require("dojox.mdnd.dropMode.OverDropMode");
dojo.require("dojox.mdnd.AutoScroll");
dojo.decla... | JavaScript | src/public/js/libs/dojox/layout/GridContainerLite.js | ThesisPlanet/EducationPlatform | mpl-2.0 | 23,642 | 811 | codeparrot/github-code |
a1a1ddb65f0317d29907d21447b900b83fef69acc58560cd62b7c649f495b7c2 | // Textfield - constructor
#include "Textfield.hpp"
#include <iostream>
//! Font constructor.
/*!
* Creates text field with the given font.
*/
Textfield::Textfield(const sf::Font* font) :
m_font(),
m_lim(default_lim),
m_cur_text(sf::String(L""), nullptr, sf::Color::Black, default_char_size),
m_texts(m_l... | C++ | src/Textfield.cpp | SebMuek/wymon_orion | mpl-2.0 | 7,674 | 265 | codeparrot/github-code |
a74c644e44d685437c11983337609c1ceaa283de8ec4c7a179eb68c4cf0b0386 | import { Button, Heading, Link, themeColor, themeSpacing } from '@amsterdam/asc-ui'
import { useSelector } from 'react-redux'
import styled from 'styled-components'
import type { LatLngLiteral } from 'leaflet'
import type { FunctionComponent } from 'react'
import PanoAlert from '../../../app/components/PanoAlert/PanoAl... | TypeScript | src/map/components/detail-result/MapDetailResultWrapper.tsx | DatapuntAmsterdam/atlas_prototype | mpl-2.0 | 3,295 | 110 | codeparrot/github-code |
dcb7bdb9065acc12c1af047a286f5e2483f4ea64491cca92f6915c2307a44e7e | /*
* Copyright 2013 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkColorFilterShader.h"
#include "SkReadBuffer.h"
#include "SkWriteBuffer.h"
#include "SkShader.h"
#include "SkString.h"
#if SK_SUPPORT_GPU
#include "GrFragmentProce... | C++ | gfx/skia/skia/src/core/SkColorFilterShader.cpp | Yukarumya/Yukarum-Redfoxes | mpl-2.0 | 4,715 | 141 | codeparrot/github-code |
2f7d647f09146ad875942d6545c074139eedccd561074b04e607f1c66cf49be1 | /* Copyright 2014 Richard H. Tingstad
*
* 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://mozilla.org/MPL/2.0/.
*/
package com.rictin.util.pipe;
import java.util.Collection;
import com.... | Java | collections-core/src/main/java/com/rictin/util/pipe/Condition.java | tingstad/collections | mpl-2.0 | 3,051 | 84 | codeparrot/github-code |
2f0e42bfd9f3c810276ba8e2b60e0e1b90e9c89ca5b378dd1e753dfe84db594f | namespace Winium.StoreApps.Driver.EmulatorHelpers
{
#region
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Phone.Tools.Deploy;
#endregion
public class Devices
{
#region Static Fields
private static readonly Lazy<Devices> LazyInsta... | C# | Winium/Winium.StoreApps.Driver/EmulatorHelpers/Devices.cs | krishachetan89/Winium.StoreApps | mpl-2.0 | 1,983 | 83 | codeparrot/github-code |
3125c927c3e05ecadbea0a09aea7ecc2fa4ee0be96702a9fd95ae167231b94b1 | /* 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://mozilla.org/MPL/2.0/. */
importScript([
"../../lib/jquery.js",
"../../lib/jquery-ui/js/jquery-ui-1.10.2.custom.js",
"../../lib/jquery-u... | JavaScript | public/modevlib/gui/GUI.js | klahnakoski/TestFailures | mpl-2.0 | 22,375 | 709 | codeparrot/github-code |
efb44516eedf3be1149aea70de4e69f3860a3f41ee3f0a28114b178957c74fab | /*
* Copyright © 2014 - 2016 | Wurst-Imperium | All rights reserved.
*
* 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://mozilla.org/MPL/2.0/.
*/
package tk.wurst_client.commands;
impor... | Java | src/tk/wurst_client/commands/AddAltCmd.java | CisBetter/Wurst-MC-1.10 | mpl-2.0 | 1,843 | 60 | codeparrot/github-code |
1e2b62132eb509acdda179f05c2a9dc2ae11b969098893cded10ee01e1bca0f0 | // 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://mozilla.org/MPL/2.0/.
#include "common.hh"
#include "control.hh"
using namespace std;
ControlDirection ControlEvent::direction() const n... | C++ | src/control.cc | Koromix/evx | mpl-2.0 | 2,563 | 117 | codeparrot/github-code |
a247ad29d1e4097c304b81ed175120daaccc8de4f77eb3aa68f25882845cabe0 | #ifndef XENINFO_HPP
#define XENINFO_HPP
#include "xenMain.hpp"
//! The Xennet namespace.
/*!
The Xennet namespace contains all of the classes and functions in the library.
*/
namespace Xennet
{
//! The Info class provides library information
class Info
{
public:
/*! Default constructor */
... | C++ | libXennet/src/xenInfo.hpp | kurtisharms/libxennet | mpl-2.0 | 741 | 33 | codeparrot/github-code |
7603fe1c4a432224d1ed2ef2c6fddacc0ed22f409cb48fdc851dcb6c4fe84199 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the Lic... | C++ | gfx/src/beos/nsDeviceContextBeOS.cpp | tmhorne/celtx | mpl-2.0 | 11,895 | 458 | codeparrot/github-code |
ea8b185fb395111425fb0e6cb274c46fcc2daca690f375b6efd542552a33c4b3 | # -*- coding=utf-8 -*-
"""
Created on Aug 10, 2016
@author: corvo
"""
import json
import urllib
import urllib2
def get_card(_uuid):
""" 通过uuid 获取一卡通号 """
_check_path = 'http://www.heraldstudio.com/api/user'
# print (_uuid)
params = {'uuid': _uuid}
data = urllib.urlencode... | Python | mod/kuaidi/Utlis/Helper.py | HeraldStudio/HeraldAppApi | mpl-2.0 | 621 | 34 | codeparrot/github-code |
0ac1d0532debf8e8e78ee384443318daf57106499a3a5858069527aeb373fcd5 | /**
* Copyright (C) 2015 Orange
* <p>
* 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://mozilla.org/MPL/2.0/.
*/
package com.orange.ocara.data.cache.file;
import android.content.Context... | Java | app/src/androidTest/java/com/orange/ocara/data/cache/file/AssetImageStorageFileExistsFT.java | Orange-OpenSource/ocara | mpl-2.0 | 1,826 | 69 | codeparrot/github-code |
7d54e3baa52ffdbf4208fc296b3bc514c05b40b1c7b45f1bc5d1fd69deb34f17 | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the Lic... | C++ | js/src/xpconnect/src/nsXPConnect.cpp | tmhorne/celtx | mpl-2.0 | 78,190 | 2,394 | codeparrot/github-code |
f8b451397f3dfddbfaf9cc856278d429cd49c8294b145bcbb16fa1bba085d94d | # 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 https://mozilla.org/MPL/2.0/.
import numpy as np
from scipy.sparse import lil_matrix
# Import sile objects
from .sile import SileScaleUp
from ..sile ... | Python | sisl/io/scaleup/rham.py | zerothi/sisl | mpl-2.0 | 3,108 | 104 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.