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 |
|---|---|---|---|---|---|---|---|---|
71a70f404784657a1f5be63c4153cfc16d7a587bb0f0fa85e650f8ea32e16b22 | /*
* #%L
* ImageJ2 software for multidimensional image processing and analysis.
* %%
* Copyright (C) 2009 - 2022 ImageJ2 developers.
* %%
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of... | Java | src/main/java/net/imagej/types/DataType64BitSignedComplexFloat.java | imagej/imagej-common | bsd-2-clause | 3,884 | 157 | codeparrot/github-code |
6063424ec1a2c6b769500c33f252302dd3fc084bc1aee504b71851735a31515e | package h2o.utils.log;
import h2o.common.exception.ExceptionUtil;
import h2o.common.util.collection.CollectionUtil;
import h2o.common.util.date.DateUtil;
import h2o.common.util.format.FormattingTuple;
import h2o.common.util.format.MessageFormatter;
import java.util.Date;
public abstract class AbstractTagLogger imple... | Java | h2o-utils/src/main/java/h2o/utils/log/AbstractTagLogger.java | sixshot626/h2o | bsd-2-clause | 1,841 | 71 | codeparrot/github-code |
409cd39d23937574a77d11908ba6ab4860e8781ee9e50dfecfaf44d353844587 | #include "Logger.hh"
namespace Core
{
/****************
* Old Logger implementation
*/
Logger::Logger(const std::string & LogPrefix,int indentlvl, int indentwidth)
: _indentlvl(indentlvl), _indentwidth(indentwidth),_logprefix(LogPrefix)
{
_consoleLog = true;
_fileLog = false;
#ifdef DEBUG
std... | C++ | src/Logger.cc | asmodehn/WkCore | bsd-2-clause | 1,761 | 96 | codeparrot/github-code |
95632d0c0e606a252058f0d78d1bb72b8497440f3160992fa727f4c3fc3849d0 | __all__ = [
"CorruptedMessage",
"Stats",
"UnexpectedCommand",
"UnexpectedEOF",
"UnknownCommand",
"log",
]
import logging
import struct
log = logging.getLogger("offhand")
class UnexpectedEOF(Exception):
def __init__(self):
Exception.__init__(self, "Connection closed unexpectedly"... | Python | python/offhand/__init__.py | ninchat/offhand | bsd-2-clause | 1,817 | 87 | codeparrot/github-code |
88be1aace8a051d88cf52f10985f776461d017c4e2b78590461674f753936eeb | package de.javaakademie.moviestore.model;
import java.time.LocalDate;
import java.time.Period;;
/**
* Actor.
*
* @author Guido.Oelmann
*/
public class Actor {
private Integer id;
private String name;
private String surname;
private LocalDate birthday;
private String wikipediaUrl;
public... | Java | src/main/java/de/javaakademie/moviestore/model/Actor.java | javaakademie/MovieStore | bsd-2-clause | 1,327 | 73 | codeparrot/github-code |
f676e06fd150002209aa99ced15ad3f95d00b3aa75b7f47cae4fd8c8b5aa5cca | /**
* BSD 2-Clause License
*
* Copyright (c) 2016-2017, Jochen Seeber
* 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 ... | Java | src/main/java/me/seeber/gradle/ide/eclipse/annotations/JarReader.java | jochenseeber/gradle-project-config | bsd-2-clause | 5,838 | 172 | codeparrot/github-code |
80725ba325ae90fe8f7c1ce01264727c4e5220f1ddf96961ce41cd9ae8e853e3 | /*
Copyright (c) 2013, Colorado State University
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and ... | Java | src/galileo/net/MessageRouter.java | CameronTolooee/galileo | bsd-2-clause | 19,491 | 562 | codeparrot/github-code |
872ace2d8ebad3bf4740b386e05db606f90c5b38ff2785b838ea4e7dc2a37d48 | /* $Id$ */
/*
* Copyright (c) 2004-2011 Axel Andersson
* 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
* no... | C | wirebot/main.c | nark/wirebot | bsd-2-clause | 13,291 | 606 | codeparrot/github-code |
08b7927eb9dcd8d1bd15fabb57358d9b85c4824cac948f75fc4ca3e891998754 | (function(){
var b_prepared = false;
var prep_pos = { x: 0, y: 0 };
var b_dragging = false;
var current_params = {};
var current_element = false;
var placeholder = false;
var old_style = {};
var drag_offset = { x: 0, y: 0 };
glyph.dragInit = function( container, params )
{
if ( !container ) return;
if ( typ... | JavaScript | src/glyph/tools/drag-n-drop.js | DougTy/glyph | bsd-2-clause | 5,652 | 213 | codeparrot/github-code |
37e09068823fec76ab8679760fc0b9abd62d94ded258bc32b0fbb59ef9849a50 | #include "SliderWnd.h"
#include <windowsx.h>
#include "SliderKnob.h"
#define TIMER_IGNORE_INPUT 50
#define IGNORE_DURATION 100
SliderWnd::SliderWnd(LPCWSTR className, LPCWSTR title, HINSTANCE hInstance) :
MeterWnd(className, title, hInstance),
_dragging(false) {
long styles = GetWindowLongPtr(Window::Handle(), ... | C++ | 3RVX/Slider/SliderWnd.cpp | Soulflare3/3RVX | bsd-2-clause | 5,091 | 216 | codeparrot/github-code |
81b73a45e36fd9ec77972290ffadccd2bbbf2633f1cbe0980437c4326f02ad84 | //
// The Open Toolkit Library License
//
// Copyright (c) 2006 - 2009 the Open Toolkit library.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without l... | C# | src/PixelFarm/BackEnd.MiniOpenTK/src/OpenTK/GameWindow.cs | LayoutFarm/PixelFarm | bsd-2-clause | 36,307 | 946 | codeparrot/github-code |
0acedd2da66d4a8b5449570350f2a341141b1ebe1f2b2b3d58967d93310ead1c | require "language/haskell"
class Pandoc < Formula
include Language::Haskell::Cabal
desc "Swiss-army knife of markup format conversion"
homepage "https://pandoc.org/"
url "https://hackage.haskell.org/package/pandoc-1.19.2.4/pandoc-1.19.2.4.tar.gz"
sha256 "bbe08c1f7fcfea98b899f9956c04159d493a26f65d3350aa6579a... | Ruby | Formula/pandoc.rb | grhawk/homebrew-core | bsd-2-clause | 1,393 | 43 | codeparrot/github-code |
51bfef996d3cab45af4e6b2b259a037d75708e3353e67940fbf4cc150108c862 | /*
* Copyright (c) 2015, Nightfall Group
* 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 a... | Scala | core/src/main/scala/moe/nightfall/instrumentality/editor/control/ScrollAreaElement.scala | Nightfall/Instrumentality | bsd-2-clause | 4,385 | 107 | codeparrot/github-code |
2f9aa1da4b12503c7d07a16e9cd480d85209e7eac5210a72cf38b6c25b25ac8d | // Name: cat2.c
// Author: Matayoshi
// Version: 2.1.0
// Last Update: 2011/03/09 Wed
/*
History-----------------------
[+] add; [-] remove; [x] bug fix; [=] optimize;
--Ver.2.1.0(2011/03/09 Wed)
a æØè¶Ìwè@\ðÇÁ
--Ver.2.0.2(2010/06/18 Fri)
x wvbZ[WðC³
= ÇÝÝ@\ðüÇ
--... | C | cat2.c | matayoshi/tools | bsd-2-clause | 7,082 | 286 | codeparrot/github-code |
a73f912db9588443d751a75fd007627b445df33fedd8914896f5889d216ea6a3 | package org.mapfish.print.test.util;
import com.google.common.io.Files;
import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.JasperPrint;
import net.sf.jasperreports.engine.export.JRGraphics2DExporter;
import net.sf.jasperreports.export.SimpleExporterInput;
import net.sf.jasperreports.exp... | Java | core/src/main/java/org/mapfish/print/test/util/ImageSimilarity.java | marcjansen/mapfish-print | bsd-2-clause | 15,963 | 363 | codeparrot/github-code |
bd237eadadf02e90f2c321b39bf4b9392a38a38fdf958cb8d1ca549d00db5a5e | /*
* Copyright (C) 2010. sparkling.liang@hotmail.com, barbecue.jb@gmail.com.
* All rights reserved.
*/
#ifndef __TIME_UTIL_H_
#define __TIME_UTIL_H_
#include "HP_Config.h"
#ifdef WIN32
#define WIN32_LEAN_AND_MEAN
#include <winsock2.h>
#include <sys/timeb.h>
#else
#include <sys/time.h>
#endif
namespace hpsl
{
... | C | include/TimeUtil.h | supertanglang/hpserver | bsd-2-clause | 2,413 | 84 | codeparrot/github-code |
617956cc3e120540c2cfbce7084f7ffcc3c15c4f901e25d5729cab166f4ed51a | # Created by: Daniel Morante <daniel@morante.net>
# $FreeBSD$
PORTNAME= emoticoin
PORTVERSION= 0.8.6.3
CATEGORIES= net-p2p finance
MASTER_SITES= GH
MAINTAINER= daniel@morante.net
COMMENT= Peer-to-Peer crypto currency using scrypt as a proof-of-work algorithm
LICENSE= MIT
LIB_DEPENDS= libboost_date_time.so:${PORTSDI... | Makefile | net-p2p/emoticoin/Makefile | tuaris/FreeBSD-Coin-Ports | bsd-2-clause | 3,142 | 116 | codeparrot/github-code |
48877d1915cae2248e983211fb153c1d1074b6ad65f875e986d3393bd5edc54b | using System;
using Server.Items;
using Server.Targeting;
namespace Server.ContextMenus
{
public class PowerCrystalMenu : ContextMenuEntry
{
private Mobile m_From;
private MysticPowerCrystal m_Crystal;
public PowerCrystalMenu(Mobile from, MysticPowerCrystal Crystal)
: base... | C# | Scripts/Vivre/Items/PowerCrystal/PowerCrystalMenu.cs | ggobbe/vivre-uo | bsd-2-clause | 1,540 | 53 | codeparrot/github-code |
7456605c03b6203229a2c9fa7cc7cfe071be92380c825429f2394e7952c6b9b8 | //#define MONO
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using System.Data.SqlClient;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using bv.model.BLToolkit.RemoteProvider.Server;
using System.ServiceModel;
#if MONO
[Syste... | C# | EIDSS v5/bv.model/BLToolkit/RemoteProvider/Client/RemoteSqlClient.cs | EIDSS/EIDSS-Legacy | bsd-2-clause | 7,894 | 221 | codeparrot/github-code |
f8104feb3586ad6f7656727a2b4397eab46c2a84f6f55803450ea2eaf3a872dc | #!/usr/bin/env python
"""interpret a comapct grid specification using regex"""
import re
# use a compact regular expression with nested OR expressions,
# and hence many groups, but name the outer (main) groups:
real_short1 = \
r'\s*(?P<lower>-?(\d+(\.\d*)?|\d*\.\d+)([eE][+\-]?\d+)?)\s*'
real_short2 = \
r'\s*(?P<uppe... | Python | sandbox/src1/TCSE3-3rd-examples/src/py/regex/fdmgrid.py | sniemi/SamPy | bsd-2-clause | 2,941 | 89 | codeparrot/github-code |
a36d4f4f3fedab4ba97fe31db1d75b41c3cd8ef87782a7783ccb6890e155e125 | import pandas as pd
import numpy as np
import cobra
from pyefm.ElementaryFluxModes import EFMToolWrapper
from tqdm import tqdm
class EFVWrapper(EFMToolWrapper):
def create_matrices(self, extra_g=None, extra_h=None):
""" Initialize the augmented stoichiometric matrix.
extra_g: (n x nr) array
... | Python | pyefm/ElementaryFluxVectors.py | pstjohn/pyefm | bsd-2-clause | 5,855 | 170 | codeparrot/github-code |
7d6feada1719d2e66445656a9207f832833d5dcca28e44eff9ca3622eda274e5 | #ifndef CVRP_INTRA_CROSS_EXCHANGE_H
#define CVRP_INTRA_CROSS_EXCHANGE_H
/*
This file is part of VROOM.
Copyright (c) 2015-2021, Julien Coupey.
All rights reserved (see LICENSE).
*/
#include "algorithms/local_search/operator.h"
namespace vroom {
namespace cvrp {
class IntraCrossExchange : public ls::Operator {
pr... | C | src/problems/cvrp/operators/intra_cross_exchange.h | jcoupey/vroom | bsd-2-clause | 1,663 | 71 | codeparrot/github-code |
cdf9a0ce0d775392cc6b69e157d1733c79950371ba29331fbc37604ab2f155e9 | package inference;
public class DistributionInference extends Inference implements InferenceCaller {
public DistributionInference() {
caller=this;
}
boolean evidOnly;
double curDiriDenom;
int curBin;
/* the distribution */
double maxProb,minProb;
double[] distribution;
public void doit(int M... | Java | lib/VIB-lib-master/src/main/java/inference/DistributionInference.java | yajunyang/BioImage | bsd-2-clause | 1,654 | 59 | codeparrot/github-code |
834f638f7b2ea61ead493b54a2b73a8f95c551404af2ebfa5bff9f0c67f5ebb1 | /*
* Copyright (c) 2016, Linaro Limited
* Copyright (c) 2014, STMicroelectronics International N.V.
* 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 mu... | C | core/arch/arm/kernel/thread.c | matt2048/optee_os | bsd-2-clause | 33,377 | 1,342 | codeparrot/github-code |
9f09f80fda3c64e2dacec55f8a463a2f66200d844507ccfacf06431360c70b7f | //index.js
//获取应用实例
let User = new wx.BaaS.TableObject(1997)
let user = User.create()
var query = new wx.BaaS.Query()
var app = getApp()
Page({
data: {
motto: 'Hello World',
userInfo: {},
pages: [
'logs',
'weatherDemo',
'calculatorDemo',
'moviesDemo',
'articlesDemo',
... | JavaScript | platforms/weixin/miniapp/miniapp_1_minapp/firstApp/pages/index/index.js | sharkspeed/dororis | bsd-2-clause | 1,546 | 78 | codeparrot/github-code |
ee4d0b7b421045c858fd84483b3eb418e4d18586014d64732ab61dcdb6b62cf8 | package org.jcodec.codecs.vpx.vp8.data;
import static org.jcodec.codecs.vpx.vp8.data.CommonData.Comp.AC;
import static org.jcodec.codecs.vpx.vp8.data.CommonData.Comp.DC;
import static org.jcodec.codecs.vpx.vp8.data.CommonData.Quant.UV;
import static org.jcodec.codecs.vpx.vp8.data.CommonData.Quant.Y1;
import static org... | Java | src/main/java/org/jcodec/codecs/vpx/vp8/data/QuantCommon.java | jcodec/jcodec | bsd-2-clause | 5,008 | 117 | codeparrot/github-code |
4f475221ea0bd15c062e185263477ad3acd7e860e8170acfa91a2958a1290df8 | /*
* These two features seemed out of place everywhere else so I stuck them in here.
* My plan is for UI.js to manage further user interaction
* I'm going to incorporate sliders to customize visualizations in real time
*/
// called when play button overlay is clicked; plays audio+runs render()
var play = function(... | JavaScript | js/src/UI.js | DodekaHydra/arcane.gl | bsd-2-clause | 1,232 | 46 | codeparrot/github-code |
3934ec1ac751ba8a8e87f997a2ab7b48010ad02c6743579d402acfae38ff3413 | package main
import (
"bufio"
"bytes"
"errors"
"fmt"
"io"
"log"
"mime"
"net"
"net/http"
"net/url"
"os"
"path/filepath"
"regexp"
"strconv"
"strings"
"time"
)
// Access Control Lists (ACLs)
// An ACLDefinitions object contains information about how to assign ACLs to a
// request.
type ACLDefinitions st... | GO | acl.go | unixabg/redwood | bsd-2-clause | 12,303 | 529 | codeparrot/github-code |
a772066e687ce89b3abcf5994e504ad2db705d7336610eb59e1ff5450bba8274 | package client
import (
"context"
"net/http"
"github.com/tidepool-org/platform/errors"
"github.com/tidepool-org/platform/page"
"github.com/tidepool-org/platform/platform"
"github.com/tidepool-org/platform/request"
structureValidator "github.com/tidepool-org/platform/structure/validator"
"github.com/tidepool-o... | GO | task/client/client.go | tidepool-org/platform | bsd-2-clause | 3,452 | 129 | codeparrot/github-code |
f73bb93566ab73a31ce3a062aa1bb84fe41b80f0d0fb5d7438b6c9454aa16351 | /*
Copyright 2007 nVidia, 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 in writing, software distr... | C++ | deps/NVIDIATextureTools/src/nvtt/bc7/avpclc.cpp | FloodProject/flood | bsd-2-clause | 9,746 | 349 | codeparrot/github-code |
89b5afaaf71950602c220605bd6de41d1ca0125c7fdfc31c0c583214c90712c9 | #pragma once
#include <array>
#include <glm/glm.hpp>
namespace FLIGHT {
class AABB { // A.K.A. Axis Aligned Bounding Box
glm::vec3 m_min, m_max;
void DoYRotation(std::array<glm::vec3, 8> & cubePoints, const float rad);
void DoXRotation(std::array<glm::vec3, 8> & cubePoints, const float rad);
void DoZR... | C++ | include/FLIGHT/Core/BB.hpp | evanbowman/FLIGHT | bsd-2-clause | 1,606 | 54 | codeparrot/github-code |
82e9bf51ce118631312245c7aca2df45c39983bd499da8edabb699f26b0b1495 | #ifndef UUIDS_UUID_HPP
#define UUIDS_UUID_HPP
#include <algorithm>
#include <iomanip>
#include <iosfwd>
#include <cctype>
#include <cstring>
#include <string>
#include <cstdint>
#include <iterator>
namespace uuids
{
namespace detail
{
template <typename T>
struct has_overloaded_addressof
{
template <typename U>
s... | C++ | engine/core/uuid/bits/uuid.hpp | volcoma/EtherealEngine | bsd-2-clause | 7,555 | 349 | codeparrot/github-code |
cd6666d9372068d946fea14ba0edd70177cc4dfec13a346bdedd49a7f2d81482 | #pragma once
#include <gtkmm/drawingarea.h>
#include "litehtml/containers/linux/container_linux.h"
#include "http_loader.h"
class browser_window;
class html_widget : public Gtk::DrawingArea,
public container_linux
{
litehtml::tstring m_url;
litehtml::tstring m_base_url;
litehtml::document::ptr m_html;... | C | html_widget.h | dmgolubovsky/hs-lite | bsd-2-clause | 2,013 | 51 | codeparrot/github-code |
38cc1a219cb92f4ef7a82de326a48d8ede43d30ad289510e89c5f7320797949a | package unit;
import static org.junit.Assert.*;
import org.junit.Test;
import static libnp.statistics.SpecialFunctions.incompleteBeta;
import static libnp.util.Float.compareFloats;
public class TestSpecialFunctions {
@Test
public void test_incompleteBeta() {
for (double x = 0.0; x <= 1.0; x += 0.01) {
asse... | Java | test/unit/TestSpecialFunctions.java | lell/libnp | bsd-2-clause | 904 | 54 | codeparrot/github-code |
3590081c5b0d2f7750346ff94246e1d7215f2817538901580ed4f14683859d91 | """Unittests that do not require the server to be running an common tests of responses.
The TestCase here just calls the functions that provide the logic to the ws views with DummyRequest
objects to mock a real request.
The functions starting with `check_...` are called with UnitTest.TestCase instance as the first
ar... | Python | phylesystem_api/tests.py | mtholder/pyraphyletic | bsd-2-clause | 7,707 | 189 | codeparrot/github-code |
573f3301e25e037ac67504f72936cc66d1ffd2eb723c94f7b432091dc0e5a071 | /*-
* Copyright (c) 1997-2002 The Protein Laboratory, University of Copenhagen
* 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 co... | C | img/ic_conv.c | run4flat/Primo | bsd-2-clause | 20,933 | 776 | codeparrot/github-code |
71d97e04a2119670fbaf0aa79d1bdb52fa334f1244b2e3e6fa14d6482a3d530c | # Importing standard libraries
import sys
'''
Returns the index of the element in the grid. Element passed in
must have a unique position. If not present returns [-1, -1]. If
multiple occurences present, returns the first one
'''
def findIndex(grid,charElem):
for i in range(len(grid)):
... | Python | genericCode/matrixAndGraphUtility/matrixDFS.py | tejasnikumbh/Algorithms | bsd-2-clause | 5,021 | 147 | codeparrot/github-code |
03c86567d7f75988c12778f70d28d63c46367de003e4c889f97ac11aa97c783e | "use strict";
/**
* @var jaegerhut [Object] Badge icons, one for each policy
*/
const jaegerhut = {
0: {
name: "allowall",
colour: "#D84A4A",
text: chrome.i18n.getMessage("policyAllowAll")
},
1: {
name: "relaxed",
colour: "#559FE6",
text: chrome.i18n.getMessage("policyRelaxed")
},
2: {
name: "filt... | JavaScript | popup.js | An-dz/ScriptJaeger | bsd-2-clause | 15,798 | 561 | codeparrot/github-code |
7cb4bb1cc6bbd837980566b593f176ff21d1ed2e965c732623c95b03b9abaeb0 | # -*- coding: utf-8 -*-
"""
hydrogen
~~~~~~~~
Hydrogen is an extremely lightweight workflow enhancement tool for Python
web applications, providing bower/npm-like functionality for both pip and
bower packages.
:author: David Gidwani <david.gidwani@gmail.com>
:license: BSD, see LICENSE for ... | Python | hydrogen.py | darvid/hydrogen | bsd-2-clause | 26,677 | 720 | codeparrot/github-code |
13e9e67038fe070ccd2d7fc472a5aa17d3a74db42f801775899f7d578ef8b6cb | /*
* Copyright (C) 2012, 2016 Apple 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:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condit... | C++ | loader/CookieJar.cpp | applesrc/WebCore | bsd-2-clause | 3,681 | 93 | codeparrot/github-code |
1c1a0c58cc565990d4afe0a9a5fc77d77ad974db74dc58c8ffa1433960086979 | /****************************************************************************
**This file is part of the Motorcar 3D windowing framework
**
**
**Copyright (C) 2014 Forrest Reiling
**
**
** You may use this file under the terms of the BSD license as follows:
**
** "Redistribution and use in source and binary forms, with... | C | src/compositor/scenegraph/output/viewpoint.h | thegreatpissant/motorcar | bsd-2-clause | 4,305 | 140 | codeparrot/github-code |
d6388bf2c65a30fb3bb6036a268db33b0bf82ac08a1556d79a9ca003bcfc0baf | from __future__ import unicode_literals
from future.builtins import str
from datetime import datetime
import re
try:
from urllib.parse import quote
except ImportError:
# Python 2
from urllib import quote
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from djang... | Python | mezzanine/twitter/models.py | Kniyl/mezzanine | bsd-2-clause | 6,647 | 168 | codeparrot/github-code |
c4a046405364cb93f0a4afa165a8816e9375ce3d508e6eace1866e7da9019b0a | /*
* Copyright 2019 Shannon F. Stewman
*
* See LICENCE for the full copyright terms.
*/
#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h>
#include <fsm/fsm.h>
#include <adt/alloc.h>
#include <adt/stateset.h>
#include <adt/hashset.h>
/*
* TODO: now fsm_state_t is a numeric index, t... | C | src/adt/stateset.c | katef/libfsm | bsd-2-clause | 11,309 | 677 | codeparrot/github-code |
1f00753da1cdc6ca6a7e0fec4c3a16e2d4bcfa7048078b6820b802e90f4586cd | /*
Copyright (c) 2015-2016 Kamil Rytarowski
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 an... | C | src/window-gtk.c | krytarowski/bociek | bsd-2-clause | 3,066 | 152 | codeparrot/github-code |
b1d582e8631f15f156d7911baac490bc053958cf87aaf7d8fe357f06de4778e9 | /*
* Copyright (C) 1984-2012 Mark Nudelman
* Modified for POSIX compliance by Garrett D'Amore.
* Copyright 2017 Garrett D'Amore <garrett@damore.org>
*
* You may distribute under the terms of either the GNU General Public
* License or the Less License, as specified in the README file.
*
* For more information, ... | C | optfunc.c | gdamore/less-fork | bsd-2-clause | 10,329 | 551 | codeparrot/github-code |
7a60fab49787392d98b5465eeff1888b947c004505ff1ed6f1ba6a036a269494 | /*
* Copyright (c) 2016, Kevin Phoenix
* 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 condi... | Java | src/main/java/in/twizmwaz/cardinal/module/region/parser/CircleRegionParser.java | CardinalDevelopment/Cardinal | bsd-2-clause | 2,977 | 71 | codeparrot/github-code |
d7b26616556ab9e5d3b4bb597e83a60a100357dca06548611455e7759c2fc0d3 | # provides #max_by
require "vendor/backports/enumerable"
require "digest/md5"
require "formula_renames"
# The Formulary is responsible for creating instances of Formula.
# It is not meant to be used directy from formulae.
class Formulary
FORMULAE = {}
def self.formula_class_defined?(path)
FORMULAE.key?(path)... | Ruby | Library/Homebrew/formulary.rb | ahihi/tigerbrew | bsd-2-clause | 10,146 | 359 | codeparrot/github-code |
ccbc878c6ea00cb27ac2da678a561cecf57056f7bce6c0e865bdc15439128168 | /*
* Copyright (c) 2014. Real Time Genomics Limited.
*
* 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... | Java | test/com/rtg/usage/UsageLoggingTest.java | RealTimeGenomics/rtg-tools | bsd-2-clause | 2,750 | 65 | codeparrot/github-code |
cf052dab00dd6c69e66f1c90cc34f769ffe8e421d6bf067d3fac3731417b302b |
import * as Error from '../error';
import * as Ast from './ast';
import * as ScopeHandler from './scopeHandler';
import * as TypeSystem from './typeSystem';
const evaluateBlock = (scope, ast) => {
return ast.map((expr) => {
return evaluateExpression(scope, expr);
});
};
const evalua... | JavaScript | src/app/language/interpreter.js | rumblesan/whorl | bsd-2-clause | 6,470 | 250 | codeparrot/github-code |
e2eb40e36b7ddd8538176efdfc72435c9e77416d3bc44eb68b6b3d6632748f60 | import { Component, OnInit } from '@angular/core';
import { AppConfig } from '../../../conf/app.config';
import { AuthService } from '../auth/auth.service';
import { Router } from '@angular/router';
import { Location } from '@angular/common';
import { HttpClient } from '@angular/common/http';
@Component({
selector: ... | TypeScript | frontend/src/app/components/login/login.component.ts | PnEcrins/GeoNature | bsd-2-clause | 1,035 | 32 | codeparrot/github-code |
d6d6ab3eca4de02cf4d3f70ba13df526df694f4ac8bf656691e64068e2f5f55e | package com.rhcloud.igorbotian.rsskit.rest.facebook.api;
import com.fasterxml.jackson.databind.JsonNode;
import com.rhcloud.igorbotian.rsskit.db.RsskitDataSource;
import com.rhcloud.igorbotian.rsskit.db.facebook.FacebookEntityManager;
import com.rhcloud.igorbotian.rsskit.db.facebook.FacebookEntityManagerImpl;
import c... | Java | src/main/java/com/rhcloud/igorbotian/rsskit/rest/facebook/api/FacebookAPIImpl.java | igorbotian/rsskit | bsd-2-clause | 7,156 | 196 | codeparrot/github-code |
c527c3afed7ab0046180f8ba147bafeef438e9aaea9d6a7f9f819e8b50a5e6c3 | /*
Copyright (c) 2015, David P. Discher
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 conditions and the followin... | C | src/bin/dpdChatFabric-client.c | daviddpd/dpdChatFabric | bsd-2-clause | 7,599 | 242 | codeparrot/github-code |
e25e5384935113a512c8d6cf0f48e868212e3b623799da1ab55c94be0ab780b9 | package de.pfabulist.loracle.license;
import de.pfabulist.loracle.attribution.CopyrightHolder;
import de.pfabulist.loracle.maven.Coordinates;
import de.pfabulist.roast.nio.Files_;
import de.pfabulist.roast.nio.Paths_;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import javax.annotation.Nullable;
import ... | Java | src/main/java/de/pfabulist/loracle/license/Coordinates2License.java | openCage/loracle-maven-plugin | bsd-2-clause | 19,881 | 551 | codeparrot/github-code |
af586d8eb17f6b1efe1201064b30c92ca689afa5830978656cc9b87239075465 | /**
Copyright (c) 2010 Dennis Hotson
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distrib... | JavaScript | server/pub/lib/springy/springyui.js | aisman64/peoplecounter | bsd-3-clause | 12,743 | 403 | codeparrot/github-code |
732aa1ab27f2e78a30185904001ef62e8ca2b4b214bbca5b57c2abfe1bfed0f0 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "config.h"
#include "modules/fetch/FetchManager.h"
#include "bindings/core/v8/ExceptionState.h"
#include "bindings/core/v8/ScriptPromiseResolver... | C++ | Source/modules/fetch/FetchManager.cpp | Pluto-tv/blink-crosswalk | bsd-3-clause | 19,589 | 498 | codeparrot/github-code |
749f84463f5363b0784795c6282f2de6e609e6724887865b5944d98a7ddb12de | /*Copyright 2012, infina (C. Bouton)
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 conditions and the following d... | Java | com/cbouton/chocolatecraft/ModItems.java | infina/chocolatecraft | bsd-3-clause | 6,114 | 110 | codeparrot/github-code |
739fa1ca1a06e76645f95e718c285c5da5fc06abea1c4e72cad5eec52e6cbf78 | /*
* Copyright: (c) Mayo Foundation for Medical Education and
* Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the
* triple-shield Mayo logo are trademarks and service marks of MFMER.
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/lexevs-grid/LICENSE.txt f... | Java | LexEVSAnalyiticalService/src/org/LexGrid/LexBIG/cagrid/iso21090/converter/TextTextCustomConverter.java | NCIP/lexevs-grid | bsd-3-clause | 1,549 | 52 | codeparrot/github-code |
121d44b45712f6e5eb45936ad356fbc18d8bdda4328be7fbf798e5ea0f3a723e | // Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "skia/ext/benchmarking_canvas.h"
#include <memory>
#include <sstream>
#include <utility>
#include "base/check_op.h"
#include "base/memory/p... | C++ | skia/ext/benchmarking_canvas.cc | scheib/chromium | bsd-3-clause | 19,979 | 609 | codeparrot/github-code |
ff94480c0dac3aca354f5b0f9294971dfdaaf17cd2672b2173994d4df3e80207 | // Copyright 2016 the chromium authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/core/css/cssom/style_property_map.h"
#include "third_party/blink/renderer/core/css/css_identifier_value.h"
#include ... | C++ | third_party/blink/renderer/core/css/cssom/style_property_map.cc | endlessm/chromium-browser | bsd-3-clause | 13,992 | 386 | codeparrot/github-code |
661806904bb34073a05dbd79358f5e17de59d8987c743fbb6b003229b358db35 | /*
* Copyright (C) 1997 Martin Jones (mjones@kde.org)
* (C) 1997 Torben Weis (weis@kde.org)
* (C) 1998 Waldo Bastian (bastian@kde.org)
* (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
* Copyright (C) 2003, 2004, 2005, 2006, 2010 Apple Inc. ... | C++ | src/webkit/Source/WebCore/html/HTMLTableCaptionElement.cpp | klim-iv/phantomjs-qt5 | bsd-3-clause | 2,276 | 64 | codeparrot/github-code |
b06b5d7be0f32e2c1c89237dc140eed8cf7eb4a567e7d97f2f23b94e1f6e7e43 | """
OOB configuration.
This module should be included in (or replace) the
default module set in settings.OOB_PLUGIN_MODULES
All functions defined in this module are made available
to be called by the OOB handler.
See src/server/oob_msdp.py for more information.
function execution - the oob protocol can execute ... | Python | game/gamesrc/conf/examples/oobfuncs.py | Pathel/deuterium | bsd-3-clause | 1,435 | 37 | codeparrot/github-code |
4d8a14705ca5e39fdfd06b75e5137f5a02abe446eabfb89b7b1b3d08180f314a | import os.path
import os
import random
def rename(src, dst):
"Atomic rename on windows."
# This is taken from mercurial
try:
os.rename(src, dst)
except OSError, err:
# If dst exists, rename will fail on windows, and we cannot
# unlink an opened file. Instead, the destination is ... | Python | bento/compat/rename.py | abadger/Bento | bsd-3-clause | 1,100 | 33 | codeparrot/github-code |
0998be8e769462c07528ec02e47f6e45e9a82274988da8f15a1521a679c420f0 | {-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE Rank2Types #-}
{-# LAN... | Haskell | ivory/src/Ivory/Language/Proc.hs | Hodapp87/ivory | bsd-3-clause | 11,895 | 329 | codeparrot/github-code |
4c4325890fad261b9dde33fb2a090462ba4f5e7db8fd089e1960f1011c58493e | /* Copyright (c) 2013 OpenPlans. All rights reserved.
* This code is licensed under the BSD New License, available at the root
* application directory.
*/
package org.geogit.osm.internal;
import java.io.File;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
impor... | Java | src/osm/src/test/java/org/geogit/osm/internal/OSMMapOpTest.java | markles/GeoGit | bsd-3-clause | 25,855 | 497 | codeparrot/github-code |
8d1eb80da02dbdf1106573ae59c186a7b295ff136cc295f1b7579ccc1c1b85f0 | from dateutil.relativedelta import relativedelta
from script.models import Script, ScriptProgress
from rapidsms.models import Connection
import datetime
from rapidsms.models import Contact
from rapidsms.contrib.locations.models import Location
from poll.models import Poll
from script.models import ScriptStep
from djang... | Python | edtrac_project/rapidsms_edtrac/education/utils.py | unicefuganda/edtrac | bsd-3-clause | 12,792 | 379 | codeparrot/github-code |
551a45988956c9c2f1531f62d8fdddbb75a6c986bfb8c614a10809c2179ddecc | // Copyright 2015, Google Inc. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package vtctl
import (
"encoding/hex"
"encoding/json"
"flag"
"fmt"
"strconv"
"strings"
"time"
"github.com/youtube/vitess/go/vt/tabletserver/tabletconn"
... | GO | go/vt/vtctl/query.go | guokeno0/vitess | bsd-3-clause | 17,882 | 468 | codeparrot/github-code |
d2d7ef2d91816808039bec3c3c4d4e4a8563cd65d23d1884d0825b961c7871e2 | #pragma once
#include "TArc/Controls/ControlProxy.h"
#include <QWidget>
namespace DAVA
{
class EmptyWidget : public ControlProxyImpl<QWidget>
{
using TBase = ControlProxyImpl<QWidget>;
public:
enum class Fields : uint32
{
FieldCount
};
DECLARE_CONTROL_PARAMS(Fields);
EmptyWidget(con... | C | Modules/TArc/Sources/TArc/Controls/EmptyWidget.h | dava/dava.engine | bsd-3-clause | 798 | 31 | codeparrot/github-code |
21f4b82663d24830235070753350b164d321fa0d1690daa3b4e918325fb3e19b | import os
from example_builder import ExampleBuilder
RST_TEMPLATE = """
.. _%(sphinx_tag)s:
%(docstring)s
%(image_list)s
.. raw:: html
<div class="toggle_trigger"><a href="#">
**Code output:**
.. raw:: html
</a></div>
<div class="toggle_container">
.. literalinclude:: %(stdout)s
.. raw:: html
... | Python | docs/_extensions/gen_figure_rst.py | cigroup-ol/metaopt | bsd-3-clause | 1,626 | 81 | codeparrot/github-code |
0e744dc36ba2ecd31d350eb717a2774ded1aacf81b22fd3621aa398f9d67d5bc | package org.renci.databridge.util;
import java.io.*;
import java.util.logging.Logger;
import java.util.logging.Level;
import junit.framework.Assert;
import junit.framework.TestCase;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.rules.Expect... | Java | util/src/test/java/org/renci/databridge/util/AmqpMessageMiniFrameworkTest.java | HowardLander/DataBridge | bsd-3-clause | 3,100 | 86 | codeparrot/github-code |
8208b1b3090b991eb6c7551b8a902ef2a4ffe75d975a3d57d8aa6c376422f617 | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/extension_toolbar_model_factory.h"
#include "chrome/browser/extensions/extension_toolbar_model.h"
#include "chrome/br... | C++ | chrome/browser/extensions/extension_toolbar_model_factory.cc | ChromiumWebApps/chromium | bsd-3-clause | 1,982 | 56 | codeparrot/github-code |
0f3b2002bc58fb9558246931be85f33bf90bc5ccd37b4d3ec9e38b49d7a18f55 | from importlib import import_module
from django.core.urlresolvers import (RegexURLPattern,
RegexURLResolver, LocaleRegexURLResolver)
from django.core.exceptions import ImproperlyConfigured
from django.utils import six
__all__ = ['handler400', 'handler403', 'handler404', 'handler500', 'include', 'patterns', 'url'... | Python | django/conf/urls/__init__.py | ericholscher/django | bsd-3-clause | 2,589 | 64 | codeparrot/github-code |
55364e6fe447811ec4cb16fd85c0e5a0cfa53738c42942f9876dbd17cd301d10 | /*
* Copyright 2008 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can
* be found in the LICENSE file.
*/
#include "native_client/src/trusted/plugin/npapi/plugin_npapi.h"
#include <stdio.h>
#include <string.h>
#include <limits>
#include <set>
#... | C++ | src/trusted/plugin/npapi/plugin_npapi.cc | eseidel/native_client_patches | bsd-3-clause | 21,975 | 578 | codeparrot/github-code |
e65050ab66b8663d71abd11a92cefe8060cf4a5af683dbecec103bf033c6179f | from __future__ import absolute_import
import datetime
import jwt
import re
import logging
from six.moves.urllib.parse import parse_qs, urlparse, urlsplit
from sentry.integrations.atlassian_connect import get_query_hash
from sentry.shared_integrations.exceptions import ApiError
from sentry.integrations.client import... | Python | src/sentry/integrations/jira/client.py | beeftornado/sentry | bsd-3-clause | 8,782 | 238 | codeparrot/github-code |
274b2e1d7a512ffad1aef048aa1979b3831d2ec5648e5ff01632339bac6c7a11 | //
// System.Web.Util.StrUtils
//
// Author(s):
// Gonzalo Paniagua Javier (gonzalo@ximian.com)
//
// (C) 2005 Novell, Inc, (http://www.novell.com)
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Softwar... | C# | Dependencies/Griffin.Networking.Http/Services/BodyDecoders/Mono/StrUtils.cs | NanaYngvarrdottir/Software-Testing | bsd-3-clause | 4,489 | 139 | codeparrot/github-code |
75b5fd93445391798f07b972686c0df2f888d0d13a52000b1e7fba264b83afab | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_22b.c
Label Definition File: CWE134_Uncontrolled_Format_String.label.xml
Template File: sources-sinks-22b.tmpl.c
*/
/*
* @description
* CWE: 134 Uncontrolled Format String
* BadSource: file Read input from ... | C | xcc/test/juliet/testcases/CWE134_Uncontrolled_Format_String/s05/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_22b.c | JianpingZeng/xcc | bsd-3-clause | 3,574 | 105 | codeparrot/github-code |
5353ad5187d9f419b9a90d6e8a14c2042a42a8d0477412cf7be81de114cf40ef | (function(){
d3.timeline = function(){
var itemHeight = 20,
height = null,
width = 1000;
function chart(selection){
selection.each(function(data){
var groups = grouping(data),
levels = d3.sum(d3.values(groups).map(function(d){ return d.length; })),
margin = {top: 20, right: 15, bottom: 5... | JavaScript | src/js/helpers/d3.timeline.js | humanitiesplusdesign/palladio | bsd-3-clause | 3,995 | 179 | codeparrot/github-code |
0d0781c3299a8326d49995647e707dc9de07293df97c9e2190252bedba2e82f5 | <?php
/**
* Created by PhpStorm.
* User: Ibnu
* Date: 27/12/2015
* Time: 16.19
*/
namespace Prajurit\Model;
use Zend\InputFilter\InputFilter;
use Zend\InputFilter\InputFilterAwareInterface;
use Zend\InputFilter\InputFilterInterface;
class Prajurit implements InputFilterAwareInterface
{
publi... | PHP | module/Prajurit/src/Prajurit/Model/Prajurit.php | ibnuda/SayaSakit | bsd-3-clause | 3,114 | 110 | codeparrot/github-code |
e25e6ae392b6d902aaea30f855416b8c4e3fe23b120ff58d4ac3d713ca7eba40 |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>statsmodels.stats.contingency_tables.StratifiedTable.oddsratio_pooled_confint — statsmodels v0.10.1 documentation</title>
<link rel="stylesheet" href="../_static/nature.css" type="text/css" />
<... | HTML | v0.10.1/generated/statsmodels.stats.contingency_tables.StratifiedTable.oddsratio_pooled_confint.html | statsmodels/statsmodels.github.io | bsd-3-clause | 8,902 | 186 | codeparrot/github-code |
829a7356420868b470dcd980ad4c258ae2fb71897d2716cbda2bb5ed3c19ab48 |
package net.aisd.martin.frc.commands;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.command.Command;
import net.aisd.martin.frc.Subsystems;
/**
*
* @author Colonel Thirty Two
*/
public class ArcadePrecisionDriveCommand extends Command
{
public ArcadePrecisionDriveCommand()
{
super(Arcade... | Java | src/net/aisd/martin/frc/commands/ArcadePrecisionDriveCommand.java | ColonelThirtyTwo/FRC-Team-3676-Robot-Code | bsd-3-clause | 1,377 | 64 | codeparrot/github-code |
f89263ecdd477b14995988b31179a5289348c34ed879d883597aa93f93c1e14f | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.h"
#include <fcntl.h>
#include <algorithm>
#include <vector>
#include ... | C++ | chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc | ltilve/chromium | bsd-3-clause | 73,958 | 1,894 | codeparrot/github-code |
a0b479ea99e1bcf0e778799bc4a3bf28cf8f8e9e73164ef8d8bb385f8d3dfb65 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "ABI39_0_0AccessibilityProps.h"
#include <ABI39_0_0React/components/view/accessibilityPropsConversions.h>
#include <ABI39... | C++ | ios/versioned-react-native/ABI39_0_0/ReactNative/ReactCommon/fabric/components/view/accessibility/ABI39_0_0AccessibilityProps.cpp | exponent/exponent | bsd-3-clause | 3,116 | 96 | codeparrot/github-code |
e9a43d75aef0cf72bc221cf3723fb775e41bb841f2dda4c1c3421d45a2d3971b | /*
Copyright (c) 1999 - 2010, Vodafone Group Services 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:
* Redistributions of source code must retain the above copyright notice, this list of condit... | C | Shared/Utility/include/SimpleArray.h | wayfinder/Wayfinder-Server | bsd-3-clause | 4,017 | 114 | codeparrot/github-code |
ce7abe9eff1fd79d51a3f7424fc19f4e1c073a2240fd1915771418ca4f9ea18b | <!DOCTYPE html>
<html dir="ltr" lang="pt-br">
<head>
<title>Apêndice B - Lista de Leitura - Rubinius</title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta content='pt-br' http-equiv='content-language'>
<meta content='Rubinius is an implementation of th... | HTML | web/_site/doc/pt-br/appendix-b-reading-list/index.html | takano32/rubinius | bsd-3-clause | 8,168 | 249 | codeparrot/github-code |
1b81cea94a772352e79e1c457b8662e10626a8c9cd8a21a17b02b30d6e489f85 | package org.motechproject.server.messagecampaign.scheduler;
import org.joda.time.LocalDate;
import org.motechproject.event.MotechEvent;
import org.motechproject.scheduler.MotechSchedulerService;
import org.motechproject.scheduler.domain.RunOnceSchedulableJob;
import org.motechproject.server.messagecampaign.EventKeys;
... | Java | modules/message-campaign/message-campaign/src/main/java/org/motechproject/server/messagecampaign/scheduler/AbsoluteCampaignSchedulerService.java | motech/motech-server-pillreminder | bsd-3-clause | 2,356 | 45 | codeparrot/github-code |
a8b57d36ea95508949286e5011dd08d94b07df6851ba003f8751aafaba60b0f1 | """
===========================================
Main Components (:mod:`artview.components`)
===========================================
.. currentmodule:: artview.components
ARTview offers some basic Components for visualization
of weather radar data using Py-ART and
ARTview functions.
.. autosummary::
:toctree:... | Python | artview/components/__init__.py | jjhelmus/artview | bsd-3-clause | 1,065 | 42 | codeparrot/github-code |
2fdf5c92c0324259d47fc6173b22a9ba2b06c80a1bb0fac51a40b0d6ce50babf | <?php
namespace Api\Controller;
class UsersController extends AppController {
public function __construct()
{
}
public function addAction()
{
return \Api\Bus\Users\Add::getInstance()->execute(
$this->getServiceLocator(),
$this->getParams()
... | PHP | module/Api/src/Api/Controller/UsersController.php | thailvn/dev | bsd-3-clause | 4,136 | 165 | codeparrot/github-code |
3b375dc5e63d502f11069a9f85224bb6d3e839a8647307b48fd110daf3886f07 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/base/file_stream.h"
#include "base/location.h"
#include "base/message_loop/message_loop_proxy.h"
#include "base/task_runner_util.h"
#in... | C++ | net/base/file_stream.cc | patrickm/chromium.src | bsd-3-clause | 8,545 | 297 | codeparrot/github-code |
3d824014a8afdf139b0946b39b7aaa3eeab380d728e09b9bb5953ca2290cb1b7 | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class TiebaItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
class ThreadItem(scrapy.Item):
... | Python | tieba/items.py | fozzysec/tieba-keyword-spider | bsd-3-clause | 730 | 33 | codeparrot/github-code |
873be654912e4b04437faccc7297831e1a4b39f2f48ff030edabda97defe5157 | {-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE LambdaCase #-}
module Development.Cake3.Ext.UrWeb whe... | Haskell | src/Development/Cake3/Ext/UrWeb1.hs | grwlf/cake3 | bsd-3-clause | 24,818 | 759 | codeparrot/github-code |
773d1abcc3d1677d85b30563e998949e9175cea7f3182c1bc3b0885fbca5a446 | package com.sap.research.fiware.ngsi10.test.querycontext;
import java.net.HttpURLConnection;
import org.junit.Test;
import com.sap.research.fiware.ngsi10.test.Constants;
import com.sap.research.fiware.ngsi10.test.HttpRequestBuilder;
import com.sap.research.fiware.ngsi10.test.TestHelpers;
public class TestUnallowedM... | Java | TestClientToNGSI10TestServer/src/test/java/com/sap/research/fiware/ngsi10/test/querycontext/TestUnallowedMethodsOnQueryContext.java | iotsap/ngsi10testserver | bsd-3-clause | 1,069 | 38 | codeparrot/github-code |
6fed4578bd84447c99b45ef25eec4e883f446ffcef8c3dc873f7a20ce724777a | /* $OpenBSD: evp_lib.c,v 1.15 2017/01/29 17:49:23 beck Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This li... | C | src/C/libressl/libressl-2.7.2/crypto/evp/evp_lib.c | GaloisInc/hacrypto | bsd-3-clause | 7,952 | 347 | codeparrot/github-code |
ca599e41e9a9714c9b3528b2d57d0c0d40fceb7eaee052124cbe8f49da311f68 | // BLAEngine Copyright (C) 2016-2020 Vincent Petrella. All rights reserved.
#include "RenderCamera.h"
using namespace BLA;
void RenderCamera::AttachCamera(CameraComponent* camera)
{
this->m_attachedCamera = camera;
}
void PerspectiveCamera::SetAspect(blaVec2 renderSize)
{
m_aspectRatio = renderSize.x / rend... | C++ | Engine/Renderer/RenderCamera.cpp | vingt-2/BLAHengine | bsd-3-clause | 2,138 | 70 | codeparrot/github-code |
07d8057bbc8c440b0be9d97a177ff8b47d47f559c3cf420fb6fca96afbf42734 | #pragma once
#include <AglVector3.h>
#include <AglVector4.h>
#include <AglMatrix.h>
#include <AglParticleSystemHeader.h>
#include "RendererSceneInfo.h"
// =======================================================================================
// ParticleCBuffer
// ==================... | C | Projects/Graphics/Src/ParticleCBuffer.h | MattiasLiljeson/Amalgamation | bsd-3-clause | 2,725 | 96 | codeparrot/github-code |
54550a8146e9702336d2b5ee657f75ee7b999efa1aafb16183670b9bc92f2cdc | <?php
namespace app\controllers;
use Yii;
use app\models\Problem;
use app\models\ProblemSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
/**
* ProblemController implements the CRUD actions for Problem model.
*/
class ProblemController extends Controller
{
public fu... | PHP | controllers/ProblemController.php | dyarob/diane_yii2 | bsd-3-clause | 3,094 | 122 | codeparrot/github-code |
d07c1317b273f581bed5a37895837da4837b7af321a5031ccea86b2ebca2db70 | /*****************************************************************************
Project: CEDAR Logic Simulator
Copyright 2006 Cedarville University, Benjamin Sprague,
Matt Lewellyn, and David Knierim
All rights reserved.
For license information see license.txt included with distribu... | C++ | GUI/MainFrame.cpp | T145/cygic | bsd-3-clause | 31,411 | 842 | codeparrot/github-code |
00b989cfdb621feab6f9d0350d3cf8bf22492803b882142f3a8d35ddd8ebff42 | #Copyright ReportLab Europe Ltd. 2000-2012
#see license.txt for license details
__version__=''' $Id$ '''
___doc__=''
#odyssey.py
#
#Demo/benchmark of PDFgen rendering Homer's Odyssey.
#results on my humble P266 with 64MB:
# Without page compression:
# 239 pages in 3.76 seconds = 77 pages per second
# With textOut r... | Python | demos/odyssey/odyssey.py | MatthewWilkes/reportlab | bsd-3-clause | 4,323 | 147 | codeparrot/github-code |
83b1dfa47307787f0db3f5bfb9b190c271be603703c92976c614a82b1e0a4444 |
/*
* Carrot2 project.
*
* Copyright (C) 2002-2015, Dawid Weiss, Stanisław Osiński.
* All rights reserved.
*
* Refer to the full license file "carrot2.LICENSE"
* in the root folder of the repository checkout or at:
* http://www.carrot2.org/carrot2.LICENSE
*/
package org.carrot2.workbench.core.helpers;
import... | Java | workbench/org.carrot2.workbench.core/src/org/carrot2/workbench/core/helpers/DisposeBin.java | MjAbuz/carrot2 | bsd-3-clause | 6,510 | 257 | codeparrot/github-code |
eefc497a80fb68a3d1ef0245257741c9fb46bf4fefdc1d02b4cb051deca4ea41 | drop table if exists t;
create table t(a char(200) primary key,b varchar,c smallint,d int,e bigint,f date,g time,h timestamp,i datetime) partition by range(a)
(
partition p0 values less than ('dddd'),
partition p1 values less than ('kkk'),
partition p2 values less than ('ww')
);
drop table if exists t;
create table t(a... | SQL | sql/_27_banana_qa/issue_13412_partition_indexes/cases/_02_primary_unique_key.sql | CUBRID/cubrid-testcases | bsd-3-clause | 8,342 | 201 | codeparrot/github-code |
b6b67c5871c097b3475347ad28578703d86edefd13dc5fd0b8e29b30d1827f4d | <?php
require_once 'Validator.class.php';
class lapy4 extends Validator
{
// откуда скачиваем данные
protected $domain = 'http://4lapy.ru';
static $urls = array(
'RU-MOW' => '/pet_stores_amp_services/30/',
'RU-MOS' => '/pet_stores_amp_services/31/',
'RU-YAR' => '/pet_stores_amp_services/34/',
);
// поля объ... | PHP | parser/shop/lapy4.php | CupIvan/validator | bsd-3-clause | 1,968 | 65 | codeparrot/github-code |
b8d98328a099122a6003c4322c75918f2ee1f0ddd4270a7ba3023fe4f4c29c40 | {-# LANGUAGE CPP #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TupleSections ... | Haskell | src/Stack/Build.hs | mietek/stack | bsd-3-clause | 12,655 | 313 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.