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 |
|---|---|---|---|---|---|
๏ปฟ
var report_test_url = "reports\\BSV_GC_n_08_du_22_octobre_2013.pdf";
var report_dir = "files/";
var report_extension = ".pdf";
/***************************************************************************************************************************/
/* report_panel */
function report_panel(panel, report_panel){/... | win-stub/PestObserver | web/scripts/report_panel.js | JavaScript | mit | 11,254 |
// LICENSE
package com.forgedui.editor.edit;
import java.beans.PropertyChangeEvent;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.draw2d.geometry.Rectangle;
import org.eclipse.gef.commands.Command;
import org.eclipse.gef.requests.CreateRequest;
import com.forgedui.editor.GUIEditorPlugin;
impo... | ShoukriKattan/ForgedUI-Eclipse | com.forgedui.editor/src/com/forgedui/editor/edit/TableViewEditPart.java | Java | mit | 4,096 |
๏ปฟ/*
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'about', 'pt-br', {
copy: 'Copyright © $1. Todos os direitos reservados.',
dlgTitle: 'Sobre o CKEditor 4',
moreInfo... | otto-torino/gino | ckeditor/plugins/about/lang/pt-br.js | JavaScript | mit | 400 |
package com.daviancorp.android.data.database;
import android.database.Cursor;
import android.database.CursorWrapper;
import com.daviancorp.android.data.classes.Location;
/**
* A convenience class to wrap a cursor that returns rows from the "locations"
* table. The {@link getLocation()} method will give you a Locat... | dbooga/MonsterHunter3UDatabase | MonsterHunter3UDatabase/src/com/daviancorp/android/data/database/LocationCursor.java | Java | mit | 1,054 |
<div class="col-md-2">
</div>
<div class="col-md-8" style="margin-top: 2%;">
<?php if(isset($editar)){ echo form_open('Pacientes/savePaciente'); }else{ echo form_open('Pacientes/addPaciente'); } ?>
<div class="panel panel-info">
<div class="panel-heading">
<center>
<li clas... | nykteus/Consultorio | application/views/Contenido/frmAddPaciente.php | PHP | mit | 4,871 |
var bind = require('bind');
var debug = require('debug')('uj:app');
var Entity = require('./entity');
var inherit = require('inherit');
/**
* Initialize a new `App` with `options`.
*
* @param {Object} options
*/
function App (options) {
this.defaults = {}
this.debug = debug;
Entity.call(this, options);
}
... | prateekbhatt/userjoy | apps/cdn/lib/app.js | JavaScript | mit | 655 |
//================================================================
// RS_ChangeWindowTextColorSafely.js
// ---------------------------------------------------------------
// The MIT License
// Copyright (c) 2017 biud436
// ---------------------------------------------------------------
// Free for commercial and non co... | biud436/MV | RS_ChangeWindowTextColorSafely.js | JavaScript | mit | 4,574 |
// -----------------------------------------------------------
//
// This file was generated, please do not modify.
//
// -----------------------------------------------------------
namespace EmptyKeys.UserInterface.Generated {
using System;
using System.CodeDom.Compiler;
using System.Collections.Objec... | EmptyKeys/UI_Examples | BasicUI_Xenko/BasicUI_Xenko/BasicUI_Xenko.UserInterface/GeneratedUI/Dictionary.xaml.cs | C# | mit | 7,744 |
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (fuzz test support)
| | |__ | | | | | | version 2.1.0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
This file implements a parser test suitable for fuzz testing. Given a byte
array data, it performs the following steps:
- ... | stanmihai4/json | test/src/fuzzer-parse_json.cpp | C++ | mit | 1,608 |
'use strict';
var defaultEnvConfig = require('./default');
module.exports = {
db: {
uri: process.env.MONGOHQ_URL || process.env.MONGODB_URI || 'mongodb://' + (process.env.DB_1_PORT_27017_TCP_ADDR || 'localhost') + '/flipflop-test',
options: {
user: '',
pass: ''
},
// Enable mongoose debu... | tonymullen/flipflop | config/env/test.js | JavaScript | mit | 3,286 |
package bp.details;
import javax.swing.JLabel;
import javax.swing.JSpinner;
import javax.swing.SpinnerModel;
import javax.swing.SpinnerNumberModel;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
import bp.model.data.Gateway;
import bp.model.util.BPKeyWords;
import bp.model.u... | farkas-arpad/KROKI-mockup-tool | BusinessProcessModelingTool/src/bp/details/GatewayDetails.java | Java | mit | 2,214 |
<?php
/**
* @file
* Template para o tipo de conteรบdo relato dos profissionais do DAB relato_de_experi_ncia_dab_curado
*/
$relato_link = url(drupal_get_path_alias('node/' . $node->nid), array('absolute' => TRUE));
?>
<div id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?> clearfix"<?php print $at... | ABS-org/cdp_strap | theme/nodes/node--relato_de_experi_ncia_dab_curado.tpl.php | PHP | mit | 2,642 |
๏ปฟ// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Graphics.... | naoey/osu | osu.Game.Rulesets.Osu/Mods/OsuModBlinds.cs | C# | mit | 7,835 |
#!/hpf/largeprojects/ccmbio/naumenko/tools/bcbio/anaconda/bin/python
"""
Looks for a specific sample
"""
import re
import sys
import os
import os.path
sample = sys.argv[1]
family,sample_only = sample.split("_")
match = re.match('\d*',family)
if match:
prefix=str(int(match.group(0))/100)
report_path = pref... | naumenko-sa/cre | cre.locate_sample.py | Python | mit | 895 |
# -*- coding: utf-8 -*-
"""
Date: 2/2/2017
Team: Satoshi Nakamoto
@Authors: Alex Levering and Hector Muro
Non-standard dependencies:
* Twython
* NLTK
* Folium
* Geocoder
* psycopg2
TO DO BEFOREHAND:
The following steps are non-automatable and have to be performed manually.
* Have the NLTK vader lexicon locally (nltk... | SatoshiNakamotoGeoscripting/SatoshiNakamotoGeoscripting | Final_assignment/main.py | Python | mit | 2,489 |
require 'swing_support/extensions'
module SwingSupport
# Class that implements ActionListener interface around a given block
class ActionListener
java_implements java.awt.event.ActionListener
def initialize &block
@listener_block = block
end
java_signature 'public void actionPerformed(Actio... | arvicco/swing | lib/swing_support/action_listener.rb | Ruby | mit | 491 |
import { Component, OnInit, Input } from '@angular/core';
import { LoadingController, NavController } from 'ionic-angular';
import { Geolocation } from 'ionic-native';
import { Observable } from 'rxjs/Observable';
import { OriginLocationComponent } from '../origin-location/origin-location';
// import { AvailableProvide... | RNATA/services-ionic | src/components/google-map/google-map.ts | TypeScript | mit | 2,461 |
๏ปฟusing System.Collections.Generic;
using System.Linq;
namespace NeuralNetwork
{
struct ForwardPropagationResult
{
public List<List<double>> Sums { get; }
public List<List<double>> Activations { get; }
public int Prediction { get; }
public ForwardPropagationResult(List<List<do... | andreimuntean/NeuralNetwork | NeuralNetwork/NeuralNetwork/ForwardPropagationResult.cs | C# | mit | 616 |
'use strict';
const { messages, ruleName } = require('..');
testRule({
ruleName,
config: [
{
border: 2,
'/^margin/': 1,
},
],
accept: [
{
code: 'a { margin: 0; }',
},
{
code: 'a { margin: 1px; }',
},
{
code: 'a { margin: var(--foo); }',
description: 'deals with CSS variables',
... | stylelint/stylelint | lib/rules/declaration-property-max-values/__tests__/index.js | JavaScript | mit | 1,491 |
<?php
/*
Copyright 2015 Lcf.vs
-
Released under the MIT license
-
https://github.com/Lcfvs/DOMArch
*/
namespace DOMArch\Url;
use DOMArch\Config;
use DOMArch\Constants;
use DOMArch\Crypto;
use DOMArch\Url;
class Encrypted extends Url
{
public static function parse($str)
{
$url = parent::parse($str);... | dom-arch/dom-arch | lib/Url/Encrypted/Encrypted.php | PHP | mit | 715 |
<?php
namespace Rebase\BigvBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Rebase\BigvBundle\Entity\Game;
/**
* Rebase\BigvBundle\Entity\Slot
*
* @ORM\Table()
* @ORM\Entity
*/
class Slot
{
/**
* @var integer $id
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
... | daemonl/fxm | src/Rebase/BigvBundle/Entity/Slot.php | PHP | mit | 3,896 |
// Regular expression that matches all symbols in the `Kaithi` script as per Unicode v6.0.0:
/\uD804[\uDC80-\uDCC1]/; | mathiasbynens/unicode-data | 6.0.0/scripts/Kaithi-regex.js | JavaScript | mit | 117 |
๏ปฟusing School.Domain.Models;
namespace School.Domain.Contracts.Repositories
{
public interface IUserRepository : IRepository<User>
{
User GetByIdWithProperties(int id);
User Authenticate(string username, string password);
User GetByRefreshTokenId(string refreshTokenId);
}
}
| mersocarlin/school-web-api | School/School.Domain/Contracts/Repositories/IUserRepository.cs | C# | mit | 314 |
package com.cmput402w2016.t1.webapi.handler;
import com.cmput402w2016.t1.data.Segment;
import com.cmput402w2016.t1.webapi.Helper;
import com.cmput402w2016.t1.webapi.WebApi;
import com.sun.net.httpserver.HttpExchange;
import com.sun.net.httpserver.HttpHandler;
import java.util.Map;
/**
* Handler for the /segment web... | cmput402w2016/CMPUT402W16T1 | MapCore/src/main/java/com/cmput402w2016/t1/webapi/handler/SegmentHandler.java | Java | mit | 2,216 |
<div class="row">
<div class="col-lg-12">
<form method="post" action="<?php echo site_url('admin/pages/save'); ?>">
<input type="hidden" name="id" value="<?php echo !empty($page) ? $page->id : ''; ?>"/>
<section class="panel">
<header class="panel-heading"><span
... | nguyentrannhatrang/thoitrangchobe | application/views/admin/page.php | PHP | mit | 1,628 |
package com.swfarm.biz.chain.bo;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Random;
import com.swfarm.pub.framework.FormNumberCache;
public class JobExecutionState implements Serializable {
private Long id;
private String jobName;
private String jobInstanceName;
... | zhangqiang110/my4j | pms/src/main/java/com/swfarm/biz/chain/bo/JobExecutionState.java | Java | mit | 2,105 |
import React from 'react';
import HomeLayout from '../layouts/HomeLayout';
import BookEditor from '../components/BookEditor';
import { get } from '../utils/request';
class BookEdit extends React.Component {
constructor(props) {
super(props);
this.state = {
book: null
};
}
... | prodigalyijun/demo-by-antd | src/pages/BookEdit.js | JavaScript | mit | 829 |
package jasm
const header = `
function jasm(stdlib, foreign, heap) {
"use asm";
var pc = 0; // pseudo program counter
var sp = 0; // stack pointer
var ret = 0; // return address, for jal
var r0 = 0, r1 = 0, r2 = 0, r3 = 0; // general purpose 32-bit registers
var f0 = 0.0, f1 = 0.0, ... | h8liu/xlang | jasm/header.go | GO | mit | 2,400 |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Gamblr developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "overviewpage.h"
#include "ui_overviewpage.h"
#include "bitcoinunit... | knolza/gamblr | src/qt/overviewpage.cpp | C++ | mit | 19,463 |
var Peer = require('../lib/Peer');
var Connection = require('../lib/Connection');
var dns = require('dns');
// get a peer from dns seed
dns.resolve('dnsseed.bluematt.me', function(err, seeds) {
// use the first peer
var peer = new Peer(seeds[0], 8608);
//Custom peer:
//var peer = new Peer('180.15... | Bushstar/bitcore | examples/ConnectionTor.js | JavaScript | mit | 1,072 |
require 'raven'
# This file gets copied to shared/configs and linked from
# config/initializers/raven.rb at deployment by capistrano.
Raven.configure do |config|
# Replace this URL with the one provided by getsentry.
config.dsn = 'https://9ee5c448b2dc42be81448b502b164820:59004b5ea4b545f5af58d310a3802ea8@app.getse... | Swirrl/digitalsocial | config/initializers/raven_production_example.rb | Ruby | mit | 340 |
import gzip
import glob
import numpy as np
import pandas as pd
from scipy.stats import pearsonr
from scipy.stats import spearmanr
def get_num_lines_gz(filename):
num_lines = 0
with gzip.open(filename, "r") as fp:
for line in fp:
num_lines += 1
return num_lines
def main():
... | vervacity/ggr-project | scripts/data_qc/summarize_chipseq_qc.py | Python | mit | 4,085 |
interface IEmploymentSkill {
name: string;
}
export default IEmploymentSkill;
| borkovskij/scheduleGrsu | src/app/models/employmentSkill.ts | TypeScript | mit | 81 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.avs.implementation;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.co... | Azure/azure-sdk-for-java | sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/PlacementPoliciesImpl.java | Java | mit | 11,094 |
// The MIT License (MIT)
//
// Copyright (c) Andrew Armstrong/FacticiusVir 2020
//
// 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 r... | FacticiusVir/SharpVk | src/SharpVk/Interop/Multivendor/PhysicalDevicePCIBusInfoProperties.gen.cs | C# | mit | 2,270 |
student_phoneNumber_name = {1: 'a', 3: 'c', 2: 'b'}
def Handler() :
while (1) :
choice = eval(input("Enter :\t 1 - to search student name \n \t 2 - to insert new student record \n \t 0 - to quit\n"))
print(choice)
if (choice == 1) :
if (student_phoneNumber_name) :
phone_number = input("Enter student's p... | ajitghz582/PythonLearning | DAY_1_ASSIGNMENTS/1_name_phone_number.py | Python | mit | 1,070 |
import {Utils} from "../service/Utils";
Template.registerHelper(
"displayHours", function (date) {
return new moment(date).format("H[h]");
}
);
Template.registerHelper(
"displayHoursMinute", function (date) {
return new moment(date).format("H[h]mm");
}
);
Template.registerHelper(
"displayHoursMinuteS... | assomaker/manifmaker | app/client/helpers-events/global-helpers.js | JavaScript | mit | 3,295 |
// +build windows
package sers
// taken from https://github.com/tarm/goserial
// and slightly modified
// (C) 2011, 2012 Tarmigan Casebolt, Benjamin Siegert, Michael Meier
// All rights reserved.
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
import (
"fmt"... | capnm/termzero | src/termzero/sers/sers_windows.go | GO | mit | 8,070 |
<?php
namespace Soy\Phinx;
use League\CLImate\CLImate;
use Soy\Task\CliTask;
class CreateTask extends CliTask
{
use ConfigTrait;
/**
* @var string
*/
protected $name;
/**
* @param CLImate $climate
* @param Config $config
*/
public function __construct(CLImate $climate, ... | soy-php/phinx-task | src/Soy/Phinx/CreateTask.php | PHP | mit | 1,041 |
"use strict";
/*
* Copyright (c) 2013-2019 Bert Freudenberg
*
* 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... | bertfreudenberg/SqueakJS | vm.plugins.scratch.browser.js | JavaScript | mit | 2,534 |
<?php
/* TwigBundle:Exception:traces.html.twig */
class __TwigTemplate_172db66ae695714ab527ff22427d903f9649fdf96e97dbc795a82cac4ba36f2f extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(... | Alexandrovic/WebSmartravel | app/cache/dev/twig/17/2d/b66ae695714ab527ff22427d903f9649fdf96e97dbc795a82cac4ba36f2f.php | PHP | mit | 6,030 |
<?php
namespace CallFire\Common\Resource;
class RetryResults extends AbstractResource
{
}
| CallFire/CallFire-PHP-SDK | src/CallFire/Common/Resource/RetryResults.php | PHP | mit | 93 |
const React = require('react');
const { ViewPropTypes } = ReactNative = require('react-native');
const {
View,
Animated,
StyleSheet,
ScrollView,
Text,
Platform,
Dimensions,
I18nManager
} = ReactNative;
const Button = require('./Button');
//import { PropTypes } from 'react'
const WINDOW_WIDTH = Dimensi... | jackuhan/react-native-viewpager-indicator | ScrollableTabBar.js | JavaScript | mit | 8,319 |
๏ปฟ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... | biohazard999/XafMVVM | src/XMVVM/XMVVM.ExpressApp.Demos/XMVVM.ExpressApp.Demos.Module.Win/Properties/AssemblyInfo.cs | C# | mit | 1,201 |
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the... | brandon-bailey/osdms | assets/webodf/programs/cordova/platforms/android/src/org/webodf/WebODF.java | Java | mit | 1,303 |
๏ปฟusing System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using System.Threading.Tasks;
using Windows.ApplicationModel;
using Windows.ApplicationModel.Activation;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows... | murlokswarm/windows | native/murlok-uwp/App.xaml.cs | C# | mit | 4,543 |
<?php
namespace jk204\SIMalliance\ASN1\FileSystem;
use FG\ASN1\Universal\OctetString;
class filePath extends OctetString
{
} | jk204/sim-profile-asn1 | src/jk204/SIMalliance/ASN1/FileSystem/filePath.php | PHP | mit | 128 |
class ExercisesController < ApplicationController
load_and_authorize_resource
before_action :set_exercise, only: [:show, :edit, :update, :destroy]
respond_to :html
def index
@exercises = Exercise.all
respond_with(@exercises)
end
def show
respond_with(@exercise)
end
def new
@exercise... | project-awesome/pa-skills-oauth-cancan | app/controllers/exercises_controller.rb | Ruby | mit | 837 |
/*
Copyright (c) 2015 - 2021 Advanced Micro Devices, Inc. All rights reserved.
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, c... | ROCm-Developer-Tools/HIP | tests/src/nvcc/Device/hipDeviceGetAttribute.cpp | C++ | mit | 1,836 |
<?php
namespace Oro\Bundle\FlexibleEntityBundle\AttributeType;
use Oro\Bundle\FlexibleEntityBundle\AttributeType\AbstractAttributeType;
use Oro\Bundle\FlexibleEntityBundle\Model\FlexibleValueInterface;
/**
* Datetime attribute type
*/
class DateTimeType extends AbstractAttributeType
{
/**
* {@inheritdoc}
... | umpirsky/platform | src/Oro/Bundle/FlexibleEntityBundle/AttributeType/DateTimeType.php | PHP | mit | 716 |
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Linq;
namespace T2rkus.Spark.Core.Cli
{
public class CommandOption
{
publi... | T2RKUS/Spark | T2rkus.Spark/T2rkus.Spark.Core.Cli/T2rkus.Spark.Core.Cli/Parser/CommandOption.cs | C# | mit | 3,607 |
/*
* This file is part of jGui API, licensed under the MIT License (MIT).
*
* Copyright (c) 2016 johni0702 <https://github.com/johni0702>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softw... | ReplayMod/jGui | src/main/java/de/johni0702/minecraft/gui/element/AbstractGuiElement.java | Java | mit | 6,656 |
var expect = require('chai').expect,
sinon = require('sinon'),
EventEmitter = require('../src/EventEmitter');
describe('EventEmitter tests', function() {
var emitter,
foo,
bar;
beforeEach(function() {
emitter = new EventEmitter();
foo = sinon.spy();
bar = sinon... | jimgswang/EventEmitter | test/EventEmitter.test.js | JavaScript | mit | 8,204 |
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
# since you don't have to restart the web serv... | mdibaiee/pack | config/environments/development.rb | Ruby | mit | 1,718 |
/*
* Copyright (C) 2008 Apple Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... | buglloc/ios-debug-proxy-devtools | profiler/ProfilesPanel.js | JavaScript | mit | 42,236 |
//=============================================================================
// Darken Region
// LAX_DarkenRegion.js
// v0.02
//=============================================================================
//=============================================================================
/*:
* @plugindesc v0.02 Use ... | LuciusAxelrod/LAX_Plugins | LAX_DarkenRegion/v0.02/LAX_DarkenRegion.js | JavaScript | mit | 6,112 |
"use strict";
(function() {
function get_promise(endpoint) {
return function($http) {
return $http.get(endpoint);
};
}
angular.module('pagerbot-admin', ['ngRoute', 'ngTable', 'angular-loading-bar'])
.config(function ($routeProvider) {
$routeProvider
.when('/intro', {
te... | stripe-contrib/pagerbot | public/js/app.js | JavaScript | mit | 1,579 |
<?php
/**
* AAddress filter form.
*
* @package alumni
* @subpackage filter
* @author E.R. Nurwijayadi
* @version 1.0
*/
class AAddressFormFilter extends BaseAAddressFormFilter
{
/**
* @see AddressFormFilter
*/
static protected $order_by_choices = array(
null => '',
6 => 'ID',
21 => 'N... | epsi-rns/AlumniBook-SF | lib/filter/doctrine/AAddressFormFilter.class.php | PHP | mit | 2,921 |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class DailySeedAndCleanup extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('featured_games... | sporchia/alttp_vt_randomizer | database/migrations/2017_11_17_174259_daily_seed_and_cleanup.php | PHP | mit | 972 |
<?php
namespace GEPedag\EntidadesBundle\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use GEPedag\EntidadesBundle\Entity\Asi... | yanpozka/management-system-symfony | src/GEPedag/EntidadesBundle/Controller/AsignaturaController.php | PHP | mit | 4,996 |
""" Tests for Dynamo3 """
import sys
import unittest
from decimal import Decimal
from pickle import dumps, loads
from urllib.parse import urlparse
from botocore.exceptions import ClientError
from mock import ANY, MagicMock, patch
from dynamo3 import (
Binary,
Dynamizer,
DynamoDBConnection,
DynamoDBEr... | stevearc/dynamo3 | tests/__init__.py | Python | mit | 22,100 |
๏ปฟ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("02... | DimitarGaydardzhiev/TelerikAcademy | 03. OOP/02. Defining-Classes-Part-2-Static-Members-Generics/02.StaticReadOnlyField/Properties/AssemblyInfo.cs | C# | mit | 1,420 |
Alchemy sentiment analysis: fb12d2c55fff36e1e268584e261b6b010b37279f
Africa Is Talking: 676dbd926bbb04fa69ce90ee81d3f5ffee2692aaf80eb5793bd70fe93e77dc2e
| crakama/bc_7_twitment | keys.py | Python | mit | 156 |
module.exports = {
project: {
server: {
basePath: '',
ip: '0.0.0.0',
request: {
sesskey: 'sid',
limit: 5000,
parameters: 60
},
render: 'swig',
path: {
routes: 'app/routes',
views: 'app/views',
public: 'public/',
docs: fals... | PearlVentures/Crux | boilerplate/server/config.js | JavaScript | mit | 699 |
<?php
namespace RedMedica\ConsultasBundle\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
use RedMedica\ConsultasBundle\Entity\Article;
use FOS\ElasticaBundle\Configuration\Search;
/**
* Category
*
* @ORM\Table(name="category")
* @ORM\Entity()
* @Search(repositoryClass=... | dysan1376/hospi | src/RedMedica/ConsultasBundle/Entity/Category.php | PHP | mit | 1,682 |
import React from "react";
import styled from 'styled-components'
import Link from './link';
const nextArrow = "/icons/next-arrow.png";
const prevArrow = "/icons/prev-arrow.png";
const PatternLink = styled.span`
width: 100%;
display: flex;
flex-direction: column;
padding: 1em;
float: ${props => props.previo... | redfieldstefan/kibaktile.com | src/components/next-prev-pattern.js | JavaScript | mit | 1,640 |
#!/usr/bin/node --harmony
'use strict'
const noble = require('noble'),
program = require('commander')
program
.version('0.0.1')
.option('-p, --prefix <integer>', 'Manufacturer identifier prefixed to all fan commands', parseInt)
.option('-t, --target [mac]', 'MAC address of devices to target', function(val){ ... | zwaldowski/homebridge-satellite-fan | test/poc.js | JavaScript | mit | 5,557 |
const HEX_SHORT = /^#([a-fA-F0-9]{3})$/;
const HEX = /^#([a-fA-F0-9]{6})$/;
function roundColors(obj, round) {
if (!round) return obj;
const o = {};
for (let k in obj) {
o[k] = Math.round(obj[k]);
}
return o;
}
function hasProp(obj, key) {
return obj.hasOwnProperty(key);
}
function isRgb(obj) {
re... | tsuyoshiwada/color-classifier | src/utils/color.js | JavaScript | mit | 3,342 |
export { default } from 'ember-validation/components/ember-validation-error-list';
| ajile/ember-validation | app/components/ember-validation-error-list.js | JavaScript | mit | 83 |
/*global window */
/**
* @license countdown.js v2.5.2 http://countdownjs.org
* Copyright (c)2006-2014 Stephen M. McKamey.
* Licensed under The MIT License.
*/
/*jshint bitwise:false */
/**
* @public
* @type {Object|null}
*/
var module;
/**
* API entry
* @public
* @param {function(Object)|Date|number} start ... | entpy/beauty-and-pics | beauty_and_pics/website/static/website/js/vendor/countdown.js | JavaScript | mit | 27,520 |
var formMode="detail"; /*formMode ้กต้ขๆจกๅผ ้กต้ขๆไธ็งๆจกๅผ detail add modify*/
var panelType="form"; /*panelType ้ขๆฟ็ฑปๅ form่กจๅ search ๆฅ่ฏข child ไป่กจๅฏน่ฑก*/
var editIndex = undefined; /*datagrid ็ผ่พๅฏน่ฑก็่กๅท*/
var dg1EditIndex = undefined;
var objName=label.objName; /*้กต้ข็ฎก็ๅฏน่ฑกๅ็งฐ*/
var lblDetailStr=label.detailStr; /*ๅจไธๅ็่ฏญ็งไธๅบ่ฏฅไธๅ*/
var lbl... | ldjking/wbscreen | web/wb/2tp/template/js/common/copy/a3.js | JavaScript | mit | 9,914 |
/*
* Jermit
*
* The MIT License (MIT)
*
* Copyright (C) 2018 Kevin Lamonte
*
* 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 ... | klamonte/jermit | src/jermit/protocol/zmodem/ZEofHeader.java | Java | mit | 2,504 |
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class FormLoader {
public static String connectionString = "jdbc:hsqldb:file:db-data/teamsandplayers";
static Connection con;
public static void main(String[] args) throws Exception {
try {
Class.forName("org.hsq... | a-r-d/java-1-class-demos | jframe-actionlistener-access-db-cxn/homework-start/Week13Assignment10/src/FormLoader.java | Java | mit | 788 |
#!/usr/bin/env python3
"""
Categorize and analyze user sessions.
Read in ecfs_obfuscated_filtered.gz file, output some fancy results.
"""
from collections import defaultdict
from collections import Counter
import sys
import time
import os
import resource
import json
import fnmatch
from pipes import Pipes
impo... | zdvresearch/fast15-paper-extras | ecfs_user_sessions/src/analyze_user_sessions.py | Python | mit | 7,526 |
package esl
import (
"io"
"errors"
"unicode/utf8"
)
// Buffer ...
type buffer []byte
// MemoryReader ...
type memReader [ ]byte
// MemoryWriter ...
type memWriter [ ]byte
// ErrBufferSize indicates that memory cannot be allocated to store data in a buffer.
var ErrBufferSize = errors.New(`could not allocate memory`... | navrotskyj/acr | src/pkg/esl/io.go | GO | mit | 2,905 |
package com.zimbra.cs.versioncheck;
import java.io.IOException;
import java.util.Iterator;
import java.util.List;
import java.util.Date;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.Options;
import org.apache.commons.cli.ParseException;
import com.zimbra.common.util.ZimbraLog;
import com.z... | nico01f/z-pec | ZimbraAdminVersionCheck/src/java/com/zimbra/cs/versioncheck/VersionCheckUtil.java | Java | mit | 7,334 |
๏ปฟusing System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EmployeeFinder.Models
{
public enum Position
{
Bartender,
Waiter,
Bellboy,
Receptionist,
Manager,
Housekeeper,
Chef,
Man... | GeorgiNik/EmployeeFinder | EmployeeFinder.Models/Position.cs | C# | mit | 340 |
๏ปฟusing System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Domain
{
public class Meeting
{
public int ConsultantId { get; set; }
public Consultant Consultant { get; set; }
public int UserId { get; set; }
public ... | rohansen/Code-Examples | Database/TransactionScopeWithGUI/Domain/Meeting.cs | C# | mit | 559 |
module PiwikAnalytics
module Helpers
def piwik_tracking_tag
config = PiwikAnalytics.configuration
return if config.disabled?
if config.use_async?
file = "piwik_analytics/piwik_tracking_tag_async"
else
file = "piwik_analytics/piwik_tracking_tag"
end
render({
... | piwik/piwik-ruby-tracking | lib/piwik_analytics/helpers.rb | Ruby | mit | 435 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@author Stephan Reith
@date 31.08.2016
This is a simple example to demonstrate how the ROS Spinnaker Interface can be used.
You will also need a ROS Listener and a ROS Talker to send and receive data.
Make sure they communicate over the same ROS topics and std_msgs.... | reiths/ros_spinnaker_interface | examples/example_ros_spinnaker_interface.py | Python | mit | 2,533 |
/**
* @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 {CompileDirectiveMetadata, CompileStylesheetMetadata, CompileTemplateMetadata, templateSourceUrl} from './com... | matsko/angular | packages/compiler/src/directive_normalizer.ts | TypeScript | mit | 12,863 |
<?php
/* TwigBundle:Exception:error.atom.twig */
class __TwigTemplate_405349459f7f2e8922747537b1c12aa2323bb61b0265aaf549db7e51eafd66f4 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
... | Mchichou/UEOptionnelles | app/cache/dev/twig/40/53/49459f7f2e8922747537b1c12aa2323bb61b0265aaf549db7e51eafd66f4.php | PHP | mit | 1,789 |
require File.join(File.dirname(__FILE__), './scribd-carrierwave/version')
require File.join(File.dirname(__FILE__), './scribd-carrierwave/config')
require 'carrierwave'
require 'rscribd'
require 'configatron'
module ScribdCarrierWave
class << self
def included(base)
base.extend ClassMethods
end
de... | milkfarm/scribd-carrierwave | lib/scribd-carrierwave.rb | Ruby | mit | 3,507 |
var gulp = require('gulp');
var babel = require('gulp-babel');
var concat = require('gulp-concat');
var merge = require('merge-stream');
var stylus = require('gulp-stylus');
var rename = require("gulp-rename");
var uglify = require("gulp-uglify");
var cssmin = require("gulp-cssmin");
var ngAnnotate = require('gulp-ng-a... | jlowcs/angular-chatbar | gulpfile.js | JavaScript | mit | 1,878 |
# -*- coding: utf-8 -*-
""" Resource Import Tools
@copyright: 2011-12 (c) Sahana Software Foundation
@license: MIT
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
... | ashwyn/eden-message_parser | modules/s3/s3import.py | Python | mit | 123,322 |
package br.ufrj.g2matricula.domain;
import org.springframework.data.elasticsearch.annotations.Document;
import javax.persistence.*;
import javax.validation.constraints.*;
import java.io.Serializable;
import java.util.Objects;
import br.ufrj.g2matricula.domain.enumeration.MatriculaStatus;
/**
* A Matricula.
*/
@En... | DamascenoRafael/cos482-qualidade-de-software | www/src/main/java/br/ufrj/g2matricula/domain/Matricula.java | Java | mit | 2,535 |
<?php
class Admin_GeneralModel extends CI_Model {
public function GetAdminModuleCategoryList()
{
$this->db->select('CID, CategoryName');
$this->db->from('admin_module_category');
$this->db->order_by('Ordering');
$query = $this->db->get();
if($query->num_rows())
return $query;
else
return FALSE;
}
... | dernst91/deCMS | application/models/Admin_GeneralModel.php | PHP | mit | 895 |
// @flow
import { StyleSheet } from 'react-native';
import { colors } from '../../themes';
const styles = StyleSheet.create({
divider: {
height: 1,
marginHorizontal: 0,
backgroundColor: colors.darkDivider,
},
});
export default styles;
| Dennitz/Timetable | src/components/styles/HorizontalDividerList.styles.js | JavaScript | mit | 254 |
require 'ffi'
module ProcessShared
module Posix
module Errno
extend FFI::Library
ffi_lib FFI::Library::LIBC
attach_variable :errno, :int
# Replace methods in +syms+ with error checking wrappers that
# invoke the original method and raise a {SystemCallError} with
# the curre... | pmahoney/process_shared | lib/process_shared/posix/errno.rb | Ruby | mit | 1,066 |
'use strict';
const _ = require('lodash');
const co = require('co');
const Promise = require('bluebird');
const AWS = require('aws-sdk');
AWS.config.region = 'us-east-1';
const cloudwatch = Promise.promisifyAll(new AWS.CloudWatch());
const Lambda = new AWS.Lambda();
const START_TI... | theburningmonk/lambda-coldstart-comparison | download-stats.js | JavaScript | mit | 2,153 |
from __future__ import absolute_import, division, print_function, unicode_literals
import string
import urllib
try:
from urllib.parse import urlparse, urlencode, urljoin, parse_qsl, urlunparse
from urllib.request import urlopen, Request
from urllib.error import HTTPError
except ImportError:
from urlpars... | VulcanTechnologies/oauth2lib | oauth2lib/utils.py | Python | mit | 2,411 |
๏ปฟ/*
The MIT License (MIT)
Copyright (c) 2014 Banbury & Play-Em
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, m... | Apelsin/UnitySpritesAndBones | Assets/SpritesAndBones/Scripts/Editor/Skin2DEditor.cs | C# | mit | 8,335 |
package com.thilko.springdoc;
@SuppressWarnings("all")
public class CredentialsCode {
Integer age;
double anotherValue;
public Integer getAge() {
return age;
}
public void setAge(Integer age) {
this.age = age;
}
public double getAnotherValue() {
return anotherValu... | thilko/gradle-springdoc-plugin | src/test/java/com/thilko/springdoc/CredentialsCode.java | Java | mit | 435 |
<?php
use yii\helpers\Html;
use yii\grid\GridView;
use yii\widgets\Pjax;
/* @var $this yii\web\View */
/* @var $searchModel yii2learning\chartbuilder\models\DatasourceSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = Yii::t('app', 'Datasources');
$this->params['breadcrumbs'][] = $this->tit... | Yii2Learning/yii2-chart-builder | views/datasource/index.php | PHP | mit | 1,401 |
module Web::Controllers::Books
class Create
include Web::Action
expose :book
params do
param :book do
param :title, presence: true
param :author, presence: true
end
end
def call(params)
if params.valid?
@book = BookRepository.create(Book.new(params[:bo... | matiasleidemer/lotus-bookshelf | apps/web/controllers/books/create.rb | Ruby | mit | 393 |
// @flow
(require('../../lib/git'): any).rebaseRepoMaster = jest.fn();
import {
_clearCustomCacheDir as clearCustomCacheDir,
_setCustomCacheDir as setCustomCacheDir,
} from '../../lib/cacheRepoUtils';
import {copyDir, mkdirp} from '../../lib/fileUtils';
import {parseDirString as parseFlowDirString} from '../../... | splodingsocks/FlowTyped | cli/src/commands/__tests__/install-test.js | JavaScript | mit | 23,904 |
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { assign } from 'lodash'
import autoBind from '../utils/autoBind'
const styles = {
'ClosedPanelWrapper': {
height: '40px'
},
'PanelWrapper': {
position: 'relative'
},
'Over': {
border: '1px dashed white',
ove... | jcgertig/react-struct-editor | src/components/Panel.js | JavaScript | mit | 4,120 |
'use strict';
// src\services\message\hooks\timestamp.js
//
// Use this hook to manipulate incoming or outgoing data.
// For more information on hooks see: http://docs.feathersjs.com/hooks/readme.html
const defaults = {};
module.exports = function(options) {
options = Object.assign({}, defaults, options);
return ... | zorqie/bfests | src/services/message/hooks/timestamp.js | JavaScript | mit | 488 |
package fr.lteconsulting.pomexplorer.commands;
import fr.lteconsulting.pomexplorer.AppFactory;
import fr.lteconsulting.pomexplorer.Client;
import fr.lteconsulting.pomexplorer.Log;
public class HelpCommand
{
@Help( "gives this message" )
public void main( Client client, Log log )
{
log.html( AppFactory.get().comm... | ltearno/pom-explorer | pom-explorer/src/main/java/fr/lteconsulting/pomexplorer/commands/HelpCommand.java | Java | mit | 342 |
๏ปฟnamespace CAAssistant.Models
{
public class ClientFileViewModel
{
public ClientFileViewModel()
{
}
public ClientFileViewModel(ClientFile clientFile)
{
Id = clientFile.Id;
FileNumber = clientFile.FileNumber;
ClientName = clientFile.Cl... | vishipayyallore/CAAssitant | CAAssistant/Models/ClientFileViewModel.cs | C# | mit | 1,131 |