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 be.neutrinet.ispng.security;
import be.neutrinet.ispng.vpn.Users;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
import org.apache.log4j.Logger;
import java.sql.SQLException;
import java.util.UUID;
/**
* Created by wannes on 12/20/14.
*/
@DatabaseTable(tableName =... | Neutrinet/ISP-ng | src/main/java/be/neutrinet/ispng/security/SessionToken.java | Java | gpl-3.0 | 1,487 |
import React, { Component } from 'react';
import { Link } from 'react-router-dom'
import { CSSTransition } from 'react-transition-group';
class Nav extends Component {
constructor(props) {
super(props);
this.state = {
menuActive: false
}
this.handleClick = this.handleClick.bind(this);
}
h... | 7sleepwalker/addicted-to-mnt | src/js/Components/Nav.js | JavaScript | gpl-3.0 | 1,662 |
using GIELIE.Data.Interfaces;
using System;
namespace GIELIE.Data.DTO.Models
{
public class Category : ICategory
{
public Guid CategoryId
{
get; set;
}
public string Description
{
get; set;
}
}
}
| FoulFruit/Gielie | GIELIE.DataTransferObjects/Models/Category.cs | C# | gpl-3.0 | 285 |
package demo.designpatterns.simplefactory;
/**
* Created by Roger Xu on 2017/6/24.
*/
public class MobileFactory {
public Mobile getMobile(String title) throws Exception {
if (title.equalsIgnoreCase("nokia")) {
return new Nokia();
} else if (title.equalsIgnoreCase("motorola")) {
... | rogerxu/design-patterns | src/main/java/demo/designpatterns/simplefactory/MobileFactory.java | Java | gpl-3.0 | 456 |
Bitrix 16.5 Business Demo = 2766fc7626da327759c9a996f5e98720
| gohdan/DFC | known_files/hashes/bitrix/modules/sale/install/admin/sale_stat_graph_money.php | PHP | gpl-3.0 | 61 |
/**
* Contains methods for working with device using the MODBUS protocol over
* RS232
*/
package kernel.modbus; | OmicronProject/BakeoutController-Basic | src/main/java/kernel/modbus/package-info.java | Java | gpl-3.0 | 114 |
package problem0137
func singleNumber(nums []int) int {
var ans int32
for i := 0; i < 32; i++ {
cnt := 0
for _, num := range nums {
if (num & (1 << uint(i))) > 0 {
cnt++
}
}
if cnt%3 == 1 {
ans |= 1 << uint(i)
}
}
return int(ans)
} | zjbztianya/LeetCode | Algorithms/0137.single-number-ii/single-number-ii.go | GO | gpl-3.0 | 260 |
/*
* Orthos backend functions. Mostly inspired by slim DM code.
* Big thanks to Per Liden, Simone Rota and Johannes Winkelmann.
*
* [exa]
*/
#include "sys.h"
#include "settings.h"
//#define _GNU_SOURCE
#include <sys/types.h>
#include <sys/time.h>
#include <sys/wait.h>
#include <errno.h>
#include <unistd.h>
#in... | aur-archive/orthos | sys.cpp | C++ | gpl-3.0 | 8,120 |
/*
* PropertiesToolBar.java
*
* Copyright (C) 2002-2017 Takis Diakoumis
*
* 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 any later version.
*
* T... | takisd123/executequery | src/org/executequery/gui/prefs/PropertiesToolBar.java | Java | gpl-3.0 | 13,636 |
package com.compwiz1548.elementaltemples.item;
public class ItemForestRelic extends ItemET
{
public ItemForestRelic()
{
super();
this.setUnlocalizedName("forestRelic");
this.setMaxStackSize(1);
}
}
| compwiz1548/ElementalTemples | src/main/java/com/compwiz1548/elementaltemples/item/ItemForestRelic.java | Java | gpl-3.0 | 235 |
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Text.RegularExpressions;
using System.Web;
using Deveel.Data.Util;
namespace Deveel.Data.Net.Security {
public class OAuthParameters : ... | deveel/cloudb-oauth | src/cloudb-oauth/Deveel.Data.Net.Security/OAuthParameters.cs | C# | gpl-3.0 | 22,848 |
/*
* VerticalGlass.java
* Copyright (C) 2010-2011 Jonas Eriksson
*
* 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 versio... | zqad/zmask | src/org/zkt/zmask/masks/VerticalGlass.java | Java | gpl-3.0 | 2,138 |
# ../gungame/core/messages/hooks.py
"""Provides a way to hook GunGame messages."""
# =============================================================================
# >> IMPORTS
# =============================================================================
# Source.Python
from core import AutoUnload
# GunGame
from .m... | GunGame-Dev-Team/GunGame-SP | addons/source-python/plugins/gungame/core/messages/hooks.py | Python | gpl-3.0 | 1,705 |
<?php
namespace App\Admin\Controllers;
use App\CriterioDesempateGrupoEvento;
use App\Http\Controllers\Controller;
use Encore\Admin\Controllers\HasResourceActions;
use Encore\Admin\Form;
use Encore\Admin\Grid;
use Encore\Admin\Layout\Content;
use Encore\Admin\Show;
class CriterioDesempateGrupoEventoController extends... | XadrezSuico/XadrezSuico | app/Admin/Controllers/CriterioDesempateGrupoEventoController.php | PHP | gpl-3.0 | 2,228 |
package com.neemre.bitplexus.backend.model;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
i... | priiduneemre/bitplexus | src/main/java/com/neemre/bitplexus/backend/model/AddressType.java | Java | gpl-3.0 | 4,237 |
# coding=utf-8
""" NodeChains are sequential orders of :mod:`~pySPACE.missions.nodes`
.. image:: ../../graphics/node_chain.png
:width: 500
There are two main use cases:
* the application for :mod:`~pySPACE.run.launch_live` and the
:mod:`~pySPACE.environments.live` using the default
:class:`Nod... | Crespo911/pyspace | pySPACE/environments/chains/node_chain.py | Python | gpl-3.0 | 60,058 |
import pandas as pd
adv = pd.read_csv('Advertising.csv')
tv_budget_x = adv.TV.tolist()
print(tv_budget_x)
| akanuragkumar/tensorflow-basics | ex1.py | Python | gpl-3.0 | 110 |
package com.dotmarketing.portlets.dashboard.model;
import java.io.Serializable;
import java.util.Date;
public class DashboardSummaryPeriod implements Serializable {
private static final long serialVersionUID = 1L;
private long id;
private Date fullDate;
private int day;
private String dayName;
pri... | ggonzales/ksl | src/com/dotmarketing/portlets/dashboard/model/DashboardSummaryPeriod.java | Java | gpl-3.0 | 1,302 |
package ltf.namerank.dao.fs;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.TypeReference;
import ltf.namerank.dao.DictItemDao;
import ltf.namerank.entity.DictItem;
import ltf.namerank.entity.DictItem_Bm8;
import ltf.namerank.utils.PathUtils;
import org.springframework.stereotype.Component;
import java... | ltf/lab | jlab/namerank/src/main/java/ltf/namerank/dao/fs/DictItemDaoImpl.java | Java | gpl-3.0 | 1,864 |
<?php
/**
* The Expression Database.
* view auth/admin/reset_password.php
* reset_password form
*@copyright Laboratoire de Recherche en Sciences Vegetales 2016-2020
*@author Bruno SAVELLI<savelli@lrsv.ups-tlse.fr>
*@author Sylvain PICARD<sylvain.picard@lrsv.ups-tlse.fr>
*@version 1.0
*@package ExpressWeb
*@... | PeroxiBase/ExpressWeb | application/views/auth/admin/reset_password.php | PHP | gpl-3.0 | 1,180 |
/*
* ModelManager.java
*
* DMXControl for Android
*
* Copyright (c) 2012 DMXControl-For-Android. All rights reserved.
*
* This software 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;... | DMXControl/DMXControl-for-Android | DMXControl/src/de/dmxcontrol/model/ModelManager.java | Java | gpl-3.0 | 3,722 |
/*
* Copyright (C) 2009-2016 by the geOrchestra PSC
*
* This file is part of geOrchestra.
*
* geOrchestra is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your opt... | jusabatier/georchestra | mapfishapp/src/main/webapp/app/js/GEOR_Lang/fr.js | JavaScript | gpl-3.0 | 27,587 |
package cz.devaty.projects.gio;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.stream.Collectors;
public class Main {
/**
* předmět a -> 3., 7.O
* předmět b -> 4., 8.O
* předmě... | MrMid/gio-seminare | rozvrhovac/src/cz/devaty/projects/gio/Main.java | Java | gpl-3.0 | 2,895 |
/*****************************************************************************
The Dark Mod GPL Source Code
This file is part of the The Dark Mod Source Code, originally based
on the Doom 3 GPL Source Code as published in 2011.
The Dark Mod Source Code is free software: you can redistribute ... | Extant-1/ThieVR | renderer/draw_nv20.cpp | C++ | gpl-3.0 | 29,712 |
(function () {
angular
.module("WebAppMaker")
.controller("EditPageController", EditPageController)
.controller("PageListController", PageListController)
.controller("NewPageController", NewPageController);
function EditPageController(PageService, $routeParams, $location) {
... | knuevena/knueven-andrew-webdev | public/assignment/views/page/page.controller.client.js | JavaScript | gpl-3.0 | 2,586 |
from django.contrib import admin
#from .models import Tag
#import sys
#import importlib
#importlib.reload(sys)
#admin.site.register(Tag)
# Register your models here.
| summerzhangft/summer | tag/admin.py | Python | gpl-3.0 | 167 |
package is.idega.idegaweb.campus.business;
import javax.ejb.CreateException;
import com.idega.business.IBOHomeImpl;
public class ContractRenewalServiceHomeImpl extends IBOHomeImpl implements
ContractRenewalServiceHome {
public Class getBeanInterfaceClass() {
return ContractRenewalService.class;
}
public Cont... | idega/platform2 | src/is/idega/idegaweb/campus/business/ContractRenewalServiceHomeImpl.java | Java | gpl-3.0 | 430 |
//=======================================================================
// Author: Donovan Parks
//
// Copyright 2009 Donovan Parks
//
// This file is part of Chameleon.
//
// Chameleon is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// t... | dparks1134/Chameleon | Src/AutoCollapseDlg.hpp | C++ | gpl-3.0 | 1,457 |
package org.reunionemu.jreunion.model.quests.restrictions;
import org.reunionemu.jreunion.model.quests.Restriction;
/**
* @author Aidamina
* @license http://reunion.googlecode.com/svn/trunk/license.txt
*/
public interface RaceRestriction extends Restriction {
public Integer getId();
}
| ReunionDev/reunion | jreunion/src/main/java/org/reunionemu/jreunion/model/quests/restrictions/RaceRestriction.java | Java | gpl-3.0 | 294 |
using System.Timers;
using Artemis.Core.Services;
using Artemis.UI.Services;
using Stylet;
namespace Artemis.UI.Screens.Header
{
public class SimpleHeaderViewModel : Screen
{
private readonly ICoreService _coreService;
private readonly IDebugService _debugService;
private string _frame... | SpoinkyNL/Artemis | src/Artemis.UI/Screens/Header/SimpleHeaderViewModel.cs | C# | gpl-3.0 | 1,857 |
package fi.otavanopisto.pyramus.domainmodel.clientapplications;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
impor... | otavanopisto/pyramus | persistence/src/main/java/fi/otavanopisto/pyramus/domainmodel/clientapplications/ClientApplicationAccessToken.java | Java | gpl-3.0 | 2,460 |
<?php
$cantresidencias = Doctrine::getTable('Funcionarios_Residencia')->findByFuncionarioIdAndStatus(sfContext::getInstance()->getUser()->getAttribute('funcionario_id'),'A');
if ($cantresidencias[0]!=''){
foreach($cantresidencias as $residencia):
$estados = Doctrine::getTable('Public_Estado')... | mwveliz/siglas-mppp | apps/funcionarios/modules/ficha/templates/_info_residencial.php | PHP | gpl-3.0 | 2,604 |
// accurate implementation of the complex expm1 function
#include <complex>
#include "Rcpp.h"
using namespace std;
complex<double> expm1c(complex<double> z)
{
complex<double> ii(0,1);
return exp(imag(z)*ii) * expm1(real(z)) + ii * sin(imag(z)) - 2 * sin(imag(z)/2) * sin(imag(z)/2);
} | piotrek-orlowski/affineModelR | src/expm1c.cpp | C++ | gpl-3.0 | 290 |
<?php
class Sesion
{
private static $id;
public static function crearSesion()
{
session_start();
}
public static function destruirSesion()
{
session_start();
session_unset();
session_destroy();
self::$id = null;
}
public static function ge... | UNAH-SISTEMAS/2017-1PAC-POO | 313_clase_sesion/sesion.class.php | PHP | gpl-3.0 | 701 |
volScalarField& alpha2(mixture.alpha2());
const dimensionedScalar& rho1 = mixture.rho1();
const dimensionedScalar& rho2 = mixture.rho2();
twoPhaseChangeModel& phaseChange = phaseChangePtr();
tmp<volScalarField> rAU;
| OpenFOAM/OpenFOAM-dev | applications/solvers/multiphase/interFoam/createFieldRefs.H | C++ | gpl-3.0 | 218 |
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Mon Jul 22 17:01:36 2019
@author: raf
"""
# IMPORT STUFF
from pdb import set_trace as stop
import copy
import numpy as np
from collections import OrderedDict
import string as st
import os
import pandas as pd
from vison.datamodel import cdp
from vison.supp... | ruymanengithub/vison | vison/metatests/chinj01.py | Python | gpl-3.0 | 34,380 |
vetor[10] = {31, 16, 45, 87, 37, 99, 21, 43, 10, 48}
valorProcurado = 87
indice = -1
for (i = 0; i < vetor.length - 1; i++) {
if (vetor[i] == valorProcurado) {
indice = i
}
}
| amasiero/algoritmos_estrutura_dados | aula_04/beamer/src/sequencial.java | Java | gpl-3.0 | 193 |
define(['react','app','dataTable','dataTableBoot'], function (React,app,DataTable,dataTableBoot) {
return React.createClass({
mixins: [app.mixins.touchMixins()],
getInitialState : function() {
var dataSet = [];
return {
dataSet:dataSet,
mainChecker:[],
emailInFolder... | SCRYPTmail/frontEnd | app/src/authorized/mailbox/middlepanel/emailList.js | JavaScript | gpl-3.0 | 23,324 |
package de.baleipzig.iris.ui.playground;
import com.vaadin.navigator.View;
import com.vaadin.navigator.ViewChangeListener;
import com.vaadin.spring.annotation.SpringView;
import com.vaadin.spring.annotation.UIScope;
import com.vaadin.ui.Label;
import com.vaadin.ui.VerticalLayout;
import javax.annotation.PostConstruct... | fluoxa/Iris | src/main/java/de/baleipzig/iris/ui/playground/RonnyView.java | Java | gpl-3.0 | 681 |
<?php
return [
/*
|--------------------------------------------------------------------------
| Validation Language Lines
|--------------------------------------------------------------------------
|
| The following language lines contain the default error messages used by
| the validator ... | akaunting/akaunting | resources/lang/el-GR/validation.php | PHP | gpl-3.0 | 10,007 |
<?php
/***************************************************************************\
* SPIP, Systeme de publication pour l'internet *
* *
* Copyright (c) 2001-2012 *
* ... | VertigeASBL/DLPbeta | ecrire/exec/synchro.php | PHP | gpl-3.0 | 4,782 |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
... | ayes/artist-management | application/config/config.php | PHP | gpl-3.0 | 13,007 |
package tmp.generated_xhtml;
import cide.gast.*;
import cide.gparser.*;
import cide.greferences.*;
import java.util.*;
public class Content_var_Choice110 extends Content_var_Choice1 {
public Content_var_Choice110(Element_i element_i, Token firstToken, Token lastToken) {
super(new Property[] {
new P... | ckaestne/CIDE | CIDE_Language_XML_concrete/src/tmp/generated_xhtml/Content_var_Choice110.java | Java | gpl-3.0 | 783 |
<?php
namespace Maestro\ApiBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* This is the class that validates and merges configuration from your app/config files.
*
* To learn more see {@link http://symfon... | wilxsv/coreMaestros | src/Maestro/ApiBundle/DependencyInjection/Configuration.php | PHP | gpl-3.0 | 842 |
#include "game/network/api.hpp"
namespace Game {
namespace Network {
Api::Api(QObject *parent) : QObject(parent) {
// Manager to send REST petitions
manager = new QNetworkAccessManager(this);
result = "";
limit = 5;
// URL information
QString host = Game::Settings::load("network:api:host").t... | Madh93/simon-says-pi | src/game/network/api.cpp | C++ | gpl-3.0 | 2,699 |
<?php
namespace Eight\PageBundle\Widget;
class Label extends AbstractWidget
{
public function getVars()
{
return array(
'label',
);
}
public function getLayout()
{
return 'EightPageBundle:Widget:label.html.twig';
}
public function getName()
{
... | matteocaberlotto/eight-page-bundle | Widget/Label.php | PHP | gpl-3.0 | 350 |
/*
* Copyright (C) 2015 Rubén Héctor García (raiben@gmail.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) any later version.
... | raiben/made | madetools/core/src/main/java/com/velonuboso/made/core/abm/api/IBehaviourTreeBlackboard.java | Java | gpl-3.0 | 878 |
"""
MagPy
IAGA02 input filter
Written by Roman Leonhardt June 2012
- contains test, read and write function
"""
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import absolute_import
from __future__ import division
from io import open
from magpy.stream import *
#global va... | hschovanec-usgs/magpy | magpy/lib/format_iaga02.py | Python | gpl-3.0 | 20,820 |
#include <QMessageBox>
#include "charakterform.h"
#include "fertigkeitform.h"
#include "ui_charakterform.h"
#include "ui_fertigkeitform.h"
CharakterForm::CharakterForm(QDialog *parent, std::shared_ptr<CharakterManager> charakterManager) :
QDialog(parent),charakterManager(charakterManager),
ui(new Ui::charakter... | FireballGfx/FUK | Fuk/charakterform.cpp | C++ | gpl-3.0 | 2,158 |
<?php
session_start();
if($_SESSION['logged_in'] != true)
header("Location: index.php");
?><!doctype html>
<html>
<head>
<meta name="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="refresh" content="3; URL=admin.php">
<link href="css/login.css" rel='stylesheet' type='text/css' />
<link h... | jonashouben/SSM | design-html5/private.php | PHP | gpl-3.0 | 1,106 |
using System;
using System.Collections.Generic;
using Terraria.DataStructures;
namespace Terraria
{
public static class Wiring
{
public static bool running = false;
[ThreadStatic]
private static Dictionary<Point16, bool> wireSkip;
[ThreadStatic]
private static DoubleStack<Point16> wireList;
[ThreadStatic]... | NyxStudios/ModBox | Server/Terraria/Wiring.cs | C# | gpl-3.0 | 32,943 |
$(function() {
(function() {
$('.j_toClass').each(function(index, el) {
var $it = $(this);
var targetTo = $it.attr('data-target');
var thisTo = $it.attr('data-this');
var targetId = $it.attr('href');
var $target = $(targetId);
var _fn = {
on: function() {
$target.addClass(targetTo);
... | pro27/kezhanbang-m | static/global/js/global.js | JavaScript | gpl-3.0 | 1,583 |
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Telegram.Td.Api;
using Unigram.Collections;
using Unigram.Common;
using Unigram.Controls;
using Unigram.Converters;
using Unigram.Services;
using Unigram.ViewM... | ikarago/Unigram | Unigram/Unigram/ViewModels/Users/UserPhotosViewModel.cs | C# | gpl-3.0 | 4,095 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TravelingSalesmanProblem.Engine
{
public class Point
{
/* Class used as a point. Represent a location/gene in the path. */
#region Fields
public i... | Sadikk/TPE | TravelingSalesmanProblem/TravelingSalesmanProblem/Engine/Point.cs | C# | gpl-3.0 | 1,385 |
<?php
include_once('include/session.php');
function do_twinoid_auth($code) {
global $error_msg;
if (! isset($code)) {
$error_msg = 'bug!';
return false;
}
$json = do_post_json('https://twinoid.com/oauth/token',
array(
'client_id' => APP_TWINOID_ID,
'client_secret' => APP_SECRET_KEY,
... | Zenoo/hordesApps | [APP] BienTaMap/redir.php | PHP | gpl-3.0 | 3,454 |
package DynamicFlink;
public class csv1POJO1446411691328{
String latitude;
public void setLatitude(String latitude) { this.latitude = latitude; }
public String getLatitude() { return this.latitude; }
String longitude;
public void setLongitude(String longitude) { this.longitude = longitude; }
public String getLongitude(... | nict-isp/ETL-flow-editor | backend/DynamicFlink/csv1POJO1446411691328.java | Java | gpl-3.0 | 499 |
//###########################################################################
// This file is part of LImA, a Library for Image Acquisition
//
// Copyright (C) : 2009-2017
// European Synchrotron Radiation Facility
// CS40220 38043 Grenoble Cedex 9
// FRANCE
//
// Contact: lima@esrf.fr
//
// This is free software; you... | esrf-bliss/Lima | control/src/CtSaving_ZBuffer.cpp | C++ | gpl-3.0 | 2,134 |
/*
###############################
# Copyright (C) 2012 Jon Schang
#
# This file is part of jSchangLib, released under the LGPLv3
#
# jSchangLib 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 ... | jschang/jSchangLib | investing/src/main/java/com/jonschang/investing/valuesource/TrueRangeValueSource.java | Java | gpl-3.0 | 2,142 |
class Solution:
def majorityElement(self, nums):
"""
:type nums: List[int]
:rtype: List[int]
"""
num1, cnt1 = 0, 0
num2, cnt2 = 1, 0
for num in nums:
if num == num1:
cnt1 += 1
elif num == num2:
c... | YiqunPeng/Leetcode-pyq | solutions/229MajorityElementII.py | Python | gpl-3.0 | 671 |
'use strict';
var Dispatcher = require('../core/appDispatcher');
var EventEmitter = require('events').EventEmitter;
var ActionTypes = require('./actionTypes');
var CHANGE_EVENT = 'change';
var utils = require('../core/utils');
function TradingStore() {
var previousRate = null;
var symbols = "GBP/USD";
var quanti... | Digiterre/trading-tile-clients | react-standard-flux/src/app/trading/tradingStore.js | JavaScript | gpl-3.0 | 2,742 |
package io.github.ititus.mymod.util;
public interface ICyclable<T> {
T next(int i);
T prev(int i);
default T next() {
return next(1);
}
default T prev() {
return prev(1);
}
}
| iTitus/MyMod | src/main/java/io/github/ititus/mymod/util/ICyclable.java | Java | gpl-3.0 | 221 |
/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtMultimedia module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LG... | whitequark/sparkle | sippy/multimedia/qaudiooutput_mac_p.cpp | C++ | gpl-3.0 | 19,297 |
package com.exabilan.interfaces;
import java.util.List;
import com.exabilan.types.exalang.Answer;
import com.exabilan.types.exalang.ExaLang;
import com.exabilan.types.exalang.Question;
public interface ResultAssociator {
/**
* Finds the question corresponding to a question number for a given version of Exa... | Thomas-Gr/exaBilan | src/main/java/com/exabilan/interfaces/ResultAssociator.java | Java | gpl-3.0 | 529 |
using CP77.CR2W.Reflection;
using FastMember;
using static CP77.CR2W.Types.Enums;
namespace CP77.CR2W.Types
{
[REDMeta]
public class AISpiderbotCheckIfFriendlyMoved : AIAutonomousConditions
{
[Ordinal(0)] [RED("maxAllowedDelta")] public CHandle<AIArgumentMapping> MaxAllowedDelta { get; set; }
public AISpiderbo... | Traderain/Wolven-kit | CP77.CR2W/Types/cp77/AISpiderbotCheckIfFriendlyMoved.cs | C# | gpl-3.0 | 424 |
using CP77.CR2W.Reflection;
using FastMember;
using static CP77.CR2W.Types.Enums;
namespace CP77.CR2W.Types
{
[REDMeta]
public class scnVarComparison_FactConditionTypeParams : CVariable
{
[Ordinal(0)] [RED("factName")] public CName FactName { get; set; }
[Ordinal(1)] [RED("value")] public CInt32 Value { get; se... | Traderain/Wolven-kit | CP77.CR2W/Types/cp77/scnVarComparison_FactConditionTypeParams.cs | C# | gpl-3.0 | 556 |
/*********************************************************************************************
*
* 'OpenGamaWebsiteHandler.java, in plugin ummisco.gama.ui.shared, is part of the source code of the
* GAMA modeling and simulation platform.
* (v. 1.8.1)
*
* (c) 2007-2020 UMI 209 UMMISCO IRD/UPMC & Partners
*
* Vis... | gama-platform/gama | ummisco.gama.ui.shared/src/ummisco/gama/ui/commands/OpenGamaWebsiteHandler.java | Java | gpl-3.0 | 1,076 |
package com.pajato.android.gamechat;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.NavigationView;
import android.support.design.widget.... | pajato/game-chat-android | app/src/main/java/com/pajato/android/gamechat/MainActivity.java | Java | gpl-3.0 | 8,746 |
<?php
require_once "user.class.php";
require_once '../config/config.php';
if(isset ($_POST['login']) && isset ($_POST['motdepasse'])){
$login = $_POST['login'];
$pass = $_POST['motdepasse'];
$user = new Utilisateur();
if($user->connexion($login, sha1($pass), $pdo)){
s... | DiarraDIOP/Pasteque | Code/script/connect.php | PHP | gpl-3.0 | 595 |
import pandas as pd
from sklearn.datasets import load_boston
from sklearn.linear_model import LinearRegression
from sklearn.tree import DecisionTreeRegressor
from sklearn.cross_validation import train_test_split
from sklearn.metrics import mean_squared_error
from .auto_segment_FEMPO import BasicSegmenter_FEMP... | bhanu-mnit/EvoML | evoml/subsampling/test_auto_segmentEG_FEMPO.py | Python | gpl-3.0 | 1,357 |
package com.superman.letusgo.base;
import java.util.HashMap;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import android.content.Context;
import android.widget.Toast;
import com.superman.letusgo.util.AppClient;
import com.superman.letusgo.util.HttpUtil;
public clas... | superman-t/LetUsGo | src/com/superman/letusgo/base/BaseTaskPool.java | Java | gpl-3.0 | 3,152 |
<?php
namespace Directus\Installation\Steps;
use Directus\Bootstrap;
class LanguageStep extends AbstractStep
{
protected $number = 1;
protected $name = 'language';
protected $title = 'Language';
protected $shortTitle = 'Language';
protected $viewName = 'language.twig';
protected $fields = [
... | Sonans/directus | installation/includes/Steps/LanguageStep.php | PHP | gpl-3.0 | 869 |
package com.springdemo.learningMVC.common.src.main.java.com.common.tuple;
/**
* A mutable triple consisting of three {@code Object} elements.
* <p>
* Not #ThreadSafe#
*
* @param <L> the left element type
* @param <M> the middle element type
* @param <R> the right element type
* @version $Id: MutableTriple.java... | simonpatrick/stepbystep-java | spring-demo/docs/learningMVC/common/src/main/java/com/common/tuple/MutableTriple.java | Java | gpl-3.0 | 2,978 |
require.config({
baseUrl: 'vendor',
waitSeconds: 10,
paths: {
core: '../core',
lang: '../lang',
root: '..'
},
shim: {
'backbone': {
deps: ['underscore', 'jquery'],
exports: 'Backbone'
},
'underscore': {
exports: '_'
... | HammyHavoc/Voidance-Records-App | core/launch.js | JavaScript | gpl-3.0 | 4,158 |
import {EMPTY_CONCEPT_ID} from '../registry';
import {DdfDataSet} from '../../ddf-definitions/ddf-data-set';
import {Issue} from '../issue';
export const rule = {
rule: (ddfDataSet: DdfDataSet) => ddfDataSet
.getConcept()
.getAllData()
.filter(conceptRecord => !conceptRecord.concept)
.map(conceptReco... | Gapminder/ddf-validation | src/ddf-rules/concept-rules/empty-concept-id.ts | TypeScript | gpl-3.0 | 496 |
namespace Maticsoft.Web.Controls
{
using System;
using System.Web.UI;
using System.Web.UI.WebControls;
public class ProductsBatchUploadDropList : UserControl
{
protected HiddenField hfSelectedNode;
public bool IsNull;
protected void Page_Load(object sender, EventArgs e)
... | 51zhaoshi/myyyyshop | Maticsoft.Web_Source/Maticsoft.Web.Controls/ProductsBatchUploadDropList.cs | C# | gpl-3.0 | 592 |
<?php
class ControllerApiCurrency extends Controller {
public function index() {
$this->load->language('api/currency');
$json = array();
if (!isset($this->session->data['api_id'])) {
$json['error'] = $this->language->get('error_permission');
} else {
$this->load->model('localisation/currency'... | vincentgy/rubys | catalog/controller/api/currency.php | PHP | gpl-3.0 | 1,348 |
package com.DragonFire.recipe;
import com.DragonFire.item.DFItems;
import net.minecraft.init.Items;
import net.minecraft.inventory.InventoryCrafting;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.potion.PotionUtils;
import net.min... | SirBlobman/DragonFire | src/main/java/com/DragonFire/recipe/RecipePotionCookie.java | Java | gpl-3.0 | 2,236 |
#!/usr/bin/env python
# Version 0.1
# NDVI automated acquisition and calculation by Vladyslav Popov
# Using landsat-util, source: https://github.com/developmentseed/landsat-util
# Uses Amazon Web Services Public Dataset (Lansat 8)
# Script should be run every day
from os.path import join, abspath, dirname, exis... | vladanti/ndvi_calc | ndvi.py | Python | gpl-3.0 | 4,318 |
<?php
namespace console\models;
class test extends \fw\base\Object
{
public function test()
{
return "test".$this->par;
}
}
| hz86/myfw | console/models/test.php | PHP | gpl-3.0 | 131 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Identity;
namespace Blm.Models
{
// Add profile data for application users by adding properties to the ApplicationUser class
public class ApplicationUser : IdentityUser
{
}
}
| zypah/blm | blm/Models/ApplicationUser.cs | C# | gpl-3.0 | 319 |
require 'spec_helper_acceptance'
describe 'Scenario: install foreman' do
apache_service_name = ['debian', 'ubuntu'].include?(os[:family]) ? 'apache2' : 'httpd'
before(:context) do
case fact('osfamily')
when 'RedHat'
on default, 'yum -y remove foreman* tfm-* mod_passenger && rm -rf /etc/yum.repos.d/f... | carrolcox/puppet-foreman | spec/acceptance/foreman_basic_spec.rb | Ruby | gpl-3.0 | 2,923 |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Printing;
using System.Text;
using System.Windows.Forms;
using OpenDental.UI;
using OpenDentBusiness;
namespace OpenDental {
public partial class FormEquipment:Form {
private Li... | eae/opendental | OpenDental/Forms/FormEquipment.cs | C# | gpl-3.0 | 7,203 |
module.exports = function(el, state, container) {
var ul = el.getElementsByTagName('ul')[0]
var lastFlags = []
var controlsTouch = -1
var containerTouch = {"id":-1, "x":-1, "y":-1}
el.addEventListener('touchstart', startTouchControls)
el.addEventListener('touchmove', handleTouchControls)
el.addEventListen... | pauln/voxel-touchcontrols | index.js | JavaScript | gpl-3.0 | 3,130 |
/*
This file is part of White - Storm: Lightning (alpha).
Copyright 2012 Christopher Augustus Greeley
White - Storm: Lightning (alpha) 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 ... | GCGGames/White-StormLightning | WSL/Bubble Sort.cpp | C++ | gpl-3.0 | 1,657 |
########################################################################
# File : ARCComputingElement.py
# Author : A.T.
########################################################################
""" ARC Computing Element
"""
__RCSID__ = "58c42fc (2013-07-07 22:54:57 +0200) Andrei Tsaregorodtsev <atsareg@in2p3.fr>"
... | miloszz/DIRAC | Resources/Computing/ARCComputingElement.py | Python | gpl-3.0 | 10,864 |
#!/usr/bin/env python3
import re
a = [[0 for x in range(25)] for y in range(13)]
f=open("../distrib/spiral.txt","r")
s=f.readline().strip()
dx, dy = [0, 1, 0, -1], [1, 0, -1, 0]
x, y, c = 0, -1, 1
l=0
for i in range(13+13-1):
if i%2==0:
for j in range((25+25-i)//2):
x += dx[i % 4]
y ... | DISMGryphons/GryphonCTF2017-Challenges | challenges/misc/Spirals/solution/solution.py | Python | gpl-3.0 | 812 |
<?php
require_once('../common/config.php');
require_once('./config.php');
if (!(defined('ACCOUNT_SERVER') && defined('ACCOUNT_LIST') && defined('RESPONSE_HEADER'))) //Fatal Error
{
exit(0);
}
$out=RESPONSE_HEADER;
$buffer=file_get_contents("php://input");
if (substr($buffer,0,QUERY_HEADER_LEN)!=QUERY_HEAD... | zwpwjwtz/WiChat-server | Account/log/login.php | PHP | gpl-3.0 | 4,876 |
/*
This file is part of the EnergyOptimizatorOfRoboticCells program.
EnergyOptimizatorOfRoboticCells 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 l... | CTU-IIG/EnergyOptimizatorOfRoboticCells | src/ILPSolver/RoboticLineSolverILP.cpp | C++ | gpl-3.0 | 5,243 |
/*******************************************************************************
* ISPTAP - Instruction Scratchpad Timing Analysis Program
* Copyright (C) 2013 Stefan Metzlaff, University of Augsburg, Germany
* URL: <https://github.com/smetzlaff/isptap>
*
*
* This program is free software: you can redistribute i... | smetzlaff/isptap | src/util/graphvizexport.hpp | C++ | gpl-3.0 | 1,698 |
# Mantid Repository : https://github.com/mantidproject/mantid
#
# Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
# NScD Oak Ridge National Laboratory, European Spallation Source
# & Institut Laue - Langevin
# SPDX - License - Identifier: GPL - 3.0 +
# This file is part of the mantidqt package
... | mganeva/mantid | qt/python/mantidqt/project/workspaceloader.py | Python | gpl-3.0 | 1,243 |
// This file is part of PapyrusDotNet.
//
// PapyrusDotNet 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.
// ... | zerratar/PapyrusDotNet | Source/PexInspector/PapyrusDotNet.PexInspector/Behaviours/DataGridBehaviour.cs | C# | gpl-3.0 | 4,320 |
/** @license MIT License (c) copyright B Cavalier & J Hann */
/**
* when
* A lightweight CommonJS Promises/A and when() implementation
*
* when is part of the cujo.js family of libraries (http://cujojs.com/)
*
* Licensed under the MIT License at:
* http://www.opensource.org/licenses/mit-license.php
*
* @versi... | busterjs/lt-instabuster | node_modules/buster/resources/buster-test.js | JavaScript | gpl-3.0 | 524,225 |
// This file is part of PapyrusDotNet.
//
// PapyrusDotNet 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.
// ... | zerratar/PapyrusDotNet | Source/PexInspector/PapyrusDotNet.PexInspector.ViewModels/PapyrusParameterEditorViewModel.cs | C# | gpl-3.0 | 1,906 |
package cm.aptoide.pt.util;
import android.content.Context;
public class MarketResourceFormatter {
private String marketName;
public MarketResourceFormatter(String marketName) {
this.marketName = marketName;
}
public String formatString(Context context, int id, String... optParamaters) {
return con... | Aptoide/aptoide-client-v8 | app/src/vanilla/java/cm/aptoide/pt/util/MarketResourceFormatter.java | Java | gpl-3.0 | 346 |
<?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 ... | nitro2010/moodle | mod/groupformation/classes/controller/questionnaire_controller.php | PHP | gpl-3.0 | 23,044 |
define("view/mission",
["jquery", "laces.tie", "lodash", "view", "tmpl/joboutput", "tmpl/mission"],
function($, Laces, _, View, tmpl) {
"use strict";
return View.extend({
initialize: function(options) {
this.mission = options.mission;
this.mission.jobs.on("add",... | arendjr/CI-Joe | www/js/view/mission.js | JavaScript | gpl-3.0 | 2,619 |
#include "NPC.h"
#include "Application.h"
#include "ModuleEntityManager.h"
#include "Player.h"
#include "ModuleCamera.h"
#include "ModuleAudio.h"
#include <random>
NPC::NPC(Entity::Types entityType, iPoint iniPos, short int hp, Direction facing)
: Creature(entityType, iniPos, hp, facing)
{
facing = LEFT;
}
NPC::~NP... | azarrias/sor | src/NPC.cpp | C++ | gpl-3.0 | 4,702 |
package com.koushikdutta.async.http.server;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.AssetManager;
import android.os.Build;
import android.text.TextUtils;
import com.koushikdutta.async.AsyncSSLSocket;
import com.koushikdutta.async.AsyncSSLSocketWrapper;
import co... | omerjerk/RemoteDroid | app/src/main/java/com/koushikdutta/async/http/server/AsyncHttpServer.java | Java | gpl-3.0 | 20,350 |
function GCList(field, multipleSelection, uploadFile, refreshParent = false) {
this.field = field;
this.multipleSelection = multipleSelection;
this.uploadFile = uploadFile;
this.refreshParent = refreshParent;
this.dialogId = 'list_dialog';
this.options = {};
this.urls = {
'aj... | OldSnapo/gisclient-3 | public/admin/js/list.js | JavaScript | gpl-3.0 | 17,763 |
// QChartGallery.js ---
//
// Author: Julien Wintz
// Created: Thu Feb 13 23:43:13 2014 (+0100)
// Version:
// Last-Updated:
// By:
// Update #: 13
//
// Change Log:
//
//
// /////////////////////////////////////////////////////////////////
// Line Chart Data Sample
// //////////////////////////////////... | SensorNet-UFAL/environmentMonitoring | laccansense/jbQuick/QChartGallery.js | JavaScript | gpl-3.0 | 3,346 |