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/sureshsarda/redmart-ticket/blob/master/seeddata.js
Github Open Source
Open Source
MIT
null
redmart-ticket
sureshsarda
JavaScript
Code
252
679
/* * Copyright (C) 2016 Suresh Sarda * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 3, or (at your option) any * later version. * * This program is distributed in the...
2,643
https://github.com/fossabot/openvoice/blob/master/config/routes.rb
Github Open Source
Open Source
Apache-2.0
2,018
openvoice
fossabot
Ruby
Code
159
646
Openvoice::Application.routes.draw do root :to => "user_sessions#new" match 'login' => 'user_sessions#new', :as => :login match 'logout' => 'user_sessions#destroy', :as => :logout match 'signup' => 'users#new', :as => :signup match 'activate/:activation_code' => 'users#activate', :as => :activate, :activat...
43,978
https://github.com/progwml6/JavaCurseAPI/blob/master/src/main/java/com/feed_the_beast/javacurselib/service/contacts/contacts/GroupNotification.java
Github Open Source
Open Source
Apache-2.0
2,017
JavaCurseAPI
progwml6
Java
Code
331
1,203
package com.feed_the_beast.javacurselib.service.contacts.contacts; import com.feed_the_beast.javacurselib.common.classes.ExternalCommunityPublicContract; import com.feed_the_beast.javacurselib.common.classes.GroupMemberContract; import com.feed_the_beast.javacurselib.common.enums.*; import com.feed_the_beast.javacurs...
34,967
https://github.com/Vin2454/samples/blob/master/AdventureWorks/AdventureWorks.Api.Services/ModelValidators/Sales/AbstractApiSalesTerritoryHistoryRequestModelValidator.cs
Github Open Source
Open Source
MIT
2,018
samples
Vin2454
C#
Code
134
600
using AdventureWorksNS.Api.Contracts; using AdventureWorksNS.Api.DataAccess; using Codenesium.DataConversionExtensions; using FluentValidation; using FluentValidation.Results; using System; using System.Threading; using System.Threading.Tasks; namespace AdventureWorksNS.Api.Services { public abstract class AbstractAp...
5,465
https://github.com/IgorAp/TNews/blob/master/tnews/views/index.ejs
Github Open Source
Open Source
MIT
2,019
TNews
IgorAp
EJS
Code
239
1,589
<!DOCTYPE html> <html lang="pt"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw...
27,409
https://github.com/MikeyAlmighty/radio-ui/blob/master/src/components/input/styles.js
Github Open Source
Open Source
MIT
null
radio-ui
MikeyAlmighty
JavaScript
Code
19
51
import styled from "styled-components"; import { inputStyles } from "../input-styles"; export const StyledInput = styled.input` height: 35px; ${inputStyles} `;
8,011
https://github.com/AKSoo/datalad/blob/master/datalad/tests/test_strings.py
Github Open Source
Open Source
MIT
null
datalad
AKSoo
Python
Code
147
454
# emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- # ex: set sts=4 ts=4 sw=4 et: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms. # # ## ### ### ...
32,640
https://github.com/Zweihui/Seraphim/blob/master/app/src/main/java/com/zwh/mvparms/eyepetizer/di/module/VideoListActivityModule.java
Github Open Source
Open Source
Apache-2.0
2,020
Seraphim
Zweihui
Java
Code
54
289
package com.zwh.mvparms.eyepetizer.di.module; import com.jess.arms.di.scope.ActivityScope; import dagger.Module; import dagger.Provides; import com.zwh.mvparms.eyepetizer.mvp.contract.VideoListActivityContract; import com.zwh.mvparms.eyepetizer.mvp.model.VideoListActivityModel; @Module public class VideoListActivi...
13,130
https://github.com/chadmiller/tor/blob/master/src/feature/dircommon/consdiff.c
Github Open Source
Open Source
BSD-2-Clause-NetBSD
2,022
tor
chadmiller
C
Code
6,230
15,741
/* Copyright (c) 2014, Daniel Martí * Copyright (c) 2014-2019, The Tor Project, Inc. */ /* See LICENSE for licensing information */ /** * \file consdiff.c * \brief Consensus diff implementation, including both the generation and the * application of diffs in a minimal ed format. * * The consensus diff applicatio...
49,847
https://github.com/c4dt/mlbench-core/blob/master/mlbench_core/dataset/linearmodels/pytorch/__init__.py
Github Open Source
Open Source
Apache-2.0
2,022
mlbench-core
c4dt
Python
Code
7
25
from .dataloader import LMDBDataset __all__ = ["LMDBDataset"]
20,007
https://github.com/wujianbing/rbac_shiro/blob/master/src/test/java/com/jack/rbac_shiro/RbacShiroApplicationTests.java
Github Open Source
Open Source
MIT
null
rbac_shiro
wujianbing
Java
Code
16
77
package com.jack.rbac_shiro; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest class RbacShiroApplicationTests { @Test void contextLoads() { } }
46,920
https://github.com/k-t/SharpHaven/blob/master/SharpHaven/UI/Widgets/Combat/CombatWindow.cs
Github Open Source
Open Source
MIT
2,021
SharpHaven
k-t
C#
Code
363
1,390
using System; using Haven; using Haven.Utils; using SharpHaven.Client; using SharpHaven.Graphics; namespace SharpHaven.UI.Widgets { public class CombatWindow : Window { private static readonly Drawable iptex; static CombatWindow() { iptex = App.Resources.Get<Drawable>("gfx/hud/combat/ip"); } private ...
28,994
https://github.com/TRRogen/HY/blob/master/HY/HY/Find/M/HYRecommendAppMessage.h
Github Open Source
Open Source
Apache-2.0
2,016
HY
TRRogen
Objective-C
Code
77
236
// // HYRecommendAppMessage.h // HY // // Created by tarena04 on 16/6/14. // Copyright © 2016年 tarena. All rights reserved. // #import <Foundation/Foundation.h> @interface HYRecommendAppMessage : NSObject /** 应用名称 **/ @property (nonatomic,copy) NSString *title; /** 应用图片 **/ @property (nonatomic,copy) NSString *i...
28,362
https://github.com/dotnet/aspnetcore/blob/master/src/Mvc/test/Mvc.FunctionalTests/ContentNegotiationTest.cs
Github Open Source
Open Source
MIT
2,023
aspnetcore
dotnet
C#
Code
1,225
5,707
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Runtime.Serialization; using System.Text; using BasicWebSite.Models; using Microsoft.AspNetCore.M...
17,136
https://github.com/SteveGreatApe/AvrKeyboard/blob/master/avrkeyboard/src/main/java/com/greatape/avrkeyboard/textField/TextField.java
Github Open Source
Open Source
Apache-2.0
null
AvrKeyboard
SteveGreatApe
Java
Code
1,919
6,835
/* Copyright 2017 Great Ape Software 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 applicable law or ag...
16,431
https://github.com/bitwize/rscheme/blob/master/lib/app/ibis/backend/errors.scm
Github Open Source
Open Source
TCL
2,022
rscheme
bitwize
Scheme
Code
87
269
(define-message-table ibis 704) (define-class <service-error> (<error-message>)) #| (define-method display-object ((self <service-error>) port) (format port "SRV-~03d " (msg-code self)) (apply format port (default-msg-text self) (msg-args self)) (newline port)) (define (service-error code text . args) (let (...
4,197
https://github.com/raymundoxmartinez/ardio/blob/master/src/components/molecules/ExperienceCard/ExperienceCard.stories.tsx
Github Open Source
Open Source
MIT
null
ardio
raymundoxmartinez
TypeScript
Code
57
157
import * as React from "react" import { storiesOf } from "@storybook/react" import ExperienceCard from "./ExperienceCard" import readme from "./docs.md" storiesOf("ExperienceCard", module) .addParameters({ readme: { content: readme }, options: { theme: {}, }, }) .add("ExperienceCard", () => { ...
50,510
https://github.com/zhouxh/pinkyLam-Blog-Server/blob/master/pinkyLam-service/src/main/java/com/pinkyLam/blog/dao/ArticleCateLabelDao.java
Github Open Source
Open Source
Apache-2.0
2,017
pinkyLam-Blog-Server
zhouxh
Java
Code
85
387
package com.pinkylam.blog.dao; import java.util.List; import javax.transaction.Transactional; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Modifying; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.query....
33,316
https://github.com/Skillshare/php-client/blob/master/src/SplitIO/Component/Http/Uri.php
Github Open Source
Open Source
Apache-2.0
2,021
php-client
Skillshare
PHP
Code
638
1,871
<?php namespace SplitIO\Component\Http; /** * Basic URI parser implementation. * * @link https://github.com/guzzle/psr7/blob/master/src/Uri.php This class is based upon * URI implementation in guzzlehttp/psr7. */ class Uri { private static $schemes = array( 'http' => 80, 'https' => 443...
17,405
https://github.com/forgottenlands/ForgottenCore406/blob/master/src/server/scripts/Northrend/ChamberOfAspects/RubySanctum/ruby_sanctum.h
Github Open Source
Open Source
OpenSSL
2,019
ForgottenCore406
forgottenlands
C
Code
439
1,700
/* * Copyright (C) 2008 - 2012 TrinityCore <http://www.trinitycore.org/> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or (at your * option) any later ...
32,805
https://github.com/civicsource/sockettes/blob/master/test/stubs/index.js
Github Open Source
Open Source
MIT
2,016
sockettes
civicsource
JavaScript
Code
15
43
import crosstab from "./crosstab"; import websocket from "./websocket"; export default function() { crosstab(); websocket(); }
32,802
https://github.com/libris/librisxl/blob/master/rest/src/main/groovy/whelk/rest/api/RestMetrics.groovy
Github Open Source
Open Source
Apache-2.0
2,023
librisxl
libris
Groovy
Code
125
572
package whelk.rest.api import groovy.transform.CompileStatic import io.prometheus.client.Counter import io.prometheus.client.Gauge import io.prometheus.client.Histogram import io.prometheus.client.Summary @CompileStatic class RestMetrics { static final Counter requests = Counter.build() .name("api_reques...
19,898
https://github.com/rafrex/detect-passive-events/blob/master/src/__tests__/noPassiveSupport.test.ts
Github Open Source
Open Source
MIT
2,020
detect-passive-events
rafrex
TypeScript
Code
51
140
// mock needs be defined before import so the imported file uses the mock when it's executed Object.defineProperty(window, 'addEventListener', { value: jest.fn().mockImplementation((eventName, callback, useCapture) => { // eslint-disable-next-line @typescript-eslint/no-unused-vars const capture = Boolean(useC...
13,799
https://github.com/lcb/applicake/blob/master/appliapps/tpp/searchengines/modifications.py
Github Open Source
Open Source
Apache-2.0
2,016
applicake
lcb
Python
Code
862
3,141
import re from string import Template from Unimod.unimod import database def genmodstr_to_engine(static_genmodstr, var_genmodstr, engine): """ Main method you should use this Converts "generic" modification string into engine specific strings unimod avg = mono * 1.001191917 @param static_genmodst...
23,017
https://github.com/ungdev/UA-api/blob/master/src/controllers/admin/users/getCarts.ts
Github Open Source
Open Source
MIT
2,021
UA-api
ungdev
TypeScript
Code
196
505
import { NextFunction, Request, Response } from 'express'; import { fetchCarts } from '../../../operations/carts'; import { filterCartWithCartItemsAdmin } from '../../../utils/filters'; import { notFound, success } from '../../../utils/responses'; import { hasPermission } from '../../../middlewares/authentication'; imp...
27,714
https://github.com/sampanu/DC-ILR-1819-ValidationService/blob/master/src/ESFA.DC.ILR.ValidationService.Rules.Tests/Learner/ULN/ULN_02RuleTests.cs
Github Open Source
Open Source
MIT
null
DC-ILR-1819-ValidationService
sampanu
C#
Code
390
2,081
using System; using System.Collections.Generic; using System.Linq; using ESFA.DC.ILR.Tests.Model; using ESFA.DC.ILR.ValidationService.Interface; using ESFA.DC.ILR.ValidationService.Rules.Constants; using ESFA.DC.ILR.ValidationService.Rules.Learner.ULN; using ESFA.DC.ILR.ValidationService.Rules.Query.Interface; using E...
31,747
https://github.com/crackersamdjam/DMOJ-Solutions/blob/master/Uncategorized/joi14op6.cpp
Github Open Source
Open Source
MIT
null
DMOJ-Solutions
crackersamdjam
C++
Code
184
741
#ifdef ONLINE_JUDGE #include "secret.h" #endif #include <bits/stdc++.h> #define gc getchar_unlocked() #define pc(x) putchar_unlocked(x) template<typename T> void scan(T &x) {x = 0;register bool _=0;register T c=gc;_=c==45;c=_?gc:c;while(c<48||c>57)c=gc;for(;c<48||c>57;c=gc);for(;c>47&&c<58;c=gc)x=(x<<3)+(x<<1)+(c&15);x...
5,485
https://github.com/ContextMapper/context-map-discovery/blob/master/src/main/java/org/contextmapper/discovery/strategies/boundedcontexts/OASBoundedContextDiscoveryStrategy.java
Github Open Source
Open Source
Apache-2.0
2,022
context-map-discovery
ContextMapper
Java
Code
753
2,689
/* * Copyright 2020 The Context Mapper Project Team * * 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 applicabl...
49,496
https://github.com/GentlemanMC/yoinkhack/blob/master/src/main/java/cat/yoink/yoinkhack/api/waypoint/Waypoint.java
Github Open Source
Open Source
WTFPL
2,021
yoinkhack
GentlemanMC
Java
Code
483
2,147
package cat.yoink.yoinkhack.api.waypoint; import cat.yoink.yoinkhack.Client; import cat.yoink.yoinkhack.api.util.RenderUtil; import cat.yoink.yoinkhack.api.util.font.FontUtil; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.BufferBuilder; import net.minecraft.client.renderer.GlStateManager;...
26,716
https://github.com/xsrust/rails/blob/master/lib/translation.rb
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, MIT
2,019
rails
xsrust
Ruby
Code
243
1,065
require 'net/http' module TranslationIO GETTEXT_METHODS = [ :nsgettext, :pgettext, :npgettext, :sgettext, :ngettext, :gettext, :np_, :ns_, :Nn_, :n_, :p_, :s_, :N_, :_ ] TEXT_DOMAIN = 'app' end require 'translation_io/config' require 'translation_io/railtie' require 'translation_io/client' require 'tra...
22,676
https://github.com/justin-zimmermann/ctr4ever-Data-Analysis/blob/master/data/log_records/2011/610.php
Github Open Source
Open Source
MIT
2,019
ctr4ever-Data-Analysis
justin-zimmermann
PHP
Code
69
294
<?php echo "Vous n'avez pas la permission d'accéder à cette page"; exit(); ?> 46.105.196.7 2011-12-26 15 1'25''06 46.105.196.7 2011-12-26 16 27''53 46.105.196.7 2011-12-26 3 1'12''90 46.105.196.7 2011-12-26 9 1'55''37 46.105.196.7 2011-12-26 10 37''38 46.105.196.7 2011-12-26 29 2'09''83 46.105.196.7 2011-12-26 32...
1,646
https://github.com/Dazmen/portfolio/blob/master/src/components/projectCard.js
Github Open Source
Open Source
MIT
null
portfolio
Dazmen
JavaScript
Code
259
955
import React from 'react'; import styled from 'styled-components'; // icon imports import { makeStyles } from '@material-ui/core/styles'; import GroupIcon from '@material-ui/icons/Group'; import PersonIcon from '@material-ui/icons/Person'; import GitHubIcon from '@material-ui/icons/GitHub'; import LinkIcon from '@mate...
32,449
https://github.com/massx1/syncope/blob/master/client/cli/src/main/java/org/apache/syncope/client/cli/commands/EntitlementCommand.java
Github Open Source
Open Source
Apache-2.0
2,021
syncope
massx1
Java
Code
282
729
/* * 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 ...
34,607
https://github.com/ShMPMat/LanguageGenerator/blob/master/src/shmp/lang/generator/util/ChangeParagigmCopy.kt
Github Open Source
Open Source
MIT
2,021
LanguageGenerator
ShMPMat
Kotlin
Code
281
1,120
package shmp.lang.generator.util import shmp.lang.language.category.CategorySource import shmp.lang.language.category.paradigm.ExponenceCluster import shmp.lang.language.category.paradigm.ExponenceValue import shmp.lang.language.category.paradigm.SpeechPartChangeParadigm import shmp.lang.language.category.realization....
47,726
https://github.com/Merchello/Merchello/blob/master/src/Merchello.Web/Models/VirtualContent/IProductContentFactory.cs
Github Open Source
Open Source
MIT
2,022
Merchello
Merchello
C#
Code
49
160
namespace Merchello.Web.Models.VirtualContent { using Merchello.Web.Models.ContentEditing; /// <summary> /// Defines a ProductContentFactory. /// </summary> internal interface IProductContentFactory { /// <summary> /// The build content. /// </summary> /// <para...
23,334
https://github.com/Creoles/hathaway/blob/master/cooking.conf.js
Github Open Source
Open Source
ISC
null
hathaway
Creoles
JavaScript
Code
88
346
var path = require('path'); var cooking = require('cooking'); cooking.set({ entry: { app: ['babel-polyfill', './src/app.js'], vendor1: ["vue", "vue-router", "vuex", "vue-i18n", "vuedraggable"], vendor2: ['element-ui'] }, dist: './dist', template: './index.tpl', devServer: {...
37,245
https://github.com/Fikri-mtwoo/IuranBulananWarga/blob/master/application/views/iuran/tambah.php
Github Open Source
Open Source
MIT
2,021
IuranBulananWarga
Fikri-mtwoo
PHP
Code
107
558
<!-- <?php var_dump($warga)?> --> <div class="container-fluid"> <!-- Page Heading --> <div class="d-sm-flex align-items-center justify-content-between mb-4"> <h1 class="h3 mb-0 text-gray-800">Data Iuran</h1> </div> <div class="row"> <div class="col-md-12"> <nav aria-label="br...
44,512
https://github.com/shannonjin/cvat/blob/master/cvat/src/app/models/annotation-formats/annotation-format.ts
Github Open Source
Open Source
MIT
2,020
cvat
shannonjin
TypeScript
Code
26
84
import { Annotation } from './annotation'; export interface AnnotationFormat{ id: number; dumpers: Annotation[]; loaders: Annotation[]; name: string; created_date: string; updated_date: string; handler_file: string; owner: number; }
39,544
https://github.com/austincap/worldline/blob/master/node_modules/neo4j-driver-core/types/integer.d.ts
Github Open Source
Open Source
Unlicense
null
worldline
austincap
TypeScript
Code
1,805
3,759
/** * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. * * 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/licens...
22,606
https://github.com/Val-istar-Guo/web-template/blob/master/template/framework/request.ts
Github Open Source
Open Source
MIT
2,019
web-template
Val-istar-Guo
TypeScript
Code
46
164
import request from 'superagent' import { PORT, HOST } from './constants' // 解决兼容ssr请求时端,本地端口号和地址缺失的问题 export default request .agent() .use(request => { if (process.env.WEB_CONTAINER === 'ssr' && request.url[0] === '/') { const host = HOST === '0.0.0.0' ? '127.0.0.1' : HOST request.url = `${host}:...
2,979
https://github.com/micedre/sugoi-ui/blob/master/src/components/detailsOrganization/index.tsx
Github Open Source
Open Source
Apache-2.0
null
sugoi-ui
micedre
TypeScript
Code
403
1,522
import { Button, Grid, Typography } from '@material-ui/core'; import { useSnackbar } from 'notistack'; import React, { useEffect } from 'react'; import { useTranslation } from 'react-i18next'; import { useHistory, useParams } from 'react-router-dom'; import { useDeleteOrganization } from '../../hooks/organization/useDe...
2,348
https://github.com/AniketGurav/text-recognition/blob/master/web_demo.py
Github Open Source
Open Source
MIT
2,020
text-recognition
AniketGurav
Python
Code
352
1,217
# -*- coding: utf-8 -*- from os import listdir import os from app import app import urllib.request from flask import Flask, render_template, request, redirect, flash from wtforms import Form, TextField, validators, SubmitField, DecimalField, IntegerField from werkzeug.utils import secure_filename from keras import back...
49,790
https://github.com/alanxie29/subscription-bot/blob/master/api/src/models/subscription.js
Github Open Source
Open Source
MIT
null
subscription-bot
alanxie29
JavaScript
Code
61
180
const mongoose = require('mongoose'); const Schema = mongoose.Schema; const SubscriptionSchema = new Schema({ name: { type: String, required: true, trim: true, }, description: { type: String, required: true, trim: true }, startDate: { type: Date, required: true, }, renewa...
49,383
https://github.com/mohsinalimat/DevToysMac/blob/master/DevToys/DevToys/Body/Graphic/Image Converter/ImageConverter.swift
Github Open Source
Open Source
MIT
2,022
DevToysMac
mohsinalimat
Swift
Code
526
1,731
// // ImageConverter.swift // DevToys // // Created by yuki on 2022/02/04. // import CoreUtil struct ImageConvertTask { let image: NSImage let title: String let size: CGSize let destinationURL: URL let isDone: Promise<Void, Error> } enum ImageConverter { private static let destinationDirec...
29,557
https://github.com/8834341/cocos-animator/blob/master/animator-editor/assets/script/editor/menu/LineToSubItem.ts
Github Open Source
Open Source
MIT
2,021
cocos-animator
8834341
TypeScript
Code
92
284
import Events, { EventName } from "../../common/util/Events"; import State from "../data/State"; import UnitStateMachine from "../fsm/UnitStateMachine"; const { ccclass, property } = cc._decorator; @ccclass export default class LineToSubItem extends cc.Component { @property(cc.Label) NameLabel: cc.Label = null; ...
43,186
https://github.com/chenxygx/PythonSimple/blob/master/MachineLearning/Factorization Machine/FM_test.py
Github Open Source
Open Source
Apache-2.0
2,021
PythonSimple
chenxygx
Python
Code
162
652
# coding:UTF-8 import numpy as np from FM_train import getPrediction def loadDataSet(data): '''导入测试数据集 input: data(string)测试数据 output: dataMat(list)特征 ''' dataMat = [] fr = open(data) # 打开文件 for line in fr.readlines(): lines = line.strip().split("\t") lineArr = [] ...
24,163
https://github.com/michealdunne14/InternetCookBookFYP/blob/master/app/src/test/java/com/example/internetcookbook/StartFragmentTest.kt
Github Open Source
Open Source
MIT
2,020
InternetCookBookFYP
michealdunne14
Kotlin
Code
8
31
package com.example.internetcookbook import org.junit.Assert.* class StartFragmentTest { }
23,819
https://github.com/qodeca/Pollution-Warning-Display/blob/master/client/src/actions/index.js
Github Open Source
Open Source
Unlicense
2,019
Pollution-Warning-Display
qodeca
JavaScript
Code
75
169
export const pollutionData = data => { return { type: 'DATA', payload: data } }; export const advertisementsData = data => { return { type: 'ADS_LIST', payload: data } }; export const selectedAdvertisement = data => { return { type: 'SELECTED_AD', pa...
36,686
https://github.com/hpcloud/jclouds-labs/blob/master/cdmi/src/test/java/org/jclouds/snia/cdmi/v1/features/ContainerApiExpectTest.java
Github Open Source
Open Source
Apache-1.1
null
jclouds-labs
hpcloud
Java
Code
212
676
/** * Licensed to jclouds, Inc. (jclouds) under one or more * contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. jclouds licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use ...
1,537
https://github.com/westfallon/smartMuseum/blob/master/app/src/main/java/com/example/smartmuseum/util/RegexUtils.java
Github Open Source
Open Source
Apache-2.0
null
smartMuseum
westfallon
Java
Code
34
154
package com.example.smartmuseum.util; import java.util.regex.Pattern; /** * 放各种校验 */ public class RegexUtils { /** * 手机号的校验(没有放很复杂的校验,1开头的十位数字即可) * @param tel * @return */ public static boolean validateMobilePhone(String tel){ Pattern telPattern = Pattern.compile("^[1]\\d{10}$"...
14,097
https://github.com/sthima/cielo-API-3.0-Nodejs/blob/master/sdk/ecommerce/environment.ts
Github Open Source
Open Source
Apache-2.0
2,020
cielo-API-3.0-Nodejs
sthima
TypeScript
Code
65
253
import { IEnvironment } from '../environment'; export class Environment implements IEnvironment { private apiUrl: string; private apiQueryUrl: string; public static PRODUCTION() { return new Environment( 'https://api.cieloecommerce.cielo.com.br/', 'https://apiquery.cieloecommerce.cielo.com.br/' ...
31,971
https://github.com/Rufaim/entry-booking-control/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,020
entry-booking-control
Rufaim
Ignore List
Code
3
12
*.pb.go *.log *.db
16,859
https://github.com/OpenMTR/OpenMTR/blob/master/OpenMTRDemo/Filters/IsolateOdoFilter.Designer.cs
Github Open Source
Open Source
MIT
2,018
OpenMTR
OpenMTR
C#
Code
332
1,374
namespace OpenMTRDemo.Filters { partial class IsolateOdoFilter { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary...
21,803
https://github.com/Lingaro/magento2-module-codegen/blob/master/src/Lingaro/Magento2Codegen/Model/Template.php
Github Open Source
Open Source
MIT
2,023
magento2-module-codegen
Lingaro
PHP
Code
207
628
<?php /** * Copyright © 2023 Lingaro sp. z o.o. All rights reserved. * See LICENSE for license details. */ declare(strict_types=1); namespace Lingaro\Magento2Codegen\Model; use Lingaro\Magento2Codegen\Service\TemplateType\TypeInterface; class Template { private ?string $name = null; private ?string $des...
39,660
https://github.com/pk044/kebs/blob/master/instances/src/main/scala/pl/iterators/kebs/instances/util/CurrencyString.scala
Github Open Source
Open Source
MIT
2,022
kebs
pk044
Scala
Code
35
135
package pl.iterators.kebs.instances.util import pl.iterators.kebs.instances.InstanceConverter import pl.iterators.kebs.instances.util.CurrencyString.CurrencyFormat import java.util.Currency trait CurrencyString { implicit val currencyFormatter: InstanceConverter[Currency, String] = InstanceConverter[Currency, ...
8,706
https://github.com/sonntagsgesicht/auxilium/blob/master/auxilium/tools/dulwich_tools.py
Github Open Source
Open Source
Apache-2.0
null
auxilium
sonntagsgesicht
Python
Code
716
2,337
# -*- coding: utf-8 -*- # auxilium # -------- # Python project for an automated test and deploy toolkit. # # Author: sonntagsgesicht # Version: 0.2.7, copyright Monday, 01 November 2021 # Website: https://github.com/sonntagsgesicht/auxilium # License: Apache License 2.0 (see LICENSE file) from logging import lo...
16,520
https://github.com/gruiick/openclassrooms-py/blob/master/01-Apprenez/1.TP01.py
Github Open Source
Open Source
BSD-2-Clause
null
openclassrooms-py
gruiick
Python
Code
146
341
#!/usr/bin/env python3 # coding: utf-8 # $Id: 1.TP01.py 1.2 $ # SPDX-License-Identifier: BSD-2-Clause entrée = input("Saisissez une année : ") year = int(entrée) # Naïf """ if year % 4 == 0: if year % 100 == 0: if year % 400 == 0: print('bissextile') else: print('pas biss...
13,451
https://github.com/piougy/CzechIdMng/blob/master/Realization/backend/core/core-impl/src/main/java/eu/bcvsolutions/idm/core/scheduler/task/impl/RebuildRoleCatalogueIndexTaskExecutor.java
Github Open Source
Open Source
MIT
2,021
CzechIdMng
piougy
Java
Code
308
1,626
package eu.bcvsolutions.idm.core.scheduler.task.impl; import java.util.List; import java.util.UUID; import org.quartz.DisallowConcurrentExecution; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageRequest; import org....
20,973
https://github.com/HakanAkca/etreprof-mb/blob/master/resources/assets/sass/public/public.scss
Github Open Source
Open Source
MIT
null
etreprof-mb
HakanAkca
SCSS
Code
35
204
// Fonts //@import url(https://fonts.googleapis.com/css?family=Raleway:300,400,600); @import url('https://fonts.googleapis.com/css?family=Lato|Shadows+Into+Light'); @import url('http://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css'); // Variables @import "variables"; // Bootstrap @import "node_...
17,620
https://github.com/amousty/Resume_V2/blob/master/projects/Ret_V2/views/map.php
Github Open Source
Open Source
MTLL
null
Resume_V2
amousty
PHP
Code
152
646
<?php header('content-type: application/xhtml+xml;charset=utf-8'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr"> <head> <?php require_once $_SERVER['DOCUMENT_ROOT']. '../inc/include_css_js.inc.php'...
8,835
https://github.com/TonyJenkins/python-workout/blob/master/40-bowl-limits/bowl_tester.py
Github Open Source
Open Source
Unlicense
2,021
python-workout
TonyJenkins
Python
Code
42
149
#!/usr/bin/env python3 """ Exercise 40: Ice Cream Bowl Limit Class tester for Bowl class. """ from bowl import Bowl from scoop import Scoop if __name__ == '__main__': the_bowl = Bowl() the_bowl.add_scoops( Scoop('Chocolate'), Scoop('Vanilla'), Scoop('Mint Choc Chip'), ...
38,265
https://github.com/JochemKuijpers/gg_raytracer/blob/master/src/main/java/nl/jochemkuijpers/app/scenes/StackedShapeScene.java
Github Open Source
Open Source
MIT
null
gg_raytracer
JochemKuijpers
Java
Code
124
355
package nl.jochemkuijpers.app.scenes; import nl.jochemkuijpers.math.Color; import nl.jochemkuijpers.math.Vector3; import nl.jochemkuijpers.raytrace.materials.*; import nl.jochemkuijpers.raytrace.shapes.with_material.Box; import nl.jochemkuijpers.raytrace.shapes.with_material.Sphere; public class StackedShapeScene ext...
37,706
https://github.com/ejc123/geotrellis/blob/master/spark/src/test/scala/geotrellis/spark/io/hadoop/formats/NetCdfInputFormatSpec.scala
Github Open Source
Open Source
Apache-2.0
null
geotrellis
ejc123
Scala
Code
500
1,372
package geotrellis.spark.io.hadoop.formats import org.scalatest.{FunSpec, Matchers} import org.joda.time.{DateTimeZone, DateTime} class NetCdfInputFormatSpec extends FunSpec with Matchers { describe("Type and Date reader") { val DateTime19500101 = new DateTime(1950, 1, 1, 0, 0, 0, DateTimeZone.UTC) def ...
44,977
https://github.com/NYPL-Simplified/audiobook-android/blob/master/org.librarysimplified.audiobook.open_access/src/main/java/org/librarysimplified/audiobook/open_access/ExoAudioBookPlayer.kt
Github Open Source
Open Source
Apache-2.0
2,022
audiobook-android
NYPL-Simplified
Kotlin
Code
2,461
9,098
package org.librarysimplified.audiobook.open_access import android.content.Context import android.media.AudioManager import android.media.PlaybackParams import android.net.Uri import android.os.Build import com.google.android.exoplayer.ExoPlaybackException import com.google.android.exoplayer.ExoPlayer import com.googl...
20,057
https://github.com/tchivs/BlazorComponent/blob/master/src/Component/BlazorComponent/Components/Input/Content/Control/InputSlot/DefaultSlot/Label/BInputLabel.razor.cs
Github Open Source
Open Source
MIT
2,022
BlazorComponent
tchivs
C#
Code
44
133
using Microsoft.AspNetCore.Components; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BlazorComponent { public partial class BInputLabel<TValue, TInput> : ComponentPartBase<TInput> where TInput : IInput<TValue> { pu...
39,507
https://github.com/swtcpro/jingtum-lib-objectc/blob/master/WebSocketClient/jingtum-lib/NSString+sha.h
Github Open Source
Open Source
MIT, Apache-2.0
2,018
jingtum-lib-objectc
swtcpro
Objective-C
Code
46
153
// // NSString+sha.h // WebSocketClient // // Created by tongmuxu on 2018/6/30. // Copyright © 2018年 tongmuxu. All rights reserved. // #import <Foundation/Foundation.h> #import <CommonCrypto/CommonDigest.h> #import <CommonCrypto/CommonCryptor.h> @interface NSString (sha) -(NSString *) sha1; -(NSString *) sha224; ...
31,244
https://github.com/framptonjs/frampton-style/blob/master/src/types.ts
Github Open Source
Open Source
MIT
null
frampton-style
framptonjs
TypeScript
Code
8
17
export interface StyleMap { [name: string]: string; }
25,509
https://github.com/mehulsbhatt/js-dossier/blob/master/src/java/com/github/jsdossier/Flags.java
Github Open Source
Open Source
Apache-2.0
2,016
js-dossier
mehulsbhatt
Java
Code
382
969
/* Copyright 2013-2016 Jason Leyba 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, sof...
12,004
https://github.com/luoxiaowang/webpack-react/blob/master/webpack.production.config.js
Github Open Source
Open Source
MIT
2,016
webpack-react
luoxiaowang
JavaScript
Code
95
538
var path = require('path'); var webpack = require('webpack'); var node_modules_dir = path.resolve(__dirname, 'node_modules'); var config = { entry: { app:path.resolve(__dirname, 'app/main.js'), mobile: path.resolve(__dirname, 'app/mobile.js'), commons: ['react', 'react-dom']//将经常用的库js包打到commons.js中,此js中的...
40,369
https://github.com/andrasigneczi/TravelOptimizer/blob/master/DataCollector/mozilla/xulrunner-sdk/include/mozilla/dom/telephony/TelephonyParent.h
Github Open Source
Open Source
Apache-2.0
2,018
TravelOptimizer
andrasigneczi
C++
Code
211
855
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0...
46,254
https://github.com/stemmlerjs/univjobs-front-static/blob/master/src/components/student-pack/styles/Pack.sass
Github Open Source
Open Source
MIT
null
univjobs-front-static
stemmlerjs
Sass
Code
108
449
.pack padding-top: 2rem; h3 text-align: center; .pack-container max-width: 1250px; margin: 0 auto; padding: 2rem; display: flex; flex-direction: row; justify-content: space-evenly; flex-wrap: wrap; position: relative; .hidden-transparency background-image: linear-...
38,790
https://github.com/goyalshubhangi/practicals_3_year/blob/master/It/jsp_javascript/Prac9.java
Github Open Source
Open Source
MIT
null
practicals_3_year
goyalshubhangi
Java
Code
65
167
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package P6; import javax.servlet.jsp.tagext.SimpleTagSupport; import javax.servlet.jsp.*; import java.io.*; import java.util.Calendar;...
43,606
https://github.com/moe1129peterson/node_express_api/blob/master/node_modules/pnpm/lib/node_modules/supi/lib/install/shrinkwrap.js
Github Open Source
Open Source
MIT
2,021
node_express_api
moe1129peterson
JavaScript
Code
60
218
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const encodeRegistry = require("encode-registry"); function absolutePathToRef(absolutePath, opts) { if (opts.resolution.type) return absolutePath; const registryName = encodeRegistry(opts.standardRegistry); if (absolutePath...
47,809
https://github.com/openvinotoolkit/openvino/blob/master/tools/mo/openvino/tools/mo/front/tf/reduce_ext.py
Github Open Source
Open Source
Apache-2.0
2,023
openvino
openvinotoolkit
Python
Code
175
791
# Copyright (C) 2018-2023 Intel Corporation # SPDX-License-Identifier: Apache-2.0 from openvino.tools.mo.ops.ReduceOps import ReduceProd, ReduceAnd, ReduceMax, ReduceMean, ReduceSum, ReduceL2, \ ReduceMin, ReduceLogicalOr from openvino.tools.mo.front.extractor import FrontExtractorOp from openvino.tools.mo.graph.g...
50,037
https://github.com/OpenAMEE/amee.platform.api/blob/master/amee-platform-domain/src/main/java/com/amee/domain/ValueType.java
Github Open Source
Open Source
MIT
2,015
amee.platform.api
OpenAMEE
Java
Code
274
782
package com.amee.domain; import org.json.JSONException; import org.json.JSONObject; import org.w3c.dom.Document; import org.w3c.dom.Element; import java.io.Serializable; import java.util.Date; import java.util.LinkedHashMap; import java.util.Map; public enum ValueType implements Serializable { // The order of t...
18,332
https://github.com/jenifaelle/natural20-cp17/blob/master/src/sound/channel.py
Github Open Source
Open Source
MIT
2,017
natural20-cp17
jenifaelle
Python
Code
40
185
from typing import Dict import pygame from util.singleton import Singleton class ChannelManager(metaclass=Singleton): def __init__(self): self.channels: Dict[str, pygame.mixer.ChannelType] = {'music': pygame.mixer.Channel(0), 'effect': pygame.mixer.Channel(1), ...
49,008
https://github.com/nanobot248/extraterm/blob/master/build_scripts/node_modules-linux-x64/ptyw.js/vendor/winpty/agent/LargeConsoleRead.h
Github Open Source
Open Source
MIT
null
extraterm
nanobot248
C
Code
107
390
#ifndef LARGE_CONSOLE_READ_H #define LARGE_CONSOLE_READ_H #include <windows.h> #include <stdlib.h> #include <vector> #include "SmallRect.h" #include "../shared/DebugClient.h" #include "../shared/WinptyAssert.h" class Win32Console; class LargeConsoleReadBuffer { public: LargeConsoleReadBuffer(); const Small...
17,983
https://github.com/hsloan1a/midwaypython/blob/master/docs/006_Adding_a_Database/midway/alembic/versions/20190202_11f1e940695e.py
Github Open Source
Open Source
Apache-2.0
2,019
midwaypython
hsloan1a
Python
Code
116
488
"""init Revision ID: 11f1e940695e Revises: Create Date: 2019-02-02 22:05:33.689016 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '11f1e940695e' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto generated by A...
24,832
https://github.com/yangxin0/waymo-open-dataset/blob/master/tf28/configure.sh
Github Open Source
Open Source
Apache-2.0
null
waymo-open-dataset
yangxin0
Shell
Code
300
1,030
#!/bin/bash # Copyright 2019 The Waymo Open Dataset 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...
23,464
https://github.com/mishrakeshav/Competitive-Programming/blob/master/Google Kickstart/2018/Round C/planet_distance.py
Github Open Source
Open Source
MIT
2,020
Competitive-Programming
mishrakeshav
Python
Code
185
695
from collections import OrderedDict,deque class Vertex: def __init__(self,val): self.val = val self.isVisited = False self.connections = dict() self.parent = None self.distance = None def addConnection(self,val): self.connections[val] = True class...
46,932
https://github.com/sportradar/UnifiedOddsSdkJava/blob/master/sdk-core/src/main/java/com/sportradar/unifiedodds/sdk/entities/CoveredFrom.java
Github Open Source
Open Source
BSD-3-Clause
2,021
UnifiedOddsSdkJava
sportradar
Java
Code
40
93
/* * Copyright (C) Sportradar AG. See LICENSE for full license governing this code */ package com.sportradar.unifiedodds.sdk.entities; /** * Possible coverage locations */ @SuppressWarnings("java:S115") // Constant names should comply with a naming convention public enum CoveredFrom { Tv, Venue }
39,694
https://github.com/Anonymity94/cube.js/blob/master/examples/data-warehouse-performance-benchmarks/bigquery/cube-api.js
Github Open Source
Open Source
MIT, Apache-2.0, Cube
2,021
cube.js
Anonymity94
JavaScript
Code
86
390
import cubejs from '@cubejs-client/core'; const cubejsApi = cubejs.default( 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE2Mjc5ODkxODh9.toFTRcl7fdfZN-4fm9XSNu4qfpCZ2X8423Jbju8WyYY', { apiUrl: 'https://irish-idalia.gcp-us-central1.cubecloudapp.dev/cubejs-api/v1' } ); const query = ` { "measures": [ "Event...
45,623
https://github.com/blackrian/vueoldman/blob/master/src/vuex/modules/dropDown.js
Github Open Source
Open Source
MIT
2,016
vueoldman
blackrian
JavaScript
Code
46
193
/** * Created by Administrator on 2016/9/11. */ import { GET_DROP_VAL } from '../mutation-types' const state={ //分组值 dropGroup:'1', // 分组项 dropGroupItem:[ { key:1, value:'学习型' },{ key:2, value:'休闲型' },{ key:3, ...
42,775
https://github.com/treff7es/dagster/blob/master/examples/dagster_examples/intro_tutorial/tutorial_repository.py
Github Open Source
Open Source
Apache-2.0
2,019
dagster
treff7es
Python
Code
52
235
from dagster import RepositoryDefinition from .hello_world import hello_world_pipeline from .hello_dag import hello_dag_pipeline from .actual_dag import actual_dag_pipeline from .config import hello_with_config_pipeline from .execution_context import execution_context_pipeline from .resources_full import resources_pip...
35,857
https://github.com/gophertrain/training/blob/master/monmetlog/solutions/raft/store/store_test.go
Github Open Source
Open Source
MIT
2,020
training
gophertrain
Go
Code
7
14
package store_test // TODO: write some tests
9,440
https://github.com/mpoozd/newNm/blob/master/application/views/admin/faq/update_faq.php
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,017
newNm
mpoozd
PHP
Code
215
1,073
<div class="row "> <div class="col-md-12"> <?php if(validation_errors() != false) {?> <div class="alert alert-danger alert-dismissable"> <button class="close" aria-hidden="true" data-dismiss="alert" type="button"></button> <?php echo validation_errors(); ?> </div> ...
857
https://github.com/Rockdell/dempy/blob/master/dempy/acquisitions/subject.py
Github Open Source
Open Source
MIT
2,020
dempy
Rockdell
Python
Code
218
778
from typing import List, Dict, Any from dempy._base import Entity from dempy._protofiles import SubjectMessage class Subject(Entity): """Subject class""" def __init__(self, type: str, id: str, tags: List[str], metadata: Dict[str, str], birthdate_timestamp: int, description: str, first_name: ...
16,009
https://github.com/mavn-alliance/MAVN.Service.Referral/blob/master/client/MAVN.Service.Referral.Client/ReferralClient.cs
Github Open Source
Open Source
MIT
null
MAVN.Service.Referral
mavn-alliance
C#
Code
97
339
using Lykke.HttpClientGenerator; namespace MAVN.Service.Referral.Client { /// <summary> /// Referral API aggregating interface. /// </summary> public class ReferralClient : IReferralClient { // Note: Add similar ReferralApi properties for each new service controller /// <summary>I...
6,884
https://github.com/jasonsum/behavior_mapping/blob/master/setup.py
Github Open Source
Open Source
MIT
null
behavior_mapping
jasonsum
Python
Code
73
287
import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name="behavior_mapper", version="1.2.1.dev1", author="Jason Summer", author_email="jasummer92@gmail.com", description="Clusters channel activities or steps according to the tra...
7,101
https://github.com/pradeep-charism/prad-concurrency/blob/master/src/main/java/practices/visitors/UnsafeWebsite.java
Github Open Source
Open Source
Apache-2.0
null
prad-concurrency
pradeep-charism
Java
Code
86
228
package practices.visitors; import java.util.HashSet; import java.util.Set; public class UnsafeWebsite implements Website{ public static int visitors = 0; // public int visitors = 0; // public Set<Integer> allVisitors = new HashSet<>(); public static Set<Integer> allVisitors = new HashSet<>(); @...
13,699
https://github.com/sofianeOuafir/SupplyChainAppEthereum/blob/master/contracts/Item.sol
Github Open Source
Open Source
MIT
null
SupplyChainAppEthereum
sofianeOuafir
Solidity
Code
77
231
pragma solidity ^0.6.4; import "./ItemManager.sol"; contract Item { uint public index; uint public priceWei; uint public paidWei; ItemManager parentContract; constructor(ItemManager _parentContract, uint _priceWei, uint _index) public { parentContract = _parentContract; i...
5,095
https://github.com/doitian/dotfiles-public/blob/master/nvim/pack/local/opt/iy-bm.vim/plugin/iy-bm.vim
Github Open Source
Open Source
Apache-2.0
2,023
dotfiles-public
doitian
Vim Script
Code
16
62
if exists('g:loaded_iy_bm') finish endif let g:loaded_iy_bm = 1 if !exists(':Bm') command -nargs=* Bm call iy#bm#line(<q-args>) endif
20,254
https://github.com/xuejiaomeng/vue-simple-tree/blob/master/src/components/VueTree.vue
Github Open Source
Open Source
MIT
2,018
vue-simple-tree
xuejiaomeng
Vue
Code
204
778
<template> <ul class="vue-tree"> <tree-item v-for="item in treeData" :ids="ids" :ids-with-parent="idsWithParent" :model="item" :options="termOptions" :depth="0" @add-a-child="addAChild" ...
4,421
https://github.com/JackSilence/mrt/blob/master/src/main/java/ninja/task/Task.java
Github Open Source
Open Source
MIT
2,021
mrt
JackSilence
Java
Code
46
141
package ninja.task; import org.springframework.beans.factory.annotation.Value; import magic.service.IService; import net.gpedro.integrations.slack.SlackMessage; import ninja.util.Utils; public abstract class Task implements IService { protected static final String COMMAND = "scheduled-task"; @Value( "${slack.webh...
2,422
https://github.com/rezam28/SPK-FAHP/blob/master/resources/views/layout/main.blade.php
Github Open Source
Open Source
MIT
null
SPK-FAHP
rezam28
PHP
Code
137
882
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>@yield('title')</title> <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet"> <link rel="stylesheet" href="ht...
12,324
https://github.com/MarceLlanos/BingoWebGame/blob/master/module/Application/src/Form/RegisterForm.php
Github Open Source
Open Source
BSD-3-Clause
null
BingoWebGame
MarceLlanos
PHP
Code
98
369
<?php namespace Application\Form; use Zend\Form\Element; use Zend\Form\Form; class RegisterForm extends Form { public function __construct($name = null, $options = []) { parent::__construct($name, $options); $name = new Element\Text('name'); $name->setLabel('User name')->setLabelAt...
18,586
https://github.com/ashishdotme/ansu-bot/blob/master/Ansu.Bot/Config/Database/MongoSettings.cs
Github Open Source
Open Source
MIT
2,021
ansu-bot
ashishdotme
C#
Code
36
86
using System; using Ansu.MongoDB.Client.Interfaces; namespace Ansu.Bot.Config.Models { public class MongoSettings : IMongoSettings { public string Database { get; set; } public string Collection { get; set; } public string ConnectionString { get; set; } } }
8,212
https://github.com/dancergraham/advent_of_code_2021/blob/master/day02/day02.py
Github Open Source
Open Source
MIT
2,022
advent_of_code_2021
dancergraham
Python
Code
140
367
from collections import Counter from pathlib import Path test_input = """forward 5 down 5 forward 8 up 3 down 8 forward 2""" def part_1(puzzle_input: str) -> float: parsed = [line for line in puzzle_input.splitlines()] counter = Counter() for line in parsed: direction, distance = line.split() ...
43,384
https://github.com/open-toontown/open-toontown/blob/master/toontown/estate/DistributedPhoneAI.py
Github Open Source
Open Source
BSD-3-Clause
2,023
open-toontown
open-toontown
Python
Code
13
63
from direct.directnotify import DirectNotifyGlobal from direct.distributed.DistributedObjectAI import DistributedObjectAI class DistributedPhoneAI(DistributedObjectAI): notify = DirectNotifyGlobal.directNotify.newCategory('DistributedPhoneAI')
49,385
https://github.com/bitwize/rscheme/blob/master/packages/threads/manager/pipe.scm
Github Open Source
Open Source
TCL
2,022
rscheme
bitwize
Scheme
Code
162
617
(define-class <internal-pipe-input> (<buffered-input-port>) mbox) (define-method provide-more-input ((self <internal-pipe-input>)) (if (mbox self) (let ((m (receive-message! (mbox self)))) (cond ((pair? m) ; it's markup... ignore it (provide-more-input self)) ((string?...
12,014