code stringlengths 3 1.05M | repo_name stringlengths 4 116 | path stringlengths 4 991 | language stringclasses 9
values | license stringclasses 15
values | size int32 3 1.05M |
|---|---|---|---|---|---|
package org.openbase.jul.pattern.controller;
/*
* #%L
* JUL Pattern Controller
* %%
* Copyright (C) 2015 - 2021 openbase.org
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, ... | DivineCooperation/jul | pattern/controller/src/main/java/org/openbase/jul/pattern/controller/ConfigurableController.java | Java | lgpl-3.0 | 1,249 |
using System;
using System.Collections;
using System.Collections.Specialized;
using System.Diagnostics;
using System.Globalization;
using System.Runtime.CompilerServices;
namespace Logging.Impl
{
/// <summary>
/// An implementation of <see cref="ILoggerFactory"/> that caches loggers created by the factory... | mishrsud/EnterpriseApplicationSamples | LoggingApplicationBlock/Source/Logging.Impl/AbstractCachingLoggerFactory.cs | C# | lgpl-3.0 | 3,872 |
package be.kwakeroni.workshop.java9.solution;
import java.io.IOException;
import java.io.UncheckedIOException;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Arrays;
import java.util.List;
public class Main {
public static void main(String[] args) throws Exception {
new Main().ha... | kwakeroni/workshops | java9/solution/src/main/java/be/kwakeroni/workshop/java9/solution/Main.java | Java | lgpl-3.0 | 1,540 |
"""
Property reference docs:
- https://docs.microsoft.com/en-us/office/client-developer/outlook/mapi/mapping-canonical-property-names-to-mapi-names#tagged-properties
- https://interoperability.blob.core.windows.net/files/MS-OXPROPS/[MS-OXPROPS].pdf
- https://fossies.org/linux/libpst/xml/MAPI_definitions.pdf
- http... | koodaamo/tnefparse | tnefparse/properties.py | Python | lgpl-3.0 | 63,627 |
/*-------------------------------------------------------------------------------------------------
_______ __ _ _______ _______ ______ ______
|_____| | \ | | |______ | \ |_____]
| | | \_| | ______| |_____/ |_____]
Copyright (c) 2016, antsdb.com and/or its affiliates. All rights reserved. ... | waterguo/antsdb | fish-server/src/main/java/com/antsdb/saltedfish/sql/vdm/StringLiteral.java | Java | lgpl-3.0 | 1,832 |
# BlenderBIM Add-on - OpenBIM Blender Add-on
# Copyright (C) 2020, 2021 Maxim Vasilyev <qwiglydee@gmail.com>
#
# This file is part of BlenderBIM Add-on.
#
# BlenderBIM Add-on 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 Softwar... | IfcOpenShell/IfcOpenShell | src/blenderbim/blenderbim/bim/module/drawing/gizmos.py | Python | lgpl-3.0 | 18,534 |
package ch.loway.oss.ari4java.generated.ari_1_5_0.models;
// ----------------------------------------------------
// THIS CLASS WAS GENERATED AUTOMATICALLY
// PLEASE DO NOT EDIT
// Generated on: Sat Sep 19 08:50:54 CEST 2015
// ----------------------------------------... | korvus81/ari4java | classes/ch/loway/oss/ari4java/generated/ari_1_5_0/models/FormatLangPair_impl_ari_1_5_0.java | Java | lgpl-3.0 | 1,312 |
<?php
namespace BlackBoxCode\Pando\ProductSaleBundle\Model;
use BlackBoxCode\Pando\BaseBundle\Model\IdInterface;
interface ProductVariantInventoryInterface extends IdInterface
{
/**
* @return integer
*/
public function getAmount();
/**
* @param integer $amount
* @return $this
*/
... | BlackBoxRepo/PandoProductSaleBundle | Model/ProductVariantInventoryInterface.php | PHP | lgpl-3.0 | 631 |
#region CodeMaid is Copyright 2007-2015 Steve Cadwallader.
// CodeMaid is free software: you can redistribute it and/or modify it under the terms of the GNU
// Lesser General Public License version 3 as published by the Free Software Foundation.
//
// CodeMaid is distributed in the hope that it will be useful, bu... | AlkindiX/codemaid | CodeMaid/Logic/Cleaning/CodeCleanupManager.cs | C# | lgpl-3.0 | 25,682 |
/*----------------------------------------------------------------------------*
* This file is part of Pitaya. *
* Copyright (C) 2012-2016 Osman KOCAK <kocakosm@gmail.com> *
* *
... | kocakosm/pitaya | src/org/kocakosm/pitaya/io/TextFiles.java | Java | lgpl-3.0 | 15,156 |
#include <list>
#include <QGLFunctions>
#include <QGLBuffer>
#include <QPaintDevice>
#include <QSharedPointer>
#include <QColor>
#include <QMap>
#include "Scene/transformation.h"
#include "Scene/camera.h"
#include "Scene/scene.h"
#include "Scene/mesh.h"
#include "Scene/meshinstance.h"
#include "Scene/helpers.h"
#incl... | lhethert/qgldemo | Renderer/glrenderer.cpp | C++ | lgpl-3.0 | 15,398 |
// Catalano Imaging Library
// The Catalano Framework
//
// Copyright © Diego Catalano, 2015
// diego.catalano at live.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Found... | cswaroop/Catalano-Framework | Catalano.Android.Image/src/Catalano/Imaging/Filters/Threshold.java | Java | lgpl-3.0 | 3,408 |
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Daniel Grunwald" email="daniel@danielgrunwald.de"/>
// <version>$Revision$</version>
// </file>
using System;
using System.Collections.Generic;
using System.IO;
using ICSharpCode.Core;
us... | kingjiang/SharpDevelopLite | samples/ICSharpCode.Core.Demo/AddInManager/Src/InstallableAddIn.cs | C# | lgpl-3.0 | 3,447 |
/*
* SonarQube
* Copyright (C) 2009-2019 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... | Godin/sonar | server/sonar-web/src/main/js/components/facet/__tests__/ListStyleFacet-test.tsx | TypeScript | lgpl-3.0 | 7,356 |
require 'optparse'
require 'rack'
require_relative './handler'
module RackCocaine
class Server < Rack::Server
class Options
def parse!(args)
options = {}
opt_parser = OptionParser.new("", 24, ' ') do |opts|
opts.banner = "Usage: cocaine-rackup [ruby options] [rack o... | fuCtor/rack-cocaine | lib/rack_cocaine/server.rb | Ruby | lgpl-3.0 | 3,360 |
/*
* Copyright (C) 2014 The AppCan Open Source Project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later versi... | pingping-jiang6141/Engine-Master | Engine/src/org/zywx/wbpalmstar/engine/EBrowserView.java | Java | lgpl-3.0 | 49,210 |
package ecologylab.serialization.deserializers.parsers.bibtex.entrytypes;
import ecologylab.serialization.annotations.bibtex_tag;
import ecologylab.serialization.annotations.bibtex_type;
import ecologylab.serialization.annotations.simpl_inherit;
import ecologylab.serialization.annotations.simpl_scalar;
import ec... | ecologylab/ecologylabFundamental | src/ecologylab/serialization/deserializers/parsers/bibtex/entrytypes/BibTeXTechReport.java | Java | lgpl-3.0 | 1,351 |
package org.orchestra.client;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.Reader;
import java.io.Unsuppor... | bigorc/orchestra | src/main/java/org/orchestra/client/ClientAuthHelper.java | Java | lgpl-3.0 | 7,259 |
using System;
using System.Runtime.Serialization;
using Sandbox.Common.ObjectBuilders;
namespace SEModAPIInternal.API.Entity.Sector.SectorObject.CubeGrid.CubeBlock
{
[DataContract( Name = "ConveyorBlockEntityProxy" )]
public class ConveyorBlockEntity : CubeBlockEntity
{
#region "Attributes"
public static strin... | Tyrsis/SE-Community-Mod-API | SEModAPIInternal/API/Entity/Sector/SectorObject/CubeGrid/CubeBlock/ConveyorBlockEntity.cs | C# | lgpl-3.0 | 846 |
/*
# (C) British Crown Copyright 2015 - 2020, Met Office
#
# This file is part of agg-regrid.
#
# agg-regrid is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the
# Free Software Foundation, either version 3 of the License, or
# (at you... | SciTools-incubator/iris-agg-regrid | agg_regrid/_agg_raster.cpp | C++ | lgpl-3.0 | 1,666 |
#include "ros1initializer.h"
#include <ros/ros.h>
#include <common/logging.h>
using namespace roscommunication;
Ros1Initializer::Ros1Initializer(QString name)
: mInitialized(false)
{
ros::VP_string initString;
QString nodeName = name;
ros::init(initString, nodeName.toStdString());
if(!ros::isInit... | piappl/ros2_benchmarking | comm/ros1node/ros1initializer.cpp | C++ | lgpl-3.0 | 620 |
using System;
using System.Linq;
using NUnit.Framework;
namespace StringCalcKata
{
[TestFixture]
public class StringCalcKataTests
{
public StringCalculator Calculator;
[TestFixtureSetUp]
public void CreateCalculator()
{
Calculator = new StringCalculator();
... | StormPooper/CSharpKatas | StringCalcKata/StringCalcKataTests.cs | C# | unlicense | 2,173 |
angular.module('dnsControllers', ['dnsServices', 'dnsModels'])
.controller('dnsCtrl', function($scope, $location, socket, Hosts, Zone) {
$scope.dns = {
zone : Zone.get(),
hosts : Hosts.list()
};
socket.on('new:host', function (host) {
var found = false;
if ($sc... | binRick/thc.digital | dnsServer/public/js/controllers/dns-controller.js | JavaScript | unlicense | 1,158 |
<?php
namespace Google\Service\Manager;
class FirewallModule extends \Google\Collection
{
protected $allowedType = 'Google\Service\Manager\AllowedRule';
protected $allowedDataType = 'array';
public $description;
public $network;
public $sourceRanges;
public $sourceTags;
public $targetTags;
public func... | inri13666/google-api-php-client-v2 | libs/Google/Service/Manager/FirewallModule.php | PHP | unlicense | 1,274 |
package com.mocha.util.queue;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
/**
* <strong>Title : ConcurrentLinkedQueueExtendsHandler </strong>. <br>
* <strong>Description : 队列管理.</strong> <br>
* <strong>Create on ... | lewjeen/framework | unitecore-parent/unitecore/unitecore-tools/src/main/java/com/mocha/util/queue/ConcurrentLinkedQueueExtendsHandler.java | Java | unlicense | 11,926 |
/*
* NOTE: This copyright does *not* cover user programs that use HQ
* program services by normal system calls through the application
* program interfaces provided as part of the Hyperic Plug-in Development
* Kit or the Hyperic Client Development Kit - this is merely considered
* normal use of the program, and do... | cc14514/hq6 | hq-util/src/main/java/org/hyperic/util/xmlparser/XmlParser.java | Java | unlicense | 18,165 |
/// <reference path="../typings/tsd.d.ts" />
import * as _ from 'lodash';
function hello(s: string) {
console.log(`hello, ${s}`);
}
hello('typescript');
function foo() {
}
_.each([12, "123"], (e) => console.log(e)); | cbjs/fe-learn | angular2/01-typescriptflow/src/hello.ts | TypeScript | unlicense | 220 |
# https://en.wikipedia.org/wiki/Treap
import random
import time
class Treap:
def __init__(self, key):
self.key = key
self.prio = random.randint(0, 1000000000)
self.size = 1
self.left = None
self.right = None
def update(self):
self.size = 1 + size(self.left) +... | indy256/codelibrary | python/treap_bst.py | Python | unlicense | 2,234 |
package android.support.v7.app;
import android.content.Context;
import android.content.res.Configuration;
import android.graphics.drawable.Drawable;
import android.support.v7.b.b;
import android.view.KeyEvent;
import android.view.View;
public abstract class a
{
public android.support.v7.b.a a(b paramb)
{
retu... | clilystudio/NetBook | allsrc/android/support/v7/app/a(1).java | Java | unlicense | 1,431 |
package com.ximalaya.ting.android.opensdk.datatrasfer;
import com.google.gson.reflect.TypeToken;
import com.ximalaya.ting.android.opensdk.model.album.HotAggregation;
import java.util.List;
class CommonRequest$29$1 extends TypeToken<List<HotAggregation>>
{
}
/* Location: E:\Progs\Dev\Android\Decompile\apkto... | clilystudio/NetBook | allsrc/com/ximalaya/ting/android/opensdk/datatrasfer/CommonRequest$29$1.java | Java | unlicense | 465 |
/**
* NOTE: This copyright does *not* cover user programs that use HQ
* program services by normal system calls through the application
* program interfaces provided as part of the Hyperic Plug-in Development
* Kit or the Hyperic Client Development Kit - this is merely considered
* normal use of the program, and d... | cc14514/hq6 | hq-server/src/main/java/org/hyperic/hq/livedata/server/session/LiveDataCacheKey.java | Java | unlicense | 2,028 |
<?php
App::uses('File', 'Utility');
class MinifyController extends CakeBootstrapAppController {
public $components = array(
'CakeBootstrap.AssetMinify',
'RequestHandler'
);
public function beforeFilter() {
parent::beforeFilter();
$this->Auth->allow(array(
'css',
'js'
));
/*
if ($this->requ... | brutesque/CakeBootstrap | Controller/MinifyController.php | PHP | unlicense | 2,070 |
namespace Logger.Interfaces
{
using Enums;
public interface IAppender
{
int Count { get; }
ILayout Layout { get; }
ReportLevel ReportLevel { get; set; }
void Append(string timeStamp, string reportLevel, string message);
}
} | GoldenR1618/SoftUni-Exercises-and-Exams | 07.C#_OOP_Advanced/07.SOLID/EXERCISE/Logger/Interfaces/IAppender.cs | C# | unlicense | 286 |
/*
* ImgHeaderCallback.java
*
* Copyright 2001-2007 Goldin-Rudahl Associates
*
* Created by Sally Goldin, 5/16/2001
*
* $Id: ImgHeaderCallback.java,v 1.20 2007/01/05 07:41:57 rudahl Exp $
* $Log: ImgHeaderCallback.java,v $
* Revision 1.20 2007/01/05 07:41:57 rudahl
* added Whatis info
*
* Revision 1.19 ... | patinyanudklin/git_testing | cpe-2015-projects/DragonCommon/javasrc/com/grs/dragon/ui/ImgHeaderCallback.java | Java | unlicense | 9,258 |
namespace Creuna.Basis.Revisited.Web.Business.UserHandling
{
public interface IUserAuthenticationHandler
{
bool Login(string username, string password, bool persistLogin);
void Logout();
}
} | Creuna-Oslo/Episerver.Basis.Slim | src/Template/Creuna.Basis.Revisited.Web/Business/UserHandling/IUserAuthenticationHandler.cs | C# | unlicense | 228 |
using System;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Palla.Labs.Vdt.App.Infraestrutura.Mongo;
namespace Palla.Labs.Vdt.Controllers
{
public class VerificaSaudeController : ApiController
{
private readonly RepositorioEquipamentos _repositorioEquipamentos;
public ... | mfpalladino/palla.labs.vdt | Server/src/Palla.Labs.Vdt.WebApi/Controllers/VerificaSaudeController.cs | C# | unlicense | 773 |
import { Injectable } from '@angular/core';
@Injectable()
export class JsonReferenceService {
constructor() { }
dereference<T>(obj: any, $ref: string): T {
if(!$ref.startsWith('#/')) {
console.warn('Invalid $ref. Only references to current document supported.', $ref);
return null;
}
let ... | gislikonrad/swangular-components | src/app/swangular-components/services/json-reference.service.ts | TypeScript | unlicense | 498 |
#include "HashMap.h"
#include <benchmark/benchmark.h>
#include <string>
#include <tr1/unordered_map>
#include <map>
#include <utility>
using namespace snippet::algo;
static const std::string gs_str_value = "0123456789";
template<typename T>
struct GetValue;
template<>
struct GetValue<int>
{
static int Get()
... | airekans/Snippet | cpp/algo/benchmark/HashMapInsertBenchmark.cpp | C++ | unlicense | 1,906 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | Slesa/Poseidon | old/src/1st/Persistence/Ics.NHibernate/Properties/AssemblyInfo.cs | C# | unlicense | 848 |
import fechbase
class Records(fechbase.RecordsBase):
def __init__(self):
fechbase.RecordsBase.__init__(self)
self.fields = [
{'name': 'FORM TYPE', 'number': '1'},
{'name': 'FILER FEC CMTE ID', 'number': '2'},
{'name': 'ENTITY TYPE', 'number': '3'},
{'n... | h4ck3rm1k3/FEC-Field-Documentation | fec/version/v3/F57.py | Python | unlicense | 1,916 |
#!/usr/bin/env python
"""
Largest product in a grid
Problem 11
Published on 22 February 2002 at 06:00 pm [Server Time]
In the 20x20 grid below, four numbers along a diagonal line have been marked in red.
The product of these numbers is 26 * 63 * 78 * 14 = 1788696.
What is the greatest product of four adjac... | slowkid/EulerProject | solutions/problem11.py | Python | unlicense | 5,822 |
#include <iostream>
#include <vector>
//merges two arrays
std::vector<int> merge(std::vector<int>& ar1,std::vector<int>& ar2,unsigned int& inv_count) {
unsigned int n=ar1.size();
unsigned int m=ar2.size();
std::vector<int> merged(n+m);
unsigned int a,b;
a=0;b=0;
for(unsigned int i=0;i<(n+m);++i) {
if... | lbovard/rosalind | algos/inv.cpp | C++ | unlicense | 1,432 |
// This is free and unencumbered software released into the public
// domain. For more information, see <http://unlicense.org> or the
// accompanying UNLICENSE file.
package navigator
import (
"fmt"
"go/ast"
"go/parser"
"go/token"
"io/ioutil"
"log"
"os"
"path/filepath"
"strings"
"sync"
"github.com/nelsam... | nelsam/gxui_playground | navigator/toc_tree.go | GO | unlicense | 11,823 |
"""
Your job is to write a function which increments a string, to create a new string. If the string already ends with a number, the number should be incremented by 1. If the string does not end with a number the number 1 should be appended to the new string.
Examples:
foo -> foo1
foobar23 -> foobar24
foo0042 -> fo... | aadithpm/code-a-day | py/String Incrementer.py | Python | unlicense | 744 |
namespace Persistence.Csv
{
/// <summary>
/// Only properties decorated with this attribute will be exported to CSV file.
/// </summary>
public class FieldAttribute : CsvAttribute
{
#region Fields
/// <summary>
/// Gets the column order of the resulting CSV line exported.
/// </summary>
/// <val... | jesuswasrasta/CsvRepository | Persistence.Csv/FieldAttribute.cs | C# | unlicense | 778 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package model;
import controller.GestorLocalidad;
import java.util.ArrayList;
import org.w3c.dom.Document;
/**
*
* @author soriagal
*/
public class ManejadorUbicar {
private WebUbicar webUbicar;
private Ges... | facundofarias/iBee | Source/WeatherService/src/model/ManejadorUbicar.java | Java | unlicense | 1,255 |
package com.stech.meetat.service;
public interface SchedulerService {
}
| vijayvelpula/MeetAt | src/main/java/com/stech/meetat/service/SchedulerService.java | Java | unlicense | 74 |
namespace SiteAccess.Model
{
// Bets for pinnacle
public enum OddsFormat
{
American,
Decimal,
Hongkong,
Indonesian,
Malay
}
public enum WinRiskType
{
Win,
Risk
}
public enum BetType
{
Moneyline,
... | bbenetskyy/WinParse | WinParse/SiteAccess/Model/PinnacleEnums.cs | C# | unlicense | 573 |
import _ from 'lodash';
import React from 'react';
import Reflux from 'reflux';
import { Navigation } from 'react-router';
import recipeActions from 'actions/recipe';
import recipeStore from 'stores/recipe';
import SapCalculator from 'components/sapCalculator';
import FormSaveRecipe from 'components/formSaveRecipe';
... | nazar/soapee-ui | src/app/views/recipeEdit.js | JavaScript | unlicense | 3,163 |
from ..parsers.errors import ErrorResponse
from warnings import warn
def raise_for_error(f):
"""
Wrapper method to parse any error response and raise the ErrorResponse instance if an error is encountered.
:param f:
:return:
"""
def inner(*args, **kwargs):
warn('`raise_for_error` is de... | ziplokk1/python-amazon-mws-tools | mwstools/requesters/base.py | Python | unlicense | 920 |
/*
* SmartGWT Mobile
* Copyright 2008 and beyond, Isomorphic Software, Inc.
*
* SmartGWT Mobile is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License version 3
* as published by the Free Software Foundation. SmartGWT Mobile is also
* available unde... | will-gilbert/SmartGWT-Mobile | mobile/src/main/java/com/smartgwt/mobile/client/widgets/toolbar/ToolStripButton.java | Java | unlicense | 2,366 |
package fr.mvanbesien.projecteuler.from001to020;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Callable;
public class Problem015 implements Callable<Long> {
public static void main(String[] args) throws Exception {
long nanotime = System.nanoTime();
System.out.println("Answer is... | mvanbesien/projecteuler | fr.mvanbesien.projecteuler/src/main/java/fr/mvanbesien/projecteuler/from001to020/Problem015.java | Java | unlicense | 846 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package consolefps.views;
import consolefps.models.elements.Elements;
/**
*
* @author krilivye
*/
public interface IAffichage {
public String afficher(Elements element);
}
| BTS-SIO2-2013/ZombieKiller | src/consolefps/views/IAffichage.java | Java | unlicense | 280 |
package bronz.accounting.bunk.ui.model;
import java.util.Calendar;
import java.util.GregorianCalendar;
import javax.swing.table.AbstractTableModel;
import bronz.accounting.bunk.ui.panel.CalendarPanel;
import bronz.utilities.custom.CustomCalendar;
import bronz.utilities.general.DateUtil;
public class CalendarTableMo... | robbinmathew/centbunk | java/BunkAccountingApplication/BunkAccountingSwingApp/src/main/java/bronz/accounting/bunk/ui/model/CalendarTableModel.java | Java | unlicense | 2,231 |
var AppGlobal = {
exposePrivateVariablesForTesting: true
};
var testableObject = function (exposePrivateVariablesForTesting) {
var _privateVar = "can't see this";
var _publicVar = "we see this fine";
function _privateFunction() {
console.log("Executed Private");
}
function _exposedFu... | Grax32/JurassicPlayground | JurassicPlayground/Scripts/RevealingModuleVariant.js | JavaScript | unlicense | 898 |
#!/usr/bin/env python
# -.- coding: utf-8 -.-y
import random
import socket
import os
import time
import threading
import Queue
import sys
import argparse
from multiprocessing import Process
print """\33[91m
═════════════════════════════════════════════════════════
███████ ██████ ███████
... | YodaBytePrograming/ChatRoom | ChatRoom 1.0/ChatRoom1.0Doser.py | Python | unlicense | 8,273 |
package discord.jar;
import java.awt.*;
import java.util.ArrayList;
import java.util.List;
public class EmbedBuilder {
private String title;
private String type;
private String description;
private String url;
private Color color;
private Embed.EmbedFooter footer;
private Embed.EmbedImage ... | discord-java/discord.jar | src/main/java/discord/jar/EmbedBuilder.java | Java | unlicense | 3,220 |
#include "version.h"
#include <boost/filesystem/operations.hpp>
#include <iostream>
#define PCRE2_CODE_UNIT_WIDTH 8
#include <pcre2.h>
#include "file.h"
#include "options.h"
#include "parser.h"
using namespace boost::filesystem;
using namespace std;
int errorcode;
PCRE2_SIZE erroffset;
inline unsigned int match(Pa... | SkyCorvette/TechLog | src/main.cpp | C++ | unlicense | 4,535 |
namespace Spinvoice.Infrastructure.Pdf
{
internal interface IImageBasedPageParser : IPageParser
{
}
} | aukolov/Spinvoice | src/Server/Spinvoice.Infrastructure.Pdf/IImageBasedPageParser.cs | C# | unlicense | 113 |
#!/usr/bin/env python
"""
Assorted utilities for manipulating latitude and longitude values
"""
from __future__ import unicode_literals
__version__ = "1.4"
import math, struct
def signbit(value):
"""
Test whether the sign bit of the given floating-point value is
set. If it is set, this generally mean... | NOAA-ORR-ERD/hazpy.unit_conversion | hazpy/unit_conversion/lat_long.py | Python | unlicense | 11,710 |
from math import log
def num_prime_factors(upper_limit):
"""
Create an array whose entries are the number of not necessarily distinct
prime factors of the index. The upper bound is the first number not
included.
"""
factor_count = [0] * upper_limit
prime = 2 #start with the first prime, whic... | peterstace/project-euler | OLD_PY_CODE/project_euler_old_old/187/187.py | Python | unlicense | 813 |
package cz.muni.fi.pv243.et.model;
import org.hibernate.annotations.LazyCollection;
import org.hibernate.annotations.LazyCollectionOption;
import org.hibernate.search.annotations.Field;
import org.hibernate.search.annotations.Indexed;
import org.hibernate.search.annotations.IndexedEmbedded;
import java.io.Serializabl... | rsmeral/pv243-jboss | project/project-et-ejb/src/main/java/cz/muni/fi/pv243/et/model/ExpenseReport.java | Java | unlicense | 4,903 |
Rails.application.routes.draw do
resources :transactions
resources :ratings
resources :user_identifications
root 'react#home'
resources :items
devise_for :user, only: []
# for facebook & twitter login
devise_for :users, controllers: { omniauth_callbacks: 'omniauth_callbacks' },
sk... | jennyyuejin/projectFox | config/routes.rb | Ruby | unlicense | 540 |
<?php
namespace Google\Service\Calendar;
class Colors extends \Google\Model
{
protected $calendarType = 'Google\Service\Calendar\ColorDefinition';
protected $calendarDataType = 'map';
protected $eventType = 'Google\Service\Calendar\ColorDefinition';
protected $eventDataType = 'map';
public $kind;
public $u... | inri13666/google-api-php-client-v2 | libs/Google/Service/Calendar/Colors.php | PHP | unlicense | 890 |
import when from 'when';
import { post } from 'utils/http';
import baseUrl from 'utils/baseUrl';
export function requestPasswordReset( email ) {
return when(
post( baseUrl( 'auth/reset_password' ), {
params: {
email
}
} )
);
}
export function verifyRese... | FrontSmith/FSFramework | client/src/app/resources/resets.js | JavaScript | unlicense | 540 |
using Lib.Graph;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Lib.Extensions;
namespace _079
{
/// <summary>
/// A common security method used for online banking is to ask the user for three random characters from a ... | nadrees/ProjectEuler | 079/Program.cs | C# | unlicense | 1,408 |
// ADDING JAVASCRIPT
function fp_scripts()
{
// Register the script like this for a theme:
// wp_register_script( $handle, $src, $deps, $ver, $in_footer );
wp_register_script( 'custom-script', get_template_directory_uri() . '/js/custom-script.js', array( 'jquery', 'jquery-ui-core' ), '20131118', tr... | PittsburghChris/usingWp_enqueue_script | functions.php | PHP | unlicense | 2,176 |
package com.ushaqi.zhuishushenqi.util;
import com.ushaqi.zhuishushenqi.a.e;
import com.ushaqi.zhuishushenqi.api.ApiService;
import com.ushaqi.zhuishushenqi.api.b;
import com.ushaqi.zhuishushenqi.model.ResultStatus;
final class l extends e<String, Void, ResultStatus>
{
private l(k paramk)
{
}
private static R... | clilystudio/NetBook | allsrc/com/ushaqi/zhuishushenqi/util/l(1).java | Java | unlicense | 833 |
<?php
/* @var $this CouponController */
/* @var $model Coupon */
$this->breadcrumbs=array(
'Coupons'=>array('index'),
$model->coupon_id=>array('view','id'=>$model->coupon_id),
'Update',
);
$this->menu=array(
array('label'=>'List Coupon', 'url'=>array('index')),
array('label'=>'Create Coupon', 'url'=>array('creat... | tierous/yiirisma | protected/views/coupon/update.php | PHP | unlicense | 589 |
/// @file SNIIS_Mac.cpp
/// Mac OSX implementation of input system
#include "SNIIS_Mac.h"
#include "SNIIS_Intern.h"
#if SNIIS_SYSTEM_MAC
using namespace SNIIS;
// --------------------------------------------------------------------------------------------------------------------
// Constructor
MacInput::MacInput(id ... | Schrompf/sniis | SNIIS_Mac.cpp | C++ | unlicense | 11,937 |
#include "cpp_header.h"
class Solution {
public:
int lengthOfLIS(vector<int>& nums)
{
vector<int> lens(nums.size(), 1);
int longest = 0;
for(int i = 0; i < nums.size(); i++)
{
for(int j = 0; j < i; j++)
{
if(nums[i] > nums[j])
{
lens[i] = max(lens[i], lens[j] + 1);
}
}
if(longes... | sczzq/symmetrical-spoon | leetcode/docu/300.cpp | C++ | unlicense | 1,318 |
module Bitcache
##
# A Bloom filter for Bitcache identifiers.
#
# Bloom filters are space-efficient probabilistic data structures used to
# test whether an element is a member of a set. False positives are
# possible, but false negatives are not. Elements can be added to the set,
# but not removed. The mo... | bendiken/bitcache | lib/bitcache/mri/filter.rb | Ruby | unlicense | 16,195 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Verse;
using RimWorld;
using Verse.AI;
namespace MountainMiner
{
class JobDriver_DrillUp : JobDriver
{
const int ticks = GenDate.TicksPerDay;
Building_MountainDrill comp => (Building_MountainDrill)Targe... | hunt3rkill3r/HcSK-HK | HcSK-HK/Mods/MountainMiner/Source/JobDriver_DrillUp.cs | C# | unlicense | 1,620 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Conveyor_JSONRPC_API._3._0._0
{
public class SliceCommand : Command
{
bool add_start_end;
string input_file;
ConveyorSliceJobMetadata job_metadata;
stri... | wildbillcat/RepRancher | Conveyor_JSONRPC_API/3.0.0/SliceCommand.cs | C# | unlicense | 1,430 |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace MakerFarm.Models
{
public class Print
{
public long PrintId { get; set; } /* Generic Id for the Print Job */
[Display(Name = "File Name", Description = "The file name of the print submitted"... | wildbillcat/MakerFarm | MakerFarm/Models/PrintModel.cs | C# | unlicense | 5,297 |
'use strict';
describe('Controller: MainCtrl', function () {
// load the controller's module
beforeEach(module('gftApp'));
var MainCtrl,
scope;
// Initialize the controller and a mock scope
beforeEach(inject(function ($controller, $rootScope) {
scope = $rootScope.$new();
MainCtrl = $controller... | murilobeltrame/gft | ui/test/spec/controllers/main.js | JavaScript | unlicense | 545 |
package com.smartgwt.mobile.client.internal.widgets.events;
import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.event.shared.HasHandlers;
public class ValuesSelectedEvent extends GwtEvent<ValuesSelectedHandler> {
private static Type<ValuesSelectedHandler> TYPE = null;
public static Type<Value... | will-gilbert/SmartGWT-Mobile | mobile/src/main/java/com/smartgwt/mobile/client/internal/widgets/events/ValuesSelectedEvent.java | Java | unlicense | 1,137 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("03_... | GoldenR1618/SoftUni-Exercises-and-Exams | 03.Programming_Fundamentals/05_Lists/Exercises/03_Array_Manipulator/Properties/AssemblyInfo.cs | C# | unlicense | 1,411 |
export { piMatch } from './pimatch'
export { titleCapitalize } from './titlecapitalization'
export { wordScore } from './wordscore' | mattmazzola/interview-questions | src/pluralsight/index.ts | TypeScript | unlicense | 131 |
/**
* NOTE: This copyright does *not* cover user programs that use HQ
* program services by normal system calls through the application
* program interfaces provided as part of the Hyperic Plug-in Development
* Kit or the Hyperic Client Development Kit - this is merely considered
* normal use of the program, and d... | cc14514/hq6 | hq-server/src/main/java/org/hyperic/hq/bizapp/shared/EventsBoss.java | Java | unlicense | 17,838 |
# coding: utf-8
from __future__ import unicode_literals
import base64
import functools
import json
import re
import itertools
from .common import InfoExtractor
from ..compat import (
compat_kwargs,
compat_HTTPError,
compat_str,
compat_urlparse,
)
from ..utils import (
clean_html,
determine_ext... | remitamine/youtube-dl | youtube_dl/extractor/vimeo.py | Python | unlicense | 46,520 |
(function(synth, lang, langIndex) {
var voice = synth.getVoices().filter(voice => voice.lang === lang)[langIndex],
text = window.getSelection().toString();
function speak(text, voice) {
var utterance = new SpeechSynthesisUtterance(text);
utterance.voice = voice;
utterance.lang ... | pansay/tts_bookmarklets | read_selection_in_pt_PT.js | JavaScript | unlicense | 461 |
/*
* 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 mx.neftaly.hackerrank.algorithms;
import java.util.Scanner;
/**
*
* @author samas
*/
public class Kangaroo {
/**
... | neftalyluis/HRSolutions | src/main/java/mx/neftaly/hackerrank/algorithms/Kangaroo.java | Java | unlicense | 882 |
package us.aaronweiss.pixalia.core;
import us.aaronweiss.pixalia.tools.Vector;
public class Player extends Pixal {
public Player(String hostname) {
super(hostname);
}
public void setColor(Vector color) {
this.color = color;
}
}
| aatxe/pixalia | src/main/java/us/aaronweiss/pixalia/core/Player.java | Java | unlicense | 240 |
package code.one;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
//Given an array of strings, group anagrams together.
//
//For example, given: ["eat", "tea", "tan", "ate", "nat", "bat"],
//Return:
//
//[
// ["ate", "eat","te... | POKLpokl112/leetcode | leetcode/src/code/one/GroupAnagrams_time.java | Java | unlicense | 1,763 |
#include<cstdio>
int t;
char c[250][250],u[250];
char go(int v)
{
if(v==t)return 1;
if(u[v])return 0;
u[v]=1;
for(int i=0;i<=t;i++)
if(c[v][i])
{
c[v][i]--;
if(go(i))
{
c[i][v]++;
return 1;
}
c[v]... | dk00/old-stuff | live-archive/2696.cpp | C++ | unlicense | 898 |
<script type="text/javascript">
$(document).ready(function(){
$('#form_data').bootstrapValidator({
message: 'This value is not valid',
feedbackIcons: {
valid: 'glyphicon glyphicon-ok',
invalid: 'glyphicon glyphicon-remove',
... | NizarHafizulllah/app_import_data | application/modules/user_profil/views/user_profil_view_js.php | PHP | unlicense | 5,814 |
#include<queue>
#include<cstdio>
#include<algorithm>
using namespace std;
const int N = 20012, inf = 2000000000;
int p[N], f[N], t[N], s[N], dg[N];
int main() {
int i, j, n;
while (scanf("%d", &n) == 1 && n) {
fill(dg, dg+n, 0);
fill(s, s+n, inf);
for (i = 0; i < n; ++i) {
scanf("%d %d %d", p+i, f... | dk00/old-stuff | ntuj/0948.cpp | C++ | unlicense | 748 |
package net.lardcave.keepassnfc.nfccomms;
import android.content.Intent;
import android.content.IntentFilter;
import android.nfc.FormatException;
import android.nfc.NdefMessage;
import android.nfc.NdefRecord;
import android.nfc.NfcAdapter;
import android.nfc.Tag;
import android.os.Parcelable;
import net.lardcave.keep... | nfd/KeePassNFC | app/src/main/java/net/lardcave/keepassnfc/nfccomms/KPNdef.java | Java | unlicense | 3,998 |
<div class="panel-group col-md-6 col-sm-12" id="accordion" style="padding-left: 0">
<div class="panel panel-primary">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapseOne">
<i class="fa fa-p... | ericfennis/bhp | resources/views/walkpath/create.blade.php | PHP | apache-2.0 | 1,467 |
/*******************************************************************************
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this... | ofbizfriends/vogue | framework/widget/src/org/ofbiz/widget/tree/ModelTreeCondition.java | Java | apache-2.0 | 20,242 |
/*
* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights
* Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "l... | dump247/aws-sdk-java | aws-java-sdk-elastictranscoder/src/main/java/com/amazonaws/services/elastictranscoder/model/transform/CreateJobPlaylistJsonUnmarshaller.java | Java | apache-2.0 | 4,113 |
/*
* #%L
* GwtMaterial
* %%
* Copyright (C) 2015 - 2018 GwtMaterialDesign
* %%
* 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
* ... | GwtMaterialDesign/gwt-material-addins | src/main/java/gwt/material/design/incubator/client/keyboard/events/ChangeEvent.java | Java | apache-2.0 | 1,811 |
__author__ = 'Alex'
from Movement import Movement
class BaseCommand:
def __init__(self, movement):
assert isinstance(movement, Movement)
self.name = 'unknown'
self.m = movement
def execute(selfself):pass
class Forward(BaseCommand):
def __init__(self, movement):
assert isi... | RobotTurtles/mid-level-routines | Apps/TurtleCommands.py | Python | apache-2.0 | 1,101 |
package com.compomics.pride_asa_pipeline.core.repository.impl.webservice;
import com.compomics.pride_asa_pipeline.core.model.modification.source.PRIDEModificationFactory;
import com.compomics.pride_asa_pipeline.core.model.modification.impl.AsapModificationAdapter;
import com.compomics.pride_asa_pipeline.core.repos... | compomics/pride-asa-pipeline | pride-asa-pipeline-core/src/main/java/com/compomics/pride_asa_pipeline/core/repository/impl/webservice/WSModificationRepository.java | Java | apache-2.0 | 1,930 |
class TemplateField
attr_accessor :page, :name, :type, :rect
# :internal => :external
def self.attribute_map
{
:page => :page, :name => :name, :type => :type, :rect => :rect
}
end
def initialize(attributes = {})
# Morph attribute keys into undescored rubyish style
if attributes.to_s != ""... | liosha2007/groupdocs-ruby | groupdocs/models/templatefield.rb | Ruby | apache-2.0 | 1,282 |
/*
Copyright 2019 Nationale-Nederlanden
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 agreed... | ibissource/iaf | cmis/src/main/java/nl/nn/adapterframework/extensions/cmis/servlets/AtomPub10.java | Java | apache-2.0 | 985 |
package alien4cloud.tosca.parser.impl.base;
import java.util.Map;
import java.util.Set;
import org.yaml.snakeyaml.nodes.MappingNode;
import org.yaml.snakeyaml.nodes.Node;
import org.yaml.snakeyaml.nodes.NodeTuple;
import org.yaml.snakeyaml.nodes.ScalarNode;
import alien4cloud.tosca.parser.INodeParser;
import alien4c... | PierreLemordant/alien4cloud | alien4cloud-core/src/main/java/alien4cloud/tosca/parser/impl/base/KeyDiscriminatorParser.java | Java | apache-2.0 | 3,172 |
(function (parent, $, element) {
function loadEvents() {
var date = new Date();
var d = date.getDate();
var m = date.getMonth();
var y = date.getFullYear();
return [
{
title: 'Appointment 1',
start: new Date(y, m, d, 10),
... | lowds/scheduler | src/Scheduler.UI/js/schedule.js | JavaScript | apache-2.0 | 1,409 |
package com.meituan.davy.myapplication.github;
import android.support.v4.app.Fragment;
import com.meituan.davy.myapplication.ContainerActivity;
public class GithubActivity extends ContainerActivity {
@Override
protected Fragment getFragment() {
return new GithubFragment();
}
} | davyjoneswang/UsefulDemSuit | app/src/main/java/com/meituan/davy/myapplication/github/GithubActivity.java | Java | apache-2.0 | 300 |