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/bs135/EduMSDemo/blob/master/src/EduMSDemo.Validators/Student/SubjectRegister/SubjectRegisterValidator.cs
Github Open Source
Open Source
MIT
2,016
EduMSDemo
bs135
C#
Code
33
147
using EduMSDemo.Components.Mvc; using EduMSDemo.Components.Security; using EduMSDemo.Data.Core; using EduMSDemo.Objects; using EduMSDemo.Resources.Views.Manage.Teachers.Faculty.FacultyView; using System; using System.Linq; namespace EduMSDemo.Validators { public class SubjectRegisterValidator : BaseValidator, ISu...
30,436
https://github.com/barnettZQG/rainbond-ui/blob/master/src/common/enterpriseMenu.js
Github Open Source
Open Source
Apache-2.0
2,019
rainbond-ui
barnettZQG
JavaScript
Code
342
1,634
/* eslint-disable react/react-in-jsx-scope */ import rainbondUtil from '../utils/rainbond'; import userUtil from '../utils/user'; import { isUrl } from '../utils/utils'; function menuData(eid, currentUser) { const adminer = userUtil.isCompanyAdmin(currentUser); const clusterSvg = ( <i className="anticon"> ...
41,494
https://github.com/Astr0/SimplyFast/blob/master/tests/SimplyFast.Expressions.Dynamic.Tests/EBuilderStaticTests.cs
Github Open Source
Open Source
MIT
2,019
SimplyFast
Astr0
C#
Code
235
777
using System; using System.Diagnostics.CodeAnalysis; using System.Globalization; using Xunit; namespace SimplyFast.Expressions.Dynamic.Tests { public class EBuilderStaticTests { [SuppressMessage("ReSharper", "MemberCanBePrivate.Local")] [SuppressMessage("ReSharper", "UnusedMember.Local")]...
15,075
https://github.com/sunny2831/MCUserPermissionsTesting/blob/master/templates/partials/form/global-messages.hbs
Github Open Source
Open Source
Apache-2.0
2,019
MCUserPermissionsTesting
sunny2831
null
Spoken
6
31
{{#each messages.globalMessages}} <div class="alert alert-info">{{message}}</div> {{/each}}
45,736
https://github.com/shaileshFW/saddlewoof/blob/master/backend/web/src/main/java/com/psidox/saddlewoof/web/rest/Interceptor.java
Github Open Source
Open Source
MIT
2,015
saddlewoof
shaileshFW
Java
Code
75
339
package com.psidox.saddlewoof.web.rest; import javax.ws.rs.container.ContainerRequestContext; import javax.ws.rs.container.ContainerRequestFilter; import javax.ws.rs.container.PreMatching; import javax.ws.rs.ext.Provider; import java.io.IOException; @Provider @PreMatching public class Interceptor implements Container...
13,848
https://github.com/treehopper-electronics/treehopper-sdk/blob/master/Java/api/treehopper.libraries/src/main/java/io/treehopper/libraries/sensors/optical/bh1750/Resolution.java
Github Open Source
Open Source
MIT
2,021
treehopper-sdk
treehopper-electronics
Java
Code
26
90
package io.treehopper.libraries.sensors.optical.bh1750; public enum Resolution { Medium(0), High(1), Low(2); int val; Resolution(int val) { this.val = val; } public int getVal() { return val; } }
27,233
https://github.com/1690296356/jdk/blob/master/test/jdk/sun/security/tools/jarsigner/CertPolicy.java
Github Open Source
Open Source
Apache-2.0
null
jdk
1690296356
Java
Code
405
1,033
/* * Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
55,138
https://github.com/nico-juni/googleads-go/blob/master/v10/pb/enums/invoice_type.pb.go
Github Open Source
Open Source
Apache-2.0
2,022
googleads-go
nico-juni
Go
Code
948
4,547
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.18.1 // source: google/ads/googleads/v10/enums/invoice_type.proto package enums import ( proto "github.com/golang/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "goog...
5,850
https://github.com/tektoncd/operator/blob/master/vendor/cuelang.org/go/internal/core/export/expr.go
Github Open Source
Open Source
Apache-2.0
2,023
operator
tektoncd
Go
Code
1,737
5,086
// Copyright 2020 CUE 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 applicable law or agreed to in ...
39,503
https://github.com/michaelruocco/idv-context/blob/master/context/lockout/domain/entities/src/test/java/uk/co/idv/lockout/entities/policy/hard/HardLockoutStateCalculatorTest.java
Github Open Source
Open Source
MIT
null
idv-context
michaelruocco
Java
Code
71
409
package uk.co.idv.lockout.entities.policy.hard; import org.junit.jupiter.api.Test; import uk.co.idv.lockout.entities.policy.LockoutState; import uk.co.idv.lockout.entities.policy.LockoutStateRequestMother; import uk.co.idv.lockout.entities.policy.LockoutStateRequest; import static org.assertj.core.api.Assertions.asse...
22,354
https://github.com/mozinrat/apache-spark-test/blob/master/project/ScalariformConf.scala
Github Open Source
Open Source
Apache-2.0
2,016
apache-spark-test
mozinrat
Scala
Code
70
224
package sbt import com.typesafe.sbt.SbtScalariform import sbt._ import scalariform.formatter.preferences.{AlignSingleLineCaseStatements, DoubleIndentClassDeclaration} /** * `:=` assigns an initialization expression to a key * `+=` appends an initialization expression to the existing sequence in a key * `++=` a...
11,361
https://github.com/getbridge/bridge-objc/blob/master/bridge/bridge/BridgeUtils.h
Github Open Source
Open Source
MIT
2,012
bridge-objc
getbridge
Objective-C
Code
34
105
// // BridgeUtils.h // bridge // // Created by Sridatta Thatipamala on 4/26/12. // Copyright 2012 __MyCompanyName__. All rights reserved. // #import <Foundation/Foundation.h> @interface BridgeUtils : NSObject + (NSString*) generateRandomId; + (NSArray*) getMethods:(NSObject*)anObject; @end
26,249
https://github.com/abpframework/abp-samples/blob/master/DashboardDemo/src/DashboardDemo.Application.Contracts/IDashboardAppService.cs
Github Open Source
Open Source
MIT
2,023
abp-samples
abpframework
C#
Code
24
131
using System.Threading.Tasks; using Volo.Abp.Application.Services; namespace DashboardDemo { public interface IDashboardAppService : IApplicationService { Task<CountersWidgetResultDto> GetCountersWidgetAsync(CountersWidgetInputDto input); Task<NewUserStatisticWidgetResultDto> GetNewUserStatis...
13,310
https://github.com/pedroigor/keycloak/blob/master/testsuite/integration-arquillian/tests/other/console/src/test/java/org/keycloak/testsuite/console/clients/ClientMappersOIDCTest.java
Github Open Source
Open Source
Apache-2.0
2,021
keycloak
pedroigor
Java
Code
824
4,407
/* * JBoss, Home of Professional Open Source. * Copyright 2012, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can redistribute it and/or modify it * und...
6,882
https://github.com/kasahun2321/kasahun2321.github.io/blob/master/FINALPROJECT-ONB/application/views/upload_file_view.php
Github Open Source
Open Source
MIT
2,021
kasahun2321.github.io
kasahun2321
PHP
Code
115
472
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>CodeIgniter File Upload Form</title> <!-- load bootstrap css file --> <link href="<?php echo base_url("assets/bootstrap/css/bootstrap.css"); ?>" rel="stylesheet" type="text/css" /> </head> <body> ...
3,044
https://github.com/anthony-montoya/unit-testing-mini/blob/master/users.test.js
Github Open Source
Open Source
ISC
2,017
unit-testing-mini
anthony-montoya
JavaScript
Code
34
101
const functions = require('./users'); const users = require('./mockData/userData'); test('clearPasswords() should clear all the passwords', function() { const updatedUserArray = functions.clearPasswords(users); const taskComplete = true; updatedUserArray.map(user => { if(user.password) taskComplete...
31,962
https://github.com/hptruong93/Repeat/blob/master/src/cli/TerminalState.java
Github Open Source
Open Source
MIT
2,016
Repeat
hptruong93
Java
Code
28
73
package cli; import java.util.List; public abstract class TerminalState extends ParseState { protected abstract boolean execute(List<Object> parsed); @Override protected ParseState parse(String arg, List<Object> parsed) { return null; } }
34,364
https://github.com/PatriciaBurgos/Proyecto/blob/master/NuevoProyectoDAM/5.4.0/aspnet-core/src/NuevoProyectoDAM.Core/Anuncios/Anuncio.cs
Github Open Source
Open Source
MIT
2,020
Proyecto
PatriciaBurgos
C#
Code
42
112
using Abp.Domain.Entities.Auditing; using DAM.Publicaciones; using System; using System.Collections.Generic; using System.Text; namespace DAM.Anuncios { public class Anuncio : FullAuditedEntity { public string Preferencias { get; set; } public int PublicacionId { get; set; } public Publicacion Publicacion { ...
7,682
https://github.com/tayllan/Learning-Myself-a-Haskell/blob/master/09-input-and-output/helloworld.hs
Github Open Source
Open Source
MIT
2,022
Learning-Myself-a-Haskell
tayllan
Haskell
Code
134
272
-- main = putStrLn "hello, world!" --main = do -- putStrLn "Type a letter: " -- letter <- getLine -- putStrLn ("This is what you letter gets you: " ++ tellWhat letter) -- where tellWhat (x:_) = x : " lame!" import Data.Char --main = do -- putStrLn "What's your first name?" -- firstName <- getLine -- putStrLn "What's...
12,285
https://github.com/Jskabe/Psych-Engine-0.4.2-Android-Port/blob/master/assets/preload/custom_events/Play Sound.lua
Github Open Source
Open Source
Apache-2.0
null
Psych-Engine-0.4.2-Android-Port
Jskabe
Lua
Code
18
45
-- Event notes hooks function onEvent(name, value1, value2) if name == 'Play Sound' then playSound(value1, value2) end end
9,230
https://github.com/Peter-van-der-Velde/Nothing-but-Demons/blob/master/src/js/lighting.js
Github Open Source
Open Source
Zlib
2,017
Nothing-but-Demons
Peter-van-der-Velde
JavaScript
Code
35
107
//var Light = new THREE.DirectionalLight( 0xdddddd, 0.8 ); //Light.position.set( -8, 8, 8 ); //light.castShadow = true; const pointLight = new THREE.PointLight(0xFFFFFF); pointLight.position.set (0, 20, 8); pointLight.castShadow = true; var LightA = new THREE.AmbientLight( 0x000 );
55,858
https://github.com/jawaemaung/student_management-/blob/master/doc/enrollment.sql
Github Open Source
Open Source
MIT
null
student_management-
jawaemaung
SQL
Code
355
1,134
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 18, 2021 at 07:54 PM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.3.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
5,758
https://github.com/infojunkie/music-l10n/blob/master/experiments/music-l10n/test/scale_test.js
Github Open Source
Open Source
MIT
2,019
music-l10n
infojunkie
JavaScript
Code
347
1,118
import { deepEqual } from 'assert'; import '../lib'; import { Scale } from '../lib/scale.js'; describe('Scale', () => { const D = Scale.fromTones([2, 4, 6, 7, 9, 11, 13], +1 /* sharp +1 or flat -1 */); const Bb = Scale.fromTones([10, 12, 14, 15, 17, 19, 21], -1); const Am = Scale.fromIntervals([2,1,2,2,1,2,2], ...
1,989
https://github.com/PurpEth/solved-hacking-problem/blob/master/SCTF/2017 Quals/letter_to_me/src/conn.php
Github Open Source
Open Source
Unlicense
2,021
solved-hacking-problem
PurpEth
PHP
Code
17
59
<?php $servername = "mysql"; $username = "dbUser"; $password = "dbPassword"; $db_name = "ltom"; $profanity_word_replace = "*"; ?>
25,865
https://github.com/cdli-gh/mtaac_cdli_ur3_corpus/blob/master/ur3_corpus_data/conll/P291660.conll
Github Open Source
Open Source
CC0-1.0, LicenseRef-scancode-public-domain
2,022
mtaac_cdli_ur3_corpus
cdli-gh
null
Spoken
79
440
#new_text=P291660 # ID FORM SEGM XPOSTAG HEAD DEPREL MISC o.1.1 1(asz) o.1.2 sze-ba o.1.3 gur o.2.1 ugula o.2.2 {d}szara2-za-me o.3.1 2(barig) o.3.2 2(ban2) o.3.3 ugula o.3.4 ur-{d}szul-pa-e3 o.4.1 1(asz) o.4.2 2(barig) o.4.3 5(ban2) o.4.4 gur o.5.1 ugula o.5.2 ur-{d}suen o.6.1 1(asz) o.6.2 4(ban2) o.6.3 gur r.1.1 ugul...
42,359
https://github.com/wirelab/wired/blob/master/templates/stylesheets/base/_variables.css.sass
Github Open Source
Open Source
MIT
2,015
wired
wirelab
Sass
Code
39
175
$basecolor: #000 $altbasecolor: #222 $textcolor: #444 $alttextcolor: #666 $white: #fff $black: #000 $gray: #909090 $errorcolor: #ff0000 $h1-font-size: 48px $h2-font-size: 30px $h3-font-size: 20px $h4-font-size: 16px $h5-font-size: 14px $h6-font-size: 12px $base-font-size: 16px $basefont: sans-serif, arial, verdana $a...
49,886
https://github.com/olax/mydataspace.github.io/blob/master/css/admin-panel.scss
Github Open Source
Open Source
Apache-2.0
2,018
mydataspace.github.io
olax
SCSS
Code
23
56
--- # Only the main Sass file needs front matter (the dashes are enough) --- @import 'vars'; @import "../skins/flat/webix.scss"; @import "admin"; @import "view";
32,369
https://github.com/ita-social-projects/EPlas/blob/master/EPlast/EPlast.BLL/Interfaces/Auth/IAuthEmailService.cs
Github Open Source
Open Source
MIT
2,022
EPlas
ita-social-projects
C#
Code
141
455
using EPlast.BLL.DTO.Account; using Microsoft.AspNetCore.Identity; using System.Threading.Tasks; namespace EPlast.BLL.Interfaces { public interface IAuthEmailService { /// <summary> /// Confirming Email after registration /// </summary> /// <param name="userId"></param> ...
51,876
https://github.com/BenjaminSchwessinger/NanoSnake/blob/master/NanoSnake/wrappers/minimap2_index/wrapper.py
Github Open Source
Open Source
MIT
null
NanoSnake
BenjaminSchwessinger
Python
Code
50
166
__author__ = "Adrien Leger" __copyright__ = "Copyright 2019, Adrien Leger" __email__ = "aleg@ebi.ac.uk" __license__ = "MIT" __version__ = "0.0.1" # Imports from snakemake.shell import shell # Shortcuts opt = snakemake.params.get("opt", "") ref = snakemake.input.ref index = snakemake.output.index # Run shell command ...
22,131
https://github.com/CourtHive/tods-competition-factory/blob/master/src/tournamentEngine/governors/eventGovernor/attachFlightProfile.ts
Github Open Source
Open Source
MIT
2,023
tods-competition-factory
CourtHive
TypeScript
Code
134
405
import { addEventExtension } from '../tournamentGovernor/addRemoveExtensions'; import { decorateResult } from '../../../global/functions/decorateResult'; import { getFlightProfile } from '../../getters/getFlightProfile'; import { makeDeepCopy } from '../../../utilities'; import { FLIGHT_PROFILE } from '../../../consta...
47,905
https://github.com/msrLi/portingSources/blob/master/ACE/ACE_wrappers/TAO/tao/Storable_FlatFileStream.cpp
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-proprietary-license, LicenseRef-scancode-sun-iiop
2,019
portingSources
msrLi
C++
Code
1,985
7,249
// -*- C++ -*- //============================================================================= /** * @file Storable_FlatFileStream.cpp * * @author Marina Spivak <marina@cs.wustl.edu> * @author Byron Harris <harrisb@ociweb.com> */ //============================================================================= #...
15,245
https://github.com/JackEasons/prebid-mobile-android/blob/master/PrebidMobile/PrebidMobile-rendering/src/main/java/org/prebid/mobile/rendering/bidding/interfaces/StandaloneInterstitialEventHandler.java
Github Open Source
Open Source
Apache-2.0
null
prebid-mobile-android
JackEasons
Java
Code
153
407
/* * Copyright 2018-2021 Prebid.org, Inc. * * 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 ...
2,309
https://github.com/Sushisource/sdk-java/blob/master/temporal-sdk/src/test/java/io/temporal/RegisterTestNamespace.java
Github Open Source
Open Source
Apache-2.0
null
sdk-java
Sushisource
Java
Code
233
703
/* * Copyright (C) 2020 Temporal Technologies, Inc. All Rights Reserved. * * Copyright 2012-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Modifications copyright (C) 2017 Uber Technologies, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not * use this f...
25,772
https://github.com/coddo/gost/blob/master/config/environment_config.go
Github Open Source
Open Source
MIT
2,017
gost
coddo
Go
Code
98
206
package config import ( "log" ) const ( // Development environment Development = "dev" // Release environment Release = "release" ) var envState = Development // SetEnvironmentMode sets the type of environment the app is running in func SetEnvironmentMode(state string) { envState = state if IsInDevMode() {...
40,615
https://github.com/ajkyffin/datagateway/blob/master/packages/datagateway-dataview/src/views/card/isis/isisFacilityCyclesCardView.component.tsx
Github Open Source
Open Source
Apache-2.0
null
datagateway
ajkyffin
TypeScript
Code
404
1,538
import React from 'react'; import { CardView, Entity, fetchFacilityCycleCount, fetchFacilityCycles, tableLink, FacilityCycle, TextColumnFilter, TextFilter, DateColumnFilter, Filter, DateFilter, pushPageFilter, pushPageNum, pushQuery, } from 'datagateway-common'; import { IndexRange } from 'r...
36,997
https://github.com/xinlinrong/JAVA_IJPDS/blob/master/IJPDS_CHapter2/src/MyPratise220.java
Github Open Source
Open Source
BSD-3-Clause
2,020
JAVA_IJPDS
xinlinrong
Java
Code
56
166
import java.util.Scanner; public class MyPratise220 implements IPratise { /** * 金融应用: 计算利息 */ public void run() { Scanner in = new Scanner(System.in); System.out.print("Enter balance and interest rate (e.g., 3 for 3%)"); double balance = in.nextDouble(); double annualInterestR...
34,314
https://github.com/YC-S/LeetCode/blob/master/src/all_problems/P996_NumberOfSquarefulArrays.java
Github Open Source
Open Source
MIT
2,020
LeetCode
YC-S
Java
Code
149
390
package all_problems; import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class P996_NumberOfSquarefulArrays { private int count = 0; private boolean isSquare(int a, int b) { double sqr = Math.sqrt(a + b); boolean res = (sqr - Math.floor(sqr)) == 0; retu...
11,734
https://github.com/Phylodome/bs-material-ui-icons/blob/master/src/icons/Subscriptions.re
Github Open Source
Open Source
MIT
2,019
bs-material-ui-icons
Phylodome
null
Spoken
62
228
open Icon; module Filled = Make({ [@bs.module "@material-ui/icons/Subscriptions"] external reactClass: ReasonReact.reactClass = "default"; }); module Outlined = Make({ [@bs.module "@material-ui/icons/SubscriptionsOutlined"] external reactClass: ReasonReact.reactClass = "default"; }); module Rounded = Make({ ...
34,786
https://github.com/joicerodrigues/Fatec-DSM-Projeto_Integrador/blob/master/DoctorOn_App/src/app/units/details-units/details-units.page.ts
Github Open Source
Open Source
MIT
2,021
Fatec-DSM-Projeto_Integrador
joicerodrigues
TypeScript
Code
224
931
import { HttpClient } from '@angular/common/http'; import { ActivatedRoute } from '@angular/router'; import { Component, ElementRef, OnInit, ViewChild } from '@angular/core'; import { AuthService } from 'src/app/services/auth.service'; import { Geolocation } from '@ionic-native/geolocation/ngx'; @Component({ selecto...
14,590
https://github.com/cojamru/cojam.ru/blob/master/.pugrc.gen.js
Github Open Source
Open Source
MIT
2,023
cojam.ru
cojamru
JavaScript
Code
61
270
const project = require('./package.json') const { parseYAMLfile, writeJsonFile } = require('./utils') const config = parseYAMLfile('project-config') const vendors = parseYAMLfile('project-vendors') const dirs = config.dirs const pugConfig = { locals: { VERSION: project.version, title: config.title, ...
22,733
https://github.com/devetry/Rocket.Chat.Android/blob/master/rocket-chat-core/src/test/java/chat/rocket/core/interactors/PermissionInteractorTest.kt
Github Open Source
Open Source
MIT
2,019
Rocket.Chat.Android
devetry
Kotlin
Code
296
1,875
package chat.rocket.core.interactors import chat.rocket.core.models.* import chat.rocket.core.repositories.PermissionRepository import chat.rocket.core.repositories.RoomRoleRepository import chat.rocket.core.repositories.UserRepository import com.hadisatrio.optional.Optional import io.reactivex.Flowable import io.reac...
28,777
https://github.com/staaldraad/upterm/blob/master/ws/client.go
Github Open Source
Open Source
Apache-2.0
null
upterm
staaldraad
Go
Code
228
668
package ws import ( "encoding/base64" "net" "net/http" "net/url" "github.com/gorilla/websocket" "github.com/jingweno/upterm/upterm" chshare "github.com/jpillora/chisel/share" "golang.org/x/crypto/ssh" ) // NewSSHClient creates a ssh client via ws. // The url must include username as session id and password a...
20,083
https://github.com/juho-karppinen-gofore/tapahtuma-apuri/blob/master/backend/src/server/services/cms.js
Github Open Source
Open Source
MIT
null
tapahtuma-apuri
juho-karppinen-gofore
JavaScript
Code
416
1,470
const bcrypt = require('bcrypt'); const _ = require('lodash'); const login = require('../db/login.js'); const question = require('../db/question.js'); const memo = require('../db/memo.js'); const info = require('../db/infos.js'); const { Client } = require('pg'); const client = new Client(); client.connect(); const ...
43,843
https://github.com/mejbahshameem/open-source-knowledge-and-project-management/blob/master/Backend/src/middleware/escape-html.js
Github Open Source
Open Source
MIT
2,020
open-source-knowledge-and-project-management
mejbahshameem
JavaScript
Code
65
218
const escape = require('escape-html'); const escapehtml = async (req, res, next) => { try { for (let key in req.body) { if ( req.body.hasOwnProperty(key) && typeof req.body[key] === 'string' ) { req.body[key] = escape(req.body[key]); } } if (req.query) { for (let key in req.query) { ...
46,974
https://github.com/vibhatha/twister2/blob/master/twister2/tset/src/java/edu/iu/dsc/tws/tset/fn/HashingPartitioner.java
Github Open Source
Open Source
Apache-2.0
null
twister2
vibhatha
Java
Code
196
510
// 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 // distribute...
5,273
https://github.com/kaan-keskin/kubernetes-cluster-vagrant-script/blob/master/shared/scripts/controller-node/pod-network-calico.sh
Github Open Source
Open Source
MIT
2,022
kubernetes-cluster-vagrant-script
kaan-keskin
Shell
Code
78
310
#!/bin/bash # ----------------- # # Installing the Pod network add-on # # Install Calico networking and network policy for on-premises deployments # Source: https://docs.projectcalico.org/getting-started/kubernetes/self-managed-onprem/onpremises sudo -u vagrant curl https://docs.projectcalico.org/manifests/calico.yam...
5,812
https://github.com/roma-apps/roma-desktop/blob/master/src/renderer/components/TimelineSpace/Contents/SideBar/AccountProfile/Timeline.vue
Github Open Source
Open Source
MIT
2,021
roma-desktop
roma-apps
Vue
Code
125
512
<template> <div class="tabs" id="sidebar_tabs"> <el-tabs v-model="activeName" @tab-click="handleClick" stretch> <el-tab-pane label="Posts" name="posts"><Posts :account="account" :buffer="buffer" /></el-tab-pane> <el-tab-pane label="Posts and replies" name="posts_and_replies"><PostsAndReplies :account=...
26,990
https://github.com/CharliePoole/nunitv2/blob/master/src/NUnitFramework/framework/Constraints/Operators/CollectionOperator.cs
Github Open Source
Open Source
zlib-acknowledgement, LicenseRef-scancode-unknown-license-reference
2,021
nunitv2
CharliePoole
C#
Code
108
222
// **************************************************************** // Copyright 2002-2018, Charlie Poole // This is free software licensed under the NUnit license, a copy // of which should be included with this software. If not, you may // obtain a copy at https://github.com/nunit-legacy/nunitv2. // ****************...
41,826
https://github.com/codehaus/adarwin/blob/master/picounit/trunk/src/java/picounit/impl/Scope.java
Github Open Source
Open Source
BSD-3-Clause
2,005
adarwin
codehaus
Java
Code
22
68
package picounit.impl; public interface Scope { boolean matches(String typeNameFilter); boolean matches(Class filter); Object value(); Class getType(); void setFailure(Throwable reason); Throwable getFailure(); }
48,628
https://github.com/jomskiee/point-of-sale/blob/master/resources/views/home.blade.php
Github Open Source
Open Source
MIT
null
point-of-sale
jomskiee
PHP
Code
539
2,398
@extends('layouts.app') @section('content') <main> <div class="container-fluid"> <h1 class="mt-4">Dashboard</h1> <ol class="breadcrumb mb-4"> <li class="breadcrumb-item active">Dashboard</li> </ol> {{-- admin user --}} @can('manage...
6,170
https://github.com/AeonLucid/WUProtos/blob/master/src/WUProtos/Data/MasterNote.proto
Github Open Source
Open Source
LicenseRef-scancode-proprietary-license, MIT
2,019
WUProtos
AeonLucid
null
Spoken
26
106
syntax = "proto3"; package WUProtos.Data; import "WUProtos/Enums/MasterNoteGesture.proto"; import "WUProtos/Data/MasterNoteEffect.proto"; message MasterNote { string id = 1; repeated .WUProtos.Enums.MasterNoteGesture gestures = 2; .WUProtos.Data.MasterNoteEffect effect = 3; }
29,087
https://github.com/greenpeace/global-p3_styleguide/blob/master/src/less/base/_buttons.less
Github Open Source
Open Source
MIT
2,014
global-p3_styleguide
greenpeace
Less
Code
470
1,681
/* Buttons Styleguide 4. */ /* Generic button. We support `<input[submit]>`, `<input.button>`, `<button>` and `<a.button>` Compatible in IE6+, Firefox 2+, Safari 4+, Chrome 1+, Opera 11+ Markup: <input type="submit" class="{$modifiers}" value="input[submit]" /> <input class="button {$modifiers}" value="input.butt...
47,898
https://github.com/kauandotnet/microservices-demo/blob/master/services/sensor/handler/common.go
Github Open Source
Open Source
0BSD
2,021
microservices-demo
kauandotnet
Go
Code
82
292
package handler import ( "encoding/json" "net/http" "github.com/go-kit/kit/log" "github.com/go-kit/kit/log/level" ) // HealthHandler is the http handler for health requests func HealthHandler(w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-Type", "application/json; charset=utf-8") w.WriteHead...
37,059
https://github.com/derolf/sdk/blob/master/pkg/front_end/lib/src/fasta/builder/builder.dart
Github Open Source
Open Source
BSD-3-Clause
2,019
sdk
derolf
Dart
Code
163
571
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. library fasta.builder; export '../identifiers.dart' show Identifier, InitializedId...
16,962
https://github.com/MoonCheung/flutter-last.fm/blob/master/lib/features/album/application/application.dart
Github Open Source
Open Source
MIT
2,022
flutter-last.fm
MoonCheung
Dart
Code
4
33
export 'album_detail/album_detail_cubit.dart'; export 'albums/albums_cubit.dart';
17,698
https://github.com/17koa/koa-benchmark/blob/master/Makefile
Github Open Source
Open Source
MIT
2,021
koa-benchmark
17koa
Makefile
Code
167
719
all: clean test test: prepare koa-1 koa-2 koa-2-async express report: @cd logs @wrk_scan @echo 'merge logs complete' prepare: @cd koa2 && npm install @cd .. @cd other && npm install @cd .. @echo 'prepare complete' version: @node -v @npm -v @echo koa-1: @echo 'benchmark koa-1' @./run 1 other/koa1...
49,957
https://github.com/peiffer-innovations/grpc_googleapis/blob/master/lib/src/generated/google/actions/sdk/v2/interactionmodel/prompt/content/static_table_prompt.pbenum.dart
Github Open Source
Open Source
MIT
null
grpc_googleapis
peiffer-innovations
Dart
Code
119
582
/// // Generated code. Do not modify. // source: google/actions/sdk/v2/interactionmodel/prompt/content/static_table_prompt.proto // // @dart = 2.12 // ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid...
33,208
https://github.com/JBorrow/pageplot/blob/master/pageplot/extensionmodel.py
Github Open Source
Open Source
MIT
null
pageplot
JBorrow
Python
Code
374
839
""" Model for extensions that perform plotting and data production duties. """ from attr.setters import convert from pageplot.config import GlobalConfig from pageplot.io.spec import MetadataSpecification from typing import Optional, Dict, Any import attr import unyt import matplotlib.pyplot as plt @attr.s(auto_att...
23,375
https://github.com/sanger/event_warehouse_ukbb/blob/master/lib/resource_tools/timestamps.rb
Github Open Source
Open Source
MIT
null
event_warehouse_ukbb
sanger
Ruby
Code
35
126
module ResourceTools::Timestamps extend ActiveSupport::Concern included do delegate :correct_current_time, :to => 'self.class' delegate :checked_time_now, :to => 'self.class' end module ClassMethods def correct_current_time self.default_timezone == :utc ? Time.now.utc : Time.now end ...
41,907
https://github.com/WordZzzz/tianchi_location/blob/master/dropout/multi_train_and_predict/21.sql
Github Open Source
Open Source
MIT
2,018
tianchi_location
WordZzzz
SQL
Code
720
4,741
PAI -name ps_smart -DinputTablePartitions="mall_id=m_800" -DclassNum=54 -DinputTableName=user_shop_behavior_kv -DmodelName=dropout_multi_model_m_800 -DlabelColName=label -DfeatureColNames=kv -DenableSparse=true -Dobjective=multi:softprob -DtreeCount=109 -DsampleRatio=0.6 -Df...
53,591
https://github.com/fanstatic/js.howler/blob/master/js/howler/__init__.py
Github Open Source
Open Source
BSD-3-Clause
null
js.howler
fanstatic
Python
Code
52
178
from fanstatic import Library, Resource library = Library('howler', 'resources') # howler.js is the combined howler.core.js and howler.spatial.js. # If you don't need stereo or 3D positional sound, then core is all you need. howler = Resource( library, 'howler.js', minified='howler.min.js') howler_core = Res...
46,830
https://github.com/qshuai/go-dsa/blob/master/leetcode/189_rotate_array.go
Github Open Source
Open Source
MIT
2,022
go-dsa
qshuai
Go
Code
88
302
package leetcode // https://leetcode.com/problems/rotate-array/ // rotate Given an array, rotate the array to the right by k steps, where k is non-negative. func rotate(nums []int, k int) { k = k % len(nums) // 翻转整个数组 for i := 0; i < len(nums)/2; i++ { nums[i], nums[len(nums)-i-1] = nums[len(nums)-i-1], nums[i] ...
44,375
https://github.com/Princeton-LSI-ResearchComputing/sprite-pipeline/blob/master/scripts/HiCorrector_1.2/src/my_getopt-1.5/Makefile
Github Open Source
Open Source
MIT
2,022
sprite-pipeline
Princeton-LSI-ResearchComputing
Makefile
Code
63
164
all: copy # Compiler options #CCOPTS = -g -O3 -Wall -Werror CCOPTS = # Compiler CC = gcc -Wall -Werror #CC = cc # Linker LD = $(CC) # Utility to remove a file RM = rm OBJS = main.o my_getopt.o copy: $(OBJS) $(LD) -o $@ $(OBJS) clean: $(RM) -f copy $(OBJS) *~ %.o: %.c getopt.h my_getopt.h $(CC) $(CCOPTS) -o $...
20,647
https://github.com/jonathantorres/construct/blob/master/src/Constructors/PhpCs.php
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference, GPL-3.0-only, GPL-2.0-only, Apache-2.0
2,023
construct
jonathantorres
PHP
Code
57
219
<?php declare(strict_types = 1); namespace Construct\Constructors; class PhpCs extends Constructor implements ConstructorContract { /** * Generate PHP CS Fixer configuration file and add package * to the development requirements. * * @return void */ public function run() { ...
24,962
https://github.com/expo/expo/blob/master/ios/versioned/sdk49/EXUpdates/EXUpdates/AppLauncher/AppLauncher.swift
Github Open Source
Open Source
MIT, BSD-3-Clause, Apache-2.0
2,023
expo
expo
Swift
Code
96
187
// Copyright © 2019 650 Industries. All rights reserved. import Foundation public typealias AppLauncherCompletionBlock = (_ error: Error?, _ success: Bool) -> Void /** * Protocol through which an update can be launched from disk. Classes that implement this protocol * are responsible for selecting an eligible upd...
29,098
https://github.com/Molinas26/DPI/blob/master/app/Http/Controllers/CrimenController.php
Github Open Source
Open Source
MIT
null
DPI
Molinas26
PHP
Code
679
2,128
<?php namespace App\Http\Controllers; use App\crimen; use App\crimendesactivados; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; class CrimenController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ //index para crim...
54,568
https://github.com/stevenpetryk/react-figma/blob/master/src/rpc.ts
Github Open Source
Open Source
MIT
null
react-figma
stevenpetryk
TypeScript
Code
907
2,821
import { createPluginAPI, createUIAPI } from 'figma-jsonrpc'; import { isReactFigmaNode } from './helpers/isReactFigmaNode'; import * as renderers from './renderers'; import { nanoid } from 'nanoid/non-secure'; import { Subject } from 'rxjs'; import { safeGetPluginData } from './helpers/safeGetPluginData'; import { Lay...
43,424
https://github.com/TCLProject/RPGStamina/blob/master/src/main/java/net/tclproject/rpgstamina/handler/ExtendedPlayer.java
Github Open Source
Open Source
MIT
null
RPGStamina
TCLProject
Java
Code
468
1,365
package net.tclproject.rpgstamina.handler; import cpw.mods.fml.common.FMLCommonHandler; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayerMP; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.world.World; import net.minecraft...
4,805
https://github.com/clayliddell/OpenDKIM-Rotate-Keys/blob/master/odkim_rotate/key_table.py
Github Open Source
Open Source
MIT
2,018
OpenDKIM-Rotate-Keys
clayliddell
Python
Code
303
980
import os from collections import OrderedDict class KeyTable: """Allows parsing, editing, and saving OpenDKIM KeyTable files. See "KeyTable (dataset)" entry at http://www.opendkim.org/opendkim.conf.5.html """ # Entries from the KeyTable file. Dictionary keyed by domain short name. # Values a...
48,221
https://github.com/ftsuda-senac/tads4-dswb-2017-2/blob/master/tadsstore-web/src/main/java/br/senac/tads4/dswb/tadsstore/web/filter/FlashScopeFilter.java
Github Open Source
Open Source
MIT
null
tads4-dswb-2017-2
ftsuda-senac
Java
Code
409
1,023
/* * The MIT License * * Copyright 2017 fernando.tsuda. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, ...
43,411
https://github.com/wosxieez/factory-new/blob/master/src/redux/AppRedux.jsx
Github Open Source
Open Source
Apache-2.0
null
factory-new
wosxieez
null
Spoken
106
319
import React, { useReducer } from 'react' const initialState = { version: 'Beta 0.98', currentcode: '', // 推送id approvecount: 0,//申请单计数 purchasecount: 0,//采购单计数 returncount: 0,//退料单计数 outboundcount: 0,///自行出库单计数 } function reducer(state, action) { switch (action.type) { case 'curren...
30,278
https://github.com/flight7788/3d-printing-with-moveo-1/blob/master/Cura/Cura/cura/Settings/MachineManager.py
Github Open Source
Open Source
LGPL-3.0-only, GPL-3.0-only
2,020
3d-printing-with-moveo-1
flight7788
Python
Code
6,287
21,526
# Copyright (c) 2019 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. import time import re import unicodedata from typing import Any, List, Dict, TYPE_CHECKING, Optional, cast from PyQt5.QtCore import QObject, pyqtProperty, pyqtSignal, QTimer from UM.ConfigurationErrorMessage import Config...
18,183
https://github.com/stjanilofts/ofncms/blob/master/app/ProductOptions.php
Github Open Source
Open Source
MIT
null
ofncms
stjanilofts
PHP
Code
82
258
<?php namespace App; use Illuminate\Database\Eloquent\Model; use App\Formable; class ProductOptions { protected $product; protected $options = []; public function __construct($options = array(), Product $product) { $this->options = $options; $this->product = $product; } pub...
17,344
https://github.com/masterbid/subgraphs/blob/master/subgraphs/uniswap-v2/src/common/helpers.ts
Github Open Source
Open Source
MIT
null
subgraphs
masterbid
TypeScript
Code
1,552
5,677
// import { log } from "@graphprotocol/graph-ts" import { BigInt, BigDecimal, Address, store, ethereum } from "@graphprotocol/graph-ts" import { _Account, _DailyActiveAccount, _HelperStore, _TokenTracker, _LiquidityPoolAmounts, Token, DexAmmProtocol, LiquidityPool, LiquidityPoolFee, Deposit, Withd...
54,142
https://github.com/ZaTribune/picture-publishing-service/blob/master/src/main/java/zatribune/spring/pps/services/PicServiceImpl.java
Github Open Source
Open Source
MIT
null
picture-publishing-service
ZaTribune
Java
Code
108
471
package zatribune.spring.pps.services; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import zatribune.spring.pps.data.entities.Pic; import zatribune.spring.pps.data.entities.PicCategory; import zatribune.spring.pps.data.entities.PicStatus; import zatribun...
30,767
https://github.com/JasonCoombs/crypto3-algebra/blob/master/include/nil/crypto3/algebra/pairing/edwards/183/tate_precompute_g2.hpp
Github Open Source
Open Source
MIT
2,022
crypto3-algebra
JasonCoombs
C++
Code
306
832
//---------------------------------------------------------------------------// // Copyright (c) 2020-2021 Mikhail Komarov <nemo@nil.foundation> // Copyright (c) 2020-2021 Nikita Kaskov <nbering@nil.foundation> // // MIT License // // Permission is hereby granted, free of charge, to any person obtaining a copy // of th...
44,282
https://github.com/cooperyuan/attila/blob/master/src/trace/D3DDriver/D3DControllers/ShaderTranslator/ShaderGenerate.h
Github Open Source
Open Source
BSD-3-Clause
2,013
attila
cooperyuan
C++
Code
216
706
#ifndef SHADINGTYPES_H_INCLUDED #define SHADINGTYPES_H_INCLUDED /// Utilities to generate shader instructions #include "ShaderInstruction.h" #include "Types.h" /// Represents a shader instruction operand struct Operand { GPURegisterId registerId; bool negate; bool absolute; bool addressing; gpu3d...
3,359
https://github.com/danilobjr/react-native-fuzzy-search-picker-modal/blob/master/src/PickerList.tsx
Github Open Source
Open Source
MIT
null
react-native-fuzzy-search-picker-modal
danilobjr
TypeScript
Code
300
941
import React, { useRef, memo, FC } from 'react' import { StyleSheet, View, FlatList, TouchableOpacity, PixelRatio, FlatListProps, Dimensions, } from 'react-native' import { useTheme } from './Theme' import { useContext } from './PickerContext' import { ItemText } from './ItemText' import { Item } from './...
30,701
https://github.com/tianwenju/AndroidModulePattern-master/blob/master/common/src/main/java/com/guiying/common/glide/OkHttpGlideModule.java
Github Open Source
Open Source
Apache-2.0
2,022
AndroidModulePattern-master
tianwenju
Java
Code
189
684
package com.guiying.common.glide; import android.content.Context; import com.bumptech.glide.Glide; import com.bumptech.glide.GlideBuilder; import com.bumptech.glide.load.DecodeFormat; import com.bumptech.glide.load.engine.bitmap_recycle.LruBitmapPool; import com.bumptech.glide.load.engine.cache.LruResourceCache; impo...
44,046
https://github.com/imcallister/accountifie/blob/master/accountifie/dashboard/models.py
Github Open Source
Open Source
MIT, Unlicense
2,021
accountifie
imcallister
Python
Code
71
304
""" Adapted with permission from ReportLab's DocEngine framework """ # as this is in a models.py, it will get loaded at django server start # it intends to fail """ import os, sys from django.conf import settings tcp = settings.TEMPLATE_CONTEXT_PROCESSORS if 'accountifie.common.views.base_templates' not in tcp: ...
54,737
https://github.com/anidz/softuni-cs-fundamentals/blob/master/MethodsMore Exercise/04.TribonacciSequence/Program.cs
Github Open Source
Open Source
MIT
null
softuni-cs-fundamentals
anidz
C#
Code
117
305
using System; namespace _04.TribonacciSequence { class Program { static void Main(string[] args) { int num = int.Parse(Console.ReadLine()); if (num <= 0) { Console.WriteLine(0); } else if (num == 1) { ...
4,344
https://github.com/Rohit484/Distribution/blob/master/o/office-js/src/main/scala/typings/officeJs/Word/Interfaces/DocumentCreatedLoadOptions.scala
Github Open Source
Open Source
MIT
2,020
Distribution
Rohit484
Scala
Code
293
927
package typings.officeJs.Word.Interfaces import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} /** * * The DocumentCreated object is the top level object created by Application.CreateDocument. A DocumentCreated object is...
55,213
https://github.com/LANDIS-II-Foundation/Library-Spatial/blob/master/src/RasterIO/IInputBand.cs
Github Open Source
Open Source
Apache-2.0
2,018
Library-Spatial
LANDIS-II-Foundation
C#
Code
48
105
// Contributors: // James Domingo, Green Code LLC namespace Landis.RasterIO { /// <summary> /// Input raster band /// </summary> public interface IInputBand { /// <summary> /// Read the value from the raster band into the corresponding band of /// the buffer pixel. ...
51,896
https://github.com/geekhuyang/shop-server/blob/master/shop-server-mgt/src/main/java/com/onlythinking/shop/mgt/core/trace/SimpleProcessTracingOpt.java
Github Open Source
Open Source
MIT
2,020
shop-server
geekhuyang
Java
Code
192
941
package com.onlythinking.shop.mgt.core.trace; import com.alibaba.fastjson.JSON; import com.google.common.base.Throwables; import com.onlythinking.shop.core.constant.AppSystem; import com.onlythinking.shop.core.utils.IPUtils; import com.onlythinking.shop.core.utils.IpAddress; import com.onlythinking.shop.mapper.OtSysOp...
44,805
https://github.com/DarrenTsung/turbo-octopus/blob/master/turbo-octopus-unity/Assets/Scripts/Controllers/UI/AmmoSpriteController.cs
Github Open Source
Open Source
Apache-2.0
2,019
turbo-octopus
DarrenTsung
C#
Code
50
194
using UnityEngine; using System.Collections; public class AmmoSpriteController : MonoBehaviour { public bool filled; private tk2dSprite sprite; // Use this for initialization void Start () { filled = true; sprite = GetComponent<tk2dSprite>(); sprite.SetSprite(GameUtils.UI_AMMO_FILLED_ID); } void Toggle(...
50,595
https://github.com/ysfgrgO7/lfetch/blob/master/lfetch.lua
Github Open Source
Open Source
MIT
2,022
lfetch
ysfgrgO7
Lua
Code
1,472
4,089
#!/usr/bin/env lua -- [[ colors ]] local RED = "\x1b[31m" local GREEN = "\x1b[32m" local YELLOW = "\x1b[33m" local BLUE = "\x1b[34m" local PURPLE = "\x1b[35m" local CYAN = "\x1b[36m" local WHITE = "\x1b[97m" local NOCOL = "\x1b[0m" -- [[ opencmd ]] local function opencmd(cmd) local command = io.popen(cmd, "r") local...
19,598
https://github.com/burningmantech/ranger-clubhouse-web/blob/master/app/components/dashboard-pnv.js
Github Open Source
Open Source
Apache-2.0
2,023
ranger-clubhouse-web
burningmantech
JavaScript
Code
666
1,928
import Component from '@glimmer/component'; import {service} from '@ember/service'; import {setting} from 'clubhouse/utils/setting'; import {htmlSafe} from '@ember/template'; import dayjs from 'dayjs'; import { ACTION_NEEDED, BLOCKED, COMPLETED, NOT_AVAILABLE, OPTIONAL, SKIP, URGENT, WAITING } from "clu...
18,836
https://github.com/SENA-CEET/1262154G1G2-Trimestre-3/blob/master/java/src/main/java/co/edu/sena/ejemplotostring/Producto.java
Github Open Source
Open Source
Apache-2.0
null
1262154G1G2-Trimestre-3
SENA-CEET
Java
Code
171
457
package co.edu.sena.ejemplotostring; /** * Created by Enrique on 8/06/2017. */ public class Producto { private String codigoSerial; private String nombreProducto; private float precio; private Item item; public String getCodigoSerial() { return codigoSerial; } public void setCod...
9,265
https://github.com/wiederm/protex/blob/master/protex/testsystems.py
Github Open Source
Open Source
MIT
2,022
protex
wiederm
Python
Code
728
3,039
import protex from simtk.openmm.openmm import System from simtk.openmm.app.simulation import Simulation def generate_im1h_oac_system() -> Simulation: """ Sets up a solvated and paraterized system for IM1H/OAC """ def load_charmm_files(): from simtk.openmm.app import CharmmCrdFile, CharmmParam...
20,464
https://github.com/pontageorge/hotel-app/blob/master/src/components/Homepage/Hotels/HotelCard/Hotel/Images/Images.js
Github Open Source
Open Source
MIT
null
hotel-app
pontageorge
JavaScript
Code
254
819
/** @jsxImportSource @emotion/react */ import { css } from "@emotion/react"; import styles from "./Images.module.css"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { Fragment, useState } from "react"; export default function Images({ images }) { const [imageIndex, setImageIndex] = useSt...
53,545
https://github.com/Aemande123/astikor-carts/blob/master/src/main/java/de/mennomax/astikorcarts/packets/CPacketOpenCartGui.java
Github Open Source
Open Source
MIT
null
astikor-carts
Aemande123
Java
Code
96
426
package de.mennomax.astikorcarts.packets; import de.mennomax.astikorcarts.AstikorCarts; import io.netty.buffer.ByteBuf; import net.minecraft.entity.player.EntityPlayerMP; import net.minecraftforge.fml.common.network.simpleimpl.IMessage; import net.minecraftforge.fml.common.network.simpleimpl.IMessageHandler; import ne...
20,793
https://github.com/li-jiafang/Spring-Framework/blob/master/spring_ljf/src/main/java/bean/Pear.java
Github Open Source
Open Source
Apache-2.0
2,021
Spring-Framework
li-jiafang
Java
Code
80
204
package bean; import org.springframework.stereotype.Component; /** * @Author ljf * @Date 2021/7/1 11:37 * @Description **/ @Component public class Pear { private Integer id; private String name; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getNa...
43,438
https://github.com/iefserge/eshttp/blob/master/lib/eshttp.js
Github Open Source
Open Source
MIT
2,021
eshttp
iefserge
JavaScript
Code
14
54
'use strict'; exports.HttpServer = require('./http-server'); exports.HttpResponse = require('./http-response'); exports.HttpRequest = require('./http-request'); exports.HttpClient = require('./http-client');
25,531
https://github.com/magefree/mage/blob/master/Mage.Server/release/config/log4j.properties
Github Open Source
Open Source
MIT
2,023
mage
magefree
null
Spoken
126
911
#SAMPLE SERVER CONFIG (you must enable it by command line) #default log level and active appenders (dest for logs) log4j.rootLogger=info, console, logfile #custom log level for java classes log4j.logger.com.j256.ormlite=warn #log4j.logger.mage.player.ai=warn #custom log file with diag info (only from special classes...
2,310
https://github.com/chuckyz/ansible-mastodon-docker/blob/master/templates/backup.sh.j2
Github Open Source
Open Source
BSD-3-Clause
2,018
ansible-mastodon-docker
chuckyz
Shell
Code
25
101
#!/bin/bash DATE=$(date +%F) mkdir -p /backups/$DATE tar cvzf mastodon.tar.gz {{ mastodon_path }} >> /backups/$DATE/mastodon-backup.log docker exec -it mastodon_db_1 pg_dumpall -c -Upostgres | gzip > /backups/$DATE/pg_dumpall.sql.gz
28,849
https://github.com/appier/aideal-android-sdk/blob/master/app/src/main/java/com/appier/aidealapp/ui/cart_form/WebActivity.kt
Github Open Source
Open Source
Apache-2.0
null
aideal-android-sdk
appier
Kotlin
Code
67
333
package com.appier.aidealapp.ui.cart_form import android.app.Activity import android.os.Bundle import com.appier.aidealapp.R import com.appier.aidealsdk.AiDeal import com.appier.aidealsdk.AiDeal.PageType.* import kotlinx.android.synthetic.main.activity_web.* import org.json.JSONObject class WebActivity : Activity() {...
17,769
https://github.com/karufa1103/JSW/blob/master/Samples/Sample06.js
Github Open Source
Open Source
MIT
2,019
JSW
karufa1103
JavaScript
Code
103
659
//ページ読み込み時に実行する処理を設定 addEventListener("DOMContentLoaded", Sample06) //ページ読み込み後に実行される内容 function Sample06() { //各ウインドウのインスタンスを作成 const frame = new JSW.FrameWindow() const splitter = new JSW.Splitter() const tree = new JSW.TreeView() const list = new JSW.ListView() //タイトル設定 frame.setTitle('分割ウインドウのサンプル') //frame...
44,595
https://github.com/tanishq-singh-2301/friendy/blob/master/server/services/render.js
Github Open Source
Open Source
MIT
null
friendy
tanishq-singh-2301
JavaScript
Code
119
491
const axios = require('axios'); exports.home = (req, res) => res.render('home'); // exports.login = (req, res) => res.render('login'); exports.insideGame = (req, res) => { var query = req.params.game_link; axios.get(`https://friend-meter.herokuapp.com/api/search-game/${query}`) .then(function (result...
22,448
https://github.com/emergentdotorg/sortpom/blob/master/sorter/src/main/java/sortpom/XmlOutputGenerator.java
Github Open Source
Open Source
BSD-3-Clause
null
sortpom
emergentdotorg
Java
Code
256
883
package sortpom; import org.jdom.Comment; import org.jdom.Document; import org.jdom.output.Format; import org.jdom.output.XMLOutputter; import sortpom.exception.FailureException; import sortpom.jdomcontent.NewlineText; import sortpom.parameter.LineSeparatorUtil; import sortpom.parameter.PluginParameters; import sortpo...
21,936
https://github.com/mjohnstone357/image-processing-experiments/blob/master/src/Detection.hs
Github Open Source
Open Source
BSD-3-Clause
null
image-processing-experiments
mjohnstone357
Haskell
Code
178
447
module Detection where import Data.Array import Lib(Frame(..)) import Movement(movementBetweenFrames) import Vector(XYVector(..), VectorArray(..), subtractVector, vectorMagnitude) import Parameters(smallBox, largeBox) data DetectionsArray = DetectionsArray (Array (Int, Int) Bool) -- Yields an array indicating wheth...
16,769