repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
xbib/z3950
z3950-common/src/main/java/org/xbib/z3950/common/v3/SearchResponse.java
<reponame>xbib/z3950 package org.xbib.z3950.common.v3; import org.xbib.asn1.ASN1Any; import org.xbib.asn1.ASN1Boolean; import org.xbib.asn1.ASN1EncodingException; import org.xbib.asn1.ASN1Exception; import org.xbib.asn1.ASN1Integer; import org.xbib.asn1.ASN1Sequence; import org.xbib.asn1.BERConstructed; import org.xbi...
salimfadhley/funproxy
src/main/scala/web/ProxyInfo.scala
package web /** * Created by salim on 03/02/2016. */ case class ProxyInfo(url:String)
JulianBiancardi/Wolfenstein-Taller1
client/src/main/launcher/include/settings.h
<filename>client/src/main/launcher/include/settings.h #ifndef SETTINGS_H #define SETTINGS_H #include <stddef.h> class Settings { private: size_t screen_width; size_t screen_height; bool fullscreen; size_t music_volume; size_t effect_volume; public: Settings(); ~Settings(); /*Change the resolution*...
brunolauze/MonoNative
MonoNative.Tests/mscorlib/System/Runtime/InteropServices/mscorlib_System_Runtime_InteropServices_GCHandle_Fixture.cpp
// Mono Native Fixture // Assembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 // Namespace: System.Runtime.InteropServices // Name: GCHandle // C++ Typed Name: mscorlib::System::Runtime::InteropServices::GCHandle #include <gtest/gtest.h> #include <mscorlib/System/Runtime/InteropServi...
liu8jianwei/JiaCrontab
pkg/crontab/crontab.go
package crontab import ( "container/heap" "errors" "jiacrontab/pkg/pqueue" "sync" "time" ) // Task 任务 type Task = pqueue.Item type Crontab struct { pq pqueue.PriorityQueue mux sync.RWMutex ready chan *Task } func New() *Crontab { return &Crontab{ pq: pqueue.New(10000), ready: make(chan *Task, 1...
DwayneJengSage/Synapse-Stack-Builder
src/main/java/org/sagebionetworks/template/repo/VelocityExceptionThrower.java
<reponame>DwayneJengSage/Synapse-Stack-Builder package org.sagebionetworks.template.repo; public class VelocityExceptionThrower { public void throwException(String message) throws IllegalStateException { throw new IllegalStateException(message); } }
moritzfl/DependencyFinder
tests/com/jeantessier/dependency/TestFeatureResolver.java
/* * Copyright (c) 2001-2009, <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, ...
Tomura/TacticalPrototypeCPP
TacticalFPS/Private/Weapons/TacticalGrenade.cpp
<filename>TacticalFPS/Private/Weapons/TacticalGrenade.cpp // Copyright (c) 2015-2016, <NAME> - All rights reserved #include "TacticalFPS.h" #include "Net/UnrealNetwork.h" #include "TacticalProjectile.h" #include "TacticalGrenade.h" #include "TacticalCharacter.h" ATacticalGrenade::ATacticalGrenade(const FObjectInitial...
liangjisheng/go-books
projects/interview-everyday-2/day004.go
<gh_stars>1-10 package main import ( "fmt" "sync" "time" ) type data struct { sync.Mutex } // 方法使用值接收器将导致锁失效 将 Mutex 作为匿名字段时 // 相关的方法必须使用指针接收者 否则会导致锁机制失效 func (d data) test(s string) { d.Lock() defer d.Unlock() for i := 0; i < 5; i++ { fmt.Println(s, i) time.Sleep(time.Second) } } func (d *data) test1(...
omerio/ecarf
ecarf-core/src/main/java/io/ecarf/core/reason/rulebased/query/QueryGenerator.java
/** * The contents of this file may be used under the terms of the Apache License, Version 2.0 * in which case, the provisions of the Apache License Version 2.0 are applicable instead of those above. * * Copyright 2014, Ecarf.io * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not us...
Copetan/CutefulCake
src/main/java/net/nullspace_mc/cutefulcake/players/FakeServerPlayerEntity.java
package net.nullspace_mc.cutefulcake.players; import com.mojang.authlib.GameProfile; import net.minecraft.entity.damage.DamageSource; import net.minecraft.server.MinecraftServer; import net.minecraft.server.network.ServerPlayerEntity; import net.minecraft.server.network.ServerPlayerInteractionManager; import net.minec...
thednp/color-picker
cypress/fixtures/getCEMarkup.js
<filename>cypress/fixtures/getCEMarkup.js import ColorPickerElement from '../../src/js/color-picker-element'; import getRandomInt from './getRandomInt'; import testSample from './testSample'; import FORMAT from './format'; import colorNamesFrench from './colorNamesFrench'; import componentLabelsFrench from './componen...
Manish3323/csw
csw-config/csw-config-server/src/main/scala/csw/config/server/cli/Options.scala
<reponame>Manish3323/csw /* * Copyright (c) [year] Thirty Meter Telescope International Observatory * SPDX-License-Identifier: Apache-2.0 */ package csw.config.server.cli /** * Command line options to start a config server * * @param initRepo a boolean value stating whether to initialize repository on server or...
telenko/xdompath
src/Compiler/type/helper.js
<gh_stars>1-10 export function isArgNodeSubsetList(arg) { return Array.isArray(arg) && arg.length > 0 && Array.isArray(arg[0]) && ((arg[0].length > 0 && arg[0][0] instanceof Node) || arg[0].length === 0); }
hibernate/hibernate-semantic-query
src/main/java/org/hibernate/query/sqm/tree/expression/domain/SqmCollectionElementReferenceEmbedded.java
/* * Hibernate, Relational Persistence for Idiomatic Java * * License: GNU Lesser General Public License (LGPL), version 2.1 or later * See the lgpl.txt file in the root directory or http://www.gnu.org/licenses/lgpl-2.1.html */ package org.hibernate.query.sqm.tree.expression.domain; import org.hibernate.persister...
certego/certego-saas
certego_saas/apps/organization/serializers.py
<filename>certego_saas/apps/organization/serializers.py<gh_stars>1-10 from rest_flex_fields.serializers import FlexFieldsModelSerializer from rest_framework import serializers as rfs from certego_saas.user.models import User from certego_saas.user.serializers import UserSerializer from .invitation import Invitation f...
innocentdevil09/LeetCode
Problem 222/Problem222.java
<reponame>innocentdevil09/LeetCode /** * Given the root of a complete binary tree, return the number of the nodes in the tree. * * According to Wikipedia, every level, except possibly the last, is completely filled in a complete binary tree, and * all nodes in the last level are as far left as possible. It can have...
yexiaoxiaogo/Java-demos
Weather/src/main/java/io/github/yexiaoxiaogo/repository/WeatherDao.java
package io.github.yexiaoxiaogo.repository; import java.util.List; import io.github.yexiaoxiaogo.Modle.WeatherModle; public interface WeatherDao { public WeatherModle fetchWeather(int id); public WeatherModle insertWeather(WeatherModle weather); public WeatherModle updateWeather(WeatherModle weather); publi...
afermon/freelancr
src/main/java/org/cosmicode/freelancr/repository/search/ProjectSearchRepository.java
package org.cosmicode.freelancr.repository.search; import org.cosmicode.freelancr.domain.Project; import org.springframework.data.elasticsearch.repository.ElasticsearchRepository; /** * Spring Data Elasticsearch repository for the Project entity. */ public interface ProjectSearchRepository extends ElasticsearchRepo...
imorar/advanced-react
src/index.js
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { BrowserRouter as Router, Switch, Route } from 'react-router-dom'; import store from './Redux/Store'; import './Css/index.css'; import App from './Components/App'; import About from './Components/About'; import ...
carlosprietobarron/group_payment
app/models/group.rb
<gh_stars>1-10 class Group < ApplicationRecord validates :name, :icon, presence: true belongs_to :user, foreign_key: 'user_id' has_many :transactions end
kevinoid/github-ci-status
lib/get-package-json.js
<filename>lib/get-package-json.js<gh_stars>0 /** * @copyright Copyright 2021 <NAME> <<EMAIL>> * @license MIT */ // TODO: Replace this module with `import packageJson from 'package.json';` // once JSON modules are supported non-experimentally: // https://github.com/nodejs/node/issues/37141 // TODO [engine:node@>=14...
amoudgl/leetcode-solutions
src/rotate-list.cpp
<filename>src/rotate-list.cpp<gh_stars>0 // Author: <NAME> [ https://leetcode.com/amoudgl/ ] /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class Solution { public: ListNode* rotateRight(ListNode* head, i...
lastaflute/lasta-remoteapi
src/main/java/org/dbflute/remoteapi/exception/translation/ClientErrorTranslatingResource.java
<reponame>lastaflute/lasta-remoteapi /* * Copyright 2015-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LIC...
Fischaela/PSB
src/core/index.js
<filename>src/core/index.js<gh_stars>100-1000 import Vue from 'vue' import { compose } from 'lodash/fp' import { head } from 'lodash' import { registerDirectives } from './directives' import { registerLang } from './lang' const registerApp = context => { return new context.Renderer({ i18n: context.i18n, el: ...
Houbsi/cli
internal/cmd/placementgroup/labels.go
package placementgroup import ( "context" "fmt" "github.com/hetznercloud/cli/internal/cmd/base" "github.com/hetznercloud/cli/internal/hcapi2" "github.com/hetznercloud/hcloud-go/hcloud" ) var LabelCmds = base.LabelCmds{ ResourceNameSingular: "placement group", ShortDescriptionAdd: "Add a label to a placem...
Celebrate-future/openimaj
hadoop/tools/HadoopTwitterTokenTool/src/main/java/org/openimaj/hadoop/tools/twitter/token/outputmode/correlation/CorrelateWordTimeSeries.java
/** * Copyright (c) 2011, The University of Southampton and the individual contributors. * 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 ...
mcsma01/DayTrader
modules/util/src/java/org/apache/geronimo/util/asn1/x509/X509Extension.java
/** * * Copyright 2003-2004 The Apache Software Foundation * * 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...
hassen-abduse/CaringHub
caring_hub_client/src/organization/pages/volunteers/ShowVolunteersDialog.js
import { Grid, Container, Paper, Typography } from "@material-ui/core"; import React, { Component } from "react"; import Divider from "@material-ui/core/Divider"; import { Rate } from "antd"; import Avatar from "../../../volunteer/components/Avatars"; import { Badge } from "antd"; const desc = ["terrible", "bad", "nor...
754340156/NQ_quanfu
allrichstore/Tools/CommonLibrary/Category/NSObject+KVOCategory.h
// // NSObject+KVOCategory.h // CommonLibrary // // Created by Alexi on 5/16/14. // Copyright (c) 2014 Alexi. All rights reserved. // #if kSupportNSObjectKVOCategory #import <Foundation/Foundation.h> @interface NSObject (KVOCategory) - (void)observedBy:(NSObject *)observer forKeyPaths:(NSArray *)keyPaths; -...
MaritimeConnectivityPlatform/MaritimeCloud
mc-core/src/test/java/net/maritimecloud/util/geometry/AbstractAreaTest.java
<filename>mc-core/src/test/java/net/maritimecloud/util/geometry/AbstractAreaTest.java /* Copyright (c) 2011 Danish Maritime Authority. * * 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 * ...
xfarsx/StarUniverseApp
app/src/main/java/br/com/digitalhouse/staruniverse/view/quiz/QuizFragment.java
package br.com.digitalhouse.staruniverse.view.quiz; import android.animation.ObjectAnimator; import android.content.Context; import android.os.Bundle; import android.os.CountDownTimer; import android.transition.Scene; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import a...
mass9/Cpp
Bjarne_Stroustrup_Books/programming_principles_and_practice_using_c_2nd_ed/Part-1/Chapter-5 { Writing a program}/Exercise/checking of praser/English_grammar_checker.cpp
#include"std_lib_facilities.h" using namespace std; vector<string>nouns; vector<string>verbs; vector<string>conjunctions; void intialize() { nouns.push_back("birds"); nouns.push_back("fish"); nouns.push_back("C++"); verbs.push_back("rules"); verbs.push_back("fly"); verbs.push_back("swim"); conjunctions.push_back...
weng271190436/operator
pkg/controller/migration/convert/testutils_test.go
package convert import ( crdv1 "github.com/tigera/operator/pkg/apis/crd.projectcalico.org/v1" appsv1 "k8s.io/api/apps/v1" corev1 "k8s.io/api/core/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) func emptyNodeSpec() *appsv1.DaemonSet { return &appsv1.DaemonSet{ ObjectMeta: v1.ObjectMeta{ Name: "calico-...
fmal/wyspa-www
src/components/Footer.js
<filename>src/components/Footer.js /** @jsx jsx */ import { jsx, Container } from 'theme-ui'; import { useTranslation } from 'react-i18next'; import SocialMediaLinks from './SocialMediaLinks'; const Footer = () => { const { t } = useTranslation('common'); return ( <footer sx={{ flex: 'none', ...
ririv/EmojiRecognition
src/main/java/com/riri/memerecognition/exception/UserAlreadyExistException.java
package com.riri.memerecognition.exception; public final class UserAlreadyExistException extends RuntimeException { public UserAlreadyExistException(final String message) { super(message); } public UserAlreadyExistException() { super("The user already exists"); } }
SpaceWalkerRS/redstone-tweaks
src/main/java/redstonetweaks/world/client/TickInfoLabelRenderer.java
<filename>src/main/java/redstonetweaks/world/client/TickInfoLabelRenderer.java package redstonetweaks.world.client; import net.minecraft.client.MinecraftClient; import net.minecraft.client.font.TextRenderer; import net.minecraft.client.gui.DrawableHelper; import net.minecraft.client.util.math.MatrixStack; impo...
AaronFriel/pulumi-aws-native
sdk/python/pulumi_aws_native/finspace/outputs.py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from...
wrleskovec/thoughtcrime
node_modules/react-datepicker/lib/month_dropdown.js
'use strict'; var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _month_dropdown_options = require('./month_dropdown_options'); var _month_dropdown_options2 = _interopRequireDefault(_month_dropdown_options); var _reactOnclickoutside = require('react-onclickoutside'); var _reactOnclic...
cogentcloud/ef-cms
web-api/migrations/00002-qc-complete-for-trial.js
<gh_stars>0 const createApplicationContext = require('../src/applicationContext'); const { Case } = require('../../shared/src/business/entities/cases/Case'); const { isCaseRecord, upGenerator } = require('./utilities'); const applicationContext = createApplicationContext({}); const mutateRecord = item => { if (isCas...
Nels885/csd_dashboard
raspeedi/static/raspeedi/js/rasp-tables.js
<reponame>Nels885/csd_dashboard // Call the dataTables jQuery plugin $(document).ready(function () { $('#raspTable').DataTable({ pagingType: "full_numbers", scrollX: true, order: [[2, "asc"]], // Disable sorting for the Tags and Actions columns. columnDefs: [{ tar...
youhou90/pbtools
examples/address_book/main.c
<reponame>youhou90/pbtools #include <assert.h> #include <stdio.h> #include <stddef.h> #include <stdint.h> #include <string.h> #include <unistd.h> #include <stdlib.h> #include "address_book.h" int main(int argc, const char *argv[]) { uint8_t encoded[128]; int size; uint8_t workspace[1024]; struct addre...
ligson/ejbca
modules/systemtests/src-test/org/ejbca/ui/cli/roles/RemoveRoleCommandTest.java
/************************************************************************* * * * EJBCA Community: The OpenSource Certificate Authority * * * * This software is...
skip5413/cassini
msgqueue/consumer.go
<gh_stars>1-10 //Package msgqueue 从消息队列服务收发消息 package msgqueue import ( "errors" "fmt" "sync" "time" "github.com/QOSGroup/cassini/config" "github.com/QOSGroup/cassini/consensus" "github.com/QOSGroup/cassini/log" "github.com/QOSGroup/cassini/types" "github.com/nats-io/go-nats" "github.com/tendermint/go-amino...
wuxiangwa/bricks
src/components/card/CardContent.js
import React from 'react'; import PropTypes from 'prop-types'; import {createClassName} from '../../utils/transform'; const CardContent = ({ className, style, children, ...props }) => (<div {...props} style={style} className={createClassName(['card-content', className])}>{children}</div>) CardContent.propType...
vimalcvs/NOKRI
app/src/main/java/com/scriptsbundle/nokri/employeer/jobs/fragments/Nokri_InactiveJobsFragment.java
package com.scriptsbundle.nokri.employeer.jobs.fragments; import android.app.Dialog; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.support.v7.widget.DefaultItemAnimator; import android.support.v7.widget.LinearLayoutManager; import android.s...
andrewalexander/swoll
pkg/topology/topology.go
package topology import ( "context" "sync" "github.com/criticalstack/swoll/pkg/types" "github.com/pkg/errors" log "github.com/sirupsen/logrus" ) type OnEventCallback func(t EventType, container *types.Container) // These are the two states in which an observer event can be in. type EventType int const ( Even...
ggsdc/corn
libs/core/cornflow_core/authentication/decorators.py
""" This file contains the decorator used for the authentication """ from functools import wraps from .auth import BaseAuth from cornflow_core.exceptions import InvalidCredentials def authenticate(auth_class: BaseAuth): """ This is the decorator used for the authentication :param auth_class: the class us...
onvif/oxfplayer
player/src/player/videoPlayback.h
/************************************************************************************ * Copyright (c) 2013 ONVIF. * 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 so...
Ralireza/CTF
asis_2019_Andex/andex-jadx-reversed/sources/androidx/constraintlayout/solver/widgets/ConstraintWidgetContainer.java
package androidx.constraintlayout.solver.widgets; import androidx.constraintlayout.solver.LinearSystem; import androidx.constraintlayout.solver.Metrics; import androidx.constraintlayout.solver.widgets.ConstraintAnchor.Type; import androidx.constraintlayout.solver.widgets.ConstraintWidget.DimensionBehaviour; import jav...
zeroviscosity/veldt-js
scripts/layer/core/LivePair.js
'use strict'; const defaultTo = require('lodash/defaultTo'); const isNil = require('lodash/isNil'); const Group = require('./Group'); /** * LivePair layer acts as an extension of the Group layer in which there are * two layers, a parent and a child. Any temporary filters applied will be * applied only to the child...
workready/pythonbasic
sources/t09/t09ej07.py
class SpamException(Exception): pass def writer(): """Simula escribir datos que se le pasan en un socket, fichero, etc""" while True: try: w = (yield) except SpamException: print('***') else: print(w) def writer_wrapper(coro): coro.send(None)...
EladGabay/pulumi-oci
sdk/go/oci/getOptimizerResourceAction.go
<gh_stars>1-10 // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** package oci import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // This data source provides details about a specific Resource ...
HemaHG/porta
config/initializers/active_record.rb
<filename>config/initializers/active_record.rb # TODO: remove this hack? class ActiveRecord::Base # returns a human readable name of the class. # It is here mainly to allow Cinstance to return "Application" def human_name self.to_s end end
a6dulaleem/pravega
controller/src/test/java/io/pravega/controller/server/eventProcessor/PravegaTablesRequestHandlersTest.java
<reponame>a6dulaleem/pravega /** * Copyright Pravega Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required b...
IAPark/PITherm
src/shared/utilities/__init__.py
<gh_stars>0 __author__ = 'Isaac'
getflywheel/sendgrid4r
lib/sendgrid4r/rest/settings/settings.rb
# -*- encoding: utf-8 -*- module SendGrid4r module REST # # SendGrid Web API v3 Settings # module Settings Results = Struct.new(:result) Result = Struct.new(:name, :title, :description, :enabled) def self.create_results(resp) return resp if resp.nil? results = [] ...
jasonsbarr/types
packages/iterable/lib/reverse.js
export const reverse = (iter) => iter.constructor(...[...iter].reverse());
iconara/aws-doc-sdk-examples
ruby/example_code/cloudwatch/tests/test_cw-ruby-example-show-alarms.rb
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX - License - Identifier: Apache - 2.0 require_relative '../cw-ruby-example-show-alarms' describe '#describe_metric_alarms' do let(:metric_namespace) { 'SITE/TRAFFIC' } let(:metric_name) { 'UniqueVisitors' } let(:dimension_name) { 'SiteNa...
mrtyasar/PythonLearn
with mosh everybody python/typeConversion.py
birthYear = input('Birth year: ') print(type(birthYear)) # değişkenin tipini öğrendik age = 2020 - int(birthYear) # değişkeni int veri tipine çevirdik print(type(age)) # değişkenin tipini öğrendik print(age) # Egzersiz weightLbs = input('Weight (lbs): ') weightKg = int(weightLbs) * 0.45 print(weightKg)
ystk/debian-net-snmp
agent/mibgroup/snmp-usm-dh-objects-mib/usmDHUserKeyTable/usmDHUserKeyTable.h
/* * Note: this file originally auto-generated by mib2c using * version : 1.48 $ of : mfd-top.m2c,v $ * * $Id: usmDHUserKeyTable.h 14169 2006-01-25 16:28:12Z dts12 $ */ #ifndef USMDHUSERKEYTABLE_H #define USMDHUSERKEYTABLE_H #ifdef __cplusplus extern "C" { #endif /** @addtogroup misc misc: Miscel...
Open-EO/openeo-geopyspark-driver
tests/test_creo.py
<reponame>Open-EO/openeo-geopyspark-driver<filename>tests/test_creo.py<gh_stars>10-100 import unittest import datetime from openeogeotrellis.catalogs.creo import CreoCatalogClient class TestCreo(unittest.TestCase): def setUp(self): self.l2a_catalog = CreoCatalogClient(mission="Sentinel2", level="LEVEL2A...
lynx-json/jsua-lynx
src/util.js
import url from "url"; import * as jsua from "@lynx-json/jsua"; export function resolveSpecFromUrl(specUrl) { return new Promise(function (resolve, reject) { jsua.transferring.transfer({ url: specUrl }) .then(function (content) { let reader = new FileReader(); reader.addEventListener("loade...
fakeNetflix/mailchimp-repo-statistrano
lib/statistrano/deployment/strategy.rb
<gh_stars>10-100 module Statistrano module Deployment module Strategy class << self def registered @_registered ||= {} end def register deployment, name registered[name.to_sym] = deployment end def find name registered.fetch(name.to_s...
tucci-io/ref-dashboard
src/common/ShowMore/ShowMore.js
import React from 'react'; import { colors as Colors } from 'material-ui/styles/'; import { FlatButton } from 'material-ui'; const ShowMore = ({ style, label = 'SHOW MORE', visible = true, ...other }) => { if (visible) { return ( <div className="row align-center"> <FlatButton {...other} ...
tomasbrod/tbboinc
boinc_new/clientscr/screensaver.cpp
// This file is part of BOINC. // http://boinc.berkeley.edu // Copyright (C) 2018 University of California // // BOINC 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 Foundation, // either version 3 of the Licens...
isandesh1986/mrchecker
example/src/main/java/com/capgemini/mrchecker/selenium/pages/projectY/NotificationMessagesPage.java
<filename>example/src/main/java/com/capgemini/mrchecker/selenium/pages/projectY/NotificationMessagesPage.java package com.capgemini.mrchecker.selenium.pages.projectY; import com.capgemini.mrchecker.selenium.core.BasePage; import com.capgemini.mrchecker.selenium.pages.environment.GetEnvironmentParam; import com.capgemi...
CavalryXD/APN6_Repo
net-next/arch/openrisc/include/asm/pgtable.h
<filename>net-next/arch/openrisc/include/asm/pgtable.h /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * OpenRISC Linux * * Linux architectural port borrowing liberally from similar works of * others. All original copyrights apply as per the original source * declaration. * * OpenRISC implementation: * Copy...
teodutu/POO
Laburi/Lab9/src/exceptions/MainErrors.java
package exceptions; public class MainErrors { private static void outOfMemory() { int[] v = new int[2000000000]; } private static void stackOverflow() { stackOverflow(); } private static String showcaseFinally() { try { return "Still returned ok"; } cat...
stigger/AppleScript-IDEA
src/main/java/com/intellij/plugin/applescript/lang/sdef/parser/SDEF_Parser.java
<gh_stars>10-100 package com.intellij.plugin.applescript.lang.sdef.parser; import com.intellij.openapi.components.ServiceManager; import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.project.Project; import com.intellij.openapi.util.text.StringUtil; import com.intellij.openapi.vfs.LocalFileSystem...
kiarashmhn/DocumentTranslation-FrontEnd
src/components/order/form/AfghanDrivingLicence.js
<reponame>kiarashmhn/DocumentTranslation-FrontEnd export const afghanDrivingLicenceForm = { title: "afghanDrivingLicence", steps: 7, content: [ { title: "uploadAfghanDrivingLicence", content: [ { key: "files", type: "fileHandler", fileType: "documents" ...
onezens/QQTweak
qqtw/qqheaders7.2/QQAIOShortVideoMsgModel.h
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "QQAIOMsgModel.h" @interface QQAIOShortVideoMsgModel : QQAIOMsgModel { _Bool _isReported; _Bool _animatedInsertCellFlag; } @property(nonatomic) _Bool animatedInsertCellF...
MichealWayne/Moo-CSS
demo/mobile/webpack.config.js
<gh_stars>100-1000 /** * webpack config */ const fs = require('fs'); const glob = require('glob'); const path = require('path'); const webpack = require('webpack'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const LessFunc = require('less-plugin-functions'); const MiniCssExtractPlugin = require('mini-...
standardgaussian/Titania
lib/game/entities/magnetBootsPickup.js
ig.module('game.entities.magnetBootsPickup') .requires('impact.entity', 'game.entities.pickup' ) .defines(function() { EntityMagnetBootsPickup = EntityPickup.extend({ animSheet : new ig.AnimationSheet('media/pickups/magBootsPickup.png', 16, 16), offset: {x:0, y:0}, propertyValue: 'magnetBoots', }); });
timroes/elasticsearch
x-pack/plugin/core/src/test/java/org/elasticsearch/index/engine/FrozenIndexTests.java
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ package org.elasticsearch.index.engine; import org.elasticsearch.action.Actio...
snoopdave/incubator-usergrid
stack/services/src/main/java/org/apache/usergrid/management/OrganizationConfigProps.java
<filename>stack/services/src/main/java/org/apache/usergrid/management/OrganizationConfigProps.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. * T...
hey-frnk/thevfdcollective
FluorescenceApp/src/fl_app_colors.h
/** ****************************************************************************** * @file vfdco_led.h * @author The VFD Collective, Frank from The VFD Collective (<NAME>) * @version V1.0 * @date 20-November-2019 * @brief This is the dummy driver to test the functionality of the LED libs ***...
lakeweb/spur-gear-gen
project/sgv.cpp
#include "stdafx.h" #include "Geometry.h" #include "objects.h" #include "shared.h" #include "Drawing.h" #include "sgv.h" #include <sstream> // ...................................................................... void svg_stream( std::ostream& os, const SP_BaseItem& in ) { typecase( *in, [ & ]( PointItem& pa ) { ...
vizee/misc
go/gorpool/gorpool_test.go
<filename>go/gorpool/gorpool_test.go package gorpool import ( "fmt" "runtime" "sync" "testing" ) func TestPool(t *testing.T) { p := Pool{} wg := sync.WaitGroup{} for i := 0; i < 1000; i++ { wg.Add(1) p.Go(func() { fmt.Println("do", runtime.NumGoroutine()) wg.Done() }) } wg.Wait() }
FeizNouri/logisland
logisland-components/logisland-connectors/logisland-connector-opc/src/main/java/com/hurence/logisland/connect/opc/da/OpcDaSourceConnector.java
<reponame>FeizNouri/logisland /** * Copyright (C) 2016 Hurence (<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 * * Un...
chs6558/chs6558.github.io
node_modules/styled-icons/fa-solid/FontAwesomeLogoFull/FontAwesomeLogoFull.esm.js
export * from '@styled-icons/fa-solid/FontAwesomeLogoFull';
PRkudupu/Algo-python
array_strings/py/two_dimensional.py
<reponame>PRkudupu/Algo-python<filename>array_strings/py/two_dimensional.py<gh_stars>1-10 #!/usr/bin/env python # coding: utf-8 # ### Processing and printing # In[36]: #Processing and printing a =[[1,2,3,],[4,5,6]] print('a:',a,'\na[0]:',a[0],'\na[1]:',a[1]) # In[15]: #Print specific element in an list print('...
nryotaro/at_c
src/abc153/b.cc
#ifdef _debug #define _GLIBCXX_DEBUG #endif #include <bits/stdc++.h> typedef long long ll; using namespace std; #ifndef _debug int main() { ll h, n; cin >> h >> n; for(int i = 0; i < n; i++) { ll temp; cin >> temp; h -= temp; } if(h <= 0) cout << "Yes"; else ...
murrcha/kkaysheva
chapter_006/src/main/java/ru/job4j/tracker/ConsoleInput.java
package ru.job4j.tracker; import java.util.Scanner; /** * ConsoleInput - запрос данных от пользователя через консоль * * @author <NAME> (<EMAIL>) * @version $Id$ * @since 0.1 */ public class ConsoleInput implements Input { /** * Объект для считывания стандартного потока ввода */ ...
nop-os/nop
kernel/include/nop/idt.h
#ifndef __NOP_IDT_H__ #define __NOP_IDT_H__ #include <arch/i586.h> #include <nop/type.h> #define IDT_ERR_BASE 0x00 #define IDT_PIC_BASE 0x20 #define IDT_NOP_BASE 0x30 #define IDT_CLK (IDT_PIC_BASE + 0x00) #define IDT_KEYB (IDT_PIC_BASE + 0x01) #define IDT_MOUSE (IDT_PIC_BASE + 0x0C) #define IDT_RTC (IDT_PIC_BAS...
inclusive-design/coop-map-directory-index
mdi/admin.py
from django.contrib.gis import admin from django.contrib.gis.admin import ModelAdmin, OSMGeoAdmin, TabularInline from accounts.models import SocialNetwork from .models import \ Category, Challenge, LegalStatus, Organization, OrganizationSocialNetwork, Stage, Type, Tool, License, \ Pricing, Niche, Relationship, ...
Ybalrid/orbiter
Extern/mssdk_dx7/samples/Multimedia/DMusic/src/MusicLines/mllocalplayer.h
<gh_stars>1000+ // // MLLocalPlayer.h // // Local player implementation // // Copyright (c) 1998-1999 Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- #ifndef _MLLocalPlayer_ #define _MLLocalPlayer_ // LocalPlayer is a Player controlled by a lo...
WorldofJARcraft/craco
src/test/java/org/cryptimeleon/craco/sig/hashthensign/HashThenSignTest.java
package org.cryptimeleon.craco.sig.hashthensign; import org.cryptimeleon.craco.common.ByteArrayImplementation; import org.cryptimeleon.craco.sig.*; import org.cryptimeleon.craco.sig.hashthensign.params.BBSHTSParams; import org.cryptimeleon.craco.sig.hashthensign.params.HashThenSignParams; import org.cryptimeleon.craco...
mmicek/kaacore
demos/polygon_tester.cpp
#include <cstdlib> #include <iostream> #include <vector> #include <glm/glm.hpp> #include "kaacore/engine.h" #include "kaacore/geometry.h" #include "kaacore/log.h" #include "kaacore/nodes.h" #include "kaacore/scenes.h" struct PolygonTesterDemoScene : kaacore::Scene { std::vector<glm::dvec2> points; kaacore::N...
castle-games/castle-client
core/src/behaviors/text.h
<reponame>castle-games/castle-client #pragma once #include "precomp.h" #include "behaviors/base.h" #include "props.h" struct TextFontResource { love::StrongRef<love::Data> data; struct Entry { int pixelSize; std::unique_ptr<love::Font> font; }; std::vector<Entry> entries; }; struct TextComponent : ...
freundlich/fcppt
libs/core/include/fcppt/mpl/map/object_concept.hpp
<gh_stars>10-100 // Copyright <NAME> 2009 - 2021. // 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) #ifndef FCPPT_MPL_MAP_OBJECT_CONCEPT_HPP_INCLUDED #define FCPPT_MPL_MAP_OBJECT_CONCEPT_HPP_I...
VVmartseniuk/zafira-ui
client/app/_auth/bg-instance/bg-instance.directive.js
(function () { 'use strict'; angular.module('app.bgInstance').directive('bgInstance', function () { return { template: require('./bg-instance.html'), restrict: 'E', replace: true, }; }); })();
delay-tolerant-networking/DTN2
servlib/security/Ciphersuite_BA9.h
/* * Copyright 2006 SPARTA 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 applicab...
dushmis/linux-pam
modules/pam_warn/pam_warn.c
/* pam_warn module */ /* * $Id$ * * Written by <NAME> <<EMAIL>> 1996/3/11 */ #include "config.h" #include <stdio.h> #include <unistd.h> #include <syslog.h> #include <stdarg.h> /* * here, we make a definition for the externally accessible function * in this file (this definition is required for static a module...
lukehb/137-roi
src/main/java/onethreeseven/roi/model/RoIGrid.java
<reponame>lukehb/137-roi package onethreeseven.roi.model; import onethreeseven.common.util.Maths; import onethreeseven.common.util.NDUtil; import onethreeseven.roi.algorithm.AbstractRoIMining; import onethreeseven.trajsuitePlugin.model.BoundingCoordinates; import onethreeseven.trajsuitePlugin.util.BoundsUtil; import ...
UKGovernmentBEIS/beis-psd
spec/factories/location.rb
FactoryBot.define do factory :location do association :business name { "Registered office" } address_line_1 { Faker::Address.street_address } address_line_2 { Faker::Address.community } city { Faker::Address.city } country { Faker::Address.country } county { Faker::Address.state } pho...
miguel-kjh/ReID-in-Sport-competitions
img2pose/train.py
<reponame>miguel-kjh/ReID-in-Sport-competitions import argparse import random from os import path import numpy as np import torch from torch import optim from torch.optim.lr_scheduler import ReduceLROnPlateau from torch.utils.tensorboard import SummaryWriter from config import Config from data_loader_lmdb import LMDB...
Grundkurs/LTBL2
docs/search/pages_0.js
<reponame>Grundkurs/LTBL2<filename>docs/search/pages_0.js<gh_stars>1-10 var searchData= [ ['ltbl2',['LTBL2',['../md__d_1__c_09_09__v_s__l_t_b_l2__l_t_b_l2__l_i_c_e_n_s_e.html',1,'']]], ['let_20there_20be_20light_202',['Let There Be Light 2',['../md__d_1__c_09_09__v_s__l_t_b_l2__l_t_b_l2__r_e_a_d_m_e.html',1,'']]] ]...
fergy/aplit_linux-5
drivers/regulator/pv88080-regulator.c
<filename>drivers/regulator/pv88080-regulator.c /* * pv88080-regulator.c - Regulator device driver for PV88080 * Copyright (C) 2016 Powerventure Semiconductor Ltd. * * 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...
ajb85/stinkfoot-FE
src/Badger/index.js
<reponame>ajb85/stinkfoot-FE import $ from './Badger.js'; export default $;