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 |
|---|---|---|---|---|---|
<?php
$this->beginWidget('zii.widgets.jui.CJuiDialog',
array( // the dialog
'id'=>'dialogTimetracker',
'options'=>array(
'title'=>'Log Time',
'autoOpen'=>false,
'modal'=>true,
'width'=>'420',
'height'=>'auto',
'mi... | Renaud-Diez/NFT | protected/views/issue/backup/_sidebar.php | PHP | gpl-3.0 | 4,692 |
/****************************************************************************
**
** For Copyright & Licensing information, see COPYRIGHT in project root
**
****************************************************************************/
#include "30_removegroup.h"
namespace MXit
{
namespace Protocol
{
namespace Handle... | marcbowes/mxitc | src/protocol/handlers/30_removegroup.cpp | C++ | gpl-3.0 | 2,510 |
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* 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 Li... | 1stsetup/Marlin | Marlin/src/lcd/touch/touch_buttons.cpp | C++ | gpl-3.0 | 3,431 |
# frozen_string_literal: true
require 'forwardable'
module Capybara
##
# A {Capybara::Result} represents a collection of {Capybara::Node::Element} on the page. It is possible to interact with this
# collection similar to an Array because it implements Enumerable and offers the following Array methods through de... | BeGe78/esood | vendor/bundle/ruby/3.0.0/gems/capybara-3.32.2/lib/capybara/result.rb | Ruby | gpl-3.0 | 4,779 |
#region license
/*
MediaFoundationLib - Provide access to MediaFoundation interfaces via .NET
Copyright (C) 2007
http://mfnet.sourceforge.net
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; e... | todor-dk/SuperMFLib | src/ReadWrite/Enums/MF_SOURCE_READER_FLAG.cs | C# | gpl-3.0 | 3,893 |
<?php
header('Content-Type: text/xml');
include '../xmlbuilder.php';
if(isset($_POST['HomeUrl']) &&isset($_POST['DBHost']) && isset($_POST['DBName']) && isset($_POST['DBPw']) && isset($_POST['DBLogin'])){
if(createConfigFile($_POST['HomeUrl'],$_POST['DBHost'], $_POST['DBLogin'], $_POST['DBName'], $_POST['DBPw'])) {
... | DHBW-Projekt/BeePublished | app/webroot/services/installation/index.php | PHP | gpl-3.0 | 2,644 |
package battlecode.world;
import battlecode.common.Direction;
import battlecode.common.GameConstants;
import battlecode.common.MapLocation;
import battlecode.common.RobotType;
import battlecode.common.TerrainTile;
import battlecode.serial.GenericGameMap;
import java.util.Arrays;
import java.util.EnumMap;
import java.... | bovard/battlecode-server-2014 | src/main/battlecode/world/GameMap.java | Java | gpl-3.0 | 12,224 |
'use strict';
const Stack = require('./_Stack');
const baseIsEqual = require('./_baseIsEqual');
/** Used to compose bitmasks for comparison styles. */
const UNORDERED_COMPARE_FLAG = 1;
const PARTIAL_COMPARE_FLAG = 2;
/**
* The base implementation of `_.isMatch` without support for iteratee shorthands.
*
* @priva... | rafa1231518/CommunityBot | lib/xml2js-req/xmlbuilder/lodash/_baseIsMatch.js | JavaScript | gpl-3.0 | 1,805 |
module.exports = publish
var url = require('url')
var semver = require('semver')
var Stream = require('stream').Stream
var assert = require('assert')
var fixer = require('normalize-package-data').fixer
var concat = require('concat-stream')
var ssri = require('ssri')
function escaped (name) {
return name.... | lyy289065406/expcodes | java/01-framework/dubbo-admin/incubator-dubbo-ops/dubbo-admin-frontend/node/node_modules/npm/node_modules/npm-registry-client/lib/publish.js | JavaScript | gpl-3.0 | 5,905 |
<?php
$sLangName = "Deutsch";
$iLangNr = 0;
$aLang = array(
'charset' => 'ISO-8859-15',
'tbcluser_jxjiraconnect' => 'JIRA Vorgänge',
'tbclorder_jxjiraconnect' => 'JIRA Vorgänge',
'jxjiraconnect_menu' => 'JIRA Vor... | job963/jxJiraConnect | copy_this/modules/jxmods/jxjiraconnect/application/views/admin/de/jxjiraconnect_lang.php | PHP | gpl-3.0 | 2,614 |
<?php
//prohibit unauthorized access
require 'core/access.php';
$status_msg = '';
/* delete items from excludes list */
if(isset($_POST['del_exclude']) && is_numeric($_POST['del_exclude'])) {
$del_exclude = (int) $_POST['del_exclude'];
fc_delete_excludes($del_exclude);
}
if(isset($_POST['add_exclude_url'])) {
fc... | flatCore/flatCore-CMS | acp/core/pages.index.php | PHP | gpl-3.0 | 16,732 |
<?php
// namespace Tests\AppBundle\Controller;
//
// use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
//
// class DefaultControllerTest extends WebTestCase
// {
// public function testIndex()
// {
// $client = static::createClient();
//
// $crawler = $client->request('GET', '/');
//
// ... | softwarejimenez/API_puja_por_tu_resi | tests/AppBundle/Controller/DefaultControllerTest.php | PHP | gpl-3.0 | 504 |
<?php
/**
* Modul pro konverzi textu
*
* @category Module
* @package Module
* @author onovy <onovy@nomi.cz>
*/
// Security
if (!defined('ONOVY_PHP_LIB')) die;
define('MODULE_I2HTML',1);
/**
* Konverze textu na HTML
*
* @param $input - vstupni text
* @param $typo - provadet typografickou upravu?... | onovy/KvizBot-web | onovyPHPlib/mlib/i2html.php | PHP | gpl-3.0 | 3,603 |
#include <QApplication>
#include "qtreversimenudialog.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
ribi::reversi::QtReversiMenuDialog w;
w.show();
return a.exec();
}
| richelbilderbeek/Reversi | qtmain.cpp | C++ | gpl-3.0 | 201 |
<?php
namespace Code\Base\Paradigm\Helpers;
use Jarvis;
/**
* String utilities
*
* String related functions, particularly around token substitution
*
* PHP version 7.2+
*
* @category Utility
* @package Framework
* @author Rick Myers rick@enicity.com
* @since File available since Release 1.0.0
*... | RickMyers/Jarvis | app/Code/Base/Paradigm/Helpers/Str.php | PHP | gpl-3.0 | 5,127 |
package abd.p1.model;
import java.util.Date;
import javax.persistence.*;
@Entity
public class MensajeAmistad extends Mensaje{
@Column
private boolean aceptado;
public MensajeAmistad(){
super();
}
public MensajeAmistad(Usuario usu, Usuario amigo){
super(usu, amigo);
aceptado = true;
}
public boolean... | juanmont/ABD | practica1User/src/main/java/abd/p1/model/MensajeAmistad.java | Java | gpl-3.0 | 542 |
/*
* This file is part of trolCommander, http://www.trolsoft.ru/en/soft/trolcommander
* Copyright (C) 2014-2016 Oleg Trifonov
*
* trolCommander 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 vers... | Keltek/mucommander | src/main/com/mucommander/ui/action/impl/ToggleTableViewModeCompactAction.java | Java | gpl-3.0 | 2,674 |
# encoding: utf-8
module Gis::Model::Base::Status
def state_select
[["有効","enabled"],["無効","disabled"]]
end
def state_show
select = state_select
select.each{|a| return a[0] if a[1] == state}
return nil
end
def user_kind_select
[["個別ユーザ管理",1],["所属管理",2]]
end
def user_kind_show
... | joruri/joruri-maps | lib/gis/model/base/status.rb | Ruby | gpl-3.0 | 457 |
/*
* Copyright (c) 2004-2015 by Jakob Schröter <js@camaya.net>
* This file is part of the gloox library. http://camaya.net/gloox
*
* This software is distributed under a license. The full license
* agreement can be found in the file LICENSE in this distribution.
* This software may not be copied, modified, s... | naseef-07/gloox_lib_with_vs2013_project_file | src/tests/tag/tag_test.cpp | C++ | gpl-3.0 | 11,044 |
/* File: RA250.H 'C' structures for RemoteAccess 2.50 Gamma
Version: 0.3 (22/04/96)
Author: Damien Guard
Copyright: Envy Technologies, 1996.
Changes: 0.1 - Initial release
0.2 - Fixed some compile problems
Sorted enumeration types
0.3 - Added some examples
All new documentation ... | damieng/graveyard | remoteaccess-bbs/ra-cdk/RA250C.H | C++ | gpl-3.0 | 27,536 |
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
with open('requirements.txt') as f:
requirements = f.read().splitlines()
with open('cli-requirements.txt') as f:
cli_requirements = f.read().splitlines()
setuptools.setup(
name="uwg",
use_scm_version=True,
setu... | chriswmackey/UWG_Python | setup.py | Python | gpl-3.0 | 1,278 |
/*
* 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... | syslover33/ctank | java/android-sdk-linux_r24.4.1_src/sources/android-23/android/support/v17/leanback/widget/SearchOrbView.java | Java | gpl-3.0 | 12,627 |
using System;
namespace Server.Items
{
public class DaemonBloods : Item
{
public override int LabelNumber { get { return 1023965; } } // Daemon Blood
public override bool ForceShowProperties { get { return ObjectPropertyList.Enabled; } }
[Constructable]
public DaemonBloods()
... | GenerationOfWorlds/GOW | Scripts/Core/Mondains Legacy/Items/Magincia Invasion/DaemonBloods.cs | C# | gpl-3.0 | 4,575 |
namespace Maticsoft.ZipLib.Tar
{
using System;
using System.IO;
public class TarBuffer
{
private int blockFactor = 20;
public const int BlockSize = 0x200;
private int currentBlockIndex;
private int currentRecordIndex;
public const int DefaultBlockFactor = 20;
... | 51zhaoshi/myyyyshop | Maticsoft.ZipLib_Source/Maticsoft.ZipLib.Tar/TarBuffer.cs | C# | gpl-3.0 | 10,590 |
package classifiers;
import java.io.File;
import java.io.PrintWriter;
import Utils.Utilities;
import stats.Statistics;
import tablInEx.Table;
import weka.classifiers.misc.InputMappedClassifier;
import weka.core.Attribute;
import weka.core.DenseInstance;
import weka.core.FastVector;
import weka.core.Instan... | nikolamilosevic86/TableAnnotator | src/classifiers/PragmaticClassifier.java | Java | gpl-3.0 | 12,768 |
package es.task.switcher.model.entities;
import com.mobandme.ada.Entity;
import com.mobandme.ada.annotations.Table;
import com.mobandme.ada.annotations.TableField;
@Table(name = "Category")
public class Category extends Entity{
@TableField(name = "name", datatype = DATATYPE_STRING, maxLength = 100)
public String n... | jbeerdev/Switch- | src/es/task/switcher/model/entities/Category.java | Java | gpl-3.0 | 335 |
import re
import sys
import whoisSrvDict
import whoispy_sock
import parser_branch
OK = '\033[92m'
FAIL = '\033[91m'
ENDC = '\033[0m'
def query(domainName):
rawMsg = ""
tldName = ""
whoisSrvAddr = ""
regex = re.compile('.+\..+')
match = regex.search(domainName)
if not match:
# Invalid ... | nemumu/whoispy | whoispy/whoispy.py | Python | gpl-3.0 | 1,198 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.05.... | JDuligall/ZombieSim | honorsWorkspace/ZombieSim2/src/mapContents/Nd.java | Java | gpl-3.0 | 1,846 |
/*==LICENSE==*
CyanWorlds.com Engine - MMOG client, server and tools
Copyright (C) 2011 Cyan Worlds, Inc.
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 you... | v1nc3ntm/Plasma | Sources/Plasma/FeatureLib/pfPython/Games/Heek/pyHeekGame.cpp | C++ | gpl-3.0 | 3,285 |
package org.cgiar.ccafs.marlo.data.model;
// Generated Jun 20, 2018 1:50:25 PM by Hibernate Tools 3.4.0.CR1
import org.cgiar.ccafs.marlo.data.IAuditLog;
import com.google.gson.annotations.Expose;
/**
* ReportSynthesisMeliaStudy generated by hbm2java
*/
public class ReportSynthesisKeyPartnershipPmu exte... | CCAFS/MARLO | marlo-data/src/main/java/org/cgiar/ccafs/marlo/data/model/ReportSynthesisKeyPartnershipPmu.java | Java | gpl-3.0 | 2,592 |
/*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2015 Evan Debenham
*
* 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 vers... | mrlolethan/Buttered-Pixel-Dungeon | src/com/mrlolethan/butteredpd/effects/particles/SmokeParticle.java | Java | gpl-3.0 | 1,728 |
from vectores_oo import Vector
x = input('vector U componente X= ')
y = input('vector U componente X= ')
U = Vector(x,y)
m = input('vector V magnitud= ')
a = input('vector V angulo= ')
V = Vector(m=m, a=a)
E = input('Escalar= ')
print "U=%s" % U
print "V=%s" % V
print 'UxE=%s' % U.x_escalar(E)
print 'VxE=%s'... | rgarcia-herrera/vectores | vectores.py | Python | gpl-3.0 | 446 |
<?php
/**
* Autor: Camilo Figueroa ( Crivera )
* Este archivo se crea para organizar inicialmente todo lo que tiene que ver con las combinaciones
* entre los diferentes elementos que al detalle generan un nuevo texto que ha de contener
* el número de calificación para esa combinación.
*... | camilofigueroa/CalificadorEventosArte | deploy/organizador_inicial.php | PHP | gpl-3.0 | 3,321 |
pref('devcache.debug', false);
pref('devcache.enabled', true);
pref('devcache.patterns', '');
| essentialed/DevCache | defaults/preferences/prefs.js | JavaScript | gpl-3.0 | 97 |
"""
RESTx: Sane, simple and effective data publishing and integration.
Copyright (C) 2010 MuleSoft Inc. http://www.mulesoft.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... | jbrendel/RESTx | src/python/restx/components/_ResourceCreateForm.py | Python | gpl-3.0 | 9,666 |
/**************************************************************************
**
** Copyright (C) 2013 by Philip Schuchardt
** www.cavewhere.com
**
**************************************************************************/
#include "cwEdgeTile.h"
//Qt includes
#include <QDebug>
cwEdgeTile::cwEdgeTile()
{
}
voi... | Cavewhere/cavewhere | src/cwEdgeTile.cpp | C++ | gpl-3.0 | 3,566 |
#!/usr/bin/env python
# Unix SMB/CIFS implementation.
# Copyright (C) Jelmer Vernooij <jelmer@samba.org> 2007-2010
# Copyright (C) Matthias Dieter Wallnoefer 2009
#
# Based on the original in EJS:
# Copyright (C) Andrew Tridgell <tridge@samba.org> 2005
#
# This program is free software; you can redistribute it and/or ... | gwr/samba | source4/scripting/python/samba/samdb.py | Python | gpl-3.0 | 28,037 |
//
// MessageEventArgs.cs
//
// Authors:
// Alan McGovern alan.mcgovern@gmail.com
//
// Copyright (C) 2006 Alan McGovern
//
// 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 restri... | aaronsace/MultiPoolMiner | MonoTorrent/MonoTorrent.Client/EventArgs/MessageEventArgs.cs | C# | gpl-3.0 | 2,711 |
package com.ftninformatika.bisis.opac.search;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
/**
* @author badf00d21 15.8.19.
*/
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class Sort {
private SortType type;
private Boolean ... | ftninformatika/bisis-v5 | bisis-model/src/main/java/com/ftninformatika/bisis/opac/search/Sort.java | Java | gpl-3.0 | 788 |
/*
UTILIZZO DEL MODULO:
var mailer = require('percorso/per/questoFile.js');
mailer.inviaEmail(nome, cognome, emailDestinatario, oggetto, corpoInHtml);
OPPURE
mailer.inviaEmail(opzioniEmail);
dove opzioniEmail è un oggetto JSON formato così:
{
from: '"Nome Visualizzato" <mail@example.com>', // mail del mittente
... | ecommerce-unicam/Sito-Tranquillo | server/utilities/mailer.js | JavaScript | gpl-3.0 | 4,054 |
/*
Free Download Manager Copyright (c) 2003-2016 FreeDownloadManager.ORG
*/
#include "stdafx.h"
#include "FDMCustomized.h"
#include "Dlg_Banner.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
CDlg_Banner::CDlg_Banner(CWnd* pParent )
: CDialog(CDlg_... | mirror/freedownload | FDMCustomized/Dlg_Banner.cpp | C++ | gpl-3.0 | 1,120 |
package jbse.tree;
public final class DecisionAlternative_XNEWARRAY_Wrong extends DecisionAlternative_XNEWARRAY {
private static final String WRONG_ID = "XNEWARRAY_Wrong";
private static final int HASH_CODE = 2;
DecisionAlternative_XNEWARRAY_Wrong(boolean isConcrete) {
super(isConcrete, (isConcrete ? 1 : ... | chubbymaggie/jbse | src/jbse/tree/DecisionAlternative_XNEWARRAY_Wrong.java | Java | gpl-3.0 | 758 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.ApplicationModel;
using Windows.ApplicationModel.Activation;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xam... | domints/TTSSX | TTSSX/TTSSX.UWP/App.xaml.cs | C# | gpl-3.0 | 3,858 |
<?php
/**
* Open Source Social Network
*
* @package (softlab24.com).ossn
* @author OSSN Core Team <info@softlab24.com>
* @copyright 2014-2017 SOFTLAB24 LIMITED
* @license Open Source Social Network License (OSSN LICENSE) http://www.opensource-socialnetwork.org/licence
* @link https://www.opensource-... | Lablnet/Malik_Theme | plugins/default/widget/view.php | PHP | gpl-3.0 | 662 |
#include "Sub.h"
// manual_init - initialise manual controller
bool Sub::manual_init()
{
// set target altitude to zero for reporting
pos_control.set_alt_target(0);
// attitude hold inputs become thrust inputs in manual mode
// set to neutral to prevent chaotic behavior (esp. roll/pitch)
set_neutr... | hamishwillee/ardupilot | ArduSub/control_manual.cpp | C++ | gpl-3.0 | 1,159 |
///////////////////////////////////////////////////////////////////////////////
//
// Copyright (2013) Alexander Stukowski
//
// This file is part of OVITO (Open Visualization Tool).
//
// OVITO is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as publis... | bitzhuwei/OVITO_sureface | src/plugins/particles/modifier/coloring/ColorCodingModifier.cpp | C++ | gpl-3.0 | 27,106 |
/*
* Copyright (C) 2010- Peer internet solutions
*
* This file is part of mixare.
*
* 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 op... | januar/KulinARMedan | src/org/medankulinar/mgr/downloader/DownloadManager.java | Java | gpl-3.0 | 2,100 |
package de.voidnode.trading4j.strategyexpertadvisor;
import java.time.Instant;
import java.util.Optional;
import de.voidnode.trading4j.api.Broker;
import de.voidnode.trading4j.api.ExpertAdvisor;
import de.voidnode.trading4j.api.Failed;
import de.voidnode.trading4j.api.OrderEventListener;
import de.voidnode.trading4j.... | rbi/trading4j | core/src/main/java/de/voidnode/trading4j/strategyexpertadvisor/StrategyExpertAdvisor.java | Java | gpl-3.0 | 3,923 |
// Generated from /mnt/hdd/Programming/Projects/Groovy/intellidots/src/main/antlr/R.g4 by ANTLR 4.2.2
package ua.edu.hneu.ast.parsers;
import org.antlr.v4.runtime.atn.*;
import org.antlr.v4.runtime.dfa.DFA;
import org.antlr.v4.runtime.*;
import org.antlr.v4.runtime.tree.*;
import java.util.List;
@SuppressWarnings({"al... | IsThisThePayneResidence/intellidots | src/main/java/ua/edu/hneu/ast/parsers/RParser.java | Java | gpl-3.0 | 34,879 |
/**
* Class: Webgl
* Description: Her goes description
*/
import {m, utils} from '../../js/main';
import * as THREE from './three.min.js'
import dat from './dat.gui.min.js'
import Detector from './Detector.js'
// GLOBAL
var EightBitMode = false;
export default class Webgl {
/**
* @param {number} param this i... | GreatWorksCopenhagen/gw-xmascard | src/modules/webgl/webgl.js | JavaScript | gpl-3.0 | 10,063 |
#
# Copyright 2009-2010 Goran Sterjov
# This file is part of Myelin.
#
# Myelin 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) a... | gsterjov/Myelin | bindings/python/myelin/introspection/value.py | Python | gpl-3.0 | 11,453 |
package pl.edu.agh.idziak.asw.common;
import com.google.common.base.Preconditions;
/**
* Created by Tomasz on 13.07.2016.
*/
public class Pair<X, Y> {
private final X one;
private final Y two;
Pair(X one, Y two) {
this.one = Preconditions.checkNotNull(one);
this.two = Preconditions.che... | mastablasta1/a-star-w-algorithm | src/main/java/pl/edu/agh/idziak/asw/common/Pair.java | Java | gpl-3.0 | 765 |
from chiplotle.geometry.shapes.path import path
from chiplotle.geometry.transforms.perpendicular_displace \
import perpendicular_displace
def line_displaced(start_coord, end_coord, displacements):
'''Returns a Path defined as a line spanning points `start_coord` and
`end_coord`, displaced by scalars `displ... | drepetto/chiplotle | chiplotle/geometry/shapes/line_displaced.py | Python | gpl-3.0 | 763 |
import unittest
from bolt.discord.permissions import Permission
class TestPermission(unittest.TestCase):
def test_permission_from_list_to_list(self):
expected = ['MANAGE_WEBHOOKS', 'USE_EXTERNAL_EMOJIS']
permission = Permission(['MANAGE_WEBHOOKS', 'USE_EXTERNAL_EMOJIS'])
actual = permiss... | Arcbot-Org/Arcbot | tests/discord/test_permission.py | Python | gpl-3.0 | 1,719 |
import requests
import hashlib
import json
import random
import sys
class ApiItemAmount(object):
def __new__(self, item_type, amount):
return {"type": item_type, "amount": amount}
class SagaAPI(object):
secret = ""
episodeLengths = {}
apiUrl = ""
clientApi = ""
unlockLevelItemId = -1
... | boskee/regicide | regicide.py | Python | gpl-3.0 | 8,891 |
package com.harium.keel.filter.selection.skin;
import com.harium.keel.core.helper.ColorHelper;
import com.harium.keel.core.strategy.SelectionStrategy;
import com.harium.keel.filter.selection.SimpleToleranceStrategy;
/**
* Based on: Nusirwan Anwar bin Abdul Rahman, Kit Chong Wei and John See
* RGB-H-CbCr Skin Colour... | yuripourre/e-motion | src/main/java/com/harium/keel/filter/selection/skin/SkinColorRGBHCbCrStrategy.java | Java | gpl-3.0 | 1,693 |
#!/usr/bin/python3
from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas
from matplotlib.figure import Figure
from sklearn.cluster import KMeans
from sklearn import datasets
from PIL import Image, ImageChops
from scipy.spatial.distance import cdist
import matplotlib.pyplot as plt
from random ... | mikehankey/fireball_camera | scan-stills2.py | Python | gpl-3.0 | 42,716 |
/*
* microMathematics - Extended Visual Calculator
* Copyright (C) 2014-2021 by Mikhail Kulesh
*
* 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 you... | mkulesh/microMathematics | app/src/main/java/com/mkulesh/micromath/properties/AxisProperties.java | Java | gpl-3.0 | 6,711 |
from math import sqrt
from collections import defaultdict, Counter
from fractions import Fraction
def reverse_erathos(n):
d = defaultdict(set)
for i in range(2, n + 1):
if i not in d:
j = 2 * i
while j <= n:
d[j].add(i)
j += i
return d
def to... | rodgzilla/project-euler | problem_070/problem.py | Python | gpl-3.0 | 895 |
# ===============================================================================
# Copyright (C) 2010 Diego Duclos
#
# This file is part of eos.
#
# eos 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, ... | Ebag333/Pyfa | eos/db/gamedata/item.py | Python | gpl-3.0 | 3,101 |
using System.Collections.Generic;
using CacheUtils.TranscriptCache.Comparers;
using ErrorHandling.Exceptions;
using VariantAnnotation.Interface.AnnotatedPositions;
namespace CacheUtils.Commands.GFF
{
public static class InternalGenes
{
public static IDictionary<IGene, int> CreateDictionary(IG... | Illumina/Nirvana | CacheUtils/Commands/GFF/InternalGenes.cs | C# | gpl-3.0 | 1,018 |
package org.cleverframe.sys.controller;
import org.cleverframe.common.controller.BaseController;
import org.cleverframe.common.mapper.BeanMapper;
import org.cleverframe.common.persistence.Page;
import org.cleverframe.common.vo.response.AjaxMessage;
import org.cleverframe.sys.SysBeanNames;
import org.cleverframe.sys.Sy... | Lzw2016/cleverframe | clever-sys/src/main/java/org/cleverframe/sys/controller/MenuController.java | Java | gpl-3.0 | 5,364 |
<?php
namespace App\Models;
use Zizaco\Entrust\EntrustRole;
final class Role extends EntrustRole
{
protected $table = 'roles';
protected $hidden = ['id', 'description', 'updated_at', 'created_at', 'pivot'];
protected $appends = array('role_id');
protected $fillable = ['name', 'display_name', 'description'];
p... | faiverson/prode | api/app/Models/Role.php | PHP | gpl-3.0 | 533 |
Vue.component('snackbar', require('./components/material/snackbar.vue'));
Vue.component('show-snackbar', require('./components/material/show-snackbar.vue'));
| authv/authv | resources/assets/js/authv.js | JavaScript | gpl-3.0 | 159 |
package com.technode.terrafirmastuff.core.proxy;
import com.bioxx.tfc.api.Tools.ChiselManager;
import com.technode.terrafirmastuff.handler.ServerTickHandler;
import com.technode.terrafirmastuff.tileentity.TEOilLampMod;
import com.technode.terrafirmastuff.tools.ChiselMode_Chiseled;
import com.technode.terrafirmastuff.t... | Bunsan/TerraFirmaStuff | src/main/java/com/technode/terrafirmastuff/core/proxy/CommonProxy.java | Java | gpl-3.0 | 1,619 |
/*
* LibrePCB - Professional EDA for everyone!
* Copyright (C) 2013 LibrePCB Developers, see AUTHORS.md for contributors.
* https://librepcb.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 Fou... | rnestler/LibrePCB | libs/librepcb/project/boards/cmd/cmdboardpolygonremove.cpp | C++ | gpl-3.0 | 2,452 |
/* -*- Mode: C++; indent-tabs-mode: t; c-basic-offset: 2; tab-width: 2 -*- */
/*
* generallayout.h
* Copyright (C) 2015 Dejardin Gilbert <dejarding@gmail.com>
*
* audio 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 Softwa... | Dagal/DagalTone | src/generallayout.hpp | C++ | gpl-3.0 | 1,330 |
Bitrix 16.5 Business Demo = 8363d6b7acdc0ffe32d47cf7b8ca36d0
Bitrix 17.0.9 Business Demo = ea7195812c63ac17d4ca29504d832888
| gohdan/DFC | known_files/hashes/bitrix/modules/sale/tools/basket_discount_convert.php | PHP | gpl-3.0 | 124 |
package com.aliyun.api.ess.ess20140828.response;
import com.aliyun.api.AliyunResponse;
import com.taobao.api.internal.mapping.ApiField;
/**
* TOP API: ess.aliyuncs.com.DetachInstances.2014-08-28 response.
*
* @author auto create
* @since 1.0, null
*/
public class DetachInstancesResponse extends AliyunResponse {... | kuiwang/my-dev | src/main/java/com/aliyun/api/ess/ess20140828/response/DetachInstancesResponse.java | Java | gpl-3.0 | 969 |
#!/usr/bin/env python
"""
A pure python ping implementation using raw socket.
Note that ICMP messages can only be sent from processes running as root.
Derived from ping.c distributed in Linux's netkit. That code is
copyright (c) 1989 by The Regents of the University of California.
That cod... | jredrejo/controlaula | Backend/src/ControlAula/Utils/ping.py | Python | gpl-3.0 | 7,021 |
#!/usr/bin/python
from src.sqllist import GLOBALS
class BasicResolver(object):
"""General resolver class"""
def __init__(self, conn=None):
self.conn = conn
pass
def resolve(self, detections, sources):
"""Template resolve function.
Returns resolution status and an array... | jjdmol/LOFAR | CEP/GSM/bremen/src/resolve.py | Python | gpl-3.0 | 2,496 |
package net.minecraft.client.gui;
import java.io.IOException;
import java.util.Random;
import net.minecraft.client.resources.I18n;
import net.minecraft.util.ChatAllowedCharacters;
import net.minecraft.world.GameType;
import net.minecraft.world.WorldSettings;
import net.minecraft.world.WorldType;
import net.minecraft.w... | MartyParty21/AwakenDreamsClient | mcp/src/minecraft/net/minecraft/client/gui/GuiCreateWorld.java | Java | gpl-3.0 | 21,756 |
# -*- coding: utf-8 -*-
#
# Copyright (C) 2014-2019 khalim19
#
# 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 applicab... | khalim19/gimp-plugin-export-layers | export_layers/pygimplib/gui/itembox.py | Python | gpl-3.0 | 18,637 |
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Linq;
using FluentAssertions;
using GitUI;
using GitUI.UserControls.RevisionGrid.Graph;
using GitUIPluginInterfaces;
using NSubstitute;
using NUnit.Framework;
namespace GitUITests.UserControls.RevisionGrid.Graph
{
... | jbialobr/gitextensions | UnitTests/GitUITests/UserControls/RevisionGrid/Graph/JunctionStylerTests.cs | C# | gpl-3.0 | 6,704 |
// Copyright 2016 The go-elementrem Authors.
// This file is part of go-elementrem.
//
// go-elementrem 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)... | elementrem/go-elementrem | cmd/utils/fdlimit_unix.go | GO | gpl-3.0 | 1,621 |
#ifndef MWGUI_ENCHANTINGDIALOG_H
#define MWGUI_ENCHANTINGDIALOG_H
#include "spellcreationdialog.hpp"
#include "../mwbase/windowmanager.hpp"
#include "../mwmechanics/enchanting.hpp"
namespace MWGui
{
class ItemSelectionDialog;
class ItemWidget;
class EnchantingDialog : public WindowBase, public Referen... | Demorde/openmw-android | apps/openmw/mwgui/enchantingdialog.hpp | C++ | gpl-3.0 | 1,852 |
package com.xminds.aws.cognito;
/**
* Maintains SDK configuration.
*/
public final class CognitoIdentityProviderClientConfig {
/**
* Maximum threshold for refresh tokens, in milli seconds.
*/
private static long REFRESH_THRESHOLD_MAX = 1800 * 1000;
/**
* Minimum threshold for refresh toke... | xminds/cognitowrapper | src/main/java/com/xminds/aws/cognito/CognitoIdentityProviderClientConfig.java | Java | gpl-3.0 | 1,333 |
function changeQueryStr(name, value) {
var query = window.location.search.substring(1),
newQuery = '?', notFound = true,
vars = query.split('&');
for (var i = 0; i < vars.length; i++) {
var pair = vars[i].split('=');
if (pair == '' || pair[0] == 'page') continue;
if (pair... | RomanOsadchuk/GoStory | general/static/general/js/list_filtering.js | JavaScript | gpl-3.0 | 1,490 |
"""
Follow Me activity for Sugar
Copyright (C) 2010 Peter Hewitt
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 late... | walterbender/followme | rc_skip_last.py | Python | gpl-3.0 | 1,984 |
import Route from '@ember/routing/route'
import resetScroll from 'radio4000/mixins/reset-scroll'
export default Route.extend(resetScroll, {})
| internet4000/radio4000 | app/channels/route.js | JavaScript | gpl-3.0 | 143 |
# originally from
# http://code.google.com/p/django-syncr/source/browse/trunk/app/delicious.py
# supousse django-syncr should be installed as external app and this code
# inherit from that, but django-syncr have not a setup.py file (so can't be
# added in src/pinax/requirements/external_apps.txt) and is not migrate... | duy/pinax-syncr-delicious | delicious/delicious.py | Python | gpl-3.0 | 8,100 |
/*
===========================================================================
Doom 3 GPL Source Code
Copyright (C) 1999-2011 id Software LLC, a ZeniMax Media company.
This file is part of the Doom 3 GPL Source Code ("Doom 3 Source Code").
Doom 3 Source Code is free software: you can redistribute it and/or modify
it... | revelator/MHDoom | neo/idlib/CmdArgs.cpp | C++ | gpl-3.0 | 5,010 |
/*
Copyright 2010-2012 Infracom & Eurotechnia (support@webcampak.com)
This file is part of the Webcampak project.
Webcampak 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 (a... | Webcampak/v2.0 | src/www/interface/dev/app/view/dashboard/sourcepicturesizes/SourcesList.js | JavaScript | gpl-3.0 | 1,232 |
package uni.miskolc.ips.ilona.positioning.web;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframe... | ZsoltToth/ilona-positioning | web/src/main/java/uni/miskolc/ips/ilona/positioning/web/IlonaPositioningApplicationContext.java | Java | gpl-3.0 | 5,114 |
/*
* 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, or (at your option) any later version. This
* program is distributed in the hope that it will be useful, but WITHOUT ANY
... | pantelis60/L2Scripts_Underground | authserver/src/main/java/l2s/authserver/network/l2/L2LoginClient.java | Java | gpl-3.0 | 5,175 |
"""
Module to handle distortions in diffraction patterns.
"""
import numpy as np
import scipy.optimize
def filter_ring(points, center, rminmax):
"""Filter points to be in a certain radial distance range from center.
Parameters
----------
points : np.ndarray
Candidate points.
... | ercius/openNCEM | ncempy/algo/distortion.py | Python | gpl-3.0 | 8,278 |
#include "stdafx.h"
#include "Helper.h"
#include "common.h"
Helper::Helper(void)
{
x = rand() % wide;
y = 0;
type = rand() % 5;
exist = true;
}
Helper::~Helper(void)
{
}
//wide
//height
void Helper::get(Player* p)
{
y += 2;
if (y >= height)//ÅжÏÊÇ·ñ³öÁËÆÁÄ»
{
y = height-1;
exist = false;
}
if(exist &&... | zhangry868/Aircraft-Game-MFC | Plane/Helper.cpp | C++ | gpl-3.0 | 1,790 |
global.should = require('should');
global.Breadboard = require('../lib'); | palra/breadboard | test/globalHooks.js | JavaScript | gpl-3.0 | 73 |
package net.therap.controller;
import net.therap.domain.Notification;
import net.therap.domain.User;
import net.therap.service.NotificationService;
import net.therap.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springfr... | shovonis/bookworm | application/book-worm/src/main/java/net/therap/controller/NotificationController.java | Java | gpl-3.0 | 2,867 |
<?php
if(!isset($_SESSION)) { session_start(); }
if(!isset($_SESSION['login'])) {
die('Please sign in');
} else {
if($_SERVER["HTTPS"] != "on")
{
die('Must use HTTPS');
}
}
session_write_close();
//var_dump($_REQUEST);
if(isset($_REQUEST['d'])&&isset($_REQUEST['s'])) {
$base_dir="/var/www/factorio/";
$html_d... | 3RaGaming/Web_Control | html/assets/api/console.php | PHP | gpl-3.0 | 1,136 |
package com.sigmasq.timely.solver;
public class CloudComputer {
private int cpuPower;
private int memory;
private int networkBandwidth;
private int cost;
public int getCpuPower() {
return cpuPower;
}
public int getMemory() {
return memory;
}
public int getNetwor... | oapa/timely | CalendarSync/src/com/sigmasq/timely/solver/CloudComputer.java | Java | gpl-3.0 | 431 |
#!/usr/bin/env python
# coding=utf-8
import flask
from flask import flash
from flask_login import login_required
from rpress.models import SiteSetting
from rpress.database import db
from rpress.runtimes.rpadmin.template import render_template, navbar
from rpress.runtimes.current_session import get_current_site, get_... | rexzhang/rpress | rpress/views/rpadmin/settings.py | Python | gpl-3.0 | 1,428 |
namespace GoogleCast.Messages
{
/// <summary>
/// Interface for a message
/// </summary>
public interface IMessage
{
/// <summary>
/// Gets the message type
/// </summary>
string Type { get; }
}
}
| kakone/GoogleCast | GoogleCast/Messages/IMessage.cs | C# | gpl-3.0 | 256 |
function PingPongPaddle(x, y, z, radius) {
this.x = x;
this.y = y;
this.z = z;
this.radius = radius;
}
PingPongPaddle.prototype = {
rotation: new THREE.Vector3(0, 0, 0),
init: function(scene) {
var tableImage = THREE.ImageUtils.loadTexture('images/paddle_texture.jpg');
//var geo... | mryan23/PingPongServer | war/js/ping_pong_paddle.js | JavaScript | gpl-3.0 | 1,903 |
package com.fastaccess.data.dao.types;
import androidx.annotation.StringRes;
import com.fastaccess.R;
public enum IssueState {
open(R.string.opened),
closed(R.string.closed),
all(R.string.all);
int status;
IssueState(@StringRes int status) {
this.status = status;
}
@StringRes p... | k0shk0sh/FastHub | app/src/main/java/com/fastaccess/data/dao/types/IssueState.java | Java | gpl-3.0 | 374 |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.Common;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Sudemax.Properties;
using Sudemax.FormExtension;
using Sudemax.DataGridViewExtension;
namespace Sudema... | emegeve/Sudemax | Sudemax/PeliculaMainForm.cs | C# | gpl-3.0 | 5,507 |
// Copyright © 2011-2013 Yanick Castonguay
//
// This file is part of MPfm.
//
// MPfm 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... | ycastonguay/VSProjectSync | ProjectFileReader.cs | C# | gpl-3.0 | 2,148 |
/*
* Copyright © 2017 No0n3Left <no0n3left@gmail.com>
*
* This file is part of Remnant
*
* Remnant 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)... | No0n3Left/Remnant | src/opengl/mesh.cpp | C++ | gpl-3.0 | 5,257 |
<?php
/**
* Copyright (C) 2007,2008 Arie Nugraha (dicarve@yahoo.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 la... | yuannet/slims8_akasia | admin/modules/bibliography/pop_topic.php | PHP | gpl-3.0 | 7,436 |
using System;
using Chronos.Model;
namespace Chronos.Java.BasicProfiler
{
[Serializable]
public sealed class ThreadInfo : UnitBase
{
public ThreadInfo(ThreadNativeInfo threadInfo)
: base(threadInfo)
{
}
private ThreadNativeInfo ThreadNativeInfo
{
... | AndreiFedarets/chronosprofiler | source/Chronos.Java.BasicProfiler/Chronos.Java.BasicProfiler/ThreadInfo.cs | C# | gpl-3.0 | 560 |