code stringlengths 3 1.01M | repo_name stringlengths 5 116 | path stringlengths 3 311 | language stringclasses 30
values | license stringclasses 15
values | size int64 3 1.01M |
|---|---|---|---|---|---|
using eCommerceSoa.DataAccess.Contract;
namespace eCommerceSoa.DataAccess
{
public class Repository<T> : IRepository<T> where T : IEntity
{
private readonly ICommandHandler _requestHandler;
private readonly IUnitOfWork _unitOfWork;
public Repository(ICommandHandler requestHan... | nazeemkhan77/eCommerceSoa | eCommerceSoa/DataAccess/Repository.cs | C# | apache-2.0 | 1,045 |
# Copyright 2016-2018 Michael Peters
#
# 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... | opiethehokie/march-madness-predictions | ml/util.py | Python | apache-2.0 | 1,932 |
/*
* Copyright 2013 Monoscape
*
* 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... | monoscape/monoscape | Monoscape.NodeController.Api/Services/ApplicationGrid/Model/NcAddApplicationRequest.cs | C# | apache-2.0 | 1,212 |
package heng.shi.controller;
import heng.shi.entity.User;
import heng.shi.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.a... | Pabears/happy-reading-happy-writing | src/main/java/heng/shi/controller/UserController.java | Java | apache-2.0 | 911 |
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
<title>PHPXRef 0.7.1 : Unnamed Project : Variable Reference: $step</title>
<link rel="stylesheet" href="../sample.css" type="text/css">
<link rel="stylesheet" href="../sample-print.css" t... | inputx/code-ref-doc | rebbit/_variables/step.html | HTML | apache-2.0 | 12,278 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | sintefneodroid/droid | docs/cvs/_i_has_byte_array_8cs.html | HTML | apache-2.0 | 5,241 |
package org.jetbrains.plugins.scala.traceLogViewer.selection
import java.util.concurrent.atomic.AtomicReference
import java.util.{Timer, TimerTask}
import scala.concurrent.duration.Duration
/**
* Executes scheduled tasks.
*
* If a task is scheduled while there is another scheduled task,
* the earlier task will NO... | JetBrains/intellij-scala | scala/traceLogViewer/src/org/jetbrains/plugins/scala/traceLogViewer/selection/LastTaskTimer.scala | Scala | apache-2.0 | 744 |
---
layout: "docs_api"
version: "1.3.3"
versionHref: "/docs/v1"
path: "api/directive/ionPane/"
title: "ion-pane"
header_sub_title: "Directive in module ionic"
doc: "ionPane"
docType: "directive"
---
<div class="improve-docs">
<a href='https://github.com/ionic-team/ionic-v1/blob/master/js/angular/directive/pane.js#L2'... | driftyco/ionic-site | content/docs/v1/api/directive/ionPane/index.md | Markdown | apache-2.0 | 698 |
// Copyright 2015 The Bazel 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 appl... | Asana/bazel | src/main/java/com/google/devtools/build/lib/worker/WorkerSpawnStrategy.java | Java | apache-2.0 | 17,363 |
class PostsController < ApplicationController
before_action :set_post, only: [:show, :edit, :update, :destroy]
load_and_authorize_resource
# GET /posts
# GET /posts.json
def index
if params[:user_id]== nil and params[:project_id]==nil and current_user.admin?
@posts = Post.all
elsif params[:user... | Someluck/ProjectAccountingSystem | accounting_system/app/controllers/posts_controller.rb | Ruby | apache-2.0 | 2,237 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_45) on Thu Mar 26 16:48:33 UTC 2015 -->
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
com.hazelcast.ascii Class Hierarc... | akiskip/KoDeMat-Collaboration-Platform-Application | KoDeMat_TouchScreen/lib/hazelcast-3.4.2/hazelcast-3.4.2/docs/javadoc/com/hazelcast/ascii/package-tree.html | HTML | apache-2.0 | 10,532 |
package dao
import (
"context"
"crypto/hmac"
"crypto/sha1"
"encoding/base64"
"errors"
"fmt"
"hash"
"net/http"
"strconv"
"strings"
"time"
"go-common/library/log"
"go-common/library/net/trace"
)
const (
_uploadURL = "/%s"
_family = "http_client"
_template = "%s\n%s\n\n%d\n"
_method = "PUT"
_fi... | LQJJ/demo | 126-go-common-master/app/interface/main/web/dao/bfs.go | GO | apache-2.0 | 2,315 |
/* Yukon Admin all functions
*
* Content:
*
* 1. Helpers
* 2. Common functions
* 3. Plugins
*
* */
$(function () {
// bootstrap custom functions
yukon_bs_custom.accordion_active_class();
yukon_bs_custom.dropdown_click();
yukon_bs_custom.tooltips_init();
yukon_bs_cust... | ubiquitous-computing-lab/Mining-Minds | supporting-layer/descriptive-analytics/src/assets/js/yukon_all.js | JavaScript | apache-2.0 | 89,162 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_151) on Mon Jun 22 05:15:26 MST 2020 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>org.wildfly.swarm.config.me... | wildfly-swarm/wildfly-swarm-javadocs | 2.7.1.Final-SNAPSHOT/apidocs/org/wildfly/swarm/config/messaging/activemq/server/ha_policy/replication_colocated/package-tree.html | HTML | apache-2.0 | 8,400 |
// Copyright 2009-2017 Brad Sokol
//
// 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 ... | bradsokol/iphonefieldtools | src/Classes/MainViewController.h | C | apache-2.0 | 2,625 |
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Protocol](./puppeteer.protocol.md) > [Input](./puppeteer.protocol.input.md) > [SynthesizePinchGestureRequest](./puppeteer.protocol.input.synthesizepinchgesturerequest.md) &... | GoogleChrome/puppeteer | new-docs/puppeteer.protocol.input.synthesizepinchgesturerequest.y.md | Markdown | apache-2.0 | 568 |
package org.wordcounthbase;
import java.io.File;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
public class DirectoryScanner {
public static List<File> getFileList(String directoryPath) {
List<File> fileList = new ArrayList<File>();
addTree(new File(directoryPath... | arks-api/arks-api | modules-samples/wordcount-hbase/src/org/wordcounthbase/DirectoryScanner.java | Java | apache-2.0 | 651 |
/**
* 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... | afs/jena-reports | src/dev/ElementTransformCleanGroups.java | Java | apache-2.0 | 6,396 |
#include<iostream>
#include<cstdlib>
using namespace std;
class MyType
{
public :
int value;
MyType(int i);
int compare(MyType y);
};
MyType::MyType(int i)//¹¹Ô캯Êý
{
this->value = i ;
}
int MyType::compare(MyType y)
{
if(value > y.value)
return 1;
else
return -1;
}
MyType max(MyType x, MyType y)
{
if(x.com... | WeAreChampion/notes | c/template/类模板.cpp | C++ | apache-2.0 | 1,106 |
<?php
namespace app\user\controller;
use cmf\controller\UserBaseController;
use think\Db;
class IndexController extends UserBaseController
{
// 前台用户首页 (公开)
public function index()
{
$id = input("get.id", 0, 'intval');
$users_model = Db::name("User");
$user = $users_model->where... | txterm/txsprider | app/user/controller/IndexController.php | PHP | apache-2.0 | 1,212 |
package egovframework.com.sts.bst.service;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
/**
* 게시물 통계 집계를 위한 스케줄링 클래스
* @author 공통서비스 개발팀 박지욱
* @since 2009.04.16
* @version 1.0
* @see
*
* <pre>
* << 개정이력(Modification Information) >>
*
* 수정일 수정자 ... | dasomel/egovframework | common-component/v2.3.2/src/main/java/egovframework/com/sts/bst/service/EgovBbsStatsScheduling.java | Java | apache-2.0 | 1,036 |
<!DOCTYPE html>
<html>
<head>
<link href="js/bootstrap.min.css" rel="stylesheet"type="text/css">
<link href="css/moncss.css" rel="stylesheet"type="text/css">
<script type="text/javascript" src="js/jquery-3.1.1.min.js"> </script>
<script type="text/javascript" src="js/typeahead.min.js"></script>
<script type="text/... | Ophelle/PDL | pcms/List_of_AMD_graphics_processing_units_12.pcm.html | HTML | apache-2.0 | 6,183 |
<?php
namespace lb\components;
use lb\BaseClass;
class Pagination extends BaseClass
{
public static function getParams($total, $page_size, $page = 1)
{
$pageTotal = ceil($total / $page_size);
$offset = ($page - 1) * $page_size;
if ($page != $pageTotal) {
$limit = $page_siz... | luoxiaojun1992/lb_framework | components/Pagination.php | PHP | apache-2.0 | 449 |
package com.bq.corbel.iam.service;
import java.util.List;
import org.springframework.dao.DataIntegrityViolationException;
import com.bq.corbel.iam.exception.DuplicatedOauthServiceIdentityException;
import com.bq.corbel.iam.exception.IdentityAlreadyExistsException;
import com.bq.corbel.iam.model.Identity;
import com.... | bq/corbel | iam/src/main/java/com/bq/corbel/iam/service/DefaultIdentityService.java | Java | apache-2.0 | 1,605 |
package apycazo.codex.testing.spring;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
@Slf4j
@Service
public class SpringService {
private final SpringComponent component;
public SpringService(SpringComponent component) {
this.component = component;
}
public void init()... | apycazo/codex | codex-testing/src/main/java/apycazo/codex/testing/spring/SpringService.java | Java | apache-2.0 | 537 |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------... | Alachisoft/NCache | Src/NCCommon/Protobuf/GetCacheBindingResponse.cs | C# | apache-2.0 | 1,919 |
import sys
import numpy as np
from normalization import tokenize
from helpers import ahash
class KerasVectorizer():
'''
Convert list of documents to numpy array for input into Keras model
'''
def __init__(self, n_features=100000, maxlen=None, maxper=100, hash_function=ahash):
self.maxlen = ... | gophronesis/smlib | smlib/keras_vectorizer.py | Python | apache-2.0 | 2,229 |
/*
* Copyright (C) 2017-2019 Dremio 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 l... | dremio/dremio-oss | sabot/kernel/src/test/java/com/dremio/exec/store/TestAffinityCalculator.java | Java | apache-2.0 | 2,516 |
#
# Cookbook Name:: my-company
# Recipe:: default
#
# Copyright 2014, YOUR_COMPANY_NAME
#
# All rights reserved - Do Not Redistribute
#
| gd1e/chef-repo | cookbooks/my-company/recipes/default.rb | Ruby | apache-2.0 | 136 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_45) on Fri Nov 14 23:56:06 UTC 2014 -->
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
Uses of Class org.apache.hadoop.l... | hsh075623201/hadoop | share/doc/hadoop/hadoop-hdfs-httpfs/apidocs/org/apache/hadoop/lib/service/hadoop/class-use/FileSystemAccessService.html | HTML | apache-2.0 | 6,466 |
// 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | google/tink | go/proto/jwt_hmac_go_proto/jwt_hmac.pb.go | GO | apache-2.0 | 15,201 |
using org.ohdsi.cdm.framework.common.Builder;
using org.ohdsi.cdm.framework.common.Omop;
using System;
using System.Collections.Generic;
using System.Data;
namespace org.ohdsi.cdm.framework.common.DataReaders.v6
{
public class DeviceExposureDataReader : IDataReader
{
private readonly IEnumerator<Devic... | OHDSI/ETL-CDMBuilder | source/org.ohdsi.cdm.framework.common/DataReaders/v6/DeviceExposureDataReader.cs | C# | apache-2.0 | 8,642 |
/* 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
* distribut... | yvoswillens/flowable-engine | modules/flowable-rest/src/test/java/org/flowable/rest/service/api/runtime/ProcessInstanceDiagramResourceTest.java | Java | apache-2.0 | 2,517 |
# Changelog
[npm history][1]
[1]: https://www.npmjs.com/package/@justinbeckwith/sloth?activeTab=versions
## [6.6.0](https://github.com/googleapis/sloth/compare/v6.5.1...v6.6.0) (2022-02-16)
### Features
* update in scope services ([#1038](https://github.com/googleapis/sloth/issues/1038)) ([f24f064](https://github... | googleapis/sloth | CHANGELOG.md | Markdown | apache-2.0 | 89,212 |
package org.slc.sli.context;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
im... | inbloom/datastore-portal | portlets/headerfooter-portlet/docroot/WEB-INF/src/org/slc/sli/context/HTTPRequestFilter.java | Java | apache-2.0 | 1,461 |
package dh.algorithms.classification.kmeans;
import dh.algorithms.classification.ClassificationModel;
import dh.data.column.special.NominalDataColumn;
import dh.repository.Table;
public class KMeansModel extends ClassificationModel {
private static final long serialVersionUID = 1L;
String[] columnNames;
boolean... | gabormakrai/datahammer | src/dh/algorithms/classification/kmeans/KMeansModel.java | Java | apache-2.0 | 2,368 |
#noti_Container {
position:relative;
}
/* A CIRCLE LIKE BUTTON IN THE TOP MENU. */
#noti_Button {
width:43px;
height:43px;
line-height:77px;
-moz-border-radius:50%;
-webkit-border-radius:50%;
/*background:#FFF;*/
backgroun... | Ruke45/DManagement | DSCMS/DSCMS/css/notification.css | CSS | apache-2.0 | 2,893 |
/**
* Copyright 2017 The AMP HTML 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 require... | google/amp-toolbox | optimizer/demo/simple/index.js | JavaScript | apache-2.0 | 3,789 |
import * as utils from 'src/utils';
import * as url from 'src/url';
import {registerBidder} from 'src/adapters/bidderFactory';
import {NATIVE, VIDEO} from 'src/mediaTypes';
/**
* Adapter for requesting bids from adxcg.net
* updated to latest prebid repo on 2017.10.20
*/
const BIDDER_CODE = 'adxcg';
const SUPPORTED... | atomx/Prebid.js | modules/adxcgBidAdapter.js | JavaScript | apache-2.0 | 4,925 |
var nearby = function(){
navigator.geolocation.getCurrentPosition(
// success
highlight
// error
,function(position){
console.log('Error occurred. Error code: ' + error.code);
}
);
}
var highlight = function(currentPosition, types){
if (!types)
types = ['car_dealer', 'car_rental', 'c... | tiefenauer/dudewheresmycar | app/scripts/nearby.js | JavaScript | apache-2.0 | 1,280 |
# encoding: UTF-8
#
# Cookbook Name:: system
# Resource:: environment
#
# Copyright 2012-2015, Chris Fordham
#
# 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/lice... | crossroads/system | resources/environment.rb | Ruby | apache-2.0 | 889 |
package mesosphere.marathon
package api.v2
import javax.inject.Inject
import javax.servlet.http.HttpServletRequest
import javax.ws.rs._
import javax.ws.rs.container.{AsyncResponse, Suspended}
import javax.ws.rs.core.{Context, MediaType}
import mesosphere.marathon.api.EndpointsHelper.ListTasks
import mesosphere.maratho... | gsantovena/marathon | src/main/scala/mesosphere/marathon/api/v2/AppTasksResource.scala | Scala | apache-2.0 | 7,265 |
/*
* Copyright (c) 2017 by the original author
*
* 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... | powertac/powertac-server | genco/src/test/java/org/powertac/genco/MisoBuyerTest.java | Java | apache-2.0 | 10,945 |
/*jslint node:true, browser:true */
'use strict';
/*
Copyright 2015 Enigma Marketing Services Limited
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/li... | getlackey/framework | make-title.js | JavaScript | apache-2.0 | 715 |
# Exception View Strategy
The base Cornerstone module registers the "View\Http\ExceptionStrategy" for handling
the unhandled Exceptions before Zend gets its grubby paws on it and swallows it
whole. It uses the "Default\Logger" service to write those exceptions to Syslog
by default, but the service can be replaced for o... | web-masons/Cornerstone | doc/view-strategies/exception-view-strategy.md | Markdown | apache-2.0 | 339 |
<?php
/*
* Copyright (C) 2015 Alefe Souza <contato@alefesouza.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 the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... | alefesouza/schoolapp-backend | backend/schoolapp/rebua/painel/corrigir/agenda.php | PHP | apache-2.0 | 3,516 |
/*
* =============================================================================
*
* Copyright (c) 2011-2016, The THYMELEAF team (http://www.thymeleaf.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ... | thymeleaf/thymeleaf-tests | src/test/java/org/thymeleaf/templateengine/conversion/conversion1/TestStandardConversionService1.java | Java | apache-2.0 | 1,379 |
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
int __attribute__((naked)) sub(int a, int b) {
__asm__("sub r0, r0, r1 \n"
"bx lr \n");
}
int add(int a, int b) { return a + b; }
int sum(int count, ...) {
int ret = 0;
va_list args;
va_start(args, co... | Samsung/ADBI | idk/tests/args.c | C | apache-2.0 | 554 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
from ansible.module_utils.basic import AnsibleModule
import git
import itertools
import multiprocessing
import os
import signal
import time
DOCUMENTATION = """
---
module: git_requirements
short_description: Module to run a multithreaded git clone
options:
repo_info:
d... | stackforge/os-ansible-deployment | playbooks/library/git_requirements.py | Python | apache-2.0 | 10,270 |
/* global error:false */
/* global done:false */
/* global PaymentRequest:false */
/**
* Updates details based on shipping address.
* @param {object} details - The details to update.
* @param {ShippingAddress} addr - The shipping address.
* @return {object} The updated details.
*/
function updateDetails(details, ... | rsolomakhin/rsolomakhin.github.io | 52/pr/us/pr.js | JavaScript | apache-2.0 | 3,278 |
package guetzli_patapon
// kDCTMatrix[8*u+x] = 0.5*alpha(u)*cos((2*x+1)*u*M_PI/16),
// where alpha(0) = 1/sqrt(2) and alpha(u) = 1 for u > 0.
var kDCTMatrix = [64]float64{
0.3535533906, 0.3535533906, 0.3535533906, 0.3535533906,
0.3535533906, 0.3535533906, 0.3535533906, 0.3535533906,
0.4903926402, 0.4157348062, 0.27... | Ripounet/guetzli-patapon | dct_double.go | GO | apache-2.0 | 1,918 |
package com.jongsoft.harvester.query.neo4j;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.jongsoft.harvester.query.NotOperator;
import com.jongsoft.harvester.query.Operation;
/**
*
* @author gerben
*/
@JsonTypeName(value = "not")
public class... | gjong/web-harvester | repository/src/main/java/com/jongsoft/harvester/query/neo4j/Neo4jNotOperator.java | Java | apache-2.0 | 736 |
////////////////////////////////////////////////////////////////////////////
// Module : script_fmatrix_script.cpp
// Created : 28.06.2004
// Modified : 28.06.2004
// Author : Dmitriy Iassenev
// Description : Script float matrix script export
//////////////////////////////////////////////////////////////////////... | OLR-xray/OLR-3.0 | src/xray/xr_3da/xrGame/script_fmatrix_script.cpp | C++ | apache-2.0 | 8,832 |
# AUTOGENERATED FILE
FROM balenalib/hummingboard-debian:buster-build
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
curl \
\
# .NET Core dependencies
libc6 \
libgcc1 \
libgssapi-krb5-2 \
libicu63 \
libssl1.1 \
... | nghiant2710/base-images | balena-base-images/dotnet/hummingboard/debian/buster/3.1-runtime/build/Dockerfile | Dockerfile | apache-2.0 | 2,529 |
package org.immutables.samples.json.immutables;
import org.immutables.moshi.Json;
import com.google.common.base.Optional;
import java.util.List;
import java.util.Set;
import javax.annotation.Nullable;
import org.immutables.gson.Gson;
import org.immutables.value.Value;
@Value.Immutable
@Value.Enclosing
@Gson.TypeAdapt... | immutables/samples | json/src/org/immutables/samples/json/immutables/Gocument.java | Java | apache-2.0 | 1,088 |
#!/bin/sh
set -e
mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt
> "$RESOURCES_TO_COPY"
XCASSET_FILES=()
case "${TARGETED_DEVICE_FAMILY}" in
1,2)
TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone"
;;
1)
... | Faceunity/FUQiniuDemo | Example/Pods/Target Support Files/Pods-PLMediaStreamingKitDemo/Pods-PLMediaStreamingKitDemo-resources.sh | Shell | apache-2.0 | 5,221 |
package ru.job4j.cartrade.controller.main;
import com.google.gson.Gson;
import ru.job4j.cartrade.controller.authorization.UserIdentification;
import ru.job4j.cartrade.model.advertisement.Advertisement;
import ru.job4j.cartrade.model.user.User;
import ru.job4j.cartrade.storage.Storage;
import ru.job4j.cartrade.storage.... | TimKap/tkapkaev | chapter_008/src/main/java/ru/job4j/cartrade/controller/main/ChangeStatus.java | Java | apache-2.0 | 2,344 |
/**
* Copyright (c) 2015 - Andrew C. Pacifico - All Rights Reserved.
* @author Andrew C. Pacifico <andrewcpacifico@gmail.com>
*/
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
int n, i, j;
scanf("%d", &n);
for (i = 0; i < n; ++i) {
for (j = 0; j < n - (i + 1); ++j) {... | andrewcpacifico/programming | hackerrank/algorithms/warmup/0007_staircase.cc | C++ | apache-2.0 | 467 |
package info.u250.c2d.accessors;
import info.u250.c2d.engine.Flip3DCamera;
import aurelienribon.tweenengine.TweenAccessor;
/** change some attributes of the camera
* @author lycying@gmail.com*/
public class Flip3DCameraAccessor implements TweenAccessor<Flip3DCamera>{
public final static int Zoom = 1;
public final... | shiguang1120/c2d-engine | c2d/src/info/u250/c2d/accessors/Flip3DCameraAccessor.java | Java | apache-2.0 | 1,502 |
/*
* 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 may not ... | smanvi-pivotal/geode | geode-assembly/src/test/java/org/apache/geode/rest/internal/web/RestFunctionExecuteDUnitTest.java | Java | apache-2.0 | 4,913 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_45) on Mon Mar 03 10:44:37 EST 2014 -->
<title>Uses of Class org.hibernate.annotations.CollectionId (Hibernate JavaDocs)</title>
<meta ... | serious6/HibernateSimpleProject | javadoc/hibernate_Doc/org/hibernate/annotations/class-use/CollectionId.html | HTML | apache-2.0 | 4,305 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../ocl_core/fn.verify_context.html">
</head>
<body>
<p>Redirecting to <a href="../../ocl_core/fn.verify_context.html">../../ocl_core/fn.verify_context.html</a>...</p>
<script>location.replace("../../ocl_core/fn.verify_conte... | liebharc/clFFT | docs/bindings/ocl_core/functions/fn.verify_context.html | HTML | apache-2.0 | 389 |
/*
*
* * Copyright (C) 2016 Singular Studios (a.k.a Atom Tecnologia) - www.opensingular.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 the License at
* *
* * http://www.apache.o... | opensingular/singular-core | lib/wicket-utils/src/test/java/org/opensingular/lib/wicket/util/util/IModelsMixinTest.java | Java | apache-2.0 | 6,764 |
package com.example.webehave;
import static org.jbehave.core.io.CodeLocations.codeLocationFromClass;
import java.util.List;
import java.util.Properties;
import org.jbehave.core.configuration.Configuration;
import org.jbehave.core.configuration.MostUsefulConfiguration;
import org.jbehave.core.io.StoryFinder;
import o... | adrian-herscu/experiments | frameworks/jbehave/webehave/src/main/java/com/example/webehave/AllStories.java | Java | apache-2.0 | 2,704 |
---
layout: post
title: "Set up Waterline ORM with ExpressJS"
subtitle: "Easily set up an ORM for relational databases in ExpressJS."
date: 2015-03-1 8:59:00
author: "Ganesh Datta"
header-img: "img/waterline.png"
description: "Setting up the Waterline ORM in express is easy if you put everythin... | gsdatta/gsdatta.github.io | _posts/2015-3-1-waterline-orm-in-express-the-correct-way.md | Markdown | apache-2.0 | 5,814 |
<?php
/**
* Class Google\Site_Kit\Core\Util\Entity
*
* @package Google\Site_Kit
* @copyright 2021 Google LLC
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
* @link https://sitekit.withgoogle.com
*/
namespace Google\Site_Kit\Core\Util;
/**
* Class representing an entity.
*
... | google/site-kit-wp | includes/Core/Util/Entity.php | PHP | apache-2.0 | 3,278 |
/*
* Copyright (C) 2014 Philippine Android Developers Community
*
* 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 ... | padc/DevConSummit | app/src/main/java/ph/devcon/android/profile/event/UpdatedProfileFailedEvent.java | Java | apache-2.0 | 871 |
CRICTL User Guide
=================
This document presumes you already have `containerd` and `cri-containerd`
installed and running.
This document is for developers who wish to debug, inspect, and manage their pods,
containers, and container images.
Before generating issues against this document, `containerd`, `cri-c... | mikebrow/cri-containerd | docs/crictl.md | Markdown | apache-2.0 | 6,649 |
# Quick instruction:
# To build against an OpenSSL built in the source tree, do this:
#
# make OPENSSL_INCS_LOCATION=-I../../include OPENSSL_LIBS_LOCATION=-L../..
#
# To run the demos when linked with a shared library (default):
#
# LD_LIBRARY_PATH=../.. ./gmac
# LD_LIBRARY_PATH=../.. ./poly1305
CFLAGS = $(OP... | openssl/openssl | demos/mac/Makefile | Makefile | apache-2.0 | 538 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
public partial class EditPost : System.Web.UI.Page
{
public int nid;
protected void Page_Load(o... | IqbalKaur/iqbalkaur | EditPost.aspx.cs | C# | apache-2.0 | 3,468 |
/*
* 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 ... | Laurawly/tvm-1 | src/tir/transforms/coproc_sync.cc | C++ | apache-2.0 | 22,100 |
<div
class="wrapper"
[is-dirty]="swapping || (swapForm && swapForm.dirty)"
[is-dirty-message]="swapping ? operationInProgressWarning : swapForm && swapForm.dirty ? unsavedChangesWarning : null"
>
<div *ngIf="showHeader" class="header">
<div class="header-icon-container">
<span class="header-icon" load... | projectkudu/AzureFunctions | client/src/app/site/slots/swap-slots/swap-slots.component.html | HTML | apache-2.0 | 10,192 |
package com.indeed.util.mmap;
import junit.framework.TestCase;
import java.io.File;
import java.nio.ByteOrder;
import java.nio.channels.FileChannel;
/** @author goodwin */
public class CharArrayTest extends TestCase {
int length = 10240;
int size = 4; // bytes
int maxValue = (int) Math.pow(2, size * 8);
... | indeedeng/util | mmap/src/test/java/com/indeed/util/mmap/CharArrayTest.java | Java | apache-2.0 | 4,059 |
/*
* Copyright 2000-2016 Vaadin Ltd.
*
* 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... | Legioth/vaadin | shared/src/main/java/com/vaadin/shared/ui/ui/PageClientRpc.java | Java | apache-2.0 | 763 |
/*
* Copyright 2015 Adaptris Ltd.
*
* 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 agree... | mcwarman/interlok | adapter/src/test/java/com/adaptris/core/jms/activemq/BlobMessageTranslatorTest.java | Java | apache-2.0 | 7,785 |
Chrome extension: served locally, run in browser UI, observe pages / integrate with browsing (or separate window).
Chrome packaged app (a.k.a. "Chrome App"): served locally, run in own window.
Firefox addon: served locally, run in browser UI, observe pages / integrate with browsing (or separate window).
Firefox packag... | graydon/stxt | pkg/README.md | Markdown | apache-2.0 | 387 |
package main.service;
import java.util.Arrays;
import java.util.List;
import org.javokapi;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
import main.factory.OkapiFactory;
/**
* Sadra
* Created by Sadra on 1/18/16.
*/
@... | YorkUIRLab/okapi-web-service | src/main/java/main/service/OkapiService.java | Java | apache-2.0 | 5,236 |
package iam
import (
"fmt"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/iam"
// "github.com/quintilesims/layer0/api/config"
"strings"
"github.com/quintilesims/layer0/common/aws/provider"
)
type Provider interface {
UploadServerCertificate(string, string, string, string, *string) (*Serve... | quintilesims/layer0 | common/aws/iam/iam.go | GO | apache-2.0 | 7,447 |
package ddevapp_test
import (
"fmt"
"github.com/drud/ddev/pkg/ddevapp"
"github.com/drud/ddev/pkg/nodeps"
"github.com/drud/ddev/pkg/testcommon"
"github.com/drud/ddev/pkg/util"
asrt "github.com/stretchr/testify/assert"
"strings"
"testing"
"time"
)
//TestSetInstrumentationAppTags checks to see that tags are pro... | rfay/ddev | pkg/ddevapp/instrumentation_test.go | GO | apache-2.0 | 1,567 |
/*
* JBoss, Home of Professional Open Source
* Copyright 2010, 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/enterprise/DAO.java | Java | apache-2.0 | 1,309 |
package com.climate.mirage.app;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import com.climate.mirage.Mirage;
public class SimpleLoadActivity extends AppCompatActivity {
private ImageView iv;
pr... | TheClimateCorporation/mirage | samples/src/main/java/com/climate/mirage/app/SimpleLoadActivity.java | Java | apache-2.0 | 1,315 |
use rayon::par_iter::*;
use self::page::Page;
use super::{ReportMemory, PAGE_SIZE, PAGE_WIDTH};
pub use self::page::{Cell, CellType};
mod cell;
mod page;
mod zorder;
pub struct Grid {
pages: Vec<Page>,
dimension: u32,
pages_per_side: u32,
}
impl ReportMemory for Grid {
fn memory(&self) -> u32 {
... | polyfractal/cajal | src/grid/mod.rs | Rust | apache-2.0 | 5,709 |
## How to reduce CPU usage in VB.NET using ByteScout BarCode Reader SDK
### How to reduce CPU usage in VB.NET
Source code documentation samples provide quick and easy way to add a required functionality into your application. What is ByteScout BarCode Reader SDK? It is the SDK for reading of barcodes from PDF, images... | bytescout/ByteScout-SDK-SourceCode | BarCode Reader SDK/VB.NET/Reduce CPU Usage/README.md | Markdown | apache-2.0 | 11,299 |
/*
* #%L
* GwtMaterial
* %%
* Copyright (C) 2015 - 2021 GwtMaterialDesign
* %%
* 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
* ... | GwtMaterialDesign/gwt-material | gwt-material/src/main/java/gwt/material/design/client/MaterialWithoutResources.java | Java | apache-2.0 | 856 |
/*
* Copyright 2015 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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.ap... | jsanda/hawkular-agent | hawkular-wildfly-monitor/src/main/java/org/hawkular/agent/monitor/log/MsgLogger.java | Java | apache-2.0 | 6,632 |
/*
* Copyright 2017 ThoughtWorks, 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 agr... | stevem999/gocd | common/src/test/java/com/thoughtworks/go/domain/PipelineConfigTest.java | Java | apache-2.0 | 50,610 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_151) on Wed Jan 16 11:48:25 MST 2019 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Class org.wildfly.s... | wildfly-swarm/wildfly-swarm-javadocs | 2.3.0.Final/apidocs/org/wildfly/swarm/config/security/security_domain/authentication/class-use/LoginModule.html | HTML | apache-2.0 | 23,909 |
package com.babarehner.android.pycolib;
import android.content.Context;
import android.database.Cursor;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CursorAdapter;
import android.widget.TextView;
import com.babarehner.android.pycolib.data.LibraryCo... | babarehner/Android-PyCoLib | app/src/main/java/com/babarehner/android/pycolib/PythonistaCursorAdapter.java | Java | apache-2.0 | 1,740 |
package com.netflix.evcache.config;
import java.net.URL;
import java.net.URLEncoder;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import java.util.concurrent.TimeUnit;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.netflix.archaius.config.PollingDynamicConfig;
import c... | Netflix/EVCache | evcache-core/src/main/java/com/netflix/evcache/config/EVCachePersistedProperties.java | Java | apache-2.0 | 6,075 |
import { Injectable } from '@angular/core';
@Injectable()
export class ProgressbarConfig {
/** if `true` changing value of progress bar will be animated (note: not supported by Bootstrap 4) */
public animate: Boolean = true;
/** maximum total value of progress element */
public max: number = 100;
} | mayuranjan/the-hawker-front-end | src/app/typescripts/angular-bootstrap-md/pro/progress-bars/progressbarConfig.ts | TypeScript | apache-2.0 | 308 |
/*
* Copyright (c) 2020, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.org).
*
* 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.apac... | lessthanoptimal/BoofCV | main/boofcv-types/src/noauto/java/boofcv/struct/image/InterleavedS8.java | Java | apache-2.0 | 2,237 |
/*
* Copyright 2015 West Coast Informatics, LLC
*/
package org.ihtsdo.otf.refset.rest.impl;
import java.util.HashSet;
import java.util.Set;
import java.util.Timer;
import java.util.TimerTask;
import javax.ws.rs.ApplicationPath;
import javax.ws.rs.core.Application;
import org.apache.log4j.Logger;
import org.glas... | WestCoastInformatics/ihtsdo-refset-tool | rest/src/main/java/org/ihtsdo/otf/refset/rest/impl/RefsetServerApplication.java | Java | apache-2.0 | 3,554 |
namespace Stumps.Server
{
using System.Collections.Generic;
/// <summary>
/// A class that represents a contract for a rule.
/// </summary>
public class RuleContract
{
private readonly List<RuleSetting> _ruleSettings;
/// <summary>
/// Initializes a new instance... | merchantwarehouse/stumps | src/main/dot-net/Stumps.Server/RuleContract.cs | C# | apache-2.0 | 2,133 |
package com.psc.vote.vote.dao;
import com.psc.vote.common.dao.ConnectionDao;
import com.psc.vote.vote.domain.Campaign;
import org.springframework.jdbc.core.RowMapper;
import org.springframework.jdbc.core.namedparam.BeanPropertySqlParameterSource;
import org.springframework.jdbc.core.namedparam.SqlParameterSource;
imp... | sgudupat/psc-vote-server | src/main/java/com/psc/vote/vote/dao/CampaignDao.java | Java | apache-2.0 | 4,923 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="pl">
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>All Classes (Play! 2.x Provider for Play! 2.1.x 1.0.0-beta7 API)</title... | play2-maven-plugin/play2-maven-plugin.github.io | play2-maven-plugin/1.0.0-beta7/play2-providers/play2-provider-play21/apidocs/allclasses-noframe.html | HTML | apache-2.0 | 2,613 |
# AUTOGENERATED FILE
FROM balenalib/jetson-xavier-nx-devkit-emmc-alpine:edge-build
# remove several traces of python
RUN apk del python*
# http://bugs.python.org/issue19846
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
ENV LANG C.UTF-8
# key 63C7CC90: publi... | nghiant2710/base-images | balena-base-images/python/jetson-xavier-nx-devkit-emmc/alpine/edge/3.8.6/build/Dockerfile | Dockerfile | apache-2.0 | 4,855 |
# [Start Bootstrap](http://startbootstrap.com/) - [Freelancer](http://startbootstrap.com/template-overviews/freelancer/)
[Freelancer](http://startbootstrap.com/template-overviews/freelancer/) is a one page freelancer portfolio theme for [Bootstrap](http://getbootstrap.com/) created by [Start Bootstrap](http://startboo... | jeffreyyourman/JeffYourmanFullStackWebsite | README.md | Markdown | apache-2.0 | 1,615 |
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using MediatR.Pipeline;
namespace MediatR.Examples;
public class GenericRequestPostProcessor<TRequest, TResponse> : IRequestPostProcessor<TRequest, TResponse>
where TRequest : IRequest<TResponse>
{
private readonly TextWriter _writer;
... | jbogard/MediatR | samples/MediatR.Examples/GenericRequestPostProcessor.cs | C# | apache-2.0 | 579 |
// 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 may... | jcshen007/cloudstack | server/src/com/cloud/storage/StorageManagerImpl.java | Java | apache-2.0 | 118,418 |
import * as fromShoppingList from '../shopping-list/store/shopping-list.reducers';
import * as fromAuth from '../auth/store/auth.reducers';
import {ActionReducerMap} from '@ngrx/store';
export interface AppState {
shoppingList: fromShoppingList.State;
auth: fromAuth.State;
}
export const reducers: ActionReducerMa... | davidokun/Angular-js | ng4-complete-app/src/app/store/app.reducers.ts | TypeScript | apache-2.0 | 423 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.