repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
sladewinter/UVa-Online-Judge
Ch 7 Geometry/Shapes/uva-10005-PolygonInCircle.cpp
//UVa - 10005 - Packing polygons //Check if possible to fit polygon in circle with radius r #include <iostream> #include <cmath> #include <tuple> using namespace std; struct point { double x, y; }; using tpp = tuple<point, point>; //Checks if point p in inside circle with centre r bool inside(point p, point c, do...
sambacha/0x-tracker-client
src/features/fills/components/trade-count-widget.js
<reponame>sambacha/0x-tracker-client import _ from 'lodash'; import PropTypes from 'prop-types'; import React from 'react'; import { summarizeNumber } from '../../../util'; import LoadingIndicator from '../../../components/loading-indicator'; import sharedPropTypes from '../../../prop-types'; import StatWidget from '....
refnum/Nano
Library/Source/Nano/System/NVersion.h
<filename>Library/Source/Nano/System/NVersion.h /* NAME: NVersion.h DESCRIPTION: Version number. COPYRIGHT: Copyright (c) 2006-2021, refNum Software All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions...
transposit/graalpython
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/call/special/LookupAndCallBinaryNode.java
<gh_stars>1-10 /* * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * The Universal Permissive License (UPL), Version 1.0 * * Subject to the condition set forth below, permission is hereby granted to any * person obtaining a...
PradyumnaNagendra/sunbird-functional-tests
sunbird_portal/src/test/java/org/sunbird/testscripts/FlagReviewer_TC01.java
package org.sunbird.testscripts; import org.testng.annotations.Test; import org.sunbird.pageobjects.FlagReviewerPageObj; import org.sunbird.pageobjects.SignUpObj; import org.sunbird.startup.BaseTest; import org.testng.annotations.Test; public class FlagReviewer_TC01 extends BaseTest { @Test(priority=1) public void...
jkalloor3/bqskit
bqskit/ir/point.py
<filename>bqskit/ir/point.py """This module implements the CircuitPoint class.""" from __future__ import annotations import logging from typing import Any from typing import Tuple from typing import Union from typing_extensions import TypeGuard from bqskit.utils.typing import is_integer _logger = logging.getLogger(_...
DVSR1966/par4all
packages/PIPS/validation/Scilab/Scilab2C-2/src/c/shilberta.c
<filename>packages/PIPS/validation/Scilab/Scilab2C-2/src/c/shilberta.c /* * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab * Copyright (C) 2008 - INRIA - <NAME> * * This file must be used under the terms of the CeCILL. * This source file is licensed as described in the file COPYING, which * ...
divebell/amazon-redshift-jdbc-driver
src/main/java/com/amazon/redshift/jdbc/RedshiftSavepoint.java
<filename>src/main/java/com/amazon/redshift/jdbc/RedshiftSavepoint.java /* * Copyright (c) 2004, PostgreSQL Global Development Group * See the LICENSE file in the project root for more information. */ package com.amazon.redshift.jdbc; import com.amazon.redshift.core.Utils; import com.amazon.redshift.util.GT; impor...
karolba/fakturama
app/services/current-session.js
import Service from '@ember/service'; import { computed } from '@ember/object'; import { resolve, Promise as EmberPromise } from 'rsvp'; import FirebaseAuth from 'fakturama/lib/firebase_auth'; import User from 'fakturama/models/user'; // This service needs to be injected via app initializer under 'session' name. // T...
WarpWorks/warpjs-ipt
client/utils/class-by-key.js
<reponame>WarpWorks/warpjs-ipt const isMM = require('./is-mm'); module.exports = (key) => isMM(key) ? 'mm' : (key === 'ai' ? 'ai' : 'ipt');
hidlestone/spring-boot-aggregator
spring-boot-template-beetl/src/main/java/com/payn/template/beetl/model/User.java
<filename>spring-boot-template-beetl/src/main/java/com/payn/template/beetl/model/User.java package com.payn.template.beetl.model; import lombok.Data; /** * @author payn * @date 2020/9/16 8:36 */ @Data public class User { private String name; private String password; }
bach5000/XRS
XrsPalm/src/include/file_msg.h
<reponame>bach5000/XRS<filename>XrsPalm/src/include/file_msg.h<gh_stars>0 /boot/home/Desktop/XrsPalm/src/defs/file_msg.h
CU-NESS/pylinex
pylinex/expander/RepeatExpander.py
""" File: pylinex/expander/RepeatExpander.py Author: <NAME> Date: 3 Sep 2017 Description: File containing a class representing an Expander which expands vectors by repeating them multiple times. """ import numpy as np from ..util import int_types from .Expander import Expander class RepeatExpander(Expand...
Punzo/SlicerAstro
AstroVolume/qSlicerAstroVolumeModule.h
<filename>AstroVolume/qSlicerAstroVolumeModule.h /*============================================================================== Copyright (c) Kapteyn Astronomical Institute University of Groningen, Groningen, Netherlands. All Rights Reserved. See COPYRIGHT.txt or http://www.slicer.org/copyright/copyright.tx...
TheLogicMaster/Tower-Defense-Galaxy
core/src/com/logicmaster63/tdgalaxy/map/region/RectangleRegion.java
package com.logicmaster63.tdgalaxy.map.region; import com.badlogic.gdx.math.Matrix4; import com.badlogic.gdx.math.Vector3; import com.badlogic.gdx.physics.bullet.collision.btBoxShape; import com.badlogic.gdx.physics.bullet.collision.btCollisionObject; public class RectangleRegion extends Region { private float w...
WanpengQian/ConcurrencyFreaks
Java/com/concurrencyfreaks/queues/KoganPetrankQueue.java
package com.concurrencyfreaks.queues; import java.lang.reflect.Field; import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicReferenceArray; /** * <h1> Kogan-Petrank Queue </h1> * * Based on the Wait-Free queue by <NAME> and <NAME> * https://offblast.org/stuff/books/lockfreeque...
nickyc975/Database-SocialNetwork
src/main/java/database/entities/Reply.java
package database.entities; import java.sql.Date; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; import java.util.Map; import java.util.Map.Entry; public class Reply extends Entity { private static PreparedStatement...
GravityMatrix/rsql-mybatis
src/main/java/com/github/mybatis/searcher/convert/StringToIntegerConverter.java
package com.github.mybatis.searcher.convert; import cn.hutool.core.util.NumberUtil; /** * @author WangChen * @since 2022-01-07 17:11 **/ public class StringToIntegerConverter implements SearchConverter<Integer> { @Override public Integer convert(String target) { return NumberUtil.isInteger(target) ...
uccser-admin/programming-practice-prototype
codewof/programming/content/en/prime-numbers/solution.py
number = int(input("Enter a positive integer: ")) if number < 2: print('No primes.') else: print(2) for possible_prime in range(3, number + 1): prime = True for divisor in range(2, possible_prime): if (possible_prime % divisor) == 0: prime = False ...
fogoplayer/M2N-website
src/pages/membership.js
import React from 'react' import Layout from '../components/layout' import Seo from '../components/seo' import MembershipPage from '../components/membership' export default function membership() { return ( <Layout> <Seo title={'Membership'} /> <MembershipPage /> </Layout> ...
JoeGruffins/termdash
internal/segdisp/segment/segment_test.go
// Copyright 2019 Google 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...
All8Up/cpf
Cpf/Plugins/Game/EntityService/Public/EntityService.hpp
<reponame>All8Up/cpf ////////////////////////////////////////////////////////////////////////// #pragma once #include "EntityService/Export.hpp" #include "CPF/Plugin/iRegistry.hpp" namespace CPF { struct EntityServiceInitializer { static int Install(Plugin::iRegistry* registry); static int Remove(); private: ...
crunchbang/lang-adventures
c/misc/linked_list/push.c
#include <stdlib.h> #include <stdio.h> #include "node.h" void Push(struct node** headRef, int data) { struct node* newNode = malloc(sizeof(struct node)); newNode->data = data; newNode->next = *headRef; *headRef = newNode; } void PushTest () { struct node* head = buildOneTwoThree(); struct no...
aajjbb/contest-files
Codeforces/DZYLovesSequences.cpp
<gh_stars>1-10 #include <bits/stdc++.h> template<typename T> T gcd(T a, T b) { if(!b) return a; return gcd(b, a % b); } template<typename T> T lcm(T a, T b) { return a * b / gcd(a, b); } template<typename T> void chmin(T& a, T b) { a = (a > b) ? b : a; } template<typename T> void chmax(T& a, T b) { a = (a...
stephengold/Heart
HeartLibrary/src/main/java/jme3utilities/MyRender.java
<gh_stars>10-100 /* Copyright (c) 2019-2021, <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of cond...
Luecx/3DGameEngine_src
projects/game/solarsystem/Celestial.java
package projects.game.solarsystem; import engine.core.components.Group; import engine.core.exceptions.CoreException; import engine.core.sourceelements.RawModel; import engine.core.system.Sys; import engine.linear.entities.Entity; import engine.linear.entities.TexturedModel; import engine.linear.loading.Loader; import ...
frimtec/PikettAssist
app/src/test/java/com/github/frimtec/android/pikettassist/service/TestAlarmServiceWorkUnitTest.java
package com.github.frimtec.android.pikettassist.service; import static org.assertj.core.api.Assertions.assertThat; import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.eq; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.never; import static org.mockito.Mo...
IncioMan/findyourfriend
backend/src/main/java/com/group14/findeyourfriend/bracelet/Mover.java
package com.group14.findeyourfriend.bracelet; import com.group14.common_interface.Position; import com.group14.common_interface.Vector2; import com.group14.findeyourfriend.Constants; import com.group14.findeyourfriend.debug.DebugLog; public class Mover { private Position _position; private Vector2 _speed = new Vect...
Dukoia/simple-mall
mall-sms/sms-boot/src/main/java/com/yqf/mall/sms/service/IAsyncService.java
<filename>mall-sms/sms-boot/src/main/java/com/yqf/mall/sms/service/IAsyncService.java package com.yqf.mall.sms.service; import com.yqf.mall.sms.pojo.domain.SmsCouponTemplate; /** * @author xinyi * @desc:异步服务接口 * @date 2021/6/27 */ public interface IAsyncService { /** * 通过优惠券模板异步的创建优惠券码 * @param tem...
leiphp/gulimall
gulimall-product/src/main/java/cn/lxtkj/gulimall/product/service/SpuInfoService.java
package cn.lxtkj.gulimall.product.service; import cn.lxtkj.gulimall.product.entity.SpuInfoDescEntity; import cn.lxtkj.gulimall.product.vo.SpuSaveVo; import com.baomidou.mybatisplus.extension.service.IService; import cn.lxtkj.common.utils.PageUtils; import cn.lxtkj.gulimall.product.entity.SpuInfoEntity; import java.ut...
vikulin/PlayMarket-2.0-App
app/src/main/java/com/blockchain/store/playmarket/ui/pex_screen/DappsFragment.java
package com.blockchain.store.playmarket.ui.pex_screen; import android.app.Activity; import android.content.Context; import android.os.Bundle; import android.util.Log; import android.view.KeyEvent; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.view.inputmeth...
Phikzel2/haroldcoin-main-MacOS
contrib/gitian-builder/inputs/MacOSX.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/IOKit/firewire/IOFWLocalIsochPort.h
/* * Copyright (c) 1998-2002 Apple Computer, Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * The contents of this file constitute Original Code as defined in and * are subject to the Apple Public Source License Version 1.1 (the * "License"). You may not use this file except in compliance with th...
msinno01/SARSCoV2HeronPipeline
heronPipeline/src/images/genotypeVariants/recipe_graph.py
from dataclasses import dataclass from typing import List @dataclass class Node: """ Assume that a recipe can only require a single parent recipe. However, a recipe can be required by multiple child recipes. """ name: str child_names: List[str] parent_name: str class Rec...
TheRakeshPurohit/CodingSpectator
plug-ins/indigo/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/FilterDescriptor.java
/******************************************************************************* * Copyright (c) 2009 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is a...
huahang/sandbox
thirdparty/grpc/support/sync_custom.h
#include "thirdparty/grpc-1.19.1/include/grpc/support/sync_custom.h"
pncampbell/ct-calcs-old
src/test/scala/uk/gov/hmrc/ct/ct600a/LP03Spec.scala
<reponame>pncampbell/ct-calcs-old /* * Copyright 2016 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 * * Unle...
Cabrra/Engine-Development
FSGDEngine-Student/FSGDGame/TurretBehavior.h
#pragma once #include "../EDGOCA/BehaviorT.h" namespace Behaviors { class TurretBehavior : public EDGOCA::BehaviorT<TurretBehavior> { public: TurretBehavior(void) { baseSpeed = 15.0f; } ~TurretBehavior(void) {} static void PopulateMessageMap(void); static void OnRotateRight( EDGOCA::IBehavior* in...
Mng12345/betterplot
betterplot-model/src/main/java/com/zhangm/betterplot/entity/Title.java
<filename>betterplot-model/src/main/java/com/zhangm/betterplot/entity/Title.java package com.zhangm.betterplot.entity; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * @Author zhangming * @Date 2020/6/21 18:30 */ @Data...
cfc-kata/cfc-kata-team-b
src/main/java/com/cfckata/response/RepaymentBatchResponse.java
package com.cfckata.response; import java.util.List; public class RepaymentBatchResponse { private List<RepaymentCreatedResponse> successItems; private List<RepaymentFailedResponse> failedItems; public List<RepaymentCreatedResponse> getSuccessItems() { return successItems; } public void setSuccessItems(L...
vahndi/probability
examples/distributions/continuous/comparisons.py
<reponame>vahndi/probability import matplotlib.pyplot as plt from math import sqrt from numpy import arange from examples.colors import ML_APP_DARK_BLUE from probability.distributions import Normal, Laplace from probability.distributions.continuous.students_t import StudentsT x = arange(-4, 4.01, 0.05) def plot_no...
kmunve/APS
aps/plotting/new_snow_line_plot.py
import numpy as np import pandas as pd import matplotlib.pyplot as plt import matplotlib matplotlib.style.use('seaborn-notebook') plt.rcParams['figure.figsize'] = (14, 12) REGION_ID = 3034 # Load data for new snow line calculated in *new_snow_line.py* nsl = pd.read_csv(r"C:\Users\kmu\PycharmProjects\APS\aps\scripts\t...
platybrowser/mobie-python
mobie/migration/migrate_dataset.py
import argparse from .migrate_v1.migrate_dataset import migrate_dataset_to_mobie as migrate_dataset_v1 from .migrate_v2 import migrate_dataset as migrate_dataset_v2 def main(): parser = argparse.ArgumentParser(description="Migrate dataset to newer spec version.") parser.add_argument('folder', type=str) ms...
hardikpedia/IEEE-Megaproject
Bitastik/pages/calender/index.js
<gh_stars>1-10 import ReactBigCalendar from "../../components/calender/ReactBigCalendar" import React from 'react' import MotionHoc from "../../components/animation/Motionhoc" import Books from '../../assets/books.jpg' const CalendarComponents=()=> { return ( <div style={{ width: '90vw', ...
IronLanguages/rubyspec
1.8/core/enumerable/each_with_index_spec.rb
require File.dirname(__FILE__) + '/../../spec_helper' require File.dirname(__FILE__) + '/fixtures/classes' describe "Enumerable#each_with_index" do before :each do @b = [2, 5, 3, 6, 1, 4] end it "passes each element and its index to block" do @a = [] EnumerableSpecs::Numerous.new.each_with_ind...
Vavilon3000/icq
gui/main_window/contact_list/SearchDropDown.h
<reponame>Vavilon3000/icq #pragma once namespace Ui { class ActionButton; class SearchWidget; class CustomButton; class SearchDropdown : public QWidget { Q_OBJECT enum class pencilIcon { pi_pencil, pi_cross }; public Q_SLOTS: vo...
basil/elastest-plugin
src/main/java/jenkins/plugins/elastest/submitters/ElasTestSubmitter.java
/* * The MIT License * * (C) Copyright 2017-2019 ElasTest (http://elastest.io/) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the ...
TheBadZhang/OJ
usx/special/92/9224.c
<reponame>TheBadZhang/OJ #include <stdio.h> int main () { int T, m, n, i, mini; scanf ("%d", &T); while (T--) { scanf ("%d %d %d", &m, &n, &i); printf ("%d %d\n", n+i*m, i); } return 0; }
mikolajgucki/ae-engine
engine/common/luaprofiler/src/cpp/include/luap_StackItem.h
#ifndef AE_LUAP_STACK_ITEM_H #define AE_LUAP_STACK_ITEM_H /** */ typedef struct { /** */ long startTime; /** */ long startUsedMemory; /** */ long subcallsMemoryAllocated; } luap_StackItem; /** */ luap_StackItem *luap_CreateStackItem(); /** */ void luap_DeleteStack...
SciCompInc/hls_montecarlo
mcSVEqLinkStructNoteQ/vs_openmp/test.cpp
<reponame>SciCompInc/hls_montecarlo #include "catch2/catch.hpp" #include <iomanip> #include <iostream> #include <pricer_host.h> TEST_CASE("test11", "[hls]") { mcSVEqLinkStructNote pricer; pricer.load_inputs(); int pmax = 1 << 10; int seq = 1; int nsub = 4; double V, dev; double tk; pr...
dalaro/tinkerpop3
gremlin-core/src/main/java/com/tinkerpop/gremlin/process/graph/step/map/SelectOneStep.java
package com.tinkerpop.gremlin.process.graph.step.map; import com.tinkerpop.gremlin.process.Traversal; import com.tinkerpop.gremlin.process.Traverser; import java.util.Arrays; import java.util.Map; import java.util.function.Function; /** * @author <NAME> (http://markorodriguez.com) */ public final class SelectOneSt...
orekyuu/dd-trace-rb
integration/apps/rails-five/config/initializers/datadog.rb
<gh_stars>100-1000 require 'ddtrace' Datadog.configure do |c| c.diagnostics.debug = true if Datadog::DemoEnv.feature?('debug') c.analytics_enabled = true if Datadog::DemoEnv.feature?('analytics') c.runtime_metrics.enabled = true if Datadog::DemoEnv.feature?('runtime_metrics') if Datadog::DemoEnv.feature?('tra...
ciscochus/inmo
src/main/java/com/uoc/inmo/command/inmueble/CreateInmuebleCommand.java
<reponame>ciscochus/inmo<gh_stars>0 package com.uoc.inmo.command.inmueble; import java.util.List; import java.util.UUID; import com.uoc.inmo.command.BaseCommand; import com.uoc.inmo.command.api.request.RequestFile; import lombok.Data; @Data public class CreateInmuebleCommand extends BaseCommand<UUID> { public ...
hityc2019/servicecomb-service-center
datasource/mongo/client/mongo_test.go
<filename>datasource/mongo/client/mongo_test.go package client import ( "context" "testing" "github.com/go-chassis/go-chassis/v2/storage" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/mongo" ) const ( TESTCOL = "test" ) func init() { config := storage.Options{ URI: "mongodb://localhost:27...
turlodales/theos-projects
app_dumps/VKClient.folder/ActionOptionsProviderGift.h
<reponame>turlodales/theos-projects /** * This header is generated by class-dump-z 0.2-0. * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3. * * Source: (null) */ #import "ActionOptionsProviderActionBuilder.h" @class VKGiftListObject; __attribute__((visibility("hidden"))) @interface ActionO...
gribdesbois/ganister-test-react
vite-project/spec/relationships/00-get-relationships.spec.js
require('mocha'); const chai = require('chai'); const chaiHttp = require('chai-http'); const app = require('../../index'); const { mockNodetype, readDatamodel } = require('../helpers'); chai.use(chaiHttp); const { expect } = chai; const API_URL = '/api/v0'; const nodetypeName = 'part'; let targetNodetypeName; let r...
thinkpractice/bme
Src/NudgeMessageItem.cpp
#ifndef NUDGE_MESSAGE_ITEM_H #include "NudgeMessageItem.h" #endif NudgeMessageItem::NudgeMessageItem(ConvMessage* message) : MessageItem(message) { } NudgeMessageItem::~NudgeMessageItem() { } void NudgeMessageItem::DrawItem(BView* owner, BRect itemRect, bool drawEverything) { } void NudgeMessageItem::Update...
straill7/wc-code-migration-tool
plugin-qcheck.core/src/com/ibm/commerce/qcheck/core/comment/Tag.java
package com.ibm.commerce.qcheck.core.comment; /* *----------------------------------------------------------------- * Copyright 2018 <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...
immersionroom/vee
vee/solve.py
<filename>vee/solve.py import re from vee.requirement import RequirementSet class SolveError(ValueError): pass def verbose(depth, step, *args): print('{}{}'.format(' ' * depth, step), *args) def solve(*args, **kwargs): """Solve abstract requirements into concrete provisions. :param Requireme...
MatthieuBlais/freeldep
core/status.py
import json from utils import Clients from utils import Deployer clients = Clients.get() CREATE_ACTIONS = ["UPDATE_STACK", "CREATE_OR_UPDATE_STACK", "CREATE_STACK"] DELETE_ACTIONS = ["DELETE_STACK"] def set_status(success): return "SUCCESS" if success and type(success) is bool else "FAIL" def create_handler(...
trusona/trusona-server-sdk-ruby
spec/trusona/identity_document_spec.rb
<gh_stars>1-10 # frozen_string_literal: true require 'spec_helper' RSpec.describe Trusona::IdentityDocument do describe 'findining identity documents for a user' do it 'requires a user identifier' do expect { Trusona::IdentityDocument.all(user_identifier: nil) }.to( raise_error(ArgumentError, 'A u...
gonzus/pizza
base64.c
#include "base64.h" static const unsigned char enc_64[256] = { 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 62, 64, 64, 64, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 64, 64, ...
lechium/tvOS135Headers
Applications/TVMusic/TVMusicLibraryPlaylistsViewController.h
<reponame>lechium/tvOS135Headers // // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Jun 10 2020 10:03:13). // // Copyright (C) 1997-2019 <NAME>. // #import "TVMusicMPRequestViewController.h" #import "TVCollectionViewDelegate-Protocol.h" @class MPModelPlaylist, NSStr...
zealoussnow/chromium
chrome/browser/password_manager/android/java/src/org/chromium/chrome/browser/password_manager/CredentialManagerLauncherFactoryImpl.java
<gh_stars>1000+ // Copyright 2021 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. package org.chromium.chrome.browser.password_manager; /** * Instantiable version of {@link CredentialManagerLauncherFactory}, don't add ...
sotaoverride/backup
openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/systemd/1_242+AUTOINC+db2e367bfc-r0/git/src/journal/journal-verify.c
<reponame>sotaoverride/backup /* SPDX-License-Identifier: LGPL-2.1+ */ #include "journal-verify.h" #include <fcntl.h> #include <stddef.h> #include <sys/mman.h> #include <unistd.h> #include "alloc-util.h" #include "compress.h" #include "fd-util.h" #include "fileio.h" #include "fs-util.h" #include "journal-authenticat...
Video-Byte/prebid-server
adapters/smartrtb/smartrtb.go
<filename>adapters/smartrtb/smartrtb.go package smartrtb import ( "encoding/json" "fmt" "net/http" "text/template" "github.com/mxmCherry/openrtb/v15/openrtb2" "github.com/prebid/prebid-server/adapters" "github.com/prebid/prebid-server/config" "github.com/prebid/prebid-server/errortypes" "github.com/prebid/pr...
ss23/cpp3ds
include/cpp3ds/System.hpp
<filename>include/cpp3ds/System.hpp #ifndef CPP3DS_SYSTEM_HPP #define CPP3DS_SYSTEM_HPP #include <cpp3ds/Config.hpp> #include <cpp3ds/System/Clock.hpp> #include <cpp3ds/System/Err.hpp> #include <cpp3ds/System/I18n.hpp> #include <cpp3ds/System/InputStream.hpp> #include <cpp3ds/System/Lock.hpp> #include <cpp3ds/System/...
wojciech-panek/devtalk-pwa-app
webapp/src/modules/game/index.js
export { GameTypes, GameActions, } from './game.redux'; export * from './game.selectors';
daveagill/InvasionOfTheLiquidSnatchersGame
src/week/of/awesome/game/Beamable.java
package week.of.awesome.game; public interface Beamable { public void onEnterBeam(Beam b); public void onExitBeam(); }
Testiduk/gitlabhq
spec/frontend/filtered_search/issues_filtered_search_token_keys_spec.js
<reponame>Testiduk/gitlabhq import IssuableFilteredSearchTokenKeys from '~/filtered_search/issuable_filtered_search_token_keys'; describe('Issues Filtered Search Token Keys', () => { describe('get', () => { let tokenKeys; beforeEach(() => { tokenKeys = IssuableFilteredSearchTokenKeys.get(); }); ...
steph-ieffam/DSpace
dspace-oai/src/main/java/org/dspace/xoai/app/XOAICerifItemCompilePlugin.java
/** * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace.org/license/ */ package org.dspace.xoai.app; import java.io.ByteArrayOutputStream; import java.util.List; import java...
WynnKunGz/Refinement
src/main/java/com/ablackpikatchu/refinement/common/effects/NegateFall.java
<gh_stars>0 package com.ablackpikatchu.refinement.common.effects; import javax.annotation.Nonnull; import net.minecraft.entity.LivingEntity; import net.minecraft.potion.Effect; import net.minecraft.potion.EffectType; public class NegateFall extends Effect { public NegateFall() { super(EffectType.BENEFICIAL, 0x00...
minsukkahng/pokr.kr
alembic/versions/225b82afbf55_insert_values_into_party_affiliation.py
<gh_stars>10-100 """insert values into party_affiliation Revision ID: 225b82afbf55 Revises: <PASSWORD> Create Date: 2014-05-31 02:30:21.664147 """ # revision identifiers, used by Alembic. revision = '225b82afbf55' down_revision = '<PASSWORD>' from alembic import op import sqlalchemy as sa def upgrade(): op.ex...
Stanford-ILIAD/Confidence-Aware-Imitation-Learning
collect_demo.py
import os import argparse import torch from cail.env import make_env from cail.algo.algo import EXP_ALGOS from cail.utils import collect_demo def run(args): """Collect demonstrations""" env = make_env(args.env_id) device = torch.device("cuda" if torch.cuda.is_available() else "cpu") ...
TencentCloud/tencentcloud-sdk-nodejs-intl-en
tencentcloud/live/v20180801/models.js
<reponame>TencentCloud/tencentcloud-sdk-nodejs-intl-en<gh_stars>1-10 /* * Copyright (c) 2018 THL A29 Limited, a Tencent company. 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...
JPDSousa/rookit
rookit-auto/source/javapoet/lib/src/main/java/org/rookit/auto/javapoet/type/parameter/BaseJavaPoetTypeParameter.java
<filename>rookit-auto/source/javapoet/lib/src/main/java/org/rookit/auto/javapoet/type/parameter/BaseJavaPoetTypeParameter.java /******************************************************************************* * Copyright (C) 2018 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy ...
dmoiseenko/wen
static/middlewares/main.serve.middleware.js
const send = require('koa-send'); const path = require('path'); const Router = require('koa-router'); const router = new Router(); const serve = ctx => send( ctx, ctx.path, { root: path.join(__dirname, '../../public/main'), maxage: 31536000 } ); router.get('/js/(.*)', serve); router.get('/css/(.*)', ...
KyuboNoh/HY
SimPEG/Mesh/BaseMesh.py
<reponame>KyuboNoh/HY import numpy as np from SimPEG import Utils class BaseMesh(object): """ BaseMesh does all the counting you don't want to do. BaseMesh should be inherited by meshes with a regular structure. :param numpy.array,list n: number of cells in each direction (dim, ) :param numpy.arr...
szymanskirafal/tryread
tryread/books/migrations/0011_auto_20180613_1914.py
# Generated by Django 2.0.5 on 2018-06-13 19:14 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('books', '0010_auto_20180611_2122'), ] operations = [ migrations.RemoveField( model_name='dialog', name='chapter', ),...
nrg12/VOOGASalad
src/structures/data/actions/move/CapSpeed.java
<gh_stars>0 package structures.data.actions.move; import structures.data.DataAction; import structures.data.actions.params.DoubleParam; public class CapSpeed extends DataAction { public CapSpeed() { init(new DoubleParam("Speed")); } @Override public String getTitle() { return "Cap Max Speed"; } @Overrid...
thanexor/badmoviesquad
app/constants.js
export const TMDB_URL = 'https://www.themoviedb.org/'; export const MOVIE_URL = `${TMDB_URL}/movie`; // TODO: migrate all colors here export const COLORS = { white: 'hsl(0, 0%, 100%)', black: 'hsl(0, 0%, 0%)', gray: { 100: 'rgb(250, 250, 250)', 200: 'rgb(228, 228, 228)', 300: 'rgb(206, 206, 206)', ...
stanolacko/JCloisterZone
src/main/java/com/jcloisterzone/board/TileSymmetry.java
package com.jcloisterzone.board; /** * Enumerates the symmetry conditions of a tile. */ public enum TileSymmetry { /** * No symmetry */ NONE, /** * Opposite edges are equal */ S2, /** * All edges are equal */ S4 }
krevelen/rivm-vacsim
java/episim-model/src/main/java/nl/rivm/cib/episim/model/vaccine/Vaccine.java
package nl.rivm.cib.episim.model.vaccine; import java.util.Collection; import java.util.Collections; import javax.measure.quantity.Dimensionless; import io.coala.enterprise.Actor; import io.coala.random.ProbabilityDistribution; import io.coala.random.QuantityDistribution; import io.coala.time.Proactive; import io.co...
maciej-barczak-red/pxCore
remote/rtRemoteMapper.h
<gh_stars>0 #ifndef __RT_REMOTE_ENDPOINT_MAPPER_H__ #define __RT_REMOTE_ENDPOINT_MAPPER_H__ #include "rtRemoteEndpoint.h" #include "rtError.h" #include <string> class rtRemoteEnvironment; class rtRemoteIMapper { public: virtual ~rtRemoteIMapper() { } public: virtual rtError registerEndpoint(std::string const& o...
VenusProtocol/venus-protocol-docs
src/components/Docs/VenusJS/Introduction.js
import React from 'react'; import styled from 'styled-components'; import Label from 'components/Basic/Label'; import Description from 'components/Basic/Description'; const GovernorAlphaWrapper = styled.div` margin-bottom: 50px; `; function GovernorAlpha() { return ( <GovernorAlphaWrapper id="venusJS-introduc...
McSources/LeetCode
src/main/java/leetcode/Test.java
<gh_stars>0 package leetcode; /** * @author machao * @date 2021/6/27 */ public class Test { public static void main(String[] args) { } }
netflix-tianbin/skywalking-study
apm-protocol/apm-network/target/generated-sources/protobuf/java/org/apache/skywalking/apm/network/register/v2/ServiceAndNetworkAddressMapping.java
<filename>apm-protocol/apm-network/target/generated-sources/protobuf/java/org/apache/skywalking/apm/network/register/v2/ServiceAndNetworkAddressMapping.java // Generated by the protocol buffer compiler. DO NOT EDIT! // source: register/Register.proto package org.apache.skywalking.apm.network.register.v2; /** * Prot...
tomasz-herman/GModeling
src/main/java/pl/edu/pw/mini/mg1/graphics/Shader.java
<reponame>tomasz-herman/GModeling package pl.edu.pw.mini.mg1.graphics; import com.jogamp.common.nio.Buffers; import com.jogamp.opengl.GL4; import com.jogamp.opengl.util.GLBuffers; import org.joml.Matrix4fc; import org.joml.Vector3fc; import pl.edu.pw.mini.mg1.utils.IOUtils; import java.nio.ByteBuffer; import java.nio...
sm2774us/amazon_interview_prep_2021
solutions/python3/587.py
# http://www.algorithmist.com/index.php/Monotone_Chain_Convex_Hull.py class Solution(object): def outerTrees(self, points): """Computes the convex hull of a set of 2D points. Input: an iterable sequence of (x, y) pairs representing the points. Output: a list of vertices of the convex hul...
peterdonnelly1/u24_lymphocyte
archive/lym_pipeline/prediction/color_stats.py
import sys import os import numpy as np import time from PIL import Image APS = 100; TileFolder = sys.argv[1] + '/'; heat_map_out = 'patch-level-color.txt'; def whiteness(png): wh = (np.std(png[:,:,0].flatten()) + np.std(png[:,:,1].flatten()) + np.std(png[:,:,2].flatten())) / 3.0; return wh; def blackness(p...
shhan3927/Study
CCI/3-4/main.cpp
#include <iostream> #include "Stack.h" using namespace std; class MyQueue { public: void Add(int data) { Stack<int> buffer; while(!stack.Empty()) { buffer.Push(stack.Pop()); } stack.Push(data); while(!buffer.Empty()) { stack.Push...
nickbaum/st2
st2tests/integration/orquesta/base.py
# Licensed to the StackStorm, Inc ('StackStorm') 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 th...
markyangchangliang/framework
spring-cloud-framework/app/system/src/main/java/com/markyang/framework/app/system/repository/ExportFieldRepository.java
<gh_stars>1-10 package com.markyang.framework.app.system.repository; import com.markyang.framework.service.core.repository.FrameworkRepository; import com.markyang.framework.pojo.entity.system.ExportField; /** * 导出数据字段(ExportField)仓库类 * * @author yangchangliang * @version 1 * @date 2020-03-25 18:16:18 */ public...
dkuerner/sechub
sechub-developertools/src/main/java/com/daimler/sechub/developertools/admin/ConfigProvider.java
<gh_stars>0 // SPDX-License-Identifier: MIT package com.daimler.sechub.developertools.admin; public interface ConfigProvider { public String getApiToken(); public String getUser(); public String getServer(); public int getPort(); public void handleClientError(String statusText); }
CharLemAznable/eql
src/test/java/org/n3r/eql/impl/BooleanTest.java
package org.n3r.eql.impl; import org.junit.Test; import org.n3r.eql.Eql; import java.util.List; import static org.hamcrest.CoreMatchers.equalTo; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertThat; public class BooleanTest { @Test public void test() { new Eql("mysql...
reality-scheveningen/reality-website
lib/sync/download-synced-assets.js
const _ = require('lodash') const path = require('path') const url = require('url') const download = require('download') module.exports = exports = function (e) { e.downloadedAssets = _.flatten( e.sync.assets.map(asset => { const items = [] _.forEach(asset.fields.file, file => { const localP...
InjectiveLabs/injective-explorer-mintscan-backend
chain-exporter/exporter/block.go
<filename>chain-exporter/exporter/block.go package exporter import ( "github.com/InjectiveLabs/injective-explorer-mintscan-backend/chain-exporter/schema" sdk "github.com/cosmos/cosmos-sdk/types" tmctypes "github.com/tendermint/tendermint/rpc/core/types" ) // getBlock exports block information. func (ex *Exporter)...
sousaw/BTE-Barna
test/kappa_Tsweep_test.cpp
<reponame>sousaw/BTE-Barna<filename>test/kappa_Tsweep_test.cpp<gh_stars>1-10 // Copyright 2015-2020 The ALMA Project Developers // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // htt...
LSFLK/GIG-SDK
tests/client/get_entity_test.go
package client import ( "testing" ) func TestThatGetEntityWorks(t *testing.T) { result, err := testClient.GetEntity("<NAME>a") if err != nil { t.Errorf("match string for partially equal strings failed. %s == %s", result, "") } }
fniephaus/homebrew-cask
Casks/gyazo.rb
<reponame>fniephaus/homebrew-cask cask :v1 => 'gyazo' do version '2.0' sha256 '41242a421ee0c2b467ac0ff7fa1baa895c824e940bc5aee92a4ec2bf8e204eb3' url "https://gyazo.s3.amazonaws.com/setup/Gyazo_#{version}.dmg" homepage 'https://gyazo.com/' license :unknown app 'Gyazo.app' app 'Gyazo GIF.app' end
DamieFC/chromium
extensions/common/user_script.h
// Copyright 2013 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 EXTENSIONS_COMMON_USER_SCRIPT_H_ #define EXTENSIONS_COMMON_USER_SCRIPT_H_ #include <memory> #include <string> #include <vector> #include "base/f...