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 |
|---|---|---|---|---|---|---|---|---|
856cb958607b7dd83366ee824ab2f7b1541ade6b218320d08a1f5c945eb848c4 | import itertools
import random
from hb_res.explanation_source import sources_registry, ExplanationSource
__author__ = 'moskupols'
ALL_SOURCES = sources_registry.sources_registered()
ALL_SOURCES_NAMES_SET = frozenset(sources_registry.names_registered())
all_words_list = []
words_list_by_source_name = dict()
for s i... | Python | explanator/_explanator.py | hatbot-team/hatbot | mit | 2,930 | 94 | codeparrot/github-code |
fb9aafc5f1838cf40cc60983dad05e17a89059843b917ed3cbcae186aee25bcc | using System;
using System.Threading;
using System.Threading.Tasks;
using Vault.Endpoints;
using Vault.Endpoints.Sys;
using Microsoft.Extensions.Options;
using System.Collections.Generic;
using System.Linq;
using System.Net;
namespace Vault
{
public class VaultClient : IVaultClient
{
priv... | C# | src/Vault/VaultClient.cs | Chatham/Vault.NET | mit | 5,118 | 139 | codeparrot/github-code |
5a788f4f5244569193aa265a8a74c4e0ad84d09a4593bb432970b574d31db495 | import React, { Component, PropTypes } from 'react';
import { Layout, NavDrawer, Navigation } from 'react-toolbox/components/index.js';
import { themr } from 'react-css-themr';
import Empty from './Empty';
import theme from './theme.scss';
export default function (Wrapped, Sidebar){
@themr('PageLayout', theme)
... | JavaScript | src/components/layout/PageLayout/index.js | jdbence/capstone-project | mit | 1,625 | 55 | codeparrot/github-code |
405331671fc2126906cce0c7e068e03aa4f48c89abeed77a5044b6ee39b9951c | // @flow
import {ReduceStore} from 'flux/utils'
import {fromJS} from 'immutable'
import {Map} from 'immutable'
import Prepositiond from '../Prepositiond'
import PrepositiondActionTypes from '../PrepositiondActionTypes'
import AppDispatcher from '../../../AppDispatcher'
import {MakePre... | JavaScript | src/data/dictionary/prepositiond/addedit/PrepositiondAEStore.js | bostontrader/senmaker | mit | 5,154 | 134 | codeparrot/github-code |
406cb4fe554b9ad1756f208381986b5f02e8cfaf9e581e60246c6449192dc83e | var b64url = require('b64url');
var crypto = require('crypto');
var qs = require('querystring');
var request = require('request');
var Faceplate = function(options) {
var self = this;
this.options = options || {};
this.app_id = this.options.app_id;
this.secret = this.options.secret;
this.middlewa... | JavaScript | index.js | bryanwood/bryan-faceplate | mit | 4,724 | 182 | codeparrot/github-code |
cfa9e48a25f87c922148c70d0296666ba4a256d231c2db003efef4ccc8528505 | #!/usr/bin/env bash
source ~/.bash_profile
production=false
function show_help {
echo "Default deploys to qa.timgrowney.com. Use -p for production."
exit 1;
}
# Check if config.env exists
filename="./config.env"
if [ ! -f ${filename} ]; then
echo "Please copy sample.config.env to config.env and set your... | Shell | scripts/deploy.sh | anonmos/blog | mit | 870 | 41 | codeparrot/github-code |
9840161802b7c85105c2a8f4b525769bd10e2d3894dc1e8cbd2cc182d254717e | --- === hs.layout ===
---
--- Window layout manager
---
--- This extension allows you to trigger window placement/sizing to a number of windows at once
local layout = {}
local geometry = require("hs.geometry")
local fnutils = require("hs.fnutils")
local screen = require("hs.screen")
local window = require("hs.window")... | Lua | extensions/layout/init.lua | TimVonsee/hammerspoon | mit | 8,939 | 212 | codeparrot/github-code |
fb73e1b6d51bf51f86b07b146af525064ef5d25cde7a6c30807dc7f0f5ee9e53 | (function() {
'use strict';
var validator = require('validator');
/**
* Render the main application page
*/
exports.renderIndex = function (req, res) {
var safeUserObject = null;
if (req.user) {
safeUserObject = {
displayName: validator.escape(req.user.displayName),
provid... | JavaScript | modules/core/server/controllers/core.server.controller.js | shackApp/mean | mit | 1,518 | 62 | codeparrot/github-code |
261a4cbd8777cba54b6b4506f35a75cde802caaae4bd7b6779f40013a911e6a1 | (function(){
'use strict';
var eventController = ['$scope', '$state', 'Auth', 'eventFactory', function($scope, $state, Auth, eventFactory){
var eventCtrl = this;
Auth.currentUser().then(function(data){
$scope.currentUser = data;
$scope.allEvents = [];
$scope.currentUser.friends.forEach(f... | JavaScript | app/assets/javascripts/controllers/eventController.js | jd2rogers2/presently | mit | 1,496 | 53 | codeparrot/github-code |
8dd29de1a6576f4817001ec9d23f7d077876cf40b85766290364c0d80652266a | <?php
namespace wenbin1989\yii2\upload;
use yii\base\Model;
/**
* File Model
*
* @author Wenbin Wang <wenbin1989@gmail.com>
*/
class File extends Model
{
/**
* @var integer error code.
*/
public $error;
/**
* @var string error message.
*/
public $message;
/**
* @var s... | PHP | File.php | wenbin1989/yii2-upload | mit | 1,284 | 56 | codeparrot/github-code |
8c54e8d36179a259f54d77e2c1c2eb89429b452d4484f2daeec3f2f6b08b3f37 | /*
* The MIT License
*
* Copyright (c) 2016, CloudBees, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, c... | Java | blueocean-pipeline-api-impl/src/main/java/io/jenkins/blueocean/preload/BlueRunChangesetPreloader.java | jenkinsci/blueocean-plugin | mit | 4,401 | 108 | codeparrot/github-code |
978d2ae52fa2aacbfd7a95bfc280e84013badc47fad5e9127b2898ceddf91026 | function ReportElementsDOM(wrapperDiv) {
this.wrapperDiv = $(wrapperDiv);
this.elemJson = JSONAttribute(wrapperDiv, 'report-json');
// Okay, we're not quite 100% JS. These two values still get generated server-side.
// We only use them in print headers, though.
this.reportName = this.wrapperDiv.attr('report-n... | JavaScript | app/assets/javascripts/report_code/report_elements_dom.js | ndoit/fenrir | mit | 2,337 | 67 | codeparrot/github-code |
623a7322ddd6a6d4b1fbc72662a934b887d72db45df637bd63985102c085f3c1 | <?php
namespace gossi\trixionary\responder\json\model;
use gossi\trixionary\model\Reference;
use gossi\trixionary\model\Skill;
use gossi\trixionary\model\Video;
use keeko\framework\domain\payload\Found;
use keeko\framework\foundation\AbstractPayloadResponder;
use keeko\framework\utils\Parameters;
use Symfony\Component... | PHP | src/responder/json/model/ReferencePaginateJsonResponder.php | gossi/trixionary | mit | 2,168 | 62 | codeparrot/github-code |
fdd58a610ab35acad7a22f6c29ae78081537f73d05b125bbb2a3f96c749c8aaf | // Copyright (c) 2012-2013 The Phtevencoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "util.h"
#include "support/allocators/secure.h"
#include "test/test_phtevencoin.h"
#include <boost/test/unit_t... | C++ | src/test/allocator_tests.cpp | ravenbyron/phtevencoin | mit | 3,927 | 121 | codeparrot/github-code |
21a79c7538e66f0ec5f9f995c4c8dc9666dcba5550d63a1812186e80f19926d1 | //
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license.
//
// Microsoft Bot Framework: http://botframework.com
//
// Bot Builder SDK Github:
// https://github.com/Microsoft/BotBuilder
//
// Copyright (c) Microsoft Corporation
// All rights reserved.
//
// MIT License:
/... | C# | CSharp/Library/Microsoft.Bot.Builder.History/ReplayTranscript.cs | xiangyan99/BotBuilder | mit | 3,509 | 94 | codeparrot/github-code |
fdb7e092b57c88294cfd6944eb337b6fd0bb6b989f8ac328c2455b448a3c47a0 | package lnwallet
import (
"bytes"
"container/list"
"fmt"
"sync"
"github.com/btcsuite/fastsha256"
"github.com/davecgh/go-spew/spew"
"github.com/lightningnetwork/lnd/chainntfs"
"github.com/lightningnetwork/lnd/channeldb"
"github.com/lightningnetwork/lnd/lnwire"
"github.com/roasbeef/btcd/btcec"
"github.com/r... | GO | lnwallet/channel.go | BitfuryLightning/lnd | mit | 51,897 | 1,358 | codeparrot/github-code |
26468c5a1a624c50e735ded143f8d0715d1145d36ab36ee90d9cf3c8ca797c9e | """Helperfunctions for pagination."""
import collections
import math
from six.moves import http_client
from six.moves.urllib import parse as urlparse
from flask import url_for, current_app
from atilla import exceptions
PageResponse = collections.namedtuple('PageResponse', 'content,count')
def parse_current_page(pa... | Python | atilla/pagination.py | paylogic/atilla | mit | 3,235 | 109 | codeparrot/github-code |
4c4fe6f6a8d3fe2d27649ba25e24da940a0cba51f7119c38460bb15603c4e90a | import itertools
from pycket import config
from pycket import values
from pycket import vector as values_vector
from pycket.arity import Arity
from pycket.base import SingleResultMixin, UnhashableType
from pycket.cont import continuation, label
from pycket.error import SchemeException
from pycket.prims.expose import d... | Python | pycket/values_struct.py | magnusmorton/pycket | mit | 45,589 | 1,180 | codeparrot/github-code |
2de45b47f3a463c665762b8712b2b45536cd79d5d2e77c8e8eb1d3fe0466b60a | "use strict";
const ExtractTextPlugin = require("extract-text-webpack-plugin");
const CopyWebpackPlugin = require('copy-webpack-plugin');
const LiveReloadPlugin = require('webpack-livereload-plugin');
const webpack = require('webpack');
const helpers = require('./helpers');
module.exports = {
entry: {
mai... | JavaScript | webpack.config.js | JarSeal/mean2-passport-template | mit | 2,328 | 75 | codeparrot/github-code |
df03ecbe63faebd8feda75dfeec93047793e19efe1ac8fe41e3a3c136d5dc934 | import fetch from 'isomorphic-fetch';
import checkStatus from './../utils/checkStatus';
import { gotoRoute } from './router-actions';
export const FETCH_ALL_CITIES_REQUEST = 'FETCH_ALL_CITIES_REQUEST';
export const FETCH_ALL_CITIES_SUCCESS = 'FETCH_ALL_CITIES_SUCCESS';
export const FETCH_ALL_CITIES_FAILURE = 'FETCH_AL... | JavaScript | frontend/js/redux/actions/survey-creator-general-actions.js | wbprice/okcandidate-platform | mit | 7,381 | 270 | codeparrot/github-code |
c141dfe2eb92d511602ff9b97fd844f95c676ebff5d429c26d171af1a6d3e672 | /*jshint node: true*/
'use strict';
var harvest = require('./../../../services/harvest')('default'),
notifier = require('./../../../services/notifier'),
_ = require('lodash'),
logger = require('./../../../services/logger.js')('de... | JavaScript | app/api/controllers/actions/reminder_all.js | Neverbland/slack-harvest | mit | 1,333 | 47 | codeparrot/github-code |
25ca4f33c7be54c704523d4b51fea83e87086b2f34d097c923333701ca4681af | #!/usr/bin/env python3
import sys
import os
import unittest
import logging
import inspect
# Extend PYTHONPATH with local 'lib' folder
if __name__ == "__main__":
jasyroot = os.path.normpath(os.path.join(os.path.abspath(sys.argv[0]), os.pardir, os.pardir, os.pardir, os.pardir))
sys.path.insert(0, jasyroot)
... | Python | jasy/test/style/strings.py | sebastian-software/jasy | mit | 1,663 | 67 | codeparrot/github-code |
1b9abeca1d482bd0336e379e33e0301b627442fbcf6b833c4d4a356b213edd73 | #include "kernel.inc"
#include "corelib.inc"
.db "KEXC"
.db KEXC_ENTRY_POINT
.dw start
.db KEXC_STACK_SIZE
.dw 40
.db KEXC_NAME
.dw name
.db KEXC_HEADER_END
name:
.db "progcalc", 0
start:
;Get a lock on the devices we intend to use
pcall(getLcdLock)
pcall(getKeypadL... | Assembly | main.asm | boos1993/progcalc | mit | 3,769 | 206 | codeparrot/github-code |
a572fd737710d335268e9526db0e60109441138cd8aeb7d6f2976a823143773e | {% extends "cms/base.html" %}
{% load wagtailcore_tags wagtailimages_tags %}
{% block meta_title %}Search{% endblock %}
{% block main %}
<div class="default-banner shadowed banner-block with-background">
<h2 class="subtitle gray-title">Search:</h2>
<h1>{{ search_query }}</h1>
</div>
{% if search_results %}
<... | HTML | cms/templates/cms/search.html | kingsdigitallab/kdl-django | mit | 2,000 | 55 | codeparrot/github-code |
e0f1bbbd91976e200999a56c068d81fc2ee1d5d53aad54a82bbccb91b5a569ff | var _ = require('lodash');
var Bus = require('./PubSub');
var setNested = require('./lib/set-nested');
class VueModel {
constructor() {
this.bus = Bus();
this.registry = {};
}
register(name, definition) {
definition = _.toPlainObject(definition);
// Set the name of the mod... | JavaScript | src/VueModel.js | aarondfrancis/vue-model | mit | 6,175 | 199 | codeparrot/github-code |
6a940aff8b1559ebfe3bc7e043d6f744c8656e8a4cb046fe67612601fd27ba96 | package EnsEMBL::Maize::Configuration::Location;
use strict;
use warnings;
use EnsEMBL::Web::Configuration;
use EnsEMBL::Web::Tools::Ajax;
use CGI;
use EnsEMBL::Maize::Configuration;
use EnsEMBL::Maize::Util::FPC;
use POSIX qw(floor ceil);
our @ISA = qw( EnsEMBL::Web::Configuration );
#----------------------------... | Perl | maize-production/modules/EnsEMBL/Maize/Configuration/Location.pm | warelab/gramene-ensembl | mit | 18,644 | 543 | codeparrot/github-code |
800657c5f32167335f55dfb64ee18b4d47a594db0f4cce9d1d38ac8584e42122 | using System;
using System.Data;
using System.Collections;
using PrimerProObjects;
using PrimerProForms;
using GenLib;
namespace PrimerProSearch
{
/// <summary>
///
/// </summary>
public class SyllableChartTable : DataTable
{
private FormSyllableChart.StructureType m_Type;
private DataColumn m_DataColumn;
... | C# | PrimerProSearch/SyllableChartTable.cs | sillsdev/PrimerPro | mit | 7,302 | 289 | codeparrot/github-code |
d6550b5fe3e67f334915d6990209d731b8a6d7353b1c49a5743dbf1829d82278 | <?php
/**
* Created by PhpStorm.
* User: marko
* Date: 24/11/2014
* Time: 13:34
*/
/**
* Class CMovie
*/
class CMovie extends CDatabase {
/**
* Members
*/
/*
private $options; // Options used when creating the PDO object
public $db = null; // The PDO ... | PHP | src/CMovie/CMovie.php | markopo/mapo | mit | 5,125 | 183 | codeparrot/github-code |
5132007f4f2a12bd57c0347e652286b829ca0e0ec55019f0a51411ba07af4991 | <?php
/* TwigBundle:Exception:error.atom.twig */
class __TwigTemplate_d476444f74bb3e79043db64101037c34 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
);
}
protected ... | PHP | app/cache/dev/twig/d4/76/444f74bb3e79043db64101037c34.php | tperroin/blogsio | mit | 1,705 | 37 | codeparrot/github-code |
3ba6a7bfa34eff4b04aacdbdcbfdf6484922def350c71ef16ee733a225c027a1 | /*
* Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package com.sun.naming.internal;
import java.util.List;
import javax.naming.NamingException;
/**
* T... | Java | src/main/java/com/sun/naming/internal/FactoryEnumeration.java | wwahmed/ews-java-api | mit | 3,479 | 115 | codeparrot/github-code |
4f6594a5becfbc592cefdef648c88c366744b2fde07a148cb105360c3013c134 | // CoordFrame.cpp
/*
* Copyright (C) 2013-2014 Spencer T. Parkin
*
* This software has been released under the MIT License.
* See the "License.txt" file in the project root directory
* for more information about this license.
*
*/
#include "CoordFrame.h"
//=====================================================... | C++ | Code/WinApp/VectorMath/CoordFrame.cpp | spencerparkin/GAVisTool | mit | 3,860 | 107 | codeparrot/github-code |
385d541262e41295c24398d81edec3c460b1669652b04907cf6c42f4cfee2504 | ---
title: URL Explorer
blockingscripts:
- /url-explorer/redirector.js
styles:
- /url-explorer/activity.css
scripts:
- /url-explorer/activity.js
layout: wrapper
---
<main class="wrapper pad-t-2" hidden>
<h2 id="go-page-2" class="instructions" tabindex="-1">Go to page 2 of the products.</h2>
<h2 id="view-deta... | HTML | url-explorer/products/index.html | acgd-learn-the-web/activities | mit | 7,810 | 171 | codeparrot/github-code |
c1e010587c7fda7f847a6e4b1f4b6a73c162db61115225bf566c0680d610f4a2 | <?php
/**
* Description of AuthToken
* This class is the real represenation of the ControlData class
*
* @author fabien
*/
class AuthTokenParam {
/**
*
* @var string $userID
* @access public
*/
private $userID;
/**
*
* @var string $userID
* @access public
*/... | PHP | classes/wsparams/AuthTokenParam.php | project-performance/synaptica-phpclient | mit | 1,760 | 89 | codeparrot/github-code |
09d3b7d7b2299f32661e8944829c1beddfa072a00153254e8cb5cb1c19a5e59f |
package edu.spcollege.ecox.account;
import javax.persistence.*;
import java.time.Instant;
import com.fasterxml.jackson.annotation.JsonIgnore;
/**
*
* @author atillman
*/
@SuppressWarnings("serial")
@Entity
@Table(name = "account")
public class Account implements java.io.Serializable {
@Id
@GeneratedValue
pri... | Java | src/main/java/edu/spcollege/ecox/account/Account.java | atillman34817/ecox | mit | 1,141 | 75 | codeparrot/github-code |
fc8330fcad31d8b357ddc5b30e2ad9d2fa93811a1f7075c610e7ae9cd5ed6990 | import { declare } from "@babel/helper-plugin-utils";
import presetStage2 from "@babel/preset-stage-2";
import transformExportDefaultFrom from "@babel/plugin-proposal-export-default-from";
import transformLogicalAssignmentOperators from "@babel/plugin-proposal-logical-assignment-operators";
import transformOptionalCha... | JavaScript | packages/babel-preset-stage-1/src/index.js | samwgoldman/babel | mit | 1,794 | 50 | codeparrot/github-code |
bfa5552c702ae298bf730cb8af5cab839bab1ef260e3c3a51a67d455aa0a1d81 | // This code contains NVIDIA Confidential Information and is disclosed to you
// under a form of NVIDIA software license agreement provided separately to you.
//
// Notice
// NVIDIA Corporation and its licensors retain all intellectual property and
// proprietary rights in and to this software and related documentation... | C++ | PhysX-3.2.4_PC_SDK_Core/Samples/SampleFramework/framework/src/SampleCommandLine.cpp | JayStilla/AIEPhysics | mit | 10,599 | 426 | codeparrot/github-code |
d43e9b5170b25b8e9537fefe8735eb6ccc6b093d059ce391a8ecf03ea9cef649 | import notifier from "node-notifier";
import postal from "postal";
import monitorCamera from "./util/camera-monitor";
export default function( menubar ) {
global.postal = postal;
global.appDataPath = menubar.app.getPath( "appData" );
function openDevTools() {
menubar.setOption( "alwaysOnTop", true... | JavaScript | src/app.js | ryexley/poplar | mit | 1,524 | 55 | codeparrot/github-code |
df1ba6b0fd04f12b8038276bc5511af4a1b1cc74acd97b4d640f2ba2b7036a8f | module Tire
module Search
#--
# TODO: Implement all elastic search facets (geo, histogram, range, etc)
# http://elasticsearch.org/guide/reference/api/search/facets/
#++
class Facet
def initialize(name, options={}, &block)
@name = name
@options = options
block.ar... | Ruby | lib/tire/search/facet.rb | fairfaxmedia/tire | mit | 2,175 | 75 | codeparrot/github-code |
02de28c0e5b1a1a6e812bdd49312129f348061708b19599379a2c18e37732a3d | /*
Part of Bewegungsfelder
MIT-License
(C) 2016 Ivo Herzig
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, merg... | C# | Bewegungsfelder/View/NullToNoneStringValueConverter.cs | herzig/bewegungsfelder | mit | 1,794 | 54 | codeparrot/github-code |
885370c9c0be8c7c3c2223747ecaa41e81d74d720981a6c1c332e6c9dc9020ff | // Copyright 2012 The Closure Library Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unl... | JavaScript | new_php/closure-library/closure/goog/i18n/uchar/localnamefetcher.js | dmincu/IOC | mit | 2,275 | 75 | codeparrot/github-code |
6f8563e7df39f57734d92daa9adcd9180e3ed054d4fe0be52a95fb22db881698 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow, all" />
<title>Valit\Util\Date | Valit API</title>
<link rel="stylesheet" type="text/css" href="../../css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="../../c... | HTML | docs/valit/api/2.0.0/Valit/Util/Date.html | moccalotto/moccalotto.github.com | mit | 23,175 | 578 | codeparrot/github-code |
27d77c0ebd06330479bcd8a312f2c754cfcf6bec118eec24aa6c611da414b35d | # This is a script that scrapes all the data from espncricinfo.com, based on user's input of class (Tests, ODI's, T20's,
# etc.) for all types (Batting, Bowling, Fielding, etc.), and dumps all the data into separate CSV files.
import requests
import os
from bs4 import BeautifulSoup
classes = {
'tests': 1,
'od... | Python | espncricinfo_stats_all.py | thedespicableknight/web_crawlers | mit | 2,174 | 57 | codeparrot/github-code |
1706d0f9e50a0481b488124e4c40336f20a60c9938449fdcf432fd450fad9bc8 | #include <stdio.h>
#include <string>
#include "LRUMap.hh"
#include "UnitTest.hh"
using namespace std;
int main(int, char** argv) {
LRUMap<string, string> c;
expect_eq(c.size(), 0);
expect_eq(c.count(), 0);
try {
c.at("key1");
expect_msg(false, "c.at() did not throw");
} catch (const out_of_rang... | C++ | src/LRUMapTest.cc | fuzziqersoftware/phosg | mit | 2,409 | 104 | codeparrot/github-code |
058aac64db2628bf5a925a91f00b0f1f872b8b9a89c2db9420ffbe742d3a153c | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.archanpatkar.Console;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.j... | Java | test/com/archanpatkar/Console/EncryptIT.java | archanpatkar/DesignPattern-Server | mit | 1,616 | 67 | codeparrot/github-code |
061870b31efff685ef3e9210fb72e0e90849ba3470730b2908b0e93631508adb | # This artifact captures all variables defined in the ..\variables folder.
# It "snaps" the values of these variables where we can compute them during the build,
# and otherwise captures the scripts to run later during an Azure Pipelines environment release.
$RepoRoot = [System.IO.Path]::GetFullPath((Join-Path $PSScri... | PowerShell | azure-pipelines/artifacts/Variables.ps1 | AArnott/PCLCommandBase | mit | 1,929 | 44 | codeparrot/github-code |
45b9af9a06f4fa76af67204386cb6f1badeb4b224c4f106cd61aac0eb138b101 | using System;
using System.Collections.Generic;
using System.IO;
using DataTool.FindLogic;
using DataTool.Flag;
using Newtonsoft.Json.Linq;
using STULib.Types.Generic;
using static DataTool.Program;
using static DataTool.Helper.IO;
namespace DataTool.ToolLogic.Extract.Debug {
[Tool("extract-debug-newents", Descri... | C# | DataTool/ToolLogic/Extract/Debug/ExtractDebugNewEntities.cs | kerzyte/OWLib | mit | 3,393 | 85 | codeparrot/github-code |
f7f8efaf72bd9c93c1baaca3154610ff9dc31e64ba5caf902cdbfe83aff9a388 | <?php
namespace Embark\CMS\Schemas;
use Embark\CMS\Schemas\FieldsList;
use Embark\CMS\Metadata\MetadataControllerInterface;
use Embark\CMS\Metadata\MetadataControllerTrait;
use Embark\CMS\Metadata\MetadataInterface;
use Embark\CMS\Syncable\Controller as SyncController;
use Embark\CMS\Syncable\SyncableControllerInterf... | PHP | packages/system/lib/Schemas/Controller.php | psychoticmeow/journey-cms | mit | 6,637 | 215 | codeparrot/github-code |
9ddc6935bc9527e3a9cfdeb8ae500849988900f579bee267506dd63e5403b512 | #include "common.h"
#include <pebble-fctx/fctx.h>
#include <@smallstoneapps/linked-list/linked-list.h>
#include "fctx-layer.h"
typedef struct {
FctxLayerUpdateProc update_proc;
void *data;
LinkedRoot *children;
} Data;
static bool linked_list_update_proc_callback(void *this, void *context) {
log_func(... | C | src/c/fctx-layer.c | Spitemare/constructor | mit | 3,636 | 129 | codeparrot/github-code |
0ad73f73eb1eba8b353b1cd2779f58c206224d76aaadb370438456efd2ffadb1 | <!--
Unsafe sample
input : get the field userData from the variable $_GET via an object, which store it in a array
sanitize : use of ternary condition
File : use of untrusted data in a double quoted string in a script
-->
<!--Copyright 2015 Bertrand STIVALET
Permission is hereby granted, without written agreement o... | PHP | XSS/CWE_79/unsafe/CWE_79__object-Array__ternary_white_list__Use_untrusted_data_script-doublequoted_String.php | stivalet/PHP-Vulnerability-test-suite | mit | 1,658 | 74 | codeparrot/github-code |
ebe90f2b224d4d98304e27f50a848cc05f56e0ebeabe5ae9062fd71b55330aa1 | #include "NewInterrogationDialog.h"
#include "CaseCreator/CaseContent/Conversation.h"
#include <QApplication>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
#include <QScrollArea>
#include <QValidator>
#include <QGridLayout>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QFileDialog>
templa... | C++ | src/CaseCreator/UIComponents/EncounterTab/NewInterrogationDialog.cpp | GabuEx/my-little-investigations | mit | 2,854 | 114 | codeparrot/github-code |
1ae2819fb29d0fae6ec8a2eb97b62e8875612a4aa527e18eae4c90d52259821e | /* cblas.h
*
* This header defines C bindings for the Basic Linear Algebra Subprograms,
* providing optimized basic operations on vectors and matrices. Single-
* and double-precision, real and complex data formats are supported by this
* library.
*
* A note on complex data layouts:
*
* In order to allow strai... | C | deps/iPhoneOS9.3.sdk/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/cblas.h | rweichler/cylinder | mit | 47,504 | 808 | codeparrot/github-code |
40ee629f63c69d5959327902413db3f106a23bef66f39428c9c3952821fa5b7b | ---
---
<!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Resolvable | @uirouter/core</title>
<meta name="description" content="Documentation for @uirouter/core">
<meta name="viewport" content="width=device-width, initial-scale=1... | HTML | _core_docs/6.0.5/classes/_resolve_resolvable_.resolvable.html | ui-router/ui-router.github.io | mit | 36,267 | 606 | codeparrot/github-code |
219c38b46906f1d72f5979dd980e46c94ad3c16499fa7e84f15da8671422b1db | // 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.Dfm
{
using System;
using System.IO;
using Microsoft.DocAsCode.Common;
using Microsoft.DocAsCode.MarkdownLite;
publ... | C# | src/Microsoft.DocAsCode.Dfm/CodeRenderer/DfmCodeRenderer.cs | pascalberger/docfx | mit | 9,630 | 238 | codeparrot/github-code |
5ed15779c682bdab7bbb8572f1df2c717180ba20e958a5c6c773ea50f8a30a11 | package hu.sch.web.wicket.components.customlinks;
import hu.sch.web.wicket.components.tables.LinkColumn;
import org.apache.wicket.markup.html.link.Link;
import org.apache.wicket.markup.html.panel.Panel;
/**
* Ez egy olyan {@link Panel}, amit arra használhatunk, hogy valamilyen típusú
* objektumokat listázó táblázat... | Java | sch-pek-web/src/main/java/hu/sch/web/wicket/components/customlinks/LinkPanel.java | kir-dev/korok | mit | 1,090 | 34 | codeparrot/github-code |
946cdd7808b69bd8fc324c68e9985807596f64217f63191c98bb53d49bf5f0ea | <?php
/* TwigBundle:Exception:error.html.twig */
class __TwigTemplate_ba9c7c042aaaaae594d4b33a22f8d5adbbf968ae6fb8b5a9a374ec652387d8a3 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
... | PHP | app/cache/prod/twig/ba/9c/7c042aaaaae594d4b33a22f8d5adbbf968ae6fb8b5a9a374ec652387d8a3.php | nikopfleger/CarritoSymfony | mit | 1,760 | 62 | codeparrot/github-code |
0f77e0155399aa7b7575daa8313c9ba6c85acf2bcf2a9bc49c121bad666cfc98 | /**
* @file script.js
* @version 1.0
* @date 2017-04-30
* @author VO, Nhu-Hoai Robert <nhuhoai.vo@franicflow.ch>
* @copyright FRANIC Flow Sàrl
* @brief Main scripts
*/
//
// Font variables
//
/// Fonts list
var font_families = ["monospace", "LCDDot TR", "DISPLAY FREE TFB", "Simp... | JavaScript | src/script.js | nhuhoai/LCDSimulator | mit | 9,454 | 330 | codeparrot/github-code |
b2155a38559bd7186ed3d581c9c22e1716e53932aa59216042b98e642925d7cd | #ifndef patMapMatchingRoute_h
#define patMapMatchingRoute_h
#include <map>
#include <list>
#include <set>
#include <vector>
#include "patError.h"
#include "patType.h"
#include "patString.h"
#include "patStreetSegment.h"
#include "patNetwork.h"
#include "patNode.h"
#include "patArc.h"
#include "patGpsPoi... | C | src/DeterministicMapMatching/patMapMatchingRoute.h | godosou/smaroute | mit | 2,791 | 80 | codeparrot/github-code |
5d2a45706e063b31f365820cb0a308f51e0610daf0ebba259e65bd9d9655f22d | """
file: loco.py
author: Ben Shaner
created: April 2017
"""
import time
def addrH(addr):
return 0xC0 + (addr >> 8)
def addrL(addr):
return addr & 0xFF
class loco(object):
def __init__(self, num, serial):
self.locoH = addrH(num)
self.locoL = addrL(num)
self.serial = serial
self.speed = 0
def sleepTim... | Python | loco.py | bens545/train-control | mit | 1,043 | 47 | codeparrot/github-code |
45cdcb85f53bdcc4d2862a608f8cdb1c90c819dc96e435d901bf0995936808e0 | namespace Leo.TargetWordCount
{
using Models;
using Sdl.ProjectAutomation.Core;
using System;
using System.Diagnostics.Contracts;
using System.Xml.Linq;
public class ReportBuilder
{
private readonly XElement root = new XElement("Report");
private decimal totalAmount = 0M;
... | C# | Leo.TargetWordCount/ReportBuilder.cs | jessegood/Leo.TargetWordCount | mit | 9,089 | 210 | codeparrot/github-code |
ac8f024de0a3dfe3856a133db6109ea0adedae1f256273df883fe4c589b53efd | package com.marcoabreu.att.communication.message;
import com.marcoabreu.att.communication.Opcode;
import java.io.PrintWriter;
import java.io.Serializable;
import java.io.StringWriter;
import java.util.UUID;
/**
* Created by AbreuM on 02.08.2016.
*/
public abstract class BaseMessage implements Serializable {
pr... | Java | terminalcommunication/src/main/java/com/marcoabreu/att/communication/message/BaseMessage.java | marcoabreu/Android-Terminal-Test | mit | 1,811 | 66 | codeparrot/github-code |
f924985a8939db62466100fd9a425dcc28a4a64db9c04ebab17e08f7da812e91 | /*
Copyright (c) 2009 by Pejman Attar, Yoann Canal, Juliusz Chroboczek and
Gabriel Kerneis
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 with... | C | hashtable.c | kerneis/hekate | mit | 2,609 | 108 | codeparrot/github-code |
687f98f9ec8d52791e90ebca1122637142b42e0b18f288a35000d59b6e2daf32 | <!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
<title>4 nips-2012-A Better Way to Pretrain Deep Boltzmann Machines</title>
</head>
<body>
<p><a title="nips" href="../nips_home.html">nips</a> <a title="nips-2012" href="../home/nips2012_home.html">nips2012</a> <a title="nips-2012-4" href="../nips2012/nips-2012-A_Bet... | HTML | paper-mining/nips/nips2012_reference/nips-2012-A_Better_Way_to_Pretrain_Deep_Boltzmann_Machines_reference.html | makerhacker/makerhacker.github.io | mit | 4,490 | 50 | codeparrot/github-code |
4def24297c8469a4a1ab1bb58df17c6642f051515422d7b258c01dd8e76347e9 | using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using LinqToVso.Exceptions;
namespace LinqToVso
{
public class VsoErrorHandler
{
public static async Task ThrowIfErrorAsync(HttpResponseMessage httpResponseMessage)
{
//Handle more possible errors in ... | C# | LinqToVso/LinqToVso.PCL/Exceptions/VsoErrorHandler.cs | cjgaliana/LinqToVSO | mit | 2,593 | 71 | codeparrot/github-code |
3143b4088fa83e16c64c4f03629b20996235b3edc3f827564e321a300e0d3bb7 | <?php
namespace Dez\Template\Core;
use Dez\Template\TemplateException;
/**
* Class Directory
* @package Dez\Template\Core
*/
class Directory
{
/**
* @var string
*/
protected $path;
/**
* Directory constructor.
* @param $path
*/
public function __construct($path)
{
... | PHP | src/Template/Core/Directory.php | dez-php/dez-template | mit | 799 | 53 | codeparrot/github-code |
adf7c3317941879d0b8569299fe817ea45e6d6e0a68e8169c8263f3e957433f6 | import gql from 'graphql-tag';
import { c, t } from 'ttag';
import { useQuery } from '@apollo/react-hooks';
import { makeStyles } from '@material-ui/core/styles';
import { useRouter } from 'next/router';
import { ListPageCards, ArticleCard } from 'components/ListPageDisplays';
import { LoadMore } from 'components/List... | JavaScript | components/LandingPage/SectionArticles.js | cofacts/rumors-site | mit | 4,198 | 181 | codeparrot/github-code |
e04fcda774ca03b338b2ddb1be80079f8618aeb0c48d2baa1f7de4bc18444966 | <?php
//// AutoLink
// Automatically load files with matching names on their pages.
//// Usage
// '/' becomes 'index'
// '/blog' becomes 'blog'
// '/blog/' becomes 'blog-index'
// '/blog/post-1' becomes 'blog-post-1'
//// Code
// Construct the AutoLink name.
$BaseCompare = parse_url($Sitewide['Settings']['Site Root... | PHP | _hooks/preload/autolink.php | eustasy/puff-core | mit | 1,541 | 43 | codeparrot/github-code |
b01f0de055de2e33df6eef7cdb6ff291027a989d998907707cec809bbfb8383c | <?php
/*
* This file is part of the CropperBundle package.
*
* (c) Breith Barbot <b.breith@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace App\Controller;
// [...]
use App\Entity\File;
use App\Entity\User;
u... | PHP | Resources/doc/examples/src/Controller/CropperController.php | breithbarbot/Cropper | mit | 5,135 | 140 | codeparrot/github-code |
c2bae686f2b69f66a71838ef95800667c7ad277fd1038edd70fcd6ce55c972d4 | import { StudyImportStatus } from '../../both/collections';
var fs = Npm.require('fs');
var fiber = Npm.require('fibers');
WebApp.connectHandlers.use('/uploadFilesToImport', function(req, res) {
if (!req.headers.filename) {
// Response: BAD REQUEST (400)
res.statusCode = 400;
res.end();
... | JavaScript | Packages/worklist/server/methods/importStudies.js | HorizonPlatform/Viewers | mit | 5,079 | 152 | codeparrot/github-code |
b2587534e1c52125046a27a9a1809c65f982d97ed4e57fafd579ff87f855c00d | <?php
namespace CivPlanet\Bundle\Manager;
use Doctrine\ORM\EntityManager;
class SessionManager
{
private $entityManager;
private $sessionRepository;
public function __construct(EntityManager $entityManager)
{
$this->entityManager = $entityManager;
$this->sessionRepository = $entityMa... | PHP | src/CivPlanet/Bundle/Manager/SessionManager.php | JonnyD/Skynet-Web | mit | 690 | 30 | codeparrot/github-code |
3179c04bed731bfd4aa95cab208cbeb14d8c5f8dda65a9f846d6d6ced9d4bbe1 | var directionsDisplay;
var directionsService = new google.maps.DirectionsService();
var map;
function initialize() {
directionsDisplay = new google.maps.DirectionsRenderer();
var business = new google.maps.LatLng(43.4857867,-80.5407032);
var mapOptions = {
zoom:9,
center: business
}
... | JavaScript | js/script.js | jessicarcl/googleMap | mit | 1,706 | 57 | codeparrot/github-code |
7169f09b0094ec5b12c64b2893df9149c5e264e2b80a2450d72ce259979923d3 | # Age-rotation relations.
from teff_bv import teff2bv
class gyro_age(object):
def __init__(self, p, teff=None, feh=None, logg=None, bv=None):
self.p = p
self.bv = bv
if not self.bv:
self.bv = teff2bv(teff, logg, feh)
self.teff = teff
self.feh = feh
sel... | Python | turnip/gyro.py | RuthAngus/turnip | mit | 892 | 39 | codeparrot/github-code |
8b3da8d05fc6a1d04370566e7e266922cb5cb421a65492c087e8bb71043751c5 | package com.asi.core.product.config.oauth;
public class AsiUserApprovalHandler {
//extends ApprovalStoreUserApprovalHandler {
/* private boolean useApprovalStore = true;
private ClientDetailsService clientDetailsService;
*//**
* Service to load client details (optional) for auto approval checks.
*
* @par... | Java | src/main/java/com/asi/core/product/config/oauth/AsiUserApprovalHandler.java | mzubairahmed/externalapi | mit | 2,065 | 70 | codeparrot/github-code |
6f9a9bbe00aadf64e2e44ec3d70781f90561ce0677f157c0c9556b386de58949 | using System;
using System.ComponentModel;
using Newtonsoft.Json;
namespace Archon.Json
{
public class ToStringConverter<T> : JsonConverter
{
public override bool CanConvert(Type objectType)
{
return typeof(T).IsAssignableFrom(objectType);
}
public override object ReadJson(JsonReader reader, Type object... | C# | Core/ToStringConverter.cs | civicsource/json | mit | 866 | 41 | codeparrot/github-code |
0a684729287074ffd114bfb8504274a7dfb9d2ce2d742de7cf4c100736775f66 | package org.jfree.chart.plot;
import java.awt.AlphaComposite;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Composite;
import java.awt.Graphics2D;
import java.awt.Paint;
import java.awt.RenderingHints;
import java.awt.Shape;
import java.awt.Stroke;
import java.awt.geom.Line2D;
import java.awt.geo... | Java | org/jfree/chart/plot/FastScatterPlot.java | ivanshen/Who-Are-You-Really | mit | 16,873 | 449 | codeparrot/github-code |
974d3aacf85fc2d4e92b140ff4408e87313a3a900a56249960604f2956bc64fa | #include <stdio.h>
#include <string.h>
struct occurance_t{
long hash;
int count;
};
long hash(char *word);
int main(){
char curWord[200];
long int curHash;
struct occurance_t hashes[3000] = {{0, 0}};
int maxIndex=0;
int i=0, l;
scanf("%s", curWord);
curHash=hash(curWord);
for(i=0; i<3000 && strcmp(curWord,... | C | A/01/15/task2.c | elsys/po-homework | mit | 985 | 58 | codeparrot/github-code |
ae8533082d76473877f6c0976111384ecff60b08570f7e0739ecdaa3fd436dc3 | //#pragma comment(linker, "/STACK:1024000000,1024000000")
#include<stdio.h>
#include<cstring>
#include<cmath>
#include<string>
#include<algorithm>
#include<iostream>
#include<vector>
#include<queue>
#include<map>
#include<set>
#include<stack>
#include<bitset>
#include<time.h>
#define Msn(x,y) (memset((x),0,sizeof((x[0... | C++ | 3rd_year_2_semester/Manthan, Codefest 16/E.cpp | acerlawson/acerlawson.github.oi | mit | 2,226 | 110 | codeparrot/github-code |
036fd03a8b19ce2720e996d2d1a04824c9de0c7667bd2a53be3491d5e4868fa0 | const path = require('path');
const test = require('ava');
const sinon = require('sinon');
const metalsmithConcat = require('.');
function filesFixture() {
return {
'first/file': {contents: Buffer.from('lorem')},
'second/file': {contents: Buffer.from(' ')},
'third/file': {contents: Buffer.from('ipsum')}
};
}
... | JavaScript | test.js | aymericbeaumet/metalsmith-concat | mit | 14,781 | 594 | codeparrot/github-code |
4bba98e5a2699bbbba76dca2f2a35fefcb8f19af8881aad5566cbacb478817b1 | <?php
namespace TRex\Core;
use ArrayAccess;
use Countable;
use IteratorAggregate;
use TRex\Core\Objects\IComposite;
use TRex\Core\Objects\IObjectsComparator;
use TRex\Core\Objects\IObjectsModifier;
use TRex\Core\Objects\IObjectsSearcher;
use TRex\Iterator\IIterator;
use TRex\Iterator\IKeyAccessor;
use TRex\Iterator\It... | PHP | src/TRex/Core/IObjects.php | Raphhh/trex | mit | 1,786 | 85 | codeparrot/github-code |
63613374bfb0a578d233680f31a8fa168ae8257b22d51cac2da43a2c025a4913 | angular.module('tf-client-services')
.factory('invitationService', function($q, dolittle, resourceService) {
function createInvitation(attrs) {
return resourceService.post('/invitations', dolittle.to.snake(attrs))
.then(function (response) {
return response.data;
}, function (response) {
... | JavaScript | frontend/app/services/invitation.service.js | talosdigital/TaskFlex | mit | 1,541 | 47 | codeparrot/github-code |
0591e416531232bf19a20c897f614558899c3a8b77d15e853ce45011f01ca8d5 | <?php
/**
* @Product: NanoCore
* @Author: Maxim P.
*/
namespace Module\Admin\SMP;
use Service\SocialMedia\GA;
use Service\SocialMedia\Google;
use Service\SocialMedia\SocialMedia;
use Service\SocialMedia\Twitter;
use Service\SocialMedia\Vkontakte;
use System\Engine\NCService;
use System\Environment\Env;
/**
* C... | PHP | engine/Module/Admin/SMP/Driver.php | Max201/nanocore | mit | 2,048 | 91 | codeparrot/github-code |
69082f4703e6da9e7691c2b78ad2a2cc428005a8d65fae6ce5c52364e8c9ede1 | import { h, render, Component } from 'preact/preact';
import ViewBar from 'com/view-bar/bar';
//import ViewTimeline from 'com/view-timeline/timeline';
//import ViewSingle from 'com/view-single/single';
//import CoreData from '../core-data/data';
window.LUDUMDARE_ROOT = '/e/ludum-dare';
cla... | JavaScript | src/public-jammer.vg/main-vg.js | StormBurpee/ludumdare | mit | 3,028 | 122 | codeparrot/github-code |
2acdbe84af94ee30d2ed6338e4e5c7cdb422122e46ae142667cc1638fc87ff5b | use std::io;
use std::fmt;
use std::error::Error;
/// Result type for using with [`EmuleadError`].
pub type EmuleadResult<T> = Result<T, EmuleadError>;
/// Error type using for the project errors.
#[derive(Debug)]
pub enum EmuleadError {
/// IO Error
Io(io::Error),
/// Rotate bytes error used in [`network... | Rust | src/error.rs | emulead/emulead-shared | mit | 1,171 | 51 | codeparrot/github-code |
3f2cc6a864e52fb4ad32736fdc0ec072f3bba931497bb5c1b75e9c605cfb7112 | import {
prepareClassName,
isValidEntity
} from './utils';
export function blockProperty(bemNaming, chai, entityHook) {
const { assert } = chai;
return function() {
const entity = entityHook(this._obj);
// check input
assert(
isValidEntity(entity),
`${e... | JavaScript | lib/block.js | mistadikay/chai-bem | mit | 1,799 | 68 | codeparrot/github-code |
c2500d16661626de83c407c60afcc2c2ffdbd45cba17a20b53a48724f6b29b98 | import React from "react";
import API from "../../utils/api";
import Const from "../../const";
import Module from "../../types/module";
import ModuleStatus from "./module_status";
type State = {
watchlists: Module[],
providers: Module[],
notifiers: Module[],
indexers: Module[],
downloaders: Modul... | TypeScript | server/ui/src/components/status/index.tsx | macarrie/flemzerd | mit | 6,098 | 181 | codeparrot/github-code |
483fde1ce9d3e25d4bcc7e4f61e79f1fa0633546473924f1150d5356758c89fc | package macbury.forge.graphics.batch;
import com.badlogic.gdx.graphics.g3d.Renderable;
import com.badlogic.gdx.utils.Array;
import com.badlogic.gdx.utils.Pool;
/**
* Created by macbury on 28.04.15.
*/
public class RenderablePool extends Pool<Renderable> {
protected Array<Renderable> obtained = new Array<Renderabl... | Java | core/src/macbury/forge/graphics/batch/RenderablePool.java | macbury/ForgE | mit | 763 | 33 | codeparrot/github-code |
63c7051838edca9a85738c304a41ab8bb2b3eeda443428e5b2fe53ff337dbd31 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Transactions;
using System.Web;
using System.Web.Mvc;
using System.Web.Security;
using BrewData.Models;
using DotNetOpenAuth.AspNet;
using Microsoft.Web.WebPages.OAuth;
using BrewHaHaNet.Filters;
using WebMatrix.WebData;
using ExternalLogi... | C# | BrewHaHaNet/Controllers/AccountController.cs | gregconant/BrewHaHa-Net | mit | 13,207 | 353 | codeparrot/github-code |
804f302c9bddfd21a8aea4a682ee29403beb115c3fb0fb60dd25f624e8f511af |
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<meta name="author" content="David Dao, TUM">
<meta name="description" content="{{ site.descr... | HTML | _includes/head.html | VAcademy/vacademy.github.io | mit | 4,216 | 56 | codeparrot/github-code |
64309e7f3de0d53f8dab8dfc715c940c1662d8ae705e54671b155db189747599 | using System.Collections.Generic;
using System.Text;
using ClassGenMacros;
namespace CurlyBraceParser
{
public class ProcessedFile
{
public ProcessedFile()
{
this.Interfaces = new Dictionary<string, Interface>();
this.Functions = new Dictionary<string, StaticFunction>()... | C# | CurlyBraceParser/ProcessedFile.cs | bahrus/teaspoon | mit | 1,440 | 52 | codeparrot/github-code |
2672ec34b16db09c83f502ed6ff72015658d59ebeb5899540f6775e81ab5e59f | <?php
/**
* Craft Directory by Dukt
*
* @package Craft Directory
* @author Benjamin David
* @copyright Copyright (c) 2014, Dukt
* @license https://dukt.net/craft/directory/docs
* @link https://dukt.net/craft/directory
*/
namespace Craft;
class DirectoryPlugin extends BasePlugin
{
/**
* G... | PHP | craft-v2/plugins/directory/DirectoryPlugin.php | ShaneHudson/ShaneHudson.Net | mit | 1,059 | 64 | codeparrot/github-code |
dd661e34a43bff2b5da5fbd76b7b469f7219f6d839f642fc768d08fa00d1a08d | class BusinessCalendar::Calendar
attr_reader :holiday_determiner
# @param [Proc[Date -> Boolean]] a proc which returns whether or not a date is a
# holiday.
def initialize(holiday_determiner)
@holiday_determiner = holiday_determiner
end
# @param [Date] date
# @return [... | Ruby | lib/business_calendar/calendar.rb | pd/business_calendar | mit | 4,340 | 113 | codeparrot/github-code |
7b11560a9e39f5b2397bad413e35451830288fc4a8422fb75e2c22324d4f0b2d | Meteor.methods({
'livechat:registerGuest': function({ token, name, email, department, custid, leadid, country, mobilenumber, invflag } = {}) {
var stampedToken = Accounts._generateStampedLoginToken();
var hashStampedToken = Accounts._hashStampedToken(stampedToken);
var username = "";
... | JavaScript | packages/rocketchat-livechat/server/methods/registerGuest.js | deep0892/PBChat_attachment | mit | 1,094 | 32 | codeparrot/github-code |
b48cf0c3481b0304c5ed5aa81b121e5709d5cebfb7fcde309a310a7a32431e27 | module.exports = {
assertHasSingularEntry (po, singular) {
const entry = po.translations[''][singular]
expect(entry).toEqual({
msgid: singular,
msgstr: [''],
})
},
assertHasSingularContextEntry (po, singular, context) {
expect(po.translations[context]).not.toBeUndefined()
const e... | JavaScript | test/assertions.js | rtymchyk/babel-extract-gettext | mit | 1,261 | 49 | codeparrot/github-code |
c8ccb0db6a1bf0273c2be040c2fc6aab0e1267148f49bdfa19e73e5507f4a79f | import ActionType from '../constants/OrderConstants';
import Dispatcher from '../dispatcher';
import {createStore} from './BaseStore';
const order = {};
const OrderStore = createStore({
getAll(){
return order;
},
get(id) {
return order[id];
}
});
OrderStore.dispatchToken = Dispatch... | JavaScript | src/stores/OrderStore.js | bang88/ant-console | mit | 579 | 34 | codeparrot/github-code |
8371e60d7ba6e5ea01fe9d8af5294c595738462e2b22e92bf74af490f7669f85 | ]<!-- template for ractive -->
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="fa fa-bars icon"> </span>
</button>
<a class="navbar-brand sec... | HTML | Scripts/template.html | cjlovering/Website | mit | 11,700 | 353 | codeparrot/github-code |
2e991feaa70ee7bc03c51700b56fbda65fd73ba894b0ba3b5be994190f731e00 | #include "delaunay.h"
namespace dt {
template<typename T>
const std::vector<typename Delaunay<T>::TriangleType>&
Delaunay<T>::triangulate(std::vector<VertexType> &vertices)
{
// Store the vertices locally
_vertices = vertices;
// Determinate the super triangle
T minX = vertices[0].x;
T minY = vertices[0].y;
T ... | C++ | dt/delaunay.cpp | Bl4ckb0ne/delaunay-triangulation | mit | 2,806 | 118 | codeparrot/github-code |
8522026f383e01252a24c63894b70f8c0f4b2113f6e5a802448d34448c3de012 | package cmd
import (
"flag"
"fmt"
"net/http"
"github.com/skuid/go-middlewares/authn/google"
"github.com/skuid/helm-value-store/server"
"github.com/skuid/spec"
"github.com/skuid/spec/lifecycle"
"github.com/skuid/spec/middlewares"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"github.com/spf13/viper"
"g... | GO | cmd/serve.go | skuid/helm-value-store | mit | 2,947 | 89 | codeparrot/github-code |
94819a4df91223350d5b8a4ad8adeffc978cf453c76971151b5ecfd7078eb712 | "use scrict";
var app = angular.module('conscienciaApp', ['ui.bootstrap', 'ngRoute']);
app.value('INSTA_PUBLIC_KEY', 'b3772cf0fbf34a85a8bbc283e6588b32');
const APP_PAGE = 'html/pages/';
const APP_TPL = 'html/tpls/';
app.config(function($routeProvider) {
$routeProvider.
when('/', {controller: 'HomeCtrl', template... | JavaScript | app/js/app.js | FelipeBarrosCruz/consciencialimpa | mit | 1,280 | 59 | codeparrot/github-code |
4f1c3c66fe981e85a4779c2e430407a2bc51765b4b8db8ac4011b6d5c8c05012 | /* eslint-disable no-console */
/**
* Given the dist tag fetch the corresponding
* version and make sure this version is used throughout the repository.
*
* If you work on this file:
* WARNING: This script can only use built-in modules since it has to run before
* `yarn install`
*/
const childProcess = require('... | JavaScript | scripts/use-react-dist-tag.js | lgollut/material-ui | mit | 2,174 | 65 | codeparrot/github-code |
9ff2cf09dd1ca2a8369f44d1ded89196d5f7e55693342157778efac64cdfbd70 | <?php
/**
* Copyright © 2016 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Framework\Css\PreProcessor\Instruction;
use Magento\Framework\Css\PreProcessor\ErrorHandlerInterface;
use Magento\Framework\View\Asset\File\FallbackContext;
use Magento\Framework\View\Asset\LocalIn... | PHP | magento2ce/lib/internal/Magento/Framework/Css/PreProcessor/Instruction/MagentoImport.php | enettolima/magento-training | mit | 4,198 | 128 | codeparrot/github-code |
5dff20a662f61eba523926a16b3ae454669077fc7fb693a740258a62ad0ee032 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>atbr: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel=... | HTML | clean/Linux-x86_64-4.10.1-2.0.6/extra-dev/dev/atbr/8.8.0.html | coq-bench/coq-bench.github.io | mit | 7,501 | 171 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.