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/tandr/esjc/blob/master/src/test/java/com/github/msemys/esjc/ITReadAllEventsBackwardWithLinkToDeletedEvents.java
Github Open Source
Open Source
MIT
2,022
esjc
tandr
Java
Code
73
323
package com.github.msemys.esjc; import org.junit.Test; import static org.junit.Assert.*; public class ITReadAllEventsBackwardWithLinkToDeletedEvents extends AbstractEventStoreTest { public ITReadAllEventsBackwardWithLinkToDeletedEvents(EventStore eventstore) { super(eventstore); } @Test pub...
1,372
https://github.com/esendex/esendex-java-sdk/blob/master/src/main/java/esendex/sdk/java/model/transfer/LinkDto.java
Github Open Source
Open Source
BSD-3-Clause
2,016
esendex-java-sdk
esendex
Java
Code
22
112
package esendex.sdk.java.model.transfer; import com.thoughtworks.xstream.annotations.XStreamAlias; import com.thoughtworks.xstream.annotations.XStreamAsAttribute; @XStreamAlias("link") public class LinkDto { @XStreamAlias("rel") @XStreamAsAttribute private String rel; @XStreamAlias("href") @XStr...
1,083
https://github.com/rbwinslow/hq/blob/master/test/hquery/test_strings.py
Github Open Source
Open Source
MIT
2,022
hq
rbwinslow
Python
Code
31
148
from test.common_test_util import expected_result from test.hquery.hquery_test_util import query_html_doc def test_escapes_work_in_string_literals(): assert query_html_doc('', '"foo
bar"') == expected_result(""" foo bar""") assert query_html_doc('', "'foo
bar'") == expected_result(""" foo ...
22,243
https://github.com/bcongdon/advent_of_code_2019/blob/master/Day1-9/day3.rs
Github Open Source
Open Source
MIT
2,020
advent_of_code_2019
bcongdon
Rust
Code
208
708
use std::collections::{HashMap, HashSet}; use std::fs::File; use std::io::{self, BufRead}; struct Instruction { dx: i32, dy: i32, dist: i32, } fn parse_instruction(w: &String) -> Instruction { let (dx, dy) = match w.chars().nth(0).unwrap() { 'U' => (0, 1), 'D' => (0, -1), 'L' =...
17,179
https://github.com/ferrisgram/ferrisgram/blob/master/src/types/inline_query_result_mpeg_4_gif.rs
Github Open Source
Open Source
MIT
2,022
ferrisgram
ferrisgram
Rust
Code
298
803
// WARNING: THIS CODE IS AUTOGENERATED. // DO NOT EDIT!!! use crate::types::{InlineKeyboardMarkup, InputMessageContent, MessageEntity}; use serde::{Deserialize, Serialize}; /// Represents a link to a video animation (H.264/MPEG-4 AVC video without sound). By default, this animated MPEG-4 file will be sent by the user...
14,971
https://github.com/naveen17797/extruct/blob/master/extruct/__init__.py
Github Open Source
Open Source
BSD-3-Clause
2,022
extruct
naveen17797
Python
Code
29
83
from ._extruct import SYNTAXES, extract from .jsonld import JsonLdExtractor from .rdfa import RDFaExtractor from .w3cmicrodata import MicrodataExtractor from .opengraph import OpenGraphExtractor from .microformat import MicroformatExtractor from .xmldom import XmlDomHTMLParser
21,960
https://github.com/VLOGroup/bp-layers/blob/master/ops/include/error_util.h
Github Open Source
Open Source
MIT
2,022
bp-layers
VLOGroup
C
Code
125
375
#pragma once #include <cuda.h> #include <cuda_runtime.h> //#include "cudnn.h" #include "stdio.h" #include "stdlib.h" #define CUDA_ERROR_CHECK #define cudaSafeCall( err ) __cnnCudaSafeCall( err, __FILE__, __LINE__ ) #define cudnnSafeCall( err ) __cnnCudnnSafeCall( err, __FILE__, __LINE__ ) inline void __cnnCudaSafeCa...
28,475
https://github.com/Kaharonus/TVS_Player/blob/master/TVSPlayer/Controls/ActorUserControl.xaml.cs
Github Open Source
Open Source
MIT
2,021
TVS_Player
Kaharonus
C#
Code
112
390
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animatio...
39,775
https://github.com/felixklauke/avalance/blob/master/server/src/test/java/de/felixklauke/avalance/server/http/NettyRouterRequestTest.java
Github Open Source
Open Source
MIT
2,019
avalance
felixklauke
Java
Code
53
266
package de.felixklauke.avalance.server.http; import static org.junit.jupiter.api.Assertions.*; import io.netty.handler.codec.http.DefaultHttpRequest; import io.netty.handler.codec.http.HttpMethod; import io.netty.handler.codec.http.HttpRequest; import io.netty.handler.codec.http.HttpVersion; import org.junit.jupiter....
1,675
https://github.com/Exas317/shopping-cart-cdm/blob/master/main.py
Github Open Source
Open Source
Apache-2.0
null
shopping-cart-cdm
Exas317
Python
Code
58
177
from datetime import datetime import math from multiprocessing import Pool from multiprocessing import cpu_count import time SAMPLE = "Something-CHange-3" CPU_UTIL = 0.01 def f(x): while True: startTime = datetime.now() while (datetime.now() - startTime).total_seconds() < CPU_UTIL: math.factorial...
25,684
https://github.com/dp304/z88dk/blob/master/examples/banked/bank2.c
Github Open Source
Open Source
ClArtistic
2,022
z88dk
dp304
C
Code
29
87
#include <stdio.h> #include "banking.h" #ifdef __SPECTRUM #pragma bank 4 #else #pragma bank 2 #endif int func_bank2() { // printf is in common code printf("Printing from bank2\n"); return func_bank3(12); }
41,845
https://github.com/brandond/lambda-harness/blob/master/lambda_harness/cli.py
Github Open Source
Open Source
Apache-2.0
null
lambda-harness
brandond
Python
Code
483
1,750
from __future__ import print_function from awscli.paramfile import get_paramfile, LOCAL_PREFIX_MAP, ResourceLoadingError from pprint import pprint from .extractor import Extractor from .slicer import Slicer import click import json import time import imp import sys import os import re import io VARIABLE_VAL_PATTERN = ...
37,829
https://github.com/EthanDelong/CsvHelper/blob/master/src/Timer.java
Github Open Source
Open Source
MIT
null
CsvHelper
EthanDelong
Java
Code
355
763
//*******************************************************// // Ethan DeLong & Joseph Boehme // // CIS 112 // // Professor Wertz // // 6 December 2019 // // ...
32,693
https://github.com/14ms/Minecraft-Disclosed-Source-Modifications/blob/master/Scov 030121/Scov/value/util/NumberClamper.java
Github Open Source
Open Source
Unlicense
2,022
Minecraft-Disclosed-Source-Modifications
14ms
Java
Code
40
92
package Scov.value.util; public class NumberClamper { public static <T extends Number> T clamp(final T value, final T min, final T max) { return (((Comparable) value).compareTo(min) < 0) ? min : ((((Comparable) value).compareTo(max) > 0) ? max : value); } }
33,664
https://github.com/Christina-Kang/azure-sdk-for-python/blob/master/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/network_interface_reference_py3.py
Github Open Source
Open Source
MIT
2,022
azure-sdk-for-python
Christina-Kang
Python
Code
126
274
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
42,420
https://github.com/Lenovezhou/Screenshow/blob/master/Assets/Scripts/Promotion/redact/RedactMenu.cs
Github Open Source
Open Source
Apache-2.0
null
Screenshow
Lenovezhou
C#
Code
64
172
using UnityEngine; using System.Collections; public class RedactMenu : MonoBehaviour { public GameObject[] TargetViews; // Use this for initialization void Start () { } // Update is called once per frame void Update () { } public void OnChange_toggle(GameObject obj) { for (int i = ...
3,548
https://github.com/Dialectik/storehouse/blob/master/views/product/add.php
Github Open Source
Open Source
BSD-3-Clause
null
storehouse
Dialectik
PHP
Code
76
285
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; use yii\web\View; use app\models\Product; use app\models\ProductRecord; use yii\helpers\VarDumper; /* @var $this yii\web\View */ /* @var $product app\models\Product */ /* @var $form ActiveForm */ $this->title = 'Добавление товарной позиции'; $this->params['brea...
22,899
https://github.com/42up/easy_weibo/blob/master/lib/easy_weibo/configuration.rb
Github Open Source
Open Source
MIT
null
easy_weibo
42up
Ruby
Code
22
67
module EasyWeibo class Configuration attr_accessor :app_key, :app_secret, :redirect_uri def initialize @app_key = "" @app_secret = "" @redirect_uri = "" end end end
9,807
https://github.com/harryranakl/otterscan/blob/master/src/SourcifyMenu.tsx
Github Open Source
Open Source
MIT
2,022
otterscan
harryranakl
TypeScript
Code
182
674
import React from "react"; import { Menu } from "@headlessui/react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faBars } from "@fortawesome/free-solid-svg-icons/faBars"; import { SourcifySource } from "./url"; import { useAppConfigContext } from "./useAppConfig"; const SourcifyMenu: Rea...
35,262
https://github.com/thegrinder/redux-notifications/blob/master/src/components/NotificationsContext/useNotification.ts
Github Open Source
Open Source
MIT
2,022
redux-notifications
thegrinder
TypeScript
Code
37
81
import { useContext } from 'react'; import { NotificationsContext } from './NotificationContext'; export const useNotification = () => { const notificationsContext = useContext(NotificationsContext); if (!notificationsContext) { throw new Error('You should useNotification inside NotificationsProvider'); } ...
26,339
https://github.com/writeameer/RightScale.netClient.core/blob/master/src/RightScale.netClient.core/RightScale.netClient/VolumeType.cs
Github Open Source
Open Source
Apache-2.0
null
RightScale.netClient.core
writeameer
C#
Code
592
1,621
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RightScale.netClient { /// <summary> /// A VolumeType describes the type of volume particularly the size. /// MediaType Reference: http://reference.rightscale.com/api1.5/media_type...
40,154
https://github.com/brianchowlab/BcLOV4-FEM/blob/master/FELICITY/Code_Generation/Matrix_Assembly/Unit_Test/Hessian/TopDim_1_GeoDim_2/Scratch_Dir/C_code_frag.c
Github Open Source
Open Source
MIT
null
BcLOV4-FEM
brianchowlab
C
Code
6
57
A0[0][0] = FELICITYVARNAMEABC000001XYZ+FELICITYVARNAMEABC000002XYZ; A0[1][0] = FELICITYVARNAMEABC000003XYZ;
22,437
https://github.com/Tanque40/ITAMSportsWPF/blob/master/CSharp/CalculadoraCientPlus/CalculadoraCientPlus/CalculadoraCientPlus/MainWindow.xaml.cs
Github Open Source
Open Source
MIT
null
ITAMSportsWPF
Tanque40
C#
Code
543
1,914
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging;...
41,195
https://github.com/zzhcai/CandHCRM/blob/master/backend/src/main/java/candh/crm/repository/UserRepository.java
Github Open Source
Open Source
MIT
2,022
CandHCRM
zzhcai
Java
Code
106
466
package candh.crm.repository; import candh.crm.model.User; import org.springframework.data.mongodb.repository.Aggregation; import org.springframework.data.mongodb.repository.MongoRepository; import org.springframework.data.mongodb.repository.Query; import org.springframework.stereotype.Repository; import java.util.Li...
41,683
https://github.com/solkin/drawa-android/blob/master/app/src/main/java/com/tomclaw/drawa/draw/ToolProvider.kt
Github Open Source
Open Source
Apache-2.0
2,022
drawa-android
solkin
Kotlin
Code
60
179
package com.tomclaw.drawa.draw import com.tomclaw.drawa.draw.tools.Tool interface ToolProvider { fun getTool(type: Int): Tool fun listTools(): List<Tool> } class ToolProviderImpl(toolSet: Set<Tool>) : ToolProvider { private val tools = HashMap<Int, Tool>() init { toolSet.forEach { tool -...
42,088
https://github.com/brutall/typedmap/blob/master/typedmap-core/src/main/kotlin/me/broot/typedmap/core/api/TypedMap.kt
Github Open Source
Open Source
Apache-2.0
2,022
typedmap
brutall
Kotlin
Code
234
509
package me.broot.typedmap.core.api import me.broot.typedmap.core.util.OptionalValue /** * Type-safe heterogeneous map with read-only access. * * Type-safe heterogeneous map (or typed map) allows to store items of various types and access them in a type-safe * manner. This is possible by parameterizing keys used w...
18,286
https://github.com/zHaytam/machinelearning/blob/master/src/Microsoft.ML.AutoML/Experiment/Experiment.cs
Github Open Source
Open Source
MIT
2,020
machinelearning
zHaytam
C#
Code
408
1,429
// 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. using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using ...
41,503
https://github.com/elmesson/Docker-GLPI-Jenkins-Deploy/blob/master/glpi/inc/reservationitem.class.php
Github Open Source
Open Source
Apache-2.0
null
Docker-GLPI-Jenkins-Deploy
elmesson
PHP
Code
2,254
8,533
<?php /** * --------------------------------------------------------------------- * GLPI - Gestionnaire Libre de Parc Informatique * Copyright (C) 2015-2020 Teclib' and contributors. * * http://glpi-project.org * * based on GLPI - Gestionnaire Libre de Parc Informatique * Copyright (C) 2003-2014 by the INDEPNET...
922
https://github.com/Willowsap/CS5535-Vue/blob/master/Chapter01/Exercise1.04/src/App.vue
Github Open Source
Open Source
MIT
2,022
CS5535-Vue
Willowsap
Vue
Code
23
75
<template> <Exercise /> </template> <script> import Exercise from './components/Exercise1-04' export default { components: { Exercise, }, } </script> <style lang="scss"> @import 'styles/global'; </style>
26,536
https://github.com/AndrewAsl/imageapp/blob/master/resources/views/show.blade.php
Github Open Source
Open Source
MIT
null
imageapp
AndrewAsl
PHP
Code
75
295
@extends('app') @section('content') <div> {{ $imageToTbl ->image_name }} : <br> <img src="/img/any/{{ $imageToTbl->image_name . '.' . $imageToTbl->image_extension . '?'. 'time='. time() }}"> </div> <div> {{ $imageToTbl->image_name }} - превью : <br> <img src="/img/...
8,856
https://github.com/hiroshi-cl/InverseFramework/blob/master/core/plugin/src/main/scala/inverse_macros/typers/mixin/WhileTyper.scala
Github Open Source
Open Source
BSD-2-Clause
2,019
InverseFramework
hiroshi-cl
Scala
Code
225
831
package inverse_macros.typers.mixin // wildcard effect for while trait WhileTyper extends inverse_macros.UseGlobal { import global._ import analyzer._ val whileTyper = new AnalyzerPlugin { private[this] val IMWhile = rootMirror.getRequiredClass("inverse_macros.IMWhile") override def pluginsTypeSig(t...
17,399
https://github.com/npocmaka/Windows-Server-2003/blob/master/drivers/video/ms/laguna/mini/cl546x/logfile.h
Github Open Source
Open Source
Unlicense
2,021
Windows-Server-2003
npocmaka
C
Code
152
376
/**************************************************************************** ***************************************************************************** * * ****************************************** * * Copyright (c) 1996, Cirrus Logic, Inc. * * * All Rights R...
12,497
https://github.com/adrianomarto/Cisco-DLEP-Radio-Simulator/blob/master/dlep_radio_ipv6/fsm.h
Github Open Source
Open Source
MIT
null
Cisco-DLEP-Radio-Simulator
adrianomarto
C
Code
1,179
2,936
/*------------------------------------------------------------------ * fsm.h - Finite State Machine definitions * * February 2005, Bo Berry * * Copyright (c) 2005-2009 by Cisco Systems, Inc. * All rights reserved. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this soft...
24,381
https://github.com/edo494/WurstScript/blob/master/de.peeeq.wurstscript/src/de/peeeq/wurstscript/compilationserver/ResourceInput.java
Github Open Source
Open Source
Apache-2.0
null
WurstScript
edo494
Java
Code
53
151
package de.peeeq.wurstscript.compilationserver; import java.io.IOException; import java.io.Reader; public abstract class ResourceInput { private final String name; private final long lastModified; public ResourceInput(String name, long lastModified) { this.name = name; this.lastModified = lastModified; } ...
20,100
https://github.com/warehouse-picking-automation-challenges/team_naist_panasonic/blob/master/tnp_image_taker/src/CameraRecord_single.py
Github Open Source
Open Source
Apache-2.0
2,022
team_naist_panasonic
warehouse-picking-automation-challenges
Python
Code
854
4,664
# # Version: 2017.07.31 # Authors: Members of the Team NAIST-Panasonic at the Amazon Robotics Challenge 2017: # Gustavo A. Garcia R. <garcia-g at is.naist.jp> (Captain), # Lotfi El Hafi, Felix von Drigalski, Wataru Yamazaki, Viktor Hoerig, Arnaud Delmotte, # Akishige Yuguchi, Marcus Ga...
30,011
https://github.com/MegaNo0body/tcc/blob/master/tcc_rpi/extrairDHT22.py
Github Open Source
Open Source
MIT
2,016
tcc
MegaNo0body
Python
Code
20
88
import re import sys group = int(sys.argv[1]) data = input() pattern = r'Temp:\s+(\d+\.\d+),\s+RH:\s+(\d+\.\d+)%' regx = re.compile(pattern) match = regx.search(data) print(match.group(group))
6,739
https://github.com/fxjordan/mesibo-backend-api-client/blob/master/src/main/java/de/felixjordan/mesibo/client/backend/MesiboBackendApi.java
Github Open Source
Open Source
MIT
2,021
mesibo-backend-api-client
fxjordan
Java
Code
200
471
/* * Copyright (c) BUDDY Activities UG (haftungsbeschränkt) - All Rights Reserved * * Unauthorized copying of this file, via any medium is strictly prohibited. * Proprietary and confidential * * Written by Felix Jordan <felix.jordan@buddy-app.de>, May 2021 */ package de.felixjordan.mesibo.client.backend; impor...
21,104
https://github.com/vijaypatoliya/pinterest-node-api/blob/master/examples/typescript/pins/createPin.ts
Github Open Source
Open Source
MIT
2,021
pinterest-node-api
vijaypatoliya
TypeScript
Code
55
201
'use strict'; const userToken = process.env.PINTEREST_USER_TOKEN; import * as PinterestAPI from 'pinterest-node-api'; const pinterest = new PinterestAPI(); const pinsRequest = async function () { pinterest.setUserToken(userToken); const data = { board: 'pideveloper/board-2', note: 'it\'s a test pin des...
32,327
https://github.com/Oichii/resnet3D_pulse/blob/master/ResNet_test.py
Github Open Source
Open Source
MIT
2,021
resnet3D_pulse
Oichii
Python
Code
796
3,492
import os import glob import json import torch import torchvision.transforms as transforms import torch.nn as nn import matplotlib.pyplot as plt import numpy as np from scipy.signal import resample, find_peaks from pulse_sampler import PulseSampler from pulse_dataset import PulseDataset from NegPearsonLoss import NegPe...
23,451
https://github.com/mongator/factory/blob/master/src/Mongator/Factory/Blueprint.php
Github Open Source
Open Source
MIT
2,016
factory
mongator
PHP
Code
206
670
<?php /* * This file is part of Mongator. * * (c) Máximo Cuadros <maximo@yunait.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Mongator\Factory; use Mongator\Factory\Blueprint\Config; use Mongator\Factory\Blueprint\Sequence; cl...
35,287
https://github.com/joeharrison91/service-manual-publisher/blob/master/app/forms/guide_form.rb
Github Open Source
Open Source
MIT
null
service-manual-publisher
joeharrison91
Ruby
Code
44
219
class GuideForm < BaseGuideForm attr_accessor :topic_section_id def slug_prefix "/service-manual" end private def load_custom_attributes self.topic_section_id = topic_section.try(:id) end def set_custom_attributes if topic_section_id.present? topic_section_guide.topic_section_id = topi...
3,069
https://github.com/JacksonTian/compiler/blob/master/lib/inter/id.js
Github Open Source
Open Source
MIT
2,021
compiler
JacksonTian
JavaScript
Code
27
68
'use strict'; const Expr = require('./expr'); class Id extends Expr { constructor(line, id, type, offset) { super(line, id, type); this.offset = offset; } } module.exports = Id;
28,121
https://github.com/viocassel/gui-challenges/blob/master/theme-switch/public/theme-toggle.js
Github Open Source
Open Source
Apache-2.0
2,022
gui-challenges
viocassel
JavaScript
Code
147
408
const storageKey = 'theme-preference' const onClick = () => { // flip current value theme.value = theme.value === 'light' ? 'dark' : 'light' setPreference() } const getColorPreference = () => { if (localStorage.getItem(storageKey)) return localStorage.getItem(storageKey) else return window....
8,015
https://github.com/AbdullinAM/stp-java/blob/master/src/main/java/org/zhekehz/stpjava/Sort.java
Github Open Source
Open Source
Apache-2.0
null
stp-java
AbdullinAM
Java
Code
75
202
package org.zhekehz.stpjava; public interface Sort { default boolean isArray() { return false; } default boolean isBitVector() { return false; } default boolean isBool() { return false; } default boolean isFunction() { return false; } default BitV...
34,410
https://github.com/sharugupta/OpenUH/blob/master/osprey/wgen/omp_directive.h
Github Open Source
Open Source
BSD-2-Clause
null
OpenUH
sharugupta
C
Code
371
899
/* * Copyright (C) 2007. QLogic Corporation. All Rights Reserved. */ /* * Copyright 2004, 2005, 2006 PathScale, Inc. All Rights Reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU General Public License as * published by the Free Softwa...
34,105
https://github.com/gionasoldati/BitcoinBlockchainTechnology/blob/master/tests/test_bip39.py
Github Open Source
Open Source
MIT
null
BitcoinBlockchainTechnology
gionasoldati
Python
Code
221
966
#!/usr/bin/env python3 # Copyright (C) 2017-2019 The btclib developers # # This file is part of btclib. It is subject to the license terms in the # LICENSE file found in the top-level directory of this distribution. # # No part of btclib including this file, may be copied, modified, propagated, # or distributed except...
43,304
https://github.com/Kafoo/sitko_back/blob/master/app/Http/Controllers/CaldateController.php
Github Open Source
Open Source
MIT
null
sitko_back
Kafoo
PHP
Code
157
490
<?php namespace App\Http\Controllers; use App\Http\Resources\CaldateResource; use App\Models\Caldate; use App\Models\Place; use Illuminate\Http\Request; class CaldateController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public fu...
41,530
https://github.com/btopro/sakai-elements/blob/master/elements/sakai-rubric/lib/sakai-rubric-criterion-readonly.js
Github Open Source
Open Source
Apache-2.0
null
sakai-elements
btopro
JavaScript
Code
141
657
import { SakaiElement } from "./sakai-element.js"; import { html } from "lit-element/lit-element.js"; export class SakaiRubricCriterionReadonly extends SakaiElement { constructor() { super(); this.token = ""; this.rubric = {}; } static get properties() { return { token: String, rubr...
42,114
https://github.com/samlaudev/RACUnitTest/blob/master/RACUnitTest/Sections/Login/LoginView.h
Github Open Source
Open Source
MIT
2,017
RACUnitTest
samlaudev
C
Code
59
184
// // LoginView.h // RACUnitTest // // Created by Sam Lau on 8/25/15. // Copyright (c) 2015 Sam Lau. All rights reserved. // #import <SHPAbstractView.h> #import <UIKit/UIKit.h> @interface LoginView : SHPAbstractView /* @brief 用户名 */ @property (strong, nonatomic) UITextField *usernameTextField; /* @brief 密码 *...
22,904
https://github.com/Yardanico/wasm4/blob/master/examples/pong/src/dev_tools.rs
Github Open Source
Open Source
ISC
2,022
wasm4
Yardanico
Rust
Code
35
88
use super::wasm4::{line, SCREEN_SIZE}; pub fn draw_grid(step: i32) { for part in 1..(SCREEN_SIZE as i32 / step) { line(part * step, 0, part * step, 160); line(0, part * step, 160, part * step); } }
110
https://github.com/eltonkola/ThemeComposer/blob/master/app/src/main/java/com/eltonkola/themecomposer/ui/views/ThemeColorColumn.kt
Github Open Source
Open Source
Apache-2.0
null
ThemeComposer
eltonkola
Kotlin
Code
140
658
package com.eltonkola.themecomposer.ui.views import androidx.compose.animation.ExperimentalAnimationApi import androidx.compose.foundation.background import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.Spacer import androidx.compose.f...
36,283
https://github.com/tkat0/pynq-chainer/blob/master/pynq_chainer/links/convolution_2d.py
Github Open Source
Open Source
MIT
2,020
pynq-chainer
tkat0
Python
Code
5
19
# coding=utf-8 class Convolution2D(): pass
18,823
https://github.com/martijnvanginkel/portfolio/blob/master/Sites/Laravel/homeopathiepraktijksneek/resources/views/auth/login.blade.php
Github Open Source
Open Source
MIT
null
portfolio
martijnvanginkel
PHP
Code
98
422
@extends('basic') @section('content') <div class="row"> <div class="col-sm-4 offset-4"> <div class="loginWrapper"> <div class="loginContent"> <h1 class="loginHeader">Inloggen</h1> <!-- Form --> <form method="POST" action="{{ route('login') }}"> {{ csrf_field() }} ...
13,853
https://github.com/atimera/eshop/blob/master/src/main/java/com/atimera/eshop/ui/view/product/ProductView.java
Github Open Source
Open Source
Unlicense
null
eshop
atimera
Java
Code
82
406
package com.atimera.eshop.ui.view.product; import com.atimera.eshop.backend.entity.Categorie; import com.atimera.eshop.backend.entity.Produit; import com.atimera.eshop.backend.service.CategorieService; import com.atimera.eshop.ui.MainLayout; import com.vaadin.flow.component.grid.Grid; import com.vaadin.flow.component...
36,642
https://github.com/Xenoxiluna/XTerraPacket/blob/master/Sources/XTerraPacket/Types/PacketZones.swift
Github Open Source
Open Source
MIT
null
XTerraPacket
Xenoxiluna
Swift
Code
155
439
// // PacketZones.swift // // // Created by Quentin Berry on 5/10/20. // Direction: Server <-> Client (Sync) import Foundation import SwiftyBytes /// Player zone public struct PacketZones: TerrariaPacket{ public var bytes: [UInt8] = [] public var length: UInt16 = 0 public var context: TerrariaPacketCon...
23,425
https://github.com/alanhoman/winforms/blob/master/src/System.Windows.Forms/src/System/Windows/Forms/Layout/TableLayout.ReservationGrid.cs
Github Open Source
Open Source
MIT
2,022
winforms
alanhoman
C#
Code
228
593
// 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. #nullable disable using System.Collections; using System.Diagnostics; namespace System.Windows.Forms.Layout { ...
19,516
https://github.com/kasisoft/kcl/blob/master/src/main/java/com/kasisoft/libs/common/utils/ExtendedList.java
Github Open Source
Open Source
Unlicense
null
kcl
kasisoft
Java
Code
264
873
package com.kasisoft.libs.common.utils; import java.util.*; import lombok.experimental.*; import lombok.*; /** * @author daniel.kasmeroglu@kasisoft.net */ @AllArgsConstructor @FieldDefaults(level = AccessLevel.PRIVATE) public class ExtendedList<T> implements List<T> { List<T> origin; @Override public bo...
27,131
https://github.com/igorjos/nlp.js/blob/master/packages/core/test/mock-fs.test.js
Github Open Source
Open Source
MIT
2,022
nlp.js
igorjos
JavaScript
Code
326
650
/* * Copyright (c) AXA Group Operations Spain S.A. * * 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 rights to use, copy, modify,...
15,170
https://github.com/visit-dav/vis/blob/master/src/databases/SPCTH/Spy.h
Github Open Source
Open Source
BSD-3-Clause
2,022
vis
visit-dav
C
Code
1,441
3,947
// Copyright (c) Lawrence Livermore National Security, LLC and other VisIt // Project developers. See the top-level LICENSE file for dates and other // details. No copyright assignment is required to contribute to VisIt. // ************************************************************************* // // ...
43,533
https://github.com/Kludex/basesqlmodel/blob/master/tests/utils.py
Github Open Source
Open Source
MIT
2,022
basesqlmodel
Kludex
Python
Code
40
129
from typing import List, Optional from sqlmodel import Field, Relationship from basesqlmodel import Base class Potato(Base, table=True): id: int = Field(primary_key=True) name: str potato_collection_id: Optional[int] = Field(foreign_key="potatoes.id") class Potatoes(Base, table=True): id: int = Fi...
36,620
https://github.com/danielmarcoto/ControleRemoto/blob/master/app/src/main/java/br/com/command/comandos/AquecedorCorredorDesligarCommand.java
Github Open Source
Open Source
MIT
null
ControleRemoto
danielmarcoto
Java
Code
37
159
package br.com.command.comandos; import br.com.command.interfaces.Command; import br.com.command.modelos.AquecedorCorredor; /** * Created by danielmarcoto on 17/11/15. */ public class AquecedorCorredorDesligarCommand implements Command { private AquecedorCorredor aquecedor; public AquecedorCorredorDesliga...
45,082
https://github.com/ITALIA195/RC-Mod/blob/master/RC Mod/PhotonLagSimulationGui.cs
Github Open Source
Open Source
MIT
2,020
RC-Mod
ITALIA195
C#
Code
216
900
using ExitGames.Client.Photon; using System; using System.Runtime.CompilerServices; using UnityEngine; public class PhotonLagSimulationGui : MonoBehaviour { public bool Visible = true; public int WindowId = 0x65; public Rect WindowRect = new Rect(0f, 100f, 120f, 100f); private void NetSimHasNoPeerWind...
19,615
https://github.com/wiryadev/BootstrapIconsCompose/blob/master/bootstrap-icons-compose/src/main/java/com/wiryadev/bootstrapiconscompose/bootstrapicons/normal/Megaphone.kt
Github Open Source
Open Source
MIT
2,021
BootstrapIconsCompose
wiryadev
Kotlin
Code
264
1,472
package com.wiryadev.bootstrapiconscompose.bootstrapicons.normal import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType.Companion.NonZero import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.StrokeCap.Companion.Butt import androidx.compose.ui.graphics.S...
32,071
https://github.com/adrian-rt/fuzzilli/blob/master/Compiler/test/this.ml
Github Open Source
Open Source
Apache-2.0
null
fuzzilli
adrian-rt
OCaml
Code
51
131
open Program_types let input = "const v0 = this" let correct = [ { inouts = [0l]; operation = Load_builtin {builtin_name = "this"}; }; ] let test () = let (ast, errors) = Compiler.string_to_flow_ast input in let prog = Compiler.flow_ast_to_inst_list ast false false true in Alcot...
22,100
https://github.com/meitiever/SLAM-BA/blob/master/src/cholmod/CHOLMOD/Supernodal/t_cholmod_gpu.c
Github Open Source
Open Source
MIT
null
SLAM-BA
meitiever
C
Code
3,497
10,278
/* ========================================================================== */ /* === Supernodal/t_cholmod_gpu ============================================= */ /* ========================================================================== */ /* -------------------------------------------------------------------------...
10,035
https://github.com/uk-gov-mirror/ministryofjustice.modernisation-platform/blob/master/terraform/modules/ec2-tgw-attachment/variables.tf
Github Open Source
Open Source
MIT
2,022
ministryofjustice.modernisation-platform
uk-gov-mirror
HCL
Code
137
300
variable "resource_share_name" { description = "Resource Access Manager (RAM) resource share name to lookup the Transit Gateway Resource Share" type = string } variable "subnet_ids" { description = "Subnet IDs to attach to the Transit Gateway" type = list(string) } variable "tags" { descriptio...
15,633
https://github.com/ed-vieira/accordous-test-frontend/blob/master/src/router/index.js
Github Open Source
Open Source
MIT
null
accordous-test-frontend
ed-vieira
JavaScript
Code
366
1,154
import Vue from 'vue' import Router from 'vue-router' // Containers const DefaultContainer = () => import('@/containers/DefaultContainer') // Views const Dashboard = () => import('@/views/pages/Dashboard') // Views - Pages const Page404 = () => import('@/views/pages/Page404') const Page500 = () => import('@/views/...
15,517
https://github.com/cheminfo/chemcalc-js/blob/master/src/org/chemcalc/gwt/org/json/JSONObject.java
Github Open Source
Open Source
BSD-3-Clause
2,021
chemcalc-js
cheminfo
Java
Code
263
861
package org.json; import java.math.BigInteger; import org.chemcalc.core.FormulaPart; import com.google.gwt.json.client.JSONBoolean; import com.google.gwt.json.client.JSONNull; import com.google.gwt.json.client.JSONNumber; import com.google.gwt.json.client.JSONValue; import com.google.gwt.json.client.JSONString; pub...
29,960
https://github.com/zhhr1122/SZSL_PHP_Admin/blob/master/Application/Admin/Controller/LoginController.class.php
Github Open Source
Open Source
BSD-2-Clause
2,018
SZSL_PHP_Admin
zhhr1122
PHP
Code
88
463
<?php namespace Admin\Controller; use Think\Controller; /** * use Common\Model 这块可以不需要使用,框架默认会加载里面的内容 */ class LoginController extends Controller { public function index(){ if(session('adminUser')){ return $this->redirect('/admin.php?c=index'); }else{ return $this->disp...
11,897
https://github.com/BurakBzks/like-unlike-delete/blob/master/resources/views/dashboard.blade.php
Github Open Source
Open Source
MIT
null
like-unlike-delete
BurakBzks
PHP
Code
11
65
@extends('layouts.admin') @section('title') dashboard @endsection @section('css') @endsection @section('content') fsafgasjfgnjkıasfa @endsection @section('js') @endsection
25,022
https://github.com/sierraskyewallace/baby_journal/blob/master/app/controllers/users_controller.rb
Github Open Source
Open Source
MIT
2,021
baby_journal
sierraskyewallace
Ruby
Code
119
367
require './config/environment' require 'rack-flash' class UsersController < ApplicationController get '/login' do @users = User.all if !session[:user_id] erb :'users/login' else redirect '/babies' end end post "/login" do user = User.find_by(:username => params[:username]) ...
11,940
https://github.com/stefanocke/japkit-examples/blob/master/japkit-examples-freebuilder/src/test/java/de/japkit/examples/freebuilder/test/PersonTest.java
Github Open Source
Open Source
Apache-2.0
null
japkit-examples
stefanocke
Java
Code
143
1,160
package de.japkit.examples.freebuilder.test; import java.util.List; import java.util.Map; import de.japkit.examples.freebuilder.test.AddressBuilder.Value; public class PersonTest { private PersonBuilder p; @SuppressWarnings("unused") public void syntacticalTest() { String[] stringArray = p.getStringArray(); ...
20,860
https://github.com/mikesterlingw/sagemaker-pytorch-inference-toolkit/blob/master/src/sagemaker_pytorch_serving_container/ts_environment.py
Github Open Source
Open Source
Apache-2.0
2,022
sagemaker-pytorch-inference-toolkit
mikesterlingw
Python
Code
453
1,133
# Copyright 2019-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/apache2.0/ # # or in the 'license' fil...
38,777
https://github.com/cfpb/design-system/blob/master/test/browser/docs/interstitial.js
Github Open Source
Open Source
CC0-1.0
2,022
design-system
cfpb
JavaScript
Code
113
249
/* eslint-disable handle-callback-err */ /* eslint-disable no-undef */ describe( 'CMS interstitial page with editing instructions', () => { before( async () => { await browser.reloadSession(); } ); describe( 'Editing a component page', () => { beforeEach( async () => { await browser.url( '/desig...
1,619
https://github.com/zhh827/TcpOverWs/blob/master/service/encry_test.go
Github Open Source
Open Source
Apache-2.0
null
TcpOverWs
zhh827
Go
Code
75
378
package service import ( "fmt" "log" "net/url" "testing" ) func TestEncryDencryBase64(t *testing.T) { orig := "123456781234567812345678" key := Md5Str("123aasdaww") // key := "1234567812345678" t.Log("原文:", orig) encryptCode := AesEncryptBase64(orig, key) t.Log("密文:", encryptCode) decryptCode := AesDecryp...
21,654
https://github.com/IbarMario/Codi/blob/master/others/OpenXML/OpenXML_Relationship.php
Github Open Source
Open Source
BSD-3-Clause
null
Codi
IbarMario
PHP
Code
183
601
<?php /** * Class to represent a .rel document * */ class OpenXML_Relationship extends DOMDocument { /** * Namespace URI for the Relationships schema * */ const NS_URI = 'http://schemas.openxmlformats.org/package/2006/relationships'; /** * Namespace URI to the office documents schems * */ const RT_O...
17,857
https://github.com/carbonplan/seaweed-farming-web/blob/master/components/logos/climate-works.js
Github Open Source
Open Source
MIT
null
seaweed-farming-web
carbonplan
JavaScript
Code
130
4,605
import React from 'react' import { Box } from 'theme-ui' const ClimateWorks = (props) => { return ( <Box as='svg' fill='currentColor' stroke='primary' viewBox='0 0 941.9 219.2' {...props} > <Box as='path' sx={{ fill: 'muted' }} className='st0' ...
32,434
https://github.com/yotohoshi/UCSDweb_design/blob/master/Django_UCSD/Registration/models.py
Github Open Source
Open Source
MIT
null
UCSDweb_design
yotohoshi
Python
Code
375
1,350
from django.db import models from django.contrib.auth.models import BaseUserManager, AbstractBaseUser from django.contrib.auth.models import AnonymousUser as DjangoAnonymousUser import uuid from django.core import validators #from User.models import UserProfile from django.db.models.signals import post_save # This App ...
24,244
https://github.com/marcelodsx/kotlin/blob/master/compiler/testData/diagnostics/tests/inner/interfaceInInnerClass.kt
Github Open Source
Open Source
Apache-2.0
2,021
kotlin
marcelodsx
Kotlin
Code
11
42
class Outer { inner class Inner { <!NESTED_CLASS_NOT_ALLOWED(Interface)!>interface TestNestedInterface<!> } }
11,102
https://github.com/freezy/pinmame/blob/master/src/lisy/coils.h
Github Open Source
Open Source
BSD-3-Clause
null
pinmame
freezy
C
Code
444
1,735
#ifndef _COILS_H_ #define _COILS_H_ void lisy80_coil_set( int coil, int action); void lisy1_coil_set( int coil, int action); void coil_set_str( char *str, int action); void coil_test ( void ); void lisy80_coil_init ( void ); void lisy1_coil_init ( void ); void lisy35_coil_init ( void ); void lisy35_lamp_init ( void ...
17,612
https://github.com/Rafagd/infix-lang/blob/master/src/llvm.py
Github Open Source
Open Source
BSD-2-Clause
null
infix-lang
Rafagd
Python
Code
2,081
7,665
from __future__ import annotations import struct from dataclasses import dataclass from inspect import getmembers, isfunction class LLVMError(Exception): pass class LLVMTypeError(Exception): pass class CommentContext: def __init__(self, llvm, comment, *args): self.llvm = llvm se...
17,717
https://github.com/atitan/coursenote/blob/master/lib/tasks/data.rake
Github Open Source
Open Source
MIT
2,020
coursenote
atitan
Ruby
Code
431
1,556
namespace :data do desc "import data from url to database" task :import , [:yearterm] => :environment do |_task, args| unless args.yearterm raise "No yearterm specified...aborting" end puts "Yearterm: #{args.yearterm}" # read fingerprint file fingerprint_file = Rails.root.join('config/cou...
24,810
https://github.com/Omnieboer/plotly.kt/blob/master/examples/src/main/kotlin/pie/BasicPieChart.kt
Github Open Source
Open Source
Apache-2.0
null
plotly.kt
Omnieboer
Kotlin
Code
67
180
package pie import hep.dataforge.meta.invoke import kscience.plotly.Plotly import kscience.plotly.makeFile import kscience.plotly.models.Pie /** * - basic pie chart * - change height and width of the plot */ fun main() { val values = listOf(19, 26, 55) val labels = listOf("Residential", "Non-Residential", ...
25,919
https://github.com/horaceheaven/Kalman-and-Bayesian-Filters-in-Python/blob/master/experiments/bicycle.py
Github Open Source
Open Source
CC-BY-4.0
2,021
Kalman-and-Bayesian-Filters-in-Python
horaceheaven
Python
Code
132
330
# -*- coding: utf-8 -*- """ Created on Tue Apr 28 08:19:21 2015 @author: Roger """ from math import * import numpy as np import matplotlib.pyplot as plt from matplotlib.patches import Polygon wheelbase = 100 #inches vel = 20 *12 # fps to inches per sec steering_angle = radians(1) t = 1 # second orientation = 0. #...
23,988
https://github.com/DragonSpark/Framework/blob/master/DragonSpark.Application/Compose/Store/Operations/EntryKey.cs
Github Open Source
Open Source
MIT
2,022
Framework
DragonSpark
C#
Code
9
33
namespace DragonSpark.Application.Compose.Store.Operations; readonly record struct EntryKey<T>(T Parameter, object Key);
15,440
https://github.com/symphonyoss/GroupID/blob/master/helpdesk-service/helpdesk-service-server/src/test/java/org/symphonyoss/symphony/bots/helpdesk/service/it/steps/AuthenticationSteps.java
Github Open Source
Open Source
Apache-2.0
null
GroupID
symphonyoss
Java
Code
577
2,111
package org.symphonyoss.symphony.bots.helpdesk.service.it.steps; import static junit.framework.TestCase.assertEquals; import static junit.framework.TestCase.assertNotNull; import static junit.framework.TestCase.assertNull; import org.jbehave.core.annotations.Given; import org.jbehave.core.annotations.Then; import org...
6,570
https://github.com/TRibeiro94/ISEP-ARQSI-2020/blob/master/Semester_Project/MDR/api/middlewares/closestPathMW.js
Github Open Source
Open Source
MIT
2,021
ISEP-ARQSI-2020
TRibeiro94
JavaScript
Code
103
398
const Joi = require('joi'); var ClosestPathSolution = require('../../models/closestPathSolution'); var repository = require('../../repository'); const closestPathValidation = (reqBodyData) => { const schema = Joi.object({ startingNode: Joi.string().required(), endNode: Joi.string().required(), ...
15,704
https://github.com/MrJako2001/AniLib/blob/master/app/src/main/java/com/revolgenx/anilib/social/ui/viewmodel/ActivityInfoViewModel.kt
Github Open Source
Open Source
Apache-2.0
null
AniLib
MrJako2001
Kotlin
Code
65
324
package com.revolgenx.anilib.social.ui.viewmodel import androidx.lifecycle.MutableLiveData import com.revolgenx.anilib.common.repository.util.Resource import com.revolgenx.anilib.social.data.field.ActivityInfoField import com.revolgenx.anilib.social.data.model.ActivityUnionModel import com.revolgenx.anilib.social.infr...
11,464
https://github.com/OpenUpSA/crime-stats-demystifed/blob/master/remap.py
Github Open Source
Open Source
MIT
2,018
crime-stats-demystifed
OpenUpSA
Python
Code
104
381
import csv from collections import defaultdict weight_reader = csv.DictReader(open("sal_to_precinct_weights.csv")) data_reader = csv.DictReader(open("data/sal_population.csv")) SOURCE_KEY = "small_area" TARGET_KEY = "precinct" source_data = {} for row in data_reader: sal_code = row["small_area"] source_data[...
25,072
https://github.com/nabeelmerchant1/kolibri_assessment_client/blob/master/client/js/_author/reducers/preview.js
Github Open Source
Open Source
ECL-2.0, Apache-2.0, MIT
2,021
kolibri_assessment_client
nabeelmerchant1
JavaScript
Code
40
106
import * as Assessment from '../../actions/qbank/assessments'; import { DONE } from '../../constants/wrapper'; const initialState = []; export default function preview(state = initialState, action) { switch (action.type) { case Assessment.Constants.GET_ASSESSMENT_PREVIEW + DONE: { return action.payload; ...
1,788
https://github.com/robopsi/rigidsearch/blob/master/rigidsearch/fs.py
Github Open Source
Open Source
BSD-3-Clause
2,019
rigidsearch
robopsi
Python
Code
159
460
import os import errno import hashlib from rigidsearch.utils import chop_tail def filename_to_path(filename, base): base = base.rstrip('/') if filename.startswith(base + '/'): filename = filename[len(base) + 1:] filename, chopped = chop_tail(filename, '/index.html') if not chopped: fi...
23,476
https://github.com/rahmadsubekti19/kms_dapentel/blob/master/app/Http/Controllers/DokumenController.php
Github Open Source
Open Source
MIT
null
kms_dapentel
rahmadsubekti19
PHP
Code
307
1,288
<?php namespace App\Http\Controllers; use App\Dokumen; use App\Sop; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\Storage; class DokumenController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response...
10,220
https://github.com/CK-LinoPro/language-ext/blob/master/LanguageExt.Tests/Parsing/parseUIntTests.cs
Github Open Source
Open Source
MIT
2,022
language-ext
CK-LinoPro
C#
Code
42
112
namespace LanguageExt.Tests.Parsing { public class parseUIntTests : AbstractParseTUnsignedPrecisionIntervalTests<uint> { protected override Option<uint> ParseT(string value) => Prelude.parseUInt(value); protected override uint MinValue => uint.MinValue; protected override uint MaxValue...
8,296
https://github.com/Helg18/NRSGroup_test_butacas/blob/master/app/Butaca.php
Github Open Source
Open Source
MIT
2,019
NRSGroup_test_butacas
Helg18
PHP
Code
70
222
<?php namespace App; use Illuminate\Database\Eloquent\Model; /** * Class Butaca * @package App */ class Butaca extends Model { /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'key', 'col', 'row', 'available', ...
31,755
https://github.com/X11/glue/blob/master/cmd/glue/main.go
Github Open Source
Open Source
MIT
null
glue
X11
Go
Code
229
723
package main import ( "flag" "os" "path/filepath" "github.com/segmentio/glue" "github.com/segmentio/glue/log" "github.com/segmentio/glue/provider" "github.com/segmentio/glue/provider/gorilla" "github.com/segmentio/glue/provider/stl" "github.com/segmentio/glue/writer" ) var debug = flag.Bool("debug", false, ...
26,125
https://github.com/loichuder/sphinx-js/blob/master/tests/test_typedoc.py
Github Open Source
Open Source
MIT
2,020
sphinx-js
loichuder
Python
Code
177
643
import os import subprocess import shutil import json from unittest import TestCase from tempfile import mkdtemp from nose.tools import eq_ from sphinx_js.doclets import program_name_on_this_platform from sphinx_js.typedoc import TypeDoc, parse_typedoc class Tests(TestCase): """Test typedoc to jsdoc conversion ...
31,201
https://github.com/chalmundev/nft-market/blob/master/src/App.js
Github Open Source
Open Source
MIT
2,022
nft-market
chalmundev
JavaScript
Code
465
1,484
import React, { useContext, useEffect } from 'react'; import { Routes, Route, Link, useNavigate, } from "react-router-dom"; import { appStore, onAppMount, fetchContracts, fetchData } from './state/app'; import { initNear } from './state/near'; import { useStore } from './utils/store'; import { Modal } from './com...
33,959
https://github.com/MineInAbyss/Geary/blob/master/geary-core/src/main/kotlin/com/mineinabyss/geary/ecs/api/systems/GearySystem.kt
Github Open Source
Open Source
MIT
2,022
Geary
MineInAbyss
Kotlin
Code
6
26
package com.mineinabyss.geary.ecs.api.systems public sealed interface GearySystem
4,960
https://github.com/go-ocf/ocf-cloud/blob/master/resource-directory/service/projection.go
Github Open Source
Open Source
Apache-2.0
null
ocf-cloud
go-ocf
Go
Code
686
2,345
package service import ( "context" "fmt" "time" cache "github.com/plgd-dev/go-coap/v2/pkg/cache" "github.com/plgd-dev/go-coap/v2/pkg/runner/periodic" "github.com/plgd-dev/hub/v2/pkg/log" "github.com/plgd-dev/hub/v2/resource-aggregate/commands" "github.com/plgd-dev/hub/v2/resource-aggregate/cqrs/eventbus" "gi...
28,437
https://github.com/rpiaggio/gsp-math/blob/master/modules/core/shared/src/main/scala/lucuma/core/enum/GnirsFpuSlit.scala
Github Open Source
Open Source
BSD-3-Clause
null
gsp-math
rpiaggio
Scala
Code
283
1,047
// Copyright (c) 2016-2021 Association of Universities for Research in Astronomy, Inc. (AURA) // For license information see LICENSE or https://opensource.org/licenses/BSD-3-Clause package lucuma package core package enum import cats.syntax.eq._ import lucuma.core.util.Enumerated import lucuma.core.math.Angle /** * ...
31,362