id stringlengths 64 64 | content stringlengths 500 100k | language stringclasses 29
values | path stringlengths 4 333 | repo stringlengths 5 116 | license stringclasses 15
values | size int64 500 100k | lines int64 26 8.06k | source stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|
5725fdd666d0a18b486002834134d63fe8171d0b4025f30a73be943adce73087 | var baseURL;
$.validator.addMethod("alfanumerico", function(value, element) {
return this.optional(element) || /^[-._a-z0-9\- ]+$/i.test(value);
}, "Este campo es alfanumerico.");
$("#frmGuardaTipoDocumento").validate({
rules : {
descripcion : "required",
codigo : {required:true,alfanumerico:true},
... | JavaScript | inst/src/main/webapp/resources/scripts/mantenimientoInterno/tipoDocumentoFormulario.js | javiervilcapaza/inst | mit | 1,492 | 62 | codeparrot/github-code |
ed4e36ee57392c70a89265ea11d8234e9e4386d87729b08c552bed105fe1fc39 | ---
title: Color Palette
layout: page
description: taCss color palette same as the Material Design Lite color palette.
utilities: true
---
<div class="row p-3">
<h6>color setup</h6>
<div class="code col-12 info p-3 m-b-3">
{% highlight scss %}
/* colors setups in "core/_variables.scss" */
/* enable/disable ... | HTML | utilities/colors.html | ostux/tacss | mit | 16,433 | 283 | codeparrot/github-code |
1deb4a5f024d488e607bcf4dde6befa1c96b49524d3e56864ac319084a8f6314 | package com.board.gd.domain.stock;
import lombok.Data;
import java.util.List;
import java.util.stream.Collectors;
/**
* Created by gd.godong9 on 2017. 5. 19.
*/
@Data
public class StockResult {
private Long id;
private String name;
private String code;
public static StockResult getStockResult(Sto... | Java | board/src/main/java/com/board/gd/domain/stock/StockResult.java | godong9/spring-board | mit | 777 | 33 | codeparrot/github-code |
ee682a7f0e9e0124eaf55f2a5d82d856c4d769c53493bce92c82c18a7746b6fb | var RocketBoots = {
isInitialized : false,
readyFunctions : [],
components : {},
loadedScripts: [],
version: {full: "0.7.0", major: 0, minor: 7, patch: 0, codeName: "sun-master"},
_autoLoadRequirements: true,
_initTimer : null,
_MAX_ATTEMPTS : 300,
_BOOTING_ELEMENT_ID : "booting-up-rocket-boots",
_: null, //... | JavaScript | scripts/rocketboots/core.js | Lukenickerson/rocketboots | mit | 8,886 | 296 | codeparrot/github-code |
9a669166f96d49208b5fe3abba9af0e4c9c94e4f7706205a21a1c223b47241ab | <?php
namespace ErenMustafaOzdal\LaravelModulesBase;
use Illuminate\Database\Eloquent\Model;
class Neighborhood extends Model
{
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'neighborhoods';
/**
* The attributes that are mass assignable.
... | PHP | src/Neighborhood.php | erenmustafaozdal/laravel-modules-base | mit | 1,262 | 64 | codeparrot/github-code |
8b913d2ea836825f84ddd462726d10681d2b295e1cc1a687fc109a3179014bac | // Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "init.h"
#include "util.h"
#include "sync.h"
#include "ui_interface.h"
#includ... | C++ | src/bitcoinrpc.cpp | net-bits/Netbits | mit | 46,782 | 1,296 | codeparrot/github-code |
b9e22390c9981dc423e246035a7e74349dc15378776e7461931e83dbce44343f | #include "StdAfx.h"
#include "Distance Joint Description.h"
#include "Spring Description.h"
#include "Distance Joint.h"
#include <NxDistanceJointDesc.h>
using namespace StillDesign::PhysX;
DistanceJointDescription::DistanceJointDescription() : JointDescription( new NxDistanceJointDesc() )
{
}
Dista... | C++ | PhysX.Net/PhysX.Net/Source/Distance Joint Description.cpp | danteinforno/PhysX.Net | mit | 1,564 | 60 | codeparrot/github-code |
137d4fa0541b07b9f2dc6ea01ab52891b845fd2e27530cf1d7608ef1e691e45f | using UnityEngine;
using UnityEditor;
using System.Collections;
using UForms.Attributes;
namespace UForms.Controls.Fields
{
/// <summary>
///
/// </summary>
[ExposeControl( "Object Field", "Fields" )]
public class ObjectField : AbstractField< Object >
{
/// <summary>
/// ... | C# | Assets/UForms/Runtime/Editor/Controls/Fields/ObjectField.cs | kilguril/UForms | mit | 2,888 | 106 | codeparrot/github-code |
7cb491150ed485f395aebf460998bc9cb311e87c6b1335a241b78590e654d149 | using Microsoft.AspNetCore.Http;
using System.Linq;
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http.Internal;
using Microsoft.Extensions.Primitives;
using System.Globalization;
namespace TCPServer... | C# | TCPServer/ServerImplemetation/TCPRequest.cs | stratisproject/TCPServer | mit | 4,304 | 186 | codeparrot/github-code |
b2e188c6a6070cc4f9adfa6da4074d944642183940a1953316aa566f62de6065 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>vergerpc.config — Utilities for reading verge confi... | HTML | doc/vergerpc.config.html | vergecurrency/verge-python | mit | 5,847 | 128 | codeparrot/github-code |
78553d7d3bcd96e58b0bb75e9b5d26e0e4a989a41a7f92365ec6dc813afb1bad | # 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; only version 2 of the License is applicable.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; witho... | Python | modules/collectd/files/usr/lib/collectd/python/redis_queues.py | alphagov/govuk-puppet | mit | 4,100 | 118 | codeparrot/github-code |
3f1b76cc1871d75f392d2a2ebca7ab14c1b426fea9dd0e514b72d57398f08e85 | <!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Dev to DevOps</title>
<meta name="description" content="A framework for easily creating beautiful presentations using HTML">
<meta name="author" content="Hakim El Hattab">
<meta name="apple-mobile-web-app-capable" content="y... | HTML | index.html | dinshaw/intro-to-devops | mit | 13,086 | 357 | codeparrot/github-code |
e61402330492a70f53f4c5969cedecaaa3c97dc603c83f4bbfce28b64adb06aa | /*
Ql builtin and external frmt command.
format text
*/
package frmt
import (
"clive/cmd"
"clive/cmd/opt"
"clive/nchan"
"clive/zx"
"errors"
"fmt"
"io"
"strings"
"unicode"
)
type parFmt {
rc chan string
ec chan bool
}
func startPar(out io.Writer, indent0, indent string, max int) *parFmt {
rc := make(ch... | GO | cmd/oldql/frmt/frmt.go | sbinet-staging/clive | mit | 2,706 | 170 | codeparrot/github-code |
99a8f6fa72a02f09d84590641a736446b31f7b416d1d6a98969a7530452a32ff | from crispy_forms.helper import FormHelper
from crispy_forms.layout import Fieldset, Layout
from django import forms
from django.contrib.auth.forms import AuthenticationForm
from django.contrib.auth.models import User
from django.contrib.auth.password_validation import validate_password
from django.core.exceptions impo... | Python | usuarios/forms.py | eduardoedson/scp | mit | 8,817 | 265 | codeparrot/github-code |
e92ad32e4ac6cb9d02fbe3075d1fb548ed5b3e5b399136876b4219cf8eb5ce95 | /* exported Qualifications */
function Qualifications(skills, items) {
var requirements = {
'soldier': {
meta: {
passPercentage: 100
},
classes: {
'Heavy Assault': {
certifications: [
{ skill: skills.heavyAssault.flakArmor, level: 3 }
],
equipment: []
},
'Li... | JavaScript | js/qualifications.js | stevenbenner/ps2-equipment-check | mit | 12,343 | 457 | codeparrot/github-code |
f73f7478b85c1074a8f0d7ccb68e6c36009a4197e534359c2145ac868942eb4b | package addonloader.util;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.util.Properties;
/**
* Simple wrapper around {@link Properites},
* allowing to easily access objects.
* @author Engine... | Java | src/addonloader/util/ObjectSettings.java | Enginecrafter77/LMPluger | mit | 1,423 | 65 | codeparrot/github-code |
87e0527fb5477926d17938da5ce7a5c4024e33f022412f9c69513de9b633a9d7 | /*
* This file is part of the easy framework.
*
* (c) Julien Sergent <sergent.julien@icloud.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
const ConfigLoader = require( 'easy/core/ConfigLoader' )
const EventsEmitter = require( 'eve... | JavaScript | easy/database/Database.js | MadDeveloper/easy.js | mit | 3,837 | 192 | codeparrot/github-code |
c52290ebd1806e28266eae4d50d83b38957fb8338995b7a55a79acf328311fa9 | import { useEffect, useRef, useState } from "react"
import * as React from "react"
import {
RelayPaginationProp,
RelayRefetchProp,
createPaginationContainer,
} from "react-relay"
import { graphql } from "relay-runtime"
import Waypoint from "react-waypoint"
import { Box, Flex, Spacer, Spinner } from "@artsy/palett... | TypeScript | src/v2/Apps/Conversation/Components/Conversation.tsx | artsy/force | mit | 11,098 | 394 | codeparrot/github-code |
c9ea51e49887c996a4b0fcd08fe4f534c2b80b23d01e1251daa61e1a621eae5d | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>hammer: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css"... | HTML | clean/Linux-x86_64-4.07.1-2.0.6/released/8.8.1/hammer/1.3+8.12.html | coq-bench/coq-bench.github.io | mit | 7,313 | 180 | codeparrot/github-code |
e09d6d5560fdcd1d5a483ff5f911c46e9f6337f3fe5010539f9df91ef3158bf3 | package ch.bisi.koukan.job;
import ch.bisi.koukan.provider.XMLExchangeRatesProvider;
import ch.bisi.koukan.repository.DataAccessException;
import ch.bisi.koukan.repository.ExchangeRatesRepository;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import javax.xml.stream.XMLInputFactory;
impo... | Java | src/main/java/ch/bisi/koukan/job/ECBDataLoaderScheduler.java | bisignam/koukan | mit | 3,982 | 98 | codeparrot/github-code |
433e9d4713751aae7d5187c1d2d911ba5d18834563c852204e1a734dd6d44d64 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xam... | C# | 2017/SpartaHack/SpartaHack/MainPage.xaml.cs | SpartaHack/SpartaHack2016-Windows | mit | 6,061 | 176 | codeparrot/github-code |
a4a3103dcd0db38c9ac782114b26051a7c6c94efb8c8368c50011f9fb583e761 | using System;
using System.Diagnostics;
namespace Oragon.Architecture.IO.Path
{
partial class PathHelpers
{
#region Private Classes
private sealed class RelativeFilePath : RelativePathBase, IRelativeFilePath
{
#region Internal Constructors
internal RelativeFilePath(string pathString)
: base(pathStr... | C# | [source]/Oragon.Architecture/IO/Path/PathHelpers+RelativeFilePath.cs | luizcarlosfaria/Oragon.Architecture | mit | 4,445 | 139 | codeparrot/github-code |
fba2450d7a5bcd9cce9af08935e3661a489a663183b3cc1188d3a2694dfd98dd | // HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
namespace Marius.Html.Hap
{
/// <summary>
/// Represents a base class for fragments in a mixed code document.
/// </summary>
public abstract class MixedCodeDocumentFragment
{
#region Fields
... | C# | Marius.Html/Hap/MixedCodeDocumentFragment.cs | marius-klimantavicius/marius-html | mit | 2,555 | 95 | codeparrot/github-code |
eae3ee1d639e455e1ca6a4209d64becc669ecb8cd43d39548779c7b7838c29b4 | import React from 'react'
import { User } from '../../lib/accounts/users'
import styled from '../../lib/styled'
import MdiIcon from '@mdi/react'
import { mdiAccount } from '@mdi/js'
import { SectionPrimaryButton } from './styled'
import { useTranslation } from 'react-i18next'
interface UserProps {
user: User
signo... | TypeScript | src/components/PreferencesModal/UserInfo.tsx | Sarah-Seo/Inpad | mit | 731 | 31 | codeparrot/github-code |
5192ce14ba6779c8212a88720900245c12b158a49feb7442c7142ae29b3a5884 | #include "TextItem.h"
#include <QPainter>
#include <QFont>
#include <QDebug>
////////////////////////////////////////////////////////////////
TextItem::TextItem(const QString& text, QGraphicsLayoutItem *parent)
: BaseItem(parent)
{
_text = text;
QFont font;
font.setPointSize(11);
font.setBold(fal... | C++ | GraphicEditor/Ui/Items/TextItem.cpp | AdUki/GraphicEditor | mit | 1,137 | 50 | codeparrot/github-code |
ca1be8c72c54e6a28c6fcda2cf1e6308bad926f7a1a502bcb15a0773b5b6592c | /*
* Copyright(c) Sophist Solutions, Inc. 1990-2022. All rights reserved
*/
#ifndef _Stroika_Foundation_Containers_DataStructures_STLContainerWrapper_h_
#define _Stroika_Foundation_Containers_DataStructures_STLContainerWrapper_h_
#include "../../StroikaPreComp.h"
#include "../../Configuration/Common.h"
#include ".... | C | Library/Sources/Stroika/Foundation/Containers/DataStructures/STLContainerWrapper.h | SophistSolutions/Stroika | mit | 6,578 | 186 | codeparrot/github-code |
46de1fdb8f7919f75f3f817358a6362a0a8ddb4b805e5d152dcabc299a202e18 | import {writeFile} from 'fs-promise';
import {get, has, merge, set} from 'lodash/fp';
import flatten from 'flat';
import fs from 'fs';
import path from 'path';
const data = new WeakMap();
const initial = new WeakMap();
export default class Config {
constructor(d) {
data.set(this, d);
initial.set(this, Objec... | JavaScript | src/lib/config.js | ianwremmel/boilerize | mit | 1,639 | 77 | codeparrot/github-code |
2fbf0ff40935012279692353f47e2ef2198fa0297aec7f2191ea33ea179aec1b | <?php namespace Helpers;
/**
*This class handles rendering of view files
*
*@author Geoffrey Oliver <geoffrey.oliver2@gmail.com>
*@copyright Copyright (c) 2015 - 2020 Geoffrey Oliver
*@link http://libraries.gliver.io
*@category Core
*@package Core\Helpers\View
*/
use Drivers\Templates\Implementation;
use Exce... | PHP | system/Helpers/View.php | ggiddy/documentation | mit | 3,113 | 124 | codeparrot/github-code |
0b74d646838b6616b17811ac0e5fe53af0def05a1c6cd6af5616dd748db834d8 | #! python3
"""
GUI for Ultrasonic Temperature Controller
Copyright (c) 2015 by Stefan Lehmann
"""
import os
import datetime
import logging
import json
import serial
from qtpy.QtWidgets import QAction, QDialog, QMainWindow, QMessageBox, \
QDockWidget, QLabel, QFileDialog, QApplication
from qtpy.QtGui imp... | Python | jsonwatchqt/mainwindow.py | MrLeeh/jsonwatchqt | mit | 19,071 | 552 | codeparrot/github-code |
816af84510e78c2abb8fe7de817abf7881fda43f2a1184e635b9a359bb80a043 | package main
import (
"bufio"
"fmt"
"os"
"strconv"
"strings"
)
func main() {
sc := bufio.NewScanner(os.Stdin)
sc.Split(bufio.ScanWords)
n := nextInt(sc)
a := nextInt(sc)
b := nextInt(sc)
answer := 0
for i := 1; i <= n; i++ {
sum := 0
for _, s := range fmt.Sprintf("%d", i) {
x, _ := strconv.Atoi(st... | GO | at_coder/abc/ABC083B_SomeSums/ABC083B.go | bati11/study-algorithm | mit | 973 | 65 | codeparrot/github-code |
1c59a0164e469a8db8f20d310fae93cf428cbc6380d13d931faca3714213a6f7 | import Vue from 'vue'
import Router from 'vue-router'
import index from '../components/index'
import project from '../components/project/index'
import proAdd from '../components/project/proAdd'
import proList from '../components/project/proList'
import apiList from '../components/project/apiList'
import apiView from '.... | TypeScript | web/src/service/router.ts | studyweb2017/best-api | mit | 3,538 | 164 | codeparrot/github-code |
5d14ba1f43419f11e982a1116e94b8bb722909769f1236a8dd67331f01365e76 | #include "StdAfx.h"
#include ".\datawriter.h"
using namespace std;
DataWriter::DataWriter(const std::string &fileName)
{
this->fileName = fileName;
fileStream = NULL;
//Initialize the filestream
fileStream = new fstream(fileName.c_str(), ios::out|ios::binary|ios::trunc);
}
void DataWri... | C++ | DataWriter.cpp | AngryLawyer/SiegeUnitConverterCpp | mit | 1,869 | 79 | codeparrot/github-code |
b9436b4f120599d0dbe963e7bc2aa91713d89f42db500c15d379fdaa79545fee | namespace mazes.Core.Grids {
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using mazes.Core.Cells;
using mazes.Core.Grids.Cartesian;
public class WeaveGrid : Grid {
private readonly List<UnderCell> _underCells = new List<UnderCell>();
... | C# | mazes/Core/Grids/WeaveGrid.cs | ericrrichards/mazes | mit | 2,676 | 73 | codeparrot/github-code |
99a600e9bbdb7c12b6fa49e054aa8910a0b32ff67e581eb3f159aa93af76d975 | package stream.flarebot.flarebot.mod.modlog;
public enum ModAction {
BAN(true, ModlogEvent.USER_BANNED),
SOFTBAN(true, ModlogEvent.USER_SOFTBANNED),
FORCE_BAN(true, ModlogEvent.USER_BANNED),
TEMP_BAN(true, ModlogEvent.USER_TEMP_BANNED),
UNBAN(false, ModlogEvent.USER_UNBANNED),
KICK(true, Modl... | Java | src/main/java/stream/flarebot/flarebot/mod/modlog/ModAction.java | FlareBot/FlareBot | mit | 1,090 | 44 | codeparrot/github-code |
68ce7ec3bc308c3f97c8f3f7eaafa86fdbd9980afb83eaf3b1c40d2fc967a32f | <?php
/**
* @package Update
* @category modules
* @author Nazar Mokrynskyi <nazar@mokrynskyi.com>
* @copyright Copyright (c) 2013-2014, Nazar Mokrynskyi
* @license MIT License, see license.txt
*/
namespace cs;
use h;
$Config = Config::instance();
$db = DB::instance();
$Inde... | PHP | components/modules/Update/admin/index.php | nazar-pc/cherrytea.org-old | mit | 1,229 | 47 | codeparrot/github-code |
5357ea864669a743b44675f570a737d738cbf6165ee4660710e0c65ad0fb486d | #pragma once
#include "dg/enums.h"
#include "json/json.h"
namespace eule{
/**
* @brief Provide a mapping between input file and named parameters
*/
struct Parameters
{
unsigned n; //!< \# of polynomial coefficients in R and Z
unsigned Nx; //!< \# of cells in x -direction
unsigned Ny; //!< \# of cells in ... | C | src/feltor/parameters.h | e3reiter/feltor | mit | 7,652 | 176 | codeparrot/github-code |
dc2c71bf45ae99197b0b8fb5b7a49e16420c3c18a4cc4366bcd0b5af75dace17 | import PartyBot from 'partybot-http-client';
import React, { PropTypes, Component } from 'react';
import cssModules from 'react-css-modules';
import styles from './index.module.scss';
import Heading from 'grommet/components/Heading';
import Box from 'grommet/components/Box';
import Footer from 'grommet/components/Foote... | JavaScript | app/src/pages/ManageTablesPage/index.js | JaySmartwave/palace-bot-sw | mit | 17,890 | 569 | codeparrot/github-code |
1384945791ea2719ced06c6b6394da8112bf42141f748fbaf488ba6a2f0d02ac | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using gView.Framework.IO;
using gView.Framework.Data;
using gView.Framework.UI;
namespace gView.Framework.UI.Dialogs
{
public partial class FormMetada... | C# | gView.Explorer.UI/Framework/UI/Dialogs/FormMetadata.cs | jugstalt/gViewGisOS | mit | 1,880 | 67 | codeparrot/github-code |
ed0f4063ad23c0aba4bc1b470d932b46558d15e61a15cf70261f668cb7ab2a58 | namespace EgaViewer_v2
{
partial class CustomPictureBox
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
... | C# | EgaViewer_v2/CustomPictureBox.Designer.cs | ChainedLupine/BSAVEViewer | mit | 1,031 | 37 | codeparrot/github-code |
2dfbfef12f661bff919db1b5ae8d5b5904ba2979a6b27a97781fbd3f563ecb42 | # encoding: UTF-8
module DocuBot::LinkTree; end
class DocuBot::LinkTree::Node
attr_accessor :title, :link, :page, :parent
def initialize( title=nil, link=nil, page=nil )
@title,@link,@page = title,link,page
@children = []
end
def anchor
@link[/#(.+)/,1]
end
def file
@link.sub(/#.+/,'')
end
def ... | Ruby | lib/docubot/link_tree.rb | Phrogz/docubot | mit | 2,249 | 112 | codeparrot/github-code |
c30c8a687b92c6b0a6b34a00994a2db1f81714010b53b6e5ed928ed0bcb5a4fc | "use strict"
const messages = require("..").messages
const ruleName = require("..").ruleName
const rules = require("../../../rules")
const rule = rules[ruleName]
testRule(rule, {
ruleName,
config: ["always"],
accept: [ {
code: "a { background-size: 0 , 0; }",
}, {
code: "a { background-size: 0 ,0; }... | JavaScript | lib/rules/value-list-comma-space-before/__tests__/index.js | hudochenkov/stylelint | mit | 5,084 | 212 | codeparrot/github-code |
72a6a1ace9fa0e22e7a1df1c9d90d46df116e710d81c5c5109baf085c1d730c4 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Login Page - Photon Admin Panel Theme</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<link rel="shortcut icon" href="http://photonui.orangehilldev.com/css/css_comp... | HTML | lib/assets/css/css_compiled/@{photonImagePath}plugins/elrte/js/plugins/js/bootstrap/js/plugins/prettify/js/plugins/jquery.autotab-1.1b.js.html | user-tony/photon-rails | mit | 15,506 | 183 | codeparrot/github-code |
d1662246f888e087193d523a0cfbf0670d7218d58fdefb5c527f39a49126da2a | # -*- coding: utf-8 -*-
"""
"""
from datetime import datetime, timedelta
import os
from flask import request
from flask import Flask
import pytz
import db
from utils import get_remote_addr, get_location_data
app = Flask(__name__)
@app.route('/yo-water/', methods=['POST', 'GET'])
def yowater():
payload = re... | Python | server.py | YoApp/yo-water-tracker | mit | 1,848 | 74 | codeparrot/github-code |
3379fabfeebe702025c2b4f4f9ffd141da3494fc674a86137811c8046bc6a456 | from django.conf.urls import patterns, include, url
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
admin.autodiscover()
import views
urlpatterns = patterns('',
url(r'^pis', views.pis),
url(r'^words', views.words, { 'titles': False }),
url(r'^p... | Python | webApp/urls.py | ctames/conference-host | mit | 1,850 | 42 | codeparrot/github-code |
b143bbcdbfa0c5cb75c95878c47033c2473b9626cd82282e74491f498bcfdf98 | package br.eti.qisolucoes.contactcloud.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.conf... | Java | src/main/java/br/eti/qisolucoes/contactcloud/config/SecurityConfig.java | nosered/contact-cloud | mit | 1,557 | 38 | codeparrot/github-code |
b5c4fe2640e2ba09ef137f801e27cbc861b3cc91f80fe55ca37d8bc26ba8ed46 | package de.chandre.admintool.security.dbuser.repo;
import java.util.List;
import java.util.Set;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import de.chandre.admintool.security.dbuser.do... | Java | admin-tools-security/admin-tools-security-dbuser/src/main/java/de/chandre/admintool/security/dbuser/repo/RoleRepository.java | andrehertwig/admintool | mit | 723 | 31 | codeparrot/github-code |
fc799643bc55a700bf900f97dca5252929fd207f29c64c9eb19bb182ea3f3f51 | #!/usr/bin/env node
var listCommand = [];
require('./listCommand')(listCommand)
var logDetail = (str) => {
console.log(' > '+str);
}
var printHelp = () => {
var txtHelp = "";
var h = ' ';
var t = ' ';
txtHelp += "\n"+h+"Usage : rider [command] \n";
txtHelp += "\n"+h+"Command List : \n";
var maxText = 0;
... | JavaScript | cli.js | khajer/rider.js | mit | 2,029 | 108 | codeparrot/github-code |
a0504ea0d4e28e3725641ce088d20e6023c79c280bcc3ece636bb7e4c638f477 | <?php
namespace Hal\Controller;
/*
* File: /app/code/core/system/base_controller.php
* Purpose: Base class from which all controllers extend
*/
class Base_Controller {
protected $action;
public $cache;
public $config;
private $controller;
private $controller_class;
private $controller_filename;
protected ... | PHP | app/code/core/system/controllers/Base_Controller.php | arout/diamondphp | mit | 6,878 | 198 | codeparrot/github-code |
45287da06c45950cc4b9d9175959bd08cced4e49bed6f6c6c1bfa0c66d99ee13 | import React from "react";
import $ from "jquery";
import "bootstrap/dist/js/bootstrap.min";
import "jquery-ui/ui/widgets/datepicker";
import {
postFulltimeEmployer,
postParttimeEmployer,
putFullTimeEmployer,
putParttimeEmployer
} from "../actions/PostData";
import DropDownBtn from "../components/DropDo... | JavaScript | quanlynhanvien/src/components/ModalEmployer.js | liemnt/quanlynv | mit | 10,398 | 256 | codeparrot/github-code |
d2216739399496d475710ace4f995f59f2a0687f72e2d044f0ef34c8c976e9a9 | <?php
namespace Aurex\Framework\Module\Modules\FormDoctrineModule;
use Symfony\Bridge\Doctrine\Form\DoctrineOrmExtension,
Silex\Provider\TranslationServiceProvider,
Aurex\Framework\Module\ModuleInterface,
Silex\Provider\SessionServiceProvider,
Silex\Provider\FormServiceProvider,
Aurex\Framework\Au... | PHP | lib/Framework/Module/Modules/FormDoctrineModule/FormDoctrineModule.php | J7mbo/Aurex | mit | 1,340 | 47 | codeparrot/github-code |
384bf62ff7540a95ab82146d4bae1585d7c88bc3764b3ca9442677501a1e2053 | <html><!-- Created using the cpp_pretty_printer from the dlib C++ library. See http://dlib.net for updates. --><head><title>dlib C++ Library - matrix_expressions_ex.cpp</title></head><body bgcolor='white'><pre>
<font color='#009900'>// The contents of this file are in the public domain. See LICENSE_FOR_EXAMPLE_PROGRAM... | HTML | DynamicGestures/dlib-18.5/docs/matrix_expressions_ex.cpp.html | kaathleen/LeapGesture-library | mit | 37,000 | 401 | codeparrot/github-code |
606d9702162322e777576dc322f456a204b8714741051722b1de451d3a5ed3da | package types
// ApiVersion custom ENUM for SDK forward compatibility
type ApiVersion int
const (
ApiV1 ApiVersion = iota
)
// EnvironmentType
// https://docs.coinapi.io/#endpoints-2
type EnvironmentType int
const (
ProdEncrypted EnvironmentType = iota
ProdInsecure
TestEncrypted
TestInsecure
)
// MessageType ... | GO | data-api/go-ws/api/types/enums.go | coinapi/coinapi-sdk | mit | 1,517 | 49 | codeparrot/github-code |
02bbe7a6ac4993403aebd86593f567090cb54fbb25896cd9d314ae362a743ece | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class oscilation : MonoBehaviour {
public float m_speed = 0.008f;
public int m_distance = 45;
private int compteur = 0;
private int compteur2 = 0;
// Use this for initialization
void Start () {
Vector3 yOrigin = transform.l... | C# | Assets/oscilation.cs | Wormkil/firstProject | mit | 960 | 47 | codeparrot/github-code |
cafb962191f2d2e854eb2ff38a2d1c51145b219ca83f249c03a0fc2ef6668a5b | using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Linq;
using System.Threading.Tasks;
using System.Net;
using System.Web;
using System.Web.Mvc;
using Transit.Models;
namespace Transit.Controllers
{
public class RoutesController : Controller
{
pri... | C# | Transit/Controllers/RoutesController.cs | cdchild/TransitApp | mit | 4,628 | 138 | codeparrot/github-code |
3c47fe4ef73f5025916a777ba77e2ccabd047033fb60a495cb0ef680c2da4e0e | /*
* This file is part of LuckPerms, licensed under the MIT License.
*
* Copyright (c) lucko (Luck) <luck@lucko.me>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* ... | Java | nukkit/src/main/java/me/lucko/luckperms/nukkit/inject/server/InjectorSubscriptionMap.java | lucko/LuckPerms | mit | 4,057 | 112 | codeparrot/github-code |
57020cd3b6eed7fdca197cc3f3ac58fedf362328cf1eea0bbced1a4ab379c984 | jQuery(document).ready(function(){
jQuery('.carousel').carousel()
var FPS = 30;
var player = $('#player')
var pWidth = player.width();
$window = $(window)
var wWidth = $window.width();
setInterval(function() {
update();
}, 1000/FPS);
function update() {
if(keydown.space) {
player.shoot();
}... | JavaScript | js/main.js | ni5ni6/chiptuna.com | mit | 739 | 58 | codeparrot/github-code |
90ec716f28869c3bc200a7623f7a77f5dc6794fafa1cf8e1397ba0838e6a7f7c | // Copyright (c) 2015 The original author or authors
//
// This software may be modified and distributed under the terms
// of the MIT license. See the LICENSE file for details.
#if UNITY_EDITOR
using SpriterDotNet;
using System;
using System.IO;
using System.Linq;
using UnityEditor;
using UnityEngine;
namespace S... | C# | SpriterDotNet.Unity/Assets/SpriterDotNet/SpriterImporter.cs | adamholdenyall/SpriterDotNet | mit | 4,691 | 137 | codeparrot/github-code |
8a7eb4c34428057ebadfd5160690c2f8035f8999e558d4d2a9886bd68e565aa5 | package cwr;
import java.util.ArrayList;
public class RobotBite
{
//0 = time [state]
//1 = x [state]
//2 = y [state]
//3 = energy [state]
//4 = bearing radians [relative position]
//5 = distance [relative position]
//6 = heading radians [travel]
//7 = velocity [travel]
String name;
long c... | Java | old_src/cwr/RobotBite.java | buckbaskin/RoboCodeGit | mit | 1,934 | 70 | codeparrot/github-code |
96dee749d1e8632223c29f308a502a87e500531f907b0845f31d0e4cb7ee9c2b | import * as UTILS from '@utils';
const app = new WHS.App([
...UTILS.appModules({
position: new THREE.Vector3(0, 40, 70)
})
]);
const halfMat = {
transparent: true,
opacity: 0.5
};
const box = new WHS.Box({
geometry: {
width: 30,
height: 2,
depth: 2
},
modules: [
new PHYSICS.BoxModu... | JavaScript | examples/physics/Constraints/DofConstraint/script.js | WhitestormJS/whs.js | mit | 1,332 | 91 | codeparrot/github-code |
44d5673d23a89096efcd3cec7d739ada9b8654752b4d97a276b23d4406bd281f | package unit.com.bitdubai.fermat_dmp_plugin.layer.basic_wallet.bitcoin_wallet.developer.bitdubai.version_1.structure.BitcoinWalletBasicWalletAvailableBalance;
import com.bitdubai.fermat_api.layer.dmp_basic_wallet.common.exceptions.CantRegisterDebitException;
import com.bitdubai.fermat_api.layer.dmp_basic_wallet.bitco... | Java | DMP/plugin/basic_wallet/fermat-dmp-plugin-basic-wallet-bitcoin-wallet-bitdubai/src/test/java/unit/com/bitdubai/fermat_dmp_plugin/layer/basic_wallet/bitcoin_wallet/developer/bitdubai/version_1/structure/BitcoinWalletBasicWalletAvailableBalance/DebitTest.java | fvasquezjatar/fermat-unused | mit | 5,573 | 128 | codeparrot/github-code |
1822c9a600358749dbab6a79fe8c121df8a233e0ef2ca6aad2472b20c5d06251 | // ******************************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THE CODE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTAB... | C# | Microsoft.Toolkit.Uwp.Services/OAuth/OAuthUriExtensions.cs | phmatray/UWPCommunityToolkit | mit | 2,606 | 72 | codeparrot/github-code |
893132c5b6c6c368cf49de6525211fe7059aeb85f70d03c4a78329e28f281225 | #ifndef BITMAP_H
#define BITMAP_H
#include <allegro5/allegro.h>
#include <memory>
#include "renderlist.h"
// This class does double duty as a renderable, and a wrapper for allegro bitmap.
class Bitmap;
using BitmapPtr = std::shared_ptr<Bitmap>;
class Bitmap : public Renderable
{
ALLEGRO_BITMAP* bitmap;
floa... | C | src/bitmap.h | merlinblack/oyunum | mit | 1,343 | 53 | codeparrot/github-code |
ebf766ab11bf9caf12c71784fcfc99719fb5540fad02673d5a1f97a94915e89a | /*
gopm (Go Package Manager)
Copyright (c) 2012 cailei (dancercl@gmail.com)
The MIT 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 restriction, including without limitation... | GO | gopm/agent.go | cailei/gopm | mit | 3,137 | 118 | codeparrot/github-code |
edeb3be7d7398794e4c06ba699365348bc26c8866ce3348e4797a1658e243e9b | package org.usfirst.frc.team6135.robot.subsystems;
import java.awt.geom.Arc2D.Double;
import org.usfirst.frc.team6135.robot.RobotMap;
import org.usfirst.frc.team6135.robot.commands.teleopDrive;
import com.kauailabs.navx.frc.AHRS;
import edu.wpi.first.wpilibj.ADXRS450_Gyro;
import edu.wpi.first.wpilibj.RobotDrive;
im... | Java | src/org/usfirst/frc/team6135/robot/subsystems/Drive.java | Arctos6135/frc-2017 | mit | 4,676 | 137 | codeparrot/github-code |
74a4e9457564cf4412b06eac37d6922b12117fc6af6632a0d7e52617993f52c0 | module Shopping
class LineItem < ActiveRecord::Base
extend Shopping::AttributeAccessibleHelper
belongs_to :cart
belongs_to :source, polymorphic: true
validate :unique_source_and_cart, on: :create
validate :unpurchased_cart
validates :quantity, allow_nil: true, numericality: {only... | Ruby | app/models/shopping/line_item.rb | barkbox/shopping | mit | 1,352 | 43 | codeparrot/github-code |
ba5ff604b89ee9e5eafde74e12b09ef718249aae2ff05e0434bc3f44554cff5a | <?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... | PHP | app/AppKernel.php | longran/project1 | mit | 1,458 | 38 | codeparrot/github-code |
86c82034c37d9fc8914f72ab14b3c9d68b1ad1d3d85cc974c40159faca219748 | #!/usr/bin/env python
"""
This script is used to run tests, create a coverage report and output the
statistics at the end of the tox run.
To run this script just execute ``tox``
"""
import re
from fabric.api import local, warn
from fabric.colors import green, red
if __name__ == '__main__':
# Kept some files for ... | Python | runtests.py | bitmazk/django-libs | mit | 1,182 | 32 | codeparrot/github-code |
455d46cba3314158f2534d3bb53ca3df91d821d71560486dc48807b459a71944 | from baroque.entities.event import Event
class EventCounter:
"""A counter of events."""
def __init__(self):
self.events_count = 0
self.events_count_by_type = dict()
def increment_counting(self, event):
"""Counts an event
Args:
event (:obj:`baroque.entities.ev... | Python | baroque/datastructures/counters.py | baroquehq/baroque | mit | 1,120 | 47 | codeparrot/github-code |
054ff2b78ad84b5b1ebf6a18eb376efb057a4bb75b46060f81fbf0b4cce76060 | // ==========================================================================
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex UG (haftungsbeschraenkt)
// All rights reserved. Licensed under the MIT license.
// ===========================... | C# | backend/src/Squidex/Areas/IdentityServer/Config/AlwaysAddTokenHandler.cs | Squidex/squidex | mit | 1,158 | 35 | codeparrot/github-code |
92a35fb4838650c376207fe17d7dd7551562d3f5c75225311028aae8f158a40d | using System.Diagnostics.CodeAnalysis;
namespace Npoi.Mapper
{
/// <summary>
/// Information for one row that read from file.
/// </summary>
/// <typeparam name="TTarget">The target mapping type for a row.</typeparam>
[SuppressMessage("ReSharper", "UnusedAutoPropertyAccessor.Global")]
public c... | C# | Npoi.Mapper/src/Npoi.Mapper/RowInfo.cs | donnytian/Npoi.Mapper | mit | 1,650 | 56 | codeparrot/github-code |
e52389dc15c58dd2ba04444bcae91b2b48459781a6fc1a16872ba9799afade92 | import { Injectable } from '@angular/core';
import {Http,Response,ConnectionBackend,Headers,RequestMethod} from '@angular/http';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/operator/map';
import 'rxjs/add/operator/toPromise';
import{AppHttpUtil} from '../appUtil/httpUtil';
import {AppPermService... | TypeScript | app/appService/loginService.ts | inherents/efeNew | mit | 833 | 32 | codeparrot/github-code |
fdbb90ae6ba2589031206fa2338715fb21095361cc4c6b6181856962120feca1 | import numpy as np
class Surface(object):
def __init__(self, image, edge_points3d, edge_points2d):
"""
Constructor for a surface defined by a texture image and
4 boundary points. Choose the first point as the origin
of the surface's coordinate system.
:param image: image a... | Python | app/surface.py | yangshun/cs4243-project | mit | 3,220 | 107 | codeparrot/github-code |
f41a370bbd16a50c08a0deb380d41013c4f0fb7decdc090c6c2c95db61125a21 | import { fullSrc } from '../element/element';
import { pixels } from '../math/unit';
import { Clone } from './clone';
import { Container } from './container';
import { Image } from './image';
import { Overlay } from './overlay';
import { Wrapper } from './wrapper';
export class ZoomDOM {
static useExisting(element... | TypeScript | src/dom/zoom-dom.ts | MikeBull94/zoom.ts | mit | 3,272 | 105 | codeparrot/github-code |
061f260f0ba71899cdeec3f605214ea15b614e063b6b45c7b246a25abc7df4bf | "use strict";
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var qs = require("querystring");
var partial ... | JavaScript | lib/stats.js | weixiyen/nba | mit | 1,662 | 58 | codeparrot/github-code |
d20d969fdce8fbbaeb14d64acab85e79c373a192c7d2b4006b6b7d3a7d56acdf | <?php
/* TwigBundle:Exception:exception.json.twig */
class __TwigTemplate_8d9b12e119daada0de361618d51aaa01 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
);
}
protec... | PHP | app/cache/prod/twig/8d/9b/12e119daada0de361618d51aaa01.php | waltertschwe/kids-reading-network | mit | 1,455 | 40 | codeparrot/github-code |
d2fdbbd24d05c47750fd3ef733a5fc392c852d3a37120a5476f9da809257fa01 | {% extends "base.html"%}
{% block title %}Sequence{% endblock %}
<!---- css/js dependencies ---->
{% block head %}
<link rel="stylesheet" type="text/css" href="{{ static_file('css/rhizo/app.css') }}">
<script type="text/javascript" src="/static/js/moment.min.js"></script>
<script type="text/javascript" src="/static/js... | HTML | main/templates/resources/sequence.html | rhizolab/rhizo-server | mit | 9,049 | 273 | codeparrot/github-code |
505cbe7b721a237e9bcf755c6cb01f9544404f50195fda2c304af345c45a8eb7 | package commands
import (
"compress/gzip"
"errors"
"fmt"
"io"
"os"
"path/filepath"
"strings"
core "github.com/ipfs/go-ipfs/core"
cmdenv "github.com/ipfs/go-ipfs/core/commands/cmdenv"
e "github.com/ipfs/go-ipfs/core/commands/e"
tar "gx/ipfs/QmQine7gvHncNevKtG9QXxf3nXcwSj6aDDmMm52mHofEEp/tar-utils"
uarchiv... | GO | core/commands/get.go | chriscool/go-ipfs | mit | 6,703 | 255 | codeparrot/github-code |
2ec1b2b374121efa6c43409640d18db1794074a53defcf1a99296e847ab48d7e | package org.reasm.m68k.assembly.internal;
import javax.annotation.Nonnull;
import javax.annotation.concurrent.Immutable;
import org.reasm.Value;
import org.reasm.ValueToBooleanVisitor;
/**
* The <code>WHILE</code> directive.
*
* @author Francis Gagné
*/
@Immutable
class WhileDirective extends Mnemonic {
@No... | Java | src/main/java/org/reasm/m68k/assembly/internal/WhileDirective.java | reasm/reasm-m68k | mit | 1,746 | 60 | codeparrot/github-code |
eb85e59193620aeb49f86e6cb70a8c7498bab374fb0d8bd3031eb127d714cfe1 | /*
* This file is part of FlexibleLogin
*
* The MIT License (MIT)
*
* Copyright (c) 2015-2018 contributors
*
* 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, incl... | Java | src/main/java/com/github/games647/flexiblelogin/listener/prevent/PreventListener.java | games647/FlexibleLogin | mit | 8,213 | 182 | codeparrot/github-code |
4cc210413f2a749685ac1362c1c973e905ecb8330133de74f182ccce032cce90 | package com.contexthub.storageapp;
import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.support.v4.view.MenuItemCompat;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.widget.SearchView;
import android.view.Menu;
import android.view.MenuItem;
import com.ch... | Java | StorageApp/app/src/main/java/com/contexthub/storageapp/MainActivity.java | contexthub/storage-android | mit | 4,259 | 114 | codeparrot/github-code |
f47154f9e2db526b9bc121cf90a7a2cf4f08412161ec6292062105bc5ec25be5 |
// Copyright Aleksey Gurtovoy 2000-2004
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.lslboost.org/LICENSE_1_0.txt)
//
// Preprocessed version of "lslboost/mpl/list/list10_c.hpp" header
// -- DO NOT modify by hand!
namespace lslb... | C++ | liblsl/external/lslboost/mpl/list/aux_/preprocessed/plain/list10_c.hpp | gazzlab/LSL-gazzlab-branch | mit | 2,868 | 165 | codeparrot/github-code |
7a83b2369ed7a303243457533dde0ea17b45324f65617492807dca0038de2f64 | package org.kalnee.trivor.insights.web.rest;
import com.codahale.metrics.annotation.Timed;
import org.kalnee.trivor.insights.domain.insights.Insights;
import org.kalnee.trivor.insights.service.InsightService;
import org.kalnee.trivor.nlp.domain.ChunkFrequency;
import org.kalnee.trivor.nlp.domain.PhrasalVerbUsage;
impo... | Java | insights/src/main/java/org/kalnee/trivor/insights/web/rest/InsightsResource.java | kalnee/trivor | mit | 4,162 | 101 | codeparrot/github-code |
45ba6e58822eca1a262397a0996e79f7f6c884ef7e080361a05275f356d9b417 | <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Confidence Intervals on the Standard Deviation</title>
<link rel="stylesheet" href="../../../../math.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.77.1">
<link rel="home" href="../../../.... | HTML | external/boost_1_59_0/libs/math/doc/html/math_toolkit/stat_tut/weg/cs_eg/chi_sq_intervals.html | Franky666/programmiersprachen-raytracer | mit | 19,774 | 237 | codeparrot/github-code |
c6cdca0fdddffe41ee323be3087ce942437bc4630e7850039375f96a9d2d3e2f | #pragma once
#include "messages.h"
#include "primitives/string_utils.h"
// Given pairs of pulse lens from 2 base stations, this class determines the phase for current cycle
// Phases are:
// 0) Base 1 (B), horizontal sweep
// 1) Base 1 (B), vertical sweep
// 2) Base 2 (C), horizontal sweep
// 3) Base 2 (C), v... | C | include/cycle_phase_classifier.h | ashtuchkin/vive-diy-position-sensor | mit | 1,815 | 54 | codeparrot/github-code |
71daf846f3b480556572a1a53a5ea67c7241e7abcd72f4a2795f8c7c85bbfd9b | /*
* The MIT License (MIT)
*
* Copyright (c) 2015 maldicion069
*
* 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,... | JavaScript | views/account/experiments/compare/stages.js | maldicion069/HBPWebNodeJs | mit | 9,890 | 351 | codeparrot/github-code |
6c36fc6b92c52c2d6483666a535f9bc6bc621845f8570122a792d499c447135c | #ifndef ECLAIR_DIRECTORY_H
# define ECLAIR_DIRECTORY_H
# include "eclair.h"
# include <sys/types.h>
# include <dirent.h>
namespace Eclair
{
struct DirectoryFile
{
std::string name;
bool is_directory;
bool is_regular_file;
};
class Directory
{
private:
std::string _dirname;
DIR *_dir = nullptr;
... | C | include/directory.h | alex8092/eclaircpp | mit | 824 | 43 | codeparrot/github-code |
2e689099808d622293f57a80da193ff456bc71ddf83712864bcbb3045392a56e | /*
The MIT License (MIT)
Copyright (c) 2014 Manni Wood
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, pu... | Java | src/main/java/com/manniwood/cl4pg/v1/exceptions/Cl4pgConfFileException.java | manniwood/cl4pg | mit | 1,781 | 51 | codeparrot/github-code |
6bba0b89d6ec3604f428c36c8f69d6cfd2e477d57cb2c2e6d474971a26a7df41 | package com.cosium.spring.data.jpa.entity.graph.repository.support;
import com.google.common.base.MoreObjects;
import org.springframework.core.ResolvableType;
import org.springframework.data.jpa.repository.query.JpaEntityGraph;
import static java.util.Objects.requireNonNull;
/**
* Wrapper class allowing to hold a {... | Java | core/src/main/java/com/cosium/spring/data/jpa/entity/graph/repository/support/EntityGraphBean.java | Cosium/spring-data-jpa-entity-graph | mit | 2,555 | 89 | codeparrot/github-code |
8052bb0b212524e5f25285fc4874aa899f2e54b8268cd3f1e3e0a50f53e3512b | package mqttpubsub
import (
"encoding/json"
"fmt"
"sync"
"time"
log "github.com/Sirupsen/logrus"
"github.com/brocaar/loraserver/api/gw"
"github.com/brocaar/lorawan"
"github.com/eclipse/paho.mqtt.golang"
)
// Backend implements a MQTT pub-sub backend.
type Backend struct {
conn mqtt.Client
txPacketC... | GO | backend/mqttpubsub/backend.go | kumara0093/loraserver | mit | 4,289 | 145 | codeparrot/github-code |
f6f06d56686866e14c6852d056c4d1a5a87f7dd98b5a8421d456fac707e32fc3 | "use strict";
define("ace/mode/asciidoc_highlight_rules", ["require", "exports", "module", "ace/lib/oop", "ace/mode/text_highlight_rules"], function (require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
... | JavaScript | clients/ace-builds/src/mode-asciidoc.js | IonicaBizau/arc-assembler | mit | 13,207 | 219 | codeparrot/github-code |
7944c67c2b1f8b7b0acfb60da4a9ba27dfd8ce120091b625f2f3b3dd0d3b95ac |
/*
*
* Copyright (c) 2013 - 2014 INT - National Institute of Technology & COPPE - Alberto Luiz Coimbra Institute
- Graduate School and Research in Engineering.
* See the file license.txt for copyright permission.
*
*/
package cargaDoSistema;
import modelo.TipoUsuar... | Java | test/cargaDoSistema/CargaUsuario.java | dayse/gesplan | mit | 4,187 | 118 | codeparrot/github-code |
0fa206a4520cb3e84f77f7d3ac4b745433655ee58a1df6d01af9f54680305b90 | import * as React from 'react'
import {Component, ComponentClass, createElement} from 'react'
import * as PropTypes from 'prop-types'
import {connect} from 'react-redux'
import {Store} from '../store'
import ComputedState from '../model/ComputedState'
function connectToStore<P>(component:ComponentClass<P>):ComponentCl... | TypeScript | src/react/connectToStore.tsx | kenfehling/react-router-nested-history | mit | 921 | 30 | codeparrot/github-code |
1ab5971be6cfcfd40f50f0d333f6d82b3fa780bd08a283e75d2c05d285097755 | using Mokkosu.AST;
using System.Collections.Generic;
using System.Text;
namespace Mokkosu.ClosureConversion
{
class ClosureConversionResult
{
public Dictionary<string, MExpr> FunctionTable { get; private set; }
public MExpr Main { get; private set; }
public ClosureConversionResult(Dic... | C# | VS2013/MokkosuCore/ClosureConversion/ClosureConversionResult.cs | lambdataro/Mokkosu | mit | 868 | 34 | codeparrot/github-code |
7b8010311985f4433fa86e6a6371d5125a8b00729ed7822323a029e7b30460d2 | package stat
import (
"fmt"
"time"
// "encoding/json"
)
type RevStat struct {
RevId string `json:"RevId"`
UserName string `json:"UserName"`
WordCount int `json:"WordCount"`
ModDate string `json:"ModDate"`
WordFreq []WordPair `json:"WordFreq"`
}
type DocStat struct {
FileId string... | GO | stat/stat.go | Kimau/GoDriveTracker | mit | 964 | 39 | codeparrot/github-code |
fbb038d97b757bf4059b92e55bb375effef213b6bc4559f1478994d1ec917e39 | require 'statsample'
module Grid
class Row
attr_reader :top_y, :bottom_y
def initialize(item)
@data = []
self << item
end
def <<(item)
@data << item
@top_y = quartiles_meam(@data.map(&:y))
@bottom_y = quartiles_meam(@data.map{|item| item.y + item.height})
end
... | Ruby | lib/grid/row.rb | xli/ewall | mit | 746 | 43 | codeparrot/github-code |
72c5e3e9052ca34ee7a5c1f2fe387ad2c7625f1c94f76924165ac4d33465e8c3 | //
// Person.h
// SJDBMapProject
//
// Created by BlueDancer on 2017/6/4.
// Copyright © 2017年 SanJiang. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "SJDBMapUseProtocol.h"
@class Book;
@class PersonTag;
@class Goods;
@class TestTest;
@interface Person : NSObject<SJDBMapUseProtocol>
@proper... | C | SJDBMapProject/Model/Person.h | changsanjiang/SJDBMap | mit | 1,100 | 52 | codeparrot/github-code |
961c9a81c64b01243139a814dbde73a02b9f9f0053a61acb8997bc14e52451ce |
/* ========================================
* File Name : B.cpp
* Creation Date : 16-11-2020
* Last Modified : Po 16. listopadu 2020, 01:03:10
* Created By : Karel Ha <mathemage@gmail.com>
* URL : https://codeforces.com/problemset/problem/1296/B
* Points Gained (in case of online contest) : AC... | C++ | codeforces/div3/1296/B/B.cpp | mathemage/CompetitiveProgramming | mit | 1,570 | 73 | codeparrot/github-code |
9cb26c431ac7e9926625867e67fc53db5a3069781a3c5063f7e39a13be131b83 | <!DOCTYPE html>
<html>
<head>
<title>Poet -- node.js blogging platform</title>
<link rel="stylesheet" href="styles/prettify.css">
<link rel="stylesheet" href="styles/poet.css">
<link href="http://fonts.googleapis.com/cs?family=La+Belle+Aurore" rel="stylesheet" type="text/css">
<script src="js/ga.j... | HTML | docs/public/index.html | jsantell/poet | mit | 14,428 | 206 | codeparrot/github-code |
f75b5ff7452737451c8895a57dcd70c6b159d074610e1dc8fc9e32e13a94b9d1 | /*
* @brief This file contains USB HID Keyboard example using USB ROM Drivers.
*
* @note
* Copyright(C) NXP Semiconductors, 2013
* All rights reserved.
*
* @par
* Software that is described herein is for illustrative purposes only
* which provides customers with programming information regarding the
* LPC pro... | C | Project/LPC1549_Keil/examples/usbd_rom/usbd_rom_hid_keyboard/hid_keyboard.c | miragecentury/M2_SE_RTOS_Project | mit | 7,219 | 226 | codeparrot/github-code |
c66f102edd020749442d540313b3acc9d05ead37271ca306286150a94dcaee89 | <?php
namespace DuxCms\Model;
use Think\Model;
/**
* 扩展字段数据操作
*/
class FieldDataModel extends Model {
//设置操作表
public function setTable($name) {
$this->trueTableName = $this->tablePrefix.'ext_'.$name;
}
/**
* 获取列表
* @return array 列表
*/
public function loadList($where,$limit... | PHP | Application/DuxCms/Model/FieldDataModel.class.php | coneycode/cmsForMePad | mit | 7,857 | 285 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.