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 |
|---|---|---|---|---|---|
from planarprocess import *
from gds_helpers import *
from itertools import cycle
xmin, xmax = -5, 5
layers = gds_cross_section('mypmos.gds', [(0,xmin), (0, xmax)], 'gdsmap.map')
['P-Active-Well', 'Active-Cut', 'N-Well', 'Metal-2', 'Metal-1', 'P-Select',
'N-Select', 'Transistor-Poly', 'Via1']
wafer = Wafer(1., 5., 0... | ignamv/PlanarProcess | test.py | Python | gpl-3.0 | 2,927 |
app
.service('LanguageService', function LanguageService(ExchangeService) {
this.translate = (label) => ExchangeService.i18n().__(label);
});
| Kagurame/LuaSB | src/app/ui/services/LanguageService.js | JavaScript | gpl-3.0 | 150 |
package tools.renamers;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;
import tools.EntryPoint;
import tools.Tool;
import tools.utils.EnumerationIterator;
import tools.utils.MappingUtils;
import tools.utils.Utils;
public class AllClassesRenamer imple... | MCCarbon/DecompileTools | src/tools/renamers/AllClassesRenamer.java | Java | gpl-3.0 | 1,654 |
#include "gradientwidget.h"
#include "ui_gradientwidget.h"
GradientWidget::GradientWidget(QWidget *parent) :
AbstractWidget(parent),
ui(new Ui::GradientWidget)
{
ui->setupUi(this);
connect(ui->nextButton,SIGNAL(clicked(bool)),this,SLOT(nextClick(bool)));
hide();
}
GradientWidget::~GradientWidget()... | LuisHsu/HDRI-Project | gradientwidget.cpp | C++ | gpl-3.0 | 746 |
/*
* Copyright 2016 Takashi Inoue
*
* This file is part of EzPuzzles.
*
* EzPuzzles 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 ver... | Takashi-Inoue/EzPuzzles | MineSweeper/WallPiece.cpp | C++ | gpl-3.0 | 1,120 |
<?php
// Text
$_['text_success'] = 'Succes: Ai modificat coșul tău de cumpărături!';
// Error
$_['error_permission'] = 'Atenție: Nu ai permisiunile necesare pentru a accesa API-ul!';
$_['error_stock'] = 'Produsele marcate cu *** nu sunt disponibile în cantitatea dorită sau nu sunt în stoc deloc!';
$_['error_m... | Ozi94/opencart | upload/catalog/language/ro-ro/api/cart.php | PHP | gpl-3.0 | 534 |
#include "camera.h"
#include "../window.h"
D3DXMATRIX Camera::GetViewMatrix()
{
if (recalculateViewMatrix)
updateViewMatrix();
return viewMatrix;
}
D3DXMATRIX Camera::GetProjectionMatrix()
{
if (recalculateProjectionMatrix)
updateProjectionMatrix();
return projectionMatrix;
}
D3DXVECTOR3 C... | XZelnar/Simplex | Graphics/camera.cpp | C++ | gpl-3.0 | 1,019 |
from setuptools import setup, find_packages
setup(
name = "CyprjToMakefile",
version = "0.1",
author = "Simon Marchi",
author_email = "simon.marchi@polymtl.ca",
description = "Generate Makefiles from Cypress cyprj files.",
license = "GPLv3",
url = "https://github.com/simark/cyprj-to-makefil... | simark/cyprj-to-makefile | setup.py | Python | gpl-3.0 | 576 |
package ft.sim.monitoring;
import static ft.sim.monitoring.ViolationSeverity.*;
import static ft.sim.monitoring.ViolationType.*;
import ft.sim.world.train.Train;
import ft.sim.world.connectables.Connectable;
import ft.sim.world.connectables.Section;
import ft.sim.world.connectables.Station;
import ft.sim.world.connec... | sinaa/train-simulator | src/main/java/ft/sim/monitoring/ViolationBuilder.java | Java | gpl-3.0 | 2,596 |
package net.ess3.commands;
import net.ess3.api.IUser;
public class Commandworkbench extends EssentialsCommand
{
@Override
public void run(final IUser user, final String commandLabel, final String[] args) throws Exception
{
user.getPlayer().openWorkbench(null, true);
}
}
| Curtis3321/Essentials | Essentials/src/net/ess3/commands/Commandworkbench.java | Java | gpl-3.0 | 280 |
/**
* Created by ken_kilgore1 on 1/11/2015.
*/
jQuery(document).ready(function ($) {
$("#spouse_info").hide();
$("#spouse_spacer").hide();
$("#family_info").hide();
$("#family_spacer").hide();
$("input:radio[name$='memb_type']").click(function () {
if ($("input[name$='memb_type']:checked... | ctxphc/beach-holiday | includes/js/mp-show-hide-script.js | JavaScript | gpl-3.0 | 1,199 |
// ****************************************************************************
// compiler-llvm.cpp XLR project
// ****************************************************************************
//
// File Description:
//
// The interface between the compiler and LLVM
/... | trustifier/xlr | xlr/compiler-llvm.cpp | C++ | gpl-3.0 | 3,098 |
/**
* Copyright (C) Intersect 2012.
*
* This module contains Proprietary Information of Intersect,
* and should be treated as Confidential.
*/
package au.org.intersect.exsite9.service;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertN... | IntersectAustralia/exsite9 | exsite9/test/au/org/intersect/exsite9/service/SchemaServiceUnitTest.java | Java | gpl-3.0 | 9,680 |
package com.esd.phicomm.bruce.esdapp;
import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
/**
* Created by Bruce on 201... | bruce-wei/EsdApp | app/src/main/java/com/esd/phicomm/bruce/esdapp/Gpio.java | Java | gpl-3.0 | 3,231 |
/**
* @file GeneticAlgorithm.hpp
* @author Renato Oliveira (renatorro@comp.ufla.br)
* @version 1.0
* @since GeneticNet 1.0
* @date 10/07/2012
*/
#ifndef GRUBI_GENETICNET_GENETICALGORITHM_HPP_INCLUDED
#define GRUBI_GENETICNET_GENETICALGORITHM_HPP_INCLUDED
#include <iostream>
#include <cstdlib>
#include <boost/ar... | renatorroliveira/dissertacao | src/GeneticAlgorithm/GeneticAlgorithm.hpp | C++ | gpl-3.0 | 3,334 |
<?php
require_once("../config.php");
$res= new PDO($mysql_server,$mysql_user,$mysql_pass);
require("../../codebase/tree_connector.php");
$tree = new TreeConnector($res, "PDO");
//
$tree->dynamic_loading(true);
$tree->render_table("tasks","taskId","taskName","","parentId");
?> | DHTMLX/connector-php | samples/tree/02_dynamic_loading_connector.php | PHP | gpl-3.0 | 296 |
/*****************************
* advance_settings_menu.cpp *
*****************************/
/****************************************************************************
* Written By Mark Pelletier 2017 - Aleph Objects, Inc. *
* Written By Marcio Teixeira 2018 - Aleph Objects, Inc. ... | KangDroid/Marlin | Marlin/src/lcd/extui/lib/ftdi_eve_touch_ui/screens/advanced_settings_menu.cpp | C++ | gpl-3.0 | 7,646 |
<?php
/*
* This file is part of the 2amigos/yii2-usuario project.
*
* (c) 2amigOS! <http://2amigos.us/>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Da\User\Controller;
use Da\User\Query\ProfileQuery;
use Yii;
use y... | patschwork/meta_grid | meta_grid/vendor/2amigos/yii2-usuario/src/User/Controller/ProfileController.php | PHP | gpl-3.0 | 1,984 |
/*
* Pixel Dungeon
* Copyright (C) 2012-2014 Oleg Dolya
*
* 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.
*
* ... | sloanr333/opd-legacy | src/com/watabou/legacy/items/Stylus.java | Java | gpl-3.0 | 3,298 |
var __v=[
{
"Id": 2329,
"Chapter": 746,
"Name": "nodejs",
"Sort": 0
}
] | zuiwuchang/king-document | data/chapters/746.js | JavaScript | gpl-3.0 | 88 |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Kalender_model extends CI_Model {
public function __construct()
{
}
public function tambah_kalender($data)
{
$this->db->insert('kalender_akademik', $data);
}
public function t... | SisteminformasisekolahMANCibadak/Sistem-informasi-sekolah-menggunakan-framewok-codeigniter-dengan-sub-modul-akademik | aplikasi/SIA_mancib/application/models/Kalender_model.php | PHP | gpl-3.0 | 1,048 |
#!/bin/env python
# -*- coding: utf-8 -*-
PYS_SERVICE_MOD_PRE='pys_' # 模块名称的前缀
PYS_HEAD_LEN=12 # 报文头长度
PYS_MAX_BODY_LEN=10485760 # 最大报文长度
| dungeonsnd/test-code | dev_examples/pyserver/src/util/pys_define.py | Python | gpl-3.0 | 184 |
describe '/ticket/close' do
it 'should close ticket if staff member has the same department as ticket' do
Scripts.logout()
Scripts.createUser('closer@os4.com','closer','Closer')
Scripts.login('closer@os4.com','closer')
Scripts.createTicket('tickettoclose','thecontentoftickettoclose'... | opensupports/opensupports | tests/ticket/close.rb | Ruby | gpl-3.0 | 3,412 |
<?php
require_once('constants.php');
class TeacherConstants extends Constants{
// Teacher possible situations
const PERMANENT_SITUATION = "Permanente";
const COLLABORATOR_SITUATION = "Colaborador";
const SPECIFIC_ORIENTATION_SITUATION = "Orientação Específica";
public function getSituations(){
$situations ... | fillipefeitosa/SiGA | application/constants/TeacherConstants.php | PHP | gpl-3.0 | 568 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package beans;
import dao.EstadoJpaController;
import dao.exceptions.NonexistentEntityException;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.faces.application.Fac... | dnspinheiro/cooperTaxi | src/java/beans/EstadoBean.java | Java | gpl-3.0 | 3,051 |
// AForge Neural Net Library
// AForge.NET framework
// http://www.aforgenet.com/framework/
//
// Copyright © Andrew Kirillov, 2005-2009
// andrew.kirillov@aforgenet.com
//
namespace AForge.Neuro.Learning
{
using System;
/// <summary>
/// Supervised learning interface.
/// </summary>
///
/// ... | unbornchikken/Neuroflow | _vault/NFBak/Neuroflow_vsonline/Neuroflow/Neuroflow/.lib/AForge/Sources/Neuro/Learning/ISupervisedLearning.cs | C# | gpl-3.0 | 1,569 |
/* -*- c++ -*- */
/*
* Copyright 2012 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* GNU Radio 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, or (at your option... | levelrf/level_basestation | gr-qtgui/lib/waterfall_sink_c_impl.cc | C++ | gpl-3.0 | 9,644 |
# -*- coding: utf-8 -*-
import hashlib, time
from django import forms
from django.contrib.auth.models import User, Group
from django.contrib.auth.forms import UserCreationForm, AuthenticationForm
from poetry.models import Poem, Theme
from user.models import Contributor
my_default_errors = {
'required': 'Еңгізуге м... | ra1ski/poetrydb | user/forms.py | Python | gpl-3.0 | 4,469 |
<?php
/**
* AnimeDb package
*
* @package AnimeDb
* @author Peter Gribanov <info@peter-gribanov.ru>
* @copyright Copyright (c) 2011, Peter Gribanov
* @license http://opensource.org/licenses/GPL-3.0 GPL v3
*/
namespace AnimeDb\Bundle\ApiClientBundle\Tests\DependencyInjection;
use AnimeDb\Bundle\ApiClientB... | anime-db/api-client-bundle | tests/DependencyInjection/AnimeDbApiClientExtensionTest.php | PHP | gpl-3.0 | 830 |
function content($slide) {
return $slide.children().first().nextAll();
}
function addReplToSlide($, deck, $slide) {
var endpoint = $[deck]('getOptions').repl.endpoint;
content($slide).wrapAll('<div class="repl-slide-column repl-text-column"></div>');
var replHtmlId = "console-" + $slide[0].id;
$('<div/>', { ... | ptitfred/slidecoding | web/deckjs/extensions/repl/deck.repl.js | JavaScript | gpl-3.0 | 5,193 |
package toncc;
import javax.swing.*;
/** Utility class to run JFrame-based GUI classes.
*
* @author Bruce Eckel, Giacomo Parolini
*/
class SwingConsole {
private static void prepare(final JFrame f) {
f.setTitle(f.getClass().getSimpleName());
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
public stati... | silverweed/toncc | SwingConsole.java | Java | gpl-3.0 | 1,849 |
package controle.gui_jogo;
import controle.configuradores_gui.ConfiguradorVisualizadorDeCartas;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.util.List;
import javax.imageio.IIOImage;
import javax.imageio.ImageIO;
impo... | vandaimer/TrabalhoEs | src/controle/gui_jogo/ObservadorDoControleRemoto.java | Java | gpl-3.0 | 1,791 |
# -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-05-29 13:51
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0054_add_field_user_to_productionform'),
]
operations = [
migration... | efornal/pulmo | app/migrations/0055_applicationform_requires_development.py | Python | gpl-3.0 | 523 |
package bigarrays;
/**
* @author vincent.gardeux@epfl.ch
*
* Class for representing a float static array requiring address space larger than 32 bits.
*/
public class FloatArray64
{
private static final int CHUNK_SIZE = 1024*1024*512;
private long size;
private float[][] data;
public FloatArray64(... | DeplanckeLab/ASAP | Java/src/bigarrays/FloatArray64.java | Java | gpl-3.0 | 2,467 |
namespace UnityEditor
{
using System;
using UnityEngine;
internal class PopupWindowWithoutFocus : EditorWindow
{
private Rect m_ActivatorRect;
private float m_BorderWidth = 1f;
private Vector2 m_LastWantedSize = Vector2.zero;
private PopupLocationHelper.PopupLocation[] ... | randomize/VimConfig | tags/unity5/UnityEditor/PopupWindowWithoutFocus.cs | C# | gpl-3.0 | 5,033 |
<?php
namespace MinSal\SidPla\DepUniBundle\EntityDao;
use MinSal\SidPla\DepUniBundle\Entity\TipoRRHumano;
use Doctrine\ORM\Query\ResultSetMapping;
class TipoRRHumanoDao {
var $doctrine;
var $repositorio;
var $em;
//Este es el constructor
function __construct($doctrine) {
$this->doctrine = $... | bagonzalez/sidpla-minsal | MinSal/SidPla/DepUniBundle/EntityDao/TipoRRHumanoDao.php | PHP | gpl-3.0 | 2,507 |
/* Gnomescroll, Copyright (c) 2013 Symbolic Analytics
* Licensed under GPLv3 */
#pragma once
#include <uuid/uuid.h>
#include <serializer/constants.hpp>
namespace serializer
{
// returns bytes written, excluding NUL
size_t write_uuid(char* str, size_t buffer_size, uuid_t uuid);
} // serializer
| Gnomescroll/Gnomescroll | src/c_lib/serializer/uuid.hpp | C++ | gpl-3.0 | 301 |
namespace GitUI.Properties
{
/// <summary>
/// DESIGNER USAGE INFO!
///
/// This partial class helps to modify the Resources.resx using the designer AND having some custom
/// code inside the designer generated Resources class.
/// The only thing to do whenever the Designer is used is to add th... | glen-nicol/gitextensions | GitUI/Properties/Resources.Custom.cs | C# | gpl-3.0 | 790 |
/*
***************************************************************************
* *
* Platform Independent *
* Bitmap Image Reader Writer Library *
* ... | MrCappuccino/Tracey | src/bitmap_image.hpp | C++ | gpl-3.0 | 207,672 |
/*
* Monomial.hh, part of the RotationShield program
* Copyright (c) 2007-2014 Michael P. Mendenhall
*
* 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
... | mpmendenhall/rotationshield | MathUtils/Monomial.hh | C++ | gpl-3.0 | 8,516 |
vti_encoding:SR|utf8-nl
vti_timelastmodified:TW|21 Aug 2014 19:09:59 -0000
vti_extenderversion:SR|12.0.0.0
vti_author:SR|Office-PC\\Rafael
vti_modifiedby:SR|Office-PC\\Rafael
vti_timecreated:TR|01 Nov 2014 09:09:51 -0000
vti_backlinkinfo:VX|
vti_nexttolasttimemodified:TW|21 Aug 2014 19:09:59 -0000
vti_cacheddtm:TX|03 N... | Vitronic/kaufreund.de | admin/language/de_DE/user/_vti_cnf/user_group.php | PHP | gpl-3.0 | 754 |
<?PHP
/******************************************************************************
* *
* Copyright (c) 1999-2006 Horizon Wimba, All Rights Reserved. *
* ... | junwan6/cdhpoodll | mod/voiceboard/welcome.php | PHP | gpl-3.0 | 5,245 |
#include "message_value.h"
//#include <iostream>
MessageValue::MessageValue() : message_array(NULL), sequence_name(NULL) {}
MessageValue::MessageValue(char type, char* name) : message_type(type) {
sequence_name = name;
length = 1 + strlen(sequence_name) + 1;
if (message_array != NULL) {
delete[] message_array;
... | armenabnousi/minhash_clustering | src/message_value.cpp | C++ | gpl-3.0 | 3,012 |
/*
* Biocep: R-based Platform for Computational e-Science.
*
* Copyright (C) 2007-2009 Karim Chine - karim.chine@m4x.org
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either ve... | rforge/biocep | src_server_common/org/kchine/r/server/GenericCallbackDevice.java | Java | gpl-3.0 | 949 |
// Decompiled with JetBrains decompiler
// Type: Wb.Lpw.Platform.Protocol.LogCodes.Services.Registry.UpdatePersistentRoom.Info
// Assembly: Wb.Lpw.Protocol, Version=2.13.83.0, Culture=neutral, PublicKeyToken=null
// MVID: A621984F-C936-438B-B744-D121BF336087
// Assembly location: C:\Users\CGA Computer\Desktop\LEGO Uni... | mater06/LEGOChimaOnlineReloaded | LoCO Client Files/Decompressed Client/Extracted DLL/Wb.Lpw.Protocol/LogCodes/Services/Registry/UpdatePersistentRoom/Info.cs | C# | gpl-3.0 | 876 |
<?php
/**
* The template for displaying 404.
*
* @package 9Pixels.
*/
get_header();
?>
<div class="wrap">
<div id="custom-page">
<div class="fullwidth-page-title">
<?php
if ( get_theme_mod( 'denta_lite_404_general_title', 'Error' ) ) {
echo '<h3>'. esc_attr( get_theme_mod( 'denta_lite_404_general_title... | Codeinwp/dentatheme-lite | 404.php | PHP | gpl-3.0 | 3,540 |
<?php
/**
Copyright 2012-2017 Nick Korbel
This file is part of Booked Scheduler.
Booked Scheduler 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... | rafaelperazzo/ufca-web | booked/Web/Services/index.php | PHP | gpl-3.0 | 11,284 |
package com.avygeil.GrandVide;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
public class GVDatabaseHelper
{
private final GrandVide gv;
private final String url;
private final Stri... | riking/GrandVide | src/com/avygeil/GrandVide/GVDatabaseHelper.java | Java | gpl-3.0 | 4,268 |
package cf.energizingcoalition.energizingcoalition.proxy;
public class ClientProxy extends CommonProxy
{
@Override
public void registerRenderers()
{
}
}
| energizingcoalition/energizingcoalition | src/main/java/cf/energizingcoalition/energizingcoalition/proxy/ClientProxy.java | Java | gpl-3.0 | 161 |
/* addition.cc
*
* KNOWN BUGS: will fail if entered with a tsp with identical pos_t's.
*
* nearest addition and fathest insertion, with initial convex hull and
* maximal angle selections for euclidean.
*
* orig ceh 12-91
*
* c++ conversion ceh 12-93
* added farthest insertion functionality 9-94
#define PRINTI... | catacopil/memoco-course-project | letteratura/tsp_solve-1.3.6/addition.cc | C++ | gpl-3.0 | 15,119 |
/*
* @Date : Shandagames2018/09/02
* @Author : IceCory (icecory520@gmail.com)
* @Copyright(C): GPL 3.0
*/
#include <iostream>
#include <algorithm>
#include <vector>
#include <map>
#include <tuple>
// 输入三元组(x,y,z)数量n
// 一个值a
// logn 的复杂度内找到所有的三元组(满足 y <= a <= z)并升序输出x
int main(int argc, char *argv[]) {
u... | bitwater1997/ACM | Contest/Ctrip2018/2.cpp | C++ | gpl-3.0 | 1,874 |
import os
import re
import sys
"""
* Perform initial configuration to ensure that the server is set up to work with Burton's format
sudo chown -R ubuntu:ubuntu /var/www
mkdir -p /var/www/default/public_html
mv /var/www/html/index.html /var/www/default/public_html # Ubuntu >=14.04
mv /var/www/index.html... | dotancohen/burton | configure_websites.py | Python | gpl-3.0 | 4,169 |
/*
* WorldEdit, a Minecraft world manipulation toolkit
* Copyright (C) sk89q <http://www.sk89q.com>
* Copyright (C) WorldEdit 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 Sof... | UnlimitedFreedom/UF-WorldEdit | worldedit-core/src/main/java/com/sk89q/worldedit/util/command/InvalidUsageException.java | Java | gpl-3.0 | 3,497 |
from django.conf.urls.defaults import *
urlpatterns = patterns('',
(r'^(\d+)/$', 'onpsx.gallery.views.index'),
(r'^$', 'onpsx.gallery.views.index'),
)
| chrizel/onpsx | src/onpsx/gallery/urls.py | Python | gpl-3.0 | 160 |
# -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import io
import os
import six
import pyte... | ta2-1/pootle | tests/models/store.py | Python | gpl-3.0 | 64,439 |
<?php
namespace MP\Mapper;
use Dibi\Connection;
use MP\Util\Lang\Lang;
use MP\Util\Transaction\DibiTransaction;
/**
* Vychozi databazovy mapper.
*
* @author Martin Odstrcilik <martin.odstrcilik@gmail.com>
*/
class DatabaseMapper implements IMapper
{
/** @var Context */
protected $context;
/** @var C... | Mapybezbarier/mapybezbarier | app/Mapper/DatabaseMapper.php | PHP | gpl-3.0 | 7,587 |
/**
* ByteCart, ByteCart Redux
* Copyright (C) Catageek
* Copyright (C) phroa
*
* 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... | phroa/ByteCartRedux | src/main/java/com/github/catageek/bytecart/sign/BC7019.java | Java | gpl-3.0 | 3,023 |
import {grpc, Code, Metadata} from "grpc-web-client";
import {DummyService} from "../_proto/dummy/dummy_service_pb_service";
import {CreateGameRequest, CreateGameResponse} from "../_proto/dummy/dummy_service_pb";
declare const USE_TLS: boolean;
const host = USE_TLS ? "https://web.ae.28k.ch:9091" : "http://web.ae.28k.c... | eplundberg/crispy-bassoon | src/ts/src/index.ts | TypeScript | gpl-3.0 | 829 |
package com.javarush.test.level07.lesson12.home01;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
/* Вывести числа в обратном порядке
Ввести с клавиатуры 10 чисел и заполнить ими список.
Вывести их в обратном порядке.
Исп... | andrey-gabchak/JavaRushLabs | com/javarush/test/level07/lesson12/home01/Solution.java | Java | gpl-3.0 | 958 |
package com.game.clean;
import org.apache.log4j.Logger;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.concurrent.*;
/**
* Created by wanggq on 2016/11/9.
*/
public class MainUI {
Logger logger = Logger.getLogger(this.get... | wangguanquan/wsjob | src/main/java/cn/colvin/game/MainUI.java | Java | gpl-3.0 | 19,036 |
/*
LEADERS OF AN ARRAY
The task is to find all leaders in an array, where
a leader is an array element which is greater than all the elements
on its right side
*/
import java.util.Scanner;
class Leaders_Of_Array {
public static void main(String args[]) {
int num;
System.out.print... | jainaman224/Algo_Ds_Notes | Leaders_Of_Array/Leaders_Of_Array.java | Java | gpl-3.0 | 1,031 |
package net.minecraft.server;
import org.bukkit.craftbukkit.inventory.CraftItemStack; // CraftBukkit
public class EntityIronGolem extends EntityGolem {
private int e = 0;
Village d = null;
private int f;
private int g;
public EntityIronGolem(World world) {
super(world);
this.text... | Irokue/Craftbukkit-1.3 | src/main/java/net/minecraft/server/EntityIronGolem.java | Java | gpl-3.0 | 5,216 |
/*
* JasperReports - Free Java Reporting Library.
* Copyright (C) 2001 - 2014 TIBCO Software Inc. All rights reserved.
* http://www.jaspersoft.com
*
* Unless you have purchased a commercial license agreement from Jaspersoft,
* the following license terms apply:
*
* This program is part of JasperReports.
*
* J... | aleatorio12/ProVentasConnector | jasperreports-6.2.1-project/jasperreports-6.2.1/src/net/sf/jasperreports/engine/util/XmlNamespace.java | Java | gpl-3.0 | 2,097 |
/**
* TiempoBus - Informacion sobre tiempos de paso de autobuses en Alicante
* Copyright (C) 2012 Alberto Montiel
*
*
* 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... | alberapps/tiempobus | TiempoBus/src/alberapps/java/exception/TiempoBusException.java | Java | gpl-3.0 | 2,003 |
import pilas
import json
from pilas.escena import Base
from general import General
from individual import Individual
class jugadores(Base):
def __init__(self):
Base.__init__(self)
def fondo(self):
pilas.fondos.Fondo("data/img/fondos/aplicacion.jpg")
def general(self):
self.sonido_boton.rep... | gercordero/va_de_vuelta | src/estadisticas.py | Python | gpl-3.0 | 1,023 |
/****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance wit... | frostasm/qt-creator | src/plugins/qmldesigner/designercore/model/internalproperty.cpp | C++ | gpl-3.0 | 4,688 |
// Decompiled with JetBrains decompiler
// Type: System.Net.Cache.MetadataUpdateStream
// Assembly: System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// MVID: 5ABD58FD-DF31-44FD-A492-63F2B47CC9AF
// Assembly location: C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.dll
using System;
using... | mater06/LEGOChimaOnlineReloaded | LoCO Client Files/Decompressed Client/Extracted DLL/System/System/Net/Cache/MetadataUpdateStream.cs | C# | gpl-3.0 | 5,953 |
/*
* Copyright (C) 2017 Jonas Zeiger <jonas.zeiger@talpidae.net>
*
* 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... | lyind/base | src/main/java/net/talpidae/base/client/InsectNameUserAgentRequestFilter.java | Java | gpl-3.0 | 2,100 |
package org.smap.sdal.model;
public class TaskAssignmentPair {
public int taskId;
public int assignmentId;
}
| smap-consulting/smapserver | sdDAL/src/org/smap/sdal/model/TaskAssignmentPair.java | Java | gpl-3.0 | 112 |
<?php
require_once 'users/init.php';
global $errors, $successes, $thisUserID;
require_once 'usersc/includes/general.php';
global $abs_us_root, $us_url_root;
global $PERMISSION, $UPLOADS, $seasonsArray;
require_once $abs_us_root . $us_url_root . 'users/includes/header.php';
// This should be set before including navi... | klaymen/mk.ladder | player_elo.php | PHP | gpl-3.0 | 7,864 |
import logging
logging.basicConfig()
from enum import Enum
logger = logging.getLogger('loopabull')
logger.setLevel(logging.INFO)
class Result(Enum):
runfinished = 1
runerrored = 2
unrouted = 3
error = 4
# vim: set expandtab sw=4 sts=4 ts=4
| maxamillion/loopabull | loopabull/__init__.py | Python | gpl-3.0 | 261 |
<?php
/**
* Students Metabox on admin panel
*
* @package LifterLMS/Templates/Admin
*
* @since 3.0.0
* @version 3.13.0
*/
defined( 'ABSPATH' ) || exit;
if ( ! is_admin() ) {
exit;
}
$table = new LLMS_Table_StudentManagement();
$table->get_results();
?>
<div class="llms-metabox llms-metabox-students">
<?php ... | gocodebox/lifterlms | templates/admin/post-types/students.php | PHP | gpl-3.0 | 1,164 |
/*
* Ipsum is a rapid development API for Minecraft, developer by Relicum
* Copyright (C) 2015. Chris Lutte
*
* 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 Licen... | Relicum/Ipsum | src/main/java/com/relicum/ipsum/Menus/RunCommand.java | Java | gpl-3.0 | 2,079 |
<?php
namespace AppBundle\Services;
use Symfony\Component\HttpFoundation\File\UploadedFile;
class FileUploader
{
private $targetDir;
public function __construct($targetDir)
{
$this->targetDir = $targetDir;
}
public function upload(UploadedFile $file)
{
$file... | Bosswell/FileUploader | FileUploader.php | PHP | gpl-3.0 | 547 |
# Cookbook:: web_server
# Server Spec:: nginx
require 'serverspec'
set :backend, :exec
def nginx_spec(app_name, ips, https, www: false, site_down: true)
if os[:family] == 'ubuntu'
ip_regex = Regexp.escape(ips[os[:release]])
if www
server_name = /^\s+server_name\s+#{ip_regex}\s+www\.#{ip_regex};$/
... | globz-eu/infrastructure | chef-repo/cookbooks/standalone_app_server/test/integration/helpers/serverspec/nginx.rb | Ruby | gpl-3.0 | 11,500 |
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.ModLoader;
using Terraria.ObjectData;
namespace DrakSolz.Tiles {
public class CorruptBanner : ModTile {
public override void SetDefaults() {
Main.tileFrameImportant[Type] = true;
Ma... | Xahlicem/DrakSolz | Tiles/CorruptBanner.cs | C# | gpl-3.0 | 3,563 |
class FrameTime
def initialize(&blk)
@t_blk = blk
@last_time = @t_blk.call
end
def dt
current_time = @t_blk.call
delta_time = current_time - @last_time
@last_time = current_time
return delta_time
end
end
| jvranish/shape-loader | frame_time.rb | Ruby | gpl-3.0 | 241 |
/*
* 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.
*
* Written (W) 2013 Shell Hu
* Copyright (C) 2013 Shell Hu
*... | cfjhallgren/shogun | src/shogun/structure/FactorGraphModel.cpp | C++ | gpl-3.0 | 12,485 |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package tcc.curriculo;
import java.net.URL;
import java.sql.SQLException;
import java.text.ParseException;
import java.text.SimpleDat... | RenanVictor/Projeto-TCC | src/tcc/curriculo/CursandoFXMLController.java | Java | gpl-3.0 | 2,957 |
package vshevel.goit.module3.task3;
public class Trumpet extends MusicalInstrument {
@Override
public void howDoesThisSound() {
System.out.println("It's sound not like Piano or Guitar");
}
}
| VladimirShevel/GoItOnline | vshevel/goit/module3/task3/Trumpet.java | Java | gpl-3.0 | 213 |
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license an... | MailCleaner/MailCleaner | www/framework/Zend/Service/DeveloperGarden/Response/IpLocation/LocateIPResponse.php | PHP | gpl-3.0 | 3,227 |
package Game.generation;
import Game.base.BlockBase;
import Game.base.World;
/**
*
* @author maximumtech
*/
public class StructureGenTree extends StructureGenBase {
public StructureGenTree(World world) {
super(world);
}
public void generate(int x, int y) {
int height = 13 + rand.nextI... | maximumtech/Game | Game/src/Game/generation/StructureGenTree.java | Java | gpl-3.0 | 2,033 |
namespace Mervalito.Membership {
export interface LoginRequest extends Serenity.ServiceRequest {
Username?: string;
Password?: string;
}
}
| ldvalido/Mervalito | Mervalito/Mervalito.Web/Imports/ServerTypings/Membership.LoginRequest.ts | TypeScript | gpl-3.0 | 167 |
package edu.wayne.ograph.analysis;
import java.util.Collections;
import java.util.HashSet;
import java.util.Hashtable;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.eclipse.jdt.core.dom.ASTNode;
import org.eclipse.jdt.core.dom.ArrayAccess;
import org.eclipse.jdt.core.dom.IMe... | aroog/code | PointsToOOG/src/edu/wayne/ograph/analysis/ValueFlowTransferFunctions.java | Java | gpl-3.0 | 16,047 |
// Decompiled with JetBrains decompiler
// Type: System.Security.Policy.IMembershipCondition
// Assembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// MVID: 255ABCDF-D9D6-4E3D-BAD4-F74D4CE3D7A8
// Assembly location: C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll
using Sys... | mater06/LEGOChimaOnlineReloaded | LoCO Client Files/Decompressed Client/Extracted DLL/mscorlib/System/Security/Policy/IMembershipCondition.cs | C# | gpl-3.0 | 2,054 |
/**
*
* @author xedushx
*/
$(document).bind("touchmove", function (event) {
event.preventDefault();
});
/*
* Función que permite bloquear la pantalla mientras esta procesando
*/
$(function () {
$(document).ajaxStart($.blockUI).ajaxStop($.unblockUI);
});
/*
* Función que bloquea la tecla F5 y Enter de ... | xedushx/erpxprime | erpxprime/web/resources/sistema/sistema.js | JavaScript | gpl-3.0 | 3,385 |
// CodeMirror2 mode/perl/perl.js (text/x-perl) beta 0.10 (2011-11-08)
// This is a part of CodeMirror from https://github.com/sabaca/CodeMirror_mode_perl (mail@sabaca.com)
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (ty... | soliton4/promiseLand-website | src/codemirror4/mode/perl/perl.js | JavaScript | gpl-3.0 | 56,018 |
// Decompiled with JetBrains decompiler
// Type: System.Threading.TimerQueue
// Assembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// MVID: 255ABCDF-D9D6-4E3D-BAD4-F74D4CE3D7A8
// Assembly location: C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll
using Microsoft.Win32;
us... | mater06/LEGOChimaOnlineReloaded | LoCO Client Files/Decompressed Client/Extracted DLL/mscorlib/System/Threading/TimerQueue.cs | C# | gpl-3.0 | 7,413 |
<?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 ... | lernlink/iomad-ll | local/report_user_license_allocations/lib.php | PHP | gpl-3.0 | 17,341 |
// T4 code generation is enabled for model 'D:\PRV\GitHub\WhoLends\WhoLends\WhoLends.Data\WLModel.edmx'.
// To enable legacy code generation, change the value of the 'Code Generation Strategy' designer
// property to 'Legacy ObjectContext'. This property is available in the Properties Window when the model
// is open... | mbarmettler/WhoLends | WhoLends/WhoLends.Data/WLModel.Designer.cs | C# | gpl-3.0 | 765 |
/**
* Standalone Window.
*
* A window in standalone display mode.
*/
/**
* Standalone Window Constructor.
*
* @extends BaseWindow.
* @param {number} id Window ID to give standalone window.
* @param {string} url URL to navigate to.
* @param {Object} webApp WebApp with metadata to generate window from.
*/
var... | webianproject/shell | chrome/desktop/js/StandaloneWindow.js | JavaScript | gpl-3.0 | 3,719 |
package com.fxs.platform.web.controller;
import java.util.List;
import com.fxs.platform.security.core.support.ResponseMessage;
import com.fxs.platform.security.core.support.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframewo... | charlesyao/FXS-Platform | fxs-platform-web/src/main/java/com/fxs/platform/web/controller/DisputeInfoController.java | Java | gpl-3.0 | 8,398 |
#include <iostream>
#include <string>
#include <algorithm>
#include <fstream>
#define IN cin
using namespace std;
//bool sort_logic(int i, int j);
//void pr(int data[], int length);
// EOF Termination
int main(){
int __initial_input, max_index, rear;
int register i;
//ifstream input;
//input.open("input.tx... | aihimel/contestprogramming | Dhaka SIte Regional/2013/(solved)12709(Falling Ants)/12709(Falling_Ants).cpp | C++ | gpl-3.0 | 2,070 |
/*
* PropertySaver.java
*
* Created on October 9, 2007, 3:13 PM
*
* Trieda, ktoru nainicializuje objekt PropertyReader, pri starte programu
* WebAnalyzer. Tento objekt bude jedinacik a bude poskytovat vlastnosti, ktore
* potrebuju jednotlive moduly WebAnalyzatoru.
*
*/
package org.apache.analyzer.config;
/**... | WebArchivCZ/webanalyzer | src/org/apache/analyzer/config/PropertySaver.java | Java | gpl-3.0 | 1,116 |
/*
* Copyright (C) 2020 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... | Deletescape-Media/Lawnchair | quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/touchcontrollers/NoButtonNavbarToOverviewTouchController.java | Java | gpl-3.0 | 10,748 |
/*
* _____ _ _ _____ _
* | __ \| | | | / ____| | |
* | |__) | | ___ | |_| (___ __ _ _ _ __ _ _ __ ___ __| |
* | ___/| |/ _ \| __|\___ \ / _` | | | |/ _` | '__/ _ \/ _` |
* | | | | (_) | |_ ____) | (_| | ... | IntellectualCrafters/PlotSquared | Core/src/main/java/com/plotsquared/core/queue/LightingMode.java | Java | gpl-3.0 | 1,929 |
using System.Runtime.Serialization;
namespace CastReporting.Domain
{
/// <summary>
///
/// </summary>
[DataContract(Name = "remedialAction")]
public class RemedialAction
{
[DataMember(Name = "status")]
public string Status { get; set; }
[DataMember(Name = "priority")]... | CAST-projects/ReportGenerator | CastReporting.Domain/DataObject/RemedialAction.cs | C# | gpl-3.0 | 555 |
/*
* emucpu -- Emulates processors
* Copyright (C) 2009 Joseph Freeman (jfree143dev AT gmail DOT 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, o... | sundrythoughts/EmuCpu | src/Immediate.hh | C++ | gpl-3.0 | 5,180 |
/*
* Copyright 2010, 2011, 2012 mapsforge.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) any later version.
*
* This pro... | opensciencemap/VectorTileMap | map-writer-osmosis/src/main/java/org/mapsforge/map/writer/model/TDNode.java | Java | gpl-3.0 | 6,372 |
#include "../Resource/ResourceManager.h"
#include "../Resource/Handle/DLHandle.h"
#include "../Resource/Handle/DAHandle.h"
#include "../Err/FlashToolErrorCodeDef.h"
#include "../Conn/Connection.h"
#include "../Err/Exception.h"
#include "../Logger/Log.h"
#include "EfuseCommand.h"
#include "../Utility/IniItem.h"
#define... | eret1k/SP-Flash-Tool-src | Cmd/EfuseCommand.cpp | C++ | gpl-3.0 | 19,960 |