repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
redhatanalytics/oshinko-cli
vendor/github.com/openshift/origin/pkg/oc/admin/diagnostics/diagnostics/cluster/registry.go
<reponame>redhatanalytics/oshinko-cli package cluster import ( "bufio" "fmt" "reflect" "regexp" "strings" kerrs "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/labels" "k8s.io/kubernetes/pkg/apis/authorization" kapi "k8s.io/kubernetes/pkg/apis/core...
yanaspaula/rdf4j
tools/federation/src/main/java/org/eclipse/rdf4j/federated/endpoint/provider/RemoteRepositoryProvider.java
/******************************************************************************* * Copyright (c) 2019 Eclipse RDF4J contributors. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Distribution License v1.0 * which accompanies this distribution, an...
anandchouhan/nomo
db/migrate/20171111202334_add_airport_to_trips.rb
<filename>db/migrate/20171111202334_add_airport_to_trips.rb class AddAirportToTrips < ActiveRecord::Migration def up add_column :trips, :airport, :string add_column :trips, :airport_code, :string end def down remove_column :trips, :airport, :string remove_column :trips, :airport_code, :string e...
jacadcaps/webkitty
Source/WebKitLegacy/Storage/WebDatabaseProvider.h
/* * Copyright (C) 2015, 2016 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of condit...
local-motion/smokefree-initiative-service
src/main/java/io/localmotion/user/event/UserRenamedEvent.java
package io.localmotion.user.event; import lombok.*; @Getter @NoArgsConstructor(access = AccessLevel.PRIVATE) @AllArgsConstructor @ToString public class UserRenamedEvent { String userId; Long piiRecordId; // UserPII record type, only userName property is valid }
Bridge-Mutual/Bridgemutual-v2
test/PolicyBookRegistry.js
<gh_stars>0 const PolicyBookRegistry = artifacts.require("PolicyBookRegistry"); const PolicyBookFabric = artifacts.require("PolicyBookFabric"); const ContractsRegistry = artifacts.require("ContractsRegistry"); const STBLMock = artifacts.require("STBLMock"); const BSCSTBLMock = artifacts.require("BSCSTBLMock"); const MA...
jreece1567/go_swagger_client
models_secure/wishlist_event_occurrence.go
<filename>models_secure/wishlist_event_occurrence.go package models_secure // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( strfmt "github.com/go-openapi/strfmt" "github.com/go-openapi/errors" ) /*WishlistEventOccurrence ...
fancylou/o2oa
x_organization_assemble_control_alpha/jest/personAttribute.js
personAttribute_parameter = { root : common_parameter.host + '/x_organization_assemble_control/jaxrs/personattribute', list_action : null, list_action_parameter : null, first : '(0)', last : '(0)', count : 20 }; function personAttribute_list_reload() { if (personAttribute_parameter.list_action) { personAttrib...
All8Up/cpf
Cpf/Plugins/Graphics/DebugUI/Source/DebugUI.cpp
<reponame>All8Up/cpf ////////////////////////////////////////////////////////////////////////// #include "DebugUI.hpp" #include "CPF/Graphics/iBlob.hpp" #include "CPF/Graphics/iDevice.hpp" #include "CPF/Graphics/iSampler.hpp" #include "CPF/Graphics/ImageDesc.hpp" #include "Graphics/DepthStencilBuilder.hpp" #include "Gr...
bisnupriyasahu/cmssw
CondTools/CTPPS/plugins/WriteCTPPSBeamParameters.cc
// -*- C++ -*- // // Class: WriteCTPPSBeamParameters // // Description: Test analyzer for CTPPS beam parameters condition data // // Simple analyzer that writes one CTTPSBeamParameters record into a sql // database file, as a test of offline conditions implementation. // Anot...
hhcqit/yunjianxie
04.coding/api/src/main/java/com/clinicalmall/kuaixiu/swagger/configuration/WebMvcConfiguration.java
package com.clinicalmall.kuaixiu.swagger.configuration; import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer; import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport; public class WebMvcConfiguration extends WebMvcConfigurationSupport { @Override ...
Isotope-js/core
packages/prototope/lib/utils/sizing/min-width.js
import { createUtil } from "../util"; const minW0 = createUtil({ minWidth: "0" }); const minWFull = createUtil({ minWidth: "100%" }); export { minW0, minWFull }; //# sourceMappingURL=min-width.js.map
arielmorelli/server_core
model/resource.py
# encoding: utf-8 # Resource, ResourceTransformation, Hyperlink, Representation from nose.tools import set_trace from . import ( Base, get_one, get_one_or_create, ) from ..config import Configuration from constants import ( DataSourceConstants, IdentifierConstants, LinkRelations, MediaTypes...
sedurCode/nodOSC
firmware/hal/src/photon/wiced/network/NetX_Duo/WICED/wiced_network.h
<reponame>sedurCode/nodOSC /* * Broadcom Proprietary and Confidential. Copyright 2016 Broadcom * All Rights Reserved. * * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Broadcom Corporation; * the contents of this file may not be disclosed to third parties, copied * or duplicated in any form, in whole or in...
greenelab/adage-frontend
src/components/details/index.js
import React from 'react'; import { isValidElement } from 'react'; import { Fragment } from 'react'; import PropTypes from 'prop-types'; import Linkify from 'react-linkify'; import HorizontalLine from '../../components/horizontal-line'; import './index.css'; import { isNumber } from '../../util/types'; import { isObj...
cmzmasek/cxio
src/main/java/org/cxio/core/interfaces/AspectFragmentWriter.java
package org.cxio.core.interfaces; import java.io.IOException; import java.util.List; import org.cxio.filters.AspectKeyFilter; import org.cxio.util.JsonWriter; public interface AspectFragmentWriter extends Comparable<AspectFragmentReader> { public String getAspectName(); public void addAspectKeyFilter(final...
Jeanmilost/Visual-Mercutio
Visual Mercutio/zWinUtil32/PSS_ActivityEventViewerReminderCtrl.h
/**************************************************************************** * ==> PSS_ActivityEventViewerReminderCtrl ---------------------------------* **************************************************************************** * Description : Provides an event activity viewer reminder control * * Devel...
blahed/frank
lib/frank/publish/shell_scp.rb
module Frank module Publish #TODO class ShellSCP def self.shell_copy(local_dir, remote_dir, options) host = [] command = ["scp "] command << "-P #{options[:port]} " if options[:port] command << "-r #{local_dir}/* " host << "#{options[:username]}" if options[:...
njazz/imgui-mvc-wrap
lib/IUImplementation.hpp
// // IUImplementation.hpp // nseq // // Created by Alex on 28/03/2018. // Copyright © 2018 <NAME>. All rights reserved. // #ifndef IUImplementation_hpp #define IUImplementation_hpp #include <stdio.h> #include "imgui.h" //struct GLFWwindow; #include "glcorearb.h" #define GL_ARB_shader_objects // GL3W/GLFW #inc...
dolphingarlic/sketch-frontend
src/main/java/sketch/compiler/dataflow/recursionCtrl/AdvancedRControl.java
package sketch.compiler.dataflow.recursionCtrl; import java.util.HashMap; import java.util.Map; import java.util.Stack; import sketch.compiler.ast.core.FEReplacer; import sketch.compiler.ast.core.Function; import sketch.compiler.ast.core.Package; import sketch.compiler.ast.core.Program; import sketch.compiler.ast.cor...
manifest/flax-extra
src/flax_extra/combinator/__init__.py
r"""Combinator functions compose other functions.""" from redex.combinator import * from flax_extra.combinator._concatenate import concatenate, Concatenate __all__ = [ "concatenate", "Concatenate", # Redex. "add", "branch", "Combinator", "div", "drop", "Drop", "dup", "Dup",...
HKMUD/NT6
nitan/kungfu/skill/driving.c
// driving.c inherit SKILL; string type() { return "technic"; } void skill_improved(object me) {} int valid_learn(object me) { return 1; }
ramgopal99/centipede
src/lib/centipede/Crawler/Generic/__init__.py
from .Hashmap import Hashmap
Bleyddyn/malpi
train/hparam_plot.py
import pickle import argparse from collections import defaultdict import numpy as np from hyperopt import hp, STATUS_OK, Trials from hyperopt.pyll_utils import expr_to_config import hyperopt import matplotlib.pyplot as plt from matplotlib import style import skopt style.use('fivethirtyeight') def plotRegressionHpar...
cquiroz/scalajs-react-semantic-u
facade/src/test/scala/react/semanticui/elements/placeholder/PlaceholderHeaderSuite.scala
package react.semanticui.elements.placeholder import japgolly.scalajs.react.test._ import japgolly.scalajs.react.vdom.html_<^._ import react.common.syntax.vdom._ class PlaceholderHeaderSuite extends munit.FunSuite { test("render") { val paragraph = PlaceholderHeader() ReactTestUtils.withNewBodyElement { mou...
18279811184/youcham-jxsswt
youcham-admin/src/main/java/io/youcham/modules/ins/service/impl/InsSuggestionsServiceImpl.java
<gh_stars>1-10 package io.youcham.modules.ins.service.impl; import org.apache.commons.lang.StringUtils; import org.springframework.stereotype.Service; import java.util.Map; import com.baomidou.mybatisplus.mapper.EntityWrapper; import com.baomidou.mybatisplus.plugins.Page; import com.baomidou.mybatisplus.service.impl.S...
syntheticgio/fda-hive
vlib/slib/std/filesorted.cpp
<reponame>syntheticgio/fda-hive /* * ::718604! * * Copyright(C) November 20, 2014 U.S. Food and Drug Administration * Authors: Dr. <NAME> (1), Dr. <NAME> (2), et al * Affiliation: Food and Drug Administration (1), George Washington University (2) * * All rights Reserved. * * The MIT License (MIT) * * Pe...
jasl-lab/cybros_portal
db/migrate/20200424065534_add_view_hr_report_to_role.rb
class AddViewHrReportToRole < ActiveRecord::Migration[6.0] def change add_column :roles, :hr_report_admin, :boolean add_column :roles, :hr_report_viewer, :boolean add_column :roles, :hr_report_writer, :boolean end end
jaclu/hub3
ikuzo/service/x/imageproxy/request_test.go
<reponame>jaclu/hub3 package imageproxy import ( "testing" "github.com/google/go-cmp/cmp" ) const ( imgURL = "http://example.com/123.jpg" testCacheKey = "aHR0cDovL2V4YW1wbGUuY29tLzEyMy5qcGc=" ) func TestNewRequest(t *testing.T) { type args struct { key string options []RequestOption } tests :=...
webguru001/Python-Django-Web
Francisco_Trujillo/Assignments/Cointoss/cointoss.py
import random heads = 0 tails = 0 toss= random.random() num = input("Enter number of Tosses: ") num+=1 for num in range (1, num): toss= random.random() if toss >=0.50: heads+=1 else: tails+=1 print 'Attempt'+ str(num) + " : Throwing a coin... It's a head! ... Got "+ str(heads) + "head(...
michael-topchiev/hypershift
vendor/github.com/prometheus/client_golang/api/client.go
// Copyright 2015 The Prometheus 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 by applicable law or agreed to...
opendesk/schema
src/winnow/tests/json_encode_tests.py
import unittest import decimal from winnow.utils import json_loads, json_dumps, to_decimal, from_decimal class TestJsonEncoding(unittest.TestCase): def test_roundtrip_floats(self): v = "2.2" as_python_float = json_loads(v) self.assertTrue(isinstance(as_python_float, float)) ...
chenlulujing/talkback
src/main/java/com/android/talkback/speechrules/RulePager.java
/* * Copyright (C) 2016 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 applicab...
maroozm/AliPhysics
OADB/AliOADBTriggerAnalysis.h
#ifndef AliOADBTriggerAnalysis_H #define AliOADBTriggerAnalysis_H /* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ //------------------------------------------------------------------------- // OADB container for fi...
RevansChen/online-judge
Codewars/7kyu/powers-of-3/Python/test.py
# Python - 3.6.0 Test.it('Example test cases') Test.assert_equals(largestPower(3), 0) Test.assert_equals(largestPower(4), 1)
gregmolnar/write_xlsx
lib/write_xlsx/gradient.rb
<reponame>gregmolnar/write_xlsx<filename>lib/write_xlsx/gradient.rb module Writexlsx module Gradient def gradient_properties(args) return unless ptrue?(args) gradient = {} types = { 'linear' => 'linear', 'radial' => 'circle', 'rectangular' => 'rect', ...
keryhu/xdidian-projection
user-account/src/main/java/com/xdidian/keryhu/user_account/stream/SignupConsumer.java
<reponame>keryhu/xdidian-projection package com.xdidian.keryhu.user_account.stream; import com.xdidian.keryhu.domain.SignupDto; import com.xdidian.keryhu.user_account.domain.User; import com.xdidian.keryhu.user_account.service.ConverterUtil; import com.xdidian.keryhu.user_account.service.UserService; import lombok.ex...
pervasync/myfaces-trinidad
trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/agent/parse/DeviceComponentNode.java
<filename>trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/agent/parse/DeviceComponentNode.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 ...
SpokeU/miner
src/main/java/app/miner/models/StepConfiguration.java
package app.miner.models; import org.javalite.activejdbc.Model; import org.javalite.activejdbc.annotations.BelongsTo; import org.javalite.activejdbc.annotations.Table; import java.util.Map; @Table("step_configurations") @BelongsTo(parent = Step.class, foreignKeyName = "step_id") public class StepConfiguration extend...
megahertz0/android_thunder
dex_src/com/google/zxing/c/v.java
<reponame>megahertz0/android_thunder<gh_stars>10-100 package com.google.zxing.c; // compiled from: UPCEANExtension5Support.java final class v { static final int[] a; final int[] b; final StringBuilder c; v() { this.b = new int[4]; this.c = new StringBuilder(); } static { ...
mr337/mymove
pkg/services/storage_in_transit/patch_storage_in_transit.go
<reponame>mr337/mymove package storageintransit import ( "time" "github.com/gobuffalo/pop" "github.com/gobuffalo/validate" "github.com/gofrs/uuid" "github.com/transcom/mymove/pkg/auth" "github.com/transcom/mymove/pkg/gen/apimessages" "github.com/transcom/mymove/pkg/handlers" "github.com/transcom/mymove/pkg/m...
vadim8kiselev/social-matchmaker
src/main/java/com/kiselev/matchmaker/view/serialize/SerializeView.java
<reponame>vadim8kiselev/social-matchmaker<gh_stars>0 package com.kiselev.matchmaker.view.serialize; import com.kiselev.matchmaker.api.model.Entity; import java.io.File; import java.util.List; public interface SerializeView { <Pojo extends Entity> void serialize(List<Pojo> entities, String filePath); <Pojo ...
crazyvalse/algorithms
src/104-knapsack/wanquan/01.test.js
<filename>src/104-knapsack/wanquan/01.test.js const knapsack = require('./01') test('1', () => { // 保险箱中 物品的价值 let values = [5, 10, 20] // 物品的尺寸 let weights = [3, 2, 2] // 1. 获得 capacity <= 16的所有方法 // 总尺寸 let capacity = 5 expect(knapsack(capacity, weights, values)).toBe(40) }) test('2', () => { // ...
qaz4042/beBetter
3-common/src/main/java/bebetter/basejpa/constant/CacheNamesBase.java
<filename>3-common/src/main/java/bebetter/basejpa/constant/CacheNamesBase.java package bebetter.basejpa.constant; public class CacheNamesBase { public static final String menuList = "menuList"; public static final String menu = "menu"; public static final String bannerList = "bannerList"; public static...
jorilallo/rich-markdown-editor-emotion
lib/plugins/EditList.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _slateEditList = require("slate-edit-list"); var _slateEditList2 = _interopRequireDefault(_slateEditList); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = (0, _slateE...
GullapalliAkhil/java-client
src/test/java/io/appium/java_client/events/listeners/ContextListener2.java
<gh_stars>0 package io.appium.java_client.events.listeners; import io.appium.java_client.events.api.mobile.ContextEventListener; import org.openqa.seleniumone.WebDriver; public class ContextListener2 extends TestListener implements ContextEventListener { @Override public void beforeSwitchingToContext(WebDriver dr...
liutang123/incubator-druid
server/src/main/java/org/apache/druid/server/initialization/jetty/JettyServerInitUtils.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
Asap7772/rail-rl-franka-eval
experiments/murtaza/vae/torque_control/train_vae_torque_reacher_debug.py
from sklearn.model_selection import train_test_split import railrl.misc.hyperparameter as hyp from railrl.launchers.launcher_util import run_experiment from railrl.misc.ml_util import PiecewiseLinearSchedule from railrl.torch.vae.conv_vae import ConvVAE from railrl.torch.vae.vae_trainer import ConvVAETrainer import nu...
ScholliYT/RoboCom2018
DataDebugger/PCCommunication/src/nxt/object/ShutdownHook.java
package nxt.object; import nxt.connection.PCCommunicationManager; public class ShutdownHook extends Thread{ private PCCommunicationManager man; private ShutdownHook(PCCommunicationManager man){ this.man = man; Runtime.getRuntime().addShutdownHook(this); } @Override public void run(){ i...
hadoopeco/jok-boot
jok-common-v2/src/main/java/com/jokls/jok/util/SyncMap.java
<reponame>hadoopeco/jok-boot<filename>jok-common-v2/src/main/java/com/jokls/jok/util/SyncMap.java<gh_stars>0 package com.jokls.jok.util; import java.util.HashMap; /** * Copyright (C) 2019 * All rights reserved * * @author: marik.wei * @mail: <EMAIL> * Date: 2019/6/25 11:22 */ public class SyncMap<K, V> extends...
JaneMandy/CS
org/w3c/dom/css/CSSStyleSheet.java
package org.w3c.dom.css; import org.w3c.dom.DOMException; import org.w3c.dom.stylesheets.StyleSheet; public interface CSSStyleSheet extends StyleSheet { CSSRule getOwnerRule(); CSSRuleList getCssRules(); int insertRule(String var1, int var2) throws DOMException; void deleteRule(int var1) throws DOMExce...
forestfsl/APIKit
APIKit/Classes/MagicWorldAPI.h
<reponame>forestfsl/APIKit #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface MagicWorldAPI : NSObject extern NSString *const kActivateForNotification; extern NSString *const krequestLoginForNotification; extern NSString *const kLoginCheckForNotification; extern NSString *const kLogoutForNotific...
skurmedel/cornelis
include/cornelis/Scene.hpp
#pragma once #include <memory> #include <cornelis/Camera.hpp> #include <cornelis/Objects.hpp> namespace cornelis { class Scene { public: Scene(); ~Scene(); Scene(Scene &&) = default; auto operator=(Scene &&) -> Scene & = default; Scene(Scene const &) = delete; auto operator=(Scene const &)...
Parveen3300/Reans
cms/migrations/0001_initial.py
# Generated by Django 3.2.8 on 2021-11-15 05:11 import ckeditor.fields from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER...
AlmondDust/Assignment3-Final-AIFO
aifo_simulation/java-code/src/test/java/ch/ethz/systems/netbench/ext/bare/BareRunTest.java
package ch.ethz.systems.netbench.ext.bare; import ch.ethz.systems.netbench.core.run.MainFromProperties; import ch.ethz.systems.netbench.testutility.TestLogReader; import org.apache.commons.lang3.tuple.ImmutablePair; import org.apache.commons.lang3.tuple.Pair; import org.junit.Test; import org.junit.runner.RunWith; imp...
drausin/libri
libri/librarian/server/peer/testing.go
package peer import ( "fmt" "math/rand" "net" "testing" "time" cerrors "github.com/drausin/libri/libri/common/errors" "github.com/drausin/libri/libri/common/id" "github.com/drausin/libri/libri/librarian/server/storage" "github.com/stretchr/testify/assert" ) // NewTestPeer generates a new peer suitable for t...
CESNET/Nemea-Framework
unirec/unirec2csv.h
<gh_stars>10-100 /** * \file unirec2csv.h * \brief Definition of UniRec API to create CSV-like representation of UniRec data * \author <NAME> <<EMAIL>> * \date 2019 */ /* * Copyright (C) 2019 CESNET * * SPDX-License-Identifier: BSD-3-Clause * */ #ifndef _UNIREC2CSV_H_ #define _UNIREC2CSV_H_ #include "unirec...
danielfct/master-thesis
usmanager/manager/manager-services/src/main/java/pt/unl/fct/miei/usmanagement/manager/dtos/kafka/ContainerDTO.java
package pt.unl.fct.miei.usmanagement.manager.dtos.kafka; import com.fasterxml.jackson.annotation.JsonIdentityInfo; import com.fasterxml.jackson.annotation.ObjectIdGenerators; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import pt.unl.fct.miei.usmanageme...
ernestoresende/ernestoresende.com
src/components/common/BlogItem/index.js
import React from 'react' import PropTypes from 'prop-types' import * as S from './styled' const BlogItem = ({ slug, timeToRead, title, description, fixedHoverStyle }) => { return ( <S.PostContainer to={`${slug}`} title={title} data-fixed-hover={fixedHoverStyle}> <div> <S.TimeToRead>{timeToRead} m...
vncoelho/optmarket
OptFrame/Heuristics/VNS/MOVNS.hpp
// OptFrame - Optimization Framework // Copyright (C) 2009, 2010, 2011 // http://optframe.sourceforge.net/ // // This file is part of the OptFrame optimization framework. This framework // is free software; you can redistribute it and/or modify it under the // terms of the GNU Lesser General Public License v3 a...
proteanblank/ags
Common/util/stream.cpp
//============================================================================= // // Adventure Game Studio (AGS) // // Copyright (C) 1999-2011 <NAME> and 2011-20xx others // The full list of copyright holders can be found in the Copyright.txt // file, which is part of this source code distribution. // // The AGS sourc...
dentou/Hive2Hive
org.hive2hive.core/src/main/java/org/hive2hive/core/processes/share/ShareFolderNotificationMessageFactory.java
package org.hive2hive.core.processes.share; import net.tomp2p.peers.PeerAddress; import org.hive2hive.core.model.FolderIndex; import org.hive2hive.core.model.UserPermission; import org.hive2hive.core.network.messages.direct.BaseDirectMessage; import org.hive2hive.core.network.userprofiletask.UserProfileTask; import o...
Barchid/CAR-TP01
src/main/java/ftp/controls/FtpMkdControl.java
package ftp.controls; import java.io.IOException; import java.nio.file.AccessDeniedException; import java.nio.file.FileAlreadyExistsException; import java.nio.file.Files; import java.nio.file.InvalidPathException; import java.nio.file.Paths; import ftp.FtpCommand; import ftp.FtpReply; import ftp.SessionStore; /** *...
razsilev/TelerikAcademy_Homework
JavaScript/JS_Part_One/Homeworks/Js_part_One_Homeworks/11_Strings/scripts/09-extract-emails.js
<filename>JavaScript/JS_Part_One/Homeworks/Js_part_One_Homeworks/11_Strings/scripts/09-extract-emails.js /* * 9. Write a function for extracting all email addresses * from given text. All substrings that match the format * <identifier>@<host>…<domain> should be recognized as emails. * Return t...
AsahiOS/gate
usr/src/uts/common/sys/1394/targets/dcam1394/dcam_frame.h
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (the "License"). You may not use this file except in compliance * with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * o...
leeokdkpvv5c/UIUC-data-miningv
clivia-assembly-base/clivia-httpClient-assembly-base/src/main/java/org/palading/clivia/httpClient/ContentType.java
<reponame>leeokdkpvv5c/UIUC-data-miningv<gh_stars>10-100 package org.palading.clivia.httpClient; /** * @author palading_cr * @title ContentType * @project clivia-gateway */ public class ContentType { public static final String APPLICATION_FORM_URLENCODED = "application/x-www-form-urlencoded"; pu...
bbrinx/newsfeed
src/server/rss/fiveThirtyEight/index.js
const Parser = require('./parser') const parser = new Parser() module.exports = { getAll: function () { const url = 'https://fivethirtyeight.com/all/feed/' return send(url) }, getFeatures: function () { const url = 'https://fivethirtyeight.com/features/feed/' return send(url) }, getPoliti...
xavluiz/xdb
src/main/java/com/baddata/exception/BaddataException.java
<reponame>xavluiz/xdb /** * Copyright (c) 2016 by Baddata. * All rights reserved. */ package com.baddata.exception; public class BaddataException extends Exception { /** * */ private static final long serialVersionUID = 1L; /** * * @param message */ public BaddataExce...
Celebrate-future/jzy3d-api
jzy3d-core/src/main/java/org/jzy3d/plot2d/primitives/LineSerie2d.java
package org.jzy3d.plot2d.primitives; import java.util.List; import org.jzy3d.colors.Color; import org.jzy3d.maths.Coord2d; import org.jzy3d.maths.Coord3d; import org.jzy3d.plot3d.primitives.ConcurrentLineStrip; import org.jzy3d.plot3d.primitives.Point; public class LineSerie2d implements Serie2d { protected Concur...
LoveWFan/MPlayer
labase/src/main/java/ma/bay/com/labase/common/glide/BlurTransform.java
package ma.bay.com.labase.common.glide; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.ColorMatrix; import android.graphics.ColorMatrixColorFilter; import android.graphics.Paint; import androidx.annotation.NonNull; import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPoo...
BenLloydPearson/nylas-java
src/main/java/com/nylas/UnsupportedQuery.java
<reponame>BenLloydPearson/nylas-java package com.nylas; /* * Currently does nothing, but required for RestfulCollection implementation for consistency sake */ class UnsupportedQuery extends RestfulQuery<UnsupportedQuery> { }
wedusk101/sig
src/sig/gs_quat.cpp
<reponame>wedusk101/sig<filename>src/sig/gs_quat.cpp /*======================================================================= Copyright (c) 2018-2019 <NAME>. This software is distributed under the Apache License, Version 2.0. All copies must contain the full copyright notice licence.txt located at the base...
amelieykw/Mentoring
frontend/helpers/workerClient.js
<filename>frontend/helpers/workerClient.js import socketClient from './socketClient'; import dataProcesser from './dataProcesser'; import { DEFAULT_DATA, URL } from '../config'; import fetchWithHeaders from '../utils/fetchWithHeaders'; let chartData; let ws; function recivedMessageFromSocket(newData) { chartData = ...
EliahKagan/old-practice-snapshot
main/kruskalmstrsub/kruskalmstrsub-2.c
<gh_stars>0 #ifdef _MSC_VER #define _CRT_SECURE_NO_WARNINGS #endif #include <stdbool.h> #include <stdio.h> #include <stdlib.h> static inline void *xcalloc(const size_t count, const size_t size) { void *const ret = calloc(count, size); if (!ret) abort(); return ret; } struct dsu { int *parents; in...
mrnetsun/korea
scripts/editor/scripts/language/nn-NO/list.js
function loadTxt() { var txtLang = document.getElementsByName("txtLang"); txtLang[0].innerHTML = "Tall & bokstaver"; txtLang[1].innerHTML = "Bildepunkt"; txtLang[2].innerHTML = "Start - nr."; txtLang[3].innerHTML = "Venstre marg"; txtLang[4].innerHTML = "Bruk bilde" txtLang[5].innerHTML ...
zoho/zohocrm-scala-sdk-2.0
src/main/scala/com/zoho/crm/api/fields/Currency.scala
<filename>src/main/scala/com/zoho/crm/api/fields/Currency.scala<gh_stars>0 package com.zoho.crm.api.fields import com.zoho.crm.api.util.Model import scala.collection.mutable.HashMap class Currency extends Model { private var roundingOption:Option[String] = None private var precision:Option[Int] = None private var ...
betopp/pathetix
programs/oksh-6.9/src/lex.c
/* $OpenBSD: lex.c,v 1.78 2018/01/15 14:58:05 jca Exp $ */ /* * lexical analysis and source input */ #include <ctype.h> #include <errno.h> #include <libgen.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include "sh.h" /* * states while lexing word */ #define SINVALID -1 /* invalid state */ #defi...
Calcaware/SeekReactNative
components/UIComponents/Buttons/GreenButton.js
<gh_stars>10-100 // @flow import * as React from "react"; import { Text, TouchableOpacity } from "react-native"; import i18n from "../../../i18n"; import { viewStyles, textStyles } from "../../../styles/uiComponents/buttons/greenButton"; type Props = { +color?: ?Object, +handlePress: Function, +letterSpacing?...
RomaLytar/theatre
resources/assets/theatre/_blocks/filter/filter-event.js
(function() { if (document.querySelector(`[data-event-parent]`)) { class FilterEvent { constructor(item) { this.item = item; this.unicDateArr = []; this.actorsArr = this.item.querySelectorAll(`[data-event-artist]`); this.filter = new FilterValue(this.item.querySelector(`[da...
storset/vtk
src/main/java/vtk/security/web/saml/UserData.java
/* Copyright (c) 2010, University of Oslo, Norway * 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, thi...
mijaros/apiman-test
apiman-it-rest/src/test/java/io/apiman/test/integration/rest/plugins/policies/simpleheader/AbstractSimpleRequestHeaderPolicyIT.java
/* * Copyright 2016 Red Hat 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...
iTitus/PDXTools
pdx-tools/src/main/java/io/github/ititus/pdx/stellaris/user/save/Budget.java
package io.github.ititus.pdx.stellaris.user.save; import io.github.ititus.pdx.pdxscript.PdxScriptObject; public class Budget { public Budget(PdxScriptObject o) { // TODO: income, expenses, balance } }
otvorenesudy/otvorenesudy
spec/probe_spec_helper.rb
<reponame>otvorenesudy/otvorenesudy<filename>spec/probe_spec_helper.rb require 'spec_helper' require 'rake'
RichardRanft/RakNet
DependentExtensions/cat/Platform.hpp
<gh_stars>1000+ /* Copyright (c) 2009-2010 <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 co...
cameroncooke/XcodeHeaders
Frameworks/IBFoundation/IBICLaunchImageSet.h
<reponame>cameroncooke/XcodeHeaders<gh_stars>1-10 // // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import <IBFoundation/IBICSlottedAsset.h> @interface IBICLaunchImageSet : IBICSlottedAsset { } + (id)importPriority; + (id)contentRefer...
sandeepreddymurthy1/bigdime
bigdime-core/src/test/java/io/bigdime/core/channel/ChannelFactoryTest.java
<filename>bigdime-core/src/test/java/io/bigdime/core/channel/ChannelFactoryTest.java<gh_stars>0 /** * Copyright (C) 2015 Stubhub. */ package io.bigdime.core.channel; import java.util.HashMap; import java.util.Map; import org.mockito.Mockito; import org.springframework.beans.factory.annotation.Autowired; import org....
anthonyAgnone/vSchoolAssignments
projects/plot-fullstack/client/src/index.js
<reponame>anthonyAgnone/vSchoolAssignments import React from 'react'; import ReactDOM from 'react-dom'; import { BrowserRouter } from 'react-router-dom'; import App from './App'; import { DragDropContextProvider } from 'react-dnd'; import HTML5Backend from 'react-dnd-html5-backend'; import GameProvider from './componen...
VirtualGamer/SnowEngine
Dependencies/opengles/src/org/lwjgl/opengles/NVFramebufferBlit.java
<reponame>VirtualGamer/SnowEngine /* * Copyright LWJGL. All rights reserved. * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.opengles; import static org.lwjgl.system.Checks.*; import static org.lwjgl.system.JNI.*; /** * Native bindings to the <a href="htt...
BulkSecurityGeneratorProject/Cashcash
src/main/webapp/js/entities/cash-transaction/cash-transaction.state.js
<reponame>BulkSecurityGeneratorProject/Cashcash export default function stateConfig($stateProvider) { "ngInject"; $stateProvider .state('cash-transaction', { parent: 'entity', url: '/cash-transaction?page&sort&search&accountIdList&startDate&endDate', data: { ...
penghaiYin/bm-work-2020
server/src/main/java/edp/vap/dto/organizationDto/OrganizationPut.java
package edp.vap.dto.organizationDto; import lombok.Data; import javax.validation.constraints.Max; import javax.validation.constraints.Min; import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotNull; @Data @NotNull(message = "organzation info cannot be null") public class Organizatio...
spmallette/groovy
src/main/java/org/codehaus/groovy/ast/builder/AstStringCompiler.java
<filename>src/main/java/org/codehaus/groovy/ast/builder/AstStringCompiler.java<gh_stars>1-10 /* * 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. Th...
cdluminate/advorder
lib/datasets/__init__.py
<gh_stars>1-10 ''' Copyright (C) 2020-2021 <NAME> <<EMAIL>> Released under the Apache-2.0 License. ''' from . import fashion from . import sop
markzhai/DBFlow
DBFlow-Core/src/main/java/com/raizlabs/android/dbflow/annotation/ModelContainer.java
<reponame>markzhai/DBFlow package com.raizlabs.android.dbflow.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Author: andrewgrosner * Description: Will generate a $Container class defin...
rajyan/AtCoder
ABC/ABC075/C.cpp
//#include <cassert> //#include <cstdio> //#include <cmath> //#include <iostream> //#include <sstream> //#include <string> //#include <vector> //#include <map> //#include <queue> //#include <algorithm> // //const int MOD = 1000000007, INF = 1111111111; //using namespace std; //using lint = long long; // //template <cla...
HanochZhu/vts-browser-unity-plugin
externals/browser/externals/browser/externals/libimgproc/imgproc/detail/clahe.hpp
<reponame>HanochZhu/vts-browser-unity-plugin /** * Copyright (c) 2017 Melown Technologies SE * * 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 no...
Grosskopf/openoffice
main/unotools/inc/unotools/startoptions.hxx
<reponame>Grosskopf/openoffice /************************************************************** * * 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...
HGyllensvard/geofence-manager
src/main/java/com/hgyllensvard/geofencemanager/toolbar/ToolbarTitleManager.java
package com.hgyllensvard.geofencemanager.toolbar; import javax.inject.Inject; import javax.inject.Singleton; import io.reactivex.Observable; import io.reactivex.subjects.BehaviorSubject; @Singleton public class ToolbarTitleManager { private BehaviorSubject<ToolbarTitle> toolbarTitleBehaviorSubject; @Injec...
myxzjie/cms
cms-boot-web/src/main/java/com/xzjie/cms/model/Topic.java
package com.xzjie.cms.model; import lombok.Data; import org.hibernate.annotations.SQLDelete; import org.hibernate.annotations.Where; import javax.persistence.*; import java.time.LocalDateTime; @Data @Entity @Table(name = "cms_topic") @Where(clause = "state = 1") @SQLDelete(sql = "update cms_topic set state = 0 where...
hanzeitest/mattermost-plugin-solar-lottery
server/solarlottery/autofill/queue/autofill.go
// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. // See License for license information. package queue import ( "github.com/pkg/errors" sl "github.com/mattermost/mattermost-plugin-solar-lottery/server/solarlottery" "github.com/mattermost/mattermost-plugin-solar-lottery/server/utils/bot" ) cons...
xlvchao/spartacus
spartacus-auth/src/main/java/com/xlc/spartacus/auth/core/properties/SessionProperties.java
<filename>spartacus-auth/src/main/java/com/xlc/spartacus/auth/core/properties/SessionProperties.java package com.xlc.spartacus.auth.core.properties; import lombok.Data; /** * 配置 * * @author xlc, since 2021 */ @Data public class SessionProperties { /** * 并发控制: * 同一个用户在系统中的最大session数,默认1 */ private int ma...