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
630e1a110890d6ff9221e29edfb9022e9b55ae6c0db4fc3d0e51dc4d4b7e8618
// Partisci is a command line utility to communicate with partiscid. package main import ( "flag" "fmt" "github.com/briandorsey/partisci/clients/go/client" "github.com/briandorsey/partisci/version" "os" "strconv" "strings" ) // add a flag Usage string documenting commands var server *string = flag.String("serv...
GO
partisci/partisci.go
briandorsey/partisci
bsd-2-clause
1,693
84
codeparrot/github-code
38bc03f0485ed68ee2a1909e3d9ef4a024c22fa361b7dfeda3304b4a3326befa
class Swiftformat < Formula desc "Formatting tool for reformatting Swift code" homepage "https://github.com/nicklockwood/SwiftFormat" url "https://github.com/nicklockwood/SwiftFormat/archive/0.33.1.tar.gz" sha256 "caf7663b26858567680577de3a70249a95d17bf0047cc380654491cd0e8c686d" head "https://github.com/nick...
Ruby
Formula/swiftformat.rb
reelsense/homebrew-core
bsd-2-clause
1,076
35
codeparrot/github-code
1952e9c626bb4c5cc56e0051f038d8e6e7bac57cecc91c92350a908f81326aa2
#!/usr/bin/env bash # Run all # ./test.sh # Run only ArrayTest.sh # ./test.sh ArrayTest # Run ArrayTest.testFirst # ./test.sh ArrayTest.testFirst # shellcheck disable=SC1090 . "${0%/*}/../bootstrap.sh" set +o errtrace import Sheldon.Test.TestFrameworkInAFile as Test # Path to test file. declare testFile declar...
Shell
lib/sheldon/test/test.sh
housni/Sheldon
bsd-2-clause
2,533
100
codeparrot/github-code
d89d902512efce5a79501bdb87d6bf0fdc104bbd1dd8fa778ff6a92883699ff9
class Pypy < Formula desc "Highly performant implementation of Python 2 in Python" homepage "https://pypy.org/" url "https://downloads.python.org/pypy/pypy2.7-v7.3.5-src.tar.bz2" sha256 "c0444fd9873058c1c0d99e13a934e92285cb05992c9968bf523c32bf9bec0a9d" license "MIT" head "https://foss.heptapod.net/pypy/pypy...
Ruby
Formula/pypy.rb
zyedidia/homebrew-core
bsd-2-clause
6,472
181
codeparrot/github-code
7ae9d6aa58b41197156cb64d44984fe6d3385e6ce15ed31ff62911b33a275d3f
/* * Copyright (C) 2011 Igalia S.L. * Copyright (c) 2008, Google Inc. All rights reserved. * Copyright (c) 2012, Intel Corporation * * 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...
C++
platform/graphics/cairo/PlatformContextCairo.cpp
applesrc/WebCore
bsd-2-clause
13,031
346
codeparrot/github-code
950c31386b2b69c637b4e35cc569caf2865f5562ef9f4b1e4cc99610f557cc73
package br.com.brokenbits.mvn.versions.app; import static org.junit.Assert.*; import java.io.PrintWriter; import java.io.StringWriter; import org.junit.Test; public class OptionsTest { @Test public void testHelp() throws Exception { StringWriter sw; String m; sw = new StringWriter(); Options.printHelp...
Java
programs/maven-versions/src/test/java/br/com/brokenbits/mvn/versions/app/OptionsTest.java
fjtc/mvn-versions
bsd-2-clause
6,541
259
codeparrot/github-code
1992f46796a6fcf10f2d784dbcb18276b6eaeb51d7cc402ff1fa959bce0aed1b
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include "phonebook_orig.h" void impl_initialize() { return; } /* original version */ entry *findName(char lastname[], entry *pHead) { while (pHead != NULL) { if (strcasecmp(lastname, pHead->lastName) == 0) retur...
C
phonebook_orig.c
poa1006/phonebook
bsd-2-clause
628
33
codeparrot/github-code
eda2e98d0aac6cbbf0f37cbc9ca4df4ba1b505f42f5f9c4e6a873bee5f0cfce9
#include <windows.h> #include <atlstr.h> #include "common.h" #include "Utility.h" #include "UmdhProcessor.h" UmdhProcessor::UmdhProcessor(PCSTR filename) : output_(INVALID_HANDLE_VALUE) , isTarget64_(IsTarget64()) , ntGlobalFlag_(GetNtGlobalFlag()) { LPSTR buffer[MAX_PATH]; if (!GetCurrentDirectory(_countof(buffer),...
C++
UmdhProcessor.cpp
yoichi/HeapStat
bsd-2-clause
3,988
145
codeparrot/github-code
30f4fe57615d3cfa9da3d3b32d434447761df11d79c13d9dd4188b83b95f11b9
package zygo import ( "errors" "fmt" ) func (env *Glisp) ImportMsgpackMap() { env.AddMacro("msgpack-map", MsgpackMapMacro) env.AddFunction("declare-msgpack-map", DeclareMsgpackMapFunction) } // declare a new record type func MsgpackMapMacro(env *Glisp, name string, args []Sexp) (Sexp, error) { if len(args) < ...
GO
repl/msgpackmap.go
eliothedeman/zygomys
bsd-2-clause
949
44
codeparrot/github-code
7cc743a4e4f6c3e7e1bed5981a329de65a6edb6e7ddec259d2104ed9c09800a1
/* * Copyright (C) 2007, 2008, 2013 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 lis...
C++
Modules/webdatabase/SQLTransactionBackend.cpp
applesrc/WebCore
bsd-2-clause
37,963
860
codeparrot/github-code
cca998448b06c4960d4d8ff53e9e1c7958939a3446ff7be2efb0bdb4b3776113
/* * Copyright (c) 2010-2013 Juli Mallett. 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 cond...
C
common/thread/lock.h
wanproxy/wanproxy
bsd-2-clause
3,332
129
codeparrot/github-code
41117f64a559eea764e098269173905104cda62470fa8f9f30a18b3d633153c4
/******************************************************************************* * Copyright (c) 2012, dhf. * 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 sour...
Java
src/main/java/easyuse/rpc/InvokeRequest.java
hfdiao/eurpc
bsd-2-clause
4,136
124
codeparrot/github-code
43d4ec168c81c907ab16902866738cf89be338e231ca1d674b528f8af96d0538
export CyclotomicExt, cyclotomic_extension ################################################################################ # # Type definition # ################################################################################ mutable struct CyclotomicExt k::AnticNumberField n::Int Kr::Hecke.NfRel{nf_elem} Ka...
Julia
src/RCF/cyclo.jl
thofma/Hecke.jl
bsd-2-clause
14,319
480
codeparrot/github-code
acdcb2c672f0a7f57698eb1fef5394c36a6ffd2cc5bcf4f1775a43a2a54eea0a
package main.browser.database; import java.awt.Dimension; import javax.swing.Box; import javax.swing.BoxLayout; import javax.swing.JPanel; public class PreferenceDisplayPanel extends JPanel { private final DatabaseCard databaseCard; private final BoxLayout layout; final OnsetPreferenceDisplayPanel onsetPreferenc...
Java
Xeno-Canto Bird Browser/src/main/browser/database/PreferenceDisplayPanel.java
Barganax/Xeno-Canto-Bird-Browser
bsd-2-clause
1,106
34
codeparrot/github-code
ae93f360a419ff60229114d00243d1c2a33a8d705c13284027f262e8809890e7
package ec2 import "github.com/timob/javabind" type ServicesEc2ModelKeyPairInfoInterface interface { JavaLangObjectInterface // public void setKeyName(java.lang.String) SetKeyName(a string) // public java.lang.String getKeyName() GetKeyName() string // public com.amazonaws.services.ec2.model.KeyPairInfo wit...
GO
com_amazonaws_services_ec2_model_KeyPairInfo.go
timob/ec2
bsd-2-clause
6,658
229
codeparrot/github-code
e6ddc90e9ecbbcff49eae444c8cb9de23e737f3814a7251c246a01658745e615
# simple class generator helper #Ange Albertini, BSD licence 2011 import struct def make_utf8(s): return "".join(["\x01", struct.pack(">H", len(s)), s]) def make_class(i): return "".join(["\x07", struct.pack(">H", i)]) def make_nat(name, type): return "".join(["\x0C", struct.pack(">H", name)...
Python
src/java/java.py
angea/corkami
bsd-2-clause
1,502
53
codeparrot/github-code
199345af4aa599768a78c0966d83d2c19ab89ffeaf89c52fd7b9c568c7a388ed
// This code contains NVIDIA Confidential Information and is disclosed to you // under a form of NVIDIA software license agreement provided separately to you. // // Notice // NVIDIA Corporation and its licensors retain all intellectual property and // proprietary rights in and to this software and related documen...
C++
extern/PhysX/v3.2.0_win/Source/PhysXExtensions/src/ExtD6JointSolverPrep.cpp
nmovshov/ARSS_win
bsd-2-clause
7,664
228
codeparrot/github-code
9dbaba9dfab88e0b33aaec3df581d06a24580f27c9e86c8d21a14fd3d82fb665
/* Glidix Runtime Copyright (c) 2014-2017, Madd Games. 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 c...
C
libc/src/unistd/pathconf.c
madd-games/glidix
bsd-2-clause
1,881
61
codeparrot/github-code
0f9d4bbc8ca4f7c313aa06c7c3e9dc6c9a37161dd8c1d9c911a93320724d0deb
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or ...
Rust
src/mpmc/channel.rs
crhino/canal
bsd-2-clause
11,225
326
codeparrot/github-code
ecb99efc225c7d2780ca3fe23389cfd4ed7874b937e1596bf8f090c4d29d7146
""" Fetch whole SNMP table ++++++++++++++++++++++ Send a series of SNMP GETNEXT requests using the following options: * with SNMPv1, community 'public' * over IPv4/UDP * to an Agent at demo.snmplabs.com:161 * for some columns of the IF-MIB::ifEntry table * with MIB lookup enabled * stop when response OIDs leave the s...
Python
examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/pull-whole-snmp-table.py
etingof/pysnmp
bsd-2-clause
1,481
49
codeparrot/github-code
788a189537a0f92d82e86e8edc7dcc0d606b3e9f815e9a016ccc5998bc9c4533
#include "Postgres.h" #include <Sql/sch_schema.h> #include <Sql/sch_source.h> using namespace Upp; PostgreSQLTest::PostgreSQLTest() { CtrlLayout(*this, "PostgreSQL Test"); m_refresh <<= THISBACK(ShowTestData); m_array.SetTable(TESTPARTNER); m_array.AddKey(TESTPARTNER_ID); m_array.AddColumn(TESTPART...
C++
uppdev/SQL_PostgreSql/Postgres.cpp
dreamsxin/ultimatepp
bsd-2-clause
1,963
94
codeparrot/github-code
b1611b4339928b7a9b12f3473ea9a0d0cd655ecd15a8ece0d3e6127596d5c5f5
#!/usr/bin/env python # -*- coding: utf-8 -*- import json import sys from utils.benchmark import get_matrix # Generate a json-formatted problem from a MDVRP file. # Those benchmarks use double precision for matrix costs and results # are usually reported with 2 decimal places. As a workaround, we # multiply all costs...
Python
src/mdvrp_to_json.py
VROOM-Project/vroom-scripts
bsd-2-clause
3,918
134
codeparrot/github-code
3d28ab246a8f893219214dce115791c74afab4d36475bbaa9cebfcdf6b03a145
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. #include "CorePrivatePCH.h" #include "PlatformMallocCrash.h" #include "ExceptionHandling.h" #include "WindowsPlatformCrashContext.h" #include "EngineVersion.h" #include "EngineBuildSettings.h" #include "AllowWindowsPlatformTypes.h" #include <strsafe.h> #i...
C++
Engine/Source/Runtime/Core/Private/Windows/WindowsPlatformCrashContext.cpp
PopCap/GameIdea
bsd-2-clause
18,932
520
codeparrot/github-code
78a2f5c05f2016c27f25f0c4dbad35e52e71d6b30df39f57a55de8caf5990b89
// Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org) package org.xbill.DNS; /** * Mail Destination Record - specifies a mail agent which delivers mail * for a domain (obsolete) * * @author Brian Wellington */ public class MDRecord extends SingleNameBase { private static final long serialVersio...
Java
src/main/java/org/xbill/DNS/MDRecord.java
emacadie/dnsgroovy
bsd-2-clause
953
44
codeparrot/github-code
97889116e7af5da30678c0462d1309e24da31b5ede1a463e521d799d14683dbf
/* To find if the parenthesis are balanced */ #include<iostream> #include<stdio.h> bool checkIfBalanced(char* input) { int i,countOpen=0,countClosed=0; int len = strlen(input); for(i=0;i<len;i++) { if(countOpen>len/2) return false; if(input[i] == '(') { countOpen++; ...
C
revision/google_2.c
Prabudh/Miscellaneous
bsd-2-clause
728
40
codeparrot/github-code
0eace6543b7a8b9fdde9eb125aa1ecc4a6c089797548140b4c181884c6ee94d2
from django.db import models from tastypie.resources import ModelResource from tastypie.authentication import ApiKeyAuthentication from tastypie.authorization import DjangoAuthorization from tastypie.throttle import CacheThrottle from tastypie.validation import FormValidation from gateway_backend.tasks import url_sho...
Python
rest_api/api.py
victorpoluceno/shortener_frontend
bsd-2-clause
1,486
50
codeparrot/github-code
9a8bd54781c8364c3a0511134f344cc76b5e606bab2c3c05cc62e247d1b6a29e
goog.provide('ol.interaction.DoubleClickZoom'); goog.require('ol.MapBrowserEvent'); goog.require('ol.MapBrowserEvent.EventType'); goog.require('ol.interaction.Interaction'); /** * @classdesc * Allows the user to zoom by double-clicking on the map. * * @constructor * @extends {ol.interaction.Interaction} * @par...
JavaScript
src/ol/interaction/doubleclickzoominteraction.js
fperucic/ol3
bsd-2-clause
1,801
64
codeparrot/github-code
8d0b85866df2f784cab81aa291957d7734690a30eef776ae6cbddbfaf09b4766
#!/usr/bin/env python import numpy import random import logging import itertools import collections from friendloc.base import gob from friendloc.base.models import Edges, User, Tweets from friendloc.base import gisgraphy, twitter, utils NEBR_KEYS = ['rfriends','just_followers','just_friends','just_mentioned'] @go...
Python
friendloc/explore/sprawl.py
JeffAMcGee/friendloc
bsd-2-clause
13,724
437
codeparrot/github-code
9a41b20db6798769e6c478da21288b71677797d7e138493ba6cc6c7e27e73744
from Cython.Compiler import Options from Cython.Compiler import PyrexTypes from Cython.Compiler.Visitor import CythonTransform from Cython.Compiler.StringEncoding import EncodedString from Cython.Compiler.AutoDocTransforms import ( ExpressionWriter as BaseExpressionWriter, AnnotationWriter as BaseAnnotationWrit...
Python
conf/cyautodoc.py
mpi4py/mpi4py
bsd-2-clause
9,170
256
codeparrot/github-code
3eafbb5389157326e5439b07ae0b254683941f8ad0db0fb30d50384bbea868fb
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 5.1.6 or newer * * @package CodeIgniter * @author EllisLab Dev Team * @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. * @copyright ...
PHP
system/core/Config.php
Rand01ph/mondacm
bsd-2-clause
9,881
342
codeparrot/github-code
af302481696701794ac581d0c3129db8111869fd6798c07758fb21690f9af7ce
# encoding: utf-8 # Copyright (c) 2012, HipByte SPRL and contributors # 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,...
Ruby
lib/motion/project/template/ios-watch-extension-config.rb
incbee/RubyMotion
bsd-2-clause
7,296
214
codeparrot/github-code
cf4d8eb487edba663ade771bfcc67e20c74110c7229742155500c440b36e18d5
package Tapper::PRC; # git description: v4.1.1-11-g75f1086 BEGIN { $Tapper::PRC::AUTHORITY = 'cpan:TAPPER'; } { $Tapper::PRC::VERSION = '4.1.2'; } # ABSTRACT: Tapper - Program run control for test program automation use strict; use warnings; use IO::Socket::INET; use YAML::Syck; use Moose; use Log::Log4perl; use...
Perl
lib/Tapper/PRC.pm
gitpan/Tapper-PRC
bsd-2-clause
1,396
81
codeparrot/github-code
8a10d9c34d1077091b2538aa06076571025051f1ea0d13f68955b0f66b2e1218
/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later vers...
C
_deprecated/modules/standard.lib.msword/wv-1.2.4/unicode.c
Devronium/ConceptApplicationServer
bsd-2-clause
2,112
74
codeparrot/github-code
421034332720bdec28cc178ba9335a7198b1acebe67352789403bfb04e19b37f
/**************************************************************************************/ /* */ /* Visualization Library */ /* http://visualizationlibrary.org ...
C++
src/gui/vlQt5/QtFile.cpp
MicBosi/visualizationlibrary
bsd-2-clause
5,962
149
codeparrot/github-code
1f08426ba105cb343dae784ba3ff499e993a77bd4db1d86becc02aacb8141499
#!/bin/bash -exv ### This script is modified from ### https://github.com/ryuichiueda/ros_setup_scripts_Ubuntu16.04_server ### bind Ubuntu ver. - ROS ver. combination UBUNTU_VER=$(lsb_release -sc) [ "$UBUNTU_VER" = "precise" ] && ROS_VER=hydro ### Ubuntu12.04 = Precise [ "$UBUNTU_VER" = "trusty" ] && ROS_VER=ind...
Shell
ci_ros_env_setup.bash
k7kstn/ros_setup_scripts_Ubuntu_server
bsd-2-clause
3,669
89
codeparrot/github-code
95c0450a07d91529b18d5fe76beba989a00dbf3ad8538320a2b0408afb056f56
<?php class NotesController extends Gam_Controller_Action { public $js = array( 'init' => array( 'dojoRequires.js', 'Notes.js', ) ); public $css = array( 'init' => array( 'init.css', 'toaster.css', ) ); public function indexAction() { } ...
PHP
app/modules/default/controllers/NotesController.php
gonzalo123/gam
bsd-2-clause
5,394
192
codeparrot/github-code
1e29c76a3aa49a931a50148439a96bf140ae9b1c0be2094577eb490bbc990a0e
#include <algorithm> #include <cassert> #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <vector> #include <cstring> using namespace std; long long my_abs(long long x) { return (x>=0 ? x : -x); } long long norm(long long x, long long n) { if (x >= 0) return x%n; ...
C++
tc 160+/StepperMotor.cpp
ibudiselic/contest-problem-solutions
bsd-2-clause
3,567
96
codeparrot/github-code
7a4a129124cc9b7007cf36fb77dc819c74deaf9795810defc5e4947857e7f448
/* pbrt source code is Copyright(c) 1998-2015 Matt Pharr, Greg Humphreys, and Wenzel Jakob. 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: - Redi...
C
src/core/lowdiscrepancy.h
mcanthony/pbrt-v3
bsd-2-clause
9,990
256
codeparrot/github-code
73f9d41fd5bcdcb7867402c5026bc7a10df0b5aca6aa73a922a054eb12b0dae6
package org.tesserae import org.slf4j.LoggerFactory import java.util.concurrent.locks.ReentrantReadWriteLock import org.iq80.leveldb.{CompressionType, Options, DB} import java.io.File import org.fusesource.leveldbjni.JniDBFactory._ import scala.Some /** * Manage any LevelDB database connections. Once established, a ...
Scala
text-analysis/src/main/scala/db/LevelDBManager.scala
eberle1080/tesserae-ng
bsd-2-clause
2,380
76
codeparrot/github-code
47f3f9d6eaaa98e9f99496c8e81d11b30c63391cc4c4d6e3260495866d13f5c0
package scala.slick.ast import scala.slick.util.TupleSupport trait WithOp extends Cloneable { self: NodeGenerator => def mapOp(f: (Node, List[Int]) => Node, positions: List[Int] = Nil): this.type = { val tv = Node(this) val fv = f(tv, positions) if(fv eq tv) this else { val t = clone t...
Scala
src/main/scala/scala/slick/ast/WithOp.scala
boldradius/slick
bsd-2-clause
1,259
45
codeparrot/github-code
eb533ee3ea6652f935b338575b57680903f23e51d4e63407e641f57c66071aed
import * as React from 'react'; import { Animated, Platform, StyleSheet, View, ViewStyle } from 'react-native'; import { useSafeAreaFrame, useSafeAreaInsets, } from 'react-native-safe-area-context'; import type { HeaderOptions, Layout } from '../types'; import getDefaultHeaderHeight from './getDefaultHeaderHeight'...
TypeScript
packages/elements/src/Header/Header.tsx
react-community/react-navigation
bsd-2-clause
8,296
317
codeparrot/github-code
47874060dd3c6846ab4d15caf4f8d77bfc9e1c68fbf427153feda83ef789c5ac
/* -*- tab-width: 4 -*- */ /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http...
C++
tamarin-central/eval/eval-util.cpp
greyhavens/thane
bsd-2-clause
12,226
506
codeparrot/github-code
bf8ba734e3e4f3624a31f41e6830b7f0eb8af37e4137e90413688c07c65071ef
/** @file * Initialize the XPress-RICH3 PCIe Root complex * * Copyright (c) 2011-2015, ARM Ltd. All rights reserved. * Copyright (c) 2017, Linaro, Ltd. All rights reserved. * * This program and the accompanying materials * are licensed and made available under the terms and conditions of the BSD License * ...
C
Platforms/ARM/Juno/Library/JunoPciHostBridgeLib/XPressRich3.c
jlinton/OpenPlatformPkg
bsd-2-clause
6,847
183
codeparrot/github-code
382fec6a13c37cac487bb44e99597fa3bb20e3dd3b6d7f592ddcf0270cee54bb
// // Copyright (C) 2011-14 Mark Wiebe, DyND Developers // BSD 2-Clause License, see LICENSE.txt // #ifndef _DYND__PY_LOWLEVEL_API_HPP_ #define _DYND__PY_LOWLEVEL_API_HPP_ #include <dynd/lowlevel_api.hpp> #include "array_functions.hpp" #include "type_functions.hpp" namespace pydynd { /** * This struct contains a ...
C++
include/py_lowlevel_api.hpp
aterrel/dynd-python
bsd-2-clause
2,934
70
codeparrot/github-code
d4d02cd1750f66da726ad233e4ee0af20dcfbe4854ea4e46b8d13bba3a079c6f
// // PartyVideoDJ - YouTube crossfading app // Copyright (C) 2008-2017 Michael Fink // /// \file VideoSearchView.hpp View to search for videos // #pragma once #include "WebPageWindowEx.hpp" #include <functional> #define WM_INIT_VIEW WM_APP + 1 class VideoSearchViewUIHandler : public IDocHostUIHandlerDispatchImpl { ...
C++
PartyVideoDJ/src/PartyVideoDJ/VideoSearchView.hpp
vividos/OldStuff
bsd-2-clause
1,847
62
codeparrot/github-code
0778ac588fbd3256d0702a59b6833722adaff1f1ffa642e014ea136bec30aabf
/* * errfloat.h * * Created on: 2016年11月15日 * Author: zhuqian * * 这个文件维护一个ErrFloat类,是PBRTV3中的EFloat类的功能,这里把名字改成ErrFloat让类名更加明确意义 * 然后PBRTV3的书籍上的实现与其代码中的实现也有一定的差异 */ #ifndef SRC_CORE_ERRFLOAT_H_ #define SRC_CORE_ERRFLOAT_H_ #include "raiden.h" #include "mmath.h" class EFloat { private: float _value; //浮...
C
src/core/errfloat.h
zq317157782/raiden
bsd-2-clause
3,368
151
codeparrot/github-code
dbcb15f7305c9d8452036e933110c21be27909d1bf2107ad33d46d16c8e75093
#include <stdio.h> #include "graph.h" int main() { typedef Graph<int,int,int> GraphType; GraphType *g = new GraphType(/*estimated # of nodes*/ 2, /*estimated # of edges*/ 1); g -> add_node(); g -> add_node(); g -> add_tweights( 0, /* capacities */ 1, 5 ); g -> add_tweights( 1, /* capacities */ 2, 6 ); g...
C++
maxflow/example.cpp
shelhamer/coop-cut
bsd-2-clause
750
33
codeparrot/github-code
c8d2902c7b9d5afb37ef0d6f7b6aeb9eac710881d4d3c9d3a3a5ae7ba865f11a
using System; using System.Collections.Generic; using DevExpress.Web.ASPxCallback; using EIDSS.RAM.Components; using EIDSS.RAM.Presenters; using bv.common.Configuration; using bv.common.Core; using bv.model.Model.Core; using eidss.ram.web.Components; using eidss.ram.web.Components.Export; namespace eidss.r...
C#
EIDSS v5/eidss.ram.web/Report.aspx.cs
EIDSS/EIDSS-Legacy
bsd-2-clause
5,985
153
codeparrot/github-code
cacb4c3098e867056c870ac15aa0f3d7455a67f0757c169097e488e360748e7b
from .components_generic import System from .ports_library import FluidPort, MechPort, CustomPort class Duct(System): def __init__(self, name='n/a'): super().__init__() self.name = name self.params['fl_in'] = FluidPort() self.outputs['fl_out'] = FluidPort() self.set() ...
Python
unsysap/components_library.py
adriendelsalle/unsysap
bsd-2-clause
4,949
178
codeparrot/github-code
73a52c4a7d36f98cdfed80bfefa3968c33c6b8e3bd829f4cef7d6a9fb0a2c7c9
/* * Scriptable, asynchronous network packet generator/analyzer. * * Copyright (c) 2015, Alessandro Ghedini * 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...
C
src/pkt_chksum.c
ghedo/pktizr
bsd-2-clause
2,430
80
codeparrot/github-code
d4631630d659fe83928d075146b1f857f50f4b2d0c5cf113e3f43981f3ce6aa7
<? function makeSeed () { return hexdec (substr (md5 (microtime()), -8)) & 0x7fffffff; } function zipFile ($itemId, $table, $fileTemp, $fileSize, $fileType) { if (!file_exists ($fileTemp)) throw new Exception (__ ('Missing ZIP file [ [1] ]!', $fileTemp)); $zip = new Archive_Zip ($fileTemp); $cache...
PHP
web/webapp/local/component/bus.generic/_function.php
olimpotec/busaoapp
bsd-2-clause
2,259
87
codeparrot/github-code
5824a00545a2c988ce6f92d14babfd1b259f46119765cb6c2506c277cb3be58b
{% extends "base.html" %} {% load gravatar %} {% block title %}Home{% endblock title %} {% block container %} <div id="one" class="tap"> <div class="box"> <div class="logo"> <img src="{{ STATIC_URL }}img/logo/{{tap1_beer.slug}}.png"> </div> <div class="tank"> <div class="tank-shell">&nbsp;</div>...
HTML
web/webapp/templates/index.html
philips/tapkick
bsd-2-clause
4,364
123
codeparrot/github-code
12acbfe7b1a18e0d6cfd26ed977489c7dc53fe52d65bd50536b4ccbb222bc232
(function(exports) { 'use strict'; /** * Create a new Logger * @constructor * @class The main Log class. Create a new instance of this class to send all logging events. * @param level The cut-off logger level. You can adjust this level in the constructor and leave all other log...
JavaScript
src/uLog.js
chrstfer/uLog.js
bsd-2-clause
4,025
97
codeparrot/github-code
6948de73e23eee09444b1868a2de5cf8080cdd2ddc4b2882c616016b37af71d8
import shell from 'shelljs'; import path from 'path'; import tmp from 'tmp'; import helpers from './helpers'; const { isOSX } = helpers; tmp.setGracefulCleanup(); const PNG_TO_ICNS_BIN_PATH = path.join(__dirname, '../..', 'bin/convertToIcns'); /** * @callback pngToIcnsCallback * @param error * @param {string} icn...
JavaScript
src/helpers/convertToIcns.js
skewedlines/Nativefier
bsd-2-clause
1,538
66
codeparrot/github-code
a1f9d0991ee0462ffea423abc6e372d7f8650d026c26e19fe181d4e04596961c
package com.blazeloader.util.reflect; import java.lang.invoke.MethodHandle; import java.lang.invoke.MethodHandles; import java.lang.reflect.Field; import com.blazeloader.bl.obf.BLOBF; public class VarHandle { protected MethodHandle get; protected MethodHandle set; protected String varName; protected final b...
Java
src/main/com/blazeloader/util/reflect/VarHandle.java
BlazeLoader/BlazeLoader
bsd-2-clause
2,841
109
codeparrot/github-code
7912196e2a2f64fcaa9003f1f85f2d744186edd1092bad896b04e6f643f9397b
package org.scalatra package test import servlet.{ScalatraAsyncSupport, HasMultipartConfig} import javax.servlet.{ServletConfig, DispatcherType, Filter} import javax.servlet.http.{HttpServletResponse, HttpServletRequest, HttpServlet} import java.util.EnumSet import org.eclipse.jetty.servlet._ import scala.deprecated i...
Scala
test/src/main/scala/org/scalatra/test/JettyContainer.scala
etorreborre/scalatra
bsd-2-clause
3,073
82
codeparrot/github-code
53d441a7d0a991732170b7100cd2ecf1a1998b3e5e232de832361aba7632bbd7
import java.io.BufferedOutputStream; import java.io.IOException; import java.io.OutputStream; import java.io.File; import java.io.FileWriter; import java.io.FileOutputStream; public class WriteBitLearn { // 8bit - buffer private static int buffer = 0; // number of bits remaining in buffer private static int N; ...
Java
Java/WriteBitLearn.java
familug/FAMILUG
bsd-2-clause
1,992
136
codeparrot/github-code
d0a9f45f3ddc022c3b9e69f25978b43e349147487320f962d51b662fda9e518a
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class XMLController : MonoBehaviour { public static XMLController Instance = null; public bool isLevelLoaded = false; public bool isLetterLoaded = false; public bool isDressingLoaded = false; L...
C#
finalApprovedVersion/Feed the Monster/Assets/Scripts/Singleton/XMLController.cs
Norad-Eduapp4syria/Norad-Eduapp4syria
bsd-2-clause
3,037
152
codeparrot/github-code
b1e4d880ba7f131d361a6611a1480d314b65d0dac78eb620bce324b5dbf0b18b
// // Copyright (c) 2015 Waystream AB // All rights reserved. // // This software may be modified and distributed under the terms // of the NetBSD license. See the LICENSE file for details. // // state can only be a member of one state group at a time, this is // different from state set where one state can be a memb...
C
fa_state_group.c
wader/libfa
bsd-2-clause
1,503
63
codeparrot/github-code
385b4849d45df5122bb16483d93c65e02ec3ab31dce42657ccdac226b6fcd1cf
# -*- coding: utf-8 -*- """ Creates a very basic one-page html file for reporting a test run. """ from __future__ import absolute_import from behave.formatter.base import Formatter from behave.formatter.css import BasicTheme from behave.compat.collections import Counter import xml.etree.ElementTree as ET import base64...
Python
behave/formatter/html.py
kymbert/behave
bsd-2-clause
15,092
388
codeparrot/github-code
ae8ea825ee291a245b182c98e7b18438e05a30c74e59b946ed1b37e2310a89ab
# -*- coding: utf-8 -*- # Copyright 2016 by Luc Saffre. # License: BSD, see LICENSE for more details. """Defines the :rst:dir:`directory`, :rst:dir:`tickets_table` and :rst:dir:`entry_intro` directives. .. rst:directive:: directory Inserts a table containing three columns 'title', 'author' and 'date', and one row fo...
Python
atelier/sphinxconf/dirtables.py
khchine5/atelier
bsd-2-clause
6,048
211
codeparrot/github-code
e69ce58d6f4c97eee116d3c8c2aa56404e70e7d4dd149ae0bb2eea9daad629e9
# template global functions # make sure not to conflict with built-ins: # http://jinja.pocoo.org/docs/2.9/templates/#list-of-global-functions from flask.helpers import url_for as _url_for from flask_paginate import Pagination def paginate(page, total, per_page, config): record_name = config['MOMO_PAGINATION_RECO...
Python
momo/plugins/flask/functions.py
shichao-an/momo
bsd-2-clause
1,505
56
codeparrot/github-code
273797226e0300d01a05a5e901d76ee61e48dca535d66f0fc5345203e0099ce4
#!/usr/bin/env python """ @package mi.dataset.driver.vel3d_l.wfp @file marine-integrations/mi/dataset/driver/vel3d_l/wfp/vel3d_l_wfp_recovered_driver.py @author Tapana Gupta @brief Driver for the vel3d_l_wfp instrument Release notes: Initial Release """ from mi.core.log import get_logger from mi.dataset.dataset_pa...
Python
mi/dataset/driver/vel3d_l/wfp/vel3d_l_wfp_recovered_driver.py
JeffRoy/mi-dataset
bsd-2-clause
2,021
62
codeparrot/github-code
7f42161cf307dde69a08b24a2ef3135cac40614c4637d925434ff99343ef61eb
/*- * Copyright (c) 2002-2005 Sam Leffler, Errno Consulting * 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 * notic...
C
netbsd/net80211/ieee80211_crypto_tkip.c
vadimsu/netbsd_dpdk_port
bsd-2-clause
27,760
954
codeparrot/github-code
fa8ed92cf236038ff58a0cde052771ae65b96f8ee66bfce552222ff631d13425
/* * 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/vcf/SnpIntersectionTest.java
RealTimeGenomics/rtg-tools
bsd-2-clause
17,461
321
codeparrot/github-code
e61d5d929fdf77f93c3922a642ba8337989b038191c0355b3dbcce9a9958b2a9
package net.cattaka.robotarm01; import java.util.ArrayList; import java.util.HashMap; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Queue; import net.cattaka.positiondetector.OnPositionDetectorListener; import net.cattaka.positiondetector.TagEvent; import net.cattaka.posi...
Java
RobotArm01/src/net/cattaka/robotarm01/AutoDetectionModeActivity.java
cattaka/adkworks
bsd-2-clause
29,179
713
codeparrot/github-code
df4294537c5ea75b3d1942fd169ee278bed49215280fe0bfe37297adb2d5da99
import net.runelite.mapping.Export; import net.runelite.mapping.ObfuscatedGetter; import net.runelite.mapping.ObfuscatedName; import net.runelite.mapping.ObfuscatedSignature; @ObfuscatedName("lg") public class class313 { @ObfuscatedName("w") @ObfuscatedSignature( signature = "Lgt;" ) @Export("classIn...
Java
runescape-client/src/main/java/class313.java
kfricilone/runelite
bsd-2-clause
1,104
42
codeparrot/github-code
51b0fdb50df3efd82265ce331d984f416108e8bff454c36fe918a6901ef34468
/** * WeronicaMC - Plugin for fantasy and creative server. * 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. Red...
Java
src/main/java/eu/matejkormuth/weronicamc/caches/CachePlayerStorage.java
dobrakmato/weronicamc
bsd-2-clause
6,389
166
codeparrot/github-code
79d576630ea6687caa86dddd40da128644d9d52ec78df97b1719f68d23d29fcb
#include <CtrlLib/CtrlLib.h> using namespace Upp; class Testcase2 : public TopWindow{ public: typedef Testcase2 CLASSNAME; Testcase2(){ Sizeable(); MinimizeBox(); MaximizeBox(); BackPaint(); } Image MakeImage2(Size sz) const { ImageBuffer ib(sz.cx, sz.cy); Fill(ib, LtGray(), ib...
C++
uppdev/Tom1_PrintingBug/main.cpp
dreamsxin/ultimatepp
bsd-2-clause
2,802
117
codeparrot/github-code
400bd3f5417875fe08f5360082f0d5e201afb2d53ec94578b7fadbe255289c3e
#include "Builders.h" static String MakeIdent(const char *name) { String out; for(; *name; name++) out << (iscid(*name) ? *name : '_'); return out; } static String MakeSourcePath(const Vector<String>& dirs, String fn, bool raw, bool exporting) { fn = UnixPath(fn); for(int i = 0; i < dirs.GetCount(...
C++
uppsrc/ide/Builders/MakeFile.cpp
dreamsxin/ultimatepp
bsd-2-clause
7,690
253
codeparrot/github-code
5c900ce538cf5817f9046b286651e0ea409c47319e6e29348eb0956bd5ec4c64
<?php // +---------------------------------------------------------------------- // | AiCMS // +---------------------------------------------------------------------- // | Copyright (c) 2017 // +---------------------------------------------------------------------- // | Author: Ai Ye // +-------------------------------...
PHP
addons/maintain/Maintain.php
aizerla5/ai-pro
bsd-2-clause
3,517
129
codeparrot/github-code
a1a16036462a7e73ccd6a85e677544acba3a89e486425910d9d49a24b9967d2f
/* * Copyright (c) 2014, Roberto Capuano <roberto@2think.it> * 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, th...
Java
jink/src/main/java/debug/app/AppInit.java
robertocapuano/jink
bsd-2-clause
18,088
618
codeparrot/github-code
6ed3e05c5fc7c4ee672d20decd2dde74712c0068b60fa293dea5f10a1d509818
class Node < Formula desc "Platform built on V8 to build network applications" homepage "https://nodejs.org/" url "https://nodejs.org/dist/v13.8.0/node-v13.8.0.tar.gz" sha256 "815b5e1b18114f35da89e4d98febeaba97555d51ef593bd5175db2b05f2e8be6" head "https://github.com/nodejs/node.git" bottle do cellar :a...
Ruby
Formula/node.rb
nbari/homebrew-core
bsd-2-clause
4,852
109
codeparrot/github-code
ff1f1c59774754c6c4a440d17b39108e20ed1ad2e9a7973a1d82c7d76ea5d0db
import pickle import requests from hashlib import md5 import os user_home = os.getenv('USERPROFILE') or os.getenv('HOME') session_file_name = os.path.join(user_home, ".uva_session") session_checksum_name = os.path.join(user_home, ".uva_session_checksum") def exist_session_file(): try: open(session_file_name) op...
Python
session_store.py
young-geng/UVaClient
bsd-2-clause
1,089
40
codeparrot/github-code
c5b7bdd5eed96daa8642624a658c6971123e2e74bdaa1bfa1fe79710f6820de2
#!/bin/bash # # Simple application manager used to start and stop the client application # in repsonse to hardware inputs (GPIO 67 and 68) # echo "Starting application manager" # GPIO for activating control client if [ ! -e /sys/class/gpio/gpio67 ] then echo "67" > /sys/class/gpio/export fi echo "in" > /sys/class...
Shell
beaglebone/app_mgr.sh
csete/ic706-remote
bsd-2-clause
1,746
73
codeparrot/github-code
b54195f63e0dc545a604c2740b9034c169f89bcf6b29dc84a538399b4e4c8c4f
# frozen_string_literal: true require "keg_relocate" require "language/python" require "lock_file" require "ostruct" class Keg class AlreadyLinkedError < RuntimeError def initialize(keg) super <<~EOS Cannot link #{keg.name} Another version is already linked: #{keg.linked_keg_record.resolve...
Ruby
Library/Homebrew/keg.rb
JCount/brew
bsd-2-clause
18,954
678
codeparrot/github-code
65c0c4581b542dc047a96d51490d69428d50ffd22a03f6e8c980fcd02a6fd85a
package com.ociweb.pronghorn.components.compression; import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.assertTrue; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.util.concurrent.TimeUnit; // Apache Commons Compression import org.apache.commons.compress.c...
Java
src/test/java/com/ociweb/pronghorn/components/compression/XZCompressionStageTest.java
oci-pronghorn/PronghornCompression
bsd-2-clause
3,517
106
codeparrot/github-code
9f176a6a34541ee7ffe738d2bfc45dbb9b0cb9e592d95e5e32bd8685b29b229e
/* * Copyright (C) 2006 The Guava Authors * * 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 ...
Java
output/java_guava/1.4.19/CollectionFuture.java
antlr/codebuff
bsd-2-clause
3,939
109
codeparrot/github-code
29eb81a6ec7d28401080ac69fe778c13b5218bc9389d513d8854f17c8183a143
// // (c) 2007 - 2011 Joshua R. Rodgers under the terms of the Ms-PL license. using System; using System.Runtime.InteropServices; namespace AW { /// <summary> /// A range of two vectors used by the SDK. /// </summary> [StructLayout(LayoutKind.Sequential)] [Serializable] public sealed...
C#
AW.Core/AW/DataStructures/VectorRange.cs
Bloyteg/AW.SDK.Core
bsd-2-clause
867
35
codeparrot/github-code
1103cbeb1e5c1c65d171b8a45abdbc9617a6b65205b6df2880548cf645be794c
/* * Copyright (c) 2012, United States Government, as represented by the Secretary of Health and Human Services. * 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 so...
Java
Product/Production/Services/PolicyEngineCore/src/main/java/gov/hhs/fha/nhinc/policyengine/adapter/proxy/PolicyEngineProxyWebServiceSecuredImpl.java
alameluchidambaram/CONNECT
bsd-3-clause
4,936
100
codeparrot/github-code
ee3c04aa59100e4ce61375bd38f52e17db125c94cb6c354427719434efe7d6e8
/* * BatteryTech * Copyright (c) 2010 Battery Powered Games LLC. * * This code is a component of BatteryTech and is subject to the 'BatteryTech * End User License Agreement'. Among other important provisions, this * license prohibits the distribution of source code to anyone other than * authorized parti...
C++
src/batterytech/src/batterytech/render/AtlasMappedTexture.cpp
puretekniq/batterytech
bsd-3-clause
2,377
80
codeparrot/github-code
8945780ae56c4c6a9b56fbfa5318c5b15a0cf1ba0756f4a4d5374e8681a90d53
-- | -- Module : Main -- Copyright : [2013] Manuel M T Chakravarty -- License : BSD3 -- -- Maintainer : Manuel M T Chakravarty <chak@cse.unsw.edu.au> -- Portability : haskell2011 module Graphics.Gloss.Game ( -- * Reexport some basic Gloss datatypes module Graphics.Gloss.Data.Color, module Graphics...
Haskell
Graphics/Gloss/Game.hs
mchakravarty/gloss-game
bsd-3-clause
9,801
261
codeparrot/github-code
c8bc15dce1be3cd4c223f0f84b7cc9c76403d9834fb32edcf2bed7a6ecbd03a2
{-# LANGUAGE TemplateHaskell #-} module Language.Haskell.Liquid.TH.Misc ( -- * Convert Data to Exp dataToExpQ' -- * Split AnnoType , splitSigmaRTy , splitForAllRTy , splitPhiRTy , splitCxtArrowRTy , splitCxtArrowRTy_maybe , splitTuplesRTy , splitTupleRTy , splitTupleRTy_maybe ) where im...
Haskell
src/Language/Haskell/Liquid/TH/Misc.hs
spinda/liquidhaskell
bsd-3-clause
2,844
100
codeparrot/github-code
b5c6ec7607b8548751961d3348828760ae927a399adf9ae21a0525cacfb5f80c
""" Oracle database backend for Django. Requires cx_Oracle: http://cx-oracle.sourceforge.net/ """ from __future__ import unicode_literals import decimal import re import platform import sys import warnings def _setup_environment(environ): # Cygwin requires some special voodoo to set the environment variables ...
Python
django/db/backends/oracle/base.py
adambrenecki/django
bsd-3-clause
40,557
983
codeparrot/github-code
3d69c7b625f5d319dfaa66cd390c9032f748766bd764f7109eebf5f38bb63b7a
/* * Copyright (c) Dominick Baier, Brock Allen. All rights reserved. * see license.txt */ using System.ComponentModel.Composition; using System.Linq; using System.Security.Claims; using Thinktecture.IdentityServer.Repositories; namespace Thinktecture.IdentityServer { public class ClaimsTransforme...
C#
IdentityServer/src/Libraries/Thinktecture.IdentityServer.Core/ClaimsTransformer.cs
OBHITA/PROCenter
bsd-3-clause
1,153
36
codeparrot/github-code
7e1e4700a978aea3897e06c373199334986c7bfc3f5698ad4a39485a002bc9ab
/* Derived from Inferno's utils/iyacc/yacc.c http://code.google.com/p/inferno-os/source/browse/utils/iyacc/yacc.c This copyright NOTICE applies to all files in this directory and subdirectories, unless another copyright notice appears in a given file or subdirectory. If you take substantial code from this software to...
GO
src/cmd/goyacc/goyacc.go
ssrl/go
bsd-3-clause
64,580
3,312
codeparrot/github-code
abe6b2c2c04beb8dc1a73700f282bcc1ddfd02da4e697f48946e1a3098ebddaa
# -*- coding: utf-8 -*- from django import template from django.db import models from django.utils.html import escape register = template.Library() class TreeTrunkNode(template.Node): """ Render the first few levels of a topic tree as an unordered HTML list. """ def __init__(self, model_name, levels=...
Python
gravoicy/libs/category/templatetags/__init__.py
indexofire/gravoicy
bsd-3-clause
2,558
75
codeparrot/github-code
83f7f22d395c0251a20efd864ed730891ccc5156c0fe3d71138c2e30427c3250
package types import ( "database/sql/driver" "encoding/json" "errors" ) // JSON is an alias for json.RawMessage, which is // a []byte underneath. // JSON implements Marshal and Unmarshal. type JSON json.RawMessage // String output your JSON. func (j JSON) String() string { return string(j) } // Unmarshal your J...
GO
types/json.go
vattle/sqlboiler
bsd-3-clause
1,505
78
codeparrot/github-code
24b19d1fbe4d2e026966ffe39d714051523acffac12d030d2b3fbeeb82f2dfa4
----------------------------------------------------------------------------- -- | -- Module : Data.SBV.Provers.Prover -- Copyright : (c) Levent Erkok -- License : BSD3 -- Maintainer : erkokl@gmail.com -- Stability : experimental -- -- Provable abstraction and the connection to SMT solvers ----------...
Haskell
sbv/Data/SBV/Provers/Prover.hs
TomMD/cryptol
bsd-3-clause
26,293
460
codeparrot/github-code
b13b004a64df3a70286720691bdc528add49dcb4f1cdeb6c4dffbc2c28d63a8e
""" The deletions subsystem managers bulk deletes as well as cascades. It attempts to optimize around various patterns while using a standard approach to do so. For example, let's say you want to delete an organization: >>> from sentry import deletions >>> task = deletions.get(model=Organization) >>> work = True >>> ...
Python
src/sentry/deletions/__init__.py
gencer/sentry
bsd-3-clause
4,094
79
codeparrot/github-code
8750a2d1f365d4620def755291878020070f99f9f2ceb1eadecf4fdc977f8ff4
# -*- coding: utf-8 -*- # # Copyright (C) 2016 Andi Albrecht, albrecht.andi@gmail.com # # This module is part of python-sqlparse and is released under # the BSD License: https://opensource.org/licenses/BSD-3-Clause from sqlparse import sql from sqlparse import tokens as T from sqlparse.utils import recurse, imt T_NUM...
Python
flask/lib/python2.7/site-packages/sqlparse/engine/grouping.py
zorroz/microblog
bsd-3-clause
11,428
392
codeparrot/github-code
91179e0b2b6d51bc56f0dc350b6c734c2cbb69caa02dd7291cc20ca91fda10a1
// Copyright 2014-2015 Apptimist, 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 accumulator provides an integer wrapper with a pointer receiver method to sum results of Read, ReadFrom, Write and WriteTo signatures. Usage: ...
GO
debug/accumulator/accumulator.go
apptimistco/asn
bsd-3-clause
1,073
52
codeparrot/github-code
eb573c68fdef05cefd9789d8c09eb516487830b228f68d811c7d9ca02a4d13d6
<?php /** * Created by JetBrains PhpStorm. * User: Nandini.B * Date: 7/7/13 * Time: 7:45 PM * To change this template use File | Settings | File Templates. */ namespace AlbumTest\Model; use Album\Model\AlbumTable; use Album\Model\Album; use Zend\Db\ResultSet\ResultSet; use PHPUnit_Framework_TestCase; class Albu...
PHP
module/Album/test/AlbumTest/Model/AlbumTableTest.php
Nandugbs/MyRepo
bsd-3-clause
4,522
130
codeparrot/github-code
86020fde01c48e76a151670dd1aa8d35a9d44ad66227857fc91321d3a07e0a4e
/*- * 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 following disclaimer. * 2. Redistributions in bi...
C
sys/boot/common/interp_parse.c
dcui/FreeBSD-9.3_kernel
bsd-3-clause
4,664
205
codeparrot/github-code
ee4371ccb0e94e43c5f6b2fa74309ffd66c70eaf0eeb57ff56979483456a154c
using System; namespace Toggl.Shared.Extensions { public static class BeginningOfWeekExtensions { public static string ToLocalizedString(this BeginningOfWeek beginningOfWeek) { switch (beginningOfWeek) { case BeginningOfWeek.Monday: re...
C#
Toggl.Shared/Extensions/BeginningOfWeekExtensions.cs
toggl/mobileapp
bsd-3-clause
1,062
37
codeparrot/github-code
ee786601496588c46c3b8eb5b21fda9026ef5862361e95f12bcb3bb761becb55
from zeit.cms.i18n import MessageFactory as _ import copy import grokcore.component as grok import lxml.objectify import zeit.cms.content.property import zeit.cms.interfaces import zeit.cms.syndication.feed import zeit.cms.syndication.interfaces import zeit.content.cp.blocks.block import zeit.content.cp.interfaces impo...
Python
src/zeit/content/cp/blocks/teaser.py
ZeitOnline/zeit.content.cp
bsd-3-clause
7,905
220
codeparrot/github-code
d174f1515c1209b7fae64b8879594dbd7b4fe713edfee70b6b9a2ed969843221
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html lang="en-US"> <head> <title>Creating a Client Program (The Java&trade; Tutorials &gt; RMI) </title> <meta name="description" content="This RMI Java tutorial describes the Java RMI system. It walks through a complete client/ser...
HTML
recodoc2/testdata/java70tutorial/rmi/client.html
bartdag/recodoc2
bsd-3-clause
23,895
680
codeparrot/github-code
5f618df59cce9d56bac61b5e47eaa56e0f2dbb889c9b71d72d35a3ddc9af450e
/* * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ package com...
Java
drawee/src/test/java/com/facebook/drawee/drawable/ForwardingDrawableTest.java
desmond1121/fresco
bsd-3-clause
3,578
118
codeparrot/github-code
47ee8ff739f4def53fe1ad25f5b0df430bdd007ff61e03ac9776a8c8a92fe58f
using System; using System.Collections.Generic; using System.IO; using System.Management.Automation; using System.Reflection; using Microsoft.Win32; namespace p0wnedReverse { /// <summary> /// Helper functions for setting $profile. /// </summary> public class HostUtilities { /// <summary> ...
C#
p0wnedReverse/p0wnedReverseHostUtilities.cs
Cn33liz/p0wnedReverse
bsd-3-clause
9,515
215
codeparrot/github-code
e7d96475d4d0b10da3b6e6a1babf3193bf0e098cc351965bfd681c64b13410b2
/* * CrissCross * A multi-purpose cross-platform library. * * A product of Uplink Laboratories. * * (c) 2006-2022 Steven Noonan. * Licensed under the New BSD License. * */ #ifndef __included_cc_avltree_h #error "This file shouldn't be compiled directly." #endif namespace CrissCross { namespace Dat...
C++
source/crisscross/avltree.cpp
tycho/crisscross
bsd-3-clause
13,954
633
codeparrot/github-code