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/sarahvroff/Voting-dApp/blob/master/contracts/MainContract.sol
Github Open Source
Open Source
MIT
null
Voting-dApp
sarahvroff
Solidity
Code
44
119
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0; import './Election.sol'; contract MainContract { uint public electionId = 0; mapping (uint => address) public Elections; function createElection (string[] memory _nda, string[] memory _candidates) public { Election election = new Election(_nda, _cand...
19,871
https://github.com/delicioushwan/React-Weekly-Scheduler/blob/master/src/components/scheduler/components/daycolumn/index.jsx
Github Open Source
Open Source
MIT
2,018
React-Weekly-Scheduler
delicioushwan
JavaScript
Code
130
517
import React from 'react'; import PropTypes from 'prop-types'; import { range } from 'react-range-proptypes'; import './daycolumn.css'; import TimeColumn from '../timecolumn'; class DayColumn extends React.Component { constructor(props) { super(props); this.data = this.props.data; } fille...
9,960
https://github.com/MihaiBogdanEugen/kafka-scripts/blob/master/kubernetes/2_kafka/kafka-delete.sh
Github Open Source
Open Source
MIT
2,017
kafka-scripts
MihaiBogdanEugen
Shell
Code
35
117
#!/usr/bin/env bash if [[ $# -eq 0 ]] ; then echo 'Must pass kubeconfig file as 1st arg' exit 0 fi CONFIG_FILE=$1 kubectl --kubeconfig $CONFIG_FILE \ --namespace=kafka \ delete pods,services,configmaps,poddisruptionbudgets,deployments,statefulsets \ -l category=kafka \ --include-uninitialized
12,870
https://github.com/hyperledger-labs/eThaler/blob/master/src/CLI/src/main/java/com/swapshub/ethaler/client/ContractAccountUtil.java
Github Open Source
Open Source
Apache-2.0
2,022
eThaler
hyperledger-labs
Java
Code
2,569
7,688
/** Copyright 2020 Swapshub 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 */ package com.swapshub.ethaler.client; import com.swapshub.ethaler.w3generate...
21,780
https://github.com/ZenobioJr/android/blob/master/app/src/main/java/move/pdsi/facom/ufu/br/activity/relatoriosFragment.java
Github Open Source
Open Source
MIT
2,019
android
ZenobioJr
Java
Code
276
1,416
package move.pdsi.facom.ufu.br.activity; import android.content.Intent; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.Button; import android.widget...
19,221
https://github.com/parasol-ppl/PPL/blob/master/src/Behaviors/Agents/Agent.cpp
Github Open Source
Open Source
BSD-3-Clause
null
PPL
parasol-ppl
C++
Code
812
2,423
#include "Agent.h" #include "Behaviors/Controllers/ControllerMethod.h" #include "Behaviors/Agents/StepFunctions/StepFunction.h" #include "ConfigurationSpace/Cfg.h" #include "MPProblem/Environment/Environment.h" #include "MPProblem/Constraints/CSpaceConstraint.h" #include "MPProblem/MPProblem.h" #include "MPProblem/MPT...
27,980
https://github.com/hylaz/nginx/blob/master/plugins/haproxy/src/h2.c
Github Open Source
Open Source
BSD-2-Clause
2,016
nginx
hylaz
C
Code
4,769
12,653
/* * HTTP/2 protocol processing * * Copyright 2017 Willy Tarreau <w@1wt.eu> * Copyright (C) 2017 HAProxy Technologies * * 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 restric...
41,583
https://github.com/t-Asai/auth0-vue-samples/blob/master/01-Login/exec.sh
Github Open Source
Open Source
MIT
2,018
auth0-vue-samples
t-Asai
Shell
Code
13
44
#!/usr/bin/env bash docker build -t auth0-vue-01-login . docker run -p 3000:3000 -it auth0-vue-01-login
39,356
https://github.com/mattdentremont/design-project/blob/master/libGDX/core/src/com/game/Entities/Player.java
Github Open Source
Open Source
MIT
null
design-project
mattdentremont
Java
Code
611
2,146
package com.game.Entities; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.audio.Sound; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.Sprite; import com.badlogic.gdx.graphics.g2d.TextureRegion; import com.badlogic.gdx.math.Rectangle; import com.game.Behaviors.Animation; import com...
8,239
https://github.com/joaoantoniocardoso/python-control/blob/master/control/tests/bdalg_test.py
Github Open Source
Open Source
BSD-3-Clause
null
python-control
joaoantoniocardoso
Python
Code
836
4,171
#!/usr/bin/env python # # bdalg_test.py - test suit for block diagram algebra # RMM, 30 Mar 2011 (based on TestBDAlg from v0.4a) import unittest import numpy as np from numpy import sort import control as ctrl from control.xferfcn import TransferFunction from control.statesp import StateSpace from control.bdalg import...
37,221
https://github.com/atul-vyshnav/2021_IBM_Code_Challenge_StockIT/blob/master/src/StockIT-v1-release_source_from_JADX/sources/com/google/android/exoplayer2/upstream/cache/CacheDataSource.java
Github Open Source
Open Source
Apache-2.0
2,021
2021_IBM_Code_Challenge_StockIT
atul-vyshnav
Java
Code
1,732
5,981
package com.google.android.exoplayer2.upstream.cache; import android.net.Uri; import com.google.android.exoplayer2.upstream.DataSink; import com.google.android.exoplayer2.upstream.DataSource; import com.google.android.exoplayer2.upstream.DataSourceException; import com.google.android.exoplayer2.upstream.DataSpec; impo...
19,300
https://github.com/chuckshaw/flight_path/blob/master/Gemfile
Github Open Source
Open Source
MIT
2,015
flight_path
chuckshaw
Ruby
Code
14
46
source 'https://rubygems.org' # Specify your gem's dependencies in flight_path.gemspec gem 'rubyXL' gem 'geocoder' gemspec
683
https://github.com/MVujakovic/BookingAppp/blob/master/BookingApp/BookingApp/Models/Room.cs
Github Open Source
Open Source
MIT
null
BookingAppp
MVujakovic
C#
Code
76
191
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Web; namespace BookingApp.Models { public class Room { public int Id { get; set; } public int RoomNumber { get; set; } public int BedCount { get; set; } ...
23,221
https://github.com/thepolicylab/testing-locations-map/blob/master/lambda/action_network_sample_data.py
Github Open Source
Open Source
MIT
2,019
testing-locations-map
thepolicylab
Python
Code
317
2,464
#yapf:disable def make_test_email(): return { 'address': 'LP10011@gmail.com', 'primary': True, 'status': 'subscribed' } def make_test_location(): return { 'address_lines': ['2753 Broadway'], 'country': 'US', 'locality': 'New York', 'location': { ...
716
https://github.com/CodeAndJesus/template_tail/blob/master/resources/js/component.js
Github Open Source
Open Source
MIT
null
template_tail
CodeAndJesus
JavaScript
Code
18
106
import './components/art-box-info'; import './components/forms/art-input-checkbox'; import './components/art-feedback'; import './components/icons/art-icon'; import './components/art-info-box'; import './components/forms/art-button'; import './components/users/art-user-control'; import './components/users/art-login-mod...
25,754
https://github.com/gabay619/cskh/blob/master/app/models/User.php
Github Open Source
Open Source
MIT
null
cskh
gabay619
PHP
Code
141
462
<?php use Illuminate\Auth\UserTrait; use Illuminate\Auth\UserInterface; use Illuminate\Auth\Reminders\RemindableTrait; use Illuminate\Auth\Reminders\RemindableInterface; class User extends Eloquent implements UserInterface, RemindableInterface { use UserTrait, RemindableTrait; /** * The database table ...
22,792
https://github.com/StrategicDevelopment/iewebgl/blob/master/WebSite2.0/Scripts/webglhelper.js
Github Open Source
Open Source
MIT
2,014
iewebgl
StrategicDevelopment
JavaScript
Code
453
1,605
/********************************************************** IEWebGL support routines You can copy, use, modify, distribute this file. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABI...
8,736
https://github.com/StormCommerce/Storm.Sample.Storefront/blob/master/integration.storm/Managers/StormProductManager.cs
Github Open Source
Open Source
MIT
2,020
Storm.Sample.Storefront
StormCommerce
C#
Code
651
2,307
using Integration.Storm.Model.Product; using Microsoft.Extensions.Configuration; using Model.Commerce.Customer; using Model.Commerce.Dto.Product; using Model.Commerce.Extensions; using Model.Commerce.Managers; using Model.Commerce.Product; using Model.Commerce.Product.InputModel; using System; using System.Collections...
97
https://github.com/datazuul/com.datazuul.apps--datazuul-worldmap/blob/master/src/main/java/com/datazuul/apps/worldmap/MapView.java
Github Open Source
Open Source
Apache-2.0
null
com.datazuul.apps--datazuul-worldmap
datazuul
Java
Code
699
3,864
/* * MapView.java */ package com.datazuul.apps.worldmap; import java.awt.Color; import java.awt.Graphics2D; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.HashSet; import java.util.Set; import javax.swing.Icon; import javax.swing.JDialog; import javax.swing.JFrame; import...
34,128
https://github.com/jmblixt3/Clash-Royale/blob/master/src/application/FXMLC.java
Github Open Source
Open Source
Apache-2.0
2,020
Clash-Royale
jmblixt3
Java
Code
242
943
package application; import java.io.IOException; import java.util.ArrayList; import adb.Commands; import imgProcessing.ScreenThread; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import javafx.fxml.FXML; import javafx.fxml.FXMLLoader; import javafx.scene.control.Button; import jav...
25,503
https://github.com/bwu-dart-playground/polymer_elements_parent/blob/master/test/paper_icon_button_basic_test.dart
Github Open Source
Open Source
BSD-3-Clause
2,019
polymer_elements_parent
bwu-dart-playground
Dart
Code
126
433
// Copyright (c) 2015, 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. @TestOn('browser') library polymer_elements.test.paper_icon_button_basic_test; import 'package:polymer_...
13,470
https://github.com/SebMenozzi/DiligentTools/blob/master/RenderStateNotation/scripts/cxx_generator.py
Github Open Source
Open Source
Apache-2.0
null
DiligentTools
SebMenozzi
Python
Code
287
562
# ---------------------------------------------------------------------------- # Copyright 2019-2022 Diligent Graphics LLC # # 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.a...
6,360
https://github.com/freinhold/sqs/blob/master/kantan_reader/jnlp/lib/pom/dependency.rb
Github Open Source
Open Source
Apache-2.0
2,012
sqs
freinhold
Ruby
Code
46
197
module Pom class Dependency attr_reader :group_id, :artifact_id, :version def initialize(hash) @group_id = hash[:group_id] || hash["group_id"] || hash[:groupId] || hash["groupId"] @artifact_id = hash[:artifact_id] || hash["artifact_id"] || hash[:artifactId] || hash["artifactId"] @versio...
37,981
https://github.com/LemonJust/psd95_segmentation/blob/master/synspy/synspy-master/synspy/analyze/pair.py
Github Open Source
Open Source
MIT
2,021
psd95_segmentation
LemonJust
Python
Code
2,881
9,466
# # Copyright 2017-2018 University of Southern California # Distributed under the (new) BSD License. See LICENSE.txt for more info. # import sys import math import numpy as np from scipy.spatial import cKDTree from .util import load_registered_csv, load_registered_npz, load_segment_status_from_csv, x_axis, y_axis, z_...
19,413
https://github.com/nitekat1124/advent-of-code-2019/blob/master/solutions/day05.py
Github Open Source
Open Source
WTFPL
null
advent-of-code-2019
nitekat1124
Python
Code
432
1,244
from utils.solution_base import SolutionBase class Solution(SolutionBase): def solve(self, part_num: int): self.test_runner(part_num) func = getattr(self, f"part{part_num}") result = func(self.data) return result def test_runner(self, part_num): test_inputs = self.get...
45,006
https://github.com/darmen/php-azure-face-api-client/blob/master/src/Client.php
Github Open Source
Open Source
MIT
2,021
php-azure-face-api-client
darmen
PHP
Code
218
686
<?php namespace Darmen\AzureFace; use Darmen\AzureFace\Http\Middleware; use Darmen\AzureFace\Resources\Face; use Darmen\AzureFace\Resources\FaceList; use Darmen\AzureFace\Resources\LargeFaceList; use GuzzleHttp\Client as HttpClient; use GuzzleHttp\HandlerStack; /** * @method LargeFaceList largeFaceList() * @method...
17,454
https://github.com/dram/metasfresh/blob/master/backend/de.metas.fresh/de.metas.fresh.base/src/main/sql/postgresql/system/75-de.metas.fresh.reports/5530150_sys_gh5503_AddNewFunctiongetBPAddress.sql
Github Open Source
Open Source
RSA-MD
2,022
metasfresh
dram
SQL
Code
95
337
-- Function: de_metas_endcustomer_fresh_reports.getBPAddress(numeric) DROP FUNCTION IF EXISTS de_metas_endcustomer_fresh_reports.getBPAddress( numeric ); CREATE OR REPLACE FUNCTION de_metas_endcustomer_fresh_reports.getBPAddress(IN bp_id numeric) RETURNS TABLE ( addressline1 character varying, addressline...
42,486
https://github.com/AndreFWeber/fastfeet/blob/master/mobile/fastfeet/src/components/PackList/Pack/styles.js
Github Open Source
Open Source
MIT
null
fastfeet
AndreFWeber
JavaScript
Code
222
720
import styled from 'styled-components/native'; import {BorderlessButton} from 'react-native-gesture-handler'; export const PackContainer = styled.View.attrs({ elevation: 1, shadowColor: '#000', shadowOffset: {width: 0, height: 1}, shadowOpacity: 0.8, shadowRadius: 2, })` background: #fff; m...
26,776
https://github.com/hubo1016/vlcp/blob/master/vlcp/event/stream.py
Github Open Source
Open Source
Apache-2.0
2,022
vlcp
hubo1016
Python
Code
1,490
3,946
''' Created on 2015/8/14 :author: hubo ''' from vlcp.event import Event, withIndices import os @withIndices('stream', 'type') class StreamDataEvent(Event): canignore = False STREAM_DATA = 'data' STREAM_EOF = 'eof' STREAM_ERROR = 'error' def canignorenow(self): return self.stream.closed c...
21,940
https://github.com/wstlabs/caixa/blob/master/caixa/argparse/__init__.py
Github Open Source
Open Source
Apache-2.0
null
caixa
wstlabs
Python
Code
11
26
from .core import ArgumentParser, Namespace from .argmap import ArgMap, ArgSpec, KwargSpec
17,654
https://github.com/jnupponen/sideshow-rest/blob/master/src/main/java/fi/antientropy/sideshow/rest/controller/Locations.java
Github Open Source
Open Source
MIT
null
sideshow-rest
jnupponen
Java
Code
210
991
package fi.antientropy.sideshow.rest.controller; import java.util.Date; import java.util.Optional; import org.apache.commons.codec.digest.DigestUtils; import org.joda.time.DateTime; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.ht...
6,432
https://github.com/AndrianiClaudio/laravel-mail-auth/blob/master/app/Project.php
Github Open Source
Open Source
MIT
null
laravel-mail-auth
AndrianiClaudio
PHP
Code
30
106
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Project extends Model { protected $fillable = [ 'name', 'url', 'screen', 'created_at', 'updated_at', // 'technologies', ]; public function technologies() { return $this->belongsToMa...
39,021
https://github.com/wangsllsgnaw/ty.com/blob/master/app/Models/Messages.php
Github Open Source
Open Source
BSD-Source-Code, IJG
2,018
ty.com
wangsllsgnaw
PHP
Code
37
111
<?php /** * Created by PhpStorm. * User: cyt * Date: 2017/12/1 * Time: 15:55 */ namespace App\Models; use Illuminate\Database\Eloquent\Model; class Messages extends Model{ protected $table = 'messages'; //多对多 public function comments() { return $this->morphMany('App\Models\Comment','comme...
15,561
https://github.com/shivagatai/meschantiers-frontend/blob/master/src/components/AllChantiers.js
Github Open Source
Open Source
RSA-MD
null
meschantiers-frontend
shivagatai
JavaScript
Code
153
514
import React from "react" import { graphql, useStaticQuery } from "gatsby" import { Accordion, AccordionDetails, AccordionSummary, Typography, } from "@material-ui/core" import ChantierList from "./ChantierList" const AllChantiers = ({}) => { const [expanded, setExpanded] = React.useState("panel1") cons...
36,531
https://github.com/hlavacs/PhyLab/blob/master/Assets/Scripts/NavigationArrow.cs
Github Open Source
Open Source
MIT
2,022
PhyLab
hlavacs
C#
Code
26
91
using System.Collections; using System.Collections.Generic; using UnityEngine; public enum DirectionEnum {Forward, Backward} public class NavigationArrow : MonoBehaviour { public GameObject TargetCheckpoint; public void WalkToTarget(){ FindObjectOfType<GameManager>().WalkToTarget(TargetCheckpoint); ...
29,684
https://github.com/IMOKURI/dotfiles/blob/master/config/nvim/template/python/snip-torch_model.py
Github Open Source
Open Source
MIT
2,023
dotfiles
IMOKURI
Python
Code
54
240
class {{_input_:model_name}}(nn.Module): def __init__(self, c, tf_initialization=False): super().__init__() self.amp = c.settings.amp self.model_input = c.model_params.model_input self.model_output = c.settings.n_class ... {{_cursor_}} if tf_initialization: ...
39,321
https://github.com/Myrmecoman/TankArcade/blob/master/TankArcade/Assets/AllAssets/LevelEditor/Scripts/CameraMove.cs
Github Open Source
Open Source
MIT
null
TankArcade
Myrmecoman
C#
Code
166
422
using UnityEngine; using UnityEngine.UI; public class CameraMove : MonoBehaviour { public Slider cameraSpeedSlide; public ManagerScript ms; private float xAxis; private float yAxis; private float zoom; private Camera cam; void Start() { cam = GetComponent<Camera>(); // get ...
12,648
https://github.com/benmoumene/School-Management-System-codeigniter/blob/master/application/views/admin/transaction/studentAcademicReport.php
Github Open Source
Open Source
MIT
2,020
School-Management-System-codeigniter
benmoumene
PHP
Code
875
3,358
<?php $currency_symbol = $this->customlib->getSchoolCurrencyFormat(); ?> <div class="content-wrapper" style="min-height: 946px;"> <section class="content-header"> <h1> <i class="fa fa-money"></i> <?php echo $this->lang->line('fees_collection'); ?> <small> <?php echo $this->lang->line('filter_by...
45,918
https://github.com/keptn/go-utils/blob/master/pkg/api/models/secret.go
Github Open Source
Open Source
Apache-2.0
2,023
go-utils
keptn
Go
Code
176
420
package models import "encoding/json" // Secret secret type Secret struct { // data // Required: true Data map[string]string `json:"data"` SecretMetadata } type SecretMetadata struct { // The name of the secret // Required: true Name *string `json:"name" yaml:"name"` // The scope of the secret // Require...
15,028
https://github.com/github/codeql/blob/master/java/ql/test/kotlin/query-tests/NullMaybe/Test.kt
Github Open Source
Open Source
MIT
2,023
codeql
github
Kotlin
Code
18
46
fun fn(b: Boolean) { var d: Double? = null if (b) { d = 1.0 } println(d!!) }
9,787
https://github.com/iootclab/openjdk/blob/master/openjdk11/test/jdk/javax/imageio/plugins/png/PngNegativeDimensionTest.java
Github Open Source
Open Source
Apache-2.0
2,018
openjdk
iootclab
Java
Code
457
1,009
/* * Copyright (c) 2017, 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 Softwa...
28,234
https://github.com/jperezov/intern-ui/blob/master/lib/js/index.js
Github Open Source
Open Source
MIT
2,016
intern-ui
jperezov
JavaScript
Code
41
220
define([ './var/app', './var/URL', './controllers/main', './controllers/unit', './controllers/functional', './controllers/testSuite', './directives/site', './directives/testSuite' ], function(app, URL) { app.config(function($routeProvider) { $routeProvider .when('...
48,974
https://github.com/RomanZhu/Endless-Runner-Entitas-ECS/blob/master/Assets/Sources/Services/PhysicsService/IPhysicsService.cs
Github Open Source
Open Source
MIT
2,022
Endless-Runner-Entitas-ECS
RomanZhu
C#
Code
16
42
using UnityEngine; public interface IPhysicsService { int SphereCast(Vector2 position, float radius, RaycastHit[] buffer, int layerMask); }
17,710
https://github.com/baydinsoftware/FAT/blob/master/fatproject/fat/static/fat/js/dropdown-view.js
Github Open Source
Open Source
MIT
2,019
FAT
baydinsoftware
JavaScript
Code
77
345
var FatApp = FatApp || new Backbone.Marionette.Application(); var DropDownItemView = Backbone.Marionette.ItemView.extend({ tagName: "option", template: "#template-DropDownItemView", initalize: function(){ this.model.on("sync", this.render, this); }, onRender: function(){ this.$el.at...
49,129
https://github.com/hachkingtohach1/Mineflow/blob/master/src/aieuo/mineflow/flowItem/action/ShowBossbar.php
Github Open Source
Open Source
NCSA
2,020
Mineflow
hachkingtohach1
PHP
Code
339
1,389
<?php namespace aieuo\mineflow\flowItem\action; use aieuo\mineflow\flowItem\base\PlayerFlowItem; use aieuo\mineflow\flowItem\base\PlayerFlowItemTrait; use aieuo\mineflow\flowItem\FlowItem; use aieuo\mineflow\formAPI\CustomForm; use aieuo\mineflow\formAPI\element\mineflow\CancelToggle; use aieuo\mineflow\formAPI\eleme...
42,224
https://github.com/rectorphp/rector-downgrade-php/blob/master/rules-tests/DowngradePhp80/Rector/MethodCall/DowngradeReflectionPropertyGetDefaultValueRector/Fixture/skip_different_object.php.inc
Github Open Source
Open Source
MIT
2,023
rector-downgrade-php
rectorphp
PHP
Code
17
123
<?php namespace Rector\Tests\DowngradePhp80\Rector\MethodCall\DowngradeReflectionPropertyGetDefaultValueRector\Fixture; use Rector\Tests\DowngradePhp80\Rector\MethodCall\DowngradeReflectionPropertyGetDefaultValueRector\Source\SomeClassHasGetDefaultValue; class SkipDifferentObject { public function run(SomeClassH...
32,262
https://github.com/ligeirinho/financial/blob/master/src/FV.php
Github Open Source
Open Source
MIT
2,018
financial
ligeirinho
PHP
Code
43
162
<?php /*class to evaluate FV excel formula * @uses PMT::evaluate() */ namespace Jarouche\Financial; class FV extends Payment { protected $fv; public function evaluate(): float { $objPmt = new PMT( $this->objFinancingCoefficient->objInterestRate->getEvaluation(), $this->...
39,572
https://github.com/tsreenath198/dmt-ui/blob/master/src/app/models/pipeline-model.ts
Github Open Source
Open Source
RSA-MD
null
dmt-ui
tsreenath198
TypeScript
Code
11
51
export interface PipelineModel{ name:string, phone:string, email:string, requirements:string, description:string, id:number, activeFlag:string }
3,573
https://github.com/DenisFrezzato/kleisli-ts/blob/master/examples/unsafeRun.ts
Github Open Source
Open Source
Apache-2.0
2,022
kleisli-ts
DenisFrezzato
TypeScript
Code
72
211
import { ioEither, URI as IOEitherURI } from 'fp-ts/lib/IOEither'; import { getInstancesFor, KleisliIO } from '../src'; import { unsafeRunIE } from '../src/unsafe'; const { impureVoid, liftK } = getInstancesFor(ioEither); const k: KleisliIO<IOEitherURI, Error, void, string> = liftK(() => { if (Math.random() > 0.5)...
13,393
https://github.com/Cool-CoCoder/relationship-regulation-website/blob/master/src/Controller/LoginServlet.java
Github Open Source
Open Source
Apache-2.0
null
relationship-regulation-website
Cool-CoCoder
Java
Code
100
485
package Controller; import entity.User; import service.impl.LoginServiceImpl; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http...
13,660
https://github.com/zielaskowski/tree-table/blob/master/R/TT.r
Github Open Source
Open Source
MIT
null
tree-table
zielaskowski
R
Code
785
2,260
#' @title Display tree structured data using 'datatable' widget #' #' @description Wrapper of 'datatable' widget, allowing display of 'data.tree' #' objects. All arguments of the 'data.tree' become columns and each node is a #' row. Adds column with buttons allowing folding and unfolding the levels. #' #' @details Pack...
24,222
https://github.com/ttys3/risso/blob/master/risso_api/src/context.rs
Github Open Source
Open Source
Apache-2.0
2,022
risso
ttys3
Rust
Code
294
960
#![allow(dead_code, deprecated)] // Republish diesel's manager so that server impls don't have to add it to their deps. pub use diesel::r2d2::ConnectionManager; use diesel::r2d2::Pool; use serde_derive::Deserialize; use futures::future::Future; use crate::logs::macros::*; #[derive(Deserialize)] struct ContextConfig...
35,965
https://github.com/JessLovell/301-redo/blob/master/city-explorer/server.js
Github Open Source
Open Source
MIT
null
301-redo
JessLovell
JavaScript
Code
133
571
'use strict'; const express = require('express'); const superagent = require('superagent'); const cors = require('cors'); require('dotenv').config(); const app = express(); const PORT = process.env.PORT; app.use(cors()); app.get('/location', getLocation); app.get('/weather', getWeather); // app.get('/movies', getMo...
30,578
https://github.com/MythicManiac/simple-event-logger/blob/master/src/client/consts.ts
Github Open Source
Open Source
MIT
null
simple-event-logger
MythicManiac
TypeScript
Code
28
87
declare var BACKEND_HOST: string | undefined; function getApiHost() { let api_host = BACKEND_HOST; if (!api_host) { api_host = `${window.location.protocol}//${window.location.host}`; } return api_host; } export const API_HOST = getApiHost();
41,163
https://github.com/num46664/esm-server/blob/master/scripts/migrateFolders.js
Github Open Source
Open Source
Apache-2.0, MIT
2,019
esm-server
num46664
JavaScript
Code
572
1,777
'use strict'; var _ = require('lodash'); var TreeModel = require('tree-model'); var MongoClient = require('mongodb').MongoClient; var defaultConnectionString = "mongodb://localhost:27017/esm-master"; var username = ""; var password = ""; var...
38,714
https://github.com/ximion/D-YAML/blob/master/source/dyaml/test/reader.d
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, BSL-1.0
2,018
D-YAML
ximion
D
Code
148
417
// Copyright Ferdinand Majerech 2011. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) module dyaml.test.reader; version(unittest) { import dyaml.test.common; import dyaml.reader; // Tr...
18,313
https://github.com/capndave/redRiverHerbs/blob/master/src/components/footer.js
Github Open Source
Open Source
MIT
null
redRiverHerbs
capndave
JavaScript
Code
38
145
import React from 'react' import footerStyles from './footer.module.css' const Footer = function () { return ( <footer className={footerStyles.footer} > <p> <span className={footerStyles.semiTransparent} > Si...
8,331
https://github.com/kbidarkar/openshift-python-wrapper/blob/master/ocp_resources/configmap.py
Github Open Source
Open Source
Apache-2.0
null
openshift-python-wrapper
kbidarkar
Python
Code
38
160
from ocp_resources.resource import NamespacedResource class ConfigMap(NamespacedResource): """ Configmap object """ api_version = NamespacedResource.ApiVersion.V1 def __init__(self, name, namespace, data=None, teardown=True, client=None): super().__init__( name=name, namespac...
3,187
https://github.com/GiuMaz/graph_coloring/blob/master/include/bitmatrix.h
Github Open Source
Open Source
MIT
null
graph_coloring
GiuMaz
C
Code
179
557
#ifndef BITMATRIX_HH #define BITMATRIX_HH #include <cstring> class BitMatrix { public: BitMatrix(size_t h, size_t w): height(h), width(w), matrix(new uint8_t[(((h*w)/8)+((h*w)%8==0?0:1))]()) { } BitMatrix( const BitMatrix &bm ) : height(bm.height), width(bm.width), matrix() { ...
12,296
https://github.com/billyninja/pgtools/blob/master/colors/colors.go
Github Open Source
Open Source
Unlicense
null
pgtools
billyninja
Go
Code
51
209
package colors import ( "fmt" ) func Red(st interface{}) string { return fmt.Sprintf("\x1b[31;1m%v\x1b[0m", st) } func Green(st interface{}) string { return fmt.Sprintf("\x1b[32;1m%v\x1b[0m", st) } func Blue(st interface{}) string { return fmt.Sprintf("\x1b[34;1m%v\x1b[0m", st) } func Yellow(st int...
10,409
https://github.com/Pushkar16/CSE-Bank-master/blob/master/src/main/java/csebank_utility/asu/edu/EmailService.java
Github Open Source
Open Source
MIT
null
CSE-Bank-master
Pushkar16
Java
Code
424
1,391
package csebank_utility.asu.edu; import java.util.HashMap; import java.util.Properties; import javax.mail.Message; import javax.mail.MessagingException; import javax.mail.PasswordAuthentication; import javax.mail.Session; import javax.mail.Transport; import javax.mail.internet.InternetAddress; import javax.mail.inte...
46,007
https://github.com/milescarmany/zpl-tmlanguage/blob/master/ZPL.tmLanguage
Github Open Source
Open Source
MIT
2,019
zpl-tmlanguage
milescarmany
XML Property List
Code
81
702
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>fileTypes</key> <array> <string>prn</string> </array> <key>keyEquivalent</key> <string>^~z</string> <key>name</key> <string>ZPL</string...
36,335
https://github.com/d-bytebase/bytebase/blob/master/frontend/src/views/SheetDashboard.vue
Github Open Source
Open Source
MIT
null
bytebase
d-bytebase
Vue
Code
1,092
3,849
<template> <div class="w-full h-full grid grid-cols-[212px_1fr] gap-0"> <div class="w-full h-auto flex flex-col justify-start items-start px-4 pl-6 py-2 border-r" > <router-link v-for="nav in navigationList" :key="nav.path" :to="nav.path" class="text-base p-2 px-3 r...
20,439
https://github.com/wonderhorn/mkfj/blob/master/main/include/utils/string_util.h
Github Open Source
Open Source
MIT
null
mkfj
wonderhorn
C
Code
109
337
#pragma once #include<string> #include<vector> #include<map> #include<strstream> namespace myutil { std::string int2str(int i); int str2int(const std::string& str); double str2double(const std::string& str); template <class T_src, class T_dst> std::string map2str(const std::map<T_src, T_dst>& m); int find(const s...
45,946
https://github.com/usdot-fhwa-stol/autoware.ai/blob/master/jsk_recognition/jsk_pcl_ros_utils/src/plane_reasoner_nodelet.cpp
Github Open Source
Open Source
Apache-2.0
2,023
autoware.ai
usdot-fhwa-stol
C++
Code
741
3,388
// -*- mode: c++ -*- /********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2014, JSK Lab * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the ...
24,759
https://github.com/sgeb/sequelize-binary-uuid/blob/master/src/preset.js
Github Open Source
Open Source
MIT
2,020
sequelize-binary-uuid
sgeb
JavaScript
Code
116
314
import BINARYUUID from './define/binary-uuid'; import VIRTUALBINARYUUID from './define/virtual-uuid'; /* A simple preset for default key with virtual field */ const DEFAULT_FIELD_OPS = Object.freeze({ primaryKey: true, allowNull: false }); export default function withBinaryUUID(definition, ops = {}) { const ...
37,023
https://github.com/EricChang82/springBootDemo/blob/master/springBootDemo/src/main/java/cn/zookeeper/apiType/watcher/Watcher1.java
Github Open Source
Open Source
Apache-2.0
null
springBootDemo
EricChang82
Java
Code
101
405
package cn.zookeeper.apiType.watcher; import java.util.concurrent.CountDownLatch; import org.apache.zookeeper.WatchedEvent; import org.apache.zookeeper.Watcher; import org.apache.zookeeper.Watcher.Event.EventType; import org.apache.zookeeper.Watcher.Event.KeeperState; import org.apache.zookeeper.ZooKeeper; import org...
48,705
https://github.com/Bran29/NFT-Marketplace/blob/master/client/src/redux/reducers/slices/message.js
Github Open Source
Open Source
MIT
null
NFT-Marketplace
Bran29
JavaScript
Code
60
131
import { createSlice } from "@reduxjs/toolkit"; const initialState = {}; const messageSlice = createSlice({ name: "message", initialState, reducers: { setMessage: (state, action) => { return { message: action.payload }; }, clearMessage: () => { return { message: "" }; }, }, }); co...
38,746
https://github.com/Toysoft/BlackPole-bp-openembedded/blob/master/recipes/blackpole/blackpole-base/Ncam_Ci.sh
Github Open Source
Open Source
MIT
null
BlackPole-bp-openembedded
Toysoft
Shell
Code
52
181
#!/bin/sh CAMNAME="Common Interface" remove_tmp () { rm -rf /tmp/*.info /tmp/*.tmp } case "$1" in start) echo "[SCRIPT] $1: $CAMNAME" remove_tmp ulimit -s 1024 exec start-stop-daemon -S -x /usr/bin/vucamd ;; stop) echo "[SCRIPT] $1: $CAMNAME" remove_tmp exec start-stop-daemon -K -R 2 -x /usr/bin/vucamd ;...
13,816
https://github.com/asirupa/ratings-app/blob/master/uiplatform-solution/ratings-app/src/utils/constants.js
Github Open Source
Open Source
MIT
null
ratings-app
asirupa
JavaScript
Code
15
30
export const ALL = 'ALL'; export const POPULAR = 'POPULAR'; export const WORST = 'WORST';
42,264
https://github.com/ShadyNagy/Utilities/blob/master/src/ShadyNagy.Utilities.Files/UFile.cs
Github Open Source
Open Source
MIT
null
Utilities
ShadyNagy
C#
Code
83
265
using System.IO; namespace ShadyNagy.Utilities.Files { public class UFile { public static byte[] ReadBytes(string path, string fileName) { var fullPath = Path.Combine(path, fileName); using (MemoryStream ms = new MemoryStream()) using (FileStream file = new...
10,885
https://github.com/kubesphere/kubesphere/blob/master/vendor/istio.io/api/security/v1beta1/peer_authentication_deepcopy.gen.go
Github Open Source
Open Source
Apache-2.0
2,023
kubesphere
kubesphere
Go
Code
73
195
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: security/v1beta1/peer_authentication.proto package v1beta1 import ( fmt "fmt" proto "github.com/gogo/protobuf/proto" _ "istio.io/api/type/v1beta1" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Mars...
33,237
https://github.com/yanghuanrong/RelaxUI/blob/master/src/package/Button/button.vue
Github Open Source
Open Source
MIT
2,021
RelaxUI
yanghuanrong
Vue
Code
162
515
<script> export default { name: 'xButton', props: { type: { type: String, default: 'default', validator: value => [ 'success', 'primary', 'warning', 'info', 'danger', 'default', 'text' ].some(item => value ==...
21,209
https://github.com/MrkMrk00/praguepub/blob/master/src/main/java/cz/vse/praguePub/gui/obrazovky/abstraktniObrazovky/PodnikInfoObrazovka.java
Github Open Source
Open Source
WTFPL
null
praguepub
MrkMrk00
Java
Code
709
3,269
package cz.vse.praguePub.gui.obrazovky.abstraktniObrazovky; import cz.vse.praguePub.gui.ObrazovkyController; import cz.vse.praguePub.gui.komponenty.AlertBuilder; import cz.vse.praguePub.gui.komponenty.Tabulka; import cz.vse.praguePub.logika.Databaze; import cz.vse.praguePub.logika.dbObjekty.Pivo; import cz.vse.pragueP...
15,339
https://github.com/aluitink/NntpClient/blob/master/Helvetica.NntpClient/Interfaces/INntpClient.cs
Github Open Source
Open Source
MIT
null
NntpClient
aluitink
C#
Code
118
318
using System.IO; using Helvetica.NntpClient.Models; namespace Helvetica.NntpClient.Interfaces { public interface INntpClient { bool Authenticated { get; } long CurrentArticleId { get; } string CurrentMessageId { get; } Group CurrentGroup { get; } Article CurrentArticle {...
28,055
https://github.com/docker-oilgains/deeplearning-gpu-box/blob/master/sbin/dz-adduser
Github Open Source
Open Source
MIT
2,018
deeplearning-gpu-box
docker-oilgains
Shell
Code
7
23
#!/usr/bin/env bash adduser $1 adduser $1 docker
5,928
https://github.com/sha-shrestha/swblocks-baselib/blob/master/projects/make/3rd/python/2.7.5.mk
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-warranty-disclaimer
2,023
swblocks-baselib
sha-shrestha
Makefile
Code
58
376
ifndef PYTHON_2_7_5_INCLUDED PYTHON_2_7_5_INCLUDED = 1 PYTHONDIR = $(DIST_ROOT_DEPS2)/python/2.7.5 PYTHON = python ifeq (win, $(findstring win, $(OS))) ifeq ($(TOOLCHAIN),vc12) EXTPLAT_REMAPPED := $(OS)-$(ARCH)-vc11-$(VARIANT) PATH := $(PYTHONDIR)/$(EXTPLAT_REMAPPED:%-$(VARIANT)=%):$(PATH) else PATH ...
6,068
https://github.com/yotam5/SmollOs/blob/master/src/programs/stdlib/stdlib.cpp
Github Open Source
Open Source
MIT
null
SmollOs
yotam5
C++
Code
153
373
#include "./stdlib.h" #include "./smollos.h" #include <stddef.h> #include "../../string/string.c" void* malloc(size_t size){ return smollos_malloc(size); } void free(void* ptr) { smollos_free(ptr); } char *reverse(char *str) { char tmp, *src, *dst; size_t len; if (str != NULL) { len =...
471
https://github.com/ocaml-ppx/ocamlformat/blob/master/test/passing/tests/comments_args.ml
Github Open Source
Open Source
MIT
2,023
ocamlformat
ocaml-ppx
OCaml
Code
78
268
[@@@ocamlformat "wrap-fun-args=true"] let emit_wrapper_function = Hhas_function.make function_attributes name body (Hhas_pos.pos_to_span ast_fun.Ast.f_span) false (* is_async *) false (* is_generator *) false (* is_pair_generator *) hoisted true (* no_injection *) true (* inout_wrapper *) ...
45,909
https://github.com/patrick-narciso/weather-app/blob/master/src/services/Weather/index.ts
Github Open Source
Open Source
MIT
null
weather-app
patrick-narciso
TypeScript
Code
42
159
import HttpClient from '~/utils/http-client'; import { OPEN_WEATHER_URL, OPEN_WEATHER_KEY } from '@env'; class WeatherServiceApi extends HttpClient { public constructor() { super(OPEN_WEATHER_URL); } public getCurrentWeather = (lat: number, lon: number) => { return this.instance.get( `/weather?lat...
4,859
https://github.com/webispy/tuapi/blob/master/src/TLibrary.cpp
Github Open Source
Open Source
MIT
2,018
tuapi
webispy
C++
Code
1,010
4,513
#ifndef HOST #include <app.h> #endif #include "TLibrary.h" #define PI 3.14159265358979323846 #define PI_180 (PI / 180) EXPORT_API double get_scale() { #ifdef HOST return elm_config_scale_get(); #else return 1.0; #endif } EXPORT_API gchar *get_img_path(const char *file) { #ifndef HOST char *res_path; char *r...
7,456
https://github.com/Hades300/cxmooc-tools/blob/master/src/cxmooc-tools/start.js
Github Open Source
Open Source
BSD-3-Clause
2,021
cxmooc-tools
Hades300
JavaScript
Code
118
521
const moocConfig = require('../config'); window.onload = function () { //注入mooc.js chrome.storage.local.get(['version', 'url', 'enforce'], function (items) { if (items.version > moocConfig.version) { if (items.enforce) { alert('刷课扩展要求强制更新'); window.open(items...
2,320
https://github.com/gabriel-toledo/Flama-MPI/blob/master/resources/views/estoque/adicionarProduto.blade.php
Github Open Source
Open Source
MIT
null
Flama-MPI
gabriel-toledo
PHP
Code
190
1,170
<!DOCTYPE html> <head> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous"> <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-aweso...
37,236
https://github.com/rkiddy/django-calaccess-campaign-browser/blob/master/calaccess_campaign_browser/management/commands/loadcalaccesscampaigncontributions.py
Github Open Source
Open Source
MIT
2,021
django-calaccess-campaign-browser
rkiddy
Python
Code
1,451
8,364
import os import csv import copy import MySQLdb import warnings import tempfile from django.db import connection from calaccess_raw.models import RcptCd, S497Cd from calaccess_raw import get_download_directory from calaccess_campaign_browser.management.commands import CalAccessCommand from calaccess_campaign_browser.mo...
18,749
https://github.com/fonzieyang/blogcn/blob/master/tool/publish.sh
Github Open Source
Open Source
Apache-2.0
null
blogcn
fonzieyang
Shell
Code
8
40
#/bin/bash t=`date "+%Y-%m-%d%n"` echo $t mv $1 ../_posts/$t-$1
20,332
https://github.com/shuli495/erlangshen/blob/master/src/main/java/com/erlangshen/dao/PermissionRoleMenuDao.java
Github Open Source
Open Source
MIT
2,018
erlangshen
shuli495
Java
Code
21
105
package com.erlangshen.dao; import org.springframework.stereotype.Repository; import com.fastjavaframework.base.BaseDao; import com.erlangshen.model.bo.PermissionRoleMenuBO; /** * @author https://github.com/shuli495/erlangshen */ @Repository public class PermissionRoleMenuDao extends BaseDao<PermissionRoleMenuBO> {...
3,442
https://github.com/ptiger10/tada/blob/master/options_test.go
Github Open Source
Open Source
Apache-2.0, CC0-1.0
2,020
tada
ptiger10
Go
Code
416
1,305
package tada import ( "reflect" "testing" ) func TestSetOptionDefaultSeparator(t *testing.T) { type args struct { sep string } tests := []struct { name string args args }{ {"pass", args{"||"}}, } for _, tt := range tests { archive := optionLevelSeparator t.Run(tt.name, func(t *testing.T) { SetO...
15,309
https://github.com/SeeNelse/laravel_gfl/blob/master/task1/app/views/contact-us.blade.php
Github Open Source
Open Source
MIT
2,019
laravel_gfl
SeeNelse
Blade
Code
47
242
@extends('layout') @section('content') <div class="col-12"> <form action="submit-form" method="post"> <div class="form-group"> <label for="exampleFormControlInput1">Name:</label> <input type="text" class="form-control" id="exampleFormControlInput1" placeholder="Vasya" name='name'> </...
42,487
https://github.com/art-divin/XcodeUpdates/blob/master/XcodeUpdatesInternal/XcodeUpdatesInternal/Extensions/Progress+JSON.swift
Github Open Source
Open Source
Apache-2.0
2,022
XcodeUpdates
art-divin
Swift
Code
136
398
// // Progress+JSON.swift // XcodesKit // // Created by Ruslan Alikhamov on 12.12.2020. // import Foundation extension Progress { private enum Constants { static let estimatedTimeRemaining = "estimatedTimeRemaining" static let throughput = "throughput" static let totalUnitCount = "...
22,786
https://github.com/BbsonLin/gitme_reborn/blob/master/lib/components/github_login_form.dart
Github Open Source
Open Source
MIT
2,020
gitme_reborn
BbsonLin
Dart
Code
220
856
import "package:flutter/material.dart"; import 'package:flutter_i18n/flutter_i18n.dart'; class GithubLoginForm extends StatefulWidget { const GithubLoginForm({ Key key, this.onLogin, }) : super(key: key); final Function(_GithubLoginFormState state) onLogin; @override _GithubLoginFormState createSta...
28,150
https://github.com/aamitabhmedia/phototools/blob/master/util/appdata.py
Github Open Source
Open Source
MIT
null
phototools
aamitabhmedia
Python
Code
44
171
from pathlib import Path import os.path import sys class AppData: APPDATA_NAME = ".phototools" @staticmethod def get_folder_path(): return Path.home() / AppData.APPDATA_NAME @staticmethod def init(): folder_path = Path(AppData.get_folder_path()) if (not folder_path.exists...
17,373
https://github.com/linasdev/ross-google-fulfillment/blob/master/src/main/java/com/rosssmarthome/rossgooglefulfillment/data/DeviceType.java
Github Open Source
Open Source
MIT
null
ross-google-fulfillment
linasdev
Java
Code
97
472
package com.rosssmarthome.rossgooglefulfillment.data; import java.util.List; public enum DeviceType { RELAY_SINGLE, BCM_SINGLE, BCM_RGB_B, BCM_RGBW_B; public String getGoogleDeviceType() { switch (this) { case RELAY_SINGLE: return "action.devices.types.OUTLET";...
49,172
https://github.com/whatevery1says/we1s-templates/blob/master/src/templates/v0.1.9/modules/diagnostics/scripts/zip.py
Github Open Source
Open Source
MIT
null
we1s-templates
whatevery1says
Python
Code
100
348
"""zip.py. Zips a Diagnostics visualisation for export. Last update: 2020-07-25 """ # Python imports import os import shutil import tempfile from IPython.display import display, HTML # Zip functions def copy_assets(dirs, current_dir, temp_dir): """Copy the asset directories to the temporary directory.""" fo...
47,160
https://github.com/sumaili-shabani/Santeplus/blob/master/application/views/frontend/exemple.php
Github Open Source
Open Source
MIT
null
Santeplus
sumaili-shabani
PHP
Code
213
1,041
<!DOCTYPE html> <html lang="en"> <head> <?php include('_meta.php') ?> </head> <body style="background:url('5.jpg');"> <div id="main-wrapper"> <!-- Header Section --> <?php include('_menuheader.php') ?> <!-- Feature Carousel Section --> <?php include('component/carousel.php') ?> <!--feature_new...
38,811
https://github.com/sk-0520/Pe/blob/master/Source/BuildTools/SqlPack/Executor.cs
Github Open Source
Open Source
WTFPL
2,023
Pe
sk-0520
C#
Code
269
1,199
using System; using System.Collections.Generic; using System.IO; using System.Text; using ContentTypeTextNet.Pe.Core.Models.Database; using ContentTypeTextNet.Pe.Core.Models.Database.Vender.Public.SQLite; using ContentTypeTextNet.Pe.Standard.Database; using Microsoft.Extensions.Logging.Abstractions; namespace SqlPack ...
15,042
https://github.com/cheburan/api-server/blob/master/SystemDataSQL/src/main/scala/uk/ac/ncl/openlab/intake24/systemsql/user/UserSessionDataServiceImpl.scala
Github Open Source
Open Source
Apache-2.0
2,021
api-server
cheburan
Scala
Code
240
920
package uk.ac.ncl.openlab.intake24.systemsql.user import java.time.ZonedDateTime import anorm.{Macro, SQL} import com.google.inject.Inject import javax.inject.Named import javax.sql.DataSource import uk.ac.ncl.openlab.intake24.errors.{CreateError, DeleteError, LookupError, UnexpectedDatabaseError} import uk.ac.ncl.op...
5,755
https://github.com/clevertonh/tds-eclipse/blob/master/br.com.totvs.tds.tycho/br.com.totvs.tds.tycho.bundles/br.com.totvs.tds.server/src/br/com/totvs/tds/server/model/RootInfo.java
Github Open Source
Open Source
MIT
2,019
tds-eclipse
clevertonh
Java
Code
48
196
package br.com.totvs.tds.server.model; import br.com.totvs.tds.server.interfaces.IRootInfo; /** * @author acandido * */ public class RootInfo extends GroupInfo implements IRootInfo { /** * Construtor. */ public RootInfo() { super(Messages.RootInfo_Servers); } /* * (non-Javadoc) * * @see br.com.to...
363
https://github.com/zaqwes8811/coordinator-tasks/blob/master/projects/thin-client-impl/google-docs-nodejs/test-small/access-test.js
Github Open Source
Open Source
MIT
null
coordinator-tasks
zaqwes8811
JavaScript
Code
387
1,385
// Авторизованный доступ и неавторизованный var assert = require('chai').assert; var expect = require('chai').expect; var _ = require('underscore'); var qs = require('querystring'); var suite = require('mocha/lib/suite'); var test = require('mocha/lib/test'); // Код запросов по http - это как бы фреймворк, запускающий...
32,952
https://github.com/condep/condep-node/blob/master/src/ConDep.Node.Tests/CertificateHandlerTests.cs
Github Open Source
Open Source
LicenseRef-scancode-generic-cla, BSD-2-Clause, BSD-3-Clause
2,018
condep-node
condep
C#
Code
237
1,111
using System; using System.Security.Cryptography.X509Certificates; using NUnit.Framework; using static System.Double; namespace ConDep.Node.Tests { [TestFixture] [Category("integration")] public class CertificateHandlerTests { [Test] public void ConfigureSslCert_IfCertExpiresWithin7Day...
45,121
https://github.com/neternefer/CapstoneProject/blob/master/src/client/js/app.js
Github Open Source
Open Source
MIT
null
CapstoneProject
neternefer
JavaScript
Code
486
1,573
const locationApiUrl = 'http://api.geonames.org/searchJSON?q='; const weatherApiUrl = 'https://api.weatherbit.io/v2.0/current?'; const imgApiUrl = 'https://pixabay.com/api/?key='; const locationApiKey = 'alkarinqe'; const weatherApiKey = '33541f30f808419bb46a8caece1b44bd'; const imgApiKey = '16135920-02db654744351039ee...
51,044