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 |
|---|---|---|---|---|---|---|---|---|
bb1a123332c5d0f9e3b48f22a52986a9794d2844565e6a052b6e0c008a8b05ca | import MailPreview from '../components/MailPreview.vue';
import icons from "trumbowyg/dist/ui/icons.svg";
import "trumbowyg/dist/ui/trumbowyg.css";
import "trumbowyg/dist/trumbowyg.js";
import "./trumbowyg-snippets-plugin.js";
$.trumbowyg.svgPath = icons;
window.remplib = typeof(remplib) === 'undefined' ? {} : window... | JavaScript | Mailer/extensions/mailer-module/assets/js/forms/mailPreview.js | remp2020/remp | mit | 7,471 | 189 | codeparrot/github-code |
b820d7895a1bd47dcabc3e332b129debac2688af7712885a1ef3b5345c9cf62d | /**
* Created by RSC on 05.04.2016.
*/
myApp.factory('HomeWatchFactory', function ($http, $q, $rootScope, $log) {
return {
getFhemJsonList: function (name, type) {
var url = '';
if ($rootScope.config.connection.isDebug) {
url = 'json/homewatch/data/' + name + '.j... | JavaScript | js/services/api/hw.api.homewatch.jsonlist.js | RainerSchulz/HomeWatch | mit | 2,128 | 64 | codeparrot/github-code |
b012209bdd26895f71650e018a8d609fed5535b0aa5e99b993891540ea0502c9 | using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
using System.Runtime.Serialization;
namespace HTLib2
{
[Serializable]
public partial class MatrixByColRow : Matrix
{
//////////////////////////////////////////////////////////////////////////////... | C# | HCsbLib/HCsbLib/HTLib2/HMath.Numerics.Matrix/MatrixByColRow.cs | htna/HCsbLib | mit | 3,062 | 98 | codeparrot/github-code |
06d8f9a7e056419e7b46a1e8b62bd802e02c7314c43b7d854924e0b8d753f3c4 | package ua.com.fielden.platform.sample.domain;
import ua.com.fielden.platform.entity.AbstractEntity;
import ua.com.fielden.platform.entity.DynamicEntityKey;
import ua.com.fielden.platform.entity.annotation.CompanionObject;
import ua.com.fielden.platform.entity.annotation.CompositeKeyMember;
import ua.com.fielden.platf... | Java | platform-pojo-bl/src/main/java/ua/com/fielden/platform/sample/domain/TgOrgUnit3.java | fieldenms/tg | mit | 1,556 | 53 | codeparrot/github-code |
0a5534167e04e00aa7396fda8b89180146abc1c5caaea8a3c0618a2e8aa86283 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>isopretreatmenttypes - neotoma Database</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, max... | HTML | dbschema/tables/isopretreatmenttypes.html | NeotomaDB/neotomadb.github.io | mit | 20,251 | 319 | codeparrot/github-code |
c94d4e6e9c0ff236823f781536e6e2ea3ee2f924c3c14fe318ceb8b2e6d645d8 | package net.blay09.mods.bmc.chat;
import com.google.common.collect.Maps;
import net.minecraft.util.text.TextFormatting;
import java.util.Map;
import java.util.Random;
public class RandomNameColors {
private static final Random random = new Random();
private static final TextFormatting[] VALID_COLORS = new TextFor... | Java | src/main/java/net/blay09/mods/bmc/chat/RandomNameColors.java | blay09/BetterMinecraftChat | mit | 1,064 | 41 | codeparrot/github-code |
1b4490753729a5db25c9ea6f8733d68a04a914053aa228c7632e03813aad419c | #define _POSIX_SOURCE
#define _POSIX_C_SOURCE 200112L
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
int main(int argc, char**argv){
if ((argc != 2) || (0 == strcmp(argv[1], "-h"))){
printf("usage: %s path\n", argv[0]);
return 1;
}
int retval = 0;
/* p... | C | readlink.c | zorts/external_links | mit | 1,508 | 55 | codeparrot/github-code |
fe372ea15e8bc8c285e014a9bb0a69c9c30acc72fc87a3789160e1e79ce97ff5 | public class Heap {
public static <E extends Comparable<E>> void sort(E[] array) {
constructHeap(array);
sortHeap(array);
String debug = "";
}
private static <E extends Comparable<E>> void sortHeap(E[] array) {
for (int i = array.length - 1; i >= 1; i--) {
swap(... | Java | DataStructures/BinaryHeap/src/main/java/Heap.java | yangra/SoftUni | mit | 1,445 | 52 | codeparrot/github-code |
2d35598b41d586a851918ad7d685aa61c923226ec91fd83730771201786b83dd | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package HW09_101044044;
/**
* CSE241_HW09 Samet Sait Talayhan 101044044
*/
/**
* @author talayhan
*
*/
public class Family {
// Data fields
private Person father = null;
private Person mother... | Java | cse241hw09/Family.java | stalayhan/OOP | mit | 3,888 | 168 | codeparrot/github-code |
fcef7dde2495d8c4c53a71a7d80efa3545d121e6c85bae3698530a9ec8878341 | <?php defined('BASEPATH') OR exit('No direct script access allowed');
class AboutUs extends CI_Controller
{
/**
* AboutUs constructor.
*/
public function __construct()
{
parent::__construct();
if(!is_validated()){
redirect(BASEURL);
}
$this->load->model... | PHP | application/controllers/AboutUs.php | chinice/CodeigniterCMS | mit | 4,906 | 166 | codeparrot/github-code |
783ccbb6200cfa210b2e7d34734ab467568bf7fb1d513c3a9e8ec03e6920d9b3 | package com.pcalouche.spat.config;
import com.pcalouche.spat.interceptors.LoggerInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.sprin... | Java | spat-services/src/main/java/com/pcalouche/spat/config/WebConfig.java | pcalouche/spat | mit | 1,424 | 41 | codeparrot/github-code |
4e2598c27a2f505b544bcec9262496dda9a7357fa614be5e8de6474d20743a42 | import { Component } from '@angular/core';
import { NavController, NavParams, LoadingController, ToastController } from 'ionic-angular';
import { FilePath, Transfer } from 'ionic-native';
import { File } from '@ionic-native/file';
import { Http, Headers } from '@angular/http';
/*
Generated class for the Download pag... | TypeScript | src/pages/download/download.ts | YMistake/Application-for-Industrial-Training-Course | mit | 2,135 | 73 | codeparrot/github-code |
7f40f515652a906c29ad44ac94f74debf3d59ca4451393585244d45e3cf46318 | <?php
class IndexController extends Zend_Controller_Action
{
/**
* @var Zend_Auth
*
*/
protected $_auth = null;
public function init()
{
$this->_auth = Zend_Auth::getInstance();
}
public function indexAction()
{
//$this->view->current_date_and_time = date(... | PHP | application/controllers/IndexController.php | Sylvareth/DataSpotGhent | mit | 807 | 48 | codeparrot/github-code |
aae78416e5b009f95bca3045dc8532dcf9f56b63499357db0230773f78519396 | 'use strict';
var maxBot = 11;
var mode;
var mw = {};
var mwId;
function getMwId() {
mwId = $.url().segment(4);
}
function isNewMicroworld() {
return ($.url().segment(3) === 'new');
}
function showStatusTableOptions() {
var behaviour_name = $(this).attr('id');
var behaviour_type = $(this).text();
... | JavaScript | public/js/microworld.js | jorgearanda/fish | mit | 23,070 | 682 | codeparrot/github-code |
0dce03ec4ef6ddff0969b55cd550e423d0dbf2f7f4f056d4a720b10194fb95bd | <?php
namespace Bixie\Userprofile\User;
use Bixie\Userprofile\Model\Profilevalue;
use Pagekit\Application as App;
use Pagekit\User\Model\User;
use Pagekit\Util\Arr;
class ProfileUser implements \JsonSerializable
{
use ProfileUserTrait;
/**
* @var integer
*/
public $id;
/**
* @var User
*/
protected $u... | PHP | packages/bixie/userprofile/src/User/ProfileUser.php | yaelduckwen/e-pagekit | mit | 5,307 | 219 | codeparrot/github-code |
b23e146598ef16c01a8975422382f91339928298a89870febf4c020c4cf1d496 | package net.tofweb.starlite;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import java.util.LinkedList;
import org.junit.Before;
import org.ju... | Java | src/test/java/net/tofweb/starlite/CellSpaceTest.java | LynnOwens/starlite | mit | 5,440 | 200 | codeparrot/github-code |
3f68bac971510c169934a67195848c607ad1ba843cd977ea80c419def8da9275 | /**
* The MIT License (MIT)
*
* Copyright (c) 2014-2017 Marc de Verdelhan & respective authors (see AUTHORS)
*
* 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, incl... | Java | ta4j/src/main/java/eu/verdelhan/ta4j/indicators/trackers/DirectionalMovementIndicator.java | enkara/ta4j | mit | 2,472 | 61 | codeparrot/github-code |
e3426d8c735b16bacd45f1cbfc61ca6ae24b476db051c66f88c81493bd4fc82c | <?php
/**
* SiteCLI - Help you manage Nginx local development configuration
*
* @author panlatent@gmail.com
* @link https://github.com/panlatent/site-cli
* @license https://opensource.org/licenses/MIT
*/
namespace Panlatent\SiteCli\Site;
use ArrayIterator;
use InvalidArgumentException;
abstract class Node ... | PHP | src/Site/Node.php | panlatent/site-cli | mit | 1,496 | 71 | codeparrot/github-code |
e6e4c7a58b04c98fc05bdc83b07d02ba314a2f9a0e50dd532ca54b2c293acbd5 | package org.jsoup.integration;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.ServerConnector;
import org.eclipse.jetty.servlet.ServletHandler;
import org.jsoup.integration.servlets.BaseServlet;
import java.util.concurrent.atomic.AtomicInteger;
public class TestServer {
private static fi... | Java | src/test/java/org/jsoup/integration/TestServer.java | angcyo/jsoup | mit | 1,758 | 60 | codeparrot/github-code |
1c961d8ea1aea79aaa8cf5a08646e2588232b20c88f65a48b1dbf58d7e235b6f | # coding: utf-8
"""
Модуль с преднастроенными панелями-деевьями
"""
from __future__ import absolute_import
from m3.actions.urls import get_url
from m3_ext.ui import containers
from m3_ext.ui import controls
from m3_ext.ui import menus
from m3_ext.ui import render_component
from m3_ext.ui.fields import ExtSearchField
... | Python | src/m3_ext/ui/panels/trees.py | barsgroup/m3-ext | mit | 9,147 | 244 | codeparrot/github-code |
f7009821f46ad4d1b71a7e56a0c5cdf73445abee7be6fbfa893d42588a349075 | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="RenderingExtensions.cs" company="OxyPlot">
// Copyright (c) 2014 OxyPlot contributors
// </copyright>
// <summary>
// Provides extension methods for <see cref="IRenderContext"... | C# | Source/OxyPlot/Rendering/RenderContext/RenderingExtensions.cs | rahulpatil2009/oxyplot2 | mit | 42,191 | 1,048 | codeparrot/github-code |
a568da8881896167edc9d8eead8b57d43afda1c6aa6096be357fba8e4e2180b8 | from keras.models import Sequential, model_from_json
from keras.layers import Dense, Dropout, Activation, Flatten, Convolution2D, MaxPooling2D, Lambda, ELU
from keras.layers.normalization import BatchNormalization
from keras.optimizers import Adam
import cv2
import csv
import numpy as np
import os
from random import r... | Python | Term1/04-CarND-Behavioral-Cloning/model.py | shernshiou/CarND | mit | 6,595 | 206 | codeparrot/github-code |
58e34e63638b634197367c18bc4fdd7618828739207c5826347e21f6cc57e1a5 | package it.cavallium.warppi.teavm;
import java.io.PrintWriter;
import java.net.URL;
import java.util.HashMap;
import java.util.Map;
import org.teavm.jso.browser.Window;
import org.teavm.jso.dom.html.HTMLDocument;
import it.cavallium.warppi.Platform;
import it.cavallium.warppi.gui.graphicengine.GraphicEngi... | Java | teavm/src/main/java/it/cavallium/warppi/teavm/TeaVMPlatform.java | XDrake99/WarpPI | mit | 6,772 | 222 | codeparrot/github-code |
2f033ae8f411f17ba2a0014b92df1314ab765052091c73f9d18acf453fbecbc5 | package pool
import (
"fmt"
"net"
)
const (
_net = "udp4" //
)
func createUDPConnection(address string) (*net.UDPConn, error) {
addr, err := net.ResolveUDPAddr(_net, address)
if err != nil {
return nil, err
}
conn, err := net.DialUDP(_net, nil, addr)
if err != nil {
return nil, err
}
return conn, nil
... | GO | pool/udp.go | duythinht/gelf | mit | 1,146 | 73 | codeparrot/github-code |
d66cab9f3984815611858716c2c7c4c0ef54bf56fb71dbfb81eb1f517849ba35 | <?php
namespace Jac\ContactBundle\Entity;
class Contact
{
protected $address;
protected $comments;
protected $companyName;
protected $emailAddress;
protected $faxNumber;
protected $fullName;
protected $phoneNumber;
protected $position;
protected $whereDidYouLearnAboutUs;
/* ... | PHP | src/Jac/ContactBundle/Entity/Contact.php | cdelafuente/jac | mit | 1,999 | 126 | codeparrot/github-code |
a547c7a616db18429b4fdc6a6e91eab6da4bd756616e24c2daf6d30dcc4ec5f8 | <?php
namespace SymphonyCms\Toolkit;
use \SymphonyCms\Symphony;
use \SymphonyCms\Toolkit\Section;
use \SymphonyCms\Toolkit\EntryManager;
use \SymphonyCms\Toolkit\FieldManager;
/**
* The `SectionManager` is responsible for managing all Sections in a Symphony
* installation by exposing basic CRUD operations. Section... | PHP | symphony/lib/SymphonyCms/Toolkit/SectionManager.php | designermonkey/symphony-psr | mit | 12,980 | 371 | codeparrot/github-code |
e99de6e56eb3dd0102e0806bebfd0d3eae6fdecac867f4a6660de51193304cd4 | #if FILESYSTEM
using System;
using RoaringDB.Storage;
namespace RoaringDB.Operations.Storage
{
internal class WriteDataOp : WriteOp
{
public int BitmapIndex { get; }
public WriteDataOp(DbFile file, int index, byte[] data, int offset, int count)
: base(file, file.Containers[index].... | C# | src/RoaringDB/Operations/Storage/WriteDataOp.cs | RogueException/RoaringDB | mit | 934 | 31 | codeparrot/github-code |
6591830099a7d7d6212a5ae3107802a4b45f2b901642f4ee9fce60fd2fdaa0ef |
var q = require("./quasi");
exports.ps = function (opt) {
opt = opt || {};
var strokeWidth = opt.strokeWidth || "0.015";
if (opt.color) console.error("The ps module does not support the `color` option.");
// PS header
var ret = [
"%%!PS-Adobe-1.0 "
, "%%%%BoundingBox: -1 -1 76... | JavaScript | lib/ps.js | darobin/quasi | mit | 2,203 | 77 | codeparrot/github-code |
98d0f5e275b9c26e76a7baddd5f3fee9f1cc546ec34dd6affa76bdae711c629d | package org.codehaus.xfire.aegis.example;
import javax.xml.namespace.QName;
import org.codehaus.xfire.aegis.AbstractXFireAegisTest;
import org.codehaus.xfire.aegis.AegisBindingProvider;
import org.codehaus.xfire.aegis.type.TypeMapping;
import org.codehaus.xfire.aegis.type.basic.BeanType;
import org.codehaus.xfire.ser... | Java | xfire-aegis/src/test/org/codehaus/xfire/aegis/example/CustomTypeTest.java | eduardodaluz/xfire | mit | 4,341 | 95 | codeparrot/github-code |
be418c8834854b5c5a6926b1bc320fca4db64ea926d5fcb780220fe170f3b5a5 | using System;
using Melanchall.DryWetMidi.Common;
namespace Melanchall.DryWetMidi.Devices
{
/// <summary>
/// Holds settings for <see cref="MidiClock"/> used by a clock driven object.
/// </summary>
public sealed class MidiClockSettings
{
#region Fields
private Func<TickGenerator>... | C# | DryWetMidi/Devices/Clock/MidiClockSettings.cs | melanchall/drymidi | mit | 1,002 | 37 | codeparrot/github-code |
df90300aabeb84c6f1aef2c5cf5fb8162f13a330af63ba45c97994a963846cc6 | package com.dodola.animview;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.os.AsyncTask;
import android.text.Html;
import android.util.AttributeSet;
import android.widget.TextView;
import com.n... | Java | app/src/main/java/com/dodola/animview/ImageTextView.java | andylyao/ImageTextView | mit | 3,068 | 98 | codeparrot/github-code |
6ac9e719a8d44be11d0e6f91bfe808527294fbf1e5763b9c7135921644cf2cf5 | package com.peterpotts.common.sample
/**
* Sample data generator trait that incorporates for-comprehension.
*/
trait Sample[+A] {
def next(): A
def flatMap[B](function: A => Sample[B]): Sample[B] = new FlatMapSample[A, B](this, function)
def map[B](function: A => B): Sample[B] = new MapSample[A, B](this, fun... | Scala | src/main/scala/com/peterpotts/common/sample/Sample.scala | peterpotts/mobius | mit | 1,458 | 54 | codeparrot/github-code |
14b4dd7b82623d2b0326e6a517d73906b873f9b468705cab4db4d034e1b46cb4 | package view;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.util.Observable;
import java.util.Observer;
import javax.swing.ImageIcon;
im... | Java | Assesment/src/view/WelcomePanel.java | darthsitthiander/DP2-Duckhunt | mit | 5,249 | 130 | codeparrot/github-code |
ee1202ab2687dbfcef412056cae0aaaf25061eba94ece7050f540a8c1b03df97 | using Microsoft.Azure.Mobile.Server;
namespace myshoppe_demoService.DataObjects
{
public class Store : EntityData
{
public string Name { get; set; }
public string LocationHint { get; set; }
public string StreetAddress { get; set; }
public string City { get; set; }
pub... | C# | Backend/myshoppe_demoService/DataObjects/Store.cs | jamesmontemagno/MyShoppe | mit | 1,362 | 41 | codeparrot/github-code |
3b2a5bc2327b9ef5131ce3d0a46d65bfba43e12037b3db4d3c93bd1039579eab | /*
* Array2D.java Jul 14, 2004
*
* Copyright (c) 2004 Stan Salvador
* stansalvador@hotmail.com
*/
package com.tum.ident.fastdtw.matrix;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
public class Array2D
{
// PRIVATE DATA
final private ArrayList<ArrayList<Object>> ... | Java | servlet/src/com/tum/ident/fastdtw/matrix/Array2D.java | androididentification/android | mit | 3,000 | 161 | codeparrot/github-code |
912dad4fe450057ff18f1080343ef53f06e3ad2e40f3bd685a4724e4d9847d83 | /*
The MIT License
Copyright (c) 2008 Dennis Møllegaard Pedersen <dennis@moellegaard.dk>
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 righ... | C | src/mainframe_impl.h | dennis/bzlauncher | mit | 3,303 | 117 | codeparrot/github-code |
fc9d7a2b997da8429d66fd1ddac3259eed377938534888921bcc8343bfec49b5 | var roshamboApp = angular.module('roshamboApp', []),
roshambo=
[
{
name:'Rock',
src:'img/rock.png'
},
{
name:'Paper',
src:'img/paper.png'
},
{
name:'Scissors',
src:'img/scissors.png'
}
],
roshamboMap=roshambo.reduce(function... | JavaScript | app/app.js | timfulmer/jswla-advanced | mit | 1,479 | 48 | codeparrot/github-code |
149324548292c3a84362c24f55e01314c4f88cc1f9205b27de9d3f8602e163c1 | import random
class ai:
def __init__(self, actions, responses):
self.IN = actions
self.OUT = responses
def get_act(self, action, valres):
if action in self.IN:
mList = {}
for response in self.OUT:
if self.IN[self.OUT.index(response)] == ... | Python | Module/Stixai.py | iTecAI/Stixai | mit | 1,343 | 45 | codeparrot/github-code |
4b9e1350a8faa4feca0ea56c295e05286518452959d9bb0f3d214d0fb8fad81d | /**
* highcharts-ng
* @version v0.0.13 - 2016-10-04
* @link https://github.com/pablojim/highcharts-ng
* @author Barry Fitzgerald <>
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
if (typeof module !== 'undefined' && typeof exports !== 'undefined' && module.exports === exports){
module.export... | JavaScript | Scripts/tubular/tubular-highcharts-bundle.js | unosquare/tubular-boilerplate-csharp | mit | 21,488 | 629 | codeparrot/github-code |
cbe615f60e2281f15ccd2d1b2318a4e80d9a258900e06b72bf399aa2739fb86d | /** moduleBank constants * */
import { ModuleCode } from '../types/modules';
export const FETCH_MODULE = 'FETCH_MODULE' as const; // Action to fetch modules
export const FETCH_MODULE_LIST = 'FETCH_MODULE_LIST' as const;
export const UPDATE_MODULE_TIMESTAMP = 'UPDATE_MODULE_TIMESTAMP' as const;
export const REMOVE_LRU... | TypeScript | website/src/actions/constants.ts | nusmodifications/nusmods | mit | 1,288 | 40 | codeparrot/github-code |
cf0164cab82f6fa5e1ad08b3f968d2707c9df2c07a0d6c83bfb5afae6893f976 | // -*- C++ -*-
//=============================================================================
/**
* @file SchedEntry.h
*
* $Id: SchedEntry.h 935 2008-12-10 21:47:27Z mitza $
*
* @author Chris Gill <cdgill@cs.wustl.edu>
*/
//=============================================================================
#i... | C | orbsvcs/Sched/SchedEntry.h | binary42/OCI | mit | 20,476 | 656 | codeparrot/github-code |
8f00c39e93c3cf25fd078b70a11498a34b35782d436cb45558a12bfae77addf5 | # pylint: disable-msg=too-many-lines
"""OPP Hardware interface.
Contains the hardware interface and drivers for the Open Pinball Project
platform hardware, including the solenoid, input, incandescent, and neopixel
boards.
"""
import asyncio
from collections import defaultdict
from typing import Dict, List, Set, Union,... | Python | mpf/platforms/opp/opp.py | missionpinball/mpf | mit | 53,276 | 1,121 | codeparrot/github-code |
4ebad9e67c71880d0de94210608bcdf83a18ccfe7f232635b6069db6d312f31d | /* hourly.h -*- C++ -*-
** Include file for Hourly class
**
** COPYRIGHT (C) 1994 Bradley M. Kuhn
**
** Written : Bradley M. Kuhn Loyola College
** By
**
** Written : David W. Binkley Loy... | C | include/llvm/projects/test-suite/MultiSource/Benchmarks/Prolangs-C++/employ/hourly.h | ensemblr/llvm-project-boilerplate | mit | 2,732 | 108 | codeparrot/github-code |
71515dac3f8244c4723a85be681722201b3cbec9f4bdee1820c4dca6a652953f | from django.db import models
from constituencies.models import Constituency
from uk_political_parties.models import Party
from elections.models import Election
class Person(models.Model):
name = models.CharField(blank=False, max_length=255)
remote_id = models.CharField(blank=True, max_length=255, null=True)... | Python | electionleaflets/apps/people/models.py | JustinWingChungHui/electionleaflets | mit | 1,603 | 50 | codeparrot/github-code |
4ddb9a549fc28143b45a37cf817dca4b2538f2d9980427a2ea8c8c640171b1f8 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>flocq: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" ... | HTML | clean/Linux-x86_64-4.07.1-2.0.6/released/8.11.1/flocq/2.6.1.html | coq-bench/coq-bench.github.io | mit | 6,626 | 162 | codeparrot/github-code |
8f372a1280cb7cf4317882f382e7eefe4562781daab500806ee2f1b6f23fb1fe | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>lens: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" r... | HTML | clean/Linux-x86_64-4.02.3-2.0.6/released/8.7.0/lens/1.0.1+8.11.html | coq-bench/coq-bench.github.io | mit | 6,835 | 172 | codeparrot/github-code |
0526fbf59d1fda68f05c73882f4175ce4e426ebdefc3d2a545b08778c99f3dba | using System;
using System.Collections.Generic;
using System.Linq;
namespace Slack.Api
{
public static class ProfileHelper
{
public static User GetProfile(ICollection<User> users, string userId)
{
if (users == null)
{
throw new ArgumentNullException(name... | C# | Slack.Api/ProfileHelper.cs | vamone/Slack-Notification-Desktop-App | mit | 848 | 35 | codeparrot/github-code |
4ea1fc213b85f0d8056c5cab81a9517bf37f61ed66909dc53676029d4bda536f | package com.integpg.synapse.actions;
import com.integpg.logger.FileLogger;
import java.io.IOException;
import java.util.Json;
public class CompositeAction extends Action {
private String[] _actions;
public CompositeAction(Json json) {
_actions = (String[]) json.get("Actions");
ActionHa... | Java | src/com/integpg/synapse/actions/CompositeAction.java | kmcloutier/synapse | mit | 998 | 44 | codeparrot/github-code |
029a5364d90f8bb15e43e754f1e7f7eb92ad79d6667b508c9326533e6c2a80ed | {% extends "index.html" %}
{% from "macro.html" import error3list with context %}
{% block errorFalshPositionFixed %}
{% include 'flash_warning.html' %}
{{ error3list(formWorker.errors.worker_name) }}
{{ error3list(formWorker.errors.worker_sex) }}
{{ error3list(formWorker.errors.worker_birthday) }}
... | HTML | app/templates/searchworker.html | Ayi-/flask_HRmanager | mit | 19,916 | 489 | codeparrot/github-code |
998380513f23e06b23ebc57d857655b97860133d7a4c50473b5842ffe03122b3 | /**
* options.js
*
* A test helper to detect which html-snapshots options to use
*
* phantomjs
* If a global phantomjs is defined, decorates html-snapshots options to specify that global
* In some test environments (travis), local phantomjs will not install if a global is found.
*/
const spawn = require("chil... | JavaScript | test/helpers/options.js | localnerve/grunt-html-snapshots | mit | 787 | 32 | codeparrot/github-code |
76936600d4a8f89b4a8549b0ed7729224795f181a0972426d9c41584f179c61d | using CharacterGen.Feats;
using CharacterGen.Abilities;
using CharacterGen.Races;
using System.Collections.Generic;
using System.Linq;
namespace CharacterGen.Domain.Selectors.Selections
{
internal class RacialFeatSelection
{
public string Feat { get; set; }
public int MinimumHitDieRequirement ... | C# | CharacterGen.Domain/Selectors/Selections/RacialFeatSelection.cs | DnDGen/CharacterGen | mit | 2,495 | 70 | codeparrot/github-code |
b9b9d51f463c17194b2bad986201b41417399dd6c22f9c74ad5ba7b90c7215b0 | /*
* Copyright (c) 2012-2014 André Bargull
* Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms.
*
* <https://github.com/anba/es6draft>
*/
const {
assertSame,
assertDataProperty,
assertBuiltinConstructor,
assertBuiltinPrototype,
} = Assert;
function assertFunctionProperty(obj... | JavaScript | src/test/scripts/suite/objects/Promise/surface.js | rwaldron/es6draft | mit | 1,760 | 54 | codeparrot/github-code |
29ac6af3d503241937e0fbe2367840d794393fcf9d1640d77dd1ad6fcc125899 | /*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v1.0.0-rc5-master-76c6299
*/
goog.provide('ng.material.components.backdrop');
goog.require('ng.material.core');
/*
* @ngdoc module
* @name material.components.backdrop
* @description Backdrop
*/
/**
* @ngdoc directive
* @na... | JavaScript | bower_components/angular-material/modules/closure/backdrop/backdrop.js | devMonkies/FSwebApp | mit | 2,440 | 78 | codeparrot/github-code |
272d6eef1065ce723c2642cde35643210f012085e3950113c453ed70b49a7916 | import json
from app import models
from django.test import Client, TestCase
from django.contrib.auth.hashers import make_password
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
# Create your tests here.
class TestLecturerWeb(TestCase):
def _init_test_lecturer(self):
... | Python | server/lecturer/tests.py | malaonline/Server | mit | 3,953 | 105 | codeparrot/github-code |
7417d76fb737fb7404acc29ece541f4d5f2bee26bd964534d7834330cb6584e3 | #pragma once
#ifndef _TERRAINCLASS_H_
#define _TERRAINCLASS_H_
#include <d3d11.h>
#include <DirectXMath.h>
#include <stdio.h>
#include <math.h>
#include "textureclass.h"
const int TEXTURE_REPEAT = 16;
class TerrainClass
{
private:
struct VertexType
{
DirectX::XMFLOAT3 position;
DirectX::XMFLOAT2 texture;
Dir... | C | Engine/TerrainClass.h | Cassio90/engine | mit | 1,238 | 68 | codeparrot/github-code |
7a821807d7036474ead344ebd0210c041c9a6b7234985e338756dc8371ae78e2 | // DBMWriter.h: interface for the CDBMWriter class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_DBMWRITER_H__C1FF6E3E_45BA_478C_88E2_D2CB3C061575__INCLUDED_)
#define AFX_DBMWRITER_H__C1FF6E3E_45BA_478C_88E2_D2CB3C061575__INCLUDED_
#include "windows.h"
#include "Str.h"
c... | C | DBProCompiler/DBPCompiler/DBMWriter.h | LeeBamberTGC/Dark-Basic-Pro | mit | 1,138 | 40 | codeparrot/github-code |
d69330152b3b7d2b9d8056e64bb7735388ca496358ca953772207f66666823e9 | #ifndef __tc_function_h__
#define __tc_function_h__
#include <atomic>
namespace tc {
#define TC_FUNCTION_TD_0 typename R
#define TC_FUNCTION_TD_1 TC_FUNCTION_TD_0 , typename A1
#define TC_FUNCTION_TD_2 TC_FUNCTION_TD_1 , typename A2
#define TC_FUNCTION_TD_3 TC_FUNCTION_TD_2 , typename A3
#define TC_FUNCTION_TD_4 TC_... | C++ | srcs/tc.common/function.hpp | aoziczero/deprecated-libtc | mit | 8,097 | 270 | codeparrot/github-code |
547d61f61b361e025adc0a192867cff109f6318379e4ee38408bbc3d170f4c60 | const errors = require('@tryghost/errors');
const should = require('should');
const sinon = require('sinon');
const fs = require('fs-extra');
const moment = require('moment');
const Promise = require('bluebird');
const path = require('path');
const LocalFileStore = require('../../../../../core/server/adapters/storage/L... | JavaScript | test/unit/server/adapters/storage/LocalFileStorage.test.js | janvt/Ghost | mit | 9,369 | 255 | codeparrot/github-code |
f310edce772b121c064a302f618a3100b74c46cdbf7e1b8d7989037b21075b10 | %
% Adobe Systems Engineering GmbH - 2014
% Erhan Bagdemir <bagdemir@adobe.com>
%
\documentclass{beamer}
% package declerations
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{listings}
\lstset{
language=Java,
tabsize=4,
breaklines=true,
breakatwhitespace=true,
escape... | TeX | presentation/java8_lambdas.tex | DominikDary/java8-training | mit | 11,058 | 406 | codeparrot/github-code |
0b14d4386cc69cebed30b67372754f225601e61301a0c4194dec3525a0617a60 | {-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeSynonymInstances #-}
module Stackage.BuildPlan
( readBuildPlan
, writeBuildPlan
) where
import qualified Data.Map as Map
import qualified Data.Set as Set
import Distribution.Text (display, sim... | Haskell | Stackage/BuildPlan.hs | yogsototh/stackage | mit | 5,250 | 155 | codeparrot/github-code |
37b37160e017ffbca5f62195e35e8d1c033ebf97201451dba009dd2c72edbe0c | package in.clayfish.printful.models;
import java.io.Serializable;
import java.util.List;
import in.clayfish.printful.models.info.AddressInfo;
import in.clayfish.printful.models.info.ItemInfo;
/**
* @author shuklaalok7
* @since 24/12/2016
*/
public class ShippingRequest implements Serializable {
/**
* Re... | Java | client/src/main/java/in/clayfish/printful/models/ShippingRequest.java | clayfish/printful4j | mit | 1,115 | 55 | codeparrot/github-code |
0bda9f0ea580feba08eb70a5ca50f1144174786104da9047c530ce5d6805cb73 | import UnexpectedHtmlLike from 'unexpected-htmllike';
import React from 'react';
import REACT_EVENT_NAMES from '../reactEventNames';
const PENDING_TEST_EVENT_TYPE = { dummy: 'Dummy object to identify a pending event on the test renderer' };
function getDefaultOptions(flags) {
return {
diffWrappers: flags.exactl... | JavaScript | src/assertions/AssertionGenerator.js | bruderstein/unexpected-react | mit | 22,599 | 490 | codeparrot/github-code |
1ea2db2b3b8cc15edf46003dacd552f056f7832af673a00a8d1847ff4e4bfe9c | <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>The source code</title>
<link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="../resources/prettify/prettify.js"></script>
<style type="t... | HTML | docs/source/FormHandler.html | hatimeria/HatimeriaExtJS | mit | 2,867 | 99 | codeparrot/github-code |
e617b969ed262e6fab471d54b5d801f2296cc3f6a6cb76d455a674e68f836359 | "use strict";
var request = require(__dirname + "/request");
var db = require(__dirname + "/db");
/**
* Steam utils
*/
var steamapi = {};
/**
* Request to our api
* @param {string} type
* @param {string[]} ids
* @param {function} callback
*/
steamapi.request = function (type, ids, callback) {
if (!ids.len... | JavaScript | src/steamapi.js | brainfoolong/rcon-web-admin | mit | 3,790 | 127 | codeparrot/github-code |
870ccd5b464ca75fddd0f4f1ab03fc0e48313e7eac48e67da047148534acaddd |
//THREEJS RELATED VARIABLES
var scene,
camera, fieldOfView, aspectRatio, nearPlane, farPlane,
gobalLight, shadowLight, backLight,
renderer,
container,
controls;
//SCREEN & MOUSE VARIABLES
var HEIGHT, WIDTH, windowHalfX, windowHalfY,
mousePos = { x: 0, y: 0 },
oldMousePos = {x:0, y:0},
... | JavaScript | exile_ui/static/404/js/index.js | exildev/webpage | mit | 10,479 | 439 | codeparrot/github-code |
c2c6a7db14b2c4e23b51625aba7c2166f1b3e107b6ab6b2778d8733ee11f2c10 | <?php
/**
* Copyright (c) 2011 J. Walter Thompson dba JWT
*
* 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, ... | PHP | lib/JsonApi/Http/Client/Zend.class.php | JWT-OSS/sfJwtJsonApiPlugin | mit | 3,036 | 105 | codeparrot/github-code |
5a8a58160ace1863f5f7100ff01ac26c98f4234e75e6a2011b1bf4b8caef98ea | // Copyright (c) 2009-2019 Satoshi Nakamoto
// Copyright (c) 2009-2019 The Bitcoin Developers
// Copyright (c) 2016-2019 Duality Blockchain Solutions Developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef SEQUENCE_QT... | C | src/qt/sequenceunits.h | duality-solutions/Sequence | mit | 4,663 | 136 | codeparrot/github-code |
b4007a393a9f520ca9ee8027bf728ad515cfa4346053dba50cfbc289e1e070ab | import { Widget, startAppLoop, Url, History } from 'cx/ui';
import { Timing, Debug } from 'cx/util';
import { Store } from 'cx/data';
import Routes from './routes';
import 'whatwg-fetch';
import "./index.scss";
let stop;
const store = new Store();
if(module.hot) {
// accept itself
module.hot.accept();
// re... | JavaScript | client/app/index.js | codaxy/employee-directory-demo | mit | 755 | 37 | codeparrot/github-code |
0cb9f601b4942bb7c86bd256e4d6dc06903ce3f954f413be831e1989be2e627f | require 'thor'
module EcsDeployer
class CLI < Thor
class_option :profile, type: :string
class_option :region, type: :string
no_commands do
def prepare
@aws_options = {}
@aws_options[:profile] = options[:profile] if options[:profile]
@aws_options[:region] = options[:region] ... | Ruby | lib/ecs_deployer/cli.rb | naomichi-y/ecs_deployer | mit | 2,077 | 66 | codeparrot/github-code |
3ee77774075532f88f9cea32a9efe52dc26bfdcda3fb9c084fd3a51f8d1d5ba2 | // Copyright (c) 2014 The Caroline authors. All rights reserved.
// Use of this source file is governed by a MIT license that can be found in the
// LICENSE file.
/// @author Mlodik Mikhail <mlodik_m@mail.ru>
#ifndef CORE_JSON_MATRIX_HELPERS_H_
#define CORE_JSON_MATRIX_HELPERS_H_
#include "json/value.h"
#include "ope... | C | core/json_matrix_helpers.h | it-workshop/caroline | mit | 1,561 | 53 | codeparrot/github-code |
7fc55725a4b0023107323e982e049dfb07e4b4a99578d4f8d6f80b056bdfef90 | <?php if (! defined('BASEPATH')) exit('Invalid file request');
if (! defined('PATH_THIRD')) define('PATH_THIRD', EE_APPPATH.'third_party/');
require_once PATH_THIRD.'coinbase_api/config.php';
/**
* Coinbase API Update Class
*
* @package Coinbase
* @author Dom Tancredi <dom@domandtom.com>
* @copyright Copyr... | PHP | coinbase_api/upd.coinbase_api.php | domtancredi/coinbase-api-expressionengine-module | mit | 1,988 | 81 | codeparrot/github-code |
fc5c57778c4b67cebe670ae32245a7fc9a6009e47ce868955cef130135e64e62 | package pl.edu.uwm.wmii.visearch.clustering;
/*
*
* Z linii poleceń
* /usr/local/mahout/bin/mahout kmeans -i kmeans/data1/in -c kmeans/data1/cl -o kmeans/data1/out -x 10 -k 2 -ow -cl
* opcja -ow nadpisuje katalog wyjściowy (nie trzeba ręcznie kasować)
* opcja -cl generuje katalog clusteredPoints, zawierający... | Java | projects/clustering/src/pl/edu/uwm/wmii/visearch/clustering/KMeans.java | pgorecki/visearch | mit | 12,407 | 362 | codeparrot/github-code |
4306afd28ed87a495c6e795ee9f4801f6a094438a465b6fcb08ffbcc82fe1fac | <?php
defined('BASEPATH') or exit('No direct script access allowed');
use Omnipay\Omnipay;
class Authorize_sim_gateway extends App_gateway
{
public function __construct()
{
/**
* Call App_gateway __construct function
*/
parent::__construct();
/**
* REQUIRED
... | PHP | application/libraries/gateways/Authorize_sim_gateway.php | cmaciasg/test | mit | 4,944 | 136 | codeparrot/github-code |
3682a6eb1aa0fcbecd4eb12c692ef05419a3399728ae60bd70cc7b7d5fa93820 | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Xml.Linq;
namespace Cassette
{
class AssetSerializer : IBundleVisitor
{
readonly XElement container;
public AssetSerializer(XElement container)
{
this.c... | C# | src/Cassette/AssetSerializer.cs | BluewireTechnologies/cassette | mit | 1,634 | 57 | codeparrot/github-code |
88484db4da5c2f6e7a6e22bbf17046f6bef580a6e202615729c525c0bc289325 | # google_search.rb
# Author: William Woodruff
# ------------------------
# A Cinch plugin that provides Google interaction for yossarian-bot.
# ------------------------
# This code is licensed by William Woodruff under the MIT License.
# http://opensource.org/licenses/MIT
require 'json'
require 'open-uri'
requ... | Ruby | plugins/google_search.rb | lightarrow47/yossarian-bot | mit | 1,278 | 41 | codeparrot/github-code |
b94c84ad72afc7265023781779fe3905057d2d06e9fcc8974d1d526aee0b17b0 | module Pageflow
class EntryDuplicate < Struct.new(:original_entry)
def create!
create_entry
copy_draft
copy_memberships
new_entry
end
def self.of(entry)
new(entry)
end
private
attr_reader :new_entry
def create_entry
@new_entry = Entry.create!(new_a... | Ruby | app/models/pageflow/entry_duplicate.rb | grgr/pageflow | mit | 973 | 52 | codeparrot/github-code |
04c81cd3d6c599278a14ff05066acf8fb3f9f0a5ccc1cc99091872590a02736d | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Student_records_model extends CI_Model {
public function __construct()
{
parent::__construct();
}
public function get_stud_assessment($stud_id, $course, $stud_year, $semester, $scheme)
{
$array = array('stud_id' => $stud_id, 'st... | PHP | application/modules/Cashier/models/Student_Records/Student_records_model.php | dyunas/Stdnt-Assmnt | mit | 4,725 | 190 | codeparrot/github-code |
863df1de0143c9f881e43214f2816f98d142f5bb1688b049c6e75696d8b631e1 | <?php
namespace Main\MainBundle\Entity;
use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Component\Security\Core\User\UserProviderInterface;
use Symfony\Component\Security\Core\Exception\UsernameNotFoundException;
use Symfony\Component\Security\Core\Exception\UnsupportedUserException;
use Doctrine\... | PHP | src/Main/MainBundle/Entity/UserRepository.php | riki343/main | mit | 1,615 | 46 | codeparrot/github-code |
4e2622fed3012e01817392ae28a2c724e9941d18171c396158bed07463b5ba84 | // The command line tool for running Revel apps.
package main
import (
"flag"
"fmt"
"io"
"os"
"strings"
"text/template"
)
// Cribbed from the genius organization of the "go" command.
type Command struct {
Run func(args []string)
UsageLine, Short, Long string
}
func (cmd *Command) Name() st... | GO | revel/rev.go | yext/revel | mit | 2,397 | 130 | codeparrot/github-code |
91379fb9bff46a003c1a216aecaa8e02881ddf02a8d8c137af834783d86c7c52 | /*
* MIT License
*
* Copyright 2017-2018 Sabre GLBL 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, including without limitation the rights
* to use, copy,... | Java | conf4j-core/src/test/java/com/sabre/oss/conf4j/converter/OffsetDateTimeConverterTest.java | SabreOSS/conf4j | mit | 8,201 | 219 | codeparrot/github-code |
e3376350ec695fd88a829d4e08b6b33e9d9ab0182a46fc2fbcd0782df99d0c9d | using com.microsoft.dx.officewopi.Models;
using com.microsoft.dx.officewopi.Models.Wopi;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Net.Http;
using System.Runtime.Caching;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Task... | C# | com.microsoft.dx.officewopi/Utils/WopiUtil.cs | OfficeDev/PnP-WOPI | mit | 16,311 | 364 | codeparrot/github-code |
a9a9a48d4019e59b892298d1919dede56d1fc49f91393d2bfb6a10daf6d447e1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- 選舉資料查詢 -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>中選會選舉資料庫網站</title>
<link rel="stylesheet" type="text/css" href="http://db.cec.gov.tw/votehist.css">
<script typ... | HTML | mirror/prvCode_07/cityCode_000-areaCode_07-deptCode_035/voteCode_20120101T1A2-qryType_ctks-prvCode_05-cityCode_000-areaCode_07-deptCode_035-liCode_0650.html | g0v/projectV | mit | 5,633 | 183 | codeparrot/github-code |
d94fd7e554a07b7b3eac13752bcfd6eaa3278b3976d2ba4e5172e3a5feed99d1 | <?php
class Productos_model extends CI_Model{
function __construct()
{
parent::__construct();
$this->load->database();
}
function get_destacados($por_pagina,$segmento)
{
$consulta = $this->db->query("SELECT * FROM Producto WHERE Destacado=1 LIMIT $segmento, $por_pag... | PHP | application/models/Productos_model.php | dfergar/PHP_practica2 | mit | 3,982 | 157 | codeparrot/github-code |
450be52ebdd6f4321d4cb01d19a5b07adaa80d8a4c3bee707a41b8cf167b1e01 | #include "3d/Base.h"
#include "3d/C3DEffect.h"
#include "3d/C3DElementNode.h"
#include "3d/C3DEffectManager.h"
#include "3d/C3DElementNode.h"
namespace cocos3d
{
static C3DEffectManager* __effectManagerInstance = NULL;
C3DEffectManager::C3DEffectManager()
{
}
C3DEffectManager::~C3DEffectManager()
{
__effectManager... | C++ | 01_Develop/libXMCocos2D-v3/Source/3d/C3DEffectManager.cpp | mcodegeeks/OpenKODE-Framework | mit | 5,124 | 233 | codeparrot/github-code |
4d7ca16a32e319b37d69f5d2a0a905c256ec2373255816e574f9d0aa6c683460 | package me.protox.archetype.jersey.ext.config_property;
import org.glassfish.hk2.api.InjectionResolver;
import org.glassfish.hk2.api.TypeLiteral;
import org.glassfish.hk2.utilities.binding.AbstractBinder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.inject.Singleton;
import javax.ws.rs.core.C... | Java | jersey-ext/src/main/java/me/protox/archetype/jersey/ext/config_property/ConfigPropertyFeature.java | Feng-Zihao/protox-webapp-archetype | mit | 1,271 | 36 | codeparrot/github-code |
cadfc68b98a6b2531b5dd6d9e1f896c5ab6e0082e28426fb055eb50200a2c92a | # frozen_string_literal: true
module Global
module Backend
# Loads Global configuration from the AWS Systems Manager Parameter Store
# https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-parameter-store.html
#
# This backend requires the `aws-sdk` or `aws-sdk-ssm` gem, so mak... | Ruby | lib/global/backend/aws_parameter_store.rb | railsware/global | mit | 3,790 | 111 | codeparrot/github-code |
00b72fd57950225f0b54b29b81a63553f6e8918acac9f3418559578ad3bce70c | /**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @module
* @description
* This module provides a set of common Pipes.
*/
import {AsyncPipe} from './async_p... | TypeScript | packages/common/src/pipes/index.ts | matsko/angular | mit | 1,312 | 60 | codeparrot/github-code |
6892513ef98dc61484d97b80ed0a418c18aefdd222e99710d3aaa434f6650acf | package net.crowmagnumb.database;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.builder.ToStringBuilder;
public class SqlColumn implements SqlComponent {
private final String _name;
private final SqlColumnType _type;
private SqlTable _table;
private f... | Java | src/main/java/net/crowmagnumb/database/SqlColumn.java | SamSix/s6-db | mit | 4,933 | 186 | codeparrot/github-code |
bcb57c83f53a8db7b306ac1e3c3c1293c1ee95e8530ed32c254b986dca0959ee | import json
f = open('text-stripped-3.json')
out = open('text-lines.json', 'w')
start_obj = json.load(f)
end_obj = {'data': []}
characters_on_stage = []
currently_speaking = None
last_scene = '1.1'
for i in range(len(start_obj['data'])):
obj = start_obj['data'][i]
if obj['type'] == 'entrance':
if obj['characte... | Python | mining-lear/process/step6.py | SyntaxBlitz/syntaxblitz.github.io | mit | 1,654 | 54 | codeparrot/github-code |
44119a33ba6c367bb939e65d7a8a8f5e1c38853efc6b384a0ea24cef5af7f1df | import removeClass from 'tui-code-snippet/domUtil/removeClass';
import addClass from 'tui-code-snippet/domUtil/addClass';
import { HookCallback } from '@t/editor';
import { Emitter } from '@t/event';
import { ExecCommand, HidePopup, TabInfo } from '@t/ui';
import i18n from '@/i18n/i18n';
import { cls } from '@/utils/do... | TypeScript | apps/editor/src/ui/components/toolbar/imagePopupBody.ts | nhnent/tui.editor | mit | 5,214 | 179 | codeparrot/github-code |
81402163b0c41010ea3ace17a438b9b0a6b727d06e1e7432614321763cee7ec5 | let mongoose = require('mongoose')
let userSchema = mongoose.Schema({
// userModel properties here...
local: {
email: {
type: String,
required: true
},
password: {
type: String,
required: true
}
},
facebook: {
id: ... | JavaScript | app/models/user.js | linghuaj/node-social-auth | mit | 1,581 | 71 | codeparrot/github-code |
9b59f6e6b4c872744bc07f68180ae2c4c85175466a790b30dd0ee86b37994bf9 | package io.github.voidcontext.easyvalidator.rule
package string
import scala.util.Try
import scala.util.matching.Regex
abstract class StringRule(value: String) extends Rule[String](value)
abstract class ThanableStringRule(value: String) extends StringRule(value) {
def than(expected: Int): Try[String]
}
case class ... | Scala | src/main/scala/io/github/voidcontext/easyvalidator/rule/string/StringRule.scala | voidcontext/scala-easyvalidator | mit | 1,085 | 31 | codeparrot/github-code |
52f7b8f36190440830683e9976d0c0ca44fc374b0028f4122804ae40941ecbcb | package com.sunnyface.popularmovies;
import android.content.Intent;
import android.databinding.DataBindingUtil;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.ActivityOptionsCompat;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
impor... | Java | app/src/main/java/com/sunnyface/popularmovies/MainActivity.java | kikoseijo/AndroidPopularMovies | mit | 3,149 | 79 | codeparrot/github-code |
4650f3101e6b7a6828b630c55e73fa6e22fbd88df3f9668f3f142d33515114ef | /**
* \file NETGeographicLib\PolyPanel.cs
* \brief NETGeographicLib.PolygonArea example
*
* NETGeographicLib is copyright (c) Scott Heiman (2013)
* GeographicLib is Copyright (c) Charles Karney (2010-2012)
* <charles@karney.com> and licensed under the MIT/X11 License.
* For more information, see
* https://geogr... | C# | dotnet/Projections/PolyPanel.cs | geographiclib/geographiclib | mit | 6,048 | 149 | codeparrot/github-code |
49d826fb38660b8cb7315d637319f482a29954a09b8e9fdd252732349733584b |
#include <cstdlib>
#include <stdexcept>
#include <vector>
#include <algorithm>
#include "Platform.h"
#include "T3000.h"
#include "Position.h"
#include "Selection.h"
using namespace T3000;
void CTstat8HelySystem::MoveForInsertDelete(bool insertion, Sci::Position startChange, Sci::Position length) {
if (insertio... | C++ | T3000/Tstat8HelpSystem/CTstat8HelpSystem.cpp | temcocontrols/T3000_Building_Automation_System | mit | 10,412 | 430 | codeparrot/github-code |
4835acc449ec1c322e31fc203b788aa52fe6b81f1dde22d992658cda0a82bd26 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Resume</title>
</head>
<body>
<div class="container">
<h1 class="header" data-bind="text:i18n().russ_full"></h1>
<div class="contact">
<h1><span data-bind="{text: i18n().contact_info}"></span></h1>
<ul id="contactList" data-b... | HTML | public_html/resume/index.html | russjohnson09/rdjgvus | mit | 5,209 | 187 | codeparrot/github-code |
6f3551eb21a61901e9e9afee57bffbb65b8fb08cfcebbba61c010ba0baca8a27 | function Tw2VectorSequencer()
{
this.name = '';
this.start = 0;
this.value = vec3.create();
this.operator = 0;
this.functions = [];
this._tempValue = vec3.create();
}
Tw2VectorSequencer.prototype.GetLength = function () {
var length = 0;
for (var i = 0; i < this.functions.length; ++i)... | JavaScript | src/curves/Tw2VectorSequencer.js | reactormonk/ccpwgl | mit | 1,487 | 59 | codeparrot/github-code |
8566a72c47bddda0cffcbec9729e25b6e545ab4a6ea9b7acec2db2c1243f791b | #region License
// Microsoft Public License (Ms-PL)
//
// This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software.
//
// 1. Definitions
//
// The terms "reproduce," "reproduction," "derivative works," and "d... | C# | StormXamarin/Storm.Mvvm/Funq/ServiceKey.cs | Julien-Mialon/StormXamarin | mit | 3,737 | 88 | codeparrot/github-code |
ffdbb9186151eb695b90cdef1d5c5371b8a59f4a632f59d9dc82172570bcbb18 | // Copyright (c) 2017 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_BROWSER_UI_WEBUI_PDF_VIEWER_UI_H_
#define SHELL_BROWSER_UI_WEBUI_PDF_VIEWER_UI_H_
#include <memory>
#include <string>
#include "base/macros.h"
#include "content/public/... | C | shell/browser/ui/webui/pdf_viewer_ui.h | the-ress/electron | mit | 1,736 | 62 | codeparrot/github-code |
fdf390ffb6607f55f7419308401fc69d321ef13804450ad8d01ee81f26fe2f5f | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>dblib: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" ... | HTML | clean/Linux-x86_64-4.10.2-2.0.6/released/8.14.1/dblib/8.7.0.html | coq-bench/coq-bench.github.io | mit | 6,972 | 165 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.