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 |
|---|---|---|---|---|---|---|---|---|
21a30f7171d8ba391705233f0eb612df602a6b9fa8a3501440a83be445940963 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- This file documents the GNU C Library.
This is
The GNU C Library Reference Manual, for version
2.21.
Copyright (C) 1993-2015 Free Software Foundation, Inc.
Permission is granted to copy, distribute and/... | HTML | gnu/Yes_002dor_002dNo-Questions.html | elmerland/elmerland | mit | 6,532 | 164 | codeparrot/github-code |
9e240a4f6466dfcabe4781069aadb5cc7bcfc2fe685ec90329659c3b113c08bc | ##
# You can use other adapters like:
#
# ActiveRecord::Base.configurations[:development] = {
# :adapter => 'mysql2',
# :encoding => 'utf8',
# :reconnect => true,
# :database => 'your_database',
# :pool => 5,
# :username => 'root',
# :password => '',
# :host => 'localho... | Ruby | my_blog/config/database.rb | chenjun835/ruby_learning | mit | 2,281 | 80 | codeparrot/github-code |
dd87969a4f50c6959876e619daf518633612f96d8ceee6c142518d807ca5e7c3 | package main
import (
"flag"
log "github.com/sirupsen/logrus"
"net/http"
"os"
"path/filepath"
"strconv"
"time"
)
var (
relRoot = flag.String("path", ".", "Document root")
listenPort = flag.Int("port", 8080, "Port")
listenHost = flag.String("host", "0.0.0.0", "Host")
logFormat = flag.String("log-format"... | GO | safron.go | ripta/safron | mit | 1,619 | 71 | codeparrot/github-code |
d1154521397a1bf8efbecbfa1fe0b0b2e2d595d8549e49c55170e55839f1c230 | from collections import OrderedDict
class DefaultOrderedDict(OrderedDict):
def __missing__(self, key):
self[key] = type(self)()
return self[key]
d=DefaultOrderedDict()
d['a']['c']['d']=1234
d['as'][4][2]='sdf'
d[3][4][2]=322
print [(i, j, k, d[i][j][k]) for i in d for j in d[i] for k in d[i][j]]
it... | Python | ordict.py | praveendareddy21/my-repo | mit | 1,021 | 53 | codeparrot/github-code |
c10fe725495e6b7e3327674e18d7e48efb2638c8892f44cbc556793ee782500b | package com.codingchili.core.logging;
import io.vertx.core.json.JsonObject;
import org.fusesource.jansi.Ansi;
import org.fusesource.jansi.AnsiConsole;
import java.time.Instant;
import java.util.*;
import java.util.concurrent.*;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.function.Cons... | Java | core/main/java/com/codingchili/core/logging/ConsoleLogger.java | codingchili/chili-core | mit | 7,014 | 225 | codeparrot/github-code |
2d1269f6d596d42d39ff0fd749910b949f57e48d4e308c985934c4caef8a8d6e | package connect.im.bean;
import com.google.protobuf.ByteString;
import java.io.UnsupportedEncodingException;
import connect.db.MemoryDataManager;
import connect.db.SharedPreferenceUtil;
import connect.im.inter.InterParse;
import connect.im.model.FailMsgsManager;
import connect.utils.TimeUtil;
import connect.utils.cr... | Java | app/src/main/java/connect/im/bean/UserOrderBean.java | connectim/Android | mit | 6,257 | 185 | codeparrot/github-code |
42d5fee1213a360788910fe1cbffcca777a6b314f9f3aa7af8e5862526ab4ccc | /**
*
* SmokeMonster.js
*
* What is SmokeMonster?
* SmokeMonster is John Locke, or is he?
* But seriously, SmokeMonster.js is a small graphics library based on DOM.
* This library depends on Modernizr, still using Modernizr is optional.
*
* Why SmokeMonster?
* Well, there had to be some kind of neme... | JavaScript | smokemonster.js | frostney/SpriteMonster.js | mit | 43,966 | 1,519 | codeparrot/github-code |
9cc4f418d98ceac8f99a0cb2dbdffa12edd51ea5d0d7cc2285d143e76385ae46 | -- MySQL dump 10.13 Distrib 5.7.12, for osx10.9 (x86_64)
--
-- Host: 127.0.0.1 Database: mydb
-- ------------------------------------------------------
-- Server version 5.7.14
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!4... | SQL | Entregable 3/DumpBD.sql | csaldias/FastSolushons | mit | 7,438 | 198 | codeparrot/github-code |
b96cd4fd403e512e8714edd52d3cfe04b2daa279abfc3b10731c635d42573f27 | package com.marvel.model;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "thumbnail")
public class Thumbnail {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
p... | Java | src/main/java/com/marvel/model/Thumbnail.java | alanlgoncalves/marvel | mit | 721 | 43 | codeparrot/github-code |
b115e74322eb4a94f7b1d33dde37f81907612a2f807f003a0aee439aee1fa56c | /* MIT License
Copyright (c) 2016 JetBrains http://www.jetbrains.com
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, mo... | C# | ShaneYu.HotCommander.UI.WPF/Properties/Annotations.cs | ShaneYu/shaneyu.hotcommander | mit | 40,941 | 1,039 | codeparrot/github-code |
da0ddd8c7192c2f8d87f151573eac2b47007c09be2b21fe1cc5caa7e8bfd450e | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using System.Web.Http;
namespace App.Results
{
public class ChallengeResult : IHttpActionResult
{
public ChallengeResult(string loginProvide... | C# | App/App/Results/ChallengeResult.cs | nzhul/ancient-warriors | mit | 950 | 33 | codeparrot/github-code |
e0ffd3df426a5b1e8aa507b13d3c49175816fbb4ebfb4487c6c883bfbc642d16 | // Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 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 | phunsukwangdu/CybrosCoin | mit | 55,117 | 1,620 | codeparrot/github-code |
2b7a58424645724ac1d68bb179fcca3d18d2195063f4f8ef4cd76976e2051007 | Vue.component('model-card', {
template: '#templates-collection-item-tpl-html',
props: ['model'],
data: function() {
return {
menuOpen: false
}
},
methods: {
openMenu: function () {
this.menuOpen = true;
},
closeMenu: function () {
this.menuOpen = false;
},
printModel: function(){
thi... | JavaScript | nodejs_client/src/client/js/components/modelthumbnail.js | alex18881/ArduinoWifiDrawbot | mit | 668 | 37 | codeparrot/github-code |
8b7de05c89cb024d9e652fbf4a58aaaee007b4dbcbb40972ed4fb93fd21df003 | <?php
namespace OpenTok;
/**
* Represents a stream in an OpenTok session.
* <p>
* See <a href="OpenTok.OpenTok.html#method_getStream">OpenTok.getStream()</a> and
* <a href="OpenTok.OpenTok.html#method_listStreams">OpenTok.listStreams()</a>.
*
* @property String $id
* The stream ID.
*
* @property Array $layoutClassLis... | PHP | src/OpenTok/Stream.php | opentok/OpenTok-PHP-SDK | mit | 1,102 | 54 | codeparrot/github-code |
c43736c45dad98026ac1329f63e125964e569b53c763f0b79dc3b61e2d43318e | #include "audiomgr.h"
#include <assert.h>
#include <audiere.h>
#include <list>
#include "filepathmgr.h"
namespace AudioMgr
{
using namespace audiere;
//private vars: static globals, not accessible externally
static OutputStreamPtr g_currSong;
static AudioDevicePtr g_device;
static float g_sfxVolume = 0.75f;
static ... | C++ | src/audiomgr.cpp | kenhilf/SFPC | mit | 3,237 | 159 | codeparrot/github-code |
fb9026b53a6e2d41eb2d9f5d55e436204b30154d7c81042ef55ba25fb10f079e | import React from "react";
import Box from "@mui/material/Box";
import Typography from "@mui/material/Typography";
import { colors } from "../mui-theme";
export default () => <Box className="header" sx={{
display: 'flex',
flexDirection: 'column',
justifyContent: 'center',
backgroundColor: colors.prima... | JavaScript | www/assessment/customization/style-guide/src/components/Header.js | Learnosity/learnosity-demos | mit | 1,163 | 34 | codeparrot/github-code |
ec3c1fb96ff109af2bc153d2c997fd0d0f3cd384dd0132dd479fe0200398663e | /********************************************************************************
** Form generated from reading UI file 'deletefrdb.ui'
**
** Created by: Qt User Interface Compiler version 5.7.1
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
****************************************... | C | ui_deletefrdb.h | sebastiancial/bm | mit | 2,906 | 76 | codeparrot/github-code |
4cfce49dd7b7f22dc4f6089a8acc8fdfb53d68c1159a034e0efd03c8a0c40fa7 | <html lang="en">
<head>
<title>Background Execution - Debugging with GDB</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Debugging with GDB">
<meta name="generator" content="makeinfo 4.8">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Thread-Sto... | HTML | toolchain/osx/gcc-arm-none-eabi-6-2017-q1-update/share/doc/gcc-arm-none-eabi/html/gdb/Background-Execution.html | ChangsoonKim/STM32F7DiscTutor | mit | 5,832 | 110 | codeparrot/github-code |
985b38d5b7f057c843b727e25c2a368d96537212487df7ea75edbacc27e52cef | //////////////////////////////////////////////////////////////////
//
// Keyword Chart
//
// set the dimensions of the canvas
var margin = {top: 20, right: 100, bottom: 70, left: 60},
width = 400 - margin.left - margin.right,
height = 300 - margin.top - margin.bottom;
// set the ranges
var x = d3.scale.ordina... | JavaScript | web/static/js/keyword.js | xuwenyihust/Twitter-Hashtag-Tracking | mit | 2,934 | 99 | codeparrot/github-code |
3dca015ee85a35a75ececc714ce81284de513b400b080df25ae3f608e9478bc7 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace embedder
{
using System;
using System.IO;
using System.Text;
using Newtonsoft.Json;
public class License
{
public string Pat... | C# | k8s/embedder.src/License.cs | MicrosoftDX/MB-ForensicWatermark | mit | 2,750 | 79 | codeparrot/github-code |
cb44210241280980e5d248b6e5699e4da64386837ff3d4825ae4cd393b1d5554 | class NowPlaying::Movie
attr_accessor :name, :url, :summary, :stars
def initialize(name = nil, url = nil)
@name = name
@url = url
end
def self.all
@@all ||= scrape_now_playing
end
def self.find(id)
self.all[id-1]
end
def self.find_by_name(name)
self.all.detect do |m|
m.name... | Ruby | lib/now_playing/movie.rb | learn-co-curriculum/now-playing-cli-gem | mit | 1,140 | 48 | codeparrot/github-code |
fe67059a0f41f820c94bacde0e3a95ee58c9a042171422110c9f45daa8ffb2a2 | package config
import (
"log"
"time"
"github.com/bradylove/envstruct"
)
type Config struct {
Addr string `env:"ADDR,required"`
PprofAddr string `env:"PPROF_ADDR"`
SchedulerAddr string `env:"SCHEDULER_ADDR,required"`
DataNodeAddrs []string `env:"DATA_NODE_ADDRS,required"`
DataNodeExtAddr... | GO | master/internal/config/config.go | apoydence/loggrebutterfly | mit | 1,544 | 54 | codeparrot/github-code |
5ef5ca965480bc1da480f776b834d9515745fdb7b67b9659564d56b790b97717 | <!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.05.0-2.0.1/released/8.6/elpi/1.6.0~8.11.html | coq-bench/coq-bench.github.io | mit | 7,472 | 176 | codeparrot/github-code |
95552711da4967e752d49cc81410bcf84c13363d1d49672d1e497ec61a7a67b1 | import discord
from discord.ext import commands
from utils import p_check
class SModCommands:
def __init__(self, bot):
self.bot = bot
@commands.command(pass_context=True)
@p_check()
async def spurge(self, ctx):
params = ctx.message.content.split()
member = None
amoun... | Python | cogs/private/smod_cmds.py | initzx/ignore-pls | mit | 2,353 | 75 | codeparrot/github-code |
ac9ab1d4f6c006deb71323904b12ec4a15b9d222578d3add0f7367aa20b39289 | import re
from typing import Any
from typing import Dict
from typing import Optional
from typing import TYPE_CHECKING
from typing import Union
from sqlalchemy import cast
from sqlalchemy import JSON
from sqlalchemy import schema
from sqlalchemy import sql
from .impl import DefaultImpl
from .. import util
if TYPE_CHE... | Python | alembic/ddl/sqlite.py | sqlalchemy/alembic | mit | 6,734 | 195 | codeparrot/github-code |
d0930ea9f747ad50930a74f35c8363aba5a1e67bcbc8a2b04bc70a7ecbb3ba9a | package com.rrs_apps.android.share_to_irc;
import android.accounts.Account;
import android.accounts.AccountManager;
import android.app.Activity;
import android.content.Intent;
import android.support.v7.app.ActionBarActivity;
import android.util.Log;
import android.widget.Toast;
import com.rrs_apps.android.share_to_ir... | Java | share-to-irc/src/main/java/com/rrs_apps/android/share_to_irc/ShareTextActivity.java | RuralRouteSoftware/ShareToIRC | mit | 4,081 | 103 | codeparrot/github-code |
9b409de3b6fdcda60e3782641129cc48eb7f608e6b564308b72f4d135051a799 | <!DOCTYPE html>
<html>
<head>
<title>canvas-long-shadow Fancy Demo</title>
<meta name="viewport" content="width=520"/>
<link href="examples.css" rel="stylesheet"/>
</head>
<body>
<h1>Fancy Demo <small>[<a href="https://github.com/jwueller/canvas-long-shadow">GitHub</a>]</smal... | HTML | examples-browser/fancy.html | jwueller/canvas-long-shadow | mit | 21,698 | 303 | codeparrot/github-code |
28d85df704e8232299f9715174337a572554561bbb430f0bfb80447289d23b25 | package io.freefair.gradle.plugins.android.maven;
import com.android.build.gradle.TestedExtension;
import io.freefair.gradle.plugins.android.AndroidJavadocPlugin;
import io.freefair.gradle.plugins.android.AndroidProjectPlugin;
import lombok.Getter;
import org.gradle.api.Project;
import org.gradle.api.Task;
import org.... | Java | src/main/java/io/freefair/gradle/plugins/android/maven/AndroidJavadocJarPlugin.java | freefair/android-gradle-plugins | mit | 2,487 | 69 | codeparrot/github-code |
4b62e7c4de885d31ec8784ea3841bf2c410139074a5d32a3201f216f067748ce | -- for foreign_keys support (on delete cascade)
--con.execute("PRAGMA foreign_keys = ON") for python
PRAGMA foreign_keys = ON;
--
drop table all_links;
drop table sub_categories;
drop table categories;
create table if not exists categories(
c_id integer primary key AUTOINCREMENT not null
,cat_name text not null
,cat... | SQL | w2w.sql | darth-dodo/what_2_watch | mit | 6,836 | 163 | codeparrot/github-code |
cef61bb3796405d7d5193fc5a0ab2942279f26c5183e48fc3535ef123b23ff7b | // Copyright (c) 2011-2013 The Moneta developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "rpcconsole.h"
#include "ui_rpcconsole.h"
#ifndef Q_MOC_RUN
#include "clientmodel.h"
#include "monetarpc.h"
#include ... | C++ | src/qt/rpcconsole.cpp | moneta-coin/moneta | mit | 14,412 | 436 | codeparrot/github-code |
ca1c8f00766577c1771d4c632fc3d3b9090e69ed3050ca8528543c485c1392ff | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>buchberger: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.... | HTML | clean/Linux-x86_64-4.10.2-2.0.6/released/8.12.0/buchberger/8.8.0.html | coq-bench/coq-bench.github.io | mit | 6,857 | 164 | codeparrot/github-code |
287f7b91ce4d3ab09adbd14a0695618975cdeb01b6a3f41a6408cbf0116e9bad | /** Copyright (c) 2013-2014 Jordi López <@wuyingren> & <@aniol>
*
* MIT License:
*
* 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 ... | Java | app/src/main/java/cat/wuyingren/whatsannoy/utils/Alarm.java | wuyingren/WhatsAnnoyProject | mit | 2,633 | 68 | codeparrot/github-code |
616aeafc01735403d2de8c88baef372aaf84632e688ca0dd6839b718077ec3fe | # frozen_string_literal: true
require_relative "../converter"
require_relative "../null_converter"
module Necromancer
# Container for Boolean converter classes
module BooleanConverters
TRUE_MATCHER = /^(yes|y|on|t(rue)?|1)$/i.freeze
FALSE_MATCHER = /^(no|n|off|f(alse)?|0)$/i.freeze
# An object that ... | Ruby | lib/necromancer/converters/boolean.rb | peter-murach/necromancer | mit | 2,522 | 91 | codeparrot/github-code |
06295df1d0d68b2073f4fa65a1b00d889ad65ce967b334e510ace0106479fc18 | # frozen_string_literal: true
class CourseMeetingsManager
attr_reader :week_meetings, :open_weeks
def initialize(course)
@course = course
@open_weeks = 0
validate_course { return }
@beginning_of_first_week = calculate_beginning_of_first_week
return unless course_has_meeting_date_data?
@tim... | Ruby | lib/course_meetings_manager.rb | sejalkhatri/WikiEduDashboard | mit | 5,319 | 164 | codeparrot/github-code |
feee41babc8bed33b3788f51ff8448f510e4690345e9147472b9527f74090fe9 | const toArray = require('../../../toArray')
const getRelativePath = require('./getRelativePath')
const getFilesAndDirectoriesFromDirectory = require('./getFilesAndDirectoriesFromDirectory')
module.exports = function webkitGetAsEntryApi (dataTransfer, logDropError) {
const files = []
const rootPromises = []
/**... | JavaScript | packages/@uppy/utils/src/getDroppedFiles/utils/webkitGetAsEntryApi/index.js | transloadit/uppy | mit | 1,907 | 57 | codeparrot/github-code |
d3a9ffc45b4de6c06d5e11017f17dd93c46a9dc9f038cc514bef12c45280db04 | namespace UsbDevicesViewer
{
using System;
using Vurdalakov;
using Vurdalakov.UsbDevicesDotNet;
public class DeviceEvent : ViewModelBase
{
public DateTime Time { get; private set; }
public Int32 EventType { get; private set; }
public String Vid { get; private set; }
... | C# | src/UsbDevicesViewer/DeviceEvent.cs | vurdalakov/usbdevices | mit | 1,291 | 42 | codeparrot/github-code |
87a1c06be33ec37147b4673f1e5a50d07de1cecc640e810d127a3a0596d27e74 | // updater.cpp : AvP[VÌGg |Cgðè`µÜ·B
//
#include "stdafx.h"
#include "updater.h"
#define WM_UPDATE_DONE (WM_USER + 1)
#define WM_UPDATE_PROGESS (WM_USER + 2)
#define MAX_LOADSTRING 100
// O[oÏ:
HINSTANCE hInst; // »ÝÌC^[tFCX
TCHAR szTitle[MAX_LOADSTRING]; ... | C++ | updater/updater.cpp | NobuoK/xyzzy | mit | 15,010 | 673 | codeparrot/github-code |
2cfb2c9cc9d0ca8ee0571e2d326495158ac0284c40ba6ee4247e53abacdf2996 | <?php (defined('BASEPATH')) OR exit('No direct script access allowed');
/**
* Modular Extensions - HMVC
*
* Adapted from the CodeIgniter Core Classes
* @link http://codeigniter.com
*
* Description:
* This library extends the CodeIgniter CI_Loader class
* and adds features allowing use of modules and the HMVC d... | PHP | application/third_party/MX/Loader.php | himelali/file-share | mit | 12,599 | 487 | codeparrot/github-code |
05914fd462e164c5ed78fb46a4ec540ad43a043f11c48a115880530a90fc12c1 | /**
* Created by Donatello Ferraz on 09/03/2017.
*/
(function () {
'use strict';
angular.module('app.interceptors')
.factory('httpInterceptor', ['$q', '$injector', 'SERVER_URL', function ($q, $injector, SERVER_URL) {
function correctUrl(url) {
var finalUrl = url;
... | JavaScript | app/interceptors/http.interceptor.js | donatelloferraz/Votogen-front | mit | 2,694 | 72 | codeparrot/github-code |
d14d107a535f53490d69ccaca7e05bc603f09f8acd63dac976b91d7d6ccbba3a | Date: Wed, 20 Nov 1996 19:25:33 GMT
Server: NCSA/1.4
Content-type: text/html
Last-modified: Tue, 17 Sep 1996 13:47:47 GMT
Content-length: 5698
<Title> GATOR </Title>
<H1>GATOR</H1>
<P> This work is part of an <!WA0><a href = "http://www.netlib.org/nse/home.html">
HPCC </a> project funded by
<!WA1><a href = "http://... | HTML | webkb/project/misc/http:^^http.cs.berkeley.edu^~ssmith^GATOR.html | ML-SWAT/Web2KnowledgeBase | mit | 6,109 | 154 | codeparrot/github-code |
aa846d3500c8984b19997735270115cbd7bcb703e0bc377e46267efd3306c4de | using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
using System.Diagnostics;
namespace SPCS
{
[ClassInterface(ClassInterfaceType.AutoDual)]
public class SPCSInvoice : SPCSIRecordObject, IDisposable
{
#region +++ Constructors +++
... | C# | SPCS/RecordObjects/Invoice/SPCSInvoice.cs | grimen/invoicesystem2spcs | mit | 13,240 | 332 | codeparrot/github-code |
f675d0ac23e0053c84d1dd695fa4aad64616846bd4a99ff0dfa8ba49a60f5eca | <?php
App::uses('SurveysAppModel', 'Surveys.Model');
class SubmissionDetail extends SurveysAppModel {
public $belongsTo = array(
'Question' => array(
'className' => 'Surveys.Question',
'foreignKey' => 'question_id',
),
'Submission' => array(
'className' => 'Surveys.Submission',
'foreignKey' => 'su... | PHP | Model/SubmissionDetail.php | maps90/CakePHP-Surveys | mit | 1,561 | 64 | codeparrot/github-code |
c820bd014b554596821c8ea092c68cd91b4a163b11af36d8da0738474b8cea8e | /*
Copyright (c) 2014 Vishalsinh Jhala (myCodeHurts), Techie Tux.
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 righ... | Java | app/src/main/java/com/mycodehurts/rapidmath/app/SelectTestType.java | myCodeHurts/RapidMath | mit | 4,020 | 108 | codeparrot/github-code |
6f8a297a23595d602c5584ca8010ecea495886ba1ace484007276a21a7680a54 | // src/network/rpc/response.rs
// Copyright (C) 2017 authors and contributors (see AUTHORS file)
//
// This file is released under the MIT License.
//! This module defines the Response RPC message type.
//!
//! A Response RPC message is used by a server to send a response to a client's request.
//! server. Based on th... | Rust | src/network/rpc/response.rs | arielmakestuff/safesec | mit | 28,179 | 920 | codeparrot/github-code |
b9892c22293f776c1fb107ae2e019a2b203a8838f1c3a447a7f571dd4c5d2c2c | """Replacements for clipboard commands that prefer to operate on full lines of code.
Replaces: Copy, Cut, Paste, and Duplicate Lines
Note: For selections within a single line, commands work as normal, operating
only on the selection and not on the full line.
"""
import sublime, sublime_plugin
class ExpandedRe... | Python | main.py | AlanLynn/sublime-copy-cut-paste-lines | mit | 11,915 | 310 | codeparrot/github-code |
9560ae8f89a74d786504456af4e3a22ac9ba63ac649444185c980736a9d24475 | <?php
/*
* Plugin Name: Jetpack by WordPress.com
* Plugin URI: http://jetpack.com
* Description: Bring the power of the WordPress.com cloud to your self-hosted WordPress. Jetpack enables you to connect your blog to a WordPress.com account to use the powerful features normally only available to WordPress.com users.
... | PHP | old/blog/wp-content/plugins/jetpack/jetpack.php | uwcartlab/uwcl.preview | mit | 5,858 | 130 | codeparrot/github-code |
854f40d755b90fe1cd596b71737a6d37858ac33f755869a6a78f631bf49f760b | #pragma execution_character_set("utf-8")
#ifndef ITEMTAB_H
#define ITEMTAB_H
#include <QWidget>
#include <QtCore>
#include <QCheckBox>
#include "listtab.h"
#include "gameconfig.h"
#include "gamedata.h"
namespace Ui {
class ItemTab;
}
class ItemTab : public ListTab
{
Q_OBJECT
public:
explicit ItemTab(Sav... | C | itemtab.h | togenyan/Yo-kai_Editor_1 | mit | 595 | 37 | codeparrot/github-code |
0a2cb0228b130fe7bbd3598fbd4212d046a20630697947801c955ebaab07627d | package models;
/**
* Compare creatures based on their strength anf energy
*
* Credit to: Yishai (answered Sep 14 '09)
* From: http://stackoverflow.com/questions/1421322/how-do-i-sort-a-list-by-different-parameters-at-different-timed#1421537
*/
import java.util.Comparator;
enum CreatureComparator implements Com... | Java | src/models/CreatureComparator.java | alex-d-bondarev/EvolutionSimulator | mit | 1,949 | 66 | codeparrot/github-code |
08f802e2efd74193119761206fc51e9fb228951f5c66fa1afeca6e93791a84f5 | '''This module contains a script and functions for obtaining a list
of URLs from d20pfsrd.com, an unofficial System Reference Document
(SRD) for the Pathfinder RPG.
This list is meant to act as an index of creatures sorted by
Challenge Rating (CR).
'''
from lxml.html import parse
__all__ = ['create_index_file', ... | Python | data-mining/bestiary/indexer.py | lot9s/pathfinder-rpg-utils | mit | 2,230 | 75 | codeparrot/github-code |
1ad438f7758b2cbd12f89e1de9385b42f6405009a0e0f7b907bbef497e3bc832 | #ifndef VIENNACL_OCL_PLATFORM_HPP_
#define VIENNACL_OCL_PLATFORM_HPP_
/* =========================================================================
Copyright (c) 2010-2012, Institute for Microelectronics,
Institute for Analysis and Scientific Computing,
TU Wien... | C++ | viennacl/ocl/platform.hpp | aokomoriuta/ViennaCLFiles | mit | 3,978 | 120 | codeparrot/github-code |
a1742ff5b34aa4567f645861495ee4d775270670461547620482e2b25b3d6f8f | 'use strict';
var parse = require('url-parse');
var debug = function() {};
if (process.env.NODE_ENV !== 'production') {
debug = require('debug')('sockjs-client:utils:url');
}
module.exports = {
getOrigin: function(url) {
if (!url) {
return null;
}
var p = parse(url);
if (p.protocol === 'fi... | JavaScript | lib/utils/url.js | lpinca/sockjs-client | mit | 975 | 48 | codeparrot/github-code |
0574d528339682c0a7806cf8db0f5ffed7d95f49c3bc591f84c2773c04c15035 | 'use strict';
function Query(elapsed, waiting, query) {
this.elapsed = elapsed;
this.waiting = waiting;
this.query = query;
}
Query.rand = function() {
var elapsed = Math.random() * 15;
var waiting = Math.random() < 0.5;
var query = 'SELECT blah FROM something';
if (Math.random() < 0.2) {
query = '... | JavaScript | demo/dbmonster/js/data.js | paolocaminiti/jsonml2idom | mit | 1,108 | 61 | codeparrot/github-code |
be260303709c18c11630aebffa362e180e660b0feb59239d6e65bfdad8d83562 | #ifndef DUSK_CAMERA_HPP
#define DUSK_CAMERA_HPP
#include <Dusk/Config.hpp>
#include <Dusk/Math.hpp>
#include <Dusk/Entity.hpp>
#include <Dusk/String.hpp>
namespace Dusk {
enum class CameraMode
{
Perspective,
Orthographic,
}; // enum class CameraMode
class DUSK_CORE_API Camera : public Entity
{
public:
... | C++ | Modules/Core/Public/Dusk/Camera.hpp | WhoBrokeTheBuild/Dusk | mit | 2,189 | 130 | codeparrot/github-code |
ae05f6c202563aa0f38efcfcc9ccf693718d0a8f128defa8a73c2b3d1c73c5c4 | /**********************************************************************
*<
FILE: custcont.h
DESCRIPTION: Custom Controls for Jaguar
CREATED BY: Rolf Berteig
HISTORY: created 17 November, 1994
*> Copyright (c) 1994, All Rights Reserved.
**********************************************************************/
... | C | Tools/MedusaExport/max50/include/custcont.h | palestar/medusa | mit | 45,190 | 1,315 | codeparrot/github-code |
8b75fd0120c1ccee0971f1e379a7b3a7121a42756060bf537224fdb30ae7cc76 | class GrantApportionmentsController < OrganizationAwareController
before_action :set_grant
before_action :set_grant_apportionment, only: [:show, :edit, :update, :destroy]
# GET /grant_apportionments
def index
@grant_apportionments = @grant.grant_apportionments
end
# GET /grant_apportionments/1
def ... | Ruby | app/controllers/grant_apportionments_controller.rb | camsys/transam_accounting | mit | 1,987 | 75 | codeparrot/github-code |
56d48333a401f0a59b0c55832bbc6661f9353c03f035cfa27c518812ad0dca3a | #Get-TfsConfigServer "http://divcd83:8080/tfs" | Get-TfsTeamProjectCollectionAnalysis -Folder "C:\temp\Test_Analysis" -Verbose 4> "C:\Temp\Analysis_log.txt"
Write-Host "Loading DscTfs Module"
# Get TFS Object Model
$vsCommon = "Microsoft.VisualStudio.Services.Common"
$commonName = "Microsoft.TeamFoundation.Common"
$c... | PowerShell | DscTfs.psm1 | agileramblings/powershell | mit | 98,760 | 2,324 | codeparrot/github-code |
65689b9a6cf86e35f234f7ac00f4338833df2228d6afd4fb9e99e19feee02aa5 | 'use strict';
// Items controller
angular.module('items').directive('fileModel', ['$parse', function ($parse) {
return {
restrict: 'A',
link: function(scope, element, attrs) {
var model = $parse(attrs.fileModel);
var modelSetter = model.assign;
element.bind('ch... | JavaScript | modules/items/client/controllers/items.client.controller.js | tahirwaseer/news_feed | mit | 7,508 | 245 | codeparrot/github-code |
6505a17961bf1ab7a2a126a1c9c553f4f110c902a281382688e995fd639d856f | #include "raycaster/Intersection.hpp"
Ray::Ray(const glm::vec3 & origin, const glm::vec3 & direction) :
pos(origin), dir(glm::normalize(direction)), invdir(1.0f / glm::normalize(direction)) {
}
bool Intersection::sphere(const glm::vec3 & rayOrigin, const glm::vec3 & rayDir, float radius, glm::vec2 & roots){
const f... | C++ | src/engine/raycaster/Intersection.cpp | kosua20/GL_Template | mit | 1,299 | 33 | codeparrot/github-code |
101e3d07242ce56232f0824e9fc2df016bd7535b9764c8d8a7255277ad2efb2f | export const KubernetesClustersDetailComponent = {
bindings: {
transition: '<'
},
template: require('./kubernetes-clusters-detail.html'),
controller: KubernetesClustersDetailController
};
function KubernetesClustersDetailController(KubernetesClusters, projectServiceSelectorPopupService, logger) {
'ngInje... | JavaScript | platform-hub-web/src/app/kubernetes/kubernetes-clusters-detail.component.js | UKHomeOffice/platform-hub | mit | 2,522 | 101 | codeparrot/github-code |
0bd1408f03d959940001920152e00f1fef93a9be0052e343ed48d35ed38e665b | namespace CronGadgetry.Scheduling
{
using System;
public class CronTrigger : TriggerBase
{
private readonly CronExpression _expression;
public CronTrigger(string expression)
: this(CronExpression.Parse(expression), TimeSpan.Zero)
{
}
public CronTrigger... | C# | CronGadgetry/Scheduling/CronTrigger.cs | tswanepoel/crongadgetry | mit | 1,077 | 41 | codeparrot/github-code |
3035405ab49337513d655e8d653f533a447b38561d89644493ed1b24c5bf19b5 | # frozen_string_literal: true
require 'fileutils'
module Synvert::Core
# Rewriter is the top level namespace in a snippet.
#
# One Rewriter can contain one or many [Synvert::Core::Rewriter::Instance],
# which define the behavior what files and what codes to detect and rewrite to what code.
#
# Synvert::... | Ruby | lib/synvert/core/rewriter.rb | xinminlabs/synvert-core | mit | 10,190 | 310 | codeparrot/github-code |
d28747d90aac2e857d100cd4d3766cae0c23b45a7c2a59ca9162f9c85bd1a67b | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Login Page - Photon Admin Panel Theme</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<link rel="shortcut icon" href="ht... | HTML | lib/assets/images/photon/plugins/elrte/js/bootstrap/images/photon/js/plugins/prettify/js/plugins/jquery.tagsinput.min.js.html | user-tony/photon-rails | mit | 15,765 | 197 | codeparrot/github-code |
eb43de1194f3d4d2d0c8529c05a287704c26d5b236cbc8781a803e1854dcac52 | 'use strict';
var entryFactory = require('../../../factory/EntryFactory'),
cmdHelper = require('../../../helper/CmdHelper');
var ModelUtil = require('bpmn-js/lib/util/ModelUtil'),
is = ModelUtil.is,
getBusinessObject = ModelUtil.getBusinessObject;
module.exports = function(group, element, bpmnFactory) {... | JavaScript | lib/provider/bpmn/parts/DocumentationProps.js | aakhmerov/bpmn-js-properties-panel | mit | 2,048 | 76 | codeparrot/github-code |
980ccb6818ae252d1db1c02550b118ae06dd6b882c8c62e87b0ea48a9692fe4f | /* ========================================================================
* SkywalkApps Breakpoint Switcher: breakpoint-switcher.js v1.0.0
*
* Checks screen width and executes passed functions
*
* Copyright 2017 Martin Stanek, Twitter: @koucik, Github: @skywalkapps
* Licensed under MIT (https://github.com/skywa... | JavaScript | src/javascripts/breakpoint-switcher.js | skywalkapps/nav-priority | mit | 2,312 | 78 | codeparrot/github-code |
9511d1abbc454947c9b2277cf2a9b3cadb9e4cf50d2dcc6d716ed3751c71e7c1 | <section class="content-header">
<h1>
工程量上报
<small>列表</small>
</h1>
<ol class="breadcrumb">
<li><a href="${basePath}"><i class="fa fa-dashboard"></i> 首页</a></li>
<li><a href="#">项目信息</a></li>
<li class="active">工程量上报</li>
</ol>
</section>
<section class="content"... | HTML | AdminEAP-web/src/main/webapp/WEB-INF/views/Prints/volume_list.html | Squama/Master | mit | 4,673 | 116 | codeparrot/github-code |
d7caeed96a9ae3d8c4e12bbefb5950f25ec320f91bba90c56a7a86ea9aae2147 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>fermat4: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css... | HTML | clean/Linux-x86_64-4.09.1-2.0.6/released/8.12.2/fermat4/8.5.0.html | coq-bench/coq-bench.github.io | mit | 6,980 | 171 | codeparrot/github-code |
adacab276a1aa800b9143e854b66cab2e9eea55cb6756efd7e78a1e6e7b58800 | //! Test the USART3 instance
//!
//! Connect the TX and RX pins to run this test
#![feature(const_fn)]
#![feature(used)]
#![no_std]
extern crate blue_pill;
extern crate embedded_hal as hal;
// version = "0.2.3"
extern crate cortex_m_rt;
// version = "0.1.0"
#[macro_use]
extern crate cortex_m_rtfm as rtfm;
extern ... | Rust | examples/usart3.rs | nikhilkalige/stm32f411-bsp | mit | 1,636 | 89 | codeparrot/github-code |
adb650274670db2f1949c94bbf8a05ea4d1bfe413ded9b581acbe1812d43900f | package ua.com.fielden.platform.web.view.master.api.widgets.singlelinetext.impl;
import static java.util.Optional.empty;
import static java.util.Optional.of;
import java.util.Map;
import java.util.Optional;
import ua.com.fielden.platform.utils.Pair;
import ua.com.fielden.platform.web.view.master.api.widgets.impl.Abs... | Java | platform-web-ui/src/main/java/ua/com/fielden/platform/web/view/master/api/widgets/singlelinetext/impl/SinglelineTextWidget.java | fieldenms/tg | mit | 1,305 | 42 | codeparrot/github-code |
50c5d8cdcbd3ff792d97aba444b108fd4ee82a2d4853e2251ab00ca1b887bb1a | <?php
if (!defined('BASEPATH')) {
exit('No direct script access allowed');
}
class Profile_model extends CI_Model {
public function __construct() {
parent::__construct();
$this->load->database();
}
public function doProfileUpdate($id, $newdata) {
$this->db->where("id", $id);
... | PHP | application/models/Profile_model.php | ruskofulanito/CouchInn | mit | 2,695 | 80 | codeparrot/github-code |
04a9cdcfd38c0599c40292c6994964c0b889489652ea9ca964eed689abe77267 | -- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: 2018-09-09 11:54:56
-- æå¡å¨çæ¬ï¼ 5.5.47
-- PHP Version: 7.0.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_... | SQL | sql_bk/test (8).sql | uej/EZ | mit | 9,241 | 249 | codeparrot/github-code |
84fcd615e7705501e0edbdbddace9c4512bbf80fd28983eba4e64dc77ed599a0 | #!/usr/bin/env python
# Takes antismash output files in the current directory
# and grabs the cluster types summary file, generating
# a single txt file with all the cluster ID, types, and ranges.
# USAGE
# $ python compileclustertypes.py -o output_filename
# Returns tab-delimited txt file in the current directory.
i... | Python | clusterpluck/tools/compileclustertypes.py | RRShieldsCutler/clusterpluck | mit | 1,143 | 43 | codeparrot/github-code |
ca478c5caa4ef6b63e9f509eee45d543651fd31209e5143cf2f565fe3df5e514 | angular.module("rails.ujs")
.directive("method", ['csrf', function (csrf) {
function template(attr) {
return '<form action="' + attr.href + '" method="post">' +
' <input type="hidden" name="' + csrf.param + '" value="' + csrf.token + '"/>' +
' <input type="hidden" name="_method" ... | JavaScript | src/method-directive.js | ysbaddaden/ng-rails-ujs | mit | 1,137 | 40 | codeparrot/github-code |
82ba3cad21fcf051aefb38db52a7a9be265e4aad41f6caed06c84aa63def9906 | /*
***********************************************************************************************************************
*
* Copyright (c) 2014-2021 Advanced Micro Devices, Inc. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associ... | C++ | icd/api/renderpass/renderpass_logger.cpp | googlestadia/xgl | mit | 45,725 | 1,293 | codeparrot/github-code |
56f906ec2d4e6420dd6be6c57e3ef55250fe3af2388d88bf23060ce43bdea451 | <?php
/**
* Shop System SDK:
* - Terms of Use can be found under:
* https://github.com/wirecard/paymentSDK-php/blob/master/_TERMS_OF_USE
* - License can be found under:
* https://github.com/wirecard/paymentSDK-php/blob/master/LICENSE
*/
use Wirecard\PaymentSdk\Entity\CustomField;
// # Custom functions
// For re... | PHP | examples/inc/common.php | wirecard/paymentSDK-php | mit | 2,032 | 72 | codeparrot/github-code |
9e982b77aa5c8becbe9dfa2bb24ecd302c3b8fa8ab93d7cd76b6f5a2836f3bf1 | package ry.util;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import ry.wwm.frage.Fragen;
/**
* Utilities zum Einlesen der Frage und Antwort Datei
*
* Dateiformat
* Frage;Antwort A;Antwort ... | Java | WWM/src/ry/util/WWMImport.java | cnhonker/WWM | mit | 2,324 | 76 | codeparrot/github-code |
73c4253567f8bbd6d5bab12a68711055153a3fe13a30b1f73355b3c5c441cb01 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Diagnostics;
using System.Threading.Tasks;
namespace Microsoft.Its.Domain
{
[DebuggerStepThrough]
internal class AnonymousC... | C# | Domain/Scheduling/AnonymousCommandScheduler{T}.cs | commonsensesoftware/Its.Cqrs | mit | 1,355 | 40 | codeparrot/github-code |
18ba33c614e85bba54fae38bc9af5474b9ea995052514aa24ee82b88c79ce7ab | <!doctype HTML>
<html>
<head>
<title>Icons Preview!</title>
<style>
body {
background-image: linear-gradient(#eee 25%, transparent 25%, transparent), linear-gradient(#eee 25%, transparent 25%, transparent), linear-gradient(transparent 75%, #eee 75%), linear-gradient(transparent 75%, #eee 75%);
width: 10... | HTML | output/preview-fallback-extpng.html | filamentgroup/grunticon-inline-output | mit | 3,460 | 105 | codeparrot/github-code |
3d491e596b31cbdac4f3671c0dd007a963e8a2d62dd0e07833178e149c0e04b4 | using UnityEngine;
using System.Collections;
using UnityEditor;
namespace Lockstep
{
[CustomPropertyDrawer(typeof(PathObjectAttribute))]
public class EditorPathObject : UnityEditor.PropertyDrawer
{
const float defaultPropertyHeight = 16f;
public override float GetPropertyHeight(Serialized... | C# | Core/Utility/PathObject/Core/Editor/EditorPathObject.cs | erebuswolf/LockstepFramework | mit | 1,719 | 43 | codeparrot/github-code |
58f283b80b50cfc884390b1134640bf97d5568437f19b263e8d5d3b10c8a39c6 | using System;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Windows.Forms;
namespace WindowsFormsAero
{
[TypeConverter(typeof(AeroTabControlButtonConverter))]
public abstract class AeroTabControlButton
{
private readonly TabStrip _tabStrip;
[SuppressMess... | C# | NetrixDemo/FormsLib/WindowsFormsAero/WindowsFormsAero/Controls/AeroTabControl/AeroTabControlButton.cs | joergkrause/netrix | mit | 1,949 | 83 | codeparrot/github-code |
fd4b59fa090846cdec0569e373d711feb5c6ca99cfeac15a7f5e651c76b9b8a3 | <!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class ActivityMapping
| Picturepark.SDK.V1 API </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class A... | HTML | docs/sdk/site/api/Picturepark.SDK.V1.CloudManager.Contract.ActivityMapping.html | Picturepark/Picturepark.SDK.DotNet | mit | 10,718 | 323 | codeparrot/github-code |
6766fa3f37e4243a4e0d31e2d0b97e8280777a4240590fef91cd7989e9ed7e33 | using Tortuga.Anchor.Modeling;
namespace Tortuga.Drydock.Models
{
public class Constraint : ModelBase
{
public string ReferencedSchemaName { get => Get<string>(); set => Set(value); }
public string ReferencedTableName { get => Get<string>(); set => Set(value); }
public string Referenced... | C# | Tortuga.Drydock/Tortuga.Drydock.Core/Models/Constraint.cs | Grauenwolf/Tortuga-Drydock | mit | 1,131 | 32 | codeparrot/github-code |
1ebf48eff705265d62d3a02128198e68d0676ec58c3f4840bf3313416ca3d002 | 'use strict';
/* global require, describe, it, afterEach, beforeEach */
const Assert = require('assertly');
const expect = Assert.expect;
const File = require('phylo');
// const Location = require('../../../lib/model/Location');
// const Node = require('../../../lib/model/Node');
const Document = require('../../../... | JavaScript | test/specs/model/Document.js | dongryphon/doxyn | mit | 1,800 | 68 | codeparrot/github-code |
17e492b6937483568d0b95d52b6238ebda60f461d73f30ea5272c31d68a85a28 | /*
* Copyright (c) .NET Foundation and Contributors
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*
* https://github.com/piranhacms/piranha.core
*
*/
using System;
using System.ComponentModel.DataAnnotations;
using System.Threading.Ta... | C# | core/Piranha.Manager/Controllers/SiteApiController.cs | PiranhaCMS/piranha.core | mit | 6,094 | 204 | codeparrot/github-code |
2eeefadc9c392894e5eeb5fc389935bb5172fa0aa54c88dbe8ca8c7fc2d184ca | package com.wj44.echem.client.gui.inventory;
import com.wj44.echem.client.settings.KeyBindings;
import com.wj44.echem.init.ModItems;
import com.wj44.echem.inventory.ContainerDataBank;
import com.wj44.echem.network.MessageSelectDataCard;
import com.wj44.echem.network.NetworkHandler;
import com.wj44.echem.reference.Text... | Java | src/main/java/com/wj44/echem/client/gui/inventory/GuiDataBank.java | WJ44/ElementalChemistry | mit | 6,694 | 174 | codeparrot/github-code |
994aecbed8d0c44431c2fdb0ae55e4c55d0f7afe692e7b3d421e10f86cc0c32f | package me.minidigger.voxelgameslib.api.feature;
import com.google.gson.annotations.Expose;
import javax.annotation.Nonnull;
import me.minidigger.voxelgameslib.api.phase.Phase;
/**
* Abstract implementation of Phase
*/
public abstract class AbstractFeature implements Feature {
@Expose
private String name... | Java | api/src/main/java/me/minidigger/voxelgameslib/api/feature/AbstractFeature.java | MiniDigger/VoxelGamesLib | mit | 823 | 43 | codeparrot/github-code |
aee5fb85959af3ea5ed6f31445d91e972b38a31056d16f0ee90d0b49b6e0482e | // Copyright (c) 2016 Daniel Gromer
// Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT)
#include "anxpres_02.h"
#include "LogfileWriter.h"
// Sets default values
ALogfileWriter::ALogfileWriter()
{
// Set this actor to call Tick() every frame. You can turn this off to imp... | C++ | LogFileWriter/4.12/LogfileWriter.cpp | dgromer/ue4-misc | mit | 3,589 | 157 | codeparrot/github-code |
31767ec861d7924d2358ca0360596b263a9e95db3c70506693b089faa5d140b9 | // 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 <QApplication>
#include "paymentserver.h"
#include "guiconstants.h"
#include "ui_interface.h"
#include "util.h"
#i... | C++ | src/qt/paymentserver.cpp | fishcoin/fishcoin | mit | 4,505 | 163 | codeparrot/github-code |
746b3e5fab224f33f7e2c2604dd0ef69f461093f920f6e7e34d804bee796ebae | #include "CpuProc.h"
#include "SystemTool.h"
#include "ProcessName.h"
#include <set>
#include <sstream>
using std::map;
using std::set;
using std::vector;
using std::string;
string CpuProcUsage::ToStr() const
{
std::stringstream ss;
ss << "pid:" << m_pid << ", name:" << m_name << ", usage:" << m_usage;
return ss.... | C++ | src/lib/monitor/CpuProc.cpp | SeeForward/SysMonitor | mit | 2,355 | 129 | codeparrot/github-code |
b759427a583afa3014c2257c8d2ee0a0fe338b3b0266eb90a44e21b4961960d7 | /*jslint browser: true */
/*global google $ */
if (window.google && google.gears) {
var locator = {
geo: google.gears.factory.create('beta.geolocation'),
positionOptions: { enableHighAccuracy: true },
minAccuracy: 800, // margin-of-error in meters
searchingMessage: function() { ... | JavaScript | public/locator.js | hallettj/buscatcher | mit | 3,154 | 75 | codeparrot/github-code |
1d1a21590c991c82ebaf374271ff80989b2027d9b046fb6d7b91718a1d83f209 | "use strict"
var assert = require('assert');
var request = require('supertest');
var serverConfig = require('../../config/server');
var url = "http://" + serverConfig.host + ":" + serverConfig.port;
var server = request(url);
describe('Root page', function() {
describe('Request the main page', function() {
... | JavaScript | test/integration/rootPage.js | nazaryan/WgBoard | mit | 1,083 | 39 | codeparrot/github-code |
ec435c36a674bf5b1e343aa65b91689c857c1852ee654db31cf61f8e05630c33 | package com.hekta.chcitizens.abstraction.bukkit;
import net.citizensnpcs.api.ai.speech.SpeechContext;
import net.citizensnpcs.api.ai.speech.Talkable;
import com.laytonsmith.abstraction.bukkit.BukkitMCEntity;
import com.hekta.chcitizens.abstraction.MCCitizensSpeechContext;
import com.hekta.chcitizens.abstract... | Java | src/main/java/com/hekta/chcitizens/abstraction/bukkit/BukkitMCCitizensSpeechContext.java | Hekta/CHCitizens | mit | 2,177 | 87 | codeparrot/github-code |
39f48ce24ba6cc52ded688f81404881bda24fab1521ed0ba63848042dbb0ed23 | import {PlatformBuilder} from "@tsed/common";
import Sinon from "sinon";
import {expect} from "chai";
import {PlatformExpress} from "@tsed/platform-express";
const sandbox = Sinon.createSandbox();
class Server {}
describe("PlatformExpress", () => {
describe("create()", () => {
beforeEach(() => {
sandbox.... | TypeScript | packages/platform/platform-express/src/components/PlatformExpress.spec.ts | Romakita/ts-express-decorators | mit | 1,016 | 38 | codeparrot/github-code |
e3ebf94f261cff593013a0b063db371a1edbdd06efcb415793fbc5733ed79a6e | <?php
/**
* Database wrapper, provides a database API for the framework but hides details of implementation.
*
* @package DalekCore
*/
class CMDatabase {
/**
* Members
*/
private $db = null;
private $stmt = null;
private static $numQueries = 0;
private static $queries = array();
/**
* Construct... | PHP | src/CMDatabase/CMDatabase.php | jennohjenn/dalek | mit | 1,816 | 82 | codeparrot/github-code |
71ab0a9addbf104c16cf8edd15e929e484382864719c2711733e498d1554690f | /* ------------------------------------------------------------------
* TimeCell.java
*
* Semantic Zooming Path
*
* Created 2009-03-14 by Ji Soo Yi <yij@purdue.edu>.
* ------------------------------------------------------------------
*/
package edu.purdue.timematrix.visualization.nodes;
import edu.... | Java | src/edu/purdue/timematrix/visualization/nodes/TimeCellAbstract.java | yijisoo/TimeMatrix | mit | 1,725 | 61 | codeparrot/github-code |
0c850c09f6fa54f9ab9f8ceee5429f4f2110bb134c29826729d0bd40f14e4306 | /**
* Waits until `n` milliseconds after the last burst of values before emitting
* the most recent value from the signal `s`.
*
* @private
*/
export default function debounce (n, s) {
return emit => {
let buffer
let id
const flush = () => {
if (buffer) { emit.next(buffer) }
buffer = nul... | JavaScript | packages/bulb/src/combinators/debounce.js | nullobject/bulb | mit | 676 | 37 | codeparrot/github-code |
d4289553eb0cc2695c73342a79be4ac4c8942a1fe62d7ff4a0ed82be7e731d7b | // load the things we need
var mongoose = require('mongoose');
var bcrypt = require('bcrypt-nodejs');
// define the schema for our user model
/*
var mapinfoSchema = mongoose.Schema({
marker:String,
centerLatitude:Number,
centerLongitude:Number,
zoomLevel:Number,
})*/
var userSchema = mongoose.Schema({
... | JavaScript | app/models/user.js | gick/reveries-server | mit | 1,905 | 63 | codeparrot/github-code |
54d5c6a0383f4240a3ced7c116e579e1df35c438ea453f4589b8840a47541b7f | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mini-compiler: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.... | HTML | clean/Linux-x86_64-4.12.0-2.0.8/released/8.14.0/mini-compiler/8.5.0.html | coq-bench/coq-bench.github.io | mit | 7,217 | 168 | codeparrot/github-code |
cb25842aceb90d83195f7f118f12e92869178c15bbe439e7c73a960edeb03e73 | /**
* Account model events
*/
'use strict';
var EventEmitter = require('events').EventEmitter;
var Account = require('../../sqldb').Account;
var AccountEvents = new EventEmitter();
// Set max event listeners (0 == unlimited)
AccountEvents.setMaxListeners(0);
// Model events
var events = {
'afterCreate': 'save',... | JavaScript | server/api/account/account.events.js | aladdin83/MCMS | mit | 727 | 36 | codeparrot/github-code |
7866487fa28a7e5bef57ec3a88d387e260aef2fcfbe048119e64dced5ba97885 | using System;
using System.Collections.Generic;
using System.Text;
namespace Axiom.Runtime.Builtins.Comparison.Numeric
{
// Integer >= Integer
public class GreaterThanEqualPredicate : AbstractPredicate
{
public override int Arity()
{
return 2;
}
public override ... | C# | Prolog.AbstractMachine/Builtins/Comparison/Numeric/GreaterThanEqualPredicate.cs | ahodroj/prologdotnet | mit | 905 | 40 | codeparrot/github-code |
a27e85f0b2066596322b2dc0a68f64b6f0bcce30a3976031402d0c1af1206192 | <img src="/files/sneslogo.png" align="right" width="200"/>
<div style="border: 3px dotted red;width:100%; text-align:center;">**This is just yet another implementation of that gentleman's work: [[http://www.raphnet.net/electronique/snes_nes_usb/index_en.php]]. Thank you Mr. Raphaël Assénat for sharing!**</div>
<br/>... | HTML | static/snes pad usb adapter.html | AlanFromJapan/alanWebSites | mit | 5,270 | 76 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.