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/Romzromme/titaniumbane/blob/master/client/lib/lib/ammo.js
Github Open Source
Open Source
MIT
2,016
titaniumbane
Romzromme
JavaScript
Code
67
158
// Due to a bug when minifying ammo.js, physics completely mess up // No idea why, but ammo.js was already minified and perhaps another minification screws up some things // Meteor doesn't provide a way for us to ignore some files from minification, we have to introduce // a hacky way to load the file manually // See h...
33,374
https://github.com/mryp/kkde/blob/master/WinFormsUI/Docking/FloatWindow.cs
Github Open Source
Open Source
MIT
2,022
kkde
mryp
C#
Code
805
3,359
// ***************************************************************************** // // Copyright 2004, Weifen Luo // All rights reserved. The software and associated documentation // supplied hereunder are the proprietary information of Weifen Luo // and are supplied subject to licence terms. // // WinFormsUI L...
42,506
https://github.com/thiagogaia/simpleGridMaterial/blob/master/app/ng-simple-grid.js
Github Open Source
Open Source
MIT
2,018
simpleGridMaterial
thiagogaia
JavaScript
Code
973
3,545
(function(window, angular) { var handleSticky = function(elmt) { var element = elmt.querySelector('.simple-grid-pagination'), helper = elmt.querySelector('#sticky-helper'); if (!element || !helper) { return; } if (elmt.scrollTop + elmt.offsetHeight <= helper.offsetTop + 56) { elem...
30,493
https://github.com/mishani0x0ef/FluentValidation.Configuration/blob/master/FluentValidation.Configuration.Tests/TestResources/Person.cs
Github Open Source
Open Source
Apache-2.0
2,018
FluentValidation.Configuration
mishani0x0ef
C#
Code
177
374
using System; using System.Collections.Generic; using System.Text.RegularExpressions; namespace FluentValidation.Configuration.Tests.TestResources { public class Person { public string NameField; public int Id { get; set; } public string Surname { get; set; } public string Fore...
49,100
https://github.com/matoruru/purescript-react-material-ui-svgicon/blob/master/src/MaterialUI/SVGIcon/Icon/FormatTextdirectionLToR.js
Github Open Source
Open Source
MIT
null
purescript-react-material-ui-svgicon
matoruru
JavaScript
Code
3
31
exports.formatTextdirectionLToRImpl = require('@material-ui/icons/FormatTextdirectionLToR').default;
41,912
https://github.com/running-elephant/datart/blob/master/frontend/src/app/pages/MainPage/pages/VizPage/ChartPreview/components/ControllerPanel/components/RangValueFilter.tsx
Github Open Source
Open Source
Apache-2.0
2,023
datart
running-elephant
TSX
Code
244
607
/** * Datart * * Copyright 2021 * * 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 t...
22,857
https://github.com/kowsisoundhar12/connectedhomeip/blob/master/scripts/tools/check_test_pics.py
Github Open Source
Open Source
Apache-2.0
null
connectedhomeip
kowsisoundhar12
Python
Code
279
640
#!/usr/bin/env python3 # # Copyright (c) 2022 Project CHIP 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 applic...
24,319
https://github.com/bowmark/allauth.desktop/blob/master/src/AllAuth.Desktop/App/Config.cs
Github Open Source
Open Source
Apache-2.0
null
allauth.desktop
bowmark
C#
Code
421
1,550
using System; using System.IO; using AllAuth.Lib; using IniParser.Model; namespace AllAuth.Desktop.App { internal static class Config { public const int TrialLengthDays = 14; public static string AppLogLevel => _configData["Application"]["LogLevel"]; public static bool AppAutoUpdate =...
25,620
https://github.com/the-sagar/Dynamic-Sustainable-wayfinding/blob/master/wayfinding-app/src/components/SearchSuggestor/index.tsx
Github Open Source
Open Source
MIT
2,021
Dynamic-Sustainable-wayfinding
the-sagar
TSX
Code
235
852
import React, {useState} from 'react'; import { View, StyleSheet, FlatList, NativeSyntheticEvent, TextInputFocusEventData } from 'react-native'; import { List, Searchbar, useTheme } from 'react-native-paper'; import tailwind from 'tailwind-rn'; import Highlighter from './Highlighter'; type Props = { onIconPress?: (s...
45,375
https://github.com/bocke/nmh/blob/master/uip/whatnowsbr.h
Github Open Source
Open Source
BSD-3-Clause
2,022
nmh
bocke
C
Code
43
73
/* whatnowsbr.h -- the WhatNow shell * * This code is Copyright (c) 2017, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. */ int WhatNow(int, char **) NORETURN;
26,325
https://github.com/ThanhHuyenMTA/Web_DienThoaiDiDong/blob/master/Web_DienThoaiDiDong_1/Web_DienThoaiDiDong_1/MvcApplication8/Models/sanpham.cs
Github Open Source
Open Source
MIT
2,018
Web_DienThoaiDiDong
ThanhHuyenMTA
C#
Code
245
599
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated....
48,280
https://github.com/glfreitas/bloqueiaUSB/blob/master/uSenha.pas
Github Open Source
Open Source
MIT
null
bloqueiaUSB
glfreitas
Pascal
Code
100
399
unit uSenha; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.Buttons, Vcl.ExtCtrls; type TFormSenha = class(TForm) Panel1: TPanel; GroupBox1: TGroupBox; Edit1: TEdit; BitBtn1:...
20,475
https://github.com/thuansb/webfontloader/blob/master/spec/modules/custom_spec.js
Github Open Source
Open Source
Apache-2.0
2,022
webfontloader
thuansb
JavaScript
Code
158
661
describe('modules.Custom', function () { var Custom = webfont.modules.Custom, FontFamily = webfont.FontFamily, Any = jasmine.Matchers.Any; describe('insert links correctly', function () { var fakeDomHelper = null, load = null; function notifySheetsLoaded() { var argsForCall = fak...
25,123
https://github.com/xutengx/data-structure/blob/master/leetcode/editor/cn/239-sliding-window-maximum.cpp
Github Open Source
Open Source
MIT
null
data-structure
xutengx
C++
Code
296
1,031
//给你一个整数数组 nums,有一个大小为 k 的滑动窗口从数组的最左侧移动到数组的最右侧。你只可以看到在滑动窗口内的 k 个数字。滑动窗口每次只向右移动一位 //。 // // 返回滑动窗口中的最大值。 // // // // 示例 1: // // //输入:nums = [1,3,-1,-3,5,3,6,7], k = 3 //输出:[3,3,5,5,6,7] //解释: //滑动窗口的位置 最大值 //--------------- ----- //[1 3 -1] -3 5 3 6 7 3 // 1 [3 -1 -3] 5 ...
22,919
https://github.com/andrewdai05/plutonem/blob/master/extensions/pluto.rs
Github Open Source
Open Source
BSD-3-Clause
2,021
plutonem
andrewdai05
Rust
Code
1,803
6,758
pub const true_: u32 = 1; pub const false_: u32 = 0; pub const __bool_true_false_are_defined: u32 = 1; pub const _STDINT_H: u32 = 1; pub const _FEATURES_H: u32 = 1; pub const _DEFAULT_SOURCE: u32 = 1; pub const __GLIBC_USE_ISOC2X: u32 = 0; pub const __USE_ISOC11: u32 = 1; pub const __USE_ISOC99: u32 = 1; pub const __U...
50,927
https://github.com/x893675/hal9k/blob/master/pkg/logger/logger.go
Github Open Source
Open Source
MIT
null
hal9k
x893675
Go
Code
502
1,522
package logger import ( "context" "fmt" "io" "os" "runtime" "strings" "sync/atomic" "time" ) type Level uint32 const ( CriticalLevel Level = iota ErrorLevel WarnLevel InfoLevel DebugLevel ) func (level Level) String() string { switch level { case DebugLevel: return "debug" case InfoLevel: return...
27,616
https://github.com/bjoernQ/bluepet/blob/master/pet/src/lib.rs
Github Open Source
Open Source
MIT
2,021
bluepet
bjoernQ
Rust
Code
2,048
7,271
#![no_std] use mos6502::Memory; use core::cell::RefCell; pub mod io; use io::Io; use io::Keyboard; use io::Storage; const ROM_C000: &'static [u8] = include_bytes!("../rom/rom-b-c000.bin"); const ROM_D000: &'static [u8] = include_bytes!("../rom/rom-b-d000.bin"); const ROM_E000: &'static [u8] = include_bytes!("../rom...
42,316
https://github.com/spboyer/tattoocoder/blob/master/content/themes/astro/partials/navigation.hbs
Github Open Source
Open Source
MIT
2,018
tattoocoder
spboyer
null
Spoken
32
144
{{! NAVIGATION - Configuration of this file is not required. }} <div class="navwrap"> <ul class="menu"> {{#foreach navigation}} <li class="nav-{{slug}}{{#if current}} nav-current{{/if}}" role="presentation"><a href="{{url absolute="true"}}">{{label}}</a></li> {{/foreach}} </ul> <div class="toggle">...
17,107
https://github.com/corda/bank-in-a-box/blob/master/clients/FrontEnd/bank-in-a-box/src/constants/APIERRORS.ts
Github Open Source
Open Source
Apache-2.0
2,020
bank-in-a-box
corda
TypeScript
Code
108
254
export const axiosCancelErrorMessage = "CANCELLED BECAUSE NEW REQUEST'"; export const DUPLICATEATTACHMENTEXCEPTION = 'DuplicateAttachmentException'; export const EXPIREDTOKENERROR = 'Access token expired'; export const STARTDATEERROR = 'Start date cannot be in past'; export const OVERDRAFTERROR = 'Current accou...
21,232
https://github.com/MarceloJoseML/px-ios/blob/master/MercadoPagoSDK/MercadoPagoSDK/UI/BankDeals/PXBankDealComponentRenderer.swift
Github Open Source
Open Source
MIT
2,019
px-ios
MarceloJoseML
Swift
Code
193
849
// // PXBankDealComponentRenderer.swift // MercadoPagoSDK // // Created by AUGUSTO COLLERONE ALFONSO on 23/4/18. // Copyright © 2018 MercadoPago. All rights reserved. // import UIKit class PXBankDealComponentRenderer: NSObject { let IMAGE_VIEW_HEIGHT: CGFloat = 40 func render(_ component: PXBankDealComp...
41,511
https://github.com/merravid/WinLess/blob/master/WinLess/Forms/aboutForm.cs
Github Open Source
Open Source
Apache-2.0
2,019
WinLess
merravid
C#
Code
65
200
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.IO; using WinLess.Helpers; using System.Text.RegularExpressions; namespace WinLess { public partial class aboutForm : Form { ...
3,174
https://github.com/starbeast/url_shortener/blob/master/frontend/src/routes/topLevelRouteHandlers.ts
Github Open Source
Open Source
MIT
2,021
url_shortener
starbeast
TypeScript
Code
39
90
import * as React from "react"; import { Main } from "./Main"; import { UserDashboard } from "./UserDashboard"; export type RouteHandler = React.FunctionComponent<any> & { route: string; exactRoute?: boolean; public?: boolean; }; export const topLevelRouteHandlers: RouteHandler[] = [Main, UserDashboard];
6,614
https://github.com/ErickWendel/yumda/blob/master/amazon-linux-2/build/specs/lambda2/ghc-hslua.spec
Github Open Source
Open Source
MIT, LGPL-2.0-only, LGPL-2.0-or-later
2,020
yumda
ErickWendel
null
Spoken
212
717
# https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name hslua Name: ghc-%{pkg_name} Version: 0.3.10 Release: 1.1%{?dist} Summary: Lua language interpreter embedded in Haskell License: MIT URL: http://hackage.haskell.org/package/%{pkg_name} Source0: ...
47,492
https://github.com/lamergood/retail-ui/blob/master/packages/react-ui/internal/NativeDateInput/NativeDateInput.tsx
Github Open Source
Open Source
MIT
null
retail-ui
lamergood
TypeScript
Code
141
512
import React from 'react'; import { Nullable } from '../../typings/utility-types'; import { getDateForNative, getDateForComponent } from './utils'; import { jsStyles } from './NativeDateInput.styles'; export interface NativeDateInputProps { onValueChange?: (value: string) => void; value: Nullable<string>; minD...
48,429
https://github.com/fossasia/open-event-frontend/blob/master/app/extensions/ember-table/component.js
Github Open Source
Open Source
Apache-2.0
2,023
open-event-frontend
fossasia
JavaScript
Code
11
37
import component from 'ember-table/components/ember-table/component'; import layout from './template'; component.reopen({ layout });
32,120
https://github.com/sArianV/real-js/blob/master/src/components/h-navbar/navBar.js
Github Open Source
Open Source
MIT
null
real-js
sArianV
JavaScript
Code
78
312
import React from 'react'; import { NavLink } from 'react-router-dom'; import Style from './h-navbar.module.css' //importar iconos export default function ListRouter() { return ( <ul className={[Style.hlist,Style.navbar].join(' ')}> <li> <NavLink to="/" classNam...
12,368
https://github.com/noclicknoscreen/EC-Inspiration/blob/master/NFCReader/_wip versions/EC-SimpleConnectAndSendOsc/EC-SimpleConnectAndSendOsc.ino
Github Open Source
Open Source
MIT
2,017
EC-Inspiration
noclicknoscreen
C++
Code
114
275
/* This example connects to a WPA encrypted Wifi network. Then it prints the MAC address of the Wifi module, the IP address obtained, and other network details. Circuit: * Arduino Primo or STAR OTTO or Uno WiFi Developer Edition (with WiFi Link firmware running) created 13 July 2010 by dlf (Metodo2 srl) mod...
5,476
https://github.com/bgoonz/UsefulResourceRepo2.0/blob/master/GIT-USERS/lydia/DefinitelyTyped/types/material-ui-pagination/index.d.ts
Github Open Source
Open Source
MIT
2,022
UsefulResourceRepo2.0
bgoonz
TypeScript
Code
51
156
// Type definitions for material-ui-pagination 1.0 // Project: https://github.com/lo-tp/material-ui-pagination // Definitions by: m0a <https://m0a.github.io> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 import * as React from 'react'; export interface PaginationProps { ...
8,043
https://github.com/virtuoso98/mooc-fi-java-part-ii/blob/master/part13-Part13_10.Greeter/src/main/java/application/GreeterApplication.java
Github Open Source
Open Source
MIT
null
mooc-fi-java-part-ii
virtuoso98
Java
Code
128
489
package application; import javafx.application.Application; import static javafx.application.Application.launch; import javafx.geometry.Insets; import javafx.geometry.Pos; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.control.Label; import javafx.scene.control.TextField; import ja...
52,648
https://github.com/CMP-Studio/DawnChorus/blob/master/app/components/editAlarmScreen.js
Github Open Source
Open Source
MIT
2,021
DawnChorus
CMP-Studio
JavaScript
Code
1,332
4,957
import React, { PropTypes } from 'react'; import { StyleSheet, View, Image, Dimensions, TouchableOpacity, Text, TextInput, } from 'react-native'; import * as Animatable from 'react-native-animatable'; import TimePicker from './timePicker'; import ChorusListing from './chorusListing'; import ChorusEdito...
38,535
https://github.com/daggerok/parcel-examples/blob/master/rxts/src/main.ts
Github Open Source
Open Source
MIT
2,020
parcel-examples
daggerok
TypeScript
Code
30
108
import { fromEvent } from 'rxjs'; fromEvent(document, 'DOMContentLoaded').subscribe((e: Event) => { const button: HTMLButtonElement = document.querySelector('#greet'); fromEvent(button, 'click').subscribe((e: Event) => { document.querySelector('#message').innerHTML = ` <h1>Hey! 📦 🚀</h1> `; }); })...
20,875
https://github.com/Ddd1101/CXShop_Mall/blob/master/waynboot-mobile-api/src/main/java/com/wayn/mobile/api/controller/message/SubmitOrderController.java
Github Open Source
Open Source
Apache-2.0
2,021
CXShop_Mall
Ddd1101
Java
Code
43
233
package com.wayn.mobile.api.controller.message; import com.alibaba.fastjson.JSON; import com.wayn.common.util.R; import com.wayn.message.core.messsage.OrderDTO; import com.wayn.mobile.api.service.IOrderService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotatio...
14,360
https://github.com/akbcd/akbcd.github.io/blob/master/themes/yilia/layout/_partial/post/date.ejs
Github Open Source
Open Source
CC-BY-4.0
2,023
akbcd.github.io
akbcd
EJS
Code
44
176
<a href="<%- url_for(post.path) %>" class="<%= class_name %>"> <time datetime="<%= date_xml(post.date) %>" itemprop="datePublished"><i class="icon-calendar icon"></i><%= date(post.date, date_format) %></time> <% if(!index && post.updated && post.updated > post.date){ %> <time datetime="<%= date_xml(post.updated) ...
47,853
https://github.com/Muteo42/CleanerX-for-Gaming/blob/master/CleanerX/Main.Designer.cs
Github Open Source
Open Source
Apache-2.0
2,022
CleanerX-for-Gaming
Muteo42
C#
Code
619
3,000
 namespace CleanerX { partial class Main { /// <summary> ///Gerekli tasarımcı değişkeni. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> ///Kullanılan tüm kaynakları temizleyin. /// </summary> ///<param na...
2,219
https://github.com/chromium/chromium/blob/master/third_party/webxr_test_pages/webxr-samples/js/cottontail/src/materials/pbr.js
Github Open Source
Open Source
MIT, BSD-3-Clause, GPL-1.0-or-later, LGPL-2.0-or-later, Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,023
chromium
chromium
JavaScript
Code
957
2,771
// Copyright 2018 The Immersive Web Community Group // // 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,...
2,782
https://github.com/m4ld1tO/R-examples/blob/master/Degeneración-Problema1.R
Github Open Source
Open Source
MIT
2,018
R-examples
m4ld1tO
R
Code
79
215
###EJEMPLO DE CICLADO EN EL METODO SIMPLEX### #Cargar librerias library(lpSolve) library(linprog) ########### Establecer funcion objeto y restricciones ########## # Maximizar #3x1 + 2x2 Sujeto a: #4x1 - x2 <= 8 #4x1 + 3x2 <= 12 #4x1 + x2 <= 8 #x1, x2 >= 0 z <- c(3, 2) A <- matrix(c(4,4,4,1,3,1), ncol = 2) b <- c(...
36,845
https://github.com/khoazany/coda/blob/master/src/lib/snarky/src/camlsnark_c/libsnark-caml/libsnark/gadgetlib1/gadgets/hashes/knapsack/tests/generate_knapsack_tests.py
Github Open Source
Open Source
MIT, Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,018
coda
khoazany
Python
Code
295
958
#!/usr/bin/env python ## # @author This file is part of libsnark, developed by SCIPR Lab # and contributors (see AUTHORS). # @copyright MIT license (see LICENSE file) import random import hashlib import struct import math def bitlength(p): return int(math.ceil(math.log(p, 2))) def SHA512_prng(i,...
47,543
https://github.com/Widsithe/dta/blob/master/front2/src/app/user/user.model.ts
Github Open Source
Open Source
MIT
null
dta
Widsithe
TypeScript
Code
85
265
export class User { id: number; lastName: string; firstName: string; mail: string; address: string; phone: string; role: string; password: string; constructor(id: number, lastName: string, firstName: string, mail: string, address: string, phone: string, role: string, pwd: string) { ...
1,775
https://github.com/ckrause/loda/blob/master/programs/oeis/156/A156037.asm
Github Open Source
Open Source
Apache-2.0
2,021
loda
ckrause
null
Spoken
27
276
; A156037: Largest nonprime < n-th prime. ; 1,1,4,6,10,12,16,18,22,28,30,36,40,42,46,52,58,60,66,70,72,78,82,88,96,100,102,106,108,112,126,130,136,138,148,150,156,162,166,172,178,180,190,192,196,198,210,222,226,228,232,238,240,250,256,262,268,270,276,280,282,292,306,310,312,316,330,336,346,348,352,358,366,372,378,382,3...
25,475
https://github.com/SmurfTec/testManagment-frontend/blob/master/src/hooks/useToggleInput.js
Github Open Source
Open Source
MIT
null
testManagment-frontend
SmurfTec
JavaScript
Code
45
114
import { useState } from 'react'; const useToggleInput = (initialState = false) => { const [state, setState] = useState(initialState); const toggleInput = (e) => { setState((st) => !st); }; const resetState = () => { setState(initialState); }; return [state, toggleInput, resetState]; }; export ...
7,515
https://github.com/mirzazadeh/prometheus-pgbouncer-exporter/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,018
prometheus-pgbouncer-exporter
mirzazadeh
Ignore List
Code
4
29
dist MANIFEST prometheus_pgbouncer_exporter.egg-info __pycache__
22,481
https://github.com/MahiBegoug/Casino/blob/master/src/Casino-Behavior-Model-Visitor/CSNBGetElementAttribute.extension.st
Github Open Source
Open Source
MIT
2,021
Casino
MahiBegoug
null
Spoken
21
63
Extension { #name : #CSNBGetElementAttribute } { #category : #'*Casino-Behavior-Model-Visitor' } CSNBGetElementAttribute >> accept: aBehaviorVisitor [ ^ aBehaviorVisitor visitGetElementAttribute: self ]
42,965
https://github.com/slashequip/sumy/blob/master/tests/Unit/SquareRootTest.php
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,021
sumy
slashequip
PHP
Code
33
116
<?php it('can square root a number', function () { $sumy = newSumy(100) ->sqrt(); expect($sumy->get()) ->toBe(10.0); }); it('can chain square root a number', function () { $sumy = newSumy(441) ->sqrt() ->sqrt(); expect($sumy->get()) ->toBe(4.58257569495584); }...
45,364
https://github.com/distriqt/robotlegs-framework/blob/master/src/robotlegs/bender/extensions/enhancedLogging/impl/LoggerProvider.as
Github Open Source
Open Source
MIT
2,021
robotlegs-framework
distriqt
null
Spoken
116
394
//------------------------------------------------------------------------------ // Copyright (c) 2009-2013 the original author or authors. All Rights Reserved. // // NOTICE: You are permitted to use, modify, and distribute this file // in accordance with the terms of the license agreement accompanying it. //-------...
3,470
https://github.com/shaie/lucenelab/blob/master/.gitignore
Github Open Source
Open Source
Apache-2.0
2,018
lucenelab
shaie
Ignore List
Code
4
16
/classes/ .project .classpath .settings/
45,400
https://github.com/evgeny-leksikov/ucx/blob/master/src/ucs/arch/ppc64/timebase.c
Github Open Source
Open Source
BSD-3-Clause
null
ucx
evgeny-leksikov
C
Code
58
229
/** * Copyright (C) Mellanox Technologies Ltd. 2001-2013. ALL RIGHTS RESERVED. * Copyright (C) UT-Battelle, LLC. 2015. ALL RIGHTS RESERVED. * * See file LICENSE for terms. */ #ifdef HAVE_CONFIG_H # include "config.h" #endif #include <ucs/sys/sys.h> #ifdef HAVE_SYS_PLATFORM_PPC_H # include <sys/platform/ppc.h> #end...
31,740
https://github.com/webn1008/AutomateThePlanet-Learning-Series/blob/master/TestCaseManager/Fidely/src/Compilation.Objects.Tests/Evaluators/TypeConversionEvaluatorTest.cs
Github Open Source
Open Source
Apache-2.0
2,019
AutomateThePlanet-Learning-Series
webn1008
C#
Code
109
503
using NUnit.Framework; using System; using System.Collections.Generic; using System.Linq; using System.Text; using Fidely.Framework.Compilation.Evaluators; using System.Linq.Expressions; using Fidely.Framework.Compilation.Objects.Evaluators; namespace Fidely.Framework.Compilation.Objects.Tests.Evaluators { [TestF...
37,458
https://github.com/gagansk/ChRIS-private/blob/master/node_modules/@patternfly/react-icons/src/icons/font-icon.js
Github Open Source
Open Source
MIT
null
ChRIS-private
gagansk
JavaScript
Code
77
369
/* This file is generated by createIcons.js any changes will be lost. */ import createIcon from '../createIcon'; const FontIcon = createIcon({ name: 'FontIcon', height: 512, width: 448, svgPath: 'M432 416h-26.7L275.5 42.7c-2.2-6.4-8.3-10.7-15.1-10.7h-72.8c-6.8 0-12.9 4.3-15.1 10.7L42.7 416H16c-8.8 0-16 7.2-16 ...
45,469
https://github.com/scheb/2fa/blob/master/src/bundle/Model/Persister/DoctrinePersister.php
Github Open Source
Open Source
MIT
2,023
2fa
scheb
PHP
Code
34
137
<?php declare(strict_types=1); namespace Scheb\TwoFactorBundle\Model\Persister; use Doctrine\Persistence\ObjectManager; use Scheb\TwoFactorBundle\Model\PersisterInterface; /** * @final */ class DoctrinePersister implements PersisterInterface { public function __construct(private ObjectManager $om) { }...
5,843
https://github.com/arechesk/SimpleGraphLib/blob/master/src/test/java/org/akulikov/SimpleGraphLib/UndirectedGraphTest.java
Github Open Source
Open Source
BSD-3-Clause
null
SimpleGraphLib
arechesk
Java
Code
83
556
package org.akulikov.SimpleGraphLib; import org.junit.Assert; import org.junit.Test; import java.util.List; public class UndirectedGraphTest { @Test public void testPathExist(){ Graph g=new UndirectedGraph(); Vertex s=g.addVertex(); Vertex n1=g.addVertex(); Vertex t=g.addVert...
36,283
https://github.com/leopf/agile/blob/master/packages/core/src/computed/index.ts
Github Open Source
Open Source
MIT
2,022
agile
leopf
TypeScript
Code
324
789
import { defineConfig } from '@agile-ts/utils'; import { CreateAgileSubInstanceInterface, shared } from '../shared'; import { Computed, ComputeFunctionType, CreateComputedConfigInterface, DependableAgileInstancesType, } from './computed'; export * from './computed'; export * from './computed.tracker'; /** * ...
44,828
https://github.com/brazhenko/ft_ssl/blob/master/cipher/des/des_ecb.c
Github Open Source
Open Source
MIT
2,020
ft_ssl
brazhenko
C
Code
124
674
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* des_ecb.c :+: :+: :+: ...
20,090
https://github.com/IBM/nesa-demo/blob/master/pages/scalars/data.py
Github Open Source
Open Source
MIT
2,022
nesa-demo
IBM
Python
Code
73
254
import os from .functions.data_processing import * home_dir = './' network = load_network(os.path.join(home_dir, 'static', 'data', 'network1.json')) scalars = create_loss_data(load_scalars(os.path.join(home_dir, 'static', 'data', 'scalars_example.json'))) roots_names, nodes, edges = create_network(network_dict=networ...
36,492
https://github.com/xsparc/iSensor-FX3-Firmware/blob/master/docs/search/files_2.js
Github Open Source
Open Source
MIT
null
iSensor-FX3-Firmware
xsparc
JavaScript
Code
6
72
var searchData= [ ['flash_2ec_356',['Flash.c',['../_flash_8c.html',1,'']]], ['flash_2eh_357',['Flash.h',['../_flash_8h.html',1,'']]] ];
7,312
https://github.com/PNadiadhara/Elite/blob/master/Elite/Firebase Helpers/AuthService.swift
Github Open Source
Open Source
MIT
2,019
Elite
PNadiadhara
Swift
Code
409
1,367
// // AuthService.swift // Elite // // Created by Manny Yusuf on 4/3/19. // Copyright © 2019 Pritesh Nadiadhara. All rights reserved. // import Foundation import FirebaseAuth protocol AuthServiceCreateNewAccountDelegate: AnyObject { func didRecieveErrorCreatingAccount(_ authservice: AuthService, error: Error)...
52,406
https://github.com/Advent-Trinity/Whitelabel/blob/master/resources/js/Components/AffiliateLink.vue
Github Open Source
Open Source
MIT
null
Whitelabel
Advent-Trinity
Vue
Code
75
273
<template> <div class=""> <p>{{ link }}</p> <form @submit.prevent="create_link" > <button v-if="link === ''" id="" class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">Generate Link</button> </form> </div> </template> <script> //import { Inertia } fr...
37,199
https://github.com/srishamharan/xGPU/blob/master/Src/Details/Vulkan/xgpu_vulkan_instance.h
Github Open Source
Open Source
MIT
2,022
xGPU
srishamharan
C
Code
169
598
namespace xgpu::vulkan { struct instance final : xgpu::system::instance { VkInstance m_VKInstance { VK_NULL_HANDLE }; HINSTANCE m_hInstance { 0 }; bool m_bValidation { false...
51,480
https://github.com/standard-things/create-esm/blob/master/script/publish.js
Github Open Source
Open Source
MIT
2,021
create-esm
standard-things
JavaScript
Code
96
334
"use strict" const execa = require("execa") const fleece = require("golden-fleece") const fs = require("fs-extra") const path = require("path") const rootPath = path.resolve(__dirname, "..") const pkgPath = path.resolve(rootPath, "package.json") const defaultScripts = { test: 'echo "Error: no test specified" && ex...
47,451
https://github.com/Aniksaha-ui/Titaswork/blob/master/resources/views/catagory/Edit.blade.php
Github Open Source
Open Source
MIT
null
Titaswork
Aniksaha-ui
PHP
Code
72
375
@extends("AdminPages.Dashboard") @section("form") <div class="form-three widget-shadow"> <div class=" panel-body-inputin"> <form class="form-horizontal" method="POST" action="{{url('/updateCatagory')}}" enctype="multipart/form-data"> {{csrf_field()}} @fo...
44,274
https://github.com/aelharrak/papyr-cms/blob/master/src/pages/login/index.js
Github Open Source
Open Source
MIT
2,020
papyr-cms
aelharrak
JavaScript
Code
29
84
import React from 'react' import LoginForm from '@/components/LoginForm' import RegisterForm from '@/components/RegisterForm' import styles from './login.module.scss' export default () => ( <div className={styles["login-page"]}> <LoginForm /> <RegisterForm /> </div> )
37,647
https://github.com/piecioshka/super-event-emitter/blob/master/.github/CHANGELOG_TEMPLATE.hbs
Github Open Source
Open Source
MIT
2,022
super-event-emitter
piecioshka
null
Spoken
75
337
# Changelog > :bulb: Are you interested project history? Great! Look below for some details. --- {{#each releases}} {{#if href}} ## :trophy: [{{title}}]({{href}}){{#if tag}} - {{isoDate}}{{/if}} :trophy: {{else}} ## :rocket: {{title}}{{#if tag}} - {{isoDate}}{{/if}} :rocket: {{/if}} {...
4,377
https://github.com/annakrystalli/taxald/blob/master/tests/testthat/test-taxald.R
Github Open Source
Open Source
MIT
2,018
taxald
annakrystalli
R
Code
71
318
library(taxald) library(dplyr) library(tictoc) testthat::test_that("we can set up a db and call basic functions", { tmp <- tempdir() Sys.setenv(TAXALD_HOME=tmp) tic() create_taxadb() toc() tic() df <- taxa_tbl(authority = "itis", schema = "hierarchy") chameleons <- df %>% filter(family == "Ch...
1,492
https://github.com/splitio/javascript-commons/blob/master/src/logger/messages/error.ts
Github Open Source
Open Source
Apache-2.0
2,021
javascript-commons
splitio
TypeScript
Code
395
1,060
import * as c from '../constants'; export const codesError: [number, string][] = [ // evaluator [c.ERROR_ENGINE_COMBINER_IFELSEIF, c.LOG_PREFIX_ENGINE_COMBINER + 'Invalid Split, no valid rules found'], // SDK [c.ERROR_LOGLEVEL_INVALID, 'logger: Invalid Log Level - No changes to the logs will be applied.'], [...
51,125
https://github.com/TheSledgeHammer/2.11BSD_X44/blob/master/lib/libc/compat-sys5/memchr.c
Github Open Source
Open Source
BSD-3-Clause, BSD-4-Clause-UC
2,023
2.11BSD_X44
TheSledgeHammer
C
Code
95
264
/* * Copyright (c) 1985 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement * specifies the terms and conditions for redistribution. */ /* * Sys5 compat routine */ #include <sys/cdefs.h> #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)memc...
45,623
https://github.com/TheJSHuA/JavaDungeons/blob/master/src/main/java/juniebyte/javadungeons/content/PumpkinPasturesBlocks.java
Github Open Source
Open Source
MIT
2,020
JavaDungeons
TheJSHuA
Java
Code
378
2,467
package juniebyte.javadungeons.content; import io.github.vampirestudios.vampirelib.utils.registry.StoneRegistry; import io.github.vampirestudios.vampirelib.utils.registry.WoodRegistry; import juniebyte.javadungeons.JavaDungeons; import juniebyte.javadungeons.blocks.*; import juniebyte.javadungeons.blocks.saplings.RedA...
29,329
https://github.com/lukasheide/fairness-comparison/blob/master/fairness/metrics/FilterSensitive.py
Github Open Source
Open Source
Apache-2.0
2,021
fairness-comparison
lukasheide
Python
Code
168
487
from fairness.metrics.Metric import Metric class FilterSensitive(Metric): def __init__(self, metric): Metric.__init__(self) self.metric = metric self.name = metric.get_name() def calc(self, actual, predicted, dict_of_sensitive_lists, single_sensitive_name, unprote...
24,268
https://github.com/rlisowski/phrase-js/blob/master/src/models/AccountDetails.ts
Github Open Source
Open Source
MIT, ISC
2,021
phrase-js
rlisowski
TypeScript
Code
318
964
/* tslint:disable */ /* eslint-disable */ /** * Phrase API Reference * * The version of the OpenAPI document: 2.0.0 * Contact: support@phrase.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ ...
29,201
https://github.com/SpirentOrion/osv/blob/master/bsd/sys/dev/random/harvest.cc
Github Open Source
Open Source
BSD-3-Clause
2,020
osv
SpirentOrion
C++
Code
654
1,445
/*- * Copyright (c) 2000-2013 Mark R V Murray * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list o...
51,032
https://github.com/SudhakarRao-SDL-MS/TcmHttpUpload/blob/master/TcmHttpUpload.sln
Github Open Source
Open Source
Apache-2.0
2,014
TcmHttpUpload
SudhakarRao-SDL-MS
null
Spoken
92
633
 Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 2012 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TcmHttpUpload.Net2", "TcmHttpUpload\TcmHttpUpload.Net2.csproj", "{4DFF84F6-6BE7-49A7-BDE4-2748DD03A657}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TcmHttpUpload.N...
16,885
https://github.com/apache/shardingsphere/blob/master/test/e2e/sql/src/test/resources/env/scenario/mask_encrypt_sharding/data/actual/init-sql/opengauss/01-actual-init.sql
Github Open Source
Open Source
Apache-2.0
2,023
shardingsphere
apache
SQL
Code
578
1,524
-- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You under the Apache License, Version 2.0 -- (the "License"); you may ...
16,226
https://github.com/ksetigui/paper_gmd-2020-50/blob/master/WRF-CHEM/chem/module_kpp_saprc99_mosaic_4bin_vbs2_Integr.F
Github Open Source
Open Source
MIT
2,020
paper_gmd-2020-50
ksetigui
null
Spoken
20,000
98,580
! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ! ! Numerical Integrator (Time-Stepping) File ! ! Generated by KPP-2.1 symbolic chemistry Kinetics PreProcessor ! (http://www.cs.vt.edu/~asandu/Software/KPP) ! KPP is distributed under GPL, the general public licence ! (http://www.gnu.org/copyleft/gpl....
43,468
https://github.com/eikster-dk/osx-setup/blob/master/scripts/zsh.sh
Github Open Source
Open Source
MIT
2,020
osx-setup
eikster-dk
Shell
Code
26
139
echo "installing oh-my-zsh" sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" echo "setting up powerlevel 10k theme" git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k echo "setting up zsh" chsh -s ...
38,083
https://github.com/ticky74/SendGrid.Core/blob/master/SendGrid.Core/Personalization.cs
Github Open Source
Open Source
MIT
null
SendGrid.Core
ticky74
C#
Code
18
49
using System.Collections.Generic; namespace SendGrid.Core { public class Personalization { public List<SendGridMailContact> To { get; set; } } }
20,868
https://github.com/DPS2004/quest/blob/master/EditorControls/GameIdControl.xaml.cs
Github Open Source
Open Source
MIT
2,022
quest
DPS2004
C#
Code
115
439
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigati...
9,468
https://github.com/Kenan-Kamel/15PuzzleAI/blob/master/Fall2021Project4_15Puzzle/Fall2021Project4_15Puzzle/src/test/java/MyTest.java
Github Open Source
Open Source
MIT
2,021
15PuzzleAI
Kenan-Kamel
Java
Code
377
1,145
import static org.junit.jupiter.api.Assertions.*; import java.util.ArrayList; import org.junit.jupiter.api.Test; class MyTest { @Test void PuzzleTest() { Puzzle p = new Puzzle(); assertNotNull(p, "the Class Puzzle didn't creat the new puzzle board correctly"); } @Test void PuzzleTest2() { ...
13,199
https://github.com/guerda/truststore/blob/master/test_truststore.py
Github Open Source
Open Source
MIT
null
truststore
guerda
Python
Code
221
1,024
import platform import socket import ssl import aiohttp import aiohttp.client_exceptions import pytest import urllib3 import urllib3.exceptions from truststore import TruststoreSSLContext successful_hosts = pytest.mark.parametrize("host", ["example.com", "1.1.1.1"]) failure_hosts_list = [ "wrong.host.badssl.com...
17,291
https://github.com/DDouteaux/MTG_Builder/blob/master/app/loader/cardTypes.js
Github Open Source
Open Source
MIT
null
MTG_Builder
DDouteaux
JavaScript
Code
193
807
function isMain(card) { return card.deckPart === 'MAIN'; } function isCreature(face) { return face.type_line.indexOf('Creature') >= 0 && face.type_line.indexOf('Land') < 0 } function isPlaneswalker(face) { return face.type_line.indexOf('Planeswalker') >= 0; } function isInstant(face) { return face.ty...
53,352
https://github.com/rmosolgo/sorbet/blob/master/dsl/Minitest.cc
Github Open Source
Open Source
Apache-2.0
2,019
sorbet
rmosolgo
C++
Code
293
1,210
#include "dsl/Minitest.h" #include "ast/Helpers.h" #include "ast/ast.h" #include "core/Context.h" #include "core/Names.h" #include "core/core.h" #include "core/errors/dsl.h" #include "dsl/dsl.h" using namespace std; namespace sorbet::dsl { unique_ptr<ast::Expression> recurse(core::MutableContext ctx, unique_ptr<ast:...
1,245
https://github.com/openharmony-sig-ci/communication_bluetooth/blob/master/interfaces/innerkits/native_cpp/framework/src/bluetooth_a2dp_src.cpp
Github Open Source
Open Source
Apache-2.0
null
communication_bluetooth
openharmony-sig-ci
C++
Code
277
1,166
/* * Copyright (C) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
38,301
https://github.com/sixhobbits/kaboom/blob/master/site/pages/pedit.tsx
Github Open Source
Open Source
MIT
null
kaboom
sixhobbits
TypeScript
Code
113
385
import * as React from "react"; import View from "comps/View"; import Head from "comps/Head"; import Pedit from "lib/pedit"; const Page: React.FC = () => { const canvasRef = React.useRef<HTMLCanvasElement>(null); React.useEffect(() => { if (!canvasRef.current) return; const canvas = canvasRef.current; const ro...
47,643
https://github.com/Egor92/TestApplications/blob/master/.Net 4.0/SendArchives/EmailSender.cs
Github Open Source
Open Source
MIT
2,021
TestApplications
Egor92
C#
Code
154
535
using System.Net; using System.Net.Mail; using System.Text; namespace SendArchives { public class EmailSender { private readonly EmailProperties _emailProperties; public EmailSender(EmailProperties emailProperties) { _emailProperties = emailProperties; } p...
14,791
https://github.com/emiliocarcanobringas/17_entrada_salida_division_variables_1_sola_linea/blob/master/17_entrada_salida_division_variables_1_sola_linea.cpp
Github Open Source
Open Source
MIT
2,020
17_entrada_salida_division_variables_1_sola_linea
emiliocarcanobringas
C++
Code
155
353
/* Este programa lee la entrada de dos números y muestra en la salida estándar el resultado de una división aquí se muestran las variables en una sola línea*/ # include <iostream> //Librería estándar de entrada o salida de datos # include <locale.h> //Librería estándar de localización (regionalización) using namespac...
44,338
https://github.com/Jodacola/strontium/blob/master/dist/messaging/IMessageInterceptor.js
Github Open Source
Open Source
MIT
2,020
strontium
Jodacola
JavaScript
Code
4
18
export {}; //# sourceMappingURL=IMessageInterceptor.js.map
39,793
https://github.com/khanfarhan10/PixelLib/blob/master/setup.py
Github Open Source
Open Source
MIT
2,021
PixelLib
khanfarhan10
Python
Code
89
235
from setuptools import setup,find_packages setup(name= "pixellib", version='0.5.2', description='PixelLib is a library used for easy implementation of semantic and instance segmentation of objects in images and videos with few lines of code.PixelLib makes it possible to train a custom segmentation model us...
3,549
https://github.com/baophuc27/grpc/blob/master/src/grpc-client.options.ts
Github Open Source
Open Source
MIT
null
grpc
baophuc27
TypeScript
Code
26
98
import {ClientOptions, Transport} from '@nestjs/microservices' import {join} from 'path' export const grpcClientOptions: ClientOptions ={ transport: Transport.GRPC, options: { url:' 0.0.0.0:5000', package: 'user', protoPath: join(__dirname,'./protos/user.proto') }, }
21,721
https://github.com/ckamtsikis/cmssw/blob/master/Validation/CheckOverlap/python/g4TestOverlap_cfg.py
Github Open Source
Open Source
Apache-2.0
2,022
cmssw
ckamtsikis
Python
Code
81
251
import FWCore.ParameterSet.Config as cms #------------------------------------------------------------ # This is a test of overlaps which use only Geant4 tool. # To start it names of Physical volumes should be provides. # It is possible to check overlap check parameters. # Static build of Geant4 may be used #-------...
44,234
https://github.com/HowNetWorks/urlgeller/blob/master/src/backend/lib/gcloud.js
Github Open Source
Open Source
MIT
2,020
urlgeller
HowNetWorks
JavaScript
Code
45
188
let errorHandler = { report(err) { // eslint-disable-next-line no-console console.error(err); }, express(req, res, next) { next(); } }; if (process.env.NODE_ENV === "production") { require("@google-cloud/trace-agent").start(); require("@google-cloud/debug-agent").start(); errorHandler = requi...
48,094
https://github.com/smagill/dasein-cloud-core/blob/master/src/main/java/org/dasein/cloud/compute/Snapshot.java
Github Open Source
Open Source
Apache-2.0
null
dasein-cloud-core
smagill
Java
Code
516
1,268
/** * Copyright (C) 2009-2016 Dell, Inc. * See annotations for authorship information * * ==================================================================== * 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 co...
36,078
https://github.com/hslayers/hslayers-ng/blob/master/projects/hslayers-sensors/src/components/sensors/types/senslog-endpoint.type.ts
Github Open Source
Open Source
MIT
2,023
hslayers-ng
hslayers
TypeScript
Code
22
72
export type SensLogEndpoint = { url: string; user_id: number; group: string; user: string; liteApiPath?: string; mapLogApiPath?: string; senslog1Path?: string; senslog2Path?: string; };
52,175
https://github.com/Ganada-Project/SEMS-front/blob/master/app/components/Input/index.js
Github Open Source
Open Source
MIT
null
SEMS-front
Ganada-Project
JavaScript
Code
60
146
/** * * Input * */ import React, { memo } from 'react'; import PropTypes from 'prop-types'; import { Form } from './styles'; // import PropTypes from 'prop-types'; // import styled from 'styled-components'; function Input({ placeholder, type, onChange }) { return <Form placeholder={placeholder} type={type} onCh...
230
https://github.com/aburrell/apexpy/blob/master/apexpy/__init__.py
Github Open Source
Open Source
MIT
2,023
apexpy
aburrell
Python
Code
71
182
from sys import stderr # Below try..catch required for autodoc to work on readthedocs try: from apexpy import fortranapex # noqa F401 except ImportError as ierr: stderr.write("".join(["fortranapex module could not be imported. ", "apexpy probably won't work. Failed with error: ", ...
45,467
https://github.com/daughtryz/Web-TMXN/blob/master/Web/TMXN.Web.ViewModels/Teams/MostRewardedTeamsListViewModel.cs
Github Open Source
Open Source
MIT
null
Web-TMXN
daughtryz
C#
Code
22
77
using System; using System.Collections.Generic; using System.Text; namespace TMXN.Web.ViewModels.Teams { public class MostRewardedTeamsListViewModel { public IEnumerable<MostRewardedTeamViewModel> Teams { get; set; } } }
7,950
https://github.com/tunkhine126/prime-ruby-atlanta-web-042219/blob/master/prime.rb
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain
2,019
prime-ruby-atlanta-web-042219
tunkhine126
Ruby
Code
18
44
def prime?(x) if x < 2 return false else (2..x-1).none? {|n| x % n == 0} end end
42,783
https://github.com/goldbdaniel/inventory-extraction/blob/master/src/util/platform.h
Github Open Source
Open Source
LicenseRef-scancode-warranty-disclaimer, Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,020
inventory-extraction
goldbdaniel
C
Code
237
499
/******************************************************************************* * * * 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 * * Unl...
30,290
https://github.com/orientalperil/rdbms_export_import/blob/master/.env
Github Open Source
Open Source
MIT
2,021
rdbms_export_import
orientalperil
Shell
Code
3
99
DATABASE_URL=sqlite:////Users/haitran/repos/Django-Poll-App/db.sqlite3 #DATABASE_URL=sqlite:////Users/haitran/repos/Django-Poll-App/development.sqlite3 #DATABASE_URL=sqlite:////Users/haitran/repos/Django-Poll-App/production.sqlite3
25,223
https://github.com/lobotomised/dbbackup/blob/master/src/Backup.php
Github Open Source
Open Source
MIT
null
dbbackup
lobotomised
PHP
Code
133
774
<?php declare(strict_types=1); namespace Lobotomised\Dbbackup; use Illuminate\Support\Facades\Storage; use Symfony\Component\Process\Process; class Backup { public function run(): bool { $this->gitignore(); $client = $this->createMysqlConfFile(config('database.connections.mysql.username'),...
21,964
https://github.com/ssalevan/sqlg/blob/master/sqlg-core/src/main/java/org/umlg/sqlg/structure/topology/Topology.java
Github Open Source
Open Source
MIT
null
sqlg
ssalevan
Java
Code
7,470
26,427
package org.umlg.sqlg.structure.topology; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.node.ArrayNode; import com.fasterxml.jackson.databind.node.ObjectNode; import com.google.common.base.Preconditions; import org.apache.commo...
50,761
https://github.com/YZ576023775/bi_development_source_code/blob/master/bi-admin-api/src/main/java/org/java/bi/admin/web/BCorpInfoController.java
Github Open Source
Open Source
MIT
2,020
bi_development_source_code
YZ576023775
Java
Code
470
2,600
package org.java.bi.admin.web; import io.swagger.annotations.Api; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.java.bi.admin.util.GetCurrentUser; import org.java.bi.admin.vo.BCorpInfoVo; import org.java.bi.core.util.CharUtil; import org.java.bi.core.util.ResponseUtil;...
38,653
https://github.com/anuvaaranee0502/aa5270_CodeLab1_Midterm/blob/master/aa5270_CodeLab1_Midterm/Assets/Scripts/Anuva Scripts/UtilScript.cs
Github Open Source
Open Source
Unlicense
null
aa5270_CodeLab1_Midterm
anuvaaranee0502
C#
Code
43
108
using System.Collections; using System.Collections.Generic; using UnityEngine; using System.IO; public class UtilScript : MonoBehaviour { public static string ReadStringFromFile (string path, string fileName){ StreamReader sr = new StreamReader (path + "/" + fileName); string result = sr.ReadToEnd (); sr.Clos...
1,516
https://github.com/ispras/qdt/blob/master/qemu/runtime_qemu_model.py
Github Open Source
Open Source
BSD-3-Clause
2,022
qdt
ispras
Python
Code
792
2,205
__all__ = [ "RQOMTree" , "RQOMType" , "RQObjectProperty" , "RQInstance" ] from .qom_common import ( QOMPropertyTypeLink, QOMPropertyTypeString, QOMPropertyTypeBoolean, QOMPropertyTypeInteger, QOMPropertyValue ) from common import ( lazy ) from debug import ( TYPE_CODE_PTR ) from c...
36,800