repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
Psychoanalytic-Electronic-Publishing/OpenPubArchive-Content-Server
app/tests/testOpasFilesupport.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import unittest import localsecrets import pathlib import opasFileSupport from unitTestConfig import base_plus_endpoint_encoded, headers class TestOpasFileSupport(unittest.TestCase): """ Note: tests are performed in alphabetical order, hence the function naming ...
ehrbase/ehrbase_client_library
client/src/test/java/org/ehrbase/client/classgenerator/examples/geccoserologischerbefundcomposition/definition/BefundObservation.java
<gh_stars>1-10 /* * Copyright (c) 2022 vitasystems GmbH and Hannover Medical School. * * This file is part of project openEHR_SDK * * 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 * * ...
ShengFQ/DCNet
app/src/main/java/com/bandary/dcnet/utils/WifiConfHelper.java
<filename>app/src/main/java/com/bandary/dcnet/utils/WifiConfHelper.java /* * WifiConfHelper * @author shengfq * @since 2015-01-30 * @version 2.0 * * */ package com.bandary.dcnet.utils; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import android.content.Context; import android.n...
code4tomorrow/Python
2_intermediate/chapter11/solutions/count_magical.py
<filename>2_intermediate/chapter11/solutions/count_magical.py # Write a function called count_magical # that returns the number of even numbers # in a given list. In the function, # if the number of evens is greater than # half of the length of the list, print "Magical" # Else, print "Not Magical" # # Write a function ...
zoooo-hs/instagram-clone-be
src/main/java/com/zoooohs/instagramclone/util/FileUtils.java
package com.zoooohs.instagramclone.util; public class FileUtils { public static String getExtension(String path) { int pos = path.lastIndexOf( "." ); if (pos == -1) { return ""; } return "." + path.substring( pos + 1 ); } }
hiowenluke/kdo
src/sync/topic.js
const log = require('./log'); const fn = (...args) => { log('-'.repeat(50)); log(...args); log('-'.repeat(50)); }; module.exports = fn;
B-Dickinson/Algoritmos-em-Java
poo/questao6_poo/AudioBook.java
package questao6_poo; public class AudioBook extends Livro { private int duracao; public AudioBook(String titulo,double preco,Autor autor,int duracao){ super(titulo, preco,autor); this.setDuracao(duracao); } public int getDuracao() { return duracao; } ...
gurubamal/ccsdk-features
sdnr/wt/devicemanager-core/provider/src/main/java/org/onap/ccsdk/features/sdnr/wt/devicemanager/impl/xml/FaultEntityManager.java
<gh_stars>0 /* * ============LICENSE_START======================================================================== * ONAP : ccsdk feature sdnr wt * ================================================================================================= * Copyright (C) 2019 highstreet technologies GmbH Intellectual Propert...
justremotephone/android_external_chromium_org
ui/ozone/platform/dri/buffer_data.cc
// 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 "ui/ozone/platform/dri/buffer_data.h" #include <gbm.h> #include "base/logging.h" #include "ui/ozone/platform/dri/dri_wrapper.h" namespace ui {...
sozuuuuu/rebacklogs
app/models/social_profile.rb
# refs: https://qiita.com/mnishiguchi/items/e15bbef61287f84b546e # == Schema Information # # Table name: social_profiles # # id :integer not null, primary key # user_id :integer # provider :string # uid :string # name :string # nickname :string # email :string # ...
AntonBaukin/embeddy
boot/sources/net/java/osgi/embeddy/boot/BootJaRLoader.java
package net.java.osgi.embeddy.boot; /* Java */ import java.io.Closeable; import java.io.File; import java.io.IOException; import java.io.OutputStream; import java.util.HashMap; import java.util.LinkedHashMap; import java.util.LinkedHashSet; import java.util.Map; import java.util.Set; /* embeddy: zip file system */ ...
kapiak/ware_prod
assistant/weblink_channel/migrations/0020_auto_20200821_0444.py
# Generated by Django 3.1 on 2020-08-21 04:44 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('weblink_channel', '0019_auto_20200819_0907'), ] operations = [ migrations.RemoveField( model_name='purchaseorderitem', name='c...
sean5470/panda3d
panda/src/gobj/geomCacheEntry.h
<gh_stars>1-10 /** * 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 geomCach...
vbmacher/qsOS
QSS/src/kernel/console/help.c
/* * HELP.C * * (c) Copyright 2005, vbmacher * */ #include <rtl.h> #include <colors.h> #include <console.h> void commandHELP() { textattr(atrSUBBANNER); cprintf("\n\tAvailable commands:"); textattr(atrBORDER); cprintf("\n\tHALT - halt processor, disable interrupts"); cprintf("\n\tHELP - show this...
jmosro/IPEC-CPlusPlus
03.CPP_Ejercicios_2019/21.ValorAbsoluto.cpp
#include <stdio.h> /** * @brief Calcular el valor absoluto. * @class main * @author <NAME> * @author <NAME> - <EMAIL> * @date 2019-septiembre * @version 1 */ int main(void){ double numero, absoluto; printf("Ingresar un numero: "); // imprimir salida de datos scanf(" %lf", &numero); // entrada de ...
songjachin/MwanAndroid
app/src/main/java/com/songjachin/mwanandroid/database/IHistoryDaoCallback.java
package com.songjachin.mwanandroid.database; import java.util.List; /** * Created by matthew */ public interface IHistoryDaoCallback { /** * 添加历史的结果 * * @param isSuccess */ void onHistoryAdd(boolean isSuccess); /** * 删除历史的结果 * * @param isSuccess */ void onHi...
vbogatyrov/tdi-studio-se
main/plugins/org.talend.designer.components.libs/libs_src/salesforceBulkAPI/com/sforce/soap/partner/DescribeIcon.java
package com.sforce.soap.partner; /** * Generated by ComplexTypeCodeGenerator.java. Please do not edit. */ public class DescribeIcon implements com.sforce.ws.bind.XMLizable , IDescribeIcon{ /** * Constructor */ public DescribeIcon() {} /** * element : contentType of type {htt...
malte-wessel/a-million-times
src/runners/createSimplexNoise.js
import createNoise from '../util/createNoise'; const ACCELERATION = 0.00002; const FINAL_VELOCITY = 0.002; export default function createVelocityWave2(columns, rows) { const noise = createNoise(columns, rows, 0.12); return function init() { return function update(x, y, index, hand, value, velocity, t)...
FastReports/gofrcloud
model_my_permissions_vm.go
<reponame>FastReports/gofrcloud /* * FastReport Cloud * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * API version: v1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. package gofrcloud import ( "encoding...
xupeihuagudulei/demo
flink-learn/src/main/java/com/jsy/aaa/udf/official/NiceDemo.java
package com.jsy.aaa.udf.official; import org.apache.flink.api.java.tuple.Tuple4; import org.apache.flink.streaming.api.TimeCharacteristic; import org.apache.flink.streaming.api.datastream.DataStream; import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment; import org.apache.flink.streaming.api.fun...
RomanBezpalyi/js-band-final-task
src/redux/books/operations.js
import { toast } from 'react-toastify'; import * as api from '../../services/books-api'; import { getBooksRequest, getBooksSuccesss, getBooksError } from './actions'; import { getToken } from '../session/selectors'; // eslint-disable-next-line import/prefer-default-export export const getBooks = () => (dispatch, getSt...
WLChopSticks/FastHealingCopy
FastHealing/FastHealing/Classes/FamousDoctors/View/NiuView/FHMatchBtn.h
// // FHMatchBtn.h // FastHealing // // Created by 王 on 16/1/25. // Copyright © 2016年 FastHealing. All rights reserved. // #import <UIKit/UIKit.h> @interface FHMatchBtn : UIButton @end
thirdweb-dev/go-sdk
cmd/thirdweb/storage_commands.go
<reponame>thirdweb-dev/go-sdk package main import ( "fmt" "log" "os" "github.com/spf13/cobra" "github.com/thirdweb-dev/go-sdk/thirdweb" ) var storageCmd = &cobra.Command{ Use: "storage [command]", Short: "Interact with the IPFS storage interface", Args: cobra.MinimumNArgs(1), Run: func(cmd *cobra.Command...
araneforseti/heimdallr-viz
vendor/cache/ruby/2.6.0/gems/jaro_winkler-1.5.1/ext/jaro_winkler/extconf.rb
<filename>vendor/cache/ruby/2.6.0/gems/jaro_winkler-1.5.1/ext/jaro_winkler/extconf.rb # frozen_string_literal: true if RUBY_ENGINE == 'ruby' require 'mkmf' $CFLAGS << ' -std=c99 ' create_makefile('jaro_winkler/jaro_winkler_ext') else open('Makefile', 'wb') do |file| file.write <<-MAKEFILE .PHONY: install i...
Bhuvanesh1208/ruby2.6.1
lib/ruby/2.6.0/optionparser.rb
# frozen_string_literal: false require_relative 'optparse'
Dagon0577/DagonParser
src/main/java/parser/ast/fragment/tableref/TableReference.java
<filename>src/main/java/parser/ast/fragment/tableref/TableReference.java package parser.ast.fragment.tableref; import parser.ast.AST; /** * @author Dagon0577 * @date 2020/7/14 */ public interface TableReference extends AST { int PRECEDENCE_REFS = 0; int PRECEDENCE_JOIN = 1; int PRECEDENCE_FACTOR = 2; ...
hwpplayers/nanoutils
lib/concat/index.js
<reponame>hwpplayers/nanoutils import curry2 from '../_internal/_curry2' export default curry2((a, b) => Array.isArray(a) && Array.isArray(b) || typeof a === 'string' && typeof b === 'string' ? a.concat(b) : null )
van-de-bugs/http-server
src/main/java/com/debugs/server/http/config/ResponseType.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.debugs.server.http.config; /** * * @author <NAME> <<EMAIL>> */ public enum ResponseType { JSON, XML }
dvt32/cpp-journey
Java/CodeForces/Password Check.java
// https://codeforces.com/problemset/problem/411/A import java.util.Scanner; public class Solution { public static void main(String[] args) { Scanner read = new Scanner(System.in); String password = read.nextLine(); boolean isValidPassword = false; if (password.length() >= 5) { boolean hasUpperCase...
oskaremilsson/ctrl.name
src/pages/Playlists/Playlists.js
<reponame>oskaremilsson/ctrl.name<filename>src/pages/Playlists/Playlists.js import React, { useEffect, useState } from "react"; import { useSelector, useDispatch } from "react-redux"; import { selectors, actions } from "shared/stores"; import { makeStyles, Box, List, ListSubheader, Divider, CircularProgres...
DyncKathline/FilePicker
filePicker/src/main/java/com/kathline/library/util/PermissionUtil.java
package com.kathline.library.util; import android.Manifest; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.pm.PackageManager; import android.net.Uri; import android.os.Build; import android.os.Bundle; import ...
Brucehanyf/python_tutorial
base/day05.py
<reponame>Brucehanyf/python_tutorial # 字典 类似map的结构 #定义字典 alien_0 = {'color':'green','point':5} # 访问字典中的值 print(alien_0['color']) print(alien_0['point']) new_point = alien_0['point'] print ('you just have '+ str(new_point) +'points') #添加键值对 alien_0['x_position'] = 1 alien_0['y_positon'] = 10 print (alien_0) # 创建一个空的字...
miketweaver/thorium
src/components/views/Targeting/coordinates.js
<reponame>miketweaver/thorium import React, {Component} from "react"; import {Row, Col} from "helpers/reactstrap"; import Keypad from "../Navigation/keypad"; import gql from "graphql-tag.macro"; function compareCoord(coord1 = {}, coord2 = {}) { const {x, y, z} = coord1 || {}; const {x: x1, y: y1, z: z1} = coord2 |...
kshitij1234/Chemisty-Department-Website
chemdeptsite/models.py
import os from django.db import models # from django.core.exceptions import ValidationError # # def validate_only_one_instance(obj): # model = obj.__class__ # if (model.objects.count() > 0 and # obj.id != model.objects.get().id): # raise ValidationError("Can only create 1 %s instance. Delete...
RedisLabsModules/redisbench-admin
tests/test_metrics.py
# BSD 3-Clause License # # Copyright (c) 2021., Redis Labs Modules # All rights reserved. # import json import os import yaml from redistimeseries.client import Client from redisbench_admin.run.common import merge_default_and_config_metrics from redisbench_admin.run.metrics import extract_results_table, collect_re...
granitic/bookmark-service
src/test/java/com/example/bookmark/security/unit/brokenauthentication/PasswordSecurityRequirementTests.java
package com.example.bookmark.security.unit.brokenauthentication; import com.example.bookmark.service.User; import org.junit.jupiter.api.*; import org.junit.jupiter.api.MethodOrderer.OrderAnnotation; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.ValueSource; import javax.v...
austxcodemonkey/geode-native
tests/cpp/fwklib/UDPIpc.cpp
/* * 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 ...
FruitsBerriesMelons123/CommonLibSSE
src/RE/TESWorldSpace.cpp
<gh_stars>1-10 #include "RE/TESWorldSpace.h" namespace RE { bool TESWorldSpace::HasMaxHeightData() const { return maxHeightData != 0; } }
larryRishi/algorithm004-05
Week 5/id_200/leetCode-1143-200.java
//1143. 最长公共子序列 lass Solution { public int longestCommonSubsequence(String text1, String text2) { int m = text1.length(); int n = text2.length(); int[][] dp=new int[m+1][n+1]; for(int i=0;i<=m;i++) for(int j=0;j<=n;j++) dp[i][j]=0; for(int i=1;i<=m;i+...
Travmatth/21sh
libftprintf/libft/io/ft_putendl_fd.c
<reponame>Travmatth/21sh /* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_putendl_fd.c ...
liu010203xiang/mygit
app/src/main/java/com/unipad/brain/home/iview/BaseView.java
package com.unipad.brain.home.iview; import android.content.Context; public interface BaseView { Context getContext(); // 得到上下文 void request(String jsonStr, int flag); // 接口返回结果 void showToast(String checkResult); // Toast 客户端验登录证结果 /** * 正在请求中 (有进度) * * @param total * 总数进度 ...
eflexsystems/ember-cp-validations
tests/unit/validators/inline-test.js
import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; module('Unit | Validator | inline', function (hooks) { setupTest(hooks); test('it works', function (assert) { assert.expect(2); const validator = this.owner.factoryFor('validator:inline').create({ options: { foo:...
myckhel/gfx-panel
resources/js/redux/surveyDetail/actions.js
import { SURVEY_GET_DETAILS, SURVEY_GET_DETAILS_SUCCESS, SURVEY_GET_DETAILS_ERROR, SURVEY_DELETE_QUESTION, SURVEY_SAVE } from 'Constants/actionTypes'; export const getSurveyDetail = () => ({ type: SURVEY_GET_DETAILS }); export const getSurveyDetailSuccess = (items) => ({ type: SURVEY_GET_...
bobvawter/iaido
pkg/testing/capture.go
// Copyright 2020 The Cockroach 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 ...
rakhi2001/ecom7
Python3/1015.py
__________________________________________________________________________________________________ sample 32 ms submission class Solution: def smallestRepunitDivByK(self, k: int) -> int: if k%2==0 or k%5==0: return -1 n=0 for x in range(1,k+1): n=(n*10+1)%k ...
mikeydub/go-gallery
service/persist/mongodb/history.go
<reponame>mikeydub/go-gallery<gh_stars>1-10 package mongodb import ( "context" "github.com/mikeydub/go-gallery/service/persist" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/mongo" ) var historyColName = "history" // HistoryRepository is a repository that stores collections in a MongoDB databa...
dyna-mis/Hilabeling
src/core/qgsdatadefinedsizelegend.cpp
/*************************************************************************** qgsdatadefinedsizelegend.cpp -------------------------------------- Date : June 2017 Copyright : (C) 2017 by <NAME> Email : <EMAIL> **********************************************************...
heweixi/overlord
platform/api/model/config.go
<reponame>heweixi/overlord<gh_stars>1-10 package model import ( "fmt" "overlord/pkg/log" ) // ServerConfig is apiserver's config type ServerConfig struct { Listen string `toml:"listen"` Etcd string `toml:"etcd"` Versions []*VersionConfig `toml:"versions"` Monitor *Monit...
sofimrtn/Gestion_Hospital_IPS
IPS-GestionHospital/src/persistence/DataCita.java
package persistence; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Timestamp; import java.util.ArrayList; import java.util.List; import alb.util.jdbc.Jdbc; import business.dto.CitaDto; public class DataCita extends DataManager { private static final Str...
lebretr/pocNG2
ressources/scripts/postinstall.js
/** * Ce postintall permet d'executer le scipt postinstall.sh * si l'os est un Linux et si la variable d'environnement * "NODE_SERVEUR" a la valeur "TRUE" ou "NODE_ENV" a la valeur "production" */ var osType=require('os').type(); var nodeServeur=process.env.NODE_SERVEUR; var nodeEnv=process.env.NODE_ENV; console.l...
77loopin/ray
python/ray/experimental/workflow/tests/test_workflow_manager.py
<reponame>77loopin/ray import time import pytest import ray from ray.experimental import workflow from filelock import FileLock def test_workflow_manager_simple(workflow_start_regular): assert [] == workflow.list_all() with pytest.raises(ValueError): workflow.get_status("X") def test_workflow_manag...
moutainhigh/primo
primo-generator-mock-test/primo-generator-mock-test-demo/src/main/java/wiki/primo/generator/primogeneratormocktestdemo/mapper/UserTemplateMapper.java
<reponame>moutainhigh/primo package wiki.primo.generator.primogeneratormocktestdemo.mapper; import wiki.primo.generator.primogeneratormocktestdemo.entity.UserTemplate; import com.baomidou.mybatisplus.core.mapper.BaseMapper; /** * <p> * Mapper接口 * </p> * * @author chenhx * @since 2020-12-29 */ public interface ...
uberpixel/Rayne
Modules/Newton/RNNewtonInit.cpp
<filename>Modules/Newton/RNNewtonInit.cpp // // RNNewtonInit.cpp // Rayne-Newton // // Copyright 2018 by Überpixel. All rights reserved. // Unauthorized use is punishable by torture, mutilation, and vivisection. // #include <Rayne.h> RNModule(RayneNewton, "net.uberpixel.rayne.newton")
pulibrary/figgy
app/indexers/ephemera_box_indexer.rb
<gh_stars>10-100 # frozen_string_literal: true class EphemeraBoxIndexer delegate :query_service, to: :metadata_adapter attr_reader :resource def initialize(resource:) @resource = resource end def to_solr return {} unless resource.is_a?(::EphemeraBox) { "title_tesim" => [decorated.title], ...
wuyueandrew/GraphScope
research/query_service/ir/compiler/src/test/java/com/alibaba/graphscope/integration/ldbc/LdbcQueryTest.java
package com.alibaba.graphscope.integration.ldbc; import com.alibaba.graphscope.gremlin.plugin.traversal.IrCustomizedTraversal; import com.google.common.collect.Sets; import org.apache.tinkerpop.gremlin.process.AbstractGremlinProcessTest; import org.apache.tinkerpop.gremlin.process.traversal.Order; import org.apache.t...
PeterDaveHello/eden
modules/tests/person/__init__.py
from search_person import * from create_person import *
gonglu666/gt_im_sdk
src/com/minxing/client/utils/StringUtil.java
<gh_stars>0 package com.minxing.client.utils; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; public class StringUtil { public static String convertContentToHtml(String content){ content = content.replaceAll("(\r\n|\n)", "<br/>"); content = content.replaceAll(" ", "&nbsp;"); retur...
mevans845/healthcare
deploy/templates/data_project.py
# Copyright 2018 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
qinweizhao/qwz-mall
mall-backend/mall-service/mall-service-system/src/main/java/com/qinweizhao/system/controller/SysLogininforController.java
package com.qinweizhao.system.controller; import com.qinweizhao.common.core.utils.poi.ExcelUtil; import com.qinweizhao.common.core.web.controller.BaseController; import com.qinweizhao.common.core.web.domain.AjaxResult; import com.qinweizhao.common.core.web.page.TableDataInfo; import com.qinweizhao.common.security.anno...
azkarmoulana/pycon
symposion/social_auth/views.py
from django.http import HttpResponseRedirect from django.views.generic.list import ListView from django.utils.translation import ugettext as _ from django.contrib import messages from django.contrib.auth import REDIRECT_FIELD_NAME from django.contrib.auth.decorators import login_required from account.mixins import Lo...
zealoussnow/chromium
ios/chrome/browser/crash_report/features.h
// Copyright 2020 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 IOS_CHROME_BROWSER_CRASH_REPORT_FEATURES_H_ #define IOS_CHROME_BROWSER_CRASH_REPORT_FEATURES_H_ #include "base/feature_list.h" extern const base...
yanzv/indra_world
scripts/dec2020_compositional.py
import os import sys import glob import tqdm import pickle import logging from indra_world.corpus import Corpus from indra_world.assembly.operations import * from indra_world.sources.dart import process_reader_outputs from indra.pipeline import AssemblyPipeline logger = logging.getLogger('dec2020_compositional') HERE ...
Yinkozi/R8
src/main/java/com/android/tools/r8/BaseCompilerCommandParser.java
// Copyright (c) 2018, the R8 project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. package com.android.tools.r8; import com.android.tools.r8.AssertionsConfiguration.AssertionTransformation;...
kohlschuetter/dumbo
dumbo-jabsorb/src/main/java/org/jabsorb/serializer/response/CircularReferenceHandler.java
/* * jabsorb - a Java to JavaScript Advanced Object Request Broker * http://www.jabsorb.org * * Copyright 2007-2009 The jabsorb team * * based on original code from * JSON-RPC-Java - a JSON-RPC to Java Bridge with dynamic invocation * * Copyright Metaparadigm Pte. Ltd. 2004. * <NAME> <<EMAIL>> * * Licensed ...
kikikos/openairinterface5g
cmake_targets/basic_simulator/enb/CMakeFiles/RRC_Rel14/DL-DCCH-MessageType.c
<reponame>kikikos/openairinterface5g /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "EUTRA-RRC-Definitions" * found in "/home/user/openairinterface5g/openair2/RRC/LTE/MESSAGES/asn1c/ASN1_files/lte-rrc-14.7.0.asn1" * `asn1c -pdu=all -fcompound-names -gen-PER -no-gen-OER -no-gen-examp...
lucasfts/no-waste
no-waste-api/src/models/userSettings.js
const mongoose = require('mongoose'); const settingsSchema = mongoose.Schema({ userId: {type: String, required: true}, settingsId: {type: String, required: true} }); module.exports = mongoose.model('UserSettings', settingsSchema);
vlstus/GoF-Patterns
src/main/java/org/study/creational/factorymethod/logistic/AbstractLogistics.java
<gh_stars>0 package org.study.creational.factorymethod.logistic; import org.study.creational.factorymethod.transport.Transport; public abstract class AbstractLogistics implements Logistics { protected abstract Transport getTransport(); public void transport() { System.out.println("Transporting shipm...
we-code-this/channel-zero-api
seeds/production/promos.js
<filename>seeds/production/promos.js exports.seed = function(knex, Promise) { return knex('promos') .select() .where({ name: 'DigTheDig', }) .then(function(rows) { if (rows.length === 0) { return knex('promos').insert([ { id: 1, user_id: 1, ...
youzhengjie9/cloud-mall
cloud-mall-commons/src/main/java/com/boot/feign/system/fallback/CouponsRecordFallbackFeign.java
package com.boot.feign.system.fallback; import com.boot.feign.system.fallback.impl.CouponsRecordFallbackFeignImpl; import com.boot.pojo.CouponsRecord; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.stereotype.Component; import org.springframework.web.bind.annotation.*; import java....
yashgolwala/Software_Measurement_Team_M
ProjectSourceCode/Apache Commons Math v3.5/src/test/java/org/apache/commons/math3/optimization/linear/SimplexTableauTest.java
<reponame>yashgolwala/Software_Measurement_Team_M<filename>ProjectSourceCode/Apache Commons Math v3.5/src/test/java/org/apache/commons/math3/optimization/linear/SimplexTableauTest.java<gh_stars>0 version https://git-lfs.github.com/spec/v1 oid sha256:56484096394c83148939310308b2968f215afc942cf00a3ebd5b53a5b80e86a3 size ...
joansmith1/ontrack
ontrack-extension/ontrack-extension-git/src/main/java/net/ontrack/extension/git/GitCommitNotFoundException.java
<filename>ontrack-extension/ontrack-extension-git/src/main/java/net/ontrack/extension/git/GitCommitNotFoundException.java<gh_stars>0 package net.ontrack.extension.git; import net.sf.jstring.support.CoreException; public class GitCommitNotFoundException extends CoreException { public GitCommitNotFoundException(Str...
skafle/cloudata
src/examples/first_examples/org/cloudata/examples/first/JdbcExample.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"...
IMCN-UvA/imcn-imaging
nl/uva/imcn/structures/Octree.java
package nl.uva.imcn.structures; import java.io.*; import java.util.*; import nl.uva.imcn.utilities.*; /** * * This class handles octrees and perform simple operations * * Implementation loosely adapted from: * "Simple and efficient traversal methods for quadtrees and octrees" * <NAME> and <NAME>, MERL. * ...
youssefhoummad/downloader
src/one_dl_ui.py
<reponame>youssefhoummad/downloader import os from datetime import datetime import threading import time import ntpath import tkinter as tk from tkinter import ttk from pySmartDL import SmartDL try: from .win10toast import ToastNotifier from .imageLabel import ImageLabel from .buttons import * ...
bobbyz007/NaiveChat
itstack-naive-chat-server/itstack-naive-chat-server-agreement/src/main/java/org/itstack/naive/chat/protocol/login/dto/ChatRecordDto.java
package org.itstack.naive.chat.protocol.login.dto; import java.util.Date; /** * 博 客:http://bugstack.cn * 公众号:bugstack虫洞栈 | 沉淀、分享、成长,让自己和他人都能有所收获! * create by 小傅哥 on @2020 */ public class ChatRecordDto { private String talkId; // 对话框ID private String userId; // 用户ID[自己/好友] private S...
ut-osa/nightcore
src/gateway/engine_connection.h
<filename>src/gateway/engine_connection.h #pragma once #include "base/common.h" #include "common/uv.h" #include "common/protocol.h" #include "common/stat.h" #include "utils/appendable_buffer.h" #include "server/io_worker.h" #include "server/connection_base.h" namespace faas { namespace gateway { class Server; class...
lukflug/postman
src/main/java/me/srgantmoomoo/postman/module/modules/player/ChatWatermark.java
<gh_stars>0 package me.srgantmoomoo.postman.module.modules.player; import java.util.ArrayList; import org.lwjgl.input.Keyboard; import me.srgantmoomoo.api.event.events.PacketEvent; import me.srgantmoomoo.api.util.Refrence; import me.srgantmoomoo.postman.Main; import me.srgantmoomoo.postman.module.Category; import me...
socialsoftware/edition
microfrontend/src/microfrontends/about/pages/Acknowledgements_en.js
import React from 'react' const Acknowledgements_en = () => { return ( <div> <h3>Sponsors</h3> <p> The <em>LdoD Archive</em> is a collaborative digital archive sponsored by the Foundation for Science and Technology (FCT), and supported by the Centre for Portuguese Literature at the University of Coimbr...
micaste/symphony-api-client-java
symphony-bdk-legacy/symphony-api-client-java/src/main/java/model/RoomProperties.java
<reponame>micaste/symphony-api-client-java<filename>symphony-bdk-legacy/symphony-api-client-java/src/main/java/model/RoomProperties.java package model; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import java.util.List; @JsonIgnoreProperties(ignoreUnknown = true) public class RoomProperties { pr...
jianjustin/awesome-leetcode-algorithm
src/main/java/org/awesome/leetcode/algorithm/arrays/YuanQuanZhongZuiHouShengXiaDeShuZiLcof.java
package org.awesome.leetcode.algorithm.arrays; public class YuanQuanZhongZuiHouShengXiaDeShuZiLcof { public int lastRemaining(int n, int m) { int[] arr = new int[n]; int begin = 0, result = 0; for(int i=1; i<n; i++) { int item = m%n+begin-1; while(arr[item] == -1)item++; arr[item] = -1; while(a...
hunshikan/corant
corant-modules/corant-modules-jpa/corant-modules-jpa-hibernate-ogm/src/main/java/org/corant/modules/jpa/hibernate/ogm/type/BigDecimalType.java
package org.corant.modules.jpa.hibernate.ogm.type; import java.math.BigDecimal; import org.hibernate.MappingException; import org.hibernate.engine.spi.Mapping; import org.hibernate.ogm.type.impl.AbstractGenericBasicType; import org.hibernate.type.descriptor.java.BigDecimalTypeDescriptor; /** * corant-modules-jpa-hib...
xiivler/smo-practice
include/nn/atk.h
#pragma once #include "types.h" namespace nn { namespace atk { class SoundArchive { public: const char* GetItemLabel(u32 id) const; u32 GetItemId(char const* label) const; }; class SoundActor // Inherits SoundStartable, size: 0x7C { public: virtual ~SoundActor(); u8 data[0x7C-0x4]; }; } }
Claudio5/GyroDraw
app/src/main/java/ch/epfl/sweng/GyroDraw/MainActivity.java
package ch.epfl.sweng.GyroDraw; import android.os.Bundle; import androidx.annotation.NonNull; import androidx.annotation.VisibleForTesting; import android.view.View; import android.view.View.OnClickListener; import android.widget.TextView; import android.widget.Toast; import com.google.firebase.FirebaseApp; import co...
matthewberends/Software
src/software/gui/widgets/zoomable_qgraphics_view.h
#pragma once #include <QtGui/QKeyEvent> #include <QtGui/QWheelEvent> #include <QtWidgets/QGraphicsView> /** * A custom QGraphicsView that allows zooming with the mousewheel */ class ZoomableQGraphicsView : public QGraphicsView { Q_OBJECT public: explicit ZoomableQGraphicsView(QWidget *parent = 0); pr...
aayushkapoor206/whatshot
node_modules/ionic-framework/dist/src/es5/system/ionic/animations/ios-transition.js
System.register('ionic/animations/ios-transition', ['./animation'], function (_export) { 'use strict'; var Animation, DURATION, EASING, OPACITY, TRANSLATEX, OFF_RIGHT, OFF_LEFT, CENTER, OFF_OPACITY, SHOW_BACK_BTN_CSS, IOSTransition; var _get = function get(_x, _x2, _x3) { var _again = true; _function: whi...
navikt/fp-formidling
domenetjenester/brevbestiller/src/test/java/no/nav/foreldrepenger/melding/datamapper/DatamapperTestUtil.java
<filename>domenetjenester/brevbestiller/src/test/java/no/nav/foreldrepenger/melding/datamapper/DatamapperTestUtil.java<gh_stars>1-10 package no.nav.foreldrepenger.melding.datamapper; import static org.mockito.Mockito.when; import java.time.LocalDate; import java.time.LocalDateTime; import java.time.Period; import jav...
RobotLocomotion/drake-python3.7
solvers/test/rotation_constraint_test.cc
#include "drake/solvers/rotation_constraint.h" #include <random> #include <gtest/gtest.h> #include "drake/common/symbolic.h" #include "drake/common/test_utilities/eigen_matrix_compare.h" #include "drake/math/random_rotation.h" #include "drake/math/rotation_matrix.h" #include "drake/solvers/mathematical_program.h" #i...
wh00sh/Tanda-DAPP
node_modules/mdi-material-ui/DishwasherAlert.js
<gh_stars>0 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _createIcon = _interopRequireDefault(require("./util/createIcon")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } var _default = (0, _create...
DBCDK/fcrepo-3.5-patched
fcrepo-server/src/main/java/org/fcrepo/server/test/ClearSQLDatabase.java
package org.fcrepo.server.test; import org.fcrepo.server.Server; import org.fcrepo.server.utilities.rebuild.SQLRebuilder; /** * Clears the SQL database post-install. Can be called by system test scripts to * make sure that the configured SQL database is empty after installing fedora, * but before running it for t...
anytimefitness/oa-oauth
lib/omniauth/strategies/oauth/qzone.rb
require 'omniauth/oauth' require 'multi_json' module OmniAuth module Strategies # # Authenticate to qzone (QQ) via OAuth and retrieve basic # user information. # # Usage: # # use OmniAuth::Strategies::Qzone, 'consumerkey', 'consumersecret' # class Qzone < OmniAuth::Strategies::...
matjaz99/MyTestProjects
javase/src/main/java/si/matjazcerkvenik/test/javase/callback/example4/Callable.java
package si.matjazcerkvenik.test.javase.callback.example4; public interface Callable { public void callBackMethod(); }
hepyu/lcp-java
open-lcp-core-framework/src/main/java/com/open/lcp/core/framework/api/listener/CommandListener.java
<gh_stars>1-10 package com.open.lcp.core.framework.api.listener; import com.open.lcp.core.api.command.CommandContext; /** * 命令侦听:不支持动态变更 * * @author */ public interface CommandListener { /** * 返回需要侦听的接口列表,大小写不敏感,仅在首次加载时获取,之后不会更新。 * * @return */ public String[] getCommands(); /...
skkuse-adv/2019Fall_team2
analysis/reverse-engineering/decompile-fitts-20191031-2200/sources/kr/co/popone/fitts/feature/recommend/personalization/PersonalizedRecommendActivity$updatePostUi$manager$1$1.java
package kr.co.popone.fitts.feature.recommend.personalization; import androidx.recyclerview.widget.GridLayoutManager.SpanSizeLookup; public final class PersonalizedRecommendActivity$updatePostUi$manager$1$1 extends SpanSizeLookup { PersonalizedRecommendActivity$updatePostUi$manager$1$1() { } publi...
Fork-World/meecrowave
meecrowave-core/src/test/java/org/apache/meecrowave/ContextInProxiedInstancesTest.java
<filename>meecrowave-core/src/test/java/org/apache/meecrowave/ContextInProxiedInstancesTest.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...
wangdingfeng/J2EEFAST
fast-web/src/main/java/com/j2eefast/web/legao/mapper/LTableMapper.java
/* * All content copyright http://www.j2eefast.com, unless * otherwise indicated. All rights reserved. * No deletion without permission */ package com.j2eefast.web.legao.mapper; import com.j2eefast.web.legao.entity.LTableEntity; import java.util.List; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import ...
Easonrust/leetcode_journey
problem/10.regular-expression-matching.java
<reponame>Easonrust/leetcode_journey<filename>problem/10.regular-expression-matching.java /* * @lc app=leetcode id=10 lang=java * * [10] Regular Expression Matching */ // @lc code=start class Solution { public boolean isMatch(String text, String pattern) { // 只有当text和pattern都完事了,才说明匹配 if (pattern.isEmpty()) ...
Lewes/ecssweb
feedback/migrations/0007_auto_20180728_0930.py
<gh_stars>1-10 # Generated by Django 2.0.5 on 2018-07-28 08:30 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('feedback', '0006_feedbackauditlog'), ] operations = [ migrations.AlterField( model_name='feedbackauditlog', ...
linyingzhen/btnew
src/person/prize/Detail/_Attention.js
<filename>src/person/prize/Detail/_Attention.js<gh_stars>0 /** * const prefixCls = 'style-101574'; * const images = '/static/images/src/person/prize/Detail'; * @Author: lyz0720 * @Date: 2018-09-14 10:38:23 * @Last Modified by: czy0729 * @Last Modified time: 2018-11-07 11:03:43 * @Path bt_mb_new /src/person/prize...
mattbrun/derby-login
lib/middleware/sessionMiddleware.js
module.exports = function(req, res, next) { var self = this; var model = req.getModel(); // Generate new userId if absent and put it to session and model var userId = req.session.userId; if (!userId) userId = req.session.userId = model.id(); model.set('_session.userId', userId); var isAuthenticated = re...
Pirate5946/techframework
src/main/java/advance/datastructureandalgorithm/tree/FindSumPath.java
package advance.datastructureandalgorithm.tree; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; /** * @ClassName FindSumPath * @Descrption TODO * @Author lt * @Date 2019/6/8 16:48 * @Version 1.0 **/ public class FindSumPath { public static void main(String[] args) { ...