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/Hanzallah/Jukebox/blob/master/MusicianList.cpp
Github Open Source
Open Source
MIT
null
Jukebox
Hanzallah
C++
Code
536
1,371
#include <iostream> #include "MusicianList.h" #include "Musician.h" using namespace std; // Head is actually the last element here MusicianList::MusicianList() : size(0), head(nullptr) { } MusicianList::MusicianList(const MusicianList & listToCopy) : size(listToCopy.size) { if (listToCopy.head == nullptr) { ...
20,499
https://github.com/johannesgerer/MathematicaNotes/blob/master/finance/postbank finance award 2008 hedgefunds/fertig/markovitz.nb
Github Open Source
Open Source
MIT
2,021
MathematicaNotes
johannesgerer
Mathematica
Code
863
5,470
(* Content-type: application/mathematica *) (*** Wolfram Notebook File ***) (* http://www.wolfram.com/nb *) (* CreatedBy='Mathematica 6.0' *) (*CacheID: 234*) (* Internal cache information: NotebookFileLineBreakTest NotebookFileLineBreakTest NotebookDataPosition[ 145, 7] NotebookDataLength[ 12535,...
17,419
https://github.com/benbraide/elang2/blob/master/elang/elang/lang/lang_array_type_info.cpp
Github Open Source
Open Source
MIT
null
elang2
benbraide
C++
Code
141
654
#include "lang_array_type_info.h" elang::lang::array_type_info::array_type_info(ptr_type target, std::size_t count, attribute_type attributes) : type_info(attributes), target_(target), count_(count){} elang::lang::type_info::ptr_type elang::lang::array_type_info::clone(attribute_type attributes) const{ return std::...
48,776
https://github.com/dev1ous/Great-Steamrogue/blob/master/ProjetEquipe2/ProjetEquipe2/RoundedRectangleShape.cpp
Github Open Source
Open Source
Apache-2.0
null
Great-Steamrogue
dev1ous
C++
Code
147
459
#include "RoundedRectangleShape.h" #include <cmath> #include "Data.h" RoundedRectangleShape::RoundedRectangleShape(const sf::Vector2f& size, float radius, unsigned cornerPointCount, sf::Color col, sf::Color colT, float T, sf::Vector2f pos) :myRadius(), myCornerPointCount() { mySize = size; myRadius = radiu...
39,515
https://github.com/resource11/gatsby-theme-gatstats/blob/master/@pauliescanlon/gatsby-theme-gatstats/src/components/Bio/BioContainer.tsx
Github Open Source
Open Source
MIT
2,020
gatsby-theme-gatstats
resource11
TSX
Code
67
160
/** @jsx jsx */ import { StaticQuery, graphql } from 'gatsby' import { jsx } from 'theme-ui' import { Bio } from './Bio' export const BioContainer: React.FC = () => ( <StaticQuery query={graphql` query bioQuery { site { siteMetadata { title description ...
30,983
https://github.com/AlinAsghari/go-contacts-rest-api/blob/master/utils/utility.go
Github Open Source
Open Source
MIT
null
go-contacts-rest-api
AlinAsghari
Go
Code
87
266
package utils import ( "encoding/json" "net/http" "strconv" ) func Message(status bool, message string) (map[string]interface{}) { // return map is a dictionary ( key=string , value= interface{} (means object)) return map[string]interface{}{"status": status, "message": message} } func Respond(w http.ResponseWri...
28,739
https://github.com/Tschaul/AJExpenditor2/blob/master/html/jspm_packages/npm/pondjs@0.8.8/packages/pond/node_modules/typedoc/dist/lib/converter/plugins/GroupPlugin.js
Github Open Source
Open Source
BSD-3-Clause, BSD-3-Clause-LBNL, Apache-2.0
2,023
AJExpenditor2
Tschaul
JavaScript
Code
639
2,319
/* */ "use strict"; var __extends = (this && this.__extends) || (function() { var extendStatics = Object.setPrototypeOf || ({__proto__: []} instanceof Array && function(d, b) { d.__proto__ = b; }) || function(d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return functio...
12,246
https://github.com/jabiggins/Virtual-Reality-Interactive-Tours-/blob/master/S_TeleportManager.cs
Github Open Source
Open Source
MIT
2,019
Virtual-Reality-Interactive-Tours-
jabiggins
C#
Code
798
2,014
 using System.Collections; using UnityEngine; using UnityEngine.Video; /// <summary> /// Created by James Biggins @NIST ITL 2018 /// /// This is my stereoscopic teleport manager that moderates user interactions with my "teleporter" games objects /// which allows the user to move around the tour from 360 location to ...
4,937
https://github.com/EduardoPires/UnitTestingTools/blob/master/tests/UTT.Domain.Tests/Customers/CustomerServiceTests.cs
Github Open Source
Open Source
MIT
2,021
UnitTestingTools
EduardoPires
C#
Code
161
620
using System.Linq; using System.Threading; using FluentAssertions; using MediatR; using Moq; using Xunit; namespace UTT.Domain.Tests.Customers { [Collection(nameof(CustomerCollection))] public class CustomerServiceTests { public CustomerTestsFixture Fixture { get; set; } public CustomerSe...
9,678
https://github.com/jangernert/Avalonia/blob/master/src/Avalonia.Input/FocusManager.cs
Github Open Source
Open Source
MIT
2,022
Avalonia
jangernert
C#
Code
679
1,886
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using Avalonia.Interactivity; using Avalonia.VisualTree; namespace Avalonia.Input { /// <summary> /// Manages focus for the application. /// </summary> public class FocusManager : IFocusManager ...
6,294
https://github.com/VerticalHorizon/ThumbnailJS/blob/master/thumbnail.js
Github Open Source
Open Source
MIT
null
ThumbnailJS
VerticalHorizon
JavaScript
Code
203
625
(function ($) { $.fn.thumbnail = function (options) { var settings = $.extend({ // These are the defaults. wrap: "<img src=\"|\" />", placeholder: "thumbholder" }, options); return this.each(function () { var input = $(this); var placeholder = $('#' + (input.attr('thumbna...
1,814
https://github.com/medmondson/CShell/blob/master/Src/CShell.Core/Framework/Controls/ToolBar.cs
Github Open Source
Open Source
Apache-2.0
2,022
CShell
medmondson
C#
Code
51
190
using System.Windows; using System.Windows.Controls; using CShell.Framework.Menus; namespace CShell.Framework.Controls { public class ToolBar : System.Windows.Controls.ToolBar { private object _currentItem; protected override bool IsItemItsOwnContainerOverride(object item) { _currentItem = item; return...
45,819
https://github.com/ScalablyTyped/Distribution/blob/master/p/pulumi__aws/src/main/scala/typings/pulumiAws/placementStrategyMod.scala
Github Open Source
Open Source
MIT
2,023
Distribution
ScalablyTyped
Scala
Code
57
293
package typings.pulumiAws import typings.pulumiAws.enumsEc2Mod.PlacementStrategy import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} object placementStrategyMod { @JSImport("@pulumi/aws/ec2/placementStra...
45,822
https://github.com/openMSX/wxcatapult/blob/master/src/wxCatapultFrm.cpp
Github Open Source
Open Source
Naumen, Condor-1.1, MS-PL
2,020
wxcatapult
openMSX
C++
Code
1,501
6,917
#include "wxCatapultFrm.h" #include "wxCatapultApp.h" #include "ConfigurationData.h" #include "CatapultConfigDlg.h" #include "PipeReadThread.h" #include "CatapultXMLParser.h" #include "SessionPage.h" #include "StatusPage.h" #include "VideoControlPage.h" #include "AudioControlPage.h" #include "MiscControlPage.h" #includ...
6,623
https://github.com/gdrapeau/unblock.us.org/blob/master/lib/clearDB.js
Github Open Source
Open Source
MIT
2,014
unblock.us.org
gdrapeau
JavaScript
Code
103
347
/*** Generated by streamline 0.10.9 (callbacks) - DO NOT EDIT ***/ var __rt=require('streamline/lib/callbacks/runtime').runtime(__filename, false),__func=__rt.__func,__cb=__rt.__cb,__trap=__rt.__trap; (function main(_) { var __this = this; var __frame = { name: "main", line: 1 }; return __func(_, this, arguments, main,...
15,779
https://github.com/GennadyGS/SqlQueryWithParameters/blob/master/SqlQueryBuilder/Utils/EnumerableExtensions.cs
Github Open Source
Open Source
MIT
null
SqlQueryWithParameters
GennadyGS
C#
Code
59
222
namespace SqlQueryBuilder.Utils; internal static class EnumerableExtensions { public static IEnumerable<T> Prepend<T>(this IEnumerable<T> source, params T[] items) => items.Concat(source); public static IReadOnlyDictionary<TKey?, TValue> ToDictionaryWithNullableKey<TSource, TKey, TValue>( ...
16,144
https://github.com/efedo/Utilogeny/blob/master/lib/boost/preprocessor/list/for_each_i.hpp
Github Open Source
Open Source
MIT
null
Utilogeny
efedo
C++
Code
316
1,640
# /* Copyright (C) 2001 # * Housemarque Oy # * http://www.housemarque.com # * # * Distributed under the Boost Software License, Version 1.0. (See # * accompanying file LICENSE_1_0.txt or copy at # * http://www.boost.org/LICENSE_1_0.txt) # */ # # /* Revised by Paul Mensonides (2002) */ # # /* See http://www.boost...
27,188
https://github.com/lunz1207/console/blob/master/packages/tkeel-console-plugin-tenant-alarm-policy/src/pages/Index/components/BasePolicyModal/index.tsx
Github Open Source
Open Source
Apache-2.0
null
console
lunz1207
TypeScript
Code
456
1,896
import { Flex } from '@chakra-ui/react'; import { ReactNode, useState } from 'react'; import { Controller, useFieldArray, useForm } from 'react-hook-form'; import { FormControl, FormField, Modal, RadioButton, } from '@tkeel/console-components'; import { ALARM_LEVEL_OPTIONS, ALARM_RULE_TYPE_MAP_OPTIONS, ...
48,824
https://github.com/harwoodspike/arcusios/blob/master/i2app/Cornea/Generated/SceneService.m
Github Open Source
Open Source
Apache-2.0
2,021
arcusios
harwoodspike
Objective-C
Code
45
175
#import <Foundation/Foundation.h> #import <PromiseKit/PromiseKit.h> #import "SceneService.h" #import <i2app-Swift.h> @implementation SceneService + (NSString *)name { return @"SceneService"; } + (NSString *)address { return @"SERV:scene:"; } + (PMKPromise *) listScenesWithPlaceId:(NSString *)placeId { return [Sc...
21,153
https://github.com/GavinAlison/advanceJava/blob/master/learnshell/flow/util.sh
Github Open Source
Open Source
Apache-2.0
null
advanceJava
GavinAlison
Shell
Code
41
102
#!/usr/bin/env bash #using the until command var1=100 until [ $var1 -eq 0 ] do echo $var1 var1=$[ $var1-25 ] done var1=100 until echo $var1 [ $var1 -eq 0 ] do echo Inside the loop: $var1 var1=$[ $var1 - 25 ] done
14,852
https://github.com/intel-secl/common-java/blob/master/util/mtwilson-util-validation/src/main/java/com/intel/dcsg/cpg/validation/Unchecked.java
Github Open Source
Open Source
BSD-3-Clause
2,020
common-java
intel-secl
Java
Code
105
249
/* * Copyright (C) 2019 Intel Corporation * SPDX-License-Identifier: BSD-3-Clause */ package com.intel.dcsg.cpg.validation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * * When Models are used...
31,916
https://github.com/sheitmann/ImplicitNullability/blob/master/Src/ImplicitNullability.Samples.CodeWithIN/NullabilityAnalysis/LocalFunctionsSample.cs
Github Open Source
Open Source
MIT
2,021
ImplicitNullability
sheitmann
C#
Code
61
163
// Exclude[RS < 20163] namespace ImplicitNullability.Samples.CodeWithIN.NullabilityAnalysis { public class LocalFunctionsSample { // Proves that local functions and their parameters aren't implicitly not null. public void Method() { string LocalFunction(string a) ...
22,071
https://github.com/Hi-Fi/kolga/blob/master/kolga/libs/services/rabbitmq.py
Github Open Source
Open Source
MIT
2,022
kolga
Hi-Fi
Python
Code
294
1,097
from typing import Any, Dict, Mapping, TypedDict from kolga.libs.database import Database from kolga.libs.service import Service from kolga.settings import settings from kolga.utils.general import ( AMQP, DATABASE_DEFAULT_PORT_MAPPING, RABBITMQ, get_deploy_name, get_project_secret_var, ) from kolga...
40,090
https://github.com/abritopach/graphql-nodejs/blob/master/database/index.js
Github Open Source
Open Source
MIT
2,017
graphql-nodejs
abritopach
JavaScript
Code
35
105
import mongoose from 'mongoose'; var env = 'development'; //var env = 'production'; import { databaseConfig } from '../config/config' // MongoDB connection. mongoose.Promise = global.Promise; mongoose.connect(databaseConfig[env].url, function (error) { if (error) console.error(error); else console.log('Mongo...
47,271
https://github.com/AgmLee/Networking-Library/blob/master/Test Project/Server/SeverManager.cpp
Github Open Source
Open Source
MIT
2,017
Networking-Library
AgmLee
C++
Code
120
455
#include "SeverManager.h" #include <fstream> #include <iostream> #include <string> #include <algorithm> NTWK::ServerManager::ServerManager() { } NTWK::ServerManager::~ServerManager() { } bool NTWK::ServerManager::startUp(const char * configPath) { return loadConfig(configPath); } void NTWK::ServerManager::packetHa...
36,203
https://github.com/geoscotton/token_auth_server_rails_copy/blob/master/spec/controllers/token_auth/api/authentication_tokens_controller_spec.rb
Github Open Source
Open Source
MIT
null
token_auth_server_rails_copy
geoscotton
Ruby
Code
150
482
# frozen_string_literal: true require "rails_helper" module TokenAuth module Api RSpec.describe AuthenticationTokensController, type: :controller do routes { TokenAuth::Engine.routes } describe "POST create" do context "when the configuration token isn't found" do it "responds with...
51,994
https://github.com/a1black/btestlab-backend-utils/blob/master/lib/service.js
Github Open Source
Open Source
BSD-3-Clause
null
btestlab-backend-utils
a1black
JavaScript
Code
307
936
'use strict' const isPlainObject = require('lodash.isplainobject') const objectSet = require('lodash.set') const { ValidationError } = require('./errors') const { filterObject, isEmpty } = require('./functional') class ServerResponseBuilder { constructor() { this._allowed = new Set() this._forbidden = new ...
18,084
https://github.com/iamtofr/Stundenplaner/blob/master/BackEnd/Schemas/schemaAccount.js
Github Open Source
Open Source
MIT
2,019
Stundenplaner
iamtofr
JavaScript
Code
59
136
/** * This module defines a schema of accounts. * It using mongoose as framework. * * @type {Schema} */ const mongoose = require('mongoose'); let Schema = mongoose.Schema; let account = new Schema({ username: {type: String, required: true}, password: {type: String, required: true}, token: {type: Stri...
32,258
https://github.com/razgraf/smart-office/blob/master/smart-office/src/App.js
Github Open Source
Open Source
MIT
2,021
smart-office
razgraf
JavaScript
Code
895
3,309
import React, { Component } from "react"; import Config from "./config"; import "./resources/styles/App.scss"; import Main from "./Components/Main"; import SideBar from "./Components/SideBar"; import NavBar from "./Components/NavBar"; import RequestItemPopup from "./Components/RequestItemPopup"; import Element from "./...
4,591
https://github.com/xiaost/redisgo/blob/master/go.mod
Github Open Source
Open Source
Apache-2.0
2,019
redisgo
xiaost
Go Module
Code
2
14
module github.com/xiaost/redisgo
21,251
https://github.com/cuidingfeng/robot/blob/master/static/home/components/Lodash/fp/add.js
Github Open Source
Open Source
BSD-3-Clause
null
robot
cuidingfeng
JavaScript
Code
14
77
define('home:components/Lodash/fp/add.js', function(require, exports, module) { var convert = require('home:components/Lodash/fp/convert.js'); module.exports = convert('add', require('home:components/Lodash/add.js')); });
2,119
https://github.com/aliyun/FC-Runtime-Go-SDK/blob/master/fc/messages/messages.go
Github Open Source
Open Source
Apache-2.0, MIT-0
2,022
FC-Runtime-Go-SDK
aliyun
Go
Code
146
431
// Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. // Copyright 2021 Alibaba Group Holding Limited. All Rights Reserved. package messages import ( "encoding/json" "fmt" "log" "github.com/aliyun/fc-runtime-go-sdk/fccontext" ) type PingRequest struct { } type PingResponse struct { } type...
31,240
https://github.com/mrvux/dx11-vvvv/blob/master/Nodes/VVVV.DX11.Nodes.Bullet/Core/ObjectLifetimeContainer.cs
Github Open Source
Open Source
BSD-3-Clause
2,022
dx11-vvvv
mrvux
C#
Code
169
593
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace VVVV.Bullet.Core { /// <summary> /// Container for objects lifetime /// </summary> /// <typeparam name="TType">Object type</typeparam> /// <typeparam name="TLifeTime">Lifet...
23,212
https://github.com/dengjinshan/xfz/blob/master/apps/news/urls.py
Github Open Source
Open Source
MIT
null
xfz
dengjinshan
Python
Code
21
109
from django.urls import path from . import views app_name = 'news' urlpatterns = [ path('<int:news_id>/',views.news_detail,name='news_detail'), path('list/',views.news_list,name='news_list'), path('public_comment/',views.public_comment,name='public_comment'), path('search/', views.search, name='search'...
7,040
https://github.com/poi2000/netrunner/blob/master/data/cards/forked.edn
Github Open Source
Open Source
MIT
null
netrunner
poi2000
Edoid
Code
60
207
{:code "07037", :cost 2, :cycle_code "order-and-chaos", :faction "Anarch", :factioncost 3, :image_url "http://www.cardgamedb.com/forums/uploads/an/med_ADN22_37.png", :limited 3, :normalizedtitle "forked", :number 37, :packquantity 3, :rotated false, :set_code "oac", :setname "Order and Chaos", :side "Runne...
16,222
https://github.com/garethgeorge/pulse2percept/blob/master/pulse2percept/utils/tests/test_parallel.py
Github Open Source
Open Source
BSD-3-Clause
2,020
pulse2percept
garethgeorge
Python
Code
125
534
import numpy as np import numpy.testing as npt import pytest from pulse2percept.utils import parallel from unittest import mock from imp import reload def power_it(num, n=2): return num ** n @pytest.mark.xfail @pytest.mark.parametrize('engine', ('serial', 'joblib', 'dask')) @pytest.mark.parametrize('scheduler'...
33,536
https://github.com/wri/earth-dashboard/blob/master/components/share/share-box/share-box.module.scss
Github Open Source
Open Source
MIT
2,020
earth-dashboard
wri
SCSS
Code
110
413
@import 'css/settings'; .c-share-box { .main-container { display: flex; align-items: center; height: 60px; &.-with-border { border: solid 1px $grey; border-radius: 3px; padding: 12px; } .url-container { display:...
5,251
https://github.com/kakashidinho/HQEngine/blob/master/ThirdParty-mod/java2cpp/java/util/AbstractSequentialList.hpp
Github Open Source
Open Source
MIT
2,019
HQEngine
kakashidinho
C++
Code
344
2,208
/*================================================================================ code generated by: java2cpp author: Zoran Angelov, mailto://baldzar@gmail.com class: java.util.AbstractSequentialList ================================================================================*/ #ifndef J2CPP_INCLUDE_IMPLEM...
33,052
https://github.com/uk-gov-mirror/SkillsFundingAgency.dfc-servicetaxonomy-editor/blob/master/GetJobProfiles/Models/Recipe/ContentItems/WorkingUniformContentItem.cs
Github Open Source
Open Source
MIT
2,022
SkillsFundingAgency.dfc-servicetaxonomy-editor
uk-gov-mirror
C#
Code
30
103
using GetJobProfiles.Models.Recipe.ContentItems.Base; namespace GetJobProfiles.Models.Recipe.ContentItems { public class WorkingUniformContentItem : TitleHtmlDescriptionContentItem { public WorkingUniformContentItem(string title, string timestamp, string description, string contentItemId) : base("Work...
52,610
https://github.com/joanbm/selfie32/blob/master/manuscript/code/pointer.c
Github Open Source
Open Source
BSD-2-Clause
null
selfie32
joanbm
C
Code
29
75
uint32_t main() { uint32_t* x; x = malloc(8); *x = 0; *x = *x + 1; *(x + 1) = 0; x = x + 1; return *x; }
28,269
https://github.com/eric612/Mobilenet-YOLO-Pytorch/blob/master/data/od_dataset_from_file.py
Github Open Source
Open Source
MIT
2,022
Mobilenet-YOLO-Pytorch
eric612
Python
Code
730
2,871
import numpy as np from PIL import Image import glob import os import torch from torch.utils.data.dataset import Dataset # For custom datasets import json from tqdm import tqdm import pickle import xml.etree.ElementTree as ET #import image_augmentation as img_aug import cv2 ''' CLASSES = ('__background__', ...
24,619
https://github.com/bartosz-wozniak/PlacesChat/blob/master/Client/app/src/main/java/com/android/wut/placereviewer/service/NotificationsService.java
Github Open Source
Open Source
MIT
null
PlacesChat
bartosz-wozniak
Java
Code
523
2,277
package com.android.wut.placereviewer.service; import android.Manifest; import android.app.IntentService; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.app.Service; import android.content.Context; import android.content.Intent; import android....
45,027
https://github.com/G-Research/consuldotnet/blob/master/Consul.Test/KVTest.cs
Github Open Source
Open Source
Apache-2.0
2,023
consuldotnet
G-Research
C#
Code
1,213
4,245
// ----------------------------------------------------------------------- // <copyright file="KVTest.cs" company="PlayFab Inc"> // Copyright 2015 PlayFab Inc. // Copyright 2020 G-Research Limited // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in c...
13,198
https://github.com/jinq0123/grpc_cb_core/blob/master/include/grpc_cb_core/client/status_cb.h
Github Open Source
Open Source
Apache-2.0
2,021
grpc_cb_core
jinq0123
C
Code
45
165
// Licensed under the Apache License, Version 2.0. // Author: Jin Qing (http://blog.csdn.net/jq0123) #ifndef GRPC_CB_CORE_CLIENT_STATUS_CB_H #define GRPC_CB_CORE_CLIENT_STATUS_CB_H #include <functional> // for std::function() namespace grpc_cb_core { class Status; using StatusCb = std::function<void (const Status&...
17,990
https://github.com/jyt109/Mocha.jl/blob/master/src/cuda/layers/accuracy.jl
Github Open Source
Open Source
MIT
2,015
Mocha.jl
jyt109
Raw token data
Code
111
508
function setup_etc(backend::GPUBackend, layer::AccuracyLayer, op_dim::Int, inputs) dims = [size(inputs[1])...] dims[op_dim] = 1 etc = make_blob(backend, eltype(inputs[1]), dims...) return etc end function shutdown(backend::GPUBackend, state::AccuracyLayerState) destroy(state.etc) end function forward(backend...
24,257
https://github.com/davis1214/elastic-job/blob/master/elastic-job-cloud/elastic-job-cloud-scheduler/src/main/java/com/ami/ddframe/job/cloud/scheduler/statistics/TaskResultMetaData.java
Github Open Source
Open Source
Apache-2.0
null
elastic-job
davis1214
Java
Code
212
560
/* * Copyright 1999-2015 ami.com. * <p> * 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...
11,951
https://github.com/labs14-brav/Frontend/blob/master/client/src/store/actions/Auth.js
Github Open Source
Open Source
MIT
2,020
Frontend
labs14-brav
JavaScript
Code
354
1,102
import { AUTH_START, AUTH_SUCCESS, AUTH_FAILURE, CHECKING_USER, SIGN_OUT, GOT_USER_INFO, FETCH_USER_START, FETCH_USER_SUCCESS, FETCH_USER_FAILURE, UPDATE_USER_START, UPDATE_USER_SUCCESS, UPDATE_USER_FAILURE } from "./index"; import axios from "../../helpers/axioswithAuth"; import { mixpanel } fr...
25,813
https://github.com/jmettraux/dotfish/blob/master/functions/m.fish
Github Open Source
Open Source
MIT
2,019
dotfish
jmettraux
Fish
Code
14
40
function m switch (uname) case OpenBSD gmake $argv case '*' make $argv end end
10,756
https://github.com/ARM-software/server-data-plane/blob/master/kv_filestore_odp/src/objpool.cpp
Github Open Source
Open Source
BSD-3-Clause
2,021
server-data-plane
ARM-software
C++
Code
172
566
/* Copyright (c) 2017, ARM Limited * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include "include/objpool.hh" #include <typeinfo> std::vector<ObjPoolBase*> ObjPoolBase::objPools; std::mutex ObjPoolBase::class_lock; uint32_t ObjPoolBase::num_pools = 0; ObjPoolBase::ObjPoolBase() {} Ob...
12,311
https://github.com/javoire/Semantic-UI-Meteor/blob/master/plugins/file-handler.js
Github Open Source
Open Source
MIT
2,022
Semantic-UI-Meteor
javoire
JavaScript
Code
211
838
var _ = Npm.require('lodash'); var fs = Npm.require('fs'); var path = Npm.require('path'); fileHandler = {}; fileHandler.getTextFileContents = function(paths) { var contents = []; _.each(paths, function(path) { contents.push(semanticUiDataPackage.getTextFile(path)); }); return contents; }; fileHandler.g...
3,353
https://github.com/kyle-poretto/omniauth_lab-v-000/blob/master/app/controllers/welcome_controller.rb
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain
2,017
omniauth_lab-v-000
kyle-poretto
Ruby
Code
15
40
class WelcomeController < ApplicationController def home <%= link_to('Log in with Facebook!', '/auth/facebook') %> end end
35,899
https://github.com/nh-live/sshWebConsole/blob/master/src/models/init.go
Github Open Source
Open Source
MIT
2,017
sshWebConsole
nh-live
Go
Code
9
31
package models import "encoding/gob" func init() { gob.Register(UserInfo{}) }
20,339
https://github.com/SandraGH5/flytectl/blob/master/cmd/version/version.go
Github Open Source
Open Source
Apache-2.0
null
flytectl
SandraGH5
Go
Code
394
1,258
package version import ( "context" "encoding/json" "fmt" cmdCore "github.com/flyteorg/flytectl/cmd/core" "github.com/flyteorg/flytectl/pkg/util" "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin" "github.com/flyteorg/flytestdlib/logger" stdlibversion "github.com/flyteorg/flytestdlib/version" hversion "g...
28,982
https://github.com/mloffler/hgeometry/blob/master/hgeometry-showcase/lib/Common.hs
Github Open Source
Open Source
BSD-3-Clause
2,021
hgeometry
mloffler
Haskell
Code
1,198
2,646
{-# LANGUAGE DataKinds #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeOperators #-} module Common where import Codec.Picture (PixelRGBA8 (..)) import Control.Lens import Control.Monad.Random import qualified Data....
7,011
https://github.com/jmetcher2/dm/blob/master/dmpersistence/src/main/java/au/id/lagod/dm/persistence/JPAFinder.java
Github Open Source
Open Source
Apache-2.0
null
dm
jmetcher2
Java
Code
653
2,327
package au.id.lagod.dm.persistence; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.persistence.criteria.CriteriaBuilder; import javax.persistence.criteria.CriteriaQuery; import javax.persistence.criteria.From; import javax.persistence.criteria.Join; imp...
9
https://github.com/albracher/ftc_app/blob/master/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/DrivetrainTest.java
Github Open Source
Open Source
MIT
2,018
ftc_app
albracher
Java
Code
606
1,663
package org.firstinspires.ftc.teamcode; //Dpad Up = speed 100% //Dpad Down = speed 50% //RT Raises intake //LT Lowers intake //Second player can also control intake with left stick for fine control, or RT/LT //Button A does intake (toggle) //Button X is reverse intake (toggle) //Button Y is slow intake (50% speed) (to...
4,804
https://github.com/alner/variance-waterfall/blob/master/src/controller.js
Github Open Source
Open Source
MIT
2,019
variance-waterfall
alner
JavaScript
Code
154
575
import ConvertHypercube from "./converthypercube" import picasso from 'picasso.js'; import pq from 'picasso-plugin-q'; import picassoHammer from 'picasso-plugin-hammer'; import bridgepicassospec from "./bridgepicassospec"; import ThemeManager from './theme' import { interactionsSetup, mouseEventToRangeEvent, en...
13,625
https://github.com/matu3ba/cports/blob/master/main/binutils/patches/bfd-close-file-desriptor-if-there-is-no-archive-fd.patch
Github Open Source
Open Source
BSD-2-Clause
2,022
cports
matu3ba
null
Spoken
727
2,863
Upstream: yes URL: https://sourceware.org/bugzilla/show_bug.cgi?id=28138 From 1c611b40e6bfc8029bff7696814330b5bc0ee5c0 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" <hjl.tools@gmail.com> Date: Mon, 26 Jul 2021 05:59:55 -0700 Subject: [PATCH] bfd: Close the file descriptor if there is no archive fd Close the file descriptor...
3,033
https://github.com/authenticate/vulkan-renderer/blob/master/include/inexor/vulkan-renderer/wrapper/instance.hpp
Github Open Source
Open Source
MIT
null
vulkan-renderer
authenticate
C++
Code
368
894
#pragma once #include "inexor/vulkan-renderer/availability_checks.hpp" #include <vulkan/vulkan_core.h> #include <string> #include <vector> namespace inexor::vulkan_renderer::wrapper { /// @brief A RAII wrapper class for VkInstance. /// @note The instantiation of this class must be synchronized externally. class In...
23,991
https://github.com/lhdv/exercism.io/blob/master/go/pascals-triangle/pascal_triangle.go
Github Open Source
Open Source
MIT
2,018
exercism.io
lhdv
Go
Code
101
244
package pascal // Triangle build a Pascal Triangle for a given int func Triangle(n int) [][]int { var result [][]int if n < 1 { return [][]int{} } result = append(result, []int{1}) if n == 1 { return result } result = append(result, []int{1, 1}) if n == 2 { return result } for i := 2; i < n; i++ {...
18,003
https://github.com/webfueler/mauro-website/blob/master/src/og/what-s-new-in-javascript.js
Github Open Source
Open Source
MIT
2,021
mauro-website
webfueler
JavaScript
Code
41
124
import React from 'react'; import { Board, Card, H1, Logo } from './components'; import JavascriptLogo from './logos/javascript.js'; export default () => ( <Board> <Logo> <JavascriptLogo /> </Logo> <Card style={{ width: '70%', textAlign: 'center' }}> <H1>What's new i...
10,592
https://github.com/grantcolley/tradeview/blob/master/src/DevelopmentInProgress.TradeServer.StrategyExecution.WebHost/Web/Middleware/MiddlewareExtensions.cs
Github Open Source
Open Source
Apache-2.0
2,022
tradeview
grantcolley
C#
Code
62
250
using Microsoft.AspNetCore.Builder; namespace DevelopmentInProgress.TradeServer.StrategyExecution.WebHost.Web.Middleware { public static class MiddlewareExtensions { internal static IApplicationBuilder UseRunStrategyMiddleware(this IApplicationBuilder builder) { return builder.UseM...
38,862
https://github.com/kkcookies99/UAST/blob/master/Dataset/Leetcode/train/102/601.py
Github Open Source
Open Source
MIT
null
UAST
kkcookies99
Python
Code
53
174
class Solution: def XXX(self, root: TreeNode) -> List[List[int]]: if root is None: return [] stack = [root] ans = [[root.val]] while stack: n = len(stack) tmp = [] for j in range(n): cur = stack.pop(0) if...
22,113
https://github.com/xin9le/Slack.Integration/blob/master/src/Slack.Integration/Internals/JsonConverters.cs
Github Open Source
Open Source
MIT
2,022
Slack.Integration
xin9le
C#
Code
277
815
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Runtime.Serialization; using System.Text.Json; using System.Text.Json.Serialization; namespace Slack.Integration.Internals; /// <summary> /// Provides <see cref="EnumMemberAttribute.Value"/> from/to JSON conver...
9,981
https://github.com/ag-sbogd/mono-changelog/blob/master/core/core/src/features/button/components/Button.tsx
Github Open Source
Open Source
MIT
null
mono-changelog
ag-sbogd
TypeScript
Code
105
278
import React from 'react'; import classNames from 'classnames'; import { EButtonTypes } from '../../../definitions'; import './Button.scss'; export type TButtonProps = { hasBorder?: boolean; variant?: EButtonTypes; isRound?: boolean; } & JSX.IntrinsicElements['button']; /** * A generic Button component * @c...
8,438
https://github.com/superbobry/gradle-script-kotlin/blob/master/samples-tests/src/test/kotlin/org/gradle/script/lang/kotlin/samples/GroovyInteropSampleTest.kt
Github Open Source
Open Source
Apache-2.0
2,017
gradle-script-kotlin
superbobry
Kotlin
Code
30
150
package org.gradle.script.lang.kotlin.samples import org.hamcrest.CoreMatchers.containsString import org.junit.Assert.assertThat import org.junit.Test class GroovyInteropSampleTest : AbstractSampleTest("groovy-interop") { @Test fun `stringSum`() { assertThat( build("stringSum").output, ...
22,166
https://github.com/3NCRY9T3R/HacktoberFest-DSC-ABESEC/blob/master/C, C++/duplicates_str.cpp
Github Open Source
Open Source
MIT
2,020
HacktoberFest-DSC-ABESEC
3NCRY9T3R
C++
Code
29
171
#include<iostream> using namespace std; int main(){ char f[]="findings"; int h[26]; for(int k=0;k<26;k++){ h[k]=0; } for(int i=0; f[i]!='\0';i++){ h[f[i]-97]+=1; } for(int i=0;i<26;i++){ if(h[i]>1){ cout<<i+97<<'\n'; cout<<h[i]<<"tim...
46,899
https://github.com/MattTaylorDLS/pymalcolm/blob/master/tests/test_gui/test_guimodel.py
Github Open Source
Open Source
Apache-2.0
null
pymalcolm
MattTaylorDLS
Python
Code
169
635
import unittest from mock import MagicMock, patch from malcolm.gui.guimodel import GuiModel, BlockItem from malcolm.core import Process, call_with_params from malcolm.modules.demo.blocks import hello_block class TestBlockModel(unittest.TestCase): @patch("malcolm.gui.guimodel.GuiModel.response_received") def ...
9,230
https://github.com/lizsaccoccia/resource-watch/blob/master/layout/explore/explore-component.js
Github Open Source
Open Source
MIT
2,018
resource-watch
lizsaccoccia
JavaScript
Code
138
434
/* eslint max-len: 0 */ import React from 'react'; import PropTypes from 'prop-types'; // Responsive import MediaQuery from 'react-responsive'; import { breakpoints } from 'utils/responsive'; // Components import Layout from 'layout/layout/layout-app'; // Explore components import ExploreSidebar from 'layout/explore...
5,196
https://github.com/groverankush/dataStructures-and-algorithms/blob/master/src/com/ankushgrover/problems/P41MultiplyStrings.java
Github Open Source
Open Source
MIT
null
dataStructures-and-algorithms
groverankush
Java
Code
283
716
package com.ankushgrover.problems; /** * https://leetcode.com/problems/multiply-strings/ */ public class P41MultiplyStrings { public static void main(String[] args) { String f = ""; String s = "956349"; System.out.println(String.format("%s X %s", f, s)); System.out.println(multi...
28,957
https://github.com/longztian/cpp/blob/master/codility/11_CountSemiprimes.cpp
Github Open Source
Open Source
MIT
null
cpp
longztian
C++
Code
195
487
// you can use includes, for example: // #include <algorithm> // you can write to stdout for debugging purposes, e.g. // cout << "this is a debug message" << endl; #include <cmath> vector<int> solution(int N, vector<int> &P, vector<int> &Q) { // write your code in C++11 (g++ 4.8.2) vector<int> primes(N+1, 1)...
21,933
https://github.com/strandfield/yasl/blob/master/include/yasl/common/value.h
Github Open Source
Open Source
MIT
2,020
yasl
strandfield
C
Code
258
694
// Copyright (C) 2018 Vincent Chambrin // This file is part of the Yasl project // For conditions of distribution and use, see copyright notice in LICENSE #ifndef YASL_COMMONS_VALUE_H #define YASL_COMMONS_VALUE_H #include <script/function.h> #include <script/value.h> #include <script/userdata.h> #include <QMetaType>...
1,334
https://github.com/zhmu/ananas/blob/master/external/binutils-2.38/gas/testsuite/gas/aarch64/msr.d
Github Open Source
Open Source
GPL-3.0-only, GPL-2.0-only, LGPL-3.0-only, GPL-1.0-or-later, LGPL-2.0-or-later, LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-other-copyleft, LGPL-2.0-only, LicenseRef-scancode-other-permissive, GPL-2.0-or-later, Zlib, LicenseRef-scancode-public-domain, FSFAP
2,022
ananas
zhmu
Makefile
Code
109
486
#as: -march=armv8.2-a+profile #objdump: -dr .*: file format .* Disassembly of section \.text: 0+ <.*>: 0: d50340df msr daifset, #0x0 4: d50341df msr daifset, #0x1 8: d5034fdf msr daifset, #0xf c: d50340ff msr daifclr, #0x0 10: d50341ff msr daifclr, #0x1 14: d5034fff msr daifclr, #0xf 18: ...
43,684
https://github.com/releng-tool/releng-tool-doc-translations/blob/master/locale-development/de/LC_MESSAGES/news/2021-12-31_00.10.00.po
Github Open Source
Open Source
BSD-2-Clause
2,023
releng-tool-doc-translations
releng-tool
Gettext Catalog
Code
732
2,240
# SOME DESCRIPTIVE TITLE. # Copyright (C) 2021 releng-tool # This file is distributed under the same license as the releng-tool # package. # FIRST AUTHOR <EMAIL@ADDRESS>, 2022. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: releng-tool \n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2022-05-02 01:01-0400\n" "PO-...
27,910
https://github.com/ksadjad/JDeodorant/blob/master/src/gr/uom/java/ast/decomposition/cfg/CFGBranchSwitchNode.java
Github Open Source
Open Source
MIT
2,022
JDeodorant
ksadjad
Java
Code
17
81
package gr.uom.java.ast.decomposition.cfg; import gr.uom.java.ast.decomposition.AbstractStatement; public class CFGBranchSwitchNode extends CFGBranchConditionalNode { public CFGBranchSwitchNode(AbstractStatement statement) { super(statement); } }
41,830
https://github.com/auth0-lab/fga-go-sdk/blob/master/model_write_authorization_model_response.go
Github Open Source
Open Source
MIT
2,022
fga-go-sdk
auth0-lab
Go
Code
466
1,121
/** * Go SDK for Auth0 Fine Grained Authorization (FGA) * * Auth0 Fine Grained Authorization (FGA) is an early-stage product we are building at Auth0 as part of Auth0Lab to solve fine-grained authorization at scale. If you are interested in learning more about our plans, please reach out via our Discord chat. The l...
38,177
https://github.com/lxe/io.coffee/blob/master/deps/npm/node_modules/fs-write-stream-atomic/index.coffee
Github Open Source
Open Source
Artistic-2.0
null
io.coffee
lxe
CoffeeScript
Code
262
765
md5hex = -> hash = crypto.createHash("md5") ii = 0 while ii < arguments.length hash.update "" + arguments[ii] ++ii hash.digest "hex" getTmpname = (filename) -> filename + "." + md5hex(__filename, process.pid, ++invocations) WriteStream = (path, options) -> options = {} unless options return new ...
19,866
https://github.com/wingfield4/dddesigns/blob/master/database/seeds/DatabaseSeeder.php
Github Open Source
Open Source
MIT
null
dddesigns
wingfield4
PHP
Code
45
214
<?php use Illuminate\Database\Seeder; class DatabaseSeeder extends Seeder { /** * Seed the application's database. * * @return void */ public function run() { // $this->call(UsersTableSeeder::class); // factory(App\Item::class, 50)->create(); $this->call([ ...
42,506
https://github.com/giseleblair/manager-ui/blob/master/src/apps/content-editor/src/app/ContentEditor.js
Github Open Source
Open Source
Apache-2.0
null
manager-ui
giseleblair
JavaScript
Code
250
848
import React, { Component } from "react"; import { connect } from "react-redux"; import { Switch, Route } from "react-router-dom"; import { fetchModels } from "shell/store/models"; import { fetchItemPublishings } from "shell/store/content"; import { fetchNav } from "../store/navContent"; import { fetchHeadTags } from ...
43,367
https://github.com/libinworks/diff/blob/master/.npmignore
Github Open Source
Open Source
MIT
2,020
diff
libinworks
Ignore List
Code
12
55
.* *.md build/ node_modules/ src/ webpack.config.js .gitignore index.html .editorconfig .babelrc .package-lock.json dist/*.map
28,328
https://github.com/evgenidb/netage-excercises/blob/master/Nodejs/HelloWorld/views/user-clear.jade
Github Open Source
Open Source
MIT
null
netage-excercises
evgenidb
null
Spoken
25
78
extends layout block content h1= title // CLEAR USERS form#formClearUsers(name="clearUsers", method="post") p Note: This operation is Irreversable! br button#btnAddUser(type="submit") Delete All Users // /CLEAR USER
51,120
https://github.com/Pauan/rust-signals/blob/master/src/signal/mutable.rs
Github Open Source
Open Source
MIT
2,023
rust-signals
Pauan
Rust
Code
1,145
3,874
use super::Signal; use std; use std::fmt; use std::pin::Pin; use std::marker::Unpin; use std::ops::{Deref, DerefMut}; // TODO use parking_lot ? use std::sync::{Arc, Weak, Mutex, RwLock, RwLockReadGuard, RwLockWriteGuard}; // TODO use parking_lot ? use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering}; use std::tas...
618
https://github.com/pnp/pnpframework/blob/master/src/lib/PnP.Framework/Modernization/Transform/ContentTransformator.cs
Github Open Source
Open Source
MIT
2,023
pnpframework
pnp
C#
Code
2,090
8,281
using Microsoft.SharePoint.Client; using Newtonsoft.Json.Linq; using PnP.Framework.Modernization.Cache; using PnP.Framework.Modernization.Entities; using PnP.Framework.Modernization.Extensions; using PnP.Framework.Modernization.Functions; using PnP.Framework.Modernization.Telemetry; using System; using System.Collecti...
36,379
https://github.com/StormHub/DotNetty/blob/master/src/DotNetty.Transport/Channels/Sockets/DefaultSocketChannelConfiguration.cs
Github Open Source
Open Source
MIT
2,018
DotNetty
StormHub
C#
Code
614
2,163
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace DotNetty.Transport.Channels.Sockets { using System; using System.Diagnostics.Contracts; using System.Net.Sockets; /// <summary> /// The ...
20,099
https://github.com/allie/superdendy/blob/master/include/core/logger.h
Github Open Source
Open Source
MIT
null
superdendy
allie
C
Code
83
259
#pragma once #include "common/data.h" #include <string> #include <fstream> namespace SuperDendy::Core { enum LogLevel { OFF = 0, FATAL, ERROR, WARN, INFO, DEBUG, ALL }; class Logger { private: Logger() {}; static std::ofstream ofs; static void write_line(const std::string& prefix, const std:...
16,948
https://github.com/shapiromatron/hawc/blob/master/hawc/apps/eco/migrations/0004_updates_0223.py
Github Open Source
Open Source
MIT
2,023
hawc
shapiromatron
Python
Code
89
387
# Generated by Django 3.2.16 on 2023-02-02 19:15 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("eco", "0003_updates"), ] operations = [ migrations.AlterField( model_name="cause", ...
9,510
https://github.com/lkammath/openpower-vpd-parser/blob/master/vpd-parser/memory_vpd_parser.cpp
Github Open Source
Open Source
Apache-2.0
2,021
openpower-vpd-parser
lkammath
C++
Code
126
407
#include "memory_vpd_parser.hpp" #include <iostream> #include <numeric> #include <string> namespace openpower { namespace vpd { namespace memory { namespace parser { using namespace inventory; using namespace constants; using namespace std; using namespace openpower::vpd::parser; kwdVpdMap memoryVpdParser::readKeywo...
48,381
https://github.com/joyeekk/nacos/blob/master/istio/src/main/java/com/alibaba/nacos/istio/common/NacosServiceInfoResourceWatcher.java
Github Open Source
Open Source
Apache-2.0
2,022
nacos
joyeekk
Java
Code
294
904
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
41,828
https://github.com/koppchen/karma/blob/master/ui/src/Components/MainModal/Configuration/AlertGroupSortConfiguration.test.js
Github Open Source
Open Source
Apache-2.0
null
karma
koppchen
JavaScript
Code
435
1,615
import React from "react"; import { mount } from "enzyme"; import toDiffableHtml from "diffable-html"; import { MockThemeContext } from "__mocks__/Theme"; import { Settings } from "Stores/Settings"; import { useFetchGet } from "Hooks/useFetchGet"; import { AlertGroupSortConfiguration } from "./AlertGroupSortConfigur...
36,414
https://github.com/jsrraman/sample-android/blob/master/app/src/main/java/com/rajaraman/sample/ui/TestActivity.java
Github Open Source
Open Source
MIT
null
sample-android
jsrraman
Java
Code
26
112
package com.rajaraman.sample.ui; import android.app.Activity; import android.os.Bundle; import com.rajaraman.sample.R; import org.androidannotations.annotations.EActivity; @EActivity(R.layout.activity_test) public class TestActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceS...
27,467
https://github.com/bsm2/ecommerce/blob/master/app/Http/Controllers/Dashboard/UserController.php
Github Open Source
Open Source
MIT
null
ecommerce
bsm2
PHP
Code
264
1,026
<?php namespace App\Http\Controllers\Dashboard; use App\Http\Controllers\Controller; use App\Models\User; use Illuminate\Http\Request; use App\DataTables; use App\DataTables\userDatatable; use Illuminate\Validation\Rule; class UserController extends Controller { /** * Display a listing of the resource. ...
13
https://github.com/iapsekian/ptt-alertor/blob/master/crawler/crawler_test.go
Github Open Source
Open Source
Apache-2.0
2,017
ptt-alertor
iapsekian
Go
Code
71
227
package crawler import "testing" func TestBuildArticle(t *testing.T) { type args struct { board string articleCode string } tests := []struct { name string args args want string }{ {"Test", args{"ezsoft", "M.1497363598.A.74E"}, "[推薦][自製] Ptt Alertor Ptt新文章即時通知"}, } for _, tt := range tests { ...
17,854
https://github.com/tmax-cloud/l2c-operator/blob/master/internal/utils/logger.go
Github Open Source
Open Source
Apache-2.0
null
l2c-operator
tmax-cloud
Go
Code
156
536
package utils import ( "github.com/go-logr/logr" "reflect" "runtime" "sigs.k8s.io/controller-runtime/pkg/log" "strings" ) type TupLogger struct { subresource interface{} resNamespace, resName string } func funcName() string { pc := make([]uintptr, 15) n := runtime.Callers(4, pc) //Skip: 3 (Callers...
42,724
https://github.com/d4ld2l/corp_net_react/blob/master/src/components/Icon/SocialNetwork/Icq.js
Github Open Source
Open Source
WTFPL
null
corp_net_react
d4ld2l
JavaScript
Code
56
2,391
// @flow import React from 'react' export default ({ className }) => ( <svg className={className} viewBox="0 0 20 20"> <title>ICQ</title> <path d="M17.48,10.05c0.56-0.2,0.88-0.48,1.19-0.79c0.65-0.65,1.03-1.86,0.12-3.27c-0.5-0.78-1.12-1.03-1.56-1.11 c-0.75-0.13-1.48,0.17-1.87,0.46c-0.02,0.02-0.07,0.06-0.11,...
51,041
https://github.com/wellington1993/ember-cli-rails/blob/master/lib/ember_cli/app.rb
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-free-unknown, MIT
2,016
ember-cli-rails
wellington1993
Ruby
Code
202
835
require "html_page/renderer" require "ember_cli/path_set" require "ember_cli/shell" require "ember_cli/build_monitor" require "ember_cli/deploy/file" module EmberCli class App attr_reader :name, :options, :paths def initialize(name, **options) @name = name.to_s @options = options @paths = ...
27,688
https://github.com/dodSONSoftware/MirrorAndArchiveTool/blob/master/MirrorAndArchiveTool/ValueConverters/TimeSpanToStringConverter.cs
Github Open Source
Open Source
MIT
2,021
MirrorAndArchiveTool
dodSONSoftware
C#
Code
56
185
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace MirrorAndArchiveTool.ValueConverters { public class TimeSpanToStringConverter : System.Windows.Data.IValueConverter { public object Convert(object value, Type targetType, object parameter, Sys...
19,616
https://github.com/jaydpather/CommonGameLogic/blob/master/Assets/GameLogic/StoreLogicService/ProductInfoViewModel.cs
Github Open Source
Open Source
BSD-3-Clause
2,020
CommonGameLogic
jaydpather
C#
Code
42
112
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ThirdEyeSoftware.GameLogic.StoreLogicService { public class ProductInfoViewModel { public string PriceString { get; set; } public string SavePctString { get; set; } //e...
28,237
https://github.com/karunmatharu/Android-4.4-Pay-by-Data/blob/master/dalvik/vm/mterp/armv5te/OP_SUB_DOUBLE.S
Github Open Source
Open Source
LicenseRef-scancode-generic-cla, Apache-2.0, MIT
2,017
Android-4.4-Pay-by-Data
karunmatharu
Unix Assembly
Code
6
37
%verify "executed" %include "armv5te/binopWide.S" {"instr":"bl __aeabi_dsub"}
35,857
https://github.com/mandrake73/WSRNodeJS/blob/master/webapp/views/fragments/sidenav.ejs
Github Open Source
Open Source
WTFPL
2,013
WSRNodeJS
mandrake73
EJS
Code
83
382
<% var config = SARAH.ConfigManager.getConfig(); %> <div class="well sidebar-nav"> <ul class="nav nav-list"> <li class="nav-header"><%= config.bot.name %></li> <li><a href="/home#about">A propos</a></li> <li><a href="/home#agent">Agent</a></li> <li><a href="/home#http">Serveur HTTP</a></li> <li c...
49,678
https://github.com/California-Data-Collaborative/cadc_reservoir_explorer/blob/master/archive/Python Scripts/GetHistoric.py
Github Open Source
Open Source
MIT
2,018
cadc_reservoir_explorer
California-Data-Collaborative
Python
Code
290
1,134
from bs4 import BeautifulSoup import urllib.request import datetime import pandas as pd def GetDamsABBR(): html = "http://cdec.water.ca.gov/misc/daily_res.html" page = urllib.request.urlopen(html) soup = BeautifulSoup(page, "lxml") dam_abbr = [] for i in soup.table.find_all("b"): if len(i.text) == 3: dam_abb...
21,866