repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
tzuyangliu/Xcode9-Runtime-Headers
IDEKit/IDEAppEnergyGraph.h
<filename>IDEKit/IDEAppEnergyGraph.h // // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import <IDEKit/IDEBarGraph.h> @interface IDEAppEnergyGraph : IDEBarGraph { BOOL _hasOSXAppNapGuida...
mmk-code/blender
source/blender/makesrna/intern/rna_mesh.c
/* * 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 Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be use...
gmlueck/llvm-test-suite
SYCL/ESIMD/reduction.cpp
//==---------------- reduction.cpp - DPC++ ESIMD on-device test //------------==// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===------------------------...
joseabelramirezfrontany/forkify
node_modules/@parcel/transformer-typescript-types/lib/TSModuleGraph.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TSModuleGraph = void 0; var _nullthrows = _interopRequireDefault(require("nullthrows")); var _assert = _interopRequireDefault(require("assert")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { defau...
T-head-Semi/csi-nn2
tests/validation/batch_norm_i8.c
/* * Copyright (C) 2016-2022 T-Head Semiconductor Co., Ltd. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * 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 * * www.apache....
taolinqu/ds4p
DS4P/consent2share/core/src/test/java/gov/samhsa/consent2share/service/account/AccountVerificationServiceImplTest.java
package gov.samhsa.consent2share.service.account; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; import javax.mail.MessagingException; import gov.samhsa.consent2share.domain.account.EmailToken; impo...
mP1/walkingkooka-net
src/test/java/walkingkooka/net/http/HttpStatusTest.java
<reponame>mP1/walkingkooka-net /* * Copyright 2019 <NAME> (github.com/mP1) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unle...
vipcxj/beanknife
beanknife-core-base/src/test/resources/io/github/vipcxj/beanknife/cases/beans/AnnotationBeanView.java
<reponame>vipcxj/beanknife package io.github.vipcxj.beanknife.cases.beans; import io.github.vipcxj.beanknife.cases.annotations.DocumentedTypeAnnotation; import io.github.vipcxj.beanknife.cases.annotations.FieldAnnotation1; import io.github.vipcxj.beanknife.cases.annotations.FieldAnnotation2; import io.github.vipcxj.be...
godcong/leetcode
code/0132.minCut.go
<reponame>godcong/leetcode<gh_stars>1-10 package code import "math" /* 132. 分割回文串 II 给你一个字符串 s,请你将 s 分割成一些子串,使每个子串都是回文。 返回符合要求的 最少分割次数 。 示例 1: 输入:s = "aab" 输出:1 解释:只需一次分割就可将 s 分割成 ["aa","b"] 这样两个回文子串。 示例 2: 输入:s = "a" 输出:0 示例 3: 输入:s = "ab" 输出:1 提示: 1 <= s.length <= 2000 s 仅由小写英文字母组成 */ func min...
Lokiy/XParser
xparser/src/main/java/com/lokiy/x/db/DBEntryMap.java
/** * Copyright (C) 2014 Luki(<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 * * Unless required by applicable law or ag...
bingchunjin/1806_SDK
linux-4.14.90-dev/linux-4.14.90/drivers/mmc/host/omap_hsmmc.c
<gh_stars>1-10 /* * drivers/mmc/host/omap_hsmmc.c * * Driver for OMAP2430/3430 MMC controller. * * Copyright (C) 2007 Texas Instruments. * * Authors: * <NAME> <<EMAIL>> * Madhusudhan <<EMAIL>> * <NAME> <<EMAIL>> * * This file is licensed under the terms of the GNU General Public License * version 2. This...
nokia-wroclaw/innovativeproject-check-room
frontend/src/components/NavBar/Google/MyGoogleLogout.js
import React, { useContext } from 'react'; import PropTypes from 'prop-types'; import { GoogleLogout } from 'react-google-login'; import { constants } from '../../../assets/configs/constants'; import BackendContext from '../../../services/communication/BackendContext'; const MyGoogleLogout = ( { render } ) => { con...
Nike-Inc/knockoff-factory
tests/knockoff/sdk/test_blueprint.py
<reponame>Nike-Inc/knockoff-factory<filename>tests/knockoff/sdk/test_blueprint.py # Copyright 2021-present, Nike, Inc. # All rights reserved. # # This source code is licensed under the Apache-2.0 license found in # the LICENSE file in the root directory of this source tree. from mock import MagicMock from knockoff....
DavidBerdik/dictances
tests/utils/__init__.py
from .compare_metrics import compare_metrics from .bhattacharyya_reference import bhattacharyya_distance from .chi_square_reference import chi_square_distance from .jensen_shannon_divergence import jensen_shannon_divergence from .normal_chi_square_reference import normal_chi_square_distance __all__ = ["compare_metrics...
sourcecodeexamples/ecommerce-spring-reactjs
src/main/java/com/gmail/merikbest2015/ecommerce/service/OrderService.java
<filename>src/main/java/com/gmail/merikbest2015/ecommerce/service/OrderService.java package com.gmail.merikbest2015.ecommerce.service; import com.gmail.merikbest2015.ecommerce.domain.Order; import com.gmail.merikbest2015.ecommerce.domain.User; import com.gmail.merikbest2015.ecommerce.service.Impl.OrderServiceImpl; im...
atlarge-research/opencraft
src/test/java/science/atlarge/opencraft/opencraft/net/codec/play/game/UnloadChunkCodecTest.java
<reponame>atlarge-research/opencraft package science.atlarge.opencraft.opencraft.net.codec.play.game; import com.flowpowered.network.Codec; import science.atlarge.opencraft.opencraft.net.codec.CodecTest; import science.atlarge.opencraft.opencraft.net.message.play.game.UnloadChunkMessage; public class UnloadChunkCodec...
priojeetpriyom/competitive-programming
PRE CODE/order statistics tree using bit.cpp
// C++ program to find rank of an element // and k-th smallest element. #include <bits/stdc++.h> using namespace std; const int MAX_VAL = 1000001; /* Updates element at index 'i' of BIT. */ void update(int i, int add, vector<int>& BIT) { while (i > 0 && i < BIT.size()) { BIT[i] += add; i = i ...
djxf/CampusAssi
app/src/main/java/cn/nicolite/huthelper/network/api/ElectricAPI.java
package cn.nicolite.huthelper.network.api; import cn.nicolite.huthelper.model.bean.Electric; import io.reactivex.Observable; import retrofit2.http.GET; import retrofit2.http.Path; /** * 电费API接口 * Created by nicolite on 17-10-31. * Observable Rxjava形式 */ public interface ElectricAPI { @GET("/api/v3/get/power_...
yiyi7817/dacia-commons
src/main/java/org/gensis0/lib/dacia/commons/data/database/DatabaseConnection.java
<gh_stars>0 package org.gensis0.lib.dacia.commons.data.database; import org.gensis0.lib.dacia.commons.data.connection.DACIADataConnection; public class DatabaseConnection implements DACIADataConnection { @Override public String getPath() { // TODO Auto-generated method stub return null; } }
Franckyi/IBE-Editor
gameadapter-fabric/src/main/java/com/github/franckyi/gameadapter/fabric/common/IFabricStyle.java
package com.github.franckyi.gameadapter.fabric.common; import com.github.franckyi.gameadapter.api.internal.IStyle; import net.minecraft.text.Style; public interface IFabricStyle extends IStyle { Style withUnderlineCommon(Boolean underlined); Style withStrikethrough(Boolean strikethrough); Style withObfus...
akai10tsuki/vsutillib
vsutillib/vsutillib-pyqt6/vsutillib/pyqt6/classes/QFileListWidget.py
""" Sub-class of QTextEdit accepts drag and drop """ import logging from pathlib import Path from natsort import natsorted, ns #from PySide2.QtCore import Slot, Signal #from PySide2.QtWidgets import QMenu from PySide6.QtCore import Slot, Signal from PySide6.QtWidgets import QMenu from .QOutputTextWidget import QOu...
goodix/amazon-freertos
vendors/goodix/GR551x_SDK_V1_00/components/libraries/app_queue/app_queue.h
<filename>vendors/goodix/GR551x_SDK_V1_00/components/libraries/app_queue/app_queue.h /** ***************************************************************************************** * * @file app_queue.h * * @brief Header file - APP QUEUE APIs * *********************************************************************...
bossenti/incubator-streampipes-extensions
streampipes-processors-pattern-detection-flink/src/main/java/org/apache/streampipes/processors/pattern/detection/flink/processor/and/AndParameters.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 may ...
mtoquinn/Hike-Five
validation/matchData.js
<reponame>mtoquinn/Hike-Five const Validator = require('validator'); const isEmpty = require('./is-empty'); module.exports = function validateMatchInput(data) { let errors = {}; if (Validator.isEmpty(data.skillMin)) { errors.skillMin = 'Skill Min field is required'; } if (Validator.equals(data.skillMin, ...
OctopusLian/kaikeba-courses
C/2-math-calcul/volume.c
<filename>C/2-math-calcul/volume.c //计算球的大致体积 #include <stdio.h> #include <math.h> #define PI 3.14 int main() { double radius; radius = 12.0; printf("%g",4.0 / 3 * PI * pow(radius,3)); return 0; }
Glease/Railcraft
src/main/java/mods/railcraft/common/util/sounds/SoundHelper.java
/* * Copyright (c) CovertJaguar, 2014 http://railcraft.info * * This code is the property of CovertJaguar * and may only be used with explicit written * permission unless otherwise specified on the * license page at http://railcraft.info/wiki/info:license. */ package mods.railcraft.common.util.sounds; import ...
jackh001/Aspose
Examples/src/main/java/com/aspose/pdf/examples/AsposePdfExamples/Text/ReplaceOnlyFirstOccurrenceOfThePhrase.java
<gh_stars>10-100 package com.aspose.pdf.examples.AsposePdfExamples.Text; import com.aspose.pdf.Color; import com.aspose.pdf.Document; import com.aspose.pdf.FontRepository; import com.aspose.pdf.TextFragment; import com.aspose.pdf.TextFragmentAbsorber; import com.aspose.pdf.TextFragmentCollection; public class Replace...
qbox/drone
yaml/transform/filter.go
<reponame>qbox/drone package transform import ( "github.com/drone/drone/model" "github.com/drone/drone/yaml" ) // ChangeFilter is a transform function that alters status constraints set to // change and replaces with the opposite of the prior status. func ChangeFilter(conf *yaml.Config, prev string) { for _, step ...
ricardolopezb/tp-prog-gpo6-FINAL
test/de/fhpotsdam/utils/InteractiveCentroidTestApp.java
package de.fhpotsdam.utils; import java.util.ArrayList; import java.util.Collections; import java.util.List; import processing.core.PApplet; import processing.core.PVector; import de.fhpotsdam.unfolding.UnfoldingMap; import de.fhpotsdam.unfolding.geo.Location; import de.fhpotsdam.unfolding.utils.GeoUtils; import de.f...
bear1704/DX11_Portfolio
include/maxsdk/Rendering/Renderer.h
////////////////////////////////////////////////////////////////////////////// // // Copyright 2015 Autodesk, Inc. All rights reserved. // // Use of this software is subject to the terms of the Autodesk license // agreement provided at the time of installation or download, or which // otherwise accompanies this ...
UW-MAGIC-lab/hidden_village
src/components/Settings.js
<gh_stars>0 const Settings = () => { return <div>You made it to the setting page!</div>; }; export default Settings;
fabric8io/fabric8-declarative-pipeline-step-functions
src/main/java/io/fabric8/pipeline/steps/PromoteImages.java
/** * Copyright (C) Original Authors 2017 * * 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...
Alexey-N-Chernyshov/cpp-libp2p
include/libp2p/peer/protocol_repository/inmem_protocol_repository.hpp
/** * Copyright Soramitsu Co., Ltd. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ #ifndef LIBP2P_INMEM_PROTOCOL_REPOSITORY_HPP #define LIBP2P_INMEM_PROTOCOL_REPOSITORY_HPP #include <set> #include <unordered_map> #include <libp2p/peer/protocol_repository.hpp> namespace libp2p::peer { /** * @...
iamzken/aliyun-openapi-cpp-sdk
dypnsapi/src/model/TwiceTelVerifyResult.cc
<gh_stars>10-100 /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * ...
riteshiosdev/iOS-UIKit
Chat/ChatSecure-iOS-master/ChatSecure/Strings/Strings.h
#import "OTRLanguageManager.h" // DO NOT EDIT THIS FILE. EDIT strings.json then run python StringsConverter.py #define errSSLCryptoString [OTRLanguageManager translatedString: @"Underlying cryptographic error"] #define OFFLINE_STRING [OTRLanguageManager translatedString: @"Offline"] #define ERROR_STRING [OTRLanguageM...
psiha/nt2
modules/boost/simd/base/unit/arithmetic/simd/fast_rsqrt.cpp
<gh_stars>10-100 //============================================================================== // Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II // Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI // // Distributed under the Boost Software License, Version 1.0. ...
hraada/kartchamp
src/main/webapp/js/lib/angular-1.0.3/angular-resource.min.js
<reponame>hraada/kartchamp /* AngularJS v1.0.3 (c) 2010-2012 Google, Inc. http://angularjs.org License: MIT */ (function (A, e, w) { 'use strict'; e.module("ngResource", ["ng"]).factory("$resource", ["$http", "$parse", function (x, y) { function k(a, f) { return encodeURIComponent(a).rep...
Robotia/ExtraUtilities
ExtraUtilitiesBuilder/src/main/java/invtweaks/api/IItemTree.java
// // ExtraUtilities decompiled and fixed by Robotia https://github.com/Robotia // package invtweaks.api; import java.util.Random; import java.util.Collection; import java.util.List; public interface IItemTree { void registerOre(final String p0, final String p1, final String p2, final int p3); boolean...
kldavis4/xstream
xstream/src/test/com/thoughtworks/acceptance/LambdaTest.java
<filename>xstream/src/test/com/thoughtworks/acceptance/LambdaTest.java<gh_stars>10-100 /* * Copyright (C) 2014, 2015 XStream Committers. * All rights reserved. * * The software in this package is published under the terms of the BSD * style license a copy of which has been included with this distribution in * the...
ruslanvolov6667/ID
vkapi/api.py
import requests import enum import json import os from .exceptions import * import logging class Mode(enum.Enum): POST = "POST" GET = "GET" class VkApi(object): Mode: Mode mode: Mode access_token: str version: str lang: str raise_excepts: bool api_url = "https://api.vk.com/m...
MasterOogwayis/spring
base/base-logging/src/main/java/com/zsw/log/catchlog/CatchLogAspect.java
<reponame>MasterOogwayis/spring package com.zsw.log.catchlog; import com.zsw.utils.JacksonUtils; import lombok.extern.slf4j.Slf4j; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.annotation.Around; import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Pointcut; /** * @aut...
nvpnathan/pulumi-nsxt
sdk/go/nsxt/policyVlanSegment.go
// *** 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 nsxt import ( "reflect" "github.com/pkg/errors" "github.com/pulumi/pulumi/sdk/v2/go/pulumi" ) type PolicyVlanSegment struct { pulumi....
geometryzen/davinci-eight
build/module/lib/visual/ArrowFH.js
import { Color } from '../core/Color'; import { Geometric3 } from '../math/Geometric3'; import { normVectorE3 } from '../math/normVectorE3'; import { ArrowHead } from './ArrowHead'; import { ArrowTail } from './ArrowTail'; /** * An arrow with a fixed head and variable length. */ var ArrowFH = /** @class */ (function ...
DanIverson/OpenVnmrJ
src/ib/i_mod.c
<filename>src/ib/i_mod.c /* * Copyright (C) 2015 University of Oregon * * You may distribute under the terms of either the GNU General Public * License or the Apache License, as specified in the LICENSE file. * * For more information, see the LICENSE file. */ #include "f2c.h" #ifdef KR_headers integer i_mod(a,...
cosailer/mass_storage_device
LUFA/Documentation/html/struct_r_n_d_i_s___message___header__t.js
<reponame>cosailer/mass_storage_device<gh_stars>0 var struct_r_n_d_i_s___message___header__t = [ [ "MessageLength", "struct_r_n_d_i_s___message___header__t.html#a71397e19c56f9744cba3b25e3221c5e8", null ], [ "MessageType", "struct_r_n_d_i_s___message___header__t.html#a284087f944d8d23ffbcf34b530e32752", null ] ];
liorisraeli87/fbthrift
thrift/compiler/test/fixtures/types/gen-cpp2/module_fatal.h
/** * Autogenerated by Thrift for src/module.thrift * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ #pragma once #include <thrift/lib/cpp2/reflection/reflection.h> #include <fatal/type/list.h> #include <fatal/type/pair.h> #include <fatal/type/sequence.h> #include "thrift/co...
jainsakshi2395/linux
tools/testing/selftests/powerpc/mm/stack_expansion_ldst.c
// SPDX-License-Identifier: GPL-2.0 /* * Test that loads/stores expand the stack segment, or trigger a SEGV, in * various conditions. * * Based on test code by <NAME>. */ #undef NDEBUG #include <assert.h> #include <err.h> #include <errno.h> #include <stdio.h> #include <signal.h> #include <stdlib.h> #include <str...
Nefla/the-pod
app/helpers/shuffle-date.js
<reponame>Nefla/the-pod<filename>app/helpers/shuffle-date.js<gh_stars>1-10 import DaySort from '../constants/DaySort' function shuffleDate(){ return randomDate(DaySort.OLDEST, DaySort.NEWEST) } // Taken from stackoverflow user tomasz: // http://stackoverflow.com/a/9035732/6598709 function randomDate(start, end) { ...
databeast/apicore
apiv2-streamsrv/rtmp/protocol/packet_on_status_call.go
package protocol // OnStatusCallPacket onStatus command, AMF0 Call // user must set the stream id type OnStatusCallPacket struct { // CommandName Name of command. Set to "onStatus" CommandName string // TransactionID set to 0 TransactionID float64 // Args Command information does not exist. Set to null type. A...
alexeev/jboss-fuse-mirror
sandbox/fabric-monitor/src/main/scala/org/fusesource/fabric/monitor/internal/PropertiesFilter.scala
/* * Copyright (C) FuseSource, Inc. * http://fusesource.com * * 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 ...
ChristopherDurand/Exercises
ruby/small-problems/easy3/e06.rb
def xor?(a, b) (a && !b) || (b && !a) end puts xor?(true, true) puts xor?(true, false) puts xor?(false, true) puts xor?(false, false)
fspace/go-playground
advexamples/iocookbook/internal/usingreader/directly-using-io-reader.go
<reponame>fspace/go-playground package usingreader import ( "fmt" "io" "log" "strings" ) func Main() { reader := strings.NewReader("this is the stuff I'm reading") var result []byte buf := make([]byte, 4) for { n, err := reader.Read(buf) result = append(result, buf[:n]...) if err != nil { if err == i...
otymko/phoenixbsl
src/main/java/com/github/otymko/phoenixbsl/logic/PhoenixContext.java
<reponame>otymko/phoenixbsl<filename>src/main/java/com/github/otymko/phoenixbsl/logic/PhoenixContext.java package com.github.otymko.phoenixbsl.logic; import com.fasterxml.jackson.databind.ObjectMapper; import com.github.otymko.phoenixbsl.PhoenixCore; import com.github.otymko.phoenixbsl.model.Configuration; import lomb...
JLLeitschuh/book
src/main/java/com/tamingtext/classifier/maxent/CategoryDataStream.java
<reponame>JLLeitschuh/book /* * Copyright 2008-2011 <NAME>, <NAME> and <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE...
ismo-karkkainen/datalackey
src/RawData.cpp
// // RawData.cpp // datalackey // // Created by <NAME> on 24.7.17. // Copyright © 2017 <NAME>. All rights reserved. // // Licensed under Universal Permissive License. See License.txt. #include "RawData.hpp" void RawData::Clear(bool LikelyUnused) { if (LikelyUnused) { std::vector<char> empty; ...
dzeban/java-exercises
ToString.java
class ToString { public static final String a = new Integer(123).toString(); }
sdee3/laravel-react-blog-starter
resources/js/pages/home/index.js
<filename>resources/js/pages/home/index.js import React from 'react'; export default function Home() { return ( <section className="home-page container"> <h1>MySite</h1> <h2>Homepage</h2> <img className="cards" src="http://pngimg.com/uploads/cards/cards_PNG8490.png" /> </section> ); }
yu1hpa/ctf-writeups
2021/redpwn/ret2generic-flag-reader/solve.py
from pwn import * #io = process("./ret2generic-flag-reader") io = remote('mc.ax', 31077) payload = b"" payload += b"A"*32 + b"B"*8 payload += p64(0x00000000004011f6) io.sendlineafter("what do you think?", payload) io.interactive()
cloudwebrtc/sys
sys-account/service/go/delivery/account_delivery.go
package delivery import ( "context" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" "github.com/getcouragenow/sys-share/pkg" "github.com/getcouragenow/sys/sys-account/service/go/dao" "github.com/getcouragenow/sys/sys-account/service/go/pkg/auth" coredb "github.com/getcouragenow/sys/sys-core/serv...
lechium/tvOS135Headers
System/Library/PrivateFrameworks/CoreRC.framework/CoreRCXPCServiceCEC.h
<gh_stars>1-10 /* * This header is generated by classdump-dyld 1.0 * on Sunday, June 7, 2020 at 11:43:24 AM Mountain Standard Time * Operating System: Version 13.4.5 (Build 17L562) * Image Source: /System/Library/PrivateFrameworks/CoreRC.framework/CoreRC * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 b...
hiiq/shared-react-components-example
packages/molecules/flow-typed/PackageTypes/UtilsTypes/models/NavGraph.js
// @flow declare type ModelizedGraphNavSerieType = [number, number]; // Bad naming convention due to legacy declare type ModelizedGraphNavType = { navData: ModelizedGraphNavSerieType[], currency: string, disclaimers: ModelizedNavGraphDisclaimersType, hideNavGraph: boolean, }; declare type NavGraphModelizerTy...
camment/sdk-ios
CammentSDK/Classes/Core/Models/CMUserRemovedMessageBuilder.h
#import <Foundation/Foundation.h> @class CMUserRemovedMessage; @class CMUser; @interface CMUserRemovedMessageBuilder : NSObject + (instancetype)userRemovedMessage; + (instancetype)userRemovedMessageFromExistingUserRemovedMessage:(CMUserRemovedMessage *)existingUserRemovedMessage; - (CMUserRemovedMessage *)build; ...
dmenneck/campus-map
src/components/RoomLayerThree.js
<reponame>dmenneck/campus-map import React, { useContext, useEffect } from "react"; import { AppContext } from "./AppContext"; import roomsThree from "../data/geoData/roomsThree.geojson"; import GeoJSON from "ol/format/GeoJSON"; let dataThree = ""; async function fetchDataThree() { const response = await fetch(roo...
IIyass/Portfolio
src/pages/blog.js
import React from "react" import Layout from "../components/layout" import Blogs from "../components/Blog" const Blog = (props) => { return ( <Layout path={props.location.pathname}> <Blogs /> </Layout> ) } export default Blog
cloudera/altus-sdk-java
src/test/java/com/cloudera/altus/authentication/credentials/AltusProfileCredentialsProviderTest.java
<filename>src/test/java/com/cloudera/altus/authentication/credentials/AltusProfileCredentialsProviderTest.java /* * Copyright (c) 2018 Cloudera, Inc. All Rights Reserved. * * Portions Copyright (c) Copyright 2013-2018 Amazon.com, Inc. or its * affiliates. All Rights Reserved. * * Licensed under the Apache License...
WojciechKusa/datasets
datasets/wmt20_mlqe_task2/wmt20_mlqe_task2.py
# coding=utf-8 # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor. # # 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/lice...
felipelcaetano/tem-wifi-backend
src/main/java/br/com/temwifi/domains/infra/controller/AwsApiRestHandler.java
<reponame>felipelcaetano/tem-wifi-backend package br.com.temwifi.domains.infra.controller; import br.com.temwifi.domains.infra.model.request.AwsHttpContext; import br.com.temwifi.domains.infra.utils.exception.HttpException; public interface AwsApiRestHandler<I, O> { /** * Main method of each Aws Controller ...
matoruru/purescript-react-material-ui-svgicon
src/MaterialUI/SVGIcon/Icon/DoneOutlineRounded.js
exports.doneOutlineRoundedImpl = require('@material-ui/icons/DoneOutlineRounded').default;
Code4HR/okcandidate-platform
config/dev-fixtures/survey-result-fixtures.js
'use strict'; const surveyResults = [ { id: 1, publicPassPhrase: '<PASSWORD>', privatePassPhrase: '<PASSWORD>', SurveyId: 1, CandidateId: 1 }, { id: 2, publicPassPhrase: '<PASSWORD>', privatePassPhrase: '<PASSWORD>', SurveyId: 2, ...
st-user/zerodep-web-push-java
src/main/java/com/zerodeplibs/webpush/key/ECPublicKeyUtil.java
<reponame>st-user/zerodep-web-push-java package com.zerodeplibs.webpush.key; import java.math.BigInteger; import java.security.interfaces.ECPublicKey; import java.security.spec.ECField; import java.security.spec.ECFieldFp; import java.security.spec.ECParameterSpec; import java.security.spec.ECPoint; import java.util.B...
tmikov/c99
tests/parser/crash1.c
int x;;
sbooeshaghi/bcl2fastq
src/cxx/lib/common/CsvGrammar.cpp
/** * BCL to FASTQ file converter * Copyright (c) 2007-2017 Illumina, Inc. * * This software is covered by the accompanying EULA * and certain third party copyright/licenses, and any user of this * source file is bound by the terms therein. * * \file CsvGrammar.cpp * * \brief Basic CSV grammar. * * \author ...
sakusimu/mh-skillsimu
benchmarks/util/timer.js
<gh_stars>1-10 'use strict'; class Timer { constructor(simu) { if (simu == null) throw new Error('simu is required'); this.simu = simu; this.records = {}; [ [ 'normalizer', 'normalize' ], [ 'combinator', 'combine' ], [ 'assembler', 'assemble' ] ...
gtaifu/CACTUS
src/1_digital/classical/classical_mem.cpp
<filename>src/1_digital/classical/classical_mem.cpp #include "classical_mem.h" #include "num_util.h" namespace cactus { void Classical_mem::config() { auto logger = get_logger_or_exit("console"); Global_config& global_config = Global_config::get_instance(); m_output_dir = global_config.output_dir; ...
leonardoanalista/java2word
java2word/src/test/java/word/w2004/HeadingStyleTest.java
package word.w2004; import junit.framework.Assert; import org.junit.Test; import word.w2004.style.HeadingStyle; public class HeadingStyleTest extends Assert{ @Test public void sanityTest(){ HeadingStyle style = new HeadingStyle(); assertNotNull(style); } }
katucker/midas
api/controllers/SearchController.js
<filename>api/controllers/SearchController.js /** * SearchController * * @module :: Controller * @description :: Performs search functions for the front end */ var _ = require('underscore'); var async = require('async'); var projUtil = require('../services/utils/project'); var taskUtil = require('../services/uti...
anderjason/util
dist/NumberUtil/_internal/numberWithRangeMap.js
<reponame>anderjason/util "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.numberWithRangeMap = void 0; const numberWithHardLimit_1 = require("./numberWithHardLimit"); function numberWithRangeMap(input, inputLow, inputHigh, outputLow, outputHigh) { const result = ((input - inputL...
anniyanvr/nesta
nesta/core/batchables/nih/nih_dedupe/run.py
""" run.py (nih_dedupe) ------------------- Deduplicate NiH articles based on similarity scores using Elasticsearch's document similarity API. Similarity is calculated based on the description of the project, the project abstract and the title of the project. Funding information is aggregated (summed) across all dedup...
gtfierro/hod
db/transaction.go
package db import ( "container/list" "fmt" sparql "github.com/gtfierro/hod/lang/ast" "github.com/gtfierro/hod/turtle" "github.com/pkg/errors" logrus "github.com/sirupsen/logrus" "github.com/syndtr/goleveldb/leveldb" "time" ) const ( RDF_NAMESPACE = "http://www.w3.org/1999/02/22-rdf-syntax-ns" OWL_NAMESPACE ...
born2net/mediaArduino
dev/node_modules/cylon-firmata/node_modules/cylon-gpio/test/specs/continuous-servo.spec.js
<filename>dev/node_modules/cylon-firmata/node_modules/cylon-gpio/test/specs/continuous-servo.spec.js "use strict"; var ContinuousServo = source("continuous-servo"); describe("ContinuousServo", function() { var driver = new ContinuousServo({ name: 'serv', device: { connection: { servoWrite: spy() }, ...
wainshine/tensorflow
tensorflow/compiler/xla/primitive_util.h
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
valavanisleonidas/Machine_Learning_Toolkit
Utils/Tuning/NeuralNetworks_Tuning.py
import sklearn.cross_validation as cross_val import sys sys.path.append('../../MachineLearning/DeepLearning/Keras') from Keras_test import CNN, MLP def neural_tuning(features_train, labels_train, features_test, labels_test, outputClasses=None, modelType="CNN", ba...
pyranja/pants
src/python/pants/binaries/binary_tool.py
# Copyright 2018 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import logging import os import threading from dataclasses import dataclass from typing import Any, Dict, List, Optional, Tuple, Union, cast from pants.binaries.binary_util import ( B...
lechium/tvOS144Headers
usr/libexec/geod/GEOPlaceDataServer.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 <GeoServices/GEOServer.h> @class NSMutableDictionary; @interface GEOPlaceDataServer : GEOServer { struct os_unfair_lock_s _uuidToRequestLoc...
YufeizhangRay/springboot-practice
springboot14starter/zyf-spring-boot-starter-autoconfigurer/src/main/java/cn/zyf/springboot/starter/HelloServiceAutoConfiguration.java
package cn.zyf.springboot.starter; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.context.annotation.Bean; im...
Pinafore/Karl-flashcards-web-app
backend/app/alembic/versions/b7b8acac9d4f_history_fact_id_should_be_optional.py
"""history fact.id should be optional Revision ID: b7b8acac9d4f Revises: <PASSWORD> Create Date: 2020-06-17 19:31:18.958679 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'b7b8acac9d4f' down_revision = '<PASSWORD>' branch_labels = None depends_on = None def ...
aaronwalsman/ltron
ltron/__init__.py
try: from gym.envs.registration import register gym_available = True except ModuleNotFoundError: gym_available = False # do this once we finalize the envs for the first paper ''' register( id='brick-graph-8-v0', entry_point='brick_gym.envs:TrainRandomStackGraphEnvVec8' ) '''
campusappcn/AndRouter
router/src/debug/java/cn/campusapp/router/DebugActivity.java
package cn.campusapp.router; import android.app.Activity; import android.os.Bundle; public class DebugActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_debug); } }
hpham17/esential
features/step_definitions/web_steps.rb
<reponame>hpham17/esential # TL;DR: YOU SHOULD DELETE THIS FILE # # This file was generated by Cucumber-Rails and is only here to get you a head start # These step definitions are thin wrappers around the Capybara/Webrat API that lets you # visit pages, interact with widgets and make assertions about page content. # # ...
bestseason/ZHData
app/src/main/java/edu/zhdata/android/zhapp/tools/HtmlUtil.java
package edu.zhdata.android.zhapp.tools; /** * Created by pink2 on 2017/3/22. */ import java.util.regex.Matcher; import java.util.regex.Pattern; /** * html处理工具类 * @author huweijun * @date 2016年7月13日 下午7:25:09 */ public class HtmlUtil { /** * 替换指定标签的属性和值 * @param str 需要处理的字符串 * @param tag 标签名...
ste93cry/idea-php-symfony2-plugin
src/test/java/fr/adrienbrault/idea/symfony2plugin/tests/doctrine/querybuilder/QueryBuilderCompletionContributorTest.java
<filename>src/test/java/fr/adrienbrault/idea/symfony2plugin/tests/doctrine/querybuilder/QueryBuilderCompletionContributorTest.java package fr.adrienbrault.idea.symfony2plugin.tests.doctrine.querybuilder; import fr.adrienbrault.idea.symfony2plugin.doctrine.querybuilder.QueryBuilderCompletionContributor; import fr.adrie...
cyberatz/go-choria
broker/network/network_cluster.go
// Copyright (c) 2020-2021, <NAME> and the Choria Project contributors // // SPDX-License-Identifier: Apache-2.0 package network import ( "fmt" gnatsd "github.com/nats-io/nats-server/v2/server" ) func (s *Server) setupCluster() (err error) { peers, err := s.choria.NetworkBrokerPeers() if err != nil { return f...
jacadcaps/webkitty
Source/WebCore/platform/mediastream/mac/ScreenDisplayCapturerMac.h
/* * Copyright (C) 2017-2019 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 conditi...
ark100/multi-os-engine
moe/moe-core/moe.apple/moe.platform.ios/src/main/java/apple/coretelephony/c/CoreTelephony.java
/* Copyright 2014-2016 Intel Corporation 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, s...
candidomorantepelaez/kanbion-back
src/main/java/com/kannoakuma/kanbionback/accounts/api/proxies/impl/AccountProxyImpl.java
<filename>src/main/java/com/kannoakuma/kanbionback/accounts/api/proxies/impl/AccountProxyImpl.java package com.kannoakuma.kanbionback.accounts.api.proxies.impl; import com.kannoakuma.kanbionback.accounts.api.proxies.AccountProxy; import com.kannoakuma.kanbionback.accounts.api.dtos.CreateAccountRequestDto; import com.k...
qeebr/none
none-lwjgl/src/test/java/none/lwjgl/scenes/renderer/TextScene.java
<filename>none-lwjgl/src/test/java/none/lwjgl/scenes/renderer/TextScene.java<gh_stars>0 package none.lwjgl.scenes.renderer; import none.engine.Game; import none.engine.component.Transform; import none.engine.component.common.uuid.UUIDFactory; import none.engine.component.renderer.Renderable; import none.engine.compone...
LoveNek0/UCode-Connect-Marathone
Sprint07/t10/mx_strdel.c
<reponame>LoveNek0/UCode-Connect-Marathone #include <stdlib.h> #include <stddef.h> void mx_strdel(char **str); void mx_strdel(char **str){ if(str == NULL) return; if(*str == NULL) return; free(*str); *str = NULL; }
MewX/contendo-viewer-v1.6.3
org/w3c/dom/svg/SVGSymbolElement.java
<filename>org/w3c/dom/svg/SVGSymbolElement.java package org.w3c.dom.svg; import org.w3c.dom.events.EventTarget; public interface SVGSymbolElement extends EventTarget, SVGElement, SVGExternalResourcesRequired, SVGFitToViewBox, SVGLangSpace, SVGStylable {} /* Location: /mnt/r/ConTenDoViewer.jar!/org/w3c/...
sgholamian/log-aware-clone-detection
LACCPlus/Cloudstack/1368_1.java
<filename>LACCPlus/Cloudstack/1368_1.java //,temp,PaloAltoResource.java,781,863,temp,PaloAltoResource.java,668,771 //,3 public class xxx { public boolean managePublicInterface(ArrayList<IPaloAltoCommand> cmdList, PaloAltoPrimative prim, Long publicVlanTag, String publicIp, long privateVlanTag) throws Execut...
the-frontend-guy/whiz-front
src/components/about-us-banner.js
<reponame>the-frontend-guy/whiz-front<filename>src/components/about-us-banner.js import React from "react" import "./component.css" const AboutUsBanner = ({ data }) => { return ( <section className="bg-black hero"> <div className="content-container m-auto text-center"> <h1 className="section-title ...