repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
kennywj/embarc_osp
include/arc/arc_xy_agu.h
<reponame>kennywj/embarc_osp<gh_stars>10-100 /* ------------------------------------------ * Copyright (c) 2018, Synopsys, Inc. All rights reserved. * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * 1) Redistributio...
DayGitH/Python-Challenges
DailyProgrammer/DP20160408C.py
""" [2016-04-08] Challenge #261 [Hard] magic square dominoes https://www.reddit.com/r/dailyprogrammer/comments/4dwk7b/20160408_challenge_261_hard_magic_square_dominoes/ # Description An NxN magic square is an NxN grid of the numbers 1 through N^2 such that each row, column, and major diagonal adds up to M = N(N^(2)+1...
Biyorne/learningcpp
random-test/main.cpp
#include <algorithm> #include <array> #include <cstdlib> #include <iostream> #include <random> #include <vector> #include "random.hpp" // Randomness - A lack of pattern and predictability. // Entropy - The randomness of a closed system. // True Randomness - Infinite entropy. // Pseudo Randomness - Zero entropy, but d...
hendisantika/spring-ldap
core/src/test/java/org/springframework/ldap/transaction/compensating/manager/TransactionAwareContextSourceProxyTest.java
/* * Copyright 2005-2013 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 requi...
gordonturner/JEtsy
src/main/java/com/notronix/etsy/api/model/CartAssociations.java
package com.notronix.etsy.api.model; public enum CartAssociations { Shop, Listings, ShippingOptions }
MIDIculous/HISE
hi_sampler/sampler/ModulatorSamplerSound.cpp
<reponame>MIDIculous/HISE /* =========================================================================== * * This file is part of HISE. * Copyright 2016 <NAME> * * HISE is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free So...
consulo/consulo-groovy
groovy-psi/src/main/java/org/jetbrains/plugins/groovy/lang/psi/impl/search/GrSourceFilterScope.java
<reponame>consulo/consulo-groovy /* * Copyright 2000-2009 JetBrains s.r.o. * * 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 r...
fossabot/balm
lib/config/extras.js
const EXTRA_CONFIG = { excludes: [], includes: [] }; export default EXTRA_CONFIG;
anshupitlia-tw/twu-biblioteca-anshu
test/com/twu/biblioteca/menu_items/CheckoutBookMenuItemTest.java
<filename>test/com/twu/biblioteca/menu_items/CheckoutBookMenuItemTest.java package com.twu.biblioteca.menu_items; import com.twu.biblioteca.models.Library; import com.twu.biblioteca.helpers.LoginCaller; import com.twu.biblioteca.helpers.Messages; import com.twu.biblioteca.user_interface.UserInterface; import org.jun...
Hoommus/taskmaster
src/shell/line_editing/handlers_editing.c
<reponame>Hoommus/taskmaster /* ************************************************************************** */ /* */ /* ::: :::::::: */ /* handlers_editing.c ...
pyansys/ansys_corba
ansys_corba/omniORB/COS/CosNotification/__init__.py
# DO NOT EDIT THIS FILE! # # Python module CosNotification generated by omniidl import omniORB omniORB.updateModule("CosNotification") # ** 1. Stub files contributing to this module import CosNotification_idl # ** 2. Sub-modules # ** 3. End
uk-gov-mirror/hmrc.tariff-classification-frontend
app/controllers/v2/AttachmentsController.scala
/* * Copyright 2021 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
rojasdiegopro/epitech-42sh
lib/parser_toolbox/src/range.c
<gh_stars>1-10 /* ** EPITECH PROJECT, 2020 ** parser_toolbox ** File description: ** ptb_characters */ #include <stdbool.h> #include "parser_toolbox/range.h" /* ** @DESCRIPTION ** Returns true if the val parameter falls between min and max ** Returns false otherwise. */ bool ptb_range(int val, int min, int max) ...
raycraft/MyBigApp_Discuz_Android
libs/AppUtils/src/com/youzu/android/framework/json/parser/AbstractJSONParser.java
<reponame>raycraft/MyBigApp_Discuz_Android package com.youzu.android.framework.json.parser; public abstract class AbstractJSONParser { }
4dn-dcic/fourfron
src/encoded/tests/test_upgrade_workflow.py
import pytest from snovault import UPGRADER pytestmark = [pytest.mark.setone, pytest.mark.working] @pytest.fixture def workflow_2(software, award, lab): return{ "schema_version": '2', "award": award['@id'], "lab": lab['@id'], "title": "some workflow", "name": "some workf...
EddieVilla/navi
packages/visualizations/app/components/cell-renderers/date-time.js
export { default } from 'navi-visualizations/components/cell-renderers/date-time';
vmariano/Platform
lib/models/user.js
/** * Module dependencies. */ var mongoose = require('mongoose'); var Schema = mongoose.Schema; var ObjectId = Schema.ObjectId; var passportLocalMongoose = require('passport-local-mongoose'); var gravatar = require('mongoose-gravatar'); var t = require('t-component'); /** * Define `User` Schema */ var UserSchema...
Athos1972/PoLZy
polzy-frontend/src/datafields/attachmentTable.js
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { Table, TableHead, TableBody, TableRow, TableCell, TableSortLabel, TablePagination, Toolbar, Typography, Paper, Tooltip, IconButton, Drawer, List, ListItem, Divider, Slider, Tex...
draperlaboratory/hope-FreeRTOS-RISC-V_Galois_demo
bsp/gpio.h
#ifndef __GPIO_H__ #define __GPIO_H__ #include <stdint.h> #include "bsp.h" #if BSP_USE_GPIO /** * Initialize GPIO driver */ void gpio_init(void); /** * Set GPIO_1 index `i` as output * @assert 0 <= i <= 7 */ void gpio_set_as_output(uint8_t i); /** * Set GPIO_1 index `i` as input * @assert 0 <= i <= 7 */ vo...
enfoTek/tomato.linksys.e2000.nvram-mod
release/src/linux/linux/drivers/acpi/debugger/dbexec.c
/******************************************************************************* * * Module Name: dbexec - debugger control method execution * $Revision: 1.1.1.2 $ * ******************************************************************************/ /* * Copyright (C) 2000, 2001 <NAME> * * This prog...
youngdaLee/Baekjoon
src/7/7581.py
<filename>src/7/7581.py """ 7581. Cuboids 작성자: xCrypt0r 언어: Python 3 사용 메모리: 29,380 KB 소요 시간: 92 ms 해결 날짜: 2020년 9월 14일 """ def main(): while True: l, w, h, v = map(int, input().split()) if all(x == 0 for x in [l, w, h, v]): break elif l == 0: l = v // w // h elif w == 0: w = v //...
matiasal55/ejercicio-front-back
front/src/features/userSlice.js
<reponame>matiasal55/ejercicio-front-back import { createSlice } from '@reduxjs/toolkit'; import { getRequest, postRequest } from '../utils/requestHandler'; export const userSlice = createSlice({ name: 'user', initialState: { token: null, userData: {}, serverState: true, registe...
mmtechslv/PhyloMAF
pmaf/sequence/_shared.py
<reponame>mmtechslv/PhyloMAF import warnings warnings.simplefilter('ignore', category=FutureWarning) from skbio.sequence import DNA,RNA,Protein,Sequence def sniff_mode(sequence_str): """ Parameters ---------- sequence_str : Returns ------- """ if isinstance(sequence_str,str)...
nokia/osgi-microfeatures
com.nokia.as.autoconfig/src/com/nokia/as/autoconfig/parser/JsonParser.java
// Copyright 2000-2021 Nokia // // Licensed under the Apache License 2.0 // SPDX-License-Identifier: Apache-2.0 // package com.nokia.as.autoconfig.parser; import java.io.InputStream; import java.net.URL; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; import ...
Micablo/Mboehao
app/src/main/java/io/github/jokoframework/auth/AuthInterceptor.java
<reponame>Micablo/Mboehao package io.github.jokoframework.auth; import android.content.Context; import java.io.IOException; import io.github.jokoframework.R; import io.github.jokoframework.activity.BaseActivity; import io.github.jokoframework.mboehaolib.constants.Constants; import io.github.jokoframework.model.UserD...
GoodyIT/MERN-stack-donate---Bitcoin-Payment
client/modules/App/AuthUser/Account.js
import React from 'react'; import { connect } from 'react-redux'; import TextField from '@material-ui/core/TextField'; import { browserHistory } from 'react-router'; import AuthHeader from '../components/AuthHeader/AuthHeader'; import Footer from '../components/Footer/Footer'; import { fetchUser } from '../AppActions...
NgLoader/Discord-Bot-Wuffy-v1
wuffy-bot/src/main/java/net/wuffy/bot/module/ModuleListenerAdapter.java
package net.wuffy.bot.module; import java.util.HashMap; import java.util.Map; import net.dv8tion.jda.core.entities.Guild; import net.dv8tion.jda.core.events.ReadyEvent; import net.dv8tion.jda.core.events.guild.GuildAvailableEvent; import net.dv8tion.jda.core.events.guild.GuildLeaveEvent; import net.dv8tion.jda.core.e...
xiefan46/samza
samza-core/src/main/java/org/apache/samza/operators/spec/FilterOperatorSpec.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"); you ...
jellybean4/yosaipy2
yosaipy2/registry/pyramid/tweens.py
<reponame>jellybean4/yosaipy2 #!/usr/bin/env python # -*- coding: utf-8 -*- from pyramid.exceptions import ConfigurationError from yosaipy2.web import WebYosai from .webregistry import PyramidWebRegistry def pyramid_yosai_tween_factory(handler, registry): """ This tween obtains the currently executing subject...
datacite/sashimi
spec/requests/report_types_spec.rb
require 'rails_helper' describe 'ReportTypes', type: :request do let(:bearer) { User.generate_token(uid: "datacite.datacite", role_id: "staff_admin") } let(:headers) { {'ACCEPT'=>'application/json', 'CONTENT_TYPE'=>'application/json', 'Authorization' => 'Bearer ' + bearer}} # describe 'GET /reports' do # le...
Tekh-ops/ezEngine
Code/Tools/Libs/ToolsFoundation/Selection/Implementation/SelectionManager.cpp
<filename>Code/Tools/Libs/ToolsFoundation/Selection/Implementation/SelectionManager.cpp<gh_stars>100-1000 #include <ToolsFoundation/ToolsFoundationPCH.h> #include <ToolsFoundation/Document/Document.h> #include <ToolsFoundation/Object/DocumentObjectManager.h> #include <ToolsFoundation/Selection/SelectionManager.h> ezS...
zhyinty/HeliumRain
Source/HeliumRain/UI/Components/FlareColorPanel.cpp
<gh_stars>100-1000 #include "HeliumRain/UI/Components/FlareColorPanel.h" #include "../../Flare.h" #include "../../Game/FlareGame.h" #include "../../Player/FlareMenuPawn.h" #include "../../Player/FlareMenuManager.h" #include "../../Player/FlarePlayerController.h" #include "../../Data/FlareCustomizationCatalog.h" #def...
jizi19911101/gin-vue-admin
server/global/viper.go
<gh_stars>1-10 package global import ( "fmt" "os" "path/filepath" "time" "github.com/songzhibin97/gkit/cache/local_cache" _ "github.com/jizi19911101/gin-vue-admin/server/packfile" "github.com/fsnotify/fsnotify" "github.com/spf13/viper" ) const ( ConfigEnv = "GVA_CONFIG" ConfigFile = "config.yaml" ) fun...
KuoWeiEli/DP_By_Pokemon
src/proxy/ProxyDemo.java
<filename>src/proxy/ProxyDemo.java package proxy; /** 代理模式-示範 **/ public class ProxyDemo { public static void main(String[] args) { /** 到健康中心電腦前操作電腦 **/ Computer computer = new Computer(); /** 將綠毛蟲送去保管 **/ Pokemon caterpie = new Pokemon("綠毛蟲"); computer.put(caterpie); ...
DamieFC/chromium
content/browser/background_fetch/background_fetch_job_controller.h
// Copyright 2017 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. #ifndef CONTENT_BROWSER_BACKGROUND_FETCH_BACKGROUND_FETCH_JOB_CONTROLLER_H_ #define CONTENT_BROWSER_BACKGROUND_FETCH_BACKGROUND_FETCH_JOB_CONTROLLER_H_ #...
BartKnucle/dext-starter
lib/modules/incoming.js
<reponame>BartKnucle/dext-starter import Module from './module' export default class Incoming extends Module { constructor(node) { super(node) } //Init the incoming messages async init() { //Create the incoming databases this.db = await this.node.orbitdb.create(this.name, { type: 'eventlog',...
stxent/lpclib
include/halm/platform/lpc/lpc43xx/flash_defs.h
<reponame>stxent/lpclib /* * halm/platform/lpc/lpc43xx/flash_defs.h * Copyright (C) 2015 xent * Project is distributed under the terms of the MIT License */ #ifndef HALM_PLATFORM_LPC_FLASH_DEFS_H_ #error This header should not be included directly #endif #ifndef HALM_PLATFORM_LPC_LPC43XX_FLASH_DEFS_H_ #define HAL...
14ms/Minecraft-Disclosed-Source-Modifications
Flux 39/today/flux/module/implement/Player/AutoBypass.java
package today.flux.module.implement.Player; import com.darkmagician6.eventapi.EventTarget; import com.soterdev.SoterObfuscator; import today.flux.event.TickEvent; import today.flux.module.Category; import today.flux.module.Module; import today.flux.module.ModuleManager; import today.flux.module.implement.Combat.*; imp...
softwarekid/crayon
exercise/src/example/TextureSampling/TextureSamplingFsParam.h
<reponame>softwarekid/crayon<filename>exercise/src/example/TextureSampling/TextureSamplingFsParam.h #ifndef texture_sampling_fs_param__ #define texture_sampling_fs_param__ #include <CgShaderParametersBase.h> #include <CgShader.h> class TextureSamplingFsParam : public CgShaderParametersBase { private: CGpar...
jmikeowen/Spheral
src/NodeList/SolidNodeList.cc
//---------------------------------Spheral++----------------------------------// // SolidNodeList -- A form of the SPH NodeList appropriate for use with // solid materials. // // Created by JMO, Tue Sep 7 22:44:37 2004 //----------------------------------------------------------------------------// #include "FileIO/Fi...
yehzu/vespa
eval/src/vespa/eval/tensor/sparse/sparse_tensor_address_combiner.cpp
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "sparse_tensor_address_combiner.h" #include "sparse_tensor_address_decoder.h" #include <vespa/eval/eval/value_type.h> namespace vespalib::tensor::sparse { TensorAddressCombiner::TensorAddre...
kakuilan/es6-example
t022.js
// es6 class类 // 定义类 class Point { constructor (x, y) { this.x = x this.y = y } toString () { return '(' + this.x + ', ' + this.y + ')' } } // 继承类,使用extends class ColorPoint extends Point { constructor (x, y, color) { super(x, y) // 等同于super.constructor(x,y) this.color = color } to...
t3zeng/mynewt-nimble
nimble/host/util/include/host/util/util.h
/* * 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 ...
SpiNNakerManchester/nengo_spinnaker
regression-tests/test_node_input.py
import logging logging.basicConfig(level=logging.DEBUG) import nengo import nengo_spinnaker import numpy as np def test_node_input_received_from_board(): """Test that Nodes do receive data from a running simulation. """ # Node just maintains a list of received values class NodeCallable(object): ...
AlexeyKashintsev/PlatypusJS
designer/PlatypusQueries/src/com/eas/designer/application/query/editing/DeleteParameterRiddleTask.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.eas.designer.application.query.editing; import com.eas.client.metadata.Parameter; import com.eas.designer.application.query.editing.riddle.RiddleTask; import java.util.HashSet; import java.util.Set; import n...
LaudateCorpus1/oracle-timesten-samples
quickstart/classic/sample_code/j2ee_orm/src/com/timesten/tptbmas/JPAClient.java
/* * Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved. * * Licensed under the Universal Permissive License v 1.0 as shown * at http://oss.oracle.com/licenses/upl */ package com.timesten.tptbmas; import java.util.Iterator; import java.io.PrintWriter; import javax.persistence.*; /* Impl...
MOIPA/RetailManager
Backend/src/main/java/com/dql/retailmanager/dao/mapper/AccountDao.java
<gh_stars>1-10 package com.dql.retailmanager.dao.mapper; import com.dql.retailmanager.entity.Account; import com.dql.retailmanager.entity.form.SearchForm; import org.apache.ibatis.annotations.Select; import java.util.List; /** * @Entity com.dql.retailmanager.entity.Account */ public interface AccountDao { /** ...
geoff5802/liftie
lib/client/resort/lifts.js
<filename>lib/client/resort/lifts.js<gh_stars>10-100 var dom = require('./dom'); module.exports = render; module.exports.section = 0; var states = ['open', 'hold', 'scheduled', 'closed']; function renderStatus(node, status) { dom.removeAllChildren(node); if (status) { node.innerHTML = Object.keys(status).map...
scaug10/NETESP
src/main/java/com/g10/ssm/po/UserPerssionVo.java
package com.g10.ssm.po; import java.util.List; public class UserPerssionVo { private List<UserPerssionKey> list; public List<UserPerssionKey> getList() { return list; } public void setList(List<UserPerssionKey> list) { this.list = list; } }
mheidt/graphql-maven-plugin-project
graphql-java-runtime/src/test/java/com/graphql_java_generator/client/domain/starwars/CustomJacksonDeserializers.java
/** Generated by the default template from graphql-java-generator */ package com.graphql_java_generator.client.domain.starwars; import java.io.IOException; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.DeserializationCont...
DHBin/minion
minion-auth/minion-auth-biz/src/main/java/cn/dhbin/minion/auth/service/impl/TokenServiceImpl.java
package cn.dhbin.minion.auth.service.impl; import cn.dhbin.minion.auth.api.TokenService; import cn.dhbin.minion.upms.Version; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.apache.dubbo.config.annotation.Service; import org.springframework.security.oauth2.common.OAuth2AccessToken; ...
zxnso/min_project_vue
node_modules/vant/lib/utils/vnodes.js
<filename>node_modules/vant/lib/utils/vnodes.js "use strict"; exports.__esModule = true; exports.sortChildren = sortChildren; function flattenVNodes(vnodes) { var result = []; function traverse(vnodes) { vnodes.forEach(function (vnode) { result.push(vnode); if (vnode.componentInstance) { ...
lca1/medco-connector
connector/client/querytools/cohorts_patient_list.go
package querytoolsclient import ( "crypto/tls" "errors" "fmt" "net/http" "net/url" "time" medcomodels "github.com/ldsec/medco/connector/models" "github.com/ldsec/medco/connector/wrappers/unlynx" httptransport "github.com/go-openapi/runtime/client" medcoclient "github.com/ldsec/medco/connector/client" "git...
jpkulasingham/Eelbrain
eelbrain/_utils/parse.py
# Author: <NAME> <<EMAIL>> import ast FLOAT_PATTERN = "^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$" POS_FLOAT_PATTERN = "^[+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$" INT_PATTERN = "^-?\d+$" # matches float as well as NaN: FLOAT_NAN_PATTERN = "^([Nn][Aa][Nn]$)|([-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?)$" def find_variables(e...
huotuinc/Android_Fanmore_Treasure
raiders/src/main/java/com/huotu/fanmore/pinkcatraiders/adapter/SysMsgAdapter.java
<filename>raiders/src/main/java/com/huotu/fanmore/pinkcatraiders/adapter/SysMsgAdapter.java package com.huotu.fanmore.pinkcatraiders.adapter; import android.content.Context; import android.content.res.Resources; import android.view.View; import android.view.ViewGroup; import android.view.animation.Animation; import an...
PhilShishov/Software-University
JS Essentials/Homeworks/03.Arrays-and-Matrices_Exercise/Interview.js
function solve() { // console.log(1 + "2" + "2"); 122 // console.log(1 + +"2" + "2"); 32 // console.log(1 + -"1" + "2"); 02 // console.log(+"1" + "1" + "2"); 112 // console.log( "A" - "B" + "2"); NaN2 // console.log( "A" - "B" + 2); NaN //clone an object - array is reference type...
LightBit/libkripto
include/kripto/block/rijndael128.h
<reponame>LightBit/libkripto<gh_stars>1-10 #ifndef KRIPTO_BLOCK_RIJNDAEL128_H #define KRIPTO_BLOCK_RIJNDAEL128_H extern const kripto_block_desc *const kripto_block_rijndael128; #endif
BadBaman/ods
ods-main/src/main/java/cn/stylefeng/guns/onlineaccess/modular/mapper/ProjectMapper.java
package cn.stylefeng.guns.onlineaccess.modular.mapper; import cn.stylefeng.guns.onlineaccess.modular.entity.Project; import cn.stylefeng.guns.onlineaccess.modular.result.ProjectResult; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com...
pyrello/assist
resources/assets/js/store/modules/clientOutcomes.js
<filename>resources/assets/js/store/modules/clientOutcomes.js import CrudModule from '../crud/CrudModule' export default { ...new CrudModule('client-outcomes') }
BuildJet/sat4envi
s4e-backend/src/main/java/pl/cyfronet/s4e/service/UserRoleService.java
/* * Copyright 2020 ACC Cyfronet AGH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
cojennin/facet
project/editorial/migrations/0074_auto_20171216_2326.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from django.conf import settings class Migration(migrations.Migration): dependencies = [ ('editorial', '0073_accountsubscription_organization'), ] operations = [ migrations.CreateMod...
mfaithfull/QOR
Include/ArchQOR/Zarch/HLAssembler/ZHLAssembler.h
<reponame>mfaithfull/QOR<filename>Include/ArchQOR/Zarch/HLAssembler/ZHLAssembler.h<gh_stars>1-10 //CZHLAssembler.h // Copyright Querysoft Limited 2015 // // Permission is hereby granted, free of charge, to any person or organization // obtaining a copy of the software and accompanying documentation covered by // this ...
ahabra/tecuj2
src/main/java/com/tek271/util2/reflection/FieldReflector.java
<reponame>ahabra/tecuj2 package com.tek271.util2.reflection; import org.apache.commons.lang3.tuple.Pair; import java.lang.reflect.Field; import java.util.*; import java.util.stream.Collectors; import static com.google.common.collect.Sets.newHashSet; public class FieldReflector<T> { private final T obj; private fi...
matthew-brett/pymc
pymc/sandbox/__init__.py
__modules__ = ['bayes','EM','parallel','NormalSubmodel','NormalModel','DLM','DP'] for mod in __modules__: try: exec('import %s' %mod) except: pass
Amourspirit/ooo_uno_tmpl
ooobuild/cssdyn/ui/__init__.py
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http: // www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
qussarah/declare
idea/testData/kotlinAndJavaChecker/javaAgainstKotlin/FunctionInNestedClassInDataFlowInspection.java
package test; import org.jetbrains.annotations.NotNull; import test.kotlin.A.B.C.C; public class FunctionInNestedClassInDataFlowInspection { void other(@NotNull Object some) { Object foo = new C().foo(some); } }
omolinab/jbpm
jbpm-case-mgmt/jbpm-case-mgmt-cmmn/src/main/java/org/jbpm/casemgmt/cmmn/xml/DecisionTaskHandler.java
/* * Copyright 2018 Red Hat, Inc. and/or its affiliates. * * 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...
gvramana/topcarbondata
hadoop/src/main/java/org/carbondata/hadoop/util/CarbonInputFormatUtil.java
<gh_stars>1-10 /* * 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 * "...
intercity/intercity-classic
test/test_helper.rb
<filename>test/test_helper.rb ENV["RAILS_ENV"] ||= "test" require File.expand_path('../../config/environment', __FILE__) require 'rails/test_help' require 'sidekiq/testing' require 'minitest/mock' require "mocha/mini_test" require "minitest/rails" require "minitest/rails/capybara" require "minitest/reporters" require "...
DavideCorradiDev/houzi-game-engine
source/hougfx/include/hou/gfx/vertex_array.hpp
<filename>source/hougfx/include/hou/gfx/vertex_array.hpp // Houzi Game Engine // Copyright (c) 2018 <NAME> // Licensed under the MIT license. #ifndef HOU_GFX_VERTEX_ARRAY_HPP #define HOU_GFX_VERTEX_ARRAY_HPP #include "hou/cor/non_copyable.hpp" #include "hou/gfx/gfx_config.hpp" #include "hou/gl/gl_vertex_array_handl...
acabra85/googleTechDevAlgs
src/main/java/com/acabra/gtechdevalgs/litcode/arrays/PermutationSequence.java
package com.acabra.gtechdevalgs.litcode.arrays; import java.util.LinkedList; import java.util.List; import java.util.PriorityQueue; public class PermutationSequence { /** * Use brute force: generate all permutations store them in a min_queue retrieve the k first elements from the queue * @param n the l...
vbogatyrov/tdi-studio-se
main/plugins/org.talend.designer.components.libs/libs_src/Netsuite_Client/src/main/java/com/netsuite/webservices/platform/common/TaskSearchBasic.java
<gh_stars>100-1000 package com.netsuite.webservices.platform.common; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; import com.netsuite.webservices.platform.core.SearchBooleanField; import com.netsuite.webservices.platform.co...
halmusaibeli/RoboDK-API
Python/Examples/Macros/Synchronize_3_Robots.py
<gh_stars>0 # Type help("robolink") or help("robodk") for more information # Press F5 to run the script # Documentation: https://robodk.com/doc/en/RoboDK-API.html # Reference: https://robodk.com/doc/en/PythonAPI/index.html # # This example shows to synchronize multiple robots at the same time from robodk.robolink ...
mehrdad-shokri/neopg
legacy/libksba/tests/t-dnparser.cpp
<gh_stars>100-1000 /* t-dnparser.c - basic test for the DN parser * Copyright (C) 2002, 2006 g10 Code GmbH * * This file is part of KSBA. * * KSBA is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; ei...
j0gurt/ggrc-core
src/ggrc-client/js/application.js
/* Copyright (C) 2018 Google Inc. Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> */ (function (root, GGRC, $, can) { let doc = root.document; let body = doc.body; let $win = $(root); let $doc = $(doc); let $body = $(body); $.migrateMute = true; // turn off console war...
toffaletti/libten
examples/echo-server.cc
#include "ten/net.hh" #include "ten/buffer.hh" #include <iostream> using namespace ten; class echo_server : public netsock_server { public: echo_server() : netsock_server{"echo"} {} private: void on_connection(netsock &s) override { buffer buf{4*1024}; for (;;) { buf.reserve(4*1024...
mhuryanov/gitlab
ee/spec/lib/ee/api/entities/billable_membership_spec.rb
<reponame>mhuryanov/gitlab # frozen_string_literal: true require 'spec_helper' RSpec.describe ::EE::API::Entities::BillableMembership do describe '#as_json' do it 'returns source_members_url for a group' do membership = create(:group_member) group_members_url = Gitlab::Routing.url_helpers.group_grou...
anoshenko/rui
properties.go
<reponame>anoshenko/rui package rui import ( "sort" "strings" ) // Properties interface of properties map type Properties interface { // Get returns a value of the property with name defined by the argument. // The type of return value depends on the property. If the property is not set then nil is returned. Get...
sukim96/Sapphire
Includes/Sapphire/compute/sparse/naive/SparseGemm.hpp
<gh_stars>1-10 // Copyright (c) 2021, <NAME> // We are making my contributions/submissions to this project solely in our // personal capacity and are not conveying any rights to any intellectual // property of any third parties. #ifndef SAPPHIRE_COMPUTE_SPARSE_NAIVE_SPARSEGEMM_HPP #define SAPPHIRE_COMPUTE_SPARSE_NAIV...
syret45/runelite
runescape-client/src/main/java/class115.java
import net.runelite.mapping.Export; import net.runelite.mapping.ObfuscatedGetter; import net.runelite.mapping.ObfuscatedName; import net.runelite.mapping.ObfuscatedSignature; import net.runelite.rs.ScriptOpcodes; @ObfuscatedName("dt") public class class115 { @ObfuscatedName("ps") @ObfuscatedSignature( descriptor =...
Wultyc/ISEP_1718_2A2S_REDSI_TrabalhoGrupo
REDSI_1160929_1161573/boost_1_67_0/libs/hana/example/ext/std/ratio/arithmetic.cpp
// Copyright <NAME> 2013-2017 // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) #include <boost/hana/assert.hpp> #include <boost/hana/div.hpp> #include <boost/hana/equal.hpp> #include <boost/hana/ext/std/ratio.hpp> #i...
upallnightcoding/Xgl
XglTestProgram/src/XglNodeProgram.h
#pragma once #include "XglNode.h" #include "XglValue.h" #include "XglContext.h" class XglNodeProgram : public XglNode { public: XglNodeProgram(XglNode *codeBlock); virtual ~XglNodeProgram(); public: virtual XglValue *execute(XglContext *context); private: XglNode *codeBlock; };
memtrip/SQLKing
preprocessor/src/main/resources/Q.java
<filename>preprocessor/src/main/resources/Q.java package com.memtrip.sqlking.gen; import android.database.Cursor; import android.content.ContentValues; import com.memtrip.sqlking.common.SQLQuery; import com.memtrip.sqlking.common.Resolver; import java.util.List; import java.util.ArrayList; public class Q { publ...
mattantonelli/ffxiv-collect
app/models/character_record.rb
<reponame>mattantonelli/ffxiv-collect # == Schema Information # # Table name: character_records # # id :bigint(8) not null, primary key # character_id :integer # record_id :integer # created_at :datetime not null # updated_at :datetime not null # class CharacterRecord < Appl...
louisdem/IMKit
trunk/preflet/main.cpp
<reponame>louisdem/IMKit /* * Copyright 2003-2008, IM Kit Team. * Distributed under the terms of the MIT License. * * Authors: * <NAME> <<EMAIL>> */ #include "PApplication.h" int main(int argc, char* argv[]) { PApplication app; app.Run(); return 0; }
trekmedics/beacon
app/controllers/administrators_controller.rb
class AdministratorsController < AdministrativeInterfaceController before_action :set_administrator, only: [:show, :edit, :update, :destroy] # GET /administrators def index @administrators = Administrator.find_by_data_center(current_user.data_center).all end # GET /administrators/new def new @admi...
felixbinder/tdw
Python/tdw/FBOutput/ImageSensors.py
# automatically generated by the FlatBuffers compiler, do not modify # namespace: FBOutput import tdw.flatbuffers class ImageSensors(object): __slots__ = ['_tab'] @classmethod def GetRootAsImageSensors(cls, buf, offset): n = tdw.flatbuffers.encode.Get(tdw.flatbuffers.packer.uoffset, b...
rohinigaonkar/deltacloud
clients/cimi/lib/entities/network.rb
# 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 use...
StefanRomanov/Ask-Me-Anything
back-end/util/pagination.js
<reponame>StefanRomanov/Ask-Me-Anything module.exports = (page, pageSize ) => { const offset = page * pageSize; const limit = pageSize; return { offset, limit, } };
Sajaki/intellij-community
python/python-psi-api/src/com/jetbrains/python/PyTokenTypes.java
/* * Copyright 2000-2014 JetBrains s.r.o. * * 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 agre...
tudorv91/SparkJNI
sparkjni-examples/src/main/java/sparkJNIPi/SparkJNIPi.java
<filename>sparkjni-examples/src/main/java/sparkJNIPi/SparkJNIPi.java<gh_stars>10-100 package sparkJNIPi; import org.apache.spark.SparkConf; import org.apache.spark.api.java.JavaRDD; import org.apache.spark.api.java.JavaSparkContext; import org.apache.spark.api.java.function.Function; import org.apache.spark.api.java.f...
coder-qi/leetcode-algs
src/main/CountingBits.java
<reponame>coder-qi/leetcode-algs import java.util.Arrays; /** * 338. 比特位计数:https://leetcode-cn.com/problems/counting-bits/ */ public class CountingBits { public static int[] countBits(int n) { int[] result = new int[n + 1]; for (int i = 0; i <= n; i++) { result[i] = i % 2 == 0 ? resu...
achilex/MgDev
Oem/dbxml/dbxml/src/utils/shell/QueryCommand.cpp
// // See the file LICENSE for redistribution information. // // Copyright (c) 2002,2009 Oracle. All rights reserved. // // #include "QueryCommand.hpp" #include <sstream> using namespace DbXml; using namespace std; string QueryCommand::getCommandName() const { return "query"; } string QueryCommand::getBriefHelp(...
jainsakshi2395/linux
arch/ia64/include/asm/xtp.h
<gh_stars>10-100 /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_IA64_XTP_H #define _ASM_IA64_XTP_H #include <asm/io.h> #ifdef CONFIG_SMP #define XTP_OFFSET 0x1e0008 #define SMP_IRQ_REDIRECTION (1 << 0) #define SMP_IPI_REDIRECTION (1 << 1) extern unsigned char smp_int_redirect; /* * XTP control functions: ...
thisismana/frontend
static/src/javascripts/projects/common/modules/crosswords/clues.js
<filename>static/src/javascripts/projects/common/modules/crosswords/clues.js /* jshint newcap: false */ define([ 'common/utils/_', 'react' ], function ( _, React ) { var classSet = React.addons.classSet, Clue = React.createClass({ onClick: function (event) { event...
jimyuan/wallscreen
src/charts/lineData.js
<gh_stars>0 import common from 'CHARTS/commonData' // const textStyle = common.textStyle const xAxis = [{ type: 'category', axisLine: { lineStyle: { color: common.lineColor } }, axisTick: { show: false }, data: [] }, { type: 'category', position: 'top', axisLine: { onZero: fals...
automaton82/pspace
CommonGame/MathUtil.cpp
#include "MathUtil.h" #include <math.h> #include <stdlib.h> //for rand namespace MathUtil { double round(double value) { double retval = value; double roundedLow = ::floor(value); double roundedHigh = ::ceil(value); double absDiffHigh = fabs(value - roundedHigh); double absDiffLow = fabs(value - rounded...
norrs/logevents
logevents/src/main/java/org/logevents/observers/file/FileChannelTracker.java
<reponame>norrs/logevents package org.logevents.observers.file; import org.logevents.observers.FileLogEventObserver; import org.logevents.status.LogEventStatus; import org.logevents.util.ExceptionUtil; import java.io.IOException; import java.nio.ByteBuffer; import java.nio.channels.FileChannel; import java.nio.channe...
sreekanth1990/djangoproject.com
docs/migrations/0003_auto_20171107_1513.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-11-07 15:13 from __future__ import unicode_literals import django.contrib.postgres.fields.jsonb import django.contrib.postgres.indexes import django.contrib.postgres.search from django.contrib.postgres.operations import TrigramExtension from django.db import...
highiq/angular.next
client/app/components/my/organize/my-code-repositories/my-code-repositories.component.js
import template from './my-code-repositories.html'; import controller from './my-code-repositories.controller'; import './my-code-repositories.styl'; let myCodeRepositoriesComponent = function () { return { restrict: 'E', scope: {}, template, controller, controllerAs: 'vm', bindToController: ...