repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
sin-ivan/AdiumPipeEvent | adium/Source/AIXMLAppender.h | /*
* AIXMLAppender.h
*
* Created by <NAME> on 12/23/05.
*
* This class is explicitly released under the BSD license with the following modification:
* It may be used without reproduction of its copyright notice within The Adium Project.
*
* This class was created for use in the Adium project, which is released ... |
sillsdev/xlingpaper | javasrc/XLingPapExtensions/src/xlingpaper/xxe/ConvertCollectionToCitation.java | <gh_stars>0
package xlingpaper.xxe;
import com.xmlmind.guiutil.Alert;
import com.xmlmind.xml.doc.Document;
import com.xmlmind.xml.doc.Element;
import com.xmlmind.xml.doc.Node;
import com.xmlmind.xml.doc.Text;
import com.xmlmind.xml.name.Name;
import com.xmlmind.xml.name.Namespace;
import com.xmlmind.xml.valid... |
melkishengue/cpachecker | src/org/sosy_lab/cpachecker/cpa/statistics/StatisticsDataProvider.java | <filename>src/org/sosy_lab/cpachecker/cpa/statistics/StatisticsDataProvider.java<gh_stars>1-10
/*
* CPAchecker is a tool for configurable software verification.
* This file is part of CPAchecker.
*
* Copyright (C) 2007-2014 <NAME>
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (t... |
beardedtim/bambi | modules/T.js | <gh_stars>1-10
const T = () => true;
module.exports = T;
|
JeffreyThiessen/staramr | staramr/tests/unit/blast/pointfinder/test_PointfinderDatabaseInfo.py | <filename>staramr/tests/unit/blast/pointfinder/test_PointfinderDatabaseInfo.py
import unittest
import pandas as pd
from staramr.blast.pointfinder.PointfinderDatabaseInfo import PointfinderDatabaseInfo
from staramr.blast.results.pointfinder.codon.CodonMutationPosition import CodonMutationPosition
class PointfinderDa... |
cheminfo/nmredata | src/__tests__/processContent.test.js | <reponame>cheminfo/nmredata
import { processContent } from '../processContent';
describe('processContent testing', () => {
let dataLines = [
'Larmor=500.13300078',
'CorrType=HMBC',
'Pulseprogram=hmbcetgpl3nd',
'Spectrum_Location=file:dj_ca_2017_ernestin_EN4/15/pdata/1/',
'3/H1',
];
/*eslint-d... |
kniz/wrd | mod/wrd/builtin/primitive/wVoid.cpp | #include "wVoid.hpp"
#include "../../ast/mgd/defaultCtor.hpp"
#include "../../ast/mgd/defaultCopyCtor.hpp"
namespace wrd {
WRD_DEF_ME(wVoid)
wbool me::wVoidType::isImmutable() const { return true; }
const ases& me::wVoidType::_getImpliAses() const {
static ases inner;
return inner;
}... |
asanoviskhak/Outtalent | Leetcode/1175. Prime Arrangements/solution1.py | <reponame>asanoviskhak/Outtalent<filename>Leetcode/1175. Prime Arrangements/solution1.py<gh_stars>10-100
from math import factorial
class Solution:
def numPrimeArrangements(self, n: int) -> int:
primes = [True] * (n + 1)
for prime in range(2, int(n ** 0.5) + 1):
if not primes[prime]: c... |
dmitryryintel/cm-compiler | test/external_contribution/CopyPipelineHigh6/include/CmdParser.h | <reponame>dmitryryintel/cm-compiler
/*
* Copyright (c) 2017, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the ... |
laohubuzaijia/fbthrift | thrift/compiler/test/fixtures/complex-union/gen-swift/test/fixtures/complex_union/Val.java | /**
* Autogenerated by Thrift
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package test.fixtures.complex_union;
import com.facebook.swift.codec.*;
import com.facebook.swift.codec.ThriftField.Requiredness;
import com.facebook.swift.codec.ThriftField.Recursiveness;
import c... |
andela-jejezie/peopleProject | node_modules/karma/node_modules/http-proxy/examples/balancer/simple-balancer.js | var httpProxy = require('../../lib/node-http-proxy');
//
// A simple round-robin load balancing strategy.
//
// First, list the servers you want to use in your rotation.
//
var addresses = [
{
host: 'ws1.0.0.0',
port: 80
},
{
host: 'ws2.0.0.0',
port: 80
}
];
httpProxy.createServer(function (re... |
jhouser/houseoffun | frontend/src/actions/games.js | import { RSAA } from 'redux-api-middleware';
import {withAuth} from "../util/api";
export const GAME_LIST_REQUEST = '@@games/GAME_LIST_REQUEST';
export const GAME_LIST_SUCCESS = '@@games/GAME_LIST_SUCCESS';
export const GAME_LIST_FAILURE = '@@games/GAME_LIST_FAILURE';
export const GAME_DETAIL_REQUEST = '@@games/GAME_D... |
voidFunctionReturn0/TeamHome | Client(AndroidStrudio Project)/Woori2/library/src/test/java/com/github/sundeepk/compactcalendarview/CompactCalendarControllerTest.java | package com.github.sundeepk.compactcalendarview;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Rect;
import android.view.MotionEvent;
import android.view.VelocityTracker;
import android.widget.OverScroller;
import com.github.sundeepk.compactcalen... |
antonelloceravola/ToolBOSCore | include/ToolBOSCore/Util/FastScript.py | <gh_stars>0
# -*- coding: utf-8 -*-
#
# convenience functions for frequently used scripting operations
#
# Copyright (c) Honda Research Institute Europe GmbH
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# 1... |
hyller/GladiatorLibrary | D4D/eGUI/D4D/common_files/d4d_font.h | <gh_stars>1-10
/**************************************************************************
*
* Copyright 2014 by <NAME>. eGUI Community.
* Copyright 2009-2013 by <NAME>. Freescale Semiconductor, Inc.
*
***************************************************************************
* This program is free software: you can r... |
Aurelia-io-fr/ghost-aurelia | src/posts/posts.js | export class Posts {
}
|
foundersandcoders/OTP_Data_Entry | src/otp_sdk/index.js | <filename>src/otp_sdk/index.js
module.exports.events = require('./events.js');
module.exports.places = require('./places.js');
module.exports.auth = {
getRefreshToken: require('./get_refresh_token.js'),
};
|
ploki/aws-sdk-cpp | aws-cpp-sdk-codecommit/include/aws/codecommit/model/PostCommentReplyRequest.h | <gh_stars>1-10
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in th... |
metaflow/contests | atcoder/agc041/b.cc | #if defined(LOCAL)
const double _max_double_error = 1e-9;
#include "testutils.h"
#define L(x...) (debug(x, #x))
#define I(x, ...) (x)
#define C(x...) CHECK(x)
#else
#define L(x, ...) (x)
#define I(x, ...) (x)
#define C(x, ...) ;
#endif
#include <math.h>
#include <algorithm>
#include <bitset>
#include <cassert>
#include... |
Neuron64/ftpclient | data/src/main/java/com/neuron64/ftp/data/exception/ErrorMappingUnavailable.java | package com.neuron64.ftp.data.exception;
/**
* Created by yks-11 on 10/16/17.
*/
public class ErrorMappingUnavailable extends Error{
}
|
lunelson/ln-js | _beta/bricks/gulpfile.js | // imports
const json = require('./package.json')
const sync = require('browser-sync')
const del = require('del')
const fs = require('fs')
const gulp = require('gulp')
const notifier = require('node-notifier')
const rollup = require('rollup')
const babel = require('rollup-plugin-babel')
con... |
emeitch/Lay | src/func.js | import { Func, Native, LiftedNative } from './case';
// defined by case for anti cyclic referencing
export default Func;
export { Native, LiftedNative };
export const func = Func.func.bind(Func);
export const plus = func("x", "y", (x, y) => x + y);
export const concat = func("a", "b", (a, b) => `${a}${b}`);
|
seckcoder/lang-learn | python/sklearn/examples/exercises/plot_iris_exercise.py | <filename>python/sklearn/examples/exercises/plot_iris_exercise.py<gh_stars>1-10
"""
================================
SVM Exercise
================================
This exercise is used in the :ref:`using_kernels_tut` part of the
:ref:`supervised_learning_tut` section of the :ref:`stat_learn_tut_index`.
"""
print __doc... |
Fedict/fts-gui-sign | src/modules/signWizard/actions/SignatureActions.test.js | <gh_stars>1-10
import { setSignature, SIGNATURE_SET_SIGNATURE } from "./SignatureActions"
describe('SignatureActions', () => {
describe('setSignature', () => {
test('setSignature returns action with type SIGNATURE_SET_SIGNATURE and payload signature', () => {
const payload = { signatu... |
DekusDenial/framework | packages/data/app/models/navi-dimension.js | export { default } from 'navi-data/models/navi-dimension';
|
VVKot/leetcode-solutions | leetcode/python/36_valid_sudoku.py | <filename>leetcode/python/36_valid_sudoku.py
from typing import List
class Solution:
def check_row(self, board: List[List[str]], i: int, j: int):
val = board[i][j]
for k in range(9):
if k == i:
continue
if board[k][j] == val:
return False
... |
jairvelazquez/League-the-Logs | models/TopPlayersModels.js | const mongoose = require('mongoose');
const TopPlayersSchema = mongoose.Schema({
summoner_id: {type:String,required:true},
summoner_name: {type:String,required:true},
server: {type:String,required:true},
rank: {type:String,required:true},
division: {type:String,required:true},
position: {type:... |
zhangkn/iOS14Header | Applications/CarPlaySettings/CARSettingsImageCache.h | //
// Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20).
//
// Copyright (C) 1997-2019 <NAME>.
//
#import <objc/NSObject.h>
@interface CARSettingsImageCache : NSObject
{
}
+ (id)imageForColor:(id)arg1 size:(struct CGSize)arg2; // IMP=0x0000000100002... |
domenic/mojo | gpu/command_buffer/service/transfer_buffer_manager.cc | <gh_stars>1-10
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "gpu/command_buffer/service/transfer_buffer_manager.h"
#include <limits>
#include "base/logging.h"
#include "base/memory/sco... |
AnmolMaharjan/python-level1 | projects/project_03/school_manager/school.py | import json
from typing import List
from utils import clear_screen, display_message, RECORD_PATH
class Student:
def __init__(self, name: str, roll: int, age: int, major: str) -> None:
self.name = name
self.roll = roll
self.age = age
self.major = major
def show_menu(self):
... |
dev-rbatista/Tutorial_Local_Smoke_Test_with_Docker_Containers-Gradle | src/test/java/switchtwentytwenty/project/interfaceadapters/controller/implcontrollers/FamilyRESTControllerTest.java | <gh_stars>0
package switchtwentytwenty.project.interfaceadapters.controller.implcontrollers;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mo... |
ABM-Community-Ports/droidboot_device_planet-cosmocom | lib/libufdt/include/ufdt_types.h | /*
* 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 app... |
frank256/lgui | src/lib/lgui/lgui_types.h | /* _ _
* | | (_)
* | | __ _ _ _ _
* | | / _` || | | || |
* | || (_| || |_| || |
* |_| \__, | \__,_||_|
* __/ |
* |___/
*
* Copyright (c) 2015-22 frank256
*
* License (BSD):
*
* Redistribution and use in source and binary forms, with or without modification,
* ar... |
JTarasovic/go-ripestat | client/rrc_info.go | <gh_stars>0
package client
const (
rrcInfoPath = "rrc-info/data.json"
)
// RRCInfo GETs information on collector nodes (RRCs) of the RIS network (http://ris.ripe.net).
// This includes geographical and topological location and information on collectors' peers.
func (c *Client) RRCInfo() (map[string]interface{}, erro... |
threepointone/built-devtools | front_end/panels/sources/sourcesPanel.css.js | <filename>front_end/panels/sources/sourcesPanel.css.js
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
const styles = new CSSStyleSheet();
styles.replaceSync(
`/*
* Copyright (C) 2006, 2007, 2008 Apple ... |
Harshpathakjnp/CCodings | bca class/main.c | <reponame>Harshpathakjnp/CCodings
#include <stdio.h>
#include <stdlib.h>
int main()
{
int j,i=3;
j= ++i *++i *++i;
printf("j=%d,i=%d",j,i);
}
|
byung90/graphhopper | objc/SwaggerClient/Model/SWGSolutionUnassigned.h | #import <Foundation/Foundation.h>
#import "SWGObject.h"
/**
* GraphHopper Directions API
* You use the GraphHopper Directions API to add route planning, navigation and route optimization to your software. E.g. the Routing API has turn instructions and elevation data and the Route Optimization API solves your logistic ... |
ArcGIS/calcite-ui-icons-public | js/bringToFront32.js | export const bringToFront32 = "M30 12h-4v-1h3V3h-8v3h-1V2h10zM11 26v3H3v-8h3v-1H2v10h10v-4zM25 7H7v18h18z";
|
ViljoenFritz/nspack | scripts/edi_receive_check.rb | <gh_stars>1-10
# frozen_string_literal: true
# require 'logger'
# Scan a directory for EDI in files and process them.
class EdiReceiveCheck < BaseScript
attr_reader :in_dir, :out_dir, :cnt, :processed_files
def run
p 'EDI receive' if debug_mode
@in_dir = args.first
@out_dir = AppConst::EDI_RECEIVE_DI... |
Zen-CODE/zenprojects | python/fastapi/library/app/routers/library/library_responses.py | from pydantic import BaseModel
from typing import List
class ArtistListModel(BaseModel):
"""
The list of artists in our music library.
"""
artists: List[str] = []
class AlbumListModel(BaseModel):
"""
The list of albums for a given artist.
"""
artist: str
albums: List[str] = []
... |
DeKal/illumina | cms/src/core/components/NavBar.js | import React from 'react'
import PropTypes from 'prop-types'
import { styled } from '@material-ui/core/styles'
import AppBar from '@material-ui/core/AppBar'
import Toolbar from '@material-ui/core/Toolbar'
import Typography from '@material-ui/core/Typography'
import IconButton from '@material-ui/core/IconButton'
import ... |
CaffeineShawn/gdutday-wechat | pages/grade/grade_static.js | <gh_stars>1-10
export const defaultGrade = [{
credit: "4.5",
examName: "下拉可以刷新哦",
examPole: "4.5",
examScore: "95",
examTime: "2018秋季",
readMethod: "必修",
}, {
credit: "4",
examName: "糯米鸡",
examPole: "3.5",
examScore: "85",
examTime: "2018秋季",
readMethod: "必修",
}, {
credit: "3.5",
examName: "鸡肉卷",
examPol... |
Diorrr/leetcode | problems/easy/Solution217.java | <reponame>Diorrr/leetcode
package problems.easy;
import java.util.HashSet;
/**
* Problem: https://leetcode.com/problems/contains-duplicate/
* Time Complexity: O(N)
* Space Complexity: O(1)
*/
class Solution217 {
public boolean containsDuplicate(int[] nums) {
HashSet<Integer> set = new HashSet<>();
... |
justmedia-pl/SportEvents | src/main/java/pl/justmedia/service/SecurityUserDetailsService.java | <gh_stars>0
package pl.justmedia.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundExcept... |
wcnnkh/framework | mvc/src/main/java/io/basc/framework/mvc/HttpChannelInterceptor.java | package io.basc.framework.mvc;
import java.io.IOException;
public interface HttpChannelInterceptor {
Object intercept(HttpChannel httpChannel, HttpChannelInterceptorChain chain) throws IOException;
}
|
kalaytan/elastalert-operator | api/v1alpha1/elastalert_types.go | <filename>api/v1alpha1/elastalert_types.go
/*
Copyright 2021.
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 a... |
ryanloney/openvino-1 | tools/mo/openvino/tools/mo/ops/upsample.py | # Copyright (C) 2018-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import math
from openvino.tools.mo.front.common.layout import get_batch_dim, get_features_dim, get_height_dim, get_width_dim, shape_for_layout
from openvino.tools.mo.front.common.partial_infer.utils import dynamic_dimension, shape_array... |
JeroenKnoops/embeddedinfralib | infra/util/BoundedString.hpp | #ifndef INFRA_BOUNDED_STRING_HPP
#define INFRA_BOUNDED_STRING_HPP
// BoundedString is similar to std::string, except that it can contain a maximum number of characters
#include "infra/util/MemoryRange.hpp"
#include "infra/util/WithStorage.hpp"
#include <cstdlib>
#include <cstring>
#include <ostream>
#include <string... |
burdiuz/js-embedded-debug | subscriber/src/communication/message-port.js | <reponame>burdiuz/js-embedded-debug
import { Command } from 'message/command';
import { composeMessage, readMessage } from 'message/message';
export const factory = ({ source, target }) => {
const send = (command, data = null) => {
const str = composeMessage(command, data);
target.postMessage(str, '*');
}... |
durtto/cherryonext | src/netbox/core/RangeField.js | <reponame>durtto/cherryonext
// $Id$
/** Create a new RangeField
* A range field is a widget used to edit ranges. It's a trigger field that has in the popup 2 Ext.form.TextField (or classes derived by a TextField)
* to allow the user to enter the from and the to end points of a range
* @extends Ext.form.Tr... |
PuetzD/platform | src/Administration/Resources/app/administration/src/app/component/base/sw-button-group/index.js | import './sw-button-group.scss';
import template from './sw-button-group.html.twig';
const { Component } = Shopware;
/**
* @status ready
* @description The <u>sw-button-group</u> is a container element for sw-button and sw-context-button elements.
* @example-type static
* @component-example
* <sw-button-group>
... |
karthikv1392/ML-Service-Discovery | user-service/src/main/java/it/univaq/disim/numismatic/stubservice/controller/model/RolesType.java |
package it.univaq.disim.numismatic.stubservice.controller.model;
import lombok.Data;
import java.util.List;
@Data
public class RolesType {
private List<String> role;
}
|
danish2210/quran.com-api | spec/models/audio/recitation_spec.rb | # == Schema Information
#
# Table name: audio_recitations
#
# id :bigint not null, primary key
# arabic_name :string
# description :text
# file_formats :string
# home :integer
# name :string
# relative_path :string
# torrent_f... |
SoapyMan/oolua | unit_tests/bind_classes/expose_class_enums.cpp | #include "expose_class_enums.h"
#include "oolua_dsl_export.h"
OOLUA_EXPORT_NO_FUNCTIONS(ClassWithEnums)
|
sitewhere/sitewhere-java-api | sitewhere-java-model/src/main/java/com/sitewhere/rest/model/device/event/DeviceCommandInvocation.java | <gh_stars>1-10
/**
* Copyright © 2014-2021 The SiteWhere 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 require... |
MarginC/kame | netbsd/sys/arch/shark/stand/ofwboot/netif_of.h | /* $NetBSD: netif_of.h,v 1.1 2003/03/13 15:36:07 drochner Exp $ */
int netif_of_open(struct of_dev *);
void netif_of_close(int);
|
ssshammi/real-time-3d-rendering-with-directx-and-hlsl | source/7.2_Gaussian_Blurring/GaussianBlurDemo.h | <reponame>ssshammi/real-time-3d-rendering-with-directx-and-hlsl<filename>source/7.2_Gaussian_Blurring/GaussianBlurDemo.h
#pragma once
#include <gsl\gsl>
#include <winrt\Windows.Foundation.h>
#include <d3d11.h>
#include <map>
#include "DrawableGameComponent.h"
#include "FullScreenRenderTarget.h"
#include "GaussianBlur.... |
kamentr/API_Restaurant | src/main/java/net/kodar/restaurantapi/data/entities/IngredientStatus.java | package net.kodar.restaurantapi.data.entities;
import java.io.Serializable;
import javax.persistence.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
@Data
@EqualsAndHashCode(callSuper=true)
@Entity
@Table(name="ingredient_status")
@NamedQuery(name="IngredientStatus.findAll", query="SELECT i F... |
ogesaku/quark-common | src/main/java/com/coditory/quark/common/collection/Maps.java | package com.coditory.quark.common.collection;
import org.jetbrains.annotations.Nullable;
import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import java.util.function.Function;
import java.util.function.Predicate;
import static com.codi... |
ScalablyTyped/SlinkyTyped | a/arcgis-js-api/src/main/scala/typingsSlinky/arcgisJsApi/esri/SegmentDrawActionProperties.scala | <reponame>ScalablyTyped/SlinkyTyped
package typingsSlinky.arcgisJsApi.esri
import typingsSlinky.arcgisJsApi.arcgisJsApiStrings.click
import typingsSlinky.arcgisJsApi.arcgisJsApiStrings.freehand
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotat... |
ate47/rdf4j | compliance/rio/src/test/java/org/eclipse/rdf4j/rio/turtle/TurtleParserTest.java | /*******************************************************************************
* Copyright (c) 2015 Eclipse RDF4J contributors, Aduna, and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Distribution License v1.0
* which accompanies th... |
cheeepsan/ure-test | src/main/java/ure/commands/CommandHotbar9.java | <filename>src/main/java/ure/commands/CommandHotbar9.java
package ure.commands;
public class CommandHotbar9 extends CommandHotbar {
public static final String id = "HOTBAR_9";
public CommandHotbar9() { super(id, 9); }
}
|
dasec/ForTrace | src/fortrace/botnet/net/proto/genericmessage_pb2.py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: genericmessage.proto
from __future__ import absolute_import
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
# @@protoc_insertion_point(imports... |
JamesCao2048/BlizzardData | Corpus/swt/149.java | <gh_stars>1-10
/*******************************************************************************
* Copyright (c) 2000, 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this d... |
fedlearn-jdt/fedlearn-core | core/src/test/java/com/jdt/fedlearn/core/encryption/differentialPrivacy/TestObjectivePerturbDPImpl.java | <filename>core/src/test/java/com/jdt/fedlearn/core/encryption/differentialPrivacy/TestObjectivePerturbDPImpl.java<gh_stars>10-100
package com.jdt.fedlearn.core.encryption.differentialPrivacy;
import com.jdt.fedlearn.core.type.DifferentialPrivacyType;
import org.testng.Assert;
import org.testng.annotations.Test;
publi... |
LuciusKyle/LeetCode | 0162_Find_Peak_Element/0162.cc |
#include <vector>
using std::vector;
class Solution {
public:
int findPeakElement(const vector<int>& nums) {
size_t lower_index = 0;
size_t upper_index = nums.size() - 1;
if (isPeak(lower_index, nums)) return lower_index;
if (isPeak(upper_index, nums)) return upper_index;
while (upper_index -... |
Silver-birder/rapidus-cp | examples/call.js | const x = 10
function a(x) {
return {
b: function(x) {
console.log(":", x)
}
}
}
new a(x)
/*
New(
Call(
Identifier("a"),
[Identifier("x")]
)
)
*/
a.b(x)
/*
Call(
Member(
Identifier("a"),
"b"
),
[Identifier("x")]
),
*/
a(x)
/*
Call(
Identifier("a"),
[Id... |
zorancuc/pizza_hero | app/containers/Activity/Activities/ActivityItem.js | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
export default function ActivityItem({ image, timeStamp, detail, detailTo }) {
return (
<div className="activity-item">
<div className="activity-info">
<div className="activity-image">
... |
TheShellLand/crossover-source | gnutls/gnutls/lib/crypto-api.h | <filename>gnutls/gnutls/lib/crypto-api.h
/*
* Copyright (C) 2000-2016 Free Software Foundation, Inc.
* Copyright (C) 2016-2017 Red Hat, Inc.
*
* Author: <NAME>
*
* This file is part of GnuTLS.
*
* The GnuTLS is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General ... |
RGCbetty/Henkou | resources/js/components/RegistrationComponents/HenkouStatusHeader.js | <reponame>RGCbetty/Henkou
import React from 'react';
import { Button } from 'antd';
import { EyeOutlined } from '@ant-design/icons';
const headers = [
{
title: 'Sequence',
dataIndex: 'sequence',
key: '1',
width: 70,
align: 'center',
fixed: 'left'
},
{
title: 'Received Date',
width: 140,
dataIndex:... |
khamutov/intellij-scala | scala/scala-impl/src/org/jetbrains/plugins/scala/lang/resolve/processor/BaseProcessor.scala | package org.jetbrains.plugins.scala
package lang
package resolve
package processor
import com.intellij.openapi.progress.ProgressManager
import com.intellij.openapi.util.Key
import com.intellij.psi._
import com.intellij.psi.scope._
import org.jetbrains.plugins.scala.extensions._
import org.jetbrains.plugins.scala.lang.... |
jbb-project/jbb | domain-services/jbb-permissions/src/main/java/org/jbb/permissions/impl/acl/DefaultPermissionMatrixService.java | <reponame>jbb-project/jbb
/*
* Copyright (C) 2018 the original author or authors.
*
* This file is part of jBB Application Project.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*/
package org.... |
esean/stl_voro_fill | sw/vtk_scripts/TubesFromSplines/TubesFromSplines.cxx | // todo:
// - compute min/max distance across all faces, then we can use this to adjust knob to min needed
#define NmStl 1 // 1=just one STL putput, 4= output this number STL files
#define NmStl_Arr 4
#include "../common/vtk_common.h"
#include <vtkSmartPointer.h>
#include <vtkVersion.h>
#include <vtkParametricFun... |
pierreprinetti/gophercloud | openstack/loadbalancer/v2/quotas/testing/fixtures.go | package testing
import "github.com/pierreprinetti/gophercloud/v3/openstack/loadbalancer/v2/quotas"
const GetResponseRaw_1 = `
{
"quota": {
"loadbalancer": 15,
"listener": 30,
"member": -1,
"pool": 15,
"healthmonitor": 30,
"l7policy": 100,
"l7rule": -1
}
... |
odontome/app | app/models/subscription.rb | <reponame>odontome/app<gh_stars>1-10
# frozen_string_literal: true
class Subscription < ApplicationRecord
belongs_to :practice
enum status: {
trialing: 'trialing',
active: 'active',
past_due: 'past_due',
canceled: 'canceled',
}
ACCESS_GRANTING_STATUSES = ['trialing', 'active', 'past_due']
... |
PedroCorreiaLuis/Tick-Tock | test/api/controllers/TaskFunctionalSuite.scala | <gh_stars>0
package api.controllers
import java.util.UUID
import akka.actor.ActorSystem
import akka.stream.{ActorMaterializer, Materializer}
import api.dtos.{FileDTO, TaskDTO}
import api.services.{PeriodType, SchedulingType}
import database.repositories.{FileRepository, FileRepositoryImpl, TaskRepository, TaskReposit... |
ktotheoz/pixellight | Base/PLCore/include/PLCore/Tools/ChecksumCRC32.h | <filename>Base/PLCore/include/PLCore/Tools/ChecksumCRC32.h
/*********************************************************\
* File: ChecksumCRC32.h *
*
* Copyright (C) 2002-2013 The PixelLight Team (http://www.pixellight.org/)
*
* This file is part of PixelLight.
*
* Permission is h... |
rajatsangrame/MovieApp | app/src/main/java/com/rajatsangrame/movie/util/Utils.java | package com.rajatsangrame.movie.util;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.util.Log;
import android.view.inputmethod.InputMethodManager;
import com.rajatsangrame.movie.data.Repository;
import com.rajatsangrame.movie.data.db.movie.MovieD... |
Paul-Ferrell/hpctoolkit | src/lib/support/HashTableSortedIterator.cpp | // -*-Mode: C++;-*-
// * BeginRiceCopyright *****************************************************
//
// $HeadURL$
// $Id$
//
// --------------------------------------------------------------------------
// Part of HPCToolkit (hpctoolkit.org)
//
// Information about sources of support for research and development of
//... |
YoranSys/gravitee-management-rest-api | gravitee-rest-api-portal/gravitee-rest-api-portal-rest/src/test/java/io/gravitee/rest/api/portal/rest/resource/auth/OAuth2AuthenticationResourceTest.java | <reponame>YoranSys/gravitee-management-rest-api
/**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* 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.a... |
al2698/sp | 02-c/02-good/_more/sharp1.c | <gh_stars>0
/* Compile with:
make sizesof CFLAGS="-g -Wall -std=gnu11 -O3"
*/
#include <stdio.h>
#include <math.h>
#define peval(cmd) printf(#cmd ": %g\n", cmd)
// #define pchar(ch) printf("%c\n", #@ch)
#define Setup_list(name, ...) \
double *name ## _list = (double []){__VA_ARGS__,... |
ShaneLee/gowaves | pkg/miner/utxpool/transaction_bulk_validator_test.go | package utxpool
import (
"errors"
"sync"
"testing"
"time"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/require"
"github.com/wavesplatform/gowaves/pkg/proto"
"github.com/wavesplatform/gowaves/pkg/settings"
"github.com/wavesplatform/gowaves/pkg/util/byte_helpers"
"github.com/wavesplatform/gowa... |
ugrupp/kienzler | src/icons/InstagramBold.js | import { Icon } from "@chakra-ui/icons"
import React from "react"
const InstagramBoldIcon = props => {
return (
<Icon viewBox="0 0 15.73 15.73" {...props}>
<g>
<path
fill="none"
stroke="currentColor"
strokeMiterlimit="10"
d="M.5.5h14.73v14.73H.5z"
/>
... |
gorootde/owncloud | environment/owncloud_releases/OC50/apps/files_antivirus/js/settings.js | function av_mode_show_options(str){
if ( str == 'daemon'){
$('p.av_host').show('slow');
$('p.av_port').show('slow');
$('p.av_chunk_size').show('slow');
$('p.av_path').hide('slow');
} else if (str == 'executable'){
$('p.av_host').hide('slow');
$('p.av_port').hide('slow');
$('p.av_chunk_size').hide('slow'... |
levigo/sfntly | src/main/java/org/jadice/font/sfntly/table/opentype/component/SubstLookupRecord.java | <filename>src/main/java/org/jadice/font/sfntly/table/opentype/component/SubstLookupRecord.java
package org.jadice.font.sfntly.table.opentype.component;
import org.jadice.font.sfntly.data.ReadableFontData;
import org.jadice.font.sfntly.data.WritableFontData;
final class SubstLookupRecord implements Record {
static f... |
renato-yuzup/axis-fem | Axis.Physalis/application/factories/collectors/GeneralNodeCollectorParser.hpp | <filename>Axis.Physalis/application/factories/collectors/GeneralNodeCollectorParser.hpp
#pragma once
#include "services/language/parsing/ParseResult.hpp"
#include "services/language/primitives/GeneralExpressionParser.hpp"
#include "services/language/primitives/OrExpressionParser.hpp"
#include "services/language/primiti... |
SamGG/mev | source/org/tigr/microarray/mev/gaggle/GooseImpl.java | <reponame>SamGG/mev<filename>source/org/tigr/microarray/mev/gaggle/GooseImpl.java
package org.tigr.microarray.mev.gaggle;
import java.rmi.RemoteException;
import java.util.List;
import java.util.Vector;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import org.systemsbiology.gaggle.core.*;
impo... |
coderZsq/coderZsq.maven.java | study-notes/j2ee-collection/java-web/03-JDBC/src/com/coderZsq/_13_smis/dao/impl/StudentDAOImpl.java | <gh_stars>1-10
package com.coderZsq._13_smis.dao.impl;
import com.coderZsq._13_smis.dao.IStudentDAO;
import com.coderZsq._13_smis.domain.Student;
import com.coderZsq._13_smis.handler.BeanHandler;
import com.coderZsq._13_smis.handler.BeanListHandler;
import com.coderZsq._13_smis.util.JdbcTemplate;
import java.util.Lis... |
sPHENIX-Test/sPHENIX-Test | doxygen/d8/d72/classTpcPrototypeUnpacker_1_1ChannelHeader.js | <filename>doxygen/d8/d72/classTpcPrototypeUnpacker_1_1ChannelHeader.js
var classTpcPrototypeUnpacker_1_1ChannelHeader =
[
[ "ChannelHeader", "d8/d72/classTpcPrototypeUnpacker_1_1ChannelHeader.html#a221a6207029b18226664b2cbd570d459", null ],
[ "bx_counter", "d8/d72/classTpcPrototypeUnpacker_1_1ChannelHeader.html... |
sytanta/gatsbystitch | src/components/product/recommendation.js | import React from "react"
import styled from "styled-components"
import { breakpoints } from "../../theme"
const Container = styled.section`
clear: both;
margin: 4em auto;
padding-left: 45px;
padding-right: 45px;
width: 100%;
.container {
padding-left: 0;
padding-right: 0;
}
h3 {
font-si... |
frankbezema/argos-parent | argos-service/src/main/java/com/rabobank/argos/service/security/LogContextHelper.java | <filename>argos-service/src/main/java/com/rabobank/argos/service/security/LogContextHelper.java<gh_stars>0
/*
* Copyright (C) 2019 - 2020 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the Lice... |
uk-gov-mirror/ministryofjustice.cla_public | cla_public/apps/checker/fields.py | <filename>cla_public/apps/checker/fields.py
# coding: utf-8
"Custom form fields"
from collections import defaultdict, namedtuple
import itertools
import re
from flask import session
from flask.ext.babel import lazy_gettext as _
from wtforms import Form as NoCsrfForm, Label
from wtforms import FormField, IntegerField,... |
ucdavis/uccsc-mobile | Components/Styles/ScheduleSectionHeaderStyle.js | import { StyleSheet } from 'react-native';
import { Colors, Fonts, Metrics } from '../../Themes/';
export default StyleSheet.create({
sectionHeaderContainer: {
flex: 1,
paddingTop: Metrics.baseMargin,
paddingBottom: Metrics.baseMargin,
backgroundColor: Colors.blue,
borderColor: 'rgba(253,229,255,... |
tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | XFree86-3.3/xc/programs/xkbcomp/xkbcomp.c | <filename>XFree86-3.3/xc/programs/xkbcomp/xkbcomp.c
/* $XConsortium: xkbcomp.c /main/12 1996/12/27 21:17:23 kaleb $ */
/* $XFree86: xc/programs/xkbcomp/xkbcomp.c,v 3.8 1997/01/27 07:00:20 dawes Exp $ */
/************************************************************
Copyright (c) 1994 by Silicon Graphics Computer System... |
sobomax/microsippy | platforms/freertos/esp8266/usipy_port/byteorder.h | <gh_stars>10-100
#include <lwip/def.h>
#ifndef BYTE_ORDER
#error BYTE_ORER is unknown
#endif
#if BYTE_ORDER == LITTLE_ENDIAN
#define USIPY_BIGENDIAN 0
#else
#define USIPY_BIGENDIAN 1
#endif
|
ajs6f/trellis | core/http/src/test/java/org/trellisldp/http/AbstractTrellisHttpResourceTest.java | /*
* 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 writing, software
* distribut... |
atum-martin/atum-jvcp | atum-jvcp/src/main/java/org/atum/jvcp/net/codec/cccam/io/CCcamPacketSender.java | package org.atum.jvcp.net.codec.cccam.io;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelFutureListener;
import org.apache.log4j.Logger;
import org.atum.jvcp.model.Card;
import org.atum.jvcp.model.EcmRequest;
import org.... |
sullis/mockserver | mockserver-core/src/main/java/org/mockserver/model/Not.java | package org.mockserver.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.Objects;
/**
* @author jamesdbloom
*/
public class Not extends ObjectWithJsonToString {
private int hashCode;
Boolean not;
public static <T extends Not> T not(T t) {
t.not = true;
return ... |
stetre/moonfonts | src/fonts/stb_font_times_bold_14_latin1.inl | // Font generated by stb_font_inl_generator.c (4/1 bpp)
//
// Following instructions show how to use the only included font, whatever it is, in
// a generic way so you can replace it with any other font by changing the include.
// To use multiple fonts, replace STB_SOMEFONT_* below with STB_FONT_times_bold_14_latin... |
libremoney/main | Lm/Modules/Peers/Peers.js | <reponame>libremoney/main
/**!
* LibreMoney Peers 0.2
* Copyright (c) LibreMoney Team <<EMAIL>>
* CC0 license
*/
if (typeof module !== "undefined") {
var Constants = require(__dirname + '/../../Constants');
var Convert = require(__dirname + '/../../Util/Convert');
var Core = require(__dirname + '/../Core');
va... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.