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 |
|---|---|---|---|---|---|---|---|---|
bf0e00845528ad4472147ce9c222bd4a2f8472df692931bce7a56452a800926d | package com.almasb.mp;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import javafx.animation.FadeTransition;
import javafx.application.Application;
import javafx.geometry.Pos;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.input.MouseEvent;
import javafx.... | Java | src/main/java/com/almasb/mp/MemoryPuzzleApp.java | AlmasB/FXTutorials | mit | 3,420 | 127 | codeparrot/github-code |
5fd0a2c29f79ef90641b282db8801d977c772e666f34815a3533a9ffd2f05ee8 | # http://github.com/timestocome
# use hidden markov model to predict changes in a stock market index fund
# http://cs229.stanford.edu/proj2009/ShinLee.pdf
# https://www.dartmouth.edu/~chance/teaching_aids/books_articles/probability_book/Chapter11.pdf
import numpy as np
import pandas as pd
import tensorflow as tf
im... | Python | Misc experiments/Stocks_SimpleMarkovChain.py | timestocome/Test-stock-prediction-algorithms | mit | 4,218 | 135 | codeparrot/github-code |
7eeaefb4d8ba614f5d5b165bd8456046bfd2f85eacf83c788ae3ddfcc39215a0 | package testserver
import (
"net/http/httptest"
"github.com/gorilla/mux"
"github.com/pivotal-cf-experimental/warrant/internal/server/clients"
"github.com/pivotal-cf-experimental/warrant/internal/server/common"
"github.com/pivotal-cf-experimental/warrant/internal/server/domain"
"github.com/pivotal-cf-experimenta... | GO | testserver/uaa.go | pivotal-cf-experimental/warrant | mit | 3,586 | 136 | codeparrot/github-code |
bc3a40577ad7929f25979b2a85c99e6ea098a0a26180ea6d115c1321a56b00ec | module DocuSign
class DocuSignResponse
def self.new(*args)
response = args.first
case response.to_hash.keys.first.to_sym
when :create_and_send_envelope_response
return EnvelopeStatus.new(response.to_hash[:create_and_send_envelope_response][:create_and_send_envelope_result])
... | Ruby | lib/docu_sign/docu_sign_response.rb | phanle/docu_sign | mit | 1,483 | 32 | codeparrot/github-code |
dc37e8ccca4763942ec4c6e36bcebdf5edbd8a9198cff776f6681a4ce1446b11 | package de.fips.plugin.tinyaudioplayer.view.playlist;
import static de.fips.plugin.tinyaudioplayer.audio.PlaylistItemTag.playlistItemTag;
import static de.fips.plugin.tinyaudioplayer.view.playlist.PlaylistItemLabelProvider.GREY;
import static de.fips.plugin.tinyaudioplayer.view.playlist.PlaylistItemLabelProvider.W... | Java | src/test/java/de/fips/plugin/tinyaudioplayer/view/playlist/PlaylistItemLabelProviderTest.java | peichhorn/tinyaudioplayer | mit | 4,591 | 114 | codeparrot/github-code |
8fa5f1d704cbb80f90d4dac78f5bf3bb6f73c711d417c4290511f4b1891f2bff | # frozen_string_literal: true
module EGPRates
# Suez Canal Bank
class SuezCanalBank < EGPRates::Bank
def initialize
@sym = :SuezCanalBank
@uri = URI.parse('http://scbank.com.eg/CurrencyAll.aspx')
end
# @return [Hash] of exchange rates for selling and buying
# {
# { sell: { SYM... | Ruby | lib/egp_rates/suez_canal_bank.rb | mad-raz/EGP-Rates | mit | 2,091 | 58 | codeparrot/github-code |
15aaeee18a2ed101dc759d196c25ee52598b17afb3d03bdb34ee4f61dc6964a0 | using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
namespace DynamicDbSet.Models
{
public interface IEntityRelationType
{
long Id { get; set; }
long ToClassId { get; set; }
string Name { ... | C# | src/DynamicDbSet/Models/EntityRelationType.cs | entitycontext/ef6-dynamic-dbset | mit | 2,429 | 65 | codeparrot/github-code |
3f25eebed17e6ac77f521cbfbaef2a27be926a0b344e505f8c25deb4faf69952 | import * as Router from "universal-router";
import routes from "~/routes";
export default new Router(routes, {
resolveRoute(context, params) {
let { route } = context;
// if (typeof route.load === 'function') {
// return route.load().then(action => action.default(context, params));
// }
//this... | TypeScript | src/client/router.ts | llyys/trible | mit | 1,374 | 42 | codeparrot/github-code |
8d6b522501f6a6a187dc4f22dbf0b046a46d8680d086f89137fe73dd9ae2d8e6 | /**!
* koa-generic-session - test/session.test.js
* Copyright(c) 2013
* MIT Licensed
*
* Authors:
* dead_horse <dead_horse@qq.com> (http://deadhorse.me)
*/
'use strict';
/**
* Module dependencies.
*/
var Session = require('..');
var koa = require('koa');
var app = require('./support/server');
var request ... | JavaScript | test/session.test.js | halt-hammerzeit/generic-session | mit | 6,319 | 228 | codeparrot/github-code |
2ed1b837b98f59d549874b7fcf9ea78a5d19b01a7cf93aff7237c8588f594050 | import { Component, HostListener } from '@angular/core';
import { RedditService } from '../../shared/services/reddit.service';
import { Comment } from '../../shared/models/comment';
@Component({
selector: 'my-app',
templateUrl: 'app/components/main/app.component.html',
styleUrls: ['app/components/main/app.css'],
... | TypeScript | app/components/main/app.component.ts | satoshi-fapamoto/guzl | mit | 2,077 | 81 | codeparrot/github-code |
0f4ce9f2c00c898d35b1596a5a68aebb7b95e60e9352ca190281232bb92f4179 | package com.syntacticsugar.vooga.gameplayer.universe.map.tiles.effects;
import com.syntacticsugar.vooga.gameplayer.attribute.TimedDespawnAttribute;
import java.io.Serializable;
import com.syntacticsugar.vooga.gameplayer.event.implementations.HealthChangeEvent;
import com.syntacticsugar.vooga.gameplayer.event.implemen... | Java | src/com/syntacticsugar/vooga/gameplayer/universe/map/tiles/effects/TileDamageTemporaryEffect.java | nbv3/voogasalad_CS308 | mit | 2,517 | 82 | codeparrot/github-code |
4434776b1fe423a343d517e0f60961a0576f6d4d4dd5bf57bf6bab5c870f300f | <?php
namespace Dboss\Repository;
use Doctrine\ORM\EntityRepository;
use Dboss\Entity;
use Dboss\Xtea;
class UserRepository extends EntityRepository
{
/**
*
**/
public function findActiveUsers()
{
$criteria = array('deletion_date' => null);
return $this->findBy($criteria);
... | PHP | module/Dboss/src/Dboss/Repository/UserRepository.php | jschneider98/dBoss | mit | 942 | 47 | codeparrot/github-code |
b88c161bf77a167f92d5edf176bf42725923744296a546787b20c6e13920fc21 | // MusicXML Class Library
// Copyright (c) by Matthew James Briggs
// Distributed under the MIT License
#pragma once
#include "mx/core/ForwardDeclare.h"
#include "mx/core/AttributesInterface.h"
#include "mx/core/CommaSeparatedText.h"
#include "mx/core/Decimals.h"
#include "mx/core/Enums.h"
#include "mx/core/FontSize.... | C | Sourcecode/private/mx/core/elements/OtherArticulationAttributes.h | Webern/MusicXML-Class-Library | mit | 1,475 | 55 | codeparrot/github-code |
16e8e9df4a1398eeb73f0189efe98b665c4ec12aadec6e10ce80c9d50d5064d7 | //
// HW1_4a.cpp
// Homework 1
//
// Raymond Dam
//
//
#include <iostream>
#include <fstream> //file io stuff
#include <cstring> //using strings
#include <sstream>
#include <stdlib.h> //atoi to convert string to int
#include <ctime> ... | C++ | IntroProgram/Problem4a/HW1_4a.cpp | sh0rtfuse/CS104_DataStructures | mit | 3,190 | 144 | codeparrot/github-code |
de4cf74793c1ad1836352a9f5449ec0028204e925976df89ea9a30f029d10dd3 | """geo.py: Implementation of class AbstractTwitterGeoCommand
and its subclasses.
"""
from argparse import ArgumentParser
from . import (AbstractTwitterCommand, call_decorator)
from ..parsers import (filter_args, cache)
# GET geo/id/:place_id
# POST geo/place DEPRECATED
# GET geo/reverse_geocode
# GET geo/search
GEO... | Python | twmods/commands/geo.py | showa-yojyo/bin | mit | 4,854 | 155 | codeparrot/github-code |
352bc5a0f10722b5f385a384776fce983c8e64aab1c0e4ee16b23918b8d24858 | +(function (factory) {
if (typeof exports === 'undefined') {
factory(webduino || {});
} else {
module.exports = factory;
}
}(function (scope) {
'use strict';
// source:
// https://raw.githubusercontent.com/twistdigital/es6-promisify/release/2.0.0/lib/promisify.js
// Promise Context object const... | JavaScript | bower_components/webduino-js/src/util/promisify.js | marty5499/webduino | mit | 1,708 | 64 | codeparrot/github-code |
627f1839d4d67275dfb6fcd0d8fec0edb52fa5d543f36342b6ff8aabf48bb386 | package net.cucumbersome.rpgRoller.warhammer.player
import com.danielasfregola.randomdatagenerator.RandomDataGenerator
import net.cucumbersome.UnitSpec
import net.cucumbersome.rpgRoller.warhammer.player.CombatActorPresenter.{Statistics => StatsP}
import spray.json._
class StatisticsCombatActorJsonSerializerSpec exten... | Scala | src/test/scala/net/cucumbersome/rpgRoller/warhammer/player/StatisticsCombatActorJsonSerializerSpec.scala | CucumisSativus/rpgRollerBackend | mit | 1,877 | 66 | codeparrot/github-code |
ea28b1574edce0f5c54f804717fa01fa1553f368035af2845a77322cd0e8afc3 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__wchar_t_console_w32_spawnv_72a.cpp
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-72a.tmpl.cpp
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: console Read input from th... | C++ | samples/Juliet/testcases/CWE78_OS_Command_Injection/s06/CWE78_OS_Command_Injection__wchar_t_console_w32_spawnv_72a.cpp | maurer/tiamat | mit | 4,013 | 146 | codeparrot/github-code |
6555a23a86b5f8912b14b59cdb392c0e38813682f35095a39c6418b5bef14846 | <?php
namespace application\components;
use \Yii;
use \CException;
/**
* Active Form Widget
*
* @author Zander Baldwin <mynameiszanders@gmail.com>
* @link https://github.com/mynameiszanders/yii-forms
* @copyright 2013 Zander Baldwin
* @license MIT/X11 <... | PHP | application/components/ActiveForm.php | zanderbaldwin/yiiskeleton | mit | 11,420 | 258 | codeparrot/github-code |
65cb3fd47cd410bf5a122a654b0204957a4468316ab4cba20c20c24a8fc7836f | from __future__ import absolute_import
from collections import defaultdict as ddict
import os.path as op
def enum(**enums):
"""#enumeration
#backward compatible
:param enums:
"""
return type('Enum', (), enums)
IONISATION_MODE = enum(NEG=-1, POS=1)
class ExperimentalSettings(object):
"""
... | Python | mzos/exp_design.py | jerkos/mzOS | mit | 3,317 | 125 | codeparrot/github-code |
b5a80d7e7adbca623c7ae7b645e6f3665d3b18b67c690b2c5d138fb6d678710a | #include "models/crbm/crbm.h"
#include "models/crbm/layers/conv.h"
#include "generator/onehut/onehut.h"
#include "generator/psr/psr.h"
#include "utils/putils.h"
#include <stdio.h>
#include <string.h>
int main(int argc, char **argv) {
OneHut *oh = new OneHut(21, 21, 10, 10);
PSR *psr = new PSR(21, 21, 10, 10);
... | C++ | CRBMTestExperiment.cpp | bitesandbytes/supreme-octo-adventure | mit | 1,469 | 68 | codeparrot/github-code |
0bb4504a24285561dae9f27a176b476d98130e8361e63259b2706645098e74fc | #pragma once
#include <atomic> // for std::atomic, atomic_thread_fence
#include <stddef.h>
#include "global_gc.h"
#include "gc_class_base.h"
#include "local_config.h" // for local_config
struct participant {
participant *next;
std::atomic<size_t> active;
local_config conf;
inline void enter(GCClassB... | C | src/participants.h | schets/concurrent_compacting_datastructures | mit | 1,105 | 44 | codeparrot/github-code |
03fc870a6a889e33a3e948536c25527c47398a83be4de365064b22658ec1f0c7 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAXIMUM_WORD_SIZE 64
#define MAXIMUM_LINE_SIZE 128
int main(int argc, char* argv[])
{
if (argc != 3)
{
printf("cmt: No file names given\n");
exit(EXIT_FAILURE);
}
FILE *inputfile;
if ((inputfile = fopen(argv[1], "... | C | src/lib/clean.c | nelly-hateva/fa | mit | 1,248 | 53 | codeparrot/github-code |
e39500ec51bd22bc883bf390f1622e951bf6e220b352e877c90083deef206268 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__char_console_w32_execvp_12.c
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-12.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: console Read input from the console... | C | samples/Juliet/testcases/CWE78_OS_Command_Injection/s02/CWE78_OS_Command_Injection__char_console_w32_execvp_12.c | maurer/tiamat | mit | 4,586 | 151 | codeparrot/github-code |
1d95349e81c4ae2853c46bdc6ca066e374f5fd5dd39b2fe7d91d6693cfaea0d8 | <?php
namespace Core\Entity;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\ORM\Event\LifecycleEventArgs;
/**
* Agenda
*
* @ORM\Table(name="saa.agenda")
* @ORM\Entity(repositoryClass="Core\Repository\AgendaRepository")
* @ORM\HasLifecycleCallbacks
*/
class Agenda
{
/**
* @var integer
*
* @ORM... | PHP | module/Core/src/Core/Entity/Agenda.php | ifce-gp-20151/saa | mit | 4,827 | 234 | codeparrot/github-code |
3aa1edea7c651050593a495e626e61ed9bb59c9b35d7b3d9b06d7700e5e1171f | $(document).on("ready" ,function(){
listaBrecha();// LLamar al metodo para listar las brechas
//Inicio cargar combo servicio public
$("#btn-NuevaBrecha").click(function()//para que cargue el como una vez echo click sino repetira datos
{
... | JavaScript | assets/js/administrador/MBrecha.js | smptracing/SMP | mit | 8,825 | 181 | codeparrot/github-code |
0af1fd3c402457bb67e9128a7b0ffb0884bc5b78bdd3ad924b21cc1ead8bdecd | package com.ucloud.ulive.example.utils;
import android.util.Log;
import static android.content.ContentValues.TAG;
public class AverageAudioMixer {
public byte[] scale(byte[] orignBuff, int size, float volumeScale) {
for (int i = 0; i < size; i += 2) {
short origin = (short) (((orignBuff[i + ... | Java | ulive-demo/src/main/java/com/ucloud/ulive/example/utils/AverageAudioMixer.java | umdk/UCDLive_Android | mit | 2,131 | 70 | codeparrot/github-code |
a015e9affc8ac587b96bc515ecc2e8494005f6b1eebdda5dd54bf7538213c8a7 | package edu.byu.cs.vv.Parser;
import edu.byu.cs.vv.Syntax.Operations.Operation;
import edu.byu.cs.vv.Syntax.Operations.Receive;
import edu.byu.cs.vv.Syntax.Operations.Send;
import edu.byu.cs.vv.Syntax.Program;
import org.antlr.v4.runtime.tree.ErrorNode;
import java.lang.*;
import java.util.HashMap;
import java.util.M... | Java | src/main/java/edu/byu/cs/vv/Parser/ProgramListener.java | byu-vv-lab/mercury | mit | 4,182 | 99 | codeparrot/github-code |
01a23a45cc5971511df4236e1b208e39e16072b6d795fe00c2f915b88b7ec31e | (function () {
'use strict';
angular.module('UserSearch')
.controller('UserSearchController', ['searchService', UserSearchController]);
function UserSearchController(searchService) {
var self = this;
self.user = {};
self.searchFilter = '';
self.showSpinner = true;
... | JavaScript | app/app.js | JeremyCarlsten/userSearchChallenge | mit | 998 | 36 | codeparrot/github-code |
94d86cfdcdff49f7e510317094c81ece014bdc1330cc4ae08f4948e83d099e2e | #include <stdio.h> /* puts, printf */
#include <stdlib.h> /* free */
#include <string.h> /* strncmp */
#include "parse.h"
struct ic_decl *ic_parse_decl_builtin(struct ic_token_list *token_list) {
/* our resulting ic_decl */
struct ic_decl *decl = 0;
/* current token we are looking at */
struct ic_tok... | C | src/parse/decl.c | mkfifo/icarus | mit | 31,742 | 1,031 | codeparrot/github-code |
2eaeb04628d21b046b2ec05af0cfae1c643eedac452c61237176fdc346116497 | require 'httparty'
require 'builder'
module Kivot
class PivotalPoster
def initialize(token, project_id)
@token = token
@project_id = project_id
end
def post_story(name, args={})
headers = {
'X-TrackerToken' => @token,
'Content-Type' => 'text/xml'
}
body =... | Ruby | lib/kivot/pivotal_poster.rb | phildarnowsky/kivot | mit | 772 | 35 | codeparrot/github-code |
58e9f9dd06168ac300666743d06f25bcf2b186923dce5d030d9e3b7754a00ce6 | import { ChildProcess } from "child_process"
import * as net from "net"
import * as path from "path"
import * as Log from "oni-core-logging"
import * as Platform from "./../Platform"
import Process from "./../Plugins/Api/Process"
import { Session } from "./Session"
// Most of the paths coming in the packaged binary... | TypeScript | browser/src/neovim/NeovimProcessSpawner.ts | extr0py/oni | mit | 4,316 | 144 | codeparrot/github-code |
3286dabb509484a74efa2f1ceb59cf8140661f047a2b6f490a48199374e4a0a8 | #include "XantoI2C.h"
XantoI2C::XantoI2C(uint8_t clock_pin, uint8_t data_pin, uint16_t delay_time_us):
clock_pin(clock_pin), data_pin(data_pin), delay_time_us(delay_time_us) {
sdaHi();
sclHi();
}
void XantoI2C::i2cDelay() {
delayMicroseconds(delay_time_us);
}
void XantoI2C::sclHi() {
pinMode(clock_pin, INP... | C++ | XantoI2C.cpp | xantorohara/XantoI2C | mit | 2,172 | 137 | codeparrot/github-code |
e7446534977bf7a3c689364a48b283ca809105d3c4827c345c909a98dcc1edc7 | package org.superboot.utils;
import javax.servlet.http.HttpServletRequest;
/**
* <b> IP校验 </b>
* <p>
* 功能描述:
* </p>
*/
public class IPUtils {
public static String getClientAddress(HttpServletRequest request) {
if (request == null) {
return "unknown";
}
String ip = request... | Java | super-boot-utils/src/main/java/org/superboot/utils/IPUtils.java | 7040210/SuperBoot | mit | 1,089 | 38 | codeparrot/github-code |
6fb0d936d8a907e7b6d3355eb1b7a91487567222b29d141246873e8deb7df55d | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__wchar_t_environment_w32_execvp_22a.c
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-22a.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: environment Read input fro... | C | samples/Juliet/testcases/CWE78_OS_Command_Injection/s07/CWE78_OS_Command_Injection__wchar_t_environment_w32_execvp_22a.c | maurer/tiamat | mit | 5,220 | 142 | codeparrot/github-code |
b86564f061ece9860b7ef9e2c740c01b7b92daa4f3c1f69edaff858de92871fc | /* @Author: John McCain
* @Date: 11-30-15
* @Version 1.0
* @Description: Records an audio stream in one hour increments. Labels files.
* Note: lines that need to be modified are marked
*/
import java.net.URLConnection;
import java.net.URL;
import java.io.InputStream;
import java.io.OutputStream;
import j... | Java | StreamRipper.java | kjhkit/Public-Stream-Rip | mit | 4,459 | 144 | codeparrot/github-code |
700315604dd11f0d82076d7d737f58e8841b460ac13a18f90a672941a70925a4 | <?php
namespace app\controllers;
use common\components\XwcController;
use common\models\AuthAssignment;
use common\models\Api;
use common\models\ProjectSearch;
use common\components\CTools;
use yii\base\ErrorException;
use yii\base\Exception;
use Yii;
use yii\data\Pagination;
use yii\web\ForbiddenHttpException;
clas... | PHP | app/controllers/ApiController.php | dora-BYR/adminTest | mit | 8,922 | 272 | codeparrot/github-code |
008e6194a06bca2e0fee437e8938dede82ad3f24704bb3bb3616704b814f820e | #region << 版 本 注 释 >>
/****************************************************
* 文 件 名:
* Copyright(c) ITdos
* CLR 版本: 4.0.30319.18408
* 创 建 人:steven hu
* 电子邮箱:
* 官方网站:www.ITdos.com
* 创建日期:2010/4/8 19:55:23
* 文件描述:
******************************************************
* 修 改 人:ITdos
* 修改日期:
* 备注描述:
**********************... | C# | Expression/Expression.cs | windygu/Dos.ORM | mit | 7,846 | 338 | codeparrot/github-code |
a67c4861ce8e6a1eabfcbbb182f34bd61bce00f20b2513033417c1a734c68128 | <?php
namespace Prooms\SecurityBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
use Prooms\RoomsBundle\Entity\Room;
use Prooms\RoomsBundle\Entity\UserRoom;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
use Symfony\Component\Validator\Mapping\ClassMetad... | PHP | src/Prooms/SecurityBundle/Entity/StudentGroup.php | y252zhan/Music-Rooms-Manager | mit | 4,261 | 176 | codeparrot/github-code |
81473a589f152e2faa18f465d6c236bf421c394c1a8f4498a9937291b55880f6 | #requires -Version 3
function Get-RubrikHost
{
<#
.SYNOPSIS
Retrieve summary information for all hosts that are registered with a Rubrik cluster.
.DESCRIPTION
The Get-RubrikHost cmdlet is used to retrive information on one or more hosts that are being protected with the Rubrik Backup Service ... | PowerShell | Rubrik/Public/Get-RubrikHost.ps1 | rubrikinc/PowerShell-Module | mit | 5,239 | 112 | codeparrot/github-code |
44cd94f1dd558b6f5baa3415b42635359ded8e2c5e1aacacb3b185380a9d36b0 | <?php
namespace MoreSparetime\WordPress\PluginBuilder\Cron;
use AndreasGlaser\Helpers\Validate\Expect;
use MoreSparetime\WordPress\PluginBuilder\AttachableInterface;
use MoreSparetime\WordPress\PluginBuilder\Plugin;
use MoreSparetime\WordPress\PluginBuilder\PluginAwareTrait;
/**
* Class Cron
*
* @package MoreSpar... | PHP | src/Cron/Cron.php | more-sparetime/wp-plugin-builder | mit | 3,052 | 141 | codeparrot/github-code |
071c2ded8666a47ab6b77fc41cf312deaf27253fb377e5ecd32698f39bbe5f5e | <?php
return array(
/*
|--------------------------------------------------------------------------
| Application Debug Mode
|--------------------------------------------------------------------------
|
| When your application is in debug mode, detailed error messages with
| stack traces will be shown on every ... | PHP | app/config/app.php | georgizhivankin/SmartDir | mit | 7,563 | 197 | codeparrot/github-code |
2239962be0b1eb79281a1142360718dbc45b555ecb5e766c09eee2e361514d82 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="apple-touch-icon" sizes="76x76" href="./assets/img/apple-icon.png">
<link rel="icon" type="image/png" href="./assets/img/favicon.png">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>Landing Page - N... | HTML | static/landing-page.html | thepatrick/lunch | mit | 17,066 | 266 | codeparrot/github-code |
ebf0b0bccf2d9480979e330b060a167a88c160c624ce18f2c9268fe89cc3a1e9 | <!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="noarchive">
<meta name="description" content="The important dates, such as deadlines and registration dates, are provided for NDDTE.">
<meta name="keywords" content="nanotechnology ... | HTML | _site/dates.html | intaset/nddte | mit | 20,725 | 523 | codeparrot/github-code |
565210fd90b7e8e399abf72d70a70a95d01d16d8de4f94f02e47893ad71eca5d | 'use strict';
var yeoman = require('yeoman-generator');
var chalk = require('chalk');
var yosay = require('yosay');
module.exports = yeoman.Base.extend({
prompting: function () {
// Have Yeoman greet the user.
this.log(yosay(
'Welcome to the stylish ' + chalk.red('generator-dev-cli') + ... | JavaScript | generators/app/index.js | lsa2127291/generator-dev-cli | mit | 1,503 | 52 | codeparrot/github-code |
cec47e27aef5d985d931f10bd3f72ed3f6e24e03d3abbb9cb960d414b1782765 | <?php
/**
* @copyright Copyright (C) 2015-2019 AIZAWA Hina
* @license https://github.com/fetus-hina/stat.ink/blob/master/LICENSE MIT
* @author AIZAWA Hina <hina@fetus.jp>
*/
declare(strict_types=1);
namespace app\models;
use yii\db\ActiveQuery;
use yii\db\ActiveRecord;
use yii\helpers\StringHelper;
/**
* This... | PHP | models/AcceptLanguage.php | fetus-hina/stat.ink | mit | 2,877 | 113 | codeparrot/github-code |
963f79a9422fd0b527e7270f15ee315d9c59b5e6255935c2e0c6fa0503b76fd1 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE762_Mismatched_Memory_Management_Routines__new_free_int64_t_21.cpp
Label Definition File: CWE762_Mismatched_Memory_Management_Routines__new_free.label.xml
Template File: sources-sinks-21.tmpl.cpp
*/
/*
* @description
* CWE: 762 Mismatched Memory Management Routi... | C++ | samples/Juliet/testcases/CWE762_Mismatched_Memory_Management_Routines/s06/CWE762_Mismatched_Memory_Management_Routines__new_free_int64_t_21.cpp | maurer/tiamat | mit | 4,431 | 165 | codeparrot/github-code |
887621746c3299f454989dcec714af3e7d13b2d6d83d9e8dfd0837eb21f44157 | using UnityEngine;
using System.Collections;
namespace UnityChan
{
//
// ↑↓キーでループアニメーションを切り替えるスクリプト(ランダム切り替え付き)Ver.3
// 2014/04/03 N.Kobayashi
//
// Require these components when using this script
[RequireComponent(typeof(Animator))]
public class IdleChanger : MonoBehaviour
{
private Animator anim; //... | C# | Eclair2/Assets/UnityChanToonShader_v1.0.1 2/Assets/UnityChan/Scripts/IdleChanger.cs | BeatItOtaku/Eclair2 | mit | 2,668 | 109 | codeparrot/github-code |
2270cac30c2acf04bba06b8bae92e9b8cdd9ca7a396fb8ba1530220768d14add | local function init()
local A, t = aura_env, GetTime()
local disp = WeakAurasSaved.displays[A.id]
if disp and disp.actions and disp.actions.finish then
local f = disp.actions.finish
if f.do_sound and f.sound then
function A.playSound()
PlaySoundFile(f.sound, ... | Lua | weakauras/legendary-ring-cd/wa.d.actions.init.custom.lua | jcai1/WowCoding | mit | 1,198 | 40 | codeparrot/github-code |
602906ed0d4aaf8d3b3637bea6df1202530cb22ac6f384afa076f1d8c4c26b2f | #include <pybind11/embed.h>
#include <iostream>
#include <string>
namespace py = pybind11;
#include "load_module.h"
py::object LoadPyModuleFromFile(const char * file_path)
{
py::dict locals;
locals["path"] = py::cast(file_path);
py::eval<py::eval_statements>( // tell eval we're passing multi... | C++ | src/utils/load_module.cpp | stonewell/wxglterm | mit | 1,921 | 63 | codeparrot/github-code |
80d8de2abdd2c6e3e375aecf9f5caa7cf24d25d65d106a5eb3cf8cadfd343f25 | #!/usr/bin/perl
# ----------------------------------------------------------------- #
# The HMM-Based Speech Synthesis System (HTS) #
# developed by HTS Working Group #
# http://hts.sp.nitech.ac.jp/ #
# ----------------------... | Perl | util/HTS-demo_NIT-ATR503-M001/data/scripts/window.pl | yutarochan/JavaOpenJtalk | mit | 5,970 | 147 | codeparrot/github-code |
0b976aea0df2798dd6e02dd407ed58098c2d2779e9e2fae0f31421da958d3601 | #include "Body.h"
vec_f CalculateCenterOfMass(nz::BodyPart* polygon)
{
switch (polygon->Type)
{
case nz::ShapeType::Polygon:
{
vec_f com;
auto poly = polygon->Polygon;
int count = poly->Count();
for (int i = 0; i < count; ++i)
{
vec_f vertex = poly->At(i);
com.X += vertex.X;
com.Y += vertex.Y;
... | C++ | GamePhysics/Body.cpp | codeflowerblue/demo | mit | 2,371 | 130 | codeparrot/github-code |
15db8f5efad11805501387e11b01edeb16f75ca633e23185a7df44a90f95a04e | <!doctype html>
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]-->
<!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"><!--<!... | HTML | _site/posts/index.html | kingslayer/kingslayer.github.io | mit | 5,235 | 202 | codeparrot/github-code |
8b8b73e94b92139ddb1e27a8eedcfb4a3b77e54bf8201d8b0af2ce121d1a1d5e | const test = require('tape');
const Mark = require('./../mark.js');
function stringArrayBuffer(str) {
var buffer = new ArrayBuffer(str.length);
var bytes = new Uint8Array(buffer);
str.split('').forEach(function(str, i) {
bytes[i] = str.charCodeAt(0);
});
return buffer;
}
test('St... | JavaScript | test/stringify-mark.js | henry-luo/mark | mit | 3,018 | 51 | codeparrot/github-code |
fe417a0b6a86866062e916d14f8d530c3d7459358125e36c184dbef2dbd43105 | const path = require(`path`)
const chunk = require(`lodash/chunk`)
// This is a simple debugging tool
// dd() will prettily dump to the terminal and kill the process
// const { dd } = require(`dumper.js`)
/**
* exports.createPages is a built-in Gatsby Node API.
* It's purpose is to allow you to create pages for you... | JavaScript | starters/gatsby-starter-wordpress-blog/gatsby-node.js | gatsbyjs/gatsby | mit | 5,748 | 193 | codeparrot/github-code |
029adef93c007b03819d95d3309de436077331ff915ba6ad7070aa76c478aa35 | 'use strict';
// Call this function when the page loads (the "ready" event)
$(document).ready(function() {
initializePage();
})
/*
* Function that is called when the document is ready.
*/
function initializePage() {
$('.project a').click(addProjectDetails);
$('#colorBtn').click(randomizeColors);
$('#apibutton... | JavaScript | public/js/introHCI.js | daisy-aurora/lab6 | mit | 2,193 | 88 | codeparrot/github-code |
c73e4dcaad2a32ab818a17520d25588b382806ad39e64cf9e3bab3911d2b32c1 | using System.Collections.Generic;
using Newtonsoft.Json;
namespace Parse.Api.Models
{
// TODO GeoQueries
/// <summary>
/// Constraints are used for constructing precise queries. For usage, see the README.
/// </summary>
/// <seealso cref="http://parse.com/docs/rest#queries-constraints"/>
... | C# | Parse.Api/Models/Constraint.cs | aldenquimby/parse-csharp | mit | 4,096 | 95 | codeparrot/github-code |
5da71307e1eb70020fe375925a4df33d25039e1a8abca0c44bb4212eb5a9c9a9 | using System;
using System.Collections.Generic;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using System.Web.Http;
using System.Web.Http.Description;
using Disty.Common.Contract.Distributions;
using Disty.Common.Net.Http;
using Disty.Service.Interfaces;
using log4net;
namespace Disty.Servic... | C# | Disty.Service.Endpoint.Http/DistributionListController.cs | BryceAshey/Disty | mit | 3,532 | 114 | codeparrot/github-code |
5eb16b7941c674b2c4be2ddff6646d12a92680755d3a80eb57f4938f1f0834ff | package uk.ac.imperial.doc.pctmc.postprocessors.numerical;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import org.jfree.data.xy.XYDataset;
import uk.ac.imperial.doc.jexpressions.constants.Constants;
import uk.ac.imperial.doc.jexpressions.expressions.Abstr... | Java | src-pctmc/uk/ac/imperial/doc/pctmc/postprocessors/numerical/NumericalPostprocessorCI.java | anton23/gpanalyser | mit | 3,999 | 126 | codeparrot/github-code |
69b2191381542a89c4f4eefd8178ab8b7bc5168927ff393230597f51227833e8 | import test from 'ava';
import React from 'react';
import { shallow } from 'enzyme';
import Text from '../../../src/components/form-inputs/text';
test('Text | default props', (t) => {
const textWrapper = shallow(<Text />);
t.deepEqual(textWrapper.props(), {
type: 'text',
'data-form-id': '',
className... | JavaScript | test/components_test/form-inputs/text.js | aichbauer/redux-valid-form | mit | 972 | 49 | codeparrot/github-code |
d038007c7205474f38a22610c4981afb958f1e09543a682af515d16c997564da | /**
* mobservable
* (c) 2015 - Michel Weststrate
* https://github.com/mweststrate/mobservable
*/
namespace mobservable {
export namespace _ {
export function throwingViewSetter() {
throw new Error(`[mobservable.view '${this.context.name}'] View functions do not accept new values`);
... | TypeScript | lib/observableview.ts | sandals/mobservable | mit | 4,707 | 113 | codeparrot/github-code |
d61e604419fd46f27c0d12c686a5bced274381077f5be979ac1281c10ddf7556 | /*
* This file is part of Mixin, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software... | Java | src/ap/java/org/spongepowered/tools/obfuscation/struct/Message.java | simon816/Mixin | mit | 3,695 | 115 | codeparrot/github-code |
4b51c22f64880a9135b3db245b3f905781823a39b73674ef740457b91179f309 | <?php
if (! defined('BASEPATH'))
exit('No direct script access allowed');
class User extends MY_CONTROLLER
{
public function logout()
{
$this->logoutCurrentUser();
$this->index();
}
public function newUser()
{
$this->data['active_page'] = "";
$this->data['title... | PHP | anunturi/controllers/user.php | uaandrei/Ann | mit | 3,621 | 114 | codeparrot/github-code |
2f770337783a70eb7626bf6972254115379195c9752b5e4112c469a753e50825 | /* jquery.flipper (c) MrKMG 2012 */
(function( $ ){
var methods = {
init : function( o ) {
return this.each(function(){
var $this = $(this),
data = $this.data('flipper'),
text = $this.text();
// If the plugin hasn't been initialized yet
if (... | JavaScript | jquery.flipper.js | mrkmg/jquery.flipper | mit | 9,843 | 323 | codeparrot/github-code |
3cbc4af5f1fa1dd9771b5b948c81de3bb05882d11c9774eef60961d328336531 | using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Factorio_Mod_Manager
{
public partial class Downlo... | C# | Factorio Mod Manager/DownloadPrompt.cs | Danacus/FactorioModManager | mit | 1,200 | 59 | codeparrot/github-code |
650be1879107b3d4546a696f02209a1b67dfef72e60abfb10c2059838da6a061 | """
Contains all elements of this package. They act as the formal elements of the law.
"""
import json
import sys
def from_json(data):
"""
Reconstructs any `BaseElement` from its own `.as_json()`. Returns the element.
"""
def _decode(data_dict):
values = []
if isinstance(data_dict, str... | Python | pt_law_parser/expressions.py | publicos-pt/pt_law_parser | mit | 15,413 | 587 | codeparrot/github-code |
7f839411df06573a6448f1a72297ca910e21cba241d348d8e34ca2844d52a069 | /*!
* vue-i18n v9.0.0
* (c) 2021 kazuya kawaguchi
* Released under the MIT License.
*/
import { getGlobalThis, format, makeSymbol, isPlainObject, isArray, isObject, isBoolean, isString, isRegExp, isFunction, isNumber, warn, isEmptyObject } from '@intlify/shared';
import { ref, getCurrentInstance, computed, watc... | JavaScript | ajax/libs/vue-i18n/9.0.0/vue-i18n.runtime.esm-bundler.js | cdnjs/cdnjs | mit | 73,173 | 2,117 | codeparrot/github-code |
b696376510b78787fd903e64250e772641a9ec2edf48da1bf45ac7d658a630ff | 'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var __chunk_1 = require('./chunk-14c82365.js');
require('./helpers.js');
var __chunk_2 = require('./chunk-185921d7.js');
var __chunk_4 = require('./chunk-925c5339.js');
var __chunk_5 = require('./chunk-13e039f5.js');
var script = {
name: ... | JavaScript | ajax/libs/buefy/0.9.3/cjs/rate.js | cdnjs/cdnjs | mit | 4,726 | 156 | codeparrot/github-code |
d429ba1fb3d1509440c1786eba88baeffef7bac8c1af0bf0e92b95a8de1e9621 | /*! UIkit 3.6.13 | https://www.getuikit.com | (c) 2014 - 2021 YOOtheme | MIT License */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
typeof define === 'function' && define.amd ? define('uikitlightbox', ['uikit-uti... | JavaScript | ajax/libs/uikit/3.6.13/js/components/lightbox.js | cdnjs/cdnjs | mit | 53,708 | 1,829 | codeparrot/github-code |
3c2c02f7f3eb45dbea18482e2f9890979e3b221df4448ee3eadc67491fe028ef | <!DOCTYPE html>
<html >
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>A brief introduction to econometrics in Stan</title>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<meta name="description" content="This book provides an introduction to ... | HTML | _book/funtimeseries.html | khakieconomics/stanecon_short_course | cc0-1.0 | 54,345 | 628 | codeparrot/github-code |
2831ac99360c610e409b6e15781da95aebd7605637fb29abfc396eb764085893 | import scipy as sp
import numpy as np
import matplotlib.pyplot as plt
import matplotlib
import sys
import matplotlib.lines as lines
import h5py
from matplotlib.font_manager import FontProperties
import matplotlib.ticker as ticker
from scipy.fftpack import fft
axial_label_font = FontProperties()
axial_label_font.se... | Python | motion_one_component/Deconvolution_DRM_Propagation_Northridge/python_plot_parameteric_study.py | BorisJeremic/Real-ESSI-Examples | cc0-1.0 | 5,870 | 196 | codeparrot/github-code |
f923e10ebf528a66a42a106cb95bb39a3649d1090cf01c95fb393ea26af24be6 | <?php
/**
* Cart Page
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 2.1.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
global $woocommerce;
wc_print_notices();
do_action( 'woocommerce_before_cart' );
?>
<form action="<?php echo esc_url( WC()->cart->get_c... | PHP | wp-content/themes/mystile-child/woocommerce/cart/cart.php | ArkansasGIS/ArkansasGIS-WP | cc0-1.0 | 5,589 | 158 | codeparrot/github-code |
e2f5a6fb5a9520583b01223e84c8409a7d7bc6dc2df56066850fd53f95769340 | #!/usr/bin/env gjs
const Gtk = imports.gi.Gtk;
Gtk.init(null);
function on_item_activated()
{
var uri = recentchoosermenu.get_current_uri();
if (uri != null)
{
print("Recent document selected: " + uri);
}
}
var window = new Gtk.Window();
window.set_default_size(200, -1);
window.set_title('R... | JavaScript | recentchoosermenu.js | Programmica/gjs-gtk-examples | cc0-1.0 | 705 | 35 | codeparrot/github-code |
5fda9f46b51c5a4246c35f0b0014c91025f420b9fdbb7baf26aa9b0232a4329f | <!--
Automatically generated HTML file from DocOnce source
(https://github.com/hplgit/doconce/)
-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="DocOnce: https://github.com/hplgit/doconce/" />
<meta name="viewport" content="width=device-width, initi... | HTML | doc/pub/pde/html/._pde-bs025.html | CompPhysics/ComputationalPhysics | cc0-1.0 | 33,427 | 567 | codeparrot/github-code |
48df0ece1eeac877932618d6b7a405e97eb4b29c8568f7b83207803aa50e283b | package me.rerun.akkanotes.messaging.requestresponse
import akka.actor.Actor
import akka.actor.ActorLogging
import me.rerun.akkanotes.messaging.protocols.TeacherProtocol._
import me.rerun.akkanotes.messaging.protocols.StudentProtocol._
import akka.actor.Props
import akka.actor.ActorRef
/*
* The Student Actor class. ... | Scala | src/main/scala/me/rerun/akkanotes/messaging/requestresponse/StudentActor.scala | arunma/AkkaMessagingRequestResponse | cc0-1.0 | 992 | 39 | codeparrot/github-code |
51e5a0d1db5d1d650b943a61ed7969b76942dac759f7e4a2fe6617f33008db2b | import React from "react";
import {graphql} from "gatsby";
import "../styles/main.scss";
import BlogIndexCover from "../assets/images/blog_covers/blog_index_cover.jpeg";
import CompactHeader from "../components/compact-header";
import BlogListing from "../components/blog-post-listing";
import PageFooter from "../comp... | JavaScript | src/pages/blog.js | rajmayank/personal-website | cc0-1.0 | 1,419 | 64 | codeparrot/github-code |
4feca568489c7f52b508bf690b12503a7ae1f1c8fe74ee204370e071e10a7c8c | <!DOCTYPE html>
<html lang="en">
<head>
<title>Testing Notes and Domino applications - NotesSensei's Blog</title>
<script>
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', 'UA-72033-1', 'auto');
ga('send', 'pageview');
</script>
<script async src='https://www.google-analytic... | HTML | blog/2011/05/testing-notes-and-domino-applications.html | Stwissel/stwissel.github.io | cc0-1.0 | 21,975 | 290 | codeparrot/github-code |
34a59bbe509570c618e792dd433c71550b9bc48f666aa34565c7239651a2c16f | import smtplib
from email.mime.text import MIMEText
from django.core.mail import EmailMultiAlternatives
from django.conf import settings
def send_message(message):
"""
* desc 快捷发送邮件
* input 要发送的邮件信息
* output None
"""
mail_handler = SendMail()
mail_handler.send_mail(settings.REPORT_US... | Python | python/vir_manager/utils/mail_utils.py | hanleilei/note | cc0-1.0 | 2,730 | 89 | codeparrot/github-code |
925dc79d465ad0abb746ade0d211a2c0158aeb8200c0ab644350c2dfe20a18ee | % Chapter Template
\stepcounter{section}
\chapter{Many Body Quantum Theory} % Main chapter title
\label{Chapter1} % Change X to a consecutive number; for referencing this chapter elsewhere, use \ref{ChapterX}
\lhead{Chapter 2. \emph{Many Body Quantum Theory}} % Change X to a consecutive number; this is for ... | TeX | doc/MSc/msc_students/former/AudunHansen/Audun/Chapters/Old versions/Chapter1.tex | CompPhysics/ThesisProjects | cc0-1.0 | 26,176 | 463 | codeparrot/github-code |
f35b2924e0c91f906e53e915eb67d5addd53349adc27f3ee4a12ed084d0526c6 | /********************************************************************** <BR>
This file is part of Crack dot Com's free source code release of
Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
information about compiling & licensing issues visit this URL</a>
<PRE> If that doesn't help, ... | C++ | math__random.cpp | pgrawehr/golgotha | cc0-1.0 | 1,383 | 55 | codeparrot/github-code |
9d3ef8403e65a1e12b6892fb683babb4bf815f48bff002dc27d8c7a553b35805 | # frozen_string_literal: true
class FeedbacksController < ApplicationController
before_action :authenticate_user!, except: [:create]
before_action :set_feedback, only: [:show, :edit, :update, :destroy]
before_action :check_if_smokedetector, only: :create
protect_from_forgery except: [:create]
def clear
... | Ruby | app/controllers/feedbacks_controller.rb | angussidney/metasmoke | cc0-1.0 | 3,291 | 104 | codeparrot/github-code |
51f490b051a60eba915b455fc7af9d80e62c7722b7d1a4da544548bc93aa81e5 | package de.homelab.madgaksha.lotsofbs.entityengine.entitysystem;
import com.badlogic.ashley.core.Entity;
import com.badlogic.ashley.core.Family;
import com.badlogic.ashley.systems.IteratingSystem;
import com.badlogic.gdx.math.MathUtils;
import de.homelab.madgaksha.lotsofbs.entityengine.DefaultPriority;
import de.home... | Java | core/src/de/homelab/madgaksha/lotsofbs/entityengine/entitysystem/DamageSystem.java | blutorange/lotsOfBSGdx | cc0-1.0 | 3,092 | 84 | codeparrot/github-code |
eed077fd693548a726b5f30e1e1c287970c572c3a2c3d173631c59e684fb65c2 | import json
from django.core.urlresolvers import reverse
from django.http import HttpResponseNotFound
from django.test import TestCase
from mock import Mock
from utils import use_GET_in
from api.views import msas, tables
class ConversionTest(TestCase):
def test_use_GET_in(self):
fn, request = Mock(), Mo... | Python | mapusaurus/api/tests.py | mehtadev17/mapusaurus | cc0-1.0 | 4,338 | 102 | codeparrot/github-code |
b71b8ba10a6be70d9cd624b45f9a61850490b941167cc0e5d23bbf51ea020b04 | """
The most important object in the Gratipay object model is Participant, and the
second most important one is Ccommunity. There are a few others, but those are
the most important two. Participant, in particular, is at the center of
everything on Gratipay.
"""
from contextlib import contextmanager
from postgres imp... | Python | gratipay/models/__init__.py | mccolgst/www.gittip.com | cc0-1.0 | 8,904 | 280 | codeparrot/github-code |
a17c55807a074429dc15127142525179eaf78a56865c77e15453a106764609c9 | /**
* common.h
* CHRONICLES PHYSICS ENGINE
* by Greg Tourville
* Copyright (c) 2007
* Tuesday Jan 23 -
* All Rights Reserved.
**/
#ifndef _PHYSICS_COMMON_H
#define _PHYSICS_COMMON_H
#ifndef RADS
# define RADS (0.017453f)
#endif
#define DEGS (57.29578f)
#ifndef PI
# define PI (3.141593... | C | src/engine/physics/common.h | gregtour/chronicles-game | cc0-1.0 | 1,633 | 88 | codeparrot/github-code |
a14a17d1241bc6621e9afe0057953ea427cd70d54ae8f5a1261bc170828623ab | package edu.illinois.wala.classLoader
import com.ibm.wala.classLoader.IClass
import com.ibm.wala.classLoader.IField
import com.ibm.wala.ipa.cha.ClassHierarchy
import com.ibm.wala.types.FieldReference
import com.ibm.wala.types.TypeReference
import com.ibm.wala.util.debug.UnimplementedError
import com.ibm.wala.util.stri... | Scala | src/main/scala/edu/illinois/wala/classLoader/ArrayContents.scala | cos/WALAFacade | epl-1.0 | 1,329 | 45 | codeparrot/github-code |
fde52c84733094d12945efbf8d585e2b97440420aacb467984c78549c616102d | /*
* AutoRefactor - Eclipse plugin to automatically refactor Java code bases.
*
* Copyright (C) 2019 Fabrice Tiercelin - initial API and implementation
*
* 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... | Java | plugin/src/main/java/org/autorefactor/jdt/internal/ui/fix/NewClassImportCleanUp.java | rpau/AutoRefactor | epl-1.0 | 9,275 | 281 | codeparrot/github-code |
ebb614b2a728a80a64c33ec4500547a43aaed7512c1e270eee4eccdb0704f426 | /* $Id: edgelist.c,v 1.4 2011/01/25 16:30:48 ellson Exp $ $Revision: 1.4 $ */
/* vim:set shiftwidth=4 ts=8: */
/*************************************************************************
* Copyright (c) 2011 AT&T Intellectual Property
* All rights reserved. This program and the accompanying materials
* are made ava... | C | lib/circogen/edgelist.c | tomgr/graphviz-cmake | epl-1.0 | 2,185 | 100 | codeparrot/github-code |
5df17f99cc8a9dd84f1b7cfee69c0ee13846c6378fef71cdcd89bc2a6888f34c | <?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="copyright" content="(C) Co... | HTML | sdk/GUID-87C94C5B-8BB0-3D5F-A4C3-59A9ABBE520F.html | warlordh/fork_Symbian | epl-1.0 | 61,495 | 2,643 | codeparrot/github-code |
d3e843f92754a2e7f0ecc1ab2b0f5f078dcf24bff8be6e1396071f60c66be5d6 | // $Id$
# ifndef CPPAD_CPPAD_IPOPT_NLP_HPP
# define CPPAD_CPPAD_IPOPT_NLP_HPP
/* --------------------------------------------------------------------------
CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-15 Bradley M. Bell
CppAD is distributed under multiple licenses. This distribution is under
the terms of... | C++ | cppad_ipopt/src/cppad_ipopt_nlp.hpp | wegamekinglc/CppAD | epl-1.0 | 33,872 | 1,084 | codeparrot/github-code |
e8277012c9bd1401374542d900467274620e5f643daa5e52a1b2112d46c8838a | /*******************************************************************************
* Copyright (c) 2014 BSI Business Systems Integration AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution,... | Java | org.eclipsescout.rt.ui.fx/src/org/eclipsescout/rt/ui/fx/basic/chart/factory/AbstractFxScoutChartFactory.java | jmini/org.eclipsescout.rt.ui.fx | epl-1.0 | 6,789 | 192 | codeparrot/github-code |
bda1acab1c54b901794ca7d875c37c70091c960d1edf5627e70eeb1462030d83 | package io.renren.common.aspect;
import com.google.gson.Gson;
import io.renren.common.annotation.SysLog;
import io.renren.common.utils.HttpContextUtils;
import io.renren.common.utils.IPUtils;
import io.renren.modules.sys.entity.SysLogEntity;
import io.renren.modules.sys.entity.SysUserEntity;
import io.renren.modules.s... | Java | renren-crawler/src/main/java/io/renren/common/aspect/SysLogAspect.java | LittleNoobLol/renren-crawler | epl-1.0 | 2,451 | 95 | codeparrot/github-code |
15c1ecb1643ba272b7ec987e488f446e757a647fbcf3ee3592773ae5aaabf00c | /*******************************************************************************
"FreePastry" Peer-to-Peer Application Development Substrate
Copyright 2002-2007, Rice University. Copyright 2006-2007, Max Planck Institute
for Software Systems. All rights reserved.
Redistribution and use in source and binary forms, ... | Java | core/org.cmg.jresp.pastry/pastry-2.1/src/org/mpisws/p2p/transport/util/SocketWrapperSocket.java | michele-loreti/jResp | epl-1.0 | 7,716 | 212 | codeparrot/github-code |
bec86a62ad90fccbe05b83e0da96286c9ceba8552fd3b05f5177b9d710ff7013 | /**
* Copyright (c) 2007 Borland Software Corporation
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contribut... | Java | org.eclipse.gmf.runtime.lite.gwt/src/org/eclipse/gmf/runtime/gwt/ui/actions/DeleteViewAction.java | ghillairet/gmf-tooling-gwt-runtime | epl-1.0 | 1,327 | 49 | codeparrot/github-code |
f20fa1fa645bad795ddcaccff499f79b608ddcd5640d0eaea5d56bf141118d88 | package magic;
import magic.type.Intersection;
import magic.type.JavaType;
import magic.type.Union;
/**
* Abstract base class for Kiss types
*
* @author Mike
*
*/
public abstract class Type {
public static final Type[] EMPTY_TYPE_ARRAY = new Type[0];
/**
* Performs a runtime check if an object is an inst... | Java | src/main/java/magic/Type.java | mikera/magic | epl-1.0 | 3,891 | 185 | codeparrot/github-code |
84fa774f768ea41a9c3c06f3a8e58859970a67bbfafaeb3bce5e99db14e924fc | package br.com.projetoloja.uicontroller;
import br.com.projetoloja.cliente.Cliente;
import br.com.projetoloja.conta.Conta;
import br.com.projetoloja.fachada.Fachada;
import br.com.projetoloja.ui.StartApp;
import javafx.fxml.FXML;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import... | Java | Projeto-loja/src/br/com/projetoloja/uicontroller/ControllerPagamentoParcela.java | JoaoHenrique60/Projeto-loja | epl-1.0 | 2,281 | 71 | codeparrot/github-code |
7797f46d84f450f0e3458080be63bbf33908e6a73c583b581c429a099992ca5c | package mesfavoris.java.editor;
import static mesfavoris.bookmarktype.BookmarkPropertiesProviderUtil.getSelection;
import static mesfavoris.bookmarktype.BookmarkPropertiesProviderUtil.getTextEditor;
import static mesfavoris.java.JavaBookmarkProperties.PROP_LINE_NUMBER_INSIDE_ELEMENT;
import static mesfavoris.textedito... | Java | bundles/mesfavoris.java/src/mesfavoris/java/editor/JavaEditorBookmarkPropertiesProvider.java | cchabanois/mesfavoris | epl-1.0 | 4,045 | 113 | codeparrot/github-code |
3df05f99c41a79f77ba492a4390708dc9c16c9291d4326a9bb78b4bcaaf4904c | package com.forgeessentials.commands.item;
import java.util.ArrayList;
import java.util.List;
import com.forgeessentials.util.events.FEModuleEvent.FEModuleServerPostInitEvent;
import com.forgeessentials.util.events.FEPlayerEvent.NoPlayerInfoEvent;
import com.forgeessentials.util.questioner.Questioner;
import com.forg... | Java | src/main/java/com/forgeessentials/commands/item/CommandKit.java | aschmois/ForgeEssentialsMain | epl-1.0 | 8,111 | 237 | codeparrot/github-code |
7cc7412db53ed4c9a54aafd505e87a75131d87c5530a4a536c3b29d071ea3bc1 | /*
* Copyright 2004-2009 unitarou <boss@unitarou.org>.
* All rights reserved.
*
* This program and the accompanying materials are made available under the terms of
* the Common Public License v1.0 which accompanies this distribution,
* and is available at http://opensource.org/licenses/cpl.php
*
* Contri... | Java | src/org/unitarou/yukinoshita/model/cmd/CommandFactory.java | comutt/yukinoshita2 | epl-1.0 | 2,978 | 82 | codeparrot/github-code |
89ffc37e45991db6359ee0526bfafae058227ec6a34d3ba9b626fea0f19110d8 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
package net.minecraft.src;
import java.util.*;
// Referenced classes of package net.minecraft.src:
// Slot, ItemStack, ICrafting, E... | Java | moCreatures/client/core/sources/net/minecraft/src/Container.java | sehrgut/minecraft-smp-mocreatures | epl-1.0 | 11,548 | 331 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.