identifier stringlengths 42 383 | collection stringclasses 1
value | open_type stringclasses 1
value | license stringlengths 0 1.81k | date float64 1.99k 2.02k ⌀ | title stringlengths 0 100 | creator stringlengths 1 39 | language stringclasses 157
values | language_type stringclasses 2
values | word_count int64 1 20k | token_count int64 4 1.32M | text stringlengths 5 1.53M | __index_level_0__ int64 0 57.5k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
https://github.com/choward1491/APSO/blob/master/src/distr_utility/distr_message.cpp | Github Open Source | Open Source | MIT | 2,021 | APSO | choward1491 | C++ | Code | 307 | 979 | //
// distr_message.cpp
// distributed_hybrid_meshing
//
// Created by Christian Howard on 6/23/19.
// Copyright © 2019. All rights reserved.
//
#include "distr_message.hpp"
namespace distributed {
// ctor/dtor
message::message() {
task_id = ID = tag = my_rank = dest_rank = -1;
error_... | 50,057 |
https://github.com/DanielGolan-mc/TheBoson/blob/master/src/main/java/net/danielgolan/boson/blocks/Stone.java | Github Open Source | Open Source | CC0-1.0 | null | TheBoson | DanielGolan-mc | Java | Code | 26 | 132 | package net.danielgolan.boson.blocks;
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
import net.minecraft.block.Block;
import net.minecraft.block.Material;
import net.minecraft.sound.BlockSoundGroup;
public class Stone extends Block {
public Stone(BlockSoundGroup blockSoundGroup){
... | 23,156 |
https://github.com/damingerdai/gwwf/blob/master/src/main/webapp/personnel_department/personInfo_revise.jsp | Github Open Source | Open Source | MIT | null | gwwf | damingerdai | null | Spoken | 134 | 788 | <%@ page language="java" import="java.util.*,com.sun.demo.bean.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html ... | 52,961 |
https://github.com/The-Spooky-Crabs/letswork/blob/master/server/database/db.js | Github Open Source | Open Source | MIT | 2,019 | letswork | The-Spooky-Crabs | JavaScript | Code | 34 | 147 |
const MongoClient = require('mongodb').MongoClient;
const uri = "mongodb+srv://neoc:sunsh1ne@letswork-xeqzx.mongodb.net/test?retryWrites=true&w=majority";
const client = new MongoClient(uri, {useUnifiedTopology:true, useNewUrlParser: true });
client.connect(err => {
const collection = client.db("LWDB").collection(... | 2,183 |
https://github.com/Sanji-IO/sanji/blob/master/Makefile | Github Open Source | Open Source | MIT | 2,020 | sanji | Sanji-IO | Makefile | Code | 18 | 66 | all: pylint test
pylint:
flake8 -v ./sanji
test:
nosetests --with-coverage --cover-package=sanji --cover-erase
tox:
tox
.PHONY: pylint test tox
| 35,637 |
https://github.com/TelestionTeam/telestion-client/blob/master/packages/telestion-client-prop-types/src/vertx-event-bus/message-types/content-message.ts | Github Open Source | Open Source | MIT | 2,021 | telestion-client | TelestionTeam | TypeScript | Code | 68 | 214 | import PropTypes from 'prop-types';
import { addressableMessage } from './addressable-message';
import { jsonSerializablePropType } from '../../json-serializable';
export const contentMessage = {
...addressableMessage,
body: jsonSerializablePropType.isRequired
};
/**
* PropType for a content message.
*
* See {@li... | 1,958 |
https://github.com/mmrauta/RepositoryScanner/blob/master/Interfaces/IRepositoryCommunicationService.cs | Github Open Source | Open Source | MIT | null | RepositoryScanner | mmrauta | C# | Code | 20 | 76 | using RepositoryScanner.Entities;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace RepositoryScanner.Interfaces
{
public interface IRepositoryCommunicationService
{
Task<List<Commit>> GetCommitsAsync(string userName, string repositoryName);
}
} | 14,387 |
https://github.com/jc-lab/JsCPPDBC/blob/master/UpgradeHandler.h | Github Open Source | Open Source | Apache-2.0 | null | JsCPPDBC | jc-lab | C | Code | 108 | 331 | /**
* @file UpgradeHandler.h
* @class JsCPPDBC::UpgradeHandler
* @author Jichan (development@jc-lab.net / http://ablog.jc-lab.net/category/JsCPPDBC )
* @date 2018/11/05
* @copyright Apache License 2.0
*/
#if defined(_MSC_VER) && (_MSC_VER >= 1200)
#pragma once
#endif
#ifndef __JSCPPDBC_UPGRADEHANDLER_H__
#defin... | 32,860 |
https://github.com/willys1091/qerp/blob/master/models/MsHscode.php | Github Open Source | Open Source | BSD-3-Clause | null | qerp | willys1091 | PHP | Code | 174 | 559 | <?php
namespace app\models;
use Yii;
use yii\data\ActiveDataProvider;
/**
* This is the model class for table "ms_hscode".
*
* @property integer $hsCodeID
* @property string $hsCode
*/
class MsHscode extends \yii\db\ActiveRecord
{
/**
* @inheritdoc
*/
public static function tableName()
{
... | 42,749 |
https://github.com/rubinovitz/juice-interface/blob/master/src/contracts/ropsten/Fountain.abi.js | Github Open Source | Open Source | MIT | 2,021 | juice-interface | rubinovitz | JavaScript | Code | 904 | 3,222 | module.exports = [
{
inputs: [
{
internalType: 'contract IERC20',
name: '_dai',
type: 'address',
},
],
stateMutability: 'nonpayable',
type: 'constructor',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
... | 26,062 |
https://github.com/uts58/c_sharp_restaurant_pos/blob/master/Restaurant/SalesForm.Designer.cs | Github Open Source | Open Source | MIT | null | c_sharp_restaurant_pos | uts58 | C# | Code | 1,647 | 7,975 | namespace Restaurant
{
partial class SalesForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <par... | 50,099 |
https://github.com/lcd5478/nncase/blob/master/src/transforms/include/hlir/transforms/k210/kpu_utils.h | Github Open Source | Open Source | Apache-2.0 | 2,020 | nncase | lcd5478 | C++ | Code | 144 | 394 | /* Copyright 2019 Canaan Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 3,728 |
https://github.com/input-output-hk/daedalus/blob/master/source/renderer/app/utils/network.ts | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-warranty-disclaimer | 2,023 | daedalus | input-output-hk | TypeScript | Code | 345 | 1,036 | import {
MAINNET_EXPLORER_URL,
STAGING_EXPLORER_URL,
TESTNET_EXPLORER_URL,
MAINNET_NEWS_URL,
TESTNET_NEWS_URL,
STAGING_NEWS_URL,
DEVELOPMENT_NEWS_URL,
MAINNET_NEWS_HASH_URL,
STAGING_NEWS_HASH_URL,
TESTNET_NEWS_HASH_URL,
DEVELOPMENT_NEWS_HASH_URL,
} from '../config/urlsConfig';
import {
MAINNET,
... | 43,121 |
https://github.com/meiloucheng/PHPExiftool/blob/master/tests/lib/PHPExiftool/Test/AbstractWriterTest.php | Github Open Source | Open Source | MIT-0 | 2,022 | PHPExiftool | meiloucheng | PHP | Code | 740 | 4,502 | <?php
/**
* This file is part of the PHPExiftool package.
*
* (c) Alchemy <support@alchemy.fr>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPExiftool\Test;
use PHPExiftool\Driver;
use PHPExiftool\Writer;
use PHPExi... | 45,669 |
https://github.com/j-bill/KreditkartenRechner/blob/master/code/functions.c | Github Open Source | Open Source | MIT | null | KreditkartenRechner | j-bill | C | Code | 508 | 1,251 | /*
# KreditkartenRechner
# functions.c
# Copyright (c) 2019 j-bill
# github.com/j-bill
# This file is part of "KreditkartenRechner" which is released under the MIT license.
*/
int iin(char* kkn)
{
char prefixString[7]="";
int prefixInt;
int i = 0;
for(i = 0; i < 6; i++)
{
prefixString[... | 50,145 |
https://github.com/YellowTulipShow/PythonScripts/blob/master/case/practice_questions/collect.029.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | PythonScripts | YellowTulipShow | Python | Code | 56 | 236 | # coding: UTF-8
print(r'''
【程序29】题目:求一个3*3矩阵对角线元素之和 程序分析:利用双重for循环控制输入二维数组,再将a[i][i]累加后输出。
''')
digital_matrix = [
[1, 2, 1, 8],
[6, 5, 4, 7],
[4, 1, 8, 6],
[4, 1, 8, 4],
]
row_num = 4
column_num = row_num
sum_one = 0
sum_two = 0
for r in range(0, row_num):
sum_one += digital_matrix[r][r]
s... | 44,568 |
https://github.com/saninmersion/random-quote-gemerator/blob/master/js/index.js | Github Open Source | Open Source | MIT | null | random-quote-gemerator | saninmersion | JavaScript | Code | 61 | 264 | //Variables
var color = ['#eb2b36'];
var singleData = "";
//Functions
//JSON Parsing
function loadData(){
$.getJSON("https://codepen.io/saninmersion/pen/aJyMWO.js", function(json){
var count = json.length;
var random = Math.floor(Math.random() * count);
json = json.filter(function(val){
return j... | 37,898 |
https://github.com/datavisyn/tdp_core/blob/master/.eslintrc.js | Github Open Source | Open Source | BSD-3-Clause | 2,023 | tdp_core | datavisyn | JavaScript | Code | 6 | 33 | module.exports = require('visyn_scripts/config/eslintrc.template')({ tsconfigRootDir: __dirname });
| 51,185 |
https://github.com/courtois-neuromod/task_stimuli/blob/master/src/tasks/game_controller.py | Github Open Source | Open Source | MIT | 2,023 | task_stimuli | courtois-neuromod | Python | Code | 603 | 2,726 | import os, sys, time
import numpy as np
from psychopy import visual, core, data, logging, event
from .task_base import Task
from .videogame import _onPygletKeyPress, _onPygletKeyRelease, _keyPressBuffer, _keyReleaseBuffer
from ..shared import config, utils
class ButtonPressTask(Task):
BUTTONS = {
'l': [(... | 50,295 |
https://github.com/ucoplo/hospital/blob/master/farmacia/models/Pais.php | Github Open Source | Open Source | BSD-3-Clause | 2,016 | hospital | ucoplo | PHP | Code | 91 | 261 | <?php
namespace farmacia\models;
use Yii;
/**
* This is the model class for table "paises".
*
* @property string $PA_COD
* @property string $PA_DETALLE
*/
class Pais extends \yii\db\ActiveRecord
{
/**
* @inheritdoc
*/
public static function tableName()
{
return 'paises';
}
... | 40,684 |
https://github.com/coachalign/odin/blob/master/src/delete-stack/delete-request.ts | Github Open Source | Open Source | MIT | 2,020 | odin | coachalign | TypeScript | Code | 15 | 37 | import { Config } from '../check-stacks/config';
export interface DeleteRequest {
stackName: string;
config: Config;
}
| 9,385 |
https://github.com/xiyanjo/erluosi/blob/master/erDemo/js/xiyanjolocal.js | Github Open Source | Open Source | MIT | 2,017 | erluosi | xiyanjo | JavaScript | Code | 1,175 | 2,961 | var Game = (function () {
// dom元素
var gameDiv,
nextDiv,
scoreDiv,
resultDiv;
// 分数
var score = 0;
// 游戏区域矩阵
var gameData = [
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, ... | 45,652 |
https://github.com/BonifazStuhr/CSNN/blob/master/csnnLib/optimization.py | Github Open Source | Open Source | MIT | 2,020 | CSNN | BonifazStuhr | Python | Code | 958 | 2,910 | import tensorflow as tf
"""
Defines optimization functions of the CSNN, to update the different weights of the layers.
"""
def optimize_csnn(global_step, num_gpus, layer_train_intervals, verbose=True):
"""
Optimizes the entire CSNN model (som and mask weights) in the graph by getting the weight collections.
... | 54,207 |
https://github.com/l33tdaima/l33tdaima/blob/master/p653e/find_target.py | Github Open Source | Open Source | MIT | 2,020 | l33tdaima | l33tdaima | Python | Code | 127 | 384 | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
from typing import Optional
from local_packages.binary_tree import TreeNode
class Solution:
def findTarget(self, root: Opt... | 3,884 |
https://github.com/shguevara/bystash/blob/master/web/app/plugins/automatewoo/admin/reports-tabs/runs-by-date.php | Github Open Source | Open Source | MIT | null | bystash | shguevara | PHP | Code | 56 | 203 | <?php
defined( 'ABSPATH' ) || exit;
/**
* AW_Reports_Tab_Runs_By_Date class.
*/
class AW_Reports_Tab_Runs_By_Date extends AW_Admin_Reports_Tab_Abstract {
/**
* Constructor.
*/
public function __construct() {
$this->id = 'runs-by-date';
$this->name = __( 'Workflows', 'automatewoo' );
}
/**
* Get rep... | 14,611 |
https://github.com/artifacthub/hub/blob/master/database/migrations/functions/organizations/add_organization.sql | Github Open Source | Open Source | Apache-2.0 | 2,023 | hub | artifacthub | PLpgSQL | Code | 77 | 246 | -- add_organization adds the provided organization to the database.
create or replace function add_organization(p_user_id uuid, p_org jsonb)
returns void as $$
declare
v_org_id uuid;
begin
-- Register organization
insert into organization (
name,
display_name,
description,
ho... | 17,041 |
https://github.com/wilecoyte78/hippomanager/blob/master/routes/api/references.php | Github Open Source | Open Source | MIT | null | hippomanager | wilecoyte78 | PHP | Code | 25 | 69 | <?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| References Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for references.
|
*/
Route::get('owners', 'Reference... | 41,238 |
https://github.com/litezk/compiler-tests/blob/master/solidity/simple/loop/range_bitlength_inference/u8_to_u16.sol | Github Open Source | Open Source | MIT | null | compiler-tests | litezk | Solidity | Code | 51 | 119 | //! { "cases": [ {
//! "entry": "main",
//! "expected": 2545
//! } ] }
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
contract Test {
function main() public pure returns(uint16) {
uint16 sum = 0;
for(uint16 i = 250; i < 260; i++) {
sum += i;
}
r... | 30,763 |
https://github.com/cash2one/xai/blob/master/xai/brain/wordbase/adjectives/_fussy.py | Github Open Source | Open Source | MIT | 2,017 | xai | cash2one | Python | Code | 77 | 209 |
#calss header
class _FUSSY():
def __init__(self,):
self.name = "FUSSY"
self.definitions = [u'not easily satisfied, or having very high standards about particular things: ', u'having too much decoration and too many small details, in a way that is not stylish: ', u'A fussy baby is unhappy or difficult to please:... | 9,072 |
https://github.com/1337GameDev/Examples-Project/blob/master/Assets/Scripts/Managers/IOManager.cs | Github Open Source | Open Source | MIT | null | Examples-Project | 1337GameDev | C# | Code | 270 | 760 | using SerializableCollections;
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;
using UnityEngine;
public class IOManager : MonoBehaviour, IIOManager {
//game dictionary to be saved/loaded
private SerializableDicti... | 53,897 |
https://github.com/andiradulescu/Zhip/blob/master/Source/Application/AnalyticsTracking/Tracking.swift | Github Open Source | Open Source | Apache-2.0 | null | Zhip | andiradulescu | Swift | Code | 56 | 110 | //
// Tracking.swift
// Zupreme
//
// Created by Alexander Cyon on 2018-11-08.
// Copyright © 2018 Open Zesame. All rights reserved.
//
import Foundation
/// A type that can track events that are trackable
protocol Tracking {
/// `context` should be made optional in your implementation, by using `NoContext`
... | 42,008 |
https://github.com/victorouse/uni/blob/master/rentmngr/tests/Phactory/lib/PhactoryMongo/Association/EmbedsMany.php | Github Open Source | Open Source | MIT | 2,020 | uni | victorouse | PHP | Code | 7 | 25 | <?
class Phactory_Association_EmbedsMany extends Phactory_Association {
}
| 823 |
https://github.com/ybdarrenwang/SocialNetworkSearchEngine/blob/master/src/Time.h | Github Open Source | Open Source | BSD-2-Clause | 2,017 | SocialNetworkSearchEngine | ybdarrenwang | C++ | Code | 122 | 347 | #ifndef TIME_H
#define TIME_H
class Time
{
public:
virtual ~Time(){}
void SetYear(int y){year = y;}
int GetYear(){return year;}
void SetMonth(int m){month = m;}
int GetMonth(){return month;}
void SetDay(int d){day = d;}
int GetDay(){return day;}
void SetWeektime(string w){weektime = w;}
string GetWe... | 23,610 |
https://github.com/Smart-Torvy/torvy-home-assistant/blob/master/homeassistant/components/sensor/mysensors.py | Github Open Source | Open Source | MIT | 2,016 | torvy-home-assistant | Smart-Torvy | Python | Code | 339 | 1,812 | """
Support for MySensors sensors.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/sensor.mysensors/
"""
import logging
from homeassistant.components import mysensors
from homeassistant.const import TEMP_CELSIUS, TEMP_FAHRENHEIT
from homeassistant.helper... | 52,996 |
https://github.com/jonathanconway/exercise-sky-qgo/blob/master/src/logic/actions.js | Github Open Source | Open Source | MIT | null | exercise-sky-qgo | jonathanconway | JavaScript | Code | 64 | 162 | import { ADD_ITEM, DELETE_ITEM, TOGGLE_COMPLETION_OF_ITEM, TOGGLE_FILTER_HIDE_COMPLETED } from './constants';
export const addItem = content => {
return { type: ADD_ITEM, content };
};
export const deleteItem = id => {
return { type: DELETE_ITEM, id };
};
export const toggleCompletionOfItem = id => {
return { ... | 41,551 |
https://github.com/keoki33/oxford-comma-london-web-career-031119/blob/master/lib/oxford_comma.rb | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain | 2,019 | oxford-comma-london-web-career-031119 | keoki33 | Ruby | Code | 45 | 115 | def oxford_comma(array)
if array.length == 1
array.join
else if array.length == 2
num = array.pop
array << "and"
array << num
p array.join(" ")
else
last = array.pop
array << "and #{last}"
p array.join(", ")
end
end
end
#
# array = ["fiddleheads","okra","kohlrabi"]
# oxford_comma(array)
| 5,281 |
https://github.com/bruno-dogancic/spumbox/blob/master/initial_working_code/results_weights.m | Github Open Source | Open Source | MIT | 2,022 | spumbox | bruno-dogancic | MATLAB | Code | 150 | 499 | %% bc1.m
% For systems 3,11,19 (second, sixth and tenth (last) beams)
for j = 1:ns
if j == 3 || j == 11 || j == 19
if mod(j,2) == 1
figure()
bodemag(G(j).W1,'k',G(j).W1e,'-.r',G(j).W1s,'--g', {1e1,1e5})
end
end
end
% export_fig weights_c1_3.svg -painters
% export_fig wei... | 54,323 |
https://github.com/outfoxx/PotentCodables/blob/master/Package.swift | Github Open Source | Open Source | MIT | 2,023 | PotentCodables | outfoxx | Swift | Code | 219 | 1,012 | // swift-tools-version:5.4
//
// Package.swift
// PotentCodables
//
// Copyright © 2019 Outfox, inc.
//
//
// Distributed under the MIT License, See LICENSE for details.
//
import PackageDescription
// Limit Float16 to x86_64 on macOS or Linux
#if swift(>=5.5)
let pcDeps: [Target.Dependency] = [
"BigInt",
.... | 53,110 |
https://github.com/zhangnengxian/Learn-SpringBlade/blob/master/SpringBlade-Server/blade-common/src/main/java/org/springblade/common/tool/DateUtils.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | Learn-SpringBlade | zhangnengxian | Java | Code | 1,164 | 4,747 | package org.springblade.common.tool;
import lombok.SneakyThrows;
import org.springblade.common.entity.DateVo;
import org.springblade.core.tool.utils.Func;
import java.text.ParsePosition;
import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.util.*;
import java.util.st... | 12,532 |
https://github.com/hernanmd/Territorial/blob/master/repository/TerritorialData.package/TerritorialPopulationDensities.class/class/release.st | Github Open Source | Open Source | MIT | 2,022 | Territorial | hernanmd | null | Spoken | 18 | 41 | initialize-release
release
" See superimplementor's comment "
self log: 'Releasing ' , self class name.
RawCountryDensities := nil | 23,598 |
https://github.com/Rabih1996/jovo-framework/blob/master/jovo-platforms/jovo-platform-web/src/modules/WebPlatformCore.ts | Github Open Source | Open Source | Apache-2.0 | 2,020 | jovo-framework | Rabih1996 | TypeScript | Code | 83 | 265 | import { HandleRequest } from 'jovo-core';
import { CorePlatformCore } from 'jovo-platform-core';
import { WebApp, WebAppRequest, WebAppUser } from '..';
export class WebPlatformCore extends CorePlatformCore {
async init(handleRequest: HandleRequest): Promise<void> {
const requestObject = handleRequest.host.getR... | 43,205 |
https://github.com/reisraff/goinput/blob/master/input/nodes/float_node.go | Github Open Source | Open Source | MIT | 2,021 | goinput | reisraff | Go | Code | 25 | 115 | package nodes
import "github.com/reisraff/goinput/input/interfaces"
import "github.com/reisraff/goinput/input/constraints"
func CreateFloatNode() interfaces.NodeInterface {
node := FloatNode{}
node.SetRequired(true)
node.SetType("float")
node.AddConstraint(constraints.ConstraintType("float"))
ret... | 10,663 |
https://github.com/andgineer/http-stream-xml/blob/master/src/http_stream_xml/examples/http_stream_example.py | Github Open Source | Open Source | MIT | 2,023 | http-stream-xml | andgineer | Python | Code | 95 | 412 | """Illustrates usage of streamed XML (partial) parsing.
Gets gene's info from NCBI entrez API (PubMed)
https://www.ncbi.nlm.nih.gov/
"""
from typing import Union
from http_stream_xml.entrez import requests_retry_session
from http_stream_xml.xml_stream import XmlStreamExtractor
def get_gene_info(gene_id: Union[str, ... | 53,269 |
https://github.com/xuanhaoo/ready/blob/master/src/interview/company/mobile/MobileTest.java | Github Open Source | Open Source | MIT | null | ready | xuanhaoo | Java | Code | 458 | 1,073 | package interview.company.mobile;
import java.util.Arrays;
import java.util.Scanner;
/**
* @Author: liangxuanhao
* @Description:
* @Date: 2020年02月16日 18:28
*/
public class MobileTest {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
// System.out.println();... | 24,538 |
https://github.com/addcaa/weixin/blob/master/app/Admin/Controllers/MessageController.php | Github Open Source | Open Source | MIT | null | weixin | addcaa | PHP | Code | 286 | 1,139 | <?php
namespace App\Admin\Controllers;
use App\Model\Message\MessageModel;
use App\Http\Controllers\Controller;
use Encore\Admin\Controllers\HasResourceActions;
use Encore\Admin\Form;
use Encore\Admin\Grid;
use Encore\Admin\Layout\Content;
use Encore\Admin\Show;
class MessageController extends Controller
{
use H... | 51,732 |
https://github.com/Romvnly-Gaming/hostingbot.net/blob/master/structures/client.js | Github Open Source | Open Source | MIT | null | hostingbot.net | Romvnly-Gaming | JavaScript | Code | 192 | 373 | const baseUrl = "https://node2.hostingbot.net:4083/index.php";
/**
* The main hub for interacting with the HostingBot API, and the starting point for any interaction with the API.
* @returns {Object} The login information the client has handled, not really optimized for output.
*/
class Client {
constructor(args... | 18,032 |
https://github.com/dubenju/javay/blob/master/src/java/javay/sound/wav/WaveConstants.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | javay | dubenju | Java | Code | 110 | 274 | package javay.sound.wav;
public class WaveConstants {
static public int LENCHUNKDESCRIPTOR = 4;
static public int LENCHUNKSIZE = 4;
static public int LENWAVEFLAG = 4;
static public int LENFMTSUBCHUNK = 4;
static public int LENSUBCHUNK1SIZE = 4;
static public int LENAUDIOFORMAT = 2;
static public int LENNUMCHANN... | 42,650 |
https://github.com/pmaddi/CPSC458_Final-Project/blob/master/game.py | Github Open Source | Open Source | MIT | 2,015 | CPSC458_Final-Project | pmaddi | Python | Code | 921 | 3,264 | import cards
import hands
import logging
import random
import preflop_sim
import preflop_player
import sys
class bcolors:
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[0m'
BOLD = '\033[1m'
UNDERLINE = '\033[4m'
class ... | 37,238 |
https://github.com/OgzhnSlkr/DevelopersArticle/blob/master/DevelopersArticle.WebUI/BasePage.cs | Github Open Source | Open Source | MIT | null | DevelopersArticle | OgzhnSlkr | C# | Code | 68 | 223 | using DevelopersArticle.BLL;
using DevelopersArticle.BLL.Concrete;
using DevelopersArticle.DAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace DevelopersArticle.WebUI
{
public class BasePage : Page
{
... | 48,036 |
https://github.com/MEIXuYan/pvcnn/blob/master/modules/functional/grouping.py | Github Open Source | Open Source | MIT, Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,020 | pvcnn | MEIXuYan | Python | Code | 84 | 288 | from torch.autograd import Function
from modules.functional.backend import _backend
__all__ = ['grouping']
class Grouping(Function):
@staticmethod
def forward(ctx, features, indices):
"""
:param ctx:
:param features: features of points, FloatTensor[B, C, N]
:param indices: ne... | 23,340 |
https://github.com/btwiuse/k0s/blob/master/pkg/apiserver/routes/BUILD.bazel | Github Open Source | Open Source | MIT | 2,023 | k0s | btwiuse | Starlark | Code | 29 | 264 | load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "go_default_library",
srcs = [
"index.go",
"version.go",
],
importpath = "k0s.io/pkg/apiserver/routes",
visibility = ["//visibility:public"],
deps = [
"//pkg/apiserver/mux:go_default_library",
... | 34,229 |
https://github.com/rjansen/l/blob/master/scripts/make/go/lint/Makefile | Github Open Source | Open Source | MIT | 2,019 | l | rjansen | Makefile | Code | 46 | 225 | GOLINT_VERSION := master
GOLINT_URL := golang.org/x/lint/golint@$(GOLINT_VERSION)
GOLINT_BIN := golint
GOLINT := $(or $(shell which $(GOLINT_BIN)),$(GOLINT_BIN))
.PHONY: golint.install
golint.install: $(GOLINT)
@echo "$(NAME)@$(BUILD) golint.install $(GOLINT)"
.PHONY: golint.uninstall
golint.uninstal... | 30,741 |
https://github.com/aquamatthias/zio-sqs/blob/master/src/test/scala/zio/sqs/ZioSqsSpec.scala | Github Open Source | Open Source | Apache-2.0 | null | zio-sqs | aquamatthias | Scala | Code | 339 | 1,179 | package zio.sqs
import software.amazon.awssdk.services.sqs.model.Message
import zio._
import zio.clock.Clock
import zio.duration._
import zio.random.Random
import zio.sqs.ZioSqsMockServer._
import zio.sqs.producer.{ Producer, ProducerEvent }
import zio.sqs.serialization.Serializer
import zio.stream.Sink
import zio.tes... | 29,116 |
https://github.com/schebotar/Rehau.Sku.Assist/blob/master/src/AddIn/SkuExtensions.cs | Github Open Source | Open Source | MIT | null | Rehau.Sku.Assist | schebotar | C# | Code | 22 | 88 | using System.Text.RegularExpressions;
namespace RehauSku
{
static class SkuExtensions
{
public static bool IsRehauSku(this string line)
{
return Regex.IsMatch(line, @"^[1]\d{6}[1]\d{3}$");
}
}
} | 11,957 |
https://github.com/ord0077/wewatch/blob/master/database/migrations/2021_04_08_184822_create_project_health_compliances_table.php | Github Open Source | Open Source | MIT | null | wewatch | ord0077 | PHP | Code | 56 | 252 | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateProjectHealthCompliancesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create... | 25,431 |
https://github.com/MrElectrify/BlacklightFramework/blob/master/BlacklightSockets/include/Networking/Exception.h | Github Open Source | Open Source | MIT | 2,019 | BlacklightFramework | MrElectrify | C++ | Code | 52 | 168 | #ifndef BLACKLIGHT_NETWORKING_EXCEPTION_H_
#define BLACKLIGHT_NETWORKING_EXCEPTION_H_
/*
Defines network exception, derived from std::runtime_error
4/18/19 23:48
*/
#include <stdexcept>
namespace Blacklight
{
namespace Networking
{
/*
This exception is thrown by anything networking-related
*/
class Excepti... | 29,929 |
https://github.com/dangel101/ovirt-engine/blob/master/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/ovf/OvfOvaTemplateWriter.java | Github Open Source | Open Source | Apache-2.0 | null | ovirt-engine | dangel101 | Java | Code | 86 | 540 | package org.ovirt.engine.core.utils.ovf;
import org.ovirt.engine.core.common.businessentities.OriginType;
import org.ovirt.engine.core.common.businessentities.VmTemplate;
import org.ovirt.engine.core.common.businessentities.storage.FullEntityOvfData;
import org.ovirt.engine.core.common.osinfo.OsRepository;
import org.... | 24,080 |
https://github.com/poteat/type-it/blob/master/test/types/tests/mixed/nested/testInferenceOnDeeplyNestedTypes.ts | Github Open Source | Open Source | MIT | 2,020 | type-it | poteat | TypeScript | Code | 50 | 131 | import { typeIt } from "../../../../../src/utility/core/typeIt";
export function testInferenceOnDeeplyNestedTypes() {
const value = [{ x: { y: [{ z: 42 }] } }, "foo"] as unknown;
const type = [{ x: { y: [{ z: 42 }] } }, "foo"] as const;
if (typeIt(value, type)) {
value[0].x.y[0].z.toExponential();
value[... | 48,781 |
https://github.com/porcelli-forks/uberfire/blob/master/uberfire-backend/uberfire-backend-server/src/main/java/org/uberfire/backend/server/authz/AuthorizationPolicyVfsStorage.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | uberfire | porcelli-forks | Java | Code | 489 | 1,645 | /*
* Copyright 2016 Red Hat, Inc. and/or its affiliates.
*
* 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 a... | 15,888 |
https://github.com/LLNL/fudge/blob/master/brownies/BNL/inter/spectra/__init__.py | Github Open Source | Open Source | BSD-3-Clause, LicenseRef-scancode-unknown-license-reference | 2,023 | fudge | LLNL | Python | Code | 458 | 1,731 | from brownies.BNL.inter.consts import *
from brownies.BNL.utilities.XYs import *
import json
with open(os.sep.join([INTERDIR, 'spectra', 'spectra.json']), mode='r') as spectrafile:
spectra = json.load(spectrafile)
def get_realpath(path):
realpath = path
if not os.path.exists(realpath):
realpath =... | 7,918 |
https://github.com/y-moriya/sower/blob/master/lib/file_log_cnt.pl | Github Open Source | Open Source | BSD-2-Clause | 2,023 | sower | y-moriya | Perl | Code | 166 | 763 | package SWBoaLogCount;
#----------------------------------------
# SW-Boa Log Count Driver
#----------------------------------------
#----------------------------------------
# コンストラクタ
#----------------------------------------
sub new {
my ( $class, $sow, $vil, $turn, $mode ) = @_;
require "$sow->{'cfg'}->{'D... | 54,238 |
https://github.com/sash/blockchain-network-example/blob/master/solidity/last-invoker.sol | Github Open Source | Open Source | MIT | null | blockchain-network-example | sash | Solidity | Code | 41 | 131 | pragma solidity ^0.4.22;
contract LastInvoker {
address private lastInvoker;
constructor() public{
lastInvoker = 0x0;
}
event LastInvokerChanged(address newInvoker);
function getLastInvoker() public returns (bool, address)
{
address previousInvoker = lastInvoker;
lastInv... | 13,606 |
https://github.com/BrokenEarthDev/EventBus/blob/master/src/main/java/me/brokenearthdev/eventbus/utils/Consumer.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | EventBus | BrokenEarthDev | Java | Code | 193 | 339 | /*
* Copyright 2018 github.com/BrokenEarthDev
* 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... | 21,296 |
https://github.com/saineshwar/VueTicket/blob/master/VueTicketCore/TicketCore.Web/Areas/User/Views/MyTicket/AllDeletedTickets.cshtml | Github Open Source | Open Source | MIT | 2,022 | VueTicket | saineshwar | C# | Code | 628 | 2,916 | @using X.PagedList.Mvc.Core;
@using X.PagedList;
@using X.PagedList.Web.Common
@using TicketCore.Web.Resources
@model TicketCore.ViewModels.Tickets.Grids.AgentTicketGrid
@inject LocalizationService LocalizationService
@{
Layout = "_LayoutAgent";
}
<form autocomplete="off" asp-controller="MyTicket" id="frmSearch"... | 8,275 |
https://github.com/rewagner87/docker-gc/blob/master/src/DockerGC/ByDateRecyclingStrategy.cs | Github Open Source | Open Source | MIT | 2,021 | docker-gc | rewagner87 | C# | Code | 192 | 726 | namespace DockerGC
{
using System;
using System.Linq;
using System.Collections.Generic;
using Docker.DotNet;
using Docker.DotNet.Models;
public class ByDateRecyclingStrategy : RecyclingStrategy
{
public int DaysBeforeDeletion;
public ImageDeletionOrderType ImageDeletionOrde... | 47,256 |
https://github.com/pavsavov/HouseCholacite/blob/master/src/House.Web/House.Web/Infrastructure/Extensions/ServiceCollectionExtension.cs | Github Open Source | Open Source | BSL-1.0 | null | HouseCholacite | pavsavov | C# | Code | 68 | 271 | using House.Web.DataAccess;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Configuration;
using House.Web.Services;
using MongoDB.Driver;
namespace House.Web.Infrastructure.Extensions
{
public static class ServiceCollectionExtension
{
/// <summary>
/// Extension met... | 445 |
https://github.com/d0scoo1/naga_contracts/blob/master/mainnet/contracts/0xb2e5afcdac6e0e1f37ce0027e08dcb5fad31db2b_TransferTest.sol | Github Open Source | Open Source | MIT | 2,023 | naga_contracts | d0scoo1 | Gerber Image | Code | 510 | 892 | // SPDX-License-Identifier: MIT
pragma solidity 0.8.3;
/**
* @title ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/20
*/
interface IERC20 {
/**
* Transfer token for a specified address
* @param to The address to transfer to.
* @param value The amount to be transferred.
*/
... | 43,070 |
https://github.com/VseMiRaki/battleship/blob/master/battleship-client/src/_containers/OptionsContainer.js | Github Open Source | Open Source | MIT | null | battleship | VseMiRaki | JavaScript | Code | 57 | 154 | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { setOrientation } from '../_actions';
import Options from '../_components/Options';
class OptionsContainer extends React.Component {
render() {
return (
<Options clickHandler={this.props.se... | 35,147 |
https://github.com/xuedong/leet-code/blob/master/Problems/Algorithms/48. Rotate Image/RotateImage.kt | Github Open Source | Open Source | MIT | 2,023 | leet-code | xuedong | Kotlin | Code | 46 | 166 | class Solution {
fun rotate(matrix: Array<IntArray>): Unit {
val n = matrix.size
for (i in 0 until n/2) {
for (j in i until n-i-1) {
var temp = matrix[i][j]
matrix[i][j] = matrix[n-j-1][i]
matrix[n-j-1][i] = matrix[n-i-1][n-j-1]
... | 8,177 |
https://github.com/hardeepvicky/Git_to_FTP/blob/master/php/index.php | Github Open Source | Open Source | MIT | 2,017 | Git_to_FTP | hardeepvicky | PHP | Code | 70 | 315 | <?php
$git = new GitUtility(GIT_PATH);
$branch_name = $git->getCurrentBranchName();
$commits = $git->getCommits($branch_name);
$sync_csv = new CsvUtility(SYNC_FILE);
$sync_commit_list = $sync_csv->getList("commit", "commit");
foreach($commits as $k => $commit)
{
if(LAST_SYNC_DATETME)
{
if (DateUtili... | 28,521 |
https://github.com/CodingItWrong/json-api-live-updates/blob/master/rails-action-cable/frontend/app/components/new-todo-form.hbs | Github Open Source | Open Source | MIT | null | json-api-live-updates | CodingItWrong | null | Spoken | 13 | 60 | <form {{on 'submit' this.add}}>
<Input
@value={{this.name}}
type="text"
placeholder="New Todo"
/>
<button type="submit">Add</button>
</form>
| 18,025 |
https://github.com/toyomoly/NDKSample/blob/master/app/src/main/java/com/exsample/toyomoly/ndksample/SearchRouteCpp.java | Github Open Source | Open Source | MIT | 2,016 | NDKSample | toyomoly | Java | Code | 58 | 186 | package com.exsample.toyomoly.ndksample;
import android.content.res.AssetManager;
public class SearchRouteCpp {
static {
System.loadLibrary("hello");
}
protected native String calcByCpp(AssetManager assetManager, double stLat, double stLng, double edLat, double edLng);
AssetManager assetMan... | 23,521 |
https://github.com/FRC-7464-ORION/FRC-7464-ORION--PublicRobotCode/blob/master/doxygen_output/RobotCode_and_Libraries/html/class_mecanum_drive_kinematics_test.js | Github Open Source | Open Source | BSD-3-Clause | 2,020 | FRC-7464-ORION--PublicRobotCode | FRC-7464-ORION | JavaScript | Code | 30 | 263 | var class_mecanum_drive_kinematics_test =
[
[ "kinematics", "class_mecanum_drive_kinematics_test.html#a2f16f95dac76b4e0223cfc957c5ebcdf", null ],
[ "m_bl", "class_mecanum_drive_kinematics_test.html#a3f07527c0507f7b78d9e12f38217a597", null ],
[ "m_br", "class_mecanum_drive_kinematics_test.html#a0b6f7866ce8bd... | 27,099 |
https://github.com/minhloi196/KhoaLuan/blob/master/src/views/Base/Modal/ModalExportFinancialHealth.js | Github Open Source | Open Source | MIT | null | KhoaLuan | minhloi196 | JavaScript | Code | 660 | 2,979 | import React, { Component } from 'react';
import {
Button,
Modal,
ModalHeader,
ModalBody,
ModalFooter,
Form,
FormGroup,
Label,
Input,
Alert
} from 'reactstrap';
import ReactExport from "react-data-export";
const ExcelFile = ReactExport.ExcelFile;
const ExcelSheet = ReactExport.ExcelFile.ExcelSheet;... | 4,085 |
https://github.com/hademen/xtoon-cloud-ddd/blob/master/xtoon-service/xtoon-sys/xtoon-sys-server/src/main/java/com/xtoon/cloud/sys/application/command/RegisterTenantCommand.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | xtoon-cloud-ddd | hademen | Java | Code | 132 | 550 | package com.xtoon.cloud.sys.application.command;
import com.xtoon.cloud.common.web.util.validator.group.AddGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
/**
* 注册租户Command
*
* @author haoxin
* @date ... | 31,620 |
https://github.com/runspired/ember-models-table/blob/master/tests/dummy/app/templates/examples/select-rows-with-checkboxes.hbs | Github Open Source | Open Source | MIT | null | ember-models-table | runspired | null | Spoken | 97 | 500 | <h4>Select rows with checkboxes <small>simple table</small></h4>
{{models-table data=data columns=columns multipleSelect=true selectedItems=selectedItems}}
<div class="row">
<div class="col-md-6">
<p><code>select-row-checkbox</code></p>
<pre><code class="language-javascript">import Component from '@ember/comp... | 30,373 |
https://github.com/dato1357/corert/blob/master/src/System.Private.Reflection.Execution/src/Internal/Reflection/Execution/ReflectionExecutionLogger.cs | Github Open Source | Open Source | MIT | 2,016 | corert | dato1357 | C# | Code | 76 | 202 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace Internal.Reflection.Execution
{
using global::System;
using global::System.Reflection;
using ... | 39,944 |
https://github.com/benahmetcelik/Laravel-CMS-System/blob/master/public/web/assets/constructo2/js/plugins/script-plugins.js | Github Open Source | Open Source | MIT | null | Laravel-CMS-System | benahmetcelik | JavaScript | Code | 267 | 1,413 | jQuery(document).ready(function(){
jQuery('.testimonial_slider_wrapper').flexslider({
animation: "fade",
animationLoop: true,
itemMargin: 0,
minItems: 1,
maxItems: 1,
slideshow: true,
controlNav: true,
smoothHeight: false,
pauseOnHover: true,
direc... | 4,883 |
https://github.com/snxx-lppxx/ide-tools/blob/master/vscode/src/app.ts | Github Open Source | Open Source | MIT | 2,021 | ide-tools | snxx-lppxx | TypeScript | Code | 187 | 566 | // Copyright (C) 2021 Toitware ApS. All rights reserved.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.
import { ThemeIcon, TreeItem, TreeItemCollapsibleState } from "vscode";
import { Device, RelatedDevice } from "./device";
export interface RelatedApp {
ap... | 45,730 |
https://github.com/mraad/spark-gdb/blob/master/src/main/scala/com/esri/udt/PolylineMType.scala | Github Open Source | Open Source | Apache-2.0 | 2,021 | spark-gdb | mraad | Scala | Code | 284 | 839 | package com.esri.udt
import com.esri.core.geometry._
import org.apache.spark.sql.types.SQLUserDefinedType
/**
* PolylineMType
*
* @param xyNum each element contains the number of xy pairs to read for a part
* @param xyArr sequence of xy elements
*/
@SQLUserDefinedType(udt = classOf[PolylineMUDT])
class Poly... | 13,101 |
https://github.com/wearefractal/singly/blob/master/dist/singly.js | Github Open Source | Open Source | MIT | 2,013 | singly | wearefractal | JavaScript | Code | 259 | 768 | // Generated by CoffeeScript 1.4.0
var apiKey, cookie, getParam, request, singly, tok;
cookie = require('cookie');
request = require('superagent');
getParam = function(param) {
var match, re, url;
url = window.location.hash;
re = new RegExp("#" + param + "=([^&]+)(&|$)");
match = url.match(re);
if (!((matc... | 33,705 |
https://github.com/betsaleel777/garage/blob/master/resources/js/components/magasins/automatique/TreeView.vue | Github Open Source | Open Source | MIT | 2,021 | garage | betsaleel777 | Vue | Code | 501 | 1,988 | <template>
<div class="container">
<div class="row">
<div v-for="data in treeData" class="col-md-4">
<vue-custom-scrollbar class="scrollarea">
<vue-tree-list
@click="onClick"
@change-name="onChangeName"
@delete-node="onDel"
@add-node="onAddNode"
:model="data"
default-t... | 31,003 |
https://github.com/smaktacular/httpyac/blob/master/src/actions/responseAsVariableAction.ts | Github Open Source | Open Source | MIT | 2,021 | httpyac | smaktacular | TypeScript | Code | 241 | 793 | import { log } from '../io';
import { ActionType, HttpRegionAction, ProcessorContext } from '../models';
import { decodeJWT, isString, JWTToken, toEnvironmentKey } from '../utils';
import { isValidVariableName } from './javascriptAction';
export class ResponseAsVariableAction implements HttpRegionAction {
id = Actio... | 54,263 |
https://github.com/idaholab/raven/blob/master/ravenframework/Optimizers/Optimizer.py | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-warranty-disclaimer, BSD-2-Clause, BSD-3-Clause | 2,023 | raven | idaholab | Python | Code | 2,716 | 6,467 | # Copyright 2017 Battelle Energy Alliance, 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 required by applicable law or agreed t... | 23,192 |
https://github.com/Makyy/web-sp2-ds1-student/blob/master/.gitmodules | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-other-permissive | 2,019 | web-sp2-ds1-student | Makyy | Git Config | Code | 11 | 47 | [submodule "ds1-core"]
path = ds1-core
url = https://github.com/madostal/web-sp2-ds1-core
branch = master
| 37,915 |
https://github.com/gsaielli/Serenity/blob/master/Serenity.Scripts/CoreLib/Q/Q.TypeSystem.ts | Github Open Source | Open Source | MIT | 2,021 | Serenity | gsaielli | TypeScript | Code | 1,421 | 3,707 | // @ts-ignore check for global
let globalObj: any = typeof (global) !== "undefined" ? global : (typeof (window) !== "undefined" ? window : (typeof (self) !== "undefined" ? self : this));
namespace Q {
export interface Type {
prototype: any;
name?: string;
__typeName?: string;
__me... | 50,526 |
https://github.com/dilawar/SinghAndBhalla_CaMKII_SubunitExchange_2018/blob/master/exp_effect_of_removing_active_subunit/CMakeLists.txt | Github Open Source | Open Source | MIT | 2,018 | SinghAndBhalla_CaMKII_SubunitExchange_2018 | dilawar | CMake | Code | 338 | 1,467 | cmake_minimum_required(VERSION 2.8)
project(CaMKII_PP1_Switch LANGUAGES NONE)
find_package(PythonInterp REQUIRED)
## Parameters
# Set these parameters run the model
set( NUMBER_OF_CAMKII 6 )
set( NUMBER_OF_PP1 26 )
# Run time in days.
set( RUN_TIME 100 )
set( NUMBER_OF_SWITCHES 1 )
#set( VOXEL_LENGTH 125e-9 )
set( VO... | 5,926 |
https://github.com/gyantal/SqCore/blob/master/src/Tools/agy/open_urls_together/src/main.rs | Github Open Source | Open Source | MIT | 2,023 | SqCore | gyantal | Rust | Code | 107 | 517 | use std::{process::Command, thread, time::Duration};
fn main() {
let sleep_in_msec : u32 = 300; // 50 was not enough for digg.com and channel9, 100msec was not enough on 2012-07-18, 150mset was not enough on 2012-07-19
open_in_browser("https://24.hu", sleep_in_msec);
open_in_browser("https://www.ft.com", ... | 10,955 |
https://github.com/b-cube/bcube-triplestore/blob/master/ttl/8b/8bdbec028515feffdd2d1a11e2824f232c993029_triples.ttl | Github Open Source | Open Source | MIT | 2,016 | bcube-triplestore | b-cube | Turtle | Code | 347 | 2,030 | @prefix bcube: <http://purl.org/BCube/#> .
@prefix bibo: <http://purl.org/ontology/bibo/#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix dcat: <http://www.w3.org/TR/vocab-dcat/#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix esip: <http://purl.org/esip/#> .
@prefix foaf: <http://xmlns.com/foaf/0... | 54,033 |
https://github.com/Bharat23/vscode/blob/master/extensions/typescript-language-features/src/features/implementationsCodeLens.ts | Github Open Source | Open Source | MIT | 2,020 | vscode | Bharat23 | TypeScript | Code | 267 | 957 | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | 23,874 |
https://github.com/newky2k/dscomponents/blob/master/Samples/Android/DScomponentsSample/DSComponentsSample-Android.sln | Github Open Source | Open Source | MIT | 2,022 | dscomponents | newky2k | null | Spoken | 232 | 1,936 |
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DSoft.Datatypes", "..\..\..\src\DSoft.Datatypes\DSoft.Datatypes.csproj", "{43D8A430-2E61-4CEE-B42A-61DC175307B6}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DSoft.... | 9,022 |
https://github.com/Lcfvs/generics/blob/master/lib/types/date/addHours.js | Github Open Source | Open Source | MIT | 2,020 | generics | Lcfvs | JavaScript | Code | 25 | 76 | import number from '../number/number.js'
import parse from './parse.js'
export default function addHours (date, hours) {
const copy = parse(date)
copy.setHours(copy.getHours() + number.parse(hours))
return parse(copy)
}
| 3,040 |
https://github.com/violinist-dev/phony/blob/master/test/fixture/mock-generator/relaxed-keywords/builder.php | Github Open Source | Open Source | MIT | 2,022 | phony | violinist-dev | PHP | Code | 19 | 82 | <?php
use Eloquent\Phony\Test\TestInterfaceWithKeywordMethods;
$builder = $factory->create(
[
TestInterfaceWithKeywordMethods::class,
[
'throw' => function () {},
],
]
);
return $builder->named('MockGeneratorRelaxedKeywords');
| 52,214 |
https://github.com/drowinternet/mage/blob/master/Mage.Sets/src/mage/cards/r/Riddlesmith.java | Github Open Source | Open Source | MIT | 2,020 | mage | drowinternet | Java | Code | 98 | 384 |
package mage.cards.r;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.common.SpellCastControllerTriggeredAbility;
import mage.abilities.effects.common.DrawDiscardControllerEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubTyp... | 22,578 |
https://github.com/warmchang/lazydocker/blob/master/pkg/gui/views.go | Github Open Source | Open Source | MIT | 2,023 | lazydocker | warmchang | Go | Code | 614 | 2,190 | package gui
import (
"os"
"github.com/fatih/color"
"github.com/jesseduffield/gocui"
"github.com/samber/lo"
)
// See https://github.com/xtermjs/xterm.js/issues/4238
// VSCode is soon to fix this in an upcoming update.
// Once that's done, we can scrap the HIDE_UNDERSCORES variable
var (
underscoreEnvChecked bool... | 38,750 |
https://github.com/DeviceConnect/DeviceConnect-Android/blob/master/dConnectDevicePlugin/dConnectDevicePluginSDK/dconnect-device-plugin-sdk/src/main/aidl/org/deviceconnect/android/IDConnectPlugin.aidl | Github Open Source | Open Source | MIT, Apache-2.0 | 2,023 | DeviceConnect-Android | DeviceConnect | null | Spoken | 24 | 95 | // IDConnectPlugin.aidl
package org.deviceconnect.android;
import android.content.Intent;
import org.deviceconnect.android.IDConnectCallback;
interface IDConnectPlugin {
void registerCallback(in IDConnectCallback callback);
void sendMessage(in Intent message);
ParcelFileDescriptor readFileDescriptor(in... | 27,180 |
https://github.com/Rawaatrad/Valravn/blob/master/src/Shared/Timer.h | Github Open Source | Open Source | MIT | 2,021 | Valravn | Rawaatrad | C++ | Code | 225 | 842 | //
// Created by alro on 6/12/2020.
//
#ifndef MYPROJECT_TIMER_H
#define MYPROJECT_TIMER_H
#include <iostream>
#include <thread>
#include <chrono>
#include <memory>
using namespace std;
template <typename Functor>
class Timer {
bool clear = false;
std::unique_ptr<std::thread> task = nullptr;
bool joi... | 33,191 |
https://github.com/NiordOrg/niord/blob/master/niord-model/src/main/java/org/niord/model/message/CategoryVo.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | niord | NiordOrg | Java | Code | 315 | 864 | /*
* Copyright 2016 Danish Maritime Authority.
*
* 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 ... | 35,935 |
https://github.com/kngfjsr/play-scala-ddd-sample/blob/master/application/app/com/pray/application/service/AuthenticationService.scala | Github Open Source | Open Source | Apache-2.0 | null | play-scala-ddd-sample | kngfjsr | Scala | Code | 83 | 272 | package com.pray.application.service
import play.api.mvc._
import scala.concurrent.Future
class AuthenticatedRequest[A](request: Request[A], val user: String)
extends WrappedRequest[A](request)
trait AuthenticationService {
def executeInvokeBlock[A](request: Request[A],
block: Authent... | 12,166 |
https://github.com/pnjeffries/Nucleus/blob/master/Nucleus/Nucleus/Model/ResultsCase.cs | Github Open Source | Open Source | MIT, LGPL-2.1-only | 2,023 | Nucleus | pnjeffries | C# | Code | 71 | 185 | using Nucleus.Model.Loading;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Nucleus.Model
{
/// <summary>
/// Abstract base class for cases which produce results
/// </summary>
[Serializable]
public abstract class Resul... | 50,960 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.