code stringlengths 3 1.05M | repo_name stringlengths 4 116 | path stringlengths 4 991 | language stringclasses 9
values | license stringclasses 15
values | size int32 3 1.05M |
|---|---|---|---|---|---|
#region License Information (GPL v3)
/*
ShareX - A program that allows you to take screenshots and share any file type
Copyright (c) 2007-2016 ShareX Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the ... | Jaex/puush-installer | puush-installer/ShareX.HelpersLib/GitHubUpdateChecker.cs | C# | mit | 7,044 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace FancyAsyncMagic
{
public class AsyncWriter
{
private readonly Stream _Stream;
public AsyncWriter(Stream stream)
{
... | main--/FancyAsyncMagic | FancyAsyncMagic/AsyncWriter.cs | C# | mit | 2,141 |
<?php
/*
* This file is part of KoolKode BPMN.
*
* (c) Martin Schröder <m.schroeder2007@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types = 1);
namespace KoolKode\BPMN\Task\Command;
use KoolKode\BP... | koolkode/bpmn | src/Task/Command/UnclaimUserTaskCommand.php | PHP | mit | 1,946 |
# -*- coding: utf-8 -*-
from __future__ import (absolute_import, division, print_function)
from folium.plugins.marker_cluster import MarkerCluster
from folium.utilities import _validate_coordinates
from jinja2 import Template
class FastMarkerCluster(MarkerCluster):
"""
Add marker clusters to a map using in... | QuLogic/folium | folium/plugins/fast_marker_cluster.py | Python | mit | 3,213 |
namespace OggVorbisEncoder.Setup.Templates.FloorBooks
{
public class Line256X7_0Sub3 : IStaticCodeBook
{
public int Dimensions { get; } = 1;
public byte[] LengthList { get; } = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 5, 2, 5, 3, 5... | vr-the-feedback/vr-the-feedback-unity | Assets/VRTheFeedback/Scripts/OggVorbisEncoder/Setup/Templates/FloorBooks/Line256X7_0Sub3.cs | C# | mit | 775 |
#include "SumUnique.cc"
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
#include <sys/time.h>
#include <vector>
const static double __EPSILON = 1e-9;
static double __time = 0.0;
static void __timer_start()
{
struct timeval tv;
i... | mathemage/CompetitiveProgramming | topcoder/SRM/Rookie-SRM-7-DIV-1/500/driver.cc | C++ | mit | 3,736 |
var gulp = require('gulp'),
sass = require('gulp-sass'),
scsslint = require('gulp-scss-lint');
gulp.task('sass', function () {
gulp.src('./_sass/**/*.scss')
.pipe(sass().on('error', sass.logError))
.pipe(gulp.dest('./css'));
});
gulp.task('scsslint', function () {
gulp.src('./_sass/**/*.scss')
.... | rogeralbinoi/html5-boilerplate-sass-lint | Gulpfile.js | JavaScript | mit | 557 |
<?php
require_once __DIR__ . '/vendor/autoload.php';
use Chadicus\Marvel\Api\Client;
use Chadicus\Marvel\Api\Entities\ImageVariant;
use DominionEnterprises\Util\Arrays;
$nameStartsWith = Arrays::get($_POST, 'nameStartsWith');
?>
<html>
<head>
<style>
label { display: inline-block; width: 140... | chadicus/marvel-api-client | examples/gallery/index.php | PHP | mit | 2,104 |
<?php
/*******************************************************************
* Glype is copyright and trademark 2007-2015 UpsideOut, Inc. d/b/a Glype
* and/or its licensors, successors and assigners. All rights reserved.
*
* Use of Glype is subject to the terms of the Software License Agreement.
* http://www.glype.com/li... | selecterskyphp/glype_chs | includes/parser.php | PHP | mit | 34,604 |
namespace NorthwindWindowsStore.DAL.Model.Interface
{
public interface ITerritory
{
}
} | krzysztofkolek/NorthwindWindowsStore | NorthwindWindowsStoreService/NorthwindWindowsStore.DAL.Model/Interface/ITerritory.cs | C# | mit | 99 |
/*
Project : 4-9 Math Tutor
Author : Mohammad Al-Husseini
Description : Displays two random numbers to be added then waits for the user to solve it.
The user can type their result in and the program tells them if they are correct.
Knowns : 2x Random Numbers - Int
Inputs : Answer - Int
Display : ... | menarus/C-Course | Solutions/Ch4/4-09 Math Tutor.cpp | C++ | mit | 1,339 |
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | Azure/azure-sdk-for-python | sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2015_04_01/models/__init__.py | Python | mit | 6,678 |
<?php
require_once __DIR__ . '/../../lib/DoublyLinkedListNode.php';
class SumListNoConvertReversed {
public static function sum(Node $n1, Node $n2) {
$head = $tail = null;
$n1Length = self::getLinkedListSize($n1);
$n2Length = self::getLinkedListSize($n2);
$maxLength = max($n1Lengt... | Kiandr/CrackingCodingInterview | php/src/chapter02/question2.5/SumListNoConvertReversed.php | PHP | mit | 2,104 |
#!/usr/bin/env node
import {cd, exec, rm, set} from 'shelljs';
import * as fs from 'fs';
// Fail on first error
set('-e');
// Install Angular packages that are built locally from HEAD.
// This also gets around the bug whereby yarn caches local `file://` urls.
// See https://github.com/yarnpkg/yarn/issues/2165
// The... | mgechev/angular | integration/ng_elements_schematics/test.ts | TypeScript | mit | 2,456 |
<?php
class Pilotes extends CI_Controller {
public function __construct() {
parent::__construct();
$this->load->model('Pilote_model');
}
public function index() {
$data['title'] = 'Gestion des pilotes';
$this->load->view('header', $data);
// Critères sur les pilotes à afficher
$champs = $this->Pilote_... | Sayomul/GestionParapente | application/controllers/Pilotes.php | PHP | mit | 3,292 |
<?php
namespace SEC\SolicitudesBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
class ProcesoType extends AbstractType {
public function buildForm(FormBuilderInterface $builder, array $options)... | miguelplazasr/sec | src/SEC/SolicitudesBundle/Form/ProcesoType.php | PHP | mit | 2,796 |
require 'rails_helper'
describe UserImportResult do
#pending "add some examples to (or delete) #{__FILE__}"
end
# == Schema Information
#
# Table name: user_import_results
#
# id :bigint not null, primary key
# user_import_file_id :bigint
# user_id :bigint
# body ... | next-l/enju_library | spec/models/user_import_result_spec.rb | Ruby | mit | 464 |
package com.example.alexeyglushkov.uimodulesandclasses.activitymodule.presenter;
import com.example.alexeyglushkov.uimodulesandclasses.activitymodule.view.ActivityModuleItemView;
import com.example.alexeyglushkov.uimodulesandclasses.activitymodule.view.ActivityModuleView;
/**
* Created by alexeyglushkov on 02.04.17.... | soniccat/android-taskmanager | ui/src/main/java/com/example/alexeyglushkov/uimodulesandclasses/activitymodule/presenter/ActivityModuleItem.java | Java | mit | 422 |
@extends('adminlte::page')
@section('title', 'Redirects')
@section('content_header')
<h1>Redirects</h1>
@stop
@section('content')
<div class="row">
<div class="col-xs-12">
<div class="box">
<div class="box-body">
@include('admin.redirects._form', [
... | patrykwozinski/shared-flat | resources/views/admin/redirects/create.blade.php | PHP | mit | 474 |
namespace EngineOverflow.Web.ViewModels.Manage
{
using System.ComponentModel.DataAnnotations;
public class AddPhoneNumberViewModel
{
[Required]
[Phone]
[Display(Name = "Phone Number")]
public string Number { get; set; }
}
}
| delyan-nikolov-1992/EngineOverflow | Source/Web/EngineOverflow.Web/ViewModels/Manage/AddPhoneNumberViewModel.cs | C# | mit | 276 |
var Articles = require("../articles");
var summarize = require("../summarize");
var translate = require("../translate");
var pipeline = require("../pipeline");
var veoozInterface = require("./veoozInterface.js");
module.exports = function (socketEnsureLoggedIn, socket) {
function handleError(err) {
return... | nisargjhaveri/news-access | server/handleSocket.js | JavaScript | mit | 4,291 |
module Fog
module OpenStack
class Compute
class Real
def list_os_interfaces(server_id)
request(
:expects => [200, 203],
:method => 'GET',
:path => "servers/#{server_id}/os-interface"
)
end
end
class Mock
def lis... | fog/fog-openstack | lib/fog/openstack/compute/requests/list_os_interfaces.rb | Ruby | mit | 530 |
'use strict';
var _ = require('lodash');
var moment = require('moment');
var util = require('util');
var articleService = require('../../services/article');
var listOrSingle = require('./lib/listOrSingle');
function parse (params) {
var formats = ['YYYY', 'MM', 'DD'];
var parts = _.values(params);
var len = par... | cshum/ponyfoo | controllers/articles/dated.js | JavaScript | mit | 1,693 |
using Android.App;
using Android.Content;
using Android.Content.PM;
using Android.OS;
using Android.Support.V7.App;
using System;
using System.IO;
namespace Teaching.Skills.Droid.Activities
{
[Activity(Label = "@string/app_title", Icon = "@drawable/icon", Theme = "@style/App.Default",
ConfigurationCh... | ennerperez/teaching-skills | teaching.skills.droid/Activities/BaseActivity.cs | C# | mit | 2,260 |
using System.Collections.Immutable;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.Diagnostics;
namespace CodeTiger.CodeAnalysis.Analyzers.Readability
{
/// <summary>
/// Analyzes general readability issues.
/// </summary>
[DiagnosticAnalyzer(LanguageNa... | csdahlberg/CodeTiger.CodeAnalysis | CodeTiger.CodeAnalysis/Analyzers/Readability/GeneralReadabilityAnalyzer.cs | C# | mit | 1,931 |
#include "askpassphrasedialog.h"
#include "ui_askpassphrasedialog.h"
#include "guiconstants.h"
#include "walletmodel.h"
#include <QMessageBox>
#include <QPushButton>
#include <QKeyEvent>
AskPassphraseDialog::AskPassphraseDialog(Mode mode, QWidget *parent) :
QDialog(parent),
ui(new Ui::AskPassphraseDialog),
... | rcoinwallet/RCoinUSA | src/qt/askpassphrasedialog.cpp | C++ | mit | 9,309 |
namespace Mirage.Urbanization.ZoneStatisticsQuerying
{
public interface IQueryCrimeResult : IQueryCellValueResult { }
} | Miragecoder/Urbanization | src/Mirage.Urbanization/ZoneStatisticsQuerying/IQueryCrimeResult.cs | C# | mit | 123 |
# frozen_string_literal: true
require 'spec_helper'
require 'vk/api/ads/targ_suggestions_regions'
RSpec.describe Vk::API::Ads::TargSuggestionsRegions do
subject(:model) { described_class }
it { is_expected.to be < Dry::Struct }
it { is_expected.to be < Vk::Schema::Object }
describe 'attributes' do
subject... | alsemyonov/vk | spec/vk/api/ads/targ_suggestions_regions_spec.rb | Ruby | mit | 497 |
package percolate;
/******************************************************************************
* Compilation: javac InteractivePercolationVisualizer.java
* Execution: java InteractivePercolationVisualizer N
* Dependencies: PercolationVisualizer.java Percolation.java
*
* This program takes the grid size... | TicknorN/B8-CSC301 | Percolate/src/percolate/InteractivePercolationVisualizer.java | Java | mit | 2,166 |
/*! \file */
/* ************************************************************************
* Copyright (c) 2019-2022 Advanced Micro Devices, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the S... | ROCmSoftwarePlatform/rocSPARSE | clients/testings/testing_gthr.cpp | C++ | mit | 6,546 |
<?php
/**
* @package start
*/
?>
<h1>integration</h1>
<div class="content-section-b">
<div class="container">
<h1 class="title">Carreiras</h1>
<div class="sidebar col-md-3">
<div>
<h4 class='col-md-6'>total (<span id="total_vagas99">0</span>)</h4>
<!--<div class... | deigmaranderson/99carreiras | 99carreiras/template-parts/integration.php | PHP | mit | 2,732 |
<?php
/* TwigBundle:Exception:traces.txt.twig */
class __TwigTemplate_39f631a2eb2e29d9f4069821c7f3afd5beaf2ed87b37023f3fdd2045c6e3f438 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
... | spvernet/symfony_2 | app/cache/dev/twig/39/f6/31a2eb2e29d9f4069821c7f3afd5beaf2ed87b37023f3fdd2045c6e3f438.php | PHP | mit | 1,750 |
using Jobber.Core;
using Jobber.Sample.Contract;
namespace Jobber.Sample.JobProducer
{
class TodoJob : Job<Todo>
{
}
} | GokGokalp/Jobber | Jobber.Sample.JobProducer/TodoJob.cs | C# | mit | 134 |
function onInitSchema(schema, className) {
schema.helpers = {};
};
export default onInitSchema; | jagi/meteor-astronomy | lib/modules/helpers/hooks/onInitSchema.js | JavaScript | mit | 98 |
module Adman
# Indicates this service is a web application
WEB_APPLICATION = "_web_app"
# Announces services on a network or other venue.
class Campaign
attr_reader :message
attr_reader :venues
# Create a new Campaign to advertize the given service.
#
# If the service given isn't already... | MarkBennett/announcer | lib/announcer.rb | Ruby | mit | 1,899 |
using System.Collections;
using UnityEngine;
[RequireComponent (typeof(Animator))]
public class SpriteDestruction : MonoBehaviour
{
private SpriteBuilder m_spriteBuilder;
private Animator m_animator;
public float TimeToDestroy = 1;
public int DestroySquarePixelSize = 10;
public int DestroySquareCount = 5;
voi... | skahal/SpaceInvadersRemake | src/SpaceInvadersRemake/Assets/Scripts/SpriteDestruction.cs | C# | mit | 1,423 |
var angular = require('angular');
angular.module('rsInfiniteScrollDemo', [require('rs-infinite-scroll').default])
/*@ngInject*/
.controller('RsDemoController', ['$q', '$timeout', function($q, $timeout) {
var ctrl = this;
ctrl.scrollProxy = {
loadPrevious,
loadFollowing
};
ctrl.dummyLis... | RetroSquareGroup/rs-infinite-scroll | demo/demo.js | JavaScript | mit | 1,907 |
<?php
/*
* This file is part of the json-schema bundle.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace HadesArchitect\JsonSchemaBundle\Exception;
use HadesArchitect\JsonSchemaBundle\Error\Error;
class ViolationExceptio... | HadesArchitect/JsonSchemaBundle | Exception/ViolationException.php | PHP | mit | 898 |
/***************************************
** Tsunagari Tile Engine **
** window.cpp **
** Copyright 2011-2014 PariahSoft LLC **
***************************************/
// **********
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software ... | pariahsoft/TsunagariC | src/window.cpp | C++ | mit | 1,938 |
class MagicDictionary {
public:
map<int, vector<string>> m;
/** Initialize your data structure here. */
MagicDictionary() {
}
/** Build a dictionary through a list of words */
void buildDict(vector<string> dict) {
for (auto &i : dict) {
m[i.length()].push_b... | MegaShow/college-programming | OJ/LeetCode/676 Implement Magic Dictionary.cpp | C++ | mit | 1,046 |
<?php
return array (
'id' => 'zte_z750c_ver1',
'fallback' => 'generic_android_ver4_1',
'capabilities' =>
array (
'model_name' => 'Z750C',
'brand_name' => 'ZTE',
'marketing_name' => 'Savvy',
'physical_screen_height' => '88',
'physical_screen_width' => '53',
'resolution_width' => '480',
... | cuckata23/wurfl-data | data/zte_z750c_ver1.php | PHP | mit | 361 |
/*
* Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See full license at the bottom of this file.
*/
package com.microsoft.o365_android_onenote_rest;
import com.microsoft.AzureADModule;
import com.microsoft.AzureAppCompatActivity;
import com.microsoft.live.LiveAuthClient;
import com.mic... | OneNoteDev/Android-REST-API-Explorer | app/src/main/java/com/microsoft/o365_android_onenote_rest/BaseActivity.java | Java | mit | 3,525 |
<?php
namespace Domora\TvGuide\Data;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
use JMS\Serializer\Annotation as Serializer;
/**
* @ORM\Entity
* @ORM\Table(name="service")
*/
class Service
{
/**
* @ORM\Id
* @ORM\Column(type="string")
* @Serializer\Groups({... | domora/tvguide | src/Domora/TvGuide/Data/Service.php | PHP | mit | 2,698 |
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("No... | DDReaper/XNAGameStudio | Samples/PushRecipe_WP7_SL/Source/WindowsPhone.Recipes.Push.Messasges/Properties/AssemblyInfo.cs | C# | mit | 1,525 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = {
reddit: {
userAgent: 'USER_AGENT',
clientId: 'CLIENT ID',
clientSecret: 'CLIENT SECRET',
username: 'BOT USERNAME',
password: 'BOT PASSWORD'
},
mods: ['MODERATOR_1', 'MODERATOR_2']
}; | cmhoc/fuckmwbot | dist/config.js | JavaScript | mit | 308 |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class Powder_Plastic_Coat_Model extends CI_Model {
private $powder_plastic_coatTable = 'powder_plastic_coat';
private $powder_plastic_coatColumn = 'powder_plastic_coat_id';
public function __construct()
{
parent::__const... | aliudin-ftc/just-in-time-version-2 | application/models/Powder_Plastic_Coat_Model.php | PHP | mit | 16,688 |
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Ci::Pipeline::Seed::Environment do
let_it_be(:project) { create(:project) }
let(:job) { build(:ci_build, project: project) }
let(:seed) { described_class.new(job) }
let(:attributes) { {} }
before do
job.assign_attributes(**attributes)... | stoplightio/gitlabhq | spec/lib/gitlab/ci/pipeline/seed/environment_spec.rb | Ruby | mit | 1,171 |
using Naxis.Core.Components;
namespace Naxis.Core.Security
{
public class AuthedUser
{
/// <summary>
/// 授权服务
/// </summary>
private static readonly IAuthenticationService Service = ObjectContainer.Resolve<IAuthenticationService>();
/// <summary>
/// 获取当前用户信息
... | swpudp/Naxis | Naxis.Common/Security/AuthedUser.cs | C# | mit | 494 |
<?php
$pageTitle = "News Feed";
require('includes/header.php');
$my_friends=$mysqli->query("SELECT friendArray FROM profile WHERE userID=$userID");
$myfriends=mysqli_fetch_row($my_friends);
$myfriends=implode("",$myfriends);
$my_friends_array=explode(",",$myfriends);
//echo $my_friends_array;
?>
<link href="css/4Ins... | mgander/4inst | home.php | PHP | mit | 1,563 |
using System;
using System.IO;
using System.Reflection.Metadata;
using System.Reflection.PortableExecutable;
using System.Security.Cryptography;
namespace Radical.Windows.Bootstrap
{
//courtesy of NServiceBus https://github.com/Particular/NServiceBus/blob/4954af83fad81cc80769c8ed161ee4a37812d443/src/NServiceBus.C... | RadicalFx/Radical.Windows | src/Radical.Windows/Bootstrap/AssemblyValidator.cs | C# | mit | 2,902 |
var amqp=require("amqplib");
amqp.connect('amqp://localhost').then(function(connection){
return connection.createChannel().then(function(ch){
var ex="logs";
ch.assertExchange(ex,'fanout',{durable:true});
var ok=ch.assertQueue('',{exclusive:true})
.then(function(q){
console.log("[x]Waiting for message in '... | zhangmingkai4315/RabbitMQ-Nodejs | pub_sub/receive_logs.js | JavaScript | mit | 569 |
#include "guiutil.h"
#include "bitcoinaddressvalidator.h"
#include "walletmodel.h"
#include "bitcoinunits.h"
#include "util.h"
#include "init.h"
#include <QString>
#include <QDateTime>
#include <QDoubleValidator>
#include <QFont>
#include <QLineEdit>
#include <QUrl>
#include <QTextDocument> // For Qt::escape
#include ... | testfaucetcoin/testfaucetcoin | src/qt/guiutil.cpp | C++ | mit | 13,417 |
<?php
namespace Tests\App;
use App\VCS\Git;
use App\VCS\Tagged;
use Illuminate\Filesystem\Filesystem;
use Mockery;
use App\VCS\Repository;
use Symfony\Component\Process\Exception\ProcessFailedException;
use Symfony\Component\Process\Process;
class GitTest extends \TestCase
{
/** @var Mockery\MockInterface */
... | realpage/asset-publisher | tests/unit/VCS/GitTest.php | PHP | mit | 3,894 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Topics.Radical.Model
{
/// <summary>
/// Applied to properties asks that models skip this property when notifying property changes.
/// </summary>
[AttributeUsage( AttributeTargets.Property )]
public se... | micdenny/radical | src/net35/Radical/Model/SkipPropertyValidationAttribute.cs | C# | mit | 392 |
/*
* SonarLint for Visual Studio
* Copyright (C) 2016-2021 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version ... | SonarSource-VisualStudio/sonarlint-visualstudio | src/TestInfrastructure/Framework/ConfigurableRuleSetSerializer.cs | C# | mit | 4,356 |
<?php
class updatePitchDeck_m extends CI_Model{
function __construct(){
parent::__construct();
}
function updateIdeaGen($data){
$sql = "update idea_genboard set problem = ? , people = ? , behavior = ? , solution = ? where idea_id = ?";
$query = $this->db->query($sql,array($data['problem'],$dat... | jLKisni/PitchItUp | application/modules/Web/models/updatePitchDeck_m.php | PHP | mit | 3,710 |
#ifndef M3D_RANDOM_UTILS_H
#define M3D_RANDOM_UTILS_H
#include <stdlib.h>
#include <math.h>
namespace m3D {
namespace utils {
float ranf()
{
return ((float) rand()) / ((float) RAND_MAX);
}
float box_muller(float m, float s)
{
float x1, x2, w, y1;
... | meteo-ubonn/meanie3D | src/utils/rand_utils.cpp | C++ | mit | 1,159 |
package co.navdeep.popmovies.tmdb.model;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class Genre {
@SerializedName("id")
@Expose
private Integer id;
@SerializedName("name")
@Expose
private String name;
/**
*
* @return
... | navdeepsekhon/PopMovies | app/src/main/java/co/navdeep/popmovies/tmdb/model/Genre.java | Java | mit | 778 |
#include <cstring>
#include <occa/types/bits.hpp>
#include <occa/types/primitive.hpp>
#include <occa/internal/io.hpp>
#include <occa/internal/utils/lex.hpp>
#include <occa/internal/utils/string.hpp>
namespace occa {
primitive::primitive(const char *c) {
*this = load(c);
}
primitive::primitive(const std::st... | libocca/occa | src/types/primitive.cpp | C++ | mit | 49,514 |
/**
* pax
* https://github.com/reekoheek/pax
*
* Copyright (c) 2013 PT Sagara Xinix Solusitama
* Licensed under the MIT license.
* https://github.com/reekoheek/pax/blob/master/LICENSE
*
* Composer command
*
*/
var spawn = require('child_process').spawn,
d = require('simply-deferred');
module.exports = f... | krisanalfa/pax | lib/commands/grunt/add.js | JavaScript | mit | 1,004 |
/* globals require module */
const modelRegistrator = require("./utils/model-registrator");
module.exports = modelRegistrator.register("Superhero", {
name: {
type: String,
required: true
},
secretIdentity: {
type: String,
required: true
},
alignment: {
type:... | Minkov/Superheroes-Universe | models/superhero-model.js | JavaScript | mit | 594 |
var engine = require('../data.js');
var collection = engine.getCollection('posts');
var requiredKeys = ['title', 'markdown', 'body', 'slug', 'createdAt'];
var requiredMessage = 'You must provide at least these keys: ' + requiredKeys.join(', ');
function _dummyIndex(err, indexName) {
if (err) {
throw new Error(e... | joaodubas/blog | lib/data-post/index.js | JavaScript | mit | 3,760 |
package edu.psu.sweng500.emrms.service;
import edu.psu.sweng500.emrms.application.ApplicationSessionHelper;
import edu.psu.sweng500.emrms.mappers.ChartingMapper;
import edu.psu.sweng500.emrms.model.HAuditRecord;
import edu.psu.sweng500.emrms.model.HProblem;
import edu.psu.sweng500.emrms.util.PersonPatientUtils;
import... | Nilbog21/EMRMS | src/main/java/edu/psu/sweng500/emrms/service/ManageProblemServiceImpl.java | Java | mit | 2,947 |
#include "world/Obstacle.h"
#include <math.h>
using namespace manip_core;
using namespace matrices;
using namespace Eigen;
Obstacle::Obstacle(const Vector3& p1, const Vector3& p2, const Vector3& p3, bool donttouch)
: p1_(p1)
, p2_(p2)
, p3_(p3)
, p4_(p1+ (p3 - p2))
, u_(p3-p1)
, v_(p2-p1)
, n_(u_.cross(v_))... | stonneau/manipulabilityreduced | src/world/Obstacle.cpp | C++ | mit | 2,741 |
package com.hps.wizard.sample.states;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import android.widget.RadioGroup.OnCheckedChangeListener;
import android.widget.TextView;
im... | HeartlandPaymentSystems/Android-Wizard-Framework | WizardSample/src/com/hps/wizard/sample/states/AreYouSure.java | Java | mit | 3,465 |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.aspose.imaging.examples;
/**
*
* @author mfazi
*/
public final class Assert {
public static void areEqu... | aspose-imaging/Aspose.Imaging-for-Java | Examples/src/main/java/com/aspose/imaging/examples/Assert.java | Java | mit | 1,281 |
<?php
$navbar = [
"config" => [
"navbar-class" => "navbar"
],
"items" => [
"start" => [
"text" => "Start",
"route" => "",
],
"about" => [
"text" => "About",
"route" => "about",
],
"report" => [
"tex... | Marv2/anax-lite | view/navbar1/navbar.php | PHP | mit | 772 |
'use strict';
angular.module('nav', ['playlist'])
.controller('NavController', function ($scope, $mdDialog, $location, webRTC, socket) {
$scope.showPlaylist = function(ev) {
$mdDialog.show({
controller: 'PlaylistController',
templateUrl: 'app/components/playlist/playlist.html',
parent: angula... | nickfujita/WhiteBoard | public/app/components/nav/nav.js | JavaScript | mit | 978 |
var gulp = require('gulp');
var less = require('gulp-less');
var browserSync = require('browser-sync').create();
var header = require('gulp-header');
var cleanCSS = require('gulp-clean-css');
var rename = require("gulp-rename");
var uglify = require('gulp-uglify');
var filter = require('gulp-filter');
var pkg = require... | maxroar/maxroar.github.io | gulpfile.js | JavaScript | mit | 2,957 |
import React from 'react';
import PropTypes from 'prop-types';
import DatePicker from './DatePicker';
import Cell from './Cell';
import {
View
} from 'react-native';
class CellDatePicker extends React.Component {
static defaultProps = {
mode: 'datetime',
date: new Date()
}
static proptTypes = {
... | lodev09/react-native-cell-components | components/CellDatePicker.js | JavaScript | mit | 1,159 |
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace ChromeRuntimeDownloader.Models
{
public class NugetInfo
{
public NugetInfo(PackageType packageType, string name, string version, CopyPath[] copyPaths)
{
PackageType = packageType;
Name = name;
... | pkudrel/ChromeRuntimeDownloader | src/ChromeRuntimeDownloader/Models/NugetInfo.cs | C# | mit | 626 |
using UnityEngine;
namespace Atlas.Examples
{
public sealed class Example_Range
{
// generic character class
public class Character
{
public void ApplyDamage( float damage ) { /* ... */ }
}
public void OnCharacterHit( Character hitCharacter )
{
... | david-knopp/Atlas | Assets/Examples/Scripts/Runtime/Math/Example_Range.cs | C# | mit | 635 |
/*
* Copyright (C) 2009 University of Washington
*
* 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 copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | srsudar/MamasDelRioAndroid | app/src/main/java/org/mamasdelrio/android/views/HierarchyElementView.java | Java | mit | 3,631 |
package render
import (
"image"
"image/draw"
//import png
_ "image/png"
"os"
)
type LevelSheet struct {
width int
height int
filePath string
PixelArray []byte
encoding string
}
//Constructor for LevelSheet
func NewLevelSheet(filePath string) (LevelSheet, int, int) {
reader, err := os.Open(fi... | LokiTheMango/jatdg | game/render/levelsheet.go | GO | mit | 740 |
import java.util.Scanner;
/*
* @author https://github.com/Hoenn
* Happy St. Patrick's Day! Write a program that accepts a year as input and outputs what day St. Patrick's Day falls on.
*/
public class Challenge_27
{
public static final int spMonth=3;
public static final int spDay=17;
public static final St... | FreddieV4/DailyProgrammerChallenges | Intermediate Challenges/Challenge 0027 Intermediate/solutions/solution.java | Java | mit | 1,136 |
//-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2019 Ryo Suzuki
// Copyright (c) 2016-2019 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# include <Siv3D/EngineLog.hpp>
# include <Siv... | wynd2608/OpenSiv3D | Siv3D/src/Siv3D-Platform/WindowsDesktop/Window/HighDPI.cpp | C++ | mit | 1,768 |
var outputType = 'ARRAY';
var input = null;
var output = null;
var fs = require('fs');
var scriptName = process.argv[1].split('/');
scriptName = scriptName[ scriptName.length - 1 ];
function get_usage() {
var usage = "\n";
usage += "Usage: " + scriptName + ' <options> <input markdown file>\n';
usage += ... | finger563/webgme-codeeditor | tools/docStringConverter.js | JavaScript | mit | 2,300 |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using BizHawk.Emulation.Cores.Nintendo.NES;
using BizHawk.Common;
using BizHawk.Client.Common;
using BizHawk.Emulation.Common;
namespa... | ircluzar/RTC3 | Real-Time Corruptor/BizHawk_RTC/BizHawk.Client.EmuHawk/tools/NES/BarcodeEntry.cs | C# | mit | 1,310 |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
// Include the required modules
var {assert, expect} = require("../../../../lib/assertions");
var p... | lucashmorais/x-Bench | mozmill-env/msys/firefox/tests/functional/testPreferences/testRestoreHomepageToDefault.js | JavaScript | mit | 3,833 |
namespace ArgentPonyWarcraftClient;
/// <summary>
/// A character associated with a World of Warcraft account.
/// </summary>
public record AccountCharacter
{
/// <summary>
/// Gets a link to the character.
/// </summary>
[JsonPropertyName("character")]
public Self Character { get; init; }
//... | danjagnow/ArgentPonyWarcraftClient | src/ArgentPonyWarcraftClient/Models/ProfileApi/AccountProfile/AccountCharacter.cs | C# | mit | 1,827 |
/*
NormalBatteryProfileTestCase.java
Copyright (c) 2014 NTT DOCOMO,INC.
Released under the MIT license
http://opensource.org/licenses/mit-license.php
*/
package org.deviceconnect.android.profile.intent.test;
import android.content.Intent;
import android.os.Bundle;
import android.support.test.runner.AndroidJUnit4;... | Onuzimoyr/dAndroid | dConnectManager/dConnectManager/app/src/androidTest/java/org/deviceconnect/android/profile/intent/test/NormalBatteryProfileTestCase.java | Java | mit | 12,808 |
package net.bingyan.campass.greendao;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT. Enable "keep" sections if you want to edit.
/**
* Entity mapped to table ELECTRIC_RECORD.
*/
public class ElectricRecord {
private Long id;
private String area;
private Integer building;
private Integer dorm;
... | BingyanStudio/CamPass-Android | app/src-gen/net/bingyan/campass/greendao/ElectricRecord.java | Java | mit | 1,848 |
/**
* Unittest file for led. In this example the timer module is faked also
*
*/
#include "catch.hpp"
#include "Arduino.h"
#include "led.h" // include the unit under test
#include "mock_stimer.h" // include the faked module (so we can set the return values)
void run_loop( StatusToLed* led )
{
for ( int loo... | susundberg/arduino-simple-unittest | examples/example_blink_led/tests/test_led.cpp | C++ | mit | 894 |
# -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope... | Yukinoshita47/Yuki-Chan-The-Auto-Pentest | Module/dirsearch/lib/core/Path.py | Python | mit | 987 |
<?php namespace eBussola\Feedback\Components;
use Cms\Classes\ComponentBase;
use Cms\Classes\Page;
use eBussola\Feedback\Models\Channel;
use Lang;
use October\Rain\Exception\AjaxException;
class Feedback extends ComponentBase
{
/**
* @var Channel
*/
public $channel;
public function componentDe... | ebussola/octobercms-feedback | components/Feedback.php | PHP | mit | 3,549 |
require 'spec_helper'
describe Cardiac::ResourceAdapter do
let(:base_url) { 'http://localhost/prefix/segment?q=foobar' }
let(:base_uri) { URI(base_url) }
let(:resource) { Cardiac::Resource.new(base_uri) }
let(:adapter) { Cardiac::ResourceAdapter.new(nil, resource) }
include_context 'Client responses... | joekhoobyar/cardiac | spec/shared/cardiac/resource/adapter_spec.rb | Ruby | mit | 1,981 |
using System;
class CheckPointInCircle
{
static void Main()
{
/*
Problem 7. Point in a Circle
Write an expression that checks if given point (x, y) is inside a circle K({0, 0}, 2).
*/
Console.WriteLine("Check if given point (x,y) is within K((0,0),2)");
Co... | TeeeeeC/TelerikAcademy2015-2016 | 01. C# part 1/03. Operators and Statements/CheckPointInCircle/CheckPointInCircle.cs | C# | mit | 676 |
/*
* ImageChangedEvent.java
* -- documented
*
* After a change, such an object is created and passed to the listener
*
*/
package oj.processor.events;
public class ImageChangedEventOJ {
public static final int IMAGE_ADDED = 1;
public static final int IMAGE_EDITED = 2;
public static fi... | steliann/objectj | src/oj/processor/events/ImageChangedEventOJ.java | Java | mit | 1,584 |
<?php require('HeadAndHeader.php'); ?>
<hr id="header-horizontal-line"/>
<div id="content">
<div id="current-path">
<p id="current-path-paragraph">Startsait > Settings</p>
</div>
<fieldset>
<legend id="fieldset-title">Settings</legend>
<div class="s... | kbuglow/intshop | application/views/shop/settings.php | PHP | mit | 6,625 |
<?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Defaults
|--------------------------------------------------------------------------
|
| This option controls the default authentication "guard" and password
| reset options for y... | sporchia/alttp_vt_randomizer | config/auth.php | PHP | mit | 3,280 |
class TwitterHandle < ActiveRecord::Base
belongs_to :topic
has_many :tweets
validates :twitter_handle, presence: true
end
| tweet-squared/Tweets-Squared-App | app/models/twitter_handle.rb | Ruby | mit | 132 |
$(document).ready(function () {
var svgContainer = document.getElementById('svgContainer');
if (svgContainer) {
var mama = new bodymovin.loadAnimation({
wrapper: svgContainer,
autoplay: false,
animType: 'svg',
loop: false,
name: 'test',
... | soywod/MAD | public/js/index.js | JavaScript | mit | 697 |
"use strict"
// String interpolation: supports string interpolation via template literals
let first = 'Jon';
let last = 'Smith';
console.log(`Hello ${first} ${last}!`); // Hello Jon Smith
// Multi-line string
const multiLine = `
This is
a string
with four
lines`;
console.log (multiLine);
// This is
// a strin... | dlinaz/Simple-es6 | src/stringFeatures.js | JavaScript | mit | 350 |
namespace DemoForum.Data.Migrations
{
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using Models;
using System;
using System.Data.Entity;
using System.Data.Entity.Migrations;
using System.Linq;
internal sealed class Configuration : DbMigrationsConfigu... | zachdimitrov/Learning_2017 | ASP.NET-MVC/DemoForum/DemoForum.Data/Migrations/Configuration.cs | C# | mit | 2,643 |
<?php
return [
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
'filename' => '/Users/kenrickkelly/Sites/hokui/user/plugins/admin/languages/eu.yaml',
'modified' => 1527231007,
'data' => [
'PLUGIN_ADMIN' => [
'ADMIN_BETA_MSG' => 'Beta bertsio bat da hau! Produkzioan erabili ezazu z... | h0kui/hokui | cache/compiled/files/f9471ea96fca48eee43207f0cb30d8d6.yaml.php | PHP | mit | 11,189 |
package us.grahn.trojanow.presentation.feed;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import us.grahn.trojanow.R;
/**
* An interface to display to display the default feed for the user. This will contain posts which
* are mad... | dgrahn/csci578 | client/app/src/main/java/us/grahn/trojanow/presentation/feed/FeedActivity.java | Java | mit | 1,442 |
<?php
namespace Library\WhatsApp\Connection\WhatsAPI;
class rc4
{
private $s;
private $i;
private $j;
public function __construct($key, $drop)
{
$this->s = range(0, 255);
for ($i = 0, $j = 0; $i < 256; $i++) {
$k = ord($key{$i % strlen($key)});
$j = ($j + $k... | flolas/WhatsAppZorron | Classes/Library/WhatsApp/Connection/WhatsAPI/RC4.php | PHP | mit | 1,065 |
<?php
/**
* This file is part of the Loops framework.
*
* @author Lukas <lukas@loopsframework.com>
* @license https://raw.githubusercontent.com/loopsframework/base/master/LICENSE
* @link https://github.com/loopsframework/base
* @link https://loopsframework.com/
* @version 0.1
*/
namespace Loops;
use IteratorA... | loopsframework/base | src/Loops/Element.php | PHP | mit | 13,526 |
namespace More.Windows.Controls
{
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Diagnostics.CodeAnalysis;
using System.Diagnostics.Contracts;
using System.Windows.Controls;
/// <summary>
/// Represents a... | commonsensesoftware/More | src/More.UI.Presentation/Platforms/net45/More/Windows.Controls/ColumnsMediator.cs | C# | mit | 5,912 |
<form method="POST" action="<?= URL ;?>users/update/<?= $data['news']->id;?>">
<div class="modal-content">
<h4>Modifier l'utilisateur : <?= $data['user']->pseudo; ?></h4>
<input type="hidden" name="user_id" value="<?= $data['user']->id; ?>">
<div class="row">
<div class="input-f... | HelleboidQ/projetphpgghq | app/views/admin/edit_user.php | PHP | mit | 2,071 |