repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
tipplerow/pubmed
pubmed-lib/src/main/java/pubmed/relev/RelevanceSummarySubjectFile.java
package pubmed.relev; import java.io.File; import java.time.LocalDate; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Set; import jam.app.JamLogger; import jam.io.IOUtil; import pubmed.article.DOI; import pubmed.articl...
gingerich/mesa
packages/mesa-transport/src/network/interface.js
import invariant from 'invariant'; import Connection from './connection'; import Connector from './connector'; export default class Interface extends Connector { // static resolve(iface, ...args) { // const connection = Connection.resolve(...args) // connection.args = args // return new this(iface, conne...
EzoeRyou/Sprout
sprout/index_tuple/index_tuple.hpp
/*============================================================================= Copyright (c) 2011-2014 <NAME> https://github.com/bolero-MURAKAMI/Sprout Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =====...
dbhowmik/scalableWM
Scalable_WM/src/Embedding/preProcessEmbed.java
<filename>Scalable_WM/src/Embedding/preProcessEmbed.java /** * @author: <NAME> * * Department of Electronic and Electrical Engineering * University of Sheffield * Copyright reserved * */ package Embedding; import Main.*; import Wavelet.*; import MCTF.*; import Result.ImperceptibilityResult; import Watermark.Wat...
Eric-Ma-C/PAT-Advanced
Basic/BB1026/BB1026/main.cpp
#include<stdio.h> int main(){ int size;char c; scanf("%d %c",&size,&c); int col=(int)(size/2.0+0.5); for(int i=0;i<col;i++){ for(int j=0;j<size;j++){ if(j==size-1) printf("%c\n",c); else if(i==0||i==col-1||j==0) printf("%c",c); else printf(" "); } } getchar(); getchar(); return 0; }
smilebingbing/java
offer/src/com/java/offer/ReverseK.java
<reponame>smilebingbing/java<filename>offer/src/com/java/offer/ReverseK.java package com.java.offer; import java.util.Stack; public class ReverseK { public Node reverseKNode(Node head , int k){ if(k < 2){ return head; } Stack<Node> stack = new Stack<Node>(); Node newHead = head; Node cur = head; N...
Claayton/mitmirror-api
mitmirror/presenters/errors/error_controller.py
<reponame>Claayton/mitmirror-api """Lógica para tratamento de erros""" from typing import Type, Dict from mitmirror.presenters.helpers import HttpResponse from mitmirror.errors import ( HttpRequestError, HttpBadRequestError, HttpUnauthorized, HttpNotFound, HttpUnprocessableEntity, HttpForbidden,...
Ulysses31/react-tasks-mern
client/src/components/departments/department-list.js
<filename>client/src/components/departments/department-list.js<gh_stars>0 import React, { useEffect, useMemo, useState } from 'react'; import PropTypes from 'prop-types'; import DatePicker from 'react-datepicker'; import { useDispatch, useSelector } from 'react-redux'; import { Link, useHistory } from 'react-router-dom...
NaikRaghavendra/pi-epaper-dashboard
Source/Apps/MainWeather.py
<reponame>NaikRaghavendra/pi-epaper-dashboard<filename>Source/Apps/MainWeather.py import logging import Geometry.Point as PT import Utilities.Recurrer as AR import Widgets.CurrentWeather as CW import Widgets.SunPosition as SP import Widgets.WindCompass as WC import Weather.WeatherQuery as WQ from PIL import ImageDraw ...
zppvae/spring-framework-5.1.x
demo/src/main/java/org/zpp/aop/dao/OrderDaoAImpl.java
<reponame>zppvae/spring-framework-5.1.x<filename>demo/src/main/java/org/zpp/aop/dao/OrderDaoAImpl.java package org.zpp.aop.dao; import org.springframework.beans.factory.InitializingBean; import org.springframework.stereotype.Component; @Component("orderDao") public class OrderDaoAImpl implements OrderDao,Initializing...
deaguirp/portmapper
src/main/java/com/offbynull/portmapper/mappers/pcp/externalmessages/FilterPcpOption.java
/* * Copyright 2013-2016, <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
ShenShu2016/uwcssa_ca
frontend/src/components/Forum/ForumPost/ForumPostDetail/ForumPostComments.js
<reponame>ShenShu2016/uwcssa_ca import { // Box, // Typography, // LinearProgress, // Skeleton, } from "@mui/material"; import { makeStyles } from "@mui/styles"; import React from "react"; import ForumPostCommentMain from "../ForumPostComment/ForumPostCommentMain"; // import ForumPostCommentComponent from "./Fo...
yrll/batfish-repair
smt_policy/SMTMatchAnd.java
package smt_policy; public class SMTMatchAnd implements SMTAbstractMatch{ }
estrattonbailey/lol-state
packages/loll-href/index.js
export default function href (cb) { window.addEventListener('click', e => { if (e.ctrlKey || e.metaKey || e.altKey || e.shiftKey || e.defaultPrevented) return let a = e.target while (a && !(a.href && a.nodeName === 'A')) { a = a.parentNode } if ( !a || window.location.origin !...
GoodforGod/dummymaker
src/main/java/io/dummymaker/scan/IGenScanner.java
<reponame>GoodforGod/dummymaker package io.dummymaker.scan; import io.dummymaker.model.GenContainer; import java.lang.reflect.Field; import java.util.Map; import org.jetbrains.annotations.NotNull; /** * Scanners used by populate factory primarily * * @author GoodforGod * @see io.dummymaker.factory.impl.GenFactory...
nbey/slate-cbl
sencha-workspace/tests/SlateTasksTeacher/020_dom-render.t.js
StartTest(function(t) { t.requireOk('SlateTasksTeacher.Application', function() { var studentsgrid, gridlegend, data, students, rows; t.it('Should render slate-studentsgrid along with it\'s contents', function(t) { ...
DBCDK/fcrepo-3.5-patched
fcrepo-common/src/main/java/org/fcrepo/common/policy/DatastreamNamespace.java
/* The contents of this file are subject to the license and copyright terms * detailed in the license directory at the root of the source tree (also * available online at http://fedora-commons.org/license/). */ package org.fcrepo.common.policy; import com.sun.xacml.attr.AnyURIAttribute; import com.sun.xacml.attr.B...
sandrain/UnifyCR
common/src/slotmap.h
<gh_stars>0 /* * Copyright (c) 2020, Lawrence Livermore National Security, LLC. * Produced at the Lawrence Livermore National Laboratory. * * Copyright 2020, UT-Battelle, LLC. * * LLNL-CODE-741539 * All rights reserved. * * This is the license for UnifyFS. * For details, see https://github.com/LLNL/UnifyFS. ...
santhosh-tekuri/raft
config_test.go
// Copyright 2019 <NAME> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writi...
norech/myrpg
lib/iron_goat/erty/ecstring/cmp/estartswith.c
<filename>lib/iron_goat/erty/ecstring/cmp/estartswith.c /* ** EPITECH PROJECT, 2020 ** LibErty ** File description: ** estartswith */ #include <erty/string/ecstring.h> bool estartswith(const_cstr_t haystack, const_cstr_t needle) { return ((estrncmp(haystack, needle, estrlen(needle) == 0))); }
inalbisdev/base
src/helpers/getPartial.js
module.exports = function(name) { return name; };
hpgit/HumanFoot
PyCommon/externalLibs/BaseLib/math/nr/cpp/recipes/dfpmin.cpp
<gh_stars>0 #include <cmath> #include <limits> #include "nr.h" using namespace std; void NR::dfpmin(Vec_IO_DP &p, const DP gtol, int &iter, DP &fret, DP func(Vec_I_DP &), void dfunc(Vec_I_DP &, Vec_O_DP &)) { const int ITMAX=200; const DP EPS=numeric_limits<DP>::epsilon(); const DP TOLX=4*EPS,STPMX=100.0...
tadejsv/catalyst
catalyst/contrib/layers/__init__.py
# flake8: noqa from torch.nn.modules import * from catalyst.contrib.layers.amsoftmax import AMSoftmax from catalyst.contrib.layers.arcface import ArcFace, SubCenterArcFace from catalyst.contrib.layers.arcmargin import ArcMarginProduct from catalyst.contrib.layers.common import ( Flatten, GaussianNoise, Lam...
strider2038/otus-marketplace
services/trading-service/internal/api/api_trading_service.go
<reponame>strider2038/otus-marketplace /* * Public API * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * API version: 1.0.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package api import ( "context" "net/http" "time" ...
Zalexanninev15/VitNX
docs/search--/s_5297.js
search_result['5297']=["topic_00000000000016AC_events--.html","FontAwesomeExtensions Events",""];
ALRubinger/descriptors
spi/src/main/java/org/jboss/shrinkwrap/descriptor/spi/node/Query.java
<filename>spi/src/main/java/org/jboss/shrinkwrap/descriptor/spi/node/Query.java /* * JBoss, Home of Professional Open Source * Copyright 2010, Red Hat Middleware LLC, and individual contributors * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * L...
jiabao422/vue-cesium
website/public/Cesium/Workers/createEllipseOutlineGeometry.js
<reponame>jiabao422/vue-cesium<filename>website/public/Cesium/Workers/createEllipseOutlineGeometry.js define([ './Matrix2-9aa31791', './when-4bbc8319', './EllipseOutlineGeometry-247f65c5', './RuntimeError-346a3079', './ComponentDatatype-93750d1a', './WebGLConstants-1c8239cc', './GeometryOffsetAttribute-17...
zhyuzh3d/10knet_cliWeb
src/Units/User/UserItem.js
/* 单个用户项 props:{ userId,用户的ID,这里会自动读取用户头像姓名信息 currentUser:当前用户,用于判断是否显示菜单 } */ import { Component } from 'react'; import h from 'react-hyperscript'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import Grid from 'material-ui/Grid'; import Button from 'material-ui/Button';...
sinarueeger/dplyr
inst/include/dplyr/hybrid/Column.h
<gh_stars>100-1000 #ifndef dplyr_hybrid_column_h #define dplyr_hybrid_column_h namespace dplyr { namespace hybrid { struct Column { SEXP data; bool is_desc; inline bool is_trivial() const { return !Rf_isObject(data) && !Rf_isS4(data) && RCPP_GET_CLASS(data) == R_NilValue; } }; } } #endif
magicLaLa/RSSHub
lib/v2/rfi/radar.js
module.exports = { 'rfi.fr': { _name: '法国国际广播电台', '.': [ { title: '滚动新闻', docs: 'https://docs.rsshub.app/multimedia.html#fa-guo-guo-ji-guang-bo-dian-tai-gun-dong-xin-wen', source: ['/'], target: '/rfi/news', }, ...
mobotx/mobot
chassis/firmware/src/libs/joint_control.py
import math from machine import Timer def is_within(x, eps): if x < eps and x > -eps: return True else: return False class JointControl: def __init__(self, motor, js, kp, ki, target_w_min, target_w_max, gamma): self.motor = motor self.js = js self.kp = kp se...
deanearlwright/AdventOfCode
2015/08_Matchsticks/literals.test.js
<filename>2015/08_Matchsticks/literals.test.js<gh_stars>1-10 /* eslint-disable linebreak-style */ // ====================================================================== // Matchsticks // Advent of Code 2015 Day 08 -- <NAME> -- https://adventofcode.com // // Javascript implementation by Dr. <NAME> III // =========...
branflake2267/gxt-demo-desktop
src/main/java/com/sencha/gxt/desktop/client/widget/StartMainMenu.java
/** * Sencha GXT 1.0.0-SNAPSHOT - Sencha for GWT * Copyright (c) 2006-2018, Sencha Inc. * * <EMAIL> * http://www.sencha.com/products/gxt/license/ * * ================================================================================ * Commercial License * =========================================================...
PaPeK/epipack
epipack/metadata.py
<reponame>PaPeK/epipack<gh_stars>0 # -*- coding: utf-8 -*- """ Contains a bunch of information about this package. """ __version__ = "0.1.5" __author__ = "<NAME>" __copyright__ = "Copyright 2020-2021, " + __author__ __credits__ = [__author__] __license__ = "MIT" __maintainer__ = __author__ __email__ = "<EMAIL>" __sta...
stefan-zobel/schwefel
src/main/java/net/volcanite/util/Byte8Key.java
<filename>src/main/java/net/volcanite/util/Byte8Key.java package net.volcanite.util; import java.util.Arrays; import java.util.Objects; /** * Key generator for auto-incrementing fixed length 8 byte[] array keys which * wrap-around on overflow. Note that the individual bytes in a key must be * interpreted a...
candideu/hivemind
components/layout/Layout.js
<filename>components/layout/Layout.js import Head from 'next/head' import Link from 'next/link' import React, { forwardRef, useCallback, useContext, useState } from 'react' import { GitHub, HelpCircle, Info, MessageCircle, } from 'react-feather' import NotificationAlert from 'react-notification-alert' import { ...
liliilli/DianYing
Core/DianYing/Source/Test/testLuaVariable.cc
<reponame>liliilli/DianYing<filename>Core/DianYing/Source/Test/testLuaVariable.cc<gh_stars>1-10 #include <precompiled.h> /// /// MIT License /// Copyright (c) 2018 <NAME> /// /// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR /// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHA...
RenatoUtsch/compiler
src/parallelme-compiler/src/main/resources/ParallelME/java/org/parallelme/ParallelMERuntime.java
/** _ __ ____ * _ __ ___ _____ ___ __ __ ___ __ / | / / __/ * | _ \/ _ | _ | / _ | / / / / / __/ / / | / / /__ * | __/ __ | ___|/ __ |/ /_/ /__/ __/ /__ / / v / /__ * |_| /_/ |_|_|\_\/_/ |_/____/___/___/____/ /_/ /_/____/ * */ packa...
rharder/pushbullet.py
tests/test_auth.py
<gh_stars>10-100 import os import pytest import asyncpushbullet API_KEY = os.environ["PUSHBULLET_API_KEY"] def test_auth_fail(): with pytest.raises(asyncpushbullet.InvalidKeyError) as exinfo: pb = asyncpushbullet.Pushbullet("faultykey") # pb.session # Triggers a connection pb.verify_key(...
bq-ashok/FE-BackUp
app/controllers/reports/study-student-collection.js
<reponame>bq-ashok/FE-BackUp<filename>app/controllers/reports/study-student-collection.js<gh_stars>0 import Ember from 'ember'; import StudentCollection from 'gooru-web/controllers/reports/student-collection'; import { ASSESSMENT_SUB_TYPES, ROLES } from 'gooru-web/config/config'; /** * * Controls the access to the a...
351ELEC/lzdoom
src/posix/sdl/sdlglvideo.h
#ifndef __SDLGLVIDEO_H__ #define __SDLGLVIDEO_H__ #include "hardware.h" #include "v_video.h" #include <SDL.h> #include "gl/system/gl_system.h" EXTERN_CVAR (Float, dimamount) EXTERN_CVAR (Color, dimcolor) struct FRenderer; FRenderer *gl_CreateInterface(); class SDLGLVideo : public IVideo { public: SDLGLVideo (int ...
fernandogar92/javaee8-samples
cdi/interception-factory/src/main/java/org/javaee8/cdi/interception/factory/MyGreetingProducer.java
package org.javaee8.cdi.interception.factory; import java.util.logging.Logger; import javax.annotation.Priority; import javax.enterprise.context.ApplicationScoped; import javax.enterprise.inject.Alternative; import javax.enterprise.inject.Produces; import javax.enterprise.inject.spi.InterceptionFactory; @Alternative...
dhiltgen/stacks-1
pkg/client/stack_create.go
package client import ( "context" "encoding/json" "github.com/docker/stacks/pkg/types" ) // StackCreate creates a new Stack func (cli *Client) StackCreate(ctx context.Context, stack types.StackCreate, options types.StackCreateOptions) (types.StackCreateResponse, error) { headers := map[string][]string{ "versio...
RampNetwork/torus-website
app/src/store/PaymentActions/simplex.js
<filename>app/src/store/PaymentActions/simplex.js import log from 'loglevel' import { postQuote, postOrder } from '../../plugins/simplex' import config from '../../config' import { broadcastChannelOptions } from '../../utils/utils' import PopupHandler from '../../utils/PopupHandler' import { SIMPLEX } from '../../utils...
lucvoo/log2c
src/pl-Smem.c
<reponame>lucvoo/log2c /************************************************************************/ /* Copyright (c) 1998-2014 <NAME>. All rights reserved. */ /* */ /* %@%LICENSE */ /* */ /************************************************************************/ #include "pl-stream_impl.h" /*****...
bg1bgst333/Sample
c/pipeline/pipeline/src/pipeline/dest.c
/* ヘッダファイルのインクルード */ #include <stdio.h> /* 標準入出力 */ #include <string.h> /* 文字列処理 */ /* main関数 */ int main(void){ /* 配列の宣言 */ char buf[256]; /* char型文字配列buf(長さ256) */ /* 文字列の受け取り */ fgets(buf, 256, stdin); /* fgetsでstdinから文字列を受け取る. */ /* 改行の除去 */ if (buf[strlen(buf) - 1] == '\n'){ /* 末尾が'\n'なら. */ bu...
leobert-lan/Android_Bean_Validator
inspector_base/src/main/java/osp/leobert/android/inspector/Inspector.java
package osp.leobert.android.inspector; import javax.annotation.Nullable; import java.lang.annotation.Annotation; import java.lang.reflect.Type; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.ut...
whoisje/airdrop-react
src/common/model/graph-core.js
import {Graph} from '@antv/x6' import {BehaviorSubject, fromEventPattern, merge} from 'rxjs' import {debounceTime, map, scan, tap} from 'rxjs/operators' import './graph-core.css' function setCellsSelectedStatus(cells, selected) { cells.forEach((cell) => { const data = cell.getData() || {} cell.setData({...d...
bopopescu/ServerStatus
resources/lib/IMDbPY/bin/topbottom4local.py
<filename>resources/lib/IMDbPY/bin/topbottom4local.py<gh_stars>0 #!/usr/bin/env python """ topbottom4local.py script. This script creates some files to access top 250/bottom 10 information from the 'local' data access system. Copyright 2009 <NAME> <<EMAIL>> This program is free software; you can redistribute it and/...
DynamicSSSP/sc18
SSSP/ESSENS/Core/Basic_Traversal/Level2/ADJ/traversal.hpp
#ifndef TRAVERSAL_HPP #define TRAVERSAL_HPP #include "ADJ/network_traversal.hpp" using namespace std; /**Traversal based on these features ***/ // 1. Traverse Type: Node; Font; Pieces (0,1,2) // 2. Increase Set: Node; Nodes; Subgraph (0,1,2); // 3. Edges added as traversed (0); from top of heap (1); //===Optional ...
Aliacf21/BotBuilder-Samples
samples/java_springboot/81.skills-skilldialog/dialog-root-bot/src/main/java/com/microsoft/bot/sample/dialogrootbot/middleware/Logger.java
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MT License. package com.microsoft.bot.sample.dialogrootbot.middleware; import java.util.concurrent.CompletableFuture; public abstract class Logger { public CompletableFuture<Void> logEntry(String entryToLog) { System.out....
jjxs/coolweather
daqi/server/src/main/java/cn/com/cnc/fcc/web/rest/QmsProductionInspectionResource.java
<reponame>jjxs/coolweather package cn.com.cnc.fcc.web.rest; import cn.com.cnc.fcc.service.util.DateUtil; import com.codahale.metrics.annotation.Timed; import cn.com.cnc.fcc.domain.QmsProductionInspection; import cn.com.cnc.fcc.repository.QmsProductionInspectionRepository; import cn.com.cnc.fcc.web.rest.errors.BadReque...
agaveplatform/science-apis
agave-systems/systems-core/src/test/java/org/iplantc/service/transfer/sftp/SftpRelayPasswordRemoteDataClientIT.java
<gh_stars>0 /** * */ package org.iplantc.service.transfer.sftp; import org.apache.commons.io.FileUtils; import org.iplantc.service.systems.exceptions.EncryptionException; import org.iplantc.service.systems.exceptions.RemoteCredentialException; import org.iplantc.service.systems.model.AuthConfig; import org.iplantc....
Dive904/What2Cite
src/pipelineapplication/system_accuracy.py
<reponame>Dive904/What2Cite import pickle import numpy as np from keras_preprocessing.sequence import pad_sequences from tensorflow_core.python.keras.models import load_model from src.fileutils import file_abstract from src.pipelineapplication import utils from src.neuralnetwork import lstm_utils # input cit_labelle...
wurui1994/test
Sources/Graphics/GUILib/Qt5Example/VolumeWidget/main.cpp
#include "VolumeWidget.h" #include <QApplication> #include <QSlider> #include <QtWidgets/QtWidgets> int main(int argc, char *argv[]) { QApplication a(argc, argv); //QMainWindow w; MusicVolumePopWidget* slider = new MusicVolumePopWidget; slider->resize(320, 240); //w.setCentralWidget(slide...
ykskb/dax86
interrupt.h
#ifndef INT_H_ #define INT_H_ #include "emulator.h" #include "modrm.h" #define T_IRQ0 32 // IRQ 0 corresponds to int T_IRQ #define IRQ_TIMER 0 #define IRQ_KBD 1 #define IRQ_COM1 4 #define IRQ_IDE 14 #define IRQ_ERROR 19 #define IRQ_SPURIOUS 31 void lidt(Emulator *emu, ModRM *modrm); void handle_interrupt(Emulator *...
cmcfarlen/trafficserver
proxy/http/unit_tests/test_error_page_selection.cc
<gh_stars>1000+ /** @file Catch-based tests of error page selection. @section license License 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 A...
lofunz/mieme
Reloaded/trunk/src/mame/video/boogwing.c
#include "emu.h" #include "includes/boogwing.h" #include "video/deco16ic.h" static void draw_sprites( running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect, UINT16* spriteram_base, int gfx_region ) { boogwing_state *state = machine->driver_data<boogwing_state>(); int offs; int flipscreen = !...
leoclee/agent
src/test/java/org/nhindirect/ldap/LDAPResearchTest.java
<reponame>leoclee/agent<filename>src/test/java/org/nhindirect/ldap/LDAPResearchTest.java package org.nhindirect.ldap; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.security.cert.X509Certificate; import java.util.Collection; import java.ut...
WRSC/tracking
MYR_rails/db/migrate/20150812100832_add_mission_type.rb
<reponame>WRSC/tracking class AddMissionType < ActiveRecord::Migration def change remove_column :missions, :description, :text add_column :missions, :type, :string end end
msullivan/advent-of-code
2021/10b.py
#!/usr/bin/env python3 import sys def main(args): data = [s.strip() for s in sys.stdin] LS = "([{<" RS = ")]}>" m = {k: v for k, v in zip(LS, RS)} scores = [3, 57, 1197, 25137] incomplete = [] score = 0 score2 = [] for line in data: stack = [] busted = False ...
BobLChen/VulkanDemos
examples/61_CPURayTracing/TaskThread.h
<gh_stars>100-1000 #pragma once #include "Runnable.h" #include "ThreadEvent.h" class ThreadTask; class TaskThreadPool; class RunnableThread; class TaskThread : public Runnable { public: TaskThread(); virtual ~TaskThread(); virtual bool Create(TaskThreadPool* pool); virtual boo...
ilscipio/erp
applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.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...
Communio-Templorum/libris-sanctis
src/pages/metamorphoses/Book7/ctrl.js
yodasws.page('pageMetamorphosesBook7').setRoute({ title: 'Metamorphoses, Book 7', template: 'pages/metamorphoses/Book7/Book7.html', canonicalRoute: '/metamorphoses/book7/', route: '/metamorphoses/book7/?', });
madanagopaltcomcast/pxCore
examples/pxScene2d/external/libnode-v6.9.0/test/fixtures/module-require/child/node_modules/target.js
<reponame>madanagopaltcomcast/pxCore exports.loaded = 'from child';
odenyirechristopher/instagramapp
venv/lib/python3.6/site-packages/csvimport/tests/views.py
from django.http import HttpResponse def index(request, template="README.txt", **kwargs): return HttpResponse( """<html><body><h1>django-csvimport Test app</h1> <p>You have installed the test django-csvimport application. Click on the <a href="/admin/">admin</a> ...
k-hatano/HyperZebra
src/hyperzebra/TTalk.java
package hyperzebra; import java.awt.AWTException; import java.awt.Color; import java.awt.Component; import java.awt.Cursor; import java.awt.Graphics2D; import java.awt.MouseInfo; import java.awt.Point; import java.awt.PointerInfo; import java.awt.Rectangle; import java.awt.Robot; import java.awt.event.InputEvent; impo...
snaerth/article-keeper
shared/components/logger/actions.js
<reponame>snaerth/article-keeper<filename>shared/components/logger/actions.js import axios from 'axios'; import { GET_LOGS_SUCCESS, GET_LOGS_ERROR, DELETE_LOGS_SUCCESS, DELETE_LOGS_ERROR, IS_FETCHING, IS_NOT_FETCHING, } from './types'; import { authError } from '../../common/actions'; /** * Is fetching da...
phil65/PrettyQt
prettyqt/location/placeeditorial.py
<gh_stars>1-10 from __future__ import annotations from prettyqt import location from prettyqt.qt import QtLocation QtLocation.QPlaceEditorial.__bases__ = (location.PlaceContent,) class PlaceEditorial(QtLocation.QPlaceEditorial): def __str__(self): return f"{self.title()}: {self.text()}" if __name__ =...
Pi-Laboratory/akademik-frontend
src/pages/Lecturer.PresensiNilai/index.js
import PresensiNilaiDetail from "pages/Lecturer.PresensiNilai.Detail"; import PresensiNilaiList from "pages/Lecturer.PresensiNilai.List"; import { Navigation } from "pages/Root/hoc"; import { Helmet } from "react-helmet"; import { useRouteMatch } from "react-router"; import { Layout } from "./Layout"; const navigation...
thexa4/Spades
max2/gamestate.py
import random import numpy as np import tensorflow as tf class GameState: def __init__(self, model, training=False, temperature=1): self.bid_state = {'bids': {}, 'hand': [], 'bags': []} self.chosen_bid = None self.seen = [0] * 52 self.rounds = [None] * 13 self.chosen_cards =...
neverware-mirrors/tast-tests
src/chromiumos/tast/local/bundles/cros/camera/decode_accel_jpeg_perf.go
// Copyright 2018 The Chromium OS 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 camera import ( "bufio" "context" "fmt" "os" "path/filepath" "regexp" "strconv" "time" "chromiumos/tast/common/perf" "chromiumos/ta...
FastNinja/seek-style-guide
react/CriticalIcon/CriticalIcon.js
<reponame>FastNinja/seek-style-guide<gh_stars>100-1000 import svgMarkup from './CriticalIcon.svg'; import React from 'react'; import Icon from '../private/Icon/Icon'; export default function CriticalIcon(props) { return <Icon markup={svgMarkup} {...props} />; } CriticalIcon.displayName = 'CriticalIcon';
obtusebanana/upfire
app/containers/Wallet/components/PromptCreateWallet/index.js
<reponame>obtusebanana/upfire<gh_stars>1-10 import React from 'react'; import trans from '../../../../translations'; import { PopAction, Row, RowCenter } from '../../../../components/prompt/style'; import UInput from '../../../../components/InputText'; import SecondaryButton from '../../../../components/Buttons/Seconda...
jaredmichaelwilliams/homebrew-cask
Casks/fishapp.rb
<filename>Casks/fishapp.rb cask 'fishapp' do version '2.2.0' sha256 'e07d30687eff3a66f17384e3d870f42e4eea722f24f8e742c69b2d5f4f3ce61d' url "http://fishshell.com/files/#{version}/fish.app.zip" name 'Fish App' homepage 'http://fishshell.com' license :gpl app 'fish.app' end
CharaD7/azure-sdk-for-python
azure-batch/azure/batch/models/pool_evaluate_auto_scale_parameter.py
<reponame>CharaD7/azure-sdk-for-python # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft ...
jstokes/secure-data-service
sli/acceptance-tests/test/features/security/step_definitions/write_validation_steps.rb
<filename>sli/acceptance-tests/test/features/security/step_definitions/write_validation_steps.rb =begin Copyright 2012-2013 inBloom, Inc. and its affiliates. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the Li...
fouadsan/ims-soft
ims_soft/purchases/views.py
from django.forms import models from django.shortcuts import render, redirect from django.contrib.auth.decorators import login_required from django.http import JsonResponse, HttpResponse from django.views import View from xhtml2pdf import context from django.urls import reverse_lazy from .models import Purchase from ....
NIRALUser/BatchMake
Code/bmSplashScreenControls.cxx
/*========================================================================= Program: BatchMake Module: bmSplashScreenControls.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 2005 Insight Consortium. All rights reserved. See ITKCopyright.txt or http://www.itk.org/HTML/Copyrig...
cdriehuys/ray-tracer
render.go
<reponame>cdriehuys/ray-tracer<filename>render.go package main import "log" // Render a world using the view of a specific camera. func Render(camera Camera, world World) Canvas { image := MakeCanvas(camera.Width, camera.Height) for y := 0; y < camera.Height; y++ { for x := 0; x < camera.Width; x++ { ray := c...
dotph/epp-client-fred
test/commands/test_poll_command.rb
require 'helper' class TestEppPollCommand < Test::Unit::TestCase context 'EPP::Commands::Poll' do context 'poll' do setup do @poll = EPP::Commands::Poll.new @command = EPP::Requests::Command.new('ABC-123', @poll) @request = EPP::Request.new(@command) @xml = @request.t...
1egoman/slime
state.go
package main import ( "github.com/1egoman/slick/gateway" // The thing to interface with slack "github.com/1egoman/slick/modal" "github.com/1egoman/slick/status" ) // This struct contains the main application state. I have fluxy intentions. type State struct { Mode string Command []rune CommandCur...
LZKDreamer/MouShiMouKe
app/src/main/java/com/lzk/moushimouke/View/Activity/HomePageActivity.java
package com.lzk.moushimouke.View.Activity; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.support.design.widget.AppBarLayout; import android.support.design.widget.TabLayout; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; i...
apisandipas/bssckit
src/theme/breadcrumbItem.js
import palette from '../theme/palette'; import globals from '../theme/globals'; const breadcrumbItem = { colors: { default: { color: palette.secondary, }, }, padding: { right: '0.5rem', left: '0.5rem', }, margin: { bottom: '1rem', }, borderRadius: globals.borderRadius, }; expor...
jomof/CppBuildCacheWorkInProgress
agp-7.1.0-alpha01/tools/base/deploy/deployer/src/main/java/com/android/tools/deployer/D8DexSplitter.java
/* * Copyright (C) 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
samary-xia/magento2.3.3
app/code/Amasty/Conditions/view/frontend/web/js/model/conditions-subscribe.js
<filename>app/code/Amasty/Conditions/view/frontend/web/js/model/conditions-subscribe.js define([ 'jquery', 'underscore', 'uiComponent', 'Magento_Checkout/js/model/quote', 'Amasty_Conditions/js/action/recollect-totals', 'Amasty_Conditions/js/model/subscriber', 'Magento_Checkout/js/model/shipp...
ArtemFM/JavaJunior
lesson02/tracker/src/main/java/apavlov/input/Input.java
<filename>lesson02/tracker/src/main/java/apavlov/input/Input.java package apavlov.input; /** * The interface input for work with console. * * @author <NAME> * @since 22.08.2017 */ public interface Input { /** * The method for work to console. * * @param question - question for user in console;...
kuro2a/kiku
lib/database/Specification.py
<gh_stars>1-10 #!/usr/bin/python3 from sqlalchemy import UniqueConstraint, Column, Integer, BigInteger, String, TIMESTAMP from lib.database.DatabaseCore import Base from datetime import datetime class Specification(Base): __tablename__ = 'ma_specification' id = Column(Integer, nullable=False, primary_key=T...
stahta01/mingw-org-wsl
mingwrt/mingwex/math/modff.c
<filename>mingwrt/mingwex/math/modff.c #include <fenv.h> #include <math.h> #include <errno.h> #define FE_ROUNDING_MASK \ (FE_TONEAREST | FE_DOWNWARD | FE_UPWARD | FE_TOWARDZERO) float modff (float value, float* iptr) { float int_part; unsigned short saved_cw; unsigned short tmp_cw; /* truncate */ asm ("fns...
youqingxiaozhua/OpenSelfSup
openselfsup/datasets/contrastive.py
<reponame>youqingxiaozhua/OpenSelfSup import torch from PIL import Image from .registry import DATASETS from .base import BaseDataset from .utils import to_numpy @DATASETS.register_module class ContrastiveDataset(BaseDataset): """Dataset for contrastive learning methods that forward two views of the image...
ricortiz/OpenTissue
demos/glut/multibody/src/scenes/setup_falling_cows.cpp
// // OpenTissue Template Library Demo // - A specific demonstration of the flexibility of OTTL. // Copyright (C) 2008 Department of Computer Science, University of Copenhagen. // // OTTL and OTTL Demos are licensed under zlib. // #include "setup_falling_cows.h" #include <OpenTissue/core/geometry/geometry_compute_box_...
hnthh/foodgram-project-react
backend/recipes/models/recipe_ingredient.py
from config.models import DefaultModel, models from config.validators import GteMinValueValidator from django.core.validators import MaxValueValidator class RecipeIngredient(DefaultModel): ingredient = models.ForeignKey( 'ingredients.Ingredient', on_delete=models.CASCADE, verbose_name='инг...
Group4-ProjectCourse/MySport-mobile
app/src/main/java/com/mysport/mysport_mobile/MainActivity.java
<filename>app/src/main/java/com/mysport/mysport_mobile/MainActivity.java package com.mysport.mysport_mobile; import android.app.NotificationChannel; import android.app.NotificationManager; import android.content.Intent; import android.os.Build; import android.os.Bundle; import android.util.Log; import android.view.Men...
openshift/meta-cluster-api-operator
pkg/controllers/kubeconfig/generate.go
package kubeconfig import ( "errors" "k8s.io/client-go/tools/clientcmd/api" "github.com/openshift/cluster-capi-operator/pkg/controllers" ) type kubeconfigOptions struct { token []byte caCert []byte apiServerEnpoint string clusterName string } func generateKubeconfig(options kubecon...
G10DRAS/kalliope
kalliope/core/Models/Resources.py
class Resources(object): """ """ def __init__(self, neuron_folder=None, stt_folder=None, tts_folder=None, trigger_folder=None): self.neuron_folder = neuron_folder self.stt_folder = stt_folder self.tts_folder = tts_folder self.trigger_folder = trigger_folder def __str_...
Crymlll/darma-bangsa-app
src/components/Konseling/KonselingIcon.js
import React from 'react' import { View, Text } from 'react-native' import SimpleLineIcons from 'react-native-vector-icons/SimpleLineIcons' import {konselingIconStyle} from '../Styles/konselingStyle' function KonselingIcon() { return ( <View style={ konselingIconStyle.box }> <SimpleLineIcons name="grad...
souzamonteiro/maialexa
node_modules/maiascript-cli/src/MaiaCompiler.js
<gh_stars>0 /** * @license * Copyright 2020 <NAME>, * <NAME>, * <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/lic...
luxius-luminus/pai
deployment/paiLibrary/common/kubernetes_handler.py
<filename>deployment/paiLibrary/common/kubernetes_handler.py # Copyright (c) Microsoft Corporation # All rights reserved. # # MIT License # # 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 witho...
tobiasleibner/dune-gdt
dune/gdt/operators/fv/rhs.hh
// This file is part of the dune-gdt project: // https://github.com/dune-community/dune-gdt // Copyright 2010-2017 dune-gdt developers and contributors. All rights reserved. // License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) // or GPL-2.0+ (http://opensource.org/lice...
mrgreentech/react-pam
src/Components/Form/Message.js
import React from 'react'; import PropTypes from 'prop-types'; const Message = ({ component, inline, ...rest }) => { const props = []; if (inline) { props.push('inline'); } const Component = component ? component : 'aside'; return <Component pam-form-message={props.join(' ')} {...rest} />; }; Message.p...