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/Leorock123/deepvariant/blob/master/third_party/nucleus/io/fastq.py
Github Open Source
Open Source
BSD-3-Clause
2,022
deepvariant
Leorock123
Python
Code
673
1,593
# Copyright 2018 Google LLC. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and the following disclaimer. # #...
51,034
https://github.com/Bryanavalos-dev/Ravn-Challenge-V2-BryanSAvalos/blob/master/src/products/controllers/products.controller.ts
Github Open Source
Open Source
MIT
null
Ravn-Challenge-V2-BryanSAvalos
Bryanavalos-dev
TypeScript
Code
285
1,100
import { BadRequestException, Body, Controller, Delete, Get, Param, Post, Put, Query, Res, UploadedFile, UseGuards, UseInterceptors, UsePipes, ValidationPipe, } from '@nestjs/common'; import { AuthGuard } from '@nestjs/passport'; import { FileInterceptor } from '@nestjs/platform-express'; ...
52,910
https://github.com/raviqqe/github-trendy/blob/master/app/.gitignore
Github Open Source
Open Source
MIT
2,019
github-trendy
raviqqe
Ignore List
Code
3
10
*.png *.ttf tmp
38,277
https://github.com/MyLanPangzi/java/blob/master/zk/src/main/java/Client.java
Github Open Source
Open Source
MIT
2,021
java
MyLanPangzi
Java
Code
101
394
import org.apache.zookeeper.KeeperException; import org.apache.zookeeper.Watcher; import org.apache.zookeeper.ZooKeeper; import java.io.IOException; import java.util.concurrent.TimeUnit; /** * @author hiscat */ public class Client { private static ZooKeeper zooKeeper; public static void main(String[] args)...
42,453
https://github.com/wojtuss/pmdk/blob/master/src/benchmarks/clo_vec.hpp
Github Open Source
Open Source
BSD-3-Clause
2,021
pmdk
wojtuss
C++
Code
370
856
/* * Copyright 2015-2017, Intel Corporation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and ...
42,868
https://github.com/vhetet/AndroidMapActivityPlanner/blob/master/app/src/main/java/com/project/vincent/activityplanner/SavedEventFragment.java
Github Open Source
Open Source
MIT
null
AndroidMapActivityPlanner
vhetet
Java
Code
82
318
package com.project.vincent.activityplanner; import android.os.Bundle; import android.support.v4.app.Fragment; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ListView; import android.widget.RelativeLayout; import java.util.Li...
6,964
https://github.com/relloyd/halfpipe/blob/master/components/generate-rows.go
Github Open Source
Open Source
MIT
2,022
halfpipe
relloyd
Go
Code
465
1,197
package components import ( "strings" "sync/atomic" "time" c "github.com/relloyd/halfpipe/constants" "github.com/relloyd/halfpipe/helper" "github.com/relloyd/halfpipe/logger" "github.com/relloyd/halfpipe/stats" "github.com/relloyd/halfpipe/stream" ) type GenerateRowsConfig struct { Log lo...
42,083
https://github.com/ozonejunkieau/doorbell-ng/blob/master/notifier_config.example.py
Github Open Source
Open Source
BSD-3-Clause
2,021
doorbell-ng
ozonejunkieau
Python
Code
9
40
MQTT_HOST = "x.x.x.x" MQTT_USERNAME = "xxxxxx" MQTT_PASSWORD = "xxxxxx"
17,085
https://github.com/moziauddin1/services/blob/master/grails-app/controllers/au/org/biodiversity/nsl/api/ApniFormatController.groovy
Github Open Source
Open Source
Apache-2.0
2,019
services
moziauddin1
Groovy
Code
326
885
/* Copyright 2015 Australian National Botanic Gardens This file is part of NSL services project. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/L...
33,657
https://github.com/keremkoseoglu/ticksys/blob/master/src/ycl_ticksys_jira.clas.abap
Github Open Source
Open Source
Apache-2.0
2,022
ticksys
keremkoseoglu
null
Spoken
1,335
6,504
CLASS ycl_ticksys_jira DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. INTERFACES yif_addict_ticketing_system. CONSTANTS ticsy_id TYPE yd_ticksys_ticsy_id VALUE 'JIRA'. CLASS-METHODS class_constructor. PROTECTED SECTION. PRIVATE SECTION. CONSTANTS: BEGIN OF status_code, ...
38,929
https://github.com/kll5h/ShinetechOA/blob/master/webapp/common/500.jsp
Github Open Source
Open Source
Apache-2.0
2,017
ShinetechOA
kll5h
null
Spoken
265
1,377
<%@ page contentType="text/html;charset=UTF-8" isErrorPage="true" %> <%@include file="/common/taglibs.jsp"%> <%@ page import="java.io.PrintWriter"%> <%@ page import="java.io.StringWriter"%> <%@ page import="java.net.InetAddress"%> <%@ page import="java.util.Enumeration"%> <%@ page import="org.slf4j.Logger"%> <%@ page i...
14,192
https://github.com/jalyna/oakdex-world-editor/blob/master/src/shared/__tests__/__snapshots__/Tile.spec.tsx.snap
Github Open Source
Open Source
MIT
2,020
oakdex-world-editor
jalyna
null
Spoken
125
510
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`<Tile> renders correctly 1`] = ` <default_1 className="foo" style={ Object { "width": "55px", } } x={2} y={3} > <styled.div className="foo" style={ Object { "left": "32px", "top": "48px", "width": "55px"...
9,805
https://github.com/Nick-Goorwah/origin/blob/master/packages/ui/libs/organization/view/src/pages/CreateBeneficiaryPage/CreateBeneficiaryPage.tsx
Github Open Source
Open Source
MIT
2,022
origin
Nick-Goorwah
TypeScript
Code
99
280
import React, { FC } from 'react'; import { GenericForm, Requirements } from '@energyweb/origin-ui-core'; import { Paper } from '@mui/material'; import { Typography } from '@mui/material'; import { useTranslation } from 'react-i18next'; import { useStyles } from './CreateBeneficiaryPage.styles'; import { useCreateBene...
18,106
https://github.com/Klaymr/GreaterWMS/blob/master/sodetail/serializers.py
Github Open Source
Open Source
Apache-2.0
2,020
GreaterWMS
Klaymr
Python
Code
129
781
from rest_framework import serializers class ListSerializers(serializers.Serializer): name = serializers.CharField(read_only=True) so_status = serializers.IntegerField(read_only=True) goods_code = serializers.CharField(read_only=True) goods_name = serializers.CharField(read_only=True) so_qty = seri...
28,924
https://github.com/G-P-S/SPIRV-Tools/blob/master/test/diff/diff_files/OpExtInst_in_src_only_autogen.cpp
Github Open Source
Open Source
Apache-2.0
null
SPIRV-Tools
G-P-S
C++
Code
964
2,438
// GENERATED FILE - DO NOT EDIT. // Generated by generate_tests.py // // Copyright (c) 2022 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/lic...
51,146
https://github.com/perfsonar/pscheduler/blob/master/python-pscheduler/pscheduler/pscheduler/expiringset.py
Github Open Source
Open Source
Apache-2.0
2,023
pscheduler
perfsonar
Python
Code
598
1,424
""" Set where items expire after a period of time """ import datetime from .log import Log class ExpiringSet(object): """This class implements a keyed set of objects that are constructed by a lambda and retrievable until an expiration time. After that, they are destroyed (also by a lambda) and the next...
47,805
https://github.com/GoogleCloudPlatform/google-cloud-visualstudio/blob/master/GoogleCloudExtension/GoogleCloudExtension/Options/AnalyticsOptions.cs
Github Open Source
Open Source
Apache-2.0, Zlib, MIT, LicenseRef-scancode-unknown-license-reference
2,023
google-cloud-visualstudio
GoogleCloudPlatform
C#
Code
458
1,034
// Copyright 2016 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applic...
18,046
https://github.com/facetome/game_2048/blob/master/app/src/main/java/basic/com/game2048/view/Constants.java
Github Open Source
Open Source
Apache-2.0
2,017
game_2048
facetome
Java
Code
75
343
package basic.com.game2048.view; import android.graphics.Color; import java.util.HashMap; import java.util.Map; /** * Created by basic on 2017/2/8. */ public final class Constants { private static final Map<Integer, String> COLOR_MAP = new HashMap<>(); static { COLOR_MAP.put(2, "#EEE4DA"); ...
39,019
https://github.com/owlint/pygrate/blob/master/pygrate2/migrate.py
Github Open Source
Open Source
Apache-2.0
null
pygrate
owlint
Python
Code
143
549
from .settings import find_migrations, load_state_object import sys from typing import List import importlib.util def load_migrations() -> List[callable]: """Load the migrations.""" loaded_migrations = [] migrations = find_migrations() for migration in migrations: print(f" --- {migration}") ...
4,065
https://github.com/hrichiksite/gitter/blob/master/modules/client-context/context-server.js
Github Open Source
Open Source
MIT
2,020
gitter
hrichiksite
JavaScript
Code
136
363
'use strict'; const Promise = require('bluebird'); const ctx = {}; const context = function() { return ctx; }; context.group = function() {}; context.troupe = function() {}; context.getGroupId = function() {}; context.getTroupeId = function() {}; context.contextModel = function() {}; context.delayedContextMo...
30,972
https://github.com/meaadh/csci151-labs/blob/master/examples/HolidayLights/src/holiday/ArrayLight.java
Github Open Source
Open Source
MIT
2,022
csci151-labs
meaadh
Java
Code
67
179
package holiday; public class ArrayLight implements HolidayLight { // Fields private String[] colors; private int current; // Constructor public ArrayLight() { colors = new String[4]; colors[0] = "RED"; colors[1] = "GREEN"; colors[2] = "BLUE"; colors[3] = "...
51,918
https://github.com/EuroPython/djep/blob/master/adhoc_sqls/05-unassigned_tickets_per_purchase_user.sql
Github Open Source
Open Source
BSD-3-Clause
2,021
djep
EuroPython
SQL
Code
30
161
DROP VIEW unassigned_tickets_per_purchase_user CASCADE; CREATE VIEW unassigned_tickets_per_purchase_user AS SELECT p_uid, p_username, p_full_display_name, t_ticket_type_id, count(p_uid) cnt FROM invoice_or_paid_tickets WHERE t_uid IS NULL GROUP BY p_uid, p_username, t_ticket_type_id, p_full_display_name ...
2,595
https://github.com/fjsnogueira/Buildionaire/blob/master/Application.Services/Dashboard/ICodeReviewDashboardServices.cs
Github Open Source
Open Source
Apache-2.0
2,015
Buildionaire
fjsnogueira
C#
Code
19
115
namespace Farfetch.Buildionaire.Application.Services.Dashboard { using System.Collections.Generic; using System.Threading.Tasks; using Farfetch.Buildionaire.Application.Dto; public interface ICodeReviewDashboardServices { Task<IEnumerable<RankingReviewerItemDto>> GetTopCodeReviewersAsync(...
29,699
https://github.com/ObjectProfile/Spy2/blob/master/src/Spy2-Core.package/S2Profiler.class/class/log..st
Github Open Source
Open Source
MIT
2,022
Spy2
ObjectProfile
null
Spoken
10
24
util log: aString Transcript show: 'Running: ', aString asString; cr.
18,660
https://github.com/aromaa/Platform-Racing-3-Backend/blob/master/PlatformRacing3.Server/Game/Communication/Messages/Incoming/Json/JsonPacket.cs
Github Open Source
Open Source
MIT
null
Platform-Racing-3-Backend
aromaa
C#
Code
46
113
using System.Text.Json.Serialization; namespace PlatformRacing3.Server.Game.Communication.Messages.Incoming.Json; internal abstract class JsonPacket { [JsonPropertyName("t")] //Only use the "t" property as the packet type indicator when serializing because we use less bandwidth public string Type => this.InternalT...
23,003
https://github.com/mirskiy/awx/blob/master/awx/ui/client/lib/components/launchTemplateButton/_index.less
Github Open Source
Open Source
Apache-2.0
null
awx
mirskiy
Less
Code
39
153
.at-LaunchTemplate { margin-left: 15px; &--button { font-size: 16px; height: 30px; min-width: 30px; color: #848992; background-color: inherit; border: none; border-radius: 4px; } &--button:hover { background-color: @at-blue; color:...
49,050
https://github.com/nadsrice/kawani/blob/master/application/views/modals/modal-edit-skill.php
Github Open Source
Open Source
MIT
null
kawani
nadsrice
PHP
Code
75
371
<form class="form-horizontal" action="<?php echo site_url('skills/edit/'.$skill_id); ?>" method="post"> <div class="modal-header"> <h4 class="modal-title"><?php echo $modal_title; ?></h4> </div> <div class="modal-body"> <div class="form-group"> <label for="" class="col-lg-3 control-label">Name</label> <div...
29,874
https://github.com/EBISPOT/goci/blob/master/goci-interfaces/goci-curation/src/main/java/uk/ac/ebi/spot/goci/curation/constants/Endpoint.java
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-warranty-disclaimer
2,023
goci
EBISPOT
Java
Code
72
189
package uk.ac.ebi.spot.goci.curation.constants; public class Endpoint { public static final String API_V1 = "/api/v1"; public static final String PUBLIC_STUDIES = "/public/studies"; public static final String PUBLIC_UNPUBLISHED_STUDIES = "/public/unpublished-studies"; public static final String STU...
40,427
https://github.com/HackRU/frontend/blob/master/src/components/Dashboard/Forms/UserProfileForm/VaccineUploader.jsx
Github Open Source
Open Source
MIT
2,023
frontend
HackRU
JavaScript
Code
149
475
import React, { useEffect, useState } from "react"; import { CustomInput, FormGroup } from "reactstrap"; import { ProfileType } from "../../../Profile"; import { theme } from "../../../../Defaults"; import PropTypes from "prop-types"; const VaccineUploader = (props) => { const [vaccineLabelText, setVaccineLabelT...
51,592
https://github.com/WisconsinRobotics/WRover_Software/blob/master/src/wr_control_drive_ds/nodes/cam_mast_control.py
Github Open Source
Open Source
MIT
null
WRover_Software
WisconsinRobotics
Python
Code
37
192
#!/usr/bin/env python3 import rospy from std_msgs.msg import Int16 from wr_drive_msgs.msg import CamMastCmd def main(): rospy.init_node('cam_mast_control') pub = rospy.Publisher('/hsi/roboclaw/aux3/cmd/right', Int16, queue_size=4) def msg_cb(msg: CamMastCmd): pub.publish(Int16(round(msg.tur...
40,671
https://github.com/gokemon/hero-staffing/blob/master/src/app/hero-detail/hero-detail.component.ts
Github Open Source
Open Source
MIT
null
hero-staffing
gokemon
TypeScript
Code
62
156
import { Component, OnInit, Input } from '@angular/core'; // imports Angular "core" above import { Hero } from '../hero'; // TypeDecorator @Component({ selector: 'app-hero-detail', templateUrl: './hero-detail.component.html', styleUrls: ['./hero-detail.component.css'] }) // exportable class so we can import it ...
33,735
https://github.com/Paxa/mida_vocabulary/blob/master/resources/schema.org/generate.rb
Github Open Source
Open Source
MIT
2,014
mida_vocabulary
Paxa
Ruby
Code
537
1,950
#!/usr/bin/env ruby # Creates the vocabulary and enumeration classes for schema.org from # vocabularies.json which is held at: # https://github.com/LawrenceWoodman/schema.org_schemas # The classes are created in vocabularies/ require 'erb' require 'json' require 'set' ENUMERATION_TEMPLATE = <<-EOB require 'mida_voca...
10,884
https://github.com/StingMcRay/anno-designer/blob/master/AnnoDesigner/AnnoCanvas.xaml.cs
Github Open Source
Open Source
MIT
2,023
anno-designer
StingMcRay
C#
Code
9,971
30,791
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.IO; using System.Linq; using System.Text.RegularExpressions; using System.Threading; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls;...
25,182
https://github.com/aungkoman/aungkoman.github.io/blob/master/shan/flutter_service_worker.js
Github Open Source
Open Source
CC-BY-3.0, LicenseRef-scancode-commercial-license, CC-BY-4.0, MIT
2,023
aungkoman.github.io
aungkoman
JavaScript
Code
837
4,266
'use strict'; const MANIFEST = 'flutter-app-manifest'; const TEMP = 'flutter-temp-cache'; const CACHE_NAME = 'flutter-app-cache'; const RESOURCES = { "assets/AssetManifest.json": "ab8409a3b02c9b570fc35de103c67770", "assets/assets/audio/bgm/home.mp3": "506ba5ce3e0f2d3f9bcf2c67b28730b0", "assets/assets/audio/bgm/playin...
41,859
https://github.com/phyamal/CompPhys/blob/master/moreCUDA/constant/structs/constant_structs.h
Github Open Source
Open Source
Apache-2.0
2,019
CompPhys
phyamal
C++
Code
244
603
/** * @file : constant_structs.h * @brief : Examples of using constant memory for CUDA, with smart pointers, in header file * @details : constant memory for CUDA examples * * @author : Ernest Yeung <ernestyalumni@gmail.com> * @date : 20170103 * @ref : http://docs.nvidia.com/cuda/cuda-c-programm...
2,797
https://github.com/Shirikatsu/ui/blob/master/dist/BackButton.js
Github Open Source
Open Source
MIT
null
ui
Shirikatsu
JavaScript
Code
274
1,179
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var _extends = require('./extends-5150c1f4.js'); var _styled = require('styled-components'); var React = require('react'); var index$1 = require('./index-37353731.js'); var index = require('./index-c33eeeef.js'); var Bar = require('./Bar.js'...
30,543
https://github.com/railsonnn/processors/blob/master/main/src/main/scala/org/clulab/processors/clu/bio/BioTokenizerPostProcessor.scala
Github Open Source
Open Source
Apache-2.0
2,018
processors
railsonnn
Scala
Code
1,971
6,122
package org.clulab.processors.clu.bio import java.util.regex.Pattern import scala.collection.mutable.ArrayBuffer import BioTokenizerPostProcessor._ import org.clulab.processors.clu.TokenizerPostProcessor import org.clulab.struct.MutableNumber import org.clulab.utils.Files._ import scala.collection.mutable /** * P...
48,736
https://github.com/Gaetz/cpp-training/blob/master/SFML/SFML02-Snake/src/Window.h
Github Open Source
Open Source
MIT
null
cpp-training
Gaetz
C
Code
113
307
#include <string> #include <SFML/Graphics.hpp> class Window { public: bool isDone() const; bool isFullscreen() const; sf::Vector2u getWindowSize() const; sf::RenderWindow *getRenderWindow(); /// Create a 640 * 480 window named "Window" Window(); /// Create a window with custom title an...
34,409
https://github.com/KodstarBootcamp/issue-tracker-2020-2/blob/master/web/src/component/issue/scss/issues.scss
Github Open Source
Open Source
MIT
2,021
issue-tracker-2020-2
KodstarBootcamp
SCSS
Code
228
888
.issues { padding-bottom: 20px; .issue-container { padding-top: 20px; .navbar { padding: 20px 20px; border-radius: 5px; margin-bottom: 0.8px; opacity: 0.9; z-index: 10; .form-check { display: inline-block; } .search-container { display: inline-...
26,858
https://github.com/wnuqui/awesome_print_json/blob/master/exe/print_json
Github Open Source
Open Source
MIT
2,020
awesome_print_json
wnuqui
Ruby
Code
7
48
#!/usr/bin/env ruby require 'bundler/setup' require 'awesome_print_json/cli' AwesomePrintJson::CLI.pretty_print_json
15,932
https://github.com/brunomartins-com/Personal-Website-with-Laravel/blob/master/resources/views/admin/home/index.blade.php
Github Open Source
Open Source
MIT
2,015
Personal-Website-with-Laravel
brunomartins-com
Blade
Code
104
374
@extends('admin.sidebar-template') @section('title', 'Welcome to ') @section('page-content') @parent <!-- Main Container --> <main id="main-container"> <!-- Page Header --> <div class="content bg-gray-lighter"> <div class="row items-push"> <div class="col-sm-8"> ...
7,315
https://github.com/jayjd/test_xw/blob/master/app/src/main/java/hyj/xw/XposedInit.java
Github Open Source
Open Source
Apache-2.0
2,021
test_xw
jayjd
Java
Code
494
2,738
package hyj.xw; import android.content.Context; import com.alibaba.fastjson.JSON; import java.lang.reflect.Method; import de.robv.android.xposed.IXposedHookLoadPackage; import de.robv.android.xposed.XC_MethodHook; import de.robv.android.xposed.XposedHelpers; import de.robv.android.xposed.callbacks.XC_LoadPackage; i...
2,986
https://github.com/ahmed-khiter/QClub/blob/master/www/includes/DBConnection.php
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, MIT, BSD-3-Clause, BSD-2-Clause
2,020
QClub
ahmed-khiter
PHP
Code
18
100
<?php try{ $connection = new PDO("mysql:hostname=localhost;dbname=coffee_shop","root",""); //$connection = new PDO("sqlite:app_db.sqlite3"); $connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } catch(PDOException $e){ throw $e; }
47,049
https://github.com/clearlinux-pkgs/mvn-janino/blob/master/mvn-janino.spec
Github Open Source
Open Source
BSD-3-Clause
2,019
mvn-janino
clearlinux-pkgs
null
Spoken
218
2,823
# # This file is auto-generated. DO NOT EDIT # Generated by: autospec.py # Name : mvn-janino Version : 3.0.9 Release : 5 URL : http://repo1.maven.org/maven2/org/codehaus/janino/janino/3.0.9/janino-3.0.9-sources.jar Source0 : http://repo1.maven.org/maven2/org/codehaus/janino/janino/3.0.9/janino-3.0.9-sources...
49,215
https://github.com/averymanderson/OysterWebApp/blob/master/client/js/views/BasicAddItemView.js
Github Open Source
Open Source
Unlicense
null
OysterWebApp
averymanderson
JavaScript
Code
109
425
/*global define */ define([ 'marionette', 'templates' ], function (Marionette, templates) { 'use strict'; return Marionette.ItemView.extend({ template: templates.basicadditem, ui: { input: '.new-task' }, events: { 'click .add-item': 'onClickAddItem', 'click .advanced-option...
10,861
https://github.com/kavi4/patternGenerator/blob/master/src/store/modules/artBoard/actions.js
Github Open Source
Open Source
MIT
null
patternGenerator
kavi4
JavaScript
Code
14
36
const actions = { changeAttribute(context, payload) { context.commit('changeAttribute', payload) }, } export default actions
21,378
https://github.com/m0-n/static-code-analysis/blob/master/src/test/java/edu/hm/hafner/java/uc/IssuesTableTest.java
Github Open Source
Open Source
MIT
2,018
static-code-analysis
m0-n
Java
Code
52
190
package edu.hm.hafner.java.uc; import edu.hm.hafner.analysis.Issues; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.*; import static org.assertj.core.api.Assertions.*; import static org.mockito.Mockito.mock; /** * Test class for IssuesTable. */ class IssuesTableTest { /** ...
47,831
https://github.com/masbro21/fatho-pakarhewan/blob/master/application/views/yussan-templatefatho/result.php
Github Open Source
Open Source
MIT
2,015
fatho-pakarhewan
masbro21
PHP
Code
215
1,198
<div class="pre-loader"> <div class="load-con"> <img src="<?php echo base_url('resource')?>/assets/img/freeze/logo.png" class="animated fadeInDown" alt=""> <div class="spinner"> <div class="bounce1"></div> <div class="bounce2"></div> <div cla...
22,907
https://github.com/ggreg80/mailchimp-transactional-node/blob/master/src/api/UrlsApi.js
Github Open Source
Open Source
Apache-2.0
2,022
mailchimp-transactional-node
ggreg80
JavaScript
Code
182
445
var ApiClient = require('../ApiClient'); module.exports = function (apiClient) { this.apiClient = apiClient || ApiClient.instance(); /** * Add tracking domains * Add a tracking domain to your account. */ this.addTrackingDomain = function (body) { return this.apiClient.post('/urls/add-tracking-domai...
712
https://github.com/VictorKoehler/lexico/blob/master/config/server.py
Github Open Source
Open Source
MIT
null
lexico
VictorKoehler
Python
Code
75
272
from http.server import HTTPServer, SimpleHTTPRequestHandler from base64 import b64decode class HTTPPostHandler(SimpleHTTPRequestHandler): def do_GET(self, *args, **kwargs): patt = 'fsm.json?setdata=' rl = self.requestline if patt in rl: dtit = rl[rl.find(patt) + len(patt):].spl...
32,903
https://github.com/LucasAbijmil/ViewBuilders/blob/master/Example/ViewBuilders/ExampleView.swift
Github Open Source
Open Source
MIT
2,022
ViewBuilders
LucasAbijmil
Swift
Code
182
653
// // Copyright (c) 2021 Lucas Abijmil. All rights reserved. // import SwiftUI import ViewBuilders struct ExampleView: View { var body: some View { NavigationView { List(Sample.allCases, rowContent: \.content) .navigationTitle("ViewBuilders Example") } } } enum Sample: String, Identifiabl...
24,196
https://github.com/foam-framework/foam2/blob/master/src/foam/graphics/LegendEntries.js
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-generic-cla
2,023
foam2
foam-framework
JavaScript
Code
70
198
/** * @license * Copyright 2018 The FOAM Authors. All Rights Reserved. * http://www.apache.org/licenses/LICENSE-2.0 */ foam.CLASS({ package: 'foam.graphics', name: 'LegendEntries', extends: 'foam.core.Property', documentation: 'LegendEntries [ name , value [ float ] ]', properties: [ { class: '...
14,997
https://github.com/XYY1010/JunParking/blob/master/app/src/main/java/com/example/xyy/junparking/CheckActivity.java
Github Open Source
Open Source
Apache-2.0
2,018
JunParking
XYY1010
Java
Code
265
1,167
package com.example.xyy.junparking; import android.content.Intent; import android.graphics.Color; import android.os.Build; import android.os.Bundle; import android.support.design.widget.TabLayout; import android.support.v4.app.Fragment; import android.support.v4.view.ViewPager; import android.support.v7.app.AppCompatA...
22,294
https://github.com/Constantinuous/Angus/blob/master/presentation/src/test/kotlin/de/constantinuous/dietrich/presentation/test/RectangleMatchers.kt
Github Open Source
Open Source
MIT
null
Angus
Constantinuous
Kotlin
Code
96
283
package de.constantinuous.dietrich.presentation.test import io.kotlintest.matchers.Matcher import io.kotlintest.matchers.ToleranceMatcher import javafx.scene.shape.Rectangle /** * Created by RichardG on 26.02.2017. */ fun matchBoundsOf(expected: Rectangle): Matcher<Rectangle> = object : Matcher<Rectangle> { ov...
32,060
https://github.com/Takym/ExapisSOP/blob/master/IO/Logging/LoggingSystemService.cs
Github Open Source
Open Source
MIT
2,020
ExapisSOP
Takym
C#
Code
839
3,164
/**** * ExapisSOP * Copyright (C) 2020 Takym. * * distributed under the MIT License. ****/ using System; using System.Diagnostics; using System.IO; using System.Linq; using System.Threading.Tasks; using ExapisSOP.Core; using ExapisSOP.IO.Settings; using ExapisSOP.IO.Settings.CommandLine; namespace ExapisSOP.IO.Lo...
30,454
https://github.com/fmarchioni/mastertheboss/blob/master/quarkus/vuejs-demo/src/test/java/com/mastertheboss/jaxrs/CustomerEndpointTest.java
Github Open Source
Open Source
LicenseRef-scancode-warranty-disclaimer, MIT
2,023
mastertheboss
fmarchioni
Java
Code
28
131
package com.mastertheboss.jaxrs; import io.quarkus.test.junit.QuarkusTest; import org.junit.jupiter.api.Test; import jakarta.json.Json; import jakarta.json.JsonObject; import static io.restassured.RestAssured.given; import static org.hamcrest.CoreMatchers.containsString; @QuarkusTest public class CustomerEndpointTe...
48,564
https://github.com/duzun/p2peg.js/blob/master/lib/sha1.js
Github Open Source
Open Source
MIT
2,017
p2peg.js
duzun
JavaScript
Code
729
2,000
/** * sha1 hash algorithm. * * sha1(data: string[, isByteStream: bool]): hex string * * 'string'.sha1([isByteStream: bool]): hex string * * if isByteStream is undefined, * it defaults to TRUE if input string has multibyte chars * and defaults to FALSE if input string doesn't have multibyte chars ...
30,834
https://github.com/jason71319jason/Interview-solved/blob/master/GeeksforGeeks/reverse_string_with_special_char.py
Github Open Source
Open Source
MIT
2,022
Interview-solved
jason71319jason
Python
Code
157
417
#! /usr/bin/python # -*- coding: utf-8 -*- """ Reverse an array without affecting special characters Given a string, that contains special character together with alphabets (‘a’ to ‘z’ and ‘A’ to ‘Z’), reverse the string in a way that special characters are not affected. Examples: Input: str = "a,b$c" Output: str...
9,037
https://github.com/readablesystems/sto/blob/master/benchmark/tpcc_dn.cc
Github Open Source
Open Source
MIT
2,021
sto
readablesystems
C++
Code
19
76
#include "TPCC_bench.hh" #include "TPCC_txns.hh" using namespace tpcc; int tpcc_dn(int argc, char const* const* argv) { return tpcc_access<db_default_node_params>::execute(argc, argv); }
50,491
https://github.com/apache/openoffice/blob/master/main/setup_native/source/win32/customactions/reg4msdoc/registry.cxx
Github Open Source
Open Source
Apache-2.0, CPL-1.0, bzip2-1.0.6, LicenseRef-scancode-other-permissive, Zlib, LZMA-exception, LGPL-2.0-or-later, LicenseRef-scancode-free-unknown, LicenseRef-scancode-philippe-de-muyter, OFL-1.1, LGPL-2.1-only, MPL-1.1, X11, LGPL-2.1-or-later, GPL-2.0-only, OpenSSL, LicenseRef-scancode-cpl-0.5, GPL-1.0-or-later, NPL-1....
2,023
openoffice
apache
C++
Code
597
1,650
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
13,942
https://github.com/arrow-kt/kotlin/blob/master/plugins/lombok/lombok-compiler-plugin/src/org/jetbrains/kotlin/lombok/config/AccessLevel.kt
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, Apache-2.0
2,022
kotlin
arrow-kt
Kotlin
Code
107
332
/* * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ package org.jetbrains.kotlin.lombok.config import org.jetbrains.kotlin.descriptors.DescriptorVisibility impor...
17,892
https://github.com/code-hunger/lecture-notes/blob/master/samples/02_oop/2017/string/string.h
Github Open Source
Open Source
MIT
2,021
lecture-notes
code-hunger
C
Code
103
278
#include <iostream> class String { private: char *buff; size_t capacity; size_t length; public: String (); String (const char*); String (const String&); bool operator != (const String&) const; String& operator = (const String&); bool operator == (const String&) const; bool operator > (const Strin...
8,038
https://github.com/boba761/NTNMR_conf/blob/master/Src/Calculations/Values/Value.cs
Github Open Source
Open Source
MIT
null
NTNMR_conf
boba761
C#
Code
1,203
3,121
using System; using System.Collections.Generic; using System.Globalization; using System.Xml.Serialization; using Calculations.Expressions; using Tools.Interfaces; namespace Calculations.Values { /// <summary> /// Базовый класс для значений /// </summary> [XmlInclude( typeof( AttenuationValue ) )] ...
40,915
https://github.com/featureflow/featureflow-javascript-sdk/blob/master/scripts/bower.js
Github Open Source
Open Source
Apache-2.0
null
featureflow-javascript-sdk
featureflow
JavaScript
Code
81
269
const execSync = require('child_process').execSync; const inInstall = require('in-publish').inInstall; const packageJson = require('../package.json'); const bowerRepo = 'https://github.com/featureflow/featureflow-client-bower.git'; const bowerTempPath = '_bower'; if (inInstall()) { process.exit(0); } function exec...
42,074
https://github.com/QiangzhenZhu/wangguanran/blob/master/app/src/main/java/com/a10835/easywol/fragment/HomeFragment.java
Github Open Source
Open Source
Apache-2.0
null
wangguanran
QiangzhenZhu
Java
Code
1,026
3,662
package com.a10835.easywol.fragment; import android.app.DatePickerDialog; import android.content.ContentValues; import android.content.Context; import android.content.Intent; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.nfc.Tag; import android.os.AsyncTask; import andro...
20,476
https://github.com/maosongfu/heron/blob/master/third_party/pex/_pex.py
Github Open Source
Open Source
Apache-2.0
2,016
heron
maosongfu
Python
Code
830
2,684
#!/usr/bin/env python2.7 from __future__ import print_function import os import sys import functools import shutil import tempfile import optparse import zipfile # Try to detect if we're running from source via the repo. Add appropriate # deps to our python path, so we can find the twitter libs and # setuptools at ...
10,332
https://github.com/angelina008/TCP-MultiClient-Server-ChatRoom/blob/master/final_tcp_chat/src/final_tcp_chat/ThreadClass.java
Github Open Source
Open Source
Unlicense
null
TCP-MultiClient-Server-ChatRoom
angelina008
Java
Code
205
747
package final_tcp_chat; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.net.Socket; public class ThreadClass extends Thread{ Socket socket; TcpServer server; private Client client; private ObjectOutputStream oos; private ObjectInputStream ois; public ThreadClass(Socket socke...
18,149
https://github.com/JulianP98/runelite/blob/master/runelite-client/src/main/java/net/runelite/client/plugins/gauntlet/GauntletConfig.java
Github Open Source
Open Source
BSD-2-Clause
2,019
runelite
JulianP98
Java
Code
1,014
2,567
/* * Copyright (c) 2019, kThisIsCvpv <https://github.com/kThisIsCvpv> * Copyright (c) 2019, ganom <https://github.com/Ganom> * Copyright (c) 2019, kyle <https://github.com/Kyleeld> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided...
2,112
https://github.com/amenarde/Sapling/blob/master/Sapling/app/src/main/java/cis350/upenn/edu/sapling/DisplayActivity.java
Github Open Source
Open Source
MIT
2,018
Sapling
amenarde
Java
Code
840
3,072
package cis350.upenn.edu.sapling; import android.content.Context; import android.graphics.Color; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.GridView; import android.widget.L...
6,599
https://github.com/Satyam/ReaCTC/blob/master/webClient/containers/adminSectores/__tests__/__snapshots__/index.js.snap
Github Open Source
Open Source
MIT
2,018
ReaCTC
Satyam
null
Spoken
374
1,166
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`composition - fetchMock calls 1`] = ` Array [ Array [ "http://localhost:8080/data/v2/sectores/", Object { "body": undefined, "credentials": "include", "headers": Object { "Accept": "application/json", "Authorization": "", ...
16,634
https://github.com/chrisorwa/ultrametric/blob/master/distances.R
Github Open Source
Open Source
Apache-2.0
2,016
ultrametric
chrisorwa
R
Code
68
261
#load library library(stringdist) #settings MAX = 1000000 #calculate ultrametric distance ultrametric <-function(a,b,c){ #calculate ultrametric distance x = 2^-(stringdist(a,b,method = 'osa')) y = 2^-(stringdist(a,c,method = 'osa')) z = 2^-(stringdist(b,c,method = 'osa')) compute = list(round(x*MAX,4),...
41,424
https://github.com/PlumpMath/httplock/blob/master/test/tests.js
Github Open Source
Open Source
Apache-2.0
2,015
httplock
PlumpMath
JavaScript
Code
1,067
4,233
var assert = require('assert') , httplock = require('../') , http = require('http') , async = require('async'); http.globalAgent.maxSockets = 20000; var no_log = { info: function () {}, warn: function () {}, error: function () {}, }; describe('APIs', function () { it('are present', funct...
42,976
https://github.com/wangxilu123/yanxinFacePay/blob/master/ruoyi-system/src/main/java/com/ruoyi/system/mapper/AdvertisementMapper.java
Github Open Source
Open Source
MIT
2,020
yanxinFacePay
wangxilu123
Java
Code
60
267
package com.ruoyi.system.mapper; import java.util.List; import org.apache.ibatis.annotations.Param; import com.ruoyi.system.domain.Advertisement; import com.ruoyi.system.domain.AdvertisementExample; public interface AdvertisementMapper { long countByExample(AdvertisementExample example); int deleteByExampl...
47,508
https://github.com/briehl/kbase-ui-plugin-dashboard/blob/master/src/plugin/iframe_root/modules/widgets/CollaboratorsWidget.js
Github Open Source
Open Source
MIT
null
kbase-ui-plugin-dashboard
briehl
JavaScript
Code
105
345
define([ './DashboardWidget', 'kb_service/serviceApi', 'bluebird' ], function (DashboardWidget, ServiceApi, Promise) { 'use strict'; const Widget = Object.create(DashboardWidget, { init: { value: function (cfg) { cfg.name = 'CollaboratorsWidget'; c...
21,260
https://github.com/gpvigano/DigitalScenarioFramework/blob/master/DiScenFw/src/JSON/JsonScenarioWriter.cpp
Github Open Source
Open Source
MIT
2,021
DigitalScenarioFramework
gpvigano
C++
Code
331
1,653
//--------------------------------------------------------------------// // Digital Scenario Framework // // by Giovanni Paolo Vigano', 2021 // //--------------------------------------------------------------------// // // Distributed under the ...
52,872
https://github.com/BalovaElena/devtools-course-practice/blob/master/modules/ustiuzhanin_n_hashmap/include/hashmap.h
Github Open Source
Open Source
CC-BY-4.0
null
devtools-course-practice
BalovaElena
C
Code
241
720
 // Copyright 2022 Ustiuzhanin Nikita #ifndef MODULES_USTIUZHANIN_N_HASHMAP_INCLUDE_HASHMAP_H_ #define MODULES_USTIUZHANIN_N_HASHMAP_INCLUDE_HASHMAP_H_ const int default_size = 101; #include <exception> #include <string> #include <iostream> template<class T, class K> class Record { public: explicit Record(T...
7,267
https://github.com/83945105/weview/blob/master/packages/table/src/render-table-thead.js
Github Open Source
Open Source
MIT
2,019
weview
83945105
JavaScript
Code
56
187
import RenderThead from './render-thead.js'; import RenderColgroup from './render-colgroup.js'; export default { components: {RenderThead, RenderColgroup}, render(h) { return h('table', { 'class': { 'we-table-content': true } }, [ h('render-colgroup', { props: { ...
11,108
https://github.com/hetang/BCC/blob/master/src/com/bcc/AddBCCManage.java
Github Open Source
Open Source
MIT
2,018
BCC
hetang
Java
Code
206
889
package com.bcc; import java.util.ArrayList; import java.util.List; import com.bcc.util.Facade; import com.bcc.util.adaptor.ManageBCCListAdaptor; import com.sdsu.bcc.database.data.CardInformation; import android.app.ListActivity; import android.app.ProgressDialog; import android.content.res.Configuration; import and...
43,230
https://github.com/autostructure/secure_windows/blob/master/manifests/stig/v73705.pp
Github Open Source
Open Source
Apache-2.0
2,019
secure_windows
autostructure
null
Spoken
44
133
# V-73705 # The default permissions of global system objects must be strengthened. class secure_windows::stig::v73705 ( Boolean $enforced = false, ) { if $enforced { registry::value { 'v73705': key => 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager', value => 'ProtectionMode...
51,452
https://github.com/HEYAHONG/SimpleMQTTGateWayStack/blob/master/lib/include/libSMGS.h
Github Open Source
Open Source
MIT
null
SimpleMQTTGateWayStack
HEYAHONG
C
Code
1,530
9,548
/** \file libSMGS.h * \brief 简易MQTT网关协议栈头文件 * \author 何亚红 * \version 20220208 * \date 2022 * \copyright MIT License. */ #ifndef __libSMGS_h__ #define __libSMGS_h__ #ifdef __cplusplus extern "C" { #endif // __cplusplus /* 默认配置 */ #include "libSMGS_DefaultConfig.h" /* ======================...
43,475
https://github.com/Tifferson/tiffbcc/blob/master/application/controllers/Rins.php
Github Open Source
Open Source
MIT
null
tiffbcc
Tifferson
PHP
Code
35
166
<? class Rins extends OC_Controller{ function __construct(){ parent::__construct(); $this->title = "RIN Management"; $this->main_nav = "reporting"; $this->nav_active = "rins"; $this->path_prefix = 'rins/'; $this->load->model(array("Rin")); } function index(){ $data['rins'] = $this->rin->get_...
51,402
https://github.com/magefree/mage/blob/master/Mage.Sets/src/mage/cards/v/VigilForTheLost.java
Github Open Source
Open Source
MIT
2,023
mage
magefree
Java
Code
257
979
package mage.cards.v; import java.util.UUID; import mage.abilities.Ability; import mage.abilities.TriggeredAbilityImpl; import mage.abilities.costs.mana.ManaCostsImpl; import mage.abilities.effects.OneShotEffect; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; import mage....
16,020
https://github.com/brandonbraun653/Thor_STM32/blob/master/hld/clock/hld_clock_types.hpp
Github Open Source
Open Source
MIT
null
Thor_STM32
brandonbraun653
C++
Code
187
440
/******************************************************************************** * File Name: * hld_clock_types.hpp * * Description: * Thor Clock types * * 2019-2020 | Brandon Braun | brandonbraun653@gmail.com ********************************************************************************/ #pragma o...
51,029
https://github.com/evandrogrm/chat/blob/master/src/TeamsConfig.js
Github Open Source
Open Source
MIT
null
chat
evandrogrm
JavaScript
Code
13
70
module.exports = { clientId: process.env.REACT_APP_APP_ID, authPopupUrl: process.env.REACT_APP_REDIRECT_URI || '', scopes: process.env.REACT_APP_SCOPES.split(' '), };
21,528
https://github.com/branko-vukmirovic/travis-web/blob/master/tests/integration/components/repository-status-toggle-test.js
Github Open Source
Open Source
MIT
2,018
travis-web
branko-vukmirovic
JavaScript
Code
75
248
import { module, test } from 'qunit'; import { setupRenderingTest } from 'ember-qunit'; import { render } from '@ember/test-helpers'; import hbs from 'htmlbars-inline-precompile'; module('RepositoryStatusToggleComponent', function (hooks) { setupRenderingTest(hooks); test('it switches state when clicked', async f...
15,064
https://github.com/Aitend/magma/blob/master/fbinternal/cloud/go/services/testcontroller/test_init/test_controller_test_service_init.go
Github Open Source
Open Source
BSD-3-Clause
2,022
magma
Aitend
Go
Code
219
832
/* * Copyright 2020 The Magma Authors. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, *...
7,383
https://github.com/senseiwells/Arucas/blob/master/src/main/java/me/senseiwells/arucas/nodes/MemberAccessNode.java
Github Open Source
Open Source
MIT
2,021
Arucas
senseiwells
Java
Code
119
430
package me.senseiwells.arucas.nodes; import me.senseiwells.arucas.throwables.CodeError; import me.senseiwells.arucas.throwables.RuntimeError; import me.senseiwells.arucas.throwables.ThrowValue; import me.senseiwells.arucas.utils.Context; import me.senseiwells.arucas.values.StringValue; import me.senseiwells.arucas.val...
5,647
https://github.com/nroper/foundations/blob/master/packages/admin-portal/src/components/ui/__tests__/disable-member-modal.test.tsx
Github Open Source
Open Source
MIT
2,021
foundations
nroper
TSX
Code
170
554
import React from 'react' import * as ReactRedux from 'react-redux' import { mount } from 'enzyme' import configureStore from 'redux-mock-store' import appState from '@/reducers/__stubs__/app-state' import SetMemberStatusModal, { DisableMemberModalProps, handleDisableMember, handleDisableMemberSuccess, } from '.....
37,999
https://github.com/ken-hu/hui-cloud-platform/blob/master/cloud-auth/cloud-auth-web/src/main/java/com/hui/cloud/auth/mapper/ClientDetailMapper.java
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,020
hui-cloud-platform
ken-hu
Java
Code
33
131
package com.hui.cloud.auth.mapper; import com.hui.cloud.auth.entity.ClientDetail; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.springframework.stereotype.Repository; /** * <p> * Oauth客户端表 Mapper 接口 * </p> * * @author Gary.hu * @since 2019-09-19 */ @Repository public interface ClientDetail...
32,455
https://github.com/msdgwzhy6/HUAWEI-HMS-MLKit-Sample/blob/master/MLKit-Sample/app/src/main/java/com/mlkit/sample/util/SharedPreferencesUtil.java
Github Open Source
Open Source
Apache-2.0
2,020
HUAWEI-HMS-MLKit-Sample
msdgwzhy6
Java
Code
210
578
/** * Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 *...
18,388
https://github.com/skilcoyne3/BestSpot/blob/master/www/css/index/uib_row_2.less
Github Open Source
Open Source
BSD-3-Clause
null
BestSpot
skilcoyne3
Less
Code
163
652
@gutter_r1: 20px; .uib_row_2 > .col { padding-left:(@gutter_r1 / 2); padding-right:(@gutter_r1 / 2); } @media all and (min-width: @wp_1) { .uib_col_5 { width:17%;} .urow.cright > .uib_col_5 { padding-left: 0px !important;} .urow:not(.cright) > .uib_col_5 { clear:left; padding-left: 0px !import...
13,471
https://github.com/whunmr/msgrpc/blob/master/msgrpc/include/msgrpc/core/typedefs.h
Github Open Source
Open Source
Apache-2.0
2,017
msgrpc
whunmr
C
Code
36
137
#ifndef MSGRPC_TYPEDEFS_H #define MSGRPC_TYPEDEFS_H #include <boost/asio/ip/udp.hpp> namespace msgrpc { typedef unsigned short msg_id_t; typedef long long timeout_len_t; typedef boost::asio::ip::udp::endpoint service_id_t; //typedef unsigned short service_id_t; //TODO: how to deal with different serv...
37,839
https://github.com/angularsnipp/divis/blob/master/src/utils.js
Github Open Source
Open Source
MIT
2,016
divis
angularsnipp
JavaScript
Code
129
308
/** * Polygon function */ export function polygon(d) { if (!d.length) return; return 'M' + d.join('L') + 'Z' } /** * Find the nodes within the specified rectangle. */ export function quadTreeSearch(quadtree, extent, xAccessor, yAccessor) { const x0 = extent[0][0], y0 = extent[0][1], x3 = extent[1...
9,664
https://github.com/boothby/repiet/blob/master/repiet/_backends/cpp.py
Github Open Source
Open Source
MIT
2,022
repiet
boothby
Python
Code
323
1,093
from repiet._backends.generic import backend import subprocess class cppbackend(backend): def define(self, name, ops, dest): if dest is None: return "{}: {}return 0;".format(name, ops) else: return "{}: {}goto {};".format(name, ops, dest) def pointer(self, options): ...
11,487
https://github.com/Simspace/nivo/blob/master/packages/swarmplot/src/SwarmPlotAnnotations.tsx
Github Open Source
Open Source
MIT
null
nivo
Simspace
TypeScript
Code
55
185
import { Annotation } from '@simspace/nivo-annotations' import { ComputedDatum, SwarmPlotSvgProps } from './types' import { useSwarmPlotAnnotations } from './hooks' export const SwarmPlotAnnotations = <RawDatum,>({ nodes, annotations, }: { nodes: ComputedDatum<RawDatum>[] annotations: SwarmPlotSvgProps...
51,047
https://github.com/petterlopes/ConfuserEx/blob/master/dnlib/src/DotNet/Pdb/PdbState.cs
Github Open Source
Open Source
MIT
2,020
ConfuserEx
petterlopes
C#
Code
979
2,926
// dnlib: See LICENSE.txt for more info using dnlib.DotNet.Emit; using System; using System.Collections.Generic; using System.Diagnostics.SymbolStore; namespace dnlib.DotNet.Pdb { /// <summary> /// PDB state for a <see cref="ModuleDef"/> /// </summary> public sealed class PdbState { priva...
9,725
https://github.com/SebastianEngelmann/fbinjuries/blob/master/tests/testthat/test_analyze.R
Github Open Source
Open Source
MIT
2,015
fbinjuries
SebastianEngelmann
R
Code
77
248
test_that("analyze_correctness", { days <- sample(x = 1:300, size = 500, replace = TRUE) injname <- rep(x = "depression", 500) data <- data.frame(injname, days) result <- summary(data$days) expect_that(analyze(injury = "depression", data = data)[[1]], equals(result[[1]], tolerance = 0.5)) expect_that(analyz...
4,711
https://github.com/ginanjarn/pythontools/blob/master/core/server/pytools/api/rpc.py
Github Open Source
Open Source
MIT
null
pythontools
ginanjarn
Python
Code
713
2,501
"""rpc message interface""" from enum import Enum from typing import Dict, Any, Optional from io import StringIO import json import time # fmt: off # RPC KEYS ID = "id" METHOD = "method" PARAMS = "params" RESULTS = "results" ERROR = "error" # ERROR CODE = "code" MESSAGE = "m...
31,224
https://github.com/c3sr/comm_scope/blob/master/src/hipMemcpyAsync/CMakeLists.txt
Github Open Source
Open Source
Apache-2.0
2,023
comm_scope
c3sr
CMake
Code
10
153
if(SCOPE_USE_HIP) set(comm_SOURCES ${comm_SOURCES} ${CMAKE_CURRENT_LIST_DIR}/pageable_to_gpu.cpp ${CMAKE_CURRENT_LIST_DIR}/pinned_to_gpu.cpp ${CMAKE_CURRENT_LIST_DIR}/gpu_to_pageable.cpp ${CMAKE_CURRENT_LIST_DIR}/gpu_to_pinned.cpp ${CMAKE_CURRENT_LIST_DIR}/gpu_to_gpu.cpp PARENT_SCOPE) endif(...
37,655
https://github.com/anuracode/forms_controls/blob/master/Anuracode.Forms.Controls.Sample/Anuracode.Forms.Controls.Sample/Views/BaseView.cs
Github Open Source
Open Source
Apache-2.0
2,020
forms_controls
anuracode
C#
Code
169
472
// <copyright file="BaseView.cs" company="Anura Code"> // All rights reserved. // </copyright> // <author>Alberto Puyana</author> using Xamarin.Forms; namespace Anuracode.Forms.Controls.Sample.Views { /// <summary> /// Base view. /// </summary> public class BaseView : ContentPage { /// <s...
27,798