code stringlengths 3 1.05M | repo_name stringlengths 4 116 | path stringlengths 4 991 | language stringclasses 9
values | license stringclasses 15
values | size int32 3 1.05M |
|---|---|---|---|---|---|
//
// MIT License
//
// Copyright (c) Deif Lou
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, me... | DeifLou/anitools | src/plugins/imagefilter_autothreshold/filter.cpp | C++ | gpl-3.0 | 10,641 |
# -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-02-20 22:01
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('erudit', '0065_auto_20170202_1152'),
]
operations = [
migrations.AddField(
... | erudit/zenon | eruditorg/erudit/migrations/0066_issue_force_free_access.py | Python | gpl-3.0 | 505 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;... | tor4kichi/ReactiveFolder | Module/InstantAction/Views/InstantActionPage.xaml.cs | C# | gpl-3.0 | 1,475 |
package bartburg.nl.backbaseweather.provision.remote.controller;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.lang.annotation.Annotation;
import java.net.HttpURLConnection... | bartburg/backbaseweatherapp | app/src/main/java/bartburg/nl/backbaseweather/provision/remote/controller/BaseApiController.java | Java | gpl-3.0 | 3,934 |
/*****************************************************************
* This file is part of CCAFS Planning and Reporting Platform.
* CCAFS P&R 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... | CCAFS/ccafs-ap | impactPathways/src/main/java/org/cgiar/ccafs/ap/data/dao/mysql/MySQLProjectOtherContributionDAO.java | Java | gpl-3.0 | 6,952 |
// ReSharper disable CheckNamespace
using System;
using System.Collections.Generic;
public class Program
{
public static void Main()
{
var people = new Dictionary<string, Person>();
string input;
while ((input = Console.ReadLine()) != "End")
{
var split = input.Spl... | martinmladenov/SoftUni-Solutions | CSharp OOP Basics/Exercises/01. Defining Classes - Exercise/Google/Program.cs | C# | gpl-3.0 | 1,441 |
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the ... | basdog22/Qool | lib/Zend/Form/Element/Exception.php | PHP | gpl-3.0 | 1,225 |
// +build linux
package subsystem
import (
"bufio"
"errors"
"fmt"
"io"
"os"
"os/exec"
"runtime"
"strconv"
"strings"
)
type PlatformHeader LinuxHeader
func NewPlatformHeader() *LinuxHeader {
header := new(LinuxHeader)
header.Devices = make(map[string]LinuxDevice)
header.getDevsParts()
return header
}
... | hayamiz/perfmonger | core/subsystem/perfmonger_linux.go | GO | gpl-3.0 | 10,563 |
//////////
// item //
//////////
datablock ItemData(YoyoItem)
{
category = "Weapon"; // Mission editor category
className = "Weapon"; // For inventory system
// Basic Item Properties
shapeFile = "./Yoyo.dts";
rotate = false;
mass = 1;
density = 0.2;
elasticity = 0.2;
friction = 0.6;
emap = true;
//gui st... | piber20/BL-FK-GameMode | GameMode_FASTKarts/addons/novelty/Yoyo.cs | C# | gpl-3.0 | 2,759 |
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "services/video_capture/device_mojo_mock_to_media_adapter.h"
#include "services/video_capture/device_client_media_to_mojo_mock_adapter.h"
names... | geminy/aidear | oss/qt/qt-everywhere-opensource-src-5.9.0/qtwebengine/src/3rdparty/chromium/services/video_capture/device_mojo_mock_to_media_adapter.cc | C++ | gpl-3.0 | 1,483 |
package com.ocams.andre;
import javax.swing.table.DefaultTableModel;
public class MasterJurnal extends javax.swing.JFrame {
public MasterJurnal() {
initComponents();
}
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The co... | benyaminl/OCAMS | src/com/ocams/andre/MasterJurnal.java | Java | gpl-3.0 | 15,559 |
/*
* generated by Xtext
*/
package org.eclectic.frontend.parser.antlr;
import com.google.inject.Inject;
import org.eclipse.xtext.parser.antlr.XtextTokenStream;
import org.eclectic.frontend.services.TaoGrammarAccess;
public class TaoParser extends org.eclipse.xtext.parser.antlr.AbstractAntlrParser {
@Inject
priva... | jesusc/eclectic | plugins/org.eclectic.frontend.syntax/src-gen/org/eclectic/frontend/parser/antlr/TaoParser.java | Java | gpl-3.0 | 1,041 |
<?php
require "common.inc.php";
verifica_seguranca($_SESSION[PAP_RESP_MUTIRAO]);
top();
?>
<?php
$action = request_get("action",-1);
if($action==-1) $action=ACAO_EXIBIR_LEITURA;
$est_cha=request_get("est_cha",-1);
if($est_cha==-1)
{
if(isset($_SESSION['cha_id_pref']))
{
$est_cha=$_... | redeecologica/pedidos | estoque_pre.php | PHP | gpl-3.0 | 19,108 |
jQuery(document).ready(function($) {
$('#slide-left').flexslider({
animation: "slide",
controlNav: "thumbnails",
start: function(slider) {
$('ol.flex-control-thumbs li img.flex-active').parent('li').addClass('active');
}
});
});
jQuery(document).ready(function($) {
$('#slide')... | vietnamframework/vietnamframework | app/view/newstreecolumn/js/jquery.flexslider.init.js | JavaScript | gpl-3.0 | 414 |
/*
* This file is part of the command-line tool sosicon.
* Copyright (C) 2014 Espen Andersen, Norwegian Broadcast Corporation (NRK)
*
* This 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 v... | espena/sosicon | src/converter_sosi2tsv.cpp | C++ | gpl-3.0 | 877 |
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace DrakSolz.Projectiles {
public class ChickenEgg : ModProjectile {
public override string Texture { get { return "Terraria/Projectile_318"; } }
public override void SetStaticDefaults() {
DisplayName.SetDefault("Chicke... | Xahlicem/DrakSolz | Projectiles/ChickenEgg.cs | C# | gpl-3.0 | 1,089 |
<?php
/*
##########################################################################
# #
# Version 4 / / / #
# -----------__---/__---__------__----__---/---/- #
# ... | webSPELL/webSPELL-4.2.3SE | admin/gallery.php | PHP | gpl-3.0 | 27,665 |
/*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* 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.
*
* T... | mdsimmo/cake-dungeon | java/com/github/mdsimmo/pixeldungeon/levels/painters/TreasuryPainter.java | Java | gpl-3.0 | 2,296 |
// Copyright 2014 The go-krypton Authors
// This file is part of the go-krypton library.
//
// The go-krypton library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, o... | covertress/go-krypton | trie/trie.go | GO | gpl-3.0 | 13,056 |
class Solution {
public:
string addBinary(string a, string b) {
string sum = "";
int carry = 0;
for (int i = a.size() - 1, j = b.size() - 1; i >= 0 || j >= 0; i--, j--) {
int m = (i >= 0 && a[i] == '1');
int n = (j >... | zemli/Cpp-Tutorial | algorithm/string/Add Binary-optimized.cpp | C++ | gpl-3.0 | 1,206 |
#include "stdafx.h"
#include <gtest/gtest.h>
#include "MonsterHeadingCalculator.h"
namespace PacMan
{
namespace Logic
{
namespace Tests
{
using namespace Logic;
void test_calculate_sets_heading (
Row monster_row,
Column monster_column,
... | tschroedter/cpp_examples | vs2015/Katas/KataPacMan/PacMan.Logic.Tests/MonsterHeadingCalculator.Tests.cpp | C++ | gpl-3.0 | 4,978 |
/** Author: Sharmin Akter **/
/** Created at: 4/30/2012 12:07:26 AM **/
#include<stdio.h>
int main()
{
int i,j,k,p,m,n,t;
while(scanf("%d",&t)==1)
{
for(i=1;i<=t;i++)
{
scanf("%d",&p);
if(p==2||p==3||p==5||p==7||p==13||p==17)
printf("... | sajinia/UVa-Online-Judge | Volume-11/1180-(2 numbery).cpp | C++ | gpl-3.0 | 437 |
/**
* This file is part of JsonFL.
*
* JsonFL is free software: you can redistribute it and/or modify it under the
* terms of the Lesser GNU General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any
* later version.
*
* JsonFL is distributed ... | TrentHouliston/JsonFL | src/main/java/au/com/houliston/jsonfl/InvalidJsonFLException.java | Java | gpl-3.0 | 1,371 |
package edu.kit.iti.formal.mandatsverteilung.generierer;
import edu.kit.iti.formal.mandatsverteilung.datenhaltung.Bundestagswahl;
/**
* Modelliert eine Einschränkung an das Ergebnis des Generierers, dass der
* Bundestag eine bestimmte Größe haben soll.
*
* @author Jan
*
*/
public class SitzzahlEinschraenkung ... | Bundeswahlrechner/Bundeswahlrechner | mandatsverteilung/src/main/java/edu/kit/iti/formal/mandatsverteilung/generierer/SitzzahlEinschraenkung.java | Java | gpl-3.0 | 934 |
#include "definitions.h"
CustomWeakForm::CustomWeakForm(std::vector<std::string> newton_boundaries, double heatcap, double rho, double tau,
double lambda, double alpha, double temp_ext, MeshFunctionSharedPtr<double> sln_prev_time, bool JFNK) : WeakForm<double>(1, JFNK)
{
this->set_ext(sln_prev_time);
// Jacobia... | hpfem/hermes-tutorial | F-trilinos/03-trilinos-timedep/definitions.cpp | C++ | gpl-3.0 | 3,694 |
# -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding unique constraint on 'Vendeur', fields ['code_permanent']
db.create_unique(u'encefal_vendeur', ['co... | nilovna/EnceFAL | project/encefal/migrations/0003_auto__add_unique_vendeur_code_permanent.py | Python | gpl-3.0 | 8,651 |
# $Id$
# Copyright 2013 Matthew Wall
# See the file LICENSE.txt for your full rights.
#
# Thanks to Eddie De Pieri for the first Python implementation for WS-28xx.
# Eddie did the difficult work of decompiling HeavyWeather then converting
# and reverse engineering into a functional Python implementation. Eddie's
# wor... | sai9/weewx-gitsvn | bin/weewx/drivers/ws28xx.py | Python | gpl-3.0 | 174,398 |
# frozen_string_literal: true
RSpec.shared_examples 'vcs: having remote' do
describe '#remote' do
it 'sets @remote' do
object.remote = 'some-value'
expect(object.instance_variable_get(:@remote)).to eq 'some-value'
end
end
describe '#remote' do
subject(:remote) { object.remote }
let(... | UpshiftOne/upshift | spec/models/shared_examples/vcs/having_remote.rb | Ruby | gpl-3.0 | 1,792 |
// NOTE: nbApp is defined in app.js
nbApp.directive("languageContainerDirective", function() {
return {
restrict : 'E',
templateUrl : 'js/templates/language-container.html',
scope: {
color: "@",
language: "@",
reading: "@",
writing: "@",
list... | nbuechler/nb.com-v8 | js/directives/language-container-directive.js | JavaScript | gpl-3.0 | 3,501 |
//=============================================================================
/*! return transposed _dsymatrix */
inline _dsymatrix t(const _dsymatrix& mat)
{CPPL_VERBOSE_REPORT;
#ifdef CPPL_DEBUG
WARNING_REPORT;
std::cerr << "This function call has no effect since the matrix is symmetric." << std::endl;
#endif/... | j-otsuki/SpM | thirdparty/cpplapack/include/_dsymatrix-/_dsymatrix-calc.hpp | C++ | gpl-3.0 | 2,027 |
package name.parsak.controller;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springfram... | yparsak/JWC | src/main/java/name/parsak/controller/WebController.java | Java | gpl-3.0 | 10,545 |
#pragma once
//
// njhseq - A library for analyzing sequence data
// Copyright (C) 2012-2018 Nicholas Hathaway <nicholas.hathaway@umassmed.edu>,
//
// This file is part of njhseq.
//
// njhseq is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by... | bailey-lab/bibseq | src/njhseq/alignment/alnCache/alnInfoHolder.hpp | C++ | gpl-3.0 | 2,293 |
module XmlResolution
# Most named exceptions in the XmlResolution service we subclass here
# to one of the HTTP classes. Libraries are designed specifically
# to be unaware of this mapping: they only use their specific low level
# exceptions classes.
#
# In general, if we catch an HttpError at our top lev... | fcla/xmlresolution | lib/xmlresolution/exceptions.rb | Ruby | gpl-3.0 | 7,177 |
/***************************************************************************
* Copyright © 2010-2011 Jonathan Thomas <echidnaman@kubuntu.org> *
* Heavily inspired by Synaptic library code ;-) *
* *
* This pr... | manchicken/libqapt | src/package.cpp | C++ | gpl-3.0 | 40,648 |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
final class Contact extends Model
{
const PHONE = 'phone';
const ADDRESS = 'address';
const ADDRESS_COMPLEMENT = 'address_complement';
const POSTAL_CODE = 'postal_code';
const CITY = 'city';
const REGION = 'region';
const C... | murilocosta/huitzilopochtli | app/Contact.php | PHP | gpl-3.0 | 744 |
/* -*- c++ -*-
* Copyright (C) 2007-2016 Hypertable, Inc.
*
* This file is part of Hypertable.
*
* Hypertable 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 any l... | hypertable/hypertable | src/cc/Hypertable/RangeServer/UpdatePipeline.cc | C++ | gpl-3.0 | 32,361 |
#!/usr/bin/env python
'''
Purpose:
This script, using default values, determines and plots the CpG islands in
relation to a given feature "type" (e.g. "gene" or "mRNA") from a GFF file
which corresponds to the user-provided fasta file.
Note:
CpG Islands are determined by ObEx = (Observed CpG) / (Expected CpG) ,
def... | juswilliams/bioscripts | CpG_by_feature/cpg_gene.py | Python | gpl-3.0 | 3,970 |
// Copyright 2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import * as React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { number } from '@storybook/addon-knobs';
import { LightboxGallery, Props } from './LightboxGallery... | nrizzio/Signal-Desktop | ts/components/LightboxGallery.stories.tsx | TypeScript | gpl-3.0 | 2,482 |
// app.photoGrid
var Backbone = require("backbone");
// var _ = require("underscore");
var $ = require("jquery");
var ImageGridFuncs = require("./photo_grid_functions");
var ImageCollection = require("../models/photo_grid_image_collection");
var ImageView = require("./photo_grid_image");
module.exports = Backbone.Vi... | alexkademan/solful-2016-wp | _assets/js/views/photo_grid.js | JavaScript | gpl-3.0 | 4,143 |
package ua.pp.shurgent.tfctech.integration.bc.blocks.pipes.transport;
import net.minecraft.item.Item;
import net.minecraftforge.common.util.ForgeDirection;
import ua.pp.shurgent.tfctech.integration.bc.BCStuff;
import ua.pp.shurgent.tfctech.integration.bc.ModPipeIconProvider;
import ua.pp.shurgent.tfctech.integration.b... | Shurgent/TFCTech | src/main/java/ua/pp/shurgent/tfctech/integration/bc/blocks/pipes/transport/PipeItemsSterlingSilver.java | Java | gpl-3.0 | 1,104 |
package org.crazyit.activity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
/**
* Description:
* <br/>site: <a href="http://www.crazyit.org">crazyit.org</a>
* <br/>Copyright (C... | footoflove/android | crazy_android/04/4.1/StartActivity/src/org/crazyit/activity/StartActivity.java | Java | gpl-3.0 | 1,081 |
// Remove the particular item
function removeArr(arr , removeItem){
if(arr.indexOf(removeItem) > -1){
arr.splice(arr.indexOf(removeItem),1);
}
return arr;
}
| SCABER-Dev-Team/SCABER | client-service/js/user_defined_operator.js | JavaScript | gpl-3.0 | 177 |
package ru.mos.polls.ourapps.ui.adapter;
import java.util.ArrayList;
import java.util.List;
import ru.mos.polls.base.BaseRecyclerAdapter;
import ru.mos.polls.base.RecyclerBaseViewModel;
import ru.mos.polls.ourapps.model.OurApplication;
import ru.mos.polls.ourapps.vm.item.OurApplicationVM;
public class OurAppsAdapte... | active-citizen/android.java | app/src/main/java/ru/mos/polls/ourapps/ui/adapter/OurAppsAdapter.java | Java | gpl-3.0 | 625 |
using System;
namespace SourceCodeCounter.Core
{
/// <summary>
/// The exception that is thrown when a command-line argument is invalid.
/// </summary>
internal class InvalidArgumentException : Exception
{
readonly string _argument;
public InvalidArgumentException(strin... | kkurapaty/SourceCodeCounter | SourceCodeCounter/Core/InvalidArgumentException.cs | C# | gpl-3.0 | 1,037 |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class HomeController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('auth');
}
/**
* Show the application dashbo... | wellingtonfds/cms | app/Http/Controllers/HomeController.php | PHP | gpl-3.0 | 524 |
const gal=[//731-62
'1@001/b4avsq1y2i',
'1@002/50uvpeo7tb',
'1@002/0ypu4wgjxm',
'1@002/b61d80e9pf',
'1@002/f1kb57t4ul',
'1@002/swq38v49nz',
'1@002/zeak367fw1',
'1@003/nx1ld4j9pe',
'1@003/yh0ub5rank',
'1@004/j29uftobmh',
'1@005/0asu1qo75n',
'1@005/4c7bn1q5mx',
'1@005/le3vrzbwfs',
'1@006/ek0tq9wvny',
'1@00... | Klanly/klanly.github.io | imh/az60.js | JavaScript | gpl-3.0 | 1,322 |
//
// semaphore.cpp
//
// Circle - A C++ bare metal environment for Raspberry Pi
// Copyright (C) 2021 R. Stange <rsta2@o2online.de>
//
// 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... | rsta2/circle | lib/sched/semaphore.cpp | C++ | gpl-3.0 | 1,721 |
import numpy as np
from scipy import sparse
from scipy.interpolate import interp1d
class calibration(object):
'''
some useful tools for manual calibration
'''
def normalize_zdata(self,z_data,cal_z_data):
return z_data/cal_z_data
def normalize_amplitude(self,z_data,cal_ampdata):
return z_data/cal_ampdata
... | vdrhtc/Measurement-automation | resonator_tools/resonator_tools/calibration.py | Python | gpl-3.0 | 4,324 |
QUnit.test( "testGetIbanCheckDigits", function( assert ) {
assert.equal(getIBANCheckDigits( 'GB00WEST12345698765432' ), '82', 'Get check digits of an IBAN' );
assert.equal(getIBANCheckDigits( '1234567890' ), '', 'If string isn\'t an IBAN, returns empty' );
assert.equal(getIBANCheckDigits( '' ), '', 'If st... | amnesty/dataquality | test/javascript/iban.js | JavaScript | gpl-3.0 | 2,366 |
<?php
namespace Aqua\SQL;
class Search
extends Select
{
/**
* @var array
*/
public $whereOptions = array();
/**
* @var array
*/
public $havingOptions = array();
/**
* @param array $where
* @param bool $merge
* @return static
*/
public function whereOptions(array $where, $merge = true)
{
if($... | AquaCore/AquaCore | lib/Aqua/SQL/Search.php | PHP | gpl-3.0 | 2,598 |
/*
* SPDX-License-Identifier: GPL-3.0
*
*
* (J)ava (M)iscellaneous (U)tilities (L)ibrary
*
* JMUL is a central repository for utilities which are used in my
* other public and private repositories.
*
* Copyright (C) 2013 Kristian Kutin
*
* This program is free software: you can redistribute it and/or modify... | gammalgris/jmul | Utilities/Transformation-XML/src/jmul/transformation/xml/rules/xml2object/Xml2ClassRule.java | Java | gpl-3.0 | 5,570 |
Bitrix 16.5 Business Demo = bf14f0c5bad016e66d0ed2d224b15630
| gohdan/DFC | known_files/hashes/bitrix/modules/main/install/js/main/amcharts/3.11/lang/hr.min.js | JavaScript | gpl-3.0 | 61 |
## mostly copied from: http://norvig.com/spell-correct.html
import sys, random
import re, collections, time
TXT_FILE='';
BUF_DIR='';
NWORDS=None;
def words(text): return re.findall('[a-z]+', text)
def train(features):
model = collections.defaultdict(lambda: 1)
for f in features:
model[f] += 1
r... | xulesc/spellchecker | impl1.py | Python | gpl-3.0 | 1,898 |
package com.baeldung.webflux;
import static java.time.LocalDateTime.now;
import static java.util.UUID.randomUUID;
import java.time.Duration;
import org.springframework.stereotype.Component;
import org.springframework.web.reactive.socket.WebSocketHandler;
import org.springframework.web.reactive.socket.WebSocketSessio... | Niky4000/UsefulUtils | projects/tutorials-master/tutorials-master/spring-5-reactive-security/src/main/java/com/baeldung/webflux/EmployeeWebSocketHandler.java | Java | gpl-3.0 | 1,272 |
describe SearchController, type: :controller do
it { is_expected.to route(:get, '/search').to(action: :basic) }
it { is_expected.to route(:get, '/search/entity').to(action: :entity_search) }
describe "GET #entity_search" do
login_user
let(:org) { build(:org) }
def search_service_double
instanc... | public-accountability/littlesis-rails | spec/controllers/search_controller_spec.rb | Ruby | gpl-3.0 | 1,540 |
<?php
namespace App\Model;
use PDO;
use Exception;
use App\Model;
use App\Config;
use App\Exceptions\ServerException;
use App\Exceptions\DatabaseInsertException;
class Account extends Model
{
public $id;
public $name;
public $email;
public $service;
public $password;
public $is_active;
pu... | mikegioia/libremail | webmail/src/Model/Account.php | PHP | gpl-3.0 | 4,773 |
class Global_var_WeaponGUI
{
idd=-1;
movingenable=false;
class controls
{
class Global_var_WeaponGUI_Frame: RscFrame
{
idc = -1;
x = 0.365937 * safezoneW + safezoneX;
y = 0.379 * safezoneH + safezoneY;
w = 0.170156 * safezoneW;
h = 0.143 * safezoneH;
};
class Global_var_WeaponGUI_Background: ... | Rockhount/ArmA3_Event_TheOutbreak | The_Outbreak2.Altis/Ammo/dialogs.hpp | C++ | gpl-3.0 | 1,558 |
using CP77.CR2W.Reflection;
using FastMember;
using static CP77.CR2W.Types.Enums;
namespace CP77.CR2W.Types
{
[REDMeta]
public class inkMenuAccountLogicController : inkWidgetLogicController
{
[Ordinal(1)] [RED("playerId")] public inkTextWidgetReference PlayerId { get; set; }
[Ordinal(2)] [RED("changeAccountLabe... | Traderain/Wolven-kit | CP77.CR2W/Types/cp77/inkMenuAccountLogicController.cs | C# | gpl-3.0 | 733 |
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\... | will-bainbridge/OpenFOAM-dev | applications/utilities/mesh/manipulation/mirrorMesh/mirrorMesh.C | C++ | gpl-3.0 | 4,304 |
#include "Data/datadescriptor.h"
#include <type_traits>
#include <QDebug>
unsigned int DataDescriptor::_uid_ctr = 0;
DataDescriptor::DataDescriptor(QString name, QString unit, double factor, Type t) :
_name(name), _unit(unit), _factor(factor), _type(t)
{
_uuid = getUUID();
}
DataDescriptor::DataDescriptor(const QJ... | TUD-OS/OdroidReader | Data/datadescriptor.cpp | C++ | gpl-3.0 | 1,161 |
/*
-----------------------------------------------------------------------
Copyright: 2010-2015, iMinds-Vision Lab, University of Antwerp
2014-2015, CWI, Amsterdam
Contact: astra@uantwerpen.be
Website: http://sf.net/projects/astra-toolbox
This file is part of the ASTRA Toolbox.
The ASTRA Toolbox is free ... | mohamedadaly/trex | src/CudaEMAlgorithm.cpp | C++ | gpl-3.0 | 2,709 |
#!/usr/bin/env python
# -*- coding: utf-8; py-indent-offset:4 -*-
###############################################################################
#
# Copyright (C) 2015 Daniel Rodriguez
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as pub... | gnagel/backtrader | backtrader/broker.py | Python | gpl-3.0 | 13,299 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.mariotaku.twidere.util.http;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import javax.microedition.io... | mariotaku/twidere.j2me | src/org/mariotaku/twidere/util/http/UnsafeSSLConnection.java | Java | gpl-3.0 | 2,116 |
/***************************************************************************
* Title : Find all possible paths from Source to Destination
* URL :
* Date : 2018-02-23
* Author: Atiq Rahman
* Comp : O(V+E)
* Status: Demo
* Notes : comments inline, input sample at '01_BFS_SP.cs'
* meta : tag-graph-dfs, tag-re... | atiq-cs/Problem-Solving | algo/Graph/02_DFS_AllPossiblePaths.cs | C# | gpl-3.0 | 4,531 |
/***********************************************************************
This file is part of KEEL-software, the Data Mining tool for regression,
classification, clustering, pattern mining and so on.
Copyright (C) 2004-2010
F. Herrera (herrera@decsai.ugr.es)
L. Sánchez (luciano@uniovi.es)
J. A... | SCI2SUGR/KEEL | src/keel/Algorithms/RE_SL_Methods/LEL_TSK/Simplif.java | Java | gpl-3.0 | 10,008 |
package com.orcinuss.reinforcedtools.item.tools;
import com.google.common.collect.Sets;
import net.minecraft.block.Block;
import net.minecraft.init.Blocks;
import net.minecraft.item.EnumRarity;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.ItemTool;
import java.util.Se... | Orcinuss/ReinforcedTools | src/main/java/com/orcinuss/reinforcedtools/item/tools/ItemRTMHarvester.java | Java | gpl-3.0 | 803 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Net;
using System.Net.Http;
using System.Net.Http.Formatting;
namespace Admin.Models
{
public class FacilityClient
{
//private string BASE_URL = "http://ihmwcore.azurewebsites.net/api/";
private s... | KevinEsquivel21/iHMW | Admin/Admin/Models/FacilityClient.cs | C# | gpl-3.0 | 3,799 |
#include "XmlSerializer.h"
namespace dnc {
namespace Xml {
XmlSerializer::XmlSerializer() {}
XmlSerializer::~XmlSerializer() {}
std::string XmlSerializer::ToString() {
return std::string("System.Xml.XmlSerializer");
}
std::string XmlSerializer::GetTypeString() {
return std::string("XmlSerializer"... | OperationDarkside/ProjectDNC | DNC/XmlSerializer.cpp | C++ | gpl-3.0 | 1,718 |
package org.hl7.v3;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>AgeDetectedIssueCodeのJavaクラス。
*
* <p>次のスキーマ・フラグメントは、このクラス内に含まれる予期されるコンテンツを指定します。
* <p>
* <pre>
* <simpleType name="AgeDetectedIssueCode">
* <restriction base="{urn:hl7-org:v... | ricecakesoftware/CommunityMedicalLink | ricecakesoftware.communitymedicallink.hl7/src/org/hl7/v3/AgeDetectedIssueCode.java | Java | gpl-3.0 | 913 |
<?php
/**
* @package Arastta eCommerce
* @copyright Copyright (C) 2015 Arastta Association. All rights reserved. (arastta.org)
* @license GNU General Public License version 3; see LICENSE.txt
*/
// Heading
$_['heading_title'] = 'Produktegenskaper - Grupper';
// Text
$_['text_success'] = 'Endringer ble ... | interspiresource/interspire | admin/language/nb-NO/catalog/attribute_group.php | PHP | gpl-3.0 | 1,022 |
<?php
/**
* @package Joomla.Platform
* @subpackage Data
*
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*/
defined('JPATH_PLATFORM') or die;
/**
* JDataSet is a collection class ... | MasiaArmato/coplux | libraries/joomla/data/set.php | PHP | gpl-3.0 | 12,869 |
package medium_challenges;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
class BenderSolution {
public static void main(String args[]) {
@SuppressWarnings("resource")
Scanner in = new Scanner(System.in);
int R = in.nextInt();
int C = in.nextInt();
... | workwelldone/bright-eyes | src/medium_challenges/BenderSolution.java | Java | gpl-3.0 | 5,937 |
package me.zsj.moment.utils;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapShader;
import android.graphics.Canvas;
import android.graphics.Paint;
import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool;
import com.bumptech.glide.load.resource.bitmap.Bit... | Assassinss/Moment | app/src/main/java/me/zsj/moment/utils/CircleTransform.java | Java | gpl-3.0 | 1,691 |
package clientdata.visitors;
import java.nio.charset.Charset;
import java.nio.charset.CharsetDecoder;
import java.util.HashMap;
import java.util.Map;
import org.apache.mina.core.buffer.IoBuffer;
import clientdata.VisitorInterface;
public class SlotDefinitionVisitor implements VisitorInterface {
public static class ... | swgopenge/openge | src/clientdata/visitors/SlotDefinitionVisitor.java | Java | gpl-3.0 | 1,410 |
class CustomUrl < ActiveRecord::Base
belongs_to :media_resource
belongs_to :creator, class_name: 'User', foreign_key: :creator_id
belongs_to :updator, class_name: 'User', foreign_key: :updator_id
default_scope lambda{order(id: :asc)}
end
| zhdk/madek | app/models/custom_url.rb | Ruby | gpl-3.0 | 247 |
package me.anthonybruno.soccerSim.team.member;
import me.anthonybruno.soccerSim.models.Range;
/**
* Player is a class that contains information about a player.
*/
public class Player extends TeamMember {
private final Range shotRange;
private final int goal;
/**
* Creates a new player with a nam... | AussieGuy0/soccerSim | src/main/java/me/anthonybruno/soccerSim/team/member/Player.java | Java | gpl-3.0 | 1,523 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using Newtonsoft.Json;
using SmartStore.Core.Infrastructure;
namespace SmartStore.Collections
{
public abstract class TreeNodeBase<T> where T : TreeNodeBase<T>
{
private T _parent;
private List<T> _children = new L... | smartstoreag/SmartStoreNET | src/Libraries/SmartStore.Core/Collections/TreeNodeBase.cs | C# | gpl-3.0 | 13,704 |
package vizardous.delegate.dataFilter;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import vizardous.util.Converter;
/**
* Filter class that provides filter functionality for data structures with comparable content
*
* @au... | modsim/vizardous | src/main/java/vizardous/delegate/dataFilter/ComparableFilter.java | Java | gpl-3.0 | 1,741 |
<?php
return array(
'title' => 'Publicaciones',
'parent' => 'Contenido',
'name' => 'publicación|publicaciones',
'table' =>
array(
'id' => 'ID',
'action' => 'Acción',
'title' => 'Título',
'category_id' => 'Categoría',
'author_id' => 'Autor',
'url_alias' => 'Alias de la URL',
'autho... | systemson/BlankBoard | resources/lang/es/articles.php | PHP | gpl-3.0 | 516 |
package com.albion.common.graph.algorithms;
import com.albion.common.graph.core.v1.Edge;
import com.albion.common.graph.core.v1.Graph;
import com.albion.common.graph.core.v1.Vertex;
import java.util.ArrayList;
import java.util.List;
public class BreathFirstSearch {
public static Vertex locate(Graph graph, Integer ... | KyleLearnedThis/data-structures | src/main/java/com/albion/common/graph/algorithms/BreathFirstSearch.java | Java | gpl-3.0 | 868 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Athame.PluginAPI.Service
{
/// <summary>
/// Represents a collection of items that are retrieved as pages from a service.
/// </summary>
/// <typeparam name="T">The type of eac... | svbnet/Athame | Athame.PluginAPI/Service/PagedMethod.cs | C# | gpl-3.0 | 1,242 |
namespace Animals.Animals
{
public class Kitten : Cat
{
public Kitten(string name, int age) : base(name, age, "Female")
{
}
public override string ProduceSound()
{
return "Meow";
}
}
}
| martinmladenov/SoftUni-Solutions | CSharp OOP Basics/Exercises/04. Inheritance - Exercise/Animals/Animals/Kitten.cs | C# | gpl-3.0 | 261 |
// Copyright 2012 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Platform-specific code for FreeBSD goes here. For the POSIX-compatible
// parts, the implementation is in platform-posix.cc.
#include <osconfig.h>
... | jiachenning/fibjs | vender/src/v8/src/platform-freebsd.cc | C++ | gpl-3.0 | 8,266 |
#! /usr/bin/env python
import logging, logtool
from .page import Page
from .xlate_frame import XlateFrame
LOG = logging.getLogger (__name__)
class Contents:
@logtool.log_call
def __init__ (self, canvas, objects):
self.canvas = canvas
self.objects = objects
@logtool.log_call
def render (self):
w... | clearclaw/xxpaper | xxpaper/contents.py | Python | gpl-3.0 | 590 |
class CfgWeapons {
// Base classes
class ItemCore;
class H_HelmetB;
class H_Cap_red;
class H_Bandanna_khk;
class rhs_booniehat2_marpatd;
// RHSSAF
class rhssaf_helmet_base : H_HelmetB{
rgoc_canAcceptNVG = 1;
};
class rhssaf_helmet_m59_85_nocamo : rhssaf_helmet_base{
rgoc_canAcceptNVG = 1;
};
class rhs... | finesseseth/SOCOMD | rgoc_rhssaf_compat/CfgWeapons.hpp | C++ | gpl-3.0 | 4,218 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package services;
import FareCalculator.Calculate;
import java.util.ArrayList;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.UriInfo;
import javax.ws.rs.PathParam;
import javax.ws.rs.Consumes;
import javax.ws... | ecemandirac/FlightTracker | Fare_Module/src/java/services/calculatorService.java | Java | gpl-3.0 | 1,825 |
package xyw.ning.juicer.poco.model;
import xyw.ning.juicer.base.NoProguard;
/**
* Created by Ning-win on 2016/7/30.
*/
public class Size implements NoProguard {
public String url;
public long width;
public long height;
}
| ningshu/Juicer | app/src/main/java/xyw/ning/juicer/poco/model/Size.java | Java | gpl-3.0 | 237 |
#include <gtest/gtest.h>
#include "math/integr/WeightedIntegral.h"
#include "math/integr/IntegrationDensities.h"
#include <stdexcept>
#include <cmath>
class WeightedIntegralTest: public testing::Test
{
};
TEST_F(WeightedIntegralTest,Test)
{
rql::integr::WeightedIntegral wi(rql::integr::WeightedIntegral::... | rilwen/open-quantum-systems | math-test/integr/WeightedIntegralTest.cpp | C++ | gpl-3.0 | 1,913 |
/*
* Copyright (C) 2014 Matej Kormuth <http://matejkormuth.eu>
*
* 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.
* ... | dobrakmato/Sergius | src/test/java/ts3bot/helpers/MethodSignatureTester.java | Java | gpl-3.0 | 4,969 |
<?php
require('../../php/bdd.php');
$bdd->query('DELETE FROM general WHERE 1');
$reqe = $bdd->prepare('INSERT INTO general (name, text, date) VALUES (:label, :text, 0)');
$reqe->execute(array(
"label" => 'titre_accueil',
"text" => $_POST['title']
));
$reqe->CloseCursor();
$reqe = $bdd->prepare('INSERT INTO gen... | atomgenie/B2cave | b2cave/b2cave/admin/php/modif_general.php | PHP | gpl-3.0 | 703 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Navig... | ZeroOne71/ql | 02_ECCentral/02_Portal/UI/ECCentral.Portal.UI.MKT/Views/HotKeywords.xaml.cs | C# | gpl-3.0 | 9,684 |
using UnityEngine;
using System.Collections;
using UnityEngine.EventSystems;
public class SelectOnInput : MonoBehaviour {
public EventSystem eventSystem;
public GameObject selectedObject;
private bool buttonSelected;
// Use this for initialization
void Start () {
}
// Update is called once per ... | TheMrNomis/T-racing | Assets/Scripts/UI/SelectOnInput.cs | C# | gpl-3.0 | 617 |
package org.anddev.amatidev.pvb;
import java.util.LinkedList;
import org.amatidev.util.AdEnviroment;
import org.amatidev.util.AdPrefs;
import org.anddev.amatidev.pvb.bug.BugBeetle;
import org.anddev.amatidev.pvb.card.Card;
import org.anddev.amatidev.pvb.card.CardTomato;
import org.anddev.amatidev.pvb.obj.Dialog;
impo... | amatig/PlantsVsBugs | src/org/anddev/amatidev/pvb/Tutorial.java | Java | gpl-3.0 | 7,881 |
/*
* Grakn - A Distributed Semantic Database
* Copyright (C) 2016 Grakn Labs Limited
*
* Grakn 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... | mikonapoli/grakn | grakn-engine/src/main/java/ai/grakn/engine/backgroundtasks/config/KafkaTerms.java | Java | gpl-3.0 | 1,152 |
function HistoryAssistant() {
}
HistoryAssistant.prototype.setup = function() {
this.appMenuModel = {
visible: true,
items: [
{ label: $L("About"), command: 'about' },
{ label: $L("Help"), command: 'tutorial' },
]
};
this.controller.setupWidget(Mojo.Menu.appMenu, {omitDefaultItems: true}, this.appMenuMo... | sebastianha/webos-app_de.omoco.100pixels | app/assistants/history-assistant.js | JavaScript | gpl-3.0 | 4,982 |
/* Copyright 2016 Devon Call, Zeke Hunter-Green, Paige Ormiston, Joe Renner, Jesse Sliter
This file is part of Myrge.
Myrge 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... | Decision-Maker/sp | public/javascripts/Controllers/navController.js | JavaScript | gpl-3.0 | 1,136 |
# Topydo - A todo.txt client written in Python.
# Copyright (C) 2014 - 2015 Bram Schoenmakers <bram@topydo.org>
#
# 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,... | bram85/topydo | topydo/lib/Todo.py | Python | gpl-3.0 | 3,165 |
import java.util.Scanner;
public class FeetMeters {
public static void main(String[] args) {
Scanner keyboard = new Scanner(System.in);
System.out.print("Number of feet: ");
float feet = keyboard.nextInt();
float foottometers = (float) .305;
System.out.println("");
... | semiconductor7/java-101 | Projects_import/Project1/src/FeetMeters.java | Java | gpl-3.0 | 467 |
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle 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.
//
// Moodle ... | dustinbrisebois/moodle | grade/classes/grades/grader/gradingpanel/point/external/store.php | PHP | gpl-3.0 | 6,329 |
from pupa.scrape import Jurisdiction, Organization
from .bills import MNBillScraper
from .committees import MNCommitteeScraper
from .people import MNPersonScraper
from .vote_events import MNVoteScraper
from .events import MNEventScraper
from .common import url_xpath
"""
Minnesota legislative data can be found at the O... | cliftonmcintosh/openstates | openstates/mn/__init__.py | Python | gpl-3.0 | 5,612 |