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/francoishill/MicroFlow/blob/master/MicroFlow.sln
Github Open Source
Open Source
MIT
2,017
MicroFlow
francoishill
null
Spoken
465
4,952
 Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 VisualStudioVersion = 14.0.24720.0 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MicroFlow", "src\MicroFlow.csproj", "{261D091D-3793-4492-B6A8-41E6C0A4DC8B}" EndProject Project("{FAE04EC0-30...
42,962
https://github.com/egovernments/DIGIT-OSS/blob/master/frontend/micro-ui/web/micro-ui-internals/packages/modules/fsm/src/pages/employee/ApplicationDetails/config/AcceptDso.js
Github Open Source
Open Source
MIT, LicenseRef-scancode-generic-cla
2,023
DIGIT-OSS
egovernments
JavaScript
Code
126
518
import React from "react"; import { CardLabelError, Dropdown } from "@egovernments/digit-ui-react-components"; export const configAcceptDso = ({ t, dsoData, dso, selectVehicleNo, vehicleNoList, vehicleNo, vehicle, noOfTrips, action }) => { return { label: { heading: `ES_FSM_ACTION_TITLE_${action}`, s...
12,073
https://github.com/stevk/glTF-Asset-Generator/blob/master/Source/Runtime/MeshPrimitive.cs
Github Open Source
Open Source
MIT
null
glTF-Asset-Generator
stevk
C#
Code
271
616
using System.Collections.Generic; namespace AssetGenerator.Runtime { /// <summary> /// Runtime abstraction for glTF Mesh Primitive /// </summary> internal class MeshPrimitive { public bool? Interleave { get; set; } /// <summary> /// Material for the mesh primitive ...
42,240
https://github.com/karmab/kcli/blob/master/kvirt/cluster/openshift/disconnected/scripts/02_packages.sh
Github Open Source
Open Source
Apache-2.0
2,023
kcli
karmab
Shell
Code
36
98
if [ "$(which dnf)" != "" ] ; then echo "fastestmirror=1" >> /etc/dnf/dnf.conf dnf -y install podman httpd httpd-tools jq skopeo libseccomp-devel haproxy else apt-get update apt-get -y install podman apache2 apache2-utils jq skopeo haproxy fi
11,504
https://github.com/AbuBakkar32/ML-DL-NLP-TP-FE-MP/blob/master/NLP Text Preprocessing Code/stemming.py
Github Open Source
Open Source
MIT
2,020
ML-DL-NLP-TP-FE-MP
AbuBakkar32
Python
Code
50
132
# -*- coding: utf-8 -*- #Stemming #Import Libraries from nltk.tokenize import word_tokenize from nltk.stem.lancaster import LancasterStemmer l_s = LancasterStemmer() new_text = "It is important to by very pythonly while you are pythoning\ with python. All pythoners have pythoned poorly at least once." ...
48,152
https://github.com/carstenkiefer/SwagImportExport/blob/master/Tests/Functional/Components/Service/DataWorkflowTest.php
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,023
SwagImportExport
carstenkiefer
PHP
Code
293
1,498
<?php declare(strict_types=1); /** * (c) shopware AG <info@shopware.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace SwagImportExport\Tests\Functional\Components\Service; use Doctrine\DBAL\Connection; use Doctrine\DB...
47,812
https://github.com/Kritagya61/TweetVouch/blob/master/client/src/components/Homepage.js
Github Open Source
Open Source
MIT
null
TweetVouch
Kritagya61
JavaScript
Code
686
2,183
//To show the TweetDetails of The THe User and his Friends From Past Three Days import Header from "./Header"; import React, { Component } from "react"; import InfiniteScroll from "react-infinite-scroll-component"; import DomainDisplay from "./Domain"; import User from "./User"; import Loading from "./Loading"; impor...
41,823
https://github.com/Simulators/PiBusRaider/blob/master/PiSw/src/System/UartMini.cpp
Github Open Source
Open Source
MIT
2,022
PiBusRaider
Simulators
C++
Code
332
1,170
// Bus Raider // Rob Dobson 2018 #include "UartMini.h" #include "BCM2835.h" #include "CInterrupts.h" #include "nmalloc.h" #include "lowlib.h" #include <stddef.h> volatile unsigned int UartMini::rxhead; volatile unsigned int UartMini::rxtail; volatile unsigned char UartMini::rxbuffer[RXBUFMASK + 1]; UartMini::UartMin...
38,168
https://github.com/oleg-savenok/redi-nuxt-boilerplate/blob/master/store/mouse.js
Github Open Source
Open Source
MIT
2,022
redi-nuxt-boilerplate
oleg-savenok
JavaScript
Code
147
415
/* [store] Mouse */ export const state = () => ({ isVisible: false, position: { x: 0, y: 0 }, alpha: 0, scale: 1, icon: '', duration: { move: 0.1, hover: 0.2, show: 0.1, hide: 0.1, }, }); export const mutations = { setMousePosition(state, { x, y }) { state.position = { x, y }; }, setMouseScale(sta...
13,042
https://github.com/TcTOrz/laravel-vue-backend/blob/master/app/Mail/RegisterVerify.php
Github Open Source
Open Source
MIT
2,020
laravel-vue-backend
TcTOrz
PHP
Code
118
386
<?php /* * @Author: Li Jian * @Date: 2020-07-08 16:48:48 * @LastEditTime: 2020-07-09 09:57:49 * @LastEditors: Li Jian * @Description: * @FilePath: /water-environment-end/app/Mail/RegisterVerify.php * @Motto: MMMMMMMM */ namespace App\Mail; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQue...
36,912
https://github.com/Bangrejas/Perpustakaan-Laravel-CRUD/blob/master/resources/views/create.blade.php
Github Open Source
Open Source
MIT
2,019
Perpustakaan-Laravel-CRUD
Bangrejas
Blade
Code
110
588
<!-- create.blade.php --> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Daftar buku</title> <link rel="stylesheet" href="{{asset('css/app.css')}}"> </head> <body> <div class="container" style="margin-top:20px"><br/> <h2>Tambah Buku Baru</h2><br/> <form method="post" act...
26,741
https://github.com/MoAboabdo/BaianatTask/blob/master/src/follower/follower.resolver.ts
Github Open Source
Open Source
MIT
null
BaianatTask
MoAboabdo
TypeScript
Code
149
561
import { Resolver, Query, Mutation, Args, ResolveField, Parent, } from '@nestjs/graphql'; import { FollowerService } from './follower.service'; import { Follower } from './entities/follower.entity'; import { CreateFollowerInput } from './dto/create-follower.input'; import { UsersService } from '../users/use...
18,196
https://github.com/ivan-rozhon/php_cms_nosql/blob/master/src/_core/admin/admin-app/app/app.module.ts
Github Open Source
Open Source
MIT
null
php_cms_nosql
ivan-rozhon
TypeScript
Code
224
554
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { HttpClientModule } from '@angular/common/http'; // ngrx/platform modules import { StoreModule } from '@ngrx/store'; import { StoreRouterConnectingModule, RouterStateSerializer } from '@ngrx/router-store'; impo...
25,466
https://github.com/Rudi9719/booksearch-web/blob/master/views/partials/scripts.tpl
Github Open Source
Open Source
Apache-2.0
null
booksearch-web
Rudi9719
null
Spoken
24
158
% include('views/partials/script', path='/static/jquery/dist/jquery', minified=True) % include('views/partials/script', path='/static/bootstrap/dist/js/bootstrap', minified=True) % include('views/partials/script', path='/static/js/index', minified=True) % include('views/partials/script', path='/static/js/login', minifi...
2,494
https://github.com/CoderJJMa/CollectionView-MVVM-/blob/master/CollectionViewDemo(MVVM)/Common/category/NSString+Time.h
Github Open Source
Open Source
Apache-2.0
null
CollectionView-MVVM-
CoderJJMa
C
Code
32
130
// // NSString+Time.h // CollectionViewDemo(MVVM) // // Created by majianjie on 2019/4/10. // Copyright © 2019 majianjie. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface NSString (Time) + (NSString*)getDateTextWithTimeStamp:(long long)timeStamp; @end NS_ASSUME_N...
5,517
https://github.com/SvenHinze/SpatioTemporalReprojection/blob/master/Source/Falcor/Raytracing/RtProgramVarsHelper.h
Github Open Source
Open Source
BSD-3-Clause
2,020
SpatioTemporalReprojection
SvenHinze
C
Code
1,193
4,416
/*************************************************************************** # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # * Redistributions of...
30,027
https://github.com/chtoucas/Narvalo.NET/blob/master/samples/MvpWebForms/Common/Presenters/DynamicallyLoadedPresenter.cs
Github Open Source
Open Source
BSD-2-Clause
2,021
Narvalo.NET
chtoucas
C#
Code
47
146
// Copyright (c) Narvalo.Org. All rights reserved. See LICENSE.txt in the project root for license information. namespace MvpWebForms.Presenters { using MvpWebForms.Views; using Narvalo.Mvp; public sealed class DynamicallyLoadedPresenter : Presenter<IDynamicallyLoadedView> { public Dynamicall...
39,660
https://github.com/dsoskey/dr4ft/blob/master/frontend/src/basiclands.ts
Github Open Source
Open Source
MIT
null
dr4ft
dsoskey
TypeScript
Code
468
1,845
/* The below script can be used to generate a different set of lands * The data used here is for MTGO + MTGA exports, which prefer to know extra details beyond card name. * * ## Use * 1. uncomment below lines * 2. change the 'set' code (keeping in mind must be > Ixalan for Arena) * 3. run $ node frontend/src/basi...
18,527
https://github.com/ericmutta/samples/blob/master/snippets/csharp/VS_Snippets_CLR_System/system.String.TrimStart/cs/sample.cs
Github Open Source
Open Source
CC-BY-4.0, MIT
2,019
samples
ericmutta
C#
Code
404
1,002
using System; using System.Collections.Generic; public class TrimExample { // <Snippet3> public static void Main() { string[] lines = {"using System;", "", "public class HelloWorld", "{", " public static ...
2,526
https://github.com/divyapy/odoo/blob/master/mg_approval/wizard/pr_withdraw_wizard.py
Github Open Source
Open Source
MIT
null
odoo
divyapy
Python
Code
91
410
# -*- coding: utf-8 -*- from odoo import api, fields, models, _ class PRApproveWizard(models.TransientModel): _name = 'pr.withdraw.wizard' _description = 'PR Withdram' # attributes cancel_attachment_id = fields.Binary(string="Attachment", attachment=True) att_id = fields.Many2one("ir.attachment")...
47,048
https://github.com/mmorehea/geopy/blob/master/geopy/300x200_Graphs/InvX^-1_75_300x500/22.ps
Github Open Source
Open Source
CC-BY-4.0, LicenseRef-scancode-unknown-license-reference
2,017
geopy
mmorehea
PostScript
Code
20,000
50,538
%!PS-Adobe-3.0 %%Creator: Steiner Tree Version 4.0 %%Copyright: Copyright (c) 1998, 2016 by David M. Warme. This work is licensed under a Creative Commons Attribution 4.0 International License. %%LanguageLevel: 1 %%DocumentNeededResources: font Times-Roman %%DocumentSuppliedResources: procset SteinerTreeProcs 2.0 0 %%E...
4,749
https://github.com/pavelkorolevxyz/bladerunner-desktop/blob/master/src/test/java/xyz/pavelkorolev/bladerunner/utils/TestData.kt
Github Open Source
Open Source
MIT
2,020
bladerunner-desktop
pavelkorolevxyz
Kotlin
Code
76
188
package xyz.pavelkorolev.bladerunner.utils import java.io.File /** * Helper to get test data */ object TestData { val directory = File("test-data") private val textDirectory = File(directory, "text") private val imagesDirectory = File(directory, "images") /** * Returns file by name */ ...
17,038
https://github.com/HETIC-MT-P2021/CQRSES_GROUP2/blob/master/internal/article/domain/repository/Article.go
Github Open Source
Open Source
MIT
2,021
CQRSES_GROUP2
HETIC-MT-P2021
Go
Code
197
686
package repository import ( "cqrses/pkg/storage/datastore" "sync" "time" "cqrses/internal/article/domain/entities" "cqrses/internal/pkg/service" "cqrses/pkg/storage" "cqrses/pkg/storage/eventstore" ) // ArticleRepository todo type ArticleRepository struct { service.Repository mux sync.RWMutex } func NewArt...
23,395
https://github.com/Tarpelite/OJ_research/blob/master/code/1812.c
Github Open Source
Open Source
MIT
null
OJ_research
Tarpelite
C
Code
72
307
#include <stdio.h> long long combination(long long m,long long n); int main() { long long m,n; scanf("%lld %lld",&m,&n); if(n>=m) { printf("1"); } else { if(n!=0&&m!=0) printf("%lld",combination(m,n)); if(n==0&&m!=0) printf("0"); }...
52,982
https://github.com/hajribaha/Esprit-Indoor/blob/master/app/src/main/java/com/example/espritindoor/Adapters/Adapter_Friend_profil.java
Github Open Source
Open Source
MIT
null
Esprit-Indoor
hajribaha
Java
Code
114
478
package com.example.espritindoor.Adapters; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import androidx.annotation.NonNull; import androidx.recyclerview.widget.RecyclerView; import com.example.espritindo...
32,643
https://github.com/obergfredrik/IV1350-Object_Oriented_Design/blob/master/saleprocess/src/se/kth/iv1350/saleProcess/dbhandler/DataBaseFailureException.java
Github Open Source
Open Source
BSD-2-Clause
2,020
IV1350-Object_Oriented_Design
obergfredrik
Java
Code
60
115
package se.kth.iv1350.saleProcess.dbhandler; /** * An exception class which is thrown when a database failure has occurred. */ public class DataBaseFailureException extends RuntimeException { /** * Creates an instance and logs a message which specifies that a database failure has happened. * @param m...
17,808
https://github.com/paulinus/libmv/blob/master/src/libmv/correspondence/feature_set.h
Github Open Source
Open Source
MIT
2,016
libmv
paulinus
C
Code
604
1,324
// Copyright (c) 2007, 2008 libmv authors. // // 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, merge, p...
45,334
https://github.com/Roleren/ORFik/blob/master/man/mapToGRanges.Rd
Github Open Source
Open Source
MIT
2,023
ORFik
Roleren
R
Code
146
441
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ORFs_helpers.R \name{mapToGRanges} \alias{mapToGRanges} \title{Map orfs to genomic coordinates} \usage{ mapToGRanges(grl, result, groupByTx = TRUE) } \arguments{ \item{grl}{A \code{\link{GRangesList}} of the original sequences that gave the o...
28,364
https://github.com/weisJ/darklaf/blob/master/windows/build.gradle.kts
Github Open Source
Open Source
MIT
2,023
darklaf
weisJ
Kotlin
Code
108
560
plugins { java `module-info-compile` id("dev.nokee.jni-library") id("dev.nokee.cpp-language") `uber-jni-jar` `use-prebuilt-binaries` } moduleInfo { stubModule("darklaf.core") stubModule("darklaf.platform.preferences") stubModule("darklaf.platform.decorations") } library { depen...
19,226
https://github.com/node-cpp/nan-async-worker-example/blob/master/native_async.cc
Github Open Source
Open Source
MIT
2,018
nan-async-worker-example
node-cpp
C++
Code
120
469
#include <nan.h> #include <node.h> #include <unistd.h> using namespace v8; using std::string; class Work { friend void WorkAsync (uv_work_t*); friend void WorkAsyncComplete (uv_work_t*, int); public: Work() = default; ~Work() = default; uv_work_t request; Persistent<Function> callback; private: string data...
10,036
https://github.com/Code-Blender-7/PyQt5-works/blob/master/PyQt5-research/basic/layout_8/layout_8.py
Github Open Source
Open Source
MIT
2,022
PyQt5-works
Code-Blender-7
Python
Code
122
650
# -*- coding: utf-8 -*- # @Author: Climax # @Date: 2022-04-27 23:02:15 # @Last Modified by: Climax # @Last Modified time: 2022-04-28 00:20:01 import sys from PyQt5.QtCore import Qt from PyQt5.QtWidgets import QApplication, QMainWindow, QWidget, QLabel, QStackedLayout, QHBoxLayout, QVBoxLayout, QPushButton from la...
50,436
https://github.com/giangb1710440/cooperative.com.vn/blob/master/database/migrations/2021_09_25_221443_create_farmer_diarys_table.php
Github Open Source
Open Source
MIT
null
cooperative.com.vn
giangb1710440
PHP
Code
64
379
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateFarmerDiarysTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('farmer_dia...
12,857
https://github.com/ohlincha/ECCE/blob/master/include/util/VizThumbnail.H
Github Open Source
Open Source
LicenseRef-scancode-warranty-disclaimer, ECL-2.0
2,017
ECCE
ohlincha
C++
Code
81
206
/** * @file * */ #ifndef VIZTHUMBNAIL_H_ #define VIZTHUMBNAIL_H_ #include <string> using std::string; #include <vector> using std::vector; class VizThumbnail { public: static void thumbnail(const string& whoami, const string& calcurl, int width = 64, int height = 64, ...
28,295
https://github.com/Baymxs/FIT-OOP/blob/master/C++/Lab_2/Commands/PlusCommand.cpp
Github Open Source
Open Source
MIT
2,019
FIT-OOP
Baymxs
C++
Code
79
263
// // Created by Bayramov Nidjat on 04.11.18. // #include "PlusCommand.h" #include "../CommandFactory.h" #include "../CommandCreators/PlusCommandCreator.h" #include "../StackCalculator.h" #include "../Exceptions/StackException.h" //Initialize the command before running main //Anonymous namespace namespace { //Gl...
26,299
https://github.com/gokhanphlvn/AspnetMicroservices/blob/master/src/BuildingBlocks/Common.Logging/SeriLogger.cs
Github Open Source
Open Source
MIT
null
AspnetMicroservices
gokhanphlvn
C#
Code
119
580
namespace Common.Logging { #region USINGS using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; using Polly; using Polly.Extensions.Http; using Serilog; using Serilog.Sinks.Elasticsearch; #endregion public static class SeriLogger { public static ...
41,614
https://github.com/CBraun94/computervision_parallelism/blob/master/src/examples/example_two.hpp
Github Open Source
Open Source
MIT
null
computervision_parallelism
CBraun94
C++
Code
167
673
#ifndef EXAMPLE_TWO_HPP_INCLUDED #define EXAMPLE_TWO_HPP_INCLUDED #include "../cbparallel/thread/cbthreadpool.hpp" #include "../cbparallel/task/cbtaskanonymous.hpp" #include "../cbparallel/task/cbtaskfor.hpp" #include "log.hpp" #include <sys/types.h> /* linux specific */ #include <unistd.h> /* linux specific */ #inc...
6,778
https://github.com/karamelchef/karamel/blob/master/karamel-core/src/main/resources/se/kth/karamel/backend/shellscripts/make_solo_rb.sc
Github Open Source
Open Source
Apache-2.0
2,023
karamel
karamelchef
Scala
Code
40
156
mkdir -p %install_dir_path% ; cd %install_dir_path%; echo $$ > %pid_file%; echo '#!/bin/bash set -eo pipefail %sudo_command% touch solo.rb %sudo_command% chmod 777 solo.rb cat > solo.rb <<-'END_OF_FILE' file_cache_path "%file_cache_path%" cookbook_path [%cookbooks_path%] %rubygems_url% END_OF_FILE' > make_solo_rb.sh ; ...
7,779
https://github.com/mmorehea/geopy/blob/master/geopy/300x200_Graphs/InvX^-1_75_300x500/497.ps
Github Open Source
Open Source
CC-BY-4.0, LicenseRef-scancode-unknown-license-reference
2,017
geopy
mmorehea
PostScript
Code
20,000
48,960
%!PS-Adobe-3.0 %%Creator: Steiner Tree Version 4.0 %%Copyright: Copyright (c) 1998, 2016 by David M. Warme. This work is licensed under a Creative Commons Attribution 4.0 International License. %%LanguageLevel: 1 %%DocumentNeededResources: font Times-Roman %%DocumentSuppliedResources: procset SteinerTreeProcs 2.0 0 %%E...
9,338
https://github.com/emory-libraries/style-guide-guide/blob/master/patterns/30-molecules-messaging-notification/30-molecules-messaging-notification.js
Github Open Source
Open Source
MIT
2,019
style-guide-guide
emory-libraries
JavaScript
Code
102
316
// Register a Notification component. Components.register('notification', { props: { uid: String }, data() { return { isDismissible: true, state: { dismissed: false } }; }, methods: { dismiss() { // Dismiss the notification for the remainder of the session....
38,032
https://github.com/bgroenks96/fg-tools/blob/master/net/src/main/java/com/forerunnergames/tools/net/events/remote/origin/server/InformEvent.java
Github Open Source
Open Source
MIT
2,017
fg-tools
bgroenks96
Java
Code
332
510
/* * Copyright © 2013 - 2016 Forerunner Games, LLC * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify,...
29,046
https://github.com/leejss/my-gatsby-site/blob/master/src/components/Contact/ContactContainer.tsx
Github Open Source
Open Source
MIT
null
my-gatsby-site
leejss
TypeScript
Code
78
184
import { graphql, useStaticQuery } from "gatsby"; import React, { useEffect } from "react"; import { useMove } from "../../contexts/useMove"; import { ContactQueryData } from "../../types"; import Contact from "./Contact"; const ContactContainer: React.FC = () => { const { setMove } = useMove(); useEffect(() => { ...
10,586
https://github.com/metvjo/WhatBuild/blob/master/WhatBuild.Core/Utils/LoLModeUtil.cs
Github Open Source
Open Source
MIT
null
WhatBuild
metvjo
C#
Code
134
389
using System; using System.Collections.Generic; using System.Text; using WhatBuild.Core.Enums; using WhatBuild.Core.Interfaces; namespace WhatBuild.Core.Utils { public class LoLModeUtil { /// <summary> /// Either returns champion position if LoLMode = classic (SR), /// Else, the mode ...
31,867
https://github.com/SyedUmerHasan/design-system/blob/master/packages/Molecules/types/Molecules/Card/index.d.ts
Github Open Source
Open Source
MIT
null
design-system
SyedUmerHasan
TypeScript
Code
12
23
export * from './src/Card'; export { default as Card } from './src/Card';
12,774
https://github.com/bkegley/luminate/blob/master/packages/backend/api/src/domain/Recipe/events/IRecipeDeletedEvent.ts
Github Open Source
Open Source
MIT
2,021
luminate
bkegley
TypeScript
Code
19
63
import {IDomainEvent} from '../../DomainEvent' export interface IRecipeDeletedEventData { id: string | number } export interface IRecipeDeletedEvent extends IDomainEvent<IRecipeDeletedEventData> {}
3,580
https://github.com/SkYNewZ/docker-fortnite-api/blob/master/src/models/user.ts
Github Open Source
Open Source
MIT
2,018
docker-fortnite-api
SkYNewZ
TypeScript
Code
130
336
export class FortniteUser { private id: number; private displayName: string; private platform: string; /** * Constructor * @param platform */ constructor(platform: string) { this.platform = platform; } /** * Getter $id * @return {number} */ public get $id(): number { return th...
11,330
https://github.com/mtsee/bbd-blog/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,018
bbd-blog
mtsee
Ignore List
Code
4
38
/node-server/node_modules /node-server/upload/file/images/* /node-web/node_modules /node-web/dist
50,563
https://github.com/yevster/terra-workspace-manager/blob/master/service/src/main/java/bio/terra/workspace/common/utils/GcpUtils.java
Github Open Source
Open Source
BSD-3-Clause
2,021
terra-workspace-manager
yevster
Java
Code
286
881
package bio.terra.workspace.common.utils; import bio.terra.cloudres.google.api.services.common.OperationCow; import bio.terra.cloudres.google.api.services.common.OperationUtils; import bio.terra.cloudres.google.cloudresourcemanager.CloudResourceManagerCow; import bio.terra.stairway.Step; import bio.terra.stairway.exce...
35,758
https://github.com/martonantoni/compolib/blob/master/primes.cpp
Github Open Source
Open Source
MIT
null
compolib
martonantoni
C++
Code
249
833
const size_t pregen_p_s=1'000'001; char is_not_prime[pregen_p_s]={ 0 }; vector<ll> primes; vector<pair<ll, ll>> factorization; // prime, count void CalcFactorization(ll x) { factorization.clear(); for (int i = 0; i < (int)primes.size() && x>1; ++i) { if (!is_not_prime[x]) // WARNING: x must be ...
12,419
https://github.com/gsantoni/ccCluster/blob/master/ccCluster/ccCluster.py
Github Open Source
Open Source
BSD-2-Clause-Views
2,022
ccCluster
gsantoni
Python
Code
401
1,292
#! /usr/bin/env python3 from __future__ import print_function, absolute_import __author__ = "Gianluca Santoni" __copyright__ = "Copyright 20150-2019" __credits__ = ["Gianluca Santoni, Alexander Popov"] __license__ = "" __version__ = "1.0" __maintainer__ = "Gianluca Santoni" __email__ = "gianluca.santoni@esrf.fr" __sta...
6,929
https://github.com/Almenon/AREPL-vscode/blob/master/test/manualAreplTests/pandasTest.py
Github Open Source
Open Source
MIT
2,023
AREPL-vscode
Almenon
Python
Code
40
138
import pandas as pd x = pd.DataFrame() print(x) """ -{ x: -{ py/object: "pandas.core.frame.DataFrame", values: "\r\n", txt: true, meta: -{ dtypes: {}, index: -{"py/object": "pandas.core.indexes.base.Index", "values": "[]", "txt": true, "meta": {"dtype": "obj...
45,821
https://github.com/davekago/ember-fhir-adapter/blob/master/addon/models/bundle-entry-response-component.js
Github Open Source
Open Source
BSD-3-Clause, MIT
2,015
ember-fhir-adapter
davekago
JavaScript
Code
20
78
import DS from 'ember-data'; var BundleEntryResponseComponent = DS.Model.extend({ status: DS.attr('string'), location: DS.attr('string'), etag: DS.attr('string'), lastModified: DS.attr('date') }); export default BundleEntryResponseComponent;
17,540
https://github.com/VortexOfLifeNetwork/GitMessenger/blob/master/node_modules/b64-to-blob/types/index.d.ts
Github Open Source
Open Source
MIT
2,020
GitMessenger
VortexOfLifeNetwork
TypeScript
Code
18
58
// TypeScript Version: 2.1 declare module 'b64-to-blob' { function b64toBlob(b64Data: string, contentType?: string): Blob; export default b64toBlob; }
8,653
https://github.com/Geidelberg/sarscov2-b.1.1.7/blob/master/src/figure_rt_vs_novel_frac.R
Github Open Source
Open Source
MIT
2,021
sarscov2-b.1.1.7
Geidelberg
R
Code
270
1,293
library(tidyverse) library(here) library(data.table) stp_rt <- readRDS(here("data/combine_rt_stp_all_neg_pos.rds")) #%>% # select(epiweek, area, value) sgss = readRDS(here("data/sgss_stp.rds")) sgss.to.areas = fread(here("data/ltla-nhser-stp.csv")) %>% select("stp_name","nhser_name") sgss.to.areas = sgss.to.area...
45,122
https://github.com/reym-zylun/lamlam-web/blob/master/resources/views/errors/payment.blade.php
Github Open Source
Open Source
MIT
2,017
lamlam-web
reym-zylun
Blade
Code
40
145
@extends('master') @section('content') <!-- payment form --> <section id="paymentForm" class="wrapper clearfix"> <div class="mainWrap"> <div class="pure-g"> <div class="pure-u-1"> <div class="pageTitle">Payment Error</div> <div class="pure-u-1 form-row completionM...
3,799
https://github.com/chartinger/behat-twig-report-extension/blob/master/src/chartinger/Behat/TwigReportExtension/views/simple.twig
Github Open Source
Open Source
MIT
2,019
behat-twig-report-extension
chartinger
Twig
Code
310
966
{% macro asString(result) %} {% if result == 20 %} PENDING {% elseif result == 99 %} FAILED {% elseif result == 0 %} PASSED {% elseif result == 10 %} SKIPPED {% else %} UNKONWN {% endif %} ({{ result }}) {% endmacro %} {% import _self as simple %} <html> <head> ...
39,361
https://github.com/Dbevan/SunderingShadows/blob/master/cmds/avatar/_rope.c
Github Open Source
Open Source
MIT
2,021
SunderingShadows
Dbevan
C
Code
20
79
#include <std.h> inherit DAEMON; int cmd_rope(){ new("/d/common/obj/misc/rope")->move(TP); write("You create rope."); return 1; } int help(){ write("Creates rope."); return 1; }
7,808
https://github.com/ssalevan/habiclient/blob/master/Behaviors/spend.m
Github Open Source
Open Source
MIT
2,020
habiclient
ssalevan
null
Spoken
93
264
; a = price ; x = buyer noid sta save_NRD ; Save the price stx actor_noid ; Make buyer the actor jsr set_up_actor_pointers lda #AV_ACT_operate ; Operate the machine jsr set_actor_chore jsr ASYNC_animation_wait ; Wait for animation to end lda #AV_ACT_hand_back ; Finish up animation jsr set_actor_chore l...
32,530
https://github.com/davidhiller/php-shoop/blob/master/src/Filter/DropLast.php
Github Open Source
Open Source
MIT
2,020
php-shoop
davidhiller
PHP
Code
150
587
<?php declare(strict_types=1); namespace Eightfold\Shoop\Filter; use Eightfold\Foldable\Filter; use Eightfold\Shoop\Filter\TypeJuggling\AsDictionary; use Eightfold\Shoop\Filter\TypeJuggling\AsString; use Eightfold\Shoop\Filter\TypeJuggling\AsTuple; /** * @version 1.0.0 */ class DropLast extends Filter { publi...
19,339
https://github.com/juliendelplanque/BytePusher/blob/master/src/BaselineOfBytePusher/package.st
Github Open Source
Open Source
MIT
2,020
BytePusher
juliendelplanque
null
Spoken
6
16
Package { #name : #BaselineOfBytePusher }
23,631
https://github.com/fvinnen/android-library/blob/master/urbanairship-debug/src/main/java/com/urbanairship/debug/customevent/PropertyAdapter.kt
Github Open Source
Open Source
Apache-2.0
2,022
android-library
fvinnen
Kotlin
Code
129
472
/* Copyright Urban Airship and Contributors */ package com.urbanairship.debug.customevent import android.view.LayoutInflater import android.view.ViewGroup import androidx.recyclerview.widget.DiffUtil import androidx.recyclerview.widget.ListAdapter import androidx.recyclerview.widget.RecyclerView import com.urbanairsh...
3,763
https://github.com/Vilsepi/sc2-spectator/blob/master/example-bot/bot/economy/build.py
Github Open Source
Open Source
MIT
2,019
sc2-spectator
Vilsepi
Python
Code
362
1,848
from sc2.ids.unit_typeid import UnitTypeId from bot.economy import economy from bot.opponent.strategy import Strategy from bot.util import util class Builder: def __init__(self, bot): self.bot = bot self.logger = bot.logger self.opponent = bot.opponent self.army = bot.army asy...
5,899
https://github.com/ngwese/madronalib/blob/master/source/app/MLProcFactory.cpp
Github Open Source
Open Source
MIT
null
madronalib
ngwese
C++
Code
128
355
#include "MLProcFactory.h" // ---------------------------------------------------------------- #pragma mark factory void ProcFactory::registerFn(const ml::Symbol className, MLProcCreateFnT fn) { // MLTEST std::cout << "registering class " << className << "\n"; procRegistry[className] = fn; } Proc* ProcFactory...
28,536
https://github.com/Evolveum/schrodinger/blob/master/schrodinger-framework/src/main/java/com/evolveum/midpoint/schrodinger/component/common/table/TableWithPageRedirect.java
Github Open Source
Open Source
Apache-2.0
null
schrodinger
Evolveum
Java
Code
456
1,630
/* * Copyright (c) 2010-2021 Evolveum * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
40,691
https://github.com/MrChico/solidity/blob/master/libsolidity/formal/EncodingContext.h
Github Open Source
Open Source
MIT
null
solidity
MrChico
C
Code
726
1,862
/* This file is part of solidity. solidity is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. solidity is distributed in the hope that i...
39,633
https://github.com/smainn/enlinea24-7/blob/master/resources/views/modules/commerce/admin/src/Taller/GestionarVehiculoHistoria/index.js
Github Open Source
Open Source
MIT
null
enlinea24-7
smainn
JavaScript
Code
1,162
4,776
import React, { Component, Fragment } from 'react'; import { message, Modal, Spin, Icon, Tooltip, Table, Select, Pagination } from 'antd'; import 'antd/dist/antd.css'; import ShowVehiculoHistoria from './ShowVehiculoHistoria'; import {Link, Redirect, withRouter} from 'react-router-dom'; import {cambiarFormato} from '.....
25,175
https://github.com/poppieng/fan-menu/blob/master/projects/fan-menu/src/lib/fan-menu.component.spec.ts
Github Open Source
Open Source
MIT
2,021
fan-menu
poppieng
TypeScript
Code
54
184
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { FanMenuComponent } from './fan-menu.component'; describe('FanMenuComponent', () => { let component: FanMenuComponent; let fixture: ComponentFixture<FanMenuComponent>; beforeEach(async(() => { TestBed.configureTestingModule({...
19,171
https://github.com/godsme/object-array/blob/master/include/l0-infra/array/mixin/count/ArrayScopeMask.h
Github Open Source
Open Source
Apache-2.0
2,021
object-array
godsme
C
Code
41
186
// // Created by Darwin Yuan on 2021/7/15. // #ifndef OBJECT_ARRAY_2_491EF9E02C5F4CB7817202F8F4C59F57 #define OBJECT_ARRAY_2_491EF9E02C5F4CB7817202F8F4C59F57 namespace mixin { template<typename T> struct ArrayScopeMask : T { using typename T::BitMap; auto MaskScope(BitMap scope) const -> BitM...
37,071
https://github.com/KumailB/org-site/blob/master/components/events/EventItem.tsx
Github Open Source
Open Source
MIT
null
org-site
KumailB
TypeScript
Code
68
193
import { Event } from '../../lib/types'; import Link from 'next/link'; interface EventItemProps { event: Event; } /** * An item that displays event details */ export default function EventItem({ event }: EventItemProps) { const { title, description, startDate } = event; const eventLink = `/events/${event.id}`...
12,979
https://github.com/denishoornaert/INFO-F-307/blob/master/src/client/src/be/ac/ulb/infof307/g01/client/view/options/SignupPopUp.java
Github Open Source
Open Source
Beerware
2,018
INFO-F-307
denishoornaert
Java
Code
294
1,179
package be.ac.ulb.infof307.g01.client.view.options; import be.ac.ulb.infof307.g01.client.controller.options.SignupPopUpController; import be.ac.ulb.infof307.g01.client.view.app.AbstractPopUp; import javafx.event.ActionEvent; import javafx.event.EventHandler; import javafx.geometry.Insets; import javafx.geometry.Pos; i...
26,931
https://github.com/francisl/cqdg-portal-ui/blob/master/src/components/uiKit/PopoverContentLink/index.module.scss
Github Open Source
Open Source
Apache-2.0
2,022
cqdg-portal-ui
francisl
SCSS
Code
13
53
@import "src/style/themes/cqdg/colors"; .popoverContentLink { padding: 0; &, &:hover { color: $gray-8; } }
32,012
https://github.com/veySky/es_data_export/blob/master/src/test/java/com/es/Me.java
Github Open Source
Open Source
Apache-2.0
null
es_data_export
veySky
Java
Code
70
199
/** * */ package com.es; /** * Copyright: Copyright (c) 2018 Montnets * * @ClassName: Me.java * @Description: 该类的功能描述 * * @version: v1.0.0 * @author: es * @date: 2018年12月27日 下午5:23:42 * * Modification History: * Date Author Version Description *--------------------------------------...
46,678
https://github.com/sasolini/gatsby-blog/blob/master/src/components/Blog-roll/Blog-roll.js
Github Open Source
Open Source
RSA-MD
null
gatsby-blog
sasolini
JavaScript
Code
102
323
import React from "react" import PostCard from "../../components/Post-card/Post-card" import styles from "./Blog-roll.module.scss" const BlogRoll = ({ data, pageContext }) => { let posts = [] const allPosts = data.allMarkdownRemark.edges const withoutFirstPost = allPosts.slice(1) if (pageContext.pageNumber ...
47,652
https://github.com/cferge-auroranetworx/Aurora-Networx-Cloud-Mgmt/blob/master/scripts/andc1_ping.py
Github Open Source
Open Source
Apache-2.0
null
Aurora-Networx-Cloud-Mgmt
cferge-auroranetworx
Python
Code
192
627
import os import sys import datetime import time class color: PURPLE = '\033[95m' CYAN = '\033[96m' DARKCYAN = '\033[36m' BLUE = '\033[94m' GREEN = '\033[92m' YELLOW = '\033[93m' RED = '\033[91m' BOLD = '\033[1m' UNDERLINE = '\033[4m' END = '\033[0m' def main(): if len(sys.argv) >...
48,402
https://github.com/revathskumar/generator-maria/blob/master/test/test-apppath.js
Github Open Source
Open Source
MIT
2,015
generator-maria
revathskumar
JavaScript
Code
235
971
/* global describe, beforeEach, it */ 'use strict'; var path = require('path'); var helpers = require('yeoman-generator').test; var fs = require('fs'); describe('maria generator with appPath option', function () { beforeEach(function (done) { helpers.testDirectory(path.join(__dirname, 'temp'), function (err) { ...
24,623
https://github.com/multi-os-engine/libcore/blob/master/luni/src/main/java/java/util/LinkedHashSet.java
Github Open Source
Open Source
W3C, LicenseRef-scancode-generic-cla, W3C-19980720, SunPro, MIT, Apache-2.0, ICU, LicenseRef-scancode-unicode
2,023
libcore
multi-os-engine
Java
Code
511
1,114
/* * 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 You under the Apache License, Version 2.0 * (the "License"); you...
7,381
https://github.com/johnlouisuru/tracode/blob/master/routes/web.php
Github Open Source
Open Source
MIT
null
tracode
johnlouisuru
PHP
Code
561
7,693
<?php use Illuminate\Support\Facades\Route; use Illuminate\Foundation\Auth\EmailVerificationRequest; use Illuminate\Http\Request; //assorted imports use App\Http\controllers\PagesController; use App\Http\controllers\PhptabController; use App\Http\Controllers\JavatabController; use App\Http\Controllers\CtabController; ...
15,277
https://github.com/Khanzo/flutter_jsonplaceholder/blob/master/lib/posts/list/bloc.dart
Github Open Source
Open Source
MIT
null
flutter_jsonplaceholder
Khanzo
Dart
Code
200
727
//Posts bloc import 'package:bloc/bloc.dart'; import 'package:equatable/equatable.dart'; import 'package:eclipse_tz/api/api.dart' as api; abstract class PostsEvent { Stream<PostsState> _mapToState( PostsState state, PostsBloc bloc, ); } class LoadPosts extends PostsEvent { int _userId; LoadPosts(user...
52,652
https://github.com/suvamM/psharp-ql/blob/master/Source/Core/IO/Logging/ILogger.cs
Github Open Source
Open Source
MIT
2,020
psharp-ql
suvamM
C#
Code
291
592
// ------------------------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // --------------------------------------------------------...
34,321
https://github.com/hagb4rd/ea-bash-script/blob/master/torlx.save
Github Open Source
Open Source
MIT
2,023
ea-bash-script
hagb4rd
Shell
Code
39
152
#!/bin/bash declare -A search=( \ [g]='https://google.com/search?q=' \ [d]='https://duckduckgo.com/?q=' \ ) searchengine=$1 url=${search[$searchengine]} if [[ ! -z_$url ]]; then shift; #elif echo 'ok'; then # shift fi query="$url$*" echo 'torsocks lynx "$query" || lynx "$query"' torsocks lynx "$query" #lyn...
24,454
https://github.com/jphacks/C_2013/blob/master/front/src/containers/ConfirmationPage.js
Github Open Source
Open Source
MIT
2,021
C_2013
jphacks
JavaScript
Code
219
704
import React from "react"; import Header from "../components/header"; import { Form, Input, Button } from "antd"; import config from "../config.json"; import { Modal } from "antd"; import { Redirect } from "react-router-dom"; const info = () => { Modal.info({ title: "テンプレートが登録されました", content: ( <div> ...
29,968
https://github.com/assadiandre/SimplySquare/blob/master/Pods/SmartystreetsSDK/Sources/SSSerializer.h
Github Open Source
Open Source
MIT
2,018
SimplySquare
assadiandre
C
Code
25
120
#import <Foundation/Foundation.h> @protocol SSSerializer; @interface SSSerializer : NSObject @property (nonatomic, weak) id<SSSerializer> delegate; @end @protocol SSSerializer <NSObject> - (NSData*)serialize:(id)obj withClassType:(Class)classType error:(NSError**)error; - (id)deserialize:(NSData*)payload error:(N...
52,687
https://github.com/iambetaraybill/AuditManagementSystem/blob/master/AuditManagementPortalClientMVC/Views/Home/Severity.cshtml
Github Open Source
Open Source
MIT
null
AuditManagementSystem
iambetaraybill
C#
Code
72
332
@model AuditManagementPortalClientMVC.Models.AuditResponse; @{ Layout = "_Authenticated"; } @{ ViewData["Title"] = "SeverityResult"; } <h1>Result Based On Audit Request</h1> @if (Model.ProjectExexutionStatus == "GREEN") { <div style=" background-color: lawngreen;"> <h1>Audit Id :</h1> <h3>...
45,737
https://github.com/marcwebbie/spycis/blob/master/spycis/extractors/novamov.py
Github Open Source
Open Source
WTFPL, Unlicense
2,017
spycis
marcwebbie
Python
Code
226
1,037
import logging from mimetypes import guess_extension, guess_type import re from spycis.compat import * from spycis.utils import session, RequestException, unquote, urlparse from .common import BaseExtractor class NovamovExtractor(BaseExtractor): """novamov.com extractor""" def __init__(self): super...
23,104
https://github.com/parthitce/zephyr/blob/master/boards/arm/efr32mg_sltb004a/board.c
Github Open Source
Open Source
Apache-2.0
2,020
zephyr
parthitce
C
Code
82
335
/* * Copyright (c) 2020 Christian Taedcke * * SPDX-License-Identifier: Apache-2.0 */ #include <init.h> #include "board.h" #include <drivers/gpio.h> #include <sys/printk.h> static int efr32mg_sltb004a_init(const struct device *dev) { const struct device *cur_dev; ARG_UNUSED(dev); #ifdef CONFIG_CCS811 /* Enabl...
48,670
https://github.com/9988123/SlinkyTyped/blob/master/w/winrt/src/main/scala/typingsSlinky/winrt/Windows/Networking/Proximity/TriggeredConnectionStateChangedEventArgs.scala
Github Open Source
Open Source
MIT
2,020
SlinkyTyped
9988123
Scala
Code
44
205
package typingsSlinky.winrt.Windows.Networking.Proximity import typingsSlinky.winrt.Windows.Networking.Sockets.StreamSocket import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation._ @js.native trait TriggeredConnectionStateChangedEventArgs extends ITriggeredConnectionStateChangedEventAr...
53,251
https://github.com/oguzhankahyaoglu/squidex/blob/master/backend/src/Squidex.Domain.Apps.Entities/Apps/Services/Implementations/NoopAppPlanBillingManager.cs
Github Open Source
Open Source
MIT
2,020
squidex
oguzhankahyaoglu
C#
Code
74
250
// ========================================================================== // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex UG (haftungsbeschränkt) // All rights reserved. Licensed under the MIT license. // ============================...
11,143
https://github.com/auberginekenobi/CS135-DooMi-/blob/master/duit-dev/duit-db/du-class.php
Github Open Source
Open Source
MIT
2,017
CS135-DooMi-
auberginekenobi
PHP
Code
5,875
14,668
<?php /** * Class du * * Holds properties about each du in database as individual PHP object * with methods defined for accessing and modifying the properties * PHP v5.6 * * @author Kelli Rockwell <kellirockwell@mail.com>, Patrick Shao <shao.pat@gmail.com>, and Owen Chapman <osc12013@pomona.edu> * @copyrig...
616
https://github.com/wangkaiwd/xiaomi-shop/blob/master/src/helpers/autoRegister.js
Github Open Source
Open Source
MIT
2,019
xiaomi-shop
wangkaiwd
JavaScript
Code
68
255
/** * Created by wangkai on 2019-06-28 */ import Vue from 'vue'; // 不需要自动注册的组件 const blackList = ['MuiToast']; const requireComponent = require.context('components', true, /Mui[A-Z]\w+\.vue$/); requireComponent.keys().forEach(filename => { const componentConfig = requireComponent(filename); const start = filename...
49,835
https://github.com/ronen-e/AfterUber/blob/master/src/js/reducers.js
Github Open Source
Open Source
MIT
null
AfterUber
ronen-e
JavaScript
Code
77
249
import {ESTIMATE_PRICE, ERROR} from './lib/constants'; export const items = (state, change) => { switch(change.type) { case ESTIMATE_PRICE: return change.items; default: return state; } }; export const error = (state, change) => { switch(change.type) { case ESTIMATE_PRICE: return ''; case ERROR: ...
24,851
https://github.com/Rodemarck/zumbi/blob/master/Assets/UniGLTF.Samples/Editor/GltfMaterialTests.cs
Github Open Source
Open Source
Apache-2.0
null
zumbi
Rodemarck
C#
Code
170
684
using NUnit.Framework; using UnityEngine; namespace UniGLTF { public class GltfMaterialTests { [Test] public void ExportTest() { { var material = Resources.Load<Material>("Materials/pbr_opaque"); var exporter = new MaterialExporter(); ...
30,530
https://github.com/r-lib/callr/blob/master/R/hook.R
Github Open Source
Open Source
MIT
2,023
callr
r-lib
R
Code
385
1,182
common_hook <- function() { substitute({ # This should not happen in a new R session, but just to be safe while ("tools:callr" %in% search()) detach("tools:callr") env <- readRDS(`__envfile__`) do.call("attach", list(env, pos = length(search()), name = "tools:callr")) data <- env$`__callr_data__`...
14,204
https://github.com/stardog-union/stardog-graviton/blob/master/vendor/github.com/mitchellh/packer/builder/amazon/chroot/copy_files_test.go
Github Open Source
Open Source
MPL-2.0, Apache-2.0
2,021
stardog-graviton
stardog-union
Go
Code
132
395
package chroot import ( "fmt" "io/ioutil" "os" "runtime" "testing" ) func TestCopyFile(t *testing.T) { if runtime.GOOS == "windows" { return } first, err := ioutil.TempFile("", "copy_files_test") if err != nil { t.Fatalf("couldn't create temp file.") } defer os.Remove(first.Name()) newName := first.N...
39,106
https://github.com/DXsmiley/dismock/blob/master/example_bot.py
Github Open Source
Open Source
MIT
2,021
dismock
DXsmiley
Python
Code
32
119
''' Run with: python example_bot.py TARGET_TOKEN ''' import sys import discord client = discord.Client() @client.event async def on_ready(): print('Ready') @client.event async def on_message(message): if message.content == 'ping?': print('Replying') await client.send_message(mess...
40,146
https://github.com/Kahsolt/Katari/blob/master/2020-03-31 计算、方法、机器/code/TuringMachine/src/utils.h
Github Open Source
Open Source
MIT, WTFPL
2,020
Katari
Kahsolt
C++
Code
91
196
#ifndef UTILS_H #define UTILS_H // NOTICE: should all be inline functions #include <string> using namespace std; inline string to_string(char c) { string s = string(" "); s[0] = c; return s;} inline string quote(string s) { return "'" + s + "'"; } inline string quote(char c) { return quote(to_string(c)); } inline s...
30,383
https://github.com/ghouljd/chatLive/blob/master/app/firebaseConfig.js
Github Open Source
Open Source
MIT
null
chatLive
ghouljd
JavaScript
Code
73
192
// Initialize Firebase import firebase from 'firebase/app'; import 'firebase/firestore'; import 'firebase/storage'; // import 'firebase/auth'; const config = { apiKey: 'your api key', authDomain: 'your auth domain', databaseURL: 'your database url', projectId: 'your project id', storageBucket: 'your storage ...
31,280
https://github.com/swthemathwiz/php-perl/blob/master/tests/perl011.phpt
Github Open Source
Open Source
PHP-3.0, PHP-3.01
null
php-perl
swthemathwiz
PHP
Code
32
103
--TEST-- Test 11: accessing undefined perl variables --SKIPIF-- <?php require_once('skipif.inc'); ?> --FILE-- <?php error_reporting(E_ALL); $perl = new Perl(); var_dump($perl->tmpvar); ?> --EXPECTF-- Notice: [perl] Undefined variable: '$tmpvar' in %s on line %d NULL
9,800
https://github.com/antross/tracer/blob/master/dist/content-script.js
Github Open Source
Open Source
MIT
2,018
tracer
antross
JavaScript
Code
128
392
// Normalize access to extension APIs across browsers. const browser = this.browser || this.chrome; const tracerKey = '--tracer--'; let injected = false; // TODO: control injection from background-script.js if (sessionStorage.getItem(tracerKey)) { // This runs at `document_start` before any scripts in the page....
45,174
https://github.com/wode1/-offer-python-/blob/master/71_圆圈中最后剩下的数字(约瑟夫环).py
Github Open Source
Open Source
Apache-2.0
null
-offer-python-
wode1
Python
Code
34
223
''' 0, 1, 2, n-1这n个数字排成一个圆环, 从数字0开始每次从这个圆圈里删除第m个数字 求这个圆圈中最后剩下的一个数字 ''' class Solution(object): def LastRemain(self, n, m): # 0~n-1 if n<1 or m<1: return None last=0 for i in range(2, n+1): last=(last+m)%i return last s=Solution() print(s.LastRemain(5, 1)) ...
29,240
https://github.com/wintersteiger/hacl-star/blob/master/code/ed25519/Hacl.Impl.Ed25519.PointDecompress.fst
Github Open Source
Open Source
Apache-2.0, MIT
2,020
hacl-star
wintersteiger
null
Spoken
493
1,338
module Hacl.Impl.Ed25519.PointDecompress module ST = FStar.HyperStack.ST open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteSequence open Hacl.Bignum25519 module F51 = Hacl.Impl.Ed25519.Field51 module SC = Spec.Curve25519 module SE = Spec.Ed25519 #set-options "--z3rlimit 30 --...
33,299
https://github.com/jonathankamau/songs-api/blob/master/app.py
Github Open Source
Open Source
MIT
null
songs-api
jonathankamau
Python
Code
179
567
import os from flask import Flask, jsonify from flask_mongoengine import MongoEngine from flask_restx import Api from api.models import Songs from api.routes import resource_routes from api.utils.chunks import chunks, generate_song_data def create_app(): """Factory Method that creates an instance of the app wit...
34,412