repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
valjoux/valjoux
packages/util-quarter/index.js
export { monthToQuarter } from './src/monthToQuarter'
kjthegod/chromium
chrome/android/java/src/org/chromium/chrome/browser/NavigationPopup.java
<filename>chrome/android/java/src/org/chromium/chrome/browser/NavigationPopup.java // Copyright 2013 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. package org.chromium.chrome.browser; import android.content.Context; i...
tanjahennis/scoreboard
src/reducers/errors.js
<reponame>tanjahennis/scoreboard export default (state = [], { type, payload } = {}) => { return state }
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Dependcy/GJCFAssetsPicker/View/GJCFAssetsPickerScrollView.h
// // GJAssetsPickerScrollView.h // GJAssetsPickerViewController // // Created by ZYVincent QQ:1003081775 on 14-9-8. // Copyright (c) 2014年 ZYProSoft. All rights reserved. // #import <UIKit/UIKit.h> #import "GJCFAssetsPickerPreviewItemViewController.h" /* 支持缩放的UIScrollView */ @interface GJCFAssetsPickerScrollView...
simple858/tsf-simple-demo
opensource-zuul-demo/src/main/java/com/tencent/tsf/demo/zuul/filter/TestFilter.java
package com.tencent.tsf.demo.zuul.filter; import com.netflix.zuul.ZuulFilter; import com.netflix.zuul.context.RequestContext; import com.netflix.zuul.exception.ZuulException; import org.apache.commons.lang.StringUtils; import org.springframework.cloud.netflix.zuul.filters.support.FilterConstants; import org.springfram...
yizhouyan/SeqDB
src/interactive/mining/baseline/top/parameterspace/GlobalParameterSpace.java
package interactive.mining.baseline.top.parameterspace; /** * Created by yizhouyan on 7/9/17. */ public class GlobalParameterSpace { private LocalParameterSpace localParameterSpace; private int minGlobalSupport; private int violationLocalSupport; private int thresholdForLocalFSOutliers; public G...
raychorn/chrome_gui
vyperlogix/misc/paths.py
<gh_stars>1-10 __copyright__ = """\ (c). Copyright 2008-2020, Vyper Logix Corp., All Rights Reserved. Published under Creative Commons License (http://creativecommons.org/licenses/by-nc/3.0/) restricted to non-commercial educational use only., http://www.VyperLogix.com for details THE AUTHOR VYPER LOGIX CORP DISC...
komamj/Audient
app/src/main/java/com/xinshang/audient/mine/MineFragment.java
/* * Copyright 2017 Koma * * 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 wri...
applied-systems-biology/misa-imagej
src/main/java/org/hkijena/misa_imagej/ui/workbench/plotbuilder/MISAPlotSeriesGenerator.java
<filename>src/main/java/org/hkijena/misa_imagej/ui/workbench/plotbuilder/MISAPlotSeriesGenerator.java /* * Copyright by <NAME> * Research Group Applied Systems Biology - Head: Prof. Dr. <NAME> * https://www.leibniz-hki.de/en/applied-systems-biology.html * HKI-Center for Systems Biology of Infection * Leibniz Insti...
yashdeeph709/Algorithms
Algorithms/src/com/sorting/QuickSort.java
package com.sorting; public class QuickSort { public static void main(String args[]) { int[] array={38, 27, 43, 3, 9, 82, 10}; qsort(array,0,array.length-1); printArray(array); } public static void qsort(int[] array,int start,int end){ if(start<end){ int partition_key=hPartition(array,start,end); prin...
LyricGan/Grace
library_gson/src/main/java/com/lyricgan/gson/adapter/BooleanTypeAdapter.java
package com.lyricgan.gson.adapter; import com.google.gson.TypeAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonToken; import com.google.gson.stream.JsonWriter; import java.io.IOException; /** * 自定义json布尔类型解析 * @author <NAME> */ public class BooleanTypeAdapter extends TypeAdapte...
cheechang/cppcc
vs2017/ui/mainwindow/chat/bubble/MiniVedioMessageWidget.cpp
#include "MiniVedioMessageWidget.h" //#include "MiniVedioMessageWidgetWidget.h" #include <QWidget> #include <QProgressBar> #include <QMouseEvent> #include <QVBoxLayout> #include <QStackedWidget> #include <QLabel> #include <QMovie> #include <QFileInfo> #include <QTimer> #include <QEventLoop> #include <QTime> #include "c...
miguelsrrobo/C-C-
Qt/Qt_Aula_05/mainwindow.cpp
#include "mainwindow.h" #include "ui_mainwindow.h" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) , ui(new Ui::MainWindow) { ui->setupUi(this); } MainWindow::~MainWindow() { delete ui; } void MainWindow::on_pushButton_clicked() { QMessageBox::StandardButton resposta = QMessageBox:...
wuman/fbpcf
fbpcf/mpc_framework/engine/communication/IPartyCommunicationAgentFactory.h
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <memory> #include "fbpcf/mpc_framework/engine/communication/IPartyCommunicationAgent.h" namespace fbpcf::...
seifgh/home-seller-web-app
front-end-pages/properties-react-page/src/components/Header.js
<gh_stars>0 import React, {useContext, useState} from 'react'; import { Link } from 'react-router-dom'; import HeaderSearch from './header/HeaderSearch'; import HeaderUser from './header/HeaderUser'; import logo from './../images/logo.png'; import { GlobalContext } from './../state-manager/globalState'; import { REACT...
EDS-APHP/LightICE
src/drivers/philips/intellivue/data/AttributeValueList.java
<filename>src/drivers/philips/intellivue/data/AttributeValueList.java /******************************************************************************* * Copyright (c) 2014, MD PnP Program * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted provi...
Yorafa/TextAdventure
src/test/java/entity/PocketTest.java
<gh_stars>0 package entity; import org.junit.Before; import org.junit.Test; import java.util.ArrayList; import static org.junit.Assert.*; public class PocketTest { private Pocket pocket; private Pokemon testPokemon; @Before public void setUp() { pocket = new Pocket(); BasePokemonDat...
comprakt/comprakt-fuzz-tests
output/a9f0d2e1903742379a6072eccc947aa0.java
class JuFpp { public boolean y2ca; public int[] WYW () throws XX0xdMI { { ; ; { void _K_lHig2r; } ( this.anpK66O3o).f5JODo0N; while ( false[ 13.g8SGAPM]) if ( this.V) if ( !new Rsg0Q6LuEb().J_hvT) -!( -new boolean[ ...
MarcOliva/Rest-Api-Colegio
src/main/java/com/oliva/marc/controller/TeacherController.java
package com.oliva.marc.controller; import java.net.URI; import java.util.ArrayList; import java.util.List; import java.util.Optional; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.we...
DeltixInc/ValueTypes4Java
java/test7/src/test/java/deltix/vtype/test/SafeArrayCopy.java
<reponame>DeltixInc/ValueTypes4Java /* * Copyright 2017-2018 Deltix, 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 * * Unles...
mohdab98/cmps252_hw4.2
src/cmps252/HW4_2/UnitTesting/record_1928.java
package cmps252.HW4_2.UnitTesting; import static org.junit.jupiter.api.Assertions.*; import java.io.FileNotFoundException; import java.util.List; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import cmps252.HW4_2....
kkcookies99/UAST
Dataset/Leetcode/train/1/116.js
var XXX = function(nums, target) { for(var i = 0; i < nums.length - 1; i++){ for( k = i + 1; k < nums.length -1 ; k++){ if(nums[i]+nums[k] == target){ return [i,k]; } } } }; undefined for (i = 0; i < document.getElementsByTagName("code").length; i++) { cons...
TileDB-Inc/TileDB-CF-Py
tests/netcdf_engine/test_convert_timestamp.py
# Copyright 2021 TileDB Inc. # Licensed under the MIT License. import numpy as np import pytest import tiledb from tiledb.cf import NetCDF4ConverterEngine netCDF4 = pytest.importorskip("netCDF4") class TestCopyAtTimestamp: """Test copying a simple NetCDF file at a specified timestamp. NetCDF File: dim...
starmarke/starmarke
node_modules/istanbul-lib-instrument/src/index.js
const { defaults } = require('@istanbuljs/schema'); const Instrumenter = require('./instrumenter'); const programVisitor = require('./visitor'); const readInitialCoverage = require('./read-coverage'); /** * createInstrumenter creates a new instrumenter with the * supplied options. * @param {Object} opts - instrumen...
webdevhub42/Lambda
WEEKS/CD_Sata-Structures/_RESOURCES/CODESIGNAL/tennis_set.py
def tennisSet(score1, score2): return ( True if score1 == 6 and score2 < 5 or score1 < 5 and score2 == 6 or score1 == 7 and 5 <= score2 < 7 or score2 == 7 and 5 <= score1 < 7 else False )
flomar/CrypTool-VS2015
trunk/CrypTool/PrimePolynom.h
<gh_stars>0 /************************************************************************** Copyright [2009] [CrypTool Team] This file is part of CrypTool. 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 t...
cycloidio/cycloid-cli
client/client/organization_config_repositories/create_config_repository_responses.go
// Code generated by go-swagger; DO NOT EDIT. package organization_config_repositories // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" "github....
hxcorp/DongTai-agent-java
dongtai-core/src/main/java/io/dongtai/iast/core/handler/hookpoint/service/url/KafkaUrlHandler.java
<reponame>hxcorp/DongTai-agent-java package io.dongtai.iast.core.handler.hookpoint.service.url; import java.util.ArrayList; import java.util.List; public class KafkaUrlHandler implements ServiceUrlHandler { @Override public List<ServiceUrl> processUrl(String host, String port) { List<ServiceUrl> urls ...
yennanliu/Python_basics
leetcode_python/Tree/average-of-levels-in-binary-tree.py
""" Given the root of a binary tree, return the average value of the nodes on each level in the form of an array. Answers within 10-5 of the actual answer will be accepted. Example 1: Input: root = [3,9,20,null,15,7] Output: [3.00000,14.50000,11.00000] Explanation: The average value of nodes on level 0 is 3, on l...
JJediny/us-digital-registry
db/migrate/20120510200447_create_agency_contacts.rb
class CreateAgencyContacts < ActiveRecord::Migration def change create_table :agency_contacts do |t| t.string :email t.string :agency_id t.timestamps end add_index :agency_contacts, :agency_id end end
aps337/unum-sdk
src/uclibc/uClibc-0.9.33.2/test/nptl/tst-cond12.c
/* Copyright (C) 2003 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by <NAME> <<EMAIL>>, 2003. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foun...
jrbeverly/JCompiler
src/test/resources/e2e/web_examples/NonThisFieldAccess.java
<filename>src/test/resources/e2e/web_examples/NonThisFieldAccess.java public class NonThisFieldAccess { public NonThisFieldAccess() {} public int x; public void m() { new NonThisFieldAccess().x = 42; } }
ToucanToco/releaseman
src/actions/close-pull-request.js
import { logInfo, logTaskStart } from '../log' const CLOSE_PULL_REQUEST = 'CLOSE_PULL_REQUEST' const closePullRequest = ({ getters }) => async ({ isSkipped, number }) => { logTaskStart('Close pull request') if (isSkipped) { return undefined } logInfo(`Closing pull request #${number}...`) await getter...
lechium/tvOS142Headers
System/Library/PrivateFrameworks/TelephonyUtilities.framework/TUCallProviderManagerDataSource.h
<gh_stars>1-10 /* * This header is generated by classdump-dyld 1.5 * on Tuesday, November 10, 2020 at 10:14:37 PM Mountain Standard Time * Operating System: Version 14.2 (Build 18K57) * Image Source: /System/Library/PrivateFrame...
hackercowboy/codecowboys.io
src/pages/_app.page.js
/* eslint-disable react/jsx-props-no-spreading */ import React from 'react'; import PropTypes from 'prop-types'; import { IntlProvider } from 'react-intl'; import { useRouter } from 'next/router'; import CookieConsent from '../components/CookieConsent'; import messages from '../i18n'; import 'react-image-gallery/sty...
mouhsinelonly/el-student-spa
src/routes/Home/components/Navbar/MobileNavbar.js
// @flow import * as React from 'react' import { IndexLink, Link } from 'react-router' import './Navbar.scss' import Icon from 'components/Icon' import { Translate } from 'react-localize-redux' export const MobileNavbar = (): React.Element<'ul'> => <ul className='hidden-sm-up c-mobile-navbar'> <li className='c-mobil...
clambin/sciensano
apiclient/vaccines/apiclient_test.go
package vaccines_test import ( "context" "github.com/clambin/sciensano/apiclient/vaccines" "github.com/clambin/sciensano/apiclient/vaccines/fake" "github.com/clambin/sciensano/measurement" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "net/http" "net/http/httptest" "testing" "tim...
aconstlink/snakeoil
geometry/3d/helper.h
<gh_stars>1-10 //------------------------------------------------------------ // snakeoil (c) <NAME> // Distributed under the MIT license //------------------------------------------------------------ #ifndef _SNAKEOIL_GEOMETRY_3D_HELPER_H_ #define _SNAKEOIL_GEOMETRY_3D_HELPER_H_ #include "../typedefs.h" #include <sn...
gaurangkumar/crosswalk
runtime/common/xwalk_switches.cc
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Copyright (c) 2013 Intel Corporation. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "xwalk/runtime/common/xwalk_switches.h" namespace switches { // Specifies the...
johan-hanson/etheder
etheder-engine/src/main/java/se/webinfostudio/game/etheder/service/research/ResearchService.java
package se.webinfostudio.game.etheder.service.research; import java.util.List; import javax.inject.Named; import se.webinfostudio.game.etheder.entity.research.Research; /** * * @author <NAME> */ @Named public class ResearchService { // @Inject // private ResearchRepository researchRepository; /** * Finds al...
rwietter/codebase
javascript/FunctionalJS/#1-Module/functions/challenges/genericReturnFunction.js
<filename>javascript/FunctionalJS/#1-Module/functions/challenges/genericReturnFunction.js<gh_stars>0 function sum(a) { return (b) => (c) => a + b + c; } const getSum = sum(3)(4); console.log(getSum(5));
Glitch0011/DirectX11-Demo
Smooth_Graphics/Include/VertexBufferController (Travesty's conflicted copy 2014-10-09).h
#include <d3d11.h> #include <vector> #include <SimpleVertex.h> #include <string> #include <NamedResource.h> #include <BufferController.h> using namespace std; namespace SmoothGraphics { class VertexBuffer : public Buffer { protected: ID3D11UnorderedAccessView* resourceView; public: VertexBuffer(wstring name)...
FlavioFalcao/open-source-search-engine
urlinfo.cpp
// <NAME>, copyright Jan 2002 // normalizes urls from stdin #include "gb-include.h" #include "Url.h" #include "Mem.h" #include "Titledb.h" #include "HttpMime.h" #include "SiteGetter.h" //#include "Tfndb.h" //#include "Msg50.h" //#include "Msg16.h" bool mainShutdown ( bool urgent ) { return true; } bool closeAll ( v...
wgiacomin/node-api
src/models/Cliente.js
<reponame>wgiacomin/node-api const Sequelize = require('sequelize') class Cliente extends Sequelize.Model{ static init(sequelize){ super.init( { nome: Sequelize.STRING, cnpj: Sequelize.STRING, endereco: Sequelize.STRING, associado: Sequelize.INTEGER, }, { ...
SticksDev/SPOT
src/scouting/public/js/waiting.js
<reponame>SticksDev/SPOT<filename>src/scouting/public/js/waiting.js let hints = ["If you misclick a button, you can always press UNDO to undo your mistake!","Show up to scout on time! Try to be there a few minutes in advance.","Stay focused when scouting. Data you collect helps your team greatly.","If you ever have an ...
xieweiAlex/Leetcode_solutions
September/week4/NumDecodings.java
package September.week4; /* A message containing letters from A-Z is being encoded to numbers using the following mapping way: 'A' -> 1 'B' -> 2 ... 'Z' -> 26 Beyond that, now the encoded string can also contain the character '*', which can be treated as one of the numbers from 1 to 9. Given the encoded message cont...
luongnvUIT/prowide-iso20022
model-reda-types/src/generated/java/com/prowidesoftware/swift/model/mx/dic/FundPaymentType1Code.java
<filename>model-reda-types/src/generated/java/com/prowidesoftware/swift/model/mx/dic/FundPaymentType1Code.java package com.prowidesoftware.swift.model.mx.dic; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for FundPaymentType1Code. * * <p>The following sc...
intel-go/omniscidb
Tests/ArrowSQLRunner/SQLiteComparator.h
<gh_stars>1-10 /* * Copyright 2021 OmniSci, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
grbd/GBD.Embedded.CMake4Mbed
lib/mbed/extra_targets/cmsis/TARGET_Atmel/TARGET_SAM21/utils/cmsis/samd21/include/component/comp_pac.h
#ifndef _SAMD21_PAC_COMPONENT_ #define _SAMD21_PAC_COMPONENT_ /* ========================================================================== */ /** SOFTWARE API DEFINITION FOR PAC */ /* ========================================================================== */ /** \addtogroup SAMD21_PAC Peripheral Access Controller...
zparnold/aws-sdk-go-v2
service/applicationautoscaling/types/enums.go
<reponame>zparnold/aws-sdk-go-v2 // Code generated by smithy-go-codegen DO NOT EDIT. package types type AdjustmentType string // Enum values for AdjustmentType const ( AdjustmentTypeChangeincapacity AdjustmentType = "ChangeInCapacity" AdjustmentTypePercentchangeincapacity AdjustmentType = "PercentChangeInCa...
wenkokke/LambdaCalc
src/main/java/lambdacalc/impl/ISymbolPrinter.java
<gh_stars>1-10 package lambdacalc.impl; import static lombok.AccessLevel.PRIVATE; import lambdacalc.Symbol; import lambdacalc.SymbolPrinter; import lambdacalc.TypePrinter; import lambdacalc.Types; import lombok.RequiredArgsConstructor; import lombok.experimental.FieldDefaults; @RequiredArgsConstructor @FieldDefaults(...
fabiojna02/OpenCellular
firmware/coreboot/src/vendorcode/amd/agesa/f15tn/Proc/Common/AmdInitReset.c
/* $NoKeywords:$ */ /** * @file * * AMD AGESA Basic Level Public APIs * * Contains basic Level Initialization routines. * * @xrefitem bom "File Content Label" "Release Content" * @e project: AGESA * @e sub-project: Interface * @e \$Revision: 63425 $ @e \$Date: 2011-12-22 11:24:10 -0600 (Thu, 22 Dec 20...
knmcguire/gap_sdk
examples/native/pulpos/periph/esp8266/AT_RING_BUFFER.h
<filename>examples/native/pulpos/periph/esp8266/AT_RING_BUFFER.h #include <stdio.h> #include <rt/rt_api.h> #include "Gap8.h" #include <stdint.h> int AT_COMMAND_Init(int baudrate); void AT_COMMAND_Write(char *command, int length); int AT_COMMAND_Read(char *r_buf, int length);
waweber/colorbot
colorbot/twitter/drawing.py
<reponame>waweber/colorbot import pngcanvas def create_png(r, g, b): """Create a PNG from r, g, b, data. RGB should be on the [-1.0, 1.0] scale. Returns: bytes: PNG image bytes """ r = round((r + 1) / 2 * 255) g = round((g + 1) / 2 * 255) b = round((b + 1) / 2 * 255) canvas ...
execomrt/newton-dynamics
newton-4.00/doc/html/classd_bezier_spline.js
var classd_bezier_spline = [ [ "dBezierSpline", "classd_bezier_spline.html#abffbe67d583c6185d6cd9d58cac6c3a4", null ], [ "dBezierSpline", "classd_bezier_spline.html#a7fa17ee6b58141b0cb6f61c62c34f837", null ], [ "~dBezierSpline", "classd_bezier_spline.html#a80a79a2bdec4ebda389b71a97e7c5432", null ], [ "C...
halak/bibim
extlibs/freetype-2.5.2/src/pfr/PaxHeaders.20920/pfrobjs.h
30 atime=1386526222.311500098 30 ctime=1374498495.918317191
wjsi/mars
mars/tensor/base/tile.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 1999-2021 Alibaba Group Holding 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-...
Twinparadox/AlgorithmProblem
Baekjoon/4806.cpp
<reponame>Twinparadox/AlgorithmProblem #include <iostream> #include <string> using namespace std; int main(void) { cin.ignore(); string s; int cnt = 0; while (getline(cin, s)) cnt++; cout << cnt; }
priya1puresoftware/python-slack-sdk
integration_tests/web/test_admin_conversations.py
import asyncio import logging import os import time import unittest from integration_tests.env_variable_names import ( SLACK_SDK_TEST_GRID_ORG_ADMIN_USER_TOKEN, SLACK_SDK_TEST_GRID_IDP_USERGROUP_ID, SLACK_SDK_TEST_GRID_TEAM_ID, SLACK_SDK_TEST_GRID_USER_ID, ) from integration_tests.helpers import async_...
blbarker/atk
engine-plugins/graph-plugins/src/test/scala/org/trustedanalytics/atk/plugins/orientdb/GraphDbFactoryTest.scala
<gh_stars>1-10 /** * Copyright (c) 2015 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 requir...
fxiao/gitlab
ee/lib/ee/gitlab/search_results.rb
# frozen_string_literal: true module EE module Gitlab module SearchResults extend ::Gitlab::Utils::Override private override :projects def projects super.with_compliance_framework_settings end end end end
GuillaumeSimo/autoforecast
autoforecast/metrics/metrics.py
import numpy as np from sklearn.metrics import mean_absolute_error, mean_absolute_percentage_error, mean_squared_error def encode(data, col="bank"): map_col_to_col_id = {col: col_id for col_id, col in enumerate(data[col].unique())} data[f"{col}_token"] = data[col].map(map_col_to_col_id) return data, map_c...
constrainedlearning/advbench
advbench/scripts/train_no_validation.py
<reponame>constrainedlearning/advbench import argparse from itertools import combinations_with_replacement import torch import random import numpy as np import os import json import pandas as pd import time from humanfriendly import format_timespan from advbench import datasets from advbench import algorithms from ad...
pengshangxian/wujie
pages/mycenter-extend/groupinfomation/groupinfomation.js
<gh_stars>0 // pages/mycenter-extend//groupinfomation/groupinfomation.js const util = require('../../../utils/util.js') Page({ /** * 页面的初始数据 */ data: { }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { util.request("/WxUserInfo/MyGroup", {}, "POST", false).then((res) => { consol...
ascensio/scala-algo
src/org.salgo/sequences/searching/KnuthMorrisPratt.scala
package org.salgo.sequences.searching import scala.annotation.tailrec object KnuthMorrisPratt extends StringSearchAlgorithm { override def search(pattern: String, text: String, stopAtFirstMatch: Boolean, numberOfCharacters: Int): Seq[Int] = { val patternLength = pattern.length val textLength = text.length ...
chromium7/mangovodo
django_project/celery.py
<reponame>chromium7/mangovodo<filename>django_project/celery.py import os from celery import Celery # Set the default django settings module for the 'celery' program os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'django_project.settings.production') app = Celery('mangovodo') app.config_from_object('django....
AndreaVoltan/MyKratos7.0
kratos/solving_strategies/schemes/residual_based_bdf_displacement_scheme.h
<filename>kratos/solving_strategies/schemes/residual_based_bdf_displacement_scheme.h // | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/...
scottcmerritt/feedbacker
app/models/feedbacker/data_log.rb
<reponame>scottcmerritt/feedbacker module Feedbacker class DataLog < ApplicationRecord self.table_name = "data_logs" scope :recent, -> { order('created_at DESC') } def marshaled? self.value[0...2] != "[{" end def load_value begin return JSON.parse(self.value) if !marshaled? JSON.parse(Marshal.load(self...
marynaKhromova/kyma
components/helm-broker/internal/controller/broker/cluster_broker_facade_test.go
<gh_stars>0 package broker import ( "fmt" "testing" "context" "github.com/kubernetes-incubator/service-catalog/pkg/apis/servicecatalog/v1beta1" "github.com/kyma-project/kyma/components/helm-broker/internal/controller/automock" "github.com/sirupsen/logrus" "github.com/stretchr/testify/assert" "github.com/stre...
bgerxx/woodpecker
integrationtest/vm/virtualrouter/test_stub.py
<filename>integrationtest/vm/virtualrouter/test_stub.py<gh_stars>0 ''' Create an unified test_stub to share test operations @author: Youyk ''' import os import subprocess import sys import time import threading import zstacklib.utils.ssh as ssh import zstackwoodpecker.test_lib as test_lib import zsta...
mryx00/LiteBlog
gunSelf-admin/src/main/java/com/stylefeng/gunSelf/modular/system/dao/BlogtagRelaMapper.java
<filename>gunSelf-admin/src/main/java/com/stylefeng/gunSelf/modular/system/dao/BlogtagRelaMapper.java package com.stylefeng.gunSelf.modular.system.dao; import com.stylefeng.gunSelf.modular.system.model.BlogtagRela; import com.baomidou.mybatisplus.mapper.BaseMapper; /** * <p> * Mapper 接口 * </p> * * @author style...
znerd/xins
src/java/org/xins/server/EngineState.java
<gh_stars>0 /* * $Id: EngineState.java,v 1.13 2007/03/15 17:08:41 agoubard Exp $ * * Copyright 2003-2007 Orange Nederland Breedband B.V. * See the COPYRIGHT file for redistribution and use restrictions. */ package org.xins.server; import org.xins.common.MandatoryArgumentChecker; /** * State of an <code>Engine</...
guoshucan/mpaas
ghost.framework.module/src/main/java/ghost/framework/module/data/bind/entity/package-info.java
<gh_stars>1-10 package ghost.framework.module.data.bind.entity;
gutenye/react-mc
src/Dialog/__tests__/Surface.test.js
<filename>src/Dialog/__tests__/Surface.test.js import React from 'react' import { shallow } from 'enzyme' import Surface from '../Surface' it('renders without crashing', () => { shallow(<Surface />) })
ahmadmo/cbox
src/main/java/org/telegram/bot/cbox/ChatSession.java
<filename>src/main/java/org/telegram/bot/cbox/ChatSession.java package org.telegram.bot.cbox; import com.google.common.cache.RemovalListener; import com.google.common.cache.RemovalNotification; import org.telegram.bot.cbox.model.FileItem; import org.telegram.bot.messaging.KeyPair; import org.telegram.bot.util.concurre...
UOC/dlkit
dlkit/primordium/mapping/coordinate_primitives.py
""" Basic coordinate implementions of osid.mapping.coordinate. Can be used by implementations and consumer applications alike. """ from dlkit.abstract_osid.mapping import primitives as abc_mapping_primitives from dlkit.abstract_osid.osid.errors import NullArgument, InvalidArgument from ..osid.primitives import OsidP...
jeanluctritsch/CommunityServer
web/studio/ASC.Web.Studio/addons/talk/js/talk.tabscontainer.js
<gh_stars>0 /* * * (c) Copyright Ascensio System Limited 2010-2021 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless requi...
uw-it-cte/uw-restclients
restclients/test/uwnetid/subscription_60.py
<filename>restclients/test/uwnetid/subscription_60.py from django.test import TestCase from restclients.uwnetid.subscription_60 import is_current_staff,\ is_current_faculty, get_kerberos_subs, is_current_clinician from restclients.exceptions import DataFailureException from restclients.test import fdao_uwnetid_over...
kxxcn/Squad
app/src/main/java/dev/kxxcn/app_squad/ui/main/match/MatchAdpater.java
<filename>app/src/main/java/dev/kxxcn/app_squad/ui/main/match/MatchAdpater.java package dev.kxxcn.app_squad.ui.main.match; import android.app.Activity; import android.content.Context; import android.graphics.Color; import android.graphics.drawable.ColorDrawable; import android.support.annotation.NonNull; import androi...
mrkyle7/app-runner
src/test/java/com/danielflower/apprunner/runners/RustRunnerTest.java
<filename>src/test/java/com/danielflower/apprunner/runners/RustRunnerTest.java package com.danielflower.apprunner.runners; import org.apache.commons.io.output.StringBuilderWriter; import org.junit.BeforeClass; import org.junit.Test; import scaffolding.Photocopier; import java.util.Optional; import static com.danielf...
cccaaannn/homeworks
2-java/other/ProgrammingChallenge/ShoppingListProblem/src/com/can/ShoppingListProcessor.java
<filename>2-java/other/ProgrammingChallenge/ShoppingListProblem/src/com/can/ShoppingListProcessor.java package com.can; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; public cla...
peZhmanParsaee/js-design-patterns
decorator/level-db-decorator/run.js
const level = require("level"); const levelSubscribe = require("./levelSubscribe"); var db = level(__dirname + "/db", { valueEncoding: "json" }); db = levelSubscribe(db); db.subscribe({ doctype: "tweet", language: "en" }, function (k, val) { console.log(val); }); db.put(1, { doctype: "tweet", text: "hi", language:...
leongold/ovirt-engine
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/GetJobsByCorrelationIdQueryParameters.java
package org.ovirt.engine.core.common.queries; public class GetJobsByCorrelationIdQueryParameters extends VdcQueryParametersBase { private static final long serialVersionUID = 758029173419093849L; private String correlationId; public void setCorrelationId(String correlationId) { this.correlatio...
MacBry/StowarzyszenieNaukiJavy
MacBry-Maciej-Bryja/SimpleTodoApp1/src/main/java/com/mac/bry/simpleTodo/appController/MainController.java
<reponame>MacBry/StowarzyszenieNaukiJavy package com.mac.bry.simpleTodo.appController; import java.nio.charset.Charset; import java.util.Random; import com.mac.bry.simpleTodo.DAO.UserDAO; import com.mac.bry.simpleTodo.Enums.LoginOption; import com.mac.bry.simpleTodo.entity.User; import com.mac.bry.simpleTodo.utilitis...
6days9weeks/Novus
discord/ext/vbu/web/utils/oauth_models.py
import typing import discord class OauthGuild(object): """ A guild object from an oauth integration. Attributes: id (int): The ID of the guild. name (str): The name of the guild. icon (discord.Asset): The guild's icon. owner_id (int): The ID of the owner for the guild. ...
ishiura-compiler/CF3
testsuite/EXP_3/test554.c
<filename>testsuite/EXP_3/test554.c /* CF3 Copyright (c) 2015 ishiura-lab. Released under the MIT license. https://github.com/ishiura-compiler/CF3/MIT-LICENSE.md */ #include<stdio.h> #include<stdint.h> #include<stdlib.h> #include"test1.h" int64_t x1 = 24330344757235LL; int32_t t0 = -15125; volatile int32_t x9 = ...
datatok/djobi
djobi-core/src/main/java/io/datatok/djobi/engine/events/JobAwareEvent.java
package io.datatok.djobi.engine.events; import io.datatok.djobi.engine.Job; import io.datatok.djobi.event.Event; public abstract class JobAwareEvent extends Event { protected Job job; public JobAwareEvent(Job job) { this.job = job; } public Job getJob() { return job; } publ...
Missouri-BMI/popmednet
Lpp.Dns.Portal/js/Dialogs/MetadataBulkEditPropertiesEditor.js
<gh_stars>0 var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototyp...
ftdi-paul-jiao/stm32L4_Eve_example
FT_Esd_Framework/Ft_Esd.c
<filename>FT_Esd_Framework/Ft_Esd.c /* Copyright (C) 2015-2016 Future Technology Devices International Ltd THIS SOFTWARE IS PROVIDED BY FUTURE TECHNOLOGY DEVICES INTERNATIONAL LIMITED "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS F...
mikiec84/OpenSPIFe
gov.nasa.ensemble.core.jscience/src/gov/nasa/ensemble/core/jscience/util/STKDateFormat.java
/******************************************************************************* * Copyright 2014 United States Government as represented by the * Administrator of the National Aeronautics and Space Administration. * All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you m...
asmaloney/gactar
actr/modules/modules.go
<reponame>asmaloney/gactar // Package modules implements several ACT-R modules. package modules import ( "github.com/asmaloney/gactar/actr/buffer" "github.com/asmaloney/gactar/actr/params" "github.com/asmaloney/gactar/util/container" ) // ModuleInterface provides an interface for the ACT-R concept of a "module". t...
ducis/operating-system-labs
sr/lsri/kernel/system/do_privctl.c
/* The kernel call implemented in this file: * m_type: SYS_PRIVCTL * * The parameters for this kernel call are: * m2_i1: CTL_ENDPT (process endpoint of target) * m2_i2: CTL_REQUEST (privilege control request) * m2_p1: CTL_ARG_PTR (pointer to request data) */ #include "kernel/system.h" #inc...
vsilyaev/tensorflow
tensorflow/core/kernels/transpose_op.h
<reponame>vsilyaev/tensorflow #ifndef TENSORFLOW_KERNELS_TRANSPOSE_OP_H_ #define TENSORFLOW_KERNELS_TRANSPOSE_OP_H_ #include "third_party/eigen3/unsupported/Eigen/CXX11/Tensor" #include "tensorflow/core/framework/op_kernel.h" #include "tensorflow/core/framework/tensor_types.h" namespace tensorflow { template <typena...
EmileRouxTriton/player-sdk
src/lib/dojo/cldr/nls/en-au/japanese.js
<reponame>EmileRouxTriton/player-sdk<gh_stars>100-1000 define( //begin v1.x content { "dateFormat-short": "d/MM/yy GGGGG", "dateFormat-medium": "dd/MM/y G", "dateFormat-long": "d MMMM y G", "dateFormat-full": "EEEE, d MMMM y G" } //end v1.x content );
Vilsol/NMSWrapper
src/main/java/me/vilsol/nmswrapper/wraps/unparsed/NMSEnchantmentProtection.java
package me.vilsol.nmswrapper.wraps.unparsed; import me.vilsol.nmswrapper.*; import me.vilsol.nmswrapper.reflections.*; import me.vilsol.nmswrapper.wraps.*; @ReflectiveClass(name = "EnchantmentProtection") public class NMSEnchantmentProtection extends NMSEnchantment { public NMSEnchantmentProtection(Object nmsObj...
ejezie/La-Marzocco
assets/js/contact.js
$(document).ready(function(){ $("#submitEnquiry").click(function(){ var enquiryMessage = $("#enquiryMessage").val(); if(enquiryMessage.trim() != ''){ getUserProfile(function(profile_res){ console.log("profile_res : " , profile_res) if(profile_res.status == 200){ var ...
MarianMacik/thorntail
plugins/gradle/tooling-api/src/main/java/org/wildfly/swarm/plugin/gradle/DependencyDescriptor.java
/* * Copyright 2018 Red Hat, Inc, and individual contributors. * * 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...
Elliot-Coupe/qiskit-terra
qiskit/opflow/list_ops/__init__.py
# This code is part of Qiskit. # # (C) Copyright IBM 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
iSYSTEMLabs/testIDEA
testidea/si.isystem.itest.plugin.core/src/si/isystem/itest/common/SimpleProgressMonitor.java
package si.isystem.itest.common; import org.eclipse.core.runtime.IProgressMonitor; public class SimpleProgressMonitor implements IProgressMonitor { private boolean m_isCanceled = false; @Override public void beginTask(String name, int totalWork) { m_isCanceled = false; } ...
burberius/eve-esi
src/test/java/net/troja/eve/esi/model/SystemPlanetTest.java
<filename>src/test/java/net/troja/eve/esi/model/SystemPlanetTest.java /* * EVE Swagger Interface * An OpenAPI for EVE Online * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ package net.tro...