repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
rneogns/simpleio
Library/SimpleIO/FileUtil.h
#pragma once class FileUtil { public: static bool IsFile(string path); static bool IsDirectory(string path); static bool Exists(string path); static uintmax_t FileSize(string path); static bool CreateDirectory(string path); static char GetSeparator(); };
OscarRodriguezPrieto/ProgQuery
ProgQuery/src/database/querys/cypherWrapper/cmu/wiggle/OBJ56.java
<gh_stars>1-10 package database.querys.cypherWrapper.cmu.wiggle; import database.nodes.NodeTypes; import database.querys.cypherWrapper.AbstractQuery; import database.querys.cypherWrapper.AnonymousNode; import database.querys.cypherWrapper.Any; import database.querys.cypherWrapper.Cardinalidad; import database.querys.c...
yanzhe919/rythmengine
src/main/java/org/rythmengine/internal/IEvent.java
/** * Copyright (C) 2013-2016 The Rythm Engine project * for LICENSE and other details see: * https://github.com/rythmengine/rythmengine */ package org.rythmengine.internal; /** * Defines event to be used in rythm system */ public interface IEvent<RETURN, PARAM> { RETURN trigger(IEventDispatcher eventBus, PA...
egorodet/CML
cml/matrix/row_node.tpp
<filename>cml/matrix/row_node.tpp<gh_stars>100-1000 /* -*- C++ -*- ------------------------------------------------------------ @@COPYRIGHT@@ *-----------------------------------------------------------------------*/ /** @file */ #ifndef __CML_MATRIX_ROW_NODE_TPP #error "matrix/row_node.tpp not included correctly" ...
chirag-savant/svea_lli_firmware
lib/ros_included/marker_msgs/Marker.h
#ifndef _ROS_marker_msgs_Marker_h #define _ROS_marker_msgs_Marker_h #include <stdint.h> #include <string.h> #include <stdlib.h> #include "ros/msg.h" #include "geometry_msgs/Pose.h" namespace marker_msgs { class Marker : public ros::Msg { public: uint32_t ids_length; typedef int32_t _ids_type; ...
miniworld-project/miniworld_core
miniworld/model/network/connections/NodeDictMixin.py
from collections import UserDict from miniworld.model.network.connections.JSONEncoder import JSONStrMixin # TODO: REMOVE class NodeDictMixin: """ """ ######################################### # Structure Converting ######################################### def to_ids(self): """ ...
AlexRogalskiy/DevArtifacts
master/com.github.danielpacak.jenkins.ci-master/com.github.danielpacak.jenkins.ci-master/core/src/main/java/com/github/danielpacak/jenkins/ci/core/util/XmlResponse.java
<filename>master/com.github.danielpacak.jenkins.ci-master/com.github.danielpacak.jenkins.ci-master/core/src/main/java/com/github/danielpacak/jenkins/ci/core/util/XmlResponse.java /* * #%L * Jenkins Java API * %% * Copyright (C) 2013 <NAME> * %% * Licensed under the Apache License, Version 2.0 (the "License"); * ...
legacyai/tf-transformers
research/long_block_sequencer/evaluate.py
<filename>research/long_block_sequencer/evaluate.py # coding=utf-8 # Copyright 2021 TF-Transformers 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 # # htt...
Subject38/jujube
src/Resources/SpriteSheet.cpp
<filename>src/Resources/SpriteSheet.cpp #include "SpriteSheet.hpp" #include <sstream> #include <stdexcept> namespace Resources { void from_json(const nlohmann::json& j, SpriteSheet& s) { s.tex_path = fs::path{j.at("sprite_sheet").get<std::string>()}; j.at("count").get_to(s.count); j.at("co...
manh-vv/BroadleafCommerce
common/src/main/java/org/broadleafcommerce/common/sitemap/domain/SiteMapGeneratorConfiguration.java
/* * #%L * BroadleafCommerce Common Libraries * %% * Copyright (C) 2009 - 2016 Broadleaf Commerce * %% * Licensed under the Broadleaf Fair Use License Agreement, Version 1.0 * (the "Fair Use License" located at http://license.broadleafcommerce.org/fair_use_license-1.0.txt) * unless the restrictions on use ther...
lore/lore
packages/lore-hook-connect/src/errors/InvalidBlueprintError.js
<gh_stars>100-1000 export default function InvalidBlueprintError(invalidBlueprintName, valueBlueprintNames) { const error = new Error( `There was no blueprint found matching the name '${invalidBlueprintName}'. Valid blueprints are: ${valueBlueprintNames.join(', ')}` ); error.name = 'InvalidBlueprintError'...
Beignet95/yangfan-project
src/main/java/com/ruoyi/project/pms/relation/domain/AsinTypeRelation.java
<filename>src/main/java/com/ruoyi/project/pms/relation/domain/AsinTypeRelation.java package com.ruoyi.project.pms.relation.domain; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToSt...
meteoorkip/GROOVE
groove/src/groove/sts/Location.java
<reponame>meteoorkip/GROOVE package groove.sts; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; /** * A location in the STS. It represents a Graph State stripped of data values. */ public class Location { private String label; private Map<SwitchRelation,Set<L...
astubbs/orient
core/src/main/java/com/orientechnologies/orient/core/record/impl/ODocument.java
/* * Copyright 1999-2010 <NAME> (l.garulli--at--orientechnologies.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 * *...
Dunor/job4j
chapter_002/src/main/java/ru/job4j/tracker/ReplaceAction.java
<gh_stars>0 package ru.job4j.tracker; public class ReplaceAction extends BaseAction { protected ReplaceAction(String name) { super(name); } @Override public boolean execute(Input input, Tracker tracker) { String id = input.askStr("Enter id: "); String name = input.askStr("Enter...
ShansOwn/android-architecture
app/src/main/java/com/shansown/androidarchitecture/ui/BaseActivity.java
<reponame>ShansOwn/android-architecture package com.shansown.androidarchitecture.ui; import android.annotation.TargetApi; import android.graphics.Color; import android.os.Build; import android.os.Bundle; import android.support.annotation.LayoutRes; import android.support.design.widget.NavigationView; import android.su...
yxiao1996/dev
catkin_ws/src/00-infrastructure/easy_node/include/easy_node/node_description/doc_generation.py
<reponame>yxiao1996/dev import os from duckietown_utils import logger from duckietown_utils.constants import get_list_of_packages_in_catkin_ws from duckietown_utils.read_package_xml import read_package_xml_info, Person, PackageXML from .configuration import EasyNodeConfig, PROCESS_THREADED, load_configuration_for_nod...
mapbox/mr-ui
src/components/underline-tabs/underline-tabs-constants.js
export const SIZE_SMALL = 'small'; export const SIZE_MEDIUM = 'medium'; export const SIZE_LARGE = 'large';
imalpasha/cj
carijodoh/src/main/java/com/fly/cj/utils/AESCBC.java
<gh_stars>0 package com.fly.cj.utils; import android.util.Base64; import android.util.Log; import javax.crypto.Cipher; import javax.crypto.spec.IvParameterSpec; import javax.crypto.spec.SecretKeySpec; public class AESCBC { public static String encrypt(String key, String initVector, String value) { try {...
NoFaceGoose/TabletopGames
src/main/java/core/components/Component.java
<filename>src/main/java/core/components/Component.java package core.components; import core.properties.*; import org.json.simple.JSONArray; import org.json.simple.JSONObject; import utilities.Utils.ComponentType; import java.util.*; public abstract class Component { private static int ID = 0; // All components ...
vishnuk007/service-fabric
src/prod/src/Hosting2/PrincipalsProviderContext.cpp
<filename>src/prod/src/Hosting2/PrincipalsProviderContext.cpp<gh_stars>1000+ // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ---------------...
xiaoming123m/XM
ssd/ydybj.js
/* 有道云笔记VIP功能 https://note.youdao.com/yws/(mapi/payment|api/self) hostname: note.youdao.com */ const path1 = "/api/self"; const path2 = "/mapi/payment"; let obj = JSON.parse($response.body); if ($request.url.indexOf(path1) != -1){ obj.vip = true, obj.properties.FEED_BACK_ID = 1, obj.properties.isvip = true } if...
DotMail/Puissant
Puissant/PSTAddMessageContentOperation.h
// // PSTAddMessageContentOperation.h // Puissant // // Created by <NAME> on 11/21/12. // Copyright (c) 2012 CodaFi. All rights reserved. // #import "PSTStorageOperation.h" @class MCOAbstractMessage; /** * A concrete subclass of PSTStorageOperation that associates a given attachment's data with a * message's b...
IamMayankThakur/test-bigdata
adminmgr/media/code/A2/python/task/BD_0064_1387_1416_IBwgwTi.py
from __future__ import print_function from decimal import * import re import sys from operator import add from pyspark.sql import SparkSession def computeContribs(urls, rank): num_urls = len(urls) for url in urls: yield (url, rank / num_urls) def parseNeighbors(urls): parts = re.split(r',', urls...
sadasystems/gcsb
pkg/config/pool.go
<reponame>sadasystems/gcsb package config import ( "time" "github.com/hashicorp/go-multierror" ) // Assert that Connection implements Validate var _ Validate = (*Pool)(nil) type ( Pool struct { MaxOpened int `mapstructure:"max_opened" yaml:"max_opened"` MinOpened int `...
frank20a/collaborative-sats
src/control/control/generic_mpc_generator/parameters.py
import casadi as cs from control.parameters import force, torque, m, nx, nu, Icm dt = 1.0/5 mpc_horizon = 30
akshitgoyal/csc398nlp
venv/lib/python3.8/site-packages/openapi_client/api/personal_api.py
# coding: utf-8 """ NamSor API v2 NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't fi...
shaojiankui/iOS10-Runtime-Headers
Frameworks/AVFoundation.framework/AVSampleBufferDisplayLayerContentLayer.h
/* Generated by RuntimeBrowser Image: /System/Library/Frameworks/AVFoundation.framework/AVFoundation */ @interface AVSampleBufferDisplayLayerContentLayer : CALayer + (id)defaultActionForKey:(id)arg1; - (id)actionForKey:(id)arg1; @end
ednilson/jcatalog
jcatalog/models.py
<gh_stars>0 # coding: utf-8 from mongoengine import * import datetime connect('journals-catalog') class Scielo(DynamicDocument): creation_date = DateTimeField(default=datetime.datetime.now) updated_at = DateTimeField() extraction_date = DateTimeField() issn_list = ListField() date_o...
rokumatsumoto/rspec-experiments
expectations/data_generator/spec/spec_helper.rb
RSpec.configure do |c| c.fail_fast = true c.formatter = 'documentation' c.color = true c.order = :defined end
mpejcoch/aviso
aviso-server/monitoring/aviso_monitoring/reporter/etcd_reporter.py
<filename>aviso-server/monitoring/aviso_monitoring/reporter/etcd_reporter.py # (C) Copyright 1996- ECMWF. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. # In applying this licence, ECMWF does not waive the privileges...
borisdamevin/vuepress-theme-tsed
packages/vuepress-theme-tsed/src/install.js
import * as common from '@tsed/vuepress-common' import { filterSymbols } from '@tsed/vuepress-common' function isVueComponent (component) { return component.name && typeof component !== 'function' } export default function install (Vue) { Vue.mixin({ created () { if (this.$themeConfig.api) { thi...
xyz031702/goblog
handler/admin_remind.go
<gh_stars>10-100 package handler import ( "time" "github.com/fifsky/goblog/core" "github.com/fifsky/goblog/helpers" "github.com/fifsky/goblog/models" "github.com/gin-gonic/gin" "github.com/ilibs/gosql" "github.com/goapt/logger" ) var AdminRemindGet core.HandlerFunc = func(c *core.Context) core.Response { h :...
dmatthes/django-bmf
djangobmf/contrib/taxing/migrations/0001_initial.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django.db.models.deletion from django.conf import settings from djangobmf.settings import BASE_MODULE class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(se...
heroku-miraheze/trafficserver
src/tscpp/util/unit_tests/test_IntrusiveDList.cc
/** @file IntrusiveDList unit tests. @section license License 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...
Gekoncze/MgVulkan
1.1/src/cz/mg/vulkan/VkSparseMemoryBind.java
package cz.mg.vulkan; public class VkSparseMemoryBind extends VkObject { public VkSparseMemoryBind() { super(sizeof()); } protected VkSparseMemoryBind(VkMemory vkmemory) { super(vkmemory); } protected VkSparseMemoryBind(VkMemory vkmemory, long vkaddress) { super(vkmemory, ...
LuanEdCosta/backstage
src/operations/template/helpers.js
<filename>src/operations/template/helpers.js import { RESERVED_LABEL_IMG } from '../../constants'; export const hasReservedLabelImg = ((attr) => { if( attr.metadata && attr.metadata.length > 0 ) { if( attr.metadata.find(meta => RESERVED_LABEL_IMG.includes(meta.label)) ) { return true; } } return fa...
bexl/bexl-js
src/nodes/Literal.js
// @flow import Node from './Node'; import Token from '../Token'; import {Type} from '../types'; export default class Literal extends Node { dataType: Type; value: ?(string | number | boolean); constructor(token: Token, dataType: Type, value: ?(string | number | boolean) = null) { super('literal', token, ...
agnor99/OpenBlocks
OpenBlocks/broken/main/java/openblocks/common/item/ItemPedometer.java
package openblocks.common.item; import javax.annotation.Nonnull; import net.minecraft.entity.Entity; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.ActionResult; import net.minecraft.util.ActionResultType; import net.minec...
lechium/tvOS145Headers
usr/libexec/wifivelocityd/W5IOPowerManagement.h
// // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20). // // Copyright (C) 1997-2019 <NAME>. // #import <objc/NSObject.h> @protocol OS_dispatch_queue; @interface W5IOPowerManagement : NSObject { NSObject<OS_dispatch_queue> *_queue; // 8 = 0x8 ...
bje-/SAM
api/include/SAM_Singlediodeparams.h
<reponame>bje-/SAM<filename>api/include/SAM_Singlediodeparams.h #ifndef SAM_SINGLEDIODEPARAMS_H_ #define SAM_SINGLEDIODEPARAMS_H_ #include "visibility.h" #include "SAM_api.h" #include <stdint.h> #ifdef __cplusplus extern "C" { #endif // // Singlediodeparams Technology Model // /** * Create a Singlediodepara...
peter-ls/kylo
core/search/search-rest-model/src/main/java/com/thinkbiganalytics/search/rest/model/FeedMetadataSearchResultData.java
package com.thinkbiganalytics.search.rest.model; /*- * #%L * kylo-search-rest-model * %% * Copyright (C) 2017 ThinkBig Analytics * %% * 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 *...
tunnelvisionlabs/java-immutable
src/com/tvl/util/Requires.java
<filename>src/com/tvl/util/Requires.java // Licensed under the MIT license. See LICENSE file in the project root for full license information. package com.tvl.util; /** * This class defines common runtime checks which throw exceptions upon failure. * * These methods are used for argument validation throughout the i...
MichaelJCaruso/vxa-node
deps/vision/src/kernel/Vca_VcaTransport.h
#ifndef Vca_VcaTransport_Interface #define Vca_VcaTransport_Interface /************************ ***** Components ***** ************************/ #include "Vca_VActivity.h" #include "V_VFifoLite.h" #include "V_VScheduler.h" #include "VkMapOf.h" #include "Vca_IBSClient.h" #include "Vca_ITrigger.h" #include "Vca...
ms20hj/ets
ets-model/src/main/java/com/cms/ets/model/mongo/BaseLogEntity.java
package com.cms.ets.model.mongo; import com.cms.ets.model.mysql.authority.User; import org.springframework.data.annotation.Id; import org.springframework.data.mongodb.core.index.Indexed; import java.io.Serializable; /** * 日志基础对象 * @date 2019年11月15日11:43:09 * @author ChenMingsen */ public abstract class BaseLogEn...
smolnar82/cloudbreak
core/src/main/java/com/sequenceiq/cloudbreak/service/upgrade/sync/db/ComponentPersistingService.java
<filename>core/src/main/java/com/sequenceiq/cloudbreak/service/upgrade/sync/db/ComponentPersistingService.java package com.sequenceiq.cloudbreak.service.upgrade.sync.db; import java.util.Set; import javax.inject.Inject; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Se...
zmijunkie/lrnwebcomponents
elements/simple-fields/lib/simple-fields-form-lite.js
import { LitElement, html, css } from "lit"; import { SimpleFieldsLite } from "./simple-fields-lite.js"; import { SimpleFields } from "../simple-fields.js"; /** * `simple-fields-form-lite` * binding and submission capabilities on top of simple-fields-lite * * @group simple-fields * @element simple-fields-form-lite...
TimeWz667/PyEpiDAG
example/exp_UseSpecialDataSet.py
<filename>example/exp_UseSpecialDataSet.py import pandas as pd from epidag.data import * __author__ = 'TimeWz667' # Transition Matrix print('\nTransition Matrix') mat = pd.read_csv('../data/transition.csv', index_col=0) trm = TransitionMatrix(mat) print(trm) print('\nSampling\n') st = 'A' print('State', st) for _ in...
ruoranluomu/AliOS-Things
platform/mcu/stm32l4xx_cube/hal/pwrmgmt_hal/board_cpu_pwr.c
/* * Copyright (C) 2018 Alibaba Group Holding Limited */ /* DESCRIPTION This library provides the support for the STM32L496G-DISCOVERY CPU power state control. CPU power management: provides low-level interface for setting CPU C-states. provides low-level interface for setting CPU P-states. */ #include <k_api.h> ...
Ashwanigupta9125/code-DS-ALGO
LeetCode-Challenges/2020/8. August/Week2/pascalTriangle2.cpp
<filename>LeetCode-Challenges/2020/8. August/Week2/pascalTriangle2.cpp class Solution { public: vector<int> getRow(int k) { vector<int> prev; prev.push_back(1); vector<int> res(prev); for(int i = 1; i <= k; ++i) { res.clear(); res.push_back(1...
ClearTax/dropwizard-db-sharding-bundle
sharding-example/src/main/java/in/cleartax/dropwizard/sharding/application/TestApplication.java
/* * Copyright 2018 Cleartax * * 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 writ...
miguelalb/resume-portal-fastapi
services/backend/tests/fake_data_generator.py
<filename>services/backend/tests/fake_data_generator.py import random import sys from datetime import datetime from faker import Faker #TODO Move on to Faker fake = Faker() def get_sample_template(): name = "Sample" + str(random.randint(0, sys.maxsize)) content = "SampleContent" + str(random.randint(0, sys....
tanzzj/teapot
teapot-test/src/test/java/com/teamer/teapot/project/database/service/impl/ProjectDBServiceImplTest.java
package com.teamer.teapot.project.database.service.impl; import com.teamer.teapot.common.model.Project; import com.teamer.teapot.common.model.ProjectDatabase; import com.teamer.teapot.common.model.SQLParams; import com.teamer.teapot.common.util.TestUtil; import com.teamer.teapot.project.database.service.ProjectDBServi...
isutton/source-to-image
vendor/github.com/hashicorp/consul/ui-v2/app/mixins/with-health-filtering.js
import Mixin from '@ember/object/mixin'; import WithFiltering from 'consul-ui/mixins/with-filtering'; export default Mixin.create(WithFiltering, { queryParams: { status: { as: 'status', }, s: { as: 'filter', }, }, });
igor-karpukhin/compass
tests/connector-tests/test/testkit/securedClient.go
<gh_stars>0 package testkit import ( "context" "crypto/rsa" "crypto/tls" "net/http" schema "github.com/kyma-incubator/compass/components/connector/pkg/gqlschema" gcli "github.com/machinebox/graphql" "github.com/pkg/errors" ) //Currently unused. SecuredConnectorClient will be used in future test cases type Sec...
wangkaiwd/player
postcss.config.js
<reponame>wangkaiwd/player module.exports = { plugins: { 'postcss-import': {}, 'postcss-url': {}, 'postcss-aspect-ratio-mini': {}, 'postcss-write-svg': { 'utf8': false }, 'postcss-cssnext': {}, // document address: https://github.com/evrone/postcss-px-to-viewport/blob/master/README_C...
dot2gua/hbase98learning
hbase-server/src/test/java/org/apache/hadoop/hbase/replication/TestReplicationKillRS.java
/* * * 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"); y...
heropan/Elastos.ELA.SPV.Cpp
SDK/Common/secp256k1_name_fix.h
<reponame>heropan/Elastos.ELA.SPV.Cpp /* * Copyright (c) 2020 Elastos Foundation * * 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 r...
xformation/xformation-compliancemanager-service
compliancemanager-server/src/test/java/com/synectiks/process/common/security/authzroles/PaginatedAuthzRolesServiceTest.java
/* * */ package com.synectiks.process.common.security.authzroles; import com.google.common.collect.ImmutableSet; import com.synectiks.process.common.security.authzroles.AuthzRoleDTO; import com.synectiks.process.common.security.authzroles.PaginatedAuthzRolesService; import com.synectiks.process.common.testing.mongodb...
welsonla/rabel
app/controllers/admin/planes_controller.rb
<reponame>welsonla/rabel<filename>app/controllers/admin/planes_controller.rb # encoding: utf-8 class Admin::PlanesController < Admin::BaseController before_filter :find_plane, :only => [:edit, :update, :destroy] def index @planes = Plane.default_order @title = '位面节点' end def new @title = '添加位面' ...
tombosc/dict_based_learning
tests/test_text_dataset.py
import cPickle from dictlearn.datasets import TextDataset from tests.util import ( TEST_TEXT, temporary_content_path) def test_text_dataset(): with temporary_content_path(TEST_TEXT) as path: dataset = TextDataset(path, 100) stream = dataset.get_example_stream() it = stream.get_epoch_i...
sjrd/scalafix
scalafix-core/src/main/scala/scalafix/internal/diff/Diff.scala
<filename>scalafix-core/src/main/scala/scalafix/internal/diff/Diff.scala package scalafix.internal.diff import java.nio.file.Path case class GitChange(start: Int, length: Int) sealed trait GitDiff case class NewFile(path: Path) extends GitDiff case class ModifiedFile(path: Path, changes: List[GitChange]) extends Git...
jandppw/ppwcode
java/vernacular/persistence/trunk/src/main/java/org/ppwcode/vernacular/persistence_III/dao/RemoteAtomicStatelessCrudDao.java
<gh_stars>0 /*<license> Copyright 2005 - $Date$ by PeopleWare n.v.. 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...
lukaszwawrzyk/quasar
mongodb/src/main/scala/quasar/physical/mongodb/planner/common.scala
<gh_stars>0 /* * Copyright 2014–2018 SlamData 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 applicabl...
mrscorpion/MSPIECES
momentProgramme/momentProgramme/MVC/Collection/View/SearchViewTableViewHeader.h
<reponame>mrscorpion/MSPIECES<filename>momentProgramme/momentProgramme/MVC/Collection/View/SearchViewTableViewHeader.h // // SearchViewTableViewHeader.h // momentProgramme // // Created by mr.scorpion on 15/11/30. // Copyright © 2015年 mr.scorpion. All rights reserved. // #import "BSView.h" @interface SearchViewTa...
auto-flow/autoflow
autoflow/opt/config_generators/density_estimator/base.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author : <NAME> # @Contact : <EMAIL> import random from typing import List, Optional import numpy as np from scipy.stats import truncnorm from sklearn.base import BaseEstimator from autoflow.opt.utils import ConfigurationTransformer from autoflow.utils.logging_ imp...
SamirAroudj/BaseProject
Graphics3D/PointLight.h
/* * Copyright (C) 2017 by Author: Aroudj, Samir, born in Suhl, Thueringen, Germany * All rights reserved. * * This software may be modified and distributed under the terms * of the BSD 3-Clause license. See the License.txt file for details. */ #ifndef _POINT_LIGHT_H_ #define _POINT_LIGHT_H_ #include "Light.h" ...
JoaoBaptMG/ReboundTheGame
MainGame/drawables/GUIMap.hpp
<gh_stars>10-100 // // Copyright (c) 2016-2018 <NAME> Silva. // // 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...
tugrulkarakaya/ia-case-api
src/test/java/uk/gov/hmcts/reform/iacaseapi/domain/handlers/presubmit/RestoreStateFromAdjournHandlerTest.java
package uk.gov.hmcts.reform.iacaseapi.domain.handlers.presubmit; import static org.assertj.core.api.Assertions.assertThatThrownBy; import static org.junit.Assert.*; import static org.mockito.Mockito.*; import static uk.gov.hmcts.reform.iacaseapi.domain.entities.AsylumCaseFieldDefinition.*; import java.util.Optional; ...
sulthonzh/zaruba
util/getProjectServiceNames.go
package util import ( "fmt" "path/filepath" "strings" "github.com/state-alchemists/zaruba/config" ) func GetProjectServiceNames(project *config.Project) (serviceNames []string) { projectDir := filepath.Dir(project.GetFileLocation()) serviceNames = []string{} for taskName, task := range project.Tasks { // ta...
ANDROFAST/delivery_articulos
delivery/app-release_source_from_JADX/com/google/android/gms/internal/zzas.java
package com.google.android.gms.internal; import java.io.IOException; class zzas implements zzaq { private zztd zzol; private byte[] zzom; private final int zzon; public zzas(int i) { this.zzon = i; reset(); } public void reset() { this.zzom = new byte[this.zzon]; ...
rdubois/tcommon-studio-se
main/plugins/org.talend.core.runtime/src/main/java/org/talend/core/model/process/IReplaceNodeInProcess.java
<reponame>rdubois/tcommon-studio-se<filename>main/plugins/org.talend.core.runtime/src/main/java/org/talend/core/model/process/IReplaceNodeInProcess.java // ============================================================================ // // Copyright (C) 2006-2015 Talend Inc. - www.talend.com // // This source code is av...
phoenixsbk/kvmmgr
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/datacenters/qos/NewQosModel.java
package org.ovirt.engine.ui.uicommonweb.models.datacenters.qos; import org.ovirt.engine.core.common.action.QosParametersBase; import org.ovirt.engine.core.common.action.VdcActionType; import org.ovirt.engine.core.common.action.VdcReturnValueBase; import org.ovirt.engine.core.common.businessentities.StoragePool; import...
gunnarmorling/infinispan
core/src/main/java/org/infinispan/configuration/cache/AsyncConfigurationBuilder.java
package org.infinispan.configuration.cache; import static org.infinispan.configuration.cache.AsyncConfiguration.*; import java.lang.invoke.MethodHandles; import java.util.concurrent.TimeUnit; import org.infinispan.commons.configuration.Builder; import org.infinispan.commons.configuration.attributes.AttributeSet; imp...
neurlang/wayland
wl/error.go
<filename>wl/error.go package wl // combinedError is a tuple of an External and an Internal error type combinedError [2]error func (c combinedError) Error() string { return c[0].Error() + ": " + c[1].Error() } func (c combinedError) Unwrap() error { return c[1] } func (c combinedError) External() error { return c[...
abhaikollara/tensorflow
tensorflow/core/distributed_runtime/worker_session.h
<filename>tensorflow/core/distributed_runtime/worker_session.h<gh_stars>10-100 /* Copyright 2016 The TensorFlow 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 htt...
EsupPortail/esup-ecandidat
src/main/java/fr/univlorraine/ecandidat/views/windows/CtrCandPostItReadWindow.java
<gh_stars>10-100 /** * ESUP-Portail eCandidat - Copyright (c) 2016 ESUP-Portail consortium * * * 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...
carbon-drive/pyleecan
pyleecan/Methods/Slot/Hole/plot.py
# -*- coding: utf-8 -*- from matplotlib.patches import Patch from matplotlib.pyplot import axis, legend from numpy import exp from ....Functions.init_fig import init_fig from ....definitions import config_dict from ....Methods import ParentMissingError MAGNET_COLOR = config_dict["PLOT"]["COLOR_DICT"]["MAGNET_COLOR"]...
vikram0207/django-rest
venv/lib/python3.7/site-packages/allauth/socialaccount/providers/twitch/provider.py
from allauth.socialaccount.providers.base import ProviderAccount from allauth.socialaccount.providers.oauth2.provider import OAuth2Provider class TwitchAccount(ProviderAccount): def get_profile_url(self): return 'http://twitch.tv/' + self.account.extra_data.get('name') def get_avatar_url(self): ...
ultimateabhi719/ChIA-PIPE
util/cpu-dir/cpu-dir/example.c
<filename>util/cpu-dir/cpu-dir/example.c<gh_stars>10-100 #include <stdio.h> #include <zlib.h> #include <string.h> #include <errno.h> #include <assert.h> #include "bwamem.h" #include "kseq.h" // for the FASTA/Q parser KSEQ_DECLARE(gzFile) #ifdef USE_MALLOC_WRAPPERS # include "malloc_wrap.h" #endif int main(int argc, ...
kokizzu/moss
segment_index.go
// Copyright 2017-Present Couchbase, Inc. // // Use of this software is governed by the Business Source License included // in the file licenses/BSL-Couchbase.txt. As of the Change Date specified // in that file, in accordance with the Business Source License, use of this // software will be governed by the Apach...
Snivyer1910/TinkersConstruct
src/main/java/slimeknights/tconstruct/library/tools/nbt/IModDataReadOnly.java
<filename>src/main/java/slimeknights/tconstruct/library/tools/nbt/IModDataReadOnly.java package slimeknights.tconstruct.library.tools.nbt; import java.util.function.BiFunction; import net.minecraft.nbt.NbtCompound; import net.minecraft.nbt.NbtElement; import net.minecraft.util.Identifier; /** * Read only view of {@l...
cmarqu/pyvsc
src/vsc/model/expr_bin_model.py
# 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 ...
guandjoy/redject
src/react-app/src/application/NavigationBar.js
<filename>src/react-app/src/application/NavigationBar.js import React from "react"; import { css } from "linaria"; import Logo from "./Logo"; import LogoutButton from "./LogoutButton"; export const wrapper = css` display: flex; justify-content: space-between; align-items: center; height: 98px; `; const Naviga...
luckybroman5/http-log-reconstructor
k6/lib/netext/dialer.go
/* * * k6 - a next-generation load testing tool * Copyright (C) 2016 Load Impact * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your o...
Jorch72/plethora
src/main/java/org/squiddev/plethora/gameplay/neural/NeuralComputer.java
<reponame>Jorch72/plethora<filename>src/main/java/org/squiddev/plethora/gameplay/neural/NeuralComputer.java package org.squiddev.plethora.gameplay.neural; import com.google.common.collect.Maps; import dan200.computercraft.shared.computer.core.ComputerFamily; import dan200.computercraft.shared.computer.core.ServerCompu...
xuzhikethinker/t4f-data
structure/core/src/main/java/aos/data/structure5/Vertex.java
<reponame>xuzhikethinker/t4f-data<gh_stars>1-10 /**************************************************************** * Licensed to the AOS Community (AOS) under one or more * * contributor license agreements. See the NOTICE file * * distributed with this work for additional information * * regar...
AshShawn/baseio
baseio-core/src/main/java/com/generallycloud/baseio/component/SocketChannelContext.java
/* * Copyright 2015-2017 GenerallyCloud.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 required by applicabl...
harsha1979/demo-suite
src/main/java/org/wso2/carbon/solution/util/ResourceManager.java
<gh_stars>0 /* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. 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 License. * You may obtain a copy of the License at * * h...
Bad-Sam/bad
src/bad/detect/os.h
<reponame>Bad-Sam/bad #ifndef BAD_OS_H #define BAD_OS_H // OS detection #if defined(__linux__) # define BAD_LINUX #elif defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(_WIN64) || defined(__NT__) || defined(__CYGWIN__) # define BAD_WINDOWS #else # warning Unsupported OS. The library may not wor...
a-bombarda/mvm-gui
gui/calibration/spirometer.py
#!/usr/bin/env python3 ''' This module implements the spirometer calibration procedure, guiding the user through it. ''' import os from PyQt5 import QtWidgets, uic from calibration.regression_tools import data_regression class SpirometerCalibration(QtWidgets.QWidget): ''' SpirometerCalibration widget. User gu...
cburroughs/collins
app/util/concurrent/BackgroundProcessor.scala
package util package concurrent import akka.actor._ import akka.pattern.ask import akka.routing.RoundRobinRouter import akka.util.Duration import play.api.libs.concurrent._ import java.util.concurrent.TimeoutException //import scala.collection.immutable.Vector class BackgroundProcessorActor extends Actor { def re...
mslinklater/retrotools
interfaces/imemory.h
#pragma once #include <inttypes.h> class IMemory { public: virtual uint8_t Read(uint16_t address) = 0; virtual void Write(uint16_t address, uint8_t value) = 0; // Dbg methods do not affect the state of the memory metadata - they are used for internal class access rather than emulated access ...
ScalablyTyped/SlinkyTyped
w/winrt-uwp/src/main/scala/typingsSlinky/winrtUwp/global/Windows/Devices/PointOfService/PosPrinterLineDirection.scala
package typingsSlinky.winrtUwp.global.Windows.Devices.PointOfService import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} /** Describes the possible directions that a receipt or sli...
LaudateCorpus1/oci-go-sdk
datacatalog/job_schedule_type.go
<filename>datacatalog/job_schedule_type.go // Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache....
fhornain/patternfly-react-seed_1
node_modules/@patternfly/react-icons/dist/js/icons/cuttlefish-icon.d.js
"use strict"; //# sourceMappingURL=cuttlefish-icon.d.js.map
JARVIS-AI/python-codes
Python-Chaptering/Chapter-3/7-iphoneMessages.py
<reponame>JARVIS-AI/python-codes #!/usr/bin/python # -*- coding: utf-8 -*- import os import sqlite3 import optparse def isMessageTable(iphoneDB): try: conn = sqlite3.connect(iphoneDB) c = conn.cursor() c.execute('SELECT tbl_name FROM sqlite_master \ WHERE type==\"table\";') ...
Telecominfraproject/wlan-cloud-base
base-hierarchical-datastore/src/main/java/com/telecominfraproject/wlan/hierarchical/datastore/index/RecordIndexPositions.java
<gh_stars>0 package com.telecominfraproject.wlan.hierarchical.datastore.index; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonIgnore; import com.telecominfraproject.wlan.core.model.json.BaseJs...
zipated/src
chrome/browser/resources/chromeos/chromevox/cvox2/background/keyboard_handler.js
<gh_stars>1000+ // Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** * @fileoverview ChromeVox keyboard handler. */ goog.provide('BackgroundKeyboardHandler'); goog.require('ChromeVoxState'); goog.req...
AnthemCS/jobApp
node_modules/babel-plugin-transform-inline-consecutive-adds/lib/array-collapser.js
"use strict"; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope...