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 enhanced.portals.client.gui.elements;
import java.util.List;
import enhanced.base.client.gui.BaseGui;
import enhanced.base.client.gui.elements.BaseElement;
import enhanced.core.Reference.ECMod;
import enhanced.portals.portal.GlyphIdentifier;
import net.minecraft.util.ResourceLocation;
public class ElementGly... | enhancedportals/enhancedportals | src/main/java/enhanced/portals/client/gui/elements/ElementGlyphDisplay.java | Java | lgpl-3.0 | 1,367 |
/**
* Class ReloadRemoteOrder
* Sending remote order for background reload
* Creation: May, 06, 2011
* @author Ludovic APVRILLE
* @see
*/
import java.io.*;
import java.net.*;
public class ReloadRemoteOrder {
public static final int DEFAULT_PORT = 9362;
public static void main(Strin... | LudooduL/crocbar | src/ReloadRemoteOrder.java | Java | lgpl-3.0 | 823 |
/*
* Neurpheus - Morfological Analyser
*
* Copyright (C) 2006 Jakub Strychowski
*
* 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; either version 2.1 of the License, or (at your ... | Neurpheus/manalyser | src/main/java/org/neurpheus/nlp/morphology/inflection/CorePattern.java | Java | lgpl-3.0 | 8,839 |
package ch.idsia.blip.core.learn.solver.ps;
import ch.idsia.blip.core.utils.ParentSet;
public class NullProvider implements Provider {
@Override
public ParentSet[][] getParentSets() {
return null;
}
}
| mauro-idsia/blip | core/src/main/java/ch/idsia/blip/core/learn/solver/ps/NullProvider.java | Java | lgpl-3.0 | 226 |
package org.cdisc.ns.odm.v1;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for ArchiveLayoutRef complex type.
*
* <p>The following schema fragment spec... | chb/i2b2-ssr | data_import/InformClient/src/main/java/org/cdisc/ns/odm/v1/ArchiveLayoutRef.java | Java | lgpl-3.0 | 1,726 |
<?php
include_once("templates/admin/BeanListPage.php");
include_once("beans/FAQSectionsBean.php");
include_once("beans/FAQItemsBean.php");
class FAQItemsListPage extends BeanListPage
{
public function __construct()
{
parent::__construct();
$sections = new FAQSectionsBean();
$bean = new... | yodor/sparkbox | lib/templates/admin/FAQItemsListPage.php | PHP | lgpl-3.0 | 923 |
package sinhika.bark.handlers;
public interface IThingHelper
{
public abstract void init(); // end init
public abstract String getName(int index);
public abstract String getCapName(int index);
public abstract String getTypeName(int index);
public abstract int getItemID(int index);
pub... | Sinhika/SinhikaSpices | common/sinhika/bark/handlers/IThingHelper.java | Java | lgpl-3.0 | 518 |
/*
* Copyright (C) 2005-2010 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco 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
... | loftuxab/community-edition-old | projects/repository/source/java/org/alfresco/repo/admin/patch/impl/NoLongerSupportedPatch.java | Java | lgpl-3.0 | 2,016 |
package org.ddialliance.ddieditor.ui.view;
import java.util.List;
import org.apache.xmlbeans.XmlObject;
import org.ddialliance.ddieditor.model.conceptual.ConceptualElement;
import org.ddialliance.ddieditor.model.conceptual.ConceptualType;
import org.ddialliance.ddieditor.model.lightxmlobject.CustomType;
import org.dd... | DdiEditor/ddieditor-ui | src/org/ddialliance/ddieditor/ui/view/TreeLabelProvider.java | Java | lgpl-3.0 | 4,630 |
// Catalano Imaging Library
// The Catalano Framework
//
// Copyright © Diego Catalano, 2014
// diego.catalano at live.com
//
// 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 Found... | accord-net/java | Catalano.Android.Image/src/Catalano/Imaging/Filters/DifferenceOfGaussian.java | Java | lgpl-3.0 | 4,825 |
/*
* SonarQube
* Copyright (C) 2009-2022 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... | SonarSource/sonarqube | server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/StatPendingTime-test.tsx | TypeScript | lgpl-3.0 | 1,747 |
var default_window_options = {
autoOpen: false,
width: 750,
height: 450,
modal: true,
resizable: false
};
function applyNotificationStyles() {
$('.error').each(function() {
$(this).addClass('ui-state-error ui-corner-all');
$(this).prepend('<span class="ui-icon ui-icon-alert"></s... | mariajosefrancolugo/osp | osp/media/js/base.js | JavaScript | lgpl-3.0 | 1,553 |
package io.robe.admin.hibernate.entity;
import org.junit.FixMethodOrder;
import org.junit.Test;
import static junit.framework.TestCase.assertEquals;
/**
* Created by recep on 30/09/16.
*/
@FixMethodOrder
public class MenuTest {
Menu entity = new Menu();
@Test
public void getText() throws Exception {
... | robeio/robe | robe-admin/src/test/java/io/robe/admin/hibernate/entity/MenuTest.java | Java | lgpl-3.0 | 1,192 |
<?php
/**
* @package wa-apps/photos/api/v1
*/
class photosPhotoRotateMethod extends waAPIMethod
{
protected $method = 'POST';
public function execute()
{
$id = $this->post('id', true);
$photo_model = new photosPhotoModel();
$photo = $photo_model->getById($id);
... | SergeR/webasyst-framework | wa-apps/photos/api/v1/photos.photo.rotate.method.php | PHP | lgpl-3.0 | 978 |
import math,re,sys,os,time
import random as RD
import time
try:
import netCDF4 as NC
except:
print("You no install netCDF4 for python")
print("So I do not import netCDF4")
try:
import numpy as NP
except:
print("You no install numpy")
print("Do not import numpy")
class GRIDINFORMATER:
"""
... | metalpen1984/SciTool_Py | GRIDINFORMER.py | Python | lgpl-3.0 | 66,239 |
<?php
declare(strict_types=1);
namespace slapper\entities;
class SlapperVex extends SlapperEntity {
const TYPE_ID = 105;
const HEIGHT = 0.8;
}
| jojoe77777/Slapper | src/slapper/entities/SlapperVex.php | PHP | lgpl-3.0 | 156 |
/*
* Sonar, open source software quality management tool.
* Copyright (C) 2008-2011 SonarSource
* mailto:contact AT sonarsource DOT com
*
* Sonar 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... | leodmurillo/sonar | plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/reviews/MyReviewsWidget.java | Java | lgpl-3.0 | 1,757 |
<?php
/**
* Smarty Internal Plugin Compile Section
*
* Compiles the {section} {sectionelse} {/section} tags
*
* @package Brainy
* @subpackage Compiler
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Compile Section Class
*
* @package Brainy
* @subpackage Compiler
*/
class Smarty_Internal_Compile_Sectio... | chriseling/brainy | src/Brainy/sysplugins/smarty_internal_compile_section.php | PHP | lgpl-3.0 | 7,064 |
/*
* SonarQube JavaScript Plugin
* Copyright (C) 2011-2021 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3... | SonarSource/sonar-javascript | javascript-checks/src/main/java/org/sonar/javascript/checks/EncryptionSecureModeCheck.java | Java | lgpl-3.0 | 1,307 |
/*
* This file is part of Gaia Sky, which is released under the Mozilla Public License 2.0.
* See the file LICENSE.md in the project root for full license details.
*/
package gaiasky.desktop.util;
import gaiasky.util.Logger;
import gaiasky.util.Logger.Log;
import java.io.IOException;
import java.nio.file.Files;
i... | ari-zah/gaiasandbox | core/src/gaiasky/desktop/util/SysUtils.java | Java | lgpl-3.0 | 9,893 |
package com.taiter.ce.Enchantments.Global;
import org.bukkit.Material;
import org.bukkit.entity.Creeper;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Player;
import org.bukkit.entity.Skeleton;
import org.bukkit.entity.Skeleton.SkeletonType;
import org.bukkit.entity.Zombie;
import org.bukkit.event.Ev... | Taiterio/ce | src/com/taiter/ce/Enchantments/Global/Headless.java | Java | lgpl-3.0 | 2,233 |
package net.minecraft.src;
// MCPatcher Start
import com.prupe.mcpatcher.cc.ColorizeEntity;
// MCPatcher End
public class ItemArmor extends Item {
/** Holds the 'base' maxDamage that each armorType have. */
private static final int[] maxDamageArray = new int[] {11, 16, 15, 13};
private static final String[] field... | Spoutcraft/Spoutcraft | src/main/java/net/minecraft/src/ItemArmor.java | Java | lgpl-3.0 | 6,355 |
<?php
namespace Cron;
class CronClass
{
/** @var array Обработанный список задач крона */
protected $cron = array();
/** @var string Путь к файлу с задачами крона */
protected $cronFile;
/** @var string Адрес, на который будут высылаться уведомления с крона */
protected $cronEmail;
/** @... | ideals/Ideal-CMS | Library/Cron/CronClass.php | PHP | lgpl-3.0 | 14,959 |
/*
* Created on May 19, 2008
*
* Copyright (c) 2008, The JUNG Authors
*
* All rights reserved.
*
* This software is open-source under the BSD license; see either
* "license.txt" or
* https://github.com/jrtom/jung/blob/master/LICENSE for a description.
*/
package edu.uci.ics.jung.algorithms.filters;
import j... | drzhonghao/grapa | jung-algorithms/src/main/java/edu/uci/ics/jung/algorithms/filters/VertexPredicateFilter.java | Java | lgpl-3.0 | 2,185 |
/*
* SonarQube
* Copyright (C) 2009-2022 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... | SonarSource/sonarqube | server/sonar-webserver-core/src/main/java/org/sonar/server/ce/CeModule.java | Java | lgpl-3.0 | 1,241 |
/*
* SonarQube
* Copyright (C) 2009-2019 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... | Godin/sonar | server/sonar-web/src/main/js/apps/projects/filters/__tests__/SearchFilterContainer-test.tsx | TypeScript | lgpl-3.0 | 1,288 |
<?php
/**
* This file is part of MetaModels/core.
*
* (c) 2012-2019 The MetaModels team.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* This project is provided in good faith and hope to be usable by anyone.
*
* @package M... | MetaModels/core | src/Helper/ContaoController.php | PHP | lgpl-3.0 | 2,956 |
/*
* This file is part of AlmightyNotch.
*
* Copyright (c) 2014 <http://dev.bukkit.org/server-mods/almightynotch//>
*
* AlmightyNotch 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 versio... | ampayne2/AlmightyNotch | src/main/java/ninja/amp/almightynotch/event/player/QuicksandEvent.java | Java | lgpl-3.0 | 931 |
/*
* Intake, a command processing library
* Copyright (C) sk89q <http://www.sk89q.com>
* Copyright (C) Intake team and contributors
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by the
* Free Software Foundation... | TheE/Intake | intake-example/src/main/java/com/sk89q/intake/example/i18n/ExampleResourceProvider.java | Java | lgpl-3.0 | 1,183 |
/*
* Copyright (c) 2013 University of Nice Sophia-Antipolis
*
* This file is part of btrplace.
* 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 yo... | fhermeni/btrplace-btrpsl | src/test/java/btrplace/btrpsl/constraint/DefaultConstraintsCatalogTest.java | Java | lgpl-3.0 | 1,816 |
/*
Copyright 2012-2014 Infinitycoding all rights reserved
This file is part of the HugeUniversalGameEngine.
HUGE 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... | infinitycoding/huge | src/sdl/sdl.cpp | C++ | lgpl-3.0 | 2,586 |
<?php
require_once(__DIR__."/../model/JuradoProfesional.php");
require_once(__DIR__."/../model/JuradoProfesionalMapper.php");
require_once(__DIR__."/../model/User.php");
require_once(__DIR__."/../model/UserMapper.php");
require_once(__DIR__."/../model/Concurso.php");
require_once(__DIR__."/../model/ConcursoMapper.php... | xrlopez/ABP | controller/JuradoProfesionalController.php | PHP | lgpl-3.0 | 6,331 |
let idCounter = 0;
function nextId() {
return ++idCounter;
}
// if the platform throws an exception, the worker will kill & restart it, however if a callback comes in there could
// be a race condition which tries to still access session functions which have already been terminated by the worker.
// this function ... | sockethub/sockethub-platform-xmpp | lib/incoming-handlers.js | JavaScript | lgpl-3.0 | 7,988 |
# -*- coding: utf-8 -*-
module Vnet
module Event
#
# Shared events:
#
ACTIVATE_INTERFACE = "activate_interface"
DEACTIVATE_INTERFACE = "deactivate_interface"
# *_INITIALIZED
#
# First event queued after the non-yielding and non-blocking
# initialization of an item query from th... | axsh/openvnet | vnet/lib/vnet/event.rb | Ruby | lgpl-3.0 | 13,317 |
/*
* ARMarkerSquare.cpp
* ARToolKitUWP
*
* This work is a modified version of the original "ARMarkerSquare.cpp" of
* ARToolKit. The copyright and license information of ARToolKit is included
* in this document as required by its GNU Lesser General Public License
* version 3.
*
* This file is a part of ARToolKitU... | qian256/HoloLensARToolKit | ARToolKitUWP/ARToolKitUWP/src/ARMarkerSquare.cpp | C++ | lgpl-3.0 | 8,515 |
/*
This source file is part of KBEngine
For the latest info, see http://www.kbengine.org/
Copyright (c) 2008-2012 KBEngine.
KBEngine 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 ... | cnsoft/kbengine-cocos2dx | kbe/src/server/cellappmgr/cellappmgr_interface.hpp | C++ | lgpl-3.0 | 3,080 |
package jmathlibtests.toolbox.string;
import jmathlib.tools.junit.framework.JMathLibTestCase;
import junit.framework.Test;
import junit.framework.TestSuite;
public class testStrncmp extends JMathLibTestCase {
public testStrncmp(String name) {
super(name);
}
public static void main (String[] args)... | nightscape/JMathLib | src/jmathlibtests/toolbox/string/testStrncmp.java | Java | lgpl-3.0 | 1,263 |
/*
* Model Tools.
* Copyright (C) 2013 Pal Hargitai (pal@lunarray.org)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) an... | lunarray-org/model-descriptor | src/test/java/org/lunarray/model/descriptor/test/domain/SampleEntity18.java | Java | lgpl-3.0 | 2,482 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from lxml import html
import requests
import csv, codecs, cStringIO
import sys
class Person:
def __init__(self, party, name, email):
self.party = party
self.name = name
self.email = email
class UnicodeWriter:
"""
A CSV writer which wi... | samuelskanberg/riksdagen-crawler | scraper.py | Python | unlicense | 4,168 |
<?php
class regis_kec extends kecamatan_controller{
var $controller;
function regis_kec(){
parent::__construct();
$this->controller = get_class($this);
$this->load->model('regis_kec_model','dm');
$this->load->model("coremodel","cm");
//$this->load->helper("serviceurl");
}
function ind... | NizarHafizulllah/pertanahan | application/modules/regis_kec/controllers/regis_kec.php | PHP | unlicense | 8,314 |
module Collectable
extend ActiveSupport::Concern
included do
attr_readonly :collectors_count
has_many :collections, as: :target
has_many :collectors, through: :collections, class_name: 'User', source: :user
end
def collected_by?(current_user)
return false if current_user.nil?
!!... | Edisonangela/manager | app/models/concerns/collectable.rb | Ruby | unlicense | 379 |
package org.hyperic.hq.api.model;
import java.io.Serializable;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.hyperic.hq... | cc14514/hq6 | hq-api/src/main/java/org/hyperic/hq/api/model/ResourceConfig.java | Java | unlicense | 3,524 |
import matplotlib.pyplot as plt
import numpy as np
n = 50
x = np.random.randn(n)
y = x * np.random.randn(n)
fig, ax = plt.subplots(2, figsize=(6, 6))
ax[0].scatter(x, y, s=50)
sizes = (np.random.randn(n) * 8) ** 2
ax[1].scatter(x, y, s=sizes)
fig.show()
"""(

)"... | pythonpatterns/patterns | p0171.py | Python | unlicense | 323 |
from django.apps import AppConfig
class GroupInvitationsConfig(AppConfig):
name = 'GroupInvitations'
verbose_name = 'Group Invitations' | Yury191/brownstonetutors | GroupInvitations/apps.py | Python | unlicense | 144 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace PLCv4.Models
{
public class ApplicationRoleListViewModel
{
public string Id { get; set; }
public string RoleName { get; set; }
public string Description { get; set; }
pu... | AdrianPT/Eureka-PLC | src/PLCv4/Models/ApplicationRoleListViewModel.cs | C# | unlicense | 369 |
/**
* Gulp Task HTML
* @author kuakman <3dimentionar@gmail.com>
**/
let fs = require('fs-extra');
let _ = require('underscore');
let spawnSync = require('child_process').spawnSync;
module.exports = function(package, args) {
return () => {
return spawnSync('./node_modules/.bin/pug', [
'--path', './src/html',
'... | kuakman/app-start-pipeline | scripts/html.js | JavaScript | unlicense | 526 |
package io.github.picodotdev.blogbitix.entitiesid.domain.product;
import io.github.picodotdev.blogbitix.entitiesid.DefaultPostgresContainer;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springfr... | picodotdev/blog-ejemplos | EntitiesId/src/test/java/io/github/picodotdev/blogbitix/entitiesid/domain/product/ProductRepositoryTest.java | Java | unlicense | 1,085 |
function nSplit(msg, n) {
let expr = new RegExp(".{1," + n + "}", "g");
let presplit = msg.match(expr);
let twoSplit = presplit.map((x) => {
if (x.length != n) {
let i = 0;
let ret = "";
while (i < n - x.length) {
ret += " ";
i++
... | ConflictingTheories/scripts | javascript/lib/nSplit.js | JavaScript | unlicense | 2,366 |
import enum
class H264Trellis(enum.Enum):
DISABLED = 'DISABLED'
ENABLED_FINAL_MB = 'ENABLED_FINAL_MB'
ENABLED_ALL = 'ENABLED_ALL'
| bitmovin/bitmovin-python | bitmovin/resources/enums/h264_trellis.py | Python | unlicense | 144 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Visio = Microsoft.Office.Interop.Visio;
using VisCellIndicies = Microsoft.Office.Interop.Visio.VisCellIndices;
using VisSectionIndices = Microsoft.Office.Interop.Visio.VisSectionIndices;
us... | mamu7211/VisioPomAnalyzer | PomExplorer/PomExplorer/VisioDrawing/PomPainter.cs | C# | unlicense | 5,331 |
#!/usr/local/bin/elev8
var EXPAND_BOTH = { x : 1.0, y : 1.0 };
var FILL_BOTH = { x : -1.0, y : -1.0 };
var logo_icon = elm.Icon ({
image : elm.datadir + "data/images/logo_small.png",
});
var logo_icon_unscaled = elm.Icon ({
image : elm.datadir + "data/images/logo_small.png",
resizable_up : false,
res... | maikodaraine/EnlightenmentUbuntu | bindings/elev8/data/javascript/radio.js | JavaScript | unlicense | 2,132 |
#include <iostream>
int main(int argc, char const *argv[])
{
int x = 1;
int y = 9;
printf("0. x:%i y:%i\n",x,y);
//newbie
int s;
s = x;
x = y;
y = s;
printf("1. x:%i y:%i\n",x,y);
//hacker
x=x+y;
y=x-y;
x=x-y;
printf("2. x:%i y:%i\n",x,y);
//pro hacker
... | varpeti/Suli | Angol/Előad/p009.cpp | C++ | unlicense | 399 |
package crazypants.enderio.conduits.conduit.redstone;
import java.util.EnumMap;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import com.enderio.core.api.client.gui.ITabPanel;
import com.enderio.co... | HenryLoenwind/EnderIO | enderio-conduits/src/main/java/crazypants/enderio/conduits/conduit/redstone/InsulatedRedstoneConduit.java | Java | unlicense | 33,880 |
$.extend(window.lang_fa, {
"helpStop": "متوقف کردن آموزش",
}); | trollderius/wouldyourather_phonegap | www/~commons/modules/tutorial/lang/fa.js | JavaScript | unlicense | 76 |
package crazypants.enderio.machine.capbank.network;
import javax.annotation.Nonnull;
import com.enderio.core.common.util.BlockCoord;
import crazypants.enderio.conduit.IConduitBundle;
import crazypants.enderio.conduit.power.IPowerConduit;
import crazypants.enderio.machine.IoMode;
import crazypants.enderio.machine.cap... | D-Inc/EnderIO | src/main/java/crazypants/enderio/machine/capbank/network/EnergyReceptor.java | Java | unlicense | 2,445 |
/*****************************************************************************
*
* HOPERUN PROPRIETARY INFORMATION
*
* The information contained herein is proprietary to HopeRun
* and shall not be reproduced or disclosed in whole or in part
* or used for ... | yangjun2/android | telematics_android/src/com/hoperun/telematics/mobile/activity/FuelStateActivity.java | Java | unlicense | 6,629 |
/*
* cuReVM.cpp
*
* (Un)License: Public Domain
* You can use and modify this file without any restriction.
* Do what you want.
* No warranties and disclaimer of any damages.
* More info: http://unlicense.org
* The latest sources: https://github.com/republib
*/
#include "base/rebase.hpp"
#include "expr/reexpr.... | republib/reqt | cunit/cuReVM.cpp | C++ | unlicense | 1,955 |
'use strict';
function ProfileSearch(injector) {
var service = this;
service.list = function(params) {
var connection = injector.connection;
var ProfileModel = injector.ProfileModel;
var profileSearch = new ProfileModel();
var page = params.page || 1;
var where = params.where || [];... | luiz-simples/kauris | server/src/profile/profile.search.js | JavaScript | unlicense | 703 |
import {GameConfig} from '../../../config/game.config';
import {GuiUtils} from '../../../utils/gui.utils';
import {isString} from 'util';
export class CrossButton {
private state: Phaser.State = null;
private game: Phaser.Game = null;
private url: string = '';
private container: Phaser.Group = null;
... | B1zDelNick/phaser-npm-webpack-typescript-starter-project-master | src/states/template/final/cross.button.ts | TypeScript | unlicense | 2,417 |
package BreadthAndDepthFirstSearch;
// https://leetcode.com/problems/increasing-order-search-tree/
import java.util.ArrayList;
import java.util.Arrays;
public class IncreasingOrderBinarySearchTree {
private static class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode(int value) {
val = value... | gagarwal/codingproblemsandsolutions | src/BreadthAndDepthFirstSearch/IncreasingOrderBinarySearchTree.java | Java | unlicense | 1,654 |
var net = require('net')
var chatServer = net.createServer(),
clientList = []
chatServer.on('connection', function(client) {
client.name = client.remoteAddress + ':' + client.remotePort
client.write('Hi ' + client.name + '!\n');
console.log(client.name + ' joined')
clientList.push(client)
cl... | mattcoffey/node.js | chatServer.js | JavaScript | unlicense | 1,002 |
/*!
* SAP UI development toolkit for HTML5 (SAPUI5/OpenUI5)
* (c) Copyright 2009-2015 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define(['sap/ui/model/FormatException', 'sap/ui/model/odata/type/ODataType',
'sap/ui/model/ParseException', 'sap/... | ghostxwheel/utorrent-webui | resources/sap/ui/model/odata/type/Guid-dbg.js | JavaScript | unlicense | 5,646 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Contains test cases for the utils.py module."""
from __future__ import unicode_literals
import sys
import os.path
import unittest
PATH = os.path.realpath(os.path.abspath(__file__))
sys.path.insert(0, os.path.dirname(os.path.dirname(PATH)))
try:
from youtube_dl_g... | Sofronio/youtube-dl-gui | tests/test_utils.py | Python | unlicense | 1,981 |
#include "escapeTimeFractal.h"
escapeTimeFractal::escapeTimeFractal() : fractal()
{
zoomed_fr_x_max = FR_X_MAX;
zoomed_fr_x_min = FR_X_MIN;
zoomed_fr_y_max = FR_Y_MAX;
zoomed_fr_y_min = FR_Y_MIN;
}
void escapeTimeFractal::render(QImage *image, int begin, int end)
{
for (int i = begin; i < end; ++i)
{
for (int... | kamilwu/fracx | src/escapeTimeFractal.cpp | C++ | unlicense | 904 |
var assert = require('assert')
var path = require('path')
var fs = require('fs-extra')
var sinon = require('sinon')
var broccoli = require('broccoli')
var Q = require('q')
var Filter = require('..')
describe('Filter', function() {
var ORIG_DIR = path.join(__dirname, 'files')
var DIR = path.join(__dirname, 'files-co... | sunflowerdeath/broccoli-glob-filter | tests/test.js | JavaScript | unlicense | 5,011 |
/**
*
* This is the "container" for global variables. I made it so we won't have to worry
* about "conflicts" with local variable names.
*
*/
var NFL_PICKS_GLOBAL = {
/**
* Here to store data from the server so we can hopefully load it once and then
* get to it whenever it's needed as we're dealing with o... | hhhayssh/nflpicks | src/main/webapp/javascript/nflpicks.js | JavaScript | unlicense | 78,271 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using PaperMarioBattleSystem.Extensions;
namespace PaperMarioBattleSystem
{
/// <summary>
/// The Timing Tutor Badge - teaches the timing of Stylish Moves by showing a "!" above the ch... | tdeeb/PaperMarioBattleSystem | PaperMarioBattleSystem/PaperMarioBattleSystem/Classes/Collectibles/Badges/TimingTutorBadge.cs | C# | unlicense | 1,310 |
require 'test/unit'
require 'bitcodin'
require 'json'
require 'coveralls'
Coveralls.wear!
module Bitcodin
class BitcodinApiCreateTest < Test::Unit::TestCase
def setup
# read access information (e.g. api key, etc.) from file
file = File.read('test/resources/settings.json')
data = JSON.p... | bitmovin/bitcodin-ruby | test/jobs/bitcodin_api_create_test.rb | Ruby | unlicense | 9,797 |
# -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Brand'
db.create_table(u'automotive_brand', (
... | mscam/django-automotive | automotive/south_migrations/0001_initial.py | Python | unlicense | 2,513 |
<?php
namespace MattyG\Http;
class Response
{
/**
* @var int
*/
protected $responseCode;
/**
* @var array
*/
protected $headers;
/**
* @var array
*/
protected $rawHeaders;
/**
* @var bool
*/
protected $headersSent;
/**
* @var string
... | djmattyg007/MattyG.Http | src/Response.php | PHP | unlicense | 3,333 |
<?php
//Database.php
//require_once('config.php'); //Might add config file to pull this in from later
class Database
{
protected static $connection;
private function dbConnect()
{
$databaseName = 'lockeythings';
$serverName = 'localhost';
$databaseUser = 'lockey'... | drenzul/lockeythings | public_html/helperclasses/database.php | PHP | unlicense | 1,755 |
<?php
function getAssets($statName,$userID) {
include 'connect.php';
$conn = mysql_connect($dbhost,$dbuser,$dbpass)
or die ('Error connecting to mysql:');
mysql_select_db($dbname);
createIfNotExists($statName,$userID);
$query = sprintf("SELECT value FROM h_user_assets WHERE assets_id = (SELECT id FROM h_assets... | dvelle/The-hustle-game-on-facebook-c.2010 | hustle/hustle/test/estate.php | PHP | unlicense | 2,104 |
import React from 'react';
import Moment from 'moment';
import { Embed, Grid } from 'semantic-ui-react';
const VideoDetail = ({video}) => {
if (!video){
return <div>Loading...</div>;
}
const videoId = video.id.videoId;
const url = `https://www.youtube.com/embed/${videoId}`;
const pubTime = Moment(video.snippet... | suemcnab/react-youtube-pxn-open | src/components/video_detail.js | JavaScript | unlicense | 891 |
class MyClass:
'''This is the docstring for this class'''
def __init__(self):
# setup per-instance variables
self.x = 1
self.y = 2
self.z = 3
class MySecondClass:
'''This is the docstring for this second class'''
def __init__(self):
# setup per-instance varia... | dagostinelli/python-package-boilerplate | packagename/somemodule.py | Python | unlicense | 382 |
#%matplotlib inline
# All the imports
from __future__ import print_function, division
from math import *
import random
import sys
import matplotlib.pyplot as plt
# TODO 1: Enter your unity ID here
__author__ = "magoff2"
class O:
"""
Basic Class which
- Helps dynamic updates
- Pretty Prints
... | gbtimmon/ase16GBT | code/4/ga/magoff2.py | Python | unlicense | 8,088 |
"""
You get an array of numbers, return the sum of all of the positives ones.
Example [1,-4,7,12] => 1 + 7 + 12 = 20
Note: array may be empty, in this case return 0.
"""
def positive_sum(arr):
# Your code here
sum = 0
for number in arr:
if number > 0:
sum += number
return sum
| aadithpm/code-a-day | py/Sum Of Positive.py | Python | unlicense | 316 |
/**
* [★★★★]200. Number of Islands
* finish: 2016-12-06
* https://leetcode.com/problems/number-of-islands/
*/
/**
* @param {character[][]} grid
* @return {number}
*/
var numIslands = function (grid) {
var count = 0, i, j;
for (i = 0; i < grid.length; i++) {
for (j = 0; j < grid[i].length; j++) {... | wyf2learn/leetcode | problems/algorithms/200.number-of-islands.js | JavaScript | unlicense | 1,394 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication2
{
class Exam: IDateAndCopy
{
public String Name { get; set; }
public int Mark { get; set; }
public DateTime Date { get; set; }
publi... | PolyakovSergey95/OOP | Polyakov_17/prakt_1/Exam.cs | C# | unlicense | 867 |
/*
* Copyright 2015 the original author or 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 applica... | yangboz/north-american-adventure | RushuMicroService/eip-rushucloud/src/main/java/com/rushucloud/eip/models/SimplePerson.java | Java | unlicense | 1,993 |
package othello.backend.classhelpers;
import othello.backend.State;
import othello.backend.classhelpers.BoardHelper;
import game.impl.Board;
import game.impl.BoardLocation;
import game.impl.GamePiece;
import org.junit.Test;
import java.util.ArrayList;
import static org.junit.Assert.*;
import static org.mockito.Mock... | Grupp2/GameBoard-API-Games | testsrc/othello/backend/classhelpers/BoardHelperTest.java | Java | unlicense | 3,094 |
from __future__ import unicode_literals
from django.apps import AppConfig
class RewardsConfig(AppConfig):
name = 'rewards'
| bfrick22/monetary-rewards | mysite/rewards/apps.py | Python | unlicense | 130 |
import React from 'react'
import {
List,
ListItem,
LiAction,
LiSecondary,
LiPrimary,
LiAvatar,
Checkbox,
Radio,
Switch,
Icon,
} from 'styled-mdl'
const demo = () => (
<List>
<ListItem>
<LiPrimary>
<LiAvatar>
<Icon name="person" />
</LiAvatar>
Bryan Cran... | isogon/styled-mdl-website | demos/lists/demos/avatarsAndControls.js | JavaScript | unlicense | 1,826 |
"""
Python bindings for GLFW.
"""
from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals
__author__ = 'Florian Rhiem (florian.rhiem@gmail.com)'
__copyright__ = 'Copyright (c) 2013-2016 Florian Rhiem'
__license__ = 'MIT'
__version__ = '1.3.1'
# By default (ERROR_... | ronhandler/gitroot | pyglfw/glfw.py | Python | unlicense | 77,583 |
var path = require('path');
var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
process.env.NODE_ENV = process.env.NODE_ENV || 'development';
var appList = ['./app/index.tsx'];
if(process.env.NODE_ENV === 'development') {
appList.unshift('webpack/hot/only-dev-server');
}
var c... | janaagaard75/framework-investigations | old-or-not-typescript/learn-redux/react-redux-counter/webpack.config.js | JavaScript | unlicense | 1,059 |
#include "simpleWebSocket.h"
#ifndef DEPENDING
#include PROXYMSGS_PB_H
#endif
#include <map>
#include <pthread.h>
#include <unistd.h>
#include <fcntl.h>
#define DEBUG false
void *connection_thread(void*arg);
int main()
{
SimpleWebSocket::WebSocketServer srv(1081, INADDR_ANY, DEBUG);
if (srv.ok() == false)... | flipk/pfkutils | libWebAppServer/simpleWsTestServer.cc | C++ | unlicense | 3,939 |
var GamesList = React.createClass({
getInitialState: function() {
return {
games: this.props.initialGames
};
},
scoreChanged: function(gameId, teamNumber, score) {
var game = this.state.games.filter(function(game) {
return game.id == gameId;
})[0];
game['pool_entry_' + teamNumber + '_score'] = score;... | austinhaws/custom-bracket | public/js/views/bracket-round.js | JavaScript | unlicense | 2,838 |
var bcrypt = require('bcrypt-nodejs');
var crypto = require('crypto');
var mongoose = require('mongoose');
var userSchema = new mongoose.Schema({
email: { type: String, unique: true, lowercase: true },
password: String,
facebook: String,
twitter: String,
google: String,
github: String,
instagram: String... | guilhermeasg/outspeak | models/User.js | JavaScript | unlicense | 2,102 |
define([
'app',
'collections/tables',
'collections/connections',
'collections/rdf-entities',
'collections/rdf-attributes',
'models/connection',
'models/table',
'views/abstract/base',
'views/shared/message-dialog',
'views/editor/connection-form',
'views/editor/rdf-entity-list',
'views/editor/... | ilucin/relsem-bridge-frontend | app/views/editor/editor.js | JavaScript | unlicense | 9,433 |
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Helloworld {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in); // use the Scanner class to read from stdin
String inputString = scan.nextLine(); // read a li... | jerryasher/hackerrank30 | 0/Helloworld.java | Java | unlicense | 588 |
#include "Mesh.h"
#include "SyntopiaCore/Math/Vector3.h"
#include "../Logging/Logging.h"
using namespace SyntopiaCore::Logging;
using namespace SyntopiaCore::Math;
namespace SyntopiaCore {
namespace GLEngine {
Mesh::Mesh(SyntopiaCore::Math::Vector3f startBase,
SyntopiaCore::Math::Vector3... | mike10004/nbis-upstream | misc/nistmeshlab/meshlab/src/external/structuresynth/ssynth/SyntopiaCore/GLEngine/Mesh.cpp | C++ | unlicense | 4,001 |
package tasks;
import java.util.ArrayList;
import listeners.SuperMapListener;
import mapstuff.CartographersMap;
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.scheduler.BukkitRunnable;
import plugin.SuperMap;
publ... | GarrettCG/SuperMap | src/tasks/ConstantZoneCheck.java | Java | unlicense | 2,587 |
package crazypants.enderio.machine.farm;
import crazypants.enderio.config.Config;
import crazypants.enderio.machine.farm.farmers.*;
import net.minecraft.block.Block;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import cpw.mods.f... | Vexatos/EnderIO | src/main/java/crazypants/enderio/machine/farm/FarmersRegistry.java | Java | unlicense | 6,917 |
package com.ushaqi.zhuishushenqi.model;
import com.ushaqi.zhuishushenqi.api.ApiService;
import java.io.Serializable;
import java.util.Date;
public class UserInfo
implements Serializable
{
private static final long serialVersionUID = 2519451769850149545L;
private String _id;
private String avatar;
private Us... | clilystudio/NetBook | allsrc/com/ushaqi/zhuishushenqi/model/UserInfo.java | Java | unlicense | 3,520 |
#include "GameTextures.h"
#include <iostream>
GameTextures::GameTextures()
{
if (!_image.loadFromFile("assets/DungeonCrawl_ProjectUtumnoTileset.png"))
{
std::cout << "Error loading texture." << std::endl;
}
}
std::shared_ptr<sf::Texture> GameTextures::getTexture(std::string name, int x, int y)
{
std::cou... | UAF-CS372-Spring-2015/the-platformer | src/GameTextures.cpp | C++ | unlicense | 744 |
a = 'a|b|c|d|e'
b = a.split('|', 3)
print(b)
"""<
['a', 'b', 'c', 'd|e']
>"""
| pythonpatterns/patterns | p0081.py | Python | unlicense | 81 |
package Chap05;
/*
* ÀÛ¼ºÀÏÀÚ:2017_03_09
* ÀÛ¼ºÀÚ:±æ°æ¿Ï
* ThreeArrays ÀÌ¿ë
* ¿¹Á¦ 5-43
*/
public class StaticInitalizerExample2 {
public static void main(String[] args){
for(int cnt=0;cnt<10;cnt++){
System.out.println(ThreeArrays.arr3[cnt]);
}
}
}
| WALDOISCOMING/Java_Study | Java_BP/src/Chap05/StaticInitalizerExample2.java | Java | unlicense | 279 |
//==============================================================================
#include <hgeresource.h>
#include <hgefont.h>
#include <hgesprite.h>
#include <sqlite3.h>
#include <Database.h>
#include <Query.h>
#include <score.hpp>
#include <engine.hpp>
//------------------------------------------------... | jasonhutchens/thrust_harder | score.cpp | C++ | unlicense | 9,032 |
/*
* SmartGWT Mobile
* Copyright 2008 and beyond, Isomorphic Software, Inc.
*
* SmartGWT Mobile is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License version 3
* as published by the Free Software Foundation. SmartGWT Mobile is also
* available unde... | will-gilbert/SmartGWT-Mobile | mobile/src/main/java/com/smartgwt/mobile/client/widgets/tab/TabSet.java | Java | unlicense | 42,796 |
/**
*
*/
package com.rhcloud.zugospoint.DAO;
import java.util.List;
import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import com.rhcloud.zugospoint.model.*;
import com.rhcloud.zugospoint.util.HibernateUtil;
/**
* Klasa zawiera zbior niskopoziomowych metod... | zugoth/1314-adb | src/main/java/com/rhcloud/zugospoint/DAO/ApplicationDAO.java | Java | unlicense | 1,320 |
var User = {
title : 'Customer',
LoginTitleText : 'Register yourself'
}
module.exports = User; | thakurarun/Basic-nodejs-express-app | samplenode/samplenode/server/model/User.js | JavaScript | unlicense | 104 |