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
2c80809eb21c0af7869b566e32e55f11f8c096a16d776cae7dee60c891c7fb47
<?php /** * WPSEO Premium plugin file. * * @package WPSEO\Premium\Views */ /** * The import result object. * * @var stdClass $import */ $wpseo_i18n_import_redirects_from = sprintf( /* translators: %s: '.htaccess' file name */ __( 'Import redirects from %s', 'wordpress-seo-premium' ), '<code>.htaccess</code...
PHP
wp-content/plugins/wordpress-seo-premium/premium/classes/views/import-redirects.php
misfit-inc/misfit.co
mit
3,315
82
codeparrot/github-code
9393c51f9b580bbc0ef89d8d850d02d326b089bfa94f4c49896e983bcd6af94d
var target = { name: 'obj' } var logHandler = { get: function (target, key) { console.log(`${key} 被读取`) return target[key] }, set: function (target, key, value) { console.log(`${key} 被设置为 ${value}`) target[key] = value return value } } var targetWithLog = new Proxy(target, logHandler) targ...
JavaScript
src/js/grammar/es6/demos/proxy.js
iamjoel/front-end-demos
mit
3,136
137
codeparrot/github-code
4687e6a7c2aeb01a3e10c123c7e3eca20cf139ce460acd1543fdc18f8894433c
#pragma once #include <SFML/Graphics.hpp> #include <iostream> #include <sstream> #include <iomanip> #include <string> #include <vector> #include <future> #include <thread> #include <chrono> #include <openssl/crypto.h> #include <openssl/sha.h> #include <boost/filesystem.hpp> #include "GUI.hpp" #include "Cursor.hpp" #i...
C++
Source/main.hpp
Mizugola/MeltingSagaUpdater
mit
821
40
codeparrot/github-code
9dfb168cbe604ec673bee5a1d25370eb701ae39d673a15683b82a4c46db853fb
/* :ts=4 * $VER: retroOrFill.c $Revision$ (04-Nov-2017) * * This file is part of retromode. * * Copyright (c) 2017 LiveForIt Software. * MIT License. * * $Id$ * * $Log$ * * */ #include <stdlib.h> #include <stdio.h> #include <exec/exec.h> #include <proto/exec.h> #include <dos/dos.h> #include <exec/type...
C
retromode_files/main/retroOrFill.c
khval/RetroMode-AmigaOS-GFXLIB
mit
2,583
118
codeparrot/github-code
5c5731cb869af042a7e0d2755fbc061c45406e26d96a0c931d1c638ec4292b8a
var N = 1 << 0, S = 1 << 1, W = 1 << 2, E = 1 << 3; self.addEventListener("message", function(event) { postMessage(generateMaze(event.data.width, event.data.height)); }); function generateMaze(width, height) { var cells = new Array(width * height), // each cell’s edge bits remaining = range(widt...
JavaScript
static/generate-wilsons.js
ein3108/lab2
mit
2,171
81
codeparrot/github-code
d65f7e6d3e86e16ed0a86874fb3a363a772dfabafeeb07886ff527b83e1ea352
# coding: utf-8 require "danger/helpers/comments_helper" require "danger/helpers/comment" require "danger/request_sources/support/get_ignored_violation" module Danger module RequestSources class GitLab < RequestSource include Danger::Helpers::CommentsHelper attr_accessor :mr_json, :commits_json ...
Ruby
lib/danger/request_sources/gitlab.rb
beubi/danger
mit
5,528
164
codeparrot/github-code
19fdfb01b982abb3c357ad09f5612199e914df218155b0686393b85760a403fc
/* global Paginate, Utils */ const _ = require('underscore'); module.exports = { // Array of elements items: [], // Current cursor or records cursor: 1, // Page number page: 1, // Items per page perPage: 20, // Next page next: false, // Prev page prev: false, // Total pages total_pa...
JavaScript
app/services/Paginate.js
vulcan-estudios/vulcano
mit
4,896
203
codeparrot/github-code
866a0b04ebd301d28cdba9e7e1607abb1e4cd6d4a18393504c4032f959ea4082
<?php /** * webtrees: online genealogy * Copyright (C) 2016 webtrees development team * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option)...
PHP
webtrees/app/Census/CensusOfDenmark1901.php
fweber1/Annies-Ancestors
mit
2,713
58
codeparrot/github-code
d2025ffc2ef698c49f9bb926725c5394310142940df69de1de7cfc4325110c07
#include "common.h" lua_State *Lbase = NULL; // setups void lbind_setup_draw(lua_State *L); void lbind_setup_fbo(lua_State *L); void lbind_setup_matrix(lua_State *L); void lbind_setup_misc(lua_State *L); void lbind_setup_sandbox(lua_State *L); void lbind_setup_shader(lua_State *L); void lbind_setup_texture(lua_State ...
C
src/lbind.c
fanzyflani/voxycodone
mit
6,857
264
codeparrot/github-code
5b1fac8e7e9c1d52a7239a2cb880038877e1505639f2b2e0781bae459717a2f2
import { AccessTokenEntity } from "../../../src/cache/entities/AccessTokenEntity"; import { mockCache, mockAccessTokenEntity_1, mockAccessTokenEntity_2, mockRefreshTokenEntity, mockAccessTokenWithAuthSchemeEntity } from "./cacheConstants"; import { CacheType } from "../../../src/utils/Constants"; import { ClientAuthErr...
TypeScript
lib/msal-common/test/cache/entities/AccessTokenEntity.spec.ts
AzureAD/microsoft-authentication-library-for-js
mit
3,223
69
codeparrot/github-code
27c1449d0f2af0dfb32e9e70105b6c1f77ce5442b7767428daa325e2c98cb40b
from ebooklib import epub from bs4 import BeautifulSoup from nltk.tokenize import RegexpTokenizer from langtools.translator.TextTranslation import TextTranslation class EPUB(object): """docstring for EPUB""" def __init__(self, book_location): book = epub.read_epub(book_location) # Filter out...
Python
langtools/translator/EPUBTranslation.py
peterFran/LanguageListCreator
mit
1,136
36
codeparrot/github-code
15acd87bf3634b7503dbbc2f03e115f7c2b31e9f76eb55c129601c91a431a8ad
using System; using System.Collections.Generic; using NLog; namespace Ouranos.RedArmory.Models.Services { public sealed class NLogLogService : ILogService { #region Fields private readonly Logger _Logger; private readonly LogFactory _Factory; #endregion #region Co...
C#
source/RedArmory/Models/Services/NLogLogService.cs
takuya-takeuchi/RedArmory
mit
3,029
114
codeparrot/github-code
273cc80c095d781fd450f7b92f5659ca26216fd202e7663525eb82e237a58332
<?php class Message_controller extends CI_Controller{ function __construct() { parent::__construct(); $this->load->model('Message_model'); } public function send_Message() { session_start(); $id = $_SESSION['id']; $targetID=$message...
PHP
application/controllers/Message_controller.php
chalith/Adventure
mit
3,372
75
codeparrot/github-code
461b2c6c4b286aac1d464de62dc2b82d954a8750b57ea1ed2c6d2ffb7914f0ac
from flask import jsonify, request from common.config import read_pre_flight from common.models.client import Client from common.models.command import Command from common.models.output import Output from web.api import api ALL_GOOD = 200 CLIENT_NOT_FOUND = 402 BAD_COMMAND_ID = 403 NO_COMMANDS_FOR_YOU = 404 COMMAND_IS...
Python
web/api/routes.py
Den1al/JSShell
mit
1,982
91
codeparrot/github-code
144af66b397ef41466f4bbafd029edc542326175775a9080277d081ec61219f1
package TVA.Hadoop.Datamining.Tools.Weka.DistanceFunctions; import weka.core.EuclideanDistance; import weka.core.Instance; import weka.core.Instances; import weka.core.TechnicalInformationHandler; import weka.core.neighboursearch.PerformanceStats; /** * Euclidean distance function for classifiers * * @author Andy...
Java
Source/Libraries/Hadoop/src/TVA/Hadoop/Datamining/Tools/Weka/DistanceFunctions/Euclidean.java
rmc00/gsf
mit
2,099
92
codeparrot/github-code
ef6c93be3fdd2e009a8878ebc6e46a9c8b071d612cae00d45f46005220381d9b
module ApplicationHelper include TagsHelper def jquery_include_tag(*libs) js_libs = [] js_opts = {} libs.each do |library| case when library.is_a?(String) js_libs << "jquery/#{library}" when library.is_a?(Hash) js_opts.merge!(library) end end jav...
Ruby
app/helpers/application_helper.rb
nazar/recipetrees
mit
2,312
101
codeparrot/github-code
f454f4aebda92247b1206da06f80d7ee36f061406fb62fcec7e17228edb285c3
<html> <head> <!-- META TAGS --> <meta charset="UTF-8"> <meta name="description" content="Send SMS using Chikka API"> <meta name="keywords" content="SMS,Chikka,Text"> <meta name="author" content="Joene Floresca"> <!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/boo...
PHP
index.php
joenefloresca/SMS-App-with-Chikka-API
mit
2,596
79
codeparrot/github-code
3894fe82c6c5a9d75b09fc69c00f77efcb19c125b423f190fdccebaf33968d3e
/** @license Copyright (c) 2018 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://...
JavaScript
src/actions/app.js
Nacryn/swarm-legends
mit
2,640
94
codeparrot/github-code
98456518a6b88a3c46586ad1cf2fe07fda6d03b597f66f6e6bf624287ad31cac
(function() { //监听DOMContentLoaded chrome.runtime.onMessage.addListener(function(request, sender, sendResponse) { //request就相当于一个事件,当触发的时候就执行下面代码 var bgStatus = request.bgStatus; switch (bgStatus) { case "rmAd": { console.log("content监听到bg的...
JavaScript
去广告插件/content.js
ZichengYan/Chrome-plugin
mit
2,098
73
codeparrot/github-code
5f15a635cda9f4fcef7c94b93c27e83891dbd1a3e2e4ded9823414e7d36ab9ed
using System.Linq; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; namespace YuukoBlog.Controllers { public class PostController : BaseController { [Route("Post/{id}")] public IActionResult Post(string id) { var post = DB.Posts .Include(...
C#
src/YuukoBlog/Controllers/PostController.cs
PomeloFoundation/YuukoBlog
mit
1,914
52
codeparrot/github-code
699ef32fdfc04f8f532f04441d91ec65343fa38339b2fdb1407ec35009255feb
require "active_support/core_ext/hash/slice" require "active_support/core_ext/enumerable" require "active_support/core_ext/array/extract_options" require "active_support/core_ext/regexp" require "action_dispatch/routing/redirection" require "action_dispatch/routing/endpoint" module ActionDispatch module Routing ...
Ruby
actionpack/lib/action_dispatch/routing/mapper.rb
bolek/rails
mit
76,688
2,233
codeparrot/github-code
ee815391159b31c2e91e9e82f598079b7031f74c90504e8d42dd19eafbbbad2c
define(['jquery', 'pageView', 'views/home/flight.airport', 'views/home/flight.date','widget/m/calendar'], function($, PageView, airport, date,calendar) { var FlightView = PageView.extend({ el: "#flightsDiv", ui: { flightRoundTrip: '#flightRoundTrip', flightOneWay: "#flightOneWay", flightAddr...
JavaScript
app/js/views/home/flight.js
rollo-zhou/riipa
mit
4,778
143
codeparrot/github-code
732ed995cf09f6e0bce8fc29cc0d97080ed7f5da60df2e03f2957fac0a4686b4
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import PageForDesk from './components/PageForDesk'; let page = ""; const render = () => { ReactDOM.render( <PageForDesk ref={(c)=>{page = c}}/>, document.getElementById('content') ); window.setElementTree = function(name,props){ page._...
JavaScript
.lego/src/index.js
hentaijun/LEGO
mit
710
31
codeparrot/github-code
d8bca910b60693d2a2a726cf2c6667888f2ada5e282b3deccacca9c3687ab497
var express = require('express'); var bcrypt = require('bcrypt-nodejs'); var User = require('../models/User'); var router = express.Router(); /* * POST: /auth/login * Authenticates an User */ router.post('/login', function (req, res) { if (!req.body) return res.sendStatus(400); User.where("username", req...
JavaScript
api/controllers/authController.js
JoaoCnh/picto-pc
mit
1,312
52
codeparrot/github-code
fff928d9413fc4dcdbe1257e3b10b3d35523c6c2c9c3efcb6c3272142e81e3f1
package controllers import ( "strconv" "github.com/astaxie/beego" "github.com/ylqjgm/SCBlog/common" ) type LoginController struct { beego.Controller } // 默认页面 func (this *LoginController) Index() { // 获取Session v := this.GetSession("admin") // 获取到的Session不为空 if v != nil { // 获取到的Session等于管理员名称 if v == b...
GO
controllers/login.go
carvenli/SCBlog
mit
1,553
82
codeparrot/github-code
d1b66b6c3f48c864c6d94bdc63b8905db96cd21fd4f1e6576df3d255e626c519
var utilities = (function () { function addToCart(item) { var promise = new Promise(function (resolve, reject) { var currentStorage, storageID, currentItemIds, storageToBeUpdated, currentItemId = item.id, currentUser...
JavaScript
scripts/helpers/utilities.js
KaloyanMarshalov/Team-Pisco-Sour
mit
2,785
87
codeparrot/github-code
bdacdcc65088d42a5bfc3754f47586a4a841c533c179a0fc646b1de1ad63587c
const mongoose = require( 'mongoose' ); module.exports = function( Model ) { // if ( !( Model instanceof mongoose.model ) ) throw new Error( 'Invalid mongoose model ' ); function get( query = {} ) { return Model.findOne( query ); } function query( query = {} ) { return Model.find( query ); } fun...
JavaScript
api/lib/mongoose.js
diego-leal/connapp-web-cms
mit
974
47
codeparrot/github-code
a6c457029b0ae17e430038854d5c2a72bbf0eb60bfce58ca8c4f7c3a4119feb9
from django.db import models from credit_computing_machine.models import TimestampModel from privateurl.models import PrivateUrl from django.db.models.signals import pre_save from django.dispatch import receiver # Create your models here. class CreditManager(models.Manager): def get_credit_all_user(self, credit_g...
Python
credit_computing_machine/app/models.py
duahimanshu100/credit_computing_machine
mit
3,284
91
codeparrot/github-code
7b3af54e5d497bb352bcc26d86fc649522700dabb8dc8c1ca8297056dbe0108f
<?php /** * ###### * ###### * ############ ####( ###### #####. ###### ############ ############ * ############# #####( ###### #####. ###### ############# ############# * ###### #####( ###### #####. ###### ##### ###### ##### ###### * ###### ######...
PHP
src/Adyen/Util/OpenInvoice.php
Adyen/adyen-php-api-library
mit
5,592
166
codeparrot/github-code
5820a1b3fadbeb4c13d3a93e074160e9f0bb4632ca78e96fd5960e14a24844a6
using System; using System.Windows.Forms; namespace CslaGenerator.Controls { /// <summary> /// Summary description for TextboxPlusBtn. /// </summary> public class TextboxPlusBtn : System.Windows.Forms.UserControl { // public events public delegate void ButtonClickedEventHandler(object sender, Sys...
C#
tags/V4-0-1/Solutions/CslaGenFork/Controls/TextboxPlusBtn.cs
CslaGenFork/CslaGenFork
mit
3,150
108
codeparrot/github-code
5b8f6bf75f95335bc0d747bb9fb94033598053f4cfb7d711c7adcd302e7f281c
module Dockmaster # This class handles the API for abstract syntax tree parsing class ParserRegistry class << self def registered @registry ||= [] end def register(parser) registered << parser end def parse(line, ast, comments, store, static, priv) registe...
Ruby
lib/dockmaster/parser/parser_registry.rb
chrisblutz/dockmaster
mit
722
34
codeparrot/github-code
eb2ad3da599b9ae91b3d7b3c7fa258933940e89d5f53858f87db4758fe835866
// MIT License // // Copyright( c ) 2017 Packt // // 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, mer...
C++
Samples/Source Files/Other/02-Creating_Swapchain/main.cpp
PacktPublishing/Vulkan-Cookbook
mit
9,419
243
codeparrot/github-code
f5fcb68c0ae63ec33c4e70e674f6800b744bd89a90653d310b686c8eb822ce20
import { compile, getCodeFromBundle, getCodeFromLess, getCompiler, getErrors, getWarnings, } from "./helpers"; describe('"implementation" option', () => { it("should work", async () => { const testId = "./basic.less"; const compiler = getCompiler(testId, { // eslint-disable-next-line global...
JavaScript
test/implementation.test.js
webpack/less-loader
mit
1,729
53
codeparrot/github-code
fe107072dde448fa92e14f43f60e92c9df92941610267d5c5368dd2a9d34d76c
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>dep-map: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css...
HTML
clean/Linux-x86_64-4.09.1-2.0.6/released/8.9.1/dep-map/8.5.0.html
coq-bench/coq-bench.github.io
mit
6,857
166
codeparrot/github-code
0a960fb4a84499ba5632fa86959af4d2924697a2e5bd832ada462f366ef5f685
class GardensController < ApplicationController def index @gardens = Garden.all end def new @garden = Garden.new end def create @garden = Garden.new(garden_params) if @garden.save! redirect_to @garden else render 'new' end end def show @garden = Garden.find(par...
Ruby
app/controllers/gardens_controller.rb
gregorykan/glass_gardens
mit
768
51
codeparrot/github-code
6f9e6e6330a1e697605aef2387a5ed655763a4f182d3dd3969b41f2cf81513c8
/** * FlexCore - Licensed under the MIT License (MIT) * * Copyright (c) Stealth2800 <http://stealthyone.com/> * Copyright (c) contributors <https://github.com/FlexSeries> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "S...
Java
src/main/java/me/st28/flexseries/flexcore/player/PlayerProfile.java
FlexSeries/FlexCore
mit
3,132
94
codeparrot/github-code
52cf22be317a33c8dd916c21889867f374c8f2fc28e502a8a36e01f61a18108d
<html> <head> <title> Dominion Virginia Power </title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <?php include "../../legacy-includes/Script.htmlf" ?> </head> <body bgcolor="#FFFFCC" text="000000" link="990000" vlink="660000" alink="003366" leftmargin="0" topmargin="0"> <table width="7...
PHP
web/2002-2/417/417_11_Dominion.php
ISO-tech/sw-d8
mit
3,664
51
codeparrot/github-code
976c1c1c163f9e1f93e1d08e3a93cb65e97ad085c086b02df23fbae0984ccd15
<?php /** * Copyright (c) 2015 ScientiaMobile, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * *...
PHP
custom-php/WURFL-all/WURFL/WURFLService.php
iamandrebulatov/Profile
mit
5,838
178
codeparrot/github-code
5d30897d23143f4f9774f64f07b4e243806fc4d6201810f2f65a253d16ed0fe1
using System.Collections.Generic; using System.Web.Http; using System.Windows.Forms; namespace ControlR { public class ValuesController : ApiController { // GET api/values public IEnumerable<string> Get() { return new string[] { "Companion OK!" }; } // GET...
C#
ControlR Companion for Pebble/ValuesController.cs
orviwan/ControlR-for-Pebble-Windows-Companion-
mit
958
45
codeparrot/github-code
38ad54aff4700ad17d3e89179807194bbfb400655283ee44f850e95f141ccef1
<?php /** * [PHPFOX_HEADER] */ defined('PHPFOX') or exit('NO DICE!'); /** * * * @copyright [PHPFOX_COPYRIGHT] * @author Raymond Benc * @package Phpfox_Service * @version $Id: process.class.php 3952 2012-02-28 14:15:08Z Raymond_Benc $ */ class Theme_Service_Process extends Phpfox_Service { private...
PHP
module/theme/include/service/process.class.php
edbiler/BazaarCorner
mit
21,702
776
codeparrot/github-code
99263906cb5691bc50e6b87f14923692198002f2a383419fbc824f45a1eba4ef
package main import ( "./mixcoin" "bytes" "encoding/json" "log" "net/http" "io/ioutil" "math/rand" ) type MixcoinServer struct { Address string Name string PubKey string } func chooseServers(servers []*MixcoinServer, numMixes int) []*MixcoinServer { n := len(servers) var chosen []*MixcoinServer for int ...
GO
src/client.go
charlescharles/mixcoin
mit
1,311
73
codeparrot/github-code
594d7d5973fa33f5b12ba60826416cc39b5053ac1ef54a9d6cb302e67e25a20c
#!/usr/bin/python2 # -*- coding: utf-8 -*- import time import datetime import inspect import simplejson as json def outnode(data): """Outnode""" a = int(data[2]) b = int(data[3]) c = int(data[4]) d = int(data[5]) e = int(data[6]) f = int(data[7]) g = int(data[8]) ...
Python
sensnode/decoders/outnode.py
artekw/sensmon
mit
761
34
codeparrot/github-code
822a4032629c2a4f333f3f193328a8b6d9eed34028b54797747476379b39cabc
# frozen_string_literal: true require 'pathname' module QA module Page class View attr_reader :path, :elements def initialize(path, elements) @path = path @elements = elements end def pathname @pathname ||= ::Pathname.new(::File.join(__dir__, '../../../', @path)...
Ruby
qa/qa/page/view.rb
iiet/iiet-git
mit
1,355
60
codeparrot/github-code
8d72a4591f5bb43ffdec740a74e89176e0d055dc17fcc8d6d2b07a7dde9733ad
import React from "react"; import Const from "../../const"; import ConfigCheck from "../../types/config_check"; type Props = { item: ConfigCheck, }; type State = { item: ConfigCheck, }; class ConfigCheckComponent extends React.Component<Props, State> { state: State = { item: {} as ConfigCheck, ...
TypeScript
server/ui/src/components/settings/config_check.tsx
macarrie/flemzerd
mit
1,546
68
codeparrot/github-code
4fdd72f49097fe986b0112335510713aef84dcee5dc09549ec6c84576d9ab403
<?php /** * Copyright 2017 Mark Berdnikov <dev@marc-x.net>. * * 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,...
PHP
src/Common/JsonRPC/JsonRPCResponseParser.php
MarkBerdnikov/JsonRPC
mit
4,072
120
codeparrot/github-code
b21580bf2ebea3fc2f5943a37a4fcd324aad4455418ebc849426f4a75ec0fab9
Polymer({ is: 'jam-play-song', properties: { song_id : { type: Number, value: 0 }, song_api : { type: String, value: "http://localhost:3033/songs/" }, song_body : {}, song_all : [] }, play_song : function() { console.log("play", this.song_body.title); }, listeners: { 'tap': 'toggle',...
JavaScript
src/jam-play-song.js
timoweave/jamlist
mit
2,415
89
codeparrot/github-code
cb0b7e1d7d9277290320c2ee4f063bf008fda34862bd1bfcff99b3e4468db2fe
local ITEM = nut.meta.item or {} ITEM.__index = ITEM ITEM.name = "Undefined" ITEM.desc = ITEM.desc or "An item that is undefined." ITEM.id = ITEM.id or 0 ITEM.uniqueID = "undefined" function ITEM:__eq(other) return self:getID() == other:getID() end function ITEM:__tostring() return "item["..self.uniqueID.."]["..sel...
Lua
gamemode/core/meta/sh_item.lua
Atebite/NutScript
mit
8,011
359
codeparrot/github-code
e511b1f4aba2e0c83cc936a29b254bbcb3d8801ebeef4d428fae31234543ea4c
<!-- Unsafe sample input : get the field userData from the variable $_GET via an object Uses an email_filter via filter_var function File : use of untrusted data in a quoted event handler in a script --> <!--Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee, to ...
PHP
XSS/CWE_79/unsafe/CWE_79__object-classicGet__func_FILTER-CLEANING-email_filter__Use_untrusted_data_script-quoted_Event_Handler.php
stivalet/PHP-Vulnerability-test-suite
mit
1,645
73
codeparrot/github-code
2b8f9e0d10625f89b33d0cc66573ec9ce807b43ae0c11f8bbbcf07c662921711
/* * Copyright 2002-2004 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
Java
src/org/springframework/beans/propertyeditors/PropertiesEditor.java
dachengxi/spring1.1.1_source
mit
3,455
110
codeparrot/github-code
38ed89e2aada95f9d7f2990b371c8f3d354295cbf3c4885e84a9dcbee96f6b3a
/* eslint-disable */ /* * Luhn algorithm implementation in JavaScript * Copyright (c) 2009 Nicholas C. Zakas * * 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, inclu...
JavaScript
src/luhn-10.js
braintree/card-validator
mit
1,617
53
codeparrot/github-code
7ebcc9f7fae2845598a04467d503228c0ae3c63786407cef3a7292829d307fe6
namespace embedder { using Microsoft.WindowsAzure.Storage.Queue; using System; using System.Linq; using System.Collections.Generic; using System.IO; public class EmbedderJob { internal EmbedderJobDTO Job { get; set; } public string Name { get; set; } public string U...
C#
k8s/embedder.src/EmbedderJob.cs
MicrosoftDX/MB-ForensicWatermark
mit
1,487
44
codeparrot/github-code
11ea183edf137fb2aab78c11d43ba379eea7b224dcf2590487bf8e15fb26b1ed
package uk.co.webamoeba.slf4j.junit.logger; import org.slf4j.Marker; import uk.co.webamoeba.slf4j.junit.log.Level; public class RecordingLoggerDebugTest extends RecordingLoggerLevelTest { public RecordingLoggerDebugTest() { super(Level.DEBUG); } @Override protected boolean isEnabled(RecordingLogger recordingL...
Java
src/test/java/uk/co/webamoeba/slf4j/junit/logger/RecordingLoggerDebugTest.java
jameskennard/slf4j-junit
mit
2,232
73
codeparrot/github-code
db13a95999cd0853117cfb465972a517c93e4f6bd931c436601eef5884048699
package com.asi.service.product.client.vo.parser; import java.net.URI; import java.util.HashMap; import java.util.Iterator; import java.util.LinkedHashMap; import java.util.LinkedList; import org.apache.log4j.Logger; import com.asi.core.utils.JerseyClient; import com.asi.util.json.IParser; import com.asi.util.json...
Java
src/main/java/com/asi/service/product/client/vo/parser/OriginLookup.java
mzubairahmed/externalapi
mit
1,505
50
codeparrot/github-code
035c183458b2ff69ce47679019f49c84e2ea530fcb67ad6620fc18eb5c8042d3
// ========================================================================== // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex UG (haftungsbeschränkt) // All rights reserved. Licensed under the MIT license. // ============================...
C#
src/Squidex/Areas/Api/Controllers/Apps/AppLanguagesController.cs
pushrbx/squidex
mit
4,638
135
codeparrot/github-code
d561acaf11fb053c8dec97cd96793204c9fef95e7f316cad199174c426302813
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__delete_array_class_malloc_42.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete_array.label.xml Template File: sources-sinks-42.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Man...
C++
samples/Juliet/testcases/CWE762_Mismatched_Memory_Management_Routines/s01/CWE762_Mismatched_Memory_Management_Routines__delete_array_class_malloc_42.cpp
maurer/tiamat
mit
3,342
121
codeparrot/github-code
7c614c50b63865623f1eaa0aa5bcc394fe2bbbe62c6c973d3afa1a71be1f54f4
module ShellTest module ShellMethods class Timer attr_reader :clock attr_reader :start_time attr_reader :stop_time attr_reader :step_time def initialize(clock=Time) @clock = clock reset end def current_time clock.now.to_f end def res...
Ruby
lib/shell_test/shell_methods/timer.rb
thinkerbot/shell_test
mit
1,385
71
codeparrot/github-code
cfa63db774c65e3506c9d8e58cf209ba2e2ea0d3e5d53495eb1c7b40a5f04fd4
#include "vkemojiparser.h" #include "vkemojiparserdata.h" VKEmojiParser::VKEmojiParser(QObject *parent) : QObject(parent) { } void VKEmojiParser::parse(QString &s) { static bool compiled = false; if (!compiled) { precompile(); compiled = true; } for (int idx = 0;idx<s.size();idx+...
C++
src/vkemojiparser.cpp
rusphantom/sailfishVK
mit
3,902
136
codeparrot/github-code
41792745f67569cbe07bd22bef68d556ca0af49f44b68d7f250f08e80f4d7926
package com.trioptimum.shodan.matcher.api; import com.trioptimum.shodan.matcher.service.Matcher; import java.util.Collection; import static com.trioptimum.shodan.matcher.api.BasicMatchers.is; /** * Created with IntelliJ IDEA. * User: Turtles * Date: 2.12.12 * Time: 22:27 * To change this template ...
Java
src/main/java/com/trioptimum/shodan/matcher/api/CollectionMatchers.java
StanSvec/shodan
mit
1,019
40
codeparrot/github-code
87e3c375afdc11d1c451d5c83432a82409598fc520c3b6ef1ffae3a3f533161e
-------------------------------------------------------------------- -- -- nodes@home/luaNodes/rfNode -- author: andreas at jungierek dot de -- LICENSE http://opensource.org/licenses/MIT -- -------------------------------------------------------------------- -- junand 03.10.2016 local moduleName = ...; local M = {}; _...
Lua
luaNodes/rfNode.lua
glumanda/nodes_at_home
mit
5,317
175
codeparrot/github-code
1ee3a781b8273898ea22e87dcb8cd5f2ac9305abb29dda7f3138b89a024e5b49
package session; import java.net.MalformedURLException; import java.net.URL; import org.json.JSONObject; public class BasicAuthenticationProtocol extends AuthenticationProtocol { public BasicAuthenticationProtocol(String authorizationLocale) throws MalformedURLException { this(new URL(authorizationLocale)); } ...
Java
src/main/java/session/BasicAuthenticationProtocol.java
SmeeK153/SessionManager
mit
1,018
30
codeparrot/github-code
0a90f0bf6c5120f9cdbe572f72f84bbddb44ac3b41787208656ef10c1b0c3c7e
<?php namespace DuilioPastorelli; require_once ('src/GetMonth/Month.php'); class MonthTest extends PHPUnit_Framework_TestCase { private function currentMonth() { return date("n"); } public function testGetCurrentPhpMonth() { $this->assertEquals(self::currentMonth(), Month::getMont...
PHP
test/MonthTest.php
duiliopastorelli/getMonth
mit
3,133
86
codeparrot/github-code
07e84441a70f3f4e89ff750b3ea2f2e2e7d0c3c596f2a993fddf5912b15d81f0
(function () { var mountains = document.getElementsByClassName( "mountain" ), mountainsLight = document.getElementsByClassName( "mountain-sunlit" ), sun = document.getElementById( "sun" ), sunLight = document.getElementsByClassName( "sunlight" ), hillsContainer = document.getElement...
JavaScript
action.js
Mailea/cute-svg-screensaver
mit
2,729
72
codeparrot/github-code
1077756daa498f3030f99bb9a8a3efcebf775bf10dbd4ca04fb53af6323b45d3
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>hott: 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.07.1-2.0.6/released/8.11.1/hott/8.13.html
coq-bench/coq-bench.github.io
mit
6,927
170
codeparrot/github-code
8be8af8632d679d74676ad6a8a9580d0a466e347b3e3e78aa928f0cc2aff8bd0
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>smc: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" re...
HTML
clean/Linux-x86_64-4.10.2-2.0.6/released/8.12.0/smc/8.10.0.html
coq-bench/coq-bench.github.io
mit
7,146
178
codeparrot/github-code
c3cda4739867adfa6ba0180ece516069c2884aa59ad4186fa5d555d8a989630e
/* * TS Elements * Copyright 2015-2018 M. Newhouse * Released under the MIT license. */ #include "stdinc.hpp" #include "cup_state.hpp" namespace ts { namespace client { CupState::CupState(const game_context& context) : game::GameState(context), client_(context) { } void CupState::pr...
C++
src/client/states/cup_state.cpp
mnewhouse/tselements
mit
541
31
codeparrot/github-code
9f6d0b0f43fc873db95268d52b54ee4d6eebd673e275727f9479d592bb69d42f
//var SegfaultHandler = require('segfault-handler'); //SegfaultHandler.registerHandler(); var index = require('./package.json'); function isFunction(functionToCheck) { return typeof functionToCheck === 'function'; } if(global[index.name] && global[index.name].version === index.version) { module.exports = global[in...
JavaScript
index.js
MadLittleMods/node-usb-detection
mit
2,881
112
codeparrot/github-code
cdb0bac706e1e52c8a3aeaf9b6004a117f4ec6a15831f89177c8aa568e31da44
<?php namespace Messages\Model\Table; use Cake\Routing\Router; use Cake\ORM\Table; use Cake\ORM\TableRegistry; use Cake\Validation\Validator; class MessagesTable extends Table { public $uses = array('Messages.SentMessages'); public function initialize(array $config) { $this->belongsTo('Sender', [ ...
PHP
src/Model/Table/MessagesTable.php
jadavsushil/GtwMessages-1
mit
5,010
121
codeparrot/github-code
7752b5279f01b52be1d19d04b1e677944e41e4ab5d21164a482ee34d301de2a9
package archavexm.studeteach.app.common.todolist; import archavexm.studeteach.app.common.PersonWindow; import archavexm.studeteach.app.common.Studeteach; import archavexm.studeteach.core.common.Person; import archavexm.studeteach.core.common.TODOList; import archavexm.studeteach.core.util.ObjectDeserializer; import ar...
Java
src/archavexm/studeteach/app/common/todolist/TODOController.java
Morr0/Studeteach
mit
4,589
148
codeparrot/github-code
91374425da3e087a0214dae8f8ac8cbc1a5f4ad5d4988e29f0bdb6c2f4905f7b
package mit.edu.scansite.examples.proteinsequencescan; import mit.edu.scansite.examples.ExampleUtils; import java.util.List; import static mit.edu.scansite.examples.ExampleUtils.baseURL; /** * @author Thomas Bernwinkler * Last edited 4/4/2017 * Provided by Yaffe Lab, Koch Institute, MIT */ //../proteinscan/ide...
Java
web-service-example-client/src/main/java/mit/edu/scansite/examples/proteinsequencescan/ProteinSequenceScanExample1.java
kkrismer/scansite4
mit
1,902
50
codeparrot/github-code
729c40b5e7cdc4379dbb38e31c7c0a5e7cf2d9ebe7ac1a2c8a2802515463e3b8
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>W29849_text</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/W29849_text/page6.html
datamade/elpc_bakken
mit
4,406
81
codeparrot/github-code
9a8a37ab92b4c20c12d88710353fb43f043ea0e70354e1ca1db8fa73de7a774d
/* All living beings on this extra-ordinary planet have some goodness value that tells their worth. Rajat and Shreya are a couple on this planet who love each other. Both of them have a goodness value A and B respectively. One day Rajat found an astonishing way of finding whether a couple is a lovely couple or not. A c...
C
C Programs/Samsung/primefactorquestion.c
kundan333/LibraryOfPrograms
mit
2,319
104
codeparrot/github-code
062a4572a6aa37a9d085163cd53aa06a207757520a377fc6e102c380d597d85c
class Solution { public: int mLen, nLen; void gameOfLife(vector<vector<int>>& board) { if (board.empty()) return; mLen = board.size(); nLen = board[0].size(); for (int i = 0; i < mLen; i ++) { for (int j = 0; j < nLen; j ++) { updat...
C++
Cpp/289_game_of_life/solution.cpp
zszyellow/leetcode
mit
1,261
46
codeparrot/github-code
17d84e12f42215971b2bb0971c3891423c3844d438698eb0b2aeeeab3293f202
/** * SEA3D Legacy for Three.JS * @author Sunag / http://www.sunag.com.br/ */ 'use strict'; // // Header // Object.assign( THREE.SEA3D.prototype, { _onHead: THREE.SEA3D.prototype.onHead, _updateTransform: THREE.SEA3D.prototype.updateTransform, _readVertexAnimation: THREE.SEA3D.prototype.readVertexAnimat...
JavaScript
app/static/js/loaders/sea3d/SEA3DLegacy.js
TheVindicators/Vis
mit
14,992
721
codeparrot/github-code
31fbeadf9b63c76dfbfcc0b409321a4c800f5a1775d687c6ffebdbfcbf3351aa
using System; using System.ComponentModel.DataAnnotations; using FluentNHibernate.Mapping; using UCDArch.Core.DomainModel; namespace Purchasing.Core.Domain { public class VendorAddress : DomainObjectWithTypedId<Guid> { [Required] [StringLength(4)] public virtual string TypeCode { get; s...
C#
Purchasing.Core/Domain/VendorAddress.cs
ucdavis/Purchasing
mit
2,930
92
codeparrot/github-code
9f25f603ca38ad771f1c73fa0aa2d38cb66a810b7692169750fcc067c045efe5
package asmcup.decompiler; import java.io.*; import asmcup.compiler.VMFuncTable; import asmcup.vm.VMConsts; public class Decompiler implements VMConsts { private final PrintStream out; public Decompiler() { out = System.out; } public Decompiler(PrintStream out) { this.out = out; } ...
Java
src/asmcup/decompiler/Decompiler.java
MLanghof/runtime
mit
3,636
158
codeparrot/github-code
4d24ee02c2c25236f3a1186b49e984f9f5b5c22040b13b6fd504b158afa6cb63
package me.minidigger.voxelgameslib.api.persistence; import java.util.ArrayList; import java.util.List; import java.util.Optional; import java.util.UUID; import me.minidigger.voxelgameslib.api.lang.Locale; import me.minidigger.voxelgameslib.api.signs.SignLocation; import me.minidigger.voxelgameslib.api.user.UserData;...
Java
api/src/main/java/me/minidigger/voxelgameslib/api/persistence/EmptyPersistenceProvider.java
MiniDigger/VoxelGamesLib
mit
1,254
61
codeparrot/github-code
d58af9e0add92699c3fda6b735b09aa936cd4cad792c9e383fd963febb22f088
/************************************************************************************ * * * Copyright (c) 2014, 2015 - 2016 Axel Menzel <info@rttr.org> * * ...
C
src/rttr/detail/type/type_register.h
taketwo/rttr
mit
4,903
130
codeparrot/github-code
5355b684bd99deb465a97f3377be2b4bc23105fce099199e8013f7e2d03f09b7
// load shit var template = require( 'html-template' ); var fs = require( 'fs' ); var crypto = require('crypto'); var rimraf = require('rimraf'); var json2html = require('node-json2html'); // config shit var dir = '../../static/drawing'; // cleanup rimraf( dir, function(){ // create drawing directory if ...
JavaScript
app/lib/drawings/static.node.js
caesarfeta/angular-seed
mit
3,355
123
codeparrot/github-code
b6e92d04b340908e4ff3a23db001d4b3110f922b45a13aa2d56c426bb48e0140
#!/bin/bash DIR=$(dirname "$0") VERSION=$(git describe --abbrev=0 --tags) REVISION=$(git log "$VERSION..HEAD" --oneline | wc -l) function update_ai { f="$1" lead='^\/\/ TRAVIS\-CI: START REMOVE$' tail='^\/\/ TRAVIS\-CI: END REMOVE$' C=$(sed -e "/$lead/,/$tail/{ /$lead/{p; r insert_file }; /$tail/p; d }" $...
Shell
travis-ci/autoversion.sh
splitice/SimpleChannel.Net
mit
1,298
38
codeparrot/github-code
fd9c5556b940be5bec42eb9dfcd7f95f5382faf4000e39cb19f27f984fb857ae
<!DOCTYPE html> <?php session_start(); ?> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Flaming Wings | Conversion</title> <?php include ("templates/imports.php"); ?> <!-- PHP --> <?PHP include("dbconnection.php") ?> <!-- HEA...
PHP
Conversion2.php
scalagos0123/Flaming-Wings
mit
10,131
261
codeparrot/github-code
78504ba8e316e8cbe8a2d4ffc4c0fb6f5f747e3c5f22ebdd42a6fe801433e0a9
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>W28905_text</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/W28905_text/page51.html
datamade/elpc_bakken
mit
13,011
229
codeparrot/github-code
a47601fc5cbabdd096c30c92fa711ca6dd07194a233cc3ea22a6558e1ed0bc39
<?php /** * @file ConferenceSetupStep6Form.inc.php * * Copyright (c) 2000-2012 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * @class ConferenceSetupStep6Form * @ingroup manager_form_setup * * @brief Form for Step 6 of conference setup. */ //$Id$ import("man...
PHP
classes/manager/form/setup/ConferenceSetupStep6Form.inc.php
pulipulichen/ocs
mit
866
45
codeparrot/github-code
7594ffc3b4f103f3cdab0af4e7f06a9811b3865b95e03fbaa08224bf49fc6a3e
module MyAppConfiguration def self.app_dir File.expand_path Rake.application.rakefile_location end def self.base_name File.basename self.app_dir end def self.rackup_file File.join self.app_dir, 'config.ru' end def self.temp_dir ENV['APP_TMP_DIR'] || File.expand_path('temp', self.app_dir...
Ruby
lib/tasks/my_app_configuration.rb
tasermonkey/ruby-nginx-sinatra-thin-websockets
mit
1,978
93
codeparrot/github-code
efedf2f8fe25e7f56878fd5a8077a481ec5bfe0b962ce218f5e5fbbe6e4e2e44
<?php /* * class Bd_Db_SQLTemplate * * Author: zhangdongjin@baidu.com * * */ class Bd_Db_SQLTemplate implements Bd_Db_ISQL { const V_BEGIN = '{'; const V_END = '}'; const V_SPLIT = ':'; const T_NUM = 'n'; const T_STR = 's'; const T_RAW = 'r'; private $template = NULL; private $arrParse...
PHP
env/phplib/bd/db/SQLTemplate.php
l496501043/edpx-zhixin
mit
5,368
229
codeparrot/github-code
5f99630c55fac71006f411f6f6622de46b3e783da0dd1c02ab0d3217ddda48ee
<?php include_once '../../includes/sql-manager.php'; include_once '../common.php'; class tagLister { //Constructor public function __construct() { $this->message = new Message(); $this->sqlset = new sqlSetter(); } //Get info to edit with public function parseGet($id) { $name = $this->sqlset->ge...
PHP
blog/secure/tag-edit.php
Adimote/blog
mit
3,916
148
codeparrot/github-code
f5af5fdf21185e2a165195cc3ab20e589dd7f4a980a1361415f5a2b8174dcf20
/* current function of individual stage files: * store body descriptions for required roles * determine when to upstage/downstage (what buildings are required, if economy is collapsing) * store desired number and type of creeps * determine desired wall / rampart hitpoints the method to achieve the above is static so ...
JavaScript
stageless.js
boylede/Pontifex
mit
10,016
396
codeparrot/github-code
9f09eb31942988adb335d025f95b23ea22399e53a50fa44d98a40710c0541ad9
using System; using System.Collections.Generic; using System.IO; class Program { static void Main() { string[][] rawNumbers = new string[int.Parse(Console.ReadLine())][]; for (int i = 0; i < rawNumbers.Length; i++) { rawNumbers[i] = Console.ReadLine().Split(new char[] { ' ...
C#
C# part2/EXAM/11feb/02.SpecialValue/02.SpecialValue/Program.cs
YoTsenkov/TelerikSoftwareAcademyHomeworks
mit
2,967
131
codeparrot/github-code
535b4ff3cdcbe2492eaf80e9ffcaaf3602b63bd89f7955f9ad19d2e30cf0b7ce
<!DOCTYPE html> <!--[if IE]><![endif]--> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>Class PasswordChangeTicketRequest </title> <meta name="viewport" content="width=device-width"> <meta name="title" content="Class PasswordChange...
HTML
docs/api/Auth0.ManagementApi.Models.PasswordChangeTicketRequest.html
jerriep/auth0.net
mit
12,147
309
codeparrot/github-code
9327b764399aeeedf8dde68dabfa6fa46e0f19219c62ac09a4951d2824ad643e
using System; using System.Collections.Generic; using System.Collections; namespace Python.Runtime.CollectionWrappers { internal class IterableWrapper<T> : IEnumerable<T> { protected readonly PyObject pyObject; public IterableWrapper(PyObject pyObj) { if (pyObj == null) ...
C#
src/runtime/CollectionWrappers/IterableWrapper.cs
pythonnet/pythonnet
mit
1,061
43
codeparrot/github-code
97258b42f9fd576d1144b0099a242ec655570cdb8e597583929d62d47f9c0169
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>orb-stab: Not compatible</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" ...
HTML
clean/Linux-x86_64-4.05.0-2.0.6/released/8.5.2~camlp4/orb-stab/8.8.0.html
coq-bench/coq-bench.github.io
mit
7,332
167
codeparrot/github-code
d8133497a6a419b3c920e625bfe528fa523b4d880900da15276daf05a64108a6
<?php /** * @name bdpWeb * @version 1.0.1 * @author Michael Barcroft */ //log the start time $snippetStartTime = microtime(true); /** * mode * possible values: results, details, searchform, formHandler (viewing requests) * default is results */ $mode = ($mode ? $mode : 'results'); /** * tmp * name of the ...
PHP
bdpWeb.php
BDP-Software/bdpweb
mit
2,547
157
codeparrot/github-code
102d38f31e41b84e2cba622c0a0762bf129fa1c153dc13073a4517bf83383854
package com.lucaslouca.dao; import java.util.function.Function; import org.hibernate.Session; import com.lucaslouca.connection.HibernateUtil; public class AbstractDao<E> { private HibernateUtil hibernateUtil; public AbstractDao(HibernateUtil hibernateUtil) { this.hibernateUtil = hibernateUtil; } ...
Java
RegressionToolHibernate/src/main/java/com/lucaslouca/dao/AbstractDao.java
lucaslouca/database-comparison
mit
725
36
codeparrot/github-code
e30e8b0524d47f35524356fc9620ddea25059e0ea676f96588396a302d05cc0d
<?php namespace Yajra\CMS\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Collection; use Symfony\Component\Finder\Finder; use Yajra\CMS\Http\NotificationResponse; /** * Class ImageBrowserController * * @package Yajra\CMS\Http\Controllers */ class ImageBrowserController extends Controller {...
PHP
src/Http/Controllers/ImageBrowserController.php
yajra/cms-core
mit
2,033
76
codeparrot/github-code
e709b54772bd1a97dce8f757b38ab4d58615c4f8f3498eeafb8c079c9e6eabdf
'use strict'; var expect = require('chai').expect; var Anonymizer = require('../src/anonymizer.js'); describe('anonymizer', function () { describe('#encode(data, schema)', function(){ it('can encode primitive values', function () { var anonymizer = new Anonymizer(); expect(anonymizer.encode('a', '...
JavaScript
test/test.js
kristw/anonymizer
mit
7,722
270
codeparrot/github-code
4856e3760add9e8326131bc2a99d61a738cd4b0ac206750cc22a58463329c922
#!/usr/bin/env python2 from __future__ import print_function from collections import defaultdict import uuid class Room(object): def __init__(self): self.name = None self.users = {} self.expansions = [0] # 0 -> Base class User(object): def __init__(self, handle, trip=None, first=False): self.uuid = uuid.u...
Python
fah/room.py
sysr-q/fah
mit
759
32
codeparrot/github-code
0a7cca15d62b23b6f396dd5bf43002b8525a5747d7bcc5ee15dd74bf848d5d23
<?php namespace fibe\Bundle\WWWConfBundle\Controller; use Symfony\Component\Form\Form; use Symfony\Component\HttpFoundation\Request; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\Security\Acl\Domain\ObjectIdentity; use Symfony\Component\Security\Acl\Domain\UserSecurityIdentity; use S...
PHP
src/fibe/Bundle_TO_DELETE/WWWConfBundle/Controller_old/ConfEventController.php
E-Conference/Live-con.comV2
mit
15,889
556
codeparrot/github-code
f4fbda1e628fd42b7d25cf794da514a89ab1b58f830ec664e06d887b34566b37
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { RouterModule } from '@angular/router'; import { FormioModule } from '@formio/angular'; import { FormioAlerts } from '@formio/angular'; import { FormioGridComponent } from './g...
TypeScript
projects/angular-formio/grid/src/grid.module.ts
formio/angular-formio
mit
1,834
54
codeparrot/github-code
773df460b26c7918b02163836179bbef1d75ea16e388d5e5eb463aa65a5772b8
<!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" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>bundle-instance...
HTML
docsets/AWS-CLI.docset/Contents/Resources/Documents/reference/ec2/bundle-instance.html
Smolations/more-dash-docsets
mit
12,565
229
codeparrot/github-code
6375737ef384efc6ef755a296fe76a2203ce28faacac271cfad59bc225e1a85a
package uk.org.alienscience.alien_pizza; import javax.annotation.concurrent.Immutable; /** * A webserver route */ @Immutable public abstract class Route { private final String path; /** * Create a route with the given path * @param path The path */ public Route(String path) { th...
Java
base/src/main/java/uk/org/alienscience/alien_pizza/Route.java
alienscience/alien-pizza
mit
683
37
codeparrot/github-code
1f19aeba446ad3536dad2940de4e6aa55e17732ceca44a1ba9b95ab67f834cc2
--- layout: compress --- <!DOCTYPE html> <html lang="{{ site.lang }}"> {% include head.html %} <body> <div id="shadow"></div> {% include header.html %} {% include aside.html %} <main class="content-wrapper"> {{ content }} </main> {% include footer.html %} <!-- PINTEREST --> <script type="text/javascrip...
HTML
_layouts/default.html
FlorentD/cairatuverras.github.io
mit
2,890
96
codeparrot/github-code