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 |
|---|---|---|---|---|---|---|---|---|
01bdc1158030bb5c1fbbe27c6ff0f4aa0f0a99c6dd40e11d24c7dea8e915ef73 | /*
* Copyright (c) 2013 Triforce - in association with the University of Pretoria and Epi-Use <Advance/>
*
* 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... | Java | src/afk/ge/tokyo/ems/systems/DebugRenderSystem.java | jwfwessels/AFK | mit | 6,629 | 185 | codeparrot/github-code |
369c6f51c4a421c36bc14ee45c4d06de42ac04001c0522d7209b4ba236450767 | package models
import java.sql.Timestamp
case class NodeEntity(id: String, instancesCount: Int)
case class InstanceEntity(id: String, nodeId: String, state: String)
case class AttributeEntity(instanceId: String, key: String, value: String)
case class OperationEntity(instanceId: String, interfaceName: String, opera... | Scala | deployer/app/models/Models.scala | vuminhkh/tosca-runtime | mit | 2,119 | 34 | codeparrot/github-code |
a1aeb83cbd4cc6d151cbf96b2c4b45bd322ab5afd0f4bd7891471713666a78cb | <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<a href="" onmouseover="facebook()">Facebook</a>
<br>
<a href="" onmouseover="google()">goggle</a>
<br>
<a href="" onmouseover="twitter()">twitter</a>
<!--<div id="imgs"></div>-->
<br>
<img id="imgs" sr... | HTML | Ejercicios/javascript/img/onmousehover.html | david995/phpprojects | mit | 823 | 47 | codeparrot/github-code |
443fbde8d20026ea350b9cb80865bf40d103fd79b87323197e6080dc4e6d2e4a | package view.menuBar.workspace;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import javax.swing.JOptionPane;
import view.Constants;
import view.ViewController;
/**
* Class that reads in workspace preference files
*
* @author Lalita Maraj
* @author Su... | Java | src/view/menuBar/workspace/WorkSpacePreferenceReader.java | chinnychin19/CS308_Proj3 | mit | 1,836 | 60 | codeparrot/github-code |
4972e1b708866ee8c565e25ac9183084d6fb0e3652af1beab82f47985066010f | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package erp.cfd;
import java.io.Serializable;
/**
*
* @author Juan Barajas
*/
public final class SCfdiSignature implements Serializable {
private String msUuid;
private String msFechaTimbrado;
private ... | Java | src/erp/cfd/SCfdiSignature.java | swaplicado/siie32 | mit | 1,709 | 54 | codeparrot/github-code |
55a1dc827bfafcac18def6785c96c7ff28b06b55bd2253f3bb5df5e61203ad36 | import traverse from "../lib";
import assert from "assert";
import { parse } from "babylon";
import * as t from "babel-types";
function getPath(code) {
const ast = parse(code, { plugins: ["flow", "asyncGenerators"] });
let path;
traverse(ast, {
Program: function (_path) {
path = _path;
_path.stop... | JavaScript | packages/babel-traverse/test/inference.js | STRML/babel | mit | 8,822 | 180 | codeparrot/github-code |
d0eca7ea9581520d270ac72540c6fec0752883e931deea872c622a25a988fdac | var Chartist = require('chartist');
module.exports = makePluginInstance;
makePluginInstance.calculateScaleFactor = calculateScaleFactor;
makePluginInstance.scaleValue = scaleValue;
function makePluginInstance(userOptions) {
var defaultOptions = {
dot: {
min: 8,
max: 10,
unit: 'px'
},
... | JavaScript | index.js | psalaets/chartist-plugin-scale-lines-and-dots | mit | 2,292 | 86 | codeparrot/github-code |
3d10b2af1f8ed915b08feea33075552caf5f01436aa81640c7651e1b9967edf5 | exports.BattleStatuses = {
brn: {
effectType: 'Status',
onStart: function (target, source, sourceEffect) {
if (sourceEffect && sourceEffect.id === 'flameorb') {
this.add('-status', target, 'brn', '[from] item: Flame Orb');
return;
}
this.add('-status', target, 'brn');
},
onBasePower: function ... | JavaScript | data/statuses.js | nehoray181/pokemon | mit | 14,531 | 524 | codeparrot/github-code |
f36686ff4ae40d889d77b5d533ccfa47c4695223103a77568db5ca39ecada389 | package com.example.profbola.bakingtime.provider;
import android.database.sqlite.SQLiteDatabase;
import com.example.profbola.bakingtime.provider.RecipeContract.IngredientEntry;
import static com.example.profbola.bakingtime.utils.RecipeConstants.IngredientDbHelperConstants.INGREDIENT_RECIPE_ID_IDX;
/**
* Created by... | Java | app/src/main/java/com/example/profbola/bakingtime/provider/IngredientDbHelper.java | Ehbraheem/Baking-Time | mit | 2,247 | 49 | codeparrot/github-code |
e7bd80a9c9791f62f807134903b7c991ce7fabc8e7b2faf4d0727128737e860c | ( function( factory ) {
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
define( [ "jquery" ], factory );
} else {
// Browser globals
factory( jQuery );
}
} ( function( $ ) {
$.ui = $.ui || {};
return $.ui.version = "1.12.1";
} ) );
/*!
* jQuery UI Widget 1... | JavaScript | public/assets/jquery-ui/widgets/controlgroup-f525e8d53867db2d7a4e30c79b5d800b.js | malahinisolutions/verify | mit | 28,612 | 1,053 | codeparrot/github-code |
eb0a8921f653dc2cfbe5fe76ef8049ef5a5744d9a632fc214fb5507389ed3bf9 | <?php
/**
* TOP API: taobao.xhotel.rate.add request
*
* @author auto create
* @since 1.0, 2013-12-10 16:57:25
*/
class XhotelRateAddRequest
{
/**
* 额外服务-是否可以加床,1:不可以,2:可以
**/
private $addBed;
/**
* 额外服务-加床价格
**/
private $addBedPrice;
/**
* 币种(仅支持CNY)
**/
private $currencyCode;
/**
*... | PHP | web/doc/Resources/open/taobao/taobao-sdk-PHP-online_standard-20131210/top/request/XhotelRateAddRequest.php | allengaller/mazi-cms | mit | 3,029 | 170 | codeparrot/github-code |
98b2229fc72c816190c7065dcfc824b567502cedb5caf3dd6a0c850ee1cc85bc | import java.util.Iterator;
import java.util.NoSuchElementException;
@SuppressWarnings("unchecked")
public class RandomizedQueue<Item> implements Iterable<Item> {
private Item[] _arr;
private int _length = 0;
private void resize(int newLength) {
if (newLength > _arr.length) newLength = 2 * _arr.len... | Java | 2/RandomizedQueue.java | hghwng/mooc-algs1 | mit | 2,505 | 99 | codeparrot/github-code |
68447ab1fd7eb546d71999babc74e4e506758e9a978aabeead7408b71b9922bf | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin.Security;
using Microsoft.Owin.Security.Cookies;
usi... | C# | SearchCrawlerHelper.Sample/Providers/ApplicationOAuthProvider.cs | Useful-Software-Solutions-Ltd/PhantomRunnerAndSearchCrawlerHelper | mit | 4,146 | 116 | codeparrot/github-code |
b91f9d941c5018ecd50da479ab8a55b0bc1169c3bcc4a73a6c42f0486bb3b257 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Microsoft.Dx.Wopi.Models
{
public class WopiHostCapabilities : IWopiHostCapabilities
{
public bool SupportsCobalt { get; set; }
public bool SupportsContainers { get; se... | C# | Microsoft.Dx.Wopi/Models/WopiHostCapabilities.cs | apulliam/WOPIFramework | mit | 989 | 33 | codeparrot/github-code |
cb19dbdeae739020bcc52cf6e9a99d87128c7f855a059d7c10d75e48bb287cd1 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>bdds: 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.07.1-2.0.6/released/8.13.0/bdds/8.9.0.html | coq-bench/coq-bench.github.io | mit | 7,607 | 187 | codeparrot/github-code |
4cf99e14d530a37535a3de1ebd02c1ed4b16f7b300df485092e88b8a5c4784bf | package com.company;
import java.util.Scanner;
public class TrainingHallEquipment {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
double budget = Double.parseDouble(scanner.nextLine());
int numberOfItems = Integer.parseInt(scanner.nextLine());
... | Java | Programming Fundamentals/Basics-MoreExercises/src/com/company/TrainingHallEquipment.java | ivelin1936/Studing-SoftUni- | mit | 1,209 | 39 | codeparrot/github-code |
e88d7de37259ec26d235b0e632c12fae7975cb305b525848461451227cc9bea4 | import java.io.IOException;
import java.util.Scanner;
import iterators.*;
import User.User;
public class main {
public static void zad1(ArrayIterator it){
PredicateCoN pred = new PredicateCoN(4);
PredicateCoN pred2 = new PredicateCoN(2);
IteratorCoN con = new IteratorCoN(it,pred);
IteratorCoN co = new Iter... | Java | INF/Algorytmy i Struktury Danych/zad1/main.java | superdyzio/PWR-Stuff | mit | 2,259 | 71 | codeparrot/github-code |
440741f95576b690d26b69ab48e309a4047a355d0d7214e7301d3fe51b04eadf | import { Component } from 'vidom';
import { DocComponent, DocTabs, DocTab, DocAttrs, DocAttr, DocExample, DocChildren, DocText, DocInlineCode } from '../../Doc';
import SimpleExample from './examples/SimpleExample';
import simpleExampleCode from '!raw!./examples/SimpleExample.js';
export default function ModalDoc({ ta... | JavaScript | src/components/Modal/doc/index.js | dfilatov/vidom-ui | mit | 1,817 | 40 | codeparrot/github-code |
4c4a3cd98678162792a856910d0f7a3f51eb89ca648c52ec0002df26d3a7f789 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Postgrad_alumni_model extends CI_Model
{
function __construct() {
parent::__construct();
$this->load->database();
}
public function selectStudent () {
$this->db->select("student_id,full_name, p_university_... | PHP | application/models/Postgrad_alumni_model.php | nazmule27/alumni | mit | 2,663 | 78 | codeparrot/github-code |
61d7d050c5d58b5f038710668e7549ca2283998d5b8bf6afc5290cea41754598 | // Copyright 2013-2022, University of Colorado Boulder
/**
* A DOM drawable (div element) that contains child blocks (and is placed in the main DOM tree when visible). It should
* use z-index for properly ordering its blocks in the correct stacking order.
*
* @author Jonathan Olson <jonathan.olson@colorado.edu>
*... | JavaScript | js/display/BackboneDrawable.js | phetsims/scenery | mit | 18,588 | 547 | codeparrot/github-code |
c524d439814ef2d2a547500f43cce1d8426e58b1b07cba6d7db017c522a4d83a | /* main7-3.c ¼ìÑébo7-3.cµÄÖ÷³ÌÐò */
#include"c1.h"
typedef char InfoType;
#define MAX_Info 80 /* ÐÅÏ¢×Ö·û´®×î´ó³¤¶È+1 */
#define MAX_VERTEX_NAME 3 /* ¶¥µã×Ö·û´®×î´ó³¤¶È+1 */
typedef char VertexType[MAX_VERTEX_NAME];
#include"c7-3.h"
#include"bo7-3.c"
Status visit(VertexType v)
{
printf("%s ",v);
retur... | C | YanWeiMinClangSln/ch7/Main7-3.c | blacop/DsCppR | mit | 1,253 | 54 | codeparrot/github-code |
e9cb095fb5410db3784f0f8c902387f3faf2a07ef6f174c514cb8ca14539fd20 | using System;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Serialization;
using Telegram.Bot.Types.Enums;
namespace Telegram.Bot.Types
{
/// <summary>
/// This object contains information about one member of the chat.
/// </summary>
[JsonObject(MemberSerialization.OptI... | C# | src/Telegram.Bot/Types/ChatMember.cs | TelegramBots/telegram.bot | mit | 5,882 | 131 | codeparrot/github-code |
2e0c32c74ff6bd7f234fd9f0ac133a23289495a6b89e310cf5ce035348f4d9c4 | // Karma configuration
// Generated on Wed Jun 01 2016 16:04:37 GMT-0400 (EDT)
module.exports = function (config) {
config.set({
basePath: '',
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['mocha', 'browserify'],
// include only tests here; ... | JavaScript | karma.conf.js | cliffmeyers/jenkins-design-language | mit | 1,953 | 63 | codeparrot/github-code |
d13a3a3716b63d3ee9fccc8c65f70453fa5852495ad21c4617284f023bf026c1 | /**************************************************************************
The MIT License (MIT)
Copyright (c) 2015 Dmitry Sovetov
https://github.com/dmsovetov
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to ... | C | Source/Dreemchest/Scene/Rendering/Passes/DebugRenderPasses.h | dmsovetov/dreemchest | mit | 5,458 | 119 | codeparrot/github-code |
fa909a7323c3f374b56a3693f95defa766fe56a698f2d569193e11144eb40a29 | <?php
return [
/*
|--------------------------------------------------------------------------
| Application Debug Mode
|--------------------------------------------------------------------------
|
| When your application is in debug mode, detailed error messages with
| stack traces will be shown on every error... | PHP | config/app.php | sroutier/l5-theme-demo | mit | 7,202 | 203 | codeparrot/github-code |
213bf07f37ba5296ea786b8db8cefc564105bbc4aa1436b4c86832cfb575a734 | import 'babel-polyfill';
import EdgeGrid from 'edgegrid';
import dotenv from 'dotenv';
import inquirer from 'inquirer';
import formatJson from 'format-json';
import fs from 'fs';
(async function() {
// load .env vars
dotenv.config();
let papiResponses = new Map();
const edgegrid = new EdgeGrid({
... | JavaScript | configure.js | wyvern8/akamai-nginx | mit | 5,154 | 153 | codeparrot/github-code |
1d8530c798358886478c90c7290440730c9855afbdd24ffd42ecb68165a0b17f | import {Component, Inject} from "@angular/core";
import {HighLevelComponent, GENERIC_INPUTS, GENERIC_BINDINGS} from "../common/component";
import {REACT_NATIVE_WRAPPER} from "./../../renderer/renderer";
import {ReactNativeWrapper} from "../../wrapper/wrapper";
/**
* A component for displaying a tab bar.
*
* ```
@Co... | TypeScript | src/components/ios/tabbar.ts | angular/react-native-renderer | mit | 2,193 | 63 | codeparrot/github-code |
da97aad8af51bfccca439d6d4452e53ac6d6051a9621225d2c133cd151fbe7a0 | $(function() {
// column select
dw.backend.on('sync-option:base-color', sync);
function sync(args) {
var chart = args.chart,
vis = args.vis,
theme_id = chart.get('theme'),
labels = getLabels(),
$el = $('#'+args.key),
$picker = $('.base-... | JavaScript | plugins/core-vis-options/static/sync-colorselector.js | plusgut/datawrapper | mit | 8,440 | 208 | codeparrot/github-code |
80343564d1be1e73a70f16eb75f70eb1249706665beec2641bfc8f8527750c5e | //--------------------------------------------------------------------------------//
// COPYRIGHT NOTICE //
//--------------------------------------------------------------------------------//
// Copyright (c) 2012, Instituto de Microelectronica de Sevilla (... | Java | src/xfuzzy/xfplot/Xfplot2DPanel.java | dayse/gesplan | mit | 6,711 | 178 | codeparrot/github-code |
7dc1436f7306ca9141046776c4771d7839b354a6688684b7b8f39684d0a66b5e | import Game from '../models/game'
class Store {
constructor() {
const game = new Game({
onTick: () => {
this.ui.game.update()
}
})
const { snake, map } = game
this.snake = snake
this.map = map
this.game = game
game.start()
this.ui = {}
this.data = {
m... | JavaScript | packages/omi-snake/src/stores/index.js | AlloyTeam/Nuclear | mit | 908 | 66 | codeparrot/github-code |
70ba07a6602ab99a2e8861cd76d592604dca5080c7b81a6a5a315f094423423e | class Repositext
class Subtitle
class Operation
# Represents a move right subtitle operation.
class MoveRight < Operation
def inverse_operation
Subtitle::Operation.new_from_hash(
affected_stids: inverse_affected_stids,
operation_id: '',
operation... | Ruby | lib/repositext/subtitle/operation/move_right.rb | imazen/repositext | mit | 709 | 31 | codeparrot/github-code |
205b99c3a1e7b85a4f48f3583f719338873fbeaceac5e6bfb9e49d7e3aa5f4e8 | /**
* @class Oskari.mapframework.bundle.layerselector2.view.PublishedLayersTab
*
*/
Oskari.clazz.define("Oskari.mapframework.bundle.layerselector2.view.PublishedLayersTab",
/**
* @method create called automatically on construction
* @static
*/
function (instance, title) {
//"use stri... | JavaScript | bundles/framework/bundle/layerselector2/view/PublishedLayersTab.js | uhef/Oskari-Routing-frontend | mit | 13,634 | 376 | codeparrot/github-code |
d0f2abaa0975aa68e18601725f7ab34c2b1a027f8ee7f3e0c16e9030ac7a7169 | // +build linux darwin freebsd netbsd openbsd solaris
package clif
import (
"os"
"runtime"
"syscall"
"unsafe"
)
func init() {
TermWidthCall = func() (int, error) {
w := new(termWindow)
tio := syscall.TIOCGWINSZ
if runtime.GOOS == "darwin" {
tio = TERM_TIOCGWINSZ_OSX
}
res, _, err := syscall.Syscall... | GO | term_x.go | ukautz/clif | mit | 591 | 32 | codeparrot/github-code |
6ee6129663d79bea7a6f3fab003fa9d1d7834298b2270def4500189af5b0ff46 | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("SW... | C# | SwdPageRecorder/SwdPageRecorder.UI/Properties/AssemblyInfo.cs | sergueik/swd-recorder | mit | 1,579 | 44 | codeparrot/github-code |
857a42a77a8dad61674ee909c8c7d8791cdee8563faaef63ae25739649981cfa | using System;
using System.Net;
using System.Net.Sockets;
using System.Reflection;
using Hik.Communication.Scs.Communication.EndPoints.Tcp;
namespace Hik.Communication.Scs.Client.Tcp
{
/// <summary>
/// This class is used to simplify TCP socket operations.
/// </summary>
internal static... | C# | src/Scs/Communication/Scs/Client/Tcp/TcpHelper.cs | huhen/scs | mit | 4,227 | 102 | codeparrot/github-code |
df208043a44e22c7fa17a42f530ead78c0696bf1ed8af8b911f7fbe390236344 | package proxy.test;
import java.rmi.Naming;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import util.JavaLog;
public class Server extends UnicastRemoteObject implements RemoteInterface{
private static final long serialVersionUID = 1L;
protected Server() throws RemoteException {
... | Java | HeadFirstDesignPatterns/src/proxy/test/Server.java | DeyuGoGo/EasyJavaDesignPatterns | mit | 622 | 37 | codeparrot/github-code |
a10b87e25e8fcdf111f61bdc42a09f58478ed638afa476fd9fc28a1aa6ef4c5e | var _ = require('lodash'),
fs = require('fs'),
path = require('path'),
through = require('through'),
filesize = require('file-size');
function browserify(file, options) {
var source = [];
function write(data) {
source.push(data);
};
function end(file, options) {
var renderTemplate = f... | JavaScript | src/transformers.js | hekar/grunt-voluminosify | mit | 2,693 | 93 | codeparrot/github-code |
9681fdb431aa2e89fd5597060f25e2f4eea5f48e3d3a8b754ee75a1f43da5714 | <?php
namespace Modules\Dynamicfield\Providers;
use Illuminate\Support\ServiceProvider;
class DynamicfieldServiceProvider extends ServiceProvider
{
/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected $defer = false;
public function boot()
{
}
... | PHP | Providers/DynamicfieldServiceProvider.php | stone-lab/Dynamicfield | mit | 2,013 | 75 | codeparrot/github-code |
bc1cbbf93fd1243a293b15b5101a0a02fc9f9fee102b8c1a11b09ad5411fba8e | "use strict";
var filters = require('./filters'),
uniq = require('uniq');
var doNgram = function doNgram (string, resultData, config) {
var ngramCount = string.length - config.n + 1,
ngram,
previousNgram = null,
ngramData,
i;
for (i = 0; i < ngramCount; i++) {
ngra... | JavaScript | src/ngram-process.js | kchapelier/ngram-word-generator | mit | 7,684 | 253 | codeparrot/github-code |
438525f4991b2b5f9c29e8010ab7068f7f1cbe574d78ae26b25aad28d4d15d6f | /* Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing... | C++ | Boss2D/addon/_old/webrtc-qt5.11.2_for_boss/modules/video_coding/receiver_unittest.cc | koobonil/Boss2D | mit | 20,183 | 508 | codeparrot/github-code |
131f13ea942938ff6a834da871f0843849bd811c103bc9b82515c5da4854bd95 | <!doctype html>
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]-->
<!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="zh"><!--<!... | HTML | _layouts/page.html | zhaohaifeng/zhaohaifeng.github.com | mit | 2,453 | 63 | codeparrot/github-code |
18346d35d0f99cbf8f831c3e801c7d92597dd666ef5ec33edd0b714397a72e36 | /* =============================================================
* bootstrap-collapse.js v2.3.2
* http://getbootstrap.com/2.3.2/javascript.html#collapse
* =============================================================
* Copyright 2012 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License")... | JavaScript | public/assets/rails_admin/bootstrap/bootstrap-collapse-3387a8b21abb7862bae6aac8337d6b26.js | nfelix/mvmt | mit | 4,731 | 169 | codeparrot/github-code |
97d7e93def563aa4319880280b65c4af999244b9dcbe163f34d342106e3328e1 | // Copyright (c) Rotorz Limited. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root.
using Rotorz.Games.EditorExtensions;
using System;
using System.IO;
using UnityEngine;
namespace Rotorz.Games.UnityEditorExtensions
{
/// <summary>
/// Project-wide settings for the "... | C# | Client/Assets/Third/PSD2UGUI/@rotorz/unity3d-editor-menu/Editor/EditorMenuSettings.cs | tenvick/hugula | mit | 3,824 | 117 | codeparrot/github-code |
d5d19bd7ffd0467e7710e4b67cc44b91717965244b77e5223070d103d2fcf7a7 | # -*- coding: utf-8 -*-
"""
Organization Registry - Controllers
"""
module = request.controller
resourcename = request.function
if not settings.has_module(module):
raise HTTP(404, body="Module disabled: %s" % module)
# -----------------------------------------------------------------------------
def index(... | Python | controllers/org.py | code-for-india/sahana_shelter_worldbank | mit | 10,621 | 334 | codeparrot/github-code |
8bcf77dba1b30c6ddd1810aac2f04e9af392811507570670cc07458da4949722 | <!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>SetBreakpointParameterType | picturepark-sdk-v1-pickers API</title>
<meta name="description" content="Documentation for picturepark-sdk-v1-pickers API">
<meta name="viewport" cont... | HTML | docs/picturepark-sdk-v1-pickers/api/interfaces/_inspector_.debugger.setbreakpointparametertype.html | Picturepark/Picturepark.SDK.TypeScript | mit | 8,650 | 212 | codeparrot/github-code |
07f39d04c570389554ea146edc503ddb09ad3574750b9c59a8c4d6745f2dd171 | /* MIT License
Copyright (c) 2016 JetBrains http://www.jetbrains.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 limitation the rights
to use, copy, mo... | C# | FacePalm/Properties/Annotations.cs | swsch/FacePalm | mit | 43,437 | 1,094 | codeparrot/github-code |
bd38b844594695ccd194a0465b18d7b682837976086b6d17692f234c1e492cb8 | package jaci.openrio.toast.core.loader.simulation;
import jaci.openrio.toast.lib.state.RobotState;
import javax.swing.*;
import java.awt.*;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.geom.Rectangle2D;
/**
* A GUI Element for switching the Robot State during Simulation
*
... | Java | src/main/java/jaci/openrio/toast/core/loader/simulation/GuiRobotState.java | Open-RIO/ToastAPI | mit | 3,232 | 120 | codeparrot/github-code |
fc761820eef7c08b809a86118bcbfbd42c9d4245254b0fbdf22340478d964b53 | require "active_support/core_ext/integer/time"
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# In the development environment your application's code is reloaded any time
# it changes. This slows down response time but is perfect for developme... | Ruby | config/environments/development.rb | adamstegman/oxalates | mit | 2,203 | 65 | codeparrot/github-code |
72051bb5bea95162eb30999093325bcf3099c7444472d405736bdbe5c4efbfce | appService.factory('Chats', function() {
// Might use a resource here that returns a JSON array
// Some fake testing data
var chats = [{
id: 0,
name: 'Ben Sparrow',
lastText: 'You on your way?',
face: 'app/view/common/img/ben.png'
}, {
id: 1,
name: 'Max Lynx',
lastText: ... | JavaScript | replacedata/www/app/view/chatsModule/chatsService.js | pastryTeam/pastry-plugin-base-ionic | mit | 1,146 | 48 | codeparrot/github-code |
edfdad3ad8dbce690fed162da6d16c5345f44db0bef7e425998b196f1fe3ebb1 | package drone_slam.apps.controlcenter.plugins.attitudechart;
import drone_slam.apps.controlcenter.ICCPlugin;
import drone_slam.base.IARDrone;
import drone_slam.base.navdata.AttitudeListener;
import org.jfree.chart.ChartPanel;
import javax.swing.*;
import java.awt.*;
public class AttitudeChartPanel extends JPanel im... | Java | drone-slam/src/drone_slam/apps/controlcenter/plugins/attitudechart/AttitudeChartPanel.java | YangMann/drone-slam | mit | 1,902 | 74 | codeparrot/github-code |
2b0ca17861d3fd0c1c61b49dd2f1cf9abe3d70b17e57b0f82f4f2a0234a26e76 | package org.osiam.client;
/*
* for licensing see the file license.txt.
*/
import static org.apache.http.HttpStatus.SC_FORBIDDEN;
import static org.apache.http.HttpStatus.SC_OK;
import static org.apache.http.HttpStatus.SC_UNAUTHORIZED;
import static org.apache.http.HttpStatus.SC_CONFLICT;
import java.io.IOException;... | Java | src/main/java/org/osiam/client/OsiamUserService.java | wallner/connector4java | mit | 15,934 | 308 | codeparrot/github-code |
5cd2d89ef37c5239d25f44111128f2bdc776169c725fe875841955cbee1739a9 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ControlPanelPlugin
{
public class ButtonItem : PanelItem
{
public Constants.Panel.SwitchId Switch;
public bool State = false;
public ButtonItem(Constants.Panel.SwitchId butt... | C# | plugin/Items/ButtonItem.cs | SpikE4343/control-panel | mit | 1,173 | 52 | codeparrot/github-code |
8b6eccf9c1122ab46245ccd13cab2d30348407c19f2698d333f93e17785d6a5f | # coding: utf8
from wsgidav.dav_provider import DAVCollection, DAVNonCollection
from wsgidav.dav_error import DAVError, HTTP_FORBIDDEN
from wsgidav import util
from wsgidav.addons.tracim import role, MyFileStream
from time import mktime
from datetime import datetime
from os.path import normpath, dirname, basename
try... | Python | wsgidav/addons/tracim/sql_resources.py | tracim/tracim-webdav | mit | 16,929 | 567 | codeparrot/github-code |
72ef91830939ad678f6170c3bab2ceca704bc37cd5a23de8594a3833defc0a83 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Runtime.CompilerServices;
namespace MS.Internal
{
// WPF's builds are seeing warnin... | C# | PresentationBuildTasksTest/WPF/PresentationBuildTasks/MS/Internal/BuildTasksAppContextSwitches.cs | lindexi/lindexi_gd | mit | 1,508 | 35 | codeparrot/github-code |
e00dfdbb0f4d8a637375aa97c9d78632fd684a9d1b1600382447417f247be47f | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import AppBar from 'material-ui/AppBar';
import Tabs, { Tab } from 'material-ui/Tabs';
import PhoneIcon from '@material-ui/icons/Phone';
import FavoriteIcon from '@material-ui/icons/Favorite';
import PersonPi... | JavaScript | docs/src/pages/demos/tabs/ScrollableTabsButtonPrevent.js | cherniavskii/material-ui | mit | 2,367 | 78 | codeparrot/github-code |
5f846bcf5f0b427cbedf99eb00f6cbf9f10465d5e5f8ff2b60b51b17893e2347 | using System.Collections.Generic;
namespace Greg.Requests
{
public class PackageVersionUploadRequestBody : RequestBody
{
internal PackageVersionUploadRequestBody()
{
}
public PackageVersionUploadRequestBody(string name, string version, string description,
... | C# | src/GregClient/Requests/PackageVersionUploadRequestBody.cs | Benglin/GRegClientNET | mit | 1,999 | 51 | codeparrot/github-code |
e25424675d31cb8c472b62574ca7ba17a9357f9f25ec03c32c3008e84602a221 | package connect.view;
import android.content.Context;
import android.util.AttributeSet;
import connect.view.roundedimageview.RoundedImageView;
/**
* Created by Administrator on 2016/12/15.
*/
public class HightEqWidthRounderImage extends RoundedImageView {
public HightEqWidthRounderImage(Context context) {
... | Java | app/src/main/java/connect/view/HightEqWidthRounderImage.java | connectim/Android | mit | 759 | 31 | codeparrot/github-code |
077817d656cd635aa4a334a4ef90d93b42ede6403ad242694a80a7a967bb9e1b | package com.sind.projectx.domain.food.menu;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;
import java.util.ArrayList;
import java.util.List;
/**
* @author Dmytro Bekuzarov
*/
public class MenuSection {
@NotBlank
private String name;
@NotEmpt... | Java | projectx-api-domain/src/main/java/com/sind/projectx/domain/food/menu/MenuSection.java | dmytro-bekuzarov/projectx-api | mit | 890 | 45 | codeparrot/github-code |
a24a3a6f755de62080f77500112df27d1674241b272aba7f3e4fd1d438d6daf7 | /*
Binary Tree Upside Down
Given a binary tree where all the right nodes are either leaf nodes with a sibling (a left node that shares the same parent node) or empty, flip it upside down and turn it into a tree where the original right nodes turned into left leaf nodes. Return the new root.
For example:
Given a binary... | Java | List/Binary_Tree_Upside_Down.java | Yujia-Xiao/Leetcode | mit | 1,805 | 86 | codeparrot/github-code |
840b9b7da846c074f927ec93d308bb6531bd39431d669b57ee46e790b9068530 | import { lighten } from 'polished';
import { css } from '@emotion/react';
import styled from '@emotion/styled';
import { colors } from './colors';
export const outer = css`
position: relative;
padding: 0 5vw;
`;
// Centered content container blocks
export const inner = css`
margin: 0 auto;
max-width: 1040px... | TypeScript | src/styles/shared.ts | chso2/chso2.github.io | mit | 8,265 | 414 | codeparrot/github-code |
b65134e0338255f4182e5697380ffed26f4d93d0f3cc7850c7d230ea1b37e9b2 | package ru.mail.parking.sw2.system;
import com.sonyericsson.extras.liveware.aef.registration.Registration;
import com.sonyericsson.extras.liveware.extension.util.ExtensionUtils;
import com.sonyericsson.extras.liveware.extension.util.registration.RegistrationInformation;
import android.content.ContentValues;
import r... | Java | src/ru/mail/parking/sw2/system/SwRegInfo.java | trashkalmar/MrParkingNavigator | mit | 2,177 | 66 | codeparrot/github-code |
68d348ae91cb92ae4c59d4d64d1d5d65f18ab26bccd2e1a03f4a9848c0ecb7ac | /**
* ****************************************************************************
* Copyright 2014 Virginia Polytechnic Institute and State University
* <p/>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a cop... | Java | portal/patric-diseaseview/src/edu/vt/vbi/patric/portlets/DiseaseOverview.java | PATRIC3/patric3_website | mit | 7,388 | 232 | codeparrot/github-code |
add43315f1b7484715ddbc823d5144fb1541d882d1deeb30de704e2e068f6b87 | /*****************************************************************************
* Course: CS 27500
* Name: Adam Joseph Cook
* Email: cook5@purduecal.edu
* Assignment: 1
*
* The <CODE>TestDrive</CODE> Java application simulates a car being driven
* depending on its provided fuel efficiency and fuel amount.
*
* @... | Java | hw1/TestDrive.java | adamjcook/cs27500 | mit | 2,807 | 73 | codeparrot/github-code |
3760139ea3a4444e2cfce2b4461516b1bcc52b92afb8daac6fb03868551b35ea | // Actions
export const ADD_NOTIFICATION = 'notifications/ADD_NOTIFICATION'
export const DISMISS_NOTIFICATION = 'notifications/DISMISS_NOTIFICATION'
export const CLEAR_NOTIFICATIONS = 'notifications/CLEAR_NOTIFICATIONS'
// Reducer
export const initialState = []
export default function reducer(state = initialState, act... | JavaScript | src/core/notifications/index.js | cannoneyed/tmm-glare | mit | 1,447 | 54 | codeparrot/github-code |
7254d71a4659f3b0bec806ad4163b60012fd0e8691a27aeba597674b39dfe9c0 | <?php
// src/VersionControl/GitlabIssueBundle/Entity/User.php
/*
* This file is part of the GitlabIssueBundle package.
*
* (c) Paul Schweppe <paulschweppe@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Versio... | PHP | app/src/VersionControl/GitlabIssueBundle/Entity/User.php | SSHVersionControl/git-web-client | mit | 887 | 50 | codeparrot/github-code |
c4182ad8a04fc48df877ee31aa68eabc552d9624c600742e2d59e15cb94124a9 | var NaturalLanguageUnderstandingV1 = require('watson-developer-cloud/natural-language-understanding/v1.js');
var ToneAnalyzerV3 = require('watson-developer-cloud/tone-analyzer/v3');
let fs = require('fs');
let path = require('path');
const directoryName = path.dirname(__filename);
const creds = {
tone: {
"userna... | JavaScript | scripts/watson.js | jhowtan/frost-poetry-dh | mit | 3,009 | 116 | codeparrot/github-code |
3712c7de0ed159ebb709acd723da0710d12fbfc65d8d9885023e2eac0dba8711 | var encodeDecode = function() {
var randomNum = function (min, max) { // helper function for random numbers
return Math.random() * (max - min) + min;
};
var insertBreak = function (counter) { //helper function to break lines @ 100 char
if (counter % 100 === 0) {
$('body').append("<br>");
... | JavaScript | app/quizzes/scripts.js | Pink401k/kyle.pink | mit | 1,653 | 50 | codeparrot/github-code |
05674c9cc0b4d99830df03ae1b685498163c1b90916a2783b8764679997bb610 | namespace Merchello.Web.Models.ContentEditing.Collections
{
using System;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.Serialization;
using System.Security.Cryptography;
using Merchello.Core;
using Merchello.Core.Models;
using Merchello.Core.Models.EntityBase;
using Merc... | C# | src/Merchello.Web/Models/ContentEditing/Collections/EntityCollectionDisplay.cs | rasmusjp/Merchello | mit | 3,981 | 119 | codeparrot/github-code |
dba571b6a51a5f4f972b3c657baf326a6d7c2b9a28a1a83d676cb032afe05e16 | // -------------------------------------------------------
// Copyright (C) 施维串 版权所有。
// 创建标识:2013-11-11 10:53:36 Created by 施维串
// 功能说明:
// 注意事项:
//
// 更新记录:
// -------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace sh... | C# | shiwch.util/ByteArrayEqualityComparer.cs | q120582371/gameserver | mit | 1,934 | 80 | codeparrot/github-code |
48f0cca5744799fb82332c8110498c8c661723af043abcd1c807597654b1faf0 | import React, {
Fragment,
Children,
cloneElement,
useRef,
useEffect
} from 'react';
import { createPortal } from 'react-dom';
import PropTypes from 'prop-types';
import cx from 'classnames';
import idgen from './idgen';
import Button from './Button';
import { safeJSONStringify } from './utils';
const Modal ... | JavaScript | src/Modal.js | react-materialize/react-materialize | mit | 4,976 | 236 | codeparrot/github-code |
ea88329bbe5305c383daf55d203dd8cf18c56393f480e84f0e71cde68630feb7 | class KonamiCodeManager {
constructor() {
this._pattern = "38384040373937396665";
this._keyCodeCache = '';
this._callback = () => {};
this._boundCheckKeyCodePattern = this._checkKeyCodePattern.bind(this);
}
attach(root, callback) {
if (root instanceof Element) {
root.removeEventListener... | JavaScript | src/views/modules/KonamiCodeManager.js | EragonJ/Kaku | mit | 988 | 35 | codeparrot/github-code |
79ec6ba73083c6d36af57a01413ea4a028a1f81eae1513a8efbc8c83e3b22121 | /**
*
* Trailing Zeroes
*
* @author: Corey Hart <http://www.codenothing.com>
* @description: Removes unecessary trailing zeroes from values
*
* @before:
* .example {
* width: 5.0px;
* }
*
* @after:
* .example {
* width: 5px;
* }
*
*/
var CSSCompressor = global.CSSC... | JavaScript | lib/rules/Trailing Zeroes.js | codenothing/CSSCompressor | mit | 1,115 | 54 | codeparrot/github-code |
0d53725bf8116665b06994c5ebf5f16251a57bc621371b50ee5591cb096f91aa | <?php date_default_timezone_set('asia/manila');?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="John Noah G. Ompad">
<title>AGUS 6/7 - Warehouse Management System</title>
<!-- Boo... | PHP | application/views/Request_Spares_Approved.php | comexprt/swms | mit | 16,009 | 381 | codeparrot/github-code |
b4b69a113f46f42004c5105b858f76398bcbece1931755e8992ced091c94d89f | // 文件上传
jQuery(function() {
var $ = jQuery,
$list = $('#thelist'),
$btn = $('#ctlBtn'),
state = 'pending',
// 优化retina, 在retina下这个值是2
ratio = window.devicePixelRatio || 1,
// 缩略图大小
thumbnailWidth = 100 * ratio,
thumbnailHeight = 100 * ratio,
up... | JavaScript | public/webuploader/user-webuploader.js | sxyx2008/rubyblog | mit | 3,134 | 118 | codeparrot/github-code |
ec99e48f6630a6eaa99a6d1a2e69f6445e1db120d2dd513ad9796a7b377c18b7 |
<!DOCTYPE html>
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<head>
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-16" http-equiv="Content-Type" />
<title _locid="PortabilityAnalysis0">.NET Portability Report</title>
<style>
... | HTML | Reports/nv/nview.1.4.2/NView-MonoAndroid10.html | kuhlenh/port-to-core | mit | 9,625 | 240 | codeparrot/github-code |
6b85f616eb9d6d96e2d48989e6f6defda1a0e65b9715ee163ba35945b296081d | (function (w) {
var $ = w.$,
d = document,
e = d.documentElement,
g = d.getElementsByTagName('body')[0],
my = w.ilm,
contid = 0;
function fixCharts(width, fn) {
$(fn).css("width", width);
$(d).ready(function () {
var inner = $(fn).width();
setTimeout(function () {
$.each(w.ilm.charts... | JavaScript | src/js/docfix.js | aivoprykk/ilmcharts | mit | 3,683 | 130 | codeparrot/github-code |
918b45240ea10969bd77b0156bbd801bd165880a107a8005319351ac3c843b8f | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Paper - Material Admin Theme</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<me... | HTML | public_admin/maps-mapael.html | jobteam/albumso | mit | 42,281 | 856 | codeparrot/github-code |
d3ccc381f8a995f74508f93d65c0df1e1e5b43a28f574aaffb669d5039b21403 | import WordSearch from './word-search';
describe('single line grids', () => {
test('Should accept an initial game grid', () => {
const grid = ['jefblpepre'];
const wordSearch = new WordSearch(grid);
expect(wordSearch instanceof WordSearch).toEqual(true);
});
xtest('can accept a target search word',... | JavaScript | exercises/practice/word-search/word-search.spec.js | exercism/xecmascript | mit | 12,331 | 568 | codeparrot/github-code |
460fdf468311122e88dd3e288cbb0c351b971370df665479d6ee44f0b85d5329 | using System;
using System.Linq;
using System.Collections.Generic;
namespace Abnaki.Windows.Software.Wpf.Ultimate
{
/// <summary>
/// Starts Ultimate MainWindow where a Tcontrol occupies all the useful space
/// </summary>
/// <typeparam name="Tcontrol">
/// </typeparam>
public clas... | C# | Library/Software/WpfApplication/Ultimate/UltimateStarter.cs | abnaki/windows | mit | 1,219 | 38 | codeparrot/github-code |
6141adf82aacff4e1f30a7be741cc08bf350c81d0a4271dad2b08f9267d88161 | # -*- coding: utf-8 -*-
class Courier::SubscriptionType::Base < ActiveRecord::Base
INTERPOLATION_PATTERN = Regexp.new /%\{([a-z|0-9\._]+)\}/
self.table_name = :courier_subscription_types
serialize :properties
has_many :log_entities, :foreign_key => :subscription_type_id, :class_name => 'Courier::LogEntity'
... | Ruby | app/models/courier/subscription_type/base.rb | BrandyMint/courier | mit | 2,943 | 122 | codeparrot/github-code |
0591aa6b849a087695934a9a416d90c665e37f29229b0ea23b8ac49ef21c81b4 | import { Injectable } from '@angular/core';
@Injectable()
export class AuthConfiguration {
// The Issuer Identifier for the OpenID Provider (which is typically obtained during Discovery) MUST exactly match the value of the iss (issuer) Claim.
public iss = 'http://robustidentity.tmentorsinc.com'; //identity se... | TypeScript | Robust/src/app/auth.configuration.ts | ShaimaaHamdan/AngularJS-4-Startar | mit | 1,398 | 30 | codeparrot/github-code |
0b64f49ccb589af6546a9cd8b7d5bf58a59a86cde976b83d05a0946baf07a2c7 | package smash.data.tweets.pojo;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
/**
* @author Yikai Gong
*/
public class TweetCoordinates implements Serializable {
private String type;
// Order in lon-lat. Follow the GeoJSON/WKT standard which JTS is... | Java | smash-tweets/smash-tweets-data/src/main/java/smash/data/tweets/pojo/TweetCoordinates.java | project-rhd/smash-app | mit | 1,190 | 57 | codeparrot/github-code |
16e12b1f356d09ec89d4323a12905046bcfc75ee4d63540deffac2cdd6d08d4c | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Poseidon.Energy.Core.DL
{
using Poseidon.Base.Framework;
using Poseidon.Base.Utility;
/// <summary>
/// 能源计量总类
/// </summary>
... | C# | Poseidon.Energy.Core/DL/Measure.cs | robertzml/Poseidon.Energy | mit | 1,404 | 62 | codeparrot/github-code |
72ab8c607bf60df4abeea8c8351d621325be667dd809edb778144cf3136416c4 | # Ant
#
# Copyright (c) 2012, Gustav Tiger <gustav@tiger.name>
#
# 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, m... | Python | ant/easy/node.py | ddboline/Garmin-Forerunner-610-Extractor_fork | mit | 4,653 | 130 | codeparrot/github-code |
20d8cffd1a12a03b9d0f76524dce60c6577595f3fc3caf8fe666d4cbd8516670 | import os
from ConfigParser import ConfigParser
from amlib import argp
tmp_conf = ConfigParser()
tmp_path = os.path.dirname(os.path.abspath(__file__)) # /base/lib/here
tmp_path = tmp_path.split('/')
conf_path = '/'.join(tmp_path[0:-1]) # /base/lib
tmp_conf.read(conf_path+'/ampush.conf')
c = {}
c.update(tmp_conf.ite... | Python | amlib/conf.py | sfu-rcg/ampush | mit | 1,274 | 38 | codeparrot/github-code |
9546260f29d9e6b4171b9319f6c41cfebe5a942980bca5be1321e36fe21b634b | #include "Object.h"
// #include <SFML/Audio.hpp> // for playing sounds
namespace {
using namespace ogl;
// taken from http://www.ecse.rpi.edu/Homepages/wrf/Research/Short_Notes/pnpoly.html#The C Code
// Argument Meaning
// nvert Number of vertices in the polygon.Whether to repeat the first vertex at the e... | C++ | src/ogl/Object.cpp | martensm/CSC5210_Project_5 | mit | 5,100 | 175 | codeparrot/github-code |
af104defc318c95609b66a601e53a7249535f589e80a2572dd536d94c9eabcce | package biz.golek.whattodofordinner.view.activities;
import android.support.annotation.NonNull;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.ContextMenu;
import android.view.MenuInflater;
import android.view.MenuItem;
import and... | Java | app/src/main/java/biz/golek/whattodofordinner/view/activities/PromptsActivity.java | bartoszgolek/whattodofordinner | mit | 7,640 | 207 | codeparrot/github-code |
a2c63a6128e95dd7779f818bbb2e17ded919a3d0d060208e1f22bc11efaa9fa8 | package twg2.template.codeTemplate;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
/**
* @param <T> the {@link ClassInfo} to build
*
* @author TeamworkGuy2
* @since 2015-1-24
*/
public final class ClassTemplateBuilder<T extends ClassInfo> {
private T tmpl;
public ClassTemplateBuild... | Java | src/twg2/template/codeTemplate/ClassTemplateBuilder.java | TeamworkGuy2/JTwg2Templating | mit | 5,967 | 231 | codeparrot/github-code |
2a4b5cd532355ed4d145920ed1fb4393d4101113924b50ae678c9711164b919f | <?php
get_header();
$sidebar = ot_get_option( 'search_page_sidebar', 'yes' );
$content_class = 'sixteen';
if ( $sidebar == 'yes' )
$content_class = 'eleven';
$cat_title = single_cat_title( '', false );
$cat_id = get_query_var( 'cat' );
$count = 0;
global $paged;
?>
<div class="pageTitle">
<div clas... | PHP | reviewing-shakespeare/wp-content/themes/reviewing-shakespeare/search.php | mandino/www.bloggingshakespeare.com | mit | 5,913 | 172 | codeparrot/github-code |
b582244da0091ddbf90a90a053f64a2f1b97a67832d0690e0e42a718a63f34a7 | $(document).ready(function() {
//Note: default min/max ranges are defined outside of this JS file
//include "js/BoulderRouteGradingSystems.js" before running this script
//generate Bouldering rating selection upon click
//Find which boulder grading system is selected and update the difficulty range
//*********... | JavaScript | js/preferences.js | shimizust/trackyourclimb | mit | 8,494 | 239 | codeparrot/github-code |
c12972e985652a2bc3d93fe5408ad6ed1b8603027ab917b4e7a930b1c4cb20cf | <HTML><HEAD>
<TITLE>Review for Mercury Rising (1998)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0120749">Mercury Rising (1998)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?Nathaniel... | HTML | data science/machine_learning_for_the_web/chapter_4/movie/11831.html | xianjunzhengbackup/code | mit | 5,481 | 89 | codeparrot/github-code |
68f18cca642aacc23e46dff8653571ab65ac459a1b53b71ea1d33f95b5305233 | 'use strict';
jQuery(document).ready(function ($) {
var lastId,
topMenu = $("#top-navigation"),
topMenuHeight = topMenu.outerHeight(),
// All list items
menuItems = topMenu.find("a"),
// Anchors corresponding to menu items
scrollItems = menuItems.map(function () {
... | JavaScript | assets/js/app.js | SamuelRocha2015/ch-v3 | mit | 14,061 | 448 | codeparrot/github-code |
c474c4f89223ab7203d5cfe85fd3bf6d4785e9bd3f45beb0b03a3d04cd71ddaf | import {Issue} from "../issue";
import {IObject} from "../objects/_iobject";
import {IRule, IRuleMetadata, RuleTag} from "./_irule";
import {BasicRuleConfig} from "./_basic_rule_config";
import {IRegistry} from "../_iregistry";
export class AllowedObjectNamingConf extends BasicRuleConfig {
}
export class AllowedObjec... | TypeScript | packages/core/src/rules/allowed_object_naming.ts | larshp/abapOpenChecksJS | mit | 1,693 | 59 | codeparrot/github-code |
9c68217da8d5a4f957ef01ec5fbcf6c3ff9dfbbee73d1a0f5e2914e0a15d3a01 | <?php
abstract class BaseGgSettingsPeer {
const DATABASE_NAME = 'propel';
const TABLE_NAME = 'gg_settings';
const CLASS_DEFAULT = 'lib.model.GgSettings';
const NUM_COLUMNS = 3;
const NUM_LAZY_LOAD_COLUMNS = 0;
const ID = 'gg_settings.ID';
const PARAM = 'gg_settings... | PHP | lib/model/om/BaseGgSettingsPeer.php | vincent03460/fxcmiscc-partner | mit | 9,104 | 365 | codeparrot/github-code |
9b4a270f566bff4ceb1168f846a6ad0c9559464360992d7bababa465acfe84cb | /* eslint-env jasmine, jest */
import React from 'react';
import View from '../';
import StyleSheet from '../../StyleSheet';
import { act } from 'react-dom/test-utils';
import { createEventTarget } from 'dom-event-testing-library';
import { render } from '@testing-library/react';
describe('components/View', () => {
... | JavaScript | packages/react-native-web/src/exports/View/__tests__/index-test.js | necolas/react-native-web | mit | 8,530 | 274 | codeparrot/github-code |
c1ec07e87ebc6042c9c5b64c28d62384a932b8da336c280654722c77b1863c00 | /*
* Globalcode - "The Developers Company"
*
* Academia do Java
*
*/
public abstract class Agencia {
private String numero;
private Banco banco;
/**
* @param num
* Numero da agencia
* @param bc
* banco ao qual a agencia pertence
*/
public Agencia(Str... | Java | engsoft1globalcode/aj2lab10_02/src/Agencia.java | andersonsilvade/workspacejava | mit | 2,802 | 101 | codeparrot/github-code |
db8d3cbb82a6077c81543b365967164263b803bc01d4c148c46ad16ed40de1ef | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _02.Rabbits
{
class Program
{
static void Main(string[] args)
{
string input = Console.ReadLine();
var rabbitAnswers = input.Split(' ').Select(i... | C# | Homeworks/Programming/DSA/17.Workshop-Strings-Greedy-2015.11.27/02.Rabbits/Program.cs | TsvetanRazsolkov/Telerik-Academy | mit | 1,643 | 59 | codeparrot/github-code |
464cb0d917f9f6a8b4ce45adc15bf2813d84d399f287d1472e5a3117ba975aeb | package com.ccsi.commons.dto.tenant;
/**
* @author mbmartinez
*/
public class BaseCcsiInfo {
protected Long id;
protected String name;
protected String description;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public... | Java | ccsi-commons/src/main/java/com/ccsi/commons/dto/tenant/BaseCcsiInfo.java | lordmarkm/ccsi | mit | 595 | 32 | codeparrot/github-code |
6bc67a6e0abf46bc104b9770c72f104b2cf1f2888cd8bd254308a4ee9c166823 | // TriAppSkeleton.cpp
#ifdef _WIN32
# define WINDOWS_LEAN_AND_MEAN
# define NOMINMAX
# include <windows.h>
#endif
#include <GL/glew.h>
#include "AppSkeleton.h"
#include "GL/GLUtils.h"
#include "GL/ShaderFunctions.h"
#include "MatrixMath.h"
#include "utils/Logger.h"
#include "paramgl.h"
#include "TriAppSkeleton.... | C++ | src/appskeleton/TriAppSkeleton.cpp | jimbo00000/OpenGLMultiSkeleton | mit | 3,856 | 155 | codeparrot/github-code |
4190d63ebf45a3401f773314db239b11bf9b5d8026269ea09e5837639cee4023 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "sync/test/fake_server/bookmark_entity.h"
#include <string>
#include "base/basictypes.h"
#include "base/guid.h"
#include "sync/internal_api/pub... | C++ | third_party/webrtc/src/chromium/src/sync/test/fake_server/bookmark_entity.cc | Teamxrtc/webrtc-streaming-node | mit | 4,239 | 124 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.