repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
depcheck/depcheck
test/fake_modules/webpack_inline_loader/index.ts
81
import 'script-loader!slickity-slick'; require('script-loader!slickity-slick');
mit
danglauber/FW2
public/js/site.js
462
(function($){ $(document).ready(function(){ // Cache the elements we'll need var menu = $('#cssmenu'); var menuList = menu.find('ul:first'); var listItems = menu.find('li').not('#responsive-tab'); // Create responsive trigger menuList.prepend('<li id="responsive-tab"><a href="#">Menu</a></li>'); // Toggle menu visib...
mit
sinkpoint/research-mri-db
patientdb/patientdb/migrations/0002_mris_subject.py
449
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('patientdb', '0001_initial'), ] operations = [ migrations.AddField( model_name='mris', name='subject'...
mit
jacob-keller/git-plugin
src/test/java/jenkins/plugins/git/AbstractGitSCMSourceTest.java
43578
package jenkins.plugins.git; import edu.umd.cs.findbugs.annotations.NonNull; import hudson.FilePath; import hudson.Launcher; import hudson.model.Action; import hudson.model.Actionable; import hudson.model.Run; import hudson.model.TaskListener; import hudson.plugins.git.UserRemoteConfig; import hudson.plugins.git.exten...
mit
wichtounet/thor-os
kernel/include/conc/mutex.hpp
2148
//======================================================================= // Copyright Baptiste Wicht 2013-2018. // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://www.opensource.org/licenses/MIT) //=================================================================...
mit
edosgn/colossus-sit
src/JHWEB/FinancieroBundle/Tests/Controller/FroCfgTipoRecaudoControllerTest.php
788
<?php namespace JHWEB\FinancieroBundle\Tests\Controller; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class FroCfgTipoRecaudoControllerTest extends WebTestCase { /* public function testCompleteScenario() { // Create a new client to browse the application $client = static::createCl...
mit
hovsepm/azure-libraries-for-net
src/ResourceManagement/TrafficManager/Generated/Models/TrafficFlow.cs
2956
// <auto-generated> // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // </auto-generated> namespace Microsoft.Azure.Management.TrafficManager.Flu...
mit
sparcs-kaist/araplus
apps/main/urls.py
799
"""araplus URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.8/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') Class-bas...
mit
koxder/DemoPlayer
content/scripts/model/presentationlayer/controllers/player/indexController.js
2266
angular.module('app'). controller('player_indexController', ['$scope','playerID','$http','$rootScope', function($scope,playerID,$http,$rootScope){ $scope.id = playerID; $scope.$parent.homepage = "no-sidebar"; $scope.dash_player_visibility = false; $sc...
mit
sstephenson/hector
lib/hector/logging.rb
256
module Hector class NullLogger def level=(l) end def debug(*) end def info(*) end def warn(*) end def error(*) end def fatal(*) end end class << self attr_accessor :logger end self.logger = NullLogger.new end
mit
flyinghail/Hail-Framework
src/Jose/Exception/JWTException.php
67
<?php namespace Hail\Jose\Exception; interface JWTException { }
mit
WaterlooSchedulingAssistant/wsa
db.js
35094
module.exports = { apiKey: '<user api key>', // All sizes are equal and persisted // There are five columns with adjustable widths // and the leftmost time column which has a fixed width // The column size is calculated using the viewport width // subtracted by the hour column width (a fixed value) // If ...
mit
adaltas/node-nikita
packages/docker/lib/rmi.js
1828
// Generated by CoffeeScript 2.6.1 // # `nikita.docker.rmi` // Remove images. All container using image should be stopped to delete it unless // force options is set. // ## Output // * `err` // Error object if any. // * `status` // True if image was removed. // ## Schema definitions var definitions, handl...
mit
Vincent0209/simple-rtmp-server
trunk/src/protocol/srs_protocol_io.hpp
5519
/* The MIT License (MIT) Copyright (c) 2013-2015 SRS(simple-rtmp-server) 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,...
mit
lgollut/material-ui
docs/src/pages/components/steppers/HorizontalLinearStepper.tsx
4312
import React from 'react'; import { makeStyles, Theme, createStyles } from '@material-ui/core/styles'; import Stepper from '@material-ui/core/Stepper'; import Step from '@material-ui/core/Step'; import StepLabel from '@material-ui/core/StepLabel'; import Button from '@material-ui/core/Button'; import Typography from '@...
mit
mjelks/webvideo
rating.php
362
<?php require_once 'src/VideoLibrary.php'; $library = new VideoLibrary(); $library->updateRating($_REQUEST['movie'], $_REQUEST['rating']); ?> <div class="alert alert-dismissable alert-success"> <button type="button" class="close" data-dismiss="alert">×</button> <strong>We have updated the rating to : </strong> <?...
mit
QuinntyneBrown/azure-search-getting-started
src/Chloe/wwwroot/video/video.component.ts
478
import { CanActivate, ChangeDetectionStrategy, Component } from "../core"; import { VideoActionCreator } from "./video.actions"; @Component({ template: require("./video.component.html"), styles: require("./video.component.css"), selector: "video", viewProviders: ["videoActionCreator"], inputs:["video"...
mit
SomMeri/simplesamples
src/main/java/meristuff/blog/simplesamples/utils/PubliclyCloneable.java
138
package meristuff.blog.simplesamples.utils; public interface PubliclyCloneable extends Cloneable { public PubliclyCloneable clone(); }
mit
git-pull-request/php-git
Tests/GitCommand/ConfigTraitTest.php
1939
<?php /* * This file is part of git-pull-request/git. * * (c) Julien Dufresne <https://github.com/git-pull-request/git> * * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. */ declare(strict_types=1); namespace GitPullRequest\Git\Tests\...
mit
tbruyelle/buildnumber-maven-plugin
src/main/java/org/codehaus/mojo/build/HgChangeSetMojo.java
5295
package org.codehaus.mojo.build; /* * Copyright 2001-2005 The Apache Software Foundation. * * 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/LICEN...
mit
Opiumtm/Imageboard10
Imageboard10/CodeTemplates/Esent/Model/EsentSetIndexRangeGrbit.cs
151
namespace CodeTemplates.Esent.Model { public enum EsentSetIndexRangeGrbit { Inclusive = 0x0001, UpperLimit = 0x0002, } }
mit
shaiun/devopsbuddy
src/test/java/com/devopsbuddy/DevopsbuddyApplicationTests.java
972
package com.devopsbuddy; import com.devopsbuddy.backend.service.I18NService; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.web.WebAppConfiguration; import org.springframework.boot.t...
mit
camspiers/Bayes
scripts/lib/d3.v2.js
234916
//Copyright (c) 2012, Michael Bostock //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...
mit
daveWid/Owl
classes/Owl/Asset/JavaScript.php
564
<?php namespace Owl\Asset; /** * A JavaScript asset for an owl view. * * @package Owl * @author Dave Widmer <dwidmer@bgsu.edu> */ class JavaScript { /** * @var string The src for the script tag */ public $src; /** * Creates a new JS view asset. * * @param string $src The script source */ ...
mit
kaoscript/kaoscript
test/fixtures/compile/function/function.named.throws.supertype.js
405
var Type = require("@kaoscript/runtime").Type; module.exports = function() { function foo(bar) { if(arguments.length < 1) { throw new SyntaxError("Wrong number of arguments (" + arguments.length + " for 1)"); } if(bar === void 0 || bar === null) { throw new TypeError("'bar' is not nullable"); } } try {...
mit
blebougge/Catel
src/Catel.Core/Catel.Core.Shared/ComponentModel/EventArgs/DataErrorsChangedEventArgs.cs
1259
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="DataErrorsChangedEventArgs.cs" company="Catel development team"> // Copyright (c) 2008 - 2015 Catel development team. All rights reserved. // </copyright> // -------------------...
mit
segafan/wme1_jankavan_tlc_edition-repo
src/Integrator/Integrator/Properties/Settings.Designer.cs
1091
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:2.0.50727.5456 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated...
mit
nook-ru/admin_helper_lib
lib/Widget/HelperWidget.php
41766
<?php namespace DigitalWand\AdminHelper\Widget; use Bitrix\Main\Localization\Loc; use DigitalWand\AdminHelper\Helper\AdminBaseHelper; use DigitalWand\AdminHelper\Helper\AdminEditHelper; use DigitalWand\AdminHelper\Helper\AdminListHelper; use Bitrix\Main\Entity\DataManager; /** * Виджет - класс, отвечающий за внешни...
mit
gcnew/MP2
src/re/agiledesign/mp2/internal/expressions/ArgumentAccessExpression.java
612
package re.agiledesign.mp2.internal.expressions; import re.agiledesign.mp2.internal.AssignmentVisitor; import re.agiledesign.mp2.internal.FunctionScope; import re.agiledesign.mp2.internal.Scope; public class ArgumentAccessExpression extends AccessExpression { private final int mIndex; public ArgumentAcces...
mit
stopyoukid/DojoToTypescriptConverter
out/separate/dojox.widget.PortletDialogSettings.d.ts
232
/// <reference path="Object.d.ts" /> /// <reference path="dojox.widget.PortletSettings.d.ts" /> module dojox.widget{ export class PortletDialogSettings extends dojox.widget.PortletSettings { dimensions : any[]; dialog : Object; } }
mit
frunjik/poly-please
server/cigly/views/page_poly_edit.php
4982
<!doctype html> <html> <head> <title>/poly/please/edit/[get_url]</title> <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes"> <script src="/components/platform/platform.js"></script> <script src="/poly/scripts/poly_js.js"></script> <link rel="import" hre...
mit
josephyi/taric
spec/operations/lol_status_spec.rb
644
require 'spec_helper' describe Taric::Operation::LolStatus do let(:client) {Taric.client(api_key:'test')} describe '#shard_data' do let (:url) {expand_template(Taric::Operation::LolStatus::SHARD.template_url)} before {stub_get(url).to_return(body: fixture('shard.json'), headers: {content_type: 'applicatio...
mit
rufeltech/testing_server
src/main/java/ru/eltech/csa/siths/service/behaviour/IssueService.java
329
package ru.eltech.csa.siths.service.behaviour; import ru.eltech.csa.siths.entity.node.Issue; public interface IssueService { public boolean isIssueExists(String publicId); public boolean isIssueExists(Issue issue); public Issue createIssue(Issue issue); public Issue getIssueByPublicId(String publ...
mit
ByteSupreme/Micro-CMS-Symfony3
app/AppKernel.php
1908
<?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...
mit
Dormitory-System/Dormitory-System-Android
app/src/main/java/com/system/dormitory/dormitory_system_android/gcm/RegistrationIntentService.java
2803
package com.system.dormitory.dormitory_system_android.gcm; import android.annotation.SuppressLint; import android.app.IntentService; import android.content.Intent; import android.support.v4.content.LocalBroadcastManager; import android.util.Log; import com.google.android.gms.gcm.GoogleCloudMessaging; import com.googl...
mit
mxhold/vimperor
spec/lib/type_coersion_spec.rb
3813
require 'spec_helper' require_relative '../../lib/type_coersion' describe ArrayExtensions::DeepToH do describe '#deep_to_h' do it 'converts deeply nested array into hash' do module TestModule using ArrayExtensions::DeepToH def self.actual_hash [[:a, [[:b, [[:c, :d]]]]]].deep_to_h ...
mit
angelnetbd/angelnetbd
config/bootstrap.js
1043
/** * Bootstrap * (sails.config.bootstrap) * * An asynchronous bootstrap function that runs before your Sails app gets lifted. * This gives you an opportunity to set up your data model, run jobs, or perform some special logic. * * For more information on bootstrapping your app, check out: * http://sailsjs.org/#...
mit
palkan/test-prof
lib/test_prof/factory_all_stub.rb
740
# frozen_string_literal: true require "test_prof/factory_bot" require "test_prof/factory_all_stub/factory_bot_patch" module TestProf # FactoryAllStub inject into FactoryBot to make # all strategies be `build_stubbed` strategy. module FactoryAllStub LOCAL_NAME = :__factory_bot_stub_all__ class << self ...
mit
JakeAi/Dashboard
public/assets/js/ng/Modules/WebsiteModules/users/service.js
341
angular.module( 'webUsers' ) .service( 'webUsers', class extends BaseWebsiteModuleService { constructor($timeout, $http, $q, api2, webUsersConstants) { 'ngInject'; super( $timeout, $http, $q, api2 ); this.setConstants( webUsersConstants ); this.collection = []; this.objects = 'users'; this.object ...
mit
QuikMod/QuikCore
src/main/java/com/github/quikmod/quikcore/core/QuikCore.java
3938
/* */ package com.github.quikmod.quikcore.core; import com.github.quikmod.quikcore.command.QuikCommandManager; import com.github.quikmod.quikcore.config.QuikConfig; import com.github.quikmod.quikcore.lang.QuikTranslator; import com.github.quikmod.quikcore.log.QuikLogManager; import com.github.quikmod.quikcore.log.Qui...
mit
unger/Artportalen
Artportalen/Response/Web/SiteTypeEnum.cs
306
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Artportalen.Response.Web { public enum SiteTypeEnum { Ospecificerad = -1, Privat = 0, PublikDellokal = 1, PublikSuperlokal = 2, } }
mit
jcamposanok/introsde-2016-assignment-2
src/main/java/introsde/rest/ehealth/representations/PersonRepresentation.java
3183
package introsde.rest.ehealth.representations; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonRootName; import introsde.rest.ehealth.models.HealthProfileItem; impo...
mit
jbatonnet/smartsync
SmartSync.OneDrive/OneDriveSdk/Requests/Generated/ItemContentRequestBuilder.cs
2402
// ------------------------------------------------------------------------------ // Copyright (c) 2015 Microsoft Corporation // // 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 witho...
mit
starweb/ongoing
src/Ongoing/GetInOrderStatusReports.php
2142
<?php namespace Ongoing; class GetInOrderStatusReports { /** * @var string $GoodsOwnerCode */ protected $GoodsOwnerCode = null; /** * @var string $UserName */ protected $UserName = null; /** * @var string $Password */ protected $Password = null; /** *...
mit
lsroudi/pythonTraining
quickTour/whileFibonacci.py
78
#!/usr/bin/python a,b = 0,1 while a < 100 : print(a) b,a = a + b, b
mit
defano/hypertalk-java
src/main/java/com/defano/wyldcard/parts/util/MouseEventDispatcher.java
9545
package com.defano.wyldcard.parts.util; import com.defano.wyldcard.parts.ContainerWrappedPart; import com.defano.jmonet.canvas.JMonetCanvas; import javax.swing.*; import java.awt.*; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.awt.event.MouseMotionListener; import java.util.HashM...
mit
plotly/python-api
packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_y.py
537
import _plotly_utils.basevalidators class YValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name="y", parent_name="scattermapbox.marker.colorbar", **kwargs ): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=paren...
mit
mono/cocos2d-xna
tests/tests/classes/tests/SpriteTest/SpriteChildrenAnchorPoint.cs
3761
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Cocos2D; namespace tests { public class SpriteChildrenAnchorPoint : SpriteTestDemo { public SpriteChildrenAnchorPoint() { CCSize s = CCDirector.SharedDirector.WinSize; CCSpriteFr...
mit
rpoleski/MulensModel
examples/example_19_binary_source_binary_lens.py
2311
""" Example usage of the binary-lens binary-source model. """ import matplotlib.pyplot as plt import os import MulensModel as mm t_0_1 = 5370. t_0_2 = 5390. u_0_1 = -0.15 u_0_2 = 0.2 rho_1 = 0.01 t_star_2 = 0.45 common = {'t_E': 25., 's': 1.1, 'q': 0.1, 'alpha': 10.} parameters = {'t_0_1': t_0_1, 't_0_2': t_0_2, 'u...
mit
CsharptutorialHungary/Peldak
Egyszeru-Peldak/pelda_string_numformat/Program.cs
469
using System; namespace pelda_string_numformat { class Program { static void Main(string[] args) { Console.WriteLine("Pénz: {0:C1}", 3148); Console.WriteLine("Százalék: {0:P3}", 0.123456); Console.WriteLine("Általános: {0:G}", 132354); Console.Wr...
mit
congchinhqn/CapitalManagement
src/core/models/index.ts
82
export * from './base/base.model'; export * from './base/result-message.model';
mit
gforcedev/tgr-utils
js/urlutils.js
259
function getQueryVariable(variable) { var query = window.location.search.substring(1); var vars = query.split("&"); for (var i=0;i<vars.length;i++) { var pair = vars[i].split("="); if(pair[0] == variable){return pair[1];} } return(false); }
mit
egoist/kanpai
src/prepare.ts
3733
import fs from "fs"; import path from "path"; import symbols from "log-symbols"; import figures from "figures"; import { execa } from "execa"; import commitsBetween from "commits-between"; import table from "text-table"; import * as colors from "colorette"; import semver from "semver"; import { writePackage } from "wri...
mit
LimitedCoin/LimitedCoin
src/qt/locale/bitcoin_id_ID.ts
112825
<?xml version="1.0" ?><!DOCTYPE TS><TS language="id_ID" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About LimitedCoin</source> <translation type="unfinished"/> </message> <message> <location...
mit
fusioncharts/jslink
src/lib.js
16534
/** * This module contains all the helper and library functions that are required by various modules of `jslink`. * @module lib */ var E = '', SPC = ' ', BLOCK = 'Block', ASTERISK = '*', PLURAL_SUFFIX = 's', STRING = 'string', OBJECT = 'object', FUNCTION = 'function', SLASH = '/', ...
mit
Prior99/coffee
lib/cookies.js
1445
/* * Will set a new cookie to send in HTTP further on */ function setCookie(name, value, days) { if(days) //If an amount of days was specified the cookie will have a "best-before-date", if it exceeded, the cookie will be deleted { var date = new Date(); //Supplied time is relative to now date.setTime(date.getTi...
mit
eigenmethod/mol
row/demo/products/products.view.ts
266
namespace $.$$ { export class $mol_row_demo_products extends $.$mol_row_demo_products { products() { return $mol_range2(id => this.Product(id), () => this.count()) } @ $mol_mem_key product_title(id: string) { return $mol_stub_product_name() } } }
mit
isaacseymour/prawn-svg
spec/prawn/svg/elements/style_spec.rb
559
require 'spec_helper' describe Prawn::SVG::Elements::Style do let(:svg) do <<-SVG <style>a before&gt; x <![CDATA[ y inside <>&gt; k ]]> j after z</style> SVG end let(:document) { Prawn::SVG::Document.new(svg, [800, 600], {}) } let(:element) { Prawn::SVG::Elements::Style.new(document, documen...
mit
piotrek005/Library
vendor/sonata-project/admin-bundle/Tests/Form/FormMapperTest.php
10043
<?php /* * This file is part of the Sonata package. * * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Sonata\AdminBundle\Tests\Form; use Sonata\AdminBundle\Form\Fo...
mit
InversePalindrome/Memento-Mori
src/RoundNumber.cpp
2238
/* Copyright (c) 2017 InversePalindrome Memento Mori - RoundNumber.cpp InversePalindrome.com */ #include "RoundNumber.hpp" const std::array<std::pair<std::size_t, std::string>, 13u> RoundNumber::romanNumerals = { std::make_pair(1000, "M") , std::make_pair(900, "CM") , std::make_pair(500, "D"), std::make...
mit
richardschneider/club-server
lib/session/score.js
4334
import scorer from 'bridge-scorer'; import resolvers from '../../data/resolvers'; import { Board, Game, SessionPairResult } from '../../data/connectors'; const scorers = { matchpoints (games) { scorer.matchpoints(games); let scoredGames = games.map(g => { let game = g.game; game.matchpointsNS...
mit
victronenergy/dbus-cgwacs
software/src/ac_sensor_settings_bridge.cpp
2268
#include <QsLog.h> #include <velib/qt/v_busitems.h> #include "ac_sensor_settings.h" #include "ac_sensor_settings_bridge.h" static const QString Service = "sub/com.victronenergy.settings"; static bool positionFromDBus(DBusBridge*, QVariant &v) { v = qVariantFromValue(static_cast<Position>(v.toInt())); return true; }...
mit
hypest/PrepaidTextAPI
src/org/hypest/prepaidtextapi/PrepaidTextAPI.java
26103
package org.hypest.prepaidtextapi; import java.util.ArrayList; import java.util.List; import java.util.Vector; import org.hypest.prepaidtextapi.filters.NetworkOperatorDatum; import org.hypest.prepaidtextapi.filters.NetworkOperatorDatum.NetworkOperator; import org.hypest.prepaidtextapi.receivers.RestAlarm; import org...
mit
jls713/jfactors
flattened/process_data.py
2570
## Produce Table 5 of SEG (2016) ## ============================================================================ import numpy as np import pandas as pd import sys import os.path sys.path.append('/home/jls/work/data/jfactors/spherical/') from J_D_table import posh_latex_names ## =========================================...
mit
Greenplugin/yandex-pdd
src/DomainManager.php
4278
<?php /** * Created by PhpStorm. * User: GreenPlugin * Date: 10.01.17 * Time: 0:57 */ namespace YandexPDD; use YandexPDD\Entity\DomainCollectionResponse; use YandexPDD\Entity\DomainConnectionResponse; use YandexPDD\Entity\DomainCountryResponse; use YandexPDD\Entity\DomainDetailsResponse; use YandexPDD\Entity\Doma...
mit
thoas/picfit
vendor/github.com/thoas/go-funk/utils.go
987
package funk import "reflect" func equal(expected, actual interface{}) bool { if expected == nil || actual == nil { return expected == actual } return reflect.DeepEqual(expected, actual) } func sliceElem(rtype reflect.Type) reflect.Type { for { if rtype.Kind() != reflect.Slice && rtype.Kind() != reflect.Ar...
mit
redarmy30/Eurobot-2017
NewCommunication/main_file.py
16741
import driver import time from hokuyolx import HokuyoLX import logging import signal import npParticle as pf import numpy as np from multiprocessing import Process, Queue, Value,Array from multiprocessing.queues import Queue as QueueType lvl = logging.INFO logging.basicConfig(filename='Eurobot.log', filemode='w', forma...
mit
garysharp/EduHub.Data
src/EduHub.Data/Entities/KEMADataSet.cs
15491
using System; using System.CodeDom.Compiler; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Globalization; using System.Linq; using System.Text; namespace EduHub.Data.Entities { /// <summary> /// CSEF Receipt details Data Set /// </summary> [GeneratedCode...
mit
regb/scala-game-library
desktop-native/src/main/scala/sgl/native/NativeSystemProvider.scala
1421
package sgl package native import sgl.util._ import java.net.URI import java.awt.Desktop import scala.concurrent.ExecutionContext import scala.language.implicitConversions trait NativeSystemProvider extends SystemProvider with PartsResourcePathProvider { object NativeSystem extends System { override def ex...
mit
DataDog/java-dogstatsd-client
src/main/java/com/timgroup/statsd/StatsDSender.java
4270
package com.timgroup.statsd; import java.io.IOException; import java.net.SocketAddress; import java.nio.ByteBuffer; import java.nio.channels.DatagramChannel; import java.nio.channels.WritableByteChannel; import java.util.concurrent.BlockingQueue; import java.util.concurrent.Callable; import java.util.concurrent.CountD...
mit
chronos38/lupus-core
Source/BlackWolf.Lupus.System/UnixLibrary.cpp
1984
/** * Copyright (C) 2014 David Wolf <d.wolf@live.at> * * This file is part of Lupus. * 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 th...
mit
BuieConnect/BuieConnect-Android
app/src/main/java/me/arkanayan/buieconnect/services/MyGCMListenerService.java
3483
package me.arkanayan.buieconnect.services; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.media.RingtoneManager; import android.net.Uri; import...
mit
lreimer/secure-programming-101
secpro-webapp/src/main/java/de/qaware/campus/secpro/web/passwords/SecurePasswords.java
3832
/* * The MIT License (MIT) * * Copyright (c) 2015 QAware GmbH, Munich, Germany * * 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 r...
mit
digital-york/researchdatayork
config/initializers/active_fedora_noid.rb
174
ActiveFedora::Base.translate_uri_to_id = ActiveFedora::Noid.config.translate_uri_to_id ActiveFedora::Base.translate_id_to_uri = ActiveFedora::Noid.config.translate_id_to_uri
mit
Mistchenko/Dockers
ap/ws/ws/settings.py
5009
import os # from logging.handlers import SysLogHandler BASE_DIR = os.path.dirname(os.path.dirname(__file__)) SECRET_KEY = 'k0zg0kibq7lv3$vcodk0*6g&nq8yzgue_wfxvai%k1yy@5=myd' DEBUG = True TEMPLATE_DEBUG = True ALLOWED_HOSTS = ['0.0.0.0'] # Application definition INSTALLED_APPS = ( # 'django.contrib.admin', ...
mit
geota/hadesmem
include/memory/hadesmem/region_list.hpp
4978
// Copyright (C) 2010-2015 Joshua Boyce // See the file COPYING for copying permission. #pragma once #include <iterator> #include <memory> #include <utility> #include <windows.h> #include <hadesmem/config.hpp> #include <hadesmem/detail/assert.hpp> #include <hadesmem/detail/optional.hpp> #include <hade...
mit
mpalourdio/SpringBootTemplate
src/main/java/com/mpalourdio/springboottemplate/rsa/exceptions/EncryptException.java
351
package com.mpalourdio.springboottemplate.rsa.exceptions; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.ResponseStatus; @ResponseStatus(value = HttpStatus.BAD_REQUEST) public class EncryptException extends RuntimeException { public EncryptException(String message) { ...
mit
mikecann/Unity-Parse-Helpers
Editor/Tests/TestModels.cs
1604
using Parse; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using UnityParseHelpers; namespace UnityParseHelpersTests { public interface IFather { string Name { get; } Child Son { get; set; } IChild Daughter { get; se...
mit
ChannelElementsTeam/channel-web-client
public/src/core/db-service.js
5038
class DbService { constructor() { this.DB_NAME = "channels-web-client"; this.DB_VERSION = 1; this.STORE_COMPONENTS = "components"; this.STORE_PINNED = "pinnedcards"; this.MODE_READWRITE = "readwrite"; this.MODE_READ = "readonly"; this.db = null; } open() { return new Promise((reso...
mit
ling7334/Novel-crawler
usrlib.py
13928
#encoding:UTF-8 #from threading import Thread import pickle from configparser import ConfigParser from os import (path,makedirs,listdir) from urllib import (request,parse) from flask import jsonify from bs4 import BeautifulSoup HEADERS = { 'User-Agent' : 'Mozilla/5.0 (Windows NT 10.0; WOW64) Apple...
mit
psjava/psjava
src/test/java/org/psjava/ds/array/MutableArrayUsingBooleanArrayTest.java
368
package org.psjava.ds.array; import org.junit.Test; import static org.junit.Assert.*; public class MutableArrayUsingBooleanArrayTest { @Test public void test() { MutableArray<Boolean> a = MutableArrayUsingBooleanArray.wrap(new boolean[]{true, false, false}); a.set(1, true); assertEqu...
mit
Azure/azure-sdk-for-python
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2018_09_01/models/_monitor_management_client_enums.py
2147
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
mit
joren/recipes
app/models/user.rb
114
class User < ActiveRecord::Base authenticates_with_sorcery! has_many :recipes def to_s name end end
mit
Invenietis/CK-CodeGen
CK.CodeGen/ICodePart{T}.cs
702
using System; using System.Text; namespace CK.CodeGen { /// <summary> /// A code part enables any <see cref="INamedScope"/> to be segmented /// in as many parts as needed. /// </summary> /// <remarks> /// This generic interface doesn't extend the non generic <see cref="ICodePart"/>: each //...
mit
aboutlo/gulp-starter-kit
app/js/views/LoginView.js
1985
'use strict'; var $ = require('jquery'); var _ = require('underscore'); var Backbone = require('backbone'); Backbone.$ = $; var UserActions = require('../actions/UserActions'); var config = require('../config'); var SessionStore = require('../stores/SessionStore'); var MainView = Backbo...
mit
CupOfTea696/WordPress-Lib
src/Foundation/Bootstrap/ReadConfiguration.php
4245
<?php namespace CupOfTea\WordPress\Foundation\Bootstrap; use Illuminate\Config\Repository; use Symfony\Component\Finder\Finder; use Symfony\Component\Finder\SplFileInfo; use Illuminate\Contracts\Container\Container; use Illuminate\Contracts\Config\Repository as RepositoryContract; class ReadConfiguration { /** ...
mit
bang88/ant-console
src/stores/BaseStore.js
785
import assign from 'object-assign'; import {EventEmitter} from 'events'; const CHANGE_EVENT = 'change'; /** * create store * @param spec */ export function createStore(spec) { const emitter = new EventEmitter(); emitter.setMaxListeners(0); const store = assign({ emitChange() { e...
mit
qudou/xmlplus
example/docs/08-searching/07/index.js
706
xmlplus("xp", function (xp, $_, t) { $_().imports({ Index: { xml: "<div id='index'>first\ <button id='foo'>foo</button>\ <button id='bar'>bar</button>last\ </div>", fun: function (sys, items, opts) { console.log(...
mit
sergei1152/CraneBoom.js
scripts/Node.js
5404
var ForceLine=require('./ForceLine'); //node deligates forceline var Node = fabric.util.createClass(fabric.Circle, { type: 'node', initialize: function(options) { if (!options) { options = {}; } this.callSuper('initialize', options); //settings default values of t...
mit
gszathmari/wpbiff
setup.py
1227
from setuptools import setup, find_packages from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name="wpbiff", version="0.1.1", author="Gabor Szathmari", author_...
mit
mcodegeeks/OpenKODE-Framework
04_Sample/Galaga/Source/ScrMainMenu.cpp
4313
/* -------------------------------------------------------------------------- * * File ScrMainMenu.cpp * Description Main Menu Screen * Author Kyoung-Cheol Kim * Contact redfreek2c@gmail.com * * ----------------------------------------------------------------...
mit
ap--/python-seabreeze
src/libseabreeze/src/vendors/OceanOptics/protocols/obp/exchanges/OBPGetI2CMasterNumberOfBusesExchange.cpp
2106
/***************************************************//** * @file OBPGetI2CMasterNumberOfBusesExchange.cpp * @date May 2017 * @author Ocean Optics, Inc. * * LICENSE: * * SeaBreeze Copyright (C) 2017, Ocean Optics Inc * * Permission is hereby granted, free of charge, to any person obtaining * a copy of t...
mit
mentholi/giosgapps-todo-example
src/todo/serializers.py
380
from swampdragon.serializers.model_serializer import ModelSerializer class TodoListSerializer(ModelSerializer): class Meta: model = 'todo.TodoList' publish_fields = ('name', 'description') class TodoItemSerializer(ModelSerializer): class Meta: model = 'todo.TodoItem' publish_...
mit
zedam/portfolio
node_modules/browser-sync/lib/logger.js
4635
"use strict"; var messages = require("./messages"); var utils = require("./utils"); var _ = require("lodash"); var template = "{cyan:[}%s{cyan:] }"; var logger = require("eazy-logger").Logger({ prefix: template.replace("%s", "BS"), useLevelPrefixes: false }); module.exports.logger = logger; /*...
mit
Concatapult/pult
modules/less/config.js
1146
var lib = require('../../lib') module.exports = { maxCLIArgs: 0, pultModuleDeps: [], pultModuleConflicts: [], get: function get (vfs, baseConfig, moduleArgs) { var serverConfig = lib.clone(baseConfig.server) serverConfig.routerPipeline.unshift('./style-bundles.js') // // Inject link tag in...
mit
ycabon/presentations
2018-user-conference/arcgis-js-api-road-ahead/demos/gamepad/api-snapshot/esri/widgets/LayerList/nls/vi/LayerList.js
543
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.8/esri/copyright.txt for details. //>>built define({widgetLabel:"Danh s\u00e1ch L\u1edbp",noItemsToDisplay:"Hi\u1ec7n kh\u00f4ng c\u00f3 m\u1ee5c n\u00e0o \u0111\u1ec3 hi\u1ec3n th\u1ecb.",layerInvisibleAtSca...
mit
Harkamal/webcam_image_capture
test/dummy/config/routes.rb
100
Rails.application.routes.draw do mount WebcamImageCapture::Engine => "/webcam_image_capture" end
mit
SerafimArts/gitter-api
src/Support/Observer.php
793
<?php /** * This file is part of GitterApi package. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace Gitter\Support; /** * Class Observer * @package Gitter\Support */ class Observer { /** ...
mit
arxanas/drafts.ninja
public/src/components/game.js
3970
import App from '../app' import {Zones} from '../cards' import Chat from './chat' import Cols from './cols' import Grid from './grid' import DeckSettings from './deck-settings' import GameSettings from './game-settings' import {LBox} from './checkbox' let d = React.DOM export default React.createClass({ componentWi...
mit
jayanthkoushik/torch-gel
gel/ridgepaths.py
2301
"""ridgepaths.py: solution paths for ridge regression.""" import torch import tqdm def ridge_paths(X, y, support, lambdas, summ_fun, verbose=False): """Solve ridge ridgression for a sequence of regularization values, and return the summary for each. The multiple solutions are obtained efficiently using ...
mit