repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
abhayanigam/Learn_Python_Programming
matplotlib/doughNut_chart.py
<reponame>abhayanigam/Learn_Python_Programming<filename>matplotlib/doughNut_chart.py<gh_stars>1-10 import numpy as np from matplotlib import pyplot as plt fruit = ['apple','orange','mango','guava'] quatity = [67,34,100,29] plt.pie(quatity,labels = fruit,radius = 1) #radius of outer circle. plt.pie([1],colors = ['w']...
Vadimatorik/googleQt
src/gmail/messages/MessagesRoutes.cpp
/********************************************************** DO NOT EDIT This file was generated from stone specification "messages" Part of "Ardi - the organizer" project. <EMAIL> www.prokarpaty.net ***********************************************************/ #include "gmail/messages/MessagesRoutes.h" #include "E...
HydrologicEngineeringCenter/heclib
heclib/heclib_c/src/Internal/zprintFileInfo.c
#include <stdio.h> #include "heclib7.h" #include "zdssMessages.h" #include "zdssKeys.h" #include "zdssVals.h" #include "hecdssInternal.h" /** * Function: zprintFileInfo * * Use: Semi-Private * * Description: Prints information about a DSS file on closing * * Declaration: void zprintFileInfo(long long *ifltab) ...
sportdb/sport.db
sportdb-readers/test/test_read.rb
<gh_stars>100-1000 # encoding: utf-8 ### # to run use # ruby -I ./lib -I ./test test/test_read.rb require 'helper' class TestRead < MiniTest::Test def test_read SportDb.connect( adapter: 'sqlite3', database: ':memory:' ) SportDb.create_all ## build schema ## turn on logging...
lsds/Crossbow
clib-multigpu/stream.h
#ifndef __CROSSBOW_STREAM_H_ #define __CROSSBOW_STREAM_H_ #include <cuda_runtime.h> #include "cublas_v2.h" #include <cudnn.h> #include <curand.h> #include "device.h" #include "databuffer.h" #include "variable.h" #include "list.h" #include "dataflow.h" #include "operator.h" #include "model.h" #include "recorddataset...
PacktPublishing/Practical-OneOps
Chapter 09/circuit-oneops-1-master/components/cookbooks/cb_cluster/recipes/cluster-repair.rb
<reponame>PacktPublishing/Practical-OneOps<filename>Chapter 09/circuit-oneops-1-master/components/cookbooks/cb_cluster/recipes/cluster-repair.rb Chef::Log.info("couchbase_cluster repair action") include_recipe 'couchbase::base'
KonstantinLeontev/c-lessons
LinkedList/LinkedList.cpp
<filename>LinkedList/LinkedList.cpp #include <cstddef> struct EnemySpaceShip { int x_coord; int y_coord; int weaponPower; EnemySpaceShip* p_nextEnemy; }; EnemySpaceShip* p_enemies = NULL; EnemySpaceShip* getEnemy(void) { EnemySpaceShip *p_ship = new EnemySpaceShip; p_ship->x_coord = 0.0; p_ship->y_coord = 0.0...
kiran-blockchain/comcast-india-go
more-examples/06-variables/02-declarations/exercises/05-undeclarables/solution/main.go
// Copyright © 2018 <NAME> // Learn Go Programming Course // License: https://creativecommons.org/licenses/by-nc-sa/4.0/ // // For more tutorials : https://learngoprogramming.com // In-person training : https://www.linkedin.com/in/inancgumus/ // Follow me on twitter: https://twitter.com/inancgumus package main func...
swordqiu/mcclient_java
src/main/java/com/yunionyun/mcp/mcclient/managers/impl/ActionManager.java
<reponame>swordqiu/mcclient_java package com.yunionyun.mcp.mcclient.managers.impl; import com.yunionyun.mcp.mcclient.EndpointType; import com.yunionyun.mcp.mcclient.managers.BaseLogActionManager; /** * @author zxc * @date 2020/01/17 */ public class ActionManager extends BaseLogActionManager { public ActionManager...
brainvisa/aims-free
aimsalgo/src/aimsalgo/signalfilter/filteringfunction_nonlinear_rgb_d.h
/* Copyright (C) 2000-2013 CEA * * This software and supporting documentation were developed by * bioPICSEL * CEA/DSV/I²BM/MIRCen/LMN, Batiment 61, * 18, route du Panorama * 92265 Fontenay-aux-Roses * France */ #ifndef AIMS_SIGNALFILTER_FILTERINGFUNCTION_NONLINEAR_RGB_D_H #define AIMS_SIGN...
OCLC-Developer-Network/circill-toolkit
service/ncip/src/main/java/org/oclc/circill/toolkit/service/ncip/HoldingsInformation.java
/* * Copyright (c) 2010 eXtensible Catalog Organization. * * This program is free software; you can redistribute it and/or modify it * under the terms of the MIT/X11 license. The text of the license can be * found at http://www.opensource.org/licenses/mit-license.php. */ package org.oclc.circill.toolkit.service...
IPVP-MC/iBase
base/src/main/java/com/doctordark/util/cuboid/NamedCuboid.java
package com.doctordark.util.cuboid; import org.bukkit.Location; import org.bukkit.World; import java.util.Map; /** * Represents a {@link NamedCuboid} for regions that can be given a name. * * @author desht */ public class NamedCuboid extends Cuboid { protected String name; public NamedCuboid(Cuboid oth...
reftel/jetty.project
jetty-websocket/websocket-client/src/main/java/org/eclipse/jetty/websocket/client/WebSocketUpgradeRequest.java
<reponame>reftel/jetty.project // // ======================================================================== // Copyright (c) 1995-2018 Mort Bay Consulting Pty. Ltd. // ------------------------------------------------------------------------ // All rights reserved. This program and the accompanying materials // a...
xiegudong45/typeidea
venv/lib/python3.6/site-packages/django/contrib/gis/geos/prototypes/misc.py
""" This module is for the miscellaneous GEOS routines, particularly the ones that return the area, distance, and length. """ from ctypes import POINTER, c_double, c_int from django.contrib.gis.geos.libgeos import GEOM_PTR, GEOSFuncFactory from django.contrib.gis.geos.prototypes.errcheck import check_dbl, check_stri...
ngageoint/geopackage-core-android
src/main/java/mil/nga/geopackage/extension/metadata/reference/MetadataReferenceDao.java
<gh_stars>0 package mil.nga.geopackage.extension.metadata.reference; import java.sql.SQLException; import java.util.List; import com.j256.ormlite.stmt.DeleteBuilder; import com.j256.ormlite.stmt.PreparedDelete; import com.j256.ormlite.stmt.PreparedUpdate; import com.j256.ormlite.stmt.QueryBuilder; import com.j256.orm...
koichi-murakami/g4python
source/geometry/pyG4EllipticalTube.cc
// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration...
educlong/phpmysqlangularjs
angularJsDemo2/milestone-120/angular/app/scripts/controllers/upload.js
<reponame>educlong/phpmysqlangularjs 'use strict'; function uploadCtrl(FileUploader) { var vm = this; var uploader = vm.uploader = new FileUploader({ url: 'scripts/upload.php' }); // FILTERS uploader.filters.push({ name: 'customFilter', fn: function(item /*{File|FileLikeObject}*/ , options) { ...
vol4tim/DAO-IPCI
dapp/src/modules/holder/reducer.js
import _ from 'lodash' import { LOAD_MODULE, CALL_FUNC } from './actionTypes' const initialState = { modules: [ // { // address: '0x697b0ac5112a9eace5164e9a76b1e629ded5a990', // token: '0x697b0ac5112a9eace5164e9a76b1e629ded5a990', // holdDuration: 3600 // } ] } export default function ho...
24apurv/gym-management-java
src/com/mail/EmailUtil.java
<reponame>24apurv/gym-management-java<filename>src/com/mail/EmailUtil.java package com.mail; import java.util.Date; import java.util.logging.Level; import java.util.logging.Logger; import javax.activation.DataHandler; import javax.activation.DataSource; import javax.activation.FileDataSource; import javax.mail.BodyPa...
jupsal/schmies-jTEM
libUnzipped/de/jtem/mfc/matrix/AbstractComplex2By2.java
/** This file is part of a jTEM project. All jTEM projects are licensed under the FreeBSD license or 2-clause BSD license (see http://www.opensource.org/licenses/bsd-license.php). Copyright (c) 2002-2009, Technische Universität Berlin, jTEM All rights reserved. Redistribution and use in source and binary forms, wit...
IbexOmega/CrazyCanvas
CrazyCanvas/Include/ECS/Systems/Player/WeaponSystem.h
#pragma once #include "ECS/System.h" #include "ECS/Components/Player/ProjectileComponent.h" #include "ECS/Components/Player/WeaponComponent.h" #include "Game/ECS/Components/Team/TeamComponent.h" #include "ECS/Components/Multiplayer/PacketComponent.h" #include "Game/ECS/Components/Rendering/ParticleEmitter.h" #include ...
greensoftwarelab/PyAnaDroid
anadroid/testing_framework/work/MonkeyRunnerWorkUnit.py
from anadroid.testing_framework.work.WorkUnit import WorkUnit from anadroid.utils.Utils import execute_shell_command RUNNER_OPTIONS = { 'plugin' } def convert_arg(key,val): if key in RUNNER_OPTIONS: return "-" + key + " " + val else: return "-" + key + " " + val class MonkeyRunnerWorkUn...
huangjinping/test111
HDJFKJ/HDJFKJ/HDAccessToken.h
#import <Foundation/Foundation.h> @interface HDAccessToken : NSObject @property (nonatomic, strong) NSString * phone; @property (nonatomic, strong) NSString * nhAccessToken; @end
ricbartm/homebrew-core
Formula/wesnoth.rb
<filename>Formula/wesnoth.rb class Wesnoth < Formula desc "Single- and multi-player turn-based strategy game" homepage "https://www.wesnoth.org/" url "https://downloads.sourceforge.net/project/wesnoth/wesnoth-1.12/wesnoth-1.12.6/wesnoth-1.12.6.tar.bz2" sha256 "a50f384cead15f68f31cfa1a311e76a12098428702cb674d352...
ESRLLC/datacompliances-fe
app/containers/UserDashboard/containers/PackageList/Cart/saga.js
<filename>app/containers/UserDashboard/containers/PackageList/Cart/saga.js import { take, takeLatest, call, put, select, fork, cancel, } from 'redux-saga/effects'; import { LOCATION_CHANGE, push } from 'react-router-redux'; import * as types from './constants'; import * as actions from './actions'; import...
rileybathurst/snowledge
src/components/square.js
<reponame>rileybathurst/snowledge import React from 'react'; // click on stuff from react docs // needs an off as well but this is a start with on class Square extends React.Component { constructor(props) { super(props); this.state = { value: null, }; } // constructor ...
maallen/mojito
webapp/src/main/resources/public/js/stores/ScreenshotViewerStore.js
<reponame>maallen/mojito class ScreenshotViewerStore { constructor() { this.setDefaultState(); } setDefaultState() { this.show = false; this.src = null; this.number = 0; this.total = 0; this.branchStatisticScreenshots = []; this.textUnits = []; }...
mturlo/op-rabbit
core/src/test/scala/com/spingo/op_rabbit/subscriptionSpec.scala
<reponame>mturlo/op-rabbit package com.spingo.op_rabbit import com.spingo.scoped_fixtures.ScopedFixtures import com.spingo.op_rabbit.helpers.RabbitTestHelpers import org.scalatest.funspec.AnyFunSpec import org.scalatest.matchers.should.Matchers import scala.concurrent.ExecutionContext import scala.util.{Failure, Try}...
Jeremyyang920/datadog-agent
pkg/process/procutil/process_posix_test.go
<filename>pkg/process/procutil/process_posix_test.go // +build linux freebsd openbsd darwin package procutil import ( "os" "testing" "github.com/stretchr/testify/require" ) func TestPidExists(t *testing.T) { require.True(t, PidExists(os.Getpid())) require.False(t, PidExists(0xdeadbeef)) }
HPezz/LekaOS
drivers/CoreVideo/external/source/st_jpeg_utils.cpp
<reponame>HPezz/LekaOS /** ****************************************************************************** * @file jpeg_utils.c * @author MCD Application Team * @version V2.0.0 * @date 3-June-2016 * @brief This driver provides JPEG MCU (Minimum Coded Unit) blocks to RGB and RGB to JPEG MCU conversion func...
danielsdeleo/basset
lib/basset/feature_extractor.rb
<filename>lib/basset/feature_extractor.rb require File.join(File.dirname(__FILE__), "yaml_serialization") module Basset # Extracts features from a document. On initialization it expects the set of features that # are to be extracted from documents. The extracted features will just be numbered in # ascending...
JustAWaifuHunter/Yoko
src/structures/Message.js
<gh_stars>1-10 const { MessageTypes } = require("../constants/Constants"); const { MESSAGE_LINK } = require("../constants/EndPoints"); const Base = require("./Base"); const MessageEmbed = require("./embed/MessageEmbed"); const User = require("./User"); module.exports = class Message extends Base { guild = null; co...
1whatleytay/kara
src/interfaces/interfaces.cpp
<gh_stars>1-10 #include <interfaces/interfaces.h> #include <parser/function.h> #include <parser/literals.h> #include <parser/type.h> #include <parser/variable.h> #include <utils/expression.h> #include <fmt/printf.h> using namespace kara; std::string toTypeString(const hermes::Node *node) { switch (node->is<par...
bjuvensjo/misc
js/modularization/3-amd/scripts/app.build.js
({ appDir: "../", baseUrl: "scripts", dir: "../build", modules: [ { name: "main" } ] })
chyanju/autopandas
autopandas_v2/generators/ml/networks/ggnn/ops/select.py
import collections import pickle from typing import Dict import numpy as np import tensorflow as tf from autopandas_v2.generators.ml.networks.ggnn import utils from autopandas_v2.generators.ml.networks.ggnn.base import BaseSmartGenGGNN class ModelSelect(BaseSmartGenGGNN): def process_raw_graph(self, graph): ...
178inaba/stripe-go
paymentsource/client.go
<gh_stars>1-10 // // // File generated from our OpenAPI spec // // // Package paymentsource provides the /customers/{customer}/sources APIs package paymentsource import ( "fmt" "net/http" stripe "github.com/stripe/stripe-go/v72" "github.com/stripe/stripe-go/v72/form" ) // Client is used to invoke /customers/{cu...
thorin/minium
minium-core/src/main/java/com/vilt/minium/Async.java
<gh_stars>0 /* * Copyright (C) 2013 The Minium 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 applicabl...
lechium/tvOS10Headers
System/Library/Frameworks/CoreSpotlight.framework/_MDIndexExtensionLoader.h
<gh_stars>1-10 /* * This header is generated by classdump-dyld 1.0 * on Wednesday, March 22, 2017 at 9:03:49 AM Mountain Standard Time * Operating System: Version 10.1 (Build 14U593) * Image Source: /System/Library/Frameworks/CoreSpotlight.framework/CoreSpotlight * classdump-dyld is licensed under GPLv3, Copyright © 20...
timboudreau/netbeans-contrib
dtrace/postinstallsrc/dtrace/PostInstall.java
<filename>dtrace/postinstallsrc/dtrace/PostInstall.java /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Com...
TimothyGillespie/lombok-intellij-plugin
testData/after/CleanupName.java
<reponame>TimothyGillespie/lombok-intellij-plugin // Generated by delombok at Wed Oct 02 19:12:43 GMT 2019 class CleanupName { void test() { Object o = "Hello World!"; try { System.out.println(o); } finally { if (java.util.Collections.singletonList(o).get(0) != null) { o.toString(); } } } void...
zealoussnow/chromium
chrome/test/mini_installer/update_lastrun.py
<reponame>zealoussnow/chromium<filename>chrome/test/mini_installer/update_lastrun.py # Copyright 2016 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. """Updates Chrome's "lastrun" value for the current user in HKCU.""" imp...
Ro5635/Cheddar
cheddar/cheddar-tx/src/test/java/com/clicktravel/cheddar/infrastructure/messaging/tx/TransactionalMessageSenderTest.java
/* * Copyright 2014 Click Travel Ltd * * 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 ...
benf1977/j2objc-serialization-example
j2objc/include/java/io/Externalizable.h
// // Generated by the J2ObjC translator. DO NOT EDIT! // source: android/libcore/luni/src/main/java/java/io/Externalizable.java // #ifndef _JavaIoExternalizable_H_ #define _JavaIoExternalizable_H_ #include "J2ObjC_header.h" #include "java/io/Serializable.h" @protocol JavaIoObjectInput; @protocol JavaIoObjectOutp...
abhijain-sq/square-java-sdk
src/main/java/com/squareup/square/models/LoyaltyProgramRewardTier.java
<gh_stars>10-100 package com.squareup.square.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonGetter; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Objects; /** * This is a...
nyx-litenite/never
front/param.c
/** * Copyright 2018 <NAME> * * 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 rights * to use, copy, modify, merge, publish, distri...
mustafaergul/travis-tasks
lib/travis/addons/gdpr/task.rb
<filename>lib/travis/addons/gdpr/task.rb<gh_stars>10-100 require 'travis/addons/email/task' require 'travis/addons/gdpr/mailer/gdpr_mailer' module Travis module Addons module Gdpr class Task < Travis::Addons::Email::Task class NoMailType < StandardError; end private def send_email...
L8RMedia/exponent
ios/versioned-react-native/ABI11_0_0/Exponent/Modules/Api/Components/ABI11_0_0EXBlurViewManager.h
// Copyright 2015-present 650 Industries. All rights reserved. #import "ABI11_0_0RCTViewManager.h" @interface ABI11_0_0EXBlurViewManager : ABI11_0_0RCTViewManager @end
m-pa/themis-graphql
src/validate-env.js
const Joi = require('joi'); const schema = Joi.object().keys({ PORT: Joi.string().alphanum().min(2).max(5), NODE_ENV: Joi .string() .valid([ 'production', 'development', 'test' ]), LOG_LEVEL: Joi .string() .valid([ 'debug', 'warn', 'error', 'info' ]), GQL_TRACING: Joi .string() .valid([...
xuesenLi/asset_management
renren-admin/src/main/java/io/renren/modules/asset/service/AssetAreaService.java
<filename>renren-admin/src/main/java/io/renren/modules/asset/service/AssetAreaService.java<gh_stars>1-10 package io.renren.modules.asset.service; import com.baomidou.mybatisplus.extension.service.IService; import io.renren.common.utils.PageUtils; import io.renren.modules.asset.entity.AssetAreaEntity; import io.renren....
e-amzallag/bricksetapi
src/main/java/org/dajlab/bricksetapi/v3/vo/Reviews.java
<gh_stars>1-10 /* * Copyright 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 License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
fog/fog-softlayer
tests/softlayer/models/compute/flavor_tests.rb
# # Author:: <NAME> (<<EMAIL>>) # © Copyright IBM Corporation 2014. # # LICENSE: MIT (http://opensource.org/licenses/MIT) # Shindo.tests("Fog::Compute[:softlayer] | Flavor model", ["softlayer"]) do tests("success") do @service = Fog::Compute[:softlayer] tests("#all") do returns(Fog::Softlayer::Compu...
trumank/DRG-Mods
Source/FSD/Public/ELineCutterProjectileUpgradeType.h
<filename>Source/FSD/Public/ELineCutterProjectileUpgradeType.h #pragma once #include "CoreMinimal.h" #include "ELineCutterProjectileUpgradeType.generated.h" UENUM(BlueprintType) enum class ELineCutterProjectileUpgradeType : uint8 { LineSize, LineSizeMultiplier, ExplosiveRound, SetDeployDelay, AddDe...
shanika04/dashbuilder
dashbuilder-backend/dashbuilder-dataset-elasticsearch/src/test/java/org/dashbuilder/dataprovider/backend/elasticsearch/suite/ElasticSearchTestSuite.java
<reponame>shanika04/dashbuilder package org.dashbuilder.dataprovider.backend.elasticsearch.suite; import org.apache.commons.io.FileUtils; import org.apache.commons.io.IOUtils; import org.apache.http.HttpEntity; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.client.methods.HttpGet; ...
alexchao26/advent-of-code-go
2017/day12/main.go
<gh_stars>10-100 package main import ( "flag" "fmt" "strings" "github.com/alexchao26/advent-of-code-go/cast" "github.com/alexchao26/advent-of-code-go/util" ) func main() { var part int flag.IntVar(&part, "part", 1, "part 1 or 2") flag.Parse() fmt.Println("Running part", part) var ans int if part == 1 { ...
maravichandran/evergreen
units/volume_deletion_job.go
<reponame>maravichandran/evergreen<gh_stars>0 package units import ( "context" "fmt" "github.com/evergreen-ci/evergreen" "github.com/evergreen-ci/evergreen/cloud" "github.com/evergreen-ci/evergreen/model/host" "github.com/mongodb/amboy" "github.com/mongodb/amboy/dependency" "github.com/mongodb/amboy/job" "gi...
galin-kostadinov/Software-Engineering
Java/Technology Fundamentals with Java/Exercises Java Code/src/AssociativeArraysMoreExercise/SnowWhite.java
package AssociativeArraysMoreExercise; import java.util.LinkedHashMap; import java.util.Map; import java.util.Scanner; public class SnowWhite { public static void main(String[] args) { Scanner sc = new Scanner(System.in); Map<String, Integer> dwarfs = new LinkedHashMap<>(); String input ...
amaodou/quickstart-on-springboot
jpa/src/main/java/xyz/mdou/springboot/jpa/entity/DepartmentEntity.java
<filename>jpa/src/main/java/xyz/mdou/springboot/jpa/entity/DepartmentEntity.java package xyz.mdou.springboot.jpa.entity; import lombok.Data; import lombok.experimental.Accessors; import javax.persistence.*; import java.util.*; import java.util.stream.Collectors; @Data @Accessors(chain = true) @Entity @Table(name = "...
UnrealKaraulov/DotaAllstarsHelper_DLL_FOR_DOTA
ExampleViewAllySkillPanel_src_backup/DreamUI/Label.h
<reponame>UnrealKaraulov/DotaAllstarsHelper_DLL_FOR_DOTA #ifndef LABEL_H_ #define LABEL_H_ #include "Frame.h" class Texture; class UISimpleFontString; class UISimpleTexture; static Color LABEL_TEXT_COLOR = Color(0.99f, 0.827f, 0.0705f); static Color LABEL_SHADOW_COLOR = Color(0.f, 0.f, 0.f, 0.9f); static Color LABEL...
vibhatha/dapwc
src/main/java/edu/indiana/soic/spidal/dapwc/PlotVizCluster.java
<reponame>vibhatha/dapwc package edu.indiana.soic.spidal.dapwc; public class PlotVizCluster { private int _clusterNumber; private String _label; public PlotVizCluster(int clusterNumber, String label) { _clusterNumber = clusterNumber; _label = label; } public PlotVizCluster(int clusterNumber) { _clusterN...
kpchad/mira-unity-sdk
Assets/Plugins/iOS/Wikitude/WikitudeMiraSDK.framework/Headers/WTCloudRecognitionService.h
// // WTCloudRecognitionService.h // WikitudeNativeSDK // // Created by <NAME> on 31/10/16. // Copyright © 2016 Wikitude. All rights reserved. // #ifndef WTCloudRecognitionService_h #define WTCloudRecognitionService_h #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN extern NSString * __nonnull const WT...
lrbInfelink/FelinkAdDemo
Pods/FelinkAdSDK/FelinkAdSDK.framework/Headers/FelinkAgInterstitial.h
// // FelinkAgInterstitial.h // FelinkAdSDK // // Created by 刘瑞彬 on 2019/6/21. // #import <UIKit/UIKit.h> #import <Foundation/Foundation.h> #import "FelinkAdCommon.h" @class FelinkAgInterstitial; @protocol FelinkAgInterstitialDelegate <NSObject> //收到广告 - (void)felinkAgInterstitialDidReceiveAd:(FelinkAgInterstiti...
adryanefernandes/Labex
src/hooks/useRequestDataAuth.js
import axios from "axios" import { useEffect, useState } from "react" import { urlApi } from '../apiConfig/axiosConfig' const useRequestDataAuth = (urlFinal, initialState) => { const [data, setData] = useState(initialState) useEffect(() => { axios.get(`${urlApi}${urlFinal}`, { headers: { ...
swanandmehta/all-my-chat
backend/src/main/java/com/liberty/chat/modal/Message.java
<filename>backend/src/main/java/com/liberty/chat/modal/Message.java /** * */ package com.liberty.chat.modal; import java.time.LocalDateTime; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.EnumType; import javax.persistence.Enumerated; import javax.persistence.Id; import ...
persona-id/blockscore-ruby
spec/unit/block_score/util_spec.rb
<filename>spec/unit/block_score/util_spec.rb RSpec.describe BlockScore::Util, vcr: true do shared_context 'a transform' do subject(:actual) { described_class.send(method, input) } it { should eql(output) } end describe '.to_plural' do shared_context 'to_plural' do let(:method) { :to_plural } ...
Spongebobgao/fitness-tracker
client/src/store/store.js
import Vue from 'vue' import Vuex from 'vuex' import createPersistedState from 'vuex-persistedstate' // import MyFriends from '../components/MyFriends' Vue.use(Vuex) export default new Vuex.Store({ strict: true, state: { token: null, user: null, isUserLoggedIn: false, redirectRoute: { name: ...
jacokoo/sleetjs
lib/ast/attribute.js
<reponame>jacokoo/sleetjs<filename>lib/ast/attribute.js 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.en...
IniZio/py-skygear
skygear/settings/tests/test_parser.py
<filename>skygear/settings/tests/test_parser.py # Copyright 2015 Oursky Ltd. # # 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 requ...
KEP-SERVDEV-FRONT/svelte-linda
node_modules/snowpack/lib/commands/dev.js
"use strict"; /** * This license applies to parts of this file originating from the * https://github.com/lukejacksonn/servor repository: * * MIT License * Copyright (c) 2019 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation fi...
areese/fluent-bit
tests/internal/fuzzers/local_test.c
<reponame>areese/fluent-bit<filename>tests/internal/fuzzers/local_test.c /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Fluent Bit * ========== * Copyright (C) 2019-2020 The Fluent Bit Authors * Copyright (C) 2015-2018 Treasure Data Inc. * * Licensed under the Apache License...
hhhHanqing/bias
src/backend/spin/node_map_utils.hpp
#ifdef WITH_SPIN #ifndef NODE_MAP_UTILS_HPP #define NODE_MAP_UTILS_HPP #include <string> #include <vector> #include <map> #include <cstdint> #include "SpinnakerC.h" namespace bias { size_t getNumberOfNodes(spinNodeMapHandle &hNodeMap); std::string getNodeTypeString(spinNodeType nodeType); ...
lefevre-fraser/openmeta-mms
src/CyPhy2Desert/CyPhy2Desert.cpp
#ifndef CYPHY2DESERT_CPP #define CYPHY2DESERT_CPP #include "uml.h" #include <objbase.h> #include "UmlExt.h" #include "UdmUtil.h" #include "CyPhy2Desert.h" #include <cmath> #include<math.h> #include <stdio.h> #include "DesertFormulaUtil.h" #include "UdmGme.h" #include <sstream> #include <string.h> #i...
danjpgriffin/totallylazy
test/com/googlecode/totallylazy/proxy/ProxyTest.java
package com.googlecode.totallylazy.proxy; import com.googlecode.totallylazy.concurrent.NamedExecutors; import com.googlecode.totallylazy.concurrent.NamedThreadFactory; import org.junit.Test; import java.lang.reflect.Method; import java.util.Arrays; import java.util.concurrent.CountDownLatch; import java.util.concurre...
lifei321/LoveBird
LoveBird/LoveBird/BaseViewController/AppBaseTabBarController.h
<gh_stars>0 // // AppBaseTabBarController.h // LoveBird // // Created by ShanCheli on 2017/7/7. // Copyright © 2017年 shancheli. All rights reserved. // #import <UIKit/UIKit.h> @class SubControllerAttribute; @interface AppBaseTabBarController : UITabBarController /** * 控制器的公共导航控制器类,如果没有按照系统导航控制器创建 */ @property...
Frozen/cockroach
pkg/sql/colflow/colrpc/inbox.go
// Copyright 2019 The Cockroach Authors. // // Use of this software is governed by the Business Source License // included in the file licenses/BSL.txt. // // As of the Change Date specified in that file, in accordance with // the Business Source License, use of this software will be governed // by the Apache License, ...
sobolevn/lona
lona/routing.py
import logging import re ABSTRACT_ROUTE_RE = re.compile(r'<(?P<name>[^:>]+)(:(?P<pattern>[^>]+))?>') ROUTE_PART_FORMAT_STRING = r'(?P<{}>{})' DEFAULT_PATTERN = r'[^/]+' OPTIONAL_TRAILING_SLASH_PATTERN = r'(/)' MATCH_ALL = 1 logger = logging.getLogger('lona.routing') class Route: def __init__(self, raw_pattern,...
Zi0P4tch0/sdks
iPhoneOS14.2.sdk/System/Library/Frameworks/GameKit.framework/Headers/GKSavedGame.h
<filename>iPhoneOS14.2.sdk/System/Library/Frameworks/GameKit.framework/Headers/GKSavedGame.h // // GKSavedGame.h // Game Center // // Copyright 2010-2020 Apple Inc. All rights reserved. // #import <GameKit/GKLocalPlayer.h> #import <GameKit/GKSavedGameListener.h> /// Class representing a saved game for the local pl...
LauZyHou/-
LeetCode/面试题 17.20.cpp
<filename>LeetCode/面试题 17.20.cpp class MedianFinder { private: // 存小数的最大堆 priority_queue<int, vector<int>, less<int> > sml; // 存大数的最小堆 priority_queue<int, vector<int>, greater<int> > big; public: /** initialize your data structure here. */ MedianFinder() { sml = priority_queue<int, vecto...
roj234/rojlib
roj/opengl/text/FontTex.java
/* * This file is a part of MI * * The MIT License (MIT) * * Copyright (c) 2021 Roj234 * * 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 witho...
MBKayro/kolibri
kolibri/core/assets/src/utils/setupAndLoadFonts.js
<gh_stars>100-1000 import FontFaceObserver from 'fontfaceobserver'; import { availableLanguages, currentLanguage } from 'kolibri.utils.i18n'; import logger from 'kolibri.lib.logging'; import { browser, passesRequirements } from './browserInfo'; import plugin_data from 'plugin_data'; const logging = logger.getLogger(__...
MrSandman5/2019-ads
src/main/java/ru/mail/polis/ads/part2/MrSandman5/Task1.java
package ru.mail.polis.ads.part2.MrSandman5; /*В индийском храме пол прямоугольной формы выложен одинаковыми квадратными плитками 1 х 1, на каждую из которых высыпано от 0 до k зернышек (k ≤ 30000). Размеры пола m х n. Мышка выбегает из левого нижнего угла пола храма и двигается к входу в другую норку, расположенную в ...
cquoss/jboss-4.2.3.GA-jdk8
testsuite/src/main/org/jboss/test/aop/bean/CallingPOJO.java
/* * JBoss, Home of Professional Open Source. * Copyright 2006, Red Hat Middleware LLC, and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can redistribute it and/or modify i...
dldevinc/paper-uploads
paper_uploads/forms/dialogs/file.py
<gh_stars>1-10 from ...models.file import UploadedFile from .base import UploadedFileBaseForm class UploadedFileDialog(UploadedFileBaseForm): class Meta: model = UploadedFile fields = ("new_name", "display_name")
ray1888/leetcode-interview
easy100/intersection_of_two_arrays.go
<reponame>ray1888/leetcode-interview package easy100 func intersection(nums1 []int, nums2 []int) []int { if len(nums1) == 0 || len(nums2) == 0 { return []int{} } num1Map := make(map[int]bool) for _, item := range nums1 { num1Map[item] = true } resultMap := make(map[int]bool) for _, item := range nums2 { ...
mathewhawley/suitejs
packages/icons/src/md/image/Details.js
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdDetails(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M6 8h36L24 40 6 8zm6.75 4L24 32l11.25-20h-22.5z" /> </IconBase> ); } export default MdDetails;
RAM-16/gdscaec-Angular
node_modules/core-js/es/regexp/sticky.js
<gh_stars>1000+ require('../../modules/es.regexp.constructor'); require('../../modules/es.regexp.exec'); require('../../modules/es.regexp.sticky'); module.exports = function (it) { return it.sticky; };
sujith-mn/cobigen
cobigen-cli/cli/src/main/java/com/devonfw/cobigen/cli/utils/ValidationUtils.java
package com.devonfw.cobigen.cli.utils; import java.io.File; import java.util.ArrayList; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.devonfw.cobigen.api.to.GenerationReportTo; import com.devonfw.cobigen.cli.CobiGenCLI; /** * Utilities class for validating user's input and generation */ publ...
northwesternmutual/kanali
spec/service_test.go
// Copyright (c) 2017 <NAME>. // // 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 rights // to use, copy, modify, merge, publish, distr...
PhysShell/inexplicable_engine
inex/render/core/sources/pch.h
<filename>inex/render/core/sources/pch.h //////////////////////////////////////////////////////////////////////////// // Created : 27.12.2018 // Author : <NAME> //////////////////////////////////////////////////////////////////////////// #ifndef PCH_H_INCLUDED # define PCH_H_INCLUDED # include <inex/extensi...
reinteractive/nsw-state-library-amplify
app/policies/transcription_convention_policy.rb
class TranscriptionConventionPolicy < ApplicationPolicy attr_reader :user, :csope def initialize(user, scope) @user = user @csope = scope end def index? admin_or_content_editor? end def new? admin_or_content_editor? end def create? admin_or_content_editor? end def edit? ...
Mathtician/vzome
core/src/main/java/com/vzome/core/edits/SelectManifestation.java
<filename>core/src/main/java/com/vzome/core/edits/SelectManifestation.java package com.vzome.core.edits; import java.util.Map; import org.w3c.dom.Element; import com.vzome.core.commands.AttributeMap; import com.vzome.core.commands.XmlSaveFormat; import com.vzome.core.construction.Construction; import com.vzome.core...
fspace/go-playground
examples/constants/main.go
<gh_stars>1-10 package main import "fmt" const MAX_Xx = 100 // integer const MAX_Xx2 = 20.99 // float const EVENT_USER_ADDED = "user-added" // string const STATUS_ON = true // boolean const STATUS_OFF = false // const RGBS = [...]int{255} // wrong! const PiApprox = 3.14 //var P...
salviof/intERPRestful
src/test/java/br/org/coletivoJava/fw/erp/implementacao/erpintegracao/teste/FabDadosIniciaisTesteIntegracao.java
<reponame>salviof/intERPRestful /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package br.org.coletivoJava.fw.erp.implementacao.erpintegracao.teste; import br.org.coletivoJava.fw.er...
littleRich/AutoInteraction-Library
Demo/src/main/java/silence/com/cn/a310application/qqanalyst/QQSimulateBusiness.java
package silence.com.cn.a310application.qqanalyst; import android.content.ClipboardManager; import android.content.Context; import android.os.Handler; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import silence.com.cn.a310application.appanalyst.AnalystBusiness; import silence....
AmandaRiu/TaggerApp
app/src/main/java/com/amandariu/tagger/demo/data/source/ITagsDataSource.java
package com.amandariu.tagger.demo.data.source; import android.support.annotation.NonNull; import com.amandariu.tagger.ITag; import java.util.List; /** * Main entry point for accessing Tags data. */ public interface ITagsDataSource extends ISourceBase { interface ISaveTagsCallback { void onTagsSavedSucc...
heyoni/opentrons
protocol-designer/src/file-data/selectors/commands.js
<filename>protocol-designer/src/file-data/selectors/commands.js<gh_stars>0 // @flow import {createSelector} from 'reselect' import isEmpty from 'lodash/isEmpty' import last from 'lodash/last' import reduce from 'lodash/reduce' import type {BaseState, Selector} from '../../types' import * as StepGeneration from '../../s...
rcpoison/dxvk-cache-pool
dxvk-cache-pool-common/src/main/java/com/ignorelist/kassandra/dxvk/cache/pool/common/crypto/SignaturePublicKeyInfo.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.ignorelist.kassandra.dxvk.cache.pool.common.crypto; import java.io.Serializable; import java.util.Objects; import javax.va...
simon-ritchie/apyscript
apysc/_event/stop_propagation_interface.py
"""Class implementation for the stop_propagation interface. """ from apysc._type.variable_name_interface import VariableNameInterface class StopPropagationInterface(VariableNameInterface): def stop_propagation(self) -> None: """ Stop event propagation. """ import apys...
EdsonGermano/socrata-platform-socrata-thirdparty-utils
core/src/main/scala/com/socrata/thirdparty/typesafeconfig/ConfigClass.scala
package com.socrata.thirdparty.typesafeconfig import com.typesafe.config.{Config, ConfigException, ConfigUtil} import scala.concurrent.duration.FiniteDuration import scala.concurrent.duration._ import scala.collection.JavaConverters._ /** A helper for making typed configurations. */ abstract class ConfigClass(config:...
phillips96/similarity
tests/retrieval_metrics/test_recall_at_k.py
<filename>tests/retrieval_metrics/test_recall_at_k.py import pytest import tensorflow as tf from tensorflow_similarity.retrieval_metrics import RecallAtK testdata = [ ( "micro", tf.constant(0.75), ), ( "macro", tf.constant(0.5), ), ] @pytest.mark.parametrize("avg, exp...
mdahmen/emptycanvas
src/main/java/info/emptycanvas/library/object/ZS3D.java
<gh_stars>0 /* Vous êtes libre de : */ package info.emptycanvas.library.object; public interface ZS3D { public void addToBuffer(Representable r); public void removeFromBuffer(Representable r); }