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
2cc5e37219e578bec8cef857ddea6ec7617de514c31e6b1f01aa023a861af6a4
// Copyright GoFrame Author(https://goframe.org). All Rights Reserved. // // This Source Code Form is subject to the terms of the MIT License. // If a copy of the MIT was not distributed with this file, // You can obtain one at https://github.com/gogf/gf. // Package ghtml provides useful API for HTML content handling....
GO
encoding/ghtml/ghtml.go
EngineQ/gf
mpl-2.0
2,912
104
codeparrot/github-code
70099062c6419c4abbe1ef8ea64fc12f074e3e3b271de66dfb98ba0e24d59e0c
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ package mapper import ( "github.com/ernestio/aws-definition-mapper/definition" "github.com/ernestio/aws-definit...
GO
mapper/rdsinstance.go
ernestio/aws-definition-mapper
mpl-2.0
5,395
139
codeparrot/github-code
a804cd9c3b263df5cd3a49dde2b65d078b30cd88778baf778636335d66aee33e
package org.appverse.builder.web.rest; import ch.qos.logback.classic.Level; import ch.qos.logback.classic.LoggerContext; import com.codahale.metrics.annotation.Timed; import org.appverse.builder.web.rest.dto.LoggerDTO; import org.slf4j.LoggerFactory; import org.springframework.http.HttpStatus; import org.springframewo...
Java
src/main/java/org/appverse/builder/web/rest/LogsResource.java
Appverse/appverse-builder-api
mpl-2.0
1,367
43
codeparrot/github-code
34ff6a69eee445f4f1b553152876dbe8162ab82aecc60b205c827061ee8c76d2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html data-context="Build Apps" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/> <title>Update Target - Legato Docs</title> <meta co...
HTML
18_07/getStartedUpdate.html
legatoproject/legato-docs
mpl-2.0
10,411
158
codeparrot/github-code
2a4303eb8359e9ad9c60106b4558f276799ed67fed1e27b5ed336da35d46e5b5
<?php class sanpham { function select_caocap() { $arr = array(); $query = "SELECT * FROM sanpham ORDER BY gia DESC LIMIT 3"; $result = mysql_query($query) or die(mysql_error()); while($row = mysql_fetch_assoc($result)) { $arr[] = $row; } return $arr; } function select_capnhat() { $arr = array...
PHP
webbanhang_full_final/webbanhang/view/model.php
hedspi7b/project
mpl-2.0
1,120
57
codeparrot/github-code
a44c4586ec4f49104520530c4fa90f2f2e31c5b7dab03f04dded5f304c842a17
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0...
C++
layout/style/IncrementalClearCOMRuleArray.cpp
Yukarumya/Yukarum-Redfoxes
mpl-2.0
2,371
82
codeparrot/github-code
9c1866f9d897ef74edb17cb72e1982f4bb7592a5a1065d7f58a354dde8df8601
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /* atom list for CSS pseudo-classe...
C
layout/style/nsCSSPseudoClassList.h
Yukarumya/Yukarum-Redfoxes
mpl-2.0
12,736
251
codeparrot/github-code
ecb1fa9ccab0ad2c234f413cc19e50e534b52b05332afa36736e3308e365ccff
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * The Original Code is OpenMCDF - Compound Document Format library. * * The Initial Developer of the Original...
C#
src/Sector.cs
CodeCavePro/OpenMCDF
mpl-2.0
3,658
151
codeparrot/github-code
34ceb19ce5fb5cbf3b11e2062e46a06e8d7a0b835ae99c961c8e7d2a7eead109
package database import ( "context" "errors" "fmt" "strconv" "time" "github.com/hashicorp/errwrap" "github.com/hashicorp/go-multierror" v4 "github.com/hashicorp/vault/sdk/database/dbplugin" v5 "github.com/hashicorp/vault/sdk/database/dbplugin/v5" "github.com/hashicorp/vault/sdk/framework" "github.com/hashi...
GO
builtin/logical/database/rotation.go
hartsock/vault
mpl-2.0
17,743
555
codeparrot/github-code
0c3a830fb74014ec3cddbea13f30d5545f47aeba1424eb1fa19f78e3067d7cb5
import csv from datetime import datetime from django.conf import settings from django.core.management import BaseCommand from bustimes.utils import download_if_changed from ...models import Licence, Registration, Variation def parse_date(date_string): if date_string: return datetime.strptime(date_string, ...
Python
vosa/management/commands/import_vosa.py
jclgoodwin/bustimes.org.uk
mpl-2.0
11,021
259
codeparrot/github-code
d3eb4321061d63488c40641c62f3ccfa4e42376e872648fa1b1c0950704531f8
;#-------------------------------------------------ß ;| x64lab MPL 2.0 License | ;| Copyright (c) 2009-2012, Marc Rainer Kranz. | ;| All rights reserved. | ;ö-------------------------------------------------ä ;#------------------------------...
Assembly
develop/ide/ext.asm
8l/x64lab
mpl-2.0
14,391
917
codeparrot/github-code
8602213a56ab873eec2ccd5493b1c4fa4ba9cccac702a70e1d980c7d7bdb1b7e
package io.github.georgiosgoniotakis.bluetoothwrapper.example; import android.app.Activity; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothDevice; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.support.v7.app.A...
Java
example/src/main/java/io/github/georgiosgoniotakis/bluetoothwrapper/example/MainActivity.java
GeorgiosGoniotakis/BluetoothWrapper
mpl-2.0
8,288
237
codeparrot/github-code
73d260f91d524614d72ec106b13146c0b4073ed078ce8784259cb2fd3b09dbd7
; This file is part of LBAcache, the 386/XMS DOS disk cache by ; Eric Auer (eric@coli.uni-sb.de), 2001-2005, 2008 ; LBAcache 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 L...
Assembly
freedos/source/lbacache/setup.asm
joyent/sdcboot
mpl-2.0
22,737
772
codeparrot/github-code
f124b84ef03d3ec7078871d00b64fd350b1252d1654120935992ef1d962e21a9
/* * Copyright (c) 2014 Universal Technical Resource Services, Inc. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ namespace ATMLCommonLibrary.controls ...
C#
ATMLLibraries/ATMLCommonLibrary/controls/trigger/TriggerControl.Designer.cs
UtrsSoftware/ATMLWorkBench
mpl-2.0
9,806
194
codeparrot/github-code
7e4696d3f94cfb02002efc12a53b9586ac7cd3265e2c7a7a185bf05850be2285
namespace uSync.Core { public static partial class uSyncConstants { // this is our format 'version' - // it only changes when the format of the .config files change // we use it to prompt people to do an uptodate export. public const string FormatVersion = "9.0.4"; ///...
C#
uSync.Core/uSyncConstants.cs
KevinJump/uSync
mpl-2.0
3,322
90
codeparrot/github-code
9fb4f296a7a29b79a15e1626eeaaee771cca2778d13adc66cc35e6a035994ec4
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ package info.zamojski.soft.towercollector.collector.converters; import android.os.Build; import android.telephony...
Java
app/src/main/java/info/zamojski/soft/towercollector/collector/converters/CellIdentityConverter.java
zamojski/TowerCollector
mpl-2.0
7,256
134
codeparrot/github-code
643f4146202da2d5bdf257263a0a518a5ebf1eda7844d491aa105252bc9a98f2
/* * * ***** 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://www.mozilla.org/MP...
C
security/nss/lib/freebl/dsa.c
tmhorne/celtx
mpl-2.0
13,814
451
codeparrot/github-code
e451183cafea8eac24fee1d2227bbc5f97bd378911161c12e796a8a69327c380
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0...
C++
dom/presentation/PresentationDeviceManager.cpp
Yukarumya/Yukarum-Redfoxes
mpl-2.0
8,985
337
codeparrot/github-code
befc04f605a1fc4b1a817b7acc9781cad737cfa47134e5ba79cea01d0b40a57f
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /* eslint-env browser */ "use strict"; const { TAKE_SCREENSHOT_START, TAKE_SCREENSHOT_END, } = require("./in...
JavaScript
devtools/client/responsive.html/actions/screenshot.js
Yukarumya/Yukarum-Redfoxes
mpl-2.0
2,551
86
codeparrot/github-code
5244f6a9d94444d062dce9a89239b0d9d866f16ab3981f03c3c7f0c1784b9b05
/* Copyright (C) 2015 Nordic Semiconductor. All Rights Reserved. * * The information contained herein is property of Nordic Semiconductor ASA. * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. * * Licensees are granted free, non-transferable use of the information. NO * WARRANTY of ANY KIND is provided. ...
C
targetlibs/nrf5x/nrf5_sdk/components/ble/peer_manager/peer_manager.c
jasonkajita/Espruino
mpl-2.0
18,353
573
codeparrot/github-code
c6b08f1014459d833d67000fb5fce82f3ee450b46486d3582cb4e1c4a5c9e6ab
package com.nutomic.syncthingandroid.service; import android.app.PendingIntent; import android.content.ContentResolver; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.media.MediaScannerConnection; import android.net.Uri; import android.os.Handler...
Java
app/src/main/java/com/nutomic/syncthingandroid/service/EventProcessor.java
syncthing/syncthing-android
mpl-2.0
12,325
302
codeparrot/github-code
9b6bf2f2661255b0cf3bac46bb31f84b07a149c58e298ee141b819155c4ecfd5
// // Aspia Project // Copyright (C) 2018 Dmitry Chapyshev <dmitry@aspia.ru> // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any lat...
C++
source/crypto/random.cc
aspia-org/remote-desktop
mpl-2.0
1,435
60
codeparrot/github-code
cf41b19558289c3aa27957f6958536e1eaef926e132db6825e374646b47577f1
/** * 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://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" * ba...
Java
app/src/us/mn/state/health/lims/result/action/BatchResultsEntryViewAction.java
pfschwartz/openelisglobal-core
mpl-2.0
20,712
532
codeparrot/github-code
a6f71d823e843d0d8a3489af563d1599e4eb188f1bb56a81ebbcfba79585cdcd
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ //! Implements parallel traversals over the DOM and flow trees. //! //! This code is highly unsafe. Keep this file...
Rust
components/layout/parallel.rs
chotchki/servo
mpl-2.0
17,887
467
codeparrot/github-code
2154f7b6fc7ba268fc26c0bc18bae4aa0544c26affff402772e16b12e906ffc1
//This Source Code Form is subject to the terms of the Mozilla Public //License, v. 2.0. If a copy of the MPL was not distributed with this //file, You can obtain one at http://mozilla.org/MPL/2.0/. #pragma once #include <stdint.h> #include "duint.h" #include "quint.h" namespace ej { //! Implements one round of th...
C
h/philox.h
enochjul/ej
mpl-2.0
6,052
145
codeparrot/github-code
f138a8a06f6d61811ed3c04927c893b5607e50d7494a2c825bd98bf7bf739c8a
/* * Software Name: OCARA * * SPDX-FileCopyrightText: Copyright (c) 2015-2020 Orange * SPDX-License-Identifier: MPL v2.0 * * This software is distributed under the Mozilla Public License v. 2.0, * the text of which is available at http://mozilla.org/MPL/2.0/ or * see the "license.txt" file for more details. */...
Java
app/src/main/java/com/orange/ocara/business/interactor/CheckRulesetIsUpgradableTask.java
Orange-OpenSource/ocara
mpl-2.0
3,273
99
codeparrot/github-code
928de090b3381cd93845e8926b02237005c079530fcfbb2161756c75d232f6d0
// This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. package vim import ( "net/http" "github.com/cloudescape/govsphere/vim/soap" ) type VSphereSession struct { sessi...
GO
vim/vsphere_session.go
hooklift/govsphere
mpl-2.0
2,747
129
codeparrot/github-code
eaced4dc4fa8c56a657dbbd3ed82dc8e94dab5ce2f813ef5c8db47ef3ab1459f
package command import ( "context" "fmt" "strings" "github.com/hashicorp/errwrap" "github.com/hashicorp/terraform/backend" "github.com/hashicorp/terraform/config" "github.com/hashicorp/terraform/config/module" ) // PlanCommand is a Command implementation that compares a Terraform // configuration to an actual...
GO
command/plan.go
iansheridan/terraform
mpl-2.0
6,155
219
codeparrot/github-code
eb2ba7ceb3e222dcbe69174054daa93809ab03dd58f4767c3065652dba0da531
/* -*- Mode: Java; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: nil; -*- * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ package org.mozilla.gecko.util; im...
Java
mobile/android/geckoview/src/main/java/org/mozilla/gecko/util/ActivityUtils.java
Yukarumya/Yukarum-Redfoxes
mpl-2.0
2,573
72
codeparrot/github-code
a7bbc1576cf52ba2f1d82ad109134773e0a8dc67166f8f640f089978b2eec2e5
// Tests. Mocha TDD/assert style. See // http://visionmedia.github.com/mocha/ // http://nodejs.org/docs/latest/api/assert.html var constants = require('constants'); var assert = require('assert'); var sslConfig = require('../index.js'); var log = console.log.bind(console); suite('Checking generated config', function()...
JavaScript
test/tests.js
certsimple/ssl-config
mpl-2.0
3,120
45
codeparrot/github-code
fd9290064f0506a8a994217b6443b69a37c974b08d7faf1150e9f4646736c65b
<?php namespace ide\scripts\elements; use ide\library\IdeLibraryScriptGeneratorResource; use ide\scripts\AbstractScriptComponent; use ide\scripts\ScriptComponentContainer; use script\PrinterScript; class PrinterScriptComponent extends AbstractScriptComponent { public function getGroup() { return 'Сист...
PHP
develnext/src/ide/scripts/elements/PrinterScriptComponent.php
jphp-compiler/develnext
mpl-2.0
1,203
65
codeparrot/github-code
ce6d66af8d6eb076939d5a6c1f37716df65f78c0aa96425f9dab27892a49a5e1
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="generator" content="rustdoc"> <meta name="description" content="API documentation for the Rust `forget` fn in crate `gleam`."> <meta name="keywords" conte...
HTML
gleam/gl/__gl_imports/mem/fn.forget.html
servo/doc.servo.org
mpl-2.0
10,044
196
codeparrot/github-code
a76efaeece06fc250a01b78b9e8e74db5ca9c82625bcf1bda3bdf8a4e5ab70d8
<?php /* Profile form: form_id = 3 Here you can modify the profile form. This file is a file php mixed with PHP. The php code is located between < ?php and ? > tags. Anything outside these tags is HTML code and can be modified as normal HTML The form has 3 modes possible: 'view', 'edit' and 'EDIT' view - f...
PHP
include/themes/default/profile-form.php
vinothtimes/dchqtest
mpl-2.0
2,810
97
codeparrot/github-code
69d56c11d5665f45a3c8dcbb66150158d3bbf393fa410ccd98dad6075d7a2e9a
var DB = require('./lib/db.js'); function SQLContext(options) { this.readOnly = options.isReadOnly; this.db = options.db; } function _put(db, key, value, callback) { db.createOrUpdate(key, value, function(err) { if(err) { return callback(err); } callback(); }); } SQLContext.prototype.putObj...
JavaScript
index.js
filerjs/filer-sql
mpl-2.0
2,594
117
codeparrot/github-code
1d6e0947a9d9a64ae5a77b8ce5bb563c56310a0029bc04984dcac0fad791de98
#------------------------------------------------------------------------------ # File: Minolta.pm # # Description: Minolta EXIF maker notes tags # # Revisions: 04/06/2004 - P. Harvey Created # 09/09/2005 - P. Harvey Added ability to write MRW files # # References: 1) http://www.dalibor.cz/m...
Perl
exiftool/lib/Image/ExifTool/Minolta.pm
neolao/music-playlist-generator
mpl-2.0
93,493
2,824
codeparrot/github-code
6197abe9ea94feb12c21ce9462002f94f9a1f335878ce69f128411e5c726499c
/** * Copyright (c) 2013, The National Archives <digitalpreservation@nationalarchives.gov.uk> * http://www.nationalarchives.gov.uk * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozi...
Scala
csv-validator-core/src/main/scala/uk/gov/nationalarchives/csv/validator/schema/SchemaParser.scala
rhubner/csv-validator
mpl-2.0
6,430
207
codeparrot/github-code
659d2f69ac0dc1def6845341444c4ae6a80f786afdabf6749c4b8007d32b93cc
/*~ * Copyright (C) 2013 - 2016 George Makrydakis <george@irrequietus.eu> * * This file is part of 'clause', a highly generic C++ meta-programming library, * subject to the terms and conditions of the Mozilla Public License v 2.0. If * a copy of the MPLv2 license text was not distributed with this file, you can *...
C++
clause/ample/base/atpp/cmpl.hh
irrequietus/clause
mpl-2.0
24,937
761
codeparrot/github-code
1f9de418a9ac8bb3d58d3acd0a4c9ec8d5a7807300009dba7081e592cafb05d4
/* * SRT - Secure, Reliable, Transport * Copyright (c) 2018 Haivision Systems Inc. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ /*********************...
C
srtcore/queue.h
Haivision/srt
mpl-2.0
19,528
614
codeparrot/github-code
473732a29c3b3a8a53de4b20fa8a7286021c710b87e5fe76ec3aa7862511dbd8
/* kJscsspFONT_FACE_RULE */ function jscsspFontFaceRule() { this.type = kJscsspFONT_FACE_RULE; this.parsedCssText = null; this.descriptors = []; this.parentStyleSheet = null; this.parentRule = null; } jscsspFontFaceRule.prototype = { cssText: function() { var rv = gTABS + "@font-face {\n"; var pre...
JavaScript
src/om/jscsspFontFaceRule.js
therealglazou/jscssp
mpl-2.0
985
39
codeparrot/github-code
f1e64d6ca8be950cd7d900845616cd02b520e2c2223d01425b0cd8b42de31946
'use strict'; QUnit.module('ellipse', function() { var boundaryOnAngle = function(ellipse, angle) { var a = ellipse.a; var b = ellipse.b; var rad = angle * Math.PI / 180; return g.Point(ellipse.x + a * Math.cos(rad), ellipse.y + b * Math.sin(rad)).round(); }; QUnit.test(...
JavaScript
test/geometry/ellipse.js
chill117/joint
mpl-2.0
5,747
155
codeparrot/github-code
dc47adff19a7137c2b73be37a9e43fd4622508af130c61315fb2dde72d1362f8
import { inject as service } from '@ember/service'; import Component from '@ember/component'; import { task } from 'ember-concurrency'; export default Component.extend({ router: service(), controlGroup: service(), store: service(), // public attrs model: null, controlGroupResponse: null, //internal sta...
JavaScript
ui/app/components/control-group-success.js
hashicorp/vault
mpl-2.0
1,006
36
codeparrot/github-code
55e06e1d069e294f7341b661b477cb792100c9da6a7fde185cc46b52a942e5e5
#include "plastiqmethod.h" #include "plastiqqcameraviewfindersettingscontrol.h" #include "multimedia/PlastiQQMediaControl/plastiqqmediacontrol.h" #include <QCameraViewfinderSettingsControl> #include <QVariant> QHash<QByteArray, PlastiQMethod> PlastiQQCameraViewfinderSettingsControl::plastiqConstructors = { }; QHas...
C++
Builder/plastiq/include/multimedia/PlastiQQCameraViewfinderSettingsControl/plastiqqcameraviewfindersettingscontrol.cpp
ArtMares/PQStudio
mpl-2.0
6,711
151
codeparrot/github-code
fd6bbf8472a11a3cabaae362f5d65df9cf5a3bf9c506f6961a22146cf686f6d1
/* * Copyright © 2013-2018, The SeedStack authors <http://seedstack.org> * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ package org.seedstack.samples.busine...
Java
basics/business/src/test/java/org/seedstack/samples/business/domain/seller/SellerTest.java
seedstack/samples
mpl-2.0
1,833
50
codeparrot/github-code
4f382d77cbca993974a932ed6dbabc5dfe2ec1b3d211a773b6d6d128f4888f82
using Common.Generic; using System; using System.Net; namespace Common.Security { /// <summary> /// A simple credential store to keep the default credential in memory only. /// </summary> public class CredentialStore : AbstractGenericSingleton<CredentialStore> { private NetworkCredential d...
C#
Common/Security/CredentialStore.cs
ericbl/dotnet
mpl-2.0
2,320
76
codeparrot/github-code
e55a6f64464e3cc959e71672b74d723ce7109ffd8bccc506a0fe100768ed5199
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /* Implement shared vtbl methods. */...
C++
xpcom/reflect/xptcall/md/unix/xptcstubs_sparc_openbsd.cpp
Yukarumya/Yukarum-Redfoxes
mpl-2.0
3,916
121
codeparrot/github-code
11bf20e563bf85cf6526ca46f48262d9495334c1d5ec73967b27b8021cb00a1e
#ifndef FASTUIDRAW_DEMO_PRINT_UTILS_HPP #define FASTUIDRAW_DEMO_PRINT_UTILS_HPP #include <iostream> #include <stdint.h> #include <fastuidraw/util/util.hpp> class PrintBytes { public: enum rounding_mode_t { round_to_highest_unit = 0, round_to_mb_or_highest_unit = 1, round_to_kb_or_highest_unit ...
C++
demos/common/print_utils.hpp
01org/fastuidraw
mpl-2.0
1,692
80
codeparrot/github-code
424ac0ee9eaa524c48775e0d931828f5753440cd40542e6dd0df012ef8849e2a
/* * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ import React, { useContext } from 'react'; import { css } from '@csegames/linaria'; import { styled } from '@c...
TypeScript
game/hordetest/hud/src/components/fullscreen/StartScreen/Play/ReadyButton.tsx
csegames/Camelot-Unchained
mpl-2.0
10,492
357
codeparrot/github-code
74ad56c67fab6f8ae79173ac435d2de59f115a43a278d7c82b6691646d3786f4
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ <%! from data import to_rust_ident %> <%namespace name="helpers" file="/helpers.mako.rs" /> <% from data import AL...
Rust
components/style/properties/longhand/position.mako.rs
shravan-achar/servo
mpl-2.0
9,493
215
codeparrot/github-code
7bcb6a4982f1178f67cfac13b2ed25cb709d8b11984a65244038b84d80bf7306
from urllib.parse import urlparse import subprocess import logging import boto3 import airflow.hooks.base_hook from airflow.models import BaseOperator from airflow.utils.decorators import apply_defaults import utils.helpers as helpers class PostgresToS3Transfer(BaseOperator): '''Dumps a Postgres database to a S3...
Python
dags/operators/postgres_to_s3_transfer.py
opentrials/opentrials-airflow
mpl-2.0
3,091
91
codeparrot/github-code
50ee9ce379f21d3a082eab7b0dfb54daa75ed5c93040a958f4a56b70b9d0be1b
<?php namespace Civi\Api4\Event; use Civi\Api4\Service\Schema\SchemaMap; use Symfony\Component\EventDispatcher\Event as BaseEvent; class SchemaMapBuildEvent extends BaseEvent { /** * @var \Civi\Api4\Service\Schema\SchemaMap */ protected $schemaMap; /** * @param \Civi\Api4\Service\Schema\SchemaMap $sc...
PHP
Civi/Api4/Event/SchemaMapBuildEvent.php
civicrm/api4
agpl-3.0
759
40
codeparrot/github-code
db5397f2eeb0a039628d30857ade3e91d5d7bb6d8b33dc7194c0d348b66476e9
/* * This file is part of the AzerothCore Project. See AUTHORS file for Copyright information * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU Affero General Public License as published by the * Free Software Foundation; either version 3 of the License, or (a...
C++
src/server/shared/Realms/RealmList.cpp
ShinDarth/azerothcore-wotlk
agpl-3.0
9,266
261
codeparrot/github-code
8df650b406a96fe29314790f39cbe42a580226de27cfe9caaa4a65c836954bba
# -*- coding: utf-8 -*- # Copyright(C) 2013 Julien Veyssier # # This file is part of weboob. # # weboob is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your op...
Python
modules/750g/backend.py
blckshrk/Weboob
agpl-3.0
2,151
65
codeparrot/github-code
0de92b3a2116e30cbf7844dc7575f7f812d3125cfee007ad802d3e50e6a481d6
package org.demo.json; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import net.sf.json.JSONArray; import net.sf.json.JSONObject; /** * <p> * Json测试 * </p> * 2015年12月29日 * * @author <a href="http://weibo.com/u/5131020927">Q-WHai</a> * @see <a href="http://...
Java
src/org/demo/json/JsonDemo.java
William-Hai/SimpleDemo
agpl-3.0
1,394
51
codeparrot/github-code
b513342ddf2bf7fb816ed22dc67c23c17951b4400c6db141a508fbbe133048fb
using System.Collections; using System.Collections.Generic; using UnityEngine; using System; using UnityEngine.UI; using DatabaseAPI; /// <summary> /// Used to display vectors in the Variable viewer and to do all the Serialisation and deserialisation of vectors /// </summary> public class GUI_P_Vectors : PageElement ...
C#
UnityProject/Assets/Scripts/Variable Viewer/BookViewer/ElementDisplay/ElementTypes/Vectors/GUI_P_Vectors.cs
krille90/unitystation
agpl-3.0
5,560
252
codeparrot/github-code
50bf1efce4a7bcaabe0b38bbc9d2ac92c80f5a8be749aa02e27a967a7a1c6121
/** * Copyright (C) 2000 - 2011 Silverpeas * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * As a spe...
Java
ejb-core/contact/src/main/java/com/stratelia/webactiv/util/contact/ejb/ContactEJB.java
stephaneperry/Silverpeas-Core
agpl-3.0
12,878
408
codeparrot/github-code
462b593bf0e397e623c0ef4a0a30cbaaeb26ecbb34c87879482f3c979446a0b8
############################################################################### # # Copyright (C) 2001-2014 Micronaet SRL (<http://www.micronaet.it>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published # by the ...
Python
order_bom_explode_report/__openerp__.py
Micronaet/micronaet-bom
agpl-3.0
2,240
63
codeparrot/github-code
6067f4225f883c9e70ae059efbed54421b5550e650fed468104ed17362a438cc
/* This file is part of VoltDB. * Copyright (C) 2008-2018 VoltDB Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any la...
Java
src/frontend/org/voltdb/importer/formatter/builtin/VoltCSVFormatter.java
simonzhangsm/voltdb
agpl-3.0
3,849
97
codeparrot/github-code
a901267979fc4756a9240d579dddc5ab4ea35fd0208a33dc62b2acfccace3f51
<?php /** * ownCloud - gallery * * This file is licensed under the Affero General Public License version 3 or * later. See the COPYING file. * * @author Olivier Paroz <owncloud@interfasys.ch> * * @copyright Olivier Paroz 2014-2016 */ namespace OCA\Gallery\AppInfo; /** * Application routes * * The name is ...
PHP
apps/gallery/appinfo/routes.php
bluelml/core
agpl-3.0
5,445
224
codeparrot/github-code
dafb34c7a93281d7e67619e35b7cd74cee64b83992fe7faeedcd1a68e8393306
<?php /** * * SugarCRM Community Edition is a customer relationship management program developed by * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc. * * SuiteCRM is an extension to SugarCRM Community Edition developed by SalesAgility Ltd. * Copyright (C) 2011 - 2017 SalesAgility Ltd. * * This program is f...
PHP
modules/Users/language/en_us.lang.php
ByersHouse/crmwork
agpl-3.0
35,672
609
codeparrot/github-code
edc1ac396627c8f9a1c2260aea10bbd8a85ef7e42175a75d90fc262d7b7116a8
import React, { Component, PropTypes } from 'react' import { updateCurrentUser, notify } from '../actions' import ListItemTagInput from './ListItemTagInput' export default class ProfileSkillsModule extends Component { static propTypes = { person: PropTypes.object } static contextTypes = { dispatch: Prop...
JavaScript
src/components/ProfileSkillsModule.js
Hylozoic/hylo-redux
agpl-3.0
1,721
68
codeparrot/github-code
2fc18ad58fda21ebb482863bc8fd806474530822c53eb5e7b89936f9eee2878b
DELETE FROM `weenie` WHERE `class_Id` = 36858; INSERT INTO `weenie` (`class_Id`, `class_Name`, `type`, `last_Modified`) VALUES (36858, 'ace36858-greatskeleton', 10, '2019-02-10 00:00:00') /* Creature */; INSERT INTO `weenie_properties_int` (`object_Id`, `type`, `value`) VALUES (36858, 1, 16) /* ItemType - C...
SQL
Database/3-Core/9 WeenieDefaults/SQL/Creature/Skeleton/36858 Great Skeleton.sql
ACEmulator/ACE-World
agpl-3.0
5,754
89
codeparrot/github-code
4fc559a69cf577a0d5621ae5abb1e4c09fe10ca0bf54f9d8828e8873e1af583b
/* This file is part of the OdinMS Maple Story Server Copyright (C) 2008 ~ 2010 Patrick Huy <patrick.huy@frz.cc> Matthias Butz <matze@odinms.de> Jan Christian Meyer <vimes@odinms.de> This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License ...
Java
src/tools/data/output/ByteBufferOutputstream.java
TMS-v113/server
agpl-3.0
1,757
58
codeparrot/github-code
f4176a038813b9e9c2c23d835af4552b800651cb29ff9d77fce496901fadb1c2
import numpy as np class PriceHistoryPack(object): def __init__(self, input_seq_len, num_features, target_seq_len): super(PriceHistoryPack, self).__init__() self.sku_ids = [] self.XX = np.empty((0, input_seq_len, num_features)) self.YY = np.empty((0, target_seq_len)) self.s...
Python
04_time_series_prediction/data_providers/price_history_pack.py
pligor/predicting-future-product-prices
agpl-3.0
2,640
56
codeparrot/github-code
895477902eaa48dde88f15b17294b51c6292e4fa31cbd7dc61dc1112c2abd707
/* * RESTHeart - the Web API for MongoDB * Copyright (C) 2014 - 2015 SoftInstigate Srl * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at ...
Java
src/test/java/org/restheart/test/integration/GetCollectionIT.java
rafaelsisweb/restheart
agpl-3.0
18,857
422
codeparrot/github-code
135f1fddf7326a2dbcf13fcdc8956c8123f8ed2940fb1741564f9bd7befbb9df
{% extends "base.html" %} {% load compress %} {% load humanize %} {% load mathfilters %} {% load static %} {% load crowdfund_tags %} {% load tags %} {% load rules %} {% load cache %} {% block title %}{{ foia.title }} &bull; MuckRock{% endblock %} {% block type %}request{% endblock %} {% block rss %} {{ block.super ...
HTML
muckrock/templates/foia/detail.html
MuckRock/muckrock
agpl-3.0
2,756
106
codeparrot/github-code
cb7fca8dbdfd35114ad05b6399d5ed16e0e78b4fc0198f8f0df513efafb2e02d
(function ($, undefined) { $.widget("ui.HarvesterInlineEditor", $.ui.CiteInlineEditor, { options: { }, _refreshView: function () { this._super(); //var item = this.option('item'); this.element.empty(); this.initEditor(); //this.showData(item); //this.setCurrentDisplayModeAndApply($.ui.Ci...
JavaScript
xwcps-parser-ui/libs/js/general/widgets/jquery.harvesterInlineEditor.js
cite-sa/xwcps
agpl-3.0
4,417
153
codeparrot/github-code
3349bcc39ffefaeb816173567c8c9808f508c7172643496a3ba6acd4b6e36c44
############################################################################## # # OSIS stands for Open Student Information System. It's an application # designed to manage the core business of higher education institutions, # such as universities, faculties, institutes and professional schools. # The core ...
Python
assessments/business/score_encoding_export.py
uclouvain/osis_louvain
agpl-3.0
7,913
190
codeparrot/github-code
82259910420c4b35df7bcf82a28ae72f7e9ddf167fced46beb6c10a7d1560f23
// =================================================================================================== // _ __ _ _ // | |/ /__ _| | |_ _ _ _ _ __ _ // | ' </ _` | | _| || | '_/ _` | // |_|\_\__,_|_|\__|\_,_|_| \_...
Java
src/main/java/com/kaltura/client/types/ESearchAggregationBucket.java
kaltura/KalturaGeneratedAPIClientsJava
agpl-3.0
3,045
105
codeparrot/github-code
4e0549f9cbcc38b5fcbe947a7369dc3311ab1e8e6620936c2d4b4fcbdd02c654
module.exports = (app) => { let Base58 = {}; Base58.alphabet = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'; Base58.alphabetMap = {}; for(let i = 0; i < Base58.alphabet.length; i++) { Base58.alphabetMap[Base58.alphabet.charAt(i)] = i } Base58.encode = function(buffer) { if (buffe...
JavaScript
app/js/services/base58.js
duniter/duniter-ui
agpl-3.0
1,932
78
codeparrot/github-code
fdc9de3694c8212740065315bfe8fdcb9df28e597279dfb0f6619c331333452f
#include <FL/Fl.H> #include <FL/Fl_Double_Window.H> #include "mobileGroup.h" #include "stateManager.h" #include "netTCPClient.h" #include "netTCPServer.h" int main(int argc, char** argv) { std::string address = "localhost"; int port = 12788; if ((argc >= 2) && (!strncmp(argv[1],"s",2))) { char...
C++
Case 15/ClientLoad/main.cpp
SarahVictoria/IOConnection
agpl-3.0
2,270
92
codeparrot/github-code
b7edeab818fd545e991f6229e2160e0fbda719ba2b1439a966684221f2907ac4
/* * Copyright (c) 2011, Aperis GmbH, http://www.aperis.com * Autor: Achim 'ahzf' Friedland <achim.friedland@aperis.com> * This file is part of Modbus.NET * * Licensed under the Affero GPL license, Version 3.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a...
C#
Modbus.NET/Protocol/Extensions.cs
Ripper555/Modbus.NET
agpl-3.0
3,199
114
codeparrot/github-code
670be5633c7743233f04c777525552e73509990820a1f8c678f34bba1d1113d8
/* * * Copyright 2014, 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...
GO
Godeps/_workspace/src/google.golang.org/grpc/server.go
protogalaxy/service-message-broker
agpl-3.0
12,049
398
codeparrot/github-code
bb8a42e0eb427f4a4c79673c545d1e0b5823277adf952a84c3307e82f7134352
# Copyright (C) 2014-2015 Andrey Antukh <niwi@niwi.be> # Copyright (C) 2014-2015 Jesús Espino <jespinog@gmail.com> # Copyright (C) 2014-2015 David Barragán <bameda@dbarragan.com> # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # pub...
Python
taiga/projects/custom_attributes/services.py
bdang2012/taiga-back-casting
agpl-3.0
2,747
70
codeparrot/github-code
df5168cf21040f731f1f150278813f808dff073a135115ee7772ccedc042a7f0
package com.x.program.center.jaxrs.code; import com.x.base.core.container.EntityManagerContainer; import com.x.base.core.container.factory.EntityManagerContainerFactory; import com.x.base.core.entity.JpaObject; import com.x.base.core.project.bean.WrapCopier; import com.x.base.core.project.bean.WrapCopierFactory; impor...
Java
o2server/x_program_center/src/main/java/com/x/program/center/jaxrs/code/ActionListPaging.java
o2oa/o2oa
agpl-3.0
1,618
50
codeparrot/github-code
055dd872e0150efbaec22f14f2f73a47ce81680b376d7bd71fda781358218bcf
module View.Project ( editProjectForm , projectContactForm , inviteForm , projectBlogForm , projectConfirmSharesForm , renderBlogPost , renderProject , viewForm ) where import Import import Data.Filter import Data.Order import Model.Currency import ...
Haskell
View/Project.hs
Happy0/snowdrift
agpl-3.0
5,569
123
codeparrot/github-code
a492b162e3ef0299c60da06bcb235fc1a878fc097792ef4abe22069a06a9a0f0
<?php /** * StatusNet, the distributed open-source microblogging tool * * Show notices mentioning a user (@nickname) * * PHP version 5 * * LICENCE: This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Softw...
PHP
actions/apitimelinementions.php
UngPirat/freesocial
agpl-3.0
7,962
270
codeparrot/github-code
9247328ec5bcb0e6ca618d27d7d3ab8a71259f214bf64c271569c4cc30b394be
## mako <%namespace name='static' file='static_content.html'/> <%namespace file='main.html' import="login_query"/> <%! from django.core.urlresolvers import reverse from django.utils.translation import ugettext as _ from microsite_configuration import microsite # App that handles subdomain specific branding import bra...
HTML
themes/edx.org/lms/templates/header.html
MakeHer/edx-platform
agpl-3.0
5,665
142
codeparrot/github-code
4d90c67645d4e04a5c1bd8e67814f898a64de79e820a26b2b23d199c988f5062
import React from 'react'; import SPELLS from 'common/SPELLS/index'; import { formatDuration } from 'common/format'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import STATISTIC_CATEGORY from 'interface/others/STATISTIC_CATEGORY'; import SpellLink from 'common/SpellLink'; import Spel...
JavaScript
src/parser/shared/modules/spells/bfa/corruptions/IneffableTruth.js
ronaldpereira/WoWAnalyzer
agpl-3.0
5,526
150
codeparrot/github-code
8c300179753ab277ca8dba5abd20fb94ab8e51c1d1246f291d6bc44b0ba4c293
var hook = require("../lib/resources/hook"); var hooks = require("hook.io-hooks"); var bodyParser = require('body-parser'); var mergeParams = require('merge-params'); var config = require('../config'); var themes = require('../lib/resources/themes'); var hooks = require('hook.io-hooks'); module['exports'] = function ...
JavaScript
view/new.js
joshgillies/hook.io
agpl-3.0
4,408
140
codeparrot/github-code
8e6b381aa03f63ebeeabca36e81b9a5dc288095a4db3380794d0393d3057f33e
'use strict'; /** * @ngdoc directive * @name FlyveMDM.directive:loggedUserMenu * @description * # loggedUserMenu */ angular.module('FlyveMDM') .directive('loggedUserMenu', function () { return { templateUrl: 'views/loggedusermenu.html', restrict: 'E', link: function postLink(scope) { ...
JavaScript
app/scripts/directives/loggedusermenu.js
flyve-mdm/flyve-mdm-web-ui
agpl-3.0
1,817
56
codeparrot/github-code
dd5f7bedd127536bdea71501ae04ae6168554e9fdda27b0b544f79140b3bada1
<?php /** * * Manages the batch flow * * @package Core * @subpackage Batch * */ class kFlowManager implements kBatchJobStatusEventConsumer, kObjectAddedEventConsumer, kObjectChangedEventConsumer, kObjectDeletedEventConsumer, kObjectReadyForReplacmentEventConsumer { public final function __construct() { } p...
PHP
alpha/apps/kaltura/lib/batch2/kFlowManager.php
jessp01/server
agpl-3.0
22,972
731
codeparrot/github-code
ee316a4a710d27ccade5701f7913161e9672be6090818f4061a01f259decd9fd
""" Tests for users API """ import datetime import ddt import pytz from django.conf import settings from django.template import defaultfilters from django.test import RequestFactory, override_settings from django.utils import timezone from milestones.tests.utils import MilestonesTestCaseMixin from mock import patch f...
Python
lms/djangoapps/mobile_api/users/tests.py
teltek/edx-platform
agpl-3.0
20,030
516
codeparrot/github-code
c84a7e073c23c4390ca9cd406cd355a1bb8204ce35946d7c8205f5e607a11744
package com.mcbans.firestar.mcbans.request; import java.util.HashMap; import com.mcbans.firestar.mcbans.ActionLog; import com.mcbans.firestar.mcbans.MCBans; import com.mcbans.firestar.mcbans.callBacks.BaseCallback; import com.mcbans.firestar.mcbans.org.json.JSONObject; public abstract class BaseRequest<Call...
Java
src/com/mcbans/firestar/mcbans/request/BaseRequest.java
MCBans/MCBansAssetGatway
agpl-3.0
1,801
64
codeparrot/github-code
96486beea5cb441a24be1cafd5326d3c8765897eb45330790cc7bbfa46c92847
/* * MyZimbra Cloud - Owncloud clients synchronized directly with Zimbra briefcase * Copyright (C) 2016-2017 Laurent FRANCOISE * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, eit...
Java
src/net/myzimbra/cloud/soap/NotifyFolders.java
laurent-fr/MyZimbra-Cloud
agpl-3.0
4,520
126
codeparrot/github-code
a1d574d834963a7cb8333483de542b1c5c9e4ac39d74e21ed8ce972ddc86ba1a
/** * Options */ #include <cstdint> #include <cstdlib> #include <fstream> #include <iostream> #include <boost/blank.hpp> #include <boost/program_options.hpp> #include "massively_auth/options.hpp" namespace massively { namespace auth { namespace { // anonymous namespace template <typename T = boost::blank> ...
C++
src/options.cpp
massivelyframework/auth
agpl-3.0
3,753
128
codeparrot/github-code
b5d4d07cba092f512f8108cd62fdd2db4451883ae784ddf10613cf0660c6cc8e
--[[-- A FrameContainer is some graphics content (1 widget) that is surrounded by a frame Example: local frame frame = FrameContainer:new{ radius = 8, bordersize = 3, padding = 0, margin = 0, background = Blitbuffer.COLOR_WHITE, VerticalGroup:new{ --...
Lua
frontend/ui/widget/container/framecontainer.lua
robert00s/koreader
agpl-3.0
2,372
85
codeparrot/github-code
e1b28dd9c675fc0248d886fce29dd79cd1baf29d3a4d4ecb52803bd2cfedb7ea
/* This file is part of VoltDB. * Copyright (C) 2008-2017 VoltDB Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any la...
Java
src/frontend/org/voltdb/jdbc/JDBC4DatabaseMetaData.java
migue/voltdb
agpl-3.0
57,351
1,738
codeparrot/github-code
9a8ba05a5a667a1f818142e95589c3c18062bb6417ff4412be439b7157607f35
/* fs.cpp is part of the GlestNG RTS game engine. Licensed under the GNU AFFERO GENERAL PUBLIC LICENSE version 3 See LICENSE for details (c) William Edwards, 2011; all rights reserved */ #include <sys/stat.h> #include <string.h> #include <errno.h> #include <stdio.h> #include <dirent.h> #include <stdlib.h> #include...
C++
fs.cpp
williame/GlestNG
agpl-3.0
8,074
287
codeparrot/github-code
f2582a84d1b4a27ea8ef948bebc5c49ab98fd928f42a7f7b3108d1739aae5240
import React from 'react'; import reactCSS from 'reactcss'; import { Swatch } from 'react-color/lib/components/common'; export const SwatchesColor = ({ color, onClick = () => {}, onSwatchHover, first, last, active, }) => { const styles = reactCSS( { default: { color: { width:...
JavaScript
vertex_ui/src/components/ColorPicker/Swatches/SwatchesColor.js
zapcoop/vertex
agpl-3.0
1,740
88
codeparrot/github-code
21c7ecb8508bba9c31db5df1c9b5edd3c9bff23d9c5379a35233b2f9719084b5
function handleRace(data_races) { var ch_race; var ch_side; for (var ra in data_races.races) { if (data_races.races[ra].id === character_data.race) { ch_race = data_races.races[ra].name; ch_side = data_races.races[ra].side; } else { } } document.querySelec...
JavaScript
js/general.js
daingun/mobile-armory
agpl-3.0
4,549
138
codeparrot/github-code
d21491197cb71bd7e5c886947d1ae04884764367cd944bb5a0d8436bf85ddf72
/* * ThunderNetwork - Server Client Architecture to send Off-Chain Bitcoin Payments * Copyright (C) 2015 Mats Jerratsch <matsjj@gmail.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software...
Java
thunder-client/src/main/java/network/thunder/client/wallet/TransactionStorage.java
repos-bitcoin/thundernetwork
agpl-3.0
6,267
210
codeparrot/github-code
a539fec6df18b20a5c560dd69cb31a3d1a3346e8ea2a6276831988b9be21740f
#pragma once #include <string> #include <sstream> #include <iomanip> #include "container_templates.h" #include "maybe_const.h" template <class T> struct get_underlying_char_type { typedef T type; }; template <class T> struct get_underlying_char_type<std::basic_string<T>> { typedef T type; }; tem...
C
augs/templates/string_templates.h
geneotech/Mechanical-keyboard-simulator
agpl-3.0
1,779
90
codeparrot/github-code
feb74f93c6de21ca23cb7b1a1949f7bd54206df5cc3220d9de579ef07bb855c1
<?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="g...
HTML
l10n_ir_states/static/description/index.html
OCA/l10n-iran
agpl-3.0
12,073
427
codeparrot/github-code
8d25d56621221fea2b22674711f2200b9d63eae3d5cb528655f87c30afe77db0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import models, fields, api, _ from odoo.addons.http_routing.models.ir_http import slug class EventEvent(models.Model): _inherit = "event.event" community_menu = fields.Boolean( "Community Men...
Python
addons/website_event_track_online/models/event_event.py
ygol/odoo
agpl-3.0
2,962
68
codeparrot/github-code
2abc147e5605c89c78a5f54008e95b7b76ec24985063f38e29a3098386bd5ac3
/**we have all * @fileoverview * Profile 1/overview and 2/completing * @todo * - package.json * * @version 1 * @copyright ISCPIF-CNRS 2016 * @author romain.loth@iscpif.fr * * @requires comex_user_shared, comex_lib_elts * * NB The uinfo variable should be set to template's user.json_info value. */ // 3...
JavaScript
static/js/comex_page_profile_controllers.js
moma/comex2
agpl-3.0
8,065
241
codeparrot/github-code
5def3ed1885de1be6aaa079f121b441316b39c138784bdb113aa1e9534739a12
<?php namespace App\Http\Controllers; use App; use App\Http\Requests; use DB; use Illuminate\Http\Request; use Response; use URL; class MediaController extends Controller { /** * Display a listing of the resource. * * @return Response */ public function index(Request $request) { // } /** * Show t...
PHP
app/Http/Controllers/MediaController.php
shihjay2/nosh2
agpl-3.0
1,121
96
codeparrot/github-code
530088e445a778409889e474e7292e289fd7c69c80cbad0f050bd8eb9ffb3dc3
<?php // No direct access to this file defined('_JEXEC') or die('Restricted access'); // import Joomla view library jimport('joomla.application.component.view'); /** * tarif View * */ class adhViewConfigTarif extends JViewLegacy { /** * display method of Hello view * @return void */ publi...
PHP
admin/views/configtarif/view.html.php
cadegenn/com_adh_j3x
agpl-3.0
2,324
83
codeparrot/github-code
c9a8c28c86cb49337fe6f660f67dcd6940e0f937492e94ac652a09f2be6070a4
const express = require('express'); const feedr = require('feedr').create(); const router = express.Router(); router.get('/', (req, res) => { feedr.readFeed('https://blog.schul-cloud.org/rss', { requestOptions: { timeout: 2000 }, }, (err, data) => { let blogFeed; try { blogFeed = data.rss.channel[0].item ...
JavaScript
controllers/blog.js
schul-cloud/schulcloud-client
agpl-3.0
906
38
codeparrot/github-code
f7d7f1d0350b0db4f6dbe0684970a3eccdc2881e596be41be6de04bbea26eacb
<?php /** * A diaspora* flavoured WP Post class. * * @package WP_To_Diaspora\Post * @since 1.5.0 */ // Exit if accessed directly. defined( 'ABSPATH' ) || exit; use League\HTMLToMarkdown\HtmlConverter; /** * Custom diaspora* post class to manage all post related things. * * @since 1.5.0 */ class WP2D_Post ...
PHP
wp-content/plugins/wp-to-diaspora/lib/class-post.php
hsgr/medialibre
agpl-3.0
23,393
811
codeparrot/github-code
2c0aaffb3ed0aa3648a8601f1ffa29ed1b5f4c07afa3eb86cb9c3cae9fe68b90
/* * Copyright (C) 2000 - 2016 Silverpeas * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * As a spec...
Java
core-war/src/main/java/org/silverpeas/web/joborganization/control/JobOrganizationPeasSessionController.java
ebonnet/Silverpeas-Core
agpl-3.0
15,514
439
codeparrot/github-code