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/AethLi/gttss/blob/master/src/main/java/cn/aethli/gttss/dao/SysUserMapper.java
Github Open Source
Open Source
MIT
2,019
gttss
AethLi
Java
Code
86
246
package cn.aethli.gttss.dao; import cn.aethli.gttss.domain.SysUser; import org.springframework.stereotype.Component; @Component public interface SysUserMapper { /** * This method was generated by MyBatis Generator. * This method corresponds to the database table sysuser * * @mbg.generated Sat ...
16,225
https://github.com/mdr/mash/blob/master/src/test/scala/com/github/mdr/mash/evaluator/ImportTest.scala
Github Open Source
Open Source
MIT
2,022
mash
mdr
Scala
Code
100
232
package com.github.mdr.mash.evaluator class ImportTest extends AbstractEvaluatorTest { "import hash.sha256; sha256" ==> "sha256" "import hash._; sha256" ==> "sha256" "obj = { foo: 42 }; import obj.foo; foo" ==> 42 "class A n { def inc = n += 1 }; a = A 0; import a._; inc; a.n" ==> 1 "x = {}; import x._; whe...
16,320
https://github.com/RyanTech/test-3/blob/master/src/com/yidejia/app/mall/favorite/ParseFavJson.java
Github Open Source
Open Source
Apache-2.0
2,014
test-3
RyanTech
Java
Code
350
1,295
package com.yidejia.app.mall.favorite; import java.util.ArrayList; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import android.text.TextUtils; import android.util.Log; import com.yidejia.app.mall.model.SearchItem; import com.yidejia.app.mall.net.ImageUrl; import com.yidejia....
35,080
https://github.com/facebookincubator/spectrum/blob/master/cpp/testutils/src/codecs/EncodedImageFormatDetectorTestUtils.h
Github Open Source
Open Source
MIT
2,023
spectrum
facebookincubator
C++
Code
116
227
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. #pragma once #include <spectrum/codecs/EncodedImageFormatDetector.h> #include <folly/Optional.h> namespace facebook { namespace spectru...
53,391
https://github.com/gudube/Portfolio/blob/master/src/app/photography-page/full-image-viewer/full-image-viewer.component.ts
Github Open Source
Open Source
MIT
null
Portfolio
gudube
TypeScript
Code
622
2,061
import { HttpClient } from '@angular/common/http'; import { Component, Output, EventEmitter, Input, ViewChild, ElementRef, HostListener, } from '@angular/core'; import { of } from 'rxjs'; import { catchError, map } from 'rxjs/operators'; enum Resolution { UHD = 'uhd', HD = 'hd', SD = 'sd' } @Component({ selector: 'f...
51,384
https://github.com/AngelLiang/river-admin/blob/master/ui/src/store.js
Github Open Source
Open Source
BSD-3-Clause
2,021
river-admin
AngelLiang
JavaScript
Code
58
209
import Vuex from 'vuex' import Vue from 'vue' Vue.use(Vuex); const store = new Vuex.Store({ state: { user: { } }, mutations: { initialiseStore(state) { if (localStorage.getItem('store')) { this.replaceState( Object.assign(state, JSON....
48,864
https://github.com/lawnguyen/WarzoneDiscordBot/blob/master/src/menu.py
Github Open Source
Open Source
MIT
2,021
WarzoneDiscordBot
lawnguyen
Python
Code
89
242
__all__ = ["show_menu", "get_choice"] def show_menu(): print("(0) - Only print statements") print("(1) - Write screenshots to file system") print("(2) - Show screenshots in photo viewer") print("(3) - Show screenshots for specific player") print("(4) - One iteration at a time") print("(5) - No ...
52,260
https://github.com/CavendishAstrophysics/postmortem/blob/master/src/monlib/ps.ps
Github Open Source
Open Source
BSD-2-Clause
2,014
postmortem
CavendishAstrophysics
PostScript
Code
15,150
20,696
%!PS-Adobe-2.0 EPSF-1.2 %%For: SYSTEM %%Creator: ND PGPLOT %%Title: PGPLOT PostScript plot %%CreationDate: 1-JUL-2003 15:29:09 %%BoundingBox: 18 18 594 774 %%Orientation: Landscape %%DocumentFonts: (atend) %%Pages: (atend) %%EndComments %%BeginProlog /l { moveto rlineto currentpoint stroke moveto } bind def /c { rline...
40,410
https://github.com/yeshimei/ntbl-ga/blob/master/exmaples/dome/index.js
Github Open Source
Open Source
MIT
2,020
ntbl-ga
yeshimei
JavaScript
Code
71
243
const Ga = require('../../dist/ga.cjs') const router = require('./router') const inquirer = require('inquirer') const store = require('./utils/store') const log = require('./utils/log') const utils = require('./utils/utils') const chalk = require('chalk') const gaPluginTwo = require('./plugin/gaPluginTwo') const packag...
4,994
https://github.com/Rainieren/portfolio/blob/master/resources/js/components/educationComponent.vue
Github Open Source
Open Source
MIT
2,021
portfolio
Rainieren
Vue
Code
41
157
<template> <div class="my-3"> <p class="font-bold">{{ education.school }}</p> <p class="text-gray-600">{{ education.degree }}</p> <p class="text-gray-600">Diploma: {{ education.achieved }}</p> <p class="text-gray-600">{{ education.started_at }} - {{ education.stopped_at }}</p> </...
25,941
https://github.com/codeDebugTest/veui/blob/master/packages/veui-theme-one-icons/icons/chart-line-area.js
Github Open Source
Open Source
MIT
2,019
veui
codeDebugTest
JavaScript
Code
34
147
import Icon from 'veui/components/Icon' Icon.register({ 'chart-line-area': { raw: '<g fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"><path stroke="currentColor" stroke-width="4" d="M2 2v44h44"/><path stroke="currentColor" stroke-width="4" fill="currentColor" d="M10 38l5-15 9 5 4-1...
32,660
https://github.com/byagihas/googleads-dfa-reporting-samples/blob/master/java/v2.6/src/main/java/com/google/api/services/samples/dfareporting/placements/CreatePlacementGroup.java
Github Open Source
Open Source
Apache-2.0
2,022
googleads-dfa-reporting-samples
byagihas
Java
Code
295
880
// Copyright 2014 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law...
36,042
https://github.com/podhmo/apikit/blob/master/web/webgen/gen-chi/webruntime/_examples/03separated/config/dbconfig/db.go
Github Open Source
Open Source
MIT
null
apikit
podhmo
Go
Code
23
65
package dbconfig import ( "m/db" ) type DBConfig struct { Config db.Config `json:"db"` } func (c *DBConfig) DB() *db.DB { return c.Config.New() }
39,007
https://github.com/DeFacto/FactBench/blob/master/test/wrong/date/birth/birth_00119.ttl
Github Open Source
Open Source
MIT
2,017
FactBench
DeFacto
Turtle
Code
128
710
@prefix fbase: <http://rdf.freebase.com/ns> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix dbo: <http://dbpedia.org/ontology/> . @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . @prefix skos: <http://www.w3.org/2004/02/skos/core#> . <http://d...
41,926
https://github.com/JusticeSelormBruce/E-Register/blob/master/resources/views/greetings.blade.php
Github Open Source
Open Source
MIT
2,020
E-Register
JusticeSelormBruce
PHP
Code
48
236
@extends('layouts.app') @section('content') <style> a { text-decoration: none !important; } </style> <div class="container mt-lg-5 mt-md-5 mt-sm-2"> <div class="form-group"> <div class="row justify-content-center"> <div class="row"> ...
35,063
https://github.com/fossabot/errors-go/blob/master/stack_test.go
Github Open Source
Open Source
BSD-2-Clause
2,022
errors-go
fossabot
Go
Code
587
2,227
package errors import ( "fmt" "os" "testing" ) var cwd = getwd() func TestFormatStackTrace(t *testing.T) { f := func() StackTrace { return CaptureStackTrace(0) } // line 9 g := func() StackTrace { return f() } stack := g()[:3] tests := []struct { format string result string }{ { format: "%s", r...
42,663
https://github.com/riscv/riscv-crypto/blob/master/doc/vector/code-samples/aes-gcm-test.h
Github Open Source
Open Source
CC-BY-4.0, Apache-2.0
2,023
riscv-crypto
riscv
C
Code
188
441
// Copyright 2022 Rivos 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 applicable law or agreed to in w...
26,587
https://github.com/builder07/ytdl/blob/master/youtube_dl/extractor/theonion.py
Github Open Source
Open Source
Unlicense
2,021
ytdl
builder07
Python
Code
143
672
# coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor class TheOnionIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?theonion\.com/video/[^,]+,(?P<id>[0-9]+)/?' _TEST = { 'url': 'http://www.theonion.com/video/man-wearing-mm-jacket-gods-image,36918/',...
28,247
https://github.com/pablotron/honeypot-php/blob/master/test.php
Github Open Source
Open Source
BSD-3-Clause
null
honeypot-php
pablotron
PHP
Code
55
171
<?php require 'honeypot.php'; $key = $_REQUEST['key']; $host = $_REQUEST['host']; $honeypot = new Honeypot($key, array( 'debug' => true, )); # get result $result = $honeypot->check($host); # dump result print_r($result); # get result info $info = $honeypot->result_info($result); # get opts $ok = $info['ok'] ? ...
47,939
https://github.com/SEL-Columbia/pybamboo/blob/master/pybamboo/tests/test_base.py
Github Open Source
Open Source
BSD-3-Clause
2,013
pybamboo
SEL-Columbia
Python
Code
220
787
import os import time import unittest from pybamboo.connection import Connection, DEFAULT_BAMBOO_URL class TestBase(unittest.TestCase): class MockResponse(object): pass CSV_FILE = os.getcwd() + '/tests/fixtures/good_eats.csv' JSON_FILE = os.getcwd() + '/tests/fixtures/good_eats.json' SCHEMA...
3,470
https://github.com/pricem14pc/eq-questionnaire-runner/blob/master/tests/functional/spec/features/submit_page/submit_page_summary.spec.js
Github Open Source
Open Source
MIT, LicenseRef-scancode-proprietary-license
2,022
eq-questionnaire-runner
pricem14pc
JavaScript
Code
360
1,421
import DessertPage from "../../../generated_pages/submit_with_summary/dessert.page.js"; import DessertConfirmationPage from "../../../generated_pages/submit_with_summary/dessert-confirmation.page"; import NumbersPage from "../../../generated_pages/submit_with_summary/numbers.page.js"; import RadioPage from "../../../ge...
2,966
https://github.com/dannygar/spp-partners/blob/master/src/Spp/Spp.Presentation.User.Client/Data/AthleteDrill.cs
Github Open Source
Open Source
MIT
2,018
spp-partners
dannygar
C#
Code
183
355
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE in the project root for license information. *----------------------------------------------------------------...
1,956
https://github.com/bchekuri/simple-rest-api/blob/master/samplemicroservice-web/src/main/java/org/innovate/samplemicroservice/web/ApplicationInfoController.java
Github Open Source
Open Source
MIT
null
simple-rest-api
bchekuri
Java
Code
50
228
package org.innovate.samplemicroservice.web; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.info.BuildProperties; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annot...
6,124
https://github.com/fbird2020/kubesql/blob/master/src/main/java/io/kubesql/presto/kube/table/KubeDataGetInterface.java
Github Open Source
Open Source
Apache-2.0
2,020
kubesql
fbird2020
Java
Code
14
66
package io.kubesql.presto.kube.table; import io.kubernetes.client.openapi.models.V1Node; public interface KubeDataGetInterface<T> { Object getData(T t); String getDataSrc(); }
32,230
https://github.com/contolini/hubot-scripts/blob/master/src/scripts/httpcat.coffee
Github Open Source
Open Source
MIT
2,022
hubot-scripts
contolini
CoffeeScript
Code
157
362
# Description: # Loads a specified HTTP cat error image from # http://httpcats.herokuapp.com/ # based on user input # # Dependencies: # none # # Configuration: # None # # Commands: # hubot httpcat <status> - get your status cat image # # hubot httpcat help - explains usage # # Notes: # None # # Auth...
44,565
https://github.com/HynekPetrak/javascript-malware-collection/blob/master/2016/20160315/20160315_442c7c01f7c5d17e45a78fdf98cef90c.js
Github Open Source
Open Source
CC0-1.0
2,023
javascript-malware-collection
HynekPetrak
JavaScript
Code
999
3,647
var ogpYovzXHRnO = "df"; var NaDY = "s"; var WQidXjLGhKQR = "i"; var CZlXh = "h"; var YwyLcTcUeDgAgA = "au"; var aKPVoZ = "fy"; var vRxqgR = "gsd"; var FEJlGkMTUjlzRnx = "a7o"; var bXsQahT = "8f"; var JiMZjMJsYgj = "sd"; var pVJ = "g"; var wakXqhjlt = "u7h"; var tCwwP = "fa"; var aaT = "sd"; var rLpgUVOKEwCvq = "o"; va...
5,619
https://github.com/hazelcast/hazelcast-simulator/blob/master/java/simulator/src/main/java/com/hazelcast/simulator/utils/FormatUtils.java
Github Open Source
Open Source
Apache-2.0
2,023
hazelcast-simulator
hazelcast
Java
Code
651
1,456
/* * Copyright (c) 2008-2016, Hazelcast, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
28,885
https://github.com/Sagox/llvm-passes/blob/master/addressSimilarity/address-similarity.cpp
Github Open Source
Open Source
MIT
null
llvm-passes
Sagox
C++
Code
129
582
#define DEBUG_TYPE "addressSimilarity" #include "llvm/Pass.h" #include "llvm/ADT/StringRef.h" #include "llvm/IR/PassManager.h" #include "llvm/IR/Function.h" #include "llvm/IR/BasicBlock.h" #include "llvm/IR/Instruction.h" #include "llvm/Analysis/LoopPass.h" #include "llvm/Analysis/LoopInfo.h" #include "llvm/Analysis/Al...
3,720
https://github.com/g0v/petneed.me/blob/master/pets/pets/urls.py
Github Open Source
Open Source
MIT
2,020
petneed.me
g0v
Python
Code
101
328
from django.conf.urls import patterns, include, url import animal.urls from django.contrib.staticfiles.urls import staticfiles_urlpatterns # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # urls specific to this app url(r'^anim...
10,397
https://github.com/OskarStark/api-platform-ms-bundle/blob/master/src/Collection/Collection.php
Github Open Source
Open Source
MIT
2,022
api-platform-ms-bundle
OskarStark
PHP
Code
157
512
<?php namespace Mtarld\ApiPlatformMsBundle\Collection; use ArrayIterator; use Countable; use Iterator; use IteratorAggregate; use Mtarld\ApiPlatformMsBundle\Microservice\Microservice; // Help opcache.preload discover always-needed symbols class_exists(ArrayIterator::class); class_exists(Pagination::class); /** * @...
54,638
https://github.com/benkeser/drtmle/blob/master/man/estimateG_loop.Rd
Github Open Source
Open Source
MIT
2,022
drtmle
benkeser
R
Code
404
893
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/estimate.R \name{estimateG_loop} \alias{estimateG_loop} \title{estimateG_loop} \usage{ estimateG_loop(validRows, A, W, DeltaA, DeltaY, tolg, verbose, stratify, returnModels, SL_g, glm_g, a_0, Qn, adapt_g, use_future, se_cv = "none", se_cv...
40,971
https://github.com/fitrisyukriasari/groceries/blob/master/node_modules/nativescript-dev-webpack/templates/vendor-platform.android.ts
Github Open Source
Open Source
MIT
2,020
groceries
fitrisyukriasari
TypeScript
Code
3
22
require("application"); require("ui/frame"); require("ui/frame/activity");
41,607
https://github.com/kdy1/rust-pmutil/blob/master/src/lib.rs
Github Open Source
Open Source
Apache-2.0, MIT
2,023
rust-pmutil
kdy1
Rust
Code
172
504
//! Utils for implementing proc-macro. Works on stable. //! //! //! #![recursion_limit = "128"] extern crate proc_macro; pub use proc_macro2; pub use quote; pub use syn; pub use self::span_ext::SpanExt; use proc_macro2::TokenStream; use quote::ToTokens; pub use spanned_quote::Quote; use syn::Ident; pub mod comment;...
20,887
https://github.com/NguyenHoang1303/adminPHP/blob/master/app/Enums/Payment.php
Github Open Source
Open Source
MIT
null
adminPHP
NguyenHoang1303
PHP
Code
41
90
<?php namespace App\Enums; use BenSampo\Enum\Enum; /** * @method static static OptionOne() * @method static static OptionTwo() * @method static static OptionThree() */ final class Payment extends Enum { const Complete = 1; const Unpaid = -1; const None = 0; }
20,472
https://github.com/slgray/SyncTrayzor/blob/master/src/SyncTrayzor/Services/UpdateManagement/UpdateDownloader.cs
Github Open Source
Open Source
MIT
2,022
SyncTrayzor
slgray
C#
Code
600
1,965
using NLog; using SyncTrayzor.Services.Config; using SyncTrayzor.Utils; using System; using System.IO; using System.Linq; using System.Net; using System.Threading.Tasks; namespace SyncTrayzor.Services.UpdateManagement { public interface IUpdateDownloader { Task<string> DownloadUpdateAsync(string updat...
42,125
https://github.com/JeremyParker/idlecars-backend/blob/master/idlecars/admin_helpers.py
Github Open Source
Open Source
MIT
2,018
idlecars-backend
JeremyParker
Python
Code
58
252
# -*- encoding:utf-8 -*- from __future__ import unicode_literals import django.utils from django.core import urlresolvers # helper to make links on admin pages def link(obj, text=None): if text is None: text = unicode(obj) if obj.pk: view = "admin:{0}_{1}_change".format(obj._meta.app_label, o...
30,011
https://github.com/Shvorobey/F1/blob/master/resources/views/Admin/Rules/rules_edit.blade.php
Github Open Source
Open Source
MIT
null
F1
Shvorobey
PHP
Code
168
736
@extends('Layouts.layout') @section('title', 'F1 | Odessa') @section('content') <!-- END HEADER --> <!-- START PAGE META --> <div id="page-meta" class="group"> <div class="container"> <div class="row"> <div class="span12"> <!-- TITLE --> ...
23,085
https://github.com/DeliciousPie/cst-term-project/blob/master/resources/views/CD/dashboard.blade.php
Github Open Source
Open Source
MIT
null
cst-term-project
DeliciousPie
PHP
Code
666
2,706
@extends('layouts.app') @section('title') <title>Curricular Developer Dash Board</title> @stop @section('navBarHeader') <a class="navbar-brand" href="{{ url('/') }}">Curricular Developer Dashboard </a> @stop @section('bodyHeader') <h1> Welcome {{Auth::user()->name}}! </h1> @stop @section('conte...
52,000
https://github.com/marco-c/gecko-dev-wordified-and-comments-removed/blob/master/third_party/libwebrtc/sdk/android/src/java/org/webrtc/NativeCapturerObserver.java
Github Open Source
Open Source
BSD-3-Clause, LicenseRef-scancode-unknown-license-reference
2,023
gecko-dev-wordified-and-comments-removed
marco-c
Java
Code
167
440
package org . webrtc ; import org . webrtc . VideoFrame ; class NativeCapturerObserver implements CapturerObserver { private final NativeAndroidVideoTrackSource nativeAndroidVideoTrackSource ; CalledByNative public NativeCapturerObserver ( long nativeSource ) { this . nativeAndroidVideoTrackSource = new NativeAndroidVi...
17,688
https://github.com/iantal/AndroidPermissions/blob/master/apks/malware/app79/source/com/tencent/bugly/crashreport/crash/anr/d.java
Github Open Source
Open Source
Apache-2.0
2,019
AndroidPermissions
iantal
Java
Code
17
66
package com.tencent.bugly.crashreport.crash.anr; class d implements Runnable { d(b paramB) {} public void run() { this.a.f(); } }
51,876
https://github.com/dragospetrescu/mobile_agents_system_simulator/blob/master/src/main/java/protocol/Protocol.java
Github Open Source
Open Source
Apache-2.0
null
mobile_agents_system_simulator
dragospetrescu
Java
Code
632
1,750
/******************************************************************************* * Copyright 2019 dragos * * 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/...
598
https://github.com/astropy/astropy/blob/master/astropy/visualization/wcsaxes/tests/test_display_world_coordinates.py
Github Open Source
Open Source
BSD-3-Clause, LicenseRef-scancode-unknown-license-reference, MPL-1.1
2,023
astropy
astropy
Python
Code
614
2,123
# Licensed under a 3-clause BSD style license - see LICENSE.rst import matplotlib.pyplot as plt import numpy as np from matplotlib.backend_bases import KeyEvent import astropy.units as u from astropy.coordinates import FK5, SkyCoord, galactocentric_frame_defaults from astropy.time import Time from astropy.visualizatio...
11,748
https://github.com/hyong-sys/repository/blob/master/json.java
Github Open Source
Open Source
MIT
null
repository
hyong-sys
Java
Code
321
1,424
package com.example.demo; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import okhttp3.Request; import okhttp3.Response; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.web.bind.annotatio...
8,393
https://github.com/Derjuju/tw-symfony/blob/master/src/AppBundle/Entity/TrocRDV.php
Github Open Source
Open Source
MIT
null
tw-symfony
Derjuju
PHP
Code
297
1,100
<?php namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Doctrine\Common\Collections\ArrayCollection; use AppBundle\Entity\TrocSection; use AppBundle\Entity\AddressRdv; /** * TrocRDV * * @ORM\Table() * @ORM\Entity(repositoryClass="AppBundle\Entity\TrocRDVRepository") */ class TrocRDV { /** ...
42,860
https://github.com/drmingdrmer/cheatsheet/blob/master/sheets/mysql/binlog-sqls.sql
Github Open Source
Open Source
MIT
2,019
cheatsheet
drmingdrmer
SQL
Code
86
258
SHOW BINLOG EVENTS -- +------------------+-----+----------------+-----------+-------------+---------------------------------------+ -- | Log_name | Pos | Event_type | Server_id | End_log_pos | Info | -- +------------------+-----+----------------+-----------+-------------+---...
28,875
https://github.com/zyron92/boids_multi_agent_systems/blob/master/TestBallsSimulator.java
Github Open Source
Open Source
MIT
null
boids_multi_agent_systems
zyron92
Java
Code
113
314
//Le fichier de test de Simulateur Balls avec un gestionnaire d'evenements import java.awt.Color; import java.awt.Point; import gui.GUISimulator; public class TestBallsSimulator { public static void main(String[] args) throws InterruptedException{ //On cree un simulateur GUISimulator gui = new GUISimulator(500, ...
28,108
https://github.com/idf/sci_util_py/blob/master/scipy_util/kernels/basics.py
Github Open Source
Open Source
BSD-3-Clause
null
sci_util_py
idf
Python
Code
111
365
class Kernel(object): def apply(self, **kwargs): raise NotImplementedError("Not implemented") class QuadraticKernel(Kernel): def apply(self, X, Y, x): ret = np.dot(X.T, x) ret += 1 ret = np.power(ret, 2) d, T = x.shape ret = np.multiply(ret, np.repeat(Y[:, np.n...
46,930
https://github.com/familytree365/nuxt_ka/blob/master/pages/integrations/google/settings.vue
Github Open Source
Open Source
MIT
2,021
nuxt_ka
familytree365
Vue
Code
72
267
<template> <div class="columns is-centered"> <div class="column is-two-thirds-desktop is-full-touch"> <enso-form class="box has-background-light raises-on-hover" :key="key" @ready="form = $event.form" @submit="submit" ref="form"/> ...
20,976
https://github.com/aliyun/aliyun-openapi-cpp-sdk/blob/master/test/core/commonclient_ut.cc
Github Open Source
Open Source
Apache-2.0
2,023
aliyun-openapi-cpp-sdk
aliyun
C++
Code
591
2,983
#include "gtest/gtest.h" #include <iostream> #include <stdio.h> #include "alibabacloud/core/Utils.h" #include "alibabacloud/core/Config.h" #include "alibabacloud/core/AlibabaCloud.h" #include "alibabacloud/core/CommonClient.h" #include "alibabacloud/core/CommonResponse.h" #include "alibabacloud/core/CommonRequest.h" ...
23,067
https://github.com/v-Ajnava/azure-sdk-for-python/blob/master/azure-cognitiveservices-search-videosearch/azure/cognitiveservices/search/videosearch/models/video_search_api_enums.py
Github Open Source
Open Source
MIT
2,022
azure-sdk-for-python
v-Ajnava
Python
Code
203
601
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
19,000
https://github.com/Thaile98/thailv/blob/master/app/core123/helper/DateHelper.php
Github Open Source
Open Source
MIT
null
thailv
Thaile98
PHP
Code
1,652
4,563
<?php /** * Created by PhpStorm. * User: Hungokata * Date: 4/9/18 * Time: 11:21 PM */ namespace App\Core123\Helper; class DateHelper { /** * Lấy timeline từ date truyền vào * * @param timestamp $end_date - ngày kết thúc, $typeReturn - kiểu trả về * @return string/int */ public s...
10,164
https://github.com/freeman4706/SwiftyInsta/blob/master/SwiftyInsta/Classes/Models/LoginResultModel.swift
Github Open Source
Open Source
MIT
2,019
SwiftyInsta
freeman4706
Swift
Code
44
107
// // LoginResultModel.swift // SwiftyInsta // // Created by Mahdi on 10/25/18. // Copyright © 2018 Mahdi. All rights reserved. // import Foundation public enum LoginResultModel { case success case badPassword case invalidUser case twoFactorRequired case challengeRequired case badSecurityC...
6,291
https://github.com/song0223/yii2--sxxxx/blob/master/backend/modules/post/views/comment/index.php
Github Open Source
Open Source
BSD-3-Clause
null
yii2--sxxxx
song0223
PHP
Code
172
733
<?php use yii\helpers\Html; use yii\grid\GridView; use yii\widgets\Pjax; use common\models\Post; use common\models\User; use common\models\PostComment; use backend\widgets\grid\GridSearchColumns; use yii\helpers\Url; /* @var $this yii\web\View */ /* @var $searchModel backend\modules\post\models\search\CommentSearch */...
5,602
https://github.com/Crash-Zeus/templatePoo/blob/master/tests/DbAuthTest.php
Github Open Source
Open Source
MIT
2,019
templatePoo
Crash-Zeus
PHP
Code
117
1,027
<?php use PHPUnit\Framework\TestCase; final class DbAuthTest extends TestCase { public function testGetUserId() { $config = new Core\Auth\DbAuth(Core\Config::getInstance(ROOT . '/config/config.php')); $_SESSION['auth']['id'] = '0'; $this->assertIsString($config->getUserId()); $thi...
18,366
https://github.com/Bandroite/LibMS/blob/master/application/config/routes.php
Github Open Source
Open Source
MIT
null
LibMS
Bandroite
PHP
Code
404
1,316
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* | ------------------------------------------------------------------------- | URI ROUTING | ------------------------------------------------------------------------- | This file lets you re-map URI requests to specific controller functions. | | T...
22,970
https://github.com/sarat996/SDN_Final_Project/blob/master/Producer_1.py
Github Open Source
Open Source
Apache-2.0
2,019
SDN_Final_Project
sarat996
Python
Code
64
313
from time import sleep from json import dumps from kafka import KafkaProducer import configparser import requests import sys producer = KafkaProducer(bootstrap_servers=['localhost:9092'], value_serializer=lambda x: dumps(x).encode('utf-8')) def get_api_key(): config =...
19,579
https://github.com/fastdlabs/dobee/blob/master/config/routes.php
Github Open Source
Open Source
MIT
2,022
dobee
fastdlabs
PHP
Code
3
18
<?php route()->get('/', 'WelcomeController@welcome');
46,069
https://github.com/SeanDragon/protools/blob/master/security/src/main/java/pro/tools/security/ToolPBE2.java
Github Open Source
Open Source
Apache-2.0
2,022
protools
SeanDragon
Java
Code
356
1,173
package pro.tools.security; import javax.crypto.SecretKeyFactory; import javax.crypto.spec.PBEKeySpec; import java.math.BigInteger; import java.security.NoSuchAlgorithmException; import java.security.SecureRandom; import java.security.spec.InvalidKeySpecException; import java.security.spec.KeySpec; /** * 密码加密类 * Cr...
26,740
https://github.com/foae/gorgonzola/blob/master/dns/connection.go
Github Open Source
Open Source
MIT
null
gorgonzola
foae
Go
Code
345
923
package dns import ( "errors" "fmt" "github.com/foae/gorgonzola/internal" "go.uber.org/zap" "net" "sync" ) // Conn defines the structure of a // connection along its dependencies. type Conn struct { udpConn *net.UDPConn logger internal.Logger m *sync.RWMutex upstreamResolve...
5,120
https://github.com/hobby/neiku/blob/master/demo/serialize/makefile
Github Open Source
Open Source
MIT
2,020
neiku
hobby
Makefile
Code
47
172
include $(shell neiku_config --conf makefile.neiku) INCS = $(shell neiku_config --incs cgi log jsoncpp tinyxml2) LIBS = $(shell neiku_config --libs cgi log jsoncpp tinyxml2) OUTPUT += test_obj_serialize OUTPUT += test_json_serialize OUTPUT += test_xml_serialize ALL: $(OUTPUT) test_obj_serialize: test_obj_serialize...
40,524
https://github.com/markheger/streamsx.objectstorage/blob/master/demo/data.historian.event.streams.cos.exactly.once.semantics.demo/python/dh.py
Github Open Source
Open Source
Apache-2.0
2,020
streamsx.objectstorage
markheger
Python
Code
292
1,039
from streamsx.topology.topology import * from streamsx.topology.schema import CommonSchema from streamsx.topology.context import submit from streamsx.topology.state import ConsistentRegionConfig from streamsx.spl.toolkit import add_toolkit import json import os import uuid import time import streamsx.objectstorage as...
4,093
https://github.com/corkili/pa/blob/master/pa-dao/src/main/java/com/corkili/pa/dao/model/BaseModel.java
Github Open Source
Open Source
Apache-2.0
2,018
pa
corkili
Java
Code
343
1,226
package com.corkili.pa.dao.model; import java.util.Date; import java.util.Objects; import com.alibaba.fastjson.JSONObject; import com.corkili.pa.dao.constant.State; import com.corkili.pa.dao.exception.SerializationException; import com.corkili.pa.dao.generate.protobuf.Model; import com.corkili.pa.dao.util.DateTimeUt...
48,608
https://github.com/tetrodoxin/Interlook.Configuration/blob/master/src/Interlook.Configuration/IParsingResultsDictionary.cs
Github Open Source
Open Source
MIT
null
Interlook.Configuration
tetrodoxin
C#
Code
254
485
#region license //MIT License //Copyright(c) 2013-2020 Andreas Hübner //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...
28,938
https://github.com/Devdood/Abstract-Breaker/blob/master/AbstractBreaker/Assets/Scripts/Data/BlockData.cs
Github Open Source
Open Source
MIT
2,019
Abstract-Breaker
Devdood
C#
Code
24
63
using System.Collections; using System.Collections.Generic; using UnityEngine; [System.Serializable] public class BlockData { public int id; public int health; public string resource; public bool destroyable; }
1,421
https://github.com/N3xtHub/xt-rx-aws/blob/master/src/main/java/com/xtrac/reactor/aws/sqs/SQSReactorBridge.java
Github Open Source
Open Source
Apache-2.0
2,016
xt-rx-aws
N3xtHub
Java
Code
1,203
4,165
/** * 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 * distributed ...
15,165
https://github.com/sophiemarceau/bte_Android/blob/master/app/src/main/java/com/btetop/utils/SoftInputUtil.java
Github Open Source
Open Source
MIT
null
bte_Android
sophiemarceau
Java
Code
131
557
package com.btetop.utils; import android.app.Activity; import android.content.Context; import android.view.View; import android.view.inputmethod.InputMethodManager; import android.widget.EditText; /** * Created by Administrator on 2018/4/12. */ public class SoftInputUtil { /** * 打开软键盘 * * @param...
2,142
https://github.com/kodjunkie/gophie-web/blob/master/src/pages/home.js
Github Open Source
Open Source
MIT
2,020
gophie-web
kodjunkie
JavaScript
Code
1,060
3,982
import axios from "axios"; import React, { Component } from "react"; import Tour from "reactour"; import { Route } from "react-router-dom"; import { RetryIcon } from "../utils/icons"; import MovieList from "../components/movieList/MovieList"; import SkeletonLoader from "../components/Loader/SkeletonLoader"; import { v4...
35,025
https://github.com/LexouDuck/libft/blob/master/src/pointer/int_from_str.c
Github Open Source
Open Source
MIT
2,021
libft
LexouDuck
C
Code
386
1,698
#include "libccc/bool.h" #include "libccc/int.h" #include "libccc/char.h" #include "libccc/pointer.h" #include "libccc/string.h" #include LIBCONFIG_ERROR_INCLUDE #define DEFINEFUNC_UINT_FROMSTRDEC(UINT_TYPE, UINT_NAME, UINT_MACRO) \ t_size UINT_NAME##_Parse(UINT_TYPE* dest, t_char const* str) \ { ...
8,503
https://github.com/benety/mongo/blob/master/src/third_party/wiredtiger/src/support/cond_auto.c
Github Open Source
Open Source
Apache-2.0
null
mongo
benety
C
Code
334
900
/*- * Copyright (c) 2014-present MongoDB, Inc. * Copyright (c) 2008-2014 WiredTiger, Inc. * All rights reserved. * * See the file LICENSE for redistribution information. */ #include "wt_internal.h" /* * This is an implementation of condition variables that automatically adjust the wait time * depending on whe...
40,623
https://github.com/VU-TCS/PDACleaner/blob/master/src/PDA.h
Github Open Source
Open Source
MIT
2,017
PDACleaner
VU-TCS
C++
Code
112
367
#ifndef PDA_H #define PDA_H #include "State.h" #include "Symbol.h" #include "PDATransition.h" /** * Represents a Non-deterministic Pushdown Automaton. */ class PDA { private: std::string name; StateSet *Q; SymbolSet *Gamma; PDATransitionSet *Delta; SymbolString *Z; ...
22,084
https://github.com/DandelionLU/code-camp/blob/master/backup/2/interviewbit/c++/sort-list.cpp
Github Open Source
Open Source
Apache-2.0
2,021
code-camp
DandelionLU
C++
Code
275
688
// Hi, I'm Yanzhan. For more algothmic problems, visit my Youtube Channel (Yanzhan Yang's Youtube Channel) : https://www.youtube.com/channel/UCDkz-__gl3frqLexukpG0DA?view_as=subscriber or my Twitter Account (Yanzhan Yang's Twitter) : https://twitter.com/YangYanzhan or my GitHub HomePage (Yanzhan Yang's GitHub HomePage)...
9,691
https://github.com/mludowise/salsa/blob/master/SalsaCompiler/SalsaCompiler/main.swift
Github Open Source
Open Source
MIT
null
salsa
mludowise
Swift
Code
658
1,705
import Cocoa let usage = """ Usage: \((CommandLine.arguments[0] as NSString).lastPathComponent) -f input_file -e export_file [-i images_directory] [-h] \t-f input_file: Path to the .salsa file from the current directory \t-e export_file: Path and name of the exported sketch file \t-i images_directory: Directory contai...
31,267
https://github.com/kingsunc/WX_Mars/blob/master/mars/sdt/src/activecheck/basechecker.h
Github Open Source
Open Source
Apache-2.0
2,020
WX_Mars
kingsunc
C
Code
185
461
// Tencent is pleased to support the open source community by making Mars available. // Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. // Licensed under the MIT License (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the Licens...
24,762
https://github.com/CSTIB-Hotel/OTCAnalyser/blob/master/OTCAnalyser/src/uk/ac/cam/cstibhotel/otcanalyser/gui/NewDefaultChartEditorFactory.java
Github Open Source
Open Source
MIT
2,015
OTCAnalyser
CSTIB-Hotel
Java
Code
52
205
package uk.ac.cam.cstibhotel.otcanalyser.gui; import org.jfree.chart.JFreeChart; import org.jfree.chart.editor.ChartEditor; import org.jfree.chart.editor.DefaultChartEditorFactory; import java.awt.Dimension; import javax.swing.JPanel; //a fix for the "growing box problem" in library's default chart editor public clas...
23,751
https://github.com/liberatix/automaton-core/blob/master/src/automaton/tests/crypto/BUILD
Github Open Source
Open Source
MIT, LicenseRef-scancode-warranty-disclaimer
2,018
automaton-core
liberatix
Starlark
Code
151
843
cc_test( name = "test_ed25519_orlp", srcs = ["test_ed25519_orlp.cc"], size = "medium", deps = [ "//automaton/core/crypto", "//automaton/core/crypto/cryptopp", "//automaton/core/crypto/ed25519_orlp", "@gtest//:gtest_main", "@ed25519_orlp//:ed25519_orlp", ], ) cc_test( ...
42,751
https://github.com/hongshui3000/YoC-open/blob/master/components/av/include/output/output_all.h
Github Open Source
Open Source
Apache-2.0
2,021
YoC-open
hongshui3000
C
Code
38
133
/* * Copyright (C) 2018-2020 Alibaba Group Holding Limited */ #ifndef __OUTPUT_ALL_H__ #define __OUTPUT_ALL_H__ #include <aos/aos.h> #include "avutil/av_config.h" __BEGIN_DECLS__ /** * @brief regist audio output for alsa * @return 0/-1 */ int ao_register_alsa(); __END_DECLS__ #endif /* __OUTPUT_ALL_H__ */
44,864
https://github.com/openhatch/oh-missions-oppia-beta/blob/master/extensions/widgets/noninteractive/Video/Video.py
Github Open Source
Open Source
Apache-2.0
2,014
oh-missions-oppia-beta
openhatch
Python
Code
211
1,160
from core.domain import widget_domain from extensions.value_generators.models import generators class Video(widget_domain.BaseWidget): """Definition of a widget. Do NOT make any changes to this widget definition while the Oppia app is running, otherwise things will break. This class represents a wid...
2,179
https://github.com/GifPlay/pc/blob/master/resources/views/auth/register.blade.php
Github Open Source
Open Source
MIT
2,020
pc
GifPlay
Blade
Code
239
1,093
@extends('layouts.app') @section('content') <div class="container"> <div class="row justify-content-center"> <div class="col-md-8"> <div class="card"> <div class="card-header"> <div class="row"> <div class="...
9,618
https://github.com/NoSuchProcess/cw-omnibus/blob/master/MediaRouter/ActionProvider/app/src/main/java/com/commonsware/android/mrap/MainActivity.java
Github Open Source
Open Source
Apache-2.0
2,022
cw-omnibus
NoSuchProcess
Java
Code
204
753
/*** Copyright (c) 2014 CommonsWare, 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.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writin...
54,357
https://github.com/mbullington/sliver_glue/blob/master/lib/src/mobx/sliver_glue_observable_list.dart
Github Open Source
Open Source
MIT
2,020
sliver_glue
mbullington
Dart
Code
177
640
part of sliver_glue.mobx; void noOp() {} /// A sliver that shows a linear observable list from MobX. /// Changes to the list will trigger a re-render automatically. /// /// Otherwise, this sliver exposes the same properties as /// [SliverGlueList]. class SliverGlueObservableList<T> extends StatefulWidget { final O...
42,774
https://github.com/kepler53/danim/blob/master/backend/danim-back/src/main/java/com/pd/danim/Configuration/WebSecurityConfig.java
Github Open Source
Open Source
MIT, Unlicense
2,021
danim
kepler53
Java
Code
73
521
package com.pd.danim.Configuration; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Configuration; import org.springframework.http.HttpMethod; import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity; import org.s...
14,184
https://github.com/Phaka/phaka-service-wrapper/blob/master/src/Wrapper/wrapper-config.c
Github Open Source
Open Source
MIT
2,018
phaka-service-wrapper
Phaka
C
Code
368
1,379
// Copyright (c) Werner Strydom. All rights reserved. // Licensed under the MIT license. See LICENSE in the project root for license information. #include "stdafx.h" #include "wrapper-error.h" #include "wrapper-config.h" wrapper_config_t* wrapper_config_alloc(void) { wrapper_config_t* config = NULL; config = LocalA...
39,068
https://github.com/AGDholo/tp6-p01-backend-code/blob/master/database/migrations/20200827035529_users.php
Github Open Source
Open Source
MIT, Apache-2.0
2,020
tp6-p01-backend-code
AGDholo
PHP
Code
63
238
<?php use think\migration\Migrator; use think\migration\db\Column; class Users extends Migrator { /** * Migrate Up. */ public function up() { // create the table $table = $this->table('users'); $table->addColumn('name', 'string') ->addColumn('email', 'string') ...
13,502
https://github.com/danidiaz/ferruxe/blob/master/multiple_exes/src/bin/main2.rs
Github Open Source
Open Source
BSD-3-Clause
null
ferruxe
danidiaz
Rust
Code
7
20
fn main() { println!("Hello, world 2!"); }
38,832
https://github.com/devel29a/leechcraft/blob/master/src/plugins/azoth/plugins/acetamide/ircaccountconfigurationwidget.cpp
Github Open Source
Open Source
BSL-1.0
null
leechcraft
devel29a
C++
Code
426
1,078
/********************************************************************** * LeechCraft - modular cross-platform feature rich internet client. * Copyright (C) 2010-2011 Oleg Linkin * * Boost Software License - Version 1.0 - August 17th, 2003 * * Permission is hereby granted, free of charge, to any person or organiza...
11,086
https://github.com/gjkennedy/tmr/blob/master/examples/quality/beam_quality.py
Github Open Source
Open Source
Apache-2.0
2,023
tmr
gjkennedy
Python
Code
261
881
from __future__ import print_function from mpi4py import MPI from tmr import TMR import numpy as np import argparse import os from OctMeshQuality import * def get_edge_dirs_verts(elist): edge_list = elist[:] edges = [edge_list.pop()] dirs = [1] v1, vnext = edges[-1].getVertices() verts = [v1, vne...
12,935
https://github.com/trumank/DRG-Mods/blob/master/Source/FSD/Public/SDCloudFailedDelegate.h
Github Open Source
Open Source
MIT
null
DRG-Mods
trumank
C
Code
8
63
#pragma once #include "CoreMinimal.h" #include "SDCloudFailedDelegate.generated.h" UDELEGATE(BlueprintCallable) DECLARE_DYNAMIC_MULTICAST_DELEGATE(FSDCloudFailed);
51,983
https://github.com/JetBrains/intellij-community/blob/master/java/java-tests/testData/inspection/dataFlow/fixture/SuppressStaticFlags.java
Github Open Source
Open Source
Apache-2.0
2,023
intellij-community
JetBrains
Java
Code
245
657
public class SuppressStaticFlags { private static final boolean DEBUG = true; private static final int DEBUG_LEVEL = 2; private static final int FLAGS = 0x03; private static final int FLAG1 = 0x01; private static final int FLAG2 = 0x02; private static final long LONG_FLAGS = 0x03; private static final l...
42,118
https://github.com/SINTEFMedtek/CustusX/blob/master/source/resource/core/utilities/cxCustomMetaImage.h
Github Open Source
Open Source
BSD-3-Clause
2,023
CustusX
SINTEFMedtek
C++
Code
151
515
/*========================================================================= This file is part of CustusX, an Image Guided Therapy Application. Copyright (c) SINTEF Department of Medical Technology. All rights reserved. CustusX is released under a BSD 3-Clause license. ...
41,803
https://github.com/flutter/packages/blob/master/packages/espresso/android/src/main/java/androidx/test/espresso/flutter/api/WidgetMatcher.java
Github Open Source
Open Source
BSD-3-Clause
2,023
packages
flutter
Java
Code
142
393
// Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package androidx.test.espresso.flutter.api; import static com.google.common.base.Preconditions.checkNotNull; import androidx.test.espresso.flutter.model....
17,760
https://github.com/pbm96/tecnozone.es/blob/master/app/Http/Controllers/UsersController.php
Github Open Source
Open Source
MIT
2,019
tecnozone.es
pbm96
PHP
Code
163
619
<?php namespace App\Http\Controllers; use App\User; use Illuminate\Http\Request; class UsersController extends Controller { public function __construct() { $this->middleware('auth'); } public function perfil($id) { $user = User::find($id); return view('perfil_users')->wi...
49,459
https://github.com/behnaz-fs/deriv-com/blob/master/src/pages/responsible/index.js
Github Open Source
Open Source
Apache-2.0
2,021
deriv-com
behnaz-fs
JavaScript
Code
324
889
import React from 'react' import styled from 'styled-components' import Loadable from '@loadable/component' import SecureAccount from './_securing-account' import { SEO, SectionContainer, Container, Flex, Show } from 'components/containers' import Layout from 'components/layout/layout' import { Header, Text } from 'com...
17,060
https://github.com/zignartech/iotadd-wallet.c/blob/master/iota.c/src/client/api/v1/response_error.h
Github Open Source
Open Source
Apache-2.0
2,021
iotadd-wallet.c
zignartech
C
Code
65
208
// Copyright 2021 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 #ifndef __CLIENT_API_V1_RES_ERR_H__ #define __CLIENT_API_V1_RES_ERR_H__ #include <stdint.h> #include "cJSON.h" /** * @brief Node API error response * */ typedef struct { char *code; ///< an error code from node response char *msg; ///<...
13,580
https://github.com/onepercentclub/bluebottle/blob/master/bluebottle/notifications/migrations/0003_notificationplatformsettings.py
Github Open Source
Open Source
BSD-2-Clause
2,023
bluebottle
onepercentclub
Python
Code
86
409
# -*- coding: utf-8 -*- # Generated by Django 1.11.15 on 2019-11-06 08:28 from __future__ import unicode_literals from django.db import migrations, models import multiselectfield.db.fields class Migration(migrations.Migration): dependencies = [ ('notifications', '0002_message_custom_message'), ] ...
28,613
https://github.com/angel12/pywemo/blob/master/pywemo/ouimeaux_device/api/xsd/device.py
Github Open Source
Open Source
BSD-3-Clause, MIT
2,017
pywemo
angel12
Python
Code
5,552
21,170
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated Thu Jan 31 15:50:44 2013 by generateDS.py version 2.8b. # import sys import getopt import re as re_ import base64 from datetime import datetime, tzinfo, timedelta etree_ = None Verbose_import_ = False ( XMLParser_import_none, XMLParser_import_lxml, XM...
7,682
https://github.com/myplanetdigital/bal-util/blob/master/src/test/compare-test.coffee
Github Open Source
Open Source
MIT
null
bal-util
myplanetdigital
CoffeeScript
Code
204
888
# Import {expect,assert} = require('chai') joe = require('joe') balUtil = require('../../') # ===================================== # Tests # ------------------------------------- # Version Compare joe.describe 'versionCompare', (describe,it) -> # Prepare versionCompareTestData = [ ['1.1.0', '<', '1.2.0', true]...
40,251
https://github.com/k-yomo/eitan/blob/master/src/eitan_service/internal/csrf/csrfcheck.go
Github Open Source
Open Source
Apache-2.0
2,021
eitan
k-yomo
Go
Code
59
197
package csrf import "net/http" // NewCSRFCheckMiddleware initializes middleware that checks custom header to prevent csrf attack func NewCSRFCheckMiddleware(enable bool) func(next http.Handler) http.Handler { return func(next http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http....
54,192
https://github.com/adenardin/cemiterio/blob/master/resources/frontend/src/app/moradores/moradores-listar/moradores-listar.component.ts
Github Open Source
Open Source
MIT
null
cemiterio
adenardin
TypeScript
Code
54
211
import { Component, OnInit } from '@angular/core'; import { MoradoresService } from 'src/app/services/moradores.service'; @Component({ selector: 'app-moradores-listar', templateUrl: './moradores-listar.component.html', styleUrls: ['./moradores-listar.component.css'] }) export class MoradoresListarComponent impl...
38,945
https://github.com/carlvine500/server/blob/master/src/main/java/org/domeos/framework/api/consolemodel/LoadBalancer/LoadBalancerDetail.java
Github Open Source
Open Source
Apache-2.0
2,017
server
carlvine500
Java
Code
152
568
package org.domeos.framework.api.consolemodel.LoadBalancer; import org.domeos.framework.api.model.LoadBalancer.related.LoadBalanceType; import org.domeos.framework.api.model.LoadBalancer.related.LoadBalancerPort; import org.domeos.framework.api.model.deployment.Deployment; import java.util.List; /** * Created by xx...
44,080
https://github.com/ShabbirHasan1/fastglue/blob/master/examples/path/main.go
Github Open Source
Open Source
MIT
2,022
fastglue
ShabbirHasan1
Go
Code
94
336
package main import ( "flag" "fmt" "log" "net/http" "time" "github.com/valyala/fasthttp" "github.com/zerodha/fastglue" ) var ( addr = flag.String("addr", ":8080", "TCP address to listen to") ) func main() { flag.Parse() g := fastglue.New() g.GET("/", handleIndex) g.GET("/{name:^[a-zA-Z]+$}", handleInde...
23,999