repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
plopcas/example-protractor
example-oauth-oidc-api/src/main/java/com/example/demo/FooController.java
2222
package com.example.demo; import com.fasterxml.jackson.databind.ObjectMapper; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; import javax.servlet.http.HttpServletRequest; import java.io.IOException; import ja...
mit
Steve-Himself/obd2net
src/Obd2Net/Decoders/PercentCenteredDecoder.cs
571
using Obd2Net.Infrastructure; using Obd2Net.InfrastructureContracts; using Obd2Net.InfrastructureContracts.Enums; using Obd2Net.InfrastructureContracts.Protocols; using Obd2Net.InfrastructureContracts.Response; namespace Obd2Net.Decoders { internal sealed class PercentCenteredDecoder : IDecoder<decimal> { ...
mit
davidchang/yo-in-flux
src/scripts/actions/YoActions.js
1239
/* * Copyright (c) 2014, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * YoActions */ var...
mit
sebas77/Svelto.ECS
com.sebaslab.svelto.ecs/Extensions/Unity/DOTS/Native/NativeEGIDMapper.cs
3822
#if UNITY_NATIVE using System; using System.Runtime.CompilerServices; using Svelto.Common; using Svelto.DataStructures; using Svelto.DataStructures.Native; namespace Svelto.ECS.Native { /// <summary> /// Note: this class should really be ref struct by design. It holds the reference of a dictionary that can bec...
mit
luis-sousa/GC-v1.1b
src/controller/GerarAvisoControllerPT1.java
4836
package controller; /* * ESTGF - Escola Superior de Tecnologia e Gestão de Felgueiras */ /* IPP - Instituto Politécnico do Porto */ /* LEI - Licenciatura em Engenharia Informática*/ /* Projeto Final 2013/2014 /* */ import application.GerarAvisoPT1; import application.GerarAvisoPT2; import dao.OrcamentoDAO; import ja...
mit
dancoates/frontend-starter
grunt/options/autoprefixer.js
374
(function(){ "use strict"; module.exports = function(option, grunt) { var config = { options: { map : true, browsers: ['last 2 versions','> 1%', 'ie 8', 'ie 9'] }, dist: { src : "dist/css/*.css" ...
mit
jwilk/anorack
tests/test_warn.py
1632
# Copyright © 2016-2021 Jakub Wilk <jwilk@jwilk.net> # # 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, mer...
mit
stivalet/PHP-Vulnerability-test-suite
XSS/CWE_79/unsafe/CWE_79__shell_exec__func_rawurlencode__Unsafe_use_untrusted_data-tag_Name.php
1285
<!-- Unsafe sample input : use shell_exec to cat /tmp/tainted.txt SANITIZE : use of rawurlencode File : unsafe, use of untrusted data in an tag name --> <!--Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee, to use, copy, modify, and distribute this software an...
mit
cdnjs/cdnjs
ajax/libs/single-spa/5.3.3/umd/single-spa.dev.js
58508
/* single-spa@5.3.3 - UMD - dev */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (global = global || self, factory(global.singleSpa = {})); }(this, (function (exports) { 'u...
mit
Travellerme/Booker
src/Ens/BookerBundle/Repository/RoomsRepository.php
596
<?php namespace Ens\BookerBundle\Repository; use Doctrine\ORM\EntityRepository; /** * RoomsRepository * * This class was generated by the Doctrine ORM. Add your own custom * repository methods below. */ class RoomsRepository extends EntityRepository { public function getRooms(){ $query = $this->getEntityM...
mit
zjhiphop/iot-font-icons
src/icons/sign-in.js
558
import Icon from '../components/Icon.vue' Icon.register({"sign-in":{"width":1536,"height":1792,"paths":[{"d":"M1184 896q0 26-19 45l-544 544q-19 19-45 19t-45-19-19-45v-288h-448q-26 0-45-19t-19-45v-384q0-26 19-45t45-19h448v-288q0-26 19-45t45-19 45 19l544 544q19 19 19 45zM1536 544v704q0 119-84.5 203.5t-203.5 84.5h-320q-1...
mit
selvasingh/azure-sdk-for-java
sdk/network/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/network/v2020_03_01/MetricSpecification.java
9726
/** * 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.network.v2020_03_01; import java.util.List; impo...
mit
simokhov/schemas44
src/main/java/ru/gov/zakupki/oos/types/_1/ZfcsComplaintType.java
11248
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2019.07....
mit
aoziczero/tcode
include/tcode/time/util.hpp
796
#ifndef __tcode_time_util_h__ #define __tcode_time_util_h__ #include <tcode/time/timestamp.hpp> #include <tcode/time/systemtime.hpp> namespace tcode { namespace time { bool is_leap_year( int year ); int number_of_days_between( int year_start , int year_end ); int number_of_days_between( int year , int ...
mit
koofka/singleproperty_redux
property-data/reducer-71-stinky-gulch.js
19103
/* * HomeReducer * * The reducer takes care of our data. Using actions, we can change our * application state. * To add a new action, add it to the switch statement in the reducer function * * Example: * case YOUR_ACTION_CONSTANT: * return state.set('yourStateVariable', true); */ /* disable eslint for stor...
mit
sigma/vmw.vco
setup.py
1271
from setuptools import setup, find_packages import os import sys def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() if sys.version_info < (2, 7): setup_requires_version = ['unittest2'] else: setup_requires_version = [] setup( name = "vmw.vco", version = "0.3.1", ...
mit
henrikfroehling/TraktApiSharp
Source/Lib/TraktApiSharp/Objects/Post/Syncs/Collection/Responses/Json/Writer/SyncCollectionPostResponseObjectJsonWriter.cs
2612
namespace TraktApiSharp.Objects.Post.Syncs.Collection.Responses.Json.Writer { using Newtonsoft.Json; using Objects.Json; using Syncs.Responses.Json.Writer; using System; using System.Threading; using System.Threading.Tasks; internal class SyncCollectionPostResponseObjectJsonWriter : AObjec...
mit
kulakowka/rest-api-request
tests/express.js
2584
'use strict' const express = require('express') const bodyParser = require('body-parser') const builder = require('./builder') const preview = require('./preview') const getUrl = require('./getUrl') var app = express() app.use(bodyParser.json()) app.use(bodyParser.urlencoded({ extended: true })) app.get('/', (req,...
mit
anderssonfilip/angular-country-map
app/js/controllers.js
322
'use strict'; /* Controllers */ angular.module('myApp.controllers', []) .controller('Search', function($scope, $http) { $http.get('countries.json').success(function(data) { $scope.countries = data; }) }) .controller('Wiki', ['$scope', function($scope) { } ]...
mit
xiao-T/vue-5253
src/js/game-list.js
3065
/** * Create by xiaoT * at 2015-11-23 */ ;(function(){ var GameList = function(){ var _this = this; _this.tagId = 0; _this.pageIndex = 0; _this.gameList = $('#js-game-list'); _this.loadMoreBtn = _this.gameList.siblings('.load-more'); _this.filterBtn = $('#js-game...
mit
tpstps/ncertsolutions
resources/views/blog/layouts/triangles-10.blade.php
74117
@extends('blog.layouts.math') @section('content') <br/> <br/> <div class="alert alert-danger" role="alert"> If you are seeing MATH PROCESSING ERROR,try ctrl + F5(hard refresh),if that doesnt solve ,clear the cache of your browser</div> <p><strong><em>Exercise 6.2</em></strong></p> <...
mit
nkbt/react-works
packages/swap/example/Clickable/Clickable.js
356
import React from 'react'; import {On} from '../On'; import {Off} from '../Off'; import {ReactSwap} from '../../src/Component'; export function Clickable() { return ( <div data-e2e="clickable"> <h2>Clickable</h2> <ReactSwap> <Off data-swap-handler={1} /> <On data-swap-handler={1} /> ...
mit
dbohn/holger
src/Modules/DeviceInfo.php
926
<?php namespace Holger\Modules; use Holger\HasEndpoint; class DeviceInfo { protected $endpoint = [ 'controlUri' => '/upnp/control/deviceinfo', 'uri' => 'urn:dslforum-org:service:DeviceInfo:1', 'scpdurl' => '/deviceinfoSCPD.xml', ]; use HasEndpoint; /** * Fetch info like...
mit
twenzel/SonyCameraRemoteControl
Test/Form1.cs
4291
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using Rssdp; using SonyCameraRemoteControl; namespace Test { public partial class Form1 : Form {...
mit
codehangar/agenda-codehangar
src/services/agenda.service.js
1099
(function() { "use strict"; angular .module('utils.codehangar') .factory('AgendaSvc', function($http, Session) { var _this = this this.createAgenda = function(agenda){ console.log('agendaService', agenda) return $http .post('http://localhost:9999/api/v1/agenda', { ...
mit
drakang4/creative-project-manager
src/utils/projectConfig.js
562
// @flow import path from 'path'; import JsonFile from './JsonFile'; export default class ProjectConfig { constructor(projectRoot) { this.configFile = new JsonFile(path.join(projectRoot, 'project.json')); } async loadProjectConfig() { try { return await this.configFile.readAsync(); } catch (er...
mit
Orasik/monolog-middleware
src/MonologMiddleware/Loggable/LoggableProvider.php
7361
<?php namespace MonologMiddleware\Loggable; use Psr\Http\Message\MessageInterface; use Psr\Http\Message\RequestInterface; use Psr\Http\Message\ResponseInterface; use GuzzleHttp\Psr7; /** * This class is copyright to Guzzle Library, I have modified it to extract loggables for monolog middleware * as its a great ide...
mit
lingtalfi/bee
bee/modules/MacBee/Component/Rotator/Exception/RotatorException.php
399
<?php /* * This file is part of the Bee package. * * (c) Ling Talfi <lingtalfi@bee-framework.org> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace MacBee\Component\Rotator\Exception; /** * RotatorException * @author...
mit
MDE4CPP/MDE4CPP
src/uml/src_gen/uml/impl/BroadcastSignalActionImpl.hpp
5909
//******************************************************************** //* //* Warning: This file was generated by ecore4CPP Generator //* //******************************************************************** #ifndef UML_BROADCASTSIGNALACTIONBROADCASTSIGNALACTIONIMPL_HPP #define UML_BROADCASTSIGNALACTIONBROADCAST...
mit
AntonPetrov/jmolTools
docs/jsmol/j2s/JM/Model.js
8996
Clazz.declarePackage ("JM"); Clazz.load (["JU.BS", "$.SB"], "JM.Model", ["java.util.Hashtable", "JU.AU", "JU.BSUtil"], function () { c$ = Clazz.decorateAsClass (function () { this.ms = null; this.modelIndex = 0; this.fileIndex = 0; this.hydrogenCount = 0; this.isBioModel = false; this.isPdbWithMultipleBonds = f...
mit
natac13/london-ontario-data
app/constants/directionMap.js
275
import { fromJS } from 'immutable' export default fromJS({ 1: { direction: 'East', arrow: 'right' }, 2: { direction: 'North', arrow: 'up' }, 3: { direction: 'South', arrow: 'down' }, 4: { direction: 'West', arrow: 'left' } })
mit
tlbdk/wsdl2ts
src/tsutils.js
2948
'use strict'; var CodeGenUtils = require('./codegenutils'); class TypeScriptCodeGen extends CodeGenUtils { generateClient() { // TODO: Find all operations and make then unique across service/binding // TODO: Foreach operation lookup message } } function _definitionToInterface(rootName, defini...
mit
kswoll/npeg
PEG/SyntaxTree/CharacterSet.cs
1452
using System.Collections.Generic; using System.Linq; namespace PEG.SyntaxTree { public class CharacterSet : Expression { public IEnumerable<CharacterTerminal> Characters { get; set; } public CharacterTerminal[] CharacterTable { get; set; } public CharacterSet(params CharacterTerminal[]...
mit
JeroenBosmans/nabu
nabu/neuralnetworks/trainers/ctctrainer.py
2367
'''@file ctctrainer.py contains the CTCTrainer''' import tensorflow as tf import trainer from nabu.neuralnetworks import ops class CTCTrainer(trainer.Trainer): '''A trainer that minimises the CTC loss, the output sequences''' def compute_loss(self, targets, logits, logit_seq_length, targ...
mit
gumacs92/dataprocessor
src/Rules/OptionalRule.php
1048
<?php namespace Processor\Rules; use Processor\DataProcessor; use Processor\Rules\Abstraction\AbstractEmptyRule; /** * Created by PhpStorm. * User: Gumacs * Date: 2016-11-04 * Time: 03:35 PM */ class OptionalRule extends AbstractEmptyRule { /* @var DataProcessor $processor */ protected $...
mit
etdev/algorithms
0_code_wars/is_a_number_prime.rb
224
# http://www.codewars.com/kata/5262119038c0985a5b00029f # --- iteration 1 --- # Test if number is prime def isPrime(num) return false if num < 2 (2..(Math.sqrt(num))).each do |x| return false if num % x == 0 end true end
mit
greenfieldhq/greenfield_rails
lib/greenfield_rails.rb
126
require 'greenfield_rails/version' require 'greenfield_rails/generators/app_generator' require 'greenfield_rails/app_builder'
mit
Lcaracol/ideasbox.lan
ideasbox/serveradmin/utils.py
451
import subprocess def call_service(service): args = ['sudo', 'service', service['name'], service['action']] process = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE) stdout, stderr = process.communicate() to_return = {'status': True} if process...
mit
eventEmitter/em-session-identity-cookie
test.js
434
var Webservice = require( "../ee-webservice" ) , Identity = require( "./" ); var service = new Webservice( { http: { interface: Webservice.Webserver.IF_ANY , port: 12001 } } ); var i = new Identity(); service.use( { request: function( request, response, next ){ i.set( request, re...
mit
jjenki11/blaze-chem-rendering
qca_designer/lib/pnetlib-0.8.0/tests/System.Xml/TestXmlSignificantWhitespace.cs
3673
/* * TestXmlSignificantWhitespace.cs - Tests for the * "System.Xml.TestXmlSignificantWhitespace" class. * * Copyright (C) 2002 Southern Storm Software, Pty Ltd. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the...
mit
jkereako/fish-species-leaderboard
app/models/species.rb
957
# Species # # The data source for this model is a static YAML file located in # `config/data/species.yml` class Species FILE_PATH = Rails.root.join('config', 'data', 'species.yml') include ActiveModel::Validations include ActiveModel::Conversion extend ActiveModel::Naming attr_accessor :name validates :n...
mit
Algogator/RSSreddit
docs/conf.py
8401
#!/usr/bin/env python # -*- coding: utf-8 -*- # # RSSreddit documentation build configuration file, created by # sphinx-quickstart on Tue Jul 9 22:26:36 2013. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # a...
mit
anniyananeesh/avenirevents
application/views/administrator/banners_management/delete.php
4067
<div class="page"> <?php echo form_open(HOST_URL."/".$folder_name."/delete", 'name="frmListing" id="frmListing"'); ?> <div id="module"> <div class="icon"><img src="<?=ADMIN_IMG_PATH?>/icon_<?php echo $folder_name; ?>.png" alt="<?=$module_name?>" /></div> <div><a href="<?=HOST_URL?>/<?=$folder_name?>" class="modul...
mit
leiyangyou/Arpeggio
setup.py
1923
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # Name: arpeggio.py # Purpose: PEG parser interpreter # Author: Igor R. Dejanović <igor DOT dejanovic AT gmail DOT com> # Copyright: (c) 2009-2016 Igor R. Dejanović <igor DOT dejanovic AT gmail ...
mit
bmaland/hostconnect
lib/hostconnect/builders/option_info_builder.rb
1742
module HostConnect class OptionInfoBuilder < AbstractBuilder def initialize(options = {}) @valid_options = [ :agent_id, :password, :opt, :option_number, :info, :date_from, :date_to, :scu_qty, :a_cache, :rate_convert, :room_configs, :minimum_availability, :sort_field, :ascending, :index_first...
mit
SkillsFundingAgency/das-employerapprenticeshipsservice
src/SFA.DAS.EmployerApprenticeshipsService.Infrastructure/Data/EmployerAccountsDbContext.cs
4468
using System.Collections.Generic; using System.Data.Common; using System.Data.Entity; using System.Data.Entity.ModelConfiguration.Conventions; using System.Threading.Tasks; using SFA.DAS.EAS.Domain.Models.Account; using SFA.DAS.EAS.Domain.Models.AccountTeam; using SFA.DAS.EAS.Domain.Models.PAYE; using SFA.DAS.EAS.Doma...
mit
shaotao/Leetcode
algorithm/720_longest_word_in_dictionary/LongestWordInDictionary.java
2973
import java.io.*; import java.util.*; class LongestWordInDictionary { public static void main(String[] args) { System.out.println("=== Longest Word in Dictionary ==="); Solution solution = new Solution(); String[][] input = {{"w","wo","wor","worl", "world"}, ...
mit
goyy/goyy
util/crypto/hmac/doc.go
484
// Copyright 2014 The goyy Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. // Package hmac implements the Keyed-Hash Message Authentication Code (HMAC) as // defined in U.S. Federal Information Processing Standards Publication ...
mit
guisrx/railroad-services
src/main/java/com/selau/thoughtworks/railroad/services/RailroadService.java
737
package com.selau.thoughtworks.railroad.services; import com.selau.thoughtworks.railroad.domain.Railroad; import com.selau.thoughtworks.railroad.domain.Town; /** * Interface of a collection of railroad services available for invocation. * @author selau * */ public interface RailroadService { int calculatePat...
mit
Verurteilt/core
tests/translate.parser.spec.ts
2202
import {TranslateParser, DefaultTranslateParser} from '../src/translate.parser'; describe('Parser', () => { let parser: TranslateParser; beforeEach(() => { parser = new DefaultTranslateParser(); }); it('is defined', () => { expect(TranslateParser).toBeDefined(); expect(parser...
mit
zambezi/fun
test/property_test.js
1240
import { strictEqual } from 'assert' import { property } from '../src' describe('property', () => { it('should generate a named property accessor for the provided string key', () => { const o = { a: 1, b: 2 } strictEqual(property('a')(o), 1) strictEqual(property('b')(o), 2) }) it('should generate a...
mit
meteo-ubonn/meanie3D
python/meanie3D/resources/tracks_visit.py
2101
#!/usr/bin/python ''' The MIT License (MIT) (c) Juergen Simon 2014 (juergen.simon@uni-bonn.de) 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 t...
mit
sveljko/base41
js/base41.js
607
function base41_decode(input) { var rslt = [] var n = input.length for (var i = 0; i < n; i += 3) { var x = (input.charCodeAt(i) - 41) + 41 * (input.charCodeAt(i+1) - 41) + 1681*(input.charCodeAt(i+2) - 41); rslt.push(x % 256, Math.floor(x / 256)) } return rslt } function base41_encode(input) { var rs...
mit
Uepsilon/consumo
app/models/order_item.rb
959
# == Schema Information # # Table name: order_items # # id :integer not null, primary key # amount :integer # order_id :integer not null # delivery_id :integer not null # created_at :datetime # updated_at :datetime # class OrderItem < ActiveRecord::Base belongs_to ...
mit
Daivuk/onut
src/Shader.cpp
44418
// Onut #include <onut/ContentManager.h> #include <onut/Log.h> #include <onut/Files.h> #include <onut/Shader.h> #include <onut/Strings.h> // STL #include <cassert> #include <map> #include <regex> // --BEGIN-- #define STB_C_LEX_C_DECIMAL_INTS Y // "0|[1-9][0-9]*" CLEX_intlit #define STB_C_...
mit
elastacloud/parquet-dotnet
src/SharpArrow/Flatbuffers/org/apache/arrow/flatbuf/TimeUnit.cs
255
// <auto-generated> // automatically generated by the FlatBuffers compiler, do not modify // </auto-generated> namespace org.apache.arrow.flatbuf { public enum TimeUnit : short { SECOND = 0, MILLISECOND = 1, MICROSECOND = 2, NANOSECOND = 3, }; }
mit
baretata/CSharpPartOne
02.Primitive Data Types and Variables/Null assigenment/Program.cs
585
using System; class NullAssigenment { static void Main() { int? intNum = null; Console.WriteLine("Integer null: {0}", intNum); Console.WriteLine("Integer null + 5: {0}", intNum + 5); intNum = 5; Console.WriteLine("Integer null with assigned value: {0}", intNum); ...
mit
medcat/command-runner
spec/spawn_spec.rb
1266
describe Command::Runner::Backends::Spawn do next unless Process.respond_to?(:spawn) && !(RUBY_PLATFORM == "java" && RUBY_VERSION =~ /\A1\.9/) it("is safe") { expect(described_class).to_not be_unsafe } it "is available" do expect(Command::Runner::Backends::Spawn).to be_available end it "returns a mess...
mit
zifeiyusama/zifeiyu
config.py
911
import os _basedir = os.path.abspath(os.path.dirname(__file__)) DEBUG = True ADMINS = frozenset(['youremail@yourdomain.com']) SECRET_KEY = 'f2f49908291696b8a4bb7d36b83589995cdca626' # SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(_basedir, 'apptest5.db') SQLALCHEMY_DATABASE_URI = 'mysql://root:dpfyl@localhos...
mit
rajananusha/swhacks2017
Assets/Scripts/AsteroidManager.cs
1331
using UnityEngine; using System.Collections; using UnityEngine.SceneManagement; public class AsteroidManager : MonoBehaviour { //public GameObject AstroExplosion; int x,y,z; EnemyManager e; bool flag; // Use this for initialization void Start () { x = Random.Range (-30, 30); y = Random.Rang...
mit
lpatalas/NhLogAnalyzer
NhLogAnalyzer/Properties/Resources.Designer.cs
2437
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.18034 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
mit
justinmarentette11/Tower-Defense-Galaxy
core/src/com/logicmaster63/tdgalaxy/networking/packets/ConfirmSession.java
236
package com.logicmaster63.tdgalaxy.networking.packets; public class ConfirmSession { public String session; public ConfirmSession(String session) { this.session = session; } public ConfirmSession() { } }
mit
hgoebl/DavidWebb
src/main/java/com/goebl/david/WebbUtils.java
14223
package com.goebl.david; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.UnsupportedEncodingException; import java.net.Ht...
mit
ronnyek/linq2db
Tests/Linq/DataProvider/SqlServerTests.cs
66176
using System; using System.Collections.Generic; using System.Data; using System.Data.Linq; using System.Data.SqlClient; using System.Data.SqlTypes; using System.Diagnostics; using System.Globalization; using System.Linq; using System.Threading.Tasks; using System.Xml; using System.Xml.Linq; using LinqToD...
mit
vassildinev/CSharp-OOP
05.OOPPrinciples2Homework/Shapes/Properties/AssemblyInfo.cs
1388
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("Sh...
mit
rwjblue/ember-suave
tests/fixtures/disallow-operator-before-line-break/bad/expression.js
27
var x = 4 + 5 + 12 + 13;
mit
RocketLeagueLatvia/discord-bot
commands/event/closeCheckin.js
1349
const { Command } = require('discord.js-commando'); const Event = require('../../lib/event'); module.exports = class CloseCheckInCommand extends Command { constructor(client) { super(client, { name: 'event-check-in-close', aliases: ['close-check-in'], group: 'event', ...
mit
blrchen/CVF
CVF/src/CVF.App/Program.cs
449
using System.IO; using Microsoft.AspNetCore.Hosting; namespace CVF.App { public class Program { public static void Main(string[] args) { var host = new WebHostBuilder() .UseKestrel() .UseContentRoot(Directory.GetCurrentDirectory()) .U...
mit
SHAMMY1/Telerik-Academy
Homeworks/CSharpPartOne/05.ConditionalStatements/05.Conditional-Statements-HW/09.PlayWithIntDoubleAndString/PlayWithIntDoubleAndString.cs
2159
//Problem 9. Play with Int, Double and String //Write a program that, depending on the user’s choice, inputs an int, double or string variable. //If the variable is int or double, the program increases it by one. //If the variable is a string, the program appends * at the end. //Print the result at the console. Use s...
mit
MikeBulte/inleiding_java
src/h14multimedia/Opdr14dot2KaartVerdelen.java
4106
package h14multimedia; import java.applet.Applet; import java.applet.AudioClip; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.net.URL; import java.util.Random; /** * Created by Mike on 17-03-17. * Deze applet deelt een aantal kaarten via de random functie ui...
mit
dissident/mayak_shop
config/environments/development.rb
1986
Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # In the development environment your application's code is reloaded on # every request. This slows down response time but is perfect for development # since you don't have to restart the web serv...
mit
fredatgithub/GitAutoUpdate
GitAutoUpdateGUI/AboutBoxApplication.Designer.cs
9462
namespace GitAutoUpdateGUI { partial class AboutBoxApplication { /// <summary> /// Variable nécessaire au concepteur. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Nettoyage des ressources utilisées. /// </summary> protected override v...
mit
codenothing/single-ddm
src/jquery.single-ddm.js
2195
/* * Single Drop Down Menu [VERSION] * [DATE] * Corey Hart @ http://www.codenothing.com */ (function( $, undefined ){ // bgiframe is needed to fix z-index problem for IE6 users. // For applications that don't have bgiframe plugin installed, create a useless // function that doesn't break the chain function empty...
mit
gaochundong/Redola
Redola/Redola.ActorModel/Actor/Channel/IActorChannel.cs
1090
using System; namespace Redola.ActorModel { public interface IActorChannel { string Identifier { get; } ActorIdentity LocalActor { get; } ActorIdentity RemoteActor { get; } bool Active { get; } void Open(); void Close(); event EventHandler<ActorChannel...
mit
xirqlz/blueprint41
Datastore.Generated/Relationships/CURRENCYRATE_HAS_CURRENCY.cs
3894
using System; using Blueprint41; using Blueprint41.Query; namespace Domain.Data.Query { public partial class CURRENCYRATE_HAS_CURRENCY_REL : RELATIONSHIP, IFromIn_CURRENCYRATE_HAS_CURRENCY_REL, IFromOut_CURRENCYRATE_HAS_CURRENCY_REL { public override string NEO4J_TYPE { get { ...
mit
hoovercj/vscode
src/vs/editor/test/common/model/textModelSearch.test.ts
23596
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
mit
FIRST-Team-339/2016
src/org/usfirst/frc/team339/Vision/operators/HSLColorThresholdOperator.java
1376
package org.usfirst.frc.team339.Vision.operators; import com.ni.vision.NIVision; import com.ni.vision.NIVision.Image; import com.ni.vision.NIVision.ImageType; public class HSLColorThresholdOperator implements VisionOperatorInterface { private final NIVision.Range hueRange; private final NIVision.Range satRa...
mit
tochyvn/aeafm-project
resources/views/domaine/edit.blade.php
763
@extends("admin/admin") @section('contentAdmin') <div class="large-12 medium-12 columns contentAdmin" > <div class="Formclass large-5 medium-12 columns"> <h4> editer le domaine {{$domaine->name}} </h4> @if (Session::has('success')) <span class="help-block success"> ...
mit
EasyExpress/Easylink
Utilities/Encryptor.cs
2586
using System; using System.Security.Cryptography; using System.Text; using System.IO; namespace Utilities { public class Encryptor { private static byte[] _key; private static byte[] _iv; public static Encryptor CreateEncryptorA() { ...
mit
EasyExpress/Easylink
Easylink.Tests/SearchPostgreSqlTest.cs
5445
using Easylink.Tests.Model; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Easylink.Tests { [TestClass] public class SearchPostgreSqlTest : SearchTest { [TestInitialize] public void Test_Initialization() { DatabaseFactory.Initialize( ...
mit
isudzumi/playSound
playSound/App.xaml.cs
1668
using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Linq; using System.Threading.Tasks; using System.Windows; using System.Threading; namespace playSound { using System.Windows; /// <summary> /// App.xaml の相互作用ロジック /// </summary> public parti...
mit
yoship1639/Scanner
ScannerTestForm/Properties/AssemblyInfo.cs
1406
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("Sc...
mit
brucewar/poem
Infrastructure/BackEnd/node_modules/orm/lib/Instance.js
17161
var Property = require("./Property"); var Hook = require("./Hook"); var enforce = require("enforce"); exports.Instance = Instance; function Instance(Model, opts) { opts = opts || {}; opts.data = opts.data || {}; opts.extra = opts.extra || {}; opts.id = opts.id || "id"; opts.changes = (opts.is_new...
mit
aidiss/disciplines
disciplines/theory/biglan.py
3158
# -*- coding: utf-8 -*- """ Biglans classification This can be used for machine learning. 3 dimensions are investigated by Biglan: pure - applied hard - soft life - non-life """ author = 'Biglan' authors = author concepts = [] data = [] claim = [] theory = ''' ''' approach = '' reading = ''' 1. Ruth Neumann, Di...
mit
jdanyow/aurelia-breeze-sample
jspm_packages/npm/buffer@3.0.3/test/constructor.js
3805
/* */ (function(process) { var B = require("../../buffer@3.0.3").Buffer; var test = require("tape"); if (process.env.OBJECT_IMPL) B.TYPED_ARRAY_SUPPORT = false; test('new buffer from array', function(t) { t.equal(new B([1, 2, 3]).toString(), '\u0001\u0002\u0003'); t.end(); }); test('new buffer ...
mit
jxm262/btc-stats
lib/btc-stats.js
5143
"use strict"; var xchange = require("xchange.js") ,async = require("async") ,config = require("../config.js"); function BtcStats(exchanges){ this.exchanges(exchanges); } BtcStats.prototype.exchanges = function(excs) { excs = excs || config.defaultExchanges; this._exchanges = excs.reduce(function(...
mit
Aprogiena/StratisBitcoinFullNode
src/Stratis.SmartContracts.CLR/SmartContractState.cs
1624
using System; namespace Stratis.SmartContracts.CLR { /// <summary> /// Smart contract state that gets injected into the smart contract by the <see cref="ReflectionVirtualMachine"/>. /// </summary> public sealed class SmartContractState : ISmartContractState { public SmartContractState( ...
mit
jimmyz/fs-familytree-v1
lib/communicator.rb
864
require 'fs_communicator' module FsFamilytreeV1 # This method gets mixed into the FsCommunicator so that # you can make calls on the fs_familytree_v1 module def fs_familytree_v1 @com ||= Communicator.new self # self at this point refers to the FsCommunicator instance end class Communicator Base...
mit
symmetricapi/django-symmetric
symmetric/management/codeemitter.py
947
from __future__ import print_function class CodeEmitter(object): def __init__(self, fobj, indent=0): if isinstance(fobj, (str, unicode)): fobj = open(fobj, 'w') self.fobj = fobj self.indent = ' ' * indent if indent else '\t' self.level = 0 def __call__(self, *line...
mit
kolok/projectasaservice
modules/users/client/controllers/authentication.client.controller.js
2076
'use strict'; angular.module('users').controller('AuthenticationController', ['$scope', '$state', '$http', '$location', '$window', 'Authentication', function ($scope, $state, $http, $location, $window, Authentication) { $scope.authentication = Authentication; // Get an eventual error defined in the URL query...
mit
thibault-martinez/iota.lib.cpp
docs/html/search/classes_8.js
209
var searchData= [ ['neighbor',['Neighbor',['../class_i_o_t_a_1_1_models_1_1_neighbor.html',1,'IOTA::Models']]], ['network',['Network',['../class_i_o_t_a_1_1_errors_1_1_network.html',1,'IOTA::Errors']]] ];
mit
kgryte/npm-list-author-packages
lib/ls.js
657
'use strict'; // MODULES // var factory = require( './factory.js' ); // LIST // /** * FUNCTION: list( options, clbk ) * Lists an author's packages. * * @param {Object} options - function options * @param {String} options.username - author user name * @param {String} [options.registry="registry.npmjs.org"] - regist...
mit
TwilioDevEd/api-snippets
video/rest/rooms/list-rooms-multiple-filters/list-rooms-multiple-filters.3.x.js
665
// NOTE: This example uses the next generation Twilio helper library - for more // information on how to download and install this version, visit // https://www.twilio.com/docs/libraries/node const apiKeySid = 'SKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'; const apiKeySecret = 'your_api_key_secret'; // To set up environmental v...
mit
Answeror/torabot
torabot/frontend/response.py
415
import mimeparse from flask import request, json, jsonify def make_response_content(formats): return formats[mimeparse.best_match(formats, request.headers['accept'])]() def make_response(formats): return formats[mimeparse.best_match(formats, request.headers['accept'])]() def make_ok_response_content(): ...
mit
pshrmn/curi
packages/vue/types/AsyncLink.d.ts
372
import Vue from "vue"; import { ComponentOptions } from "vue"; export interface AsyncLinkComponent extends Vue { name: string; params?: object; hash?: string; query?: any; state?: any; url: string; click(e: MouseEvent): void; navigating: boolean; } declare let Link: Component...
mit
tessin/Tessin.Tin
Tessin.Tin.Models/Extensions/StringExtensions.cs
1352
using System; namespace Tessin.Tin.Models.Extensions { public static class StringExtensions { public static int? ToNullableInteger(this string value) { try { return int.Parse(value); } catch (Exception) { ...
mit
denkGroot/spina-example-plugin
test/dummy/config/application.rb
881
require File.expand_path('../boot', __FILE__) require 'rails/all' Bundler.require(*Rails.groups) require "reviews" module Dummy class Application < Rails::Application # Settings in config/environments/* take precedence over those specified here. # Application configuration should go into files in config/in...
mit
danylaporte/arewefaster
src/presenters/md.js
1684
var fs = require('fs'); var path = require('path'); var utils = require('../utils'); function present(data, cb) { switch (data.type) { case 'suite-result': cb(null, renderSuite(data, 0)); break; case 'test-result': cb(null, renderTest(data)); break; default: cb(new Error('type of data not suppo...
mit
crmauceri/VisualCommonSense
code/database_builder/core/timing.py
194
import time; start = time.time(); def tic(): start = time.time(); def toc(): print("elapse time: " + str(time.time()-start)); if __name__ == "__main__": tic(); toc();
mit
TAurelien/accountingApp
src/components/generalLedgers/src/controller/index.js
680
/** * @module General ledgers Controller * * @access private * @author TAurelien * @date 2015-05-01 * @version 1.0.0 */ 'use strict'; module.exports = function (options, imports, emitter, GeneralLedgers) { var api = require('../api')(options, imports, emitter); // Sockets management ========...
mit