code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
4
991
language
stringclasses
9 values
license
stringclasses
15 values
size
int32
3
1.05M
package com.example.kb.clearsky.model.api_specific; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; public class WeatherDescription { @SerializedName("id") @Expose private Integer weatherID; @SerializedName("main") @Expose private String mainCate...
kolboch/ClearSkyApp
app/src/main/java/com/example/kb/clearsky/model/api_specific/WeatherDescription.java
Java
mit
1,145
// Generated on 2014-07-03 using // generator-webapp 0.5.0-rc.1 'use strict'; // # Globbing // for performance reasons we're only matching one level down: // 'test/spec/{,*/}*.js' // If you want to recursively match all subfolders, use: // 'test/spec/**/*.js' module.exports = function (grunt) { // Time how long ta...
openchattanooga/chattanooga-bike-parking-locator
Gruntfile.js
JavaScript
mit
10,821
package no.westerdals.eksamen.app2; import android.content.DialogInterface; import android.content.Intent; import android.support.annotation.NonNull; import android.support.v7.app.AlertDialog; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.text.TextUtils; import android.view....
Mariusrik/schoolprojects
Mobil utvikling eksamen/hotelapplikasjon/src/main/java/no/westerdals/eksamen/app2/LoginActivity.java
Java
mit
8,745
import should from 'should'; import Schema from '../../src/schema'; const SIMPEL_OBJECT = { type: 'object', properties: { name: { type: 'string' } } }; describe('Schema', () => { describe('#getType', () => { it('should return string type for child', () => { const schema = new Schema(SIMPEL_OBJEC...
surikaterna/formr
test/schema/schema.js
JavaScript
mit
1,034
<?php namespace CE\UserBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; class DefaultController extends Controller { public function indexAction($name) { return $this->render('CEUserBundle:Default:index.html.twig', array('name' => $name)); } }
akraxx/site-ce
src/CE/UserBundle/Controller/DefaultController.php
PHP
mit
295
<?php namespace siigap\FichasBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; use siigap\FichasBundle\Form\ConsultaPersonasType; use siigap\FichasBundle\Form\ConsultaViviendasType; use siigap\FichasBundle\Form\ConsultaFichasType; class Consult...
isabelmonterob/iframe
src/siigap/FichasBundle/Controller/ConsultasController.php
PHP
mit
7,249
# lib/sleeping_king_studios/tasks/apps/bundle.rb require 'sleeping_king_studios/tasks/apps' module SleepingKingStudios::Tasks::Apps # Thor tasks for maintaing gem dependencies in semi-distributed applications. module Bundle; end end # module
sleepingkingstudios/sleeping_king_studios-tasks
lib/sleeping_king_studios/tasks/apps/bundle.rb
Ruby
mit
248
//------------------------------------------------------------------------------ // This code was generated by a tool. // // Tool : Bond Compiler 0.9.0.0 // File : DataPoint_types.cs // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. // <auto-generated /> //--...
SoubhagyaDash/ApplicationInsights-Home
Samples/Mistral/src/maestro/src/Contracts/Generated/DataPoint.cs
C#
mit
1,563
#include "../platform.h" namespace Platform { void sleep(long seconds, long milliseconds) {} //stub int createWindow(char *title, int width, int height, int bpp, bool fullscreen) { return 0; } int closeWindow() { return 0; } void swapBuffers() {} void pump() { //do our work here... } void grabMouse...
bargle/SympEngine
System/Platform/ios/platform.cpp
C++
mit
502
/****************************************************************************************** * Data Structures in C++ * ISBN: 7-302-33064-6 & 7-302-33065-3 & 7-302-29652-2 & 7-302-26883-3 * Junhui DENG, deng@tsinghua.edu.cn * Computer Science & Technology, Tsinghua University * Copyright (c) 2006-2013. All rig...
0704681032/Java8InAction
清华大学邓俊辉老师数据结构资料/dsa/src/_java/dsa/splaytree.java
Java
mit
8,076
namespace _01.Shapes.Common { using System; public static class Validator { private const int MIN_RANGE = 0; private const string MinRangeMessage = "{0} cannot be less or equal to 0"; public static void CheckIfZero(double element, string message = null) { ...
stoyanov7/TelerikAcademy
ProgrammingWithC#/03.C#ObjectOrientedProgramming/05.OOPPrinciplesPart2/Homework/01.Shapes/01.Shapes/Common/Validator.cs
C#
mit
491
<?php namespace App\Http; use Illuminate\Foundation\Http\Kernel as HttpKernel; class Kernel extends HttpKernel { /** * The application's global HTTP middleware stack. * * These middleware are run during every request to your application. * * @var array */ protected $middleware =...
Paralideres/clives
app/Http/Kernel.php
PHP
mit
1,789
module QA module Page module Project module Operations module Kubernetes class AddExisting < Page::Base view 'app/views/projects/clusters/user/_form.html.haml' do element :cluster_name, 'text_field :name' element :api_url, 'text_field :api_url' ...
jirutka/gitlabhq
qa/qa/page/project/operations/kubernetes/add_existing.rb
Ruby
mit
1,227
import { key, PLAY, PAUSE, MUTE, UNMUTE, UPDATE_VOLUME, UPDATE_TIME, SET_SONG, SET_TIME, updateTime } from './actions' import { store } from '../store' let audio = new Audio() audio.addEventListener('timeupdate', event => store.dispatch(updateTime(event))) const initialState = { isPlaying: false, muted: false, ...
shempignon/podcast-api
app/Resources/js/player/reducer.js
JavaScript
mit
1,630
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AcademyEcosystem { public class EngineExtend : Engine { protected override void ExecuteBirthCommand(string[] commandWords) { switch (commandWords[1]) ...
MystFan/TelerikAcademy
C# OOP/Exam Preparation/AcademyEcosystem/AcademyEcosystem/EngineExtend.cs
C#
mit
2,108
package simpl.typing; public final class ListType extends Type { public Type t; public ListType(Type t) { this.t = t; } @Override public boolean isEqualityType() { // TODO Done return t.isEqualityType(); } @Override public Substitution unify(Type t) throws Ty...
MihawkHu/SimPl
src/simpl/typing/ListType.java
Java
mit
1,105
package com.felipecsl.gifimageview.app; import android.content.Context; import android.view.View; import android.view.ViewGroup; import android.widget.AbsListView; import android.widget.BaseAdapter; import android.widget.GridView; import android.widget.ImageView; import com.felipecsl.gifimageview.library.GifImageView...
felipecsl/GifImageView
app/src/main/java/com/felipecsl/gifimageview/app/GifGridAdapter.java
Java
mit
1,665
/* eslint-env mocha */ import expect from 'expect'; import FunctionChecker from '../src/FunctionChecker.js'; import OptionsManager from '../src/OptionsManager.js'; import Structure from '../src/Structure.js'; describe('optionsManager', () => { let manager; beforeEach(() => { manager = new OptionsManager(); ...
Jerskouille/options-manager
test/OptionsManager.js
JavaScript
mit
800
/** * C++ interface to a python PropertyNode() */ #include "pyprops.h" #include <string> #include <sstream> using std::string; using std::ostringstream; // 'cache' is a global c-string -> python unicode name cache. This // conversion is relatively costly in python3, so this cache save // repeating the work many t...
AuraUAS/aura-props
library/src/pyprops.cpp
C++
mit
21,619
// Copyright (c) 2014-2015 Oliver Eilhard. All rights reserved. // Use of this source code is governed by the MIT license. // See LICENSE file for details. package balancers import ( "net/http" "net/url" "sync" "time" ) // Connection is a single connection to a host. It is defined by a URL. // It also maintains s...
olivere/balancers
connection.go
GO
mit
2,828
// // 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....
simokhov/schemas44
src/main/java/ru/gov/zakupki/oos/signincoming/_1/BankGuaranteeReturnInvalid.java
Java
mit
2,353
/* __ _____ _____ _____ __| | __| | | | JSON for Modern C++ | | |__ | | | | | | version 2.1.1 |_____|_____|_____|_|___| https://github.com/nlohmann/json Modified by mwthinker, to use tabs in "dump" function and use fifo_map instead of std::map in order to keep the json order. Licensed under the...
mwthinker/Tetris
nlohmann-json/src/json.hpp
C++
mit
448,254
using System; using NetRuntimeSystem = System; using System.ComponentModel; using NetOffice.Attributes; namespace NetOffice.MSHTMLApi { /// <summary> /// DispatchInterface IHTMLDOMNode2 /// SupportByVersion MSHTML, 4 /// </summary> [SupportByVersion("MSHTML", 4)] [EntityType(EntityType.IsDispatchInterface)] ...
NetOfficeFw/NetOffice
Source/MSHTML/DispatchInterfaces/IHTMLDOMNode2.cs
C#
mit
3,725
from . uuid64 import *
jdowner/uuid64
uuid64/__init__.py
Python
mit
23
class Product include Mongoid::Document field :_id, type: String, default: -> { name.to_s.parameterize } field :name, type: String field :price, type: BigDecimal field :released_on, type: Date validates_presence_of :name embeds_many :reviews end
xeraseth/Rails-Mongo
app/models/product.rb
Ruby
mit
262
require 'spec_helper' require 'penn_extranet_adapter.rb' describe PennExtranetAdapter do let(:valid_attributes) { { "username" => "XXXXXXX", "password" => "XXXXXXX" } } describe "valid_agent?" do it "should detect a valid" do x = PennExtranetAdapter.new valid_attributes["username"], "x" authenti...
eugyev/extranet-adapter-2
spec/lib/penn_extranet_adapter_spec.rb
Ruby
mit
965
class CreateNodes < ActiveRecord::Migration def change create_table :nodes do |t| t.string :name t.integer :map_id t.timestamps end add_index :nodes, :map_id add_index :nodes, [:map_id, :name], :unique => true end end
guivinicius/logistique
db/migrate/20140503135157_create_nodes.rb
Ruby
mit
258
angular.module('schemaForm').config( ['schemaFormProvider', 'schemaFormDecoratorsProvider', 'sfPathProvider', function(schemaFormProvider, schemaFormDecoratorsProvider, sfPathProvider) { var download = function(name, schema, options) { if (schema.type === 'string' && schema.format ==...
rafialikhan/angular-schema-form-download
src/angular-schema-form-download.js
JavaScript
mit
1,602
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
odangitsdjang/CleaningApp
bundle.js
JavaScript
mit
4,338
#!/usr/bin/env python # T. Carman # January 2017 import os import json def get_CMTs_in_file(aFile): ''' Gets a list of the CMTs found in a file. Parameters ---------- aFile : string, required The path to a file to read. Returns ------- A list of CMTs found in a file. ''' data = read_paramf...
tobeycarman/dvm-dos-tem
scripts/param_util.py
Python
mit
11,387
//This file is generated by btsgen. DO NOT EDIT. //operation sample data for OperationTypeCustom package samples func init() { sampleDataCustomOperation[2] = `{ "data": "466f6f626172", "fee": { "amount": 164678, "asset_id": "1.3.0" }, "id": 16, "payer": "1.2.30127", "required_auths": [ "1.2....
denkhaus/bitshares
gen/samples/customoperation_2.go
GO
mit
352
'use strict'; describe('service', function() { var countKeys = function(data) { var count = 0 for(var k in data) { count++; } return count; } // load modules beforeEach(module('mavrixAgenda')); // Test service availability it('check the existence of Storage factory', in...
jomarmar/mavrix-test
app/components/users/users.test.js
JavaScript
mit
606
<?php namespace User\UserBundle\Controller; use Symfony\Component\Security\Core\Exception\AccessDeniedException; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Reservable\ActivityBundle\Entity\Activity; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\JsonResponse; use...
silver819/alm-cristina
src/User/UserBundle/Controller/ConsultController.php
PHP
mit
8,653
var crossBrowser = function (browser, x, y) { if (browser === 'Firefox 39') { x = x - 490; y = y + 10; } else if (browser === 'MSIE 10') { x = x - 588.7037353; y = y + 3 - 0.32638931; } else if (browser === 'IE 11') { x = x - 641; y = y + 2.5; } else if (b...
g-yonchev/DarkNStormy-JS-UI-and-DOM-TeamProject
ConnectTheDots/public/scripts/crossBrowsers.js
JavaScript
mit
421
<?php namespace App\Repositories; interface BaseRepository { public function paginateAll($perPage = 15, $pageName = 'page'); }
greatwitenorth/lumen-doctrine-hateoas
app/Repositories/BaseRepository.php
PHP
mit
128
/* * This file is part of Nucleus, licensed under the MIT License (MIT). See the LICENSE.txt file * at the root of this project for more details. */ package io.github.nucleuspowered.nucleus.core.scaffold.command.modifier.impl; import io.github.nucleuspowered.nucleus.core.scaffold.command.ICommandContext; import io....
NucleusPowered/Nucleus
nucleus-core/src/main/java/io/github/nucleuspowered/nucleus/core/scaffold/command/modifier/impl/RequiresEconomyModifier.java
Java
mit
1,279
namespace Pote.CommandLine.Mocks { /// <summary> /// A verb with an optional option. /// </summary> public class VerbWithOptionalOption : Verb { /// <summary> /// Some helpful hint on how to use this verb. /// </summary> public override string Help ...
pawwkm/Pote.CommandLine
Pote.CommandLine.Tests/Mocks/VerbWithOptionalOption.cs
C#
mit
1,172
# -*- test-case-name: twisted.test.test_task,twisted.test.test_cooperator -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Scheduling utility methods and classes. @author: Jp Calderone """ __metaclass__ = type import time from zope.interface import implements from twisted.python imp...
Varriount/Colliberation
libs/twisted/internet/task.py
Python
mit
24,723
<?php namespace DUDEEGO\PlatformBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; use Symfony\Component\Form\Extension\Core\Type\SubmitType; use Symfony\Component\Form\Extension\Core\Type\TextType; use Vich\Up...
HosseinChibane/CFPMS
src/DUDEEGO/PlatformBundle/Form/EA_DocumentType.php
PHP
mit
4,433
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-09-21 12:06 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migratio...
srijannnd/Login-and-Register-App-in-Django
simplesocial/groups/migrations/0001_initial.py
Python
mit
1,868
<?php namespace Kodix\Support\Traits\Component; use CComponentEngine; /** * This trait makes complex class easier to write * You just need to change setUrlTemplates404 method with your paths * * Class ComplexTrait * @package Malyusha\Helpers\Traits * * @property array $arParams */ trait ComplexTrait { p...
malyusha/kodix
src/Support/Traits/Component/ComplexTrait.php
PHP
mit
2,709
/* * Background sketch * Author: Uriel Sade * Date: Feb. 22, 2017 */ var canvas; var time_x, time_y, time_z, time_inc; var field = []; var particles = []; var rows, cols; var scl = 20; function setup() { canvas = createCanvas(windowWidth, windowHeight); canvas.position(0,0); canvas.style('z-value', '-1...
urielsade/urielsade.github.io
flowfield.js
JavaScript
mit
1,411
package org.knowm.xchange.bitstamp.service.marketdata; import static org.fest.assertions.api.Assertions.assertThat; import org.junit.Test; import org.knowm.xchange.Exchange; import org.knowm.xchange.ExchangeFactory; import org.knowm.xchange.bitstamp.BitstampExchange; import org.knowm.xchange.currency.CurrencyPair; i...
mmithril/XChange
xchange-bitstamp/src/test/java/org/knowm/xchange/bitstamp/service/marketdata/TickerFetchIntegration.java
Java
mit
929
FactoryBot.define do factory :status do sequence(:label) { |n| "President #{n}" } end end
piwam/piwam
spec/factories/statuses.rb
Ruby
mit
98
<?php /* Unsafe sample input : get the field UserData from the variable $_POST sanitize : use of the function addslashes construction : use of sprintf via a %s with simple quote */ /*Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee, to use, copy, modify, and...
stivalet/PHP-Vulnerability-test-suite
URF/CWE_601/unsafe/CWE_601__POST__func_addslashes__header_url-sprintf_%s_simple_quote.php
PHP
mit
1,224
print 'Immettere un raggio: ' raggio_stringa = gets raggio = raggio_stringa.to_i area = raggio * raggio * Math::PI puts "L'area del cerchio di raggio #{raggio} e' #{area}"
guildenstern70/rubyerails
src/AreaDelCerchio.rb
Ruby
mit
173
'use strict'; /* Filters */ angular.module('multi-screen-demo.filters', [ ]). // create your own filter here filter('yourFilterName', function () { return function () { return; }; });
drejkim/multi-screen-demo
public/js/filters.js
JavaScript
mit
193
package com.github.gv2011.util.bytes; import static com.github.gv2011.testutil.Assert.assertThat; import static com.github.gv2011.testutil.Matchers.is; import org.junit.Test; import com.github.gv2011.util.BeanUtils; import com.github.gv2011.util.icol.ICollections; import com.github.gv2011.util.json.JsonUtil...
gv2011/util
test/src/test/java/com/github/gv2011/util/bytes/DataTypeTest.java
Java
mit
1,762
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually #pragma once #include <common/common.h> #include <std__vector.hpp> START_ATF_NAMESPACE #pragma pack(push, 8) struct CUnmannedTraderGroupDivisionVersionInfo { int m_iType; std::vect...
goodwinxp/Yorozuya
library/ATF/CUnmannedTraderGroupDivisionVersionInfo.hpp
C++
mit
1,173
<?php /* Version: 1.0 Author: Artur Sułkowski Website: http://artursulkowski.pl */ class ControllerModuleBreadcrumbBackgroundImage extends Controller { private $error = array(); public function index() { $this->language->load('module/breadcrumb_background_image'); $this->document->setTitle('Breadcrumb ...
monkdaf/skuter77-opencart
admin/controller/module/breadcrumb_background_image.php
PHP
mit
3,475
package com.kata.businessrules; import org.w3c.dom.Document; import com.google.inject.AbstractModule; import com.google.inject.TypeLiteral; import com.kata.businessrules.products.Product; public class MainModule extends AbstractModule { @Override protected void configure() { installDummyModules(); bind(new Ty...
a-ostrovsky/business_rules_kata
src/main/java/com/kata/businessrules/MainModule.java
Java
mit
895
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { FormsModule } from '@angular/forms'; import { HttpModule } from '@angular/http'; import { AppComponent } from './app.component'; import { WeatherComponent } from './components/weather.component'; ...
tvinoths/weather
src/app/app.module.ts
TypeScript
mit
518
namespace MachineLearning { public enum CallbackFrequency : byte { Never = 0, EachExample = 1, EachError = 2, EachEpoch = 3, EachNEpochs = 4 } }
Artem-Romanenia/machine-learning
MachineLearning/CallbackFrequency.cs
C#
mit
200
<?php namespace Ems\Contracts\Foundation; use Ems\Contracts\Core\AppliesToResource; use Ems\Contracts\Validation\ValidatorFactory; use Ems\Contracts\Core\HasMethodHooks; use Ems\Contracts\Core\Extendable; /** * The InputNormalizerFactory is the factory for the InputNormalizer objects. * You should categorize the i...
mtils/php-ems
src/Ems/Contracts/Foundation/InputNormalizerFactory.php
PHP
mit
3,811
using System.Reflection; 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("HorseTrack")] [assembly: AssemblyDescripti...
yorgov/HorseTrack
HorseTrack/Properties/AssemblyInfo.cs
C#
mit
1,333
(function (root, factory) { if (typeof define === 'function' && define.amd) { define([], factory); } else if (typeof exports === 'object') { module.exports = factory(); } else { root.UtmConverter = factory(); } }(this, function () { ////////////////////////////////////////////////////////////////...
urbanetic/utm-converter
src/converter.js
JavaScript
mit
19,752
import loudRejection from 'loud-rejection'; import { fireEvent, getByTestId, getByText } from '@testing-library/dom'; import { act, screen } from '@testing-library/react'; import { MAILBOX_LABEL_IDS } from '@proton/shared/lib/constants'; import { addApiMock, clearAll, getDropdown, getHistory, render...
ProtonMail/WebClient
applications/mail/src/app/components/header/MailHeader.test.tsx
TypeScript
mit
7,113
package edu.cmu.hcii.whyline.analysis; import java.util.SortedSet; import java.util.TreeSet; import edu.cmu.hcii.whyline.bytecode.MethodInfo; import edu.cmu.hcii.whyline.source.JavaSourceFile; import edu.cmu.hcii.whyline.source.Line; import edu.cmu.hcii.whyline.source.Token; import edu.cmu.hcii.whyline.ui.WhylineUI; ...
andyjko/whyline
edu/cmu/hcii/whyline/analysis/FindOverriders.java
Java
mit
1,239
var searchData= [ ['neighbours',['neighbours',['../struct_parser_1_1_cell_atom_grammar.html#a6367dce3041506f4112c82e2ba5998a9',1,'Parser::CellAtomGrammar']]], ['newgrid',['newGrid',['../struct_compiler_1_1_state.html#a3a949d5132b7854fee15d6d13344652c',1,'Compiler::State']]] ];
CompilerTeaching/CompilerTeaching.github.io
cellatom/doxygen/search/variables_b.js
JavaScript
mit
282
<?php /** * Whoops - php errors for cool kids * @author Filipe Dobreira <http://github.com/filp> */ namespace Whoops\Handler; use Whoops\Handler\HandlerInterface; use Whoops\Exception\Inspector; use Whoops\Run; use Exception; /** * Abstract implementation of a Handler. */ abstract class Handler implements Handle...
wissamdagher/Temenos-T24-COB-Monitor
vendor/filp/whoops/src/Whoops/Handler/Handler.php
PHP
mit
1,572
<?php // autoload_static.php @generated by Composer namespace Composer\Autoload; class ComposerStaticInit1d7f3d8d9f8bff4ff374c7338c3d8879 { public static $files = array( 'ce89ade1b84217abfd74bd4c84863dc1' => __DIR__ . '/..' . '/nizarii/arma-rcon-class/arc.php', ); public static $prefixLengthsPsr...
Itsmadhatter/Exile-Admin-Panel
vendor/composer/autoload_static.php
PHP
mit
1,768
#include <algorithm> #include <iterator> #include <vector> #include "ihanoi.hpp" #include "aim.hpp" // Algorithm to be tested template <int from, int other, int to> struct ApplyMapping { std::pair<std::size_t, std::size_t> operator()(std::pair<std::size_t, std::size_t> const& move) { static_assert(from != ...
dubzzz/various-algorithms
algorithms/recurse/hanoi-towers/implem_iterative_no_stack.cpp
C++
mit
1,956
package statsd import ( "context" "fmt" "hash/adler32" "sync" "github.com/ash2k/stager/wait" "github.com/atlassian/gostatsd" "github.com/atlassian/gostatsd/pkg/statser" ) // AggregatorFactory creates Aggregator objects. type AggregatorFactory interface { // Create creates Aggregator objects. Create() Aggreg...
tiedotguy/gostatsd
pkg/statsd/dispatcher.go
GO
mit
3,174
'use strict'; /* http://docs.angularjs.org/guide/dev_guide.e2e-testing */ describe('my app', function() { beforeEach(function() { browser().navigateTo('app/index-old.html'); }); it('should automatically redirect to /view1 when location hash/fragment is empty', function() { expect(browser().location()...
egorps/run-caoch
test/e2e/scenarios.js
JavaScript
mit
936
//------------------------------------------------------------------------------ // <自动生成> // 此代码由工具生成。 // // 对此文件的更改可能导致不正确的行为,如果 // 重新生成代码,则所做更改将丢失。 // </自动生成> //------------------------------------------------------------------------------ namespace YanZhiwei.DotNet2.Utilities.WebFormExamples { ...
YanZhiwei/DotNet.Utilities
YanZhiwei.DotNet2.Utilities.WebFormExamples/FileDownHelperDemo.aspx.designer.cs
C#
mit
1,477
export default from './Input';
natac13/Markdown-Previewer-React
app/components/Input/index.js
JavaScript
mit
30
package org.vitanov.container; public class ContainerConstants { public static String CONTAINER_ROOT_PATH = System.getProperty("user.dir"); }
StoyanVitanov/SoftwareUniversity
Java Web/Web Fundamentals/05.Handmade Web Server/servlet-containers/static-container/src/org/vitanov/container/ContainerConstants.java
Java
mit
161
module Cryptoexchange::Exchanges module Bit2c module Services class Pairs < Cryptoexchange::Services::Pairs def fetch output = super market_pairs = [] output.each do |pair| market_pairs << Cryptoexchange::Models::MarketPair.new( ...
coingecko/cryptoexchange
lib/cryptoexchange/exchanges/bit2c/services/pairs.rb
Ruby
mit
559
/* Generated code */ interface SyncInfo { syncType?: 'FSync' | 'ISync'; syncToken?: string; syncTime?: string; olderRecordsExist?: boolean; } export default SyncInfo;
zengfenfei/ringcentral-ts
src/definitions/SyncInfo.ts
TypeScript
mit
177
app.router = Backbone.Router.extend({ el : $('main'), routes: { // '': 'home', // '!/': 'home', '!/event-list/': function () { app.preRoute('event-list', this.el); new app.eventListView({ el: this.el }); }, '!/event-detail/:key': function (key) { ...
nblenke/buzz-proto
public/assets/js/router.js
JavaScript
mit
1,903
"use strict"; const mongoose = require('mongoose'); module.exports = (()=>{ mongoose.connect('mongodb://192.168.56.101:30000/blog'); let db = mongoose.connection; db.on('error', function(err){ console.log(err); }); db.once('open', (err)=> { console.log('connect success'); }) })();
fsy0718/study
node/express/blog/api/db.js
JavaScript
mit
293
<?php /** * @name Upload Module * @author Philipp Maurer * @author Tobias Reich * @copyright 2014 by Philipp Maurer, Tobias Reich */ if (!defined('LYCHEE')) exit('Error: Direct access is not allowed!'); function upload($files, $albumID) { global $database, $settings; switch($albumID) { // s for public ...
massyas/lychee_ynh
source/php/modules/upload.php
PHP
mit
9,705
<?php namespace Illumine\Framework\Traits; use Illuminate\Bus\Dispatcher; trait DispatchesJobs { /** * Dispatch a job to its appropriate handler. * * @param mixed $job * @return mixed */ protected function dispatch($job) { return $this->plugin->make(Dispatcher::class)->di...
bayareawebpro/illumine-framework
Traits/DispatchesJobs.php
PHP
mit
613
import pl.edu.agh.amber.common.AmberClient; import pl.edu.agh.amber.drivetopoint.DriveToPointProxy; import pl.edu.agh.amber.drivetopoint.Location; import pl.edu.agh.amber.drivetopoint.Point; import pl.edu.agh.amber.drivetopoint.Result; import java.io.IOException; import java.util.Arrays; import java.util.List; import ...
project-capo/amber-java-clients
amber-java-examples/src/main/java/DriveToPointExample.java
Java
mit
2,273
/**************************************************************************** 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 ...
wenhulove333/ScutServer
Sample/Koudai/Server/src/ZyGames.Tianjiexing.BLL/Action/Action4206.cs
C#
mit
4,309
package daemon import ( "log" "time" "github.com/Cloakaac/cloak/models" ) type RecordDaemon struct{} func (r *RecordDaemon) tick() { total := models.GetOnlineCount() err := models.AddOnlineRecord(total, time.Now().Unix()) if err != nil { log.Fatal(err) } }
Cloakaac/cloak
daemon/record.go
GO
mit
270
from django.dispatch import Signal user_email_bounced = Signal() # args: ['bounce', 'should_deactivate'] email_bounced = Signal() # args: ['bounce', 'should_deactivate'] email_unsubscribed = Signal() # args: ['email', 'reference']
fin/froide
froide/bounce/signals.py
Python
mit
236
<?php declare(strict_types = 1); namespace PHPStan\Rules\Comparison; use PHPStan\Type\Constant\ConstantBooleanType; class BooleanOrConstantConditionRule implements \PHPStan\Rules\Rule { public function getNodeType(): string { return \PhpParser\Node\Expr\BinaryOp\BooleanOr::class; } /** * @param \PhpParser\...
rquadling/phpstan
src/Rules/Comparison/BooleanOrConstantConditionRule.php
PHP
mit
1,115
<html> <head> <title> Keep fighting for justice! </title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <?php include "../../legacy-includes/Script.htmlf" ?> </head> <body bgcolor="#FFFFCC" text="000000" link="990000" vlink="660000" alink="003366" leftmargin="0" topmargin="0"> <table width...
ISO-tech/sw-d8
web/2004-1/488/488_04_KennyCollins.php
PHP
mit
3,573
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. using System.Reflection; using System.Resources; using System.Runtime.InteropServices; [assembly: AssemblyTitle("Microsoft Azure Batch Management Library")] ...
hovsepm/azure-libraries-for-net
src/ResourceManagement/Batch/Properties/AssemblyInfo.cs
C#
mit
804
// member.cs // // Copyright 2010 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by appli...
afisd/jovice
Aphysoft.Share/External/AjaxMin/JavaScript/member.cs
C#
mit
2,558
<?php /** * TableBlock.php * * @since 31/05/15 * @author gseidel */ namespace Enhavo\Bundle\AppBundle\Block\Block; use Enhavo\Bundle\AppBundle\Block\BlockInterface; use Enhavo\Bundle\AppBundle\Type\AbstractType; class TableBlock extends AbstractType implements BlockInterface { public function render($parame...
kiwibun/enhavo
src/Enhavo/Bundle/AppBundle/Block/Block/TableBlock.php
PHP
mit
3,107
// package main provides an implementation of netcat using the secio package. // This means the channel is encrypted (and MACed). // It is meant to exercise the spipe package. // Usage: // seccat [<local address>] <remote address> // seccat -l <local address> // // Address format is: [host]:port package main imp...
kyledrake/go-ipfs
cmd/seccat/seccat.go
GO
mit
5,208
// f is not called via a go function, instead the go function is inside the body of f. package main func main() { x := "Hello World" ch := make(chan string) f(ch) // @expectedflow: false sink(x) x = source() ch <- x } func f(ch chan string) { // *ssa.MakeClosure go func() { y := <-ch // @expectedflow: tr...
akwick/gotcha
tests/exampleCode/chanPaper2.go
GO
mit
408
a = [int(i) for i in input().split()] print(sum(a))
maisilex/Lets-Begin-Python
list.py
Python
mit
52
<?php /* WebProfilerBundle:Collector:memory.html.twig */ class __TwigTemplate_ccb1a70d7cfd163aa51619d0fc404c67 extends Twig_Template { protected $parent; public function __construct(Twig_Environment $env) { parent::__construct($env); $this->blocks = array( 'toolbar' => array($...
radzikowski/alf
app/cache/dev/twig/cc/b1/a70d7cfd163aa51619d0fc404c67.php
PHP
mit
2,299
<?php /** * CompraingredienteFixture * */ class CompraingredienteFixture extends CakeTestFixture { /** * Fields * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'unsigned' => false, 'key' => 'primary'), 'resto_id' => array('type' => 'integer',...
kster007/CUBETECH-SOLTERA
app/Test/Fixture/CompraingredienteFixture.php
PHP
mit
2,307
<?php namespace spec\Prophecy\Exception\Prophecy; use PhpSpec\ObjectBehavior; use Prophecy\Prophecy\ObjectProphecy; class ObjectProphecyExceptionSpec extends ObjectBehavior { function let(ObjectProphecy $objectProphecy) { $this->beConstructedWith('message', $objectProphecy); } ...
gustavokev/preescolar1
vendor/phpspec/prophecy/spec/Prophecy/Exception/Prophecy/ObjectProphecyExceptionSpec.php
PHP
mit
611
/* * The MIT License (MIT) * * Copyright (c) 2016 by luxe - https://github.com/de-luxe - BURST-LUXE-RED2-G6JW-H4HG5 * * 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, ...
de-luxe/burstcoin-faucet
src/main/java/burstcoin/faucet/data/Account.java
Java
mit
2,187
"use strict"; const _ = require ('underscore') _.hasTypeMatch = true /* Type matching for arbitrary complex structures (TODO: test) ======================================================================== */ Meta.globalTag ('required') Meta.globalTag ('atom') $global.const ('$any', _.identity) _.deferTest ([...
xpl/useless
base/tier0/typeMatch.js
JavaScript
mit
6,907
<?php return [ 'app' => [ 'name' => 'OctoberCMS', 'tagline' => 'Getting back to basics' ], 'locale' => [ 'be' => 'Беларуская', 'bg' => 'Български', 'cs' => 'Čeština', 'da' => 'Dansk', 'en' => 'English (United States)', 'en-au' => 'English (Aus...
c57fr/c57
modules/system/lang/vn/lang.php
PHP
mit
21,151
/** * Copyright 2017, 2018, 2019, 2020 Stephen Powis https://github.com/Crim/pardot-java-client * * 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 limi...
Crim/pardot-java-client
src/main/java/com/darksci/pardot/api/request/form/FormCreateRequest.java
Java
mit
2,672
import { $, util } from './util-node' import Taglet from './taglet' var lace, version = '1.0.0', defaults = { opts: {} }, warehouse = { singleton: null, compiled_dom: null, laces: { global: null }, taglets: {} } ; class Lace {...
jRoadie/lace
src/es6/lace.js
JavaScript
mit
1,897
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Cinema { class Program { static void Main(string[] args) { var project = Console.ReadLine().ToLower(); var r = double.Parse(Console.ReadLine());...
vasilchavdarov/SoftUniHomework
Projects/ComplexCondition/Cinema/Program.cs
C#
mit
875
from django.conf import settings from django.conf.urls import static from django.urls import include, path, re_path from django.contrib import admin urlpatterns = [ path(r"admin/", admin.site.urls), path(r"flickr/", include("ditto.flickr.urls")), path(r"lastfm/", include("ditto.lastfm.urls")), path(r"...
philgyford/django-ditto
devproject/devproject/urls.py
Python
mit
795
import angular from 'rollup-plugin-angular'; import commonjs from 'rollup-plugin-commonjs'; import nodeResolve from 'rollup-plugin-node-resolve'; import typescript from 'rollup-plugin-typescript'; import uglify from 'rollup-plugin-uglify'; import { minify } from 'uglify-es'; // rollup-plugin-angular addons import sas...
ngx-form/element
rollup.config.js
JavaScript
mit
3,420
using System; namespace Problem_04_Float_or_Integer { class Program_04_Float_or_Integer { static void Main() { decimal number = decimal.Parse(Console.ReadLine()); number = Math.Round(number); Console.WriteLine(number); } } }
ReapeR-MaxPayne/SU-TM-PF-Ext-0517-Excersises-CSharp
03-DataTypesAndVariables-Exercises/Problem_04_Float or Integer/Program_04_Float_or_Integer.cs
C#
mit
302
using System; using System.Collections; using UnityEngine; namespace Doubility3D.Resource.Downloader { public class WWWDownloader : IDownloader { private string home; internal WWWDownloader (string _home) { home = _home; if (home [home.Length - 1] != '/') { home += "/"; } } public IEnumerat...
lighter-cd/Doubility3D
DoubilityUnity/Runtime/Doubility3D/Resource/Downloader/WWWDownloader.cs
C#
mit
704
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from os import listdir import os import re import sys from argparse import ArgumentParser import random import subprocess from math import sqrt import ast from adderror import adderror """ENSAMBLE, -d directory -n number of models """ """-k number of selected structure""" ...
spirit01/SAXS
test_caxs.py
Python
mit
6,842
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespac...
matthchr/autorest
src/generator/AutoRest.CSharp.Azure.Fluent.Tests/Expected/AcceptanceTests/Lro/LRORetrysOperationsExtensions.cs
C#
mit
27,615