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 admin import ( "encoding/json" "errors" "fmt" ) const ( // ErrUserExists - Attempt to create existing user ErrUserExists errorReason = "UserAlreadyExists" // ErrNoSuchUser - Attempt to create existing user ErrNoSuchUser errorReason = "NoSuchUser" // ErrInvalidAccessKey - Invalid access key specified...
ceph/go-ceph
rgw/admin/errors.go
GO
mit
4,043
<?php /* * This file is part of the Sylius package. * * (c) Paweł Jędrzejewski * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace Sylius\Behat\Context\Ui\Admin; use Behat\Behat\Context\Context; u...
Brille24/Sylius
src/Sylius/Behat/Context/Ui/Admin/ManagingAdministratorsContext.php
PHP
mit
10,196
<?php /* @var $this RateToEurController */ /* @var $model CurrencyRateToEur */ ?> <div class="col-sm-3"> <?php $this->renderPartial('_menu', array('model' => $model, 'action' => 'view')); ?> </div> <div class="col-sm-9"> <br> <h3 class="text-center"><?php echo Yii::t('CurrencyModule.view', 'Rate Data'); ?></h3...
Anastaszor/yii1-currency
views/admin/rateToEur/view.php
PHP
mit
474
<?xml version="1.0" ?><!DOCTYPE TS><TS language="tr" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About virtauniquecoin</source> <translation>virtauniquecoin Hakkında</translation> </message> <messag...
virtauniquecoin/virtauniquecoin-master
src/qt/locale/virtauniquecoin_tr.ts
TypeScript
mit
124,772
#!/usr/bin/env python ''' Retrospectively updates older FFV1/DV packages in order to meet our current packaging requirements. This should allow accession.py and makepbcore.py to run as expected. This script should work on files created by: makeffv1.py dvsip.py loopline.py ''' import argparse import sys import shutil im...
kieranjol/IFIscripts
loopline_repackage.py
Python
mit
12,437
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2017-04-05 14:04 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('story', '0037_auto_20170405_1401'), ] operations = [ migrations.AlterField(...
OrhanOdabasi/weirdbutreal
story/migrations/0038_auto_20170405_1404.py
Python
mit
509
package datastructs // Deque array implemented linked list type Deque struct { array []interface{} left, right int fixSize int } func NewDeque(capacity int) *Deque { d := new(Deque) if capacity <= 0 { panic("deque must have capacity") } d.array = make([]interface{}, capacity) d.fixSize = capacity ...
stoneflyop1/intro2algorithms
datastructs/deque.go
GO
mit
1,068
 // Currently unused, but don't want to delete it since // it might be useful later. //SmartRoutes.ComboBoxViewModel = function(data) { // // Private: // var comboboxChoices = ko.observableArray(); // var comboboxSelection = ko.observable(); // (function Init() { // if (data && Array.isArray(data...
SmartRoutes/SmartRoutes
SmartRoutes/Scripts/ViewModels/ComboBoxViewModel.js
JavaScript
mit
595
const TEXT_NODE = 3; import { clearSelection } from 'content-kit-editor/utils/selection-utils'; import { walkDOMUntil } from 'content-kit-editor/utils/dom-utils'; import KEY_CODES from 'content-kit-editor/utils/keycodes'; import isPhantom from './is-phantom'; function selectRange(startNode, startOffset, endNode, endO...
toddself/content-kit-editor
tests/helpers/dom.js
JavaScript
mit
5,235
class Fhir::CodeSystem attr_reader :symbolic, :display, :oid, :uris DECLARED_SYSTEMS = [{ symbolic: :unii, display: 'UNII', oid: '2.16.840.1.113883.4.9' }, { symbolic: :snomed, display: 'SNOMED', oid: '2.16.840.1.113883.6.96', uri: 'http://snomed.info/id' }, { ...
niquola/fhir
lib/fhir/handmade/code_system.rb
Ruby
mit
2,903
/* * Copyright (c) 2015, enlo * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, this * list of conditions and t...
enlo/jmt-projects
jmt-core/src/test/java/info/naiv/lab/java/jmt/infrastructure/SimpleServiceContainerTest.java
Java
mit
1,965
using System.Collections; using ForumSystem.Data.Common.Repository; using ForumSystem.Data.Models; using ForumSystem.Web.Areas.Administration.ViewModels.Posts; using Kendo.Mvc.UI; using Kendo.Mvc.Extensions; using System; using System.Linq; using System.Web.Mvc; using AutoMapper.QueryableExtensions; namespace ForumSy...
Dr4g0/TelerikForumSystem
Source/Web/ForumSystem.Web/Areas/Administration/Controllers/PostsController.cs
C#
mit
1,157
// Copyright (c) 2010-2013 SharpDX - Alexandre Mutel // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy,...
shoelzer/SharpDX
Source/SharpDX/Half4.cs
C#
mit
10,134
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; namespace NutritionRecommendationEngine { public static class MyRandom { private static Random random = new Random(); public static int Next(int max) { return random.Next(max); ...
tsvgeorgieva/AmAm
AmAm/NutritionRecommendationEngine/MyRandom.cs
C#
mit
670
beforeEach(function () { jasmine.Clock.useMock(); jasmine.Clock.reset(); $.fx.off = true; if ($('.fake_dom').length) { $('.fake_dom').empty(); } this.addMatchers(new CustomMatchers()); }); afterEach(function () { $.fx.off = false; }); function printNode(node, depth, renderer) { renderer = rende...
ohrite/view_zoo
spec/javascripts/helpers/spec_helper.js
JavaScript
mit
2,675
package reborncore.api.power; /** * Created by modmuss50 on 08/03/2016. */ public enum EnumPowerTier { MICRO(8, 8, 0), LOW(32, 32, 1), MEDIUM(128, 128, 2), HIGH(512, 512, 3), EXTREME(2048, 2048, 4), INSANE(8192, 8192, 5), INFINITE(Integer.MAX_VALUE, Integer.MAX_VALUE, 6); private final int maxInput; privat...
Szewek/Minecraft-Flux
src/api/java/reborncore/api/power/EnumPowerTier.java
Java
mit
673
class CreateTables < ActiveRecord::Migration def self.up create_table :users do |t| t.string :username t.string :facebook_token ## Database authenticatable t.string :email, :null => false, :default => "" t.string :encrypted_password, :null => false, :default => "" ...
jonathanccalixto/devise_inactivatable
test/rails_app/db/migrate/20120508165529_create_tables.rb
Ruby
mit
2,095
package net.meisen.general.sbconfigurator.config; import java.util.Map; import java.util.Properties; /** * A bean used to inject properties within the {@code SpringPropertyHolder} * during the configuration loading. * * @author pmeisen * */ public class PropertyInjectorBean { private final Properties proper...
pmeisen/gen-sbconfigurator
src/net/meisen/general/sbconfigurator/config/PropertyInjectorBean.java
Java
mit
1,181
<?xml version="1.0" ?><!DOCTYPE TS><TS language="hu" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="14"/> <source>About Bitcoin</source> <translation>A Bitcoinról</translation> </messag...
goodbyecoin/goodbyecoin
src/qt/locale/bitcoin_hu.ts
TypeScript
mit
106,091
/** * This file is where you define your application routes and controllers. * * Start by including the middleware you want to run for every request; * you can attach middleware to the pre('routes') and pre('render') events. * * For simplicity, the default setup for route controllers is for each to be * in its...
briviere/keystone-realestate-template
routes/index.js
JavaScript
mit
2,560
/** * @license Copyright (c) {{year}}, {{author}} All Rights Reserved. * Available via MIT license. */ /** * A client {{page}} {{request}} handler. */ define([ 'framework/request/base_request_handler', '../{{request}}_request', 'framework/core/deferred/deferred', 'domain/request/{{page}}/{{requestServer}...
DragonDTG/vex
lib/generator/request/public/static/scripts/pages/page/handler/request_handler.js
JavaScript
mit
1,223
// A cross-browser javascript shim for html5 audio (function(audiojs, audiojsInstance, container) { // Use the path to the audio.js file to create relative paths to the swf and player graphics // Remember that some systems (e.g. ruby on rails) append strings like '?1301478336' to asset paths var path = (function(...
OdeArmasSR/scsofficials.com
public/js/lib/audio.js
JavaScript
mit
31,933
/*----------------------------------------------------------------------------*\ MODULE NAME: math.cpp PROJECT: F3DB AUTHOR: Evert Bauwens DATE: september 8 2003 DESCRIPTION: \*----------------------------------------------------------------------------*/ #include "math.h" #include <stdlib.h>...
everbuild/f3db
src/math.cpp
C++
mit
1,020
/* * Cloud Foundry API module * Service connection module helper */ var app = require("./properties"); function ServiceClient () { } exports.ServiceClient = ServiceClient; ServiceClient.prototype.create = function () { if (!this.type) return false; var svcNames = app.serviceNamesOfType[this.type]; if (!sv...
chinshr/foundry-node
node_modules/cf-autoconfig/node_modules/cf-runtime/lib/service.js
JavaScript
mit
1,115
import string import random def random_secret(n=45): chars = string.ascii_letters + string.digits return ''.join(random.choice(chars) for _ in range(n))
Wiredcraft/pipelines
pipelines/pipeline/utils.py
Python
mit
162
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Log_monitoring extends MY_Controller { public function __construct() { parent::__construct(); $this->load->model(array("Log_monitoring_model")); $this->data['html_css'] = ''; $this->data['html_js'] = ' <script> $(docume...
fajarlabs/sucofindo
application/admin/log_monitoring/controllers/Log_monitoring.php
PHP
mit
1,129
package com.birdbraintechnologies.birdblox.httpservice.RequestHandlers; import android.app.AlertDialog; import android.bluetooth.BluetoothGatt; import android.bluetooth.le.ScanFilter; import android.content.DialogInterface; import android.content.Intent; import android.net.Uri; import android.os.Handler; import androi...
BirdBrainTechnologies/BirdBlox-Android-Support
app/src/main/java/com/birdbraintechnologies/birdblox/httpservice/RequestHandlers/RobotRequestHandler.java
Java
mit
27,668
package org.xdevs23.management.config; public class SharedPreferenceArray { public static String getPreferenceString(String[] array) { if(array == null) return ""; if(array.length == 0) return ""; StringBuilder sb = new StringBuilder(); for ( String s : array) { Str...
xdevs23/Cornowser
app/src/main/java/org/xdevs23/management/config/SharedPreferenceArray.java
Java
mit
1,173
package com.github.ddth.djs.message.queue; import java.util.HashMap; import java.util.Map; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder; import com.fasterxml.jack...
DDTH/djs-commons
src/main/java/com/github/ddth/djs/message/queue/TaskFinishMessage.java
Java
mit
3,552
/* * Minecraft Dev for IntelliJ * * https://minecraftdev.org * * Copyright (c) 2020 minecraft-dev * * MIT License */ package com.demonwav.mcdev.platform.mcp.gradle.tooling; import java.util.Set; public interface McpModelFG2 extends McpModel { String getMinecraftVersion(); Set<String> getMappingFiles(...
DemonWav/MinecraftDevIntelliJ
src/gradle-tooling-extension/java/com/demonwav/mcdev/platform/mcp/gradle/tooling/McpModelFG2.java
Java
mit
325
#!/usr/bin/env python # coding=utf-8 __author__ = 'Jayin Ton' from flask import Flask, request, session, redirect, url_for app = Flask(__name__) host = '127.0.0.1' port = 8000 # 使用session 必须设置secret_key # set the secret key. keep this really secret: app.secret_key = 'A0Zr98j/3yX R~XHH!jmN]LWX/,?RT' @app.route('/...
jayinton/FlaskDemo
simple/sessionTest.py
Python
mit
1,407
using StankinsInterfaces; using System; using System.Collections.Generic; using System.Text; namespace StanskinsImplementation { public class CommonData : ICommonData { public CommonData() { this.UTCDateReceived = DateTime.UtcNow; this.LocalDateReceived = DateTime.Now; ...
ignatandrei/stankins
stankinsV1/StanskinsImplementation/CommonData.cs
C#
mit
768
class TrueClass def present? true end def blank? false end end
joshwetzel/existence
lib/existence/true_class.rb
Ruby
mit
80
<?php namespace ac\DataBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; class DefaultController extends Controller { public function indexAction($name) { return $this->render('acDataBundle:Default:index.html.twig', array('name' => $name)); } }
Codeperitus/cms
src/ac/DataBundle/Controller/DefaultController.php
PHP
mit
295
import {combineReducers} from 'redux'; import postValuesReducer from './post_values'; import ListReducer from './list_reducer'; import ForeignListReducer from './foreign_list_reducer'; import FuelReducer from './fuel_reducer'; import {reducer as formReducer} from 'redux-form'; const rootReducer = combineReducers({ ...
nadzins/riepas-react-redux
src/reducers/index.js
JavaScript
mit
504
require 'spec_helper' describe HolidayList::Params do before(:all) do Time.zone = 'Central Time (US & Canada)' new_time = Time.zone.local(2014, 1, 29, 12, 0, 0) Timecop.freeze(new_time) end after(:all) do Timecop.return end subject { HolidayList::Params.new('12345', options) } let(:option...
bhicks/holiday_list
spec/holiday_list/params_spec.rb
Ruby
mit
2,599
unless defined?(NameAndEmailValidator) class NameAndEmailValidator < ActiveModel::EachValidator def validate_each(record, attribute, value) unless value =~ /\A(.+)?\s<([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})?>\Z/i record.errors[attribute] << (options[:message] || "is not a valid email address. Proper ...
AnnArborTees/acts_as_warnable
app/validators/name_and_email_validator.rb
Ruby
mit
413
#pragma once #include <QWidget> #include <QListWidget> #include <QMainWindow> #include <QMenu> #include "../data/array.hpp" #include "../data/data_source.hpp" #include "../json/json.hpp" #include <list> namespace datavis { using std::list; using nlohmann::json; class DataSet; class PlotView; class PlotGridView; c...
jleben/datavis
app/main_window.hpp
C++
mit
1,907
// File generated from our OpenAPI spec package com.stripe.param; import com.google.gson.annotations.SerializedName; import com.stripe.net.ApiRequestParams; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import lombok.Getter; @Getter public class InvoiceItemListPara...
stripe/stripe-java
src/main/java/com/stripe/param/InvoiceItemListParams.java
Java
mit
11,499
#region License // Pomona is open source software released under the terms of the LICENSE specified in the // project's repository, or alternatively at http://pomona.io/ #endregion namespace Pomona.Common.Serialization { public enum DeserializerNodeOperation { Default, Post, Patch, ...
Pomona/Pomona
app/Pomona.Common/Serialization/DeserializerNodeOperation.cs
C#
mit
353
<?php namespace Hotfix\Datatables; use DateTime; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Filesystem\Filesystem; use Illuminate\Support\Str; use Illuminate\View\Compilers\BladeCompiler; class Helper { /** * Places item of extra columns into results by care of their order. * * @pa...
hotfix31/lumen-datatables
src/Helper.php
PHP
mit
7,124
<?php namespace Pingpp; /** * 结算账户对象 * Class SettleAccount * @package Pingpp */ class SettleAccount extends UserBase { public static function classUrlWithUserId($user_id) { return User::instanceUrlWithId($user_id) . '/settle_accounts'; } public static function instanceUrlWithSettleAccount...
PingPlusPlus/pingpp-php
lib/SettleAccount.php
PHP
mit
3,574
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate...
GDGAracaju/gdg.ninjas
src/app/components/header/header.js
JavaScript
mit
1,252
using UnityEngine; public interface IDamageable { void TakeHit(float damage, Vector3 hitPoint, Vector3 hitDirection); void TakeDamage(float damage); }
daltonbr/TopDownShooter
Assets/Scripts/IDamageable.cs
C#
mit
161
module Houdini module PostbackProcessor EnvironmentMismatchError = Class.new RuntimeError APIKeyMistmatchError = Class.new RuntimeError def self.process(class_name, model_id, params) task_manager = params.delete(:task_manager) || TaskManager if params[:environment] != Houdini.environment...
chrisconley/houdini-gem
lib/houdini/postback_processor.rb
Ruby
mit
696
<?php namespace AppBundle\Entity; use PUGX\MultiUserBundle\Validator\Constraints\UniqueEntity; use Symfony\Component\Validator\Constraints as Assert; use Vich\UploaderBundle\Mapping\Annotation as Vich; use Doctrine\Common\Collections\ArrayCollection; use Symfony\Component\HttpFoundation\File\File; use Doctrine\ORM\Ma...
arvyjaar/cv
src/AppBundle/Entity/UserEmployer.php
PHP
mit
6,131
<br> <br> <?php $deporte[]='Deporte*'; foreach ($datos as $dato) { $deporte[$dato->nombre]=$dato->nombre; } foreach ($usuarios as $usuario){ $nombre=(isset($nombre)) ? $nombre=$nombre : $nombre= $usuario->nombre; $apellidos=(isset($apellidos)) ? $apellidos=$apellidos : $apellidos=$usuario->apellidos;...
albeiroep/sportremind
application/views/editar_perfil_vista.php
PHP
mit
3,710
<?php use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; /* |-------------------------------------------------------------------------- | API (Client Credentials) Routes |-------------------------------------------------------------------------- | | For API requests that use a token from the OAuth clie...
alansfyeung/FLARES
routes/api-clientcred.php
PHP
mit
1,239
/*(function() { 'use strict'; angular.module('myApp', []).controller('VideoListController', function($http, $log) { var ctrl = this; ctrl.query = 'Rick Astley'; ctrl.search = function() { return $http.get('https://www.googleapis.com/youtube/v3/search?part=snippet&maxResults=20&type=...
rasmusvhansen/angularjs-foundation-course
exercises/03Controllers/app2.js
JavaScript
mit
884
import React, { PropTypes } from 'react'; import CSSModules from 'react-css-modules'; // Styles import styles from './index.scss'; const propTypes = { crises: PropTypes.array.isRequired, }; const CrisisArchiveList = ({ crises }) => ( <div styleName='CrisisArchiveList'> <h1> All Crises </h1> <u...
Temzasse/ntu-crysis
client/components/crisis/CrisisArchiveList/index.js
JavaScript
mit
1,416
/** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v25.0.1 * @link http://www.ag-grid.com/ * @license MIT */ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** Provides sync access to async component. D...
ceolter/angular-grid
community-modules/core/dist/cjs/filter/provided/date/dateCompWrapper.js
JavaScript
mit
2,578
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class MakePatientInfoTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('patient_info', function(Blueprint $table) { $table->bigincrements('file_n...
Meritei/MOI-TEACHING-AND-REFERAL-HOSPITALONLINE-HOSPITAL-MANAGEMENT-SYSTEMS
app/database/migrations/2015_02_25_123444_make_patient_info_table.php
PHP
mit
856
package laatikot; import java.util.ArrayList; import java.util.List; public class YhdenTavaranLaatikko extends Laatikko { private List<Tavara> laatikko; public YhdenTavaranLaatikko(){ this.laatikko = new ArrayList<Tavara>(); } @Override public void lisaa(Tavara tavara) { if(this.laatikko.isEmpty()){ ...
Vahtix/Ohjelmoinnin-MOOC-2017-nodl
Osa10/Osa10_07.ErilaisiaLaatikoita/src/laatikot/YhdenTavaranLaatikko.java
Java
mit
507
from flask_bcrypt import check_password_hash from project.user.services.create_user_service import CreateUserService from project.user.services.login_user_service import LoginUserService from project.user.services.logout_user_service import LogoutUserService from project.user.finders.user_finder import UserFinder fro...
andreffs18/flask-template-project
project/user/handlers/user_handler.py
Python
mit
1,551
'use strict'; import './index.html'; import 'babel-core/polyfill'; import PIXI from 'pixi.js'; import TWEEN from 'tween.js'; import Renderer from './Renderer/Renderer'; import App from './displayobjects/App/App.js'; var renderer = new Renderer(); var stage = new PIXI.Stage(0x333333); var app = new App(1920, 1080); ...
edwinwebb/dashboard-playground
app/app.js
JavaScript
mit
506
// File generated from our OpenAPI spec package com.stripe.model; public class SubscriptionCollection extends StripeCollection<Subscription> {}
stripe/stripe-java
src/main/java/com/stripe/model/SubscriptionCollection.java
Java
mit
145
package com.mindscapehq.raygun4java.core; import com.mindscapehq.raygun4java.core.messages.RaygunMessage; public interface IRaygunOnAfterSend extends IRaygunSentEvent { RaygunMessage onAfterSend(RaygunClient client, RaygunMessage message); }
MindscapeHQ/raygun4java
core/src/main/java/com/mindscapehq/raygun4java/core/IRaygunOnAfterSend.java
Java
mit
247
using UnityEngine; using System.Collections; using UnityEngine.UI; #if UNITY_5_3 using UnityEngine.SceneManagement; #endif public class vChangeScenes : MonoBehaviour { public void LoadThirdPersonScene() { #if UNITY_5_3 SceneManager.LoadScene("3rdPersonController-Demo"); #els...
Sugarfooot/VeggyBot
Assets/Invector-3rdPersonController/Scripts/Generic/vChangeScenes.cs
C#
mit
1,697
/** * @author mrdoob / http://mrdoob.com/ * @author *kile / http://kile.stravaganza.org/ * @author philogb / http://blog.thejit.org/ * @author mikael emtinger / http://gomo.se/ * @author egraether / http://egraether.com/ * @author WestLangley / http://github.com/WestLangley */ THREE.Vector3 = function ( x, y, z...
strandedcity/makeItZoom
src/threejs_files/Vector3.js
JavaScript
mit
13,436
class Ability include CanCan::Ability def initialize(user) user ||= User.new if user.role == 'admin' can :manage, :all elsif !user.id.blank? [Clothing, ClothingLog, Context, ClothingMatch, CsaFood, DecisionLog, Decision, Food, LibraryItem, LocationHistory, MeasurementLog, Measurement, Stuff...
sachac/quantified
app/models/ability.rb
Ruby
mit
1,714
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (global = global || self, factory(global.Dropbox = {})); }(this, (function (exports) { 'use strict'; // Auto-generated by S...
cdnjs/cdnjs
ajax/libs/dropbox.js/5.1.0/Dropbox-sdk.js
JavaScript
mit
236,211
/*jshint eqeqeq:false, eqnull:true, devel:true */ /*global jQuery, define */ (function( factory ) { "use strict"; if ( typeof define === "function" && define.amd ) { // AMD. Register as an anonymous module. define([ "jquery", "./grid.base", "./grid.common" ], factory ); } else { // Browser globals ...
cdnjs/cdnjs
ajax/libs/jqgrid/5.5.4/js/grid.formedit.js
JavaScript
mit
93,444
function createBrowserLocalStorageCache(options) { const namespaceKey = `algoliasearch-client-js-${options.key}`; // eslint-disable-next-line functional/no-let let storage; const getStorage = () => { if (storage === undefined) { storage = options.localStorage || window.localSto...
cdnjs/cdnjs
ajax/libs/algoliasearch/4.12.1/algoliasearch-lite.esm.browser.js
JavaScript
mit
33,346
/*! * chartjs-plugin-annotation v1.3.1 * https://www.chartjs.org/chartjs-plugin-annotation/index * (c) 2022 chartjs-plugin-annotation Contributors * Released under the MIT License */ import { Element, defaults, Chart, Animations } from 'chart.js'; import { defined, distanceBetweenPoints, callback, isFinite, valueOrD...
cdnjs/cdnjs
ajax/libs/chartjs-plugin-annotation/1.3.1/chartjs-plugin-annotation.esm.js
JavaScript
mit
57,862
/** * @license Highstock JS v8.0.2 (2020-03-03) * * Indicator series type for Highstock * * (c) 2010-2019 Paweł Fus * * License: www.highcharts.com/license */ 'use strict'; (function (factory) { if (typeof module === 'object' && module.exports) { factory['default'] = factory; module.exports ...
cdnjs/cdnjs
ajax/libs/highcharts/8.0.2/indicators/bollinger-bands.src.js
JavaScript
mit
16,410
/*! @license * Shaka Player * Copyright 2016 Google LLC * SPDX-License-Identifier: Apache-2.0 */ declare class GlobalError extends Error {} //!! generated by clutz. // Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js declare namespace shaka { class Player ext...
cdnjs/cdnjs
ajax/libs/shaka-player/3.1.6/shaka-player.ui.d.ts
TypeScript
mit
198,161
package csc426.ast; import org.beryx.textio.TextTerminal; import csc426.parser.Position; import csc426.semantics.LookupException; import csc426.semantics.SymbolTable; import csc426.semantics.Value; import csc426.semantics.VoidValue; public final class IdExpr extends Expr { public final String id; public IdExpr(St...
bhoward/CSC426
Demo3/src/main/java/csc426/ast/IdExpr.java
Java
cc0-1.0
785
wcn.view.view = (function() { var views = {}; class view extends whitecrow.control { initialize() { super.initialize(); } static register(name,layoutName){ if(!views[name]){ views[name] = this; this.layoutName = layoutName; return this; } else throw new Erro...
kanaxz/video-station
project/lib/whitecrow/namespace/view/view.js
JavaScript
cc0-1.0
473
import java.awt.BorderLayout; import java.awt.FlowLayout; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JTable; import javax.swing.table.DefaultTableModel; public class TelaNotas extends JFrame { priva...
JulioCesarMelo/ProjetoIntegrado
Interface/TelaNotas.java
Java
cc0-1.0
2,095
# coding: utf-8 import copy import json import gzip from cStringIO import StringIO from datetime import datetime import arrow import iso8601 from dateutil import tz import ML from ML import operation __author__ = 'czhou <czhou@ilegendsoft.com>' def get_dumpable_types(): return ( operation.BaseOp, ...
MaxLeap/SDK-CloudCode-Python
ML/utils.py
Python
cc0-1.0
3,771
#!/usr/bin/python import os import time import moveServo import os.path from multiprocessing import Process my_dir = os.path.dirname(__file__) def main(): moveServo.init_candy() moveServo.move_servo_ext(0, 180, 25) print "sleep 5" # time.sleep(1) moveServo.move_servo_ext(180, 90, 25)...
intelmakers/candy_machine
Python/test_servo.py
Python
cc0-1.0
625
from RebotConfig import RebotConfig from Log import Log from exchange.huobi.HuobiUtil import * from exchange.huobi.HuobiService import * import json import time import math '''{1min, 5min, 15min, 30min, 60min, 1day, 1mon, 1week, 1year }''' PERIOD2TYPE = { 1 : '1min', 5 : '5min', 15 : '15min', ...
WaitGodot/peatio-client-python
exchange/huobiEX.py
Python
cc0-1.0
15,480
package safepoint.fair; import java.lang.management.ManagementFactory; import java.util.concurrent.ThreadLocalRandom; public class SafepointUsingThreadGetInfo extends LoveAtATimeOfSafepoints { @Override protected Object safepointMethod() { long[] threadIds = ManagementFactory.getThreadMXBean().getAllThreadIds...
nitsanw/safepoint-experiments
src/main/java/safepoint/fair/SafepointUsingThreadGetInfo.java
Java
cc0-1.0
484
'use strict'; App.factory('PageStateDragClose', [ 'PageStateDragOpen', 'extend', function(PageStateDragOpen, extend) { return extend(function() { this.dragStart = function() { this.getPointer().dragCloseStart(); }; this.drag = function() { this.getPointer().dragClose(); }; this.dragComplete = fu...
benjah1/christmas2014
app/scripts/factory/book/PageStateDragClose.js
JavaScript
cc0-1.0
407
//! @Alan //! //! Exercise 10.42: //! Reimplement the program that eliminated duplicate words that //! we wrote in § 10.2.3 (p. 383) to use a list instead of a vector. //! #include <iostream> #include <string> #include <list> int main() { std::list<std::string> l = {"aa","aa","aa","aa","aasss","aa"}; l.uniqu...
courri/Cpp-Primer
ch10/ex10_42.cpp
C++
cc0-1.0
414
import FWCore.ParameterSet.Config as cms from HeavyIonsAnalysis.JetAnalysis.jets.akPu4PFJetSequence_PbPb_mc_cff import * #PU jets with 15 GeV threshold for subtraction akPu4PFmatch15 = akPu4PFmatch.clone(src = cms.InputTag("akPu4PFJets15")) akPu4PFparton15 = akPu4PFparton.clone(src = cms.InputTag("akPu4PFJets15")) ak...
mverwe/JetRecoValidation
PuThresholdTuning/python/akPu4PFJetSequence15_cff.py
Python
cc0-1.0
1,371
#include <iostream> #include <vector> void carr_func(int * vec) { std::cout << "carr_func - vec: " << vec << std::endl; } int main(void) { std::vector<int> v1 = {-1, 3, 5, -8, 0}; //initialize with list std::vector<int> v2; //don't initialize auto v3(v1); //initialize v3 via copy /** * Managing std::vector cap...
phillipjohnston/embedded-resources
examples/cpp/vector.cpp
C++
cc0-1.0
3,513
(function() { // this code can only be used in couchdb. module.exports = { design_docs: { helpers: require('lib/pantheon-helpers-design-docs/helpers'), } }; }).call(this);
Ooblioob/pantheon-helpers
pantheon-helpers.js
JavaScript
cc0-1.0
193
#include "pch.h" /********************************************************************** <BR> This file is part of Crack dot Com's free source code release of Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for information about compiling & licensing issues visit this URL</a> <PRE> If...
pgrawehr/golgotha
objs__base_launcher.cpp
C++
cc0-1.0
4,079
import OOMP newPart = OOMP.oompItem(9185) newPart.addTag("oompType", "POTE") newPart.addTag("oompSize", "07") newPart.addTag("oompColor", "X") newPart.addTag("oompDesc", "O102") newPart.addTag("oompIndex", "01") OOMP.parts.append(newPart)
oomlout/oomlout-OOMP
old/OOMPpart_POTE_07_X_O102_01.py
Python
cc0-1.0
241
#include<iostream> #include<string> #include<cctype> using std::string; using std::cin; using std::cout; using std::endl; int main(void) { string s("It's a string"); for (auto &c : s) { c = 'x'; } cout << s << endl; return 0; }
akanezorap/CppPrimer
ch03/ex3_06.cpp
C++
cc0-1.0
237
'use strict' /* eslint-env browser, webextensions */ // check if URL includes autoplay token if (decodeURIComponent(window.location.href).includes('autoplay=true')) { console.log('[Google Music Hotkeys] Autoplay token detected') const autoplay = setInterval(async () => { const playbutton = document.getElementB...
lidel/google-music-hotkeys
add-on/autoplay.js
JavaScript
cc0-1.0
634
package es.thesinsprods.zagastales.juegozagas.creadornpcs; import java.awt.Color; import java.awt.EventQueue; import java.awt.Toolkit; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.util.ArrayList; i...
ZagasTales/HistoriasdeZagas
src Graf/es/thesinsprods/zagastales/juegozagas/creadornpcs/InfoAcc3NPC.java
Java
cc0-1.0
7,548
jsonp({"cep":"87450000","cidade":"Tuneiras do Oeste","uf":"PR","estado":"Paran\u00e1"});
lfreneda/cepdb
api/v1/87450000.jsonp.js
JavaScript
cc0-1.0
89
package org.usfirst.frc.team1977.robot.commands.drive; import org.usfirst.frc.team1977.robot.commands.CommandBase; /** * A simple, non-actuator related command to be mapped to a controller button. * Toggles the speed coefficient for the drive subsystem between high and low * values. * * @author Loveland High Ro...
LovelandHighRobotics1977/FRC2015
FRC2015/src/org/usfirst/frc/team1977/robot/commands/drive/SpeedToggle.java
Java
cc0-1.0
1,048
using System; using System.Collections.Generic; using System.Reflection; using MSTD; using MSTD.ShBase; namespace CFL_1.CFL_System.MSTD.ShBase { public enum RelationKind { ISMEMBEROF, ISINLIST, HASMEMBER, HASINLIST } public struct BaseRelation { public Base...
CFLShine/CFL
CFLServerData/CFL_System/MSTD/ShBase/BaseRelations.cs
C#
cc0-1.0
4,744
// Filename: WaveFileReader.ava // Reference: http://www.cnblogs.com/liyiwen/archive/2010/04/19/1715715.html // Creator: RobinTang // Time: 2012-09-02 package com.sin.java.media; import java.io.BufferedInputStream; import java.io.FileInputStream; import java.io.IOException; public class WaveFileReader...
SoLoHiC/chddt
CHDDiagnosticTool/src/com/sin/java/media/WaveFileReader.java
Java
epl-1.0
5,668
''' This is an example how to use PyScanClient library to connect a scan server. It assumes the server running on localhost at port 4810. The scan server is a RESTful based web service, which was developed at SNS. Its binary nightly build could be found at: https://ics-web.sns.ornl.gov/css/nightly/ and source code is ...
PythonScanClient/PyScanClient
tutorial/1_start.py
Python
epl-1.0
787
/** * <copyright> * </copyright> * * $Id$ */ package gbind.dsl.impl; import gbind.dsl.ConceptFeatureRef; import gbind.dsl.ConceptMetaclass; import gbind.dsl.DslPackage; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.InternalEObject; import o...
jesusc/bento
plugins/genericity.language.gbind/src-gen/gbind/dsl/impl/ConceptFeatureRefImpl.java
Java
epl-1.0
5,771
/** * Copyright (c) 2014-2015 TELECOM ParisTech and AdaCore. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contr...
eliericha/atlanalyser
fr.tpt.atlanalyser.atl/src/fr/tpt/atlanalyser/atl/ATL/impl/LocatedElementImpl.java
Java
epl-1.0
8,031
package nju.software.sjy.dao; import java.util.List; import nju.software.sjy.model.xy.TOperation; import nju.software.sjy.model.xy.TResource; import nju.software.sjy.model.xy.TRole; import nju.software.sjy.model.xy.TRoleoperation; import nju.software.sjy.model.xy.TRoleres; public interface RoleDao { List<TRole> get...
SongyuCHen/SJY
src/nju/software/sjy/dao/RoleDao.java
Java
epl-1.0
1,665
package br.com.exception; public class FoneInvalidoException extends Exception{ /** * */ private static final long serialVersionUID = 1L; public FoneInvalidoException(String msg) { super(msg); } }
yuri4br/Clinica_Vet_POO
src/br/com/exception/FoneInvalidoException.java
Java
epl-1.0
220
/* * Sonatype Nexus (TM) Open Source Version * Copyright (c) 2008-present Sonatype, Inc. * All rights reserved. Includes the third-party code listed at http://links.sonatype.com/products/nexus/oss/attributions. * * This program and the accompanying materials are made available under the terms of the Eclipse Public...
sonatype/nexus-public
plugins/nexus-restore-raw/src/main/java/org/sonatype/nexus/blobstore/restore/raw/internal/orient/package-info.java
Java
epl-1.0
1,007
/** * Copyright (c) 2010-2021 Contributors to the openHAB project * * See the NOTICE file(s) distributed with this work for additional * information. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse....
paulianttila/openhab2
bundles/org.openhab.binding.etherrain/src/main/java/org/openhab/binding/etherrain/internal/api/EtherRainCommunication.java
Java
epl-1.0
9,421
// /******************************************************************************* // * Copyright (c) 2016 by RF77 (https://github.com/RF77) // * All rights reserved. This program and the accompanying materials // * are made available under the terms of the Eclipse Public License v1.0 // * which accompanies this ...
RF77/sharp-tsdb
src/FileDb/Impl/ReadWritLockable.cs
C#
epl-1.0
1,841
using System; using System.Reflection; using System.Resources; 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 ...
ChristopherOlson-WK/SikuliUI-IDE
SikuliUI-IDE_Package/Properties/AssemblyInfo.cs
C#
epl-1.0
1,160
/** */ package metamodel_bdsl.util; import metamodel_bdsl.BatchProcess; import metamodel_bdsl.BindingAttribute; import metamodel_bdsl.BindingElement; import metamodel_bdsl.Component; import metamodel_bdsl.ConveyorBelt; import metamodel_bdsl.Distribution; import metamodel_bdsl.Flow; import metamodel_bdsl.Gaussian; imp...
jesusc/bento
tests/test-outputs/bento.sirius.tests.metamodels.output/src/metamodel_bdsl/util/Metamodel_bdslSwitch.java
Java
epl-1.0
76,608
/* * Copyright 2012 PRODYNA AG * * Licensed under the Eclipse Public License (EPL), Version 1.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.opensource.org/licenses/eclipse-1.0.php or * http://www.nabucco.org/L...
NABUCCO/org.nabucco.business.address
org.nabucco.business.address.facade.message/src/main/gen/org/nabucco/business/address/facade/message/PhoneAddressListMsg.java
Java
epl-1.0
6,075
/******************************************************************************* * Copyright (c) 1997, 2010 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, an...
kgibm/open-liberty
dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/BoundedBuffer.java
Java
epl-1.0
56,371
import React from 'react'; import PropTypes from 'prop-types'; import {Button, Modal} from 'react-bootstrap'; import FontAwesome from 'react-fontawesome'; import axios from 'axios'; import Server from '../helpers/Server'; import CompareDocs from './CompareDocs'; import {get} from "lodash"; import TreeViewUtils from ".....
OCMC-Translation-Projects/ioc-liturgical-react
src/modules/ModalCompareDocs.js
JavaScript
epl-1.0
12,601