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 |
|---|---|---|---|---|---|---|---|---|
03d79877aa0afdc07c41c6717c86b1e22e49a52b3e3c3d58807c90bee80808f8 | package org.spacebar.escape.common;
import java.io.*;
import java.util.ArrayList;
public class Level {
public static class MetaData {
final public int width;
final public int height;
final public String title;
final public String author;
public MetaData(int width, int ... | Java | src/org/spacebar/escape/common/Level.java | agoode/escape-java | gpl-3.0 | 63,051 | 2,177 | codeparrot/github-code |
706d7309b257027220cfead270a55eec2134f425ce48cf26da34549ca5923663 | /**
* @brief Proton analytical beam parameters
*/
/*
* AT_ProtonAnalyticalBeamParameters.c
* ==============
*
* Created on: 11.02.2019
* Creator: grzanka
*
* Copyright 2006, 2010 The libamtrack team
*
* This file is part of the AmTrack program (libamtrack.sourceforge.net).
*
* AmTrack... | C | src/AT_ProtonAnalyticalBeamParameters.c | libamtrack/library | gpl-3.0 | 17,206 | 512 | codeparrot/github-code |
7e095afcea5d5e3611f1cb472c9490bce2194dde8e374790756929a3db67b16a | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class AchievementPanelHandle : MonoBehaviour
{
public enum DEFAULT_STATE { ON, OFF};
public DEFAULT_STATE achievementPanelState;
private bool achievPanelIsOn = false;
public GameObject achievementPanel;
private A... | C# | Assets/Production/Achievements/UI Elements/Scripts/AchievementPanelHandle.cs | gantzoulis/auldtds | gpl-3.0 | 1,844 | 80 | codeparrot/github-code |
cae4259f13ab530e6c4d58f41aa5ac2e746d21c0fc94c5b741ef79086ce1742f | <?php
namespace ApacheSolrForTypo3\Solr\System\Configuration;
/***************************************************************
* Copyright notice
*
* (c) 2010-2016 Timo Schmidt <timo.schmidt@dkd.de
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you... | PHP | Classes/System/Configuration/ConfigurationPageResolver.php | timohund/ext-solr | gpl-3.0 | 4,032 | 118 | codeparrot/github-code |
e3a031ee66dfa47b6d945cbc98995aa719d68db3dc55320355e1677a434751c0 | /*******************************************************************************
* Copyright (C) 2017-2022 Theodore Chang
*
* 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 ... | C | Section/Section3D/Box3D.h | TLCFEM/suanPan | gpl-3.0 | 1,861 | 65 | codeparrot/github-code |
792461909a34739935d437580a80a3077ef0445fde3d07060ae7caf31162d83f | /*
Copyright (C) 2014 Michal Kosciesza <michal@mkiol.net>
This file is part of Kaktus.
Kaktus 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 opti... | C | sailfish/src/downloadmanager.h | mkiol/kaktus | gpl-3.0 | 5,691 | 212 | codeparrot/github-code |
c1b8ccbf8423611d2b38b493bf1bee627e25411109d49e0004a10377786b9b23 |
package mobi.my2cents;
import mobi.my2cents.utils.Helper;
import mobi.my2cents.utils.NetworkManager;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.SharedPreferences.OnSharedPreferenceChangeListener;
import android.os.Bundle;
import android.preference.CheckBoxPreferenc... | Java | src/mobi/my2cents/SettingsActivity.java | kpii/my2cents-android | gpl-3.0 | 4,768 | 152 | codeparrot/github-code |
6ac8c0291cb7683a5995d70fe509b392ae8c8b6ec4a25ba1f289b1f2a61de80f | #pragma once
#include <string>
#include <mutex>
#include "ScanObject.h"
#include "../xLights/outputs/OutputManager.h"
#include "../xLights/Discovery.h"
class wxProgressDialog;
class xScannerFrame;
class Scanner
{
public:
std::mutex _mutex;
OutputManager _om;
Discovery* _discovery = nullptr;
ComputerObject _com... | C | xScanner/Scanner.h | cjd/xLights | gpl-3.0 | 1,536 | 50 | codeparrot/github-code |
3f526158e32d04f7f7c84bd7b9c72a7445f0093ebb2b56b4cbc8568100fe59d4 | <?php
/**
* Copyright © OXID eSales AG. All rights reserved.
* See LICENSE file for license details.
*/
namespace OxidEsales\EshopCommunity\Application\Controller\Admin;
use OxidEsales\Eshop\Core\Registry;
use OxidEsales\Eshop\Core\TableViewNameGenerator;
/**
* Admin Contents manager.
* Collects Content base i... | PHP | source/Application/Controller/Admin/ContentList.php | OXID-eSales/oxideshop_ce | gpl-3.0 | 2,476 | 87 | codeparrot/github-code |
72e47c7b0151a73e80d4ee2ea9a49f04aec4f2b1e2020235cfd3952a6651db10 | /*
* Copyright (C) 2013-2014 Dabo Ross <http://www.daboross.net/>
*
* 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... | Java | src/main/java/net/daboross/bukkitdev/tenjava/listeners/OnLeaveListener.java | tenjavacontest/daboross | gpl-3.0 | 1,301 | 37 | codeparrot/github-code |
bd23ea31d4d49ed329912a95f397d2563f7c9e4a4357a254aa4e027647fe42ad | /*
-------------------------------------------------------------------------------
This file is part of the weather information collector.
Copyright (C) 2018, 2020, 2021 Dirk Stolle
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public Licen... | C++ | src/update/ForecastDataUpdate_0.8.3.cpp | striezel/weather-information-collector | gpl-3.0 | 4,659 | 146 | codeparrot/github-code |
2e3b0fca1b8c607d0083bfd2f7f42c6ad862cbc5702dc264788158ba3d55fd53 | /***************************************************************************
* Project file: NPlugins - NPermissions - PermissionsManager.java *
* Full Class name: fr.ribesg.bukkit.npermissions.permission.PermissionsManager
* *
* ... | Java | NPermissions/src/main/java/fr/ribesg/bukkit/npermissions/permission/PermissionsManager.java | cnaude/NPlugins | gpl-3.0 | 11,463 | 316 | codeparrot/github-code |
5584b5ce479454cb946b0a953dab4e781b1d0528fcd5d49842d82dafd74bf971 | package org.thoughtcrime.securesms.groups;
import android.content.Context;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.WorkerThread;
import org.signal.core.util.logging.Log;
import org.signal.storageservice.protos.groups.GroupExternalCredential;
import org.sign... | Java | app/src/main/java/org/thoughtcrime/securesms/groups/GroupManager.java | WhisperSystems/Signal-Android | gpl-3.0 | 21,582 | 478 | codeparrot/github-code |
2723d31deb8b6314ef47fc59fd8d4882730baea7b1bdcfb7260e37f505685db2 | package me.markeh.factionsframework.command.requirements;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import me.markeh.factionsframework.command.FactionsCommand;
public class ReqIsPlayer extends Requirement {
// -------------------------------------------------- //
// CONSTRUCT
// ------------... | Java | framework/src/main/java/me/markeh/factionsframework/command/requirements/ReqIsPlayer.java | MarkehMe/FactionsFramework | gpl-3.0 | 1,048 | 43 | codeparrot/github-code |
ed2a38e6dfa418605e45df08630e8fde69073a4f33f545928b30d4c946cf44fe | /*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: mods/deathmatch/logic/CConsoleCommands.h
* PURPOSE: Server console command definitions class
* DEVELOPERS: Jax <>
* ... | C | MTA10_Server/mods/deathmatch/logic/CConsoleCommands.h | SkyFire/MTA | gpl-3.0 | 6,502 | 79 | codeparrot/github-code |
3fa4ed91b11120f4f55f8ef6af7ec7a3f50a5ea3c99cba44ed283d9589272040 | <?php
/**
* TrcIMPLAN Índice Básico de Colonias
*
* Copyright (C) 2016 Guillermo Valdes Lozano
*
* 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... | PHP | lib/IBCTorreon/Morelos.php | TRCIMPLAN/beta | gpl-3.0 | 5,138 | 122 | codeparrot/github-code |
31ef3bcd8772ce0aeb226921aed9b3949700cfec468f0b0cf8a95f832022a40a | /*
* HTTPGet.cs | C# .NET 2.0 HTTP GET Class
* Copyright (c) 2008, Corey Goldberg
*
* HTTPGet.cs 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# | server/HTTPGet.cs | C453/OryxKingdom | gpl-3.0 | 3,464 | 118 | codeparrot/github-code |
e7e74ac965d8866f78c97ba422f1ee4c30d53815f7a0b845622acfd569743d57 | -- Copyright (C) 2013 - 2016 CurlyMo
-- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
local M = {}
function M.run(a, b, c)
if (a == nil or b == nil) or c ~= nil th... | Lua | libs/pilight/events/functions/max.lua | pilight/pilight | gpl-3.0 | 768 | 32 | codeparrot/github-code |
ef1177d6358a9083ae6173c37f586bb0ce890f2d7f18b10c0f30629ee8f11f19 | <?php /* Smarty version Smarty-3.1.19, created on 2016-04-01 23:51:38
compiled from "/home/koomaakiey/pprod/admin7423/themes/default/template/controllers/products/suppliers.tpl" */ ?>
<?php /*%%SmartyHeaderCode:5417928356feed6aa2b2d6-46455885%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_va... | PHP | cache/smarty/compile/b4/9c/02/b49c029804c9661e782e1d0a9caefed0c44b8ea6.file.suppliers.tpl.php | tantchontampo/koomaakiti.com | gpl-3.0 | 13,011 | 227 | codeparrot/github-code |
f02de38ac0028439ad5c3cdda0cdc144396989de98d8a670233eb5c65e8abf87 | package bf.cloud;
import android.content.Context;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import bf.cloud.android.utils.BFYResUtil;
import bf.cloud.black_board_ui.R;
import ... | Java | airplay.player/src/main/java/bf/cloud/DefinitionAdapter.java | battleground/air4play | gpl-3.0 | 1,862 | 82 | codeparrot/github-code |
9df9f5e5df84fa1195f9da7ba5548bab6052ecac3898a323f3703267c83a018e | import numpy as np
from astropy import coordinates
from astropy import wcs
import astropy.units as u
from matplotlib.pyplot import figure
class World2ScreenMPL:
"""
Create a World2ScreenMPL for vizualizing a MOC in a matplotlib axis.
Parameters
----------
fig : `~matplotlib.pyplot.figure`
... | Python | mocpy/moc/plot/wcs.py | tboch/mocpy | gpl-3.0 | 3,529 | 97 | codeparrot/github-code |
5786da6238c6903275b91aaaed1511daa91d2719b3972a9a0a92a88d4735e4b7 | /*
This file is part of cpp-ethereum.
cpp-ethereum 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.
cpp-ethereum is distributed in the... | C++ | libwebthree/WebThree.cpp | arkpar/cpp-ethereum | gpl-3.0 | 2,160 | 85 | codeparrot/github-code |
c743e7fc3513aa93382b36b6dcd21cfb768514b3fe124b9b068d389d95a678ec | /****************************************************************************
Copyright (C) 2002-2013 Gilles Debunne. All rights reserved.
This file is part of the QGLViewer library version 2.5.2.
http://www.libqglviewer.com - contact@libqglviewer.com
This file may be used under the terms of the GNU General Pub... | C | examples/contribs/dvonn/board.h | nhatson1987/libQGLViewer-2.5.2 | gpl-3.0 | 6,694 | 216 | codeparrot/github-code |
e0b96be1d2c7ae551863ad09b7219b91264005cff11b90cb1f7f0d4513c05f92 | #gravSim.py
import pygame
import math
frame_count = -1
WIDTH=640
HEIGHT=480
Quit = False
pygame.init()
screen = pygame.display.set_mode((WIDTH, HEIGHT))
pygame.display.set_caption('Gravity Sim')
objects_group = pygame.sprite.Group()
clock = pygame.time.Clock()
class Object(): #where the magic happens. Ideally there... | Python | gravSim.py | Laodicean/pyGravSim | gpl-3.0 | 4,070 | 119 | codeparrot/github-code |
f0d68c3f5c497e05abef7250cce8a6e73647771ec0ea0a1657a7e8ffc91dcb4c | package com.example.pinexample.utilities;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import com.example.pinexample.R;
/**
* A... | Java | src/com/example/pinexample/utilities/Utilities.java | Drakuwa/AndroidPINProtectionExample | gpl-3.0 | 2,133 | 85 | codeparrot/github-code |
a8365a7aa7ef6cbfd3be029b809b28f23950abe637a616d7898e472b180034c7 | /***************************************************************************
* Copyright (C) 2007-2016 by David Bitseff *
* bitsed@gmail.com *
* *
* This pr... | C++ | src/basistriangle.cpp | bitsed/qosmic | gpl-3.0 | 4,246 | 136 | codeparrot/github-code |
bf6e6c0cc7bc830571b92c137a7d28eb112f5efcd2f98fa519f07b8f53051fad | /*
* 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 com.iescomercio.tema4.nif;
import java.util.Scanner;
/**
*
* @author VESPERTINO
*/
public class NIF {
lo... | Java | src/com/iescomercio/tema4/nif/NIF.java | sagasta95/DAW1 | gpl-3.0 | 2,405 | 104 | codeparrot/github-code |
ebe7c520a5cd6e02b709bb77cedc6fe853a0de66fc5cfeaeb13b83eeb6ccc156 | --超维母体
function c10113076.initial_effect(c)
--Fusion, Synchro or Xyz
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(10113076,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
e1:SetCode(EVENT_... | Lua | expansions/script/c10113076.lua | MonokuroInzanaito/ygopro-777DIY | gpl-3.0 | 5,081 | 127 | codeparrot/github-code |
0b5da3bdd3ce5795fa743a707e0a3a1d0ac841d8e65b4535baa6f7ef3a384886 | namespace ProcessingTools.Web.Areas.Data.Controllers
{
using System;
using System.Threading.Tasks;
using System.Web.Mvc;
using ProcessingTools.Constants;
using ProcessingTools.Contracts;
using ProcessingTools.Web.Abstractions.Controllers;
using ProcessingTools.Web.Areas.Data.Models.GeoEpith... | C# | src/ProcessingTools/Web/ProcessingTools.Web/Areas/Data/Controllers/GeoEpithetsController.cs | bozhink/ProcessingTools | gpl-3.0 | 4,199 | 122 | codeparrot/github-code |
7551126c0d8249b6542b5333df1147e7ba4795517cdb7f3ac035b30030c0342f | // Copyright 2015, 2016 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity 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 la... | JavaScript | js/src/redux/providers/certifications/middleware.js | immartian/musicoin | gpl-3.0 | 1,755 | 52 | codeparrot/github-code |
ff77d9c759ad5e2a3a7550d9886ec81f8db1c1b78f7d9c2e502a002cf4a263a8 | /*
This file is part of Smoothie (http://smoothieware.org/). The motion control part is heavily based on Grbl (https://github.com/simen/grbl).
Smoothie 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, e... | C++ | src/modules/tools/spindle/AnalogSpindleControl.cpp | Smoothieware/Smoothieware | gpl-3.0 | 4,398 | 124 | codeparrot/github-code |
d1ddc2330100bb270460bfb97ce20ac423a144ceb4b8af0137b03f8c19169687 | /**************************************************************************
This file is part of JahshakaVR, VR Authoring Toolkit
http://www.jahshaka.com
Copyright (c) 2016 GPLv3 Jahshaka LLC <coders@jahshaka.com>
This is free software: you may copy, redistribute
and/or modify it under the terms of the GPLv3 License
... | C | src/core/project.h | njbrown/VR | gpl-3.0 | 929 | 40 | codeparrot/github-code |
9ed5458fbdf790b93d483f1cc363c7cb674f23c5300e6577a854466814e4f143 | <! -- Fix for Bootstrap css with Google Maps https://github.com/twitter/bootstrap/issues/1552 -->
<style type="text/css">
.map_canvas label {
width: auto;
display: inline;
}
.map_canvas img {
max-width: none;
}
.map_cnt {
position: relative;
border: 1px solid... | HTML | tutorial.html | ForestWatchers/timeline | gpl-3.0 | 15,740 | 451 | codeparrot/github-code |
05fa3140423b463c3780dbfb9e422ef99112105d3935afa2a3b81810cbb97b92 | /**
* This file is part of ankus.
*
* ankus 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.
*
* ankus is distributed in the hop... | Java | trunk_web/ankus-web-services/src/main/java/org/ankus/web/security/ExpiredSessionFilter.java | onycom-ankus/ankus_analyzer_G | gpl-3.0 | 2,567 | 67 | codeparrot/github-code |
d400db8ef26dda98e3330b3e1012ba19c678cead22cf018f6a5d81232038b9d3 | package model;
import java.io.Serializable;
public class Slide implements Serializable{
private long id;
private String text;
private int status;
private String imagePath;
private String audioPath;
private int time;
public long getId() {
return id;
}
public void setId(long id) {
this.id ... | Java | src/PlanManager/app/src/main/java/model/Slide.java | mikolevy/test-plan | gpl-3.0 | 1,020 | 62 | codeparrot/github-code |
9c3eb077e18232cfb7c7f87306b56840dbebfabfd5fcc06dbb2125ea82e9fc7e | /*
* This file is part of mplayer2.
*
* mplayer2 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.
*
* mplayer2 is distributed in... | C | sub/osd_libass.c | Themaister/mplayer2-kms | gpl-3.0 | 12,109 | 367 | codeparrot/github-code |
86420c73aecc64bb07046b54b04923442c003d451058ddd8a2bf83489a66b8aa | #pragma once
/***************************************************************
* This source files comes from the xLights project
* https://www.xlights.org
* https://github.com/smeighan/xLights
* See the github commit history for a record of contributing
* developers.
* Copyright claimed based on commit dates rec... | C | xSchedule/PlayList/PlayListItemPlugin.h | smeighan/xLights | gpl-3.0 | 2,154 | 61 | codeparrot/github-code |
805c9d965877e09481024b7518328cf09d71ddbc8408dafbbcc71432de38e6d4 | /*
* This file is part of EchoPet.
*
* EchoPet 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.
*
* EchoPet is distributed in th... | Java | modules/API/src/main/java/com/dsh105/echopet/compat/api/util/protocol/wrapper/WrapperPacketPlayOutChat.java | lol768/EchoPet | gpl-3.0 | 2,147 | 48 | codeparrot/github-code |
880138145b149e416ec11b78f1ccb53a3b32ab65d2f868d62de3aac9976fe145 | module.exports = function(mysql){
var manschaft = {
info: {},
manschaftID: {
member: {
memberID: {},
},
},
};
// get all manschaften
manschaft.get = function create(req, res) {
var query = {
searchSQL: "", // search
limit: 10,
page: 0,
order: "manschaft.name", // [name, id]
order... | JavaScript | lib/api/routes/manschaft.js | DigitalShooting/DSM | gpl-3.0 | 3,666 | 164 | codeparrot/github-code |
31e667c280470d3c1dee6cc4db104347347811f9e751f08849c2cbec8d0a5f51 | package org.tjuscs.sevenwonders.kernel;
import org.tjuscs.sevenwonders.Manager;
import org.tjuscs.sevenwonders.kernel.RecManager.TurnInfo;
import java.io.Serializable;
import java.util.*;
/**
* The Class Board.
*/
public class Board implements Serializable {
// 0 表示 A面, 1表示B面
int sides = 0;
boolean i... | Java | src/main/java/org/tjuscs/sevenwonders/kernel/Board.java | tjumyk/sevenwonders | gpl-3.0 | 49,409 | 1,600 | codeparrot/github-code |
5b0a61c7aa0901a78143f72c6a81f9ac1d29b9542d5602ee3eb3b7473bb517a4 | //The White Ambit, Rendering-Framework
//Copyright (C) 2009 Moritz Strickhausen
//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... | C | DirectX10Lib/DirectX10TextureLayer.h | TheWhiteAmbit/TheWhiteAmbit | gpl-3.0 | 1,725 | 55 | codeparrot/github-code |
6d19ccdf17a111684c40d504078b5b107a3e82b3832416933f123229adb395f0 | package com.trade.pojo;
/**
* AbstractClient entity provides the base persistence definition of the Client
* entity. @author MyEclipse Persistence Tools
*/
public abstract class AbstractClient implements java.io.Serializable {
// Fields
private Integer CId;
private String name;
private String SName;
private... | Java | WMS_SSH/src/com/trade/pojo/AbstractClient.java | njZhuMin/curriculum_design | gpl-3.0 | 2,473 | 146 | codeparrot/github-code |
eed420678f32e346c6b1657953369cccb4dd090ecaf13d7aa814d83fe5d25e44 | /*
This file is part of Overmix.
Overmix 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.
Overmix is distributed in the hope that it w... | C++ | src/debug.hpp | spillerrec/Overmix | gpl-3.0 | 1,949 | 78 | codeparrot/github-code |
59038fb7e919ce19f33e84fe1e09738638a5339fa3b087a03bbe02b081e71e5e | #pragma once
#include "SongInfo.h"
class CPlaylistFile
{
public:
enum Type //播放列表格式
{
PL_PLAYLIST, //MusicPlayer2播放列表
PL_M3U, //m3u播放列表
PL_M3U8 //m3u8播放列表
};
CPlaylistFile();
~CPlaylistFile();
void LoadFromFile(const wstring& file_path);
void SaveToFile(const wstring& file_path, Type ty... | C | MusicPlayer2/Playlist.h | zhongyang219/MusicPlayer2 | gpl-3.0 | 1,136 | 40 | codeparrot/github-code |
86dce54b23e23cc6ca2d89343d2ea8243a657c72b49504bea401e042c3d86e59 | # -*- coding: utf-8 -*-
from django.db import models
from gestioneide.models import DIAS_SEMANA
import calendar
class Curso(models.Model):
year = models.ForeignKey('gestioneide.Year',on_delete=models.CASCADE)
nombre = models.CharField(max_length=50,default="")
def __unicode__(self):
return "%s - %s... | Python | turismo/models.py | Etxea/gestioneide | gpl-3.0 | 3,329 | 74 | codeparrot/github-code |
60dbe93b80e164839aba1dbd843200b4f35701ca87efa4aa2afcc2b52659c7f1 | #!/bin/sh
#
# check_iso_read.sh
#
# Author: Leo Baschy
# Some small adaptions made to make it work in libcdio's test suite by
# rocky.
#
# takes zero, one, or two optional parameters in any order
#
# ONE optional parameter:
# an integer number for approximate size of .iso file in megabytes,
# default is 1, for 1 megaby... | Shell | test/check_iso_read.sh | cisco-open-source/libcdio | gpl-3.0 | 7,355 | 218 | codeparrot/github-code |
f1b7ff8470daf5e724ca4e2476dec1c7dfde33be10ba94f741e629d7bf3df81b | import org.neodatis.odb.ODB;
import org.neodatis.odb.ODBFactory;
import org.neodatis.odb.Objects;
//Clase Jugadores
class Jugadores {
private String nombre;
private String deporte;
private String ciudad;
private int edad;
public Jugadores() {}
public Jugadores(String nombre, String deporte, String ciudad, int ... | Java | AD/codigo_ejemplo_neodatis/EjemploNeodatis.java | ferquies/2dam | gpl-3.0 | 1,910 | 60 | codeparrot/github-code |
1652494b1faab798b58cfc0e886f6d8506d56badd487afbce39ef2806bb3ee84 | package worldline.ssm.rd.ux.wltwitter.ViewHolders;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import worldline.ssm.rd.ux.wltwitter.R;
/**
* Created by plesur on 12/17/15.
*/
public class Twe... | Java | app/src/main/java/worldline/ssm/rd/ux/wltwitter/ViewHolders/TweetViewHolder.java | pLesur/TwitterRipOff | gpl-3.0 | 1,302 | 51 | codeparrot/github-code |
2f257102b09efb640fa54af37fe4c609107f960f1b476ae8218bfad9b64f169a | <?php
/**
* Entrada [ http://www.entrada-project.org ]
*
* Entrada 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.
*
* Entrada ... | PHP | www-root/core/modules/admin/settings/manage/departments/edit.inc.php | mattsimpson/entrada-1x | gpl-3.0 | 18,092 | 439 | codeparrot/github-code |
9f4c062578a252a1c99c2a282639cd6f29763a6de862faf5414cdf8ca95080fe | #!/usr/bin/env python3
## get_protein_www.py --
## get a protein sequence from the Uniprot or NCBI/Refseq web sites using the accession
##
import sys
import re
import textwrap
import time
import requests
ncbi_url = "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?"
uniprot_url = "https://www.uniprot.org... | Python | server/wsgi/bmrbapi/submodules/fasta36/scripts/get_protein.py | uwbmrb/BMRB-API | gpl-3.0 | 1,680 | 80 | codeparrot/github-code |
ea19c80f697ed91090ed701caee167b4996cc7eb3ee01b50dabe9102c27bc6cd | <?php
include("model/article.php");
//include("model/image.php");
include("model/team.php");
include("model/user.php");
include("InviteCode.class.php");
class Admin extends Controller{
private $opt;
function __construct(){
if(!isset($_SESSION['userData'])){
//可以输出错误页面或者登录页面
header('HTTP/1.1 404 Not Found,(#hu... | PHP | controller/Admin.class.php | Hocheese/stiei-game-develop-website | gpl-3.0 | 6,861 | 296 | codeparrot/github-code |
c8b1905b7f63b1050c8c72bffeb9ab62cf7bd22e83843376499662bb2a0b91c1 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Diagnostics;
using System.Threading;
using System.Speech.Recognition;
using Syst... | C# | Jinx2/Jinx2/Form1.cs | daffodilNinja/Jinx | gpl-3.0 | 8,689 | 269 | codeparrot/github-code |
a44a68aa92fa0e9e4b9ca17fc69c086b21b4668c84fda5003dd8b1d77ab2e479 | /***************************************************************************
* This package is part of Relations application.
* Copyright (C) 2004-2013, Benno Luthiger
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public
* License as publis... | Java | org.elbe.relations/src/org/elbe/relations/models/PeripheralAssociationsModel.java | aktion-hip/relations | gpl-3.0 | 3,760 | 118 | codeparrot/github-code |
aed73ed630e8a6440e5508ee6e23a4ab222643393520d058f2ecff25c9d3091c | /*
* member.service.ts
*/
import { Http, Response, Headers } from '@angular/http';
import { Member } from './member.model';
import { Injectable, EventEmitter } from '@angular/core';
import 'rxjs/Rx';
// import { Observable } from 'rxjs';
import { Observable } from 'rxjs/Observable';
@Injectable()
export class Memb... | TypeScript | assets/app/members/member.service.ts | kcoyner/mvp-gfd | gpl-3.0 | 2,276 | 67 | codeparrot/github-code |
7747e520bce778a8a1ca640be1bb8c9dd878d6159227dfa398798e0d7bc721f0 | # 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.
#
# This program is distributed in the hope that it will be useful,
# b... | Python | src/wekaexamples/flow/for_loop.py | fracpete/python-weka-wrapper-examples | gpl-3.0 | 1,959 | 73 | codeparrot/github-code |
87d53064d80283d4accc08b309896c44bb2553da2be8bb18f4b2dfded5c72061 | #!/bin/bash
NARGS="$#"
echo "INFO: NARGS= $NARGS"
if [ "$NARGS" -lt 2 ]; then
echo "ERROR: Invalid number of arguments...see script usage!"
echo ""
echo "**************************"
echo "*** USAGE ***"
echo "**************************"
echo "$0 [ARGS]"
echo ""
echo "==========================... | Shell | caesar/scripts/MakeFileList.sh | simoneriggi/ska | gpl-3.0 | 3,323 | 131 | codeparrot/github-code |
b5f0bc97a6cd87599163136aec0902ed8d32254513298d9911934e6f1cf119a1 | /*
* MicroJIAC - A Lightweight Agent Framework
* This file is part of MicroJIAC Interaction.
*
* Copyright (c) 2007-2012 DAI-Labor, Technische Universität Berlin
*
* This library includes software developed at DAI-Labor, Technische
* Universität Berlin (http://www.dai-labor.de)
*
* This library is free softwar... | Java | extensions/microjiac-interaction/src/newimpl/java/de/jiac/micro/ips/AbstractProtocolPart.java | mcpat/microjiac-public | gpl-3.0 | 5,609 | 146 | codeparrot/github-code |
c5e7fba04a63a2933e3cb40c15caebffb8d4f6df80c6621ede1620062dfb9a50 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package sge.modelo;
/**
*
* @author osdmdz
*/
public class Institucion{
int idinstitucion;
String razonsocial;
String ruc;
String direccion;
String telefono;
String celular;
String email;
String... | Java | sgeupeu/src/java/sge/modelo/Institucion.java | davidmp/sgeupeu | gpl-3.0 | 2,009 | 108 | codeparrot/github-code |
8a9e2f467f87c5255a27ee1b56260bfd4cb71d82a373c80a5ba0ce1ff134d177 |
#include <QueueArray.h>
enum SIL_EventType {
NONE,
KEY_DOWN,
KEY_UP
};
class SIL_Event {
public:
SIL_Event() {
this->type = NONE;
this->pin = 0;
}
SIL_Event(SIL_EventType type, int pin) {
this->type = type;
this->pin = pin;
}
SIL_EventType type;
int pin;
};
class SIL_EventQue... | C | SimpleInputLayer.h | calidae/futbolino | gpl-3.0 | 2,428 | 147 | codeparrot/github-code |
939d24d92db1fd3e1ece585fb46c64b9bda5e30e7f426912386a607a45c6133f | #pragma once
#define BOOST_SIGNALS_NO_DEPRECATION_WARNING
#include <alcommon/almodule.h>
#include <alproxies/alconnectionmanagerproxy.h>
#include <alproxies/almemoryproxy.h>
#include <boost/thread/thread.hpp>
#include <boost/thread/mutex.hpp>
#include "globals.h"
#include "wifimanager.h"
namespace AL
{
// This is a... | C | wifi.h | filipkofron/NAOWifiManager | gpl-3.0 | 1,806 | 62 | codeparrot/github-code |
ade40e3678f54cb2ba5efab881b0ed5306d51c90a4acf5219c7831311ac6599f | /*
* Copyright (C) 2016 Netflix, Inc.
*
* This file is part of IMF Conversion Utility.
*
* IMF Conversion Utility 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 ... | Java | itunes-conversion/src/test/java/com/netflix/imfutility/itunes/asset/SourceAssetProcessorTest.java | DSRCorporation/imf-conversion | gpl-3.0 | 3,797 | 100 | codeparrot/github-code |
0faa5477b61283cfb208716d4b6989e6c1a5ac1019a175d02d657368a085d841 | """
buildtest cli: include functions to build, get test configurations, and
interact with a global configuration for buildtest.
"""
import argparse
import os
from termcolor import colored
from buildtest import BUILDTEST_VERSION, BUILDTEST_COPYRIGHT
from buildtest.defaults import BUILD_REPORT
from buildtest.schemas.def... | Python | buildtest/cli/__init__.py | shahzebsiddiqui/BuildTest | gpl-3.0 | 15,098 | 482 | codeparrot/github-code |
0591ab6c0b3c301fa5ccc22f2a9e1582f87985969b917d2188ad5bed19244281 | <?php
namespace STS\Services\Logic;
use STS\User;
use Validator;
use Carbon\Carbon;
use STS\Entities\Rating;
use STS\Entities\Passenger;
use STS\Contracts\Logic\IRateLogic;
use Illuminate\Database\Eloquent\Collection;
use STS\Contracts\Repository\Trip as TripRepo;
use STS\Contracts\Repository\IRatingRepository;
use S... | PHP | app/Services/Logic/RatingManager.php | STS-Rosario/carpoolear_backend | gpl-3.0 | 6,044 | 169 | codeparrot/github-code |
9717defca41fb3b43f7946951f69523b2f28ac248fc8bb691763b31b1bf5968a | /*
* 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/windows/WndChallenges.java | lighthouse64/Random-Dungeon | gpl-3.0 | 2,457 | 92 | codeparrot/github-code |
322efb6219a75a10a8cb72b5517a294b9088796ef3f3613478c0f18514383cc1 | import React from 'react';
import Button from '@material-ui/core/Button';
import {
Pause as StopReadIcon,
PlayCircleFilled as ReadIcon,
RadioButtonChecked as RecordIcon,
Stop as StopIcon,
} from '@material-ui/icons';
import { withStyles } from '@material-ui/core/styles';
import { ActionButtonContainer } from '.... | JavaScript | src/screen/Multimeter/components/ActionButtons.js | wavicles/fossasia-pslab-apps | gpl-3.0 | 1,420 | 62 | codeparrot/github-code |
27ebaba90a2ea60858d865d7fe0e2de6e765895d95cc9ff36ce6f8adc22ad951 | /*
===========================================================================
Doom 3 GPL Source Code
Copyright (C) 1999-2011 id Software LLC, a ZeniMax Media company.
This file is part of the Doom 3 GPL Source Code ("Doom 3 Source Code").
Doom 3 Source Code is free software: you can redistribute it and/or modify... | C++ | neo/idlib/MapFile.cpp | anonreclaimer/morpheus | gpl-3.0 | 24,018 | 965 | codeparrot/github-code |
636d586347b59aaeb74d9599ad8ccae26c60700d50cc88636627a3393e98d5ca | <?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 | mod/feedback/mod_form.php | danielbonetto/twig_MVC | gpl-3.0 | 11,767 | 271 | codeparrot/github-code |
2297ecbb56a94a6e5056c51a81e562ee1bfaa97d549633642ae4751f4c87a735 | <?php
/**
* Translation Manager for Android Apps
*
* PHP version 7
*
* @category PHP
* @package TranslationManagerForAndroidApps
* @author Andrej Sinicyn <rarogit@gmail.com>
* @copyright 2017 Andrej Sinicyn
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License version 3 or lat... | PHP | module/Translations/src/Model/SuggestionString.php | rarog/TranslationManagerForAndroidApps | gpl-3.0 | 3,422 | 142 | codeparrot/github-code |
8a46aa3d99b80bd3f7e5e5b1671409e38cb96a17b5e4efe3bd343512b14e249f | package org.sapia.corus.client.cli.command.exec;
import org.junit.Before;
import org.junit.Test;
import org.sapia.console.CmdLine;
import org.sapia.console.InputException;
public class RestartByProcessDescriptorsCommandTest {
private RestartByProcessDescriptorsCommand restart;
@Before
public void setUp() {
... | Java | modules/client/src/test/java/org/sapia/corus/client/cli/command/exec/RestartByProcessDescriptorsCommandTest.java | sapia-oss/corus | gpl-3.0 | 2,129 | 92 | codeparrot/github-code |
5716e3fc8b13d290b30607030837b21db71985f5fe4f580ff9d5ee4a09c31b53 | using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using ModernHttpClient;
using Newtonsoft.Json;
using SampleProject.Models;
namespace SampleProject.Base
{
/// <summary>
/// Base Http Service to help send requests to an api
/// Can deri... | C# | SampleProject/SampleProject/SampleProject/Base/BaseHttpService.cs | chadsmith12/XamarinMVVMBase | gpl-3.0 | 3,587 | 82 | codeparrot/github-code |
921322fcd90c11985fd3b8f9762f1cfcbf4698ef72f57c1c7bd786a7b50d47fa | package me.lyinlong.taskline.utils;
import me.lyinlong.taskline.config.Constants;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
/**
* 关于时间的工具类
* Created by eightpigs on 16/10/26.
*/
public class TimeUtils {
/**
* 获取当前系统时间
*
... | Java | app/src/main/java/me/lyinlong/taskline/utils/TimeUtils.java | eightpigs/TaskLine | gpl-3.0 | 2,412 | 101 | codeparrot/github-code |
de42d7aeb905c05a747ef6fa7b97bbf2a0a08fc1eca8cb63118561f038f1fbf2 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Tlen.pl: Lista składowych</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<... | HTML | sdk/documentation/classTlenField-members.html | kklimek/Tlen7Plugins | gpl-3.0 | 23,888 | 122 | codeparrot/github-code |
b2bd05a12a634a54b67026f99a6b05f52f90cd51786ae43663133f4af2ea6b18 |
// Application
#include "Angles.h"
#include "CAxis.h"
#include "C3DScene.h"
#include "CPhysicalComponent.h"
#include "CAtmosphere.h"
//-------------------------------------------------------------------------------------------------
/*!
\class CPhysicalComponent
\brief The base class for all 3D entities that... | C++ | Quick3D/Source/Base/CPhysicalComponent.cpp | Jango73/Quick3D | gpl-3.0 | 23,389 | 657 | codeparrot/github-code |
9dbcf778ae8c40c6e48c79e553a5157de262e787c989125aff5fddc70761983c |
/*
* Improved Fast Gauss Transform implementation based on FIGTREE
* implementation by Vlad Morariu, the IFGT source code by Vikas Raykar
* and Changjiang Yang, as well as fgt library by Pete Gadomski
*/
#ifndef IFGT_H_
#define IFGT_H_
#include <exception>
#include <functional>
#include <optional>
#include <io... | C | pc_registration/src/IFGT.h | hdclark/DICOMautomaton | gpl-3.0 | 5,045 | 132 | codeparrot/github-code |
aa7922be9553b332f582ae48fcf10d09b8da754f98cffa4e15efd0e70d40160c | import numpy as np
import sympy as sp
from pystencils import Assignment, fields, TypedSymbol, Target
from pystencils.astnodes import Block, Conditional
from pystencils.simp import sympy_cse
from lbmpy import LBMConfig, LBStencil, Method, Stencil
from lbmpy.creationfunctions import create_lb_method
from lbmpy.boundari... | Python | apps/showcases/PhaseFieldAllenCahn/GPU/multiphase_codegen.py | lssfau/walberla | gpl-3.0 | 9,930 | 210 | codeparrot/github-code |
a6261811039f12d78bdb3edf537e07002e9b85cd6433d4d967911faa380704b3 | /*
Developed with the contribution of the European Commission - Directorate General for Maritime Affairs and Fisheries
© European Union, 2015-2016.
This file is part of the Integrated Fisheries Data Management (IFDM) Suite. The IFDM Suite is free software: you can
redistribute it and/or modify it under the terms of th... | JavaScript | app/directive/mobileTerminal/mobileTerminalDetails/mobileTerminalDetails.js | UnionVMS/UVMS-Frontend | gpl-3.0 | 23,742 | 527 | codeparrot/github-code |
2630afe4b4676262d0b1c882acbfd1f0ea3ee9e412f6671f3384e2d05cea383d |
/* @license
Copyright 2014-2016 Université du Québec à Montréal (UQAM)
This file is part of Portail Étudiant.
Portail Étudiant 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 versio... | JavaScript | client/app/calendrier/calendrier.service.spec.js | UQAM/portailEtudiant | gpl-3.0 | 1,936 | 57 | codeparrot/github-code |
6e3b09043f248e1cc8dce56919d7bc25806ba3b50616dc4cf209ade5a7055094 | package cz.muni.fi.pa165.library.enums;
import java.util.Arrays;
import java.util.List;
/**
* Status of the book condition.
*
* @author Bedrich Said
*/
public enum BookState {
NEW("New",0),
LIGHT_DAMAGE("Lightly damaged",1),
MEDIUM_DAMAGE("Moderately damaged",2),
HEAVY_DAMAGE("Heavily damaged",3);... | Java | library-system-api/src/main/java/cz/muni/fi/pa165/library/enums/BookState.java | DavidLuptak/pa165-library-system | gpl-3.0 | 921 | 40 | codeparrot/github-code |
2a78de73023304a15c67c63d21022841fc1ec79a2b9630f2730ed504593084bf | #include <algorithm>
#include <unordered_map>
#include "exec.hpp"
class OpenMPExecutor : public Executor {
// data storage
using FileCache = std::unordered_map<std::string, TextFile*>;
FileCache files;
public:
virtual std::vector<TextFile*> allFiles() {
std::vector<TextFile*> f;
std::transform(files.begin(),... | C++ | test/wordcount_benchmark/exec_openmp.cpp | normanrz/pgasus | gpl-3.0 | 1,209 | 51 | codeparrot/github-code |
cfc03c7c3330473f3280a00f3c12eae031e7f1d2d0014779488995d217bb3f9f | <?php
/**
* @file
* Contains \Drupal\picture\Plugin\field\formatter\PictureFormatter.
*/
namespace Drupal\picture\Plugin\Field\FieldFormatter;
use Drupal\Core\Field\FieldItemListInterface;
use Drupal\image\Plugin\Field\FieldFormatter\ImageFormatterBase;
/**
* Plugin for picture formatter.
*
* @FieldFormatter(... | PHP | core/modules/picture/lib/Drupal/picture/Plugin/Field/FieldFormatter/PictureFormatter.php | Ignigena/bethel-dashboard | gpl-3.0 | 5,779 | 185 | codeparrot/github-code |
946b4afa3cd5dac3ef09e4a7b06ff2c9204a5458a640f505a12a08785b00b2af | package clusterPicking;
import java.util.*;
/**
* class to represent a tree node
* Copyright (C) 2013 Samantha Lycett
*
* This file is part of ClusterPicker.
*
* ClusterPicker is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as publ... | Java | src/clusterPicking/Node.java | ajkal/cluster-picker-and-cluster-matcher | gpl-3.0 | 8,638 | 381 | codeparrot/github-code |
ba0aa997a202c2a0a7c57114a6a6826fb24a3b40f990c444b85106261eb33fd2 | /* Cute3D, a simple opengl based framework for writing interactive realtime applications */
/* Copyright (C) 2013-2017 Andreas Raster */
/* This file is part of Cute3D. */
/* Cute3D is free software: you can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/... | C | math_draw.c | rakete/cute3d | gpl-3.0 | 17,178 | 381 | codeparrot/github-code |
2a37b14ae6ea1ea8a97868212afcd77e6d72e757348d4977064175d2446c9f8b | # Copyright (c) Mathias Kaerlev 2012.
# This file is part of Anaconda.
# Anaconda 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.
# ... | Python | mmfparser/data/chunkloaders/extdata.py | joaormatos/anaconda | gpl-3.0 | 1,201 | 35 | codeparrot/github-code |
7db00cfb78e1ee087dd583ea834d5121879ba3d8b9fa2c8f329ba6e98f45a036 | #!/usr/bin/env python3
# -*- coding: utf8 -*-
"""
This script changes given rst document in place, converting old test action
directives ``test_step`` and ``test_result`` into ``test_action``.
It's a best effort hack, not an official part of pylatest (-: I realized that
such tool could be quite straighforward given a... | Python | contrib/convertdirectives.py | marbu/pylatest | gpl-3.0 | 2,851 | 78 | codeparrot/github-code |
abd1e486a679103b32332b55ae3e70cb80f72c6e336d3b34a696078dcd1a53f5 | #ifndef __gNahLr7d449KlyI8HQN75D_h__
#define __gNahLr7d449KlyI8HQN75D_h__
/* Include files */
#include "simstruc.h"
#include "rtwtypes.h"
#include "multiword_types.h"
/* Type Definitions */
#ifndef struct_tag_s3poEWU7DjEgOeKMBaXTOFE
#define struct_tag_s3poEWU7DjEgOeKMBaXTOFE
struct tag_s3poEWU7DjEgOeKMBaXTOFE
{
re... | C | Simulation/Simulink/slprj/_cgxe/oneFingerSim/src/m_gNahLr7d449KlyI8HQN75D.h | Rigaro/DirectedStudies | gpl-3.0 | 2,535 | 122 | codeparrot/github-code |
37e93228eebd79d6855965acba44604eb0f8c850488827b3a6eec4d63fa2916a | from article_metrics import models, utils
import json
from django.conf import settings
import boto3
import logging
LOG = logging.getLogger(__name__)
def sns_topic_arn(**overrides):
"returns an arn path to an AWS event bus. this is used to connect and send/receive events"
vals = {}
vals.update(settings.EV... | Python | src/article_metrics/events.py | elifesciences/elife-metrics | gpl-3.0 | 1,616 | 50 | codeparrot/github-code |
e5e771c23e693e4245c996d6333a6ef1a07e5be48276a760320cdc2ac5503665 | /*
* Copyright (C) Mojang AB
* All rights reserved.
*/
package kk.freecraft.realms;
import com.google.common.collect.Lists;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import kk.freecraft.network.EnumConnectionSta... | Java | src/main/java/kk/freecraft/realms/RealmsServerStatusPinger.java | KubaKaszycki/FreeCraft | gpl-3.0 | 3,439 | 107 | codeparrot/github-code |
f8a7ca3aeefe2967f13814deb8be1631f4018abb04daf12f75de0a5026c8c2a2 | package com.google.a.c;
import java.util.Map.Entry;
abstract class az<K, V> extends dh<K, V>
{
private final int a;
az(int paramInt)
{
this.a = paramInt;
}
abstract dh<K, Integer> a();
abstract V a(int paramInt);
final K b(int paramInt)
{
return a().g().a().get(paramInt);
}
final du<K... | Java | apk/classes-ekstartk/com/google/a/c/az.java | isnuryusuf/ingress-indonesia-dev | gpl-3.0 | 867 | 53 | codeparrot/github-code |
700bcc01ac6a492f09f9e390761b02b5be924231273a38ac7eeb09bf76aa86a0 | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import logging
import six
import sys
from functools import wraps
from twisted.internet import defer
from twisted.trial import unittest
log = lo... | Python | backend/squirrel/common/unittest.py | Stibbons/Squirrel | gpl-3.0 | 4,675 | 131 | codeparrot/github-code |
68f15883961b11d1c92371557c6f241c220a0a3cfb65a91bbb69c13867b31c7e | /*F******************************************************************************
*
* openSMILE - open Speech and Music Interpretation by Large-space Extraction
* the open-source Munich Audio Feature Extraction Toolkit
* Copyright (C) 2008-2009 Florian Eyben, Martin Woellmer, Bjoern Schuller
*
*
* Institu... | C++ | src/pitchACF.cpp | geni-lab/ros_open_ear | gpl-3.0 | 10,718 | 386 | codeparrot/github-code |
1f2782102899e99ba67a7e09e629c80f66bb5503f437b7b9b42e21ac49118bd4 | /*
* serial-trap.c
*
* Written by
* Andreas Boose <viceteam@t-online.de>
*
* This file is part of VICE, the Versatile Commodore Emulator.
* See README for copyright notice.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as pub... | C | C64.emu/src/vice/serial/serial-trap.c | thededman/emu-ex-plus-alpha | gpl-3.0 | 7,117 | 259 | codeparrot/github-code |
e0af9f0bb3d37f83d41fd3184c856b20eeb01b1ce2bfb8e80b1a85bd4bd26baa | package de.tobifleig.lxc.packaging;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.util.ArrayList;
import java.util.Arrays;
import static de.tobifleig.lxc.packaging.PackagingTestCommon.*;
publ... | Java | modules/packaging/src/test/java/de/tobifleig/lxc/packaging/DesktopReleaseTest.java | tfg13/LanXchange | gpl-3.0 | 2,588 | 81 | codeparrot/github-code |
519d8d7f570387f8c91d35c6fd2f81e2e9820018e79f145b11dcd57430e5cdf9 | #ifndef HIENA_DCEL_MAPSVC_H
#define HIENA_DCEL_MAPSVC_H
#include "dcel_fh.h"
#include "mapcel.h"
#include "dcel.h"
#include "scanner_hdl.h"
/*
mapops:
- seek( len )
- new( ruleid, pos, len ) -> mc
- add( mc, mc )
- add_dirent( mc, mc )
mc = mapcel
*/
int dcel_mapsvc_idcmp( void *, v... | C | src/dcel/dcel_mapsvc.h | element0/hiena | gpl-3.0 | 968 | 51 | codeparrot/github-code |
f1e91e14f7204e4edf3c1d7641b131389a779dbd81a7fe0af559a3f548d0e74a | package com.sysu.cloudgaming.node.network;
public class NodeBean {
private String Hostname=null;
private boolean runningFlag=false;
private String runningApplication=null;
private String runningApplicationVersion=null;
private String runningApplicationPath=null;
public String getHostname() {
return Hostname;
... | Java | Cloud-Deploy/sysu.cloudgaming/src/main/java/com/sysu/cloudgaming/node/network/NodeBean.java | elliott-wen/Remote-Gaming | gpl-3.0 | 1,171 | 40 | codeparrot/github-code |
4a4f24969273b9a3f52e5000f3e637236215c8017bfaf21369a2d3804c75300d | #ifndef FRIEND_H
#define FRIEND_H
#include "messages.h"
#include <tox/tox.h>
typedef enum {
ADDF_NONE,
ADDF_SENT,
ADDF_BADNAME,
ADDF_NONAME,
ADDF_TOOLONG, // if message length is too long.
ADDF_NOMESSAGE, // if no message (message length must be >= 1 byte).
ADDF_OWNKEY, // i... | C | src/friend.h | robinlinden/uToxx | gpl-3.0 | 4,667 | 171 | codeparrot/github-code |
7b107e231089971679eaefc290f4679c94d8fbf9b76c88b7aa132431aed5768e | /**
* Copyright (c) 2011 blakawk
*
* This file is part of Aio4c <http://aio4c.so>.
*
* Aio4c <http://aio4c.so> 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 3 of the License.
*
* ... | C | src/jni/client.c | blakawk/Aio4c | gpl-3.0 | 7,024 | 193 | codeparrot/github-code |
c23a33a0be43f324c76f99b1897d52bfad6d1635c8d6dcc30c8463c6dce903b2 | using System;
using System.Collections.ObjectModel;
using System.DirectoryServices.AccountManagement;
using System.IO;
using System.Text;
namespace CreateUser.BLL
{
public class AccountList : ObservableCollection<Account>
{
public int PasswordLength { get; set; }
public string NetBiosName { ge... | C# | References/CreateUser/CreateUser.BLL/AccountList.cs | ozan123lel/Userverwaltung | gpl-3.0 | 7,816 | 236 | codeparrot/github-code |
dcf2ec5e6c7103d9a3c0dbf4c4158962649b385ea09317a9bf5d9ace8e448692 | #!/usr/bin/env perl
use strict;
use warnings;
use v5.12;
## Perl5 version >= 5.12
###################################################################################################################################################################################################
#################################... | Perl | useQTLtools/v2/3_QTLtools_quan.pl | CTLife/SomeRecords | gpl-3.0 | 6,561 | 149 | codeparrot/github-code |
9640b0fa87a923194c5af0a7c033bf90f7d158c487571cf73b8d4764f514b57c | using SharpDX.Direct3D11;
using SharpDX.DXGI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CargoEngine.Texture
{
public enum Dimension
{
Unknown=-1,
None = 0,
Texture1D,
Texture2D,
Texture3... | C# | CargoEngine/Texture/Texture.cs | Auskennfuchs/Cargo | gpl-3.0 | 1,257 | 64 | codeparrot/github-code |
6aa5e5eea9187e99ca91e7cece0a83f7d0bb406f0b4e924803b6810f3ec4d233 | # encoding: utf-8
class Sys::Admin::UsersController < Cms::Controller::Admin::Base
include Sys::Controller::Scaffold::Base
def pre_dispatch
return error_auth unless Core.user.has_auth?(:manager)
return redirect_to(request.env['PATH_INFO']) if params[:reset]
end
def index
@item = Sys::User.new ... | Ruby | app/controllers/sys/admin/users_controller.rb | pingwei/CMS | gpl-3.0 | 1,144 | 53 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.