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
#include "editaddressdialog.h" #include "ui_editaddressdialog.h" #include "addresstablemodel.h" #include "guiutil.h" #include <QDataWidgetMapper> #include <QMessageBox> EditAddressDialog::EditAddressDialog(Mode mode, QWidget *parent) : QDialog(parent), ui(new Ui::EditAddressDialog), mapper(0), mode(mode), mo...
deluxcoin/delux
src/qt/editaddressdialog.cpp
C++
mit
3,729
package org.csap.agent.stats.service ; import java.util.concurrent.TimeUnit ; import javax.management.MBeanServerConnection ; import javax.management.ObjectName ; import org.csap.agent.CsapApis ; import org.csap.agent.model.ServiceAlertsEnum ; import org.csap.agent.stats.ServiceCollector ; import org.csap.helpers.CS...
csap-platform/csap-core
csap-core-service/src/main/java/org/csap/agent/stats/service/JmxCustomCollector.java
Java
mit
10,207
/* * The MIT License (MIT) * * Copyright (c) 2015 Microsoft Corporation * * -=- Robust Distributed System Nucleus (rDSN) -=- * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software witho...
ykwd/rDSN
src/core/core/address.cpp
C++
mit
8,222
#include <iostream> #include <cstdlib> #include <cassert> #include <vector> #include <stdio.h> using namespace std; //Proxy-class for [][] operation template <typename T> class Matrix_Row { private: T *row; size_t m; public: Matrix_Row<T>(T* a, size_t cnt) { row = a; m = cnt; } T&...
mtrempoltsev/msu_cpp_autumn_2017
homework/Zimnyukov/05/Matrix.cpp
C++
mit
4,826
<?php include('class.phpmailer.php'); $mail = new PHPMailer(); $mail->IsHTML(true); $mail->IsSMTP(); $mail->SMTPAuth = true; $mail->SMTPSecure = "ssl"; $mail->Host = "smtp.gmail.com"; $mail->Port = 465; $mail->Username = "Xarafire"; $mail->Password = "symwe!@#123"; $fromname =...
aasiimweDataCare/Dev_ftf
Dev_CPM/testMail.php
PHP
mit
1,437
export namespace StorageUtils { let hasLocalStorageCache: boolean; export function hasLocalStorage(): boolean { if (hasLocalStorageCache) { return hasLocalStorageCache; } // hasLocalStorage is used to safely ensure we can use localStorage // taken from https://developer.mozilla.org/en-US/doc...
bitmovin/bitmovin-player-ui
src/ts/storageutils.ts
TypeScript
mit
2,905
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Runtime.InteropServices; using System.Drawing; using System.Drawing.Imaging; using System.Threading; using System.Text; namespace BrowserNatives { class Maximize { //Consts const int SW_SHOWMAXI...
AndreyBelym/testcafe-browser-tools
src/natives/maximize/win/Maximize.cs
C#
mit
1,625
package fr.rohichi.engine3d; public class Pair { public int x; public int y; }
Rohichi/3DEngine
src/fr/rohichi/engine3d/Pair.java
Java
mit
88
package info.pinlab.ttada.dbcache; import java.sql.Connection; import java.sql.DatabaseMetaData; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; public class SqliteConnectionWrapper { private final String url; Connection conn = null; Statement st...
kinokocchi/Ttada
parent/dbcache/src/main/java/info/pinlab/ttada/dbcache/SqliteConnectionWrapper.java
Java
mit
2,370
'use strict'; // 서비스 단위 테스트 describe('서비스 단위 테스트', function() { beforeEach(module('myApp.services')); describe('버전 서비스 테스트', function() { it('현재 버전 반환', inject(function(version) { expect(version).toEqual('0.1'); })); }); });
eu81273/angularjs-testing-example
test/unit/servicesSpec.js
JavaScript
mit
313
<?php namespace AMQPy; use AMQPEnvelope; use AMQPQueue; use AMQPy\Client\Delivery; use AMQPy\Serializers\Exceptions\SerializerException; use AMQPy\Serializers\SerializersPool; use AMQPy\Support\DeliveryBuilder; use Exception; abstract class AbstractListener { private $queue; private $serializers; private...
pinepain/amqpy
src/AMQPy/AbstractListener.php
PHP
mit
3,816
import java.io.*; import java.math.*; import java.security.*; import java.text.*; import java.util.*; import java.util.concurrent.*; import java.util.regex.*; public class Solution { // Complete the marsExploration function below. static int marsExploration(String s) { int count = 0; char[] c ...
dusadpiyush96/Competetive
HackerRank/Algorithm/Strings/MarsExploration.java
Java
mit
1,004
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Drawing.Drawing2D; using Common; namespace CustomControls { public partial class Passwo...
sassy224/PasswordTextBox
CustomControls/PasswordMeter.cs
C#
mit
33,534
try: print 'Importing ....' from base import * # noqa from local import * # noqa except ImportError: import traceback print traceback.format_exc() print 'Unable to find moderation/settings/local.py' try: from post_env_commons import * # noqa except ImportError: pass
CareerVillage/slack-moderation
src/moderation/settings/__init__.py
Python
mit
305
using Autofac; using AutoMapper; using Miningcore.Blockchain.Ergo.Configuration; using Miningcore.Configuration; using Miningcore.Extensions; using Miningcore.Messaging; using Miningcore.Mining; using Miningcore.Payments; using Miningcore.Persistence; using Miningcore.Persistence.Model; using Miningcore.Persistence.Rep...
coinfoundry/miningcore
src/Miningcore/Blockchain/Ergo/ErgoPayoutHandler.cs
C#
mit
14,286
<?php Breadcrumbs::for('admin.email-templates.index', function ($trail) { $trail->push(__('labels.backend.access.email-templates.management'), route('admin.email-templates.index')); }); Breadcrumbs::for('admin.email-templates.create', function ($trail) { $trail->parent('admin.email-templates.index'); $tra...
viralsolani/laravel-adminpanel
routes/breadcrumbs/backend/email-templates/email-template.php
PHP
mit
673
package gosquare type Meta struct { Code int `json:"code"` ErrorType string `json:"errorType"` ErrorDetails string `json:"errorDetails"` } type Notifications []Notification type Notification struct { Type string `json:"type"` Item interface{} `json:"item"` }
aykutaras/gosquare
base.go
GO
mit
286
package Mod.Items; import java.util.List; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.boss.EntityDragon; import net.minecraft.entity.boss.EntityWither; import net.minecraft.entity.monster.Entit...
tm1990/MiscItemsAndBlocks
common/Mod/Items/ModItemSilverSword.java
Java
mit
4,575
<?php namespace Dflydev\EncryptedFigCookies\Encryption\Adapter; use Dflydev\EncryptedFigCookies\Encryption\Encryption; use Zend\Filter\Decrypt; use Zend\Filter\Encrypt; class ZendCryptEncryption implements Encryption { /** * @var Decrypt */ private $decrypt; /** * @var Encrypt */ ...
dflydev/dflydev-encrypted-fig-cookies
src/Dflydev/EncryptedFigCookies/Encryption/Adapter/ZendCryptEncryption.php
PHP
mit
684
<?php namespace Lyra; use Lyra\Interfaces\Widget; class WidgetRegistry implements \Lyra\Interfaces\WidgetRegistry { /** * {@inheritdoc} */ protected $widgets; public function __construct() { $this->widgets = []; } /** * {@inheritdoc} */ public function addWidg...
uaktags/lyraEngine
src/WidgetRegistry.php
PHP
mit
754
package com.tactfactory.harmony.platform.android.updater; import java.io.File; import java.io.IOException; import java.io.StringWriter; import com.tactfactory.harmony.generator.BaseGenerator; import com.tactfactory.harmony.platform.IAdapter; import com.tactfactory.harmony.updater.IAddEntityField; import com.tactfactor...
TACTfactory/harmony-core
src/com/tactfactory/harmony/platform/android/updater/AddEntityFieldAndroid.java
Java
mit
1,647
<?php namespace Sideclick\EntityHelperBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; class SideclickEntityHelperBundle extends Bundle { }
Sideclick/EntityHelperBundle
src/SideclickEntityHelperBundle.php
PHP
mit
150
#ifndef COMPONENT_HPP #define COMPONENT_HPP #include "messages/spa_subscription_reply.hpp" #include "messages/spa_subscription_request.hpp" #include "messages/spa_data.hpp" #include "spa_communicator.hpp" #include "spa_message.hpp" #include <iostream> #include <memory> #include <vector> struct Subscriber { Subscrib...
SmallSatGasTeam/OpenSPA
lib/component.hpp
C++
mit
1,736
<!-- Replaced strings --> <form class="form-signin form-horizontal" id="replaced_strings_form" role="form"> <div class="col-sm-10 col-sm-offset-4"> <h2 class="form-signin-heading"><?= $this->lang->line("replaced_string_settings"); ?></h2> </div> <div class="form-group"> <div class="col-sm-offset-4 col-sm-6"> ...
boh1996/TwitterAnalytics
v1/application/views/admin_strings_view.php
PHP
mit
511
/* * Message.cc * * Created on: Apr 13, 2014 * Author: wilfeli */ #include "Message.h" Message::Message(std::string s_):type(s_){}; MessagePSSendPayment::MessagePSSendPayment(IPSAgent* a_, double q_, std::string type_): Message(type_), getter(a_), q(q_){}; MessagePSSendPayment::MessagePSSendPayment(...
wilfeli/DMGameBasic
src/Message.cpp
C++
mit
1,845
import React, { PropTypes, Component } from 'react'; import cx from 'classnames'; import Modal from '../Modal'; import FontIcon from '../FontIcon'; import s from './AssignTo.scss'; class AssignTo extends Component { state = { nodeIdx: null, treeData: [], }; componentDidMount = () => this.setState({ ...
peinanshow/react-redux-samples
src/components/common/AssignTo/AssignTo.js
JavaScript
mit
4,465
import { Component } from '@angular/core'; import { NgForm } from '@angular/forms'; import { AppConfig, AppRequest } from '../shared/index'; import { UserModel } from '../+users/user.interface'; import { TranslationComponent } from '../shared/translation/translation.component'; import { CacheComponent } from '../shared...
martinsvb/Angular2_bootstrap_seed
src/client/app/+profile/profile.component.ts
TypeScript
mit
2,850
/* The MIT License (MIT) Copyright (c) 2014 Harun Hasdal Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
harunhasdal/sftp-connector
src/main/java/com/github/harunhasdal/livecycle/sftp/SFTPParameterException.java
Java
mit
1,476
/* Copyright (c) 2007 Danny Chapman http://www.rowlhouse.co.uk This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for...
Pervasive/Lively3D
Dropbox/Lively3D/Resources/MiniGolf/scripts/rigid_body.js
JavaScript
mit
29,886
<?php namespace Admingenerator\GeneratorBundle\QueryFilter; interface QueryFilterInterface { /** * @param object $query the query object interface depend of the ORM * * @api */ function setQuery($query); /** * @return the query object interface depend of the ORM * * @ap...
marius1092/test
vendor/bundles/Admingenerator/GeneratorBundle/QueryFilter/QueryFilterInterface.php
PHP
mit
629
package model; /** * Тип дорожки. */ public enum LineType { /** * Верхняя. Проходит через левый нижний, левый верхний и правый верхний углы карты. */ TOP, /** * Центральная. Напрямую соединяет левый нижний и правый верхний углы карты. */ MIDDLE, /** * Нижняя. Проходит ч...
spookiecookie/russianaicup
codewizards2016/java-cgdk/src/main/java/model/LineType.java
Java
mit
606
app.factory('Pizza', ['$resource', 'LoginService', function ($resource, LoginService) { const headers = { token: getToken }; return $resource('./api/pizzas/:id', { id: '@_id' }, { query: { method: 'GET', isArray: true, headers ...
auromota/easy-pizza-api
src/public/js/factories/pizzaFactory.js
JavaScript
mit
778
/* * The MIT License * * Copyright (c) 2004-2010, Sun Microsystems, Inc., Kohsuke Kawaguchi, * Stephen Connolly, Tom Huybrechts, InfraDNA, Inc. * * 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 th...
tfennelly/jenkins
core/src/main/java/hudson/model/Queue.java
Java
mit
108,599
require "action_controller" Mime::Type.register "application/pdf", :pdf require "prawn" ActionController::Renderers.add :pdf do |filename, options| pdf = Prawn::Document.new pdf.text render_to_string options send_data pdf.render, :filename => "#{filename}.pdf", :type => "application/pdf", :disposition => ...
travisjeffery/pdf_renderer
lib/pdf_renderer.rb
Ruby
mit
361
describe('modelAndOptionMapping', function() { var utHelper = window.utHelper; var testCase = utHelper.prepare([ 'echarts/src/component/grid', 'echarts/src/chart/line', 'echarts/src/chart/pie', 'echarts/src/chart/bar', 'echarts/src/component/toolbox', 'echarts/s...
ka215/WP-Gentelella
vendors/echarts/test/ut/spec/model/Global.js
JavaScript
mit
29,436
import { h } from 'omi'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(h("path", { d: "M5 20v2h5v2l3-3-3-3v2zm9 0h5v2h-5zm3-20H7C5.9 0 5 .9 5 2v14c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zm0 16H7V2h10v14zm-5-9c1.1 0 2-.9 1.99-2 0-1.1-.9-2-2-2S10 3.9 10 5s.89 2 2 2z" }), 'Came...
AlloyTeam/Nuclear
components/icon/esm/camera-rear-outlined.js
JavaScript
mit
337
package gpg import "context" type contextKey int const ( ctxKeyAlwaysTrust contextKey = iota ctxKeyUseCache ) // WithAlwaysTrust will return a context with the flag for always trust set. func WithAlwaysTrust(ctx context.Context, at bool) context.Context { return context.WithValue(ctx, ctxKeyAlwaysTrust, at) } /...
gopasspw/gopass
internal/backend/crypto/gpg/context.go
GO
mit
924
using System; using System.Runtime.InteropServices; using EnvDTE; namespace ManuelNaujoks.VSChat { [Guid("173cbcde-e728-442c-82ee-1c29ae3e00af")] public class MyToolWindow : SolutionAwareToolWindowPane { public MyToolWindow() { Caption = Resources.ToolWindowTitle; BitmapResourceID = 301; BitmapIndex =...
halllo/ManuelsChat
VSChat/MyToolWindow.cs
C#
mit
1,689
'use strict'; /** * controller for angular-ladda * An angular directive wrapper for Ladda buttons. */ angular.module('core').controller('LaddaCtrl', ["$scope", "$timeout", function ($scope, $timeout) { $scope.ldloading = {}; $scope.clickBtn = function (style) { $scope.ldloading[style.replace('-',...
mchammabc/sites
public/modules/core/controllers/laddaCtrl.js
JavaScript
mit
1,099
from distutils.core import setup, Extension setup( name="tentacle_pi.TSL2561", version="1.0", packages = ["tentacle_pi"], ext_modules = [ Extension("tentacle_pi.TSL2561", sources = ["src/tsl2561.c", "src/tsl2561_ext.c"]) ] )
lexruee/tsl2561
setup.py
Python
mit
237
import React, {PureComponent} from "react"; import "./fill-view.css"; export class FillView extends PureComponent { divRef = null; state = { scale: 1.0 }; setDivRef = (ref) => { this.divRef = ref; }; componentDidMount() { const {percentMargin = 6} = this.props; ...
dfbaskin/react-higher-order-components
packages/presentation/src/shared/fill-view.js
JavaScript
mit
1,272
<?php header("Content-type: text/html; charset=utf-8"); if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Matricula extends CI_Controller { public function __construct(){ parent::__construct(); if(!isset($_SESSION['login'])) die("Sesion terminada. <a href='". base_url()....
ccjuantrujillo/cepreadm
application/controllers/ventas/matricula.php
PHP
mit
18,373
#include "Pch.h" #include "EngineCore.h" #include "GetTextDialog.h" #include "KeyStates.h" //----------------------------------------------------------------------------- GetTextDialog* GetTextDialog::self; //================================================================================================= GetTextDial...
lcs2/carpg
project/source/engine/gui/GetTextDialog.cpp
C++
mit
4,677
import * as React from 'react'; import {SvgIconProps} from '../../SvgIcon'; export default function SpeakerNotes(props: SvgIconProps): React.ReactElement<SvgIconProps>;
mattiamanzati/typings-material-ui
svg-icons/action/speaker-notes.d.ts
TypeScript
mit
170
# 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::RecoveryServicesBackup::Mgmt::V2019_05_13 module Models # # Yearly retention schedule. # class YearlyRetentionSchedule ...
Azure/azure-sdk-for-ruby
management/azure_mgmt_recovery_services_backup/lib/2019-05-13/generated/azure_mgmt_recovery_services_backup/models/yearly_retention_schedule.rb
Ruby
mit
4,112
<?php /** * Created by PhpStorm. * User: lenovo * Date: 02/08/2016 * Time: 16.37 */ class News_m extends CI_Model{ function m_get_news($limit=null,$offset=null){ if($limit!==null && $offset !== null){ $this->db->limit($limit,$offset); } if(isset($_GET["id"])) { ...
Calvinn097/servermedan
application/models/MAIN/News_m.php
PHP
mit
1,108
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("Ex...
zdzdz/CSharp-Part-2-Homeworks
06. Strings-And-Text-Processing-HW/ExtractEmails/Properties/AssemblyInfo.cs
C#
mit
1,402
from flask import Flask, jsonify, request, redirect, url_for import subprocess import os import json from cross_domain import * app = Flask(__name__) ALLOWED_EXTENSIONS = set(['mol', 'smi']) try: TARGET = os.environ['TARGET'] except Exception: print 'export TARGET=<path to data>' exit(1) try: AlGDoc...
gkumar7/AlGDock
gui/api/REST.py
Python
mit
6,256
const crypto = require('crypto'); const passwordHashAlgorithm = 'sha1'; module.exports = function(client) { var computeSHA1 = function(str) { return crypto.createHash(passwordHashAlgorithm).update(str).digest('hex'); }; var user = { addUser: function(email, password, callback) { client.incr('global:use...
yoman07/GeoChatServer
db.js
JavaScript
mit
3,170
const { validateLocaleId } = require(".."); describe("validateLocaleId", () => { it("validateLocaleId", () => { validateLocaleId("en").should.eql(true); validateLocaleId(null).should.eql(true); }); });
node-opcua/node-opcua
packages/node-opcua-basic-types/test/test_locale_id.js
JavaScript
mit
227
var Q = require('q'); /* ** @param [object | array] object: is the object that needs to be iterated, can be an Object or an array @param [integer] index: is the index of argument obtained from the object element and to be added to asyncFunc arguments, starting from 1 @param [function] asyncFunc: is the asynchronous...
m-arch/for-async
index.js
JavaScript
mit
1,825
package name.reidmiller.iesoreports.client; import java.io.IOException; import java.net.MalformedURLException; import java.util.ArrayList; import java.util.Date; import java.util.List; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import ca.ieso.reports.schema.nislsha...
r24mille/IesoPublicReportBindings
src/main/java/name/reidmiller/iesoreports/client/NetInterchangeSchedulingLimitClient.java
Java
mit
6,803
# -*- encoding: utf-8 -*- # The MIT License (MIT) # # Copyright (c) 2014-2015 Haltu Oy, http://haltu.fi # # 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 witho...
educloudalliance/eca-auth-data
authdata/management/commands/csv_import.py
Python
mit
6,066
package br.ifcibirama.dell_pc.javaisfun; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.view.View; public class Obje...
jvbeltra/JavaIsFun
app/src/main/java/br/ifcibirama/dell_pc/javaisfun/Objetos2.java
Java
mit
2,904
package ru.otus.java_2017_04.golovnin.hw11.Cache; public interface CacheEngine<K, V> { void put(K key, V element); V get(K key); int getHitCount(); int getMissCount(); void dispose(); }
vladimir-golovnin/otus-java-2017-04-golovnin
hw11/src/main/java/ru/otus/java_2017_04/golovnin/hw11/Cache/CacheEngine.java
Java
mit
207
# こっちのURLで放送予定の番組情報取得できるけど視聴者数ないので使わない # http://live.nicovideo.jp/rss require File.expand_path('./lib/readers/channel_list_reader') class NicoOfficialReader < ChannelListReader def read_rows @doc.css('#rank .active .detail') end def read_channel_name(row) row.css('p a').text.slice(0, 10) ...
masu-kawa/nyp
lib/readers/nico_official_reader.rb
Ruby
mit
1,554
'use strict'; var kraken = require('kraken-js'), app = require('express')(), options = require('./lib/spec')(app), port = process.env.PORT || 8000; app.use(kraken(options)); app.listen(port, function(err) { console.log('[%s] Listening on http://localhost:%d', app.settings.env, port); });
NaveenAttri/TestProject
index.js
JavaScript
mit
310
<?php return array ( 'id' => 'kddi_sn3q_ver1', 'fallback' => 'kddi_sn3p_ver1', 'capabilities' => array ( 'model_name' => 'S005', 'release_date' => '2010_november', 'max_image_width' => '234', 'resolution_height' => '854', 'resolution_width' => '480', 'max_image_height' => '375', 'fl...
cuckata23/wurfl-data
data/kddi_sn3q_ver1.php
PHP
mit
356
<?php namespace daVerona\Texting\Contracts; interface TextingRequest { public function getSender(); public function getReceiver(); }
daverona/texting
src/Contracts/TextingRequest.php
PHP
mit
148
/* global __phantom_writeFile */ (function(global) { var UNDEFINED, exportObject; if (typeof module !== "undefined" && module.exports) { exportObject = exports; } else { exportObject = global.jasmineReporters = global.jasmineReporters || {}; } function trim(str) { return st...
Zack-Tillotson/open-door-the-game
node_modules/jasmine-reporters/src/junit_reporter.js
JavaScript
mit
13,510
<?php $textImage = imagecreate(200,100); $white = imagecolorallocate($textImage, 255, 255, 255); $black = imagecolorallocate($textImage, 0, 0, 0); $yOffset = 0; for ($i = 1; $i <=5; $i++) { imagestring($textImage, $i, 5, $yOffset, "This is system font $i", $black); $yOffset += imagefontheight($i); } header("Content-t...
inest-us/php
PHP5/Ch16/drawstring.php
PHP
mit
389
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { Injectable } from '@angular/core'; @Injectable() export class Service386Service { constructor() { } }
angular/angular-cli-stress-test
src/app/services/service-386.service.ts
TypeScript
mit
320
/** * Copyright (c) 2015-2018, CJ Hare All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted * provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, this list of conditions * a...
CjHare/systematic-trading
systematic-trading-backtest-output-elastic/src/main/java/com/systematic/trading/backtest/output/elastic/dao/ElasticDao.java
Java
mit
2,322
using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CodeFixes; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Diagnostics; using System.Collections.Generic; using System.Collections.Immutable; using System.Composition; using System.Linq; namespace FluentAssertions.Analyzers { [Diag...
fluentassertions/fluentassertions.analyzers
src/FluentAssertions.Analyzers/Tips/Strings/StringShouldNotBeNullOrWhiteSpace.cs
C#
mit
2,544
package com.pedanov.departments.dao; /** * Created by Anfel on 16.02.2017. */ public class DepartmentDao { }
anfel4life/departments
src/main/java/com/pedanov/departments/dao/DepartmentDao.java
Java
mit
112
package intersectables; import base.HitRecord; import base.Intersectable; import base.Material; import base.Ray; /** * Any Primitive Geometry is an intersectable and has a certain material assigned to. * Created by simplaY on 06.01.2015. */ public abstract class PrimitiveGeometry implements Intersectable { //...
simplay/aptRenderer
src/main/java/intersectables/PrimitiveGeometry.java
Java
mit
771
var Handlebars = require("handlebars"); export default class Lean { constructor() { this.name = this.constructor.name; this.id = `${this.name}-${Lean.INCREMENTAL_ID++}`; this.children = {}; this.props = {}; this.element = null; this.view = this.name; Lean.registerInstance(this); } render() { retur...
amirmohsen/lean
lib/Lean.js
JavaScript
mit
3,109
using System; using System.Collections.Generic; using System.Net; using System.Net.Sockets; using System.Threading; namespace SocketLibrary { /// <summary> /// SocketµÄ¿Í»§¶Ë /// </summary> public class Client : SocketBase { //ÊÇ·ñÐÄÌø¼ì²â private const bool _isSendHeartbeat = true;...
Harbour9354/Socket.Harbour
SocketLibrary/Client.cs
C#
mit
3,300
<?php /** * This file is part of ClassMocker. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @package JSiefer\ClassMocker */ namespace JSiefer\ClassMocker\Footprint; /** * Class ClassFootprintTest * * @covers \JSiefer\Class...
jsiefer/class-mocker
tests/Footprint/ClassFootprintTest.php
PHP
mit
5,555
/** * File: Command.java<br/> * Author: Peter M. Corcoran, pmcorcor@uab.edu<br/> * Assignment: EE433 Research Project<br/> * Version: 1.0.0 11/27/2015 pmc - initial coding<br/> * Structure Component: Abstract Command Object */ package ee433.behavior.command; public abstract class Command { public abstract v...
corcoranp/ee433
src/ee433/behavior/command/Command.java
Java
mit
337
class BitsInterpreter < ActiveRecord::Base validates_presence_of :name, :length validates_numericality_of :length, :only_integer => true validates_inclusion_of :length, :in => [16, 32, 48, 64, 1024], :message => "valid value [16, 32, 48, 64, 1024]" validates_length_of :name, :maximum => 255 validates_uniquen...
rli9/vims
app/models/bits_interpreter.rb
Ruby
mit
498
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative ...
MaSys/natumex
app/assets/javascripts/application.js
JavaScript
mit
1,227
<?php namespace Tests\DependencyInjectorTests; return [ ServiceWithDependency::class, TestService::class, BaseService::class, ExtendedService::class ];
martinbrom/trip-hatch
tests/DependencyInjectorTests/service_list.php
PHP
mit
170
using System.Xml.Serialization; namespace WebApiDavExtension.CalDav { [XmlRoot("href", Namespace = "DAV:")] public class HRef { public HRef() { } public HRef(string reference) { Reference = reference; } [XmlText] public string R...
medocheck/WebApiDavExtension
WebApiDavExtension/CalDav/HRef.cs
C#
mit
353
import asyncio import rocat.message import rocat.actor import rocat.globals class BaseActorRef(object): def tell(self, m, *, sender=None): raise NotImplementedError def ask(self, m, *, timeout=None): raise NotImplementedError def error(self, e): raise NotImplementedError class...
chongkong/rocat
rocat/ref.py
Python
mit
2,370
// // This source file is part of appleseed. // Visit https://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2017-2018 Esteban Tovagliari, The appleseedhq Organization // // Permission is hereby granted, free of charge, to any perso...
est77/appleseed
src/appleseed/renderer/modeling/bsdf/plasticbrdf.cpp
C++
mit
21,564
#!/usr/bin/env python3.7 # coding=utf-8 """Jerod Gawne, 2018.06.28 https://github.com/jerodg/hackerrank """ import sys import traceback if __name__ == '__main__': try: n, m = map(int, input().split()) for i in range(1, n, 2): print(str('.|.') * i).center(m, '-') print(str('WELC...
jerodg/hackerrank-python
python/02.Strings/08.DesignerDoorMat/solution1.py
Python
mit
510
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace TheWorld.Services { using System.Diagnostics; public class DebugMailService : IMailService { public void SendMail(string to, string from, string subject, string body) { D...
tonyisaway/aspdotnetcore-efcore-bootstrap-angular-web-app
TheWorld/Services/DebugMailService.cs
C#
mit
414
'use strict'; const { ManyToManyModifyMixin } = require('./ManyToManyModifyMixin'); const SQLITE_BUILTIN_ROW_ID = '_rowid_'; // We need to override this mixin for sqlite because sqlite doesn't support // multi-column where in statements with subqueries. We need to use the // internal _rowid_ column instead. const Man...
Vincit/objection.js
lib/relations/manyToMany/ManyToManySqliteModifyMixin.js
JavaScript
mit
1,361
@extends('layouts.default') @section('content') @include('game.partials.header') <!-- game menu --> <div class="row"> <div class="col-sm-5 movie-production"> <p>Current loan: {{ $currentLoan }} € (max. 2000000 €)</p> {{ Form::open(['route' => 'takeLoan_path']) }} <div class="form-group"> {{ Form...
teruk/movbizz
app/views/loan/take.blade.php
PHP
mit
783
class AddIsCommentToAnswers < ActiveRecord::Migration[4.2] def change add_column :answers, :is_comment, :boolean, default: false end end
wested/surveyor_gui
db/migrate/20140531012006_add_is_comment_to_answers.rb
Ruby
mit
145
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-s...
shahin1986/fertility_dev
application/views/header2.php
PHP
mit
7,983
<?php /** * This file is part of the Nette Framework (https://nette.org) * Copyright (c) 2004 David Grudl (https://davidgrudl.com) */ namespace Nette\Templating; use Nette; use Latte; use Nette\Utils\Strings; /** * @deprecated */ class Helpers extends Latte\Runtime\Filters { private static $helpers = array( ...
JanTvrdik/NetteComponentsExample
vendor/nette/deprecated/src/Templating/Helpers.php
PHP
mit
1,793
<?php require_once('includes/config.php'); ?> <!DOCTYPE html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js"> ...
MarcTowler/blog
archives.php
PHP
mit
6,940
<?php namespace AwsUpload\Tests; use PHPUnit\Framework\TestCase; use Symfony\Component\Filesystem\Filesystem; abstract class BaseTestCase extends TestCase { protected $main_external; protected $main_aws_home; /** * The directory that contain the AWSUPLOAD_HOME. * * Foreach test we want ...
borracciaBlu/aws-upload
tests/AwsUpload/BaseTestCase.php
PHP
mit
2,048
/* * Copyright(c) Sophist Solutions, Inc. 1990-2022. All rights reserved */ #include "../StroikaPreComp.h" #include "TimeOutException.h" using namespace Stroika::Foundation; using namespace Stroika::Foundation::Execution; /* ******************************************************************************** ******...
SophistSolutions/Stroika
Library/Sources/Stroika/Foundation/Execution/TimeOutException.cpp
C++
mit
1,274
import { Component } from '@angular/core'; @Component({ templateUrl: './login.html' }) export class Login { }
aikin/ghsm
app/src/pages/login/login.ts
TypeScript
mit
117
class AppointmentCanceledNotification attr_accessor :appointment def initialize(appointment) @appointment = appointment end def message { message: 'Seu horário foi cancelado :/', data: { appointment_id: appointment.id, type: 'appointment_canceled' } } end def...
BarberHour/barber-hour-api
app/notifications/appointment_canceled_notification.rb
Ruby
mit
385
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("uW...
uWebshop/uWebshop-Releases
Core/uWebshop.DataAccess/Properties/AssemblyInfo.cs
C#
mit
1,269
Liquid::Template.register_filter(YetAnotherTagCloud)
vaudoc/jk
vendor/plugins/yet_another_tag_cloud/init.rb
Ruby
mit
53
var searchData= [ ['bullet_2ecpp',['bullet.cpp',['../bullet_8cpp.html',1,'']]], ['bullet_2eh',['bullet.h',['../bullet_8h.html',1,'']]] ];
SineJunky/ascii-game
ASCII-Game/docs/html/search/files_62.js
JavaScript
mit
142
import React, { Component } from "react"; import { browserHistory, Link } from "react-router"; import update from "react-addons-update"; class AuthoredPost extends Component { constructor(props) { super(props); this.state = { isVisible: { display: "block" }, post: {} }; } ...
jeremypross/lcjr-frontend
src/components/Dashboard/AuthoredPost.js
JavaScript
mit
1,691
<?php namespace Sokil\State; class Transition { private $name; /** * @var string */ private $initialStateName; /** * @var string */ private $resultingStateName; /** * @var callable which checks if transition acceptable */ private $acceptConditionCallable; ...
sokil/php-state
src/Transition.php
PHP
mit
1,636
using System.Collections; using System.Collections.Generic; using UnityEngine; // タックル それは 自機と同じ当たり判定を持った自爆攻撃 public class Tackle : BulletBase { [SerializeField] GameObject hitEffectPrefab; void Start() { OnStart(); } void Update() { if (shooter == null) { Destroy(this.gameObject); return; } ...
enpel/ggj2017-deliciousset
UnityProject/Assets/Scripts/Battle/Tackle.cs
C#
mit
1,051
dependsOn("dependencyCircular2.js");
SoloVid/grunt-ordered-concat
test/fixtures/dependencyCircular1.js
JavaScript
mit
37
import { FETCH_POSTS_REQUEST_VIDEO, FETCH_POSTS_SUCCESS_VIDEO, FETCH_POSTS_FAILURE_VIDEO, } from '../actions/VideoAction'; const initialState = { videoAssets: [], isFetching: false, failure: false, } const fetchVideoAssets = (state = initialState, action) => { switch (action.type) { case FETCH_POSTS_R...
sikamedia/idol
src/reducers/VideoReducer.js
JavaScript
mit
649
import math d = int(input()) for _ in range(d): t, a, b, c = [int(x) for x in input().split()] l = [a, b, c] l.sort() if l[0] + l[1] < l[2]: l[2] = l[0] + l[1] print(min(t, math.floor((l[0]+l[1]+l[2])/2)))
madeinqc/IEEEXtreme9.0
06-tacostand-moderate/main.py
Python
mit
238
const React = require('react'); export default ({onQuantityChange, productId}) => ( <div className="product__element"> <img /> <input className="quantity" onChange={(e) => { e.preventDefault(); const inputValue = e.target.value; onQuantityChange({ id: productId, ...
unam3/oshop_i
src/components/Quantity/Quantity.js
JavaScript
mit
545
package com.devotedmc.ExilePearl.util; import java.util.ArrayList; /** * String List class with an override for seeing if * it contains a string value, ignoring case * @author Gordon * */ @SuppressWarnings("serial") public class StringListIgnoresCase extends ArrayList<String> { @Override public boolean con...
DevotedMC/ExilePearl
src/main/java/com/devotedmc/ExilePearl/util/StringListIgnoresCase.java
Java
mit
506
// ======================================================================== // // Copyright 2009-2016 Intel Corporation // // // // Licensed under the Apache License, Version 2.0 (the "License"); // // y...
01alchemist/x-ray-kernel
src/embree/kernels/common/scene.cpp
C++
mit
28,173