repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
yurigabrich/EnergyPlusShadow
html/structEnergyPlus_1_1PlantPipingSystemsManager_1_1FarfieldInfo.js
<filename>html/structEnergyPlus_1_1PlantPipingSystemsManager_1_1FarfieldInfo.js var structEnergyPlus_1_1PlantPipingSystemsManager_1_1FarfieldInfo = [ [ "groundTempModel", "structEnergyPlus_1_1PlantPipingSystemsManager_1_1FarfieldInfo.html#a2f5fa278f6fc2aea16079ff541b3cca1", null ] ];
little-sparkle/growler_engine_android
library/src/main/java/com/littlesparkle/growler/library/update/UpdateHelper.java
package com.littlesparkle.growler.library.update; import android.content.Context; import android.support.annotation.NonNull; import com.littlesparkle.growler.library.http.BaseHttpSubscriber; import com.littlesparkle.growler.library.http.ErrorResponse; import com.littlesparkle.growler.library.http.api.ApiException; im...
matchd-ch/matchd-backend
api/tests/test_company_add_employee.py
import pytest @pytest.mark.django_db def test_add_employee(login, user_employee, add_employee): company = user_employee.company employee_count = len(company.users.all()) new_username = '<EMAIL>' login(user_employee) data, errors = add_employee(user_employee, new_username, 'John', 'Doe', 'Role') ...
GeertArien/low-level-programming
chapter_11/higher_order/algorithm.c
#include "algorithm.h" void for_each(struct list_t* list, foreach_t* func) { struct list_t* it = list; while (it != NULL) { func(it->value); it = it->next; } } struct list_t* map(struct list_t* list, map_t* func) { struct list_t* it = list; struct list_t* n_list; if (!it) { retur...
matortheeternal/esp.json
src/Generator/TES5/REVB.js
let { def, uint16, int8, div, uint8, format, struct, subrecord, req, record } = require('../helpers'); module.exports = () => { record('REVB', 'Reverb Parameters', { members: [ def('EDID'), req(subrecord('DATA', struct('Data', [ uint16('Decay Time (ms)'), ...
selectiveci/selective
spec/dummy/config/application.rb
# frozen_string_literal: true # Set up gems listed in the Gemfile. ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", __dir__) require "bundler/setup" if File.exist?(ENV["BUNDLE_GEMFILE"]) require "active_record/railtie" Bundler.reset! # must load development here because gemspec dependencies # are loaded ...
VladTrach/elda
elda-lda/src/test/java/com/epimorphics/lda/tests_support/FileManagerModelLoader.java
/* See lda-top/LICENCE (or https://raw.github.com/epimorphics/elda/master/LICENCE) for the licence for this software. (c) Copyright 2011 Epimorphics Limited $Id$ */ package com.epimorphics.lda.tests_support; import com.epimorphics.lda.core.ModelLoader; import com.epimorphics.lda.support.EldaFileM...
petamoriken/deno
cli/compat/testdata/conditions/node_modules/imports_exports/require_polyfill.js
<gh_stars>1000+ module.exports = { polyfill: "require", };
YoufuLi/radlog
datalog/src/main/java/edu/ucla/cs/wis/bigdatalog/database/type/DbShort.java
package edu.ucla.cs.wis.bigdatalog.database.type; import edu.ucla.cs.wis.bigdatalog.database.index.MurmurHash; import edu.ucla.cs.wis.bigdatalog.database.store.ByteArrayHelper; import edu.ucla.cs.wis.bigdatalog.exception.InterpreterException; import edu.ucla.cs.wis.bigdatalog.measurement.MemoryMeasurement; import edu....
madanrajhari10/oci-service-operator
vendor/github.com/oracle/oci-go-sdk/v65/database/update_vm_cluster_details.go
// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose ei...
wrldwzrd89/older-java-games
Fantastle5/src/net/worldwizard/scoremanager/Score.java
/* Fantastle: A Maze-Solving Game Copyright (C) 2008-2010 <NAME> This program 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 3 of the License, or (at your option) any later version. This program...
adunStudio/Sunny
Sunny-Core/06_LAYER/ParticleLayer3D.h
<filename>Sunny-Core/06_LAYER/ParticleLayer3D.h #pragma once #include <iostream> #include <SUNNY.h> #include "MouseLayer2D.h" #include "../05_GAME/graphics/Model3D.h" #include "../05_GAME/graphics/Animation3D.h" #include "../05_GAME/graphics/BulletM.h" #include "../05_GAME/shoot/BulletShooter.h" #include "../05_GAME...
Whizkevina/ft-choir-portal
models/AccessToken.js
<reponame>Whizkevina/ft-choir-portal<gh_stars>0 const mongoose = require('mongoose'); const { Schema } = mongoose; const AccessTokenSchema = new Schema({ token: { type: String, required: true, unique: true, trim: true }, group: { type: Schema.Types.ObjectId, ref: 'Group', required: t...
dgusoff/cas
api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/model/core/monitor/ServiceTicketMonitorProperties.java
package org.apereo.cas.configuration.model.core.monitor; import org.apereo.cas.configuration.support.RequiresModule; import com.fasterxml.jackson.annotation.JsonFilter; import lombok.Getter; import lombok.Setter; import lombok.experimental.Accessors; import org.springframework.boot.context.properties.NestedConfigurat...
konexios/moonstone
rhea-web/src/main/java/com/arrow/rhea/web/WebSecurity.java
<reponame>konexios/moonstone package com.arrow.rhea.web; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.web.csrf.CsrfFilter; import com.arrow.pegasus.security.CoreWebSecurityAbstract; imp...
bbejeck/kotlin
compiler/frontend/src/org/jetbrains/jet/lang/resolve/calls/TaskPrioritizers.java
<reponame>bbejeck/kotlin /* * Copyright 2010-2012 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 ...
Kievkao/Twitteroid
Twitteroid/Modules/Settings/MainSettings/Presenter/TWRSettingsPresenterProtocol.h
// // TWRSettingsPresenterProtocol.h // Twitteroid // // Created by <NAME> on 6/2/16. // Copyright © 2016 Kievkao. All rights reserved. // #import <Foundation/Foundation.h> @class TWRUserProfile; NS_ASSUME_NONNULL_BEGIN @protocol TWRSettingsPresenterProtocol <NSObject> - (void)retrieveUserProfileDidLoad:(TWRUs...
Anzhangusc/RevealHelper3
website_downloa.js
<filename>website_downloa.js const fetch = require("node-fetch-commonjs"); var util = require("./util.js"); var constant = require("./const.js"); // Load the SDK for JavaScript var AWS = require('aws-sdk'); // Set the Region AWS.config.update({region: 'us-west-1'}); s3 = new AWS.S3({apiVersion: '2006-03-01'}); const ...
ajaypp123/DataStructure_Competative_Programing
Compatative_Programing/Dynamic Programing/knapsack0_1/subset_sum_tabulation.java
/* Check if subset is available, whose sum is N int[] W = {2, 5, 1, 3, 4}; int capacity = 7; int item = 5; Output: true // 2+7 2 3 7 8 10 11 0 1 3 4 5 6 7 8 9 10 11 0 t f f f ... 2 t 3 t ij 7 . 8 10 5 3 3>5 x 5>3 yes no yes arr[i-...
GordsSleek/CheatBreakerPlus-src
src/main/java/me/travis/wurstplus/wurstplustwo/hacks/chat/AutoExcuse.java
<gh_stars>1-10 //Deobfuscated with https://github.com/PetoPetko/Minecraft-Deobfuscator3000 using mappings "1.12 stable mappings"! // // Decompiled by Procyon v0.5.36 // package me.travis.wurstplus.wurstplustwo.hacks.chat; import java.util.Random; import me.travis.wurstplus.wurstplustwo.hacks.WurstplusCategory; imp...
eschwartz/aerisjs
src/api/collections/pointdatacollection.js
<reponame>eschwartz/aerisjs<filename>src/api/collections/pointdatacollection.js define([ 'aeris/util', 'aeris/api/collections/aerisapicollection', 'aeris/api/models/pointdata' ], function(_, AerisApiCollection, PointData) { /** * A representation of point data from the Aeris Api. * * @class aeris.api.c...
even311379/EbirdTaiwan2020
ebirdtaiwan/home/migrations/0017_upper_home.py
# Generated by Django 3.1 on 2020-09-29 19:04 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('wagtailimages', '0022_uploadedimage'), ('wagtailcore', '0052_pagelogentry'), ('home', '0016_auto_20200913_1430...
laohubuzaijia/fbthrift
thrift/compiler/test/fixtures/includes/gen-swift/test/fixtures/includes/MyServiceAsyncReactiveWrapper.java
<reponame>laohubuzaijia/fbthrift<gh_stars>0 /** * Autogenerated by Thrift * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package test.fixtures.includes; import java.util.*; public class MyServiceAsyncReactiveWrapper implements MyService.Reactive { private final My...
trunda/adhearsion
spec/adhearsion/call_controller/menu_dsl/fixnum_match_calculator_spec.rb
<reponame>trunda/adhearsion # encoding: utf-8 require 'spec_helper' module Adhearsion class CallController module MenuDSL describe FixnumMatchCalculator do let(:match_payload) { :main } it "a potential match scenario" do calculator = FixnumMatchCalculator.new(444, match_payload)...
wyaadarsh/LeetCode-Solutions
Python3/0101-Symmetric-Tree/soln-2.py
<filename>Python3/0101-Symmetric-Tree/soln-2.py # Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def isSymmetric(self, root): """ :type root: TreeNode :rtype: boo...
tsukoyumi/skylicht-engine
Projects/Skylicht/Audio/Source/Driver/ISoundDrvierImp.cpp
<filename>Projects/Skylicht/Audio/Source/Driver/ISoundDrvierImp.cpp /* !@ MIT License Copyright (c) 2012 - 2019 Skylicht Technology CO., LTD 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 withou...
domkog/AdvancedLogicSimulator
AdvancedLogicSimulator/src/at/fishkog/als/ui/customNodes/ConnectorLine.java
package at.fishkog.als.ui.customNodes; import at.fishkog.als.sim.data.Connector; import javafx.scene.shape.Line; public class ConnectorLine extends Line{ private Connector con; public ConnectorLine(double d, double e, double f, double g, Connector c) { super(d,e,f,g); this.con = c; } public Conn...
wisesky/LeetCode-Practice
src/407. Trapping Rain Water II_learned.py
<filename>src/407. Trapping Rain Water II_learned.py from typing import List import heapq class Solution: def trapRainWater(self, heightMap: List[List[int]]) -> int: if len(heightMap) == 0: return 0 h = len(heightMap) w = len(heightMap[0]) visi...
seeArmy/web
src/truck/LbsLib.js
/* eslint-disable no-mixed-operators */ /* eslint-disable one-var */ /* eslint-disable no-empty */ export default { PI: 3.14159265358979324, x_pi: 3.14159265358979324 * 3000.0 / 180.0, transformLat(x, y) { let ret = -100.0 + 2.0 * x + 3.0 * y + 0.2 * y * y + 0.1 * x * y + 0.2 * Math.sqrt(Math.abs(x)); ret...
tomwhite/google-cloud-java
google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequestOrBuilder.java
<gh_stars>1-10 // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/redis/v1/cloud_redis.proto package com.google.cloud.redis.v1; public interface CreateInstanceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.CreateInstanceRequest) ...
pcdas/parquet-mr
parquet-column/src/main/java/parquet/example/data/simple/NanoTime.java
<filename>parquet-column/src/main/java/parquet/example/data/simple/NanoTime.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 ...
maurizioabba/rose
projects/compass/src/util/MPIAbstraction/alt-mpi-headers/mpich-1.2.7p1/include/mpidefs.h
<filename>projects/compass/src/util/MPIAbstraction/alt-mpi-headers/mpich-1.2.7p1/include/mpidefs.h<gh_stars>100-1000 /* This file contains any configuration-dependent data for mpi.h */ #ifndef MPI_DEFS #define MPI_DEFS /* Include Fortran definitions */ #if 0 == 0 #include "mpi_fortdefs.h" #else typedef int MPI_Fint; #...
TaylorNBurrows/Trove_Registry
client/src/components/Main/index.js
<reponame>TaylorNBurrows/Trove_Registry import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; const useStyles = makeStyles(theme => ({ content: { flexGrow: 1, layout: { marginTop:'100px', } }, })); const Main = ({ children }) => { const clas...
lihongan/external-dns
vendor/github.com/nesv/go-dynect/dynect/dsfs.go
<filename>vendor/github.com/nesv/go-dynect/dynect/dsfs.go package dynect // DSFSResponse is used for holding the data returned by a call to // "https://api.dynect.net/REST/DSF/" with 'detail: Y'. type AllDSFDetailedResponse struct { ResponseBlock Data []DSFService `json:"data"` } // DSFResponse is used for holding ...
KhosroPakmanesh/EquityMarketSoftwareEcosystem
project/src/main/java/emSeco/custodianUnit/infrastructure/services/databases/custodianRepositories/implementations/repositories/AllocationDetailRepository.java
package emSeco.custodianUnit.infrastructure.services.databases.custodianRepositories.implementations.repositories; import emSeco.custodianUnit.core.entities.allocationDetail.AllocationDetail; import emSeco.custodianUnit.core.services.infrastructureServices.databases.custodianUnitRepositories.interfaces.repositories.IA...
felipexperto/hero-project-cra
src/styles/Themes/index.js
<reponame>felipexperto/hero-project-cra<filename>src/styles/Themes/index.js const colors = { white: '#fff', black: '#000', red: '#ff1510', lightred: '#fdecec', lightgreen: '#e7f6e7', transparent: 'transparent', lightestgrey: '#e4e5e9', lightgrey: '#b9b9b9', grey: '#8c8c8c', darkgrey: '#404040', }; ...
Vyraax/VulkanLab
docs/html/structDtypeSizeCheck.js
var structDtypeSizeCheck = [ [ "dtype", "structDtypeSizeCheck.html#a44bf2c13b8fe13197a3006ce615ca361", null ], [ "name", "structDtypeSizeCheck.html#aa9a8833f0c4308d8a8d0a1559f341cec", null ], [ "size_cpp", "structDtypeSizeCheck.html#a8de36319e0d29a3be4496a6ca5c7e4ae", null ], [ "size_numpy", "structDtyp...
nicho92/mtgDesktopCompanion
src/main/java/org/magic/game/network/actions/AbstractNetworkAction.java
package org.magic.game.network.actions; import java.io.Serializable; public abstract class AbstractNetworkAction implements Serializable { /** * */ private static final long serialVersionUID = 1L; public enum ACTIONS { JOIN, REQUEST_PLAY, RESPONSE, CHANGE_DECK, SPEAK, LIST_PLAYER, CHANGE_STATUS, SHARE } ...
voxmedia/autotune
rails_template.rb
<reponame>voxmedia/autotune # Add gems gem 'resque', '~> 1.25.2' gem 'omniauth-github', '~> 1.1.2' gem 'foreman', '~> 0.77.0' gem 'unicorn-rails', '~> 2.2.0' gem 's3deploy', :git => 'https://github.com/ryanmark/s3deploy-ruby.git' gem 'autotune', :git => 'https://github.com/voxmedia/autotune.git' # Setup forema...
chibicode/factfulness-source.chibicode.com
src/sources/146-graph-battle-deaths.js
import React from 'react' import * as H from '../components/h' export default () => ( <> <p> 戦争の犠牲者数は <H.A href="http://www.correlatesofwar.org/data-sets/COW-war."> Correlates of War Project </H.A> 、<H.A href="http://gapm.io/xnpgfred">Gleditsch</H.A>、 <H.A href="http://ucdp....
jizillon/hiphop-php
src/system/gen/cls/RuntimeException.h
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010 Facebook, Inc. (http://www.facebook.com) | +---------...
manusa/yakc
quickstarts/quarkus-dashboard/src/main/frontend/src/replicasets/selectors.js
<gh_stars>10-100 /* * Copyright 2020 <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 o...
CDCgov/SDP-Vocabulary-Service
app/views/section_nested_items/show.json.jbuilder
<reponame>CDCgov/SDP-Vocabulary-Service json.partial! 'section_nested_items/section_nested_item', section_nested_item: @section_nested_item
chattertechno/sweden
components/Cards.js
<reponame>chattertechno/sweden<filename>components/Cards.js // @flow import * as React from 'react' import { BackgroundContext } from '../helpers/context' type Props = { children: React.Node, background: string } const Cards = (props: Props) => ( <BackgroundContext.Provider value={props.background}> <div cl...
IllusionMan1212/ShockPair
app/src/main/c/bluez-android-3.35/utils/audio/gstrtpsbcpay.c
<reponame>IllusionMan1212/ShockPair /* * * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2004-2008 <NAME> <<EMAIL>> * * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software F...
ianhomer/odin
odin-core/src/main/java/com/purplepip/odin/midix/MidiDevice.java
<filename>odin-core/src/main/java/com/purplepip/odin/midix/MidiDevice.java /* * Copyright (c) 2017 the original author or authors. All Rights Reserved * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the L...
RafaelGomides/VemPython
exercicios/__init__.py
# Projeto: VemPython/__init__.py # Autor: rafael # Data: 19/03/18 - 16:06 # Objetivo: TODO
GoodyIT/MERN-stack-donate---Bitcoin-Payment
client/util/apiCaller.js
import fetch from 'isomorphic-fetch'; import Config from '../../server/config'; export const API_URL = (typeof window === 'undefined' || process.env.NODE_ENV === 'test') ? process.env.BASE_URL || (`http://localhost:${process.env.PORT || Config.port}/api`) : '/api'; export function fetchAPI(endpoint, method = 'get...
opentable/logstash
lib/logstash/inputs/twitter.rb
<gh_stars>1-10 require "logstash/inputs/base" require "logstash/namespace" require "net/http" require "json" #require "net/https" # Read events from the twitter streaming api. class LogStash::Inputs::Twitter < LogStash::Inputs::Base config_name "twitter" milestone 1 # Your twitter app's consumer key # # Do...
0--key/lib
portfolio/Python/GAE/server_test/m/fn.py
<filename>portfolio/Python/GAE/server_test/m/fn.py import logging from decimal import Decimal from google.appengine.api import memcache from google.appengine.ext import ndb from models import Result # MemCache and arithmetics inside def quremo(a, b): """Primitive ariphmetic calculations""" qu = Decimal(b) / D...
synacts/digitalid-utility
circumfixes/src/main/java/net/digitalid/utility/circumfixes/Quotes.java
/* * Copyright (C) 2017 Synacts GmbH, Switzerland (<EMAIL>) * * 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...
h3trika/Adept-NASA-Space-Apps-2016-
iOS/Adept_iOS/Adept_iOS/TrainingSelectTableViewController.h
<reponame>h3trika/Adept-NASA-Space-Apps-2016- // // TrainingSelectTableViewController.h // Adept_iOS // // Created by <NAME> on 3/29/16. // Copyright © 2016 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> #import "PickerTableCell.h" typedef NS_ENUM(NSUInteger, TrainingSelectEnum) { MoovTraining, W...
VicRen/go-playground
di/main_test.go
<gh_stars>0 package main import ( "bytes" "io/ioutil" "net/http" "testing" ) type MockHttpClient struct { } func (m *MockHttpClient) Get(string) (*http.Response, error) { response := &http.Response{ Body: ioutil.NopCloser(bytes.NewBuffer([]byte("Test Response"))), } return response, nil } func TestSendWith...
Jinksi/vars-annotation
src/main/java/org/mbari/m3/vars/annotation/ui/concepttree/TreeItemPredicate.java
package org.mbari.m3.vars.annotation.ui.concepttree; import javafx.scene.control.TreeItem; import java.util.function.Predicate; /** * @author <NAME> * @since 2017-05-16T11:58:00 */ @FunctionalInterface public interface TreeItemPredicate<T> { boolean test(TreeItem<T> parent, T value); static <T> TreeItem...
gitclonefun/atlas
src/main/java/org/openstreetmap/atlas/streaming/resource/zip/ZipResource.java
<filename>src/main/java/org/openstreetmap/atlas/streaming/resource/zip/ZipResource.java package org.openstreetmap.atlas.streaming.resource.zip; import java.io.BufferedInputStream; import java.io.Closeable; import java.io.IOException; import java.io.InputStream; import java.util.Iterator; import java.util.zip.ZipEntry;...
flyzsd/java-code-snippets
ibm.jdk8/src/java/lang/management/ThreadMXBean.java
/* * Licensed Materials - Property of IBM, * Copyright IBM Corp. 2005, 2016 All Rights Reserved. */ package java.lang.management; /** * The management and monitoring interface for the threading system of the * virtual machine. * <p> * Precisely one instance of this interface will be made available to mana...
Barysman/omim
qt/build_style/build_common.cpp
#include "build_common.h" #include "platform/platform.hpp" #include <QtCore/QCoreApplication> #include <QtCore/QDir> #include <QtCore/QFile> #include <QtCore/QProcess> #include <QtCore/QRegExp> #include <exception> std::pair<int, QString> ExecProcess(QString const & cmd, QProcessEnvironment const * env) { QProces...
sprect8/settle
src/redux/rfps/store.js
<reponame>sprect8/settle import React, { createContext, useReducer } from 'react'; import { reducer, initialState } from './reducers'; import { useActions } from './actions'; import { applyMiddleware } from './middleware'; const StoreContext = createContext(); const StoreProvider = ({ children }) => { const [s...
IOR-BIC/ALBA
Gui/albaGUIWizardPageNew.h
/*========================================================================= Program: ALBA (Agile Library for Biomedical Applications) Module: albaGUIWizardPageNew Authors: <NAME>, <NAME> Copyright (c) BIC All rights reserved. See Copyright.txt or This software is distributed WITHOUT ANY WARRANTY; without eve...
whysage/python-dependency-injector
tests/unit/providers/test_coroutines_py35.py
<gh_stars>1000+ """Dependency injector coroutine providers unit tests.""" import asyncio import unittest import warnings from dependency_injector import ( providers, errors, ) # Runtime import to get asyncutils module import os _TOP_DIR = os.path.abspath( os.path.sep.join(( os.path.dirname(__file...
FaranushKarimov/JavaProject
Generator of Random Numbers/src/Generator/RandomRange.java
package Generator; import java.util.Random; public class RandomRange { public static final void main(String... aArgs){ log("Generating random integers in the range 1..10."); int START = 1; int END = 10; Random random = new Random(); for (int idx = 1; idx <= 10; ++idx){ ...
benhunter/ctf
htb/fatty-10.10.10.174/fatty-client/org/springframework/web/servlet/mvc/condition/RequestCondition.java
package org.springframework.web.servlet.mvc.condition; import javax.servlet.http.HttpServletRequest; import org.springframework.lang.Nullable; public interface RequestCondition<T> { T combine(T paramT); @Nullable T getMatchingCondition(HttpServletRequest paramHttpServletRequest); int compareTo(T paramT,...
yvmunayev/rainbow-modules
packages/icons/src/components/arrowLeft/index.js
<reponame>yvmunayev/rainbow-modules<gh_stars>10-100 import React from 'react'; import PropTypes from 'prop-types'; const ArrowLeft = (props) => { const { className, style, title } = props; return ( <svg className={className} style={style} width="16px" height="14px" viewBox="0 0 16 14"> <tit...
yaplej/bro
src/analyzer/protocol/rfb/rfb-protocol.pac
<filename>src/analyzer/protocol/rfb/rfb-protocol.pac<gh_stars>1000+ enum ServerState { SERVER_VERSION = 0, SERVER_AUTH_TYPE = 1, SERVER_AUTH_TYPE37 = 2, SERVER_AUTH_FAILURE = 3, SERVER_AUTH_VNC_CHALLENGE = 4, SERVER_AUTH_ARD_CHALLENGE = 5, SERVER_AUTH_RESULT = 6, S...
sieverssj/incubator-streams
streams-osgi-components/activity-registration/src/main/java/org/apache/streams/osgi/components/impl/ActivityPublisherRegistrationImpl.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 ...
lebicojerome/toolkit
test/toolkit.test.js
describe('Toolkit', () => { it('should call lifecycle methods in proper order', async () => { // given const ParentSymbol = Symbol.for('my/parent'); const ChildSymbol = Symbol.for('my/child'); const lifecycle = []; class App extends opr.Toolkit.Root { onCreated() { lifecycle.push...
mis1/tetris
app/common/constants.js
<reponame>mis1/tetris /** * Exports constants. * * @module constants */ /** * Enum class from enumify - A JavaScript library for enums. * @external Enum * @see https://github.com/rauschma/enumify */ import {Enum} from 'enumify'; /** * An enum for directions. * @extends {external:Enum} * @...
rit1200/kairon
kairon/cli/testing.py
<filename>kairon/cli/testing.py import asyncio from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter from typing import List from loguru import logger from rasa.cli import SubParsersAction from kairon.events.events import EventsTrigger def run_tests_on_model(args): logger.info("bot: {}", args.bot) ...
psakar/Resteasy
resteasy-jaxrs-testsuite/src/test/java/org/jboss/resteasy/test/nextgen/resource/MapProviderTest.java
<reponame>psakar/Resteasy<gh_stars>0 package org.jboss.resteasy.test.nextgen.resource; import org.jboss.resteasy.test.BaseResourceTest; import org.junit.AfterClass; import org.junit.Assert; import org.junit.BeforeClass; import org.junit.Test; import javax.ws.rs.Consumes; import javax.ws.rs.POST; import javax.ws.rs.Pa...
Dbevan/SunderingShadows
cmds/feats/i/_impale.c
#include <std.h> #include <daemons.h> inherit FEAT; #define FEATTIMER 35 int in_shapeshift; void create() { ::create(); feat_type("instant"); feat_category("TwoHandedWeapons"); feat_name("impale"); feat_syntax("impale TARGET"); feat_prereq("Sweeping Blow, Blade block or Parry"); feat_desc...
maze-runnar/modal-component
modal/node_modules/@storybook/core/src/client/manager/conditional-polyfills.js
<gh_stars>1-10 import { window } from 'global'; export const importPolyfills = () => { const polyfills = []; if (!window.fetch) { // manually patch window.fetch; // see issue: <https://github.com/developit/unfetch/issues/101#issuecomment-454451035> const patch = ({ default: fetch }) => { wind...
orchestracities/boost
orionadapter/cache/bootstrap.go
<filename>orionadapter/cache/bootstrap.go package cache // NOTE. Concurrency. Treat this var as a const, you can't touch this :-) var cached *store // Init gets the cache infrastructure ready for use. // It must be the first call to this module and must be done in the main // function before any other thread can poss...
kurbmedia/transit-rails
app/controllers/transit/medias_controller.rb
<reponame>kurbmedia/transit-rails module Transit class MediasController < TransitController helper_method :resource, :collection respond_to :json def index @menus = Transit::Media.all respond_with(collection) end def show respond_with(resource) end def create ...
phatblat/macOSPrivateFrameworks
PrivateFrameworks/ScreenReader/SCRSound.h
<filename>PrivateFrameworks/ScreenReader/SCRSound.h // // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import <ScreenReader/SCROutputSound.h> @class NSData, NSString, NSURL; __attribute__((visibility("hidden"))) @interface SCRSound : S...
NASA-DEVELOP/dnppy
dnppy/radar/decibel_convert.py
__author__ = ["<NAME>, <EMAIL>", "<NAME>", "Jwely"] from dnppy import raster import numpy def decibel_convert(filename): """ Converts the input UAVSAR .grd file into units of decibels. Note that a .hdr file must be created and accompany the .grd/.inc files for this to work ...
aybe/lazyusf
rsp_hle/audio.h
<reponame>aybe/lazyusf /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Mupen64plus-rsp-hle - audio.h * * Mupen64Plus homepage: http://code.google.com/p/mupen64plus/ * * Copyright (C) 2014 <NAME> ...
akash2099/LeetCode-Problems
23 Merge k Sorted Lists.cpp
<reponame>akash2099/LeetCode-Problems<gh_stars>1-10 #define ppi pair<int,int> static int fastio=[](){ std::ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); return 0; }(); /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode() :...
pcsx-redux/nugget
openbios/patches/patch_card_info_1.c
<gh_stars>1-10 /* MIT License Copyright (c) 2021 PCSX-Redux authors 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...
maofw/netty_push_server
src/com/netty/push/pojo/ChannelDeviceInfo.java
<reponame>maofw/netty_push_server package com.netty.push.pojo; import io.netty.channel.Channel; import java.util.List; /** * 渠道设备信息 * * @类名称:ChannelDeviceInfo * @类描述: * @创建人:maofw * @创建时间:2014-10-13 下午3:13:51 * */ public class ChannelDeviceInfo { private Channel channel; private DeviceInfo deviceInfo; p...
laborautonomo/mibew
src/mibew/styles/pages/default/js/features.js
/*! * Copyright 2005-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 */ (function($) { function updateSurvey() { if ($("#enablepresurvey").is(":checked")...
SamCosta1/Eventlite
src/main/java/uk/ac/man/cs/eventlite/dao/UserDetailsService.java
package uk.ac.man.cs.eventlite.dao; import org.springframework.security.core.userdetails.UsernameNotFoundException; import uk.ac.man.cs.eventlite.helpers.UserDetails; public interface UserDetailsService { UserDetails loadUserByUsername(String username) throws UsernameNotFoundException; }
caicai0/CAIAutoCoding
imtest/iOS_IMKit/Headers/RCChatListViewController.h
// // ConversationListViewController.h // RCIM // // Created by Heq.Shinoda on 14-6-11. // Copyright (c) 2014年 Heq.Shinoda. All rights reserved. // #import "RCBasicViewController.h" #import "RCIMClientHeader.h" #import "RCSelectPersonViewController.h" #import "RCGroupListViewController.h" typedef NS_ENUM(NSInte...
secondflying/gym
src/main/java/com/gym/user/entity/CoachLeave.java
package com.gym.user.entity; import java.io.Serializable; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; import javax.xml....
chokdee/jitty
data/src/test/java/com/jmelzer/jitty/service/CopyManagerTest.java
package com.jmelzer.jitty.service; import com.jmelzer.jitty.model.PhaseCombination; import com.jmelzer.jitty.model.TournamentClass; import com.jmelzer.jitty.model.TournamentGroup; import com.jmelzer.jitty.model.TournamentPlayer; import com.jmelzer.jitty.model.dto.TournamentClassDTO; import org.junit.Test; import stat...
vesavlad/somado
src/main/java/gui/dialogs/gloss/GlossProductEditNewDialog.java
/* * * Somado (System Optymalizacji Małych Dostaw) * Optymalizacja dostaw towarów, dane OSM, problem VRP * * Autor: <NAME> 2016 (praca inż. EE PW) * */ package gui.dialogs.gloss; import datamodel.Product; import gui.GUI; import gui.dialogs.GlossDialog; import somado.Lang; /** * * Szablon okienka do ...
JeremyZhao1989/leanTest
cgtkLibs/cgtk_config/studio_config.py
<reponame>JeremyZhao1989/leanTest # coding=utf8 import os import platform import cgtk_yaml PROJECT_ROOT_NAME = "CNCGToolKit" def get_studio_cfg_path(): root_path = os.path.join(os.path.dirname(__file__), "../../", "configs", "studio.yml") return root_path def get(item): studio_yml_path = get_studio_cfg...
rohankumardubey/cayenne
cayenne-server/src/test/java/org/apache/cayenne/access/translator/select/LimitOffsetStageTest.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 * ...
dswd/ToMaTo
cli/tests/backend/sites.py
<filename>cli/tests/backend/sites.py from lib.tests import testCase, testSuite, unicodeTestString from organization import setUp as setUpOrga, tearDown as tearDownOrga, randomName def setUp(name): orga = setUpOrga(name) print "Creating site..." site = randomName() site_create(site, orga, "Just a test") return si...
ChaconLima/orange-talents-05-template-mercado-livre
src/main/java/br/com/zupacademy/mateuschacon/mercadolivre/ProductResource/Dtos/ProductQuestionDetails.java
package br.com.zupacademy.mateuschacon.mercadolivre.ProductResource.Dtos; import br.com.zupacademy.mateuschacon.mercadolivre.ProductResource.Models.ProductQuestion; public class ProductQuestionDetails { private String question; public ProductQuestionDetails( ProductQuestion productquestion){ thi...
jj1232727/system_call
linux-3.16/drivers/spi/spi-sh-msiof.c
/* * SuperH MSIOF SPI Master Interface * * Copyright (c) 2009 <NAME> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * */ #include <linux/bitmap.h> #include <linux/clk.h> #...
EnjoyLifeFund/macHighSierra-py36-pkgs
dendropy/calculate/profiledistance.py
<gh_stars>0 #! /usr/bin/env python ############################################################################## ## DendroPy Phylogenetic Computing Library. ## ## Copyright 2010 <NAME> and <NAME>. ## All rights reserved. ## ## See "LICENSE.txt" for terms and conditions of usage. ## ## If you use this work or any...
dvlpsh/leetcode-1
python/116_Populating_Next_Right_Pointers_in_Each_Node.py
# Definition for binary tree with next pointer. # class TreeLinkNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None # self.next = None class Solution(object): def connect(self, root): """ :type root: TreeLinkNode :...
juancgalvis/aerolinea-udea-fsi-android
app/src/main/java/es/hol/galvisoft/aerolina/activities/MainActivity.java
<gh_stars>0 package es.hol.galvisoft.aerolina.activities; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.widget.ListView; import com.parse.ParseException; import com.parse.ParseObject; import com.parse.SaveCallback; import es.hol.galvisoft.aerolina.R; import es.hol.gal...
devrchancay/react-rainbow
src/components/WeeklyCalendar/styled/controls.js
import styled from 'styled-components'; import { MARGIN_MEDIUM } from '../../../styles/margins'; const StyledControls = styled.div` display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; padding: 0 0 8px 0; > div:first-child { display: flex; justify...
elloop/OpenGL-ES-2.0-cpp
First/scenes/ELDrawable.h
#pragma once #include "elloop/inc.h" #include "basic/ELRef.h" NS_BEGIN(elloop); class Drawable : public Ref { public: virtual void render() {} }; NS_END(elloop);
amoeba/treestats.ne
util/multi/test_multi.rb
# Test the /send method with a fake POST require 'net/http' require 'json' require 'base64' # uri = URI.parse("http://floating-meadow-8649.herokuapp.com/") uri = URI.parse("http://localhost:9292") endpoint = Net::HTTP.new(uri.host, uri.port) files = Dir["./characters/*.json"] exit unless files.length > 0 files.ea...
YanDoroshenko/avataxsdk
modules/core/src/main/scala/org/upstartcommerce/avataxsdk/core/data/models/NoticeModel.scala
<gh_stars>0 /* Copyright 2019 UpStart Commerce, 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...
yiv/yivserver
game/service/ucclient.go
<filename>game/service/ucclient.go package service import ( "context" "io" "time" stdopentracing "github.com/opentracing/opentracing-go" "google.golang.org/grpc" "github.com/go-kit/kit/endpoint" "github.com/go-kit/kit/log" "github.com/go-kit/kit/log/level" "github.com/go-kit/kit/sd" ketcd "github.com/go-ki...
tripplan/tripplan
src/components/Form/Fields/index.js
<gh_stars>0 import ToggleComponent from "./Toggle" import InputComponent from "./Input" import ListComponent from "./List" import Field from "./Field" export const Toggle = Field(ToggleComponent) export const Input = Field(InputComponent) export const List = Field(ListComponent)
glycerine/inferno
limbo/fns.h
int addfile(File*); void addfnptrs(Decl*, int); void addiface(Decl*, Decl*); void addinclude(char*); char *addrprint(char*, char*, int, Addr*); Typelist *addtype(Type*, Typelist*); Node *adtdecl(Decl *ids, Node *fields); void adtdecled(Node *n); void adtdefd(Type*); Decl *adtmeths(Type*); void adtstub(Decl*); long alig...