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 |
|---|---|---|---|---|---|---|---|---|
abed2c12ed135b5c0638680fdf44356f851ac5889d4c91153656021d9a26d95f | using System;
using System.IO;
using System.Net;
using System.Security.Cryptography;
using DeanCCCore.Core._2ch.Jane;
using DeanCCCore.Core.Utility;
namespace DeanCCCore.Core
{
[Serializable]
public class ZipFileHeader : ImageHeader
{
public ZipFileHeader()
{
}
public ZipF... | C# | DeanCC5/DeanCCCore/Core/ZipFileHeader.cs | omega227/DeanCC | gpl-3.0 | 596 | 32 | codeparrot/github-code |
94b170708af373a05ff53e8d736aecd53436ebeaef4dd68fe03bc92289c8f611 | /////////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2011- Statoil ASA
// Copyright (C) 2013- Ceetron Solutions AS
// Copyright (C) 2011-2012 Ceetron AS
//
// ResInsight is free software: you can redistribute it and/or modify
// it under the terms of the GN... | C++ | ApplicationCode/ModelVisualization/RivGridPartMgr.cpp | iLoop2/ResInsight | gpl-3.0 | 10,747 | 299 | codeparrot/github-code |
2c26b4fa952ebfcf9e5e8c4a40204a03300952d57bff3a5b12f8480d31d9a231 | /*
RPG Paper Maker Copyright (C) 2017-2021 Wano
RPG Paper Maker engine is under proprietary license.
This source code is also copyrighted.
Use Commercial edition for commercial use of your games.
See RPG Paper Maker EULA here:
http://rpg-paper-maker.com/index.php/eula.
*/
#include "paneld... | C++ | Editor/CustomWidgets/paneldamageskind.cpp | Wano-k/RPG-Paper-Maker | gpl-3.0 | 2,843 | 103 | codeparrot/github-code |
69741a1f35761e8db9909968c4c4ae3e0cbd2511a2d30e626000b47fd006a78c | #! /bin/sh
dirs="$*"
if test _"$dirs" = _
then dirs="."
fi
for dir in $dirs
do
if test -d $dir
then
aclocal=""
autoconf=" && autoconf"
autoheader=""
automake=""
if test -f $dir/Makefile.am
then
aclocal=" && aclocal -I build-aux"
automake=" && automake --copy --add-missing"
if egrep 'A[CM]_PROG_... | Shell | autogen.sh | virtuald/webdma | gpl-3.0 | 724 | 45 | codeparrot/github-code |
d439d3dfd0bfa3837fd0567dd15658d2597f16284401879e5d87ee9514188c56 | ###
# Copyright 2016 - 2022 Green River Data Analysis, LLC
#
# License detail: https://github.com/greenriver/hmis-warehouse/blob/production/LICENSE.md
###
require 'memoist'
module ClaimsReporting::Health
module PatientExtension
extend ActiveSupport::Concern
included do
extend Memoist
has_many :... | Ruby | drivers/claims_reporting/extensions/health/patient_extension.rb | greenriver/hmis-warehouse | gpl-3.0 | 2,089 | 60 | codeparrot/github-code |
1d5464d126334cff714b68c1e9ab9cb312d2d500d9d7e1e9c149e7e3a4a69367 | <?php
/**************************************************************************/
/* PHP-NUKE: Advanced Content Management System */
/* ============================================ */
/* */
/* Th... | PHP | PNPv101-lang-english/modules/Downloads/admin/language/lang-english.php | TGates71/PNPv1-Languages | gpl-3.0 | 5,394 | 112 | codeparrot/github-code |
500c53141e5712de78c36a38bc10b82a4618c591ef467b8efdf1ccca599e2dc9 | package com.hackatoncivico.rankingpolitico;
import android.content.SharedPreferences;
import android.os.AsyncTask;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.support.v4.util.LogWriter;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
... | Java | app/src/main/java/com/hackatoncivico/rankingpolitico/ProfileActivity.java | franzueto/rankingpoliticogt-android | gpl-3.0 | 6,690 | 173 | codeparrot/github-code |
49b5968f718f461ab34b75952ffedcef4171c2b897b1922a7a0753526e3718bd | /*
* OpenSplice DDS
*
* This software and documentation are Copyright 2006 to 2013 PrismTech
* Limited and its licensees. All rights reserved. See file:
*
* $OSPL_HOME/LICENSE
*
* for full copyright notice and license terms.
*
*/
#include <assert.h>
#includ... | C | src/tools/idlpp/code/idl_scope.c | SanderMertens/opensplice | gpl-3.0 | 9,149 | 363 | codeparrot/github-code |
38e3b94d8e3769439ce494899f7e938c9329ae23993fbf23f5e6d5be614d1a0f | # -*- coding: utf-8 -*-
################################################################################
# Copyright 2014, Distributed Meta-Analysis System
################################################################################
"""Software structure for generating Monte-Carlo collections of results.
NOTE: Hi... | Python | openest/generate/v1/effectset.py | jrising/open-estimate | gpl-3.0 | 23,746 | 626 | codeparrot/github-code |
37eeab97039bd1346c5bf4ed50be9400f91c05860f227ca8792d65884a7514b5 | using Nikse.SubtitleEdit.Core.Common;
using Nikse.SubtitleEdit.Forms.Options;
using Nikse.SubtitleEdit.Logic;
using Nikse.SubtitleEdit.Logic.VideoPlayers;
using System;
using System.Text;
using System.Windows.Forms;
namespace Nikse.SubtitleEdit.Forms
{
public partial class VideoError : Form
{
public V... | C# | src/ui/Forms/VideoError.cs | ivandrofly/subtitleedit | gpl-3.0 | 4,891 | 127 | codeparrot/github-code |
905f47046f09f329d0e4f65cb2430b0296bf159b7e313745e8a84424244e8271 | <?php
class WP_Gist {
/* Properties
---------------------------------------------------------------------------------- */
/**
* Instance of the class.
*
* @var WP_Gist
*/
protected static $instance = null;
/**
* Class slug.
*
* @var string
*/
protected... | PHP | src/classes/class-wp-gist.php | manovotny/wp-gist | gpl-3.0 | 1,164 | 72 | codeparrot/github-code |
4460fe841139137b106281ff7c3bb4450f4bd75d23169f50717349fa4bc8802b | <?php
// Clear variables
$boardGameError = "";
$boardGameAvailable = "";
// Get the playerID, if null return user to the available page
$playerID = null;
if (!empty($_GET['playerID']))
{
$playerID = $_REQUEST['playerID'];
}
if ( null==$playerID )
{
header("Location: ../available.php");
}
if ($_SERVER["... | PHP | upload/available/validate_add_available.php | twominutesalad/PDOBoardGameClub | gpl-3.0 | 1,457 | 68 | codeparrot/github-code |
940c657daf16833f3519e75bb39438934ad4d2813aa81a893fcf659653e378bd | var events = require('events'),
koanize = require('koanizer'),
util = require('util');
koanize(this);
// Standard and RFC set these values
var REFERENCE_CLOCK_FREQUENCY = 90000;
// RTP packet constants and masks
var RTP_HEADER_SIZE = 12;
var RTP_FRAGMENTATION_HEADER_SIZE = 4;
var SAMPLES_PER_FRAME... | JavaScript | 2_dgram/buffer-koans.js | rfines/NodeKoans | gpl-3.0 | 2,619 | 100 | codeparrot/github-code |
209ecf49531addd26d2f4b952d3e97b094308af391f1674a3058a7c5a27e904a | <?php
/**
* @author Pierre-Henry Soria <ph7software@gmail.com>
* @copyright (c) 2012-2015, Pierre-Henry Soria. All Rights Reserved.
* @license GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory.
* @package PH7 / App / System / Module / Affiliate / ... | PHP | _protected/app/system/modules/affiliate/controllers/HomeController.php | erichilarysmithsr/pH7-Social-Dating-CMS | gpl-3.0 | 1,983 | 61 | codeparrot/github-code |
339cb245856e5aace6cb79f0ae3af11c428e2f8fb3b6bdc9e3d4e2f161d58ec1 | from abc import ABC
import configargparse
from sklearn.externals import joblib
from termcolor import colored
class ScikitBase(ABC):
"""
Base class for AI strategies
"""
arg_parser = configargparse.get_argument_parser()
arg_parser.add('-p', '--pipeline', help='trained model/pipeline (*.pkl file)', ... | Python | strategies/ai/scikitbase.py | miti0/mosquito | gpl-3.0 | 1,418 | 48 | codeparrot/github-code |
148242dda1d35160742d68dbfc3a7020041554686bd1fdf3ee3cf2a12d172473 | package com.octagon.airships.block;
import com.octagon.airships.reference.Reference;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.client.rende... | Java | src/main/java/com/octagon/airships/block/AirshipsBlock.java | Todkommt/Mass-Effect-Ships-Mod | gpl-3.0 | 1,152 | 39 | codeparrot/github-code |
7426877f12b9f51dbe8c2672a285eadfd80dea65154a039b6473f90fede4f4fa |
package itaf.WsUserTakeDeliveryAddressService;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlElementDecl;
import javax.xml.bind.annotation.XmlRegistry;
import javax.xml.namespace.QName;
/**
* This object contains factory methods for each
* Java content interface and Java element interfac... | Java | itaf-aggregator/itaf-ws-simulator/src/test/java/itaf/WsUserTakeDeliveryAddressService/ObjectFactory.java | zpxocivuby/freetong_mobile_server | gpl-3.0 | 14,213 | 500 | codeparrot/github-code |
e84c45808fc51dc6bc03a779ddd26b53dd61491100b1f9d6631503e7a421d89a | #ifndef __MAIN_HPP__
#define __MAIN_HPP__
#include <iostream>
#include <unistd.h>
#include <string>
#include <vector>
#include <stdint.h> // Para usar uint64_t
#include "hanoi.hpp"
#include "statistical.hpp"
#include "ClaseTiempo.hpp"
#define cls() system("clear");
long long combinatorio_iterativo(const int &n,const... | C++ | p2/main.hpp | i32ropie/Algoritmica | gpl-3.0 | 13,685 | 434 | codeparrot/github-code |
c51c31bcbbe9d90a7be2a76ee2154c6e64a4c1390c8ca325d07d63d51d69939b | import commandRunner as cr
import subprocess
import glob, os, platform, shutil, adb
from pathlib import Path
def combine_browsers_logs(udid):
cmd = 'rebot -N Combined --outputdir browserlogs/ '
for idx, device in enumerate(udid):
#Get all the output.xml files for the devices
if platform.s... | Python | robot_automation/src/logs.py | younglim/hats-ci | gpl-3.0 | 3,513 | 99 | codeparrot/github-code |
d29b965af21b2e21ed45949e7d7b6919045901008f78dc0f69844d33d0a83188 | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* 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) any later version.
*
* T... | Java | src/com/lh64/randomdungeon/actors/buffs/SnipersMark.java | lighthouse64/Random-Dungeon | gpl-3.0 | 1,360 | 52 | codeparrot/github-code |
6599616b3fc1ec3cfccd3d6952579934c3fa36d8e507670376bd66a5e71894b0 | namespace Maticsoft.TaoBao.Request
{
using Maticsoft.TaoBao;
using Maticsoft.TaoBao.Util;
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
public class SimbaAdgroupCampcatmatchsGetRequest : ITopRequest<SimbaAdgroupCampcatmatchsGetResponse>
{
pri... | C# | Maticsoft.TaoBao_Source/Maticsoft.TaoBao.Request/SimbaAdgroupCampcatmatchsGetRequest.cs | 51zhaoshi/myyyyshop | gpl-3.0 | 1,512 | 53 | codeparrot/github-code |
cb8230ef59bae729c6b30bd54e80750dfc176bf0e12665129d3126e8dcebfa62 | # Copyright (c) 2014 Stefano Palazzo <stefano.palazzo@gmail.com>
# 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) any later version.
# Thi... | Python | hello/__main__.py | sfstpala/hello | gpl-3.0 | 1,225 | 45 | codeparrot/github-code |
3d6d0d5ad0df6ea915b15950c59ef4c0c065fc863e4f64f2e757f41539fb0191 | /*
* Copyright 2015 Jan von Cosel
*
* This file is part of utility-scripts.
*
* utility-scripts 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) an... | C++ | progs/source/mctdh_specinput.cpp | janvc/utility-scripts | gpl-3.0 | 17,237 | 552 | codeparrot/github-code |
3f0d23266eb87bfbeb5f22fd7cb66b064e328ac416e6ff6a68696e7975b6d940 | --Begin Tools.lua :)
local SUDO = 71377914 -- put Your ID here! <===
function exi_files(cpath)
local files = {}
local pth = cpath
for k, v in pairs(scandir(pth)) do
table.insert(files, v)
end
return files
end
local function file_exi(name, cpath)
for k,v in pairs(exi_files(cpath)) do
i... | Lua | plugins/tools.lua | ara8586/b.v4 | gpl-3.0 | 54,560 | 1,504 | codeparrot/github-code |
964741939c03cc62f38e430aa1a544e187e78c2bab03812597c004949b1d469a | package com.dotmarketing.servlets;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;
import javax.servlet.ServletException;
import javax.servlet.Serv... | Java | src/com/dotmarketing/servlets/IconServlet.java | austindlawless/dotCMS | gpl-3.0 | 3,815 | 127 | codeparrot/github-code |
6119e4b476bf5d312bd9bb2915b5768918040c185595f36e061fa0b4c0bedff0 | # Copyright (C) 2011-2012 Google Inc.
# 2016 YouCompleteMe contributors
#
# This file is part of YouCompleteMe.
#
# YouCompleteMe 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 versi... | Python | python/ycm/vimsupport.py | oblitum/YouCompleteMe | gpl-3.0 | 40,365 | 1,089 | codeparrot/github-code |
9aa03852af5f851f76ef933c04a945d12c72754c0074d81fd9c559818dcc7c75 | #if defined HAVE_CONFIG_H
#include "config.h"
#endif
#include <solver_core.hpp>
#include <triqs/operators/many_body_operator.hpp>
#include <triqs/hilbert_space/fundamental_operator_set.hpp>
#include <triqs/gfs.hpp>
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <iomanip>
//#incl... | C++ | src/01_triqs_ext/triqs_cthyb_qmc.cpp | jmbeuken/abinit | gpl-3.0 | 14,888 | 478 | codeparrot/github-code |
141047e01306b8708873beef9f0bdcd118ef7222e82e6f1950796246d697c7e4 | #!/usr/bin/env python3
import os
import logging
import tempfile
import shutil
from graftm.sequence_search_results import SequenceSearchResult
from graftm.graftm_output_paths import GraftMFiles
from graftm.search_table import SearchTableWriter
from graftm.sequence_searcher import SequenceSearcher
from graftm.hmmsearch... | Python | graftm/run.py | wwood/graftM | gpl-3.0 | 42,090 | 852 | codeparrot/github-code |
5199ba2dfae8868bcddbd82f31697f46e88a29a897967aac5633819e6acfae7e | /***********************************************************************
**
** Sturdy - note-taking app
** Copyright (C) 2016 Vladislav Tronko <innermous@gmail.com>
**
** Sturdy 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 So... | C++ | src/core/entrymanager.cpp | innermous/sturdy | gpl-3.0 | 2,683 | 106 | codeparrot/github-code |
6c0413b6bd8e787805141a8482abc313d14a1ab0a97943faf9593729a3748f1e | # Rain_Water_Trapping
def trappedWater(a, size) :
# left[i] stores height of tallest bar to the to left of it including itself
left = [0] * size
# Right [i] stores height of tallest bar to the to right of it including itself
right = [0] * size
# Initialize result
waterVol... | Python | Rain_Water_Trapping/Rain_Water_Trapping.py | jainaman224/Algo_Ds_Notes | gpl-3.0 | 1,208 | 55 | codeparrot/github-code |
f111e6b956b596e772b234ac0c58cb1f3054fe583c514a63cf172aa090a79943 | using System;
using System.Linq;
using System.Threading.Tasks;
using Discord;
using Discord.Commands;
using Geekbot.Core;
using Geekbot.Core.Database;
using Geekbot.Core.Database.Models;
using Geekbot.Core.ErrorHandling;
using Geekbot.Core.Extensions;
using Geekbot.Core.GuildSettingsManager;
using Geekbot.C... | C# | src/Bot/Commands/Randomness/Ship.cs | pizzaandcoffee/Geekbot.net | gpl-3.0 | 3,807 | 103 | codeparrot/github-code |
a815167b0edffe42cf56bba29194fa0487364fc8687af00afcca097483a16a5c | // Copyright 2014 The go-ethereum Authors
// This file is part of the go-ethereum library.
//
// The go-ethereum library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License... | GO | core/types/receipt.go | crazyquark/go-ethereum | gpl-3.0 | 3,431 | 116 | codeparrot/github-code |
bdf2ef897d54b5ee051ae39be3f9bc80b6e5f45ed1ea64bfcddb6c7155eea2c5 | /**
* Hub Miner: a hubness-aware machine learning experimentation library.
* Copyright (C) 2014 Nenad Tomasev. Email: nenad.tomasev at gmail.com
*
* 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
* Foundatio... | Java | src/main/java/draw/basic/ScreenImage.java | datapoet/hubminer | gpl-3.0 | 7,076 | 191 | codeparrot/github-code |
07d6ac766fa588af4581518628d8381c7df0a9f790a970f7cdccf9c8303541b0 | ---
title: "爬虫之 Scrapy 框架"
layout: post
date: 2018-02-24 22:48
tag:
- 爬虫
blog: true
author: Topaz
summary: "BeautifulSoup Xpath"
permalink: Spiders-Scrapy-01
---
<h1 class="title"> 爬虫之 Scrapy 框架 </h1>
<h2> Table of Contents </h2>
- [Scrapy 简介](#c1)
- [主要组件](#c2)
- [工作流程](#c3)
- [安装](#c4)
- [基本命令](#c5)
- [HtmlXpathSel... | Markdown | _posts/2018-06-10-Spiders-Scrapy-01.markdown | Topaz1618/Topaz1618.github.io | gpl-3.0 | 8,948 | 321 | codeparrot/github-code |
574ff00a09a3a8c13d1a342cb2f1537dd3051ab331846ccfb20c19e175215acf | @extends('admin.layout')
@section('styles')
<link href="/assets/css/pdfexport.css" rel="stylesheet">
@stop
@section('content')
<div class="container">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading">
<p><a href="{{ url('admin/stavkeposla/show',[$evidenc... | PHP | resources/views/admin/pdfponude/stavkamaterijal.blade.php | DraganValjak/WaterrproofingApp-Laravel5 | gpl-3.0 | 10,350 | 243 | codeparrot/github-code |
400aae9381f854ace66bb468044b86c0ee7eac8f1da1d786fbeae56916a18643 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# TODO prog_base.py - A starting template for Python scripts
#
# Copyright 2013 Robert B. Hawkins
#
"""
SYNOPSIS
TODO prog_base [-h,--help] [-v,--verbose] [--version]
DESCRIPTION
TODO This describes how to use this script. This docstring
will be printed by ... | Python | act_twitter.py | braynebuddy/PyBrayne | gpl-3.0 | 3,157 | 106 | codeparrot/github-code |
4e353d9dec2df1ddb78488596784c50660b8b6a7a18b1952f1739d2f3cac4d70 | /*****************************************************************************
* Copyright (c) 2014-2020 OpenRCT2 developers
*
* For a complete list of all authors, please refer to contributors.md
* Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
*
* OpenRCT2 is licensed under the GNU Gener... | C++ | src/openrct2/ride/thrill/Twist.cpp | LRFLEW/OpenRCT2 | gpl-3.0 | 6,309 | 177 | codeparrot/github-code |
26a98bd47980e6a5dece7beedd5d2451d5cad1b9d2472ea164a4b259e8ed09f2 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- Created by texi2html, http://www.gnu.org/software/texinfo/ -->
<head>
<title>Singular 2-0-4 Manual: D.5.8.6 is_reg</title>
<meta name="description" content="Singular 2-0-4 Manual: D.5.8.6 is_reg">
<meta n... | HTML | texi2html/test/singular_manual/res/singular_httex/is_005freg.html | cgwalters/texinfo-git-mirror | gpl-3.0 | 7,548 | 146 | codeparrot/github-code |
39bf269c875da6dfb91a8cc2f2fe5f6e36fe252718e1369302b7fa2c775f924d | /*
Copyright (C) 2012 Statoil ASA, Norway.
The file 'config_content_node.h' is part of ERT - Ensemble based Reservoir Tool.
ERT 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 ... | C | ThirdParty/Ert/devel/libconfig/include/ert/config/config_content_node.h | iLoop2/ResInsight | gpl-3.0 | 3,666 | 62 | codeparrot/github-code |
0c450c19f3ab732729981c29ce0af80de923e3bf735b3f62c09264508fd95df0 | package beseenium.controller.ActionFactory;
/** Copyright(C) 2015 Jan P.C. Hanson & BeSeen Marketing Ltd
*
* 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, o... | Java | src/beseenium/controller/ActionFactory/ActionFactory.java | jpchanson/BeSeenium | gpl-3.0 | 7,333 | 147 | codeparrot/github-code |
df75ba879665be4fbacb7dfadf66151885d24b3546ecf33cdc299952a65e7e67 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package proyectomio.controlador.operaciones;
import proyectomio.accesoDatos.Controlador_BD;
import proyectomio.modelo.Consulta;
/**
... | Java | src/java/proyectomio/controlador/operaciones/Controlador_Conductor.java | luchoman08/Proyecto-MIO | gpl-3.0 | 1,169 | 33 | codeparrot/github-code |
4c3b808c43a3716bc482604828c1f8faa1ad5469b586d8a09091c3532f87f4f4 | #include <cstdio>
#include <vector>
#include <utility>
#include <algorithm>
using namespace std;
pair<int, int> computeGreedyLongestPath(const vector<vector<int> > & adjList, int startV, const vector<int> & weightOfVertex);
int main(void)
{
int T, numV, numE, u, v, caseId;
vector<vector<int> > adjList;
vector<int... | C++ | UVA12376.cpp | shakil113/Uva-onlineJudge-solve | gpl-3.0 | 1,472 | 65 | codeparrot/github-code |
5824aa39ffb8e80bd6264ea0d9a83c62b5d012481e61d496b6afd81b4d668a2a | <!DOCTYPE html>
<html lang="fr">
<html>
<head>
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" href="./assets/css/mail.css"/>
</head>
<body bgcolor="#E6E6FA">
<?php include 'back-submit... | PHP | mail.php | WillemHeremans/CV | gpl-3.0 | 2,848 | 111 | codeparrot/github-code |
cb2a72d3ac3ebc4be5896ff9799d10bd8713abd045009ba7fb5205980d578872 | //
// Copyleft RIME Developers
// License: GPLv3
//
// 2013-04-18 GONG Chen <chen.sst@gmail.com>
//
#include <boost/algorithm/string.hpp>
#include <boost/lexical_cast.hpp>
#include <rime/dict/table_db.h>
#include <rime/dict/user_db.h>
// Rime table entry format:
// phrase <Tab> code [ <Tab> weight ]
// for multi-sylla... | C++ | src/dict/table_db.cc | jinntrance/librime | gpl-3.0 | 2,233 | 87 | codeparrot/github-code |
df107c2e2becbd82edd81cdc75d4c12342dce4a2ac8f446be8fb1988fdcde65e | import React from 'react';
import { mount } from 'enzyme';
import { Link, HashRouter as Router } from 'react-router-dom';
import { Button } from 'react-bootstrap';
import BackHomeButton from '../BackHomeButton';
describe('<BackHomeButton/>', () => {
it('<BackHomeButton /> should render <Router/>', () => {
const ... | JavaScript | webapp/src/components/__tests__/BackHomeButton.test.js | gcallah/Indra | gpl-3.0 | 1,329 | 37 | codeparrot/github-code |
d89ef96ca16fc21b2f3539505bb5c8bfa2293d86ae75156ef60582e16739ff7c | 'use strict';
var Ose = require('ose');
var M = Ose.class(module, './index');
/** Docs {{{1
* @submodule bb.pagelet
*/
/**
* @caption Dashboard pagelet
*
* @readme
* Pagelet for creating dashboard content.
*
* @class bb.lib.pagelet.dashboard
* @type class
* @extends bb.lib.pagelet
*/
// Public {{{1
expor... | JavaScript | lib/pagelet/dashboard.js | FredRooks/ose-bb | gpl-3.0 | 2,656 | 130 | codeparrot/github-code |
d06a826bf0437738ef1ecbb854bd182bbc0018856d3344338d7353b4c9cc6854 | /*
* File: Queue.h
* Author: Sileno Brito
*
* Created on 2 de Setembro de 2013, 11:27
*/
#ifndef QUEUE_H
#define QUEUE_H
#include <ext/struct/Node.h>
#include <ext/struct/List.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct list queue;
struct EngineQueue {
queue * (*createEmpty)(in... | C | ext/struct/Queue.h | sobrito/slnMathCore | gpl-3.0 | 971 | 43 | codeparrot/github-code |
7101ad472365ce0abe504cd392a576a4ef068034d0fe2c0ee6ffb4ea36a0f517 | /*
*
* Mouse driver
*
*/
#include <kernel/system.h>
#include <kernel/logging.h>
#include <kernel/pipe.h>
#include <kernel/module.h>
#include <kernel/mouse.h>
#include <kernel/args.h>
static uint8_t mouse_cycle = 0;
static uint8_t mouse_byte[4];
#define PACKETS_IN_PIPE 1024
#define DISCARD_POINT 32
#define MOUSE... | C | kernel/mouse.c | jpacanowski/GekonOS | gpl-3.0 | 5,159 | 248 | codeparrot/github-code |
59c2d8430e6b7345decdbd09ba3b98a50c95cf39e70fa7b2d52c095edbef7d62 | #include<bits/stdc++.h>
using namespace std;
typedef long long LL;
LL n,m,A,B,C;
LL solve1(LL x,LL y){
LL ans=0;
ans+=y*max(max(A,B),C);
if(x%2==1){
ans+=max((x-1)*(A+C)/2,(x-1)*B);
}else{
ans+=max((x-2)*(A+C)/2,(x-2)*B);
ans+=max(B,min(A,C));
}
return ans;
}
LL solve2(LL x,LL y){
LL ans=0;
ans+=x*min(mi... | C++ | Training/8.15/J.cpp | kzoacn/Grimoire | gpl-3.0 | 634 | 38 | codeparrot/github-code |
96220605b4b01a9123e24db1ed102de74356db6391f5e5b78b9e3c245f9d303a | package io.github.notsyncing.cowherd.files;
import io.github.notsyncing.cowherd.Cowherd;
import io.github.notsyncing.cowherd.commons.CowherdConfiguration;
import io.github.notsyncing.cowherd.commons.RouteType;
import io.github.notsyncing.cowherd.models.ActionMethodInfo;
import io.github.notsyncing.cowherd.models.Route... | Java | cowherd-core/src/main/java/io/github/notsyncing/cowherd/files/FileStorage.java | notsyncing/cowherd | gpl-3.0 | 9,494 | 312 | codeparrot/github-code |
477aa0d1c6cba6bfe765750494aafe8123a514ed158862cce0bef86285f6eaad | /*
* Copyright 2014 Tilera Corporation. All Rights Reserved.
*
* 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, version 2.
*
* This program is distributed in the hope that it will ... | C | arch/tile/kernel/perf_event.c | williamfdevine/PrettyLinux | gpl-3.0 | 24,932 | 1,152 | codeparrot/github-code |
8ae8aac374fba7c08d69097fda8c48c080d8ab6fdd01d33d47a432f440e3627b |
namespace DataStoreLib.Utils
{
using System;
using System.Configuration;
using System.Diagnostics;
using System.Net;
using System.Net.Mail;
/// <summary>
/// This class use to send mails
/// </summary>
public class MailManager
{
/// <summary>
/// Send an email
... | C# | DataStoreLib/Utils/MailManager.cs | viren85/moviemirchi | gpl-3.0 | 2,773 | 73 | codeparrot/github-code |
3edb301516a0079f41d2b01570151ab921a670c297eae2c5560804f890ee5674 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode fieldsfirst
package net.minecraft.src;
import java.util.List;
import java.util.Random;
import net.minecraft.client.Minecraft;
import org.lwjgl.input.Mou... | Java | mcp50/temp/src/minecraft/net/minecraft/src/GuiAchievements.java | sethten/MoDesserts | gpl-3.0 | 14,368 | 393 | codeparrot/github-code |
d501cb84d3cf74817744e64610e92facab58dff01b8e461a62cf99efaf504ce2 | /*
* Copyright (c) 2014 Amahi
*
* This file is part of Amahi.
*
* Amahi 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) any later version.
*
* A... | Java | src/main/java/org/amahi/anywhere/AmahiModule.java | mehtamanan0/android | gpl-3.0 | 2,855 | 91 | codeparrot/github-code |
872291f56f07681ced42da8d570e37c86ecd526c9e7f3408f6149ff1c129aa45 | package org.fnppl.opensdx.security;
/*
* Copyright (C) 2010-2015
* fine people e.V. <opensdx@fnppl.org>
* Henning Thieß <ht@fnppl.org>
*
* http://fnppl.org
*/
/*
* Software license
*
* As far as this file or parts of this file is/are software, rather than documentation, this software-... | Java | src/org/fnppl/opensdx/security/SubKey.java | fnppl/openSDX | gpl-3.0 | 4,291 | 132 | codeparrot/github-code |
7a8e034ef126cc65ccc81d4f539f8f2d9c73297709fde3e1ec54a9dcbce589be | /*<html><pre> -<a href="qh-merge.htm"
>-------------------------------</a><a name="TOP">-</a>
merge.h
header file for merge.c
see qh-merge.htm and merge.c
copyright (c) 1993-2003, The Geometry Center
*/
#ifndef qhDEFmerge
#define qhDEFmerge 1
/*============ -constants- ... | C | src/qhulllib/qh_merge.h | iocroblab/coindesigner | gpl-3.0 | 7,072 | 175 | codeparrot/github-code |
2c270e98ffa740dd83d05134b6faac949cdd9310127fd07899c5a8aead973f4c | <?php
class Sign_in_with_model extends CI_Model {
public function __construct()
{
parent::__construct();
$this->load->database();
}
public function get_sign_with($name)
{
$this->db->select('setting, name');
$this->db->where('code', 'sign_in_with');
$this->db->where('name', $name);
$this->... | PHP | public/models/setting/Sign_in_with_model.php | xcalder/openant | gpl-3.0 | 3,224 | 106 | codeparrot/github-code |
f2299fa259965721c17aef4e968fe05d5b811355bb9c900228eb8d89c9c0b2be | <?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle 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) any later version.
//
// Moodle... | PHP | lang/en_us/enrol_self.php | danielbonetto/twig_MVC | gpl-3.0 | 4,760 | 65 | codeparrot/github-code |
7c38b885d251c1d77cc8d2f1bd23ec3e9a96913fd081a3cf06132ea827df1cd6 | #include "defs.h"
#include "fdefs.h"
#include <stdlib.h>
void
gasify(job)
char *job;
{
char command[MAXCOMM] ;
char g_type[MAXCOMM] ;
double temp_y ;
double temp_slope ;
double rho_shock ;
double temp_shock ;
double gas_frac ;
double rhobar ;
double metal ;
double rho ;
... | C | preschool/tipsy-2.2.3d/code/gasify.c | FavioVazquez/MexicanNumericalSimulationSchool | gpl-3.0 | 5,301 | 178 | codeparrot/github-code |
576c6fe1446c98cf4d48c2d326bbceeadfebfa24a546b889f5fd79d3713a8389 | # -*- coding: utf-8 -*-
import re
from django.utils.safestring import mark_safe
from django.contrib.admin.widgets import AdminFileWidget
from django.template.defaultfilters import slugify
from django.utils.encoding import smart_text
from unidecode import unidecode
from django.forms.widgets import FILE_INPUT_CONT... | Python | attachment/widgets.py | redsolution/django-tinymce-attachment | gpl-3.0 | 3,019 | 74 | codeparrot/github-code |
63dd1d368e7764b072c8e5051ba6530ec775a5397c10a6cd8950710799a8c5d3 | /*
** AACPlayer - Freeware Advanced Audio (AAC) Player for Android
** Copyright (C) 2011 Spolecne s.r.o., http://www.biophysics.com
**
** 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... | C | jni/aac-decoder/aac-ffmpeg-wma-decoder.c | gmavenis/RadioPlayer | gpl-3.0 | 10,374 | 446 | codeparrot/github-code |
4a1ad65119fcedda16617f3f257ddb7c40da68b705b294b506285726c959bbcf | package asdf.test;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Stack;
public class Solution {
/**
* (反转单词串 ) Given an input string, reverse the string word by word.
*
* For example, Given s = "the sky is blue", return "blue is sky the".
... | Java | 151 Reverse Words in a String/src/asdf/test/Solution.java | asdfdypro/LeetCode | gpl-3.0 | 1,485 | 59 | codeparrot/github-code |
cd24ba280cf962b00f40d3c1ef1226472254bab984bd54361afc00bddb9b3699 | var express = require('express'),
router = express.Router(),
adminModel = require('../models/adminModel'),
moment = require('moment'),
helperFun = require('../lib/helperFunc'),
md5 = require('md5');
router
.get('',function (request,response){
adminModel.find({},{"__v" : 0, "password" : 0, "emailCode" : 0},fun... | JavaScript | routers/adminRouter.js | adeeldev/courts | gpl-3.0 | 2,766 | 78 | codeparrot/github-code |
218c21c5c8f5507d9a30b6b386cc8e1e675677dc5ba12a59f1f472bd6deaf4b4 | package com.osiykm.flist.services.programs;
import com.osiykm.flist.entities.Book;
import com.osiykm.flist.enums.BookStatus;
import com.osiykm.flist.repositories.BookRepository;
import com.osiykm.flist.services.parser.FanfictionUrlParserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factor... | Java | src/main/java/com/osiykm/flist/services/programs/BookUpdaterProgram.java | osiykm/flist | gpl-3.0 | 1,723 | 53 | codeparrot/github-code |
72687f20d5fe0a4beb2b6813b083618d199e4a592781109334bab05eb49d33f9 | import json
from collections import (
Counter,
defaultdict as deft
)
from copy import deepcopy as cp
# from cPickle import (
# dump as to_pickle,
# load as from_pickle
# )
from StringIO import StringIO
from TfIdfMatrix import TfIdfMatrix
from Tools import from_csv
class CategoryTree:
de... | Python | lib/CategoryTree.py | JordiCarreraVentura/spellchecker | gpl-3.0 | 7,145 | 227 | codeparrot/github-code |
89063e19266960412637ab763f987b36f12201e0eeaf638e67a2c7dd9b7f50ce | """
File: foursquares.py
Draws squares in the corners of a turtle window.
One square is black, another is gray, and the
remaining two are in random colors.
"""
from turtlegraphics import Turtle
import random
def drawSquare(turtle, x, y, length):
turtle.up()
turtle.move(x, y)
turtle.setDirection(270)
... | Python | Example Programs/Ch_07_Student_Files/foursquares.py | gregpuzzles1/Sandbox | gpl-3.0 | 1,378 | 52 | codeparrot/github-code |
d92de28c892b8a71d53460042f5ba0f20585b4f02b407fea609837440ba1463e | Puppet::Type.type(:foreman_architecture).provide(:rest) do
confine :true => begin
begin
require 'oauth'
require 'json'
require 'puppet_x/theforeman/architecture'
true
rescue LoadError
false
end
end
mk_resource_methods
def initialize(value={})
super(value)
end
... | Ruby | lib/puppet/provider/foreman_architecture/rest_v2.rb | opentable/puppet-foreman | gpl-3.0 | 1,288 | 69 | codeparrot/github-code |
07887e4b96d2c71063e9129205ba2c910da4df6be6a9d2d0d68a9782c07fbaa0 | #ifndef GRAPH_INTERFACE_HPP
#define GRAPH_INTERFACE_HPP
#include "graphdsl.hpp"
#include <vector>
#include <utility>
#include <type_traits>
namespace netalgo
{
template<typename NodeType, typename EdgeType>
class GraphInterface
{
private:
static_assert(std::is_class<NodeType>::value, "NodeType must be a c... | C++ | include/graph_interface.hpp | htfy96/network_algo | gpl-3.0 | 3,289 | 84 | codeparrot/github-code |
0cba2a387d342336d4c67be1008dfcea34086617b2c54d0f5894eb2a63d61b15 | # ##### BEGIN GPL LICENSE BLOCK #####
#
# 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 2
# of the License, or (at your option) any later version.
#
# This program is distrib... | Python | old_nodes/__init__.py | kilon/sverchok | gpl-3.0 | 4,863 | 149 | codeparrot/github-code |
af6465c67d2aa4190ea266b49be0ca66bc852bf0748d7f810f0066f6d7202ab4 | /**
* Copyright (C) 2005-2013, Stefan Strömberg <stefangs@nethome.nu>
*
* This file is part of OpenNetHome (http://www.nethome.nu)
*
* OpenNetHome 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... | Java | home-items/rf-items/src/main/java/nu/nethome/home/items/nexa/NexaRemapButton.java | SourceCodeSourcerer/NetHomeServer | gpl-3.0 | 5,233 | 141 | codeparrot/github-code |
4f67b193ed82ecafe8d251fea5f1717ddacd7dab477a9397614bb994ba8d720c | # coding: utf-8
"""
rita Pipeline
.. module:: rita
:synopsis: rita pipeline
.. moduleauthor:: Adolfo De Unánue <nanounanue@gmail.com>
"""
import os
import subprocess
from pathlib import Path
import boto3
import zipfile
import io
import csv
import datetime
import luigi
import luigi.s3
import pandas as pd
... | Python | rita/pipelines/rita.py | nanounanue/rita-pipeline | gpl-3.0 | 6,976 | 254 | codeparrot/github-code |
ab2a27f5b053afc2eb9bfe06f7ec1bafe5efd14ddc0fede8df7b539f66af6d84 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<style>
table.head, table.foot { width: 100%; }
td.head-rtitle, td.foot-os { text-align: right; }
td.head-vol { text-align: center; }
table.foot td { width: 50%; }
table.head td { width: 33%; }
div.spacer { margin: 1em 0; }
</style>
<title>
Mono(MakeCert)</title>
</... | HTML | man/makecert.1.html | fusion809/fusion809.github.io-old | gpl-3.0 | 7,430 | 277 | codeparrot/github-code |
29163f8efbbdaab3b5b741d302c618574db7f165389c41e58d46152ae642e7d9 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# compute/__init__.py
"""
See |compute.subsystem|, |compute.network|, |compute.distance|, and
|compute.parallel| for documentation.
Attributes:
all_complexes: Alias for :func:`pyphi.compute.network.all_complexes`.
ces: Alias for :func:`pyphi.compute.subsystem.ces... | Python | pyphi/compute/__init__.py | wmayner/pyphi | gpl-3.0 | 1,545 | 49 | codeparrot/github-code |
299fb41703fbc32d02816333631022bf1a03345835098a3fb449508970556f5e | #include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fap.h>
#define EXIT_SUCCESS 0
char *readstdin(void);
int main()
{
char* input;
unsigned int input_len;
fap_packet_t* packet;
char fap_error_output[1024];
fap_init();
/* Get packet to parse from stdin */
input = readstdin... | C | faptest.c | n7nix/dantracker | gpl-3.0 | 1,515 | 71 | codeparrot/github-code |
c0de730e7fbe307e71545b1f5ed94d39ca0bbca24a7365f7d092cb59a596f2e7 | /*
Copyright (C) 2013 Nils Weiss, Patrick Bruenn.
This file is part of Wifly_Light.
Wifly_Light 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 y... | C | library/ScriptManager.h | polybassa/WyLight | gpl-3.0 | 1,457 | 46 | codeparrot/github-code |
c29a92f55e505bc3c8e1277c576ca043ade87e4e57eb3bdfaae7bfaedbac3b64 | /// @file core/thread_sched.hh
// Uniqos -- Unique Operating System
// (C) 2012-2015 KATO Takeshi
//
// Uniqos 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
// ... | C++ | core/include/core/thread_sched.hh | takeneco/uniqos | gpl-3.0 | 1,615 | 71 | codeparrot/github-code |
7902bdad24c1a1030a7606c2f21ce07f83fb108bf17643160c1ef3f4ef17f330 | /***************************************************************************
* Project file: NPlugins - NTalk - TimedFilter.java *
* Full Class name: fr.ribesg.bukkit.ntalk.filter.bean.TimedFilter *
* *
* ... | Java | NTalk/src/main/java/fr/ribesg/bukkit/ntalk/filter/bean/TimedFilter.java | Ribesg/NPlugins | gpl-3.0 | 1,459 | 43 | codeparrot/github-code |
cc8dbe29a1cc71c21095bbd0f9bc8caada0f983ad6d9cc40dccdc6c4da633369 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package net.projectzombie.regionrotation.modules;
import com.sk89q.worldguard.bukkit.WGBukkit;
import com.sk89q.worldedit.LocalWorld;
... | Java | src/main/java/net/projectzombie/regionrotation/modules/RegionWorld.java | jmbannon/RegionRotation | gpl-3.0 | 1,404 | 43 | codeparrot/github-code |
f8e3dbb32fce1b0fe58912da8b7cf3b31ea807406511ba74874a6a31cdd79725 | package com.plutomc.power.common.blocks;
import com.plutomc.core.common.blocks.BlockMetal;
import com.plutomc.power.Power;
import com.plutomc.power.common.tileentities.TileEntityCombustionEngine;
import com.plutomc.power.init.BlockRegistry;
import com.plutomc.power.init.GuiHandler;
import net.minecraft.block.ITileEnti... | Java | src/main/java/com/plutomc/power/common/blocks/BlockCombustionEngine.java | plutomc/power | gpl-3.0 | 3,925 | 120 | codeparrot/github-code |
3756bd1a99dc3cacf2fd0ad568321f4be79a3fc1247e829943e2863852e6147d |
#!/bin/bash
#
# Copyright 2013 - Bavo De Ridder <http://www.bavoderidder.com/>
#
# This file is part of mysql-backup.
#
# Mysql-backup 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 ... | Shell | src/main/bash/backup_mysql.sh | CoderSpotting/mysql-backup | gpl-3.0 | 2,016 | 52 | codeparrot/github-code |
76383370043a43e38aa21bc7e0dda51926012343eb8f16ba8eadedcf7395ce14 | <?php
/**
* @author YIThemes
* @package WooCommerce/Templates
* @version 1.6.4
*/
global $post;
echo '<div class="options_group">';
// Active custom onsale
$active = get_post_meta($post->ID, '_active_custom_onsale', true);
woocommerce_wp_checkbox( array( 'id' => '_active_cus... | PHP | woocommerce/admin/custom-onsale.php | zgomotos/Bazar | gpl-3.0 | 4,599 | 115 | codeparrot/github-code |
e4af3610ac8194c0820c9d339bed3fd1c7d989c965f29bae9e4058398a9e088e | package nl.jappieklooster;
import java.util.logging.ConsoleHandler;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
* Wraps arround the java.util.logging.Logger, just to save some typing time. & it makes all the
* loging go trough here so sutting it down is easy
*
* @author jappie
*/
public ... | Java | src/nl/jappieklooster/Log.java | jappeace/hw-isad2gp-groovy | gpl-3.0 | 1,848 | 79 | codeparrot/github-code |
7b2c4d92276a30a2a5d7f92b3d04ac2b5efc5aa45d8812ebea841860cba7abf1 | <!-- meta:title cookbooks, snowballs, and bowling parties -->
<p>Dear Journal,</p>
<p>Good morning, everyone! Hope you're having a great Sunday thus far.
We're having an easy morning, waking up with plenty of time to get to
the eleven o'clock church service, but I'm sure that by the time I'm
finished writing this entr... | HTML | entries/2020-01-19.html | arecker/blog | gpl-3.0 | 6,030 | 90 | codeparrot/github-code |
979232f42668262605eb8bfd24adf52c0dab454930513c689de907773bb8a0c9 | import com.google.common.collect.MapDifference;
import com.google.common.collect.Maps;
import com.google.common.reflect.TypeToken;
import com.google.gson.*;
import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.io.xml.DomDriver;
import edu.pitt.isg.Converter;
import edu.pitt.isg.dc.TestConvertDatsToJ... | Java | src/test/java/DatasetValidatorTest.java | midas-isg/digital-commons | gpl-3.0 | 37,788 | 833 | codeparrot/github-code |
b1f214324a6640d5901bcda60ce1df089bd8d20868764cfc58247ea1524c2699 | <!--
Automatically generated HTML file from DocOnce source
(https://github.com/hplgit/doconce/)
-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="DocOnce: https://github.com/hplgit/doconce/" />
<meta name="description" content="App.E: Programming of ... | HTML | slides/ode2/html/._ode2-solarized016.html | map0logo/saisho | gpl-3.0 | 9,937 | 284 | codeparrot/github-code |
7680533f5da36d4fdee6b1e054f33aa34d44c7281ae7f2e5dd94c77302b7b869 | from couchpotato.api import addApiView
from couchpotato.core.event import addEvent, fireEvent, fireEventAsync
from couchpotato.core.helpers.encoding import ss
from couchpotato.core.helpers.request import jsonified
from couchpotato.core.logger import CPLog
from couchpotato.core.plugins.base import Plugin
from couchpotat... | Python | couchpotato/core/_base/updater/main.py | jayme-github/CouchPotatoServer | gpl-3.0 | 14,024 | 441 | codeparrot/github-code |
cd7e34a2004cc4746ee1d24ba5c4cca4b9e1ebcfa249984818ec9eec1eb1118b | //////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2014, Jonathan Balzer
//
// All rights reserved.
//
// This file is part of the R4R library.
//
// The R4R library is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Publi... | C | r4r_core/precond.h | jonabalzer/r4r | gpl-3.0 | 2,501 | 107 | codeparrot/github-code |
40f33f5f38440c13a9677236bf7d5b0e9e2fe3222af7b70cb8ce1630019feb75 | package com.success.txn.jpa.repos;
import java.util.Date;
import javax.persistence.EntityManager;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;... | Java | springtxn/src/main/java/com/success/txn/jpa/repos/RepetableReadRepo.java | btamilselvan/tamils | gpl-3.0 | 2,233 | 64 | codeparrot/github-code |
a4c2ab743453ddfa329a909f70c5e92ab0c6b78165c3b92c29e69a93e81d5923 | /* Copyright (C) 2014-2022 FastoGT. All right reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditio... | C | include/common/threads/platform_thread.h | fastogt/common | gpl-3.0 | 4,206 | 125 | codeparrot/github-code |
1799a578ed7fc6423f98d25a565ad47f964a7461a43facdde3368f326de00622 | /* MapleLib - A general-purpose MapleStory library
* Copyright (C) 2009, 2010, 2015 Snow and haha01haha01
* 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 Lice... | C# | WzLib/WzProperties/WzStringProperty.cs | haha01haha01/MapleLib | gpl-3.0 | 3,630 | 122 | codeparrot/github-code |
5c72e49b4c39c6e55838b3df4d7d72556afb81db909be81ff111bba765eb3dc0 | /*
* Copyright (c) 2011 Nicholas Okunew
* All rights reserved.
*
* This file is part of the com.atomicleopard.webelemental library
*
* The com.atomicleopard.webelemental library is free software: you
* can redistribute it and/or modify it under the terms of the GNU
* Lesser General Public Lic... | Java | src/main/java/com/atomicleopard/webelemental/ElementMatchers.java | atomicleopard/WebElemental | gpl-3.0 | 3,429 | 106 | codeparrot/github-code |
cabbe8d3b4c36fb39518b294fff480487eabe266b6cf8bd30a0eb072b3d3993f | #include <thread.h>
#include <processor.h>
#include <interrupt.h>
#include <printk.h>
_Atomic long long min_time = 0;
static struct thread *__select_thread(struct processor *proc)
{
/* throw the old process back on the queue */
spinlock_acquire(&proc->schedlock);
if(current_thread->flags & THREAD_DEAD)
current_t... | C | kernel/schedule.c | Dennisbonke/DB-OS | gpl-3.0 | 3,944 | 125 | codeparrot/github-code |
2c08d6ea60a6892221b7dc08d2c322d4ff000d85584856f6766df8528f9fec3d | /*****************************************************************************\
* $Id: ipmiping.c,v 1.75 2010-02-08 22:02:31 chu11 Exp $
*****************************************************************************
* Copyright (C) 2007-2015 Lawrence Livermore National Security, LLC.
* Copyright (C) 2003-2007 The... | C | ipmiping/ipmiping.c | chu11/freeipmi | gpl-3.0 | 17,845 | 474 | codeparrot/github-code |
cfc11014a1fd5643a5db19db963d43f5fb7ee5d3c5475079b07dc8fc3062f929 | /*
* (C) Copyright 2010
* Stefan Roese, DENX Software Engineering, sr@denx.de.
*
* SPDX-License-Identifier: GPL-2.0+
*/
/*
* t3corp.h - configuration for T3CORP (460GT)
*/
#ifndef __CONFIG_H
#define __CONFIG_H
/*
* High Level Configuration Options
*/
#define CONFIG_460GT 1 /* Specific PPC460GT */
#define CO... | C | include/configs/t3corp.h | dasuimao/U-BOOT-Tiny4412 | gpl-3.0 | 21,495 | 534 | codeparrot/github-code |
c35be5d13c1104f8e052efe44afb6994b34c8ee2af05fb713885d733d38d5688 | # ABSTRACT: A collection of Net::Object::Peer::Subscriptions
package Net::Object::Peer::Subscriptions;
use 5.10.0;
use Types::Standard qw[ ArrayRef InstanceOf ];
use Ref::Util qw[ is_coderef ];
use List::Util qw[ all ];
use Safe::Isa;
use Net::Object::Peer::Subscription;
use Net::Object::Peer::Subscription::Ephemera... | Perl | lib/Net/Object/Peer/Subscriptions.pm | djerius/Net-Object-Peer | gpl-3.0 | 3,628 | 184 | codeparrot/github-code |
78c7fdb1a08c21a6f83408c301ada152173b3b79af70d6d3740ac6245d048ae5 | <?php
/***************************************************************************
* db.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb... | PHP | db/db.php | CATtelecomProjects/BIS | gpl-3.0 | 3,290 | 100 | codeparrot/github-code |
2b8e88fb37278def420858ff3c513eb0d7e4af81be81fa69b3228373eff1ea35 | package edu.casetools.icase.mreasoner.gui.model.io;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
public class FileReaderModel {
FileReader fileReader = null;
BufferedReader br = null;
public void open(String fileName){
try {
fileReader = new FileR... | Java | mreasoner-gui/src/main/java/edu/casetools/icase/mreasoner/gui/model/io/FileReaderModel.java | ualegre/mreasoner-gui | gpl-3.0 | 830 | 44 | codeparrot/github-code |
e27f5b851493fce72c1728042d29a96bc8d7755b1000e04b7ae0d4f9058b4ff5 | package alexiil.mc.mod.load.baked.render;
import org.lwjgl.opengl.GL11;
import net.minecraft.client.gui.FontRenderer;
import alexiil.mc.mod.load.render.MinecraftDisplayerRenderer;
import buildcraft.lib.expression.api.IExpressionNode.INodeDouble;
import buildcraft.lib.expression.api.IExpressionNode.INodeLong;
import... | Java | src/main/java/alexiil/mc/mod/load/baked/render/BakedTextRender.java | AlexIIL/CustomLoadingScreen | gpl-3.0 | 2,497 | 76 | codeparrot/github-code |
7093f74527507eb3bba82e8bbee0ace0f4e09bf811ffe56695d641606ecaa8b7 | package com.tianyu.mesimp.survey.service;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Service;
import com.tianyu.mesimp.survey.bean.CompanyNum;
@Service
public class SunrveyService {
private Map<String, Comp... | Java | src/main/java/com/tianyu/mesimp/survey/service/SunrveyService.java | xuhw158/mesimp | gpl-3.0 | 2,242 | 55 | codeparrot/github-code |
9fdcc81179962ac3a48271e3de6e5b48e1f261da06c3e0a59e82bd7ffe48a325 | package eu.siacs.conversations.persistance;
import android.annotation.TargetApi;
import android.content.ContentResolver;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
... | Java | src/main/java/eu/siacs/conversations/persistance/FileBackend.java | andre-hub/Conversations | gpl-3.0 | 34,726 | 1,067 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.