repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
y2ghost/study | java/servlet/src/main/java/study/ywork/servlet/example/SimpleServlet.java | <reponame>y2ghost/study
package study.ywork.servlet.example;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import static study.ywork.servlet.constant.MediaType.TEXT_HTML_UTF8;
... |
BlockSpaces/rchain | rholang/src/main/scala/coop/rchain/rholang/interpreter/Runtime.scala | <reponame>BlockSpaces/rchain<gh_stars>0
package coop.rchain.rholang.interpreter
import java.nio.file.{Files, Path}
import coop.rchain.models.Channel.ChannelInstance.{ChanVar, Quote}
import coop.rchain.models.Expr.ExprInstance.GString
import coop.rchain.models.TaggedContinuation.TaggedCont.ScalaBodyRef
import coop.rch... |
sajustsmile/twitter-blockchain | studio/node_modules/@sanity/state-router/lib/utils/isEmpty.js | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = isEmpty;
var _hasOwn = _interopRequireDefault(require("./hasOwn"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function isEmpty(object) {
for (var key in object) {
... |
kubohiroya/sqs-editor | src/main/java/net/sqs2/editor/sqs/modules/panel/SelectFormItemListPanel.java | /*
SelectFormItemList.java
Copyright 2004 <NAME> (<EMAIL>).
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 la... |
bryanbalderas/DAS_Sistemas | Ago-Dic-2020/rodriguez-martinez-jesus-angel/Practica-3/observer.test.py | import unittest
from observer import Subscriber, Publisher
class SubscriberTest(unittest.TestCase):
def test_subscriber_creation(self):
sub = Subscriber("Bob")
self.assertEqual(str(sub), "I'm Bob")
class PublisherTest(unittest.TestCase):
def test_publisher_creation(self):
pub = Publis... |
monkiyang/objc-runtime | applesources/xnu-3789.41.3/tools/tests/libMicro/memcpy.c | <reponame>monkiyang/objc-runtime
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the "License"). You may not use this file except
* in compliance with the License.
*
* You can obtain a copy of the license at
* src/OPENSOLARI... |
poovarasanvasudevan/atlas | resources/assets/js/components/icons/svg/Star.js | <filename>resources/assets/js/components/icons/svg/Star.js
import React from "react";
const Star = props => (
<svg width="1em" height="1em" viewBox="0 0 1792 1792" {...props}>
<path d="M1728 647q0 22-26 48l-363 354 86 500q1 7 1 20 0 21-10.5 35.5T1385 1619q-19 0-40-12l-449-236-449 236q-22 12-40 12-21 0-31.5-14.5T... |
InCadence/coalesce | src/Coalesce/src/main/java/com/incadencecorp/coalesce/framework/exim/impl/JsonFullEximImpl.java | /*-----------------------------------------------------------------------------'
Copyright 2016 - InCadence Strategic Solutions Inc., All Rights Reserved
Notwithstanding any contractor copyright notice, the Government has Unlimited
Rights in this work as defined by DFARS 252.227-7013 and 252.227-7014. Use
of this... |
terceiro/rmagick | spec/rmagick/image/opaque_spec.rb | RSpec.describe Magick::Image, '#opaque' do
it 'works' do
image = described_class.new(20, 20)
result = image.opaque('white', 'red')
expect(result).to be_instance_of(described_class)
expect(result).not_to be(image)
red = Magick::Pixel.new(Magick::QuantumRange)
blue = Magick::Pixel.new(0, 0, Ma... |
leonardoanthony/Origamid | react-js/mod4/inputs/src/0402/App.js | import React from "react";
const App = () => {
const [mensagem, setMensagem] = React.useState("");
function handleChange({target}) {
setMensagem(target.value);
}
return (
<form>
<textarea rows="3" value={mensagem} onChange={handleChange} />
{mensagem}
</form>
);
};
export default Ap... |
JavaQualitasCorpus/myfaces_core-2.1.10 | src/myfaces-api-2.1.10-sources/javax/faces/component/html/HtmlDoctype.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")... |
luci/luci-go | cv/internal/common/tree/tree_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... |
cquiroz/ocs | bundle/jsky.app.ot/src/main/scala/jsky/app/ot/gemini/editor/auxfile/AuxFileModel.scala | package jsky.app.ot.gemini.editor.auxfile
import edu.gemini.auxfile.api.AuxFile
import edu.gemini.auxfile.client.AuxFileClient
import edu.gemini.sp.vcs.reg.VcsRegistrar
import edu.gemini.spModel.core.SPProgramID
import AuxFileState.{Busy, Idle}
import scala.swing.Publisher
import jsky.app.ot.OT
/**
* The AuxFileM... |
concord-consortium/energy3d | src/main/java/org/concord/energy3d/Designer.java | package org.concord.energy3d;
import java.io.Serializable;
/**
* @author <NAME>
*/
public class Designer implements Serializable {
private static final long serialVersionUID = 1L;
private String name;
private String email;
private String organization;
public Designer() {
name = "User... |
valenciateh-nus/HRMS | src/App.js | import { StyledEngineProvider, ThemeProvider } from '@material-ui/core';
import AdapterDateFns from '@mui/lab/AdapterDateFns';
import LocalizationProvider from '@mui/lab/LocalizationProvider';
import { onAuthStateChanged } from 'firebase/auth';
import { useState } from 'react';
import 'react-perfect-scrollbar/dist/css/... |
FOC-framework/l3 | foc/src/b01/foc/calendar/HolidayDesc.java | <filename>foc/src/b01/foc/calendar/HolidayDesc.java
package b01.foc.calendar;
import java.sql.Date;
import b01.foc.desc.FocDesc;
import b01.foc.desc.field.FCharField;
import b01.foc.desc.field.FDateField;
import b01.foc.desc.field.FField;
import b01.foc.desc.field.FObjectField;
import b01.foc.list.FocList;
import b01... |
mennooo/apex-powerful-javascript-skills | src/apex/demo/modules/jet.js | <reponame>mennooo/apex-powerful-javascript-skills
/* global apex kscope */
;(function ($, apex, kscope) {
function addReferenceObject (da, options) {
// referenceObject defaults
var defaults = {
lineWidth: 3,
color: 'red',
location: 'front',
value: 10
}
// extending defaults wi... |
Scottacus64/mpf | mpf/modes/tilt/__init__.py | <reponame>Scottacus64/mpf
"""Default tilt mode."""
|
CoOwner/VisualPvP | com/mongodb/operation/IndexHelper.java | package com.mongodb.operation;
import org.bson.BsonDocument;
import org.bson.BsonNumber;
import org.bson.BsonString;
import org.bson.BsonValue;
final class IndexHelper
{
static String generateIndexName(BsonDocument index)
{
StringBuilder indexName = new StringBuilder();
for (String key... |
ninoseki/SimpleWhatWeb | lib/whatweb/plugins/clicky.rb | # frozen_string_literal: true
##
# This file is part of WhatWeb and may be subject to
# redistribution and commercial restrictions. Please see the WhatWeb
# web site for more information on licensing and terms of use.
# http://www.morningstarsecurity.com/research/whatweb
##
WhatWeb::Plugin.define "Clicky" do
@author... |
moutainhigh/ses-server | ses-app/ses-web-ros/src/main/java/com/redescooter/ses/web/ros/vo/wms/cn/WhOutDetailResult.java | package com.redescooter.ses.web.ros.vo.wms.cn;
import com.redescooter.ses.api.common.vo.base.GeneralResult;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import io.swagger.annotations.*;
/**
* @ClassName:WhOutDetailResu... |
Civil-Service-Human-Resources/identity-management | src/main/java/uk/gov/cshr/service/RequestEntityException.java | package uk.gov.cshr.service;
public class RequestEntityException extends RuntimeException {
public RequestEntityException(Throwable cause) {
super("Unable to create request", cause);
}
}
|
nikolasco/amanda | ndmp-src/ndmp-proxy_main.c | /*
* Copyright (c) 1998,1999,2000
* Traakan, Inc., Los Altos, CA
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* ... |
TechnologicalPizza/AC-1.7.3 | src/main/java/io/github/ryuu/adventurecraft/overrides/st.java | <gh_stars>0
package io.github.ryuu.adventurecraft.overrides;
public class st {
public final eb a;
public int b;
public int c;
public int d;
public int e;
public int f;
public int g;
public st(eb enumskyblock, int i, int j, int k, int l, int i1, int j1) {
this.a = enumskyb... |
olia-la/airy | lib/java/spring/auth/src/test/java/co/airy/spring/auth/JwtAuthenticationFilterTest.java | package co.airy.spring.auth;
import co.airy.spring.jwt.Jwt;
import co.airy.spring.core.AirySpringBootApplication;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.s... |
craftmania-cz/craftmanager | src/main/java/cz/wake/manager/commads/Hud_Command.java | package cz.wake.manager.commads;
import co.aikar.commands.BaseCommand;
import co.aikar.commands.CommandHelp;
import co.aikar.commands.annotation.CommandAlias;
import co.aikar.commands.annotation.Default;
import co.aikar.commands.annotation.Description;
import co.aikar.commands.annotation.HelpCommand;
import cz.craftma... |
anjingbin/starccm | xercesc/xerces-c1_7_0-SolForCC/include/xercesc/util/XMLUniDefs.hpp | <filename>xercesc/xerces-c1_7_0-SolForCC/include/xercesc/util/XMLUniDefs.hpp
/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999-2001 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provi... |
lubbo/onebusaway-openswift | onebusaway-transit-data-federation/src/main/java/org/onebusaway/transit_data_federation/impl/tripplanner/StopTransferServiceImpl.java | <reponame>lubbo/onebusaway-openswift
/**
* Copyright (C) 2011 <NAME> <<EMAIL>>
*
* 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
*... |
lucb31/beam | src/main/scala/ftm/charging/NonlinearChargingModel.scala | <gh_stars>0
package ftm.charging
object NonlinearChargingModel {
def calcChargingPower(currentEnergyLevelInJoule: Double, batteryCapacityInJoule: Double, maxChargingPowerInKw: Double): Double = {
if (currentEnergyLevelInJoule > 0.0)
(0.6 * Math.pow(0.05, currentEnergyLevelInJoule / batteryCapacityInJoule) ... |
looeee/THREE.App | src/DebugOverlay/LightsDebug/subfolders/addDirectionalLightShadowDebug.js | <filename>src/DebugOverlay/LightsDebug/subfolders/addDirectionalLightShadowDebug.js<gh_stars>1-10
function addDirectionalLightShadowDebug(folder, light) {
const subfolder = folder.addFolder('Shadow');
subfolder.open();
const shadowCamera = light.shadow.camera;
const params = {
castShadow: light.castShadow,... |
sunkeding/NEGroupCall | iOS/NEGroupCall-iOS/Class/Person/UI/View/NEFeedbackInputCell.h | //
// NEFeedbackInputCell.h
// NLiteAVDemo
//
// Created by <NAME> on 2020/11/22.
// Copyright © 2020 Netease. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface NEFeedbackInputCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UITextView *textView;
@end
NS_ASSUME_NONNU... |
liyaovvvv/RuoYi-fast | src/main/java/com/ruoyi/project/monitor/job/task/RyTask.java | <gh_stars>0
package com.ruoyi.project.monitor.job.task;
import com.ruoyi.project.system.data.service.IDataViewService;
import com.ruoyi.project.system.gbdata.service.IGbDataService;
import com.ruoyi.project.system.gbdata.service.IRefreshSignKeyService;
import org.springframework.stereotype.Component;
import com.ruoyi.... |
unisoc-android/android_packages_apps_TV | src/com/android/tv/ui/api/TunableTvViewPlayingApi.java | /*
* Copyright (C) 2018 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://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
Azure-ukgov-paas/paas-cli | plugin_examples/call_cli_cmd/main/call_cli_cmd.go | /**
* This plugin is an example plugin that allows a user to call a cli-command
* by typing `cf cli-command name-of-command args.....`. This plugin also prints
* the output returned by the CLI when a cli-command is invoked.
*/
package main
import (
"fmt"
"github.com/cloudfoundry/cli/plugin"
)
type CliCmd struct{}... |
dartartem/eventuate-tram-messaging-http | eventuate-tram-messaging-proxy-service/src/main/java/io/eventuate/tram/messaging/proxy/service/SubscriptionRequestManager.java | <filename>eventuate-tram-messaging-proxy-service/src/main/java/io/eventuate/tram/messaging/proxy/service/SubscriptionRequestManager.java
package io.eventuate.tram.messaging.proxy.service;
import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.framework.recipes.cache.TreeCache;
import org.apach... |
Aleksey-Voko/Word_forms_bases | BS/BS_050_120321/main.py | from BS.utils import read_src_socket_bs, save_list_to_file, read_src_bs
CYRILLIC = 'АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ'
def get_bg_abbreviation():
socket_group_list = read_src_socket_bs('src_dict/БГ 09.03.21.txt')
abbreviation_bg = []
capital_letter_bg = []
for socket_group in socket_group_list:
... |
probonopd/imagewriter | dependencies/libarchive-3.4.2/libarchive/test/test_write_disk_lookup.c | /*-
* Copyright (c) 2003-2010 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditi... |
palantir/stashbot | src/test/java/com/palantir/stash/stashbot/upgrade/ConfigurationUpgradeV2Test.java | // Copyright 2015 <NAME>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, ... |
mamez/netCashMovilBase | pom-padre-pibee/pibee_movil_cbd/src/main/java/com/bbva/pibee/cbd/mappers/TtlnemanMapper.java | <filename>pom-padre-pibee/pibee_movil_cbd/src/main/java/com/bbva/pibee/cbd/mappers/TtlnemanMapper.java
package com.bbva.pibee.cbd.mappers;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;
import com.bbva.pibee.arq.annotations.UtilDto;
import com.bbva.pibee.dto.... |
cheyiliu/test4XXX | test4txMap2/src/com/didi/es/map/marker/EsFromToInfoMarker.java | package com.didi.es.map.marker;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;
import com.didi.es.map.base.EsMapView;
import com.didi.es.map.base.EsMarkerBase;
import com.example.test4txmap.EsApp;
import com.example.test4txmap.R;
import com.tencent.tencentmap.mapsdk.maps... |
dareludum/icfpc2020 | vendor/fltk-sys/cfltk/fltk/src/Fl_Gl_Choice.cxx | //
// OpenGL visual selection code for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2018 by <NAME> and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
// file is missing or damaged, see the li... |
rafarbop/Python | desafio33.py | # Desafio 33 Curso em Video Python
# Este programa ordena três números em sequência.
# By Rafabr
import sys
import time
import os
import random
os.system('clear')
print('\nDesafio 33')
print('Este programa ordena três números em sequência.\n\n')
try:
n1 = float(input('Informe o primeiro número: ').strip())
... |
zhangdddong/beautifulNLP | 命名实体识别/hmm/model_utils.py | <filename>命名实体识别/hmm/model_utils.py<gh_stars>1-10
#!/usr/bin/python3
# -*- coding: UTF-8 -*-
__author__ = 'zd'
import numpy as np
def log(v):
if v == 0:
return np.log(v + 0.00000001)
return np.log(v)
def get_matrix(word2id, tag2id, id2tag, file_path):
"""
:param word2id:
:param tag2id:
... |
jadedevin13/collect | collect-webapp/frontend/src/common/hooks/index.js | <gh_stars>10-100
export { useRecordEvent } from './useRecordEvent'
export { useWindowResize } from './useWindowResize'
|
jiaojie1989/osc-android | app/src/main/java/net/oschina/app/fragment/TweetsFragment.java | package net.oschina.app.fragment;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.w... |
ivan-gammel/orm16 | processor/src/main/java/com/esoftworks/orm16/processor/model/TypeMapping.java | <filename>processor/src/main/java/com/esoftworks/orm16/processor/model/TypeMapping.java<gh_stars>0
package com.esoftworks.orm16.processor.model;
public record TypeMapping(String jdbcType,
boolean cast,
ConversionInvocation onRead,
Conversion... |
WerHawer/goit-js-fe-25 | module-8/photoToPage.js | "use strict";
import photos from "./gallery-items.js";
import photoMarkup from "./photoMarkup.js";
import refs from "./refs.js";
import { lazyLoad } from "./lazyLoad.js";
export function photoToPage(arr) {
const allPhoto = arr
.map(({ preview, original, description }) =>
photoMarkup(preview, original, des... |
sramana2/so | bpmn/MSOCommonBPMN/src/main/java/org/onap/so/client/cds/PayloadConstants.java | <filename>bpmn/MSOCommonBPMN/src/main/java/org/onap/so/client/cds/PayloadConstants.java<gh_stars>0
/*-
* ============LICENSE_START=======================================================
* ONAP - SO
* ================================================================================
* Copyright (C) 2019 Bell Canada
*... |
qianzha/BloodMagic | BM_src/forestry/api/apiculture/package-info.java | <reponame>qianzha/BloodMagic<gh_stars>0
@API(apiVersion="1.0", owner="ForestryAPI|core", provides="ForestryAPI|apiculture")
package forestry.api.apiculture;
import cpw.mods.fml.common.API; |
dunwu/zero | zero-aaa/zero-aaa-provider/src/main/java/io/github/dunwu/zero/aaa/controller/LoginInfoController.java | <reponame>dunwu/zero
package io.github.dunwu.zero.aaa.controller;
import io.github.dunwu.core.*;
import io.github.dunwu.zero.aaa.entity.LoginInfo;
import io.github.dunwu.zero.aaa.service.LoginInfoService;
import io.github.dunwu.web.controller.CrudController;
import io.swagger.annotations.Api;
import io.swagger.annotat... |
sacloud/libsacloud-v2 | internal/schema/resource.go | <filename>internal/schema/resource.go
package schema
import (
"net/http"
"strings"
"github.com/sacloud/libsacloud-v2/internal/schema/meta"
"github.com/sacloud/libsacloud-v2/sacloud/naked"
)
// Resources []*Resourceのエイリアス
type Resources []*Resource
// ImportStatements コード生成時に利用するimport文を生成する
func (r Resources) I... |
tony2u/Medusa | Medusa/MedusaExtension/CocosStudio/Reader/SpriteReader.cpp | <gh_stars>100-1000
#include "MedusaExtensionPreCompiled.h"
#include "SpriteReader.h"
#include "Core/String/StringRef.h"
#include "Core/IO/FileId.h"
#include "Node/Sprite/Sprite.h"
#include "Node/NodeFactory.h"
#include "ReaderFactory.h"
#include "CocosStudio/CSParseBinary_generated.h"
#include "Rendering/RenderingObjec... |
masud-technope/ACER-Replication-Package-ASE2017 | corpus/class/sling/1019.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... |
sujoypodder/HMS | HMS/src/hms/Update.java | <filename>HMS/src/hms/Update.java
package hms;
import java.sql.Connection;
import java.sql.*;
import javax.swing.JOptionPane;
public class Update extends javax.swing.JFrame {
/**
* Creates new form Update
*/
public Update() {
initComponents();
}
/**
* This method is called from ... |
daodao10/chart | cn/SZ399974_d.js | <reponame>daodao10/chart
var data=[['20141229',1419.190],
['20141230',1398.740],
['20141231',1418.310],
['20150105',1449.150],
['20150106',1464.710],
['20150107',1460.470],
['20150108',1441.030],
['20150109',1426.050],
['20150112',1406.770],
['20150113',1415.970],
['20150114',1407.210],
['20150115',1429.810],
['2015011... |
hortonworks/kite | kite-morphlines/kite-morphlines-core/src/test/java/org/kitesdk/morphline/stdlib/PatternMetricFilterTest.java | <filename>kite-morphlines/kite-morphlines-core/src/test/java/org/kitesdk/morphline/stdlib/PatternMetricFilterTest.java
/*
* Copyright 2013 Cloudera 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 ... |
KrimsonKing1337/gordey-backend | src/routes/tag/index.js | const express = require('express');
const getTagsAll = require('./get-all.js');
const postTag = require('./post.js');
const patchTag = require('./patch.js');
const deleteTag = require('./delete.js');
const router = express.Router();
router.use(getTagsAll);
router.use(postTag);
router.use(patchTag);
router.use(delete... |
Antag99/aquarria | aquarria/src/com/github/antag99/aquarria/BasicItemType.java | /*******************************************************************************
* Copyright (c) 2014-2015, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of... |
Ehtisham-Ayaan/aoo-ghr-bnain-update | node_modules/@iconify/icons-mdi/pub-outline.js | <reponame>Ehtisham-Ayaan/aoo-ghr-bnain-update<gh_stars>1-10
var data = {
"body": "<path d=\"M4 2l2 20h11l2-20H4m2.2 2h10.6l-.3 3.23c-3.32 1.27-4.65.44-5.12.08c-.25-.19-.61-.62-1.27-.92c-.66-.31-1.56-.39-2.61-.07c-.41.11-.73.29-1 .47L6.2 4m2.66 4.11c.19 0 .3.04.41.09c.23.1.44.35.9.7c.86.66 2.86 1.46 6.09.51L15.2 20H7.8... |
benknoll-umn/BioMedICUS | biomedicus-core/src/main/java/edu/umn/biomedicus/normalization/TermPos.java | <gh_stars>10-100
/*
* Copyright (c) 2018 Regents of the University of Minnesota.
*
* 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
*
... |
cxelegance/bread-calculator | src/tests/lib/calculators.test.js | import {twoDecimal, zeroOrNumber} from '../../lib/calculators';
const zero = '0.00';
test('twoDecimal handles 0 correctly', () => {
expect(twoDecimal(0)).toBe(zero);
expect(twoDecimal(-0)).toBe(zero);
expect(twoDecimal(+0)).toBe(zero);
expect(twoDecimal('0')).toBe(zero);
expect(twoDecimal('-0')).toBe(zero);
exp... |
djose1164/Immortal-WIll | include/core/physics.h | <filename>include/core/physics.h
#ifndef PHYSICS
#define PHYSICS
#include "living.h"
#include <raylib.h>
struct World
{
double gravity;
};
static inline double physics_get_velocity(Living *being, const double time)
{
return (double)(being->str / being->weight) * time;
}
static inline double physics_speed... |
smileytechguy/COMPPROG1 | Ch02/A3_010_RandomBox_Overcash.java |
/**
* @author <NAME> -- smileytechguy
* @version 2.0.1.2.43.3.2.3
* explainations of code: https://goo.gl/RyIzwb
*/
import objectdraw.*;
import java.awt.*;
import java.util.*;
public class A3_010_RandomBox_Overcash extends WindowController {
public static void main(String[ ]args) {
A3_010_RandomBox_Overcash o... |
frederic-lefevre/FlUtils | src/main/java/org/fl/util/io/ForkableInputStream.java | package org.fl.util.io;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
public class ForkableInputStream extends InputStream {
... |
ECharts-Java/ECharts-Java | src/main/java/org/icepear/echarts/origin/util/CircleLayoutOptionMixin.java | package org.icepear.echarts.origin.util;
/**
* https://github.com/apache/echarts/blob/790687df55a5dbe286e52cf182c0983938efd367/src/util/types.ts#L834
*/
public interface CircleLayoutOptionMixin {
CircleLayoutOptionMixin setCenter(Number[] center);
CircleLayoutOptionMixin setCenter(String[] center);
Ci... |
cristigr/macrobase | lib/src/test/java/edu/stanford/futuredata/macrobase/analysis/summary/fpg/result/ExplanationTest.java | <gh_stars>100-1000
package edu.stanford.futuredata.macrobase.analysis.summary.fpg.result;
import edu.stanford.futuredata.macrobase.analysis.summary.fpg.FPGExplanation;
import edu.stanford.futuredata.macrobase.analysis.summary.fpg.result.FPGAttributeSet;
import org.junit.Test;
import java.util.Arrays;
import java.util... |
juanfelipe82193/opensap | sapui5-sdk-1.74.0/resources/sap/gantt/shape/cal/Calendar-dbg.js | <filename>sapui5-sdk-1.74.0/resources/sap/gantt/shape/cal/Calendar-dbg.js
/*!
* SAP UI development toolkit for HTML5 (SAPUI5)
(c) Copyright 2009-2015 SAP SE. All rights reserved
*/
sap.ui.define([
"sap/gantt/shape/Rectangle"
], function (Rectangle) {
"use strict";
/**
* Creates a Calendar shape which consu... |
oscana/oscana-s2n-javaconverter | src/main/java/jp/co/tis/s2n/javaConverter/convert/validation/sastruts/DateFormatValidateHandler.java | <filename>src/main/java/jp/co/tis/s2n/javaConverter/convert/validation/sastruts/DateFormatValidateHandler.java<gh_stars>0
package jp.co.tis.s2n.javaConverter.convert.validation.sastruts;
import jp.co.tis.s2n.javaConverter.convert.validation.annotation.FieldValidateAnnotation;
import jp.co.tis.s2n.javaConverter.convert... |
velasqueziturrate/multiplataforma | node_modules/.staging/@nativescript/core-b2cc363a/fps-meter/index.js | import * as fpsNative from './fps-native';
const callbacks = {};
let idCounter = 0;
let _minFps = 1000;
let framesRendered = 0;
let frameStartTime = 0;
function doFrame(currentTimeMillis) {
let fps = 0;
if (frameStartTime > 0) {
// take the span in milliseconds
const timeSpan = currentTimeMillis... |
397786756/noark3 | noark-core/src/main/java/xyz/noark/core/ioc/manager/EventMethodManager.java | /*
* Copyright © 2018 www.noark.xyz All Rights Reserved.
*
* 感谢您选择Noark框架,希望我们的努力能为您提供一个简单、易用、稳定的服务器端框架 !
* 除非符合Noark许可协议,否则不得使用该文件,您可以下载许可协议文件:
*
* http://www.noark.xyz/LICENSE
*
* 1.未经许可,任何公司及个人不得以任何方式或理由对本框架进行修改、使用和传播;
* 2.禁止在本项目或任何子项目的基础上发展任何派生版本、修改版本或第三方版本;
* 3.无论你对源代码做出任何修改和改进,版权都归Noark研发团队所有,我们保... |
Kamilleski/classics-archivee | app/models/rss_to_dumped_link.rb | <filename>app/models/rss_to_dumped_link.rb
require 'rss'
module RSSToDumpedLink
def get_feed(rss_url)
response = HTTParty.get rss_url
feed = RSS::Parser.parse response.body
end
def feed_to_link(parsed_feed)
existing_titles = Article.all.map(&:title).concat DumpedLink.all.map(&:title)
parsed_fee... |
Oonan/Uckeckin | modules/signals/client/signals.client.module.js | 'use strict';
// Use Applicaion configuration module to register a new module
ApplicationConfiguration.registerModule('signals', ['core']);
ApplicationConfiguration.registerModule('signals.admin', ['core.admin']);
ApplicationConfiguration.registerModule('signals.admin.routes', ['core.admin.routes']);
ApplicationConfig... |
berenddeboer/ewg | library/runtime/c/src/ewg_identified.c | /* The following has been taken from eGTK. */
/* It is the C part of a weak reference implementation for SE. */
/* If I understand it correctly, `id_table' will never shrink. */
/* Thats why this implementation is suboptimal, but word on the street */
/* is that SE will gain native weak references really soon n... |
shiomusubi496/library | test/yuki/1601-RangeSet.test.cpp | <filename>test/yuki/1601-RangeSet.test.cpp
#define PROBLEM "https://yukicoder.me/problems/1601"
#include "../../other/template.hpp"
#include "../../data-struct/other/RangeSet.hpp"
using namespace std;
int main() {
ll D, Q; cin >> D >> Q;
RangeSet st;
ll ans = 0;
rep (Q) {
ll a, b; cin >> a >> b;... |
stackriot/micro-stripe-example | packages/stripe-mongoose/src/subscription-items/schema.js | <reponame>stackriot/micro-stripe-example
const {
required,
ref,
refList
} = require('../_schema/helpers')
module.exports = {
id: required(String),
plan: ref('Plan'),
quantity: Number
} |
Stanford-PERTS/triton | src/state/metrics/selectors.js | import _values from 'lodash/values';
export const allMetrics = state =>
_values(state.metrics).sort((a, b) => {
// alphabetical sort
if (a.name < b.name) {
return -1;
}
if (a.name > b.name) {
return 1;
}
return 0;
});
export const mapMetricIdToBool = state =>
Object.keys(stat... |
vftens/MuZeroText2021 | MuZero/muzero-general/games/RocAlphaGo_aug25_keras2_py35/node_modules/@consta/uikit/__internal__/cjs-src/utils/types/PropsWithAsAttributes.js | "use strict";
exports.__esModule = true;
exports.forwardRefWithAs = void 0;
var tslib_1 = require("tslib");
var react_1 = tslib_1.__importDefault(require("react"));
function forwardRefWithAs(render) {
return react_1["default"].forwardRef(render);
}
exports.forwardRefWithAs = forwardRefWithAs;
|
beyzanurkarakaya/Java-Programming | OOP-Proje-2019/CENG102_PROJE_2019_OTEL/src/CENG102_PROJE_2019_OTEL/RezervasyonEkle.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 CENG102_PROJE_2019_OTEL;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Vector;
import java.util.lo... |
ScalablyTyped/SlinkyTyped | m/maxim_mazurok__gapi_dot_client_dot_containeranalysis/src/main/scala/typingsSlinky/maximMazurokGapiClientContaineranalysis/gapi/client/containeranalysis/Installation.scala | package typingsSlinky.maximMazurokGapiClientContaineranalysis.gapi.client.containeranalysis
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
@js.native
trait Installation extend... |
osorubeki-fujita/tokyo_metro | db/seeds/tsukaisute.rb | require_relative 'add_change_to_db.rb'
load 'C:/RubyPj/rails_tokyo_metro_dev/lib/tokyo_metro.rb'
# db_add_train_times_of_zhmnty
# seed_train_operation_info_status
# db_add_train_times_of_namboku_line_meguro_and_later
# db_update_to_station_info_id_of_namboku_line_train_bound_for_musashi_kosugi
reset_train_typ... |
5g-core/openapi | models/model_eps_iwk_pgw.go | <reponame>5g-core/openapi<filename>models/model_eps_iwk_pgw.go<gh_stars>0
/*
* Nudr_DataRepository API OpenAPI file
*
* Unified Data Repository Service. © 2021, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* API version: 2.1.5
* Generated by: OpenAPI Generator (h... |
wh6648/OperationManager | static/javascripts/performance/salaryInfo.js | <filename>static/javascripts/performance/salaryInfo.js
$(function() {
"use strict";
events();
render();
function events() {
$("#search-btn").on("click", function(err) {
var dept = $("#select-dept").find("option:selected").text();
var office = $("#select-office").find("o... |
ItamarLourenco/px-android | px-checkout/src/main/java/com/mercadopago/android/px/internal/viewmodel/SummaryItemType.java | package com.mercadopago.android.px.internal.viewmodel;
public class SummaryItemType {
public static final String PRODUCT = "product";
public static final String CHARGE = "charge";
public static final String TAXES = "taxes";
public static final String SHIPPING = "shipping";
public static final Stri... |
tiborvass/go | misc/sortac/sortac.go | <filename>misc/sortac/sortac.go
// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Sortac sorts the AUTHORS and CONTRIBUTORS files.
//
// Usage:
//
// sortac [file...]
//
// Sortac sorts the named files in... |
ZPhilo/pybricks-micropython | pybricks/parameters/pb_type_direction.c | <gh_stars>100-1000
// SPDX-License-Identifier: MIT
// Copyright (c) 2018-2020 The Pybricks Authors
#include "py/mpconfig.h"
#if PYBRICKS_PY_PARAMETERS
#include <pbio/dcmotor.h>
#include <pybricks/parameters.h>
#include <pybricks/util_mp/pb_type_enum.h>
const pb_obj_enum_member_t pb_Direction_CLOCKWISE_obj = {
... |
SherryLGT/CZ3003-BTOFindr | app/src/main/java/com/btofindr/model/NavDrawerItem.java | <reponame>SherryLGT/CZ3003-BTOFindr
package com.btofindr.model;
/**
* This describes a navigation drawer item.
*
* @author <NAME> <NAME>
* @version 1.0
* @since 31/08/2016
*/
public class NavDrawerItem {
private int icon;
private String title;
public NavDrawerItem(){};
public NavDrawerItem(in... |
ntduy96/book-rental-system | src/main/java/com/chothuesach/repository/NhanVienRepository.java | <filename>src/main/java/com/chothuesach/repository/NhanVienRepository.java<gh_stars>0
package com.chothuesach.repository;
import com.chothuesach.model.ChucVu;
import com.chothuesach.model.NhanVien;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
imp... |
JiangYongKang/NewStock-iOS | NewStock/View/GoodStockView/ZNXGView.h | <filename>NewStock/View/GoodStockView/ZNXGView.h
//
// ZNXGView.h
// NewStock
//
// Created by 王迪 on 2017/3/9.
// Copyright © 2017年 Willey. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "TaoIndexModel.h"
@interface ZNXGView : UIView
@property (nonatomic, strong) TaoIndexModelList *model;
@property (no... |
lborgav/Historical-Source-Codes | Microsoft Word for Windows Version 1.1a/Word 1.1a CHM Distribution/Opus/fedt.h |
#ifndef RC_INVOKED
/*----------------------------------------------------------------------------
| FEDT structure
|
| Data structure defining a FEDT formula edit control.
|
| Fields:
| hwnd window handle of the fedt control.
| hdc device context for the window.
| ... |
UCL/EIDP-4 | eidpauth/src/test/java/uk/ac/ucl/eidp/auth/model/UsereNgTest.java | <filename>eidpauth/src/test/java/uk/ac/ucl/eidp/auth/model/UsereNgTest.java
package uk.ac.ucl.eidp.auth.model;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertNull;
import org.testng.annotations.AfterCl... |
zyz610650/beanbox | beanbox-core/src/main/java/com/beanbox/event/ContextRefreshedEvent.java | <filename>beanbox-core/src/main/java/com/beanbox/event/ContextRefreshedEvent.java<gh_stars>1-10
package com.beanbox.event;
/**
* @author: @zyz
*/
public class ContextRefreshedEvent extends ApplicationContextEvent{
public ContextRefreshedEvent (Object source) {
super (source);
}
}
|
bcl-lab-pub/PCM-App | SMART Genome Precision Cancer Medicine/FHIRGroup.h | <filename>SMART Genome Precision Cancer Medicine/FHIRGroup.h<gh_stars>1-10
/*
Copyright (c) 2011-2013, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions... |
firgaty/Uni | POO/TP/TP3/Joueur.java | import java.util.Scanner;
public class Joueur {
private String nom;
private Scanner scan;
public Joueur(){
//Par défaut, le nom du joueur est "Anonyme". Le constructeur initialise un scan qui pourra vous être utile.
this.scan = new Scanner(System.in);
this.nom = "Anonyme";
... |
rpatil524/dmptool | db/migrate/20140214155629_dmptemplates_guidance_groups.rb | <filename>db/migrate/20140214155629_dmptemplates_guidance_groups.rb
class DmptemplatesGuidanceGroups < ActiveRecord::Migration[4.2]
def change
create_table :dmptemplates_guidance_groups, :id => false do |t|
t.integer :dmptemplate_id
t.integer :guidance_group_id
end
end
end |
zyndor/xrhodes | xr3core/h/xr/strings/StringProxy.hpp | <filename>xr3core/h/xr/strings/StringProxy.hpp
#ifndef XR_STRINGPROXY_HPP
#define XR_STRINGPROXY_HPP
//==============================================================================
//
// XRhodes
//
// copyright (c) <NAME>. All rights reserved.
//
// License: https://github.com/zyndor/xrhodes#License-bsd-2-clause
//
//... |
patil215/v8 | fuzzer_output/interesting/sample_1554114886349.js | function main() {
const v4 = [13.37,13.37,13.37,13.37];
const v6 = [1337,1337];
const v8 = (2147483647)[1337];
function v9(v10,v11) {
'use strict'
let v12 = v9;
return v12;
}
const v14 = [13.37,13.37,13.37,13.37];
function v16(v17,v18,v19,v20) {
for (let v24 = 0; v24 < 100; v24++) {
const v28 = ... |
enioka/enioka_scan | enioka_scan/src/main/java/com/enioka/scanner/bt/manager/classicserial/ClassicBtSppScanner.java | <reponame>enioka/enioka_scan<filename>enioka_scan/src/main/java/com/enioka/scanner/bt/manager/classicserial/ClassicBtSppScanner.java
package com.enioka.scanner.bt.manager.classicserial;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothSocket;
import... |
z8g/app | wmdblog1.0/src/main/java/net/zhaoxuyang/blog/function/PrintTime.java | /*
__ ____ __ ____ ____ _ ___ ____
\ \ / / \/ | _ \ | __ )| | / _ \ / ___|
\ \ /\ / /| |\/| | | | | | _ \| | | | | | | _
\ V V / | | | | |_| | | |_) | |__| |_| | |_| |
\_/\_/ |_| |_|____/ |____/|_____\___/ \____|
*/
package net.zhaoxuyang.blog.function;
import java.lang.... |
joshsalverda/polyfill-library | polyfills/String/prototype/codePointAt/tests.js | <reponame>joshsalverda/polyfill-library
/* globals proclaim */
it('is a function', function () {
proclaim.isFunction(String.prototype.codePointAt);
});
it('has correct arity', function () {
proclaim.arity(String.prototype.codePointAt, 1);
});
it('has correct name', function () {
proclaim.hasName(String.prototype... |
gordonli08/Exercism-python | grains/grains.py | def square(number):
if number < 1 or number > 64:
raise ValueError('Invalid chessboard square number')
return 2 ** (number - 1)
def total():
ret = 0
for i in range(1,65):
ret += square(i)
return ret
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.