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
aea1c08d468b19bf092ec31b443729c1084c50a9d933e3980c53002a5ffc6c54
// This file is part of the dune-gdt project: // https://github.com/dune-community/dune-gdt // Copyright 2010-2018 dune-gdt developers and contributors. All rights reserved. // License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) // or GPL-2.0+ (http://opensource.org/lice...
C++
dune/gdt/local/integrands/combined.hh
pymor/dune-gdt
bsd-2-clause
17,507
441
codeparrot/github-code
fc160a15072db825366e5c99a143c549f1fa7935c9d5c61447b4f5dec2cca225
import sys import glob from PIL import Image import cv2 import numpy as np import cmdline as cmd gap = 0 output = 'tiles.png' def set_gap(param): global gap gap = int(param) def set_output(param): global output output = param def main(): cmd.flag('gap', True, set_gap) cmd.flag('out', True...
Python
tools/combine_tiles.py
amirgeva/py2d
bsd-2-clause
1,330
59
codeparrot/github-code
2e69472896572e0d57349e787f0bd3a98a8851cc9415ba6f4123db00a86d872e
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. #pragma once #include "AbilityTask.h" #include "Abilities/GameplayAbilityTypes.h" #include "AbilitySystemComponent.h" #include "AbilityTask_Repeat.generated.h" DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FRepeatedActionDelegate, int32, ActionNumber); /** *...
C
Engine/Source/Runtime/GameplayAbilities/Public/Abilities/Tasks/AbilityTask_Repeat.h
PopCap/GameIdea
bsd-2-clause
1,367
43
codeparrot/github-code
fe53280b264336f41157f90393a15f3bcd1e980fac1681770fab30b984d6faf0
package org.antlr.jetbrains.st4plugin.psi; import com.intellij.extapi.psi.PsiFileBase; import com.intellij.openapi.fileTypes.FileType; import com.intellij.psi.FileViewProvider; import org.antlr.jetbrains.st4plugin.Icons; import org.antlr.jetbrains.st4plugin.STGroupFileType; import org.antlr.jetbrains.st4plugin.STGroup...
Java
src/main/java/org/antlr/jetbrains/st4plugin/psi/STGroupFile.java
antlr/jetbrains-plugin-st4
bsd-2-clause
929
37
codeparrot/github-code
f100b3b83d31240a0709a71129d5107237fedc029f953fa2b327383a858e3f4a
package com.sanluan.cms.views.directive.cms; // Generated 2015-5-10 17:54:56 by SourceMaker import java.io.IOException; import java.util.HashMap; import java.util.List; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import com.sa...
Java
src/com/sanluan/cms/views/directive/cms/CmsCategoryModelDirective.java
858888/PublicCMS
bsd-2-clause
1,376
46
codeparrot/github-code
d5ac658ddeddcf89cd85c4d017cddfc35e779fb713c240f4dea56da4c8bbf430
require "language/haskell" class Ghc < Formula include Language::Haskell::Cabal desc "Glorious Glasgow Haskell Compilation System" homepage "https://haskell.org/ghc/" url "https://downloads.haskell.org/~ghc/8.2.1/ghc-8.2.1-src.tar.xz" sha256 "cfc2d496708dacea3ea7dde4c6a4b921b97a7f550ee2acea44cfa535840593f0"...
Ruby
Formula/ghc.rb
bfontaine/homebrew-core
bsd-2-clause
6,502
169
codeparrot/github-code
d67d9b225145350d7117b518fe15892d7f1bd70cc6aed44bd2026111714b94c2
//Apache2, 2014-present, WinterDev using System; using System.Collections.Generic; using System.Text; using PixelFarm.Drawing; using LayoutFarm.RenderBoxes; namespace LayoutFarm.TextEditing { class TextMarkerLayer { public TextMarkerLayer(List<VisualMarkerSelectionRange> visualMarkers) { ...
C#
src/PixelFarm/PaintLab.RenderTree.TextSurface/1.3_Layer/TextFlowLayer.cs
LayoutFarm/PixelFarm
bsd-2-clause
29,106
828
codeparrot/github-code
3dad2d58c0e2fa88af74e67ac93195dcfafc3299189a4e85e975bef99c3924d6
/* * Copyright (c) 2015-2016, Statens vegvesen * 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 ...
Java
impl/src/main/java/no/vegvesen/nvdb/sosi/reader/SosiRefIslandImpl.java
nvdb-vegdata/sosi-reader
bsd-2-clause
3,250
100
codeparrot/github-code
71b27bfa7a55b06520119f0e8d5c20e2cfb31af91e9072fbf59cacd30d650394
package cz.metacentrum.perun.core.entry; import cz.metacentrum.perun.core.api.*; import java.util.Iterator; import java.util.List; import java.util.Map; import cz.metacentrum.perun.core.api.exceptions.*; import cz.metacentrum.perun.core.api.exceptions.IllegalArgumentException; import cz.metacentrum.perun.core.api.ex...
Java
perun-core/src/main/java/cz/metacentrum/perun/core/entry/GroupsManagerEntry.java
licehammer/perun
bsd-2-clause
48,101
1,096
codeparrot/github-code
d99674843c6d10a7254b3f1dc3d0f8e79731e36188aa954d644a04ef278fc83f
package edu.berkeley.path.beats.simulator.output; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStreamWriter; import java.io.Writer; import java.util.List; import java.util.Properties; import edu.berkeley.path.beats.simulator.BeatsException; import edu.berkeley.path.beats.simulator...
Java
src/main/java/edu/berkeley/path/beats/simulator/output/OutputWriterTSV.java
relteq/beats
bsd-2-clause
2,368
88
codeparrot/github-code
ad86306cc8151702f7d872d2c0f69fab14e8c1fca440a2cdbb48c9641a8388ba
<?php namespace LaravelCloudSearch\Eloquent; use LaravelCloudSearch\Query\Builder; use LaravelCloudSearch\CloudSearcher; trait Searchable { /** * Document score hit score. * * @var null|int */ public $documentScore = null; /** * Boot the trait. * * @return void */...
PHP
src/Eloquent/Searchable.php
Torann/laravel-cloudsearch
bsd-2-clause
2,142
107
codeparrot/github-code
66ce384853174f4b312f62b86927d03f492be5c03ab331d2a252595d15a14800
/* * Copyright 2013 the original author or 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 applica...
Java
gradle/gradle-2.1/src/model-core/org/gradle/model/internal/core/rule/describe/MethodModelRuleDescriptor.java
tkmnet/RCRS-ADF
bsd-2-clause
2,818
89
codeparrot/github-code
d0bea271984731117b42cefe9fa1e56ce3d426993500bb2cec06cc5dd12d2deb
// This file was procedurally generated from the following sources: // - src/dstr-binding/ary-ptrn-rest-init-ary.case // - src/dstr-binding/default/cls-decl-gen-meth-dflt.template /*--- description: Reset element (nested array pattern) does not support initializer (class expression method (default parameters)) esid: se...
JavaScript
Jint.Tests.Test262/test/language/statements/class/dstr-gen-meth-dflt-ary-ptrn-rest-init-ary.js
sebastienros/jint
bsd-2-clause
2,812
83
codeparrot/github-code
de5f53e91f3858139f1ba234ad9a668d1ac84adeb56820655090f3d1135d7172
#pragma once #include "Engine/Core/Math/Matrix4.h" class GameObject; class Transform { public: Transform() = default; const Vector3& GetLocalPosition() const; const Quat& GetLocalRotation() const; const Vector3& GetLocalScale() const; void SetLocalPosition(const Vector3& position); void SetLocalRotation(cons...
C
DESIRE-Engine/src/Engine/Core/Math/Transform.h
nyaki-HUN/DESIRE
bsd-2-clause
1,516
65
codeparrot/github-code
b73fae840dffcd09ab050d4dd8e3b12be541bf202af125f1be5801faf664498a
package com.yubico.yubikitold.transport.nfc; import android.app.Activity; import android.content.Intent; import android.nfc.Tag; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import nordpol.android.OnDiscoveredTagListener; import nordpol.android.TagDispatcher; import nordpol.android.TagDis...
Java
app/src/main/java/com/yubico/yubikitold/transport/nfc/NordpolNfcDispatcher.java
Yubico/yubioath-android
bsd-2-clause
1,984
66
codeparrot/github-code
300ea4e49aca64140a06dd31bee537aa71c449b9051b82599b52fb2c1a4e5401
#ifndef SDLUT_MIXER_HH #define SDLUT_MIXER_HH #include "Audio/SDLSound.hh" #include "Audio/SDLMusic.hh" #include <memory> #include <map> namespace SDLut { namespace audio { /** * \class MixerIf * * \ingroup Audio * * \brief This class may interface different Mixer Implementations * * This class if an interfa...
C++
SDLut/include/Audio/SDLMixer.hh
asmodehn/sdlut
bsd-2-clause
2,862
128
codeparrot/github-code
a165931a7fccf16243bc3549296d40cbfbd2660f03059f9bfa71a09219e115f9
// This file was procedurally generated from the following sources: // - src/dstr-binding/obj-ptrn-prop-ary-init.case // - src/dstr-binding/default/for-const.template /*--- description: Object binding pattern with "nested" array binding pattern using initializer (for statement) esid: sec-for-statement-runtime-semantics...
JavaScript
Jint.Tests.Test262/test/language/statements/for/dstr-const-obj-ptrn-prop-ary-init.js
sebastienros/jint
bsd-2-clause
2,050
65
codeparrot/github-code
0296e129ef9dbb3f97011f58f353060ea3de20dfbe6c577381694ac54d7626cd
#ifndef _ADDLISTITEMMODULE_ #define _ADDLISTITEMMODULE_ #include "../../framework/ModuleInterface.hpp" #include "../../framework/ModuleBase.hpp" namespace uipf{ // Create an empty list class AddListItemModule : public QObject, ModuleBase { Q_OBJECT Q_PLUGIN_METADATA(IID "org.tu-berlin.uipf.ModuleInterface" ) Q_INTE...
C++
code/modules/data/AddListItemModule.hpp
TU-Berlin-CVRS/uipf
bsd-2-clause
758
32
codeparrot/github-code
ea63560fc42f2048894a1285b841c17f1c3a5b4c3fe1e6657f24d61609b405bf
var ElementType = require("domelementtype"); var re_whitespace = /\s+/g; var NodePrototype = require("./lib/node"); var ElementPrototype = require("./lib/element"); function DomHandler(callback, options, elementCB){ if(typeof callback === "object"){ elementCB = options; options = callback; callback = null; } ...
JavaScript
index.js
BuildingJarl/domhandler
bsd-2-clause
4,663
193
codeparrot/github-code
2df8114751dc0310bcceaf274da367f24ed2d19a385eb9deaa14efe01a2af92a
#include "ShapesGame2.h" #include "../Utils/StringUtility.h" #include "../Utils/Data/DataProvider.h" #include "../WatchmanScene/WatchmanScene.h" #include "../AppMacros.h" using namespace std; template<> const bool kukua::Game<ShapesGame2>::USE_PHYSICS = false; // Enable/disable physics template<> co...
C++
Sima/Kukua/Classes/ShapesGame2/ShapesGame2.cpp
Norad-Eduapp4syria/Norad-Eduapp4syria
bsd-2-clause
18,118
475
codeparrot/github-code
644331299cdfa143752ec83846128a4e7be155d0cad91e68d81a481f21b99592
import os.path from enum import Enum class NamedEnum(Enum): def __init__(self, name): self.display_name = name @classmethod def get_names(cls): return [name for name, _ in cls.__members__.items()] class Role(NamedEnum): solver = ('Solver') tester = ('Tester') class Status(NamedE...
Python
battle/battle/api/__init__.py
jsannemo/programming-battle
bsd-2-clause
1,247
53
codeparrot/github-code
ed6405281a916e920f06ecf39cb32665a079315b7ea52ecc88b7f40e3e2d6f95
/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2019-2021 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided th...
C++
modules/plottinggl/src/datavisualizer/pcpdataframevisualizer.cpp
inviwo/inviwo
bsd-2-clause
4,715
114
codeparrot/github-code
7d357c37f868d14ccd56db9185a5db6372f53c52562e37c567c11affc3caf7bf
package hasher import ( "crypto/sha256" "fmt" "github.com/robryk/zproxy/proxy" "github.com/robryk/zproxy/split" "io" "net/http" ) // TODO: find better names for stuff // TODO: cache responses type Hasher interface { GetChunked(req *Request, cancel <-chan bool) (*Chunked, error) } type Request struct { HttpR...
GO
hasher/hasher.go
robryk/zproxy
bsd-2-clause
2,014
110
codeparrot/github-code
ef260455a06db3d122ed802bd166f32c73a9c89740e9b4c461c9c4f9348a27df
from PySide import QtGui from PySide.QtCore import Signal from elo_button_row import EloButtonRow from picture_area import PictureArea class CentralWidget(QtGui.QWidget): left_chosen = Signal() right_chosen = Signal() left_deleted = Signal() right_deleted = Signal() def __init__(self, left_image...
Python
elopic/ui/central_widget.py
mmanhertz/elopic
bsd-2-clause
1,328
43
codeparrot/github-code
a1c55b82f1e6b7c95bb65b137a37a87f9cd0c24eb4b6b2ab48ef730bff3da3b5
export extend, NfToNfMor, automorphisms, automorphism_group struct NfMorSet{T} field::T end function show(io::IO, S::NfMorSet{T}) where {T} print(io, "Set of automorphisms of ", S.field) end parent(f::NfToNfMor) = NfMorSet(domain(f)) function parent(f::NumFieldMor) @assert domain(f) == codomain(f) return Nf...
Julia
src/Map/NumberField.jl
thofma/Hecke.jl
bsd-2-clause
15,668
603
codeparrot/github-code
86c8c82d108cc9831cc5b1c3ba51458c0728514f2c0440bb4757728669cca74a
/** * @file * * @date Nov 13, 2020 * @author Anton Bondarev */ #include <wchar.h> #include <inttypes.h> #include <string.h> wchar_t* wmemchr(const wchar_t *s, wchar_t c, size_t n) { /* For performance reasons unfold the loop four times. */ while (n >= 4) { if (s[0] == c) { return (wchar_t*) s; } if (...
C
src/compat/libc/wchar/wmemchr.c
embox/embox
bsd-2-clause
720
51
codeparrot/github-code
c446b3f068936c1edd06d978439695cd3a1948f78a6811c4a5a44a840a162af4
#include "c_types.h" #include "user_interface.h" #include "osapi.h" #include "espconn.h" #include "mem.h" #include "network.h" #include "queue.h" static os_timer_t ipTimer; struct espconn *conn; bool connected = 0; /** * Convert 32 bit int to array of 4 8 bit ints * * @param ip * @param out */ ...
C
display/network.c
makerspacelt/light-pong
bsd-2-clause
5,191
192
codeparrot/github-code
8e9a674cc555f9d198a74ad8bafefe1a68572ea568a27887bf2cbfb9c0af271f
/* * Copyright (c) 2017, Kronos <https://github.com/KronosDesign> * 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...
Java
runelite-client/src/main/java/net/runelite/client/plugins/devtools/DevToolsPlugin.java
Sethtroll/runelite
bsd-2-clause
14,608
465
codeparrot/github-code
ca1c44ee13ccc22b3277d6d62d6cf94dca4ed4d682e380a3bb744169b291347b
/* Copyright (c) 2014, Michael Ferrara 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 followi...
C#
CalculateRocketNozzleNormalShock/Program.cs
ferram4/RocketNozzleNormalShock
bsd-2-clause
2,931
83
codeparrot/github-code
6aaa7f435d9df5d49ebea802ea10988d891d7ed6b8eb33df63ae6eeabaef452c
# # Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 The SCons Foundation # # 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...
Python
scons-local-1.1.0/SCons/Warnings.py
frew/simpleproto
bsd-2-clause
5,241
188
codeparrot/github-code
16ea3e9d115aa1be18e479395fe6fab4832da097b54b545ed124c053820d1a97
/* * Copyright 2018 Katherine Flavel * * See LICENCE for the full copyright terms. */ #include <assert.h> #include <string.h> #include <stdint.h> #include <stdlib.h> #include <stdio.h> #include <ctype.h> #include <re/re.h> #include <print/esc.h> #include "../class.h" #include "../ast.h" #include "../print.h" s...
C
src/libre/print/abnf.c
katef/libfsm
bsd-2-clause
5,340
268
codeparrot/github-code
0f028aea5808a5ce3b747a778267e2647e18b2ab57046908f0a80eac67889415
<?php namespace common\models; use Yii; /** * This is the model class for table "country". * * @property integer $id * @property string $abbr * @property string $name * @property string $long_name * @property string $phone_code * @property integer $is_active */ class Country extends \yii\db\ActiveRecord { ...
PHP
_protected/common/models/Country.php
siou78/paredose
bsd-3-clause
1,195
54
codeparrot/github-code
a0a18977da00c0a711aab6de8f72b98fe9fa1b84e695795070867e5d93733105
/* PCDM Login Manager: * Written by Ken Moore (ken@pcbsd.org) 2012/2013 * Copyright(c) 2013 by the PC-BSD Project * Available under the 3-clause BSD license */ #ifndef PCDMGUI_H #define PCDMGUI_H #include <QWidget> #include <QMessageBox> #include <QFile> #include <QGraphicsScene> #include <QMainWindow> #include <Q...
C
src-qt5/PCDM/src/pcdm-gui.h
trueos/pcdm
bsd-3-clause
2,548
112
codeparrot/github-code
2305ffb93503b256ebc40b526a99d60a5bb9a516330d251bf4d2e7874a5f0afe
/** * @file regress.c * Set of functions for linear regression. */ #include <stdlib.h> #include <math.h> #include "regress.h" #include "matrix.h" /** * Equivalent of the Matlab "regress" function. Solves for the fitting * parameters using matrix algebra. Each column of the X matrix is a set of data * to used t...
C
regress.c
mirrorscotty/regression
bsd-3-clause
3,471
125
codeparrot/github-code
257a1fc78853b3816935668c600ba08c6fd948fbd70d5aa49edd2624b1c1e9f2
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- # Copyright (c) 2019 The ungoogled-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. """Run sanity checking algorithms over ungoogled-chromium's patch files It checks the following...
Python
devutils/check_patch_files.py
Eloston/ungoogled-chromium
bsd-3-clause
4,385
141
codeparrot/github-code
b11f9df608e08489ed5230a6d1d27667e0909ccaba768d31aaca2c75f12c485a
/*============================================================================= MYPROJECT: A software package for whatever. Copyright (c) University College London (UCL). All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FO...
C
Code/GuiApps/QMLVTKDemo/Model/mpCubeModel.h
MattClarkson/CMakeCatchTemplate
bsd-3-clause
1,517
70
codeparrot/github-code
83b70d3f882e7f56d36de4208a68a82ed9f9b71de805fce812251960673cd4a7
C LAST UPDATE 17/02/97 C+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ C SUBROUTINE sector IMPLICIT NONE C C PURPOSE: Perform partial/whole radial scan on an image. C INCLUDE 'COMMON.FOR' C C Calls 11: IMDISP , ASKYES , WFRAME , RFRAME , IMSIZE , OUTFIL C GET...
FORTRAN
bsl/sector.f
scattering-central/CCP13
bsd-3-clause
8,696
246
codeparrot/github-code
234535cf4732ee709f3e8a416784c1ce639d60b1869128601f39638a5c94884e
# -*- coding: utf-8 -*- # Copyright 2012 Google Inc. All Rights Reserved. # # 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 require...
Python
third_party/catapult/third_party/gsutil/gslib/commands/perfdiag.py
endlessm/chromium-browser
bsd-3-clause
94,422
2,330
codeparrot/github-code
bf23c81fa390f0fd822ce1d2b92543455bbda858d0da05a613e258e5ef80ecc1
{% include 'common/head.html' %} <body> {% include 'common/top.html' %} <div id="Wrapper"> <div id="Main"> <div id="Sidebar"> </div> <div id="Rightbar"> {% include 'rightbar/user.html' %} </div> <div id="Content"> {% if message %} ...
HTML
src/template/desktop/backstage_new_minisite.html
cwyark/v2ex
bsd-3-clause
3,122
84
codeparrot/github-code
e99dd6982a89e40ef781d8fa8527ad31c11db77eeb3568d94b4db2537ac5d7d7
/* * Copyright (c) 2012, chlaws <iamwljiang at gmail.com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * ...
C++
HttpProcesser.cpp
iamwljiang/zjol-guahao
bsd-3-clause
60,708
2,123
codeparrot/github-code
5032bb27cb1f409e18e8d2afb662d1b25de3219d775a02723dcc226c661c48db
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8" /> <title>statsmodels.robust.norms.RobustNorm.__call__ &#8212; statsmodels v0.10.1 documentation</title> <link rel="stylesheet" href="../_static/nature.css" type="text/css" /> <link rel="stylesheet" href="../_s...
HTML
v0.10.1/generated/statsmodels.robust.norms.RobustNorm.__call__.html
statsmodels/statsmodels.github.io
bsd-3-clause
7,326
166
codeparrot/github-code
70402dfed744bba34be4013b8f1bca3a3e4e7928cd075635e397ad1a0ca0de24
/**************************************************************************** ** SCALASCA http://www.scalasca.org/ ** ***************************************************************************** ** Copyright (c) 1998-2013 ** ** Fors...
C
salsa/MessageChecker.h
pyrovski/scalasca
bsd-3-clause
2,289
51
codeparrot/github-code
c6b0175761325a35015b5d7f6f483e27f6afa98e428f7e72a62f58a7e3f8e609
// 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/sync_file_system/sync_file_system_service.h" #include <string> #include "base/bind.h" #include "base/logging.h" #include "b...
C++
chrome/browser/sync_file_system/sync_file_system_service.cc
timopulkkinen/BubbleFish
bsd-3-clause
17,724
515
codeparrot/github-code
bb4b85f1741eaba133281d529097fc060a9bd8cde288c4247d2fb8c2784c768c
<?php namespace app\models; /** * This is the ActiveQuery class for [[Student]]. * * @see Student */ class StudentsQuery extends \yii\db\ActiveQuery { /*public function active() { return $this->andWhere('[[status]]=1'); }*/ /** * @inheritdoc * @return Student[]|array */ ...
PHP
models/StudentsQuery.php
charokie/shag-test
bsd-3-clause
550
34
codeparrot/github-code
73f692433236c9e9f5653f139b4b9ac57cb01a88f15c36f435a1ae2981cb62d2
/*========================================================================= Program: Visualization Toolkit Module: vtkHAVSVolumeMapper.h Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distribute...
C
Rendering/Volume/vtkHAVSVolumeMapper.h
SimVascular/VTK
bsd-3-clause
9,615
257
codeparrot/github-code
2124e75b37a6a87d343d4f0df71ee187a2da1b6ccdcf129facb75f39769c867b
package de.ust.skill.ir; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; /** * A SKilL comment providing abstraction and formatting of documentation provided by the specification. * * @author Timm Felden */ public class Comment { /** * Null object of comments, i.e. not a...
Java
src/main/java/de/ust/skill/ir/Comment.java
skill-lang/skill
bsd-3-clause
4,106
159
codeparrot/github-code
a2493ca6bd1771ce19b0f8a0618e50c44194d0b203b43a69448cb69f3ce6a5d6
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="apple-mobile-web-app-capable" content="yes" /> <title>Welcome to my world!</title> <!-- load Dojo and the default dojo theme, claro --> <link rel="stylesheet" href="styles.css" /> <link rel="stylesheet" href="../dojo_common/dijit/themes/claro/claro.css"/...
HTML
topseung_front/www/index.html
yujinrobot/yujin_fronts
bsd-3-clause
3,811
92
codeparrot/github-code
2373c2d65adb82727936e25d799aa00a37caa00cc82ffb4a1a2a0b61549d98fd
<!DOCTYPE html> <html class="yui3-js-enabled wf-omnespro-n2-active wf-omnespro-n3-active wf-proximanova-n1-active wf-proximanova-n4-active wf-proximanova-n7-active wf-active" lang="en"><head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <meta charset="utf-8"> <meta name="viewport" content="wi...
HTML
design/pure-workflow.html
cedadev/cloudhands-ops
bsd-3-clause
10,120
264
codeparrot/github-code
0c8a0cbd876efc69ff0141ee84a337c2f004b6baa477cd8b584ed99558bcbad9
<?php namespace app\modules\user\controllers; use app\functions\Functions; use app\models\Praise; use app\models\Videos; use Yii; use yii\web\Controller; class AjaxController extends Controller { /** * 盖章,点赞 * @return string */ public function actionSignSeal(){ if ($user = Yii::$app->g...
PHP
modules/user/controllers/AjaxController.php
krissss/monbile
bsd-3-clause
1,539
51
codeparrot/github-code
713a1f59a107dffd0b2d789609f3ea43681288f7688345c83f82dc8a0327fbfe
// Copyright NVIDIA Corporation 2010-2011 // 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 follow...
C
dp/sg/ui/SceneRenderer.h
swq0553/pipeline
bsd-3-clause
12,781
233
codeparrot/github-code
a0a7f7ad562a2bb574c07528a86c783737eb4e4bbe209622f53ad5041d440787
from __future__ import division, print_function from collections import deque from datetime import datetime import sys from time import time def progress_bar_str(percentage, bar_length=20, bar_marker='=', show_bar=True): r""" Returns an `str` of the specified progress percentage. The percentage is represe...
Python
menpo/visualize/textutils.py
mozata/menpo
bsd-3-clause
7,250
211
codeparrot/github-code
3deafe49fa67017ace48c1d08d3b86abbe3a98e3f6146011b9d769a5f4b51dd7
/* ########################################################################### # # Filename: vrsclient.go # # Author: Siva Teja Areti # Created: June 6, 2017 # # Description: libnetwork VRS client API # #####################################################################...
GO
client/vrsclient.go
vareti/nuage-libnetwork
bsd-3-clause
16,550
497
codeparrot/github-code
8e347b28cf5a6d2e6023f36072325fe6de7ed988e67684527a1b25103a90dd8d
/* +---------------------------------------------------------------------------+ | The Mobile Robot Programming Toolkit (MRPT) | | | | http://www.mrpt.org/ ...
C
libs/opengl/include/mrpt/opengl/CGeneralizedEllipsoidTemplate.h
bigjun/mrpt
bsd-3-clause
12,494
279
codeparrot/github-code
37b5a2f4953acdcdb66401e66e83b49c23fffb8450a426fe1205af11f521d06e
/* * Copyright (C) 2010 ZXing 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 agr...
Java
app/src/main/java/com/google/zxing/client/android/camera/PreviewCallback.java
prt2121/NYC-Glass-Challenge-Oct2014
bsd-3-clause
1,955
59
codeparrot/github-code
0a91a62cf90daea049e05df96f26ddd03311215ae890b853a784d1b0f5ffa56c
// Copyright (c) 2014 by Christoph Hack <christoph@tux21b.org> // All rights reserved. Distributed under the Simplified BSD License. package text import ( "sort" "strings" ) type Hyphenator struct { entries hEntries } func NewHyphenator(patterns []string) *Hyphenator { h := &Hyphenator{} for i := range pattern...
GO
imp/text/hyphen.go
tux21b/imp
bsd-3-clause
34,274
534
codeparrot/github-code
b7183ffcd4bf986698c9d9f3239b1e1478e2c8d464d8c8595b59398d94b80360
<?php defined('SYSPATH') or die('No direct script access.'); /** * @author Maciej Kowalczyk - Tepfer <maciekk@bsdterminal.pl> * @copyright BSDterminal 2014 * @version 1.0 */ class Controller_Search extends Controller_Welcome { public function before() { parent::before (); $this->template->_controll...
PHP
application/classes/Controller/Search.php
yorg76/test
bsd-3-clause
5,180
133
codeparrot/github-code
f8d6648c43d675ffbcc4113df39f7c4ba3193276ef7fce18ea7ffc202c3a448e
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; namespace MvcAttributeWebsite { public class StartupCspConfigUpgradeInsecureRequests { public StartupCspConfigUpgradeInsecureRequests(IConfi...
C#
test/websites/MvcAttributeWebsite/StartupCspConfigUpgradeInsecureRequests.cs
NWebsec/NWebsec
bsd-3-clause
1,288
40
codeparrot/github-code
f9be5001e8dc45b06ff4418ae7c4827d3a783abb719895cdeed58eaf41de924a
// JavaScript Document $(function(){ var day = $("#day").val(); var priceid = $("#priceid").val(); var attrid = $("#attrid").val(); var sorttype = $("#sorttype").val(); var pinyin = $("#pinyin").val(); var destid = $("#destid").val(); var keyword = $("#keyword").val(); var startcity =$("#star...
JavaScript
templets/smore/js/line.search.js
lz1988/stourwebcms
bsd-3-clause
2,057
90
codeparrot/github-code
639d1976e029f0b12d0201db937abf2b7e14c74e00ad4a80c2231907f9f7eb0a
import json import string import random import requests import logging import local_config from couchdb import Server, http from couchdb.http import PreconditionFailed, ResourceConflict logger = logging.getLogger(__name__) local_config.configure_logger(logger) def create_db(database): server = Server('http://...
Python
cozyfuse/dbutils.py
cozy-labs/cozy-fuse
bsd-3-clause
10,338
366
codeparrot/github-code
344602c3c91d2083179c53ea5920fdf3edc4aac0782061aed62932cba5a1d86b
var confit = require('confit'); var caller = require('caller'); var path = require('path'); var handlers = require('shortstop-handlers'); function createHandlers(options) { var result; result = { file: handlers.file(options.basedir), path: handlers.path(options.basedir), base64:...
JavaScript
lib/config.js
fex-team/yog
bsd-3-clause
1,667
70
codeparrot/github-code
767a6e4f7ee0e8b415933f7152ee75441b938b3d891711cf2f821a0f3addeedd
/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors ...
C
PWGLF/STRANGENESS/Cascades/Run2/AliAnalysisTaskStrangenessVsMultiplicityRun2.h
AudreyFrancisco/AliPhysics
bsd-3-clause
21,730
495
codeparrot/github-code
00e48a644f1f0805bdebd2893b19ba44c49712b0bdb29fcf37fdb4ce60a063b5
// 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 tableacl import ( "encoding/json" "errors" "fmt" "io/ioutil" "sort" "strings" "sync" log "github.com/golang/glog" "github.com/golang/protobuf/pr...
GO
go/vt/tableacl/tableacl.go
yaoshengzhe/vitess
bsd-3-clause
7,009
276
codeparrot/github-code
fe38a239e69db674d7a8c344e4ba2dcbe8ff029138be8af0c83ef6ce132fe0d7
<?php namespace backend\models; use Yii; /** * This is the model class for table "developer". * * @property integer $developer_id * @property string $name */ class Developer extends \yii\db\ActiveRecord { /** * @inheritdoc */ public static function tableName() { return 'developer';...
PHP
backend/models/Developer.php
sksergey/metragYiiBackend
bsd-3-clause
727
45
codeparrot/github-code
7c79c9e47ebf5cd0cd759c98183482ad49ffe8fda74c4db7362494e08d32f230
{-# LANGUAGE FlexibleContexts, FlexibleInstances, MultiParamTypeClasses #-} module Database.Dedalus.PrettyPrint where -- This code is initially based on -- https://github.com/pchiusano/datalog-refactoring/blob/master/src/PrettyPrint.hs import qualified Text.PrettyPrint as PP import Text.PrettyPrint (($$),(<>),(<+>))...
Haskell
src/Database/Dedalus/PrettyPrint.hs
alanz/hdedalus
bsd-3-clause
1,773
64
codeparrot/github-code
664df0285113815447d7c94e954eed69672d6757d2512492545cd324ad04bb33
/* jshint node: true */ 'use strict'; var AWS = require('aws-sdk'); var mime = require('mime'); var fs = require('fs'); var async = require('async'); var _ = require('lodash'); var TagChecker = require('./tag_checker'); var HipchatNotify = require('./hipchat_notify'); var S3_ID = process.env.AWS_S3_ID; var S3_SECRE...
JavaScript
deploy/lib/s3_deploy.js
ouija-io/ouija
bsd-3-clause
3,649
171
codeparrot/github-code
d1d96eca8842829134043f0cc05b5a281d8e3d55d8dd830558e186f23cf5cf93
// Copyright (c) 2009 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. #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_ #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_ #include "chrome/browser/autocomple...
C
chrome/browser/autocomplete/autocomplete_edit.h
rwatson/chromium-capsicum
bsd-3-clause
19,695
450
codeparrot/github-code
06f242672545cee8e486898f43a2a4df613b9151f8948682cf51cd4a696067d4
/* * Copyright (c) 2015-present, Horcrux. * All rights reserved. * * This source code is licensed under the MIT-style license found in the * LICENSE file in the root directory of this source tree. */ package abi43_0_0.host.exp.exponent.modules.api.components.svg; import android.annotation.SuppressLint; import...
Java
android/versioned-abis/expoview-abi43_0_0/src/main/java/abi43_0_0/host/exp/exponent/modules/api/components/svg/CircleView.java
exponentjs/exponent
bsd-3-clause
1,533
62
codeparrot/github-code
896b1d1ca829b299978e9c2574f51f61da43b5229fb3a1fcbd13122ab31b74ba
<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title></title> <style> body { background-color: #ffffff; margin: 0; padding: 0; overflow: hidden; } </style> <script src="common/three.js"></script> <script> (f...
HTML
LearningThreejs/materials_light.html
shallaa/three.js.examples
bsd-3-clause
3,721
110
codeparrot/github-code
f5c7adf0f9835dff8203d56b87ad980008dbd9b4914f53c54ecf002060419c9f
from BaseObjects import BaseEDAPage from EDA import eda_lex_locators from cumulusci.robotframework.pageobjects import BasePage from cumulusci.robotframework.pageobjects import pageobject import time @pageobject("System", "HEDA_Settings") class SystemSettingsPage(BaseEDAPage, BasePage): def _is_current_page(self)...
Python
robot/EDA/resources/SystemSettingsPageObject.py
SalesforceFoundation/HEDAP
bsd-3-clause
5,956
105
codeparrot/github-code
aef3a3f0d9077ea7f21804130ebf647005d1e7f6dfa54244ec1c1421e764169f
from . import NetworkObject import z3 class AclFirewall (NetworkObject): def _init(self, node, network, context): super(AclFirewall, self).init_fail(node) self.fw = node.z3Node self.ctx = context self.constraints = list () self.acls = list () network.SaneSend (self) ...
Python
mcnet/components/aclfirewall.py
apanda/modeling
bsd-3-clause
2,245
59
codeparrot/github-code
78074cb608adf94baad6b44abf6f985e1e5f8f3c221ce78c6fce63e0c90c724b
// 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 "chrome/browser/extensions/permissions_based_management_policy_provider.h" #include <memory> #include <string> #include <vector> #include "base...
C++
chrome/browser/extensions/permissions_based_management_policy_provider_unittest.cc
danakj/chromium
bsd-3-clause
6,255
171
codeparrot/github-code
023b00f0b877df3fee71820655b87c0d7fee48142b4bb8f4e4b556fb8099c048
//////////////////////////////////////////////////////////////////////////////////// /// /// \file joystick.cpp /// \brief This file contains a test/example program for a simple console based /// joystick controller. /// /// <br>Author(s): Daniel Barber /// <br>Created: 3 February 2010 /// <br>Copy...
C++
src/programs/console/console_joystick.cpp
jmesmon/jaus--
bsd-3-clause
7,089
174
codeparrot/github-code
5a139eff2b70db2661bcdede262c767b14525f4c614d9e8d9f357940273167d9
/* Copyright (c) 2012-2016 Boundless and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Distribution License v1.0 * which accompanies this distribution, and is available at * https://www.eclipse.org/org/documents/edl-v10.html * * Cont...
Java
src/core/src/main/java/org/locationtech/geogig/porcelain/CleanOp.java
mtCarto/geogig
bsd-3-clause
2,889
87
codeparrot/github-code
6e509ee061f93bd57b6ca5727a1afcf17511a264efdc2548e4b9d68200856736
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.1" language="de_DE"> <context> <name>AboutWindow</name> <message> <source>About Elektra Editor</source> <translation type="vanished">Über Elektra Editor</translation> </message> <message> <location filename="../A...
TypeScript
src/tools/qt-gui/qml/i18n/lang_de_DE.ts
e1528532/libelektra
bsd-3-clause
60,500
1,494
codeparrot/github-code
e18b4d7ce31373334b3a914f245f454211c34c8a99e58d6f01885a9f2b6a8f97
/* * * Copyright 2016, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of condi...
C
src/core/iomgr/sockaddr_utils.c
VcamX/grpc
bsd-3-clause
7,836
228
codeparrot/github-code
5d644428e8f1001a201921e364c5d49355372efd4d48b40e6e7a239a033e5e10
/** \file Cylinder.cpp \brief Implements the cylinder class. **/ #include "StdAfx.h" #include "IMovableItemCallback.h" #include "ISimGUICallback.h" #include "AnimatBase.h" #include "Node.h" #include "IPhysicsMovableItem.h" #include "IPhysicsBody.h" #include "BoundingBox.h" #include "MovableItem.h" #inc...
C++
Libraries/AnimatSim/Cylinder.cpp
NeuroRoboticTech/AnimatLabPublicSource
bsd-3-clause
3,677
174
codeparrot/github-code
67cff20762e7dda9723eef1e316434eb4861c345ed98dd595aec4e155644a122
/* Copyright (c) 2004-2005, StŽphane Sudre 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 follow...
C
Packaginator/Simulator/PBSimulatorController.h
ShonFrazier/Iceberg
bsd-3-clause
3,252
84
codeparrot/github-code
88847d88206cea807ff2c1c2b14558159f871624d15e1e67175d85fad6032ded
#include<iostream> #include<math.h> using namespace std; typedef struct In { int x,y; }stick; stick stack[10010]; bool b[10010]; bool cmp(const stick &a,const stick &b) { if(a.x!=b.x)return a.x<b.x; else return a.y<b.y; } int main() { int i,j,n,tmp,pp,qq; while(1) { cin>>pp>>qq; if(pp==-1&...
C++
emperorlu/1548/3198524_AC_0MS_360K.cc
lulyon/poj-archive
bsd-3-clause
881
60
codeparrot/github-code
a164f85318f23ba88b2247039bd2dd6d51b2c292dcf76a69df7e05a419dc3706
#pragma once /* * Copyright (c) 2009-2020, ChienWei Hung <winestwinest@gmail.com> * CWUtils is published under the BSD-3-Clause license. * * CWUtils is a set of standalone APIs for developers to speed up their * programming. It should be very easy to port them to other projects or * learn how to implement things...
C
C++/WindowsKm/CWPlatform.h
winest/CWUtils
bsd-3-clause
975
51
codeparrot/github-code
120344d8d48a3c2cff361fe39232e536a328907298246c1e17396cbce520ccc5
import is from 'utils/is' import { TreeNodeScope } from 'commons/Tree' import { FileState } from 'commons/File' import { toJS, createTransformer, extendObservable, observable, reaction, computed, action, } from 'mobx' const { state, TreeNode } = TreeNodeScope() const nodeSorter = (a, b) => { // node.is...
JavaScript
app/components/FileTree/state.js
Coding/WebIDE-Frontend
bsd-3-clause
2,929
122
codeparrot/github-code
4fb8176405e4fa0ee1eb25d9de1ed308b673bed538d376bf75c7e01eec4bcba5
#include <pcl/point_types.h> #include <pcl/io/pcd_io.h> #include <pcl/visualization/cloud_viewer.h> #include <pcl/filters/passthrough.h> #include <pcl/ModelCoefficients.h> #include <pcl/sample_consensus/method_types.h> #include <pcl/sample_consensus/model_types.h> #include <pcl/segmentation/sac_segmentation.h> #include...
C++
tms_legacy/tms_ss_ods/ods_cylinder/src/ods_cylinder.cpp
irvs/ros_tms
bsd-3-clause
13,354
473
codeparrot/github-code
51dca18d14e4c94b4fd5b715c257e14063ca3d0c0321b17a0eafa4877b91b94b
#include <DataFrame/DataFrame.h> #include <cassert> #include <iostream> #include <string> using namespace hmdf; typedef StdDataFrame<unsigned long> MyDataFrame; static void test_thread_safety() { constexpr size_t thread_count = 4; std::cout << "Testing Thread safety ..." << std::endl; SpinLock ...
C++
test/dataframe_thread_safety.cc
hosseinmoein/DataFrame
bsd-3-clause
1,526
61
codeparrot/github-code
d67cf05dd05b2a082e9f8b35eba036e22f3e25c95b996dfaeb93bf9508d92cb3
/** * \file examples/application/canOut.cpp * \brief Example illustrating usage of CAN driver for transmission * * This file is part of avr-halib. See COPYING for copyright details. */ #include "canConfig.h" #include <avr/sleep.h> /**Declares, that we want to use the overflow interrupt of the CAN timer**/ UseIn...
C++
examples/src/not_ported_yet/canOut.cpp
steup/AVR-HaLib
bsd-3-clause
2,422
109
codeparrot/github-code
00469ff13a29e645ba642e25482e89128cf46abd285dc36f97330210cc4ec202
<?php /** * @copyright Copyright &copy; Arno Slatius 2015 * @package yii2-nestable * @version 1.0 */ namespace common\enpii\components\widget\nestable; use slatiusa\nestable\Nestable; use yii\helpers\Url; use yii\helpers\Html; use yii\helpers\ArrayHelper; use Yii; /** * Create nestable lists using drag & drop ...
PHP
common/enpii/components/widget/nestable/NpNestable.php
lacphan/np_16019_bic_ffyw
bsd-3-clause
4,393
135
codeparrot/github-code
55a97b8f89274b206b2e819f07f9c666844f098dc25f67fe7585eeab559d2055
#! /usr/bin/env python3 import json import logging import sys import zmq def msg_loop(sock): while True: try: message = sock.recv_json() except Exception as e: logging.error(e) continue logging.info(str(message)) def start_sub(addr): ctx = zmq.Context() sock = ctx.socket(zmq.SUB) logging.info("c...
Python
tools/zmqdump.py
BeeeOn/server
bsd-3-clause
1,577
87
codeparrot/github-code
20ae72720702e23d33161cc5fb05cb79d61807e1a2211bce1099527b6dd7362f
// Copyright 2014 Globo.com Player authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. /** * The Core is responsible to manage Containers, the mediator, MediaControl * and the player state. */ import { isNumber, Fullscreen, ...
JavaScript
src/components/core/core.js
wxmfront/clappr
bsd-3-clause
8,468
285
codeparrot/github-code
850a7aa47730729a244d17428de1921369206a209e6f3909038bd102a9876c7b
package leo.datastructures import leo.datastructures.term._ import Term.{intToBoundVar, intsToBoundVar, mkApp, mkAtom, mkTermAbs, mkTermApp, Λ} import Term.{@@@, Symbol, ∙, @@@@} import Type.{superKind, typeKind, typeVarToType} import leo.datastructures.impl.Signature import scala.language.implicitConversions /** Th...
Scala
src/main/scala/leo/datastructures/HOLSignature.scala
cbenzmueller/LeoPARD
bsd-3-clause
17,577
450
codeparrot/github-code
81816a22008c339c3a183cefd51837e088efc83e67b1aedd982887ca5cd2b041
require 'ostruct' class Video < ActiveRecord::Base belongs_to :viewable, :polymorphic => true before_save :update_metadata validates :url, :presence => true validates_each :url do |model, attr, value| if value.present? begin oembed_response = model.oembed_cached() unless oembed_resp...
Ruby
app/models/video.rb
jeremyhaile/spree_embedded_videos
bsd-3-clause
2,051
74
codeparrot/github-code
a96410e1a4713c637b20f6973a351f852f436955e8167a929793fb1cb9760335
<?php namespace backend\models; use Yii; /** * This is the model class for table "object_reference". * * @property string $object * @property integer $object_id * @property string $type * @property integer $reference_id * * @property Reference $reference */ class ObjectReference extends \yii\db\ActiveRecord...
PHP
backend/models/ObjectReference.php
hscstudio/osyawwal2
bsd-3-clause
1,310
61
codeparrot/github-code
510e39fa02b42eea45d810a9eb29e884890529b4e7bc80cd45da69f31ce1c380
from django.contrib.sites.models import Site from django.conf import settings from django.db.models import get_model from django.utils.translation import ugettext_lazy as _ from oscar.apps.shipping.methods import Free from oscar.apps.order.exceptions import UnableToPlaceOrder from oscar.core.loading import get_class ...
Python
oscar/apps/order/utils.py
michaelBenin/django-oscar
bsd-3-clause
10,663
247
codeparrot/github-code
d038a1b455e0e82be0cbda935f2e8e9bb6d505620ea391a8a38ae1cb5f62d879
package org.ister.nerlo; import java.util.ArrayList; import java.util.concurrent.*; import org.apache.log4j.Logger; import org.ister.ej.ConcurrencyUtil; import org.ister.ej.Main; /** * A bundle subsumes a number of computational threads * called Fibers. * * Bundles may be subsumed into higher structures such *...
Java
java/src/org/ister/nerlo/Bundle.java
nerlo/nerlo
bsd-3-clause
2,378
100
codeparrot/github-code
cbb6869c6118113c6d3729a8b07aeed29764c2169bafcdb1fe471b07afe57dd1
#!/usr/bin/env python3 # # $Id$ import os import re import sys import subprocess import argparse import readchar import textwrap import json import logging from utils import mixrange LOGGER = logging.getLogger("read-a-script") LOGGER.addHandler(logging.StreamHandler()) VOICES = { # Spring and Port Wine "raf...
Python
read-a-script.py
npadgen/read-a-script
bsd-3-clause
13,084
404
codeparrot/github-code
2cd4ceac8b7248e92e6a003489d0815db2cf03864dae049bb7cae7b907e53198
/* * Copyright (c) 2004-2021, University of Oslo * 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 o...
Java
core/src/test/java/org/hisp/dhis/android/testapp/maintenance/ForeignKeyViolationPublicAccessShould.java
dhis2/dhis2-android-sdk
bsd-3-clause
2,348
59
codeparrot/github-code
4e9ba3b0fef8611276907f16390aa99914d01bc6456d3d54999d18f51c0d6e71
# -*-coding:Utf-8 -* # Copyright (c) 2010-2017 LE GOFF Vincent # 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 # ...
Python
src/abstraits/obase/__init__.py
vlegoff/tsunami
bsd-3-clause
9,880
261
codeparrot/github-code
b1347f5b3026e2c1d1d61d6cf128223623e0f707f2bd29db17b74cf90ab486fb
$(document).ready(function () { /** * Rest Service groups datagrid is being filled * @since 28/07/2016 */ $('#tt_grid_dynamic').datagrid({ onDblClickRow : function (index, row) { }, url : 'https://proxy.uretimosb.com/SlimProxyBoot.php', queryParams: { pk: $('#pk').val(), ...
JavaScript
public/jsinline/admin_servicegroups.js
corner82/uretimosb
bsd-3-clause
24,121
546
codeparrot/github-code
e7eed32109f54ee5f72624f0722349e9f5fb4b2e3a925ca927853871c5ca5983
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using Kooboo.Web.Url; namespace Kooboo.CMS.Content.Models.Paths { public class TextContentPath : IPath { public TextContentPath(TextContent content) { var repository = new Reposit...
C#
Kooboo.CMS/Kooboo.CMS.Content/Kooboo.CMS.Content/Models/Paths/TextContentPath.cs
Epitomy/CMS
bsd-3-clause
3,227
91
codeparrot/github-code
301951ca9288ca90dcf2e09511b9d559dfa0bb032555e673bbde19947f8b3fbd
module Language.ContextSemantics.CallByNeedLambda where import Language.ContextSemantics.Expressions import Language.ContextSemantics.Utilities () import Language.ContextSemantics.Output import Control.Arrow (second) import Data.List (nub) import Data.List.Zipper import Data.Maybe import Data.Nthable import Prelude...
Haskell
Language/ContextSemantics/CallByNeedLambda.hs
batterseapower/context-semantics
bsd-3-clause
8,483
216
codeparrot/github-code
90f3c4def19a5a85394e1f3d4b1275ff6791ece9bb4131f471c46686d4684cae
module Chp82 where {-- Derived instances --} {-- We explained that a typeclass is a sort of an interface that defines some behavior. A type can be made an instance of a typeclass if it supports that behavior. --} {-- We also mentioned that they're often confused with classes in languages like Java, Python, C++ a...
Haskell
src/Chp82.hs
jamesyang124/haskell-playground
bsd-3-clause
7,414
208
codeparrot/github-code
a8be6cddecd5ff906c57f66c5f9121ff27ade8d8e32f1072c1543c9cf44ed967
def extractTranslatinotakuCf(item): ''' Parser for 'translatinotaku.cf' ''' vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title']) if not (chp or vol) or "preview" in item['title'].lower(): return None tagmap = [ ('Hokage Ryos Path', 'Hokage: Ryo\'s Path', ...
Python
WebMirror/management/rss_parser_funcs/feed_parse_extractTranslatinotakuCf.py
fake-name/ReadableWebProxy
bsd-3-clause
2,625
47
codeparrot/github-code
f07cb4a62a0f2a726fe463bde38bab7590801ad8cf4e54dbd8ddea61aeb69f98
/* * Copyright (C) 2009 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
C++
Source/web/WebFormElement.cpp
ondra-novak/blink
bsd-3-clause
4,185
126
codeparrot/github-code