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 |
|---|---|---|---|---|---|---|---|---|
fdb13ee9bfe8f57ad2798b4a2ddc65c8960285098e9ff2f48b751d5843bdaba6 | // Copyright (C) 2011-2012 CRS4.
//
// This file is part of Seal.
//
// Seal 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 later version.
//
// S... | Java | src/it/crs4/seal/demux/DemuxOutputFormat.java | QwertyManiac/seal-cdh4 | gpl-3.0 | 5,848 | 159 | codeparrot/github-code |
074dde581af5e2c6f89707670d0e1fcaf57213acc385aca0b8b8a776e754c700 | #!/usr/bin/env python
# Copyright (C) 2014-2017 Shea G Craig
#
# 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 later version.
#
# This ... | Python | jss/misc_endpoints.py | sheagcraig/python-jss | gpl-3.0 | 13,525 | 369 | codeparrot/github-code |
ade5e82ef4887eb87d717c959bd0c060741f3358c29fb44f2538fb03385f9782 | <?php
/*
* This file is part of Phraseanet
*
* (c) 2005-2015 Alchemy
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Alchemy\Phrasea\Core\Event\Subscriber;
use Alchemy\Phrasea\Application;
use Alchemy\Phrasea\Controlle... | PHP | lib/Alchemy/Phrasea/Core/Event/Subscriber/ApiExceptionHandlerSubscriber.php | kwemi/Phraseanet | gpl-3.0 | 2,574 | 81 | codeparrot/github-code |
98f99b93e7b75df0e898f76ea5383db07f169ff2765ce25780d35b62969ce587 | #include "MemTable.h"
using namespace std;
json MemTable::Table;
template <class type>
LinkedList<type> ListAdapter<type>::SmartList;
int MemTable::getSize(long ID) {
int size = 0;
std::string number;
std::stringstream strstream;
strstream << ID;
strstream >> number;
for (json::iterator... | C++ | xMemoryManager/MemTable.cpp | BlindHouse/xMemory | gpl-3.0 | 2,423 | 105 | codeparrot/github-code |
24956b07ed27d205b3dee64054eb0356317db00b56bd6e559164110cd6fbdea1 | #!/usr/bin/env python
"""
Copyright (C) 2015 Louis Dijkstra
This file is part of error-model-aligner
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 opt... | Python | bin/estimate-null-insert-sizes.py | louisdijkstra/error-model-aligner | gpl-3.0 | 3,976 | 119 | codeparrot/github-code |
b345f6f2b6fff38bd9b628d6a8c428fcd2043e3c08cd316861b1a602dada24dc | /*
Copyright(c) 2014 Hashmi1
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 later version.
You should have received a copy of the GNU Gener... | C# | converter/converter/TES5/NPC/ACBS.cs | Hashmi1/IndorilConverter | gpl-3.0 | 3,872 | 129 | codeparrot/github-code |
ffc4db0306933094d0f54c4f756ccb58d2d439aa72149471b82cd70e319576a8 | /* 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/. */
'use strict'
/* brave ledger integration for the brave browser
module entry points:
init() - called by... | JavaScript | app/ledger.js | MKuenzi/browser-laptop | mpl-2.0 | 41,776 | 1,299 | codeparrot/github-code |
42a9246c28273b794e71115948d72f40ac723ab3a0755006921029371fcf2b80 | /***************************** BEGIN LICENSE BLOCK ***************************
The contents of this file are subject to 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/.
Software distributed under the License is distri... | Java | swe-common-om/src/main/java/net/opengis/gml/v32/AbstractTimePrimitive.java | sensiasoft/lib-swe-common | mpl-2.0 | 1,326 | 46 | codeparrot/github-code |
568b63a8a158d2017aeb25a5532d926e2e4cdd6cb25182ae5d4f0decf0c2c9ca | package iso
import (
"context"
"fmt"
"log"
"github.com/hashicorp/packer-plugin-sdk/multistep"
packersdk "github.com/hashicorp/packer-plugin-sdk/packer"
parallelscommon "github.com/hashicorp/packer/builder/parallels/common"
)
// This step attaches the ISO to the virtual machine.
//
// Uses:
// driver Driver
/... | GO | builder/parallels/iso/step_attach_iso.go | ricardclau/packer | mpl-2.0 | 1,921 | 73 | codeparrot/github-code |
220fd67206a6802cf654adef9acbef002afd0d353d9aa3ad385fd152b2bd8c59 | /* -*- Mode: C++; tab-width: 20; 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/. */
#include "TexUnpackBlob.h"
#incl... | C++ | dom/canvas/TexUnpackBlob.cpp | Yukarumya/Yukarum-Redfoxes | mpl-2.0 | 28,368 | 832 | codeparrot/github-code |
3a4e8d16730e91f76b325781711dea0f69104a91b3e94fb48e516fdf4d40a6b7 | // Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
package main
import (
"time"
"github.com/MustWin/baremetal-sdk-go"
"github.com/hashicorp/terraform/helper/schema"
"github.com/oracle/terraform-provider-baremetal/options"
"github.com/oracle/terraform-provider-baremetal/client"
"github.c... | GO | data_source_obmcs_core_route_table.go | MustWin/terraform-provider-baremetal | mpl-2.0 | 2,688 | 114 | codeparrot/github-code |
270b78495a131ab1daa8b9c0897b1d59e894aa94c95332ed59b6435a3dad6a71 | /*
* Copyright © 2013-2021, 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.coffig.mapper;
... | Java | src/test/java/org/seedstack/coffig/mapper/ValueMapperTest.java | seedstack/coffig | mpl-2.0 | 2,116 | 41 | codeparrot/github-code |
bfbfd231ff241aef9c310f8051d53236abcdff7e71fbc5ee8b83c3d1498091f9 | import { Component, ViewChild } from '@angular/core';
import { Nav, Platform } from 'ionic-angular';
import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';
import { HomePage } from '../pages/home/home';
import { Userpage } from '../pages/userpage/userpage';
im... | TypeScript | src/app/app.component.ts | wemrekurt/cariapp | mpl-2.0 | 1,689 | 55 | codeparrot/github-code |
ec9f7c11c097ad821705e8a54790c67f1b83976350058a3ead4c55be1a1f8544 | /*!
rctree is a "DOM-like" tree implemented using reference counting.
*/
// This is a copy of the https://github.com/RazrFalcon/rctree
//
// Changes:
// - Node::new marked as private
// - Node::borrow marked as private
// - Node::borrow_mut marked as private
// - Node::make_copy removed
// - Node::make_deep_copy remov... | Rust | src/tree.rs | RazrFalcon/libsvgdom | mpl-2.0 | 22,881 | 675 | codeparrot/github-code |
2a9d742dce0bf7be33c2f79d8b06f6baedbb21e0fc6082930db2709ca0612fed | /**
* This module implements the unit tests for AT Client API.
*
* Copyright (C) Sierra Wireless Inc.
*
*/
#include "legato.h"
#include "interfaces.h"
#include "defs.h"
//--------------------------------------------------------------------------------------------------
/**
* Client timeout in seconds
*/
//----... | C | apps/test/atServices/atClientUnitTest/main.c | legatoproject/legato-af | mpl-2.0 | 10,860 | 230 | codeparrot/github-code |
311d3514be60dc5329678cfef13b87d86d4f91e627d820164ff84306ff917ca2 | "use strict";
let Ci = Components.interfaces;
let Cc = Components.classes;
let Cu = Components.utils;
let Cr = Components.results;
var loader = Cc["@mozilla.org/moz/jssubscript-loader;1"].getService(Ci.mozIJSSubScriptLoader);
loader.loadSubScript("resource://emic/sugar.js");
Cu.import("resource://emic/mailtodate.js... | JavaScript | content/compose.js | XxJo3yxX/emic | mpl-2.0 | 8,930 | 179 | codeparrot/github-code |
3ae565fd14199ebe445a4665a7c63a82d383bf5f2168fa79431ab5dfe99cd186 | package com.modelo;
import java.nio.charset.StandardCharsets;
import javax.print.Doc;
import javax.print.DocFlavor;
import javax.print.PrintException;
import javax.print.PrintService;
import javax.print.SimpleDoc;
/**
*
* Etiqueta class
* Clase donde se inicializa el tamaño de la letra y la posicion en la que van... | Java | src/com/modelo/Etiqueta.java | jreneruiz/Impresor-de-etiquetas-zebra | mpl-2.0 | 1,643 | 56 | codeparrot/github-code |
61f462ce81b2fe3d41d6932838afb92f68fa1621af969fdb8519c7eef7059b3b | if SERVER then
AddCSLuaFile("shared.lua")
end
if CLIENT then
SWEP.PrintName = "Stun Stick"
SWEP.Slot = 0
SWEP.SlotPos = 5
SWEP.DrawAmmo = false
SWEP.DrawCrosshair = false
end
SWEP.Base = "weapon_cs_base2"
SWEP.Author = "Rick Darkaliono, philxyz"
SWEP.Instructions = "Left click to discipline, right click to kil... | Lua | DarkRP/entities/weapons/stunstick/shared.lua | AccroGaming/Accro-DarkRP | mpl-2.0 | 6,125 | 201 | codeparrot/github-code |
65b3486f99c26e27a75eb82cb9413cdeee8163e3267c79bfbc09b9723e919bc8 | package azurerm
import (
"fmt"
"log"
"time"
"github.com/Azure/azure-sdk-for-go/arm/network"
"github.com/hashicorp/errwrap"
"github.com/r3labs/terraform/helper/resource"
"github.com/r3labs/terraform/helper/schema"
"github.com/jen20/riviera/azure"
)
func resourceArmLoadBalancerNatPool() *schema.Resource {
ret... | GO | builtin/providers/azurerm/resource_arm_loadbalancer_nat_pool.go | r3labs/terraform | mpl-2.0 | 8,790 | 287 | codeparrot/github-code |
19197a18869d3cde2cad44b813b0653db4a2172f5b8cbcc781c861b4af6f7379 | /*
Formatting library for C++
Copyright (c) 2012 - 2014, Victor Zverovich
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
... | C | include/utils/cppformat/format.h | BrainlessLabsInc/Konark | mpl-2.0 | 84,910 | 2,746 | codeparrot/github-code |
69b09460ccc052e1290253b6e2195997d0eba4bb784e4d90febfd2cf0a0663b2 | public class Solution {
public int findLUSlength(String[] strs) {
Arrays.sort(strs, new Comparator<String>(){
public int compare(String a, String b) {
if (a.length() != b.length()) {
return b.length()-a.length();
} else {
re... | Java | java/522.java | DevinZ1993/LeetCode-Solutions | mpl-2.0 | 1,490 | 48 | codeparrot/github-code |
a40ef8bb0e4dafc98e78a36c6e88aa181c02b6b5095b48cceb57ce23af8ad78d | /*
* Copyright © 2013-2019, 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.bu... | Java | core/src/test/java/org/seedstack/business/IdentityServiceIT.java | adrienlauer/business | mpl-2.0 | 2,689 | 77 | codeparrot/github-code |
b30b506d3148ae21ee1a67416c947c08d52b8fc590ded8bb341b88a5f6b06ac8 | /* 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.focus.screenshots;
import android.os.Build;
import android.support.test.espresso.web.webdrive... | Java | app/src/androidTest/java/org/mozilla/focus/screenshots/ErrorPagesScreenshots.java | ekager/focus-android | mpl-2.0 | 3,751 | 94 | codeparrot/github-code |
040ebb43bca7d6c75e945ab8bb8785664c8f783d3953702b94ee291fb2e9885a | import animate;
import event.Emitter as Emitter;
import device;
import ui.View;
import ui.ImageView;
import ui.TextView;
import src.Match3Core as Core;
import src.Utils as Utils;
//var Chance = require('chance');
//Some constants
var CoreGame = new Core();
var level = new Core();
//var chance = new Chance();
/* The G... | JavaScript | src/GameScreen.js | CoderBear/HoneyBear | mpl-2.0 | 1,811 | 97 | codeparrot/github-code |
3df3d54f2ff4a99fd1bc84b0efd46dcc9a12412643a623e257d87dd1e5a67250 | /*
* Copyright Aduna (http://www.aduna-software.com/) (c) 2008.
*
* Licensed under the Aduna BSD-style license.
*/
package org.openrdf.sail.postgis;
import java.sql.SQLException;
import org.openrdf.sail.generaldb.GeneralDBSqlTable;
import eu.earthobservatory.constants.GeoConstants;
/**
* Converts table names t... | Java | postgis/src/main/java/org/openrdf/sail/postgis/PostGISSqlTable.java | wx1988/strabon | mpl-2.0 | 1,904 | 84 | codeparrot/github-code |
cd6c85fbe9922c0307bf81b229503357313a163f90115790f162cbd1a7d0757d | var fs = require("fs");
var path = require("path");
var _ = require("underscore");
var chai = require("chai");
var expect = chai.expect;
var profile = require("../../lib/profile");
var PREFS = require("../../data/preferences");
var simpleXpiPath = path.join(__dirname, '..', 'xpis', 'simple-addon.xpi');
describe("lib/... | JavaScript | test/unit/test.profile.js | Gozala/jpm | mpl-2.0 | 2,323 | 67 | codeparrot/github-code |
9dcee4f1701ab18041599e5522ff1bec80e87cb685b7edcbd06f7f6e516ef46e | package aws
import (
"fmt"
"strconv"
"strings"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/service/elb"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
)
func resourceAwsLoadBalancerBackendServerPolicies() *schema.Resource {
return &schema.Resou... | GO | aws/resource_aws_load_balancer_backend_server_policy.go | kjmkznr/terraform-provider-aws | mpl-2.0 | 4,213 | 140 | codeparrot/github-code |
c445ad2c95e67e82cca0a448fce32a5b7cc9ae3bd15352dbd78695bd61d5dbee | ---
subcategory: "Big Data Service"
layout: "oci"
page_title: "Oracle Cloud Infrastructure: oci_bds_auto_scaling_configuration"
sidebar_current: "docs-oci-resource-bds-auto_scaling_configuration"
description: |-
Provides the Auto Scaling Configuration resource in Oracle Cloud Infrastructure Big Data Service service
-... | Markdown | website/docs/r/bds_auto_scaling_configuration.html.markdown | oracle/terraform-provider-baremetal | mpl-2.0 | 5,964 | 110 | codeparrot/github-code |
f26f15083d0f56627fcbec940a5a09191b7de699062b1a9e858b473ec6aad66b | /*
* Copyright (c) 2012 Steve Roberts / Essar Software. All Rights Reserved.
*
* 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 uk.co.essarsoftware.par.engine... | Java | src/test/java/uk/co/essarsoftware/par/engine/std/PlayerImplWithHandTest.java | essar/prials-and-runs | mpl-2.0 | 3,147 | 100 | codeparrot/github-code |
9046cf0df5982b9d762000f33020183e0f96f4d2c63165bcaabb12157ff9443a | /* -*- Mode: java; 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/. */
package jscover.mozilla.javascrip... | Java | src/jscover/mozilla/javascript/ast/IfStatement.java | tntim96/rhino-jscover-repackaged | mpl-2.0 | 4,530 | 187 | codeparrot/github-code |
0bd884dec323d59dda6e7493529ce7f980547b7ea7a3e52dfe7c1f941e0d2ee1 | <!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 `Tokenizer` struct in crate `html5ever`.">
<meta name="keyw... | HTML | html5ever/tokenizer/struct.Tokenizer.html | susaing/doc.servo.org | mpl-2.0 | 22,285 | 224 | codeparrot/github-code |
d69ed7b6fd2ed688fea2c9aa3fa20008a825fb4d40f4d20cd4d87e33d031ff57 | package org.gene.modules.textFile;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.RandomAccessFi... | Java | src/org/gene/modules/textFile/Test.java | llggkk1117/TextFile | mpl-2.0 | 2,661 | 131 | codeparrot/github-code |
b468aa2494d87dec5e07591f3b332f5d254ea7638c54aacb9189b33d15b753e6 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** 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 Lic... | C++ | content/xul/templates/src/nsXMLBinding.cpp | tmhorne/celtx | mpl-2.0 | 4,918 | 153 | codeparrot/github-code |
699bcb0935df86a3de10b3343d116fdc45eeffd49583325e5f23e320ef1a8bd5 | /* @flow */
import * as React from 'react';
import Link from 'amo/components/Link';
import { addParamsToHeroURL, checkInternalURL } from 'amo/utils';
import tracking from 'core/tracking';
import LoadingText from 'ui/components/LoadingText';
import type {
HeroCallToActionType,
SecondaryHeroShelfType,
} from 'amo/re... | JavaScript | src/amo/components/SecondaryHero/index.js | kumar303/addons-frontend | mpl-2.0 | 3,823 | 136 | codeparrot/github-code |
2906e021ba3e620d32d4016c110c1be8863bc4f74443cd3c27b851cf3b48df9d | /*************************************************************************************
*filename: rudp_ccc.h
*
*to do: RUDP·¢ËÍÂëÂÊ¿ØÖÆÆ÷£¬ÊµÏÖ´ø¿íÆÀ¹À¡¢·¢ËÍ´°¿Ú¾ö²ß¡¢RTT¼ÆËãµÈ
*Create on: 2013-04
*Author: zerok
*check list:
*************************************************************************************/
#ifndef... | C | common/rudp/rudp_ccc.h | yuanrongxi/revolver | mpl-2.0 | 1,692 | 79 | codeparrot/github-code |
e42a825a825230673411a6354d4ed5bc0b56c59016c2a8ff30cb984e7e299d26 | {-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | Haskell | amazonka-cloudtrail/gen/Network/AWS/CloudTrail/DescribeTrails.hs | dysinger/amazonka | mpl-2.0 | 3,895 | 124 | codeparrot/github-code |
f57d1941f740b117343f83c3787b4ea2db3312c0e79c18bfb61ea782dee401ab | /*
* 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/.
*/
/*
* Copyright (c) 2015, Joyent, Inc.
*/
var url = require('url');
var assert = require('assert-plus');
va... | JavaScript | test/vms.marker.test.js | richardkiene/sdc-vmapi | mpl-2.0 | 19,701 | 569 | codeparrot/github-code |
1594c9254867080d29b4a00c3a75a79f1a32e5cee30cd92c574d013f7c7f9bab | /*
* 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 com.skelril.skree.content.registry.item.tool.axe;
import com.skelril.nitro.registry.ItemTier;
import ... | Java | src/main/java/com/skelril/skree/content/registry/item/tool/axe/CrystalAxe.java | Skelril/Skree | mpl-2.0 | 1,351 | 53 | codeparrot/github-code |
323405c801fcb94048b5907a3ec0a8e0acc4246e08dd9f2c61384b891e8d49df | <!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 `OneshotTimerHandle` struct in crate `script`.">
<meta name... | HTML | script/timers/struct.OneshotTimerHandle.html | servo/doc.servo.org | mpl-2.0 | 17,763 | 155 | codeparrot/github-code |
53fb9fd33d3b5660a03008c89d89d4f1da25ae3bf79c9990604cb7130a4882e4 | <!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">
<title>Ownership</title>
<link rel="stylesheet" type="text/css" href="rust-book.css">
</head>
<body class="rustdoc">
... | HTML | book/ownership.html | susaing/doc.servo.org | mpl-2.0 | 21,749 | 486 | codeparrot/github-code |
3624599549a67fcaf618eac308d1722896dbf13d7fc4cd3fde9e754dc9e638fd | /**
* Copyright (C), 2012 Adaptinet.org (Todd Fearn, Anthony Graffeo)
*
* 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.adaptinet.pee... | Java | src/org/adaptinet/peer/PeerFile.java | tfearn/AdaptinetSDK | mpl-2.0 | 2,831 | 128 | codeparrot/github-code |
b8afd964fff0e9695a922c0819681a9594123cd8e3d862a9cd7d4b4e0d12a06c | <!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 `AstBuilder` struct in crate `aster`.">
<meta name="keyword... | HTML | aster/struct.AstBuilder.html | servo/doc.servo.org | mpl-2.0 | 18,146 | 162 | codeparrot/github-code |
2a5eb92770bde28990b846c34974d56fea04404443eef2878a54cadbf7c4b761 | package com.mifos.mifosxdroid.injection.component;
import com.mifos.mifosxdroid.activity.pathtracking.PathTrackingActivity;
import com.mifos.mifosxdroid.activity.pinpointclient.PinpointClientActivity;
import com.mifos.mifosxdroid.dialogfragments.chargedialog.ChargeDialogFragment;
import com.mifos.mifosxdroid.dialogfra... | Java | mifosng-android/src/main/java/com/mifos/mifosxdroid/injection/component/ActivityComponent.java | CloudyPadmal/android-client | mpl-2.0 | 7,297 | 157 | codeparrot/github-code |
357f92dcc9b65719cc505ca1b4b4e603749c16d4495cff37f44d1172fd70a628 | package com.codejockey.canvas.com.codejockey.canvas.helperfiles;
/* Canvas Drawing class
Accepts touch events and draws curves on a canvas. Solves these
major problems:
* Smooths jagged lines by drawing b-spline curves between sample
points.
* Snaps curve start and end points to the border to ... | Java | app/src/main/java/com/codejockey/canvas/helperfiles/Drawing.java | hintjens/Canvas | mpl-2.0 | 23,382 | 652 | codeparrot/github-code |
a1c2403375057fb0bbf55ccd299ab4bd7477f9ebc0e4c1bd8af40d2380c46ef3 | package main.origo.core.utils;
import main.origo.core.InitializationException;
import main.origo.core.ModuleException;
import play.Logger;
import play.Play;
public class ExceptionUtil {
/**
* Transforms a nested exception into a simple runtime exception and throws it if in DEV mode.
* Only logs the exc... | Java | modules/core/app/main/origo/core/utils/ExceptionUtil.java | origocms/origo | mpl-2.0 | 1,459 | 45 | codeparrot/github-code |
fb93da38f141e31da2db3a422e460d11a5578f1014a8abe0149e3c6ea247243e | <?php
namespace TwelveCode\MShell;
abstract class ACommand
{
/**
* Call argument count
* @var int
*/
protected $_argc;
/**
* Call argument list
* @var string[]
*/
protected $_argv;
/**
* Holds the command's result
* @var null|mixed
*/
protected... | PHP | lib/TwelveCode/MShell/ACommand.php | twelvecode/mshell | mpl-2.0 | 2,344 | 134 | codeparrot/github-code |
ccbeff77f5ac23c68cd871aac642b4184698470388148b77bdca7f909970c6d4 | package command
import (
"encoding/hex"
"fmt"
"log"
"net"
"net/http"
"net/url"
"os"
"os/signal"
"runtime"
"sort"
"strconv"
"strings"
"syscall"
"time"
"github.com/armon/go-metrics"
"github.com/hashicorp/errwrap"
"github.com/hashicorp/go-multierror"
"github.com/hashicorp/logutils"
"github.com/hashico... | GO | command/server.go | annanay25/vault | mpl-2.0 | 19,730 | 714 | codeparrot/github-code |
19f0f26d3e2733f792fc46b69644f96a81c4960e5b68330afc097c169ae55469 | /**
* Image Processing
*
* In imaging science, image processing is any form of signal processing for
* which the input is an image, such as a photograph or video frame; the output
* of image processing may be either an image or a set of characteristics or
* parameters related to the image. Most image-processing ... | JavaScript | lib/processing.js | team178/oculus.js | mpl-2.0 | 1,968 | 72 | codeparrot/github-code |
dcb82bf9077f8040037539fd2beb59e538cafa71dd624c606175e05105828751 | package cmd
import (
"fmt"
"os"
"gopkg.in/alecthomas/kingpin.v2"
"github.com/guzzlerio/corcel/config"
"github.com/guzzlerio/corcel/core"
"github.com/guzzlerio/corcel/errormanager"
"github.com/guzzlerio/corcel/logger"
"github.com/guzzlerio/corcel/report"
)
// ServerCommand ...
type ServerCommand struct {
Po... | GO | cmd/Commands.go | guzzlerio/corcel | mpl-2.0 | 3,522 | 98 | codeparrot/github-code |
8695e590f6f6bac66484b4ff23a5dbd1934f86e6d952738f2bb676af1eff1620 | /* -*- Mode: java; 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/. */
package org.mozilla.javascript.or... | Java | src/org/mozilla/javascript/orginal/ast/ObjectProperty.java | WolframG/Rhino-Prov-Mod | mpl-2.0 | 3,013 | 109 | codeparrot/github-code |
bf59b3d0ae305c176609303685fdc38e562f80137b11ee63839b760e515abe4e | /*
* taskapi.
*/
var input_taskname_text = '<input type="text" id="task_name_{0}" value="{1}" class="form-control">';
var input_taskdesc_text = '<input type="text" id="task_desc_{0}" value="{1}" class="form-control">';
var btn_update_task = '<a href="#" class="btn-update-task btn btn-sm btn-success" data-taskid="... | JavaScript | TaskilyWeb/Scripts/admin/tasks.js | Jumoo/Taskily | mpl-2.0 | 7,152 | 232 | codeparrot/github-code |
517e8c356dbd243ef9446c84abc87b767e1640363badaed99509b1fc1b9b1a1d | /* -*- Mode: C++; tab-width: 4; 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/. */
/*
Implementations for the rule... | C++ | dom/xul/templates/nsRuleNetwork.cpp | Yukarumya/Yukarum-Redfoxes | mpl-2.0 | 11,076 | 429 | codeparrot/github-code |
be3017deec1843ccd794f1ef466411e9248cdf87ada30256949902058873fcf2 | (function () {
'use strict'
var SIZE
var COLUMNS
var UNICODES = {
'w': '\u26C0',
'b': '\u26C2',
'B': '\u26C3',
'W': '\u26C1',
'0': ' '
}
var START_FEN
function validMove (move) {
// move should be a string
if (typeof move !== 'string') return false
// move should be in t... | JavaScript | draughtsboard.js | shubhendusaurabh/draughtsboardJS | mpl-2.0 | 49,458 | 1,696 | codeparrot/github-code |
3727a50e789cbca9c90d0c55595483c308f472178db62faa9a613b5c04ba7616 | /* 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/. */
use font::UsedFontStyle;
use platform::font::FontHandle;
use font_context::FontContextHandleMethods;
use platform:... | Rust | src/components/gfx/platform/android/font_context.rs | brson/servo | mpl-2.0 | 1,696 | 61 | codeparrot/github-code |
00f46359cc5cb03911765772abc566881eb3ff9619907d629d6e04497a83e70a | using System;
using System.Collections.Generic;
using System.Linq;
using Alex.MoLang.Runtime;
using Alex.MoLang.Runtime.Value;
using Alex.MoLang.Utils;
namespace Alex.MoLang.Parser.Expressions
{
public class FuncCallExpression : Expression
{
public IExpression Name { get; set; }
public IExpression[] Args { get... | C# | src/Alex.MoLang/Parser/Expressions/FuncCallExpression.cs | kennyvv/Alex | mpl-2.0 | 961 | 37 | codeparrot/github-code |
d98887e55d65cda7f8abe8841461ed4c53b103e5e7be6ae3ff86ff96b63a6a54 | using System;
using System.Linq;
using System.Linq.Expressions;
using AutoMapper;
using Core.DomainModel;
namespace Presentation.Web.Extensions
{
public static class AutoMapperExtensions
{
public static IMappingExpression<TSource, TDestination> IgnoreDestinationValueFor<TSource, TDestination, TMember>... | C# | Presentation.Web/Extensions/AutomapperExtensions.cs | os2kitos/kitos | mpl-2.0 | 1,662 | 43 | codeparrot/github-code |
de1c4d87e73c6cf29e5149ff998d1f87266ad4d1d739a79519fbb5c09bfd468d | /* 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/. */
using System;
using System.Collections.Generic;
using System.Reflection;
namespace Enigma.Reflection
{
... | C# | Enigma/src/Enigma/Reflection/ReflectionGraphTraveller.cs | jaygumji/Enigma | mpl-2.0 | 1,947 | 55 | codeparrot/github-code |
15380b395b072e6d983d85718344586bd998313b142f859ccb29a2dc89bfc58e | package org.threadly.concurrent.benchmark.jmh;
import java.util.concurrent.TimeUnit;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.BenchmarkMode;
import org.openjdk.jmh.annotations.Fork;
import org.openjdk.jmh.annotations.Measurement;
import org.openjdk.jmh.annotations.Mode;
import o... | Java | src/main/java/org/threadly/concurrent/benchmark/jmh/ImmediateListenableFutureMicro.java | threadly/threadly_benchmarks | mpl-2.0 | 2,460 | 70 | codeparrot/github-code |
cf244011244eb95afccc491e46902036517b19669eea33bef0469061dd0764b8 | <!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 `MarginCollapseState` enum in crate `layout`.">
<meta name=... | HTML | layout/model/enum.MarginCollapseState.html | susaing/doc.servo.org | mpl-2.0 | 5,405 | 114 | codeparrot/github-code |
909d9ee75139f71ec4a8c59a3f989dcad42b8be40d5e651ec8b25df53b1c8389 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* This file is part of the libetonyek project.
*
* 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://mozill... | C++ | src/lib/IWORKPresentationRedirector.cpp | freedesktop-unofficial-mirror/libreoffice__libetonyek | mpl-2.0 | 12,485 | 557 | codeparrot/github-code |
64528ba5c3a976034b11dbd3c22b61ef02c7a416a8e50d0f9e7e53c985f71d52 | <template name="returnedCurrencies" class="home-currencies">
<div class="container-fluid">
<!--- Currency Filter -->
<div class="modal currencyFilterModal" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5... | HTML | imports/ui/pages/returnedCurrencies/returnedCurrencies.html | Blockrazor/blockrazor | mpl-2.0 | 6,649 | 161 | codeparrot/github-code |
6f8dc604d12ed52ebee7f90c83fcfa9661755d7e321d3dd5ef7530fc91533a8b | package org.jcodec.containers.mp4.boxes;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.List;
import org.jcodec.common.tools.ToJSON;
/**
* This class is part of JCodec ( www.jcodec.org ) This software is distributed
* under FreeBSD License
*
* @author The JCodec project
*
*/
public ... | Java | src/org/jcodec/containers/mp4/boxes/EditListBox.java | OpenSpaceDev/OpenSpaceDVR | mpl-2.0 | 1,602 | 70 | codeparrot/github-code |
56c0466145af446ab8be05ca94a3881c9ad9d53e7d976bbf8f845f9afc5764c3 | /**
* Copyright (c) 2013-2015, 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.seed.web;
i... | Java | web/websocket/src/it/java/org/seedstack/seed/web/ChatClientEndpoint2.java | tbouvet/seed | mpl-2.0 | 1,244 | 43 | codeparrot/github-code |
1267fb1dc465dc4a395ddecf2023242b40793bc7523632600872397f77606ddf | package org.autojs.autojs.model.script;
import android.app.Activity;
import android.content.Context;
import android.os.Build;
import android.text.TextUtils;
import android.widget.Toast;
import java.io.File;
import static android.Manifest.permission.READ_EXTERNAL_STORAGE;
import static android.content.pm.PackageManag... | Java | app/src/main/java/org/autojs/autojs/model/script/PathChecker.java | hyb1996/NoRootScriptDroid | mpl-2.0 | 1,807 | 62 | codeparrot/github-code |
14097c9d81c75541f70ad45103c77f6b1bfe67efd5eddaac1a77da1b74d6a986 | /* 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 https://mozilla.org/MPL/2.0/. */
use crate::cell::ArcRefCell;
use crate::context::LayoutContext;
use crate::dom_traversal::{Contents, NodeAndStyle... | Rust | components/layout_2020/positioned.rs | splav/servo | mpl-2.0 | 28,537 | 722 | codeparrot/github-code |
5ede46fc1e8c893d8e2b57e0271360daf290dfe1150a9df44a65ab7e9580ed89 | package ecs
import (
"context"
"encoding/base64"
"fmt"
"io/ioutil"
"strconv"
"github.com/hashicorp/packer/common/uuid"
"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
"github.com/aliyun/alibaba-cloud-sdk-go/services/ecs"
confighelper "github.com/... | GO | builder/alicloud/ecs/step_create_instance.go | timsutton/packer | mpl-2.0 | 6,138 | 206 | codeparrot/github-code |
6d77193304ee9f528a009d636c7c4cc4fb4cada0608d3bbf22a3d7cb24ed2a31 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008-2016 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// 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 c... | C | external/Eigen/src/Core/functors/NullaryFunctors.h | filiatra/gismo | mpl-2.0 | 8,260 | 189 | codeparrot/github-code |
562cb5ee309fbeb3114fe9f81def30f14bbe0253709d1f876fc6358c0554185a | /* 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/. */
"use strict";
var convict = require('convict');
var format = require('util').format;
var getHashes = require('cry... | JavaScript | loop/config.js | mozilla-services/loop-server | mpl-2.0 | 15,679 | 607 | codeparrot/github-code |
2eb82a030d4a5dabe1a4fc5c3e6a27921f6522085de1ea9cc08dad28b5c7919a | /*
* Copyright (C) 2000 - 2021 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-library/src/main/java/org/silverpeas/core/contribution/content/form/displayers/AbstractFileFieldDisplayer.java | SilverDav/Silverpeas-Core | agpl-3.0 | 11,829 | 283 | codeparrot/github-code |
0047ba9df492b03a71cb7b183d18b979c9ea2b4e51098b4234069dc3bb0cc4b5 | <?php
namespace App\Repository;
use Doctrine\ORM\EntityManager;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
use Symfony\Component\HttpFoundation\ParameterBag;
use App\Entity\Author;
use App\Entity\Track;
use App\Entity\Tracklist;
use App\Entity\Tra... | PHP | src/Repository/TracklistRepository.php | RadioStudent/picapica | agpl-3.0 | 6,370 | 178 | codeparrot/github-code |
100b3dbe42b296490e75e815512a059b6f2e0155d1044aeae4579f31b1233604 | using common;
namespace wServer.networking.packets.outgoing
{
public class Text : OutgoingMessage
{
public string Name { get; set; }
public int ObjectId { get; set; }
public int NumStars { get; set; }
public int Admin { get; set; }
public byte BubbleTime { get; set; }
... | C# | wServer/networking/packets/outgoing/Text.cs | cp-nilly/NR-CORE | agpl-3.0 | 1,558 | 49 | codeparrot/github-code |
fe2d90a354241d483f1fb54e8bf42a3610188652578958523970f2a68852e586 | <?php
/**
* @package api
* @subpackage objects
*/
class KalturaRuleActionArray extends KalturaTypedArray
{
public static function fromDbArray($arr)
{
$newArr = new KalturaRuleActionArray();
if ($arr == null)
return $newArr;
foreach ($arr as $obj)
{
$nObj = self::getInstanceByDbObject($obj);
if(!$... | PHP | api_v3/lib/types/rules/actions/KalturaRuleActionArray.php | jessp01/server | agpl-3.0 | 1,224 | 48 | codeparrot/github-code |
0970291fec882a6cae1def7c5b7af30e5bd2d8eb951356d69bd20b6c5bb6dcd0 |
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Interfaces Quick Ref — qooxdoo v1.3 documenta... | HTML | devtools/qooxdoo-sdk/documentation/manual/pages/core/interface_quickref.html | FireWalkerX/eyeOS-FOSS-V.2.0 | agpl-3.0 | 11,450 | 154 | codeparrot/github-code |
53be7535a622f31b79649075cbf4776e0f5b7a1411f673602877ee6cf5abecc9 | function Component(type,id,uri,name,query,inputList,x,y) {
// this.code = code;
// this.type = type;
this.componentId = id;
this.uri = uri;
this.name = name;
this.query = query;
this.inputList = inputList;
this.x = x;
this.y = y;
};
Component.prototype = {
constructor: Component,
// getCode: fu... | JavaScript | WebContent/components/Union.js | miguel76/WorldPipes | agpl-3.0 | 4,217 | 134 | codeparrot/github-code |
500065f0f7c68889a18c059db73e5db31e2ba4a8e1d866441a989f756f12e4c1 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MSTech.CoreSSO.BLL;
using MSTech.CoreSSO.Entities;
using MSTech.GestaoEscolar.BLL;
using MSTech.GestaoEscolar.Web.WebProject;
public partial class Classe_EfetivacaoGestor_Bu... | C# | Src/GestaoEscolar/Classe/EfetivacaoGestor/Busca.aspx.cs | prefeiturasp/SME-SGP | agpl-3.0 | 15,745 | 487 | codeparrot/github-code |
5b167e4a62c673b18d74846df1ce7668f6cb61a3c0a7be753aec9b88a8b8f129 | {% load markup_tags humanize rsr_filters %}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Program overview</title>
<style>{% include 'reports/program-overview.css' %}</style>
</head>
<body>
<header>
<div class="title">Program</div>
<div class="doc-title">{{ program.title... | HTML | akvo/templates/reports/program-overview.html | akvo/akvo-rsr | agpl-3.0 | 7,664 | 200 | codeparrot/github-code |
0080ebf10e6cdb9c79053f87381387ade2308277c6c142cad5f44fca975ef2bf | # coding=utf-8
# Copyright (c) 2001-2014, Canal TP and/or its affiliates. All rights reserved.
#
# This file is part of Navitia,
# the software to build cool stuff with public transport.
#
# Hope you'll enjoy and contribute to this project,
# powered by Canal TP (www.canaltp.fr).
# Help us simplify mobility and open p... | Python | source/jormungandr/jormungandr/modules/v1_routing/v1_routing.py | TeXitoi/navitia | agpl-3.0 | 9,012 | 224 | codeparrot/github-code |
d0d14ac474dfeee9ba3dbb8679ee7c219dca2177256e913f701041d5f30d53d5 | using System;
using System.Linq;
using Terraria.ModLoader;
using Terraria.UI;
using HamstarHelpers.Classes.UI.Elements;
using HamstarHelpers.Helpers.Debug;
using HamstarHelpers.Helpers.DotNET.Threading;
using HamstarHelpers.Helpers.ModHelpers;
using HamstarHelpers.Helpers.TModLoader.Mods;
namespace HamstarHelpers.In... | C# | HamstarHelpers/Internals/ControlPanel/ModControlPanel/UIModControlPanel_ModList.cs | hamstar0/tml-hamstarhelpers-mod | agpl-3.0 | 3,008 | 135 | codeparrot/github-code |
7c3dfa49bc0345808c844eaaa6f6e901b10695b652c7f2c531cc42196f5eecf1 | #pragma once
/* Copyright STIFTELSEN SINTEF 2014
*
* This file is part of FRView.
* FRView 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) a... | C++ | src/render/mesh/PolygonSetInterface.hpp | sintefmath/FRView | agpl-3.0 | 1,989 | 78 | codeparrot/github-code |
6fc854fba97552a6a89844f391a25b72736532e2462f0e0c2d12e9ae120381bb | =begin
CIRCL Directory
Copyright (C) 2011 Complex IT sàrl
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.
... | Ruby | app/models/generic_template.rb | theoo/circl | agpl-3.0 | 3,864 | 143 | codeparrot/github-code |
9701b3e26a2bf5efbbc27b503beed29e783e4c8b455d779d39e2559d6c2b98e3 | # Copyright 2019 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import _, api, fields, models
from odoo.exceptions import ValidationError
class EbillPaymentContract(models.Model):
_inherit = "ebill.payment.contract"
paynet_account_number = fields.Char(string="Paynet ... | Python | ebill_paynet/models/ebill_payment_contract.py | OCA/l10n-switzerland | agpl-3.0 | 1,855 | 49 | codeparrot/github-code |
08f6fb2f9a717d60bc1aebd7e74eec8f23524b3d45a26861d9e62c05a517b9c0 | /*
This file is a part of libertysoil.org website
Copyright (C) 2016 Loki Education (Social Enterprise)
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, o... | JavaScript | src/prop-types/common.js | Lokiedu/libertysoil-site | agpl-3.0 | 5,950 | 209 | codeparrot/github-code |
113a76831eae229aca1c01429900541bc0946a853c53cbb61043d48d1ce51c22 | <?php
/**
* @author Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @license AGPL-3.0
*
* This code is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distribut... | PHP | app/Tasting/TastingSessionValidator.php | ChristophWurst/weinstein_server | agpl-3.0 | 2,136 | 87 | codeparrot/github-code |
0821fb7625dcbb8e8ac707f560433c28e2085499e793baaf9a20da72392dec82 | package charm
import (
"errors"
"fmt"
"os"
)
// The Charm interface is implemented by any type that
// may be handled as a charm.
type Charm interface {
Meta() *Meta
Config() *Config
Revision() int
}
// Read reads a Charm from path, which can point to either a charm bundle or a
// charm directory.
func Read(pa... | GO | charm/charm.go | prabhakhar/juju-core | agpl-3.0 | 987 | 46 | codeparrot/github-code |
a35881cd67fe9c40a205d9f6ad94670b303abd5a5c4c4173a6676a326013ddf8 | # --
# Kernel/System/CustomerCompany/DB.pm - some customer user functions
# Copyright (C) 2001-2014 OTRS AG, http://otrs.com/
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/li... | Perl | Kernel/System/CustomerCompany/DB.pm | PortgasDAce/otrs | agpl-3.0 | 12,650 | 433 | codeparrot/github-code |
2a36c5ebd56c0eba8b663bb2a9f2a0ef7767494127cb4e750c9d14ae49bdcbb9 | class LocationPost < ApplicationRecord
include Trackable
extend FriendlyId
friendly_id :title
belongs_to :graetzl
belongs_to :location
has_many :comments, as: :commentable, dependent: :destroy
has_many :images, as: :imageable, dependent: :destroy
accepts_nested_attributes_for :images, allow_destroy: t... | Ruby | app/models/location_post.rb | imGraetzl/im_graetzl | agpl-3.0 | 796 | 40 | codeparrot/github-code |
4b79318b7754d7a62a7abe412d3b9bde41956484ea91695498cc71ede30fdd26 | # Copyright (c) 2014 by Ecreall under licence AGPL terms
# available on http://www.gnu.org/licenses/agpl.html
# licence: AGPL
# author: Amen Souissi
import deform
from pyramid.view import view_config
from dace.processinstance.core import DEFAULTMAPPING_ACTIONS_VIEWS
from pontus.default_behavior import Cancel
from p... | Python | novaideo/views/reports_management/restor.py | ecreall/nova-ideo | agpl-3.0 | 2,013 | 68 | codeparrot/github-code |
f0b67b7e90d9a0c425c4413e74c9773d2d64437a046b515a87e9ed66f8e2eb99 | <?php
/**
* Clipit Web Space
* PHP version: >= 5.2
* Creation date: 7/07/14
* Last update: 7/07/14
* @author Miguel Ángel Gutiérrez <magutierrezmoreno@gmail.com>, URJC Clipit Project
* @version $Version$
* @link http://clipit.es
* @license GNU Affero General Public... | PHP | mod/z04_clipit_activity/views/default/activity/create/step_1.php | juxtalearn/clipit | agpl-3.0 | 8,947 | 242 | codeparrot/github-code |
85e86319ec3e51f510cb75aa028f25478339e9f5493df6ea5aa7b695c193b048 | <?php
/**
* CommitFile
* Every file in a Commit is wrapped in this.
*
* @author James Brooks <jbrooksuk@me.com>
*/
class CommitFile {
protected $File;
protected $Commit;
public function __construct($File, $Commit) {
$this->File = $File... | PHP | php/PhpCheckStyle/test/issue85.php | Upgrade-Digital/client | agpl-3.0 | 1,334 | 51 | codeparrot/github-code |
7b900054f1f84b33d744d48c7e6ddf0fc692216fce3962512621adfe7d677018 | <?php
/*********************************************************************************
* Zurmo is a customer relationship management program developed by
* Zurmo, Inc. Copyright (C) 2014 Zurmo Inc.
*
* Zurmo is free software; you can redistribute it and/or modify it under
* the terms of t... | PHP | app/protected/modules/home/controllers/DefaultController.php | maruthisivaprasad/zurmo | agpl-3.0 | 14,310 | 308 | codeparrot/github-code |
95be5d880ee24b711c97d858d0855690d3ba8298d9316364c709bf5d26a70cff | /*
* The Kuali Financial System, a comprehensive financial management system for higher education.
*
* Copyright 2005-2017 Kuali, 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 Foundat... | Java | kfs-core/src/main/java/org/kuali/kfs/sys/service/impl/KfsBusinessObjectMetaDataServiceImpl.java | quikkian-ua-devops/will-financials | agpl-3.0 | 10,695 | 193 | codeparrot/github-code |
f3d563127349e452e739f3c029a41d0f60e8e6135b6813681ac1c3419bf916fa | /*
* ARCEMU MMORPG Server Software
* Copyright (c) 2008-2012 ARCEMU Server Team
* See COPYING for license details.
*/
#pragma once
#define WINTERGRASP 4197
#define A_NUMVEH_WORLDSTATE 3680
#define A_MAXVEH_WORLDSTATE 3681
#define H_NUMVEH_WORLDSTATE 3490
#define H_MAXVEH_WORLDSTATE 3491
#define HORDE_CONTROLLED ... | C | src/arcemu-world/Wintergrasp.h | satanail/ArcTic-d | agpl-3.0 | 1,458 | 64 | codeparrot/github-code |
f34ac7d760e868f6060c16a92070bcabb7694162c730d42edd27038a2f0d3040 | engine.eval("load('nashorn:mozilla_compat.js');");
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 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 modi... | JavaScript | src/scripts/npc/2082002.js | Micah-S/hidden-ms | agpl-3.0 | 2,408 | 64 | codeparrot/github-code |
f5bae9eefcd605d4c4881696f7a058f048895140a7fcd05f7f95e4915a343408 | /*
* Asqatasun - Automated webpage assessment
* Copyright (C) 2008-2020 Asqatasun.org
*
* This file is part of Asqatasun.
*
* Asqatasun 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 ve... | Java | rules/rules-accessiweb2.2/src/test/java/org/asqatasun/rules/accessiweb22/Aw22Rule06011Test.java | Asqatasun/Asqatasun | agpl-3.0 | 49,488 | 828 | codeparrot/github-code |
772ffba7069d21a9f2d3d6e66493914bd1101e12165d1ea6b6eb9e0674793f0b | package main
import (
"database/sql"
"io/ioutil"
"net/http"
"os"
"path/filepath"
"strconv"
"github.com/go-martini/martini"
"github.com/martini-contrib/render"
. "github.com/russross/codegrinder/types"
"github.com/russross/meddler"
)
// GetProblemTypes handles a request to /v2/problemtypes,
// returning a c... | GO | server/problem.go | russross/codegrinder | agpl-3.0 | 12,910 | 398 | codeparrot/github-code |
b1f39a66576a3dff944826154727b687b51369bbe4f883b3f8df4b22e3989022 | /*
* Copyright 2008, 2009 Free Software Foundation, Inc.
*
* This software is distributed under the terms of the GNU Affero Public License.
* See the COPYING file in the main directory for details.
*
* This use of this software may be subject to additional restrictions.
* See the LEGAL file in the main directory for de... | C++ | Transceiver52M/radioInterface.cpp | kkroo/osmo-trx | agpl-3.0 | 9,798 | 405 | codeparrot/github-code |
ca01af87cd1ff2b0ef0a243ca14566b89304b43c541a4f3e80b1ba5cfdba67c2 | /*
* Copyright (C) 2000 - 2021 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-api/src/test/java/org/silverpeas/core/variables/VariableTest.java | SilverDav/Silverpeas-Core | agpl-3.0 | 4,378 | 116 | codeparrot/github-code |
24acadb2032b4a95a9cc92a2a274278848283457395596862456f27f9a4e520a | # coding=utf-8
# This file is part of Bika LIMS
#
# Copyright 2011-2016 by it's authors.
# Some rights reserved. See LICENSE.txt, AUTHORS.txt.
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
from bika.lims.browser.bika_listing import BikaListingTable
from bika.lims.browser.worksheet.views.anal... | Python | bika/lims/browser/worksheet/views/analyses_transposed.py | rockfruit/bika.lims | agpl-3.0 | 4,358 | 108 | codeparrot/github-code |
5ae359f7d1131796ec8a0e0084bb294af675fd0edee8e4a2b2ec55d4dc137433 | package nl.wietmazairac.bimql.set.attribute;
/******************************************************************************
* Copyright (C) 2009-2017 BIMserver.org
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* publish... | Java | BimQL/src/nl/wietmazairac/bimql/set/attribute/SetAttributeSubIfcRelAssociatesApproval.java | opensourceBIM/bimql | agpl-3.0 | 2,678 | 95 | codeparrot/github-code |
8acfb6f5d38f8abeaa9edf89788f03a8142b5bb2f7fea2d3508fb2de790a54df | <?php
/*
* ----------------------------------------------------------------------------
* Decoro Urbano version 0.4.0
* ----------------------------------------------------------------------------
* Copyright Maiora Labs Srl (c) 2012
* ---------------------------------------------------------------------------- ... | PHP | pagine/dettaglioSegnalazione.php | Wikitalia/Protezione-Civica | agpl-3.0 | 3,177 | 76 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.