repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
YuqiaoZhang/USD | pxr/usd/lib/usd/collectionMembershipQuery.h | <gh_stars>1-10
//
// Copyright 2019 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with... |
edude545/system0 | src/main/java/net/ethobat/system0/registry/S0Progressions.java | <reponame>edude545/system0
package net.ethobat.system0.registry;
public final class S0Progressions {
public static void init() {
}
}
|
sparkling-graph/sparkling-graph | api/src/main/scala/ml/sparkling/graph/api/operators/algorithms/link/MeasureBasedLnkPredictor.scala | package ml.sparkling.graph.api.operators.algorithms.link
import ml.sparkling.graph.api.operators.measures.EdgeMeasure
import org.apache.spark.graphx.{VertexId, Graph}
import org.apache.spark.rdd.RDD
import scala.reflect.ClassTag
/**
* Trait for basic link prediction. Implementation should use similarity measure of ... |
DiamondLightSource/gda-ispyb-api | src/test/java/uk/ac/diamond/ispyb/test/ContainerStatusTest.java | /*-
*******************************************************************************
* Copyright (c) 2011, 2016 Diamond Light Source Ltd.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, ... |
adambirse/innovation-funding-service | ifs-sil-resources/src/main/java/org/innovateuk/ifs/sil/crm/resource/SilAddress.java | package org.innovateuk.ifs.sil.crm.resource;
public class SilAddress {
private String buildingName;
private String street;
private String locality;
private String town;
private String postcode;
private String country;
public String getBuildingName() {
return buildingName;
}
... |
vaporgraph/ens-app | src/components/Forms/Button.js | <filename>src/components/Forms/Button.js
import React from 'react'
import styled from 'react-emotion'
import { Link } from 'react-router-dom'
function getButtonStyles({ type, color }) {
switch (type) {
case 'primary':
return `
&:hover {
cursor: pointer;
border: 2px solid ${color... |
spxuw/RFIM | Source/boost_1_33_1/libs/wave/test/testwave/testfiles/t_9_010.cpp | /*=============================================================================
Boost.Wave: A Standard compliant C++ preprocessor library
http://www.boost.org/
Copyright (c) 2001-2005 <NAME>. Distributed under the Boost
Software License, Version 1.0. (See accompanying file
LICENSE_1_0.txt or copy a... |
TrueMarketing/trimtileandstone | node_modules/styled-icons/remix-fill/Switch/Switch.esm.js | import { __assign } from "tslib";
import * as React from 'react';
import { StyledIconBase } from '../../StyledIconBase';
export var Switch = React.forwardRef(function (props, ref) {
var attrs = {
"fill": "currentColor",
"xmlns": "http://www.w3.org/2000/svg",
};
return (React.createElement(St... |
landonvg/gedcomx-java | extensions/familysearch/familysearch-api-client/src/main/java/org/familysearch/api/client/FamilySearchReferenceEnvironment.java | /**
* Copyright Intellectual Reserve, 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 a... |
darcyturk/fotographiq | js/auth/ForgotPassword.js | import React, { Component } from 'react';
import {
View,
Text,
StyleSheet,
StatusBar,
TextInput,
Platform
} from 'react-native';
import { connect } from 'react-redux';
import t from 'tcomb-form-native';
const Form = t.form.Form;
import Button from '../common/Button';
import Toolbar from '../common/Toolbar... |
oirad21/react_oirad | node_modules/@fortawesome/pro-regular-svg-icons/faChartPie.js | 'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var prefix = 'far';
var iconName = 'chart-pie';
var width = 544;
var height = 512;
var ligatures = [];
var unicode = 'f200';
var svgPathData = 'M511.96 223.2C503.72 103.74 408.26 8.28 288.8.04c-.35-.03-.7-.04-1.04-.04C279.11 0 272 7.44 272 16.... |
robertbakker/google-ads-pb | services/smart_campaign_setting_service.pb.go | <reponame>robertbakker/google-ads-pb
// Copyright 2022 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless require... |
ZHAOLIANKE/lindb | replica/wal.go | <gh_stars>0
// Licensed to LinDB under one or more contributor
// license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright
// ownership. LinDB licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use this file exce... |
hoangvlbk61/HUST-Final-project-2019B-TRMS | TRMS-Frontend/pages/charts/misc.js | <filename>TRMS-Frontend/pages/charts/misc.js
import Head from 'next/head';
import Misc from '../../demos/vis/showcase-sections/misc-showcase';
const MiscPage = () => (
<>
<Head>
<link rel="stylesheet" href="/static/react-vis.css" />
</Head>
<Misc />
</>
);
export default MiscPage;
|
tihefrequi/theia-xtext | template/templates/java/utils/sap/cloud/SCIMConstants.java | package {service.namespace}.utils.sap.cloud;
/**
* Based on SAP SCP documentation (https://help.sap.com/viewer/6d6d63354d1242d185ab4830fc04feb1/Cloud/en-US/7ae17a6da5314246a04d113f902d0fdf.html)
* as well as SCIM RFC specification (https://tools.ietf.org/html/rfc7643)
* @author storm
*
*/
public class SC... |
pereiray-ryan/commissulator | app/controllers/apartments_controller.rb | <reponame>pereiray-ryan/commissulator<gh_stars>1-10
class ApartmentsController < ApplicationController
before_action :set_apartment, only: [:show, :edit, :update, :destroy]
def index
@apartments = if params[:filtered_attribute]
Apartment.where params[:filtered_attribute] => params[:filter_value]
else... |
amitdu6ey/Online-Judge-Submissions | codeforces/382/C.cpp | <reponame>amitdu6ey/Online-Judge-Submissions
// [amitdu6ey]
#include <bits/stdc++.h>
#define hell 1000000009
#define bug(x) cout<<"$ "<<x<<" $"<<endl
#define ll long long
#define pb push_back
#define mp make_pair
#define tr(z) for(auto it=z.begin(); it!=z.end(); it++)
#define loop(i,a,b) for(long long i=a; i<b; i++)
#... |
zcgitzc/easyframe | easyframe-web/src/main/java/com/zark/easyframe/common/controller/QuartzController.java | package com.zark.easyframe.common.controller;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import com.zark.easyframe.biz.common.bo.JobBo;
import com.zark.easyframe.common.exception.ExceptionC... |
f4deb/cen-electronic | common/sensor/current/current.h | <reponame>f4deb/cen-electronic
#ifndef CURRENT_H
#define CURRENT_H
// forward declaration
struct Current;
typedef struct Current Current;
/**
* Get the value from the current sensor
* @return current the value from the current sensor
*/
typedef int CurrentReadSensorValueFunction(Current* current);
/... |
guoruijun07/produsupsys | produsupsys-common/src/main/java/com/ruoyi/common/bean/po/ClientWebPscSorting.java | package com.ruoyi.common.bean.po;
public class ClientWebPscSorting {
/**
* id
*/
private Integer id;
/**
*
* @mbggenerated
*/
public ClientWebPscSorting(Integer id) {
this.id = id;
}
/**
*
* @mbggenerated
*/
public ClientWebPscSorting() {
... |
neildhir/DCBO | src/examples/example_setups.py | from networkx.drawing import nx_agraph
import pygraphviz
from src.utils.sem_utils.toy_sems import StationaryDependentSEM, StationaryIndependentSEM, NonStationaryDependentSEM
from src.utils.dag_utils.graph_functions import make_graphical_model
from src.experimental.experiments import optimal_sequence_of_interventions
fr... |
imtypist/FISCO-BCOS | libsecurity/EncryptedLevelDB.h | /*
* @CopyRight:
* FISCO-BCOS is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* FISCO-BCOS is distributed in the hope that it ... |
TrueMarketing/trimtileandstone | node_modules/styled-icons/remix-line/Database2/Database2.js | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = tslib_1.__importStar(require("react"));
var StyledIconBase_1 = require("../../StyledIconBase");
exports.Database2 = React.forwardRef(function (props, ref) {
var attrs = {
"fill": "current... |
nwashangai/open-school-system | application/models/staff_schedules.js | <gh_stars>0
'use strict';
module.exports = (sequelize, DataTypes) => {
const staff_schedules = sequelize.define('staff_schedules', {
period_id: DataTypes.UUID,
teacher_id: DataTypes.STRING(20),
day: DataTypes.ENUM('monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday'),
classroom_id: DataT... |
sarunas-davalga/begiks | buster.js | <gh_stars>1-10
var config = module.exports;
config["server.test"] = {
rootPath: ".",
environment: "node",
tests: ["server.test/*.test.js"]
};
|
yoki123/oceanengine | marketing-api/model/file/image.go | <reponame>yoki123/oceanengine<filename>marketing-api/model/file/image.go
package file
// Image 图片
type Image struct {
// ID 图片ID
ID string `json:"id,omitempty"`
// MaterialID 素材id,即多合一报表中的素材id,一个素材唯一对应一个素材id
MaterialID uint64 `json:"material_id,omitempty"`
// Size 图片大小
Size uint64 `json:"size,omitempty"`
// Wid... |
IvayloIV/Spring-in-Action-5 | 6.Creating_REST_services/taco-cloud-hateoas/src/main/java/sia/tacocloud/assemblers/IngredientResourceAssembler.java | package sia.tacocloud.assemblers;
import org.springframework.hateoas.server.mvc.RepresentationModelAssemblerSupport;
import org.springframework.stereotype.Component;
import sia.tacocloud.domain.entity.Ingredient;
import sia.tacocloud.domain.model.resource.IngredientResourceModel;
import sia.tacocloud.web.controllers.... |
Breno-Lima/Linguagem-C | terte.c | #include <stdio.h>
#define Alunos 1
double Media(double notas[Alunos]){
double soma=0,media=0;
soma=soma+notas[Alunos];
return media=soma/notas[Alunos];
}
int main(void){
double notas[Alunos],media=0,variancia,soma=0;
int i;
for(i=0;i<=Alunos;i++){
printf("Digite a nota do aluno:... |
Guyutongxue/Introduction_to_Computation | pg_answer/e4cb1cc73ee0415fb9f4f6aa6d0e0664.cpp | #include <string>
#include <iostream>
int main() {
int a[24];
bool visited[24]{};
int n;
std::cin >> n;
for (int i{1}; i <= n; i++) {
std::cin >> a[i];
}
int i{1}, step{1};
visited[0] = true;
while (i < n + 1) {
if (visited[i]) {
i++;
step += ... |
timb-machine-mirrors/tlsmate | tlsmate/plugin.py | # -*- coding: utf-8 -*-
"""Module providing stuff for plugin handling
"""
# import basic stuff
import logging
import abc
import sys
import argparse
from typing import List, Optional, Type, Any
# import own stuff
import tlsmate.config as conf
import tlsmate.structs as structs
# import other stuff
class Args(object):... |
Mathiasn21/Group_project_software_engineering | src/main/java/no/hiof/set/gruppe/core/interfaces/IPaymentIntegration.java | package no.hiof.set.gruppe.core.interfaces;
import com.google.api.client.http.HttpResponse;
import java.io.IOException;
public interface IPaymentIntegration {
HttpResponse response() throws IOException;
}
|
zvam1/gitlab-on-heroku | spec/services/personal_access_tokens/revoke_service_spec.rb | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe PersonalAccessTokens::RevokeService do
shared_examples_for 'a successfully revoked token' do
it { expect(subject.success?).to be true }
it { expect(service.token.revoked?).to be true }
end
shared_examples_for 'an unsuccessfully revoked ... |
node-dot-cpp/safe-memory | checker/src/safememory-checker/ReferenceOverCoAwaitRule.cpp | <reponame>node-dot-cpp/safe-memory
/* -------------------------------------------------------------------------------
* Copyright (c) 2019, OLogN Technologies AG
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condit... |
HaoXuan1988/ZhiYu | ZhiYu/Request/HXNetwork.h | //
// HXNetwork.h
// HXNetworkDemo
//
// Created by 吕浩轩 on 16/3/11.
// Copyright © 2016年 吕浩轩. All rights reserved.
//
#ifndef HXNetwork_h
#define HXNetwork_h
#import "HXResponseManager.h"
#endif /* HXNetwork_h */
|
andreatulimiero/i3pp | include/data.hpp | <reponame>andreatulimiero/i3pp<filename>include/data.hpp
/*
* vim:ts=4:sw=4:expandtab
*
* i3 - an improved dynamic tiling window manager
* © 2009 <NAME> and contributors (see also: LICENSE)
*
* include/data.h: This file defines all data structures used by i3
*
*/
#pragma once
#define SN_API_NOT_YET_FROZEN 1
#i... |
demonsaw/Code | ds4/code/4_client_desktop/widget/search_widget.cpp | <filename>ds4/code/4_client_desktop/widget/search_widget.cpp<gh_stars>100-1000
//
// The MIT License(MIT)
//
// Copyright(c) 2014 Demonsaw LLC
//
// 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 Sof... |
FIGHB/MicroServer | guns-order/src/main/java/com/stylefeng/guns/order/common/persistence/dao/LRMtimeHallDictTMapper.java | <reponame>FIGHB/MicroServer<gh_stars>0
package com.stylefeng.guns.order.common.persistence.dao;
import com.stylefeng.guns.order.common.persistence.model.LRMtimeHallDictT;
import com.baomidou.mybatisplus.mapper.BaseMapper;
/**
* <p>
* 地域信息表 Mapper 接口
* </p>
*
* @author LiRui
* @since 2019-10-16
*/
public interf... |
reels-research/iOS-Private-Frameworks | ProVideo.framework/PVComputeGrabCut.h | <reponame>reels-research/iOS-Private-Frameworks
/* Generated by RuntimeBrowser
Image: /System/Library/PrivateFrameworks/ProVideo.framework/ProVideo
*/
@interface PVComputeGrabCut : NSObject {
struct HFGrabCutInterface { int (**x1)(); struct HFGrabCut {} *x2; } * _module;
}
- (void)dealloc;
- (id)init;
- (bool... |
jamoum/JavaScript_Challenges_Solutions | very-easy/check-if-the-same-case/code.spec.js | <reponame>jamoum/JavaScript_Challenges_Solutions<gh_stars>10-100
const sameCase = require('./code');
describe('Tests', () => {
test('the tests', () => {
expect(sameCase('HELLO')).toEqual(true);
expect(sameCase('HEllo')).toEqual(false);
expect(sameCase('mArmALadE')).toEqual(false);
e... |
isabella232/aistreams | third_party/gst-plugins-bad/ext/teletextdec/gstteletextdec.c | <gh_stars>1-10
/*
* GStreamer
* Copyright (C) 2009 <NAME> <<EMAIL>>
* Copyright (C) 2010 <NAME> <<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of... |
packadic/theme | src/scripts/theme/editor.js | <reponame>packadic/theme
require([
'jquery', '../fn/defined', '../fn/default', '../fn/cre'
], function($, defined, def, cre){
"use strict";
});
|
turing4ever/restful-services-in-pyramid | src/first_service/svc1_clients/python/svc_client.py | <filename>src/first_service/svc1_clients/python/svc_client.py
import requests
from pprint import pprint
def main():
cars = list_cars()
show_cars(cars)
car_id = input("What car do you want to see? (car ID): ")
show_car_details(car_id)
def show_cars(cars):
print("Cars for sale: ")
for c in ca... |
SirWumpus/libsnert | include/io/Log.h | /*
* Log.h
*
* Copyright 2002, 2006 by <NAME>. All rights reserved.
*/
#ifndef __com_snert_lib_io_Log_h__
#define __com_snert_lib_io_Log_h__ 1
#ifdef __cplusplus
extern "C" {
#endif
#include <stdio.h>
#include <stdarg.h>
extern FILE *logFile;
/*
* Traditional syslog.h log levels
*/
#ifndef LOG_EMERG
# defin... |
bygui86/spring-reactive | spring-reactive-web-socket-client/src/main/java/com/rabbit/samples/springreactivewebsocketclient/configs/WebSocketConfig.java | <filename>spring-reactive-web-socket-client/src/main/java/com/rabbit/samples/springreactivewebsocketclient/configs/WebSocketConfig.java
package com.rabbit.samples.springreactivewebsocketclient.configs;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
impo... |
ggardet/mr-provisioner | migrations/versions/37af89374583_remove_mac_column_from_machine.py | """remove MAC column from machine
Revision ID: <KEY>
Revises: 3e5a16bb9124
Create Date: 2017-06-18 07:25:18.202302
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '<KEY>'
down_revision = '3e5a16bb9124'
branch_labels = None
depends_on = None
def upgrade():
... |
Keneral/ae1 | icu/android_icu4j/src/main/tests/android/icu/dev/test/stringprep/TestAll.java | <reponame>Keneral/ae1<filename>icu/android_icu4j/src/main/tests/android/icu/dev/test/stringprep/TestAll.java
/* GENERATED SOURCE. DO NOT MODIFY. */
/*
*******************************************************************************
* Copyright (C) 2003-2010, International Business Machines Corporation and *
* othe... |
bihe/monorepo | internal/mydms/transports_test.go | package mydms_test
import (
"encoding/base64"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"net/http/httptest"
"strings"
"testing"
"time"
"github.com/stretchr/testify/assert"
"golang.binggl.net/monorepo/internal/mydms"
"golang.binggl.net/monorepo/internal/mydms/app/appinfo"
"golang.binggl.net/monorepo/in... |
guowilling/iOSDevCollection | ObjC/Animation/AirbnbHomeAnimationDemo/AirbnbHomeAnimationDemo/HomeDetailViewController.h | <reponame>guowilling/iOSDevCollection<gh_stars>1-10
//
// DetailViewController.h
// AirbnbHomeAnimationDemo
//
// Created by 郭伟林 on 2017/7/5.
// Copyright © 2017年 SR. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef void(^NoParameterBlock)(void);
typedef void(^IDParameterBlock)(id);
@interface HomeDetailV... |
androidworx/andworx | andmore-swt/org.eclipse.andmore.ddmuilib/src/main/java/com/android/ddmuilib/log/event/SyncCommon.java | /*
* Copyright (C) 2009 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 requir... |
boveloco/Puc | IA/Bob/src/Omega/Player.java | package Omega;
import java.util.Random;
public abstract class Player {
protected Random r;
private String name;
int THIRSTLIMIT = 450;
int thirst;
protected StateManager manager;
public Player(String name) {
r = new Random();
manager = new StateManager(this);
this.name = name;
Manager.getInstance().r... |
jonboiser/kolibri | kolibri/content/__init__.py | <reponame>jonboiser/kolibri<filename>kolibri/content/__init__.py
default_app_config = 'kolibri.content.apps.KolibriContentConfig'
|
samuel-reinhardt/nano-community | scripts/import-discord.js | const dayjs = require('dayjs')
const debug = require('debug')
const db = require('../db')
const config = require('../config')
const { request, wait } = require('../common')
const logger = debug('script')
debug.enable('script')
const headers = {
authorization: config.discordAuthorization
}
const excludeChannels = ... |
ainilili/outbatis | src/main/java/org/nico/ourbatis/exception/EmptyMapException.java | package org.nico.ourbatis.exception;
public class EmptyMapException extends RuntimeException{
private static final long serialVersionUID = -5819302738797447168L;
public EmptyMapException() {
super();
}
public EmptyMapException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTr... |
danielsunzhongyuan/go_learning | parallel_programming_in_practice/src/basic/map1/cmap_test.go | package map1
import (
"fmt"
"math/rand"
"reflect"
"runtime/debug"
"testing"
)
func testConcurrentMap(
t *testing.T,
newConcurrentMap func() ConcurrentMap,
genKey func() interface{},
genElem func() interface{},
keyKind reflect.Kind,
elemKind reflect.Kind) {
mapType := fmt.Sprintf("ConcurrentMap<keyType=%s,... |
bitkylin/featureLab | casper-lab/src/main/java/cc/bitky/featurelab/casperlab/service/guavalab/MyGuava.java | package cc.bitky.featurelab.casperlab.service.guavalab;
/**
* @author liMingLiang
* @date 2019-05-11
*/
public class MyGuava {
public static void main(String[] args) {
int[] a1 = {1, 6, 3, 8, 2, 7};
int[] a = {54, 35, 48, 36, 27, 12, 44, 44, 8, 14, 26, 17, 28};
new MyGuava().quickSort(a... |
bugvm/robovm | Core/rt/vm/core/src/test/test_proxy0.c | /*
* Copyright (C) 2012 RoboVM AB
*
* 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 ... |
plewis/phycas | src/cpp/mcmc_param.cpp | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\
| Phycas: Python software for phylogenetic analysis |
| Copyright (C) 2006 <NAME>, <NAME> and <NAME> |
| |
| This program is free so... |
akshat0109/kisan_backend | flasky2/venv/Lib/site-packages/weka/core/stopwords.py | <gh_stars>0
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be ... |
tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | ace/tao/orbsvcs/orbsvcs/esf/ESF_Shutdown_Proxy.h | <gh_stars>10-100
/* -*- C++ -*- */
/**
* @file ESF_Shutdown_Proxy.h
*
* ESF_Shutdown_Proxy.h,v 1.3 2000/10/31 03:11:12 coryan Exp
*
* @author <NAME> (<EMAIL>)
*
* http://doc.ece.uci.edu/~coryan/EC/index.html
*/
#ifndef TAO_ESF_SHUTDOWN_PROXY_H
#define TAO_ESF_SHUTDOWN_PROXY_H
#include "E... |
magnublo/msc-darkweb-scraping | useful_scripts/replace_references.py | import os
import re
dir_path = "/home/magnus/Documents/dream_market/parsed_html"
files = os.listdir(dir_path)
file_refs = set()
valid_files = [f for f in files if re.match(r"[0-9]{13}_[0-9]{4}_[a-z0-9]{40}\.html", f)]
for i, file in enumerate(valid_files):
k = 0
match = None
file_path = f"{dir_path}/{file}... |
mehrdadzakershahrak/Online-Explanation-Generation | rovers/fastdownward/experiments/issue680/v2.py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
import os
import suites
from lab.reports import Attribute, gm
from common_setup import IssueConfig, IssueExperiment
from relativescatter import RelativeScatterPlotReport
def main(revisions=None):
benchmarks_dir=os.path.expanduser('~/projects/downward/benchmarks')
... |
iamsg08/Joing-Parsing-and-Generation-for-Abstractive-Summarization | layers/data_process/Padding.py | <reponame>iamsg08/Joing-Parsing-and-Generation-for-Abstractive-Summarization
#==============================#
# System Import #
#==============================#
#==============================#
# Platform Import #
#==============================#
import torch
import torch.nn as nn
import t... |
LordDeatHunter/ExNihiloFabrico | src/main/java/wraith/fabricaeexnihilo/compatibility/kubejs/recipe/barrel/FluidCombinationRecipeJS.java | <filename>src/main/java/wraith/fabricaeexnihilo/compatibility/kubejs/recipe/barrel/FluidCombinationRecipeJS.java<gh_stars>1-10
package wraith.fabricaeexnihilo.compatibility.kubejs.recipe.barrel;
import com.google.gson.JsonPrimitive;
import dev.latvian.mods.kubejs.recipe.RecipeJS;
import dev.latvian.mods.kubejs.util.Li... |
sleyzerzon/soar | Deprecated/SoarPre8.6/soar/kernel/agent.c | <filename>Deprecated/SoarPre8.6/soar/kernel/agent.c
/*************************************************************************
*
* file: agent.c
*
* =======================================================================
* Initialization for the agent structure. Also the cleanup routine
* when an agent is de... |
chebykinn/university | mpi/src/main/java/com/ghostflow/database/Employees.java | <gh_stars>1-10
package com.ghostflow.database;
import com.ghostflow.database.postgres.entities.UserEntity;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import java.util.List;
@NoArgsConstructor(force = true)
@AllArgsConstructor
@Getter
public class Employees {
private ... |
artcom/eppsa-ips-evaluation | specs/models/experiment.spec.js | const { describe, it, before, after } = require("mocha")
const { expect, assert } = require("chai")
const { dbSync, dbDrop } = require("../helpers/db")
const Experiment = require("../../src/models/experiment")
describe("Model Experiment", () => {
before(async () => {
await dbSync()
})
after(async () => {
... |
NIL-zhuang/IRBL | swt/src/graphics/Path.java | <reponame>NIL-zhuang/IRBL
/*******************************************************************************
* Copyright (c) 2000, 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompa... |
ecoo-app/ecoo-backend | apps/verification/migrations/0025_auto_20200915_1450.py | # Generated by Django 3.1 on 2020-09-15 14:50
from django.db import migrations
from apps.verification.models import UserVerification
def update_user_verifications(apps, schema_editor):
UserVerification.objects.filter(address_street__isnull=True).update(
address_street="no_street"
)
UserVerificat... |
tossp/teaweb-core | teaweb/actions/default/agents/agentutils/menu.go | package agentutils
import (
"fmt"
"github.com/TeaWeb/code/teaconfigs/agents"
"github.com/TeaWeb/code/teaweb/actions/default/notices/noticeutils"
"github.com/TeaWeb/code/teaweb/utils"
"github.com/iwind/TeaGo/actions"
"github.com/iwind/TeaGo/lists"
"net/http"
)
func AddTabbar(actionWrapper actions.ActionWrapper)... |
paranoid-software/elemental-cms | elementalcms/management/staticcommands/__init__.py | <reponame>paranoid-software/elemental-cms
from .list import List
from .collect import Collect
from .delete import Delete
|
sebakir/HrmsProject | demo/src/main/java/com/example/core/utilities/imageUpload/ImageUploadManager.java | package com.example.core.utilities.imageUpload;
import java.io.IOException;
import java.util.Map;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;
import com.cloudinary.Cloudinary;
import com.cloudinary.utils.ObjectUtils;
import com.example.core.utiliti... |
liusoon/TestAdmin | model/vo/casestepinfovo.go | package vo
import "salotto/model/InterfaceTestPartEntity"
type CaseStepInfoVO struct {
CaseId string `json:"caseId"`
ItfId string `json:"interfaceId"`
StepId string `json:"stepId"`
StepStatus s... |
LegatAbyssWalker/Minecraft-Clone | Minecraft Clone/RayCasting.h | #ifndef RAYCASTING_H
#define RAYCASTING_H
#include "State.h"
#include "Camera.h"
#include "GLWindow.h"
#include <iostream>
#include <algorithm>
class RayCasting {
public:
RayCasting(GLWindow& glWindow, Camera& cam, glm::mat4 projection);
void update();
glm::vec3 calculateMouseRay();
glm::... |
johnoliver/ApplicationInsights-Java | test/smoke/testApps/SystemExit/src/smokeTest/java/com/microsoft/applicationinsights/smoketest/SpringBootAutoTest.java | package com.microsoft.applicationinsights.smoketest;
import java.util.List;
import com.microsoft.applicationinsights.internal.schemav2.MessageData;
import org.junit.Test;
import static org.junit.Assert.*;
@UseAgent
public class SpringBootAutoTest extends AiSmokeTest {
@Test
@TargetUri("/delayedSystemExit")... |
jacobkim9881/shoppingweb | src/components/router/Nav.js | import React, { Component } from 'react';
import {
Switch,
Route
} from 'react-router-dom'
import styled from 'styled-components'
import Home from '../../pages/Home'
import Test from '../../pages/Test'
import Item from '../../pages/Item'
import JoinIn from '../../pages/JoinIn'
import Dress from './Dress'
impor... |
DaedalusGame/RequiousFrakto | src/main/java/requious/util/battery/BatteryAccessFE.java | package requious.util.battery;
import net.minecraft.item.ItemStack;
import net.minecraftforge.energy.IEnergyStorage;
public class BatteryAccessFE implements IBatteryAccess {
ItemStack battery;
IEnergyStorage storage;
public BatteryAccessFE(ItemStack battery, IEnergyStorage storage) {
this.battery... |
igncp/diagrams-collection | src/js/diagrams/Layer/helpers/dataFromSpecificToGeneral.js | <filename>src/js/diagrams/Layer/helpers/dataFromSpecificToGeneral.js
import { forEach, isEmpty, merge } from "ramda"
import { diagramName } from "../constants"
import { removeUndefined } from "../../../utils/pure"
const generateRecursiveFnState = () => {
return {
connections: [],
finalItems: [],
idCount... |
brian220/Sketch2PointCloud | configs/config_ui.py | <gh_stars>1-10
# -*- coding: utf-8 -*-
#
# Developed by <NAME> <<EMAIL>>
from easydict import EasyDict as edict
__C = edict()
cfg = __C
#
# GraphX
#
__C.GRAPHX = edict()
__C.GRAPHX.USE_GRAPHX ... |
bgruening/bcbb | nextgen/scripts/barcode_sort_trim.py | <filename>nextgen/scripts/barcode_sort_trim.py
#!/usr/bin/env python
"""Identify fastq reads with barcodes, trimming and sorting for downstream work.
Given a fastq file or pair of fastq files containing barcodes, this identifies
the barcode in each read and writes it into a unique file. Mismatches are
allowed and barc... |
max-vorabhol-zipmex/express-app | packages/ui/src/components/PriceChart/ApexChartContainer.js | import { connect } from 'react-redux';
import get from 'lodash/get';
import ApexChartComponent from './ApexChartComponent';
import { changeTickersInterval } from '../../redux/actions/tickersActions';
import config from '../../config';
import {
selectedInstrumentSelector,
instrumentSelectorInstruments
} from '../../... |
printercu/rails_stuff | lib/rails_stuff/generators/concern/concern_generator.rb | require 'rails/generators'
module RailsStuff
module Generators
class ConcernGenerator < Rails::Generators::NamedBase # :nodoc:
argument :base,
type: :string,
required: false,
banner: 'Base dir with the class',
description: 'Use it when class is not inside app/models or app/c... |
mehrdad-shokri/iot-core-azure-dm-client | src/DMMessage/Models/DeviceHealthAttestation.h | <reponame>mehrdad-shokri/iot-core-azure-dm-client<gh_stars>10-100
/*
Copyright 2017 Microsoft
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 restriction,
including without limitation the r... |
ennioVisco/MoonLight | core/src/main/java/eu/quanticol/moonlight/monitoring/spatialtemporal/SpatialTemporalMonitorSomewhere.java | /*
* MoonLight: a light-weight framework for runtime monitoring
* Copyright (C) 2018-2021
*
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compl... |
CoderSong2015/Apache-Trafodion | core/sql/regress/newregr/parallel/gencolumn.h | <filename>core/sql/regress/newregr/parallel/gencolumn.h
/**********************************************************************
// @@@ START COPYRIGHT @@@
//
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for ad... |
amwaleh/Hire_more | src/components/MenuItems.js | <reponame>amwaleh/Hire_more
import React from 'react'
import { Menu } from 'semantic-ui-react'
export default () => {
return (
<>
<Menu.Item name='Spark' href='/' link />
<Menu.Item name='home' href='/' link />
<Menu.Item name='About' href='/about' link />
<Menu.Item name='Explore Develope... |
QuanDev2/cs-applied-plan-portal | client/src/components/view_plan/CreateComment.js | /** @jsx jsx */
import {useState} from "react";
import {css, jsx} from "@emotion/core";
import {useParams} from "react-router-dom";
import ErrorMessage from "../general/ErrorMessage";
import {login} from "../../utils/authService";
// comment creation text field
function CreateComment(props) {
const [newComment, se... |
NenadPantelic/spring-boot-example-projects | 06-spring-paging-and-sorting/src/main/java/com/example/pagingandsorting/demo/model/Product.java | package com.example.pagingandsorting.demo.model;
import lombok.*;
import org.hibernate.annotations.CreationTimestamp;
import javax.persistence.*;
import java.math.BigDecimal;
import java.time.Instant;
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Entity
public class Product {
@Id
@GeneratedValue(st... |
alex2ching/QQConnector | WPFTencentQQ/CCodecWarpper/ResponeUploadAddressBookV2.cpp | <reponame>alex2ching/QQConnector
#include "StdAfx.h"
#include "ResponeUploadAddressBookV2.h"
#include"MobileContactsFriendInfo.h"
#include"MobileContactsNotFriendInfo.h"
CResponeUploadAddressBookV2::CResponeUploadAddressBookV2(void)
{
}
CResponeUploadAddressBookV2::~CResponeUploadAddressBookV2(void)
{
... |
npocmaka/Windows-Server-2003 | inetsrv/iis/svcs/smtp/adminsso/binding.h | // binding.h : Declaration of the CServerBinding & CServerBindings classes.
#include "resource.h" // main symbols
//
// Dependencies:
//
class CMultiSz;
//
// A simple binding class:
//
class CBinding
{
public:
CBinding () :
m_dwTcpPort ( 0 ),
m_dwSslPort ( 0 )
{ }
CComBSTR ... |
QutEcoacoustics/baw-client | src/components/services/unitConverters.spec.js | <gh_stars>1-10
describe("The unitConverter service", function () {
var unitConverter;
var inputArgs = {};
beforeEach(module("bawApp.services.unitConverter"));
beforeEach(inject(["bawApp.unitConverter", function (providedUnitConverted) {
unitConverter = providedUnitConverted;
inputArg... |
GSKirox/kaepora | main.go | package main
import (
"encoding/csv"
"errors"
"flag"
"fmt"
"kaepora/internal/back"
"kaepora/internal/bot"
"kaepora/internal/config"
"kaepora/internal/generator/oot"
"kaepora/internal/generator/oot/settings"
"kaepora/internal/global"
"kaepora/internal/web"
"log"
"os"
"os/signal"
"path/filepath"
"sync"
... |
Jan200101/zig-wii | vendor/devkitpro/wut/include/gx2/state.h | <reponame>Jan200101/zig-wii
#pragma once
#include <wut.h>
#include "enum.h"
/**
* \defgroup gx2_state State
* \ingroup gx2
* @{
*/
#ifdef __cplusplus
extern "C" {
#endif
void
GX2Init(uint32_t *attributes);
void
GX2Shutdown();
void
GX2Flush();
void
GX2ResetGPU(uint32_t unknown);
#ifdef __cplusplus
}
#endif
/... |
mmabey/fhir.resources | fhir/resources/STU3/tests/test_processrequest.py | <filename>fhir/resources/STU3/tests/test_processrequest.py
# -*- coding: utf-8 -*-
"""
Profile: http://hl7.org/fhir/StructureDefinition/ProcessRequest
Release: STU3
Version: 3.0.2
Revision: 11917
Last updated: 2019-10-24T11:53:00+11:00
"""
import io
import json
import os
import unittest
import pytest
from .. import ... |
vladandreiy/Parallel-and-Distribuited-Algorithms | Laboratories/lab02/mutex.c | #include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#define NUM_THREADS 2
int a = 0;
pthread_mutex_t mutex;
void *f(void *arg) {
pthread_mutex_lock(&mutex);
a += 2;
pthread_mutex_unlock(&mutex);
pthread_exit(NULL);
}
int main(int argc, char *argv[]) {
int i, r;
void *status;
pthread_t threads[NUM_TH... |
benamrou/controlRoom | controlRoom_server/server/server/controller/userprofile.js | <gh_stars>0
// Http method: GET
// URI : /userprofiles/?username=:USER_NAME
// Read the profile of user given in :USER_NAME
module.exports = function (app, SQL) {
var module = {};
// Http Method: GET
// URI : /user_profiles
// Read all the user profiles
module.get = function (req,res) {
app.get('... |
zealoussnow/chromium | third_party/blink/renderer/platform/heap/heap_test_platform.h | // Copyright 2021 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 THIRD_PARTY_BLINK_RENDERER_PLATFORM_HEAP_HEAP_TEST_PLATFORM_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_HEAP_HEAP_TEST_PLATFORM_H_
#include <m... |
Cyberpunk-Extended-Development-Team/RED4ext.SDK | include/RED4ext/Types/generated/physics/cloth/State.hpp | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/REDhash.hpp>
#include <RED4ext/Types/generated/physics/cloth/PhaseConfig.hpp>
#include <RED4ext/Types/generated/physics/cloth/RuntimeInfo.hpp>
namespace RED4ext
{
namespace physic... |
taiji1985/YangMVC | Boot/src/cn/org/docshare/demo/MyWebSocketListener.java | package cn.org.docshare.demo;
import java.util.Date;
import org.docshare.log.Log;
import org.eclipse.jetty.websocket.api.Session;
import org.eclipse.jetty.websocket.api.WebSocketListener;
import org.eclipse.jetty.websocket.api.annotations.WebSocket;
@WebSocket
public class MyWebSocketListener implements WebSocketLis... |
gruberjl/gitbit | server/www/sitemap/index.js | <reponame>gruberjl/gitbit
const {getSitemap} = require('./middleware')
module.exports = {getSitemap}
|
infobip/oneapi-java | src/main/java/oneapi/model/USSDRequest.java | <gh_stars>1-10
package oneapi.model;
public class USSDRequest {
private String address = null;
private String message = null;
private Boolean stopSession = null;
public USSDRequest() {
}
public USSDRequest(String address, String message) {
this.address = address;
this.message = message;
}
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.