repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
sriram-mahavadi/extlp | lib/io/request.cpp | 3017 | /***************************************************************************
* lib/io/request.cpp
*
* Part of the STXXL. See http://stxxl.sourceforge.net
*
* Copyright (C) 2008 Andreas Beckmann <beckmann@cs.uni-frankfurt.de>
* Copyright (C) 2009 Johannes Singler <singler@ira.uka.de>
*
* Distributed under t... | mit |
SjorsO/sup | src/Formats/Bluray/Sections/PaletteSection.php | 2935 | <?php
namespace SjorsO\Sup\Formats\Bluray\Sections;
use Exception;
use SjorsO\Sup\Formats\Bluray\DataSection;
use SjorsO\Sup\Streams\Stream;
class PaletteSection extends DataSection
{
/** @var array [ index => [r, g, b, alpha], ...] */
protected $colors = [];
protected $isLazy = false;
protected $l... | mit |
dvaJi/ReaderFront | packages/api/src/modules/works-genre/query.js | 433 | // Imports
import { GraphQLList } from 'graphql';
// App Imports
import { GenresType, DemographicType } from './types';
import { getGenresTypes, getDemographicTypes } from './resolvers';
// Genres Types
export const genresTypes = {
type: new GraphQLList(GenresType),
resolve: getGenresTypes
};
// Demographic Type... | mit |
Enviii/scryingorb-2 | config/app.php | 7223 | <?php
return [
/*
|--------------------------------------------------------------------------
| Application Debug Mode
|--------------------------------------------------------------------------
|
| When your application is in debug mode, detailed error messages with
| stack traces will be shown on every error... | mit |
sxei/isite | webpack.config.js | 5867 | var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
// 自己随便写的一个定制化的复制插件
var HtmlXeiWebpackPlugin = require('./html-xei-webpack-plugin');
var CopyWebpackPlugin = require('copy-webpack-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var path = require('path... | mit |
brash-creative/sendgrid | tests/ResponseTest.php | 1470 | <?php
namespace Brash\SendGrid\Test;
use Brash\SendGrid\Response;
class ResponseTest extends \PHPUnit_Framework_TestCase {
public function testGetStatus()
{
$response = new Response(200, [], '');
$this->assertEquals(200, $response->getStatusCode());
}
public function testGetHeader... | mit |
fog/fog-openstack | lib/fog/openstack/monitoring/requests/create_notification_method.rb | 381 | module Fog
module OpenStack
class Monitoring
class Real
def create_notification_method(options)
request(
:body => Fog::JSON.encode(options),
:expects => [201, 204],
:method => 'POST',
:path => 'notification-methods'
)
... | mit |
matthew-sochor/fish.io.ai | modeling/train_head.py | 4817 | import os
import subprocess
import numpy as np
from keras.applications.resnet50 import ResNet50
from keras.layers import Dense, Dropout, Input, BatchNormalization, Conv2D, Activation, AveragePooling2D, GlobalAveragePooling2D
from keras.models import Model
from keras.optimizers import Adam
from keras import layers
fro... | mit |
AlterRS/Deobfuscator | deps/jode/obfuscator/modules/SerializePreserver.java | 3069 | /* SerializePreserver Copyright (C) 1999-2002 Jochen Hoenicke.
*
* 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 Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This progra... | mit |
EntilZha/plda-spark | src/main/scala/Main.scala | 989 | import org.apache.log4j.{Level, Logger}
import org.lda.LatentDirichletAllocation
object Main {
def main(args: Array[String]) {
Logger.getLogger("spark").setLevel(Level.WARN)
val sizes = List(32)//, 64, 128, 256, 512)
val tasks = List(2)//1, 4, 8, 12, 16, 20, 24, 28, 32)
var szs = List(0)
var tsks... | mit |
mb300sd/bitcoin | src/qt/guiutil.cpp | 32399 | // Copyright (c) 2011-2017 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <qt/guiutil.h>
#include <qt/bitcoinaddressvalidator.h>
#include <qt/bitcoinunits.h>
#include <qt/qvalidatedlineedit... | mit |
acidghost/ariel | lib/ariel/node.rb | 2174 | module Ariel
# A generic Node object. As an end user, you have no need to use this. All
# children are stored in a hash. #id and #type are undefined so they can be
# used freely as part of a Node::Structure
class Node
#removed_methods=[:id, :type]
#removed_methods.each {|meth| undef_method meth}
at... | mit |
adinkraalphabet/keyboards | inuktitut_latin/source/inuktitut_latin-layout.js | 20147 | {
"tablet": {
"font": "Helvetica",
"layer": [
{
"id": "default",
"row": [
{
"id": 1,
"key": [
{
"id": "K_Q",
"text": "q",
"pad": "15"
},
{
"id": "K_... | mit |
Grarak/grarak.com | goserver/mandy/userdata.go | 7041 | package mandy
import (
"database/sql"
_ "github.com/mattn/go-sqlite3"
"../utils"
"golang.org/x/crypto/pbkdf2"
"crypto/sha256"
"crypto/rand"
"reflect"
"strings"
)
type UserData struct {
db *sql.DB
apiTokens map[string]*User
users map[string]string
verifiedUsers map[string]string
}
type User... | mit |
ipab-rad/task_alloc | src/sim/task_experiments.py | 6243 | import task_problem
import task_model as model
import task_local as local_search
import task_greedy as greedy_heuristic
import task_minizinc as cp_minizinc
import signal
import csv
import task_score
import sys
import os
import time
import random
INSTANCES = [
{ 'processors': 2, 'robots': 1, 'cameras': 1},
{ 'p... | mit |
RossWang/Aria2-Integration | App/config.js | 813 | 'use strict';
var config = {};
config.command = {
get guess() {
return {
path: "",
protocol: "ws",
host: "127.0.0.1",
port: "6800",
interf: "jsonrpc",
token: "",
zoom: "1",
sound: "3",
menu: false,
shutdown: false,
aggressive: false,
windowLoc: false,
auto: true,
autoSet: tr... | mit |
jamesgolick/zebra | lib/zebra/shoulda.rb | 1018 | module Zebra
module ShouldaSupport
def self.included(klass)
klass.class_eval do
attr_accessor :expects
alias_method :build_without_expects, :build
alias_method :build, :build_with_expects
end
end
def expect(&block)
self.expects ||= []
self.expects << bloc... | mit |
LiuVII/Self-driving-RC-car | drive3.py | 7700 | #!/bin/usr/env python3
import pygame
import os
import sys
import time
import argparse
import urllib2
import subprocess
import numpy as np
import pandas as pd
from math import pi
import shutil
from datetime import datetime
import select
import math
# from train import process_image, model
from train2 import process_imag... | mit |
hidenori-t/snippet | life_time.py | 123 | import datetime
today = datetime.date.today()
birthday = datetime.date(1985,1,28)
life = today - birthday
print(life.days) | mit |
bruli/php-value-objects | src/PhpValueObjects/Identity/Sha1.php | 439 | <?php
declare(strict_types=1);
namespace PhpValueObjects\Identity;
use PhpValueObjects\AbstractValueObject;
abstract class Sha1 extends AbstractValueObject
{
public function __construct(string $value)
{
parent::__construct($value);
}
protected function guard($value): void
{
if (... | mit |
heiseonline/shariff | src/js/services/whatsapp.js | 1916 | 'use strict'
module.exports = function(shariff) {
var url = encodeURIComponent(shariff.getURL())
var title = shariff.getTitle()
return {
popup: false,
shareText: {
'bg': 'cподеляне',
'cs': 'sdílet',
'da': 'del',
'de': 'teilen',
'en': 'share',
'es': 'compartir',
... | mit |
IsNull/TSM-Alg | src/main/java/mse/alg/ex3/PicsiSWT/gui/Editor.java | 5688 | package mse.alg.ex3.PicsiSWT.gui;
import mse.alg.ex3.PicsiSWT.files.Document;
import mse.alg.ex3.PicsiSWT.files.PNM;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Display;
import javax.swing.*;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
import java.awt.*;
im... | mit |
intervention-engine/ember-fhir-adapter | app/serializers/timing-repeat-component.js | 171 | //Autogenerated by ../../build_app.js
import timing_repeat_component from 'ember-fhir-adapter/serializers/timing-repeat-component';
export default timing_repeat_component; | mit |
UncertainConstraint/AngularTypeScriptComponents | webpack.base.config.js | 859 | var webpack = require('webpack'),
CleanWebpackPlugin = require('clean-webpack-plugin'),
Config = require('webpack-config').default;
module.exports = new Config().merge({
entry: {
app: './app/app.ts',
vendor: [
'angular'
]
},
output: {
path: './build',
... | mit |
stivalet/PHP-Vulnerability-test-suite | Injection/CWE_95/safe/CWE_95__proc_open__CAST-cast_float_sort_of__variable-sprintf_%d_simple_quote.php | 1550 | <?php
/*
Safe sample
input : use proc_open to read /tmp/tainted.txt
sanitize : cast via + = 0.0
construction : use of sprintf via a %d with simple quote
*/
/*Copyright 2015 Bertrand STIVALET
Permission is hereby granted, without written agreement or royalty fee, to
use, copy, modify, and distribute this software... | mit |
sekouperry/bemyeyes-backend | models/helper.rb | 3155 | class Helper < User
many :helper_request, :foreign_key => :helper_id, :class_name => "HelperRequest"
many :helper_points, :foreign_key => :user_id, :class_name => "HelperPoint"
many :request, :foreign_key => :request_id, :class_name => "Request"
key :user_level_id, ObjectId
belongs_to :user_level, :class_name... | mit |
coduo/php-matcher | src/Matcher/Pattern/Expander/Count.php | 1420 | <?php
declare(strict_types=1);
namespace Coduo\PHPMatcher\Matcher\Pattern\Expander;
use Coduo\PHPMatcher\Matcher\Pattern\PatternExpander;
use Coduo\ToString\StringConverter;
final class Count implements PatternExpander
{
use BacktraceBehavior;
/**
* @var string
*/
public const NAME = 'count';... | mit |
masakapanda/gifpaper | FormTestApp/ScribblePanel.cs | 7239 |
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
using System.Windows.Ink;
using Microsoft.Ink;
namespace GifPaper
{
public partial class ScribblePanel : UserControl
{
private Point m_lastPo... | mit |
koolkode/k2 | src/Manifest/Selector/PatternMatcher.php | 570 | <?php
/*
* This file is part of KoolKode K2.
*
* (c) Martin Schröder <m.schroeder2007@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace KoolKode\K2\Manifest\Selector;
class PatternMatcher implements MatcherInterface... | mit |
PaulNoth/hackerrank | practice/algorithms/strings/two_characters/solution.js | 1390 | process.stdin.resume();
process.stdin.setEncoding('ascii');
var input_stdin = "";
var input_stdin_array = "";
var input_currentline = 0;
process.stdin.on('data', function (data) {
input_stdin += data;
});
process.stdin.on('end', function () {
input_stdin_array = input_stdin.split("\n");
main();
});
... | mit |
Weisses/Ebonheart-Mods | ViesCraft/1.12.2 - 2655/src/main/java/com/viesis/viescraft/client/gui/airship/main/GuiMainMenu.java | 42269 | package com.viesis.viescraft.client.gui.airship.main;
import java.awt.Color;
import java.util.ArrayList;
import java.util.List;
import org.lwjgl.input.Keyboard;
import com.viesis.viescraft.api.EnumsVC;
import com.viesis.viescraft.api.GuiVC;
import com.viesis.viescraft.api.References;
import com.viesis.viescraft.api.... | mit |
mifarse/discrete-eltech | public/components/Toolbar.js | 9372 | import React, {Component} from 'react'
import SmartTable from './SmartTable'
export default class Toolbar extends Component {
toggle (e) {
$(e.target).parent().next().collapse('toggle');
}
componentDidMount() {
var input = this.refs.root.querySelector('#input'), // input/output button
... | mit |
Azure/azure-sdk-for-ruby | management/azure_mgmt_storage/lib/2019-06-01/generated/azure_mgmt_storage/models/resource.rb | 2296 | # 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::Storage::Mgmt::V2019_06_01
module Models
#
# Model object.
#
#
class Resource
include MsRestAzure
# @retur... | mit |
twilio/twilio-php | tests/Twilio/Integration/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOnTest.php | 10795 | <?php
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
namespace Twilio\Tests\Integration\Api\V2010\Account\IncomingPhoneNumber;
use Twilio\Exceptions\DeserializeException;
use Twilio\Exceptions\TwilioException;
use Twilio\Http\Response;
use Twilio\Tests\Ho... | mit |
stevenburgess/zfs-tests | MultiReceive.py | 2581 | import time
import datetime
import subprocess
import multiprocessing
import argparse
import TestConfig
import Configs
import ZfsApi
import Pid
import Common
import MonitorThread
import ReceiveThread
import Results
parser = argparse.ArgumentParser()
parser.add_argument('-v', '--verbose', action="store_true",
he... | mit |
VioletRose/Web-Code-Encyclopedia | index.php | 1237 | <?php
$PAGE_NAME = 'Home';
require_once($_SERVER["DOCUMENT_ROOT"].'/generichead.php');
?>
<main class="pure-u-1 pure-u-sm-19-24 pure-u-md-17-24 pure-u-lg-5-8 pure-u-xl-5-8">
<section>
<p>Welcome to Violet's Web Code Encyclopedia, a project I am working on to familiarize myself with coding in HTML, CSS,... | mit |
arpith/hamelin | components/App.js | 596 | import React from 'react';
import { IndexLink } from 'react-router';
import Search from './Search';
import ResultList from './ResultList';
class App extends React.Component {
render() {
const style = {
padding: 10,
fontFamily: 'Bebas Neue Bold',
fontSize: '2em',
lineHeight: 'inherit',
... | mit |
borgej/KsatFotball | KsatFotball/Constants/ContentDeliveryNetwork.cs | 1019 | namespace KsatFotball.Constants
{
public static class ContentDeliveryNetwork
{
public static class Google
{
public const string Domain = "ajax.googleapis.com";
public const string JQueryUrl = "//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js";
}
... | mit |
albertodiaz/open_list | src/OpenList/conf/app.php | 489 | <?php
$lists = include __DIR__.'/lists.php';
$config = [
'id' => 'basic-console',
'basePath' => dirname(__DIR__).'/../../',
'listsPath' => dirname(__DIR__).'/../../lists/',
'outputPath' => dirname(__DIR__).'/../../output/',
'controllerNamespace' => 'A... | mit |
ChrisHonniball/ember-github-blog | tests/unit/models/ember-github-blog-post-test.js | 340 | import { moduleForModel, test } from 'ember-qunit';
moduleForModel('ember-github-blog-post', 'Unit | Model | ember github blog post', {
// Specify the other units that are required for this test.
needs: []
});
test('it exists', function(assert) {
var model = this.subject();
// var store = this.store();
asse... | mit |
durden/dash | apps/codrspace/forms.py | 213 | from django import forms
from codrspace.models import Post, Media
class PostForm(forms.ModelForm):
class Meta:
model = Post
class MediaForm(forms.ModelForm):
class Meta:
model = Media | mit |
victorjaviermartin/cawd | app/src/main/java/com/victormartin/projectcawd/base/exception/ServerErrorException.java | 455 | package com.victormartin.projectcawd.base.exception;
public class ServerErrorException extends Exception {
public ServerErrorException() { }
public ServerErrorException(String detailMessage) {
super(detailMessage);
}
public ServerErrorException(String detailMessage, Throwable throwable) {
... | mit |
kbs0327/blog | src/nemiver_plugin/src/persp/dbgperspective/nmv-dbg-perspective-default-layout.cc | 6011 | //Author: Fabien Parent
/*
*This file is part of the Nemiver project
*
*Nemiver is free software; you can redistribute
*it and/or modify it under the terms of
*the GNU General Public License as published by the
*Free Software Foundation; either version 2,
*or (at your option) any later version.
*
*Nemiver is d... | mit |
panaut/pharmaPoll | Questionnaire.Data/Model/ECulture.cs | 345 | namespace Questionnaire.Data.Model
{
public enum ECulture
{
DEFAULT = 0,
en = 1,
sr = 2,
de = 3,
at = 4,
es = 5,
nl = 6,
gr = 7,
pt = 8,
pl = 9,
hu = 10,
tr = 11,
it = 12,
ru = 13,
be = 14,
... | mit |
Amaire/filmy | vendor/laravel/framework/src/Illuminate/Database/Query/Processors/SQLiteProcessor.php | 449 | <?php
namespace Illuminate\Database\Query\Processors;
class SQLiteProcessor extends Processor {
/**
* Process the results of a column listing query.
*
* @param array $results
* @return array
*/
public function processColumnListing($results) {
return array_values(array_map(f... | mit |
niajs/nia | src/test-core/forms-test.js | 5847 | describe('forms-test.js', function() {
function countKeys(map) {
var c = 0;
for (var key in map)
if (map.hasOwnProperty(key))
c++;
return c;
}
describe('.val()', function() {
it('handles inputs', function() {
assert.equal($("#id3_1").val(), 'ttt');
});
it('handles unchecked boxes', funct... | mit |
bdjnk/cerebral | demos/demo/src/components/Client/Input.js | 1692 | import React from 'react'
import {connect} from 'cerebral/react'
import {props, signal, state} from 'cerebral/tags'
import translations from '../../common/compute/translations'
export default connect(
{
enterPressed: signal`clients.enterPressed`,
escPressed: signal`clients.escPressed`,
value: state`clien... | mit |
Qu4tro/SolarSystemCG | src/engine/fTriple.cpp | 1569 | #include "fTriple.h"
fTriple::fTriple(){
x = 0;
y = 0;
z = 0;
}
fTriple::fTriple(const fTriple &t){
x = t.x;
y = t.y;
z = t.z;
}
fTriple::fTriple(float X, float Y, float Z){
x = X;
y = Y;
z = Z;
}
void fTriple::incr(fTriple t1){
x = x + t1.x;
y = y + t1.y;
z = z + t1.... | mit |
sachinkeshav/DesignPatterns | src/main/java/com/knight/designpatterns/creational/abstractfactory/color/Red.java | 196 | package com.knight.designpatterns.creational.abstractfactory.color;
public class Red implements Color {
@Override
public void fill() {
System.out.println("Inside Red::fill() method.");
}
}
| mit |
workofartyoga/downdog | src/client/src/app/person/person-route-config.ts | 745 | import { Routes } from '@angular/router';
import { PersonListComponent } from './person-list/person-list.component';
import { PersonFormComponent } from './person-form/person-form.component';
import { PersonComponent } from './person/person.component';
import { PersonDetailComponent } from './person-detail/person-detai... | mit |
dvla/vehicles-online | test/pages/disposal_of_vehicle/DisposeSuccessPage.scala | 1043 | package pages.disposal_of_vehicle
import org.openqa.selenium.WebDriver
import org.scalatest.selenium.WebBrowser
import WebBrowser.click
import WebBrowser.go
import WebBrowser.find
import WebBrowser.id
import WebBrowser.Element
import uk.gov.dvla.vehicles.presentation.common.helpers
import helpers.webbrowser.{Page, Web... | mit |
Great-Li-Xin/PythonDev | Games/resources/code/chap01/HelloPython.py | 23 | print("Hello Python")
| mit |
PRioritizer/PRioritizer-predictor | src/main/scala/learning/AuthorTracker.scala | 1910 | package learning
import ghtorrent.Schema.Tables
import git.{AuthorPullRequest, Commit}
import org.joda.time.DateTime
import scala.slick.driver.MySQLDriver.simple._
class AuthorTracker(repository: RepositoryTracker, username: String) {
implicit lazy val session = repository.session
lazy val ghAuthorId = getAutho... | mit |
jaredcosulich/mysixdegrees | public/javascripts/map.js | 6354 | $(function() {
var map;
var myMarker;
var markers = [];
var infoWindows = [];
function loadScript() {
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "http://maps.google.com/maps/api/js?sensor=false&callback=initializeMap";
document.body.appendChi... | mit |
cbrghostrider/Hacking | leetcode/266_palindromePermutation.cpp | 928 | // -------------------------------------------------------------------------------------
// Author: Sourabh S Joshi (cbrghostrider); Copyright - All rights reserved.
// For email, run on linux (perl v5.8.5):
// perl -e 'print pack "H*","736f75726162682e732e6a6f73686940676d61696c2e636f6d0... | mit |
pricelessbrewing/pricelessbrewing.github.io | BiabCalc/Calc/Beta3.js | 26872 | $(document).ready(function() {
var now = new Date();
var today = (now.getMonth() + 1) + '-' + now.getDate();
$('#Brewday').val(today);
});
$(document)
.one('focus.textarea', '.autoExpand', function() {
var savedValue = this.value;
this.value = '';
this.baseScrollHeight = this.scrollHeight;
this... | mit |
octoblu/redis-interval-work-queue | processqueue_test.go | 3509 | package main_test
import (
"time"
"github.com/garyburd/redigo/redis"
. "github.com/octoblu/redis-interval-work-queue"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
var _ = Describe("ProcessQueue", func() {
var redisConn redis.Conn
var sut ProcessQueue
BeforeEach(func() {
var err error
redisCo... | mit |
dennisdegreef/lonelypullrequests.com | tests/Infrastructure/Persistence/InMemoryPullRequestsRepositoryTest.php | 1648 | <?php
namespace LonelyPullRequests\Infrastructure\Persistence;
use LonelyPullRequests\Domain\PullRequest;
use PHPUnit_Framework_TestCase;
class InMemoryPullRequestsRepositoryTest extends PHPUnit_Framework_TestCase
{
/**
* @var InMemoryPullRequestsRepository
*/
private $repository;
public funct... | mit |
studware/Ange-Git | MyTelerikAcademyHomeWorks/DSA/HW4.DictHashTablesSets/T6.PhonesList/PhoneBook.cs | 2224 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Wintellect.PowerCollections;
namespace T6.PhonesList
{
class PhoneBook
{
private MultiDictionary<string, string> phoneBook = new MultiDictionary<string, string>(true);
public PhoneBook(string inputFile)
... | mit |
dstreet/microserv | index.browser.js | 53 | module.exports = {
Client: require('./lib/client')
} | mit |
sjdv1982/seamless | seamless/core/build_module.py | 14592 | from copy import deepcopy
import json
import re
import sys, os
import importlib
import tempfile
import pprint
import traceback
from types import ModuleType
from ..get_hash import get_dict_hash
from ..compiler.locks import locks, locklock
from ..compiler import compile, complete
from ..compiler.build_extension import bu... | mit |
adrianoGaspar/ags | app/cache/dev/twig/16/40/97429da24944d8926ea3b70be5a042510b74ce5d4130d8253c78e840d209.php | 1796 | <?php
/* FinanceiroBundle:Estado:new.html.twig */
class __TwigTemplate_164097429da24944d8926ea3b70be5a042510b74ce5d4130d8253c78e840d209 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 1
try {
$this->parent = $t... | mit |
Vidada-Project/Vidada | vidada/src/main/java/vlcj/factory/VlcDirectPlayerFactory.java | 160 | package vlcj.factory;
import uk.co.caprica.vlcj.player.MediaPlayerFactory;
public class VlcDirectPlayerFactory {
private MediaPlayerFactory factory;
}
| mit |
Azure/azure-sdk-for-java | sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ServiceBusTopicEventSubscriptionDestinationProperties.java | 3109 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.eventgrid.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.az... | mit |
intrepion/SymfonyProject-DdeboerDataImportBundle | app/AppKernel.php | 1413 | <?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\Sec... | mit |
priyankamackwan/fit.lara | app/Http/Controllers/TestNotificationController.php | 2800 | <?php
namespace App\Http\Controllers;
use App\Http\Requests;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Davibennun\LaravelPushNotification\Facades\PushNotification;
class TestNotificationController extends Controller
{
/**
* Create a new controller instance.
*
* @param ... | mit |
zordius/fluxex | extra/history.js | 219 | // This is a dummy file to include history API for client
// require('fluxex/extra/history') will be replaced with
// require('html5-history-api')
// check extra/gulpfile.js to see alias settings
// Search for aliasify
| mit |
trydalcoholic/opencart-materialize | source/opencart_3.0.x/upload/admin/controller/extension/theme/materialize.php | 58751 | <?php
class ControllerExtensionThemeMaterialize extends Controller {
private $error = array();
private $installed_from_url = HTTP_CATALOG;
public function install() {
$this->load->model('extension/materialize/materialize');
$this->load->model('user/user_group');
$this->load->model('setting/setting');
$this-... | mit |
sineochk/Softuni-courses | Programming Fundamentals - may 2017/Homeworks/3.1 Data types and variables/p07_ExchangeVarValues/Properties/AssemblyInfo.cs | 1413 | 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("p07... | mit |
pkthebud/node-stripe-membership-saas | server/middleware/view-helper.js | 294 | 'use strict';
var secrets = require('../config/secrets');
module.exports = function(req, res, next) {
res.locals.path = req.path;
res.locals.googleAnalytics = secrets.googleAnalytics;
res.locals.saasMultipass = secrets.sitename;
res.locals.hometitle = secrets.hometitle;
next();
};
| mit |
Mazdallier/Mariculture | src/main/java/joshie/mariculture/api/core/interfaces/INeighborNotify.java | 113 | package joshie.mariculture.api.core.interfaces;
public interface INeighborNotify {
public void recheck();
}
| mit |
PranishDutt/C-Sharp-Certification | C-Sharp-Certification/LINQConcepts/Properties/AssemblyInfo.cs | 1400 | 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("LI... | mit |
baskint/txo3mean | config/env/test.js | 1462 | 'use strict';
module.exports = {
db: 'mongodb://' + (process.env.DB_PORT_27017_TCP_ADDR || 'localhost') + '/txo3db-test',
http: {
port: 3001
},
logging: {
format: 'common'
},
app: {
name: 'MEAN - A Modern Stack - Test'
},
strategies: {
local: {
enabled: true
},
fac... | mit |
sasd13/symfony | src/MyWebsite/ProjectBundle/MyWebsiteProjectBundle.php | 140 | <?php
namespace MyWebsite\ProjectBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class MyWebsiteProjectBundle extends Bundle
{
}
| mit |
zvet80/TelerikAcademyHomework | 06.JS/06.Functions/Functions/02.ReverseNumber.js | 270 | //Problem 2. Reverse number
//Write a function that reverses the digits of given decimal number.
var num = 5986.3;
console.log(reverseNum(num));
function reverseNum(num) {
var rev = [];
rev = num.toString().split('').reverse();
return +(rev.join(''));
} | mit |
developerQuinnZ/this_will_work | student-work/ashley_riehl/week_2/day_1/working_with_csvs/geo_distance.py | 645 | # Using the Haversine formula for geographic Great Circle Distance
#
# As per https://en.wikipedia.org/wiki/Haversine_formula
from math import cos,radians,sin,pow,asin,sqrt
def distance(lat1, long1, lat2, long2):
radius = 6371 # radius of the earth in km, roughly https://en.wikipedia.org/wiki/Earth_radius
# ... | mit |
openteam/el_vfs | lib/el_finder_api/el_vfs/command/unpack_entry.rb | 88 | class ElVfs::Command::UnpackEntry < ElVfs::Command
register_in_connector :extract
end
| mit |
centrevillage/synvert-snippets | spec/ruby/parallel_assignment_to_sequential_assignment_spec.rb | 628 | require 'spec_helper'
RSpec.describe 'Ruby converts parallel assignment to sequential assignment' do
before do
rewriter_path = File.join(File.dirname(__FILE__), '../../lib/ruby/parallel_assignment_to_sequential_assignment.rb')
@rewriter = eval(File.read(rewriter_path))
end
describe 'with fakefs', fakefs... | mit |
mongator/behaviors | tests/Model/ArchivableInsertQuery.php | 152 | <?php
namespace Model;
/**
* Query of Model\ArchivableInsert document.
*/
class ArchivableInsertQuery extends \Model\Base\ArchivableInsertQuery
{
}
| mit |
m0baxter/tic-tac-toe-AI | pyVers/board.py | 2816 |
class Board(object):
def __init__(self):
self.squares = [ " ", " ", " ", " ", " ", " ", " ", " ", " " ]
def showBoard(self):
"""Converts the board to a string for displaying purposes."""
brd = "\n | | \n" + \
" " + self.squares[0] + " | " + sel... | mit |
nobita2811/myblog | application/views/admin/user/edit.php | 487 | <div class="container">
<h4>Thêm mới nhóm chuyên mục</h4>
<form action="<?php echo $action; ?>" method="POST">
<div class="form-group col-xs-6">
<label for="exampleCatName">Tên</label>
<input name="name" placeholder="<?= $category->getName() ?>" type="text" class="form-control " ... | mit |
aergonaut/LifeAquatic | src/main/scala/com/aergonaut/lib/gui/container/ContainerBase.scala | 633 | package com.aergonaut.lib.gui.container
import net.minecraft.entity.player.InventoryPlayer
import net.minecraft.inventory.{Container, Slot}
abstract class ContainerBase extends Container {
protected def addPlayerSlots(inventoryPlayer: InventoryPlayer, x: Int, y: Int): Unit = {
// add slots for player inventory
... | mit |
binig/Goose | src/main/java/org/bin2/goose/MvcWebConfig.java | 920 | package org.bin2.goose;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;
import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer;
import org.springfram... | mit |
aotarola/x-twit-plus | app/src/main/java/com/codepath/apps/mysimpletweets/activities/TimelineActivity.java | 4827 | package com.codepath.apps.mysimpletweets.activities;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.view.ViewPager;
import android.support.v7.ap... | mit |
slolam/XecMe | src/Core/Configuration/ParallelTaskRunnerElement.cs | 6540 | using System;
using System.Collections.Generic;
using System.Text;
using XecMe.Core.Tasks;
using XecMe.Core.Utils;
using System.Configuration;
using System.Diagnostics;
using XecMe.Common.Diagnostics;
namespace XecMe.Core.Configuration
{
/// <summary>
/// Type to read the Task Runner configuration
/// </s... | mit |
fanwenqi/admin | view/welcome/show.php | 1249 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<input type="button" name="photo" id="photo" value="test一下" />
<img src="" id="show_img"/>
</body>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script src="http://libs.baidu.com... | mit |
dgladkov/arcomage.js | src/actions/card.js | 2985 | import * as types from '../constants/ActionTypes';
export function changeOpponentBricks(value) {
return {
type: types.CHANGE_BRICKS,
actor: 'opponent',
value,
};
}
export function changePlayerBricks(value) {
return {
type: types.CHANGE_BRICKS,
actor: 'player',
value,
};
}
export funct... | mit |
WeihanLi/WeihanLi.Common | src/WeihanLi.Common/Aspect/FluentAspectOptions.cs | 743 | namespace WeihanLi.Common.Aspect;
public sealed class FluentAspectOptions
{
public readonly Dictionary<Func<IInvocation, bool>, IInterceptionConfiguration> InterceptionConfigurations = new();
private IInterceptorResolver _interceptorResolver = FluentConfigInterceptorResolver.Instance;
public HashSet<Func... | mit |
galaxyproject/gravity | gravity/commands/cmd_rename.py | 596 | import click
from gravity import config_manager
from gravity import options
from gravity.io import error
@click.command("reregister")
@options.required_config_arg(name="old_config")
@options.required_config_arg(name="new_config", exists=True)
@click.pass_context
def cli(ctx, old_config, new_config):
"""Update pa... | mit |
chriscook/visual-accessibility | jquery.visualAccessibility.js | 1913 | /*
* Visual Accessibility jQuery Plugin version 1.0
* Chris Cook - chris@chris-cook.co.uk
*/
(function ($) {
$.fn.visualAccessibility = function (options) {
var settings = $.extend({
textSize : true,
colourSchemes : [{
background : '#FFFFFF',
text : '#000000'
}, {
background: '#000000',
... | mit |
robsonbittencourt/fixture-generator | src/test/java/com/utility/generator/base/clazz/ServicePerson.java | 317 | package com.utility.generator.base.clazz;
public class ServicePerson {
private int age;
private String name;
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
| mit |
ConsenSys/truffle | packages/db-kit/src/cli/components/codec/Function.tsx | 1259 | import React from "react";
import { Box, Newline, Text } from "ink";
import type { Transaction, TransactionReceipt } from "web3-core";
import type { FunctionDecoding } from "@truffle/codec";
import { DefinitionList } from "@truffle/db-kit/cli/components/DefinitionList";
import { Arguments } from "./Arguments";
expor... | mit |
mrsan22/Angular-Flask-Docker-Skeleton | server/tests/test_config.py | 1602 | # -*- coding: utf-8 -*-
"""Unittest for testing app configs"""
import unittest
from flask import current_app
from server.main.api import create_app_blueprint
from server.tests.base import BaseTestCase
class TestDevelopmentConfig(BaseTestCase):
"""Class to test dev app configs"""
def create_app(self):
... | mit |
FinalLevel/android-cphm | src/main/java/com/finallevel/cphm/BaseColumns.java | 187 | package com.finallevel.cphm;
@SuppressWarnings("unused")
public class BaseColumns
{
public static final String CN_ID = "_id";
public static final int CI_ID = 0;
// public long _id;
}
| mit |
framefield/vr-annotate | Assets/vendor/PunchKeyboard/Scripts/KeyboardEnabler.cs | 3897 | using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
namespace ff.vr.interaction
{
/* Switch to virtual keyboard mode if one of the controllers
comes too close to to PunchKeyboard.
*/
public class KeyboardEn... | mit |
rkoval/order-me-pizza | lib/routes.js | 2696 | const _ = require('lodash');
const moment = require('moment');
const config = require('config');
const pizzaService = require('./pizzaService');
const paymentService = require('./paymentService');
const isDev = process.env.NODE_ENV !== 'production';
const retrieveIndex = (req, res, next) => {
return new Promise((re... | mit |
watanabe-kazunori/New_EC-Site | vendor/bundle/ruby/2.1.0/gems/composite_primary_keys-8.1.2/test/test_optimistic.rb | 471 | require File.expand_path('../abstract_unit', __FILE__)
class TestOptimisitic < ActiveSupport::TestCase
fixtures :restaurants
def test_update_with_stale_error
restaurant_1 = Restaurant.find([1, 1])
restaurant_1['name'] = "McDonalds renamed"
restaurant_2 = Restaurant.find([1, 1])
restaurant_2['name... | mit |
reizist/ec2iam | lib/ec2iam/iam_config.rb | 1596 | require 'yaml'
module Ec2Iam
class AccountKeyNotFound < StandardError; end
class IamConfig
attr_reader :iam, :group, :profile
GROUP_NAME = 'EC2ReadOnly'
CONFIG = YAML.load_file(File.join(Dir.home, '.aws/iam')).freeze
def initialize(account_key)
@profile = account_key
raise AccountKeyNo... | mit |
Incognitus-Io/ngFeatureFlags | src/main.ts | 310 | import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { DarkLumosFeatureFlagsModule } from './ngFeatureFlag/dark-lumos-feature-flags.module';
enableProdMode();
platformBrowserDynamic().bootstrapModule(DarkLumosFeatureFlagsModule);
| mit |
ivanpy/ijdomingo-api | routers/asistenciaRoute.js | 725 | 'use stritc'
var express = require('express');
var asistenciaController = require('../controllers/asistenciaController');
var router = express.Router();
//Ruta para buscar por el id del asistencia
router.get('/asistencia/:id', asistenciaController.buscarAsistenciaPorId);
//Ruta para agregar asistencia
router.post('/... | mit |