repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
aliyun/aliyun-oss-csharp-sdk
sdk/Common/Communication/ServiceClient.cs
3572
/* * Copyright (C) Alibaba Cloud Computing * All rights reserved. * */ using System; using System.Collections.Generic; using System.Diagnostics; using Aliyun.OSS.Util; using Aliyun.OSS.Common.Handlers; using Aliyun.OSS.Properties; namespace Aliyun.OSS.Common.Communication { /// <summary> ...
mit
SkillsFundingAgency/das-providerapprenticeshipsservice
src/SFA.DAS.ProviderApprenticeshipsService.Web/Models/ApprenticeshipDetailsViewModel.cs
1767
using System; using System.Collections.Generic; using SFA.DAS.ProviderApprenticeshipsService.Web.Models.DataLock; namespace SFA.DAS.ProviderApprenticeshipsService.Web.Models { public class ApprenticeshipDetailsViewModel : ViewModelBase { public string HashedApprenticeshipId { get; set; } publ...
mit
mcasperson/IridiumApplicationTesting
src/main/resources-full/zap/scripts/templates/authentication/Simple Form-Based Authentication.js
4135
// This authentication script can be used to authenticate in a webapplication via forms. // The submit target for the form, the name of the username field, the name of the password field // and, optionally, any extra POST Data fields need to be specified after loading the script. // The username and the password nee...
mit
FAU-Inf2/rpgpack-android
src/de/fau/cs/mad/rpgpack/matrix/SettingValueDialogFragment.java
7773
package de.fau.cs.mad.rpgpack.matrix; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import android.app.AlertDialog; import android.app.Dialog; import android.app.DialogFragment; import android.content.DialogInterface; import android.os.Bundle; import android.util.Log; imp...
mit
rianby64/SLRM-sales-front
src/components/clients/clientsSrv.js
795
;(function() { "use strict"; angular.module('RDash') .service('clientsHTTP', ['$http', 'authService', function($http, authService) { this.add = function add(client) { return $http.post("/api/clients", client); }; this.read = function read(criteria) { var criteria_ = cri...
mit
siddhartha-gadgil/JavaScripts
ConditionalConvergence/conditionalconvergence.js
2994
angular.module('CondConv',[]) .controller('CondConvController', ['$scope', function($scope) { function include(sum, target, element) { return Math.abs(target - sum - element) < Math.abs(target - sum) } function approxSeq(target, seq, error) { var accum = []; var partialsum = 0....
mit
rafaelaznar/gesane-client
public_html/js/system/shared/home.js
1766
/* * Copyright (c) 2017 by Rafael Angel Aznar Aparici (rafaaznar at gmail dot com) * * TROLLEYES helps you to learn how to develop easily AJAX web applications * * Sources at https://github.com/rafaelaznar/gesane-client * * TROLLEYES is distributed under the MIT License (MIT) * * Permission is hereby granted, ...
mit
cotag/perus
lib/perus/server/migrations/005_create_errors.rb
339
Sequel.migration do up do create_table(:errors) do primary_key :id Integer :system_id, null: false Integer :timestamp, null: false String :module, null: false String :description, null: false end end down do drop_table(:e...
mit
i-shulenin/d2d
src/utils/index.js
67
import getProps from './getProps'; export { getProps, }
mit
peteward44/WebNES
project/js/db/184D7BA4CCFE4143BBE4B3C793F0A3554BBAEA63.js
1626
this.NesDb = this.NesDb || {}; NesDb[ '184D7BA4CCFE4143BBE4B3C793F0A3554BBAEA63' ] = { "$": { "name": "Dragon Power", "class": "Licensed", "catalog": "NES-DP-USA", "publisher": "Bandai", "developer": "TOSE Software", "region": "USA", "players": "1", "date": "1988-03" }, "cartridge": [ { "$": { ...
mit
JoAutomation/todo-for-you
core/asset/js/HeadletQuickCreate.js
2805
/**************************************************************************** * todoyu is published under the BSD License: * http://www.opensource.org/licenses/bsd-license.php * * Copyright (c) 2012, snowflake productions GmbH, Switzerland * All rights reserved. * * This script is part of the todoyu project. * The todo...
mit
oliversd/express-rest-api-boilerplate
src/helpers/logger.js
157
import pino from 'pino'; const pretty = pino.pretty(); pretty.pipe(process.stdout); const logger = pino({ safe: true }, pretty); export default logger;
mit
adangtran87/gbf-weap
weapon_pool.py
7475
from weapon import * from summon import SummonType, Summon class WeaponPool(object): def __new__(cls, weapon_pool): if (len(weapon_pool) > 10): # Cannot create a weapon pool object with greater than 10 weapons raise ValueError("Weapon pool cannot be larger than 10 weapons") ...
mit
jwage/phpchunkit
src/TestCounter.php
3213
<?php declare(strict_types = 1); namespace PHPChunkit; use ReflectionClass; /** * @testClass PHPChunkit\Test\TestCounterTest */ class TestCounter { /** * @var FileClassesHelper */ private $fileClassesHelper; /** * @var array */ private $cache = []; /** * @var string ...
mit
Angular-Team-The-Merciful-Worms/big-starter
src/app/project/project-list-items/project-list-items.component.spec.ts
700
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ProjectListItemsComponent } from './project-list-items.component'; describe('ProjectListItemsComponent', () => { let component: ProjectListItemsComponent; let fixture: ComponentFixture<ProjectListItemsComponent>; beforeEach(asyn...
mit
quanhvpd00567/fuelphp
fuel/app/config/development/db.php
282
<?php /** * The development database settings. These get merged with the global settings. */ return array( 'default' => array( 'connection' => array( 'dsn' => 'mysql:host=localhost;dbname=test', 'username' => 'root', 'password' => '10061994', ), ), );
mit
Orphist/write_xlsx
test/package/styles/test_styles_09.rb
2108
# -*- coding: utf-8 -*- require 'helper' require 'write_xlsx/workbook' require 'write_xlsx/package/styles' require 'stringio' class TestStyles09 < Test::Unit::TestCase def test_styles_09 workbook = WriteXLSX.new(StringIO.new) format1 = workbook.add_format( :color => '#9C0006', :bg_color ...
mit
duiliopastorelli/lovelyFriday
app/AppKernel.php
1662
<?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
Amonhuz/v2ray-core
app/proxyman/command/errors.generated.go
176
package command import "v2ray.com/core/common/errors" func newError(values ...interface{}) *errors.Error { return errors.New(values...).Path("App", "Proxyman", "Command") }
mit
C-Bouthoorn/CharlieMarten
Files-not-web/c++/luckynumbersmall.cpp
274
#include <iostream> int y,m,d,z,p,i; int M(int x){while(!x%10)x/=10;for(i=100;;i*=10)if(x<i){p=i/10;break;};return x<10?x:M(x/p+x%p);} int main(){for(y=0;y++<10001;)for(m=1;m++<13;)for(d=1;z=m%2,d++<=(m==2?(y%4?28:29):(m<8?(z?31:30):(z?30:31)));)std::cout<<M(y+m+d)<<"\n";}
mit
robmckinnon/openregister-ruby
spec/spec_helper.rb
270
require 'webmock/rspec' RSpec.configure do |config| config.expect_with :rspec do |expectations| expectations.include_chain_clauses_in_custom_matcher_descriptions = true end config.mock_with :rspec do |mocks| mocks.verify_partial_doubles = true end end
mit
meandor/project-aim
src/main/java/de/haw/aim/vendor/persistence/Vendor.java
2817
package de.haw.aim.vendor.persistence; import de.haw.aim.authentication.persistence.User; import de.haw.aim.uploadcenter.persistence.UploadedFile; import org.springframework.data.annotation.Id; import org.springframework.data.mongodb.core.mapping.DBRef; import org.springframework.data.mongodb.core.mapping.Document; i...
mit
kurapikats/taxicomplaints
resources/views/admin/includes/site_styles.blade.php
236
<!-- MetisMenu CSS --> <link href="/components/metisMenu/dist/metisMenu.min.css" rel="stylesheet"> <!-- Custom CSS --> <link href="/components/startbootstrap-sb-admin-2/dist/css/sb-admin-2.css" rel="stylesheet"> @yield('page_styles')
mit
UNH-CORE/RM2-tow-tank
plot.py
3754
#!/usr/bin/env python """This script generates all the relevant figures from the experiment.""" from pyrm2tt.processing import * from pyrm2tt.plotting import * import argparse import sys if __name__ == "__main__": parser = argparse.ArgumentParser(description="Create figures from the " ...
mit
larrylv/hound-gitlab
app/controllers/repo_syncs_controller.rb
213
class RepoSyncsController < ApplicationController respond_to :json def create JobQueue.push( RepoSynchronizationJob, current_user.id, session[:gitlab_token] ) head 201 end end
mit
kevinr/750book-web
750book-web-env/lib/python2.7/site-packages/gunicorn/workers/ggevent_wsgi.py
1062
# -*- coding: utf-8 - # # This file is part of gunicorn released under the MIT license. # See the NOTICE for more information. from datetime import datetime from gunicorn.workers.ggevent import BASE_WSGI_ENV, GeventWorker from gevent import wsgi class WSGIHandler(wsgi.WSGIHandler): @property def status(sel...
mit
sportngin/resque_sliding_window
lib/resque_sliding_window.rb
176
require "resque_sliding_window/version" require "resque_sliding_window/window_slider" require "resque_sliding_window/resque_extensions" require "resque/plugins/sliding_window"
mit
xfornesa/shouts
src/Prunatic/WebBundle/Tests/Entity/PointTest.php
2824
<?php /** * Author: Xavier */ namespace Prunatic\WebBundle\Tests\Entity; use Prunatic\WebBundle\Entity\Point; class PointTest extends \PHPUnit_Framework_TestCase { /** * @covers \Prunatic\WebBundle\Entity\Point::__construct * @covers \Prunatic\WebBundle\Entity\Point::getLongitude */ public f...
mit
wjfwzzc/gensim_demo
LDA/__init__.py
163
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals from LDA import preprocess
mit
yogeshsaroya/new-cdnjs
ajax/libs/ckeditor/4.4.5/lang/el.js
130
version https://git-lfs.github.com/spec/v1 oid sha256:11dd30b70a546688ebac626b7dd1633ff8ce27e205ac105977354bdf1c9b5f49 size 27698
mit
som4paul/BolieC
src/qt/locale/bitcoin_kk_KZ.ts
108622
<?xml version="1.0" ?><!DOCTYPE TS><TS language="kk_KZ" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About BlackCoin</source> <translation type="unfinished"/> </message> <message> <location l...
mit
Hyftar/TeChris
lib/core/board.rb
2187
require './core/tetrimino' require './core/block' require './core/player' require './utility/point' class Board attr_reader :width, :height, :tetriminos, :array attr_accessor :current_tetrimino def initialize(player, width, height, nextpieces, *tetriminos) @player = player @width = width @height = ...
mit
vcatalasan/suitecrm-docker
SuiteCRM/cache/modules/SecurityGroups/language/en_us.lang.php
4797
<?php // created: 2015-04-29 15:44:41 $mod_strings = array ( 'LBL_ID' => 'ID', 'LBL_DATE_ENTERED' => 'Date Created', 'LBL_DATE_MODIFIED' => 'Date Modified', 'LBL_MODIFIED' => 'Modified By', 'LBL_MODIFIED_ID' => 'Modified By Id', 'LBL_MODIFIED_NAME' => 'Modified By Name', 'LBL_CREATED' => 'Created By', '...
mit
pietermartin/sqlg
sqlg-h2-parent/sqlg-h2/src/test/java/org/umlg/sqlg/test/H2AnyTest.java
760
package org.umlg.sqlg.test; import org.apache.commons.io.FileUtils; import org.junit.Assert; import org.junit.BeforeClass; import org.umlg.sqlg.AnyTest; import java.io.File; import java.io.IOException; /** * @author Lukas Krejci * @since 1.3.0 */ public class H2AnyTest extends AnyTest { @BeforeClass publ...
mit
Byte-Code/lm-digital-store-private-test
mocks/world.js
2064
import footer from '../app/assets/00_Footer.png'; import tavoliSedie from '../app/assets/01_TavoliSedie.png'; import carport from '../app/assets/02_Carport.jpg'; import panchine from '../app/assets/03_Panchine.jpg'; import sedie from '../app/assets/04_SediePoltrone.jpg'; import tavoli from '../app/assets/05_Tavoli.jpg'...
mit
MPRZLabs/MPi
conf.php
514
<?php require("debug.php"); // Welcome to MPi configuration file. Just fill in the fields. //CHANGE STUFF HERE define("DATABASE_BACKEND", "mysql"); if (DATABASE_BACKEND == "mysql") { require("mysql.php"); // CHANGE STUFF HERE $db = new DatabaseHandler("host", "user", "pass", "name"); ...
mit
ivajlotokiew/Databases_Entity_Framework
Entity_Framework_Code_First/Sales/Sales.ConsoleClient/Properties/AssemblyInfo.cs
1414
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("Sa...
mit
jwiesel/sfdcCommander
sfdcCommander/src/main/java/com/sforce/soap/_2006/_04/metadata/PermissionSetUserPermission.java
4771
/** * PermissionSetUserPermission.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. */ package com.sforce.soap._2006._04.metadata; public class PermissionSetUserPermission implements java.io.Serializable { private boolean enable...
mit
wp-plugins/raygun4wp
external/raygun4js/src/raygun.js-url.js
3419
// js-url - see LICENSE file var raygunJsUrlFactory = function (window, Raygun) { Raygun._private.parseUrl = function(arg, url) { function isNumeric(arg) { return !isNaN(parseFloat(arg)) && isFinite(arg); } return (function(arg, url) { var _ls = url || window.location.toString()...
mit
OptimalPayments/Java_SDK
NetBanxSDK/src/main/java/com/optimalpayments/common/InvalidRequestException.java
1671
/* * Copyright (c) 2014 Optimal Payments * * 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, modify, merge, publ...
mit
slippers/SqliteEtilqs
etilqs/src/androidTest/java/com/springtrail/etilqs/TableBuilderTest.java
5401
package com.springtrail.etilqs; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; import com.springtrail.etilqs.Builder.Column; import com.springtrail.etilqs.Builder.DataSourceBuilder; ...
mit
davidwhitney/nubot
Nubot/Adapters/ConsoleAdapter.cs
648
using System; namespace Nubot.Adapters { public class ConsoleAdapter : IRobotAdapter { private Action<IMessageChannel, Envelope> _onEvent; public void Listen(Action<IMessageChannel, Envelope> onEvent) { _onEvent = onEvent; string msg = null; while ...
mit
YukiMiyatake/AsyncBotCrawler
src/https_client.cpp
3037
#include"../include/httpx_client.hpp" bool verify_certificate(bool preverified, boost::asio::ssl::verify_context& ctx) { std::cerr << "verify_certificate " "\n"; char subject_name[256]; X509* cert = X509_STORE_CTX_get_current_cert(ctx.native_handle()); X509_NAME_oneline(X509_get_subject_name(cert), subject_name,...
mit
Asscoin/Asscoin
src/qt/locale/bitcoin_he.ts
122555
<?xml version="1.0" ?><!DOCTYPE TS><TS language="he" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Asscoin</source> <translation>אודות לייטקוין</translation> </mes...
mit
sitmo/stdfin
stdfin/process/brownian_motion.hpp
800
// Copyright (c) 2012 M.A. (Thijs) van den Berg, http://sitmo.com/ // // Use, modification and distribution are subject to the BOOST Software License. // (See accompanying file LICENSE.txt) #ifndef STDFIN_BROWNIAN_MOTION_SDE_HPP #define STDFIN_BROWNIAN_MOTION_SDE_HPP namespace stdfin { template <typename RealType...
mit
wellingtonsampaio/react-kanban-board
app/components/IconButton/index.js
623
/** * * IconButton * */ import React from 'react'; import FontAwesome from 'react-fontawesome'; import classNames from 'classnames'; import styles from './styles.css'; function IconButton({ onClick, icon, iconClass, buttonClass }) { return ( <div className={classNames(styles.iconButton, buttonClass)} onClick={o...
mit
inkcoin/inkcoin-project
src/qt/locale/bitcoin_bg.ts
108465
<?xml version="1.0" ?><!DOCTYPE TS><TS language="bg" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Inkcoin</source> <translation>За Биткоин</translation> </message...
mit
xiaotie/GebImage
src/Geb.Image/UnmanagedImage/Utils/ImageConverter.cs
27457
/************************************************************************* * Copyright (c) 2010 Hu Fei(xiaotie@geblab.com; geblab, www.geblab.com) ************************************************************************/ using System; using System.Collections.Generic; using System.Runtime.InteropServices; u...
mit
RespectNetwork/csp-provisioning-application
src/main/java/net/respectnetwork/csp/application/controller/HomeController.java
5596
package net.respectnetwork.csp.application.controller; import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.validation.Valid; import net.respectnetwork.csp.application.dao.DAOException; import net.respectnetwork.csp.application.dao.DAOFactory; import net.respectnetwork.csp.application.fo...
mit
mhartl/action_cable_chat_app
app/controllers/sessions_controller.rb
435
class SessionsController < ApplicationController def new end def create user = User.find_by(username: params[:session][:username].downcase) if user && user.authenticate(params[:session][:password]) log_in user redirect_to messages_url else flash.now[:danger] = 'Invalid username/pas...
mit
mtolk/jbake
src/main/java/org/jbake/template/AbstractTemplateEngine.java
1732
package org.jbake.template; import java.io.File; import java.io.Writer; import java.util.Map; import org.jbake.app.ContentStore; import org.apache.commons.configuration.Configuration; /** * A template is responsible for converting a model into a rendered document. The model * consists of key/value pairs, some of ...
mit
nex3/yard-pygments
templates/default/fulldoc/html/setup.rb
65
def init super asset('css/pygments.css', erb(:pygments)) end
mit
joespiff/RevitLookup
CS/Snoop/Data/ElementSet.cs
2680
#region Header // // Copyright 2003-2019 by Autodesk, Inc. // // Permission to use, copy, modify, and distribute this software in // object code form for any purpose and without fee is hereby granted, // provided that the above copyright notice appears in all copies and // that both that copyright notice and ...
mit
sutter-dave/ApogeeJS
web/prosemirror/rollup.extlibconfig.js
1215
import resolve from 'rollup-plugin-node-resolve'; import commonjs from 'rollup-plugin-commonjs'; //This can be used to construct a es deployable module from the npm source module export default [ // ES module (for bundlers) build. { input: 'extLib/crelt.es-gen.js', output: [ { file: 'dist/crelt.es.js', forma...
mit
XenosEleatikos/MusicBrainz
src/Relation/Type/ReleaseGroup/ReleaseGroup/RemixesAndCompilations.php
645
<?php namespace MusicBrainz\Relation\Type\ReleaseGroup\ReleaseGroup; use MusicBrainz\Value\Name; use MusicBrainz\Relation\Type\ReleaseGroup\ReleaseGroup; /** * This relationship type is only used for grouping other relationship types. * * @see https://musicbrainz.org/doc/Mix_Terminology * @link https://musicbra...
mit
Tresint/worldherb
forum/datastore/administrators.dbb8d6c51e.php
123
<?php return <<<'VALUE' {"m":[],"g":{"4":{"row_id":4,"row_id_type":"group","row_perm_cache":"*","row_updated":0}}} VALUE;
mit
I-sektionen/i-portalen
wsgi/iportalen_django/user_managements/migrations/0014_auto_20151223_2340.py
558
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2015-12-23 22:40 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('user_managements', '0013_auto_20151223_1810'), ] operations = [ migrations.AlterModelO...
mit
michaeled/FormsAnimations
FormsAnimations/FormsAnimations/Animations/Equations/ExponentialEquations.cs
730
using System; namespace FormsAnimations.Animations.Equations { public static class ExponentialEquations { public static double EaseOut(double x) { return x.ApproximatelyEquals(1) ? 1 : -Math.Pow(2, -10 * x) + 1; } public static double EaseIn(double x) { ...
mit
polymonster/pmtech
core/put/source/audio/audio.cpp
12269
// audio_cmd.cpp // Copyright 2014 - 2019 Alex Dixon. // License: https://github.com/polymonster/pmtech/blob/master/license.md #include "audio.h" #include "data_struct.h" #include "memory.h" #include "pen_string.h" #include "slot_resource.h" #include "threads.h" #include "fmod.hpp" #include <math.h> using namespac...
mit
ChrisFadden/PartyTowers
src/Cannon.cpp
611
#include "Cannon.h" Cannon::Cannon(int X, int Y, int Level) { setPosition(X, Y); setSpeed(Level * 1); setPower(Level * 1); setCost(50); setUpgrade(50 + ((50 * (Level-1))/ 2)); setSell(0.5 * Level * 5); setRange(96); setTimeout(120); level = Level; } void Cannon::setLevel(int Level) { level = Level;...
mit
meritec/querrel
lib/querrel/static_pool.rb
414
require 'thread' module Querrel class StaticPool def initialize(size) @size = size @jobs = Queue.new end def enqueue(&job) @jobs.push(job) end def do_your_thang! threads = Array.new(@size) do Thread.new do while job = @jobs.pop(true) rescue nil ...
mit
SamuelEnglard/CIL.JS
TypeSystem/Cecil/CustomAttribute.ts
6185
module CIL.Cecil { export class CustomAttributeArgument { private _type: TypeReference; private _value: Object; type(): TypeReference { return this._type; } value(): Object { return this._value; } constructor(typ...
mit
corneliuspreidel/BimPlusClientIntegration
src/main/java/bimplus/data/DtoTopology.java
2888
/* * Copyright (c) 2016 Cornelius Preidel * 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, modify, merge, publi...
mit
lgvalle/Beautiful-News
app/src/main/java/com/lgvalle/beaufitulnews/elpais/ElPaisModule.java
783
package com.lgvalle.beaufitulnews.elpais; import retrofit.RestAdapter; import retrofit.converter.SimpleXMLConverter; /** * Created by lgvalle on 31/07/14. */ public class ElPaisModule { private static final String END_POINT = "http://elpais.com/rss/"; private static final ElPaisService service; static { // C...
mit
Convolvr/convolvr
client/src/assets/entities/tools/code-tool.ts
5821
import { initLabel } from "../../../systems/tool/tool-ui"; import AssetSystem, { CreateEntityConfig } from "../../../systems/core/assets"; import { ToolBehaviorType, LayoutType } from "convolvr-core/attribute"; import { DBComponent } from "convolvr-core/component"; export default function CodeTool(assetSystem: AssetS...
mit
kellegous/go
backend/leveldb/leveldb.go
4281
package leveldb import ( "bytes" "context" "encoding/binary" "errors" "os" "path/filepath" "sync" "github.com/syndtr/goleveldb/leveldb" "github.com/syndtr/goleveldb/leveldb/opt" "github.com/syndtr/goleveldb/leveldb/util" "github.com/kellegous/go/internal" ) const ( routesDbFilename = "routes.db" idLogF...
mit
trevornelson/wld-frontend
app/containers/LongTermGoals/sagas.js
2705
import { take, call, put, cancel, select, takeLatest } from 'redux-saga/effects'; import { get } from 'lodash'; import { LOCATION_CHANGE } from 'react-router-redux'; import api from 'services/wld-api'; import makeSelectAuthentication from 'containers/Authentication/selectors'; import { ADD_GOAL, ADD_GOAL_SUCCESS, ADD...
mit
periface/AbpCinotamZero-SmartAdmin
Cinotam.ModuleZero.AppModule/Sessions/Dto/UserLoginInfoDto.cs
482
using Abp.Application.Services.Dto; using Abp.AutoMapper; using Cinotam.AbpModuleZero.Users; namespace Cinotam.ModuleZero.AppModule.Sessions.Dto { [AutoMapFrom(typeof(User))] public class UserLoginInfoDto : EntityDto<long> { public string Name { get; set; } public string Surname { get; se...
mit
Aryk/dead_simple_cms
lib/dead_simple_cms/file_uploader/base.rb
944
module DeadSimpleCMS module FileUploader # Base file uploader class. Inherit from this to build your own uploaders for files. class Base attr_reader :file_attribute delegate :file_ext, :data, :to => :file_attribute def initialize(file_attribute) @file_attribute = file_attribute ...
mit
davehorton/drachtio-server
deps/boost_1_77_0/libs/variant2/test/variant_visit_derived.cpp
1668
// Copyright 2017, 2020 Peter Dimov. // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt #if defined(_MSC_VER) # pragma warning( disable: 4244 ) // conversion from float to int, possible loss of data #endif #include <boost/variant2/variant.hpp> #include <boost/core/...
mit
synewaves/starlight
src/Starlight/Component/StdLib/StorageBucket.php
3413
<?php /* * This file is part of the Starlight framework. * * (c) Matthew Vince <matthew.vince@phaseshiftllc.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Starlight\Component\StdLib; /** * Generic ...
mit
sshnet/SSH.NET
src/Renci.SshNet/Security/BouncyCastle/math/ec/multiplier/WNafL2RMultiplier.cs
3350
using System; namespace Renci.SshNet.Security.Org.BouncyCastle.Math.EC.Multiplier { /** * Class implementing the WNAF (Window Non-Adjacent Form) multiplication * algorithm. */ internal class WNafL2RMultiplier : AbstractECMultiplier { /** * Multiplies <code>this</code> b...
mit
th3oSMith/camion
app/routes/papsables.server.routes.js
596
'use strict'; module.exports = function(app) { var users = require('../../app/controllers/users'); var papsables = require('../../app/controllers/papsables'); // Papsables Routes app.route('/papsables') .get(papsables.list) .post(users.requiresLogin, papsables.create); app.route('/papsables/:papsableId') ...
mit
yuncms/yii2-user
ModuleTrait.php
424
<?php /** * @link http://www.tintsoft.com/ * @copyright Copyright (c) 2012 TintSoft Technology Co. Ltd. * @license http://www.tintsoft.com/license/ */ namespace yuncms\user; use Yii; /** * Trait ModuleTrait * @property-read Module $module * @package yuncms\user */ trait ModuleTrait { /** * @return M...
mit
alsemyonov/vk
lib/vk/api/audio/methods/get_albums.rb
1296
# frozen_string_literal: true require 'vk/api/methods' module Vk module API class Audio < Vk::Schema::Namespace module Methods # Returns a list of audio albums of a user or community. class GetAlbums < Schema::Method # @!group Properties self.open = false self...
mit
vsheyanov/asana-template-uploader
client/modules/new-template/new-template.js
1848
/** * Created by Victor on 25.11.2015. */ angular.module('asana-template-uploader') .controller('NewTemplateController', ['$scope', function($scope){ function parseContent(textContent){ var json = Papa.parse(textContent); var nameIndex = json.data[0].indexOf("Name"); ...
mit
capotej/migration_for
test/migration_for_test.rb
159
require 'test_helper' class MigrationForTest < ActiveSupport::TestCase # Replace this with your real tests. test "the truth" do assert true end end
mit
Wellington475/agil-framework
app/task/form_edit_item.php
1530
<?php require_once 'init.php'; use Agil\View\View as View; $request = View::route($_GET); $pk = $request['pk']; $sql = array( "id_project_task_items" => $pk, "status" => 1 ); $fields = array("title", "comment"); $model = new ProjectTaskItems(); $model->fields = $fields; $rs = $mo...
mit
Dimimo/Booklet
resources/lang/nl/passwords.php
1055
<?php /** * Copyright (c) 2017. Puerto Parrot Booklet. Written by Dimitri Mostrey for www.puertoparrot.com * Contact me at admin@puertoparrot.com or dmostrey@yahoo.com */ return [/* |-------------------------------------------------------------------------- | Password Reminder Language Lines |----------...
mit
KunmiaoYang/expertiza
app/controllers/roles_controller.rb
1516
class RolesController < ApplicationController def action_allowed? current_role_name.eql?("Super-Administrator") end # GETs should be safe (see http://www.w3.org/2001/tag/doc/whenToUseGet.html) verify method: :post, only: [:destroy, :create, :update], redirect_to: Role def index @roles = Role.order(:...
mit
jrasky/half2
src/main.rs
32387
#![feature(core)] #![feature(hash)] #![feature(collections)] #![feature(dir_entry_ext)] #![feature(path_relative_from)] #![feature(associated_consts)] #![feature(test)] #[macro_use] extern crate log; extern crate env_logger; extern crate test; extern crate rustc_serialize; // general TODO: // - create our own error ty...
mit
opinioapp/delivery-sdk-java
src/main/java/com/opinioapp/sdk/delivery/ApiClient.java
2068
package com.opinioapp.sdk.delivery; import com.opinioapp.sdk.delivery.exceptions.*; import com.opinioapp.sdk.delivery.reponses.DeliveryOrder; import com.opinioapp.sdk.delivery.reponses.RegisteredMerchant; import com.opinioapp.sdk.delivery.reponses.Serviceability; import com.opinioapp.sdk.delivery.reponses.SupportedLoc...
mit
openforis/collect
collect-core/src/main/java/org/openforis/collect/metamodel/ui/UIColumnGroup.java
4711
/** * */ package org.openforis.collect.metamodel.ui; import java.util.ArrayList; import java.util.Deque; import java.util.LinkedList; import java.util.List; import org.openforis.commons.collection.CollectionUtils; import org.openforis.idm.metamodel.EntityDefinition; import org.openforis.idm.metamodel.N...
mit
TAurelien/accountingApp
src/components/currencies/src/events/index.js
757
/** * @module Currencies Events * * @access private * @author TAurelien * @date 2015-05-02 * @version 1.0.0 */ 'use strict'; module.exports = function (options, imports, Currencies) { var logger = imports.logger.get('Currencies events'); var prefix = 'currencies'; return { /** * Emi...
mit
Antekov/simple-teacher
application/views/authentication/access_denied.php
1595
<html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <link rel="shortcut icon" href="/i/favicon.gif"/> <title>Z95 &gt; Authentication</title> <link rel="stylesheet" type="text/css" href="/<?=APPPATH?>views/css/common.css" /> <link rel="stylesheet" type="text/css" href="/<?=APPP...
mit
methodfactory/vagrant-aws
Packer/cookbooks/chocolatey/libraries/matchers.rb
630
# # Cookbook Name:: chocolatey # Library:: matchers # # These can be used when testing for chefspec. # Example: # Recipe: # chocolatey 'cool_package' # ChefSpec: # expect(chef_run).to install_chocolatey('cool_package') # if defined?(ChefSpec) ChefSpec.define_matcher(:chocolatey) def install_chocolatey...
mit
TorbenHaug/VS
de.haw-hamburg.vs-ws2015.spahl-haug.rest/de.haw-hamburg.vs-ws2015.spahl-haug.rest.errorhandler/src/main/java/de/haw_hamburg/vs_ws2015/spahl_haug/errorhandler/NotForSaleException.java
179
package de.haw_hamburg.vs_ws2015.spahl_haug.errorhandler; public class NotForSaleException extends Exception { public NotForSaleException(final String msg) { super(msg); } }
mit
kjsii123/entry-hw
app/modules/byrobot_controller_4.js
623
const byrobot_base = require('./byrobot_base'); /*************************************************************************************** * BYROBOT E-Drone Controller ***************************************************************************************/ class byrobot_controller_4 extends byrobot_base { /* ...
mit
farwish/php-lab
lab/via/examples/via_http_serv.php
3965
<?php /** * Via package. * * @license MIT * @author farwish <farwish@foxmail.com> */ include __DIR__ . '/../../../vendor/autoload.php'; $socket = 'tcp://0.0.0.0:8080'; $con = new \Via\Server(); $con // Parameter. // // option, default is 1 ->setCount(3) // option, can also be in constructor...
mit
EddyVerbruggen/nativescript-pluginshowcase
app/info-modal/info-modal.ts
1397
import { Component, OnDestroy, OnInit } from "@angular/core"; import { Page } from "tns-core-modules/ui/page"; import { PluginInfo } from "~/shared/plugin-info"; import { openUrl } from "tns-core-modules/utils/utils"; import { PluginInfoWrapper } from "~/shared/plugin-info-wrapper"; import { addTabletCss } from "~/util...
mit
Aedificem/ontrac
client/js/work/mod_workindex.js
3477
/* WORK INDEX PAGE FUNCTIONALITY * - Today's work due section * - Next day's work due section * - Navigation calendar */ modules.push({ name: "work-index", check: function() { return (PAGE=="/work"); }, run: function() { $("#projectDueDate").datepicker({ dateFormat: "yy-mm-dd" }); $(...
mit
skeswa/crowdcloud
server/util/protect.js
148
var passport = require('passport'); module.exports = passport.authenticate('windowslive', { successRedirect: '/', failureRedirect: '/login' });
mit
wenhulove333/ScutServer
Source/Framework/ZyGames.Framework/Plugin/Test/BaseCase.cs
6349
/**************************************************************************** Copyright (c) 2013-2015 scutgame.com http://www.scutgame.com 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 ...
mit
TOMB5/TOMB5
SPEC_PSXPC_N/ROOMLET1.H
87
#ifndef ROOMLETONE_H #define ROOMLETONE_H extern void DrawRoomletListAsmRL1(); #endif
mit
bjsawyer/Vending-Machine-ng2
src/app/services/product.service.ts
1603
import { Injectable } from '@angular/core'; import { Headers, Http } from '@angular/http'; import 'rxjs/add/operator/toPromise'; import { Product } from '../models/product/product.component'; @Injectable() export class ProductService { private headers = new Headers({ 'ContentType': 'application/json' }); privat...
mit
dexman545/TFCWaterCompatibility
src/api/Armor.java
2174
package com.bioxx.tfc.api; public class Armor { public static Armor[] armorArray = new Armor[256]; public static Armor leather = new Armor(0, 200, 250, 300, "Leather");//Tier 0 public static Armor leatherQuiver = new Armor(10, 0, 0, 0, "Leather Quiver");//Tier 0 public static Armor copperPlate = new Ar...
mit
Betweenart/fiProducts
server/config/environment/index.js
1137
'use strict'; var path = require('path'); var _ = require('lodash'); function requiredProcessEnv(name) { if(!process.env[name]) { throw new Error('You must set the ' + name + ' environment variable'); } return process.env[name]; } // All configurations will extend these options // =========================...
mit
Bespinoza10/CheffIt_v2.0
app/controllers/recipes_controller.rb
944
class RecipesController < ApplicationController before_action :find_recipe, only: [:edit, :show, :update, :destroy] def index @recipe = Recipe.all.order("created_at DESC") end def show end def new @recipe = Recipe.new end def create @recipe = Recipe.new(recipe_params) if @recipe.sa...
mit
nowphp/oFrame
oFrame/include/of/addin/oUpload/maxSize.php
309
<?php //最大上传限制 $size = ini_get('upload_max_filesize'); //字节单位转换率 $bits = array('K' => 1024, 'M' => 1048576, 'G' => 1073741824); //转换成字节 preg_match('@K|M|G@', strtoupper($size), $match) && $size = $bits[$match[0]] * $size; //输出json echo '{"maxSize":', (float)$size, '}';
mit
zdrjson/DDKit
Algorithm/TrimaBinarySearchTree.java
655
/** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */ class Solution { public TreeNode trimBST(TreeNode root, int L, int R) { if (root == null) return null; // val not in range, r...
mit