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 |
|---|---|---|---|---|---|---|---|---|
cff32ee388fc9777ed2c0254118028ea05f70937c344d1a80789d8a5e72f7c29 | /**
* Copyright (c) 2012-2016 André Bargull
* Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms.
*
* <https://github.com/anba/es6draft>
*/
package com.github.anba.es6draft.ast;
import java.util.EnumSet;
import java.util.Set;
import com.github.anba.es6draft.ast.scope.BlockScope;
/**... | Java | src/main/java/com/github/anba/es6draft/ast/ForAwaitStatement.java | jugglinmike/es6draft | mit | 1,853 | 75 | codeparrot/github-code |
d15eae3ff759f0c3209f30786c978018a3ae9acfd4f4278a898a08124f12abe6 | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2018 Ryo Suzuki
// Copyright (c) 2016-2018 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# include <Siv3D/Fwd.hpp>
# include <Siv3D/Str... | C++ | Siv3D/src/Siv3D/ParseFloat/SivParseFloat.cpp | azaika/OpenSiv3D | mit | 2,458 | 112 | codeparrot/github-code |
601b056d34a9f2d2cc8d2873e8ee82f5fde38bf4b82a1ddb237b2932b44faa60 | const crypto = require('crypto');
const { render, redirect } = require('@kelpjs/next/response');
const Application = require('../models/application');
const Authorization = require('../models/authorization');
class App {
async index() {
const apps = await Application.findAll();
return render('app... | JavaScript | server/controllers/app.js | lsongorg/mycenter | mit | 1,551 | 51 | codeparrot/github-code |
fa6787f13863e8279ced7a9748635cd84e2636ac254210a0cd1c21ce415ed411 | <?php
/*****************************************************************************
*
* $Id: Measure.php 2150 2010-04-22 16:21:53Z chrisclaydon $
*
* Purpose: Measure a line segment and return the distance
*
* Project: Fusion MapServer
*
* Author: DM Solutions Group Inc
* Copyright (c) 2007 DM Solutions Group... | PHP | layers/MapServer/php/Measure.php | jumpinjackie/fusion-multimap | mit | 3,625 | 114 | codeparrot/github-code |
399c3031d1ec71f414b228fbb41461e8e9b924e64925c1acc0d6307eea9ba307 | <?php
namespace Mw\Bundle\RestBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
class ArticleType extends AbstractType
{
/**
* @param FormBuilderInterface $builder
* @param array $option... | PHP | src/Mw/Bundle/RestBundle/Form/ArticleType.php | BBinsse/test | mit | 904 | 41 | codeparrot/github-code |
a718dc77f6bb83332f20da46a7fe817f09ccd8b961ecc8f346feb62e141fb144 | 'use strict';
var createPointCloudRenderer = require('gl-pointcloud2d');
var str2RGBArray = require('../../lib/str2rgbarray');
var findExtremes = require('../../plots/cartesian/autorange').findExtremes;
var getTraceColor = require('../scatter/get_trace_color');
function Pointcloud(scene, uid) {
this.scene = scen... | JavaScript | src/traces/pointcloud/convert.js | etpinard/plotly.js | mit | 5,579 | 193 | codeparrot/github-code |
a8703559c9663b054c49118b2b093e8e3db9efcaf063c43e0981a08d096f07cf | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Web.Caching;
using System.Web.UI;
using Umbraco.Core.Cache;
namespace Umbraco.Core.Models.PublishedContent
{
/// <summary>
/// Represents an <see cref="IPublishedContent"/> type.
/// </summ... | C# | src/Umbraco.Core/Models/PublishedContent/PublishedContentType.cs | Jeavon/Umbraco-CMS-RollbackTweak | mit | 7,096 | 173 | codeparrot/github-code |
efb77170ce3c9df57829a5e1fbb75d7fd1c3fc109076bc767e3fe9304a01b5ab | <!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="A layout example that shows off a responsive email layout.">
<title>Email – Layout Examples – Pure</title>
... | HTML | src/examples/html/dashboard.html | senuphtyz/afterspring-dashboard | mit | 14,873 | 435 | codeparrot/github-code |
c94d120396b726e04fd534adf635ec379d30cf379c8ace29612023801aed814c | <?php
/*
* Copyright (c) 2016, whatwedo GmbH
* All rights reserved
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of ... | PHP | Filter/Type/TextFilterType.php | whatwedo/TableBundle | mit | 4,622 | 109 | codeparrot/github-code |
1d31a5d828fa4ccc1096f6eb612ff4e09a206536cf38f707ad356be546365928 | /*
Project Orleans Cloud Service SDK ver. 1.0
Copyright (c) Microsoft Corporation
All rights reserved.
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the ""Software""), to deal in the Software without restriction,
in... | C# | src/OrleansSQLUtils/Storage/RelationalStorageUtilities.cs | kowalot/orleans | mit | 2,515 | 57 | codeparrot/github-code |
750fe82787b664c720fdee15d4c41a82675f94e3cd113dae797f92eb8c0e8bf7 | #ifndef _GTWRITER_H_
#define _GTWRITER_H_
#include <stdio.h>
#define enum_type(t) typedef enum t t
#define struct_type(t) typedef struct t t
enum GTWriterMode
{
GTWriterMode_None,
GTWriterMode_String,
GTWriterMode_File,
// GTWriterMode_Socket,
GTWriterMode_Size
};
enum_type(GTWriterMode);
enum GTWriterErro... | C | src/writer.h | ryutaroikeda/gatherers | mit | 2,103 | 68 | codeparrot/github-code |
1d5b32b258ee135273c989a237b8dfcf1bffc173f7241a70605f16297f235dbd | package module3;
//Java utilities libraries
import java.util.ArrayList;
//import java.util.Collections;
//import java.util.Comparator;
import java.util.List;
//Processing library
import processing.core.PApplet;
//Unfolding libraries
import de.fhpotsdam.unfolding.UnfoldingMap;
import de.fhpotsdam.unfolding.marker.Mar... | Java | src/module3/EarthquakeCityMap.java | MohammedFCIS/UCSDUnfoldingMaps | mit | 4,667 | 158 | codeparrot/github-code |
341974b77a5e8318ba146452fd68f67bf416d8a124c9125375b70398aa51cc0d | 'use strict';
var gulp = require('gulp'),
install = require('gulp-install'),
conflict = require('gulp-conflict'),
template = require('gulp-template'),
rename = require('gulp-rename'),
inquirer = require('inquirer');
var debug = require('gulp-debug');
var defaultQuestions = require('./questions');
var trans... | JavaScript | slush/default/task.js | the-simian/slush-phaser-webpack | mit | 1,120 | 53 | codeparrot/github-code |
25b5317960bfb77526322059abc891d5055b87f66c9af19c3d43cf3e400d83e7 |
<!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>关于sys研究(三) - 小明明s à domicile</title>
<... | HTML | archives/guanyusysyanjiusan/index.html | dongweiming/blog | mit | 22,918 | 851 | codeparrot/github-code |
dabf318ba98cf073589e71ae6ce9284679bf11531776ce2fedce1df676442cc8 | #!/usr/bin/env python
import os
import sys
import csv
import argparse
from spoutP import PRED_HEADER
def doStuff(args):
# def removeRedundantCells(row):
# del row[6]
# del row[1]
uniquePeptides = set()
with open(args.filteredFile, 'wb') as out:
out.write('\t'.join(PRED_HEADER) + '\n')
reader = csv.reader... | Python | spFilter.py | cschu/spoutp_Galaxy | mit | 1,984 | 75 | codeparrot/github-code |
6433b3c5775c441e72ec35a24b2b81cb9f575720a9aee8a1d4603f798f63616d | #include <stdio.h>
#define MAXLINE 1000
#define COL_WIDTH 8
void detab(char from[], char to[]);
int my_getline(char s[], int lim);
/* replace tabs in input with appropriate number of spaces */
int main()
{
int len;
char line[MAXLINE];
char line_detabbed[MAXLINE];
while ((len=my_getline(line, MAXLINE)) > 0){
d... | C | chapter1/ex_1_20.c | petosegan/krc-solutions | mit | 987 | 66 | codeparrot/github-code |
c9e7c8673e273efca7c12f67b53417693d85df2017ce25dfe9bc6f111d836002 | using System;
using System.Linq;
using System.Text;
namespace ExtensionBlocks
{
public class Beef0026 : BeefBase
{
public Beef0026(byte[] rawBytes)
: base(rawBytes)
{
if (Signature != 0xbeef0026)
{
throw new Exception($"Signature mismatch! Sh... | C# | ExtensionBlocks/Beef0026.cs | EricZimmerman/ExtensionBlocks | mit | 2,920 | 98 | codeparrot/github-code |
c7669f2f88b1db986826b5605c08065613ae71d5168e12ab10cd0ac960cd8294 | //
// ServiceManager.cs
//
// Author:
// Aaron Bockover <abockover@novell.com>
//
// Copyright (C) 2007-2008 Novell, Inc.
//
// 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 restr... | C# | src/Core/Banshee.Services/Banshee.ServiceStack/ServiceManager.cs | eeejay/banshee | mit | 14,761 | 421 | codeparrot/github-code |
ac4b22353270604dd49776c95941540bb2b6117fee4559cdcb64e7c4eb1e3b94 | exports.session_path = __home + '/session';
exports.start = function (server, callback) {
if (require('fs').existsSync(exports.session_path) == false)
require('fs').mkdirSync(exports.session_path);
var conf = server.vhost.middleware;
if (!conf.session) conf.session = {};
if (!conf.session.expi... | JavaScript | middleware/session/embed.js | proin/orbis | mit | 3,574 | 85 | codeparrot/github-code |
5df671176e3ef6f6edf571a831a8b16becdf0d5b96771327fe2df50f7357d702 | /*
* Tool to demonstrate BEU hardware acceleration of raw image overlay.
*
* The RGB/YCbCr source images are read from files and displayed one on top of
* another on the framebuffer. It uses an ncurses interface to allow the user
* move the top most image and advance the image input.
*/
#ifdef HAVE_CONFIG_H
#inc... | C | src/tools/shbeu-display.c | pedwo/libshbeu | mit | 17,857 | 798 | codeparrot/github-code |
2c783c08c242cc62b2bf9a5b403466f67da6c5f65129705e804d00c16d3f7147 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>prfx: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" r... | HTML | clean/Linux-x86_64-4.08.1-2.0.5/released/8.8.2/prfx/8.9.0.html | coq-bench/coq-bench.github.io | mit | 7,014 | 177 | codeparrot/github-code |
50d688180380b4594be90d132d074023eadc1bacef4d5a319125c1c83962c543 | function propertySelected(value) {
$('#displayProperty').text(value);
$.ajax({
url : '/dashboard/__breakdown/' + value,
type : 'GET',
success : function(response) {
console.log(JSON.parse(response))
populateTable(JSON.parse(response));
},
failure : function(response) {
consol... | JavaScript | hack-at-brown-2015/static/js/db_cleanup.js | hackatbrown/2015.hackatbrown.org | mit | 2,046 | 79 | codeparrot/github-code |
ecacf3b80fc8316a8e66cb416396e64faadb87b9583a6007582aaad6f0b7d98d | #! /usr/bin/env python
# -*- coding : utf-8 -*-
''' Container for calculation types (CG, MD, NPR)
'''
import os, copy
import options as Opts
class CalcType():
''' Generic class for all calculation types
'''
keys = {'MD.TypeOfRun' : ['s', None]}
ctd = {'CG' : 'CG',
'MD' : 'Nose',
... | Python | shs/calctypes.py | ansobolev/shs | mit | 4,614 | 135 | codeparrot/github-code |
8a0b6338178be57d6ed943d05522398ada686936e9f82200a5c2378592503e8e | package InheritanceInJava.ThreeLevel;
/**
* Created by beatriceotugo on 18/08/2017.
*/
public class MacOs extends LaptopMac {
private String defaultBrowser = "Safari";
private String oS = "Unix";
private boolean isTouchScreen = false;
public MacOs(String name, int size, String colour, char memory, ... | Java | NgIstProject/src/InheritanceInJava/ThreeLevel/MacOs.java | cyber-coders-j2017a/modern.core.java.repo | mit | 1,095 | 43 | codeparrot/github-code |
2aa06b134064febb9d5294928a9ba197f4983105f5da30e77213f5b7be58b406 | <?php
/*
* This file is part of the Arnapou Toolbox package.
*
* (c) Arnaud Buathier <arnaud@arnapou.net>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Bewoopi\Toolbox\Log;
class LogStdOut extends AbstractLog {
/**... | PHP | src/Arnapou/Toolbox/Log/LogStdOut.php | arnapou/toolbox | mit | 1,072 | 53 | codeparrot/github-code |
21a951cfed379ab89c27393ace97f282feb880a638b09f228662cdc0537807c0 | import ctypes
class _DpxGenericHeaderBigEndian(ctypes.BigEndianStructure):
_fields_ = [
('Magic', ctypes.c_char * 4),
('ImageOffset', ctypes.c_uint32),
('Version', ctypes.c_char * 8),
('FileSize', ctypes.c_uint32),
('DittoKey', ctypes.c_uint32),
('GenericSize', ctyp... | Python | pydpx_meta/low_header_big_endian.py | plinecom/pydpx_meta | mit | 4,246 | 122 | codeparrot/github-code |
e9f76faff7b4d0a5133e73b2ffe1d5ade77dd94f8bc50db97178dec3270cd23d | 'use strict';
const ipc = require('ipc');
const renderBadge = require('./render-badge');
let notificationCounter = 0;
module.exports = () => {
//require('electron-notification-shim')();
const OldNotification = Notification;
Notification = function (title, options) {
// Send this to main thread.
// Catch it i... | JavaScript | webPage.js | kvasir/electron-notifier | mit | 1,325 | 52 | codeparrot/github-code |
2170354768581c31709756b94bf979b3d904dd308b15c3bafadd3b6577a81c41 | package utils;
import java.util.List;
/**
* Created by abforce on 1/14/16.
*/
public class StringUtils {
/**
* This method joins a list of strings by a delimiter
* @param list list of strings
* @param delim delimiter phrase
* @return joined string
*/
public static String join(List<... | Java | src/utils/StringUtils.java | abforce/Web-Mining | mit | 1,977 | 75 | codeparrot/github-code |
e5418a54b2c0e2cac2ab2076fdbdee2e57fac6c87529fbfdf3741b0be524ac32 | /*
* img-stats
* https://github.com/jlembeck/img-stats
*
* Copyright (c) 2013 Jeffrey Lembeck
* Licensed under the MIT license.
*/
/*global require:true, console:true*/
(function(exports) {
"use strict";
var fs = require( 'fs' );
var isPng = function( data ){
var d = data.slice(0, 16);
return d =... | JavaScript | lib/img-stats.js | 4nd3rs/grunticon | mit | 2,447 | 101 | codeparrot/github-code |
70dfbbeebd978fbf4f9d9945b7c339f4fbacbe27323afef5742c9f58eff86b4b | import React, {Component} from 'react';
import ReactDOMServer from 'react-dom/server'
import counterpart from 'counterpart';
import mapboxgl from 'mapbox-gl';
import PropTypes from 'prop-types';
import SatelliteControl from './map/satellite-control';
import CameraControl from './map/camera-control';
class Map extends ... | JavaScript | client/src/components/map.js | BrunoSalerno/citylines | mit | 6,918 | 278 | codeparrot/github-code |
f9bce60ee40904991dffd86610b79e45be52fca04573923f4a7b9fb81ca7d97e | using UnityEngine;
using System.Collections;
namespace CatAttack
{
public enum Phase
{
Setup,
Prepare,
Attack,
Endgame,
Number
}
public class Match : NetworkMonoBehaviour
{
#region inspector
/// <summary>
/// Minimum amount of players to join before starting
/// </summary>
public int Minimu... | C# | Assets/Scripts/Match.cs | Earthwalker/CatAttack | mit | 5,338 | 263 | codeparrot/github-code |
4bc908973d75cddebf80e241def1c48e712cb7863afe95728a1cdd20c45b1374 | module Identity
class Auth < Sinatra::Base
register ErrorHandling
register HerokuCookie
register Sinatra::Namespace
include Helpers::API
include Helpers::Auth
include Helpers::Log
configure do
set :views, "#{Config.root}/views"
end
before do
@cookie = Cookie.new(env[... | Ruby | lib/identity/auth.rb | heroku/identity | mit | 10,637 | 312 | codeparrot/github-code |
db09b7494e390ba26e9cdebc6ddbcf4640150e1d1cb7ef8505c0f8a913ab1619 | package com.poofycow.socketserver.tcp;
import java.io.IOException;
import java.net.Socket;
import java.util.HashMap;
import java.util.LinkedList;
import com.poofycow.socketserver.SocketServer;
import com.poofycow.socketserver.tcp.listeners.TcpCommandListener;
import com.poofycow.utils.logger.LogLevel;
import com.poof... | Java | src/com/poofycow/socketserver/tcp/TcpSocketServer.java | PoofyCow/SocketServer | mit | 2,403 | 87 | codeparrot/github-code |
2031af6fdb878247ec0cde0a35a5e00c90aca09947946dd1555cbe66b2af98fa | var Definition = require('../definitionBase'),
util = require('util'),
_ = require('lodash'),
dotty = require('dotty'),
debug = require('debug')('denormalizer:eventExtender');
/**
* EventExtender constructor
* @param {Object} meta Meta infos like: { name: 'name', version: 1, payload: 'some.pa... | JavaScript | lib/definitions/eventExtender.js | adrai/node-cqrs-eventdenormalizer | mit | 7,049 | 258 | codeparrot/github-code |
13237939b2836c957d60b30feb6e5309ca8c2bf4fdbee623b7c7722aa22c7700 | $(document).on('keydown', function(e) {
// F1
if (e.which == 112) {
e.preventDefault();
//console.log('F1');
repeat_last();
return false;
}
});
$(document).on('click', '#repeat-button', function() {
//console.log('repeat button clicked');
repeat_last();
});
$(document).on('click', '#junk-but... | JavaScript | static/js/context_menu.js | hjweide/plankton-species | mit | 10,598 | 347 | codeparrot/github-code |
859d696f3a1dbb5a5d0f2368a899fd17383a32806556fb4783f75f539a7b6566 | <?php
/**
* Copyright 2009 - 2014, Cake Development Corporation (http://cakedc.com)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2009 - 2014, Cake Development Corporation (http://cakedc.com)
* @license MIT License (http://www.opens... | PHP | Lib/CakeMigration.php | ExpandOnline/migrations | mit | 17,474 | 663 | codeparrot/github-code |
549fb647704cbce08917eda3cfee8da020aff67e5a03c98a588c8f22508b010f | <?php
/**********************************
* PHP Game Framework *
* Published under MIT License *
* Copyright (c) 2013-2014 Third Planet Team *
**********************************/
class PermissionsModel extends Modeles {
const GROUP_TABLE_NAME = 'gf_groups';
const PERMS_TABLE_NAME = 'gf_perms';
... | PHP | framework/modeles/account/permissions.php | ThirdPlanetTeam/GameFramework-old | mit | 1,620 | 48 | codeparrot/github-code |
48a786c3be602813c7a33099aeccd1cb4f00a1fcbc49872cd350a280a3d38cca | #!/usr/bin/env ruby
require "ripdiru/version"
require 'net/https'
require 'rexml/document'
require 'uri'
require 'pathname'
require 'base64'
require 'open-uri'
require 'date'
require 'fileutils'
module Ripdiru
class DownloadTask
TMPDIR = ENV['TMPDIR'] || '/tmp'
SCHEDULE_URL = "http://www2.nhk.or.jp/hensei/... | Ruby | lib/ripdiru.rb | harupong/ripdiru | mit | 3,992 | 157 | codeparrot/github-code |
81890d75739f4b52b70f85aa6a44f8baf351379d82969cd4d7fd359af1bcd38d | import Ember from 'ember';
export default Ember.Controller.extend({
notifications: Ember.inject.service(),
args: Ember.computed.alias('model'),
actions: {
confirmAccept: function () {
var args = this.get('args'),
editorController,
model,
... | JavaScript | core/client/app/controllers/modals/leave-editor.js | cncodog/Ghost-zh-codog | mit | 1,772 | 61 | codeparrot/github-code |
4d12b11139b93cca09de815df4c35600b8a5e2cb157cbdf566a501acb49ef9a3 | #include "ofxDarknetGo.h"
ofxDarknetGo::ofxDarknetGo() : ofxDarknet()
{
active = -1;
inverted = 1;
noi = 1;
nind = 5;
}
void ofxDarknetGo::setMouseActive(bool active) {
if (active) {
ofAddListener(ofEvents().mouseMoved, this, &ofxDarknetGo::mouseMoved);
ofAddListener(ofEvents().mo... | C++ | src/ofxDarknetGo.cpp | mrzl/ofxDarknet | mit | 9,895 | 329 | codeparrot/github-code |
7e19598fc02133666108743292d6bff7c32797be026aa8250a0d0469c0c53f8a | package com.jeiker.demo.jwt;
import org.springframework.security.authentication.AbstractAuthenticationToken;
import org.springframework.security.core.userdetails.UserDetails;
/**
* @Author : xiao
* @Date : 17/8/4 上午9:44
*/
public class JsonWebTokenAuthentication extends AbstractAuthenticationToken {
private s... | Java | spring-boot-jwt/src/main/java/com/jeiker/demo/jwt/JsonWebTokenAuthentication.java | jeikerxiao/SpringBootStudy | mit | 933 | 37 | codeparrot/github-code |
f600dcb5d60b5d1566375b9e89aeaa713ad526b70ac7926d0b02322b18ae1510 |
import metrics
def rate(artToCatSim, label, membershipData, categoryTree, artNamesDict, catNamesDict):
# countBefore1 = artToCatSim.count_nonzero()
# for article in membershipData:
# id_and_categories = article.split('\t')
# articleId = int(id_and_categories[0])
# del id_and_categories... | Python | notebooks/calcs/rating.py | pcejrowski/iwi | mit | 2,328 | 65 | codeparrot/github-code |
9795093be33890e5c8f33096249187857669330cf87556e267eb2defd510cd4b | package com.metagenomix.android.processing;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.util.Log;
import com.metagenomix.android.MetagenomixApplication;
import com.metagenomix.android.activities.ConversionActivity;
import com.metagenomix.android.model.DNASegment;
imp... | Java | app/src/main/java/com/metagenomix/android/processing/QueueFeeder.java | ffloreani/Metagenomix-Android | mit | 3,881 | 118 | codeparrot/github-code |
1ff9df3d38cd1af69efd1693ee343f45e5fd01ab888c5474243762c356078eac | package com.jtbdevelopment.games.security.spring;
import com.jtbdevelopment.games.GameCoreTestCase;
import com.jtbdevelopment.games.dao.AbstractPlayerRepository;
import com.jtbdevelopment.games.stringimpl.StringPlayer;
import java.time.Instant;
import org.junit.Assert;
import org.junit.Test;
import org.mockito.Mockito... | Java | games-web/src/test/java/com/jtbdevelopment/games/security/spring/LastLoginUpdaterTest.java | jtbdevelopment/core-games | mit | 2,103 | 60 | codeparrot/github-code |
b7d8bb8a0619392f9f712de13e8045e39d316691c0a3c227b3a5a293d05ae045 | import json
from flask import abort, request, views, make_response
from warmsea import db
from warmsea.models import Category
from . import forms
class CategoriesView(views.MethodView):
"""/Categories
"""
response_headers = {
"Content-Type": "application/json; charset=utf-8"
}
# @auth... | Python | warmsea/models/rest_handlers.py | warmsea/warmsea.net | mit | 1,844 | 67 | codeparrot/github-code |
7c3ce32500d724ca1d013b80b0bf01860a612a6c2b9a70d25578f8b0d6c3ee3a | /*
* Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | C | Boss2D/addon/webrtc-jumpingyang001_for_boss/modules/audio_processing/agc2/rnn_vad/pitch_search_internal.h | koobonil/Boss2D | mit | 4,971 | 108 | codeparrot/github-code |
9817be02967bd4acd28ecf8082bf8738a5ebfe987a3208c39f248899cfd18c94 | namespace Auction.Data
{
using System;
using System.Data.Entity;
using System.Linq;
using Auction.Models.Common;
using Microsoft.AspNet.Identity.EntityFramework;
using Models;
public class AuctionDbContext : IdentityDbContext<User>, IAuctionDbContext
{
public AuctionDbContext()... | C# | Auction/Data/Auction.Data/AuctionDbContext.cs | MarinMarinov/ASP.NET-MVC-Graduation-Project | mit | 2,014 | 69 | codeparrot/github-code |
2fcbddd3b0394133434625e608e31001fce34138d73f353e3e44481574db0189 | import * as TYPE from '../mutation-types'
const state = {
searchHistory: {
hotData: [],
historyData: [],
timeStamp: ''
}
}
/* api getters can use all */
const getters = {
searchHistory: state => state.searchHistory
}
const mutations = {
[TYPE.SEARCH_HISTORY_INIT] (state, {searchHistory}) {
stat... | JavaScript | src/vuex/modules/searchHistory.js | k186/vueDemo | mit | 915 | 38 | codeparrot/github-code |
04c440f68ff63892197b281fd678ccdeef7d5efc572958266c2ce10c291fa221 | <?php
namespace EdgeCreativeMedia\JapanLocation\Repository;
/**
* Provides the region list.
*
* Choosing the source at runtime allows integrations (such as the symfony
* bundle) to stay agnostic about the intl library they need.
*/
class JapanRegionRepository implements JapanRegionRepositoryInterface
{
use ... | PHP | src/Repository/JapanRegionRepository.php | edgecreativemedia/japanlocation | mit | 4,646 | 160 | codeparrot/github-code |
9a8e957df7f5a54b2c6288b37c5ff7e7b72ff58a5dac7115ec763ba5ff80088e | package website.automate.manager.api.client.model;
import java.util.Objects;
public abstract class AbstractEntity {
private String id;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
@Override
public int hashCode() {
retur... | Java | src/main/java/website/automate/manager/api/client/model/AbstractEntity.java | automate-website/manager-api-client | mit | 644 | 32 | codeparrot/github-code |
683595ce6dc87d296b8d1e7d679e86dfaa22ebb7afb681cae3bff180a088be7c | // # Backup Database
// Provides for backing up the database before making potentially destructive changes
var fs = require('fs-extra'),
path = require('path'),
Promise = require('bluebird'),
config = require('../../config'),
common = require('../../lib/common'),
urlUtils = require('../../lib/url-ut... | JavaScript | core/server/data/db/backup.js | kevinansfield/Ghost | mit | 1,750 | 61 | codeparrot/github-code |
bbd1c395e91ef0ea67f571146a416353cf9774e1b95ad95012d9980679e2ea19 | class Ey::Core::Client
class Real
def destroy_logical_database(params={})
id = params["id"]
url = params.delete("url")
request(
:path => "/logical-databases/#{id}",
:url => url,
:method => :delete,
)
end
end
class Mock
def destroy_logical_databas... | Ruby | lib/ey-core/requests/destroy_logical_database.rb | engineyard/core-client-rb | mit | 1,051 | 42 | codeparrot/github-code |
2efb26ce7e9af2118a96c49e0a69df61feca7be5db4aacaeb7b9da278b33b335 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>Techmakers|Rotilio All in One</... | HTML | rotilio-all-in-one.html | techmakers/techmakers.github.io | mit | 17,181 | 326 | codeparrot/github-code |
271d4069906a0e67d8e6be6beecadbe2e05f4cf23626d79901b88a934d273df2 | package edu.ucsb.cs56.w14.drawings.kylejorgensen.advanced;
import java.awt.Graphics2D;
import java.awt.geom.Line2D; // single lines
import java.awt.geom.Ellipse2D; // ellipses and circles
import java.awt.geom.Rectangle2D; // for the bounding box
import java.awt.Rectangle; // squares and rectangles
import java.awt.g... | Java | src/edu/ucsb/cs56/W14/drawings/kylejorgensen/advanced/AllMyDrawings.java | UCSB-CS56-W14/CS56-W14-lab06 | mit | 3,414 | 115 | codeparrot/github-code |
b567a95b743c1f671edf8541503106ff3321b8908da06ee02dfa1b535ec196b9 | <?php
if ($spell_checked == "143") {
unset($arCacheData["143"]);
$total_return = "Please select any one category";
$options_list[] = "LOVE CALCULATOR";
$list[] = array("content" => "__143__love__");
$options_list[] = "FLAMES TEST";
$list[] = array("content" => "__143__flames__");
$options_... | PHP | 143.php | Innoz-Technologies/SMSGyan | mit | 23,125 | 347 | codeparrot/github-code |
d1b7fc61710a25591c6ed16bcfac922b8bf06f325db31d927ccb6bf1df8a8a51 | =pod
=head1 NAME
X509_LOOKUP_hash_dir, X509_LOOKUP_file,
X509_load_cert_file,
X509_load_crl_file,
X509_load_cert_crl_file - Default OpenSSL certificate
lookup methods
=head1 SYNOPSIS
#include <openssl/x509_vfy.h>
X509_LOOKUP_METHOD *X509_LOOKUP_hash_dir(void);
X509_LOOKUP_METHOD *X509_LOOKUP_file(void);
i... | Perl | extern/openssl.orig/doc/crypto/X509_LOOKUP_hash_dir.pod | vbloodv/blood | mit | 3,946 | 115 | codeparrot/github-code |
81dcc5f20e7b6a99141bae5b708ffa42b343207cb01a5ff04f7a558e1ad10c40 | <HTML><HEAD>
<TITLE>Review for Spellbound (1945)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0038109">Spellbound (1945)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?Dennis+Schwartz">... | HTML | data science/machine_learning_for_the_web/chapter_4/movie/29666.html | xianjunzhengbackup/code | mit | 5,413 | 87 | codeparrot/github-code |
082b6bcc6344b53aef0ea3a4b405054acc733dbfb6b91151bebb37035f9e473c | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>euclidean-geometry: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootst... | HTML | clean/Linux-x86_64-4.07.1-2.0.6/released/8.14.0/euclidean-geometry/8.7.0.html | coq-bench/coq-bench.github.io | mit | 7,872 | 171 | codeparrot/github-code |
1c03b0fa3b12caf15637a18b34d593ebf97bbcab344c2ae1160fb6ecedd2695f | package net.fortytwo.ripple.libs.logic;
import net.fortytwo.ripple.test.RippleTestCase;
import org.junit.Test;
/**
* @author Joshua Shinavier (http://fortytwo.net)
*/
public class OrTest extends RippleTestCase {
@Test
public void testSimple() throws Exception {
assertReducesTo("true true or.", "true... | Java | ripple-core/src/test/java/net/fortytwo/ripple/libs/logic/OrTest.java | joshsh/ripple | mit | 1,003 | 32 | codeparrot/github-code |
7857bf9c8f8edb9c66b3d4b4acdb466e8bba06373b0f84421ff8279fb9f76d75 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using Guitar32;
using Guitar32.Common;
using Guitar32.Exceptions;
namespace Guitar32.Validations
{
public class Numeric : Validator, INumericDatatype
{
public static String expre... | C# | Guitar32/Validations/Numeric.cs | allenlinatoc/guitar32 | mit | 1,855 | 63 | codeparrot/github-code |
0a5f40a641a4bb4f325ea96c9dd73cb40775557f3dad2c6b5bcb3eb1eaca8c5f | // Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The Las Vegas Coin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-l... | C++ | src/rpcmisc.cpp | midnight-miner/LasVegasCoin | mit | 21,900 | 503 | codeparrot/github-code |
ff254618b77e393e2d11b48bfa21b0ac13177031a64cd569091304272e2f3167 | var utility = {
'articleTitle':'',
'apiUrl':'https://en.wikipedia.org/w/api.php?callback=?',
'revisionUrl' : 'https://en.wikipedia.org/w/index.php?oldid=',
'redirectTitle' : function(title){
var check_redirect_dict = {
'action':'query',
'format':'json',
'titles':title,
'redirects':''
};
var th... | JavaScript | slider.js | cosmiclattes/wikislider | mit | 21,904 | 578 | codeparrot/github-code |
e3d134593cac463cdd936f8338929f4c9a8df59244c7733dbeadffaae7161a2b | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin Developers
// Copyright (c) 2011-2012 The Negativity developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
//
// Why base-58 instead of... | C | src/base58.h | linuxmahara/Negativity5-1 | mit | 11,829 | 421 | codeparrot/github-code |
448be41039ded7438d254f51f5a603f26e32d8618797b3547ad3c5f71221eba1 | namespace EnergyTrading.MDM.Test.Services
{
using System;
using System.Collections.Generic;
using System.Linq;
using NUnit.Framework;
using Moq;
using EnergyTrading.Contracts.Search;
using EnergyTrading.MDM.Contracts.Sample; using EnergyTrading.Mdm.Contracts;
using EnergyTrading.Data;... | C# | Code/Service/MDM.UnitTest.Sample/Services/PartyCreateSearchFixture.cs | RWE-Nexus/EnergyTrading-MDM-Sample | mit | 3,499 | 90 | codeparrot/github-code |
2455912427eb6534de603d3046a4b2ec0decba8fe5e9c5d455bd617421d1de4f | #!/usr/bin/env python
import argparse
import logging
import os
import shutil
import sys
import glob
# Location of saved templates
SAVE_DIR = os.environ.get("RECYCLE_TEMPLATES_DIR", "~/.recycle")
try:
input = raw_input
except NameError:
pass
def should_overwrite(typeOfThing, path):
assert os.path.exists(p... | Python | recycle/recycle.py | williamg/recycle | mit | 6,538 | 239 | codeparrot/github-code |
5fcb329e3f56e0fc0062a7b74e969a8b4c64f057951c180c011b0bf4723e733d | import {TokenService} from '@/services'
import {mutationTypes} from "./user";
const types = {
CHECK_TOKEN: 'checkToken',
DELETE_TOKEN: 'deleteToken',
CREATE_TOKEN: 'createToken'
};
const token = {
state: {},
mutations: {},
actions: {
[types.CHECK_TOKEN]({commit, getters}){
return new Promise(... | JavaScript | client/src/store/modules/token.js | daizch/vue-admin | mit | 1,133 | 49 | codeparrot/github-code |
b2ecfae6a01b0b0d015dd2bdee396909eb3991c55405f44fd4ced3e5e1f52f57 | import Phaser from 'phaser'
/**
* Class for handling input interaction with keyboard and touch devices
*/
export default class {
constructor({ game }) {
this.jump = false
this.game = game
// add handling for spacebar
let space = this.game.input.keyboard.addKey(Phaser.KeyCode.SPACEBAR)
space.on... | JavaScript | src/extensions/Input.js | chlab/run-to-the-reithalle | mit | 754 | 37 | codeparrot/github-code |
6c677570731a945118b8ce0270508a51d0003a4c7f64da330099d340a0f2aec1 | <?php
/**
* Webiny Platform (http://www.webiny.com/)
*
* @copyright Copyright Webiny LTD
*/
namespace Apps\Webiny\Php\Lib;
use MongoDB\BSON\Regex;
use Webiny\Component\Rest\RestTrait;
use Webiny\Component\StdLib\StdObject\StdObjectWrapper;
/**
* Provides you with access to an object containing the data about cu... | PHP | Php/Lib/Request.php | Webiny/Webiny | mit | 4,784 | 192 | codeparrot/github-code |
b647fbaa970b7e7a2bdd80b893dddf2a71bb0a5b73d6dd9c4dfb24dbbad33ab1 | #!/usr/bin/env node
/**
* Created by zhs007 on 15/10/22.
*/
var fs = require('fs');
var process = require('process');
var iconv = require('iconv-lite');
var Iconv = require('iconv-lite').Iconv;
var glob = require('glob');
var argv = require('yargs')
.option('i', {
alias : 'input',
demand: true,
... | JavaScript | bin/chgcharset.js | zhs007/chgcharset | mit | 3,607 | 154 | codeparrot/github-code |
41dcaae0e97955b60e5fc5fbf61753019ff9c41d5134dd119aeb4deff78f1456 | <?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- /fasttmp/mkdist-qt-4.3.5-1211793125/qtopia-core-opensource-src-4.3.5/src/svg/qsvgwidget.cpp -->
<head>
<title>Qt 4.... | HTML | webserver/html/qsvgwidget-members.html | misizeji/StudyNote_201308 | mit | 34,117 | 353 | codeparrot/github-code |
6b0d4d43fe28f5c00e8223a0c3b8c1a79d23f7575599ca81c137ba79043485bc | package com.Da_Technomancer.crossroads.blocks;
import java.util.Random;
import com.Da_Technomancer.crossroads.API.Capabilities;
import com.Da_Technomancer.crossroads.API.Properties;
import com.Da_Technomancer.crossroads.items.ModItems;
import com.Da_Technomancer.crossroads.tileentities.RatiatorTileEntity;
import com... | Java | src/main/java/com/Da_Technomancer/crossroads/blocks/Ratiator.java | Da-Technomancer/Crossroads | mit | 9,268 | 246 | codeparrot/github-code |
97b357c821dd6fbcb8835beda61a635f128f408bca83489b66d912c62e97348b | /**
* Copyright (c) 2016-present ZENOME, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT-style license found in the
* LICENSE file in the root directory of this source tree.
*/
(function() {
var NodeGit = require("nodegit");
var util_github = new Object();
try {
util_github.... | JavaScript | app/routes/release/util_github.js | zenome/BundleBus_backend | mit | 1,887 | 71 | codeparrot/github-code |
94e71611dae1b1d7d7b4860a42cafe5210a235d3978f9790d5f6be0daa4c5671 | <?php
/* TwigBundle:Exception:error.xml.twig */
class __TwigTemplate_730e210cad7a93d34df32690cc30e9d03dfeddf53dabeb3274d161f37f81ac05 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
... | PHP | app/cache/dev/twig/73/0e/210cad7a93d34df32690cc30e9d03dfeddf53dabeb3274d161f37f81ac05.php | alokggokhe/Test-Cedegiam-2 | mit | 1,300 | 47 | codeparrot/github-code |
88544b1a65e9e79aa28909f1789f4ea1e83f4c21b7b54035d18af1c3a21cf7ca | package cli
import (
"github.com/containerum/chkit/pkg/cli/configmap"
"github.com/containerum/chkit/pkg/cli/deployment"
"github.com/containerum/chkit/pkg/cli/ingress"
"github.com/containerum/chkit/pkg/cli/prerun"
"github.com/containerum/chkit/pkg/cli/service"
"github.com/containerum/chkit/pkg/context"
"github.c... | GO | pkg/cli/create.go | containerum/chkit | mit | 1,162 | 43 | codeparrot/github-code |
a7e056f2ceb02f43bc7295598f4520467ee8b7f5711680a8d3b049ed888e3d43 | #!/usr/bin/env/python
from __future__ import print_function
import MDAnalysis as mda
from MDAnalysis.analysis.distances import contact_matrix
import numbers
import operator
def contact_sample(siatom, sample, vdw_radii, overlap=1.0):
"""
Checks if atom of silica is in contact with the protein+water system
... | Python | simulation/silica/amorphous_from_md/confineBSA/poretop/carve_silica.py | jmborr/confinedBSA | mit | 11,095 | 282 | codeparrot/github-code |
b2fd581199be47d9ab3ca5f9e6fac706cb3865187fb59e31b56984d3f1ebee7a | module CaseFilter
class ExemptionFilter < CaseMultiChoicesFilterBase
class << self
def identifier
"filter_exemption"
end
def filter_attributes
[:common_exemption_ids, :exemption_ids]
end
def filter_fields(filter_fields)
filter_fields[:common_exemption_i... | Ruby | app/services/case_filter/exemption_filter.rb | ministryofjustice/correspondence_tool_staff | mit | 2,617 | 94 | codeparrot/github-code |
61af125121de6f513fd466d2ffc8012af75a4b268e9cd2197e4aa41b6ec17604 | // Copyright (c) Alex Ghiondea. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using SmugMug.v2.Authentication;
namespace SmugMug.v2.Types
{
public partial class FolderListEntity : SmugMugEntity
{
private bool _c... | C# | src/SmugMug.NET/Types/AlbumFolderPage/FolderList/FolderList.properties.cs | AlexGhiondea/SmugMug.NET | mit | 1,482 | 57 | codeparrot/github-code |
a712e48410bc52aa047df75e24bc2c22a94fb7971813e2528c5d9655007ce4be | var Promise = require('bluebird'),
fs = require('fs'),
semver = require('semver'),
packageInfo = require('../../package.json'),
errors = require('./errors'),
config = require('./config');
function GhostServer(rootApp) {
this.rootApp = rootApp;
this.httpServer = null;
this.conn... | JavaScript | core/server/ghost-server.js | PHILIP-2014/philip-blog | mit | 6,720 | 210 | codeparrot/github-code |
3ae50d29179f216a3f855af69bede17c247758a5d19b43747315084c7d5146d8 | class <%= class_name %> < RubiGen::Base
DEFAULT_SHEBANG = File.join(RbConfig::CONFIG['bindir'],
RbConfig::CONFIG['ruby_install_name'])
default_options :author => nil
attr_reader :name
def initialize(runtime_args, runtime_options = {})
super
usage if args.empty?
@des... | Ruby | rubygems_generators/application_generator/templates/generator.rb | doudou/rubigen | mit | 2,034 | 71 | codeparrot/github-code |
b2b3b981d1f639c278d5ed4be12866768d912472ac1eac7536c148540c0a5061 | #include "log.hpp"
#include "initype.hpp"
#include "iniobject.hpp"
#include "iniparser.hpp"
#include "bigfilesystem.hpp"
#include <algorithm>
namespace OpenBFME {
namespace {
/* Creates the IniType used to parse IniType definitions. Recursivly creates identical subtypes recursion layers deep. */
IniType makeDefiniti... | C++ | iniparser/initype.cpp | chipgw/openbfme | mit | 2,921 | 89 | codeparrot/github-code |
3f2a08d07c92d2238c0468e0f675d522866aefe7c5d3084214f2ab88ede64c85 | require "demoji/version"
require 'active_support/concern'
require 'active_support/core_ext/module/aliasing'
require 'active_support/core_ext/object/blank'
module Demoji
extend ActiveSupport::Concern
included do
alias :create_or_update_without_utf8_rescue :create_or_update
alias :create_or_update :create_... | Ruby | lib/demoji.rb | taskrabbit/demoji | mit | 1,214 | 52 | codeparrot/github-code |
42965394a2f7bd8b8e08398860d3e581388e26797daeadeca0a037a60f184bf9 | #include "windows-binary-file-io.hpp"
#include "../../defines.hpp"
#include "../../debug.hpp"
#include "../../types/string.hpp"
namespace DadEngine::Core
{
WindowsBinaryFile::WindowsBinaryFile (const char *_InFilePath, IOModeFlag _InIOMode)
{
switch (_InIOMode)
{
case IO_MODE_READ:
... | C++ | src/core/platform/windows/windows-binary-file-io.cpp | Gotatang/DadEngine_2.0 | mit | 2,426 | 91 | codeparrot/github-code |
890b6e1ae4bd1904e1209f86a4a13b908cfacfbc1ae901ab9a7a7c4e7a47d1fc | module Naver # :nodoc:
# Naver Search API
class Search < Client
class << self
# Search > Blog (검색 > 블로그)
# @param params [Hash] Params for the search
def blog(params = {})
parse(JSON.parse(connection.get("/v1/search/blog", params).body))
end
# Search > News (검색 > 뉴스)
... | Ruby | lib/naver/search.rb | kimsuelim/naver-sdk-ruby | mit | 3,161 | 99 | codeparrot/github-code |
96e575f6aa57a81b28ff43ff286d802175184f3af84743326af454371eec0595 | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="LogUtility.cs" company="Sean McElroy">
// Copyright Sean McElroy; released as open-source software under the licensing terms of the MIT License.
// </copyright>
// <summary>
// ... | C# | Mystiko.Library/LogUtility.cs | seanmcelroy/Mystiko | mit | 4,509 | 106 | codeparrot/github-code |
391d363d4d42ce3aa4bc12934fc80eade99effa53cfaf0bb9fd85c895767191f | export namespace RouteAnalysisCode {
/**
* Issue when route parameters doesn't have association
* with action parameters
*/
export const UnAssociatedParameters = 1;
/**
* Only applied on GET method, issue when action contains parameter
* but route doesn't have any
*/
export ... | TypeScript | packages/kamboja-core/src/router/route-analysis-code.ts | kambojajs/kamboja | mit | 1,114 | 41 | codeparrot/github-code |
2eea785120b26c238f1804e959f80ea6289a344b6c56b3c8e881debfce0907b5 | /*
Copyright(c) 2016-2020 Panos Karabelas
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distrib... | C | Editor/Widgets/Widget_World.h | PanosK92/Directus3D | mit | 3,015 | 80 | codeparrot/github-code |
f603c37cc47238c04f074d1530f2d62972b80f0bed2238431ea3d44b48a32b25 | <section class="content-header">
<h1>
项目信息查询
<small>列表</small>
</h1>
<ol class="breadcrumb">
<li><a href="${basePath}"><i class="fa fa-dashboard"></i> 首页</a></li>
<li><a href="#">项目信息</a></li>
<li class="active">项目信息查询</li>
</ol>
</section>
<section c... | HTML | AdminEAP-web/src/main/webapp/WEB-INF/views/projectmanage/project/project_query_list.html | Squama/Master | mit | 12,402 | 235 | codeparrot/github-code |
3fb767d177062cee37a0409e096cf84523f8286fd64d7b58f11e41bb5904f713 | <!--
> Muaz Khan - github.com/muaz-khan
> MIT License - www.webrtc-experiment.com/licence
> Documentation - www.RTCMultiConnection.org
-->
<!DOCTYPE html>
<html id="home" lang="en">
<head>
<title>Manual session establishment + extra data transmission using RTCMultiConnection ® Muaz Khan</title>
<meta ht... | HTML | v2.2.2/demos/manual-session-establishment-plus-extra-data-transmission.html | VictorJu/webRTCDemo_nodeServer | mit | 13,257 | 440 | codeparrot/github-code |
cbef50370cbb77c61cfee6a232ac6cc7d5cfd7c29b5a6c919b75fb5755025468 | 'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var __chunk_1 = require('./chunk-14c82365.js');
var __chunk_5 = require('./chunk-13e039f5.js');
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var script = {
name: 'NavbarBurger',
props: {
isOpened: {
type: Boolean,
defaul... | JavaScript | ajax/libs/buefy/0.9.3/cjs/navbar.js | cdnjs/cdnjs | mit | 18,607 | 669 | codeparrot/github-code |
4e279e06720655442c49ee1381a992ce7759946ff2d05e942691c80ddfed1750 | <?php
/*
* Gwatkin, 15146508
*/
namespace cgwatkin\a3\controller;
use cgwatkin\a3\exception\LoadTemplateException;
use cgwatkin\a3\exception\MySQLDatabaseException;
use cgwatkin\a3\exception\MySQLIStatementException;
use cgwatkin\a3\exception\MySQLQueryException;
use cgwatkin\a3\model\UserModel;
use cgwatkin\a3\view... | PHP | web/src/controller/UserController.php | CaiGwatkin/PHP_StockControlSystem | mit | 8,729 | 260 | codeparrot/github-code |
0682594f007acca6618f647c76c15f48cc6cd0fa5631f7089a0db60d678157ee | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>regexp: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css"... | HTML | clean/Linux-x86_64-4.04.2-2.0.5/released/8.5.2~camlp4/regexp/8.6.0.html | coq-bench/coq-bench.github.io | mit | 7,285 | 171 | codeparrot/github-code |
43ed17de4b5c9cac484c399ba1e58e3fe2f91ff4c28b0e50eae40c828daad90b |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>W21789_extracted</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div style="margin-left: auto; margin-right: auto; width: 800px; overflow: hidden;">
... | HTML | ocr_extracted/W21789_text/page3.html | datamade/elpc_bakken | mit | 2,737 | 41 | codeparrot/github-code |
d39c09d142131d0342f9c78cb2c5a39940cd9692d50dbffba128773456b23e92 | from parsley.decorators import update_widget_attrs
#
# Hack of parsleyfy decorator: remove hardcoded jquery url.
#
def parsleyfy(klass):
"A decorator to add {prefix}-* attributes to your form.fields"
old_init = klass.__init__
def new_init(self, *args, **kwargs):
old_init(self, *args, **kwargs)
... | Python | aaee_front/lib/parsley_decorator.py | aaee-enscachan/aaee-front | mit | 1,386 | 43 | codeparrot/github-code |
fe84179be730c14bc643151c88608c50fe7b2a1366fdf7015c985f1f57c213e4 | package edu.doane.dugal.istsched;
import edu.doane.dugal.dea.DEA;
import edu.doane.dugal.dea.Individual;
import edu.doane.dugal.dea.Problem;
import edu.doane.dugal.dea.kits.general.DiversityThresholdStats;
import edu.doane.dugal.dea.kits.general.ElitistTournamentSelection;
import edu.doane.dugal.dea.kits.general.Evalu... | Java | src/edu/doane/dugal/istsched/ISTSchedule.java | mmeysenburg/DEA | mit | 10,074 | 269 | codeparrot/github-code |
a522c09bc819b01a8fdb104ede6ac0358f99d439160c05acabf86ef49953559a | <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>2017-AR-12</title>
<script>
window.stringsLanguage = 'ar';
</script>
<script class="remove" type="text/javascript" src="../../../_common/modules/pemFioi/importModules-1.1.js" id="import-modules"></script>
<script class="remov... | HTML | bebras/2017/2017-FR-12-distinct-paths/index_ar.html | France-ioi/bebras-tasks | mit | 9,413 | 194 | codeparrot/github-code |
73a2859b0c9e3fdaf7b4aec95cefd082ad6f7dd9037d2689ded96b610828a659 | from PdfProcessor import *
import argparse
from datetime import datetime
import ConfigParser
import ProcessLogger
import traceback
from urllib2 import HTTPError, URLError
parser = argparse.ArgumentParser(description='Processes the pdf and extracts the text')
parser.add_argument('-l','--language', help='Language of inp... | Python | run.py | anjesh/pdf-processor | mit | 2,284 | 50 | codeparrot/github-code |
f60fb84c53f9e3ee2a87ec47344d258060627afbb469abd26e8823836a4ecf33 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Options extends CI_Controller {
function __construct() {
parent::__construct();
$this->load->model('Options_model', 'Options');
}
public function index_general() {
$data['content'] = 'options/general_opti... | PHP | application/controllers/backend/Options.php | justpoypoy/rakitan | mit | 4,640 | 104 | codeparrot/github-code |
ce6bef23509094e3a0f1c33b08ab5924bd81d347c24864b099e6d8b646e77f34 | var JThreadPoolManager = Java.type('net.arnx.rhinode.core.ThreadPoolManager');
var JCompletableFuture = Java.type('java.util.concurrent.CompletableFuture');
var JPromiseException = Java.type('net.arnx.rhinode.core.PromiseException');
var JCompletionException = Java.type('java.util.concurrent.CompletionException');
... | JavaScript | src/main/resources/net/arnx/rhinode/core/promise.js | hidekatsu-izuno/rhino-postcss | mit | 3,565 | 140 | codeparrot/github-code |
91a88b2613a82ccdf99ab618e4f71ba09bb32ed8a0e598818462c1c4ebf6c512 | <?php
namespace Commune\Foundation\Console;
use Illuminate\Contracts\Foundation\Application;
use Illuminate\Filesystem\Filesystem;
use Commune\Foundation\Console\Optimize\OptimizeProjects;
use Illuminate\Console\Command;
class ProjectClearCommand extends Command
{
use OptimizeProjects;
/**
* The consol... | PHP | commune/Foundation/Console/ProjectClearCommand.php | thirdgerb/commune-framework | mit | 1,801 | 71 | codeparrot/github-code |
7ad57e09ea5a18a6cb8abd1743aaa4a1781b504fa2e67912208ba551974a54f1 | (function ($, w) {
var dateFormat = function() {
var token = /d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,
timezone = /\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,
timezoneClip = /[^-+\dA-Z]/g,
pad... | JavaScript | js/script.js | Husamuddin/calender | mit | 8,932 | 338 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.