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
// spin_box.hpp /* neoGFX Resource Compiler Copyright(C) 2019 Leigh Johnston 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...
FlibbleMr/neogfx
tools/nrc/element_libraries/default/src/spin_box.hpp
C++
lgpl-3.0
3,226
/***************************************************************************** The Dark Mod GPL Source Code This file is part of the The Dark Mod Source Code, originally based on the Doom 3 GPL Source Code as published in 2011. The Dark Mod Source Code is free software: you can redistribute it ...
revelator/The-Darkmod-Experimental
src/game/script/Script_Doc_Export.cpp
C++
lgpl-3.0
12,622
module Spec module Runner class BacktraceTweaker def clean_up_double_slashes(line) line.gsub!('//','/') end end class NoisyBacktraceTweaker < BacktraceTweaker def tweak_backtrace(error) return if error.backtrace.nil? tweaked = error.backtrace.collect d...
jmecosta/VSSonarQubeQualityEditorPlugin
MSBuild/Gallio/bin/RSpec/libs/rspec-1.2.7/lib/spec/runner/backtrace_tweaker.rb
Ruby
lgpl-3.0
1,816
<!DOCTYPE html> <html lang="es"> <head> <!-- Google Tag Manager --> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= ...
parisopr/ventas
ingresos_por_canal/tipo_venta/por_negocio_division/index.php
PHP
unlicense
25,586
import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Random; /** * Randomly generates Secret Santa assignments for a given group. * <p> * All valid possible assignments are equally likely to be generated (uniform distribution). * * @author Michael Zaccard...
AetherWorks/SecretSanta
java/SecretSanta.java
Java
unlicense
2,008
<?php include '../test/connect.php'; $conn = mysql_connect($dbhost,$dbuser,$dbpass) or die ('Error connecting to mysql'); mysql_select_db($dbname); if(isset($_GET['query'])) { $query = $_GET['query']; } else { $query = ""; } if(isset($_GET['type'])) { $type = $_GET['type']; } else { $query = "count"; } if($ty...
dvelle/The-hustle-game-on-facebook-c.2010
hustle/hustle/arcade/search.php
PHP
unlicense
2,075
package com.google.gson; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; class Gson$FutureTypeAdapter<T> extends TypeAdapter<T> { private TypeAdapter<T> delegate; public T read(JsonReader paramJsonReader) { if (this.delegate == null) throw new IllegalStateException...
clilystudio/NetBook
allsrc/com/google/gson/Gson$FutureTypeAdapter.java
Java
unlicense
917
<?php class EtendardVideo extends WP_Widget{ private $error = false; private $novideo = false; public function __construct(){ parent::__construct( 'EtendardVideo', __('Etendard - Video', 'etendard'), array('description'=>__('Add a video from Youtube, Dailymotion or Vimeo.', 'etendard')) ); } ...
Offirmo/base-wordpress
backupbuddy_backup/wp-content/themes/Etendard/admin/widgets/video.php
PHP
unlicense
3,281
<?php $canon_options_frame = get_option('canon_options_frame'); ?> <div class="outter-wrapper post-footer feature"> <div class="wrapper"> <div class="clearfix"> <div class="foot left"><?php echo $canon_options_frame['footer_text'] ?></div> ...
jameymcelveen/com.flyingtigersrc.www
wp-content/themes/sport/inc/templates/footer/template_footer_post.php
PHP
unlicense
841
package com.smartgwt.mobile.client.widgets; import com.google.gwt.resources.client.ImageResource; public abstract class Action { private ImageResource icon; private int iconSize; private String title; private String tooltip; public Action(String title) { this.title = title; } pu...
will-gilbert/SmartGWT-Mobile
mobile/src/main/java/com/smartgwt/mobile/client/widgets/Action.java
Java
unlicense
1,126
class Enrollment < ActiveRecord::Base belongs_to :student belongs_to :course end
TSwimson/GA
week4/tue/active_record_associations/college/app/models/enrollment.rb
Ruby
unlicense
85
import os import sys import string import random import math ################################################# # State balance = 0 def deposit(amount): global balance balance += amount return balance def withdraw(amount): global balance balance -= amount return balance ##################...
SPbAU-ProgrammingParadigms/materials
python_2/common_objects.py
Python
unlicense
4,690
'use strict'; var app = angular.module('App', ['App.controller']);
mirzadelic/django-social-example
django_social_example/django_app/public/js/app/app.js
JavaScript
unlicense
68
/* ********************************************************************** /* * NOTE: This copyright does *not* cover user programs that use Hyperic * 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 D...
cc14514/hq6
hq-installer/src/main/java/org/hyperic/tools/ant/PropertiesFileMergerTask.java
Java
unlicense
8,153
package com.sochat.client; import java.math.BigInteger; import java.security.GeneralSecurityException; import java.security.KeyFactory; import java.security.PublicKey; import java.security.spec.RSAPublicKeySpec; public class ServerPublicKey { public static PublicKey getServerPublicKey(String publicKeyModulus, St...
ovaskevich/sochat
src/com/sochat/client/ServerPublicKey.java
Java
unlicense
732
package main type FluxConfig struct { Iam string `toml:"iam"` Url string `toml:"url"` Port int `toml:"port"` Logdir string `toml:"logdir"` Balancer FluxCluster `toml:"cluster"` //Jwts []JwtAuth `toml:"jwt"` } type JwtAuth struct { RequiredClaims []JwtClaim `toml:"...
zerocruft/flux
config.go
GO
unlicense
645
using UnityEngine; using System.Collections; using System.Collections.Generic; using BeatManagement; public class InitialBuildingEntryAnimation : Task { private TaskManager subtaskManager; private float baseStaggerTime; private float structStaggerTime; private float terrainStaggerTime; private boo...
chrsjwilliams/RTS_Blokus
Assets/Scripts/Pieces/Tasks/InitialBuildingEntryAnimation.cs
C#
unlicense
2,097
// https://github.com/KubaO/stackoverflown/tree/master/questions/html-get-24965972 #include <QtNetwork> #include <functional> void htmlGet(const QUrl &url, const std::function<void(const QString&)> &fun) { QScopedPointer<QNetworkAccessManager> manager(new QNetworkAccessManager); QNetworkReply *response = manager...
KubaO/stackoverflown
questions/html-get-24965972/main.cpp
C++
unlicense
1,330
using System; using System.Collections.Generic; using System.Linq; namespace NetGore { /// <summary> /// Provides helper functions for parsing command-line switches and the arguments that go with /// each of those switches. /// </summary> public static class CommandLineSwitchHelper { //...
LAGIdiot/NetGore
NetGore/Core/CommandLineSwitchHelper.cs
C#
unlicense
4,642
package com.elionhaxhi.ribbit.ui; import java.util.ArrayList; import java.util.List; import android.app.Activity; import android.app.AlertDialog; import android.net.Uri; import android.os.Bundle; import android.support.v4.app.NavUtils; import android.util.Log; import android.view.Menu; import android.view.MenuItem; i...
ElionHaxhi/Ribbit
src/com/elionhaxhi/ribbit/ui/RecipientsActivity.java
Java
unlicense
7,505
<?php /** * Pizza E96 * * @author: Paul Melekhov */ namespace App\Http; /** * Поднятие этого исключения служит сигналом для FrontController о том, * что нужно отобразить страницу с ошибкой HTTP/1.1 400 Bad Request */ class BadRequestException extends Exception { public function __construct($message = "", $...
gugglegum/pizza
app/library/Http/BadRequestException.php
PHP
unlicense
592
class PermissionRequired(Exception): """ Exception to be thrown by views which check permissions internally. Takes a single C{perm} argument which defines the permission that caused the exception. """ def __init__(self, perm): self.perm = perm def require_permissions(user, *permissio...
AnimeDB/adb-browser-frontend
adb/frontend/auth/decorators.py
Python
unlicense
2,476
package com.intershop.adapter.payment.partnerpay.internal.service.capture; import javax.inject.Inject; import com.google.inject.Injector; import com.intershop.adapter.payment.partnerpay.capi.service.capture.CaptureFactory; import com.intershop.api.service.payment.v1.capability.Capture; public class CaptureFactoryImp...
IntershopCommunicationsAG/partnerpay-example
s_payment_partnerpay/ac_payment_partnerpay/javasource/com/intershop/adapter/payment/partnerpay/internal/service/capture/CaptureFactoryImpl.java
Java
unlicense
578
// This Source Code is in the Public Domain per: http://unlicense.org package org.litesoft.commonfoundation.charstreams; /** * A CharSource is like a powerful version of a "char" based Iterator. */ public interface CharSource { /** * Report if there are any more characters available to get(). * <p/> ...
litesoft/LiteSoftCommonFoundation
src/org/litesoft/commonfoundation/charstreams/CharSource.java
Java
unlicense
2,332
package net.simpvp.Jail; import java.text.SimpleDateFormat; import java.util.Date; import java.util.UUID; import org.bukkit.Location; /** * Class representing the stored information about a jailed player */ public class JailedPlayer { public UUID uuid; public String playername; public String reason; public Str...
C4K3/Jail
src/main/java/net/simpvp/Jail/JailedPlayer.java
Java
unlicense
1,551
/* * 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-web/src/main/java/org/hyperic/hq/ui/action/portlet/autoDisc/AIPlatformWithStatus.java
Java
unlicense
2,391
#ifndef HAVE_spiral_io_hpp #define HAVE_spiral_io_hpp #include <cstdio> #include "spiral/core.hpp" #include "spiral/string.hpp" namespace spiral { struct IoObj { const ObjTable* otable; std::FILE* stdio; bool close_on_drop; }; auto io_from_val(Bg* bg, Val val) -> IoObj*; auto io_from_obj_ptr(void*...
honzasp/spiral
rt/include/spiral/io.hpp
C++
unlicense
2,505
package generics.p19; import java.util.Random; import utils.Generator; public class Good { private final int id; private String description; public Good(int id, String description) { this.id = id; this.description = description; } public static Generator<Good> generator...
bodydomelight/tij-problems
src/generics/p19/Good.java
Java
unlicense
619
var Theme = (function() { var Theme = function() { }; return Theme; })(); module.exports = Theme;
frostney/dropoff
lib/theme/index.js
JavaScript
unlicense
119
# -*- coding: utf-8 -*- """ Created on Fri Nov 15 15:55:28 2013 @author: dyanna """ import numpy as np from sklearn.svm import SVC def getSample(pointA, pointB, numberOfPoints): pointList = list(zip(np.random.uniform(-1,1.00,numberOfPoints),np.random.uniform(-1,1.00,numberOfPoints))) sample = np.array([(i[0]...
pramodh-bn/learn-data-edx
Week 7/qp.py
Python
unlicense
6,393
const fs = require('fs'); const electron = require('electron'); const cl = require('node-opencl'); const RUN_GAMELOOP_SYNC = true; const GAMETICK_CL = true; const INIT_OPENGL = false; let canvas; // canvas dom element let gl; // opengl context let clCtx; // opencl context let glProgram; // opengl shader prog...
JohannesBeranek/electron-pixels
renderer.js
JavaScript
unlicense
11,380
package net.yottabyte.game; import java.awt.*; /** * @author Jason Fagan */ public class BouncyBall { private int x; private int y; private int vx; private int vy; private int radius; private int drag; private int mass; public BouncyBall(int x, int y, int vx, int vy, int radius, in...
jasonfagan/game-experiments
physics/src/main/java/net/yottabyte/game/BouncyBall.java
Java
unlicense
3,996
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel.DataAnnotations.Schema; using System.Security.Claims; using System.Threading.Tasks; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; namespace ProjetoModelo.Infra.CrossCut...
lsilvestres/Exemplos
Arquitetura Modelo DDD/ProjetoModelo.Infra.CrossCutting.Identity/ApplicationUser.cs
C#
unlicense
2,453
from sqlalchemy import create_engine, Column, Integer, String, ForeignKey, Table from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker, relationship # demo many to many relationship # http://docs.sqlalchemy.org/en/rel_0_9/orm/basic_relationships.html#many-to-many engine = cre...
amitsaha/learning
python/sqla_learning/many_many_relation.py
Python
unlicense
3,275
/* @author Zakai Hamilton @component CoreJson */ screens.core.json = function CoreJson(me, { core, storage }) { me.init = function () { if (me.platform === "server") { me.request = require("request"); } }; me.loadComponent = async function (path, useCache = true) { ...
zakaihamilton/screens
packages/code/core/core_json.js
JavaScript
unlicense
7,342
exports = module.exports = addShims; function addShims() { Function.prototype.extend = function(parent) { var child = this; var args = Array.prototype.slice.call(arguments, 0); child.prototype = parent; child.prototype = new (Function.prototype.bind.apply(parent, args))(); child.prototype.constr...
cabloo/express-elect-seed
api/src/core/core.shims.js
JavaScript
unlicense
625
<?php if(empty($_POST['tipname'])||empty($_POST['tipid'])) exit; include("../theme/language/en/language.php"); echo $_POST['tipid']."<!-|||->"; switch ($_POST['tipname']) { case 'select_mode_free': echo $lang['tip_free']; break; case 'select_mode_host': echo $lang['tip_host']; break; case 'select_mode_local': ec...
dvelle/The-hustle-game-on-facebook-c.2010
hustle/hustle/nightworld/phpchat/includes/active_tip_word.php
PHP
unlicense
1,509
// stdafx.cpp : source file that includes just the standard includes // GetFolderTime.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "stdafx.h"
hyller/CodeLibrary
Visual C++ Example/第10章 文件操作与注册表编程/实例238——获取目录的创建时间/GetFolderTime/StdAfx.cpp
C++
unlicense
215
public class RandomColoringDiv2 { public int getCount(int maxR, int maxG, int maxB, int startR, int startG, int startB, int d1, int d2) { int colors = 0; int minR = Math.max(0, startR - d2); int minG = Math.max(0, startG - d2); int minB = Math.max(0, startB - d2); ...
mariusj/contests
srm540/src/RandomColoringDiv2.java
Java
unlicense
5,179
import os # Application constants APP_NAME = 'job_offers' INSTALL_DIR = os.path.dirname(os.path.abspath(__file__)) LOG_FORMAT = '%(asctime)s - %(name)s - %(levelname)s - %(message)s' LOG_NAME = os.path.join(INSTALL_DIR, 'job_offers.log') # Testing fixtures JOB_OFFER_FIXTURES = os.path.join(INSTALL_DIR, "fixtures/job_...
jvazquez/organization
organization/job_offers/constants.py
Python
unlicense
334
/*globals document, setTimeout, clearTimeout, Audio, navigator */ var MallardMayhem = MallardMayhem || {}; (function () { "use strict"; MallardMayhem.Duck = function (options) { var self = this; this.currentTimeout = null; this.domElement = document.createElement('span'); th...
HTMLToronto/MallardMayhem
mm/mm.client.duck.js
JavaScript
unlicense
7,282
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.Text; namespace GestionInmobiliaria.RESTServices { using GestionInmobiliaria.BusinessEntity; using GestionInmobiliaria.BusinessLogic; using System.ServiceModel.Web...
davidhh20/APPGI-UPC
Source/Services/GestionInmobiliaria.RESTServices/IUnidadInmobiliarias.cs
C#
unlicense
1,770
<?php namespace SKE\Command; use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Compo...
ooXei1sh/silex-ske-sandbox
src/SKE/Command/CacheClearCommand.php
PHP
unlicense
2,254
// Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Collections.Generic; using System.Diagnostics; using System.Text; using System.Text.RegularExpressions; using System.Xml; using Diagnostics.Tracing; using Diagnostics.Tracing.Parsers; using FastSerialization; using Ut...
brian-dot-net/writeasync
projects/TraceSample/source/TraceEvent/DynamicTraceEventParser.cs
C#
unlicense
49,945
<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/pages/datatables.css"> <link href="<?php echo base_url(); ?>assets/vendors/bootstrapvalidator/css/bootstrapValidator.min.css" rel="stylesheet"> <script type="text/javascript" src="<?php echo base_url(); ?>assets/vendors/bootstrapvalidator/...
NizarHafizulllah/simpatenksb
application/modules/kec_siu/views/kec_siu_status_view.php
PHP
unlicense
29,766
package br.com.tosin.ssd.utils; /** * Created by roger on 11/03/17. */ public class CONSTANTS_DIRECTIONS { public static final String NORTH = "N"; public static final String SOUTH = "S"; public static final String WEST = "W"; public static final String EAST = "E"; p...
TosinRoger/SmartSystemsDesign
src/br/com/tosin/ssd/utils/CONSTANTS_DIRECTIONS.java
Java
unlicense
526
using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Imaging; using System.IO; using System.Reflection; using System.Windows.Forms; using IFSExplorer.Properties; namespace IFSExplorer { public partial class MainForm : Form { private static readonly Dictionary<int,...
kivikakk/ifsexplorer
IFSExplorer/MainForm.cs
C#
unlicense
9,291
#!/usr/bin/env node var http = require('http'); var moment = require('moment'); var server = undefined; var threshold = undefined; var units = undefined; if (!isValid(process.argv)) { console.error('invalid arguments, expected hostname threshold and units'); process.exit(-1); } var request = http.request('http://...
initcz/thermohome-client-rpi
util/analyzeMissingDates.js
JavaScript
unlicense
1,860
using System; using System.Reactive; using System.Reactive.Concurrency; using System.Reactive.Subjects; using System.Threading; using System.Threading.Tasks; using BFF.DataVirtualizingCollection.PageStorage; using MrMeeseeks.Reactive.Extensions; namespace BFF.DataVirtualizingCollection.DataVirtualizingCollection { ...
Yeah69/BFF.DataVirtualizingCollection
BFF.DataVirtualizingCollection/DataVirtualizingCollection/SyncDataVirtualizingCollection.cs
C#
unlicense
2,505
#!/usr/bin/python # uart-eg01.py # # to run on the other end of the UART # screen /dev/ttyUSB1 115200 import serial def readlineCR(uart): line = b'' while True: byte = uart.read() line += byte if byte == b'\r': return line uart = serial.Serial('/dev/ttyUSB0', baudrate=115200, timeout=1) while True: uart...
CurtisLeeBolin/Examples_Python
UART01.py
Python
unlicense
567
#include "serverBase.h" int main(int argc, char** argv) { unsigned portNumber = 12943; if(argc >= 2) { portNumber = atoi(argv[1]); } try { asio::io_service io_service; asio::ip::tcp::endpoint endpoint(asio::ip::tcp::v4(), portNumber); TCPServer server(io_service, endpoint); ...
AdamHarter/flaming-octo-wookie
server/server.cpp
C++
unlicense
444
from rec import CourseRecord from score import RoomScore from evaluation import ScheduleEvaluation FULL_HOURS = 8 # 8:00AM - 4:00PM utilization PARTIAL_HOURS = FULL_HOURS * 0.75 #75% HALF_HOURS = FULL_HOURS * 0.50 #50% SPARSE_HOURS = FULL_HOURS * 0.25 #25% class LocationScore: def __init__(self, evals=No...
jbrackins/scheduling-research
src/location.py
Python
unlicense
3,581
package ua.clinic.tests.integration; import com.fasterxml.jackson.databind.ObjectMapper; import org.junit.Test; import org.junit.runner.RunWith; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfi...
beamka/Polyclinic
Clinic/src/test/java/ua/clinic/tests/integration/UserdetailsControllerTest.java
Java
unlicense
3,482
require 'google_tts/connector' require 'google_tts/query_builder' require 'google_tts/parser' require 'google_tts/mp3writer' module GoogleTts VERSION = "0.1.0" class Client include GoogleTts def initialize(connector = Connector.new, query_builder = QueryBuilder.new, ...
filipesperandio/google_tts2
lib/google_tts.rb
Ruby
unlicense
1,167
"""redblue_project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.9/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') C...
thinkAmi-sandbox/Django_iis_global_static_sample
redblue_project/urls.py
Python
unlicense
991
using UnityEngine; using UnityEngine.SceneManagement; public class ShowModeA : MonoBehaviour { public Texture AModeTexture; public Texture BModeTexture; private PlayerControllerBMode playerControllerBMode; private GameController gameController; void Start () { InitPlayerController(); ...
Maximetinu/No-Mans-Flappy-Unity
Assets/Scripts/MenuButtons/ShowModeA.cs
C#
unlicense
1,678
/* * Copyright 2002-2008 the original author or authors. * * 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 requi...
codeApeFromChina/resource
frame_packages/java_libs/spring-2.5.6-src/src/org/springframework/util/CollectionUtils.java
Java
unlicense
8,998
#define LOG_MODULE PacketLogModuleIgmpLayer #include "IgmpLayer.h" #include "PacketUtils.h" #include "Logger.h" #include <string.h> #include "EndianPortable.h" namespace pcpp { /************* * IgmpLayer *************/ IgmpLayer::IgmpLayer(IgmpType type, const IPv4Address& groupAddr, uint8_t maxRes...
seladb/PcapPlusPlus
Packet++/src/IgmpLayer.cpp
C++
unlicense
14,266
#include "line_modification.hh" #include "buffer.hh" #include "unit_tests.hh" namespace Kakoune { static LineModification make_line_modif(const Buffer::Change& change) { LineCount num_added = 0, num_removed = 0; if (change.type == Buffer::Change::Insert) { num_added = change.end.line - change.beg...
alpha123/kakoune
src/line_modification.cc
C++
unlicense
6,123
#ifndef __NETWORKBALANCER_HPP #define __NETWORKBALANCER_HPP #include <stdlib.h> namespace Network { class NetworkBalancer { public: /** * @brief NetworkBalancer Class constructor */ NetworkBalancer(); /** * @brief sendTroughBalancer Sends a buffer throu...
magfernandez/TIDTest
src/Network/NetworkBalancer.hpp
C++
unlicense
1,492
/** * This is a demo class * * @author Ravi */ public class Demo { /** * This is the main method * * @param args */ public static void main(String[] args) { System.out.println("This is a demo."); } }
PatchRowcester/LearningJava
Demo/src/Demo.java
Java
unlicense
239
energies = dict() energies[81] = -3.17 # Ammoniadimer.xyz energies[82] = -5.02 # Waterdimer.xyz energies[83] = -1.50 # BenzeneMethanecomplex.xyz energies[84] = -18.61 # Formicaciddimer.xyz energies[85] = -15.96 # Formamidedimer.xyz energies[86] = -20.65 # Uracildimerhbonded.xyz energies[87] ...
andersx/s22-charmm
structures/ref.py
Python
unlicense
2,038
export class InvalidTimeValueError extends Error { constructor(unit: string, providedValue: number) { super(`Cannot create a valid time with provided ${unit} value: ${providedValue}`); } }
rizadh/scheduler
src/InvalidTimeValueError.ts
TypeScript
unlicense
197
avatar = function(x){ this.x = x; this.y = 0; this.prevY = 0; this.velocity_x = 0; this.velocity_y = 0; this.img = loadImage("stickman.png"); this.crouch = loadImage("crouch.png"); this.width = 16; this.standingHeight=64; this.crouchHeight=44; this.height = this.standingHeight; this.collisionCheck = []; };...
rizsi/szakkor2014
orak/sa-23/avatar.js
JavaScript
unlicense
3,166
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * SYSTEM/FS/FAT.H * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #ifndef FAT_H_INCLUDED #define FAT_H_INCLUDED #include <FORMATTING.H> typedef struct _FAT121632_BPB { uint8_t OEMName[8]; uint16_t BytesPerSector; uint8_t SectorsPe...
basicfreak/BOS
0.0.1/SRC/SYSTEM/FS/FAT.H
C++
unlicense
2,287
#include "Union.h" bool Union::contains(const Vector2D& point) const { for (auto&& figure : figures) if (figure->contains(point)) return true; return false; } Figure* Union::createCopy() const { return new Union(*this); } std::ostream &operator<<(std::ostream& os, const Union* un) { ...
Lyrositor/insa
3if/oo/tp-oo_4/src/Union.cpp
C++
unlicense
535
#include "com_object.hpp" #include <Windows.h> namespace pw { com_object::com_object() { CoInitializeEx(nullptr, COINIT_MULTITHREADED); } com_object::~com_object() { CoUninitialize(); } }
phwitti/cmdhere
src/base/com_object.cpp
C++
unlicense
231
package crashreporter.api; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; /** * Registry for API provider objects. * * @author Richard */ public class Registry { private static final Map<String, Pasteb...
richardg867/CrashReporter
src/crashreporter/api/Registry.java
Java
unlicense
3,754
package gui.dragndrop; import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.*; import javafx.scene.input.*; import javafx.scene.layout.*; import javafx.scene.paint.Color; import javafx.stage.Stage; public class DragAndDrop extends Application { public void start(Stage stag...
KonstantinTwardzik/Graphical-User-Interfaces
CodeExamples/src/gui/dragndrop/DragAndDrop.java
Java
unlicense
3,091
var leaderboard2 = function(data) { return data.data.sort(function(a,b){return b.points-a.points;}); }; function liCreate(name,points) { var li = $('<li>'+name+'</li>'); li.append('<span>'+points+'</span>'); } $(document).ready(function() { // var sorted = leaderboard2(data); // for (var i=0; i<sorted.leng...
sherylpeebee/redditClone
own-playground/karma/script.js
JavaScript
unlicense
1,196
package lcd2usb import ( "errors" "fmt" "github.com/schleibinger/sio" ) type cmd byte const ( cmdPrefix cmd = 0xfe cmdBacklightOn = 0x42 cmdBacklightOff = 0x46 cmdBrightnes = 0x99 // brightnes cmdContrast = 0x50 // contrast cmdAutoscrollOn = 0x51 cmdAutoscroll...
Merovius/go-misc
lcd2usb/main.go
GO
unlicense
3,074
public class Student { private String namn; private int födelseår, status, id; public Student(){} public String getNamn() { return namn; } public void setNamn(String nyNamn) { namn=nyNamn; } public int getId() { return id; } public void setId(int nyId) { id=nyId; } public int getStatus() { ret...
andreasaronsson/introduktion_till_informatik
tebrakod/Student.java
Java
apache-2.0
589
package com.jerry.controller; import com.jerry.model.TBanquet; import com.jerry.service.BanquetService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web...
luoyefeiwu/learn_java
jpa/src/main/java/com/jerry/controller/BanquetController.java
Java
apache-2.0
840
/*! * Ext JS Library 3.4.0 * Copyright(c) 2006-2011 Sencha Inc. * licensing@sencha.com * http://www.sencha.com/license */ /** * @class Ext.dd.DragTracker * @extends Ext.util.Observable * A DragTracker listens for drag events on an Element and fires events at the start and end of the drag, * as well a...
ahwxl/cms
icms/src/main/webapp/res/extjs/src/dd/DragTracker.js
JavaScript
apache-2.0
7,637
<?php /** * @link https://www.humhub.org/ * @copyright Copyright (c) 2015 HumHub GmbH & Co. KG * @license https://www.humhub.com/licences */ namespace humhub\modules\content\widgets; /** * Delete Link for Wall Entries * * This widget will attached to the WallEntryControlsWidget and displays * the "Delete" Li...
calonso-conabio/intranet
protected/humhub/modules/content/widgets/DeleteLink.php
PHP
apache-2.0
931
/* * 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 file to You under the Apache License, Version 2.0 (the * "License"); you may ...
gcolin/jmx-web-console
jmx-embedded/src/main/java/net/gcolin/jmx/console/embedded/BootStrapJmxServlet.java
Java
apache-2.0
3,657
/** * Copyright 2014 TangoMe Inc. * * 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 ag...
DevOps-TangoMe/flume-redis
flume-redis-sink/src/main/java/com/tango/logstash/flume/redis/sink/serializer/Serializer.java
Java
apache-2.0
1,070
/* * 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 file to You under the Apache License, Version 2.0 * (the "License"); you may ...
pimtegelaar/commons-io-test3
src/main/java/org/apache/commons/io/output/TeeOutputStream.java
Java
apache-2.0
3,320
package org.renjin.primitives; import org.renjin.eval.Context; import org.renjin.eval.EvalException; import org.renjin.primitives.annotations.processor.ArgumentException; import org.renjin.primitives.annotations.processor.ArgumentIterator; import org.renjin.primitives.annotations.processor.WrapperRuntime; import org....
bedatadriven/renjin-statet
org.renjin.core/src-gen/org/renjin/primitives/R$primitive$file$access.java
Java
apache-2.0
3,115
using System.Diagnostics; namespace Lucene.Net.Index { using Lucene.Net.Util; /* * 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. ...
laimis/lucenenet
src/Lucene.Net.TestFramework/Index/AllDeletedFilterReader.cs
C#
apache-2.0
1,641
package files import ( "bytes" "io" "io/ioutil" "strings" "github.com/golang/protobuf/proto" "github.com/octavore/nagax/util/errors" uuid "github.com/satori/go.uuid" "github.com/willnorris/imageproxy" "github.com/ketchuphq/ketchup/proto/ketchup/models" ) func (m *Module) Upload(filename string, wr io.Reade...
ketchuphq/ketchup
server/files/actions.go
GO
apache-2.0
2,177
sap.ui.define(['sap/ui/webc/common/thirdparty/base/asset-registries/Icons'], function (Icons) { 'use strict'; const name = "status-completed"; const pathData = "M256 0q53 0 99.5 20T437 75t55 81.5 20 99.5-20 99.5-55 81.5-81.5 55-99.5 20-99.5-20T75 437t-55-81.5T0 256t20-99.5T75 75t81.5-55T256 0zM128 256q-14 0-23 9t-9 ...
SAP/openui5
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons/v5/status-completed.js
JavaScript
apache-2.0
673
package com.yueny.demo.downlatch.holder; import java.util.List; import java.util.Vector; import org.apache.commons.collections4.CollectionUtils; import com.yueny.demo.downlatch.bo.RecoverResult; /** * @author yueny09 <deep_blue_yang@163.com> * * @DATE 2016年3月22日 下午1:15:25 * */ public class Trans...
yueny/pra
exec/src/main/java/com/yueny/demo/downlatch/holder/TransResultHolder.java
Java
apache-2.0
1,149
using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Web.Http; using Divergent.Sales.Data.Context; namespace Divergent.Sales.API.Controllers { [RoutePrefix("api/orders")] public class OrdersController : ApiController { private readonly ISalesContext _context;...
jbogard/Workshop.Microservices
exercises/src/01 CompositeUI/after/Divergent.Sales.API/Controllers/OrdersController.cs
C#
apache-2.0
1,038
from google.appengine.ext import db class Stuff (db.Model): owner = db.UserProperty(required=True, auto_current_user=True) pulp = db.BlobProperty() class Greeting(db.Model): author = db.UserProperty() content = db.StringProperty(multiline=True) avatar = db.BlobProperty() date = db.DateTimeProp...
0--key/lib
portfolio/2009_GoogleAppEngine/apps/0--key/models.py
Python
apache-2.0
651
package io.github.mayunfei.simple; /** * Created by mayunfei on 17-9-7. */ public class OrientationUtils { }
MaYunFei/TXLiveDemo
app/src/main/java/io/github/mayunfei/simple/OrientationUtils.java
Java
apache-2.0
113
using System; using System.Collections.Generic; using System.Linq; using System.Text; using LCL.Domain.Model; using LCL.Domain.Specifications; namespace LCL.Domain.Repositories.Specifications { public class SalesOrderIDEqualsSpecification : Specification<SalesOrder> { private readonly G...
luomingui/LCLFramework
LCLDemo/LCL.Domain/Specifications/SalesOrderIDEqualsSpecification.cs
C#
apache-2.0
635
/* * Swift Parallel Scripting Language (http://swift-lang.org) * Code from Java CoG Kit Project (see notice below) with modifications. * * Copyright 2005-2014 University of Chicago * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Licens...
swift-lang/swift-k
src/org/griphyn/vdl/mapping/nodes/RootClosedMapDataNode.java
Java
apache-2.0
7,772
var baseClone = require('./_baseClone'); /** * This method is like `_.clone` except that it accepts `customizer` which * is invoked to produce the cloned value. If `customizer` returns `undefined`, * cloning is handled by the method instead. The `customizer` is invoked with * up to four arguments; (value [, index|...
ionutbarau/petstore
petstore-app/src/main/resources/static/node_modules/bower/lib/node_modules/lodash/cloneWith.js
JavaScript
apache-2.0
1,117
/* * #! * Ontopoly Editor * #- * Copyright (C) 2001 - 2013 The Ontopia Project * #- * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2....
ontopia/ontopia
ontopoly-editor/src/main/java/ontopoly/components/FieldInstanceNumberField.java
Java
apache-2.0
2,944
/********************************************************************** Copyright (c) 2006 Erik Bengtson and others. 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. You may obtain a copy of the License at ht...
hopecee/texsts
samples/src/java/org/jpox/samples/types/stringbuffer/StringBufferHolder.java
Java
apache-2.0
1,432
/* * Copyright 2017-2022 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 "licen...
aws/aws-sdk-java
aws-java-sdk-importexport/src/main/java/com/amazonaws/services/importexport/model/transform/CancelJobRequestMarshaller.java
Java
apache-2.0
2,038
/* * Copyright 2017-2022 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 "licen...
aws/aws-sdk-java
aws-java-sdk-personalize/src/main/java/com/amazonaws/services/personalize/model/DescribeAlgorithmRequest.java
Java
apache-2.0
3,808
package libgbust import ( "io/ioutil" "net/http" "net/url" "unicode/utf8" ) // CheckDir is used to execute a directory check func (a *Attacker) CheckDir(word string) *Result { end, err := url.Parse(word) if err != nil { return &Result{ Msg: "[!] failed to parse word", Err: err, } } fullURL := a.conf...
kkirsche/gbust
libgbust/check.go
GO
apache-2.0
1,062
/** * 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 file * to you under the Apache License, Version 2.0 (the * "License"); you...
s4/s4
s4-comm/src/main/java/org/apache/s4/comm/zk/ZkTaskManager.java
Java
apache-2.0
7,311
package chatty.util.api; import chatty.Helper; import chatty.util.DateTime; import java.util.LinkedHashMap; import java.util.Locale; import java.util.logging.Logger; /** * Holds the current info (name, viewers, title, game) of a stream, as well * as a history of the same information and stuff like when the info wa...
Javaec/ChattyRus
src/chatty/util/api/StreamInfo.java
Java
apache-2.0
19,898
/*********************************************************************************************** * * Copyright (C) 2016, IBL Software Engineering spol. s r. o. * * 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 cop...
iblsoft/iwxxm-validator
src/main/java/com/iblsoft/iwxxm/webservice/ws/internal/IwxxmWebServiceImpl.java
Java
apache-2.0
2,770
# Copyright 2011 WebDriver committers # Copyright 2011 Google Inc. # # 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 ap...
hali4ka/robotframework-selenium2library
src/Selenium2Library/lib/selenium-2.8.1/py/selenium/webdriver/common/action_chains.py
Python
apache-2.0
7,157
package org.jboss.resteasy.reactive.client.processor.beanparam; import static org.jboss.resteasy.reactive.common.processor.ResteasyReactiveDotNames.BEAN_PARAM; import static org.jboss.resteasy.reactive.common.processor.ResteasyReactiveDotNames.COOKIE_PARAM; import static org.jboss.resteasy.reactive.common.processor.Re...
quarkusio/quarkus
independent-projects/resteasy-reactive/client/processor/src/main/java/org/jboss/resteasy/reactive/client/processor/beanparam/BeanParamParser.java
Java
apache-2.0
9,998
import * as React from 'react' import styled from 'styled-components' import { colors } from 'styles/variables' interface InputFeedbackProps { className?: string valid?: boolean } const InputFeedback: React.SFC<InputFeedbackProps> = ({ className, children }) => ( <div className={className}>{children}</div> ) e...
blvdgroup/crater
priv/crater-web/src/components/ui/InputFeedback.tsx
TypeScript
apache-2.0
479