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 |
|---|---|---|---|---|---|---|---|---|
5986ea26aaa80941bc6b6da2850ef866cc7ccd01b9b6dbbd4f20368127bde6eb | package org.energy_home.dal.functions.data;
import java.util.Map;
import org.osgi.service.dal.FunctionData;
public class DoorLockData extends FunctionData {
public final static String STATUS_OPEN = "OPEN";
public final static String STATUS_CLOSED = "CLOSED";
private String status;
public DoorLockData(long tim... | Java | src/main/java/org/energy_home/dal/functions/data/DoorLockData.java | ismb/jemma.osgi.dal.functions.eh | lgpl-3.0 | 611 | 32 | codeparrot/github-code |
f0c87045a5beea941400e7657a5566a2e0180b87fcaea8a35d70219449436839 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "fasta.h"
#include "util.h"
fastap fa_alloc(int maxlen) {
fastap fa;
fa = (fastap) malloc(sizeof(struct fasta));
fa->id = (char *) malloc(maxlen+1);
fa->data = (char *) malloc(maxlen+1);
fa->maxlen = maxlen;
return fa;
}
int fa_next(fasta... | C | tools_legacy/src/util/fasta.c | gdbzork/bode_cpp | lgpl-3.0 | 1,384 | 60 | codeparrot/github-code |
165185b08bb4d2ebdd39c8528bf2b1975d98a67500f29d0893bc3f16c7cbc77a | /*
* Mentawai Web Framework http://mentawai.lohis.com.br/
* Copyright (C) 2005 Sergio Oliveira Jr. (sergio.oliveira.jr@gmail.com)
*
* This 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 Founda... | Java | src/main/java/org/mentawai/filter/GlobalFilterFreeMarkerFilter.java | tempbottle/mentawai | lgpl-3.0 | 1,882 | 63 | codeparrot/github-code |
2ac7e66f6e6e4e5da7cc7f25f44276c7b4d133336f5cefd2b9ade0406f4fab92 | /*
*
*/
// Local
#include <vcgNodes/vcgMeshStats/vcgMeshStatsNode.h>
#include <vcgNodes/vcgNodeTypeIds.h>
// Utils
#include <utilities/debugUtils.h>
// Function Sets
#include <maya/MFnMeshData.h>
#include <maya/MFnTypedAttribute.h>
#include <maya/MFnEnumAttribute.h>
#include <maya/MFnNumericAttribute.h>
#include <... | C++ | src/vcgNodes/vcgMeshStats/vcgMeshStatsNode.cpp | david-cattermole/vcglib-maya | lgpl-3.0 | 8,153 | 282 | codeparrot/github-code |
f94a0fb02c46d6461f71fe84f59ca5825debfb2afd7b63837c0b35ed6f14d39e | {% extends base_layout %}
{% block title %}
{% trans %}Add Aid{% endtrans %} - {{ app_name }}
{% endblock %}
{% block header_title %}
{% trans %}Add Aid{% endtrans %}
{% endblock %}
{% block mediaCSS %}
<link rel="stylesheet" href="/{{ theme }}/css/jquery.dataTables.css">
{% endblock %}
{% block content %}
{%... | HTML | bp_content/themes/sa_default/templates/view_aids.html | joshainglis/sa-tools | lgpl-3.0 | 4,057 | 119 | codeparrot/github-code |
2a6722f16310e9566875bed735d907c64cb021b2cce6c7aff383c9cda042222c | package org.osmdroid.bonuspack.utils;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.http.StatusLine;
import org.apache.http.client.entity.UrlEncodedFormEntity... | Java | src/main/java/org/osmdroid/bonuspack/utils/HttpConnection.java | pese-git/osmbonuspack | lgpl-3.0 | 4,625 | 160 | codeparrot/github-code |
62651359c29509a9d70f66732d2b8f8b62258fb8eac419410fb53ccbccc69a97 | /*
* Copyright (c) 2014-2015 Daniel Hrabovcak
*
* This file is part of Natural IDE.
*
* This program 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, or (at your o... | C++ | src/API/Version.cpp | TheSpiritXIII/natural-ide | lgpl-3.0 | 1,644 | 75 | codeparrot/github-code |
cc07263b94bca7ce716765801ba0707abacc88dcd565cf8e5a14ac151a63b93c | /*
* Copyright (C) 2015 the authors
*
* This file is part of usb_warrior.
*
* usb_warrior 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++ | src/loader.cpp | draklaw/usb_warrior | lgpl-3.0 | 2,706 | 118 | codeparrot/github-code |
0a47293a0eb91e91b2e23ce96fb49ca331c3f23d41af8d45fc0840e2a5abc8d1 | """
Copyright (C) 2013 Matthew Woodruff
This script 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, or
(at your option) any later version.
This script is distributed in th... | Python | statistics/statistics.py | matthewjwoodruff/moeasensitivity | lgpl-3.0 | 6,225 | 172 | codeparrot/github-code |
bde9428edbae23096454e41c33aff14800f8c0bb28d6575a336231200388fac1 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package optas.gui.wizard;
/**
*
* @author chris
*/
public class ComponentWrapper {
public String componentName;
public String componentContext;
public boolean contextComponent;
public ComponentWrapp... | Java | JAMSOptas/src/optas/gui/wizard/ComponentWrapper.java | kralisch/jams | lgpl-3.0 | 738 | 31 | codeparrot/github-code |
a26e5825d57d02ddcc75b2848b24094c015ace0d5098ef97c459c14c27d44574 | /**
* Copyright (C) 2013-2014 Kametic <epo.jemba@kametic.com>
*
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE, Version 3, 29 June 2007;
* or any later version
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.gnu.org/lice... | Java | core/src/test/java/io/nuun/kernel/core/internal/KernelMulticoreTest.java | adrienlauer/kernel | lgpl-3.0 | 3,859 | 106 | codeparrot/github-code |
587fbfece782d76edebacf4c0566bd574eeea504bf5587177b28d3531cd93c63 | /*
* This file is part of RskJ
* Copyright (C) 2019 RSK Labs Ltd.
* (derived from ethereumJ library, Copyright (c) 2016 <ether.camp>)
*
* This program 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 Foundati... | Java | rskj-core/src/main/java/co/rsk/pcc/blockheader/GetCoinbaseAddress.java | rsksmart/rskj | lgpl-3.0 | 1,780 | 53 | codeparrot/github-code |
7a19d91a174977ad3a96de3add93d55c4792c79de9d24763f6e22ffca60c8ddd | /*
* #%L
* Alfresco Repository
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided ... | Java | src/test/java/org/alfresco/util/schemacomp/model/SchemaTest.java | Alfresco/alfresco-repository | lgpl-3.0 | 4,062 | 121 | codeparrot/github-code |
9142257357c4356bf23ad7a6f9f616f5d09ef4e9772ab16713b064bb09819efc | /*
counters.c - code pertaining to encoders and other counting methods
Part of Grbl
Copyright (c) 2014 Adam Shelly
Grbl 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... | C | counters.c | ashelly/grbl | lgpl-3.0 | 3,323 | 125 | codeparrot/github-code |
bcfdd27f7d8e90b79ac62332dcf8c4bd7d58350d6852350d17720a064f19d2e1 | /********************************************************************************
**
** Copyright (C) 2016-2021 Pavel Pavlov.
**
**
** This file is part of SprintTimer.
**
** SprintTimer is free software: you can redistribute it and/or modify
** it under the terms of the GNU Lesser General Public License as published b... | C++ | src/core/src/use_cases/SprintMapper.cpp | ravenvz/SprintTimer | lgpl-3.0 | 2,408 | 70 | codeparrot/github-code |
3be42e08ad617f956c8a7c6fddd7543449fd8d8adae21c5b622c21b301ce15ca | /*
Copyright 2015 Infinitycoding all rights reserved
This file is part of the mercury c-library.
The mercury c-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 versio... | C | sys/linux/I386/signal.c | infinitycoding/mercury | lgpl-3.0 | 1,257 | 42 | codeparrot/github-code |
bf5915e99b80fe6af1037deccd1e50d027d7682006c217872d41a64d3656e6c4 | /*
* Copyright 2017 Crown Copyright
*
* This file is part of Stroom-Stats.
*
* Stroom-Stats 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... | Java | stroom-stats-service/src/main/java/stroom/stats/configuration/StatisticConfigurationCacheByUuidLoaderWriter.java | gchq/stroom-stats | lgpl-3.0 | 3,752 | 90 | codeparrot/github-code |
d8abfd64a8f4d825f1aeb89b8727bb429f253a35b11341b8a2d8a28623fb8569 | <?php
/*
*
* ____ _ _ __ __ _ __ __ ____
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
* |_| \___/ \___... | PHP | src/pocketmine/scheduler/ServerScheduler.php | ZenaGamingsky/PocketBox | lgpl-3.0 | 6,789 | 281 | codeparrot/github-code |
236fb181524587ee7922dc9589255c8d70a93bf2d467a5e3face65c94d0617b3 | /* radare - LGPL - Copyright 2009-2017 - pancake */
#include <r_debug.h>
#include <r_list.h>
/* Print out the JSON body for memory maps in the passed map region */
static void print_debug_map_json(RDebug *dbg, RDebugMap *map, bool prefix_comma) {
dbg->cb_printf ("%s{", prefix_comma ? ",": "");
if (map->name && *map... | C | libr/debug/map.c | skuater/radare2 | lgpl-3.0 | 10,722 | 360 | codeparrot/github-code |
3fd74fa7b91f5585ddf72a8719a53cd201558ade411f8db2bcbe2f69ab8e5dcd | // 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/block.go | kejace/go-ethereum | lgpl-3.0 | 15,560 | 527 | codeparrot/github-code |
6d0c9f8bb8a5be366656d9424a3febf3fce184bead989e148635d6e24b85e885 | #include<iostream>
#include<cstdio>
#include<cstring>
#include<cmath>
#include<vector>
#include<algorithm>
#define REP(i,a,b) for(int i=a;i<=b;++i)
#define FOR(i,a,b) for(int i=a;i<b;++i)
#define uREP(i,a,b) for(int i=a;i>=b;--i)
#define ECH(i,x) for(__typeof(x.begin()) i=x.begin();i!=x.end();++i)
#define CPY(a,b) me... | C++ | UVa/volume006/623 - 500!.cpp | metowolf/ACM | lgpl-3.0 | 991 | 49 | codeparrot/github-code |
567b2b41d279f105061819ba18568e0c0d1fa034221612f527a4023ebd0b188f | /********************************************************************
(c) Copyright 2014-2015 Mettler-Toledo CT. All Rights Reserved.
File Name: LogDefinationInternal.h
File Path: MTLoggerLib
Description: LogDefinationInternal
Author: Wang Bin
Created: 2015/6/10 16:01
Remark: LogDefinationInternal
****... | C | Code/MTLogger/LogDefinationInternal.h | yokarno/MTCommonLib | lgpl-3.0 | 2,905 | 113 | codeparrot/github-code |
6c35bd77d6a639ee429c13af342582733e316415a8ada34daeee4d4b174fec06 | // Copyright (C) 2018 go-nebulas authors
//
// This file is part of the go-nebulas library.
//
// the go-nebulas library 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++ | nbre/cmd/dummy_neb/generator/transaction_generator.cpp | nebulasio/go-nebulas | lgpl-3.0 | 2,026 | 53 | codeparrot/github-code |
0efeaccd6464371ef93e5f80e603c878622a61962b4554a587ddddfc97ddb0db | # BlenderBIM Add-on - OpenBIM Blender Add-on
# Copyright (C) 2021 Dion Moult <dion@thinkmoult.com>
#
# This file is part of BlenderBIM Add-on.
#
# BlenderBIM Add-on 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 Foundati... | Python | src/blenderbim/test/bim/bootstrap.py | IfcOpenShell/IfcOpenShell | lgpl-3.0 | 15,500 | 426 | codeparrot/github-code |
c4cd3b1508169ac93650363852c5cea7c9e018ee5de589c74bda1184607f8f8a | package org.orchestra.sm;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import org.slf4j.Logger;
import org.slf4j.LoggerF... | Java | src/main/java/org/orchestra/sm/Runner.java | bigorc/orchestra | lgpl-3.0 | 2,212 | 84 | codeparrot/github-code |
607f3220fa7c6a862017bd34d45eee99914b81adcde7ea3487231bf6114b22f1 | package org.datacleaner.kettle.ui;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.DisposeEvent;
import org.eclipse.swt.events.DisposeListener;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.graphics.Rec... | Java | src/main/java/org/datacleaner/kettle/ui/AbstractJobEntryDialog.java | datacleaner/pdi-datacleaner | lgpl-3.0 | 8,903 | 232 | codeparrot/github-code |
c0608f8bd44f8e5f7fe0663346bd853ae793390aae0fc604aaa3dcbfc78d4e6f | // spin_box.hpp
/*
neoGFX Resource Compiler
Copyright(C) 2019 Leigh Johnston
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 v... | C++ | tools/nrc/element_libraries/default/src/spin_box.hpp | FlibbleMr/neogfx | lgpl-3.0 | 3,226 | 93 | codeparrot/github-code |
58e271f15c59fa64405c54578a84c6bcc808d96cb071a1cf31a23dffeb94ef28 | /*****************************************************************************
The Dark Mod GPL Source Code
This file is part of the The Dark Mod Source Code, originally based
on the Doom 3 GPL Source Code as published in 2011.
The Dark Mod Source Code is free software: you can redistribute it
... | C++ | src/game/script/Script_Doc_Export.cpp | revelator/The-Darkmod-Experimental | lgpl-3.0 | 12,622 | 335 | codeparrot/github-code |
d5fc68b6439fc4b0d8222cf32074fef0148db751031ee74f4085b501cde71c03 | #!/bin/bash
echo -e "\n\n\n\n\nYOU REALLY SHOULD BE USING ys.auto or better yet -sploit
BUT IF YOU MUST USE $0 at least use /current/bin/nc.YS instead of just nc.
Packrat now has an option to do just that:
packrat -n /current/bin/nc.YS
"
sleep 4
usage ()
{
echo "Usage: ${0}
-l [ IP of attack machine (NO DEFA... | Shell | Leak #4 - Don't Forget Your Base/EQGRP-Auction-File/Linux/bin/wrap-hpux.sh | DarthMaulware/EquationGroupLeaks | unlicense | 1,801 | 93 | codeparrot/github-code |
6647b4c16801b702def9bc18ff99fe2b65d5b64b641c28104665b20dcbb2a458 | <!DOCTYPE html>
<html lang="es">
<head>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
... | PHP | ingresos_por_canal/tipo_venta/por_negocio_division/index.php | parisopr/ventas | unlicense | 25,580 | 462 | codeparrot/github-code |
8e62ab3f965104b54c18e1e521601120b74a562a4c08cb296947b222e330a3de | import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Random;
/**
* Randomly generates Secret Santa assignments for a given group.
* <p>
* All valid possible assignments are equally likely to be generated (uniform distribution).
*
* @author Michael Zaccard... | Java | java/SecretSanta.java | AetherWorks/SecretSanta | unlicense | 2,008 | 73 | codeparrot/github-code |
c19e49d4ebdf35eed1cd043bbb9ecd6ef130af8308c5fafeaad85b20793d8ea9 | #include "fat.h"
#include "disk.h"
#include "malloc.h"
void read_fs(struct fat_fs *b) {
read_sector((unsigned char *) &(b->bpb), 0, 0);
b->total_sectors = b->bpb.n_sectors;
b->fat_size = b->bpb.spf;
b->root_size = ((b->bpb.n_dirents * 32)
+ (b->bpb.bps - 1)) / b->bpb.bps;
b->first_data = b->bpb.n_hidden
... | C | fat.c | Firewiz/fireOS | unlicense | 1,548 | 57 | codeparrot/github-code |
cb40371294f1310a788598afda123d571cc94cdf2994fa1f11d5f63e52e88997 | package com.google.gson;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
class Gson$FutureTypeAdapter<T> extends TypeAdapter<T>
{
private TypeAdapter<T> delegate;
public T read(JsonReader paramJsonReader)
{
if (this.delegate == null)
throw new IllegalStateException... | Java | allsrc/com/google/gson/Gson$FutureTypeAdapter.java | clilystudio/NetBook | unlicense | 917 | 35 | codeparrot/github-code |
38da8c2e930ae3e1707cf6b99619b5af4df5320fd097149015dd8d4936361a56 | <?php
class EtendardVideo extends WP_Widget{
private $error = false;
private $novideo = false;
public function __construct(){
parent::__construct(
'EtendardVideo',
__('Etendard - Video', 'etendard'),
array('description'=>__('Add a video from Youtube, Dailymotion or Vimeo.', 'etendard'))
);
}
... | PHP | backupbuddy_backup/wp-content/themes/Etendard/admin/widgets/video.php | Offirmo/base-wordpress | unlicense | 3,281 | 112 | codeparrot/github-code |
2af227fa0319e3cf4f2693d62b13383251c3220f6ec44b3a35cd505241454e92 | package com.smartgwt.mobile.client.widgets;
import com.google.gwt.resources.client.ImageResource;
public abstract class Action {
private ImageResource icon;
private int iconSize;
private String title;
private String tooltip;
public Action(String title) {
this.title = title;
}
pu... | Java | mobile/src/main/java/com/smartgwt/mobile/client/widgets/Action.java | will-gilbert/SmartGWT-Mobile | unlicense | 1,126 | 53 | codeparrot/github-code |
48cd6d06e6ff0db653c963b600940b5b0912f9b1c7a4201c0151ebe43f90dacf | import os
import sys
import string
import random
import math
#################################################
# State
balance = 0
def deposit(amount):
global balance
balance += amount
return balance
def withdraw(amount):
global balance
balance -= amount
return balance
##################... | Python | python_2/common_objects.py | SPbAU-ProgrammingParadigms/materials | unlicense | 4,690 | 224 | codeparrot/github-code |
45aa64c7a7136433e3e7138ab32c7f370a42bee7a4ab3a416acc904735440fcb | /* **********************************************************************
/*
* NOTE: This copyright does *not* cover user programs that use Hyperic
* program services by normal system calls through the application
* program interfaces provided as part of the Hyperic Plug-in Development
* Kit or the Hyperic Client D... | Java | hq-installer/src/main/java/org/hyperic/tools/ant/PropertiesFileMergerTask.java | cc14514/hq6 | unlicense | 8,153 | 202 | codeparrot/github-code |
6fa25e250e4e074b32f313d8bb479ea2777f06fee374483ef0a2f15f1b09cf6e | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using BeatManagement;
public class InitialBuildingEntryAnimation : Task
{
private TaskManager subtaskManager;
private float baseStaggerTime;
private float structStaggerTime;
private float terrainStaggerTime;
private boo... | C# | Assets/Scripts/Pieces/Tasks/InitialBuildingEntryAnimation.cs | chrsjwilliams/RTS_Blokus | unlicense | 2,095 | 60 | codeparrot/github-code |
a3b8682ad437baa13ce0abb068053de5433be0e8ad581248a59487b6c962d997 | // https://github.com/KubaO/stackoverflown/tree/master/questions/html-get-24965972
#include <QtNetwork>
#include <functional>
void htmlGet(const QUrl &url, const std::function<void(const QString&)> &fun) {
QScopedPointer<QNetworkAccessManager> manager(new QNetworkAccessManager);
QNetworkReply *response = manager... | C++ | questions/html-get-24965972/main.cpp | KubaO/stackoverflown | unlicense | 1,330 | 31 | codeparrot/github-code |
30b073260ba86ec25115e1fa853fb5b52c95a5704e8e4c6d8c8e47bcda7ea5c4 | using System;
using System.Collections.Generic;
using System.Linq;
namespace NetGore
{
/// <summary>
/// Provides helper functions for parsing command-line switches and the arguments that go with
/// each of those switches.
/// </summary>
public static class CommandLineSwitchHelper
{
//... | C# | NetGore/Core/CommandLineSwitchHelper.cs | LAGIdiot/NetGore | unlicense | 4,642 | 111 | codeparrot/github-code |
1a36627e1e57011147b440158015d70cf5fc983801a50bdbcbb3e6496066ce5e | #include "alfe/main.h"
#ifndef INCLUDED_PARSER_H
#define INCLUDED_PARSER_H
#include "alfe/code.h"
#include "alfe/space.h"
class Parser : Uncopyable
{
public:
CodeList parseFromFile(File file)
{
CodeList c;
parseFromFile(c, file);
return c;
}
void parseFromString(Code code, Str... | C | include/alfe/parser.h | reenigne/reenigne | unlicense | 17,446 | 492 | codeparrot/github-code |
acd4bf22ba4bc40974c798f8ce5eadd630353a61777fa3b228bb9b1bb1570e0b | // vi: nu:noai:ts=4:sw=4
//
// c_defs
//
// Created by bob on 1/14/19.
//
/*
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, c... | C | programs/c_defs/src/c_defs.c | 2kranki/libCmn | unlicense | 3,011 | 93 | codeparrot/github-code |
24652832079c94a8459a947cdc67b9c02bc06c7cf162349e45e1f63f40e9d444 | package com.elionhaxhi.ribbit.ui;
import java.util.ArrayList;
import java.util.List;
import android.app.Activity;
import android.app.AlertDialog;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.NavUtils;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
i... | Java | src/com/elionhaxhi/ribbit/ui/RecipientsActivity.java | ElionHaxhi/Ribbit | unlicense | 7,505 | 275 | codeparrot/github-code |
e7fb478383b99f4482a522e09170d3f5bf64512deb9c9b7aa8ceca4eb8705124 |
class PermissionRequired(Exception):
"""
Exception to be thrown by views which check permissions internally.
Takes a single C{perm} argument which defines the permission that caused
the exception.
"""
def __init__(self, perm):
self.perm = perm
def require_permissions(user, *permissio... | Python | adb/frontend/auth/decorators.py | AnimeDB/adb-browser-frontend | unlicense | 2,476 | 76 | codeparrot/github-code |
173751177b8f783d4479ce0affcf2a6954e5df6d35be69482fb439fdff167fae | #ifndef REGTEST
#include <threads.h>
#include <windows.h>
int mtx_lock(mtx_t *mtx)
{
DWORD myId = GetCurrentThreadId();
if(mtx->_ThreadId == (long) myId) {
mtx->_NestCount++;
return thrd_success;
}
for(;;) {
LONG prev = InterlockedCompareExchange(&mtx->_ThreadId, myId, 0);
... | C | 3rdParty/PDCLib/platform/win32/functions/threads/mtx_lock.c | cartman300/Kernel | unlicense | 614 | 34 | codeparrot/github-code |
26a5238bdd2aa6c7b474507f3aea385c2a7bb9a6054b538eb88193888ce84750 | package net.simpvp.Jail;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.UUID;
import org.bukkit.Location;
/**
* Class representing the stored information about a jailed player
*/
public class JailedPlayer {
public UUID uuid;
public String playername;
public String reason;
public Str... | Java | src/main/java/net/simpvp/Jail/JailedPlayer.java | C4K3/Jail | unlicense | 1,551 | 70 | codeparrot/github-code |
9e83e3ee342ec7c3886b3134297b9d96ec12b1ee45cb12a50700d61e10663880 | /*
* NOTE: This copyright does *not* cover user programs that use HQ
* program services by normal system calls through the application
* program interfaces provided as part of the Hyperic Plug-in Development
* Kit or the Hyperic Client Development Kit - this is merely considered
* normal use of the program, and do... | Java | hq-web/src/main/java/org/hyperic/hq/ui/action/portlet/autoDisc/AIPlatformWithStatus.java | cc14514/hq6 | unlicense | 2,391 | 71 | codeparrot/github-code |
cf07e23fb2d1d9c8f3d52a018a6733d1843b809269872fba9d91ea1591efc9ad | #ifndef HAVE_spiral_io_hpp
#define HAVE_spiral_io_hpp
#include <cstdio>
#include "spiral/core.hpp"
#include "spiral/string.hpp"
namespace spiral {
struct IoObj {
const ObjTable* otable;
std::FILE* stdio;
bool close_on_drop;
};
auto io_from_val(Bg* bg, Val val) -> IoObj*;
auto io_from_obj_ptr(void*... | C++ | rt/include/spiral/io.hpp | honzasp/spiral | unlicense | 2,505 | 59 | codeparrot/github-code |
e1de667adbd88a9e814906156b42393b9e0ea61084ed106f70017946f0bcf930 | #!/bin/bash
#
# ++++ Raspberry Pi Temperature script ++++
#
# By woftor (GitHub)
#
# This script shows the temperature of the ARM CPU of you Raspberry Pi: current, mean, lowest and highest.
# You can choose between Celcius of Fahrenheit.
# It uses three text files to store data:
# - pitemps_file for the last temperat... | Shell | pitemps.sh | woftor/pitemps | unlicense | 12,490 | 375 | codeparrot/github-code |
ec9fb42d8b7b001bfc524348f54ac2a4617e135e22af21ad7564c02d872f7e6e | # -*- coding: utf-8 -*-
"""
Created on Fri Nov 15 15:55:28 2013
@author: dyanna
"""
import numpy as np
from sklearn.svm import SVC
def getSample(pointA, pointB, numberOfPoints):
pointList = list(zip(np.random.uniform(-1,1.00,numberOfPoints),np.random.uniform(-1,1.00,numberOfPoints)))
sample = np.array([(i[0]... | Python | Week 7/qp.py | pramodh-bn/learn-data-edx | unlicense | 6,393 | 175 | codeparrot/github-code |
a5d41c16da71b8beb9f37a4f35b57ab8963a60fbf0314cbb80c6257c3881d49d | const fs = require('fs');
const electron = require('electron');
const cl = require('node-opencl');
const RUN_GAMELOOP_SYNC = true;
const GAMETICK_CL = true;
const INIT_OPENGL = false;
let canvas; // canvas dom element
let gl; // opengl context
let clCtx; // opencl context
let glProgram; // opengl shader prog... | JavaScript | renderer.js | JohannesBeranek/electron-pixels | unlicense | 11,380 | 435 | codeparrot/github-code |
4e9e51d843314f8a990c3921e9897816f56be494a77f4e077ea60e9d66d9d9fc | package net.yottabyte.game;
import java.awt.*;
/**
* @author Jason Fagan
*/
public class BouncyBall {
private int x;
private int y;
private int vx;
private int vy;
private int radius;
private int drag;
private int mass;
public BouncyBall(int x, int y, int vx, int vy, int radius, in... | Java | physics/src/main/java/net/yottabyte/game/BouncyBall.java | jasonfagan/game-experiments | unlicense | 3,996 | 167 | codeparrot/github-code |
80bb7241096412fda4fc8e08fcabba1575730e293c2dc5b6ef72ddc7d341d099 | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations.Schema;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
namespace ProjetoModelo.Infra.CrossCut... | C# | Arquitetura Modelo DDD/ProjetoModelo.Infra.CrossCutting.Identity/ApplicationUser.cs | lsilvestres/Exemplos | unlicense | 2,450 | 72 | codeparrot/github-code |
2282c966f6294f6327033ad8dd945b24691ca709476cadeef4b66351e04c5ac4 | from sqlalchemy import create_engine, Column, Integer, String, ForeignKey, Table
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker, relationship
# demo many to many relationship
# http://docs.sqlalchemy.org/en/rel_0_9/orm/basic_relationships.html#many-to-many
engine = cre... | Python | python/sqla_learning/many_many_relation.py | amitsaha/learning | unlicense | 3,275 | 110 | codeparrot/github-code |
bed6688e7c43f79590e20c67924eb8d5c2fc929941dd7c99ac48e3727a96e17a | /**************************************************************************
* Copyright 2016 Observational Health Data Sciences and Informatics (OHDSI)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the Li... | SQL | NDC_SPL/load_stage.sql | OHDSI/Vocabulary-v5.0 | unlicense | 59,912 | 1,984 | codeparrot/github-code |
f0af45d3bfe630e5867b84c5051ad1e208dec1ce565366de8766b00e63e8a1fa | /*
@author Zakai Hamilton
@component CoreJson
*/
screens.core.json = function CoreJson(me, { core, storage }) {
me.init = function () {
if (me.platform === "server") {
me.request = require("request");
}
};
me.loadComponent = async function (path, useCache = true) {
... | JavaScript | packages/code/core/core_json.js | zakaihamilton/screens | unlicense | 7,342 | 231 | codeparrot/github-code |
8a8411ded15018565b1b2d01a31fa546735f74ae441855f319cf459a7eee2469 |
public class RandomColoringDiv2 {
public int getCount(int maxR, int maxG, int maxB, int startR, int startG, int startB, int d1,
int d2) {
int colors = 0;
int minR = Math.max(0, startR - d2);
int minG = Math.max(0, startG - d2);
int minB = Math.max(0, startB - d2);
... | Java | srm540/src/RandomColoringDiv2.java | mariusj/contests | unlicense | 5,179 | 128 | codeparrot/github-code |
ecb88b580e13a286e5075ddafb8aa67f150b608d9264d9e30444e050de31b559 | /*globals document, setTimeout, clearTimeout, Audio, navigator */
var MallardMayhem = MallardMayhem || {};
(function () {
"use strict";
MallardMayhem.Duck = function (options) {
var self = this;
this.currentTimeout = null;
this.domElement = document.createElement('span');
th... | JavaScript | mm/mm.client.duck.js | HTMLToronto/MallardMayhem | unlicense | 7,282 | 175 | codeparrot/github-code |
5a66536be9d957ab8ad88944450d5052b2440640360c78ff6f1bf09321de8818 | <?php
namespace SKE\Command;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Compo... | PHP | src/SKE/Command/CacheClearCommand.php | ooXei1sh/silex-ske-sandbox | unlicense | 2,254 | 105 | codeparrot/github-code |
5ae1f96c2a5b284edef25c22cc97c9bfb61229e63ccc56c79ab31626e2316dc8 | // Copyright (c) Microsoft Corporation. All rights reserved.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Xml;
using Diagnostics.Tracing;
using Diagnostics.Tracing.Parsers;
using FastSerialization;
using Ut... | C# | projects/TraceSample/source/TraceEvent/DynamicTraceEventParser.cs | brian-dot-net/writeasync | unlicense | 49,945 | 1,172 | codeparrot/github-code |
2decfdd9a4e67ca9811dfaf854afba5c2d723b62e6af5d42f4d4bf552ccd74f6 | <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/pages/datatables.css">
<link href="<?php echo base_url(); ?>assets/vendors/bootstrapvalidator/css/bootstrapValidator.min.css" rel="stylesheet">
<script type="text/javascript" src="<?php echo base_url(); ?>assets/vendors/bootstrapvalidator/... | PHP | application/modules/kec_siu/views/kec_siu_status_view.php | NizarHafizulllah/simpatenksb | unlicense | 29,766 | 721 | codeparrot/github-code |
b75f8c2e657cce3973f96b2f7d9798f25412e48d7d31a9568a106d92f852476e | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Reflection;
using System.Windows.Forms;
using IFSExplorer.Properties;
namespace IFSExplorer
{
public partial class MainForm : Form
{
private static readonly Dictionary<int,... | C# | IFSExplorer/MainForm.cs | kivikakk/ifsexplorer | unlicense | 9,289 | 275 | codeparrot/github-code |
aefca7c504ee25eaaab8b052c5dd1fa781fd3e82b63973a2402c6d281f76f8f8 | #!/usr/bin/env node
var http = require('http');
var moment = require('moment');
var server = undefined;
var threshold = undefined;
var units = undefined;
if (!isValid(process.argv)) {
console.error('invalid arguments, expected hostname threshold and units');
process.exit(-1);
}
var request = http.request('http://... | JavaScript | util/analyzeMissingDates.js | initcz/thermohome-client-rpi | unlicense | 1,860 | 84 | codeparrot/github-code |
5ed8128e8ec0f7ea2f98517ea8506a6045ece90e6bc83cfe611c9ecf93eb0a32 | using System;
using System.Reactive;
using System.Reactive.Concurrency;
using System.Reactive.Subjects;
using System.Threading;
using System.Threading.Tasks;
using BFF.DataVirtualizingCollection.PageStorage;
using MrMeeseeks.Reactive.Extensions;
namespace BFF.DataVirtualizingCollection.DataVirtualizingCollection
{
... | C# | BFF.DataVirtualizingCollection/DataVirtualizingCollection/SyncDataVirtualizingCollection.cs | Yeah69/BFF.DataVirtualizingCollection | unlicense | 2,503 | 70 | codeparrot/github-code |
694a6dc10284ee871650d2fe237d068a98a7afce70bb59a57a00ab94e27b48fb | /*
* NOTE: This copyright does *not* cover user programs that use HQ
* program services by normal system calls through the application
* program interfaces provided as part of the Hyperic Plug-in Development
* Kit or the Hyperic Client Development Kit - this is merely considered
* normal use of the program, and do... | Java | hq-web/src/main/java/org/hyperic/hq/ui/server/session/DashboardManagerImpl.java | cc14514/hq6 | unlicense | 13,750 | 361 | codeparrot/github-code |
eca7f0bdcc658575db6635850347222e3db9bf9224b6fa26f188168f54b59768 | from rec import CourseRecord
from score import RoomScore
from evaluation import ScheduleEvaluation
FULL_HOURS = 8 # 8:00AM - 4:00PM utilization
PARTIAL_HOURS = FULL_HOURS * 0.75 #75%
HALF_HOURS = FULL_HOURS * 0.50 #50%
SPARSE_HOURS = FULL_HOURS * 0.25 #25%
class LocationScore:
def __init__(self, evals=No... | Python | src/location.py | jbrackins/scheduling-research | unlicense | 3,581 | 102 | codeparrot/github-code |
67c9dbfe59b92fa720b3da7fe1027b7936f75063a8455eb3f1ec7d10f2a888cc | package es.com.blogspot.elblogdepicodev.activiti;
import java.text.MessageFormat;
import java.util.HashMap;
import java.util.Map;
import org.activiti.engine.ProcessEngine;
import org.activiti.engine.ProcessEngineConfiguration;
import org.activiti.engine.ProcessEngines;
import org.activiti.engine.RepositoryService;
im... | Java | HelloWorldActiviti/src/main/java/es/com/blogspot/elblogdepicodev/activiti/Errores.java | picodotdev/elblogdepicodev | unlicense | 1,554 | 46 | codeparrot/github-code |
fd670b344915bc435c8eddf9586bdefcbb807d3f16e3c601f0c44a9a5760d610 | require 'google_tts/connector'
require 'google_tts/query_builder'
require 'google_tts/parser'
require 'google_tts/mp3writer'
module GoogleTts
VERSION = "0.1.0"
class Client
include GoogleTts
def initialize(connector = Connector.new,
query_builder = QueryBuilder.new,
... | Ruby | lib/google_tts.rb | filipesperandio/google_tts2 | unlicense | 1,167 | 45 | codeparrot/github-code |
4832410027d22c2168c22ce617624fc92c5fa5cff15fc91cb28c7f4254cbde1f | using UnityEngine;
using UnityEngine.SceneManagement;
public class ShowModeA : MonoBehaviour {
public Texture AModeTexture;
public Texture BModeTexture;
private PlayerControllerBMode playerControllerBMode;
private GameController gameController;
void Start () {
InitPlayerController();
... | C# | Assets/Scripts/MenuButtons/ShowModeA.cs | Maximetinu/No-Mans-Flappy-Unity | unlicense | 1,676 | 54 | codeparrot/github-code |
b24de805bd601bb410009e61173fc58b4119982c39d5d0cf5112ae4e9f6d4369 | //
// Author: Wolfgang Spraul
//
// This is free and unencumbered software released into the public domain.
// For details see the UNLICENSE file at the root of the source tree.
//
#include "model.h"
#include "control.h"
// for slx9 and slx9
#define NUM_ROWS 4
#define FRAMES_DATA_START 0
//#define FRAMES_DATA_LEN ... | C | libs/parts.c | DeanoC/fpgatools | unlicense | 90,903 | 1,955 | codeparrot/github-code |
db61caf4569c4a35d980e54a7bb219e74619a5ac9527edd62454bcdbe754d5dd | /*
* Copyright 2002-2008 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... | Java | frame_packages/java_libs/spring-2.5.6-src/src/org/springframework/util/CollectionUtils.java | codeApeFromChina/resource | unlicense | 8,998 | 276 | codeparrot/github-code |
f40fd9d21c834a7140abbcb9961c2a1fa2e4d81269d149209020de6fce3a8162 | #define LOG_MODULE PacketLogModuleIgmpLayer
#include "IgmpLayer.h"
#include "PacketUtils.h"
#include "Logger.h"
#include <string.h>
#include "EndianPortable.h"
namespace pcpp
{
/*************
* IgmpLayer
*************/
IgmpLayer::IgmpLayer(IgmpType type, const IPv4Address& groupAddr, uint8_t maxRes... | C++ | Packet++/src/IgmpLayer.cpp | seladb/PcapPlusPlus | unlicense | 14,266 | 555 | codeparrot/github-code |
69903cd864a4e431913019b4057bc76656198d7ec1cabac493ad35c2a5678478 | #include "line_modification.hh"
#include "buffer.hh"
#include "unit_tests.hh"
namespace Kakoune
{
static LineModification make_line_modif(const Buffer::Change& change)
{
LineCount num_added = 0, num_removed = 0;
if (change.type == Buffer::Change::Insert)
{
num_added = change.end.line - change.beg... | C++ | src/line_modification.cc | alpha123/kakoune | unlicense | 6,123 | 167 | codeparrot/github-code |
91f3a5a1785a35f47e67319f22bfaaae71135c0e8c7819edce75b6267754a2b2 | #ifndef __NETWORKBALANCER_HPP
#define __NETWORKBALANCER_HPP
#include <stdlib.h>
namespace Network
{
class NetworkBalancer
{
public:
/**
* @brief NetworkBalancer Class constructor
*/
NetworkBalancer();
/**
* @brief sendTroughBalancer Sends a buffer throu... | C++ | src/Network/NetworkBalancer.hpp | magfernandez/TIDTest | unlicense | 1,492 | 55 | codeparrot/github-code |
80ead2f21cc3636848c81790c4cdb2c8f78588488833f97a46b459b19253f2e9 | package com.github.alkedr.matchers.reporting.reporters;
import org.junit.Test;
import static com.github.alkedr.matchers.reporting.reporters.Reporters.noOpSafeTreeReporter;
import static com.github.alkedr.matchers.reporting.reporters.Reporters.noOpSimpleTreeReporter;
public class NoOpReportersTest {
@Test
pub... | Java | src/test/java/com/github/alkedr/matchers/reporting/reporters/NoOpReportersTest.java | alkedr/reporting-matchers | unlicense | 1,403 | 39 | codeparrot/github-code |
a915438b6928744ea154f78a64344a621d110d52acc097589455346b11f0a314 | <HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<link href="layout.css" charset="utf-8" type="text/css" rel="stylesheet"></link>
<TITLE>SDL_CreateWindow</TITLE>
</HEAD>
<BODY>
<script src="menu.js"></script>
<div id=pagecontent>
<h1>SDL_CreateWindow</h1>
<p>Use this function to create a... | HTML | Motor2D_1er/Docs/SDL2/SDL_CreateWindow.html | d0n3val/programacio_2 | unlicense | 3,925 | 95 | codeparrot/github-code |
71b56cc281f3067527d2c4af839f0c13570edb06d0afde952c50e13d5c206f6b |
avatar = function(x){
this.x = x;
this.y = 0;
this.prevY = 0;
this.velocity_x = 0;
this.velocity_y = 0;
this.img = loadImage("stickman.png");
this.crouch = loadImage("crouch.png");
this.width = 16;
this.standingHeight=64;
this.crouchHeight=44;
this.height = this.standingHeight;
this.collisionCheck = [];
};... | JavaScript | orak/sa-23/avatar.js | rizsi/szakkor2014 | unlicense | 3,166 | 156 | codeparrot/github-code |
50fda1c59e49bc6dabbe94d871efc89ca9af76dd7373417c39553c5da2e8dde5 | /* * * * * * * * * * * * * * * * * * * * * * * * * * *
* SYSTEM/FS/FAT.H *
* * * * * * * * * * * * * * * * * * * * * * * * * * */
#ifndef FAT_H_INCLUDED
#define FAT_H_INCLUDED
#include <FORMATTING.H>
typedef struct _FAT121632_BPB {
uint8_t OEMName[8];
uint16_t BytesPerSector;
uint8_t SectorsPe... | C++ | 0.0.1/SRC/SYSTEM/FS/FAT.H | basicfreak/BOS | unlicense | 2,287 | 96 | codeparrot/github-code |
1bd152f6999aac09a11ee36ff6713997b17778053a318318958fb69939ab5cee | package crashreporter.api;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Registry for API provider objects.
*
* @author Richard
*/
public class Registry {
private static final Map<String, Pasteb... | Java | src/crashreporter/api/Registry.java | richardg867/CrashReporter | unlicense | 3,754 | 112 | codeparrot/github-code |
f49bd19f630fe763844a43efeec2a0441439617c354fb160de56db29710f8e35 | package gui.dragndrop;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.*;
import javafx.scene.input.*;
import javafx.scene.layout.*;
import javafx.scene.paint.Color;
import javafx.stage.Stage;
public class DragAndDrop extends Application
{
public void start(Stage stag... | Java | CodeExamples/src/gui/dragndrop/DragAndDrop.java | KonstantinTwardzik/Graphical-User-Interfaces | unlicense | 3,091 | 111 | codeparrot/github-code |
e26e3e6e77c941ec837a7cd09bceb60aa9ef5761e9d5ccfb38e0119bfe9a8b8f |
var leaderboard2 = function(data) {
return data.data.sort(function(a,b){return b.points-a.points;});
};
function liCreate(name,points) {
var li = $('<li>'+name+'</li>');
li.append('<span>'+points+'</span>');
}
$(document).ready(function() {
// var sorted = leaderboard2(data);
// for (var i=0; i<sorted.leng... | JavaScript | own-playground/karma/script.js | sherylpeebee/redditClone | unlicense | 1,196 | 38 | codeparrot/github-code |
b554d07ea9622b9c50319db23ad0faee71038f213a6c77161067aaa4f73b8cb3 | package lcd2usb
import (
"errors"
"fmt"
"github.com/schleibinger/sio"
)
type cmd byte
const (
cmdPrefix cmd = 0xfe
cmdBacklightOn = 0x42
cmdBacklightOff = 0x46
cmdBrightnes = 0x99 // brightnes
cmdContrast = 0x50 // contrast
cmdAutoscrollOn = 0x51
cmdAutoscroll... | GO | lcd2usb/main.go | Merovius/go-misc | unlicense | 3,074 | 159 | codeparrot/github-code |
c2756c601407f88fa97506d20056998d04a5b8b0e8dbb714191515cea0f1ba50 | public class Student {
private String namn;
private int födelseår, status, id;
public Student(){}
public String getNamn() {
return namn;
}
public void setNamn(String nyNamn) {
namn=nyNamn;
}
public int getId() {
return id;
}
public void setId(int nyId) {
id=nyId;
}
public int getStatus() {
ret... | Java | tebrakod/Student.java | andreasaronsson/introduktion_till_informatik | apache-2.0 | 589 | 37 | codeparrot/github-code |
6d1c7204cad93b840bf431f6aedfff7e2ce79fa3d1e6f8cc47a512561b8438cd | /*!
* Ext JS Library 3.4.0
* Copyright(c) 2006-2011 Sencha Inc.
* licensing@sencha.com
* http://www.sencha.com/license
*/
/**
* @class Ext.dd.DragTracker
* @extends Ext.util.Observable
* A DragTracker listens for drag events on an Element and fires events at the start and end of the drag,
* as well a... | JavaScript | icms/src/main/webapp/res/extjs/src/dd/DragTracker.js | ahwxl/cms | apache-2.0 | 7,637 | 251 | codeparrot/github-code |
53748bf6ed35c90d4388cc6c7327b899a05f587467d2e7d737addd486378b294 | <?php
/**
* @link https://www.humhub.org/
* @copyright Copyright (c) 2015 HumHub GmbH & Co. KG
* @license https://www.humhub.com/licences
*/
namespace humhub\modules\content\widgets;
/**
* Delete Link for Wall Entries
*
* This widget will attached to the WallEntryControlsWidget and displays
* the "Delete" Li... | PHP | protected/humhub/modules/content/widgets/DeleteLink.php | calonso-conabio/intranet | apache-2.0 | 931 | 43 | codeparrot/github-code |
8d6f9fe5cb284398864bfad69ab63eb10d5c7f418812485256dda89fb3c2b8af | /*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may ... | Java | jmx-embedded/src/main/java/net/gcolin/jmx/console/embedded/BootStrapJmxServlet.java | gcolin/jmx-web-console | apache-2.0 | 3,657 | 111 | codeparrot/github-code |
8e04ca97be13ff8deb17deeb000b0102815bd8557063a9b11b14f3beaed94b78 | using IronFoundry.Warden.Containers;
using Xunit;
namespace IronFoundry.Warden.Test
{
using System;
public class ContainerHandleTests
{
[Theory]
[InlineData(1, "idq1ypm7dyb")]
[InlineData(2, "1of9dl2qia1")]
public void GeneratesIdFromRandomGenerator(int input, string expec... | C# | IronFoundry.Warden.Test/Containers/ContainerHandleTests.cs | cloudfoundry-incubator/if_warden | apache-2.0 | 811 | 31 | codeparrot/github-code |
bdf8a1af0a8b1fc9611695c2662dbaf4aac2bd2e4af81b5a605721055b312e11 |
package org.renjin.primitives;
import org.renjin.eval.Context;
import org.renjin.eval.EvalException;
import org.renjin.primitives.annotations.processor.ArgumentException;
import org.renjin.primitives.annotations.processor.ArgumentIterator;
import org.renjin.primitives.annotations.processor.WrapperRuntime;
import org.... | Java | org.renjin.core/src-gen/org/renjin/primitives/R$primitive$file$access.java | bedatadriven/renjin-statet | apache-2.0 | 3,115 | 81 | codeparrot/github-code |
0a938aa8d12cad826ebf56ffb8cc529c0b72da0e5f0f9ebbe2905d80373898b1 | /*******************************************************************************
* Copyright 2012 EMBL-EBI, Hinxton outstation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* h... | Java | src/test/java/uk/ac/ebi/embl/api/validation/check/sourcefeature/MoleculeTypeAndSourceQualifierCheckTest.java | enasequence/sequencetools | apache-2.0 | 5,528 | 158 | codeparrot/github-code |
163669d1dfb28dbb63c13ac781854386bc702073dd2b920d5402acfa93c0340b | package com.baicai.util.help;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.beetl.core.Configuration;
import org.beetl.core.GroupTemplate;
import org.beetl.core.Template;
import org.beetl.core.resource.FileReso... | Java | src/main/java/com/baicai/util/help/GenModel.java | iminto/baicai | apache-2.0 | 1,728 | 53 | codeparrot/github-code |
5ffea0b5cfb38fd1fa2c34bec72bfb0fb97caa2e56981a301d439ac85ff9fa88 | using System.Diagnostics;
namespace Lucene.Net.Index
{
using Lucene.Net.Util;
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
... | C# | src/Lucene.Net.TestFramework/Index/AllDeletedFilterReader.cs | laimis/lucenenet | apache-2.0 | 1,641 | 51 | codeparrot/github-code |
bfad118c10ec47cf9bf5d20730ff630bd04f0d23208a5ba5b92eb68c0a525748 | package files
import (
"bytes"
"io"
"io/ioutil"
"strings"
"github.com/golang/protobuf/proto"
"github.com/octavore/nagax/util/errors"
uuid "github.com/satori/go.uuid"
"github.com/willnorris/imageproxy"
"github.com/ketchuphq/ketchup/proto/ketchup/models"
)
func (m *Module) Upload(filename string, wr io.Reade... | GO | server/files/actions.go | ketchuphq/ketchup | apache-2.0 | 2,177 | 96 | codeparrot/github-code |
7ccf611017cd7d6b125b7c9ba9191a7b4558730fdd6339188cbd87c6fa475138 | package com.yueny.demo.downlatch.holder;
import java.util.List;
import java.util.Vector;
import org.apache.commons.collections4.CollectionUtils;
import com.yueny.demo.downlatch.bo.RecoverResult;
/**
* @author yueny09 <deep_blue_yang@163.com>
*
* @DATE 2016年3月22日 下午1:15:25
*
*/
public class Trans... | Java | exec/src/main/java/com/yueny/demo/downlatch/holder/TransResultHolder.java | yueny/pra | apache-2.0 | 1,139 | 49 | codeparrot/github-code |
f35f7676fedff498088ef958e04b0fc0880bbc6ab92d5e89da3cd5e443b7090b | using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web.Http;
using Divergent.Sales.Data.Context;
namespace Divergent.Sales.API.Controllers
{
[RoutePrefix("api/orders")]
public class OrdersController : ApiController
{
private readonly ISalesContext _context;... | C# | exercises/src/01 CompositeUI/after/Divergent.Sales.API/Controllers/OrdersController.cs | jbogard/Workshop.Microservices | apache-2.0 | 1,036 | 40 | codeparrot/github-code |
fbd1f7d1954ee35dc503037a3e17c96421374a19f2ad36f4a4c983313e4d82f7 | /*
* Swift Parallel Scripting Language (http://swift-lang.org)
* Code from Java CoG Kit Project (see notice below) with modifications.
*
* Copyright 2005-2014 University of Chicago
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licens... | Java | src/org/griphyn/vdl/mapping/nodes/RootClosedMapDataNode.java | swift-lang/swift-k | apache-2.0 | 7,772 | 279 | codeparrot/github-code |
6353e7114134efda1e1947ba5248813f0edbfa4912f732eae0a31b4aa1bfce83 | /*
* #!
* Ontopoly Editor
* #-
* Copyright (C) 2001 - 2013 The Ontopia Project
* #-
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.... | Java | ontopoly-editor/src/main/java/ontopoly/components/FieldInstanceNumberField.java | ontopia/ontopia | apache-2.0 | 2,944 | 92 | codeparrot/github-code |
6b2ceeb23aee1f2ce1e06e1fa3180e670f8a9074244210230822c238343f5edb | /**********************************************************************
Copyright (c) 2006 Erik Bengtson and others. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
ht... | Java | samples/src/java/org/jpox/samples/types/stringbuffer/StringBufferHolder.java | hopecee/texsts | apache-2.0 | 1,432 | 49 | codeparrot/github-code |
74f6ca1b04dd024e7a13e5df96c05fab090969cfa0f7ec5c931424a71a22dc57 | /*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | Java | aws-java-sdk-importexport/src/main/java/com/amazonaws/services/importexport/model/transform/CancelJobRequestMarshaller.java | aws/aws-sdk-java | apache-2.0 | 2,038 | 55 | codeparrot/github-code |
6eb02be011a04721315bb73e5f2659dddc060024bcd0a53ad2c305cae5e1abd6 | /*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | Java | aws-java-sdk-personalize/src/main/java/com/amazonaws/services/personalize/model/DescribeAlgorithmRequest.java | aws/aws-sdk-java | apache-2.0 | 3,808 | 125 | codeparrot/github-code |
c1f3b5ebf897b8f6db67fb6431b0b5c85add00d35772ba8956226c3b786fb5b5 | package libgbust
import (
"io/ioutil"
"net/http"
"net/url"
"unicode/utf8"
)
// CheckDir is used to execute a directory check
func (a *Attacker) CheckDir(word string) *Result {
end, err := url.Parse(word)
if err != nil {
return &Result{
Msg: "[!] failed to parse word",
Err: err,
}
}
fullURL := a.conf... | GO | libgbust/check.go | kkirsche/gbust | apache-2.0 | 1,062 | 57 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.