repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
hairyhenderson/rancheros
util/cutil.go
// +build linux package util /* #cgo LDFLAGS: -lmount -lblkid -luuid -lselinux #include<blkid/blkid.h> #include<libmount/libmount.h> #include<stdlib.h> */ import "C" import "unsafe" import ( "errors" ) func ResolveDevice(spec string) string { cSpec := C.CString(spec) defer C.free(unsafe.Pointer(cSpec)) cString ...
Indexical-Metrics-Measure-Advisory/watchmen
packages/watchmen-dqc/src/watchmen_dqc/monitor/rule/disabled_rules.py
<gh_stars>0 from typing import List from watchmen_model.dqc import MonitorRuleCode disabled_rules: List[MonitorRuleCode] = [ MonitorRuleCode.RAW_MISMATCH_STRUCTURE, # ignored now MonitorRuleCode.FACTOR_MISMATCH_DATE_TYPE, # should be detected on pipeline run MonitorRuleCode.FACTOR_USE_CAST, # should be detected...
drt4243566/leetcode_learn
niuke_HW/ds_zuo/8_11_wordDragon.cpp
<reponame>drt4243566/leetcode_learn #include <iostream> #include <string> #include <vector> #include <queue> using namespace std; int N; vector<string> words; char start; string connect(string preDragon, string back, int num) { return preDragon.substr(0, preDragon.size() - num) + back; } int isconnect(string preDrago...
ambadhan/OnlinePythonTutor
v4-cokapi/backends/c_cpp/valgrind-3.11.0/none/tests/tilegx/insn_test_tblidxb3_Y0.c
<filename>v4-cokapi/backends/c_cpp/valgrind-3.11.0/none/tests/tilegx/insn_test_tblidxb3_Y0.c //file: _insn_test_tblidxb3_Y0.c //op=232 #include <stdio.h> #include <stdlib.h> void func_exit(void) { printf("%s\n", __func__); exit(0); } void func_call(void) { printf("%s\n", __func__); exit(0); } uns...
drxaos/JvmVM
src/test/java/com/github/drxaos/jvmvm/tests/interpretable/libtest/Dependent.java
package com.github.drxaos.jvmvm.tests.interpretable.libtest; public class Dependent { public static String test() { Dependency d = new Dependency(); d.addWord("Hello"); d.addWord("World"); d.addWord("!"); return "Dependent " + d.join(); } }
MewX/contendo-viewer-v1.6.3
org/apache/http/nio/protocol/Pipelined.java
package org.apache.http.nio.protocol; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Documented @Target({ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) pub...
safe2008/learning-go
basics/03-Operators/Operators.go
package main import "fmt" func main() { var i int = 10 var k int = 20 var z int = 30 // Arithmetic Operators fmt.Printf("i + k = %d\n", i+k) fmt.Printf("i - k = %d\n", i-k) fmt.Printf("i * k = %d\n", i*k) fmt.Printf("i / k = %d\n", i/k) fmt.Printf("i mod k = %d\n", i%k) // Comparison Operators fmt.Printl...
li-boxuan/stargate
sgv2-dynamo-api/src/main/java/io/stargate/sgv2/dynamosvc/resources/DynamoResource.java
package io.stargate.sgv2.dynamosvc.resources; import static io.stargate.sgv2.dynamosvc.dynamo.Proxy.awsRequestMapper; import com.amazonaws.AmazonWebServiceResult; import com.amazonaws.services.dynamodbv2.model.CreateTableRequest; import com.amazonaws.services.dynamodbv2.model.DeleteTableRequest; import com.amazonaws....
ScalablyTyped/SlinkyTyped
o/octokit__types/src/main/scala/typingsSlinky/octokitTypes/endpointsMod/AppsGetBySlugEndpoint.scala
<reponame>ScalablyTyped/SlinkyTyped package typingsSlinky.octokitTypes.endpointsMod import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} @js.native trait AppsGetBySlugEndpoint exten...
Dongfang1021/Leetcode
k-th-smallest-prime-fraction/k-th-smallest-prime-fraction.py
class Solution: def kthSmallestPrimeFraction(self, arr: List[int], k: int) -> List[int]: from fractions import Fraction def under(x): count = best = 0 i = -1 for j in range(1, len(arr)): while arr[i + 1] < arr[j] * x: i += 1 ...
faichele/NumCpp
docs/doxygen/html/median_8hpp.js
var median_8hpp = [ [ "median", "median_8hpp.html#ab2f8d43b44ab30c20a016e666c11f542", null ] ];
computestdev/computest-openrunner
lib/WebExtListeners.js
<gh_stars>10-100 'use strict'; const log = require('./logger')({MODULE: 'WebExtListeners'}); class WebExtListeners { constructor(api, thisObject = null) { this._api = api; this._thisObject = thisObject; this._cleanup = []; Object.freeze(this); } add(event, callback, ...args...
berg-turing/point-framework
point-dal/src/test/java/io/github/bergturing/point/dal/constants/LockConstants.java
<reponame>berg-turing/point-framework package io.github.bergturing.point.dal.constants; public class LockConstants { /** * 单个实体锁分组 */ public static final String LOCK_GROUP_ENTITY = "point:dal:lock:test:entity:"; /** * 关联实体锁分组 */ public static final String LOCK_GROUP_ASSOCIATION = "...
thomasgibson/firedrake-hybridization
profile_compressible_solver/plot_local_op_times.py
<gh_stars>0 import os import pandas as pd import seaborn as sns from matplotlib import pyplot as plt sns.set_context("talk") FONTSIZE = 14 MARKERSIZE = 10 LINEWIDTH = 3 cfl_range = [1, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20] rt0_ml_str_data = ["results/RT0_dx346km_dz156m_cfl%s_Hybrid_SCPC_fgmres_ml_richardson_stronger_...
bluespeck/OakVR
src/LLAPI/Renderer/DirectX/DirectX11/DirectX11Renderer.h
<filename>src/LLAPI/Renderer/DirectX/DirectX11/DirectX11Renderer.h #pragma once #include "Renderer/Renderer/Renderer.h" #include "Math/Vector3.h" struct ID3D11Device; struct ID3D11DeviceContext; struct IDXGISwapChain; struct ID3D11RenderTargetView; struct ID3D11RasterizerState; struct ID3D11DepthStencilState; struct ...
jiashiwen/redissyncer-server
syncer-transmission/src/main/java/syncer/transmission/client/jedis/ClusterNodesUtil.java
<filename>syncer-transmission/src/main/java/syncer/transmission/client/jedis/ClusterNodesUtil.java package syncer.transmission.client.jedis; /** * @author zhanenqiang * @Description 描述 * @Date 2020/12/24 */ import org.springframework.util.StringUtils; import syncer.jedis.HostAndPort; import syncer.jedis.Jedis; i...
autonomous-interdependent-repositories/airport
libs/autopilot/lib/api/AutopilotApiLoader.js
import { AUTOPILOT_API_LOADER, DI, IOC } from '@airport/di'; import { LOCAL_API_CLIENT } from '../tokens'; export class AutopilotApiLoader { loadApiAutopilot(token) { return new Proxy({}, { get(target, methodName) { switch (methodName) { case '__initialized__'...
loveweb58/React-Pro-Dashboard
architectui-react-pro/src/DemoPages/Components/ScrollableElements/Examples/index.js
<gh_stars>0 import React, {Component, Fragment} from 'react'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import { Row, Col, Card, CardBody, CardTitle, CardHeader, CardFooter } from 'reactstrap'; import bg1 from '../../../../assets/utils/images/dropdown-header/abstract1.jpg'; i...
mulesoft/amf
amf-api-contract/shared/src/main/scala/amf/apicontract/internal/annotations/InvalidBinding.scala
package amf.apicontract.internal.annotations import amf.core.client.scala.model.domain.{AmfElement, Annotation, AnnotationGraphLoader, SerializableAnnotation} case class InvalidBinding(value: String) extends SerializableAnnotation { override val name: String = "invalid-binding" } object InvalidBinding extends Anno...
blackgeorge-boom/algorithms_data_structures
Chapter_15/cut_stick.cpp
<reponame>blackgeorge-boom/algorithms_data_structures<filename>Chapter_15/cut_stick.cpp<gh_stars>0 // // Created by blackgeorge on 1/9/19. // #include <climits> #include <algorithm> #include <iostream> #include <ctime> int cut_stick_naive(int p[], int n) { if (n == 0) return 0; auto q = INT_MIN; for (au...
fishstormX/fishmaple
src/test/java/fishmaple/BinaryTreeNode.java
package fishmaple; import javax.swing.tree.TreeNode; import java.util.ArrayList; import java.util.Queue; import java.util.concurrent.ArrayBlockingQueue; public class BinaryTreeNode { //二叉树的个种子遍历 public BinaryTreeNode root; BinaryTreeNode(Integer integer){ this.value=integer; } public Bina...
bchandle/cogexmachina
src/main/scala/cogx/compiler/gpu_operator/statement/WriteTensor.scala
/* * (c) Copyright 2016 Hewlett Packard Enterprise Development LP * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required b...
pavlopoul/vxquery
vxquery-core/src/main/java/org/apache/vxquery/metadata/VXQueryIndexingOperatorDescriptor.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 ...
ZiOS-Repo/IU_RTImagePicker
Example/Pods/DoraemonKit/iOS/DoraemonKit/Src/Core/Plugin/Common/NSUserDefaults/ViewControllers/DoraemonNSUserDefaultsViewController.h
// // DoraemonNSUserDefaultsViewController.h // DoraemonKit // // Created by 0xd-cc on 2019/11/26. // #import <UIKit/UIKit.h> #import "DoraemonBaseViewController.h" NS_ASSUME_NONNULL_BEGIN @interface DoraemonNSUserDefaultsViewController : DoraemonBaseViewController @end NS_ASSUME_NONNULL_END
icedreamer/test
src/com/tlys/sys/model/job/TimerJob.java
<reponame>icedreamer/test<filename>src/com/tlys/sys/model/job/TimerJob.java package com.tlys.sys.model.job; import java.lang.reflect.Method; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.quartz.Job; import org.quartz.JobDetail; import org.quartz.JobExecutionContext; i...
deadzq/facecat
facecat_cpp/source/date/DayDiv.cpp
<filename>facecat_cpp/source/date/DayDiv.cpp #include "..\\..\\stdafx.h" #include "..\\..\\include\\date\\DayDiv.h" namespace FaceCat{ DayDiv::DayDiv(FCCalendar *calendar){ m_am_ClickRowFrom = 0; m_am_ClickRowTo = 0; m_am_Direction = 0; m_am_Tick = 0; m_am_TotalTick = 40; m_calendar = calendar; onLoad()...
felixshiftellecon/lets-go-snippetbox
node_modules/cli-truncate/index.js
<reponame>felixshiftellecon/lets-go-snippetbox 'use strict'; const sliceAnsi = require('slice-ansi'); const stringWidth = require('string-width'); function getIndexOfNearestSpace(string, index, shouldSearchRight) { if (string.charAt(index) === ' ') { return index; } for (let i = 1; i <= 3; i++) { if (shouldSea...
hmu332233/LetMeKnow.jbnu--ChatBot--
test/controllers/chat_controller_test.rb
require 'test_helper' class ChatControllerTest < ActionController::TestCase test "should get keyboard" do get :keyboard assert_response :success end test "should get message" do get :message assert_response :success end test "should get add_friend" do get :add_friend assert_response...
Tenderize/audius-protocol
discovery-provider/src/solana/constants.py
WAUDIO_DECIMALS = 8
AutoMeter/AutoMeter-API
testcenterservice/src/main/java/com/zoctan/api/entity/ApicasesPerformancestatistics.java
package com.zoctan.api.entity; import javax.persistence.*; import java.util.Date; @Table(name = "apicases_performancestatistics") public class ApicasesPerformancestatistics { /** * Id */ @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; /** * 用例id */ ...
ibiz4j/ibizlab-runtime
ibzrt/ibzrt-util/src/main/java/cn/ibizlab/util/domain/FileItem.java
<filename>ibzrt/ibzrt-util/src/main/java/cn/ibizlab/util/domain/FileItem.java package cn.ibizlab.util.domain; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude.Include; import lombok.AllArgsConstructor;...
arusinha/incubator-netbeans
java/java.platform/test/unit/src/org/netbeans/modules/java/platform/queries/PlatformSourceForBinaryQueryTest.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 ...
mwk0408/codewars_solutions
5 kyu/Did I Finish my Sudoku.py
def done_or_not(board): #board[i][j] for row in range(0,len(board)): if len(set(board[row]))!=9: return 'Try again!' temp=[] for row in range(0,9): for col in range(0,9): temp.append(board[col][row]) if len(set(temp))!=9: return 'Try again!' ...
SalvadorRadaVaca/PHP-and-MySQL
wordpress/wp-includes/js/jquery/ui/effect-transfer.min.js
/*! * jQuery UI Effects Transfer 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ !function(e){"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(n){var e;return e=!1!==n.uiB...
carlosvquezada/lg_ros_nodes
lg_nav_to_device/src/lg_nav_to_device/device_writer.py
<gh_stars>0 from geometry_msgs.msg import Twist from lg_common.msg import ApplicationState from evdev import AbsInfo, UInput, InputEvent, ecodes as e import time class DeviceWriter: def __init__(self, scale): self.scale = scale # most values were taken from running # InputDevice('/dev/inpu...
watermint/Semester
semester-foundation-http/src/main/scala/semester/foundation/http/StatusCode.scala
<reponame>watermint/Semester package semester.foundation.http trait StatusCode { val code: Int val label: String } object StatusCode { def apply(code: Int): StatusCode = { code match { case 100 => StatusContinue() case 101 => StatusSwitchingProtocols() case c if c / 100 == 1 => StatusExten...
FlashYoshi/UGentProjects
VOP/libs/functionalanalysis/src/org/aikodi/lang/funky/behavior/BranchingPoint.java
<reponame>FlashYoshi/UGentProjects package org.aikodi.lang.funky.behavior; import com.google.java.contract.Ensures; import org.aikodi.chameleon.core.element.Element; import org.aikodi.chameleon.core.element.ElementImpl; import org.aikodi.chameleon.core.lookup.LookupException; import org.aikodi.chameleon.core.reference...
tonythomas01/quarantine_backend
authentication/tests.py
<reponame>tonythomas01/quarantine_backend<gh_stars>1-10 from unittest.mock import patch, MagicMock, Mock from django.test import TestCase from django.views import View from rest_framework import serializers from authentication.permissions import IsAffectedUser, IsHelperUser, IsOwnerOfRequest, IsAssigneeOfRequest from...
rayworks/algorithms
src/main/java/org/sean/recursive/RootLeafSequenceValidator.java
<gh_stars>1-10 package org.sean.recursive; import org.sean.tree.TreeNode; import java.util.LinkedList; import java.util.List; // https://leetcode.com/explore/challenge/card/30-day-leetcoding-challenge/532/week-5/3315/ public class RootLeafSequenceValidator { Boolean matched = false; boolean gatherAllPaths(T...
AbstrLabs/gnark
std/algebra/twistededwards/point.go
<filename>std/algebra/twistededwards/point.go /* Copyright © 2020 ConsenSys 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 applic...
jacob-grahn/futurism-multi
game/initAccounts.js
'use strict'; var _ = require('lodash'); var actions = require('../shared/actions'); var Player = require('./Player'); var nextCid = require('./nextCid'); /** * Create a card to represent the player * @param {object} account */ var makeAccountCard = function(account) { return { _id: 0, comman...
tommy91/Gazebo-Ardupilot
gazebo/common/Events.hh
<filename>gazebo/common/Events.hh /* * Copyright (C) 2012 Open Source Robotics Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE...
d3alek/TheHunt---Interactive-graphical-platform-for-AI-Experiments
TheHunt/src/com/primalpond/hunt/TutorialRenderer.java
<gh_stars>0 package com.primalpond.hunt; import android.content.Context; import android.graphics.PointF; import android.util.Log; import android.view.MotionEvent; import com.primalpond.hunt.agent.prey.Prey; import com.primalpond.hunt.world.environment.Environment; import com.primalpond.hunt.world.environment.NAlgae; ...
Dung2781993/fgm
FGM/FGM/obj/Release/Package/PackageTmp/js/Ballarat/Education/ballarat_tertiary.js
<reponame>Dung2781993/fgm<filename>FGM/FGM/obj/Release/Package/PackageTmp/js/Ballarat/Education/ballarat_tertiary.js var ballarat_tertiary = { "name": { "0": "Federation University", "1": "Australian Catholic University", }, "type": { "0": "Advanced Colleges", "1": "Advanced ...
Shisomo/leetcode_study
Offer_47_Max_Value_Of_Gifts/test.go
<reponame>Shisomo/leetcode_study<filename>Offer_47_Max_Value_Of_Gifts/test.go package main import "fmt" func main() { data := [][]int{{2, 3, 5, 13}, {15, 24, 33, 44}} result := maxValue(data) fmt.Println(result) } func maxValue(grid [][]int) int { for i := 0; i < len(grid); i++ { for j := 0; j < len(grid[0]); ...
BrnoPCmaniak/netbox
netbox/dcim/migrations/0064_remove_platform_rpc_client.py
# Generated by Django 2.0.8 on 2018-08-22 16:09 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('dcim', '0063_device_local_context_data'), ] operations = [ migrations.RemoveField( model_name='platform', name='rpc_client',...
j3270/SAMD_Experiments
xdk-asf-3.51.0/sam0/applications/adc_configurations_example/adc_configure.c
/** * \file * * \brief ADC Features Configuration file * * Copyright (c) 2015-2018 Microchip Technology Inc. and its subsidiaries. * * \asf_license_start * * \page License * * Subject to your compliance with these terms, you may use Microchip * software and any derivatives exclusively with Microchip product...
karajanyp/unityAds-src
src/js/adunit/AbstractAdUnit.js
<reponame>karajanyp/unityAds-src /** * Created by duo on 2016/9/1. */ CMD.register("adunit.AbstractAdUnit", function (require) { var Observable = require("util.Observable"); var FinishState = require("FinishState"); function AbstractAdUnit(nativeBridge, placement, campaign) { this.onStart = new ...
helloShen/thinkinginjava
chapter13/Exercise15.java
<reponame>helloShen/thinkinginjava /** * Exercise 15 */ package com.ciaoshen.thinkinjava.chapter13; import java.util.*; import java.util.regex.*; import java.io.*; public class Exercise15 { private static final String SPLITER = "\n"; private static String readFile(String path){ //return the file co...
metux/chromium-deb
third_party/WebKit/Source/core/paint/TextPainterTest.cpp
// Copyright 2014 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 "core/paint/TextPainter.h" #include "core/CSSPropertyNames.h" #include "core/CSSValueKeywords.h" #include "core/css/CSSPrimitiveValue.h" #includ...
LaserSrl/KrakeAndroid
core/src/main/java/com/krake/core/collection/FixedSizeList.java
<reponame>LaserSrl/KrakeAndroid package com.krake.core.collection; import androidx.annotation.NonNull; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.List; public final class FixedSizeList<E> implements Collection<E> { final int maxSize; final List<E> de...
fredsiika/jluxdesign
src/components/Sections/OurTeamSection.js
<reponame>fredsiika/jluxdesign import React from 'react' import { Col, Container, Row } from 'reactstrap' import TeamMember from '../../components/Teams/TeamMember' const OurTeamSection = (props) => { return ( <section className="section section-lg"> <Container> <Row className="justify-content-center text-ce...
NightRunner/api-manager
src/main/java/com/cehome/apimanager/model/dto/AmImportTemplateQueryReqDto.java
package com.cehome.apimanager.model.dto; import com.cehome.apimanager.model.po.AmImportTemplate; public class AmImportTemplateQueryReqDto extends AmImportTemplate { private static final long serialVersionUID = -5426976098282932696L; private Integer pageIndex = 1; private Integer pageSize = 20; public...
zhouwentong1993/qmq
qmq-client/src/main/java/qunar/tc/qmq/consumer/pull/PushConsumerParam.java
<reponame>zhouwentong1993/qmq<gh_stars>1000+ package qunar.tc.qmq.consumer.pull; import qunar.tc.qmq.consumer.register.RegistParam; /** * TODO completion javadoc. * * @author xiao.liang * @since 14 January 2020 */ public class PushConsumerParam { private String subject; private String group; private RegistPa...
ankurshukla1993/IOT-test
coeey/kotlin/_Assertions.java
<filename>coeey/kotlin/_Assertions.java package kotlin; import kotlin.jvm.JvmField; @Metadata(bv = {1, 0, 2}, d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0002\bÁ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u0016\u0010\u0003\u0...
CyberFlameGO/fbme
code/library/src/main/java/org/fbme/lib/iec61499/fbnetwork/FunctionBlockDeclaration.java
package org.fbme.lib.iec61499.fbnetwork; import org.fbme.lib.common.Reference; import org.fbme.lib.iec61499.declarations.FBTypeDeclaration; import org.fbme.lib.iec61499.declarations.ParameterAssignment; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import java.util.List; public...
aleksandarb99/Apoteka_Projekat
Backend/PharmacyProject/src/main/java/com/team11/PharmacyProject/dto/appointment/AppointmentDTO.java
package com.team11.PharmacyProject.dto.appointment; import com.team11.PharmacyProject.dto.pharmacy.PharmacyWorkerDTO; import com.team11.PharmacyProject.enums.AppointmentState; import com.team11.PharmacyProject.enums.AppointmentType; public class AppointmentDTO { private Long id; private Long startTime; ...
obrienben/openwayback
wayback-cdx-server-core/src/main/java/org/archive/cdxserver/HowManyController.java
package org.archive.cdxserver; import java.io.IOException; import java.net.URISyntaxException; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.archive.cdxserver.auth...
qq573011406/FASTBuild_UnrealEngine
Code/Tools/FBuild/FBuildCore/BFF/Functions/FunctionLibrary.h
// FunctionLibrary //------------------------------------------------------------------------------ #pragma once // Includes //------------------------------------------------------------------------------ #include "Function.h" #include "FunctionObjectList.h" // FunctionLibrary //-------------------------------------...
KZzizzle/osparc-simcore
services/api-server/src/simcore_service_api_server/db/repositories/_base.py
<filename>services/api-server/src/simcore_service_api_server/db/repositories/_base.py<gh_stars>0 from aiopg.sa.connection import SAConnection class BaseRepository: """ Repositories are pulled at every request All queries to db within that request use same connection """ def __init__(self,...
sarang-apps/darshan_browser
chrome/browser/previews/previews_lite_page_redirect_url_loader_interceptor.h
<reponame>sarang-apps/darshan_browser<gh_stars>0 // Copyright 2019 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. #ifndef CHROME_BROWSER_PREVIEWS_PREVIEWS_LITE_PAGE_REDIRECT_URL_LOADER_INTERCEPTOR_H_ #define CHROME_BROW...
lycheng/leetcode-go
str/code_20.go
<reponame>lycheng/leetcode-go<filename>str/code_20.go package str // Stack use for FILO type Stack struct { Data []string } func newStack() *Stack { s := Stack{} s.Data = make([]string, 0) return &s } func (s *Stack) push(item string) { s.Data = append(s.Data, item) } func (s *Stack) pop() bool { l := len(s.D...
shiruizhao/swift
src/predecl/DirichletDistrDecl.cpp
<reponame>shiruizhao/swift #include "DirichletDistrDecl.h" #include "../ir/ArrayTy.h" #include "../ir/DoubleLiteral.h" #include "../ir/IntLiteral.h" namespace swift { namespace predecl { DirichletDistrDecl::DirichletDistrDecl() : PreDecl(std::string("Dirichlet")) { } DirichletDistrDecl::~DirichletDistrDecl() { }...
pdf4j/icepdf
core/src/main/java/org/icepdf/core/pobjects/acroform/DocMDPTransferParam.java
<gh_stars>1-10 /* * Copyright 2006-2016 ICEsoft Technologies Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the * License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless req...
gfis/joeis-alt
src/irvine/oeis/a267/A267046.java
<gh_stars>0 package irvine.oeis.a267; // Generated by gen_pattern.pl - DO NOT EDIT here! import irvine.oeis.GeneratingFunctionSequence; /** * A267046 Number of ON (black) cells in the n-th iteration of the "Rule 91" elementary cellular automaton starting with a single ON (black) cell. * @author <NAME> */ public cl...
little-forest/dbflute-test-active-dockside
src/test/java/org/docksidestage/dockside/dbflute/whitebox/bhv/WxBhvBatchInsertTest.java
package org.docksidestage.dockside.dbflute.whitebox.bhv; import java.util.ArrayList; import java.util.List; import org.dbflute.cbean.result.ListResultBean; import org.dbflute.hook.CallbackContext; import org.dbflute.hook.SqlLogHandler; import org.dbflute.hook.SqlLogInfo; import org.dbflute.hook.SqlResultHandler; impo...
florianjacob/gpuocelot
ocelot/ocelot/translator/test/PtxToIlTranslator.h
/*! \file PtxToIlTranslator.h * \author <NAME> <<EMAIL>> * \date August 9, 2010 * \brief The header file for the PtxToIlTranslator class. */ #ifndef PTX_TO_IL_TRANSLATOR_BIN_H_INCLUDED #define PTX_TO_IL_TRANSLATOR_BIN_H_INCLUDED /*! \brief A class used to transform a PTX file into an IL equivalent */ class PtxT...
samvera-labs/chimera
app/actors/hyrax/actors/interpret_visibility_actor.rb
require File.join(Gem::Specification.find_by_name("hyrax").full_gem_path, "app/actors/hyrax/actors/interpret_visibility_actor.rb") module Hyrax module Actors # monkey patch to allow embargo_release_date to be in the past class InterpretVisibilityActor < AbstractActor private # When specifi...
aliqin/atui
src/widgets/index.js
import AddressSelect from './AddressSelect/' const VueWidget = { AddressSelect } // require.ensure([], function(require) { // VueWidget.AddressSelect = require('./AddressSelect/') // console.log(VueWidget.AddressSelect) // }) module.exports = VueWidget
ArtisanCloud/PowerWeChat
src/work/invoice/client.go
<gh_stars>10-100 package invoice import ( "github.com/ArtisanCloud/PowerLibs/v2/object" "github.com/ArtisanCloud/PowerWeChat/v2/src/kernel" response2 "github.com/ArtisanCloud/PowerWeChat/v2/src/kernel/response" "github.com/ArtisanCloud/PowerWeChat/v2/src/work/invoice/request" "github.com/ArtisanCloud/PowerWeChat/...
andreimironenko/graphics-sdk
GFX_Linux_KM/services4/3rdparty/linux_drm/drm.mod.c
<gh_stars>0 #include <linux/module.h> #include <linux/vermagic.h> #include <linux/compiler.h> MODULE_INFO(vermagic, VERMAGIC_STRING); struct module __this_module __attribute__((section(".gnu.linkonce.this_module"))) = { .name = KBUILD_MODNAME, .init = init_module, #ifdef CONFIG_MODULE_UNLOAD .exit = cleanup_module...
talos/caustic
test/test/net/caustic/http/ResponseHeadersTest.java
<filename>test/test/net/caustic/http/ResponseHeadersTest.java package net.caustic.http; import static org.junit.Assert.*; import static net.caustic.util.TestUtils.*; import java.lang.reflect.Constructor; import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.HashMap; impo...
ozaytsev86/cartodb
lib/assets/javascripts/dashboard/views/dashboard/list-view/placeholder/placeholder-item-view.js
<reponame>ozaytsev86/cartodb const CoreView = require('backbone/core-view'); const template = require('./placeholder-item-view.tpl'); const AssetsVersion = require('dashboard/helpers/assets-version'); const checkAndBuildOpts = require('builder/helpers/required-opts'); const REQUIRED_OPTS = [ 'configModel' ]; /** *...
razzaghi/JTeleBot
api/src/main/java/co/vandenham/telegram/botapi/MessageHandler.java
<filename>api/src/main/java/co/vandenham/telegram/botapi/MessageHandler.java package co.vandenham.telegram.botapi; import co.vandenham.telegram.botapi.types.Message; import java.lang.annotation.*; @Documented @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) public @interface MessageHandler { Messa...
Farfetch/notarizer
notarizer/test/mocked_data.py
class MockedData: @staticmethod def get_public_key_bytes(): return bytes("dummyPublicKey", "utf-8") @staticmethod def get_private_key_bytes(): return bytes("dummyPrivateKey", "utf-8") @staticmethod def get_fake_valid_history_content(label): history = [ {"Cre...
i-obraztsov/rambler-ui
src/constants/overlay.js
<gh_stars>100-1000 export const POINTS_X = ['left', 'right', 'center'] export const POINTS_Y = ['top', 'bottom', 'center'] /** * Правила переноса контента, если он выходит за пределы видимости */ export const MAPPING_POINTS = { right: 'left', left: 'right', center: 'center', bottom: 'top', top: 'bottom' }
TurkMvc/lol
src/easymesh/csgbsp.cpp
// // EasyMesh-Csg: The code belonging to CSG operations // // Copyright: (c) 2010-2013 <NAME> <<EMAIL>> // (c) 2010-2013 Benjamin "Touky" Huet <<EMAIL>> // This program is free software; you can redistribute it and/or // modify it under the terms of the Do What The Fuck You Want To // Public License, ...
shaojiankui/iOS10-Runtime-Headers
protocols/_UILayoutEngineSuspending.h
/* Generated by RuntimeBrowser. */ @protocol _UILayoutEngineSuspending <NSObject> @required - (bool)_isLayoutEngineSuspended; - (void)_setLayoutEngineSuspended:(bool)arg1; @end
phamngocson1408/rocket-chip-learn-scala
firrtl/src/main/scala/logger/LoggerAnnotations.scala
<filename>firrtl/src/main/scala/logger/LoggerAnnotations.scala // See LICENSE for license details. package logger import firrtl.annotations.{Annotation, NoTargetAnnotation} import firrtl.options.{HasShellOptions, ShellOption} /** An annotation associated with a Logger command line option */ sealed trait LoggerOptio...
skrzj-dev/libxccc
libxccc/xc/include/xc/common/xc_tc_common.h
/* * Copyright block: * * Source file of libxccc project * * Copyright (c) 2018 <NAME>, <EMAIL> * * Licensed under: MIT license; See the file "LICENSE" of libxccc project for more information. * * Copyright block: end */ #ifndef _XC_TC_COMMON_H_ #define _XC_TC_COMMON_H_ /* --- --- --- */ #ifdef __cplusplus ...
addstone/derby
java/org.apache.derby.engine/org/apache/derby/impl/sql/compile/ModifyColumnNode.java
<gh_stars>100-1000 /* Derby - Class org.apache.derby.impl.sql.compile.ModifyColumnNode 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 lic...
cjh10644/SLIP_LU
SLIP_LU/Source/slip_get_nonzero_pivot.c
<reponame>cjh10644/SLIP_LU<gh_stars>0 //------------------------------------------------------------------------------ // SLIP_LU/slip_get_nonzero_pivot: find a nonzero pivot in a column //------------------------------------------------------------------------------ // SLIP_LU: (c) 2019, <NAME>, <NAME>, <NAME>, // <N...
chenhui0228/sfcsm
sfcsmCtrl/writeLog.py
<gh_stars>1-10 #-*- coding: UTF-8 -*- # author 01107267 # date 2017-05-24 import time class OperateLog: def writeOperateLog(operator, optype, destip, loginfo, opstatus, db): oplog = {} # oplog['operator'] = current_user oplog['operator'] = operator oplog['optype'] = optype ...
Grigory526/2019-fall-polytech-cs
Processing/Section 6/Listing32/Listing32.pyde
i = 0 k = 1 def setup (): size(500, 500) smooth() strokeWeight(30) background(0) def draw (): global i,k stroke(i, 20) line(mouseX -50,mouseY -50, 100+mouseX -50, 100+mouseY -50) line(100+mouseX -50,mouseY -50, mouseX -50, 100+mouseY -50) i +=k if(i == 255): k=-1 ...
rds0751/fec-cms
fec/data/jinja2.py
import jinja2 from compressor.contrib.jinja2ext import CompressorExtension def environment(**options): """Create a jinja2 environment with the CompressorExtension added in""" options['extensions'] += [CompressorExtension] env = jinja2.Environment(**options) return env
ScottWinkler/github-api-app
react-ui/src/actions/compare.js
import {getURL} from '../utilities/xmlhttp.js'; var esprima=require('esprima'); var atob = require('atob'); export function setFirstUser(user){ return{ type:"SET_FIRST_USER", user } } export function setSecondUser(user){ return{ type:"SET_SECOND_USER", user } } export fu...
BuildForSDG/Team-250-Backends
src/zerohunger/accounts/tests/test_account_models.py
from rest_framework.test import APITestCase from accounts.models import Farmer, Customer, User class AccountModelsTestCase(APITestCase): def test_farmer_model(self): farmer = Farmer.objects.create_farmer( email="<EMAIL>", phone_number="08075985865", business_name="Davi...
gabrielolivrp/design-patterns
java/templatemethod/Basketball.java
package templatemethod; class Basketball extends Game { @Override public void initialize() { System.out.println("5 players"); } @Override public void startPlay() { System.out.println("Start a basketball game."); } @Override public void endPlay() { System.out.p...
limianwang/goexamples
datastructures/queue/queue.go
package queue import "sync" // Item the type of the queue type Item interface{} //Queue the queue of Items type Queue struct { items []Item lock sync.Mutex } // New creates a new Queue func New() *Queue { s := &Queue{} s.items = []Item{} return s } // Enqueue adds an Item to the end of the queue func (s *Que...
SaiKai/elasticsearch
x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ml/inference/preprocessing/MultiTests.java
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ package org.elasticsearch.xpack.core.ml.inference.preprocessing; import stati...
viditsethi13/org
tensorflow/src/gen/java/org/bytedeco/tensorflow/OpInputList.java
// Targeted by JavaCPP version 1.5.1-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tensorflow; import org.bytedeco.tensorflow.Allocator; import java.nio.*; import org.bytedeco.javacpp.*; import org.bytedeco.javacpp.annotation.*; import static org.bytedeco.tensorflow.global.tensorflow.*; // Utility class for...
influx6/tlsfs
vendor/github.com/letsencrypt/boulder/sa/proto/sa.pb.go
<gh_stars>0 // Code generated by protoc-gen-go. // source: sa/proto/sa.proto // DO NOT EDIT! /* Package proto is a generated protocol buffer package. It is generated from these files: sa/proto/sa.proto It has these top-level messages: RegistrationID JSONWebKey AuthorizationID GetPendingAuthorizationRequest Get...
dave2wave/whimsy
www/board/agenda/config.ru
require 'whimsy/asf/rack' require File.expand_path('../main.rb', __FILE__) # https://svn.apache.org/repos/infra/infrastructure/trunk/projects/whimsy/asf/rack.rb use ASF::Auth::MembersAndOfficers do |env| # allow access to bootstrap related content if env['PATH_INFO'] =~ %r{^/(app|sw)\.js(\.map)?$} or env...
unidal/phoenix
phoenix-load-balancer/src/main/java/com/dianping/phoenix/lb/constant/MessageID.java
/** * Project: phoenix-load-balancer * * File Created at Oct 28, 2013 * */ package com.dianping.phoenix.lb.constant; /** * @author <NAME> * */ public enum MessageID { STRATEGY_SAVE_FAIL("strategy_save_fail"), // STRATEGY_NAME_EMPTY("strategy_name_empty"), // STRATEGY_TYPE_EMPTY("strategy_type_em...
ngswbryan/main
src/test/java/seedu/address/logic/commands/FindNotesCommandTest.java
package seedu.address.logic.commands; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import static seedu.address.commons.core.Messages.MESSAGE_NOTES_LISTED_OVERVIEW; import static seedu....
xiongwq16/exact-algorithm
src/fctp/subproblem/FctpSubProblemDual.java
package fctp.subproblem; import fctp.AbstractFctpSubProblem; import fctp.Fctp; import fctp.Parameters; import ilog.concert.IloException; import ilog.concert.IloLinearNumExpr; import ilog.concert.IloLinearNumExprIterator; import ilog.concert.IloNumExpr; import ilog.concert.IloNumVar; import ilog.concert.IloRange; impo...
rudty/nodekell
test/take.spec.js
"use strict"; const F = require("../index"); const assert = require("assert"); describe('test take', () => { it('<', async () => { const a = [1,2,3,4,5]; const r = F.take(1, a); const result = [] for await (const e of r) { result.push(e); } assert.deepStr...
mail-ru-im/im-desktop
gui/main_window/history_control/feeds/FeedPage.h
#pragma once #include "../PageBase.h" namespace Ui { enum class FeedType { Threads, }; class FeedDataLoader : public QObject { public: FeedDataLoader(QObject* _parent) : QObject(_parent) {} virtual void loadNext() = 0; virtual bool isLoading() const { return false; } virtual bool isExhausted() c...
leafina/pxview
src/screens/MyPage/MyPage.js
<filename>src/screens/MyPage/MyPage.js import React, { Component, useRef } from 'react'; import { StyleSheet, View, ScrollView, Alert } from 'react-native'; import { connect } from 'react-redux'; import { useScrollToTop } from '@react-navigation/native'; import { SafeAreaView } from 'react-native-safe-area-context'; im...
Amoryan/fresco
imagepipeline/src/test/java/com/facebook/imagepipeline/memory/SharedByteArrayTest.java
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ package com.facebook.imagepipeline.memory; import static org.junit.Assert.*; import static org.mockito.Mockito.mock; import com.f...