code stringlengths 572 46.5k | repo_name stringlengths 7 62 | path stringlengths 6 247 | language stringclasses 7
values | license stringclasses 15
values | size int64 572 46.5k |
|---|---|---|---|---|---|
package test.dataportal.functional;
/**
* Unit test for login service at ciclope
*/
public class LoginTest extends AbstractFunctionalTest {
private Services services;
@Override
protected void setUp() throws Exception {
super.setUp();
services = new Services();
}
public void testLoginFailed() throws Exce... | geomatico/dataportal | dataportal/src/test/java/test/dataportal/functional/LoginTest.java | Java | mit | 984 |
from django.conf import settings
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render
from django.template import Context, loader
from django.contrib.auth.decorators import login_required, user_passes_test
from django.contrib.auth import authenticate
from django.contrib.auth im... | dishad/deanslist | core/views.py | Python | mit | 3,296 |
# -*- coding: utf-8 -*-
"""
This is a set of utilities for faster development with Django templates.
render_to_response() and render_to_string() use RequestContext internally.
The app_prefixed_loader is a template loader that loads directly from the app's
'templates' folder when you specify an app prefix ('app/templa... | certik/chess | common/appenginepatch/ragendja/template.py | Python | mit | 3,045 |
package net.violet.platform.api.actions.admin.user;
import java.util.Collections;
import java.util.List;
import net.violet.platform.api.actions.AbstractAction;
import net.violet.platform.api.actions.ActionParam;
import net.violet.platform.api.exceptions.ForbiddenException;
import net.violet.platform.api.exceptions.In... | sebastienhouzet/nabaztag-source-code | server/OS/net/violet/platform/api/actions/admin/user/Delete.java | Java | mit | 1,321 |
package nl.waywayway.broodkruimels;
import android.content.*;
import android.util.*;
import com.google.gson.*;
import com.google.gson.reflect.*;
import java.lang.reflect.*;
import java.util.*;
import org.json.*;
// Hulp class voor CategoryDialogFragment, om gekozen categorieen
// op te slaan in en op te halen uit Sh... | hermanvandermaas/broodkruimels | app/src/main/java/nl/waywayway/broodkruimels/CategorySaveAndRestore.java | Java | mit | 2,337 |
/*
Copyright (C) 2003-2013 by Kristina Simpson <sweet.kristas@gmail.com>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any pur... | sweetkristas/xhtml | src/xhtml/xhtml_background_info.hpp | C++ | mit | 1,961 |
package org.zooper.becuz.restmote.controller.keyboards;
import java.awt.Robot;
import java.awt.Toolkit;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.StringSelection;
import java.awt.event.KeyEvent;
import org.zooper.becuz.restmote.controller.PcControllerAbstract;
/**
* Implementation of {@li... | becuz/RESTmoteControl | src/main/java/org/zooper/becuz/restmote/controller/keyboards/KeyboardClipboard.java | Java | mit | 1,035 |
package com.jrjedis;
import java.io.IOException;
import org.jruby.Ruby;
import org.jruby.RubyClass;
import org.jruby.RubyModule;
import org.jruby.runtime.load.BasicLibraryService;
/**
*
* @author guy
*/
public class JrjedisService implements BasicLibraryService {
@Override
public boolean basicLoad(final R... | guyboertje/jrjedis | src/main/java/com/jrjedis/JrjedisService.java | Java | mit | 1,109 |
package cn.hzun.sign.service.impl;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import cn.hzun.sign.dao.CoursesDao;
import cn.hzun.sign.entity.Courses;
import cn.hzun.sign.service.CoursesService;
/**
*
* @author mesie
* 2016年4月16日 上午11:14:31
*/
@Servi... | littlemesie/android-base | src/cn/hzun/sign/service/impl/CoursesServiceImpl.java | Java | mit | 590 |
// Resolving namespace conflicts
if (typeof majascan == "undefined") {var majascan = {};}
// helper class to extract the context variables of the httpChannel
// based largely on code by nmaier and Noitidart
const {Cc,Ci,Cr,components} = require("chrome");
majascan.httpChannelHelper =
{
// to determine which tab st... | dubbl/majascan | lib/httpChannelHelper.js | JavaScript | mit | 2,334 |
package fr.apside.approjects.filter;
import fr.apside.approjects.model.Agency;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.filter.OncePerRequestFilter;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
imp... | jollivetc/AP.Coach | server/src/main/java/fr/apside/approjects/filter/CORSFilter.java | Java | mit | 1,339 |
package com.cloudbees.ce.plugins.injector.repository;
import com.cloudbees.ce.plugins.injector.model.Plugin;
import com.cloudbees.ce.plugins.injector.model.PluginNameAndTier;
import hudson.util.VersionNumber;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.sprin... | alecharp/plugin-dependency-analyzer | src/main/java/com/cloudbees/ce/plugins/injector/repository/PluginRepository.java | Java | mit | 1,673 |
from __future__ import absolute_import, print_function, unicode_literals
from functools import partial
from ..deprecation import *
from ..registry import register_django_compatibility_fixer
# for backward-compatibility fixers
django1_31_bc_fixer = partial(
register_django_compatibility_fixer,
fixer_reference... | pakal/django-compat-patcher | src/django_compat_patcher/fixers/django3_1.py | Python | mit | 6,347 |
package org.cyclops.integrateddynamics.core.part.read;
import com.google.common.collect.Maps;
import org.cyclops.integrateddynamics.api.evaluate.variable.IValue;
import org.cyclops.integrateddynamics.api.evaluate.variable.IValueType;
import org.cyclops.integrateddynamics.api.part.IPartState;
import org.cyclops.integra... | harme199497/IntegratedDynamics | src/main/java/org/cyclops/integrateddynamics/core/part/read/PartStateReaderBase.java | Java | mit | 1,608 |
package com.storage;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.embedded.LocalServerPort;
import org.springframework.boot.test.context.SpringBoo... | harold174/cube-summation | src/test/java/com/storage/FileUploadIntegrationTests.java | Java | mit | 2,780 |
// +build darwin freebsd openbsd netbsd
package termios
import (
"syscall"
"time"
"unsafe"
)
const (
FREAD = 0x0001
FWRITE = 0x0002
)
// Tcgetattr gets the current serial port settings.
func Tcgetattr(fd uintptr, argp *syscall.Termios) error {
return ioctl(fd, syscall.TIOCGETA, uintptr(unsafe.Pointer(argp)))... | vito/gaol | Godeps/_workspace/src/github.com/pkg/term/termios/termios_bsd.go | GO | mit | 2,007 |
package com.redditme.redditservice;
import net.dean.jraw.RedditClient;
import net.dean.jraw.http.NetworkException;
import net.dean.jraw.http.UserAgent;
import net.dean.jraw.http.oauth.Credentials;
import net.dean.jraw.models.Submission;
import java.util.List;
import java.util.UUID;
/**
* Created by Ferenc on 12/8/2... | CloudburstArts/RedditMe | app/src/main/java/com/redditme/redditservice/RedditService.java | Java | mit | 979 |
/** @constructor */
ScalaJS.c.scala_collection_generic_MapFactory = (function() {
ScalaJS.c.scala_collection_generic_GenMapFactory.call(this)
});
ScalaJS.c.scala_collection_generic_MapFactory.prototype = new ScalaJS.inheritable.scala_collection_generic_GenMapFactory();
ScalaJS.c.scala_collection_generic_MapFactory.pr... | ignaciocases/hermeneumatics | node_modules/scala-node/main/target/streams/compile/externalDependencyClasspath/$global/package-js/extracted-jars/scalajs-library_2.10-0.4.0.jar--29fb2f8b/scala/collection/generic/MapFactory.js | JavaScript | mit | 2,094 |
/*
MIT License
Copyright (c) 2016-2017 Daniil Matkov
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, merge, publ... | matkovd/search-system | src/main/java/org/search/system/models/concurrent/ConcurrentUser.java | Java | mit | 2,589 |
/**
*
*/
package org.destinygg.mcwhitelist.auth;
import java.io.IOException;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.destinygg.mcwhitelist.auth.AuthResponse.AuthResponseType;
import org.json.JSONObject... | xtphty/MCWhitelist | src/main/java/org/destinygg/mcwhitelist/auth/DestinyGGAuthServiceImpl.java | Java | mit | 4,711 |
/*
* Copyright (C) 2007-2013 Geometer Plus <contact@geometerplus.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 2 of the License, or
* (at your option) any later ver... | liufeiit/itmarry | reader/android-reader/src/org/geometerplus/fbreader/bookmodel/BookModel.java | Java | mit | 2,611 |
package api
import (
"encoding/json"
"io"
"net/http"
)
// CollectionResponse represents a collection payload from the API.
type CollectionResponse struct {
Data interface{} `json:"data"`
}
// RespondWithData will write the supplied data in the standard API response
// format, and set the appropriate status code.... | renanrt/lab-go-api | api/response.go | GO | mit | 1,372 |
import { ElementToken } from '../parser/Token';
import { ComplexType, ElementTypeConstructor } from './ComplexType';
import { Group } from './Group';
import { MemberSpec, MemberMeta, SimpleType, SimpleValue } from './Member';
export class SimpleElementSpec extends MemberSpec {
/** Name and other info. */
meta: Sim... | charto/cxml | src/schema/Element.ts | TypeScript | mit | 2,647 |
package com.evanxie.donut.commons.config;
import java.util.HashMap;
import java.util.Map;
import org.apache.commons.configuration.Configuration;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.evanxie.donut.commons.exception.ApplicationException;
//This class implements the interface ConfigPropert... | Evan-Hsieh/donut | commons/src/main/java/com/evanxie/donut/commons/config/HierarchicalConfigProperties.java | Java | mit | 2,841 |
package org.robolectric.shadows;
import android.app.IntentService;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
import org.robolectric.annotation.RealObject;
import org.robolectric.util.ReflectionHelpers.ClassParameter;
import static org.robolectric.shadow.api.Shadow... | cesar1000/robolectric | robolectric-shadows/shadows-core/src/main/java/org/robolectric/shadows/ShadowIntentService.java | Java | mit | 901 |
package cloudformation
import (
"encoding/json"
"errors"
"fmt"
)
// AWSConfigConfigurationRecorder AWS CloudFormation Resource (AWS::Config::ConfigurationRecorder)
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-configurationrecorder.html
type AWSConfigConfigurationRecorde... | minutelab/mless | vendor/github.com/awslabs/goformation/cloudformation/aws-config-configurationrecorder.go | GO | mit | 4,663 |
package org.jdfs.commons.codec;
import org.apache.mina.core.buffer.IoBuffer;
import org.apache.mina.core.session.IoSession;
import org.apache.mina.filter.codec.ProtocolEncoderOutput;
import org.jdfs.commons.request.JdfsStatusResponse;
import org.springframework.util.StringUtils;
/**
* jdfs请求状态响应信息编码器的缺省实现
* @author... | quanz123/jdfs | jdfs-commons/src/main/java/org/jdfs/commons/codec/JdfsStatusResponseMessageEncoder.java | Java | mit | 1,124 |
// Copyright 2015 The Prometheus Authors
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to... | jordic/k8s | cloudsqlip/Godeps/_workspace/src/github.com/prometheus/common/expfmt/encode.go | GO | mit | 2,772 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = undefined;
var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
var _classCallCheck2 = require('babel-runtime/helpers/classCallC... | eordano/coloredcoinjs-lib | lib/storage/data/postgresql.js | JavaScript | mit | 1,789 |
package net.collaud.fablab.api.data;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonManagedReference;
import java.io.Serializable;
import java.util.List;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistenc... | HEG-Arc/fablab-manager | src/main/java/net/collaud/fablab/api/data/MachineTypeEO.java | Java | mit | 1,778 |
package com.stepsoft.common.logger;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/***
* 应用程序日志文件类,用于记录日志文件,目前使用slf4j来记录日志。<br />
* 请在samplelogger.properties文件中设置日志信息。
*
* @author sam
*
*/
public class AppLogger {
public static void debug(Class<?> clazz, String message) {
Logger logger = LoggerF... | 40925645/CommonUtil | src/main/java/com/stepsoft/common/logger/AppLogger.java | Java | cc0-1.0 | 1,009 |
/*
* Copyright (c) 2016 Brocade Communications Systems, Inc. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html... | inocybe/odl-controller | opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/messages/CreateTransactionTest.java | Java | epl-1.0 | 4,073 |
/*******************************************************************************
* Copyright (c) 1998, 2012 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1... | bfg-repo-cleaner-demos/eclipselink.runtime-bfg-strip-big-blobs | utils/eclipselink.utils.workbench.test/mappingsplugin/source/org/eclipse/persistence/tools/workbench/test/models/projects/PhoneCompanyRuntimeProject.java | Java | epl-1.0 | 23,863 |
package hu.elte.txtuml.api.model.execution.log;
import hu.elte.txtuml.api.model.AssociationEnd;
import hu.elte.txtuml.api.model.GeneralCollection;
import hu.elte.txtuml.api.model.ModelClass;
import hu.elte.txtuml.api.model.ModelClass.Port;
import hu.elte.txtuml.api.model.Signal;
import hu.elte.txtuml.api.model.executi... | ELTE-Soft/txtUML | dev/plugins/hu.elte.txtuml.api.model.execution/src/hu/elte/txtuml/api/model/execution/log/WarningLogger.java | Java | epl-1.0 | 1,728 |
/*******************************************************************************
* Copyright (c) 2010 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http:... | spearce/egit | org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/NewRemoteWizard.java | Java | epl-1.0 | 4,521 |
/*******************************************************************************
* Debrief - the Open Source Maritime Analysis Application
* http://debrief.info
*
* (C) 2000-2020, Deep Blue C Technology Ltd
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the Eclip... | debrief/debrief | org.mwc.cmap.core/src/org/mwc/cmap/core/wizards/ImportRepFreqDialog.java | Java | epl-1.0 | 3,603 |
#include "portcontrol.h"
#include "netx_io_areas.h"
void portcontrol_apply(const unsigned short *pusIndex, const unsigned short *pusConfiguration, size_t sizConfiguration)
{
const unsigned short *pusIndexCnt;
const unsigned short *pusIndexEnd;
const unsigned short *pusConfigurationCnt;
unsigned long ulConfigura... | muhkuh-sys/blinki | src/netx4000/portcontrol.c | C | gpl-2.0 | 909 |
/**
* OWASP Benchmark Project v1.1
*
* This file is part of the Open Web Application Security Project (OWASP)
* Benchmark Project. For details, please see
* <a href="https://www.owasp.org/index.php/Benchmark">https://www.owasp.org/index.php/Benchmark</a>.
*
* The Benchmark is free software: you can redistribute it and/... | iammyr/Benchmark | src/main/java/org/owasp/benchmark/testcode/BenchmarkTest15395.java | Java | gpl-2.0 | 3,133 |
import {
ACTIVE_PROMOTIONS_RECEIVE,
ACTIVE_PROMOTIONS_REQUEST,
ACTIVE_PROMOTIONS_REQUEST_SUCCESS,
ACTIVE_PROMOTIONS_REQUEST_FAILURE,
} from 'calypso/state/action-types';
// WP REST-API error response
export const ERROR_MESSAGE_RESPONSE =
'There was a problem fetching activePromotions. Please try again later or co... | Automattic/wp-calypso | client/state/active-promotions/test/fixture/index.js | JavaScript | gpl-2.0 | 1,876 |
package de.metas.inoutcandidate.api.impl;
/*
* #%L
* de.metas.swat.base
* %%
* Copyright (C) 2015 metas GmbH
* %%
* 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... | klst-com/metasfresh | de.metas.swat/de.metas.swat.base/src/main/java/de/metas/inoutcandidate/api/impl/ReceiptScheduleQtysBL.java | Java | gpl-2.0 | 8,026 |
#ifndef SDM_BITSTRING_H
#define SDM_BITSTRING_H
#include <stdint.h>
typedef uint64_t bitstring_t;
void bs_init_bitcount_table(void);
bitstring_t* bs_alloc(const unsigned int len);
void bs_free(bitstring_t *bs);
void bs_init_zeros(bitstring_t *bs, unsigned int len, unsigned int bits_remaining);
void bs_init_ones(b... | msbrogli/sdm-framework | src/bitstring.h | C | gpl-2.0 | 1,748 |
/**
WikiCrimes (http://www.wikicrimes.org) is a project/software that allows posting and accessing criminal occurrences in a digital map.
The philosophy that drives Wikicrimes is the same as Wikipedia: mass collaboration produces valuable knowledge.
That is to say, if everybody participates, the criminal ... | Wikicrimes/WikiCrimesOpenSource | src/main/java/org/wikicrimes/util/statistics/DividedClientEventsRetriever.java | Java | gpl-2.0 | 2,091 |
import os
from Screens.Screen import Screen
from Components.ActionMap import ActionMap
from Components.config import config
from Components.AVSwitch import AVSwitch
from Components.SystemInfo import SystemInfo
from Components.Harddisk import harddiskmanager
from GlobalActions import globalActionMap
from enigma import e... | popazerty/openhdf-enigma2 | lib/python/Screens/Standby.py | Python | gpl-2.0 | 12,067 |
package com.rise.widgetfactory.fragments;
import android.content.Context;
import android.graphics.Color;
import android.net.Uri;
import android.os.Bundle;
import android.support.design.widget.CollapsingToolbarLayout;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.vi... | code2rise/WidgetFactory | WidgetFactory/app/src/main/java/com/rise/widgetfactory/fragments/CollapsibleToolbarAndAppbarDemoFragment.java | Java | gpl-2.0 | 2,005 |
package com.ani.octopus.service.agent.service.deviceobj;
import com.ani.bus.service.commons.dto.anidevice.DeviceMasterObjInfoDto;
import com.ani.octopus.service.agent.core.config.AnicelMeta;
import com.ani.octopus.service.agent.core.http.RestTemplateFactory;
import com.fasterxml.jackson.databind.ObjectMapper;
import c... | anicloud/octopus-object-client | object-agent/java/service-agent/src/test/java/com/ani/octopus/service/agent/service/deviceobj/DeviceObjServiceTest.java | Java | gpl-2.0 | 1,414 |
/**
* @file
* @brief Defines some savefile structures
*/
/*
Copyright (C) 2002-2015 UFO: Alien Invasion.
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 yo... | mgerhardy/ufoai | src/client/cgame/campaign/cp_save.h | C | gpl-2.0 | 3,052 |
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include "encl_common.h"
#include "bluehawk.h"
#include "homerun.h"
#include "slider.h"
/*
* Factor byte0->status into the composite status cur. A missing element
* (ES_NOT_INSTALLED) is ignored. A non-critical status is less severe
* than critical. Othe... | kamalesh-babulal/ppc64-diag | diags/test/test_utils.c | C | gpl-2.0 | 5,847 |
/*
* Copyright (C) 2008, 2009, 2010 Red Hat Inc, Steven Rostedt <srostedt@redhat.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 b... | shizkr/andtracecmd | trace-cmd.h | C | gpl-2.0 | 9,351 |
/*
Copyright_License {
XCSoar Glide Computer - http://www.xcsoar.org/
Copyright (C) 2000-2011 The XCSoar Project
A detailed list of copyright holders can be found in the file "AUTHORS".
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
... | smurry/XCSoar | src/Airspace/AirspaceParser.hpp | C++ | gpl-2.0 | 1,238 |
pth1='/home/tpmaxwel/.edas/cache/cdscan/merra2_mon_ua.xml'
pth2='/home/tpmaxwel/.edas/cache/cdscan/merra_mon_ua.xml'
varin='ua'
model1_name='MERRA2'
model2_name='MERRA'
outfile='/home/tpmaxwel/.edas/cache/'
plot_title='MERRA2 (top) MERRA zonal averaged DJF U winds'
########################### END of SETUP ########... | nasa-nccs-cds/EDAS | python/test/localPerformanceTests/potterDemo2.py | Python | gpl-2.0 | 3,081 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This program is distributed in the hope that it will be... | asljivo1/802.11ah-ns3 | ns-3/src/applications/helper/tcp-echo-helper.cc | C++ | gpl-2.0 | 4,180 |
from django.contrib.auth.models import User, Group
# from django.views.decorators.csrf import csrf_exempt
from rest_framework import viewsets
from common.models import BackScratcher
from common.serializers import (
UserSerializer, GroupSerializer, BackScratcherSerializer)
class UserViewSet(viewsets.ModelViewSe... | matiasherranz/backscratch | restproject/common/views.py | Python | gpl-2.0 | 977 |
#pragma once
#include "PD_Scene_LoadingScreen.h"
#include <StandardFrameBuffer.h>
#include <RenderSurface.h>
#include <RenderOptions.h>
#include <Game.h>
#include <PD_ResourceManager.h>
#include <VerticalLinearLayout.h>
#include <shader/ShaderComponentText.h>
#include <shader/ComponentShaderText.h>
#include <TextArea.... | SweetheartSquad/Game | partyDarling/source/PartyDarling/src/PD_Scene_LoadingScreen.cpp | C++ | gpl-2.0 | 4,850 |
#include "DebugCanvas2D.h"
#include "Renderer2D.h"
#include "VanguardSDL.h"
#define SPLIT_COLOR_RGBA(VanguardColor) VanguardColor.r, VanguardColor.g, VanguardColor.b, VanguardColor.a
#define SPLIT_COLOR_RGB(VanguardColor) VanguardColor.r, VanguardColor.g, VanguardColor.b
namespace Vanguard
{
DebugCanvas2D::DebugCan... | MartinPalko/VanguardEngine | Modules/Renderer2D/DebugCanvas2D.cpp | C++ | gpl-2.0 | 2,994 |
/* UOL Messenger
* Copyright (c) 2005 Universo Online S/A
*
* Direitos Autorais Reservados
* All rights reserved
*
* Este programa é software livre; você pode redistribuí-lo e/ou modificá-lo
* sob os termos da Licença Pública Geral GNU conforme publicada pela Free
* Software Foundation; tanto a versão 2 da Lice... | gabrieldelsaint/uol-messenger | src/public/plugins/uolcrypto/CryptoProtocolController.cpp | C++ | gpl-2.0 | 5,675 |
/**
* OWASP Benchmark Project v1.1
*
* This file is part of the Open Web Application Security Project (OWASP)
* Benchmark Project. For details, please see
* <a href="https://www.owasp.org/index.php/Benchmark">https://www.owasp.org/index.php/Benchmark</a>.
*
* The Benchmark is free software: you can redistribute it and/... | iammyr/Benchmark | src/main/java/org/owasp/benchmark/testcode/BenchmarkTest10673.java | Java | gpl-2.0 | 2,466 |
/*
This file is a part of libcds - Concurrent Data Structures library
(C) Copyright Maxim Khizhinsky (libcds.dev@gmail.com) 2006-2017
Source code repo: http://github.com/khizmax/libcds/
Download: http://sourceforge.net/projects/libcds/files/
Redistribution and use in source and binary forms, with... | whc10002/study | libcds/test/unit/striped-set/set_boost_unordered_set.cpp | C++ | gpl-3.0 | 2,462 |
package com.example.vanguard;
import android.content.Context;
import android.content.SharedPreferences;
import com.example.vanguard.pages.activities.MainActivity;
import java.util.Locale;
/**
* Created by mbent on 7/20/2017.
*/
public class TeamNumberManager {
private static String TEAM_NUMBER_PREF = "TEAM_NUM... | alexnlederman/scoutingapp | vanguard2/src/main/java/com/example/vanguard/TeamNumberManager.java | Java | gpl-3.0 | 1,062 |
package com.kno10.corenlplucene;
/*
* Copyright (C) 2016
* Erich Schubert
*
* 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 la... | kno10/CoreNLPLucene | src/main/java/com/kno10/corenlplucene/CoreNLPTokenStream.java | Java | gpl-3.0 | 4,969 |
package de.spiritaner.maz.controller.person;
import de.spiritaner.maz.controller.OverviewController;
import de.spiritaner.maz.model.Approval;
import de.spiritaner.maz.model.Person;
import de.spiritaner.maz.model.meta.*;
import de.spiritaner.maz.util.database.CoreDatabase;
import de.spiritaner.maz.view.dialog.RemoveDia... | fschwab/maz-db | database/src/main/java/de/spiritaner/maz/controller/person/PersonOverviewController.java | Java | gpl-3.0 | 6,348 |
/**
* This file is part of MetTeL.
*
* MetTeL 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.
*
* MetTeL is distributed in the ... | dmitry-et/MetTeL2 | src/mettel/util/MettelProblemFile.java | Java | gpl-3.0 | 8,652 |
//Copyright (c) 2011 Municipalidad de Rosario and Coop. de Trabajo Tecso Ltda.
//This file is part of SIAT. SIAT is licensed under the terms
//of the GNU General Public License, version 3.
//See terms in COPYING file or <http://www.gnu.org/licenses/gpl.txt>
package ar.gov.rosario.siat.gde.view.struts;
import javax.se... | avdata99/SIAT | siat-1.0-SOURCE/src/view/src/WEB-INF/src/ar/gov/rosario/siat/gde/view/struts/BuscarCobranzaDAction.java | Java | gpl-3.0 | 15,322 |
package net.foxopen.fox;
import net.foxopen.fox.ex.ExInternal;
import java.util.HashMap;
import java.util.Map;
/**
* Methods of how FOX should respond to a module response. Streaming starts sending data out to the client as soon as
* it's serialsed whereas buffered serialses the whole module and closes the thread ... | Fivium/FOXopen | src/main/java/net/foxopen/fox/ResponseMethod.java | Java | gpl-3.0 | 1,159 |
/*
* Spirit, a study/biosample management tool for research.
* Copyright (C) 2018 Idorsia Pharmaceuticals Ltd., Hegenheimermattweg 91,
* CH-4123 Allschwil, Switzerland.
*
* 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
... | jfreyss/spirit | src/com/actelion/research/spiritapp/ui/util/SpiritAction.java | Java | gpl-3.0 | 10,915 |
/**
* Copyright 2013 Society for Health Information Systems Programmes, India (HISP India)
*
* This file is part of OT module.
*
* OT module 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, e... | hispindia/OT | omod/src/main/java/org/openmrs/module/OT/web/controller/minorOT/observation/searchObsProcedureController.java | Java | gpl-3.0 | 3,852 |
package org.activityinfo.ui.client.widget.loading;
import com.google.gwt.core.client.GWT;
import com.google.gwt.core.client.Scheduler;
import com.google.gwt.dom.client.SpanElement;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.event.... | LeoTremblay/activityinfo | server/src/main/java/org/activityinfo/ui/client/widget/loading/TableLoadingIndicator.java | Java | gpl-3.0 | 1,975 |
/*
* This file is part of Industrial Wires.
* Copyright (C) 2016-2018 malte0811
* Industrial Wires 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... | malte0811/IndustrialWires | src/main/java/malte0811/industrialwires/client/IWTickableSound.java | Java | gpl-3.0 | 3,056 |
package fi.otavanopisto.pyramus.views.modules;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import fi.internetix.smvc.controllers.PageRequestContext;
import fi.otavanopisto.pyramus.I18N.Messages;
import fi.otavanopisto.pyramus.breadcrumb... | otavanopisto/pyramus | pyramus/src/main/java/fi/otavanopisto/pyramus/views/modules/SearchModulesViewController.java | Java | gpl-3.0 | 3,391 |
package napier.pedigree.swing.app.actions;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.Icon;
import javax.swing.KeyStroke;
import util.Messages;
import util.StringUtils;
import napier.pedigree.util.... | martingraham/viper | src/napier/pedigree/swing/app/actions/PropertyPrefixBasedAction.java | Java | gpl-3.0 | 2,812 |
# Copyright (C) 2011 Statoil ASA, Norway.
#
# The file '__init__.py' is part of ERT - Ensemble based Reservoir Tool.
#
# ERT 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 Licens... | arielalmendral/ert | python/python/ert/ecl/__init__.py | Python | gpl-3.0 | 4,061 |
package com.nianticproject.ingress.common.ui.elements;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.badlogic.gdx.scenes.scene2d.ui.Button;
import com.badlogic.gdx.scenes.scene2d.ui.Window;
import com.badlogic.gdx.scene... | isnuryusuf/ingress-indonesia-dev | apk/classes-ekstartk/com/nianticproject/ingress/common/ui/elements/x.java | Java | gpl-3.0 | 2,606 |
/*
Copyright (C) 2018 Erik Ogenvik
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 later version.
This program is distributed in the ho... | worldforge/ember | src/components/ogre/SkeletonDisplay.cpp | C++ | gpl-3.0 | 2,370 |
import postData from './postData';
import commonData from './commonData';
function sendCommand(name, commandData, success) {
const kf = new KeyFile();
const commandPlain = JSON.stringify(commandData);
let rsa = new RSAKey();
rsa.setPrivate(kf.getMyPublicKey(), commonData.global_rsa_e, kf.getMyPrivateKey());
... | lobzik84/upravdom_web | public_html/assets/js/components/common/sendCommand.js | JavaScript | gpl-3.0 | 1,422 |
#include "widgeteditvoladizo.h"
#include "ui_widgeteditvoladizo.h"
#include "../model/esquemas_estructurales/voladizo.h"
WidgetEditVoladizo::WidgetEditVoladizo(QWidget *parent) :
QWidget(parent),
ui(new Ui::WidgetEditVoladizo)
{
ui->setupUi(this);
}
WidgetEditVoladizo::~WidgetEditVoladizo()
{
delete u... | diegowald/mkstools | mkstools/widgets/widgeteditvoladizo.cpp | C++ | gpl-3.0 | 1,252 |
package org.kuorum.provider.mysql.model.contact.filter.condition;
import org.kuorum.provider.mysql.model.contact.filter.FilterCondition;
import org.kuorum.provider.mysql.model.contact.filter.condition.operator.EventConditionOperator;
import org.kuorum.provider.mysql.model.contact.filter.condition.operator.NumberCondit... | Kuorum/kuorumServices | providerMySql/src/main/java/org/kuorum/provider/mysql/model/contact/filter/condition/EventFilterCondition.java | Java | gpl-3.0 | 1,272 |
/*
* Copyright (c) 2014 Jakob Wenzel, Ramon Wirsch.
*
* This file is part of RallyeSoft.
*
* RallyeSoft 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 op... | jakobwenzel/rallye-server | Server/src/main/java/de/rallye/api/Chatrooms.java | Java | gpl-3.0 | 4,712 |
/*
Copyright (C) 2015 The newt Authors.
This file is part of newt.
newt 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.
newt is dis... | cqcallaw/newt | src/function_variant.cpp | C++ | gpl-3.0 | 1,492 |
from django.db import models
from issy_web.constants import ESTADO_CIVIL
import datetime
from django.core.urlresolvers import reverse
# Create your models here.
from django.contrib.auth import get_user_model
User = get_user_model()
class Conductor(models.Model):
#user = models.OneToOneField(User, on_delete=models.C... | christianfm10/issy_web_project | issy_web/conductor/models.py | Python | gpl-3.0 | 1,347 |
/*
* Title: StorageCloudSim
* Description: StorageCloudSim (Storage as a Service Cloud Simulation), an extension for CloudSim
* Licence: GPL - http://www.gnu.org/copyleft/gpl.html
*
* Copyright (c) 2013, Karlsruhe Institute of Technology, Germany
* https://github.com/toebbel/StorageCloudSim
* http:/... | toebbel/StorageCloudSim | src/edu/kit/cloudSimStorage/policies/DefaultObjectToServerAllocation.java | Java | gpl-3.0 | 2,788 |
/*
* TACO: Translation of Annotated COde
* Copyright (c) 2010 Universidad de Buenos Aires
*
* 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 ... | zeminlu/comitaco | src/ar/edu/taco/jml/div/ReplaceDivByShiftStmtVisitor.java | Java | gpl-3.0 | 9,371 |
/*******************************************************************************
* 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... | WorldGrower/WorldGrower | test/org/worldgrower/actions/UTestSellAction.java | Java | gpl-3.0 | 6,355 |
/* This file is part of Syncro.
Copyright (c) Graeme Coupar <grambo@grambo.me.uk>
Syncro 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 versi... | obmarg/syncro | Syncro Server/Syncro Server/src/BroadcastThread.cpp | C++ | gpl-3.0 | 1,231 |
package de.btu.openinfra.backend.db.jpa.model;
import java.io.Serializable;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedNativeQueries;
import javax.persistence.NamedNativeQuery;
import javax.pe... | noacktino/core | openinfra_core/src/main/java/de/btu/openinfra/backend/db/jpa/model/RelationshipType.java | Java | gpl-3.0 | 5,587 |
package uni.miskolc.ips.ilona.navigation.persist.ontology;
import java.io.File;
import java.util.HashSet;
import java.util.Set;
import java.util.UUID;
import org.semanticweb.HermiT.Reasoner;
import org.semanticweb.owlapi.apibinding.OWLManager;
import org.semanticweb.owlapi.model.OWLClass;
import org.semanticweb.owlap... | ZsoltToth/ilona | navigation/navigation-persist-ontology/src/main/java/uni/miskolc/ips/ilona/navigation/persist/ontology/OntologyDAOImpl.java | Java | gpl-3.0 | 12,605 |
package com.zencode.tripledescryptor;
import org.apache.commons.codec.binary.Base64;
import org.slf4j.Logger;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springf... | jfvalenzu/tripledescryptor | src/main/java/com/zencode/tripledescryptor/TripledescryptorApplication.java | Java | gpl-3.0 | 1,571 |
"""
Example ZincView model loading script.
Loads a time-varying prolate spheroidal dog heart deformation simulation with fibre field.
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/M... | ABI-Software/ZincView | data/deforming_heart/deforming_heart.zincview.py | Python | mpl-2.0 | 7,647 |
/*
* Copyright 2014 A.C.R. Development
*/
package com.browser.popbrowser;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.util.Log;
import android.webkit.DownloadListener;
import android.webkit.URLUtil;
import com.browser.popbrowser.R;
public class... | f1vefour/popBrowser | src/com/browser/popbrowser/LightningDownloadListener.java | Java | mpl-2.0 | 1,644 |
/*****************************************************************************************
* *** BEGIN LICENSE BLOCK *****
*
* Version: MPL 2.0
*
* echocat Jomon, Copyright (c) 2012-2013 echocat
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was n... | echocat/jomon | process/src/main/java/org/echocat/jomon/process/sigar/SigarFacade.java | Java | mpl-2.0 | 8,668 |
// Package grpcutil implements a gRPC HTTP handler and OpenAPI proxy. Useful to serve gRPC requests from an existing HTTP servers.
package grpcutil
import (
"crypto/tls"
"crypto/x509"
"log"
"net"
"net/http"
"strings"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
"google.golang.org/grpc"
"google.golang.org... | c4milo/handlers | grpcutil/grpc_handler.go | GO | mpl-2.0 | 5,698 |
/**
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS"
* ba... | pfschwartz/openelisglobal-core | app/src/us/mn/state/health/lims/result/action/util/ResultUtil.java | Java | mpl-2.0 | 3,868 |
package org.openmrs.reference;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
/**
* Created by nata on 22.06.15.
*/
import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.openmrs.reference.page.ClinicianFacingPatientDas... | openmrs-gci/openmrs-distro-referenceapplication | ui-tests/src/test/java/org/openmrs/reference/AddDiagnosisToVisitNoteTest.java | Java | mpl-2.0 | 1,644 |
import Analyzer from 'parser/core/Analyzer';
import Events, {
EventType,
GlobalCooldownEvent,
UpdateSpellUsableEvent,
} from 'parser/core/Events';
import SpellUsable from '../modules/SpellUsable';
const GCD_MATCH_BUFFER_MS = 150;
const RESET_BUFFER_PERCENT = 0.5;
class SpellTimeWaitingOnGlobalCooldown extends ... | ronaldpereira/WoWAnalyzer | src/parser/shared/enhancers/SpellTimeWaitingOnGlobalCooldown.ts | TypeScript | agpl-3.0 | 1,786 |
package actions
import (
"context"
"github.com/getfider/fider/app"
"github.com/getfider/fider/app/models/entity"
"github.com/getfider/fider/app/models/enum"
"github.com/getfider/fider/app/models/query"
"github.com/getfider/fider/app/pkg/bus"
"github.com/getfider/fider/app/pkg/validate"
)
// SignInByEmail hap... | getfider/fider | app/actions/signin.go | GO | agpl-3.0 | 2,908 |
/*
* This file is part of Relaxe.
* Copyright (c) 2014 Topi Nieminen
* Author: Topi Nieminen <topi.nieminen@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License version 3
* as published by the Free Software Foundation.
... | tjn/relaxe | src/main/java/com/appspot/relaxe/rdbms/TriggerGeneratedKeyHandler.java | Java | agpl-3.0 | 4,673 |
/*
* Copyright (C) 2015 ElectronWill
*
* 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.
*
* This program is d... | MCPhoton/Photon-MC1.8 | src/org/mcphoton/event/Events.java | Java | agpl-3.0 | 5,257 |
package network.thunder.core.communication.objects.messages.impl;
import network.thunder.core.communication.Message;
import network.thunder.core.communication.objects.messages.impl.message.encryption.EncryptedMessage;
import network.thunder.core.communication.objects.messages.interfaces.helper.MessageEncrypter;
import... | matsjj/thundernetwork | thunder-core/src/main/java/network/thunder/core/communication/objects/messages/impl/MessageEncrypterImpl.java | Java | agpl-3.0 | 1,540 |
/**
* Copyright (C) 2015-2018 Diego Feitosa [dnfeitosa@gmail.com]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ... | dnfeitosa/codegraph | codegraph-server/src/main/java/co/degraph/server/api/controllers/IndexController.java | Java | agpl-3.0 | 3,361 |
package com.bio4j.blueprints.model.relationships.protein;
import com.bio4j.model.relationships.protein.ProteinMiscellaneousDiscrepancy;
import com.bio4j.blueprints.model.Edge;
/**
*
* @author Pablo Pareja Tobes <ppareja@era7.com>
*/
public final class ProteinMiscellaneousDiscrepancyRel extends BasicProteinSeque... | bio4j/blueprints | src/main/java/com/bio4j/blueprints/model/relationships/protein/ProteinMiscellaneousDiscrepancyRel.java | Java | agpl-3.0 | 809 |
/*!
* This program is free software; you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License, version 2.1 as published by the Free Software
* Foundation.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* program; if not, you can ob... | EgorZhuk/pentaho-reporting | designer/report-designer/src/main/java/org/pentaho/reporting/designer/core/editor/ConfigurationEditorDialog.java | Java | lgpl-2.1 | 4,207 |
/*
* Copyright (C) 2011 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condition... | youfoh/webkit-efl | Source/WebKit/chromium/tests/CCSchedulerStateMachineTest.cpp | C++ | lgpl-2.1 | 42,641 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.