repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
brunolauze/openpegasus-providers-old
src/Providers/UNIXProviders/VendorPolicyAction/UNIX_VendorPolicyActionPrivate.h
#if defined(PEGASUS_OS_HPUX) # include "UNIX_VendorPolicyActionPrivate_HPUX.h" #elif defined(PEGASUS_OS_LINUX) # include "UNIX_VendorPolicyActionPrivate_LINUX.h" #elif defined(PEGASUS_OS_DARWIN) # include "UNIX_VendorPolicyActionPrivate_DARWIN.h" #elif defined(PEGASUS_OS_AIX) # include "UNIX_VendorPolicyActionPrivate_...
Roxbili/kws-demo
freeze_and_tflite.py
<reponame>Roxbili/kws-demo import tensorflow as tf import os, sys import argparse from tensorflow.python.tools import freeze_graph from tensorflow.contrib.framework.python.ops import audio_ops as contrib_audio from tensorflow.python.framework import graph_util import input_data import models from convert_to_tflite im...
dearbornlavern/botmetrics
app/services/post_message_to_facebook_service.rb
<reponame>dearbornlavern/botmetrics<gh_stars>10-100 # frozen_string_literal: true class PostMessageToFacebookService def initialize(message, token) @message = message @token = token end def call facebook_client.call('me/messages', 'POST', options) end private attr_reader :message, :token d...
PavlidisLab/Gemma
gemma-core/src/test/java/ubic/gemma/model/expression/experiment/ExpressionExperimentServiceTest.java
/* * The Gemma project * * Copyright (c) 2006 University of British Columbia * * 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 * ...
BME-MIT-IET/iet-hf2021-csapat1234
server/src/main/java/io/github/basilapi/basil/server/BasilCli.java
<gh_stars>10-100 /* * Copyright (c) 2021. <NAME> and <NAME> * * MLicensed 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...
AarushiSingh09/libmodulemd
modulemd/v1/tests/test-modulemd-component.c
/* * This file is part of libmodulemd * Copyright (C) 2017-2018 <NAME> * * Fedora-License-Identifier: MIT * SPDX-2.0-License-Identifier: MIT * SPDX-3.0-License-Identifier: MIT * * This program is free software. * For more information on the license, see COPYING. * For more information on free software, see <h...
miw-upm/betca-tpv-core
src/main/java/es/upm/miw/betca_tpv_core/domain/persistence/VoucherPersistence.java
package es.upm.miw.betca_tpv_core.domain.persistence; import es.upm.miw.betca_tpv_core.domain.model.Voucher; import org.springframework.stereotype.Repository; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; import java.time.LocalDateTime; @Repository public interface VoucherPersistence { ...
difosschan/bamboo
libs/protocol/protocolif.cpp
#include "bamboo/protocol/protocolif.hpp" namespace bamboo { namespace protocol { ProtocolIf::ProtocolIf() {} ProtocolIf::~ProtocolIf() {} } }
jimstack/super-csv-annotation
src/test/java/com/github/mygreen/supercsv/builder/spring/UserListener.java
<reponame>jimstack/super-csv-annotation package com.github.mygreen.supercsv.builder.spring; import java.net.URL; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import com.github.mygreen.supercsv.annotation.CsvPostRead; im...
dsteelma-umd/avalon
app/javascript/components/collections/CollectionsFilterNoResults.js
<reponame>dsteelma-umd/avalon<gh_stars>10-100 /* * Copyright 2011-2020, The Trustees of Indiana University and Northwestern * University. 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 ...
Sorgas/Tearfall
core/src/stonering/generators/worldgen/generators/elevation/ValleyGenerator.java
<reponame>Sorgas/Tearfall package stonering.generators.worldgen.generators.elevation; import com.badlogic.gdx.math.Vector2; import stonering.generators.worldgen.WorldGenConfig; import stonering.generators.worldgen.WorldGenContainer; import stonering.generators.worldgen.generators.WorldGenerator; import stonering.entit...
yaoxuanw007/forfun
leetcode/python/populatingNextRightPointersInEachNodeII.py
# https://oj.leetcode.com/problems/populating-next-right-pointers-in-each-node-ii/ # Definition for a binary tree node class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None self.next = None class Solution: # @param root, a tree node # @return nothing def connec...
guidotack/gecode
gecode/third-party/boost/config/stdlib/libstdcpp3.hpp
// (C) Copyright <NAME> 2001. // (C) Copyright <NAME> 2001. // Use, modification and distribution are subject to the // Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org for most recent version. // config ...
psingarakannan/home-acc-mngmt
acc-mngmt/acc-mngmt-service/src/main/java/org/pradeep/acc/mngmt/entities/Account.java
<reponame>psingarakannan/home-acc-mngmt package org.pradeep.acc.mngmt.entities; import lombok.Getter; import lombok.Setter; import org.pradeep.platform.enums.AccountCategory; import org.pradeep.platform.enums.AccountType; import org.pradeep.platform.enums.TxnType; import org.pradeep.platform.hibernate.AuditedEntity; ...
jasnow/mira00
app/helpers/datapackage_helper.rb
<reponame>jasnow/mira00 module DatapackageHelper end
romualdo-bar/barbacoa-server-lib
src/mt_server.cpp
<reponame>romualdo-bar/barbacoa-server-lib<gh_stars>1-10 #include <server_lib/mt_server.h> #include <server_lib/logging_helper.h> #include <server_lib/asserts.h> #include <server_lib/emergency_helper.h> #include <server_lib/platform_config.h> #include <mutex> #include <condition_variable> #include <thread> #include <...
Tavi3h/LeetCode_3rd
src/main/java/pers/tavish/leetcode/hard/RecoverBinarySearchTree.java
package pers.tavish.leetcode.hard; /* You are given the root of a binary search tree (BST), where exactly two nodes of the tree were swapped by mistake. Recover the tree without changing its structure. Follow up: A solution using O(n) space is pretty straight forward. Could you devise a constant space solution? Exa...
n-dusan/wroom
agent-monolith/src/main/java/xwsagent/wroomagent/repository/VerificationTokenRepository.java
<filename>agent-monolith/src/main/java/xwsagent/wroomagent/repository/VerificationTokenRepository.java<gh_stars>0 package xwsagent.wroomagent.repository; import org.springframework.data.jpa.repository.JpaRepository; import xwsagent.wroomagent.domain.auth.VerificationToken; public interface VerificationTokenRepositor...
lhlawson/geopm
src/SharedMemoryImp.hpp
/* * Copyright (c) 2015 - 2021, Intel Corporation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice, this list of condition...
xiaohalo/LeetCode
Python/strong-password-checker.py
# Time: O(n) # Space: O(1) # A password is considered strong if below conditions are all met: # # It has at least 6 characters and at most 20 characters. # It must contain at least one lowercase letter, at least one uppercase letter, # and at least one digit. # It must NOT contain three repeating characters in a row ...
Robbbert/messui
src/devices/bus/psi_kbd/psi_kbd.cpp
// license: GPL-2.0+ // copyright-holders: <NAME> /*************************************************************************** Kontron PSI keyboard interface ***************************************************************************/ #include "emu.h" #include "psi_kbd.h" #include "ergoline.h" #include "hle.h" ...
chuckcranor/deltafs
src/libdeltafs/util/mdb.h
<filename>src/libdeltafs/util/mdb.h /* * Copyright (c) 2019 <NAME> University, * Copyright (c) 2019 Triad National Security, LLC, as operator of * Los Alamos National Laboratory. * * All rights reserved. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. ...
Rollczi/LiteCommands
litecommands-core/src/test/java/dev/rollczi/litecommands/scheme/TestSchemeMessage.java
<filename>litecommands-core/src/test/java/dev/rollczi/litecommands/scheme/TestSchemeMessage.java package dev.rollczi.litecommands.scheme; import dev.rollczi.litecommands.component.ExecutionResult; import dev.rollczi.litecommands.valid.messages.LiteMessage; import dev.rollczi.litecommands.valid.messages.MessageInfoCont...
a10networks/terraform-provider-vThunder
thunder/resource_thunder_timezone.go
<gh_stars>1-10 package thunder //Thunder resource Timezone import ( "context" "util" go_thunder "github.com/go_thunder/thunder" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) func resourceTimezone() *schema.Resource { return &schema.Resource{...
Pixelated-Project/aosp-android-jar
android-31/src/com/android/internal/telephony/InboundSmsTracker.java
/* * Copyright (C) 2013 The Android Open Source Project * * 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 app...
KoKumagai/exercises
aoj/volume0/n0046/Main.cpp
#include <iostream> using namespace std; int main() { float min, max; cin >> min; max = min; float height; while (cin >> height) { if (height < min) { min = height; } if (height > max) { max = height; } } cout << max - min << e...
lixiny/CPF
hocontact/utils/netutils.py
import torch def rec_freeze(model): for module in model.modules(): if isinstance(module, torch.nn.modules.batchnorm._BatchNorm): module.momentum = 0 for name, child in model.named_children(): for param in child.parameters(): param.requires_grad = False rec_freez...
crbecker1/mymntr
app/views/layouts/admin.rb
class Views::Layouts::Admin < Views::Base def content if !content_for?(:app_navigation) content_for :app_navigation do render partial: 'shared/admin/side_nav' end end render template: 'layouts/logged_in' end end
justshiv/weicoder
websocket/src/main/java/com/weicoder/websocket/listener/InitWebSocketListener.java
<gh_stars>1-10 package com.weicoder.websocket.listener; import javax.servlet.ServletContextEvent; import javax.servlet.ServletContextListener; import javax.servlet.annotation.WebListener; import com.weicoder.common.init.Inits; /** * 初始化监听器 * * @author WD */ @WebListener public class InitWebSocketListener impl...
1000applis/ovh-api
ovh.api/src/main/java/com/milleapplis/ovh/api/sms/enums/ServiceStateEnum.java
package com.milleapplis.ovh.api.sms.enums; import com.fasterxml.jackson.annotation.JsonValue; public enum ServiceStateEnum { EXPIRED("expired"), IN_CREATION("inCreation"), OK("ok"), UN_PAID("unPaid"); private String priority; private ServiceStateEnum(String priority) { this.priority = priorit...
softicar/platform
platform-common/src/main/java/com/softicar/platform/common/core/java/classpath/JavaClasspathAnalyzedClassesLoader.java
package com.softicar.platform.common.core.java.classpath; import com.softicar.platform.common.core.java.classes.analyzer.AnalyzedJavaClass; import com.softicar.platform.common.core.java.classes.name.JavaClassName; import java.util.Map; import java.util.TreeMap; /** * Loads all classes on the class path as {@link Ana...
digithun/jamplay-nap
scripts/seeds/seed-generator/recommend.js
<gh_stars>0 const { casual, loadSeedId, writeSeed, genFixArray } = require('../helpers') module.exports = async function generate () { const bookIds = loadSeedId('book') const categoryRecommends = ['N', 'M', 'D', 'G'].map(c => ({ _id: casual.objectId, type: `CATEGORY_${c}`, bookIds: genFixArray(bookIds...
gottaegbert/penter
library/lib_study/167_pythonruntime_contextlib.py
from contextlib import contextmanager,asynccontextmanager # 重要:https://docs.python.org/zh-cn/3/library/contextlib.html # https://www.jianshu.com/p/94bc38e65fff # contextmanager 用来做事务提交 """ def auto_commit(self): try: yield self.session.commit() except Exception as e: self.session.rollback() ...
mI-PIV/app
app/src/main/java/com/onrpiv/uploadmedia/Learn/Pos1_Activity.java
<filename>app/src/main/java/com/onrpiv/uploadmedia/Learn/Pos1_Activity.java package com.onrpiv.uploadmedia.Learn; import android.os.Build; import androidx.annotation.RequiresApi; import com.google.android.material.bottomnavigation.BottomNavigationView; import android.os.Bundle; import android.text.Layout; import andro...
jhyry-gcpud/jalico
old_googlecode_sources/com/ochafik/util/listenable/DefaultListenableSortedSet.java
/* Copyright 2008 <NAME> 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, s...
dymecard/j2cl
jre/javatests/com/google/gwt/emultest/java/util/TestObject.java
<filename>jre/javatests/com/google/gwt/emultest/java/util/TestObject.java // CHECKSTYLE_OFF: Copyrighted to ASF /* * Copyright 1999-2004 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may ob...
dtienq/SuperSchool
frontend/src/api/profileApi.js
<reponame>dtienq/SuperSchool<filename>frontend/src/api/profileApi.js<gh_stars>0 import axiosClient from './axiosClient'; const profileApi = { changePassword: (data) => { const url = '/users/changePassword'; return axiosClient.post(url, data); }, updateInfo: (data)=>{ const url = '/users/updateInfo'; ...
afialapis/calustra
packages/router/src/index.js
import calustraRouter from './router' import {routerCache} from './cache' const getConnectionFromCache= (selector) => routerCache.getConnection(selector) const getModelFromCache= (selector, tablename) => routerCache.getModel(selector, tablename) export {calustraRouter as default, getConnectionFromCache, getModelFromC...
solo123/woyin-op
src/pages/Merchant/MerchantInfo.js
import React from 'react'; import { connect } from 'dva'; import { Row, Col, Table, Card } from 'antd'; import { MemberApplayInter, MerchantWall, MerchantAddRate} from '@/components/Merchant'; import {routerRedux} from 'dva/router'; import PageHeaderWrapper from '@/components/PageHeaderWrapper'; import...
SilverBlaze109/VAMPY2017
programs/Max_Thread.py
import _thread import threading import random a = 0 b = 0 c = 1 d = 0 m_a = "" array = [] while a < 1000: y = random.randint(1, 1001) array.append(y) a = a + 1 def max_array(name, delay): global b global c global d while d < 1000: if array[b] > array[c] array[b] = m_a b = b + 1 c = c + 1 d = d ...
SahilChachra/DS-Algo-Practice
Sliding Window Problems/SlidingWinMaximumSum.java
public class SlidingWinMaximumSum { public int getMaxSum(int []arr, int k) { int i=0,j=0,sum=0; int max = Integer.MIN_VALUE; while(j< arr.length) { sum = sum + arr[j]; if(j-i+1 < k) j++; else if(j-i+1 == k){ max = Math.m...
cgu101/Voogasalad
src/view/level/LevelType.java
<filename>src/view/level/LevelType.java package view.level; public enum LevelType { LEVEL, SPLASH; }
kamils-iRonin/dynflow
lib/dynflow/transaction_adapters.rb
<reponame>kamils-iRonin/dynflow # frozen_string_literal: true module Dynflow module TransactionAdapters require 'dynflow/transaction_adapters/abstract' require 'dynflow/transaction_adapters/none' require 'dynflow/transaction_adapters/active_record' end end
pravinva/aws-serverless-data-lake-framework
sdlf-utils/pipeline-examples/manifests/stageA/lambda/stage-a-process-object/src/lambda_function.py
import os import shutil from datalake_library.commons import init_logger from datalake_library.transforms.transform_handler import TransformHandler from datalake_library import octagon from datalake_library.octagon import Artifact, EventReasonEnum, peh from datalake_library.configuration.resource_configs import Dynamo...
dingpuyu/MLN
MLN-Android-Demo/sample/src/main/java/com/mln/demo/android/fragment/message/controller/MessageFragment.java
<filename>MLN-Android-Demo/sample/src/main/java/com/mln/demo/android/fragment/message/controller/MessageFragment.java package com.mln.demo.android.fragment.message.controller; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.view.LayoutInflat...
prabhjyotsingh/cloudbreak
core-api/src/main/java/com/sequenceiq/cloudbreak/api/endpoint/v4/stacks/base/InstanceStatus.java
<reponame>prabhjyotsingh/cloudbreak<gh_stars>0 package com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.base; public enum InstanceStatus { REQUESTED, CREATED, UNREGISTERED, REGISTERED, DECOMMISSIONED, TERMINATED, DELETED_ON_PROVIDER_SIDE, FAILED, STOPPED }
TCLProject/mod-director
mod-director-core/src/main/java/net/jan/moddirector/core/manage/check/StopModRepostsEntry.java
package net.jan.moddirector.core.manage.check; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.regex.Pattern; public class StopModRepostsEntry { private final String domain; private final String path; private final Pattern patter...
taolinqu/ds4p
DS4P/consent2share/core/src/main/java/gov/samhsa/consent2share/service/account/PasswordResetServiceImpl.java
<filename>DS4P/consent2share/core/src/main/java/gov/samhsa/consent2share/service/account/PasswordResetServiceImpl.java /******************************************************************************* * Open Behavioral Health Information Technology Architecture (OBHITA.org) * * Redistribution and use in source and b...
LazyPanda07/HTTP
docs/search/functions_2.js
<gh_stars>0 var searchData= [ ['deleterequest_166',['deleteRequest',['../classweb_1_1_h_t_t_p_builder.html#af89af347f10292209346086aa017e05d',1,'web::HTTPBuilder']]] ];
masystech/pompidu
public/import/themes/Backend/ExtJs/backend/customer/view/customer_stream/conditions/field/attribute_value.js
/** * Shopware 5 * Copyright (c) shopware AG * * According to our dual licensing model, this program can be used either * under the terms of the GNU Affero General Public License, version 3, * or under a proprietary license. * * The texts of the GNU Affero General Public License with an additional * permission...
nextdaymedia/cmp
src/lib/cmp.test.js
import { expect } from 'chai'; import { getTCData } from "./cmp"; import log from './log'; describe('getTCData', () => { it('can get data from __tcfapi, if defined, with unknown cmpId, useractioncomplete', (done) => { log.logLevel = false; const tcfapi = jest.fn((command, version, callback) => { switch (comma...
skiyooka/blackduck-alert
src/main/java/com/synopsys/integration/alert/web/audit/AuditEntryController.java
/** * blackduck-alert * * Copyright (c) 2020 Synopsys, Inc. * * 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 u...
elifkus/java-this-and-that
Problems/src/com/safkanyazilim/mergesort/Solution.java
<reponame>elifkus/java-this-and-that package com.safkanyazilim.mergesort; import java.util.List; /** * Solution for < * @author elif * */ public class Solution { public static void mergeSort(List<Integer> list) { } }
qodirovshohijahon/dates-in-uzbek
aws-pentesting-with-python/ec2/stop_or_delete_ec2.py
#!/usr/bin/env python3 import boto3 import json import os import os import pprint from sys import version_info import sys AWS_REGION = "us-west-1" EC2_CLIENT = boto3.client('ec2', region_name=AWS_REGION) INSTANCE_ID = 'i-06a2ac220369ddb08' # Stopping the instance using stop_instances. instances = EC2_CLIENT.stop_i...
zhouguangping/pentaho-kettle
ui/src/main/java/org/pentaho/di/ui/spoon/ChangedWarningDialog.java
/*! ****************************************************************************** * * Pentaho Data Integration * * Copyright (C) 2002-2017 by <NAME> : http://www.pentaho.com * ******************************************************************************* * * Licensed under the Apache License, Version 2.0 (the...
dvuckovic/fdb
src/fdb5/database/WipeVisitor.cc
<filename>src/fdb5/database/WipeVisitor.cc /* * (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 and immunities * granted...
anfark/insilico-lab
bundles/org.insilico.jsbml.core/src/org/insilico/jsbml/core/Constants.java
<reponame>anfark/insilico-lab package org.insilico.jsbml.core; public interface Constants { }
LiquidEngine/legui2
core/src/main/java/com/spinyowl/spinygui/core/event/Event.java
<gh_stars>0 package com.spinyowl.spinygui.core.event; import lombok.Data; import lombok.NonNull; import lombok.experimental.SuperBuilder; @Data @SuperBuilder public class Event { /** Element which cause event generation. */ @NonNull private final EventTarget source; /** Target element to which the event was or...
zburke/ui-inn-reach
src/components/common/filters/MultiChoiceFilter/MultiChoiceFilter.js
import React from 'react'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import { MultiSelectionFilter } from '@folio/stripes-smart-components'; import FilterAccordion from '../FilterAccordion'; const MultiChoiceFilter = ({ name, labelId, activeFilters, dataOptions, close...
rentianhua/tsf_android
houseAd/HouseGo/src/com/dumu/housego/model/IPaySuccessModel.java
<gh_stars>0 package com.dumu.housego.model; import com.dumu.housego.model.IModel.AsycnCallBack; public interface IPaySuccessModel { void PayInfo(String resultStatus,String jine,String order_no,String trade_no,AsycnCallBack back); }
moutainhigh/ses-server
ses-app/ses-web-ros/src/main/java/com/redescooter/ses/web/ros/dao/base/OpeProductionPurchasePartsBMapper.java
<reponame>moutainhigh/ses-server package com.redescooter.ses.web.ros.dao.base; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.redescooter.ses.web.ros.dm.OpeProductionPurchasePartsB; import java.util.List; import org.apache.ibatis.annotations.Param; public interface OpeProductionPurchasePartsBMappe...
definejs/packer
modules/MetaInfo.js
<filename>modules/MetaInfo.js const File = require('@definejs/file'); const $Object = require('@definejs/object'); const IDRequires = require('./MetaInfo/IDRequires'); module.exports = { render(opt) { let { dir, id$info, name$pkg, name$id, name$requires, third$version, } = opt; let id...
pedrotari7/advent_of_code
py/2016/8A.py
<gh_stars>0 def shift(seq, n): i = n % len(seq) return seq[-i:] + seq[:-i] dim = (50,6) l = [[0 for i in xrange(dim[0])] for j in xrange(dim[1])] with open('8.in') as f: for c in f: cmd = c.split() if cmd[0] == 'rect': c = cmd[1].split('x') for i in xrange(int(c[1]...
cassianobecker/dnn
dataset/synth/dwi.py
import numpy as np import os from os.path import join import subprocess import shutil from dipy.io.image import load_nifti, save_nifti from dipy.io import read_bvals_bvecs from dipy.reconst.csdeconv import ConstrainedSphericalDeconvModel from dipy.reconst.csdeconv import auto_response from dipy.core.gradients import g...
PhenixRTS/PlatformTesting
test/models/reporters/sync-reporter.js
/** * Copyright 2020 Phenix Real Time Solutions, 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 * * Unle...
MartinMelo/DomiticTIP
public/modules/climatizacions/controllers/climatizacions.client.controller.js
'use strict'; // Climatizacions controller angular.module('climatizacions').controller('ClimatizacionsController', ['$scope', '$stateParams', '$location', 'Authentication', 'Climatizacions', function($scope, $stateParams, $location, Authentication, Climatizacions ) { $scope.urlList = 'modules/climatizacions/v...
msqljj/aoce
code/aoce_vulkan_extra/layer/VkAlphaShowLayer.cpp
#include "VkAlphaShowLayer.hpp" #include "aoce/layer/PipeGraph.hpp" namespace aoce { namespace vulkan { namespace layer { VkAlphaShowLayer::VkAlphaShowLayer() { // inFormats[0].imageType由上一层决定 bAutoImageType = true; } VkAlphaShowLayer::~VkAlphaShowLayer() {} void VkAlphaShowLayer::onInitLayer() { glslP...
Palem1988/nuls
tools-module/tools/src/main/java/io/nuls/core/tools/log/BlockLog.java
/* * MIT License * * Copyright (c) 2017-2019 nuls.io * * 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, mod...
guyguy2001/txircd
txircd/modules/server/fjoin.py
from twisted.plugin import IPlugin from txircd.channel import IRCChannel from txircd.module_interface import Command, ICommand, IModuleData, ModuleData from txircd.utils import ModeType from zope.interface import implements from datetime import datetime class FJoinCommand(ModuleData, Command): implements(IPlugin, IMo...
siahr/basex
basex-core/src/main/java/org/basex/query/expr/TypeCase.java
package org.basex.query.expr; import static org.basex.query.QueryText.*; import org.basex.query.*; import org.basex.query.func.*; import org.basex.query.iter.Iter; import org.basex.query.util.*; import org.basex.query.value.*; import org.basex.query.value.node.*; import org.basex.query.value.type.*; import org.basex.q...
epfl-lasa/TutorialICRA2018
vendor/ruby/2.3.0/gems/aws-sdk-core-2.10.125/lib/aws-sdk-core/plugins/s3_host_id.rb
module Aws module Plugins # Support S3 host id, more information, see: # http://docs.aws.amazon.com/AmazonS3/latest/dev/troubleshooting.html#sdk-request-ids # # This plugin adds :host_id for s3 responses when available # @api private class S3HostId < Seahorse::Client::Plugin class Hand...
DevelopByTarun/TODAY-HELP
REACTJS/BOOKS-CODES/letters-social-master/src/pages/home.js
<gh_stars>0 import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import orderBy from 'lodash/orderBy'; import { createError } from '../actions/error'; import { createNewPost, getPostsForPage } from '../actions/p...
apexrtos/apex
sys/arch/riscv32/syscall.cpp
<filename>sys/arch/riscv32/syscall.cpp #include "locore.h" #include <debug.h> #include <errno.h> long arch_syscall(uint32_t a0, uint32_t a1, uint32_t a2, uint32_t a3, uint32_t a4, uint32_t a5, uint32_t a6, uint32_t a7) { dbg("WARNING: unimplemented syscall %u\n", a7); return DERR(-ENOSYS); }
oilegor1029/sri-front
src/containers/peeringPartner/PeeringPartnerList.js
<filename>src/containers/peeringPartner/PeeringPartnerList.js import { connect } from 'react-redux'; import PeeringPartnerList from '../../components/peeringPartner/PeeringPartnerList'; const mapStateToProps = (state, props) => { const { columns_visible, all_columns } = state.filterColumns.peeringPartner; return ...
griggt/scala-js
javalib/src/main/scala/java/util/SortedMap.scala
<reponame>griggt/scala-js /* * Scala.js (https://www.scala-js.org/) * * Copyright EPFL. * * Licensed under Apache License 2.0 * (https://www.apache.org/licenses/LICENSE-2.0). * * See the NOTICE file distributed with this work for * additional information regarding copyright ownership. */ package java.util t...
CharLemAznable/char-elves
src/test/java/com/github/charlemaznable/core/spring/AnnotationElfTest.java
package com.github.charlemaznable.core.spring; import com.github.charlemaznable.core.config.EnvConfig; import lombok.SneakyThrows; import org.junit.jupiter.api.Test; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.ComponentScans; import org.springframework.ste...
TheScienceMuseum/web-design-system
fractal/docs/03-colour/gradients.config.js
<filename>fractal/docs/03-colour/gradients.config.js<gh_stars>0 module.exports = { context: { gradients: { "2col": { "u-grad-red-orange": { col1: "red", col2: "orange" }, "u-grad-orange-red": { col1: "orange", col2: "red" }, "u-grad-orange-yellow": { col1: "orange", col2: "yellow" ...
meng630/GMD_E3SM_SCM
externals/kokkos/core/unit_test/TestAggregate.hpp
/* //@HEADER // ************************************************************************ // // Kokkos v. 3.0 // Copyright (2020) National Technology & Engineering // Solutions of Sandia, LLC (NTESS). // // Under the terms of Contract DE-NA0003525 with NTESS, // the U.S. Govern...
phoenix-engine/phoenix
include/phx_sdl/sdl_input.hpp
<filename>include/phx_sdl/sdl_input.hpp #include "input.hpp" namespace phx_sdl { template <typename Consumer = input::Simple> class Input { public: Input(input::Input<Consumer>& with) noexcept; // poll will block the current thread until quit is signaled. void poll() noexcept; private: input::In...
ghuntley/COVIDSafe_1.0.11.apk
src/sources/com/google/crypto/tink/subtle/RsaSsaPssVerifyJce.java
package com.google.crypto.tink.subtle; import com.google.crypto.tink.PublicKeyVerify; import com.google.crypto.tink.subtle.Enums; import java.math.BigInteger; import java.security.GeneralSecurityException; import java.security.MessageDigest; import java.security.interfaces.RSAPublicKey; import java.util.Arrays; publi...
onmyway133/Runtime-Headers
iOS/10.0.2/Frameworks/CoreData.framework/_PFWeakReference.h
<gh_stars>10-100 /* Generated by RuntimeBrowser Image: /System/Library/Frameworks/CoreData.framework/CoreData */ @interface _PFWeakReference : NSObject { id _object; long long _objectAddress; } @property (readonly) long long address; @property (readonly) id object; + (id)weakReferenceWithObject:(id)arg...
dh-linghaibin/xboot
src/arch/arm32/mach-v3ss/driver/fb-sandbox.c
<gh_stars>0 /* * driver/fb-sandbox.c * * Copyright(c) 2007-2019 <NAME> <<EMAIL>> * Official site: http://xboot.org * Mobile phone: +86-18665388956 * QQ: 8192542 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"...
DweebsUnited/CodeMonkey
resources/hemesh/ref/html/classwblut_1_1hemesh_1_1_h_e_c___geodesic.js
var classwblut_1_1hemesh_1_1_h_e_c___geodesic = [ [ "HEC_Geodesic", "classwblut_1_1hemesh_1_1_h_e_c___geodesic.html#a8012c1b966e78ac6e5e271dd14bb8831", null ], [ "HEC_Geodesic", "classwblut_1_1hemesh_1_1_h_e_c___geodesic.html#a684038be79f0617c5856ee0687d53366", null ], [ "createBase", "classwblut_1_1hemesh_...
ajozwik/akka-smtp-server
akka-smtp/src/main/scala/pl/jozwik/smtp/server/command/RcptCommand.scala
/* * Copyright (c) 2017 <NAME> * * 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, modify, merge, publish, dis...
zhongxinghong/Botzone-Tank2
core/utils.py
# -*- coding: utf-8 -*- # @Author: Administrator # @Date: 2019-04-26 22:07:11 # @Last Modified by: Administrator # @Last Modified time: 2019-05-29 00:01:20 """ 工具类 """ __all__ = [ "debug_print", "debug_pprint", "simulator_print", "simulator_pprint", "outer_label", "memorize", "Cache...
nguyentruongngoclan/MalmoAI
Minecraft/build/tmp/recompileMc/sources/net/minecraft/client/renderer/vertex/VertexFormat.java
<filename>Minecraft/build/tmp/recompileMc/sources/net/minecraft/client/renderer/vertex/VertexFormat.java package net.minecraft.client.renderer.vertex; import com.google.common.collect.Lists; import java.util.Iterator; import java.util.List; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.r...
bTest2018/griffon
subprojects/griffon-pivot/src/main/java/griffon/pivot/support/adapters/WindowAdapter.java
<filename>subprojects/griffon-pivot/src/main/java/griffon/pivot/support/adapters/WindowAdapter.java /* * SPDX-License-Identifier: Apache-2.0 * * Copyright 2008-2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance ...
Sakshi14-code/Facebook-Clone
Facebook-Clone-master/Facebook-Clone-master/backend/routes/postRoute.js
const express=require('express'); const router=express.Router(); const Post=require('../models/post'); const {isLoggedIn}=require('./logininfo'); router.get('/logincheck',isLoggedIn,(req,res)=>{ res.send("Yes you are logged in"); }); router.get('/allposts',isLoggedIn,async(req,res)=>{ const posts=await Post.find({...
carnei-ro/openipc-2.1
br-ext-chip-xiongmai/package/xiongmai-osdrv-xm530/files/include/mpi_vo.h
<gh_stars>1-10 #ifndef __MPI_VO_H__ #define __MPI_VO_H__ #include "xm_comm_vo.h" #ifdef __cplusplus #if __cplusplus extern "C" { #endif #endif /* __cplusplus */ /* Device Settings */ XM_S32 XM_MPI_VO_Init(void); XM_S32 XM_MPI_VO_SetPubAttr(VO_DEV VoDev, const VO_PUB_ATTR_S *pstPubAttr); XM_S32 XM_MP...
lesaint/experimenting-annotation-processing
experimenting-rounds/massive-count-of-annotated-classes/src/main/java/fr/javatronic/blog/massive/annotation1/sub1/Class_8831.java
package fr.javatronic.blog.massive.annotation1.sub1; import fr.javatronic.blog.processor.Annotation_001; @Annotation_001 public class Class_8831 { }
deweixu/ulcdemo
ipc/selectdemo.c
<reponame>deweixu/ulcdemo #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include <sys/types.h> #include <sys/select.h> #include <unistd.h> #include <fcntl.h> #define oops(m,x) {perror(m); exit(x);} void showdata(char *, int); int main(int ac, char *av[]) { int fd1, fd2; struct timeval timeout;...
bocke/amissl
libcmt/error.c
<reponame>bocke/amissl /* * Portable ISO 'C' (1994) runtime library for the Amiga computer * Copyright (c) 2002-2005 by <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: *...
faserg1/adb
tests/tests/test-channel.cpp
#include "test-guild.hpp" #include <libadb/api/api.hpp> #include <libadb/api/channel/channel-api.hpp> using namespace adb::api; void testPins(adb::api::DiscordApi &api) { auto channelId = adb::types::SFID{"964458591102853120"}; auto messageId = adb::types::SFID{"964826080009650226"}; auto channelApi = api....
bgoonz/DS-n-Algos-Mega-Archive
JAVASCRIPT/javascript.datastructures.algorithms.master/Graph/Graph.js
<gh_stars>0 var Dictionary = require('./../Dictionary/Dictionary'); var Queue = require('./../Queue/Queue'); function Graph() { var vertices = []; var adjList = new Dictionary(); this.addVertex = function (v) { vertices.push(v); adjList.set(v, []); }; this.addEdge = function (v, w) { adjList.ge...
syin2/openthread
third_party/silabs/gecko_sdk_suite/v1.0/platform/base/hal/micro/cortexm3/efm32/cstartup-common.c
<filename>third_party/silabs/gecko_sdk_suite/v1.0/platform/base/hal/micro/cortexm3/efm32/cstartup-common.c //============================================================================= // FILE // cstartup.c - Startup and low-level utility code for Ember's Cortex based // SOCs when using the IAR toolc...
mhufflep/msh
libft/src/ft_itoa.c
#include "libft.h" static int count_digits(int n) { int digits; digits = 1; if (n < 0) digits++; while (n / 10 != 0) { n /= 10; digits++; } return (digits); } char *ft_itoa(int n) { int digits; char *str; int sign; sign = 1 * (n < 0) + 0 * (n >= 0); digits = count_digits(n); str = (char *)mallo...
raphaelchang/quadthingy-software
base_station/ChibiOS_16.1.4/test/lib/templates/test_root.h
<reponame>raphaelchang/quadthingy-software<filename>base_station/ChibiOS_16.1.4/test/lib/templates/test_root.h /* ChibiOS - Copyright (C) 2006..2015 <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtai...
datchung/blog
src/Components/Posts/PostPage.js
import React, { useEffect, useState } from "react"; import { getPost } from "../../Api/PostApi"; import T from '../../Localization/i18n'; import Back from "../Common/Back"; import PropTypes from "prop-types"; // import Spinner from "../Common/Spinner"; import { toast } from "react-toastify"; import marked from "marked"...
josephmancuso/masonite
tests/core/exceptions/test_exception_handler.py
<reponame>josephmancuso/masonite<gh_stars>10-100 from tests import TestCase from src.masonite.routes import Route from src.masonite.controllers import Controller from src.masonite.exceptions import RouteNotFoundException class TestController(Controller): def simple(self): 1 / 0 def http(self): ...
KPTechnologyLab/spring-data-crate
src/main/java/org/springframework/data/crate/config/CrateNamespaceHandler.java
/* * Copyright 2014 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 b...