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 |
|---|---|---|---|---|---|---|---|---|
70449a3e1480650fa069ade5575aaeac7bc139dd8c88429c15492da99adabf24 | #include <iostream>
#include <future>
#include <signal.h>
#include <string.h>
#include <vector>
#include "BotHandler.h"
#include "BotService.h"
#include "config.h"
#include "ClientHandler.h"
#include "Net/TCPConnection.h"
#include "Net/TCPServer.h"
using namespace std;
using namespace hlt;
vector<ClientHandler::Ptr>... | C++ | src/server.cpp | mhalitk/RemoteBot | mit | 2,455 | 91 | codeparrot/github-code |
8b4bfe7ca2d8111de93c1cdfe6864ed340324e1f58d71b6ce129f987d8c8de0e | #import <Foundation/Foundation.h>
#import "JSONAPIRequest.h"
@class ShuttleStop;
@class ShuttleRoute;
@class ShuttleRouteCache;
@class ShuttleStopLocation;
@protocol ShuttleDataManagerDelegate<NSObject>
// everything is optional.
@optional
// message sent when routes were received. If request failed, this is calle... | C | Modules/Transit/ShuttleDataManager.h | modolabs/Harvard-Reunion-iOS | mit | 2,731 | 85 | codeparrot/github-code |
5e06d430578fa2b807e3d624fe6a404a7ce53649da4f72bf2cb0281b075e7918 | <!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang=""> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang=""> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang=""> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]... | HTML | portfolio.html | sami10015/sami10015.github.io | mit | 32,111 | 519 | codeparrot/github-code |
874466915f354b9049b251f717ce35e8734c5b9da8a3effad1e2e18422953a7d | //setup Dependencies
var connect = require('connect');
//Setup Express
var express = require('express');
var path = require('path');
let app = express();
var server = require('http').Server(app);
var io = require('socket.io')(server);
var keypress = require('keypress');
var port = (process.env.PORT || 8081);
var mut... | JavaScript | server.js | nomads2/new-nomads | mit | 7,491 | 323 | codeparrot/github-code |
c45bc523cb550872a2b1b940c5a3d336ee957c1c2921b735e258c45024a4398c | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Pso extends CI_Controller {
function __construct()
{
parent::__construct();
$this->load->helper('url');
$this->PARTICLE_COUNT = 6;
$this->V_MAX = 8;
$this->MAX_EPOCH = 10000;
$this->CITY... | PHP | application/controllers/Pso.php | fr3ndyl33/PSO-TSP | mit | 12,309 | 393 | codeparrot/github-code |
ec7111cb120c6da4db0abe75ad98fc165e7b9ea28e6aee3696a428dba8da3da8 | class ProfilesController < ApplicationController
before_action :authenticate_user!
before_action :only_current_user
def new
# form where a user can fill out their own profile
@user = User.find( params[:user_id] )
@profile = Profile.new
end
def create
@user = User.find( params[:user_id] )
@profile = @us... | Ruby | app/controllers/profiles_controller.rb | SlurmzMckenzie/SaaS-App | mit | 1,124 | 49 | codeparrot/github-code |
eee69ed64a98f57ae707f18327211349b9c68c6fe1e6c936066baa3c79c569ad | <?php
namespace AvalancheDevelopment\Approach\Schema;
class ExternalDocumentation
{
use Part\Extensions;
/** @var string */
protected $description;
/** @var string */
protected $url;
/**
* @return string
*/
public function getDescription()
{
return $this->descript... | PHP | src/Schema/ExternalDocumentation.php | avalanche-development/approach | mit | 710 | 48 | codeparrot/github-code |
2a16cd62844bb6ce7a4889f0009ae2157a71bc32175d8549db15a433f066761f | package demo
import (
_ "fmt"
cp "github.com/eka-tel72/go-chipmunk62/chipmunk"
)
/*
#include <stdlib.h>
int Random(void)
{
return rand();
}
void Seed(unsigned int i)
{
srand(i);
}
*/
import "C"
type tumble struct {
*demoClass
rogueBoxBody *cp.Body
}
var tumbleInst = &tumble{
&demoClass{
name: "Tumbl... | GO | chipmunk62demo/demo/tumble.go | eka-tel72/go-chipmunk62 | mit | 2,935 | 119 | codeparrot/github-code |
b1cb12b07c1936222567e1245483b4ec97a4e76a653b5633b4b47044b2ee22fc | <!DOCTYPE html>
<!--
Modification 08/02/2015 (omie w.):
- Added foundation-icons.css
- Installed Foundation Icons inside of /icons
- Added drop-down menu HTML
Modification 08/05/2015 (omie w.):
- Changed Search icon to drop-down menu in mobile Design
- Changed the event titles to orange with a 15% top radius
- Updated... | HTML | index.html | LeahW/NewDevATL | mit | 6,201 | 170 | codeparrot/github-code |
830ef8fbd3d56d92d6bfb6d7cdcd2f7d077a5ceff88d922c904130824eede5a7 | import os
import numpy as np
class Dataset(object):
"""
This class represents a dataset and consists of a list of SongData along with some metadata about the dataset
"""
def __init__(self, songs_data=None):
if songs_data is None:
self.songs_data = []
else:
self... | Python | dataset.py | Guitar-Machine-Learning-Group/guitar-transcriber | mit | 2,586 | 107 | codeparrot/github-code |
d9da6534b0c9934129ccfdf4b95b84eb295d20461540687b02db53d6d4bd030a |
import gevent
import time
def doit(i):
print "do it:%s" % (i)
gevent.sleep(2)
print "done:%s" %(i)
t2 = time.time()
threads = {}
for i in range(5):
t = gevent.spawn(doit, i)
threads[i] = t
#print dir(t)
gevent.sleep(1)
print threads
print threads[3].dead
threads[3]... | Python | maboss/motorx/scheduler/test01.py | mabotech/maboss.py | mit | 577 | 45 | codeparrot/github-code |
ee0558eb98267bee8e55fd1a0324beda77f3d76d0fa466051028e1a3d18a0694 | import sys
import os
import time
import numpy
import cv2
import cv2.cv as cv
from PIL import Image
sys.path.insert(0, os.path.join(
os.path.dirname(os.path.dirname(os.path.dirname(__file__)))))
from picture.util import define
from picture.util.system import POINT
from picture.util.log import LOG as L
THRESHOLD =... | Python | lib/picture/bin/patternmatch.py | setsulla/owanimo | mit | 1,439 | 54 | codeparrot/github-code |
d93cf000c3509bee75d679c01f3c2247c4434d00d39bfd31c51be601321cd6dd | /* io::mod.rs */
use core::mem::volatile_store;
use kernel::sgash;
mod font;
/* http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0225d/BBABEGGE.html */
pub static UART0: *mut u32 = 0x101f1000 as *mut u32;
pub static UART0_IMSC: *mut u32 = (0x101f1000 + 0x038) as *mut u32;
#[allow(dead_code)]
pub stati... | Rust | arch/arm/io/mod.rs | sarjun/cs4414-ps4 | mit | 5,134 | 230 | codeparrot/github-code |
215f34b10a70ecba932d573bafd875bba1239a26da71d2dc86f9ad4e3da5bda6 | class EducatorSectionAssignmentRow < Struct.new(:row, :school_ids_dictionary)
# Represents a row in a CSV export from Somerville's Aspen X2 student information system.
# This structure represents student section assignments.
#
# Expects the following headers:
#
# :local_id, :course_number, :school_local_i... | Ruby | app/importers/rows/educator_section_assignment_row.rb | jhilde/studentinsights | mit | 926 | 33 | codeparrot/github-code |
dee37779cd9eb3d9f84f9414340788fc61e245f0e89a100f4cb132743b94640b | def output_gpx(points, output_filename):
"""
Output a GPX file with latitude and longitude from the points DataFrame.
"""
from xml.dom.minidom import getDOMImplementation
def append_trkpt(pt, trkseg, doc):
trkpt = doc.createElement('trkpt')
trkpt.setAttribute('lat', '%.8f' % (pt['lat... | Python | ex3/code/calc_distance_hint.py | MockyJoke/numbers | mit | 1,089 | 34 | codeparrot/github-code |
5ac281d3d6b87e039896b41c41e25940653d8d46133ad2c33a25a1d86df076ba | /*
* PaintableShape.cpp
*
* Created on: Mar 19, 2017
* Author: Brian Schnepp
* License: See 'LICENSE' in root of this repository.
*/
#include <PathToolKit/graphic/gstructs.h>
#include <PathToolKit/graphic/PaintableShape.h>
#include <PathToolKit/gutil/Color.h>
#include <cstdlib>
namespace PathDraw
{
... | C++ | PathToolKit/graphic/PaintableShape.cpp | bSchnepp/PathToolKit | mit | 2,001 | 114 | codeparrot/github-code |
6cd47675ad50692b475ec5c67a2b104bb136f90e367476b3569586c40e240682 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
import urllib
import time
import datetime
#From PatMap by Jason Young, available on GitHub at github.com/JasYoung314/PatMap
#Function to get distance between 2 points from google maps. By default route is by car, distance is given in miles and time in minutes... | Python | emergencyTransport/RouteFinder/GoogleDistances.py | MatthewGWilliams/Staff-Transport | mit | 1,984 | 56 | codeparrot/github-code |
3d2957459be8639de98478aa3cf33224d6eaff371e4774184d5a04ce30dc2af0 | package com.jexpect.exception_messages;
import org.junit.Test;
import com.jexpect.util.Command;
import static com.jexpect.Expect.expect;
import static com.jexpect.util.ExceptionHandler.getExceptionMessage;
import static org.junit.Assert.assertEquals;
public class ToBeBooleanTest {
@Test
public void When_Expect... | Java | test/com/jexpect/exception_messages/ToBeBooleanTest.java | mustah/jexpect | mit | 1,619 | 57 | codeparrot/github-code |
5fe29d6d3d7e6b9491ebf9b667fcb4756f1fa2c8ece163c99c0d85ba43963c94 | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2015-2021 The Neutron Developers
//
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "rpcconsole.h"
#incl... | C++ | src/qt/rpcconsole.cpp | neutroncoin/neutron | mit | 28,863 | 839 | codeparrot/github-code |
9f049632a5023b984c90340b5ee4ba51fa6095fabe30620e892b995a39027982 | package nl.dekkr.hoppr.rest
import nl.dekkr.hoppr.model.{Feed, Syndication, FetchLogger}
import nl.dekkr.hoppr.rss.{FeedLogOutput, AtomOutput}
import spray.http.MediaTypes._
import spray.http.StatusCodes
import spray.httpx.marshalling._
import StatusCodes._
import spray.routing.HttpService
case class Url(uri: String)... | Scala | src/main/scala/nl/dekkr/hoppr/rest/RestService.scala | plamola/hoppR | mit | 3,285 | 119 | codeparrot/github-code |
15f944be5306fb411c5c13c4f8f234930d5ad06469ca4f532fa621f426eacce4 | 'use strict';
describe('AutoFormatter', function() {
var event = require('../polyfill/event');
var AutoFormatter = require('../src/auto-formatter');
var autoFormatter;
var inputNode;
var config = {
limitToMaxLength: true,
recurringPattern: false
};
before(function() {
inputNode = document.cr... | JavaScript | test/auto-formatter.js | sarbbottam/auto-formatter | mit | 10,942 | 290 | codeparrot/github-code |
0ab8a849cca9ae778de93789045f6610daf2711de074f2f58b3fadd94405b69e | /*jslint node: true */
'use strict';
var _ = require('underscore.string'),
inquirer = require('inquirer'),
path = require('path'),
chalk = require('chalk-log');
module.exports = function() {
return function (done) {
var prompts = [{
name: 'taglibName',
... | JavaScript | taglib/index.js | kristianmandrup/slush-markoa | mit | 1,760 | 53 | codeparrot/github-code |
3f063d99770fc7c80027422b0b6af9370a8c071b7b4d61383a59b5063988aed3 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Member extends Model
{
protected $fillable = ['first_name', 'last_name', 'district_id'];
public function groups() {
return $this->belongsToMany('App\Group');
}
public function votes() {
return $this->hasMany('App\Vot... | PHP | app/Member.php | scify/Vote-collector | mit | 2,603 | 83 | codeparrot/github-code |
31ecfdfdb6a471b3fa8dc34149c8259b91c2a8cff8163d7b7c6568270874b44a | 'use strict';
var _ = require('lodash');
var Q = require('q');
var util = require('util');
var should = require('./utils/should');
var descriptors = require('./utils/descriptors');
var Attribute = require('./attribute');
var AssertionResult = require('./assertion-result');
var PropertyAssertion = require('./assertions... | JavaScript | lib/entity.js | alannesta/tinto | mit | 4,743 | 204 | codeparrot/github-code |
055297f1822205c4d461a8281940ecd8b8d3c46e9bb642ebafcc60fdc74695d3 | //
// RootViewController.cs
//
// Author:
// Alan McGovern <alan@xamarin.com>
//
// Copyright 2011, Xamarin Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restrictio... | C# | LazyTableImages/RootViewController.cs | xamarin/monotouch-samples | mit | 6,677 | 182 | codeparrot/github-code |
8eba31bf2f7e16a7d75f4194794d13b509c66ee112ba2158cbc8b9fed919a283 | // Vaca - Visual Application Components Abstraction
// Copyright (c) 2005-2009 David Capello
//
// This file is distributed under the terms of the MIT license,
// please read LICENSE.txt for more information.
#include <vaca/vaca.h>
#include "../resource.h"
using namespace vaca;
class TimerViewer : public ... | C++ | examples/Timers/Timers.cpp | dacap/vaca | mit | 2,020 | 99 | codeparrot/github-code |
dd3485d46342c1ebe3db27cbe89d782df39344d7846fd5f96616aaed08c9532a |
namespace PatientManagement.Administration.Repositories
{
using Serenity;
using Serenity.Data;
using Serenity.Services;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Reflection;
using MyRow = Entities.UserRoleRow;
public cla... | C# | PatientManagement/PatientManagement.Web/Modules/Administration/UserRole/UserRoleRepository.cs | Magik3a/PatientManagement_Admin | mit | 3,064 | 97 | codeparrot/github-code |
1860cc9d54ca34d578649a7fb90291bfebe1ff92815a974488c104fafee96edb | using System;
using System.Collections.Generic;
namespace TietoCRM.Models
{
/// <summary>
/// Denna klass används inte längre!
/// </summary>
public class MainContractText
{
public enum MainContractType
{
MainHead,
Subheading,
Text
... | C# | TESS/Models/MainContractText.cs | erlingsjostrom/TSS | mit | 1,626 | 60 | codeparrot/github-code |
e1ca0099e67454c08bb98e0b0e9da62fd8f0af36396167e44e0295fc5fcc85af | // Copyright 2015 XLGAMES Inc.
//
// Distributed under the MIT License (See
// accompanying file "LICENSE" or the website
// http://www.opensource.org/licenses/mit-license.php)
#include "../Transform.h"
#include "../MainGeometry.h"
#include "../Surface.h"
#include "../ShadowProjection.h"
#include "../Vegetation/WindAn... | Shell | Working/Game/xleres/ShadowGen/rtwritetiles.sh | xlgames-inc/XLE | mit | 5,898 | 181 | codeparrot/github-code |
50b7b9cf6c1d20fda7d03c1e43026b4b7cb1b6fa52516dc7d4f7f972dea9e1ca | #!/bin/env python
#
# The MIT License (MIT)
#
# Copyright (c) 2015 Billy Olsen
#
# 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... | Python | secretsanta/mail.py | wolsen/secret-santa | mit | 4,308 | 115 | codeparrot/github-code |
1d75b33bdbae235adc577f4fbd1edee2d7a7dff16df9fe75da17ae4788d13035 | /**
* Imports
*/
import React from 'react';
import connectToStores from 'fluxible-addons-react/connectToStores';
import {RouteHandler} from 'react-router';
import {slugify} from '../../../utils/strings';
// Flux
import AccountStore from '../../../stores/Account/AccountStore';
import ApplicationStore from '../../../... | JavaScript | src/components/pages/Application/Application.js | ESTEBANMURUZABAL/my-ecommerce-template | mit | 6,524 | 183 | codeparrot/github-code |
6e1aa65b64945046837301a552cd2f3b85cc127caa21181adfd3d7893055721e | using Windows.UI.Xaml.Controls;
namespace ZhihuDaily.Models
{
public enum ArticleParagraphType
{
ArticleParagraphTypeText,
ArticleParagraphTypeImage,
ArticleParagraphTypeRichText,
ArticleParagraphTypeLink,
ArticleParagraphTypeLiangpingLink,
ArticleParagraphTypeH... | C# | ZhihuDaily/ZhihuDaily/Models/ArticleParagraph.cs | zhengbomo/ZhihuDaily | mit | 1,289 | 60 | codeparrot/github-code |
bb9acbe86108aec2cbcb2d7a1c90d765df39363dcbc8a34adba3385686e29814 | // Copyright (c) the authors of nanoGames. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt in the project root.
using OpenTK.Graphics.OpenGL4;
using System;
using System.Text;
namespace NanoGames.Engine.OpenGLWrappers
{
/// <summary>
/// Represents a shader program.
/// </summary>... | C# | NanoGames/Engine/OpenGLWrappers/Shader.cs | codeflo/nanogames | mit | 2,465 | 82 | codeparrot/github-code |
9ec0aa2cf51149cea95079a1cf6c08b25d56629dfe4849a84bf0404227d7cb76 | package main
import (
"fmt"
"io"
"io/ioutil"
"log"
"net"
"net/http"
)
func main() {
http.HandleFunc("/host", hostFinder)
http.HandleFunc("/ip", sourceIp)
http.HandleFunc("/date", GetJosnTime)
fmt.Println("Listening on 0.0.0.0:8000")
err := http.ListenAndServe("0.0.0.0:8000", nil)
if err != nil {
log.Fa... | GO | learn.go | SkyRocknRoll/golearn | mit | 1,202 | 52 | codeparrot/github-code |
ec757cc2cf7c6c806c0dc40947949ab9654408bdf946db7d519200198796cb4e | // Copyright (c) 2016 Yusuke Sasaki
//
// This software is released under the MIT License.
// See http://opensource.org/licenses/mit-license.php or <LICENSE>.
use ffi;
use itertools::{Itertools, Zip};
use std::mem::transmute;
use std::ops::Deref;
use std::ptr::null;
use std::os::raw;
use error::{Error, Result};
use... | Rust | src/callback.rs | ys-nuem/rust-gurobi | mit | 12,129 | 392 | codeparrot/github-code |
cfa5484ccfc9c04f10f1990bca5a8654a8aee8590f26b47455ffbf3b53c8a662 | local blinkTime = 250
local events = {}
local function removeBlink(id)
local creature = g_map.getCreatureById(id)
if creature and creature:getBlinkHitEffect() then
creature:setBlinkHitEffect(false)
end
removeEvent(events[id])
events[id] = nil
end
Blink = {}
Blink.remove =
function (id, instantly)
... | Lua | mods/ka_blinkhit/ka_blinkhit.lua | Riverlance/kingdom-age-game-linux | mit | 1,398 | 69 | codeparrot/github-code |
c1d877c1147a74fb4814a022a4edcb27c5b96fd88b28889a84d27b36efa946c8 | import actions from './shortcuts';
class MockClientStore {
update(cb) {
this.updateCallback = cb;
}
}
describe('manager.shortcuts.actions.shortcuts', () => {
describe('setOptions', () => {
test('should update options', () => {
const clientStore = new MockClientStore();
actions.setOptions({ c... | JavaScript | lib/ui/src/modules/shortcuts/actions/shortcuts.test.js | rhalff/storybook | mit | 1,792 | 69 | codeparrot/github-code |
843cf8a5bf1f1c96dad2cedde6335e25ae126b2620f274efa9a36063463ffeb3 | using Builder.Localization;
using Builder.Resolver;
using System.Collections.Generic;
namespace Builder.ParseTree
{
internal class FieldDefinition : TopLevelEntity, ICodeContainer
{
public Token NameToken { get; set; }
public Expression DefaultValue { get; set; }
public int M... | C# | Compiler/Builder/ParseTree/FieldDefinition.cs | blakeohare/crayon | mit | 5,505 | 130 | codeparrot/github-code |
4da91c015911ab8b50f0da70eeca3b36108c9d868e1fe65aa75ae52e7ee9a939 | using System;
using System.Collections.Generic;
namespace Nucleo.Web
{
/// <summary>
/// Represents a CSS file reference. This file is not used directly within any custom controls/extenders you may develop, though you can use it for your own needs.
/// </summary>
public class CssReference
{
private string _p... | C# | src/Nucleo.Web/Web/CssReference.cs | brianmains/Nucleo.NET | mit | 698 | 43 | codeparrot/github-code |
c721f3fe0f1244fe580d0f48ea1151df89d37a6f12d6307d7e592cdbe511faf1 | <!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="http://ajax.googleapis.com/ajax/libs... | HTML | fonts/sourcesanspro-regular-demo.html | darobin/group-hug | mit | 33,674 | 541 | codeparrot/github-code |
2dbba6368e183bf8aee4d664fe78969b9043a3a73e497528da50db4748b2a28f | import java.awt.Color;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
/**
* Demonstrate 2D array of GUI components. (This could all be done using a
* 1D a... | Java | examples/chap06/TwoDColorChooser.java | BoiseState/CS121-resources | mit | 2,653 | 91 | codeparrot/github-code |
75b23541a9c324258d4e4c62f1a462a8159e5953927d41a8c6e47bb6862c0a99 | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _css = require('antd/lib/message/style/css');
var _message = require('antd/lib/message');
var _message2 = _interopRequireDefault(_message);
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; ... | JavaScript | publish/editor/decorators/ImageSpan.js | WHKFZYX-Tool/react-lz-editor-whkfzyx | mit | 6,244 | 173 | codeparrot/github-code |
ab224f2d55e11f2b33f4bd04beee0c2012b2cec4fa2d569398ca5c5b8ef5505a | using System;
using System.Collections.Generic;
using System.IO;
using Verse.EncoderDescriptors.Tree;
namespace Verse.Schemas.Protobuf
{
internal class Writer : IWriter<WriterState, ProtobufValue>
{
public WriterState Start(Stream stream, ErrorEvent error)
{
throw new NotImplementedException();
... | C# | Verse/src/Schemas/Protobuf/Writer.cs | r3c/Verse | mit | 967 | 38 | codeparrot/github-code |
2eacc1319dc0aa15c7d1fd327d5b5df502acbe2dc03bf1956628471c508e3d5d | # -*- coding: utf-8 -*-
module Gtk
# message_detail_viewプラグインなどで使われている、ヘッダ部分のユーザ情報。
# コンストラクタにはUserではなくMessageなど、userを保持しているDivaを渡すことに注意。
# このウィジェットによって表示されるタイムスタンプをクリックすると、
# コンストラクタに渡されたModelのperma_linkを開くようになっている。
class DivaHeaderWidget < Gtk::EventBox
extend Memoist
def initialize(model, *args, ... | Ruby | core/mui/gtk_retriever_header_widget.rb | katsyoshi/mikutter | mit | 3,173 | 98 | codeparrot/github-code |
e045b9dc8efc5de058679167e49b8adac9126570b8abba2ce96e6f64afdcec97 | (function () {
'use strict';
angular
.module("myApp.presents")
.factory("dataGiftService", dataGiftService);
function dataGiftService($mdToast, $mdDialog) {
var dataGiftService = {
notification: notification,
pleaseWaitDialog: pleaseWaitDialog
};
... | JavaScript | app/services/data-gift-service.js | IT-Wolf/present | mit | 1,376 | 45 | codeparrot/github-code |
21ff5ee7720c2181c2f45737c8653890441fae9d60258192c9fb5f57689b6d06 | <?php
namespace Kraken\Runtime\Supervision\Cmd;
use Dazzle\Channel\Channel;
use Dazzle\Channel\ChannelInterface;
use Dazzle\Channel\Extra\Request;
use Kraken\Runtime\Supervision\Solver;
use Kraken\Supervision\SolverInterface;
use Kraken\Runtime\RuntimeCommand;
use Error;
use Exception;
class CmdEscalate extends Solv... | PHP | src/Runtime/src/Supervision/Cmd/CmdEscalate.php | kraken-php/framework | mit | 1,754 | 84 | codeparrot/github-code |
51960e6a6f59508c7181713df7b2f2dd89ad6781e885ff38243f874550b79ae0 | // 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 "signverifymessagedialog.h"
#include "ui_signverifymessagedialog.h"
#include "addressbookpage.h"
#include "base58.h"... | C++ | src/qt/signverifymessagedialog.cpp | codecvlc/amerios | mit | 8,982 | 279 | codeparrot/github-code |
79bdb65600ccf7ceb8e7598dbb540872557250921151f602395c6efea19a73a9 | package jxdo.rjava;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.lang.reflect.Modifier;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;
import java.util.jar.JarEntry;
import java.util.jar.Ja... | Java | NXDO.Java.V2015/jxdo.rjava/src/jxdo/rjava/JCSharp.java | javasuki/RJava | mit | 6,826 | 253 | codeparrot/github-code |
c881be9bd36a1a8d4390a8a8fb0fa4a76effcb7fbc9ce1c53a2fba2b55c371ae | /**
* This class was created by <Vazkii>. It's distributed as
* part of the Botania Mod. Get the Source Code in github:
* https://github.com/Vazkii/Botania
*
* Botania is Open Source and distributed under the
* Botania License: http://botaniamod.net/license.php
*
* File Created @ [Feb 14, 2015, 3:28:54 PM (GM... | Java | src/api/vazkii/botania/api/corporea/CorporeaHelper.java | goldenapple3/CopperTools | mit | 11,357 | 318 | codeparrot/github-code |
3ed8e0979788a6a753f0205f0f2b4343a9f585d7a0f893bfb4843b05cd03b795 | REM ×¢ÊÍ
@echo off
set ocd=%cd%
cd /d %~dp0
echo ##### Ìáʾ£º¶ÁÈ¡ÅäÖÃÎļþ #####
if exist ..\config.bat call ..\config.bat
if exist ..\..\config.bat call ..\..\config.bat
if exist ..\..\..\config.bat call ..\..\..\config.bat
if exist ..\..\..\..\config.bat call ..\..\..\..\config.bat
if exist ..\..\..\..\..\c... | Batchfile | src/oslibs/libcurl/setup.win64.bat | dios-game/dios | mit | 2,994 | 99 | codeparrot/github-code |
cbcf9bd5bbc07c453f47b28368286ae78928a53a140bf055848f6f6432023440 | /**
*
*/
package cn.sefa.test.combinator;
/**
* @author Lionel
*
*/
public class Result {
private String recognized ;
private String remaining;
private boolean succeeded ;
private Result(String recognized , String remaining , boolean succeeded){
this.recognized = recognized;
this.remaining = rema... | Java | src/cn/sefa/test/combinator/Result.java | LLionel/sefa | mit | 1,109 | 71 | codeparrot/github-code |
de1af2b38bab70d08a4f8f20a89b1f7db0eb5f1eabbfdea0041191a0af3f3147 | <?php
/*
* This file is part of the Persian Framework.
*
* (c) Farhad Zandmoghadam <farhad.pd@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Core\MVC\Routing;
use Core\PF\Exception\RoutingException;
use Sym... | PHP | core/framework/src/Illuminate/Routing/Router.php | zandfarhad/PF1 | mit | 2,353 | 112 | codeparrot/github-code |
46cfd9924e04042e67c85c5f6e6dba85275e87d8bd8c022559100ba8b8774cf0 | /**
* Ajax函数
*/
// 创建一个XMLHttpRequest对象
var createXHR;
if (window.XMLHttpRequest) {
createXHR = function() {
return new XMLHttpRequest();
};
} else if (window.ActiveXObject) {
createXHR = function() {
return new ActiveXObject('Microsoft.XMLHTTP');
};
}
// 发起异步请求,默认为GET请求
function aja... | JavaScript | ajax.js | Alex1990/jscell | mit | 880 | 38 | codeparrot/github-code |
89c198e7212cc238df29813270b7b5b518264e61d4d7cc175249c7f04dd0b9be | import { addTimer } from './timer/timer';
import { showProfile } from './profile/profile';
import { showHelp } from './help/help';
import { getAllUsers } from './timer/listUtil/getAllUsers';
import { isWorking } from './timer/listUtil/isWorking';
import { timerTimeout } from './timer/listUtil/timerTimeout';
import { r... | JavaScript | src/gui/menu/menu.js | sedansvan/workrecbot | mit | 1,694 | 64 | codeparrot/github-code |
bf958f8d47e4405dfcdd346ac0540215448c404c6e75891c30d685a4fab86458 | -- Path of Building
--
-- Class: List Control
-- Basic list control.
--
-- This is an abstract base class; derived classes can supply these properties and methods to configure the list control:
-- .label [Adds a label above the top left corner]
-- .dragTargetList [List of controls that can receive drag events from th... | Lua | Classes/ListControl.lua | UnluckyNinja/PathOfBuilding | mit | 12,361 | 341 | codeparrot/github-code |
a7d43e9965e952226ded01a35f2353bf110e1cbd78d19b5d26026dc194c479f0 | /**
* Created by:homelan
* User: pijiu3302@outlook.com
* Date: 2017/7/31
* Time: 17:38
*
*/
import React from 'react';
import icons from '../utils/parseIcon';
import {connect} from 'react-redux';
import {lockPlayer} from '../store/action/actionindex';
class LockBar extends React.Component {
render() {
cons... | JavaScript | src/components/lockbar.js | ponytony/hl-music-player | mit | 1,212 | 65 | codeparrot/github-code |
578e60b56c6e13ed6fba49fb6bc4e7771fd2be479c38ebfb70ece0b2b405c57d | package com.cgroups.gendata;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Random;
public class RandomEntry {
private ArrayList<String> words;
private ArrayList<Double> weights;
Random random = null;
private double total_weight;
... | Java | wap-gen-data/src/com/cgroups/gendata/RandomEntry.java | hustcalm/elasticsearch-hotsearch | mit | 2,458 | 104 | codeparrot/github-code |
f8e47c3789fcf5fd2fe2015dc4da7fa37cbb7a292b2d23ef6546a4bed455fd99 | /*
* CompletionCheck.h
*
* Created on: 27/05/2011
* Author: vgil
*/
#ifndef COMPLETIONCHECK_H_
#define COMPLETIONCHECK_H_
#include "../RRTNode.h"
#include "RRTBaseAlgorithm.h"
#include "RRTMetric.h"
class CompletionCheck : public RRTBaseAlgorithm {
public:
CompletionCheck (RRTMetric* m = NUL... | C | RRT/BaseAlgorithms/CompletionCheck.h | victor-gil-sepulveda/PathPlanning-RRT | mit | 1,315 | 56 | codeparrot/github-code |
fc96bf6afd241dba3cb49eb5cfbb00983e83e87938db7e886ef1b1e8d7c5bc15 | <h3>Dialogs</h3>
The most frequent dialogs are alert, confirm and prompt. In the case of an alert you just need to display a message to the user
and require no feedback besides user acknowledgement. Confirm dialog has similar purpose, but expects from the user a response
by accepting or declining the message. Prompt wa... | HTML | docs/overview/popup-dialogs.html | Connum/w2ui | mit | 3,929 | 113 | codeparrot/github-code |
19d228a8c6c7a1b966d0a593280325d3d4bdb112028e145f52a70a296cfb685d | package bj174x.bj1740;
import java.io.PrintWriter;
import java.util.Scanner;
/**
* Created by jsong on 30/03/2017.
*
* @hackerrank https://www.hackerrank.com/jsong00505
* @backjoon https://www.acmicpc.net/user/jsong00505
* @github https://github.com/jsong00505
* @linkedin https://www.linkedin.com/in/junesongsko... | Java | backjoon/src/bj174x/bj1740/Main.java | jsong00505/Coding-Practice | mit | 1,203 | 57 | codeparrot/github-code |
71db6ee8f10b84239cb8295e1796867a3b6748c602cc6c2ec11b7b387c17e3a6 | /*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2017 - ROLI Ltd.
JUCE is an open source library subject to commercial or open-source
licensing.
By using JUCE, you agree to the terms of both the JUCE 5 End-User Lic... | C++ | src/JuceLibraryCode/modules/juce_gui_extra/code_editor/juce_CodeDocument.cpp | Ultraschall/Soundboard | mit | 38,484 | 1,299 | codeparrot/github-code |
4041246245dfac51bc20db389ed37662fe58df177f3401ab7873043e36f227bb | <?php
class ChartPage extends RunnerPage
{
/**
* The name of the dashboard the List is displayed on
* It's set up correctly in dash mode only
*/
public $dashElementName = "";
/**
* The corresponding dashboard name
* It's set up correctly in dash mode only
*/
public $dashTName = "";
/**
* show m... | PHP | Jobs/output/classes/chartpage.php | tony19760619/PHPRunnerProjects | mit | 6,600 | 239 | codeparrot/github-code |
0f8df06a7176badc843c84454bb121d17be9ae41f8ac47170a9868ae717477cb | # coding=utf-8
"""
Collect the elasticsearch stats for the local node
#### Dependencies
* urlib2
"""
import urllib2
import re
try:
import json
json # workaround for pyflakes issue #13
except ImportError:
import simplejson as json
import diamond.collector
RE_LOGSTASH_INDEX = re.compile('^(.*)-\d\d\... | Python | src/collectors/elasticsearch/elasticsearch.py | metamx/Diamond | mit | 11,323 | 294 | codeparrot/github-code |
3f545315d45d41236bc5976998e92a99c11b9f671507c7cd54b1233e76de2226 | var express = require('express');
var app = module.exports = express();
var api = require('lib/db-api');
var config = require('lib/config');
var path = require('path');
var url = require('url');
var resolve = path.resolve;
var strip = require('strip');
var log = require('debug')('democracyos:facebook-card');
app.get('... | JavaScript | lib/facebook-card/index.js | alexproca/democracy-os | mit | 1,294 | 40 | codeparrot/github-code |
21041992fef68b09f697afc58fc239a72fb249ea8dc1b99c74050fcc290b421f | import { Fun, Optional } from '@ephox/katamari';
import { PlatformDetection } from '@ephox/sand';
import { fromRawEvent } from '../../impl/FilteredEvent';
import { EventHandler, EventUnbinder } from '../events/Types';
import { SugarElement } from '../node/SugarElement';
import * as Scroll from './Scroll';
export inte... | TypeScript | modules/sugar/src/main/ts/ephox/sugar/api/view/WindowVisualViewport.ts | tinymce/tinymce | mit | 2,461 | 75 | codeparrot/github-code |
6cf88bd5250d140b9925fc8602a4a24c206930c6d0a81e1187c3142afd5a5398 | /*!
* \file force-atlas-2.c
* Sequential implementation for the Force Atlas 2 spring embedding algorithm.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <float.h>
#include <limits.h>
#include <assert.h>
#include "force-atlas-2.h"
#include "math.h"
#include "timer.h"
#include "vector.h"
#incl... | C | src/force-atlas-2.c | DSRC-GPU/Accelerated-Pipeline | mit | 14,877 | 478 | codeparrot/github-code |
83d4ea8e5192afcc7ed12f5de5ede2ed0e796864cea1f5f8236e7599844b3b34 | require 'active_support/security_utils'
require 'vendor/box'
require 'jeweler/client'
require 'jeweler/connection'
require 'jeweler/writeable'
require 'jeweler/resource'
require 'jeweler/singleton_resource'
require 'jeweler/finders'
require 'jeweler/collection'
require 'jeweler/errors'
require 'keyline/errors'
requir... | Ruby | lib/keyline/client.rb | crispymtn/keyline-gem | mit | 5,211 | 143 | codeparrot/github-code |
f847ee038d9c3d23b71f2e3f0a36940ae451733aec9f9b0bf63a7f4deb7cb9db | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _2.Rotate_and_Sum
{
class Program
{
static void Main(string[] args)
{
var array = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var... | C# | Projects/Array Exercises/2. Rotate and Sum/Program.cs | vasilchavdarov/SoftUniHomework | mit | 1,084 | 46 | codeparrot/github-code |
91de1ed80c9b7b4e3c3941f3a12c796e74619f32c40ecc35c473f9c340c11416 | #include "benchmark/benchmark.h"
#include "c4/log.hpp"
#include "c4/allocator.hpp"
#include "../list_types.hpp"
namespace bm = benchmark;
namespace c4 {
template< class List >
void BM_ListPushBack(bm::State& st)
{
List li;
using T = typename List::value_type;
T v{};
size_t count = 0;
while(st.Ke... | C++ | bm/list/push_back/split_list__paged_rt__int__int32_t.cpp | biojppm/c4stl | mit | 849 | 40 | codeparrot/github-code |
7fa7840beaa30d5dfe6ff9bc5d7cde92b882223e337cebfc13640d287dd3fca8 | class Dorsale::BillingMachine::PdfFileGenerator < Dorsale::Service
attr_reader :document
def initialize(document)
@document = document
# I have no idea why I need to do that,
# if I don't do that, CarrierWare do not stores the file.
# The reload() method don't work either.
# The problem appear... | Ruby | app/services/dorsale/billing_machine/pdf_file_generator.rb | agilidee/dorsale | mit | 1,170 | 47 | codeparrot/github-code |
5102ee79a1885fd7670c0d46d4b2493ef49899c2f6bdf26c1551058882b1835b | <!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>CommentNode | parse5</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../assets/css/... | HTML | docs/interfaces/ast.htmlparser2.commentnode.html | HTMLParseErrorWG/parse5 | mit | 25,001 | 471 | codeparrot/github-code |
86fe94fb89487327e97d847703fb93e41a211f4e14f47363984a918ad16a7208 | /*****************************************************************************************
* *
* OpenSpace *
* ... | C++ | modules/fieldlinessequence/util/fieldlinesstate.cpp | OpenSpace/OpenSpace | mit | 18,472 | 459 | codeparrot/github-code |
d236461e56e53986e98123f52cde40889418119ce0799ae855d8e47dba5d10ed | /**
* Default model configuration
* (sails.config.models)
*
* Unless you override them, the following properties will be included
* in each of your models.
*
* For more info on Sails models, see:
* http://sailsjs.org/#!/documentation/concepts/ORM
*/
module.exports.models = {
/******************************... | JavaScript | config/models.js | pantsel/koutroclean | mit | 3,129 | 91 | codeparrot/github-code |
0903ae0c633bcb24444dbc55f2a5778026741720264c9ad7ed8675bacff50346 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>propcalc: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.cs... | HTML | clean/Linux-x86_64-4.06.1-2.0.5/released/8.8.0/propcalc/8.7.0.html | coq-bench/coq-bench.github.io | mit | 7,325 | 167 | codeparrot/github-code |
723a1f3a637eaf6935cd8b4d558eab37056495b250e5f35b624e28f4454721c9 | <?php
/**
*
*/
namespace Mvc5\Route\Match;
use Mvc5\Arg;
use Mvc5\Http\Request;
use Mvc5\Route\Route;
use function array_merge;
class Merge
{
/**
* @param Route $route
* @param Route $parent
* @param array $config
* @return Route
*/
protected function merge(Route $route, Route $pa... | PHP | src/Route/Match/Merge.php | devosc/mvc5 | mit | 1,301 | 50 | codeparrot/github-code |
0754fcf44230d0a88e16fd3b04e80ae8ad04557e2aa991ebdac86a5488d8b923 | using System;
namespace Zergatul.Security.Paddings
{
class PKCS7Padding : SymmetricPadding
{
public override byte[] GetPadding(int position, int blockSize)
{
if (position < 0 || position >= blockSize)
throw new InvalidOperationException();
byte[] paddin... | C# | Zergatul/Security/Paddings/PKCS7Padding.cs | Zergatul/ZergatulLib | mit | 896 | 32 | codeparrot/github-code |
cac9e0d19ed46f33874b52d34c06b864511870c7ec7c8eb740b3ab37806a0e12 | namespace TraktApiSharp.Objects.Post.Syncs.Collection.Responses.Json.Writer
{
using Newtonsoft.Json;
using Objects.Json;
using Syncs.Responses.Json.Writer;
using System;
using System.Threading;
using System.Threading.Tasks;
internal class SyncCollectionRemovePostResponseObjectJsonWriter : ... | C# | Source/Lib/TraktApiSharp/Objects/Post/Syncs/Collection/Responses/Json/Writer/SyncCollectionRemovePostResponseObjectJsonWriter.cs | henrikfroehling/TraktApiSharp | mit | 1,897 | 37 | codeparrot/github-code |
e2c32151a3492a1de9e8fa03000e10d40d8a8a6e81b68bfc25225583e642d21d | # Inspired from VecEnv from OpenAI Baselines
class VecEnv(object):
"""
An abstract asynchronous, vectorized environment.
"""
def __init__(self, num_envs, observation_space, action_space):
self.num_envs = num_envs
self.observation_space = observation_space
self.action_space = act... | Python | rl/common/vec_env/__init__.py | matthiasplappert/keras-rl | mit | 2,310 | 81 | codeparrot/github-code |
4ca101a15f45239441cfdb65d5141725b6f2d9c4ce8d3ecf95512ae0e412728e | // Copyright (c) 2011-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 "addressbookpage.h"
#include "ui_addressbookpa... | C++ | src/qt/addressbookpage.cpp | rkarpuzov/Aurumcoin-0.12 | mit | 10,106 | 314 | codeparrot/github-code |
ba672cb53c0d72d3535bc09a99b5a1e64c18a53417c7d2fead036a9b0b9aacb2 | <!DOCTYPE html>
<html lang="zh-CN,en,default">
<!-- Head tag -->
<head><meta name="generator" content="Hexo 3.9.0">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--Description-->
<meta n... | HTML | 2020/01/01/words-at-the-start-of-2020/index.html | billweasley/billweasley.github.io | mit | 12,559 | 368 | codeparrot/github-code |
88d5e4786d054e4570a07b1e52336f1edd22b1d542615535c5cdb02fc8f9046e | /******************************************************************************
* FILE: mpi_latency.c
* DESCRIPTION:
* MPI Latency Timing Program - C Version
* In this example code, a MPI communication timing test is performed.
* MPI task 0 will send "reps" number of 1 byte messages to MPI task 1,
* waiting for... | C | src/hw1/latency/.junk/latency2.c | rahlk/Parallel-Systems | mit | 3,936 | 113 | codeparrot/github-code |
d4a6527abe1939025f307592288540e4fe476d790c6400e4f3904bfc6da7a14f | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | src/vs/workbench/test/electron-browser/workbenchTestServices.ts | the-ress/vscode | mit | 12,175 | 256 | codeparrot/github-code |
1be08a432cfdbb2459683524f50dcede07cf7aea0b2638b48ff55e051b5a09eb | 'use strict';
function Level(args) {
if(!(this instanceof Level))
return new Level(args);
this.context = args.context;
this.player = args.player;
this.gameplayObjects = args.gameplayObjects;
this.outcomeListeners = [];
this.finalMessageListeners = [];
this.respawnInfoListeners = [];
this.victoryMe... | JavaScript | scripts/level.js | djsns/warp | mit | 2,837 | 108 | codeparrot/github-code |
324d25359133629ecb1a38246e3304dad9a268cf0844af0fa2176410a05bde96 | EGA2RGB = [
(0x00, 0x00, 0x00),
(0x00, 0x00, 0xAA),
(0x00, 0xAA, 0x00),
(0x00, 0xAA, 0xAA),
(0xAA, 0x00, 0x00),
(0xAA, 0x00, 0xAA),
(0xAA, 0x55, 0x00),
(0xAA, 0xAA, 0xAA),
(0x55, 0x55, 0x55),
(0x55, 0x55, 0xFF),
(0x55, 0xFF, 0x55),
(0x55, 0xFF, 0xFF),
(0xFF, 0x55, 0x5... | Python | shapes.py | jtauber/ultima4 | mit | 800 | 36 | codeparrot/github-code |
5c4403a0e2baa32657826fb7269a848af8117b778089d728201d7f93dda33fdf | /*
* defs.h
*
* Created on: Jul 4, 2016
* Author: kosmaz
*/
#ifndef DEFS_H_
#define DEFS_H_
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include "lcd.h"
//#define TEST
#define F_CPU 12000000UL //External clock frequency 12 MHz
#define HIGH 0x01 //8 bit value for 1
#define LOW 0x00 //8 bit ... | C | src/defs.h | kosmaz/BatteryBot | mit | 3,208 | 109 | codeparrot/github-code |
2ff1591878df6bec9303dce46abd5b25202c87970ee21199709bace68d604b1e | package com.gpshub.api;
import android.util.Log;
import com.gpshub.utils.Preferences;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.ut... | Java | client/app/src/main/java/com/gpshub/api/AccountManager.java | illusionww/gpsHub | mit | 2,355 | 72 | codeparrot/github-code |
6d9cce689e90c98fffcba7a617ab3a1a8742ffd8bd3a4ec613d04c1d977953a0 | {% extends "layout.html" %}
{% block body %}
<div id="login" class="dialog">
<h2>Login</h2>
{% if error %}<p class=error><strong>Error:</strong>{{ error }}</p>{% endif %}
<form action="{{ url_for('login') }}" method=post>
<p>
<label for=email>Email:</label><br>
<input type=email id=email name=... | HTML | cala/templates/login.html | djlauk/cala | mit | 921 | 32 | codeparrot/github-code |
0e2631139feb45c75da2d796842108c815bb4d04385d07681eef444cdf5d1b7d | /******************************************************************************
Copyright (c) 2014 Gorka Suárez García
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, incl... | C++ | Source/Games/SaveManager.cpp | gorkinovich/GAGC | mit | 18,289 | 506 | codeparrot/github-code |
51cfcc55089f0699a86ca243989a8ee461c2181422afe8a09377d241cd28d416 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* Model class that wraps table submission
*
* This is the active record class wrapper for table 'submission' from the database.
*
* @package models
* @author Ashar Fuadi <fushar@gmail.com>
*/
class Submission_manager extends AR_Mod... | PHP | application/models/Submission_manager.php | fushar/regrader | mit | 8,123 | 216 | codeparrot/github-code |
f32878ef8023fc2b6c3248432352f3f87c8241786cc67bba020fcfdac0d6960a | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Módulos para Angular JS</title>
<meta name="description" content="" />
<meta name="HandheldFriendly" content="True" />
<meta name="viewport" content="width=device-width, initia... | HTML | 2016/06/10/Modulos-para-Angular-JS.html | willcrisis/www.willcrisis.com | mit | 12,374 | 225 | codeparrot/github-code |
fcea20cc23d39f94c29ec603a5b60a839cedcab2e800a16f046f03f5c8e4e16f | package com.daeliin.components.persistence.resource.repository;
import com.daeliin.components.core.pagination.Page;
import com.daeliin.components.core.pagination.PageRequest;
import com.querydsl.core.types.OrderSpecifier;
import com.querydsl.core.types.Predicate;
import com.querydsl.sql.RelationalPathBase;
import com.... | Java | components-persistence/src/main/java/com/daeliin/components/persistence/resource/repository/BaseRepository.java | Daeliin/java-components | mit | 3,785 | 136 | codeparrot/github-code |
700351b0a688bc4a46712719fee1f891da1abf08ec038d738717d94686cfb1e0 | var Leap = require("leapjs");
var keyboard = require('node_keyboard');
//Each var individually declared below so they refence different objects in memory. I.e work independantly.
//These vars log when a particular action / gesture last ran.
var last_fav = new Date().getTime();
var last_swipe = new Date().getTi... | JavaScript | leap.js | MaxGiting/leap_imgur | mit | 3,870 | 92 | codeparrot/github-code |
94aa173881bf2dfda546f3be92400296a9a88626fad83e0bd17eab39d862d86e | import 'leaflet';
import './main.scss';
import "reflect-metadata";
import "zone.js/dist/zone";
import "zone.js/dist/long-stack-trace-zone";
import { BrowserModule } from "@angular/platform-browser";
import { platformBrowserDynamic } from "@angular/platform-browser-dynamic";
import { Component, NgModule, ComponentRef, I... | TypeScript | src/app.ts | darkguy2008/leaflet-angular4-issue | mit | 4,632 | 164 | codeparrot/github-code |
7c8cb3ed97d323d33b6a80961f696a6291ab7912628eee1b723979555d0c6bea | import json
from util import d
import os
__home = os.path.expanduser("~").replace('\\', '/') + "/PixelWeb/"
BASE_SERVER_CONFIG = d({
"id":"server_config",
"display": "server_config",
"preconfig": False,
"presets":[],
"params": [{
"id": "exter... | Python | pixelweb/config.py | ManiacalLabs/PixelWeb | mit | 3,791 | 130 | codeparrot/github-code |
fcc650c1b9fafa8978274ff241d71283148beef51bf500f760e75ab640ae0f0c | //******************************************************************************************************
// ZeroMQClient.h - Gbtc
//
// Copyright © 2015, Grid Protection Alliance. All Rights Reserved.
//
// Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See
// the ... | C | source/ARMOREProxy/MiddlewareEngine/ZeroMQClient.h | GridProtectionAlliance/ARMORE | mit | 2,752 | 68 | codeparrot/github-code |
16689af5714756f1d1ebf05a447ee2dc44c9f383c84507d861d7d61c2d22a766 | <?php
namespace App\Http\Controllers\API;
use App\Http\Requests\API\PlaylistStoreRequest;
use App\Models\Playlist;
use Illuminate\Http\Request;
class PlaylistController extends Controller
{
/**
* Create a new playlist.
*
* @param PlaylistStoreRequest $request
*
* @return \Illuminate\Http... | PHP | app/Http/Controllers/API/PlaylistController.php | cchandan/experimental | mit | 1,890 | 79 | codeparrot/github-code |
114e84a9310db82bca40e270d0053be0254c05bba122826d2881936f53eebf68 | class AzDefinition < OwnedActiveRecord
belongs_to :az_base_project
belongs_to :matrix, :class_name=>'AzDefinition', :foreign_key=>'copy_of'
validates_presence_of :name
validates_presence_of :definition
include Statuses
def validate
validate_owner_id_common('definition', 'Project')
end... | Ruby | app/models/az_definition.rb | stg34/azalo | mit | 3,317 | 146 | codeparrot/github-code |
3a17f81598c9709fb0fa998054fcba75b492a8bc16875ac8582ce98a65235524 | package TeamTwoHTMLEditor.command;
import TeamTwoHTMLEditor.CommandDistributor;
import TeamTwoHTMLEditor.CommandMediator;
import TeamTwoHTMLEditor.GUI.EditorFrame;
import javax.swing.*;
/**
* Created with IntelliJ IDEA. User: Kocsen Date: 3/22/13 Time: 2:16 PM
*/
public class ShutDownCommand implements Command{
p... | Java | src/command/ShutDownCommand.java | kocsenc/java-swing-htmleditor | mit | 1,323 | 51 | codeparrot/github-code |
de3340d91a4c89ea8af83f8d1549cee971ce1a29e1d61847e0b0638398a9ac08 | <?php
declare(strict_types=1);
/*
* This file is part of the MediaModule for Zikula.
*
* (c) Christian Flach <hi@christianflach.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Cmfcmf\Module\MediaModule\MediaType;
... | PHP | MediaType/Markdown.php | cmfcmf/MediaModule | mit | 2,756 | 106 | codeparrot/github-code |
8a0d1a9a04d8c4bf802cde1330ba0f9ed11766df54c049f6ffcceab4e97fbb59 | package me.writeily.pro.settings;
import android.app.Activity;
import android.app.FragmentManager;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.ListPreference;
import android.preference.Preference;
import an... | Java | app/src/main/java/me/writeily/pro/settings/SettingsFragment.java | plafue/writeily-nightly | mit | 6,459 | 153 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.