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
using System; using System.Runtime.InteropServices; namespace ABC.PInvoke { /// <summary> /// Class through which user32.dll calls can be accessed for which the .NET framework offers no alternative. /// TODO: Clean up remaining original documentation, converting it to the wrapper's equivalents. /// </summary...
Whathecode/ABC
ABC/ABC.PInvoke/User32.cs
C#
gpl-3.0
3,655
#!/usr/bin/python from django.http import HttpResponse from django.template import RequestContext, loader from django.views.decorators.csrf import csrf_exempt import django.shortcuts from wlokalu.api import presence #----------------------------------------------------------------------------- from wlokalu.logging ...
HackerspaceWroclaw/wlokalu
wlokalu/views.py
Python
gpl-3.0
1,663
using System; using System.Runtime.InteropServices; using System.Security; namespace xServer.Core.Build { public static class IconInjector { // Basically, you can change icons with the UpdateResource api call. // When you make the call you say "I'm updating an icon", and you send the icon data...
1ookup/xRAT
Server/Core/Build/IconInjector.cs
C#
gpl-3.0
9,721
/** * Copyright (C) 2007-2012 Hypertable, Inc. * * This file is part of Hypertable. * * Hypertable is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 3 * of the License, or any later versio...
deniskin82/hypertable
examples/java/org/hypertable/examples/PerformanceTest/Result.java
Java
gpl-3.0
2,057
<?php /** * @package Projectlog.Administrator * @subpackage com_projectlog * * @copyright Copyright (C) 2009 - 2016 The Thinkery, LLC. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined( '_JEXEC' ) or die( 'Restricted access'); jimport('joomla.app...
thinkerytim/ProjectLog
admin/controllers/ajax.json.php
PHP
gpl-3.0
5,016
$('.attach_detach').on('click', function(){ var device_id = $(this).attr('device_id'); $('#device_id').val(device_id); }); $('.detach_customer').on('click', function(){ //get the attached customer name var customer_name = $(this).attr('cust_name'); if(confirm('Are you sure you want to detach('+customer_...
toxicaliens/rental
src/js/allocate_devices.js
JavaScript
gpl-3.0
399
#region License, Terms and Conditions // // Jayrock - A JSON-RPC implementation for the Microsoft .NET Framework // Written by Atif Aziz (www.raboof.com) // Copyright (c) Atif Aziz. All rights reserved. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GNU Lesser Ge...
atifaziz/Jayrock
tests/Jayrock/TestTypeResolution.cs
C#
gpl-3.0
4,130
MODX Evolution 1.1 = 07452b3a1b6754a6861e6c36f1cd3e62
gohdan/DFC
known_files/hashes/assets/plugins/managermanager/widgets/ddfillmenuindex/ddfillmenuindex.php
PHP
gpl-3.0
54
Bitrix 16.5 Business Demo = b10b46488015710ddcf5f4d0217eea77
gohdan/DFC
known_files/hashes/bitrix/modules/main/interface/settings_admin_list.php
PHP
gpl-3.0
61
<?php /* This file is part of Vosbox. Vosbox 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. Vosbox is distributed ...
naggie/vosbox
audioFile.class.php
PHP
gpl-3.0
5,333
<div class= "parametre"> <a href = "parametre.php" onclick="">mon compte</a> </div> <div style = "background-color:blue; border:2px solid white; border-radius:25px; padding:1%; font-size:1.5em;" > <a href = "./deconnect.php">deconnection</a> </div>
mysteriou13/protonet
view/divmembre.php
PHP
gpl-3.0
258
from urllib.request import urlopen from urllib.parse import urlparse, parse_qs from socket import error as SocketError import errno from bs4 import BeautifulSoup MAX_PAGES_TO_SEARCH = 3 def parse_news(item): '''Parse news item return is a tuple(id, title, url) ''' url = 'http://www.spa.gov.sa' + item[...
saudisproject/saudi-bots
bots/spa.py
Python
gpl-3.0
4,254
<?php /* * +----------------------------------------------------------------------+ * | PHP Version 4 | * +----------------------------------------------------------------------+ * | Copyright (c) 2002-2005 Heinrich Stamerjohanns | * | ...
agroknow/agrimoodle
blocks/oai_target/target/lib/getrecord.php
PHP
gpl-3.0
5,027
import time from threading import Thread import threading from wtfj_ids import * from wtfj_utils import * class Printer: ''' Opens a new output window and prints messages sent to it ''' def __init__(self,header=''): self._header = header def send(self,string): print(self._header+string) class Console: ''' Al...
WritingTechForJarrod/app
src/wtfj/connectors_local.py
Python
gpl-3.0
2,202
// Copyright (c) 2016 Tristan Colgate-McFarlane // // This file is part of hugot. // // hugot 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...
tcolgate/hugot
doc.go
GO
gpl-3.0
2,788
#include "shader.h" #include <iostream> Shader::Shader(GLuint shader_id) : shader_id(shader_id) {} void Shader::use() { glUseProgram(shader_id); } void Shader::send_cam_pos(glm::vec3 cam_pos) { this->cam_pos = cam_pos; } void Shader::set_VP(glm::mat4 V, glm::mat4 P) { this->V = V; this->P = P; } ...
jytang/greed_island
src/shader.cpp
C++
gpl-3.0
503
/* Playdar - music content resolver Copyright (C) 2009 Richard Jones Copyright (C) 2009 Last.fm Ltd. 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 ...
RJ/playdar
resolvers/local/resolved_item_builder.hpp
C++
gpl-3.0
2,176
#region License // // GroupableTest.cs // // Copyright (C) 2009-2013 Alex Taylor. All Rights Reserved. // // This file is part of Digitalis.LDTools.DOM.UnitTests.dll // // Digitalis.LDTools.DOM.UnitTests.dll is free software: you can redistribute it and/or modify // it under the terms of the GNU General Pu...
alex-taylor/Digitalis.LDTools.DOM
UnitTests/GroupableTest.cs
C#
gpl-3.0
3,733
/* * WANDORA * Knowledge Extraction, Management, and Publishing Application * http://wandora.org * * Copyright (C) 2004-2016 Wandora Team * * 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 Foundat...
wandora-team/wandora
src/org/wandora/query/JoinDirective.java
Java
gpl-3.0
3,327
<?php // Heading $_['heading_title'] = 'Εγγραφή'; // Text $_['text_account'] = 'Λογαριασμός'; $_['text_register'] = 'Εγγραφή'; $_['text_account_already'] = 'Εάν έχετε ήδη λογαριασμό, εισέλθετε από <a href="%s">εδώ</a>.'; $_['text_your_details'] = 'Προσωπικά Στοιχεία'; $_['text_your_address'] ...
lathan/opencart-greek
catalog/language/greek/account/register.php
PHP
gpl-3.0
3,384
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2016-11-03 08:56 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_depende...
DomDomPow/snapventure
snapventure-backend/snapventure/migrations/0005_auto_20161103_0856.py
Python
gpl-3.0
1,892
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Data; using System.ComponentModel.DataAnnotations.Schema; using System.Data.Entity; namespace SO.SilList.Manager.Mod...
SilverObject/SilList
SO.SilList.Manager/Models/ValueObjects/JobTypeVo.cs
C#
gpl-3.0
1,430
/**************************************************************************** ** ** Copyright (C) 2014-2015 Dinu SV. ** (contact: mail@dinusv.com) ** This file is part of C++ Snippet Assist application. ** ** GNU General Public License Usage ** ** This file may be used under the terms of the GNU General Public License...
dinusv/cpp-snippet-assist
modules/csa-lib/codebase/QSourceLocation.hpp
C++
gpl-3.0
2,242
package cat.foixench.test.parcelable; import org.junit.Test; import static org.junit.Assert.*; /** * Example local unit test, which will execute on the development machine (host). * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ public class ExampleUnitTest { @Test publi...
gothalo/Android-2017
014-Parcelable/app/src/test/java/cat/foixench/test/parcelable/ExampleUnitTest.java
Java
gpl-3.0
406
package com.acgmodcrew.kip.tileentity; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.inventory.IInventory; import net.minecraft.item.ItemStack; import net.minecraft.tileentity.TileEntity; /** * Created by Malec on 05/03/2015. */ public class TileEntityRepositry extends TileEntity implements ...
ACGModCrew/kip
src/main/java/com/acgmodcrew/kip/tileentity/TileEntityRepositry.java
Java
gpl-3.0
2,563
import os import re import subprocess # Copied from Trojita """Fetch the .po files from KDE's SVN for GCompris Run me from GCompris's top-level directory. """ SVN_PATH = "svn://anonsvn.kde.org/home/kde/trunk/l10n-kf5/" SOURCE_PO_PATH = "/messages/kdereview/gcompris_qt.po" OUTPUT_PO_PATH = "./po/" OUTPUT_PO_PATTERN ...
siddhism/GCompris-qt
tools/l10n-fetch-po-files.py
Python
gpl-3.0
1,862
#include "Scene.h" #include "Screen.h" Scene::Scene() { } void Scene::Update() { Object::AddPreparedObjects(); for (Object* obj : Object::objects) { if (obj->IsActive()) obj->Update(); } for (auto iter = Object::objects.begin(); iter != Object::objects.end(); iter++) { if (!(*iter)->IsActive()) { ...
TrinityLab/MagicEdge
MagicEdge/Scene.cpp
C++
gpl-3.0
1,367
package com.simplecity.amp_library.playback; import android.annotation.SuppressLint; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.graphics.Bitmap; import android.graphics.drawable.Drawable; import android.media....
timusus/Shuttle
app/src/main/java/com/simplecity/amp_library/playback/MediaSessionManager.java
Java
gpl-3.0
15,327
<?php require_once 'header.php';?> <div class="page-header"> <h1><?=APP_NAME ?></h1> </div> <a href="auth">auth</a> <!--echo "role=".<?=$role ?>; --> <?php $app = \Slim\Slim::getInstance(); // echo "user->role=".$app->user->role; ?> <?php require_once 'footer.php';?>
winguse/GithubApp
assets/index.php
PHP
gpl-3.0
279
/** * Copyright 2017 Kaloyan Raev * * This file is part of chitanka4kindle. * * chitanka4kindle 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) ...
kaloyan-raev/chitanka4kindle
src/main/java/name/raev/kaloyan/kindle/chitanka/model/search/label/Label.java
Java
gpl-3.0
1,251
export class GameId { constructor( public game_id: string) { } }
mkokotovich/play_smear
front_end/src/app/model/game-id.ts
TypeScript
gpl-3.0
81
namespace Net.Demandware.Ocapi.Resources.Data { class Coupons { } }
CoderHead/DemandwareDotNet
Net.Demandware.Ocapi/Resources/Data/Coupons.cs
C#
gpl-3.0
89
/** File errors.cc author Vladislav Tcendrovskii * Copyright (c) 2013 * This source subjected to the Gnu General Public License v3 or later (see LICENSE) * All other rights reserved * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, * INCLUDING B...
vladtcvs/geodesic
src/errors.cc
C++
gpl-3.0
987
#! /usr/bin/python from xml.sax.saxutils import escape import re def ConvertDiagnosticLineToSonqarqube(item): try: id, line, message, source_file = GetDiagnosticFieldsFromDiagnosticLine(item) WriteDiagnosticFieldsToFile(id, line, message, source_file) except: print 'Cant parse line {}'...
deadloko/ClangCompilerWarningsToSonarQubeRules
report_converter.py
Python
gpl-3.0
1,862
#!/usr/bin/env python import os import tempfile import pipes import subprocess import time import random import shutil try: from wand.image import Image from wand.display import display except ImportError as e: # cd /usr/lib/ # ln -s libMagickWand-6.Q16.so libMagickWand.so print("Couldn't import Wand packag...
wazari972/WebAlbums
WebAlbums-FS/WebAlbums-Utils/Photowall/photowall.py
Python
gpl-3.0
15,846
/* * Copyright (C) 2019 phramusca ( https://github.com/phramusca/ ) * * 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 versi...
phramusca/JaMuz
test/jamuz/process/book/TableModelBookTest.java
Java
gpl-3.0
7,906
<?PHP class ftp { /** * @var string FTP Host */ private $_host; /** * @var string FTP Port */ private $_port; /** * @var string FTP User */ private $_user; /** * @var string FTP Passwort */ private $_password; /** * @var ressource FTP Verbindung */ private $_connection; /** * @var bool ...
extremmichi/Litotex-0.7
setup/ftp_class.php
PHP
gpl-3.0
9,941
/* * This file is part of EchoPet. * * EchoPet 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. * * EchoPet is distributed in th...
Borlea/EchoPet
modules/v1_14_R1/src/com/dsh105/echopet/compat/nms/v1_14_R1/entity/type/EntityGiantPet.java
Java
gpl-3.0
1,596
<?php namespace GO\Base\Fs; class MemoryFile extends File{ private $_data; public function __construct($filename, $data) { $this->_data = $data; return parent::__construct($filename); } public function getContents() { return $this->_data; } public function contents() { return $this->_dat...
deependhulla/powermail-debian9
files/rootdir/usr/local/src/groupoffice-6.3/go/base/fs/MemoryFile.php
PHP
gpl-3.0
2,677
<?PHP require_once("./include/membersite_config.php"); if(isset($_POST['submitted'])) { if($fgmembersite->RegisterUser()) { require_once("config.php"); mkdir($dataDir); mkdir($dataDir."CLASSTéléversés"); $fgmembersite->RedirectToURL("thank-you.html"); ...
LaboManu/bloc-notes
app/register.php
PHP
gpl-3.0
3,638
/* * Copyright (C) 2006-2008 Alfresco Software Limited. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * This...
arcusys/Liferay-CIFS
source/java/org/alfresco/jlan/server/filesys/TransactionalFilesystemInterface.java
Java
gpl-3.0
1,957
/* * This file is part of InTEL, the Interactive Toolkit for Engineering Learning. * http://intel.gatech.edu * * InTEL 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 L...
jogjayr/InTEL-Project
exercises/Keyboard/src/keyboard/KeyboardExercise.java
Java
gpl-3.0
12,512
<?php /** * Online Course Resources [Pre-Clerkship] * Module: Courses * Area: Admin * @author Unit: Medical Education Technology Unit * @author Director: Dr. Benjamin Chen <bhc@post.queensu.ca> * @author Developer: James Ellis <james.ellis@queensu.ca> * @version 0.8.3 * @copyright Copyright 2009 Queen's Univers...
EntradaProject/entrada-1x
www-root/api/fetchobjectives.api.php
PHP
gpl-3.0
4,728
import time from datetime import datetime from pydoc import locate from unittest import SkipTest from countries_plus.models import Country from django.conf import settings from django.contrib.auth import get_user_model from django.contrib.auth.models import Permission from django.test import override_settings, tag fro...
ESSolutions/ESSArch_Core
ESSArch_Core/tags/tests/test_search.py
Python
gpl-3.0
22,665
/** * Bukkit plugin which moves the mobs closer to the players. * Copyright (C) 2016 Jakub "Co0sh" Sapalski * * 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...
Co0sh/Hordes
src/main/java/pl/betoncraft/hordes/Blocker.java
Java
gpl-3.0
2,168
<?php include(__DIR__ . '/http_move.php'); include(__DIR__ . '/security_arguments.php'); // this is it
wooygcom/mapc.me
web/mapc-system/library/_library.php
PHP
gpl-3.0
104
#include <QtGui> #include <QTcpSocket> #include "phonecall.h" #include "dcc.h" DCCDialog::DCCDialog(QWidget *parent) : QDialog(parent) { QStringList list; QVBoxLayout* mainLayout = new QVBoxLayout(this); table = new QTableWidget(this); table->setColumnCount(8); list << tr("Status") << tr("Fi...
korbatit/qtchat
dcc.cpp
C++
gpl-3.0
5,563
package cn.com.jautoitx; import org.apache.commons.lang3.StringUtils; import com.sun.jna.platform.win32.WinDef.HWND; /** * Build window title base on Advanced Window Descriptions. * * @author zhengbo.wang */ public class TitleBuilder { /** * Build window title base on Advanced Window Descriptions. * * @...
Pheelbert/twitchplayclient
src/cn/com/jautoitx/TitleBuilder.java
Java
gpl-3.0
12,238
package me.vadik.instaclimb.view.adapter; import android.content.Context; import android.databinding.ViewDataBinding; import android.view.LayoutInflater; import android.view.ViewGroup; import me.vadik.instaclimb.databinding.RowLayoutRouteBinding; import me.vadik.instaclimb.databinding.UserCardBinding; import me.vadik...
sirekanyan/instaclimb
app/src/main/java/me/vadik/instaclimb/view/adapter/UserRecyclerViewAdapter.java
Java
gpl-3.0
1,531
Ext.define('Omni.view.sizes.Explorer', { extend: 'Buildit.ux.explorer.Panel', alias: 'widget.omni-sizes-Explorer', initComponent: function() { var me = this; // EXPLORER INIT (Start) =============================================================== Ext.apply(this, { allowFind: true, s...
tunacasserole/omni
app/assets/javascripts/omni/view/sizes/Explorer.js
JavaScript
gpl-3.0
2,541
# Copyright (C) 2012 Statoil ASA, Norway. # # The file 'enkf_node.py' is part of ERT - Ensemble based Reservoir Tool. # # ERT 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...
iLoop2/ResInsight
ThirdParty/Ert/devel/python/python/ert/enkf/data/enkf_node.py
Python
gpl-3.0
3,730
package task_config import ( "github.com/sonm-io/core/proto" "github.com/sonm-io/core/util/config" ) func LoadConfig(path string) (*sonm.TaskSpec, error) { // Manual renaming from snake_case to lowercase fields here to be able to // load them directly in the protobuf. cfg := &sonm.TaskSpec{} if err := config.Lo...
sonm-io/core
cmd/cli/task_config/config.go
GO
gpl-3.0
476
package tencentcloud.constant; /** * @author fanwh * @version v1.0 * @decription * @create on 2017/11/10 16:09 */ public class RegionConstants { /** * 北京 */ public static final String PEKING = "ap-beijing"; /** * 上海 */ public static final String SHANGHAI = "ap-shanghai"; /...
ghforlang/Working
Test/src/main/java/tencentcloud/constant/RegionConstants.java
Java
gpl-3.0
1,002
/* The following code was generated by JFlex 1.6.1 */ package com.jim_project.interprete.parser.previo; import com.jim_project.interprete.parser.AnalizadorLexico; /** * This class is a scanner generated by * <a href="http://www.jflex.de/">JFlex</a> 1.6.1 * from the specification file <tt>C:/Users/alber_000/Docu...
alberh/JIM
jim/src/main/java/com/jim_project/interprete/parser/previo/PrevioLex.java
Java
gpl-3.0
20,877
#include "cdi.h" #include "mds_reader.h" #include "common.h" SessionInfo mds_ses; TocInfo mds_toc; DiscType mds_Disctype=CdRom; struct file_TrackInfo { u32 FAD; u32 Offset; u32 SectorSize; }; file_TrackInfo mds_Track[101]; FILE* fp_mdf=0; u8 mds_SecTemp[5120]; u32 mds_TrackCount; u32 mds_ReadSSect(u8* p_out,u32...
workhorsy/nulldc-linux
nulldc/plugins/ImgReader/mds.cpp
C++
gpl-3.0
7,400
package visGrid.diagram.edit.parts; import java.io.File; import java.util.Collections; import java.util.List; import org.eclipse.draw2d.IFigure; import org.eclipse.draw2d.Label; import org.eclipse.draw2d.geometry.Dimension; import org.eclipse.draw2d.geometry.Point; import org.eclipse.draw2d.geometry.Rectangle; im...
mikesligo/visGrid
ie.tcd.gmf.visGrid.diagram/src/visGrid/diagram/edit/parts/Series_reactorNameEditPart.java
Java
gpl-3.0
16,066
#include "mainwindow.h" #include <exception> #include <QMessageBox> MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { //setWindowFlags(Qt::CustomizeWindowHint); menuBar()->close(); setStyleSheet("QPushButton{" "background-color:gray;" "colo...
Zix777/Complex-mathematical-expressions
Calculator/mainwindow.cpp
C++
gpl-3.0
10,051
// Copyright 2017 Ryan Wick (rrwick@gmail.com) // https://github.com/rrwick/Unicycler // This file is part of Unicycler. Unicycler 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 Lic...
rrwick/Unicycler
unicycler/src/overlap_align.cpp
C++
gpl-3.0
3,185
package me.anthonybruno.soccerSim.reader; import org.apache.pdfbox.io.RandomAccessFile; import org.apache.pdfbox.pdfparser.PDFParser; import org.apache.pdfbox.text.PDFTextStripperByArea; import java.awt.geom.Rectangle2D; import java.io.File; import java.io.IOException; /** * A class that parsers team PDF files in...
AussieGuy0/soccerSim
src/main/java/me/anthonybruno/soccerSim/reader/TeamPdfReader.java
Java
gpl-3.0
9,771
module TransactionChains class Lifetimes::ExpirationWarning < ::TransactionChain label 'Expiration' allow_empty def link_chain(klass, q) q.each do |obj| user = if obj.is_a?(::User) obj elsif obj.respond_to?(:user) obj.user else...
vpsfreecz/vpsadmin-webui
api/models/transaction_chains/lifetimes/expiration_warning.rb
Ruby
gpl-3.0
792
// This file belongs to the "MiniCore" game engine. // Copyright (C) 2012 Jussi Lind <jussi.lind@iki.fi> // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation; either version 2 // of the License,...
juzzlin/DustRacing2D
src/game/MiniCore/src/Core/mclogger.hh
C++
gpl-3.0
2,473
// // tcpconnection.cpp // // This implements RFC 793 with some changes in RFC 1122 and RFC 6298. // // Non-implemented features: // dynamic receive window // URG flag and urgent pointer // delayed ACK // queueing out-of-order TCP segments // security/compartment // precedence // user timeout // // Circle - A C++ bare ...
rsta2/circle
lib/net/tcpconnection.cpp
C++
gpl-3.0
34,730
#include "template_components.h" #include <QtGui/QSpacerItem> TemplateComponents::TemplateComponents(const QSharedPointer<const Template>& templ, QWidget *parent) : QWidget(parent), templ(templ) { ui.setupUi(this); QList<FoodComponent> components = templ->getComponen...
tylermchenry/nutrition_tracker
application/src/widgets/template_components.cpp
C++
gpl-3.0
3,460
#define BOOST_TEST_MODULE segmentize tests #include <boost/test/unit_test.hpp> #include <ostream> #include "segmentize.hpp" #include "bg_operators.hpp" using namespace std; BOOST_AUTO_TEST_SUITE(segmentize_tests) void print_result(const vector<std::pair<linestring_type_fp, bool>>& result) { cout << result; } BOO...
pcb2gcode/pcb2gcode
segmentize_tests.cpp
C++
gpl-3.0
2,382
<?php /** * Simple product add to cart * * @author WooThemes * @package WooCommerce/Templates * @version 2.1.0 */ global $woocommerce, $product; if ( ! $product->is_purchasable() ) return; ?> <?php // Availability $availability = $product->get_availability(); if ($availability['availability']) : ec...
zgomotos/Bazar
woocommerce/single-product/add-to-cart/simple.php
PHP
gpl-3.0
1,617
/** * dfs 找 LCA. 只有一次查询,所以不需要 tarjan 或者 rmq * 个人感觉 rmq 好理解一些,dfs标号一下然后转化成区间最小值。( u v 之间最短路径上深度最小的节点) */ using namespace std; /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * ...
ShengRang/c4f
leetcode/lowest-common-ancestor-of-a-binary-tree.cc
C++
gpl-3.0
998
using System.Collections.Generic; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; using NFluent; using SmallWorld.BusinessEntities.Football.DeedDetectors; using SmallWorld.BusinessEntities.Interfaces.Football.Agents; namespace SmallWorld.BusinessEntities.UnitTests.Football.DeedDetectors { [TestClas...
cerobe/SmallWorld
Tests/SmallWorld.BusinessEntities.UnitTests/Football/DeedDetectors/MoveDetectorTest.cs
C#
gpl-3.0
1,136
/* * Symphony - A modern community (forum/SNS/blog) platform written in Java. * Copyright (C) 2012-2017, b3log.org & hacpai.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 ve...
gaozhenhong/symphony
src/main/java/org/b3log/symphony/service/CommentMgmtService.java
Java
gpl-3.0
22,223
/* * Copyright (C) 2010-2019 The ESPResSo project * * This file is part of ESPResSo. * * ESPResSo 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) ...
fweik/espresso
src/core/grid_based_algorithms/lbgpu.hpp
C++
gpl-3.0
7,560
/* * Copyright (C) 2000 - 2011 TagServlet Ltd * * This file is part of Open BlueDragon (OpenBD) CFML Server Engine. * * OpenBD is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * Free Software Foundation,version 3. * * Open...
OpenBD/openbd-core
src/org/alanwilliamson/openbd/plugin/crontab/CronSetDirectory.java
Java
gpl-3.0
2,444
package com.gentasaurus.ubahfood.inventory; import com.gentasaurus.ubahfood.init.ModBlocks; import com.gentasaurus.ubahfood.item.crafting.SCMCraftingManager; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.InventoryPlayer; import net.minecraft.init.Blocks; import net.minecraft.inven...
gentasaurus/UbahFood
src/main/java/com/gentasaurus/ubahfood/inventory/ContainerSCM.java
Java
gpl-3.0
3,263
#include "prism/animation.h" #include <stdlib.h> #include "prism/log.h" #include "prism/datastructures.h" #include "prism/memoryhandler.h" #include "prism/system.h" #include "prism/timer.h" #include "prism/stlutil.h" using namespace std; static struct { int mIsPaused; } gPrismAnimationData; int getDurationInFra...
CaptainDreamcast/libtari
animation.cpp
C++
gpl-3.0
13,226
/* * Copyright (c) 2011-2013 Lp digital system * * This file is part of BackBee. * * BackBee is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any l...
ndufreche/BbCoreJs
src/tb/component/formbuilder/form/element/views/form.element.view.hidden.js
JavaScript
gpl-3.0
2,067
/* RWImporter Copyright (C) 2017 Martin Smith 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. This program is distributed in t...
farling42/csv2rw
rw_snippet.cpp
C++
gpl-3.0
17,289
#include "podcastclient.h" QStringList PodcastClient::getFeedsFromSettings() { QStringList resultList = settings.value("feeds").toStringList(); if(resultList.isEmpty()) { QString string = settings.value("feeds").toString(); if(!string.isEmpty()) resultList.push_back(string); } return resultList...
R-Rudolph/minicatcher
podcastclient.cpp
C++
gpl-3.0
4,030
package org.epilot.ccf.codec; import org.apache.mina.common.ByteBuffer; import org.epilot.ccf.core.code.AbstractMessageEncode; import org.epilot.ccf.core.protocol.Message; import org.epilot.ccf.core.protocol.MessageBody; import org.epilot.ccf.core.protocol.MessageHeader; import org.epilot.ccf.core.util.ByteBufferDataH...
bozhbo12/demo-spring-server
spring-game/src/main/java/org/epilot/ccf/codec/MessageEncode.java
Java
gpl-3.0
1,193
var _i_x_n_annotation_format_8h = [ [ "IXNAnnotationFormat", "_i_x_n_annotation_format_8h.html#a607464fe85fc01c26df0c51826fd4841", [ [ "IXNAnnotationFormatPlainString", "_i_x_n_annotation_format_8h.html#a607464fe85fc01c26df0c51826fd4841a7b4fb91d85f0776a7abe6e0623f6b0fc", null ], [ "IXNAnnotationFormatJs...
BrainModes/BM.Muse
libmuse_5.8.0/ios/doc/_i_x_n_annotation_format_8h.js
JavaScript
gpl-3.0
590
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Dal.SOFD { public interface IRepo<IEntity> { IQueryable<IEntity> Query { get; } } }
SkanderborgKommune/RollekatelogJSON
Dal.SOFD/IRepo.cs
C#
gpl-3.0
231
package com.baeldung.iteratorguide; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.ListIterator; public class IteratorGuide { public static void main(String[] args) { List<String> items = new ArrayList<>(); items.add("ONE"); items.add("T...
Niky4000/UsefulUtils
projects/tutorials-master/tutorials-master/core-java-modules/core-java-collections/src/main/java/com/baeldung/iteratorguide/IteratorGuide.java
Java
gpl-3.0
1,260
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace SPCtoMML { public partial class Form2 : Form { /// <summary> /// Callback for updating progress /// </summary> pri...
VitorVilela7/SPCtoMML
SPCtoMML/Form2.cs
C#
gpl-3.0
1,633
#coding=UTF-8 from pyspark import SparkContext, SparkConf, SQLContext, Row, HiveContext from pyspark.sql.types import * from datetime import date, datetime, timedelta import sys, re, os st = datetime.now() conf = SparkConf().setAppName('PROC_A_SUBJECT_D002015').setMaster(sys.argv[2]) sc = SparkContext(conf = conf) sc....
cysuncn/python
spark/crm/PROC_A_SUBJECT_D002015.py
Python
gpl-3.0
3,179
/* ID: zhou.yo1 PROG: palsquare LANG: C++ */ #include <iostream> #include <fstream> #include <vector> #include <string> #include <cstring> #include <set> #include <map> #include <algorithm> using namespace std; const char* digits = "0123456789ABCDEFGHIJKLMN"; void to_base( int num, int base...
zhouyouyi/puzzles
usaco/palsquare.cc
C++
gpl-3.0
1,092
// Author: // Noah Ablaseau <nablaseau@hotmail.com> // // Copyright (c) 2017 // // 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 o...
jealouscloud/linerider-advanced
src/IO/ffmpeg/FFMPEG.cs
C#
gpl-3.0
6,950
/************************************************************************ * This file is part of EspoCRM. * * EspoCRM - Open Source CRM application. * Copyright (C) 2014 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko * Website: http://www.espocrm.com * * EspoCRM is free software: you can redistribute it and...
lucasmattos/crm
client/src/views/email-account/record/edit.js
JavaScript
gpl-3.0
1,286
#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * * OpenRCT2 is the work of many authors, a full list can be found in contributors.md * For more information, visit h...
gDanix/OpenRCT2
src/openrct2/ride/coaster/LoopingRollerCoaster.cpp
C++
gpl-3.0
404,229
<?php /** * @link https://github.com/old-town/workflow-doctrine * @author Malofeykin Andrey <and-rey2@yandex.ru> */ namespace OldTown\Workflow\Spi\Doctrine\EntityRepository\Exception; use OldTown\Workflow\Spi\Doctrine\Exception\ExceptionInterface as ParentExceptionInterface; /** * Interface ExceptionInterfac...
old-town/workflow-doctrine
src/EntityRepository/Exception/ExceptionInterface.php
PHP
gpl-3.0
464
/* * 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. */ /* * File: GnssLogTime.cpp * Author: markov */ #include <boost/date_time/posix_time/posix_time.hpp> #include "gnss_f...
arch1tect0r/iono_zond_post_processing
src/common/GnssLogTime.cpp
C++
gpl-3.0
2,745
package com.kraz.minehr.items; import com.kraz.minehr.MineHr; import com.kraz.minehr.reference.Reference; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.item.ItemHoe; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; public class HorizonHoe extends ItemHoe...
npomroy/MineHr
src/main/java/com/kraz/minehr/items/HorizonHoe.java
Java
gpl-3.0
614
package com.taobao.api.response; import com.taobao.api.TaobaoResponse; import com.taobao.api.internal.mapping.ApiField; /** * TOP API: taobao.logistics.consign.order.createandsend response. * * @author auto create * @since 1.0, null */ public class LogisticsConsignOrderCreateandsendResponse extends TaobaoRespon...
kuiwang/my-dev
src/main/java/com/taobao/api/response/LogisticsConsignOrderCreateandsendResponse.java
Java
gpl-3.0
1,165
/* * Pixel Dungeon * Copyright (C) 2012-2015 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. * * T...
Cerement/pixel-dungeon-legends
java/com/voicecrystal/pixeldungeonlegends/actors/hero/HeroSubClass.java
Java
gpl-3.0
2,845
<?php /** * TrcIMPLAN Índice Básico de Colonias * * Copyright (C) 2016 Guillermo Valdes Lozano * * 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...
TRCIMPLAN/beta
lib/IBCTorreon/VillaJardin.php
PHP
gpl-3.0
5,207
/**General utility methods collection (not all self developed). */ package de.konradhoeffner.commons;
AKSW/cubeqa
src/main/java/de/konradhoeffner/commons/package-info.java
Java
gpl-3.0
101
package listener; /** * Created by pengshu on 2016/11/11. */ public class IndexManager implements EntryListener { /** * 博客文章被创建 * * @param entryevent */ @Override public void entryAdded(EntryEvent entryevent) { System.out.println("IndexManager 处理 博客文章被创建事件。"); } /** ...
gaoju9963/MyProject
user/src/main/java/listener/IndexManager.java
Java
gpl-3.0
819
<?php /** * @package Joomla.Platform * @subpackage Google * * @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved * @license GNU General Public License version 2 or later; see LICENSE */ defined('JPATH_PLATFORM') or die; use Joomla\Registry\Registry; /** ...
MasiaArmato/coplux
libraries/joomla/google/data/plus.php
PHP
gpl-3.0
2,261
<?php namespace Smartling\Jobs; use Smartling\ApiWrapperInterface; use Smartling\Base\ExportedAPI; use Smartling\Helpers\ArrayHelper; use Smartling\Queue\QueueInterface; use Smartling\Settings\SettingsManager; use Smartling\Submissions\SubmissionManager; class DownloadTranslationJob extends JobAbstract { public ...
Smartling/wordpress-localization-plugin
inc/Smartling/Jobs/DownloadTranslationJob.php
PHP
gpl-3.0
1,886
"""1.5 : Migrating work unity Revision ID: 1212f113f03b Revises: 1f07ae132ac8 Create Date: 2013-01-21 11:53:56.598914 """ # revision identifiers, used by Alembic. revision = '1212f113f03b' down_revision = '1f07ae132ac8' from alembic import op import sqlalchemy as sa UNITIES = dict(NONE="", HOUR=u"h...
CroissanceCommune/autonomie
autonomie/alembic/versions/1_5_migrating_work_u_1212f113f03b.py
Python
gpl-3.0
2,158
package com.actelion.research.orbit.imageAnalysis.components.icons; import java.awt.*; import java.awt.geom.*; import java.awt.image.BufferedImage; import java.io.*; import java.lang.ref.WeakReference; import java.util.Base64; import java.util.Stack; import javax.imageio.ImageIO; import javax.swing.SwingUtilities; imp...
mstritt/orbit-image-analysis
src/main/java/com/actelion/research/orbit/imageAnalysis/components/icons/toggle_markup.java
Java
gpl-3.0
7,640
/* * This file is part of the demos-linux package. * Copyright (C) 2011-2022 Mark Veltzer <mark.veltzer@gmail.com> * * demos-linux 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 ...
veltzer/demos-linux
src/examples/lang_cpp/placement.cc
C++
gpl-3.0
4,246
var Connection = require("./db/db-connection").Connection; var Tables = require("./db/tables"); const R = require("ramda"); var QUERY_MATCHES = { $or: [ {percent_name: {$gt: 0.9}}, { distance: {$lt: 1} }, { percent_name: {$gt: 0.8}, distance: {$lt:...
marcog83/cesena-online-demo
dati-jobs/fuzzy-match-fb-places-step_2.js
JavaScript
gpl-3.0
3,057
/////////////////////////////////////////////////////////////////////////////// // // // // /////////////////////////////////////////////////////////////////////////////// // Includes #include "include/mdShared.h" #include "include/mdBreakPoint.h" #include "include/mdSpy.h" #include "include/mdSymbol.h" #include "inc...
pascalorama/megadrive-studio
mdstudio/src/mdProject.cpp
C++
gpl-3.0
11,136