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 |
|---|---|---|---|---|---|
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... | superdyzio/PWR-Stuff | INF/Algorytmy i Struktury Danych/zad1/main.java | Java | mit | 2,259 |
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... | dfilatov/vidom-ui | src/components/Modal/doc/index.js | JavaScript | mit | 1,817 |
<?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_... | nazmule27/alumni | application/models/Postgrad_alumni_model.php | PHP | mit | 2,663 |
// 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>
*... | phetsims/scenery | js/display/BackboneDrawable.js | JavaScript | mit | 18,588 |
"use strict";
/**
* Broadcast updates to client when the model changes
*/
Object.defineProperty(exports, "__esModule", { value: true });
var product_events_1 = require("./product.events");
// Model events to emit
var events = ['save', 'remove'];
function register(socket) {
// Bind model events to socket events
... | ashwath10110/mfb-new | dist/server/api/product/product.socket.js | JavaScript | mit | 944 |
<?php
/**
* Genesis Framework.
*
* WARNING: This file is part of the core Genesis Framework. DO NOT edit this file under any circumstances.
* Please do all modifications in the form of a child theme.
*
* @package Genesis\Loops
* @author StudioPress
* @license GPL-2.0+
* @link http://my.studiopress.com/them... | growlingfish/giftplatform-bedrock | web/app/themes/genesis/lib/structure/loops.php | PHP | mit | 12,384 |
package app.location;
import app.core.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
@NoArgsConstructor
@AllArgsConstructor
@Getter
@Setter
@E... | BahodirBoydedayev/conferenceApp | src/main/java/app/location/Location.java | Java | mit | 454 |
/**
* vuex-mapstate-modelvalue-instrict- v0.0.4
* (c) 2017 fsy0718
* @license MIT
*/
'use strict';
var push = Array.prototype.push;
var pop = Array.prototype.pop;
var _mapStateModelValueInStrict = function (modelValue, stateName, type, opts, setWithPayload, copts) {
if ( opts === void 0 ) opts = {};
if ( copts... | fsy0718/mapStateModelInStrict | dist/mapStateModelValueInStrict.common.js | JavaScript | mit | 2,832 |
// The file contents for the current environment will overwrite these during build.
// The build system defaults to the dev environment which uses `environment.ts`, but if you do
// `ng build --env=prod` then `environment.prod.ts` will be used instead.
// The list of which env maps to which file can be found in `ang... | 1729org/Hadron | HadronClient/dist/out-tsc/environments/environment.js | JavaScript | mit | 560 |
<?php
namespace DeliciousBrains\WP_Offload_SES\Aws3\Aws\Api\Parser;
use DeliciousBrains\WP_Offload_SES\Aws3\Aws\Api\Service;
use DeliciousBrains\WP_Offload_SES\Aws3\Aws\Api\StructureShape;
use DeliciousBrains\WP_Offload_SES\Aws3\Aws\CommandInterface;
use DeliciousBrains\WP_Offload_SES\Aws3\Aws\ResultInterface;
use De... | misfit-inc/misfit.co | wp-content/plugins/wp-ses/vendor/Aws3/Aws/Api/Parser/AbstractParser.php | PHP | mit | 1,441 |
var namespace_pathfinder_1_1_internal_1_1_g_u_i =
[
[ "ModExtensionsUI", "class_pathfinder_1_1_internal_1_1_g_u_i_1_1_mod_extensions_u_i.html", "class_pathfinder_1_1_internal_1_1_g_u_i_1_1_mod_extensions_u_i" ],
[ "ModList", "class_pathfinder_1_1_internal_1_1_g_u_i_1_1_mod_list.html", "class_pathfinder_1_1_inte... | Spartan322/Hacknet-Pathfinder | docs/html/namespace_pathfinder_1_1_internal_1_1_g_u_i.js | JavaScript | mit | 353 |
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::Compute::Mgmt::V2015_06_15
module Models
#
# Contains the os disk image information.
#
class OSDiskImage
include MsRe... | Azure/azure-sdk-for-ruby | management/azure_mgmt_compute/lib/2015-06-15/generated/azure_mgmt_compute/models/osdisk_image.rb | Ruby | mit | 1,259 |
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... | TelegramBots/telegram.bot | src/Telegram.Bot/Types/ChatMember.cs | C# | mit | 5,882 |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Debug Mode
|--------------------------------------------------------------------------
|
| When your application is in debug mode, detailed error messages with
| stack traces will be shown on every error... | sroutier/l5-theme-demo | config/app.php | PHP | mit | 7,202 |
<?php
namespace Asad\Core\Bundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class AsadCoreBundle extends Bundle
{
}
| moinulcseduet/symfony-json-version | src/Asad/Core/Bundle/AsadCoreBundle.php | PHP | mit | 125 |
/**
*
* $Id$
*/
package Variation_Diff.validation;
/**
* A sample validator interface for {@link Variation_Diff.EntityType}.
* This doesn't really do anything, and it's not a real EMF artifact.
* It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator ... | catedrasaes-umu/NoSQLDataEngineering | projects/es.um.nosql.s13e.datavisualization/src/Variation_Diff/validation/EntityTypeValidator.java | Java | mit | 534 |
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({
... | wyvern8/akamai-nginx | configure.js | JavaScript | mit | 5,154 |
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... | angular/react-native-renderer | src/components/ios/tabbar.ts | TypeScript | mit | 2,193 |
export default {
Control : require('./Control'),
Delete : require('./Delete'),
Detail : require('./Detail'),
Head : require('./Head'),
Quit : require('./Quit'),
}; | czy0729/react-alumni | app/pages/index/UserDetail/containers/index.js | JavaScript | mit | 191 |
$(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-... | plusgut/datawrapper | plugins/core-vis-options/static/sync-colorselector.js | JavaScript | mit | 8,443 |
//--------------------------------------------------------------------------------//
// COPYRIGHT NOTICE //
//--------------------------------------------------------------------------------//
// Copyright (c) 2012, Instituto de Microelectronica de Sevilla (... | dayse/gesplan | src/xfuzzy/xfplot/Xfplot2DPanel.java | Java | mit | 6,711 |
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... | AlloyTeam/Nuclear | packages/omi-snake/src/stores/index.js | JavaScript | mit | 908 |
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <_cash_discount_.hpp>
START_ATF_NAMESPACE
namespace Info
{
using _cash_discount_ctor__cash_discount_2_ptr = void (WINAPIV*)(struct _ca... | goodwinxp/Yorozuya | library/ATF/_cash_discount_Info.hpp | C++ | mit | 775 |
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... | imazen/repositext | lib/repositext/subtitle/operation/move_right.rb | Ruby | mit | 709 |
(function () {
'use strict';
angular.module('app.layout', ['app.core', 'ui.bootstrap.collapse']);
})();
| Clare-MCR/ClarePunts | src/client/app/layout/layout.module.js | JavaScript | mit | 109 |
<?php
namespace Core\UserBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
use JMS\Serializer\Annotation as JMS;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
/**
* @ORM\Entity
* @ORM\Table(name="google_accounts", indexes={@ORM\Index(columns={"... | mikecpl/cashforpost | src/Core/UserBundle/Entity/GoogleAccount.php | PHP | mit | 7,092 |
<?php
# MantisBT - A PHP based bugtracking system
# MantisBT 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.
#
# MantisBT is distribut... | nabusas/Nabu | Mantis/plugins/MantisGraph/pages/category_graph.php | PHP | mit | 1,877 |
/**
* @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... | uhef/Oskari-Routing-frontend | bundles/framework/bundle/layerselector2/view/PublishedLayersTab.js | JavaScript | mit | 13,634 |
#!/usr/bin/env python
import time
from nicfit.aio import Application
async def _main(args):
print(args)
print("Sleeping 2...")
time.sleep(2)
print("Sleeping 0...")
return 0
def atexit():
print("atexit")
app = Application(_main, atexit=atexit)
app.arg_parser.add_argument("--example", help="Ex... | nicfit/nicfit.py | examples/asyncio_example.py | Python | mit | 371 |
require 'spec_helper'
describe PolarExpress do
context 'Gem Basics' do
it "creates a new instance of the gem" do
@tracker = PolarExpress.new('DHL', '1234')
@tracker.should respond_to :shipping_number
end
end
end
| eljojo/polar_express | spec/polar_express/polar_express_spec.rb | Ruby | mit | 236 |
// +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... | ukautz/clif | term_x.go | GO | mit | 591 |
<?php
namespace CoreBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
/**
* FriendsGroup
*
* @ORM\Table(name="friends_group")
* @ORM\Entity(repositoryClass="CoreBundle\Repository\FriendsGroupRepository")
*/
class FriendsGroup
{
/**
* @var int
*
* @ORM\Colu... | basileazh/HDB | src/CoreBundle/Entity/FriendsGroup.php | PHP | mit | 4,133 |
export * from './dropdown-treeview-select.module';
| leovo2708/ngx-treeview | src/app/dropdown-treeview-select/index.ts | TypeScript | mit | 51 |
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... | sergueik/swd-recorder | SwdPageRecorder/SwdPageRecorder.UI/Properties/AssemblyInfo.cs | C# | mit | 1,581 |
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... | huhen/scs | src/Scs/Communication/Scs/Client/Tcp/TcpHelper.cs | C# | mit | 4,229 |
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 {
... | DeyuGoGo/EasyJavaDesignPatterns | HeadFirstDesignPatterns/src/proxy/test/Server.java | Java | mit | 622 |
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... | hekar/grunt-voluminosify | src/transformers.js | JavaScript | mit | 2,693 |
<?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()
{
}
... | stone-lab/Dynamicfield | Providers/DynamicfieldServiceProvider.php | PHP | mit | 2,013 |
<?php namespace Robbo\Presenter\View;
use ArrayAccess;
use IteratorAggregate;
use Robbo\Presenter\PresentableInterface;
use Illuminate\View\Environment as BaseEnvironment;
class Environment extends BaseEnvironment {
/**
* Get a evaluated view contents for the given view.
*
* @param string $view
* @param ... | coreywagehoft/laravel-4-base | vendor/robclancy/presenter/src/Robbo/Presenter/View/Environment.php | PHP | mit | 1,513 |
/* 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... | koobonil/Boss2D | Boss2D/addon/_old/webrtc-qt5.11.2_for_boss/modules/video_coding/receiver_unittest.cc | C++ | mit | 20,183 |
var Models = {};
module.exports = Models;
/**
* Creates a new instance of the Model class
* @constructor
*/
Models.Model = function(id, name, status, type, normalValue, wierdValue) {
/** @type {string} */
this._id = id || '';
/** @type {string} */
this.name = name || '';
/** @type {string} */
... | ValYouW/rollmodel | models/model.js | JavaScript | mit | 771 |
/* =============================================================
* 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")... | nfelix/mvmt | public/assets/rails_admin/bootstrap/bootstrap-collapse-3387a8b21abb7862bae6aac8337d6b26.js | JavaScript | mit | 4,731 |
// 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 "... | tenvick/hugula | Client/Assets/Third/PSD2UGUI/@rotorz/unity3d-editor-menu/Editor/EditorMenuSettings.cs | C# | mit | 3,824 |
# -*- 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(... | code-for-india/sahana_shelter_worldbank | controllers/org.py | Python | mit | 10,621 |
<?php
namespace ALttP\Http\Controllers;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
class Controller extends BaseController
{
use AuthorizesRequ... | sporchia/alttp_vt_randomizer | app/Http/Controllers/Controller.php | PHP | mit | 363 |
# https://leetcode.com/problems/anagrams/
#
# Given an array of strings, group anagrams together.
#
# For example, given: ["eat", "tea", "tan", "ate", "nat", "bat"], Return:
#
# [
# ["ate", "eat", "tea"],
# ["nat", "tan"],
# ["bat"]
# ]
#
# Notes:
#
# + For the return value, each inner lis... | shemerey/coderepo | algorithms/anagrams.rb | Ruby | mit | 563 |
/* 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... | swsch/FacePalm | FacePalm/Properties/Annotations.cs | C# | mit | 43,439 |
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
*
... | Open-RIO/ToastAPI | src/main/java/jaci/openrio/toast/core/loader/simulation/GuiRobotState.java | Java | mit | 3,232 |
using System.Resources;
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.
[ass... | IvoAtanasov/TableTennisChampionship | TableTennisChampionship/TableTennisChampionship.Model/Properties/AssemblyInfo.cs | C# | mit | 1,116 |
namespace app.home {
/**
* This class represents example model for data sample.
*/
export class DataItem {
/**
* Creates an instance of DataItem.
* @param {number} id - ID property of data item.
* @param {string} name - Name property of data item.
* @constructor
*/
constructo... | vladanp/angularjs-typescript-grunt-seed | app/scripts/home/data.model.ts | TypeScript | mit | 390 |
angular.module('Eintrag').service('editarService', ['$http', function ($http) {
this.editarUsuario = function (data) {
return $http.post('http://localhost/Eintrag/www/server.php/editarUsuario', $.param(data));
};
}]);
| Jorge-CR/Eintrag | www/app/service/service.editar.js | JavaScript | mit | 254 |
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: ... | pastryTeam/pastry-plugin-base-ionic | replacedata/www/app/view/chatsModule/chatsService.js | JavaScript | mit | 1,146 |
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... | YangMann/drone-slam | drone-slam/src/drone_slam/apps/controlcenter/plugins/attitudechart/AttitudeChartPanel.java | Java | mit | 1,902 |
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;... | wallner/connector4java | src/main/java/org/osiam/client/OsiamUserService.java | Java | mit | 15,934 |
<?php
namespace Ahs\BlogBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class AhsBlogBundle extends Bundle
{
}
| OlivierParent/WDAD-III | src/Ahs/BlogBundle/AhsBlogBundle.php | PHP | mit | 122 |
/*
* Copyright 2002-2004 The Apache Software Foundation.
*
* 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 ap... | turbolent/lila | src/java/lila/runtime/StringPrintWriter.java | Java | mit | 1,802 |
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... | SpikE4343/control-panel | plugin/Items/ButtonItem.cs | C# | mit | 1,175 |
import { AppRegistry } from "react-native";
import App from "./App";
AppRegistry.registerComponent("KeepTheBallGame", () => App);
| react-native-sensors/react-native-sensors | examples/KeepTheBallGame/index.js | JavaScript | mit | 131 |
package main
import "fmt"
// returns a function that returns an int
func fibonacci() func() int {
old_fib :=-1
fib := 1
return func() int {
fib, old_fib = fib + old_fib, fib
return fib
}
}
func main() {
f := fibonacci()
for i := 0; i < 10; i++ {
fmt.Println(f())
}
}
| wm/going | 03_closures.go | GO | mit | 297 |
#include "cxxsource.h"
CxxSource::CxxSource()
{
}
| dmleontiev9000/AsicEditor | Cxx/cxxsource.cpp | C++ | mit | 53 |
# 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... | tracim/tracim-webdav | wsgidav/addons/tracim/sql_resources.py | Python | mit | 16,929 |
module Cardjour
module VERSION #:nodoc:
MAJOR = 0
MINOR = 1
TINY = 0
STRING = [MAJOR, MINOR, TINY].join('.')
end
end
| siuying/cardjour | pkg/cardjour-0.1.0/lib/cardjour/version.rb | Ruby | mit | 139 |
// 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... | lindexi/lindexi_gd | PresentationBuildTasksTest/WPF/PresentationBuildTasks/MS/Internal/BuildTasksAppContextSwitches.cs | C# | mit | 1,510 |
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... | cherniavskii/material-ui | docs/src/pages/demos/tabs/ScrollableTabsButtonPrevent.js | JavaScript | mit | 2,367 |
using System.Collections.Generic;
namespace Greg.Requests
{
public class PackageVersionUploadRequestBody : RequestBody
{
internal PackageVersionUploadRequestBody()
{
}
public PackageVersionUploadRequestBody(string name, string version, string description,
... | Benglin/GRegClientNET | src/GregClient/Requests/PackageVersionUploadRequestBody.cs | C# | mit | 2,001 |
package xsierra.digitguesser.drawer.pipeline;
import java.awt.image.BufferedImage;
public interface DigitPipeline {
/**
* @param image An image that contains a drawed digit
* @return the guessed digit, a number between 0 - 9
*/
byte imageGuessDigit(BufferedImage image);
}
| xaviersierra/digit-guesser | drawer/src/main/java/xsierra/digitguesser/drawer/pipeline/DigitPipeline.java | Java | mit | 299 |
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) {
... | connectim/Android | app/src/main/java/connect/view/HightEqWidthRounderImage.java | Java | mit | 759 |
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... | dmytro-bekuzarov/projectx-api | projectx-api-domain/src/main/java/com/sind/projectx/domain/food/menu/MenuSection.java | Java | mit | 890 |
/*
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... | Yujia-Xiao/Leetcode | List/Binary_Tree_Upside_Down.java | Java | mit | 1,805 |
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... | chso2/chso2.github.io | src/styles/shared.ts | TypeScript | mit | 8,265 |
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Terraria;
using TAPI;
namespace Avalon.Projectiles.FromPlayer.Explosions
{
/// <summary>
/// The Ichor Explosion.
/// </summary>
public sealed class IchorExplosion : ModProjectile
{
/// <... | Avalon-Team/Terraria-Avalon | Avalon/Projectiles/FromPlayer/Explosions/Ichor Explosion.cs | C# | mit | 1,177 |
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... | trashkalmar/MrParkingNavigator | src/ru/mail/parking/sw2/system/SwRegInfo.java | Java | mit | 2,177 |
/**
* ****************************************************************************
* 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... | PATRIC3/patric3_website | portal/patric-diseaseview/src/edu/vt/vbi/patric/portlets/DiseaseOverview.java | Java | mit | 7,388 |
/*****************************************************************************
* 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.
*
* @... | adamjcook/cs27500 | hw1/TestDrive.java | Java | mit | 2,807 |
#!/usr/bin/env ruby
require "pathname"
require_relative "testframework/testhelper"
require_relative "testframework/testenvironment"
require_relative "testframework/testdefinition"
require_relative "testframework/testoperator"
environment = TestEnvironment.new()
definition = TestDefinition.new()
pathname = Pathname.n... | embear/logger | test/test014.rb | Ruby | mit | 1,456 |
// 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... | cannoneyed/tmm-glare | src/core/notifications/index.js | JavaScript | mit | 1,447 |
<?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... | SSHVersionControl/git-web-client | app/src/VersionControl/GitlabIssueBundle/Entity/User.php | PHP | mit | 887 |
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... | jhowtan/frost-poetry-dh | scripts/watson.js | JavaScript | mit | 3,009 |
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>");
... | Pink401k/kyle.pink | app/quizzes/scripts.js | JavaScript | mit | 1,653 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="cmn" version="2.0">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Horuscoin Core</source>
<translation type="unfinished"/>
</message>
<message>
<locatio... | horuscoin/horuscoin | src/qt/locale/bitcoin_cmn.ts | TypeScript | mit | 131,056 |
<?php
if(isset($_POST['message']) && isset($_POST['name'])){
$handle = fopen('feedback.txt', 'a') or die('Could not open the file');
$from = $_POST['name'];
$time = date('m/d h:i:s');
$message = $_POST['message'];
$toWrite = "Message from: $from on $time:\r\n$message\r\n\r\n";
fwrite($handle, $t... | M-shin/homepage | tileslide/php/feedback.php | PHP | mit | 534 |
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... | rasmusjp/Merchello | src/Merchello.Web/Models/ContentEditing/Collections/EntityCollectionDisplay.cs | C# | mit | 3,983 |
# coding=utf-8
# Bootstrap installation of setuptools
from ez_setup import use_setuptools
use_setuptools()
import os
import sys
from fnmatch import fnmatchcase
from distutils.util import convert_path
from propane_distribution import cmdclassdict
from setuptools import setup, find_packages
from engineer import version... | tylerbutler/engineer | setup.py | Python | mit | 5,374 |
// -------------------------------------------------------
// Copyright (C) 施维串 版权所有。
// 创建标识:2013-11-11 10:53:36 Created by 施维串
// 功能说明:
// 注意事项:
//
// 更新记录:
// -------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace sh... | q120582371/gameserver | shiwch.util/ByteArrayEqualityComparer.cs | C# | mit | 2,062 |
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 ... | react-materialize/react-materialize | src/Modal.js | JavaScript | mit | 4,976 |
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... | EragonJ/Kaku | src/views/modules/KonamiCodeManager.js | JavaScript | mit | 988 |
class CharAttribute < ActiveRecord::Base
belongs_to :character
belongs_to :base_attribute
default_scope -> { order(base_attribute_id: :asc) }
end
| mbroadwater/shadowrun | app/models/char_attribute.rb | Ruby | mit | 152 |
'use strict';
describe('test search controller', function() {
beforeEach(module('mapTweetInfoApp'));
beforeEach(module('twitterSearchServices'));
beforeEach(module('latLngServices'));
describe('searchCtrl', function(){
var scope, ctrl, $httpBackend, $browser, $location;
beforeEach(inject(function(_$... | hartzis/MapTweet.Info | test/app/unit/controllers/searchControllerSpec.js | JavaScript | mit | 1,204 |
/**
*
* 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... | codenothing/CSSCompressor | lib/rules/Trailing Zeroes.js | JavaScript | mit | 1,115 |
<?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... | comexprt/swms | application/views/Request_Spares_Approved.php | PHP | mit | 16,009 |
// 文件上传
jQuery(function() {
var $ = jQuery,
$list = $('#thelist'),
$btn = $('#ctlBtn'),
state = 'pending',
// 优化retina, 在retina下这个值是2
ratio = window.devicePixelRatio || 1,
// 缩略图大小
thumbnailWidth = 100 * ratio,
thumbnailHeight = 100 * ratio,
up... | sxyx2008/rubyblog | public/webuploader/user-webuploader.js | JavaScript | mit | 3,416 |
/*
* Copyright 2001-2013 Aspose Pty Ltd. All Rights Reserved.
*
* This file is part of Aspose.Pdf. The source code in this file
* is only intended as a supplement to the documentation, and is provided
* "as is", without warranty of any kind, either expressed or implied.
*/
package programmersguide.workingwitha... | asposemarketplace/Aspose-Pdf-Java | src/programmersguide/workingwithasposepdfgenerator/workingwithtext/textformatting/inheritingtextformat/java/InheritingTextFormat.java | Java | mit | 751 |
'use strict';
module.exports = {
client: {
lib: {
// Load Angular-UI-Bootstrap module templates for these modules:
uibModuleTemplates: [
'modal',
'popover',
'progressbar',
'tabs',
'tooltip',
'typeahead'
],
css: [
'public/lib/fontello... | mleanos/trustroots | config/assets/default.js | JavaScript | mit | 8,669 |
using System;
using System.Collections.Generic;
namespace EventStreams.Projection {
using Core;
using EventHandling;
using Transformation;
public interface IProjector {
IEventSequenceTransformer Transformations { get; }
TModel Project<TModel>(IEnumerable<IStreamedEvent> ev... | nbevans/EventStreams | EventStreams/Projection/IProjector.cs | C# | mit | 590 |
(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... | aivoprykk/ilmcharts | src/js/docfix.js | JavaScript | mit | 3,683 |
<?php
/*
Safe sample
input : get the $_GET['userData'] in an array
sanitize : use of intval
construction : use of sprintf via a %u
*/
/*Copyright 2015 Bertrand STIVALET
Permission is hereby granted, without written agreement or royalty fee, to
use, copy, modify, and distribute this software and its documentation f... | designsecurity/progpilot | projects/tests/tests/vulntestsuite/CWE_89__array-GET__func_intval__multiple_select-sprintf_%u.php | PHP | mit | 1,651 |
import setupStore from 'dummy/tests/helpers/store';
import Ember from 'ember';
import {module, test} from 'qunit';
import DS from 'ember-data';
var env, store;
var attr = DS.attr;
var hasMany = DS.hasMany;
var belongsTo = DS.belongsTo;
var run = Ember.run;
var Post, Tag;
module("unit/many_array - DS.ManyArray", {
... | nickiaconis/data | tests/unit/many-array-test.js | JavaScript | mit | 3,924 |
using System.Threading;
using System.Threading.Tasks;
namespace FluentSpotifyApi.Builder.Me.Following
{
/// <summary>
/// The builder for "playlists/{playlistId}/followers" endpoint.
/// </summary>
public interface IFollowedPlaylistBuilder
{
/// <summary>
/// Adds the current user ... | dotnetfan/FluentSpotifyApi | src/FluentSpotifyApi/Builder/Me/Following/IFollowedPlaylistBuilder.cs | C# | mit | 1,776 |
<?php
// This file is generated by Composer
require_once 'vendor/autoload.php';
// Load .env file
Dotenv::load(__DIR__);
// Function to calculate the percentage
function percent($amount, $total) {
$countA = $amount / $total;
$countB = $countA * 100;
// Round number
$count = number_format($... | frdmn/frd.mn | parser.php | PHP | mit | 3,239 |
package org
import (
"fmt"
"strings"
"unicode"
"unicode/utf8"
)
// OrgWriter export an org document into pretty printed org document.
type OrgWriter struct {
ExtendingWriter Writer
TagsColumn int
strings.Builder
indent string
}
var emphasisOrgBorders = map[string][]string{
"_": []string{"_", "_"},
... | typeless/gitea | vendor/github.com/niklasfasching/go-org/org/org_writer.go | GO | mit | 8,133 |