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 |
|---|---|---|---|---|---|---|---|---|
79a9997610b1e0efdac859000862294b2f584d4eaf0012ee5e486f89ab5837ca | package com.bluecatcode.jeff.visitor;
import org.objectweb.asm.MethodVisitor;
import org.objectweb.asm.Opcodes;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class ExceptionMethodVisitor extends MethodVisitor implements Opcodes {
private static final Logger log = LoggerFactory.getLogger(Excepti... | Java | agent/src/main/java/com/bluecatcode/jeff/visitor/ExceptionMethodVisitor.java | pawelprazak/jeff | apache-2.0 | 1,431 | 37 | codeparrot/github-code |
7e03e4ed5fb8666f5609ab89e1d4e8d9f6c761deca89ab47d216631032c30695 | <!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>
java - CodingRoad-编程之路
</title>
<link href="atom.xml" rel="alternate" title="CodingRoad-编程之路" type="application/atom+xml">
... | HTML | java.html | zhangbo2012/blog | apache-2.0 | 9,668 | 361 | codeparrot/github-code |
aa23006f131a615bd0172fca5eaf259712f78637ebf267d3f3bde919ef9d53e3 | /**
* @Author: liushaobo2005@163.com
* @Date: 2017.3.6 下午 5:44
* @Desc: 工具类 - 网络请求
* @Name: Http.js
* @Refer:https://github.com/yangjiayu/react-native-fetch/blob/master/fetch.js
*/
/**
* 请求方式类型
* @type {{GET: string, POST: string}}
*/
const HTTP_METHOD = {
GET: "GET",
POST: "POST",
};
/**
* 数据类型
* ... | JavaScript | common/utils/Http.js | kinshasa/react-native-qatest | apache-2.0 | 7,290 | 332 | codeparrot/github-code |
99c679b1bd92e4bcb11b9978d478dda255989a4ed49e7563876d3a6d2d1a7e8f | import helper
import json
import pandas as pd
import mpld3
import numpy as np
import requests
import factor_analysis
import visualizations
from datetime import timedelta, datetime
from netwin_analysis import netwin_analysis
from sqlalchemy import create_engine
from generateresponsefromrequest import get_intent_entity_f... | Python | src/main.py | kruegg21/casino_analytics | apache-2.0 | 14,236 | 364 | codeparrot/github-code |
58d28adcc6ea4970a3dd536d09092c4e4fe894e24a9c5db1884679dede041b79 | package it.eng.asset.view.vaadin;
import it.eng.asset.bean.Asset;
import it.eng.asset.bean.AssetExtended;
import it.eng.asset.bean.PropertyUSDL;
import it.eng.asset.bean.PublicService;
import it.eng.asset.resources.ConstantsView;
import it.eng.asset.service.AssetService;
import it.eng.asset.service.IAssetServi... | Java | FITMAN-CAM/Asset_Viewer_Service_Rep/src/it/eng/asset/view/vaadin/PublicServiceDetail.java | CAMTeam/fitman-cam | apache-2.0 | 35,496 | 1,057 | codeparrot/github-code |
e07abae4a5a3002307d2f3883b8a18c1b35bed95d2cc59f5b8605ea4897e5754 | /*
* Este codigo pertenece a miguel.navarrovera@gmail.com
* Su uso esta prohibido para uso comercial.
* Si tienes interes en usarlo, ponte en contacto conmigo, Gracias. :D
*/
package org.mig.java.Entities;
import java.io.Serializable;
/**
* @author miguelangel
*/
public class Telefonos implements Serializable ... | Java | src/java/org/mig/java/Entities/Telefonos.java | miguelillo/AllThatIWant | apache-2.0 | 1,139 | 57 | codeparrot/github-code |
84ea1b382caa80be7886cbfd5a82f7ae329afb05857078573ae071a645bd2e90 | #ifndef _SHADER_MANAGER_H_
#define _SHADER_MANAGER_H_
#include <GL/GLee.h>
#include <MathGL/GLMatrix.h>
#include <string>
#include <map>
#include <set>
#include <utility>
namespace glsl
{
class ShaderManager
{
public:
enum ClippingSurface { SPHERE = 1, CUBE = 2 };
enum ErrorCode { SUCCESS,... | C | RealSurf/ShaderManager.h | porst17/realsurf | apache-2.0 | 2,994 | 90 | codeparrot/github-code |
fbeb35b1534b1413ab544981fe3d513e4c719c02ff4035ee447d2055ae83a7b7 | /*
* Copyright 2017-present Open Networking Foundation
*
* 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 appli... | Java | drivers/p4runtime/src/main/java/org/onosproject/drivers/p4runtime/P4RuntimePacketProgrammable.java | kuujo/onos | apache-2.0 | 2,088 | 60 | codeparrot/github-code |
5a05880df2625d256fbae456499db4c85028d79eed8fa14ff600967b61f99fa3 | using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using Object = UnityEngine.Object;
namespace Gamelogic
{
/**
Contains useful extensions for Transform.
@author Herman Tulleken
@version1_0
*/
public static class TransformExtensions
{
#region Position
... | C# | FCCD Unity Project/Assets/Gamelogic/Plugins/Common/Extensions/TransformExtensions.cs | iYUYUE/Filthy-Cell-Culture-Dish | apache-2.0 | 16,834 | 671 | codeparrot/github-code |
0f8aed2c1dfc460b5262a8e937bf00d24df24909cfba04caa48d9520a7e7e785 | package com.airport
import akka.actor.Actor
class AircraftActor(
id: String,
callsign: String,
altitude: Double,
speed: Double,
heading: Double,
passengers: List[Passenger],
weather: List[Weather]) extends Actor {
import AircraftProtocol._
var currentState: Aircraft = Aircraft(id, callsign, altitu... | Scala | chapter5_001_airport/src/main/scala/com/airport/cAircraftActor.scala | ironfish/reactive-application-development-scala | apache-2.0 | 1,001 | 40 | codeparrot/github-code |
6031ac986572cebe505c122d303c8b853def33532950271eb1940674408a708f | package Razor2::Preproc::deHTML_comment;
sub new {
my $class = shift;
return bless {}, $class;
}
sub isit {
my ( $self, $text ) = @_;
my $isit = 0;
my ( $hdr, $body ) = split /\n\r*\n/, $$text, 2;
return 0 unless $body;
$isit = $body =~ /(?:<HTML>|<BODY|<FONT|<A HREF)/ism;
return ... | Perl | lib/Razor2/Preproc/deHTML_comment.pm | toddr/Razor2-Client-Agent | artistic-2.0 | 577 | 39 | codeparrot/github-code |
cc80441ff3830afdd7b51ed3a7061038a2df592253e06f7c880a1bdf2ed1154d | # coding=utf-8
from abc import ABCMeta, abstractmethod
from typing import Optional
from weakref import ref
from logging import getLogger
from ultros.core.networks.base.connectors import base as base_connector
from ultros.core.networks.base.networks import base as base_network
__author__ = "Gareth Coles"
class Base... | Python | src/ultros/core/networks/base/servers/base.py | UltrosBot/Ultros3K | artistic-2.0 | 942 | 32 | codeparrot/github-code |
545faf04273679a54828403ef87c6b64b4a75824acb819f3e0077b90fa59b5c8 | // Copyright (C) 2019 - 2020 by Pedro Mendes, Rector and Visitors of the
// University of Virginia, University of Heidelberg, and University
// of Connecticut School of Medicine.
// All rights reserved.
// Copyright (C) 2017 - 2018 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., University of Heidelbe... | C | copasi/UI/CQTimeSeriesDM.h | jonasfoe/COPASI | artistic-2.0 | 1,889 | 59 | codeparrot/github-code |
efad9be9e0eb4951d48e5c8cfc21344d5ec974c222cdf4914d507ac4accf427c | using UnityEngine;
using UnityEngine.UI;
public class LanguageDropDown:Dropdown {
[SerializeField]
int langId = -1;
public int LangId {
get { return langId; }
set { SetText(value); }
}
protected override void Awake() {
base.Awake();
if(!Application.isPlaying) retu... | C# | Assets/Scripts/Languages/LanguageDropDown.cs | JLChnToZ/BMP-U | artistic-2.0 | 967 | 38 | codeparrot/github-code |
2db494c74225785b75e3d128c6eb832e3675da8e504dad91dbbe026b888ee110 | #!/usr/bin/perl -w
use strict;
# use first argument of script as file name whith data
my $test_file_path = $ARGV[0];
# open file and get file handler or die
open( FH, "<", "$test_file_path") or die "Can not open test file: $!";
my $first_key = "";
my $str = "";
# line counter
my $count = 0;
while (<FH>) {
if ($cou... | Perl | noobs/03/dmitriy.poltavchenko.pl | cono/p5-students-project | artistic-2.0 | 2,224 | 92 | codeparrot/github-code |
550d161ba4125f8b46a0ac15e29a489d0c6b4f7e1b8d1657c767eca51ffb110e | using System;
using System.IO;
using System.Collections.Generic;
using System.Reflection;
using System.Security.Cryptography;
using System.Text;
using Microsoft.Extensions.PlatformAbstractions;
using DbUp;
using Mono.Options;
using ServiceStack.OrmLite;
using ServiceStack.OrmLite.Sqlite;
using Patched.Tables;
names... | C# | Bll/AppBlDirectories.cs | brianmed/Patched | artistic-2.0 | 1,262 | 48 | codeparrot/github-code |
bc2933b7576ae41d256bbaa97ed49ac2b1005b8a95f64792d9217d6f3f15584d | package WP::API::Role::WPObject;
{
$WP::API::Role::WPObject::VERSION = '0.01';
}
BEGIN {
$WP::API::Role::WPObject::AUTHORITY = 'cpan:DROLSKY';
}
use strict;
use warnings;
use namespace::autoclean;
use DateTime;
use MooseX::Params::Validate qw( validated_hash );
use Scalar::Util qw( blessed );
use WP::API::Types q... | Perl | lib/WP/API/Role/WPObject.pm | gitpan/WP-API | artistic-2.0 | 5,406 | 251 | codeparrot/github-code |
f3b1036dc3e192715048f3f5d149791e7e911270bd2ba9feeb6a2d1a71cfb37e | # Sample script to install Miniconda under Windows
# Authors: Olivier Grisel, Jonathan Helmus and Kyle Kastner, Robert McGibbon
# License: CC0 1.0 Universal: http://creativecommons.org/publicdomain/zero/1.0/
$MINICONDA_URL = "http://repo.continuum.io/miniconda/"
function DownloadMiniconda ($python_version, $platform... | PowerShell | conda-recipes/appveyor/install.ps1 | m-labs/llvmlite | bsd-2-clause | 3,114 | 96 | codeparrot/github-code |
6250fec17510f32f6e7fdbd9815d37f128d0c09e2ddc75362a10074153db4532 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windo... | C# | Nymphicus/UserInterface/Preferences.xaml.cs | TlhanGhun/nymphicus-windows | bsd-2-clause | 44,083 | 1,130 | codeparrot/github-code |
55fd45e1444e2d9b3e627f173658bf872b91c9f29c37a5a03ac3badea5f26b12 | #include <vector>
#include <iv/conversions.h>
#include <iv/lv5/error_check.h>
#include <iv/lv5/constructor_check.h>
#include <iv/lv5/arguments.h>
#include <iv/lv5/jsval.h>
#include <iv/lv5/error.h>
#include <iv/lv5/jsobject.h>
#include <iv/lv5/jsarray.h>
#include <iv/lv5/jsvector.h>
#include <iv/lv5/jsstring.h>
#includ... | C++ | iv/lv5/runtime/json.cc | Constellation/iv | bsd-2-clause | 6,807 | 209 | codeparrot/github-code |
2bb7c5786cb3c99b0637e085bd274b00b4d737688ac6a498012eb0542af8f284 | /*
* Copyright (c) 2015, Peter 'Kevin' MacWhinnie
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions may not be sold, nor may they be used in a commercial
* product ... | Java | app/src/test/java/com/kevinmacwhinnie/fonz/achievements/InAppTrophyRoomTests.java | decarbonization/android-fonz | bsd-2-clause | 4,098 | 100 | codeparrot/github-code |
4899d0b305ae537a400161fd91d672f8b819c4fb98a0c2dd0dfe7e6ebe0b791d | /*++
Copyright (C) 2019 3MF Consortium (Original Author)
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditio... | C++ | Include/API/lib3mf_meshobjectiterator.hpp | 3MFConsortium/lib3mf | bsd-2-clause | 2,518 | 90 | codeparrot/github-code |
2825f8a0e07fe1379504186b2c167045fe72b09c2aa07cf1b6b4b61752013046 | // Copyright (C) 2018-2019 European Spallation Source, ERIC. See LICENSE file
//===----------------------------------------------------------------------===//
///
/// \file GapClusterer.cpp
/// \brief GapClusterer class implementation
///
//===----------------------------------------------------------------------===//
... | C++ | src/common/reduction/clustering/GapClusterer.cpp | ess-dmsc/event-formation-unit | bsd-2-clause | 3,296 | 100 | codeparrot/github-code |
e93b33980c2809c089e5f251afde23a5990a571a58afb4cc027fb5468a2abddc | c_template = """
#include <libcgc.h>
#include <stdlib.h>
#include <string.h>
#include <boolector.h>
enum register_t
{
eax = 0,
ecx = 1,
edx = 2,
ebx = 3,
esp = 4,
ebp = 5,
esi = 6,
edi = 7
};
int fd_ready(int fd) {
struct timeval tv;
fd_set rfds;
int readyfds = 0;
FD_SET(fd, &... | Python | rex/exploit/cgc/c_templates/c_template_type1.py | shellphish/rex | bsd-2-clause | 13,969 | 564 | codeparrot/github-code |
bfd6dd603c71b63dfc4d163816bad6f68ce3f68da6d16ede61c2bf07c1878496 | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* DARTS - A fine-grain dataflow-inspired runtime system. *
* Copyright (C) 2011-2014 University of Delaware *
* ... | C++ | apps/FastMergesort/darts_msort.cpp | szuckerm/DARTS | bsd-2-clause | 4,212 | 122 | codeparrot/github-code |
e79974b4c74667eb1ddd4473e4d212fd6729c7cdf7174f8b3be431f792ab1c97 | #include "SimulationTime.h"
bool SimulationTime::instanceFlag = false;
SimulationTime* SimulationTime::constInstance = NULL;
SimulationTime::SimulationTime()
{
}
double SimulationTime::getCurrentTimeStep()
{
return timeStepHistory[timeStepHistory.back()];
}
void SimulationTime::newTimeStep(double dt)
{
timeStepH... | C++ | src/SimulationTime.cpp | cemulate/cpp-simulator | bsd-2-clause | 580 | 35 | codeparrot/github-code |
27644b50aaf7d634b37433a2856e135849256335cb58030169f96d68c7f4edf5 | package ParameterSelection;
import AddEditPanels.AddEditWinchPosFrame;
import AddEditPanels.AddEditGliderPosFrame;
import AddEditPanels.AddEditAirfieldFrame;
import AddEditPanels.AddEditRunwayFrame;
import Communications.Observer;
import Configuration.UnitConversionRate;
import Configuration.UnitLabelUtilities;
import... | Java | src/ParameterSelection/AirfieldPanel.java | GliderWinchCommons/hc | bsd-2-clause | 56,822 | 1,129 | codeparrot/github-code |
5d6e288ff2a5c3bab97f3984998ca07021c8911f1d424414cc1bde0323d252b1 | package edu.cmu.lti.nlp.amr
import scala.util.matching.Regex
import scala.collection.mutable.{Map, Set, ArrayBuffer}
/****************************** Driver Program *****************************/
object TestAMRDisplayCode {
val usage = """Usage: scala -classpath . edu.cmu.lti.nlp.amr.TestAMRDisplayCode < amr_file... | Scala | src/TestAMRDisplayCode.scala | jflanigan/jamr | bsd-2-clause | 1,930 | 54 | codeparrot/github-code |
382d41875a085bf16dc0edc005b15657f348136527f8c81e1e6a6742aa606d8b | #ifndef ENGINE_HPP
#define ENGINE_HPP
#include "engine/api/match_parameters.hpp"
#include "engine/api/nearest_parameters.hpp"
#include "engine/api/route_parameters.hpp"
#include "engine/api/table_parameters.hpp"
#include "engine/api/tile_parameters.hpp"
#include "engine/api/trip_parameters.hpp"
#include "engine/data_w... | C++ | include/engine/engine.hpp | frodrigo/osrm-backend | bsd-2-clause | 8,556 | 227 | codeparrot/github-code |
4601966d72d5fa805a5cd0c2e34b23c8561cfab67402546859172529671bb8a2 | #!/usr/bin/env python3
import os, re, subprocess
import somaticseq.vcfModifier.copy_TextFile as copy_TextFile
import somaticseq.vcfModifier.splitVcf as splitVcf
import somaticseq.vcfModifier.getUniqueVcfPositions as getUniqueVcfPositions
from somaticseq.vcfModifier.vcfIntersector import *
# Combine individual VCF ou... | Python | somaticseq/combine_callers.py | bioinform/somaticseq | bsd-2-clause | 22,749 | 523 | codeparrot/github-code |
515c5842f51950f69dcbc93204775e1164e04dd7d8e5b8601ded2b5fd2ed0ec4 | /**
* mgslave - MGAPI - Slave
* Copyright (c) 2015, Matej Kormuth <http://www.github.com/dobrakmato>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code m... | Java | slave/src/main/java/eu/matejkormuth/mgapi/slave/modules/communicaton/Communicator.java | dobrakmato/mgapi | bsd-2-clause | 2,605 | 62 | codeparrot/github-code |
4c75a2f51e6190daa324f76963e169858605cbc40146b8b0348869a1a27bd546 | #
# Notification Originator
#
# Send SNMP INFORM notification using the following options:
#
# * SNMPv2c
# * with community name 'public'
# * over IPv4/UDP
# * send INFORM notification
# * to a Manager at 127.0.0.1:162
# * with TRAP ID 'coldStart' specified as an OID
# * include managed objects information:
# 1.3.6.1... | Python | examples/v3arch/agent/ntforg/inform-v2c.py | ww9rivers/pysnmp | bsd-2-clause | 2,964 | 90 | codeparrot/github-code |
3e689e8c4cfa56034d1609d3dc4cd2c452a47bdf2c92f493a6867be9f3278927 | /**
* @file
*
* @brief Adapter implementation for the nlohmann json parser library.
*
* Include this file in your program to enable support for nlohmann json.
*
* This file defines the following classes (not in this order):
* - NlohmannJsonAdapter
* - NlohmannJsonArray
* - NlohmannJsonValueIterator
* -... | C++ | include/valijson/adapters/nlohmann_json_adapter.hpp | tristanpenman/valijson | bsd-2-clause | 19,490 | 714 | codeparrot/github-code |
898ec74cb83ef8dcae1b4fa53bcad65ac413dccc3cd40775edec07f8ea2db980 | package LONI.tree;
public class Binary extends LoniNode {
public Binary(String name, String description, String version,
String myPackage, String uri, String compilationTime) {
super();
this.name = name;
this.description = description;
this.version = version;
this.myPackage = myPackage;
this.uri = ur... | Java | src/LONI/tree/Binary.java | christandiono/pipelineconverter | bsd-2-clause | 883 | 41 | codeparrot/github-code |
891a73b42450bc33ff77fafb8e31baf6b3586a135bcd6a38d403bcda5e5d3e77 | ---------------------------------------------------------
--- base64 library in pure lua
--- credits go to the original creator
---------------------------------------------------------
-- Luvit libraries
local string = require('string')
---------------------------------------------------------
-- Lua 5.1+... | Lua | lib/luvit-websocket/libs/base64.lua | elflang/elf | bsd-2-clause | 1,556 | 50 | codeparrot/github-code |
72665a4f317dfe662dfbd1b8648675497f3c8679c48ad465d834c173cc1f0589 | /* Copyright (c) Citrix Systems 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:
*
* * Redistributions of source code must retain the above
* copyright notice,... | C# | XenAdmin/Wizards/DRWizards/DRFailoverWizardStoragePage.cs | Frezzle/xenadmin | bsd-2-clause | 24,954 | 699 | codeparrot/github-code |
12a6c16b541a98ec1d2d1816f436425b0b2fc2ac9f367fcc7e210027da5e401a | VERSION = '0.3.4'
DEFAULT_SWAGGER_SETTINGS = {
'exclude_namespaces': [],
'api_version': '',
'api_path': '/',
'api_key': '',
'token_type': 'Token',
'enabled_methods': ['get', 'post', 'put', 'patch', 'delete'],
'is_authenticated': False,
'is_superuser': False,
'unauthenticated_user': ... | Python | rest_framework_swagger/__init__.py | sacgup/django-rest-swagger | bsd-2-clause | 1,311 | 43 | codeparrot/github-code |
06755b0156d64256ea43b85a0080117c7d65c9428f83c63561275448428abfe3 | package org.swrltab.util.parser;
import java.io.IOException;
import java.io.Reader;
import java.io.StreamTokenizer;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.checkerframework.checker.initialization.qual.UnderInitializatio... | Java | src/main/java/org/swrltab/util/parser/SWRLTokenizer.java | md-k-sarker/ROWL | bsd-2-clause | 10,876 | 322 | codeparrot/github-code |
d5e7b2f4e52972a1d9af981e7fe860aa71c99f1884febb4e03b50047b4a39eb9 | /**
* Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Reflection;
using Syste... | C# | Engine/Source/Programs/MemoryProfiler2/MainWindow.cs | PopCap/GameIdea | bsd-2-clause | 82,366 | 2,514 | codeparrot/github-code |
32a9886a83a16642738017becb20aaddab5d634293e77c32592539602657733d | package com.example.nfc_eink_demo;
///////////////////////////////////////////////////////////////////////////////
// IMPORTS
///////////////////////////////////////////////////////////////////////////////
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.FileWriter;
... | Java | andriod studio project/app/src/main/java/com/example/nfc_eink_demo/SendFileToWISP.java | wisp/nfc-reader-app | bsd-2-clause | 12,445 | 332 | codeparrot/github-code |
8dd67bec2ff852956d49ee291dcb0cd25bd01395643c6434b1562151b04d866c | #include <stdarg.h>
#include <stdio.h>
#include <time.h>
#include <string.h>
#include "log.h"
static int g_min_level = LOG_INFO;
void log_open(void)
{
openlog("packlad", LOG_PID, LOG_USER);
}
void log_write(const int level, const char *format, ...)
{
char full_format[MAX_FMT_LEN];
char text_now[26];
va_list arg... | C | core/log.c | dimkr/packlad | bsd-2-clause | 1,157 | 72 | codeparrot/github-code |
82488cde44a90a939733b36b37d9ff938a50902e98854a18b57e5805413981c6 | // Package to read and write FASTQ format files
package fastq
// Modified under the terms of GPL3 from
// Dan Kortschak github.com/kortschak/BioGo
import (
"bufio"
"bytes"
"errors"
"github.com/MG-RAST/Shock/shock-server/conf"
"github.com/MG-RAST/Shock/shock-server/node/file"
"github.com/MG-RAST/Shock/shock-serv... | GO | shock-server/node/file/format/fastq/fastq.go | teharrison/Shock | bsd-2-clause | 7,654 | 310 | codeparrot/github-code |
374bb7c48b2ee1250acf190824a90ef373ab64a736cbb0bfc0a74c6630e4955a |
var KeyReleaseMask = 2;
var ffi = require("ffi");
var ref = require("ref");
var intPtr = ref.refType('int');
var xlibext = ffi.Library('libXtst', {
"XTestFakeButtonEvent" : ["void",
[
"pointer",
"int",
"bool",
"int"
]
]
});
var xlib = f... | JavaScript | linux/mouse.js | wiesel78/wiesels-mousejs | bsd-2-clause | 4,026 | 178 | codeparrot/github-code |
9059e459ab79ed2b10a91e5bd3dc765331f63fdddacaa94be1c20bf14fc229d4 | /*
* Copyright 2011-2020 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
*/
#include "bgfx_p.h"
#if (BGFX_CONFIG_RENDERER_OPENGLES|BGFX_CONFIG_RENDERER_OPENGL)
# include "renderer_gl.h"
# if BGFX_USE_WGL
namespace bgfx { namespace gl
{
PFNWGLGETPROCADDRE... | C++ | src/glcontext_wgl.cpp | mendsley/bgfx | bsd-2-clause | 13,052 | 425 | codeparrot/github-code |
7a3ed674daf43e5d37ef6c37d40c0bea5fb8747b28a8eb1c010f211e40074d3c |
/*
pbrt source code Copyright(c) 1998-2012 Matt Pharr and Greg Humphreys.
This file is part of pbrt.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
- Redistributions of source code must retain the... | C++ | integrators/photonmap.cpp | cathook/rendering_final_proj | bsd-2-clause | 35,022 | 804 | codeparrot/github-code |
3a96bb27197382f046c498c3a47b7e6936707ea537eb65b6307bcc013d91249a | class Texlive < Formula
desc "TeX Live is a free software distribution for the TeX typesetting system"
homepage "https://www.tug.org/texlive/"
url "https://www.texlive.info/tlnet-archive/2020/07/15/tlnet/install-tl-unx.tar.gz"
version "20200715"
sha256 "517058e56756521c3ab1b1939e5e95659adc715ba27babdff41b96bd... | Ruby | Formula/texlive.rb | rwhogg/homebrew-core | bsd-2-clause | 3,034 | 98 | codeparrot/github-code |
9f6b944b428dee6f117414410a00950bb6e111b7ba7e5f5a759280302397f8f5 | """
Checkout process utilities.
"""
from django.contrib.auth.models import SiteProfileNotAvailable
from django.utils.translation import ugettext as _
from django.template.loader import get_template, TemplateDoesNotExist
from mezzanine.conf import settings
from mezzanine.utils.email import send_mail_template
from car... | Python | cartridge/shop/checkout.py | viaregio/cartridge | bsd-2-clause | 8,239 | 197 | codeparrot/github-code |
5d7c80d06563f0f9665bc180a5f1988cedc211b5c905d7b01b22ab1742461af8 | // This file was procedurally generated from the following sources:
// - src/dstr-binding/obj-ptrn-prop-id-init-unresolvable.case
// - src/dstr-binding/error/for-let.template
/*---
description: Destructuring initializer is an unresolvable reference (for statement)
esid: sec-for-statement-runtime-semantics-labelledevalu... | JavaScript | Jint.Tests.Test262/test/language/statements/for/dstr-let-obj-ptrn-prop-id-init-unresolvable.js | sebastienros/jint | bsd-2-clause | 1,972 | 62 | codeparrot/github-code |
7297abc8241ee5ce498c2c1efb7ce182d3dd589402fae0285c3991995df809ec | /*
* SHA-160
* (C) 1999-2008,2011 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include <botan/internal/sha160.h>
#include <botan/internal/loadstor.h>
#include <botan/internal/rotate.h>
#include <botan/internal/bit_ops.h>
#include <botan/internal/cpuid.h>
namespace Botan {
s... | C++ | src/lib/hash/sha1/sha160.cpp | randombit/botan | bsd-2-clause | 5,901 | 192 | codeparrot/github-code |
feb38e3b91c9933d2892ffff82da42d8b2f417dcce5f929264397dcec5662dea | #include "extractor/guidance/roundabout_handler.hpp"
#include "extractor/guidance/constants.hpp"
#include "util/bearing.hpp"
#include "util/coordinate_calculation.hpp"
#include "util/guidance/name_announcements.hpp"
#include "util/log.hpp"
#include <algorithm>
#include <cmath>
#include <numeric>
#include <utility>
#... | C++ | src/extractor/guidance/roundabout_handler.cpp | hydrays/osrm-backend | bsd-2-clause | 20,510 | 492 | codeparrot/github-code |
b32919f1a3f8cae1e5a40544a1f4ad33302d73c1921ebd1a4970452bd3d7e688 | class Nanomsgxx < Formula
desc "Nanomsg binding for C++11"
homepage "https://achille-roussel.github.io/nanomsgxx/doc/nanomsgxx.7.html"
url "https://github.com/achille-roussel/nanomsgxx/archive/0.2.tar.gz"
sha256 "116ad531b512d60ea75ef21f55fd9d31c00b172775548958e5e7d4edaeeedbaa"
license "MIT"
revision 2
b... | Ruby | Formula/nanomsgxx.rb | JCount/homebrew-core | bsd-2-clause | 2,776 | 86 | codeparrot/github-code |
1ec3c3b0a7f5503d91ce6215b531774da075281c079dd5c67a1818e6ffd6efa2 | package com.skinny121;
import org.junit.*;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
public class MapTest {
private Map map;
private Path path;
@Before
public void setUp() throws IOException{
path = Files.createTempDirectory(null);
map = new Ma... | Java | src/test/java/com/skinny121/MapTest.java | skinny121/TWMapServer | bsd-2-clause | 1,705 | 52 | codeparrot/github-code |
050b901d7daef60b80b1d87c3a4156c16d77689120be718e45652834423203aa | <?php
namespace myFOSSIL\Plugin\Resources;
/**
* The dashboard-specific functionality of the plugin.
*
* @link http://github.com/myfossil
* @since 0.0.1
*
* @package myFOSSIL_Resources
* @subpackage myFOSSIL_Resources/admin
*/
require_once 'partials/myfossil-resources-admin-display.php';
/**
*... | PHP | admin/class-myfossil-resources-admin.php | myfossil/myfossil-resources | bsd-2-clause | 9,385 | 280 | codeparrot/github-code |
2a89be8bb749d6fb129bd2aa762253db13f680055219b02d0e51a57346f84201 | <!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="language" content="en" />
<link href="./assets/9cd966e/css/bootstrap.css" rel="stylesheet">
<link href="./assets/b09ea36e/style.css" rel="stylesheet">
<... | HTML | docs/api/hscstudio-heart-modules-gii-crud-generator.html | hscstudio/yii2-heart | bsd-2-clause | 19,855 | 414 | codeparrot/github-code |
584ed539f4418f9323c82b1ce636ceeff5bc4ef2099ae03a62bcb5848fb59014 | /*
* Copyright (c) 2014. Massachusetts Institute of Technology
* Released under the BSD 2-Clause License
* http://opensource.org/licenses/BSD-2-Clause
*/
package bits.draw3d;
import bits.math3d.Vec4;
import com.jogamp.opengl.util.Animator;
import com.jogamp.opengl.*;
import com.jogamp.opengl.awt.GLCanvas;
import... | Java | src/test/java/bits/draw3d/TestRenderTri.java | decamp/draw3d | bsd-2-clause | 4,725 | 150 | codeparrot/github-code |
885625db173b048eee5d0d0f8c7510c1b3332950b52de5176be0117c5ffbcdaf | using System;
using System.Net;
using System.Web.Configuration;
namespace CrucibleHook.Controllers
{
public class CrucibleController : LoggingControllerBase
{
public void Notify(string id)
{
try
{
var client = new WebClient();
SetupHeade... | C# | CrucibleHook/CrucibleHook/Controllers/CrucibleController.cs | sep/crucible-hook | bsd-2-clause | 1,226 | 43 | codeparrot/github-code |
eb738d784f9aee3520d9123ca76abf49facc49cd33a207f8f00770f8713a982b | #!/usr/bin/env python
#(c) 2015 by Authors
#This file is a part of SpectroGene program.
#Released under the BSD license (see LICENSE file)
"""
This script performs SpectroGene run in known proteome mode (proteome run)
"""
from __future__ import print_function
import shutil
import sys
import os
import argparse
import... | Python | scripts/proteome_run.py | fenderglass/SpectroGene | bsd-2-clause | 4,617 | 135 | codeparrot/github-code |
c662afe55c9d674f363b279870f60703bbd4898a0c1573d1d9c7cb156b192e90 | #include "cocurrent_hash_map.h"
#include "iterator.h"
#include "key.h"
#include "obj.h"
namespace yukino {
namespace {
class IteratorImpl : public Iterator {
public:
typedef CocurrentHashMap::Slot Slot;
typedef CocurrentHashMap::Node Node;
IteratorImpl(RWSpinLock *rwlock, Slot *begin, Slot *end)
... | C++ | src/cocurrent_hash_map.cc | YukinoDB/MemoryDB | bsd-2-clause | 9,737 | 382 | codeparrot/github-code |
be92e75d4c521571a65955f4dc7bcae6396451e9ba8f4a7b63e06c5f18aa51eb | package com.github.sandor_balazs.nosql_java.web.rest;
import com.codahale.metrics.annotation.Timed;
import com.github.sandor_balazs.nosql_java.domain.Location;
import com.github.sandor_balazs.nosql_java.service.LocationService;
import com.github.sandor_balazs.nosql_java.web.rest.util.HeaderUtil;
import com.github.sand... | Java | cassandra/src/main/java/com/github/sandor_balazs/nosql_java/web/rest/LocationResource.java | sandor-balazs/nosql-java | bsd-2-clause | 4,561 | 121 | codeparrot/github-code |
352907afedbe1a9a078f7e4bd3f8e46c10ba391f1f36c6a0c27f58e4432384f4 | package synthesis
/** Object providing methods to deal with generated programs.
*
* @author Mikaël Mayer
*/
object APAAbstractProgram {
/** Converts a map of (input variable, integer) to its corresponding input assignment list. */
def toAPAInputAssignment(imap : Map[InputVar, Int]):List[(InputVar, APAInputCo... | Scala | src/main/scala/APAProgram.scala | epfl-lara/comfusy | bsd-2-clause | 32,597 | 651 | codeparrot/github-code |
5bc2ed331539a5d2a6aa44c139ee59d2f88d31b745d6f8ade4c22e6dfd2d77d0 | /*
Copyright (c) 2018, Lars Brubaker, John Lewin
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and... | C# | MatterControlLib/PrinterCommunication/PrinterConnection.cs | larsbrubaker/MatterControl | bsd-2-clause | 93,602 | 3,256 | codeparrot/github-code |
be981cd05db2af15028d5c48a9f9e37ce66273bebcd3b29b2b7b86b7d0b933e8 | using Assets.Common.Missions;
using System;
using UnityEngine;
public class ScoreDisplayDebugScript : MonoBehaviour {
// Use this for initialization
void Start ()
{
SwipeUpDownTouchInteraction.PositionChanging += PositionChanging;
}
void PositionChanging(Position pos)
{
var tm = GetComponen... | C# | Ressi/ressi/Assets/ScoreDisplayDebugScript.cs | Norad-Eduapp4syria/Norad-Eduapp4syria | bsd-2-clause | 1,203 | 35 | codeparrot/github-code |
91282477f8bb139a4e82373bd2ff210b4e238e44d34b8ba3425bca69fe347601 | /**
* @module ol/render/canvas/ImageBuilder
*/
import CanvasInstruction from './Instruction.js';
import CanvasBuilder from './Builder.js';
class CanvasImageBuilder extends CanvasBuilder {
/**
* @param {number} tolerance Tolerance.
* @param {import("../../extent.js").Extent} maxExtent Maximum extent.
* @pa... | JavaScript | src/ol/render/canvas/ImageBuilder.js | bjornharrtell/ol3 | bsd-2-clause | 6,182 | 216 | codeparrot/github-code |
90457934eeb02c4817214231ea410b6f23ff7aa1b7bff423e23a2f15800184f1 | package com.liaoyu.web.book;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;
import javax.annotation.Resource;
import org.apache.struts2.ServletActionContext;
import org.springframework.stereotype.Controller;
import com.liaoyu.bean.book.TransientBookType;
import com.liaoyu.service.boo... | Java | src/com/liaoyu/web/book/BookTypeAction.java | kingzou/uushop | bsd-2-clause | 2,016 | 79 | codeparrot/github-code |
64eda1ffc121e4332330f8df7dc397c7a7a977a3948a8c39a83ba884dda63844 | #!/bin/sh
#
# See README for up to date usage examples.
# vim: syntax=sh noexpandtab
#
# KPM - 6-5-2015 - Pulled from poudriere so we can build ports on -CURRENT
# Set specified version into login.conf
update_version_env() {
local release="$1"
local login_env osversion
osversio... | Shell | freenas/scripts/kludges/build_jail.sh | pcbsd/pcbsd-build | bsd-2-clause | 1,814 | 72 | codeparrot/github-code |
626aa01003286c55b6d3963c89f46960995c529e6f648ab30bb3cb8621693957 | /*
* Copyright (c) 2018, Tomas Slusny <slusnucky@gmail.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, thi... | Java | runelite-client/src/main/java/net/runelite/client/ui/overlay/WidgetOverlay.java | KronosDesign/runelite | bsd-2-clause | 4,100 | 140 | codeparrot/github-code |
61bdd8f5da7aaf9e24065446a42acb7c5e774aec69f25f25903c2aa3a594a3ac | /*
SCV - Simple Components for Visual
Developed at Federal University of Santa Maria - UFSM
LaCA - Computer Applied Laboratory - Laboratório de Computação Aplicada
webpage: www.inf.ufsm.br/~pozzer/scv
email: pozzer@inf.ufsm.br
2007-2012
*/
#include <SCV/SCV.h>
#include "Application.h"
#include "Prope... | C++ | InterfaceDesigner/src/main.cpp | yuriks/SCV | bsd-2-clause | 634 | 32 | codeparrot/github-code |
9c794847b92ebee783a514e7ac5e9d8447586777bbf6adf99b2de5c60085dd0a | #ifndef FILENAME_UTILS_H
#define FILENAME_UTILS_H
#include <ctime>
#include <stdarg.h>
#include <stdio.h>
#ifdef _WIN32
#include <wchar.h>
#endif
#include <string>
#include <vector>
#ifdef _WIN32
#define __attribute__(x)
#endif
std::string filename_sans_directory(const std::string &filename);
std::string filename_di... | C | cpp_utils/cpp_utils.h | CMU-CREATE-Lab/timemachine-creator | bsd-2-clause | 2,080 | 72 | codeparrot/github-code |
e239fc3d80a18b68d35e45c981f82379312f40e7748ca02afea9fd49988eb7ee | /*
* Copyright 2011-2013 Branimir Karadzic. All rights reserved.
* License: http://www.opensource.org/licenses/BSD-2-Clause
*/
#include <bgfx.h>
#include <bx/bx.h>
#include <bx/countof.h>
#include <bx/timer.h>
#include "../common/entry.h"
#include "../common/dbg.h"
#include "../common/math.h"
#include "../common/pr... | C++ | examples/06-bump/bump.cpp | richard-sim/bgfx | bsd-2-clause | 13,938 | 484 | codeparrot/github-code |
779d4e26d4b7466263080eabd79a40b98c21c2c8f6ae34d17c24e6b80d20625a | /*\
title: $:/plugins/danielo515/autotag/startup/tagger.js
type: application/javascript
module-type: startup
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
// Export name and synchronous status
exports.name = "autotagger";
exports.after = ["startup"];
exports.platforms =... | JavaScript | autotagwiki/plugins/autotag/autotagger.js | danielo515/TW5-AutoTag | bsd-2-clause | 2,155 | 61 | codeparrot/github-code |
c8c0d65c05b3d900bf3af2cf6f0dcf8974bd97de18dda6c1f55f4bb7bf1851bb | # use this if you want to include modules from a subforder
import os, sys, inspect
cmd_subfolder = os.path.realpath(os.path.abspath( os.path.join(os.path.split \
(inspect.getfile( inspect.currentframe() ))[0],"VprParsers")))
if cmd_subfolder not in sys.path:
sys.path.insert(0, cmd_subfolder)
import structs
import ... | Python | source/InitFpga.py | adbrant/zuma-fpga | bsd-2-clause | 18,645 | 510 | codeparrot/github-code |
6103c40a3e6ff6624f74d4c300823e36d8ef2435367b480e67f275a82a663833 | from __future__ import unicode_literals
from future.builtins import range
from mezzanine.conf import settings
from mezzanine.core.managers import DisplayableManager
from mezzanine.utils.urls import home_slug
class PageManager(DisplayableManager):
def published(self, for_user=None, include_login_required=False):... | Python | mezzanine/pages/managers.py | damnfine/mezzanine | bsd-2-clause | 3,992 | 93 | codeparrot/github-code |
7f7619d9f2d7f45c02f65a09c682a58cc5ff0f2ccc76641c0478f0e7df216db2 | /*
** Copyright (c) 2016, Xin YUAN, courses of Zhejiang University
** All rights reserved.
**
** This program is free software; you can redistribute it and/or
** modify it under the terms of the 2-Clause BSD License.
**
** Author contact information:
** yxxinyuan@zju.edu.cn
**
*/
///////////////////////... | C | public/include/base/system/_sys_base.h | ZJUGKC/GKC | bsd-2-clause | 1,935 | 101 | codeparrot/github-code |
718adcfe0f34b2391ba39fb412ad77cb9798fb4baa6bafdb0223eabc41ce3da9 | class Qemu < Formula
desc "x86 and PowerPC Emulator"
homepage "https://www.qemu.org/"
url "https://download.qemu.org/qemu-3.1.0.tar.xz"
sha256 "6a0508df079a0a33c2487ca936a56c12122f105b8a96a44374704bef6c69abfc"
revision 1
head "https://git.qemu.org/git/qemu.git"
bottle do
rebuild 1
sha256 "dd7cb5e... | Ruby | Formula/qemu.rb | bigbes/homebrew-core | bsd-2-clause | 2,861 | 90 | codeparrot/github-code |
00a2ef50207dc1268d82ea6e5535e9b14aefaaecd3f85f6fc263872c58788e26 | var assert = require('assert');
module.exports = function () {
this.When(/^I request \/(.*)$/, (path, callback) => {
this.reprocessAndLoadData(() => {
this.requestPath(path, {}, (err, res, body) => {
this.response = res;
callback(err, res, body);
});
... | JavaScript | features/step_definitions/requests.js | arnekaiser/osrm-backend | bsd-2-clause | 1,769 | 58 | codeparrot/github-code |
6584dfa1d036144f3732360e60f3e776b6cc3001fa37bc278ad15ab681d3421b | class Configen < Formula
desc "Configuration file code generator for use in Xcode projects"
homepage "https://github.com/theappbusiness/ConfigGenerator"
url "https://github.com/theappbusiness/ConfigGenerator/archive/1.1.0.tar.gz"
sha256 "3bd03adbd82cd94a610b07fbc3e9fb8e5aca35f938c891fa69db9eec9411331b"
head "... | Ruby | Formula/configen.rb | LinuxbrewTestBot/homebrew-core | bsd-2-clause | 1,838 | 46 | codeparrot/github-code |
5615d9aeb0950b1b9a524405ae2988311b71c0346740e0c3887a7a1f88d924a8 | /*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2018-2021 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided th... | C++ | src/core/network/autolinker.cpp | inviwo/inviwo | bsd-2-clause | 5,452 | 132 | codeparrot/github-code |
4743509242896dff8acfacf37965b90b750d84ef954f9f1c198bfa9b4b2f09f6 | package ec2
import "github.com/timob/javabind"
type ServicesEc2ModelDeleteNatGatewayResultInterface interface {
JavaLangObjectInterface
// public void setNatGatewayId(java.lang.String)
SetNatGatewayId(a string)
// public java.lang.String getNatGatewayId()
GetNatGatewayId() string
// public com.amazonaws.ser... | GO | com_amazonaws_services_ec2_model_DeleteNatGatewayResult.go | timob/ec2 | bsd-2-clause | 5,070 | 167 | codeparrot/github-code |
24bf7c220956c8f31b866a0743d3f08fa91e0c12fb69a930aec7f7aa3deda7df | // Copyright (c) 2020 ASMlover. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list ofconditions and... | C++ | cplusplus/Tadpole3/fun_compiler.cc | ASMlover/study | bsd-2-clause | 2,936 | 83 | codeparrot/github-code |
741cf937df1a956c615e13cce9b97f8a1534f162f35437d5e40cece6ef0ddb98 | <%inherit file="base.html"/>
<%def name="head()">
<script src="/static/js/Chart.js"></script>
<script>
var wsock = {
socket: null,
start: function (addr,port) {
var url = "ws://"+addr+":"+port;
wsock.socket = new WebSocket(url);
wsock.socket.onmessage = function (event) {
me... | HTML | console/admin/views/index.html | dahebolangkuan/ToughRADIUS | bsd-2-clause | 4,536 | 155 | codeparrot/github-code |
5efa720dd1dc009220a0c092abc96bf1f76bfe3cd745cb2332b58b2627cdbad5 | {% load imagekit %}
<div class="video-content">
<h3>{{ video.title }}</h3>
{% if speakers %}
<span class="video-speakers">With: <strong>{% for speaker in speakers %}{{ speaker.name }}{% if not forloop.last %}, {% endif %}{% endfor %}</strong></span>
{% endif %}
<video controls {% if video.pr... | HTML | videos/templates/videos/_video.html | incuna/incuna-videos | bsd-2-clause | 1,353 | 40 | codeparrot/github-code |
9779b414fe67c6f23a4f7894b8b000bd02d53d96e305ad64c682b81389805f8f | from spdy.frames import *
from spdy._zlib_stream import Inflater, Deflater
from bitarray import bitarray
SERVER = 'SERVER'
CLIENT = 'CLIENT'
class SpdyProtocolError(Exception):
pass
def _bitmask(length, split, mask=0):
invert = 1 if mask == 0 else 0
b = str(mask)*split + str(invert)*(length-split)
return int(b, ... | Python | python-spdy/context.py | colinmarc/python-spdy | bsd-2-clause | 6,954 | 283 | codeparrot/github-code |
29ce59ccdab87f15ad3e052a974a9a833300bb6a366438f96f6bc608544b7988 |
var ViewFactory = function(nodeTypes, options) {
this.nodeTypes = nodeTypes;
this.options = options || {};
};
ViewFactory.Prototype = function() {
this.getNodeViewClass = function(node, type) {
type = type || node.type;
var NodeType = this.nodeTypes[type];
if (!NodeType) {
throw new Error('No... | JavaScript | view_factory.js | elifesciences/lens-article | bsd-2-clause | 894 | 35 | codeparrot/github-code |
044ab246b68fb2a49b1e572b9b8541d42234ba7e1b20eb9f5e859bee68c770dc | /*
Copyright (c) 2014, William Magato
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the f... | C | src/sys/glibc-2.17/sysdeps/llamaos/export/readlink.c | wilseypa/llamaOS | bsd-2-clause | 2,376 | 65 | codeparrot/github-code |
239413b029e2a5e6c9f708601dbc216b9b0810ce13f63cd6dce38d49531697e6 | /*
* Copyright (c) 2013-2016, Roland Bock
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
* list of cond... | C | include/sqlpp11/pre_join.h | volka/sqlpp11 | bsd-2-clause | 8,539 | 216 | codeparrot/github-code |
185a7cd9abeaab93925fddb68c544e355c4ba4efa6a986a96aed42df7d740470 | import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HttpModule, JsonpModule } from '@angular/http';
import { FormsModule } from '@angular/forms';
import { MaterializeModule } from "angular2-materialize";
import { FileDropDirective, FileSelectDirective } from 'n... | TypeScript | workbench-frontend/src/app/app.module.ts | sterlingbaldwin/acme_workbench | bsd-2-clause | 1,929 | 51 | codeparrot/github-code |
15f70b81f95c67b3c6373b4d84b1b946a77de7d7e9596c2796d74ee01f4bf086 | /*
* lex.c
* Sparkling, a lightweight C-style scripting language
*
* Created by Árpád Goretity on 02/05/2013
* Licensed under the 2-clause BSD License
*
* Lexical analyser
*/
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include "lex.h"
#include "str.h"
#include "private.h"
... | C | src/lex.c | jcubic/Sparkling | bsd-2-clause | 17,433 | 871 | codeparrot/github-code |
3a24f25c28db62adb60f1edba6b4f4d98ca19b920fa657f59d65f3a8114fd57a | /*
* Copyright (c) 2019, Anthony Chen <https://github.com/achencoms>
* Copyright (c) 2019, Adam <Adam@sigterm.info>
* Copyright (c) 2020, Sean Dewar <https://github.com/seandewar>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided ... | Java | runelite-client/src/main/java/net/runelite/client/plugins/music/MusicPlugin.java | runelite/runelite | bsd-2-clause | 25,922 | 987 | codeparrot/github-code |
4144155d161ca1a5a24f7a137840734cc9f4a16c4456d1bf6e18b38d7e7fb730 | /******************************************************************************
* Copyright (c) 2014, Equal Experts Ltd
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* 1. Redistributions of ... | Scala | src/test/scala/com/ee/midas/CLIParserSpecs.scala | EqualExperts/Midas | bsd-2-clause | 9,729 | 241 | codeparrot/github-code |
b6977379ffe3a036aa569a2436a111852fe3c007afd962680d1377eb34cb9094 | @echo off
REM Usage:
REM mkpdb <-pdb database> [-tc template collection] [-ld level] [-size size] [-nocleanup]
REM -pdb database: e.g., htdata816.pdb
REM -tc template collection: e.g., grassy.tc
REM -ld level: e.g., grassy_test.ld
REM -size size: tile size (16, 24, or 32)
REM -gt
REM -lvl level: e.g., grassy_test.lvl
... | Batchfile | legacy/AuthorKit/mkpdb.bat | spiffcode/hostile-takeover | bsd-2-clause | 3,496 | 184 | codeparrot/github-code |
00c37083eb93da449831caf47c33eb7b180429fbca6b83418a38e56575b64aad | package main
import (
"flag"
"fmt"
"log"
"os"
// Using flint's nmods might be safer for larger moduli, but is
// slower for small moduli. Instead we pre-compute a table of
// powers up to some bound and use these to evaluate monomials.
//nmod "github.com/frithjof-schulze/flint.go/extras"
"runtime"
"runtime... | GO | mpoly.go | schulze/mpoly | bsd-2-clause | 3,845 | 196 | codeparrot/github-code |
2c450127f2bb2a2545d572a032ba60dfef5050010a9a2416e2957a728ca5f413 | {% extends "base.html" %}
{% load static from staticfiles %}
{% load nested_tags %}
{% block headers %}
<style>
p {
margin-left: 5px;
margin-right: 5px;
margin-top: 5px;
marging-bottom: 5px;
}
#link_list {
padding-left: 10px;
padding-right: 10px;
}
</style>
{% endblock %}
{% block content %}
<h... | HTML | base/templates/archives.html | knagra/farnsworth | bsd-2-clause | 1,355 | 64 | codeparrot/github-code |
501eba407ed5b06d6cf213a76f769e2eac2f4e2635aadb8c8ce2d37227cf1d3c | package com.pillowdrift.drillergame.entities;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.pillowdrift.drillergame.framework.Sprite;
import com.pillowdrift.drillergame.scenes.GameScene;
/**
* Alert bubble derrivative for displaying height bonuses gained when dropped off a load into the train
... | Java | MegaDrillerMole/MDMWorkspace/DrillerGameAndroid/src/com/pillowdrift/drillergame/entities/HeightAlertBubble.java | Pillowdrift/MegaDrillerMole | bsd-2-clause | 1,767 | 70 | codeparrot/github-code |
b2dc7614119b2eb5952f458b74d37225e8daf5fd6c7dad302325f268526aa4e5 | // Copyright (c) 2016 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to... | C | 3rdparty/spirv-tools/source/opt/reflect.h | mendsley/bgfx | bsd-2-clause | 2,616 | 71 | codeparrot/github-code |
02739fd20dff3816cd3c7b304eea3448f2db267d749e52c12cc530cf65a6ba52 | # -*- coding: utf-8 -*-
# MusicPlayer, https://github.com/albertz/music-player
# Copyright (c) 2012, Albert Zeyer, www.az2000.de
# All rights reserved.
# This code is under the 2-clause BSD license, see License.txt in the root directory of this project.
import utils
from utils import formatTime
import Traits
import so... | Python | src/modules/Search.py | albertz/music-player | bsd-2-clause | 1,593 | 56 | codeparrot/github-code |
d4a2a94854ef2a5200878e8cd44fbccc2a5d803c6afd0c6a17361e9f4d3e6595 | using System;
using System.Threading;
using Owen;
namespace PolvakServer.Sources
{public class Controller
{
private readonly owen_protocol _datap = new owen_protocol();private readonly ModbusTCP.ModbusTCP _mb;
public static Sensors[] PLCsensor;
public static Sensors[] Sensor;
... | C# | Sources/controller.cs | tcomlab/PolvakServer | bsd-2-clause | 2,874 | 86 | codeparrot/github-code |
98ecd7875c9a6bca4e5baa71a9314d1e54e25da505c2bab74d083f6079c97e37 | //
// Program.cpp
// WordGame
//
// Created by Fakhir Shaheen on 30/10/2014.
// Copyright (c) 2014 Fakhir Shaheen. All rights reserved.
//
#include "Program.h"
#include "../../Common.h"
#include "../../PointerDefs.h"
namespace FEngine
{
Program::Program()
{
_fragmentShader = 0;
... | C++ | FEngine/Renderer/GLES20/Program.cpp | fakhirsh/FEngine | bsd-2-clause | 5,676 | 181 | codeparrot/github-code |
8685d777af48b6adae86a74f80bae1058ca6087099a9f3d4db012d584edf57b9 | """
===================
Base Object Classes
===================
"""
from validation.validationresult.resultenum import ResultType
from validation.validators.document_validator import DocumentValidator
from validation.runner import ValidationsRunner
from base.enums import FieldType
from validation.validationresult.resul... | Python | base/document.py | iraklikhitarishvili/data2class | bsd-2-clause | 7,734 | 246 | codeparrot/github-code |
4641de4ac842d1892a4288f865bc57f91648d7eebba92c2f51851d5ac119af80 | // Copyright (c) 2003-present, Jodd Team (http://jodd.org)
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// th... | Java | jodd-core/src/test/java/jodd/cache/LRUCacheTest.java | vilmospapp/jodd | bsd-2-clause | 3,778 | 125 | codeparrot/github-code |
cc86f495e83c03174e2e579d1ec4eea06231ed6b9ffd41673ff37cffb715208e | package org.antlr.jetbrains.st4plugin.structview;
import com.intellij.extapi.psi.ASTWrapperPsiElement;
import com.intellij.ide.util.treeView.smartTree.TreeElement;
import com.intellij.navigation.ItemPresentation;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiFile;
import org.antlr.jetbrains.st4plugin.... | Java | src/main/java/org/antlr/jetbrains/st4plugin/structview/STGroupRootTreeElement.java | antlr/jetbrains-plugin-st4 | bsd-2-clause | 1,680 | 45 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.