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 |
|---|---|---|---|---|---|---|---|---|
88418eca57aacdb73be716be3d0dfffe04c2a9912eba75e36279d25e51e1cf95 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tera.Game.Messages;
namespace DamageMeter.Heuristic
{
class S_PRIVATE_CHAT : AbstractPacketHeuristic
{
public new void Process(ParsedMessage message)
{
base.Pro... | C# | DamageMeter.Core/Heuristic/S_PRIVATE_CHAT.cs | neowutran/OpcodeSearcher | mit | 1,373 | 37 | codeparrot/github-code |
21cbd67123af6a4ab822d4df3aead095602f39736d8005802085cd9494bb53de | package org.jabref.gui.maintable;
import java.io.File;
import java.io.IOException;
import java.nio.file.Path;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import java.util.stream.Collectors;
import javax.swing.undo.UndoManager;
import javafx.collections.ListChangeListener;
import javaf... | Java | src/main/java/org/jabref/gui/maintable/MainTable.java | sauliusg/jabref | mit | 17,294 | 436 | codeparrot/github-code |
f9bee37353ec204e1ce07551b01d8d717cad4b0a216faaa79396372eb57891f1 | package com.example.many_to_one;
import static org.junit.jupiter.api.Assertions.*;
import javax.persistence.EntityManager;
import javax.transaction.Transactional;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.beans.facto... | Java | jpa-example/src/test/java/com/example/many_to_one/ManyToOneTest.java | backpaper0/spring-boot-sandbox | mit | 1,752 | 71 | codeparrot/github-code |
a84a6b5201d7b12c4721d8e635eb53cbc961ca87a21116c33393d8ea38356b24 | 'use strict'
/* LIBS */
/* EXEC */
export interface DecolarFare {
raw: {
code: string,
amount: number
},
formatted: {
code: string,
amount: string,
mask: string
}
}
export interface DecolarLocation {
city: {
code: string
},
airport: {
code: string
},
takeAsCity: boolea... | TypeScript | src/decolar-data.ts | thevtm/decolar-scraper | mit | 2,170 | 119 | codeparrot/github-code |
9c68e9ac4ed9e29c87b4555aa8602a3e355225fbe8b2a72cf10805e2b6297f64 | <?php
//Access control
if (!defined('IN_APP_PROJECT')) {
exit('Access Forbidden');
}
class ErrorHandler {
protected static $errors = array();
protected static $displayErrors = true;
protected $errorNumber;
protected $errorString;
protected $errorFile;
protected $errorLine;
protected $e... | PHP | includes/classes/general/ErrorHandler.class.php | aescariom/ScarFramework-PHP | mit | 6,157 | 195 | codeparrot/github-code |
4b36fb3ac49d2b024fec14cbe892b708a9536314a6cfee9699a24555ac24b5b6 | package main
import (
"strings"
"strconv"
"time"
"bufio"
"regexp"
"fmt"
"os"
)
var rules = map[string]map[string]*regexp.Regexp{
"food": map[string]*regexp.Regexp{
"ALBERT HEIJN": regexp.MustCompile(`ALBERT HEIJN`),
"Jumbo": regexp.MustCompile(`Jumbo[^a-zA-Z0-9-]`),
... | GO | app.go | FelikZ/abn-amro | mit | 5,858 | 209 | codeparrot/github-code |
67398b928a2ef35ec9b4e52957415a36d0c517fe957d52ed4c6032bb6b2f1124 | <?php
namespace PS\MediaParser;
use PS\MediaParser\Result;
class MediaParser {
/**
* List of testing services that are going to be iterated and matched before the parser will
* return the result
* @var array
*/
static $services = array(
\PS\MediaParser\Services\Youtube::class,
... | PHP | src/MediaParser/MediaParser.php | sokarovski/MediaParser | mit | 1,199 | 41 | codeparrot/github-code |
a5858892084d45ccd423b782e0005f11041b2ad628f1bbb48bfbf70828118f49 | __author__ = 'ysahn'
import logging
import json
import os
import glob
import collections
from mako.lookup import TemplateLookup
from mako.template import Template
from taskmator.task.core import Task
class TransformTask(Task):
"""
Class that transform a json into code using a template
Uses mako as temp... | Python | taskmator/task/text.py | altenia/taskmator | mit | 4,755 | 138 | codeparrot/github-code |
7639319025666c2b5e56b942fa2f7f86f11a9e70c3b56fa13a2481138fd522c1 | #include "mex.h"
#include <math.h>
#include "float.h"
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray*prhs[])
{
//
// Usage
// -----
// flag = same_diff(data,tolerance_multiplier)
//
// - data is assumed to be 1d (this could be verified ...)
//
/... | C | +sl/+array/+similiarity/private/sameDiff.c | JimHokanson/matlab_standard_library | mit | 3,078 | 100 | codeparrot/github-code |
12cf03020e96ce47141a80f7a0ed253b02eb5a0340dfef34a5f66f7f9b683baa | package com.swfarm.biz.chain.dto;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import org.apache.commons.lang.StringUtils;
import com.swfarm.biz.chain.bo.Cus... | Java | pms/src/main/java/com/swfarm/biz/chain/dto/CustomerOrderDTO.java | zhangqiang110/my4j | mit | 16,040 | 530 | codeparrot/github-code |
2c426cbdfada4b8989915a7d72107621bf1dde45348b6ef8e409b67bcb15c0d3 | <?php
namespace AppBundle\Form\DataField;
use AppBundle\Entity\FieldType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
use AppBundle\Form\F... | PHP | src/AppBundle/Form/DataField/RadioFieldType.php | theus77/ElasticMS | mit | 2,601 | 112 | codeparrot/github-code |
fcbf1835f425a5c1c5baa045cc4a2896b5c584623843c6fcfac98b280b88d95a | /*
* Copyright (c) 2013 Red Rainbow IT Solutions GmbH, Germany
*
* 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 limitation the rights to
* use, c... | Java | core/src/main/java/org/jeeventstore/store/EventsIterator.java | JEEventStore/JEEventStore | mit | 2,548 | 79 | codeparrot/github-code |
07c5dcceb698385d4498b60f182a493ea29d718bfc24cd8d53ebe08981c9fae0 | ///////////////////////////////////////////////////////////////////////////////
//
// Effect
//
///////////////////////////////////////////////////////////////////////////////
//// IMPORTS //////////////////////////////////////////////////////////////////
import { toJs } from 'mori';
import diff from 'virtual-dom/dif... | JavaScript | src/js/lib/effect.js | craigdallimore/hog | mit | 1,055 | 33 | codeparrot/github-code |
4250064ea7e555473aedb0d9578f56b86a5c848a6a857833006bde4f8d259376 | 'use strict';
let datafire = require('datafire');
let openapi = require('./openapi.json');
let aws = require('aws-sdk');
const INTEGRATION_ID = 'amazonaws_data_jobs_iot';
const SDK_ID = 'IoTJobsDataPlane';
let integ = module.exports = new datafire.Integration({
id: INTEGRATION_ID,
title: openapi.info.title,
de... | JavaScript | integrations/generated/amazonaws_data_jobs_iot/index.js | DataFire/Integrations | mit | 2,741 | 86 | codeparrot/github-code |
4dcb6cc35642c5dbb1fc5925886d8fa9c69d1712df6f4b5b5e563f900c2521eb | ------------------------------------------------------------------------------
----- PART ONE -----
------------------------------------------------------------------------------
--Drop tables if already exist.
DROP TABLE BOOK_LOANS;
DROP TABLE BOOK_COPIE... | SQL | CS6360/Assignment1/Assignment1.sql | hanlin-he/UTD | mit | 12,362 | 281 | codeparrot/github-code |
649a3563415664b8fc51840d18b9cd0124e254657eb9f0a52e559d97a87fd309 | /*
* NodeTest.h
*
* Created on: Aug 11, 2008
* Author: yamokosk
*/
#ifndef NODETEST_H_
#define NODETEST_H_
// Logging
#include <log4cxx/logger.h>
// CppUnit
#include <cppunit/extensions/HelperMacros.h>
// Class to test
#include "SceneNode.h"
class NodeTest : public CppUnit::TestFixture
{... | C | src/unittest/NodeTest.h | yamokosk/tinysg | mit | 2,439 | 83 | codeparrot/github-code |
2cb223fe38a9f9cb0df7d02968e608fbb8dd011d396a4ddd1458c729d97aa2d7 | import sys
import traceback
import logging
import time
import inspect
def run_resilient(function, function_args=[], function_kwargs={}, tolerated_errors=(Exception,), log_prefix='Something failed, tolerating error and retrying: ', retries=5, delay=True, critical=False, initial_delay_time=0.1, delay_multiplier = 2.0):
... | Python | __init__.py | mikemaccana/resilience | mit | 2,874 | 57 | codeparrot/github-code |
3619285cb11d092eea31625ad242c53aec4af50191cd83da76c71daa304cefb5 | //John Paul Mardelli
//Last updated November 2nd, 2013
package com.northstar.minimap;
import android.graphics.Point;
/**
* Class to represent positions on the map.
*/
public class Position {
private double x;
private double y;
public Position(double x, double y){
this.x = x;
this.y = ... | Java | Code/Minimap/src/main/java/com/northstar/minimap/Position.java | ritnorthstar/Minimap-Client | mit | 738 | 42 | codeparrot/github-code |
8107e35665beb8136a87274a3a2f52927125eb048f0b7bad2bbe91e12bf95dd0 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="description" content="Description">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, min... | HTML | docs/index.html | arstd/gobatis | mit | 2,378 | 85 | codeparrot/github-code |
adcf1667afcb0fcdda288312b09d7f6f703cfc522d12f5e718c8a183f75ae5d5 | <?php
namespace Omelet\Module;
use Doctrine\DBAL\Driver\Connection;
use Ray\Di\AbstractModule;
use Ray\Di\Scope;
use Ray\Di\Name;
use Ray\DbalModule\DbalModule;
use Omelet\Builder\Configuration;
use Omelet\Builder\DaoBuilderContext;
class DaoBuilderBearModule extends AbstractModule {
/**
* @v... | PHP | src/Module/DaoBuilderBearModule.php | ritalin/omelet-bear-module | mit | 1,281 | 51 | codeparrot/github-code |
3fb61c8af327f4a5ae393ac732dec97c78c6c6c0c510cdaae9337f6baec14737 | #!/usr/bin/env python
"""
Solve day 23 of Advent of Code.
http://adventofcode.com/day/23
"""
class Computer:
def __init__(self):
"""
Our computer has 2 registers, a and b,
and an instruction pointer so that we know
which instruction to fetch next.
"""
self.a = 0
... | Python | day23/day23.py | mpirnat/adventofcode | mit | 2,854 | 107 | codeparrot/github-code |
545683b9ab6678e3811fc586d3060b0e6c0bbbe5a21a703e70eca50706fcd16e | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Linq;
using System.Reflection;
namespace Tasks.Command.Api.Areas.HelpPage.SampleGeneration
{
/// <summary>
/// This class will create an object of a given ty... | C# | CQRSES.Command.Api/Areas/HelpPage/SampleGeneration/ObjectGenerator.cs | TomPallister/cqrs-event-sourcing | mit | 19,515 | 456 | codeparrot/github-code |
f193ce65c1266c9c3e5d84e0f82d91378c0ef0a722ae29e3b140f75c6a4f2368 | import subprocess
import os
import errno
def download_file(url, local_fname=None, force_write=False):
# requests is not default installed
import requests
if local_fname is None:
local_fname = url.split('/')[-1]
if not force_write and os.path.exists(local_fname):
return local_fname
dir_name = os.pat... | Python | common/util.py | yancz1989/lr_semi | mit | 1,092 | 42 | codeparrot/github-code |
410021c342ec6ffa12497b66ffd068543bd408e6bdd15af1b42dea0b6af7db31 | {% extends 'psoriassist/base.html' %}
{% load staticfiles %}
{% block js %}
<script src={% static 'js/medication.js' %}></script>
{% endblock %}
{% block css %}
<link rel="stylesheet" href={% static 'css/medication.css' %}>
{% endblock %}
{% block body %}
<div id="main-container" class="c... | HTML | psoriassist/templates/psoriassist/my_medication.html | maxprais/psoriassist | mit | 10,625 | 248 | codeparrot/github-code |
d08bebd531e71faccca5c99645650b3ac5c9fd219d9a27c51828e362cd41a98b | import React from 'react'
import PropTypes from 'prop-types'
import { MarkerCanvasProvider } from './MarkerCanvasContext'
import TimelineMarkersRenderer from './TimelineMarkersRenderer'
import { TimelineStateConsumer } from '../timeline/TimelineStateContext'
// expand to fill entire parent container (ScrollElement)
co... | JavaScript | src/lib/markers/MarkerCanvas.js | namespace-ee/react-calendar-timeline | mit | 2,597 | 94 | codeparrot/github-code |
dbd99beda93f96d4e7165520a14f0b3bc82f5409c8a923f8c1b335181404c24a | module Contenticus
module Tags
class Base
attr_reader :key, :name, :comment
def initialize(values, key:, name: nil, comment: nil, parent: nil)
@key = key
@name = name ? name : @key.capitalize
@comment = comment
@values = values
@parent = parent
end
def type
self.class.to_s.underscore.... | Ruby | app/models/contenticus/tags/base.rb | nasmorn/contenticus | mit | 1,767 | 109 | codeparrot/github-code |
2dd65e069503e446f90377b07d35c0e5274da8ddd901a53c7dffe4e3d9739ae9 | # This module is free software. You can redistribute it and/or modify it under
# the terms of the MIT License, see the file COPYING included with this
# distribution.
from __future__ import division
"""
main.py -- main program of motif sequence coverage pipeline tool
example for running code: python main.py -jid tes... | Python | main.py | RamiOran/SeqCov | mit | 3,137 | 100 | codeparrot/github-code |
1533591b4a9daec91ef92e5c6513004749116ba47ef59f38cda502d233d24d5e | module PrettyWeather2
class OptimisticWeather
attr_reader :created_at
# This was a test data_provider for PrettyWeather2 gem. It should be destroyed,
# but as a fun of Monty Python, I can't just delete it. So it is easter egg for now.
def initialize(config)
@created_at = Time.now.strftime('%Y-... | Ruby | lib/pretty_weather_2/optimistic_weather.rb | NikitaSmall/pretty_weather_2 | mit | 959 | 37 | codeparrot/github-code |
c3148c1b9194f0ab8a73fae873c043425a31649dbe36bccdee18ef8ab054282d | * {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
/*
* -- BASE STYLES --
* Most of these are inherited from Base, but I want to change a few.
*/
body {
line-height: 1.7em;
color: #7f8c8d;
font-size: 13px;
}
h1,
h2,
h3,
h4,
h5,
h6,
label {
color: ... | CSS | assets/style.css | tlongren/money-collector | mit | 4,337 | 242 | codeparrot/github-code |
579ffd1ba0f853f27fbf4c1354d92560ec8b2ee1d8dd8112696069cb44364338 | from __future__ import annotations
from typing import Generic, TypeVar
T = TypeVar("T")
class DisjointSetTreeNode(Generic[T]):
# Disjoint Set Node to store the parent and rank
def __init__(self, data: T) -> None:
self.data = data
self.parent = self
self.rank = 0
class DisjointSetTr... | Python | graphs/minimum_spanning_tree_kruskal2.py | TheAlgorithms/Python | mit | 4,095 | 122 | codeparrot/github-code |
c42eb4e4c0c4f1f6bb97dd65f5ef3885518b930db35030ee090f3af820db272b | namespace Blog.Services.Data
{
using System;
using System.Linq;
using Blog.Data.Common;
using Blog.Data.Models;
using Blog.Services.Web;
public class JokesService : IJokesService
{
private readonly IDbRepository<Joke> jokes;
private readonly IIdentifierProvider identifierP... | C# | MVC/BlogSystem/Source/Services/Blog.Services.Data/JokesService.cs | Steffkn/ASP.NET | mit | 897 | 34 | codeparrot/github-code |
d3a0d8a8e89c5877ee28db52affe9c059c8154fde4fde3bec5a2a83c68d8e81f | using System;
using NetRuntimeSystem = System;
using System.ComponentModel;
using NetOffice.Attributes;
namespace NetOffice.ExcelApi
{
/// <summary>
/// DispatchInterface ChartView
/// SupportByVersion Excel, 12,14,15,16
/// </summary>
/// <remarks> Docs: <see href="https://docs.microsoft.com/en-us/office/vba/a... | C# | Source/Excel/DispatchInterfaces/ChartView.cs | NetOfficeFw/NetOffice | mit | 5,589 | 178 | codeparrot/github-code |
648861fd365d34e7bea4e175cb30da997278ab48308557fb01e1fdb860c340ca | require 'rubygems'
require 'serialport'
require 'zwaveascii/events.rb'
require 'zwaveascii/devices.rb'
class Array
# same as .delete but only delete the first occurance
def delete_first(delete_val)
self.each_index do |idx|
next if self[idx] != delete_val
self.delete_at idx
return true
end... | Ruby | lib/zwaveascii.rb | sarahemm/ruby-zwaveascii | mit | 4,197 | 156 | codeparrot/github-code |
97de464318a95d6d19b7b90bfaf48e14420917b110a1da3b3d82e947375c7483 | var joi = require('joi');
var _ = require('lodash');
module.exports = function(router, db) {
// This is our "class" that accesses/modifies notes in the db
var NoteService = require('../lib/db-notes')
var noteService = new NoteService(db);
// Joi is a wonderful library that takes strings and converts them into th... | JavaScript | server/routes/api-notes.js | bzuillsmith/sample-express-app | mit | 2,992 | 115 | codeparrot/github-code |
d37a834c85f2c8336f5de9ff48bb15403ec85184a89a0363aaef54de2b5badd7 | using System;
using DiaryOfMadman.Identity.Helpers;
using DiaryOfMadman.Identity.Store;
using DiaryOfMadman.Identity.Validators;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Identity;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Option... | C# | backend/Identity/IdentityExtensions.cs | sunriselink/DiaryOfMadman | mit | 1,892 | 63 | codeparrot/github-code |
653ed10e6ce4d6b9ea43df64f26d2499252859962217c735e4aa68ab5b553707 | -- | This module describes the interface (as a data tyep) that some variant
-- should implement. See `Variant`.
--
{-# LANGUAGE OverloadedStrings #-}
module NetHack.Data.Variant
( Variant()
, monster
, allMonsterNames
, commandPrefix
, variant
, loadVariant )
where
import Control.Applicat... | Haskell | lib/NetHack/Data/Variant.hs | UnNetHack/pinobot | mit | 1,915 | 60 | codeparrot/github-code |
d3bca0b9fa816e2afcaf99d2596cfddca28d1d6841d36710a65dbf3ff49362de | <?php
namespace App\Http\Requests;
use App\Http\Requests\Request;
class EditAdvertRequest extends Request
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation r... | PHP | app/Http/Requests/EditAdvertRequest.php | CeciliaHinga/HebaShop | mit | 841 | 33 | codeparrot/github-code |
24a52a475a858c124da4138f74f8a44dc4d01456965c54932e7729d078b9b143 | /* Copyright 2010 Santiago Ontanon and Ashwin Ram */
package gatech.mmpm.sensor.builtin;
import gatech.mmpm.ActionParameterType;
import gatech.mmpm.Context;
import gatech.mmpm.Entity;
import gatech.mmpm.GameState;
import gatech.mmpm.PhysicalEntity;
import gatech.mmpm.sensor.Sensor;
import gatech.mmpm.util.Pair;
/**... | Java | projects/assignment-player-2/src/gatech/mmpm/sensor/builtin/DistanceEC.java | lucasdavid/Dust-cleaner | mit | 3,921 | 138 | codeparrot/github-code |
8530b9ff13546e9070ef3ec53cf46e29c1476f23d37e5362d44f5feb9cbcc0cf | ## Classical derivative-based, iterative, root-finding algorithms: Newton and Halley
## Newton
function newton_itr(f, fp, x0;
xtol=4*eps(), xtolrel=4*eps(), ftol=4*eps(),
maxsteps=100, maxfnevals=100)
update = (o) -> begin
xn = o.xn[end]
fxn = o.fxn[end]
... | Julia | src/newton.jl | JuliaPackageMirrors/Roots.jl | mit | 4,208 | 158 | codeparrot/github-code |
ea82ab59e9bbbd8fd1ef65aa5eca4c5ca9a9634aaaecc8cb0acd117cf71ea507 | #ifndef CtreCanNode_H_
#define CtreCanNode_H_
#include "ctre.h" //BIT Defines + Typedefs
#include <pthread.h>
#include <map>
#include <string.h> // memcpy
#include <sys/time.h>
class CtreCanNode
{
public:
CtreCanNode(UINT8 deviceNumber);
~CtreCanNode();
UINT8 GetDeviceNumber()
{
return _deviceNumber;
}
pr... | C | unittest/wpilib/ctre/CtreCanNode.h | Iron-Panthers/FRC-2015 | mit | 2,031 | 116 | codeparrot/github-code |
9d3245c72318f2a6b7a7acf04a6e5b59063ee6fefea463a04575697533d6fe26 | /*
FreeRTOS V7.4.0 - Copyright (C) 2013 Real Time Engineers Ltd.
FEATURES AND PORTS ARE ADDED TO FREERTOS ALL THE TIME. PLEASE VISIT
http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
***************************************************************************
* ... | C | freeRTOS/FreeRTOSV7.4.0/FreeRTOSV7.4.0/FreeRTOS/Demo/NEC_V850ES_IAR/LowLevelInit/LowLevelInit.c | andyOsaft/02_SourceCode | mit | 5,917 | 125 | codeparrot/github-code |
ec7107b5921f877e8c61ea1bab57dc903d525aab2044281af35182a8b370c96e | package main
import (
"bufio"
"encoding/hex"
"errors"
"fmt"
"github.com/boxofrox/cctv-ptz/config"
"github.com/docopt/docopt-go"
"github.com/mikepb/go-serial"
"github.com/simulatedsimian/joystick"
"io"
"math"
"os"
"strconv"
"strings"
"syscall"
"time"
)
var (
VERSION string
BUILD_DATE string
)
// p... | GO | main.go | boxofrox/cctv-ptz | mit | 15,595 | 688 | codeparrot/github-code |
4e0b59d7f25b74cf08e08161dbaab7ff065a6e632571d6f87783e975263211cb | package edu.ucsb.cs56.w15.drawings.brentkirkland.advanced;
import java.awt.image.BufferedImage;
import java.awt.Graphics2D;
import java.awt.Color;
import java.io.File;
import javax.imageio.ImageIO;
import java.io.IOException;
import edu.ucsb.cs56.w15.drawings.utilities.ShapeTransforms;
import edu.ucsb.cs56.... | Java | src/edu/ucsb/cs56/w15/drawings/brentkirkland/advanced/WritePictureToFile.java | UCSB-CS56-W15/W15-lab04 | mit | 3,139 | 96 | codeparrot/github-code |
efa6801f99dbf18efcb0ee3497fd07299636f20b99222ca284a495a6a9c04bcb | <?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
if ( ! function_exists('css_url'))
{
function css_url($nom)
{
return base_url() . 'assets/css/' . $nom . '.css';
}
}
if ( ! function_exists('js_url'))
{
function js_url($nom)
{
return base_url() . 'assets/javacript/' . $nom . '.js';
... | PHP | application/helpers/assets_helper.php | aboixel/codeIgniter-aboixel | mit | 580 | 34 | codeparrot/github-code |
bbdace39f17d0f7b9d714121977cfcf56560130babf54906d7db83cc8b554eaa | using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Net.Http.Headers;
using System.Web.Http.Description;
using VowTracker.Areas.HelpPage.ModelDescriptions;
namespace VowTracker.Areas.HelpPage.Models
{
/// <summary>
/// The model that represents an API displayed on the help page... | C# | VowTracker.Web/Areas/HelpPage/Models/HelpPageApiModel.cs | zenzontle/VowTracker | mit | 3,950 | 108 | codeparrot/github-code |
76b439ef6c3f9c58277dba42d561fb69b8a7d44a71845b2fc4014f111e066d2d | package ru.kpfu.itis.group11501.shatin.politics_web_project.repositories.impls;
import com.sun.xml.internal.bind.v2.TODO;
import ru.kpfu.itis.group11501.shatin.politics_web_project.helpers.ConnectionSingleton;
import ru.kpfu.itis.group11501.shatin.politics_web_project.models.Role;
import ru.kpfu.itis.group11501.shatin... | Java | src/ru/kpfu/itis/group11501/shatin/politics_web_project/repositories/impls/UserRepositoryImpl.java | OlegShatin/Politics_project | mit | 6,955 | 175 | codeparrot/github-code |
f8e889168195ace8f05dfefe373e965dbba1d74455e69f29121bef97fc0b20bc | using System;
public class Person
{
// Field
public string name;
// Constructor that takes no arguments.
public Person()
{
name = "unknown";
}
// Constructor that takes one argument.
public Person(string nm)
{
name = nm;
}
// Method
public void SetName... | C# | program.cs | Sarrdai/GigEViewer | mit | 934 | 46 | codeparrot/github-code |
799642d3f8fd1fd828a3388579e394e942cf08a7603df4905baf52f779c94699 | package logging
import (
"fmt"
"os"
"time"
"github.com/op/go-logging"
)
const (
size = 1024
)
var (
Log *CTopLogger
exited bool
level = logging.INFO // default level
format = logging.MustStringFormatter(
`%{color}%{time:15:04:05.000} ▶ %{level:.4s} %{id:03x}%{color:reset} %{message}`,
)
)
type stat... | GO | logging/main.go | bcicen/ctop | mit | 2,825 | 134 | codeparrot/github-code |
97ee12953f29b3c7fd3d8a07773ab59d2d9833f21f470c277922879baa6b9b7e | #ifndef ossimPlanetStandardTextureLayerFactory_HEADER
#define ossimPlanetStandardTextureLayerFactory_HEADER
#include <ossimPlanet/ossimPlanetTextureLayerFactory.h>
#include <ossim/base/ossimFilename.h>
#include <ossim/base/ossimKeywordlist.h>
#include <ossimPlanet/ossimPlanetExport.h>
#include <mutex>
class OSSIMPLANE... | C | include/ossimPlanet/ossimPlanetStandardTextureLayerFactory.h | ossimlabs/ossim-planet | mit | 1,555 | 31 | codeparrot/github-code |
76a9495baeaec493d9165138faaccf16b18bcd2bf2f296d02794fa60f2c8e538 | /*
* This file is part of CraftoPlugin, licensed under the MIT License (MIT).
*
* Copyright (c) 2020 CraftolutionDE <https://craftolution.de>
*
* 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 S... | Java | modules/fly/src/main/java/de/craftolution/craftoplugin/module/fly/FlyTime.java | Craftolution/CraftoPlugin | mit | 4,823 | 172 | codeparrot/github-code |
4abbff3bc7e7189f5a91f4f8b7061940c4fc5f00115ca74b6ac688e0f6d09843 | import _ from 'lodash/fp'
export const TYPES = {
ADDON: 'addon',
COLLECTION: 'collection',
ELEMENT: 'element',
VIEW: 'view',
MODULE: 'module',
}
const TYPE_VALUES = _.values(TYPES)
/**
* Determine if an object qualifies as a META object.
* It must have the required keys and valid values.
* @private
* @... | JavaScript | src/lib/META.js | jcarbo/stardust | mit | 1,738 | 62 | codeparrot/github-code |
333e913332fa15311a111c61e92674e9998d210df5b417e6a65356eaeeebff6b | <?php
namespace MyDogs\DogBundle\Model\om;
use \BaseObject;
use \BasePeer;
use \Criteria;
use \DateTime;
use \Exception;
use \PDO;
use \Persistent;
use \Propel;
use \PropelDateTime;
use \PropelException;
use \PropelPDO;
use MyDogs\DogBundle\Model\Breed;
use MyDogs\DogBundle\Model\BreedQuery;
use MyDogs\DogBundle\Mode... | PHP | src/MyDogs/DogBundle/Model/om/BaseDog.php | arkturoz/CodingChallenge | mit | 36,381 | 1,147 | codeparrot/github-code |
867329fabe2fa1791ec1c03e5dbbed74d3bd4f431a4faa94e6e7bbe55729bee8 | package edu.hm.hafner;
import java.util.Date;
/**
* Useless class - only for test-cases.
*
* @author Christian Möstl
*/
public class ParameterAssignment {
private Date date;
private int number;
private final String text;
/**
* Creates a new instance of {@link Paramet... | Java | src/main/java/edu/hm/hafner/ParameterAssignment.java | jenkinsci/analysis-runner | mit | 1,565 | 77 | codeparrot/github-code |
8d14a517c024604c35fb67b9401baadf16f2f7a4a862f2d54e40b795b3e28864 | var Backbone = require('backbone'),
_ = require('underscore');
global.App = {};
App.Task = Backbone.Model.extend({
url : 'http://localhost:9292/tasks/' + this.get('id'),
defaults : {
title: 'Untitled Task 1',
done : false
}
});
App.TaskCollection = Backbone.collection.extend({
mod... | JavaScript | example/backboneApp.js | danascheider/barista | mit | 1,399 | 65 | codeparrot/github-code |
31a9b21c43f288efbd577fc922ee2db59b2219cfe062e4eddd482c6ef3bb0aaf | using System;
namespace AccidentalNoise
{
public sealed class ImplicitClamp : ImplicitModuleBase
{
public ImplicitClamp(ImplicitModuleBase source, Double low, Double high)
{
this.Source = source;
this.Low = new ImplicitConstant(low);
this.High = new Implicit... | C# | Assets/Scripts/AccidentalNoise/Implicit/ImplicitClamp.cs | jongallant/WorldGeneratorFinal | mit | 1,274 | 41 | codeparrot/github-code |
9bd476abce0128185cefb5d9db6611d60d104df8b3243738d5b86dd519abd92c | package util.xmlserializer;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.Serializable;
import java.lang.reflect.*;
import java.util.*... | Java | src/util/xmlserializer/XMLSerializerUtil.java | tbepler/JProbe | mit | 35,207 | 968 | codeparrot/github-code |
c6da566f1a8ed1095a637815ebd56aecf40fad6600c081262dc79ef2799e6dfa | package com.boardhood.mobile.activity;
import org.apache.http.conn.HttpHostConnectException;
import com.boardhood.api.exception.ValidationError;
import com.boardhood.api.exception.ValidationException;
import com.boardhood.api.model.User;
import com.boardhood.mobile.BoardHoodClientManager;
import com.boardhood.mobile.... | Java | mobile_app/BoardHood/src/com/boardhood/mobile/activity/SignupActivity.java | mayconbordin/boardhood | mit | 8,401 | 231 | codeparrot/github-code |
1e3f8d43a0f643b038241d29d81a70e01ae389d6083a92ec211daefa98f2e9a4 | <?php
defined('BASEPATH') OR exit('No se puede acceder al archivo directamente.');
?>
<!--======== Page Title and Breadcrumbs Start ========-->
<div class="top-page-header">
<div class="page-title">
<h2>Reportes</h2>
<small></small>
</div>
<div class="page-breadcrumb">
<nav cla... | PHP | versiones/v_1_6_0/views/reportes/reportes.php | georgesks/sistema | mit | 13,872 | 333 | codeparrot/github-code |
59d5cae41ea21e0ea969ef84a6e9b8a6faecaeadb56418f6a0ccc824c26c4e58 | <?php
namespace Casecenter\PlanningBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
class BookingType extends AbstractType
{
/**
* @param FormBuilderInterface $builder
* @param array $o... | PHP | src/Casecenter/PlanningBundle/Form/BookingType.php | adrienma/CaseCenter | mit | 1,029 | 41 | codeparrot/github-code |
7c663c8d3fd7191bd16efedf87ce0fc2006092e8f498a481e92df5d88481991c | {% extends 'dashboard_qpp.html' %}
{% block content %}
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
<form method="post" action="{% url 'soamgr:review_order' soa_order.id %}">
{% csrf_token %}
<br />
<h1>Review Order Agreement</h1>
... | HTML | project_soa/templates/soamgr/review_order.html | nikkomidoy/project_soa | mit | 1,739 | 45 | codeparrot/github-code |
6bc00d77e0717b5b3c3ad1f12c720e36e8f76413a7bf0a7f785a9374c144634c | #!/bin/bash
#Ensure source routed packets are not accepted
if sysctl net.ipv4.conf.all.accept_source_route 2>&1 | grep -v '= 0'; then
echo "disabling system from accepting source routed packets..."
if grep -v '^ *#' /etc/sysctl.conf | grep "net.ipv4.conf.all.accept_source_route"; then
sudo sed -i '/net.ipv4.... | Shell | ubuntu-14.04/scripts/audit_networkconfiguration.sh | hiimivantang/ubuntu-hardening | mit | 9,671 | 224 | codeparrot/github-code |
ee7094c2b13a034d6d83ddea4c9f6ac51d730fb396b83e1bcb757d0c0aa5e253 | var model = require(__dirname + '/../models/model.js');
var controller = function() {};
//create new user
function create(id) {
var newUser = new model({
id: id,
currentCowntt: 0,
apiCallsMade: 0
});
return newUser;
}
function getUser(id, cb) {
model.findOne({ //find by unique id
id: id
}, ... | JavaScript | controllers/controller.js | dawsonbotsford/cownttBackend | mit | 1,668 | 80 | codeparrot/github-code |
80fc3a0055bc737feb86931349d2c2f52fb9eaa509db50a5c8142a9b3fc0422c | namespace SchoolSystem.Models
{
using System;
using System.Collections.Generic;
using System.Text;
public class School
{
private List<SchoolClass> classes;
public School(string name)
{
this.Name = name;
this.classes = new List<SchoolClass>()... | C# | C#OOP/04.OOPPrinciples_Part1/Problem01_School/Models/School.cs | DanielaPopova/TelerikAcademy_Homeworks | mit | 1,321 | 53 | codeparrot/github-code |
1cd67122f57bb3e34a481849915225c8b9907988cebc4b8592b1678f8f3edb0d | <!DOCTYPE html><html><head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>[新聞] 首位英國飛官 公開轉性變「花木蘭」 - 看板 Gossiping - 批踢踢實業坊</title>
<meta name="robots" content="all">
<meta name="keywords" content="Ptt BBS 批踢踢">
<meta name="description" content="
蘋果日報
http://ppt.cc/ihVq
">
<me... | HTML | result/M.1419190627.A.E58.html | iultimatez/PTTScraper | mit | 8,884 | 160 | codeparrot/github-code |
227806905c31967238a4baa717e9bdf0b693b295fcf28ca314359607dd8b1ba7 | import React, {PropTypes, Component} from 'react';
import moment from 'moment';
import StyleSheet from 'styles/agenda.styl';
export default class AgendaChart extends Component {
static propTypes = {
items: PropTypes.array,
currentDate: PropTypes.number,
roomName: PropTypes.string
}
render() {
con... | JavaScript | src/components/AgendaChart.js | efollender/meeting-planner | mit | 1,836 | 59 | codeparrot/github-code |
4e19f8450458d14baa1fb3e807118ff4716f39dc06dcb70dec0e608a156eab51 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
///require_once APPPATH."/third_party/braintree-php/lib/Braintree.php";
class User extends MY_Controller
{
var $clientToken;
function __construct() {
parent::__construct();
$this->load->model('Users_model');
$this->lo... | PHP | application/controllers/User.php | IRWNetwork/Stakeholders | mit | 88,827 | 1,956 | codeparrot/github-code |
99ff180d4a4a06aae33676b7d65fe60966313a3a1c606894ad384a7ba950a17f | ////////////////////////////////////////////////////////////////////////////////
//
// @module Common Android Native Lib
// @author Osipov Stanislav (Stan's Assets)
// @support stans.assets@gmail.com
//
////////////////////////////////////////////////////////////////////////////////
using System;
using UnityEn... | C# | Assets/Extensions/GooglePlayCommon/Models/GoogleCloudResult.cs | sonth3vn/DFTChess | mit | 2,020 | 113 | codeparrot/github-code |
ee91e5be3abc71eb542aa8321862218651a39d06d2dfd1bdd99ad5b242d59957 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests\TicketFormRequest;
use App\Ticket;
use Illuminate\Support\Facades\Mail;
class TicketsController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
p... | PHP | Laravel/app/Http/Controllers/TicketsController.php | javiermartinalonso/LARAVEL5 | mit | 3,356 | 126 | codeparrot/github-code |
8fff36f4cd2128f85fc8a4b58f9514ab001b1dcfe14b1f61216f2aa9be4e3651 | <?php
namespace Drupal\boilerplate\Controller;
use Drupal\Core\Controller\ControllerBase;
/**
* Controller for our sample page route.
*/
class BoilerplatePageController extends ControllerBase {
/**
* Returns build array for the simple page.
*/
public function showSimplePage() {
return [
'#mark... | PHP | src/Controller/BoilerplatePageController.php | aramboyajyan/drupal8-boilerplate | mit | 891 | 43 | codeparrot/github-code |
0d1515c2c9e6487ae35cb19c8c86f8df7a09d2098bf2d4d6d193c7650f857d8d | // Copied from https://github.com/fwcd/vscode-kotlin-ide and edited.
//
// Originaly licensed:
//
// The MIT License (MIT)
//
// Copyright (c) 2016 George Fraser
// Copyright (c) 2018 fwcd
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation... | TypeScript | src/util/osUtils.ts | nixel2007/vsc-language-1c-bsl | mit | 2,125 | 62 | codeparrot/github-code |
d0fd6f23c2dcccd05c180b8546bc82f78587fc2088e3eb776f73bd1bf17d378e | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>gappa: 1 m 18 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="s... | HTML | clean/Linux-x86_64-4.08.1-2.0.5/released/8.7.2/gappa/1.4.0.html | coq-bench/coq-bench.github.io | mit | 9,486 | 190 | codeparrot/github-code |
01f1091d0025041c5077c052e7b92990ae0bd920837b76de2115386b000e0e7c | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package graphfinder2.typedGraph.degree6;
import graphfinder2.graph.Graph;
import graphfinder2.graph.RingGraph;
import graphfinder2.typedGraph.AbstractTypedGraph;
import graphfinder2.typedGraph.AbstractTypedGraphCreator... | Java | GraphFinder2/src/graphfinder2/typedGraph/degree6/Chr6EdivOdivEdivOdiv.java | dledzinski/graphfinder | mit | 1,920 | 64 | codeparrot/github-code |
54553b6b5743903565ee2b03d08d19ad143bf06e2f07b33fcbfb85efd47e5438 | ---
layout: base
---
{% assign module=page.categories[1] %}
{% if page.module %}
<div class="container-fluid bg-compliment-1 p-3">
<div class="pagination-section title due-date d-flex justify-content-center" >
<div class="active-week px-3">
WEEK: {{ page.module }}
</div>
<div ... | HTML | _layouts/course_page.html | Montana-Media-Arts/mart341-webDev | mit | 1,936 | 90 | codeparrot/github-code |
560041bf1756d07daaf50e31475cd1627011b30416da0a8fa7afc2b659e9dc8a | module BioInterchange::Genomics
class Locations
def self.reg2bin(region_begin, region_end)
region_end -= 1
return ((1 << 15) - 1) / 7 + (region_begin >> 14) if (region_begin >> 14 == region_end >> 14)
return ((1<<12)-1)/7 + (region_begin >> 17) if (region_begin >> 17 == region_end >> 17)
return ((1<... | Ruby | lib/biointerchange/genomics/locations.rb | BioInterchange/BioInterchange | mit | 934 | 31 | codeparrot/github-code |
a5bee7b63f8c6278fb20e287d27fe24f474d585e701a8d09041437d77fd67fec | // Copyright 2018 Stefan Negritoiu (FreeBusy) and contributors. See LICENSE file for more information.
using AlexaSkillsKit.Helpers;
using Newtonsoft.Json.Linq;
using System;
namespace AlexaSkillsKit.Speechlet
{
public abstract class SpeechletRequest
{
protected SpeechletRequest(JObject json) {
... | C# | AlexaSkillsKit.Lib/Speechlet/SpeechletRequest.cs | AreYouFreeBusy/AlexaSkillsKit.NET | mit | 955 | 38 | codeparrot/github-code |
ef77f55eaf3e2a46ea87df7be25af1a6823b9c2415c8089a7f28026a2732fdd3 | using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Security.Principal;
using WebAPI.Models;
using WebAPI.Models.DTO;
using WebAPI.Models.Entities;
using WebAPI.Workers.TagSpliters;
namespace WebAPI.Workers
{
public class TagWorker
{
private readonly ModelDB _db... | C# | WebAPI/Workers/TagWorker.cs | sstu-icsp/selfmessage | mit | 3,850 | 135 | codeparrot/github-code |
c7ab7313fdfd924bcad429c199041c74a844798bd3477191fda6a5f5d2e9af2b | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Open Knowledge">
<meta name="description" content="The Global Open Data Index assesse... | HTML | place/virgin-islands-us/timetables/2013/index.html | okfn/opendataindex-2015 | mit | 8,210 | 180 | codeparrot/github-code |
73c0afb24af4c828260d803eea14ff53e14486b59b914d1b12197eaa32e6c417 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Open Knowledge">
<meta name="description" content="The state of government open data ... | HTML | place/italy/budget/2014/index.html | okfn/opendataindex-2015 | mit | 22,598 | 391 | codeparrot/github-code |
25f9b717c15adda26b8c164ac16eaa061123971a3020ac642e405eb51f873c1d | # -*- coding: utf-8 -*-
# Copyright (c) 2013–2015Molly White
#
# 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 limitation the rights
# to use, copy, mod... | Python | core.py | molly/Wikisource-to-LaTeX | mit | 3,447 | 77 | codeparrot/github-code |
4a601d257bc426fa8e7d54d3067b4665fe38507da527e374490d232036b4499c | #include "editaddressdialog.h"
#include "ui_editaddressdialog.h"
#include "addresstablemodel.h"
#include "guiutil.h"
#include <QDataWidgetMapper>
#include <QMessageBox>
EditAddressDialog::EditAddressDialog(Mode mode, QWidget *parent) :
QDialog(parent),
ui(new Ui::EditAddressDialog), mapper(0), mode(mode), mod... | C++ | src/qt/editaddressdialog.cpp | PalestineCoin/Palestinecoin | mit | 3,736 | 137 | codeparrot/github-code |
16a75639c0ba3c85c922e833c8ed7d3aec5f50417de5fbec9c589e19c3f09408 | using System;
using System.Collections.Generic;
using Reunion.Common;
using Reunion.Common.Model;
using Reunion.Common.Model.States;
using TUtils.Common;
using TUtils.Common.Extensions;
namespace Reunion.BL.Statemachines
{
/// <summary>
/// statemachine ParticipantStatemachine. see documentation.
/// Calls
/// - ... | C# | source/Reunion.BL/Statemachines/ParticipantStatemachine.cs | Tommmi/Reunion | mit | 18,200 | 541 | codeparrot/github-code |
7cc5d5d3fe7e194a0ace34bc7553a2d08b1c499b3ec1140fa47f64604ef08dfd |
require 'bixby-common'
require 'bixby/api_pool/request'
require 'bixby/api_pool/response'
require 'thread'
require 'net/http/persistent'
module Bixby
class APIPool
class << self
def client_pool(key)
@client_pool ||= Net::HTTP::Persistent.new(key)
end
def thread_pool
min_si... | Ruby | lib/bixby/api_pool.rb | chetan/bixby-api_pool | mit | 1,959 | 85 | codeparrot/github-code |
6e27f63273cd00c0ae9637538d9959dfe9de0dce14c9dfceca9ad850ecdfb138 | //
// Created by erik on 10/2/16.
//
#ifndef SOI_DIMENSIONS_H_H
#define SOI_DIMENSIONS_H_H
#include <ratio>
#include <iosfwd>
namespace std
{
template<class O, intmax_t N, intmax_t D>
basic_ostream<O>& operator<<( basic_ostream<O>& stream, ratio<N, D> ratio );
}
namespace spatacs
{
namespace physics
... | C | physics/dimensions.h | ngc92/SpaTacS | mit | 5,546 | 160 | codeparrot/github-code |
722e2c86e1d93a002797137e25dfef2eefe4b7bf17f2182c181a884ed56da93d | /**
* This file is part of Pulse, licensed under the MIT License (MIT).
*
* Copyright (c) 2014-2015 InspireNXE <http://inspirenxe.org/>
*
* 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 Softwar... | Java | src/main/java/org/inspirenxe/pulse/network/pc/PCConnectionListener.java | InspireNXE/Pulse | mit | 8,164 | 210 | codeparrot/github-code |
fd5d029de2d9abfb2b5479aed8087e1da38f9eef69d237540991188aaf6c2d69 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Linq;
using System.Reflection;
namespace FrontRangeSystems.WebTechnologies.Web.Areas.HelpPage
{
/// <summary>
/// This class will create an object of a given... | C# | FrontRangeSystems.WebTechnologies/FrontRangeSystems.WebTechnologies.Web/Areas/HelpPage/SampleGeneration/ObjectGenerator.cs | frontrangesystems/webtechnologies | mit | 19,519 | 456 | codeparrot/github-code |
280e661dab5b2b1d14da1ba6827c09ff2e4c8b05047bfd2785d031108ba967d4 | #ifndef REVOLC_GLOBAL_MODULE_H
#define REVOLC_GLOBAL_MODULE_H
#include "build.h"
#include "core/dll.h"
#include "core/cson.h"
#include "global/cfg.h"
#include "resources/resource.h"
struct World;
typedef void (*InitModuleImpl)();
typedef void (*DeinitModuleImpl)();
typedef void (*WorldGenModuleImpl)(struc... | C | code/source/global/module.h | crafn/revolc | mit | 1,570 | 51 | codeparrot/github-code |
123035944b00bd7b6d71ea946bb03f303cee25d483da0fb97aa6d68e965e37d4 | 'use strict';
const autoprefixer = require('autoprefixer');
const path = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const ManifestPlugin = require('webpack-manifest-plugin');
const Inte... | JavaScript | frontend/config/webpack.config.prod.js | plusbeauxjours/nomadgram | mit | 15,891 | 352 | codeparrot/github-code |
8f56e50b82d23f1a8c76a53cd2494c20876d252ac8633fb849ada3f74f1757d5 | #!/bin/bash
export LC_NUMERIC=C;
SDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)";
[ "$(pwd)/utils" = "$SDIR" ] || {
echo "Run the script from \"$(dirname $SDIR)\"!" >&2 && exit 1;
}
[ ! -f "$(pwd)/utils/parse_options.inc.sh" ] && \
echo "Missing $(pwd)/utils/parse_options.inc.sh file!" >&2 && exit 1;
ctc... | Shell | egs/iam/utils/build_char_backoff_lm.sh | jpuigcerver/Laia | mit | 8,016 | 218 | codeparrot/github-code |
84d0c7cc3e781aad71addd4fa4bd2baa6348a2dde6f52e7b2b0f72868128c5ae | <?php
include_once 'dbConn.php';
include_once 'functions.php';
include_once 'formItem.php';
session_start();
$loggedIn = (adminLoggedIn() || camperLoggedIn());
$campName = "Camp Ramah";
$hint = "No hint available";
$adminEmail = "";
$db = new DbConn();
$err = "";
$sql = "SELECT camp_name, regular_user_token_hint, adm... | PHP | chugbot/index.php | dlobron/ChugBot | mit | 2,597 | 91 | codeparrot/github-code |
d6afe3eef545441c290b0a2b13d7e572e16dd6d3fb9e5b631dbb6d40fb198eec | package com.github.dreamhead.moco.handler;
import com.github.dreamhead.moco.MocoConfig;
import com.github.dreamhead.moco.ResponseHandler;
import com.github.dreamhead.moco.internal.SessionContext;
import com.google.common.collect.ImmutableList;
import java.util.stream.Collectors;
import static com.google.common.colle... | Java | moco-core/src/main/java/com/github/dreamhead/moco/handler/CollectionHandler.java | dreamhead/moco | mit | 1,256 | 38 | codeparrot/github-code |
e97a05f71643ec27ce5de2427d1f9c16e3c3f452f494dd92c3972d0da4f90a82 | //
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include "ParserFlatbuffersSerializeFixture.hpp"
#include <armnnDeserializer/IDeserializer.hpp>
#include <string>
TEST_SUITE("Deserializer_Reshape")
{
struct ReshapeFixture : public ParserFlatbuffersSerializeFixture
{
explici... | C++ | src/armnnDeserializer/test/DeserializeReshape.cpp | ARM-software/armnn | mit | 4,880 | 126 | codeparrot/github-code |
42998f395d4bf57db3ba279e2426d2427ec9c68cc396acfa2c548d716c09fc99 | 'use strict';
// Teams controller
angular.module('teams').controller('TeamsController', ['$scope', '$stateParams', '$location', 'Authentication', 'Teams', 'Players', '$filter',
function($scope, $stateParams, $location, Authentication, Teams, Players, $filter) {
$scope.authentication = Authentication;
// Create n... | JavaScript | public/modules/teams/controllers/teams.client.controller.js | nithinreddygaddam/ScoreNow | mit | 1,559 | 70 | codeparrot/github-code |
84149491abc1e005e11f9b528201615f486d74d37a117a1401a686ce6a3f9b3b | /*
* selectors.cpp
*
* Created on: 10/07/2015
*
* =========================================================================
* Copyright (C) 2015-, Daniele De Sensi (d.desensi.software@gmail.com)
*
* This file is part of nornir.
*
* nornir is free software: you can redistribute it and/or
* modify it under... | C++ | src/selectors.cpp | DanieleDeSensi/nornir | mit | 63,511 | 1,860 | codeparrot/github-code |
32dbc00dff282f7e689d90e842a78355917849d84496498b2fe3c5982dcac928 | package info.jchein.apps.nr.codetest.ingest.app;
import info.jchein.apps.nr.codetest.ingest.config.IngestConfiguration;
import info.jchein.apps.nr.codetest.ingest.config.ParametersConfiguration;
import info.jchein.apps.nr.codetest.ingest.messages.EventConfiguration;
import org.springframework.beans.factory.annotation... | Java | readnums-app/src/main/java/info/jchein/apps/nr/codetest/ingest/app/SpringMain.java | jheinnic/reactor-readnums | mit | 1,517 | 46 | codeparrot/github-code |
f5f1958aeddda66dedd651e75ac3f154a7429818f5150ce7c4953d2bac9e0780 | /* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */
/* eslint no-console: ["error", { allow: ["log"] }] */
const gulp = require('gulp');
const modifyFile = require('gulp-modify-file');
const path = require('path');
const rollup = require('rollup');
const buble = require('rollup-plugin-b... | JavaScript | scripts/build-ks-vue.js | AdrianV/Framework7 | mit | 2,621 | 77 | codeparrot/github-code |
001ae23c3f948fbcbf18d4d5fd8ba25e739386b562da56c76e1b8d58e0d0b9f7 | /*
* Angular 2 decorators and services
*/
import {
Component,
OnInit,
ViewEncapsulation
} from '@angular/core';
import {LocationStrategy, PlatformLocation, Location} from '@angular/common';
import * as $ from 'jquery';
import {AppRunner} from './core/appRunner';
/*
* App Component
* Top Level Component... | TypeScript | src/app/app.component.ts | antpost/antpost-client | mit | 948 | 49 | codeparrot/github-code |
a4862f7abe57a47fb5c8991eca42c3099211f65b8a9d70104ea054e006700515 | <?php
namespace Richpolis\ShoppingCartBundle\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBund... | PHP | src/Richpolis/ShoppingCartBundle/Controller/CategoriaProductoController.php | richpolis/sf2Maldivino | mit | 7,257 | 248 | codeparrot/github-code |
8fd981ce4f72cacf01c6322872bb247cda86865303fd3e17af16d17ff633cf7f | namespace ArmyOfCreatures.Extended.Specialties
{
using System;
using System.Globalization;
using ArmyOfCreatures.Logic.Specialties;
public class DoubleDamage : Specialty
{
private int rounds;
public DoubleDamage(int rounds)
{
if (rounds <= 0)
{
... | C# | 03.C Sharp OOP/Exam OOP/Problem2/Source/ArmyOfCreatures/Extended/Specialties/DoubleDamage.cs | enchev-93/Telerik-Academy | mit | 1,389 | 51 | codeparrot/github-code |
f52d95b153a9de530324cfe0a377f387af867ce383608c5c33c7b65e2372c617 | using System;
using System.Collections.Generic;
using System.Data.SQLite;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DescontosFidelidade
{
public static class DbHelper
{
public const string DbFileName = @".dados";
public static string BackupA... | C# | src/DescontosFidelidade/DBHelper.cs | chalkmaster/TabelaDescontos | mit | 3,614 | 104 | codeparrot/github-code |
c057e30948c94b8a4e179bdbd6dd7d967050886cb0ce898599df58e94a5443e3 | ---
redirect_from: /docs/latest/interfaces/ng1.__uirouter_core_lib_router_.uirouter.html
---
<!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>UIRouter | @uirouter/angularjs</title>
<meta name="description" content="">
<meta name... | HTML | _ng1_docs/latest/interfaces/ng1.__uirouter_core_lib_router_.uirouter.html | ui-router/ui-router.github.io | mit | 12,071 | 257 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.