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 |
|---|---|---|---|---|---|---|---|---|
5bf61fb87f89efc02655929e52d1247d019a61873f434d658b7991aac29e37a6 | // Include gulp
var gulp = require('gulp');
// Include Our Plugins
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
var header = require('gulp-header');
var footer = require('gulp-footer');
// Build Task
gulp.task('default', function() {
gulp.src([ "src/... | JavaScript | gulpfile.js | tyler-johnson/Legends | mit | 1,023 | 32 | codeparrot/github-code |
abaaf1ff3d63488378f32abfc2fed400f6cb759d6bff7f4ce98249b7c7b30cd7 | import requests
from flask import session, Blueprint, redirect
from flask import request
from grano import authz
from grano.lib.exc import BadRequest
from grano.lib.serialisation import jsonify
from grano.views.cache import validate_cache
from grano.core import db, url_for, app
from grano.providers import github, twi... | Python | grano/views/sessions_api.py | clkao/grano | mit | 5,328 | 160 | codeparrot/github-code |
9e8983de047744258af9f3b2686fa19c7fb1747d60358f94ab31278a78f5a567 | <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>NgRx Docs</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="assets/images/favicons/favicon.ico">
<link rel="icon" type="image/png" href="assets/images/favicons/... | HTML | projects/ngrx.io/src/index.html | brandonroberts/platform | mit | 4,153 | 105 | codeparrot/github-code |
2c4b1af4230d0b5d6410d284f8a3e4c21450ca1a455a058809e17662f44b51cd | package com.dasa.approval.service;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.beans.factory.annotation.Autowired;
import com.dasa.approva... | Java | src/main/java/com/dasa/approval/service/ApprovalService.java | GenSolutionRep/Note | mit | 3,915 | 116 | codeparrot/github-code |
12b7c0fcbddd8e16a7a2642632c11a27156b3fa73f60d32fbe71eb45c1454a60 | var myTimeout = 12000;
Storage.prototype.setObject = function(key, value) {
this.setItem(key, JSON.stringify(value));
};
Storage.prototype.getObject = function(key) {
var value = this.getItem(key);
return value && JSON.parse(value);
};
// Обеспечиваем поддержу XMLHttpRequest`а в IE
var xmlVersions = new Array(
... | JavaScript | Core/fw.js | schoolphp/library | mit | 1,946 | 68 | codeparrot/github-code |
0ae3d37c0a2301c3648a818c9ae96d8cc934f8110e009c3583b035582fd8dd14 | /*! YAD - v1.0.0 - 82bbc70 - 2014-12-02
* Yahoo Personalised Content Widget
* Copyright (c) 2014 ; Licensed */
(function(){var f=window.document,e={Error:function(a){this.message=a},Bootstrap:function(a,b,c){this.widgetInitialisationStartedAt=this.timeSinceNavigationStart();this.snippetLoadedAt=c?this.timeSinceNav... | JavaScript | the-verge-article/Google is killing CAPTCHA as we know it The Verge_files/yad.js | izakfilmalter/the-verge | mit | 24,061 | 51 | codeparrot/github-code |
e1cc78b781cdeaef1d6266aabfcb6772cfdbc48e23aa454d5316d4a475fd3b03 | <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>The source code</title>
<link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="../resources/prettify/prettify.js"></script>
<style type="t... | HTML | docs/source/LockingView.html | hatimeria/HatimeriaExtJS | mit | 5,533 | 205 | codeparrot/github-code |
48c134de1deb8d2367cd4edef6fa16c5215c736c76507e1ae7a359d267160365 | /**
* grunt-webfont: fontforge engine
*
* @requires fontforge, ttfautohint 1.00+ (optional), eotlitetool.py
* @author Artem Sapegin (http://sapegin.me)
*/
module.exports = function(o, allDone) {
'use strict';
var fs = require('fs');
var path = require('path');
var temp = require('temp');
var async = require... | JavaScript | tasks/engines/fontforge.js | jnaO/grunt-webfont | mit | 2,457 | 101 | codeparrot/github-code |
91a73acdd826f041ff3f9cc82a473229771a8ba8eac27ac27e1a11bb5541b2d7 | <?php
/*
* The MIT License (MIT)
*
* Copyright (c) 2013 Christian Zenker <dev@xopn.de>
*
* 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 limitati... | PHP | lib/Czenker/Wichtlr/ConsoleHelper/Reindeer.php | czenker/wichtlr | mit | 6,574 | 222 | codeparrot/github-code |
c92b7a3ec5d3b31e0697085f4dc37f6789452502472959125a3faff423f3bdd5 | require 'csv'
@file_name = ARGV[0]
file = File.new('inputs/' + @file_name, 'r')
n_lines = 0
@headers = nil
@contents = {}
@dates = []
def parse_headers(fields)
@headers = fields.slice(1..(fields.length-1))
@headers = @headers.map(&:chomp)
@headers.each do |name|
@contents[name] = []
end
end
def parse_line(fi... | Ruby | data_sources/parse_individual.rb | cyrusinnovation/american_ebola_response | mit | 1,137 | 64 | codeparrot/github-code |
4c66d21881b169f428a626f01336403314898327e4eb04eda9ef03f30650148a | package br.com.trustsystems.demo.provider;
import br.com.trustsystems.persistence.Persistent;
import br.com.trustsystems.persistence.dao.IUnitOfWork;
import br.com.trustsystems.persistence.provider.jpa.JpaPersistenceProvider;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotat... | Java | src/main/java/br/com/trustsystems/demo/provider/DatabasePersistenceProvider.java | trust-wenderson/super-dao-demo | mit | 1,812 | 57 | codeparrot/github-code |
3a3830d5ad99040b40c2fa42013bb14abe909373768d097931521f6212e21611 | module Puppet.Master.Interpreter ( InterpreterWorker
, newInterpreterWorker
, ask
, eval
, typeOf
) where
import Exception
import Control.Monad
import GH... | Haskell | src/Puppet/Master/Interpreter.hs | jd823592/puppeteer | mit | 1,473 | 46 | codeparrot/github-code |
b56ef09b71a404c51dfcf1097a19febc6eab99e52f61224f0d5c53cc8a58798b | /*virtual sticky*/
#siteTable {
display: -webkit-flex;
display: flex;
-webkit-flex-direction: column;
flex-direction: column;
}
.stickied {
-webkit-order: -2;
order: -2;
}
.id-t3_3wr79q {
-webkit-order: -1;
order: -1;
}
.id-t3_3wr79q>.rank {
visibili... | CSS | SchoolIdolFestival/main.css | GrygrFlzr/Subreddit-Stylesheets | mit | 57,726 | 2,252 | codeparrot/github-code |
60d9aec076bcdc5bb4370942cfd846e9e69bdcdf5491c6db4ecdb29ad478c350 | 'use strict';
var fs = require('fs'),
path = require('path');
// path.basename('/foo/bar/baz/asdf/quux.html', '.html') = quux
// path.dirname('/foo/bar/baz/asdf/quux.html') = /foo/bar/baz/asdf/
// path.parse('/home/user/dir/file.txt')
// returns
// {
// root : "/",
// dir : "/ho... | JavaScript | src/model/layers/index.js | hanakin/rotory | mit | 2,763 | 104 | codeparrot/github-code |
c55fe66dabb9894e812de8a8a5e396896f948ad08932e46ebd043c9ee61a9ee2 | var NULL = null;
function NOP() {}
function NOT_IMPLEMENTED() { throw new Error("not implemented."); }
function int(x) {
return x|0;
}
function pointer(src, offset, length) {
offset = src.byteOffset + offset * src.BYTES_PER_ELEMENT;
if (typeof length === "number") {
return new src.constructor(src.buffer, o... | JavaScript | include/stdlib.js | mohayonao/libogg.js | mit | 777 | 39 | codeparrot/github-code |
0104ebddf6260b02ff8e681c58d0b1b86ed0efa9fb870b18cb91c0c677fa9643 | var _ = require('../../util')
var handlers = {
text: require('./text'),
radio: require('./radio'),
select: require('./select'),
checkbox: require('./checkbox')
}
module.exports = {
priority: 800,
twoWay: true,
handlers: handlers,
/**
* Possible elements:
* <select>
* <textarea>
* <... | JavaScript | src/directives/model/index.js | goforward01/follow_vue | mit | 1,765 | 76 | codeparrot/github-code |
85decdce3c4c5a99744c0e4ef948fc146394192e1d27e87ea715b865e9828520 | using System;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using System.Data.Common;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration;
using System.Xml;
using System.Xml.Serialization;
using SubSonic;
using SubSonic.Utilities;... | C# | DalSic/generated/LabTempResultadoEncabezadoController.cs | saludnqn/consultorio | mit | 7,089 | 224 | codeparrot/github-code |
846d0cebbe68d1e685befcf0aba765adbdc7f555b98db2472f8d228f2014ff32 | const test = require('tape')
const Queue = require('./Queue')
test('peek on empty queue', assert => {
const queue = new Queue()
assert.strictEqual(queue.peek(), null)
assert.end()
})
test('enqueue items to the queue', assert => {
const queue = new Queue()
queue.enqueue('foo')
queue.enqueue('bar')
assert... | JavaScript | src/DataStructures/Queue.test.js | ayastreb/cs101 | mit | 1,085 | 44 | codeparrot/github-code |
ffb7399a84ff778c05d55adc45b0a45cea0f4103a233266437b5c93008c7457f | <?php
namespace r7r\ste;
/**
* Class Calc contains static methods needed by <ste:calc />
*/
class Calc
{
private function __construct()
{
}
/**
* Parse a mathematical expression with the shunting yard algorithm (https://en.wikipedia.org/wiki/Shunting-yard_algorithm)
*
* We could also... | PHP | src/ste/Calc.php | kch42/ste | mit | 5,679 | 182 | codeparrot/github-code |
81ad8fa8f2e7cdfc565bdcc783f608575365182aeae50ead6793ab192b4e6a41 | var EVENTS, ProxyClient, _r, bindSocketSubscriber, getSystemAddresses, io, mazehallGridRegister;
_r = require('kefir');
io = require('socket.io-client');
EVENTS = require('./events');
ProxyClient = function(server, hosts) {
server.on('listening', function() {
return bindSocketSubscriber(server, hosts);
});
... | JavaScript | lib/client.js | mazehall/mazehall-proxy | mit | 1,893 | 77 | codeparrot/github-code |
f99d70a8f29fcbee0d23687ad58af296e2953d09c399bdcd2f262b061098e65b | var Router = require('restify-router').Router;
var db = require("../../../../db");
var ProductionOrderManager = require("dl-module").managers.sales.ProductionOrderManager;
var resultFormatter = require("../../../../result-formatter");
var passport = require('../../../../passports/jwt-passport');
const apiVersion = '1.0... | JavaScript | src/routers/v1/sales/reports/sales-monthly-report-router.js | danliris/dl-production-webapi | mit | 9,361 | 197 | codeparrot/github-code |
0b96055e0127ea4ec1aff9818c359d159420fb24504bcf8eb914a2efdf2d293e | <?php
namespace Audith\Providers\Nexway\Data\Response\OrderApi;
/**
* @author Shahriyar Imanov <shehi@imanov.me>
*/
class getCrossUpSell extends \Audith\Providers\Nexway\Data\Response\OrderApi
{
/**
* @var array
* @see http://wsdocs.nexway.com/APIGuide/index.html?url=responsecodetype1.html
*/
... | PHP | src/Audith/Providers/Nexway/Data/Response/OrderApi/getCrossUpSell.php | AudithSoftworks/Nexway-Merchant-API-PHP-Client | mit | 1,028 | 39 | codeparrot/github-code |
98d8891b66beb3fd9b486f0392d9be1d5236cab5806be66496caa2c4f1c5fdfa | module Translation
using Random
const filename = joinpath(tempdir(), "translation-$(randstring()).jld")
module Writing
using JLD
import ..Translation: filename
mutable struct MyType
a::Int
end
jldopen(filename, "w") do file
truncate_module_path(file, Writing)
write(file, "x", MyType(3))
end
end # Wri... | Julia | test/type_translation.jl | JuliaIO/JLD.jl | mit | 760 | 57 | codeparrot/github-code |
e45141756a720be910e2f71dddba8b62416d13d6fe8f286d4e61c3acd3b7c139 | /*++
NASM Assembly Language Plugin
Copyright (c) 2017-2019 Aidan Khoury. All rights reserved.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any... | Java | src/com/nasmlanguage/NASMCommenter.java | dude719/JetBrains-NASM-Language | mit | 1,389 | 57 | codeparrot/github-code |
73215e63610df7c9efdb7b9d532aa5dc12606cae459d5cc8260049a03c4b2c69 | // ****************************************************************************
// <copyright file="IntExtensions.cs" company="Pedro Lamas">
// Copyright © Pedro Lamas 2011
// </copyright>
// ****************************************************************************
// <author>Pedro Lamas</author>
// <email>pedrolam... | C# | src/Cimbalino.Phone.Toolkit.Background (WP71)/Extensions/IntExtensions.cs | Cimbalino/Cimbalino-Phone-Toolkit | mit | 4,432 | 113 | codeparrot/github-code |
96bf3ba870722c6ea626a17896ac6057c7eff13dce69bd7f242369b3c10ce121 | package icarus
import (
"encoding/json"
"fmt"
"time"
)
type NoSuchPagesError struct {
msg string
Slugs []string
}
func (e *NoSuchPagesError) Error() string {
return e.msg
}
// Retrieve a list of slugs from Redis.
func PagesFromRedis(slugs []string) ([]*Page, error) {
pages := make([]*Page, 0, len(slugs))
... | GO | pages.go | lethain/icarus | mit | 3,031 | 159 | codeparrot/github-code |
677c1da33b05690bc7cf3c46892b74198ad65346e52c70af2965fb75de1598f4 | <?php
/**
* Created by PhpStorm.
* User: Admin
* Date: 4/6/14
* Time: 2:46 PM
*/
namespace Nfq\NomNomBundle\Form\Type;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
class AddUsersToEventType extends AbstractType
{
/**
* Returns the name of this type.
*... | PHP | src/Nfq/NomNomBundle/Form/Type/AddUsersToEventType.php | nfqakademija/nomnom | mit | 744 | 36 | codeparrot/github-code |
1ee420a12fa1b60dd9046d8715f66a0463a74ed09df4aa08e8a52c14c154ce45 | /*===================================================
LIST MASTER HEADERS
===================================================*/
//Multiple definition prevention
#ifndef BBInterface_ListMaster_h
#define BBInterface_ListMaster_h
//Includes
//Pre-defined structures
struct list;
struct listnode;
//Define these struc... | C | plugins/bbInterface/src/ListMaster.h | mojmir-svoboda/BlackBoxTT | mit | 1,157 | 53 | codeparrot/github-code |
bf1ce80a1bbc54c747d949e5780fc1cf7bc898f22f146928230b0ea898d8142e | define(['./alasqlportfoliodividenddata', './monthstaticvalues', './bankdatadividend', './dateperiod'], function(alasqlportfoliodividenddata, monthstaticvalues, bankdatadividend, dateperiod) {
var gridData = [];
var gridId;
var months = monthstaticvalues.getMonthWithLettersValues();
var currentMonth = n... | JavaScript | js/gridportfoliodividend.js | nnava/nnava.github.io | mit | 13,825 | 323 | codeparrot/github-code |
7a8c68acf995fdf376d23071e78b71f7a3659678be0f63de81cd340ef9a0626f | /*
* This file is part of ThermalRecycling, licensed under the MIT License (MIT).
*
* Copyright (c) OreCruncher
*
* 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, i... | Java | src/main/java/org/blockartistry/mod/ThermalRecycling/support/recipe/accessor/ForestryFabricatorRecipeAccessor.java | OreCruncher/ThermalRecycling | mit | 1,809 | 47 | codeparrot/github-code |
72246a70fbfecb48090668d4ea4a5760349adb956448dddeb16fbf7712dd1331 | import json
import logging
from foxglove import glove
from httpx import Response
from .settings import Settings
logger = logging.getLogger('ext')
def lenient_json(v):
if isinstance(v, (str, bytes)):
try:
return json.loads(v)
except (ValueError, TypeError):
pass
return... | Python | src/ext.py | tutorcruncher/morpheus | mit | 3,555 | 100 | codeparrot/github-code |
be83eccc21b289fb7fb0e23bf4504440e1a060e3398f5a0ffec026053a288f7d | /*
Copyright (C) 2003-2013 by Kristina Simpson <sweet.kristas@gmail.com>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any pur... | C++ | src/xhtml/css_parser.cpp | sweetkristas/xhtml | mit | 13,689 | 512 | codeparrot/github-code |
992d9b549da4e9f4d683dc7da98ad448e45449078f77d694b6f567f1b4f68fd9 | package org.udger.parser;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
import java.io.IOException;
import java.net.URL;
import java.net.UnknownHostException;
import java.sql.SQLException;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.CyclicBarrier;... | Java | src/test/java/org/udger/parser/UdgerParserTest.java | udger/udger-java | mit | 3,881 | 111 | codeparrot/github-code |
2776d928fcad35efd6ed3f3d488dadfa5cafe0eee693153b1e1bc7a83ee4aad8 | import { Cursor } from '../diagram/Cursor';
import { DiagramElement } from '../diagram/DiagramElement';
import { Handle } from '../diagram/Handle';
import { AbstractCanvas } from './AbstractCanvas';
const zoomLevels = [1 / 8, 1 / 7, 1 / 6, 1 / 5, 1 / 4, 1 / 3, 1 / 2, 2 / 3, 1, 3 / 2, 2, 3, 4, 5, 6, 7, 8];
export abst... | TypeScript | modules/@metagram/framework/canvas/InteractiveCanvas.ts | ksm2/metagram | mit | 4,938 | 185 | codeparrot/github-code |
5b7083479d6d79ee520e62469251300eab52ffb813ba2490c2431010eda0779f | const iNaturalistAPI = require( "../inaturalist_api" );
const ControlledTerm = require( "../models/controlled_term" );
const Observation = require( "../models/observation" );
const Project = require( "../models/project" );
const Taxon = require( "../models/taxon" );
const User = require( "../models/user" );
const obse... | JavaScript | lib/endpoints/observations.js | inaturalist/inaturalistjs | mit | 7,513 | 231 | codeparrot/github-code |
21a2471bc1b5e449937a2c8c237862102d5b4a2311956934071106e69c6d0816 | \begin{homeworkProblem}[Running the Algorithms]
\begin{homeworkSubProblem}[DFS \& BFS]
The DFS\&BFS from vertex $a$ are shown in \cref{1.a} and \cref{1.b}.
\begin{figure}[H]
\caption{DFS \& BFS for First Graph}\label{1.a}
\centering
\includegraphics[width=.8\textwidth]{running1a}
... | TeX | CS6363/homeworks/hw3/running.tex | hanlin-he/UTD | mit | 1,980 | 63 | codeparrot/github-code |
f247bf450c8f01f904021631f5eee8a6cbd30ea504cf77c669bd1a911b59270c | <?php
use awheel\App;
use Monolog\Logger;
use awheel\Support\Arr;
use awheel\Http\Request;
use awheel\Http\Response;
use awheel\Routing\Router;
use awheel\Http\Kernel as HttpKernel;
use awheel\Console\Kernel as ConsoleKernel;
/**
* 返回应用实例, 或应用组件
*
* @param $make
*
* @return App|Router|Request|Response|HttpKernel... | PHP | src/Support/Helpers.php | awheel/framework | mit | 1,293 | 64 | codeparrot/github-code |
0d412165acd041bd9206dc1d61611b35767093d039aa3be7c7ff81f7485236a3 | #include "../widgetslib.h"
#include "button.h"
#include "Meta/math/vector4.h"
#include "vertex.h"
#include "Meta/keyvalue/metatable_impl.h"
#include "Meta/serialize/serializetable_impl.h"
#include "fontloader.h"
#include "imageloader.h"
METATABLE_BEGIN_BASE(Engine::Widgets::Button, Engine::Widgets::WidgetBase)
M... | C++ | plugins/core/widgets/src/Madgine/widgets/button.cpp | MadManRises/Madgine | mit | 3,973 | 158 | codeparrot/github-code |
c2d79b72e57169a89816f0afe8fa08b8cdf1fca5fd7c15de9d6c7e57e19ae555 | // Copyright 2014 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package base
import (
"container/list"
"encoding/json"
"fmt"
"html/template"
"runtime"
"strings"
"time"
"golang.org/x/net/html/charset"
"golang.org... | GO | modules/base/template.go | pecastro/gogs | mit | 6,058 | 291 | codeparrot/github-code |
c229949e12a5cea456bf76ed1542398b29bac62d9fd66ca0489120d508bbe9cc | import {Sample} from './sample'
import {context} from './init_audio'
let instanceIndex = 0
export class SampleOscillator extends Sample{
constructor(sampleData, event){
super(sampleData, event)
this.id = `${this.constructor.name}_${instanceIndex++}_${new Date().getTime()}`
if(this.sampleData === -1){
... | JavaScript | src/sample_oscillator.js | abudaan/qambi | mit | 1,076 | 45 | codeparrot/github-code |
003982f0e450401e85204a5ce091586148f86a78e5eb38f03624256b513796f5 | <!--
Copyright 2005-2008 Adobe Systems Incorporated
Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
or a copy at http://stlab.adobe.com/licenses.html)
Some files are held under additional license.
Please see "http://stlab.adobe.com/licenses.html" for more information.
-->... | HTML | documentation/html/group__partial__sum.html | brycelelbach/asl | mit | 12,004 | 257 | codeparrot/github-code |
d7f0428d0a93ca8f6c8ce04c28d69daa365e5aca047c741895e88560405b43cd | // This code is largely borrowed from: github.com/louischatriot/nedb-to-mongodb
// This code moves your data from NeDB to MongoDB
// You will first need to create the MongoDB connection in your /routes/config.json file
// You then need to ensure your MongoDB Database has been created.
// ** IMPORTANT **
// There are ... | JavaScript | data/mongodbUpgrade.js | mrvautin/openKB | mit | 4,886 | 135 | codeparrot/github-code |
3ae320b07be36b9feb59dcf300e0a9e8d4eef20991223d18efd9e46b761c54ae | /*
* Copyright (c) 2010 Simon Hardijanto
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, ... | Java | test/magefortress/jobs/subtasks/MFGotoLocationSubtaskTest.java | metaluna/magefortress | mit | 8,185 | 243 | codeparrot/github-code |
089016db62f055192bd8cdef179ced7b742d1f3a28adf211041cfd157be57ace | using System;
using System.Runtime.CompilerServices;
using Pantheon.Core.MessageRouting;
namespace Pantheon.Core
{
public class MessageCallback
{
private ulong _callback;
private MessageCode _expected;
private Message _request;
private Message _response;
private Message... | C# | Pantheon.Core/MessageCallback.cs | seaboy1234/Pantheon | mit | 3,005 | 107 | codeparrot/github-code |
b6178516f0c825c86a595b7b3e4c2687cefc3156e9d25cbd81cf979ac78a7077 | var React = require('react'),
cx = require('classnames'),
constants = require('./constants');
var Preloader = React.createClass({
propTypes: {
size: React.PropTypes.oneOf(constants.SCALES),
active: React.PropTypes.bool,
colors: React.PropTypes.array
},
getDefaultProps() {
return {
... | JavaScript | src/Preloader.js | openmaphub/react-materialize | mit | 1,309 | 52 | codeparrot/github-code |
c9b8056ae6e2ce9221beddddcd5b19e107b8d5eaf3516d18d113e18233363dee | <!DOCTYPE html>
<html lang="en">
<!-- Head tag -->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="imgss在 Github 上的个人博客">
<meta name="keyword" content="null">
... | HTML | blog/hexo/archives/2017/04/index.html | imgss/imgss.github.io | mit | 13,598 | 445 | codeparrot/github-code |
ac7e0a43cf85d1775d400340a6c5814af4abd91b0b03a783b023638aad8b4516 | class DotenvHaiku
# Dotenv Railtie for using Dotenv to load environment from a file into
# Ruby applications
class App
# Public: Load dotenv
#
# Manually call `Dotenv::Railtie.load` in your app's config
def load(options = {})
Dotenv.load(*to_load(options))
end
# Internal: Try the `R... | Ruby | lib/dotenv-haiku/to_load/generic.rb | metavida/dotenv-haiku | mit | 835 | 32 | codeparrot/github-code |
804dfeb17e70920d5ea986e041abf382c6bc3048af086128bdf259fe80ae12f9 | #include "nilConfig.h"
#include "nil.h"
#include "nilUtil.h"
#include "nilWindows.h"
#ifdef NIL_PLATFORM_WINDOWS
#define NIL_FIELD_OFFSET(type, field) ((LONG_PTR)&(((type*)0)->field))
#define NIL_DIJ2OFS_BUTTON(n) (NIL_FIELD_OFFSET(DIJOYSTATE2, rgbButtons)+(n))
#define NIL_DIJ2OFS_POV(n) (NIL_FIELD_OFFSET(DIJO... | C++ | src/windows/directinput/DirectInputController.cpp | noorus/nil | mit | 9,142 | 267 | codeparrot/github-code |
34c21c66a96120ee376a88d3004dcea7fc703fab0c1d00f4483eed50fc001969 | #ifndef ICAL_PARAMETERS_altrep_H
#define ICAL_PARAMETERS_altrep_H
#include <ostream>
#include "core/genericpropertyparameter.h"
#include "parserexception.h"
namespace ical {
namespace parameters {
class AltRep
{
private:
std::string value;
public:
static const std::string NAME;
const std::string &getV... | C | src/parameters/altrep.h | LuboO/iCalendar-parser_PA193_Rteam | mit | 594 | 34 | codeparrot/github-code |
b16928d665bc4761084b89e9a9085ad57ea5a095ef5ad659e16277206d0ed9d5 | let userDao = require('../dao/userDao'),
articleDao = require('../dao/articleDao'),
commentDao = require('../dao/commentDao'),
starDao = require('../dao/starDao'),
messageDao = require('../dao/messageDao'),
voteDao = require('../dao/voteDao'),
settings = require('../config/settings'),
tools ... | JavaScript | routes/api.js | wayshon/community-server | mit | 8,529 | 311 | codeparrot/github-code |
a7f0bf0e5418f41d6df9ab1f766bd46692cecbaafb2633c602e323cc972a8573 | from pandac.PandaModules import *
from toontown.toonbase.ToonBaseGlobal import *
from DistributedMinigame import *
from direct.interval.IntervalGlobal import *
from direct.fsm import ClassicFSM, State
from direct.fsm import State
from toontown.safezone import Walk
from toontown.toonbase import ToontownTimer
from direct... | Python | toontown/minigame/DistributedTagGame.py | ToonTownInfiniteRepo/ToontownInfinite | mit | 10,955 | 287 | codeparrot/github-code |
645045436337ff7962a6dcfcb79211c9029d8655a6c326349ffb023cade4fe9e | /* @flow */
import * as React from 'react';
import cn from 'classnames';
import { StyleClasses } from '../theme/styleClasses';
type Props = {
// An optional inline-style to apply to the overlay.
style: ?Object,
// An optional css className to apply.
className: ?string,
// Boolean if this divider should be in... | JavaScript | src/Divider/Divider.js | boldr/boldr-ui | mit | 1,118 | 46 | codeparrot/github-code |
918bc499b2bf825d12ff5bdea415141ee2b7c5f102a4a474883857387c4f004a | import * as $ from 'jquery';
import { clearStyles } from '../util';
import { Article } from '..';
export const cleanup = () => {
$('#scrollDiv').remove();
}
export function parse(): Article {
let articleBody = clearStyles($('.article-text')[0].cloneNode(true));
let $subtitle = $('.subtitle', articleBody);... | TypeScript | src/impl/한겨레.ts | disjukr/jews | mit | 1,117 | 32 | codeparrot/github-code |
dc5b57055d590000b164761c2b2753e336bd06855d2447353f1f1226a87f0629 | import {Task} from './task.model'
import {Injectable} from 'angular2/core'
import {Http, Response, Headers, RequestOptions} from 'angular2/http';
import {Observable} from "rxjs/Observable";
@Injectable()
export class TaskService {
constructor(
private http: Http
) { }
private _tasksUrl = 'api/... | TypeScript | front/ts/task.service.ts | c-bata/kobin-example | mit | 2,019 | 65 | codeparrot/github-code |
2765f00d73607c1ead7e0a5889e367192c485581c619a14e225b2542b974365e | <?php
/**
* Copyright 2016 Sony Corporation
*/
namespace CdnPurge\Limelight;
use CdnPurge\Common\Enum\BasicEnum;
/**
* Limelight specific constants
*/
abstract class ApiConstants extends BasicEnum
{
/** constants root */
const CONST_ROOT = 'limelight';
/** Configuration related constants */
cons... | PHP | src/Limelight/ApiConstants.php | sony/cdn-purge-control-php | mit | 1,130 | 44 | codeparrot/github-code |
a83d1fd5388a70389b200d1446f5f9ac8346cca5727ab493fa1f803312fbe124 | var windowHeight = $(window).height();
var menuBarHeight = $('#codeplayer-menubar').height();
$('.codeplayer-code-container').css('height', (windowHeight - menuBarHeight) + 'px');
$('.codeplayer-toogle').click(function() {
$(this).toggleClass('codeplayer-selected');
var codeContainerDiv = '#codeplayer-' + $(thi... | JavaScript | robpercival/4.jQuery/js/codeplayer.js | phillipemoreira/web-development | mit | 1,020 | 32 | codeparrot/github-code |
bf0fed2477d1dd3bc0700865c4200178a2bb5d56d3d7c03ecd98e00c1d7e1b11 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using TAlex.MathCore.ExpressionEvaluation.Extensions;
using TAlex.MathCore.ExpressionEvaluation.Helpers;
namespace TAlex.MathCore.ExpressionEvaluation.Trees.Metadata
{
public class DefaultFunctionMetada... | C# | src/TAlex.MathCore.ExpressionsBase/Trees/Metadata/DefaultFunctionMetadataProvider.cs | T-Alex/MathCore | mit | 3,156 | 83 | codeparrot/github-code |
c25961e24c5aee280ca8518e8c5eb56939605bd1a4a3a7946addf88a326870a1 | (function() {
'use strict';
angular.module('cd.app.registerForm')
.controller('RegisterFormController', RegisterFormController);
/* @ngInject */
function RegisterFormController ($location, StepsService) {
var $ctrl = this;
$ctrl.selectedPlatform = JSON.parse(localStorage.g... | JavaScript | src/pages/register-form/register-form.controller.js | RaphaelGuimaraes/celular-direto | mit | 1,263 | 41 | codeparrot/github-code |
8eadb4581789c2a827ec77e03e3b023fb61838fd643e0c7dd49d4dfcc3c33b10 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>just some testing</title>
<scriptsss src="//cdn.jsdelivr.net/bluebird/3.4.0/bluebird.js"></scriptsss>
<script type="text/javascript" src="btrees/persistentBPlusTree.js"></script>
<script type="text/javascript" src="murmurHash3.min... | HTML | Client/Source/Database/datomsWorkspace.html | benjaminy/ManyHands | mit | 10,616 | 225 | codeparrot/github-code |
7ae97fc80b192bbb4a8a9b4ca0d0eb78ab42edbb4d013b0f47df6b326c4115ed | from pokemongo_bot.human_behaviour import sleep
from pokemongo_bot.base_task import BaseTask
class IncubateEggs(BaseTask):
SUPPORTED_TASK_API_VERSION = 1
last_km_walked = 0
def initialize(self):
self.ready_incubators = []
self.used_incubators = []
self.eggs = []
self.km_w... | Python | pokemongo_bot/cell_workers/incubate_eggs.py | Compjeff/PokemonGo-Bot | mit | 8,649 | 216 | codeparrot/github-code |
cf853e7d48c7c183807bd94fb23ade9e89fec7ce885827c127b76c839db912d9 | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
Verify data doesn't have basic mistakes, like empty text fields or empty label
candidates.
## Examples
```shell
par... | Python | parlai/scripts/verify_data.py | facebookresearch/ParlAI | mit | 5,106 | 156 | codeparrot/github-code |
9c9a6e3abe70e33f48ab3f51c419a30fb808df52b0aea794a564031aa52cd31a | package gonfler
import (
"archive/tar"
"os"
)
type TarArchive struct {
handle *tar.Reader
file *os.File
}
func (archive TarArchive) Close() error {
return archive.file.Close()
}
func (archive TarArchive) Volumes() VolumeIterator {
var next func() VolumeIterator
next = func() VolumeIterator {
header, err ... | GO | untar.go | AlbanSeurat/gonfler | mit | 705 | 41 | codeparrot/github-code |
a47636de06b4aa157c73f9dab356f4ad19e195f8bea74ad3b5748f3c67c84ea4 | // Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 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 <boost/assign/list_of.hpp>
#include "wallet.h"
#include "walletdb.h"
#include... | C++ | src/rpcwallet.cpp | pangubi/pangubi | mit | 53,760 | 1,560 | codeparrot/github-code |
d35502a7b731cb2ea498312f51d177e20ed0f50b4587c273b6d0d1d34fd2783e | import { Actor } from './game';
import { Point, Size } from './foundation';
export class Rectangle implements Actor {
public isAlive: boolean;
protected rectCenter: Point;
protected rectSize: Size;
protected horizontalDirection: number;
protected verticalDirection: number;
constructor(center:... | TypeScript | src/shapes.ts | garolard/graphic-toys | mit | 2,760 | 98 | codeparrot/github-code |
37bc646c0be6d810603fb39611e72bad1c7e6bf6bb6d75299728bd5b40e64b44 | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.desk.notifications import delete_notification_count_for
from frappe.core.doctype.user.user import STANDARD_USERS
from frappe.utils.u... | Python | frappe/desk/page/messages/messages.py | vCentre/vFRP-6233 | mit | 3,886 | 120 | codeparrot/github-code |
edfadd615439a594c14aa66d0b4f168b6935c471fb9cae7db7a0110cf795bb3b | import {CORE_DIRECTIVES} from 'angular2/common';
import {Component} from 'angular2/core';
import {OnInit} from 'angular2/core';
import {NotificationService} from '../../service/notification-service';
import {Alert} from 'ng2-bootstrap/ng2-bootstrap';
@Component({
selector: 'notification-center',
template: re... | TypeScript | src/app/common/directives/notification-center/notification-center.ts | z424brave/DKClient | mit | 967 | 42 | codeparrot/github-code |
ad8cb179a2e218365a8a2584cb1c98db29a7d251e728dd56ec482193bbe0ce2f | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>paramcoq: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.cs... | HTML | clean/Linux-x86_64-4.04.2-2.0.5/released/8.6/paramcoq/1.1.2+coq8.12.html | coq-bench/coq-bench.github.io | mit | 7,312 | 180 | codeparrot/github-code |
56b0fd52c0d84971369aaa8fdec83febd9f2c42faf836dbc9767458f995b3fa0 | /**
* Copyright (c) 2014 Famous Industries, 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 restriction, including without limitation
* the rights to use, copy, modify, m... | JavaScript | src/app/js/main.js | hemantasapkota/pdfspeaker | mit | 4,131 | 116 | codeparrot/github-code |
9aa8c4a109eb048cbc93642a803bf4dfda79ef22a46bf3d2755307cceb963ff6 | import React, { Component, PropTypes } from 'react';
import Select from 'react-select';
import { omit } from 'lodash';
import classNames from 'classnames';
import styles from './styles.scss';
import chevronIcon from '../../../assets/images/icons/chevron-down.svg';
export const THEMES = { OLD: 'old', INTERNAL: 'interna... | JavaScript | app/components/UIKit/SelectField/index.js | singaporesamara/SOAS-DASHBOARD | mit | 2,115 | 80 | codeparrot/github-code |
d15bfa2f2ee51b806a17ed520f0c3a882d9c6a0d7d00b1b9cfb639076c158c55 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: ai ts=4 sts=4 et sw=4 nu
from __future__ import (unicode_literals, absolute_import,
division, print_function)
import logging
from django.core.management.base import BaseCommand
from optparse import make_option
from py3compat import PY2
from... | Python | snisi_maint/management/commands/entities_to_cascades.py | yeleman/snisi | mit | 2,413 | 74 | codeparrot/github-code |
8b4f93e90bf9dab2573ee36cff3ea0528dafa70b9a235d75238777c1e7f1696b | <?php
namespace Virgin\ChannelGuideBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Channel
*
* @ORM\Table(name="channel")
* @ORM\Entity(repositoryClass="Virgin\ChannelGuideBundle\Entity\ChannelRepository")
*/
class Channel implements ChannelInterface
{
/**
* @var integer
*
* @ORM\Column... | PHP | src/Virgin/ChannelGuideBundle/Entity/Channel.php | guided1/virgin-symfony-test | mit | 1,127 | 72 | codeparrot/github-code |
4ed03a6dc50780022193e6444fb96d7b7e5556eb66c44425d165507840e43b8e | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from runner.koan import *
# Greed is a dice game where you roll up to five dice to accumulate
# points. The following "score" function will be used calculate the
# score of a single roll of the dice.
#
# A greed roll is scored as follows:
#
# * A set of three ones is 100... | Python | python3/koans/about_scoring_project.py | kimegitee/python-koans | mit | 2,731 | 103 | codeparrot/github-code |
9e8aaf5e36fef845e63b9aac07d8ab50c07223baf7743c776bbaf9554583eb4a | #ifndef _TCompare_H_
#define _TCompare_H_
//////////////////////////////////////////////////////////////////////////////
//
// Compare Object
//
//////////////////////////////////////////////////////////////////////////////
class DefaultEquals {
public:
template<class TEqualsValue>
bool operator () (const TEq... | C | src/zlib/tcompare.h | AllegianceZone/Allegiance | mit | 1,072 | 50 | codeparrot/github-code |
a146bd75ec46009d4b143ab185694ec6b70afa4bd7925c1b5cdbfbd6d2209c9f | <!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" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style>
/*<![CDATA[*/
body{
width: 1024px;
margin: 0;
pa... | HTML | fdls/nav.html | notus629/notus629.github.io | mit | 45,069 | 887 | codeparrot/github-code |
55cae081fc3171f3ac78777d1dd5624241daaac617f89528be203fd8589f15bb | <?php
//common environment attributes including search paths. not specific to Learnosity
include_once '../../env_config.php';
//site scaffolding
include_once 'includes/header.php';
//common Learnosity config elements including API version control vars
include_once '../../lrn_config.php';
use LearnositySdk\Request\I... | PHP | www/usecases/customquestions/custom.php | Learnosity/learnosity-demos | mit | 4,981 | 161 | codeparrot/github-code |
429cdee7891702f669b0791e4a13b5436f870b2f74568ef26ff55bbdf0920984 | <!DOCTYPE html>
<html>
<head>
<title>Opularity | Getting Steam</title> <!--Change the title Depending on your tutorial-->
<link href="Resources/css/bootstrap.css" rel='stylesheet' type='text/css' />
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<... | HTML | trading.html | Opularity/Opularity.github.io | mit | 7,359 | 162 | codeparrot/github-code |
45c62d065ce6aa78852729421df21b9e998ed69fde0c4b6f1936d1e84c47d2a1 |
#pragma once
#include <glkernel/noise.h>
#include <glkernel/glm_compatability.h>
namespace
{
// From // JAVA REFERENCE IMPLEMENTATION OF IMPROVED NOISE - COPYRIGHT 2002 KEN PERLIN. (http://mrl.nyu.edu/~perlin/noise/)
// and (Improving Noise - Perlin - 2002) - http://mrl.nyu.edu/~perlin/paper445.pdf
const std::v... | C++ | source/glkernel/include/glkernel/noise.hpp | cginternals/glkernel | mit | 15,839 | 425 | codeparrot/github-code |
825c691382685583296fdace616faee189da6cf13d1cd7b33a347327e56017e0 | #include "ofxCv/Helpers.h"
#include "ofxCv/Utilities.h"
namespace ofxCv {
using namespace cv;
ofMatrix4x4 makeMatrix(Mat rotation, Mat translation) {
Mat rot3x3;
if(rotation.rows == 3 && rotation.cols == 3) {
rot3x3 = rotation;
} else {
Rodrigues(rotation, rot3x3);
}
double* rm = rot3x3.ptr<double>... | C++ | libs/ofxCv/src/Helpers.cpp | cran-io/ofxCv | mit | 4,884 | 184 | codeparrot/github-code |
2a7c49ecbfe5a7856acf646b3f90164ea6dad141457300b7ce8ac7e467c0024f | <?php
namespace User\Form;
class User extends \Zend\Form\Form
{
/**
* @var \User\Model\User
*/
protected $userModel;
/**
*
* @param \User\Model\User $userModel
* @param array $options
*/
public function __construct(\User\Model\User $userModel, array $options = []) ... | PHP | module/User/src/User/Form/User.php | mzieba/zpp-zf2-crud | mit | 6,821 | 215 | codeparrot/github-code |
35195a04b19c4797906e4c5b95c548755ff373fcdb0e9ef6e8254826c180337d | Notify = function(text, callback, close_callback, style) {
var time = '10000';
var $container = $('#notifications');
var icon = '<i class="fa fa-info-circle "></i>';
if (typeof style == 'undefined' ) style = 'warning'
var html = $('<div class="alert alert-' + style + ' hide">' + icon + " " + text + '</div>... | JavaScript | assets/js/notify.js | nil1990/earth_nine_ecomm | mit | 965 | 46 | codeparrot/github-code |
050205e1c067826878aaa3d83ff42fee064cd0b9e2f4454f106a94cc8f086b44 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using QrF.Core.Admin.Dto;
using QrF.Core.Admin.Interfaces;
using Microsoft.AspNetCore.Hosting;
namespace QrF.Core.Admin.Controllers
{
/// <summary>
/// 用户管理
///... | C# | src/apis/QrF.Core.Admin/Controllers/UserController.cs | ren8179/QrF.Core | mit | 3,659 | 99 | codeparrot/github-code |
a424c6337fbc9f39a488dfc6070db8c9071676f91da4f067ec11a963e3364a58 | import React from 'react';
import Link from 'gatsby-link';
import { BlogPostContent, BlogPostContainer, TagList } from '../utils/styles';
import { arrayReducer } from '../utils/helpers.js';
export default function TagsPage({
data
}) {
const { edges: posts } = data.allMarkdownRemark;
const categoryArray = arrayR... | JavaScript | src/pages/categories.js | aberkow/gatsby-blog | mit | 1,085 | 44 | codeparrot/github-code |
1aa683da42c2998598d2942cf34b1f14ec6bdba01b272c9e3869d7e12c5a5b47 | /*****************************************************************
* Copyright (c) 2005 Tim de Jong, Brent Miszalski *
* *
* All rights reserved. *
* Distributed under the terms of the MIT License. *
****************************************************************... | C | Src/Headers/ColourView.h | HaikuArchives/BeTeX | mit | 911 | 35 | codeparrot/github-code |
a697a268d3941207a12674f065c1d5956320545f5dd625aa5ea54cb41dd24297 | <?php
namespace Rails\ActiveRecord\Associations;
use Rails\ServiceManager\ServiceLocatorAwareTrait;
class Associations
{
use ServiceLocatorAwareTrait;
protected static $associationsByClass = [];
/**
* @var Loader
*/
protected static $loader;
/**
* Associations name =>... | PHP | src/Rails/ActiveRecord/Associations/Associations.php | railsphp/framework | mit | 5,766 | 196 | codeparrot/github-code |
d15928101f9f105a1cb4eb728558d51f3bb87c4a11d078d2c310fca08403d99c | //
// MGCMonthPlannerView.h
// Graphical Calendars Library for iOS
//
// Distributed under the MIT License
// Get the latest version from here:
//
// https://github.com/jumartin/Calendar
//
// Copyright (c) 2014-2015 Julien Martin
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
... | C | CalendarLib/MGCMonthPlannerView.h | arnaudWasappli/Calendar | mit | 22,518 | 571 | codeparrot/github-code |
c8d9c756ed3bc1b355a58e36747d0ea8b826e48fe0e0c3dd7165ae96b2233b42 | /* -*- javascript -*- */
"use strict";
import {StageComponent} from 'aurelia-testing';
import {bootstrap} from 'aurelia-bootstrapper';
import {LogManager} from 'aurelia-framework';
import {ConsoleAppender} from 'aurelia-logging-console';
import {customMatchers} from '../helpers';
describe('ui-icon', () => {
let com... | JavaScript | test/unit/elements/ui-icon_spec.js | ged/aurelia-semantic-ui | mit | 4,822 | 217 | codeparrot/github-code |
c3c019f0fed992bcda3d97bc48f56cc0a27f02429861335d2440059a55d57387 | package com.github.messenger4j.send.message.template.receipt;
import static java.util.Optional.empty;
import java.net.URL;
import java.util.Optional;
import lombok.EqualsAndHashCode;
import lombok.NonNull;
import lombok.ToString;
/**
* @author Max Grabenhorst
* @since 1.0.0
*/
@ToString
@EqualsAndHashCode
public ... | Java | src/main/java/com/github/messenger4j/send/message/template/receipt/Item.java | messenger4j/messenger4j | mit | 1,752 | 80 | codeparrot/github-code |
21b2f01d07e89913aad6746a05e54f01c68116530f7c71d90bef02ffddc609b8 | //
// This software is released under the 3-clause BSD license.
//
// Copyright (c) 2015, Xin Chen <txchen@gmail.com>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
// * Redistributions o... | JavaScript | assets/js/midi.js | fosscellcet/drishticryptex2017 | mit | 40,433 | 1,111 | codeparrot/github-code |
ba59ba4a3389e7f626fc74ac92f57f958db2b02a402e4aa79dcec83e0a247660 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Pirate.Ldap;
using Pirate.Ldap.Web;
using Pirate.Util.Logging;
namespace MemberService
{
public partial class ChangePassword : CustomPage
{
protected override string... | C# | Organigram/MemberService/ChangePassword.aspx.cs | ppschweiz/MemberDatabase | mit | 3,413 | 129 | codeparrot/github-code |
300bef1f27d5b469001ebac04bc80d7bf78bb900f431e48ee249c7e4cf493a81 | import * as React from 'react';
import { LangConsumer } from '../LangContext';
import { Schema } from 'jsoninput';
import { infoStyle } from './commonView';
import { css } from 'glamor';
import IconButton from '../Components/IconButton';
interface Translation {
translation: string;
status: string;
}
interface... | TypeScript | wegas-app/src/main/node/wegas-react-form/src/HOC/translatable.tsx | Heigvd/Wegas | mit | 8,590 | 225 | codeparrot/github-code |
8080afe9185259489eca652e078242db05817fa1c2ac46a94d1e021a430b38f5 | # -*- coding: utf-8 -*-
#
# This file is part of Karesansui.
#
# Copyright (C) 2009-2012 HDE, 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 restriction, including without lim... | Python | karesansui/gadget/guestby1currentsnapshot.py | karesansui/karesansui | mit | 4,377 | 117 | codeparrot/github-code |
2e0048007d548ada80f65f4028dc6ffee96e67a8f73f16b405280e8ea171f889 | import { SelectableItem, LoadableItem } from '../core/classes';
import { Company, CompanyDetail } from './contracts';
import { StorageItem } from './storage/models';
export class CompanyItem extends SelectableItem {
private _item : Company;
get item() {
return this._item;
}
set item(i : Company) {
this... | TypeScript | app/corps/models.ts | alexiusp/vc-manager | mit | 1,356 | 65 | codeparrot/github-code |
8f955804f17df56fda1a1d223649787a305206d145555315931f6ff2e77254ae | <!DOCTYPE html>
<html lang="ca-es" data-theme="">
<head>
<meta charset="utf-8">
<meta name="HandheldFriendly" content="True">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="referrer" content="no-referrer-when-downgrade">
<title>La vista cansada</title>
<meta name="de... | HTML | 2018/05/30/alberto-manguel-stevenson.html | carlesbellver/carlesbellver.github.io | mit | 5,981 | 228 | codeparrot/github-code |
797043184bd0439963354f20cbc783899dbe7fec0aae6bfef2e39852913c638b | package org.foi.androidworkshop.adapters;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import org.foi.androidworkshop.R;
import org.foi.androidworkshop.models... | Java | app/src/main/java/org/foi/androidworkshop/adapters/PokemonAdapter.java | mjurinic/AndroidWorkshop | mit | 1,685 | 55 | codeparrot/github-code |
fa01ac7301a040838040109cf5b90bf4792c5839ffb4f2be402a3435a5bd0b4c | <?php
namespace App\LoginModule\LTI\Tool;
/**
* Class to represent a tool consumer
*
* @author Stephen P Vickers <stephen@spvsoftwareproducts.com>
* @version 2.5.00
* @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3
*/
class LTI_Tool_Consumer {
/**
* @var string Loc... | PHP | app/LoginModule/LTI/Tool/LTI_Tool_Consumer.php | France-ioi/login-module | mit | 7,122 | 269 | codeparrot/github-code |
4755fa2f35037a7ddddf50488f166d08a507949eac8424279dcf39641c6717b9 | #!/usr/bin/env python
import os,sys
folder = "/media/kentir1/Development/Linux_Program/Fundkeep/"
def makinGetYear():
return os.popen("date +'%Y'").read()[:-1]
def makinGetMonth():
return os.popen("date +'%m'").read()[:-1]
def makinGetDay():
return os.popen("date +'%d'").read()[:-1]
def makinGetPrevYear(daypassed)... | Python | Fundkeep/modul/b__main_backu.py | imakin/PersonalAssistant | mit | 2,347 | 99 | codeparrot/github-code |
f419b68751793ad8146b0afaa8ed295a60654b475e186949423a87010b92f9aa | module Usb
def self.devices(conditions={})
get_device_list.select { |d| d.match?(conditions) }
end
def get_device_list(context=nil); end # Source code is in rusb.c.
end
class Usb::Device
def initialize
raise NotImplementedError, "To get a Usb::Device object, use Usb::get_device_list"
end
def ... | Ruby | lib/ruby-usb-pro/device.rb | DavidEGrayson/ruby-usb-pro | mit | 2,250 | 108 | codeparrot/github-code |
f25818009e5c516f82a5772743e01644f85331724d02c9b5a642994281abb4c0 | /**
*/
package es.um.nosql.streaminginference.NoSQLSchema.impl;
import es.um.nosql.streaminginference.NoSQLSchema.NoSQLSchemaPackage;
import es.um.nosql.streaminginference.NoSQLSchema.PrimitiveType;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore... | Java | projects/es.um.nosql.streaminginference/src/es/um/nosql/streaminginference/NoSQLSchema/impl/PrimitiveTypeImpl.java | catedrasaes-umu/NoSQLDataEngineering | mit | 3,672 | 170 | codeparrot/github-code |
d8f6407d9c36b4f373fb2f375a9024743346d8de0c421d1049b25ba7c5105122 | package com.chariotinstruments.markets;
import java.util.ArrayList;
/**
* Created by user on 1/30/16.
*/
public class CalcRSI {
private MarketDay marketDay;
private ArrayList<MarketCandle> marketCandles;
private double gainAverage;
private double lossAverage;
public CalcRSI(MarketDay marDay){
... | Java | app/src/main/java/com/chariotinstruments/markets/CalcRSI.java | mikemey01/Markets | mit | 2,899 | 108 | codeparrot/github-code |
07051cd1739598ef8e5452653115f3bf2d0ccc1d004254b1d9c46c58b5a06016 | 'use strict';
let TimeseriesShowController = function($scope, $controller, $timeout,
NpolarApiSecurity, NpolarTranslate,
npdcAppConfig,
Timeseries, TimeseriesModel, TimeseriesCitation, google, Sparkline) {
'ngInject';
let ctrl = this;
ctrl.authors = (t) => {
return t.authors.map(a => {
return ... | JavaScript | src/indicator-timeseries/TimeseriesShowController.js | npolar/npdc-indicator | mit | 3,741 | 116 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.