repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
cs460-group1/chat-server
server.py
55
#!/usr/bin/env python3 from server import main main()
mit
TotalVerb/RTanque
lib/rtanque/runner.rb
2727
require 'ruby-prof' # Add the working directory so that loading of bots works as expected $LOAD_PATH << Dir.pwd # Add the gem root dir so that sample_bots can be loaded $LOAD_PATH << File.expand_path('../../../', __FILE__) module RTanque # Runner manages running an {RTanque::Match} class Runner LoadError = Cla...
mit
stanley4162004/HashtagTrends
top20/js/mainCode.js
1328
var startIndex = 0; var jsonText = ""; getResponseText(); showFiveImages(); function showPrevious() { if (startIndex >= 5) { startIndex -= 5; } showFiveImages(); } function showNext() { if (startIndex <= 10) { startIndex += 5; } showFiveImages(); } function showFiveImages() { // parse the JSON file to ...
mit
Hearthstonepp/Hearthstonepp
Includes/Rosetta/Tasks/SimpleTasks/RandomEntourageTask.hpp
1310
// This code is based on Sabberstone project. // Copyright (c) 2017-2019 SabberStone Team, darkfriend77 & rnilva // RosettaStone is hearthstone simulator using C++ with reinforcement learning. // Copyright (c) 2019 Chris Ohk, Youngjoong Kim, SeungHyun Jeon #ifndef ROSETTASTONE_RANDOM_ENTOURAGE_TASK_HPP #define ROSETTA...
mit
washingtonsoares/hihiringPPI
app/controllers/front/front_controller.rb
88
class Front::FrontController < ApplicationController layout 'front/application' end
mit
ericsonmichaelj/fear-the-repo
src/components/ResumeHeader.js
3966
import React, { PropTypes } from 'react'; import _ from 'underscore'; import Editor from 'react-medium-editor'; import { exactLength, isDefined, isValidEmail } from 'utils/validation'; export default class ResumeHeader extends React.Component { static propTypes = { actions: PropTypes.object, ...
mit
dxw/whippet
src/Services/BaseApi.php
773
<?php namespace Dxw\Whippet\Services; // A thin wrapper around the low-level API functions class BaseApi { private $client; public function __construct() { $this->client = new \GuzzleHttp\Client([ 'headers' => [ 'User-Agent' => 'Whippet https://github.com/dxw/whippet/' ] ]); ...
mit
hosamshahin/OpenDSA
ODSAkhan-exercises/utils/test/math.js
3274
module("math" ); (function(){ test( "math miscellanea", 44, function() { deepEqual( KhanUtil.digits(376), [ 6, 7, 3 ], "digits(376)" ); deepEqual( KhanUtil.integerToDigits(376), [ 3, 7, 6 ], "integerToDigits(376)" ); equal( KhanUtil.getGCD(216, 1024), 8, "gcd(216, 1024)" ); equal( KhanUtil.getGCD(512341, 2325183...
mit
Discordius/Telescope
packages/lesswrong/components/sequences/SequencesEditForm.tsx
1054
import { Components, registerComponent, getFragment } from '../../lib/vulcan-lib'; import React from 'react'; import Sequences from '../../lib/collections/sequences/collection'; const SequencesEditForm = ({ documentId, successCallback, cancelCallback, removeSuccessCallback }: { documentId: string, successCallback?...
mit
dndtools2/dndtools2
manage.py
252
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "dndtools2.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
mit
derantell/VersionTools
test/VersionTools.Lib.Test/Properties/AssemblyInfo.cs
1370
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: AssemblyTi...
mit
DanielMoraCSG/gramplatzi
app/src/androidTest/java/com/csgroup_platzigram2/mora/platzigramv2/ExampleInstrumentedTest.java
786
package com.csgroup_platzigram2.mora.platzigramv2; import android.content.Context; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumentation test, which will ...
mit
dualspiral/Hammer
HammerCore/src/main/java/uk/co/drnaylor/minecraft/hammer/core/commands/enums/ReloadFlagEnum.java
1539
/* * This file is part of Hammer, licensed under the MIT License (MIT). * * Copyright (c) 2015 Daniel Naylor * Copyright (c) contributors * * 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 Soft...
mit
Alex7Kom/alleluia
lib/pipes/loadPages.js
1529
var fs = require('fs'); var path = require('path'); var wrench = require('wrench'); var defaultPath = 'pages'; module.exports = function (lastResult, pipe, config, filters, callback) { var pagesPath = pipe.path || defaultPath; var pagesFilenames; try { pagesFilenames = wrench .readdirSyncRecursive(pa...
mit
ScaleRunner/PacmanAI
6 - Contest/capture.py
30006
# capture.py # ---------- # Licensing Information: Please do not distribute or publish solutions to this # project. You are free to use and extend these projects for educational # purposes. The Pacman AI projects were developed at UC Berkeley, primarily by # John DeNero (denero@cs.berkeley.edu) and Dan Klein (klein@cs....
mit
CruGlobal/godtools-api
src/main/java/org/cru/godtools/domain/packages/PackageStructure.java
4585
package org.cru.godtools.domain.packages; import com.google.common.collect.Maps; import org.ccci.util.xml.XmlDocumentSearchUtilities; import org.cru.godtools.domain.GuavaHashGenerator; import org.cru.godtools.domain.images.Image; import org.jboss.logging.Logger; import org.w3c.dom.Document; import org.w3c.dom.Element;...
mit
FMCalisto/ttt-web-service-noughts-crosses-game-2
ttt-local/src/main/java/ttt/TTT.java
1838
package ttt; public class TTT { char board[][] = { { '1', '2', '3' }, /* Initial values are reference numbers */ { '4', '5', '6' }, /* used to select a vacant square for */ { '7', '8', '9' } /* a turn. */ }; int nextPlayer = 0; int numPlays = 0; public String currentBoard() { String s = "\...
mit
dklisiaris/metaspider
lib/metaspider/base.rb
1611
#!/bin/env ruby # encoding: utf-8 require 'rubygems' require 'open-uri' require 'nokogiri' class Base attr_reader :url, :page def initialize(url=nil) load_page(url) end # Downloads a page from the web. # # ==== Attributes # # * +url+ - The url of webpage to download. # def load_page(url=nil...
mit
nullstyle/ruby-satisfaction
lib/satisfaction/product.rb
435
class Sfn::Product < Sfn::Resource attributes :name, :url, :image, :description attribute :last_active_at, :type => Time attribute :created_at, :type => Time def path "/products/#{@id}" end def setup_associations has_many :topics, :url => "#{path}/topics" has_many :people, :url => "#{path}...
mit
delian1986/SoftUni-C-Sharp-repo
Programming Basics/02.Simple Calculations/02. LEKCIA Simple Calculations/03.next/Program.cs
233
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _03.next { class Program { static void Main(string[] args) { } } }
mit
weberamaral/cs-desafio-node
index.js
805
/** * Module dependencies. */ const App = require('./src/config/express'); const debug = require('debug')('cs-desafio-node:index'); const config = require('./src/config/config'); const models = require('./src/config/sequelize'); /** * Main application entry file. * Please note that the order of loading is importa...
mit
JamisHoo/Yagra
cgi-bin/home.py
2196
#!/usr/bin/env python from __future__ import print_function from collections import namedtuple from common import config from common.response import text_response, populate_html, redirect import os import cgi import hashlib import MySQLdb import Cookie def process_input(): # Load email and password from cookie...
mit
RaRe-Technologies/bounter
bounter/count_min_sketch.py
8979
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Author: Filip Stefanak <f.stefanak@rare-technologies.com> # Copyright (C) 2017 Rare Technologies # # This code is distributed under the terms and conditions # from the MIT License (MIT). import bounter_cmsc as cmsc class CountMinSketch(object): """ Data struc...
mit
WellCommerce/ReportBundle
Provider/AbstractReportProvider.php
1430
<?php /* * WellCommerce Open-Source E-Commerce Platform * * This file is part of the WellCommerce package. * * (c) Adam Piotrowski <adam@wellcommerce.org> * * For the full copyright and license information, * please view the LICENSE file that was distributed with this source code. */ namespace WellCommerce\...
mit
awebeer256/prog30493-1171_4655-spaceinvaders
Assets/Script/EnemyBulletLogic.cs
1337
using System.Collections; using System.Collections.Generic; using UnityEngine; public class EnemyBulletLogic : MonoBehaviour { /* * This class is designed to destory the enemybullet when it collides with anything * will check to see if bullet hits: shields or Player * if shield - destory whichever cube was hi...
mit
kunalrmhatre/fussroll
Fussroll/app/src/main/java/com/fussroll/fussroll/BlockAdapter.java
2736
package com.fussroll.fussroll; import android.content.Context; import android.support.v7.widget.AppCompatButton; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import java.util.List; class Bloc...
mit
yi-jiayu/chat-analytics
demo/script.js
2252
"use strict"; var googleDataArray = [[ {label: 'timestamp', type: 'datetime'}, {label: 'sender', type: 'string'}, {label: 'message', type: 'string'}], [new Date(), '', ''] ]; // Check for the various File API support. if (window.File && window.FileReader && window.FileList && window.Blob) { // Gre...
mit
shengmin/coding-problem
leetcode/gray-code/Solution.java
351
import java.util.*; public class Solution { public ArrayList<Integer> grayCode(int n) { ArrayList<Integer> list = new ArrayList<Integer>(); list.add(0); for (int i = 0; i < n; i++) { int mask = 1 << i; for (int j = list.size() - 1; j >= 0; j--) { list.add(list.get(j) | mask); }...
mit
valor-software/ng2-bootstrap
src/tooltip/tooltip-container.component.ts
2122
import { AfterViewInit, Component, ChangeDetectionStrategy } from '@angular/core'; import { TooltipConfig } from './tooltip.config'; import { getBsVer, IBsVersion } from 'ngx-bootstrap/utils'; import { PlacementForBs5 } from 'ngx-bootstrap/positioning'; @Component({ selector: 'bs-tooltip-container', changeDe...
mit
doug-martin/promise-utils
test/rotate.test.js
3550
var array = require("../"), is = require("is-extended"), date = require("date-extended"), promise = require("promise-extended"), Promise = promise.Promise, resolve = promise.resolve, when = promise.when, assert = require("assert"), it = require("it"); it.describe("promise-utils .rotate"...
mit
tastphp/framework
src/Framework/Console/Command/BaseCommand.php
1578
<?php namespace TastPHP\Framework\Console\Command; use Symfony\Component\Console\Command\Command; class BaseCommand extends Command { protected function getControllerNameByEntityName($name) { return $this->processName($name); } protected function getRouteEntityNameByEntityName($entityName) ...
mit
simonvpe/borrkoll-react
tests/routes/Projects/modules/edit.js
4556
import { actions.update as update, actions.insert as insert } from 'routes/Projects/modules/projects' import { factory } from 'routes/Projects/modules/factory' import { actions, PROJECT_EDIT_START, PROJECT_EDIT_CANCEL, PROJECT_EDIT_SUBMIT, default as reducer } from 'routes/Projects/modules/edit' impo...
mit
micahlanier/pyscreenshort
screenshort.py
13068
#!/usr/bin/env python ##### Setup ### Libraries import argparse import logging import math import os from PIL import Image, ImageColor, ImageDraw, ImageFont, ImageOps import re import sys ### System Settings # Default font paths for Mac OS X. # Order of list will be searchable order. font_dirs = ['/System/Library/...
mit
baohx2000/iamboard
frontend/shared/bootstrap.js
222
/* globals window */ import React from 'react'; import ReactDOM from 'react-dom'; import RootComponent from './root-component'; window.React = React; ReactDOM.render( RootComponent, document.getElementById('app') );
mit
petrocket/HeartOfStone
Assets/src/PlayerController.cs
3883
using UnityEngine; using System.Collections; //[RequireComponent (typeof (LineRenderer))] public class PlayerController : MonoBehaviour { public GameObject target; public GameObject gun; private LaserGun laserGun; private DamageTaker damageTaker; private CameraTracker cameraTracker; private GameRules gameRul...
mit
LPGhatguy/lemur
lib/Enum/HorizontalAlignment.lua
125
local createEnum = import("../createEnum") return createEnum("HorizontalAlignment", { Center = 0, Left = 1, Right = 2, })
mit
galymzhan/wstats
spec/javascripts/UserSpec.js
1758
describe("User", function() { var client = new Client('test-key'), user = new User(client), async = new AsyncSpec(this); describe("unrecognizedKanji", function() { beforeEach(function() { spyOn(client, 'api').andCallFake(function(resource, callback) { callback(Factory.build('response', { ...
mit
fxia22/pointGAN
show_gan_rnn3.py
1293
from __future__ import print_function from show3d_balls import * import argparse import os import random import numpy as np import torch import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.optim as optim import torch.utils.data import torchvision.datasets as dset import torc...
mit
kimikimi714/composer_autoload_test
app.php
141
<?php require_once __DIR__ . '/vendor/autoload.php'; use kimikimi714\autoloader\Autoload; $autoload = new Autoload(); $autoload->hello();
mit
cperthuis/GameCode
src/shared/allocator.cpp
1554
#include "allocator.h" #include <vector> struct FrameAllocatorData { size_t _bufferSize; std::vector<char *> _buffers; size_t _bufferIndex; size_t _pos; void *_last; size_t _prevPos; size_t _count; }; FrameAllocator::FrameAllocator(size_t bufferSize) { _data = new FrameAllocatorData; _data...
mit
mccarter/restaurant-order-demo
public/services/services.js
501
angular.module('rideCellApp.services', []) .factory('RideCellService', function($http, $location) { //Stores all previous orders var allOrders = []; //stores menu data for usage on menu detail page var menu; //stores order data for usage on admin page to populate POS table var orderData; //modular use of redire...
mit
overridethis/usgsclient
UsgsClient/Common/EnumExtensions.cs
817
using System; using System.ComponentModel; using System.Linq; using System.Reflection; namespace UsgsClient.Common { public static class EnumExtensions { public static T GetAttributeOfType<T>(this Enum value) where T : System.Attribute { var typeInfo = value.GetType().GetTypeInfo()...
mit
heyui/heyui
src/components/circle/index.js
55
import Circle from './circle'; export default Circle;
mit
seph-lang/seph
src/main/seph/lang/structure/SephObject_1_17.java
4509
/* THIS FILE IS GENERATED. DO NOT EDIT */ package seph.lang.structure; import seph.lang.*; import seph.lang.persistent.*; public class SephObject_1_17 extends SephObjectStructure { public final SephObject parent0; public final String selector0; public final SephObject cell0; public final String selec...
mit
janslow/projection-mapper-world
src/com/jayanslow/projection/world/models/Face.java
658
package com.jayanslow.projection.world.models; import javax.vecmath.Vector3f; public interface Face { /** * Gets the id of the face, such that (parent, faceId) is unique * * @return Face id */ public int getFaceId(); /** * Friendly name of face * * @return Friendly name, or null */ public Stri...
mit
Paleozoic/hd-client
src/main/java/com/maxplus1/hd_client/hbase/funciton/Schema.java
417
package com.maxplus1.hd_client.hbase.funciton; import org.apache.hadoop.hbase.HTableDescriptor; /** * 提供HBase schema的操作功能 * * @author zachary.zhang * @author Paleo */ public interface Schema { void createTable(String tableName, String... columnFamily) ; void deleteTable(String tableName) ; HTable...
mit
Asquera/eson-dsl
test/search/filters/ids.rb
214
{:query => { :filtered => { :query => { :match_all => { } }, :filter => { :ids => { :type => "user", :values => [1,2,3,4,5,6,7] } } } } }
mit
baherramzy/DestinyStatus
app/destiny/Character/InventoryItemCollection.php
182
<?php namespace Destiny\Character; use Destiny\Collection; /** * @method \Destiny\Character\InventoryItem offsetGet($key) */ class InventoryItemCollection extends Collection { }
mit
garymabin/YGOMobile
proj.android/src/cn/garymb/ygomobile/widget/wheelview/WheelAdapter.java
579
package cn.garymb.ygomobile.widget.wheelview; public interface WheelAdapter { /** * Gets items count * * @return the count of wheel items */ public int getItemsCount(); /** * Gets a wheel item by index. * * @param index * the item index * @return the wheel item text or null */ pub...
mit
sendaa/current4
I/CbaseEnqSubeventMVC.php
19393
<?php require_once 'CbaseMVC.php'; require_once 'CbaseFEnquete.php'; require_once 'CbaseFEventDesign.php'; require_once 'CbaseFCheckModule.php'; require_once 'CbaseFError.php'; require_once 'CbaseFForm.php'; require_once 'QuestionType.php'; class EnqSubeventModel extends Model { public function delete(& $request) ...
mit
dwalkr/wp-admin-utility
src/Field/Password.php
2118
<?php /* * The MIT License * * Copyright 2016 DJ Walker <donwalker1987@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 limitation ...
mit
AlanCezarAraujo/performance-playground
app/scripts/memory-allocation.js
1022
(() => { 'use strict'; let memoryAllocated = 0; let memoryChunk = []; let btnAllocate = document.getElementById('btnAllocate'); let btnDeallocate = document.getElementById('btnDeallocate'); let btnFreeAllMemory = document.getElementById('btnFreeAllMemory'); function allocateMemory() { ...
mit
niquola/health_seven
lib/health_seven/2.6/messages/bps_o29.rb
1649
module HealthSeven::V2_6 class BpsO29 < ::HealthSeven::Message attribute :msh, Msh, position: "MSH", require: true attribute :sfts, Array[Sft], position: "SFT", multiple: true attribute :uac, Uac, position: "UAC" attribute :ntes, Array[Nte], position: "NTE", multiple: true class Patient < ::HealthSeven::Segme...
mit
MrChristofferson/Farmbot-Web-API
webpack/devices/components/__tests__/os_update_button_test.tsx
3766
jest.mock("../../../device", () => ({ devices: { current: { checkUpdates: jest.fn(() => { return Promise.resolve(); }), } } })); let mockOk = jest.fn(); jest.mock("farmbot-toastr", () => ({ success: mockOk })); import * as React from "react"; import { OsUpdateButton } from "../os_update_button"; impo...
mit
AdrianApostolov/TelerikAcademy
Homeworks/Databases/11.EntityFramework/07.Concurrency/Properties/AssemblyInfo.cs
1404
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("07...
mit
AndreJSON/holy-integraal
src/actor.cpp
553
#include "actor.hpp" qhi::Actor::Actor(std::string desc) { description = desc; rightAnswer = -1; } qhi::Actor::~Actor() { } std::vector<std::string> qhi::Actor::getConversationOptions(int) const { return conversationOptions; } void qhi::Actor::addConversationOption(std::string opt) { conversationOptions.push_ba...
mit
jordic/k8s
cloudsqlip/Godeps/_workspace/src/k8s.io/kubernetes/pkg/api/testapi/testapi.go
8241
/* Copyright 2014 The Kubernetes Authors All rights reserved. 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 or ag...
mit
detailnet/dfw-commanding-module
src/Factory/CommandDispatcherFactory.php
2096
<?php namespace Detail\Commanding\Factory; use Interop\Container\ContainerInterface; use Zend\EventManager\ListenerAggregateInterface; use Zend\ServiceManager\Exception\ServiceNotCreatedException; use Zend\ServiceManager\Factory\FactoryInterface; use Detail\Commanding\CommandDispatcher; use Detail\Commanding\Comman...
mit
kevoj/nodetomic-api-swagger
src/lib/swagger/config.js
1817
import swaggerJSDoc from "swagger-jsdoc"; import config from "../../config"; export default (app) => { // Initialize Swagger let options = { swaggerDefinition: { swagger: "2.0", info: config.swagger.info, basePath: `/`, schemes: ["http", "https"], securityDefinitions: { Be...
mit
lordmilko/PrtgAPI
src/PrtgAPI/Parameters/ObjectData/LogParameters.cs
6449
using System; using System.Diagnostics.CodeAnalysis; using PrtgAPI.Request; using PrtgAPI.Request.Serialization; namespace PrtgAPI.Parameters { /// <summary> /// Represents parameters used to construct a <see cref="PrtgRequestMessage"/> for retrieving <see cref="Log"/> objects. /// </summary> [Exclude...
mit
svenyurgensson/assorted_candy
assorted_candy/fpatterns/unevaluated.rb
950
module AssortedCandy module Null class Unevaluated < ::BasicObject def ==(*); false; end def to_f; 0.0; end def to_i; 0; end def to_s; ""; end def *(*); 0; end def +(*); 0; end def -(*); 0; end def /(*); 1; end def c...
mit
wcneto/laravel-stocks-robo-advisor
app/Alertas.php
117
<?php namespace App; class Alertas extends BaseModel { protected $table = 'vw_alerta_atual'; }
mit
Vizzuality/grid-arendal
backend/app/controllers/backend/users_controller.rb
2778
# frozen_string_literal: true require_dependency 'backend/application_controller' module Backend class UsersController < ::Backend::ApplicationController load_and_authorize_resource before_action :set_user, except: [:index, :new, :create, :paginate] before_action :set_users, only: [:index, :edit, :new] ...
mit
XanderDwyl/bjssystem
app/controllers/PageController.php
1799
<?php class PageController extends BaseController { protected $layout = "layouts.main"; public function __construct() { $this->beforeFilter('csrf', array('on'=>'post')); $this->beforeFilter('auth', array('only'=>array('showDashboard', 'showRegisterForm', 'showEmployeeForm', 'showPayrollForm', 'showCashadvanceFo...
mit
ninjasphere/sphere-api-service
lib/web/rest/v1/errors.js
571
'use strict'; module.exports = { unknown_error: { code:500, type: 'internal_error', message:'An unknown internal error occurred.'}, not_supported: { code:400, type: 'unsupported_endpoint', message:'This endpoint is not supported.'}, signing_unavailable: { code:503, type: 'signing_unavailable', message:'Session ...
mit
COMP4711Lab5Group30/starter-todo4
application/core/MY_Model.php
9560
<?php // pull in the interface we are supposed to implement // Note that it doesn't have to follow the normal CodeIgniter naming rules! require_once 'DataMapper.php'; /** * Generic data access model, for an RDB. * * This class is called MY_Model to keep CodeIgniter happy. * * @author JLP * @copyright ...
mit
SkillsFundingAgency/das-employerapprenticeshipsservice
src/SFA.DAS.EmployerAccounts/Commands/UnsubscribeProviderEmail/UnsubscribeProviderEmailQuery.cs
228
using System; using MediatR; namespace SFA.DAS.EmployerAccounts.Commands.UnsubscribeProviderEmail { public class UnsubscribeProviderEmailQuery : IAsyncRequest { public Guid CorrelationId { get; set; } } }
mit
TheTastyCactus/CactusCoin
src/qt/locale/bitcoin_it.ts
116609
<?xml version="1.0" ?><!DOCTYPE TS><TS language="it" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Cactuscoin</source> <translation>Info su Cactuscoin</translation> ...
mit
Dealtis/DMS_3
DMS_3/obj/Debug/android/src/mono/MonoPackageManager.java
3381
package mono; import java.io.*; import java.lang.String; import java.util.Locale; import java.util.HashSet; import java.util.zip.*; import android.content.Context; import android.content.Intent; import android.content.pm.ApplicationInfo; import android.content.res.AssetManager; import android.util.Log; import mono.and...
mit
galetahub/sunrise-questions
spec/generators/install_generator_spec.rb
572
require 'spec_helper' describe Sunrise::Questions::InstallGenerator do include GeneratorSpec::TestCase destination File.expand_path("../../tmp", __FILE__) # arguments %w(something) before(:all) do prepare_destination run_generator end it "should create migration" do assert_migration "db/migrat...
mit
sanger/asset_audits
db/migrate/20200617163340_add_metadata_to_process_plates.rb
167
# frozen_string_literal: true class AddMetadataToProcessPlates < ActiveRecord::Migration[5.2] def change add_column :process_plates, :metadata, :json end end
mit
gabz75/ember-cli-deploy-redis-publish
node_modules/testem/lib/reporters/dev/error_messages_panel.js
1395
'use strict'; const ScrollableTextPanel = require('./scrollable_text_panel'); const Chars = require('../../chars'); module.exports = ScrollableTextPanel.extend({ initialize(attrs) { this.updateVisibility(); this.on('change:text', () => this.updateVisibility()); ScrollableTextPanel.prototype.initialize.c...
mit
metarealm/foodX
src/app/shared/pipes/video-likes.pipe.ts
236
import { Pipe, PipeTransform } from '@angular/core'; @Pipe({ name: 'videoLikes' }) export class VideoLikesPipe implements PipeTransform { transform(value: any, args?: any[]): any { return parseInt(value).toLocaleString('en'); } }
mit
jsl/ListableApp-Web
config/deploy.rb
1296
set :stages, %w(staging production) set :default_stage, 'production' require 'capistrano/ext/multistage' set :application, "ListableApp" set :scm, :git set(:deploy_to) { "/var/projects/#{application}/#{stage}" } set(:shared_data_dir) { "#{deploy_to}/shared/data" } set :use_sudo, false set :local_project_path, "/Use...
mit
linyows/pdns
lib/pdns/version.rb
37
module PDNS VERSION = '0.10.0' end
mit
brjmc/brjmc.github.io
ui_catalog/javascripts/bundle.js
1292
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
mit
space-wizards/space-station-14
Content.Server/Roles/RoleAddedEvent.cs
159
namespace Content.Server.Roles { public sealed class RoleAddedEvent : RoleEvent { public RoleAddedEvent(Role role) : base(role) { } } }
mit
deaconu-sabin/das
src/include/das/IAlgorithm.hpp
514
/* * IAlgorithm.hpp * * Created on: Aug 15, 2016 * Author: sabin */ #ifndef IALGORITHM_HPP_ #define IALGORITHM_HPP_ namespace das { class IAlgorithm { public: virtual ~IAlgorithm(){} virtual bool setInitialData() = 0; virtual bool readInputData() = 0; virtual bool pro...
mit
2016-Software-Reuse-Group-7/chat-room
src/main/java/TeamSeven/common/message/server/ServerPublicKeyMessage.java
583
package TeamSeven.common.message.server; import TeamSeven.common.enumerate.TransMessageTypeEnum; import TeamSeven.common.message.BaseMessage; import java.security.PublicKey; /** * Created by joshoy on 16/4/19. */ public class ServerPublicKeyMessage extends BaseMessage { protected PublicKey key; public Se...
mit
NilsHolger/Expenser
app/js/app.js
703
'use strict'; // Declare app level module which depends on filters, and services angular.module('myApp', [ 'ngRoute', 'myApp.filters', 'myApp.services', 'myApp.directives', 'myApp.controllers', 'ngTouch', 'ngAnimate' ]). config(['$routeProvider', function($routeProvider) { $routeProvider.when('/',{ ...
mit
plotly/plotly.py
packages/python/plotly/plotly/validators/layout/xaxis/_visible.py
402
import _plotly_utils.basevalidators class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__(self, plotly_name="visible", parent_name="layout.xaxis", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
mit
dchester/generator-async
lib/context.js
2509
var Context = function(generator, args, _this) { if (!generator) throw new Error("Context needs a generator function"); this.queue = []; this.callback = function() {}; this.pendingCount = 0; this.iterator = generator.apply(_this, args); }; Context.prototype = { run: function(callback) { this.callbac...
mit
knuu/competitive-programming
codechef/snckel16_arithm.py
496
T = int(input()) for _ in range(T): N, C = map(int, input().split()) if 2 * C % N != 0: print("No") continue K = 2 * C // N if (K % 2 == 0 and (N - 1) % 2 == 0) or (K % 2 == 1 and (N - 1) % 2 == 1): a0 = K - (N - 1) assert(a0 % 2 == 0) print("Yes" if a0 > 0 else ...
mit
mysociety/ruby-msg
test/test_msg.rb
1508
# -*- encoding : utf-8 -*- #! /usr/bin/ruby TEST_DIR = File.dirname __FILE__ $: << "#{TEST_DIR}/../lib" require 'test/unit' require 'mapi/msg' require 'mapi/convert' class TestMsg < Test::Unit::TestCase def test_blammo Mapi::Msg.open "#{TEST_DIR}/test_Blammo.msg" do |msg| assert_equal '"TripleNickel" <TripleNi...
mit
sveltejs/svelte
src/compiler/compile/render_dom/wrappers/IfBlock.ts
16722
import Wrapper from './shared/Wrapper'; import Renderer from '../Renderer'; import Block from '../Block'; import EachBlock from '../../nodes/EachBlock'; import IfBlock from '../../nodes/IfBlock'; import create_debugging_comment from './shared/create_debugging_comment'; import ElseBlock from '../../nodes/ElseBlock'; imp...
mit
engagementgamelab/hygiene-with-chhota-bheem
game/Assets/Scripts/LoadGame.cs
194
using UnityEngine; public class LoadGame : MonoBehaviour { // Use this for initialization void Start () { UnityEngine.SceneManagement.SceneManager.LoadScene("JohnnyScene"); } }
mit
Patternslib/pat-map-leaflet
src/pat/calendar/calendar.js
15702
/** * Patterns calendar - Calendar with different views for patterns. * * Copyright 2013-2014 Marko Durkovic * Copyright 2014 Florian Friesdorf */ define([ "jquery", "pat-logger", "pat-parser", "pat-store", "pat-utils", "pat-registry", "pat-calendar-dnd", "pat-calendar-moment-timezo...
mit
JoselynRuiz/Programacion-III
Clase 9/app/__init__.py
483
from flask import Flask app = Flask(__name__) @app.route('/') def hola_mundo(): return 'Xopa Laope!' @app.route('/hola/<nombre>') def hola_laope(nombre): return 'Hola laope, %s!' % nombre @app.route('/blog/<int:idEntrada>') def mostrar_blog(idEntrada): return 'Entrada #%d' % idEntrada @app.route('/itb...
mit
leancode-inc/kanban-angular-require
app/scripts/user-story/user-story-module.js
857
define([ 'angular', 'user-story/list/user-story-list-controller', 'user-story/view/user-story-controller', 'user-story/create/user-story-create-controller', 'user-story/user-story-service' ], function (angular, UserStoryListController, UserStor...
mit
prepare/opencv.net
OpenCV.Net/Chain.cs
2244
using OpenCV.Net.Native; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace OpenCV.Net { /// <summary> /// Represents a Freeman chain where a polygon is specified as a sequence of steps in /// one of eight directions from a point origin. /// </su...
mit
plzen/ebay
lib/ebay_trading/types/policy_compliance_status_code.rb
245
module EbayTrading # :nodoc: module Types # :nodoc: class PolicyComplianceStatusCode extend Enumerable extend Enumeration Good = 'Good' Fair = 'Fair' Poor = 'Poor' Failing = 'Failing' end end end
mit
chepeftw/WorldVolunteering
Web/src/World/UserBundle/Entity/User.php
5782
<?php // src/Acme/UserBundle/Entity/User.php namespace World\UserBundle\Entity; use FOS\UserBundle\Model\User as BaseUser; use Doctrine\ORM\Mapping as ORM; use Gedmo\Mapping\Annotation as Gedmo; use Symfony\Component\Validator\Constraints as Assert; /** * @ORM\Entity * @ORM\Table(name="fos_user") * @Gedmo\Loggabl...
mit
areleogitdev/areleofinish
areleo/app-assets/js/scripts/tables/datatables-extensions/datatable-responsive.js
5115
/*========================================================================================= File Name: datatables-responsive.js Description: Responsive Datatable ---------------------------------------------------------------------------------------- Item Name: Stack - Responsive Admin Theme Version...
mit
iassasin/wschatserver
client.cpp
2593
#include "client.hpp" #include "server.hpp" #include "algo.hpp" #include "packet.hpp" #include "packets.hpp" #include "logger.hpp" #include "utils.hpp" Client::Client(Server *srv, string tok) { server = srv; uid = 0; lastMessageTime = time(nullptr); lastPacketTime = lastMessageTime; messageCounter = 0; _isGirl =...
mit
ray-di/Ray.Aop
src/VisitorFactory.php
1208
<?php declare(strict_types=1); namespace Ray\Aop; use PhpParser\NodeTraverser; use PhpParser\Parser; use Ray\Aop\Exception\InvalidSourceClassException; use ReflectionClass; use RuntimeException; use function file_get_contents; use function get_class; use function is_array; use function is_bool; final class Visitor...
mit
takamin/aws-node-util
test/bnf.test.js
12863
"use strict"; var assert = require("chai").assert; var BNF = require("lex-bnf"); describe("BNF", function() { describe("Syntax definition allowing only 'A B','C D','X Y' or 'P Q'", () => { var bnf = new BNF("root", { "root": [ [ BNF.literal("A"), BNF.literal("B") ], ...
mit
leoarry/SpeedyMVVM
SpeedyMVVM.PCL/Navigation/Interfaces/IDialogBoxService.cs
548
using SpeedyMVVM.Utilities; using System.Threading.Tasks; namespace SpeedyMVVM.Navigation { /// <summary> /// Define a service for basic dialog boxes. /// </summary> public interface IDialogBoxService { Task<string> ShowInputBox(string message, string title, string iconPath); Task<...
mit
cloudwu/ltask
examples/timer/user.lua
492
local ltask = require "ltask" local S = setmetatable({}, { __gc = function() print "User exit" end } ) print ("User init :", ...) function S.wait(ti) if ti < 10 then error("Error : " .. ti) end ltask.sleep(ti) return ti end function S.ping(...) ltask.timeout(10, function() print(1) end) ltask.timeout(20, fu...
mit
juannfrancisco/adm-ceppi
ws/ceppi-core/src/main/java/cl/ml/ceppi/core/service/SocioService.java
320
package cl.ml.ceppi.core.service; import java.util.List; import cl.ml.ceppi.core.model.socio.Socio; /** * @author Maldonado León * */ public interface SocioService { void save(Socio socio); void update(Socio socio); void delete(Socio socio); List<Socio> listSocio(); Socio findSocioById(int id); }
mit
gubatron/openbazaar-go
vendor/github.com/OpenBazaar/spvwallet/sortsignsend.go
22289
// Copyright (C) 2015-2016 The Lightning Network Developers // Copyright (c) 2016-2017 The OpenBazaar Developers package spvwallet import ( "bytes" "crypto/sha256" "encoding/hex" "errors" "fmt" "github.com/OpenBazaar/wallet-interface" "github.com/btcsuite/btcd/blockchain" "github.com/btcsuite/btcd/btcec" "gi...
mit