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 |
|---|---|---|---|---|---|
var assert = require('assert')
var path = require('path')
var fs = require('fs-extra')
var sinon = require('sinon')
var broccoli = require('broccoli')
var Q = require('q')
var Filter = require('..')
describe('Filter', function() {
var ORIG_DIR = path.join(__dirname, 'files')
var DIR = path.join(__dirname, 'files-co... | sunflowerdeath/broccoli-glob-filter | tests/test.js | JavaScript | unlicense | 5,011 |
/**
*
* This is the "container" for global variables. I made it so we won't have to worry
* about "conflicts" with local variable names.
*
*/
var NFL_PICKS_GLOBAL = {
/**
* Here to store data from the server so we can hopefully load it once and then
* get to it whenever it's needed as we're dealing with o... | hhhayssh/nflpicks | src/main/webapp/javascript/nflpicks.js | JavaScript | unlicense | 78,271 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using PaperMarioBattleSystem.Extensions;
namespace PaperMarioBattleSystem
{
/// <summary>
/// The Timing Tutor Badge - teaches the timing of Stylish Moves by showing a "!" above the ch... | tdeeb/PaperMarioBattleSystem | PaperMarioBattleSystem/PaperMarioBattleSystem/Classes/Collectibles/Badges/TimingTutorBadge.cs | C# | unlicense | 1,310 |
# -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Brand'
db.create_table(u'automotive_brand', (
... | mscam/django-automotive | automotive/south_migrations/0001_initial.py | Python | unlicense | 2,513 |
<?php
namespace MattyG\Http;
class Response
{
/**
* @var int
*/
protected $responseCode;
/**
* @var array
*/
protected $headers;
/**
* @var array
*/
protected $rawHeaders;
/**
* @var bool
*/
protected $headersSent;
/**
* @var string
... | djmattyg007/MattyG.Http | src/Response.php | PHP | unlicense | 3,333 |
<?php
//Database.php
//require_once('config.php'); //Might add config file to pull this in from later
class Database
{
protected static $connection;
private function dbConnect()
{
$databaseName = 'lockeythings';
$serverName = 'localhost';
$databaseUser = 'lockey'... | drenzul/lockeythings | public_html/helperclasses/database.php | PHP | unlicense | 1,755 |
<?php
function getAssets($statName,$userID) {
include 'connect.php';
$conn = mysql_connect($dbhost,$dbuser,$dbpass)
or die ('Error connecting to mysql:');
mysql_select_db($dbname);
createIfNotExists($statName,$userID);
$query = sprintf("SELECT value FROM h_user_assets WHERE assets_id = (SELECT id FROM h_assets... | dvelle/The-hustle-game-on-facebook-c.2010 | hustle/hustle/test/estate.php | PHP | unlicense | 2,104 |
import React from 'react';
import Moment from 'moment';
import { Embed, Grid } from 'semantic-ui-react';
const VideoDetail = ({video}) => {
if (!video){
return <div>Loading...</div>;
}
const videoId = video.id.videoId;
const url = `https://www.youtube.com/embed/${videoId}`;
const pubTime = Moment(video.snippet... | suemcnab/react-youtube-pxn-open | src/components/video_detail.js | JavaScript | unlicense | 891 |
class MyClass:
'''This is the docstring for this class'''
def __init__(self):
# setup per-instance variables
self.x = 1
self.y = 2
self.z = 3
class MySecondClass:
'''This is the docstring for this second class'''
def __init__(self):
# setup per-instance varia... | dagostinelli/python-package-boilerplate | packagename/somemodule.py | Python | unlicense | 382 |
#%matplotlib inline
# All the imports
from __future__ import print_function, division
from math import *
import random
import sys
import matplotlib.pyplot as plt
# TODO 1: Enter your unity ID here
__author__ = "magoff2"
class O:
"""
Basic Class which
- Helps dynamic updates
- Pretty Prints
... | gbtimmon/ase16GBT | code/4/ga/magoff2.py | Python | unlicense | 8,088 |
"""
You get an array of numbers, return the sum of all of the positives ones.
Example [1,-4,7,12] => 1 + 7 + 12 = 20
Note: array may be empty, in this case return 0.
"""
def positive_sum(arr):
# Your code here
sum = 0
for number in arr:
if number > 0:
sum += number
return sum
| aadithpm/code-a-day | py/Sum Of Positive.py | Python | unlicense | 316 |
/**
* [★★★★]200. Number of Islands
* finish: 2016-12-06
* https://leetcode.com/problems/number-of-islands/
*/
/**
* @param {character[][]} grid
* @return {number}
*/
var numIslands = function (grid) {
var count = 0, i, j;
for (i = 0; i < grid.length; i++) {
for (j = 0; j < grid[i].length; j++) {... | wyf2learn/leetcode | problems/algorithms/200.number-of-islands.js | JavaScript | unlicense | 1,394 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication2
{
class Exam: IDateAndCopy
{
public String Name { get; set; }
public int Mark { get; set; }
public DateTime Date { get; set; }
publi... | PolyakovSergey95/OOP | Polyakov_17/prakt_1/Exam.cs | C# | unlicense | 867 |
/*
* Copyright 2015 the original author or authors.
*
* 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 applica... | yangboz/north-american-adventure | RushuMicroService/eip-rushucloud/src/main/java/com/rushucloud/eip/models/SimplePerson.java | Java | unlicense | 1,993 |
import React from 'react'
import {
List,
ListItem,
LiAction,
LiSecondary,
LiPrimary,
LiAvatar,
Checkbox,
Radio,
Switch,
Icon,
} from 'styled-mdl'
const demo = () => (
<List>
<ListItem>
<LiPrimary>
<LiAvatar>
<Icon name="person" />
</LiAvatar>
Bryan Cran... | isogon/styled-mdl-website | demos/lists/demos/avatarsAndControls.js | JavaScript | unlicense | 1,826 |
"""
Python bindings for GLFW.
"""
from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals
__author__ = 'Florian Rhiem (florian.rhiem@gmail.com)'
__copyright__ = 'Copyright (c) 2013-2016 Florian Rhiem'
__license__ = 'MIT'
__version__ = '1.3.1'
# By default (ERROR_... | ronhandler/gitroot | pyglfw/glfw.py | Python | unlicense | 77,583 |
#include "simpleWebSocket.h"
#ifndef DEPENDING
#include PROXYMSGS_PB_H
#endif
#include <map>
#include <pthread.h>
#include <unistd.h>
#include <fcntl.h>
#define DEBUG false
void *connection_thread(void*arg);
int main()
{
SimpleWebSocket::WebSocketServer srv(1081, INADDR_ANY, DEBUG);
if (srv.ok() == false)... | flipk/pfkutils | libWebAppServer/simpleWsTestServer.cc | C++ | unlicense | 3,939 |
var GamesList = React.createClass({
getInitialState: function() {
return {
games: this.props.initialGames
};
},
scoreChanged: function(gameId, teamNumber, score) {
var game = this.state.games.filter(function(game) {
return game.id == gameId;
})[0];
game['pool_entry_' + teamNumber + '_score'] = score;... | austinhaws/custom-bracket | public/js/views/bracket-round.js | JavaScript | unlicense | 2,838 |
var bcrypt = require('bcrypt-nodejs');
var crypto = require('crypto');
var mongoose = require('mongoose');
var userSchema = new mongoose.Schema({
email: { type: String, unique: true, lowercase: true },
password: String,
facebook: String,
twitter: String,
google: String,
github: String,
instagram: String... | guilhermeasg/outspeak | models/User.js | JavaScript | unlicense | 2,102 |
define([
'app',
'collections/tables',
'collections/connections',
'collections/rdf-entities',
'collections/rdf-attributes',
'models/connection',
'models/table',
'views/abstract/base',
'views/shared/message-dialog',
'views/editor/connection-form',
'views/editor/rdf-entity-list',
'views/editor/... | ilucin/relsem-bridge-frontend | app/views/editor/editor.js | JavaScript | unlicense | 9,433 |
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Helloworld {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in); // use the Scanner class to read from stdin
String inputString = scan.nextLine(); // read a li... | jerryasher/hackerrank30 | 0/Helloworld.java | Java | unlicense | 588 |
#include "Mesh.h"
#include "SyntopiaCore/Math/Vector3.h"
#include "../Logging/Logging.h"
using namespace SyntopiaCore::Logging;
using namespace SyntopiaCore::Math;
namespace SyntopiaCore {
namespace GLEngine {
Mesh::Mesh(SyntopiaCore::Math::Vector3f startBase,
SyntopiaCore::Math::Vector3... | mike10004/nbis-upstream | misc/nistmeshlab/meshlab/src/external/structuresynth/ssynth/SyntopiaCore/GLEngine/Mesh.cpp | C++ | unlicense | 4,001 |
package tasks;
import java.util.ArrayList;
import listeners.SuperMapListener;
import mapstuff.CartographersMap;
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.scheduler.BukkitRunnable;
import plugin.SuperMap;
publ... | GarrettCG/SuperMap | src/tasks/ConstantZoneCheck.java | Java | unlicense | 2,587 |
package crazypants.enderio.machine.farm;
import crazypants.enderio.config.Config;
import crazypants.enderio.machine.farm.farmers.*;
import net.minecraft.block.Block;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import cpw.mods.f... | Vexatos/EnderIO | src/main/java/crazypants/enderio/machine/farm/FarmersRegistry.java | Java | unlicense | 6,917 |
package com.ushaqi.zhuishushenqi.model;
import com.ushaqi.zhuishushenqi.api.ApiService;
import java.io.Serializable;
import java.util.Date;
public class UserInfo
implements Serializable
{
private static final long serialVersionUID = 2519451769850149545L;
private String _id;
private String avatar;
private Us... | clilystudio/NetBook | allsrc/com/ushaqi/zhuishushenqi/model/UserInfo.java | Java | unlicense | 3,520 |
#include "GameTextures.h"
#include <iostream>
GameTextures::GameTextures()
{
if (!_image.loadFromFile("assets/DungeonCrawl_ProjectUtumnoTileset.png"))
{
std::cout << "Error loading texture." << std::endl;
}
}
std::shared_ptr<sf::Texture> GameTextures::getTexture(std::string name, int x, int y)
{
std::cou... | UAF-CS372-Spring-2015/the-platformer | src/GameTextures.cpp | C++ | unlicense | 744 |
a = 'a|b|c|d|e'
b = a.split('|', 3)
print(b)
"""<
['a', 'b', 'c', 'd|e']
>"""
| pythonpatterns/patterns | p0081.py | Python | unlicense | 81 |
package Chap05;
/*
* ÀÛ¼ºÀÏÀÚ:2017_03_09
* ÀÛ¼ºÀÚ:±æ°æ¿Ï
* ThreeArrays ÀÌ¿ë
* ¿¹Á¦ 5-43
*/
public class StaticInitalizerExample2 {
public static void main(String[] args){
for(int cnt=0;cnt<10;cnt++){
System.out.println(ThreeArrays.arr3[cnt]);
}
}
}
| WALDOISCOMING/Java_Study | Java_BP/src/Chap05/StaticInitalizerExample2.java | Java | unlicense | 279 |
//==============================================================================
#include <hgeresource.h>
#include <hgefont.h>
#include <hgesprite.h>
#include <sqlite3.h>
#include <Database.h>
#include <Query.h>
#include <score.hpp>
#include <engine.hpp>
//------------------------------------------------... | jasonhutchens/thrust_harder | score.cpp | C++ | unlicense | 9,032 |
/*
* SmartGWT Mobile
* Copyright 2008 and beyond, Isomorphic Software, Inc.
*
* SmartGWT Mobile is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License version 3
* as published by the Free Software Foundation. SmartGWT Mobile is also
* available unde... | will-gilbert/SmartGWT-Mobile | mobile/src/main/java/com/smartgwt/mobile/client/widgets/tab/TabSet.java | Java | unlicense | 42,796 |
/**
*
*/
package com.rhcloud.zugospoint.DAO;
import java.util.List;
import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import com.rhcloud.zugospoint.model.*;
import com.rhcloud.zugospoint.util.HibernateUtil;
/**
* Klasa zawiera zbior niskopoziomowych metod... | zugoth/1314-adb | src/main/java/com/rhcloud/zugospoint/DAO/ApplicationDAO.java | Java | unlicense | 1,320 |
var User = {
title : 'Customer',
LoginTitleText : 'Register yourself'
}
module.exports = User; | thakurarun/Basic-nodejs-express-app | samplenode/samplenode/server/model/User.js | JavaScript | unlicense | 104 |
/*
* Copyright 2003-2005 Sun Microsystems, Inc. All rights reserved.
* SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package com.sun.tools.javac.code;
public enum BoundKind {
EXTENDS("? extends "),
SUPER("? super "),
UNBO... | dk00/old-stuff | csie/08design-patterns/src/com/sun/tools/javac/code/BoundKind.java | Java | unlicense | 473 |
// Demo for the template server
package main
import (
"database/sql"
"flag"
"fmt"
"html/template"
"log"
"net/http"
"os"
tmpl "../../go-net-http-tmpl"
_ "github.com/mattn/go-sqlite3"
)
var (
port = flag.String("http", ":6060", "Port to serve http on.")
templates = flag.String("templates", "./*.html",... | lvdlvd/go-net-http-tmpl | demo/main.go | GO | unlicense | 1,273 |
var path = require('path')
var fs = require('fs')
var crypto = require('crypto')
var dirmatch = require('dirmatch')
var _ = require('underscore')
var handlebars = require('handlebars')
var Filter = require('broccoli-glob-filter')
var makePartialName = function(partialPath) {
var name = partialPath
var ext = path.ex... | sunflowerdeath/broccoli-render-handlebars | index.js | JavaScript | unlicense | 2,724 |
package com.jeremybroutin.blogreader2;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.webkit.WebView;
import com.jeremybroutin.blogreader2.R;
public class BlogWebViewActivity extends ... | jeremybroutin/BlogReader | app/src/main/java/com/jeremybroutin/blogreader2/BlogWebViewActivity.java | Java | unlicense | 1,534 |
"""Values export object module."""
class Values(object):
"""Class for Values export object."""
name = None
document = None
def save(self, section, document, graphics=True):
"""Get intro."""
self.document = document
section = self.name
return document
def save_wit... | executive-consultants-of-los-angeles/rsum | rsum/export/sections/values.py | Python | unlicense | 498 |
var express = require('express'),
app = express();
app.use('/', express.static(__dirname + '/static'));
app.listen(process.env.PORT || 8080);
| Hardmath123/quackoverflow | index.js | JavaScript | unlicense | 147 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using System.Linq;
using System.Text;
using ToolGood.ReadyGo3.Gadget.Events;
using ToolGood.ReadyGo3.Gadget.Internals;
using ToolGood.ReadyGo3.Internals;
using ToolGood.ReadyGo3.PetaPoco;
u... | toolgood/ToolGood.ReadyGo | ToolGood.ReadyGo3/SqlHelper.cs | C# | apache-2.0 | 41,728 |
package org.ctnitchie.doclet.freemarker;
import java.io.IOException;
import java.util.Map;
import freemarker.core.Environment;
import freemarker.template.TemplateDirectiveBody;
import freemarker.template.TemplateDirectiveModel;
import freemarker.template.TemplateException;
import freemarker.template.TemplateModel;
@... | ctnitchie/freemarkerdoclet | src/main/java/org/ctnitchie/doclet/freemarker/EchoDirective.java | Java | apache-2.0 | 646 |
// Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University
// Copyright (c) 2011, 2012 Open Networking Foundation
// Copyright (c) 2012, 2013 Big Switch Networks, Inc.
// This library was generated by the LoxiGen Compiler.
// See the file LICENSE.txt which should have been included in the sour... | o3project/openflowj-otn | src/main/java/org/projectfloodlight/openflow/protocol/OFBsnDebugCounterDescStatsReply.java | Java | apache-2.0 | 2,321 |
package com.gdn.venice.server.app.fraud.presenter.commands;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import com.djarum.raf.utilities.Locator;
import com.gdn.venice.client.app.DataNameTokens;
import com.gdn.venice.facade.FrdParameterR... | yauritux/venice-legacy | Venice/Venice-Web/src/main/java/com/gdn/venice/server/app/fraud/presenter/commands/UpdateFraudParameterRule31DataCommand.java | Java | apache-2.0 | 2,763 |
package org.mcupdater.carnivora.render;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;
import net.minecraft.util.ResourceLocation;
import org.mcupdater.carnivora.Version;
public class ModelSmoker extends ModelBase {
public static Mod... | allaryin/Carnivora | src/main/java/org/mcupdater/carnivora/render/ModelSmoker.java | Java | apache-2.0 | 6,215 |
class CartsController < ApplicationController
before_action :set_cart, only: [:edit, :update]
# GET /carts
# GET /carts.json
def index
@carts = Cart.all
end
# GET /carts/1
# GET /carts/1.json
def show
begin
@cart = Cart.find(params[:id])
rescue ActiveRecord::RecordNotFound
logg... | LewisTao/depot | app/controllers/carts_controller.rb | Ruby | apache-2.0 | 2,122 |
//===--- FunctionOrder.cpp - Utility for function ordering ----------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | ben-ng/swift | lib/SILOptimizer/Analysis/FunctionOrder.cpp | C++ | apache-2.0 | 2,705 |
package io.github.eternalpro.model;
import com.jfinal.ext.plugin.tablebind.TableBind;
import com.jfinal.plugin.activerecord.Model;
import io.github.gefangshuai.wfinal.model.core.WModel;
import java.util.List;
/**
* Created by gefangshuai on 2015-05-18-0018.
*/
@TableBind(tableName = "sec_user", pkName = "id")
publ... | gefangshuai/baseFinal-noshiro | src/main/java/io/github/eternalpro/model/User.java | Java | apache-2.0 | 631 |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | jessemull/MicroFlex | src/main/java/com/github/jessemull/microflex/bigintegerflex/stat/InterquartileRangeBigInteger.java | Java | apache-2.0 | 6,309 |
// Copyright (c) rubicon IT GmbH, www.rubicon.eu
//
// See the NOTICE file distributed with this work for additional information
// regarding copyright ownership. rubicon licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may not use this
// file except in compliance with the Lic... | TITcs/TITcs.SharePoint | src/TITcs.SharePoint/Query/LinqProvider/Parsing/ExpressionTreeVisitors/SubQueryFindingExpressionTreeVisitor.cs | C# | apache-2.0 | 3,201 |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | hoge1e3/soyText | src/jp/tonyu/soytext2/servlet/Httpd.java | Java | apache-2.0 | 1,747 |
package com.huawei.esdk.uc.professional.local.impl.autogen;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.b... | eSDK/esdk_uc_native_java | source/esdk_uc_native_professional_java/src/main/java/com/huawei/esdk/uc/professional/local/impl/autogen/ModifyTalkMode.java | Java | apache-2.0 | 3,578 |
package se.uu.it.cs.recsys.ruleminer.util;
/*
* #%L
* CourseRecommenderRuleMiner
* %%
* Copyright (C) 2015 Yong Huang <yong.e.huang@gmail.com >
* %%
* 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 ... | yong-at-git/CourseRecommenderParent | CourseRecommenderRuleMiner/src/main/java/se/uu/it/cs/recsys/ruleminer/util/HeaderTableUtil.java | Java | apache-2.0 | 2,270 |
# -*- coding: utf-8 -*-
from dateutil.parser import parse
import json
import os
import yaml
import db_old
# TODO: This function is currently only used by the db.py module,
# imported from serving.py via sys.path modification. Due to the new
# sys.path content, db.py attempts to find the `yaml_load` function in
# thi... | verejnedigital/verejne.digital | obstaravania/utils.py | Python | apache-2.0 | 7,620 |
/*
* JBoss, Home of Professional Open Source
* Copyright 2012, Red Hat, Inc., and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fi... | weld/core | tests-arquillian/src/test/java/org/jboss/weld/tests/decorators/broken/FooDecorator.java | Java | apache-2.0 | 1,152 |
package main;
import view.Tienda;
import view.Principal;
import java.awt.Dimension;
import javax.swing.JFrame;
import javax.swing.UnsupportedLookAndFeelException;
/**
*
* @author Chema_class
*/
public class Main extends JFrame{
private Principal principal;
private Tienda tienda;
private Decorador... | Chemaclass/invaders | src/main/Main.java | Java | apache-2.0 | 2,315 |
/*
* Copyright 2017 Antti Nieminen
*
* 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 agreed to in w... | dimone-kun/cuba | modules/web-toolkit/src/com/haulmont/cuba/web/widgets/client/addons/aceeditor/SuggestPopup.java | Java | apache-2.0 | 7,560 |
/**
* ASM: a very small and fast Java bytecode manipulation framework
* Copyright (c) 2000-2011 INRIA, France Telecom
* All rights reserved.
* <p/>
* Redistribution and use in srccode and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistrib... | actframework/act-asm | src/main/java/act/asm/tree/IntInsnNode.java | Java | apache-2.0 | 3,081 |
package org.apache.maven.lifecycle.internal;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache... | sonatype/maven-demo | maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleExecutionPlanCalculator.java | Java | apache-2.0 | 2,629 |
<?php
/**
* 主题 upbond
*/
namespace app\themes\upbond;
use yii\web\AssetBundle;
/**
* @author zhanqu.im
*/
class ThemeAsset extends AssetBundle
{
const name = 'upbond';
const themeId = 'upbond';
public $sourcePath = '@app/themes/'.self::themeId.'/assets';
public $css = [
];
public $js ... | zhanqu/yii2adm | app/themes/upbond/ThemeAsset.php | PHP | apache-2.0 | 482 |
/*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | aws/aws-sdk-java | aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/ApplicationSettingsResource.java | Java | apache-2.0 | 20,385 |
# -*- coding: utf-8 -*-
"""
Created on Sun Sep 11 23:06:06 2016
@author: DIP
"""
from sklearn.feature_extraction.text import CountVectorizer, TfidfVectorizer
def build_feature_matrix(documents, feature_type='frequency',
ngram_range=(1, 1), min_df=0.0, max_df=1.0):
feature_type = featur... | dipanjanS/text-analytics-with-python | Old-First-Edition/Ch07_Semantic_and_Sentiment_Analysis/utils.py | Python | apache-2.0 | 3,381 |
/*
* Copyright WSO2 Inc.
*
* 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 agreed to i... | pubudu538/carbon-apimgt | components/apimgt/org.wso2.carbon.apimgt.gateway/src/main/java/org/wso2/carbon/apimgt/gateway/handlers/security/AuthenticationContext.java | Java | apache-2.0 | 5,431 |
# 2^15 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26.
#
# What is the sum of the digits of the number 2^1000?
puts (2**1000).to_s.chars.map(&:to_i).reduce(:+) | tyrone-sudeium/project-euler | ruby/0016.rb | Ruby | apache-2.0 | 174 |
// Copyright (C) 2017 Google Inc.
//
// 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 agreed t... | ek9852/gapid | core/app/run.go | GO | apache-2.0 | 4,928 |
package net.sf.yal10n.charset;
/*
* 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 agreed to in ... | adangel/yal10n | src/main/java/net/sf/yal10n/charset/UTF8BOM.java | Java | apache-2.0 | 5,421 |
package org.zstack.sdk.sns.platform.dingtalk;
import java.util.HashMap;
import java.util.Map;
import org.zstack.sdk.*;
public class CreateSNSDingTalkEndpointAction extends AbstractAction {
private static final HashMap<String, Parameter> parameterMap = new HashMap<>();
private static final HashMap<String, Pa... | camilesing/zstack | sdk/src/main/java/org/zstack/sdk/sns/platform/dingtalk/CreateSNSDingTalkEndpointAction.java | Java | apache-2.0 | 3,482 |
package org.metaborg.core.completion;
import java.io.Serializable;
public class Completion implements ICompletion, Serializable {
/**
* Serializable because it is necessary to pass an object as a String to Eclipse additional info menu
*/
private static final long serialVersionUID = 6960435974459583... | metaborg/spoofax | org.metaborg.core/src/main/java/org/metaborg/core/completion/Completion.java | Java | apache-2.0 | 4,484 |
/*******************************************************************************
* Copyright 2015 Maximilian Stark | Dakror <mail@dakror.de>
*
* 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... | Dakror/WebcamParser | src/de/dakror/webcamparser/EBookReader.java | Java | apache-2.0 | 2,948 |
package com.guanshuwei.smartstick.data;
import java.util.Calendar;
import java.util.Locale;
import java.util.Vector;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.DatabaseUtils;
import android.database.sqlite.SQLiteDatabase;
import androi... | richarddan/SmartStick | src/com/guanshuwei/smartstick/data/HistoryDatabase.java | Java | apache-2.0 | 17,431 |
package org.tourgune.apptrack.bean;
/**
* AppTrack
*
* Created by CICtourGUNE on 10/04/13.
* Copyright (c) 2013 CICtourGUNE. All rights reserved.
*
* Bean de la tabla variables de la base de datos
*/
public class Variable {
private int idvariable;
private int idaplicacion;
private int idtipo;
private St... | cictourgune/EmocionometroWeb | src/org/tourgune/apptrack/bean/Variable.java | Java | apache-2.0 | 2,054 |
/*
* Copyright 2020 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | googleapis/java-dialogflow | proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntityTypesResponse.java | Java | apache-2.0 | 33,021 |
# Copyright 2012 OpenStack Foundation.
# Copyright 2015 Hewlett-Packard Development Company, L.P.
# Copyright 2017 FUJITSU LIMITED
# 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... | openstack/python-neutronclient | neutronclient/v2_0/client.py | Python | apache-2.0 | 115,185 |
var currPageIndex = 0;
app.initialize();
$(document).ready(function () {
//$('.appV').html('v1.17');
//onDocumentReady();
setMenu();
toggleMenu();
});
function onDocumentReady() {
SetPagesList();
setBackground();
runPinchzoom();
turnPages(currPageIndex);
setPep();
//chan... | Webnology-/cookbook2013VeryLast | www/js/javascript.js | JavaScript | apache-2.0 | 18,944 |
/*
* Copyright (c) 2021 Citrix Systems, Inc.
*
* 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 ... | citrix/terraform-provider-netscaler | vendor/github.com/citrix/adc-nitro-go/resource/config/vpn/vpnglobal_authenticationsamlpolicy_binding.go | GO | apache-2.0 | 2,162 |
/*
* Copyright (C) 2012 Andrew Neal 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 agreed to in writing, ... | i25ffz/spollo | src/com/spollo/player/menu/DeleteDialog.java | Java | apache-2.0 | 4,090 |
package com.introproventures.graphql.jpa.query.converter.model;
import java.util.Date;
import java.util.Objects;
import javax.persistence.Column;
import javax.persistence.Convert;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Ma... | introproventures/graphql-jpa-query | graphql-jpa-query-schema/src/test/java/com/introproventures/graphql/jpa/query/converter/model/AbstractVariableEntity.java | Java | apache-2.0 | 4,011 |
"""
Copyright 2017 Deepgram
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 agreed to in writing, software
distri... | deepgram/kur | tests/examples/modkurfile.py | Python | apache-2.0 | 1,380 |
#region Copyright
/*Copyright (C) 2015 Konstantin Udilovich
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 applicab... | Kodestruct/Kodestruct.Dynamo | Kodestruct.Dynamo.UI/Nodes/Loads/ASCE7/Lateral/Wind/WindFace.cs | C# | apache-2.0 | 4,968 |
export { default } from 'ember-table-filterable/components/table-filterable'; | clairton/ember-table-filterable | app/components/table-filterable.js | JavaScript | apache-2.0 | 77 |
package org.hitzoft.xml;
/**
*
* @author jesus.espinoza
*/
public enum SignatureMethodAlgorithm {
DSA_SHA1("http://www.w3.org/2000/09/xmldsig#dsa-sha1"),
DSA_SHA256("http://www.w3.org/2009/xmldsig11#dsa-sha256"),
RSA_SHA1("http://www.w3.org/2000/09/xmldsig#rsa-sha1"),
RSA_SHA256("htt... | Chuy288/simple-xml-signer | src/main/java/org/hitzoft/xml/SignatureMethodAlgorithm.java | Java | apache-2.0 | 945 |
import endsWith from 'lodash/endsWith';
import startsWith from 'lodash/startsWith';
import trim from 'lodash/trim';
const VALID_SLUG_PATTERN = /^([a-z0-9]-?)*[a-z0-9]$/;
const VALID_DATED_SLUG_PATTERN = /^([a-z0-9-]|[a-z0-9-][a-z0-9-/]*[a-z0-9-])$/;
/**
* Returns true if the provided value is a slug.
*
* @param {s... | gdbots/common-js | src/isValidSlug.js | JavaScript | apache-2.0 | 767 |
package main
import (
"fmt"
"reflect"
)
var (
Int reflect.Type = reflect.TypeOf(0)
String reflect.Type = reflect.TypeOf("")
)
// 可从基本类型获取所对应复合类型。
func main() {
var c reflect.Type
c = reflect.ChanOf(reflect.SendDir, String)
fmt.Println(c)
m := reflect.MapOf(String, Int)
fmt.Println(m)
s := reflect.SliceO... | Anteoy/gtools | test/base/note/reflect/type/base-recombination/main.go | GO | apache-2.0 | 611 |
using System.ComponentModel;
#pragma warning disable 0067
namespace OQF.CommonUiElements.Info.Pages.PageViewModels.TournamentInfoPage
{
internal class TournamentInfoPageViewModelSampleData : ITournamentInfoPageViewModel
{
public event PropertyChangedEventHandler PropertyChanged;
public void Dispose() { }
... | bytePassion/OpenQuoridorFramework | OpenQuoridorFramework/OQF.CommonUiElements/Info/Pages/PageViewModels/TournamentInfoPage/TournamentInfoPageViewModelSampleData.cs | C# | apache-2.0 | 366 |
// Copyright Eagle Legacy Modernization, 2010-date
// Original author: Steven A. O'Hara, Dec 17, 2010
package com.eagle.programmar.Java.Terminals;
import com.eagle.tokens.TerminalPunctuationToken;
public class Java_Punctuation extends TerminalPunctuationToken
{
// Need default constructor for reading from the XML f... | oharasteve/eagle | src/com/eagle/programmar/Java/Terminals/Java_Punctuation.java | Java | apache-2.0 | 495 |
package com.example.cmmdyweather.gson;
import com.google.gson.annotations.SerializedName;
/**
* Created by 夏夜晚凤 on 2017/2/14.
*/
public class Basic {
@SerializedName("city")
public String cityName;
@SerializedName("id")
public String weatherId;
public Update update;
public class Update{
... | cmmdy/cmmdyweather | app/src/main/java/com/example/cmmdyweather/gson/Basic.java | Java | apache-2.0 | 402 |
// Copyright © Microsoft Open Technologies, Inc.
//
// 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
//
// THIS CODE... | w9jds/azure-activedirectory-library-for-android | src/src/com/microsoft/aad/adal/AuthenticationCancelError.java | Java | apache-2.0 | 1,266 |
/*
* Copyright 2017 MovingBlocks
*
* 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 agreed to in ... | Sigma-One/DestinationSol | engine/src/main/java/org/destinationsol/game/input/BigObjAvoider.java | Java | apache-2.0 | 2,268 |
package com.hsj.egameserver.server;
public class Crypt {
private static Crypt _instance = null;
private synchronized static void createInstance() {
if (_instance == null) {
_instance = new Crypt();
}
}
public static Crypt getInstance() {
if (_instance == null) {
... | woshihuo12/evilbonefun | egameserver/src/main/java/com/hsj/egameserver/server/Crypt.java | Java | apache-2.0 | 931 |
package info.izumin.android.bletia.core.action;
import info.izumin.android.bletia.core.BleState;
import info.izumin.android.bletia.core.BletiaException;
import info.izumin.android.bletia.core.ResolveStrategy;
import info.izumin.android.bletia.core.StateContainer;
import info.izumin.android.bletia.core.wrapper.Bluetoot... | izumin5210/Bletia | bletia-core/src/main/java/info/izumin/android/bletia/core/action/AbstractDisconnectAction.java | Java | apache-2.0 | 1,026 |
package com.labo.kaji.relativepopupwindow;
import android.annotation.TargetApi;
import android.content.Context;
import android.os.Build;
import android.support.annotation.IntDef;
import android.support.annotation.NonNull;
import android.support.v4.widget.PopupWindowCompat;
import android.util.AttributeSet;
import andr... | weiwenqiang/GitHub | Dialog/PopupWindow/RelativePopupWindow-master/relativepopupwindow/src/main/java/com/labo/kaji/relativepopupwindow/RelativePopupWindow.java | Java | apache-2.0 | 6,819 |
/*
* Copyright 2015 NEC Corporation.
*
* 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 agreed ... | y-higuchi/odenos | src/main/java/org/o3project/odenos/core/component/network/topology/Port.java | Java | apache-2.0 | 7,900 |
// Copyright 2019 Google LLC
//
// 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 agreed to in w... | googleads/googleads-dotnet-lib | examples/AdManager/CSharp/v202111/CreativeService/CreateCustomCreative.cs | C# | apache-2.0 | 5,069 |
<?php
namespace Atompulse\Bundle\FusionBundle\Assets\Refiner;
/**
* Class SimpleRefiner
* @package Atompulse\Bundle\FusionBundle\Compiler\Refiner
*
* @author Petru Cojocar <petru.cojocar@gmail.com>
*/
class SimpleRefiner implements RefinerInterface
{
/**
* Very basic content optimizer
* @param strin... | atompulse/atompulse | src/Atompulse/Bundle/FusionBundle/Assets/Refiner/SimpleRefiner.php | PHP | apache-2.0 | 1,051 |
/**
* Copyright 2014 Shape Security, Inc.
*
* 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 a... | shapesecurity/shift-parser-js | src/tokenizer.js | JavaScript | apache-2.0 | 46,755 |
import {Component, Inject, ElementRef} from '@angular/core';
import {SlideCommon} from '../../slideCommon/slideCommon';
import {Editor} from '../../../editor/editor';
import {EditorTab} from '../../../editorTab/editorTab';
import {HOST_SLIDE_CONTAINER_CLASS} from '../../../../services/constants';
@Component({
sele... | worldline/TrainingJEEAngular | trainingapp/src/components/slides/preamble/fwksCompare2/fwksCompare2.ts | TypeScript | apache-2.0 | 696 |
/*
* Copyright 2019 Google Inc.
*
* 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 agreed to ... | firebase/firebase-admin-java | src/main/java/com/google/firebase/messaging/internal/package-info.java | Java | apache-2.0 | 661 |
package org.larsworks.bitcoin.app.core.notifications;
import org.larsworks.bitcoin.app.core.notifications.conditions.Condition;
/**
* @author Lars Kleen
* @since 0.0.1
* Date: 01.02.14
* Time: 13:32
*/
public interface NotificationEngine<T> {
void addCondition(Condition<T> conditio... | lkleen/bitcoin-app | core/src/main/java/org/larsworks/bitcoin/app/core/notifications/NotificationEngine.java | Java | apache-2.0 | 405 |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using SystemEx.Windows.Forms;
using WastedgeQuerier.Util;
namespace Wasted... | wastedge/wastedge-querier | WastedgeQuerier/JavaScript/NewProjectForm.cs | C# | apache-2.0 | 2,391 |
Rails.application.routes.draw do
devise_for :users, :controllers => { registrations: 'registrations' }
get "/profiles/search" => "profiles#search"
resources :profiles
resources :forums do
resources :posts
end
resources :posts, only: [] do
resources :comments
end
# The priority is based u... | julianche/ixalumninew | config/routes.rb | Ruby | apache-2.0 | 1,895 |
// Copyright 2021 Google LLC
//
// 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 agreed to in writi... | googleads/googleads-java-lib | modules/dfp_appengine/src/main/java/com/google/api/ads/admanager/jaxws/v202105/RequiredCollectionErrorReason.java | Java | apache-2.0 | 2,070 |
package publish
import (
"bytes"
"sync"
"github.com/drausin/libri/libri/common/ecid"
"github.com/drausin/libri/libri/common/id"
"github.com/drausin/libri/libri/common/storage"
"github.com/drausin/libri/libri/librarian/api"
"github.com/drausin/libri/libri/librarian/client"
lclient "github.com/drausin/libri/lib... | drausin/libri | libri/author/io/publish/acquirer.go | GO | apache-2.0 | 4,183 |