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 |
|---|---|---|---|---|---|
package com.creativemd.opf.gui;
import java.util.ArrayList;
import com.creativemd.creativecore.common.gui.GuiRenderHelper;
import com.creativemd.creativecore.common.gui.client.style.ColoredDisplayStyle;
import com.creativemd.creativecore.common.gui.client.style.Style;
import com.creativemd.creativecore.common.gui.con... | CreativeMD/OnlinePictureFrame | src/main/java/com/creativemd/opf/gui/GuiUrlTextfield.java | Java | gpl-3.0 | 2,213 |
const errorHandler = require('../../../src/controllers/middlewares/error')
describe('Error Handler', () => {
describe('with generic error', () => {
const error = {
code: '007',
stack: 'StackTrace',
}
const req = { id: 'request_id' }
const res = {
locals: {},
}
const next = ... | hails/tane | tests/unit/middlewares/error.test.js | JavaScript | gpl-3.0 | 2,113 |
<?php
echo file_get_contents(HERE."install".DS."install-header.html");
if (URI == "install") {
inc("install".DS."install");
} else {
inc("install".DS."must-install");
}
?>
| mkg20001/website-cms | sys/install/index.php | PHP | gpl-3.0 | 174 |
package com.mycompany.control;
import com.mycompany.entidades.Demanda;
import com.mycompany.control.util.JsfUtil;
import com.mycompany.control.util.PaginationHelper;
import com.mycompany.facade.DemandaFacade;
import java.io.Serializable;
import java.util.ResourceBundle;
import javax.ejb.EJB;
import javax.inject.Named... | OscarMiticanoy/NuestraPLaza-java | NuestraPlaza/src/main/java/com/mycompany/control/DemandaController.java | Java | gpl-3.0 | 7,210 |
/*********************
* status_screen.cpp *
*********************/
/****************************************************************************
* Written By Mark Pelletier 2017 - Aleph Objects, Inc. *
* Written By Marcio Teixeira 2018 - Aleph Objects, Inc. *
* ... | petrzjunior/Marlin | Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/status_screen.cpp | C++ | gpl-3.0 | 13,488 |
/*
* Copyright (C) 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | tranleduy2000/javaide | aosp/gradle/src/main/java/com/android/build/gradle/internal/dsl/LanguageSplitOptions.java | Java | gpl-3.0 | 2,810 |
using System;
using LuaInterface;
using SLua;
using System.Collections.Generic;
public class Lua_UIKeyBinding : LuaObject {
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static public int IsBound_s(IntPtr l) {
try {
UnityEngine.KeyCode a1;
checkEnum(l,1,out a1);
var ret=UIKeyBinding.IsBound(a1);
... | yongkangchen/poker-client | Assets/Runtime/Slua/LuaObject/Dll/Lua_UIKeyBinding.cs | C# | gpl-3.0 | 3,361 |
using System;
using System.Collections.Generic;
using Server;
using Server.Events;
using Server.Buff.Icons;
using Server.Items;
namespace Server.Spells.Bard
{
public class Inspire : AreaSpellsong
{
public static void Initialize()
{
EventSink.BeforeDamage += new BeforeDamageEventHandler( EventSink_BeforeDamage... | GenerationOfWorlds/GOW | Scripts/Core/Stygian Abyss/Magic/Bard Masteries/Inspire.cs | C# | gpl-3.0 | 2,339 |
import DS from 'ember-data';
export default DS.LSAdapter.extend({
namespace: 'bateria_namespace'
});
| hugoruscitti/bateria | app/adapters/application.js | JavaScript | gpl-3.0 | 105 |
/*
* QuarkPlayer, a Phonon media player
* Copyright (C) 2008-2011 Tanguy Krotoff <tkrotoff@gmail.com>
*
* This program 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 Lice... | tkrotoff/QuarkPlayer | libs/WebBrowser/WebBrowser.cpp | C++ | gpl-3.0 | 7,469 |
/*
Copyright (C) 2016 PencilBlue, LLC
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 program is... | Whatsit2yaa/vast-tundra-84597 | include/service/media/renderers/slideshare_media_renderer.js | JavaScript | gpl-3.0 | 10,832 |
package net.BukkitPE.block;
import net.BukkitPE.item.Item;
import net.BukkitPE.item.ItemTool;
import net.BukkitPE.level.Level;
import net.BukkitPE.math.AxisAlignedBB;
import net.BukkitPE.math.Vector3;
import net.BukkitPE.utils.BlockColor;
/**
* Created on 2015/12/2 by xtypr.
* Package net.BukkitPE.block in project ... | BukkitPE/BukkitPE | src/main/java/net/BukkitPE/block/BlockFarmland.java | Java | gpl-3.0 | 2,452 |
package com.mirrorlabs.filebrowser;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import android.app.ActivityManager;
import android.app.AlertDialog;
import android.app.ActivityManager.MemoryInfo;
import android.app.ActivityManager.RunningAppProcessInfo;
... | kshark27/UltraExplorer | filebrowserULTRA/src/com/mirrorlabs/filebrowser/ProcessManager.java | Java | gpl-3.0 | 24,569 |
<?php
if (_DEBUGMODE)
{
$creation_time = getmt() - script_start_time;
echo sprintf("<p/><hr/><p>Script took %1.0f ms for generation\n</p>", $creation_time);
}
?>
</body>
</html>
| stefaweb/XAMS-0.3.x | gui/footer.php | PHP | gpl-3.0 | 206 |
#include <string>
#include <vector>
#include "TProfesor.h"
TProfesor::TProfesor(std::string _strNombre, int _intCodigo) {
intCodigo = _intCodigo;
strNombre = _strNombre;
}
TProfesor::TProfesor(const char* _pchrNombre, int _intCodigo) {
intCodigo = _intCodigo;
strNombre = _pchrNombre;
}
void TProfesor::PutCostAsigP... | KarlHeitmann/PlanificacionHorarios | src/ae/eda/TProfesor.cpp | C++ | gpl-3.0 | 1,195 |
<?php
/**
* All law firms and agents have been assigned. Now a lifespan must be negotiated.
*/
class DisputeOpened extends DisputeDefaults implements DisputeStateInterface {
public function getStateDescription() {
return 'Negotiating lifespan.';
}
public function canOpenDispute() {
retu... | ChrisBAshton/smartresolution | webapp/core/model/dispute_states/DisputeStateDisputeOpened.php | PHP | gpl-3.0 | 416 |
/*
* Copyright 2018 <copyright holder> <email>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | robocomp/robocomp | libs/dsr/gui/viewers/graph_viewer/graph_node.cpp | C++ | gpl-3.0 | 12,408 |
using System;
using System.Drawing;
using System.Windows.Forms;
using GradeTracker.Data;
namespace GradeTracker.Forms
{
public class CourseGradeableTasksForm : Form
{
Course course;
#region Form elements
private Button addNewTaskButton;
private DataGridView tasksGrid;
#endregion
/// <summary>
/// Ma... | baconbum/GradeTracker | GradeTracker/Forms/CourseGradeableTasksForm.cs | C# | gpl-3.0 | 4,165 |
/**
* \file
* Copyright 2014-2015 Benjamin Worpitz
*
* This file is part of alpaka.
*
* alpaka 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, or
* (at your option) any ... | erikzenker/alpaka-examples | alpaka/include/alpaka/core/Fold.hpp | C++ | gpl-3.0 | 4,795 |
using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using CheezeMod.NPCs;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CheezeMod.Items.Weapons.Ratchet
{
public class LavaGun : ModItem
{
public override void SetDefaults()
{
item.damage = 5;
item.ra... | Cheezegami/Mod-Sources-Cheezes-Content-Pack | CheezeMod/Items/Weapons/Ratchet/LavaGun.cs | C# | gpl-3.0 | 2,175 |
<?php use_helper('Date', 'Text', 'I18N', 'myWidgets', 'enMessageBox'); ?>
<div class="page-header">
<h1><?php echo __('Usuários do sistema') ?></h1>
</div>
<?php if ($sf_request->hasParameter('name')) : ?>
<div class="msg alert"><?php echo __('Procurando pelo termo') ?> <strong>"<?php echo $sf_request->getParamet... | jeffersonmolleri/sesra | apps/adm/modules/users/templates/_list.php | PHP | gpl-3.0 | 2,540 |
/**
* This file is part of da2i-boggle.
*
* da2i-boggle 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.
*
* da2i-boggl... | ecattez/da2i-boggle | sources/boggle/gui/decorateur/DecorateurBouton.java | Java | gpl-3.0 | 1,109 |
package tk.natallymp.ratingimages;
import android.content.Intent;
import android.net.Uri;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;
import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.ImageVie... | x2wing/android | RatingImages/app/src/main/java/tk/natallymp/ratingimages/MainActivity.java | Java | gpl-3.0 | 1,981 |
"""
============================
``ctypes`` Utility Functions
============================
See Also
---------
load_library : Load a C library.
ndpointer : Array restype/argtype with verification.
as_ctypes : Create a ctypes array from an ndarray.
as_array : Create an ndarray from a ctypes array.
References
----------... | ruibarreira/linuxtrail | usr/lib/python2.7/dist-packages/numpy/ctypeslib.py | Python | gpl-3.0 | 14,076 |
/*
* Platformer Game Engine by Wohlstand, a free platform for game making
* Copyright (c) 2014-2019 Vitaly Novichkov <admin@wohlnet.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, ei... | Wohlhabend-Networks/PGE-Project | Editor/networking/engine_intproc.cpp | C++ | gpl-3.0 | 5,233 |
/* Copyright © 2018 Maksim Lukyanov
This file is part of Cross++ Game Engine.
Cross++ Game Engine 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... | maxon887/Cross | Sources/Utils/Cubemap.cpp | C++ | gpl-3.0 | 2,855 |
using CP77.CR2W.Reflection;
using FastMember;
using static CP77.CR2W.Types.Enums;
namespace CP77.CR2W.Types
{
[REDMeta]
public class enteventsEntityResize : redEvent
{
[Ordinal(0)] [RED("extents")] public Vector3 Extents { get; set; }
public enteventsEntityResize(CR2WFile cr2w, CVariable parent, string name) :... | Traderain/Wolven-kit | CP77.CR2W/Types/cp77/enteventsEntityResize.cs | C# | gpl-3.0 | 355 |
package com.ernstlustig.faeries.jei.FaeryProducts;
import mezz.jei.api.IGuiHelper;
import mezz.jei.api.gui.IDrawable;
import mezz.jei.api.gui.IGuiItemStackGroup;
import mezz.jei.api.gui.IRecipeLayout;
import mezz.jei.api.recipe.IRecipeCategory;
import net.minecraft.client.Minecraft;
import net.minecraft.item.ItemStack... | davqvist/Faeries | src/main/java/com/ernstlustig/faeries/jei/FaeryProducts/FaeryProductsCategory.java | Java | gpl-3.0 | 2,053 |
using Aperture.Parser.HTML.Microsyntaxes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Aperture.Parser.HTML
{
/// <summary>
/// Case-sensitivity and string comparison.
/// </summary>
public static class StringComparisons ... | Pneumaticat/Aperture | Aperture.Parser/HTML/StringComparisons.cs | C# | gpl-3.0 | 3,096 |
'''
TypeString is a core class that extends mimetypes
'''
import re
import os
import mimetypes
import magic
UNKNOWN_MIMETYPE = ('application/x-empty', 'application/octet-stream', 'text/plain')
class TypeString:
def __init__(self, s):
self.str = s
# Extract arguments
if ':' in s:
... | michaelpb/omnithumb | omnithumb/types/typestring.py | Python | gpl-3.0 | 2,012 |
<?php
namespace Keyword\Model;
use Keyword\Model\Base\KeywordI18n as BaseKeywordI18n;
class KeywordI18n extends BaseKeywordI18n
{
}
| thelia-modules/Keyword | Model/KeywordI18n.php | PHP | gpl-3.0 | 136 |
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="MetadataGenericContext.cs" company="">
//
// </copyright>
// <summary>
//
// </summary>
// ----------------------------------------------------------------------------------... | FrankLIKE/il2bc | PEAssemblyReader/MetadataGenericContext.cs | C# | gpl-3.0 | 7,903 |
namespace CSV_Analyzer_Pro {
partial class CheckUpdate {
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// ... | flaminggenius/CSVAnalyzerPro | CSV Analyzer Pro/CSV Analyzer Pro/CheckUpdate.Designer.cs | C# | gpl-3.0 | 3,238 |
<?php
/**
* @In the name of God!
* @author: Iman Moodi (Iman92) & Mohammad Sadgeh Dehghan Niri (MSDN)
* @email: info@apadanacms.ir
* @link: http://www.apadanacms.ir
* @license: http://www.gnu.org/licenses/
* @copyright: Copyright © 2012-2015 ApadanaCms.ir. All rights reserved.
* @Apadana CMS is a Free So... | Apadana/apadana-cms | engine/comments.class.php | PHP | gpl-3.0 | 13,685 |
#define WeaponNoSlot 0 // dummy weapon
#define WeaponSlotPrimary 1 // primary weapon
#define WeaponSlotHandGun 2 // handGun/sidearm
#define WeaponSlotSecondary 4 // secondary weapon // 4 in ArmA, not 16.
#define WeaponSlotHandGunItem 16 // sidearm/GL magazines // 16 in ArmA, not ... | Raspu86/acre2 | addons/sys_prc77/CfgWeapons.hpp | C++ | gpl-3.0 | 1,266 |
var structrectangle =
[
[ "height", "structrectangle.html#af460193d9a375b8e2813bf1fe6216cce", null ],
[ "ulx", "structrectangle.html#a4feece2ec58d909444613177ec67e2bc", null ],
[ "uly", "structrectangle.html#ac537f5c6afbda6ef42cc428540058ecb", null ],
[ "width", "structrectangle.html#a57a9b24a714057d8d2... | kipr/harrogate | shared/client/doc/structrectangle.js | JavaScript | gpl-3.0 | 346 |
#!/usr/bin/env python
# encoding: utf-8
from lewei import Cloud as lewei
CLOUDS = {
"lewei": lewei,
} | jt6562/mytvoc | clouds/__init__.py | Python | gpl-3.0 | 110 |
package com.blogger.web.rest.vm;
import com.blogger.service.dto.UserDTO;
import javax.validation.constraints.Size;
import java.time.ZonedDateTime;
import java.util.Set;
/**
* View Model extending the UserDTO, which is meant to be used in the user management UI.
*/
public class ManagedUserVM extends UserDTO {
... | arslanberk/Blogger | src/main/java/com/blogger/web/rest/vm/ManagedUserVM.java | Java | gpl-3.0 | 1,374 |
/* Copyright (C) 2017 Thomas Terry - All Rights Reserved
* You may use, distribute and modify this code under the
* terms of the GNU GPLv3 license, which unfortunately won't be
* written for another century.
*
* You should have received a copy of the GPLv3 license with
* this file. If not, please visit : gnu.org
... | thomasscottterry121/roguelike | src/screen.cc | C++ | gpl-3.0 | 1,795 |
/*
* ComponentStrategyRegistryAsComponentStrategyRegistryTest.java
* Copyright 2008-2013 Gamegineer contributors and others.
* All rights reserved.
*
* 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 Sof... | gamegineer/dev | main/table/org.gamegineer.table.core.impl.tests/src/org/gamegineer/table/internal/core/impl/ComponentStrategyRegistryAsComponentStrategyRegistryTest.java | Java | gpl-3.0 | 2,425 |
#ifndef UTILS_NETGEN_HPP
#define UTILS_NETGEN_HPP
#include "args.hpp"
#include "graph.hpp"
#include <iomanip>
#include <random>
#include <sstream>
/**
* Names the vertices.
*/
template<typename G>
void
name_vertices(G &g)
{
int count = 1;
int number = boost::num_vertices(g);
int width = int(log10(number)) +... | iszczesniak/availa | utils_netgen.hpp | C++ | gpl-3.0 | 2,206 |
#include <iostream>
#include "tempi/nodefactory.h"
#include "tempi/internals.h"
#include "tempi/midi/midilibrary.h"
using namespace tempi;
bool check_midi_library()
{
NodeFactory factory;
midi::MidiLibrary lib;
lib.load(factory, "midi.");
if (! factory.hasType("midi.receive"))
{
std::cout... | aalex/ubuntu-tempi | tests/check_libraries.cpp | C++ | gpl-3.0 | 1,588 |
# -*- coding: utf-8 -*-
# home made test
# Sign convention for fiber sections.
from __future__ import division
import xc_base
import geom
import xc
from solution import predefined_solutions
from model import predefined_spaces
from materials import typical_materials
from postprocess import prop_statistics
import math
... | lcpt/xc | verif/tests/materials/fiber_section/test_fiber_section_sign_convention01.py | Python | gpl-3.0 | 7,833 |
Bitrix 16.5 Business Demo = 687b7436ad938b390cdc1d9dea84c199
| gohdan/DFC | known_files/hashes/bitrix/modules/seo/lang/ru/options.php | PHP | gpl-3.0 | 61 |
package org.duniter.elasticsearch.user.dao.group;
/*
* #%L
* Ğchange Pod :: ElasticSearch plugin
* %%
* Copyright (C) 2014 - 2017 EIS
* %%
* 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... | ucoin-io/ucoinj | cesium-plus-pod-user/src/main/java/org/duniter/elasticsearch/user/dao/group/GroupCommentDao.java | Java | gpl-3.0 | 978 |
<?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... | andreyamin/moodlebites-dev-course | mod/pairwork/version.php | PHP | gpl-3.0 | 1,463 |
<?php
/**
* @package project
* @version 0.4.0.0
* @author Roman Konertz <konertz@open-lims.org>
* @copyright (c) 2008-2016 by Roman Konertz
* @license GPLv3
*
* This file is part of Open-LIMS
* Available at http://www.open-lims.org
*
* This program is free software;
* you can redistribute it an... | open-lims/open-lims | www/core/include/project/exceptions/project_permission_group_create.exception.class.php | PHP | gpl-3.0 | 1,137 |
#
# Copyright (C) 2018, 2020
# Smithsonian Astrophysical Observatory
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any ... | cxcsds/ciao-contrib | ciao_contrib/downloadutils.py | Python | gpl-3.0 | 22,858 |
var annotated_dup =
[
[ "AbstractHive", "classAbstractHive.html", "classAbstractHive" ],
[ "Colour", "classColour.html", "classColour" ],
[ "Environment", "classEnvironment.html", "classEnvironment" ],
[ "EventManager", "classEventManager.html", "classEventManager" ],
[ "EvoBeeExperiment", "classEvo... | tim-taylor/evobee | docs/html/annotated_dup.js | JavaScript | gpl-3.0 | 2,376 |
#region Copyright & License Information
/*
* Copyright 2007-2014 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation. For more information,
* see COP... | UberWaffe/OpenRA | OpenRA.Mods.RA/ServerTraits/MasterServerPinger.cs | C# | gpl-3.0 | 3,554 |
<?php
namespace E4u\Application\Controller;
use E4u\Response\Response;
/**
* <code>
* $exception = new Controller\Redirect();
* throw $exception->setUrl('security/login');
* </code>
*/
class Redirect extends \Exception
{
protected $code = Response::STATUS_REDIRECT;
private $url;
public function s... | nataniel/e4u-framework | src/E4u/Application/Controller/Redirect.php | PHP | gpl-3.0 | 455 |
////////////////////////////////////////////////////////
//
// GEM - Graphics Environment for Multimedia
//
// tigital@mac.com
// ported from pete's_plugins
//
// Implementation file
//
// For information on usage and redistribution, and for a DISCLAIMER OF ALL
// WARRANTIES, see the file, "GEM.LICENSE.TERMS" in ... | rvega/morphasynth | vendors/pd-extended-0.43.4/externals/Gem/src/Pixes/pix_backlight.cpp | C++ | gpl-3.0 | 16,287 |
/*
WorldGuard2Secuboid: Convert from WorldGuard regions to Secuboid lands
Copyright (C) 2015 Tabinol
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... | Tabinol/WorldGuard2Secuboid | src/main/java/me/tabinol/worldguard2secuboid/ParType.java | Java | gpl-3.0 | 820 |
#ifndef CITAR_MODEL_PRIVATE_HH
#define CITAR_MODEL_PRIVATE_HH
#include <iostream>
#include <map>
#include <string>
#include <memory>
#include <unordered_map>
#include <citar/util/NonCopyable.hh>
#include <citar/tagger/hmm/BiGram.hh>
#include <citar/tagger/hmm/TriGram.hh>
#include <citar/tagger/hmm/UniGram.hh>
name... | brianray/citar | src/tagger/hmm/ModelPrivate.hh | C++ | gpl-3.0 | 2,739 |
using LinqToVisualTree;
using System;
using System.Collections.Generic;
using System.Linq;
using Telegram.Td.Api;
using Unigram.Controls;
using Unigram.Navigation;
using Unigram.Navigation.Services;
using Unigram.Services;
using Unigram.Services.ViewService;
using Unigram.ViewModels;
using Unigram.ViewModels.Settings;... | UnigramDev/Unigram | Unigram/Unigram/Common/TLNavigationService.cs | C# | gpl-3.0 | 12,617 |
<?php
namespace AwsSdk2\Aws\CloudTrail;
use AwsSdk2\Aws\S3\S3Client;
use AwsSdk2\Guzzle\Common\Collection;
/**
* The `AwsSdk2\Aws\CloudTrail\LogRecordIterator` provides an easy way to iterate over log records from log files generated by
* AWS CloudTrail. CloudTrail log files contain data about your AWS API calls a... | EITIorg/eiti | public_html/sites/all/libraries/awssdk2/Aws/CloudTrail/LogRecordIterator.php | PHP | gpl-3.0 | 5,581 |
package com.example.lars.connector;
import android.content.ContentValues;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
/**
* Created by lars on 09.03.17.
*/
public class DBHelper extends SQLiteOpenHelper {
private static final ... | FBrand/MobileComputing2017 | AppDBConnection/DBHelper.java | Java | gpl-3.0 | 7,405 |
/*
* Kontalk Android client
* Copyright (C) 2018 Kontalk Devteam <devteam@kontalk.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, or
* (at your optio... | 115ek/androidclient | app/src/main/java/org/kontalk/service/msgcenter/event/VersionRequest.java | Java | gpl-3.0 | 1,049 |
<?php
/**
* @file
* Definition of Drupal\entity_test\Entity\EntityTestRev.
*/
namespace Drupal\entity_test\Entity;
use Drupal\Core\Field\FieldDefinition;
use Drupal\entity_test\Entity\EntityTest;
/**
* Defines the test entity class.
*
* @EntityType(
* id = "entity_test_rev",
* label = @Translation("Test... | Ignigena/bethel-dashboard | core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTestRev.php | PHP | gpl-3.0 | 1,893 |
import React, { PureComponent } from "react";
import PropTypes from "prop-types";
import { withTranslation } from "react-i18next";
import FormattedDate from "global/components/FormattedDate";
import classNames from "classnames";
import Authorize from "hoc/Authorize";
import Avatar from "global/components/avatar/index";... | ManifoldScholar/manifold | client/src/global/components/Annotation/Annotation/UserContent/Meta.js | JavaScript | gpl-3.0 | 3,870 |
/*
* Copyright (C) 2012 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | OmniEvo/android_frameworks_base | services/core/java/com/android/server/power/Notifier.java | Java | gpl-3.0 | 27,822 |
// ************************************************************************************************
//
// BornAgain: simulate and fit reflection and scattering
//
//! @file gui2/model/applicationmodels.cpp
//! @brief Implements class CLASS?
//!
//! @homepage http://www.bornagainproject.org
//! @license GN... | gpospelov/BornAgain | gui2/model/applicationmodels.cpp | C++ | gpl-3.0 | 4,964 |
<?php
$vars = Array(
// Simple
// Block
"A" => Array(
Array(
"B" => Array(
Array(
"ALLOWED" => "TRUE"
),
Array(
"ALLOWED" => "FALSE"
),
Array(
"ALLOWED" => "TRUE"
)
)
),
Array(
"B" => Array(
Array(
"ALLOWED... | neooblaster/Template | tests/data-validation2.php | PHP | gpl-3.0 | 468 |
package know.how.designpatterns.abstractfactory;
public abstract class AbstractAddress {
private String street;
public AbstractAddress(String street){
this.street = street;
}
public String getStreet() {
return street;
}
public void setStreet(String street) {
this.street = street;
}
public ... | skurski/know-how | src/main/java/know/how/designpatterns/abstractfactory/AbstractAddress.java | Java | gpl-3.0 | 354 |
# coding=utf-8
import random
def consumer():
r = None
while 1:
data = yield r
print 'Consuming: {}'.format(data)
r = data + 1
def producer(consumer):
n = 3
consumer.send(None)
while n:
data = random.choice(range(10))
print('Producing: {}'.format(data))
... | dongweiming/web_develop | chapter13/section5/use_yield.py | Python | gpl-3.0 | 462 |
package eu.ocomp.brms.web.utils;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.primefaces.context.RequestContext;
public abstract class AbstractScr implements Serializable {
private static final long serialVers... | msocha/BRMS | brms/brms-web/src/main/java/eu/ocomp/brms/web/utils/AbstractScr.java | Java | gpl-3.0 | 1,084 |
#include "pdbatom.h"
PdbAtom::PdbAtom(bool win)
{
windows = win;
}
PdbAtom::PdbAtom(string line, bool win){
windows = win;
char c = ' ';
string temp = "";
//Atom Number
for(int i = 6; i <= 10; i++){
c = line[i];
if(c != ' ') temp += c;
}
this->atomNumber = stoi(temp);... | duenti/PFstats | Pfstats/pdbatom.cpp | C++ | gpl-3.0 | 10,564 |
<?php
// This file is part of Stack - http://stack.maths.ed.ac.uk/
//
// Stack 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.
//
//... | maths/moodle-qtype_stack | adminui/caschat.php | PHP | gpl-3.0 | 5,572 |
<?php
$url = $_SERVER['REQUEST_URI'];
// Prior to 5.4.7 this would show the path as "//www.example.com/path"
var_dump(parse_url($url));
?>
| doczine/Feeds | pdf_ad.php | PHP | gpl-3.0 | 141 |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package cu.uci.coj.restapi.controller;
import com.mangofactory.swagger.annotations.ApiIgnore;
import com.wordnik.swagger.annotations.A... | dovier/coj-web | src/main/java/cu/uci/coj/restapi/controller/RestScoreboardsController.java | Java | gpl-3.0 | 22,868 |
var mongoose = require('mongoose');
/** The review document schema */
var reviewSchema = new mongoose.Schema({
author: String,
rating: {
type: Number,
required: true,
min: 0,
max: 5
},
reviewText: String,
createdOn: {
type: Date,
"default": Date.now
... | Pringlez/Reviewer-App | app_api/models/locations.js | JavaScript | gpl-3.0 | 1,099 |
<TS language="fa_IR" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Create a new address</source>
<translation>گشایش حسابی جدید</translation>
</message>
<message>
<source>&New</source>
<translation>جدید</translation>
</message>
<messag... | EvgenijM86/emercoin | src/qt/locale/bitcoin_fa_IR.ts | TypeScript | gpl-3.0 | 35,898 |
using System;
#pragma warning disable 1591
// ReSharper disable UnusedMember.Global
// ReSharper disable UnusedParameter.Local
// ReSharper disable MemberCanBePrivate.Global
// ReSharper disable UnusedAutoPropertyAccessor.Global
// ReSharper disable IntroduceOptionalParameters.Global
// ReSharper disable MemberCanBeP... | t123/ReadingTool.Win | RTWin/Properties/Annotations.cs | C# | gpl-3.0 | 23,764 |
<?php
/*
* Copyright (C) 2015-2018 P. Mergey
* 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 program is di... | GizMecano/opencart-2-fr | admin/language/fr-FR/extension/dashboard/sale.php | PHP | gpl-3.0 | 1,202 |
package NJU.HouseWang.nju_eas_client.net;
import java.io.IOException;
import java.util.Stack;
/**
* 网络连接池
*
* @author Xin
* @version 2013-12-12
*/
public class ClientPool {
/**
* 连接池单件
*/
private static ClientPool cPool = null;
/**
* 存放连接的栈
*/
private Stack<Client> clientStack = new Stack<Client>();... | NJU-HouseWang/nju-eas-client | src/main/java/NJU/HouseWang/nju_eas_client/net/ClientPool.java | Java | gpl-3.0 | 2,651 |
# -*- coding: utf-8 -*-
# EDIS - a simple cross-platform IDE for C
#
# This file is part of Edis
# Copyright 2014-2015 - Gabriel Acosta <acostadariogabriel at gmail>
# License: GPLv3 (see http://www.gnu.org/licenses/gpl.html)
from PyQt4.QtGui import (
QGraphicsOpacityEffect,
QFrame
)
from PyQt4.QtCore impo... | centaurialpha/edis | src/ui/editor/minimap.py | Python | gpl-3.0 | 3,836 |
<?php
// $Header: /cvsroot/html2ps/output._interface.class.php,v 1.8 2007/01/09 20:13:48 Konstantin Exp $
class OutputDriver {
function add_link($x, $y, $w, $h, $target) { }
function add_local_link($left, $top, $width, $height, $anchor) { }
function circle($x, $y, $r) { }
function clip() {}
function close() ... | fearless359/simpleinvoices | library/pdf/output._interface.class.php | PHP | gpl-3.0 | 2,855 |
/*****************************************************************
* This file is part of Managing Agricultural Research for Learning &
* Outcomes Platform (MARLO).
* MARLO 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... | CCAFS/MARLO | marlo-data/src/main/java/org/cgiar/ccafs/marlo/data/manager/impl/InstitutionDictionaryManagerImpl.java | Java | gpl-3.0 | 1,922 |
using System;
namespace Artemis.Core
{
/// <summary>
/// Represents errors that occur within the Artemis Core
/// </summary>
public class ArtemisCoreException : Exception
{
internal ArtemisCoreException(string message) : base(message)
{
}
internal ArtemisCoreEx... | SpoinkyNL/Artemis | src/Artemis.Core/Exceptions/ArtemisCoreException.cs | C# | gpl-3.0 | 413 |
package sidben.villagertweaks.network;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraftforge.fml.common.network.NetworkRegistry.TargetPoint;
import net.minecraftforge.fml.common.network.simpleimpl.IMessage... | sidben/VillagerTweaks | src/main/java/sidben/villagertweaks/network/NetworkHelper.java | Java | gpl-3.0 | 7,380 |
<?php
class TableNames
{
const RESERVATION_SERIES_ALIAS = 'rs';
const ACCESSORIES = 'accessories';
const GROUPS_ALIAS = 'g';
const RESERVATION_ACCESSORIES_ALIAS = 'ra';
const RESOURCES = 'resources';
const SCHEDULES = 'schedules';
const USERS = 'users';
}
?> | glamprou/bookings | lib/Database/Commands/TableNames.php | PHP | gpl-3.0 | 285 |
<?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 ... | iomad/iomad | local/iomad_track/lib.php | PHP | gpl-3.0 | 3,966 |
using System.Collections.Generic;
using Newtonsoft.Json;
using ShareX.HelpersLib;
using ShareX.ImageEffectsLib;
namespace ShareX.TaskManagement
{
public class TaskSettingsImage
{
//#region Image / General
public EImageFormat ImageFormat = EImageFormat.PNG;
public int ImageJPEGQuality ... | justkarli/ShareX | ShareX/TaskManagement/TaskSettingsImage.cs | C# | gpl-3.0 | 1,230 |
using System;
using System.Reflection;
using BankTransferSample.Commands;
using BankTransferSample.Domain;
using BankTransferSample.DomainEvents;
using ECommon.Autofac;
using ECommon.Configurations;
using ECommon.Components;
using ECommon.JsonNet;
using ECommon.Log4Net;
using ECommon.Utilities;
using ENode.Commanding;... | key-value/BankTransferSample | src/Program.cs | C# | gpl-3.0 | 2,645 |
Joomla 3.6.4 = be7f77906288a07f69084e46680ff6e5
Joomla 3.4.8 = 96990e227c35c2adc8f1f42e2493f9c0
| gohdan/DFC | known_files/hashes/libraries/vendor/joomla/event/src/EventInterface.php | PHP | gpl-3.0 | 96 |
// Copyright (C) 2015, 2017 Simon Mika <simon@mika.se>
//
// This file is part of SysPL.
//
// SysPL 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) a... | syspl/syspl | source/SyntaxTree/SymbolDeclaration.ts | TypeScript | gpl-3.0 | 1,053 |
using UnityEngine;
using System.Collections;
public class DoorHandleScript : MonoBehaviour {
private Transform Target = null;
private Vector3 LookAtPos = Vector3.zero;
public Transform Joint;
void Start () {
}
void Update () {
if (Target != null)
{
//test with the vive... | Snailpower/IdontAmbulancecare | Newest/Assets/Scripts/New/DoorHandleScript.cs | C# | gpl-3.0 | 1,224 |
#!/usr/bin/env python
# coding: utf-8
"""setuptools based setup module"""
from setuptools import setup
# from setuptools import find_packages
# To use a consistent encoding
import codecs
from os import path
import osvcad
here = path.abspath(path.dirname(__file__))
# Get the long description from the README_SHORT f... | osv-team/osvcad | setup.py | Python | gpl-3.0 | 2,202 |
// Decompiled with JetBrains decompiler
// Type: System.Web.UI.IHierarchyData
// Assembly: System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// MVID: 7E68A73E-4066-4F24-AB0A-F147209F50EC
// Assembly location: C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.Web.dll
namespace System.Web... | mater06/LEGOChimaOnlineReloaded | LoCO Client Files/Decompressed Client/Extracted DLL/System.Web/System/Web/UI/IHierarchyData.cs | C# | gpl-3.0 | 2,771 |
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
namespace Colosoft.Excel{
public partial class FORMULA : Record {
public FORMULA (Record a) : base (a) {
}
public UInt16 RowIndex;
public UInt16 ColIndex;
public UInt16 XFIndex;
public UInt64 Result;
public UInt16 Optio... | fabrimaciel/colosoft | Excel/Colosoft.Excel/FORMULA2.cs | C# | gpl-3.0 | 795 |
package org.jcloarca.twitterclient.images;
/**
* Created by JCLoarca on 6/19/2016 1:38 AM.
*/
public interface ImagesInteractor {
void execute();
}
| JoseLoarca/twitterclient | TwitterClient/app/src/main/java/org/jcloarca/twitterclient/images/ImagesInteractor.java | Java | gpl-3.0 | 155 |
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="shortcut icon" href="images/icon/profile.png"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>LAPORAN PELAKSANAAN PENUGASAN</title>
<meta charset="utf-8">
<meta name="viewport" content="width=dev... | amadibra/sipeg | Form_PLT453.php | PHP | gpl-3.0 | 9,824 |
# Copyright (C) 2011 Pawel Stiasny
# 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 program is distributed in t... | pstiasny/VITABS | vitabs/editor.py | Python | gpl-3.0 | 20,458 |
/*
* myTask.hpp
*
* Created on: 10-11-2012
* Author: lukee
*/
#ifndef ATASK_HPP_
#define ATASK_HPP_
#include "stm32f4xx.h"
/* FreeRTOS includes */
#include "FreeRTOS.h"
#include "task.h"
#include "semphr.h"
//my include
#include "hw_config.h"
#include "math.h"
static const uint8_t queueSIZE = 6;
extern "... | darklukee/poziomica | inc/aTask.hpp | C++ | gpl-3.0 | 1,061 |
/* =Spatial directions
* ------------------------------------------------------------ */
Direction = new (function() { /* jshint ignore:line */
this.n = new Vector( 0, 1); this.up = this.n;
this.ne = new Vector( 1, 1);
this.e = new Vector( 1, 0); this.right = this.e;
this.se = new Vector( 1, -1);
this.s = new... | lleaff/ASCII-life | src/js/lib/world_directions.js | JavaScript | gpl-3.0 | 2,772 |
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2022 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* EspoCRM is free software: you can redist... | espocrm/espocrm | application/Espo/Modules/Crm/Tools/MassEmail/Processor.php | PHP | gpl-3.0 | 16,942 |
/*
* Copyright (C) 2005-2010 Erik Nilsson, software on versionstudio point com
*
* 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... | versionstudio/vibestreamer | src/win32/AboutDialog.cpp | C++ | gpl-3.0 | 1,655 |
namespace Ribbonizer.Wrappers.Microsoft
{
using System.Diagnostics.CodeAnalysis;
using System.Windows.Controls;
using System.Windows.Controls.Ribbon;
using Ribbonizer.Ribbon.Groups;
[ExcludeFromCodeCoverage]
internal class RibbonGroupWrapper : IRibbonGroupView, IWrapper<RibbonGroup>
{
... | BrunoJuchli/RibbonizerSample | Ribbonizer.Wrappers.Microsoft/RibbonGroupWrapper.cs | C# | gpl-3.0 | 1,094 |
require 'rails_helper'
RSpec.describe MultipleChoiceQuestion, type: :model do
describe "#correct" do
context "answered questions (right)" do
let(:answered_question) { build(:multiple_choice_question) }
it { expect(answered_question).to be_valid }
it { expect(answered_question.correct?).to eq(t... | dtu-compute/dtu-quiz | spec/models/multiple_choice_question_spec.rb | Ruby | gpl-3.0 | 1,050 |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0" language="es" sourcelanguage="en">
<context>
<name>XmppStream</name>
<message>
<source>Password request</source>
<translation>Solicitar contraseña</translation>
</message>
<message>
<source>Enter password for ... | sanchay160887/vacuum-im | src/translations/es/xmppstreams.ts | TypeScript | gpl-3.0 | 1,626 |