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/islamshu/adsspy/blob/master/resources/views/frontend/products.blade.php
Github Open Source
Open Source
MIT
null
adsspy
islamshu
PHP
Code
41
184
<div class="products" id="products"> <div class="container"> <h2 class="text-center">our products</h2> <div class="row"> @foreach ($products as $item) <div class="product col-sm-12 col-md-6 col-lg-4 text-center wow animate__bounceInUp" data-wow-of...
26,495
https://github.com/ebi-uniprot/uniprot-covid-client/blob/master/src/messages/state/__tests__/messagesReducers.spec.ts
Github Open Source
Open Source
MIT
2,023
uniprot-covid-client
ebi-uniprot
TypeScript
Code
180
490
import axios from 'axios'; import MockAdapter from 'axios-mock-adapter'; import { addMessage, deleteMessage } from '../messagesActions'; import messagesReducers from '../messagesReducers'; import { MessageFormat, MessageLevel, MessageType, } from '../../types/messagesTypes'; const dateNow = 1542736574043; jest.s...
22,290
https://github.com/Thomas-Frew/The-Democracy-of-Art/blob/master/tdoa_exhibition_review_post.php
Github Open Source
Open Source
Apache-2.0
2,019
The-Democracy-of-Art
Thomas-Frew
PHP
Code
140
513
<?php // Top-Level Connection and Session Elements (non-update variation) if(!isset($_SESSION)) { session_start(); } if(!isset($_SESSION['user_id'])) { include_once('tdoa_database_tools.php'); load(); } else { include_once('tdoa_database_tools.php'); include_once('database_connection/connect_db.php'); } if(...
5,891
https://github.com/FallenDev/ReSharper.EnhancedTooltip/blob/master/source/GammaJul.ReSharper.EnhancedTooltip/Presentation/IdentifierTooltipContent.cs
Github Open Source
Open Source
Apache-2.0
2,021
ReSharper.EnhancedTooltip
FallenDev
C#
Code
108
299
using System.Collections.Generic; using JetBrains.UI.Icons; using JetBrains.UI.RichText; using JetBrains.Util; namespace GammaJul.ReSharper.EnhancedTooltip.Presentation { public class IdentifierTooltipContent : TooltipContent { public IconId? Icon { get; set; } public RichText? Description { get; set; } p...
25,464
https://github.com/PickHD/e-kuisioner-app/blob/master/app/views/auth/reqTokenPage.ejs
Github Open Source
Open Source
MIT
2,021
e-kuisioner-app
PickHD
EJS
Code
90
417
<div class="row" id="req-token-section"> <h1>Permintaan Ulang Token</h1> <div class="wishes-concept"> <img src="/static/img/wishes_concept.svg" alt="wishes-concept"> </div> <div class="req-form"> <form action="/auth/request-token" method="POST" autocomplete="on"> <div class="form-row"> <di...
36,710
https://github.com/raffitamizian/AwsWatchman/blob/master/Watchman.Engine/Generation/ServiceAlarmConfigExtensions.cs
Github Open Source
Open Source
Apache-2.0
2,022
AwsWatchman
raffitamizian
C#
Code
48
160
using Watchman.Configuration.Generic; namespace Watchman.Engine.Generation { static class ServiceAlarmConfigExtensions { public static TAlarmConfig OverrideWith<TAlarmConfig>(this TAlarmConfig serviceConfig, TAlarmConfig resourceConfig) where TAlarmConfig : class, IServiceAlarmConfig<TAlarm...
15,968
https://github.com/cloudzfy/leetcode/blob/master/src/380.insert_delete_getrandom_o_1/code.cpp
Github Open Source
Open Source
MIT
2,016
leetcode
cloudzfy
C++
Code
158
392
class RandomizedSet { private: vector<int> nums; unordered_map<int, int> m; public: /** Initialize your data structure here. */ RandomizedSet() { srand(time(0)); } /** Inserts a value to the set. Returns true if the set did not already contain the specified element. */ bool inse...
17,210
https://github.com/motion-work/headless-neos-nuxt-kickstart/blob/master/components/content/Image.vue
Github Open Source
Open Source
MIT
2,021
headless-neos-nuxt-kickstart
motion-work
Vue
Code
33
118
<template> <img :src="image.uri" :alt="image.alt" v-lazy-load> </template> <script> export default { props: ['__typename', 'type', 'identifier', 'group', 'options', 'image', 'link'] } </script> <style lang="scss" scoped> img { height: auto; width: auto; max-width: 100%; } </style>
33,979
https://github.com/Vinotha16/WIN_ROLLBACK/blob/master/templates/linux_actualfacts/centos8/suaccess_57_actual.fact
Github Open Source
Open Source
BSD-3-Clause
2,021
WIN_ROLLBACK
Vinotha16
Shell
Code
55
192
#!/bin/bash a=$(cat /etc/pam.d/su | grep "^auth.*required.*pam_wheel.so" | xargs) b=$(cat /etc/group | egrep "wheel:x:10:[a-z]+") cmd="${a}","${b}" if [ $(sudo grep '^auth.*required.*pam_wheel.so' /etc/pam.d/su | wc -l) -eq 0 ] || [ $(sudo egrep "wheel:x:10:[a-z]+" /etc/group | wc -l) -eq 0 ]; then echo "{ \"suacces...
40,935
https://github.com/BhuwanUpadhyay/12-safely-exchanging-information-across-microservices/blob/master/order-service/src/main/java/io/github/bhuwanupadhyay/order/infrastructure/brokers/rabbitmq/OrderEventSource.java
Github Open Source
Open Source
Apache-2.0
2,021
12-safely-exchanging-information-across-microservices
BhuwanUpadhyay
Java
Code
25
160
package io.github.bhuwanupadhyay.order.infrastructure.brokers.rabbitmq; import org.springframework.cloud.stream.annotation.Input; import org.springframework.cloud.stream.annotation.Output; import org.springframework.messaging.MessageChannel; import org.springframework.messaging.SubscribableChannel; public interface O...
11,385
https://github.com/imalimin/FilmKilns/blob/master/src/al_common/include/AlTextWriter.h
Github Open Source
Open Source
MIT
2,022
FilmKilns
imalimin
C
Code
82
250
/* * Copyright (c) 2018-present, lmyooyo@gmail.com. * * This source code is licensed under the GPL license found in the * LICENSE file in the root directory of this source tree. */ #ifndef HWVC_ANDROID_ALTEXTWRITER_H #define HWVC_ANDROID_ALTEXTWRITER_H #include "AlAbsFileWriter.h" al_class AlTextWriter al_extend AlA...
21,339
https://github.com/schamberg97/bullshitMgimoProj/blob/master/software.py
Github Open Source
Open Source
Unlicense
null
bullshitMgimoProj
schamberg97
Python
Code
135
710
from myShop import MyShop from myBot import MYBOT from sMenu import Menu class software: @staticmethod def runShowTables(): #подключаем библиотеку import xml.dom.minidom as minidom from sMenu import Menu #читаем XML из файла dom = minidom.parse("myShop.xml") dom.normalize() #Читаем таблицу def ...
35,283
https://github.com/timoles/codeql/blob/master/javascript/ql/test/library-tests/frameworks/SQL/postgres2.js
Github Open Source
Open Source
MIT
2,022
codeql
timoles
JavaScript
Code
218
470
// Adapted from the documentation of https://github.com/brianc/node-postgres, // which is licensed under the MIT license; see file node-postgres-LICENSE. const pgPool = require('pg-pool'); // create a config to configure both pooling behavior // and client options // note: all config is optional and the environment...
6,231
https://github.com/RichardTiborNagy/point-cloud-visualizer/blob/master/Point Cloud Visualizer/Assets/Component Data/Values.cs
Github Open Source
Open Source
MIT
2,020
point-cloud-visualizer
RichardTiborNagy
C#
Code
78
190
using Unity.Entities; using Unity.Mathematics; namespace PointCloudVisualizer { public struct PointPosition : IComponentData { public float3 Value; public PointPosition(float3 newValue) { Value = newValue; } public static implicit operator float3(PointPosition data) => data.Value; ...
35,575
https://github.com/ChromeDevTools/devtools-frontend/blob/master/node_modules/es-abstract/2021/IsExtensible.js
Github Open Source
Open Source
BSD-3-Clause, MIT
2,023
devtools-frontend
ChromeDevTools
JavaScript
Code
43
176
'use strict'; var GetIntrinsic = require('get-intrinsic'); var $Object = GetIntrinsic('%Object%'); var isPrimitive = require('../helpers/isPrimitive'); var $preventExtensions = $Object.preventExtensions; var $isExtensible = $Object.isExtensible; // https://ecma-international.org/ecma-262/6.0/#sec-isextensible-o m...
26,511
https://github.com/zhang1pr/LeetCode.js/blob/master/801-900/(855)ExamRoom.js
Github Open Source
Open Source
MIT
null
LeetCode.js
zhang1pr
JavaScript
Code
219
595
/** * @param {number} N */ var ExamRoom = function(N) { this.arr = []; this.N = N; }; // time: O(1) // space: O(1) /** * @return {number} */ ExamRoom.prototype.seat = function() { if (this.arr.length == 0) { this.arr.push(0); return 0; } let d = Math.max(this.arr[0], this.N - 1 - this.arr[this...
43,151
https://github.com/wlbtm/MusicStory/blob/master/commons/src/main/java/com/cn/util/IpUtil.java
Github Open Source
Open Source
Apache-2.0
2,020
MusicStory
wlbtm
Java
Code
263
1,099
package com.cn.util; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Component; import org.springframework.web.client.RestTemplate; import javax.servlet.http.HttpServletRequest; import java.io.UnsupportedEn...
2,708
https://github.com/denandrapr/INTA/blob/master/index.php
Github Open Source
Open Source
MIT
2,018
INTA
denandrapr
Hack
Code
373
1,838
<!DOCTYPE html> <html lang="zxx"> <head> <title>Beranda</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta charset="utf-8"> <script> addEventListener("load", function () { setTimeout(hideURLbar, 0); }, false); function hideURLbar() { window.scrollTo(0, 1); } </script...
46,513
https://github.com/callstack/react-native-paper/blob/master/src/components/Checkbox/Checkbox.tsx
Github Open Source
Open Source
MIT
2,023
react-native-paper
callstack
TSX
Code
243
552
import * as React from 'react'; import { GestureResponderEvent, Platform } from 'react-native'; import CheckboxAndroid from './CheckboxAndroid'; import CheckboxIOS from './CheckboxIOS'; import { useInternalTheme } from '../../core/theming'; import type { ThemeProp } from '../../types'; export type Props = { /** ...
19,847
https://github.com/Shreyanshmmgn/Pokemon-Masters/blob/master/Assets/Scripts/cameraMovement.cs
Github Open Source
Open Source
MIT
null
Pokemon-Masters
Shreyanshmmgn
C#
Code
79
230
using System.Collections; using System.Collections.Generic; using UnityEngine; public class cameraMovement : MonoBehaviour { // Start is called before the first frame update // public Camera camera_1; [SerializeField] public Transform g1,g2; [SerializeField] public Vector2 intialPosition; ...
27,872
https://github.com/matoruru/purescript-react-material-ui-svgicon/blob/master/src/MaterialUI/SVGIcon/Icon/Restaurant.purs
Github Open Source
Open Source
MIT
null
purescript-react-material-ui-svgicon
matoruru
PureScript
Code
45
133
module MaterialUI.SVGIcon.Icon.Restaurant ( restaurant , restaurant_ ) where import Prelude (flip) import MaterialUI.SVGIcon.Type (SVGIcon, SVGIcon_) import React (unsafeCreateElement, ReactClass) as R foreign import restaurantImpl :: forall a. R.ReactClass a restaurant :: SVGIcon restaurant = flip (R.unsa...
26,567
https://github.com/bradunov/shkola/blob/master/questions/numbers/q00012/iter.lua
Github Open Source
Open Source
MIT
2,021
shkola
bradunov
Lua
Code
20
67
array_number = {} array_number[1] = math.random(5) factor = math.random(6) + 1; for i = 2,7 do array_number[i] = array_number[i-1]+factor; end
7,967
https://github.com/AntoineGRoy/literacy-data-api/blob/master/test/cacheManager.spec.js
Github Open Source
Open Source
MIT
2,021
literacy-data-api
AntoineGRoy
JavaScript
Code
285
861
const sinon = require('sinon'); const proxyquire = require('proxyquire'); const sandbox = sinon.createSandbox(); describe('CacheManager', () => { let memcached; let cache; let params; beforeEach(() => { cache = { jobId: 'fake-job', token: 'th1s1safak3t0k3n' }; memcached = { set: s...
2,712
https://github.com/Genbox/SimpleS3-Ext/blob/master/src/SimpleS3.Core/Network/Requests/Buckets/GetBucketTaggingRequest.cs
Github Open Source
Open Source
MIT
2,022
SimpleS3-Ext
Genbox
C#
Code
88
239
using Genbox.SimpleS3.Core.Abstracts.Enums; using Genbox.SimpleS3.Core.Common.Marshal; namespace Genbox.SimpleS3.Core.Network.Requests.Buckets { /// <summary> /// Returns the tag set associated with the bucket. To use this operation, you must have permission to perform the s3:GetBucketTagging action. /// ...
5,675
https://github.com/RozzaaqAbdul/klinikkeuangan/blob/master/cms/cmskeuangan/views/v_header.php
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, MIT
2,020
klinikkeuangan
RozzaaqAbdul
PHP
Code
62
257
<header class="main-header"> <!-- Logo --> <a href="index.html" class="logo"> <!-- mini logo --> <div class="logo-mini"> <span class="light-logo"><img src="<?php echo base_url(); ?>images/logo-light.png" alt="logo"></span> <span class="dark-logo"><img src="<?php echo base_url(); ?>images/logo-d...
39,779
https://github.com/sushilkumarss-sdn/medulla/blob/master/deploy/tidb-cluster/Tiltfile
Github Open Source
Open Source
Apache-2.0
2,021
medulla
sushilkumarss-sdn
Starlark
Code
44
472
k8s_yaml(helm('.', name='tidb-cluster', namespace='tidb-cluster', values=['./values.tilt.yaml'])) k8s_kind('TidbCluster', pod_readiness='ignore') k8s_resource( workload='tidb-cluster', resource_deps=['tidb-scheduler'], objects=['tidb-cluster:namespace'], labels=['tidb-cluster'] ) k8s_resource( ne...
30,605
https://github.com/michaeldaou/scala/blob/master/test/files/neg/inlineMaxSize.scala
Github Open Source
Open Source
BSD-3-Clause
2,021
scala
michaeldaou
Scala
Code
100
134
// not a JUnit test because of https://github.com/scala-opt/scala/issues/23 class C { @inline final def f = 0 @inline final def g = f + f + f + f + f + f + f + f + f + f @inline final def h = g + g + g + g + g + g + g + g + g + g @inline final def i = h + h + h + h + h + h + h + h + h + h @inline final def j ...
24,708
https://github.com/knight666/exlibris/blob/master/Projects/FrameworkGL/Application.h
Github Open Source
Open Source
MIT
null
exlibris
knight666
C
Code
170
581
#ifndef _APPLICATION_H_ #define _APPLICATION_H_ #include <GL/glew.h> #include <GLFW/glfw3.h> #include <glm/glm.hpp> namespace Framework { class Application { public: Application(int a_ArgumentCount, const char** a_Arguments); virtual ~Application(); GLFWwindow* GetWindow() const; virtual bool ParseC...
14,862
https://github.com/forgottenlands/ForgottenCore406/blob/master/src/server/game/Entities/Item/Container/Bag.h
Github Open Source
Open Source
OpenSSL
null
ForgottenCore406
forgottenlands
C
Code
318
774
/* * Copyright (C) 2005 - 2012 MaNGOS <http://www.getmangos.com/> * * Copyright (C) 2008 - 2012 Trinity <http://www.trinitycore.org/> * * Copyright (C) 2010 - 2012 ProjectSkyfire <http://www.projectskyfire.org/> * * Copyright (C) 2011 - 2012 ArkCORE <http://www.arkania.net/> * * This program is free software; ...
5,990
https://github.com/r-azo-r/REEF/blob/master/reef-runtime-local/src/main/java/com/microsoft/reef/runtime/local/driver/Container.java
Github Open Source
Open Source
Apache-2.0
2,014
REEF
r-azo-r
Java
Code
314
586
/** * Copyright (C) 2014 Microsoft Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
47,482
https://github.com/sscharfenberg/imperiumstellarum/blob/master/resources/src/game/components/Modal/Modal.vue
Github Open Source
Open Source
MIT
null
imperiumstellarum
sscharfenberg
Vue
Code
314
1,104
<script> /****************************************************************************** * Component: ModalDialogue *****************************************************************************/ import { useI18n } from "vue-i18n"; import { computed, onMounted, onUnmounted } from "vue"; import GameButton from "Compone...
20,570
https://github.com/ajomuch92/metro-button-flutter/blob/master/example/lib/main.dart
Github Open Source
Open Source
MIT
2,021
metro-button-flutter
ajomuch92
Dart
Code
151
612
import 'package:flutter/material.dart'; import 'package:metro_button/metro_button.dart'; void main() { runApp(MyApp()); } class MyApp extends StatelessWidget { // This widget is the root of your application. @override Widget build(BuildContext context) { return MaterialApp( title: 'Metro Buttons Dem...
16,280
https://github.com/1757WestwoodRobotics/mentorbot/blob/master/commands/setreturn.py
Github Open Source
Open Source
MIT
2,021
mentorbot
1757WestwoodRobotics
Python
Code
49
170
from commands2 import CommandBase from subsystems.drivesubsystem import DriveSubsystem class SetReturn(CommandBase): def __init__(self, drive: DriveSubsystem) -> None: CommandBase.__init__(self) self.drive = drive def initialize(self) -> None: currentPose = self.drive.odometry.getPo...
13,853
https://github.com/tresata-opensource/quartz-couchdb-store/blob/master/src/main/java/org/motechproject/quartz/CouchDbTrigger.java
Github Open Source
Open Source
BSD-2-Clause
2,013
quartz-couchdb-store
tresata-opensource
Java
Code
519
1,963
package org.motechproject.quartz; import org.codehaus.jackson.annotate.JsonIgnore; import org.codehaus.jackson.annotate.JsonProperty; import org.codehaus.jackson.annotate.JsonSubTypes; import org.codehaus.jackson.annotate.JsonTypeInfo; import org.quartz.Calendar; import org.quartz.JobDataMap; import org.quartz.JobKey;...
46,873
https://github.com/Smurf-IV/Krypton-Toolkit-Suite-Extended-NET-4.7/blob/master/Source/Krypton Toolkit Suite Extended/Shared/Toolkit Settings/Classes/Palette Explorer/Colours/AllMergedColourSettingsManager.cs
Github Open Source
Open Source
BSD-3-Clause
2,020
Krypton-Toolkit-Suite-Extended-NET-4.7
Smurf-IV
C#
Code
2,323
9,525
#region BSD License /* * Use of this source code is governed by a BSD-style * license that can be found in the LICENSE.md file or at * https://github.com/Wagnerp/Krypton-Toolkit-Suite-Extended-NET-5.470/blob/master/LICENSE * */ #endregion using Core.Classes; using Microsoft.WindowsAPICodePack.Dialogs; using Syst...
13,110
https://github.com/Warm-men/tuya-panel-kit/blob/master/src/components/tab/utils.js
Github Open Source
Open Source
MIT
null
tuya-panel-kit
Warm-men
JavaScript
Code
116
292
import React from 'react'; const toArray = children => { const arr = []; React.Children.forEach(children, child => { if (child) { arr.push(child); } }); return arr; }; const getActiveIndex = (children, activeKey) => { const arr = toArray(children); for (let i = 0; i < arr.length; i++) { ...
22,720
https://github.com/brianorion/TSA-Software-App-2020-/blob/master/ActualApp/Wireframe/kv/homepagestudent.kv
Github Open Source
Open Source
MIT
2,020
TSA-Software-App-2020-
brianorion
Kvlang
Code
367
1,431
<HomePageStudent>: canvas: Color: rgba: 251/255, 232/255, 233/255, 1 # to put a background image on the login screen Rectangle: pos: self.pos size: self.size FloatLayout: # Bottom Border GridLayout: pos_hint: {"top": 0.042, ...
39,688
https://github.com/vskrip/twitter-clone-api/blob/master/routes/api.php
Github Open Source
Open Source
MIT
null
twitter-clone-api
vskrip
PHP
Code
111
442
<?php use Illuminate\Http\Request; /* |-------------------------------------------------------------------------- | API Routes |-------------------------------------------------------------------------- | | Here is where you can register API routes for your application. These | routes are loaded by the RouteServicePr...
32,097
https://github.com/qq1588518/sqlcipher-ormlite-database-android-studio/blob/master/app/src/main/java/com/j256/ormlite/dao/RawRowObjectMapper.java
Github Open Source
Open Source
BSD-3-Clause
2,022
sqlcipher-ormlite-database-android-studio
qq1588518
Java
Code
267
534
package com.j256.ormlite.dao; import java.sql.SQLException; import com.j256.ormlite.field.DataType; import com.j256.ormlite.stmt.QueryBuilder; /** * Parameterized row mapper that takes output from the {@link GenericRawResults} and returns a T. Is used in the * {@link Dao#queryRaw(String, DataType[], RawRowObjectMa...
46,744
https://github.com/AliYildizoz909/fast-wiki/blob/master/src/Components/Home.tsx
Github Open Source
Open Source
MIT
null
fast-wiki
AliYildizoz909
TypeScript
Code
176
528
import React, { Component, FunctionComponent } from 'react' import { Button, Col, Container, Row } from 'react-bootstrap' import IWikipediaService from '../Services/IWikipediaService' import Search from '../Components/Search' import Content from '../Components/Content' interface IProps { route?: any WikiServic...
50,878
https://github.com/DeepInThought/swim/blob/master/swim-system-java/swim-core-java/swim.collections/src/test/java/swim/collections/FingerTrieSeqSpec.java
Github Open Source
Open Source
Apache-2.0
null
swim
DeepInThought
Java
Code
874
2,271
// Copyright 2015-2020 SWIM.AI 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 ...
8,984
https://github.com/knutwalker/covidd/blob/master/src/main.rs
Github Open Source
Open Source
Apache-2.0, MIT
2,020
covidd
knutwalker
Rust
Code
774
2,639
/*! Render COVID-19 case data for Dresden in the terminal # Installation ## Prerequisites This tool is build with Rust so you need to have a rust toolchain and cargo installed. If you don't, please visit [https://rustup.rs/](https://rustup.rs/) and follow their instructions. ## Building The preferred way is to ru...
43,198
https://github.com/yoanlcq/fate/blob/master/game/src/platform/sdl2_platform.rs
Github Open Source
Open Source
Apache-2.0, MIT
2,021
fate
yoanlcq
Rust
Code
421
1,852
use std::os::raw::c_void; use super::{Platform, Settings}; use fate::math::Extent2; use event::Event; use mouse_cursor::MouseCursor; use dmc; use sdl2::{self, Sdl, EventPump}; use sdl2::event::{Event as Sdl2Event, WindowEvent}; use sdl2::video::{Window, GLContext}; use sdl2::mouse::{Cursor as Sdl2Cursor, SystemCursor a...
4,803
https://github.com/flyskywhy/node_modules-appium/blob/master/node_modules/appium-windows-driver/test/unit/winappdriver-specs.js
Github Open Source
Open Source
Apache-2.0
2,017
node_modules-appium
flyskywhy
JavaScript
Code
112
397
// transpile:mocha import chai from 'chai'; import chaiAsPromised from 'chai-as-promised'; import WinAppDriverServer from '../../lib/winappdriver'; import { withMocks } from 'appium-test-support'; chai.should(); chai.use(chaiAsPromised); function buildWinAppDriverOpts () { return { app: 'foo', host: 'loca...
50,988
https://github.com/chrisnankam24/SGP/blob/master/application/models/Portingsmsnotification_model.php
Github Open Source
Open Source
MIT
null
SGP
chrisnankam24
PHP
Code
136
592
<?php /* * Generated by CRUDigniter v2.3 Beta * www.crudigniter.com */ class Portingsmsnotification_model extends CI_Model { function __construct() { parent::__construct(); } /* * Get portingsmsnotification by portingSmsNotificationId */ function get_portingsmsnotificat...
6,818
https://github.com/arushton/drive-ami/blob/master/setup.py
Github Open Source
Open Source
BSD-3-Clause
2,015
drive-ami
arushton
Python
Code
33
196
#!/usr/bin/env python from setuptools import setup requirements = ['pexpect', 'astropy', 'colorlog', ] setup( name="drive-ami", version="0.8.1", packages=['driveami'], scripts=['bin/driveami_filter_rawfile_listing.py', 'bin/driveami_list_rawfiles.py', ...
37,711
https://github.com/alsotang/ko-sleep/blob/master/test/test.js
Github Open Source
Open Source
MIT
2,018
ko-sleep
alsotang
JavaScript
Code
52
110
const test = require('ava') const sleep = require('..') test('should sleep', async function (t) { var start = new Date(); await sleep(30); t.true((new Date - start) >= 30) }) test('should sleep with human time string', async function (t) { var start = new Date(); await sleep('30ms'); t.true((new Date - s...
43,662
https://github.com/AlexRogalskiy/java-framework-compare/blob/master/micronaut-driver/src/main/java/com/datastax/examples/micronaut/RestInterface.java
Github Open Source
Open Source
Apache-2.0
2,020
java-framework-compare
AlexRogalskiy
Java
Code
121
499
package com.datastax.examples.micronaut; import java.util.ArrayList; import java.util.List; import java.util.Optional; import java.util.UUID; import io.micronaut.http.annotation.Body; import io.micronaut.http.annotation.Controller; import io.micronaut.http.annotation.Delete; import io.micronaut.http.annotation.Get; i...
2,340
https://github.com/zhaofeng092/python_auto_office/blob/master/B站/【pandas高级应用】Python自动化办公/0801/代码/016/016.py
Github Open Source
Open Source
MIT
2,022
python_auto_office
zhaofeng092
Python
Code
69
351
import pandas as pd # students = pd.read_excel('C:/Temp/Student_score.xlsx', sheet_name='Students') # scores = pd.read_excel('C:/Temp/Student_score.xlsx', sheet_name='Scores') # table = students.merge(scores, how='left', on='ID').fillna(0) # table.Score = table.Score.astype(int) # print(table) # students = pd.read_ex...
15,005
https://github.com/nikitanamdev/AlgoBook/blob/master/python/sorting/QuickSort.py
Github Open Source
Open Source
MIT
2,022
AlgoBook
nikitanamdev
Python
Code
148
315
def quicksort(array): # If the input array contains fewer than two elements, # then return it as the result of the function if len(array) < 2: return array low, same, high = [], [], [] # Select your `pivot` element randomly pivot = array[randint(0, len(array) - 1)] for item in arr...
20,599
https://github.com/ihunterghost/bd-project/blob/master/resources/views/crudresponsesist/readresponse.blade.php
Github Open Source
Open Source
MIT
null
bd-project
ihunterghost
PHP
Code
101
578
@extends('layouts.app') @section('content') <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nunito"> </head> <body> <div class="container"> <div class="row ju...
35,120
https://github.com/prashantsri/test/blob/master/fundoo/node_modules/@angular/core/src/render3/state.d.ts
Github Open Source
Open Source
MIT
2,019
test
prashantsri
TypeScript
Code
811
1,560
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { Sanitizer } from '../sanitization/security'; import { TElementNode, TNode, TViewNode } from './interfaces/no...
8,324
https://github.com/TuriansNotBad/dks3airestoration/blob/master/done/table_ai_common.lua
Github Open Source
Open Source
MIT
2,020
dks3airestoration
TuriansNotBad
Lua
Code
5,165
13,617
--- -- Handles table goals and table logic. -- @module TableAI g_LogicTable = {} -- table that holds all logic tables g_GoalTable = {} -- table that holds all goal tables Logic = nil -- global table that will be accessible by callers of Register functions Goal = nil -- global table that will be accessible by callers ...
11,405
https://github.com/xKerman/restricted-unserialize/blob/master/src/ArrayHandler.php
Github Open Source
Open Source
MIT
2,019
restricted-unserialize
xKerman
PHP
Code
178
497
<?php /** * handler for PHP serialized array */ namespace xKerman\Restricted; /** * Handler for PHP serialiezed array */ class ArrayHandler implements HandlerInterface { /** @var ParserInterface $expressionParser parser for unserialize expression */ private $expressionParser; /** @var integer */ c...
32,210
https://github.com/Bing-ok/yql-plus/blob/master/yqlplus_engine/src/test/java/com/yahoo/yqlplus/engine/java/SourceNamedBindingModule.java
Github Open Source
Open Source
Apache-2.0
2,022
yql-plus
Bing-ok
Java
Code
128
382
/* * Copyright (c) 2016 Yahoo Inc. * Licensed under the terms of the Apache version 2.0 license. * See LICENSE file for terms. */ package com.yahoo.yqlplus.engine.java; import com.google.common.collect.ImmutableMap; import com.google.inject.AbstractModule; import com.google.inject.name.Names; import com.yahoo.yql...
32,415
https://github.com/maddox/magic-cards-docker/blob/master/script/restart
Github Open Source
Open Source
MIT
2,018
magic-cards-docker
maddox
Shell
Code
3
16
#!/bin/bash script/stop script/start
45,051
https://github.com/Pckool/GCG/blob/master/GCG_Source.build/module.django.template.engine.cpp
Github Open Source
Open Source
MIT
null
GCG
Pckool
C++
Code
20,000
80,269
/* Generated code for Python source for module 'django.template.engine' * created by Nuitka version 0.5.28.2 * * This code is in part copyright 2017 Kay Hayen. * * 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 o...
7,899
https://github.com/thuannguyen0101/demo_backpack/blob/master/resources/views/admin/test_summary/test_summary_script.blade.php
Github Open Source
Open Source
MIT
null
demo_backpack
thuannguyen0101
PHP
Code
100
437
@push('after_scripts') <script> if (typeof registerShowDetailLinkOnTestSummaryAction != "function") { function registerShowDetailLinkOnTestSummaryAction() { var $modal = $( '<div class="modal fade dtr-bs-modal" role="dialog">' + '<div clas...
23,660
https://github.com/R-Autopsy-translation/autopsy/blob/master/Core/src/org/sleuthkit/autopsy/modules/vmextractor/VirtualMachineFinder.java
Github Open Source
Open Source
Zlib, LGPL-2.0-or-later, GPL-1.0-or-later, LicenseRef-scancode-oracle-bcl-javase-javafx-2012, Apache-2.0, CC-BY-3.0, LicenseRef-scancode-unknown-license-reference, LGPL-2.1-or-later, WTFPL
2,019
autopsy
R-Autopsy-translation
Java
Code
830
2,005
/* * Autopsy Forensic Browser * * Copyright 2012-2016 Basis Technology Corp. * Contact: carrier <at> sleuthkit <dot> org * * 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...
26,693
https://github.com/BestItPartner/dex_ethereum_contract/blob/master/contracts/ERC20.sol
Github Open Source
Open Source
MIT
null
dex_ethereum_contract
BestItPartner
Solidity
Code
25
56
pragma solidity ^0.6.0; interface ERC20 { function transfer(address receiver, uint amount) external returns (bool); function transferFrom(address sender, address receiver, uint amount) external returns (bool); }
38,666
https://github.com/Bartosz-D3V/open-id3-editor/blob/master/app/api/id3v1/domain/id3V1-0.ts
Github Open Source
Open Source
MIT
2,019
open-id3-editor
Bartosz-D3V
TypeScript
Code
99
215
import Genre from '@api/id3/domain/genre'; export default class { public readonly header = 'TAG'; public title: string; public artist: string; public album: string; public year: number; public comment: string; public genre: Genre; [key: string]: string | number | Genre; constructor( title?: stri...
45,217
https://github.com/MadRabbit/a-plus-forms/blob/master/src/inputs/text.js
Github Open Source
Open Source
ISC
2,022
a-plus-forms
MadRabbit
JavaScript
Code
58
130
/* @flow */ import React from 'react'; import field from '../core/field'; import trimmer from '../utils/trimmer'; import type { InputProps } from '../types'; type TextInputProps = InputProps & { type?: string }; @field() @trimmer() export default class TextInput extends React.Component<TextInputProps> { render() ...
27,031
https://github.com/AlexX333BY/boost-file-storage/blob/master/BoostFileStorage/common/socket_message.h
Github Open Source
Open Source
MIT
null
boost-file-storage
AlexX333BY
C
Code
59
270
#pragma once namespace boost_file_storage { enum message_type { // common commands OK, DISCONNECT, FILE, ERROR_COMMON, // client commands UPLOAD_FILE_QUERY, //server commands FILE_TRANSFER_SUCCESS, ERROR_TOO_BIG, ERROR_NO_SPACE, WARNING_NAME_EXISTS }; struct socket_message { public: ...
41,066
https://github.com/Acidburn0zzz/NfWebCrypto/blob/master/plugin/ppapi/ppapi/c/ppp.h
Github Open Source
Open Source
Apache-2.0
null
NfWebCrypto
Acidburn0zzz
C
Code
669
1,339
/* Copyright (c) 2012 The Chromium Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* From ppp.idl modified Tue Nov 13 08:48:25 2012. */ #ifndef PPAPI_C_PPP_H_ #define PPAPI_C_PPP_H_ #include "ppapi/c/pp_macros.h" #include "ppa...
5,166
https://github.com/atlasapi/atlas-deer/blob/master/atlas-api/src/main/java/org/atlasapi/system/HealthController.java
Github Open Source
Open Source
Apache-2.0
2,021
atlas-deer
atlasapi
Java
Code
121
538
package org.atlasapi.system; import java.io.IOException; import java.util.Map; import java.util.Map.Entry; import javax.servlet.ServletOutputStream; import javax.servlet.http.HttpServletResponse; import com.datastax.driver.core.Session; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.goog...
24,240
https://github.com/ghiscoding/Angular-Slickgrid/blob/master/test/rxjsResourceStub.ts
Github Open Source
Open Source
MIT
2,023
Angular-Slickgrid
ghiscoding
TypeScript
Code
231
588
import { RxJsFacade } from '@slickgrid-universal/common'; import { EMPTY, iif, isObservable, firstValueFrom, Observable, ObservableInput, of, OperatorFunction, ObservedValueOf, Subject, switchMap, } from 'rxjs'; import { takeUntil } from 'rxjs/operators'; export class RxJsResourceStub implements RxJsFacade { readonl...
40,798
https://github.com/njw1204/BOJ-AC/blob/master/problem/01000~09999/02675/2675.py3.py
Github Open Source
Open Source
MIT
2,019
BOJ-AC
njw1204
Python
Code
13
62
for i in range(int(input())): inp=input().split() c=int(inp[0]) text=list(inp[1]) for j in text: print(j*c,end='') print()
21,613
https://github.com/tatskie/Job-Hunt/blob/master/resources/views/backEnd/skills/create.blade.php
Github Open Source
Open Source
MIT
null
Job-Hunt
tatskie
PHP
Code
120
490
@extends('backLayout.app') @section('title') Create new Skill @stop @section('content') <h1>Create New Skill</h1> <hr/> {!! Form::open(['url' => 'skills', 'class' => 'form-horizontal']) !!} <div class="form-group {{ $errors->has('skill') ? 'has-error' : ''}}"> {!! Form::l...
931
https://github.com/JonForShort/nes-emulator/blob/master/source/jones/ppu/ppu_render_context.hh
Github Open Source
Open Source
MIT
2,018
nes-emulator
JonForShort
C++
Code
245
615
// // MIT License // // Copyright 2019 // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publi...
5,428
https://github.com/ma-sadeghi/OpenPNM/blob/master/openpnm/materials/_bundle_of_tubes.py
Github Open Source
Open Source
MIT
2,021
OpenPNM
ma-sadeghi
Python
Code
619
2,313
import numpy as np from openpnm.network import Cubic from openpnm.utils import logging, Project, prettify_logger_message from openpnm.geometry import GenericGeometry from openpnm.phases import GenericPhase from openpnm.topotools import trim import openpnm.models as mods logger = logging.getLogger(__name__) class Bund...
41,669
https://github.com/o-hayato/tsundoku-accelerator/blob/master/src/functions/prisma.ts
Github Open Source
Open Source
MIT
null
tsundoku-accelerator
o-hayato
TypeScript
Code
23
57
import { PrismaClient } from '@prisma/client' const prisma = new PrismaClient({ log: ['error', 'info', 'warn'] }) export default prisma export * from '@prisma/client'
32,969
https://github.com/code-attic/Symbiote/blob/master/tests/Core.Tests/Log/with_test_logger.cs
Github Open Source
Open Source
Apache-2.0
2,022
Symbiote
code-attic
C#
Code
32
106
using Machine.Specifications; using Symbiote.Core; using Symbiote.Core.Log.Impl; namespace Core.Tests.Log { public class with_test_logger : with_assimilation { protected static TestLogProvider LogProvider; private Establish context = () => { ...
217
https://github.com/matthewgthomas/hierarchies-gifts/blob/master/run analyses.r
Github Open Source
Open Source
MIT
null
hierarchies-gifts
matthewgthomas
R
Code
176
430
## ## Analysis code for "Similar social complexity and cooperation in independent pastoralist societies" ## ## Author: Matthew Gwynfryn Thomas (@matthewgthomas) ## ## Packages used: ## - futile.logger ## - tidyverse ## - stringr ## - forcats ## - data.table ## - Matrix ## - RColorBrewer ## - rstanarm ## - loo (currentl...
49,357
https://github.com/christiandavid/gatsby-theme-byfolio/blob/master/@christiandavid/gatsby-theme-byfolio/src/css/home.css.js
Github Open Source
Open Source
MIT
2,020
gatsby-theme-byfolio
christiandavid
JavaScript
Code
81
273
import { css } from "@emotion/core" const styles = { blackColor: css` color: #000; `, dataSection: css` height: 100%; color: #fff; `, dataContainer: css` margin: 0 auto; padding: 0 3rem; max-width: 700px; height: 100%; `, dataContent: css` padding-top: 20vh; .Typewrite...
45,855
https://github.com/c3woc/c3woc-info-beamer/blob/master/content/node.lua
Github Open Source
Open Source
MIT
null
c3woc-info-beamer
c3woc
Lua
Code
106
316
gl.setup(NATIVE_WIDTH, NATIVE_HEIGHT) local interval = 30 function make_switcher(childs, interval) local next_switch = 0 local child local function next_child() child = childs.next() next_switch = sys.now() + interval end local function draw() if sys.now() > next_switch the...
1,505
https://github.com/emilva/spring-cloud-aws/blob/master/spring-cloud-aws-messaging/src/test/java/org/springframework/cloud/aws/messaging/listener/MessageListenerContainerTest.java
Github Open Source
Open Source
Apache-2.0
null
spring-cloud-aws
emilva
Java
Code
1,030
4,883
/* * Copyright 2013-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
44,054
https://github.com/cryptoyyxx/starcoin-java/blob/master/src/main/java/org/starcoin/serde/format/jackson/utils/MappingUtils.java
Github Open Source
Open Source
Apache-2.0
2,021
starcoin-java
cryptoyyxx
Java
Code
105
436
package org.starcoin.serde.format.jackson.utils; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import org.starcoin.serde.format.*; import org.starcoin.serde.format.jackson.*; import java.util.Map; p...
20,606
https://github.com/artevance/bangsus/blob/master/resources/js/views/karyawan/Profil.vue
Github Open Source
Open Source
MIT
null
bangsus
artevance
Vue
Code
398
2,077
<template> <div class="row mt-5"> <transition name="fade" mode="out-in"> <preloader-component v-if="state.page.loading"/> <div class="col-12 col-xl-12 stretch-card" v-else> <div class="card"> <div class="card-body"> <router-link :to="{ name: 'karyawan' }"> <...
18,650
https://github.com/scala-steward/recursionz/blob/master/build.sbt
Github Open Source
Open Source
Apache-2.0
2,019
recursionz
scala-steward
Scala
Code
163
619
import enzief.Dependencies._ fork in Test in ThisBuild := true resolvers in ThisBuild ++= Seq( Resolver.sonatypeRepo("snapshots") ) lazy val root: Project = (project in file(".")) .aggregate(scalaz, eg, testz) .enablePlugins(ProjectPlugin) .settings( skip in publish := true ) lazy val scalaz: Project ...
43,490
https://github.com/inai17ibar/nnabla-rl/blob/master/reproductions/atari/c51/reproduction_results/RobotankNoFrameskip-v4_results/seed-100/evaluation_result_scalar.tsv
Github Open Source
Open Source
Apache-2.0
2,021
nnabla-rl
inai17ibar
TSV
Code
1,206
4,733
iteration mean std_dev min max median 250000 1.797 1.375 0.000 5.000 1.000 500000 3.488 1.849 0.000 8.000 4.000 750000 12.136 5.480 4.000 25.000 11.000 1000000 10.808 4.000 3.000 18.000 11.000 1250000 3.050 1.596 1.000 7.000 3.000 1500000 2.333 1.011 1.000 5.000 2.000 1750000 5.933 2.886 2.000 13.000 5.000 2000000 15.1...
33,747
https://github.com/FarisLucky/sidepi-project/blob/master/application/controllers/KelolaUser.php
Github Open Source
Open Source
MIT
null
sidepi-project
FarisLucky
PHP
Code
569
3,172
<?php defined('BASEPATH') or exit('No direct script access allowed'); class Kelolauser extends CI_Controller { public function __construct() { parent::__construct(); $this->rolemenu->init(); $this->load->library("form_validation"); } public function index() { $dat...
46,755
https://github.com/Evoltic/extended-worker/blob/master/src/useWorker.js
Github Open Source
Open Source
0BSD
2,021
extended-worker
Evoltic
JavaScript
Code
488
1,488
// inside main thread export class ExtendedWorker { constructor(worker, useAnotherExtendedWorker, orderTermination) { this.nextCallId = 0 this.worker = worker this.orderTermination = orderTermination || ((terminate) => terminate()) this.useAnotherExtendedWorker = useAnotherExtendedWorker } term...
26,398
https://github.com/tnguyen0306/vba-challenge/blob/master/VBA Script_TN.vbs
Github Open Source
Open Source
ADSL
null
vba-challenge
tnguyen0306
Visual Basic
Code
555
1,289
Sub VBAchallenge() 'assign all varable Dim lastrow As Double Dim lastcol As Double Dim ticker As String Dim yearlychange As Double Dim percentchange As Double Dim totalvol As Double Dim opencost As Double Dim closecost As Double Dim tablerow As Double Dim greatestPer As Doubl...
27,635
https://github.com/gakuzzzz/trinity/blob/master/trinity-core/src/main/scala/org/sisioh/trinity/domain/http/TrinityResponseBuilder.scala
Github Open Source
Open Source
Apache-2.0
2,013
trinity
gakuzzzz
Scala
Code
559
2,048
/* * Copyright 2010 TRICREO, Inc. (http://tricreo.jp/) * Copyright 2013 Sisioh Project and others. (http://sisioh.org/) * * 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://...
47,027
https://github.com/squakez/syndesis/blob/master/app/connector/telegram/src/main/java/io/syndesis/connector/telegram/TelegramSendMessageCustomizer.java
Github Open Source
Open Source
Apache-2.0
2,022
syndesis
squakez
Java
Code
194
488
/* * Copyright (C) 2016 Red Hat, 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 agre...
27,080
https://github.com/lanyu4377/cosmic/blob/master/packages/module/widget-break-point/components.d.ts
Github Open Source
Open Source
MIT
null
cosmic
lanyu4377
TypeScript
Code
50
214
// generated by unplugin-vue-components // We suggest you to commit this file into source control // Read more: https://github.com/vuejs/vue-next/pull/3399 declare module 'vue' { export interface GlobalComponents { ICosmicArrowDown: typeof import('~icons/cosmic/arrow-down')['default'] ICosmicArrowUp: typeof ...
35,800
https://github.com/dddddavid02/ulauncher-translate/blob/master/src/functions.py
Github Open Source
Open Source
MIT
2,022
ulauncher-translate
dddddavid02
Python
Code
28
74
def strip_list(elements): return [element for element in elements if len(element.strip()) > 0] def arg_to_help(arg): return { '-p': 'Listen to the translation', '-sp': 'Listen to the original text', }[arg]
50,137
https://github.com/crydotsnake/hyper-batman/blob/master/index.js
Github Open Source
Open Source
MIT
null
hyper-batman
crydotsnake
JavaScript
Code
45
214
const foregroundColor = '#6f6f6f' const backgroundColor = '#1b1d1e' const cursorColor = '#fcef0c' exports.decorateConfig = config => { return Object.assign({}, config, { backgroundColor, foregroundColor, cursorColor, colors: [ '#1b1d1e', '#e6dc44', ...
41,320
https://github.com/SteHeRa/year-progress-bar/blob/master/sorting-visualiser/Algorithms/quicksort.js
Github Open Source
Open Source
CC-BY-3.0
null
year-progress-bar
SteHeRa
JavaScript
Code
493
1,036
let quickAnimations = []; /*Above we are initialising array to store bars that need to be animated - in order right before a swap is performed in the bubble sort algorithm, we push the indexes of the two elements that are getting swapped into the bubbleAnimations array. We colour the two div elements (b...
31,677
https://github.com/davidchambers/an.hour.ago/blob/master/src/an.hour.ago.coffee
Github Open Source
Open Source
WTFPL
2,016
an.hour.ago
davidchambers
CoffeeScript
Code
290
684
# Helpers # ------- {defineProperty} = Object unless defineProperty? defineProperty = (object, name, descriptor) -> object.__defineGetter__ name, descriptor.get def = (object, name, get) -> defineProperty object, name, {get} now = Date.now or -> (new Date).getTime() # `NaturalDate` # ------------- class N...
18,222
https://github.com/microsoft/onnxruntime/blob/master/onnxruntime/core/mlas/lib/amd64/SconvKernelAvx.asm
Github Open Source
Open Source
MIT
2,023
onnxruntime
microsoft
Assembly
Code
1,547
5,296
;++ ; ; Copyright (c) Microsoft Corporation. All rights reserved. ; ; Licensed under the MIT License. ; ; Module Name: ; ; SconvKernelAvx.asm ; ; Abstract: ; ; This module implements the kernels for the single precision convolution ; operation. ; ; This implementation uses AVX instructions. ; ;-- .xlis...
21,596
https://github.com/stastnypremysl/ftputil/blob/master/sandbox/ftpsync-0.1/rsyncmatch.py
Github Open Source
Open Source
BSD-3-Clause, AFL-3.0, AFL-2.1
2,021
ftputil
stastnypremysl
Python
Code
1,473
4,099
import re import os import sys import loggingclass INCLUDE = "+" EXCLUDE = "-" DONE = "." class RsyncGlob(loggingclass.LoggingClass): """ A class that imitates rsync(1)'s way of include/exclude patterns. Similar to glob()/fnmatch(), but "*" doesn't match "/" - "**" does. See man rsync(1) for the ex...
201
https://github.com/ElusiveMori/YARP2/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,019
YARP2
ElusiveMori
Ignore List
Code
5
26
/_build /.vs /.vscode wurst.dependencies wurst_run\.args
51,086
https://github.com/fast01/chaosframework/blob/master/chaos/common/message/PerformanceNodeChannel.cpp
Github Open Source
Open Source
Apache-2.0
2,021
chaosframework
fast01
C++
Code
363
1,660
/* * PerformanceNodeChannel.cpp * !CHOAS * Created by Bisegni Claudio. * * Copyright 2012 INFN, National Institute of Nuclear Physics * * 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...
20,747
https://github.com/zkan/pronto-feedback/blob/master/pronto_feedback/questions/models.py
Github Open Source
Open Source
MIT
2,016
pronto-feedback
zkan
Python
Code
16
55
from __future__ import unicode_literals from django.db import models class Question(models.Model): title = models.TextField() category = models.CharField(max_length=50)
26,863
https://github.com/dinii-inc/hasura-con-2021-recap-mo-demo/blob/master/packages/hasura/migrations/1625395756522_alter_table_public_order_drop_column_price/down.sql
Github Open Source
Open Source
MIT
2,022
hasura-con-2021-recap-mo-demo
dinii-inc
SQL
Code
16
35
alter table "public"."order" alter column "price" drop not null; alter table "public"."order" add column "price" text;
31,043
https://github.com/yeyu0415/kefu/blob/master/src/main/java/com/ukefu/webim/service/es/UKAggResultExtractor.java
Github Open Source
Open Source
Apache-2.0
2,021
kefu
yeyu0415
Java
Code
181
892
package com.ukefu.webim.service.es; import java.util.ArrayList; import java.util.List; import org.elasticsearch.action.search.SearchResponse; import org.elasticsearch.search.aggregations.Aggregations; import org.elasticsearch.search.aggregations.bucket.histogram.InternalDateHistogram; import org.elasticsearch.search....
10,061
https://github.com/lefb766/mono/blob/master/mcs/errors/cs0104-4.cs
Github Open Source
Open Source
Apache-2.0
2,022
mono
lefb766
C#
Code
49
107
// CS0104: `XAttribute' is an ambiguous reference between `A.XAttribute' and `B.XAttribute' // Line: 21 using System; namespace A { class XAttribute : Attribute { } } namespace B { class XAttribute : Attribute { } } namespace C { using A; using B; [X] class Test { } }
5,156
https://github.com/inventor96/f3-boilerplate/blob/master/app/autoload/Traits/CreatedDt.php
Github Open Source
Open Source
MIT
2,022
f3-boilerplate
inventor96
PHP
Code
45
152
<?php namespace Traits; use DateTime; use DateTimeZone; trait CreatedDt { protected function get_created_dt(string $dt_val): DateTime { /** @var DateTimeZone */ $tz = \Base::instance()->srv_tz; return new DateTime($dt_val, $tz); } protected function set_created_dt(DateTime $dt): string { /** @var DateTime...
31,008
https://github.com/cogsys-tuebingen/cslibs_vectormaps/blob/master/include/cslibs_vectormaps/utility/serialization.hpp
Github Open Source
Open Source
BSD-3-Clause
null
cslibs_vectormaps
cogsys-tuebingen
C++
Code
201
645
#ifndef SERIALIZATION_HPP #define SERIALIZATION_HPP #include <yaml-cpp/yaml.h> #include <cstddef> #include <cstdint> #include <vector> namespace cslibs_vectormaps { namespace serialization { template<typename T> struct Serializer { union { T value; unsigned char bytes[sizeof(T)]; ...
30,165