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 |
|---|---|---|---|---|---|---|---|---|
26ffd0a8f24835830263e729908997c2e34bfd29a24f62113d6f5e7765dcfe21 | 'use strict';
/**
* Module dependencies
*/
var acl = require('acl');
// Using the memory backend
acl = new acl(new acl.memoryBackend());
/**
* Invoke Items Permissions
*/
exports.invokeRolesPolicies = function () {
acl.allow([{
roles: ['admin'],
allows: [{
... | JavaScript | modules/items/server/policies/items.server.policy.js | rexhouy/golden-eagle | mit | 3,696 | 106 | codeparrot/github-code |
c068c0488f7b013f1760e04a95d057269ddf6d0f5f644bd02339c72e5bf38a67 | #!/bin/bash
#
# Evaluate swap memory usage from Linux based systems.
#
# Date: 2007-11-12
# Author: Thomas Borger - ESG
# Date: 2012-04-02
# Modified: Norman Harman - norman.harman@mutualmobile.com
# Date: 2013-03-13
# Modified: Jean-Francois Theroux - jtheroux@lapresse.ca
#
# The swap check is done with following comm... | Shell | bin/check-swap.sh | sensu-plugins/sensu-plugins-memory-checks | mit | 1,394 | 72 | codeparrot/github-code |
b595cf1b98aa6917b130ba264a50d66301d6226c97aef5555d6c05894a153147 | package io.github.rreeggkk.jari.common.entity.tile;
import io.github.rreeggkk.jari.common.elements.ElementRegistry;
import io.github.rreeggkk.jari.common.elements.FissionMode;
import io.github.rreeggkk.jari.common.elements.provider.IElementProvider;
import io.github.rreeggkk.jari.common.item.ItemRegistry;
import io.gi... | Java | src/main/java/io/github/rreeggkk/jari/common/entity/tile/TileEntityRTG.java | rreeggkk/JARI | mit | 8,664 | 321 | codeparrot/github-code |
f156c67e0a52285ecb5627b76b36ef5d1c2069425aa8d6dbf4da7622f2899d76 | <?php
class head extends Element {
public function __construct($inner=array(), $opts=array()) {
parent::__construct('head', $opts);
$this->build_inner($inner);
}
public function addMeta($kv_array) {
$meta = new meta();
$meta->attr($kv_array);
$this->prepend($meta);
return $this;
}
public function se... | PHP | elements/head.class.php | joedulin/element.php | mit | 1,094 | 58 | codeparrot/github-code |
179dfb0e554a2433f5371ef81e0fd4f0d24ae1fed2987d9ce1e6ba5be05625e2 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ptsf: 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.06.1-2.0.5/released/8.8.2/ptsf/8.7.0.html | coq-bench/coq-bench.github.io | mit | 7,294 | 168 | codeparrot/github-code |
4726413197ef99c16de6a8c6c56137c9b12f89530b6e5d54769c625c3d4ba98d | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>schroeder: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.c... | HTML | clean/Linux-x86_64-4.03.0-2.0.5/released/8.8.0/schroeder/8.10.0.html | coq-bench/coq-bench.github.io | mit | 7,085 | 175 | codeparrot/github-code |
e531fbc58beade97838c9393ccde8ca8af98b3836b370e19729270c26d559b26 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>stdpp: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" ... | HTML | clean/Linux-x86_64-4.02.3-2.0.6/released/8.5.0/stdpp/1.2.0.html | coq-bench/coq-bench.github.io | mit | 7,943 | 181 | codeparrot/github-code |
712636bb6f352c30c2539382577418ad89ccb9a6f6c77b73a1dbd62f3ab918a3 | <?php
/**
* Created by PhpStorm.
* User: Usuari
* Date: 09/05/2016
* Time: 11:18
*/
class Admin extends CI_Controller {
function __construct()
{
parent::__construct();
$this->load->library('ion_auth');
$this->load->library('session');
$this->load->library('form_validation')... | PHP | application/controllers/Admin.php | arc-lasalle/Map-On | mit | 12,326 | 342 | codeparrot/github-code |
0f051d6b9b83cd1380a8c1c32a06e1f15d50e8559e3ae81eaa461110c2c0676d | #define DEBUG 1
/**
* File : D.cpp
* Author : Kazune Takahashi
* Created : 6/18/2020, 7:52:46 PM
* Powered by Visual Studio Code
*/
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <chrono>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdint>
#include <c... | C++ | 2020/0304_ABC157/D.cpp | kazunetakahashi/atcoder | mit | 8,483 | 409 | codeparrot/github-code |
c76cd667a1e389bf18a5e9e75011e50255b464243f3039875f3fa821cd673ba7 | package com.codepath.apps.restclienttemplate;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.widget.ImageButton;
import android.widget.TextView;
import... | Java | app/src/main/java/com/codepath/apps/restclienttemplate/ProfileActivity.java | michellelimxuanli/TwitterApp | mit | 3,764 | 111 | codeparrot/github-code |
3b287d6444cc262c4d3644aacd79b7d3e00d6ed4db29b3b8661f34bd57dd8397 | package br.com.vivareal.spotippos.domain.json;
import com.fasterxml.jackson.databind.DeserializationConfig;
import com.fasterxml.jackson.databind.JsonDeserializer;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.KeyDeserializer;
import com.fasterxml.jackson.databind.Serializ... | Java | src/main/java/br/com/vivareal/spotippos/domain/json/SpringBeanHandlerInstantiator.java | glauberdm/spotippos-vivareal | mit | 2,763 | 73 | codeparrot/github-code |
79cb673d2f1e0342ff32ba8a36147432889a3c65bbfdaf09fbad4980b40fb1a4 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace pogLib.Utils
{
public static class IntUtil
{
public static bool IsEven(this int num)
{
return num % 2 == 0;
... | C# | Windows Classic/pogLib/Utils/ExtensionMethods.cs | apotter96/PowerOfGod | mit | 1,300 | 59 | codeparrot/github-code |
eb34860edeaf5944a8d024b3f9b07a659cca4d4532fd3eada8dc7f4c2236786d | using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Reflection;
using System.Runtime.Serialization;
using System.Web.Http;
using System.Web.Http.Description;
using System.Xml... | C# | src/VStorm/VStorm/Areas/HelpPage/ModelDescriptions/ModelDescriptionGenerator.cs | rodolfotorres/Visual-Studio-Angular-Template | mit | 19,079 | 451 | codeparrot/github-code |
82712ceedf18222c97d858525103750f355cd6affa88b67dd5be8343d68080a5 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>square-matrices: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.mi... | HTML | clean/Linux-x86_64-4.10.1-2.0.6/released/8.11.1/square-matrices/8.5.0.html | coq-bench/coq-bench.github.io | mit | 6,902 | 164 | codeparrot/github-code |
d190310b5f73ce4c40914a08ac6a9a1eda4e084720beeaae0609cac170d6d4a5 | <link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../polymer/lib/mixins/gesture-event-listeners.html">
<!--
`<the-grid>` is a grid layout element width drag n drop and resize capabilities.
Example:
<the-grid cell-height="150" cell-width="150" cell-margin="10"></the-grid>
@demo demo/ind... | HTML | the-grid.html | vpusher/the-grid | mit | 34,966 | 770 | codeparrot/github-code |
6e02968edb52bbdf89bb4427da6b6be6b8d90ce3cd921aed59bbf2ed3bf38a0d | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-ssreflect: 2 m 13 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.mi... | HTML | clean/Linux-x86_64-4.03.0-2.0.5/released/8.6/mathcomp-ssreflect/1.6.1.html | coq-bench/coq-bench.github.io | mit | 15,225 | 227 | codeparrot/github-code |
bbc19303146a56165e4480114c05623672f30f118a7cd4c73c933f7407da7e11 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>bdds: 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.08.1-2.0.5/released/8.13.2/bdds/8.10.0.html | coq-bench/coq-bench.github.io | mit | 7,643 | 187 | codeparrot/github-code |
55d135dd0598a9ba0810ca41719fe9690a29b7c196f98c61a853246ee48bfae9 | package twitch
import "time"
import "fmt"
import "strconv"
import "encoding/json"
import "net/http"
type streamRequest struct {
Streams []Stream `json:"streams"`
Total uint32 `json:"_total"`
}
// Channel represents all of the information relevant to a specific channel
type Channel struct {
Mature ... | GO | twitch/stream.go | rue92/tsh | mit | 3,938 | 119 | codeparrot/github-code |
1ced761bbb1f6172495f0d750546bfe80c0ab056ea2eee246df147e292c489e0 | package wurmcraft.wurmatron.common.items;
import net.minecraft.item.ItemStack;
public class WurmTweaksItems {
// Materials (ItemMaterial)
public static final ItemStack itemSolarCore = new ItemStack(WTItems.itemMaterial, 1, 0);
public static final ItemStack itemCraftingCore = new ItemStack(WTItems.itemMaterial, ... | Java | src/main/java/wurmcraft/wurmatron/common/items/WurmTweaksItems.java | Wurmcraft/WurmTweaks | mit | 18,895 | 222 | codeparrot/github-code |
a240ec6a0c8a5d871bf10a660bf561ccae66a472b26852c6eb2d23f060c0bfd3 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ott: 26 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesh... | HTML | clean/Linux-x86_64-4.03.0-2.0.5/released/8.8.0/ott/0.30.html | coq-bench/coq-bench.github.io | mit | 11,085 | 206 | codeparrot/github-code |
192c63dfb26a5eab00af150dc7a3876c90072b937fa0a49de36c5767522edc5c | import React, { PropTypes, Component } from 'react';
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';
class Modal extends Component {
componentDidUpdate() {
if (this.props.isOpen === true && document.body.classList.contains(this.bodyClass) === false) {
document.body.classList.add(th... | JavaScript | src/components/Layout/Modal.js | ganhammar/pivotaltracker-dashboard | mit | 1,509 | 55 | codeparrot/github-code |
7fcdd2f35f25e27a2fa5cf819ff561ceb24792c3cd6ccc40ef5ed1d7cc88669c | <!DOCTYPE html>
<!--[if IE 7]> <html class="no-js ie7" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>Docs » deck.js</title>
<link rel="stylesheet" href="../css/common.css">
<link rel="stylesheet" href="docs.css">
<sc... | HTML | docs/index.html | Filirom1/explore-teasing | mit | 42,814 | 897 | codeparrot/github-code |
4a3c1288e015538a884106487b055878d08f8f29c53a2816adc054461ecba772 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>qarith: 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.1/qarith/8.5.0.html | coq-bench/coq-bench.github.io | mit | 6,774 | 163 | codeparrot/github-code |
fa37a672f5d8e6235d29b6fd3635f10d5ede1843f26b451f064da878e49236dc | ## This downloads and populates the spec test files
using Mustache
using YAML
using Test
ghub = "https://raw.githubusercontent.com/mustache/spec/72233f3ffda9e33915fd3022d0a9ebbcce265acd/specs/{{:spec}}.yml"
specs = ["comments",
"delimiters",
"interpolation",
"inverted",
"parti... | Julia | test/mustache_specs.jl | jverzani/Mustache.jl | mit | 3,112 | 124 | codeparrot/github-code |
b82dc5ac0a52d2df8a4f0abd5e32173d14bf95dad1bf65688c20912edd4d6a2d | /*
* 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 br.senac.tadsb.pi3.livrarianext.database;
import br.senac.tadsb.pi3.livrarianext.exceptions.DaoException;
import br.se... | Java | LivrariaNext/src/main/java/br/senac/tadsb/pi3/livrarianext/database/DaoPerfil.java | Nuneez/LivrariaNext | mit | 2,736 | 96 | codeparrot/github-code |
4bbe8b4e08ccf2ed1039287efe7fdc32affb280a5c1d4fec90ae48506638c0aa | // Copyright (c) 2014 Mark Dodwell.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
// documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
// rights to use, copy, modify, merge, publish, di... | C | Source/MKTextElement.h | mkdynamic/prototype | mit | 2,506 | 74 | codeparrot/github-code |
e81be26a2499acdff92bb4a3668b3456e22a464d2c173fa1041b7e249f1cc080 | package com.softwareverde.http.server.servlet.response;
import com.softwareverde.http.server.servlet.content.ContentTypeResolver;
import com.softwareverde.json.Jsonable;
public class JsonResponse extends Response {
private ContentTypeResolver _contentTypeResolver = new ContentTypeResolver();
private void _se... | Java | src/main/java/com/softwareverde/http/server/servlet/response/JsonResponse.java | SoftwareVerde/http-servlet | mit | 906 | 30 | codeparrot/github-code |
6ebac465b02ce9fc4e46e8da794eb045eb799a1b9ca83d312ea8dbca6787a409 | <?php
declare(strict_types=1);
namespace Shopsys\CodingStandards\CsFixer\Phpdoc;
use Nette\Utils\Strings;
use PhpCsFixer\DocBlock\DocBlock;
use PhpCsFixer\DocBlock\Line;
use PhpCsFixer\Fixer\DefinedFixerInterface;
use PhpCsFixer\Fixer\FixerInterface;
use PhpCsFixer\FixerDefinition\CodeSample;
use PhpCsFixer\FixerDef... | PHP | src/CsFixer/Phpdoc/OrderedParamAnnotationsFixer.php | shopsys/coding-standards | mit | 6,553 | 235 | codeparrot/github-code |
5110819349d8fbdfd3b44c9a94e1617554eddbb359c4ba2fcd17da37dd7b8eef | var config = require(__dirname + "/config.js"),
db = require(__dirname + "/database.js"),
md5 = require(__dirname + "/md5.js"),
utils = require(__dirname + "/utils.js"),
mongodb = require("mongodb"),
objectid = mongodb.BSONPure.ObjectID,
datetime = require(__dirname + "/datetime.js"),
errorc... | JavaScript | api/leaderboards.js | lingolux/playtomic | mit | 10,838 | 358 | codeparrot/github-code |
9692978e84c158d1e55254c45ad9d3ba83333793103b25f516479bd8f40267b9 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>corn: 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.08.1-2.0.5/extra-dev/8.11.dev/corn/1.2.0.html | coq-bench/coq-bench.github.io | mit | 6,548 | 167 | codeparrot/github-code |
08f2c3dbd8d06eede8e43c7b54ee8dbc07164519c241d5475422ef010bce2f41 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>paramcoq: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.cs... | HTML | clean/Linux-x86_64-4.03.0-2.0.5/released/8.5.0~camlp4/paramcoq/1.1.3+coq8.14.html | coq-bench/coq-bench.github.io | mit | 7,650 | 181 | codeparrot/github-code |
82466c317703ea547a9bedb634ad153cbe993854c067be522a3a02339c0e47a2 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>sf-plf: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css"... | HTML | clean/Linux-x86_64-4.08.1-2.0.5/extra-dev/8.10.0/sf-plf/8.7.dev.html | coq-bench/coq-bench.github.io | mit | 6,683 | 175 | codeparrot/github-code |
e09b277ef2f0f433dc29d9cf6005777189757a473c00b0035c0403ba2c77272f | import { IUsers, ICompanies } from './usersModel';
export interface ICases {
CaseName: string;
RTRAmt?: number;
SubmissionDate?: Date;
DefaultDate?: Date;
TotalAmtCollected?: number;
CurrentStage?: CaseStagesEnum;
LastUpdateDate?: Date;
AssociatedCompany?: string;
CurrentAction?: Ca... | TypeScript | src/app/common/objects/casesModel.ts | paulmojicatech/MaxRecoveryGroup_UI | mit | 1,418 | 64 | codeparrot/github-code |
d7c987b00c2b524266cb966d0fcda967ceec6e9746a1ea2e1bc916361579e68f | 'use strict';
angular.module('calves').config(['$stateProvider', '$urlRouterProvider',
function($stateProvider, $urlRouterProvider) {
$stateProvider
.state('calves', {
url: 'crias-listado',
parent: 'home',
menuOption: 'calves',
appTitle: 'Crías',
templateUrl: 'modules/calves/vi... | JavaScript | public/modules/calves/config/calves.client.routes.js | mario128mex/crias | mit | 3,165 | 114 | codeparrot/github-code |
700d53586705e1d8c9b61ce50e957f80e59f2c0b2ab9f23893e616e82d8098f5 | #!/usr/bin/perl
# lenticulate.pl
# Usage: perl lenticulate.pl inputFile1 inputFile2 outputFile
# This can be used to read strips from two input images and alternately
# write them to an output image. The output image can then be
# manually folded to create a crude lenticular picture.
# A description of the overall ... | Perl | lenticulate.pl | dougtoppin/lenticular | mit | 3,690 | 142 | codeparrot/github-code |
0b9eff95ab2f8342823ef34ffdbc14851e1ab2a5c70caf59a1f9aa81ff69f33e | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>simple-io: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.c... | HTML | clean/Linux-x86_64-4.05.0-2.0.1/released/8.5.1/simple-io/1.5.0.html | coq-bench/coq-bench.github.io | mit | 7,189 | 176 | codeparrot/github-code |
8ccabf4e74319193edd76be3f2226b7e1219a351bbae28951f33a540eb7804ec |
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Database Forge Class — CodeIgniter 3.0.1 do... | HTML | user_guide/database/forge.html | webdevqn/learn | mit | 55,128 | 861 | codeparrot/github-code |
603a122d386775cf9f3b8234e6cc385c47013609e71921d7f313d01d3dd39eb8 | var ObjectId = require('mongodb').ObjectID;
var backupModel = {};
var __class = {
_name: 'unknow',
_column: {
},
_index: null,
_collection: null,
_db: null,
init: function() {
this.initColumn();
},
initColumn: function() {
// check cache exists
if(backupModel[this.__name]) {
this._column = backup... | JavaScript | base/_/model.js | henrytao-me/ekitjs | mit | 17,519 | 739 | codeparrot/github-code |
b220f744eaf3b2ae5c90583cbe81b78a058377b08f6e0fceca8fc0d880869e1b | <?php
namespace TaskBundle\DBAL\Type;
use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Types\Type;
use Domain\Task\Value\TaskId;
class TaskIdType extends Type
{
const TASKID = 'taskid';
/** @inheritdoc */
public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platfor... | PHP | src/TaskBundle/DBAL/Type/TaskIdType.php | ifdattic/symfony-shippable-ci-article-code | mit | 813 | 37 | codeparrot/github-code |
05f8e04de514736f64a960badc30c2f5a10b7d8d0c7b41891126b1dff09b33b3 | var bcrypt = require('bcrypt'),
Q = require('q'),
SALT_ROUNDS = 10;
var security = function () {
return {
encode: function(password) {
var deferred = Q.defer();
bcrypt.genSalt(SALT_ROUNDS, function(err, salt) {
if(err) deferred.reject();
bcrypt.hash(password, salt, function(err, hash) {
if... | JavaScript | middleware/security.js | pr-anoop/Node-Express-Mongo-ReST | mit | 736 | 44 | codeparrot/github-code |
a783ab332424f5bb3cd8a3ebebf932eb02d556777279b0e50125f59b8a5cd2bc | module Fleximage
# Container for Fleximage model method inclusion modules
module Model
class MasterImageNotFound < RuntimeError #:nodoc:
end
# Include acts_as_fleximage class method
def self.included(base) #:nodoc:
base.extend(ClassMethods)
end
# Provides class method... | Ruby | lib/fleximage/model.rb | SysMO-DB/fleximage | mit | 20,887 | 523 | codeparrot/github-code |
42dcef2ebf15a74a68547b52691732a2d6f01418691b6466b19008b09d0d6ab9 | using System;
using HttpAction.Core;
namespace HttpAction.Core
{
//
// CookieTokenizer
//
// Used to split a single or multi-cookie (header) string into individual
// tokens
//
internal class CookieTokenizer
{
// fields
bool m_eofCookie;
int m_index;
... | C# | src/HttpAction/Core/CookieTokenizer.cs | huoshan12345/HttpAction | mit | 15,601 | 492 | codeparrot/github-code |
c42a8e796ad2382f3cfd3c332a87346c1b63a6a6cc0cabaf191abf3c5078f5b3 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>metacoq-template: 1 m 42 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.... | HTML | clean/Linux-x86_64-4.05.0-2.0.1/released/8.8.2/metacoq-template/1.0~alpha1+8.8.html | coq-bench/coq-bench.github.io | mit | 16,814 | 253 | codeparrot/github-code |
3012fc89543f90eafab7d0770220f92355b4002bbf2a485206c650444fa5be9a | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-fingroup: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstr... | HTML | clean/Linux-x86_64-4.07.1-2.0.6/released/8.13.0/mathcomp-fingroup/1.8.0.html | coq-bench/coq-bench.github.io | mit | 7,856 | 166 | codeparrot/github-code |
745581447ec8d985ed2dfd6ea005e750ee800d9deb68434f01a0f4842f4d1986 | /* ircd-micro, core/tb -- TB command
Copyright (C) 2014 Alex Iadicicco
This file is protected under the terms contained
in the COPYING file in the project root */
#include "ircd.h"
static int c_s_tb(u_sourceinfo *si, u_msg *msg)
{
char *chan = msg->argv[0];
char *topic = msg->argv[msg->argc - 1];
int ts;... | C | modules/core/tb.c | aji/ircd-micro | mit | 1,086 | 53 | codeparrot/github-code |
7a36011371faab154724e6f34cc23b078f718e49fd32f3157664d2c1413b8624 | #ifndef DESCRACK_OPENCL_GPU_KERNELLOADER_H
#define DESCRACK_OPENCL_GPU_KERNELLOADER_H
#include "opencl.h"
#include "kernelconfig.h"
#include <string>
namespace descrack {
namespace opencl {
namespace gpu {
class KernelLoader
{
public:
static std::string getKernelFolder(const std::string &dataFolder)
{
... | C | src/gpu/kernelloader.h | WOnder93/descrack-opencl | mit | 928 | 39 | codeparrot/github-code |
bd7c6279678addc11a0878cb703d759fa196e2cfb604b76754f6206d5dd9b4e6 | package mpd
import (
"code.google.com/p/gompd/mpd"
"container/list"
"errors"
"github.com/amrhassan/psmpc/logging"
"github.com/amrhassan/psmpc/mpdinfo"
"strconv"
"strings"
)
var logger = logging.New("mpd")
type Player struct {
hostname string
port uint
changeHandlers *list.List
}
type Chang... | GO | mpd/mpd.go | amrhassan/psmpc | mit | 3,476 | 172 | codeparrot/github-code |
0047bab0d266615a1011a0df6500f8dc674af39394d1304b192dbe90145046eb | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ieee754: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css... | HTML | clean/Linux-x86_64-4.06.1-2.0.5/released/8.13.2/ieee754/8.10.0.html | coq-bench/coq-bench.github.io | mit | 7,472 | 181 | codeparrot/github-code |
7ed44e508e2ad7fdf083f884912b0d569cdcee09a6826ab4992c67eeb6d5c085 | require 'activerecord-custom_timestamps/config'
module CustomTimestamps
module EarlyRails4Model
extend ActiveSupport::Concern
included do
class_attribute :created_timestamp, instance_writer: false
class_attribute :updated_timestamp, instance_writer: false
class_attribute :update_custom_upd... | Ruby | lib/activerecord-custom_timestamps/early_rails4_model.rb | FineLinePrototyping/activerecord-custom_timestamps | mit | 1,519 | 53 | codeparrot/github-code |
2e76d7302d5d276785a034ab03cebb3678ac52f7a61306b32b16bafa8003688d | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>hardware: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.cs... | HTML | clean/Linux-x86_64-4.08.1-2.0.5/released/8.7.1+2/hardware/8.6.0.html | coq-bench/coq-bench.github.io | mit | 7,218 | 170 | codeparrot/github-code |
5126bf070c32696c9e8b45c20db87655dbfd33ec95169738665519c6205ca46e | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>rational: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.cs... | HTML | clean/Linux-x86_64-4.02.3-2.0.6/released/8.7.2/rational/8.6.0.html | coq-bench/coq-bench.github.io | mit | 7,370 | 178 | codeparrot/github-code |
5b0ae852290df5893d72a92f7c151f6ca258b85751f9e43292610cbadbcd29e7 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>coinductive-examples: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../boot... | HTML | clean/Linux-x86_64-4.03.0-2.0.5/released/8.9.0/coinductive-examples/8.6.0.html | coq-bench/coq-bench.github.io | mit | 7,392 | 174 | codeparrot/github-code |
7c33f4a0f8fd1e43465391207d3d2abdd8779b8940c9f9c83aac88cb5185c0af | <!DOCTYPE html>
<html>
<head>
<title></title>
<script src="js/dat.gui.js"></script>
<script data-main="../src/config.js" src="../src/require.js"></script>
</head>
<body>
<script type="text/javascript">
requirejs(['SGE', '../examples/js/DemoUtils'], function (SGE, DemoUtils) {
... | HTML | SGE.js/examples/pointLights.html | loreStefani/SGE.js | mit | 12,974 | 239 | codeparrot/github-code |
fe6fa85fbe3ac818de5cc58db6bacc7ad5ef18edc85a885e4c7dad47b054a412 | /// <reference path="tsd.d.ts" />
import nodemailer = require('nodemailer');
import smtpTransport = require('nodemailer-smtp-transport');
import when = require('when');
import nodefn = require ('when/node');
import config = require('./config');
var options: smtpTransport.SmtpOptions = {
host: config.get('mail... | TypeScript | src/web/mailer.ts | optical/opticraft-control-panel | mit | 985 | 33 | codeparrot/github-code |
ef8d6d0f1cb45e21a67736249d2226357727400b7486f5659dcfb8b60c7d15e4 | package ca.jimr.scalatron.api
import BotCommand._
case class BotResponse(cmds: Map[String, BotCommand] = Map()) {
def merge(others: BotResponse*): BotResponse = {
others.foldLeft(this) { (r, o) =>
val simpleMerged = r.cmds ++ (o.cmds -- Seq("Set", "Log"))
val setMerged = (r.cmds.get("Set"), o.cmds.g... | Scala | src/main/scala/ca/jimr/scalatron/api/BotResponse.scala | jriecken/scalatron-bots | mit | 2,805 | 91 | codeparrot/github-code |
e2c297514ce7d1320f536cf72b9b71f5f4b9260fb16b025d7af2cf1d0879382f | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>geocoq: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css"... | HTML | clean/Linux-x86_64-4.11.2-2.0.7/released/8.13.1/geocoq/2.0.0.html | coq-bench/coq-bench.github.io | mit | 6,704 | 164 | codeparrot/github-code |
d5d9a6864015661755e2014accc5e10edc0b66d1fae41a071a81638a427d0d65 | package mine_sweeper
import (
"fmt"
"math"
"math/rand"
"strconv"
"strings"
"time"
)
type Field struct {
width byte
height byte
state [][]int
}
//Field.state == -1 ~ 18
//-1: not open with mine
//0 ~ 8: not open and the number of mine surrounding
//9: open with mine
//10 ~ 18: open and the number of mine s... | GO | field.go | ami-GS/mine_sweeper | mit | 6,294 | 253 | codeparrot/github-code |
3d82b1818a1b5cb09413e0c2310db75666b43237a442e7fe2681c7f12d33f8c1 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>equations: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.c... | HTML | clean/Linux-x86_64-4.02.3-2.0.6/released/8.4.6/equations/1.2.1+8.10.html | coq-bench/coq-bench.github.io | mit | 7,597 | 183 | codeparrot/github-code |
cfd8010453e1dfe0ba5329aec8ba8c44109e9dea6098efe6af0b5cce8f46ff39 | <?php
/* @WebProfiler/Profiler/toolbar_js.html.twig */
class __TwigTemplate_5cee951533d63f530a3d43f38e61c8ce extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
);
}
prot... | PHP | app/cache/dev/twig/5c/ee/951533d63f530a3d43f38e61c8ce.php | heltonritter/asapp | mit | 5,417 | 116 | codeparrot/github-code |
1e1b80f0c1989bb747782880733fd1a622fe85462d4370801177113834a52998 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>elpi: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" r... | HTML | clean/Linux-x86_64-4.02.3-2.0.6/released/8.8.0/elpi/1.9.6.html | coq-bench/coq-bench.github.io | mit | 7,713 | 177 | codeparrot/github-code |
5406db23ccf5355806f4fba5878adb7d0d9b7bb6586ede4f38afa9ae201c0b76 | #Author: Maple0
#Github:https://github.com/Maple0
#4th Sep 2016
#Given a collection of intervals, merge all overlapping intervals.
#For example,
#Given [1,3],[2,6],[8,10],[15,18],
#return [1,6],[8,10],[15,18].
class Interval(object):
def __init__(self, s=0, e=0):
self.start = s
self.end = e
class Merge_Resu... | Python | leetcode/merge-overlapping-intervals.py | Maple0/Algorithm | mit | 1,961 | 66 | codeparrot/github-code |
8a2c9868287a92f66ffa753c4ad3d934ca245fe744e92f6ebbd8733c5c66afa6 | namespace Merchello.Web.Models.ContentEditing
{
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Linq;
using global::Examine;
using Merchello.Core;
using Merchello.Core.Models;
using Merchello.Core.Mode... | C# | src/Merchello.Web/Models/ContentEditing/ExamineDisplayExtensions.cs | doronuziel71/Merchello | mit | 14,906 | 370 | codeparrot/github-code |
7cddb893e86ca4c2ab17ff3b397d1161e933a7c6108e4543413c78be419363bf | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN">
<!-- Copyright (c) 2005 Tim Taylor (see LICENSE.txt) -->
<html>
<head>
<title>Long List Sort · toolbear</title>
<link rel="stylesheet" type="text/css" href="common/common.css"/>
<link rel="stylesheet" type="text/css" href="common/lists.css"/>
<style type="text/c... | HTML | examples/long-sort.html | toolbear/ToolManDHTML | mit | 2,868 | 84 | codeparrot/github-code |
2522e766e01c349019ac52bbfe8280d24e56aa4f15e9f8c099a37cda408f8c80 | import json
import random
#from sklearn.manifold import TSNE
from tsne import bh_sne
from numpy.random import rand
from sklearn.preprocessing import MinMaxScaler
from time import time
import numpy as np
start_time = time()
n_samples = 20000
#wordlist = ["word-%d" % i for i in range(n_samples)]
#print "creating random ... | Python | processing/main.py | anthonygarvan/wordgalaxy | mit | 1,256 | 55 | codeparrot/github-code |
675741409d8ef918e3c95f6434f2cde50084fe3a875efe28ca184a4e4cf400ba | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>infotheo: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.cs... | HTML | clean/Linux-x86_64-4.07.1-2.0.6/released/8.7.1+2/infotheo/0.1.1.html | coq-bench/coq-bench.github.io | mit | 7,448 | 189 | codeparrot/github-code |
59bad07ad33f4129e9c042f5abdda7dcab30d97cb4ada69a87dcaca4d92ecf73 | //
// Square.h
// Ray tracing
//
// Created by Fabrizio Duroni on 08/08/15.
// Copyright © 2015 Fabrizio Duroni. All rights reserved.
//
#import "Model.h"
@import Foundation;
@class Point3D;
@class Texture;
@class Material;
/*!
Class used to represent CONVEX polygon.
@see https://sites.google.com/site/justi... | C | RayTracing/RayTracer/Objects/Polygon.h | chicio/Ray-tracing | mit | 1,724 | 62 | codeparrot/github-code |
a4e8ef03ad8f8c10b8b0ae195be8a35834f48ad5eb49b418fa2dd0c09511ffda | /**
* Created by Andy<andy@away.name> on 03.09.13.
*/
var $uuid = require('uuid');
var $util = require('util');
/**
* Logger Console Adapter
* @param {Object} params
* @param {LoggerFactory} loggerFactory
* @constructor
*/
var ConsoleAdapter = function(params, loggerFactory){
this._id = $uuid.v4();
thi... | JavaScript | lib/adapters/console.js | a696385/the.logger | mit | 1,075 | 44 | codeparrot/github-code |
be581e1486f933e227977ad9336777177d050e6bbff95ec1023d1bae851ccc31 | package main
type Human struct {
name string
age int
phone string
}
type Student struct {
Human
school string
loan float32
}
type Employee struct {
Human
company string
money float32
}
// define interfaces
type Men interface {
SayHi()
Sing(lyrics string)
Guzzle(beerStein string)
}
type YoungChap... | GO | build-web-application-with-golang-ebook/2.6-interface/type-of-interface.go | leogsouza/learning-golang | mit | 1,062 | 64 | codeparrot/github-code |
0aae8b4a04cc4c41fe2bd1fbb605e08dcc3b8ec5bd064db7455da908e6ae9f76 | ---
layout: default
---
<article id="main">
<header class="special container">
<h2><strong>Register</strong></h2>
</header>
<section class="wrapper style4 container">
<div class="content">
<section>
Registration packets will be sent to each federation on January 31st. Please see this ... | HTML | register.html | auskf-web/auskf-nationals.github.io | mit | 3,587 | 57 | codeparrot/github-code |
e6b270cd58df49c4d5269a4c4159a35c88dd71a91fc37eeda35dc395228edc07 | /*
* Hibernate, Relational Persistence for Idiomatic Java
*
* Copyright (c) 2011, Red Hat Inc. or third-party contributors as
* indicated by the @author tags or express copyright attribution
* statements applied by the authors. All third-party contributions are
* distributed under license by Red Hat Inc.
*
* T... | Java | OpenBeaconPackage/libraries/hibernate-release-4.2.7.SP1/project/hibernate-core/src/main/java/org/hibernate/metamodel/Metadata.java | HerrB92/obp | mit | 3,424 | 98 | codeparrot/github-code |
161e8a3c13040ab1bae02bd3ffc070e70c100fa6b5d41b9ce1953799198552e4 | // @COPYRIGHT@
// Licensed under MIT license (LICENSE.txt)
// clxx/io/device_info.cpp
/** // doc: clxx/io/device_info.cpp {{{
* \file clxx/io/device_info.cpp
* \brief Instantiates templated I/O routines for \ref clxx::device_info
*/ // }}}
#include <ostream>
template<typename _Traits>
static std::basic_ostream<wc... | C++ | src/lib/clxx/io/device_info.cpp | ptomulik/clxx | mit | 1,510 | 54 | codeparrot/github-code |
85438a9d1448c609ef66e9d94477baaa61820f24e1909113ad0cd67e1bab048b | #ifndef __OMBT_REFCNTPTR_H
#define __OMBT_REFCNTPTR_H
//
// reference-counted pointer. one very important point, since
// this class has the the class member access operator defined
// (for example, pa->b), it can not be used with primitive
// data types. The following statements are nonsensical for primitive
// type.... | C | old/libsrc/atomic/RefCntPtr.h | ombt/ombt | mit | 7,566 | 285 | codeparrot/github-code |
3dc9fc25769b5bd7dfdbf08bf480cdd2bd250d041df01ef76dbd92de80412183 | package components
import (
"bytes"
"html/template"
)
type susiSerialComponent struct{}
func (p *susiSerialComponent) Config() string {
return `{
"susi-addr": "localhost",
"susi-port": 4000,
"cert": "/etc/susi/keys/susi-serial.crt",
"key": "/etc/susi/keys/susi-serial.key",
"component": {
... | GO | components/susi-serial.go | webvariants/susi-dev | mit | 2,309 | 80 | codeparrot/github-code |
a0cc1f38aad043c7b38321e37bf18fc75ef364423f2c1c6425a6e99ac3db10bf | /*
Package backend provides the compute instance backends supported by Worker.
Other code will primarily interact with this package by creating a Provider
implementation and creating Instances. An example using the "fake" provider
(error handling omitted):
provider := backend.NewBackendProvider(
"fake",
config.P... | GO | backend/package.go | travis-ci/worker | mit | 5,460 | 188 | codeparrot/github-code |
d4e2874ae024cc098495029170b295af7ee23ffb618284f9686450e32feae230 | 'use strict'
const fs = require('fs')
const yaml = require('js-yaml')
const Step = require('./Step')
class Parser {
constructor(pipelinePath) {
this.config = yaml.safeLoad(fs.readFileSync(pipelinePath))
this.pipelines = {
default: this.parseSteps(this.config.pipelines.default),
bra... | JavaScript | lib/Parser.js | jakubknejzlik/node-bitbucket-pipelines | mit | 1,233 | 50 | codeparrot/github-code |
888f2b8fc6400365cdf30badccd09e00fc3b04370597accd79cec5309fd10d3b | #include "Stream.h"
#ifdef _WIN32
#include <share.h>
#endif
#include "LibIO.h"
namespace CoreLib
{
namespace IO
{
using namespace CoreLib::Basic;
FileStream::FileStream(const CoreLib::Basic::String & fileName, FileMode fileMode)
{
Init(fileName, fileMode, fileMode==FileMode::Open?FileAccess::Read:FileAccess... | C++ | CoreLib/Stream.cpp | csyonghe/SpireMiniEngine | mit | 5,266 | 223 | codeparrot/github-code |
5122960398d61a8ae4ed8638b123eff92df778d8314e67dbe617498e466d95af |
#include "scan.h"
/** exceptions **/
const char* exc_InvalidIndex = "invalid momentum index";
/** policies **/
const int AddToFile::output_precision = 15;
/** addfunc **/
void AddToMatrixFunc::operator() (Quantity& quantity)
{
const string here = "AddToMatrixFunc::operator()";
int energy_resolution = tabl... | C++ | bethe-xxz/scan.cc | robhagemans/bethe-solver | mit | 5,237 | 163 | codeparrot/github-code |
ca704b2c5cd51cf0f0a4b50f2f16f9be66cf83fab631364ce50b36fffe8fb1c1 | /**
* Porsche.js is licensed under the MIT license. If a copy of the
* MIT-license was not distributed with this file, You can obtain one at:
* http://opensource.org/licenses/mit-license.html.
*
* @author: Yang Yang (compking@gmail.com)
* @license MIT
* @copyright Yang Yang, 2015
*/
"use strict";
function Class() {}
... | JavaScript | framework/class.js | compking2012/porsche | mit | 2,328 | 76 | codeparrot/github-code |
994e26b6ee9d3de62a79de7bcbffb10353870c5e6b7c5e83f62a36393f85eee7 | using System.Collections.Generic;
using System;
namespace Stratus
{
/// <summary>
/// The ActionSet is the base class from which all other sets derive.
/// Sets such as Sequence, Group and the unique set used by entities.
/// </summary>
public abstract class StratusActionSet : StratusAction
{
//---------------... | C# | Core/Source/Actions/StratusActionSet.cs | Azurelol/StratusFramework | mit | 2,117 | 82 | codeparrot/github-code |
defb46e1485c7c16a2729519e04d90c479a93351342d111fc967c39d212bbe03 | """
WSGI config for puuch project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION`` se... | Python | puuch/wsgi.py | ricrdo/puuch | mit | 1,416 | 33 | codeparrot/github-code |
56a59ad20aaf40ae31544c42f5096f47b289ef05dc7f5b03cb0dcbad906dc386 | class Admin::EducationsController < Admin::BaseController
include OwnerFindingConcern
before_action :find_owner
before_action :education
before_action { add_crumb("#{owner_type}列表", polymorphic_path(@owner.class)) }
before_action { add_crumb("#{owner_type}檔案 - #{@owner.name}的詳細資料", polymorphic_path(@owner)) }... | Ruby | app/controllers/admin/educations_controller.rb | JRF-tw/sunshine.jrf.org.tw | mit | 2,329 | 74 | codeparrot/github-code |
ca66888dfcfeff45065da3a5e0ef0a34b52d5e8887517a42e9676d455d79178b | <?php
namespace Niborb\FeatureToggle;
use Niborb\FeatureToggle\DataProvider\ArrayDataProvider;
use Niborb\FeatureToggle\Entity\FeatureExpressionInterface;
use Niborb\FeatureToggle\Entity\FeatureInterface;
use Symfony\Component\ExpressionLanguage\ExpressionLanguage;
/**
* Class Toggle
* @package Niborb\FeatureToggl... | PHP | src/Niborb/FeatureToggle/Toggle.php | niborb/php-feature-toggle | mit | 3,133 | 134 | codeparrot/github-code |
a54acd119f06daa620e05e106f8d18fd69028df083ebda626d83947f196a5d6f | #include "AssetTypes.h"
#include "Platform/Memory.h"
AssetFlags TextureAsset::TypeFlag = ASSET_TEXTURE;
Asset::~Asset()
{
if ((Flags & ASSET_OWNMEM) == ASSET_OWNMEM && Buffer != nullptr)
{
MEM::Free(Buffer);
NumBytes = 0;
Buffer = nullptr;
}
Flags = 0;
}
bool TextureAsset::Ini... | C++ | Shared/AssetUtils/AssetTypes.cpp | k6project/SCToolKit | mit | 1,169 | 49 | codeparrot/github-code |
4c6f4e001e811a6e2c9b0021aa77fe20f33b32082c3b9fbc650de1a3beacfc00 | <?php
namespace PhpAgent\Commands;
use Process\IProcess;
use Process\Update;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\Output... | PHP | src/Commands/ListPlugins.php | alrik11es/phpagent | mit | 1,543 | 61 | codeparrot/github-code |
d54a301c4f4407950f9271d17a713924574248cee41372c572df18ab99511af6 | package minecraft.block;
import java.util.HashMap;
import java.util.Map;
public class StateAggregate
{
private Map<String, String> m_states;
/**
* An instance that contains no property.
*/
public StateAggregate()
{
m_states = new HashMap<>();
}
public String get(String name)
{
return m_states.get(n... | Java | PhotonStudio/Source/minecraft/block/StateAggregate.java | TzuChieh/Photon-v2 | mit | 1,136 | 69 | codeparrot/github-code |
1d4f424bb75750efe2ae461b66868eb04538c502206020173c216a50f09332bd | /*
* The MIT License (MIT)
*
* Copyright (c) 2014 Marcel Mika, marcelmika.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 ri... | Java | docroot/WEB-INF/src/com/marcelmika/lims/portal/portlet/LIMSPortlet.java | marcelmika/lims | mit | 13,909 | 349 | codeparrot/github-code |
ad6f40e7a2eba265a31c5ec85c93e277b8dafe6d5dd7652afd2fc5e27dd074f6 | function Unit(tile, player, options) {
var settings = $.extend( {
move : 0,
range : 1,
str : 10
}, options);
this.tile = tile;
this.element = tile.board.svg.use(this.tile.tile, '#' + settings.name,
{class : 'unit' } );
$.extend( this, settings );
return this;
}
Unit.prototype.click = function() {
... | JavaScript | js/unit.js | andrewgaun/SVG_Board | mit | 1,232 | 50 | codeparrot/github-code |
59646ec917caf8cea6fd5a3219752328d7695c8a6dbb43e4b0bf7c1b658fd70d | define(['DataFormatters/DataFormatter'],
function (DataFormatter) {
'use strict';
var _getGraphId = function(multiAxis, axis) {
var idNumber = multiAxis.indexOf(axis) + 1;
return "AmGraph-" + idNumber;
}
var _buildMultiAxisGraphs = function(multiAxis) {
var graphs = [];
... | JavaScript | src/Charts/BarChart.js | richhildebrand/Jason-Kipnis | mit | 2,472 | 83 | codeparrot/github-code |
66a65ebb82723b9c5e4f36234a1b34c6576c0a93621f0b3c3802a75c1f3ae81a | using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Markup;
using System.Windows.Navigation;
using Host.Utils;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Marketplace;
using Microsoft.Phone.Shell;
using Host.Resources;
using Framework.Common;
namespace Host
{
public partia... | C# | org.xepher.kazuma8/Host/App.xaml.cs | xepher/wp-wuxibus | mit | 10,995 | 266 | codeparrot/github-code |
81225e277dc4f503c6dad57874f5ecaea3c756e5241c8294132a3e83c10af8e2 | import supriya.commands
import supriya.realtime
from supriya.system.SupriyaValueObject import SupriyaValueObject
class NodeTransition(SupriyaValueObject):
"""
A non-realtime state transition.
"""
### CLASS VARIABLES ###
__documentation_section__ = "Session Internals"
__slots__ = ("_source",... | Python | supriya/nonrealtime/NodeTransition.py | Pulgama/supriya | mit | 4,163 | 114 | codeparrot/github-code |
0cfee0451f8689c59263a48320e81c6c45a93c3cf240d76ac9d871efddc05985 | /*Zero browser defaults*/
body * {margin:0; padding:0; border:none;text-indent:0;text-decoration: none;outline:none;}
/* ------------------------
Basic style
------------------------ */
body {font-family:georgia; margin:0; padding:0;}
h1, h2, p, ul, ol {font-weight:normal;margin-bottom:15px; font-size:15px; line... | CSS | watkins web 1/web 1 exercises/exercise 16 intro to jquery/exercise16-blank.css | jmuspratt/teaching | mit | 2,929 | 101 | codeparrot/github-code |
db3d4a80d59980854007eeafcbbd3ed31f5c900fc1fca9cd5070e00365e9fa1d | <?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 | Gordondalos/erp | mit | 1,431 | 38 | codeparrot/github-code |
ba0e3dbe182f7eb948c3cdd8fcef16fc29a8594d183a4b01de82391d2451d5a6 | <?php require_once 'header1.php';?>
<?php require_once 'black_ipad.php';?>
<?php
if ($_POST) {
#创建联系人
$param['accessToken'] = 'vPoGp4lHm6';
$param['phoneNum'] = $_POST['phoneNum'];
$param['username'] = $_POST['username'];
$userId = FCurl::get('user/createV3', $param);
#更新联系人性别
... | PHP | crm/audition.php | NASH-WORK/NASH-CRM | mit | 5,243 | 174 | codeparrot/github-code |
ede79d511a3613d64c37e61e7ebd8664a73e13949f8ccae09570513372de4379 | var nc = require('../ncurses'), consts = require('../ncconsts');
var intScroll, inputLine = "";
var win = new nc.ncWindow();
win.centertext(win.lines/2, "hello world");
win.refresh();
win.addListener('inputChar', function (chr, intval) {
if (intval == consts.BACKSPACE || intval == 7) {
if (inputLine.length)
inpu... | JavaScript | examples/test.js | isaacs/node-ncurses | mit | 891 | 34 | codeparrot/github-code |
8dcd3dfed79dd7bf0a4ba89addf8f6eff6b5a8fe2d52c593258fcf35046ace77 | 'use strict';
var config = require('../config');
var twilio = require('twilio');
var client = twilio(config.accountSid, config.authToken);
module.exports = function(app) {
app.post('/call', function(req, res) {
console.log(req.body.phoneNumber);
client.makeCall({
to: req.body.phoneNumber,
from: ... | JavaScript | routes/call.js | ecjs/Concierge | mit | 2,007 | 53 | codeparrot/github-code |
7ef3ee6a5374548db68bc6d4586ee88f3014f161d40ac46d72d34c84b3045230 | <?php
namespace TripShaper\StoreBundle\Document;
use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;
/**
* @MongoDB\EmbeddedDocument
*/
class Geolocation
{
/**
* @MongoDB\Id
*/
private $id;
/**
* @MongoDB\Float
*/
private $latitude;
/**
* @MongoDB\Float
*/
private $... | PHP | src/TripShaper/StoreBundle/Document/Geolocation.php | jbayle/TripShaper | mit | 1,258 | 82 | codeparrot/github-code |
b74380c0f47d67214e128da7f9e8ecf27e747680dbaa7d847e46b17cf394dcb0 | # frozen_string_literal: true
class DeleteContainerRepositoryWorker
include ApplicationWorker
include ExclusiveLeaseGuard
LEASE_TIMEOUT = 1.hour
attr_reader :container_repository
def perform(current_user_id, container_repository_id)
current_user = User.find_by(id: current_user_id)
@container_repos... | Ruby | app/workers/delete_container_repository_worker.rb | jirutka/gitlabhq | mit | 999 | 35 | codeparrot/github-code |
449a3f1e305db38ef38c4e7160c63f73e27bf29e344092f650e9e0e299871d4c | # Initial implementation by Jeremy Skinner
# http://www.jeremyskinner.co.uk/2010/03/07/using-git-with-windows-powershell/
$Global:GitTabSettings = New-Object PSObject -Property @{
AllCommands = $false
}
$subcommands = @{
bisect = 'start bad good skip reset visualize replay log run'
notes = 'edit show'
... | PowerShell | GitTabExpansion.ps1 | pstaszko/posh-git | mit | 11,162 | 324 | codeparrot/github-code |
da4586635d82245e407538d0e9b91654daaeae00b90bd6dcdc2bbdd30698e34c | <?php
/**
* prestashop Project ${PROJECT_URL}
*
* @link ${GITHUB_URL} Source code
*/
namespace PhpSigep\Services\Real;
use PhpSigep\Bootstrap;
use PhpSigep\Config;
use PhpSigep\Services\Real\Exception\SoapExtensionNotInstalled;
class SoapClientFactory
{
const WEB_SERVICE_CHARSET = 'ISO-8859-1';
con... | PHP | src/PhpSigep/Services/Real/SoapClientFactory.php | gustvao/php-sigep | mit | 13,402 | 304 | codeparrot/github-code |
e173d8220b3dc90e14b73e401a89da808eb00d6b508744453c2985c48d45dfc4 | import meow from 'meow';
import { Package, UpdateNotifier } from 'update-notifier';
import { Runner, TypescriptStarterArgsOptions, validateName } from './utils';
export async function checkArgs(): Promise<TypescriptStarterArgsOptions> {
const cli = meow(
`
Usage
$ npx typescript-starter
Non-Interactive U... | TypeScript | src/cli/args.ts | bitjson/typescript-starter | mit | 3,802 | 142 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.