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 |
|---|---|---|---|---|---|
/*
TC Plyer
Total Commander Audio Player plugin & standalone player written in C#, based on bass.dll components
Copyright (C) 2016 Webmaster442 aka. Ruzsinszki Gábor
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as publish... | webmaster442/TCPlayer | TCPlayer/Code/Player.cs | C# | gpl-3.0 | 17,120 |
function geojsonToPath( geojson ) {
var points = [];
var features;
if (geojson.type === "FeatureCollection")
features = geojson.features;
else if (geojson.type === "Feature")
features = [geojson];
else
features = [{type:"Feature", properties: {}, geometry: geojson}];
features.forEach(functi... | Wilkins/geojson-to-path | index.js | JavaScript | gpl-3.0 | 903 |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... | statusengine/interface | public/node_modules/@uirouter/core/lib/params/index.js | JavaScript | gpl-3.0 | 962 |
require 'spec_helper'
require 'helper_funcs'
describe ReactionRepository do
let(:repository) { ReactionRepository.new }
let(:quiz_id) { 1 }
before do
HelperFuncs::Database.new.full_database_setup
end
it 'queries reactions of the specified stimulus, person and quiz' do
repository.get_reactions_of(1,... | greenfork/associative-experiment | spec/assoc/repositories/reaction_repository_spec.rb | Ruby | gpl-3.0 | 5,125 |
# -*- coding: utf-8 -*-
##
##
## This file is part of Indico.
## Copyright (C) 2002 - 2014 European Organization for Nuclear Research (CERN).
##
## Indico 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; eith... | pferreir/indico-backup | indico/tests/python/unit/db.py | Python | gpl-3.0 | 4,383 |
/*
* Copyright (C) 2010 Le Tuan Anh <tuananh.ke@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
... | dakside/shacc | ReportEngine/src/dakside/reports/SimpleReportData.java | Java | gpl-3.0 | 1,445 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using ECCentral.QueryFilter.IM;
using ECCentral.BizEntity.IM;
namespace ECCentral.Service.IM.IDataAccess
{
public interface IProductRelatedDA
{
/// <summary>
/// 根据query得到相关商品信息
/// </... | ZeroOne71/ql | 02_ECCentral/03_Service/02_IM/ECCentral.Service.IM.IDataAccess/IProductRelatedDA.cs | C# | gpl-3.0 | 1,096 |
console.log('Hello world!')
require('./src')
| VevoxDigital/Iota | index.js | JavaScript | gpl-3.0 | 45 |
# Copyright 2008-2010, Red Hat, Inc
# Dan Radez <dradez@redhat.com>
#
# This software may be freely redistributed under the terms of the GNU
# general public license.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 6... | oppianmatt/django-loki | src/loki/__init__.py | Python | gpl-3.0 | 429 |
/*
* Created by: Anastassios Martakos
*
* Copyright 2016 Anastassios Martakos
*
* 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 v... | realm01/huffman-cpp | src/huffman.cpp | C++ | gpl-3.0 | 11,781 |
#!/usr/bin/env bash
# -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals
from restorepoint import RestorePoint
import argparse
import logging
import os
import shutil
import sys
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
def parse_ar... | pschmitt/python-restorepoint | restorepoint/rp.py | Python | gpl-3.0 | 8,649 |
class Solution:
def simplifyPath(self, path: str) -> str:
path_components = path.split('/')
starting_path = []
for path_component in path_components:
if not path_component: # '//'
continue
if path_component == '.':
continue
... | 1337/yesterday-i-learned | leetcode/71m.py | Python | gpl-3.0 | 518 |
package ch.cyberduck.core.dropbox;
/*
* Copyright (c) 2002-2022 iterate GmbH. All rights reserved.
* https://cyberduck.io/
*
* 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... | iterate-ch/cyberduck | dropbox/src/main/java/ch/cyberduck/core/dropbox/DropboxBatchDeleteFeature.java | Java | gpl-3.0 | 4,514 |
package is.idega.idegaweb.campus.webservice.nortek;
import java.util.Date;
public interface NortekService {
public boolean isCardValid(String cardSerialNumber);
public boolean banCard(String cardSerialNumber);
public boolean addAmountToCard(String cardSerialNumber, Date timestamp, double amount, String termina... | idega/platform2 | src/is/idega/idegaweb/campus/webservice/nortek/NortekService.java | Java | gpl-3.0 | 326 |
/***************************************************************************
* GIntegral.cpp - Integration class *
* ----------------------------------------------------------------------- *
* copyright (C) 2010-2020 by Juergen Knoedlseder *
* ---------... | gammalib/gammalib | src/numerics/GIntegral.cpp | C++ | gpl-3.0 | 44,144 |
/**
* team-popup-links.js
* Foxtrick show Team Popup
* @author bummerland, convinced, ryanli
*/
'use strict';
Foxtrick.modules['TeamPopupLinks'] = {
MODULE_CATEGORY: Foxtrick.moduleCategories.SHORTCUTS_AND_TWEAKS,
OUTSIDE_MAINBODY: true,
PAGES: ['all'],
NICE: 10, // after anythings that works on team/manager ... | minj/foxtrick | content/shortcuts-and-tweaks/team-popup-links.js | JavaScript | gpl-3.0 | 15,863 |
"""
A binary gap within a positive integer N is any maximal sequence of
consecutive zeros that is surrounded by ones at both ends in the binary
representation of N.
For example, number 9 has binary representation 1001 and contains a binary gap
of length 2. The number 529 has binary representation 1000010001 and con... | Dineshkarthik/codility_training | Lesson 01 - Iterations/binary_gap.py | Python | gpl-3.0 | 1,391 |
package com.weaverplatform.database.virtuoso.profiles;
import com.google.gson.*;
import com.hp.hpl.jena.datatypes.DatatypeFormatException;
import com.hp.hpl.jena.query.QuerySolution;
import com.hp.hpl.jena.query.ResultSet;
import com.hp.hpl.jena.rdf.model.RDFNode;
import com.weaverplatform.commons.WeaverDatatype;
impo... | weaverplatform/weaver-database-virtuoso | src/main/java/com/weaverplatform/database/virtuoso/profiles/NamedGraphsV1Profile.java | Java | gpl-3.0 | 23,172 |
using System;
namespace Server.Items
{
public class DragonTurtleHideArms : BaseArmor
{
[Constructable]
public DragonTurtleHideArms()
: base(0x782E)
{
Weight = 5.0;
}
public DragonTurtleHideArms(Serial serial)
: base(serial)
{
... | GenerationOfWorlds/GOW | Scripts/Core/Time Of Legends/Items/Equipment/Armor/Turtle/DragonTurtleHideArms.cs | C# | gpl-3.0 | 2,367 |
/*
* This file is part of the continuous space language and translation model toolkit
* for statistical machine translation and large vocabulary speech recognition.
*
* Copyright 2015, Holger Schwenk, LIUM, University of Le Mans, France
*
* The CSLM toolkit is free software; you can redistribute it and/or modify ... | hschwenk/cslm-toolkit | TrainerPhraseSlist1.cpp | C++ | gpl-3.0 | 33,138 |
#!/usr/bin/env python
from __future__ import absolute_import, unicode_literals
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "_3caassurance.settings.local")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| madicorp/3caassurance | manage.py | Python | gpl-3.0 | 320 |
package com.sample.rest.demo.springbootrest.repositories;
import com.mongodb.WriteResult;
import com.sample.rest.demo.springbootrest.models.Contact;
import com.sample.rest.demo.springbootrest.models.User;
import org.bson.types.ObjectId;
import org.mongodb.morphia.Datastore;
import org.mongodb.morphia.Key;
import org.m... | borgymanotoy/samples | spring-boot/mongodb-odm-morphia-security/src/main/java/com/sample/rest/demo/springbootrest/repositories/ContactRepositoryImpl.java | Java | gpl-3.0 | 3,206 |
#ifdef HAS_PROTOCOL_HTTP
#include "audio/pcmstream.h"
#include "streaming/wsoutnetaudiostream.h"
#include "streaming/streamstypes.h"
#include "protocols/http/websocket/basewssubprotocol.h"
#include "application/baseclientapplication.h"
#include "system/eventdefine.h"
WSOutNetAudioStream::WSOutNetAudioStream (BaseProt... | OpenQCam/qcam | trunk/sources/thelib/src/streaming/wsoutnetaudiostream.cpp | C++ | gpl-3.0 | 3,366 |
// Copyright (c) 2012 The Chromium 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 <limits>
#include "base/base64.h"
#include "base/strings/string_piece.h"
#include "base/strings/string_tokenizer.h"
#include "base/strings/s... | golden1232004/webrtc_new | chromium/src/net/http/http_security_headers.cc | C++ | gpl-3.0 | 12,773 |
<?php
/*
OpenTOMS - Open Trade Order Management System
Copyright (C) 2012 JOHN TAM, LPR CONSULTING LLP
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... | johntam/OpenTOMS | app/models/account.php | PHP | gpl-3.0 | 1,706 |
#include "meta_data.h"
#include <oak/oak.h>
namespace ng
{
void marks_t::replace (buffer_t* buffer, size_t from, size_t to, std::string const& str)
{
for(auto& m : _marks)
{
tree_t::iterator it = m.second.upper_bound(to);
std::string preserveMark = it != m.second.begin() && from < (--it)->first && it->firs... | xuvw/textmate | Frameworks/buffer/src/marks.cc | C++ | gpl-3.0 | 2,758 |
import { Component, Directive, ElementRef, EventEmitter, forwardRef, HostListener, Input, NgZone, Renderer, Inject, Optional, Output } from '@angular/core';
import { Content } from '../content/content';
import { CSS, zoneRafFrames } from '../../util/dom';
import { Item } from './item';
import { ItemReorderGesture } fro... | shdevops/JAF-Dice-Roller | node_modules/ionic-angular/es2015/components/item/item-reorder.js | JavaScript | gpl-3.0 | 5,883 |
from unittest import TestCase, main
from requests import HTTPError, Response
from mock import patch
from ntfy.backends.notifico import notify
class TestNotifico(TestCase):
def setUp(self):
self.webhook = 'https://n.tkte.ch/h/1234/testing_webhook'
@patch('requests.get')
def test_basic(self, mock... | dschep/ntfy | tests/test_notifico.py | Python | gpl-3.0 | 1,153 |
/**
* This module removes the need to know which implementation of has we are using.
* @module
* @todo Make a decision and remove this!
*/
define(["lib/dojo/has"], /** @param {Object?} [has] @ignore */function(has) {
"use strict";
var global = window;
return global.has || has;
});
| Joshua-Barclay/wcomponents | wcomponents-theme/src/main/js/wc/has.js | JavaScript | gpl-3.0 | 289 |
cloudStreetMarketApp.factory("indicesGraphFactory", function (httpAuth) {
return {
getGraph: function (index) {
var xmlHTTP = new XMLHttpRequest();
xmlHTTP.open('GET',"/api/charts/indices/"+index+".png",true);
httpAuth.setHeaders(xmlHTTP);
// Must include this li... | alex-bretet/cloudstreetmarket.com | cloudstreetmarket-parent/cloudstreetmarket-webapp/src/main/webapp/js/home/home_financial_graph.js | JavaScript | gpl-3.0 | 1,575 |
namespace ValentinesProject
{
partial class MainMenu
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
//... | RiverOfZabi/OOR | ValentinesProject/MainMenu.Designer.cs | C# | gpl-3.0 | 4,601 |
<?php
/**
* File :: Command.php
*
* Processeur CLI pour le moteur SYSLang.
*
* @author Nicolas DUPRE with the contribution of marvin255
* @release 18/10/2017
* @version 2.0.0-beta1
* @package Index
*
*/
namespace SYSLang;
use Exception;
use InvalidArgumentException;
/**
* Class for cli command.
... | neooblaster/SYSLang | src/SYSLang/Command.php | PHP | gpl-3.0 | 16,133 |
/*
* This file is part of the L2J Global project.
*
* 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 p... | rubenswagner/L2J-Global | dist/game/data/scripts/ai/others/BlackJudge/BlackJudge.java | Java | gpl-3.0 | 1,586 |
package org.jcoderz.m3server.renderer;
import java.util.logging.Logger;
import org.jcoderz.m3server.library.Item;
import org.jcoderz.m3server.util.Logging;
/**
* This class represents MPD rendering devices. <ul> <li><a
* href="http://mpd.wikia.com/wiki/Protocol_Reference">Protocol
* Reference</a></li> <li... | jCoderZ/m3server | src/main/java/org/jcoderz/m3server/renderer/MpdRenderer.java | Java | gpl-3.0 | 2,066 |
<?php
namespace ApacheSolrForTypo3\Solr\Tests\Unit\System\Cache;
/***************************************************************
* Copyright notice
*
* (c) 2016 <timo.schmidt@dkd.de>
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistrib... | dkd-kaehm/ext-solr | Tests/Unit/System/Cache/TwoLevelCacheTest.php | PHP | gpl-3.0 | 3,835 |
package com.orgzly.android.widgets;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.Share... | orgzly/orgzly-android | app/src/main/java/com/orgzly/android/widgets/ListWidgetProvider.java | Java | gpl-3.0 | 12,412 |
package com.yc.tieba.util;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
/**
* @Description: 初始化敏感词库,将敏感词加入到H... | joyceshenhui/tieba | tieba/src/main/java/com/yc/tieba/util/SensitiveWordInit.java | Java | gpl-3.0 | 4,315 |
from __future__ import unicode_literals
import socket
from django.conf import settings
try:
HOSTNAME = socket.gethostname()
except:
HOSTNAME = 'localhost'
def common_settings(request):
"""Passing custom CONSTANT in Settings into RequestContext."""
from django.contrib.sites.models import get_current_... | thetoine/eruditorg | erudit/base/context_processors.py | Python | gpl-3.0 | 753 |
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include <SysUtils.hpp>
#include "Common.h"
#include "Exceptions.h"
#include "TextsCore.h"
#include "Script.h"
#include "Terminal.h"
#include "SessionData.h"
#include "CoreMain.h"
//-------------------------... | pmverma/winscp | source/core/Script.cpp | C++ | gpl-3.0 | 77,623 |
/***************************************************
*
* cismet GmbH, Saarbruecken, Germany
*
* ... and it just works.
*
****************************************************/
package de.cismet.lagis.report;
import javax.swing.JFrame;
/**
* DOCUMENT ME!
*
* @version $Revision$, $Date$
*/
public class... | cismet/lagis-client | src/main/java/de/cismet/lagis/report/ReportSwingWorkerDialog.java | Java | gpl-3.0 | 3,062 |
using Editor_Mono.Cecil.Metadata;
using System;
namespace Editor_Mono.Cecil
{
public sealed class PinnedType : TypeSpecification
{
public override bool IsValueType
{
get
{
return false;
}
set
{
throw new InvalidOperationException();
}
}
public override bool IsPinned
... | lichunlincn/cshotfix | CSHotFix_SimpleFramework/Assets/CSHotFixLibaray/Editor/Injector/MonoCecil/Mono.Cecil/PinnedType.cs | C# | gpl-3.0 | 531 |
package application;
/* Model is where data processing occurs. In this case, the logic of math calculations */
public class Model {
public float calculate(long number1, long number2, String operator){
switch(operator){
case "+":
return number1 + number2;
case "-":
return number1 - number2;
case "*":
... | AlexWang-16/learn_javafx | JFX04/src/application/Model.java | Java | gpl-3.0 | 461 |
from . import models
from . import materialized_views | sumihai-tekindo/account_sicepat | customer_classification/__init__.py | Python | gpl-3.0 | 54 |
# = key_event_adapter.rb - Semantic key states
#
# Makes :hit, :down, :up, :released key states available for querying.
module QuickRPG
class KeyEventAdapter
attr_reader :keys
def initialize(supported_keys = (0..255))
@keys = {}
supported_keys.each do |key|
@keys[key] = :relea... | DivineDominion/quickrpg-clone | lib/qrpg/keyboard_control/key_event_adapter.rb | Ruby | gpl-3.0 | 855 |
Template.addAction.actionCreationCancelled=function() {
var context=EditContext.getContext();
if(context!=null) {
context.keepEditContextOnNextRoute();
var route=context.getReturnRoute();
route.onCancel();
}
else {
Router.go('actions');
}
return false;
}
Template... | dubsky/robolos | src/client/html/actions/addAction.js | JavaScript | gpl-3.0 | 1,248 |
package the.bytecode.club.bytecodeviewer.decompilers;
import org.objectweb.asm.tree.ClassNode;
/***************************************************************************
* Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite *
* Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer... | Konloch/bytecode-viewer | src/main/java/the/bytecode/club/bytecodeviewer/decompilers/InternalDecompiler.java | Java | gpl-3.0 | 1,677 |
import edu.princeton.cs.algs4.StdIn;
import edu.princeton.cs.algs4.StdOut;
/**
* @author Alex Nevsky
*
* Date: 27/05/2021
*/
public class Permutation {
// CMD+D to enter EOF
public static void main(String[] args) {
int k = Integer.parseInt(args[0]);
RandomizedQueue<String> q = new RandomizedQueue<>();... | anevsky/algorithms | princeton/src/main/java/Permutation.java | Java | gpl-3.0 | 529 |
<?php
/**
* TrcIMPLAN - SMI Indicadores Gómez Palacio Sustentabilidad Empresas Certificadas como Limpias (Creado por Central:SmiLanzadera)
*
* Copyright (C) 2015 Guillermo Valdés Lozano
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License ... | TRCIMPLAN/beta | lib/SMIIndicadoresGomezPalacio/SustentabilidadEmpresasCertificadasComoLimpias.php | PHP | gpl-3.0 | 11,613 |
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Runtime.Serialization;
using SmartStore.Core.Domain.Localization;
namespace SmartStore.Core.Domain.Catalog
{
/// <summary>
/// Represents a product variant attribute mapping
/// </summary>
[DataContract]
... | mfalkao/SmartStoreNET | src/Libraries/SmartStore.Core/Domain/Catalog/ProductVariantAttribute.cs | C# | gpl-3.0 | 3,030 |
package kirjanpito.models;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigDecimal;
import java.nio.charset.Charset;
import java.util.Calendar;
import java.util.HashMap;
import java.util.jar.JarFile;
import javax.swing.SwingWorker;
... | thelineva/tilitin | src/kirjanpito/models/DataSourceInitializationWorker.java | Java | gpl-3.0 | 6,719 |
function zeroFill( number, width )
{
width -= number.toString().length;
if ( width > 0 )
{
return new Array( width + (/\./.test( number ) ? 2 : 1) ).join( '0' ) + number;
}
return number + ""; // always return a string
}
function populateEndtime()
{
var startVal = parseInt($('started').value,10);
var hrs... | cosycode/collabtive2 | include/js/timetracker_widget.js | JavaScript | gpl-3.0 | 745 |
/**
* 3Sum:
* solution 1: O(n) hash table, O(n^2) scan and check;
* solution 2: O(n^2) hash table, O(n) scan and check;
* solution 3: sort, then for each i, do 2Sum in range [i+1, n];
* O(nlogn) + O(n^2) = O(n^2) time, O(1) space
*
* Solution 3 can also be used for 3Sum closest
*/
class Solution ... | louyx/algo | lc/lc_15_3sum.cpp | C++ | gpl-3.0 | 1,127 |
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Mesh_triangulation_3.h>
#include <CGAL/Mesh_complex_3_in_triangulation_3.h>
#include <CGAL/Mesh_criteria_3.h>
#include <CGAL/Labeled_image_mesh_domain_3.h>
#include <CGAL/make_mesh_3.h>
#include <CGAL/Image_3.h>
// Domain
typedef CGAL::Ex... | FEniCS/mshr | 3rdparty/CGAL/examples/Mesh_3/mesh_optimization_lloyd_example.cpp | C++ | gpl-3.0 | 2,125 |
@extends ('admin')
@section ('contenido')
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<h3>Editar Perfil: {{$admin -> nombre}}</h3>
@if (count($errors)>0)
<div class="alert alert-danger">
<ul>
@foreach ($errors->all() as $error)
<li>{{$error}}</li>
@endforeach
... | rodrigoAb21/ERP3 | resources/views/admin/Seguridad/perfil/editarPerfil.blade.php | PHP | gpl-3.0 | 1,992 |
package vistas;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JTextField;
import java.awt.event.ActionListener;
import java.awt.Color;
import java.awt.event.... | dforce2055/ReservaHotel | src/vistas/VentanaEditarServicioAdicional.java | Java | gpl-3.0 | 7,064 |
from token import *
from network import *
from logical_node import *
from role_criteria import *
##################################################################################
# Example code that roughly shows how the framework is to be used. Note: the
# relationship between the network and the logical nodes will ... | triskadecaepyon/DF_RoleMatrix | example_simple.py | Python | gpl-3.0 | 1,926 |
//===-- llvm-dwarfdump.cpp - Debug info dumping utility for llvm ----------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | vinutah/apps | tools/llvm/llvm_39/opt/tools/llvm-dwarfdump/llvm-dwarfdump.cpp | C++ | gpl-3.0 | 6,674 |
// $Id$
package com.jclark.xsl.dom;
import com.jclark.xsl.om.*;
/**
* Wraps a W3C DOM XML Comment Node as an om.Node
*/
class CommentNode extends NodeBase
{
CommentNode(org.w3c.dom.Node domNode,
ContainerNode parent,
int childIndex)
{
super(domNode, parent, childIn... | srnsw/xena | plugins/office/ext/src/xt-20051206/src/xt/java/com/jclark/xsl/dom/CommentNode.java | Java | gpl-3.0 | 483 |
<?php
/**
* This a View/Edit Toggle button for a menu.
*
* @package Framework
* @subpackage Presentation
* @author Ryan Somma
* @see Menu
*/
abstract class MenuViewEditToggle extends Menu
{
/**
* Builds javascript for flipping between view and edit modes.
* @param string $toggleItem Human-readabl... | ideonexus/memexplex | memexplex/framework/classes/presentation/menus/MenuViewEditToggle.php | PHP | gpl-3.0 | 2,215 |
package com.teamten.beanstalk;
/*
*
* Copyright 2009-2010 Robert Tykulsker *
* This file is part of JavaBeanstalkCLient.
*
* JavaBeanstalkCLient 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 v... | lkesteloot/JavaBeanstalkClient | src/main/java/com/teamten/beanstalk/BeanstalkClientImpl.java | Java | gpl-3.0 | 16,064 |
using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI.WebControls;
using System.Data;
using System.Collections;
using CMS.FormControls;
using CMS.Forums;
using CMS.Helpers;
using CMS.Localization;
using CMS.MediaLibrary;
using CMS.Base;
using CMS.SiteProvider;
using CMS.Membership;
us... | CCChapel/ccchapel.com | CMS/CMSModules/Departments/FormControls/DepartmentSectionsManager.ascx.cs | C# | gpl-3.0 | 29,179 |
(function() {
"use strict";
pwf.reg_class('ui.list.team.member', {
'parents':['ui.link'],
'storage':{
'opts':{
'path':'user'
}
},
'proto':{
'prefix':'member',
'els':[
'avatar',
{
'name':'data',
'els':['name', 'roles']
},
{
'name':'cleaner',
'prefix':nu... | just-paja/improliga | share/scripts/ui/list/team/member.js | JavaScript | gpl-3.0 | 819 |
package com.example.weiguangmeng.contentprovider;
import android.content.ContentProvider;
import android.content.ContentValues;
import android.content.Context;
import android.content.UriMatcher;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.net.Uri;
import android.suppor... | supermanmwg/AndroidArtExplore | chapter2/ContentProvider/app/src/main/java/com/example/weiguangmeng/contentprovider/BookProvider.java | Java | gpl-3.0 | 4,508 |
/*! \file
\brief Header of the bt_utmsg_piecewish_t
*/
#ifndef __NEOIP_BT_UTMSG_PIECEWISH_HPP__
#define __NEOIP_BT_UTMSG_PIECEWISH_HPP__
/* system include */
#include <list>
/* local include */
#include "neoip_bt_utmsg_piecewish_wikidbg.hpp"
#include "neoip_bt_utmsg_vapi.hpp"
#include "neoip_bt_utmsg_cb.hpp"
#... | jeromeetienne/neoip | src/neoip_bt_plugin/utmsg/impl/piecewish/neoip_bt_utmsg_piecewish.hpp | C++ | gpl-3.0 | 3,792 |
package hadukiclient.serv_connection;
/**
* <p>^Cg: utv</p>
*
* <p>à¾: </p>
*
* <p>ì : Copyright (c) 2007 PSI</p>
*
* <p>ïм: </p>
*
* @author ¢üÍ
* @version 1.0
*/
import java.security.Key;
import java.security.MessageDigest;
import javax.crypto.Cipher;
import javax.c... | ledyba/Haduki | client/HadukiClient/src/hadukiclient/serv_connection/Responses.java | Java | gpl-3.0 | 14,729 |
/*
* Copyright (C) 2010 Brockmann Consult GmbH (info@brockmann-consult.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 option)
* any late... | arraydev/snap-desktop | snap-ui/src/main/java/org/esa/snap/framework/ui/diagram/DefaultDiagramGraph.java | Java | gpl-3.0 | 3,648 |
/*
Copyright (C) 2017-2022 Topological Manifold
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... | cppd/math | src/model/mesh_utility/create_facets.cpp | C++ | gpl-3.0 | 4,096 |
package com.prosoft.verilog.ir;
public class VOperUnary extends VOper {
VUnaryKind kind;
public VOperUnary(VUnaryKind kind, VOper child) {
super(child);
this.kind = kind;
}
@Override
public VOperKind getKind() {
return VOperKind.UNARY;
}
@Override
protected VType inferTypeInternal(... | grwlf/vsim | tr/com/prosoft/verilog/ir/VOperUnary.java | Java | gpl-3.0 | 776 |
/* ************************************************************************ */
/* Georgiev Lab (c) 2015 */
/* ************************************************************************ */
/* Department of Cybernetics */
/* F... | GustavoPB/CeCe | cece/loader/Loader.hpp | C++ | gpl-3.0 | 4,865 |
DataLife Engine 11.2 = 2afa0f13538ef26952650102e9eb8661
| gohdan/DFC | known_files/hashes/engine/classes/htmlpurifier/standalone/HTMLPurifier/Lexer/PH5P.php | PHP | gpl-3.0 | 56 |
/*****************************************************************
* This file is part of CCAFS Planning and Reporting Platform.
* CCAFS P&R 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... | CCAFS/ccafs-ap | utils/src/main/java/org/cgiar/ccafs/utils/db/DAOManager.java | Java | gpl-3.0 | 5,758 |
Simpla CMS 2.3.8 = 57b16f03be6df9584fa91557d51214ef
| gohdan/DFC | known_files/hashes/simpla/PostAdmin.php | PHP | gpl-3.0 | 52 |
<?php
namespace D\library\patterns\entity\SQL\builder;
use D\library\patterns\entity\SQL\operators\DML\components\Field;
use D\library\patterns\entity\SQL\operators\DML\components\Join;
use D\library\patterns\entity\SQL\operators\DML\components\Limit;
use D\library\patterns\entity\SQL\operators\DML\components\OrderBy;... | Bashka/D | library/patterns/entity/SQL/builder/Select.php | PHP | gpl-3.0 | 12,838 |
<?php /* Smarty version Smarty-3.1.19, created on 2016-02-23 18:20:18
compiled from "/var/www/html/prestashop/themes/default-bootstrap/header.tpl" */ ?>
<?php /*%%SmartyHeaderCode:5262045056cca2e2800531-79746740%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodePrope... | jesusgm/prestashop | cache/smarty/compile/2c/c4/62/2cc462e8c4778cfa9950b74c613bc44cb6d56020.file.header.tpl.php | PHP | gpl-3.0 | 14,630 |
/*
*
*/
package com.jf.carrot.model;
/**
* 性别.
*/
public enum Sex {
/** 男性. */
Male,
/** 女性. */
Female
}
| JohnnyFee/carrot | src/Carrot/src/main/java/com/jf/carrot/model/Sex.java | Java | gpl-3.0 | 143 |
#include "CBox.h"
#include "C3DScene.h"
//-------------------------------------------------------------------------------------------------
using namespace Math;
//-------------------------------------------------------------------------------------------------
// Constantes
#define BOX_SIZE 0.5
//---------------... | Jango73/Quick3D | Quick3D/Source/Mesh/CBox.cpp | C++ | gpl-3.0 | 1,730 |
#!/usr/bin/env python
#
# test_copy_residue.py
#
# unit tests for residue duplication functionality
#
__author__ = "Magdalena Musielak, Tomasz Puton, Kristian Rother"
__copyright__ = "Copyright 2008, The Moderna Project"
__credits__ = ["Janusz Bujnicki"]
__license__ = "GPL"
__maintainer__ = "Magdalena Musielak"
__email... | lenarother/moderna | tests/test_rna_residue.py | Python | gpl-3.0 | 4,920 |
#ifdef WIN32
#include<windows.h>
#endif
#ifdef WIN32
#include<windows.h>
#endif
#include<GL/gl.h>
#include<GL/glut.h>
#include<fstream>
#ifndef WIN32
#include <iostream>
#endif
#include <math.h>
#include <stdlib.h>
#include "camara.h"
#define An 640
#define Al 480
#define GL_PI 3.14159265f
#define U_M... | raulperula/uco_student | computer_graphics/practices/src/trabajo5.cpp | C++ | gpl-3.0 | 2,235 |
#region License
/*
Copyright 2014 - 2015 Nikita Bernthaler
Utils.cs is part of SFXDestination.
SFXDestination is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your op... | Lizzaran/LeagueSharp-Standalones | SFXUtility/SFXDestination/Library/Utils.cs | C# | gpl-3.0 | 3,215 |
from lettuce import step, world
from nose.tools import assert_equals, assert_true, assert_false
import utils
import os
import bunch.special
path = os.path.abspath(__file__)
dir_path = os.path.dirname(path)
utils.init(dir_path)
config_file = os.path.join(dir_path, "config.yaml")
config = utils.load_yaml_config(config_f... | griddynamics/bunch | samples/openstack-smoke/__init__.py | Python | gpl-3.0 | 10,675 |
import sys
from PIL import Image, ImageStat
# Covert image to greyscale, return average pixel brightness.
def brightness_method1( im_file ):
im = Image.open(im_file).convert('L')
stat = ImageStat.Stat(im)
return stat.mean[0]
# Covert image to greyscale, return RMS pixel brightness.
def brightness_method2( im... | mikehankey/fireball_camera | img/get_brightness.py | Python | gpl-3.0 | 669 |
package com.starwars.app.client.pager.presenter;
import com.starwars.app.client.abs.presenter.Presenter;
public interface Holoprojector extends Presenter<Holoprojector.Display> {
interface Display extends com.starwars.app.client.abs.presenter.ADisplay {
}
}
| vmacheret/StarWarsEssential | StarWarsApp/src/main/java/com/starwars/app/client/pager/presenter/Holoprojector.java | Java | gpl-3.0 | 264 |
<?php // phpcs:disable -- Maybe later.
/*
\defined( 'TSF_EXTENSION_MANAGER_PRESENT' ) or die;
// Remove WebEngine headers.
@header_remove();
// Send 202 and cache control.
@http_response_code( 202 );
// session_cache_limiter( 'nocache' ); :
@header( 'Expires: Thu, 19 Nov 1981 08:52:00 GMT' );
@header( 'Cache-Control... | sybrew/The-SEO-Framework-Extension-Manager | extensions/premium/monitor/trunk/ping.php | PHP | gpl-3.0 | 546 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<title> Pointage </title>
<?PHP
include_once("../header.php");
include_once("../sql/files.php");
include_once("../s... | selleron/pointageWebCEGID | user/validation_import_ETAP_cegid.php | PHP | gpl-3.0 | 5,336 |
//
// X-RunUO - Ultima Online Server Emulator
// Copyright (C) 2015 Pedro Pardal
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at you... | greeduomacro/xrunuo | Server/Gumps/Gump.cs | C# | gpl-3.0 | 10,433 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WindowsPortableDevicesLib.Domain;
using WindowsPortableDevicesLib;
namespace AndroSyncTunes {
/// <summary>
/// This class is an abstraction for connected MTP devices
/// </summary>
class Devices {
pri... | gabry3795/androsynctunes | AndroSyncTunes/Devices.cs | C# | gpl-3.0 | 1,683 |
var spa = "spa/scripts/";
require.config({
jsx: {
fileExtension: '.jsx'
},
paths: {
'spa': "spa/scripts",
'underscore': "spa/scripts/vendor/underscore",
'jquery': "spa/scripts/vendor/jquery",
'Q': 'spa/scripts/vendor/q',
'marked': 'spa/scripts/vendor/marked',
'backbone': 'spa/scripts... | vortext/vortext-demo | resources/public/scripts/main.js | JavaScript | gpl-3.0 | 804 |
package ubu.digit.util;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import org.apache.log4j.Logger;
/**
* Clase para la obtención de los valores de las propiedades.
*
* @author Beatriz Zurera Martínez-Acitores.
* @since 3.0
*/
public clas... | mdg1001/GESPRO_GESTIONVERSIONES | SistInfGenWeb_4.0_src/src/main/ubu/digit/util/ExternalProperties.java | Java | gpl-3.0 | 1,720 |
/* text-grid-view.cpp
*
* Copyright(C) 2017 Tony Houghton
*
* 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.
*
*... | realh/gnvim | src/text-grid-view.cpp | C++ | gpl-3.0 | 10,307 |
import { Component, OnInit, Input, EventEmitter, Output } from '@angular/core';
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
import {
HttpClient,
HttpParams,
HttpEvent,
HttpHeaders,
HttpRequest,
HttpEventType,
HttpErrorResponse
} from '@angular/common/http';
import { BehaviorSubject } from 'rxjs... | PnX-SI/GeoNature | frontend/src/app/GN2CommonModule/others/modal-download/modal-download.component.ts | TypeScript | gpl-3.0 | 3,686 |
package me.winter.trapgame.util;
import java.awt.*;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.StringSelection;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.List;
/**
*
* Created by Alexander Winter on 2016-0... | WinterGuardian/TrapGame | src/me/winter/trapgame/util/StringUtil.java | Java | gpl-3.0 | 4,804 |
'use strict';
angular.module('risevision.editorApp.directives')
.directive('resolutionSelector', [
function () {
return {
restrict: 'E',
scope: false,
templateUrl: 'partials/resolution-selector.html',
link: function (scope) {
// view will show resolutions on the... | Rise-Vision/editor-app | js/directives/dtv-resolution-selector.js | JavaScript | gpl-3.0 | 2,034 |
Simpla CMS 2.3.8 = e6bad03ff13cc2b915136d66efa673fb
| gohdan/DFC | known_files/hashes/api/Users.php | PHP | gpl-3.0 | 52 |
#!/usr/bin/env python
# -*- coding: utf-8; py-indent-offset:4 -*-
###############################################################################
#
# Copyright (C) 2015-2020 Daniel Rodriguez
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License a... | mementum/backtrader | backtrader/filters/datafilter.py | Python | gpl-3.0 | 2,743 |
import React from 'react';
import Select from 'react-select';
import axios from 'axios';
export default class RuleTypeSelector extends React.Component {
constructor() {
super();
this.state = {
ruleTypes: []
};
}
componentDidMount() {
axios.get('/rule-types').t... | kfirprods/tpp | client/src/components/atomic/RuleTypeSelector.js | JavaScript | gpl-3.0 | 776 |
var assert = require('assert');
var expect = require('chai').expect;
var rds = require('./rdsEncryptionEnabled');
const listKeys = [
{
KeyId: '60c4f21b-e271-4e97-86ae-6403618a9467',
KeyArn: 'arn:aws:kms:us-east-1:112233445566:key/60c4f21b-e271-4e97-86ae-6403618a9467'
}
];
const describeKey = [... | cloudsploit/scans | plugins/aws/rds/rdsEncryptionEnabled.spec.js | JavaScript | gpl-3.0 | 7,430 |
# -*- coding: utf-8 -*-
from gettext import gettext as _
ACTIVITY_NAME = _('I know America')
PRESENTATION = [
_('Hello friends...'),
_('...tomorrow I have a\ntest about America...'),
_('...and I know nothing!!!'),
_('...what do I do???'),
_('Can I ask you something?'),
_('Will you help me?')
... | AlanJAS/iknowAmerica | recursos/comun/datos/commons.py | Python | gpl-3.0 | 1,689 |
/*
* 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 com.pulsiraj.dao.object;
import com.pulsiraj.beans.LegalEntity;
import com.pulsiraj.dao.pattern.GenericDAOImpl;
impor... | ZeleEG/diesel2016 | src/main/java/com/pulsiraj/dao/object/LegalEntityDAO.java | Java | gpl-3.0 | 665 |
using System.Collections.Generic;
using JetBrains.Annotations;
using KataPokerHand.Logic.Interfaces.TexasHoldEm.Rules;
namespace KataPokerHand.Logic.Interfaces.TexasHoldEm.Ranking.SubRanking
{
public interface IRankByCardIndex
{
bool HasSingleWinnerAtCardIndex(
int cardIndex,
[N... | tschroedter/csharp_examples | Katas/KataPokerHand/KataPokerHand.Logic.Interfaces/TexasHoldEm/Ranking/SubRanking/IRankByCardIndex.cs | C# | gpl-3.0 | 514 |
/*
# Copyright (C) 2005-2011 MaNGOS <http://www.getmangos.com/>
*
# Copyright (C) 2008-2011 Trinity <http://www.trinitycore.org/>
*
# Copyright (C) 2006-2011 ScriptDev2 <http://www.scriptdev2.com/>
*
# Copyright (C) 2010-2011 DarkmoonCore <http://www.darkmooncore.org/>
*
* This program is free software; you ca... | DarkmoonCore/DarkmoonCore-Cataclysm | src/server/scripts/EasternKingdoms/Scholomance/boss_the_ravenian.cpp | C++ | gpl-3.0 | 3,675 |