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 |
|---|---|---|---|---|---|---|---|---|
7bcaaf76b940a37e50d19f393a4962a49d991156894773c7e40dcf72fec2afb3 | require 'easy_auto/config_manager_wrapper'
require 'easy_auto/system_helper'
module EasyAuto
class EasySetup
include ConfigManagerWrapper
include SystemHelper
attr_accessor :email
attr_accessor :password
def run
setup_message
os_check
check_git_install
check_git_extras_in... | Ruby | lib/easy_auto/easy_setup.rb | stuartnelson3/easy-auto | mit | 1,342 | 60 | codeparrot/github-code |
a122def8f67de575616fb53a9cb74f07f8c8456deb2ca741bafd71682febc94e | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import click
import requests
from .exceptions import (
CachedPage,
WaybackRuntimeError,
BlockedByRobots
)
from urllib.parse import urljoin
from requests.utils import parse_header_links
def capture(
target_url,
user_agent="savepagenow (https://github.co... | Python | savepagenow/api.py | pastpages/savepagenow | mit | 4,446 | 127 | codeparrot/github-code |
f9170d736078c3a5af16988c6919c1aa0f46c8d2832f4a5afac7528db1a850e4 | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "FlipperSocketProvider.h"
#include "FlipperSocket.h"
#include "FlipperTransportTypes.h"
namespace facebook {
namespace ... | C++ | xplat/Flipper/FlipperSocketProvider.cpp | facebook/flipper | mit | 1,443 | 51 | codeparrot/github-code |
6e48964c3f6116e84fda4bd6ee682b753b4ff517ab46b46c69215f73887936cb | /* Push(): O(N), Pop(): O(1) */
// class MyQueue {
// private:
// stack<int> st1;
// stack<int> st2;
// public:
// /** Initialize your data structure here. */
// MyQueue() {
// }
// /** Push element x to the back of queue. */
// void push(int x) {
// while (!st1.empty()... | C++ | Cpp/232.implement-queue-using-stack.cpp | zszyellow/leetcode | mit | 1,939 | 89 | codeparrot/github-code |
47696b78e5730fd0f99759443cec2290c0cca49eca0eac6d8bc658a12240b2f3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using zSprite;
namespace GameName1.PI.Scripts
{
public class Player : Script
{
public int maxElectronics = 100;
public int maxOrganisms = 100;
public int maxFuel = 100;
public int electronics ... | C# | TerrariaClone/PI/Scripts/Player.cs | cphillips83/DynamicGameEngine | mit | 604 | 33 | codeparrot/github-code |
61a8eb380773483afb7bac03ceceffe7b3b99acc79edccfd491fcaa8cd665adc | const
logger = require('../logger'),
Input = require('./'),
dgram = require('dgram');
const DEFAULTS = {
host : "0.0.0.0",
port : 514,
protocol : "udp4"
};
class UDPServer extends Input {
constructor(id,type) {
super(id,type);
}
configure(config,callback) {
config = config || {};
this.host = config.ho... | JavaScript | lib/input/udp.js | solzimer/nsyslog | mit | 1,411 | 74 | codeparrot/github-code |
f6e1a405d23bfaf24c22dd3d75e5be6f09f076f26dbfae7119eb3bff73e8c85d | 'use strict';
var path = require('path');
var _ = require('lodash');
function requiredProcessEnv(name) {
if(!process.env[name]) {
throw new Error('You must set the ' + name + ' environment variable');
}
return process.env[name];
}
// All configurations will extend these options
// =========================... | JavaScript | server/config/environment/index.js | gregwym/FavArch | mit | 1,730 | 70 | codeparrot/github-code |
fa69855799e4672ff2497599728cf6d3e0c98a2b46f1e6385abe038e1d3fe644 |
; classic circle interference pattern
; uses large sprite of concentric circles drawn in two layers
; requires 6x versions of sprite in all offsets i.e. lots of memory
.start_fx_interference
INTERFERENCE_shadow_addr = MODE7_VRAM_SHADOW + MODE7_char_width + 3 ; currently writing 36x22 character screen
INTERFERENCE_... | Assembly | src/fx/interference.asm | bitshifters/teletextr | mit | 6,878 | 388 | codeparrot/github-code |
ef9992cf794f847eae18c262005273b04d0c51bd95577b38b588dbb55692a450 | <?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<title>WidgetPositionRequest - models.api.requests.dashboards.WidgetPositionRequest</title>
<meta name="description" content="WidgetPositionR... | HTML | graylog2-web-interface-0.20.6/share/doc/api/models/api/requests/dashboards/WidgetPositionRequest.html | pawank/logging-engine-akka-gl2-dependencies | mit | 22,667 | 438 | codeparrot/github-code |
e888f3609335ac5e6adb0adcb8dbf16d2336dc680e5e4d82b7515b03ce39fb76 | <?php
/*
* This file is part of the symfony package.
* (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* sfCommandApplication manages the lifecycle of a CL... | PHP | lib/command/sfCommandApplication.class.php | nationalfield/symfony | mit | 16,992 | 651 | codeparrot/github-code |
48794998ff2e76ce2c48e3d9292a8aa509c94eb77a0f35e9a3202513ba773bf9 | --[[
/////// //////////////////
/////// PROJECT: MTA iLife - German Fun Reallife Gamemode
/////// VERSION: 1.7.2
/////// DEVELOPERS: See DEVELOPERS.md in the top folder
/////// LICENSE: See LICENSE.md in the top folder
/////// /////////////////
]]
CDxRenderTarget = inherit(CDxElement)
function CDxRenderTarget... | Lua | client/Classes/Element/dxGui/cDxRenderTarget.lua | Noneatme/iLife-SA | mit | 2,751 | 94 | codeparrot/github-code |
d676947d702f24372ed5e7630032e0633a8ca7b97d0cd89a15b05b346a79f5ea | <?php
namespace Whoisdoma\WhoisParser\Templates;
use Whoisdoma\WhoisParser\Templates\Type\Regex;
class Ee extends Regex
{
/**
* Blocks within the raw output of the whois
*
* @var array
* @access protected
*/
protected $blocks = array(1 => '/domain:(.*?)(?=expire)/is', 2 => '/nsset:(.*?)(?=create... | PHP | src/Templates/Ee.php | Whoisdoma/WhoisParser | mit | 1,820 | 52 | codeparrot/github-code |
89ddfdc66d6cfa51fd6940bdb262f23600262240e2a3d2ba31430a506dbe4c74 | import { LoginPage } from '../login/login';
import { Component, ViewChild } from '@angular/core';
import { NavController, Slides } from 'ionic-angular';
// import { LoginPage } from '../login/login';
// import { SignupPage } from '../signup/signup';
@Component({
selector: 'walkthrough-page',
templateUrl: 'walkthr... | TypeScript | src/pages/walkthrough/walkthrough.ts | Amonratchantawon/ecommerce-coffeehub | mit | 957 | 44 | codeparrot/github-code |
7c5abc770e0f0d1b0bd50ca2f0389fb0a98469b28983c7a720a2bc46bf724c7b | // The MIT License (MIT)
//
// Copyright (c) 2015-2017 Simon Ninon <simon.ninon@gmail.com>
//
// 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 limitat... | C++ | third_party/github/cpp_redis/src/builders/array_builder.cpp | maxcong001/smartGateway | mit | 2,724 | 108 | codeparrot/github-code |
73484a283a171ac4af9b14c03573a7b41a43ddadc665d96e5b48664f4810d796 | const includes = require('lodash/includes');
const exec = require('shell-utils').exec;
const android = includes(process.argv, '--android');
const release = includes(process.argv, '--release');
const BRANCH = process.env.BRANCH;
const RECORD = process.env.RECORD === 'true';
function run() {
if (android) {
runAnd... | JavaScript | scripts/test-snapshot.js | guyca/react-native-navigation | mit | 2,319 | 81 | codeparrot/github-code |
1b93046878715915476c857d80e5a0e84b5018a04e5cb579986fb53e33b5435c | /*
* oxPush2 is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text.
*
* Copyright (c) 2014, Gluu
*/
package org.gluu.oxpush2.app;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
i... | Java | Android/app/src/main/java/org/gluu/oxpush2/app/PushNotificationService.java | GluuFederation/oxPush2 | mit | 2,280 | 66 | codeparrot/github-code |
14fef9f6f9676c5c2fea2f58de3d5fda3908cef3f452e0bac222c745c53c5297 | <div id="grantsTableWrapper" class="card-panel-body">
<div class="responsive-table-wrapper">
{% if page.grant_count > 1000 %}
<div class="row">
<div class="col s12">
<div class="card blue-grey lighten-2">
<div class="card-content white-text">
<i class="material-icons">warni... | HTML | _includes/grants-table.html | grantmakers/profiles | mit | 2,847 | 77 | codeparrot/github-code |
de8d5eb9d1c4afb7e957e85b4ec7fcd9827e992ce521f1a76193c25ac4cd40d4 | <?php
/**
* Created by PhpStorm.
* User: yao
* Date: 2017/3/2
* Time: 16:18
*/
class GroupValue
{
public $id = null;
public $groupname = null;//组名
/**
* 全部转换成数组
*
* @return array
*/
public function allToArray()
{
return array(
'groupname' => $this->grou... | PHP | application/models/group.php | yaoshuangjiang/OA | mit | 2,133 | 124 | codeparrot/github-code |
392660f9af5380935a92e22bd909c6983efa1796192029c90a8edba38d0c2efe | /*******************************************************************************
* Copyright (c) 2015 Development Gateway, Inc and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the MIT License (MIT)
* which accompanies this distribution, and is... | Java | forms/src/main/java/org/devgateway/toolkit/forms/wicket/components/form/DateTimeFieldBootstrapFormComponent.java | devgateway/oc-explorer | mit | 3,030 | 95 | codeparrot/github-code |
a841d5334881d476bd3b80c0309e5fe796bd47d57d50ee37694534dd6db03eb7 | using System.Collections;
using System.Diagnostics;
using System.Collections.Concurrent;
namespace Sean.World
{
internal class Chunks : IEnumerable
{
public Chunks()
{
_chunks = new ConcurrentDictionary<long, Chunk> ();
}
private ConcurrentDictionary<long, Chunk> _chunks;
private... | C# | DotNet/WorldGenerator/World/Chunks.cs | spoconnor/ElixirMessagingServer | mit | 2,078 | 70 | codeparrot/github-code |
5d984de6b352d79074939b9a87fbdecde252c1693f9d1ab0cf7fee3726634f4a | <!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>StringifyOptions | picturepark-sdk-v1-fetch API</title>
<meta name="description" content="Documentation for picturepark-sdk-v1-fetch API">
<meta name="viewport" content="width=dev... | HTML | docs/picturepark-sdk-v1-fetch/api/interfaces/_querystring_.stringifyoptions.html | Picturepark/Picturepark.SDK.TypeScript | mit | 8,673 | 207 | codeparrot/github-code |
34557954b3baefa1d5ea281b9375b5d7e1bd23143088e6b33c3f2e1258583da3 | package com.codepath.apps.tweeter;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivit... | Java | app/src/main/java/com/codepath/apps/tweeter/TimelineActivity.java | s123ashok/tweeter | mit | 2,536 | 84 | codeparrot/github-code |
bbbca85ac8d14f1e62db787e4863f1fba240dd6b99669ef9f8a5f6d23a8a87ec | // Copyright (c) 2011-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_QT_WALLETVIEW_H
#define BITCOIN_QT_WALLETVIEW_H
#include "amount.h"
#include "thronelist.h"
#include "multisi... | C | src/qt/walletview.h | Infernoman/crowncoin | mit | 4,328 | 136 | codeparrot/github-code |
b096bd2a134cff2eec9257cdbca898a94d75ed5299366bbb2069050049e21130 | package com.veggie.src.java.controllers.account;
import com.veggie.src.java.core.Account;
import com.veggie.src.java.controllers.Controller;
import com.veggie.src.java.notification.Notification;
import com.veggie.src.java.form.Form;
import com.veggie.src.java.form.AbstractFormBuilder;
import com.veggie.src.java.form.A... | Java | com/veggie/src/java/controllers/account/SearchUserController.java | ejw0013/vegemite-smoothie | mit | 1,966 | 57 | codeparrot/github-code |
f2408d7c96011e8464cd80497780bcc710786f9c1539bcde08a26a49eeefc589 | /*
Created by Freshek on 31.10.2017
*/
class GlobalSettings {
constructor() {
var self = this;
chrome.storage.local.get({
headerColor: "#191919",
headerOpacity: "0.9",
windowColor: "#191919",
windowOpacity: "0.8",
timerTick: 300,
showRuntime: false,
speedFormat: 'h... | JavaScript | src/js/preferences/GlobalSettings.js | freshstudio/Toshinou | mit | 951 | 54 | codeparrot/github-code |
1d808ac08de93b0d03add92ee3d73d367a2af2f79f10705dc9bcd4c27d91806a | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using CommandLine;
using LogIndexer.Core.Data;
using LogIndexer.Core.Data.Indexes;
using LogIndexer.Core.Data.Transforms;
using LogIndexer.Core.Domain;
using Newtonsoft.Json;
using Raven.Client;
using RestSharp;
using Environment = Log... | C# | LogIndexer/LogIndexer.Processor.Console/Program.cs | JuanjoFuchs/Log-Indexer | mit | 4,242 | 120 | codeparrot/github-code |
c490e922938082e0d49b10263cba04802d467dc5c68f31b3532b4367333e8712 | import React, {PureComponent} from 'react';
import {connect} from "react-redux";
import {loadNotes} from './../state/modules/notes.js';
import API from './../../api/index.js';
import Note from './notes/Note'
class Notes extends PureComponent {
render() {
let {notes} = this.props;
return <div>
<h1>Ogło... | JavaScript | server/soman/frontend/app/components/Notes.js | bilgorajskim/soman | mit | 856 | 41 | codeparrot/github-code |
d423963af27eb6eade6743788874a646ccc3b4e509e0226a60c891ea734f5d80 | package jacobi.core.logit;
import java.util.stream.IntStream;
import org.junit.Test;
import org.junit.runner.RunWith;
import jacobi.api.Matrices;
import jacobi.api.Matrix;
import jacobi.core.solver.nonlin.VectorFunction;
import jacobi.test.annotations.JacobiEquals;
import jacobi.test.annotations.JacobiImp... | Java | src/test/java/jacobi/core/logit/TanhLossTest.java | ykechan/jacobi | mit | 1,624 | 61 | codeparrot/github-code |
fd653e84bfe29ad6d340c9dbd0e998e3cbc9c0c3d08f32e2307597aaee353829 | package com.ingotpowered;
import com.ingotpowered.api.Config;
import com.ingotpowered.api.Ingot;
import com.ingotpowered.api.commands.CommandRegistry;
import com.ingotpowered.api.events.EventFactory;
import com.ingotpowered.net.NetManager;
import com.ingotpowered.net.packets.Packet;
import com.ingotpowered.net.packets... | Java | src/com/ingotpowered/IngotServer.java | IngotPowered/IngotEngine | mit | 3,129 | 100 | codeparrot/github-code |
d910ada04ebdf5dea241a285feafcf6bc0c146f02b0c5fe6907ee63d246608f5 | // Angular 2
import {
enableDebugTools,
disableDebugTools
} from '@angular/platform-browser';
import {
ApplicationRef,
enableProdMode
} from '@angular/core';
// Environment Providers
let PROVIDERS: any[] = [
// common env directives
];
let _decorateModuleRef = <T>(value: T): T => { return value; };
if ('p... | TypeScript | frontend/src/platform/environment.ts | EvilAvenger/HashtagAggregatorClient | mit | 1,076 | 60 | codeparrot/github-code |
7c94d2b20799e09e9146aa69679da0ce616fdada30153ec50e1805d00f282063 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Irony.Ast;
using Irony.Parsing;
namespace Irony.Interpreter.Ast
{
public class StatementListNode : AstNode
{
AstNode _singleChild; //stores a single child when child count == 1, for fast access
publi... | C# | src/Irony.Interpreter/Ast/Statements/StatementListNode.cs | Hyperspaces/Hyperspace.DotLua | mit | 2,969 | 96 | codeparrot/github-code |
99d2ad898da6c0793799917a4dd5871ab044ea3a394d61a5033bc248eb8998bb | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using ConnectorWebService;
namespace ConnectorWebServer
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
... | C# | ConnectorWebServer/Program.cs | RoomFinder/Connector | mit | 704 | 35 | codeparrot/github-code |
f9af0b3ae834d2a6eacf10cab1119fcb674687fe3da9ec8c1b50ab0761a32235 | 'use strict';
/*
* Defining the Package
*/
var Module = require('meanio').Module;
var md5 = require('MD5');
var Chat = new Module('chat');
/*
* All MEAN packages require registration
* Dependency injection is used to define required modules
*/
Chat.register(function(app, auth, database,http) {
//We enable rou... | JavaScript | packages/custom/chat/app.js | cybercandyman/mean.io-app | mit | 2,211 | 79 | codeparrot/github-code |
27a0f6e29def45e1859c10ef475888033b461f76b5b6e7c7305cb3dcf57e0994 | <DIV NAME="detail" ID="detail" xmlns="http://www.w3.org/TR/REC-html40"><H3><A NAME='detail_RightDrag'></A>Android GenericObjectFunctions::<BIG>RightDrag</BIG>
</H3> <TABLE><TR>
<TD class="borderStyle"><SPAN CLASS='Support' TITLE='SAFS TID Commands'>TID</SPAN></TD>
</TR></TABLE>
<DIV NAME="list" ID="short_desc"><sh... | HTML | keyref/AndroidGenericObjectFunctionsRightDrag.html | kid551/safsdev.test.github.io | mit | 6,686 | 131 | codeparrot/github-code |
def912f2a0fd6ed65c6230a3285c7ea477fd3bcad19c633f85c7249c7a11e86a | package embeddings;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.concurrent.ForkJoinTask;
import java.util.concurrent.RecursiveAction;
/**
* Thi... | Java | src/main/java/embeddings/EmbeddingsParser.java | spennihana/FasterWordEmbeddings | mit | 6,808 | 189 | codeparrot/github-code |
2a8c84d08a7d60c3ee7de3efc115318d2ba76ecdeff3b5f7c8f657ee6dd1b15f | namespace Yamd.WebService.Controllers
{
using System.Linq;
using Microsoft.AspNetCore.Mvc;
using Yamd.WebService.Entity;
using Yamd.WebService.Extensions;
using Yamd.WebService.Repository.Abstract;
using Yamd.WebService.Security;
[Route("api/v1/[controller]")]
public clas... | C# | src/WebService/Controllers/UsersController.cs | mbparker/YamdServicesDnc | mit | 2,512 | 86 | codeparrot/github-code |
90171046e20a24cd27f8a9acd88b44f56254f3081f1b9a6e4d87455e844aba69 | /**
* The MIT License (MIT)
*
* Copyright (c) 2015 Sébastien CAPARROS (GlitchyVerse)
*
* 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 limitati... | JavaScript | www/js/buildingBuilders/Character.js | Seb-C/GlitchyVerse | mit | 3,669 | 99 | codeparrot/github-code |
6739a445ee0252a715d87560d9581204b600cb24d404e356705fd91321d7b340 | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | src/vs/workbench/browser/viewlet.ts | hoovercj/vscode | mit | 7,959 | 210 | codeparrot/github-code |
74d630443e682d989fc6721696bdb62b61bd79155de712365368de89ebea2375 | <?php
namespace Infrastructure\Middleware;
use Slim\Http\Request;
use Slim\Http\Response;
class CsrfViewMiddleware extends Middleware
{
private const INDEX_NAME = 'csrf';
protected $tokenName;
protected $tokenNameKey;
protected $tokenValue;
protected $tokenValueKey;
public function __invoke(... | PHP | src/Infrastructure/Middleware/CsrfViewMiddleware.php | kungfunk/admin.anaitgames.com | mit | 1,141 | 36 | codeparrot/github-code |
b3cf465adefc9d939c863bcf852c45e83780466f8ca5d9ecbd398fb6951618b7 | <?php
session_start();
$login = $_SESSION['login'] ;
?>
<!DOCTYPE html>
<!--[if IE 8]> <html class="no-js ie ie8 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 9]> <html class="no-js ie ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="u... | PHP | src/public/index.php | SteveCarrasco/TP--EspaceMembres | mit | 4,881 | 122 | codeparrot/github-code |
9b2bac4cc8323a278c78542d0010a2af4f8b8cd7d51b1433039b7ce463a17a18 | # Makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = _build
# User-friendly check for sphinx-build
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
$(error The '$(SPHINXBUILD)' command w... | Makefile | docs/Makefile | cborgolte/yatt | mit | 6,754 | 178 | codeparrot/github-code |
f56c14086589e6150af2bd4c74851be8d2149782f5dc5713a81d69e34d833476 | package procesamientos.generacioncodigo;
import maquinaP.MaquinaP;
import procesamientos.Procesamiento;
import programa.Programa;
import programa.Programa.ConversionEntero;
import programa.Programa.ConversionReal;
import programa.Programa.CteChar;
import programa.Programa.CteInt;
import programa.Programa.CteR... | Java | src/procesamientos/generacioncodigo/GeneracionDeCodigo.java | robrav01/ProcesadoresLenguaje | mit | 4,633 | 129 | codeparrot/github-code |
bbdda42027cf7afff93ad59e3771b214f09987c11402b2f5b585a1c6688b3369 | // rustyVM - Java VM written in pure Rust
// Copyright (c) 2013 Alexander Gessler
//
// 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 r... | Rust | src/threadmanager.rs | acgessler/rustymachine | mit | 6,724 | 252 | codeparrot/github-code |
f4931b092f731a9bffaf7d2970bbffcf7da2521ff36b207548644abddecb6cd5 | namespace AvChartConvert
{
partial class ProcessLog
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
///... | C# | windows/AvChartConvert/AvChartConvert/ProcessLog.Designer.cs | wellenvogel/avnav | mit | 6,327 | 130 | codeparrot/github-code |
870b5a5bb08ff7d89bef7b3d304701d9210a3929e9d949883e54fbe72ce58c40 | define(['moment'], function (moment) {
var charts = [];
function getTable(chart) {
var table = new google.visualization.DataTable();
$.each(chart.data.columns, function (i, column) {
// annotations and tooltips
if (column.role !== 'data') {
table.addColum... | JavaScript | Code/components/js/pgui.charts.js | oduudo/UJA_Finanzen | mit | 4,392 | 160 | codeparrot/github-code |
ee347ef028416f2fa06b254c5fffacdf54a1f5af20471c11f300d9010cb82e08 | package de.woerteler.util;
import java.awt.Color;
import java.awt.Image;
import java.awt.image.BufferedImage;
/**
* Utility class for AWT {@link BufferedImage Images}.
*
* @author Leo Woerteler
*/
public final class ImageUtils {
/** Hidden default constructor. */
private ImageUtils() {
// void
}
/**... | Java | src/de/woerteler/util/ImageUtils.java | LeoWoerteler/ChartyGUI | mit | 2,554 | 114 | codeparrot/github-code |
3d27dcb7bd93640942e74f1af070087eee6cdd8240134eb7cf62286a1a4b34ac | /**
* @see - https://egghead.io/lessons/angularjs-http
*/
var app = angular.module('kinveyRestAPIApp', ['ui.router', 'ngResource', 'appServices', 'appControllers']);
app.run(['$rootScope', '$state', function ($rootScope, $state) {
$rootScope.$on('$stateChangeError',
function (event, toState, toParams, fr... | JavaScript | js/app.js | aaronksaunders/angular-kinvey-dataservices-example | mit | 1,513 | 44 | codeparrot/github-code |
e667db413bfe4587be4f2d7b0cd1af5672a62e5919b839f9e9f0902a700ea76e | package gnu.kawa.functions;
import gnu.expr.Language;
import gnu.lists.*;
import java.lang.reflect.Array;
import java.util.Arrays;
import gnu.mapping.Promise;
/** Implement the standard Scheme procedure <tt>equal?</tt>
* and the Lisp <tt>equal</tt>. */
public class IsEqual extends gnu.mapping.Procedure2
{
Language... | Java | gnu/kawa/functions/IsEqual.java | alain91/kawa | mit | 5,941 | 193 | codeparrot/github-code |
5131482724d3a0df5a7c6cc3de3663f786e21a5440816791429cdd61d76041d8 | <div id="todo" class="container-fluid" data-ng-controller="SubjectInfoController" class="content">
<h1 class="text-center">{{information.title}} {{information.firstname}} {{information.middlename}} {{information.lastname}} {{information.suffix}}</h1>
<!-- Display Non-editing info page -->
<div class="row" ... | HTML | public/views/subject-info.html | 3See/eReader | mit | 14,537 | 382 | codeparrot/github-code |
8eae113dbd112004d7098591bfe09a49a5cc6824e44bf7b747d8c6a21952cc60 | #pragma once
#include <peripherals/base.h>
#if defined(COFFEE_LINUX) || defined(COFFEE_ANDROID)
#include <platforms/base/process.h>
#include <peripherals/libc/types.h>
#include <peripherals/semantic/enum/rsca.h>
#include <peripherals/stl/types.h>
#include <sys/resource.h>
#include <unistd.h>
#if defined(COFFEE_NO... | C | src/peripheral/platform/include/platforms/linux/process.h | hbirchtree/coffeecutie | mit | 3,242 | 153 | codeparrot/github-code |
edd88ddf8c77158b1a7cdbceb2cb86e9e41e4a77137e38d7f56875141b80bc82 | package tabla;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* Represents a row of specified columns.
*
* @param <C> columns definition
*/
public class Row<C extends ColumnsDefinition> {
/**
* Return the value of specified column.
*
* @param column a column in this row
* @return value of sp... | Java | tabla/src/main/java/tabla/Row.java | tabla/tabla | mit | 666 | 37 | codeparrot/github-code |
2d8011822fe803289c5b3ba791ec74a0fb0c40aaff07f878b9347829b2761863 | using Microsoft.VisualStudio.TestTools.UnitTesting;
using RzWpf.Validation;
namespace RzWpfTest
{
[TestClass]
public class WhenUsingExcludeEnumAttribute
{
enum MockEnum
{
Meow,
Woof,
}
[TestMethod]
public void ValidatingExcludedEnumYieldsIsV... | C# | RzWpfTest/Validation/WhenUsingExcludeEnumAttribute.cs | robzhu/RzWpf | mit | 820 | 34 | codeparrot/github-code |
ecdbbcf200b4aa4b4ded7afb362dea6b08efb5f69cffe5e4ddf32c31653ae51b | package com.lernoscio.rover.environment;
import com.lernoscio.rover.environment.Coordinates;
import org.junit.Assert;
import org.junit.Test;
public class CoordinatesTest {
@Test
public void xCoordinatesAreIncrementedForPositiveValue() {
//Given
Coordinates boundaryCoordinates = new Coordinate... | Java | src/test/java/com/lernoscio/rover/environment/CoordinatesTest.java | tliebscher/house-rover-java | mit | 3,261 | 121 | codeparrot/github-code |
a7cf911fba0f141d760a0446d808769dae97ccbb4ed5c9e86ca7bd21786c49d3 | // $Id: Bit_Vector.cpp 14 2007-02-01 15:49:12Z mitza $
#include "orbsvcs/Notify/Bit_Vector.h"
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO_Notify
{
Bit_Vector::Bit_Vector()
: size_(0)
, first_set_bit_(0)
, first_cleared_bit_(0)
{
}
Bit_Vector::~Bit_Vector()
{
}
bool
Bit_Vector::is_set(const size_t locat... | C++ | orbsvcs/Notify/Bit_Vector.cpp | binary42/OCI | mit | 2,162 | 115 | codeparrot/github-code |
f198561d1552443aa12622a3fc572b708195e52ded31a84ccd0438e15ecb7ec2 | #region License
//
// Copyright (C) 2012 AGRC
// 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, modify, merge, ... | C# | Commands/FindIndexByFieldNameCommand.cs | steveoh/SolarCalculator | mit | 3,566 | 84 | codeparrot/github-code |
63c782b12e3b93c78a9d3c9a37ac264600820585ae188885f956513f2d7544fc | import fs = require('fs');
import path = require('path');
import structure = require('./project/Structure');
export function camelCaseTagName(tagName:string):string {
if (tagName.indexOf('-') < 0) {
return camelCase(tagName);
}
return tagName.replace(/\-(\w)/g, function (match, letter) {
return letter.to... | TypeScript | lib/Utils.ts | jasperjs/jasper-build | mit | 3,808 | 146 | codeparrot/github-code |
6e6450dd20b5877d6f2f123a1a954a8f234a2af91a434f39ce9c2309fc200451 | <?php
function getGigForm(){
include "mysql-cred.php";
$link = mysqli_connect( $servername, $username, $password, $database);
if (mysqli_connect_errno()) {
die("Connection failed: " . mysqli_connect_error());
}
//$form = "<form action = 'allChart.php' method='GET'>";
$form = "<form action = '' method='GET'>";
... | PHP | getGigForm.php | owen-kellie-smith/chart | mit | 1,206 | 46 | codeparrot/github-code |
6e969b04bfe7e7d56fe998c6137f31125b09e4fb9c63101e0b34fae72a30081b | using System;
using System.Collections.Generic;
using System.Text;
namespace DynThings.WebAPI.Models.RequestModels
{
public class APILocationRequestModels
{
public class GetLocationsList
{
public Guid Token { get; set; }
#region :: Public Properties ::
pub... | C# | DynThings.WebAPI.Models/RequestModels/APILocationRequestModels.cs | cmoussalli/DynThings | mit | 1,008 | 46 | codeparrot/github-code |
32c1f47bdb1b2355cac5422a286ceae120da4c88d6209da519df9e5f3805a61b | <?php
namespace Faker\Provider\ua_UA;
/**
* Cyrillic to latin transliteration util
*/
class Transliteration
{
/**
* Translate cyrillic text to latin
* Useful for URL ang email generation
* @param string $string
* @return string
*/
public static function transliterate($string = '')
... | PHP | lib/Faker/Provider/ua_UA/Transliteration.php | williangringo/php-framework | mit | 1,549 | 61 | codeparrot/github-code |
273f58ba30b93684a4cfe70d573eb6972e4f88e067f10938c6b7702c793c5680 | <?php
namespace AppBundle\Controller;
use AppBundle\Entity\Beneficiaire;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;use Symfony\Component\HttpFoundation\Request;
/**
* Beneficiaire ... | PHP | src/AppBundle/Controller/BeneficiaireController.php | delrodie/BONzassa | mit | 4,822 | 152 | codeparrot/github-code |
00be403a266c7b8a81d396e1e8d7703a685cd8d5ddc8997cee20912085d43a79 | #ifndef __AES_H__
#define __AES_H__
#include <stdint.h>
//======================================================================================================================
// MACROS
//======================================================================================================================
#define AE... | C | firmware/teensy-hsm/aes.h | edipermadi/teensy-hsm | mit | 2,777 | 62 | codeparrot/github-code |
bfa25a671c1ded2e5c678740be150ebc1ed9dcae9512a04d2ec4329946fbdfeb | #include <stdio.h>
#include <stdlib.h>
#include "misc.h"
#include "mpconfig.h"
#if MICROPY_MEM_STATS
static int total_bytes_allocated = 0;
static int current_bytes_allocated = 0;
static int peak_bytes_allocated = 0;
#define UPDATE_PEAK() { if (current_bytes_allocated > peak_bytes_allocated) peak_bytes_allocated = cu... | C | py/malloc.c | PaulStoffregen/micropython | mit | 2,481 | 105 | codeparrot/github-code |
09feec5ee4abefea739003dbbc54abcaabb4f59743b69efc9472fd12c12b34c7 |
package org.csi.yucca.fabriccontroller.objects.json.ve;
import javax.annotation.Generated;
import com.google.gson.annotations.Expose;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
@Generat... | Java | JavaFabricController/src/main/java/org/csi/yucca/fabriccontroller/objects/json/ve/VirtualEntity.java | csipiemonte/yucca-fabriccontroller | mit | 3,274 | 130 | codeparrot/github-code |
d39eb09ade38fad5f9674883679fa15fc06c0c4f652a0107718400451be4f6e0 |
#include <iostream>
#include <unistd.h>
#include "dogbot/ComsSerial.hh"
#include "dogbot/ComsUSB.hh"
#include "dogbot/DogBotAPI.hh"
int main(int nargs,char **argv)
{
auto logger = DogBotN::DefaultLogger();
logger->info("Starting dtalk");
std::shared_ptr<DogBotN::ComsC> coms = std::make_shared<DogBotN::ComsU... | C++ | API/src/dumpServoState.cc | craftit/BMC2-Firmware | mit | 2,520 | 95 | codeparrot/github-code |
dde2899da5284fa1e101e4033b94b699d47851db4e823731d5ae9810c5583ffd | //! \file ImageLIM.cs
//! \date Fri Apr 15 12:16:20 2016
//! \brief Liar-soft LIM image format implementation.
//
// Copyright (C) 2015-2016 by morkt
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"... | C# | ArcFormats/Liar/ImageLIM.cs | morkt/GARbro | mit | 12,447 | 355 | codeparrot/github-code |
a4f600505a4c36d00442a2f1bc9437d335f469ee18e9a611f53d4febacbd4fe4 | package org.gw4e.eclipse.studio.toolbar;
/*-
* #%L
* gw4e
* $Id:$
* $HeadURL:$
* %%
* Copyright (C) 2017 gw4e-project
* %%
* 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 r... | Java | bundles/gw4e-eclipse-studio-plugin/src/org/gw4e/eclipse/studio/toolbar/GW4EEditorActionBarContributor.java | gw4e/gw4e.project | mit | 4,274 | 91 | codeparrot/github-code |
550f78e15ade02d9a3393e58a690fc1f527551ab0c743b3435ea1aa3ef4ed067 | var System = require('systemjs');
var jas = require('jasmine-core');
var TestsReporter = require('jasmine2-reporter').Jasmine2Reporter
var jasmine = jas.core( jas );
var env = jasmine.getEnv();
var jasmineInterface = jas.interface(jasmine, env);
function extend(destination, source) {
for (var property in source) de... | JavaScript | tasks/lib/harness.js | cryptographics/build-tools | mit | 842 | 34 | codeparrot/github-code |
02d0db520e469c49f1429baf4875e23474e2ca4b822d97a1567c4175b1efeb2b | using CHUSHKA.Models;
using CHUSHKA.Web.Models;
using CHUSHKA.Web.Services.Contracts;
using CHUSHKA.Web.ViewModels;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using System.Diagnostics;
using System.Threading.Tasks;
namespace CHUSHKA.Web.Controllers
{... | C# | C# Web/MVC Frameworks - ASP.NET Core/01. Views-and-Layouts/CHUSHKA.Web/Controllers/ProductsController.cs | MihailDobrev/SoftUni | mit | 4,660 | 162 | codeparrot/github-code |
7067e63f22e1e80806b9500cacd3345a0bc7ab0033069b62b1bee95c8ba87738 | 'use strict';
const _ = require('lodash');
const path = require('path');
const regexStringsToRemove = ['/^', '?(?=\\/|$)/i'];
const keyReplacementString = '(?:([^\\/]+?))';
module.exports = function getSwaggerDataFromRouteStack(stack, pathPrefix) {
pathPrefix = pathPrefix || '';
let routes = [];
if (!stack... | JavaScript | utilities/generate-test/get-swagger-route-data.js | eXigentCoder/node-api-seed | mit | 1,986 | 56 | codeparrot/github-code |
39bbd84621138f468b19fc913ee785115915da0b2681053abc36fd778480baee | package br.ifcibirama.dell_pc.javaisfun;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
public class Matr... | Java | app/src/main/java/br/ifcibirama/dell_pc/javaisfun/Matrizes4.java | jvbeltra/JavaIsFun | mit | 2,896 | 84 | codeparrot/github-code |
dfb8117b73d5a1efaf75c1520e2dd42c5c3ef1fb08b246dd675419441f9858af | {% extends 'base.html' %}
{% block title %}
All Posts · {{ super() }}
{% endblock title %}
{% block head_description %}
Full archives of {{ SITENAME|striptags }} blog.
{% endblock head_description %}
{% block content %}
<div class="row-fluid">
<header class="page-header span10 offset2">
<h1><a href="{{ SITE... | HTML | elegant/templates/archives.html | GMadorell/overfitting_is_a_crime | mit | 1,564 | 48 | codeparrot/github-code |
109f2d467ada37779c080ef750530076a139446e2b6b90cc6535d0a59ed87d8d | ///<remarks>This file is part of the <see cref="https://github.com/enviriot">Enviriot</see> project.<remarks>
using JSC = NiL.JS.Core;
using JSF = NiL.JS.Core.Functions;
using JSL = NiL.JS.BaseLibrary;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
usin... | C# | ES/Logram/LogramItems.cs | enviriot/EnviriotSW | mit | 34,851 | 958 | codeparrot/github-code |
9ab7b7b995dfd366c13adab24ed7d6b5e1d22295d0e679415dbc48aefcf2fa14 | <?php
namespace App\Parsers;
class NichanParser
{
public function parseImage($html_content)
{
/*
http match http
s? optional https support
: literal
\/\/ literal for //
\S+ match characters that's not whitespace
\. literal
2chan.net literal
\/ literal
\S+ match characters that's not whitespace... | PHP | app/Parsers/NichanParser.php | skyvory/replication-dimension | mit | 1,563 | 56 | codeparrot/github-code |
97f599059b7a2d60d9795702eec89ef75b5a719d6c61bec3a45f21a2c5933e86 | // Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "chainparams.h"
#include "init.h"
#include "util.h"
#include "sync.h"
#include... | C++ | src/bitcoinrpc.cpp | sauronrings/SauronRings-SHA | mit | 47,785 | 1,312 | codeparrot/github-code |
1c94b795b224c9079446377eeb7d14187b52ad152ef4973a5a774d7d6916bc80 | // Adapting Wilm Thoben's Envelope example from the Processing Handbook ex2
/*
This sketch shows how to use envelopes and oscillators. Envelopes are pre-defined amplitude
distribution over time. The sound library provides an ADSR envelope which stands for attack,
decay, sustain, release. The amplitude rises then dec... | JavaScript | examples/envelope/sketch.js | processing/p5.js-sound | mit | 2,323 | 81 | codeparrot/github-code |
fa4269926196103d0dfde3e33023b7b07822381c7df17fa518c6fa2c605d1fbc | package jp.co.codeya.salesforcecli.service.util;
/**
* メタデータのタイプを表す。
*
* @author eiichiro.takahashi
*/
public enum MetadataType {
AnalyticSnapshot("", null, "analyticsnapshots"),
ApexClass(".cls", ".cls-meta.xml", "classes"),
ApexComponent(".component", ".component-meta.xml", "components"),
Ap... | Java | service/util/src/main/java/jp/co/codeya/salesforcecli/service/util/MetadataType.java | CODEYA/SalesforceCLI | mit | 4,020 | 161 | codeparrot/github-code |
8fdca7b94b360c824cd26460c640bb34e092ecfaa6f92847bde042d3466ec6fd | #
# Helper module for Remote Terminal application. It
# contains shorthands (macroses) for more simple
# remote server configuring and requests.
#
# @author DeadbraiN
# TODO: add somehow REPL help tips for these functions
module Terminal
import RpcApi
import Config
import Client
import Helper
import Connectio... | Julia | src/net/Terminal.jl | tmptrash/jevo | mit | 5,073 | 179 | codeparrot/github-code |
2460f81000420a842ca72f09636a913ef441f92e706e751c8621968523b2d2de | var assert = require('assert');
var ryter = require('../ryter.js');
describe('ryter', function() {
var apps = 0, blog = 0, news = 0, appsrecent = 0, calmon = 0;
var desc, spec = {
routes: {
apps: function() { apps++; },
'apps/recent': function() { appsrecent++; },
blog: function() { blog++; }... | JavaScript | test/index.js | paldepind/ryter | mit | 3,303 | 122 | codeparrot/github-code |
c544813d19659e88d87a8e33e22b495c008e961bfc3a012f525bcb069b757033 | """WebSocket-specific events."""
import mitmproxy.http
import mitmproxy.websocket
class Events:
# Websocket lifecycle
def websocket_handshake(self, flow: mitmproxy.http.HTTPFlow):
"""
Called when a client wants to establish a WebSocket connection. The
WebSocket-specific headers... | Python | examples/addons/events-websocket-specific.py | vhaupert/mitmproxy | mit | 1,300 | 38 | codeparrot/github-code |
29a9a94103fbdcc4df74e104535a2755fa4824fbc60282c92daae9e60b02581c | <?php
/**
* MenuItem.php
*
* @author Elvyrra SAS
* @license http://rem.mit-license.org/ MIT
*/
namespace Hawk;
/**
* This class describes the MenuItem model
*
* @package BaseModels
*/
class MenuItem extends Model{
/**
* The associated table
*
* @var sting
*/
public static $tablen... | PHP | lib/models/MenuItem.php | elvyrra/hawk | mit | 7,404 | 306 | codeparrot/github-code |
6739505d15187f3804ce31acea6b69bd9ebcdbeb7c6d44ceb06be781d4dc4765 | const viDatatables = {
lengthMenu: "Hiển thị _MENU_ dòng",
search: "Tìm kiếm",
paginate: {
first: "Trang đầu",
previous: "Trang trước",
next: "Trang sau",
last: "Trang cuối",
},
zeroRecords: "Không tìm thấy dữ liệu",
info: "Đang hiển thị _START_ đến _END_ trên tổ... | JavaScript | CRP/CRP/Scripts/pageScript/garageManagement.js | megafirzen/CarRentalPortal | mit | 11,118 | 311 | codeparrot/github-code |
e24576ce3c19136e5898206d66cd22631d23239b24c943adb7b70bd4a282ea0c | Overview.Wall = {};
Overview.Wall.Element = null;
Overview.Wall.ElementHeight = 50;
Overview.Wall.ElementSpacing = 8;
Overview.Wall.ElementOffset = Overview.Wall.ElementHeight + Overview.Wall.ElementSpacing;
Overview.Wall.Elements = [];
Overview.Wall.Load = function() {
this.Element = document.getElementById("Wa... | JavaScript | WWW/js/page_overview_wall.js | Trikisatan/Newnorth-Alerts | mit | 6,264 | 273 | codeparrot/github-code |
61b32b136d17168a327f43bff205e202b009f1e7dee2f42177f1ba88a6eae38e | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using BTDB.Buffer;
using BTDB.Collections;
using BTDB.KVDBLayer.BTree;
using BTDB.KVDB... | C# | BTDB/KVDBLayer/Implementation/KeyValueDB.cs | karasek/BTDB | mit | 61,930 | 1,506 | codeparrot/github-code |
0b023e46ab873dee918d1a3e7827c151078341f8512580128a2eb93b222843a3 | using System;
namespace GeoUtils
{
public class GeoUtils
{
/*
* Constant values
*/
private const double EARTHRADIUS = 6371000;
/*
* Calculates the offset of a coordinate in a given direction and distance.
* Input values are Latitude, Longitude, OffsetDistance and Heading
*/
public static Ge... | C# | GeoUtils/GeoUtils.cs | carmichaelalonso/GeoUtils | mit | 2,890 | 91 | codeparrot/github-code |
73c14f215613d89b706237e43ebfd7e3973c67167a514f98c0bf0c71a960c79e | using NAudio.Wave;
using System;
namespace NAudio.Lame
{
/// <summary>
/// Holds configuration for the LAME engine, applied when the encoder instance is initialised.
/// </summary>
public class LameConfig
{
#region Quality
private LAMEPreset? _preset = null;
/// <summary>Compression preset, clears <see cre... | C# | NAudio.Lame/LameConfig.cs | Corey-M/NAudio.Lame | mit | 6,355 | 202 | codeparrot/github-code |
37915a0ba7144e4c4eca26b50a15f16a94ef51c3b3e173d215b17c311e62a9e0 | namespace SchoolClasses
{
using System;
public class Person : IComment
{
private string name;
private int age;
private string comment;
public Person(string name, int age)
{
this.Name = name;
this.Age = age;
}
public Person(st... | C# | OOP/04. OOPPrinciples1/01. SchoolClasses/Person.cs | KonstantinAdamu/TelerikAcademy | mit | 1,390 | 67 | codeparrot/github-code |
994eaf55046310e4689baaca6fb8b01832c26d137771d69e079a7938cacbfb01 | package com.bitmechanic.barrister;
import org.junit.Test;
import static org.junit.Assert.*;
import java.io.InputStream;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import com.bitmechanic.test.A;
public class LoadContractTest {
@Test
public void canLoadContract() throws Exception {
... | Java | src/test/java/com/bitmechanic/barrister/LoadContractTest.java | coopernurse/barrister-java | mit | 3,124 | 84 | codeparrot/github-code |
a370e60c56d189b5fd8a4da0466e6eb5625c054beb882a58a1a620e4e15ec7aa | package main
import (
"errors"
"time"
)
// 保存 Topic,没有考虑并发问题
var TopicCache = make([]*Topic, 0, 16)
type Topic struct {
Id int `json:"id"`
Title string `json:"title"`
Content string `json:"content"`
CreatedAt time.Time `json:"created_at"`
}
func FindTopic(id int) (*Topic, error) {
if... | GO | src/The_Golang_Standard_Library/code/src/chapter09/httptest/data.go | a233894432/Golang-lesson | mit | 976 | 57 | codeparrot/github-code |
3f09dfe7f2b03fb23fc7945b3535e2aba36b9765df402191798301f5e932da04 | #include "terminalpp/attribute.hpp"
#include <algorithm>
#include <ostream>
namespace terminalpp {
// ==========================================================================
// OUTPUT_NON_DEFAULT_ATTRIBUTE
// ==========================================================================
template <class T>
vo... | C++ | src/attribute.cpp | KazDragon/terminalpp | mit | 1,457 | 47 | codeparrot/github-code |
e778f80cfa777964f6328b500b572de9d4a4211ed1af1ec56e0896f4f4bdbdca | import { Component, NgModule } from '@angular/core';
import { IonicApp, IonicModule } from '../../ionic-angular';
@Component({
templateUrl: 'page.html'
})
export class ApiDemoPage {}
@Component({
template: '<ion-nav [root]="root"></ion-nav>'
})
export class ApiDemoApp {
root = ApiDemoPage;
}
@NgModule({
de... | TypeScript | demos/src/label/app.module.ts | joshesp/ionic | mit | 520 | 32 | codeparrot/github-code |
84cc33e7c6130adfa628997635834168af8da925066035dabb2456694990ea24 | // ILayout.h
// PaintDream (paintdream@paintdream.com)
// 2015-1-21
//
#pragma once
#include "../../Core/Interface/IType.h"
#include <list>
namespace PaintsNow {
class pure_interface ILayout {
public:
class Target {
public:
Target();
void UpdateLayout(bool forceUpdate = false);
std::list<Target*> subW... | C | Source/General/Interface/ILayout.h | paintdream/PaintsNow | mit | 780 | 41 | codeparrot/github-code |
598dda4716af8456d22c5b65abc329004ca6688c6abeb24b906b18da65471548 | // ------------------------------------
// Constants
// ------------------------------------
export const COUNTER_INCREMENT = 'COUNTER_INCREMENT'
export const COUNTER_DOUBLE_ASYNC = 'COUNTER_DOUBLE_ASYNC'
export const COUNTER_TRIPLE = 'COUNTER_TRIPLE'
// ------------------------------------
// Actions
// -------------... | JavaScript | src/routes/Counter/modules/counter.js | tylerbarabas/bbTools | mit | 1,720 | 67 | codeparrot/github-code |
80781e75e216cc757e3a6c8b0a40df74a91ee268cc6e2419b55f47e8fd203564 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OpenUtau.Core.USTx;
namespace OpenUtau.Core
{
public abstract class NoteCommand : UCommand
{
protected UNote[] Notes;
public UVoicePart Part;
}
public class AddN... | C# | OpenUtau/Core/Classes/NoteCommands.cs | cvronmin/OpenUtau | mit | 4,257 | 100 | codeparrot/github-code |
91e370ba314da732ec77a52bb26dbfcacb7305069048f14bf02813e6b4c627b6 | package calculator;
/**
* Calculator Class
* @author Marvin Piekarek
* @date 12th November 2016
* @Matrikelnr 0556014
*/
public class Calculator {
/**
* Entry point for our GREAT calculator
* @param args string args with calculation details
*/
public static void main(String[] args) {
... | Java | Exercise2_Four/src/Calculator/Calculator.java | marpme/StudySecond | mit | 2,925 | 108 | codeparrot/github-code |
cb5fa3f5ca2b94f0b8d4a5bc528ddc6b3f1b71372b2823f1e46796d4a4cc0b51 | import chardet
from vint.ast.node_type import NodeType
from vint.ast.traversing import traverse, SKIP_CHILDREN
from vint.linting.level import Level
from vint.linting.lint_target import AbstractLintTarget
from vint.linting.policy.abstract_policy import AbstractPolicy
from vint.linting.policy_registry import register_po... | Python | vint/linting/policy/prohibit_missing_scriptencoding.py | Kuniwak/vint | mit | 1,557 | 53 | codeparrot/github-code |
2610f023003cd9792d7714d4b4ab1cf923786cd06d753bdf69bd6ca4091c248d | <?php
/* WebProfilerBundle:Router:panel.html.twig */
class __TwigTemplate_30dc6e8a2ef4f71f5143d87a7e6e84e092b610db0583d48ff0ea2f24b4b95881 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = arr... | PHP | app/cache/dev/twig/30/dc/6e8a2ef4f71f5143d87a7e6e84e092b610db0583d48ff0ea2f24b4b95881.php | boutchekkoucht/image | mit | 5,690 | 136 | codeparrot/github-code |
1c55637ec223be56595757a49630f59b2e1bee2a39afc146e542b96bc39590ef | package org.kalnee.trivor.insights.config;
import com.github.mongobee.Mongobee;
import io.github.jhipster.config.JHipsterConstants;
import io.github.jhipster.domain.util.JSR310DateConverters.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cloud.Cloud;
import org.springframewor... | Java | insights/src/main/java/org/kalnee/trivor/insights/config/CloudDatabaseConfiguration.java | kalnee/trivor | mit | 3,047 | 77 | codeparrot/github-code |
34eee92dde455296297a2e201b8be8c7e28825e9a6ee1ac520bbbf52e40428e8 | var express = require('express');
var router = express.Router();
var request = require("request");
var fs = require('fs');
var path = require('path');
function getPackage(packageName, cb) {
/*
var registryUrl = 'https://registry.npmjs.org';
var url = [registryUrl, packageName].join('/');
request(url,... | JavaScript | src/api/routes/npmPackage.js | zhangjianguo1500/f01 | mit | 1,090 | 43 | codeparrot/github-code |
d03f3ba602af532c3a9de51ad85c809cc3cce9ebad92bb5e697cfaba5be7f5df | from create_rule_image_multiprocessed_bypx import phenological_classificaion, read_reference_file
import os
from pyhytemporal.utils import find_files
clip1refs = find_files("/Users/phoetrymaster/Documents/School/Geography/Thesis/Data/MODIS_KANSAS_2007-2012/reprojected/Refs/2012/clip1", "mean.ref")
clip2refs = find_fil... | Python | old_TO_MIGRATE/classifyclips.py | jkeifer/pyHytemporal | mit | 4,401 | 51 | codeparrot/github-code |
4c45ec3935ec4abb96adcb3a68582efa1202aba27a7f14a283fc69fca52d9c67 | using UnityEngine;
using System.Collections;
using LockingPolicy = Thalmic.Myo.LockingPolicy;
using Pose = Thalmic.Myo.Pose;
using UnlockType = Thalmic.Myo.UnlockType;
using VibrationType = Thalmic.Myo.VibrationType;
public class PlayerMovement : MonoBehaviour
{
public float speed = 6f; //Controls how fast the pla... | C# | Assets/Scripts/Player/PlayerMovement.cs | steven77723/ShootingGame | mit | 9,696 | 233 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.