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 |
|---|---|---|---|---|---|---|---|---|
5188b768e11194d0dc075978458f3a69c71491f7a98847474255cfd634f5189d | <!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>my-angular-cli-app documentation</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-sca... | HTML | documentation/directives/InputYearValidationDirective.html | Camyul/Angular2Project | mit | 38,723 | 781 | codeparrot/github-code |
08453968f74a554883852b4a11591be96853b65bcc0cff3fe478f993c0e8e193 | <?php
class Ressource extends Thing {
var $name;
var $url;
var $schemaDefinition;
function __construct($url = null) {
if ($url) $this->url = $this->preparePath($url);
}
function preparePath($path) {
$path = str_replace(" ", "+", $path);
return $path;
}
function getFileName() {
if (strpos($this->re... | PHP | classes/EDI/Ressource.php | neuronalysis/engulfing-core | mit | 2,052 | 71 | codeparrot/github-code |
518ec5f992c650e6b76e4e38e67dd3f854607e7a34319c17bc8ddc37e9272d01 | package org.broadinstitute.sting.utils.codecs.table;
import org.broad.tribble.Feature;
import org.broad.tribble.readers.LineReader;
import org.broadinstitute.sting.gatk.refdata.ReferenceDependentFeatureCodec;
import org.broadinstitute.sting.utils.GenomeLocParser;
import org.broadinstitute.sting.utils.exceptions.UserEx... | Java | public/java/src/org/broadinstitute/sting/utils/codecs/table/TableCodec.java | iontorrent/Torrent-Variant-Caller-stable | mit | 4,090 | 113 | codeparrot/github-code |
ad8c8cc8dc88def7597059830fce10accd77ca2f48df45fb80b38bbc7c887a87 | #include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <errno.h>
#include <string.h>
#include <fcntl.h> /* Definition of AT_* constants */
#ifndef _MSC_VER
#include <unistd.h>
#include <dirent.h>
#else
#pragma warning(disable:4996)
#endif
#include "logging.h"
#include "config.h"
#include "... | C | src/dbro_refresh.c | usrecnik/ddlfs | mit | 5,152 | 170 | codeparrot/github-code |
7fab83315adfce0ce184ae2045ce663d5bfea92e18983f0c53ec189520a417b0 | module Rentjuicer
class Response
attr_accessor :body
def initialize(response, raise_error = false)
rash_response(response)
raise Error.new(self.body.code, self.body.message) if !success? && raise_error
end
def success?
self.body && !self.body.blank? && self.body.respond_to?(:statu... | Ruby | lib/rentjuicer/response.rb | tcocca/rentjuicer | mit | 944 | 44 | codeparrot/github-code |
89fb58a07bfaebf8693626aa72c60a9d8a034cd14aef7db287050bd4cdc97913 | <?php
namespace TheCodingMachine\Yaco\Discovery;
use Interop\Container\ContainerInterface;
use Interop\Container\Factory\ContainerFactoryInterface;
use Puli\Discovery\Api\Discovery;
use Puli\Discovery\Binding\ClassBinding;
use Symfony\Component\Filesystem\Filesystem;
use TheCodingMachine\Yaco\Compiler;
/**
* A cla... | PHP | src/YacoFactory.php | thecodingmachine/yaco-discovery | mit | 2,891 | 89 | codeparrot/github-code |
3280319aae87a3f9492ca09ed3b24605c5aa3e812cd7edb55fda6feaf933a16b | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>multiplier: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.... | HTML | clean/Linux-x86_64-4.02.3-2.0.6/released/8.9.1/multiplier/8.5.0.html | coq-bench/coq-bench.github.io | mit | 6,993 | 166 | codeparrot/github-code |
bbf546454f77086087c95d65d3593a581ce56b590c0554d49042aa75b55d3383 | from django.core import serializers
from rest_framework.response import Response
from django.http import JsonResponse
try:
from urllib import quote_plus # python 2
except:
pass
try:
from urllib.parse import quote_plus # python 3
except:
pass
from django.contrib import messages
from django.contrib.co... | Python | src/posts/views.py | our-iot-project-org/pingow-web-service | mit | 5,217 | 158 | codeparrot/github-code |
c2576b28998dd429579ae2ed665baa2715f4df1c161df776bdd93bf4c58ebc24 | /* @flow */
import {
InputTypeComposer,
type ObjectTypeComposerFieldConfigAsObjectDefinition,
} from 'graphql-compose';
import { getTypeName, type CommonOpts, desc } from '../../../utils';
import { getAllAsFieldConfigMap } from '../../Commons/FieldNames';
export function getRangeITC<TContext>(
opts: CommonOpts<... | JavaScript | src/elasticDSL/Query/TermLevel/Range.js | nodkz/graphql-compose-elasticsearch | mit | 1,241 | 50 | codeparrot/github-code |
eb9c5249f8e981489f0b8a82f1d870b6de1130d58e209eb89a7eb2eef4324d72 | package com.exilegl.ld34.entity.enemy;
import java.util.Random;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.math.Rectangle;
... | Java | LD34/src/com/exilegl/ld34/entity/enemy/EntityBullet.java | some1epic123/Mr.-Dungeon-Aase-LD34- | mit | 6,144 | 231 | codeparrot/github-code |
ed48a9c16784d147f0dbbc1a4bcc6b974b2fce453eae546a7bb0e8b5cdc307eb | //
// This file is part of nuBASIC
// Copyright (c) Antonino Calderone (antonino.calderone@gmail.com)
// All rights reserved.
// Licensed under the MIT License.
// See COPYING file in the project root for full license information.
//
/* -------------------------------------------------------------------------- */... | C | include/nu_stmt_function.h | eantcal/nubasic | mit | 1,886 | 71 | codeparrot/github-code |
31278b66a9b0edc222ccf16fccc3bab36088c4828c8e062146688a0909b610c2 | angular.module("umbraco")
.controller("Umbraco.PropertyEditors.RTEController",
function ($rootScope, $scope, $q, $locale, dialogService, $log, imageHelper, assetsService, $timeout, tinyMceService, angularHelper, stylesheetResource, macroService, editorState) {
$scope.isLoading = true;
//... | JavaScript | src/Umbraco.Web.UI.Client/src/views/propertyeditors/rte/rte.controller.js | tompipe/Umbraco-CMS | mit | 20,615 | 404 | codeparrot/github-code |
e02c562135737660c54f6cecb8ebc11f8eb5f6eb36a5c285e047bbc9d69c02cb | // @flow
import React from 'react';
import { renderToStaticMarkup } from 'react-dom/server';
import Middleware from './Middleware';
type Base = {
href?: string,
target?: string,
};
type Link = {
crossOrigin?: string,
href?: string,
hrefLang?: string,
integrity?: string,
media?: string,
preload?: bool... | JavaScript | packages/spust-koa/src/RenderApp.js | michalkvasnicak/spust | mit | 2,997 | 131 | codeparrot/github-code |
9aec2584a7c27cf1a351e1977cdefb7ca7dced6d76d955dec19fdae17ceef787 | import {
RESOURCE,
SERVER_ERRORS,
INITIAL_STATE_WITH_CACHED_LIST,
INITIAL_STATE_WITH_LIST_BEING_FETCHED,
INITIAL_STATE_WITH_CACHED_AND_SELECTED_LIST,
} from '../mocks'
import { generateListResourceActions } from './mocks'
const request = () => Promise.resolve([RESOURCE])
const errorRequest = () => ... | JavaScript | src/actions/listResource.spec.js | travisbloom/redux-resources | mit | 2,626 | 78 | codeparrot/github-code |
66df4b2db63c8561c0331b0b31668b7fc1e8a8ba2d8edd438d2560de8e864c08 | /*
* The MIT License
* Copyright © 2014 Cube Island
*
* 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, modif... | Java | core/src/main/java/de/cubeisland/engine/modularity/core/LifeCycle.java | CubeEngine/Modularity | mit | 11,911 | 410 | codeparrot/github-code |
e112790555eb85e78deac8f454405a6e00b8e3d0e8dc21a850a6ae60c1a2e66a | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>menhirlib: 48 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="s... | HTML | clean/Linux-x86_64-4.10.2-2.0.6/released/8.13.1/menhirlib/20200612.html | coq-bench/coq-bench.github.io | mit | 10,663 | 203 | codeparrot/github-code |
faffcf362e170e53cb63b1aeae890dbda6b905788c111e6901b7ebb76a20da01 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>dpdgraph: 16 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="st... | HTML | clean/Linux-x86_64-4.03.0-2.0.5/released/8.9.0/dpdgraph/0.6.4.html | coq-bench/coq-bench.github.io | mit | 7,942 | 179 | codeparrot/github-code |
584d12aaa9149962ae3831e11cc78ed2cca99847b6f97077363fde3cf1891e7f | package com.bugsnag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;
import javax.annotation.PostConstruct;
/**
* If spring-webmv... | Java | bugsnag-spring/src/main/java/com/bugsnag/MvcConfiguration.java | bugsnag/bugsnag-java | mit | 1,039 | 37 | codeparrot/github-code |
b521066b5d50b7887e01c2e741bb0fa0718efb0fc48f975ac18a856e448222f9 | import React, {Component} from 'react';
import MiniInfoBar from '../components/MiniInfoBar';
export default class About extends Component {
state = {
showKitten: false
}
handleToggleKitten() {
this.setState({showKitten: !this.state.showKitten});
}
render() {
const {showKitten} = this.state;
... | JavaScript | src/views/About.js | vbdoug/hot-react | mit | 1,598 | 52 | codeparrot/github-code |
90853780d5b7bccf4d87e2b97502a9d123fd42e79a4a264755b69e4915127626 | from pydispatch import dispatcher
from PySide import QtCore, QtGui
import cbpos
logger = cbpos.get_logger(__name__)
from .page import BasePage
class MainWindow(QtGui.QMainWindow):
__inits = []
def __init__(self):
super(MainWindow, self).__init__()
self.tabs = QtGui... | Python | cbmod/base/views/window.py | coinbox/coinbox-mod-base | mit | 7,111 | 191 | codeparrot/github-code |
d49acf643b049981cb10584f187601c7b280d45c4112ebec1d32ea9fc67fd8d5 | package cn.javay.zheng.common.validator;
import com.baidu.unbiz.fluentvalidator.ValidationError;
import com.baidu.unbiz.fluentvalidator.Validator;
import com.baidu.unbiz.fluentvalidator.ValidatorContext;
import com.baidu.unbiz.fluentvalidator.ValidatorHandler;
/**
* 长度校验
* Created by shuzheng on 2017/2/18.
*/
publ... | Java | zheng-common/src/main/java/cn/javay/zheng/common/validator/LengthValidator.java | javay/zheng-lite | mit | 1,081 | 39 | codeparrot/github-code |
26e6f5b4a61e6eec05a240e554c1591b300593a25b8ad1e73e1b9e5e57a85ff8 | define([
"dojo/_base/array",
"dojo/_base/connect",
"dojo/_base/declare",
"dojo/_base/lang",
"dojo/_base/window",
"dojo/dom",
"dojo/dom-class",
"dojo/dom-construct",
"dojo/dom-style",
"dijit/registry",
"dijit/_Contained",
"dijit/_Container",
"dijit/_WidgetBase",
"./ProgressIndicator",
"./ToolBarButton",
... | JavaScript | html/dojo-1.8.3/dojox-1.9.0/mobile/Heading.js | aguadev/aguadev | mit | 7,774 | 254 | codeparrot/github-code |
c855b5040df1fc2e7d5ffa7f53850a5dd3b959d76f899f35ab51cbaba939b1c4 | /**
* Logback: the reliable, generic, fast and flexible logging framework.
* Copyright (C) 1999-2015, QOS.ch. All rights reserved.
*
* This program and the accompanying materials are dual-licensed under
* either the terms of the Eclipse Public License v1.0 as published by
* the Eclipse Foundation
*
* ... | Java | library/logBack/logback-1.1.3/logback-access/src/main/java/ch/qos/logback/access/spi/AccessEvent.java | cscfa/bartleby | mit | 14,592 | 556 | codeparrot/github-code |
4e4e00a5b2e75d4dc8949706ef040ad866ac01f5accd9cb37a1c0da1ea3ba495 | # Phusion Passenger - https://www.phusionpassenger.com/
# Copyright (c) 2010 Phusion Holding B.V.
#
# "Passenger", "Phusion Passenger" and "Union Station" are registered
# trademarks of Phusion Holding B.V.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and ass... | Ruby | src/ruby_supportlib/phusion_passenger/plugin.rb | clemensg/passenger | mit | 2,994 | 97 | codeparrot/github-code |
51c632a7147c39c66573c75a06bdba787bfb01fe68144ac493d34bc2b1985674 | /*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 2002,2008 Oracle. All rights reserved.
*
* $Id: EntityConverter.java,v 1.11 2008/01/07 14:28:58 cwl Exp $
*/
package com.sleepycat.persist.evolve;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
/**
* A... | Java | examples/berkeleydb/com/sleepycat/persist/evolve/EntityConverter.java | plast-lab/DelphJ | mit | 2,735 | 89 | codeparrot/github-code |
e452c6f62b85ed6bd1520678a2d5c1923ec74171f57152b1096c3aca2af68bf8 | /*
* Popular Repositories
* Copyright (c) 2014 Alberto Congiu (@4lbertoC)
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
'use strict';
var React = require('react');
/**
* Like Array.map(), but on an object's own properties.
... | JavaScript | src/components/layout/LanguageList.js | 4lbertoC/popularrepositories | mit | 1,648 | 68 | codeparrot/github-code |
b01ee44e3c4400cfd7136179ecf2ca414dbff3f140707fb7007544260a94e971 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ott: 31 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesh... | HTML | clean/Linux-x86_64-4.08.1-2.0.5/released/8.9.1/ott/0.29.html | coq-bench/coq-bench.github.io | mit | 11,013 | 205 | codeparrot/github-code |
a261ecc68f3818d30f7827bfd55978573293fec569cda55cafdff2e40452c2d8 | <?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sylius\Bundle\ResourceBundle;
use Sylius\Bundle\ResourceBundle\DependencyInjection\Compiler... | PHP | src/Sylius/Bundle/ResourceBundle/SyliusResourceBundle.php | Symfomany/Sylius | mit | 972 | 38 | codeparrot/github-code |
fe39a44d0f6e1e360839617c250b37c36693463416ef4b5d44f0cbb4ee3e2f06 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>kildall: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css... | HTML | clean/Linux-x86_64-4.08.1-2.0.5/released/8.10.2/kildall/8.9.0.html | coq-bench/coq-bench.github.io | mit | 7,164 | 177 | codeparrot/github-code |
9bf839866f08b24ef42f97792da094f7275d176aa3f9a562b0f8d2403d296399 | /**
* Reparse the Grunt command line options flags.
*
* Using the arguments parsing logic from Grunt:
* https://github.com/gruntjs/grunt/blob/master/lib/grunt/cli.js
*/
module.exports = function(grunt){
// Get the current Grunt CLI instance.
var nopt = require('nopt'),
parsedOptions = parseOptions(nopt, gru... | JavaScript | index.js | widgetworks/nopt-grunt-fix | mit | 1,652 | 70 | codeparrot/github-code |
4fd5d0cbde1fee2bb3649f631cbdc31d5f1cc6af445ec8bb0851d7defca19605 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.DocAsCode.DataContracts.Common
{
using System;
using Newtonsoft.Json;
using YamlDotNet.Serialization;
using Microsoft.DocAsCode.Ut... | C# | src/Microsoft.DocAsCode.DataContracts.Common/SourceDetail.cs | sergey-vershinin/docfx | mit | 1,881 | 62 | codeparrot/github-code |
43443a2c334366bb2067b69b67192ca9fdfc5ddb2bd7df41d44b5cb8bf4701c3 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>najaxjs Tutorial: relaylinker | Ajax simple library</title>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/sunlight.default.css">
<lin... | HTML | any-js/najaxjs/docs/tutorial-relaylinker.html | any-js/any-js.github.io | mit | 6,971 | 221 | codeparrot/github-code |
54249ffee57cb65b2bda1416a387ebac0b45a10727b0f3269c1784dce44290fe | using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using Microsoft.AspNet.Identity.Owin;
namespace UniversityStudents.Models
{
// You can add profile data for the user by adding more properties to your ApplicationUser class... | C# | Projects/AspDemo/UniversityStudents/Models/IdentityModels.cs | twabbott/FeralNerd | mit | 1,236 | 33 | codeparrot/github-code |
208380d6d9fc0387e58c92b0c74c9122136dabe4b46937c1de71199ebf3e493a | <?php
namespace Torchbox\Thankq\Api;
class doContactInsert
{
/**
* @var esitWSdoContactInsertArgument $doContactInsertArgument
*/
protected $doContactInsertArgument = null;
/**
* @param esitWSdoContactInsertArgument $doContactInsertArgument
*/
public function __construct($doConta... | PHP | lib/Api/doContactInsert.php | mrhorse/crm_api | mit | 894 | 40 | codeparrot/github-code |
d6cf341a77ffcf6a7febbc3f3dd8ab31465379fb87d9ad518f5df433047e87c6 | package eu.hgross.blaubot.android.views;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.os.Handler;
import android.os.Looper;
import android.util.AttributeSet;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget... | Java | blaubot-android/src/main/java/eu/hgross/blaubot/android/views/KingdomView.java | Blaubot/Blaubot | mit | 6,132 | 183 | codeparrot/github-code |
94e5e02d58751444cd6e0880bcb024d233b03325a96a694d8473c090eb5a2c47 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import zmq
from zmq.eventloop import ioloop as ioloop_mod
import zmqdecorators
import time
SERVICE_NAME = "urpobot.motor"
SERVICE_PORT = 7575
SIGNALS_PORT = 7576
# How long to wait for new commands before stopping automatically
COMMAND_GRACE_TIME = 0.250
class motorserv... | Python | python/motorctrl.py | HelsinkiHacklab/urpobotti | mit | 3,257 | 90 | codeparrot/github-code |
2490743ed461def4ca370b037556a5ac811bb175d5b4e93609b79f96ed618bb1 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
namespace Izzo.Collections.Immutable
{
[DebuggerDisplay( "Count = {Count}" )]
public sealed partial class ImmutableList<T> : IImmutableList<T>
{
public static readonly ImmutableList<T> Empty = new I... | C# | Assets/Collections/Immutable/ImmutableList_1.cs | SuperIzzo/Unity3D-Immutable-Collections | mit | 5,036 | 198 | codeparrot/github-code |
a287d8242e7f3995d31dfd3239e0b3f9ed1f72be5943de9d402168c7b03e460c | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>fcsl-pcm: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.cs... | HTML | clean/Linux-x86_64-4.02.3-2.0.6/released/8.5.2/fcsl-pcm/1.1.1.html | coq-bench/coq-bench.github.io | mit | 7,566 | 181 | codeparrot/github-code |
9d6ed67cdf437dff7e2ba5f2b038551450f5af77bd3343fbcfd99b3f6f8a4d5a | exports.find = function(options) {
options || (options = {});
options.param || (options.param = 'query');
options.parse || (options.parse = JSON.parse);
return function(req, res, next) {
var query = req.query[options.param];
var conditions = query ? options.parse(query) : {};
re... | JavaScript | lib/query.js | scttnlsn/emt | mit | 2,776 | 104 | codeparrot/github-code |
1dba2c833f68883640564b30840f5fa788bfc3ce88390dbd3a943f34751eefdd | // MooTools: the javascript framework.
// Load this file's selection again by visiting: http://mootools.net/more/f0c28d76aff2f0ba12270c81dc5e8d18
// Or build this file again with packager using: packager build More/Assets More/Hash.Cookie
/*
---
script: More.js
name: More
description: MooTools More
license: MIT-st... | JavaScript | Source/js/mootools.more.js | donatj/CorpusPHP | mit | 7,181 | 381 | codeparrot/github-code |
50d1ce088e4d08328f1f27e2ffe16749d0bdef2398dc05c6ccaad72f1055e89f | """Basic thermodynamic calculations for pickaxe."""
from typing import Union
import pint
from equilibrator_api import (
Q_,
ComponentContribution,
Reaction,
default_physiological_ionic_strength,
default_physiological_p_h,
default_physiological_p_mg,
default_physiological_temperature,
)
fro... | Python | minedatabase/thermodynamics.py | JamesJeffryes/MINE-Database | mit | 11,011 | 358 | codeparrot/github-code |
e23f4c6d6b9dc3b5ec4530603802a8cd10c4b10cb6597265a8e537bcaa3c6622 | // MIT License
// Copyright (c) 2017 Simon Pettersson
// 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... | C++ | include/cmap.hpp | simonvpe/cmap | mit | 5,268 | 171 | codeparrot/github-code |
8469a824b345efb09180a3008a1023fd7df6fbea8d76abb46514ca9e948f3e2d | /* MicroJava Parser Semantic Tester
*
* Test only semantics. The grammar in all tests are correct.
*/
package MicroJava;
import java.io.*;
public class TestParserSemantic {
public static void main(String args[]) {
if (args.length == 0) {
executeTests();
} else {
for (in... | Java | src/MicroJava/TestParserSemantic.java | gabrielnobregal/mjcide | mit | 13,139 | 317 | codeparrot/github-code |
695bc50daba9ed2d0ebe415ab26f0a870d40ba3937978b4db20bfa87392963a8 | import os
#Decoration Starts
print """
+=============================================================+
|| Privilege Escalation Exploit ||
|| +===================================================+ ||
|| | _ _ _ ____ _ __ ____ ___ _____ | ||
|| | | | | | / \ / ___| |/ / ... | Python | hackRIT.py | Yadnyawalkya/hackRIT | mit | 3,140 | 82 | codeparrot/github-code |
ca5a549ea5478c16328ec4e3461459ccfdbf13ebec8f2eb3a489de9788491c5b | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>coqoban: 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/extra-dev/8.11.dev/coqoban/dev.html | coq-bench/coq-bench.github.io | mit | 6,565 | 165 | codeparrot/github-code |
1521569016a48b0096e190c95d091ea5485a7a28cf408244d4b451a694a386d8 | package fi.helsinki.cs.okkopa.main.stage;
import fi.helsinki.cs.okkopa.mail.read.EmailRead;
import fi.helsinki.cs.okkopa.main.ExceptionLogger;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
import javax.mail.Message;
import javax.mail.MessagingException;
import org.apache.commons.io.IOU... | Java | OKKoPa_core/src/main/java/fi/helsinki/cs/okkopa/main/stage/GetEmailStage.java | ohtuprojekti/OKKoPa_all | mit | 2,398 | 75 | codeparrot/github-code |
5b38f8eb2b90af44f2f353a5828a8d393243911a71ebd8ab3f1fa4f16709782b |
<!DOCTYPE html>
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<head>
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-16" http-equiv="Content-Type" />
<title _locid="PortabilityAnalysis0">.NET Portability Report</title>
<style>
... | HTML | Reports/mi/microsoft.net.http.2.2.29/System.Net.Http-net40.html | kuhlenh/port-to-core | mit | 91,378 | 1,967 | codeparrot/github-code |
1567a85bdf5aaccc41ae92425bf7469839b4135b3e233564f73cb2b46fa23365 | import codecs
unicode_string = "Hello Python 3 String"
bytes_object = b"Hello Python 3 Bytes"
print(unicode_string, type(unicode_string))
print(bytes_object, type(bytes_object))
#decode to unicode_string
ux = str(object=bytes_object, encoding="utf-8", errors="strict")
print(ux, type(ux))
ux = bytes_object.dec... | Python | bitten.py | thedemz/python-gems | mit | 978 | 53 | codeparrot/github-code |
ae52bfe2258b2cccfbf09a7f683cab022a30b09ba4781c43a9cb390d0cc8a6e1 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.Extensio... | C# | SpaClient/Startup.cs | JohanPeeters/REST-IAM-demo | mit | 1,768 | 49 | codeparrot/github-code |
db429dde35b9ed02ade38f9e22fe28dc0f4980c1699765ac156935413c42bb8c | require 'active_service/model/attributes/nested_attributes'
require 'active_service/model/attributes/attribute_map'
require 'active_service/model/attributes/serializer'
module ActiveService
module Model
# This module handles attribute methods not provided by ActiveAttr
module Attributes
extend ActiveSu... | Ruby | lib/active_service/model/attributes.rb | zacharywelch/activeservice | mit | 6,526 | 208 | codeparrot/github-code |
b1bad49ebeba6330f8c28993a9e4048a2859f8c8771cf27cf8f9e841f129162c | require 'corelib/numeric'
require 'corelib/rational/base'
class ::Rational < ::Numeric
def self.reduce(num, den)
num = num.to_i
den = den.to_i
if den == 0
::Kernel.raise ::ZeroDivisionError, 'divided by 0'
elsif den < 0
num = -num
den = -den
elsif den == 1
return new(num,... | Ruby | opal/corelib/rational.rb | opal/opal | mit | 7,210 | 394 | codeparrot/github-code |
c1b6b464a06f34802e7212944b30de936106b68f016ec6e61ff925a0ffad0126 | using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;
using Anarian.Interfaces;
using Anarian.Events;
namespace Anarian.DataStructures.Input
{
public class Controller : IUpdatable
{
PlayerIndex... | C# | Anarian Game Engine.Shared/DataStructures/Input/Controller.cs | KillerrinStudios/Anarian-Game-Engine-MonoGame | mit | 10,320 | 218 | codeparrot/github-code |
6e0a36b6f467230f83da6cc96ef0307ec94b03501490ec8156305015007def3a | package api2go
import (
"context"
"time"
)
// APIContextAllocatorFunc to allow custom context implementations
type APIContextAllocatorFunc func(*API) APIContexter
// APIContexter embedding context.Context and requesting two helper functions
type APIContexter interface {
context.Context
Set(key string, value inte... | GO | context.go | manyminds/api2go | mit | 1,793 | 81 | codeparrot/github-code |
dac6228f346dead5618218428ece0f10a5ce43407ccb73aa6ee84f7b3f0763bf | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>fcsl-pcm: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.cs... | HTML | clean/Linux-x86_64-4.05.0-2.0.1/released/8.7.1+2/fcsl-pcm/1.2.0.html | coq-bench/coq-bench.github.io | mit | 7,448 | 180 | codeparrot/github-code |
fdfc8fbe4906d54793ec1c09e759100323284c61b5ff731607b4d37b7610ee2d | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>relation-algebra: 4 m 10 s</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css... | HTML | clean/Linux-x86_64-4.05.0-2.0.6/released/8.11.2/relation-algebra/1.7.3.html | coq-bench/coq-bench.github.io | mit | 27,181 | 342 | codeparrot/github-code |
e43cce3b32425f51b107cb064a8f0285c1e06f7872a81516472c45ebe885aadc | Set-StrictMode -Version 2
function Test-SqlServer {
<#
.SYNOPSIS
Tests if a SQL Server exists and can be connected to. Optonally checks for a specific database or table.
.PARAMETER Server
The SQL Server to test
.PARAMETER Database
The database to test exists on the SQL Server ... | PowerShell | TelligentInstall/sql.ps1 | afscrome/TelligentInstanceManager | mit | 13,164 | 392 | codeparrot/github-code |
967796275437c2ad8896b9aabe3a1a55099039f608be93597da2e84c072ad0c3 |
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>bartpy.node — BartPy 0.0.1 documentati... | HTML | docs/_modules/bartpy/node.html | JakeColtman/bartpy | mit | 21,467 | 337 | codeparrot/github-code |
06ce01dc3e7233dd81bf137684cee4184914f8a10e94370af20efd0ba56bbee0 | <?php
namespace moonland\phpexcel;
use yii\helpers\ArrayHelper;
use yii\base\InvalidConfigException;
use yii\base\InvalidParamException;
use yii\i18n\Formatter;
use PhpOffice\PhpSpreadsheet\Spreadsheet;
/**
* Excel Widget for generate Excel File or for load Excel File.
*
* Usage
* -----
*
* Exporting data into... | PHP | Excel.php | moonlandsoft/yii2-phpexcel | mit | 33,882 | 952 | codeparrot/github-code |
b557e744467ad58f2dbaa40ac7715114b6be8742d787615f30ea41d509b5ffd8 | <?php
require_once('../../global_functions.php');
require_once('../../connections/parameters.php');
try {
if (!isset($_SESSION)) {
session_start();
}
$s2_response = array();
$db = new dbWrapper_v3($hostname_gds_site, $username_gds_site, $password_gds_site, $database_gds_site, true);
if (e... | PHP | site_files/s2/my/mod_request_ajax.php | GetDotaStats/site | mit | 6,730 | 189 | codeparrot/github-code |
1fd423e150751de42f4511dba6f60620942ddd10d54f4baca62295841e0d169b | module Prawn
module Charts
class Bar < Base
attr_accessor :ratio
def initialize pdf, opts = {}
super pdf, opts
@ratio = opts[:ratio] || 0.75
end
def plot_values
return if series.nil?
series.each_with_index do |bar,index|
point_x = first_x_point i... | Ruby | lib/prawn/charts/bar.rb | cajun/prawn-charts | mit | 1,724 | 78 | codeparrot/github-code |
c826354ba5b70c7227c952f096b46f52662cad5e9e2950ff74420b5631e7f046 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>paco: 3 m 36 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="st... | HTML | clean/Linux-x86_64-4.04.2-2.0.5/released/8.9.0/paco/2.0.3.html | coq-bench/coq-bench.github.io | mit | 22,464 | 316 | codeparrot/github-code |
1ddd093aac465bc2ed1470fb5d633fe716f6fd3c1739df55c3952e926ab63f04 | <?php
namespace AppBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
class ProfileFormType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder->add('name');
}
public function getParent... | PHP | src/AppBundle/Form/ProfileFormType.php | efalder413/PKMNBreeder | mit | 586 | 30 | codeparrot/github-code |
843c77e84ad3d5c363d0e900f5f0f21c4eeaecbcb8a3aea28df05ee7f22140c6 | """ -*- coding: utf-8 -*- """
from python2awscli import bin_aws
from python2awscli.error import AWSNotFound, ParseError, AWSDuplicate
from python2awscli import must
class BaseSecurityGroup(object):
def __init__(self, name, region, vpc, description, inbound=None, outbound=None):
"""
:param name: S... | Python | python2awscli/model/securitygroup.py | jhazelwo/python-awscli | mit | 6,235 | 169 | codeparrot/github-code |
c589e5dc994e7d79d6d8be6031355d737dd55290d7ef448f1d2a7f493ef407aa | /*
The MIT License (MIT)
Copyright (c) 2014 Manni Wood
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, pu... | Java | src/test/java/com/manniwood/cl4pg/v1/test/types/IntegerSmallIntTest.java | manniwood/cl4pg | mit | 5,707 | 166 | codeparrot/github-code |
506f64a5b22a294f59f352784ff33f7c9c8d5515acbb19126e5eda97e9edc9b7 | package com.fqc.jdk8;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;
public class test06 {
public static void main(String[] args) {
int[] arr = {1, 2, 3, 4, 5};
ArrayList<Integer> list = Arrays.stream(arr).collec... | Java | src/main/java/com/fqc/jdk8/test06.java | fqc/Java_Basic | mit | 927 | 33 | codeparrot/github-code |
1d535533e22a0e1392c7c620240cb67ef50b1581da4e3c6093cd07f41af4db21 | // Deprecated: use github.com/multiformats/go-multiaddr-fmt instead.
package mafmt
import (
nmafmt "github.com/multiformats/go-multiaddr-fmt"
)
// Deprecated: use github.com/multiformats/go-multiaddr-fmt instead.
var IP = nmafmt.IP
// Deprecated: use github.com/multiformats/go-multiaddr-fmt instead.
var TCP = nmafm... | GO | patterns.go | whyrusleeping/mafmt | mit | 1,274 | 43 | codeparrot/github-code |
0da5cd755a165b63dd5184f92e4afe5cd44b7f378822898f094b4f2c44007255 | var chalk = require('chalk');
var safeStringify = require('fast-safe-stringify')
function handleErrorObject(key, value) {
if (value instanceof Error) {
return Object.getOwnPropertyNames(value).reduce(function(error, key) {
error[key] = value[key]
return error
}, {})
}
return value
}
function... | JavaScript | lib/utils.js | lazywithclass/winston-cloudwatch | mit | 806 | 36 | codeparrot/github-code |
415ec2e48285861be04b5baa42cde4e450b46aa2a7363ccdaae485095135dd7e | #pragma once
#include "toolscollector.h"
#include "widgetsettings.h"
#include "toolbase.h"
namespace Engine {
namespace Tools {
struct GuiEditor : public Tool<GuiEditor> {
SERIALIZABLEUNIT(GuiEditor);
GuiEditor(ImRoot &root);
virtual Threading::Task<bool> init() override;
vi... | C | plugins/core/widgets/tools/Madgine_Tools/guieditor/guieditor.h | MadManRises/Madgine | mit | 1,140 | 44 | codeparrot/github-code |
abca8a3c6381b892a23e4f9bfa2f08f3d2cdfeca780a7da44880ad3d8cb26ffc | <?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Class: HTML::Sanitizer</title>
<meta http-equiv="Content... | HTML | doc/api/classes/HTML/Sanitizer.html | ecoulthard/summitsearch | mit | 9,325 | 229 | codeparrot/github-code |
478d447c117cc7305f1a1ef42dc839c1636bb4b5902c327676ba26c28ee340b8 | using System.Collections.ObjectModel;
using AppStudio.Common;
using AppStudio.Common.Navigation;
using Windows.UI.Xaml;
namespace WindowsAppStudio.Navigation
{
public abstract class NavigationNode : ObservableBase
{
private bool _isSelected;
public string Title { get; set; }
... | C# | WindowsAppStudio.W10/Navigation/NavigationNode.cs | wasteam/WindowsAppStudioApp | mit | 2,027 | 85 | codeparrot/github-code |
fc9040cfad85a4bad3cbc3cba0a527ff9ad997f7a53efc64fa82840e4bd07d0a | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>canon-bdds: 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.10.0/canon-bdds/8.5.0.html | coq-bench/coq-bench.github.io | mit | 6,937 | 170 | codeparrot/github-code |
7c30ca1bf4c8ee2b7465f2242795517f892b15ac98eb49038b8eff4907a77d94 | class DiscountTechnicalTypesController < ApplicationController
before_action :set_discount_technical_type, only: [:show, :edit, :update, :destroy]
# GET /discount_technical_types
# GET /discount_technical_types.json
def index
@discount_technical_types = DiscountTechnicalType.all
end
# GET /discount_te... | Ruby | app/controllers/discount_technical_types_controller.rb | maxjuniorbr/mobSeg | mit | 2,523 | 75 | codeparrot/github-code |
2e5cf316eadb23a3d1a6505ed416023b64f98e7a4566a98ca2c551c2fcbf7334 | import './Modal.scss'
import pugTpl from './Modal.pug'
import mixin from '../../mixin'
import alert from '@vue2do/component/module/Modal/alert'
import confirm from '@vue2do/component/module/Modal/confirm'
export default {
name: 'PageCompModal',
template: pugTpl(),
mixins: [mixin],
data() {
return {
... | JavaScript | app/doc/client/component/page/Component/message/Modal/Modal.js | zen0822/vue2do | mit | 951 | 59 | codeparrot/github-code |
ad84a6aff6f978d7a59be68ca07812cd52cc0b6806210b706e557a1ca410cea0 | package com.igonics.transformers.simple;
import java.io.PrintStream;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.DefaultParser;
import org.apache.commons.cli.HelpFormatter;
imp... | Java | src/com/igonics/transformers/simple/JavaCSVTransform.java | gggordon/JavaCSVTransform | mit | 4,527 | 117 | codeparrot/github-code |
3b164b101c774e23cc1e2b797c622d928736aefeacb7125f67cdc9afb78ea69d | /*
* JDIVisitor
* Copyright (C) 2014 Adrian Herrera
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This... | Java | src/main/java/org/jdivisitor/debugger/launcher/RemoteVMConnector.java | adrianherrera/jdivisitor | mit | 2,991 | 98 | codeparrot/github-code |
ee3f7aee274612cf5b5ae27a9064c0aa71efe7f1541b013a10d809698483565e | # The MIT License (MIT)
#
# Copyright (c) 2016 Frederic Guillot
#
# 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, ... | Python | kanboard_cli/shell.py | kanboard/kanboard-cli | mit | 3,401 | 94 | codeparrot/github-code |
d6ce7d2b1e758eb48963a3df94cf40ba5f5c9b9bc6c3c73079fd0027c01386cd | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace cShART
{
public class ARTFlystick : ARTObject
{
private bool visible;
private int numberOfButtons;
private int numberOfControllers;
... | C# | ARTFlystick.cs | schMarXman/cShART | mit | 4,742 | 145 | codeparrot/github-code |
15f0388ee2fd763ce4ec8178a4ab98b5d83b90d42b4e2adefd2b394e477e18ef | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>PruneCluster - Realworld 50k</title>
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, target-densitydpi=device-dpi" />
<link rel="stylesheet" href="https://cdnj... | HTML | examples/random.1000.html | SINTEF-9012/PruneCluster | mit | 1,724 | 57 | codeparrot/github-code |
5c17788d112260c127d51d3dcd7bed31f659a54a4f84a550104c0b1942cc370b | class IE
@private
def ie_config
@client = Selenium::WebDriver::Remote::Http::Default.new
@client.read_timeout = 120
@caps = Selenium::WebDriver::Remote::Capabilities.ie('ie.ensureCleanSession' => true,
:javascript_enabled => true,
... | Ruby | lib/testnow/ie.rb | krupani/testnow | mit | 1,583 | 46 | codeparrot/github-code |
5d0d114e2cb3bb55bec74d4eb719dc2e12017287041503910c5d158a8c73aeaa | #include <fstream>
#include <iostream>
#include <vector>
int main(int argc, char **argv) {
std::vector<std::string> args(argv, argv + argc);
std::ofstream tty;
tty.open("/dev/tty");
if (args.size() <= 1 || (args.size() & 2) == 1) {
std::cerr << "usage: maplabel [devlocal remote]... remotedir\n";
retur... | C++ | maplabel/main.cc | uluyol/tools | mit | 804 | 31 | codeparrot/github-code |
ea94aef7ba9d59f4d5c8fd6da810176ef9c634aba25f3a30395344596c12d5fa | package com.catsprogrammer.catsfourthv;
/**
* Created by C on 2016-09-14.
*/
public class MatrixCalculator {
public static float[] getRotationMatrixFromOrientation(float[] o) {
float[] xM = new float[9];
float[] yM = new float[9];
float[] zM = new float[9];
float sinX = (float)... | Java | mobile/src/main/java/com/catsprogrammer/catsfourthv/MatrixCalculator.java | CatsProject/CycleAssistantTools | mit | 2,236 | 80 | codeparrot/github-code |
1bc44342dca916f8b058d1b1b9b9233f0398efed555287c59cc149df878b8b3d | package es.sandbox.ui.messages.argument;
import es.sandbox.ui.messages.resolver.MessageResolver;
import es.sandbox.ui.messages.resolver.Resolvable;
import java.util.ArrayList;
import java.util.List;
class LinkArgument implements Link, Resolvable {
private static final String LINK_FORMAT = "<a href=\"%s\" title... | Java | flash-messages-core/src/main/java/es/sandbox/ui/messages/argument/LinkArgument.java | jeslopalo/flash-messages | mit | 2,828 | 102 | codeparrot/github-code |
d4ed95ae9cdf748ee45648b1299b8560fd2c6bb2ac36441520b680b2f9dfd06d | /*
Copyright 2011 Google Inc.
Modifications Copyright (c) 2014 Simon Zimmermann
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by a... | GO | blob/fetcher.go | simonz05/blobserver | mit | 1,050 | 34 | codeparrot/github-code |
d011bfc37c091eb7945e60ef622f71a91dceff84ca7a4dba9ab0b0cd90109378 | <?php
namespace OpenRailData\NetworkRail\Services\Stomp\Topics\Rtppm\Entities\Performance;
/**
* Class Performance
*
* @package OpenRailData\NetworkRail\Services\Stomp\Topics\Rtppm\Entities\Performance
*/
class Performance
{
/**
* @var int
*/
private $totalCount;
/**
* @var int
*/... | PHP | src/NetworkRail/Services/Stomp/Topics/Rtppm/Entities/Performance/Performance.php | neilmcgibbon/php-open-rail-data | mit | 3,258 | 178 | codeparrot/github-code |
507e3e43d1d3edccc2c72d7cd2681323f85b5184aed55bd7ed47e7a69b72627b | package gitnotify
import (
"errors"
"fmt"
"html/template"
"net/http"
"os"
"sort"
"github.com/gorilla/mux"
"github.com/markbates/goth"
"github.com/markbates/goth/gothic"
"github.com/markbates/goth/providers/github"
"github.com/markbates/goth/providers/gitlab"
"github.com/sairam/kinli"
)
// Authentication ... | GO | gitnotify/auth.go | sairam/gitnotify | mit | 5,241 | 178 | codeparrot/github-code |
f26da636c3a44395799b08fd5cd13836af0f2c21609079614512886f6bcd2e7c | import numpy as np
import matplotlib.pylab as plt
from numba import cuda, uint8, int32, uint32, jit
from timeit import default_timer as timer
@cuda.jit('void(uint8[:], int32, int32[:], int32[:])')
def lbp_kernel(input, neighborhood, powers, h):
i = cuda.grid(1)
r = 0
if i < input.shape[0] - 2 * neighborho... | Python | Learning/1dlbp_tests.py | fierval/KaggleMalware | mit | 4,911 | 149 | codeparrot/github-code |
e569ad77a23bea71f371c45b22812257de2d97a83f463e2eaa1e5433827817af | package me.F_o_F_1092.WeatherVote.PluginManager.Spigot;
import java.util.ArrayList;
import java.util.List;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import me.F_o_F_1092.WeatherVote.Options;
import me.F_o_F_1092.WeatherVote.PluginManager.Command;
import me.F_o_F_1092.WeatherVote.Plugi... | Java | src/me/F_o_F_1092/WeatherVote/PluginManager/Spigot/HelpPageListener.java | fof1092/WeatherVote | mit | 2,808 | 73 | codeparrot/github-code |
273cbd1c94b58bbf08bfd33571ed1d5497878231adafa8672e75ddd686b90e9a | namespace _05_SlicingFile
{
using System;
using System.Collections.Generic;
using System.IO;
class StartUp
{
static void Main()
{
var sourceFile = @"D:\SoftUni\05-Csharp Advanced\08-EXERCISE STREAMS\Resources\sliceMe.mp4";
var destinationDirectory = @"D:\Sof... | C# | 04-Csharp Advanced/08-EXERCISE STREAMS/08-StreamsExercises/05-SlicingFile/StartUp.cs | MrPIvanov/SoftUni | mit | 2,786 | 89 | codeparrot/github-code |
3ab0315df3710c3771b46f478a3f51f23ffcb94b3066616bccf517dfc9728d12 | #pragma once
#include "SYCL/detail/common.h"
namespace cl {
namespace sycl {
namespace detail {
using counter_t = unsigned int;
template <class T, counter_t start = 0>
class counter {
private:
static counter_t internal_count;
counter_t counter_id;
public:
counter() : counter_id(internal_count++) {}
coun... | C | sycl-gtx/include/SYCL/detail/counter.h | ProGTX/sycl-gtx | mit | 913 | 46 | codeparrot/github-code |
b8948e249a183e638405949355b8a6baaf677ebb834769c5f0395e422b83842e | define(['omega/entity', 'omega/core'], function (e, o) {
'use strict';
var triggerKey = function (action, e) {
o.trigger(action, {
keyCode: e.keyCode,
shiftKey: e.shiftKey,
ctrlKey: e.ctrlKey,
altKey: e.altKey
});
};
window.onkeydown =... | JavaScript | omega/behaviour/keyboard.js | alecsammon/OmegaJS | mit | 897 | 44 | codeparrot/github-code |
1b5f06a86763e070b2aef822b8bab71654198f9418e915ee15e51d9c5c5b35dc | package zeonClient.mods;
import java.util.Iterator;
import org.lwjgl.input.Keyboard;
import net.minecraft.client.entity.EntityOtherPlayerMP;
import net.minecraft.client.entity.EntityPlayerSP;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.playe... | Java | src/minecraft/zeonClient/mods/KillAura.java | A-D-I-T-Y-A/Zeon-Client | mit | 2,021 | 66 | codeparrot/github-code |
f6ede0b42333724d2c54c01223080d05ee1b7e6e1eddc7ce00ededccb2cfd6ac | package com.github.lunatrius.schematica.client.gui;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiSlot;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.client.resources.I18n;
import net.minecraft.item.ItemStack;
class GuiSchematicMaterialsSlot extends GuiSlot {
p... | Java | src/main/java/com/github/lunatrius/schematica/client/gui/GuiSchematicMaterialsSlot.java | CannibalVox/Schematica | mit | 2,204 | 66 | codeparrot/github-code |
d13ff47ebc02c52f67a95e84d92448e9c56662e737d3b1dcadb08dedefda3f43 | package li.cryx.minecraft.death;
import java.util.logging.Logger;
import li.cryx.minecraft.death.i18n.ITranslator;
import li.cryx.minecraft.death.persist.AbstractPersistManager;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.entity.Player;
public interface ISpiritHealer {
void addAltarL... | Java | src/main/java/li/cryx/minecraft/death/ISpiritHealer.java | cryxli/SpiritHealer | mit | 609 | 33 | codeparrot/github-code |
0e2bc9c99a5ef0aefcd38fec4e8c53dcdb5b15b7bc7c82148816a4a71b9222ab | $(window).on('load', function() {//main
const dom = {//define inputs
tswitch: $("#wave-switch input"),
aSlider: $("input#angle"),//angle slider
nSlider: $("input#refractive-index-ratio"),
};
let layout = {//define layout of pot
showlegend: false,
... | JavaScript | visuals_EM/Waves and Dielectrics/scripts/2D_Dielectric_Dielectric.js | cydcowley/Imperial-Visualizations | mit | 10,282 | 297 | codeparrot/github-code |
86dba9f930389fb64a6a0378318134c2a011573fac7c45b167d78558af664ea3 | // EX.1 - READ A TEXT FILE CHAR BY CHAR
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
FILE *bin; //declare a file pointer variable
FILE *numfile;
char s[20] = "1234";
int ch;
int i;
char line[50];
numfile = fopen("numbers.txt","r");
bin = fopen("numbers.... | C | C Programming/PersisTest.c | RobertEviston/CollegeWork | mit | 747 | 36 | codeparrot/github-code |
b49b90b820877bf11491f4ff04fa9f4848bd90a44faefed08eaff2865c6a4102 | /*****************************************************************
* syscall.c
* adapted from MIT xv6 by Zhiyi Huang, hzy@cs.otago.ac.nz
* University of Otago
*
********************************************************************/
#include "types.h"
#include "defs.h"
#include "param.h"
#include "mem... | C | source/syscall.c | fosler/xv6-rpi-port | mit | 3,791 | 153 | codeparrot/github-code |
55da0f4809b30fca09f91eaf582f6c76bc9d8f4911fd5ffbf8468a88d3cea766 | <?php
namespace App\Http\Controllers;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
class AdminLoginController extends Controller
{
/*
|--------------------------------------------------------------------------
| Login Controller
... | PHP | src/app/Http/Controllers/AdminLoginController.php | mobyan/thc-platform | mit | 1,544 | 66 | codeparrot/github-code |
02ff7c416db3163b75e9bd683379934becb01da338f306090723e9d57efbc74d | package pixlepix.auracascade.data;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
/**
* Created by localmacaccount on 5/31/15.
*/
public class Quest {
//TODO QUEST
public static int nextId;
public final ItemStack target;
public final ItemStack result;
public f... | Java | src/main/java/pixlepix/auracascade/data/Quest.java | pixlepix/Aura-Cascade | mit | 1,082 | 38 | codeparrot/github-code |
22dab79651fa79783945795c45bad4e043946a8e6555a4ccbf54782d55e9d267 | <?php
/*
* This file is part of the Itkg\Core package.
*
* (c) Interakting - Business & Decision
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Itkg\Core\Cache\Adapter;
use Itkg\Core\Cache\AdapterInterface;
use Itkg\C... | PHP | src/Itkg/Core/Cache/Adapter/Persistent.php | itkg/core | mit | 2,140 | 112 | codeparrot/github-code |
a0669975821863c182e056233dfecd970474786c4c1b3add839b6902621b654c | // Copyright (c) 2011-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "splashscreen.h"
#include "clientversion.h"
#include "util.h"
#include <QPainter>
#undef loop /* ugh, remove this wh... | C++ | src/qt/splashscreen.cpp | paulmadore/woodcoin | mit | 2,296 | 60 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.