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
import datetime import requests import numpy as np import pandas as pd import sys # August 3, 2015: Updated the getNipa() method to accomodate possible differences in data availability for series in tables. # Cleaned up and organized the code substantially. class initialize: def __init__(self,a...
letsgoexploring/beapy-package
beapy.py
Python
mit
25,953
#include <iostream> #include <seqan/align.h> using namespace seqan; using namespace std; int main() { typedef String<char> TSequence; // sequence type typedef Align<TSequence,ArrayGaps> TAlign; // align type typedef Row<TAlign>::Type TRow; // gapped sequence type ...
bkahlert/seqan-research
raw/pmsb13/pmsb13-data-20130530/sources/qhuulr654q26tohr/2013-04-10T10-48-27.899+0200/sandbox/PMSB13/apps/5.0/5.0.cpp
C++
mit
1,130
# vim:ts=4:sts=4:sw=4:expandtab """The public API of satori.events. """ import hashlib import random import traceback from satori.objects import Object from satori.events.misc import Namespace from .dispatcher import Dispatcher from .protocol import KeepAlive, Disconnect, Attach, Detach, Map, Unmap, Send, Receive ...
zielmicha/satori
satori.events/satori/events/api.py
Python
mit
2,752
<?php if (!isset($login) || $login->validated != '1') { include DIR."/php/controller/403.php"; die(); } else { function htmlHead() { ?> <script src="http://maps.google.com/maps/api/js"></script> <script src="/jslib/gmaps.js"></script> <style> #map, #panorama { height:450px; background:#6699cc; } ...
fandisus/SSBIN
php/view/common/speciesmap.php
PHP
mit
3,611
module Mediadrawer module Rails VERSION = "0.0.2" end end
tracersoft/mediadrawer-rails
lib/mediadrawer/rails/version.rb
Ruby
mit
66
var Square = UI.component({ components: [Animator, KeyInput], animationMap: { moveLeft: { transform: [-50, 0, 0], time: 200, easing: "linear" }, moveRight: { transform: [50, 0, 0], time: 200, easing: "linear" } }, handleKeyPress: function(e) { if(e.keyCode === 37) { this.Animator.an...
davedx/lustro
examples/auto-atlassing.js
JavaScript
mit
1,618
class RenameTableAttributesOptionToAttributeList < ActiveRecord::Migration def change rename_table :attributes_options, :attribute_lists rename_table :attribute_class_options_attributes_options, :attribute_class_options_attribute_lists rename_column :attribute_class_options_attribute_lists, :attributes_op...
andrew2net/sitescan_common
db/migrate/20160315133239_rename_table_attributes_option_to_attribute_list.rb
Ruby
mit
488
package edu.cmu.hcii.whyline.bytecode; /** * @author Andrew J. Ko * */ public abstract class Instantiation extends Instruction { public Instantiation(CodeAttribute method) { super(method); } public String getReadableDescription() { return "new"; } public String getAssociatedName() { return null; } publi...
andyjko/whyline
edu/cmu/hcii/whyline/bytecode/Instantiation.java
Java
mit
383
using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Windows; // アセンブリに関する一般情報は以下の属性セットをとおして制御されます。 // アセンブリに関連付けられている情報を変更するには、 // これらの属性値を変更してください。 [assembly: AssemblyTitle("GorokuEdit")] [assembly: AssemblyDescription("")] [assem...
go63/BenzGorokuSearch
GorokuEdit/Properties/AssemblyInfo.cs
C#
mit
2,757
<!-- Unsafe sample input : get the field userData from the variable $_GET via an object SANITIZE : use in_array to check if $tainted is in the white list File : unsafe, use of untrusted data in a quoted property value (CSS) --> <!--Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agree...
stivalet/PHP-Vulnerability-test-suite
XSS/CWE_79/unsafe/CWE_79__object-classicGet__whitelist_using_array__Use_untrusted_data_propertyValue_CSS-quoted_Property_Value.php
PHP
mit
1,677
package MestreCuca; public enum Medidas { grama, unidade, xicara, colher_sopa }
glauber-barboza/crescer-2015-1
eclipse/MestreCucaAntigo/src/MestreCuca/Medidas.java
Java
mit
88
(function myAppCoreConstants() { 'use strict'; angular .module('myApp.core') .constant('FIREBASE_URL', 'https://blistering-heat-2473.firebaseio.com'); })();
neggro/angularjs_firebase
client/app/core/core.constants.js
JavaScript
mit
183
#!/usr/bin/env node const fs = require('fs'); const yaml = require('js-yaml'); const cli = require('../lib/cli'); // define cli options const optionList = [ { name: 'help', type: Boolean, description: 'show this help' }, { name: 'host', alias: 'h', type: String, description: 'host name' }, { name: 'port', alias:...
stefda/drsync
bin/drsync.js
JavaScript
mit
2,107
<?php namespace water\session; /* * This class will manage session cookied and allow the opening a session via * a user object and getting a user by there session ID. */ use water\database\Users; class SessionStore{ public static function hasSession(){ if(isset($_SESSION['login-data'])){ $da...
Falkirks/TeamShog
src/session/SessionStore.php
PHP
mit
1,586
# Copyright (C) 2002, Thomas Hamelryck (thamelry@binf.ku.dk) # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. from types import StringType from Bio.Alphabet import ProteinAlphabet from Bio.Seq import...
NirBenTalLab/proorigami-cde-package
cde-root/usr/lib64/python2.4/site-packages/Bio/PDB/Polypeptide.py
Python
mit
11,950
const { FuseBox, QuantumPlugin, UglifyJSPlugin } = require("fuse-box"); const fuse = FuseBox.init({ target: "browser@es5", homeDir: ".", output: "dist/$name.js", plugins: [ QuantumPlugin({ treeshake: true, target: "browser", }), UglifyJSPlugin({ }) ], }); fuse.bundle("remark-bundle").instructions(...
zipang/markdown-bundle
src/remark/bundle/fuse.js
JavaScript
mit
348
import { Controller } from 'marionette'; import Layout from '../commons/layout'; import MainPage from '../pages/mainPage'; import ImportPage from '../pages/importPage'; import ProfileView from '../pages/profileView'; export default Controller.extend({ defaultRoute(){ Layout.main.show( new MainPage() ); ...
jbsouvestre/challengr
Challengr/public/js/routes/controller.js
JavaScript
mit
619
require 'pp' require "google_drive" require "ruby-progressbar" ENV['SSL_CERT_FILE'] = Gem.loaded_specs['google-api-client'].full_gem_path+'/lib/cacerts.pem' module Pairity class GoogleSync CONFIG_FILE = Dir.home + "/.pairity_google.json" attr_reader :sheet_url def initialize(matrix) @matrix = m...
kitlangton/pairity
lib/pairity/google_sync.rb
Ruby
mit
4,194
import{ FETCH_TIMELOGS } from '../actions/TimelogActions'; function ajax(url, callback) { var data; var fetch; fetch = new XMLHttpRequest(); fetch.onreadystatechange = function() { if (fetch.readyState == XMLHttpRequest.DONE ) { if(fetch.status == 200){ var data = JSON.parse(fetch.responseTe...
pdx-code/teampro
src/reducers/TimelogReducer.js
JavaScript
mit
1,374
package com.sensepost.yeti.gui; import java.awt.event.ActionEvent; import java.util.ArrayList; import java.util.HashSet; import com.sensepost.yeti.common.JIPCalc; import com.sensepost.yeti.persistence.DataStore; /** * * @author willemmouton */ public class ReverseLookupInit extends BaseDlg { private String bu...
sensepost/yeti
src/main/java/com/sensepost/yeti/gui/ReverseLookupInit.java
Java
mit
11,627
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using ...
ewasow/learning-cs
MessParser/MessParser/MainWindow.xaml.cs
C#
mit
1,583
/* global angular, moment */ var app = angular.module('flowList', ['ui.grid']); app.controller('flowListCtrl', function($scope, $http) { 'use strict'; $http.get('/json/rawFlowsForLast/5/minutes') .success(function(data) { var retList = []; data.forEach(function(element) { ...
skarfacegc/FlowTrack2
www/js/flowListController.js
JavaScript
mit
836
require('date-utils'); var sendgrid = require('sendgrid')("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"); module.exports = function(app, config, passport, mongoose, fs, path){ var isAuthenticated = function(req, res, next){ if(req.isAuthenticated()){ return next(); } else { ...
prabhuramkumar/ThoughtPool
config/routes.js
JavaScript
mit
3,415
package com.mapzen.tangram; import android.support.annotation.Keep; import java.util.Map; /** * {@code LabelPickResult} represents labels that can be selected on the screen */ @Keep public class LabelPickResult { /** * Options for the type of LabelPickResult */ public enum LabelType { IC...
quitejonny/tangram-es
platforms/android/tangram/src/main/java/com/mapzen/tangram/LabelPickResult.java
Java
mit
1,122
<?php require_once __DIR__ . '/../../vendor/autoload.php'; use Symfony\Component\Console\Application; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\ArrayInput; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class Progres...
dcsg/phplx-how-to-build-console-app
examples/Helpers/progress.php
PHP
mit
795
using System; namespace Infrastructure.Interface { public interface ITrackableEntity { DateTime CreatedDate { get; set; } string CreatedBy { get; set; } DateTime UpdatedDate { get; set; } string UpdatedBy { get; set; } } }
Radigeco/webapi-jwt-angular-boilerplate
Context/ITrackableEntity.cs
C#
mit
273
class Recipe < ActiveRecord::Base acts_as_taggable validates :name, presence: true validates :people, presence: true validates :duration, presence: true validates :instructions, presence: true belongs_to :user has_many :ingredient_groups, dependent: :destroy has_many :links, dependent: :destroy ac...
joren/recipes
app/models/recipe.rb
Ruby
mit
498
class AddRailSafetyFeatures < ActiveRecord::DataMigration def up [ {name: 'Event Data Recorders', description: 'Report the total number of fleet vehicles equipped with event data recorders according to IEEE 1482.1 standard.', active: true}, {name: 'Emergency Lighting', description: 'Report the tot...
camsys/transam_transit
db/data_migrations/20200528175309_add_rail_safety_features.rb
Ruby
mit
1,076
(function () { 'use strict'; angular.module('AngularPanelsApp.theme') .directive('trackWidth', trackWidth); /** @ngInject */ function trackWidth() { return { scope: { trackWidth: '=', minWidth: '=', }, link: function (scope, element) { scope.trackWidth = $(e...
mauroBus/angular-panels-app
src/app/theme/directives/trackWidth.js
JavaScript
mit
752
import { DynamoStore } from '@shiftcoders/dynamo-easy' import { Person } from '../models' const objectToPut: Person = { id: 'vogelsw', name: 'Werner Hans Peter Vogels', yearOfBirth: 1958, } // object literal or new Person(...) new DynamoStore(Person) .put(objectToPut) .ifNotExists() .exec() .then(() => ...
shiftcode/dynamo-easy
snippets/store-requests/put.snippet.ts
TypeScript
mit
341
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /* * SDialogRepDpsList.java * * Created on 11/08/2010, 10:49:56 AM */ package erp.mtrn.form; import erp.data.SDataConstants; import erp.data.SDataConstantsSys; import erp.data.SDataUtilities; import erp.lib.SLibCo...
swaplicado/siie32
src/erp/mtrn/form/SDialogRepDpsList.java
Java
mit
25,545
<?php return array( 'controllers' => array( 'factories' => array( \Saas\Controller\Frontend\SaasController::class => \Saas\Controller\Frontend\SaasControllerFactory::class, ), ), 'bjyauthorize' => array( 'guards' => array( 'BjyAuthorize\Guard\Controller' => arra...
gregorybesson/playground
module/Saas/config/module.config.php
PHP
mit
1,171
#### # # This module allows for easy integration with Slack (https://slack.com/). The # messages are sent via JSON over plaintext, so don't use them for transmitting # anything sensitive. # #### ## Imports import json import urllib2 #### # # API Description # # These are all of the Slack API fields supported in this ...
univ-of-utah-marriott-library-apple/management_tools
management_tools/slack.py
Python
mit
10,760
version https://git-lfs.github.com/spec/v1 oid sha256:91f5e00183c2613cc249e316de2c35c08d8068c7e57cf90d3d4ea7b0179ef7cf size 651743
yogeshsaroya/new-cdnjs
ajax/libs/yasgui/0.0.6/yasgui.min.js
JavaScript
mit
131
'use strict'; const inView = require('in-view'); const forEach = require('lodash/forEach'); require('gsap'); class Animations { constructor () { this.root = document; this.h1 = this.root.querySelector('[data-hat-title] h1'); this.curtainH1 = this.root.querySelector('[data-curtain-goRight]'); this.g...
dnlml/myvc
src/assets/scripts/parts/animations.js
JavaScript
mit
9,136
<?php namespace Quoty\QuoteBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Category * * @ORM\Table() * @ORM\Entity(repositoryClass="Quoty\QuoteBundle\Entity\CategoryRepository") */ class Category { /** * @var integer * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(str...
Elfhir/quoty
src/Quoty/QuoteBundle/Entity/Category.php
PHP
mit
903
"use strict"; var notify = require("gulp-notify"); module.exports = function(error) { if( !global.isProd ) { var args = Array.prototype.slice.call(arguments); // Send error to notification center with gulp-notify notify.onError({ title: "Compile Error", message: "<%= error.message %>" ...
polygon-city/citygml-visual-debugger
gulp/util/handleErrors.js
JavaScript
mit
560
<?php namespace Olegf13\Jivochat\Webhooks\Request; use Olegf13\Jivochat\Webhooks\PopulateObjectViaArray; /** * Holds data on completed chatting (chat rank and messages list). * * @package Olegf13\Jivochat\Webhooks\Request */ class Chat { use PopulateObjectViaArray; /** * @var Message[] Messages lis...
Olegf13/jivochat-webhooks-api
src/Request/Chat.php
PHP
mit
1,516
/* colorstrip.js, a plugin for jQuery Copyright (C) 2011 John Watson <john@flagrantdisregard.com> flagrantdisregard.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 without restriction, includ...
Overdriven-Labs/Mexicoen140
app_server/public/js/colorstrip.js
JavaScript
mit
3,808
<?php defined('SYSPATH') OR die('No direct script access.'); return array( // Leave this alone 'modules' => array( // This should be the path to this modules userguide pages, without the 'guide/'. Ex: '/guide/modulename/' would be 'modulename' 'functest' => array( // Whether this modules userguide pages sho...
OpenBuildings/functest
config/userguide.php
PHP
mit
464
/* Matali Physics Demo Copyright (c) 2013 KOMIRES Sp. z o. o. */ using System; using System.Collections.Generic; using OpenTK; using OpenTK.Graphics.OpenGL; using Komires.MataliPhysics; namespace MataliPhysicsDemo { /// <summary> /// This is the main type for your game /// </summary> public cl...
stomppah/KAOS-Engine
Dependencies/MataliPhysicsBasic/MataliPhysicsOpenTK/Mono/MataliPhysicsDemo/MataliPhysicsDemo/Objects/Menu.cs
C#
mit
15,509
<?php // FrontendBundle:Pedido:reporteGeneral.html.twig return array ( 'b9ccb8c' => array ( 0 => array ( 0 => 'bundles/frontend/css/jquery.dataTables.css', ), 1 => array ( 0 => 'cssrewrite', ), 2 => array ( 'output' => '_controller/css/b9ccb8c.css', 'name...
pacordovad/project3
app/cache/dev/assetic/config/5/5ea803aa63bdc4efbcdc7be159654a7b.php
PHP
mit
2,903
asc.component('asc-combobox', function(){ this.afterInit = function (combobox) { var div = eDOM.el('div.dropdown-list'); while (combobox.children.length) { var item = combobox.children[0]; if (item.tagName === "ITEM") { item.innerText += item.getAttribute("tex...
vestlirik/apple-style-controls
src/combobox/code.js
JavaScript
mit
2,304
package ic2.api.item; import net.minecraft.item.ItemStack; import java.util.ArrayList; import java.util.List; /** * Allows for charging, discharging and using electric items (IElectricItem). */ public final class ElectricItem { /** * IElectricItemManager to use for interacting with IElectricItem ItemStacks. *...
planetguy32/TurboCraftingTable
src/api/java/ic2/api/item/ElectricItem.java
Java
mit
1,731
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // アセンブリに関する一般情報は以下の属性セットをとおして制御されます。 // アセンブリに関連付けられている情報を変更するには、 // これらの属性値を変更してください。 [assembly: AssemblyTitle("キャプチャされるのは変数という問題")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assemb...
autumn009/TanoCSharpSamples
Chap2/キャプチャされるのは変数という問題/キャプチャされるのは変数という問題/Properties/AssemblyInfo.cs
C#
mit
1,748
require "spec_helper" describe ChunkyPNG::Datastream do describe ".from_io" do it "should raise an error when loading a file with a bad signature" do filename = resource_file("damaged_signature.png") expect { ChunkyPNG::Datastream.from_file(filename) }.to raise_error(ChunkyPNG::SignatureMismatch) ...
wvanbergen/chunky_png
spec/chunky_png/datastream_spec.rb
Ruby
mit
6,371
using AutoMapper; using Volo.SqliteDemo.Authorization.Users; namespace Volo.SqliteDemo.Users.Dto { public class UserMapProfile : Profile { public UserMapProfile() { CreateMap<UserDto, User>(); CreateMap<UserDto, User>().ForMember(x => x.Roles, opt => opt.Ignore()); ...
aspnetboilerplate/aspnetboilerplate-samples
SqliteDemo/aspnet-core/src/Volo.SqliteDemo.Application/Users/Dto/UserMapProfile.cs
C#
mit
474
from __future__ import division def run () : import libtbx.load_env # import dependency for module in libtbx.env.module_list : print module.name if (__name__ == "__main__") : run()
hickerson/bbn
fable/fable_sources/libtbx/command_line/list_modules.py
Python
mit
194
var context; var plainCanvas; var log; var pointerDown = {}; var lastPositions = {}; var colors = ["rgb(100, 255, 100)", "rgb(255, 0, 0)", "rgb(0, 255, 0)", "rgb(255, 0, 0)", "rgb(0, 255, 100)", "rgb(10, 255, 255)", "rgb(255, 0, 100)"]; var onPointerMove = function(evt) { if (pointerDown[evt.pointerId]) {...
rtillery/html5demos
draw/index.js
JavaScript
mit
2,482
namespace Bolt { internal static class StringExensions { public static bool EqualsNoCase(this string first, string second) { if (Equals(first, second)) { return true; } return string.CompareOrdinal(first?.ToLowerInvariant() ?? fir...
yonglehou/Bolt
src/Bolt.Sources/StringExensions.cs
C#
mit
387
/** * @fileOverview Cross */ import React, { PureComponent, SVGProps } from 'react'; import classNames from 'classnames'; import { isNumber } from '../util/DataUtils'; import { filterProps } from '../util/types'; interface CrossProps { x?: number; y?: number; width?: number; height?: number; top?: number; ...
recharts/recharts
src/shape/Cross.tsx
TypeScript
mit
1,177
import http from 'http'; function upsertState(state) { var postData = JSON.stringify(state); var options = { hostname: 'localhost', port: 3000, path: '/application', method: 'POST', headers: { 'Content-Type': 'application/json', 'Content-Length': postData.length } }; var r...
doug-wade/incubator-application
browser/reducers/index.js
JavaScript
mit
2,674
version https://git-lfs.github.com/spec/v1 oid sha256:00be998e9791a319bc3751b20c19ce0fa3cb25a87c8dbf9030a728c92af8d95c size 100787
yogeshsaroya/new-cdnjs
ajax/libs/rxjs/2.3.24/rx.all.compat.min.js
JavaScript
mit
131
require_relative 'game_element' class GamePackage include GameElement attr_reader :items attr_reader :capacity def initialize(capacity) @capacity = capacity @items = [] end def add(item) @items << item end def discard() @item end def [](i) @items[i] ...
HungryAnt/ruby-demo
src/game_package.rb
Ruby
mit
419
import PropTypes from 'prop-types' import React from 'react' const Card = ({title}) => <h3>{title}</h3> Card.propTypes = { title: PropTypes.string.isRequired } export default Card
dustinspecker/the-x-effect
app/components/card/index.js
JavaScript
mit
187
namespace FoldAndSum { using System; using System.Collections.Generic; using System.Linq; class FoldAndSum { static void Main(string[] args) { var input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int k = input.Length / 2 / 2; ...
davidvaleff/ProgrammingFundamentals-Sept2017
07.DictionariesLambda&LINQ/Lab/FoldAndSum/FoldAndSum.cs
C#
mit
705
package com.bijoykochar.launcher.view; import android.content.ContentUris; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.provider.CalendarContract; import android.util.AttributeSet; import android.util.Log; import android.view.LayoutInflater; import android.view....
BijoySingh/One-Launcher
app/src/main/java/com/bijoykochar/launcher/view/CalendarView.java
Java
mit
4,170
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2015 The VCoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "amount.h" #include "tinyformat.h" const std::string CURRENCY_UNIT = "BT...
vcoin-project/v
src/amount.cpp
C++
mit
815
using System; using System.Globalization; namespace SharpRemote.WebApi.Routes.Parsers { internal sealed class Int64Parser : IntegerParser { public override Type Type => typeof(long); public override bool TryExtract(string str, int startIndex, out object value, out int consumed) { string digits; ...
Kittyfisto/SharpRemote
SharpRemote.WebApi/Routes/Parsers/Int64Parser.cs
C#
mit
634
<?php namespace App\Core\Contracts; interface CartInterface { }
storecamp/storecamp
app/Core/Contracts/CartInterface.php
PHP
mit
66
require "json" require "sinatra/base" require "github-trello/version" require "github-trello/http" module GithubTrello class Server < Sinatra::Base #Recieves payload post "/posthook-github" do #Get environment variables for configuration oauth_token = ENV["oauth_token"] api_key = ENV["a...
makoetting/github-trello
lib/github-trello/server.rb
Ruby
mit
2,318
#include <node.h> #include <node_buffer.h> #include <iostream> #include <cstdlib> using namespace v8; using namespace std; using namespace node; /* Random number generators */ static Handle<Value> UniformRandom(const Arguments& args) { HandleScope scope; double d_min = 0, d_max = 1.0; Local<Object> that ...
ashgti/node-math-utils
math_utils.cc
C++
mit
1,424
module Admin class FeedbackReportCSVWriter < CSVWriter columns :id, :service, :feedbackable_type, :rating, :created_at, :review, :acknowledged, :email, :phone, :traveler associations :user def traveler @record.user && @record.user.email end def service return nil if @record.feedba...
camsys/oneclick-core
app/serializers/admin/feedback_report_csv_writer.rb
Ruby
mit
845
require 'spec_helper' require 'guard/plugin' describe Guard::Commander do describe '.start' do before do ::Guard.stub(:setup) ::Guard.instance_variable_set('@watchdirs', []) ::Guard.stub(listener: double('listener', start: true)) ::Guard.stub(runner: double('runner', run: true)) ::G...
yujinakayama/guard
spec/guard/commander_spec.rb
Ruby
mit
5,527
/** * 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. */ package com.microsoft.azure.management.storage.v2019_04_01.implementation; import com.m...
navalev/azure-sdk-for-java
sdk/storage/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/storage/v2019_04_01/implementation/StorageManagementClientImpl.java
Java
mit
9,641
package by.trapecia.dao; import by.trapecia.Main; import by.trapecia.model.Client; import by.trapecia.model.Rent; import java.sql.*; import java.util.ArrayList; import java.util.logging.Level; import java.util.logging.Logger; /** * Created by Denis on 15.12.2015. */ public class RentDaoImpl implements RentDao { ...
Maximenya/Trapezia-1.01
src/main/java/by/trapecia/dao/RentDaoImpl.java
Java
mit
3,231
import { IAppToken, createToken } from '../lib/authorization' import * as KoaRouter from 'koa-router' import { User } from '../models' import { IsomorphicRenderController } from '../controllers/IsomorphicRender' import { clearCookieToken, restrictIdentifiedAccess, restrictUnidentifiedAccess } from '../lib/authorization...
rodrigopivi/PlayApp
src/server/controllers/User.ts
TypeScript
mit
3,330
var arr = 'ciao come va'.split(' '); var filtered = arr.filter(function(item) { return item != 'va'; }); Array.prototype.filtroMio = function() { if (arr.length == 2) { return this } return []; }; var ar2 = arr.filtroMio(); console.log(ar2); console.log(filtered);
brugnara/node-lessons
lessons/05-filtered.js
JavaScript
mit
280
#ifndef SERVER_BASE_HPP #define SERVER_BASE_HPP #include <boost/asio.hpp> #include <regex> #include <unordered_map> #include <thread> #include <iostream> #include <ctime> #include "Request.h" #include "Response.h" namespace MyWeb { typedef std::map<std::string, std::unordered_map<std::string, std::function<vo...
neveis/WebNote
server_base.hpp
C++
mit
4,506
// Search index songs package song import ( "github.com/ambientsound/pms/song" ) // Song is a Bleve document representing a song.Song object. type Song struct { Album string Albumartist string Artist string File string Genre string Title string Year string } // New gener...
ambientsound/pms
index/song/song.go
GO
mit
693
<?php use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\Config\Loader\LoaderInterface; class AppKernel extends Kernel { public function registerBundles() { $bundles = array( new Symfony\Bundle\FrameworkBundle\FrameworkBundle(), new Symfony\Bundle\SecurityBundle\Sec...
fferz/lapagina
app/AppKernel.php
PHP
mit
1,567
#include "Mutex.h" /* Library C++ Mutex - Mutex fot threads. Copyright 2013 Eduardo Moura Sales Martins (edimartin@gmail.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 without restriction, ...
Edimartin/edk-source
edk/thread/Mutex.cpp
C++
mit
2,587
#-*- coding: utf-8 -*- """ EOSS catalog system Implementation of urthecast catalog access https://developers.urthecast.com/sign-in """ __author__ = "Thilo Wehrmann, Steffen Gebhardt" __copyright__ = "Copyright 2016, EOSS GmbH" __credits__ = ["Thilo Wehrmann", "Steffen Gebhardt"] __license__ = "GPL" __version__ = "1.0...
eoss-cloud/madxxx_catalog_api
catalog/manage/urthecastcatalog.py
Python
mit
2,226
require 'test_helper' class ConfirmationsControllerTest < ActionController::TestCase test "should get new" do get :new assert_response :success end test "should get create" do get :create assert_response :success end end
helmlogic/catalyst
test/functional/confirmations_controller_test.rb
Ruby
mit
248
import sqlalchemy class Connection(object): def __init__(self, auth): url = self._build_url(auth) self.engine = sqlalchemy.create_engine(url, convert_unicode=True) self.connection = None self.transaction = None def connect(self): self.connection = self.engine.conn...
trackingwire/witchcraft
witchcraft/connection.py
Python
mit
2,023
// Copyright (c) 2011-2013 The mitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "mitcoinunits.h" #include "primitives/transaction.h" #include <QStringList> mitcoinUnits::mitcoinUnits(QObject *p...
anders94/mitcoin
src/qt/mitcoinunits.cpp
C++
mit
5,957
<?php function build_order_no(){ $year_code = array('a','b','c','d','e','f','g','h','i','j'); $order_sn = (intval(date('Y'))- 2014) . strtoupper(dechex(date('m'))) . strtoupper(dechex(date('d'))). substr(time(),-5).substr(microtime(),2,5).sprintf('%d',rand(0,99)); return $order_sn; } $num = 0; wh...
z32556601/90ping
doc/test.php
PHP
mit
388
'use strict'; var Promise = require('bluebird'); var util = require('./util'); module.exports = function (bookshelf) { var BaseModel = bookshelf.Model.extend({ initialize: function () { this.on('saving', this.validate); }, validate: function (model, attrs, options) { return Promise.resolve(...
murmur76/bookshelf-validation
index.js
JavaScript
mit
545
require 'spec_helper' describe "User", :type => :model do before(:all) do self.class.fixtures :categories, :departments, :notes, :things, :brokens, :users end describe "hierarchical structure" do it "roots_class_method" do found_by_us = User.where(:parent_uuid => nil).to_a found_by_roots = U...
collectiveidea/awesome_nested_set
spec/models/users_spec.rb
Ruby
mit
28,195
#dice guideline from random import randint #FOR program module moduleName="Dice Module" #moduleName="The Lusty Orc Dice Module" #FOR dice rolls #mulligan_yes_or_no=True not implemented the_lowest_possible_roll=1 the_number_of_sides_on_a_die=6 the_number_of_rolls_in_a_set=4 reroll_if_equal_or_less=0 number_of_lowest_...
RZMC/dndCharGen
dice guideline.py
Python
mit
7,477
'use strict'; module.exports = { up: function(queryInterface, Sequelize) { return queryInterface.createTable('users', { id: { allowNull: false, autoIncrement: true, primaryKey: true, type: Sequelize.INTEGER }, ...
geanjunior/cracha
migrations/20170127020036-create-user.js
JavaScript
mit
1,093
import { Routes, RouterModule } from '@angular/router'; import { Grupos } from './grupos.component'; import { Ckeditor } from './components/ckeditor/ckeditor.component'; // noinspection TypeScriptValidateTypes const routes: Routes = [ { path: '', component: Grupos, children: [ { path: 'ckeditor',...
Kmilo9433/arka-cliente-generador
src/app/pages/grupos/grupos.routing.ts
TypeScript
mit
411
#include "Chapter7.h" #include "Killable.h" bool IKillable::IsDead() { return false; } void IKillable::Die() { GEngine->AddOnScreenDebugMessage(-1,1, FColor::Red,"Arrrgh"); AActor* Me = Cast<AActor>(this); if (Me) { Me->Destroy(); } }
sunithshetty/Unreal-Engine-4-Scripting-with-CPlusPlus-Cookbook
Chapter07/Source/Chapter7/Killable.cpp
C++
mit
245
import lazy from "lazy.js"; import { EventEmitter } from "events"; import _ from "lodash"; import AppDispatcher from "../AppDispatcher"; import GameStatus from "../constants/GameStatus"; import CompsEvents from "../events/CompsEvents"; import GamesEvents from "../events/GamesEvents"; class GameStore { constructor()...
ruippeixotog/botwars
client/js/stores/GamesStore.js
JavaScript
mit
3,892
<?php namespace Cygnite\Base\EventHandler; use Cygnite\Helpers\Inflector; /** * Class EventRegistrarTrait * * @package Cygnite\Base\EventHandler */ trait EventRegistrarTrait { /** * @return $this */ public function boot() { $this->registerEvents($this->listen); return $this;...
sanjoydesk/cygniteframework
vendor/cygnite/framework/src/Cygnite/Base/EventHandler/EventRegistrarTrait.php
PHP
mit
1,849
/* * @(#)ChoiceResource.java 1.3 97/06/27 * * (C) Copyright Taligent, Inc. 1996 - All Rights Reserved * (C) Copyright IBM Corp. 1996 - All Rights Reserved * * Portions copyright (c) 1996 Sun Microsystems, Inc. All Rights Reserved. * * The original version of this source code and documentation is copyrighted ...
pitpitman/GraduateWork
Java_tutorial/intl/datamgmt/demos-1dot1/ChoiceResource.java
Java
mit
1,916
Template.sort.helpers({ activeRouteClass: function(/* route names */) { // Man kann natürlich benannte Argumente an die Funktion übergeben, aber man kann auch eine beliebige Anzahl von anonymen Parametern mitgeben und abrufen indem man innerhalb der Funktion das Objekt arguments aufruft. var args = Array.prototyp...
shiftux/discover_meteor
client/templates/includes/sort.js
JavaScript
mit
859
//ECS 60 Homework #2 //Christopher Bird //ID: 997337048 //Professor: Hao Chen //Kruskal's Implementation along with Sorting Algorithm //Main.cpp #include <string> #include <iostream> #include "spantree.h" using namespace std; int main() { spantree Spantree; Spantree.readInput(); //Spantree.testInput(); //Reads ...
CKBird/Kruskals
Source/main.cpp
C++
mit
643
<?xml version="1.0" ?><!DOCTYPE TS><TS language="pt_PT" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About PioneerCoin</source> <translation>Sobre PioneerCoin</translation>...
pioneercrypto/PioneerCoin
src/qt/locale/bitcoin_pt_PT.ts
TypeScript
mit
119,141
<? class Welcome_model extends CI_Model{ function __construct(){ //Llamado al contructor del modelo parent::__construct(); } public function insertar_alumno($persona){ if ($this->db->insert('usu_al', $persona)) return true; else return false; } public function insertar_docente($persona){ if (...
GrinGraz/CIMVC
application/models/welcome_model.php
PHP
mit
2,333
declare const foo: string; export default foo;
typings/core
src/lib/__test__/fixtures/compile-export-default/index.d.ts
TypeScript
mit
48
#coding: utf-8 require 'test_helper' class CoreExtTest < ActiveSupport::TestCase test "str.encode_emoji" do assert_equal "test string", "test string".encode_emoji assert_equal "{{260e}}️", "☎️".encode_emoji assert_equal "{{1f4f1}}", "📱".encode_emoji end test "str.decode_emoji" do assert_equal "...
phonezawphyo/monkey_emoji
test/core_ext_test.rb
Ruby
mit
633
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.Text; namespace BetterWords { [ServiceContract] public interface IWordService { [OperationContract] string LoadData(); [OperationContract]...
amughni/SpellChecker
BetterWords/BetterWords/IWordService.cs
C#
mit
369
# Requires require "Core/CDImage" # An implementation for CDImage For RHEL module PackerFiles module RHEL class CD < Core::CDImageImpl # Override method for getting the ISO name def get_iso_name_pattern 'rhel-server-@release@-@arch@-dvd.iso' end # Override method for getting chec...
anandvenkatanarayanan/PackerFiles
lib/PackerFiles/OS/RHEL/CD.rb
Ruby
mit
670
# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::Compute::Mgmt::V2016_04_30_preview module Models # # The List Usages operation response. # class ListUsagesResult inc...
Azure/azure-sdk-for-ruby
management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/list_usages_result.rb
Ruby
mit
2,848
# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::Network::Mgmt::V2016_09_01 module Models # # Information gained from troubleshooting of specified resource. # class Troubles...
Azure/azure-sdk-for-ruby
management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/models/troubleshooting_details.rb
Ruby
mit
2,956
<!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html;charset=UTF-8" /> <meta charset="utf-8" /> <title>Pages - Petugas Dashboard UI Kit</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <link rel="apple...
Vancrew/IMK
application/views/template/header_umum.php
PHP
mit
9,330
define(function(require) { var _ = require('underscore'), d3 = require('d3'); function isTime(type) { return _.contains(['time', 'timestamp', 'date'], type); } function isNum(type) { return _.contains(['num', 'int4', 'int', 'int8', 'float8', 'float', 'bigint'], type); } function isStr(type) { ...
sirrice/dbwipes
dbwipes/static/js/summary/util.js
JavaScript
mit
6,474
Package.describe({ name: 'angular-compilers', version: '0.4.0', summary: 'Rollup, AOT, SCSS, HTML and TypeScript compilers for Angular Meteor', git: 'https://github.com/Urigo/angular-meteor/tree/master/atmosphere-packages/angular-compilers', documentation: 'README.md' }); Package.registerBuildPlugin(...
Urigo/angular-meteor
atmosphere-packages/angular-compilers/package.js
JavaScript
mit
780
namespace WithFormat.DateTime { public interface IYearFormatter { DateTimeFormatBuilder WithOneDigit(); DateTimeFormatBuilder WithTwoDigits(); DateTimeFormatBuilder WithAtLeastThreeDigits(); DateTimeFormatBuilder WithFourDigits(); DateTimeFormatBuilder WithFiveDi...
TheCrow1213/WithFormat
WithFormat/DateTime/IYearFormatter.cs
C#
mit
394