repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
psmware-ltd/nautobot
nautobot/dcim/api/urls.py
<filename>nautobot/dcim/api/urls.py<gh_stars>100-1000 from nautobot.core.api import OrderedDefaultRouter from . import views router = OrderedDefaultRouter() router.APIRootView = views.DCIMRootView # Sites router.register("regions", views.RegionViewSet) router.register("sites", views.SiteViewSet) # Racks router.regi...
CallumNZ/fits
internal/valid/valid.go
<filename>internal/valid/valid.go package valid import ( "errors" "fmt" "net/http" "net/url" "regexp" "strconv" "strings" "time" ) //srsName e.g., EPSG:4326 //within e.g., POLYGON((177.18+-37.52,177.19+-37.52,177.20+-37.53,177.18+-37.52)) var ( textRE, textErr = regexp.Compile(`^[0-9a-zA-Z\-\,\.]+$`) s...
RFSH/chaise
record/record.utils.js
<filename>record/record.utils.js<gh_stars>0 (function() { 'use strict'; angular.module('chaise.record') .factory('constants', [function(){ return { defaultPageSize: 25, MAX_CONCURENT_REQUEST: 6 }; }]) .factory('recordAppUtils', ['constants', 'D...
yjhexy/simple-report
src/main/java/com/orange/commons/cache/HessianJedisClusterMemcachedTemplate.java
<gh_stars>1-10 package com.orange.commons.cache; import com.orange.commons.utils.Hessian2SerializerUtils; import redis.clients.jedis.JedisCluster; /** * 使用 hessian2 协议序列化的 jedis 工具类 * * @author 小天 * @date 2019/2/13 9:31 */ public class HessianJedisClusterMemcachedTemplate extends JedisClusterMemcachedTemplate { ...
CruGlobal/common_engine
app/models/ccc/mpd_letter_image.rb
<reponame>CruGlobal/common_engine class Ccc::MpdLetterImage < ActiveRecord::Base end
acidburn0zzz/llvm-project
clang/test/CodeGen/RISCV/rvv-intrinsics/vredor.c
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py // REQUIRES: riscv-registered-target // RUN: %clang_cc1 -triple riscv64 -target-feature +experimental-v -disable-O0-optnone -emit-llvm %s -o - | opt -S -mem2reg | FileCheck --check-prefix=CHECK-RV64 %s #include <riscv_vector.h> // // CHECK-...
lel352/Curso-Python
aulaspythonbasico/aula13/aula13.py
# Documentação e funções built-in úteis # python não converte um dado para outro tipo dinamicamente o programador tem que mandar ele fazer isso num1 = input('Número 1: ') num2 = input('Número 2: ') #isnumeric isdigit isdecimal # Verificando se só tem numeros e positivos print(num1.isnumeric()) # não preocupado com n...
livehybrid/addonfactory-ucc-generator
splunk_add_on_ucc_framework/UCC-UI-lib/bower_components/SplunkWebCore/build_tools/web_loaders/splunk-es6-polyfill-loader.js
var coreJSRequire = 'require(\'core-js/es6\');\n'; var useStrictRegExp = /^['"]use strict['"];?/; /** * A webpack loader that prepends a require statement importing * the core-js ES6 polyfill. Handles 'use strict' statements if * they appear at the very beginning of the resource. * * @param content - module conte...
StGrail/AlleyCat-bot
handlers/command_info.py
<gh_stars>0 from aiogram import types from aiogram.dispatcher import FSMContext from aiogram.dispatcher.filters.builtin import Command from FSM.Registation_states import Registration_form from constants.text_messages import START_INFO from keyboards.inline_kb import are_you_ready, gender from utils.config import admin...
domydev/Dark-Basic-Pro
Dark Basic Public Shared/Official Plugins/Enhancement Pack/Code/ogg vorbis/Core.cpp
<filename>Dark Basic Public Shared/Official Plugins/Enhancement Pack/Code/ogg vorbis/Core.cpp //////////////////////////////////////////////////////////////////// // INFORMATION ///////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////// /* CORE SET UP C...
llwantedl/Bank-currency-test
src/main/java/com/test/privat/currency/models/dtolayer/services/UserDetailsDTOServiceImpl.java
package com.test.privat.currency.models.dtolayer.services; import com.test.privat.currency.models.dtolayer.converter.DTOConverter; import com.test.privat.currency.models.dtolayer.wrappers.UserDetailsWrapper; import com.test.privat.currency.models.entities.User; import org.springframework.beans.factory.annotation.Autow...
rtortajada/osgjs
sources/osgDB/Registry.js
<reponame>rtortajada/osgjs 'use strict'; var Notify = require( 'osg/notify' ); /** * This is a very simplistic version of the OSG registry, we could * expand/improve it in the future */ var Registry = { instance: function () { if ( !Registry._instance ) { Registry._instance = Registry; ...
paullewallencom/spring-978-1-7858-8827-4
_src/Chapter 06/Ch06/src/main/java/org/packt/hotel/portal/controller/ThymeleafController.java
package org.packt.hotel.portal.controller; import org.packt.hotel.portal.exception.GuestFoundException; import org.packt.hotel.portal.model.data.HmsUserProfile; import org.packt.hotel.portal.model.form.ProfileForm; import org.packt.hotel.portal.service.HotelService; import org.packt.hotel.portal.service.UserService; i...
mepsd/CLAC
user_account/tests/test_views.py
<reponame>mepsd/CLAC<gh_stars>100-1000 from model_mommy import mommy from calc.tests.common import ProtectedViewTestCase from data_capture.models import SubmittedPriceList class AccountTests(ProtectedViewTestCase): url = '/account/' def test_get_is_ok(self): self.login() res = self.client.ge...
figment-networks/indexing-engine
worker/process/ranged/ranged.go
<gh_stars>10-100 package ranged import ( "context" "sync" "github.com/figment-networks/indexing-engine/structs" ) type hBTx struct { Height uint64 Last bool } type OutH struct { Height uint64 Block structs.BlockWithMeta Error error } type BTX interface { BlockAndTx(ctx context.Context, height uint64) ...
lszzy/FWFramework
Example/Mediator/Test/Test/Classes/Private/Framework/TestNotificationViewController.h
// // TestNotificationViewController.h // Example // // Created by wuyong on 2019/9/3. // Copyright © 2019 wuyong.site. All rights reserved. // #import "TestViewController.h" NS_ASSUME_NONNULL_BEGIN @interface TestNotificationViewController : TestViewController @end NS_ASSUME_NONNULL_END
eaglesjava/kissy
src/tabs/src/tabs/panel.js
<filename>src/tabs/src/tabs/panel.js<gh_stars>1-10 /** * @ignore * single tab panel. * @author <EMAIL> */ var Container = require('component/container'); /** * KISSY.Tabs.Panel.xclass: 'tabs-panel'. * @class KISSY.Tabs.Panel * @extends KISSY.Component.Container */ module.exports = Container.extend({ isTabs...
ScalablyTyped/SlinkyTyped
o/office-js-preview/src/main/scala/typingsSlinky/officeJsPreview/Word/Interfaces/SettingCollectionLoadOptions.scala
<reponame>ScalablyTyped/SlinkyTyped package typingsSlinky.officeJsPreview.Word.Interfaces import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} /** * * Contains the collection of...
davepallot/OSKAR
oskar/telescope/station/element/oskar_evaluate_dipole_pattern_cuda.h
<gh_stars>1-10 /* * Copyright (c) 2014, The University of Oxford * 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. Redistributions of source code must retain the above copyright notice, ...
Benefit-Zebra/ballistica
src/ballistica/input/device/test_input.h
<reponame>Benefit-Zebra/ballistica<gh_stars>100-1000 // Released under the MIT License. See LICENSE for details. #ifndef BALLISTICA_INPUT_DEVICE_TEST_INPUT_H_ #define BALLISTICA_INPUT_DEVICE_TEST_INPUT_H_ #include "ballistica/ballistica.h" namespace ballistica { class TestInput { public: TestInput(); virtual ~...
arturodrigues/carbon
.storybook/theme-selectors.js
<filename>.storybook/theme-selectors.js export const dlsThemeSelector = {}; export const classicThemeSelector = { isClassic: true };
zakharchenkoAndrii/expo
android/versioned-abis/expoview-abi43_0_0/src/main/java/abi43_0_0/host/exp/exponent/modules/api/reanimated/ReanimatedJSIModulePackage.java
<gh_stars>1000+ package abi43_0_0.host.exp.exponent.modules.api.reanimated; import abi43_0_0.com.facebook.react.bridge.JSIModulePackage; import abi43_0_0.com.facebook.react.bridge.JSIModuleProvider; import abi43_0_0.com.facebook.react.bridge.JSIModuleSpec; import abi43_0_0.com.facebook.react.bridge.JSIModuleType; impo...
The-True-Hooha/datafaker
src/main/java/net/datafaker/NatoPhoneticAlphabet.java
package net.datafaker; public class NatoPhoneticAlphabet { private final Faker faker; protected NatoPhoneticAlphabet(Faker faker) { this.faker = faker; } public String codeWord() { return faker.fakeValuesService().resolve("nato_phonetic_alphabet.code_word", this, faker); } }
0xlay/Distance
Client/Module/include/ProcessManagerModule.hpp
#pragma once #include "Module.hpp" #include <Tlhelp32.h> #include <vector> #include <variant> namespace Distance::Module { /* * @brief The ProcessManager class it is interface for control ProcessManager module */ class ProcessManager : public IModule { using ProcessList = std::vector<PROCESSENT...
kinshuk4/algorithm-cpp
src/compete/hackerrank/closest-number.cpp
//closest-number.cpp //Closest Number //Weekly Challenges - Week 5 //Author: derekhh #include<iostream> #include<algorithm> #include<climits> #include <cmath> using namespace std; int main() { int t; cin >> t; while (t--) { int a, b, x; cin >> a >> b >> x; if (b < 0) { //Now a ^ b \in [0,1) if (x !...
nmahoney-pivotal/bosh-bootloader
vendor/github.com/genevieve/leftovers/aws/iam/users.go
package iam import ( "fmt" "strings" awsiam "github.com/aws/aws-sdk-go/service/iam" "github.com/genevieve/leftovers/aws/common" ) type usersClient interface { ListUsers(*awsiam.ListUsersInput) (*awsiam.ListUsersOutput, error) DeleteUser(*awsiam.DeleteUserInput) (*awsiam.DeleteUserOutput, error) } type Users s...
zenOSmosis/reshell
src/hooks/useAppRegistrationLink.js
import { useCallback, useMemo } from "react"; // TODO: Refactor import useAppOrchestrationContext from "./useAppOrchestrationContext"; // TODO: Move to @core/hooks // FIXME: (jh) Is there any reason to not just use the appDescriptor itself, // and not the ID? // TODO: Document export default function useAppRegistrat...
miguelsorianod/kas-fleet-manager
internal/kafka/internal/handlers/data_plane_kafka.go
<filename>internal/kafka/internal/handlers/data_plane_kafka.go package handlers import ( "github.com/bf2fc6cc711aee1a0c2a/kas-fleet-manager/internal/kafka/internal/api/private" "github.com/bf2fc6cc711aee1a0c2a/kas-fleet-manager/internal/kafka/internal/presenters" "github.com/bf2fc6cc711aee1a0c2a/kas-fleet-manager/i...
labcart/micro-services-nutshell
order-service/src/main/java/io/github/devbhuwan/microservices/nutshell/order/service/api/RESTOrderCatalogService.java
<filename>order-service/src/main/java/io/github/devbhuwan/microservices/nutshell/order/service/api/RESTOrderCatalogService.java package io.github.devbhuwan.microservices.nutshell.order.service.api; import io.github.devbhuwan.microservices.nutshell.order.domain.Order; import io.github.devbhuwan.microservices.nutshell.o...
ornata/llvm-project
libcxx/include/__algorithm/in_out_result.h
// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===------------...
PSP-Archive/System-Interface-Library
external/libwebmdec/test/seek.c
/* * libwebmdec: a decoder library for WebM audio/video streams * Copyright (c) 2014-2019 <NAME> <<EMAIL>> * * This software may be copied and redistributed under certain conditions; * see the file "COPYING" in the source code distribution for details. * NO WARRANTY is provided with this software. */ #include "...
cloudfoundry-incubator/cf-networking
src/code.cloudfoundry.org/garden-external-networker/adapter/namespace_adapter.go
<reponame>cloudfoundry-incubator/cf-networking package adapter import "github.com/containernetworking/plugins/pkg/ns" type NamespaceAdapter struct{} func (n *NamespaceAdapter) GetNS(path string) (ns.NetNS, error) { return ns.GetNS(path) } func (n *NamespaceAdapter) GetCurrentNS() (ns.NetNS, error) { return ns.Get...
victorovejero/ejemplos-2022
tema-8/fizzbuzz/src/test/java/ActualFizzBuzzAppTest.java
import org.junit.Test; import uk.co.compendiumdev.fizzbuzz.FizzBuzzConverter; public class ActualFizzBuzzAppTest { @Test public void outputTheHundredFizzBuzzes(){ FizzBuzzConverter fizzBuzz = new FizzBuzzConverter(); for(int i=1; i<=100; i++){ System.out.println(fizzBuzz.convert(...
ordinary-developer/education
books/tech/cpp/qt/m_shlee-qt_5_10/ch_14-events/02-qmouse_event/MouseObserver.hpp
<reponame>ordinary-developer/education #pragma once #include <QtWidgets> class MouseObserver : public QLabel { public: MouseObserver(QWidget * pWgt = nullptr); protected: virtual void mousePressEvent(QMouseEvent* pEvent) final override; virtual void mouseReleaseEvent(QMouseEve...
cjoakim/azure-cosmosdb
code/java/async/src/main/java/org/cjoakim/cosmos/App.java
package org.cjoakim.cosmos; import com.azure.cosmos.ConsistencyLevel; import com.azure.cosmos.CosmosAsyncClient; import com.azure.cosmos.CosmosAsyncContainer; import com.azure.cosmos.CosmosAsyncDatabase; import com.azure.cosmos.CosmosClientBuilder; import com.azure.cosmos.CosmosException; import com.azure.cosmos.mode...
criteo/berilla
src/main/scala/com/criteo/dev/cluster/copy/FullCopyTableAction.scala
<gh_stars>10-100 package com.criteo.dev.cluster.copy import com.criteo.dev.cluster._ import com.criteo.dev.cluster.config.GlobalConfig import org.slf4j.LoggerFactory /** * Copy over all table data. */ class FullCopyTableAction(config: GlobalConfig, conf: Map[String, String], source: Node, target: Node) { priva...
AudithSoftworks/LodgeOfSorceresses-Event-Planner
cypress/fixtures/xhr-operations/skills.js
<reponame>AudithSoftworks/LodgeOfSorceresses-Event-Planner export const skills = cy => { cy.fixture('.skills.json').as('skills'); cy.route({ method: 'GET', url: '/api/skills', response: '@skills', }).as('loadSkills'); };
lucasccordeiro/cbmc
src/goto-programs/class_identifier.cpp
/*******************************************************************\ Module: Extract class identifier Author: <NAME>, <EMAIL> \*******************************************************************/ /// \file /// Extract class identifier #include "class_identifier.h" #include <util/std_expr.h> #include <util/c_type...
14ms/Minecraft-Disclosed-Source-Modifications
Catware/me/earth/phobos/features/modules/render/Ranges.java
<gh_stars>1-10 package me.earth.phobos.features.modules.render; import java.awt.Color; import java.util.ArrayList; import me.earth.phobos.Phobos; import me.earth.phobos.event.events.Render3DEvent; import me.earth.phobos.features.modules.Module; import me.earth.phobos.features.setting.Setting; import me.earth.phobos.ut...
GeneralZero/CS-577-Final-Project
attitude_adjustment/target/linux/s3c24xx/files-2.6.30/drivers/ar6000/include/dbglog_id.h
/* * * Copyright (c) 2004-2007 Atheros Communications Inc. * All rights reserved. * * $ATH_LICENSE_HOSTSDK0_C$ * * This file contains the definitions of the debug identifiers for different * modules. * */ #ifndef _DBGLOG_ID_H_ #define _DBGLOG_ID_H_ #ifdef __cplusplus extern "C" { #endif /* * The nomenclat...
ysBach/irafdocgen
iraf.v2161/pkg/cl/scan.c
/* Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. */ #define import_spp #define import_libc #define import_stdio #include <iraf.h> #include "config.h" #include "operand.h" #include "param.h" #include "grammar.h" #include "task.h" #include "errs.h" #include "proto.h" /* * SCAN -- free...
zhouhaifeng/vpe
src/frr/bfdd/bfdd.c
<gh_stars>0 /* * BFD daemon code * Copyright (C) 2018 Network Device Education Foundation, Inc. ("NetDEF") * * FRR 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; either version 2, or (at your option) an...
fullirondesign/strapi-heroku
web-client/.cache/async-requires.js
// prefer default export if available const preferDefault = m => m && m.default || m exports.components = { "component---src-pages-index-js": () => import("C:\\Users\\ilyafefelov\\Dropbox\\Code\\strapi-heroku\\good-ua\\web-client\\src\\pages\\index.js" /* webpackChunkName: "component---src-pages-index-js" */), "co...
praetorian-thendrickson/msgraph-sdk-go
groups/item/team/operations/item/teams_async_operation_item_request_builder.go
<filename>groups/item/team/operations/item/teams_async_operation_item_request_builder.go<gh_stars>0 package item import ( ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9 "github.com/microsoft/kiota/abstractions/go" i4a838ef194e4c99e9f2c63ba10dab9cb120a89367c1d4ab0daa63bb424e20d87 "github.com/...
Superomeg4/pyleecan
Methods/Machine/WindingDW2L/get_dim_wind.py
<reponame>Superomeg4/pyleecan<filename>Methods/Machine/WindingDW2L/get_dim_wind.py # -*- coding: utf-8 -*- """@package Methods.Machine.Winding.get_dim_wind Compute the Winding Matrix Dimension Method @date Created on Fri Jan 15 11:03:49 2016 @copyright (C) 2015-2016 EOMYS ENGINEERING. @author pierre_b @todo unittest it...
vmayoral/Vitis_Libraries
dsp/L1/tests/aie/inc/fir_sr_sym_ref.hpp
/* * Copyright 2021 Xilinx, Inc. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
emaphis/Introduction_to_Java_Programming
Introduction_to_Java_Programming/src/chapter08/exercise/exercise08_26/RowSorting.java
/* * Exercise 8.26 * (Row sorting) Implement the following method to sort the rows in a two- * dimensional array. A new array is returned and the original array is intact. * * public static double[][] sortRows(double[][] m) * * Write a test program that prompts the user to enter a 3 * 3 matrix of double ...
hgmelectronics/xcpsetup
src/libsetuptools/LinearSlot.cpp
<reponame>hgmelectronics/xcpsetup #include "LinearSlot.h" #include "util.h" namespace SetupTools { LinearSlot::LinearSlot(QObject *parent) : Slot(parent), mEngrA(NAN), mEngrB(NAN), mOorEngr(NAN), mRawA(quint32(0)), mRawB(quint32(0)), mOorRaw(quint32(0xFFFFFFFF)), mValidato...
krautbox/smarthome18
src/de/hsb/smarthome/alternative/RemoteController.java
<filename>src/de/hsb/smarthome/alternative/RemoteController.java package de.hsb.smarthome.alternative; import java.io.IOException; import java.security.KeyManagementException; import java.security.NoSuchAlgorithmException; import java.util.ArrayList; import java.util.List; import javax.xml.parsers.ParserConfi...
sofwerx/OSUS-R
mil.dod.th.ose.datastream/test/mil/dod/th/ose/datastream/TestStreamProfileRegistryCallback.java
//============================================================================== // This software is part of the Open Standard for Unattended Sensors (OSUS) // reference implementation (OSUS-R). // // To the extent possible under law, the author(s) have dedicated all copyright // and related and neighboring rights to t...
Quantisan/WholeCell
simulation/doc/doxygen/html/index_8php.js
<filename>simulation/doc/doxygen/html/index_8php.js var index_8php = [ [ "$content", "index_8php.html#a57b284fe00866494b33afa80ba729bed", null ], [ "$data", "index_8php.html#a6efc15b5a2314dd4b5aaa556a375c6d6", null ], [ "$dirId", "index_8php.html#aa6f717bb2e5ba54d7b92c9292453c495", null ] ];
dmytro-sylaiev/commons-net
src/test/java/org/apache/commons/net/ftp/parser/NTFTPEntryParserTest.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 may ...
zenglongGH/spresense
externals/cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/rtx_core_c.h
<reponame>zenglongGH/spresense /* * Copyright (c) 2013-2018 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * 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 * ...
Alejandro-Fuste/Python_Javascript_ReimbursementApp
page_object_model/home_page.py
<filename>page_object_model/home_page.py<gh_stars>0 from selenium.webdriver.chrome.webdriver import WebDriver from selenium.webdriver.common.by import By from selenium.webdriver.remote.webelement import WebElement from selenium.webdriver.support.select import Select class HomePage: def __init__(self, driver: WebD...
random-logic/AP_CSA
BlueJ/WS11F/Ship.java
<gh_stars>0 /** * Ship * @author Andrew * @version 2020 */ class Ship { private String name; private int year; /** * Constructor * @param name Name of the ship * @param year Year ship is built */ public Ship (String name, int year) { this.name = name; this.year = year; } /** * ...
sal562/life-logger-fe
src/components/LogoutButton.js
<gh_stars>1-10 /** @jsx jsx */ import { jsx } from 'theme-ui'; import { Button } from '@theme-ui/components'; const LogoutButton = () => { const logoutFun = () => { localStorage.clear(); window.location.href = '/'; }; return <Button onClick={logoutFun}>Logout Here</Button>; }; export default LogoutButto...
LiveUSD/Nova-Exchange
stories/checkbox.stories.js
import React from 'react'; import { storiesOf } from '@storybook/react'; import Checkbox from '../components/Order/OrderMain/OrderState/OrderInitial/Checkbox/Checkbox'; import '../css/index.scss'; storiesOf('Checkboxes', module) .add('Terms and Conditions', () => <Checkbox name="checkboxTC" order='order.iAgreedTC' ...
jeffpuzzo/jp-rosa-react-form-wizard
node_modules/@patternfly/react-tokens/dist/js/c_alert_m_inline_m_success_BackgroundColor.js
"use strict"; exports.__esModule = true; exports.c_alert_m_inline_m_success_BackgroundColor = { "name": "--pf-c-alert--m-inline--m-success--BackgroundColor", "value": "#f3faf2", "var": "var(--pf-c-alert--m-inline--m-success--BackgroundColor)" }; exports["default"] = exports.c_alert_m_inline_m_success_BackgroundCo...
hundanLi/guli-mall
gulimall-common/src/main/java/com/hundanli/common/utils/Utils.java
package com.hundanli.common.utils; /** * @author li * @version 1.0 * @date 2020-05-22 14:36 **/ public class Utils { public static boolean isNumeric(String str) { if (str == null || "".equals(str.trim())) { return false; } int sz = str.length(); for (int i = 0; i < s...
Mortimyrrh/Mycelia-Forge
build/tmp/expandedArchives/forge-1.16.5-36.1.0_mapped_official_1.16.5-sources.jar_01fb3b8234f72f7172716347a075bc60/net/minecraft/resources/ServerPackFinder.java
package net.minecraft.resources; import java.util.function.Consumer; public class ServerPackFinder implements IPackFinder { private final VanillaPack vanillaPack = new VanillaPack("minecraft"); public void loadPacks(Consumer<ResourcePackInfo> p_230230_1_, ResourcePackInfo.IFactory p_230230_2_) { Resource...
aurbit/strategy-game
packages/truffle/constants/earth-coords.js
<filename>packages/truffle/constants/earth-coords.js module.exports = [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Azn9/ToornamentClient
src/main/java/com/brentonpoke/toornamentclient/model/request/WebhookQuery.java
<gh_stars>0 package com.brentonpoke.toornamentclient.model.request; import lombok.Builder; import lombok.Getter; @Getter @Builder public class WebhookQuery { Boolean enabled; String url, name; }
mcmaxwell/frontier
frontier/content/urls.py
from django.conf.urls import url from django.contrib import admin from . import views urlpatterns = [ url(r'^api/pages/$', views.pages_json, name='api-pages'), ]
isdidum/didum-gitrepo
java-experiment/iexperiment/src/pinterface/ComparableA.java
<filename>java-experiment/iexperiment/src/pinterface/ComparableA.java package pinterface; /** * @author <NAME> * @date February 26, 2013 * @description Comparable --i'm still working on this */ public interface ComparableA { }
nnn3d/vk-bot
classes/db/UserStatistics.js
<filename>classes/db/UserStatistics.js let mongoose = require('mongoose'); let userStatisticsSchema = mongoose.Schema({ userId: { type: Number, required: true, }, chatId: { type: Number, required: true, }, countSymbols: { type: Number, default: 0, ...
kreiger/capricious
src/main/java/com/linuxgods/kreiger/javafx/SingleOrDoubleClickMouseEventHandler.java
package com.linuxgods.kreiger.javafx; import io.netty.util.concurrent.DefaultThreadFactory; import javafx.event.EventHandler; import javafx.event.EventType; import javafx.scene.Node; import javafx.scene.Scene; import javafx.scene.input.MouseButton; import javafx.scene.input.MouseEvent; import java.awt.*; import java....
frc5024/InfiniteRecharge
src/main/java/frc/lib5k/kinematics/DriveSignal.java
<reponame>frc5024/InfiniteRecharge package frc.lib5k.kinematics; /** * A collection of differential drivebase motor values */ public class DriveSignal { private double l, r; /** * Create a DriveSignal from values. These do not have to be direct outputs * * @param l Left value * @param ...
sitegate/sitegate-admin
public/src/modules/user/controllers/user-edit-controller.js
'use strict'; module.exports = ['$scope', '$stateParams', '$http', 'growl', 'UserService', 'ClientService', function UserEditController($scope, $stateParams, $http, growl, User, Client) { $scope.user = User.get({ id: $stateParams.userId }); $scope.clients = Client.query({ creatorId: $sta...
kaungsgit/Python_DSP
DSP2/model_interleaved_filter.py
import numpy as np import matplotlib.pyplot as plt import scipy.signal as sig import custom_tools.fftplot as fftplot import custom_tools.handyfuncs as hf import scipy.fftpack as fft import DSP2.model_DAC as model_DAC import DSP2.model_NCO as model_NCO # IL spur summary, so far... # Fs of combined IL filter is 10M, ak...
einride/iam-go
iamtest/fixture.go
<gh_stars>10-100 package iamtest import ( "context" "testing" "go.einride.tech/iam/iampolicy" "go.einride.tech/iam/iamspanner" "google.golang.org/genproto/googleapis/iam/v1" "gotest.tools/v3/assert" ) // Fixture is a test fixture with helper methods for IAM testing. type Fixture struct { server *iamspanner.IA...
rimuln/arquillian-core
core/impl-base/src/test/java/org/jboss/arquillian/core/impl/InstanceImplTestCase.java
<gh_stars>100-1000 /* * JBoss, Home of Professional Open Source * Copyright 2010 Red Hat Inc. and/or its affiliates and other contributors * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * Licensed under the Apache License, Version 2.0 (the "Lice...
kubernetes-sigs/clife_cluster-api
internal/controllers/topology/cluster/structuredmerge/drop_diff_test.go
<filename>internal/controllers/topology/cluster/structuredmerge/drop_diff_test.go /* Copyright 2022 The Kubernetes 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...
guatek/Dual-Mag-Control
include/SystemTrigger.h
<reponame>guatek/Dual-Mag-Control #ifndef _SYSTEMTRIGGER #define _SYSTEMTRIGGER #include <Adafruit_ZeroTimer.h> #define FLASH_DELAY_OFFSET 3 #define MIN_FLASH_DURATION 1 // Flash Triggers Adafruit_ZeroTimer highMagTimer = Adafruit_ZeroTimer(3); Adafruit_ZeroTimer lowMagTimer = Adafruit_ZeroTimer(5); // Sensor Poll...
leadpony/johnzon
johnzon-core/src/main/java/org/apache/johnzon/core/JohnzonJsonParser.java
<filename>johnzon-core/src/main/java/org/apache/johnzon/core/JohnzonJsonParser.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...
wujifengcn/binary-proto
binary-proto-java/src/test/java/test/com/jd/binaryproto/contract/AddressOrderDuplicate.java
package test.com.jd.binaryproto.contract; import com.jd.binaryproto.DataContract; import com.jd.binaryproto.DataField; import com.jd.binaryproto.PrimitiveType; /** * Created by zhangshuang3 on 2018/7/9. */ @DataContract(code=0x03, name="Address" , description="") public interface AddressOrderDuplicate { @DataF...
adobley/cloud_controller_ng
app/actions/revision_create.rb
<reponame>adobley/cloud_controller_ng<gh_stars>0 module VCAP::CloudController class RevisionCreate class << self def create(app) RevisionModel.db.transaction do next_version = calculate_next_version(app) if (existing_revision_for_version = RevisionModel.find(app: app, version: n...
vwalsh/jsbattle
packages/jsbattle-server/app/services/leagueScheduler/actions/storeBattleResults.js
<reponame>vwalsh/jsbattle<filename>packages/jsbattle-server/app/services/leagueScheduler/actions/storeBattleResults.js module.exports = async function(ctx) { let refData = ctx.params.refData; let ubd = JSON.stringify(ctx.params.ubd); let teamList = ctx.params.teamList; if(!teamList || teamList.length != 2) { ...
wytalw/datashops
datashops-model/src/main/java/com/bigdata/datashops/model/vo/VoJobResult.java
package com.bigdata.datashops.model.vo; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; @Data @Builder @NoArgsConstructor @AllArgsConstructor public class VoJobResult { // private String time; // // private String type; private Object value; }
codedsk/hubcheck
bin/contribtool_upload.py
<reponame>codedsk/hubcheck<gh_stars>1-10 #! /usr/bin/env python # # usage: # ./contribtool_upload [options] # # options: # --config <hub-config> # # examples: # ./contribtool_upload \ # --config hub.conf \ # workspace.json import hubcheck import json import os # define global data files class...
ThanhAnNguyen2014/TheUltimateMicroServicesTemplate
Stegeriluminacion/excepciones/src/main/java/steger/excepciones/_config/languaje/Translator.java
<gh_stars>1-10 package steger.excepciones._config.languaje; import java.util.Locale; import org.springframework.context.i18n.LocaleContextHolder; import org.springframework.context.support.ResourceBundleMessageSource; import org.springframework.stereotype.Component; @Component public class Translator { public stat...
PASSIONLab/MaskedSpGEMM
timsort-cpp/include/tim/minrun.h
<filename>timsort-cpp/include/tim/minrun.h #ifndef TIMSORT_MINRUN_H #define TIMSORT_MINRUN_H namespace tim { namespace internal { /* * Modified variant of the compute_minrun() function used in CPython's * list_sort(). * * The CPython version of this function chooses a value in [32, 65) for * minrun. Unl...
bodastage/bts-database
alembic/versions/5b8d91271e45_create_table_for_4g_external_cells.py
<gh_stars>1-10 """Create table for 4G external cells Revision ID: <KEY> Revises: 0588ebb5527a Create Date: 2018-05-23 07:29:17.642000 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '<KEY>' down_revision = '0588ebb5527a' branch_labels = None depends_on = None ...
eZmaxinc/eZmax-SDK-cpp-restsdk
model/Ezsignfoldersignerassociation_createObject_v1_Request.h
/** * eZmax API Definition * This API expose all the functionnalities for the eZmax and eZsign applications. * * The version of the OpenAPI document: 1.1.3 * Contact: <EMAIL> * * NOTE: This class is auto generated by OpenAPI-Generator 5.3.1-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class man...
lechium/iOS1351Headers
System/Library/PrivateFrameworks/MapsSuggestions.framework/MapsSuggestionsStrategy.h
/* * This header is generated by classdump-dyld 1.5 * on Wednesday, October 27, 2021 at 3:17:06 PM Mountain Standard Time * Operating System: Version 13.5.1 (Build 17F80) * Image Source: /System/Library/PrivateFrameworks/MapsSug...
Nhemesy/PlayFootbalManager
app/src/main/java/com/pedrodavidlp/footballmanager/FootballApplication.java
<reponame>Nhemesy/PlayFootbalManager<filename>app/src/main/java/com/pedrodavidlp/footballmanager/FootballApplication.java package com.pedrodavidlp.footballmanager; import android.app.Application; import android.content.Context; import com.pedrodavidlp.footballmanager.di.AppComponent; import com.pedrodavidlp.footballm...
kuikuitage/NewCool-UC-3.1.0-priv
montage-tech/src/mdl/filters/music_play_filter/mp3_trans_filter/mp3_transfer_filter_intra.h
/********************************************************************************************/ /********************************************************************************************/ #ifndef __MP3_TRANS_FILTER_INTRA_H_ #define __MP3_TRANS_FILTER_INTRA_H_ /*! private data */ typedef struct tag_mp3_trans_fi...
sjackso/ambry
ambry-frontend/src/main/java/com.github.ambry.frontend/GetSignedUrlHandler.java
<filename>ambry-frontend/src/main/java/com.github.ambry.frontend/GetSignedUrlHandler.java /* * Copyright 2017 LinkedIn Corp. 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 Lic...
kimixuchen/Codeforces
Codeforces #353 DIV2/B.cpp
<reponame>kimixuchen/Codeforces /** *Codeforces Round #353 DIV2 B *18/05/16 07:44:53 *xuchen * */ #include <stdio.h> #include <iostream> #include <cmath> #include <cstring> #include <map> #include <stdlib.h> #include <algorithm> #include <queue> using namespace std; const int N = 100005; int main(int argc, char* ...
gregorydgraham/DBvolution
src/main/java/nz/co/gregs/dbvolution/databases/PostgresDBOverSSL.java
<filename>src/main/java/nz/co/gregs/dbvolution/databases/PostgresDBOverSSL.java /* * Copyright 2013 <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.o...
zaqwes8811/coordinator-tasks
buffer/scripts-emb-ext/projects/expose-free-function/setup.py
#-*- coding: utf-8 -*- ''' TODO : узнать как выбирать компиятор и его ключи(директивы) TODO : подключить чисто Си компилятор python setup.py install => последний аргумент как-то используется системой сборки Issues : 1. Не принимает *.c файлы ''' import sys import shutil from di...
CaddyDz/Ruby
p3/ch14/threads/s1/state.rb
t = Thread.new do puts "[Starting thread]" Thread.stop puts "[Resuming thread]" end puts "Status of thread: #{t.status}" puts "Has the thread stopped? #{t.stop?}" puts "Is the thread alive? #{t.alive?}" puts puts "Waking up thread and joining it..." t.wakeup t.join puts puts "Is the thread alive? #{t.alive?}" puts "...
harishpalk/Jadira
usertype.core/src/main/java/org/jadira/usertype/dateandtime/joda/PersistentDateTimeAsUtcString.java
<filename>usertype.core/src/main/java/org/jadira/usertype/dateandtime/joda/PersistentDateTimeAsUtcString.java /* * Copyright 2013 <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 ...
KenWoo/Algorithm
Algorithms/Medium/1503. Last Moment Before All Ants Fall Out of a Plank/answer.py
from tying import List class Solution: def getLastMoment(self, n: int, left: List[int], right: List[int]) -> int: res = 0 for i in left: res = max(res, i) for i in right: res = max(res, n-i) return res if __name__ == "__main__": pass
thekeenant/api.madgrades.com
db/migrate/20180625194343_add_gpa_to_grade_distribution.rb
class AddGpaToGradeDistribution < ActiveRecord::Migration[5.1] def change add_column :grade_distributions, :gpa, :decimal, precision: 7, scale: 5 end end
horcu/balln
sample/src/main/java/com/horcu/apps/balln/models/game/AwayTeam.java
<reponame>horcu/balln<filename>sample/src/main/java/com/horcu/apps/balln/models/game/AwayTeam.java package com.horcu.apps.balln.models.game; import android.os.Parcel; import android.os.Parcelable; import com.fasterxml.jackson.annotation.JsonProperty; import ollie.Model; import ollie.annotation.Column; import ollie.an...
zreed/webpieces
webserver/http-templating/src/main/java/org/webpieces/templating/impl/tags/StyleSheetTag.java
<reponame>zreed/webpieces package org.webpieces.templating.impl.tags; import java.io.PrintWriter; import java.util.Map; import org.webpieces.templating.api.HtmlTag; import org.webpieces.templating.api.RouterLookup; import org.webpieces.templating.api.TemplateUtil; import org.webpieces.templating.impl.GroovyTemplateSu...
jeremiedecock/snippets
python/pyqt/pyqt5/widget_QTreeView_multiple_columns_mail_insert_example.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # See https://pythonspot.com/en/pyqt5-treeview/ import sys from PyQt5.QtCore import Qt from PyQt5.QtGui import QStandardItemModel from PyQt5.QtWidgets import QApplication, QTreeView class MyModel(QStandardItemModel): FROM, SUBJECT, DATE = range(3) def __init__...
FunctionLab/sleipnir
src/seekmap.cpp
/***************************************************************************** * This file is provided under the Creative Commons Attribution 3.0 license. * * You are free to share, copy, distribute, transmit, or adapt this work * PROVIDED THAT you attribute the work to the authors listed below. * For more information,...
lixiupei/rssant
rssant_api/models/union_story.py
<filename>rssant_api/models/union_story.py from django.utils import timezone from django.db import transaction from cached_property import cached_property from rssant_feedlib.processor import story_html_to_text from rssant_common.validator import StoryUnionId, FeedUnionId from rssant_common.detail import Detail from ....
AndreiADASKA/andreiadaska.github.io
ita/triangle/src/main.js
import { getApplicationDiv } from "./lib.js"; import { getHelpText, validateTriangle } from "./triangles/validation.js"; import { isTriangle } from "./triangles/geometry.js"; import { getAnswerPhrase } from "./triangles/output.js"; let sides; let lowerBound; let upperBound; function renderErrorScreen(messages, helpT...