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 |
|---|---|---|---|---|---|---|---|---|
e80842863552f01796fcd764799bef7e35b5754f7095d4a862306e98a6781dc6 | from SBaaS_base.postgresql_orm_base import *
class data_stage01_rnasequencing_analysis(Base):
__tablename__ = 'data_stage01_rnasequencing_analysis'
id = Column(Integer, Sequence('data_stage01_rnasequencing_analysis_id_seq'), primary_key=True)
analysis_id = Column(String(500))
experiment_id = Column(Str... | Python | SBaaS_rnasequencing/stage01_rnasequencing_analysis_postgresql_models.py | dmccloskey/SBaaS_rnasequencing | mit | 2,579 | 59 | codeparrot/github-code |
19b8d296e3263e06cf34dcd924b38e20bc8543104f347376b82f700aece93114 | require 'faraday'
# @private
module Faraday
module Disqussion
# @private
class RaiseHttp4xx < ::Faraday::Response::Middleware
def on_complete(env)
case env[:status].to_i
when 400
raise ::Disqussion::BadRequest.new(error_message(env), env[:response_headers])
when 401
... | Ruby | lib/faraday/disqussion/raise_http_4xx.rb | jeremyvdw/disqussion | mit | 997 | 37 | codeparrot/github-code |
3c10e3ef988b6b7d2f9e20349e7a21f1a3039e592477fd82d0e2122933135bee | package jp.co.future.uroborosql.parameter.mapper;
import static org.hamcrest.MatcherAssert.*;
import static org.hamcrest.Matchers.*;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.math.BigDecimal;
import java.sql.Connection;
import java.sql.Timestamp;
import java.text.ParseException;
imp... | Java | src/test/java/jp/co/future/uroborosql/parameter/mapper/BindParameterMapperManagerTest.java | future-architect/uroborosql | mit | 6,049 | 179 | codeparrot/github-code |
0ab7b6331907c97b5cbdcccb26975b758620c9bdf302e65f7da99352b268473d | <?php namespace Ejimba\Pesapal\OAuth;
class OAuthRequest {
private $parameters;
private $http_method;
private $http_url;
// for debug purposes
public $base_string;
public static $version = '1.0';
public static $POST_INPUT = 'php://input';
function __construct($http_method, $http_url, $parameters=NULL) {
@... | PHP | src/Ejimba/Pesapal/OAuth/OAuthRequest.php | Ejimba/pesapal | mit | 7,121 | 260 | codeparrot/github-code |
adad620b8ed5819daf8629d9f28d2cfbc9b2b9f22819ac792b0de73e71e17ed5 | #!/bin/sh
# Capture the current version.
VERSION=`cat ./VERSION`
# Currently using YUI Compressor for minification.
YUICOMPRESSOR=./3pty/yui/yuicompressor/yuicompressor-2.4.7.jar
# To use the YUI Compressor, Java is required (http://java.com).
JAVA=`which java`
if [ "$JAVA" == "" ]; then echo "Not found: java" ; exi... | Shell | build.sh | m5n/uducada | mit | 2,544 | 66 | codeparrot/github-code |
21a9e9cfe846032401b080ac055e6934b9c35e67df51c2ba21cbf2f3448752bd | /*
* jQuery ZenPen url/link action
*
* Copyright (c) 2013 Deux Huit Huit (http://www.deuxhuithuit.com/)
* Licensed under the MIT (http://deuxhuithuit.mit-license.org)
* Based on the work of Tim Holman (https://github.com/tholman/zenpen)
* Licensed under the Apache License (https://github.com/tholman/zenpen/b... | JavaScript | src/js/jquery.zenpen.url.js | DeuxHuitHuit/jQuery-zenpen | mit | 2,580 | 107 | codeparrot/github-code |
8502058397bc5d6a51bbf04d08bb0b57671146d9d699df6f0918399e34881a7b | const mockMark = jest.fn();
const mockUnmark = jest.fn();
jest.mock('mark.js', () => () => ({
mark: mockMark,
unmark: mockUnmark,
}));
import { MarkerService } from '../MarkerService';
describe('Marker service', () => {
let marker: MarkerService;
const element = document.createElement('span');
beforeEach(... | TypeScript | src/services/__tests__/MarkerService.test.ts | Rebilly/ReDoc | mit | 2,623 | 102 | codeparrot/github-code |
5d77ec94ddefc52bd33f05a71f8e6c044ccb5e038019cecf4b66121667f8b989 | 'use strict';
var assert = require('assert');
var fs = require('fs');
var path = require('path');
describe('responsive-compass-sprite', function() {
describe('icon-sprite', function() {
function compare(expected, tmp, done) {
var baseExpected = __dirname + '/expected/icon-sprite',
... | JavaScript | test/main.js | git-patrickliu/responsive-compass-sprite | mit | 867 | 32 | codeparrot/github-code |
5f3c5bb929c8c421e3d09673f6ee09d771217a9dfb7817254ffd9ec9ebe59a51 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-odd-order: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap... | HTML | clean/Linux-x86_64-4.10.1-2.0.6/released/8.11.2/mathcomp-odd-order/1.7.0.html | coq-bench/coq-bench.github.io | mit | 8,292 | 183 | codeparrot/github-code |
f40c6fdafea262166701e9ed8fce5771d4371301bf18749f44c04436277aa1d5 | package goginjsonrpc
import (
"fmt"
"encoding/json"
"io/ioutil"
"net/http"
"reflect"
"github.com/gin-gonic/gin"
)
func jsonrpcError(c *gin.Context, code int, message string, data string, id string) {
c.JSON(http.StatusOK, map[string]interface{}{
"result": nil,
"jsonrpc": "2.0",
"error": map[string]int... | GO | jsonrpc.go | kanocz/goginjsonrpc | mit | 8,250 | 345 | codeparrot/github-code |
be1aad47e8bf5c45fa35bc69771850bca8af3ad20eca0c56ac42c1a6790cf8dc | package com.ftchinese.jobs.common
import org.eclipse.jetty.server.handler.gzip.GzipHandler
import org.eclipse.jetty.server.handler.{ContextHandler, ContextHandlerCollection}
import org.eclipse.jetty.server.{Server, ServerConnector}
import scala.collection.mutable.ArrayBuffer
/**
* An http server.
* Created by wanbo ... | Scala | src/main/scala/com/ftchinese/jobs/common/HttpServer.scala | FTChinese/push | mit | 1,840 | 75 | codeparrot/github-code |
06e6c8921bc4531a2e9ed8277a462f85c4269d28f7c44a747f31f8eb76c39c53 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>subst: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel... | HTML | clean/Linux-x86_64-4.10.1-2.0.6/released/8.11.1/subst/8.7.0.html | coq-bench/coq-bench.github.io | mit | 6,915 | 164 | codeparrot/github-code |
b4a3e7d984dacb60c9a8659e009b42a59b160249177104d93be019437cd797f9 | //
// BlackHoleDemo.h
// Drawing
//
// Created by Adrian Russell on 16/12/2013.
// Copyright (c) 2013 Adrian Russell. All rights reserved.
//
#ifndef __Drawing__BlackHoleDemo__
#define __Drawing__BlackHoleDemo__
#include "PhysicsDemo.h"
#include "ForceGenerator.h"
class BlackHoleDemo : public PhysicsDemo {
... | C | Demo App/Demos/BlackHoleDemo.h | aderussell/ARPhysics | mit | 803 | 41 | codeparrot/github-code |
b166381a72f527aad8f900940d325a7c3d3a14f036af5576607c545bf58e9711 | 'use strict';
var Q = require('q')
, _ = require('underscore');
exports.defaults = function () { return { storage: {} }; };
exports.mixin = {
/**
* Converts `arguments` to a key to be stored.
*/
toKey: function () {
return _.toArray(arguments);
},
contains: function () {
return this.contain... | JavaScript | lib/bolter-memory.js | filipovskii/bolter | mit | 894 | 46 | codeparrot/github-code |
3d9b0122f056d30a2a8ddca33b108c68594443f61f24ea4ab4402d76b500daa7 | <?php
namespace Baghayi\Skyroom\Factory;
use Baghayi\Skyroom\Room as RoomItself;
use Baghayi\Skyroom\User;
use Baghayi\Skyroom\Collection\Users;
use Baghayi\Skyroom\Exception\AlreadyExists;
use Baghayi\Skyroom\Request;
use Baghayi\Skyroom\Exception\DuplicateRoom;
final class Room {
private $request;
public ... | PHP | src/Factory/Room.php | baghayi/skyroom | mit | 1,107 | 44 | codeparrot/github-code |
1080da298ca3fd14d5c39eaf6b5dc5502b2cbf92c9b8a905c92adee8511fa6e2 | capstone.controller("RegisterCtrl", function($scope,$http,AuthFactory,$location,user1){
// $(".button-collapse").sideNav();
$http.get(`states.json`)
.then((data)=>{
$scope.stateName = data.data
console.log($scope.stateName)
$('input.autocomplete').autocomplete({
data: $scope.stateName,
limit: 10 // The max... | JavaScript | app/controller/registerCtrl.js | priyakamesh/frontendcapstone-priya | mit | 2,390 | 74 | codeparrot/github-code |
9cd996b8af2368f8bae81c9bf6f43342242c2715f0fd3d1daf60a155d140ae9d |
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Query Objects — MongoAlchemy v0.8 documentat... | HTML | api/expressions/query.html | shakefu/MongoAlchemy | mit | 32,627 | 533 | codeparrot/github-code |
b55fe9d7218962ab698766b727d76a353b876d38c4b2181e27ae171b5fdd6583 | // # Ghost Configuration
// Setup your Ghost install for various environments
// Documentation can be found at http://support.ghost.org/config/
var path = require('path'),
config;
config = {
// ### Production
// When running Ghost in the wild, use the production environment
// Configure your... | JavaScript | config.example.js | PHILIP-2014/philip-blog | mit | 5,889 | 193 | codeparrot/github-code |
feacac7517dfbf0fca02d6733fcf00c14a1d9e020359a3323be47eaf226f8ff3 | <?php
namespace AppBundle\Service\Crud\Strategy;
/**
* @author Alexandr Sibov<cyberdelia1987@gmail.com>
*/
trait ResolverAwareTrait
{
/**
* @var ResolverInterface
*/
private $resolver;
public function setStrategyResolver(ResolverInterface $resolver)
{
$this->resolver = $resolver;
... | PHP | src/AppBundle/Service/Crud/Strategy/ResolverAwareTrait.php | Cyberdelia1987/symfony-test | mit | 575 | 31 | codeparrot/github-code |
a7a243771544815ee7aa26e867a0349b3368cd5c603c8a2ff8c8e5d5202d47f9 | (function(){
angular
.module('users')
.controller('UserController', [
'userService', '$mdSidenav', '$mdBottomSheet', '$log', '$q',
UserController
]);
/**
* Main Controller for the Angular Material Starter App
* @param $scope
* @param $mdSidenav
* @param avatars... | JavaScript | app/src/users/UserController.js | hassanabidpk/portfolio | mit | 2,971 | 98 | codeparrot/github-code |
ee45098e0d3039c2da9c03208687a8ab966da1231b31d4746a0c2b733b1ea10c | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>metacoq-pcuic: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.m... | HTML | clean/Linux-x86_64-4.02.3-2.0.6/released/8.9.0/metacoq-pcuic/1.0~alpha2+8.10.html | coq-bench/coq-bench.github.io | mit | 8,055 | 188 | codeparrot/github-code |
3681775d666d9b330e36c64e0f5b79976bfa8d9a8b185c9b47373ea775396344 | package io.mattw.youtube.commentsuite.util;
import java.awt.*;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.StringSelection;
import java.awt.datatransfer.UnsupportedFlavorException;
import java.io.IOException;
import java.util.List;
import java.util.stre... | Java | src/main/java/io/mattw/youtube/commentsuite/util/ClipboardUtil.java | mattwright324/youtube-comment-suite | mit | 1,872 | 64 | codeparrot/github-code |
617cd351215019f1e6ed6e18797c86bf8522a622bea39ba94de3522d96dac86b | <?php
namespace Nijens\FailureHandling;
use Nijens\Utilities\UnregisterableCallback;
/**
* FailureCatcher
*
* @author Niels Nijens <nijens.niels@gmail.com>
* @package Nijens\Failurehandling
**/
class FailureCatcher
{
/**
* The failure handler instance implementing FailureHandlerInterface
*
*... | PHP | src/FailureCatcher.php | niels-nijens/FailureHandling | mit | 4,222 | 153 | codeparrot/github-code |
d12376b686a3e39d2dac1bb0b4b5f3c4b4e510d07e95af769f3c26c45c9adee7 | namespace Farmhand.Installers.Patcher.Injection.Components.Modifiers
{
// ReSharper disable StyleCop.SA1600
using System;
using System.ComponentModel.Composition;
using Farmhand.Installers.Patcher.Cecil;
using Farmhand.Installers.Patcher.Injection.Components.Hooks;
using Farmhand.Installers.Pa... | C# | Libraries/Installers/Patcher/FarmhandPatcherCommon/Injection/Components/Modifiers/AlterProtectionHandler.cs | ClxS/Stardew-Farmhand | mit | 1,877 | 56 | codeparrot/github-code |
0feb29c44cb8cd081c0938641138a2eff5f776f5b3a2d33e015524bc46f70c29 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>elpi: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" r... | HTML | clean/Linux-x86_64-4.02.3-2.0.6/released/8.5.1/elpi/1.12.1.html | coq-bench/coq-bench.github.io | mit | 7,702 | 178 | codeparrot/github-code |
8ad87b52928c77b06f517b65bddac4238246c565c438a60761f53785597dbdd6 | <?php
namespace Superjobs\HomeBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use Superjobs\HomeBundle\Entity\CVtheque;
use Superjobs\HomeBundle\Form\CVthequeType;
use Superjobs\HomeBundle\Entity\Category;
use Superjobs\HomeBundle\Form\Categor... | PHP | src/Superjobs/HomeBundle/Controller/MainController.php | anderson-abc/Superjobs | mit | 2,833 | 89 | codeparrot/github-code |
2b3935ebbf28160caad15784a459faf3a8de0d55cf0b40212b8aac07f98c9b61 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>metacoq: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css... | HTML | clean/Linux-x86_64-4.05.0-2.0.1/released/8.11.0/metacoq/1.0~beta1+8.11.html | coq-bench/coq-bench.github.io | mit | 7,563 | 178 | codeparrot/github-code |
fda0f499a0712f638662f7bc3c09c5b917fc686df9aabb693de90f3f1c2af7fb | <?php
/**
* BjyAuthorize Module (https://github.com/bjyoungblood/BjyAuthorize)
*
* @link https://github.com/bjyoungblood/BjyAuthorize for the canonical source repository
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
namespace BjyAuthorize\Service;
use BjyAuthorize\View\UnauthorizedStrat... | PHP | src/BjyAuthorize/Service/UnauthorizedStrategyServiceFactory.php | JohnPaulConcierge/BjyAuthorize | mit | 1,135 | 38 | codeparrot/github-code |
eba6d965365a13f1491256eb9a4ea8ee0e354de9af6cebc678883da6cac7bedc | #!/usr/bin/python
# -*- coding: utf-8 -*-
# pylint: disable=invalid-name
from __future__ import absolute_import
from math import acos, cos, pi, radians, sin, sqrt
import auttitude as at
import numpy as np
def normalized_cross(a, b):
"""
Returns the normalized cross product between vectors.
Uses numpy.cros... | Python | auttitude/math.py | endarthur/autti | mit | 4,348 | 139 | codeparrot/github-code |
1d144133d0e50bcee5a3d22766538aa458d97771ca1cb858d59022b20d7b6e2e | c ----------------------------------------------------------------------
c
c Gaussian wake model applied to offshore wind farms (WindFarm object)
c by Juan P. Murcia <jumu@dtu.dk>
c
c Bastankhah, M., & Porte'-Agel, F. (2014). A new analytical model for
c wind-turbine wakes. Renewable Energy, 70, 116-123.
c
c ----------... | FORTRAN | fusedwake/gau/fortran/GAU.f | DTUWindEnergy/FUSED-Wake | mit | 32,442 | 832 | codeparrot/github-code |
2ed8337cf943d51571ad04c519d3d89ea2546018411cd5f9e15c39588634b00f | package dao;
import java.util.List;
import org.apache.ibatis.session.SqlSession;
import factory.FactoryService;
import vo.Bbs_CommmVo;
import vo.Board2Vo;
public class BoardDao2 {
private static BoardDao2 dao;
public static synchronized BoardDao2 getDao(){
if ( dao == null ) dao = new BoardDao2();
return dao;... | Java | Jsp1012-13_struts2-04/src/dao/BoardDao2.java | ByeongGi/Koata_Java | mit | 1,715 | 76 | codeparrot/github-code |
240eb2fd1fa3823efc804e95daf5965bc7967fa43c88d4e3f6d1cbe22c314a71 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.freteplanejado.entity;
/**
*
* @author 43596980895
*/
public class Frete {
private int id;
private String orige... | Java | FretePlanejado/src/java/com/freteplanejado/entity/Frete.java | 5devs/web-project-m1 | mit | 2,066 | 101 | codeparrot/github-code |
3d7bc17c00450eb1c3e2209afef368136ca1bdf810c9902ec945f410f45da1b0 | package main
import (
"fmt"
"log"
"net"
"os"
"github.com/kennylevinsen/g9p"
"github.com/kennylevinsen/g9ptools/fileserver"
"github.com/kennylevinsen/g9ptools/ramfs/ramtree"
)
func main() {
if len(os.Args) < 5 {
fmt.Printf("Too few arguments\n")
fmt.Printf("%s service UID GID address\n", os.Args[0])
fmt... | GO | ramfs/server.go | joushou/g9ptools | mit | 857 | 42 | codeparrot/github-code |
c62df56e97e6691329e456173307ac4f1f17269753c19d00394613d7b38610e8 | /**
* Usuario Controller Test Suite
*
* @author Thiago Paes <mrprompt@gmail.com>
* @license MIT
*/
'use strict';
var connection = require('../test');
var Usuario = require('../../src/controllers/UsuarioController');
var sinon = require('sinon');
var assert = require('assert');
var request = require('request');
... | JavaScript | test/controllers/UsuarioControllerTest.js | mrprompt/expressjs-api-skel | mit | 2,672 | 124 | codeparrot/github-code |
3a4223f3498a9d920bbc1d7b8cb3b804347a2ab18dce7287251cdd28d792d6cd | #!/usr/bin/env ts-node
import * as Path from 'path'
import * as Fs from 'fs'
import Ajv, { ErrorObject } from 'ajv'
function handleError(error: string) {
console.error(error)
process.exit(-1)
}
function formatErrors(errors: ErrorObject[]): string {
return errors
.map(error => {
const { dataPath, mes... | TypeScript | script/validate-changelog.ts | desktop/desktop | mit | 1,979 | 80 | codeparrot/github-code |
44def83fb5710156095291634836b49101b84ab8e52822f7ad3323a09d5c1a7d | <?php
namespace TheScienceTour\DocumentBundle\Document;
use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;
use Doctrine\Bundle\MongoDBBundle\Validator\Constraints\Unique as MongoDBUnique;
use Gedmo\Mapping\Annotation as Gedmo;
use Symfony\Component\Validator\Constraints as Assert;
use TheScienceTour\MediaBundle\... | PHP | src/TheScienceTour/DocumentBundle/Document/Document.php | assemblee-virtuelle/science-tour | mit | 1,914 | 74 | codeparrot/github-code |
c4d18ab4c5c38aa040080cf35ec156a6094fb16ca698e48cddbb2c3176643876 | define([
], function () {
'use strict';
return function (req, res, next) {
function filterParams(req, action) {
var paramsWhitelist = action.params,
whitelistParam,
paramValue,
type,
filteredParams = {};
// check a... | JavaScript | middleware/validation.js | KillerCodeMonkey/handmade | mit | 2,697 | 61 | codeparrot/github-code |
c584a360ded13e71af57321c89338bdcb8842f978a2cf3013c8081183a612e16 | using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using SourceSchemaParser.DOTA2;
using System;
using System.Collections.Generic;
using System.Reflection;
namespace SourceSchemaParser.JsonConverters
{
internal class SchemaItemToDotaHeroJsonConverter : JsonConverter
{
public override void WriteJson(Js... | C# | src/SourceSchemaParser/JsonConverters/SchemaItemToDotaHeroJsonConverter.cs | babelshift/SourceSchemaParser | mit | 1,858 | 55 | codeparrot/github-code |
994f017271edf4a55ea12a75fd795423574b3f550d1214f0f6e5f927933479ed |
<html>
<head>
<meta content="HTML Tidy for HTML5 for Linux version 5.2.0" name="generator"/>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<meta content="Describes the xSemaphoreCreateBinaryStatic() RTOS API function which is part of the RTOS semaphore API source code function set.... | HTML | freertos/xSemaphoreCreateBinaryStatic.html | hmbar/epd-embedded-web | mit | 19,919 | 415 | codeparrot/github-code |
481b43ddeaea9fdac0b4b59e4781777a8eeb4dda0de1270777ace13109c1440b | <?php
/**
Protein Engineering Analysis Tool Structure Analysis (PEATSA)
Copyright (C) 2010 Michael Johnston & Jens Erik Nielsen
Author: Michael Johnston
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 S... | PHP | PEATSA/WebApp/Interface/Pages/JSGetCalculationData.php | dmnfarrell/peat | mit | 3,887 | 147 | codeparrot/github-code |
cff40eef4bfd68d98c040a41c9c3fcc217276f7a2d185b09cc3eb53fd38bf433 | from django.contrib import admin
# Register your models here.
from rcps.models import *
class IngredientToRecipeInline(admin.TabularInline):
model = Ingredient.recipes.through
verbose_name = 'Ингредиент'
verbose_name_plural = 'Ингредиенты'
class EquipmentInline(admin.TabularInline):
model = Equipme... | Python | Recipes/rcps/admin.py | ADKosm/Recipes | mit | 1,433 | 55 | codeparrot/github-code |
028dc450d7a5051e9c0f7de6527dbfdd22d0bbb297f3fd8a8b819637706b7409 | #!/usr/bin/perl
package GrabzItPDFOptions;
use GrabzIt::GrabzItBaseOptions;
@ISA = qw(GrabzItBaseOptions);
sub new
{
my $class = shift;
my $self = GrabzItBaseOptions->new(@_);
$self->{"browserWidth"} = 0;
$self->{"includeBackground"} = 1;
$self->{"pagesize"} = "A4";
$self->{... | Perl | perl/GrabzIt/GrabzItPDFOptions.pm | GrabzIt/grabzit | mit | 11,627 | 518 | codeparrot/github-code |
1a08948ccff2ffb8dfa3652530e2ee1eefab5641bffefe6ff953f6cae9503ba0 | #include "HelloWorldScene.h"
#include ".\Scene\LevelScene.h"
#include ".\Entity\Umbrella.h"
#include "SimpleAudioEngine.h"
#include ".\Scene\SceneManager.h"
USING_NS_CC;
Scene* HelloWorld::createScene()
{
// 'scene' is an autorelease object
auto scene = Scene::create();
// 'layer' is an autorelease o... | C++ | Umbrella/Classes/HelloWorldScene.cpp | 1452712/DP-Project | mit | 2,881 | 97 | codeparrot/github-code |
b723fe9454a2d6c0a28ff868067ee0422b889606f2fed19802a4ffced8f61e3c | module Lesson08 where
-- Now let's have some real fun: a two player, online five card stud game,
-- with a full betting system. The betting system is actually the biggest
-- addition versus what we've done previously, so most of our attention
-- will be focused on that. Most of the other code will be very similar
-- t... | Haskell | src/Lesson08.hs | snoyberg/haskell-impatient-poker-players | mit | 5,286 | 135 | codeparrot/github-code |
8dc0367df5a4ccbe1bc942e548d24ad8cf4d3e8b4012144f82496f95edc0bd01 | package com.project.library.utils;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import org.springframework.stereotype.Component;
@Component
public class MyDateUtil {
public Date calculateDate(String currentDate... | Java | library/webapplibraryproject/src/main/java/com/project/library/utils/MyDateUtil.java | rtashev/University-Projects | mit | 667 | 34 | codeparrot/github-code |
e0563115159b0d95518e1ff2d8d0de53cb5752739d42c6466d2c5466a2f01289 | <?php
/*
* Sendanor SimpleREST PHP Framework
* Copyright 2017-2020 Jaakko-Heikki Heusala <jheusala@iki.fi>
*/
namespace SimpleREST\Legacy\Database;
/* Security check */
if(!defined('REST_PHP')) {
die("Direct access not permitted\n");
}
/** Database interface */
interface iDatabaseTable {
public function __const... | PHP | lib/SimpleREST/Legacy/Database/iDatabaseTable.interface.php | sendanor/php-rest | mit | 955 | 39 | codeparrot/github-code |
029f858db7c71f5cc23c09c919872a21283e7d3b970c007bb5170c7877462316 | class UsersController < ApplicationController
load_and_authorize_resource
def index
end
def update
if params[:admins].present?
@new_admins = User.not_admins.where(:id => params[:admins])
@new_admins.map {|user| user.admin = true}
@no_longer_admins = User.admins.where('id NOT IN (?)', par... | Ruby | app/controllers/users_controller.rb | belighted/bennett | mit | 945 | 39 | codeparrot/github-code |
b967698e417431a315b2b547b6ca7ee26398966fa0334e4a7143cced78caf86c | <!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="apple-touch-icon" sizes="76x76" href="assets/img/apple-icon.png">
<link rel="icon" type="image/png" href="assets/img/favicon.png">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>Material Kit by Creative Tim</title... | HTML | demoHouse/material_kit/index.html | zhouxinyong/code-demo | mit | 58,191 | 1,404 | codeparrot/github-code |
1916e1bcfc1bc368039ce5f02ad75e08d9d30d60240ede887231ab84c2c536bf | /******************************************************************************
QtAV: Multimedia framework based on Qt and FFmpeg
Copyright (C) 2012-2016 Wang Bin <wbsecg1@gmail.com>
* This file is part of QtAV (from 2014)
This library is free software; you can redistribute it and/or
modify it unde... | C++ | QtAV-master/src/filter/LibAVFilter.cpp | fuyanzhi1234/DevelopQt | mit | 17,637 | 540 | codeparrot/github-code |
b0c171c9b405e78f9059b2baeeeb534acfc60f2e4205c69c8e4a564b2c8d0ac7 | r"""
Create MapServer class diagrams
Requires https://graphviz.gitlab.io/_pages/Download/Download_windows.html
https://stackoverflow.com/questions/1494492/graphviz-how-to-go-from-dot-to-a-graph
For DOT languge see http://www.graphviz.org/doc/info/attrs.html
cd C:\Program Files (x86)\Graphviz2.38\bin
dot -Tpng D:\Git... | Python | docs/scripts/class_diagrams.py | geographika/mappyfile | mit | 3,102 | 120 | codeparrot/github-code |
0072af58b09625543e318e4bd0817d6bcbf3c152d1d1beecc9377b12a292b587 | <?php
namespace fufudao\base;
use yii\behaviors\TimestampBehavior;
//use yii\behaviors\AttributeBehavior;
use yii\db\ActiveRecord as ar;
use yii\db\Expression;
class ActiveRecord extends ar
{
public function behaviors()
{
return [
'timestamp' => [
'class' => TimestampB... | PHP | base/ActiveRecord.php | fufudao/yii2-base | mit | 1,074 | 48 | codeparrot/github-code |
14da606caf067fd2814461627d9e1bf00b85bcad107643be40e95abb4e34ae7f | 'use strict';
// Load the application's configuration
const config = require('../server/config');
const url = config.express_host + '/api';
// Required modules
const async = require('async');
const colors = require('colors');
const request = require('request');
// Counter for the Measurements
let counter = 1;
/... | JavaScript | server/demo/demoSensorController.js | mrunde/WoT-Vertical-Approach | mit | 5,051 | 194 | codeparrot/github-code |
0c6d3c81575c5fce8fa2a02dd824d3d9417e96c9f10de85dcd6392fe5ab8d57c | import React from 'react'
import {HOC, Link} from 'cerebral-view-react'
import PageProgress from '../PageProgress'
// View
class AutoReload extends React.Component {
constructor (props) {
super(props)
this.state = {
secondsElapsed: 0
}
this.onInterval = this.onInterval.bind(this)
}
compone... | JavaScript | src/ui/components/AutoReload/index.js | burning-duck/twibral | mit | 3,914 | 122 | codeparrot/github-code |
2d967e8d049b0cd1a46dfc09547659f524cfa3264f019ab5eca90e1821600d88 | # Author: John Elkins <john.elkins@yahoo.com>
# License: MIT <LICENSE>
from common import *
if len(sys.argv) < 2:
log('ERROR output directory is required')
time.sleep(3)
exit()
# setup the output directory, create it if needed
output_dir = sys.argv[1]
if not os.path.exists(output_dir):
os.makedirs(ou... | Python | ExportLists.py | soulfx/gmusic-playlist | mit | 3,890 | 127 | codeparrot/github-code |
dcf70515e1220139e5d781a33c612fe9813d322c5decf98861db9bc03523fdfa | // Copyright (c) 2009-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.
//
// Why base-58 instead of standard base-64 encoding?
// - Don't want 0OIl char... | C | src/base58.h | basecoin/basecoin | mit | 13,111 | 461 | codeparrot/github-code |
9d4a01ae0e66046b480e9a947438fda3432072a39bff01ad03db2ed77cf941fb | /*---------------------------------------------------------------------------------
Name : amixer.c
Author : Marvin Raaijmakers
Description : Plugin for keyTouch that can change the volume (using amixer).
Date of last change: 24-Sep-2006
History : 24-Sep-2006 Added two new pl... | C | Reference Code/keymap/keytouch-2.2.4/plugins/amixer.c | paulmadore/G-Keymap | mit | 13,098 | 472 | codeparrot/github-code |
171933b64608718cae4a0282022926aff0a97741a92fba5869e236fd23de9d39 | package com.calebmeyer.bettercrafting.creativetab;
import com.calebmeyer.bettercrafting.constants.Project;
import com.calebmeyer.bettercrafting.initialization.ModItems;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
public class CreativeTabBCT {
public static final CreativeTabs BE... | Java | src/main/java/com/calebmeyer/bettercrafting/creativetab/CreativeTabBCT.java | calebmeyer/Better-Crafting-Tables | mit | 907 | 33 | codeparrot/github-code |
970707c0bca9832874943e1b1aa9918387751f0f5b7117d88b27a0f484faf4aa | <?php
class PostModel extends CI_Model
{
public $id;
public $title;
public $content;
public $date;
public $author;
public $upvotes = 0;
public $downvotes = 0;
public $voters;
public function __construct()
{
parent::__construct();
}
public function GetAll()
... | PHP | final/application/models/PostModel.php | vonderborch/CS483 | mit | 1,604 | 75 | codeparrot/github-code |
74a38c7cb15054e11c7880da5e5d23a9ac4310ce28e05837590f70ab5520a6e7 | <?php
namespace Vilks\DataObject;
use Vilks\DataObject\Exception\DirectPropertySetException;
use Vilks\DataObject\Exception\PropertyNotFoundException;
use Vilks\DataObject\Exception\PropertyValidationFailedException;
use Vilks\DataObject\Exception\WrongEvolutionInheritanceException;
use Vilks\DataObject\Validator\Data... | PHP | src/Vilks/DataObject/DataObject.php | igrizzli/data-object | mit | 5,163 | 197 | codeparrot/github-code |
a644a1d2dc5e840c309f08500def2642aa94e67b4dd4d1d61a8f57270ccb8e24 | using System;
using Argus.Extensions;
namespace Argus.Data
{
/// <summary>
/// Contains a string name/value pair seperated by an equals sign. The values can be set via the properties or by passing in a
/// delimited string. E.g. FirstName=Blake.
/// </summary>
/// <remarks></remarks>
public... | C# | Argus/Argus.Core/Data/Parameter.cs | blakepell/Argus | mit | 3,081 | 95 | codeparrot/github-code |
84d6d805d31eb2b5c3483140b3daaa435363b20db3b1dcfac52dcb10dc3dee2c | from csacompendium.csa_practice.models import PracticeLevel
from csacompendium.utils.pagination import APILimitOffsetPagination
from csacompendium.utils.permissions import IsOwnerOrReadOnly
from csacompendium.utils.viewsutils import DetailViewUpdateDelete, CreateAPIViewHook
from rest_framework.filters import DjangoFilt... | Python | csacompendium/csa_practice/api/practicelevel/practicelevelviews.py | nkoech/csacompendium | mit | 2,046 | 52 | codeparrot/github-code |
1cf1e8ffe74fa53c65e8397b3bbf68713d8924acae6c92acd7bd1749c7f2c9e6 | #include <algorithm>
#include <iostream>
#include "RustyFist/DrawMe.h"
#include "RustyFist/TouchSink.h"
#include "OpenGLLayer.h"
using namespace cocos2d;
using namespace std;
OpenGLLayer::OpenGLLayer()
{
}
OpenGLLayer::~OpenGLLayer()
{
}
bool OpenGLLayer::init()
{
return Layer::init();
}
cocos2d::Scene* OpenGLLay... | C++ | RustyFist/src/OpenGLLayer.cpp | Ingener74/Lost-Foot | mit | 2,225 | 105 | codeparrot/github-code |
cdcf005980fed705f5314d56799802bc2051bdf4387fc3b8d75d01857589cc82 | using Android.OS;
using Android.Text;
using Android.Util;
using REKT.Graphics;
using REKT.Graphics.Unsafe;
using REKT.DI;
using SkiaSharp;
using System;
using System.Text;
using D = System.Diagnostics.Debug;
using NativeActivity = Android.App.Activity;
using NativeBitmap = Android.Graphics.Bitmap;
using NativeBitmapFac... | C# | REKT.Droid/Extensions.cs | marzer/REKT | mit | 16,165 | 400 | codeparrot/github-code |
25d92e8258643258a287034f29e08656b3555700846108940d0d5fa8574c9776 | #include "strm.h"
#include <math.h>
static int
num_plus(strm_stream* strm, int argc, strm_value* args, strm_value* ret)
{
strm_value x, y;
strm_get_args(strm, argc, args, "NN", &x, &y);
if (strm_int_p(x) && strm_int_p(y)) {
*ret = strm_int_value(strm_value_int(x)+strm_value_int(y));
return STRM_OK;
}
... | C | src/number.c | matz/streem | mit | 4,205 | 168 | codeparrot/github-code |
d42f25a0cfd646346b3593e95ec7f16a814e14cb65cd73734b96499ad18acbc5 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Master thesis presentation – OpenLaws</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Presentation of Master thesis @... | HTML | publications/2016/10/19/master-thesis-presentation/index.html | OpenLawsGR/OpenLawsGR.github.io | mit | 7,403 | 197 | codeparrot/github-code |
5cf7875580cf8d7d246c3a46ae6ca0de85b1d6a779a0122ba26a9acfaac75056 | ---
layout: default
title: Pegmatite
github: CompilerTeaching/Pegmatite
---
Pegmatite design overview
-------------------------
This is a fork and extensive rewrite of Achilleas Margaritis's ParserLib. It
has the following goals:
- Idiomatic C++11
- Simple use
- Reuseable, reentrant grammars with multiple action de... | Markdown | pegmatite/index.markdown | CompilerTeaching/CompilerTeaching.github.io | mit | 2,771 | 78 | codeparrot/github-code |
a42d125bc275a8aa805b639824b82702e164239e2ea6c17053ef04c3e5220e3f | var markdown = window.markdownit();
$(document).ready(function() {
var $wish = $('#wish');
var todoNotificationArea = $('#todos .notification-area');
var todoNotificationIcon = $('#todos .notification-area > i');
var todoNotificationText = $('#todos .notification-area > span');
$('#news-stream ... | JavaScript | app/static/js/index.js | arpitbbhayani/penny | mit | 13,851 | 396 | codeparrot/github-code |
4556a449d69c403ea2e64a0a1750307e027e2d703b19b787b3f495f6241bd410 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>metacoq-erasure: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap... | HTML | clean/Linux-x86_64-4.08.1-2.0.5/extra-dev/8.10.dev/metacoq-erasure/1.0~alpha+8.8.html | coq-bench/coq-bench.github.io | mit | 7,966 | 187 | codeparrot/github-code |
13a5fd6fda271d69116943b03c8454f1fcca836dc3c6c39ab8e197c6b53667f3 | # This file is part of beets.
# Copyright 2016, Adrian Sampson.
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, ... | Python | beets/dbcore/query.py | beetbox/beets | mit | 29,107 | 952 | codeparrot/github-code |
1e6898b6b957381a71b07af77e580c8d572bc597de621827e055bd8361d6e1f6 | ---
layout: post
title: "Class Based Views"
date: 2013-05-13 07:04
tags: [python, django, yakindanegitim]
icons: [python]
---
Web development is a bit repetitive and web frameworks try to reduce this burden. One of the best features of Django for making object manipulation easier is class based views(CBV). We are usua... | Markdown | hack/yakindanegitim/_posts/2013-05-13-class-based-views.markdown | ferhatelmas/ferhatelmas.github.com | mit | 4,908 | 125 | codeparrot/github-code |
4d48590675f67f43b1cf7a96f724d174992a8a14033cd935ecd334684d89b253 | "use strict";
var http_1 = require("@angular/http");
var AppSettings = (function () {
function AppSettings() {
}
Object.defineProperty(AppSettings, "API_OPTIONS", {
get: function () {
var headers = new http_1.Headers({ 'Content-Type': 'application/json' }), options = new http_1.RequestOp... | JavaScript | src/app/shared/services/app.settings.js | cristirosu/rpg-scheduler-front | mit | 1,301 | 33 | codeparrot/github-code |
73bd2a926cf206c4b5c1355cac8aed58dbd49421a7a94748d77535d027ca7804 | const fs = require('fs')
const path = require('path')
const {generateBabelEnvLoader, getConfig} = require('./common')
const buildCache = {}
module.exports = (params) => {
const baseConfig = getConfig(params)
const config = Object.assign({}, baseConfig)
config.outputPath = path.join(__dirname, '../dist-' + confi... | JavaScript | client/tasks/tool-initdb.js | bourbest/keeptrack | mit | 868 | 39 | codeparrot/github-code |
2947300155a6690b97e904462a695f0cbc2670a04c57cc4248a1b2f0a018986e | using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using tomware.Microwf.Domain;
using tomware.Microwf.Infrastructure;
namespace tomware.Microwf.Engine
{
public interface IJobQueueControllerService
{
Task<IEnumerable<WorkItemViewModel>> GetSnapshotAsync();
Task<PaginatedLis... | C# | src/microwf.AspNetCoreEngine/Services/JobQueueControllerService.cs | thomasduft/microwf | mit | 2,595 | 93 | codeparrot/github-code |
3f5679ec57527cda3596059f91d0f749d8748fb7aed9354b0468787a786caf5f | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__wchar_t_connect_socket_w32spawnl_18.c
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-18.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: connect_socket Read data u... | C | samples/Juliet/testcases/CWE78_OS_Command_Injection/s05/CWE78_OS_Command_Injection__wchar_t_connect_socket_w32spawnl_18.c | maurer/tiamat | mit | 5,742 | 191 | codeparrot/github-code |
200a7d1367e64a0b3cc8162ad825d1b2068a08731da5676838b199f4329725e6 | <?php
/*
*
*/
namespace RDF\JobDefinitionFormatBundle\Type;
/**
*
*
* @author Richard Fullmer <richardfullmer@gmail.com>
*/
class CMYKColor
{
/**
* @var float
*/
protected $cyan;
/**
* @var float
*/
protected $magenta;
/**
* @var float
*/
protected $yell... | PHP | Type/CMYKColor.php | richardfullmer/RDFJobDefinitionFormatBundle | mit | 1,730 | 114 | codeparrot/github-code |
dc30511d3ac47430769567799b302cfbf31cf94ff830dce0c4b4048ebd6aaa0e | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace DebtSnowBall2017
{
class LoanList
{
private List<Loan> loanList;
public LoanList()
{
this.loanList = new List<Loan>();
... | C# | DebtSnowBall2017/DebtSnowBall2017/LoanList.cs | passanpm/DebtSnowBall | mit | 2,757 | 98 | codeparrot/github-code |
8c64b45a211fc31dc06ef2265a32cf2b8e9413ce8aed0a85644a838ed3c715b8 | /*
* _____ _ _ _ _____ _ _ _ _____ _ __ _____ _____
* / ___| | | | | | | |_ _| | | / / | | | ____| | | / / | ____| | _ \
* | | | | | | | | | | | | / / | | | |__ | | __ / / | |__ | |_| |
* | | _ | | | | |... | C++ | Gpu_Rvd/header/thid_party/glut_viewer/glut_viewer_gui.cpp | stormHan/gpu_rvd | mit | 25,552 | 832 | codeparrot/github-code |
06b37acf911568f6ef0beb2c34c591e1f716449be1e85eef6a68b424bfaa46fc | <?php
/**
* Description of aSites
*
* @author almaz
*/
class aSitesUsers extends Action {
protected $defaultAct = 'List';
protected function configure() {
require_once $this->module->pathModels . 'as_Sites.php';
require_once $this->module->pathModels . 'as_SitesUsers.php';
$authModu... | PHP | Brill/Modules/AutoSubmitter/Actions/aSitesUsers.php | AlmazKo/Brill | mit | 4,305 | 110 | codeparrot/github-code |
6f15ea4477f24c6ac4289d1ee23a324dd0fb78e1f74797e65f18b0ac993473f3 | #!/usr/bin/env python
import subprocess
import praw
from hashlib import sha1
from flask import Flask
from flask import Response
from flask import request
from cStringIO import StringIO
from base64 import b64encode
from base64 import b64decode
from ConfigParser import ConfigParser
import OAuth2Util
import os
import mar... | Python | stayclean-2018-march/serve-signups-with-flask.py | foobarbazblarg/stayclean | mit | 8,581 | 202 | codeparrot/github-code |
36bc34819b1da45c7c55ed309d0d6c68e4e8a6685cd3966caa5021e15204eb31 | #![cfg_attr(all(feature = "nightly", test), feature(test))]
#![cfg(all(feature = "nightly", test))]
extern crate test;
extern crate cxema;
#[cfg(test)]
use cxema::sha2::{Sha256};
use cxema::digest::Digest;
use test::Bencher;
#[bench]
pub fn sha256_10(bh: &mut Bencher) {
let mut sh = Sha256::new();
let bytes... | Rust | benches/sha256_bench.rs | alexyer/cxema | mit | 818 | 44 | codeparrot/github-code |
0371180f686cc78424a8e2c426d51d9111f557661d1b76c7e62391401fbcd2e3 | <html>
<head>
<script src='https://surikov.github.io/webaudiofont/npm/dist/WebAudioFontPlayer.js'></script>
<script src='0410_Aspirin_sf2_file.js'></script>
<script>
var selectedPreset=_tone_0410_Aspirin_sf2_file;
var AudioContextFunc = window.AudioContext || window.webkitAudioContext;
var audioContext ... | HTML | sound/0410_Aspirin_sf2_file.html | surikov/webaudiofontdata | mit | 7,832 | 144 | codeparrot/github-code |
fd9fb53fa211ca90aeca5f5b587c414eb1e8291b5b682ef6e795e4fc42532463 | Search = function(data, input, result) {
this.data = data;
this.$input = $(input);
this.$result = $(result);
this.$current = null;
this.$view = this.$result.parent();
this.searcher = new Searcher(data.index);
this.init();
};
Search.prototype = $.extend({}, Navigation, new function() {
var suid = 1;
... | JavaScript | doc/app/js/search.js | gadzorg/gorg_mail | mit | 2,999 | 109 | codeparrot/github-code |
832d3b9e149aa914ba906aea7770a889731d51c74b80c6a6c626820042bf0363 | 'use strict';
//Ghost service used for communicating with the ghost api
angular.module('ghost').factory('Ghost', ['$http', 'localStorageService',
function($http, localStorageService) {
return {
login: function() {
return $http.get('api/ghost/login').
success(function(dat... | JavaScript | modules/ghost/client/services/ghost.client.service.js | newcrossfoodcoop/nxfc | mit | 1,804 | 46 | codeparrot/github-code |
232b17116300faa84f6d108ee1e031808c2985943a4fb7a3cccf6cca57050ca4 | /*
* Copyright 2014 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | Java | src/main/java/uk/ac/nott/mrl/gles/program/GraphProgram.java | ktg/openFood | mit | 5,077 | 175 | codeparrot/github-code |
6328a1eaa20d88e2045be8f4d765e1984b4c2ce6f9d1c3bef47e91bd150b06ff | package org.sfm.tuples;
public class Tuple20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20> extends Tuple19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19> {
private final T20 element19;
public Tuple20(T1 element0, T2 element1,... | Java | sfm/src/main/java/org/sfm/tuples/Tuple20.java | tsdl2013/SimpleFlatMapper | mit | 3,155 | 66 | codeparrot/github-code |
ca0b370db1d06f16e2afe16e21c4020226f002b5b43ab316ff3d9dff35ebfeab | <?php
$districts = array('Ampara', 'Anuradhapura', 'Badulla', 'Batticaloa', 'Colombo', 'Galle', 'Gampaha', 'Hambantota', 'Jaffna', 'Kaluthara', 'Kandy', 'Kilinochchi', 'Kegalle', 'Mannar', 'Matale', 'Matara', 'Monaragala', 'Mulattivu', 'Nuwaraeliya', 'Polonnaruwa', 'Rathnapura', 'Trincomalee', 'Vavuniya');
?>
<!DOCTY... | PHP | school_views/login.php | buddhiv/DatabaseProject | mit | 9,115 | 237 | codeparrot/github-code |
b618f4b300e2cfac8ce6f54b939067a6d2b5e802ec090324a2b8a321c8ff03d9 | /*
* This file is part of ViaVersion - https://github.com/ViaVersion/ViaVersion
* Copyright (C) 2016-2021 ViaVersion and contributors
*
* 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, eith... | Java | common/src/main/java/com/viaversion/viaversion/protocols/protocol1_12_2to1_12_1/Protocol1_12_2To1_12_1.java | MylesIsCool/ViaVersion | mit | 2,084 | 49 | codeparrot/github-code |
5a6c97df4c84723ed332d709e2f6d73a6c5a56afb1ed5e016c6bf45618d03f4c | #include <cassert>
#include <cmath>
#include "gtest/gtest.h"
#include "interlude.hpp"
// defined in the header
// #define MAT_SIZE 5
using std::cout;
using std::endl;
// void matDiagSum(int a[][MAT_SIZE], int rows, int cols){
// }
// 1 2 3 4 5 1 2 3 4 5
// 6 7 8 9 10 6 8 10 12 14
... | C++ | 8_interlude/interlude.cpp | JonMuehlst/WORKSPACE_A | mit | 3,372 | 162 | codeparrot/github-code |
b06e1af41a259c27a6658cc7bc23047bb51bb4f499b53fffb0066a94bc72fd83 | #include "core/bomberman.hpp"
#include "core/menu.hpp"
#include "core/screens.hpp"
#include "core/view.hpp"
#include "core/views/menu.hpp"
MenuView::MenuView(Screen *screen, Menu *menu)
: View(screen)
, menu(menu)
, clock(Timer::get(2))
{
}
MenuView::~MenuView()
{
delete this->menu;
}
void MenuView::... | C++ | bomberman/src/core/views/menu.cpp | kassisdion/Epitech_year_2 | mit | 1,035 | 59 | codeparrot/github-code |
1afc0f34708bc4d42ff7c74fa60b0e70e44661d332c60ff3af8da31d1cd2e189 | ///<reference src="js/tempus-dominus"/>
/*global $ */
tempusDominus.jQueryInterface = function (option, argument) {
if (this.length === 1) {
return tempusDominus.jQueryHandleThis(this, option, argument);
}
// "this" is jquery here
return this.each(function () {
tempusDominus.jQueryHandleThis(this, opti... | JavaScript | ajax/libs/tempus-dominus/6-alpha1/js/jQuery-provider.js | cdnjs/cdnjs | mit | 4,501 | 149 | codeparrot/github-code |
f66f11065d7a7ccdfc108bdc7f8466d67f7e8577c115ffd0f1a34bb40c800b77 | <?php
class WPML_ST_Track_Strings_Notice {
const NOTICE_ID = 'wpml-st-tracking-all-strings-as-english-notice';
const NOTICE_GROUP = 'wpml-st-strings-tracking';
/**
* @var WPML_Notices
*/
private $admin_notices;
public function __construct( WPML_Notices $admin_notices ) {
$this->admin_notices = $admin_not... | PHP | wp-content/plugins/wpml-string-translation/classes/notices/track-strings/wpml-st-track-strings-notice.php | mandino/hotelmilosantabarbara.com | mit | 1,629 | 44 | codeparrot/github-code |
49e3662c11945ad043c4fffb08d45d541ce51054831d75d4a9e86ee3436449a6 | #ifndef ACCOUNTDIALOG_H
#define ACCOUNTDIALOG_H
#include <QDialog>
namespace Ui {
class AccountDialog;
}
class AccountDialog : public QDialog
{
Q_OBJECT
public:
explicit AccountDialog(QWidget *parent = 0);
~AccountDialog();
private slots:
// TODO: 三个槽变成一个
void on_azureDefaultRadioButton_clicked... | C | UI/Qt/AccountDialog.h | myd7349/AzureStorageExplorerClone | mit | 563 | 31 | codeparrot/github-code |
3ac89632e03a06a435ac2e8adf86652fd9e40f1f4a165428a155cc36709b0374 | import Telescope from 'meteor/nova:lib';
import Posts from "meteor/nova:posts";
import Comments from "meteor/nova:comments";
import Users from 'meteor/nova:users';
serveAPI = function(terms){
var posts = [];
var parameters = Posts.parameters.get(terms);
const postsCursor = Posts.find(parameters.selector, param... | JavaScript | packages/nova-api/lib/server/api.js | trujunzhang/newspoliticl | mit | 2,059 | 78 | codeparrot/github-code |
16a565bc44bee4656c84eb4429e252684cc96a9e9cffbaffb0d779b234aa4ad7 | using System;
using System.Collections.Generic;
namespace Paladino.Drawing
{
/// <summary>
/// The thumbnails class handles all thumbnails to different types of content
/// embedded in the core.
/// </summary>
public static class Thumbnails
{
#region Members
private static Dictionary<Guid,... | C# | Paladino/Drawing/Thumbnails.cs | cnascimento/Paladino | mit | 13,730 | 198 | codeparrot/github-code |
88a02f39293da9e510bd0904bef361a5e7a778c0c1404859be6163528c2cb1de | using System.Linq;
using UnityEditor;
using UnityEditor.Animations;
using UnityEngine;
namespace Framework.Editor
{
[CustomActionEditor(typeof(ActionAnimParam))]
public class ActionGraphEditorAnimParamNode : ActionGraphEditorNode
{
public ActionAnimParam Node => (ActionAnimParam) ActionNode;
... | C# | Editor/ActionGraph/ActionGraphEditorAnimParamNode.cs | MrJaqbq/Unity3DFramework | mit | 3,547 | 101 | codeparrot/github-code |
71c045762d1e01c01877d33e1a69ab87afeb8b4d943b0f1cab44f0c3267d4118 | import React from 'react';
import Helmet from 'react-helmet';
import { Route } from '../../core/router';
import { Model as Waste } from '../../entities/Waste';
import { Deferred } from '../../util/utils';
import NavLink from '../../components/NavLink';
import Progress from 'react-progress-2';
import { PageHeader, Row, ... | JavaScript | app/routes/waste/ShowRoute.js | ryrudnev/dss-wm | mit | 2,563 | 85 | codeparrot/github-code |
2cc44d49f543fdf925f19d661ffb621b080de6ccc34c3ee4d05e6277805b9f37 | //
// JMColor.h
// JMChartView
//
// Created by chengjiaming on 15/3/26.
// Copyright (c) 2015年 chengjiaming. All rights reserved.
//
#import <UIKit/UIKit.h>
/**
* 主色系
*/
#define JMBlue [UIColor colorWithRed:38 / 255.0 green:173 / 255.0 blue:223 / 255.0 alpha:1]
/**
* 背景色
*/
#define JMCloudWhite [UIColor col... | C | JMChartView/JMColor.h | chengjiaming/JMChartView | mit | 734 | 43 | codeparrot/github-code |
fd46dc656b4f350aa4157a0faf1adc6125d04e79ed3a83e6856d9e6a4eb6f7da | var basePaths = {
src: 'public/',
dest: 'public.dist/',
bower: 'bower_components/'
};
var paths = {
images: {
src: basePaths.src + 'images/',
dest: basePaths.dest + 'images/min/'
},
scripts: {
src: basePaths.src + 'scripts/',
dest: basePaths.dest + 'scripts/min/'
},
styles: {
src: ba... | JavaScript | .old/gulpfile-advanced.js | marcolino/escrape2 | mit | 3,371 | 132 | codeparrot/github-code |
1a65cb524d5535fff66536616077b76c7dc5cdd30256ac6b5550b10ce892f616 | /*
* Vulkan Example - Implements a separable two-pass fullscreen blur (also known as bloom)
*
* Copyright (C) 2016 by Sascha Willems - www.saschawillems.de
*
* This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <... | C++ | bloom/bloom.cpp | martty/Vulkan | mit | 42,639 | 1,077 | codeparrot/github-code |
a6790020bf32402ceeedc93106ede88f45dff3f64e10118215b08a9450b11142 | package mcjty.deepresonance.jei.smelter;
import mezz.jei.api.recipe.IRecipeWrapper;
import javax.annotation.Nonnull;
public class SmelterRecipeHandler implements mezz.jei.api.recipe.IRecipeHandler<SmelterRecipeWrapper> {
private final String id;
public SmelterRecipeHandler() {
this.id = SmelterReci... | Java | src/main/java/mcjty/deepresonance/jei/smelter/SmelterRecipeHandler.java | McJty/DeepResonance | mit | 834 | 37 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.