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/csf-dev/agiil/blob/master/Tests/Agiil.Tests.Domain/Tickets/RelationshipValidation/TraversibleRelationshipProviderTests.cs
Github Open Source
Open Source
MIT
null
agiil
csf-dev
C#
Code
190
956
using NUnit.Framework; using System; using Agiil.Domain.Tickets.RelationshipValidation; using Agiil.Tests.Attributes; using AutoFixture.NUnit3; using AutoMapper; using System.Linq; using Agiil.Domain.Tickets; using Moq; using CSF.Entities; namespace Agiil.Tests.Tickets.RelationshipValidation { [TestFixture,Parallel...
2,709
https://github.com/FLOW4215/iotdb-benchmark/blob/master/core/src/main/java/cn/edu/tsinghua/iotdb/benchmark/tsdb/IDatabase.java
Github Open Source
Open Source
Apache-2.0
2,021
iotdb-benchmark
FLOW4215
Java
Code
822
1,773
package cn.edu.tsinghua.iotdb.benchmark.tsdb; import cn.edu.tsinghua.iotdb.benchmark.exception.DBConnectException; import cn.edu.tsinghua.iotdb.benchmark.measurement.Status; import cn.edu.tsinghua.iotdb.benchmark.workload.ingestion.Batch; import cn.edu.tsinghua.iotdb.benchmark.workload.query.impl.AggRangeQuery; impor...
51,347
https://github.com/avenidanet/Isometric-Cocoa/blob/master/ICWorld.h
Github Open Source
Open Source
MIT
2,013
Isometric-Cocoa
avenidanet
Objective-C
Code
38
160
// // ICWorld.h // isometrico_base // // Created by Brian Salazar on 7/31/13. // Copyright (c) 2013 Avenidanet. All rights reserved. // #import <UIKit/UIKit.h> #import "ICGrid.h" @interface ICWorld : UIScrollView <UIScrollViewDelegate> -(id)initWithFrame:(CGRect)frame andRowsX:(int)rowsX andRowsY:(int)rowsY andW...
9,759
https://github.com/opensha/opensha-cybershake/blob/master/src/main/java/scratch/kevin/cybershake/BackSeisPlotter.java
Github Open Source
Open Source
BSD-3-Clause
2,023
opensha-cybershake
opensha
Java
Code
392
1,870
package scratch.kevin.cybershake; import java.io.File; import java.io.IOException; import java.util.Map; import org.opensha.commons.data.function.ArbitrarilyDiscretizedFunc; import org.opensha.commons.data.region.CaliforniaRegions; import org.opensha.commons.data.xyz.GeoDataSet; import org.opensha.commons.data.xyz.Ge...
47,429
https://github.com/joaopandolfi/Resimed/blob/master/js/directors/edital.js
Github Open Source
Open Source
MIT
2,018
Resimed
joaopandolfi
JavaScript
Code
134
516
/* * Director responsavel por montar a tela do edital * Acessa servidor e monta a tela * @requires io/ajax.js * @requires controller/edital.js * @requires controller/menu_drawer.js * @requires contants/routes_constants.js * @requires contants/server_constants.js * @requires utils/urlHelper.js * @requires @url @params ...
40,213
https://github.com/Eyoatam/deno-module-boilerplate/blob/master/deps/deps.ts
Github Open Source
Open Source
MIT
null
deno-module-boilerplate
Eyoatam
TypeScript
Code
6
30
export * as colorsTs from "https://deno.land/std@0.86.0/fmt/colors.ts";
3,750
https://github.com/ahulist/K3D-jupyter/blob/master/js/src/core/lib/objectsGUIprovider.js
Github Open Source
Open Source
MIT
2,021
K3D-jupyter
ahulist
JavaScript
Code
893
3,406
//jshint maxstatements:false, maxcomplexity:false, maxdepth:false 'use strict'; function changeParameter(K3D, json, key, value) { var change = {}; change[key] = value; if (key !== 'name') { K3D.reload(json, change); } K3D.dispatch(K3D.events.OBJECT_CHANGE, { id: json.id, ...
29,731
https://github.com/DarkEld3r/transliterator/blob/master/gui/main.rs
Github Open Source
Open Source
MIT
2,020
transliterator
DarkEld3r
Rust
Code
181
766
extern crate translator; extern crate piston_window; #[macro_use] extern crate conrod; extern crate find_folder; use translator::Translator; use piston_window::{PistonWindow, WindowSettings, EventLoop, Glyphs, UpdateEvent, G2d}; use conrod::{Theme, Canvas, TextBox, Widget, Sizeable, Positionable, Graphics}; use conr...
53,481
https://github.com/textlint/txt-ast-traverse/blob/master/test/traverse-dump.js
Github Open Source
Open Source
BSD-3-Clause, MIT
2,015
txt-ast-traverse
textlint
JavaScript
Code
96
261
// LICENSE : MIT "use strict"; import * as controller from '../lib/txt-ast-traverse.js'; class Dumper { constructor() { this.logs = []; } addLog(str) { this.logs.push(str); } /** * Return stored logs. * Each logs contain node.type. * @returns {{string,string}[]} resu...
45,816
https://github.com/Taxcut/Fishy/blob/master/HCF/src/com/fishy/HCF/deathban/lives/argument/LivesClearDeathbansArgument.java
Github Open Source
Open Source
Apache-2.0
null
Fishy
Taxcut
Java
Code
94
350
package com.fishy.hcf.deathban.lives.argument; import com.fishy.hcf.HCF; import com.fishy.hcf.user.FactionUser; import com.fishy.hcf.util.base.command.CommandArgument; import org.bukkit.ChatColor; import org.bukkit.command.Command; import org.bukkit.command.CommandSender; public class LivesClearDeathbansArgument ext...
33,723
https://github.com/SkillsFundingAgency/tl-result-and-certification/blob/master/src/Sfa.Tl.ResultsAndCertification.Database/Tables/QualificationGrade.sql
Github Open Source
Open Source
MIT
2,021
tl-result-and-certification
SkillsFundingAgency
SQL
Code
73
254
CREATE TABLE [dbo].[QualificationGrade] ( [Id] INT IDENTITY(1,1) NOT NULL, [QualificationTypeId] INT NOT NULL, [Grade] NVARCHAR(50) NOT NULL, [GradeRank] INT NOT NULL DEFAULT 0, [IsAllowable] BIT NOT NULL DEFAULT 0, [IsSendGrade] BIT NOT NULL DEFAULT 0, [IsActive] BIT NOT NULL DEFAULT 1, [CreatedOn] DATETIME...
50,441
https://github.com/ringingmaster/ringingmaster-engine/blob/master/src/test/java/org/ringingmaster/engine/parser/splice/ValidateInUseCallAvailableInEveryMethodWhenSplicedTest.java
Github Open Source
Open Source
MIT
null
ringingmaster-engine
ringingmaster
Java
Code
783
5,093
package org.ringingmaster.engine.parser.splice; import org.junit.Test; import org.ringingmaster.engine.NumberOfBells; import org.ringingmaster.engine.composition.MutableComposition; import org.ringingmaster.engine.notation.Notation; import org.ringingmaster.engine.notation.NotationBuilder; import org.ringingmaster.eng...
26,871
https://github.com/f1ss1on/rk-portfolio/blob/master/themes/riad-kilani_v4-child/scss/_layout.scss
Github Open Source
Open Source
MIT
2,018
rk-portfolio
f1ss1on
SCSS
Code
194
653
#page { background-color: #333; transition: all 0.5s ease; z-index: 10; position: relative; .site-content { //margin: 40px auto; .entry-content, .entry-header { margin-bottom: 20px; } .entry-title { @include font-size(2.4); } } .content-sidebar-wrapper { //float:...
30,783
https://github.com/ScalablyTyped/Distribution/blob/master/r/react-native-material-kit/src/main/scala/typings/reactNativeMaterialKit/mod/ProgressStyle.scala
Github Open Source
Open Source
MIT
2,023
Distribution
ScalablyTyped
Scala
Code
114
391
package typings.reactNativeMaterialKit.mod import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} trait ProgressStyle extends StObject { var backgroundColor: js.UndefOr[String] = js.undefined var buffe...
13,480
https://github.com/UV-Labs/hardhat-network/blob/master/src/test/internal/hardhat-network/stack-traces/test-files/0_8/out-of-gas/oog-chaining/c.sol
Github Open Source
Open Source
Unlicense
null
hardhat-network
UV-Labs
Solidity
Code
187
356
pragma solidity ^0.8.0; // Note: This test is pretty special and also fragile. // It check two kinds of OOGs "chaining": // * When an EVM message (M) OOGs, and the caller message also OOGs while checking if M OOG'd // * When an EVM message OOGs, and the caller reverts because of that // // The latter case leads to a...
43,425
https://github.com/knopflerfish/eclipse.knopflerfish.org/blob/master/org.knopflerfish.eclipse.core.ui/src/org/knopflerfish/eclipse/core/ui/UiUtils.java
Github Open Source
Open Source
BSD-3-Clause, LicenseRef-scancode-unknown-license-reference
2,017
eclipse.knopflerfish.org
knopflerfish
Java
Code
692
1,684
/* * Copyright (c) 2003-2005, KNOPFLERFISH project * 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 source code must retain the above copyright * notice, this ...
18,043
https://github.com/avdyushin/OsmAnd-ios/blob/master/Sources/Controllers/2.0/OATargetInfoViewController.mm
Github Open Source
Open Source
MIT
2,018
OsmAnd-ios
avdyushin
Objective-C++
Code
1,066
4,341
// // OATargetInfoViewController.m // OsmAnd // // Created by Alexey Kulish on 29/05/16. // Copyright © 2016 OsmAnd. All rights reserved. // #import "OATargetInfoViewController.h" #import "OAUtilities.h" #import "OATargetInfoViewCell.h" #import "OATargetInfoCollapsableViewCell.h" #import "OAWebViewCell.h" #import ...
30,362
https://github.com/shiablue/vscode/blob/master/src/vs/platform/keybinding/common/keybindingService.ts
Github Open Source
Open Source
MIT
2,015
vscode
shiablue
TypeScript
Code
203
673
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
6,737
https://github.com/agneske-arter-walter-mostertruck-firetr/pushfish-android/blob/master/gradle/wrapper/dists/gradle-1.12-all/4ff8jj5a73a7zgj5nnzv1ubq0/gradle-1.12/src/core-impl/org/gradle/api/internal/externalresource/LocalFileStandInExternalResource.java
Github Open Source
Open Source
BSD-2-Clause
2,021
pushfish-android
agneske-arter-walter-mostertruck-firetr
Java
Code
289
707
/* * Copyright 2012 the original author or authors. * * 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...
35,415
https://github.com/khadraoui-ines/tp_igl/blob/master/resources/js/components/Descriptions.vue
Github Open Source
Open Source
MIT
2,020
tp_igl
khadraoui-ines
Vue
Code
106
362
<template> <!-- une description des fonctionnalités de l'application ESI SCHOOL --> <img class="logo" src="school"/> <span class="titre" >ESI SCHOOL</span> <span style="margin-top:25px;">"ESI School : une application web de gestion de la scolarité ciblant </span> <span>les étudiants, les enseignants et l’admi...
46,794
https://github.com/victoriest/photio/blob/master/common/src/main/java/me/victoriest/photio/dao/mapper/source/ScheduleMapper.java
Github Open Source
Open Source
Apache-2.0
null
photio
victoriest
Java
Code
69
312
package me.victoriest.photio.dao.mapper.source; import java.util.List; import me.victoriest.photio.model.entity.Schedule; import me.victoriest.photio.model.entity.ScheduleExample; import org.apache.ibatis.annotations.Param; public interface ScheduleMapper { long countByExample(ScheduleExample example); int d...
13,156
https://github.com/mikevdg/urad/blob/master/src/main/java/gulik/urad/value/Value.java
Github Open Source
Open Source
MIT
null
urad
mikevdg
Java
Code
109
293
package gulik.urad.value; import java.util.Date; import java.util.Objects; public abstract class Value implements Comparable { public static Value NULL = new NullValue(); public static Value of(Object something) { if (null==something) return NULL; if (something instanceof String) { ...
33,414
https://github.com/sjl/advent/blob/master/src/2019/days/day-04.lisp
Github Open Source
Open Source
MIT
2,021
advent
sjl
Common Lisp
Code
114
384
(advent:defpackage* :advent/2019/04) (in-package :advent/2019/04) (defun nondecreasing-digits-p (n) (iterate (for (a b) :on (digits n)) (while b) (always (<= a b)))) (defun contains-duplicate-digit-p (n) (iterate (for (a b) :on (digits n)) (thereis (eql a b)))) (defun contains-offset-duplicat...
34,005
https://github.com/JanRajnoha/ISUF/blob/master/src/ISUF.UI/Command/BackupItemsCommand.cs
Github Open Source
Open Source
Apache-2.0
2,021
ISUF
JanRajnoha
C#
Code
127
411
using ISUF.UI.EventArgs; using System; using System.Linq; using Windows.Storage; using Windows.Storage.Pickers; namespace ISUF.UI.Command { /// <summary> /// Command for backuping /// </summary> public class BackupItemsCommand : Command { /// <inheritdoc/> public override bool CanE...
20,757
https://github.com/chentianming11/study/blob/master/spring-action/src/main/java/com/chen/spring/action/c3/highbean/ambiguity/Cookies.java
Github Open Source
Open Source
Apache-2.0
2,021
study
chentianming11
Java
Code
20
71
package com.chen.spring.action.c3.highbean.ambiguity; import org.springframework.stereotype.Component; /** * @author 陈添明 * @date 2019/2/24 */ @Component public class Cookies implements Dessert { }
24,602
https://github.com/zero4drift/Cpp-Primer-5th-Exercises/blob/master/chapter-6/6.54.cpp
Github Open Source
Open Source
MIT
null
Cpp-Primer-5th-Exercises
zero4drift
C++
Code
10
38
#include <vector> using std::vector; int func1(int, int); vector<int(*)(int, int)> fv;
53,515
https://github.com/anubhavi25/keti/blob/master/service/src/main/kotlin/org/eclipse/keti/acs/attribute/readers/PrivilegeServiceSubjectAttributeReader.kt
Github Open Source
Open Source
EPL-1.0, BSD-3-Clause, MPL-2.0, CDDL-1.1, LicenseRef-scancode-generic-export-compliance, GPL-2.0-only, MIT, Apache-2.0, Apache-1.1, LicenseRef-scancode-public-domain
2,018
keti
anubhavi25
Kotlin
Code
170
449
/******************************************************************************* * Copyright 2018 General Electric Company * * 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:...
41,382
https://github.com/skygaofei/Code/blob/master/AtCoder/AT180 1→1.cpp
Github Open Source
Open Source
Apache-2.0
2,020
Code
skygaofei
C++
Code
84
403
// // AT180 1→1.cpp // Algorithm // // Created by SkyGao on 2020/2/14. // Copyright © 2020 skygao. All rights reserved. // #include <stdio.h> #include <cstdlib> #include <cstring> #include <string> #include <iostream> #include <algorithm> #include <queue> #define re register using namespace std; int a[90005],b[900...
32,643
https://github.com/phcsea/ruoyi-vue-pro/blob/master/yudao-admin-server/src/main/java/cn/iocoder/yudao/adminserver/modules/system/dal/mysql/dept/SysDeptMapper.java
Github Open Source
Open Source
MIT
2,022
ruoyi-vue-pro
phcsea
Java
Code
80
582
package cn.iocoder.yudao.adminserver.modules.system.dal.mysql.dept; import cn.iocoder.yudao.adminserver.modules.tool.enums.SqlConstants; import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX; import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX; import cn.iocoder.yudao.framework.mybatis...
40,042
https://github.com/Majekdor/FarLands/blob/master/src/main/java/net/farlands/sanctuary/command/CommandChain.java
Github Open Source
Open Source
Apache-2.0
2,021
FarLands
Majekdor
Java
Code
165
560
package net.farlands.sanctuary.command; import com.kicas.rp.util.Pair; import com.kicas.rp.util.TextUtils; import net.farlands.sanctuary.FarLands; import net.farlands.sanctuary.data.Rank; import net.farlands.sanctuary.util.FLUtils; import org.bukkit.Bukkit; import org.bukkit.command.CommandSender; import java.util....
8,478
https://github.com/AmrAbuElyazid/Enactus/blob/master/app/Http/Controllers/Student/ProfileController.php
Github Open Source
Open Source
MIT
null
Enactus
AmrAbuElyazid
PHP
Code
347
1,445
<?php namespace App\Http\Controllers\Student; use App\Http\Controllers\Controller; use App\Teacher; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\DB; class ProfileController extends Controller { /** * Get Account Settings * @return \Illuminate\Http\Res...
43,903
https://github.com/gbif/checklistbank/blob/master/checklistbank-cli/src/main/java/org/gbif/checklistbank/neo/traverse/ChunkingEvaluator.java
Github Open Source
Open Source
Apache-2.0
2,023
checklistbank
gbif
Java
Code
291
740
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
6,954
https://github.com/rpkrupali1/cms-style-blog/blob/master/views/layouts/main.handlebars
Github Open Source
Open Source
MIT
null
cms-style-blog
rpkrupali1
null
Spoken
116
582
<!DOCTYPE html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Tech Blog</title> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.3/css/bulma.min.cs...
2,174
https://github.com/stephmelanofridis/homework-15-tech-blog/blob/master/public/js/editpost.js
Github Open Source
Open Source
MIT
null
homework-15-tech-blog
stephmelanofridis
JavaScript
Code
73
235
const editPostFormHandler = async (event) => { event.preventDefault(); const postID = document.querySelector('.edit-post-form').dataset.postid const title = document.querySelector('.blog-title').value.trim(); const content = document.querySelector('.blog-content').value.trim(); if (content) { ...
15,724
https://github.com/jiudehuiyi/react-dingping-webapp/blob/master/my-app/src/containers/Home/components/LikeList/index.jsx
Github Open Source
Open Source
MIT
2,020
react-dingping-webapp
jiudehuiyi
JavaScript
Code
198
732
import React from 'react'; import PropTypes from 'prop-types'; import LikeItem from "../LikeItem"; import Loading from "@/components/Loading"; import "./style.css"; import { Button } from 'antd'; class LikeList extends React.Component { constructor(props){ super(props); this.myRef = React.createRef...
36,834
https://github.com/cmatsuoka/finit/blob/master/plugins/Makefile
Github Open Source
Open Source
MIT
2,013
finit
cmatsuoka
Makefile
Code
97
394
# Plugin based services architecture for finit -*-Makefile-*- CFLAGS += -fPIC -Os CPPFLAGS += -I.. LDFLAGS := $(filter-out -rdynamic, $(LDFLAGS)) LDFLAGS += -shared PLUGINS ?= initctl.so alsa-utils.so bootmisc.so dbus.so hwclock.so \ resolvconf.so urandom.so x11-common.so DEPS = $(addprefix...
4,460
https://github.com/joaoquinto/johnathan-specter/blob/master/js/modules/hamburguer.js
Github Open Source
Open Source
MIT
null
johnathan-specter
joaoquinto
JavaScript
Code
17
75
const hamburguer = document.querySelector(".hamburguer"); const containerLinks = document.querySelector(".container-links"); export default function menuHamburguer() { containerLinks.classList.toggle('hidden') } hamburguer.addEventListener('click', menuHamburguer)
19,186
https://github.com/vantienthanh/tuan-api/blob/master/Modules/Review/Repositories/CompanyRepository.php
Github Open Source
Open Source
MIT
null
tuan-api
vantienthanh
PHP
Code
17
60
<?php namespace Modules\Review\Repositories; use Modules\Core\Repositories\BaseRepository; interface CompanyRepository extends BaseRepository { public function getListCompany(); public function search($name); }
48,785
https://github.com/JRebirth/JRebirth/blob/master/org.jrebirth.af/archetype/src/main/resources/archetype-resources/src/main/java/ui/package-info.java
Github Open Source
Open Source
Apache-2.0
2,022
JRebirth
JRebirth
Java
Code
9
19
/** * Provides User Interface classes. */ package ${package}.ui;
27,486
https://github.com/Jiyugaoka/Algorithm-video-solution/blob/master/ZJU-PTA/BasicLevel/pta1001.java
Github Open Source
Open Source
MIT
2,021
Algorithm-video-solution
Jiyugaoka
Java
Code
52
131
import java.util.Scanner; public class pta1001 { public static void main(String[] args) { Scanner input = new Scanner(System.in); int n = input.nextInt(); int count = 0; while (n!=1) { if ((n&1) == 1) { n = 3 * n + 1; } n /= 2; ...
14,093
https://github.com/idena-network/iavl/blob/master/scripts/protocgen.sh
Github Open Source
Open Source
Apache-2.0
2,021
iavl
idena-network
Shell
Code
12
40
#!/usr/bin/env bash set -eo pipefail buf generate --path proto/iavl mv ./proto/iavl/*.go ./proto
2,236
https://github.com/YYZZT/-/blob/master/react/features/follow-me/index.js
Github Open Source
Open Source
Apache-2.0
null
-
YYZZT
JavaScript
Code
10
24
export * from './middleware'; export * from './subscriber'; import './reducer';
896
https://github.com/bunoza/Appalyzer/blob/master/app/src/main/java/com/calc/alcohol/appalyzer/Vrijeme.java
Github Open Source
Open Source
MIT
null
Appalyzer
bunoza
Java
Code
69
298
package com.calc.alcohol.appalyzer; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; public class Vrijeme extends Alkohol { EditText kolk...
5,370
https://github.com/RobertoAlves86/coachcristao/blob/master/src/components/ListingPage/Hero/share-button.tsx
Github Open Source
Open Source
MIT
2,022
coachcristao
RobertoAlves86
TypeScript
Code
258
932
import React, { useState } from 'react' import { SiteData, Theme } from '../../../utils/models' import { OutboundLink } from 'gatsby-plugin-google-gtag' import { gtagEventClick } from '../../../utils/gtag' interface Props { siteData: SiteData theme: Theme outlineColor: string } const ShareButton: React.FC<Props...
22,416
https://github.com/downjse/magento2/blob/master/magento2ce/app/code/Magento/Theme/Controller/Adminhtml/System/Design/Wysiwyg/Files/Contents.php
Github Open Source
Open Source
MIT
null
magento2
downjse
PHP
Code
64
280
<?php /** * * Copyright © 2013-2017 Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Theme\Controller\Adminhtml\System\Design\Wysiwyg\Files; class Contents extends \Magento\Theme\Controller\Adminhtml\System\Design\Wysiwyg\Files { /** * Contents action * ...
37,715
https://github.com/HristoSpasov/Databases-Advanced-Entity-Framework-Core/blob/master/11. Auto Mapping Objects/Employees.App/ServiceConfiguration.cs
Github Open Source
Open Source
MIT
null
Databases-Advanced-Entity-Framework-Core
HristoSpasov
C#
Code
57
259
namespace Employees.App { using System; using AutoMapper; using Employees.App.Contracts.Core; using Employees.App.Core; using Employees.Data; using Employees.Services; using Employees.Services.Contracts; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjec...
35,832
https://github.com/shizonic/voidpkgs/blob/master/srcpkgs/dcrwallet/template
Github Open Source
Open Source
Unlicense, LicenseRef-scancode-public-domain
2,019
voidpkgs
shizonic
Shell
Code
73
395
maintainer="Andy Weidenbaum <archbaum@gmail.com>" pkgname="dcrwallet" version=1.4.0 revision=1 short_desc="Decred wallet daemon written in Go" hostmakedepends="git" tags="decred" homepage="https://github.com/decred/dcrwallet" license="ISC" distfiles="https://github.com/decred/dcrwallet/archive/release-v$version.tar.gz>...
9,504
https://github.com/amahussein/vespa/blob/master/searchcore/src/vespa/searchcore/proton/reprocessing/reprocessingrunner.h
Github Open Source
Open Source
Apache-2.0
2,018
vespa
amahussein
C
Code
88
228
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <mutex> #include <memory> #include <vector> namespace proton { class IReprocessingTask; /** * Class for running reprocessing task. */ class ReprocessingRunner { public: ...
429
https://github.com/mentor-me-lambda-build-week-2/back-end/blob/master/middleware/index.js
Github Open Source
Open Source
MIT
null
back-end
mentor-me-lambda-build-week-2
JavaScript
Code
642
1,699
// middleware for users constraints function registerConstraints(req, res, next) { const USERNAME = req.body.username; const FIRSTNAME = req.body.firstname; const LASTNAME = req.body.lastname; const EMAIL = req.body.email; const CLEARPASSWORD = req.body.password; const ISMENTOR = req.body.ismentor; if (!...
19,024
https://github.com/ntustison/PaperANTsX/blob/master/Text/stitch.R
Github Open Source
Open Source
Apache-2.0
2,021
PaperANTsX
ntustison
R
Code
94
298
library( rmarkdown ) library( ggplot2 ) stitchedFile <- "stitched.md" rmdFiles <- c( "format.md", "titlePage.md", "abstract.md", # "notes.md", "intro.md", "results.md", "discussion.md", "methods.md", ...
6,375
https://github.com/qwer09876/AolongSoftWare/blob/master/app.py
Github Open Source
Open Source
Apache-2.0
null
AolongSoftWare
qwer09876
Python
Code
153
575
from flask import Flask, render_template, request import config import json import os Threshold = 0 Confidence = 0 app = Flask(__name__) app.config.from_object(config) @app.route("/") def index(): return render_template('index.html') @app.route('/upload', methods=["GET", "POST"]) def upload(): print("未选择图...
50,904
https://github.com/kmorihiro/BoxVR-Playlist-Manager/blob/master/BoxVRPlaylistManagerNETCore/App.xaml.cs
Github Open Source
Open Source
MIT
null
BoxVR-Playlist-Manager
kmorihiro
C#
Code
545
2,278
using System; using System.Collections.Generic; using System.ComponentModel; using System.Configuration; using System.Data; using System.IO; using System.Linq; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Windows; using BoxVRPlaylistManagerNETCore.Helpers; using BoxVRPlaylistManager...
48,638
https://github.com/niisan-tokyo/laravel-scout-examination/blob/master/app/Entities/Student.php
Github Open Source
Open Source
MIT
2,019
laravel-scout-examination
niisan-tokyo
PHP
Code
60
253
<?php namespace App\Entities; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Arr; use Laravel\Scout\Searchable; class Student extends Model { use Searchable; public function toSearchableArray() { $arr = [ $this->first_name, $this->last_name, $...
44,138
https://github.com/smartchessguiapp/vchess/blob/master/client/src/utils/modalClick.js
Github Open Source
Open Source
ISC
2,020
vchess
smartchessguiapp
JavaScript
Code
26
60
export function processModalClick(e) { // Close a modal when click on it but outside focused element const data = e.target.dataset; if (data.checkbox) document.getElementById(data.checkbox).checked = false; }
32,502
https://github.com/baileyherbert/horizon/blob/master/starters/dedicated/app/config/autoloader.php
Github Open Source
Open Source
MIT
2,023
horizon
baileyherbert
PHP
Code
30
70
<?php /** * This file configures the application's autoloading behavior. */ return [ /** * Sets the namespaces to automatically mount. */ 'namespaces' => [ 'App' => 'app/src' ] ];
15,162
https://github.com/tqwhite/qtoolsLegacyDeprecated/blob/master/lib/qtools-log/qtools-log.js
Github Open Source
Open Source
MIT
null
qtoolsLegacyDeprecated
tqwhite
JavaScript
Code
637
2,527
'use strict'; var util = require('util'); const fs=require('fs'); const path=require('path'); //START OF moduleFunction() ============================================================ var moduleFunction = function(self) { const qtools = self; const moduleName = qtools.ping().employer; qtools.ERROR = 'DEVELOPMENT'; ...
54,451
https://github.com/commercetools/commercetools-php-symfony/blob/master/src/CustomerBundle/Tests/Model/CustomerUpdateBuilderTest.php
Github Open Source
Open Source
MIT
2,019
commercetools-php-symfony
commercetools
PHP
Code
223
1,583
<?php declare(strict_types=1); namespace Commercetools\Symfony\CustomerBundle\Tests\Model; use Commercetools\Core\Model\Customer\Customer; use Commercetools\Core\Request\Customers\Command\CustomerAddAddressAction; use Commercetools\Core\Request\Customers\Command\CustomerAddBillingAddressAction; use Commercetools\Cor...
51,038
https://github.com/box-software/SlinkyTyped/blob/master/o/ol/src/main/scala/typingsSlinky/ol/renderReplayTypeMod.scala
Github Open Source
Open Source
MIT
2,020
SlinkyTyped
box-software
Scala
Code
142
491
package typingsSlinky.ol import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation._ @JSImport("ol/render/ReplayType", JSImport.Namespace) @js.native object renderReplayTypeMod extends js.Object { @js.native sealed trait ReplayType extends js.Object @js.native object ReplayType...
41,088
https://github.com/alexdima/monaco-plugin-helpers/blob/master/src/mcopy.ts
Github Open Source
Open Source
MIT
2,020
monaco-plugin-helpers
alexdima
TypeScript
Code
93
262
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
22,119
https://github.com/SleepyLGod/Miscellaneous/blob/master/tea/System/MilkOrder_backend/src/main/java/com/example/milkorder_backend/controller/DrinkController.java
Github Open Source
Open Source
Apache-2.0
2,021
Miscellaneous
SleepyLGod
Java
Code
249
1,326
package com.example.milkorder_backend.controller; import com.example.milkorder_backend.common.api.ApiResult; import com.example.milkorder_backend.jwt.JwtUtil; import com.example.milkorder_backend.model.dto.DrinkAddDTO; import com.example.milkorder_backend.model.dto.RegisterDTO; import com.example.milkorder_backend.mod...
52,563
https://github.com/robbiesh/hasty/blob/master/assets/tailwind.config.js
Github Open Source
Open Source
MIT
2,021
hasty
robbiesh
JavaScript
Code
122
753
module.exports = { purge: { enabled: process.env.NODE_ENV === "production", content: ["../**/*.liquid"], }, theme: { container: { center: true, padding: "2rem", }, extend: { padding: { 50: "50%", 80: "80%", 100: "100%", 150: "150%", }, ...
19,741
https://github.com/apache/ranger/blob/master/security-admin/src/main/webapp/react-webapp/src/views/UserGroupRoleListing/GroupAssociateUserDetails.jsx
Github Open Source
Open Source
Apache-2.0, BSD-3-Clause, WTFPL, MIT, GPL-2.0-only
2,023
ranger
apache
JavaScript
Code
559
1,677
/* * 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 ...
40,099
https://github.com/nodeswork/nodeswork/blob/master/src/components/logger.ts
Github Open Source
Open Source
Apache-2.0
null
nodeswork
nodeswork
TypeScript
Code
194
628
import * as _ from 'underscore' import * as Koa from "koa" import * as logger from '@nodeswork/logger' import { NodesworkComponent, NodesworkComponentOption } from './component' let LOG = logger.getLogger('logger'); export interface LoggerKoaContext extends Koa.Context { logKey: string requestLog: any } ...
44,911
https://github.com/hieutm2198/WebAppDev/blob/master/source/js/admin.js
Github Open Source
Open Source
MIT
2,018
WebAppDev
hieutm2198
JavaScript
Code
321
1,380
var selectedSurveyId = null; var selectedUserId = null; $(document).ready(function() { var surveyTable = $('#surveyTable').DataTable({ "ajax": "surveyList.php", "columns": [ {"data": "surveyId"}, {"data": "surveyTitle"}, {"data": "creatorId"}, ...
39,951
https://github.com/jambari/database-angkasa/blob/master/app/Http/Controllers/DashboardController.php
Github Open Source
Open Source
MIT
2,017
database-angkasa
jambari
PHP
Code
63
508
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; use App\Models\Event; use App\Models\Gempabumi; use App\Models\Komponend; use App\Models\Hujan; use App\Models\Summary; use Calendar; class DashboardController extends Controller { public function index() { ...
5,662
https://github.com/raptoravis/kengine/blob/master/components/data/GraphicsComponent.hpp
Github Open Source
Open Source
MIT
2,020
kengine
raptoravis
C++
Code
61
254
#pragma once #ifndef KENGINE_GRAPHICS_STRING_MAX_LENGTH # define KENGINE_GRAPHICS_STRING_MAX_LENGTH 64 #endif #include "string.hpp" #include "Entity.hpp" #include "Color.hpp" namespace kengine { struct GraphicsComponent { static constexpr char stringName[] = "GraphicsComponentString"; using string = putils::...
32,252
https://github.com/dmitrii-kliuev/Hardware-key/blob/master/!Project/App/LUFA-111009/LUFA/Documentation/html/navtreedata.js
Github Open Source
Open Source
MIT
2,019
Hardware-key
dmitrii-kliuev
JavaScript
Code
253
1,675
var NAVTREE = [ [ "LUFA Library", "index.html", [ [ "Why Use LUFA?", "_page__why_use_l_u_f_a.html", null ], [ "LUFA vs the Atmel 8-bit USB AVR Stack", "_page__l_u_f_avs_atmel_stack.html", null ], [ "Alternative USB AVR Stacks", "_page__alternative_stacks.html", [ [ "Hardware USB AVR Stacks", "_page_...
10,668
https://github.com/mengtest/home3/blob/master/core/client/game/src/commonGame/part/player/data/ActivityPartData.cs
Github Open Source
Open Source
Apache-2.0
2,020
home3
mengtest
C#
Code
484
3,029
using ShineEngine; /// <summary> /// (generated by shine) /// </summary> public class ActivityPartData:BaseData { /// <summary> /// 数据组 /// </summary> public IntObjectMap<ActivityData> datas; /// <summary> /// 数据类型ID /// </summary> public const int dataID=PlayerPartDataType.Activity; public ActivityPartDa...
25,485
https://github.com/TempleEight/temple/blob/master/src/main/scala/temple/generate/server/go/service/GoServiceCommGenerator.scala
Github Open Source
Open Source
Apache-2.0
2,020
temple
TempleEight
Scala
Code
221
991
package temple.generate.server.go.service import temple.ast.AttributeType import temple.generate.server.AttributesRoot.ServiceRoot import temple.generate.server.ServiceName import temple.generate.server.go.common.GoCommonGenerator._ import temple.generate.utils.CodeTerm.{CodeWrap, mkCode} import temple.utils.StringUti...
25,168
https://github.com/marianazangrossi/oppia/blob/master/extensions/interactions/TextInput/directives/text-input-validation.service.ts
Github Open Source
Open Source
Apache-2.0
2,020
oppia
marianazangrossi
TypeScript
Code
320
880
// Copyright 2014 The Oppia Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ap...
37,639
https://github.com/luoming1224/redisson-3.10.0/blob/master/redisson-spring-data/redisson-spring-data-20/src/main/java/org/redisson/spring/data/connection/RedissonReactiveSetCommands.java
Github Open Source
Open Source
Apache-2.0
null
redisson-3.10.0
luoming1224
Java
Code
857
3,486
/** * Copyright 2018 Nikita Koksharov * * 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 agree...
38,684
https://github.com/badlogic/robovm/blob/master/cocoatouch/src/main/java/org/robovm/apple/coreservices/CFStreamSocketSecurityLevel.java
Github Open Source
Open Source
Apache-2.0
2,015
robovm
badlogic
Java
Code
538
1,798
/* * Copyright (C) 2013-2015 RoboVM AB * * 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 ag...
28,025
https://github.com/tvcastilho/MyOralVillage/blob/master/src/app/modules/gallery/view-content/view-content.component.ts
Github Open Source
Open Source
MIT
2,017
MyOralVillage
tvcastilho
TypeScript
Code
547
2,039
import { Component, OnInit, Input, Output, state, trigger, animate, transition, style } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { AppState } from '../../../app.service'; import { ContentService, UploadService, Selection, Category, ContentItemServer, ContentItemBase, Theme, Country...
8,131
https://github.com/neoneye/loda-programs/blob/master/oeis/081/A081553.asm
Github Open Source
Open Source
Apache-2.0
2,022
loda-programs
neoneye
Assembly
Code
32
209
; A081553: Sum of n-th row of A081551. ; Submitted by Christian Krause ; 1,21,303,4006,50010,600015,7000021,80000028,900000036,10000000045,110000000055,1200000000066,13000000000078,140000000000091,1500000000000105,16000000000000120,170000000000000136,1800000000000000153,19000000000000000171,200000000000000000190,210000...
27,508
https://github.com/xuing/openrasp/blob/master/rasp-install/java/src/test/java/LinuxUninstallerFactoryTest.java
Github Open Source
Open Source
Apache-2.0
2,022
openrasp
xuing
Java
Code
49
231
import com.baidu.rasp.uninstall.linux.LinuxUninstallerFactory; import org.junit.Test; /** * @author: anyang * @create: 2019/03/25 21:13 */ public class LinuxUninstallerFactoryTest { @Test public void testGetUninstaller() { try { Utils.invokeMethod(new LinuxUninstallerFactory(), "getUnins...
26,511
https://github.com/JakeTux8/chef-server/blob/master/omnibus/files/private-chef-cookbooks/private-chef/libraries/chef_run_resource.rb
Github Open Source
Open Source
Apache-2.0
2,018
chef-server
JakeTux8
Ruby
Code
48
148
require 'chef/resource/lwrp_base' class Chef class Resource class ChefRun < Chef::Resource::LWRPBase provides :chef_run resource_name :chef_run actions :run default_action :run attribute :run_list, :kind_of => String, :name_attribute => true attribute :cookbook_path at...
36,476
https://github.com/gdky005/ZhiHui_pro/blob/master/app/src/main/java/cc/zkteam/zkinfocollectpro/view/kind/ZKModuleListLayout.java
Github Open Source
Open Source
Apache-2.0
2,018
ZhiHui_pro
gdky005
Java
Code
416
1,545
package cc.zkteam.zkinfocollectpro.view.kind; import android.content.Context; import android.support.annotation.Nullable; import android.text.TextUtils; import android.util.AttributeSet; import android.view.View; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import java.util.A...
5,286
https://github.com/openlastchaos/lastchaos-source-client/blob/master/Modeler/PaletteDialog.cpp
Github Open Source
Open Source
Apache-2.0
2,022
lastchaos-source-client
openlastchaos
C++
Code
325
2,021
// PaletteDialog.cpp : implementation file // #include "stdafx.h" #ifdef _DEBUG #undef new #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CPaletteDialog dialog CPaletteDialog::CPaletteDialog(CWnd* pP...
20,517
https://github.com/tylertownsend/bingo/blob/master/tests/Base/test_serial_archipelago.py
Github Open Source
Open Source
Apache-2.0
null
bingo
tylertownsend
Python
Code
380
1,692
# Ignoring some linting rules in tests # pylint: disable=redefined-outer-name # pylint: disable=missing-docstring import random import pytest import numpy as np from bingo.Base.MultipleValues import SinglePointCrossover, \ SinglePointMutation, \ ...
42,279
https://github.com/fanofthefate/technadzor/blob/master/wp-content/themes/technadzor/req/CArticle.php
Github Open Source
Open Source
MIT
2,018
technadzor
fanofthefate
PHP
Code
114
515
<?php /** * */ class CArticles{ function __construct(){ add_action('init', array(&$this, 'create_article')); } public function create_article(){ register_post_type('articles', array( 'labels' => array( 'name' => __('Статьи', 'html5blank'), // Rename these to suit 'singular_name' => _...
22,149
https://github.com/cuong-pham/datahub/blob/master/metadata-ingestion/tests/unit/test_domain_urn.py
Github Open Source
Open Source
Apache-2.0
2,020
datahub
cuong-pham
Python
Code
53
285
import unittest from datahub.utilities.urns.domain_urn import DomainUrn from datahub.utilities.urns.error import InvalidUrnError class TestDomainUrn(unittest.TestCase): def test_parse_urn(self) -> None: domain_urn_str = "urn:li:domain:abc" domain_urn = DomainUrn.create_from_string(domain_urn_str)...
18,078
https://github.com/AnHuiShangJue/hisprojecte/blob/master/smartpark-core/src/main/resources/static/assets/global/js/ahsj.selfdatatable.js
Github Open Source
Open Source
MIT
2,020
hisprojecte
AnHuiShangJue
JavaScript
Code
1,430
4,272
/** *@Description 自定义的表格插件 * *@Params * *@return * *@Author chenzhicai * *@Date 2019-6-28 * *@Time 8:39 * **/ var AHSJDT = function () { var tableOptions; var theads; var the; var src; var datas; var haveCheck; var table; var ids; return { init: function (opt...
26,558
https://github.com/ennerf/ennerf.github.io/blob/master/images/os/latency_distribution_superimposed_gaussian.m
Github Open Source
Open Source
LicenseRef-scancode-free-unknown, MIT
2,019
ennerf.github.io
ennerf
MATLAB
Code
169
576
%% settings style1 = 'b'; style2 = 'r--'; width = 1.5; fontsize = 16; xAxis = 'Latency [ms]'; yAxis = 'Probability [0-1]'; xLimits = [0 18]; % close all; f = figure(1); % only select actually visible rows unfilteredData = data24hallwin; indices = find(unfilteredData.getCountAtValueIteratedTo > 0); selectionMask = 1:...
41,245
https://github.com/Maschette/jasmines/blob/master/man/seed_text.Rd
Github Open Source
Open Source
MIT
2,019
jasmines
Maschette
R
Code
38
106
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/seed_generators.R \name{seed_text} \alias{seed_text} \title{Seed shaped from text} \usage{ seed_text(text) } \arguments{ \item{text}{the message} } \value{ a tibble } \description{ Seed shaped from text }
15,298
https://github.com/bccrisan/ciduty_tools/blob/master/testing_git_object.py
Github Open Source
Open Source
MIT
null
ciduty_tools
bccrisan
Python
Code
276
763
import git import os import datetime import string from random import randint, choice import time import shutil import sh def generate_string(): characters = string.ascii_letters + string.punctuation + string.digits result = "".join(choice(characters) for x in range(randint(8, 16))) return result def to...
23,868
https://github.com/human-centered-ai-lab/app-video-score/blob/master/client/src/app/task/task-api.effects.ts
Github Open Source
Open Source
MIT
2,020
app-video-score
human-centered-ai-lab
TypeScript
Code
158
483
import { Injectable } from '@angular/core'; import { Store, select } from '@ngrx/store'; import { HttpClient} from '@angular/common/http'; import { Actions, Effect, ofType } from '@ngrx/effects'; import { map, tap, mergeMap, catchError, finalize, concatMap } from 'rxjs/operators'; import { Observable, of } from 'rxjs';...
51,049
https://github.com/MaskerPRC/communitychest/blob/master/chest/gui/swing/src/main/java/net/community/chest/swing/component/tree/DefaultTreeScroll.java
Github Open Source
Open Source
Apache-2.0
2,016
communitychest
MaskerPRC
Java
Code
87
320
/* * */ package net.community.chest.swing.component.tree; import javax.swing.JTree; import net.community.chest.swing.component.scroll.HorizontalPolicy; import net.community.chest.swing.component.scroll.ScrolledComponent; import net.community.chest.swing.component.scroll.VerticalPolicy; /** * <P>Copyright GPLv2</P...
8,371
https://github.com/adrq/collex-cdh/blob/master/catalog-master/app/views/federations/show.json.jbuilder
Github Open Source
Open Source
Apache-2.0
2,016
collex-cdh
adrq
Ruby
Code
9
36
json.extract! @federation, :id, :name, :ip, :site, :thumbnail, :created_at, :updated_at
27,390
https://github.com/sabrown256/pactnew/blob/master/pdb/spokes/sql/trsql.h
Github Open Source
Open Source
BSD-3-Clause
2,015
pactnew
sabrown256
C
Code
194
651
/* * TRSQL.H - the SQL support header for SX * * Source Version: 3.0 * Software Release #: LLNL-CODE-422942 * */ #ifndef PCK_SQL #include "cpyright.h" #include "../../pdb_int.h" #define PCK_SQL #ifdef HAVE_SQL /*--------------------------------------------------------------------------*/ /* ...
2,094
https://github.com/muskanmahajan486/autoscaler_cloud/blob/master/core/src/test/java/com/elastisys/autoscaler/core/addon/FakeAddon.java
Github Open Source
Open Source
Apache-2.0
2,019
autoscaler_cloud
muskanmahajan486
Java
Code
94
346
package com.elastisys.autoscaler.core.addon; import com.elastisys.autoscaler.core.api.Service; import com.elastisys.autoscaler.core.api.types.ServiceStatus; import com.elastisys.autoscaler.core.api.types.ServiceStatus.State; public class FakeAddon implements Service<FakeAddonConfig> { private FakeAddonConfig con...
45,549
https://github.com/ApplicationCraft/ac-widgets/blob/master/public/Common/img.js
Github Open Source
Open Source
MIT
2,012
ac-widgets
ApplicationCraft
JavaScript
Code
2,823
10,605
/** * @lends WiziCore_UI_ImgWidget# */ (function($, window, document, undefined){ var WiziCore_UI_ImgWidget = AC.Widgets.WiziCore_UI_ImgWidget = AC.Widgets.Base.extend($.extend({}, WiziCore_WidgetAbstract_DataIntegrationSimple, WiziCore_Methods_Widget_ActionClick, { _widgetClass : "WiziCore_UI_ImgWidget", ...
47,870
https://github.com/clohr/model-service/blob/master/generator/load.py
Github Open Source
Open Source
Apache-2.0
null
model-service
clohr
Python
Code
341
1,475
import argparse import json import uuid from csv import DictReader from itertools import zip_longest from os.path import dirname, isabs, join, realpath from typing import Optional from server.db import Config, Database, PartitionedDatabase from server.models import ( DatasetId, DatasetNodeId, ModelProperty...
37,072
https://github.com/CDK2020/ig-monitoring/blob/master/components/http/UserAgent.php
Github Open Source
Open Source
MIT
2,022
ig-monitoring
CDK2020
PHP
Code
71
220
<?php /** * Created for IG Monitoring. * User: jakim <pawel@jakimowski.info> * Date: 11.01.2018 */ namespace app\components\http; use yii\base\Component; use yii\di\Instance; class UserAgent extends Component { public $cache = 'cache'; /** * @return mixed * @throws \yii\base\InvalidConfigExce...
42,570
https://github.com/costlocker/reports/blob/master/src/Reports/Extract/Extractor.php
Github Open Source
Open Source
MIT
2,018
reports
costlocker
PHP
Code
39
137
<?php namespace Costlocker\Reports\Extract; use Costlocker\Reports\ReportSettings; use Costlocker\Reports\Extract\Costlocker\CostlockerClient; abstract class Extractor { /** @var CostlockerClient */ protected $client; public function __construct(CostlockerClient $c) { $this->client = $c; ...
48,893
https://github.com/Praqma/tracey-core/blob/master/src/main/java/net/praqma/tracey/core/TraceyConfigParser.java
Github Open Source
Open Source
MIT
2,018
tracey-core
Praqma
Java
Code
17
56
package net.praqma.tracey.core; import java.io.File; public interface TraceyConfigParser<T> { public T parse(File file); public T parse(String config); }
11,998
https://github.com/gluu-oicr/dockstore-ui2/blob/master/src/app/organizations/state/collections.query.spec.ts
Github Open Source
Open Source
Apache-2.0
2,022
dockstore-ui2
gluu-oicr
TypeScript
Code
38
97
import { CollectionsQuery } from './collections.query'; import { CollectionsStore } from './collections.store'; describe('CollectionsQuery', () => { let query: CollectionsQuery; beforeEach(() => { query = new CollectionsQuery(new CollectionsStore()); }); it('should create an instance', () => { expect...
3,126
https://github.com/txn513/xt-notes/blob/master/src/client/components/elements/XtNav.vue
Github Open Source
Open Source
MIT
2,019
xt-notes
txn513
Vue
Code
110
445
<template> <div id="xt-nav"> <div class="van-nav-bar van-hairline--bottom" style="z-index: 1;"> <div class="van-nav-bar__left" @click="leftClick" v-if="leftText !== ''"> <i class="van-icon van-nav-bar__arrow van-icon-arrow" :style="{color: currentColor}"></i> <span class="van-nav-b...
13,704
https://github.com/cftong/hkepc-ionic-reader/blob/master/src/es6/core/mapper/mapper.js
Github Open Source
Open Source
MIT
2,017
hkepc-ionic-reader
cftong
JavaScript
Code
631
2,087
import * as HKEPC from '../../data/config/hkepc' const cheerio = require('cheerio') import {GeneralHtml} from '../model/general-html' import {HKEPCHtml} from '../model/hkepc-html' import * as URLUtils from '../../utils/url' export default class Mapper{ static apiSuccess(o) { return { message: o.message }} static...
45,066
https://github.com/Means88/score/blob/master/score/constants.py
Github Open Source
Open Source
MIT
null
score
Means88
Python
Code
5
34
class settings: COVER_URL = "http://7xs2gj.com1.z0.glb.clouddn.com/"
50,305
https://github.com/lastobelus/shutil/blob/master/lib/generators/shutil/javascript/templates/global/clipboard.js
Github Open Source
Open Source
MIT
null
shutil
lastobelus
JavaScript
Code
21
72
export default { load() { const clipboard = new Clipboard('.clipboard-btn'); clipboard.on('success', (e) => { $(e.trigger).effect('highlight', {color: '#5cb85c'}, 2500) }); }, };
42,145