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 |
|---|---|---|---|---|---|---|---|---|
30e92437ff47292b7a7b2cf48aa79c1b8c5e7e59bb87601dbc2b29c3d9fdc809 | #include <bits/stdc++.h>
using namespace std;
vector<int> adj[143];
int n; bool seen[143];
int dfs(int u) {
seen[u] = true;
int result = 0;
for (int v: adj[u])
if (!seen[v])
result += dfs(v) + 1;
return result;
}
int main() {
ios_base::sync_with_stdio(0);cin.tie(0);
whil... | C++ | UVA/vol-109/10926.cpp | arash16/prays | mit | 815 | 42 | codeparrot/github-code |
d90feb09802f7c66c9f9adf3414940c774ab68ee3c0038f187f31c01756d4858 | <?php
namespace SergeiK\izVladimiraBundle\Admin;
use Sonata\AdminBundle\Admin\Admin;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\AdminBundle\Show\ShowMapper;
class CarAdmin extends Admin
{
/**
* @param Datagri... | PHP | src/SergeiK/izVladimiraBundle/Admin/CarAdmin.php | SergeiKutanov/izvladimira | mit | 3,281 | 121 | codeparrot/github-code |
28fffb2753d30b64542317befdc35c603c4985ef10f1e2d7273658b2a81e5c79 | using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Compression;
using System.Linq;
using System.Text;
namespace NAudio.Lame
{
/// <summary>
/// Decoder for ID3v2 tags
/// </summary>
public static class ID3Decoder
{
/// <summary>
/// Read an ID3v2 Tag f... | C# | NAudio.Lame/ID3Decoder.cs | Corey-M/NAudio.Lame | mit | 17,595 | 433 | codeparrot/github-code |
e88b06fa15a75e2459bdd79d7c5b58a4429239fd7cc00ed263052796605b1cbd | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {ListRange} from '@angular/cdk/collections';
import {
ChangeDetectionStrategy,
ChangeDetectorRef,
Compon... | TypeScript | src/cdk-experimental/scrolling/virtual-scroll-viewport.ts | amcdnl/material2 | mit | 12,339 | 335 | codeparrot/github-code |
6e3fb09bbdb3ecb7dd212fb5e98a903fefbfb9a798844c22ee7cdee2186142a5 | import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import moment from 'moment';
import { toggleSelect } from '../actions/users';
import { createLink } from '../../utils';
class User extends Component {
render() {
const profile_image_url_https = this.props.user.profile_im... | JavaScript | src/containers/User.js | sunya9/follow-manager | mit | 5,320 | 129 | codeparrot/github-code |
4552934b6ad9365147046e19e8b9d25491f4034e212e7331eaa52727fa8efee1 | <?php
/**
* This file is part of the PPI Framework.
*
* @copyright Copyright (c) 2011-2013 Paul Dragoonis <paul@ppi.io>
* @license http://opensource.org/licenses/mit-license.php MIT
* @link http://www.ppi.io
*/
namespace PPICacheModule\Cache\Driver;
use PPICacheModule\Cache\CacheInterface;
/**
* Mem... | PHP | Cache/Driver/MemoryCache.php | ppi/cache | mit | 1,923 | 107 | codeparrot/github-code |
f8a7d88e113386bab87a78130a07e4b2084d07b83664289f6e9071602c1108df | /***
* Textile parser for JavaScript
*
* Copyright (c) 2012 Borgar Þorsteinsson (MIT License).
*
*/
/*jshint
laxcomma:true
laxbreak:true
eqnull:true
loopfunc:true
sub:true
*/
;(function(){
"use strict";
/***
* Regular Expression helper methods
*
* This provides the `re` object, which contain... | JavaScript | lib/textile.js | muffinmad/atom-textile-preview | mit | 45,877 | 1,408 | codeparrot/github-code |
5933d6a6315aa5fde47a7a3648eaaea20cc9804192e55a60af21bb2769554f5f | package com.smartbit8.laravelstorm.run;
import com.intellij.execution.ExecutionException;
import com.intellij.execution.Executor;
import com.intellij.execution.configurations.*;
import com.intellij.execution.process.*;
import com.intellij.execution.runners.ExecutionEnvironment;
import com.intellij.ide.browsers.*;
impo... | Java | src/com/smartbit8/laravelstorm/run/LaravelRunConf.java | 3mmarg97/LaravelStorm | mit | 6,140 | 196 | codeparrot/github-code |
8ea94d28089f1a690de33dff4dfe8d3e753cff7b7bbea950a02e62be552a39bb | /*jshint indent: 4, browser:true*/
/*global L*/
/*
* L.TimeDimension.Player
*/
//'use strict';
L.TimeDimension.Player = (L.Layer || L.Class).extend({
includes: (L.Evented || L.Mixin.Events),
initialize: function(options, timeDimension) {
L.setOptions(this, options);
this._timeDimension = ti... | JavaScript | src/leaflet.timedimension.player.js | geofbaum/geofbaum.github.io | mit | 5,914 | 176 | codeparrot/github-code |
e1755fce92c06bed36065fda1fe93344924e873d278c77c37fcb2f5689f0ef5a | <?php
namespace pagosBundle\Entity;
use Doctrine\ORM\EntityRepository;
use Doctrine\DBAL\DriverManager;
class pagoRepository extends EntityRepository
{
public function facturar($lineas,$entidad,$cuenta) {
$datos=array('serie'=>'',
'folio'=>'',
'empresa_id'=>'',
... | PHP | src/pagosBundle/Entity/pagoRepository.php | elmaspicudo/algo | mit | 8,183 | 180 | codeparrot/github-code |
1007e58a5a2b36270caead02d9c156397ef8b539624d8baf88e3981bb44860dd | /*
* 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 modelo;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java... | Java | src/java/modelo/Cotacao.java | deivisvieira/PosJava | mit | 2,527 | 105 | codeparrot/github-code |
61982d1dace2ff3b1a6043691c9feb0febb0034d001393f5ee23064c941a62eb | 'use strict';
angular.module('mean.settings').config(['$stateProvider',
function($stateProvider) {
var checkLoggedin = function($q, $timeout, $http, $location) {
// Initialize a new promise
var deferred = $q.defer();
// Make an AJAX call to check if the user is logged in
$http.get('/logg... | JavaScript | packages/custom/settings/public/routes/settings.js | indie-hackathon/dchat | mit | 787 | 33 | codeparrot/github-code |
a012ba94115788ff0b78e71566fb7ed21558bf12f5594237c2d56852dc402cb1 | import Express = require("express");
import Geohash = require("latlon-geohash");
import Nconf = require("nconf");
import Path = require("path");
import * as multer from "multer";
import { Picnic } from "../../models/Picnic";
import { User } from "../../models/User";
import { Module } from "../Module";
import { UserMo... | TypeScript | source/modules/data/DataModule.ts | earthiverse/picknic | mit | 6,060 | 188 | codeparrot/github-code |
c6461a969d2e31491d6bae2719101c8ae4485cb65398a73de6ad48c327f57bd2 | #pragma once
#define FILE_NAME_MAX 512
#define FILE_PATH_MAX 512
typedef struct linked_list_s linked_list;
typedef struct list_item_s list_item;
typedef struct meta_info_s {
char name[0x100];
char compatible[0x10];
char description[0x200];
char developer[0x100];
char devsite[0x100];
char added[0x100];... | C | source/ui/section/task/task.h | adrifcastr/NTRDBI | mit | 3,028 | 127 | codeparrot/github-code |
9f88ade3e0b058a28f62fa42bd1635b755cf6dfd6bd5a893cc41b67d8d190dd3 | package br.com.dbsoft.rest.dados;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInc... | Java | src/main/java/br/com/dbsoft/rest/dados/DadosStatus.java | dbsoftcombr/dbssdk | mit | 1,014 | 35 | codeparrot/github-code |
583a2c0fcd38475e12da0f44b36e55e0b42cf5ff15fb0bb80bf4fb62841338f7 | package com.landenlabs.all_flipanimation;
/**
* Copyright (c) 2015 Dennis Lang (LanDen Labs) landenlabs@gmail.com
*
* 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, inc... | Java | app/src/main/java/com/landenlabs/all_flipanimation/ActivityRotAnimation.java | landenlabs2/all_FlipAnimation | mit | 10,271 | 286 | codeparrot/github-code |
a475c84622290f3ec1deb64426c624660579a1780acaf04fce288d9c9e537ef8 | <?xml version="1.0" ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<!-- saved from url=(0017)http://localhost/ -->
<script language="JavaScript" src="../../displayToc.js"></script>
<script language="JavaScript" src="../../tocParas.js"></script>
<script language="JavaScript" src="../../t... | HTML | Beginning Perl for Bioinformatics/html/lib/Locale/Currency.html | amidoimidazol/bio_info | mit | 6,828 | 189 | codeparrot/github-code |
3299d7b069268e27ff7a51302e401b04c765d1de9937d59a9304643178e04434 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DesktopCharacter.Model.Locator;
using DesktopCharacter.ViewModel.SettingTab;
namespace DesktopCharacter.ViewModel
{
class SettingViewModel : Livet.ViewModel
{
public LauncherSettin... | C# | DesktopCharacter/ViewModel/SettingViewModel.cs | Babumi/DesktopCharacter | mit | 1,061 | 36 | codeparrot/github-code |
dd1fc8215e61a9a3b73fb12360ef91c446fd6107af6256af65f0d02b630c572d | <?php
/**
* Close.io Api Wrapper - LLS Internet GmbH - Loopline Systems.
*
* @see https://github.com/loopline-systems/closeio-api-wrapper for the canonical source repository
*
* @copyright Copyright (c) 2014 LLS Internet GmbH - Loopline Systems (http://www.loopline-systems.com)
* @license https://github.c... | PHP | src/Model/Lead.php | loopline-systems/closeio-api-wrapper | mit | 11,400 | 658 | codeparrot/github-code |
723fdd1fa21bf4668d02863889027803d5bbfe4f5fc3489d5b9b966f182238de | #ifndef BLOWFISH_H
#define BLOWFISH_H
/////////////////////////////////////////////////////////////////////////
// ** NOTICE **
/////////////////////////////////////////////////////////////////////////
// The following resources are required by this module (or submodules):
//
#define BLOWFISHDATA ... | C | c++/Win32/MFC/Crypto/Blowfish/Blowfish.h | moodboom/Reusable | mit | 2,461 | 117 | codeparrot/github-code |
b5ea51730f30ec51ebfe2adb63aebebc9554f73d542f9d27aa8eeb913e82f61f | <?php
/**
* This file is part of the "litgroup/enumerable" package.
*
* (c) Roman Shamritskiy <roman@litgroup.ru>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Test\LitGroup\Enumerable;
use LitGroup\Enumerable\Test\En... | PHP | test/EnumerableTest.php | LitGroup/enumerable.php | mit | 4,578 | 141 | codeparrot/github-code |
fde8b6a7c966752a42623673865cc27de5e9f1fb806d4a453d0680578561c37d | ---
layout: ci_navbar_sidebar
title: Coding Standards
permalink: /practice/ci/coding_standards/
---
<div class="jumbotron">
<h1><small>Continuous Integration</small></h1>
<h1>Coding Standards Check</h1>
<p>Apply code analysis and styling checks and if unsatisfactory mark the build as a failure</p>
</div>
<div cla... | HTML | practice/ci/coding_standards.html | LandRegistry/landregistry.github.io | mit | 7,617 | 115 | codeparrot/github-code |
ded6bcbc4a8f092832b43698130151203c7d6b5a6e2d4fd183084f75e0a9f527 | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: An extra interface implemented by the material system
// implementation of vgui::ISurface
//
// $Revision: $
// $NoKeywords: $
//===========================================================================//
#ifndef IMATSYSTEMS... | C | public/VGuiMatSurface/IMatSystemSurface.h | BerntA/tfo-code | mit | 5,197 | 116 | codeparrot/github-code |
d3c8343a516e1c41659aa378fe17a37cf7c18bd0c782ea8f4c6b50e016329393 | #!/usr/bin/env python3
#
# Copyright (c) 2017 Nick Douma
#
# 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,... | Python | slack.py | LordGaav/notification-scripts | mit | 3,578 | 98 | codeparrot/github-code |
095748e5d7244784419950d495c3e8668e5ef829d535b2bcba6c1b3ec86b1c82 | <?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class MultilayerGeneratorServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
{
//
}
/**
* Register the applicatio... | PHP | src/providers/MultilayerGeneratorServiceProvider.php | HOuaghad/multilayering | mit | 1,662 | 80 | codeparrot/github-code |
1314a51bfb002ac8108a57c086360c0a857c129d39fe81720bb163601e986fe1 | #region License
// The MIT License (MIT)
//
// Copyright (c) 2016 João Simões
//
// 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 ri... | C# | src/EULex/SimpleSOAPClient/Helpers/XmlHelpers.cs | EULexNET/EULex.NET | mit | 4,154 | 102 | codeparrot/github-code |
4bdc0c821b7922972ae9d160c283bec5052ccd3aae92771e284c606cbbd49477 | (function(global) {
var vwl = {};
var receivePoster;
var receiveEntry;
var receiveLoadedList;
// vwl.init - advertise VWL info and register for VWL messages
//
// Parameters:
// left - (optional) url of this world's initial left entry image
// right - (optional) url of this world's initial right entry image
// ... | JavaScript | lib/vwl.js | BigRobCoder/VirtualWorldLink | mit | 3,364 | 109 | codeparrot/github-code |
ef4d5f41f1b6ef3949b72f117d6c3fc60b98ea60e68f8dd9717aa20a1a827e87 | # -*- coding: utf-8 -*-
"""The initialization file for the Pywikibot framework."""
#
# (C) Pywikibot team, 2008-2015
#
# Distributed under the terms of the MIT license.
#
from __future__ import absolute_import, unicode_literals
__release__ = '2.0b3'
__version__ = '$Id$'
__url__ = 'https://www.mediawiki.org/wiki/Speci... | Python | pywikibot/__init__.py | icyflame/batman | mit | 26,810 | 765 | codeparrot/github-code |
3fbcc538e2c56e5b8d5292e547cb7073334b439d8dc4e0798c434607b8b42dc7 | package gui;
import java.awt.Font;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.image.BufferedImage;
import java.awt.Toolkit;
import javax.imageio.ImageIO;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextArea;
import javax.swing.SwingConstants;... | Java | src/main/java/gui/GUI.java | berserkingyadis/ImageDownloader | mit | 18,735 | 415 | codeparrot/github-code |
6a20d64e36d7087c23c342b91a9436335939775adaca151ab87aa8bcd9f71b39 | /*
* 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 curveavg;
/**
* Small helper class for computing the circular arc between two points.
* @author Sebastian Weiss
*/
public c... | Java | src/curveavg/CircularArc.java | shamanDevel/CurveAverage | mit | 4,539 | 162 | codeparrot/github-code |
d6512e71863e50becbc76f4e2c50f702f380499084ed89df29b2ac0dd4e8aaa8 | // These two object contain information about the state of Ebl
var GlobalState = Base.extend({
constructor: function() {
this.isAdmin = false;
this.authToken = null;
this.docTitle = null;
this.container = null;
// default config
this.config = {
t... | JavaScript | ebl/core/js_src/state/state.js | alessandrofrancesconi/ebl | mit | 1,178 | 48 | codeparrot/github-code |
8a78c039e3a5f96f1364cf03c42f913c7b3b0a502aef30133d12544886eca7cc | //
// CRToast
// Copyright (c) 2014-2015 Collin Ruffenach. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "CRToastManager.h"
@import UIKit;
typedef void (^CRToastImageBlock)(UIImageView*);
@interface CRToastImageBlockContainer : NSObject
@property (nonatomic, copy) CRToastImageBlock block;
- (... | C | CRToast/CRToast.h | Naithar/CRToast | mit | 19,415 | 528 | codeparrot/github-code |
7c11c82a4394f49e0faa44a50ee7e46e1ea8aafe8cd28104f4005888cf2b27cf | import React from 'react'
import {
Container,
Group,
TabBar,
Icon,
Badge,
amStyles,
} from 'amazeui-touch'
import {Link} from 'react-router'
class App extends React.Component{
propsType ={
children:React.PropTypes.node
}
render(){
let {
location,
params,
... | JavaScript | src/components/pages/app.js | yiweimatou/yiweimatou-mobile | mit | 1,947 | 69 | codeparrot/github-code |
e230f6cb6cf26f53a3fac74a1eae8a850242433baadf2fa8ff60c0afb3db08e1 | <?php
namespace jeremykenedy\laravelusers;
use Illuminate\Support\ServiceProvider;
class LaravelUsersServiceProvider extends ServiceProvider
{
private $_packageTag = 'laravelusers';
/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected $defer = false;
... | PHP | src/LaravelUsersServiceProvider.php | jeremykenedy/laravel-users | mit | 1,963 | 68 | codeparrot/github-code |
3078c02018929eca146e8c5a50dc8d36a3250ce7e153f2038b032e2262e9add3 | <?php
namespace framework\ext;
//xml解析成数组
class Xml
{
public static function decode($xml)
{
$values = array();
$index = array();
$array = array();
$parser = xml_parser_create('utf-8');
xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 1);
xml_parser_set_option($parser, XML_OPTION_CASE_FO... | PHP | framework/ext/Xml.php | cyrilzhao/zqzirui | mit | 1,571 | 62 | codeparrot/github-code |
0774d5988d3e98d8ef51574e9b95e95a501c843147af885ca6c19d0c73529880 | import com.sendgrid.Method;
import com.sendgrid.Request;
import com.sendgrid.Response;
import com.sendgrid.SendGrid;
import com.sendgrid.helpers.mail.Mail;
import com.sendgrid.helpers.mail.objects.Content;
import com.sendgrid.helpers.mail.objects.Email;
import com.sendgrid.helpers.mail.objects.Personalization;
import ... | Java | examples/helpers/mail/SingleEmailMultipleRecipients.java | sendgrid/sendgrid-java | mit | 1,666 | 45 | codeparrot/github-code |
845c9f9adcd9686bba8285243b11cb5912239976c32821dbe14344b9d199816d | <?php
/**
* Phinx
*
* (The MIT license)
* Copyright (c) 2014 Rob Morgan
*
* 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
* ri... | PHP | src/Phinx/Db/Table.php | rsdevigo/phinx | mit | 15,419 | 594 | codeparrot/github-code |
da8cec386ffc7828699ec239878d4f7d6e274d3f96a7eddc24075216125ca8ee | <?php
namespace Forge\Log;
/**
* Log_File
* File log writer. Writes out messages and stores them in a YYYY/MM directory.
*
* @package SuperFan
* @category Log
* @author Zach Jenkins <zach@superfanu.com>
* @copyright (c) 2017 SuperFan, Inc.
*/
class File extends Writer
{
// Directory to place log ... | PHP | classes/Log/File.php | forgephp/core | mit | 2,101 | 82 | codeparrot/github-code |
0a51d02dabe91238182795a2b5e5c385a12de60162140c3b1dfd440e016b0163 | /*
* unstrap v1.1.3
* https://unstrap.org
* 2015-2020
* MIT license
*/
const version = '1.1.3',
collection = {};
function extendUnstrap (v) {
var list;
if (!collection[v].selectors) {
collection[v].selectors = ['.' + collection[v].name];
}
collection[v].selectors.forEach(function (sel) {
... | JavaScript | unstrap.js | unstrap/unstrap | mit | 1,620 | 71 | codeparrot/github-code |
73bdb7e6a7f11fb1935e6a8a84ef742d751d957be1727af18e4224c27589bee3 | <?php
/* PgGsbFraisBundle::accueilCompta.html.twig */
class __TwigTemplate_6194dcf338f5cd969f229bda597abec8b69c1f8371639ebcadc7c86b484b4c01 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = $this->env->loadTemplate("PgGsbFra... | PHP | app/cache/dev/twig/61/94/dcf338f5cd969f229bda597abec8b69c1f8371639ebcadc7c86b484b4c01.php | FCalligaris/GSB | mit | 3,998 | 116 | codeparrot/github-code |
7297a9b2d052cd78f09a348039a5a7bc928f168f7dc61b927e554c484ed919d7 | 'use strict';
const toBytes = s => [...s].map(c => c.charCodeAt(0));
const xpiZipFilename = toBytes('META-INF/mozilla.rsa');
const oxmlContentTypes = toBytes('[Content_Types].xml');
const oxmlRels = toBytes('_rels/.rels');
const fileType = input => {
const buf = input instanceof Uint8Array ? input : new Uint8Array(in... | JavaScript | client/lib/file-type.js | jmhmd/dat-lambda | mit | 15,936 | 796 | codeparrot/github-code |
419b51c2a8da775413d72375ad4c6a248ec313cc026b47a8ef333617485a3aaa | import logging
from abc import ABCMeta, abstractmethod
from collections import deque
from typing import List, Union, Iterable, Sequence
log = logging.getLogger(__name__)
class NoSensorsFoundException(RuntimeError):
pass
class Controller(metaclass=ABCMeta):
@abstractmethod
def run(self):
raise N... | Python | pyfc/common.py | vrga/pyFanController | mit | 4,243 | 169 | codeparrot/github-code |
aa72775e620ae2e6dd4743aeb363c9d6afe0de10746eb97ccc74143d3c2f5f3d | import { injectable, inject } from "inversify";
import { TYPES } from "../ioc/types";
const cacheKey = "AleksaDiscordServerSelection";
@injectable()
export class ServerSelectorService {
constructor(
@inject(TYPES.IConfig) private _config: IConfig,
@inject(TYPES.Logger) private _logger: ILogger,
@inject(... | TypeScript | src/aleksa/server-selector.service.ts | arijoon/vendaire-discord-bot | mit | 1,262 | 50 | codeparrot/github-code |
d9136f742ccf28057e49d607d10b9d28c32905a032e55db2e5fffd2b65472232 | // PS4Macro (File: Forms/MainForm.cs)
//
// Copyright (c) 2018 Komefai
//
// Visit http://komefai.com for more information
//
// 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 witho... | C# | PS4Macro/Forms/MainForm.cs | komefai/PS4Macro | mit | 23,674 | 677 | codeparrot/github-code |
c7ea366638783f6981f44aea294071bf29188a66b94d25139104093ebdcec411 | let fs = require("fs");
let path = require("path");
let cp = require("child_process");
function runCommand(folder, args) {
cp.spawn("npm", args, { env: process.env, cwd: folder, stdio: "inherit" });
}
function getPackages(category) {
let folder = path.join(__dirname, category);
return fs
.readdirSync(folder... | JavaScript | examples/updateCategory.js | pshrmn/curi | mit | 1,046 | 45 | codeparrot/github-code |
9bdba9aaf09f3f8fd67ce405898f3ff5925ecc5416692ea2702c70729c10f88e | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { ColorPickerModule } from 'angular2-color-picker... | TypeScript | src/module.ts | vijayantkatyal/svg-bits | mit | 1,406 | 51 | codeparrot/github-code |
27fdf1c759c4f84b6c9e37cafbfccd50c19e71c7b557326143a240ff39df4cf3 | <?php
$_pluginInfo=array(
'name'=>'Inet',
'version'=>'1.0.3',
'description'=>"Get the contacts from a Inet account",
'base_version'=>'1.8.0',
'type'=>'email',
'check_url'=>'http://inet.ua/index.php',
'requirement'=>'email',
'allowed_domains'=>array('/(inet.ua)/i','/(fm.com.ua)/i'),
);
/**
* Inet P... | PHP | lib/extern/openInviter/plugins/inet.plg.php | mbrung/lcOpenInviterPlugin | mit | 5,581 | 172 | codeparrot/github-code |
3e714c41600c824aadf06ed39b832312633451e9ac1fbc53adb9c3542da40489 | package org.workcraft.plugins.circuit;
import org.workcraft.annotations.DisplayName;
import org.workcraft.annotations.Hotkey;
import org.workcraft.annotations.SVGIcon;
import org.workcraft.dom.Node;
import org.workcraft.dom.visual.BoundingBoxHelper;
import org.workcraft.dom.visual.DrawRequest;
import org.workcraft.for... | Java | workcraft/CircuitPlugin/src/org/workcraft/plugins/circuit/VisualFunctionContact.java | tuura/workcraft | mit | 13,140 | 348 | codeparrot/github-code |
72a14a813e2860a9c1167a4516d0317890c1b844df88f0f3a3ab6eeae60ae685 | /*++
Copyright (c) 2011 Microsoft Corporation
Module Name:
smt_arith.h
Abstract:
Arithmetic solver for smt::solver
Author:
Leonardo de Moura (leonardo) 2011-06-25.
Revision History:
--*/
#ifndef _SMT_ARITH_H_
#define _SMT_ARITH_H_
#include"ast.h"
#include"smt_solver_types.h"
#include"params.h"
... | C | byterun/z3str2/z3/lib/smt_arith.h | sukwon0709/byterun | mit | 1,158 | 57 | codeparrot/github-code |
a8fd290580f61d1a0f58e04dbdc4389605109125d03c104617864fe3ad0c3c1a | from core.himesis import Himesis, HimesisPreConditionPatternLHS
import uuid
class HUnitDaughter2Woman_ConnectedLHS(HimesisPreConditionPatternLHS):
def __init__(self):
"""
Creates the himesis graph representing the AToM3 model HUnitDaughter2Woman_ConnectedLHS
"""
# Flag this instance as compiled now
self.is_... | Python | ExFamToPerson/contracts/unit/HUnitDaughter2Woman_ConnectedLHS.py | levilucio/SyVOLT | mit | 2,107 | 70 | codeparrot/github-code |
42cbd4eac9bc4675c50ec34d06fa8f0f304f8e75f2ebb5a8ee147c3fde881183 | <?php
/* TwigBundle:Exception:traces.html.twig */
class __TwigTemplate_9109da3b5a8f9508fb31e1e2c4868542dc8f79b94134ac992407a779404545e3 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(... | PHP | app/cache/dev/twig/89/89ed4a643ac881b9b276624f1e201f6f6459e825e3dad4b2ed9447cc114d4ee5.php | cristian3040/Cupon | mit | 9,187 | 159 | codeparrot/github-code |
1c0201d23f31deae68c371112475da6bde1c6bd95daa75fae2c15085dd013e47 | Polaris::Application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# Code is not reloaded between requests.
config.cache_classes = true
# Eager load code on boot. This eager loads most of Rails and
# your application in memory, allowing both thread web serv... | Ruby | config/environments/production.rb | marcosserpa/codepolaris | mit | 3,572 | 93 | codeparrot/github-code |
94c5911086e2ccf5fc6f2bae855222c8e337a283f0c7d6dffc5f46be145cbc25 | var models=require('../models/models.js');
// Autoload :id de comentarios
exports.load=function (req,res,next,commentId) {
models.Comment.find({
where:{
id:Number(commentId)
}
}).then(function (comment) {
if(comment){
req.comment=comment;
next();
}else{
next(new Error('No existe commentId=' +comme... | JavaScript | controllers/comment_controller.js | armero1989/quiz-2016 | mit | 1,348 | 63 | codeparrot/github-code |
b980cb4fd009d812cf4f50fe773c52ecb3c5faae47ea48baafe8440a3c225525 | package net.dirtyfilthy.bouncycastle.asn1.nist;
import net.dirtyfilthy.bouncycastle.asn1.DERObjectIdentifier;
import net.dirtyfilthy.bouncycastle.asn1.sec.SECNamedCurves;
import net.dirtyfilthy.bouncycastle.asn1.sec.SECObjectIdentifiers;
import net.dirtyfilthy.bouncycastle.asn1.x9.X9ECParameters;
import net.dirtyfilth... | Java | net/dirtyfilthy/bouncycastle/asn1/nist/NISTNamedCurves.java | dirtyfilthy/dirtyfilthy-bouncycastle | mit | 2,937 | 97 | codeparrot/github-code |
59f838b8579c7d40a48f1efeb24b4d1e59ee2d7d388d21860a888c89bc8bdb29 | package com.cosmos.kafka.client.producer;
import org.apache.kafka.clients.producer.KafkaProducer;
import org.apache.kafka.clients.producer.ProducerRecord;
import java.util.Properties;
import java.util.Random;
import static org.apache.kafka.clients.producer.ProducerConfig.*;
/**
* Producer using multiple partition
... | Java | kafka-producer/src/main/java/com/cosmos/kafka/client/producer/MultipleBrokerProducer.java | dantin/kafka-demo | mit | 1,747 | 51 | codeparrot/github-code |
c31406ace2e97a8db8da6d08e3dc8b1cea77544713d04f06dc6b33c8995e5aea | #David Hickox
#Feb 15 17
#Squares (counter update)
#descriptions, description, much descripticve
#variables
# limit, where it stops
# num, sentry variable
#creates array if needbe
#array = [[0 for x in range(h)] for y in range(w)]
#imports date time and curency handeling because i hate string formating (this tak... | Python | Chap 3/Squares.py | dwhickox/NCHS-Programming-1-Python-Programs | mit | 778 | 31 | codeparrot/github-code |
225418a33e605885a4e9bd1b37c36db2a3fa4076e8afd53cf031cde03fff8e20 | <?php
namespace Minsal\GinecologiaBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* SrgTipoConsultaPf
*
* @ORM\Table(name="srg_tipo_consulta_pf")
* @ORM\Entity
*/
class SrgTipoConsultaPf
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* ... | PHP | src/Minsal/GinecologiaBundle/Entity/SrgTipoConsultaPf.php | sisreg/siap | mit | 2,743 | 126 | codeparrot/github-code |
1efae6b66fb97641525c25433f3cafd3ba1ec1c2a832eb1d9d0d2067718f0dd2 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jprover: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css... | HTML | clean/Linux-x86_64-4.07.1-2.0.6/released/8.13.1/jprover/8.6.0.html | coq-bench/coq-bench.github.io | mit | 7,339 | 176 | codeparrot/github-code |
93ce9ec8096e0ee2c305c58ad0b9eb48043147efe02d8de6935cc09bcaafa13d | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>icharate: 41 s</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="style... | HTML | clean/Linux-x86_64-4.05.0-2.0.6/released/8.9.1/icharate/8.9.0.html | coq-bench/coq-bench.github.io | mit | 20,053 | 282 | codeparrot/github-code |
7eef59ac1e02036c33c8fbd9794d93ed7b918fdebc6acf7fdf02e9935f01ad58 | /* ************************************************************************
qooxdoo - the new era of web development
http://qooxdoo.org
Copyright:
2017 Christian Boulanger
License:
MIT: https://opensource.org/licenses/MIT
See the LICENSE file in the project's top-level directory for detai... | JavaScript | source/class/qx/tool/cli/commands/package/Migrate.js | johnspackman/qxcompiler | mit | 9,371 | 250 | codeparrot/github-code |
a01f2f3688438a3d850808b5392ef9401f4c3ea21200547793a0d6ba50304c0a | package com.github.visgeek.utils.collections;
import java.util.Iterator;
class LinqConcateIterator<T> implements Iterator<T> {
// コンストラクター
public LinqConcateIterator(Iterable<T> source, Iterable<? extends T> second) {
this.second = second;
this.itr = source.iterator();
this.isSwitched = false;
}
... | Java | src/src/main/java/com/github/visgeek/utils/collections/LinqConcateIterator.java | visGeek/JavaVisGeekCollections | mit | 889 | 51 | codeparrot/github-code |
ea12b3bfdf8138ee3792ca6bee6eaac857828c9ba323d81512bd12320448c0a1 | <!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Workweek Template: Tyler Kirkham Andrews</title>
<meta name="description" content="Workweek lets you build your own portfolio with built-in invoicing and payment proc... | HTML | demo/template-2b/project-2.html | brettbradleycampbell/workweek-landing | mit | 7,716 | 213 | codeparrot/github-code |
6d79192237166f2836cd121b45dff3fdf7ed74b3f5fa3bf3b8605200eb39cedc | namespace Azure.Security.Attestation
{
public partial class AttestationAdministrationClient : System.IDisposable
{
protected AttestationAdministrationClient() { }
public AttestationAdministrationClient(System.Uri endpoint, Azure.Core.TokenCredential credential) { }
public AttestationAdmi... | C# | sdk/attestation/Azure.Security.Attestation/api/Azure.Security.Attestation.netstandard2.0.cs | ayeletshpigelman/azure-sdk-for-net | mit | 22,286 | 239 | codeparrot/github-code |
ed39ba5225cb2c3346e81a38e282ca06e14b6eba8294c961aac34a561e2f8766 | // Video: https://www.youtube.com/watch?v=WH5BrkzGgQY
const daggy = require('daggy')
const compose = (f, g) => x => f(g(x))
const id = x => x
//===============Define Coyoneda=========
// create constructor with props 'x' and 'f'
// 'x' is our value, 'f' is a function
const Coyoneda = daggy.tagged('x', 'f')
// map ... | JavaScript | examples/coyoneda.js | dmitriz/functional-examples | mit | 1,828 | 86 | codeparrot/github-code |
6738ca44a9df8763c45d08d967f2537aa1db61a00fec24c65bb24cca38f48ae0 | <!doctype html>
<html class="theme-next ">
<head>
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Contro... | HTML | vim-commands/index.html | wuxu92/wuxu92.github.io | mit | 23,316 | 729 | codeparrot/github-code |
b895ee2d5a5cb60ef73265a172ba38b85e0d83c9f1ff4ee442196bb43db1297e | var map, boroughSearch = [],
theaterSearch = [],
museumSearch = [];
/* Basemap Layers */
var mapquestOSM = L.tileLayer("http://{s}.tiles.mapbox.com/v3/am3081.h0po4e8k/{z}/{x}/{y}.png");
var mbTerrainSat = L.tileLayer("https://{s}.tiles.mapbox.com/v3/matt.hd0b27jd/{z}/{x}/{y}.png");
var mbTerrainReg = L.tileL... | JavaScript | assets/js/main.js | availabs/transit_analyst | mit | 2,596 | 105 | codeparrot/github-code |
91129c72d84e078f45b645dcfa03bed995032b66b292008aa72ffb7b073ecbe1 | <?php
/**
* Created by PhpStorm.
* User: Renfrid-Sacids
* Date: 2/4/2016
* Time: 9:44 AM
*/
class Xform_model extends CI_Model
{
/**
* Table name for xform definitions
*
* @var string
*/
private static $xform_table_name = "xforms"; //default value
/**
* Table name for archived/deleted xforms
*
*... | PHP | application/models/Xform_model.php | renfrid/dataManager | mit | 5,088 | 218 | codeparrot/github-code |
2ed585ceb1a7d1e865fe549e535cc327a14755d1649ec37a87902c69dfaab840 | <?php
namespace AppBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Form\Extension\Core\Type\EmailType;
use Symfony\Component\Form\Extension\Core\Type\RepeatedType;
use Symfony\Component\... | PHP | src/AppBundle/Form/registerType.php | Fabcra/bien_etre | mit | 962 | 39 | codeparrot/github-code |
7e94891b126ffbe322b30e1ee6f1b42c9609c3bcfa3fac0a289fb409f76dfdd1 | /*
* This file is part of the Cliche project, licensed under MIT License. See LICENSE.txt file in root folder of Cliche
* sources.
*/
package net.dudehook.cliche2.util;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.S... | Java | src/main/java/net/dudehook/cliche2/util/ArrayHashMultiMap.java | dudehook/Cliche2 | mit | 2,003 | 108 | codeparrot/github-code |
cf50f85ffbfa177dc41bf6e3702108b28e270eddbffb4c68027505e26ab744c2 | const fs = require('fs')
const { normalize, resolve, join, sep } = require('path')
function getAppDir () {
let dir = process.cwd()
while (dir.length && dir[dir.length - 1] !== sep) {
if (fs.existsSync(join(dir, 'quasar.conf.js'))) {
return dir
}
dir = normalize(join(dir, '..'))
}
const { f... | JavaScript | app/lib/app-paths.js | rstoenescu/quasar-framework | mit | 1,321 | 53 | codeparrot/github-code |
2f5d4ca5ccec87e72807a8ea2af8c3e89f388c7176c3fd990a279b03ce344739 | //-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// 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 restrictio... | C | Engine/source/gfx/gl/gfxGLCubemap.h | Azaezel/Torque3D | mit | 3,514 | 92 | codeparrot/github-code |
865f5ea99b4c6317b46838afa031df29e4420fda4124cb1e795b6084603e88c6 | using System;
using System.Linq;
namespace CapnProto.Schema.Parser
{
class CapnpVisitor
{
protected Boolean mEnableNestedType = true;
protected CapnpModule mActiveModule;
protected void EnableNestedType()
{
mEnableNestedType = true;
}
protected void DisableNestedTyp... | C# | CapnProto.net.Schema/Parser/CapnpVisitor.cs | tempbottle/capnproto-net | mit | 7,402 | 210 | codeparrot/github-code |
eb21211bc37f5e1e40d0f2c472f19aa223eb9060bc43475308ec5f4e9dd491d7 | <?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Nitrogen 2.x Documentation</title>
<meta http-equiv="Content-Type" co... | HTML | doc/html/actions.html | jpyle/nitrogen_core | mit | 7,516 | 246 | codeparrot/github-code |
4c750bc972de341416c43ef75adc2327ec80b5af9ce8242d0756b00dbbfd5ba7 | package uk.co.nevarneyok.entities.product;
import com.google.gson.annotations.SerializedName;
public class ProductSize {
private long id;
@SerializedName("remote_id")
private long remoteId;
private String value;
public ProductSize() {
}
public ProductSize(long id, long remoteId, String... | Java | app/src/main/java/uk/co/nevarneyok/entities/product/ProductSize.java | tugrulkarakaya/NeVarNeYok | mit | 1,689 | 77 | codeparrot/github-code |
16678f2372652fb0175c88ed6fd975c345727ac6ab365dd0eaa860eb14e4f622 | # -*- coding: utf-8 -*-
"""
将json文件中的数据存到数据库中
"""
import requests
import json
import os
from word.models import (Word, EnDefinition, CnDefinition, Audio, Pronunciation, Example, Note)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
print(BASE_DIR)
def process_data(data):
data = data... | Python | data/script.py | HideMode/ShanBay | mit | 1,616 | 59 | codeparrot/github-code |
c9b17c4166f66fd504af5acbf410580eae05e2cd4bdc593b746e3d3243dd40da | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>wCMF 4.1: Member List</title>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="A MDSD framework for building reliable, maintainable an... | HTML | docs/api-gen/html/latest/classwcmf_1_1lib_1_1config_1_1impl_1_1_config_action_key_provider-members.html | iherwig/wcmf | mit | 8,747 | 143 | codeparrot/github-code |
720b57d9d4d82018bc862306ad7a8c0f505b4234958199ed0888f3633e777583 | <?php namespace System\Classes;
use App;
use Url;
use File;
use Lang;
use Event;
use Cache;
use Route;
use Config;
use Request;
use Response;
use Assetic\Asset\FileAsset;
use Assetic\Asset\GlobAsset;
use Assetic\Asset\AssetCache;
use Assetic\Asset\AssetCollection;
use Assetic\Factory\AssetFactory;
use October\Rain\Par... | PHP | modules/system/classes/CombineAssets.php | lupin72/piergorelli.com | mit | 24,315 | 850 | codeparrot/github-code |
715220ad5fa1bd05e12b8a514d25602ad57f3bfced1d498a10d35d49f4a18a70 | <?php
/**
* SimplePie
*
* A PHP-Based RSS and Atom Feed Framework.
* Takes the hard work out of managing a complete RSS/Atom solution.
*
* Copyright (c) 2004-2012, Ryan Parman, Geoffrey Sneddon, Ryan McCue, and contributors
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or w... | PHP | Classes/SimplePie/library/SimplePie.php | b13/t3ext-newsfeedimport | mit | 88,133 | 3,059 | codeparrot/github-code |
0fbd82304c2118c3953b611284a46bd24d1933047f957ce9df9e37f42f37b240 | #include "ObservationSequences.h"
#include <iostream>
#include <fstream>
#include <algorithm>
#include "boost\filesystem.hpp"
using namespace std;
namespace bst = boost::filesystem;
ObservationSequences::~ObservationSequences()
{
}
ObservationSequences::ObservationSequences(std::string folderName)
{
noOfFiles =... | C++ | src/ObservationSequences.cpp | anish-shekhawat/hmm-adaboost | mit | 1,824 | 74 | codeparrot/github-code |
dc7a0e112444520aefe1a0ea1876a56b0430377b83d6cdb6acfa4e4225c78506 | 'use strict'
angular
.module('softvApp')
.controller('ModalAddhubCtrl', function (clusterFactory, tapFactory, $rootScope, areaTecnicaFactory, $uibModalInstance, opcion, ngNotify, $state) {
function init() {
if (opcion.opcion === 1) {
vm.blockForm2 = true;
muestraColonias();
muestr... | JavaScript | app/scripts/controllers/areatecnica/ModalAddhubCtrl.js | alesabas/Softv | mit | 3,925 | 131 | codeparrot/github-code |
a0827ad91ac1ff9f8e5cc3b70ea62b8dfb4698d750c83ec9b0c2034696c7db3f | 'use strict';
var path = require('path');
var fs = require('fs');
module.exports = function(gen,cb) {
var sections;
if (gen.config.get('framework')==='bigwheel') {
var model = require(path.join(process.cwd(),'src/model/index.js'));
sections = ['Preloader'];
Object.keys(model).forEach(function(key) {
... | JavaScript | lib/createSections.js | Jam3/generator-jam3 | mit | 1,958 | 56 | codeparrot/github-code |
360db60d24f8b4a34012c51a5581cdb6def943d42be19d3c25c73bcd7104458f | {% extends "../base.html" %}
{% block content %}
<div class="row">
<div class="col-sm-6">
<legend translate>Platform Information</legend>
<!--ajax_result-->
<div class="ajax_result">
{% if msg %}
<div class="alert alert-info" role="alert">{{msg}}</div>
{% endif %}
<table width="100%" class="table tab... | HTML | templates/calibration/z-calibration.html | nanodlp/ui | mit | 5,156 | 117 | codeparrot/github-code |
719111155b5b236d076de39e069d9b83c495b28bb36a71db1d4da2deddc8416b | package com.artfulbits.utils;
import android.text.TextUtils;
import java.io.UnsupportedEncodingException;
import java.util.logging.Logger;
/** Common string routine. */
public final class StringUtils {
/* [ CONSTANTS ] ==============================================================================================... | Java | _libs/artfulbits-sdk/src/main/com/artfulbits/utils/StringUtils.java | OleksandrKucherenko/spacefish | mit | 1,547 | 50 | codeparrot/github-code |
2b73ef3abad22e4b88568609bdcb78f41112e6230438d9f6a3bb6f79fda10115 | // Copyright (c) 2011-2016 The Cryptonote developers
// Copyright (c) 2014-2017 XDN-project developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <string.h>
#include "context.h"
void
makecontext(uctx *ucp, voi... | C | src/Platform/OSX/System/Context.c | xdn-project/digitalnote | mit | 844 | 31 | codeparrot/github-code |
3317e099eb203be4dd28f728f8c590e8e778a1fdee12ed600454fb5c9e258333 | from django.conf import settings
from django.contrib.sites.shortcuts import get_current_site
from django.core.management import call_command
from django.db import models, connections, transaction
from django.urls import reverse
from django_tenants.clone import CloneSchema
from .postgresql_backend.base import _check_sc... | Python | django_tenants/models.py | tomturner/django-tenants | mit | 9,732 | 257 | codeparrot/github-code |
0a0cc3278353315cc8bb5662dfdcbe561bebde3d12099765c4443889257b4664 | package server
import (
"io"
"io/ioutil"
"log"
"net/http"
)
type Rest struct {
channels map[string]*Channel
}
func NewRestServer(server *Server) *Rest {
return &Rest{server.channels}
}
func (self *Rest) PostOnly(h http.HandlerFunc) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {... | GO | server/rest.go | nkostadinov/websocket | mit | 1,150 | 56 | codeparrot/github-code |
a479a23e6bc34d4224395907f329bbc84132d2c1e98bcde06af8e9e1b0087cd7 | using System;
using System.Collections.Generic;
using System.Linq;
using RiotSharp.MatchEndpoint.Enums;
namespace RiotSharp.Misc
{
static class Util
{
public static DateTime BaseDateTime = new DateTime(1970, 1, 1);
public static DateTime ToDateTimeFromMilliSeconds(this long millis)
{... | C# | RiotSharp/Misc/Util.cs | frederickrogan/RiotSharp | mit | 1,279 | 50 | codeparrot/github-code |
d589a1f61088f8c5618f41a59bcb3b4e832d6066d6ff050744ddb2baea5bd673 | 'use strict';
var assert = require('power-assert');
var resetStorage = require('./');
var dbName = 'test-item';
describe('#localStorage', function () {
beforeEach(function (done) {
localStorage.clear();
done();
});
it('should save value', function () {
var expected = { foo: 'bar', goo: 'nuu' };
... | JavaScript | test.js | pandawing/node-reset-storage | mit | 4,421 | 145 | codeparrot/github-code |
b427fc86afe0a563acc2afa5c0dedecc23babc6fe0b4a91e141e4a8bbd4e3dee | using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Xml;
using System.Xml.XPath;
using System.Data;
using System.Data.Sql;
using System.Data.SqlClient;
using System.Data.SqlTypes;
using alby.core.threadpool ;
namespace alby.codegen.generator
{
public partial... | C# | alby.codegen.generator/ViewGeneratorThreadPoolItem.cs | casaletto/alby.codegen.2015 | mit | 7,300 | 217 | codeparrot/github-code |
749d2063aff993d6cb5ad9f8378225833fb743b6d52181d64d9e9ea72de5c5e7 | // Copyright (c) 2016-2020 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include <config/bitcoin-config.h>
#endif
#include <chainparams.h>
#include <chainparamsbase.h>
#... | C++ | src/bitcoin-wallet.cpp | ElementsProject/elements | mit | 4,831 | 120 | codeparrot/github-code |
7ea57248987c11fc7de499b112aa2d4a49b3f5a0c48d828bf59424ac9d3452db | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Treorisoft.Net.Utilities
{
/// <summary>
/// Provides properties and instance methods for sending files ove... | C# | Winsock/Utilities/FileData.cs | Borvik/Winsock.Net | mit | 11,802 | 287 | codeparrot/github-code |
bd50f11a4289f79c34c9292ca04b358183b6c817c51d3d3d056b5f18a756e82e | import React from 'react'
import DocumentTitle from 'react-document-title'
import ReactHeight from 'react-height'
import Header from './header/header'
import Content from './content/content'
import Footer from './footer/footer'
import { APP_NAME } from '../constants'
class Layout extends React.Component {
render()... | JavaScript | src/components/layout.js | HendrikCrause/crossword-creator | mit | 792 | 40 | codeparrot/github-code |
619b258a32d475fd1756b1c003435ba86b1b0ae6e8ce9abbab2a788a27f0daf5 | import expect from 'expect';
import createStore from './createStore';
describe('createStore()', () => {
let store;
beforeEach(() => {
store = createStore();
});
it('should write data and return its key when write() is called', () => {
const hash = store.write({ hello: 'world' });
... | JavaScript | src/createStoreSpec.js | RobinBressan/json-git | mit | 2,726 | 88 | codeparrot/github-code |
c36992eb623f8937ad8b2de8cd921fc7c54169cd80cc32762adb87a10ade07a8 | package com.jxtech.distributed.zookeeper.pool;
import java.util.NoSuchElementException;
import org.apache.commons.pool.ObjectPool;
import org.apache.commons.pool.PoolableObjectFactory;
import org.apache.commons.pool.impl.StackObjectPool;
import org.apache.zookeeper.ZooKeeper;
import org.slf4j.Logger;
import org.slf4j... | Java | Source/JxADF/JxPlatform/src/main/java/com/jxtech/distributed/zookeeper/pool/ZookeeperPoolManager.java | wmzsoft/JXADF | mit | 3,069 | 125 | codeparrot/github-code |
3e35b85295907f96b3c6b8310ab6e2435aad2495f5b3324427b1844a4eeacb9f | // Copyright (c) 2011-2014 The Testcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "paymentserver.h"
#include "Testcoinunits.h"
#include "guiutil.h"
#include "optionsmodel.h"
#include "base58.h"
#... | C++ | src/qt/paymentserver.cpp | L5hunter/TestCoin | mit | 24,957 | 748 | codeparrot/github-code |
f5182921eb26e4183686b06d0653511509978b55e09dae8d067196f5090d5943 | <div class="page-actions">
<!-- AUDIO CONTAINER (conditional) -->
<?php if ($page->episode_file()->isNotEmpty()) { ?>
<div class="audio-holder" itemprop="audio">
<audio preload="none" controls>
<source src="/podcasts/<?php echo $page->episode_file() ?>" type="audio/mpeg" />
</audio>
</d... | PHP | site/snippets/page-actions.php | AhoyLemon/TheFPlus | mit | 7,943 | 94 | codeparrot/github-code |
1d7092e11899072f74ae5977b1bef95155b9019aeb01ce0504108cdc09be9f2e | #!/usr/bin/env python3
# Copyright (c) 2014-2015 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Test addressindex generation and fetching
#
import binascii
from test_framework.messages import COI... | Python | test/functional/feature_addressindex.py | thelazier/dash | mit | 15,001 | 352 | codeparrot/github-code |
70fb065ccc249e107bd374b89dfffc2d71b4011e5917d1e6da139227b2beacca | /////////////////////////////////////////////////////////////////////////////
// Name: wx/gtk/slider.h
// Purpose:
// Author: Robert Roebling
// Id: $Id: slider.h,v 1.20 2005/08/02 22:57:57 MW Exp $
// Copyright: (c) 1998 Robert Roebling
// Licence: wxWindows licence
/////////////////////////... | C | code/wxWidgets/include/wx/gtk/slider.h | SickheadGames/Torsion | mit | 2,514 | 79 | codeparrot/github-code |
dfec46125b06300ae46bc62886187cccfed061f608b571fdda26f17859fa06dc | var xml = require('xmlbuilder');
var fs = require('fs');
/**
* Function is used to create plis file which is required for downloading ios app.
* @param {string} name app name
* @param {string} path path to application
* @param {string} title title for alert
* @param {Function} callback functi... | JavaScript | server/utils/utils.xml.js | dimko1/ohmystore | mit | 1,412 | 57 | codeparrot/github-code |
a44e2a7b9eb1cc1125e6ac3e858cf12c28c9962d64d59d8ced521d649f7bb89e | package math;
import util.IReplicable;
public class Vector3 implements IReplicable<Vector3> {
private static final float MIN_TOLERANCE = (float) 1E-9;
public float x;
public float y;
public float z;
public static Vector3 of(float x, float y, float z) {
Vector3 vector = new Vector3();
... | Java | src/math/Vector3.java | NathanJAdams/verJ | mit | 4,539 | 183 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.