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 |
|---|---|---|---|---|---|
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
\\... | OpenFOAM/OpenFOAM-dev | src/finiteVolume/finiteVolume/ddtSchemes/localEulerDdtScheme/localEulerDdtScheme.C | C++ | gpl-3.0 | 15,508 |
package org.emdev.ui.uimanager;
import android.annotation.TargetApi;
import android.app.Activity;
import android.app.ActivityManager;
import android.app.ActivityManager.RunningServiceInfo;
import android.content.ComponentName;
import android.content.Context;
import android.view.View;
import android.view.Window;
impor... | bonisamber/bookreader | Application/src/main/java/org/emdev/ui/uimanager/UIManager3x.java | Java | gpl-3.0 | 8,692 |
/**
Copyright 2012 John Cummens (aka Shadowmage, Shadowmage4513)
This software is distributed under the terms of the GNU General Public License.
Please see COPYING for precise license information.
This file is part of Ancient Warfare.
Ancient Warfare is free software: you can redistribute it and... | shadowmage45/AncientWarfare | AncientWarfare/src/shadowmage/ancient_warfare/common/vehicles/types/VehicleTypeBoatBallista.java | Java | gpl-3.0 | 6,768 |
<?php
$element = $variables['element'];
// Special handling for form elements.
if (isset($element['#array_parents'])) {
// Assign an html ID.
if (!isset($element['#attributes']['id'])) {
$element['#attributes']['id'] = $element['#id'];
}
// Add the 'form-wrapper' class.
$element['#attributes']['c... | sistemi-territoriali/StatPortalOpenData | sp-odata/sites/all/modules/spodata/metadata/theme/metadata_tree_filter.tpl.php | PHP | gpl-3.0 | 462 |
#pragma strict
var playerFinalScore: int;
var Users: List.< GameObject >;
var userData: GameObject[];
var maxPlayers: int;
var gameManager: GameObject;
var currentPlayer: int;
var currentName: String;
function Awake () {
//var users :GameObject = GameObject.Find("_UserControllerFB");
userData = GameObject.FindGameObje... | RomanKorchmenko/BowlingFX | BowlingFX/Assets/ScoreTransfer.js | JavaScript | gpl-3.0 | 1,210 |
package com.andyadc.concurrency.latch;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.concurrent.*;
/**
* @author andaicheng
* @version 2017/3/10
*/
public class LatchDemo_1 {
public static void main(String[] args) throws Exception {
int num = ... | andyadc/java-study | concurrency-study/src/main/java/com/andyadc/concurrency/latch/LatchDemo_1.java | Java | gpl-3.0 | 1,769 |
package com.infamous.performance.activities;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.SystemClock;
import android.preference.PreferenceManager;
import android.view.View;
import android.... | InfamousProductions/Infamous_Performance | src/com/infamous/performance/activities/checkSU.java | Java | gpl-3.0 | 3,396 |
/*
* Copyright (C) 2011 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... | s20121035/rk3288_android5.1_repo | libcore/luni/src/main/native/libcore_io_Posix.cpp | C++ | gpl-3.0 | 68,241 |
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
package MJDecompiler;
import java.io.IOException;
// Referenced classes of package MJDecompiler:
// bm, bf, bh, bj,
// bc
final class as extends CpField
{
as(ClazzInputStream bc, ClassFile bj1)
... | ghostgzt/STX | src/MJDecompiler/as.java | Java | gpl-3.0 | 839 |
package com.zalthrion.zylroth.handler;
import net.minecraft.client.settings.KeyBinding;
import org.lwjgl.input.Keyboard;
import cpw.mods.fml.client.registry.ClientRegistry;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
public class KeyHandler {
@SideOnly(Side.CLIENT) public static K... | Zalthrion/Zyl-Roth | src/main/java/com/zalthrion/zylroth/handler/KeyHandler.java | Java | gpl-3.0 | 533 |
/*
* Copyright (c) 2014 Ian Bondoc
*
* This file is part of Jen8583
*
* Jen8583 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... | chiknrice/jen8583 | src/main/java/org/chiknrice/iso/codec/Codec.java | Java | gpl-3.0 | 2,477 |
#!/usr/bin/env python
#
# Copyright 2011 Facebook
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | mountainpenguin/BySH | server/lib/tornado/netutil.py | Python | gpl-3.0 | 15,081 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MiniQuick.Events
{
public class BaseEvent : IEvent
{
private int _MaxRetryCount = 3;
private TimeSpan _timeinterval = TimeSpan.FromMilliseconds(1000);
public s... | fzf003/MiniQuick | MiniQuick/Events/BaseEvent.cs | C# | gpl-3.0 | 606 |
/************************************************************************
Copyright 2008 Mark Pictor
This file is part of RS274NGC.
RS274NGC 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,... | charlie-x/rs274ngc | rs274ngc/driver.cpp | C++ | gpl-3.0 | 21,770 |
/* ***************************************************************************
* This file is part of SharpNEAT - Evolution of Neural Networks.
*
* Copyright 2004-2006, 2009-2010 Colin Green (sharpneat@gmail.com)
*
* SharpNEAT is free software: you can redistribute it and/or modify
* it under the terms of the GN... | BLueders/ENTM_CSharpPort | src/SharpNeatLib/Network/ActivationFunctions/RadialBasis/RbfGaussian.cs | C# | gpl-3.0 | 5,987 |
////////////////////////////////////////////////////////
//
// GEM - Graphics Environment for Multimedia
//
// Implementation file
//
// Copyright (c) 2002-2011 IOhannes m zmölnig. forum::für::umläute. IEM. zmoelnig@iem.at
// zmoelnig@iem.kug.ac.at
// For information on usage and redistribution, and for a DISCLAIMER
/... | rvega/morphasynth | vendors/pd-extended-0.43.4/externals/Gem/src/openGL/GEMglTexParameteri.cpp | C++ | gpl-3.0 | 3,043 |
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.Migrations;
using System.Linq;
using System.Linq.Expressions;
namespace BusinessLogic.Repositories
{
public class Repository<T> : IRepository<T> where T : class
{
private readonly DbContext _context;
private reado... | dsilva609/Project-Cinderella | BusinessLogic/Repositories/Repository.cs | C# | gpl-3.0 | 1,282 |
// pythonFlu - Python wrapping for OpenFOAM C++ API
// Copyright (C) 2010- Alexey Petrov
// Copyright (C) 2009-2010 Pebble Bed Modular Reactor (Pty) Limited (PBMR)
//
// 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
//... | ivan7farre/PyFreeFOAM | Foam/src/OpenFOAM/fields/GeometricFields/no_tmp_typemap_GeometricFields.hpp | C++ | gpl-3.0 | 6,243 |
namespace Tsu.Voltmeters.Appa
{
partial class Multimeter109NControl
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components;
/// <summary>
/// Clean up any resources being used.
/// </... | romul/Measurement-Studio | APPA_Multimeter/Multimeter109nControl.Designer.cs | C# | gpl-3.0 | 1,142 |
package ru.trolsoft.utils.files;
import ru.trolsoft.utils.StrUtils;
import java.io.*;
import java.util.Random;
/**
* Created on 07/02/17.
*/
public class IntelHexWriter {
private final Writer writer;
/**
*
*/
private int segmentAddress = 0;
public IntelHexWriter(Writer writer) {
... | trol73/avr-bootloader | software/java/src/ru/trolsoft/utils/files/IntelHexWriter.java | Java | gpl-3.0 | 3,697 |
<?php
/**
* @package omeka
* @subpackage solr-search
* @copyright 2012 Rector and Board of Visitors, University of Virginia
* @license http://www.apache.org/licenses/LICENSE-2.0.html
*/
class SolrSearch_AdminController
extends Omeka_Controller_AbstractActionController
{
/**
* Display t... | moobee/omeka-newspaper-reader | SolrSearch/controllers/AdminController.php | PHP | gpl-3.0 | 6,232 |
import re
import traceback
from urllib.parse import quote
from requests.utils import dict_from_cookiejar
from sickchill import logger
from sickchill.helper.common import convert_size, try_int
from sickchill.oldbeard import tvcache
from sickchill.oldbeard.bs4_parser import BS4Parser
from sickchill.providers.torrent.To... | h3llrais3r/SickRage | sickchill/oldbeard/providers/pretome.py | Python | gpl-3.0 | 5,958 |
/*
* Copyright (c) 2010 The University of Reading
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this li... | nansencenter/GreenSeasADC-portlet | docroot/WEB-INF/src/uk/ac/rdg/resc/edal/coverage/domain/Domain.java | Java | gpl-3.0 | 3,145 |
/*****************************************************************
* This file is part of Managing Agricultural Research for Learning &
* Outcomes Platform (MARLO).
* MARLO 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... | CCAFS/MARLO | marlo-data/src/main/java/org/cgiar/ccafs/marlo/data/manager/impl/ReportSynthesisGovernanceManagerImpl.java | Java | gpl-3.0 | 2,612 |
/*jshint expr:true */
describe("Services: Core System Messages", function() {
beforeEach(module("risevision.core.systemmessages"));
beforeEach(module(function ($provide) {
//stub services
$provide.service("$q", function() {return Q;});
$provide.value("userState", {
isRiseVisionUser: function ()... | Rise-Vision/ng-core-api-client | test/unit/svc-system-messages-spec.js | JavaScript | gpl-3.0 | 499 |
// Copyright ©2015 The gonum Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package gonum
import (
"gonum.org/v1/gonum/blas"
"gonum.org/v1/gonum/lapack"
)
// Dlasr applies a sequence of plane rotations to the m×n matrix A. This ... | pts-eduardoacuna/pachy-learning | vendor/gonum.org/v1/gonum/lapack/gonum/dlasr.go | GO | gpl-3.0 | 6,827 |
# -*- encoding: UTF-8 -*-
import re
import sys
import os
import traceback
from ..ibdawg import IBDAWG
from ..echo import echo
from . import gc_options
__all__ = [ "lang", "locales", "pkg", "name", "version", "author", \
"load", "parse", "getDictionary", \
"setOptions", "getOptions", "getOpti... | SamuelLongchamps/grammalecte | gc_core/py/gc_engine.py | Python | gpl-3.0 | 17,150 |
package com.entrepidea.jvm;
import java.util.ArrayList;
import java.util.List;
/**
* @Desc:
* @Source: 深入理解Java虚拟机:JVM高级特性与最佳实践(第2版)
* Created by jonat on 10/18/2019.
* TODO need revisit - the code seem just running - supposedly it should end soon with exceptions.
*/
public class RuntimeConstantPoolOOM {
... | entrepidea/projects | java/java.core/src/main/java/com/entrepidea/jvm/RuntimeConstantPoolOOM.java | Java | gpl-3.0 | 551 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.Linq;
using LobbyClient;
using PlasmaShared;
using ZkData;
namespace ZeroKWeb.SpringieInterface
{
public class StartSetup
{
static bool listOnlyThatLevelsModules = false; //... | TurBoss/Zero-K-Infrastructure | Zero-K.info/SpringieInterface/StartSetup.cs | C# | gpl-3.0 | 16,808 |
package com.kimkha.finanvita.ui;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.os.Bundle;
import android.support.v4.app.LoaderManager;
import android.support.v4.content.Loader;
import android.util.SparseBooleanArray;
import an... | kimkha/Finanvita | Finanvita/src/main/java/com/kimkha/finanvita/ui/ItemListFragment.java | Java | gpl-3.0 | 11,290 |
// XDwgDirectReader.cpp: implementation of the XDwgDirectReader class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "atlbase.h"
#include "XDwgDirectReader.h"
#include "db.h"
#include "... | hy1314200/HyDM | DataExchange/DwgConvert/XDwgDirectReader.cpp | C++ | gpl-3.0 | 132,005 |
# Copyright 2019 Virgil Dupras
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-3.0.html
import datetime
from collections import defaultdict
from core.util import ... | hsoft/moneyguru | core/gui/import_window.py | Python | gpl-3.0 | 15,326 |
/*
* Copyright (C) 2006 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... | s20121035/rk3288_android5.1_repo | frameworks/base/core/java/android/content/ContextWrapper.java | Java | gpl-3.0 | 20,584 |
// Copyright (c) François Paradis
// This file is part of Mox, a card game simulator.
//
// Mox 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, version 3 of the License.
//
// Mox is distributed in... | fparadis2/mox | Source/Mox.Engine/Project/Source/Database/CardFactory/Library/ZoneChangeTriggeredAbility.cs | C# | gpl-3.0 | 3,243 |
package com.thomasjensen.checkstyle.addons.checks;
/*
* Checkstyle-Addons - Additional Checkstyle checks
* Copyright (c) 2015-2020, the Checkstyle Addons contributors
*
* This program is free software: you can redistribute it and/or modify it under the
* terms of the GNU General Public License, version 3, as publi... | checkstyle-addons/checkstyle-addons | src/main/java/com/thomasjensen/checkstyle/addons/checks/BinaryName.java | Java | gpl-3.0 | 4,699 |
#include "Board.h"
#include <iostream>
using namespace std;
void Board::enumExts( )
{
if(ptester->hasUnboundedHorizAttacks())
{
for( int i = 1; i <= nrows; i++ )
if( PiecesInRow[i] > 1 )
{
cout << 0 << endl;
return;
}
}
_enumExts();
}
void Board::_enumExts( )
{
Place P(1,1);
if... | chaikens/MathResearchPrograms | Queens/Ver2/Board.cpp | C++ | gpl-3.0 | 2,775 |
/*
* $Id: LeftJoin.java,v 1.2 2006/04/09 12:13:12 laddi Exp $
* Created on 5.10.2004
*
* Copyright (C) 2004 Idega Software hf. All Rights Reserved.
*
* This software is the proprietary information of Idega hf.
* Use is subject to license terms.
*/
package com.idega.data.query;
import java.util.HashSet;
import ... | idega/com.idega.core | src/java/com/idega/data/query/LeftJoin.java | Java | gpl-3.0 | 1,467 |
package it.emarolab.owloop.descriptor.utility.classDescriptor;
import it.emarolab.amor.owlInterface.OWLReferences;
import it.emarolab.owloop.descriptor.construction.descriptorEntitySet.Individuals;
import it.emarolab.owloop.descriptor.construction.descriptorExpression.ClassExpression;
import it.emarolab.owloop.descrip... | EmaroLab/owloop | src/main/java/it/emarolab/owloop/descriptor/utility/classDescriptor/InstanceClassDesc.java | Java | gpl-3.0 | 4,115 |
// -*- Mode: Go; indent-tabs-mode: t -*-
/*
* Copyright (C) 2016 Canonical Ltd
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope tha... | kenvandine/snapd | store/export_test.go | GO | gpl-3.0 | 4,569 |
using System;
using System.Threading;
using System.Windows.Input;
namespace WpfAsyncPack.Internal
{
internal sealed class CancelAsyncCommand : ICommand
{
private CancellationTokenSource _cancellationTokenSource = new CancellationTokenSource();
private bool _isCommandExecuting;
public ... | kirmir/WpfAsyncPack | WpfAsyncPack/Internal/CancelAsyncCommand.cs | C# | gpl-3.0 | 1,497 |
<?php
/**
* The file that defines the core plugin class
*
* A class definition that includes attributes and functions used across both the
* public-facing side of the site and the admin area.
*
* @link http://stephanetauziede.com
* @since 1.0.0
*
* @package Wp_Startup_Press_Room
* @subpackage W... | stauziede/WP-Startup-Press-Room | includes/class-wp-startup-press-room.php | PHP | gpl-3.0 | 6,889 |
package com.example.habitup.View;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Color;
import android.support.v4.content.ContextCompat;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.wi... | CMPUT301F17T29/HabitUp | app/src/main/java/com/example/habitup/View/HabitListAdapter.java | Java | gpl-3.0 | 2,677 |
#!/usr/bin/env python
# coding=utf-8
"""30. Digit fifth powers
https://projecteuler.net/problem=30
Surprisingly there are only three numbers that can be written as the sum of
fourth powers of their digits:
> 1634 = 14 \+ 64 \+ 34 \+ 44
> 8208 = 84 \+ 24 \+ 04 \+ 84
> 9474 = 94 \+ 44 \+ 74 \+ 44
As 1 = 14 is n... | openqt/algorithms | projecteuler/pe030-digit-fifth-powers.py | Python | gpl-3.0 | 507 |
/*
Copyright © 2007, 2008, 2009, 2010, 2011 Vladimír Vondruš <mosra@centrum.cz>
This file is part of Kompas.
Kompas is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License version 3
only, as published by the Free Software Foundation.
... | mosra/kompas-plugins | src/FilesystemCache/FilesystemCache.cpp | C++ | gpl-3.0 | 13,964 |
package org.elsys.InternetProgramming;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.net.Socket;
public class ServerHandler {
private Socket socket;
public ServerHandler(... | edudev/internet_programming | Homework2/workspace/DateFormatterClient/src/org/elsys/InternetProgramming/ServerHandler.java | Java | gpl-3.0 | 1,328 |
import sys, math
from test import goertzel
import wave
import pyaudio
import Queue
import numpy as np
if len(sys.argv) < 2:
print "Usage: %s <filename> " % sys.argv[0]
sys.exit(1)
filename = sys.argv[1]
w = wave.open(filename)
fs = w.getframerate()
width = w.getsampwidth()
chunkDuration = .2 #.2 second chunks... | jloloew/AirBridge | parse.py | Python | gpl-3.0 | 3,509 |
// Decompiled with JetBrains decompiler
// Type: StartupSceneAnimDriver
// Assembly: Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 19851F1B-4780-4223-BA01-2C20F2CD781E
// Assembly location: C:\Users\CGA Computer\Desktop\LEGO Universe Stuff\LOCO Server\Unity Web Player Extractor\Saved ... | mater06/LEGOChimaOnlineReloaded | LoCO Client Files/Decompressed Client/Extracted DLL/Assembly-CSharp/StartupSceneAnimDriver.cs | C# | gpl-3.0 | 859 |
using System;
using System.Collections.Generic;
using System.Linq;
using Minedrink_UWP.View;
using Windows.ApplicationModel;
using Windows.Foundation;
using Windows.UI.Core;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Automation;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Navig... | SongOfSaya/Minedrink | Minedrink_UWP/Minedrink_UWP/MainPage.xaml.cs | C# | gpl-3.0 | 21,385 |
//===--- SemaExprCXX.cpp - Semantic Analysis for Expressions --------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | chriskmanx/qmole | QMOLEDEV/llvm-2.8/tools/clang-2.8/lib/Sema/SemaExprCXX.cpp | C++ | gpl-3.0 | 124,344 |
/*
* 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/virtualization/FloatSerializer.java | Java | gpl-3.0 | 1,687 |
<?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... | culturagovbr/portal-vale-cultura | projeto/library/Zend/Controller/Action/Helper/FlashMessengerType.php | PHP | gpl-3.0 | 6,914 |
<?php
/*
##########################################################################
# #
# Version 4 / / / #
# -----------__---/__---__------__----__---/---/- #
# ... | webSPELL/webSPELL | languages/nl/news.php | PHP | gpl-3.0 | 3,801 |
package com.ouser.module;
import java.util.HashMap;
import java.util.Map;
import com.ouser.util.StringUtil;
import android.os.Bundle;
/**
* 照片
* @author hanlixin
*
*/
public class Photo {
public enum Size {
Small(80, 0), /** 小列表,菜单 */
Normal(100, 1), /** profile */
Large(134, 2), /**... | tassadar2002/ouser | src/com/ouser/module/Photo.java | Java | gpl-3.0 | 3,179 |
package bdv.server;
import bdv.db.UserController;
import bdv.model.DataSet;
import bdv.util.Render;
import org.eclipse.jetty.server.Handler;
import org.eclipse.jetty.server.Request;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.handler.ContextHandlerCollection;
import org.eclipse.jetty.util.l... | hkmoon/bigdataviewer-server | src/main/java/bdv/server/UserPageHandler.java | Java | gpl-3.0 | 13,172 |
/*
* Copyright 2006, 2007 Alessandro Chiari.
*
* This file is part of BrewPlus.
*
* BrewPlus is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option)... | rekhyt75/BrewPlus-IFDB | brewplus/brewplus-ifdb/src/main/java/jmash/YeastType.java | Java | gpl-3.0 | 4,355 |
/*
* Copyright 2016 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "cros_gralloc_helpers.h"
#include <cstdlib>
#include <cutils/log.h>
#include <fcntl.h>
#include <xf86drm.h>
uint64_t cros_gralloc_con... | geminy/aidear | oss/qt/qt-everywhere-opensource-src-5.9.0/qtwebengine/src/3rdparty/chromium/third_party/minigbm/src/cros_gralloc/cros_gralloc_helpers.cc | C++ | gpl-3.0 | 4,210 |
// Copyright 2015, 2016 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity 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... | jesuscript/parity | js/src/views/Signer/components/TransactionPending/transactionPending.js | JavaScript | gpl-3.0 | 4,499 |
from controllers.job_ctrl import JobController
from models.job_model import JobModel
from views.job_view import JobView
class MainController(object):
def __init__(self, main_model):
self.main_view = None
self.main_model = main_model
self.main_model.begin_job_fetch.connect(self.on_begin_jo... | redline-forensics/auto-dm | controllers/main_ctrl.py | Python | gpl-3.0 | 2,757 |
<?php
namespace ModulusAcl\Form;
use ModulusForm\Form\FormDefault,
Zend\Form\Element\Select;
class Route extends FormDefault
{
public function addElements()
{
$this->add(array(
'name' => 'id',
'options' => array(
'label' => '',
),
... | ZF2-Modulus/ModulusAcl | src/ModulusAcl/Form/Route.php | PHP | gpl-3.0 | 2,291 |
package edu.stanford.nlp.mt.lm;
import java.util.concurrent.atomic.AtomicReference;
import java.util.concurrent.locks.ReentrantLock;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import edu.stanford.nlp.mt.util.IString;
import edu.stanford.nlp.mt.util.Sequence;
import edu.stanfo... | Andy-Peng/phrasal | src/edu/stanford/nlp/mt/lm/KenLanguageModel.java | Java | gpl-3.0 | 6,706 |
// Decompiled with JetBrains decompiler
// Type: System.Xml.Linq.BaseUriAnnotation
// Assembly: System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// MVID: D3650A80-743D-4EFB-8926-AE790E9DB30F
// Assembly location: C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\Sys... | mater06/LEGOChimaOnlineReloaded | LoCO Client Files/Decompressed Client/Extracted DLL/System.Xml.Linq/System/Xml/Linq/BaseUriAnnotation.cs | C# | gpl-3.0 | 530 |
#!/usr/bin/python
#
# Problem: Making Chess Boards
# Language: Python
# Author: KirarinSnow
# Usage: python thisfile.py <input.in >output.out
from heapq import *
def process(r1, r2, c1, c2):
for i in range(r1, r2):
for j in range(c1, c2):
if 0 <= i < m and 0 <= j < n:
if g[i]... | KirarinSnow/Google-Code-Jam | Round 1C 2010/C.py | Python | gpl-3.0 | 1,627 |
// Decompiled with JetBrains decompiler
// Type: System.Boolean
// 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 System.Runtime.InteropServices;
... | mater06/LEGOChimaOnlineReloaded | LoCO Client Files/Decompressed Client/Extracted DLL/mscorlib/System/Boolean.cs | C# | gpl-3.0 | 11,794 |
/*
* Copyright (c) 2010-2012 Matthias Klass, Johannes Leimer,
* Rico Lieback, Sebastian Gabriel, Lothar Gesslein,
* Alexander Rampp, Kai Weidner
*
* This file is part of the Physalix Enrollment System
*
* Foobar is free software: you can redistribute it and/or modify
* it under the t... | physalix-enrollment/physalix | UserGui/src/main/java/hsa/awp/usergui/EventDetailPanel.java | Java | gpl-3.0 | 6,335 |
// Copyright (C) 2015 xaizek <xaizek@posteo.net>
//
// This file is part of dit.
//
// dit is free software: you can redistribute it and/or modify
// it under the terms of version 3 of the GNU Affero General Public
// License as published by the Free Software Foundation.
//
// dit is distributed in the hope that it wil... | xaizek/dit | src/cmds/CompleteCmd.cpp | C++ | gpl-3.0 | 1,964 |
namespace DemoWinForm
{
partial class frmMapFinder
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
... | anonymouskeyboard47/Tripodmaps | ShapeFileTools/frmMapFinder.Designer.cs | C# | gpl-3.0 | 38,884 |
/*
* Copyright (C) 2011 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... | s20121035/rk3288_android5.1_repo | packages/apps/Dialer/src/com/android/dialer/calllog/CallLogListItemHelper.java | Java | gpl-3.0 | 10,890 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ENetSharp
{
public class ENetList
{
public List<object> data = new List<object>();
internal int position;
}
public static class ENetListHelper
{
//... | eddy5641/ENetSharp | ENetSharp/ENetSharp/List.cs | C# | gpl-3.0 | 3,725 |
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <getopt.h>
#include "upgma.h"
#include "utils.h"
#include "seq_utils.h"
#include "sequence.h"
#include "seq_reader.h"
#include "node.h"
#include "tree.h"
#include "tree_utils.h"
UPGMA::UPGMA (std::istream* pios):num_taxa_(0), num_c... | FePhyFoFum/phyx | src/upgma.cpp | C++ | gpl-3.0 | 7,194 |
from .gaussian_process import RandomFeatureGaussianProcess, mean_field_logits
from .spectral_normalization import SpectralNormalization
| gagnonlg/explore-ml | sngp/tf_import/__init__.py | Python | gpl-3.0 | 136 |
/*
* IIIFProducer
* Copyright (C) 2017 Leipzig University Library <info@ub.uni-leipzig.de>
*
* 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... | ubleipzig/iiif-producer | templates/src/main/java/de/ubleipzig/iiifproducer/template/TemplateService.java | Java | gpl-3.0 | 1,444 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using Hy.Common.Utility.Data;
using System.Data.Common;
using Hy.Check.Utility;
namespace Hy.Check.UI.UC.Sundary
{
public class ResultDbOper
{
private IDbConnection m_ResultDbConn = null;
... | hy1314200/HyDM | DataCheck/Hy.Check.UI/UC/Sundary/ResultDbOper.cs | C# | gpl-3.0 | 2,274 |
<?php
namespace MikroOdeme\Enum;
/**
* Mikro Odeme library in PHP.
*
* @package mikro-odeme
* @version 0.1.0
* @author Hüseyin Emre Özdemir <h.emre.ozdemir@gmail.com>
* @copyright Hüseyin Emre Özdemir <h.emre.ozdemir@gmail.com>
* @license http://opensource.org/licenses/GPL-3.0 GNU General Public Licen... | ozdemirr/mikro-odeme | lib/MikroOdeme/Enum/PaymentTypeId.php | PHP | gpl-3.0 | 802 |
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
using System;
using System.ComponentModel.DataAnnotations;
using System.Threading.Tasks;
namespace ChummerHub.Areas.Identity.Pages.Account.Manage
{
#pragma warning disabl... | chummer5a/chummer5a | ChummerHub/Areas/Identity/Pages/Account/Manage/DeletePersonalData.cshtml.cs | C# | gpl-3.0 | 4,994 |
namespace Grove.Artifical.TargetingRules
{
using System;
using System.Collections.Generic;
using System.Linq;
using Gameplay;
using Gameplay.Effects;
using Gameplay.Misc;
using Gameplay.Targeting;
public abstract class TargetingRule : MachinePlayRule
{
public int? TargetLimit;
public bool Co... | sorab2142/sorabpithawala-magicgrove | source/Grove/Artifical/TargetingRules/TargetingRule.cs | C# | gpl-3.0 | 8,371 |
package com.pix.mind.controllers;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input.Keys;
import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.badlogic.gdx.scenes.scene2d.InputListener;
import com.badlogic.gdx.scenes.scene2d.Stage;
import com.pix.mind.PixMindGame;
import com.pix.mind.box2d.bodies.Pix... | tuxskar/pixmind | pixmind/src/com/pix/mind/controllers/KeyboardController.java | Java | gpl-3.0 | 1,788 |
package com.wongsir.newsgathering.model.commons;
import com.google.common.base.MoreObjects;
import com.google.gson.annotations.SerializedName;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Date;
import java.util.List;
import j... | WongSir/JustGo | src/main/java/com/wongsir/newsgathering/model/commons/Webpage.java | Java | gpl-3.0 | 8,742 |
package fr.hnit.babyname;
/*
The babyname app is free software: you can redistribute it
and/or modify it under the terms of the GNU General Public
License as published by the Free Software Foundation,
either version 2 of the License, or (at your option) any
later version.
The babyname app is distributed in the hope th... | mdecorde/BABYNAME | app/src/main/java/fr/hnit/babyname/MainActivity.java | Java | gpl-3.0 | 12,172 |
import { useState } from "react";
import { PropTypes } from "prop-types";
import { SaveOutlined, WarningOutlined } from "@ant-design/icons";
import {
Button,
Col,
Form,
Input,
InputNumber,
Row,
Select,
Switch,
Typography,
Space,
} from "@nextgisweb/gui/antd";
import i18n from "@n... | nextgis/nextgisweb | nextgisweb/webmap/nodepkg/settings/SettingsForm.js | JavaScript | gpl-3.0 | 9,428 |
#!/usr/bin/env python
# File written by pyctools-editor. Do not edit.
import argparse
import logging
from pyctools.core.compound import Compound
import pyctools.components.arithmetic
import pyctools.components.qt.qtdisplay
import pyctools.components.zone.zoneplategenerator
class Network(object):
components = \
{ ... | jim-easterbrook/pyctools-demo | src/scripts/temporal_alias/stage_2.py | Python | gpl-3.0 | 2,808 |
# -*- coding: utf-8 -*-
import itertools
"""
Languages | ShortCode | Wordnet
Albanian | sq | als
Arabic | ar | arb
Bulgarian | bg | bul
Catalan | ca | cat
Chinese | zh | cmn
Chinese (... | domenicosolazzo/jroc | jroc/nlp/wordnet/WordnetManager.py | Python | gpl-3.0 | 8,043 |
package com.weatherapp.model.entities;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@JsonIgnoreProperties(ignoreUnknown = true)
public class Location implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
private Stri... | VoidDragonOfMars/pixelware | instantweatherapplication/src/main/java/com/weatherapp/model/entities/Location.java | Java | gpl-3.0 | 552 |
package units.interfaces;
public abstract interface Value<T> extends MyComparable<T> {
// OPERATIONS
default boolean invariant() {
return true;
}
default void checkInvariant() {
if(!invariant()) {
System.exit(-1);
}
}
public abstract T... | MesutKoc/uni-haw | 2. Semester/PR2/Aufgabe_2a_Igor/src/units/interfaces/Value.java | Java | gpl-3.0 | 686 |
#############################################################################
# $HeadURL$
#############################################################################
""" ..mod: FTSRequest
=================
Helper class to perform FTS job submission and monitoring.
"""
# # imports
import sys
import re
import... | miloszz/DIRAC | DataManagementSystem/Client/FTSRequest.py | Python | gpl-3.0 | 37,261 |
<?php
namespace de\chilan\WebsiteBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class WebsiteBundle extends Bundle
{
}
| Mirar85/chilan | src/de/chilan/WebsiteBundle/WebsiteBundle.php | PHP | gpl-3.0 | 131 |
var _ = require("lodash");
module.exports = {
// ensure client accepts json
json_request: function(req, res, next){
if(req.accepts("application/json"))
return next();
res.stash.code = 406;
_.last(req.route.stack).handle(req, res, next);
},
// init response
init... | normanjoyner/containership.plugin.navigator | lib/middleware.js | JavaScript | gpl-3.0 | 854 |
// Decompiled with JetBrains decompiler
// Type: System.Web.UI.WebControls.WebParts.ProxyWebPartConnectionCollection
// Assembly: System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// MVID: 7E68A73E-4066-4F24-AB0A-F147209F50EC
// Assembly location: C:\Windows\Microsoft.NET\Framework\v4.0.303... | mater06/LEGOChimaOnlineReloaded | LoCO Client Files/Decompressed Client/Extracted DLL/System.Web/System/Web/UI/WebControls/WebParts/ProxyWebPartConnectionCollection.cs | C# | gpl-3.0 | 8,862 |
// Copyright (c) The University of Dundee 2018-2019
// This file is part of the Research Data Management Platform (RDMP).
// RDMP 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... | HicServices/RDMP | Rdmp.UI/Refreshing/ILifetimeSubscriber.cs | C# | gpl-3.0 | 1,369 |
import sys, os, urllib, time, socket, mt, ssl
from dlmanager.NZB import NZBParser
from dlmanager.NZB.nntplib2 import NNTP_SSL,NNTPError,NNTP, NNTPReplyError
from dlmanager.NZB.Decoder import ArticleDecoder
class StatusReport(object):
def __init__(self):
self.message = "Downloading.."
self.total_byt... | andr3wmac/metaTower | packages/dlmanager/NZB/NZBClient.py | Python | gpl-3.0 | 10,499 |
"""Tests for `fix.with_fixture`."""
from __future__ import with_statement
import os
import shutil
import tempfile
from types import FunctionType
from fix import with_fixture
def test_exists():
"""`fix.with_fixture` function exists"""
assert isinstance(with_fixture, FunctionType)
def test_setup_only():
... | schesis/fix | tests/decorators/test_with_fixture.py | Python | gpl-3.0 | 3,536 |
# Copyright (C) 2012,2013
# Max Planck Institute for Polymer Research
# Copyright (C) 2008,2009,2010,2011
# Max-Planck-Institute for Polymer Research & Fraunhofer SCAI
#
# This file is part of ESPResSo++.
#
# ESPResSo++ is free software: you can redistribute it and/or modify
# it under the terms of the G... | espressopp/espressopp | src/integrator/CapForce.py | Python | gpl-3.0 | 2,764 |
/* EPANET 3
*
* Copyright (c) 2016 Open Water Analytics
* Distributed under the MIT License (see the LICENSE file for details).
*
*/
#include "demandmodel.h"
#include "Elements/junction.h"
#include <cmath>
#include <algorithm>
using namespace std;
//--------------------------------------------------------------... | jeffrey-newman/ENLink | OWA_EN3/src/Models/demandmodel.cpp | C++ | gpl-3.0 | 5,340 |
class AddVersionDone < ActiveRecord::Migration
def up
add_column :versions, :is_done, :boolean
end
def down
remove_column :versions, :is_done
end
end
| nmeylan/RORganize | db/migrate/20140623191731_add_version_done.rb | Ruby | gpl-3.0 | 167 |
var struct_m_s_vehicle_1_1_lane_q =
[
[ "allowsContinuation", "d3/d89/struct_m_s_vehicle_1_1_lane_q.html#a1491a03d3e914ce9f78fe892c6f8594b", null ],
[ "bestContinuations", "d3/d89/struct_m_s_vehicle_1_1_lane_q.html#a2fc7b1df76210eff08026dbd53c13312", null ],
[ "bestLaneOffset", "d3/d89/struct_m_s_vehicle_1_... | cathyyul/sumo-0.18 | docs/doxygen/d3/d89/struct_m_s_vehicle_1_1_lane_q.js | JavaScript | gpl-3.0 | 801 |
/*
* This file is part of JGCGen.
*
* JGCGen 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.
*
* JGCGen is distributed in the h... | callaa/JGCGen | src/org/luolamies/jgcgen/text/Fonts.java | Java | gpl-3.0 | 2,230 |
// -*- mode: csharp; encoding: utf-8; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil; -*-
// vim:set ft=cs fenc=utf-8 ts=4 sw=4 sts=4 et:
// $Id$
/* MetaTweet
* Hub system for micro-blog communication services
* SqlServerStorage
* MetaTweet Storage module which is provided by Microsoft SQL Server RDBMS.... | takeshik/metatweet-old | SqlServerStorage/StorageObjectContext.cs | C# | gpl-3.0 | 4,365 |
# -*- coding: utf-8 -*-
"""proyectoP4 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.h... | jesmorc/Workinout | proyectoP4/urls.py | Python | gpl-3.0 | 1,273 |
#region using directives
using POGOProtos.Enums;
using POGOProtos.Settings.Master.Pokemon;
#endregion
namespace PoGo.PokeMobBot.Logic.Event.Pokemon
{
public class BaseNewPokemonEvent : IEvent
{
public int Cp;
public ulong Uid;
public PokemonId Id;
public double Perfection;
... | Lunat1q/Catchem-PoGo | Source/PoGo.PokeMobBot.Logic/Event/Pokemon/BaseNewPokemonEvent.cs | C# | gpl-3.0 | 982 |
#!/usr/bin/python
# This programs is intended to manage patches and apply them automatically
# through email in an automated fashion.
#
# Copyright (C) 2008 Imran M Yousuf (imran@smartitengineering.com)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Pu... | imyousuf/smart-patcher | src/smart-patcher.py | Python | gpl-3.0 | 5,526 |
/*
LICENSE
-------
Copyright (C) 2007 Ray Molenkamp
This source code is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this source code or the software it produces.
Permission is granted to anyone to use th... | ciribob/DCS-SimpleRadioStandalone | NAudio/CoreAudioApi/MMDevice.cs | C# | gpl-3.0 | 9,240 |