repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
Aryan98/lcprediction | test_luna_props_scan_dsb.py | import sys
import lasagne as nn
import numpy as np
import theano
import os
import pathfinder
import utils
from configuration import config, set_configuration
from utils_plots import plot_slice_3d_3
import theano.tensor as T
import utils_lung
import blobs_detection
import logger
from collections import defaultdict
the... |
greensnow25/javaaz | chapter4/3.LSP/src/main/java/com/greensnow25/foods/Fruit.java | <reponame>greensnow25/javaaz
package com.greensnow25.foods;
/**
* public class Fruit.
*
* @author greensnow25.
* @version 1.
* @since 27.03.2017.
*/
public class Fruit extends Food {
/**
* class constructor.
*
* @param name name.
* @param expaireDate date.
* @param createDate ... |
zoewangg/aws-sdk-java | aws-java-sdk-kinesisvideo/src/main/java/com/amazonaws/services/kinesisvideo/internal/netty/handler/PutMediaHandlerInitializer.java | <reponame>zoewangg/aws-sdk-java
/*
* Copyright 2012-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/a... |
lihongli528628/yishu | medtree/medtree/Groups/Common/CycleScrollView.h | //
// CycleScrollView.h
// PagedScrollView
//
// Created by 陈政 on 14-1-23.
// Copyright (c) 2014年 Apple Inc. All rights reserved.
// 循环滚动
#import <UIKit/UIKit.h>
@protocol CycleScrollViewDelegate <NSObject>
- (void)setSelectIndex:(NSInteger)idx;
- (void)setTapIndex:(NSInteger)idx;
@end
@interface CycleScrollV... |
jerrykrinock/IupCocoaTouch | src/gtk/iupgtk_label.c | <reponame>jerrykrinock/IupCocoaTouch
/** \file
* \brief Label Control
*
* See Copyright Notice in "iup.h"
*/
#include <gtk/gtk.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <memory.h>
#include <stdarg.h>
#include "iup.h"
#include "iupcbs.h"
#include "iup_object.h"
#include "iup_layout.h... |
joklawitter/BookDrawingAlgorithms | src/algorithms/heuristics/vertexorder/SmallestDegreeDFSAlgorithm.java | <filename>src/algorithms/heuristics/vertexorder/SmallestDegreeDFSAlgorithm.java
package algorithms.heuristics.vertexorder;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Stack;
import model.Embedding;
import model.Graph;
import model.Vertex;
import algorithms.base.PartialVertexOrderAlgorit... |
loggar/js | js-es/url/url.4.properties.js | // construct a url
const url = new URL("http://sample.domain.com");
url.pathname = "/blog/javascript-url-object";
url.hash = "#url-properties";
// update `protocol` property
url.protocol = "https:";
console.log(url.toString()); // https://sample.domain.com/blog/javascript-url-object#url-propertie
|
myardhs/react-ionicons | src/Briefcase.js | import React from 'react'
import PropTypes from 'prop-types'
import SvgContainer from './SvgContainer'
const Briefcase = props => {
return (
<SvgContainer
height={props.height}
width={props.width}
color={props.color}
onClick={props.onClick}
rotate={props.rotate ? 1 : 0}
shake... |
nawawi/zephir | ext/stub/geometry.zep.h |
extern zend_class_entry *stub_geometry_ce;
ZEPHIR_INIT_CLASS(Stub_Geometry);
PHP_METHOD(Stub_Geometry, run);
PHP_METHOD(Stub_Geometry, runOptimize);
PHP_METHOD(Stub_Geometry, distanceStatic);
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_geometry_run, 0, 2, IS_VOID, 0)
ZEND_ARG_ARRAY_INFO(0, list, 0)
ZEND... |
manageacloud/thevpncompany | src/main/java/com/manageacloud/vpn/interceptor/VPNToolInterceptor.java | /*
* Copyright (c) 2020 TheVPNCompany.com.au
*/
package com.manageacloud.vpn.interceptor;
import com.manageacloud.vpn.utils.CoreUtils;
import com.manageacloud.vpn.utils.WebUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.... |
christof337/ACSEL | matrice_grad_CADNA/lib/SAM_unstab.cpp | <filename>matrice_grad_CADNA/lib/SAM_unstab.cpp
/*-----------------------------------------------------------------------
Copyright 2013 <NAME>, <NAME>, <NAME>, <NAME>
This file is part of SAM.
SAM is free software: you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public Lice... |
ekzemplaro/data_base_language | ftp/ruby/create/ftp_create.rb | #! /usr/bin/ruby
# -*- encoding: utf-8 -*-
#
# ftp_create.rb
#
# Feb/25/2013
#
require 'rubygems'
require 'json'
#
load '/var/www/data_base/common/ruby_common/text_manipulate.rb'
load '/var/www/data_base/common/ruby_common/net_manipulate.rb'
#
#
# --------------------------------------------------------------------... |
huashijiacuo/codeclone | gumtreetest/core/src/test/java/com/github/gumtreediff/test/TestGumtreeMatcher.java | /*
* This file is part of GumTree.
*
* GumTree 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 3 of the License, or
* (at your option) any later version.
*
* GumTree is distribute... |
shaowei-su/shaowei-su.github.io | newEff/259.3sum-smaller.java | /*
* [259] 3Sum Smaller
*
* https://leetcode.com/problems/3sum-smaller/description/
*
* algorithms
* Medium (43.00%)
* Total Accepted: 41.4K
* Total Submissions: 96.3K
* Testcase Example: '[-2,0,1,3]\n2'
*
* Given an array of n integers nums and a target, find the number of index
* triplets i, j, k with... |
Infinidat/pyvisdk | pyvisdk/esxcli/handlers/ha_cli_handler_hardware_cpu.py |
from pyvisdk.esxcli.executer import execute_soap
from pyvisdk.esxcli.base import Base
class HardwareCpu(Base):
'''
CPU information.
'''
moid = 'ha-cli-handler-hardware-cpu'
def list(self):
'''
List all of the CPUs on this host.
:returns: vim.EsxCLI.hardware.cpu.list.Cpu[]
... |
hbrunie/cctbx_project | cctbx/maptbx/refine_sharpening.py | <filename>cctbx/maptbx/refine_sharpening.py
from __future__ import absolute_import, division, print_function
import sys,os
from libtbx.utils import Sorry
from cctbx.array_family import flex
from copy import deepcopy
from cctbx.array_family import flex
import scitbx.lbfgs
import math
from cctbx.maptbx.segment_and_spli... |
omerlevran46/sdk | runtime/vm/compiler/frontend/flow_graph_builder.h | <filename>runtime/vm/compiler/frontend/flow_graph_builder.h
// Copyright (c) 2012, the Dart 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.
#ifndef RUNTIME_VM_COMPILER_FRONTEND_FLOW_G... |
eugeneilyin/mdi-norm | lib/SharpArrowRight.js | "use strict";
exports.__esModule = true;
var _FilledArrowRight = require("./FilledArrowRight");
exports.SharpArrowRight = _FilledArrowRight.FilledArrowRight; |
gradient-ml/Ghost | node_modules/intl-messageformat/lib/en.js | <gh_stars>100-1000
// GENERATED FILE
"use strict";
exports["default"] = {"locale":"en","pluralRuleFunction":function (n,ord){var s=String(n).split("."),v0=!s[1],t0=Number(s[0])==n,n10=t0&&s[0].slice(-1),n100=t0&&s[0].slice(-2);if(ord)return n10==1&&n100!=11?"one":n10==2&&n100!=12?"two":n10==3&&n100!=13?"few":"other";re... |
postnummeruppror/insamlingsappen-server | src/test/java/nu/postnummeruppror/insamlingsappen/PostortsPolygonServiceSkyddsrum.java | package nu.postnummeruppror.insamlingsappen;
import com.vividsolutions.jts.geom.GeometryFactory;
import com.vividsolutions.jts.geom.Polygon;
import com.vividsolutions.jts.geom.PrecisionModel;
import org.json.JSONArray;
import org.json.JSONObject;
import org.json.JSONTokener;
import se.kodapan.osm.jts.voronoi.AdjacentC... |
sailikhithk/tech-interview-prep | problems/subdomain-visit-count.py | #https://leetcode.com/problems/subdomain-visit-count/
class Solution(object):
def subdomainVisits(self, cpdomains):
data = collections.Counter()
return_data = []
for domain in cpdomains:
count, domain = domain.split()
count = int(count)
data[domain]+=count... |
mnaboka/cosmos | cosmos-server/src/main/scala/com/mesosphere/cosmos/http/MediaTypeParser.scala | <reponame>mnaboka/cosmos
package com.mesosphere.cosmos.http
import java.util
import com.google.common.collect.Multimaps
import com.google.common.net.{MediaType => GMediaType}
import com.twitter.util.Try
import scala.collection.JavaConversions._
case class MediaTypeParseError(msg: String, cause: Throwable) extends R... |
GabrieleRolleri/competitive_programming | training-olinfo/annoluce/main.cpp | #include <bits/stdc++.h>
using namespace std;
bool funzione(int a, long double b);
int main(){
ifstream in;
in.open("input.txt");
ofstream out;
out.open("output.txt");
int nStelle;
in>>nStelle;
vector<long double> D(nStelle);
long double temp1, temp2, temp3;
for(auto it=D.begin();... |
Reloadly/reloadly-sdk-java | java-sdk-airtime/src/test/java/software/reloadly/sdk/airtime/operation/integration/AccountOperationsTest.java | <reponame>Reloadly/reloadly-sdk-java<gh_stars>10-100
package software.reloadly.sdk.airtime.operation.integration;
import software.reloadly.sdk.airtime.client.AirtimeAPI;
import software.reloadly.sdk.airtime.dto.response.AccountBalanceInfo;
import software.reloadly.sdk.airtime.interfaces.IntegrationTest;
import softwar... |
WANGXINJ/SOCharts | src/main/java/com/storedobject/chart/property/TextBorder.java | <filename>src/main/java/com/storedobject/chart/property/TextBorder.java
/*
* Copyright 2019-2020 <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/... |
Andreev-Sergey/diadocsdk-cpp | src/protos/Timestamp.pb.h | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Timestamp.proto
#ifndef PROTOBUF_Timestamp_2eproto__INCLUDED
#define PROTOBUF_Timestamp_2eproto__INCLUDED
#include <string>
#include <google/protobuf/stubs/common.h>
#if GOOGLE_PROTOBUF_VERSION < 2006000
#error This file was generated by a newer... |
alancnet/artifactory | storage/db/src/test/java/org/artifactory/storage/db/fs/itest/dao/NodesDaoRepoStorageSummaryTest.java | /*
* Artifactory is a binaries repository manager.
* Copyright (C) 2013 JFrog Ltd.
*
* Artifactory 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 3 of the License, or
* (at your o... |
morrislab/plos-medicine-joint-patterns | scripts/data/validation/concatenate.py | <gh_stars>0
"""
Concatenates joint involvement data.
"""
from click import *
from logging import *
import pandas as pd
def load_data(path: str, visit: int) -> pd.DataFrame:
"""
Loads data for the given visit.
Args:
path: the path to the data
visit: the visit number
"""
info(f"L... |
helmutkemper/iotmaker.santa_isabel_theater.platform.webbrowser | canvas/strokeStyle.go | <filename>canvas/strokeStyle.go
package canvas
import "image/color"
// SetStrokeStyle
// en: Sets the color, gradient, or pattern used for strokes
// value: a valid JavaScript value or a color.RGBA{} struct
// Default value: #000000
//
// pt_br: Define a cor, gradiente ou padrão usado para o contorno
// v... |
herbherbherb/Chess_Game | src/main/java/model/Board.java | package model;
import controller.Game_Controller;
import model.piece.*;
import view.Board_View;
import java.util.HashSet;
import java.util.Set;
import java.util.Stack;
import java.util.stream.Collectors;
public class Board {
public final int Board_Row;
public final int Board_Col;
protected Grid[][] board... |
ControlThings/mist-node-api-node | examples/wish-app-stream-file.js | /**
* Copyright (C) 2020, ControlThings Oy 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
*
* @license Apache-2.0
*/
//var WishApp... |
jgru/memory-replay | src/fuzz.c | #include "private.h"
static bool fuzz_iterate(vmi_t *vmi, uint32_t fork_domid, uint64_t pa, uint64_t *mem, bool *stop)
{
if ( mem )
{
//uint8_t test[9] = "notbeef";
uint8_t test[9] = { [8] = '\0' };
memcpy(&test[0], mem, 8);
//printf("\t Starting test with '%s'\n ", test);
... |
EwoutH/pik | pik/args.h | // Copyright 2017 Google Inc. All Rights Reserved.
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.
// Helpers for parsing command line arguments. No include guard needed.
#include "pik/pik_params.h" // Override
... |
Svolcano/python_exercise | dianhua/com/multiprocess_dama.py | <filename>dianhua/com/multiprocess_dama.py<gh_stars>1-10
# -*- coding: utf-8 -*-
# ad huang
from com.connection import db
import os, time, sys
from com.logger import logger
from setting.dama2 import DAMA2_CODE
from setting.yundama_config import YUNDAMA_CODE
from setting.feifeidama import fateadm_code
... |
pengzhuo/gameServer | server/models/base.py | # coding: utf-8
from common.constDefine import *
class Base:
"""玩家基类"""
name = None # 名称
identity = None # 身份
skills = None # 技能
isAliveFlag = True # 状态(True: 生存 False: 死亡)
die_reason = None ... |
wedataintelligence/vivaldi-source | chromium/content/browser/service_worker/service_worker_provider_host_unittest.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 "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "base/thread_task_runner_handle.h"
#include "content/browser/service_worker/embedded_w... |
xyxiaoyou/snappy-store | gemfirexd/core/src/main/java/com/pivotal/gemfirexd/internal/impl/store/access/sort/MergeScan.java | /*
Derby - Class com.pivotal.gemfirexd.internal.impl.store.access.sort.MergeScan
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 ... |
SalamiArmy/TelegramSteamBotForGoogleAppEngine | integration_tests/integration_test_post.py | <reponame>SalamiArmy/TelegramSteamBotForGoogleAppEngine
# coding=utf-8
import unittest
from google.appengine.ext import ndb
from google.appengine.ext import testbed
import main
class TestPost(unittest.TestCase):
def setUp(self):
# First, create an instance of the Testbed class.
self.testbed = test... |
seba-m/University-Projects | Third year/Primer Semestre/Proyecto inventariado/Servidor/src/main/java/com/pruebas/modelo/configuraciones/SecurityConfig.java | <reponame>seba-m/University-Projects<gh_stars>1-10
package com.pruebas.modelo.configuraciones;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;... |
rugameuser/mpd-tools | parser/src/main/java/io/lindstrom/mpd/data/MPD.java | <filename>parser/src/main/java/io/lindstrom/mpd/data/MPD.java
package io.lindstrom.mpd.data;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import io.lind... |
haraisao/fcl | test/narrowphase/detail/primitive_shape_algorithm/test_sphere_cylinder.cpp | <filename>test/narrowphase/detail/primitive_shape_algorithm/test_sphere_cylinder.cpp
/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2018. Toyota Research Institute
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted prov... |
grantgarrett/grantgarrett-design | src/components/suggest-case-study/suggest-new-case-study.js | <gh_stars>1-10
import React from "react"
import GoToInvision from "./go-to-invision"
import GoToInquicker from "./go-to-inquicker"
import GoToSprinklr from "./go-to-sprinklr"
import GoToSightbox from "./go-to-sightbox"
//Components
import LinkArrow from "../ui/LinkArrow"
const SuggestNewCaseStudy = (props) => {
ret... |
Matt-Dub/HISE | tools/snex_playground/test_files/basic/if_false.h | /*
BEGIN_TEST_DATA
f: main
ret: float
args: int
input: 0
output: 2.0
error: ""
filename: "basic/if_false"
END_TEST_DATA
*/
float value = 2.0f;
float main(int input)
{
if (input == 0)
{
return value;
}
else
{
return value;
}
}
|
nimile/Balance-Shoe | doc/esp32/html/search/defines_3.js | var searchData=
[
['device_5fname_75',['DEVICE_NAME',['../_e_s_p32_8c.html#a5f5a2c9450ebc584b4fe743c6b1a280b',1,'ESP32.c']]],
['dout_5fpin_76',['DOUT_PIN',['../_e_s_p32_8c.html#ade0fb7dd3abd429354e0715d25f3d03a',1,'ESP32.c']]]
];
|
rtlayzell/rush | include/rush/ast/decls/prototype.hpp | <reponame>rtlayzell/rush<filename>include/rush/ast/decls/prototype.hpp<gh_stars>1-10
/*************************************************************************
* Copyright 2018 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*... |
zwliew/ctci | solutions/leetcode/product-of-array-except-self/main.py | from typing import List
class Solution:
def productExceptSelf(self, nums: List[int]) -> List[int]:
result = [1 for i in range(len(nums))]
for i in range(1, len(nums)):
result[i] = result[i - 1] * nums[i - 1]
cur_prod = 1
for i in range(len(nums) - 2, -1, -1):
... |
indunet/fastproto | src/main/java/org/indunet/fastproto/TypeAssist.java | /*
* Copyright 2019-2021 indunet.org
*
* 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 agre... |
lectureStudio/avdev | avdev-jni/src/main/cpp/dependencies/windows/mf/src/MFVideoManager.cpp | <filename>avdev-jni/src/main/cpp/dependencies/windows/mf/src/MFVideoManager.cpp
/*
* Copyright 2016 <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.or... |
jackshirazi/apm-agent-java | apm-agent-core/src/main/java/co/elastic/apm/agent/collections/SpanConcurrentHashMap.java | /*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
sme777/esaas-engagements | db/migrate/20171202215817_rename_engagement_id_from_users.rb | class RenameEngagementIdFromUsers < ActiveRecord::Migration[6.1]
def change
rename_column :users, :engagement_id, :developing_engagement_id
end
end
|
timboudreau/netbeans-contrib | python.project/src/main/java/org/netbeans/modules/python/project/ui/customizer/CompositePanelProviderImpl.java | <reponame>timboudreau/netbeans-contrib
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.netbeans.modules.python.project.ui.customizer;
import javax.swing.JComponent;
import javax.swing.JPanel;
import org.netbeans.spi.project.ui.support.ProjectCustomizer;
... |
MeGysssTaa/ReflexAutoban | src/main/java/rip/reflex/autoban/command/base/CommandArguments.java | <reponame>MeGysssTaa/ReflexAutoban<gh_stars>1-10
/*
* Copyright 2021 <NAME> (DarksideCode)
*
* 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/LICENS... |
iogogogo/supervisord-spring-boot | ext/supervisord4j/src/main/java/com/iogogogo/supervisord4j/util/IdHelper.java | <gh_stars>0
package com.iogogogo.supervisord4j.util;
import java.util.UUID;
/**
* Created by tao.zeng on 2019-07-24.
*/
public class IdHelper {
private IdHelper() {
}
public static Long id() {
return new Snowflake(2).next();
}
public static String uuid() {
return UUID.random... |
rrsharma7/Interview_Preparations | CodePractice/LCAAndTreeProblems/LeastCommonAncestor.java | <reponame>rrsharma7/Interview_Preparations
/**
Q1. Least Common Ancestor
Problem Description
Find the lowest common ancestor in an unordered binary tree A given two values B and C in the tree.
Lowest common ancestor : the lowest common ancestor (LCA) of two nodes and w in a tree or directed acyclic graph (DAG) is th... |
timm-gs/bazel | src/main/java/com/google/devtools/build/lib/bazel/rules/android/AndroidNdkRepositoryRule.java | <filename>src/main/java/com/google/devtools/build/lib/bazel/rules/android/AndroidNdkRepositoryRule.java
// Copyright 2015 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a ... |
IU-Libraries-Joint-Development/curation_concerns | spec/services/repository_audit_service_spec.rb | require 'spec_helper'
describe CurationConcerns::RepositoryAuditService do
let(:user) { FactoryGirl.create(:user) }
let!(:file) do
fs = FileSet.create! do |f|
f.apply_depositor_metadata(user)
end
Hydra::Works::AddFileToFileSet.call(fs, File.open(fixture_path + '/world.png'), :original_file)
f... |
canonical/microk8s-cluster-agent | pkg/snap/mock/mock.go | <filename>pkg/snap/mock/mock.go
package mock
import (
"context"
"fmt"
"io"
"io/ioutil"
"github.com/canonical/microk8s-cluster-agent/pkg/snap"
"github.com/canonical/microk8s-cluster-agent/pkg/util"
)
// Snap is a generic mock for the snap.Snap interface.
type Snap struct {
GroupName string
EnableAddonCalledW... |
jpsalo/extendedmind | backend/src/main/scala/org/extendedmind/bl/CollectiveActions.scala | /**
* Copyright (c) 2013-2014 Extended Mind Technologies Oy
*
* This file is part of Extended Mind.
*
* Extended Mind is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* Li... |
AnimatorPro/Animator-Pro | src/PJ/a3ddat.c | <filename>src/PJ/a3ddat.c
/* a3ddat.c - This file contains the data structures for the optics panel.
Also some functions for enabling/disabling buttons and rearranging
the optics panel for example to bring up the reduce/enlarge sliders
when you press the size button */
/* Gak this is next to completely... |
xingyunwork/neb.vm | example/node/testUnit.js | <reponame>xingyunwork/neb.vm
const Uint = require('../../src/node/uint');
var Uint64 = Uint.Uint64;
var a = new Uint64(7);
var b = new Uint64("2");
console.log({
'a+b': a.plus(b).toString(10), // 9
'a-b': a.minus(b).toString(10), // 5
'a*b': a.mul(b).toString(10), // 14
'a/b': a.div(b).toString(10... |
fieranmason/mem-admin | scripts/generateProjectData.js | <reponame>fieranmason/mem-admin
'use strict';
var request = require('request');
var _ = require('lodash');
var fs = require('fs');
var memfile = './mem.json';
var epicfile = './epic.json';
// Initialize files.
fs.writeFileSync(memfile, "[]");
fs.writeFileSync(epicfile, "[]");
function addToObj(obj, file) {
... |
dgolombek/protobuffy | lib/protobuf/tasks/compile.rake | <filename>lib/protobuf/tasks/compile.rake
require 'fileutils'
namespace :protobuf do
desc 'Clean & Compile the protobuf source to ruby classes. Pass PB_NO_CLEAN=1 if you do not want to force-clean first.'
task :compile, [ :package, :source, :destination, :plugin, :file_extension ] do |tasks, args|
args.with_d... |
iliff/knowledge-retriever | trainer/trainers.py | import os
import torch
from sklearn import metrics
from torch import nn, optim
class Trainer:
"""
A class for generalizing training process to parts of model.
Parameters
----------
model : A HuggingFace or PyTorch model
Needs to fit for a question-answering task.
tokenizer : A Huggin... |
InnovativeOnlineIndustries/MatterOverdrive | src/main/java/com/hrznstudio/matteroverdrive/client/renderer/entity/MORenderers.java | package com.hrznstudio.matteroverdrive.client.renderer.entity;
import com.hrznstudio.matteroverdrive.block.MOBlocks;
import com.hrznstudio.matteroverdrive.client.renderer.entity.projectile.KunaiRenderer;
import com.hrznstudio.matteroverdrive.client.renderer.tile.RenderAndroidStation;
import com.hrznstudio.mattero... |
cifpfbmoll/proyecto-3a-evaluacion-monos_constructures | MCE/src/Ventanas/RecursosHumanos/MainPage/RrhhMainPageController.java | <filename>MCE/src/Ventanas/RecursosHumanos/MainPage/RrhhMainPageController.java
package Ventanas.RecursosHumanos.MainPage;
import ObjetosCrucero.Servicios.RecursosHumanos;
import Utils.Credentials;
import Utils.Mensajes;
import Utils.WindowUtils;
import Ventanas.Fx.Animation;
import javafx.event.EventHandler;
import j... |
nwashangai/open-school-system | application/routes/api/teacherRoutes.js | <reponame>nwashangai/open-school-system
import express from 'express';
import TeacherController from '../../controllers/TeacherController';
import auth from '../../middlewares/passport';
import { checkInput } from '../../middlewares/validate';
const router = express.Router();
// router.get('/', auth, StudentControlle... |
dubiety/azure-sdk-for-python | sdk/ml/azure-ai-ml/azure/ai/ml/_schema/automl/automl_vertical.py | <reponame>dubiety/azure-sdk-for-python
# ---------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# ---------------------------------------------------------
from azure.ai.ml._restclient.v2022_02_01_preview.models import (
LogVerbosity,
)
from azure.ai.m... |
leonchen83/jetty.project | jetty-annotations/src/test/java/org/eclipse/jetty/annotations/TestAnnotationIntrospector.java | <reponame>leonchen83/jetty.project
//
// ========================================================================
// Copyright (c) 1995-2020 Mort Bay Consulting Pty Ltd and others.
//
// This program and the accompanying materials are made available under
// the terms of the Eclipse Public License 2.0 which is availabl... |
adligo/fabricate_tests.adligo.org | src/org/adligo/fabricate_tests/common/system/FabSystemTrial.java | package org.adligo.fabricate_tests.common.system;
import org.adligo.fabricate.common.en.FabricateEnConstants;
import org.adligo.fabricate.common.files.FabFileIO;
import org.adligo.fabricate.common.files.xml_io.FabXmlFileIO;
import org.adligo.fabricate.common.i18n.I_FabricateConstants;
import org.adligo.fabricate.commo... |
ggustin93/decide-showcase | packages/icons/src/line/CommentHeart.js | import React from 'react';
export default function CommentHeart(props) {
return (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width={24} height={24} {...props}>
<path d="M12,8.35a3.07,3.07,0,0,0-3.54.53,3,3,0,0,0,0,4.24L11.29,16a1,1,0,0,0,1.42,0l2.83-2.83a3,3,0,0,0,0-4.24A3.07,3.07,0,0,0,12... |
egormkn/Study-courses | Translation methods/4. Generator of parsers/src/main/java/ru/shemplo/mt/task4/TreeWalkListener.java | <reponame>egormkn/Study-courses
package ru.shemplo.mt.task4;
import java.util.LinkedList;
import java.util.List;
import ru.shemplo.dsau.stuctures.Trio;
import ru.shemplo.mt.task4.CodeGenerator.Repeat;
import ru.shemplo.mt.task4.antlr.GrammarBaseListener;
import ru.shemplo.mt.task4.antlr.GrammarParser.Code_exp... |
guoshucan/mpaas | ghost.framework.context/src/main/java/ghost/framework/context/bean/factory/IClassAnnotationBeanFactory.java | <reponame>guoshucan/mpaas
package ghost.framework.context.bean.factory;
import ghost.framework.beans.annotation.application.Application;
import ghost.framework.beans.annotation.module.Module;
import ghost.framework.beans.annotation.module.ModuleArtifact;
import ghost.framework.context.application.IApplication;
import ... |
vivek12345/web-engineer-exercise | src/components/Pagination.js | <gh_stars>0
import React from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
const Pagination = props => {
const { limit, onPageChanged, offset, items } = props;
const isPrevBtnDisabled = offset <= 0;
const isNextBtnDisabled = items.length < limit;
const onClick = type => {
if (... |
PazerOP/DemoLib2 | DemoLib2/net/netmessages/NetEntityMessage.cpp | <filename>DemoLib2/net/netmessages/NetEntityMessage.cpp
#include "NetEntityMessage.hpp"
#include "BitIO/BitIOReader.hpp"
#include "BitIO/BitIOWriter.hpp"
#include "misc/Exceptions.hpp"
#include "net/data/SourceConstants.hpp"
void NetEntityMessage::ReadElementInternal(BitIOReader& reader)
{
reader.Read(m_EntityIndex,... |
uc3m-aerospace/MOLTO-IT-UI | src/components/MoltoIt/CelestialBodies.js | <reponame>uc3m-aerospace/MOLTO-IT-UI<gh_stars>0
import React, { useState, useEffect } from 'react';
import { useSelector, useDispatch } from 'react-redux';
import { FORM_DATA } from '../../constants';
import Mars from '../../assets/images/Planets/1024/mars.png';
import Earth from '../../assets/images/Planets/1024/earth... |
churuxu/codesnippets | generic_packet/generic_packet.c | <reponame>churuxu/codesnippets<filename>generic_packet/generic_packet.c
#include "generic_packet.h"
#include <string.h>
#include <stdio.h>
#define MAX_NAME 32
#define MAX_VALUE 32
static const uint8_t BCD_TO_HEX[256] = {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 0, 0, 0, 0, 0,
10,11,12,13,14,15,16,17,18,1... |
wanglong1008/LeetCode | src/Question106.java | <filename>src/Question106.java
public class Question106 {
public TreeNode buildTree(int[] inorder, int[] postorder) {
return tree(postorder,inorder,0,inorder.length-1,postorder.length-1);
}
public TreeNode tree(int[] postorder, int[] inorder,int left,int right,int head){
if(left>right||head<... |
Pyknic/mutable-stream | src/main/java/com/speedment/common/mutablestream/internal/terminate/IteratorTerminatorImpl.java | <filename>src/main/java/com/speedment/common/mutablestream/internal/terminate/IteratorTerminatorImpl.java<gh_stars>1-10
package com.speedment.common.mutablestream.internal.terminate;
import com.speedment.common.mutablestream.HasNext;
import com.speedment.common.mutablestream.terminate.IteratorTerminator;
import java.u... |
duchaojie/Ant-dva- | src/services/userManage.js | import qs from 'qs';
import request from '../utils/request';
// 新增用户
export async function addUser(params) {
return request({
url: '/system/user/add.json',
method: 'POST',
body: params,
});
}
// 编辑用户
export async function editUser(params) {
return request({
url: '/system/user/edit.json',
met... |
PolySync/core-python-api | features/steps/sbp_msg_observation_observations.py | # WARNING: Auto-generated file. Any changes are subject to being overwritten
# by setup.py build script.
#!/usr/bin/python
import time
from behave import given
from behave import when
from behave import then
from hamcrest import assert_that, equal_to
try:
import polysync.node as ps_node
from polysync.data_mod... |
patil215/v8 | fuzzer_output/interesting/sample_1554139355242.js | function main() {
const v2 = [1337,1337,1337,1337,1337];
const v6 = Promise * 13.37;
const v7 = [13.37,13.37];
const v9 = [Promise,"log1p",v2,v7];
const v10 = {shift:v9,round:1337,isSealed:1337,rightContext:"log1p",source:"log1p",getUint16:"log1p"};
function v11(v12,v13,v14,v15) {
for (let v19 = 0; v19 < 5; v19++) ... |
Nyadist/lightnovel-crawler | sources/en/t/travistranslations.py | # -*- coding: utf-8 -*-
import logging
from bs4.element import Tag
from lncrawl.core.crawler import Crawler
logger = logging.getLogger(__name__)
class TravisTranslations(Crawler):
base_url = 'https://travistranslations.com/'
def read_novel_info(self):
soup = self.get_soup(self.novel_url)
p... |
Learning-and-Intelligent-Systems/predicators | third_party/fast_downward_translator/sas_tasks.py | SAS_FILE_VERSION = 3
DEBUG = False
class SASTask:
"""Planning task in finite-domain representation.
The user is responsible for making sure that the data fits a number
of structural restrictions. For example, conditions should generally
be sorted and mention each variable at most once. See the valid... |
mitre-icarus/ICArUS-Challenge-Problem-Software-and-Data | src/main/java/org/mitre/icarus/cps/app/widgets/map/phase_1/objects/Annotation.java | <gh_stars>0
/*
* NOTICE
* This software was produced for the office of the Director of National Intelligence (ODNI)
* Intelligence Advanced Research Projects Activity (IARPA) ICArUS program,
* BAA number IARPA-BAA-10-04, under contract 2009-0917826-016, and is subject
* to the Rights in Data-General Clause 52.2... |
Olde-Skuul/burgerlib | source/commandline/brcommandparameterstring.cpp | /***************************************
Class for a string command parameter
Copyright (c) 1995-2020 by <NAME> <<EMAIL>>
It is released under an MIT Open Source license. Please see LICENSE for
license details. Yes, you can use it in a commercial title without paying
anything, just give me a cred... |
google-ar/chromium | third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/clients-matchall-worker.js | <filename>third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/clients-matchall-worker.js
self.onmessage = function(e) {
var port = e.data.port;
var options = e.data.options;
e.waitUntil(self.clients.matchAll(options).then(function(clients) {
var message = [];
clients.forEach(function(cl... |
boost-entropy-repos-org/metasfresh | backend/de.metas.elasticsearch.server/src/main/java/de/metas/elasticsearch/ESServer.java | <gh_stars>0
package de.metas.elasticsearch;
import de.metas.elasticsearch.config.ESModelIndexerConfigBuilder;
import de.metas.elasticsearch.indexer.impl.ESModelIndexersRegistry;
import de.metas.logging.LogManager;
import de.metas.util.Services;
import lombok.NonNull;
import org.compiere.SpringContextHolder;
import org... |
alex-dsouza777/Python-Basics | Chapter 7 - Loops in Python/Example.py | i = 0
while i < 5:
print("root")
i = i + 1 |
cseelye/sfauto | vmhost_vswitch_create.py | <reponame>cseelye/sfauto<filename>vmhost_vswitch_create.py<gh_stars>0
#!/usr/bin/env python
"""
This action will create a vswitch on a hypervisor
"""
from libsf.apputil import PythonApp
from libsf.argutil import SFArgumentParser, GetFirstLine, SFArgFormatter
from libsf.logutil import GetLogger, logargs
from libsf.vir... |
KenWoo/Algorithm | Algorithms/Medium/120. Triangle/answer.py | from typing import List
class Solution:
def minimumTotal(self, triangle: List[List[int]]) -> int:
if not triangle or not triangle[0]:
return triangle
N = len(triangle)
res = []
for n in triangle[N-1]:
res.append(n)
for i in range(N-2, -1, -1):
... |
ani03sha/Leetcoding | december-2020-leetcoding-challenge/src/main/java/org/redquark/leetcode/challenge/Problem31_LargestRectangleInHistogram.java | <reponame>ani03sha/Leetcoding
package org.redquark.leetcode.challenge;
import java.util.Arrays;
import java.util.Stack;
/**
* @author <NAME>
* <p>
* Given n non-negative integers representing the histogram's bar height where the width of each bar is 1,
* find the area of largest rectangle in the histogram.
*/
pu... |
johntellsall/shotglass | shotglass/shotglass/urls.py | <gh_stars>1-10
# shotglass.urls
from django.conf.urls import include, re_path
urlpatterns = [
re_path(r"^app/", include("app.urls")),
]
|
impedimentToProgress/UCI-BlueChip | snapgear_linux/user/e2fsprogs/misc/mke2fs.c | <filename>snapgear_linux/user/e2fsprogs/misc/mke2fs.c
/*
* mke2fs.c - Make a ext2fs filesystem.
*
* Copyright (C) 1994, 1995, 1996, 1997 <NAME>.
*
* %Begin-Header%
* This file may be redistributed under the terms of the GNU Public
* License.
* %End-Header%
*/
/* Usage: mke2fs [options] device
*
* The devi... |
balupton/exo | cmd/spin/main.go | <reponame>balupton/exo
// Test program that pegs a core and ignores interrupts.
package main
import (
"os"
"os/signal"
)
func main() {
signal.Ignore(os.Interrupt, os.Kill)
for {
}
}
|
slajerek/RetroDebugger | src/Emulators/vice/root/c64basic.h | <reponame>slajerek/RetroDebugger
/* Autogenerated file, DO NOT EDIT !!! */
BYTE c64memrom_basic64_rom[C64_BASIC_ROM_SIZE] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0... |
keera-studios/hsQt | Qtc/include/gui/qtc_hs_QStyleOptionFrame.h | /////////////////////////////////////////////////////////////////////////////
//
// File : qtc_hs_QStyleOptionFrame.h
// Copyright : (c) <NAME> 2010
// Project : qtHaskell
// Version : 1.1.4
// Modified : 2010-09-02 17:02:41
//
// Warning : this file is machine gene... |
mbarbon/aqua | src/main/java/aqua/recommend/ScoredRated.java | <gh_stars>1-10
package aqua.recommend;
import java.util.Comparator;
public class ScoredRated implements ScoredAnime {
public static final Comparator<ScoredRated> SORT_SCORE = new Comparator<ScoredRated>() {
@Override
public int compare(ScoredRated a, ScoredRated b) {
return Float.compa... |
cbarnson/UVa | archives/codelibraries/CompetitiveProgramming-master/code/strings/eertree.test.cpp | <reponame>cbarnson/UVa
/* Field testing: Timus 2040, Timus 1960 */
void test() {
}
// vim: cc=60 ts=2 sts=2 sw=2:
|
sailxjx/DI-engine | dizoo/classic_control/bitflip/envs/bitflip_env.py | <reponame>sailxjx/DI-engine
import copy
import random
import numpy as np
from typing import Any, Dict, Optional, Union, List
from ding.envs import BaseEnv, BaseEnvInfo, BaseEnvTimestep
from ding.envs.common.env_element import EnvElement, EnvElementInfo
from ding.utils import ENV_REGISTRY
@ENV_REGISTRY.register('bit... |
Wangqge/PowerLog_ae | src/java/socialite/functions/Dmin.java | <filename>src/java/socialite/functions/Dmin.java<gh_stars>0
package socialite.functions;
public class Dmin extends AbstractAggregation {
static Dmin inst = new Dmin();
public static Dmin get() { return inst; }
public int apply(int a, int b) { throw new AssertionError("can't call this method directly"); }
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.