repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
Squareys/magnum-examples | src/picking/PickingExample.cpp | 14002 | /*
This file is part of Magnum.
Original authors — credit is appreciated but not required:
2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018 —
Vladimír Vondruš <mosra@centrum.cz>
This is free and unencumbered software released into the public domain.
Anyone is free to copy, mo... | unlicense |
bpiec/monkeylang_csharp | Monkey.Ast/Expressions/FunctionLiteral.cs | 1865 | using Monkey.Ast.Statements;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Monkey.Ast.Expressions
{
public class FunctionLiteral : IExpression
{
public string TokenLiteral => Token?.Literal;
public override string ToString()
{
var o = ne... | unlicense |
jlaura/isis3 | isis/src/voyager/objs/VoyagerCamera/VoyagerCamera.cpp | 7914 | /** This is free and unencumbered software released into the public domain.
The authors of ISIS do not claim copyright on the contents of this file.
For more details about the LICENSE terms and the AUTHORS, you will
find files of those names at the top level of this repository. **/
/* SPDX-License-Identifier: CC0-1.0... | unlicense |
tpetrina/presentations | 2018/Fer-UWP/Xamarin/Xamarin/App.xaml.cs | 545 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xamarin.Forms;
namespace Xamarin
{
public partial class App : Application
{
public App ()
{
InitializeComponent();
MainPage = new Xamarin.MainPage();
}
protected override void OnStart ()
... | unlicense |
OneNationUnderCanadia/Engineering-Projects-Repo | Broomba/src/main/Magnets.java | 2156 | package main;
import lejos.nxt.SensorPort;
import lejos.nxt.addon.MagneticSensor;
import lejos.robotics.navigation.DifferentialPilot;
import lejos.util.Delay;
/**
* Abstraction for Magnets
*
* @author Joey Spillers
*/
public class Magnets { ///[0] Forward, [1] Right, [2] Back, [3] Left
static int[] low = {... | unlicense |
Zhiyuan-Yang/LeetCode | SearchRotatedArray.java | 1029 | public class Solution {
public int search_bf(int[] A, int target) {
for (int i = 0; i < A.length; i++) {
if (A[i] == target) {
return i;
}
}
return -1;
}
public int search_bs(int[] A, int target) {
return searchHelper(A, 0, A.length-1,... | unlicense |
bendiken/bitcache | spec/zeromq_spec.rb | 100 | require File.join(File.dirname(__FILE__), 'spec_helper')
describe Bitcache::ZeroMQ do
# TODO
end
| unlicense |
Laure129/findheadposes | djangoapp/admin.py | 267 | from django.contrib import admin
from .models import User, Gallery, Photo
class PhotoAdmin(admin.ModelAdmin):
list_display = ['image', 'task', 'gallery']
class Meta:
model = Photo
admin.site.register(Gallery)
admin.site.register(Photo, PhotoAdmin)
| unlicense |
pedroedrasousa/opengl-stuff-cpp | engine/Frustum.cpp | 7477 |
#include <windows.h>
#include <math.h>
#include "Frustum.h"
void Frustum::ComputeFrustum(const Mat4 &mProjection, const Mat4 &mModelView)
{
Mat4 mClip;
mClip = mProjection * mModelView;
// Extrair os planos que limitam a cena
m_Frustum[RIGHT].a = mClip.m[ 3] - mClip.m[ 0];
m_Frustum[RIGHT].b = mClip.m[ 7] -... | unlicense |
SandraKrle/sandrakrle.github.io | assets/js/header.js | 693 | function myFunction() {
var x = document.getElementById("myTopnav");
if (x.className === "topnav") {
x.classList += " responsive";
}
else if (x.className === "topnav topnav-scrolled") {
x.className += " responsive";
}
else if (x.classList === "topnav topnav-scroll... | unlicense |
pythonpatterns/patterns | p0093.py | 92 | import numpy as np
v = np.array([1,2,3,4]).reshape(-1,1)
print(v)
"""<
[[1][2][3][4]]
>"""
| unlicense |
DevJPM/CryptoJPM | Source/CryptoPPTests/stdafx.cpp | 308 | // stdafx.cpp : Quelldatei, die nur die Standard-Includes einbindet
// CryptoPPTests.pch ist der vorkompilierte Header.
// stdafx.obj enthält die vorkompilierten Typinformationen
#include "stdafx.h"
// TODO: Auf zusätzliche Header verweisen, die in STDAFX.H
// und nicht in dieser Datei erforderlich sind.
| unlicense |
tierous/yiirisma | protected/controllers/CommentController.php | 2431 | <?php
class CommentController extends Controller {
public $layout = '//layouts/column2';
public function actionView($id) {
IsAuth::Admin();
$this->render('view', array(
'model' => $this->loadModel($id),
));
}
public function actionCreate() {
IsAuth::Admin(... | unlicense |
pirati-cz/dokuwiki-piratiform | widgets/SelectWidget.php | 4293 | <?php
require_once('Widget.php');
class SelectWidget extends Widget {
public function render(){
if($this->getOption('expanded',false)){
$out = '';
$out .= '<div class="control-group';
if($this->hasOption('rowclass')) $out .= ' '.$this->getOption('rowclass');
... | unlicense |
jlaura/isis3 | isis/src/qisis/objs/Directory/Directory.cpp | 64629 | /** This is free and unencumbered software released into the public domain.
The authors of ISIS do not claim copyright on the contents of this file.
For more details about the LICENSE terms and the AUTHORS, you will
find files of those names at the top level of this repository. **/
/* SPDX-License-Identifier: CC0-1.0... | unlicense |
yafeunteun/PSEUDO-IRC-SERVER | doc/html/search/enumvalues_62.js | 149 | var searchData=
[
['banned',['BANNED',['../channel_8h.html#a015eb90e0de9f16e87bd149d4b9ce959af4e03aa221959f565374a83c85ef7f2f',1,'channel.h']]]
];
| unlicense |
AnCh7/sweetshot | src/Steepshot.Core/Models/Requests/LoginRequest.cs | 733 | using System;
using Newtonsoft.Json;
namespace Steepshot.Core.Models.Requests
{
public class LoginWithPostingKeyRequest : BaseRequest
{
public LoginWithPostingKeyRequest(string username, string postingKey)
{
if (string.IsNullOrWhiteSpace(username)) throw new ArgumentNullException(n... | unlicense |
cartman300/Vulkan.NET | Vulkan.NET/VK_KHR_surface/Structs_VK_KHR_surface.cs | 1080 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using size_t = System.IntPtr;
using uint32_t = System.UInt32;
using int32_t = System.Int32;
using uint8_t = System.Byte;
using uint64_t = System.UInt64;
using VkSurfaceTransformFlagsKHR = System.UInt32... | unlicense |
muhit18/metrouni | views/admin/hours/tables/hours.php | 2140 | <?php if ( !empty($hours)) : ?>
<table border="0" class="table-list">
<thead>
<tr>
<th width="20"><?php echo form_checkbox(array('name' => 'action_to_all', 'class' => 'check-all')); ?></th>
<th><?php echo lang('metrouni:hour_lecture_label'); ?></th>
... | unlicense |
zyxakarene/LearningOpenGl | MainGame/src/zyx/OnTeaPotClicked.java | 671 | package zyx;
import zyx.engine.curser.CursorManager;
import zyx.engine.curser.GameCursor;
import zyx.engine.utils.worldpicker.ClickedInfo;
import zyx.game.controls.sound.SoundManager;
import zyx.utils.cheats.DebugPoint;
import zyx.engine.utils.worldpicker.IWorldPickedItem;
import zyx.game.controls.input.MouseData;
pu... | unlicense |
dk00/old-stuff | csie/08design-patterns/src/com/sun/tools/javac/comp/ConstFold.java | 14917 | /*
* Copyright 1999-2006 Sun Microsystems, Inc. All rights reserved.
* SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package com.sun.tools.javac.comp;
import com.sun.tools.javac.code.*;
import com.sun.tools.javac.jvm.*;
import com.sun... | unlicense |
bitmovin/bitmovin-python | examples/encoding/create_simple_encoding_with_audio_mix_filter.py | 13123 | import datetime
from bitmovin import Bitmovin, Encoding, HTTPSInput, S3Output, H264CodecConfiguration, \
AACCodecConfiguration, H264Profile, StreamInput, SelectionMode, Stream, EncodingOutput, ACLEntry, ACLPermission, \
FMP4Muxing, MuxingStream, CloudRegion, DashManifest, FMP4Representation, FMP4RepresentationT... | unlicense |
kurogetsusai/saiko | src/functions/function.js | 1282 | /** Functions to do operations on functions.
* @module functions/function */
/** Composes any number of functions: (f∘g)(x) = f(g(x)).
* Functions are applied from right to left (the last parameter is invoked first).
* All functions should accept 1 parameter, except the rightmost one, which can
* have any numbe... | unlicense |
mirzadelic/django-social-example | django_social_example/django_app/wsgi.py | 398 | """
WSGI config for django_app project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_S... | unlicense |
itssuedev/theme-itssue | front-page.php | 918 | <?php
/**
* front-page.php - 사이트의 랜딩 페이지를 담당하는 템플릿
*
* @package theme-itssue
*/
get_header();
?>
<div class="slider">
<!-- 슬라이더 영역 -->
<?php
echo do_shortcode( get_theme_mod( 'it_customize_front_slider' ) );
?>
<!-- /슬라이더 영역 -->
</div><!-- .slider -->
<div class="blocks">
<?php $i = 1; for( ; 3 >= $i;... | unlicense |
amounir86/amounir86-2011-elections | voter-info/shapes/json/248_3549.js | 848 | GoogleElectionMap.shapeReady({name:"248_3549",type:"state",state:"248_3549",bounds:[],centroid:[],shapes:[
{points:[
{x:29.0591502876797,y: 30.7664419760837}
,
{x:29.0570619461407,y: 30.74170754417}
,
{x:28.9982574450908,y: 30.7511733766875}
,
{x:28.9898422162064,y: 30.7648891065078}
,
{x:28.9877921585818,y: 30.7727608... | unlicense |
prakhar1989/rust-rosetta | src/zig-zag_matrix.rs | 1661 | // implements http://rosettacode.org/wiki/Zig-zag_matrix
// with the sorting indexes algorithm
// explained in the discussion page
// http://rosettacode.org/wiki/Talk:Zig-zag_matrix
#[deriving(Show, PartialEq, Eq)]
struct SortIndex {
x: uint,
y: uint
}
impl SortIndex {
fn new(x:uint, y:uint) -> SortInde... | unlicense |
zyphlar/freshbooks-resizer | injected.js | 515 |
window.normalWidth = window.outerWidth;
window.normalHeight = window.outerHeight;
window.minWidth = window.outerWidth;
window.minHeight = 160;
function freshbooksResize(){
var resizeButton = document.getElementById("freshbooks-resize-button");
if(window.outerHeight == window.normalHeight){
window.resizeTo(w... | unlicense |
thinkAmi-sandbox/Django_permissions_sample | myapp/migrations/0001_initial.py | 881 | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-30 13:19
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Article... | unlicense |
nekokat/codewars | 8 kyu_1/duck-duck-goose.rb | 171 | #Kata: Duck Duck Goose
#URL: https://www.codewars.com/kata/582e0e592029ea10530009ce
def duck_duck_goose(players, goose)
players[(goose%players.size).pred].name
end | unlicense |
matyb/leh | leh-test/integration/leh/util/LEHCachingPerformanceTest.java | 3534 | package leh.util;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import leh.example.food.Food;
import leh.example.food.Food.FoodType;
import leh.example.person.Employee;
import leh.example.person.Person;
import org.junit.Before;
import org.junit.Test;
public class... | unlicense |
EpitaJS/js-class-2016-episode-3 | jspm_packages/npm/lodash@4.0.1/keys.js | 790 | /* */
var baseHas = require('./internal/baseHas'),
baseKeys = require('./internal/baseKeys'),
indexKeys = require('./internal/indexKeys'),
isArrayLike = require('./isArrayLike'),
isIndex = require('./internal/isIndex'),
isPrototype = require('./internal/isPrototype');
function keys(object) {
var ... | unlicense |
Mostly-Horrific/Visual-Novel-Engine | VNNLangaugeTests/Properties/AssemblyInfo.cs | 1403 | 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("VNN... | unlicense |
RodionSmolnikov/RSUStationOptimalPlacement | src/main/java/system/Executor.java | 1353 | package system;
import entities.interfaces.Model;
import entities.interfaces.ParameterContainer;
import entities.interfaces.ResultCollector;
/**
* Created by Rodion on 04.04.2015.
*/
public abstract class Executor {
private ResultCollector collector;
private int threadCount;
public static final int DEF... | unlicense |
Tom94/AiModtpDifficultyCalculator | AiModtpDifficulty.cs | 9169 | using System;
using System.Collections.Generic;
using System.Text;
using osu.GameModes.Edit.AiMod;
using osu.GameplayElements.Beatmaps;
using osu.GameplayElements.HitObjects;
using osu.Interfacing;
namespace AiModtpDifficultyCalculator
{
/// <summary>
/// osu!tp's difficulty calculator ported to the osu! sdk ... | unlicense |
TheCherno/EventSystem | src/com/thecherno/app/core/Window.java | 2308 | package com.thecherno.app.core;
import java.awt.Graphics;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionListener;
import java.util.ArrayList;
import java.util.List;
import javax.swing.JFrame;
import javax.swing.SwingUtilities;
import com.thecherno.app.events.E... | unlicense |
srdjan-bozovic/kursnalista | universal/src/MSC/MSC.Universal.Shared/Implementation/LocalStorageCacheService.cs | 9811 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Windows.Storage;
using MSC.Universal.Shared.Contracts.Services;
using Newtonsoft.Json;
namespace MSC.Universal.Shared.Implementation
{
public class LocalStorageCacheService : ICacheService, IDis... | unlicense |
will-gilbert/SmartGWT-Mobile | mobile/src/main/java/com/smartgwt/mobile/client/widgets/events/HasPercentChangedHandlers.java | 1283 | /*
* Smart GWT (GWT for SmartClient)
* Copyright 2008 and beyond, Isomorphic Software, Inc.
*
* Smart GWT 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. Smart GWT is also
* available ... | unlicense |
Trickness/pl_learning | Algorithms/cpp/linked_list/double_linked_list.hpp | 10110 | #ifndef SWZ_LINKED_LIST
#define SWZ_LINKED_LIST
namespace{
#include <iostream>
}
template<typename T>
class double_linked_list_node{
public:
explicit double_linked_list_node(T* value);
explicit double_linked_list_node(T value);
~double_linked_list_node() = default;
T* key;
... | unlicense |
qyp2009/Aiqipa | src/com/example/aiqipa/NewsDetailActivity.java | 778 | package com.example.aiqipa;
import com.example.aiqipa.application.PublicVars;
import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;
public class NewsDetailActivity extends Activity{
private String articleID ="";
@Override
protected void onCreate(Bundle savedInstanceState) {
// TO... | unlicense |
davidmerfield/Typeset.js | src/punctuation.js | 492 | module.exports = (text) => {
// Dashes
text = text.replace(/--/g, "–");
text = text.replace(/ – /g, " — ");
// Elipses
text = text.replace(/\.\.\./g, "…");
// Nbsp for punc with spaces
const NBSP = " ";
const NBSP_PUNCTUATION_START = /([«¿¡]) /g;
const NBSP_PUNCTUATION_END =... | unlicense |
Krusen/ErgastApi.Net | src/ErgastApi/Requests/Rounds.cs | 653 | namespace ErgastApi.Requests
{
// TODO: Move to Ids namespace together with Drivers, Circuits etc.? Or the other way around?
/// <summary>
/// Constants for querying relative rounds, e.g. last round.
/// </summary>
public static class Rounds
{
/// <summary>
/// This is the same ... | unlicense |
StyxOfDynamite/zod-interview | Gulpfile.js | 339 | var gulp = require('gulp')
var watch = require('gulp-watch')
var phplint = require('phplint').lint
gulp.task('phplint', function (cb) {
phplint(['app/**/*.php', 'database/**/*.php'], {limit: 10}, function (err, stdout, stderr) {
if (err) {
cb(err)
process.exit(1)
}
cb()
})
})
gulp.task('... | unlicense |
inri13666/google-api-php-client-v2 | libs/Google/Service/Directory/Notifications.php | 1111 | <?php
namespace Google\Service\Directory;
class Notifications extends \Google\Collection
{
public $etag;
protected $itemsType = 'Google\Service\Directory\Notification';
protected $itemsDataType = 'array';
public $kind;
public $nextPageToken;
public $unreadNotificationsCount;
public function setEtag($eta... | unlicense |
GoldenR1618/SoftUni-Exercises-and-Exams | 07.C#_OOP_Advanced/10.EXAM_PREPARATION_1/Recycling Station_Авторско Решение/RecyclingStation/Models/Waste/StorableGarbage.cs | 280 | namespace RecyclingStation.Models.Waste
{
using RecyclingStation.Attributes;
[Storable]
public class StorableGarbage : Garbage
{
public StorableGarbage(string name, double weight, double volume) : base(name, weight, volume)
{
}
}
}
| unlicense |
syncxplus/php | src/app/Index.php | 169 | <?php
namespace app;
use app\common\AppBase;
class Index extends AppBase
{
function get()
{
echo \Template::instance()->render('index.html');
}
}
| unlicense |
indy256/codelibrary | cpp/strings/kmp.cpp | 917 | #include <bits/stdc++.h>
using namespace std;
// https://en.wikipedia.org/wiki/Knuth–Morris–Pratt_algorithm
vector<int> prefix_function(string s) {
vector<int> p(s.length());
int k = 0;
for (int i = 1; i < s.length(); i++) {
while (k > 0 && s[k] != s[i])
k = p[k - 1];
if (s[k]... | unlicense |
mmozeiko/RcloneBrowser | src/icon_cache.cpp | 1526 | #include "icon_cache.h"
#include "item_model.h"
#if defined(Q_OS_OSX)
#include "osx_helper.h"
#endif
IconCache::IconCache(QObject* parent)
: QObject(parent)
{
mFileIcon = QFileIconProvider().icon(QFileIconProvider::File);
#ifdef Q_OS_WIN32
CoInitializeEx(NULL, COINIT_MULTITHREADED);
#endif
mThread.st... | unlicense |
CppGoneWild/TileGame | src/tool/tcp/Server.cpp | 7951 | #include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <unistd.h>
#include <sys/types.h>
#include <string.h>
#include "../logg/Stream.hh"
#include "Exception.hh"
#include "Server.hh"
#include "priv/send_recv.hh"
struct sockaddr_storage no_addr;
class NoAddrInitialiser
{
private:
NoAddrIn... | unlicense |
seckcoder/lang-learn | python/celery_user/test.py | 308 | from proj.tasks import add
from datetime import datetime, timedelta
#res = add.delay(4, 4)
res = add.apply_async(args=[4], countdown=1)
print res.get()
next_time = datetime.utcnow() + timedelta(seconds=3)
print next_time
print datetime.now()
res = add.apply_async(args=[3, 5], eta=next_time)
print res.get()
| unlicense |
JoshuaKennedy/jccc_cs235 | mcm10.06b/mcm10.06b/main.cpp | 4361 | // *************************************************************
//
// NextMonth.cpp
//
// This program defines and tests a class named Month.
// The class has one member variable (an integer) to represent
// the month. It has a constructor to set the month using an
// integer argument (1 for January, 2 for Febru... | unlicense |
codeApeFromChina/resource | frame_packages/java_libs/hibernate-distribution-3.6.10.Final/project/hibernate-testsuite/src/test/java/org/hibernate/test/annotations/embeddables/nested/Customer.java | 1986 | /*
* Hibernate, Relational Persistence for Idiomatic Java
*
* Copyright (c) 2011, Red Hat Inc. or third-party contributors as
* indicated by the @author tags or express copyright attribution
* statements applied by the authors. All third-party contributions are
* distributed under license by Red Hat Inc.
*
* T... | unlicense |
jjeb/kettle-trunk | engine/src/org/pentaho/di/job/entries/ssh2get/JobEntrySSH2GET.java | 42737 | /*******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2012 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (the ... | apache-2.0 |
freeVM/freeVM | enhanced/archive/classlib/java6/modules/swing/src/test/api/java.injected/javax/swing/text/html/HTML_AttributeTest.java | 11084 | /*
* 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... | apache-2.0 |
fspinnenhirn/oacc-core-ci | src/test/java/com/acciente/oacc/TestAccessControl_getDomainNameByResource.java | 5815 | /*
* Copyright 2009-2015, Acciente LLC
*
* Acciente LLC licenses this file to you 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 ... | apache-2.0 |
baby-gnu/one | src/sunstone/public/app/tabs/hosts-tab/panels/vms/panelId.js | 1270 | /* -------------------------------------------------------------------------- */
/* Copyright 2002-2020, OpenNebula Project, OpenNebula Systems */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); you may ... | apache-2.0 |
UKHomeOffice/drt-scalajs-spa-exploration | client/src/main/scala/drt/client/services/handlers/ContactDetailsHandler.scala | 988 | package drt.client.services.handlers
import diode.data.{Pending, Pot, Ready}
import diode.{ActionResult, Effect, ModelRW}
import drt.client.actions.Actions.{GetContactDetails, RetryActionAfter, UpdateContactDetails}
import drt.client.services.{DrtApi, PollDelay}
import drt.shared.ContactDetails
import upickle.default.... | apache-2.0 |
leafclick/intellij-community | platform/lang-impl/src/com/intellij/psi/codeStyle/statusbar/CodeStyleStatusBarWidget.java | 8563 | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.psi.codeStyle.statusbar;
import com.intellij.application.options.CodeStyle;
import com.intellij.openapi.actionSystem.*;
import com.intellij.openapi.applicati... | apache-2.0 |
SURFnet/Stepup-u2f-bundle | src/Dto/RegisterRequest.php | 1909 | <?php
/**
* Copyright 2014 SURFnet bv
*
* 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 agr... | apache-2.0 |
limagiran/hearthstone | src/com/limagiran/hearthstone/card/view/EscudoDivino.java | 795 | package com.limagiran.hearthstone.card.view;
import com.limagiran.hearthstone.card.control.Card;
import com.limagiran.hearthstone.util.DimensionValues;
import java.awt.Color;
import java.awt.Graphics;
import java.io.Serializable;
import javax.swing.JLabel;
/**
*
* @author Vinicius
*/
public class EscudoDivino ext... | apache-2.0 |
pinotlytics/pinot | pinot-core/src/main/java/com/linkedin/pinot/core/operator/dociditerators/AndDocIdIterator.java | 4760 | /**
* Copyright (C) 2014-2015 LinkedIn Corp. (pinot-core@linkedin.com)
*
* 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
*
* Unle... | apache-2.0 |
paulmw/flume-test-source | src/main/java/com/cloudera/flume/TestSource.java | 3140 | // Copyright 2014 Cloudera 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 agreed to in wr... | apache-2.0 |
googleapis/google-cloud-cpp | google/cloud/storage/internal/resumable_upload_session_test.cc | 4722 | // Copyright 2019 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | apache-2.0 |
torrances/swtk-commons | commons-dict-wiktionary/src/main/java/org/swtk/commons/dict/wiktionary/generated/m/s/e/WiktionaryMSE000.java | 978 | package org.swtk.commons.dict.wiktionary.generated.m.s.e; import java.util.Collection; import java.util.HashMap; import java.util.Map; import org.swtk.common.dict.dto.wiktionary.Entry; import com.trimc.blogger.commons.utils.GsonUtils; public class WiktionaryMSE000 { private static Map<String, Entry> map = new Has... | apache-2.0 |
leeyikjiun/scf4j | scf4j-api/src/main/java/sg/yikjiun/scf4j/map/IntLongMap.java | 912 | /*
* Copyright 2015 Lee Yik Jiun
*
* 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 to... | apache-2.0 |
acsukesh/java-chassis | core/src/test/java/org/apache/servicecomb/core/definition/loader/TestSchemaListenerManager.java | 1871 | /*
* 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 ... | apache-2.0 |
404mike/llgc-shipping | public/shipping/app/scripts/controllers/mike.js | 316 | 'use strict';
/**
* @ngdoc function
* @name shippingApp.controller:MikeCtrl
* @description
* # MikeCtrl
* Controller of the shippingApp
*/
angular.module('shippingApp')
.controller('MikeCtrl', function () {
this.awesomeThings = [
'HTML5 Boilerplate',
'AngularJS',
'Karma'
];
});
| apache-2.0 |
vulah/vulah | app/AppKernel.php | 1690 | <?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = [
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\Security... | apache-2.0 |
eldar258/edzabarov | chapter_101/src/main/java/ru/job4j/benchmark/Handler.java | 1438 | package ru.job4j.benchmark;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;
/**
* Class ru.job4j.benchmark.
*
* @author edzabarov
* @since 07.12.2017
*/
public class Handler extends DefaultHandler {
private static final String ADD_ORDER = "AddOrder";... | apache-2.0 |
resin-io/resin-etcher | lib/gui/app/app.ts | 10061 | /*
* Copyright 2016 balena.io
*
* 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 to in ... | apache-2.0 |
yurloc/guvnor | guvnor-structure/guvnor-structure-backend/src/main/java/org/guvnor/structure/backend/config/watch/ConfigServiceWatchServiceExecutor.java | 311 | package org.guvnor.structure.backend.config.watch;
import org.uberfire.java.nio.file.WatchKey;
public interface ConfigServiceWatchServiceExecutor {
void execute( final WatchKey watchKey,
final long localLastModifiedValue,
final AsyncWatchServiceCallback callback);
}
| apache-2.0 |
weld/core | tests-arquillian/src/test/java/org/jboss/weld/tests/extensions/lifecycle/processBeanAttributes/notfired/ProcessBeanAttributesNotFiredTest.java | 3394 | /*
* JBoss, Home of Professional Open Source
* Copyright 2013, Red Hat, Inc., and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fi... | apache-2.0 |
yibome/yibo-library | src/main/java/net/dev123/mblog/tencent/TencentUserAdaptor.java | 5869 | package net.dev123.mblog.tencent;
import static net.dev123.commons.util.ParseUtil.getInt;
import static net.dev123.commons.util.ParseUtil.getLong;
import static net.dev123.commons.util.ParseUtil.getRawString;
import java.util.ArrayList;
import java.util.Date;
import net.dev123.commons.PagableList;
import n... | apache-2.0 |
GwtMaterialDesign/gwt-material-addins | src/main/java/gwt/material/design/addins/client/masonry/events/RemoveCompleteEvent.java | 1806 | /*
* #%L
* GwtMaterial
* %%
* Copyright (C) 2015 - 2017 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
* ... | apache-2.0 |
SparklingComet/FakeTrollPlus | src/main/java/org/shanerx/faketrollplus/commands/Fakedeop.java | 1934 | /*
* Copyright 2016-2017 SparklingComet @ http://shanerx.org
*
* 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 re... | apache-2.0 |
google/android-uiconductor | frontend/src/app/constants/jstree.ts | 2026 | // Copyright 2021 Google LLC
//
// 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 to in ... | apache-2.0 |
oboehm/jfachwert | src/test/java/de/jfachwert/pruefung/LuhnVerfahrenTest.java | 2245 | /*
* Copyright (c) 2018 by Oliver Boehm
*
* 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 agre... | apache-2.0 |
typesafe-query/typesafe-query | typesafe-query-core/src/main/java/com/github/typesafe_query/meta/ComparableDBColumn.java | 2070 | /**
*
*/
package com.github.typesafe_query.meta;
import com.github.typesafe_query.query.Exp;
import com.github.typesafe_query.query.Order;
import com.github.typesafe_query.query.Param;
import com.github.typesafe_query.query.TypesafeQuery;
/**
* @author Takahiko Sato(MOSA architect Inc.)
*
*/
public interface Co... | apache-2.0 |
perandersson/everstore-java-adapter | vanilla/src/main/java/everstore/vanilla/protocol/parsers/CommitResponseParser.java | 948 | package everstore.vanilla.protocol.parsers;
import everstore.api.JournalSize;
import everstore.vanilla.io.EndianAwareInputStream;
import everstore.vanilla.protocol.Header;
import everstore.vanilla.protocol.MessageResponse;
import everstore.vanilla.protocol.messages.CommitTransactionResponse;
import java.io.IOExceptio... | apache-2.0 |
cedral/aws-sdk-cpp | aws-cpp-sdk-worklink/source/model/UpdateDevicePolicyConfigurationResult.cpp | 1405 | /*
* Copyright 2010-2017 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 "license" fil... | apache-2.0 |
cedral/aws-sdk-cpp | aws-cpp-sdk-sagemaker/source/model/CreateUserProfileResult.cpp | 1444 | /*
* Copyright 2010-2017 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 "license" fil... | apache-2.0 |
Tyesb/lovetothinkserv | matcher/Migrations/201412162206586_deploy.cs | 642 | namespace matcher.Migrations
{
using System;
using System.Data.Entity.Migrations;
public partial class deploy : DbMigration
{
public override void Up()
{
//DropPrimaryKey("dbo.TMatching");
//AddColumn("dbo.TMatching", "id", c => c.Int(nullable: false, identit... | apache-2.0 |
gistia/slackbot | robots/project/project.go | 20049 | package robots
import (
"errors"
"fmt"
"regexp"
"strconv"
"strings"
"github.com/gistia/slackbot/db"
"github.com/gistia/slackbot/mavenlink"
"github.com/gistia/slackbot/pivotal"
"github.com/gistia/slackbot/robots"
"github.com/gistia/slackbot/utils"
)
type bot struct {
handler utils.SlackHandler
}
func init... | apache-2.0 |
LIP-Computing/os_restful_client | os_restfulcli/tests/test_controller/test_parser.py | 801 | # -*- coding: utf-8 -*-
# Copyright 2015 LIP - Lisbon
#
# 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 la... | apache-2.0 |
nguerrera/roslyn | src/VisualStudio/LiveShare/Impl/Shims/FindImplementationsHandlerShim.cs | 3637 | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Threading;
using System.Threading.Tasks;
using Microsof... | apache-2.0 |
nuttycom/commons-pipeline | src/main/java/org/apache/commons/pipeline/stage/ExtendedBaseStage.java | 24780 | /*
* 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 ... | apache-2.0 |
google/google-java-format | core/src/test/java/com/google/googlejavaformat/java/ImportOrdererTest.java | 25841 | /*
* Copyright 2016 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 applicable law or agreed to in ... | apache-2.0 |
dspjlj/wsp | src/com/jlj/dao/imp/WscorderproDaoImp.java | 4776 | package com.jlj.dao.imp;
import java.sql.SQLException;
import java.util.List;
import javax.annotation.Resource;
import org.hibernate.HibernateException;
import org.hibernate.Query;
import org.hibernate.Session;
import org.springframework.orm.hibernate3.HibernateCallback;
import org.springframework.orm.hibernate3.Hib... | apache-2.0 |
gogap/spirit | component_message.go | 3507 | package spirit
import (
"bytes"
"encoding/json"
"strconv"
"github.com/gogap/errors"
"github.com/nu7hatch/gouuid"
)
const (
ERROR_MSG_ADDR = "-100"
ERROR_MSG_ADDR_INT int32 = -100
)
type MessageGraph map[string]MessageAddress
func (p MessageGraph) AddAddress(addrs ...MessageAddress) int {
lenAddr ... | apache-2.0 |
adamrduffy/trinidad-1.0.x | trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/util/nls/LocaleUtils.java | 5223 | /*
* 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")... | apache-2.0 |
lisnju/server | src/main/java/com/gm/server/GetQuestsServlet.java | 1415 | package com.gm.server;
import java.io.IOException;
import java.util.List;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.gm.common.model.Rpc.QuestPb;
import com.gm.common.model.Rpc.Quests;
import com.gm.server.model.Quest... | apache-2.0 |
aminmarashi/binary-common-utils | src/index.js | 53 | throw (Error('Use this module with relative path'));
| apache-2.0 |
Dennis-Koch/ambeth | jambeth/jambeth-cache/src/main/java/com/koch/ambeth/cache/mixin/IPropertyChangeItemListenerExtendable.java | 302 | package com.koch.ambeth.cache.mixin;
public interface IPropertyChangeItemListenerExtendable {
void registerIPropertyChangeItemListener(IPropertyChangeItemListener propertyChangeItemListener);
void unregisterIPropertyChangeItemListener(
IPropertyChangeItemListener propertyChangeItemListener);
}
| apache-2.0 |
jeffbrown/grailsnolib | grails-core/src/main/groovy/org/codehaus/groovy/grails/validation/routines/DomainValidator.java | 20028 | /*
* 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... | apache-2.0 |
zhouweiaccp/code | Cache/Plugin_Cache/supercache/Store/General/Collections/LimitedQueue.cs | 2872 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace STSdb4.General.Collections
{
public class LimitedQueue<T> : IEnumerable<T>
{
private T[] buffer;
private int index = 0;
public int Count { get; private set; }
... | apache-2.0 |
andybab/Impala | tests/hs2/test_fetch_first.py | 19301 | #!/usr/bin/env python
# Copyright (c) 2012 Cloudera, Inc. 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | apache-2.0 |
tallycheck/data-support | meta-descriptor-base/src/main/java/com/taoswork/tallycheck/descriptor/metadata/classtree/EntityClassTreeAccessor.java | 871 | package com.taoswork.tallycheck.descriptor.metadata.classtree;
import com.taoswork.tallycheck.general.solution.autotree.AutoTreeAccessor;
import com.taoswork.tallycheck.general.solution.autotree.AutoTreeGenealogy;
/**
* Created by Gao Yuan on 2015/5/23.
*/
public class EntityClassTreeAccessor extends AutoTreeAccess... | apache-2.0 |
mikemoraned/geowhatsit-server | lib/GeoHashRegion.js | 1343 | // Generated by CoffeeScript 1.6.1
(function() {
var GeoHashRegion, LatLon, geohash;
geohash = require('ngeohash');
LatLon = require('./LatLon');
GeoHashRegion = (function() {
function GeoHashRegion(center, error, hash) {
this.center = center;
this.error = error;
this.hash = hash;
... | apache-2.0 |
spring-projects/spring-data-examples | jpa/deferred/src/main/java/example/service/Customer906Service.java | 221 | package example.service;
import example.repo.Customer906Repository;
import org.springframework.stereotype.Service;
@Service
public class Customer906Service {
public Customer906Service(Customer906Repository repo) {}
}
| apache-2.0 |
Lukasa/cryptography | tests/hazmat/primitives/test_3des.py | 4195 | # 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 to in writing, software
# distributed under the... | apache-2.0 |