repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
Team-PyRated/PyRated
Final/Dataset/B2016_Z1_Z2/student8428.cpp
<reponame>Team-PyRated/PyRated<filename>Final/Dataset/B2016_Z1_Z2/student8428.cpp #include <iostream> #include <vector> #include <stdexcept> #include <iomanip> #include <stdexcept> typedef std::vector<std::vector<double>> Matrica; Matrica StvoriMatricu(int n, int m) { Matrica mat; mat.resize(n); for(in...
nitehawk42/jadira
usertype.core/src/main/java/org/jadira/usertype/dateandtime/joda/columnmapper/StringColumnLocalDateMapper.java
/* * Copyright 2010, 2011 <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 l...
lancetipton/keg-cli
src/utils/docker/tags/tagHelpers.js
<filename>src/utils/docker/tags/tagHelpers.js const path = require('path') const { Logger } = require('KegLog') const { git } = require('KegGitCli') const { get, isArr } = require('@keg-hub/jsutils') /** * Loops through the tags array, cleans them up, then returns them * @type function * @param {Array} tags - Custo...
onmyway133/Runtime-Headers
macOS/10.13/Foundation.framework/NSCFType.h
/* Generated by RuntimeBrowser Image: /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation */ @interface NSCFType : NSObject + (BOOL)automaticallyNotifiesObserversForKey:(id)arg1; - (BOOL)allowsWeakReference; - (unsigned long long)hash; - (BOOL)isEqual:(id)arg1; - (oneway void)release; - (id)ret...
wrburgess/access-cal-server
spec/controllers/api/v1/organizations_controller_spec.rb
<reponame>wrburgess/access-cal-server require "rails_helper" describe Api::V1::OrganizationsController, type: :controller do describe "accepting requests" do context "with incorrect token" do before do request.env["HTTP_AUTHORIZATION"] = ActionController::HttpAuthentication::Token.encode_credential...
simokhov/schemas44
src/main/java/ru/gov/zakupki/oos/eptypes/_1/ProtocolEZP1ExtractType.java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2019.07....
drcsturm/project-euler
p018.py
<reponame>drcsturm/project-euler<filename>p018.py # By starting at the top of the triangle below and moving to adjacent numbers on the row below, the maximum total from top to bottom is 23. # 3 # 7 4 # 2 4 6 # 8 5 9 3 # That is, 3 + 7 + 4 + 9 = 23. # Find the maximum total from top to bottom of the triangle ...
hulu7/deepnews
admin/src/pages/Setting/Controller.js
export default function Controller($scope,$state,SettingSer,CommonJs,FileUploader){ // 获取登录token const Token = window.localStorage.getItem('Token'); if(!Token){ $state.go('login'); return; } // 表单字段 $scope.formData = { rootDir : '', webTitle : '', webLogo : '', WordLogo : '', description : '', ...
maoa3/scalpel
psx/_dump_/1/_dump_c_src_/diabpsx/source/stores.cpp
// C:\diabpsx\SOURCE\STORES.CPP #include "types.h" // address: 0x8006402C // line start: 150 // line end: 151 void FreeStoreMem__Fv() { } // address: 0x80064034 // line start: 159 // line end: 162 void DrawSTextBack__Fv() { } // address: 0x800640A4 // line start: 167 // line end: 234 void PrintSString__FiiU...
ajpmaclean/vtk-examples
src/Cxx/PolyData/ResampleAppendedPolyData.cxx
#include <vtkActor.h> #include <vtkAppendPolyData.h> #include <vtkCamera.h> #include <vtkCellArray.h> #include <vtkCellLocator.h> #include <vtkInteractorStyleTrackballCamera.h> #include <vtkMinimalStandardRandomSequence.h> #include <vtkNamedColors.h> #include <vtkNew.h> #include <vtkPlaneSource.h> #include <vtkPlatonic...
dthree/wat
src/vorpal/indexer.js
'use strict'; const chalk = require('chalk'); module.exports = function (vorpal, options) { const app = options.app; vorpal .command('index', 'Updates the index based on local docs.') .alias('update') .option('-s, --static', 'Overrides static files, for building and submitting new docs.') .action...
clairegriffin/lockss-core
src/test/java/org/lockss/config/TestTdbAu.java
<gh_stars>1-10 /* * $Id$ */ /* Copyright (c) 2000-2014 Board of Trustees of Leland Stanford Jr. University, all rights reserved. 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 restric...
aimuch/AiTools
darknet/clipPointsROI.py
<gh_stars>10-100 # -*- coding: utf-8 -*- # Author : <NAME> # Last modified: 2019-07-23 # This tool is used to clip images by reading txt labels # input: python3 clipImg.py ./img ./txt ./dst # output: # ./dst/obj1 # ./dst/obj2 # The Label txt format: # classNO center_x center_y width height import argparse import os ...
matallana/Angular6-base-NOT-clean
routes/ocupations/ocupation.js
<gh_stars>0 /* *Autor: <NAME> *Fecha: 01-2018-2019 *Modulo: routes profesion se crea api POST, PUT, GET se agrega el middlerwares *Información: */ 'use strict' var express = require('express'); var api = express.Router(); var md_auth = require('../../middlerwares/authenticated'); var OcupationController = require('....
streamline-eu/dynamic-flink
flink-runtime/src/main/java/org/apache/flink/runtime/leaderretrieval/ZooKeeperLeaderRetrievalService.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 ...
fernando-romulo-silva/myStudies
java/miscellaneous/dockerAndKubernetsForJavaDevelopers/src/main/java/br/com/fernando/chapter06_running_container_java_applications/part06_runningWithMaven/Part01.java
<reponame>fernando-romulo-silva/myStudies<filename>java/miscellaneous/dockerAndKubernetsForJavaDevelopers/src/main/java/br/com/fernando/chapter06_running_container_java_applications/part06_runningWithMaven/Part01.java<gh_stars>1-10 package br.com.fernando.chapter06_running_container_java_applications.part06_runningWith...
JeffreyRiggle/text-adventure-lib
src/persistence/player/characteristicPersistenceObject.js
import {NamedPersistenceObject} from './namedPersistenceObject'; import {Characteristic} from '@jeffriggle/player-lib'; export class CharacteristicPersistenceObject extends NamedPersistenceObject { constructor(characteristic) { super('Characteristic'); if (characteristic) { this.conver...
dyna-mis/Hilabeling
src/gui/raster/qgspalettedrendererwidget.cpp
/*************************************************************************** qgspalettedrendererwidget.cpp ----------------------------- begin : February 2012 copyright : (C) 2012 by <NAME> email : <EMAIL> **********...
KonstantinosKr/vega
delta/core/io/write.h
/* * write.h * * Created on: 2 Apr 2017 * Author: konstantinos */ #ifndef DELTA_IO_WRITE_H_ #define DELTA_IO_WRITE_H_ #include <vector> #include <string> #include "stdio.h" #include "string.h" #include "../../core/data/ParticleRecord.h" #include "../../geometry/structure/Mesh.h" #include "../../world/str...
mincloud1501/Python
Pydeck/node_modules/@deck.gl/json/dist/esm/helpers/convert-functions.js
<filename>Pydeck/node_modules/@deck.gl/json/dist/esm/helpers/convert-functions.js import parseExpressionString from './parse-expression-string'; import { getPropTypes, isFunctionProp } from './deck-prop-types'; export default function convertFunctions(Class, props, configuration) { var propTypes = getPropTypes(Class)...
rht/ripple-client
compat/ie/ws/ws-config.js
WEB_SOCKET_SWF_LOCATION = "compat/ie/ws/WebSocketMain.swf";
zthang/code2vec_treelstm
raw_dataset/59908674@setSize@OK.java
<filename>raw_dataset/59908674@setSize@OK.java public int setSize(int i) { return setSize[findSet(i)]; }
christophfranke/continuous-integration-tools
py/cleanup.py
from modules import engine from modules import out @engine.prepare_and_clean def execute(): out.log("cleaning up the local tmp directory") engine.clean_local_tmp_dir() out.log("cleaning up the remote tmp directory") engine.clean_remote_tmp_dir() if engine.ENABLE_BUILD_SYSTEM: out.log("clean...
HarryZhang1224/BSBolt
bsbolt/Matrix/SiteAggregator.py
import multiprocessing as mp from typing import Dict, List from bsbolt.Utils.CGmapIterator import OpenCGmap from bsbolt.Utils.UtilityFunctions import propagate_error import numpy as np from tqdm import tqdm class CGmapSiteAggregator: """Pull consensus methylation sites into a methylation matrix Keyword Arg...
jbakosi/seacas
docs/ioss_html/Ioex__DatabaseIO_8C.js
var Ioex__DatabaseIO_8C = [ [ "check_attribute_index_order", "Ioex__DatabaseIO_8C.html#a9a39a5e9379a4a90041c1e408f4f95cd", null ], [ "check_variable_consistency", "Ioex__DatabaseIO_8C.html#a5f1d0ce0f60ab0c62e367d59dc8d9ab4", null ], [ "generate_block_truth_table", "Ioex__DatabaseIO_8C.html#a0feccf323106457f...
jblowe/services
services/common/src/main/java/org/collectionspace/services/common/storage/PreparedStatementBuilder.java
<filename>services/common/src/main/java/org/collectionspace/services/common/storage/PreparedStatementBuilder.java /** * This document is a part of the source code and related artifacts * for CollectionSpace, an open source collections management system * for museums and related institutions: * http://www.colle...
AccelByte/accelbyte-python-sdk
accelbyte_py_sdk/api/achievement/wrappers/__init__.py
# Copyright (c) 2021 AccelByte Inc. All Rights Reserved. # This is licensed software from AccelByte Inc, for limitations # and restrictions contact your company contract manager. # # Code generated. DO NOT EDIT! # template file: justice_py_sdk_codegen/__main__.py """Auto-generated package that contains models used b...
ishtiaqahmad/dotwebstack-framework
backend/rdf4j/src/main/java/org/dotwebstack/framework/backend/rdf4j/query/helper/VerticeHelper.java
<reponame>ishtiaqahmad/dotwebstack-framework package org.dotwebstack.framework.backend.rdf4j.query.helper; import org.dotwebstack.framework.backend.rdf4j.query.model.Vertice; import org.dotwebstack.framework.backend.rdf4j.shacl.NodeShape; import org.eclipse.rdf4j.sparqlbuilder.core.Variable; public class VerticeHelpe...
daimaren/TikTok
sharedcpp/audio_effect/libaudio_effect/audio_effect/audio_info.cpp
<gh_stars>1-10 #include "./audio_info.h" #define LOG_TAG "AudioInfo" AudioInfo::AudioInfo(){ } AudioInfo::AudioInfo(int channels, int audioSampleRate, int recordedTimeMills, int totalTimeMills, float accompanyAGCVolume, float audioAGCVolume, float accompanyPitch, int pitchShiftLevel) { this->channels = channels; ...
wuweiweiwu/babel
packages/babel-parser/test/fixtures/experimental/class-private-properties/failure-numeric-literal/input.js
class Foo { #2 = y }
ahmedsamir9/medico
app/src/main/java/com/example/medicalapp/API/NewsModel/ArticlesItem.java
<reponame>ahmedsamir9/medico package com.example.medicalapp.API.NewsModel; import androidx.room.ColumnInfo; import androidx.room.Entity; import androidx.room.Ignore; import androidx.room.PrimaryKey; import com.google.gson.annotations.SerializedName; @Entity public class ArticlesItem{ @PrimaryKey(autoGenerate = true...
failled/Orekit
src/test/java/org/orekit/estimation/leastsquares/DSSTOrbitDeterminationTest.java
<reponame>failled/Orekit /* Copyright 2002-2021 CS GROUP * Licensed to CS GROUP (CS) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * CS licenses this file to You under the Apache License, Version 2.0 *...
rahlk/MOOSE
src/Models/Models/pom3/pom3.py
<filename>src/Models/Models/pom3/pom3.py from pom3_teams import * from pom3_requirements import * import random """############################################################################## ### -@author: <NAME> ### -@note: POM3 Simulation Module ### -@note: This work done in affiliation with the West Virg...
Zhang-Qing-Yun/mini-im
im-client/src/main/java/com/qingyun/im/client/task/MsgTimeoutTask.java
package com.qingyun.im.client.task; import com.qingyun.im.client.imClient.ClientSession; import com.qingyun.im.client.sender.MsgTimeoutTimerManager; import com.qingyun.im.client.sender.CommonSender; import com.qingyun.im.common.constants.ClientConstants; import com.qingyun.im.common.entity.ProtoMsg; import lombok.exte...
gabrypulzio/wise-stack
templates/secure_headers.rb
<filename>templates/secure_headers.rb # frozen_string_literal: true # Please review this configuration for your needs. This configuration is not meant to # be the safest but just to have a minimal configuration to have secure_headers working # See https://github.com/twitter/secureheaders#configuration for more options...
eschiebel/common-cartridge-viewer
src/AssignmentListItem.js
import React, { Component } from "react"; import AssignmentListItemBody from "./AssignmentListItemBody"; export default class AssignmentListItem extends Component { constructor(props) { super(props); this.state = { isLoading: true, title: null, workflowState: null }; } async compo...
MaksimSobolev/redux-dashboard
src/components/uielements/card.js
import { Card } from 'antd'; import '../../style/UI-Component/card/card.css'; export default Card;
paullewallencom/java-978-1-8471-9440-4
_src/Chapter_08/ch08/BindEjb/03_AxisClient/src/com/binildas/esb/bindejb/JsrEjbEPPortType.java
/** * JsrEjbEPPortType.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. */ package com.binildas.esb.bindejb; public interface JsrEjbEPPortType extends java.rmi.Remote { public java.lang.String hello(java.lang.String in0) throws ...
Webiny/PlatformSetup
Public/Core/Registry.js
<gh_stars>0 import Http from '/Core/Http' function initializeStore(store){ store.instance.init(); store.initialized = true; return store.instance.getInitialData().then((data) => { store.instance.setInitialData(data); }); } class Registry { constructor() { this.stores = {}; } addStore(store, meta) { if...
hixuym/monkey
monkey-resteasy/src/main/java/io/monkey/resteasy/setup/ResteasyHandlerProvider.java
/* * Copyright 2018-2023 Monkey, 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 law or agreed t...
research-note/Many-as-One
nn/websocket-server/main/Controller.hpp
<reponame>research-note/Many-as-One<filename>nn/websocket-server/main/Controller.hpp /* Copyright 2021 The Many as One Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at ...
peedekza40/Project-final-sourcecode
js/hr/validate.js
<filename>js/hr/validate.js /* @Author : Jiranun @Date : June 30, 2016 @Detail : Validate element in form @Param : form (ID of tag form) @syntax: validate_form('frm_save') กรณีไว้นอก form or validate_form(this.form.id) กรณีไว้ใน form ใส่ validate ไว้ใน tag ที่ต้องการ */ function validate_form(forms){ //console.log(fo...
nhtnhan/CMPUT663-copilot-eval
output/sonar_java/src/main/java/frogJump.java
import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; /** https://leetcode.com/problems/frog-jump/ */ //A frog is crossing a river. The river is divided into some number of units, and at each unit, there may or may not exist a stone. The frog can jump on a stone, but it must n...
shaojiankui/iOS10-Runtime-Headers
PrivateFrameworks/OfficeImport.framework/OCXContentTypes.h
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/OfficeImport.framework/OfficeImport */ @interface OCXContentTypes : NSObject { NSMutableDictionary * mContentTypeCountMap; NSMutableDictionary * mContentTypeObjectMap; NSMutableArray * mContentTypes; NSMutableSet * mDefaultType...
ManishParyani/cmc-claim-store
domain-model/src/main/java/uk/gov/hmcts/cmc/domain/models/otherparty/IndividualDetails.java
<gh_stars>10-100 package uk.gov.hmcts.cmc.domain.models.otherparty; import lombok.Builder; import lombok.EqualsAndHashCode; import org.apache.commons.lang3.StringUtils; import uk.gov.hmcts.cmc.domain.constraints.AgeRangeValidator; import uk.gov.hmcts.cmc.domain.constraints.SplitName; import uk.gov.hmcts.cmc.domain.mod...
AbelNavarro/crowbar-core
crowbar_framework/app/models/batch/build.rb
# # Copyright 2011-2013, Dell # Copyright 2013-2015, SUSE LINUX GmbH # # 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 ap...
sappenin/java-ilp-connector
connector-service-impl/src/main/java/org/interledger/connector/accounts/IlpOverHttpAccountIdResolver.java
<reponame>sappenin/java-ilp-connector package org.interledger.connector.accounts; import org.springframework.security.core.Authentication; /** * Defines how to resolve AccountId for a given Ilp-over-Http connection. */ public interface IlpOverHttpAccountIdResolver extends AccountIdResolver { /** * Determine t...
zadcha/rethinkdb
src/buffer_cache/stats.hpp
// Copyright 2010-2014 RethinkDB, all rights reserved. #ifndef BUFFER_CACHE_STATS_HPP_ #define BUFFER_CACHE_STATS_HPP_ #include "perfmon/perfmon.hpp" #include "buffer_cache/page_cache.hpp" class alt_cache_stats_t : public home_thread_mixin_t { public: explicit alt_cache_stats_t(alt::page_cache_t *_page_cache, ...
pasmuss/cmssw
DQM/L1TMonitor/src/L1TStage2BMTF.cc
<reponame>pasmuss/cmssw /* * \L1TStage2BMTF.cc * \author <NAME> * \December 2015 /G.karathanasis */ #include "DQM/L1TMonitor/interface/L1TStage2BMTF.h" L1TStage2BMTF::L1TStage2BMTF(const edm::ParameterSet & ps): monitorDir(ps.getUntrackedParameter<std::string>("monitorDir","")), bmtfSource(ps.getParameter...
PixelShiftAI/createts
dist/es6/style/LineHeight.spec.js
<filename>dist/es6/style/LineHeight.spec.js import { LineHeight, LineHeightType } from './LineHeight'; test('should parse line height', function () { expect(LineHeight.of('normal').type).toEqual(LineHeightType.NORMAL); expect(LineHeight.of('10px')).toEqual({ type: LineHeightType.LENGTH, value: 10 }); ex...
zlc18/LocalJudge
tests/cpp/reverseNodesInKGroup/reverseNodesInKGroup.cpp
// Source : https://oj.leetcode.com/problems/reverse-nodes-in-k-group/ // Author : <NAME> // Date : 2014-07-05 /********************************************************************************** * * Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. * * If the number...
davidbrochart/daetk
pdetk/ConstBCECDM.h
#ifndef ConstBCECDM_H #define ConstBCECDM_H #include <vector> #include <map> #include <iostream> #include "Definitions.h" #include "Vec.h" #include "BandColMat.h" #include "BoundaryCondition.h" #include "PetscStencilMM.h" //mwf can I include DivKgradECDM class into this definition #include "DivKgradECDM.h" //#define U...
medsec/kiasubc
kiasu/test-kiasu.cpp
<filename>kiasu/test-kiasu.cpp // =================================================================== // @last-modified 2016-06-01 // This is free and unencumbered software released into the public domain. // =================================================================== #include <cstdint> #include <cstdio> #incl...
cmarshall108/panda3d-python3
panda/src/device/dialNode.cxx
/** * PANDA 3D SOFTWARE * Copyright (c) Carnegie Mellon University. All rights reserved. * * All use of this software is subject to the terms of the revised BSD * license. You should have received a copy of this license along * with this source code in a file named "LICENSE." * * @file dialNode.cxx * @author...
th3n3rd/micronaut-microservices-poc
agent-portal-gateway/src/main/java/pl/altkom/asc/lab/micronaut/poc/gateway/client/v1/DocumentsGatewayClient.java
<gh_stars>100-1000 package pl.altkom.asc.lab.micronaut.poc.gateway.client.v1; import io.micronaut.http.client.annotation.Client; import io.micronaut.retry.annotation.Retryable; import pl.altkom.asc.lab.micronaut.poc.documents.api.DocumentsOperations; import pl.altkom.asc.lab.micronaut.poc.documents.api.queries.finddoc...
nayotta/metathings
pkg/plugin/mosquitto/service/service.go
<filename>pkg/plugin/mosquitto/service/service.go package metathings_mosquitto_plugin_service import ( "io/ioutil" "net/http" "time" log "github.com/sirupsen/logrus" passwd_helper "github.com/nayotta/metathings/pkg/common/passwd" webhook_helper "github.com/nayotta/metathings/pkg/common/webhook" storage "githu...
carsonkk/carsonkk.com
src/utils/Date.js
const months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] function TZDate(date) { const dateObj = new Date(date) const offset = -60000; return new Date(dateObj.getTime() - dateObj.getTimezoneOffset() * offset) } function DayOrdinal(n) { return n + (n > 0 ? ['th', 'st'...
zc806zc/zStudio
form/src/main/java/com/zte/iui/layoutit/bean/JsonFileDesc.java
package com.zte.iui.layoutit.bean; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlRootElement; @XmlRootElement public class JsonFileDesc { private List<JsonFile> list = new ArrayList<JsonFileDesc.JsonFile>(); /** * * @param path * @param moduleName *...
a4-data/a4-UI-EXT
packages/ext-web-components-kitchensink/src/view/components/forms/textfield/TextFieldComponent.js
import './TextFieldComponent.html'; export default class TextFieldComponent {}
dewf/opendl
source/win-direct2d/classes/CG/CGPath.cpp
<gh_stars>10-100 #include "CGPath.h"
Frontline-Processing/winprom
winprom/TreeFilter_dlg.cpp
<reponame>Frontline-Processing/winprom // WinProm Copyright 2015 <NAME> // All rights reserved. // // This software is distributed under a license that is described in // the LICENSE file that accompanies it. // // TreeFilter_dlg.cpp : implementation file // #include "stdafx.h" #include "winprom.h" #include "TreeFilte...
serpis/pynik
plugins/roulette.py
<gh_stars>1-10 # -*- coding: utf-8 -*- # Plugin created by Merola import random from commands import Command class RussianRoulette(Command): revolver_contents = {} usage = "Usage: .roulette reload | .roulette play" def __init__(self): pass def reload_revolver(self, channel): self.revolver_contents[chann...
liqiqing/ZJSDK
ZJSDK/ZJAdSDK/ZJSDKCore.framework/Headers/ZJNativeAdView.h
// // ZJNativeAdView.h // ZJSDKCore // // Created by Rare on 2021/3/29. // #import <UIKit/UIKit.h> #import "ZJNativeAdObject.h" NS_ASSUME_NONNULL_BEGIN @class ZJNativeAdView; @protocol ZJNativeAdViewDelegate <NSObject> @optional //广告曝光回调 -(void)zj_nativeAdViewWillExpose:(ZJNativeAdView *)nativeAdView; //广告点击回调 -(v...
silenc3502/MYSQL-Arch-Doc-Summary
mysql-server/plugin/group_replication/libmysqlgcs/src/bindings/xcom/gcs_xcom_group_member_information.cc
<reponame>silenc3502/MYSQL-Arch-Doc-Summary<gh_stars>0 /* Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, as published by the Free Software Found...
SCE-Development/Core-v4
src/APIFunctions/2DPrinting.js
import axios from 'axios'; import { PrintApiResponse, ApiResponse } from './ApiResponses'; let config = require('../config/config.json'); let GENERAL_API_URL = process.env.NODE_ENV === 'production' ? config.GENERAL_API_URL_PROD : config.GENERAL_API_URL; let LOGGING_API_URL = process.env.NODE_ENV === 'production'...
novium258/cortx-1
doc/integrations/pytorch/tests/nightly/gpu/test_tutorial_generator.py
#!/usr/bin/env python3 # 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. import unittest import parlai.utils.testing as testing_utils class TestTutorialTransformerGenerator(unittest...
netlify/build
packages/build/tests/steps/fixtures/pwd/file.js
<reponame>netlify/build import { resolve } from 'path' import { cwd } from 'process' import { fileURLToPath } from 'url' const CURRENT_DIR = fileURLToPath(new URL('.', import.meta.url)) console.log(cwd() === resolve(CURRENT_DIR))
npocmaka/Windows-Server-2003
shell/osshell/games/mshearts/computer.h
/***************************************************************************/ /** Microsoft Windows **/ /** Copyright(c) Microsoft Corp., 1991, 1992 **/ /***************************************************************************/ ...
MHFNaN/muffin-0.10.4-src-leaked
src/main/java/me/han/muffin/client/mixin/mixins/render/entity/MixinRenderEntityItem.java
package me.han.muffin.client.mixin.mixins.render.entity; import me.han.muffin.client.Muffin; import me.han.muffin.client.event.EventStageable; import me.han.muffin.client.event.events.render.item.RenderItemEvent; import me.han.muffin.client.module.modules.other.ItemRender; import net.minecraft.client.renderer.entity.R...
ajdinstel/sphere-sunrise-zr
product-catalog/app/productcatalog/services/ProductService.java
<reponame>ajdinstel/sphere-sunrise-zr package productcatalog.services; import io.sphere.sdk.categories.Category; import io.sphere.sdk.categories.CategoryTreeExtended; import io.sphere.sdk.products.ProductProjection; import io.sphere.sdk.search.PagedSearchResult; import play.libs.F; import productcatalog.controllers.Se...
nijabutter/SDL-GUI
main.cpp
<filename>main.cpp #include <iostream> #include <algorithm> #include "SDL_GUI.hpp" #include "Theme.hpp" int main() { Window root = Window(); Dropdown *d = new Dropdown(&root, L"placeholder" , {L"1", L"2", L"3"}); d->grid(0, 0); (new Button(&root, L"set to 1", [d](){d->set(1);}))->grid(0, 1); root.run...
yuryshukhrov/mmo-android
src/com/yuri/game/ui/activities/LoginActivity.java
package com.yuri.game.ui.activities; import java.util.List; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.content.Context; import android.content.DialogInterface; import android.content.DialogInterface.OnDismissListener; import android.content.Intent; import an...
NightglowRE/PiecemealCode
org.nightglower.hutubill/src/service/ReportService.java
package service; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import java.util.List; import dao.RecordDAO; import entity.Record; import util.DateUtil; /** * @ClassName ReportService * @Description 报表业务类 * @Author NightGlower * @Date 2020/7/23 23:03 * @Version 1.0 ...
makhnnar/l2custom_acis
aCis_gameserver/java/net/sf/l2j/gameserver/scripting/scripts/teleports/PaganTeleporters.java
<filename>aCis_gameserver/java/net/sf/l2j/gameserver/scripting/scripts/teleports/PaganTeleporters.java<gh_stars>0 package net.sf.l2j.gameserver.scripting.scripts.teleports; import net.sf.l2j.gameserver.data.xml.DoorData; import net.sf.l2j.gameserver.model.actor.Npc; import net.sf.l2j.gameserver.model.actor.Player; imp...
jhmfreitas/SoftwareEngineering-Project
car/src/main/java/pt/ulisboa/tecnico/softeng/car/domain/Motorcycle.java
package pt.ulisboa.tecnico.softeng.car.domain; public class Motorcycle extends Motorcycle_Base { public Motorcycle(String plate, int kilometers, long price, RentACar rentACar) { checkArguments(plate, kilometers, rentACar); setPlate(plate.toUpperCase()); setKilometers(kilometers); setPrice(price); setRentAC...
sfomuseum/go-www-geotag-whosonfirst
app/flags.go
package flags import ( "flag" "github.com/sfomuseum/go-flags/lookup" "net/url" "strings" ) func AppendWhosOnFirstFlags(fs *flag.FlagSet) error { fs.String("whosonfirst-writer-uri", "", "A valid whosonfirst/go-writer.Writer URI. If present it will be encoded and used to replace the '{whosonfirst_writer}' string ...
byteshiva/es6-tuts
functionalprogramming/day193/funcday193/index.js
<reponame>byteshiva/es6-tuts const R = require('ramda'); const numbers = [1, 2, 3, 4]; const factorials = R.scan(R.multiply, 1, numbers); //=> [1, 1, 2, 6, 24] console.log(factorials);
srotya/sidewinder
core/src/main/java/com/srotya/sidewinder/core/functions/iterative/ReduceFunction.java
<reponame>srotya/sidewinder /** * Copyright <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 applicab...
jojanper/draal-jsapp
tests/bootstrap.spec.js
// To be executed once before all tests before(done => { const { credentials } = appTestHelper; // Create one active test user appTestHelper.createUser(credentials, () => { appTestHelper.activateUser(credentials.email, () => done()); }); }); // To be executed once all tests have finished after...
aTiKhan/nuxeo
modules/platform/rest-api/nuxeo-rest-api-server/src/main/java/org/nuxeo/ecm/restapi/server/jaxrs/adapters/PageProviderAdapter.java
<reponame>aTiKhan/nuxeo /* * (C) Copyright 2013 Nuxeo SA (http://nuxeo.com/) and others. * * 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-...
stas-perchenko/bt-recorder
app/src/main/java/com/alperez/bt_microphone/bluetoorh/connector/sound/SoundLevelMeter.java
package com.alperez.bt_microphone.bluetoorh.connector.sound; import android.os.Handler; import android.os.Looper; import android.support.annotation.NonNull; /** * Created by stanislav.perchenko on 4/11/2017. */ public class SoundLevelMeter { private OnSoundLevelListener callback; private Handler uiHandler...
rio-31/android_frameworks_base-1
core/java/android/view/InputEvent.java
<filename>core/java/android/view/InputEvent.java<gh_stars>100-1000 /* * Copyright (C) 2010 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http...
jhh67/chapel
third-party/llvm/llvm-src/tools/clang/unittests/Tooling/LookupTest.cpp
<filename>third-party/llvm/llvm-src/tools/clang/unittests/Tooling/LookupTest.cpp //===- unittest/Tooling/LookupTest.cpp ------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-Licen...
bluesky013/Explosion
Common/Asset/Include/Asset/AssetInstance.h
<filename>Common/Asset/Include/Asset/AssetInstance.h // // Created by <NAME> on 2021/9/14. // #ifndef EXPLOSION_ASSETINSTANCE_H #define EXPLOSION_ASSETINSTANCE_H #include <type_traits> #include <cstdint> namespace Explosion { class IAssetInstance { }; template <typename T> class AssetInstance { ...
kamchiu/server-side-with-nodejs
rest-server/routes/leaderRouter.js
<filename>rest-server/routes/leaderRouter.js 'use strict' const express = require("express") const bodyParser = require("body-parser") const mongoose = require('mongoose') const leaderships = require('../models/leaders') const leaderRouter = express.Router() leaderRouter.use(bodyParser.json()) leaderRouter.route('/...
MjoaquinM/ModSecurityProyect
modsecurityWafProject/src/main/java/com/fich/wafproject/model/Rule.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.fich.wafproject.model; import java.io.Serializable; import java.util.List; import javax.persistence.Basic; import javax.pe...
deveshpatel0101/data_structures_algorithms
algorithms/making_change_dp/making_change_dp.go
package main import ( "fmt" "math" ) // MakeChange will generate the necessary matrix which will then be evaluated to know // the number of coins and which coins will be required to have a given change func MakeChange() { for i := 0; i < len(matrix); i++ { for j := 0; j < len(matrix[i]); j++ { if i == 0 || j ...
fnando/signal
test/support/callable.rb
# frozen_string_literal: true class Callable < Minitest::Mock def initialize(method_name) super() @method_name = method_name end def to_proc callable = self proc {|*args| callable.send(@method_name, *args) } end end
aryx/principia-softwarica
networking/ftp/ftpfs/ftpfs.c
/*s: networking/ip/ftpfs/ftpfs.c */ #include <u.h> #include <libc.h> #include <auth.h> #include <fcall.h> #include <string.h> #include "ftpfs.h" /* an active fid */ typedef struct Fid Fid; /*s: struct [[Fid]]([[(networking/ip/ftpfs/ftpfs.c)]]) */ struct Fid { int fid; Node *node; /* path to remote file */ ...
OFShare/Algorithm-challenger
洛谷/入门/P3742.cc
/* * Author : OFShare * E-mail : <EMAIL> * Created Time : 2020-02-26 23:00:26 PM * File Name : P3742.cc */ #include <bits/stdc++.h> void debug() { #ifdef Acui freopen("data.in", "r", stdin); freopen("data.out", "w", stdout); #endif } const int N = 1e2 + 5; int n; char x[N], y[N], ...
luoli233/danbooru
script/fixes/073_change_default_comment_threshold.rb
<gh_stars>100-1000 #!/usr/bin/env ruby require_relative "../../config/environment" User.transaction do users = User.where("comment_threshold > ?", User.anonymous.comment_threshold) p users.count users.update_all(comment_threshold: User.anonymous.comment_threshold) users = User.where("comment_threshold < ?", ...
luci/luci-go
common/proto/structmask/structmask_test.go
// Copyright 2021 The LUCI 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 applicable law or agreed...
jihwahn1018/ovirt-engine
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RemoveFenceAgentCommand.java
package org.ovirt.engine.core.bll; import java.util.List; import javax.inject.Inject; import org.ovirt.engine.core.bll.context.CommandContext; import org.ovirt.engine.core.common.action.FenceAgentCommandParameterBase; import org.ovirt.engine.core.common.businessentities.VDS; import org.ovirt.engine.core.common.busin...
deepnighttwo/inmem-transfer-language
core/src/main/java/com/dnt/itl/ext/ExtensionFunction.java
package com.dnt.itl.ext; /** * User: <NAME> * Date: 2015/4/21 * Time: 20:43 */ public class ExtensionFunction { public static final boolean getResumeRate(double age, String education, double income) { if (income * 0.75 > age) { return true; } return false; } }
CyberCRI/hero-coli-website
Doc/search/classes_70.js
<reponame>CyberCRI/hero-coli-website var searchData= [ ['panelinfos',['PanelInfos',['../class_panel_infos.html',1,'']]], ['peniciline',['Peniciline',['../class_peniciline.html',1,'']]], ['phenofickcontact',['PhenoFickContact',['../class_pheno_fick_contact.html',1,'']]], ['phenolight',['PhenoLight',['../class_ph...
EUye9IM/Block_cipher
include/NTL/mat_poly_ZZ.h
<reponame>EUye9IM/Block_cipher #ifndef NTL_mat_poly_ZZ__H #define NTL_mat_poly_ZZ__H #include <NTL/mat_ZZ.h> #include <NTL/ZZX.h> NTL_OPEN_NNS void CharPoly(ZZX& f, const mat_ZZ& M, long deterministic=0); NTL_CLOSE_NNS #endif
charlienzw/LeetCode
java/24/Swap Nodes in Pairs.java
/** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode(int x) { val = x; } * } */ class Solution { public ListNode swapPairs(ListNode head) { if(head == null) return null; if(head.next == null) return head; ListNode temp =...
juandopazo/jet
src/form/js/TextareaField.js
<filename>src/form/js/TextareaField.js<gh_stars>1-10 $.TextareaField = $.Base.create('textarea', $.FormField, [], {}, { CONTENT_TEMPLATE: '<textarea/>' });
lessunc/python-guanabara
task013.py
<gh_stars>10-100 #coding: utf-8 #-------------------------------------------------------------- # Um algoritmo que recebe o salário de um funcionário e mostra # seu novo salário com 15% de aumento. #-------------------------------------------------------------- # Reajuste Salarial - Exercício #013 #----------------...
thandile/msf_communique
app/src/main/java/com/example/msf/msf/API/Models/Patients.java
<filename>app/src/main/java/com/example/msf/msf/API/Models/Patients.java package com.example.msf.msf.API.Models; import com.google.gson.annotations.SerializedName; /** * Created by Thandile on 2016/09/20. */ public class Patients { @SerializedName("id") private String id; @SerializedName("other_names") ...