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 |
|---|---|---|---|---|---|---|---|---|
36dabd078a61409d6ee0e3e14a5821d6859eec53d2a79604261dc9df963fd8dc | #!/usr/bin/env python
import csv
import click # pip install click -- assumes version 5.x
@click.command()
@click.option('--incsv', type=click.File(mode='rU', lazy=True), help='input csv (the larger of the csv files)')
@click.option('--subcsv', type=click.File(mode='rU', lazy=True), help='subquery csv (the smaller ... | Python | csvsubquery.py | curtisalexander/csvsubquery | mit | 1,220 | 32 | codeparrot/github-code |
97cef5c6fbd8e3c3571b218d0fe9a98163b894b504b9bd1ebab2e5b4f5ea1b68 | module Surveyor
module Models
module DependencyConditionMethods
def self.included(base)
# Associations
base.send :belongs_to, :answer
base.send :belongs_to, :dependency
base.send :belongs_to, :dependent_question, :foreign_key => :question_id, :class_name => :question
... | Ruby | lib/surveyor/models/dependency_condition_methods.rb | tcw48/surveyor_FriendCompare | mit | 2,998 | 77 | codeparrot/github-code |
aeeed68df430c2819847b9ea3ffa6a1e7fca6c2cd2f502c7c74571a8c8d2c4df | /*
* The MIT License (MIT)
*
* Copyright (c) 2014. Gerardo Cortés Oquendo
*
* 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... | Java | src/main/java/chamber/n03/Chamber03.java | gerardo-cortes/TestChambers | mit | 1,923 | 62 | codeparrot/github-code |
93153c976d7fc62ed3dc027496305eb8e3127d507986a681f07c561034b16909 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title></title>
<script type="application/javascript">
function draw() {
var img = new Image();
img.onload = function() {
var scaleX = width / img.width;
var scaleY = height / img.height
var fitScale = Math.min(scaleX, ... | HTML | scratch/08-show-input-img.html | binderclip/dsxhm | mit | 1,615 | 61 | codeparrot/github-code |
1083ec005291ebff8a7f7a7fbae0aa39f5c3841c3e9a71f3a96fe75c650efafd | using System;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Azure.Devices;
using Newtonsoft.Json;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Blob;
namespace DeviceControlConsole
{
class Program
{
static string _storageConnectionString = System.Configu... | C# | VendingMachines/DeviceControlConsole/Program.cs | SaschaDittmann/bigdata-demos | mit | 3,970 | 116 | codeparrot/github-code |
1f6cd7b06817327d045553b0fc938fb3b97b4b10895af0ade5b6aee0629ef725 | //c++ network author : liqi
//Nangjing University of Posts and Telecommunications
//date 2017.5.21,20:27
#ifndef NETWORK_H
#define NETWORK_H
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include <algorithm>
#include <stdlib.h>
#include <memory.h>
#include <fstream>
#include ... | C | src/network.h | AlphaQi/MTCNN-light | mit | 2,102 | 45 | codeparrot/github-code |
48a99dec41fcd045b50492a1e413d2d08d1e08bdde1a4b32e85a0489329db7b4 | -- | Functions for working with Jalaali calendar system.
-- This library mimics the API of "Data.Time.Calendar.Gregorian".
module Data.Time.Calendar.Jalaali
( isJalaaliLeapYear
, toJalaali
, fromJalaali
, fromJalaaliValid
, jalaaliMonthLength
, showJalaali
, addJalaaliMonthsClip
, addJalaaliMonthsRollOv... | Haskell | src/Data/Time/Calendar/Jalaali.hs | jalaali/jalaali-hs | mit | 10,023 | 297 | codeparrot/github-code |
07bd41e45d3d529e80d3e6430ec3686a2e743edd7df621843b330289d5744c01 | require 'active_record/log_subscriber'
module ActiveRecordProfiler
class LogSubscriber < ActiveRecord::LogSubscriber
CACHE_PAYLOAD_NAME = 'CACHE'
def sql(event)
start_time = Time.now.to_f
payload = event.payload
return if payload[:name] == CACHE_PAYLOAD_NAME
duration = event.duratio... | Ruby | lib/active-record-profiler/log_subscriber.rb | kindjar/active_record_profiler | mit | 1,156 | 34 | codeparrot/github-code |
ff6fbe323555c5daaa486abe9be3e4e68ecedac81c35ca5545e2ee7bf5a226f1 | /*
Control Panel Applet for the ImDisk Virtual Disk Driver for
Windows NT/2000/XP.
Copyright (C) 2007-2015 Olof Lagerkvist.
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
restri... | C++ | windows/tools/imdisk/cpl/imdisk.cpp | nnaabbcc/exercise | mit | 76,295 | 2,401 | codeparrot/github-code |
aaa4e7c6f6b24ec620d847615eef44bece06796ce771b64f2d79e807d0579322 | module Koality
module Runner
class RailsBestPractices
attr_reader :output_file, :rbp_options
def initialize(options)
require 'rails_best_practices'
@output_file = options.output_file(:rails_bp_error_file)
@rbp_options = translate_options(options)
end
def run
... | Ruby | lib/koality/runner/rails_best_practices.rb | relevance/koality | mit | 995 | 45 | codeparrot/github-code |
1436238f01c06b5db07a1f7e4807e985bd81ba338871e8dcd04916609a6d4d88 | // Copyright 2011 Google Inc. All Rights Reserved.
//
// Use of this source code is governed by a BSD-style license
// that can be found in the COPYING file in the root of the source
// tree. An additional intellectual property rights grant can be found
// in the file PATENTS. All contributing project authors may
// be... | C | src/enc/cost_enc.c | xxiongb/libwebp | mit | 15,238 | 343 | codeparrot/github-code |
c3397041b6242f5f8a875c91a7f1707cf28e9965dc232bd1ea7bd006718b46de | <!DOCTYPE html>
<html lang="en">
<head><title>Edugate | Event Detail</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- LIBRARY FONT-->
<link type="text/css" rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:400,400italic,700,900,... | HTML | edugate/edugate/event-detail.html | wms-code/edu | mit | 41,077 | 522 | codeparrot/github-code |
d62218d76e576be85b05bc16bf61c666a2e9ec6872633abbd96fddb7cc779a61 | using System;
using System.Collections.Generic;
using System.Linq;
namespace Mamesaver.Models.Extensions
{
public static class EnumerableExtensions
{
public static Random Random = new Random();
/// <summary>
/// Determines if a number matches a collection of other numbers
... | C# | Mamesaver/Models/Extensions/EnumerableExtensions.cs | mika76/mamesaver | mit | 930 | 33 | codeparrot/github-code |
9d6f334c40493a43459988158c756c6b405b54220e678b839b0dedc51feffa93 | // Copyright (C) 2017 Jérôme Leclercq
// This file is part of the "Nazara Engine - Lua scripting module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#pragma once
#ifndef NAZARA_LUA_HPP
#define NAZARA_LUA_HPP
#include <Nazara/Prerequesites.hpp>
#include <Nazara/Core/Initializer.hpp>
... | C++ | extlibs/Nazara/include/Nazara/Lua/Lua.hpp | Ardakaniz/NzPacman | mit | 635 | 34 | codeparrot/github-code |
0595af45f95e09ce860ed15cc5cf07f05a1e3299da679514f48e3cc7f272b28c | <TS language="hr" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Desni klik za uređivanje adresa i oznaka</translation>
</message>
<message>
<source>Create a new address</source>
<translat... | TypeScript | src/qt/locale/bitcoin_hr.ts | rkarpuzov/Aurumcoin-0.12 | mit | 64,657 | 1,899 | codeparrot/github-code |
dd5ce0303c9a5793936728f820e72fe89db9b724c3c84ff167bdd843cd3a8558 | <?php
/*
* This File is part of the App\Controller package
*
* (c) iwyg <mail@thomas-appel.com>
*
* For full copyright and license information, please refer to the LICENSE file
* that was distributed with this package.
*/
namespace App\Controller;
use Lucid\Template\EngineInterface as View;
use Psr\Http\Messa... | PHP | app/Controller/ErrorController.php | iwyg/jmg-example | mit | 893 | 40 | codeparrot/github-code |
a88c99e31267cfc74b646ea89944c604c18bf5f88c86cbbe7d015e51c901de73 | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | C++ | src/Dependencies/agg-2.4/src/agg_gsv_text.cpp | dotMorten/AntiGrainRT | mit | 33,014 | 677 | codeparrot/github-code |
076f5d44852a3dabfd33a58b4f5493d7fe5c0da98227000918d6754a3479f4c7 | var crypto = require('crypto');
var mask = require('json-mask');
var jwt = require('jwt-simple');
var _ = require('underscore');
// speed up calls
var toString = Object.prototype.toString;
function Helper(app) {
this._app = app;
// slugs for validation messages
this._slugs = {
required:... | JavaScript | lib/utils/helper.js | selcukfatihsevinc/app.io | mit | 3,429 | 124 | codeparrot/github-code |
e431fdffbed95192dd94e479e80d3d32913049f3f351c4036a4c99066ba14cb6 | '''Generate truth data from a truth_data_file.
A truth_data_file may be produced by a human being, so sometimes
it should be considered truth data. This file provides
utilities for turning a truth_data_file of a certain format into
truth data the harness understands.
'''
from __future__ import absolute_import
import ... | Python | trec_dd/harness/truth_data.py | trec-dd/trec-dd-simulation-harness | mit | 4,988 | 144 | codeparrot/github-code |
b88826bba45fc69ad1ca13ebea2c84a66c938933df86b2f7eb60c60a2134fd37 | /*!
* Author: Abdullah A Almsaeed
* Date: 4 Jan 2014
* Description:
* This file should be included in all pages
!**/
/*
* Global variables. If you change any of these vars, don't forget
* to change the values in the less files!
*/
var left_side_width = 220; //Sidebar width in pixels
$(function() {
"... | JavaScript | static/js/AdminLTE/app.js | stuart-thackray/pi_gpio_web | mit | 49,793 | 1,127 | codeparrot/github-code |
0e2cd8ee802dbe26bf04801c05fee3ebe1f14acc5a7204751658836f71f8c142 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>metacoq-checker: 5 m 14 s</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css"... | HTML | clean/Linux-x86_64-4.11.1-2.0.7/released/8.12.1/metacoq-checker/1.0~beta1+8.12.html | coq-bench/coq-bench.github.io | mit | 11,475 | 208 | codeparrot/github-code |
60a33f26296cf2a9f4a89fb89b300022b97a530394f1165663c6da192285b622 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>interval: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.cs... | HTML | clean/Linux-x86_64-4.06.1-2.0.5/released/8.10.1/interval/3.2.0.html | coq-bench/coq-bench.github.io | mit | 6,991 | 171 | codeparrot/github-code |
b49877c3606905e86924815b1219d50bac1d203b1d630037f185039c08813a4e | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>dpdgraph: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.cs... | HTML | clean/Linux-x86_64-4.09.1-2.0.6/released/8.8.2/dpdgraph/0.6.1.html | coq-bench/coq-bench.github.io | mit | 6,810 | 172 | codeparrot/github-code |
7cbff1169f5ac5f1452144f37a8e09b6a674170ad8c0dd17d2d6ce85b47c7497 | <?php
error_reporting(0);
//include('global-ghum.inc');
//show columns from category
$tableAr = array();
$columnAr = array();
$tableName = $_POST['tables'];
//break;
$private ="";
connect();
$sql = "show columns from $tableName";
$r=mysql_query($sql);
$counter = 0;
while($row=mysql_fetch_array($r))
{
$... | PHP | lib/generate_library.php | mehedijaman/Flash | mit | 7,710 | 291 | codeparrot/github-code |
edbf7be7b44a91f5e0d4a2ee1c49793402eb4665679520cc90f2d087cd7c6bf8 | package com.fanxin.huangfangyi.main.widget.pull;
/**
*
* @author xutao
*
*/
public enum SwipyRefreshLayoutDirection {
TOP(0), // 只有下拉刷新
BOTTOM(1), // 只有加载更多
BOTH(2);// 全都有
private int mValue;
SwipyRefreshLayoutDirection(int value) {
this.mValue = value;
}
public static SwipyRefreshLayoutDirection ge... | Java | ProjWechat/src/com/fanxin/huangfangyi/main/widget/pull/SwipyRefreshLayoutDirection.java | cowthan/Ayo2022 | mit | 522 | 31 | codeparrot/github-code |
0c99e3b2e0d91abc944999cbd10a91d66c39970fde57b7a96ca646add81f652e | <?php
/**
*
*/
namespace Bolbo\BlogBundle\Manager;
use Bolbo\Component\Manager\BaseManager;
use PommProject\Foundation\Where;
/**
* Class PostManager
*
* @package Bolbo\BlogBundle\Manager
*/
class PostManager extends BaseManager
{
/**
* @var string
*/
var $databaseConnexion;
/**
* @... | PHP | src/Bolbo/BlogBundle/Manager/PostManager.php | bolbo/blog-backend | mit | 4,466 | 156 | codeparrot/github-code |
3927707fdc9408cd2996a9d415dfa7cc12ab23d034270e2858559d6bef1f13c0 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Login Page - Photon Admin Panel Theme</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<link rel="shortcut icon" href="http://photonui.orangehilldev.com/css/css_comp... | HTML | lib/assets/css/css_compiled/@{photonImagePath}plugins/elrte/css/css_compiled/css/css_compiled/js/plugins/js/plugins/modernizr.custom.js.html | user-tony/photon-rails | mit | 15,547 | 183 | codeparrot/github-code |
16626531f7e2ff0b71143d3b0fc9c20dfc61fa20e205906c5dc450bf4e5aa8bc | <?php
/**
* This file is part of the Kodazzi Framework.
*
* (c) Jorge Gaitan <info@kodazzi.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Kodazzi\Facade;
use Kodazzi\Container\Service;
abstract class Facade {
... | PHP | src/Kodazzi/Facade/Facade.php | kodazzi/framework | mit | 813 | 33 | codeparrot/github-code |
76ff93f307403555d0d372bebc90630504f704d77b632c397f5b8de0f77436a0 | // Caddybuilder - a friendly tool to build Caddy executable.
// Copyright (c) 2017-2018, Stanislav N. aka pztrn <pztrn at pztrn dot name>
//
// 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... | GO | plugins/restic/resticplugin.go | pztrn/caddybuilder | mit | 3,666 | 108 | codeparrot/github-code |
a6fa5193ed12a63c574642c563e9473955dbeb6243e3adb09ba02305dce4480e | var gulp = require('gulp');
var $ = require('gulp-load-plugins')();
var browserSync = require('browser-sync');
var sass = require('gulp-sass');
var prefix = require('gulp-autoprefixer');
var cp = require('child_process');
var jekyll = process.platform === 'win32' ? 'jekyll.bat' : 'jekyll';
v... | JavaScript | gulpfile.js | alpargabos/pragmaticself | mit | 2,096 | 76 | codeparrot/github-code |
51768774b2c483cd7a9a91a746ee77dd01c515a108873d3c864fe988a2c8624c | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>io: 15 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="styleshe... | HTML | clean/Linux-x86_64-4.05.0-2.0.1/released/8.7.0/io/3.1.0.html | coq-bench/coq-bench.github.io | mit | 7,518 | 174 | codeparrot/github-code |
4b267a5ac07c0a1f3587f18f2caedfc073f2c785374fa8a0ca1122e80ae15a78 | // queue/rabbitmq_amqplib
const amqp = require("amqplib/callback_api");
let channel;
let queue;
let deliveryMode;
exports.register = function () {
this.init_amqp_connection();
}
exports.rabbitmq_queue = function (next, connection) {
const plugin = this;
connection.transaction.message_stream.get_data(str... | JavaScript | plugins/queue/rabbitmq_amqplib.js | smfreegard/Haraka | mit | 2,623 | 76 | codeparrot/github-code |
13895ef7b3b0a960e824d1fca8ff01304748588ad567c8e38db3bd8b055987a0 | package org.ethereum.jsonrpc;
import org.ethereum.core.Block;
import org.ethereum.core.CallTransaction;
import org.ethereum.core.Transaction;
import org.ethereum.vm.LogInfo;
import java.util.Arrays;
import static org.ethereum.jsonrpc.TypeConverter.toJsonHex;
/**
* Created by Anton Nashatyrev on 25.11.2015.
*/
pub... | Java | ethereumj-core/src/main/java/org/ethereum/jsonrpc/JsonRpc.java | caxqueiroz/ethereumj | mit | 13,013 | 323 | codeparrot/github-code |
daaf21e598d1167b7fc5b023e72f9209fe080ee40457c70723245b6d6eb6aaea | #!/usr/bin/env bash
#
# This script helps to access your aws account which is protected
# by MFA with the aws cli. You can set your MFA Device id by
# specifiying the environment variable MFA_DEVICE_ID.
#
# Usage: refreshAwsKey.sh <token>
#
###########################################################################... | Shell | bin/refreshAwsKey.sh | yveskaufmann/.dotfiles | mit | 1,675 | 60 | codeparrot/github-code |
ac7e81c59ca7f968059af20dac124c96ba858c93ee2f763eff601e4991705f42 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkMFCView.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This softwar... | C | IMU/VTK-6.2.0/Examples/GUI/Win32/SampleMFC/vtkMFCView.h | timkrentz/SunTracker | mit | 2,837 | 90 | codeparrot/github-code |
cfd9947f5a474baa9819385b60d2f7b7db82bd7d28adf418c9e0e87083812e1b | /* */
(function(Buffer) {
"use strict";
exports.utf16be = Utf16BECodec;
function Utf16BECodec() {}
Utf16BECodec.prototype.encoder = Utf16BEEncoder;
Utf16BECodec.prototype.decoder = Utf16BEDecoder;
Utf16BECodec.prototype.bomAware = true;
function Utf16BEEncoder() {}
Utf16BEEncoder.prototype.write = func... | JavaScript | jspm_packages/npm/iconv-lite@0.4.11/encodings/utf16.js | ginovski/Team-Caipirinha | mit | 3,714 | 118 | codeparrot/github-code |
20397d3ba7836a00dc46e4705fa81210cc272fb73b35e2d2b4ad5b73dc6ab3c5 | import {constrainRange, loopRange} from '../../../common/number-util';
import {isEmpty} from '../../../misc/type-util';
import {
appendAlphaComponent,
ColorComponents3,
ColorComponents4,
ColorMode,
convertColorMode,
removeAlphaComponent,
} from './color-model';
export interface RgbColorObject {
r: number;
g: n... | TypeScript | packages/core/src/input-binding/color/model/color.ts | cocopon/tweakpane | mit | 3,187 | 146 | codeparrot/github-code |
eebb33faf494a7bc19c307938c89e1bd3f9f12e40d21ab613acb0451b8c9a26c | package db;
import java.sql.*;
/**
* @author Andriamilanto Tompoariniaina - Canno Camille - Info2B
*/
/**
* Classe pour les objets DAO de Commande
*/
public class CommandeDAO {
//Methodes
/**
*Constructeur
*/
public CommandeDAO() {}
/**
*Pour retrouver tous les tuples
*/
public ResultSet findAll() {
Statem... | Java | Second Year (2013-2014)/OMGL7/TP3 - Website in JSP/src/db/CommandeDAO.java | tompo-andri/IUT | mit | 4,297 | 165 | codeparrot/github-code |
5c26cb9a3b07a21c72b061b2c7a032a927313d94ef83c569675330ca89385afe | using System;
using System.IO;
using Mono.Cecil;
using NServiceBus.Persistence.Sql.ScriptBuilder;
class SagaWriter
{
public static void WriteSagaScripts(string scriptPath, ModuleDefinition moduleDefinition, BuildSqlDialect sqlDialect, Action<string, string> logError)
{
var metaDataReader = new AllSagaD... | C# | src/ScriptBuilder/Writers/SagaWriter.cs | NServiceBusSqlPersistence/NServiceBus.SqlPersistence | mit | 1,649 | 42 | codeparrot/github-code |
7db0c837f179db7012332b94b80cbcce59262d48e708140deaa1439d0e36569b | /*
Copyright (c) 2013-2014 Matteo Collina and LevelGraph Contributors
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, mod... | JavaScript | bower_components/levelgraph/lib/writestream.js | kenda/SemaMed-webapp | mit | 2,068 | 71 | codeparrot/github-code |
9d346010baece8890e5b3375789fc33b9b18c97564f0054be269043d1c2d235b | /**
* Sample React Native App
* https://github.com/facebook/react-native
*/
'use strict';
import React, {
AppRegistry,
Component,
StyleSheet,
Text,
View
} from 'react-native';
class BillcrushReactNative extends Component {
render() {
return (
<View style={styles.container}>
<Text style... | JavaScript | index.android.js | ledwards/BillcrushReactNative | mit | 1,046 | 52 | codeparrot/github-code |
00d185a747188e3feba1fd4d669398e04627e91102168d2101e8990cf1bd151f | /**
* REST API wrapper for Meteor
*
* Heavily inspired by eventbrite-node by evenemento
* https://github.com/evenemento/eventbrite-node
*
* @author Mike Joseph <mike@mode3.net>
* @copyright Mike Joseph
* @license MIT
* @see https://github.com/evenemento/eventbrite-node
*/
var url = Npm.require('url'),
qu... | JavaScript | resteasy.js | mikejoseph/meteor-resteasy | mit | 5,616 | 226 | codeparrot/github-code |
eb04928c8f4d7d47d5711be9a38395e4945e15ff55dfb0b20fbce4855f1d7fb5 | PT_NONE = -1;
PT_PLAYER = 1;
PT_MONSTER = 2;
PT_NPC = 4;
PT_NODE = 4;
CObject = class(
function (self, ptr)
self.Address = ptr;
self.Name = "<UNKNOWN>";
self.Id = 0;
self.Type = PT_NONE;
self.X = 0.0;
self.Y = 0.0;
self.Z = 0.0;
if( self.Address ~= 0 and self.Address ~= nil ) then sel... | Lua | classes/object.lua | elverion/rom-bot | mit | 2,902 | 93 | codeparrot/github-code |
2ab16f55d1155b392a4cc3e215a28704070550a9b6a9bd5da9d0daeae2d6c4a0 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>hammer-tactics: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.... | HTML | clean/Linux-x86_64-4.09.1-2.0.6/released/8.15.0/hammer-tactics/1.3.2+8.10.html | coq-bench/coq-bench.github.io | mit | 7,368 | 182 | codeparrot/github-code |
c2cdb9cee34b3f41b85703a1cf7e3563f5754fefc7989f0a8a3dedb0b505f347 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>geocoq-main: 1 h 50 m 🏆</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.7.2/geocoq-main/2.4.0.html | coq-bench/coq-bench.github.io | mit | 75,788 | 645 | codeparrot/github-code |
761c0e0137109222548f2f7827598a8c01c0edb2f7a24df879c652e4de51a974 | <!DOCTYPE html><html>
<head>
<meta name="fb:app_id" content="177460312388993" >
<meta name="og:url" content="http://www.melbournefringe.com.au/fringe-festival/browse/the-hunter" >
<meta name="og:title" content="Melbourne Fringe | The Hunter" >
<meta name="og:description" content="Company 13 presents a ne... | HTML | downloader/source/pages/e30_6.html | thewheat/melbourne-fringe-festival | mit | 35,169 | 789 | codeparrot/github-code |
ce4411a2e763beaa29de5459f90f1b58f2f4e43ffdef06f49d2df56f1c476c7e | //Displaying player information using objects
var boscode = require('boscode');
var getPlayerName = function (playerName) {
return playerName;
};
var getPlayerHealth = function (playerName, playerHealth) {
return playerName + ' has health ' + playerHealth;
};
var getPlayerPlace = function (playerName, playerPlac... | JavaScript | code/computingclub/49/app.js | Quobject/boscode-learn | mit | 1,157 | 47 | codeparrot/github-code |
dd53494e979493fec16a8f143bb512cd746101ac9b890654a4649dc60064b47d | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
namespace PowerArgs
{
/// <summary>
/// A utility that lets you prompt a console user for input in an interactive way. It provides hooks for tab completion, syntax highlighting, history management via the... | C# | PowerArgs/CLI/RichTextCommandLineReader/RichTextCommandLineReader.cs | dpen2000/PowerArgs | mit | 10,375 | 273 | codeparrot/github-code |
3ba3c46110b5d1bec4122b51fb89e3e2dfff19b3f5b33d08a3237b8990e6d78d | #!/usr/bin/env python
# noinspection PyUnresolvedReferences
import mujoco_py # Mujoco must come before other imports. https://openai.slack.com/archives/C1H6P3R7B/p1492828680631850
from mpi4py import MPI
from gailtf.baselines.common import set_global_seeds
import os.path as osp
import gym
import logging
from gailtf.base... | Python | gailtf/baselines/trpo_mpi/run_mujoco.py | ryanjulian/gail-tf | mit | 2,970 | 61 | codeparrot/github-code |
a1812b2d48f870b3de6f938091be895a103e83d93d70e23ecf3b231dc8f07315 | \documentclass[a4paper,11pt]{article}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{float}
\usepackage[utf8]{inputenc}
\title{MaS Assignment II\\
\large Percolation}
\author{Klaas Kliffen s2369494}
\date{\today}
\begin{document}
\maketitle
\section{Introduction}
The percolation model can be seen as a extre... | TeX | ass2/main.tex | KlaasYK/mas | mit | 6,492 | 91 | codeparrot/github-code |
c780e9b4a1355ab6a4f1774a858e2833cfeaf4381e9bd214c6067e2943896378 | (function( $ ){
$.fn.pictureLabel = function( options ) {
// Create some defaults, extending them with any options that were provided
var settings = $.extend( {
'inputSelector' : 'input[type=file]'
}, options);
return this.each(function() {
$(document).on('change',... | JavaScript | lib/pictureLabel.js | benniweber/PictureLabel | mit | 3,989 | 107 | codeparrot/github-code |
40d8b9a7fafd5a0f433cf8f2cbf8f63d8ad4c30f84f862a18d8ba2dd6a537d69 | #pragma once
#include <memory>
#include <stdexcept>
#include <string>
namespace slim
{
class Object;
class Symbol;
typedef std::shared_ptr<Object> ObjectPtr;
typedef std::shared_ptr<Symbol> SymPtr;
/**These need to return "through" other C++ functions and is not a control flow C++ has
* direct... | C++ | include/slim/Error.hpp | wnewbery/cpp-slim | mit | 5,853 | 165 | codeparrot/github-code |
06d63ab5793dee0c8fe12a8f753b2823f911397207b85b6d59b06fbc79b28908 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using DND.Services.Skyscanner.Model;
namespace DND.Services.FlightSearch.BusinessObjects
{
public class ServerSearchSessionResult
{
public string Country { get; se... | C# | DND.Services/BusinessObjects/ServerSearchSessionResult.cs | davidikin45/DigitalNomadDave | mit | 3,403 | 82 | codeparrot/github-code |
4419f366bb5897d0f8fde42b41187509ed322d569db1a08f4cda33ff8b8caabc | (function() {
var Search;
Search = (function() {
function Search(client) {
this.client = client;
}
Search.prototype.findAllUsers = function(params, cb) {
return this.client.get("/users", params, function(err, status, body, headers) {
if (err) {
return cb(err);
}
... | JavaScript | lib/etsyjs/search.js | madajaju/etsyjs | mit | 942 | 42 | codeparrot/github-code |
15fe4d1f7b8137a9bcf06640c27a8f93f5e6cc9e17a71db80a9323a423ebbabc | // Copyright (c) 2014-2015 The AsturCoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "splashscreen.h"
#include "clientversion.h"
#include "ui_interface.h"
#include "util.h"
#include <QApplication>
#... | C++ | src/qt/splashscreen.cpp | KaTXi/ASTC | mit | 3,907 | 123 | codeparrot/github-code |
1a177491ba20cea6e668cc6dfed05ca447e987979b8227a558551f5431322883 | //
// Kino/Motion - Motion blur effect
//
// Copyright (C) 2016 Keijiro Takahashi
//
// 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 r... | C# | Assets/Plugins/Kino/Motion/Script/FrameBlendingFilter.cs | will-hart/game-off-2016 | mit | 8,677 | 224 | codeparrot/github-code |
4b792e3486b0fafa62aba12e12d1c760b596e3ea432c282db71e97ce31631432 |
let url_img = base_url('assets/img_articulos/hergo.jpg')
$(document).ready(function(){
})
Vue.component("v-select", VueSelect.VueSelect);
const app = new Vue({
el: '#app',
components: {
vuejsDatepicker
},
data: {
id:'',
es: vdp_translation_es.js,
articulosList: [],
... | JavaScript | assets/hergo/importaciones/formPedido.js | sistemaHergo/hergo | mit | 9,186 | 297 | codeparrot/github-code |
845f4e6450475384545dd71ee6993b83b58eb0287e97e9589ff32599a0ff18d0 | <?php
/**
* @package Grav\Common\Page
*
* @copyright Copyright (C) 2015 - 2019 Trilby Media, LLC. All rights reserved.
* @license MIT License; see LICENSE file for details.
*/
namespace Grav\Common\Page\Medium;
use Grav\Common\Markdown\Parsedown;
trait ParsedownHtmlTrait
{
/**
* @var \Grav\Comm... | PHP | system/src/Grav/Common/Page/Medium/ParsedownHtmlTrait.php | Vivalldi/grav | mit | 947 | 42 | codeparrot/github-code |
649788857a2665ac2bd69597e0362a5552c50cc3be60d5d894cf7a909d53a5dc | namespace FreshBooks.Api.PaymentCreate {
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.6.81.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml... | C# | src/FreshBooks.Api/PaymentCreateRequest.cs | mattjcowan/FreshBooks.Api | mit | 3,476 | 134 | codeparrot/github-code |
db2b625861cd037bcdc0dc9490d97f5d4d4095a10d52426699df85db4042bc46 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>lc: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel... | HTML | clean/Linux-x86_64-4.02.3-2.0.6/released/8.7.1/lc/8.6.0.html | coq-bench/coq-bench.github.io | mit | 7,619 | 184 | codeparrot/github-code |
06b639f94c3b3b4f8e3f49f7e57bdd929e3c0a437f366061d3e433e19a7a5d43 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace vds_app
{
public partial class ProgressForm : Form
{
public ProgressForm()
... | C# | vds.net/vds_app/ProgressForm.cs | lboss75/vds | mit | 863 | 41 | codeparrot/github-code |
fb5a1859936ef5859b1cb62f198c89d3428037c33cc56433fdce9d2e0dc2bd09 |
isreal(::Type{<:Real}) = true
isreal(::Type{<:Complex}) = false
isreal(::Type{T}) where {T} = isreal(eltype(T))
const StaticTypes = Union{Number,<:StaticVector{N} where N,<:NTuple{N,Any} where N}
"What is the euclidean dimension of the given type (if applicable)?"
euclideandimension(::Type{T}) where {T <: Number} =... | Julia | src/util/common.jl | daanhb/Domains.jl | mit | 6,201 | 152 | codeparrot/github-code |
2fef880173661423d6df6a4d52f17f1fce6f98a599328b91b722a4eb3317128a | // 设置用户信息
import * as types from './mutation-types'
import { getAllClassType, getAllClassLevel } from '@/api/common'
export const setAppShellShow = ({ commit }, appshellShow) => {
commit(types.APP_SHELL_SHOW, appshellShow)
}
export const setUserInfo = ({ commit }, userinfo) => {
commit(types.USER_INFO, userinfo)
... | JavaScript | src/store/actions.js | paytham/iqinban | mit | 951 | 40 | codeparrot/github-code |
09bf0d9e69a7bb3924cdb26e60a7c15a999e6e8b50e8e44f978c211944520669 | #if LESSTHAN_NET35
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostic... | C# | Framework.Core/System/Linq/Expressions/LambdaExpression.cs | theraot/Theraot | mit | 59,059 | 1,258 | codeparrot/github-code |
cfd3758f86d2d649da86cdc817584547c47226e2519b7c93a78a9fd74749aaac |
#pragma warning disable 109, 114, 219, 429, 168, 162
namespace pony
{
public class Loader : global::haxe.lang.HxObject
{
public Loader(global::haxe.lang.EmptyObject empty)
{
unchecked
{
#line 37 "C:\\HaxeToolkit\\haxe\\lib\\pony/git/pony/Loader.hx"
{
}
}
#line default
}
... | C# | unity3d/bin/Assets/src/pony/Loader.cs | AxGord/TicTacToe | mit | 37,572 | 1,061 | codeparrot/github-code |
b34bcfc0c9ff26d18ec24365113eb81f3aba6994084468d5cb75f67e112895c2 | <?php
namespace AppBundle\Admin;
use A2lix\TranslationFormBundle\Form\Type\TranslationsType;
use Sonata\AdminBundle\Admin\AbstractAdmin;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\AdminBundle\Show\ShowMapper;
class Co... | PHP | src/AppBundle/Admin/CompanyAdmin.php | omair445/chachamistari | mit | 3,794 | 141 | codeparrot/github-code |
5214f695f9df5d71abc3d8db410aaab693deacd4dfe94af92f1899b045f76183 | package com.rarchives.ripme.tst;
import junit.framework.TestCase;
import com.rarchives.ripme.utils.Utils;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Arrays;
public class UtilsTest extends TestCase {
public void testGetEXTFromMagic() {
assertEquals("jpeg", Utils.getEXTFromMa... | Java | src/test/java/com/rarchives/ripme/tst/UtilsTest.java | metaprime/ripme | mit | 1,664 | 48 | codeparrot/github-code |
c1451a9372ce50d1b8b4ab37484fc1200610c7027f647f3b355a62aada197d7c | <?php
namespace common\helpers;
use Yii;
use yii\base\BaseObject;
/**
* redis 分布式锁
*
* @property string $key redis key
* @property string $value key对应的value
* @property int $expireSeconds 锁过期时间
* @property string $error 没有获取到锁时的报错信息,read-only
*
* Class RedisLock
* @package common\helpers
*/
class RedisLock ... | PHP | common/helpers/RedisLock.php | EleTeam/Shop-PHP-Yii2 | mit | 2,818 | 141 | codeparrot/github-code |
6e47bb84119366a907808e945c46f43709501613f70bfa6c6cb18cfa6b560d08 | if(typeof define !== 'function') {
var define = require('amdefine')(module);
}
var ARENA_DIMENSIONS = {
width: 1280,
height: 720
};
var PROJECTILE_SPEED = 8;
var NUMBER_OF_PLAYERS = 2;
var INITIAL_ASTEROIDS = 8;
define(['../../../src/game'], function(GameType) {
var AsteroidsGame = new GameType({
... | JavaScript | test/open-house-demo/games/asteroids.js | jrife/replicate | mit | 14,963 | 395 | codeparrot/github-code |
f12553beffb473539c54b180ef1a4c16706de04fc23c02a9993102afcfc022cc | <?php
/*
* This file is part of the Aisel package.
*
* (c) Ivan Proskuryakov
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Aisel\ResourceBundle\Form\Type;
use Doctrine\Common\Annotations\Reader;
use Doctrine\ORM\Enti... | PHP | src/Aisel/ResourceBundle/Form/Type/TreeTypeGuesser.php | ivanproskuryakov/AiselBackend | mit | 2,876 | 123 | codeparrot/github-code |
301f06c286964d478ea0e2793d08f9b59f1e32fb3cadc0e9e665e3ea6a787b5a | function nester(obj, path, valueToSet) {
var rawParts = path.split(/\.|\[(\d+)\]|\[(")((?:[^"]|(?:\\.))*)"\]|\[(')((?:[^']|(?:\\.))*)'\]/g);
var rawPart;
var parts = [];
var i, l;
for (i = 0, l = rawParts.length; i < l; i++) {
rawPart = rawParts[i];
if (rawPart === undefined) {continue;}
if ((rawP... | JavaScript | index.js | kolodny/nester | mit | 1,247 | 47 | codeparrot/github-code |
c34fab9f61ae0e0cad231016bd71dcb2eb4cdc02ed42b5345a653f6524507cfb | /*
===============================================================================
EntitySpaces 2009 by EntitySpaces, LLC
Persistence Layer and Business Objects for Microsoft .NET
EntitySpaces(TM) is a legal trademark of EntitySpaces, LLC
http://ww... | C# | Temiang.Avicenna.BusinessObject/Generated/MpiPayplanMapping.cs | trogalko/MpiSyncManager | mit | 18,414 | 836 | codeparrot/github-code |
19a2d64693813602741e12b0dfdfe056bdf8f79e5d633e38975520f597fe8e2a | import token_names as tokens
import abstract_syntax_tree as AST
class Parser(object):
def __init__(self, lexer):
self.lexer = lexer
self.current_token = self.lexer.get_next_token()
def error(self, message):
raise Exception(message)
def consume(self, token_type):
if self.cu... | Python | parser.py | doubledherin/my_compiler | mit | 8,875 | 266 | codeparrot/github-code |
a5616dd43db694b5c792eb3cf7e9b2cd948bf10068268b791be40b60ebde3354 | <?php
/**
* Created by PhpStorm.
* User: ikneb
* Date: 22.10.2016
* Time: 20:26
*/
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table(name="language")
* @ORM\Entity(repositoryClass="AppBundle\Repository\LanguageRepository")
**/
class Language
{
/**
* @ORM\Column(type="int... | PHP | src/AppBundle/Entity/Language.php | ikneb/lg | mit | 1,732 | 109 | codeparrot/github-code |
e817063f686bf73a3cdb6a87faffd9e85085805b52f0ddd1aab0aa686d34e2ca | #ifndef __VKPP_TYPE_MEMORY_BARRIER_H__
#define __VKPP_TYPE_MEMORY_BARRIER_H__
#include <Info/Common.h>
#include <Info/Flags.h>
#include <Type/Image.h>
#include <Type/Buffer.h>
namespace vkpp
{
enum class AccessFlagBits
{
eIndirectCommandRead = VK_ACCESS_INDIRECT_COMMAND_READ_BIT,
eIndexRead ... | C | inc/Type/MemoryBarrier.h | po2xel/vkpp | mit | 7,203 | 215 | codeparrot/github-code |
ff5d8ae9f54a4a94ee91d7574e2027024cec2f87369226d6857862df7ddd1022 | <?php
namespace swl\core\exceptions;
/**
* Description of LexicalException
*
* @author schivei
*/
class LexicalException extends \ErrorException
{
private $sequence;
private $column;
public function __construct($message, $filename, $lineno, $colno, $sequence)
{
parent::__construct($messa... | PHP | swl/core/exceptions/LexicalException.php | schivei/swl | mit | 857 | 43 | codeparrot/github-code |
6c45a1bfb638c29d97d71d5966d636e99fd00ad70a3b2ab10088e4cac80ba08c | import React, { PropTypes } from 'react';
import Loading from '../components/Loading/Loading';
import NavBar from '../components/NavBar/NavBar';
import Packages from '../components/Bill/Packages';
import Charges from '../components/Bill/Charges';
import Purchases from '../components/Bill/Purchases';
export const Bill... | JavaScript | src/views/BillPage.js | markwylde/react-demo | mit | 1,327 | 44 | codeparrot/github-code |
a317a7cd56401d3aa24e057fd14c974cdf3b567a245eca278174de3af773edd0 | package russoul.lib.common.scene
import russoul.lib.common.{Mat4F, Real, Real3, Real3F, RealF, TypeClasses, V4, Vec3}
import russoul.lib.common.math.geometry.complex.Frustum
import russoul.lib.common.math.geometry.simple.{RayOver, RectangleOver}
import russoul.lib.common.Implicits._
import russoul.lib.common.math.alge... | Scala | src/main/scala/russoul/lib/common/scene/Camera.scala | Russoul/UniScalaLib | mit | 2,832 | 123 | codeparrot/github-code |
57bd58e11b43fba6f0a4d55698231cee453f08815a200434263842264c3c524d | 'use strict';
/**
@module ember-cli
*/
var FileInfo = require('./file-info');
var Promise = require('../ext/promise');
var chalk = require('chalk');
var MarkdownColor = require('../utilities/markdown-color');
var printableProperties = require('../utilities/printable-propertie... | JavaScript | lib/models/blueprint.js | jasonmit/ember-cli | mit | 42,404 | 1,557 | codeparrot/github-code |
b24fe7b3e2d2ea8bd9b812237e94b315e413aa4ed15305da95b271204a64b192 | <?xml version="1.0" encoding="iso-8859-1"?>
<!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" xml:lang="en" lang="en">
<head>
<title>Class: Dir</title>
<meta http-equiv="Content-Type" conte... | HTML | doc/rdoc/classes/Dir.html | tracksun/interfaces | mit | 7,450 | 181 | codeparrot/github-code |
823b537d77e25a5304f55f04c5a42460a24e360b09feb6051a74f0a3679a53a1 | <HTML><HEAD>
<TITLE>Review for Eyes Wide Shut (1999)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0120663">Eyes Wide Shut (1999)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?Aaron+Str... | HTML | data science/machine_learning_for_the_web/chapter_4/movie/19350.html | xianjunzhengbackup/code | mit | 7,177 | 118 | codeparrot/github-code |
17bea4f118cd6faa3aac810a89dc143d3112a542f80f53c3d24fd24298a94f51 | <?php
declare(strict_types=1);
namespace App\Controller\MembersArea;
use App\Form\Type\ProfileFormType;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\C... | PHP | src/Controller/MembersArea/MembersEditProfileController.php | aureliengiry/aml87 | mit | 1,324 | 46 | codeparrot/github-code |
e0816594649720edbe02c39f1f3851122c09cb851dfbddd96063cb92c71b235e | #!/usr/bin/env node
var fs = require('fs');
var path = require('path')
function Raffle(people){
if(!(this instanceof Raffle)){
return new Raffle(people);
}
this.people = people;
this.blacklist = [ 0 ];
this.dbFile = path.basename(__dirname, '.js') + '.json';
};
Raffle.prototype.random = fun... | JavaScript | raffle.js | song940/raffle | mit | 1,298 | 56 | codeparrot/github-code |
178dc74f823d0f5d568ba5ceb2615700bfa6bc9da34c5ab30d7661306600330e | -- phpMyAdmin SQL Dump
-- version 4.2.5
-- http://www.phpmyadmin.net
--
-- Host: localhost:8889
-- Generation Time: Apr 30, 2015 at 07:00 AM
-- Server version: 5.5.38
-- PHP Version: 5.5.14
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Database: `db_relief911`
--
-- ------------------------... | SQL | db/initial_database.sql | sagund/Nepal-Earth-Quake-Knowledge-Management-System | mit | 6,220 | 224 | codeparrot/github-code |
ce320792d192a83c126fa10bcb93de2178fd1369d0c010003c5f523ceabe081e | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>axiomatic-abp: 29 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" re... | HTML | clean/Linux-x86_64-4.03.0-2.0.5/released/8.7.1/axiomatic-abp/8.7.0.html | coq-bench/coq-bench.github.io | mit | 9,346 | 182 | codeparrot/github-code |
2af8c3aae8c0add920b03922e1c14b675a5e4c106c725525f02d04c15791e293 | const noop = () => {}
const browserNameSpace = {}
if (typeof browser !== 'undefined') {
// Firefox
browserNameSpace.runtime = {
connect: () => {
browser.runtime.connect()
},
onInstalled: {
addListener: (callback) => {
browser.runtime.onInstalled.addListener(callback)
},
},... | JavaScript | src/app/utils/browser.js | mingchia-andy-liu/chrome-extension-nba | mit | 6,289 | 247 | codeparrot/github-code |
90d71e313463675b8e12f2ea196543326f778f30cabb87a02901c61a481f74a1 | package com.deuxhuithuit.ImageColorer.Core;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.Toolkit;
import java.awt.image.BufferedImage;
import java.awt.image.FilteredImageSource;
import java.awt.image.IndexColorModel;
import java.awt.image.RGBImageFilter;
import su... | Java | com.deuxhuithuit.ImageColorer.Core/src/com/deuxhuithuit/ImageColorer/Core/GifImage.java | DeuxHuitHuit/ImageColorer-java | mit | 5,895 | 158 | codeparrot/github-code |
cc8f97fd6ba29e5d62239198617e53a343dfc3b8633136c8dda7ce908e1426ef |
import FieldView from '../Field'
import View from '../../View'
/**
* Text field view
*/
export default class TextFieldView extends FieldView {
/**
* Constructor
*/
constructor () {
super()
this._$input = null
}
/**
* Retrieves value from model and updates it in view.
* @return {FieldVie... | JavaScript | src/View/Field/Text.js | cryptii/cryptii | mit | 1,407 | 69 | codeparrot/github-code |
1b269abb4012bbeaa212c243a3d6749f89867995df6ba32afcf3ce40bc834a80 | using Mono.Cecil;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FeatherSharp.Extensions;
using FeatherSharp.ComponentModel;
namespace FeatherSharp.Feathers.LogInjection
{
/// <summary>
/// Implements a feather that augment... | C# | source/FeatherSharp/Feathers/LogInjection/LogInjectionFeather.cs | smackem/FeatherSharp | mit | 2,265 | 56 | codeparrot/github-code |
402d356e44ed3ebb393c82f57ed36e6bea617f9eae24c83cc3e29a1f2bea13d2 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// For changes please talk to WesH or ImmoL.
namespace System.Runtime.CompilerServices
{
[System.Runtime.Int... | C# | src/System.Runtime.CompilerServices.VisualC/ref/System.Runtime.CompilerServices.VisualC.cs | mafiya69/corefx | mit | 2,225 | 71 | codeparrot/github-code |
6b6b19633914a0f2bfa0c44bda611c494079c8863d1b53e2a63c8be04a6e7f63 | \hypertarget{trie_8c}{}\section{src/protocols/pubsub/trie.c File Reference}
\label{trie_8c}\index{src/protocols/pubsub/trie.\+c@{src/protocols/pubsub/trie.\+c}}
{\ttfamily \#include $<$string.\+h$>$}\\*
{\ttfamily \#include $<$assert.\+h$>$}\\*
{\ttfamily \#include $<$stdio.\+h$>$}\\*
{\ttfamily \#include \char`\"{}tri... | TeX | latex/trie_8c.tex | lalazari/Nanomsg-Libf | mit | 6,019 | 93 | codeparrot/github-code |
ebdd7ad6e4c5e7033f275d83365f33116debc6f0a408a962d3df8637a6fe181c | //
// TZImageManager.h
// TZImagePickerController
//
// Created by 谭真 on 16/1/4.
// Copyright © 2016年 谭真. All rights reserved.
// 图片资源获取管理类
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import <Photos/Photos.h>
#import "TZAssetModel.h"
@class TZAlbumModel,TZAsse... | C | GKNavigationBarViewControllerDemo/Pods/TZImagePickerController/TZImagePickerController/TZImagePickerController/TZImageManager.h | QuintGao/GKNavigationBarViewController | mit | 8,877 | 133 | codeparrot/github-code |
55972528104fb3a6638ad1a7c01f4d629ea6575dd3d5681fb21b07089ede825d | /*
* Implementation for the Sega Master System VDP chip.
*/
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <inttypes.h>
#include <stdbool.h>
#include <string.h>
#include <pthread.h>
#include "../snepulator_types.h"
#include "../snepulator.h"
#include "../util.h"
#include "../g... | C | source/video/sms_vdp.c | JoppyFurr/Snepulator | mit | 27,955 | 839 | codeparrot/github-code |
64e4fc9026882cd5e596252418beeaa11dbe61f406f6e76dcdaaa71a10858096 | <?php
if(!defined('__IN_SYMPHONY__')) die('<h2>Error</h2><p>You cannot directly access this file</p>');
require_once EXTENSIONS . '/members/lib/class.membersevent.php';
Class eventMembers_Generate_Recovery_Code extends MembersEvent {
const ROOTELEMENT = 'members-generate-recovery-code';
public static functio... | PHP | extensions/members/events/event.members_generate_recovery_code.php | bzerangue/church-deploy-ensemble | mit | 7,463 | 191 | codeparrot/github-code |
c6a15b8c0a52aa68bb5c5b8871591bc664832a1767db4372d367bb84787b7134 |
<!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_03-deptCode_028/voteCode_20120101T1A2-qryType_ctks-prvCode_04-cityCode_000-areaCode_03-deptCode_028-liCode_0478.html | g0v/projectV | mit | 6,100 | 203 | codeparrot/github-code |
636720df95bc04faea9ed0b9bb2575ed2c9f72db262d3bd09d4ed9eb73ae61e0 | // Tally Votes in JavaScript Pairing Challenge.
// I worked on this challenge with:
// This challenge took me [#] hours.
// These are the votes cast by each student. Do not alter these objects here.
var votes = {
"Alex": { president: "Bob", vicePresident: "Devin", secretary: "Gail", treasurer: "Kerry" },
"Bob": {... | JavaScript | week-8/tally-votes/tally_votes.js | nchambe2/phase-0 | mit | 8,787 | 252 | codeparrot/github-code |
16a5ebd86455c9ebc21e648caa133e9664bc1cd497c0c5b98052565d62856a70 | <?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the Route... | PHP | routes/web.php | cbnuke/FilesCollection | mit | 1,014 | 34 | codeparrot/github-code |
b14680295efcede3516ca213e609437f0aa28c682f6004f76731d3e229b0659a | <?php
/**
* Melody library
*
* @category Melody
* @package Melody_ModelBundle
* @subpackage Melody_ModelBundle_Command
* @version $Id: $
* @link https://github.com/AlexandreBeaurain/melody
*/
namespace Melody\ModelBundle\Command;
use Symfony\Component\DependencyInjection\ContainerAwareInterface... | PHP | Command/AllCommand.php | AlexandreBeaurain/MelodyModel | mit | 3,812 | 90 | codeparrot/github-code |
ce01faaf7dce1acd22e7aa4874388c1866ef38703166e9166d45c56c98269e60 | <?php
namespace app\models\base;
use Yii;
/**
* This is the base model class for table "settings".
*
* @property integer $id
* @property string $meta_key
* @property string $meta_value
*/
class Settings extends \yii\db\ActiveRecord
{
use \mootensai\relation\RelationTrait;
/**
* @inher... | PHP | models/base/Settings.php | technodweep/gst-invoice | mit | 1,185 | 60 | codeparrot/github-code |
34c21e9cb28c78170a69e21175dfb61bd43aa523f47af30ce5212f7b78abbc24 | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
import frappe
from frappe import _
from frappe.model.document import Document
from frappe.model import no_value_fields
class Workflow(Document):
def validate(self):
self.set_active()
self.create_custom_field_for_... | Python | frappe/workflow/doctype/workflow/workflow.py | mhbu50/frappe | mit | 3,999 | 128 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.