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 |
|---|---|---|---|---|---|---|---|---|
fcff99effbd0dcdd228a56b25bfe11f7da1a8820ffb35be7c491abb2f822f1f3 | package co.legaspi.httptools.test;
import co.legaspi.httptools.CustomHttpResponse;
import co.legaspi.httptools.CustomHttpResponseImpl;
import org.apache.http.HttpResponse;
import org.apache.http.HttpStatus;
import org.apache.http.HttpVersion;
import org.apache.http.StatusLine;
import org.apache.http.message.BasicHttpR... | Java | src/test/java/co/legaspi/httptools/test/CustomResponseImplTest.java | v-dev/custom-httpclient-github | mit | 1,670 | 45 | codeparrot/github-code |
3a52c6bf1973083628bba4bc20bd981b56013a861269592b3f0cdd292be64ae5 | <!DOCTYPE html>
<html>
<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.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mo... | HTML | financialAPP/molds.html | jinrong-team/jinrong | mit | 5,040 | 135 | codeparrot/github-code |
ecefdd2fa8232bacad9f737983a57c73d7ae4221db04d931d80d59165344b02a | var Person = {
init: function (firstName, lastName, age) {
this.firstName = firstName;
this.lastName = lastName;
this.age = age;
},
introduce: function () {
var introducement = "First name: " + this.firstName + "<br />";
introducement += "Last name: " + this.lastName ... | JavaScript | JavaScript Applications Projects/Homework-AdvancedOOP/scripts/schools-prototypal-oop.js | vladislav-karamfilov/TelerikAcademy | mit | 2,868 | 93 | codeparrot/github-code |
d4091efdd80690a5ce98301b0b74048d9e7dfe76497e437020bb18e98ed06dce | /*
* oxAuth is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text.
*
* Copyright (c) 2014, Gluu
*/
package org.xdi.oxauth.ws.rs;
import org.testng.annotations.Parameters;
import org.testng.annotations.Test;
import org.xdi.oxauth.BaseTest;
import org.xdi.oxauth.client.Regi... | Java | Client/src/test/java/org/xdi/oxauth/ws/rs/ClientWhiteListBlackListRedirectUris.java | madumlao/oxAuth | mit | 5,477 | 123 | codeparrot/github-code |
d97a893600c4c9cf3d47d4721a164d5ca675d0ed49e4632533be5a56411abbda | package com.lanceolata.leetcode;
public class Question_0138_Copy_List_with_Random_Pointer {
// Definition for a Node.
public class Node {
public int val;
public Node next;
public Node random;
public Node() {}
public Node(int _val,Node _next,Node _random) {
... | Java | java/src/main/java/com/lanceolata/leetcode/Question_0138_Copy_List_with_Random_Pointer.java | Lanceolata/code-problems | mit | 1,172 | 49 | codeparrot/github-code |
5c018ab24dcc0f1b430912c4c084b0d845f6f23ea33cd513387606b176c0c6ff | #
# Copyright (c), 2016-2020, SISSA (International School for Advanced Studies).
# All rights reserved.
# This file is distributed under the terms of the MIT License.
# See the file 'LICENSE' in the root directory of the present
# distribution, or http://opensource.org/licenses/MIT.
#
# @author Davide Brunato <brunato@... | Python | xmlschema/namespaces.py | sissaschool/xmlschema | mit | 10,509 | 300 | codeparrot/github-code |
e195aec0b717715e4a93d8d60a71e82408e265c20a3e504f0049298ebb413c59 | from hubcheck.pageobjects.basepagewidget import BasePageWidget
from hubcheck.pageobjects.basepageelement import Button
from hubcheck.pageobjects.basepageelement import Checkbox
from hubcheck.pageobjects.basepageelement import Text
from hubcheck.pageobjects.basepageelement import Link
class AdminLogin1(BasePageWidget):... | Python | hubcheck/pageobjects/widgets/admin_login.py | codedsk/hubcheck | mit | 1,776 | 53 | codeparrot/github-code |
936531bdb2259253f7d935a111ed55f00c133e323d9af3aaaab67d804c22f60a | <html>
<head>
<title>XML Connector</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" type="text/javascript"></script>
<script src="../js/tableauwdc-1.2.0.js" type="text/javascript"></script>
<script type="text/javascript">
(function() {
var myConnector = tableau.makeConnector();... | HTML | Examples/xmlConnector.html | petchadj/tableau-wdc-react | mit | 8,639 | 286 | codeparrot/github-code |
75ac5353db6d2c30a2fd162d86330e95c718350b1f4141c7f3152818ae258e21 | require "predicated/predicate"
module Predicated
module ContainerToXml
private
def to_xml_with_tag_name(indent, tag_name)
inner = %{\n#{left.to_xml(indent + " ")}\n#{right.to_xml(indent + " ")}}
"#{indent}<#{tag_name}>#{inner}\n#{indent}</#{tag_name}>"
end
end
class And
include ... | Ruby | lib/predicated/to/xml.rb | sconover/predicated | mit | 1,683 | 67 | codeparrot/github-code |
fe06f99d7dd518e5e3a88750c0dca659ea3def786b51fdfd7a5517b48b6f8ae2 | const debug = require("debug")("jobs-bot:warn");
const config = require("config");
const bot = require("../bot");
const { isChatAdmin, isKeyword, isReply } = require("../validators");
const keywords = new Set(["формат"]);
const reasonToWarn = {
тег: "нужен хэштэг #вакансия",
адрес: "адрес или хотя бы город",
фо... | JavaScript | commands/warn.js | telegram-ru/jobs-bot | mit | 2,005 | 72 | codeparrot/github-code |
4c47fd62b49abc3dd4701df683c54adcdf10ee785f61877acd823510992d9a6b | #include <QGLWidget>
#include "Mesh.h"
#include "Matrix44.h"
#include "Common.h"
Mesh::Mesh() : triangleColouring(MESH_COLOUR_SAME), geomType(MESH_GEOM_TRIANGLES),
surfaceTexture(NULL), useSurfaceNormals(false)
{
}
Mesh::~Mesh()
{
}
const VertexList& Mesh::vertices() const
{
return verts;
}
void Mesh::setVertices... | C++ | Mesh.cpp | DonaldWhyte/computer-graphics-experiments | mit | 6,433 | 254 | codeparrot/github-code |
04074606edc76cb20ffae5edda29f9fd2259cc545a8dfbb062c4f444ffbd282b | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { injectIntl } from 'react-intl';
import { Icon } from 'antd';
import './Follow.less';
export class FollowPure extends React.Component {
static propTypes = {
intl: PropTypes.shape().isRequired,
isFollow... | JavaScript | src/client/components/Button/Follow.js | busyorg/busy | mit | 2,347 | 78 | codeparrot/github-code |
c80144acef23f8a26316236f3beb9216fe8990f7fa2ff5424c9447184cf8aae0 | /*!
* word-wrap <https://github.com/jonschlinkert/word-wrap>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/
module.exports = function(str, options) {
options = options || {};
if (str == null) {
return str;
}
var width = options.width || 50;
var indent = (typeof op... | JavaScript | index.js | jonschlinkert/word-wrap | mit | 1,068 | 47 | codeparrot/github-code |
0938e4b5766f5925f15225b05d99b2104e8757e765f704fc31a893f8a5ea3163 | namespace java.util
{
[global::MonoJavaBridge.JavaClass(typeof(global::java.util.AbstractMap_))]
public abstract partial class AbstractMap : java.lang.Object, Map
{
internal new static global::MonoJavaBridge.JniGlobalHandle staticClass;
static AbstractMap()
{
InitJNI();
}
protected AbstractMap(global::M... | C# | jni/MonoJavaBridge/android/generated/java/util/AbstractMap.cs | koush/androidmono | mit | 14,354 | 210 | codeparrot/github-code |
e4263817c9c78125d6e7bb6b2f2e3e10d998ab972e35843c1c38e1143c21dc66 | import { expect } from 'chai'
import { before, describe, test, after } from 'mocha'
import { initClient, createTestEnvironment, createTestSpace, getTestUser } from '../helpers'
describe('Task Api', () => {
let space
let environment
let entry
let assignee
const taskBody = 'JS SDK Task Integration Test'
bef... | JavaScript | test/integration/task-integration.js | contentful/contentful-management.js | mit | 1,777 | 65 | codeparrot/github-code |
77a52cbae606a54e0be5b33f29168b281e09ab48b221e1bf1f0202501568071d | var map;
var lat=[];
var lng = [];
var locations;
var position;
var icon;
var json_data=[];
// Create a new blank array for all the listing markers.
var markers = [];
function displayMaps(locations,icon){
for (var i = 0; i < locations.length; i++) {
// Get the position from the location array.
po... | JavaScript | Public/maps.js | addy1110/Tweet-Map | mit | 3,877 | 110 | codeparrot/github-code |
e22e153f022776d84c8fc847cf46994393af33aab410ef462533ab02d80c80cd | #include "CustomPrinter.h"
#include <clang/AST/DeclCXX.h>
namespace CustomPrinter
{
void printMethod(const clang::CXXMethodDecl *declaration)
{
auto methodName = declaration->getAsFunction()->getNameInfo().getAsString();
auto className = declaration->getParent()->getNameAsString();
auto returnType = decl... | C++ | src/CustomPrinter.cpp | hebaishi/qt4-qt5-convert | mit | 1,104 | 35 | codeparrot/github-code |
043243e58bb48150cf10fa5396ff2c5a2527d7dba428934748c664cf0f0db703 | <?php
namespace PlaygroundGame\Service;
use Laminas\Stdlib\ErrorHandler;
class Memory extends Game
{
protected $memoryMapper;
protected $memoryCardMapper;
protected $memoryScoreMapper;
public function getCardPath($card)
{
$path = $this->getOptions()->getMediaPath().DIRECTORY_SEPARATOR;
... | PHP | src/Service/Memory.php | gregorybesson/PlaygroundGame | mit | 6,798 | 218 | codeparrot/github-code |
21a752065e5692b304953fb4eadd977fe924bdd05f6f166bb1007ed81142c345 | 'use strict';
var $routeProviderReference;
var myapp = angular.module('myapp', ['ngRoute']);
myapp.config(['$routeProvider', function($routeProvider) {
$routeProviderReference = $routeProvider;
}]);
myapp.run(['$rootScope', '$http', '$route', function($rootScope, $http, $route) {
$http.get('http://localhost... | JavaScript | app.js | vlangular/dynamicRouting | mit | 1,720 | 61 | codeparrot/github-code |
4b390678154ec89434a7fbde4388265b53cc2024626de8bbdac9d3bfe72f58aa | package connectionManager;
import static chat.manager.EndpointMap.endpointMap;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.List;
import serialisation.BinaryEncoder;
import serialisation.ObjectEncoder;
import utils.BinaryUtils;
import cha... | Java | src/connectionManager/ConnectionManager.java | Daniel-Abrecht/DPA-Chat | mit | 5,453 | 194 | codeparrot/github-code |
5f47840b89ec454201169b6a98530c02d2b0d06ddc88d2822e8ab86285e85764 | package net.mostlyoriginal.game.screen;
import com.artemis.World;
import com.artemis.WorldConfigurationBuilder;
import com.badlogic.gdx.graphics.Color;
import net.mostlyoriginal.api.screen.core.WorldScreen;
import net.mostlyoriginal.api.system.camera.CameraSystem;
import net.mostlyoriginal.api.system.graphics.RenderBa... | Java | core/src/net/mostlyoriginal/game/screen/GameScreen.java | piotr-j/ld34 | mit | 1,760 | 53 | codeparrot/github-code |
207f0648a5000e4c65655259d8188954189349ec8547032fc3edc0e350ddac0a | import os
from conans.client.file_copier import FileCopier, report_copied_files
from conans.model.manifest import FileTreeManifest
from conans.paths import CONANINFO
from conans.util.files import mkdir, save
def export_pkg(conanfile, package_id, src_package_folder, hook_manager, conanfile_path, ref):
# NOTE: Th... | Python | conans/client/packager.py | conan-io/conan | mit | 1,979 | 54 | codeparrot/github-code |
531d4241f5e1c0b51f5e2fa84e43fbbe102535d848585174a40350f28ae35400 | /*----------------------------------------------------------------
Copyright (C) 2015 Senparc
文件名:MessageContainer.cs
文件功能描述:微信消息容器
创建标识:Senparc - 20150211
修改标识:Senparc - 20150303
修改描述:整理接口
----------------------------------------------------------------*/
using System.Coll... | C# | Source/Foundation/Wechat/Senparc.Weixin/Context/MessageContainer.cs | timxing1987/git-tutorial | mit | 1,576 | 67 | codeparrot/github-code |
c8edc190c807375af4fa8956299c2aeaabe78922741e408d42bdfd6cda52eb3c | using TweetLib.Browser.Contexts;
using TweetLib.Browser.Interfaces;
using TweetLib.Core.Features.TweetDeck;
using TweetLib.Core.Features.Twitter;
using Xilium.CefGlue;
namespace TweetDuck.Browser.Base {
sealed class ContextMenuBrowser : ContextMenuBase {
private readonly TweetDeckExtraContext extraContext;
publi... | C# | linux/TweetDuck/Browser/Base/ContextMenuBrowser.cs | chylex/TweetDuck | mit | 1,084 | 33 | codeparrot/github-code |
ff8b1840b0aeab9b193bf7ff2621dd62a09e046ee7e7b804cabea4ee3309069c | using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
namespace _32_PandigitalNumbers
{
class Program
{
static bool IsPandigital(int multiplicand, int multiplier, int product)
{
const int N = 9; // digits count
int digitCount = 0;
... | C# | 32_PandigitalNumbers/Program.cs | steliyan/ProjectEuler | mit | 2,713 | 109 | codeparrot/github-code |
991bf061026785284f5c7f4fcead6a2e3224707c74c976391e7a98cb0749938c | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>libhyps: 22 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="sty... | HTML | clean/Linux-x86_64-4.05.0-2.0.1/released/8.10.0/libhyps/1.0.2.html | coq-bench/coq-bench.github.io | mit | 8,507 | 186 | codeparrot/github-code |
05ce1f8576c1448e8a787c524471214d2763d996495f793067268d97aacc6434 | import Promise from 'bluebird';
import fs from 'fs';
import log from 'color-logger';
import Npm from './Npm';
import Event from './Event';
const fileSystem = Promise.promisifyAll(fs);
/**
* This class is usually the main part of the application.
*/
export default class PluginManager {
/**
* Create a new instan... | JavaScript | src/PluginManager.js | rawphp/plugged-in | mit | 9,887 | 443 | codeparrot/github-code |
eb6b6d9618940b8c242ed2b256c001c46a7d099feb8ae62973c48acc0f59507f | import {
NativeModules,
NativeAppEventEmitter,
Platform
} from 'react-native';
const WS = NativeModules.WS;
export default class Rest {
postMultiPartWithProgress(url, headers, postData, imageKey, imageName, imageData, progressCb, cb) {
// eslint-disable-next-line prefer-const
let obj = {
url,
... | JavaScript | src/helpers/ApiClient/rest.js | phuochau/react-native-boilerplate-production | mit | 3,489 | 144 | codeparrot/github-code |
d7ad9fb3f53648db3ff22662c5129301a7f317fb6be9f5f1b3a9f49acd1d7f43 | package org.studentcard.database.model;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.Lob;
import javax.persistence.... | Java | src/java/org/studentcard/database/model/TopUpRecord.java | wyfklfx/card_information_system | mit | 3,666 | 122 | codeparrot/github-code |
a0d4e50a060edf570805665500759dfb7eb09ee00c3a503b1c7a9cb17ce839f9 |
package org.jumlabs.jcr.oak.rpc.api.impl;
import javax.jcr.NoSuchWorkspaceException;
import javax.security.auth.login.LoginException;
import org.apache.jackrabbit.oak.api.ContentSession;
import org.apache.jackrabbit.oak.api.Tree;
import org.apache.thrift.TException;
import org.jumlabs.jcr.oak.rpc.api.JRepository;
im... | Java | jcr-oak-rpc-core/src/main/java/org/jumlabs/jcr/oak/rpc/api/impl/JRootServiceImpl.java | ottogiron/jcr-oak-rpc | mit | 1,724 | 58 | codeparrot/github-code |
256e2e3dfc0440f56db66761f7d61efea124064dd27a7d864b8cacb521cead9a | package liblinear
import "math"
// L2RLRFunc provides the structure for this function
type L2RLRFunc struct {
c []float64
z []float64
d []float64
prob *Problem
}
// NewL2RLRFunc a new instance of this struct
func NewL2RLRFunc(prob *Problem, c []float64) *L2RLRFunc {
return &L2RLRFunc{
prob: prob,
c... | GO | liblinear/L2RLRFunc.go | singularity-sg/liblinear-go | mit | 1,968 | 117 | codeparrot/github-code |
95b9dcc200201eae74cfc3e9babd9d66d3dd77c2948c1ce4aa2fc372f569ce7e | <html lang="en">
<head>
<title>SPU Built-in Functions - Using the GNU Compiler Collection (GCC)</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Using the GNU Compiler Collection (GCC)">
<meta name="generator" content="makeinfo 4.8">
<link title="Top" rel="start" href="inde... | HTML | toolchain/osx/gcc-arm-none-eabi-6-2017-q1-update/share/doc/gcc-arm-none-eabi/html/gcc/SPU-Built_002din-Functions.html | ChangsoonKim/STM32F7DiscTutor | mit | 4,373 | 101 | codeparrot/github-code |
143ae47c225c006f60c07b7a72a7d18ef63ae58d719bf37552767d3def39bbd9 | 'use strict';
const unirest = require('unirest');
const validate = require('validate.js');
const _ = require('lodash');
const Common = require('./common');
const DEFAULT_CURRENCY = 'KES';
function Airtime(options) {
this.options = options;
}
Airtime.prototype.send = function (params) {
const _self ... | JavaScript | lib/airtime.js | aksalj/africastalking-node.js | mit | 3,251 | 125 | codeparrot/github-code |
f7db8c2b1ed433e72fbbef342a4c9390c348905cd60014219c0c21334eb30afb | package tamaized.voidcraft.common.blocks;
import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material;
import net.minecraft.block.properties.PropertyBool;
import net.minecraft.block.state.BlockStateContainer;
import net.minecraft.block.state.IBlockState;
import net.minecraft.creativetab.Creative... | Java | src/main/java/tamaized/voidcraft/common/blocks/OreVoidcrystal.java | Tamaized/VoidCraft | mit | 3,552 | 117 | codeparrot/github-code |
1ba2c9fb2a6475246d94b86c669e1dd4f7387334983766b5b33c4c1415140917 | <?php
namespace ues\peraBundle\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configurati... | PHP | src/ues/peraBundle/Controller/ReferenciaFamiliarController.php | BillyHB/pera | mit | 7,164 | 248 | codeparrot/github-code |
7322a152d37da26e7ed8a6427141df9c07a247821c77763efcb70b97e1b8d4ca |
from pycket import values
from pycket.error import SchemeException
from pycket.hash.base import (
W_MutableHashTable,
W_ImmutableHashTable,
w_missing,
get_dict_item)
from pycket.hash.persistent_hash_map import make_persistent_hash_type
from rpy... | Python | pycket/hash/simple.py | magnusmorton/pycket | mit | 6,811 | 218 | codeparrot/github-code |
ab025ccc6c8a84f9581fbc1b054a6912c707fdc475979f05e7105752d0c89e62 | #!/usr/bin/env python3
# -*- coding: UTF-8 -*-
__author__ = 'RemiZOffAlex'
__copyright__ = '(c) RemiZOffAlex'
__license__ = 'MIT'
__email__ = 'remizoffalex@mail.ru'
__url__ = 'http://remizoffalex.ru'
from flask import session, request
from .. import app, models
def get_user():
"""
Получить текущего пользоват... | Python | Python/crm/crmapp/lib/info.py | RemiZOffAlex/specialistoff.net | mit | 832 | 37 | codeparrot/github-code |
67e1ce9d61ae21a27d61607429fcad120ecad861b0b93a2fd87371432826a989 | <!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<!--[if gt IE 8]>
<meta http-equiv="X-UA-Compatible" content="IE=edge... | HTML | QuizApp/aries/tables.html | ankeshdave/QuizAppUI | mit | 40,023 | 709 | codeparrot/github-code |
70c3aa56b1af10b22d275f30278b47211c6af8f0e6a5a622e5c4de12088d7d5a | <HTML><HEAD>
<TITLE>Review for Let's Talk About Sex (1998)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0165857">Let's Talk About Sex (1998)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/Reviews... | HTML | data science/machine_learning_for_the_web/chapter_4/movie/14110.html | xianjunzhengbackup/code | mit | 3,282 | 51 | codeparrot/github-code |
2db8dbb30ea21aadcc620af6d34ab0db79950516172505fd56c203f46b6377b7 | //===--------------------------------------------------------------------------------*- C++ -*-===//
// _____ _
// / ____| (_)
// | (___ ___ __ _ _ _ ___ _ __ _
// \___ \ / _ \... | C++ | sequoia-engine/src/sequoia-engine/Game/Mesh.cpp | thfabian/sequoia | mit | 2,027 | 58 | codeparrot/github-code |
fba56654127ebc96d812665d032e10f4d8c4ccb4dbbede816ccdfca79443a371 | <?php
class admin extends CI_Controller {
public function __construct()
{
parent::__construct();
$this->load->model('blog_model');
}
function index()
{
$this->load->helper('form');
$data['title'] = "Klarice's Blog Admin";
$data['posts'] = $this->blog_model->getPosts(... | PHP | application/controllers/Admin.php | Klarice/MVP | mit | 1,868 | 62 | codeparrot/github-code |
ef95a7262f45dba95476b0795fe0b9f4170ddffe6fd733feaca13691d1416ae4 | using MemLog.Internal;
using Microsoft.Extensions.Logging;
using System;
using System.Text;
namespace MemLog
{
public class MemLog : ILogger
{
private static readonly string _loglevelPadding = ": ";
private readonly IMemLogService _memLogService;
private Func<string, LogLevel, bool> _... | C# | src/MemLog/MemLog.cs | Chrille79/MemLog | mit | 4,492 | 157 | codeparrot/github-code |
6deeee67a2eabc0ec8eb8ae0ad8d8a4c9f13c687c9c4c19164ac0a6be16b02de | // Load the required packages
var Magma = require('../models/magma');
// Create endpoint /api/magmas for POSTS
exports.postMagmas = function(req, res){
// Create a new instance of the Magma model
var magma = new Magma();
// Set the magma properties that came from the POST data
magma.title = req.body.title;
magm... | JavaScript | controllers/magma.js | IDHackMagma/Backend | mit | 3,006 | 125 | codeparrot/github-code |
65db422bb33ad70a1fb433a154b8aec9c70c4e9b73c2f4bcc5135dadce2ce6d6 | #ifndef MODTOOLLIB_MODTOOL_H
#define MODTOOLLIB_MODTOOL_H
#include <stdio.h>
#define MAX_PATH_LEN 32768
#include <modtools_compat.hpp>
//#define MODTOOLS_DEBUG 1
// Returns true if the argument was found (in which case it is extracted).
// Only supports arguments (short of long) with no arguments.
bool extract_arg(... | C | src/lib/modtoollib/modtool.h | kleientertainment/ds_mod_tools | mit | 1,361 | 43 | codeparrot/github-code |
8c489129563294ecbddd1868ba66d715c704c0e4264f9739d523375e1f17ff20 | <?php
namespace Kraken\Managers\Services;
use Doctrine\Common\Collections\ArrayCollection;
use Inflexible\Inflexible;
use Kraken\UserBundle\Entity\DataArticle;
use Kraken\UserBundle\Entity\DataInteger;
use Kraken\UserBundle\Entity\DataList;
use Kraken\UserBundle\Entity\DataString;
use Kraken\Factories\DataFactory;
us... | PHP | src/Kraken/Managers/Services/WebCrawlerService.php | sexyboys/Kraken | mit | 11,942 | 314 | codeparrot/github-code |
9f1b65210e897717b0bf02dadeaa2aeeb5448c5a5a7b79345e5d582cb8e4b80b | #!/usr/bin/env python
# Copyright (c) 2014 Eugene Zhuk.
# Use of this source code is governed by the MIT license that can be found
# in the LICENSE file.
"""Checks EC2 Instance status.
Displays the current status of one or more EC2 Instances.
Usage:
./check_instance_status.py <options>
"""
import boto.ec2
impor... | Python | ec2/check_instance_status.py | ezhuk/aws-tools | mit | 1,240 | 51 | codeparrot/github-code |
8088464bd44fe33492aed4f5d2ae73bd50c2c342f9597fec62d5d51a385692d4 | package cmd
import (
"os"
"path/filepath"
log "github.com/Sirupsen/logrus"
)
func build(pDir string) error {
c, err := fetchConf(pDir)
if err != nil {
log.WithFields(log.Fields{
"project": pDir,
"error": err,
}).Warn(log_sub_conf_err)
return err
}
for k, v := range map[string]string{
"html": ... | GO | cmd/sub_build.go | draoncc/gopen | mit | 1,327 | 74 | codeparrot/github-code |
b80c7980b42eebf971b06d6fed515d2a746e77fc5aefefa0f883f7a3c864a6f8 | package com.mkl.eu.service.service.service;
import com.mkl.eu.client.common.exception.FunctionalException;
import com.mkl.eu.client.common.exception.IConstantsCommonException;
import com.mkl.eu.client.common.exception.TechnicalException;
import com.mkl.eu.client.common.vo.GameInfo;
import com.mkl.eu.client.common.vo.R... | Java | service/eu-service-service/src/test/java/com/mkl/eu/service/service/service/AbstractGameServiceTest.java | FogiaFr/eu | mit | 18,155 | 472 | codeparrot/github-code |
c7e362a1734fd6d09135791ade755c14bdc54ccd0a672e5eb632d9c5a25a9e36 | package bridge
import (
"time"
)
type Bridger interface {
Invite(channelID, username string) error
Join(channelName string) (string, string, error)
List() (map[string]string, error)
Part(channel string) error
SetTopic(channelID, text string) error
Topic(channelID string) string
Kick(channelID, username string... | GO | bridge/bridge.go | 42wim/matterircd | mit | 4,161 | 197 | codeparrot/github-code |
28dd99e0d2faf51494df661a940b4122f2a87e6fa419b54d4391a5b2060667cc | //
// Input_OnlyText_Cell.h
// Coding_iOS
//
// Created by 王 原闯 on 14-8-4.
// Copyright (c) 2014年 Coding. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "UITapImageView.h"
@interface Input_OnlyText_Cell : UITableViewCell
@property (assign, nonatomic) BOOL isCaptcha, isForLoginVC;
@property (strong, nonat... | C | Coding_iOS/Views/Cell/Input_OnlyText_Cell.h | 110440/test | mit | 974 | 32 | codeparrot/github-code |
ca3a57921bb7dde7366f6721715b730bddc8cf7cd54b1c078d56591fa28bb04f | <!doctype html>
<!--
Welcome to the light side of the source, young padawan.
One step closer to learn something interesting you are...
____
_.' : `._
.-.'`. ; .'`.-.
... | HTML | index.html | jristagno19/controlstructures | mit | 18,805 | 433 | codeparrot/github-code |
af67dd7c2f2a404541693f23089213c5f3c1e84243067fb443d4d96d2f80658b | #include <string>
#include <vector>
#include <iostream>
#include <map>
#include <unordered_map>
#include <unordered_set>
#include <set>
#include <queue>
#include <deque>
#include <stack>
#include <memory>
#include <sstream>
#include <algorithm>
#include <bitset>
#include <numeric>
#include <initializer_list>
#include <... | C++ | leetcode/easy_same_tree.cpp | wonghoifung/tips | mit | 1,105 | 81 | codeparrot/github-code |
60b38908ec4a1b16493d58d035c6e9033bd58236cba4355749cf5b54ac7a5342 | 'use strict';
let Promise = require('bluebird')
let fs = require('fs')
let co = require('co')
let path = require('path')
fs = Promise.promisifyAll(fs)
const IS_DIR = 'DIR';
const IS_FILE = 'FILE';
/**
* @description Do the traversal of the source directory structure
* @param {string} targetPath
* @param {object... | JavaScript | index.js | PupateYf/dir-ls | mit | 3,122 | 115 | codeparrot/github-code |
2deb329b696fc70b79034e1ac209110bebb64cdf447914581d03dc0599fdcd8c | package me.michaelkrauty.Kettle.command.kettle;
import me.michaelkrauty.Kettle.Kettle;
import me.michaelkrauty.Kettle.util.AbstractCommand;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.help.HelpTopic;
import java.util.ArrayList;
/**
* Cre... | Java | src/main/java/me/michaelkrauty/Kettle/command/kettle/HelpCommand.java | michaelkrauty/Kettle | mit | 1,610 | 55 | codeparrot/github-code |
6f8519d90d4d0b3cb6b05c39cd76df91405972fe5fd58948d87d5c12bf0b5aa9 | <?php
namespace db\stats {
function points($order = 'total') {
if ($order === 'game') {
$order = 'game_points';
} elseif ($order === 'team') {
$order = 'team_points';
} elseif ($order === 'scorer') {
$order = 'scorer_points';
} elseif ($order === '... | PHP | lib/db.stats.php | bungle/betz | mit | 11,033 | 322 | codeparrot/github-code |
94bb3d94c000c8036400354bfa90e33b89cf372d45bf09458fb3feb8c902f7b1 | //
// Copyright (c) Mario Garcia, MIT License.
//
#ifndef __SHADER_MODULE_HPP
#define __SHADER_MODULE_HPP
#include "platform.hpp"
#include <vulkan/vulkan.h>
namespace pbr {
/// Shader Module generates a module for your graphics pipeline.
class ShaderModule {
public:
/// Specify the Shaderstage.
enum ShaderSta... | C++ | src/shader.hpp | CheezBoiger/pbr-study | mit | 871 | 39 | codeparrot/github-code |
9409d7d2c8e4d6de0d6f5bdc13f14f21e5a02167db2fe7bf68a1f87834ec9021 | package com.github.mrgoro.interactivedata.api.chart.definitions.operations;
import java.util.Map;
public class AbstractFieldInfo {
private String fieldName;
private Class<?> fieldClass;
private Map<String, String> options;
public String getFieldName() {
return fieldName;
}
public voi... | Java | interactive-data-core/src/main/java/com/github/mrgoro/interactivedata/api/chart/definitions/operations/AbstractFieldInfo.java | MrGoro/InteractiveData | mit | 742 | 33 | codeparrot/github-code |
c18ed57ae9d3884ea4a82bbe3a739b149f804fcf76cdaecc83166e9bab5ab430 | import React from 'react'
import PropTypes from 'prop-types'
const callbacks = []
function addScript(src: string, cb: () => any) {
if (callbacks.length === 0) {
callbacks.push(cb)
var s = document.createElement('script')
s.setAttribute('src', src)
s.onload = () => callbacks.forEach((cb) => cb())
... | TypeScript | src/tweet-embed.tsx | capaj/react-tweet-embed | mit | 3,152 | 132 | codeparrot/github-code |
5e77afb70fe08928cb18c22451277ff686775d0871bc25c4f05bf87c9206090d | // Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_RPCSERVER_H
#define BITCOIN_RPCSERVER_H
#include "amount.h"
#include "rpcp... | C | src/rpcserver.h | neoscoin/neos-core | mit | 15,490 | 285 | codeparrot/github-code |
26891066f72e8f9392e1d8490b81cb3df476dd30dd0d59cd72619ef6c754c4a1 | <!DOCTYPE html>
<html lang="en" itemscope itemtype="http://schema.org/Blog">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<meta name="author"... | HTML | _site/blog/hello-world/index.html | helmuthb/devfest-at-site | mit | 16,161 | 344 | codeparrot/github-code |
876856c88d92f668a7e92175a89fe82ae35789d2da0a9fa59147dce08ff3b174 | #include <cmath>
#include <iostream>
#include <cstdio>
#include <vector>
using namespace std;
int main() {
int t;
int n,k;
int abide_num = 0;
cin>>t;
for(auto a0 = 0; a0 < t; ++a0) {
cin>>n>>k;
vector<int> stu_arr(n, 0);
abide_num = 0;
for(auto i=0; i<n; ++i) {
cin>>stu_arr[i];
i... | C++ | angry-professor-A.cc | neutronest/hackerank | mit | 535 | 34 | codeparrot/github-code |
f214c58d42bfac0f1456ba23a2e25b38a0f70650b728c67899188e0191f6496e | package dev.mikoto2000.study.springboot.misc.singleton;
import java.util.concurrent.TimeUnit;
import com.google.common.cache.Cache;
import com.google.common.cache.CacheBuilder;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMap... | Java | java/SpringBoot/misc/singleton/src/main/java/dev/mikoto2000/study/springboot/misc/singleton/AppController.java | mikoto2000/MiscellaneousStudy | mit | 1,222 | 42 | codeparrot/github-code |
d9e1f722813f6b4b14fbc73a6c251091f3325468be78e152f971609d2cd10870 | # Not a contruction kit.
# Just handy shortcuts.
# Try Ick if you want composable building blocks:
# http://ick.rubyforge.org/inside.html
#
module Dslicious
def with_extension obj, mod
obj.extend mod
obj
end
def permutate head, body
result = []
head.inject([]) { |memo, header|
body.... | Ruby | modules/Dslicious.rb | da99/mu_mongo | mit | 1,076 | 64 | codeparrot/github-code |
7220933e001630e8ff25cc7ea003f21693fbaf70fc31e3a4d4f766d0694fa00b | <?php
/* SensioDistributionBundle:Configurator:final.html.twig */
class __TwigTemplate_81f229a509fb4acab0e9b5893b607f479592d918faf0de89369810d03b0b60a0 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 1
try {
$t... | PHP | app/cache/dev/twig/81/f2/29a509fb4acab0e9b5893b607f479592d918faf0de89369810d03b0b60a0.php | sachin-agarwal-aws/master | mit | 4,120 | 118 | codeparrot/github-code |
fb4cc35408a40c8c47b3443d05f9f4ef6788e1375a260b2b03c502c304b57cb3 | <!DOCTYPE html>
<html lang="en" dir="auto">
<head><meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="robots" content="index, follow">
<title>cli | Ritesh's Ramblings</title>
<meta name="key... | HTML | categories/cli/index.html | ritesh/ritesh.github.io | mit | 8,209 | 201 | codeparrot/github-code |
81a7586128807a8c27979fa6143a44c731537ce573a8dd6d5d4007b5a5471c79 | #include "employee.h"
#include <iostream>
using namespace std;
Employee::Employee(string name,int age,int salary){
name_ = name;
age_ = age;
salary_ = salary;
}
Employee::~Employee(){
}
void Employee::Add(Employee * employee){
cout << "Employee::Add: will not run here" << endl;
}
void Employee::ShowInformation... | C++ | structural_patterns/composite/source/employee.cc | HelenXR/design_patterns_HelenXR-Dev- | mit | 523 | 32 | codeparrot/github-code |
8b5093201b78a3d8503eb600bd59463a400bd0c42d45558ebe3b9686f9934069 | //Write a program that finds the largest area of equal neighbour elements in a rectangular matrix and prints its size.
using System;
class MatrixClass
{
static int[,] matrix;
static int bestLen = 0;
static int bestElement;
static int element;
static int len=0;
private static void FindTheArea... | C# | 02. Multidimensional Arrays - Homework/07.(opt) Largest area in matrix/07.(opt) Largest area in matrix.cs | AYankova/CSharp | mit | 1,758 | 63 | codeparrot/github-code |
b5ee697b36e626ae9fb13767660e20a22adb6bc5177a5168237fd1b00e9c1a39 | // CS559 Project 2 : Quantum Coaster
// author: priyananda( shenoy@cs.wisc.edu )
// date: oct 2007
// random trivia:
#include "windows.h"
#include "gl/gl.h"
#include "gl/glu.h"
#include "PickableObject.h"
#include "Camera.h"
list<PickableObject *> PickableObjectRegistry::objects;
void PickableObjectRegistry::add(Pick... | C++ | masters/sem1/559/P2/QuantumCoaster/src/PickableObject.cpp | priyananda/student | mit | 1,779 | 80 | codeparrot/github-code |
31e0de3012f396bf3242787af3586c8d89f343de90a004f2b5b5bff00587e0d1 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="et" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="14"/>
<source>About Bitcoin</source>
<translation type="unfinished"/>
</message>
... | TypeScript | src/qt/locale/bitcoin_et.ts | IeuanG/BHC | mit | 98,081 | 2,499 | codeparrot/github-code |
b199f9bf1af000744bb676638ea6460628bcce26148bc36fab6649fadc8b563b | import * as express from 'express';
import * as Response from './../response';
import * as Business from './../business';
export namespace LoginRoutes {
export function configureRoutes() {
let loginRouter: express.Router = express.Router();
loginRouter.post('/', (request: express.Request, response... | TypeScript | api/routes/routes.login.ts | felipet-vsouza/gouda-fileserver | mit | 1,475 | 41 | codeparrot/github-code |
91a678636f06c61c0a1b9eaf5519060c1520c3c66b155e706eac08d27b0fda1d | var assert = require("assert");
var sourceMap = require("source-map");
var printComments = require("./comments").printComments;
var linesModule = require("./lines");
var fromString = linesModule.fromString;
var concat = linesModule.concat;
var normalizeOptions = require("./options").normalize;
var getReprinter = requir... | JavaScript | lib/printer.js | stefanpenner/recast | mit | 35,625 | 1,290 | codeparrot/github-code |
ebc49f461205b9ea5eb8fb438b5e40b527f812eac064302dce4b06e44c428b64 | // This file is part of YamlDotNet - A .NET library for YAML.
// Copyright (c) Antoine Aubry and contributors
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, ... | C# | YamlDotNet.Test/Serialization/ObjectFactoryTests.cs | aaubry/YamlDotNet | mit | 2,485 | 63 | codeparrot/github-code |
0349f5e742b2bae7cfffcdacf360d422071e64bf5818bee839828a975a24dc56 | import React from 'react';
import {Link} from 'react-router';
import NewsComments from './NewsComments';
export default class News extends React.Component {
static defaultProps = {
comments: []
}
render() {
let {single, id, title, description, comments, author, date, rating, image, rate, unrate} = this.props... | JavaScript | src/components/News.js | vladpolonskiy/news-feed-react-redux | mit | 1,408 | 39 | codeparrot/github-code |
4bbb51dd39f61ef5e9c784ab4215ebcb831bae3ad9a338c46b9437d6f237b7ed | 'use strict';
const EXPRESS = require('express');
const bodyParser = require('body-parser');
const PG = require('pg');
const FS = require('fs');
const PORT = process.env.PORT || 3000;
const conString = `${process.env.DATABASE_URL}`;
const client = new PG.Client(conString);
const app = EXPRESS();
app.use(bodyParser.js... | JavaScript | server.js | nathancmoore/meeting-finder | mit | 3,217 | 82 | codeparrot/github-code |
e55535e146dd92e8d3c8f106fd163f28da25f5e984fff5186428290947f19de6 | import interfaces_ = require("../data/interfaces");
import SerializedDataSource = interfaces_.SerializedDataSource;
import markets_ = require("../data/markets");
import SerializedMarket = markets_.SerializedMarket;
import capsule_ = require("../utils/capsule");
if (0) capsule_;
import Capsule = capsule_.Capsule;
import... | TypeScript | hashwick-webapp/ui/layoutDefs.ts | johnsoft/hashwick | mit | 861 | 33 | codeparrot/github-code |
cc9a7a204bba4c47684e59c9f471e1a46eb0526df12af20e14d9712929082f46 |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-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.
#if defined(HAVE_CONFIG_H)
#include "config/bitcoin-config.h"
#endif
#include "... | C++ | src/init.cpp | psolstice/zcoin | mit | 80,432 | 1,679 | codeparrot/github-code |
84017eb90058d1138319291bcf121f2f811fdcfa66072e2991a091cdaba36451 | <?php
namespace Stc\ScraperBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* ScrapeStatus
*/
class ScrapeStatus
{
/**
* @var integer
*/
private $id;
/**
* @var string
*/
private $content_type;
/**
* @var integer
*/
private $http_code;
/**
* @var... | PHP | src/Stc/ScraperBundle/Entity/ScrapeStatus.php | snipertomcat/ReviewHarvester | mit | 14,359 | 854 | codeparrot/github-code |
6858d314447604fa082046e1d666557ecd41fc5216bf2e86ce85a1e9c99be37c | package io.designpattern.demos.builderpattern;
/**
* 房子尸体
* @author Administrator
* @version 1.0
* @created 24-����-2017 10:05:11
*/
public class House {
private String door;
private String wall;
private String window;
public House(){
}
/**
* @return the door
*/
public String... | Java | src/main/java/io/designpattern/demos/builderpattern/House.java | Frank17/designpattern | mit | 1,064 | 71 | codeparrot/github-code |
3d59fb8be6e8ea9c4c2324fa14392d39e39cdd78e1664232f74a45cf66f20d22 | <!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>ShareAggregationRequest | picturepark-sdk-v1-fetch API</title>
<meta name="description" content="Documentation for picturepark-sdk-v1-fetch API">
<meta name="viewport" content="wi... | HTML | docs/picturepark-sdk-v1-fetch/api/interfaces/_picturepark_.shareaggregationrequest.html | Picturepark/Picturepark.SDK.TypeScript | mit | 12,843 | 259 | codeparrot/github-code |
6c39c634ddc6637cfb2bdcf06d298840bfee8b3e6ebabb29730cf514232bae14 | <!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">
<head>
<!-- NAME: SOPHISTICATED -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-sca... | HTML | remise/mailchimp/nouveautes.html | cabouffard/dortalomu-shop | mit | 33,273 | 903 | codeparrot/github-code |
7a9546ebce55d69c32f4cbdc561c7355fd7cc992c84fd753d29691218ee9d695 | /*
* grunt-phantomas
* https://github.com/stefanjudis/grunt-phantomas
*
* Copyright (c) 2013 stefan judis
* Licensed under the MIT license.
*/
'use strict';
var Promise = require( 'bluebird' );
var fs = Promise.promisifyAll( require( 'node-fs' ) );
var path = Promise.promisifyAll( require( 'path' ... | JavaScript | tasks/lib/phantomas.js | stefanjudis/phantomas-ui | mit | 23,130 | 897 | codeparrot/github-code |
02cb215d0f9235244ff7bdb3f4ebefb7da0dc9efc01d7ec115edc19e1f8ed4ed | <?php
/*
* The MIT License
*
* Copyright 2017 David Schoenbauer.
*
* 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 us... | PHP | src/Orm/Events/Framework/CrossTrigger.php | dschoenbauer/orm | mit | 2,189 | 67 | codeparrot/github-code |
5ba550e52b1f4b0805bd69be8c47329b4c0726d9425ee566aaf9e20afaaf4f10 | import React from "react";
import Helmet from "react-helmet";
import { StaticQuery, graphql } from "gatsby";
import Footer from "../Footer";
import SideBar from "../SideBar";
import "purecss/build/pure.css";
import "purecss/build/grids-responsive.css";
import "./index.scss";
import "./common.scss";
export default ({ c... | JavaScript | Example/blog/src/components/Layout/index.js | EvKylin/Kylin | mit | 1,070 | 42 | codeparrot/github-code |
e4d29a045692d2280971d32ae61bedc48298e9c22e2fc43879229da42c2a2cb5 | namespace DotNetStarter
{
using Abstractions;
using System.Reflection;
/// <summary>
/// Default Assembly filter
/// </summary>
public class AssemblyFilter : IAssemblyFilter
{
/// <summary>
/// Default filters mscorelib, system, microsoft
/// </summary>
/// ... | C# | src/DotNetStarter/AssemblyFilter.cs | bmcdavid/DotNetStarter | mit | 914 | 39 | codeparrot/github-code |
55436c30968cef4d503478a5685b90ac29e85e56860e82e5baf5f85fb7f4f576 |
package negocio;
import apresentacao.FormCadastroProfessor;
import banco.DAO.BdProfessorDAO;
import banco.DAO.InterfaceDAO;
import banco.FactoryMetody.FactoryBdMateria;
import banco.FactoryMetody.FactoryMetody;
import java.util.ArrayList;
import javax.swing.JOptionPane;
import objeto.Materia;
import objeto.Professor;... | Java | src/negocio/NegocioProfessor.java | AndressaM/GH | mit | 6,715 | 188 | codeparrot/github-code |
ec3714193430720e4702658a6fbcbd0ffd2daf45417e3048efd52f14c299d662 | using System;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Identity;
namespace UtilityDelta.Backend.Identity
{
public class CorporateUserStore : IUserStore<User>, IUserPasswordStore<User>
{
//TODO: Replace this with a proper database or call to 3rd party system
... | C# | UtilityDelta.Backend/Identity/CorporateUserStore.cs | utilitydelta/spa-angular2-dotnet-auth | mit | 4,118 | 117 | codeparrot/github-code |
e306651e6de39c771b769af4c9dd1b6b4556fd9a846966eaa9a24152570e603d | /**
* @example oglplus/030_pool_tiles.cpp
* @brief Shows a multitextured bump-mapped reflective plane
*
* @oglplus_screenshot{030_pool_tiles}
*
* Copyright 2008-2013 Matus Chochlik. Distributed under the Boost
* Software License, Version 1.0. (See accompanying file
* LICENSE_1_0.txt or copy at http://www.... | C++ | ThirdParty/oglplus-develop/example/oglplus/030_pool_tiles.cpp | vif/3D-STG | mit | 15,002 | 567 | codeparrot/github-code |
f5cf35fb71390edea6b2181319b8900d545b82234d70b6b969ffb29b7a069a19 | /**
* Copyright 2012 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | JavaScript | client/web/gamepad.js | insanity54/redwell | mit | 10,912 | 308 | codeparrot/github-code |
d78389a5325509f90feba57fc461ad0c6ffe734caf46bbc3a902c2c6babc63c4 | #!/bin/bash
# See also https://github.com/mathiasbynens/dotfiles/blob/master/.osx
[ -z "${OS}" ] && . lib/common.sh
[ "${OS}" = "macos" ] || exit 0
###############################################################################
# General UI/UX #
########... | Shell | scripts/defaults.sh | scherermichael/dotfiles | mit | 8,340 | 186 | codeparrot/github-code |
eaad5321cebd0a4a8cf64cf7905bbd52272eb31b2626e489980e478692fb141a | // *****************************************************************************
//
// Copyright (c) 2013 Christian Schreckenberger / Christian Meilicke / Kai Eckert (University of Mannheim)
//
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentati... | Java | src/main/java/de/unima/ki/infolis/lohai/IflConcept.java | LetschM/tagging | mit | 5,475 | 212 | codeparrot/github-code |
447f6421f407eafc610181b1e5e6b9d36c2e90c0b128b58174a54ce440a05b68 | <?php
namespace Users\Action\Roles;
use App\Action\AppAction;
use Cake\ORM\TableRegistry;
use Users\Domain\Entity\Role;
use Users\Library\AuthorizationTrait;
use Users\Library\Form;
use DataTable\Column;
use DataTable\DataSource\ServerSide\CakePHP;
use DataTable\Table;
use Twig\Library\Helper as TwigHelper;
/**
* G... | PHP | Action/Roles/GetMethodAction.php | radphp/users-bundle | mit | 3,306 | 125 | codeparrot/github-code |
46ca86f0f299a7d7005ab7dc95178434d891d011d13b22e6e243b6bd78d4b1af | /**
@file repeat.h
@brief iterates the range of integer numbers.
@author HRYKY
@version $Id: repeat.h 368 2014-07-14 21:21:42Z hryky.private@gmail.com $
*/
#ifndef REPEAT_H_20120916195314495
#define REPEAT_H_20120916195314495
#include "hryky/integer/unsigned_of.h"
#include "hryky/with... | C | lib/core/include/hryky/repeat.h | hiroyuki-seki/hryky-codebase | mit | 11,535 | 465 | codeparrot/github-code |
94b14418b587e279be23d2821d936245a0579b3db96f0e93cd49524a1af258ee | #!c:\users\adebayo\myedge\myvenv\scripts\python.exe
#
# The Python Imaging Library
# $Id$
#
# this demo script illustrates pasting into an already displayed
# photoimage. note that the current version of Tk updates the whole
# image every time we paste, so to get decent performance, we split
# the image into a set of ... | Python | myvenv/Scripts/painter.py | tadebayo/myedge | mit | 2,141 | 83 | codeparrot/github-code |
8ba87a9941936382d8862feeaf6e0c1a687dc5d5a7512b098ec61d3c20169ece | require 'active_support/dependencies'
module ActiveSupport
module Dependencies
alias_method :require_or_load_single, :require_or_load
def require_or_load(file_name, const_path = nil)
if ActiveSupportDecorators.is_decorator?(file_name)
# If an attempt is made to load the decorator file (such as... | Ruby | lib/active_support_decorators/dependencies_patch.rb | EPI-USE-Labs/activesupport-decorators | mit | 1,349 | 37 | codeparrot/github-code |
444d084b62625b1f3f060153ef96c4c0a50825336781adf6f70c1017fecf2799 | package som.primitives;
import java.math.BigInteger;
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
import com.oracle.truffle.api.dsl.GenerateNodeFactory;
import com.oracle.truffle.api.dsl.Specialization;
import com.oracle.truffle.api.profiles.BranchProfile;
import com.oracle.truffle.api.source.Sou... | Java | src/som/primitives/IntegerPrims.java | MetaConc/SOMns | mit | 6,322 | 198 | codeparrot/github-code |
c6d8ac6e68b65159817a60c81e5cfa184441c702db8422e438f0c142ec230cba | <?php
namespace SleepingOwl\Admin\Display\Tree;
use Illuminate\Database\Eloquent\Collection;
use SleepingOwl\Admin\Contracts\Display\Tree\TreeTypeInterface;
use SleepingOwl\Admin\Contracts\Repositories\TreeRepositoryInterface;
class OrderTreeType implements TreeTypeInterface
{
/**
* @var TreeRepositoryInter... | PHP | src/Display/Tree/OrderTreeType.php | LaravelRUS/SleepingOwlAdmin | mit | 1,551 | 71 | codeparrot/github-code |
7f124cdd344eaeb6020312ddefca07e8493b3b7add4ac9c6acc4e68db5e5e824 | 'use strict';
describe('Component: Grid', () => {
let scope, compile, templateCache, template, element, tubularColumn, $httpBackend;
const serverUrl = 'api/data';
beforeEach(module('tubular.tests'));
beforeEach(module('tubular'));
beforeEach(inject(function(_$compile_, _$rootScope_, _$templateCache_, _$... | JavaScript | test/e2e/grid/columns-as-attribute.spec.js | unosquare/tubular | mit | 2,812 | 88 | codeparrot/github-code |
cf4212b815e84fe30af78e3a6e683d7daf3d9276e12e10ee805deba7c6912fc2 | package org.alienideology.jcord.event.channel;
import org.alienideology.jcord.internal.object.IdentityImpl;
import org.alienideology.jcord.internal.object.channel.Channel;
import org.alienideology.jcord.internal.object.user.User;
import java.time.Instant;
import java.time.OffsetDateTime;
import java.time.ZoneOffset;
... | Java | src/main/java/org/alienideology/jcord/event/channel/TypingStartEvent.java | AlienIdeology/J-Cord | mit | 935 | 33 | codeparrot/github-code |
3ee2bb90bdb8b81a4e57a4f2b4c7dcfef5a171813718874b51f35095a8afc41a | import nock from 'nock';
import Coinbase from './coinbase';
beforeAll(() => nock.disableNetConnect());
afterAll(() => nock.enableNetConnect());
describe('Coinbase', () => {
describe('getExchangeRates()', () => {
beforeEach(() => {
nock('https://api.coinbase.com:443').get('/v2/prices/BTC-EUR/buy').reply(20... | JavaScript | lib/coinbase.test.js | nicka/coinboss | mit | 3,864 | 108 | codeparrot/github-code |
15bf043c10eb4fa5c01b145f8ea87a00d1f93c0d9fbb616474205af81f00587e | <?php
namespace Nemundo\Admin\Com\Form;
use Nemundo\Com\FormBuilder\AbstractFormBuilder;
use Nemundo\Core\Http\Request\Post\PostRequest;
use Nemundo\Html\Block\Div;
use Nemundo\Html\Block\Hr;
use Nemundo\Html\Container\AbstractContainer;
use Nemundo\Html\Container\AbstractHtmlContainer;
use Nemundo\Html\Form\Button\... | PHP | src/Admin/Com/Form/AbstractMultiSubmitAdminForm.php | nemundo/framework | mit | 1,698 | 83 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.