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 |
|---|---|---|---|---|---|---|---|---|
f44f0822a6c3afd1c91d2868fe1e90276be336c35e254837acbd0947715c7103 | import base64
import json
import requests
import textwrap
FRINK_URL = 'https://frinkiac.com'
FRINK_API_URL = '{0}/api/search'.format(FRINK_URL)
FRINK_CAPTION_URL = '{0}/api/caption'.format(FRINK_URL)
FRINK_RANDOM_URL = '{0}/api/random'.format(FRINK_URL)
MORB_URL = 'https://morbotron.com'
MORB_API_URL = '{0}/api/searc... | Python | Frinkiac/frinkiac.py | GordonsBeard/frinkiac.py | mit | 4,152 | 114 | codeparrot/github-code |
fb6b0203ce64c71e5b06863b15a57bf5050ce53683c38180b67b4240f0214857 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>Welcome to my Page</title>
... | HTML | index.html | nauman3128/bunty | mit | 29,704 | 550 | codeparrot/github-code |
8925e0574903520606a1550a079ce013e2c7b6935cd77dd496ec81f5d31a2ff7 | var vows = require('vows'),
assert = require('assert'),
mockery = require('../mockery'),
sinon = require('sinon');
var mock_fake_module = {
foo: function () {
return 'mocked foo';
}
};
var tests = {
"when a substitute is registered": {
setup: function () {
mockery.r... | JavaScript | test/substitute.js | cspotcode/mockery-next | mit | 3,932 | 106 | codeparrot/github-code |
786cfafa1901b3fbd1e56b884157464ad54364fe9a4aba4dd671c56e5dcf021c | package com.thoughtworks.refactoring.replaceTempwithQuery;
/**
* Created by xinzhang on 6/27/17.
*/
public class Product {
private String name;
private int purchasePrice;
public Product(String name) {
this.name = name;
}
public void setPurchasePrice(int purchasePrice) {
this.pur... | Java | java/src/main/java/com/thoughtworks/refactoring/replaceTempwithQuery/Product.java | hellocreep/refactoring | mit | 681 | 34 | codeparrot/github-code |
5197fa8dd1f9189c53b3d39b0f5b5d6c186f8126566f4d9b75af5fdbfe0f4697 | <DIV NAME="detail" ID="detail" xmlns="http://www.w3.org/TR/REC-html40"><H3><A NAME='detail_VerifyDBValue'></A>Selenium DDDriverDatabaseCommands::<BIG>VerifyDBValue</BIG>
</H3> <TABLE><TR>
<TD class="borderStyle"><SPAN CLASS='Support' TITLE='SAFS TID Commands'>TID</SPAN></TD>
<TD class="borderStyle"><SPAN CLASS='Suppo... | HTML | keyref/SeleniumDDDriverDatabaseCommandsVerifyDBValue.html | kid551/safsdev.test.github.io | mit | 5,866 | 154 | codeparrot/github-code |
dc41e10b1f20c679ea356af871bc32885e728748a416645bb91b564b1f12f74c | <?php
use \Doitonlinemedia\Admin\App\Models\Module;
use \Doitonlinemedia\Admin\App\Models\DocumentType;
Route::bind('documentTypeAlias', function ($alias) {
$module = (strlen(request()->module) > 0) ? Module::getCachedModules()->where('alias', request()->module)->first() : null;
return DocumentType::where('al... | PHP | src/modules/content/routes/content.php | doitonlinemedia/brickle | mit | 2,956 | 50 | codeparrot/github-code |
98211bb34b086a0537293d38896e9a290bf183dcfbae648f9db541dd130dae14 | /* Software License Agreement (BSD License)
*
* Copyright (c) 2009-2011, Kevin Decker kpdecker@gmail.com
*
* All rights reserved.
*
* Redistribution and use of this software in source and binary forms, with or
* without modification, are permitted provided that the following conditions
* are met:
*
* Re... | JavaScript | diff.js | Nateowami/JasmineDiff | mit | 15,341 | 422 | codeparrot/github-code |
477a9e94adc9d12067644155e25e3ff8b71356871ccc9280217b2b5107f20aa6 | import socket
import time
import threading
def tcplink(sock, addr):
print('Accept new connection from %s:%s...' % addr)
sock.send(b'Welcome!')
while True:
data = sock.recv(1024)
time.sleep(1)
if not data or data.decode('utf-8') == 'exit':
break
sock.send(('Hello... | Python | netprogram/server.py | zhujianjunscut/python_learning | mit | 737 | 32 | codeparrot/github-code |
a6bcc2d5d4b1445484024a4c76dd2ac2f6f41dd2fdfbbadf6d5c501d1878ac70 | using PodioAPI.Models.Request;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
namespace PodioAPI.Utils
{
internal class Utility
{
internal static string ArrayToCSV(int[] array, string splitter = ",")
... | C# | Source/Podio .NET/Utils/Utilities.cs | podio/podio-dotnet | mit | 4,389 | 121 | codeparrot/github-code |
d294b44abf8086a8c9e47822d4025dfdc67dc5170b81d758fb9ec18a5a160fd8 | // GridDataViewBinder.cs
//
using jQueryApi;
using Slick;
using Slick.Data;
using SparkleXrm.jQueryPlugins;
using System;
using System.Collections.Generic;
using System.Html;
using System.Runtime.CompilerServices;
using Xrm;
using Xrm.Sdk;
using Xrm.Sdk.Metadata;
namespace SparkleXrm.GridEditor
{
public class Gri... | C# | SparkleXrmSource/SparkleXrmUI/GridEditor/GridDataViewBinder.cs | scottdurow/SparkleXrm | mit | 31,729 | 787 | codeparrot/github-code |
57c66661236266720f4e23646650ccde226a67faf2ea9441526f5a776b7076d0 | /*
Copyright (c) 2016 Steven Phillips, Miro Dudik and Rob Schapire
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... | Java | density/Getval.java | mrmaxent/Maxent | mit | 2,535 | 63 | codeparrot/github-code |
146e3af5edbee488997d4a782a9cf26a5f5cf2d6f8d5c57dc9f57d352778f7f0 | package com.github.rakawestu.explorejogja.ui.viewmodel;
import com.github.rakawestu.explorejogja.domain.model.Place;
/**
* Custom implementation of a model to use with ModelCollectionView
*
* @author rakawm
*/
public class PlaceViewModel extends PlaceModel {
Place place;
public PlaceViewModel(Place plac... | Java | app/src/main/java/com/github/rakawestu/explorejogja/ui/viewmodel/PlaceViewModel.java | rakawestu/explore-jogja | mit | 629 | 33 | codeparrot/github-code |
f10c16f9dc0e356f8ccb43b35d3f0033f0152a964ef1f8fad2df5c032425316a | package skin.support.widget;
import android.content.Context;
import android.content.res.ColorStateList;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.support.annotation.ColorInt;
import android.support.annotation.DrawableRes;
import android.support.annotation.RequiresApi;
import an... | Java | android-support/theme-support-appcompat/src/main/java/skin/support/widget/SkinCompatRadioButton.java | ximsfei/Android-theme-support | mit | 5,128 | 156 | codeparrot/github-code |
5139f0214e1a615db11268e27a7a8ea69dcf7b2c8a12347a534c9b2972fe58df | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = undefined;
var _promise = require('babel-runtime/core-js/promise');
var _promise2 = _interopRequireDefault(_promise);
var _regenerator = require('babel-runtime/regenerator');
var _regenerator2 = _interopRequireDefault(... | JavaScript | lib/tx/simpleoperational.js | eordano/coloredcoinjs-lib | mit | 7,942 | 265 | codeparrot/github-code |
67ade80e80ae9dc066d015ad7e9de5b50f65d6c3a3438afd14d9a518d9f0ecad | package mpjdev.nbcomms;
import mpjbuf.Buffer;
import mpjbuf.Type;
import mpjdev.MPJDev;
/**
* Gather methods of Buffer Class, and Scatter methods of Buffer Class.
*/
public class BufferTestDyna3 {
public static void main(String args[]) throws Exception {
//the first call will always be init()
... | Java | src/test/java/mpjdev/nbcomms/BufferTestDyna3.java | patrickwestphal/mpj-express-mvn | mit | 11,579 | 309 | codeparrot/github-code |
99dea0ae4f756f36371ed8d00619bb582c10d64c2445683aa63f0e7913bd894b | //-----------------------------------------------------------------------
// Copyright 2011 Ciaran McHale.
//
// 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... | C++ | src/LexBase.cpp | offa/config4cpp | mit | 17,316 | 739 | codeparrot/github-code |
df580c0c0d9b454a86b8d4c8ad4a2d491aa219a674f0c7de850ca7e549558728 | REFRESH_TIMER = 1000
class Ticker(object):
def __init__(self, _vim):
self._vim = _vim
self.has_timers = bool(int(self._vim.eval("has('timers')")))
if self.has_timers:
self._timer = None
self._start_refresh_timer()
def tick(self, client):
filename = cl... | Python | ensime_shared/ticker.py | ensime/ensime-vim | mit | 956 | 37 | codeparrot/github-code |
36cd5886b7c0c9d37979e456c1d544c20e1ccee43c19fc5dfd0f379187d97570 | import logging
from pymongo.errors import DocumentTooLarge
from . import Util
class PathFinder:
def __init__(self, config, pg_conn, mongo_client):
self._config = config
self._pg_conn = pg_conn
self._mongo_client = mongo_client
self._logger = logging.getLogger(self.__class__.__nam... | Python | revs/path.py | DBWangGroupUNSW/revs | mit | 5,412 | 124 | codeparrot/github-code |
60ae74983e147d43f8d45ed3c7c826d450b9ebac3b19000453b59dd2294b0142 | #include "signverifymessagedialog.h"
#include "ui_signverifymessagedialog.h"
#include "addressbookpage.h"
#include "base58.h"
#include "guiutil.h"
#include "init.h"
#include "main.h"
#include "optionsmodel.h"
#include "walletmodel.h"
#include "wallet.h"
#include <string>
#include <vector>
#include <QClipboard>
Sign... | C++ | src/qt/signverifymessagedialog.cpp | ripplelite/XPL | mit | 8,716 | 275 | codeparrot/github-code |
db8f4e3fc874c0e5de3e14fdb324be6bac41289938c80fbfdf8d85711c570475 | /* ====================================================================
* Tea - Copyright (c) 1997-2000 Walt Disney Internet Group
* ====================================================================
* The Tea Software License, Version 1.1
*
* Copyright (c) 2000 Walt Disney Internet Group. All rights reserv... | Java | Tools/TeaTrove-Tea/teatrove-Tea-3.2.0/Tea3.2.0/Code/Java/com/go/tea/io/LinePositionReader.java | injectnique/KnuckleHeadedMcSpazatron | mit | 5,820 | 167 | codeparrot/github-code |
56a1e333ced9f4f1c8d791f667142099063ec21146a06a44ada6b0c2cb3312c5 | // //////////////
// Math Library!
//
// ////////////////////////////
// Check these links later
// Rotation-box-collision-detection: www.ragestorm.net/tutorial?id=22
// Also look for box-onAxis-collision (menu stuff maybe?)
function GameMath() {
var local = {}
local.intRandom = function(min, max) {
return parse... | JavaScript | ToFrageEngine/scripts/math.js | Maddix/AShip | mit | 4,833 | 141 | codeparrot/github-code |
fbe88ffed69f0229c242a6de7d92936b323d4c67ddffbfaedc9f5010b09fea9c | <!DOCTYPE HTML>
<html lang="zh">
<head>
<!-- must set here! -->
<base href="">
<title>表格下拉框方案1</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- 使用 viewport meta 标签在手机浏览器上控制布局 -->
<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
<!-- 全屏模式,不... | HTML | vskeddemos/htmljavascriptcss/tablesdemo/15datatables下拉.html | brucevsked/vskeddemolist | mit | 7,708 | 253 | codeparrot/github-code |
fac99804b9a64ce63e344e6d7da6f1338092e3f68926ad5ca3a58d33abe0e615 | # <@LICENSE>
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to you under the Apache License, Version 2.0
# (the "License"); you... | Perl | images/lenny64-peon/usr/share/perl5/Mail/SpamAssassin/DnsResolver.pm | carlgao/lenga | mit | 16,455 | 601 | codeparrot/github-code |
837d26426636286e7b2ee8e130eed1a49fadd038d1c56cc778ec1ec131e297ee | var mmCmfFieldStringPlugin = function () {
this.fieldType = 'string';
this.enabled = false;
this.bindEvents();
};
mmCmfFieldStringPlugin.prototype.bindEvents = function () {
var $this = this;
$(document).on(this.fieldType + '.init.MMCmfContentFieldEditor', function ($event, $data) {
$th... | JavaScript | Resources/public/js/cmfField/mmCmfFieldString.js | Mandarin-Medien/MMCmfContentBundle | mit | 3,047 | 116 | codeparrot/github-code |
86fe7229995c8d411dd8dcebfade36f9ce8ef051faa9a14b53065e7f0c1d0d74 | import React from 'react'
import { Link, IndexLink } from 'react-router'
import styles from './TopMenuDesktopNav.css'
import Icon from '../../../components/Icon/Icon'
const TopMenuDesktopNav = ({ navs }) => {
return (
<nav className={styles.main}>
<ul>
{navs.map((n, i) => <DesktopNavItem key={i} {.... | JavaScript | src/shared/views/topMenu/TopMenuDesktopNav/TopMenuDesktopNav.js | in-depth/indepth-demo | mit | 1,202 | 52 | codeparrot/github-code |
813324f2df141af5f1358c00591a251179ddff2ccbd1b09cbee9ae9c761bca51 | #ifndef FFBCONDITIONEFFECTPARAMETERS_H
#define FFBCONDITIONEFFECTPARAMETERS_H
#include "ffbeffectparameters.h"
#include <map>
class FFBConditionEffectParameters : public FFBEffectParameters
{
public:
enum class Axis : quint8 { NONE, X, Y };
FFBConditionEffectParameters();
bool centerFromString(const QString& c... | C | ffbconditioneffectparameters.h | MadCatX/FFBChecker | mit | 1,007 | 32 | codeparrot/github-code |
0a011dcd9bc08fd2d799c4c46a01930de04ab70f0ab682b43b3a979d07657251 | Session.setDefault("activePage","");
Template.sidebarTemplate.helpers({
"realTime":function(){
return Session.get("currentTime");
},
"isMyPageActive":function(page){
return page===Session.get("activePage");
},
//下面的辅助函数是为了界面多语言
"langSystemManagement":function(){
return S... | JavaScript | client/templates/sidebar.js | masterfish2015/gzerm | mit | 1,410 | 47 | codeparrot/github-code |
cf29db7dbf20629b62a4819b130e51177e126ee096b892479ec8f4e42c865193 | import React, { Component } from 'react'
import { Input, Label, Menu } from 'semantic-ui-react'
export default class MenuExampleSizeVerticalSmall extends Component {
state = { activeItem: 'inbox' }
handleItemClick = (e, { name }) => this.setState({ activeItem: name })
render() {
const { activeItem } = this... | JavaScript | docs/src/examples/collections/Menu/Variations/MenuExampleSizeVerticalSmall.js | Semantic-Org/Semantic-UI-React | mit | 1,122 | 47 | codeparrot/github-code |
11dfd8a68fdc3b8b45f1006e24eddd16e258c19cd5d3c9fffe6ab0d67ca8f897 | <?php
namespace LaravelLangBundler\Exceptions;
use Exception;
class InvalidModificationArgument extends Exception
{
/**
* Invalid target passed.
*
* @param string $target
*
* @return static
*/
public static function targetNotAllowed($target)
{
return new static(
... | PHP | src/Exceptions/InvalidModificationArgument.php | zachleigh/laravel-lang-bundler | mit | 707 | 36 | codeparrot/github-code |
42c0e93cbf11b4edebf50475ed8ce4745486f44c8e16333fde638be9bbe31fec | /*
*
@file sockutil.c
@brief Implementation of useful function of iinChip
*
*/
#include <avr/io.h>
#include <stdio.h>
#include <string.h>
#include "types.h"
//#include "serial.h"
//#include "myprintf.h"
#include "util.h"
//#include "config.h"
//#include "w5100.h"
#include "sockutil.h"
/**
... | C | Ethernet/utility/sockutil.c | sile16/AScoket | mit | 7,999 | 370 | codeparrot/github-code |
e6e6ff156adf8f60bfc49e506435ff91d86f12b2b4d699091be2e40fddbf8136 | import PropTypes from 'prop-types';
import React, { Component } from 'react';
/**
* @typedef {Object} event - a dom event
* @property {Object} target - a dom target.
* @property {*} target.value - the value
*/
/**
* A basic Select Class used for creating html select tags.
*
* @class
*/
class Select extends Co... | JavaScript | src/components/select/select.js | psenger/ReactJS-Rapid-Prototype-Template | mit | 1,558 | 58 | codeparrot/github-code |
644aadba09777a67ebc63e61b6ccfd4d14401ddbc4bc4e121c22f400b11f37a1 | // -----------------------------------------------------------------------------
// Original code from SharpDX project. https://github.com/sharpdx/SharpDX/
// -----------------------------------------------------------------------------
// Copyright (c) 2010-2014 SharpDX - Alexandre Mutel
//
// Permission is hereby gr... | C# | MyHalp/MyMath/MyCollision.cs | Erdroy/MyHalp | mit | 60,501 | 1,395 | codeparrot/github-code |
9097d15961b37564db269d770670df12db4a38f7316aaaa811f8eaf9f3c1e487 | jQuery(function ($) {
var selected = [];
//init datatable
function renderCheckbox(id) {
return '<label class="position-relative">' +
'<input ' + (selected.indexOf(id) > -1 ? 'checked' : '') + ' type="checkbox" class="ace merge-cb" value=' + id + ' />'
+ '<span class="... | JavaScript | assets/modules/polkam/js/masjid/masjid-table.js | danurwenda/xeroxampah | mit | 9,195 | 242 | codeparrot/github-code |
a53373a8ee447db406e983de5f7db84ad5e82a1c705fb0a483e32c70ac2ef9c1 | # epydoc.py: manpage-style text output
# Edward Loper
#
# Created [01/30/01 05:18 PM]
# $Id: man.py,v 1.6 2003/07/18 15:46:19 edloper Exp $
#
"""
Documentation formatter that produces man-style documentation.
@note: This module is under development. It generates incomplete
documentation pages, and is not yet incorpe... | Python | api/epydoc/man.py | dabodev/dabodoc | mit | 8,842 | 253 | codeparrot/github-code |
ebaebc4cfd9855bea2baf265b00940bd3519649a2e37db950fa99f57ef2ef831 | <?php
namespace Cothema\OpeningHours;
use Cothema\OpeningHours\Exception\NotYetImplemented;
use Cothema\OpeningHours\Model\Status as StatusModel;
use Nette\SmartObject;
use Nette\Utils\DateTime;
/**
*
* @author Milos Havlicek <miloshavlicek@gmail.com>
* @property-read bool|string $closingAtWarning
* @property-re... | PHP | src/Status.php | cothema/opening-hours | mit | 7,003 | 300 | codeparrot/github-code |
e90c797fbf05d7247c413adbbf9d9803a39dd66c31ad8f6595d3f1dc04223546 | /**
* P1PP library
* Author: Eric Cestari <ecestari@process-one.net>
*
* This library will open an XMPP socket using the best transport available.
* Once connection has been established, it will suscribe to PubSub nodes on the given service
* For each publication event, it will call the user provided `publish(id,... | JavaScript | src/p1pp.js | processone/p1pp-js | mit | 16,036 | 470 | codeparrot/github-code |
0da91f29df28cc153ac5bda51e3f797f8bb194a3d64e193ea7482d5dce500a45 | import re
from markdown2 import Markdown
from ..conf import get_settings
class MDPageMarkdown(Markdown):
def __init__(self, settings):
super(MDPageMarkdown, self).__init__(extras=[
'wiki-tables', 'tables', 'footnotes', 'fenced-code-blocks', 'header-ids', 'task_list'
])
self.... | Python | mdpage/utils/markdown.py | dakrauth/django-markdown-page | mit | 1,896 | 57 | codeparrot/github-code |
de71357b36f4986928519100b7d9bcfe5f4ee4c122f602ea7f93e5f98d1ac8ab | use std::slice;
use common::{err, ascii, charfreq, util};
pub struct Guess {
pub plain: Vec<u8>,
pub key: u8,
pub distance: f32
}
pub fn guess_key(cipher: &Vec<u8>, opt_options: Option<&GuessOptions>) -> Result<Guess, err::Error> {
let mut guess_dist = Vec::new();
let default_optio... | Rust | src/common/cipher/one_byte_xor.rs | amol9/matasano | mit | 4,626 | 156 | codeparrot/github-code |
933dba9832c9e17a8d936b6970b85505366d0ae3b24c44e9d282437284148b6e | package com.simoncomputing.app.beast.controller;
import java.io.IOException;
import java.text.ParseException;
import java.util.Properties;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import java... | Java | beast/src/main/java/com/simoncomputing/app/beast/controller/MainController.java | SimonComputingAgileServices/openfda | mit | 5,552 | 161 | codeparrot/github-code |
5bd5ae4611826c203cdf3e7cb5ed5dc0dcfb170f379bcdb615b45b969fe0d062 | #include "sendcoinsentry.h"
#include "ui_sendcoinsentry.h"
#include "guiutil.h"
#include "bitcoinunits.h"
#include "addressbookpage.h"
#include "walletmodel.h"
#include "optionsmodel.h"
#include "addresstablemodel.h"
#include "stealth.h"
#include <QApplication>
#include <QClipboard>
SendCoinsEntry::SendCoinsEntry(QW... | C++ | src/qt/sendcoinsentry.cpp | gravitondev/graviton | mit | 4,517 | 183 | codeparrot/github-code |
9ce45d222786d5e40fd112522eae11a851ec3e851d5d02226cb5a7f6739bee43 | import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { Champion } from './champion.ts';
import { ChampionService} from './champion.service';
@Component({
selector: 'champion-selector',
templateUrl:'html/champions.html',
styleUrls:['css/champions.css'],
})
expo... | TypeScript | app/champions/champions.component.ts | ethan1341/heroku-league | mit | 2,092 | 67 | codeparrot/github-code |
3fea7c7342f46689c731f57a6ed6152cbee22743379cd44ab01c6e5936c3013d | <?php
/*
* This file is part of the Tempo-project package http://tempo-project.org/>.
*
* (c) Mlanawo Mbechezi <mlanawo.mbechezi@ikimea.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tempo\Bundle\AppBundle\Twig\Extensi... | PHP | src/Tempo/Bundle/AppBundle/Twig/Extension/AppExtension.php | Shine-neko/tempo | mit | 2,811 | 121 | codeparrot/github-code |
a638d1cd6df33b1b48ae1b6b447bc5777e6adecccd03bfe1bd7f7b5e5ae886c9 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>metacoq-template: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstra... | HTML | clean/Linux-x86_64-4.08.1-2.0.5/released/8.11.2/metacoq-template/1.0~alpha1+8.9.html | coq-bench/coq-bench.github.io | mit | 7,896 | 185 | codeparrot/github-code |
54a705506adb2c03f3810ed69825d1a5f76870b8e32c7711e61fded4b153c7de | <html>
<head>
<title>WebGL - 12 Point light</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="./style/webgl.css" type="text/css">
<script type="text/javascript" src="./scripts/glMatrix-0.9.5.min.js"></script>
<script src="./scripts/12-pointlight.js" type... | HTML | 12-pointlight.html | CirilBohak/webgl-lessons | mit | 5,313 | 124 | codeparrot/github-code |
c8c69bdf4359359c288e89511defeb935cba65ff6fda50d031d1ee3cc9de590a | (function() {
'use strict';
/**
* @todo Complete the test
* This example is not perfect.
* The `link` function is not tested.
* (malarkey usage, addClass, $watch, $destroy)
*/
describe('directive malarkey', function() {
var $log;
var vm;
var el;
beforeEach(module('quickSight'));
... | JavaScript | src/app/components/malarkey/malarkey.directive.spec.js | akakwel/quick-sight | mit | 1,271 | 46 | codeparrot/github-code |
8c9ddc50e1864a093c60c91073ea4502768d6808ac4ade728d1376a041312185 | #include "include/global.h"
#include "alinous.runtime.engine.debugger.server/ServerBreakPoint.h"
#include "alinous.runtime.engine.debugger.server/FileBreakpointContainer.h"
#include "alinous.runtime.engine.debugger/AlinousScriptDebugger.h"
#include "alinous.runtime.engine.debugger.server/IDebuggerOperation.h"
#includ... | C++ | lib/src_java/alinous.runtime.engine.debugger.server/AbstractDebuggerOperation.cpp | alinous-core/alinous-elastic-db | mit | 2,762 | 75 | codeparrot/github-code |
a52729f6680829159ff1def7ca2a1a81d4e8767f38710e4b651e25b455fec9fe | # frozen_string_literal: true
require 'uri'
module Banzai
module Filter
# HTML filter that "fixes" relative links to uploads or files in a repository.
#
# Context options:
# :commit
# :group
# :project
# :project_wiki
# :ref
# :requested_path
class RelativeLinkFil... | Ruby | lib/banzai/filter/relative_link_filter.rb | jirutka/gitlabhq | mit | 4,720 | 176 | codeparrot/github-code |
009fef39e5eb844dce18fcf6ab80882abcf76c017a73e0c65f7826ba85abc83e | function Install-DbaMaintenanceSolution {
<#
.SYNOPSIS
Download and Install SQL Server Maintenance Solution created by Ola Hallengren (https://ola.hallengren.com)
.DESCRIPTION
This script will download and install the latest version of SQL Server Maintenance Solution created by Ola Hallengr... | PowerShell | functions/Install-DbaMaintenanceSolution.ps1 | kozloski/dbatools | mit | 19,395 | 420 | codeparrot/github-code |
70108de7259b7ecd816ea5de23e46c58438e5bfe3366d259ba6b93129fd8ac53 |
package com.fionapet.business.restclient;
import com.alibaba.fastjson.JSON;
import com.fionapet.business.entity.DictTypeDetail;
import junit.framework.Assert;
import org.dubbo.x.consumer.Assertable;
import org.dubbo.x.consumer.RestClientTestCase;
import org.dubbo.x.entity.RestResultEnum;
import org.dubbo.x.facade.Re... | Java | fionapet-business/fionapet-business-consumer/src/test/java/com/fionapet/business/restclient/DictTypeDetailRestClient.java | bqw5189/pet-hospital | mit | 2,598 | 73 | codeparrot/github-code |
7728ce4b1d6591b75f3de165af896426b837906704fbefd92f94b42fe2b55ca3 | <?php
declare(strict_types=1);
namespace PhpMud\IO\Command;
use PhpMud\Client;
use PhpMud\Enum\AccessLevel;
use PhpMud\IO\Input;
use PhpMud\IO\Output;
use PhpMud\Server;
use Pimple\Container;
use Pimple\ServiceProviderInterface;
use function Functional\each;
use function Functional\with;
class GossipCommand implemen... | PHP | src/IO/Command/GossipCommand.php | danielmunro/php-mud | mit | 1,839 | 55 | codeparrot/github-code |
240f342788731c8941e4a60162e02a9be17a4c141f317b01b87a932312abcf97 |
#pragma once
#include "../framework/graphicslib.h"
#include "../framework/memory.h"
#include "../framework/event.h"
#include <list>
#include <vector>
#include <string>
#include <curl/curl.h>
#ifndef Framework
class Framework;
#endif // Framework
class DownloadInformation
{
public:
std::string* URL;
unsign... | C | managers/downloadmanager.h | pmprog/SkySupreme | mit | 928 | 53 | codeparrot/github-code |
8ea32687ccb0785bae70da0877ade16f21751a43f3119d9d66e37b0ae5ac7a5b | package org.openapitools.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@javax.annotation.Generated(value = "org.openapitools.codegen... | Java | clients/java-inflector/generated/src/gen/java/org/openapitools/model/FreeStyleProjecthealthReport.java | cliffano/swaggy-jenkins | mit | 4,180 | 163 | codeparrot/github-code |
662f43b88322e97975bd8a065e7c7afd15065208908d576d10dc0e735c9a0e58 | <?php
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); y... | PHP | phal/thrdparty/log4php/layouts/LoggerLayoutTTCC.php | aparraga/phal | mit | 7,238 | 247 | codeparrot/github-code |
52243efa04e5d93ec97efb9b82a500a49400a282e15bfa8f8090a739fcae2962 | using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Microsoft.AspNetCore.Mvc;
namespace VirtualDirectory.Controllers
{
[Route("/products")]
[Produces("application/json")]
public class CrudActionsController
{
[HttpPost]
public int Create([FromBody, Requi... | C# | test/WebSites/VirtualDirectory/Controllers/CrudActionsController.cs | c3-ls/Ahoy | mit | 1,300 | 55 | codeparrot/github-code |
9972c3d42d75a1e5aa3d8ebaa362fa04452dc8b2ff5aaefa62c601ee7d463918 | package main
import (
"fmt"
"os"
"strconv"
"github.com/fogleman/mol/mol"
. "github.com/fogleman/pt/pt"
)
func GetColor(name string) Color {
switch name {
case "1", "2", "3":
return Color{0.1, 0.1, 0.1}
case "H":
return HexColor(0xECF0F1)
case "C":
return HexColor(0x222222)
case "N":
return HexColor... | GO | examples/mol.go | fogleman/pt | mit | 2,254 | 101 | codeparrot/github-code |
80a12d6957fc5b86378dba119f052523547766c2fa504182f451e66349986daa | 'use strict';
// MODULES //
var isNumber = require( 'validate.io-number-primitive' ),
isArrayLike = require( 'validate.io-array-like' ),
isTypedArrayLike = require( 'validate.io-typed-array-like' ),
isMatrixLike = require( 'validate.io-matrix-like' ),
ctors = require( 'compute-array-constructors' ),
matrix = req... | JavaScript | lib/index.js | distributions-io/geometric-mgf | mit | 3,459 | 120 | codeparrot/github-code |
eec6d684e775b342c0cafcf2cd27a94df4ff1e63eb566bceaa01b87c95e078b8 | /*******************************************************************************
Filename: heartrateservice.c
Revised: $Date: 2015-05-08 08:20:47 -0700 (Fri, 08 May 2015) $
Revision: $Revision: 43731 $
Description: This file contains the Heart Rate sample service
for us... | C | cc26xx-example/ti/BLE-CC264x/ble_cc26xx/Projects/ble/Profiles/HeartRate/CC26xx/heartrateservice.c | irext/irext-examples | mit | 15,402 | 503 | codeparrot/github-code |
a88f9ac4a154ac607eeb24cd7856414407fd9f4207aa1c8e1a778059c0e7eac7 | import time
import collections
from overviewbot import OverviewBot, Window
def format_time(timestamp):
return time.strftime("%Y-%m-%d %H:%M:%S UTC", time.gmtime(timestamp))
class CustomWindow(Window):
def __init__(self, input_key, *args, **keys):
Window.__init__(self, *args, **keys)
self.inpu... | Python | vsroom/common/customoverview.py | softcert/vsroom | mit | 1,942 | 74 | codeparrot/github-code |
b14eeee8c5c4fb4d770ac9222d3e0a54624c0b5305529a8b4ff9006db44b37ba | require_relative 'card'
require_relative 'deck'
class Deck
attr_reader :cards
attr_writer :cards
RANKS = ["2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K", "A"]
SUITS = ["\u2660", "\u2665", "\u2663", "\u2666"]
# SUITS = ["Spades", "Hearts", "Clubs", "Diamonds"]
def initialize
@cards = []
... | Ruby | deck.rb | johndshea/crazyeights | mit | 1,382 | 76 | codeparrot/github-code |
c85e57a9a5d6fe22cb5fa540b0f9e853aeab31ddaa7ce402d2d005a868c3a871 | #pragma once
#include "JDKSAvdeccMCU/World.hpp"
#include "JDKSAvdeccMCU/Helpers.hpp"
#include <string>
#include <sstream>
namespace JDKSAvdeccMCU
{
using std::string;
struct AvdeccControlString
{
AvdeccControlString()
{
for( size_t i=0; i<sizeof(m_value); ++i )
{
m_value[i] = 0;
... | C++ | include/JDKSAvdeccMCU/RangedValue.hpp | jdkoftinoff/jdksavdecc-mcu | mit | 51,014 | 2,194 | codeparrot/github-code |
daec46bf91af3fe4441022fc83182799bac8701478ea4c67f431534dc6cf337a | package spgui.widgets
import java.time._ //ARTO: Använder wrappern https://github.com/scala-js/scala-js-java-time
import java.text.SimpleDateFormat
import java.util.UUID
import japgolly.scalajs.react._
import japgolly.scalajs.react.vdom.html_<^._
import japgolly.scalajs.react.ReactDOM
import spgui.SPWidget
import sp... | Scala | gui/src/main/scala/spgui/widgets/TriageWidget.scala | kristoferB/SP | mit | 16,449 | 534 | codeparrot/github-code |
71d1c80beb04e6b460575789d0b6b407798c0258f8eb8bca716d96b947f9dfd8 | <?php
namespace damainpotepuh\CoreBundle\Models;
use Doctrine\ORM\EntityManager;
use damainpotepuh\CoreBundle\Entity\Ad;
class AdManager {
private $class;
private $em;
private $repository;
public function __construct(EntityManager $em, $class )
{
$this->em = $em;
$this->class = $class;
... | PHP | src/damainpotepuh/CoreBundle/Models/AdManager.php | sanofuzir/damainpotepuh | mit | 1,325 | 72 | codeparrot/github-code |
d0f31671222b1eb84f868217faa58fd4a13d430b93830432f9ad94223b496bbf | using System;
using System.IO;
namespace CodeEval.LongestWord
{
/// <summary>
/// Longest Word Challenge
/// Difficulty: Easy
/// Description: Find the Longest Word in a sentence
/// Problem Statement: https://www.codeeval.com/open_challenges/111/
/// </summary>
class LongestWord
{
... | C# | CodeEval/Easy/LongestWord/LongestWord.cs | joshimoo/Challenges | mit | 1,133 | 45 | codeparrot/github-code |
332b669fb5df04f04ba656e3f8e72cb613f47b6cbd630e81c177a9ecd42cb1de | import passport from 'passport';
import mongoose from 'mongoose';
import path from 'path';
import config from '../config';
const User = mongoose.model('User');
/**
* Module init function.
*/
module.exports = function initPassport() {
// Serialize sessions
passport.serializeUser((user, done) => {
done(null, ... | JavaScript | config/lib/passport.js | viatsko/codingbox | mit | 688 | 31 | codeparrot/github-code |
5369a04b361ff4a96034c9cc4e4447b8d292cb86f9a93bedaef3cb04709b4594 | var d3 = require('d3');
var moment = require('moment');
/**
* Created by denis.vergnes on 23/08/2015.
*/
(function (global) {
'use strict';
var config = {
dataSource: 'http://localhost:8080/api/report',
colors: ['#3366CC', '#DC3912', '#FF9900', '#109618', '#990099', '#FF3300', '#CC6633', '#1... | JavaScript | web/app/scripts/src/index.js | vergnes/album-indexer | mit | 5,956 | 201 | codeparrot/github-code |
2444047348b954d78ead228d0abf26e6b50882ac0a9203ae941779c6b0437b90 | 'use strict';
var cluster = require('cluster'),
os = require('os'),
redis = require('redis'),
fs = require('fs'),
MEGABYTE = 1024 * 1024,
PACKAGE_INFO = JSON.parse(fs.readFileSync(__dirname+'/../package.json'));
module.exports = GatewayServer;
function GatewayServer() {
this.wo... | JavaScript | src/server.js | ActiveStack/gateway | mit | 14,477 | 434 | codeparrot/github-code |
d7b910c4df5d912637b6c99a6ff04b6c39a71728318b229d1f41dcb12764096e | var Router = require('./router.js');
var PromisePipe = require('../../src/PromisePipe')();
var Promise = require('es6-promise').Promise;
module.exports = function PPRouterFactory(){
var router = new Router();
var renderer = null;
var stateConfig = {};
var initContext = function(){
return {};
}
functio... | JavaScript | example/PPRouter/index.js | edjafarov/PromisePipe | mit | 5,187 | 185 | codeparrot/github-code |
f6616e472b664fd0d525c5c17c8c7486501edb59350f180cd142ac1473554ced | <?php
/**
* The api endpoint for power rankings.
* Copyright (c) 2017, Tommy Bolger
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redistributions of source code must retain t... | PHP | controllers/api/rankings/power/power.class.php | tommy-bolger/necrolab | mit | 2,548 | 65 | codeparrot/github-code |
4e8d50a3d69e7325fd1e444479ab2771aede0d9a767529c2bcd768b2b8e82010 | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Markup;... | C# | src/app/RapidPliant.Mvx/Binding/BindingMarkupExtensionBase.cs | bilsaboob/RapidPliant | mit | 7,595 | 247 | codeparrot/github-code |
b755e7dbe1fe0c4ae42f802d18c2b9a861244bdfd604dfc1d621b0ebec169ab2 | module Hyperloop
# {HTTP} is used to perform a `XMLHttpRequest` in ruby. It is a simple wrapper
# around `XMLHttpRequest`
#
# # Making requests
#
# To create a simple request, {HTTP} exposes class level methods to specify
# the HTTP action you wish to perform. Each action accepts the url for the
# reque... | Ruby | lib/hyper-operation/http.rb | ruby-hyperloop/hyper-operation | mit | 8,775 | 310 | codeparrot/github-code |
53536c9947cdb34d181fdf97b1efa9a1c22f193dfc3582c2fd6e0fbb669e7800 | /*
Copyright (c) 2005 Poderosa Project, All Rights Reserved.
This file is a part of the Granados SSH Client Library that is subject to
the license included in the distributed package.
You may not use this file except in compliance with the license.
$Id: Util.cs,v 1.2 2005/04/20 09:06:03 okajima Exp $
*/
using Sys... | C# | Terminal Control/Common/Util.cs | bosima/RDManager | mit | 2,995 | 107 | codeparrot/github-code |
79093fc36eeff55ad598f744ba918df41f88dacee039311828652800d63a8b47 | // Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2011-2013 The PrimeChain developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/assign/list_of.hpp> // for 'map_list_of()'
#include <boos... | C++ | src/checkpoints.cpp | iGotSpots/PrimeChain | mit | 18,537 | 437 | codeparrot/github-code |
d8cf8beaf4162f022d35d592a3937e97584c6e8782a79dfd5db4e0e48c744a75 | package com.github.jalgo.algorithm.sort;
import java.util.Comparator;
import static java.util.Arrays.binarySearch;
public class InsertionSorter implements Sorter {
@Override
public <T> void sort(T[] values, Comparator<T> comparator) {
if (values == null) {
return;
}
for ... | Java | src/main/java/com/github/jalgo/algorithm/sort/InsertionSorter.java | FlorinBalint/JAlgo | mit | 901 | 32 | codeparrot/github-code |
a067c7ae0f87818e84ba0d4c9fa172c767f7fcd64135d75a299b17c5d86a0f9a | <?php
class WCML_Pip{
function __construct(){
add_filter( 'wcml_send_email_order_id', array( $this, 'wcml_send_email_order_id') );
add_filter( 'woocommerce_currency_symbol', array( $this, 'filter_pip_currency_symbol' ) );
add_filter( 'wcml_filter_currency_position', array( $this, 'filter_... | PHP | web/app/plugins/woocommerce-multilingual/compatibility/class-wcml-pip.php | Kilbourne/biosphaera | mit | 2,561 | 94 | codeparrot/github-code |
61f5d46cc856cbe72e2c642ec96c7a18c344efeef4a3a0bb9eb9748deaa82a64 | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | src/vs/editor/contrib/codelens/codelensWidget.ts | Krzysztof-Cieslak/vscode | mit | 11,252 | 364 | codeparrot/github-code |
df4b2d5e8571fd1f93d35af3046ecaacc393acc5a81c28d2f21df2dce8a947f6 | // A visualization of Cause of Death data from the Centers for Disease Control.
//
// Details of the data can be found here:
// https://github.com/curran/data/tree/gh-pages/cdc/mortality
//
// Curran Kelleher
// 2/13/2014
//
var dataModuleURL = 'http://curran.github.io/data/cdc/mortality/mortality.js';
require([dataMod... | JavaScript | mortality/v2/main.js | curran/visualizations | mit | 5,473 | 163 | codeparrot/github-code |
8cd2509925757aef0d79555157bd49ec793a30706f8529eb02fcc68838f1eb94 | <?php
/**
* Upfor Framework
*
* @author Shocker Li <shocker@upfor.club>
* @copyright Upfor Group
* @link http://framework.upfor.club
* @license MIT
*/
namespace Upfor;
use Closure;
use Exception;
use Upfor\Helper\Collection;
use Upfor\Helper\Container;
use Upfor\Http\Request;
use Upfor\Http\... | PHP | src/App.php | upfor/upforphp | mit | 13,055 | 458 | codeparrot/github-code |
4f04535a01ef2f38862d543cc7f84857f7d996e77e04c3b3e38c00a53324c084 | #include <CQFloatEdit.h>
#include <CQAutoHide.h>
#include <QApplication>
#include <QKeyEvent>
CQFloatEdit::
CQFloatEdit(QWidget *parent) :
QLineEdit(parent)
{
connect(this, SIGNAL(editingFinished()), this, SLOT(acceptSlot()));
hider_ = new CQAutoHide(this);
hide();
}
CQFloatEdit::
~CQFloatEdit()
{
delete ... | C++ | src/CQFloatEdit.cpp | colinw7/CQUtil | mit | 1,093 | 81 | codeparrot/github-code |
037e003e9a57767df48f38ad9955d783c93d667edd6a29a023ea94d96a9e7ed6 | <?php
namespace RokkaCli\Command;
use Rokka\Client\Core\SourceImageCollection;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
class ImageUploadCommand extends... | PHP | src/Command/ImageUploadCommand.php | rokka-io/rokka-client-php-cli | mit | 2,284 | 63 | codeparrot/github-code |
0269c79b22871feb159b2a5477147254dab4efe07a8d6c2fdcede72fcb72ae42 | package com.amee.platform.search;
import com.amee.base.domain.ResultsWrapper;
import org.apache.lucene.document.Document;
import org.apache.lucene.index.Term;
import org.apache.lucene.search.Query;
import org.apache.lucene.search.Sort;
import java.util.Collection;
public interface LuceneService {
public Results... | Java | amee-platform-service/src/main/java/com/amee/platform/search/LuceneService.java | OpenAMEE/amee.platform.api | mit | 1,309 | 47 | codeparrot/github-code |
908491a9d3749e9b2f6dfa0799efd2fd693b7a43b945b87b20ea310bd4c09ea8 | import {Injectable} from '@angular/core';
import {Http, RequestOptions, RequestOptionsArgs, URLSearchParams} from '@angular/http';
import {API_URL} from '../config';
import {Observable} from 'rxjs/Rx';
import 'rxjs/add/operator/map';
import 'rxjs/add/operator/catch';
import {DictionaryList} from '../model/dictionary.mo... | TypeScript | src/app/shared/dictionary.service.ts | RichHcirError/NEZNAYKA | mit | 1,899 | 67 | codeparrot/github-code |
5a197220b5d5276a22b9583f37dda4b453976a216964828aa57b367a93adb29d | package main
import (
"encoding/json"
"flag"
"fmt"
"github.com/Anteoy/liongo/constant"
cst "github.com/Anteoy/liongo/constant"
"github.com/Anteoy/liongo/service"
"io/ioutil"
"net/http"
"strings"
)
type ArticleConfigSearch struct {
Title string `json:"title"` //标题
Date string `json:"date"` //时... | GO | search/main.go | Anteoy/liongo | mit | 2,577 | 104 | codeparrot/github-code |
1f9b83b05c8af560c631e63dbf7f732e63efb09d6974e32e4fda480835706865 | import {resolve, normalize, basename, extname, dirname, join} from 'path';
function factory (less) {
class PatternFileManager extends less.FileManager {
constructor (options) {
super();
this.options = options;
}
static isRelativePath (path) {
return normalize(path) !== resolve(path);
}
supports (... | JavaScript | source/create-pattern-file-manager.js | sinnerschrader/less-plugin-pattern-import | mit | 1,647 | 62 | codeparrot/github-code |
4e133f17f9229636b30416ebed36360be348d9b2b3709476c26a45be51c00c9c | import { connect } from 'react-redux'
import { Link } from 'react-router'
import { actions as trackActions } from '../redux/modules/tracks'
import styles from './AlbumsView.scss'
import List from 'material-ui/lib/lists/list';
import Divider from 'material-ui/lib/divider';
import ListItem from 'material-ui/lib/lists/li... | JavaScript | src/views/TracksView.js | ayal/albi | mit | 3,135 | 123 | codeparrot/github-code |
26dda36f5810f4035f188c6054be97cb939f677dd31fc505e386754249f6404f | # Copyright 2012 John Kleint
# This is free software, licensed under the MIT License; see LICENSE.txt.
"""
BlameThrower stats.
- per-author, unattributed, and overall:
- files
- lines
- bugs
- total
- high
- med
- low
- bugs_per_line
"""
from __future__ import division
from collections impor... | Python | blamethrower/stats.py | jkleint/blamethrower | mit | 2,350 | 79 | codeparrot/github-code |
5e9980404bd66e68ea1956edf030d68fe62ead17fd1d953570711ce279cf1061 | <?php namespace Illuminate3\Gengo;
use Illuminate\Support\ServiceProvider;
use Illuminate3\Gengo\Console\InstallCommand;
use Illuminate3\Gengo\Console\LanguageSeedCommand;
class GengoServiceProvider extends ServiceProvider {
/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected... | PHP | src/Illuminate3/Gengo/GengoServiceProvider.php | illuminate3/gengo | mit | 1,357 | 75 | codeparrot/github-code |
c33dfca6dcf2c598b7dec916a50143a576d007b8974b2f83f51b85b4557b4320 | <?php
/**
* Logger interface
*
* @package Interface
* @author Romain Laneuville <romain.laneuville@hotmail.fr>
*/
namespace classes\logger;
use \classes\logger\LogLevel as LogLevel;
use \classes\console\ConsoleColors as ConsoleColors;
use \classes\IniManager as Ini;
use \interfaces\LoggerInterface as Logg... | PHP | php/classes/logger/ConsoleLogger.php | raf924/web | mit | 9,763 | 330 | codeparrot/github-code |
bd1de5d56385d2d9f80a8b6ab0bc8874c0fc8d11f67bcf705a8cc769484ab317 | from solvertools.wordlist import WORDS
from solvertools.normalize import slugify, sanitize
from solvertools.util import data_path, corpus_path
from whoosh.fields import Schema, ID, TEXT, KEYWORD, NUMERIC
from whoosh.analysis import StandardAnalyzer
from whoosh.index import create_in
import nltk
import os
from tqdm impo... | Python | scripts/build_search_index.py | rspeer/solvertools | mit | 3,318 | 106 | codeparrot/github-code |
8be06e95c81f45937f6347d5519e6baa39ffd79f2657e7f7388cdbcfd805910f | <!DOCTYPE html>
<html>
<head>
<title>Belga Mail System</title>
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
<meta content='text/html;charset=utf-8' http-equiv='content-type'>
<meta content='Flat administration template for Twitter Bootstrap. T... | HTML | interface/belga/templates/dashboard/index.html | jniltinho/belga | mit | 32,547 | 652 | codeparrot/github-code |
9789aed82721daa924dea74f3e0274c1868ec31e49b58a1d4cc881b59fd9a37e | // Copyright (c) DotSpatial Team. All rights reserved.
// Licensed under the MIT license. See License.txt file in the project root for full license information.
using System;
using System.Windows.Forms;
using DotSpatial.Controls;
using DotSpatial.Controls.Header;
using DotSpatial.Plugins.SpatiaLite.Properties;... | C# | Source/DotSpatial.Plugins.SpatiaLite/SpatiaLitePlugin.cs | CGX-GROUP/DotSpatial | mit | 4,454 | 126 | codeparrot/github-code |
36d10195b0b7d09e79cc978d2062b86a934438021e2de6158049e27dd632ae3b | package gravatar
import (
"crypto/md5"
"encoding/json"
"fmt"
"io"
"net/http"
"net/url"
"strconv"
"strings"
"time"
)
// Gravatar is a struct for configuring and generating a
// Gravatar-URL
type Gravatar struct {
hash string
defaultURL string
defaultValue string
size int
forceDefault bo... | GO | gravatar.go | drexedam/gravatar | mit | 3,409 | 146 | codeparrot/github-code |
1846bade59cb084d83aa2b24ed1aeaa8395e84d062e5f0961a08a053e35806fd | var path = require('path'),
q = require('q'),
fs = require('q-fs'),
nodefs = require('fs'),
utility = require('./utility'),
data = require('./data'),
template = require('./template'),
defer = q.defer,
reject = q.reject,
ref = q.ref,
homeDirectory = process.env[(process.platform =... | JavaScript | lib/bound.js | cdata/bound-old | mit | 13,509 | 412 | codeparrot/github-code |
5a951217bea918291d2db8e77705cff17e3eabce4f1a05fc1d7ad1ba01aecbbf | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>intuitionistic-nuprl: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../boot... | HTML | clean/Linux-x86_64-4.11.2-2.0.7/released/8.11.1/intuitionistic-nuprl/8.6.0.html | coq-bench/coq-bench.github.io | mit | 8,848 | 197 | codeparrot/github-code |
5475c607c15d5184d2377c74672fa5a1801924938734c73b1b414d250069391a | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>quickchick: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.... | HTML | clean/Linux-x86_64-4.07.1-2.0.6/released/8.7.2/quickchick/1.3.1.html | coq-bench/coq-bench.github.io | mit | 7,166 | 184 | codeparrot/github-code |
139a3d4b6106184cb2b3f576e73447886dbfdedd0be5412ebd5613648ac1ce1f | 'use strict';
// Products controller
angular.module('products')
.controller('ProductsController', ['$scope', '$stateParams', '$location', 'Authentication', 'Products', 'Categories',
function($scope, $stateParams, $location, Authentication, Products, Categories) {
$scope.authentication = Authentication;
$sco... | JavaScript | public/modules/products/controllers/products.client.controller.js | coded-brain/mean_basics | mit | 2,254 | 91 | codeparrot/github-code |
2144b9beb8737c9b1f9c7a0c8cb30d0cf7505355886289e8ad79fc45c0e158f2 | "use strict";
require('datejs');
var path = require('path');
var fs = require('fs');
var revjsion = require('revjsion');
var uuid = require('node-uuid');
var itemIds = [];
var items = {};
var load = function () {
var filePath, data, itemFilePath, itemData, item;
filePath = path.join(exports.dataDir, 'items.json')... | JavaScript | plugins/kiosk/items.js | Toolpark/irma | mit | 4,470 | 199 | codeparrot/github-code |
33fd8eb092630830c4cfd9d990e942808c3b36d954b12db9d42a4c36524816dc | // PenPage.cpp: implementation of the CPenPage class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "PenPage.h"
#include "CxChartCtrl.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
/////////////////////////... | C++ | ui/CxChartCtrl/PenPage.cpp | qinyong99/SuperCxHMI | mit | 3,304 | 128 | codeparrot/github-code |
4d946579fa6197909519655f3adc4f6efbe98c1c26d7962a30447b351b7aac51 | # frozen_string_literal: true
require 'querylicious/types'
require 'querylicious/parser'
require 'querylicious/transform'
require 'querylicious/matcher'
require 'dry-initializer'
module Querylicious
# Query Reducer for processing parsed query
class QueryReducer
extend Dry::Initializer
param :reducer, Ty... | Ruby | lib/querylicious/query_reducer.rb | Sonans/querylicious | mit | 973 | 50 | codeparrot/github-code |
4bd7fc4b8b360cf65508bc6290397484f01e3cef6984995024ef8d7c535af924 | /**
* Created by Administrator on 2017/3/21.
*/
document.write('<script src="/static/layer_mobile/jquery.min.js"></script>');
document.write('<script src="/static/layer_mobile/layer.js"></script>');
function dawnConfirm(msg,url) {
layer.open({
content: msg
,btn: ['是', '否']
,yes: function(... | JavaScript | static/layer_mobile/dawn_layer.js | dawnflyingnow/ci_manager | mit | 2,020 | 88 | codeparrot/github-code |
1b037ba7dfd6c18b99b75d842feb110852fca8b619d290095a78249412822d68 | //
// ZYClassInfo.h
// ZYModel
//
// Created by 刘子洋 on 16/3/31.
// Copyright © 2016年 刘子洋. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <objc/runtime.h>
typedef NS_ENUM(NSUInteger, ZYType) {
ZYTypeUnknown = 0,
ZYTypeBool,
ZYTypeInt8,
ZYTypeUInt8,
ZYTypeInt16,
ZYTypeUInt1... | C | ZYModel/ZYClassInfo.h | tzuyangliu/ZYModel | mit | 1,337 | 62 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.