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 |
|---|---|---|---|---|---|---|---|---|
104bed753332043510c441d806d7a0d1a720dc7f6f529255ac8034c748370dd6 | package ph.rye.flight.controller;
import javax.ejb.EJB;
import javax.servlet.annotation.WebServlet;
import ph.rye.flight.controller.action.FlightCancelAction;
import ph.rye.flight.controller.action.FlightSaveAction;
import ph.rye.flight.controller.action.LoadFlightDetailAction;
import ph.rye.flight.service.AirplaneBe... | Java | src/main/java/ph/rye/flight/controller/FlightDetail.java | roycetech/app-flight | mit | 993 | 43 | codeparrot/github-code |
2330575d86c141054d3d44744f7bc45cee77421cf7ceb67f7484b1ee8656a056 | package edu.psu.compbio.seqcode.gse.ewok.verbs;
import edu.psu.compbio.seqcode.gse.datasets.general.Region;
import edu.psu.compbio.seqcode.gse.datasets.general.StrandedRegion;
import edu.psu.compbio.seqcode.gse.ewok.nouns.*;
/**
* Maps a StrandedRegion to its three prime end.
*/
public class StrandedToThreePrime<X e... | Java | src/edu/psu/compbio/seqcode/gse/ewok/verbs/StrandedToThreePrime.java | shaunmahony/seqcode | mit | 1,195 | 37 | codeparrot/github-code |
33083911c1152a856c884518d54e10834f1feb3e5ce51f876d5e267431c2ea99 | import fs from 'fs'
import Yadda from 'yadda'
import libraryCreator from './libraryCreator'
const parser = new Yadda.parsers.FeatureParser()
export default function(featureFile, scenarioTitle) {
const text = fs.readFileSync(featureFile, 'utf8')
const feature = parser.parse(text)
const scenario = feature.... | JavaScript | ui/specs/globals/scenarioConvert.js | untoldwind/eightyish | mit | 1,514 | 49 | codeparrot/github-code |
378a74ede26442188744daaa5ff4e9b73d5be1109a902cafb27b08f822a8c71f | jQuery.noConflict();
jQuery(document).ready(function($){
function ACFTableField() {
var t = this;
t.param = {};
// DIFFERENT IN ACF VERSION 4 and 5 {
t.param.classes = {
btn_small: 'acf-icon small',
// "acf-icon-plus" becomes "-plus" since ACF Pro Version 5.3.2
btn_add_row: 'acf-icon-plus -... | JavaScript | plugins/advanced-custom-fields-table-field/js/input-v5.js | luisfbmelo/saudacorwebsite | mit | 20,706 | 996 | codeparrot/github-code |
746354223a44e2476ce30bcafeaec7cfb5b368c9dd27620e1027b2dbe489ed64 | using System.Collections.Generic;
using Lucene.Net.Store;
namespace DotJEM.Json.Index.Storage
{
public class MemoryCashedLock : Lock
{
private readonly string name;
private readonly HashSet<string> locks;
public MemoryCashedLock(HashSet<string> locks, string name)
{
... | C# | DotJEM.Json.Index/Storage/MemoryCashedLock.cs | dotJEM/json-index | mit | 1,061 | 50 | codeparrot/github-code |
c05b2ac6e40b78d5719dd0635faac148c12693b9281b3e4a81e1323935bdf0f5 | /*!
* Bootstrap v3.3.4 (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
/*!
* Generated using the Bootstrap Customizer (http://getbootstrap.com/customize/?id=2c98d194e4e9aad3e082)
* Config saved to config.json and https:... | JavaScript | static/bootstrap/js/bootstrap.js | trigunshin/personal_home_page | mit | 67,739 | 2,321 | codeparrot/github-code |
59934fae75e9f654f9a1e7f4fb9f4076d2c1696d431e39793bdc3685877ba5e5 | //
// WMUser.h
// OOModel
//
#import <Foundation/Foundation.h>
#import "OOModel.h"
#import "TestMD.h"
typedef NS_ENUM(NSInteger,WMUserSex) {
WMUserSexUnknow,
WMUserSexMan,
WMUserSexWoman
};
@interface WMUser : NSObject<OOUniqueModel,OODbModel,OOJsonModel>
@property (strong) NSString *login;
@property (a... | C | Test/Models/WMUser.h | oyh5233/OOModel | mit | 1,495 | 49 | codeparrot/github-code |
9692af31a2a3f2b0cb8642273ca6001de2d97f38ac01ea9a7d2748c9fea991a7 | class ThesesController < ApplicationController
# GET /theses
# GET /theses.xml
def index
@theses = Thesis.all
respond_to do |format|
format.html # index.html.erb
format.xml { render :xml => @theses }
end
end
# GET /theses
# GET /theses.xml
def own
@theses = current_user.thes... | Ruby | app/controllers/theses_controller.rb | PatrickHeneise/insight | mit | 3,280 | 134 | codeparrot/github-code |
d79b31581cde7c245b679bcce61b2e72f2f9ed715630505f5350b4182b8cf2ef | import java.awt.*;
import java.awt.event.*;
import java.awt.geom.Rectangle2D;
import javax.swing.*;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
import java.net.URL;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
/**
* This program demonstrates GradientPaint an... | Java | assets/source/PaintDemo.java | Sw1cH/Android-Ebook | mit | 10,465 | 276 | codeparrot/github-code |
4e39b8787777793f37e761cad45e2ffa9f5cb8f5836aa763757f9939ddddbbd1 | import { clamp, wrap } from '../utils'
import { namespace } from './constants'
import { Data } from './models'
import { getState } from './state'
/**
* Gets the playback state
*
* @public
* @param data - The SpriteSpin instance data
*/
export function getPlaybackState(data: Data): PlaybackState {
return getState... | TypeScript | src/core/playback.ts | giniedp/spritespin | mit | 3,498 | 141 | codeparrot/github-code |
1383adc0c9d5d8ae8696db2d9dc91cf0f62eacef99a553a084c8b7d3bc3c861d | var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
};
var Convert = require('ansi-to-html');
var _ = require('lodash');
var React = require('react... | JavaScript | .atom/packages/omnisharp-atom/lib/omnisharp-atom/views/omni-output-pane-view.js | joerter/atom-config | mit | 2,108 | 51 | codeparrot/github-code |
b9af0d80417498a7d3022d137fb702bd00c1b33ff30a738e22da9d30275a597c | /*
* This file is part of the Sulu CMS.
*
* (c) MASSIVE ART WebServices GmbH
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
/**
* @class item-table@sulusalescore
* @constructor
*
* @param {Object} [options] Configuration object
* @param {A... | JavaScript | src/Sulu/Bundle/Sales/CoreBundle/Resources/public/js/components/item-quantity-table/main.js | sulu-io/sulu-sales | mit | 13,770 | 401 | codeparrot/github-code |
2cc2af1986fb0f78353b16f54d4c2233e0fa441a5512dde9bae9f88f0dc296a3 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<title>ViewRadius — armacode Documentation</title>
<link href="../../_static/b... | HTML | docset/armacode.docset/Contents/Resources/Documents/armacode/libraries/ViewRadius.html | theTonyHo/armacode | mit | 5,140 | 115 | codeparrot/github-code |
9cf97f460f13c6ce18fe0896d7458afe1b427e4465c4c933aaecaa5c7aca3823 | module Main where
import Tracks.Network
import Tracks.Service
import Tracks.Train
import Tracks.Signals (Signals)
import qualified Tracks.Signals as Signals
import Control.Monad.STM
import Control.Concurrent
import qualified STMContainers.Set as Set
import System.Random
foxhole, riverford, tunwall, maccton, welbridg... | Haskell | Main.hs | derkyjadex/tracks | mit | 1,749 | 57 | codeparrot/github-code |
93b787685c047a4fd391ed627ec2403f70949a3131849af93f8f2033d7970777 | <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>2016-FR-20</title>
<link class="module" rel="stylesheet" href="../../../_common/modules/pemFioi/taskStyles-0.1.css" id="http://www.france-ioi.org/modules/pemFioi/taskStyles-0.1.css">
<script class="module" type="text/javascript" src="../../.... | HTML | algorea/algorea_2016/2016-FR-20-mobiles/index.html | France-ioi/bebras-tasks | mit | 11,460 | 261 | codeparrot/github-code |
624ad5a040a1e90c4868399452f2b9abed8893f97fea062283c466c5a02772f3 | <!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
<title>BBS-Bootstrap기반 반응형웹 html 템플릿</title>... | HTML | modal/jschr/size-window.html | gitaeks/bs-html-examples | mit | 5,942 | 155 | codeparrot/github-code |
57f1e9774b919242678d8f7819a1233e7e0e1c4d23176824dc6c36edd02ba9f5 | package com.giddyplanet.embrace.tools.model.java;
public class JArgument {
private String name;
private JTypeRef type;
private boolean varArgs;
public JArgument(String name, JTypeRef type) {
this.name = name;
this.type = type;
}
public String getName() {
return name;
... | Java | tools/src/main/java/com/giddyplanet/embrace/tools/model/java/JArgument.java | rhmoller/embrace | mit | 1,234 | 50 | codeparrot/github-code |
106dd14f58d06c73819bd7b4e1fbc3d96f80462c9e3276478a8a1f1e000c667d | #ifndef SERVICE_PROVIDER_H
#define SERVICE_PROVIDER_H
#include <iomanip>
#include <sstream>
#include <algorithm> // std::reverse
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <time.h>
#include <string.h>
#include <iostream>
#include "Messages.pb.h"
#include "UtilityFunctions.h"
#include "LogB... | C | ServiceProvider/service_provider/ServiceProvider.h | svartkanin/linux-sgx-remoteattestation | mit | 2,120 | 86 | codeparrot/github-code |
1b5d2208bd2dd4c781afdb574ca2af6d937c08a9fa7cf1d998b3cb7b4c18af2c |
Meteor.methods({
clearServerData: function() {
logger.log("dev : clear all db's data");
Slideshow.remove({});
Slides.remove({});
Elements.remove({});
Locks.remove({});
slideshowPublished = {};
},
clearDynamiqueServerData: function() {
... | JavaScript | server/methods/serverAdmin.js | remipichon/expoditor | mit | 1,775 | 57 | codeparrot/github-code |
06915c2dc12c88c5f507e59fd148ddc17306f93252a72b861057e10dbd55343d |
// String prototypes
if (typeof String.prototype.contains != 'function')
{
String.prototype.contains = function (str)
{
return Boolean(~this.indexOf(str));
};
}
if (typeof String.prototype.endsWith != 'function')
{
String.prototype.endsWith = function (str)
{
retur... | JavaScript | lib/extensions.js | jimnoble/sparrow-js | mit | 3,764 | 184 | codeparrot/github-code |
2d1d51e834ad1bfd865c767d0ef747dd4e9f935c8e882806626d25f50bbdaae2 | using GameEngine;
using System.Collections.Generic;
/***
* Model.cs
*
* @author administrator
*/
namespace GameEngine
{
public class Model : Singleton<Model>, IModel
{
private readonly static object mStaticSyncObject = new object();
private readonly object mSyncObject = new object();
... | C# | Src/GameEngine/Frame/Core/Model.cs | hellowod/unity-framework | mit | 1,479 | 77 | codeparrot/github-code |
1cc105b0a44e1f606e187978a24daa04c68e52f2f49bf1e686b796ab67ce0a09 | <?php
namespace Chamilo\Libraries\Architecture\Application;
use Chamilo\Configuration\Storage\DataClass\Registration;
use Chamilo\Libraries\Architecture\ClassnameUtilities;
use Chamilo\Libraries\Architecture\Exceptions\NotAllowedException;
use Chamilo\Libraries\Architecture\Exceptions\UserException;
use Chamilo\Librar... | PHP | src/Chamilo/Libraries/Architecture/Application/Application.php | cosnicsTHLU/cosnics | mit | 27,340 | 972 | codeparrot/github-code |
d108a3d2f50e99c8f687652791c6d0dbc4135acc76061c1369519d9ec83a869b | from collections import OrderedDict
import functools
import itertools
import torch
from ..backends.thnn import backend as thnn_backend
from ..parameter import Parameter
import torch.utils.hooks as hooks
def _addindent(s_, numSpaces):
s = s_.split('\n')
# don't do anything for single-line stuff
if len(s) ... | Python | pytorch/source/torch/nn/modules/module.py | ryfeus/lambda-packs | mit | 41,372 | 1,061 | codeparrot/github-code |
0152fc8558ee3b1e9d34a1a7cdf788c4138080b0f1601d20a230c0e055c2f031 |
<!DOCTYPE html>
<!--[if IEMobile 7 ]><html class="no-js iem7"><![endif]-->
<!--[if lt IE 9]><html class="no-js lte-ie8"><![endif]-->
<!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]-->
<head>
<meta charset="utf-8">
<title>Two Little Known HTML5 Attributes - Scha... | HTML | blog/2015/08/05/some-little-known-html5-attributes/index.html | schalkneethling/schalkneethling.github.io | mit | 13,134 | 299 | codeparrot/github-code |
e47c4267423ec3ae60e2854f394a357d1e38344944c3eca82110cd25a54d40b0 | package com.descartes.restlet.clientcert;
import java.util.concurrent.ConcurrentMap;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.SSLSession;
import org.restlet.Client;
import org.restlet.Context;
import org.restlet.data.MediaType;
import org.restlet.data.Protocol;
import org.restlet.repres... | Java | src/main/java/com/descartes/restlet/clientcert/RestletClientMain.java | intercommit/restlet-clientcert | mit | 2,151 | 69 | codeparrot/github-code |
b4e45beefc40ff475f79e4b2ce7a1b0b4fb283fcf63e122b170dc5f32f032624 |
<!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>Transactions — CodeIg... | HTML | user_guide/database/transactions.html | SaraAlamillo/hermano2 | mit | 37,210 | 443 | codeparrot/github-code |
b1c6bd75db1056e7c623fc58049d5049b0767f1dbb9750dca75d10498a142a68 | #ifndef RMATRIX_H
#define RMATRIX_H
#include "real.h"
typedef struct rmatrix {
size_t row;
size_t col;
real_t matrix;
} *rmatrix_t;
#define SIZE_RMATRIX sizeof(struct rmatrix)
rmatrix_t rmatrix_init(size_t line, size_t row);
rmatrix_t rmatrix_zero(size_t row, size_t col);
rmatrix_t rmatrix_one(size_t ... | C | inc/core/math/rmatrix.h | ouassarnifahd/matlibs | mit | 1,280 | 57 | codeparrot/github-code |
e2c80cd25b1b7310fcebcbc7f4f8a60d5ee5550109124ea56d4fc037bd6b6291 | const xspacing = 16; // Distance between each horizontal location
let theta = 0.0; // Start angle at 0
const amplitude = 10.0; // Height of wave
const period = 20.0; // How many pixels before the wave repeats
let w; // Width of entire wave
let dx; // Value for incrementing x
let y... | JavaScript | sketches/dotwave.js | yangsu/p5-live | mit | 1,126 | 43 | codeparrot/github-code |
3772f51d1a37e37d7531cb7904d1789b0598c8e8f1a73a1864eee16e02aba561 | <!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>DT_TEDust | demofile</title>
<meta name="description" content="Documentation for demofile">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="styles... | HTML | docs/interfaces/_sendtabletypes_.dt_tedust.html | saul/demofile | mit | 8,453 | 198 | codeparrot/github-code |
34bfde9cfbf7bac885d092eb108a8da099537754e2af669fd2d72681f3b4facb |
#include "xVisitor_CreateTable.h"
#include "xVisitor_CreateField.h"
#include "xVisitor_TableHelper.h"
#include "xTable.h"
#include "xField.h"
#include <assert.h>
void xVisitor_CreateTable::Visit(xTable* p)
{
// 删除表格语句
if (true)
{
m_strString += "DROP TABLE IF EXISTS ";
// 写入表格名称
xVisitor_Tabl... | C++ | xdb/xvisit/xVisitor_CreateTable.cpp | xgm-skywave/sw | mit | 1,617 | 79 | codeparrot/github-code |
c8a602e352de8c737491099569e367ffb2a987b3528b09bd0c0c0dc98426d6fb | package main
import "fmt"
func min(vals ...int) (result int, ok bool) {
if len(vals) == 0 {
return
}
ok = true
result = vals[0]
for _, val := range vals[1:] {
if result > val {
result = val
}
}
return
}
func max(vals ...int) (result int, ok bool) {
if len(vals) == 0 {
return
}
ok = true
resul... | GO | ch5/ex5_15/ex5_15.go | farmatholin/gopl-exercises | mit | 506 | 39 | codeparrot/github-code |
f773cb42bed1ff69e5e227760075da6270979ea4f05951afea0444d9bd61419f | #ifndef _PARSER_H
#define _PARSER_H
#include <vector>
#include <string>
#include <stack>
using namespace std;
#include "ast.h"
#include "lexer.h"
#define BINARY_OPERATOR_LIST(T) \
T(Multiplicative,Prefix)\
T(Additive,Multiplicative)\
T(Shift,Additive)\
T(Relational,Shift)\
T(Equality,Relational)\
T(BitwiseAND,Equali... | C | include/parser.h | Eronana/strawberry | mit | 3,495 | 122 | codeparrot/github-code |
273e98b13856a039b4e4dcdd34b6bd18bf228cf31536479cf56e1df821de9eba | package com.nitrous.iosched.client.service;
import com.google.gwt.i18n.shared.DateTimeFormat;
import com.google.gwt.user.client.Window;
/**
* A central place to obtain either the real current time or the debug time as
* specified by the URL argument 'now' (e.g. now=201505291130-0700)
*
* @author nitrousdigital
... | Java | src/com/nitrous/iosched/client/service/TimeService.java | nitrousdigital/iosched2015 | mit | 986 | 38 | codeparrot/github-code |
e4e091d1613e4ded0884138c0ff088a67cee71872edf3bebcbd672b0e3286ae6 | using System;
using System.IO;
using ITGlobal.MarkDocs.Cache.Model;
using ITGlobal.MarkDocs.Source;
using JetBrains.Annotations;
namespace ITGlobal.MarkDocs.Cache
{
/// <summary>
/// Cache update operation
/// </summary>
[PublicAPI]
public interface ICacheUpdateTransaction : IDisposable
{
... | C# | src/ITGlobal.MarkDocs.Core/Cache/ICacheUpdateTransaction.cs | ITGlobal/MarkDocs | mit | 2,562 | 77 | codeparrot/github-code |
55533521c9468522e5814ebb407b63676b67aeb3bf321395df1b19d5c967a6af | class Color {
/*
* Helper functions
*/
static executeTransform(transform, color) {
const transformFunctions = {
'redShift': Color.redShift,
'blueShift': Color.blueShift,
'greenShift': Color.greenShift,
'invert': Color.invert
};
... | JavaScript | app/scripts/color.js | corinnaerin/twitterflitter | mit | 2,748 | 117 | codeparrot/github-code |
ffb4466c836860853c35c4da866a61ece7cf33f484b8b2d00a3893636561a15f | <div class="container col-md-12" style="margin-left: 15em; margin-top: 2em;">
<div id="response"></div>
<div class="btn btn-info" id="add">Add Trip</div>
<div class="panel-body">
<div class="table-responsive">
<table class="table table-striped table-hover" id="trip">
<thead class="cf">
... | PHP | application/views/admin/trip.php | shaileshms/Crankhouse | mit | 2,918 | 90 | codeparrot/github-code |
94f755aca03f9a33052863f49ea4506e3212d1a7e6565a389b0aae464a83ec70 | <?php
/**
* Applog model config -- for viewing log entries
*
* @link https://github.com/ddpro/admin/blob/master/docs/model-configuration.md
*/
return [
'title' => 'Log',
'single' => 'log',
'model' => '\Delatbabel\Applog\Models\Applog',
'server_side' => true,
/**
* The display columns... | PHP | config/administrator/applog.php | ddpro/example | mit | 3,563 | 148 | codeparrot/github-code |
3e8851895e4bfc9916ad21f498c4cb37d75f321d5037032cd26b03f138cf98fe | /****
*@PoloShen
*Title:D
*/
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
const int maxN = 1010;
void solve(){
int n, m, max = 0;
int num1[maxN], num2[maxN];
int dp[maxN];
scanf("%d",&n);
for (int i = 0; i < n; i++) scanf("%d",&num1[i]);
scanf("%d",&m);
... | C++ | UVa/02. Contest Volumes (10000...)/Volume 124 - 126 (12400 - 12699)/uva12511.cpp | polossk/CodeArchive | mit | 803 | 38 | codeparrot/github-code |
f23a2d1cb3f83b5f8a8039b16b37642169ef89aea79419d0813173c5ad0161b2 | //
// ExtraUtilities decompiled and fixed by Robotia https://github.com/Robotia
//
package com.rwtema.extrautils.modintegration;
import net.minecraftforge.common.MinecraftForge;
import java.util.ListIterator;
import tconstruct.library.crafting.LiquidCasting;
import tconstruct.library.crafting.ToolBuilder;
import tc... | Java | ExtraUtilitiesBuilder/src/main/java/com/rwtema/extrautils/modintegration/TConIntegration.java | Robotia/ExtraUtilities | mit | 13,905 | 290 | codeparrot/github-code |
0bc5e2f3c79b897610ea670cbc7784b5a0dffc66c5f4b6d64415142393b81830 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
using ToDoTool.Models;
namespace ToDoTool.Helpers
{
public class PasswordHasher
{
public static string GetPasswordHashFromPassword(string password)
... | C# | ToDoTool/ToDoTool/Helpers/PasswordHasher.cs | GibbTeam/Kleinprojekt | mit | 1,347 | 43 | codeparrot/github-code |
3881afeb33174f122e660028c12ebe3ab9927c29513200fda1da3a69aad62059 | package com.nibado.example.cassandrait;
import com.datastax.driver.core.Cluster;
import com.datastax.driver.core.Session;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Config... | Java | src/main/java/com/nibado/example/cassandrait/ApplicationConfiguration.java | nielsutrecht/cassandra-it | mit | 1,222 | 41 | codeparrot/github-code |
54539278115eb3f6a1bc14c16d84903f23504402e4adac5f2a2a2ee19c34a33c | #ifndef OBJECTS_I_AREA_DATA_H
#define OBJECTS_I_AREA_DATA_H
#include "../DragonBones.h"
NAME_SPACE_DRAGON_BONES_BEGIN
class IAreaData
{
public:
enum class AreaType {AT_ELLIPSE, AT_RECTANGLE};
public:
AreaType areaType;
String name;
public:
IAreaData() {}
IAreaData(const IAreaData ©D... | C | dragonbones/objects/IAreaData.h | legend18/dragonbone_cocos2dx-3.x | mit | 652 | 34 | codeparrot/github-code |
07a5de1f1cd162a9fba09331b5c9e4aa85131de9ec0cb98c8e19a160ff0e5091 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- 選舉資料查詢 -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>中選會選舉資料庫網站</title>
<link rel="stylesheet" type="text/css" href="http://db.cec.gov.tw/votehist.css">
<script typ... | HTML | mirror/prvCode_07/cityCode_000-areaCode_05-deptCode_019/voteCode_20120101T1A2-qryType_ctks-prvCode_03-cityCode_000-areaCode_05-deptCode_019-liCode_0388.html | g0v/projectV | mit | 5,435 | 174 | codeparrot/github-code |
39fe135c882757d79c5c93e5d3dad78e38eefdf9681101750e6e4500a5272ab9 | import { Component, OnInit, ViewChild } from '@angular/core';
import { DataTable, DataTableTranslations, DataTableResource } from 'angular-4-data-table';
import { cars } from './contact-data-table-data';
import { FormsModule } from '@angular/forms';
@Component({
selector: 'contact-list',
templateUrl: './contact-li... | TypeScript | src/app/contacts/contact-list/contact-list.component.ts | cncgate/Ricciardo | mit | 1,043 | 47 | codeparrot/github-code |
60e26b7d74d6a057b5dcd9c59c00059dc0d5cc712cbf058ce11e301be3f7c08f | package org.cthul.matchers.fluent.gen.iface;
import java.util.Collection;
import java.util.List;
import org.cthul.matchers.ContainsPattern;
import org.hamcrest.Matcher;
import org.hamcrest.core.Is;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.cthul.matchers.fluent... | Java | matcher-fluent-gen/src/test/java/org/cthul/matchers/fluent/gen/iface/FluentMethodCollectorTest.java | derari/cthul | mit | 4,185 | 126 | codeparrot/github-code |
c11aa78d73544f10ea6eec0f153bb7c0069706a5a22ed8d61fc68de2c2317b43 | package com.nutricampus.app.adapters;
import android.app.Activity;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.nutricampus.app.R;
import com.nutricampus.app.entities.Dieta;
import java.util.List;
public class ListaDietaAdapt... | Java | app/src/main/java/com/nutricampus/app/adapters/ListaDietaAdapter.java | NutriCampus/NutriCampus | mit | 1,706 | 62 | codeparrot/github-code |
227bc5c7f12b04c8a0a46d561f46c70d053bd1866e92d897ce0bc1d4038e224d | 'use strict';
var config = require('config'),
Container = require('lazy-dependable').Container,
inherits = require('util').inherits,
Q = require('q');
require('./json.js');
function Meanio() {
Container.call(this);
if (this.active) return;
Meanio.Singleton = this;
this.version = require('../package').... | JavaScript | lib/mean.js | linnovate/meanio | mit | 1,477 | 64 | codeparrot/github-code |
ea754ed479605d5b5581b97b5019c65551ddb4f681235e95e851530f8d71444e | '''
PathwayGenie (c) University of Manchester 2017
PathwayGenie is licensed under the MIT License.
To view a copy of this license, visit <http://opensource.org/licenses/MIT/>.
@author: neilswainston
'''
from threading import Thread
import json
import time
from ice.ice import IceThread
from parts_genie.parts import... | Python | pathway_genie/pathway.py | synbiochem/PathwayGenie | mit | 2,745 | 102 | codeparrot/github-code |
3413426c18cf831ae6c1c9a26a1b9e04674bf7934fba9b1f1314e00265d32e86 | <head>
{% if site.google_tag_manager %}
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+d... | HTML | _includes/head.html | Tylerflick/tylerflick.github.io | mit | 6,483 | 106 | codeparrot/github-code |
ca7c67eab8dcf728b4a154566453ad8a9fc08f3573ace19e82d2776968083a45 | import {default as Config} from '../config'
const config = new Config({key: 'hideFlows'})
export default {
config: {
list: [
'marketing',
'management'
]
},
getName: function () {
return this.length && $(this).attr("href").split("/")[4];
},
documentLoaded: function () {
if (!(config.value.list || []).... | JavaScript | src/modules/hideFlows.js | extempl/HES | mit | 971 | 41 | codeparrot/github-code |
85a23cabaf6daa533c349a88019c04f51c47fec7669f3ec963d7bf15a6132e91 |
#if !defined(BOOST_PP_IS_ITERATING)
///// header body
#ifndef BOOST_MPL_ARG_HPP_INCLUDED
#define BOOST_MPL_ARG_HPP_INCLUDED
// Copyright Peter Dimov 2001-2002
// Copyright Aleksey Gurtovoy 2001-2004
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.t... | C++ | boost/boost_1_56_0/mpl/arg.hpp | zxjcarrot/reckless | mit | 3,473 | 132 | codeparrot/github-code |
404f3ebb883fcf936fe4c558057ee6725645d752b877a3a24f3d6979b2bac584 | angular.module('hextechhuntClientApp')
.service('HextechHuntService', function($http, $q, ProxyHostResolverService) {
var baseProxyUrl = ProxyHostResolverService.getBaseProxyUrl(); // Get the URL for the proxy server
// Array of available regions
var availableRegions = [
{id: 'NA', name: 'NA'},
... | JavaScript | hextechhunt-client/js/services/HextechHuntService.js | abaran30/hextechhunt | mit | 2,678 | 88 | codeparrot/github-code |
bce695fc206dc1e2a733ecda5567ca2da2b4b10b2dc046a0dd48a85904399d79 | var express = require('express');
var router = express.Router();
var SparqlClient = require('sparql-client');
var async = require('async');
var commons = require('./helpers/commons').commons;
var helperCommons = new commons();
var fs = require("fs")
router.get('/:uri', function(req, res, next){
var endpoint = req.db... | JavaScript | routes/display_demand.js | judie90/dsaas | mit | 4,328 | 125 | codeparrot/github-code |
dcd56435a2f60e9a46924cb0140bc2653fd889ac1dc48a89f3874b1c225c7f0c | <?php
namespace TestBundle\Command;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use TestBun... | PHP | src/TestBundle/Command/ProductCommand.php | LoicLT/lloic-xml-products | mit | 3,412 | 115 | codeparrot/github-code |
e678e0a486dc1797109ea2d42b7961705aa807c9e437bb92691300350ed3482c |
function drawCategories(whichFocus)
{
var Links = new Array();
Links[0] = "About Me";
Links[1] = "Research";
Links[2] = "Publications";
Links[3] = "Teaching";
Links[4] = "Gallery";
Links[5] = "Contact";
Links[6] = "Download CV";
var LinkAddresses = new Array();
LinkAddresses[0... | JavaScript | example/scripts/pubscripts/menubar.js | eackermann/BibSON | mit | 1,392 | 52 | codeparrot/github-code |
db0b5a1aa08d116f9d73c14adba6501ceb99bf0c8eddea5686d25dddf81ebe81 | # Restaurant Inventory Planner
# Refactored and revised by
# Jeremy Powell
# Jeff George
# We spent 3 hours on this challenge.
=begin
# LEGACY CODE #################################################################
def serving_size_calc(item_to_make, order_quantity)
library = {"cookie" => 1, "cake" => 5,... | Ruby | week-6/gps.rb | webdevjeffus/phase-0 | mit | 7,398 | 187 | codeparrot/github-code |
71686992a19a3220cfed40bd73ef33241acd6fbccc2def1c508bca35d3a568ff |
var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var routes = require('./routes/index');
var app = express();
// view engine setup
app.set('views... | JavaScript | app.js | Friss/RITGramAPI | mit | 1,378 | 60 | codeparrot/github-code |
12a48c649102a23e992706ea91e843cfb467d451e83f88a466c42640c709f465 | <!DOCTYPE html>
<html data-require="math">
<head>
<title> Recursion Tracing Exercise: mystrey return</title>
<script src="../../lib/jquery.min.js"></script>
<script src="../../lib/jquery-ui.min.js"></script>
<script src="../../ODSAkhan-exercises/khan-exercise.js"></script>
<script src="../../lib/co... | HTML | Exercises/RecurTutor/rectFIBmystrynumb.html | hosamshahin/OpenDSA | mit | 2,300 | 77 | codeparrot/github-code |
a6f0717a55202fef6a7336947a329e60ff0e92ca41da8043ee4e9f9af769b1b5 | <!-- Michael Koboldt, William D Minard, Daniel J Hart, Kenny Clark, Matthew Pokoik
QuickScript
4-30-15 -->
<?php include 'exec.php';
//if user is not logged in, send them to the index page
if( $_SESSION[ 'username' ] == NULL )
{
header( 'Location: index.php' );
} //end if
//grab username information from ses... | PHP | credits.php | mjk8v2/quickScript | mit | 5,021 | 208 | codeparrot/github-code |
1a4d5e356da9cc2c18817bd1ed09f35de45dea2c3babd1079f6ed825ef25ad2a | <?php
namespace iamsalnikov\ConfigBuilder\Collections;
use iamsalnikov\ConfigBuilder\Interfaces\PlaceholderProcessor;
/**
* Class PlaceholderProcessorCollection
* @package iamsalnikov\ConfigBuilder\Collections
*/
class PlaceholderProcessorCollection
{
/**
* @var PlaceholderProcessor[]
*/
protect... | PHP | src/Collections/PlaceholderProcessorCollection.php | iamsalnikov/config-builder | mit | 1,151 | 68 | codeparrot/github-code |
dc9d567c4cde20d71c40747f54b4a0924af7949cf3efe4204b650dbc8f457b7d | require 'sslyze/xml/plugin'
require 'sslyze/xml/types'
module SSLyze
class XML
class Certinfo < Plugin
class CertificateValidation
#
# Represents the `<hostnameValidation>` XML element.
#
# @since 1.0.0
#
class HostnameValidation
include Types
... | Ruby | lib/sslyze/xml/certinfo/certificate_validation/hostname_validation.rb | trailofbits/ruby-sslyze | mit | 1,198 | 55 | codeparrot/github-code |
358b36d9e191684b3361a140c0076efd2a3c4f651281592f435a75bae84d2da9 | 'use strict';
let assert = require('chai').assert;
let Bluebird = require('bluebird');
let amorphic = require('../../index.js');
let axios = require('axios');
let fs = require('fs');
let path = require('path');
describe('Run amorphic as a deamon', function() {
this.timeout(5000);
before(function(done) {
... | JavaScript | test/daemon/daemon.js | hackerrdave/amorphic | mit | 3,368 | 80 | codeparrot/github-code |
038872a6e798d00dba8132b4112cfec36a1fabc613628b68ee9bb0ef0939cc6f | using Orbital7.Extensions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace System
{
public static class SerializableTripleExtensions
{
public static T2 GetItem2<T1, T2, T3>(
this List<SerializableTriple<T1, T2, T3>> list,
... | C# | src/Orbital7.Extensions/SerializableTripleExtensions.cs | orbital7/orbital7.extensions | mit | 1,605 | 48 | codeparrot/github-code |
692e8e5c873c35ec3cb32fe21db56fd6d9633aa566bbd993ac1cb8fd1b9f69c5 | <html>
<head>
<title>SNAKE AI client</title>
<script src="/socket.io/socket.io.js"></script>
<script type="text/javascript">
/**
* webclient for SNAKE AI testbench
*/
var canvas;
var ctx;
var statusTF;
var socket;
/**
* entry point
*/
var start = function() {
canvas = document.getElementById('canvas');
ctx = ... | HTML | index.html | cloudarts/snake-server | mit | 3,417 | 187 | codeparrot/github-code |
dcf1af39f6da8d276a01e723bd899059ae57c71cd68aff17d6d868e67d62d8a8 | <template name="marketplace">
<section class="rc-apps-section rc-apps-marketplace">
{{#header sectionName="Marketplace" hideHelp=true fixedHeight=true fullpage=true}}
{{#unless isLoggedInCloud}}
<button class="rc-button rc-button--small rc-button--primary rc-button--outline js-cloud-login" data-button="login">... | HTML | app/apps/client/admin/marketplace.html | subesokun/Rocket.Chat | mit | 5,103 | 146 | codeparrot/github-code |
35ec506300c8d8ff1dedfccfa17bea49a0d3104cce8bf4d693e9c95562c3fd95 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class project extends Model
{
use SoftDeletes;
protected $fillable = [
'name', 'description',
];
protected $dates = ['deleted_at'];
protected static function boot()
{
p... | PHP | app/project.php | draked2/productResearcher | mit | 1,341 | 47 | codeparrot/github-code |
169a6b04d02df5851fa05381fc05a85c21491ea41e676434134b4dca5b588fd4 | <!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<!-- BASICS... | HTML | try.html | datajoyapp/datajoy | mit | 20,453 | 309 | codeparrot/github-code |
be4eefdf8c7c042b809777648ff869463711ffefaf0c7ceb22693e9196e87051 | #pragma once
#include "string.hpp"
#include "array.hpp"
namespace z
{
namespace core
{
/**
* \brief Split a string into an array of strings according to a specified delimiter.
*
* \param input The string to split into an array.
* \param delim The delimiter that separates items.
*
* \return A null arra... | C++ | z/core/split.hpp | ZacharyWesterman/zLibraries | mit | 901 | 42 | codeparrot/github-code |
904491d1b6e64e27f0cad5aac203e5cf7fe7de6610342936f171d10680e3777c | using System;
using System.Collections.Generic;
using UnityEditor.Experimental.VFX;
using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.Experimental.VFX;
namespace UnityEditor.VFX
{
[VFXInfo]
class VFXStaticMeshOutput : VFXContext, IVFXSubRenderer
{
[VFXSetting]
private Shader... | C# | com.unity.visualeffectgraph/Editor/Models/Contexts/Implementations/VFXStaticMeshOutput.cs | Unity-Technologies/ScriptableRenderLoop | mit | 7,710 | 177 | codeparrot/github-code |
ec73889fd79c786c115c21003f263f1e846b138ae73570ea5f8af2897c21944d | package org.eck.view;
import java.io.IOException;
import javafx.application.Application;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.BorderPane;
import jav... | Java | eclipse_based/address/src/org/eck/view/MainApp.java | erickzanardo/javafxstudy | mit | 3,885 | 134 | codeparrot/github-code |
58be2164c297031cbfb1d181be04c1e44402c5f339a24e8a919f91471eada66e | <?php
/*!
* Medoo database framework
* http://medoo.in
* Version 1.0.2
*
* Copyright 2016, Angel Lai
* Released under the MIT license
*/
class medoo
{
// General
protected $database_type;
protected $charset;
protected $database_name;
// For MySQL, MariaDB, MSSQL, Sybase, PostgreSQL, Oracle
protected $se... | PHP | medoo.php | tytymnty/Medoo | mit | 21,474 | 994 | codeparrot/github-code |
7bbbfd7d965a14132196e277ee7d3280c3a5ad852b301cf77448dc8f34e3fea4 | package it.emit.jdbc;
import java.sql.Date;
public class Attore {
private int id;
private String nome;
private String cognome;
private Date ultimoAggiornamento;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getNome() {
return nome;
}... | Java | Sakila/src/it/emit/jdbc/Attore.java | andrea-colleoni/EmitJava2k17 | mit | 719 | 40 | codeparrot/github-code |
eaf7f39030b182f7206c26c9ed0822d6bd813dc9d33ed1b0f90a24ea252191b1 | using Discord;
using Discord.Commands;
using NadekoBot.Common;
using NadekoBot.Common.Attributes;
using NadekoBot.Common.Replacements;
using NadekoBot.Core.Common;
using NadekoBot.Core.Modules.Help.Common;
using NadekoBot.Core.Services;
using NadekoBot.Extensions;
using NadekoBot.Modules.Help.Services;
using NadekoBot... | C# | NadekoBot.Core/Modules/Help/Help.cs | gfrewqpoiu/NadekoBot | mit | 11,210 | 267 | codeparrot/github-code |
d8733171ba13d4187c80183827556fe2b9d053146ad6b489b36c508fe3f16228 | <!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="noarchive">
<meta name="description" content="The current volume published for IJEPR Journal.">
<meta name="keywords" content="avestia, publishing, journals, papers, science, renewa... | HTML | _site/current.html | intaset/ijepr | mit | 14,957 | 366 | codeparrot/github-code |
93c561c8e2bf162a55f91f6c5e09e539a76f4a9583abe5cd5ddc6f65c706c325 | #!/usr/bin/env python
import sys
import re
import os
inFilename = sys.argv[1]
if os.path.isfile(inFilename):
namelength = inFilename.rfind(".")
name = inFilename[0:namelength]
exten = inFilename[namelength:]
outFilename = name+"-cachecmp"+exten
print "inFilename:", inFilename
print "outFilename:", outFilename
fpR... | Python | gem5/pyscript/cachecmp.py | bcheung92/Paperproject | mit | 2,915 | 76 | codeparrot/github-code |
dd0370bb59410e52c2ba9c0ce8b4c2219a3153d2dbf250acd486ec139199f595 | #include "GameScene.h"
//#include "FishJoyData.h"
GameScene::GameScene()
{
}
bool GameScene::init()
{
do
{
CC_BREAK_IF(!CCScene::init());
preloadResources();
_menuLayer = MenuLayer::create();
CC_BREAK_IF(!_menuLayer);
CC_SAFE_RETAIN(_menuLayer);
_backgroundLayer = BackgroundLayer::create();
CC_BREAK_... | C++ | Classes/GameScene.cpp | chentongjie/FishingJoy | mit | 5,404 | 182 | codeparrot/github-code |
96b9f48d7cbe0233796de2f1326a0917d4f41abddacd58b217f0ad6a5af4d9ca | package ch.alv.sysinfos.service.internal;
import ch.alv.sysinfos.domain.system.SystemMessage;
import ch.alv.sysinfos.domain.system.SystemMessageState;
import ch.alv.sysinfos.domain.system.SystemMessageStatePeriod;
import ch.alv.sysinfos.domain.system.SystemState;
import ch.alv.sysinfos.repository.SystemMessageReposito... | Java | src/main/java/ch/alv/sysinfos/service/internal/DefaultSystemMessageService.java | alv-ch/alv-ch-sysinfos.api | mit | 4,819 | 108 | codeparrot/github-code |
4a6f7e4e9c2ba550c4e0ad141b9a876b3d39205b7f4aa8186d461f82f1041903 | // Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "rpcprotocol.h"
#include "util.h"
#include <stdint.h>
#include <boost/algor... | C++ | src/rpcprotocol.cpp | boxycoin/boxycoin | mit | 8,215 | 267 | codeparrot/github-code |
81a7e6670d6a07997e4febcdc112dd6eb6697cdc49ae411a3b74b85643be0994 | <!DOCTYPE html>
<html lang="ko-kr">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="generator" content="Hugo 0.15" />
<title>#Ludens</title>
<meta property=... | HTML | tags/open-source/index.html | ludens/ludens.kr | mit | 11,021 | 243 | codeparrot/github-code |
fc8a05017330a82dbff51ac7971989b2dd91278baa9aafd745c8f1edc0c86eef | <?php
namespace Yeebase\Graylog\Error;
/**
* This file is part of the Yeebase.Readiness package.
*
* (c) 2018 yeebase media GmbH
*
* This package is Open Source Software. For the full copyright and license
* information, please view the LICENSE file which was distributed with this
* source code.
*/
use Neos\F... | PHP | Classes/Error/GraylogExceptionHandler.php | yeebase/Yeebase.Graylog | mit | 2,134 | 74 | codeparrot/github-code |
e0bd9c927bef60a99796d7e0c17fdb8d5b2f86668ff12a40ea5e97871fb4f5fc | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_MAIN_H
#define BITCOIN_MAIN_H
#if defined(HAVE_CONFIG_H)
#include "co... | C | src/main.h | wargo32/PLNcoin | mit | 23,306 | 579 | codeparrot/github-code |
61ae3415baaf5a0844329fe56a9322ec996fdf1ca3eb395166733b72adef3d03 |
pub struct Allergies(u32);
impl Allergies {
pub fn new(x: u32) -> Allergies {
Allergies(x)
}
pub fn is_allergic_to(&self, allergen: &Allergen) -> bool {
allergen.value() & self.0 != 0
}
pub fn allergies(&self) -> Vec<Allergen> {
Allergen::all()
.into_iter()
... | Rust | rust/allergies/src/lib.rs | evolix1/exercism-pb | mit | 1,079 | 54 | codeparrot/github-code |
2876403fa93787ad505a66792dbf08d7b5608eaa0a9ad70f9a6ad1124ccdbb22 | module Jaspion
module Kilza
class Objc
class Property < Jaspion::Kilza::Property
def initialize(name, type, array, key = '')
original_name = name
unless RESERVED_WORDS.index(name.downcase).nil?
name = RESERVED_PROPERTY_PREFIX + name
end
super(name... | Ruby | lib/jaspion/kilza/language/objc/property.rb | Jaspion/Kilza | mit | 1,025 | 39 | codeparrot/github-code |
010af829251d92fef58f240191fcfde81c4392902b7b0ae73ff033c2221d81cd | <?php
namespace Chamilo\Core\Repository\ContentObject\LearningPath\Display\Component;
use Chamilo\Libraries\Architecture\Exceptions\NoObjectSelectedException;
use Chamilo\Libraries\Architecture\Exceptions\NotAllowedException;
use Chamilo\Libraries\Platform\Translation;
use Chamilo\Libraries\Utilities\Utilities;
/**
... | PHP | src/Chamilo/Core/Repository/ContentObject/LearningPath/Display/Component/DeleteTreeNodeAttemptComponent.php | cosnicsTHLU/cosnics | mit | 2,169 | 74 | codeparrot/github-code |
cd41be9444b06c6c553447a881a193d0695e53a480e887472de2c852724af3eb | <script type="text/javascript">
function loc(id, ten, start, length) {
var url, dta;
url="<?php echo base_url(); ?>home/getdanhmuc?t=" + Math.random();
dta = {
"ma" : id,
"start" : start,
"length" : length
};
console.log(dta);
$.pos... | PHP | application/views/user/danhmuc_view.php | ngovanbon16/dulichboss | mit | 7,003 | 161 | codeparrot/github-code |
ed541d387411e32167e2e993072cc89d1fed2097780ade9fd2be26012b77c9e8 | <!doctype html>
<html class="pl">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>RCDOC Style Guide</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href='http://font... | HTML | public/patterns/01-molecules-02-blocks-04-block-headline/01-molecules-02-blocks-04-block-headline.html | m-e-h/doc-styleguide | mit | 3,606 | 110 | codeparrot/github-code |
213e896fa80f3f5d62bd22977de7176b74a83018740213f63b4106957b026ea2 | <HTML><HEAD>
<TITLE>Review for Dead Man Walking (1995)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0112818">Dead Man Walking (1995)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?Andre... | HTML | data science/machine_learning_for_the_web/chapter_4/movie/4691.html | xianjunzhengbackup/code | mit | 5,759 | 90 | codeparrot/github-code |
92e15f832188efbe935c73011c84451d755f0897ec286b0f5235f50887e2bff5 | /*
Theme Name: OnePress
Theme URI: https://www.famethemes.com/themes/onepress/
Author: FameThemes
Author URI: http://www.famethemes.com
Description: OnePress is an outstanding creative and flexible WordPress one page theme well suited for business website, portfolio, digital agency, product showcase, freelancers a... | CSS | wordpress/wp-content/themes/onepress/style.css | mt-takao/masana-oya-grad-pj | mit | 81,087 | 4,098 | codeparrot/github-code |
8ed0677ceacfca7454632b9871fc18ac833405395d098de3a729426cba52cb8e | require('dotenv').config();
process.env = {
AZURE_STORAGE_CONTAINER_NAME: 'userupload',
...process.env
};
// Checks for required environment variables.
[
'AZURE_STORAGE_ACCOUNT_KEY',
'AZURE_STORAGE_ACCOUNT_NAME',
'AZURE_STORAGE_CONTAINER_NAME',
'MICROSOFT_APP_ID',
'MICROSOFT_APP_PASSWORD'
].forEach(name... | JavaScript | samples/07.advanced-web-chat-apps/a.upload-to-azure-storage/bot/src/index.js | billba/botchat | mit | 888 | 37 | codeparrot/github-code |
0dc3a0fa78938502cf62ff31fa087855b7a9a866b99fe9e5c4a44b5ad5cebe3d | "use strict";
class MetadataUtils {
static getRelatedOneToManyConfig(manyToOnePropertyName, entityMetadata) {
for (let oneToManyProperty in entityMetadata.oneToManyMap) {
let oneToManyConfig = entityMetadata.oneToManyMap[oneToManyProperty];
if (oneToManyConfig.mappedBy === manyToOneP... | JavaScript | lib/core/metadata/MetadataUtils.js | russoturisto/PHibernate | mit | 3,027 | 82 | codeparrot/github-code |
208bd391598d6e5fccc5321c5fc1c51913178c3a9110a534568bebe09e841c89 | // Generated on 2015-07-24 using generator-jekyllrb 1.4.1
'use strict';
// Directory reference:
// css: css
// sass: _scss
// javascript: js
// coffeescript: _src
// images: img
// fonts: fonts
module.exports = function (grunt) {
// Show elapsed time after tasks run
require('time-grunt')(grunt);
// ... | JavaScript | Gruntfile.js | louderthan10/conservative-base | mit | 9,973 | 442 | codeparrot/github-code |
c249ef25b4cd1be96b7cab81405f349fe1ab64988c0b48b59615608e72d62006 | /*
* Copyright 2007-2008 (c) Erik Sjodin, eriksjodin.net
*
* Devloped at: The Interactive Institutet / Art and Technology,
* OF Lab / Ars Electronica
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal... | C++ | libs/openFrameworks/communication/ofArduino.cpp | HellicarAndLewis/ProjectDonk | mit | 17,143 | 676 | codeparrot/github-code |
1a07d4a79b69052dcba6a2ab563b48694c973f4d58aae7b952147b2063e400d9 | import { BuildContext, Diagnostic, PrintLine } from '../util/interfaces';
import { Logger } from './logger';
import { highlight } from '../highlight/highlight';
import { splitLineBreaks } from '../util/helpers';
import * as ts from 'typescript';
/**
* Ok, so formatting overkill, we know. But whatever, it makes for g... | TypeScript | src/logger/logger-typescript.ts | driftyco/ionic-app-scripts | mit | 3,450 | 113 | codeparrot/github-code |
be02d5955e484ed977ab08457888d71f36f14ea29c4dc2496b861c68e56bd90f | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Vibrant.Tsdb.ConsoleApp.Entries;
namespace Vibrant.Tsdb.ConsoleApp.Model
{
public class TypedKey : ITypedKey<BasicKey, MeasureType>
{
private static readonly Random Rng = new Random();
private stat... | C# | test/Vibrant.Tsdb.ConsoleApp/Model/TypedKey.cs | MikaelGRA/Tsdb | mit | 1,164 | 45 | codeparrot/github-code |
ec4462673f5b5e75086c1860a67dd04d1b0306e7e5d6009d2fe0c8f923e0e00e | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>31.5. pkgutil — Package extension utility — P... | HTML | resources/python-doc/library/pkgutil.html | ShiKaiWi/python-practice | mit | 26,974 | 331 | codeparrot/github-code |
38f84c639ae5e239ad74400b004881db7be034ea65eb0848cb7b4ec9681ce4bf | package matgm50.twarden.block;
import cpw.mods.fml.common.registry.GameRegistry;
import matgm50.twarden.block.tile.TileWitor;
import matgm50.twarden.lib.BlockLib;
import net.minecraft.block.Block;
/**
* Created by MasterAbdoTGM50 on 5/22/2014.
*/
public class ModBlocks {
public static Block blockExubitura = n... | Java | src/main/java/matgm50/twarden/block/ModBlocks.java | MasterAbdoTGM50/ThaumicWarden | mit | 1,508 | 37 | codeparrot/github-code |
0e947f17da31f215694fefaee4161dc0b7beb13ec409ca2ad4a5eb177419b020 |
const sl = require('..');
const list = [
{ id: 1, name: 'Adam', age: 800, gender: 'man' },
{ id: 2, name: 'Eve', age: 600, gender: 'woman' },
{ id: 3, name: 'Abel', age: 500, gender: 'man' },
{ id: 4, name: 'Caine', age: 400, gender: 'man' }
];
const list2 = [
{ id: 1, name: 'Adam', ag... | JavaScript | test/union.js | ajlopez/SimpleLists | mit | 1,313 | 43 | codeparrot/github-code |
5dc1a824de2371c5d24d7ae9b09d31daf80bbfee86ce6b5a63915b27385a5e9c | 'use strict'
require('extensions')
var GET = require('get-then')
var wgs = require('./data/decision-makers.json')
var readmeParsers = {
'Technical Steering Committee': (readme) => /### Current Members[^#]+##/i.exec(readme)[0],
'Core Technical Committee': (readme) => /### CTC \(Core Technical Committee\)[^#]+##/i.... | JavaScript | decision-makers.js | williamkapke/foundational | mit | 3,443 | 89 | codeparrot/github-code |
94de8a08763bf471286cdbe37fd05e4314911746655d0c07d9762e8788be96aa | /// <binding ProjectOpened='watch' />
"use strict";
var gulp = require("gulp"),
runSequence = require("run-sequence"),
sass = require('gulp-sass'),
notify = require("gulp-notify"),
rimraf = require('rimraf'),
uglify = require('gulp-uglify'),
cssmin = require('gulp-cssmin'),
rename = require... | JavaScript | src/gulpfile.js | RolfVeinoeSorensen/JenkinsBlues | mit | 1,356 | 46 | codeparrot/github-code |
754ff57fcedd47f6d3a9f32d814f94ca4e923d9446179a1c435eaa373a6eebb0 | #pragma once
#include "external/stl.h"
namespace flare {
template <class TGame>
class Engine;
class TimeManager {
public:
TimeManager();
~TimeManager();
inline float GetDeltaTime() const { return m_deltaTime; }
inline float GetUnscaledDeltaTime() const { return m_unscaledDeltaTime; }
in... | C | include/flare/core/timeManager.h | MeTheFlea/flare | mit | 908 | 37 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.