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
7868d02b8dad81f067a59f2424126474dffe42e3c85b85b3fd3bf0e3cf4eeed0
namespace BizHawk.Client.EmuHawk { partial class IntvControllerSettings { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if m...
C#
Real-Time Corruptor/BizHawk_RTC/BizHawk.Client.EmuHawk/config/INTV/IntvControllerSettings.Designer.cs
ircluzar/RTC3
mit
5,737
147
codeparrot/github-code
cdc3a200abe816d370b2f61f293d2ceb6f7071757188da57bd173895364eb94b
import * as Promise from "bluebird"; import {expect} from "chai"; import {Entity} from "../../src/server/entity/entity"; import {PgJsonDb} from "../src/pgjson-db"; import {fixtures} from "./fixtures"; import {initDb} from "./init-db"; describe("pg json db", () => { let db: PgJsonDb; beforeEach(() => { ...
TypeScript
pgjson-db/test/db-test.ts
evilfer/riacms
mit
6,423
196
codeparrot/github-code
46f3a041cd49eec1cb7d2e494c7c69b2d31d87d73208b87cd3e458828de6f5aa
#region License /* * BasicRestServer * * Copyright (C) Marcin Badurowicz 2013 * * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files * (the "Software"), to deal in the Software without restriction, * including without ...
C#
BasicRestServer/BasicRestServer.cs
ktos/BasicRestServer
mit
11,131
334
codeparrot/github-code
62c1fcca942d0b489cd888ea16cb6b2166f27a5953a10fbafca5acc9347095e8
#include <iostream> #include <thread> #include "../concurrent_queue.hpp" #define NUM_OF_THREAD 4 #define COUNT 100000 using lime62::concurrent_queue; int main() { auto pop_task = [](concurrent_queue<int> *q, int n) { for (int i = 0; i < n; i++) { try { int v; q...
C++
examples/producers_consumers.cpp
lime62/concurrent_queue
mit
1,402
52
codeparrot/github-code
c9f6cd98151abf6500d439d3d398092c3fa59ea831c84732371e07e1e15ff30b
#!/usr/bin/pwsh try{ Write-Host "Installing kerberos client (krb5-user)" -ForegroundColor DarkGreen $userId = id --user if ($userId -ne "0"){ throw "This script should be executed from the root" } $domainSuffix = &sudo -u $env:USER dns-domain-suffix if ($LastExitCode){exit $LastExitCode...
PowerShell
ubuntu/parts/install-kerberos-user.ps1
dmitriyse/DevOpsSpellbook
mit
1,571
42
codeparrot/github-code
db789cff1d043b434e9163de1c5bf686c0592a050f1a0908c051211810327b3a
<?php print_r($_SERVER).PHP_EOL; $filename = ''; if(isset($_SERVER['PHP_SELF'])) { $filename = $_SERVER['PHP_SELF']; } elseif (isset($_SERVER['SCRIPT_NAME'])) { $filename = $_SERVER['SCRIPT_NAME']; } echo $filename.PHP_EOL; echo $_SERVER['HTTP_HOST'].PHP_EOL; $BASE_URL = ''; // ALWAYS WORK IN INDEX.PHP!! functio...
PHP
src/test/base.php
sselvaggi/facturacion
mit
1,604
55
codeparrot/github-code
03463600d9a95281500ce79599cf04458a24ab3fef21e9078a98d2f033559b2f
using System.Collections.Generic; using System.ComponentModel; using System; namespace JustFood.Models { public partial class Category { public Category() { this.CategoryWiseSolds = new HashSet<CategoryWiseSold>(); this.Inventories = new HashSet<Inventory>(); } pub...
C#
JustFood/Models/Entities/Category.cs
aukgit/StoreManament
mit
1,086
40
codeparrot/github-code
bf4e46033208fb96f13ce9a17ab375c44074c4b7717fe9f383f2c35ef400acf2
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <title>noncopyable</title> <link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> <link rel="home" href="../index.html" title="Chapter&#160;...
HTML
BOOST/boost_1_61_0/libs/core/doc/html/core/noncopyable.html
calvinfarias/IC2015-2
mit
7,650
113
codeparrot/github-code
746cf8258025e5a64a3d45f61ed55910fdda8333d75971d99b26e2728f0e9778
function ajaxChimpCallback(a) { if ("success" === a.result) { $(".beta-request-result").show(); $(".beta-request-form").hide(); $(".beta-request-title").hide(); $.featherlight.current().close(); } else { a.msg.indexOf("already subscribed") >= 0 ? ($(".beta-reque...
JavaScript
app/js/application.js
Jellyfishboy/trado-promo
mit
7,261
217
codeparrot/github-code
f9c7e1369cd6e6d3e7453d391ecb98bbaf07cbdf2895d375ea310003f1085351
export default class Definition { get module() { return this._module; } set module(value) { this._module = value; } get classArguments() { return this._arguments || []; } set classArguments(value) { this._arguments = value; } get tags() { return this._tags || []; } set tags(value) { this._t...
JavaScript
src/Definition.js
aequasi/Crate
mit
1,215
59
codeparrot/github-code
af583b9fde96a79c82ecd5bf6524d14c08b8a72ec17cec204a8db76bef78c161
/* eslint-disable no-console*/ import low from 'lowdb'; import fse from 'fs-extra'; import uuid from 'uuid'; import slug from 'slug'; import constants from './constants'; import { crypt } from '../utils'; const user = { id: uuid(), name: constants.USER_NAME, password: crypt.encrypt(constants.USER_PASSWORD), ...
JavaScript
src/server/config/database.js
ShamatienkoYaroslav/colibri
mit
639
34
codeparrot/github-code
2164aa5fa30c4b59ad956d559ea5091612fb72689fda62e02bd2789c762a7c6f
/* ======================================== ID: mathema6 TASK: LANG: C++14 * File Name : B.cpp * Creation Date : 19-04-2021 * Last Modified : Mon 19 Apr 2021 03:53:09 AM CEST * Created By : Karel Ha <mathemage@gmail.com> * URL : https://codingcompetitions.withgoogle.com/kickstart/round/000000...
C++
gkickstart/2021/round-B/B/B.v4.cpp
mathemage/CompetitiveProgramming
mit
5,741
253
codeparrot/github-code
8a521ade88d064ed6d2a127ebc13d9554f978bbff7c011b8f9195f4989f66267
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WeebIRCWebEdition { class WebPage { public static string GetHtml(string ip) { return @" <html> <head> <title> WeebIRC </title> </head> <!--Import ...
C#
C# WeebIRC Backend (local)/Linux/WebPage.cs
RareAMV/WeebIRC
mit
55,793
1,208
codeparrot/github-code
f7daea234e01a12e89bc3065dc974158196839bdbced4a4c4107b240bf907131
package org.thoughts.on.java; import javax.persistence.EntityManager; import org.apache.log4j.Logger; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework....
Java
SpringBootBootstrapping/src/test/java/org/thoughts/on/java/SpringBootstrappingTest.java
thjanssen/HibernateTips
mit
952
36
codeparrot/github-code
a035948046ae73e86d7ed28961d2ed11742f4feea3e3309e3731faa51d97e1df
package com.au.weatherdata.driver; import java.io.IOException; import java.util.HashMap; import java.util.Map; import org.apache.log4j.Logger; import com.au.weatherdata.constants.WeatherDataUnit; import com.au.weatherdata.model.WeatherData; import com.au.weatherdata.model.WeatherDataAdjacentDetails; import com.au.we...
Java
weatherdata/src/main/java/com/au/weatherdata/driver/WeatherDataModel.java
moasifk/weatherdata
mit
5,430
171
codeparrot/github-code
984e1ae6700f54a67273ae2291e851b13ed330b3dfc9b79ea03ea8235e039f55
#!/usr/bin/env ruby require 'optparse' require 'google/api_client' require 'google/api_client/client_secrets' require 'google/api_client/auth/file_storage' require 'google/api_client/auth/installed_app' require 'active_support/all' require 'spreadsheet' # set your application name APPLICATION_NAME = 'google-drive-...
Ruby
google-drive-permission-search.rb
morimorihoge/google-drive-permission-search
mit
5,916
245
codeparrot/github-code
0c4dcf0f6a3b19110e936d7ee9ce26190ed827c1b8b7aacd3d8626d0ed5876bf
<?php function pointelle_global_posts_processor( $posts, $pointelle_slider_curr,$out_echo,$set ){ global $pointelle_slider; $pointelle_slider_css = pointelle_get_inline_css($set); $html = ''; $pointelle_sldr_j = 0; $timthumb='1'; if($pointelle_slider_curr['timthumb']=='1'){ $timthumb='0'; } foreach($post...
PHP
wp-content/plugins/pointelle-slider/slider_versions/pointelle_1.php
mandino/emergingprairie.misfit.co
mit
46,346
871
codeparrot/github-code
12e2b2581e7b42bdaa2430e076b23ce0a813aa2c31f5f19b0d825f5084b7c855
// Lecture 11 function b() { console.log('Called b!'); } b(); console.log(a); // Will return undefined as only set in Creation Phase var a = 'Hello World!'; console.log(a); // Lecture 12 Conceptual Aside /* -Single Threaded: One command at a time -Caveat, Javascript is not the only thing happening within a b...
JavaScript
practice.js
UmarFBajwa/JS
mit
16,114
761
codeparrot/github-code
5d17dd1361561539069a3843d68aa2675459e2177a852cde5ebeaa259a4a924c
namespace SmashForge { partial class ByamlEditor { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <p...
C#
Smash Forge/GUI/Editors/BYAML Editor/BYAMLEditor.Designer.cs
jam1garner/Smash-Forge
mit
7,302
153
codeparrot/github-code
8dfe3e72f41ceb027bb9aba581b7b565d6bd3dad04200d6e1eefd886a2848804
<?php namespace Oro\Bundle\WorkflowBundle\Model; use Doctrine\Common\Collections\Collection; use Symfony\Component\DependencyInjection\ContainerInterface; use Oro\Bundle\WorkflowBundle\Exception\UnknownStepException; use Oro\Bundle\WorkflowBundle\Exception\AssemblerException; use Oro\Bundle\WorkflowBundle\Entity\Wor...
PHP
src/Oro/Bundle/WorkflowBundle/Model/WorkflowAssembler.php
xabbuh/platform
mit
7,102
221
codeparrot/github-code
633a04c65684572ff33dd0065a2315988e761ed946d0fa22da0d9c198b6fc3bc
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; using System.Data.SqlClient; using System.Configuration; using IntranetDL; using Intranet.Utilities; using IntranetBL; public partial class Financialservices : ...
C#
Financialservices.aspx.cs
writebabu/NGSecurePay
mit
2,123
78
codeparrot/github-code
11954dd7ab1ed049f956976c7fcab4b16de6116d3f30fab05f5bd2c168f4b662
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>exceptions: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min....
HTML
clean/Linux-x86_64-4.06.1-2.0.5/released/8.9.0/exceptions/8.7.0.html
coq-bench/coq-bench.github.io
mit
6,798
164
codeparrot/github-code
f21692aa33d2dcac9ab1d830091de716e58276fffa5d227e9e971c46ac42d4f6
package com.terribleengineer.ngservice.nginxconfiguration; import java.util.Map; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; public class NginxConfigurationBuilder { protected static final Logger log = LogManager.getLogger(NginxConfigurationBuilder.class); public static St...
Java
src/main/java/com/terribleengineer/ngservice/nginxconfiguration/NginxConfigurationBuilder.java
TerribleEngineer/NginxController
mit
1,941
63
codeparrot/github-code
9dafdeead7540028147bbf75f4136415e727bbdfc978bd7ac61ef7bbb4b5bb60
// Type: Highsoft.Web.Mvc.Stocks.AreasplinerangeSeriesZones using System.Collections; using Newtonsoft.Json; namespace Highsoft.Web.Mvc.Stocks { public class AreasplinerangeSeriesZones : BaseObject { public string ClassName { get; set; } private string ClassName_DefaultValue { get; set; } ...
C#
Highsoft.Web.Mvc/src/Highsoft.Web.Mvc/Stocks/AreasplinerangeSeriesZones.cs
pmrozek/highcharts
mit
2,609
76
codeparrot/github-code
c78625ad3663216e414360cdd76950d1fae37deebcceee47874c551dbaa5c8b3
package com.github.assisstion.Communicator.gui; import java.util.Calendar; import java.util.logging.Handler; import java.util.logging.LogRecord; public class LogHandler extends Handler{ protected LoggerPane gui; public LogHandler(LoggerPane gui){ this.gui = gui; } @Override public void close() throws Secu...
Java
src/com/github/assisstion/Communicator/gui/LogHandler.java
assisstion/Communicator
mit
799
38
codeparrot/github-code
8cb92fc1b9e08ff8a3c25bc449b7a0aca41fa7e1ae4fc6a413ded0e060c92cd2
<?php App::uses('CakeEmail', 'Network/Email'); /** * Email Lib * * @property Email $Email */ class Email { /** * sendEmail * Función en común para enviar los emails */ private function sendEmail( $function, $subject = '', $body = '', $mails = array(), $theme = 'Cakestrap', $template = 'default', $format = '...
PHP
app/Lib/Email/Email.php
gcba/pantallas
mit
5,408
223
codeparrot/github-code
0585b26e4ef127706b0951c8a72a7d22820938439b8e3b34a832685713476e16
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>elpi: Not compatible</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel=...
HTML
clean/Linux-x86_64-4.05.0-2.0.6/released/8.6.1/elpi/1.0.0.html
coq-bench/coq-bench.github.io
mit
7,487
175
codeparrot/github-code
bdf44b176e58d50f5c9e12c1132320b0b059e1213a6b4143f21b02710b32ad07
using System; using System.Threading; namespace SalesBonuses { public class SalesPerson { public string Name { get; private set; } public SalesPerson(string id) { Name = id; } public void Work(StockController stockController, TimeSpan workDay) { ...
C#
SalesBonuses/SalesPerson.cs
kenwilcox/ConcurrentCollections
mit
1,719
51
codeparrot/github-code
783af903f0553ccbc1aee9a76266cccb96fb8863bc03be41d8f43cc6b6884a2b
var should = require('chai').should(); var pathFn = require('path'); var fs = require('hexo-fs'); var Promise = require('bluebird'); var crypto = require('crypto'); var util = require('hexo-util'); var Pattern = util.Pattern; var testUtil = require('../../util'); function shasum(content){ var hash = crypto.createHas...
JavaScript
test/scripts/box/box.js
zhi1ong/hexo
mit
10,219
425
codeparrot/github-code
dffef72cc47abc1d0c9e58f5caefb153f655628c13ebfc5285db6e523d0dcb04
<?php use SoftnCMS\classes\constants\Constants; use SoftnCMS\models\template\CommentTemplate; use SoftnCMS\controllers\ViewController; use SoftnCMS\models\managers\CommentsManager; $postTemplate = ViewController::getViewData('post'); $siteUrl = $postTemplate->getSiteUrl(); $urlUser = $siteUrl . ...
PHP
app/themes/softncmsv1/post/comments.php
nmarulo/softn-cms
mit
4,239
91
codeparrot/github-code
ceb2c6d6a0d5fd9cad31b0e972c5b9e9bc57dc2dbdfb7ab7f179eca751273207
using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace FallenSoD.Projectiles { public class SparklingBall : ModProjectile { public override void SetDefaults() { projectile.width = 16; projectile.height = 16; projectile.friendly = true; proj...
C#
Projectiles/SparklingBall.cs
Vodest/Fallen-SoD-TMod-
mit
1,787
68
codeparrot/github-code
650ce638a584f212fc902882a767162a22c92c31426cc8a9e802a54a0359d20d
import sys #from OpenGL.GLUT import * #from OpenGL.GLU import * #from OpenGL.GL import * class abstract: params = {} windowId = None terminated = False def initParams(self): return self def __init__(self): self.initParams().init() return def init(self...
Python
base/modules/rat/application/abstract.py
nv8h/PyRattus
mit
1,309
78
codeparrot/github-code
4a668dd45494e147b078e8f8331fd43583bb50a8ed64fce13a4281db358e70be
module.exports = function(app){ var validacao = require('../validacoes/usuarios'); var Usuario = app.models.usuarios; var UsuarioController = { index: function(req,res){ Usuario.find(function(err,dados){ if(err){ req.flash('erro', 'Erro ao buscar usuários: '+err); res.redirect('/usuarios'); ...
JavaScript
controllers/usuarios.js
felipemarques8/csdesafio-node
mit
2,790
108
codeparrot/github-code
7162f033c7fe77a22a35a642efb4437b51e7603652d99debd6a96f42361ffa6b
console.log("J U I loaded"); var timer; var timer2; var timer3; var counter; var cell; var curCount = 0; var gameLost = false; var multiUp = 0; var total = 10; var score = 0; var points = 100; var board = [ 0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0, ...
JavaScript
js/main.js
JYC422/JUI
mit
6,021
236
codeparrot/github-code
8c882f08b8c60ac26c4e7aad96236cd436b16bf1aa8382e9c2adcdf36c6b2699
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Smobiler.Core; using Smobiler.Core.Controls; using System.ComponentModel; using System.Drawing.Design; namespace SmoONE.UI.Layout { [System.ComponentModel.ToolboxItem(true)] partial class MenuTitle : Smobiler.Core.Contr...
C#
Source/SmoONE.UI/Layout/MenuTitle.cs
comsmobiler/SmoONE
mit
1,436
51
codeparrot/github-code
11ea7d060a4d3126794443d8e48b4b9781a1b1cb72e4abc2dec5dbfc4985d48f
<!DOCTYPE html> <html> <head> <meta charset="utf-8"/> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <title>Javascript - Dialogs | Aero Admin</title> <meta name="author" content=""> <!-- ##### --> <!-- Fonts --> <!-- ##### --...
HTML
aero-admin-v1.0.4/js_dialogs.html
si-quimera/avante
mit
27,033
474
codeparrot/github-code
73aff0d7dfbfae88c1590677ed6a574d4d2174bdb1f5d65cbd91ba88f2b44380
<?php declare(strict_types=1); namespace RabbitEvents\Publisher\Support; use Illuminate\Container\Container; use RabbitEvents\Publisher\Publisher; use RabbitEvents\Publisher\ShouldPublish; trait PublishableEventTesting { public static function fake(): void { Container::getInstance()->instance(Publis...
PHP
src/RabbitEvents/Publisher/Support/PublishableEventTesting.php
nuwber/rabbitevents
mit
1,110
37
codeparrot/github-code
604433b95e06b775ada1ab9ea99e5b7e3ce9eb3f2449798b288c2bd2c1dce39b
package com.tyrlib2.graphics.materials; import java.nio.FloatBuffer; import com.tyrlib2.graphics.renderer.Material; import com.tyrlib2.graphics.renderer.Mesh; import com.tyrlib2.graphics.renderer.OpenGLRenderer; import com.tyrlib2.graphics.renderer.Program; import com.tyrlib2.graphics.renderer.ProgramManager;...
Java
legacy/TyrLib2/src/com/tyrlib2/graphics/materials/DefaultMaterial3.java
TyrfingX/TyrLib
mit
15,387
499
codeparrot/github-code
cda0adee533cd0935f6e1894bc806c45401f826fa927c84fb5369dab230e9c8c
class Customer::AccountForm include ActiveModel::Model attr_accessor :customer, :inputs_home_address, :inputs_work_address delegate :persisted?, :valid?, :save, to: :customer def initialize(customer) @customer = customer (2 - @customer.personal_phones.size).times do @customer.personal_phones.bui...
Ruby
app/forms/customer/account_form.rb
tomowill/baukis-tutorial
mit
3,139
98
codeparrot/github-code
bb45b8ce5a89f5de706c979375fbcb2795085c2aab04e850f8493c609aebcf9d
/* 用 action 来描述“发生了什么”,和使用 reducers 来根据 action 更新 state 的用法。 Store 就是把它们联系到一起的对象。Store 有以下职责: 维持应用的 state; 提供 getState() 方法获取 state; 提供 dispatch(action) 方法更新 state; 通过 subscribe(listener) 注册监听器; 通过 subscribe(listener) 返回的函数注销监听器。 再次强调一下 Redux 应用只有一个单一的 store。当需要拆分数据处理逻辑时,你应该使用 reducer 组合 而不是创建多个 store */ imp...
JavaScript
src/stores/configureStore.js
Kennytian/learning-redux
mit
4,346
132
codeparrot/github-code
df0fd724f97acdd68d73a13a055025dbe63d0887cd4510e20b1e30c43fb484e4
package com.swfarm.biz.aliexpress.bo; import java.io.Serializable; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; impor...
Java
pms/src/main/java/com/swfarm/biz/aliexpress/bo/AliExpressOrderMessageWorkingFolder.java
zhangqiang110/my4j
mit
5,405
214
codeparrot/github-code
3d7902400725c61c7cc71c196bd3db3ef0385b876988c0216a95f89fd30e5a03
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package cz.cvut.sedekpav.cordova.bleplugin; import android.bluetooth.BluetoothDevice; import java.util.List; import org.apache.cordova...
Java
src/cz/cvut/sedekpav/cordova/bleplugin/BLEPlugin.java
pavel-sedek/Cordova-BLE-Plugin
mit
1,952
60
codeparrot/github-code
0555e6c4b53c45f045b203e7cb853f8d5dd875af4096d4728762585bea9fedc8
class ScenariosController < ApplicationController helper ApplicationHelper before_action :set_scenario, only: [:show, :edit, :update, :destroy] def prevent_non_admin unless current_user.admin? redirect_to scenarios_path end end # GET /scenarios # GET /scenarios.json def index @scenario...
Ruby
app/controllers/scenarios_controller.rb
Acerak2/registration
mit
2,366
90
codeparrot/github-code
ec0dd0696fc0ae9596bc66559c0390bc5ce580a8ef1f58b46abf32e5f4e3374b
window.onload = function () { // Start a new marked instance and renderer var marked = window.marked; var renderer = new marked.Renderer(); var counter = 0; var specs = []; var opts = {"mode": "vega-lite", "renderer": "svg" }; // Render the ```vis as a div and save the json spec renderer.code = function (cod...
JavaScript
js/visdown-marked.js
amitkaps/visdown
mit
1,216
50
codeparrot/github-code
708678cb6cabcd138c58454d97f5380a514ba901d5ee6c3d38ae833906b931cd
#!/usr/bin/env python # -*- coding: utf-8 -*- from GestureAgentsTUIO.Tuio import TuioAgentGenerator import GestureAgentsPygame.Screen as Screen from pygame.locals import * class MouseAsTuioAgentGenerator(object): def __init__(self): self.pressed = False self.myagent = None self.sid = -1...
Python
GestureAgentsPygame/Mouse.py
chaosct/GestureAgents
mit
1,272
44
codeparrot/github-code
a1992ac02b242f54a1b1fd64e961daa51c37633d246eab09f37a23e61f5b4d75
<!-- Safe sample input : get the field userData from the variable $_GET via an object sanitize : use of settype_int File : use of untrusted data in a double quoted property value (CSS) --> <!--Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee, to use, copy, mod...
PHP
XSS/CWE_79/safe/CWE_79__object-classicGet__CAST-func_settype_int__Use_untrusted_data_propertyValue_CSS-double_Quoted_Property_Value.php
stivalet/PHP-Vulnerability-test-suite
mit
1,562
74
codeparrot/github-code
afec46bbc214580027afcd3581d314c546185439de1f20110e2111a1985cfa1a
import React from 'react'; import { Gateway } from 'react-gateway'; import ReactModal2 from './ReactModal2'; import Icon from '../Icon'; import './Modal.scss'; /** * This component is only created to facilitate the process of using react-modal2 with react gateway * * You can import this Modal and use onClose props ...
JavaScript
src/widgets/modal/Modal.js
Sekhmet/busy
mit
2,306
98
codeparrot/github-code
dcd7a1cc17ab287bb18a9e6285a0788654d9b0c6331a4a605ff72c254d80bcf1
function solve(args) { var text = args[0].split('\n'); var textA = text[0]; var textB = text[1]; var state = 0; for (var i = 0; i < Math.min(textA.length, textB.length); i += 1) { if (textA[i] > textB[i]) { state = 1; break; } if (textA[i] < textB[i]) ...
JavaScript
Homeworks/JS Fundamentals/07. Arrays/02. Lexicographically comparison/lexicographically-comparison.js
jorosoft/Telerik-Academy
mit
797
35
codeparrot/github-code
aafa51a31b93fda47803a3e7ac01573a1148fcd47672272b8ad218f1bef2cc78
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="https://www.facebook.com/2008/fbml" itemscope itemtype="http://schema.org/Blog" lang="pt"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta name="viewpor...
HTML
usando-o-scrapy-e-o-rethinkdb-para-capturar-e-armazenar-dados-imobiliarios-parte-iii/index.html
gileno/gileno.github.io
mit
27,048
399
codeparrot/github-code
6f2b183bcff691996fd3b0f614382115b88da6d6ea04fe2cbe5928f4ea73aab3
/* animation.js */ Janice._Animation = {}; Janice._Animation.staticm = {}; Janice._Animation.method = {}; Janice._Animation.staticm.decomposeVersion = function(versionNumber) { var major = Math.floor(versionNumber) var minor = parseInt(('' + (versionNumber - major)).substr(2)); return { major: m...
JavaScript
src/common/animation.js
tbknl/Janice
mit
2,121
90
codeparrot/github-code
1074bdeb36c0b97982f3281cb4e8c807c2a7590ba5ddcfb6097e29501672d5f5
/* SPDX-License-Identifier: MIT */ function GHDataReport(apiUrl) { apiUrl = apiUrl || '/'; var owner = this.getParameterByName('owner'); var repo = this.getParameterByName('repo'); this.api = new GHDataAPIClient(apiUrl, owner, repo); this.buildReport(); } GHDataReport.prototype.getParameterByName = functio...
JavaScript
static/scripts/health-report.js
srobins259/InternetSystemsDevelopment
mit
3,149
110
codeparrot/github-code
33423793c0446e099632443fef7d8485928cafd89717b188fb0b29466e3444b8
#!/usr/bin/python3 # Filename: k_means_cluster.py """ A Machine learning algorithm for K mean clustering. Date: 24th March, 2015 pm """ __author__ = "Anthony Wanjohi" __version__ = "1.0.0" import random, fractions def euclidean_distance(point, centroid): '''Returns the euclidean distance between two points''' asser...
Python
k-means-clustering/k_means_cluster.py
TonyHinjos/Machine-Learning-Algorithms-Toolkit
mit
4,794
182
codeparrot/github-code
638a8559ad1dd8851a189bb5856a848ba7f2f3ea780c52410ef1e84cefd9261c
import subprocess import os #from tailorscad.config import ScadConfig BASE_DIR = '/usr/bin/' DEFAULT = BASE_DIR + 'openscad' def build_with_openscad(state): args = build_args_from_state(state) out_call = '' for arg in args: out_call += ' ' + arg print 'args:', out_call try: ...
Python
tailorscad/builder/openscad.py
savorywatt/tailorSCAD
mit
1,142
53
codeparrot/github-code
3c91a99c91c1b07e0a667f5899e8e868bb6fabc9b12d48342902ae05a706f962
<?php /** * Class for parsing Excel formulas * * License Information: * * Spreadsheet_Excel_Writer: A library for generating Excel Spreadsheets * Copyright (c) 2002-2003 Xavier Noguer xnoguer@rezebra.com * * This library is free software; you can redistribute it and/or * modify it under the terms of the ...
PHP
src/Spreadsheet/Excel/Writer/Parser.php
MontealegreLuis/edeco
mit
66,792
1,693
codeparrot/github-code
983fb26615824a7775d252c5eddedd06a4207624c060c280d89e4bf334903618
#include <seqan/GCluster.h> #include <seqan/GSearch.h> #include <seqan/GStructs/PerformanceSample.h> #include <seqan/GStructs/MemorySample.h> #include <seqan/computeSensSpec.h> using namespace seqan; using namespace std; int main(int argc, char const ** argv) { //const char * inDataBasePath = "/home/development/se...
C++
raw/pmsb13/pmsb13-data-20130530/sources/qhuulr654q26tohr/2013-05-17T09-02-23.539+0200/sandbox/PMSB_group6/apps/benchmarkingClusterSearch/benchmarkingClusterSearch.cpp
bkahlert/seqan-research
mit
4,368
84
codeparrot/github-code
e16e124a1d5b2e18ff0af4b7dbf346fffbbb41adfdc6f7601275209df100e591
<?php namespace Functionality\NavbarBundle\Form\Type\NavbarLinkType; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface; class NavbarLinkNavbarLinkRefType extends AbstractType { public function buildForm(FormBuilde...
PHP
src/Functionality/NavbarBundle/Form/Type/NavbarLinkType/NavbarLinkNavbarLinkRefType.php
Namzar/BasicBlog
mit
1,027
39
codeparrot/github-code
e2d98337f84387ed9fa467e6674df29c6ddfbb2fd7b5847caa99ccb5685dfb14
namespace la.mat3 { /// NOTE: /// Row-major order /// [m11, m12, m21, m22, x0, y0] export function create(src?: number[]|Float32Array): Float32Array { var dest = new Float32Array(6); if (src) { dest[0] = src[0]; dest[1] = src[1]; dest[2] = src...
TypeScript
src/mat3.ts
wsick/la
mit
6,602
235
codeparrot/github-code
ff4ac946a3596e24f6d8b5a9b8b917f8c0abef6d720371dd6fe3e5f4214925b7
package net.serenitybdd.integration.jenkins.logging; import java.io.IOException; import java.io.OutputStream; public class LoggerOutputStream extends OutputStream { private Witness witness; private String buffer; public LoggerOutputStream(Witness witness) { this.witness = witness; buffer ...
Java
build-monitor-acceptance/src/main/java/net/serenitybdd/integration/jenkins/logging/LoggerOutputStream.java
DominikGebhart/jenkins-build-monitor-plugin
mit
740
32
codeparrot/github-code
b2437a6bc1a10c5ecff40eb648d9c3fb5fb677547a6476901584353ddb7d3d9f
using System; using System.Collections.ObjectModel; using System.Linq; using System.Windows.Input; using Afnor.Silverlight.Toolkit.ViewServices; using EspaceClient.BackOffice.Silverlight.Business.Depots; using EspaceClient.BackOffice.Silverlight.Business.Interfaces; using EspaceClient.BackOffice.Silverlight.Business.Lo...
C#
EC/espace-client-dot-net/EspaceClient.BackOffice.Silverlight.ViewModels/ModelBuilders/GestionContenu/Contenu/Implementation/ModelBuilderDetails.cs
apo-j/Projects_Working
mit
10,058
207
codeparrot/github-code
fe0916fd22e79d75e36b9e60ddd29e0f1541b600053d25bb28aaba72242faa50
using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Drawing; using System.Text; using System.Windows.Forms; namespace CalcDatabaseSize { /// <summary> /// Contains the main code for estimator. /// </summary> public partial class MainForm : Form ...
C#
CalcDatabaseSize/MainWindow.cs
Havodion/PredictDatabaseSize
mit
10,996
292
codeparrot/github-code
2707d6676f93022972b53a07db3d5b5786ffcd0c36b2aed442b357ba79869714
require "hooks/execution_hooks/version" # Provides before_action method which allows a method and related Hook to be configured for # any class/module which extends it. Provided Hook will be invoked before the provided # class/module method. Implementation of Hook needs to be provided by the extending # class/module. ...
Ruby
lib/hooks/execution_hooks.rb
Salone-Learning/hooks-execution_hooks
mit
1,357
45
codeparrot/github-code
aa5a001b574c2642010a543b6e8b744cb91134d9640e5b7aab993baaf4f0e19d
package org.rogach.scallop import org.scalatest.FunSuite import org.scalatest.matchers.ShouldMatchers import org.rogach.scallop._ import org.rogach.scallop.exceptions._ class OptionDependenciesTest extends FunSuite with ShouldMatchers with UsefulMatchers { throwError.value = true test("dependsOnAny - success, op...
Scala
src/test/scala/OptionDependenciesTest.scala
billonahill/scallop
mit
7,161
209
codeparrot/github-code
f36c04f61328eeb6a6c684b600518e14aeeffba3d18bb2fdab8ec619829447a3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using Example.FontAwesome.WIN81.Annotations; using FontAwesome.WIN81; namespace Example.FontAwesome.WIN81.ViewModel { public class MainViewModel : INotify...
C#
example-win81/Example.FontAwesome.WIN81/ViewModel/MainViewModel.cs
charri/Font-Awesome-WPF
mit
3,778
117
codeparrot/github-code
b66f1cbd4a59e875e732ded7e22fd9742bccb19c5b2fc54fd95f9105c4cdcf2a
<!DOCTYPE html> <html xmlns:msxsl="urn:schemas-microsoft-com:xslt"> <head> <meta content="en-us" http-equiv="Content-Language" /> <meta content="text/html; charset=utf-16" http-equiv="Content-Type" /> <title _locid="PortabilityAnalysis0">.NET Portability Report</title> <style> ...
HTML
Reports/vs/vssdk.dte.9.9.0.4/envdte90-net20.html
kuhlenh/port-to-core
mit
15,422
369
codeparrot/github-code
161f91f556676043c8c0fd157471e27332978a9261e853ff79cd72e7514d05f7
using ArragroCMS.BusinessLayer.Data.Entities; using ArragroCMS.BusinessLayer.Domains; using ArragroCMS.BusinessLayer.Helpers; using ArragroCMS.BusinessLayer.Interfaces.CacheDomains; using ArragroCMS.Core.DataTransformationObjects; using ArragroCMS.Core.Web.DataTransformationObjects; using AutoMapper; using Microsoft.A...
C#
src/ArragroCMS.Web.Management/ApiControllers/AssetController.cs
Arragro/ArragroCMS
mit
2,782
82
codeparrot/github-code
be986eb678c6a740fa3c4ca3bd09cf7abd184ed0e9b179b64e2f62938d784061
package com.lag.altanizio.conceitosdetopografia; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageButton; import android.widget.RelativeLayout; import android.widget.ScrollView; imp...
Java
scripts/TextTabNivelIntro.java
altanizio/Conceitos-de-Topografia
mit
2,512
81
codeparrot/github-code
53470747af01897d9e66c3fd9193ed3051a3b915fcd10dc001810cfaab85c5ab
var gm = require('gm'); var request = require('request'); var cors = require('cors'); var upload = require('./s3-upload'); function crop(req, res) { try { var q = req.query; var image = gm(request(q.image), 'tempImage'); image.crop(q.width, q.height, q.left, q.top).toBuffer(function(err, buffer) { ...
JavaScript
routes/crop.js
ndnhat/envision
mit
688
32
codeparrot/github-code
87dfac585b9eefdfb95b1c0f00453fba4430345e4e6f0061b3724e9b6c24abe5
<?php class FirstMigrationSettings extends CakeMigration { /** * Migration description * * @var string * @access public */ public $description = ''; /** * Actions to be performed * * @var array $migration * @access public */ public $migration = array( 'up' => array( 'create_table' => array( 'lan...
PHP
Settings/Config/Migration/1346931401_firstmigrationsettings.php
rakeshtembhurne/croogo
mit
3,367
87
codeparrot/github-code
cfed9b4f66a884d0bd66a98aa19a7066241eb73b8e5ea6e853cf1b5da9cebf98
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Ordenador { public static class Serializador { public static void Serializar<T>(string localProjeto, T objeto, bool apendice = false) { usi...
C#
APSCC2-3P34/Serializador.cs
hegemn0/ProjetoAPS
mit
980
31
codeparrot/github-code
928370cae868651ddb3b4081787ce900f0da40f1ea5bb6b44c86826e7da6b4ab
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>plouffe: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css...
HTML
clean/Linux-x86_64-4.06.1-2.0.5/released/8.7.1+2/plouffe/1.2.1.html
coq-bench/coq-bench.github.io
mit
6,519
167
codeparrot/github-code
85f1f943631464a3d18a1f3c78747fb19185bd8a893db74ed5959af3fec2c19c
<?php namespace Acme\UserBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Acme\UserBundle\Entity\NewsEntry; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Security\Core\User\UserInterface; use Symfony\Component\Dependen...
PHP
src/Acme/UserBundle/Controller/AdminNewsController.php
ihasb33r/ef
mit
2,622
72
codeparrot/github-code
3d45732689d79bfc61325492817945d5f1f14ad99124cfb5c085ed110630c2d3
/* * client_mdp.cpp * * Created on: Aug 31, 2016 * Author: sni */ #include <iostream> #include <cstring> #include <signal.h> #include <serval_interface.h> #define PORT 8042 using namespace ice; int main(int argc, char *argv[]) { int sock; struct sigaction act; /* read sid from c...
C++
serval_wrapper_example/src/client_mdp.cpp
carpe-noctem-cassel/ice
mit
2,058
82
codeparrot/github-code
6cac1759e78800b84541095c9236f988b9c1cb45ac40e6ea3e3d1f12f217f2df
// Manipulating JavaScript Objects // I worked on this challenge: [by myself, with: ] // There is a section below where you will write your code. // DO NOT ALTER THIS OBJECT BY ADDING ANYTHING WITHIN THE CURLY BRACES! var terah = { name: "Terah", age: 32, height: 66, weight: 130, hairColor: "brown", eyeC...
JavaScript
week-7/manipulating_objects.js
toddseller/phase-0
mit
4,261
165
codeparrot/github-code
541831210e7e2d1dbfa3a17194b5a59a0639f3202e0bf7968feae66079a07abb
function Logger () { } Logger.getBeats = function (attacker, defender) { return attacker.role.title + attacker.name + (attacker.weapon.name? '用' + attacker.weapon.name: '') + '攻击了' + defender.role.title + defender.name + ', '; }; Logger.getDetails = function (attacker, defender, damage, extra) { var mainBody = de...
JavaScript
src/Logger.js
trotyl/Weapon-Evolution
mit
1,809
60
codeparrot/github-code
05334a99349c9623c9a3088361aca442203c6e7c94c8cdb0512c073d9878cbe3
package caaa import ( "encoding/xml" "github.com/fgrid/iso20022" ) type Document00900101 struct { XMLName xml.Name `xml:"urn:iso:std:iso:20022:tech:xsd:caaa.009.001.01 Document"` Message *AcceptorReconciliationRequestV01 `xml:"AccptrRcncltnReq"` } func (d *Document00900101) AddMessage()...
GO
caaa/AcceptorReconciliationRequestV01.go
fgrid/iso20022
mit
1,895
50
codeparrot/github-code
d01258bf038d24a059f76eae1c940e429180b2f36731894db739bef187d86bd4
using System; using System.Collections.Generic; namespace DarkMultiPlayer { public class VesselCtrlUpdate { private double planetTimeValid; private FlightCtrlState newFcs; private Vessel vessel; private Dictionary<Guid, VesselCtrlUpdate> ctrlUpdates; public VesselCtrlUp...
C#
Client/VesselCtrlUpdate.cs
godarklight/DarkMultiPlayer
mit
1,042
35
codeparrot/github-code
873632b9ecb6af39711fad200067798fdcd3cb3e8f51f8257adbf9040e990827
package org.diorite.world; import java.io.File; import java.util.ArrayList; import java.util.Collection; import org.diorite.BlockLocation; import org.diorite.Difficulty; import org.diorite.Diorite; import org.diorite.GameMode; import org.diorite.ImmutableLocation; import org.diorite.Loc; import org.diorite.Particle; ...
Java
DioriteAPI/src/main/java/org/diorite/world/World.java
marszczybrew/Diorite
mit
3,691
164
codeparrot/github-code
a39772670ed07a1c0f2d8f07c5940f6b4a508b8c0b52645f914119ff563e436f
''' Auxiliary code providing vector-valued scoring functions for convenient use in the parameter-free Ladder Mechanism. Original algorithm by Avrim Blum and Moritz Hardt Python implementation by Jamie Hall and Moritz Hardt MIT License ''' from sklearn.utils import check_consistent_length from functools import wraps ...
Python
escalator/scorers.py
nerdcha/escalator
mit
1,361
52
codeparrot/github-code
9bbc3b3697a77359c2bbc264b7a6adbabd5bf0d7e35e1f6679946d8372ce1400
<?php namespace Sig\Http\Controllers; use Illuminate\Http\Request; use Sig\Http\Requests; use Sig\Models\ClaseNorma; use Sig\Models\Tiponorma; use Sig\Models\Tipomatriz; use Sig\Models\Autoridad; use Sig\Models\Empresa; use Sig\Models\Articulos; use Sig\Models\Normas; use Sig\Models\Year; use Sig\Models\Requisitos; ...
PHP
app/Http/Controllers/FixingupController.php
sumaikun/Legal_sig
mit
12,946
404
codeparrot/github-code
c2f849dcb66dbce16297ee7f084ae738f703714f24775c6b0a6507d15454f3c5
var webpack = require('webpack'); var helpers = require('./helpers'); var path = require('path'); var ExtractTextPlugin = require('extract-text-webpack-plugin'); var HtmlWebpackPlugin = require('html-webpack-plugin'); const ENV = process.env.NODE_ENV = process.env.ENV = 'development'; module.exports = { devtool: ...
JavaScript
frontend/config/webpack.dev.js
paololersey/mea4n-aws
mit
3,257
107
codeparrot/github-code
e43b344ba17678bf718cd8ad689732aafd25c5972612949a21f33c4937adbb8b
--- layout: null --- $(document).ready(function(){ console.log("exam.js: document is ready"); $('.template').each(function(i) { $(this).css('display','none'); }); // Use with <div class="copy-of" data-id="foo"></div> // Use <div id="foo" class="template"></div> on the stuff you want to cop...
JavaScript
exam.js
UCSB-CS56-F17/ucsb-cs56-f17.github.io
mit
1,736
63
codeparrot/github-code
6282a46e0168c8f3fe3b43320adbe95c012e410a71b8ad2230ce21f0726e649e
using System; using System.Collections; using System.Collections.Generic; namespace Expressive { /// <summary> /// A 'simple' wrapper around <see cref="IVariableProvider"/> to allow for it to be used as a dictionary lookup. /// </summary> internal class VariableProviderDictionary : IDictionary<string,...
C#
Source/Expressive/VariableProviderDictionary.cs
bijington/expressive
mit
2,202
58
codeparrot/github-code
b796649429e70ddcb99a92bd8a13706f23c4fe098618aa5519cab50ce4ad4b05
#!/bin/sh # This script will bootstrap the puppet install on a cloud node for standalone puppet # it does a hacky detection based on distro /etc files but works so far # it also assumes that there will not be collisions of required files in /etc/puppet PUPPETDIR=/etc/puppet if [ -e /etc/redhat-release ]; then ec...
Shell
support_scripts/bootstrap-puppet.sh
peterezzo/petenet-puppet
mit
1,376
46
codeparrot/github-code
f21a883bae1448572bd7674a7fc40a4b0abc5bed76a0746fe24317d1ccf8e6c4
<!DOCTYPE HTML> <?php $gPHPscript = __FILE__; $dir = dirname(__FILE__); require_once($dir . '/../include/boilerplate.php'); require_once($dir . '/../include/util.php'); require_once($dir . '/../include/db.php'); require_once($dir . '/../include/simple_view.php'); require_once($dir . '/../include/annotations.php'); re...
PHP
project/unpublished.php
Cmcwebb/imagemat
mit
3,228
109
codeparrot/github-code
e2b831e73f06833dab9c84f87dba6971a99d4bdffc8fe3c52a36b690da6528ec
/*- * #%L * ARROWHEAD::WP5::Market Manager * %% * Copyright (C) 2016 The ARROWHEAD Consortium * %% * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including witho...
JavaScript
market-manager/src/main/resources/app/scripts/controllers/headerfooter.js
lawrizs/ARROWHEAD_VME
mit
1,886
52
codeparrot/github-code
1fffedc97c7d5c8533f48ec8e449fa856914c9c00f732dc162baef54b9b1559b
#include "player.h" static int n; Pacman::Pacman() { SetID(PLAYER); x = 0; y = 0; boundX = 0; boundY = 0; velocity = 0; points = 0; image = NULL; }; void Pacman::Init(float x, float y, int boundX, int boundY, float lives, ALLEGRO_BITMAP *image) { MobileObject::Init(x, y, boundX, boundY, image); Pacman:...
C++
src/player.cpp
ArrowganceStudios/Pacman-Reloaded
mit
3,564
228
codeparrot/github-code
12b14804cfcfca5dbb99858a37a48a8b6d499eef48f94492f0082b5585cc8696
import sys import os import glob import inspect import pylab as pl from numpy import * from scipy import optimize import pickle import time import copy cmd_folder = os.path.realpath(os.path.abspath(os.path.split(inspect.getfile(inspect.currentframe()))[0]) + "/templates") if cmd_folder not in sys.path: sys.path.in...
Python
vaccaleibundgut.py
fedhere/SESNCfAlib
mit
4,704
142
codeparrot/github-code
370db94dc69852d57e34f8dc220aeefb368706d714b7f4954ea1ab92bb5a160f
// this is a little Node program, running on a Node server // require() will look inside of a folder and get information, similar to import // NOTE: gulpfile.js must be in the main directory var gulp = require('gulp'); var sass = require('gulp-sass'); var concat = require('gulp-concat'); var autoprefixer = require('...
JavaScript
gulpfile.js
sunnylam13/3D-Holocron-053015
mit
3,278
114
codeparrot/github-code
7812e4664bd79f3982584d71cf9283c321b2665c935ffec3561e482d127e6368
<?php # MantisBT - A PHP based bugtracking system # MantisBT is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or # (at your option) any later version. # # MantisBT is distribut...
PHP
Mantis/core/history_api.php
nabusas/Nabu
mit
28,871
778
codeparrot/github-code
7b0c261762b65294a8fad3be7d0cde8bec4765d83c51d088d786e3ee30e81cec
module Gene::Macro class Ignore def to_s self.class.to_s end end IGNORE = Ignore.new class Function attr_reader :name, :arguments, :statements def initialize name, parent_scope, arguments, statements @name, @parent_scope, @arguments, @statements = name, parent_scope, arguments, sta...
Ruby
lib/gene/macro/types.rb
gcao/gene
mit
2,553
131
codeparrot/github-code
2aead0a6b6c1e36deff1cdf486cf8696fbf61b57a087d0834c0bc5bd66cd78a5
// MinuteRepeater Class // @params dial: object // @params settings: object // @params parentWatch: Watch instance // // The minuterepeater class accepts a dial, or defaults to the 0th index of the // dials array on the parent Watch class, and based on the hands' rotation values // calculates the amount of hours, quart...
JavaScript
src/modules/MinuteRepeater.js
yuschick/TickTock
mit
6,618
211
codeparrot/github-code
3dfd23d4635b39c4e6a6031234e0bfa148e8c263bcb5e5e8151f623b6cf13f29
import {first, uniq, compact, startsWith} from 'lodash' import cheerio from 'cheerio' import urijs from 'urijs' import {flattenDeepCheerioElements} from 'utils' export function getRelevantTags(htmlText, urlToFetch){ return new Promise((resolve, reject) => { const doc = cheerio.load(htmlText, { ignoreWhit...
JavaScript
client/src/services/siteProcessor.js
welldone-software/reembed.me
mit
1,755
65
codeparrot/github-code
3ab27198380a013ac2c35a0c4e2893d2739bd0fbdb052cd8a939757325c1cc73
module Voog class API # Voog Tickets API methods. # # @see http://www.voog.com/developers/api/resources/tickets module Tickets # List form tickets # # @see http://www.voog.com/developers/api/resources/tickets#get_tickets def tickets(form_id, params = {}) paginate "for...
Ruby
lib/voog_api/api/tickets.rb
Voog/voog.rb
mit
1,490
47
codeparrot/github-code
bc9bb990e6a98aabd821dcbbf3c087fd29ce325ec6a16cdecfc73a3f36fcd8db
#include <list> #include <map> #include <cstdlib> #include <iostream> using std::list; using std::map; using std::rand; using std::pair; using std::cout; using std::endl; void split(list<int>& firstList, list<int>& secondList, list<int>& toSplit) { int count = 0; for (list<int>::iterator i = toSplit.begin(); i != to...
C++
exam/81161/zad2.cpp
rgeorgiev583/dsp-practicum-2015-16
mit
1,790
99
codeparrot/github-code
ed47260325dcf81b8ffa9f7d52decdd141e9359352a6428280c721ffb5a66f87
import { Response } from 'aurelia-fetch-client'; import toastr from 'toastr'; /** * Defines the logger service that provides logging/messaging capabilities. */ export class LoggerService { /** * @function {logApiError} * @param {Fault} fault - The http fault message. * @return {type} {Logs an error concerning an A...
JavaScript
Csr.Web/src/services/logger-service.js
easee-csr/CSR
mit
985
41
codeparrot/github-code
36b07a07f0b64556660df3250409484299e28a95493171d2a3a7e2be9f5880bd
package pratiche; import prog.utili.Data; // rapresenta le pratiche civile e penali // che hanno un grado di giudizio abstract public class PraticaTribunale extends PraticaLegale { /** * * @param c * @param d * @param u * @param nol * @param g grado di giudizio */ public PraticaTribunale(String c, St...
Java
Temi d'esame/GargantiniAngelo_TE2013/src/pratiche/PraticaTribunale.java
garganti/info2_oop_unibg
mit
778
41
codeparrot/github-code
dbe21764b899a1dd3ff0b51f692ce34fdce5d481a39c51c419ec60b0037d7e4a
package models.attribute import models.label.{LabelType, LabelTypeTable} import models.region.{Region, RegionTable} import models.utils.MyPostgresDriver.simple._ import play.api.Play.current import play.api.db.slick import scala.slick.lifted.{ForeignKeyQuery, ProvenShape, Tag} import scala.language.postfixOps case cl...
Scala
app/models/attribute/UserAttributeTable.scala
ProjectSidewalk/SidewalkWebpage
mit
3,138
68
codeparrot/github-code
96b234fab8162b96072184e62b663a5bae75925c7f2f0aad8ae0281f08ae4861
import Boolius from "./boolius"; // which in turn imports all the classes it depends upon import XMLius from "./xmlius"; import Mathius from "./mathius"; window.onload = function () { d3.select("#modeSelect").on("change", function (e) { var selectedMode = d3.select("#modeSelect").node().value.toLowerCase(); ...
JavaScript
src/visualizer.js
pbalogh/candiru
mit
15,683
508
codeparrot/github-code
6debbeb9195f6c9da2997b8f89f0e736eae686dbc2d8350099abf2af31fb54cf
// // MacEngine.cs // // Author: // Lluis Sanchez <lluis@xamarin.com> // // Copyright (c) 2011 Xamarin Inc // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction...
C#
Xwt.XamMac/Xwt.Mac/MacEngine.cs
hamekoz/xwt
mit
15,795
428
codeparrot/github-code
dcea2f72a15bc376243cf6b8ee79e17fbf6dfae4479bd9705918c628e773c5d2
// asm2asm.cpp : Defines the entry point for the console application. // #include "../stdafx.h" #include "../../getopt/getopt.h" #include "../prepro/Preprocessor.h" #include "FileReader.h" #include "FileWriter.h" class LineProcessor { public: enum Arch { eNone, e32, e64 }; LineProcessor() : m_CommentOut(f...
C++
main/asm2asm.cpp
wbminera1/Asm2Asm
mit
3,101
161
codeparrot/github-code