repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
recoilme/malevich | malevich/src/main/java/org/freemp/malevich/Malevich.java | 18903 | package org.freemp.malevich;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.gra... | mit |
rafwell/laravel-simplegrid | src/Query/SqlServerQueryBuilder.php | 1376 | <?php
namespace Rafwell\Simplegrid\Query;
use Rafwell\Simplegrid\Query\QueryBuilderContract;
use Rafwell\Simplegrid\Query\DefaultQueryBuilder;
use Illuminate\Database\Eloquent\Builder;
use DB;
use Exception;
use Carbon\Carbon;
use Log;
class SqlServerQueryBuilder extends DefaultQueryBuilder implements QueryBuilderCo... | mit |
Kylart/KawAnime | src/main/services/localLists/update.js | 1550 | import { eventsList } from 'vendor'
import { Logger, hashName } from '../../utils'
import { localFiles } from '../../externals'
const logger = new Logger('Local Lists (Update)')
const FILE_NAME = 'localLists.json'
const events = eventsList.localLists.update
function update (data) {
return localFiles.writeFile(data,... | mit |
yveskaufmann/MatrixCalculator | src/org/yvka/Beleg1/ui/commands/RetrieveMatrixCommand.java | 3170 | package org.yvka.Beleg1.ui.commands;
import org.yvka.Beleg1.matrix.Matrix;
import org.yvka.Beleg1.ui.Application;
import org.yvka.Beleg1.ui.ApplicationCommand;
import org.yvka.Beleg1.ui.IOTools;
import org.yvka.Beleg1.ui.MatrixTO;
/**
* <p>
* A Command which is used to request a single matrix from the user.<br>
* ... | mit |
impiaaa/MyWorldGen | src/main/java/net/boatcake/MyWorldGen/Schematic.java | 18317 | package net.boatcake.MyWorldGen;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Random;
import org.apache.logging.log4j.Level;
import com.google.common.collect.Lists;
import net.boatcake.My... | mit |
VajraFramework/PipelineTools | FbxExporter/Source/Exporter/Parsers/ReconstructSkeletalAnimations/ReconstructSkeletalAnimations.cpp | 3756 | #include "Exporter/Common/Common.h"
#include "Exporter/Definitions/Face.h"
#include "Exporter/Definitions/Material.h"
#include "Exporter/Definitions/Mesh.h"
#include "Exporter/Definitions/Model.h"
#include "Exporter/Definitions/Polylist.h"
#include "Exporter/Definitions/Scene.h"
#include "Exporter/Definitions/Vertex.h"... | mit |
PureWeen/ReactiveUI.XamlForms.Sample | ReactiveUI.Sample.NetStandard/ISampleRoutableViewModel.cs | 253 | using System;
using System.Collections.Generic;
using System.Text;
namespace ReactiveUI.XamlForms.Sample
{
public interface ISampleRoutableViewModel
{
string UrlPathSegment { get; }
ISampleScreen HostScreen { get; }
}
}
| mit |
ChuckLangford/RSSReader | RSSReader/App/main.js | 726 | require.config({
paths: { "text": "durandal/amd/text" }
});
define(function (require) {
var system = require('durandal/system'),
app = require('durandal/app'),
viewLocator = require('durandal/viewLocator'),
router = require('durandal/plugins/router')
logger = require('services/... | mit |
SimpleRegex/SRL-PHP | src/Exceptions/ImplementationException.php | 89 | <?php
namespace SRL\Exceptions;
class ImplementationException extends SRLException
{
}
| mit |
Muxi-Studio/AndroidHomework | yuyi/Spectop141210/app/src/main/java/com/example/root/spectop141210/test.java | 1093 | package com.example.root.spectop141210;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
public class test extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setCo... | mit |
ibutra/SpyDashServer | spydashserver/plugins.py | 2596 | from importlib import import_module
from .settings import plugins
class PluginConfig(object):
def __init__(self, name, root, label=None, models=None):
# Python path to the Plugin e.g. 'weather'
self.name = name
# The python path to the root class of this plugin relative to name
se... | mit |
johnspackman/qxcompiler | source/resource/qx/tool/cli/templates/skeleton/mobile/source/class/custom/page/Overview.tmpl.js | 811 | /* ************************************************************************
Copyright:
License:
Authors:
************************************************************************ */
/**
* TODO: needs documentation
*/
qx.Class.define("${namespace}.page.Overview",
{
extend : qx.ui.mobile.page.NavigationP... | mit |
delanepj/designPatterns | DesignPatterns/src/com/designpatterns/singleton/SingleObject.java | 481 | package com.designpattern.singleton;
public class SingleObject {
// Instantiate the Singleton Object
private static SingleObject instance = new SingleObject();
// Make Constructor Private so it can't be instantiated.
private SingleObject(){}
// Make Instance retrivable.
public static SingleObjec... | mit |
EmilPopov/C-Sharp | Web Services and Cloud/Exam/Teleimot_Exam2015/Web/Teleimot.Web.Api/Models/RealEstates/CreateRealEstateRequestModel.cs | 783 | namespace Teleimot.Web.Api.Models.RealEstates
{
using Data.Models;
using Mapping;
using System;
using System.ComponentModel.DataAnnotations;
public class CreateRealEstateRequestModel : IMapFrom<RealEstate>
{
[Required]
public string Address { get; set; }
[Required]
... | mit |
aecrim/LoLRetriever | LoLRetriever.java | 4163 | package com.aecrim.lol.retriever;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
public class LoLRetriever {
public static final String APIKEY = "ebf4332b-03f4-49e5-a15c-c1d31882b530";
private String name;
public static void main(String[] args) {
if (args.length ... | mit |
trigunshin/trimp_calc | static/js/app.js | 9097 | 'use strict';
//////////////////
// app //
//////////////////
var clickerCalcs = angular.module('trimpCalcApp', []);
clickerCalcs.controller('TrimpCalcCtrl', function($scope) {
$scope.keyStrBase64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
$scope.keyStrUriSafe = "ABCDEFGHIJK... | mit |
GollyGood/klaviyo-api-php | src/Exception/NotFoundApiException.php | 169 | <?php
namespace Klaviyo\Exception;
/**
* Simple Exception for Klaviyo API.
*/
class NotFoundApiException extends \Exception implements KlaviyoExceptionInterface
{
}
| mit |
alsemyonov/vk | spec/vk/api/users/crop_photo_spec.rb | 477 | # frozen_string_literal: true
require 'spec_helper'
require 'vk/api/users/crop_photo'
RSpec.describe Vk::API::Users::CropPhoto do
subject(:model) { described_class }
it { is_expected.to be < Dry::Struct }
it { is_expected.to be < Vk::Schema::Object }
describe 'attributes' do
subject(:attributes) { model.i... | mit |
kapadiamush/Eve-s-Adventure | src/views/scenes/LoadMenuSceneA.java | 2547 | package views.scenes;
import javafx.geometry.Pos;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
import views.MainApp;
import controllers.ButtonHandlers;
/**
*
*/
pub... | mit |
pcelvng/task | bus/io/consumer_test.go | 1005 | package io
import (
"bufio"
"context"
"io"
"testing"
"github.com/jbsmith7741/trial"
)
func TestNewConsumer(t *testing.T) {
fn := func(args ...interface{}) (interface{}, error) {
pth := args[0].(string)
_, err := NewConsumer(pth)
return nil, err
}
trial.New(fn, trial.Cases{
"missing path": {
Input:... | mit |
uzura8/flockbird | fuel/app/modules/admin/classes/controller/news/file/api.php | 532 | <?php
namespace Admin;
class Controller_News_File_Api extends Controller_Api
{
protected $check_not_auth_action = array();
public function before()
{
parent::before();
}
/**
* Delete news file
*
* @access public
* @param int $id target id
* @return Response(json)
* @throws Exception in Con... | mit |
cleargif/digital-casefile-frontend | test/spec/controllers/dashboard.spec.js | 627 | 'use strict';
describe('Controller: DashboardCtrl', function () {
// load the controller's module
beforeEach(module('digitalCasefileApp'));
var DashboardCtrl,
scope;
// Initialize the controller and a mock scope
beforeEach(inject(function ($controller, $rootScope) {
scope = $rootScope.$new();
... | mit |
Rarioty/Parallax-Engine | src/PIL/FS/fs.cpp | 524 | #include <Parallax/FS/fs.hpp>
#include <Parallax/FS/URL.hpp>
#include <Parallax/Platform.hpp>
#if PARALLAX_PLATFORM_WINDOWS
#include <Parallax/FS/Windows/LocalFileSystem.hpp>
#else
#include <Parallax/FS/POSIX/LocalFileSystem.hpp>
#endif
#include <memory>
namespace Parallax::FS
{
File open(const std::str... | mit |
bukhmastov/CDOITMO | app/src/main/java/com/bukhmastov/cdoitmo/util/singleton/Transliterate.java | 3040 | package com.bukhmastov.cdoitmo.util.singleton;
public class Transliterate {
public static String cyr2lat(String s) {
StringBuilder sb = new StringBuilder(s.length() * 2);
for (char ch: s.toCharArray()) {
sb.append(cyr2lat(ch));
}
return sb.toString();
}
public ... | mit |
victronenergy/dbus_modbustcp | pdu.cpp | 2361 | #include "pdu.h"
#define QS_LOG_DISABLE
#include "QsLog.h"
const QMap <int,QString> PDU::initFunctionMap()
{
QMap <int,QString> functionMap;
functionMap[1] = "Read Coils";
functionMap[2] = "Read Discrete Inputs";
functionMap[3] = "Read Holding Registers";
functionMap[4] = "Read Input Registers";
functionMap[5] ... | mit |
balckdp/forum | Forum/src/com/forum/web/config/SecurityConfig.java | 2160 | package com.forum.web.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotat... | mit |
311labs/SRL | radmin/python/timeout_xmlrpclib.py | 935 | # @author Ian Starnes
# @date March 19, 2008
#
# This code was taken from an article by: Volodymyr Orlenko
import xmlrpclib
import httplib
loads = xmlrpclib.loads
class TimeoutTransport(xmlrpclib.Transport):
def make_connection(self, host):
conn = TimeoutHTTP(host)
conn.set_timeout(self.timeout)
... | mit |
tparisi/Vizi | engine/src/scene/sceneVisual.js | 457 | /**
* @fileoverview A visual containing a model in Collada format
* @author Tony Parisi
*/
goog.provide('Vizi.SceneVisual');
goog.require('Vizi.Visual');
Vizi.SceneVisual = function(param)
{
param = param || {};
Vizi.Visual.call(this, param);
this.object = param.scene;
}
goog.inherits(Vizi.SceneVisual... | mit |
mysmarthouse/mysmarthouse-web | server/api/sensor/sensor.model.js | 392 | 'use strict';
var mongoose = require('mongoose-q')();
var Schema = mongoose.Schema;
var SensorSchema = new Schema({
name: String,
type: {
type: String,
enum: ['value', 'state', 'electricity'],
default: 'value'
},
boardId: String,
lastValue: Number,
connected: Boolean,
lastUpdated: Date,
pi... | mit |
mwhelan/WebApi2Testing | src/TestableWebApi.Api/Handlers/Credentials.cs | 175 | namespace TestableWebApi.Api.Handlers
{
public class Credentials
{
public string Username { get; set; }
public string Password { get; set; }
}
} | mit |
BTDF/BTDF | src/btdf-esb-resolver/Tools/CommonAssemblyInfo.cs | 1171 | // Deployment Framework for BizTalk ESB Resolver
// Copyright (C) 2008 Thomas F. Abraham
// See LICENSE.txt for licensing information.
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// ... | mit |
xhochy/delicious-feeds | spec/delicious-feeds_spec.rb | 208 | require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
describe "DeliciousFeeds" do
it "fails" do
fail "hey buddy, you should probably rename this file and start specing for real"
end
end
| mit |
leader22/simple-pokedex-v2 | _scraping/fetch/63.js | 7969 | module.exports = {
"key": "abra",
"moves": [
{
"learn_type": "tutor",
"name": "foul-play"
},
{
"learn_type": "tutor",
"name": "magic-room"
},
{
"learn_type": "tutor",
"name": "wonder-room"
},
... | mit |
fyoudine/three.js | examples/jsm/loaders/VTKLoader.js | 27248 | import {
BufferAttribute,
BufferGeometry,
FileLoader,
Float32BufferAttribute,
Loader,
LoaderUtils
} from 'three';
import * as fflate from '../libs/fflate.module.js';
class VTKLoader extends Loader {
constructor( manager ) {
super( manager );
}
load( url, onLoad, onProgress, onError ) {
const scope = ... | mit |
m0ep/master-thesis | source/apis/moodlews_ksoap2/src/main/java/de/m0ep/moodlews/soap/AffectRecord.java | 1741 | /**
* AffectRecord.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
/**
* Modified for KSoap2 library by pp@patrickpollet.net using KSoap2BeanWriter
*/
package de.m0ep.moodlews.soap;
import net.patrickpollet.ksoap2.KSoap2Utils;
import ... | mit |
ltearno/hexa.tools | hexa.core/src/main/java/fr/lteconsulting/hexa/client/ui/miracle/printers/ListBoxExPrinter.java | 457 | package fr.lteconsulting.hexa.client.ui.miracle.printers;
import fr.lteconsulting.hexa.client.ui.miracle.TextPrinter;
import fr.lteconsulting.hexa.client.ui.widget.ListBoxEx;
public class ListBoxExPrinter implements TextPrinter
{
private final ListBoxEx lb;
private final int id;
public ListBoxExPrinter( ListBoxEx... | mit |
HouseBreaker/High-Quality-Code | 02. Formatting Code/02. Reformat Your Own Code/Properties/AssemblyInfo.cs | 1428 | 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... | mit |
SkillsFundingAgency/vacancy-register-api | src/Esfa.Vacancy.Application/Queries/SearchApprenticeshipVacancies/SearchApprenticeshipVacanciesRequest.cs | 948 | using System.Collections.Generic;
using MediatR;
namespace Esfa.Vacancy.Application.Queries.SearchApprenticeshipVacancies
{
public class SearchApprenticeshipVacanciesRequest : IRequest<SearchApprenticeshipVacanciesResponse>
{
public List<string> StandardLarsCodes { get; set; } = new List<string>();
... | mit |
bopes/phase-0 | week-4/add-it-up/my_solution.rb | 1901 | # Add it up!
# Complete each step below according to the challenge directions and
# include it in this file. Also make sure everything that isn't code
# is commented in the file.
# I worked on this challenge [by myself, with: ].
# 0. total Pseudocode
# make sure all pseudocode is commented out!
# Input: an array of... | mit |
tomer-ben-david-exercises/99-scala-solutions | src/main/scala/Solution06.scala | 623 | import org.scalatest.{FlatSpec, ShouldMatchers}
/**
* @author tomerb
* on 26/11/15
*/
//noinspection ScalaStyle
class Solution06 extends FlatSpec with ShouldMatchers {
"the solution" should "detect a palindrome" in {
val notPalindrome = List(1, 1, 2, 3, 5, 8)
val palindrome = List(1, 2, 3, 2, 1)
isPa... | mit |
ardean/jsGBC-core | src/MainInstructions.ts | 57094 | import bitInstructions from "./bitInstructions";
import SecondaryTickTable from "./secondaryTickTable";
export default [
// NOP
// 0x00:
() => { },
// LD BC, nn
// 0x01:
function () {
this.registerC = this.readMemory(this.programCounter);
this.registerB = this.readMemory(this.programCounter + 1 & ... | mit |
hcorion/RoverVR | Assets/NewtonVR/NVRHead.cs | 132 | using UnityEngine;
using System.Collections;
namespace NewtonVR
{
public class NVRHead : MonoBehaviour
{
}
} | mit |
sutromedia/android-travel-guide | android-app-core/src/com/sutromedia/android/lib/model/IEntryDetail.java | 691 | package com.sutromedia.android.lib.model;
import android.location.Location;
import java.util.List;
public interface IEntryDetail {
String getId();
String getSubtitle();
String getDescription();
Location getLocation();
List<IGroup> getGroups();
String getAddress();
String getPho... | mit |
i18next/react-i18next | test/trans.render.icu.spec.js | 2966 | import React from 'react';
import { render, screen } from '@testing-library/react';
import './i18n';
import { Trans } from '../src/Trans';
describe('trans using no children but props - icu case', () => {
const TestComponent = () => (
<Trans
defaults="hello <0>{{what}}</0>"
values={{ what: 'world' }}
... | mit |
ignazas/ma2016 | vendor/nova-framework/system/src/Cache/RedisTaggedCache.php | 2120 | <?php
namespace Nova\Cache;
class RedisTaggedCache extends TaggedCache
{
/**
* Store an item in the cache indefinitely.
*
* @param string $key
* @param mixed $value
* @return void
*/
public function forever($key, $value)
{
$this->pushForeverKeys($namespace = $thi... | mit |
cuescience/cuescience-shop | shop/specs/models/models.py | 7551 | from natspec_utils.stringutils import stringToUnicode as u;
from jinja2.environment import Environment
from jinja2.loaders import PackageLoader
from django_lean_modelling import helper
from django_lean_modelling.models import support
from django_lean_modelling.admin.support import AdminSupport
class Models():
... | mit |
melanchall/drymidi | DryWetMidi/Devices/Clock/MidiClockSettings.cs | 1004 | using System;
using Melanchall.DryWetMidi.Common;
namespace Melanchall.DryWetMidi.Devices
{
/// <summary>
/// Holds settings for <see cref="MidiClock"/> used by a clock driven object.
/// </summary>
public sealed class MidiClockSettings
{
#region Fields
private Func<TickGenerator>... | mit |
lunchiatto/web | app/assets/javascripts/entities/invitation.js | 333 | window.Lunchiatto.module('Entities', function(Entities, App, Backbone, Marionette, $, _) {
Entities.Invitation = Backbone.Model.extend({
urlRoot: '/api/invitations'
});
return Entities.Invitations = Backbone.Collection.extend({
model: Entities.Invitation,
url() {
return '/api/invitations';
... | mit |
sonvister/Binance | src/Binance/Api/RateLimit/RateLimiter.cs | 4716 | using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
// ReSharper disable once CheckNamespace
namespace Binance.Api
{
public class RateLimiter : IRateLimiter
{
#region Public Properties
public int Count
... | mit |
uia-worker/is105misc | bdcakecandles.go | 996 | package main
import "fmt"
func main() {
//Enter your code here. Read input from STDIN. Print output to STDOUT
var n, tall int64
fmt.Scanf("%v\n", &n)
if n >= 1 && n <= 10e+5 {
height := make([]int64, n)
tall = 0
counter := 0
for i := range height {
fmt.Scanf("%d... | mit |
lujinda/gale | gale/iosocket.py | 1670 | #!/usr/bin/env python
#coding:utf8
# Author : tuxpy
# Email : q8886888@qq.com
# Last modified : 2015-03-26 12:55:47
# Filename : gale/socket.py
# Description :
from __future__ import unicode_literals
import gevent
from gevent import socket
class IOSocket():
def __init__(self, socke... | mit |
maichong/ucp | tests/encryption.js | 474 | /**
* @copyright Maichong Software Ltd. 2016 http://maichong.it
* @date 2016-04-10
* @author Liang <liang@maichong.it>
*/
'use strict';
const Encryption = require('../lib/encryption');
const encryption = new Encryption('123456');
let data = new Buffer('Hello world');
console.log(data, data.length);
data = enc... | mit |
graphql-python/graphql-core | tests/utilities/test_print_schema.py | 26380 | from typing import cast, Any, Dict
from graphql.language import DirectiveLocation
from graphql.type import (
GraphQLArgument,
GraphQLBoolean,
GraphQLEnumType,
GraphQLField,
GraphQLFloat,
GraphQLInputObjectType,
GraphQLInt,
GraphQLInterfaceType,
GraphQLList,
GraphQLNonNull,
G... | mit |
balasankarc/ruby-active-model-serializers | test/test_app.rb | 391 | class TestApp < Rails::Application
if Rails.version.to_s.first >= '4'
config.eager_load = false
config.secret_key_base = 'abc123'
end
config.after_initialize do
Rails.application.routes.default_url_options = { host: 'http://example.com' }
end
# Set up a logger to avoid creating a log directory on... | mit |
FractalFlows/Emergence | app/imports/server/helpers/articles/indexToElastic.js | 766 | import { SimpleSchema } from 'meteor/aldeed:simple-schema'
import { Meteor } from 'meteor/meteor'
import { ELASTIC_SEARCH_INDEX, ELASTIC_SEARCH_TYPE } from '/imports/both/collections/articles'
import elasticSearch from '/imports/server/helpers/elasticSearch'
export default function indexArticleToElastic({ authors, tit... | mit |
yogeshsaroya/new-cdnjs | ajax/libs/yui/3.7.3/yui-core/yui-core-coverage.js | 131 | version https://git-lfs.github.com/spec/v1
oid sha256:4a4207fa18ec066a5e81fd8da074200f3f1977988814346c68facec9ad6777af
size 310111
| mit |
bitunified/led-config | domain/src/main/java/com/bitunified/ledconfig/parts/Part.java | 3412 | package com.bitunified.ledconfig.parts;
import com.bitunified.ledconfig.domain.I18N.Locale;
import com.bitunified.ledconfig.domain.Model;
import com.bitunified.ledconfig.domain.Relation;
import com.bitunified.ledconfig.domain.modeltypes.RealModel;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import o... | mit |
tdreid/Guezzmo | js/script.js | 1353 | window.onload = function() {
var theNumber = _.random(1, 100);
var theList = $('#list');
var theBanner = $('#triumph');
$('#submit').click(function() {
var theGuess = $('#guess').val();
$('#guess').val('');
if (theGuess == theNumber) {
$('#submit').prop('disabled', true);
$('#guess').pr... | mit |
lexek/chat | src/main/java/lexek/wschat/chat/model/GlobalRole.java | 594 | package lexek.wschat.chat.model;
import lexek.wschat.chat.filters.BroadcastFilter;
import lexek.wschat.chat.filters.GlobalRoleFilter;
public enum GlobalRole {
UNAUTHENTICATED(300),
USER_UNCONFIRMED(30000),
USER(200),
MOD(0),
ADMIN(0),
SUPERADMIN(0);
public final BroadcastFilter<GlobalRole... | mit |
awalker/sophrosyne-mvc | src/Base/NullView.php | 572 | <?php
namespace Base;
/**
* Sometimes helps with debugging
*/
class NullView extends View {
/**
* Returns a new view object for the given view.
*
* @param string $file the view file to load
* @param string $module name (blank for current theme)
*/
public function __construct($file, $values = null)... | mit |
yogurtthewise/SpaceBucks | src/qt/locale/bitcoin_he.ts | 122615 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="he" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About SpaceBucks</source>
<translation>אודות ביטקוין</translation>
</m... | mit |
efreet929/html-dom-parser | example-ariya2.js | 780 | var page = require('webpage').create();
page.settings.userAgent = 'WebKit/534.46 Mobile/9A405 Safari/7534.48.3';
page.settings.viewportSize = { width: 400, height: 600 };
page.onResourceRequested = function(requestData, request) {
if ((/http:\/\/.+?\.css$/gi).test(requestData['url'])) {
console.log('Skipp... | mit |
dkrock24/lapizzeria | class_db/forms.php | 3278 |
<?php
session_start();
include_once("../validation/conexion.php");
$conexion = login();
$action = $_POST['action'];
switch ($action) {
case 'selectPartidasGenericas':tipoForm();
break;
case 'InsertPartidaGenerica':InsertPartidaGenerica();
break;
case 'insert_marginacion':in... | mit |
pubnative/pubnative-android-mediation-sdk | sdk/src/main/java/net/pubnative/sdk/core/request/PNRequestCache.java | 2497 | // The MIT License (MIT)
//
// Copyright (c) 2017 PubNative GmbH
//
// 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, ... | mit |
ProframFiles/FancyDraw | src/akjColor.hpp | 6707 | #pragma once
#include "akj_typedefs.hpp"
#include "FancyDrawMath.hpp"
#include <unordered_map>
#include <vector>
#include <string>
#include "akjRandom.hpp"
#include <cmath>
namespace akj{
inline float LinearToSRGB(float input)
{
if(input >= 0.0031308f)
{
return 1.055f*std::pow(input, 0.416666f)-0.055f;
}
... | mit |
SonarSource-VisualStudio/sonarlint-visualstudio | src/Core/SonarCompositeRuleId.cs | 2336 | /*
* SonarLint for Visual Studio
* Copyright (C) 2016-2021 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version ... | mit |
abhishek-kharche/BaithakAttendance | update_user.php | 1275 | <?php
@session_start();
if(!isset($_COOKIE['loggedin'])){
header("location:index.php");
}
require_once('Auth.php');
$authObject = new Auth();
# send all values from js
$first = $_POST['first_name'];
$middle = $_POST['middle_name'];
$last = $_POST['last_name'];
$uid = $_POST['user_id'];
$isRel = $_POST['isRel'];
i... | mit |
aliaksei-kavaliou/aventus-test-task | src/AppBundle/Entity/LoanPayment.php | 3459 | <?php
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* LoadScheduler
*
* @ORM\Table(name="load_scheduler")
* @ORM\Entity(repositoryClass="AppBundle\Repository\LoadSchedulerRepository")
*/
class LoanPayment
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @O... | mit |
LightningNetwork/lnd | sweep/store_mock.go | 1465 | package sweep
import (
"github.com/btcsuite/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/wire"
)
// MockSweeperStore is a mock implementation of sweeper store. This type is
// exported, because it is currently used in nursery tests too.
type MockSweeperStore struct {
lastTx *wire.MsgTx
ourTxes map[chainhas... | mit |
meowmio/knotz | grunt/watch.js | 218 | module.exports.tasks = {
watch: {
js: {
files: [
'<%= server %>**/*.js'
],
tasks: ['develop'],
options: { nospawn: true }
}
}
}; | mit |
Forec/learn | 2017.1/algorithms-review/ADT/union_set.cpp | 1517 | #include <iostream>
#include <vector>
#define MAXN 1000
using namespace std;
int father[MAXN];
int find_re(int x){
if (father[x] < 0) // use rank to union
return x;
father[x] = find_re(father[x]);
return father[x];
}
int find_loop(int x){
if (father[x] < 0)
return x;
int p = x;
... | mit |
AmrARaouf/algorithm-detection | graph-source-code/545-E/11160731.cpp | 1942 | //Language: GNU C++
#include<iostream>
#include<map>
#include<string>
#include<queue>
#include<fstream>
#include<vector>
#include<set>
#include<algorithm>
using namespace std;
vector <vector < pair < pair <long long, long long> , long long > > > v;
vector <long long> l;
int main(){
long long n... | mit |
asarium/FSOLauncher | Global/GlobalAssemblyInfo.cs | 432 | #region Usings
using System.Reflection;
#endregion
[assembly: AssemblyCompany("FSSCP")]
[assembly: AssemblyProduct("FSOLauncher")]
[assembly: AssemblyCopyright("Copyright © FreeSpace Source Code Project 2014")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
#if DEBUG
[assembly: AssemblyConfigura... | mit |
ghh0000/testTs | build/back/handlers/methodHandler.js | 1925 | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const http_1 = require("../_http/http");
const container_1 = require("../container");
/**
* @wahtItDoes holds all information about the method of a controller
*/
class MethodHandler {
constructor() {
this.hasResponseBodyDecorator... | mit |
928PJY/docfx | src/Microsoft.DocAsCode.Build.Engine/TemplateRenderers/TemplateRendererResource.cs | 1386 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.DocAsCode.Build.Engine
{
using System;
using System.Collections.Generic;
using System.IO;
public class TemplateRendererResource
... | mit |
johnvandeweghe/php-api-library-core | src/Network/In/RequestTranslator/DataTranslatorInterface.php | 592 | <?php
namespace PHPAPILibrary\Core\Network\In\RequestTranslator;
use PHPAPILibrary\Core\Data\DataInterface;
use PHPAPILibrary\Core\Network\In\Exception\UnableToTranslateRequestException;
use PHPAPILibrary\Core\Network\RequestInterface;
/**
* Interface DataTranslatorInterface
* @package PHPAPILibrary\Core\Network\In... | mit |
AgileMods/MateriaMuto | src/api/java/ic2/api/energy/prefab/BasicSource.java | 10578 | package ic2.api.energy.prefab;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import cpw.mods.fml.common.FMLCommonHandler;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.common.util.ForgeDirection;
import ic2.api.... | mit |
iliangogov/Databases | 13. Entity Framework Code First/Homework/EntityFrameworkCodeFirst/Models/Student.cs | 1056 | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Models
{
public class Student
{
private ICollection<Course> courses;
pr... | mit |
usefulparadigm/jigso | config/environments/development.rb | 1164 | Jigso::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 webserv... | mit |
jasonallenphotography/SmackOverflow | db/migrate/20160818161031_create_questions.rb | 244 | class CreateQuestions < ActiveRecord::Migration
def change
create_table :questions do |t|
t.string :title
t.text :body
t.references :user, index: true, foreign_key: true
t.timestamps null: false
end
end
end
| mit |
molstar/molstar | src/mol-geo/primitive/primitive.ts | 3964 | /**
* Copyright (c) 2018-2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author Alexander Rose <alexander.rose@weirdbyte.de>
*/
import { Vec3, Mat4, Mat3 } from '../../mol-math/linear-algebra';
import { NumberArray } from '../../mol-util/type-helpers';
export interface Primitive {... | mit |
solutious/stella | try/09_utils_try.rb | 1230 | require 'stella'
## Knows a valid hostname
Stella::Utils.valid_hostname? 'localhost'
#=> true
## Knows a invalid hostname
Stella::Utils.valid_hostname? 'localhost900000000'
#=> false
## Local IP address
Stella::Utils.local_ipaddr? '127.0.0.255'
#=> true
## Private IP address (class A)
Stella::Utils.private_ipaddr? ... | mit |
fe-lix-/deckbrew-api | src/Criteria/Specifications/WithSuperType.php | 227 | <?php
namespace DeckBrew\Criteria\Specifications;
class WithSuperType extends AbstractSpecification
{
/**
* @return string
*/
public function getSpecificationType()
{
return 'supertype';
}
}
| mit |
rac2030/MakeZurich | logs/arduinoDataWriter.py | 1353 | import serial
import time
import datetime
promini = '/dev/cu.SLAB_USBtoUART'
ser = serial.Serial(promini, 9600)
repeatTime = 1000 # milliseconds
def writeData(value):
# Get the current data
today = datetime.date.today()
# Open log file 2012-6-23.log and append
with open(str(today)+'.log', 'ab'... | mit |
thexilent13/case-one-secudev | public/modules/carts/config/cart.client.config.js | 201 | 'use strict';
// Configuring the Articles module
angular.module('carts').run(['Menus',
function(Menus) {
// Set top bar menu items
//Menus.addMenuItem('topbar', 'Cart', 'cart', '/carts');
}
]);
| mit |
janstenpickle/extruder | metrics/dropwizard/src/test/scala/extruder/metrics/dropwizard/keyed/DropwizardKeyedEncodersSpec.scala | 1739 | package extruder.metrics.dropwizard.keyed
import extruder.metrics._
import extruder.metrics.data.{CounterValue, GaugeValue, TimerValue}
import io.dropwizard.metrics5.{MetricName, MetricRegistry}
import org.scalacheck.ScalacheckShapeless._
import org.scalatest.funsuite.AnyFunSuite
import org.scalatest.{Assertion, Eithe... | mit |
moreirainacio/grupotrilhas | _frontend/quem-somos.php | 4466 | <?php
include('includes/header.php');
?>
<?php //quem-somos ?>
<section id="quem-somos-page">
<div class="container text-center">
<div class="row">
<div class="col-xs-7">
<div class="row">
<h1><img src="assets/images/title-quem-somos.png" alt="" class="title"/></h1>
<p>
Lorem ipsum dolor sit... | mit |
valcol/ScrumNinja | app/tests/acceptance/substep_definitions/When_I_put_the_date_#_in the_#_field.js | 202 | module.exports = function() {
this.Then(/^I put the date "([^"]*)" in the "([^"]*)" field$/, function (arg, arg2) {
browser.waitForExist(arg2, 1000);
browser.element(arg2).keys(arg);
});
};
| mit |
fetus-hina/testfire2.stat.ink | webapp/models/Environment.php | 1404 | <?php
/**
* @copyright Copyright (C) 2015 AIZAWA Hina
* @license https://github.com/fetus-hina/stat.ink/blob/master/LICENSE MIT
* @author AIZAWA Hina <hina@bouhime.com>
*/
namespace app\models;
use Yii;
/**
* This is the model class for table "environment".
*
* @property integer $id
* @property string $sha25... | mit |
calebboyd/app-builder | src/test.spec.ts | 3701 | import appBuilder, { compose, AppBuilder, functionList } from './app-builder'
describe('app-builder', () => {
let builder: any
beforeEach(() => {
builder = new AppBuilder()
})
describe('appBuilder default export', () => {
it('gets an instance', () => expect(appBuilder()).toBeInstanceOf(AppBuilder))
... | mit |
Aloomaio/node-sodium | install.js | 11358 | /**
* Node Sodium install script to help support Windows
*
* @Author Pedro Paixao
* @email paixaop at gmail dot com
* @License MIT
*/
var https = require('https');
var fs = require('fs');
var path = require('path');
var exec = require('child_process').exec;
var spawn = require('child_process').spawn;
var os = re... | mit |
leechuck/abercoin | src/muscle/writescorefile.cpp | 1690 | #include "muscle.h"
#include "msa.h"
#include <errno.h>
extern float VTML_SP[32][32];
extern float NUC_SP[32][32];
static double GetColScore(const MSA &msa, unsigned uCol)
{
const unsigned uSeqCount = msa.GetSeqCount();
unsigned uPairCount = 0;
double dSum = 0.0;
for (unsigned uSeq1 = 0; uSeq1 < uSeq... | mit |
framky007/Document-management-system | server/controllers/role.js | 3044 | import { verifyString, verifyIsInt } from '../helpers/validation';
import { getRoles } from '../helpers/query';
import { paginateResult } from '../helpers/pagination';
import models from '../models';
const Role = models.Role;
/**
* gets all available roles in the database
* @function getAllRoles
* @param {ob... | mit |
CartoType/CartoType-Public-4-3 | src/demo/android_demo/Navigator/src/com/cartotype/FrameworkParam.java | 1457 | /*
FrameworkParam.java
Copyright (C) 2015 CartoType Ltd.
See www.cartotype.com for more information.
*/
package com.cartotype;
/**
Parameters for creating a CartoType framework when more detailed control is needed.
For example, file buffer size and the maximum number of buffers can be set.
*/
public class FrameworkPa... | mit |
lextel/evolution | fuel/app/classes/controller/v2admin/members.php | 6287 | <?php
class Controller_V2admin_Members extends Controller_V2admin{
public function action_index() {
$breads = [
['name' => '用户管理'],
['name' => '会员列表', 'href'=> Uri::create('v2admin/members')],
];
$get = Input::get();
$get['is_disable... | mit |
gjtorikian/panino-docs | lib/panino/plugins/parsers/javascript/jsd/serializer.js | 6958 | var _ = require('underscore');
// Transforms Esprima AST into string
var to_s = exports.to_s = function(ast) {
switch (ast["type"]) {
case "Program":
return _.map(ast["body"], function(s) {
return to_s(s);
}).join();
// Statements
case "BlockStatement":
... | mit |
dematerializer/unicode-emoji-data | src/check-data.js | 1884 | const matchAnyTrailingVariationSelector = /\s(FE0E|FE0F)$/g;
export default function checkData({ data, reference }) {
const report = {
sequencesInDataButNotInReference: [],
sequencesInReferenceButNotInData: [],
};
report.sequencesInDataButNotInReference = data.reduce((sequencesInDataButNotInReference, datum) =>... | mit |
arelenglish/responsive-website-rails | db/schema.rb | 1761 | # encoding: UTF-8
# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative sou... | mit |
Ruggedy-Limited/ruggedy-vma | resources/views/workspaces/create.blade.php | 1203 | @extends('layouts.main')
@section ('breadcrumb')
<a href="{{ route('home') }}">
<button type="button" class="btn round-btn pull-right c-yellow">
<i class="fa fa-times fa-lg" aria-hidden="true"></i>
</button>
</a>
{!! Breadcrumbs::render('dynamic') !!}
@endsection
@section('cont... | mit |
fightinjoe/fightinjoe-merb-blog | app/controllers/users.rb | 477 | require File.join(File.dirname(__FILE__), '..', '..', "lib", "authenticated_system", "authenticated_dependencies")
class Users < Application
provides :xml
before :login_required
def new
only_provides :html
@user = User.new(params[:user] || {})
display @user
end
def create
cookies.dele... | mit |