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 |
|---|---|---|---|---|---|---|---|---|
2af9ed55e267c43762f1997e48b27bdd8d3533eb0d9fba309fc7314df4f9b1a3 | function clicked_event(event){
var link = "php/viewCalendarRelated/meetingPopup.php?id=" + event.id + "&title=" + event.title +
"&department=" + event.department + "&supervisor_id=" + event.creator_id +
"&start=" + event.start + "&end=" + event.end + "&description=" + event.description +
"&voting_id=" +... | JavaScript | js/scheduler.js | BigBackBoom/DECO3801-Meetrix | mit | 2,996 | 95 | codeparrot/github-code |
fd385f0fbfb1641aa4dbd19addae05d840f29ef7d36f5eb075b18fd37676b1de | //*******************************************************************
// License: See top LICENSE.txt file.
//
// Author: Garrett Potts
//
// Description:
//
// Calls Geotrans Utm projection code.
//*******************************************************************
// $Id: ossimAzimEquDistProjection.cpp 9094 2006-... | C++ | src/projection/ossimAzimEquDistProjection.cpp | ossimlabs/ossim | mit | 17,361 | 485 | codeparrot/github-code |
8bf3b1c98dad670efa7abcdfce0283a3f8b783b082ad43d4f14605221ded921a | import { VerifiedIcon } from "@artsy/palette"
import { VerifiedSeller_artwork } from "__generated__/VerifiedSeller_artwork.graphql"
import React from "react"
import { createFragmentContainer } from "react-relay"
import { graphql } from "react-relay"
import { TrustSignal, TrustSignalProps } from "./TrustSignal"
interfa... | TypeScript | src/Apps/Artwork/Components/TrustSignals/VerifiedSeller.tsx | xtina-starr/reaction | mit | 1,126 | 45 | codeparrot/github-code |
5ea25e835c2d725e2ad6eb5e04b6a8dea0d92167d460b465b7d044d56d3a6c8c | #ifndef _BOOTLOADER_SERIAL_H
#define _BOOTLOADER_SERIAL_H
#include "AppConfig.h"
typedef enum
{
PROG,
COMPRIMENTO,
DADOS,
RECEIVE_CRC,
FIM,
}BootloaderFSM_states;
typedef enum
{
ENTRY_BOOTLOADER = 1,
DATA_DONE = 3,
DATA_OK = 4,
DATA_ERROR = ... | C | MODULOS/APPS/BOOTLOADER/Bootloader_serial.h | brtos/brtos-gpsnet | mit | 1,613 | 74 | codeparrot/github-code |
f4d3164bf16255827621c2e0c4b640ed2b50bf9e461d850c85bd752ed774a015 | # vim: set fileencoding=utf-8
import decimal
import datetime
DEFAULT_VAT = {
'S1': decimal.Decimal('1.20'), # Standard
'P1': decimal.Decimal('1.20'),
'SL': decimal.Decimal('1.05'), # Reduced
'PL': decimal.Decimal('1.05'),
'S0': decimal.Decimal('1'), # 0%
'P0': decimal.Decimal('1'),
'SE'... | Python | eactivities/utils.py | lukegb/ehacktivities | mit | 3,341 | 135 | codeparrot/github-code |
baf159210612984eb2fd05a923d98282a33630327bc6569a0c5c00912dc59127 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exercising
{
class Exercising
{
static void Main(string[] args)
{
string text = Console.ReadLine();
var splitText = text.Split(',', ' ');//.Sele... | C# | Programming Fundamentals/04.Arrays/Exercising/Exercising.cs | Plotso/SoftUni | mit | 1,417 | 55 | codeparrot/github-code |
50ae06f6020b87d742a3333b4fb9bdde41a7518fb0284658fcd306761646c558 | /****************************************************************************************/
/* */
/* Pegasus */
/* ... | C++ | Source/Pegasus/AssetLib/AssetBuilder.cpp | kecho/Pegasus | mit | 2,771 | 112 | codeparrot/github-code |
87a46f68c99c0589e0bcdf8e92991a1720ab3ee3a143e86786c66297b8f3f8ce | package de.w_hs.keylessentry.data;
import android.os.Parcel;
import android.os.Parcelable;
import com.sun.identity.authentication.modules.hotp.HOTPAlgorithm;
import java.nio.ByteBuffer;
import java.util.Arrays;
import java.util.Comparator;
import java.util.UUID;
import static de.w_hs.keylessentry.Helper.*;
public ... | Java | android/app/src/main/java/de/w_hs/keylessentry/data/Door.java | Almewty/keylessentry | mit | 3,687 | 133 | codeparrot/github-code |
624150581de4de3935ab041b50ca344e9efc5c5cdf4516320f9b81365ad10677 | /*
The MIT License (MIT)
Copyright (c) 2015 Andreas Marek and Contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files
(the "Software"), to deal in the Software without restriction, including without limitation the ri... | Java | src/main/com/intellij/lang/jsgraphql/types/language/DirectivesContainer.java | jimkyndemeyer/js-graphql-intellij-plugin | mit | 3,489 | 80 | codeparrot/github-code |
04b1c22e639b00342bba962b1237eaa6da815e6d3cf9190a24ea9324d4a2b169 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public abstract class Weapon : MonoBehaviour {
public Projectil projectil;
public Weapon(Projectil projectil)
{
this.Projectil = projectil;
}
public Projectil Projectil
{
get
{
... | C# | Assets/Scripts/Weapons/Weapon.cs | escrawn/SimpleUnityGame | mit | 579 | 42 | codeparrot/github-code |
19e5e168bb54e386c948148f14bdf7da0eefeab4c4f0027217eb54f50e6c3e2f | <?php
/* TwigBundle:Exception:logs.html.twig */
class __TwigTemplate_729e3bbc29fe42f4a6e3b22a6e1ae7b5304cc6cf2e4c5326b09b85a01448350a extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
... | PHP | app/cache/dev/twig/72/9e/3bbc29fe42f4a6e3b22a6e1ae7b5304cc6cf2e4c5326b09b85a01448350a.php | gr-thao/jobeet | mit | 2,969 | 65 | codeparrot/github-code |
72a03306e85a8712fdbba338af4d0da4caccbe27902bb5ddd9e698efccba6206 | package pl.panryba.mc.guilds;
import org.bukkit.World;
import java.util.HashSet;
import java.util.Set;
public class GuildsConfig {
private Set<GuildCostItem> costs;
private Set<GuildCostItem> renewalCosts;
private Set<GuildLimit> limits;
private Set<World> allowedWorlds;
private int renewalDays;
... | Java | src/main/java/pl/panryba/mc/guilds/GuildsConfig.java | PanRybaPl/fish-factions | mit | 2,399 | 101 | codeparrot/github-code |
46f49406219c759e91410fcd605b779fd57ca37beb37db1c0dfc96c8db53d9f6 | /* eslint react/no-multi-comp:0, no-console:0 */
import createDOMForm from 'rc-form/src/createDOMForm';
import React, { Component, PropTypes } from 'react';
import ReactDOM from 'react-dom';
import { regionStyle } from './styles';
class Form extends Component {
static propTypes = {
form: PropTypes.object,
};
... | JavaScript | examples/radio-group.js | setState/form | mit | 2,430 | 95 | codeparrot/github-code |
888049493c5b0f8ed4cca75093639c4e6a0b2ee776ff1f53cf3b49cd4fb288b1 | <?php
/** The message PHP helper
* @todo Discover bootstrap - it now can use .fade .in so the cf::appendToHeadTag can be omitted */
class msg
{
/**@var array Context "map" to dedicated Bootstrap class attribute*/
private static $contextMapToBootstrapClass = array(
"plain"=>"alert-info", "success"=>"a... | PHP | msg/msg.php | webdivane/helpers | mit | 4,230 | 86 | codeparrot/github-code |
a70e46feaa9a38b19b7a42046f5fea133428662e0b19631a8c94170bc940c383 | {% include header.html lib=page %}
<div class="neck" id="meta">
<div class="title">{{ page.title }}</div>
<div class="version">{{ page.version }}</div>
{% include lib_language_bubbles.html lib=page %}
{% include lib_source_bubbles.html lib=page %}
{% include lib_license_bubbles.html lib=page %... | HTML | _layouts/lib.html | Eun/lib.rs | mit | 1,811 | 59 | codeparrot/github-code |
6ee8c24e1ecaa1712b5f7802f720edbc6e87fc892b1f1f243c89889aebff156a | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | extensions/css-language-features/server/src/cssServerMain.ts | rishii7/vscode | mit | 12,281 | 320 | codeparrot/github-code |
d6618b22436a0ea89a97746a6d61d2df6f5050f329f992bd851f7f1e8c4b7952 | <!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font-family : "Helvetica Neue", Helvetica, Arial, sans-serif;
margin : auto;
position : relative;
width : 960px;
}
text {
font : 10px sans-serif;
}
.axis path, .axis line {... | HTML | chart/queueTime.html | muchavie/sf311 | mit | 4,847 | 163 | codeparrot/github-code |
b25a526509d24dfab10203fb9de6f1533c795e2b251a06971e01ac9f2318028c | package jp.co.acroquest.endosnipe.web.explorer.service;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.regex.Pattern;
import jp.co.acroquest.endosnipe.common.entity.ItemType;
import jp.co.acroquest.endosnipe.c... | Java | Dashboard/src/main/java/jp/co/acroquest/endosnipe/web/explorer/service/SignalService.java | t-hiramatsu/ENdoSnipe | mit | 20,299 | 591 | codeparrot/github-code |
401857aafe689dbd41693379da56e799a63e89f4420eb471227902cc9b11a598 | require 'rubydns'
require 'ipaddr'
require 'win32/process' unless (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM).nil? # only require on Windows
require_relative 'store'
require_relative 'util/path'
require_relative 'util/process_helper'
module Landrush
class Server
extend Landrush::Util::ProcessHelper
... | Ruby | lib/landrush/server.rb | mheiges/landrush | mit | 8,846 | 279 | codeparrot/github-code |
f154c7ef83eedca764825bbcb522df31bb58f9ba118c6e545f8c7a5f42bcb6e8 | import { call, put, takeEvery } from 'redux-saga/effects';
import { format } from '@waldur/core/ErrorMessageFormatter';
import { translate } from '@waldur/i18n';
import * as api from '@waldur/issues/security-incident/api';
import { closeModalDialog } from '@waldur/modal/actions';
import { showError, showSuccess } from... | TypeScript | src/issues/security-incident/store/effects.ts | opennode/waldur-homeport | mit | 1,180 | 38 | codeparrot/github-code |
692f8f09957f68723f43482299015ee62e7662b81c31efd585e7b8ff4bd1d463 | import React from 'react';
import { render } from 'react-dom';
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import throttle from 'lodash/throttle';
import { loadState, saveState } from './app-logic/localStorage';
import rootReducer from './reducers/root';
import App from './components/Ap... | JavaScript | js/index.js | hihuz/mine-sweeper | mit | 869 | 35 | codeparrot/github-code |
8ee259cc8d4ae99f39e62b490f01b5fc862dbfbd506bd81ddb818142a5763d83 | import * as PixelUI from "../";
export interface BackgroundStyle {
/**
* Background fill color
*/
fillColor?: string;
/**
* Background alpha
*/
fillAlpha?: number;
/**
* Texture image name
*/
texture?: string;
}
/**
* A background image component that displays a theme color or texture
... | TypeScript | src/pixelui/component/Background.ts | fubira/cordova-phaser-typescript-template | mit | 1,179 | 56 | codeparrot/github-code |
954d532c945f2cf8bea944af56bfa60602cc56b924edf4149305df3fae74291c | <?php
/*
* Copyright 2014 Google Inc.
*
* 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 applicable law or agreed t... | PHP | application/libraries/php-google-sdk/google/apiclient-services/src/Google/Service/ServiceManagement/Experimental.php | dwivivagoal/KuizMilioner | mit | 1,039 | 32 | codeparrot/github-code |
c5766046667eef4ee67c93ed9125be789a1a1fd39927a8f5744e0089edccbf01 | var serverRoot = "SERVER_ROOT";
var accountSid = "ACCOUNT_SID";
var authToken = "AUTH_TOKEN";
var callNumber = "+15555555555";
var client = require('twilio')(accountSid, authToken);
var express = require('express');
var bodyParser = require('body-parser');
var app = express();
app.use(bodyParser.json());
app.use(body... | JavaScript | server.js | ruiqimao/voxo | mit | 3,685 | 151 | codeparrot/github-code |
4e69e9162037ccd2bf35394eb3ee5f41ad423465c9c3409cdbfc7238ccc0e897 | /**
* Copyright (c) UNA, Inc - https://una.io
* MIT License - https://opensource.org/licenses/MIT
*
* @defgroup Ads Ads
* @ingroup UnaModules
*
* @{
*/
function BxAdsEntry(oOptions) {
this._sActionsUri = oOptions.sActionUri;
this._sActionsUrl = oOptions.sActionUrl;
this._sObjName = oOptions.... | JavaScript | modules/boonex/ads/js/entry.js | boonex/trident | mit | 3,188 | 110 | codeparrot/github-code |
73fbfb838350dc680f591f9eae3bf350dfebb8cb3ea53e5271ebac299282468e | const BLOCK_LENGTH = 1 << 14
class Piece {
constructor (length) {
this.length = length
this.missing = length
this.sources = null
this._chunks = Math.ceil(length / BLOCK_LENGTH)
this._remainder = (length % BLOCK_LENGTH) || BLOCK_LENGTH
this._buffered = 0
this._buffer = null
this._canc... | JavaScript | index.js | feross/torrent-piece | mit | 2,430 | 104 | codeparrot/github-code |
35b78c0cd105678a9648557e518a94a9a58dec4c5729170960945af47ffcce84 |
// haj_player_c.h
/////////////////////////////////////////////////////////////////////////////
#ifndef __INC_PLAYER
#define __INC_PLAYER
#pragma once
/////////////////////////////////////////////////////////////////////////////
// includes
#include "c_hl2mp_player.h"
#include "haj_player_shared.h"
#include "haj_pla... | C | cl_dll/haj/haj_player_c.h | sswires/ham-and-jam | mit | 4,945 | 171 | codeparrot/github-code |
58b345536ea0fb566c1a29cfbae84f3e3c4cb9225863e650ea5f99e0cb6754bc | //
// SQMedia.h
// login
//
// Created by Alaa M Awad on 3/30/15.
// Copyright (c) 2015 Technalaa. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "SQLikeButton.h"
typedef NS_ENUM(NSInteger, SQMediaDownloadState) {
SQMediaDownloadStateNeedsImage = 0,
SQMediaDownloadStateDown... | C | ios-app/login/Models/SQMedia.h | awadalaa/ios-server-bootstrapped | mit | 1,103 | 45 | codeparrot/github-code |
8a27f0fed80ca0e9109f8051da5c3aa26618680b1921cfa9a20977b51df734ba | import re
import requests
import logging
logger = logging.getLogger(__name__)
class JsUnPacker(object):
"""
It takes the javascript file's url which contains the port numbers for
the encrypted strings. The file has to be unpacked to a readable form just like
http://matthewfl.com/unPacker.html does. T... | Python | http_request_randomizer/requests/parsers/js/UnPacker.py | pgaref/HTTP_Request_Randomizer | mit | 1,507 | 42 | codeparrot/github-code |
072a2b11f5141aca3e00c6a05d9d1e248c66359ea330900f2ec7a3c939002f60 | package io.github.jakriz.derrick.generator;
import io.github.jakriz.derrick.model.Argument;
import io.github.jakriz.derrick.model.ProcessedInterface;
import io.github.jakriz.derrick.model.ProcessedMethod;
import javax.annotation.processing.Filer;
import javax.tools.JavaFileObject;
import java.io.IOException;
import j... | Java | core/src/main/java/io/github/jakriz/derrick/generator/HardcoreClassGenerator.java | jakriz/derrick | mit | 2,775 | 83 | codeparrot/github-code |
c81a1de4563b5d93522da2da8c135635c017361130aca28518dd57b44428f63e | /*
|---------------------------------------------------------|
| ___ ___ _ _ |
| / _ \ _ __ ___ _ __ |_ _|_ __ | |_ ___ _ __ | |_ |
| | | | | '_ \ / _ \ '_ \ | || '_ \| __/ _ \ '_ \| __| |
| | |_| | |_) | __/ | | || || | | | || __/ | | | |_ |
| \___/| .__/ \... | C++ | test/InterpreterTest.cpp | open-intent-io/open-intent | mit | 20,239 | 483 | codeparrot/github-code |
5b5994f1b40ce0056116d399181dd2648207433c24a6a269ecbd06601e9e485c | {
window.onload = function() {
$('#loginbtn').on('click', function() {
validate(ajaxLogin);
});
$('#registerbtn').on('click', function() {
validate(ajaxRegister);
});
}
function validate(handler) {
$('#error').html('');
$('#form').validate({
rules : {
username: {
minlength: 2,
maxlen... | JavaScript | js/basic.js | Tweety-FER/ultimate-ciglan | mit | 1,178 | 68 | codeparrot/github-code |
c45c98679a99c72ed223e95708e461f632654a4cbda02078140628a44be2bb6a | require 'ps2'
# TODO: Clean up with `error` gem
module PS2
# The PS2 standard Error.
class Error < StandardError
# The error message.
def to_s
'Some unknown error has occurred! Please report this issue at https://github.com/c00lryguy/ps2/issues'
end
end
# Raised when too many... | Ruby | lib/ps2/errors.rb | RyanScottLewis/ps2 | mit | 4,059 | 192 | codeparrot/github-code |
0295ca3438bb518f0ac3daeab3431ba2861950e72e844d6f1f7d9c01faa4942e |
/**
* @fileoverview Rewrites HTTP headers for Usajobs.gov REST API access.
Release 5.7 of the Usajobs.gov REST API requires HTTP headers
be modified to include an API key. This is unfortunate since web
browsers prevent javascript apps from altering HTTP headers (for security
reasons)--javascript based web a... | JavaScript | 1_WebExtension/WebExtension/background.js | mgalbright/usajobtool | mit | 1,640 | 48 | codeparrot/github-code |
ea7b0f6ac6879843b219077aecdd7cfc269ddf43ce0eb7ab476adad339c61717 | package twg2.collections.primitiveCollections;
/** The handle for an {@link IntArrayView} which is used to modify the IntArrayView's
* underlying array using {@link #setIntArrayView(int[], int, int)}.
* Use {@link #getIntArrayView()} to retrieve the array view.
* An instance of this class manages exactly one {@link... | Java | src/twg2/collections/primitiveCollections/IntArrayViewHandle.java | TeamworkGuy2/JPrimitiveCollections | mit | 2,545 | 77 | codeparrot/github-code |
ea6984e1410cac2754a50eb38557863d4c130c8982e12a14c227ef59bc1112ee | package com.rabriel;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.function.Predicate;
/**
* Created by gabriel on 19/10/2016.
* Class uses to provide Given When Then test flow methods
*/
... | Java | src/main/java/com/rabriel/GivenWhenThen.java | gabriel-deliu/given-when-then | mit | 2,824 | 94 | codeparrot/github-code |
66d2837b5697761e9b3938b1f70ac378461ec28b20d097cacb161b7c9f091c66 | /*
identificare operanzi/operatori (+,-,*,/) din expresie
string expr = "A8+ b12 - u3 + 3 - T23"
//fiecare termen al expresiei trebuie pus intr-un element dintr-un sir
string arr[100];
arr[0] = 'A8';
arr[1] = '+'
arr[2] = 'b12'
arr[3] = '-'
arr[4] = 'u3'
arr[5] = '+'
arr[6] = '3'
arr[7] = '-'
arr[8]... | C++ | Diverse/Text/formula2.cpp | rlodina99/Learn_cpp | mit | 974 | 57 | codeparrot/github-code |
1bce4b90707c86c64b8baa7f30b33959993900b161472631a68766706b57c9f6 | /*
* 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 nl.utwente.bigdata;
import java.util.ArrayList;
import java.util.List;
import nl.utwente.bigdata.GoalDefiner.GoalMapper;
impor... | Java | src/main/java/nl/utwente/bigdata/GoldenBoot.java | tritter/GoldenBoot | mit | 3,353 | 84 | codeparrot/github-code |
496f9993e0146be361357dad693188dfa570debdf74d87d3111029fc9d541ded | package chrome.sockets.tcpServer
import chrome.events.EventSource
import chrome.events.EventSourceImplicits._
import chrome.sockets.tcpServer.bindings._
import utils.ErrorHandling.lastErrorOrValue
import scala.concurrent.{Future, Promise}
import scala.scalajs.js
object TCPServer {
val onAccept: EventSource[Accept... | Scala | bindings/src/main/scala/chrome/sockets/tcpServer/TCPServer.scala | amsayk/scala-js-chrome | mit | 2,530 | 81 | codeparrot/github-code |
461a16a2f99ed1b70341b00f8d30a3d0c12febac11ea8d323dad56cda1bbc232 | /**
* Created by jf on 15/10/27.
*/
import React from 'react';
import classNames from 'classnames';
class Mask extends React.Component {
static propTypes = {
transparent: React.PropTypes.bool
};
static defaultProps = {
transparent: false
};
render() {
const {transpare... | JavaScript | app/src/Frontend/libs/weui/components/mask/mask.js | ptphp/ptphp | mit | 604 | 32 | codeparrot/github-code |
1bcb3efaae9559633de59749c234c638ff8d353151865c10bd4a978e7162334d | mean_beta(a, b) = a / (a + b)
meanlog_beta(a, b) = digamma(a) - digamma(a + b)
mean_mirror(a, b) = mean_beta(b, a)
meanlog_mirror(a, b) = meanlog_beta(b, a)
function expected_logpi!{Tw <: Integer}(pi::Vector{Float64}, vm::VectorModel, w::Tw, min_prob::Float64=1e-3)
r = 0.
x = 1.
senses = 0
pi[:] = vm.counts[:, w] ... | Julia | src/stick_breaking.jl | buriy/AdaGram.jl | mit | 1,268 | 51 | codeparrot/github-code |
4a5db3db01b9bc92076a99ec8700537d2bb1f6b2062931087b08649d8ae96685 | const path = require("path");
function Module(name, baseDir) {
this.name = name;
this.dir = path.join(baseDir, name, "../");
this.file = path.join(baseDir, name) + ".js";
// Determine if the module name is relative.
if (name.indexOf("../") === 0 || name.indexOf("./") === 0) {
this.isRelative = true;
}... | JavaScript | lib/module.js | tbranyen/synchronizer | mit | 852 | 34 | codeparrot/github-code |
eecebba812062a10bbeacbe679fef53540e3c2e1eefdaf97abfc7c3ddc6f4053 | /** @file CSource.cpp
*
* @brief Helper for loading and managing COLLADA source nodes
*
* Copyright 2012-2013, Stewart Hall
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @author Stewart Hall (www.stewartghall.com)
* @date 3/10/2013
* @copyright ... | C++ | ShockShapes/CSource.cpp | thestew42/ShockShapes | mit | 4,923 | 216 | codeparrot/github-code |
57367491dd55c29acf48c1abaee04422b68d264f5f414a2fd00a98ff975655bd | /*
* Copyright (c) 2017-2019 by Botorabi. All rights reserved.
* https://github.com/botorabi/Meet4Eat
*
* License: MIT License (MIT), read the LICENSE text in
* main directory for more details.
*/
package net.m4e.app.event.business;
import net.m4e.common.EntityBase;
import javax.persistence.*;
import j... | Java | src/main/java/net/m4e/app/event/business/EventLocationVoteEntity.java | botorabi/Meet4Eat | mit | 6,295 | 279 | codeparrot/github-code |
507f12d6e7a799a3b0efa3a828436f3a033eb2a2b0cf8b47e763aec8ac028d4f | namespace QStore.Core.Structs
{
using System;
using System.Runtime.Serialization;
[DataContract]
[Serializable]
public struct QSetTransition
{
[DataMember(Order = 1)]
internal readonly int StateIndex;
/// <summary>
/// Highest (32-nd) bit stands for IsFinal.
... | C# | Code/QStore/Core/Structs/QSetTransition.cs | patkovskyi/QStore | mit | 1,121 | 46 | codeparrot/github-code |
2bfae7fb58d7cbd3bc27df57fc2148c69fe751c52d799ebcad9d2d82aa0409da | /*
* Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
* <p>
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.gnu.org/licenses/lgpl.html
* <p>... | Java | jeepay-payment/src/main/java/com/jeequan/jeepay/pay/service/ConfigContextQueryService.java | jmdhappy/xxpay-master | mit | 8,279 | 213 | codeparrot/github-code |
8b6a5b0e42ea6dab3451d3f7aeb3bbc2fc1229f6e3676cd277b1afd30b1d723e | module MuckContentsHelper
# share is an optional share object that can be used to pre populate the form.
# content: Optional content object to be edited.
# options: options for form. For example:
# :url => 'some-url', :html => {:id => 'a form'}
def content_form(content = nil, options = {}, &bl... | Ruby | app/helpers/muck_contents_helper.rb | tatemae/muck-contents | mit | 1,320 | 32 | codeparrot/github-code |
d9844ed7d01989e773437907aae3fcbd70459b99b6d8ba693965dc770ce92f51 | /*
* 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 clue.GamePieces;
import clue.Helpers.Location;
import java.awt.Color;
import java.util.ArrayList;
/**
*
* @author glender
... | Java | Clue/src/clue/GamePieces/Player.java | glender/Clue | mit | 4,510 | 191 | codeparrot/github-code |
5e6d9b70e26323b4ffafa92ce01c35c772d5a14684b51246daa04ee0d66bc75f | <?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\Sec... | PHP | app/AppKernel.php | elodie05/partnight_project | mit | 1,670 | 44 | codeparrot/github-code |
25b98fe499a8575d751395edf1329ae4a5600b00b5e7d60f0b5bd6353060727f |
_test1: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
int n = 1;
void test_func(void *arg_ptr);
int main(int argc, char *argv[]){
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 83 e4 f0 and $0xfffffff0,%esp
6: 83 ec 20 ... | Assembly | test1.asm | phung001/xv6_lab2_mark | mit | 64,501 | 1,855 | codeparrot/github-code |
14ce08789c119a8145a3d202afc7ae0317c373327f969b5a6ed42b928b38930d | /**
* @author sunag / http://www.sunag.com.br/
*/
import { TempNode } from '../core/TempNode.js';
import { ConstNode } from '../core/ConstNode.js';
import { StructNode } from '../core/StructNode.js';
import { FunctionNode } from '../core/FunctionNode.js';
import { FunctionCallNode } from '../core/FunctionCallNode.js... | JavaScript | examples/jsm/nodes/misc/TextureCubeUVNode.js | aardgoose/three.js | mit | 9,838 | 282 | codeparrot/github-code |
a596d0ef8ce50b7cf2bffccff4efdc77f61873c937823b6f158aac80952c80da | package session
import (
"errors"
"log"
"net"
"sync"
)
var ErrMaxConnection = errors.New("Maximum connection count reached")
type multiWriterEntry struct {
conn net.Conn
writer writerFlusher
}
type multiWriter struct {
entries []multiWriterEntry
lock sync.RWMutex
}
func NewMultiWriter(conn net.Conn, w... | GO | session/multiwriter.go | maxhauser/touche | mit | 1,800 | 100 | codeparrot/github-code |
073d681870ae8b26cd49629a233cc34dfdf99a0ea0cb80b3d3e2e7acb88e9593 | module ObjectSpace
WeakMap = ObjectSpace::WeakMap
def self._id2ref(arg0)
end
def self.count_objects(arg0, arg1, *rest)
end
def self.define_finalizer(arg0, arg1, *rest)
end
def self.each_object(arg0, arg1, *rest)
end
def self.garbage_collect
end
def self.undefine_finalizer(arg0)
end
... | Ruby | .metadata/.plugins/com.aptana.ruby.core/-151104544/4/objectspace.rb | gmmc/gmmc.github.io | mit | 581 | 49 | codeparrot/github-code |
422f953e2d12d4fd58d5d5d3b3a44c1c46b98a0ec80aa58055e99f7f70ea1f81 | using System.Collections;
using System.Collections.Generic;
using System;
using NetRuntimeSystem = System;
using System.ComponentModel;
using NetOffice.Attributes;
using NetOffice.CollectionsGeneric;
namespace NetOffice.OfficeApi
{
/// <summary>
/// DispatchInterface DiagramNodes
/// SupportByVersion Office, 10,1... | C# | Source/Office/DispatchInterfaces/DiagramNodes.cs | NetOfficeFw/NetOffice | mit | 6,848 | 214 | codeparrot/github-code |
5d957b4c18b6103d695252c27137ba5e1ca06bb66240a981716cda7b99979564 | module.exports = function(cv) {
function reshapeRectAtBorders(rect, imgDim) {
const newX = Math.min(Math.max(0, rect.x), imgDim.cols)
const newY = Math.min(Math.max(0, rect.y), imgDim.rows)
return new cv.Rect(
newX,
newY,
Math.min(rect.width, imgDim.cols - newX),
Math.min(rect.heig... | JavaScript | lib/src/drawUtils.js | justadudewhohacks/opencv4nodejs | mit | 4,268 | 192 | codeparrot/github-code |
a154d4397349480c5b07ab94b6ba50df26fa86442a8e3433a4e6804c33c83b54 | require 'log4r'
require 'nokogiri'
require 'vagrant/util/busy'
require 'vagrant/util/network_ip'
require 'vagrant/util/platform'
require 'vagrant/util/retryable'
require 'vagrant/util/subprocess'
require 'vagrant/util/which'
module VagrantPlugins
module Parallels
module Driver
# Base class for all Paralle... | Ruby | lib/vagrant-parallels/driver/base.rb | Parallels/vagrant-parallels | mit | 31,877 | 910 | codeparrot/github-code |
6070f9e54c70ecf6489a62169c47de1d87ad43bf8efc3bf50bc945a85ef2e742 | package com.girnar.explorejaipur.activities;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.TextV... | Java | src/com/girnar/explorejaipur/activities/Monuments.java | tarundixitravi/ExploreJaipur | mit | 3,798 | 107 | codeparrot/github-code |
4bc18d6743b2040ec112f1981e85e73f05bfdd0490502bfaffafde1bf014bf31 | #ifndef CONTENT_H
#define CONTENT_H
#include <vector>
#include <string>
#include <cinder/Cinder.h>
#include <cinder/gl/Texture.h>
namespace cinder{
class XmlTree;
}
namespace ARContent{
class Content
{
public:
static Content* create(const cinder::XmlTree& xmltree);
void draw();
enum Type
... | C | BookAR/src/Content/Content.h | jing-interactive/Cinder-portfolio | mit | 920 | 47 | codeparrot/github-code |
5864402fa7497e898f4e926662832d1647c7685cd756d1f0b876dd81441b09f7 | (function () {
"use strict";
angular.module('facadu')
.directive('quickEditBubble', QuickEditDirective);
/////////////////
QuickEditDirective.$inject = ['PATHS'];
function QuickEditDirective(PATHS) {
//noinspection UnnecessaryLocalVariableJS
var directive = {
r... | JavaScript | static/javascripts/calendar.directives.js | Kiougar/facadu | mit | 1,503 | 56 | codeparrot/github-code |
4e6c539b02e385b04fd6776cfaf32ce1be09d558e2c5830a7cd17ce06268ff99 | /**
* SmithNgine Game Framework
*
* Copyright (C) 2013 by Erno Pakarinen / Codesmith (www.codesmith.fi)
* All Rights Reserved
*
* For licensing terms, see License.txt which reflects to the current license
* of this framework.
*/
namespace Codesmith.SmithNgine.Particles
{
using System;
using Microsoft... | C# | smithNgine/Particles/Particle.cs | codesmith-fi/smithngine | mit | 3,620 | 121 | codeparrot/github-code |
fd192dfd0489d5c9a27af6090bd8ff45b32a6705de2d13bcc4ea42570696ba3a | #ifndef BOOK_PLAYER_HPP
#define BOOK_PLAYER_HPP
#include <Book/Command.hpp>
#include <SFML/Window/Event.hpp>
#include <SFML/Graphics/RenderWindow.hpp>
#include <string>
#include <map>
static std::string currentState = "k";
class CommandQueue;
class Player
{
public:
enum Action
{
MoveLeft,
MoveRight... | C++ | Include/Book/Player.hpp | aytona/SFML_Assignment2 | mit | 1,376 | 73 | codeparrot/github-code |
4b6fdaaddff1b54021128871c4425bdb197ac9679c4733591bfef36f8fb47eef | package com.colmcoughlan.colm.alchemy;
import android.os.Bundle;
import android.util.Log;
import android.view.MenuItem;
import androidx.appcompat.app.ActionBar;
public class SettingsActivity extends AppCompatPreferenceActivity {
@Override
public boolean onOptionsItemSelected(MenuItem item) {
switc... | Java | app/src/main/java/com/colmcoughlan/colm/alchemy/SettingsActivity.java | colmcoughlan/alchemy | mit | 1,103 | 43 | codeparrot/github-code |
60b0169c083a858237e47df51a7a1270ca204d02b296e9a1fc1c4cfef37b3cc2 | // Lab 4
//
// Ex. 5.22, modify BinarySearchTree to find the Kth smallest
// value in O(log n) time. (The K's start at 0.)
// Hint: each BSTNode should record the size of its left subtree.
import java.util.Stack;
import java.util.HashSet;
class BSTNode {
int key;
int kPos;
BSTNode left;
BSTNode right;
BSTN... | Java | data-structures/labs/lab4/src/BinarySearchTree.java | Larkenx/coursework | mit | 4,621 | 198 | codeparrot/github-code |
bc9a67dc47ec4566ab167bd2c02aae9c28dde489db3f1e061788b9be8da3181e | package pl.java.borowiec.security;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.spring... | Java | personalBlogCore/src/main/java/pl/java/borowiec/security/AuthFailureHandlerImpl.java | przodownikR1/springMvcStartKata | mit | 2,315 | 62 | codeparrot/github-code |
67b79955508ca973ee57b90cc98616357a8f8d1dbb7a78a32b48899e5dcba8fc | <!DOCTYPE html>
<html>
<head>
<title>Jordan's Poetry</title>
<link href="main.css" rel="stylesheet" type="text/css" >
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="styleshe... | HTML | laf.land/_laf.land/system/horizontal-test/poetry/celestialparade.html | paradox-computer/paradox-computer | mit | 3,687 | 113 | codeparrot/github-code |
fd5cc2ff45c705333db17dda97037702e708f76ddb329fbf80e11f85182c2cc8 |
import User from './api/user/user.model';
import Product from './api/product/product.model';
import Brand from './api/brand/brand.model';
import Category from './api/category/category.model';
import Feature from './api/feature/feature.model';
import Coupon from './api/coupon/coupon.model';
import Shipping from ... | TypeScript | server/seed.ts | ashwath10110/mfb-new | mit | 99,312 | 3,562 | codeparrot/github-code |
4f195ec54eabad049e7dd4201d0d66d4b2f3f4a13ca1d06413b1a64cb0d7a6a2 | using MediatR;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Logging;
using SFA.DAS.CommitmentsV2.Data;
using SFA.DAS.CommitmentsV2.Data.Expressions;
using System;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
namespace SFA.DAS.CommitmentsV2.Application.Queries.GetProvider... | C# | src/CommitmentsV2/SFA.DAS.CommitmentsV2/Application/Queries/GetProviderPaymentsPriority/GetProviderPaymentsPriorityQueryHandler.cs | SkillsFundingAgency/das-commitments | mit | 5,341 | 110 | codeparrot/github-code |
b1fcde6fde98d1ac9b3cb10b6865e9a8c525df38acd8618962f8708184573770 | import Node from '../Node.js';
import extractNames from '../utils/extractNames.js';
function getSeparator ( code, start ) {
let c = start;
while ( c > 0 && code[ c - 1 ] !== '\n' ) {
c -= 1;
if ( code[c] === ';' || code[c] === '{' ) return '; ';
}
const lineStart = code.slice( c, start ).match( /^\s*/ )[0];
... | JavaScript | src/ast/nodes/VariableDeclaration.js | Victorystick/rollup | mit | 2,991 | 108 | codeparrot/github-code |
8680e811b18dbc14edb8985ab9b9accd419bd3a628f919fd878f0f56f9795a6a | (function(){
var ENV = '';
var defaultOptions = {
source: 'CDN',
firebaseURL: 'https://cdn.firebase.com/js/client/2.4.2/firebase.js',
firebaseRoot: 'https://eleme-flowchart.firebaseio.com/'
};
function loadScript(src, fn) {
var script = document.createElement('script');
script.src = src;
... | JavaScript | index.js | ppq1991/flowchart-render | mit | 4,825 | 177 | codeparrot/github-code |
aeb4dde4a5548caec543326cd6cc6b318de736f1117b38177c25e9ca01d1ce0a |
#include "CatGameLib.h"
#include "ExternalLib.h"
#include "LibCircle.h"
using namespace std;
using namespace CatGameLib;
const int halfDegree = 180;
const float pi = 3.1415926f;
class LibCircle::Private
{
public:
int Degree;
float Radian;
int radianToDegree(float angle)
{
angle = radianWrap(angle);
return... | C++ | Magical_Book/SourceFile/CatGameLib/LibCircle.cpp | snow10cat/Magical_Book | mit | 4,634 | 223 | codeparrot/github-code |
62c137c972b811863c23f5e66edb619a27a20fd03caad8e9318d8383eb1921df | package seedu.addressbook.data.person;
import seedu.addressbook.data.exception.IllegalValueException;
/**
* Represents a Person's phone number in the address book.
* Guarantees: immutable; is valid as declared in {@link #isValidPhone(String)}
*/
public class Phone {
public static final String EXAMPLE = "12345... | Java | src/seedu/addressbook/data/person/Phone.java | se-edu/addressbook-level2 | mit | 1,722 | 60 | codeparrot/github-code |
d142fa24aa3507effe7299550550fdd68c792896c9ee27f7642764ac6e051b62 | /**
*
*/
package io.pkts.streams.impl;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import io.pkts.Pcap;
import io.pkts.packet.Packet;
import io.pkts.packet.rtp.RtpPacket;
import io.pkts.packet.sip.SipPacket;
import io.pkts.packet.sip.SipPacketParseException;
import io.pkts... | Java | pkts-streams/src/test/java/io/pkts/streams/impl/DefaultStreamHandlerTest.java | aboutsip/pkts | mit | 7,078 | 221 | codeparrot/github-code |
fecdf2983cef168806614eab8f58cb75a68cbeb17c5b7c9f1a112149e7bc470c | import { MessageDispatcher } from './message.dispatcher';
import { Message } from './message';
describe(`MessageDispatcher`, () => {
const actionAllocator = {
actionA: {
fn: () => {
},
filter: (input) => !!input,
},
actionB: () => {
},
};
... | JavaScript | src/message/message.dispatcher.spec.js | wildhaber/gluebert | mit | 3,317 | 102 | codeparrot/github-code |
acf7da2a62cd497f42478802d7c6406d6d78f0e44d4aea39d4a577e6a22baee4 | {% extends "layout.html" %}
{% block body %}
<div class="card mb-3">
<div class="card-body">
<h4 class="card-title">Status</h4>
<p class="alert alert-info">
{% if lock.is_locked() %}
Box has been locked for {{ ((now - lock.last_locked) // 1000000) * 1000000 }}
{% else %}
... | HTML | templates/config_form.html | remotelockbox/remotelockbox | mit | 2,538 | 74 | codeparrot/github-code |
2c45b39ee34b3a3700fdb6a63302bda9ab2686960901928d108ad0c98a0bd302 | /*
* File: algorithm.h
* Author: Alexandre Kaspar <akaspar@mit.edu>
*
* Created on November 21, 2014, 11:18 AM
*/
#ifndef ALGORITHM_H
#define ALGORITHM_H
#include <functional>
namespace pm {
/**
* Algorithm sequence wrapper
*/
template < typename Index = Point2i >
struct AlgorithmS... | C | src/nnf/algorithm.h | xionluhnis/stereosynth | mit | 3,327 | 119 | codeparrot/github-code |
7fd3093c62952e589e13e3f540fb445cc8e8e2d874938e29f5ad0c615cbd3300 | #!/bin/sh
# Author: Gabriel Jacinto aka. GabrielJMJ <gamjj74@hotmail.com>
# License: MIT
# Creates path if it does not exists
function createPath () {
if [ ! -d "$1" ]; then
mkdir $1;
fi
}
# Returns the path to clone
function createPathForRepo () {
IFS='/' read -ra REPO_PARTS <<< "$1";
for ... | Shell | gloner.sh | GabrielJMJ/Gloner | mit | 1,210 | 56 | codeparrot/github-code |
545c6c032c08bcb4452d489154ca5505dc707ec311af47dd49aa2b8af8f09b34 | # coding: utf-8
'''
Usage: gh <command> [<args>...]
gh <command> (-h|--help)
supported commands are:
gh fork <repo> forks user/repo
gh create <repo> creates a new repo
gh pull <repo> <base> <head> create a pull request
gh list_keys list user keys
gh create_key <title> [<public_key_path>] add a key to gi... | Python | bin/gh.py | ywangd/stash | mit | 6,911 | 253 | codeparrot/github-code |
a02fcc73712b3669a67210b90e81643198c74866fa3f1e1b764a5ceadcbdaec5 | #include "mech.h"
#include "connections.h"
#include "status.h"
namespace mech {
void hold() {
servoPush.write(SERVO_PUSH_HOLD_DEGREE, SERVO_PUSH_SPEED, true);
status::holdState = status::holding;
delay(SERVO_PUSH_DELAY);
}
void release() {
servoPush.write(SERVO_PUSH_RELEASE_DEGREE, SERVO_PUSH_SP... | C++ | mech.cpp | nic1294/LaughingOctoWookie | mit | 4,929 | 134 | codeparrot/github-code |
0d30319f43f801176bf16e2349a7444d5b55ff597648da91da951b7e1b3c8b70 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Chapter 5 - Multiple Ball Bounce w/ Resizable Canvas</title>
<script>
var Debugger = {};
Debugger.log = function(message){
try{
console.log(message);
}catch(exception){}
};... | HTML | ch05/ex06-multiple_balls_resize_canvas.html | roylt84/html5canvas_oreilly | mit | 4,898 | 152 | codeparrot/github-code |
02f692e98752ddbcf2c86cb4675d27f62cd1f9ea2a9333674c5a3eaf16e69bf2 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from datetime import datetime
from lxml.html import fromstring, make_links_absolute, tostring
from urlparse import parse_qs, urlparse
import cookielib, json, importlib, re, urllib, urllib2
RE_URL = re.compile(r"""(?i)\b((?:[a-z][\w-]+:(?:/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[... | Python | aukro/parser.py | cuteredcat/aukro | mit | 2,281 | 68 | codeparrot/github-code |
9954e9f6f66a8091d4aef55189fd3dc5d1bd4207b727bfcf8172d1cd54171951 | {-# LANGUAGE Arrows #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MonadComprehensions #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE ViewPatterns #... | Haskell | src/Experimental/Survive.hs | mstksg/auto-examples | mit | 33,328 | 790 | codeparrot/github-code |
7fd1231c3c0a59b024dce96e8d2a952cd415b6a0186be06934b06593f0ccafaa | /*! X-editable - v1.5.1
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
* http://github.com/vitalets/x-editable
* Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */
.editableform {
margin-bottom: 0; /* overwrites bootstrap margin */
}
.editableform .control-group {
margin-bottom: 0; /* ove... | CSS | templates/static/styles/bootstrap-editable.css | andela-cmutembei/III | mit | 21,129 | 664 | codeparrot/github-code |
283031cd6150fc82a5c94a60e955f853e2314e871dc892eb2724c52214f9c6a3 | namespace Neighbours.Common.ValidationAttributes
{
using GlobalConstants;
using System;
using System.ComponentModel.DataAnnotations;
public class BirthDateAttribute : ValidationAttribute
{
public BirthDateAttribute(string minDate, int minAge)
{
this.MinDate = ... | C# | src/Common/Neighbours.Common/ValidationAttributes/BirthDateAttribute.cs | vesheff/Neighbours | mit | 1,269 | 43 | codeparrot/github-code |
3971b72d811b406a47eb66553663acef3956446bc99c8b7de42125f607725dd9 | const fs = require('fs');
const path = require('path');
const _ = require('lodash');
const mkdirp = require('mkdirp').sync;
const deps = require('./util/deps');
const git = require('./util/git');
const exec = require('./util/exec');
const link = require('./util/link');
const promise = require('./util/promise');
const... | JavaScript | lib/init.js | welder-io/welder | mit | 3,197 | 107 | codeparrot/github-code |
e9cfa498f3cdd708e8da1b4b2d67c54e1810e510cd1ee6257d2579b225620e4c | package com.github.scribejava.apis.examples;
import java.util.Scanner;
import com.github.scribejava.apis.GeniusApi;
import com.github.scribejava.core.builder.ServiceBuilder;
import com.github.scribejava.core.model.OAuth2AccessToken;
import com.github.scribejava.core.model.OAuthRequest;
import com.github.scribejava.co... | Java | scribejava-apis/src/test/java/com/github/scribejava/apis/examples/GeniusExample.java | chooco13/scribejava | mit | 3,732 | 90 | codeparrot/github-code |
45679bdb6f3586be168cbc6f45e1ea284b0976ac97fd3e50750bc5fd521357bc | <?php
class Admin_Dues extends MY_Controller{
function __construct()
{
parent::__construct();
$session_admin = $this->session->userdata('isAdmin');
$session_deact = $this->session->userdata('status');
$session_data = $this->model_accounts->checksession();
$session_username = $th... | PHP | application/controllers/Admin_Dues.php | undrftd/pgevCI | mit | 32,893 | 730 | codeparrot/github-code |
7bc24a311e9dede6bdd8dd64da86734cd4b5e11c496db65de0525132bd59619d | // --------------------------------------------------------------------------
// Name: sndwin.h
// Purpose:
// Date: 08/11/1999
// Author: Guilhem Lavaux <lavaux@easynet.fr> (C) 1999
// CVSID: $Id: sndwin.h,v 1.5 2004/11/22 20:05:26 JS Exp $
// License: wxWindows license
// ------------------------------------------... | C | code/wxWidgets/contrib/include/wx/mmedia/sndwin.h | SickheadGames/Torsion | mit | 1,906 | 68 | codeparrot/github-code |
36be1bd172a3cad62c659d8e5f5b048d5131695f8f9d4322df9f847d55715515 | /*
* This file is part of CraftoPlugin, licensed under the MIT License (MIT).
*
* Copyright (c) 2019 CraftolutionDE <https://craftolution.de>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the S... | Java | modules/extra/src/main/java/de/craftolution/craftoplugin/module/extra/pi/PlayerInfoComponent.java | Craftolution/CraftoPlugin | mit | 5,471 | 131 | codeparrot/github-code |
7cf9cfad4fe6c1d1eb1d7846c5e14beea5c64c0ae1efdfa4b602aa3b5c173eef | //
// IAPHelper.h
//
// Original Created by Ray Wenderlich on 2/28/11.
// Created by saturngod on 7/9/12.
// Copyright 2011 Ray Wenderlich. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "StoreKit/StoreKit.h"
#define sIAPHelper [IAPHelper sharedInstance]
typedef void (^IAPProductsResponseBlock... | C | IAPHelper/Library/IAPHelper.h | thanhtrdang/IAPHelper | mit | 2,046 | 48 | codeparrot/github-code |
6d779286e566ead098fe132ca3b68c9aa1d1ac1e770f887b385b5e8095a53553 | <?php
/**
* @package Grav\Common\User
*
* @copyright Copyright (c) 2015 - 2022 Trilby Media, LLC. All rights reserved.
* @license MIT License; see LICENSE file for details.
*/
namespace Grav\Common\User\DataUser;
use Grav\Common\Data\Blueprints;
use Grav\Common\File\CompiledYamlFile;
use Grav\Common\Grav... | PHP | system/src/Grav/Common/User/DataUser/UserCollection.php | getgrav/grav | mit | 4,564 | 163 | codeparrot/github-code |
461d624b8ab9e21d9815ef4145c8c19203b736b581c8b1ee1a6f659381d0b1ab | <?php
/*
Safe sample
input : use exec to execute the script /tmp/tainted.php and store the output in $tainted
sanitize : use mysql_real_escape_string via an object and a classic getter
construction : interpretation with simple quote
*/
/*Copyright 2015 Bertrand STIVALET
Permission is hereby granted, without writt... | PHP | Injection/CWE_91/safe/CWE_91__exec__object-func_mysql_real_escape_stringGetter__data-interpretation_simple_quote.php | stivalet/PHP-Vulnerability-test-suite | mit | 1,780 | 75 | codeparrot/github-code |
45732184a74c0fa287e9cea3f71d91e39b3aad65e238e4409b917a21f560f1d8 | //******************************************************************************
//
// Copyright (c) 2015 Microsoft Corporation. All rights reserved.
//
// This code is licensed under the MIT License (MIT).
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LI... | C | include/Platform/Universal Windows/UWP/WindowsDevicesPerception.h | s5msft/WinObjC | mit | 34,799 | 699 | codeparrot/github-code |
24f1ad7e6c83c6bb85cc1d69c8e0cc173fb5595396d0428c594bfdc50de3d61c | using System.Collections.Generic;
using System.Drawing;
using BizHawk.Client.Common;
namespace BizHawk.Client.EmuHawk
{
[SchemaAttributes("PCECD")]
public class PceCdSchema : PceSchema { }
[SchemaAttributes("PCE")]
public class PceSchema : IVirtualPadSchema
{
public IEnumerable<PadSchema> GetPadSche... | C# | Real-Time Corruptor/BizHawk_RTC/BizHawk.Client.EmuHawk/tools/VirtualPads/schema/PceSchema.cs | superusercode/RTC3 | mit | 2,366 | 95 | codeparrot/github-code |
bfd03209123c8b1dd81c77dcdf1a8398d52aa7584ceac37d63ca78cee1c260d6 | <?php
namespace MediaBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
/**
* Description of MediaType.
*/
class MediaType extends AbstractType
{
/**
* @param FormBuilderInterface $builder
* @param array $options
*/
public fu... | PHP | src/MediaBundle/Form/MediaType.php | MlleDelphine/opsources | mit | 644 | 34 | codeparrot/github-code |
a1270b0db2da33261aae2ba873746387e881b706aa1740a5330b06e4d9f3d6c9 | <?php
/**
* Part of the trillium
*
* @package Trillium
* @license MIT License
* @link http://github.com/Kilte/trillium
*/
namespace trillium\errorHandler\output {
use trillium\exception\HTTP\Exception;
use trillium\exception\UnexpectedValueException;
use trillium\Logger;
defined('RO... | PHP | trillium/errorHandler/output/Base.php | imageboards/trillium | mit | 7,219 | 216 | codeparrot/github-code |
28086658db910e28a46ee8d4a700ce334244a1462f18eb2728425d0122ad7176 | 'use strict';
var React = require('react');
var Style = require('./style');
var Symbol = require('./PercentageSymbol');
var Application = React.createClass({
//Define propTypes only in development
getDefaultProps: function(){
return{
start: 0,
stop: 5,
step: 1,
empty: Style.empty,
... | JavaScript | src/components/application.js | prince1809/rating-application | mit | 3,960 | 128 | codeparrot/github-code |
909772d3c005461fcf2817ae251de120ff0d9db68defcedf291fc286e937b30d | package edu.psu.compbio.seqcode.gse.tools.seqdata;
import java.io.IOException;
import java.sql.SQLException;
import java.util.*;
import edu.psu.compbio.seqcode.gse.datasets.seqdata.SeqAnalysisResult;
import edu.psu.compbio.seqcode.gse.ewok.verbs.chipseq.GPSParser;
import edu.psu.compbio.seqcode.gse.ewok.verbs.chipseq... | Java | src/edu/psu/compbio/seqcode/gse/tools/seqdata/GPSAnalysisImporter.java | shaunmahony/seqcode | mit | 2,497 | 64 | codeparrot/github-code |
b01767f9875b0de5e27fce8e0e178bdd7ec75d0aa2953908bef346662a325bfa | module VoyagerResponse
class Amount
include HappyMapper
tag 'amount'
namespace 'http://www.endinfosys.com/Voyager/myAccount'
# Yes, Voyager has an element called 'amount' with a child element called 'amount'
element :amount, Float, :tag => 'amount', :namespace => 'http://www.endinfosys.com/Voyager... | Ruby | lib/voyager_patron/patron_account_response.rb | cul/voyager_patron | mit | 15,403 | 290 | codeparrot/github-code |
9e0754db2dfdb0389a9f21d6b772a998a3d9048d386f93b23a02c5441dac6ae8 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class WeaponHolder : MonoBehaviour {
//Ten skrypt obsługuje wszystkie bronie jakie posiada player
//Woła by strzelały / machały mieczem
//TODO: Powinien być tu jakiś array z broniami jakie gracz ... | C# | Assets/Scripts/WeaponHolder.cs | Angael/UnityGejming | mit | 4,516 | 141 | codeparrot/github-code |
4d6138f2a175e903b8b0ee6fc539b48880d3c2d6efa93ad0be1738a360be6a61 | import React, { PropTypes } from "react";
import Todo from "./Todo";
class Todos extends React.Component {
constructor(props) {
super(props);
}
componentWillMount() {
if (typeof this.props.loadTodos === "function") {
this.props.loadTodos();
}
}
render() {
... | JavaScript | app/components/Todos.js | Gothbag/react-redux-todo-app | mit | 954 | 38 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.