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/TodorGinchev/ThePRECIOUSprojectAPP/blob/master/PRECIOUS/app/src/main/java/ui/precious/comnet/aalto/precious/ui_MainActivity.java
Github Open Source
Open Source
BSD-3-Clause
2,015
ThePRECIOUSprojectAPP
TodorGinchev
Java
Code
2,559
11,398
//Documentation for android custom views: // http://android-developers.blogspot.fi/2015/05/android-design-support-library.html //Documentation for action bar configuration: // http://blog.rhesoft.com/2015/03/30/tutorial-android-actionbar-with-material-design-and-search-field/ //Documentation for tutorial view...
5,892
https://github.com/walidbesrour/bazar-test-app/blob/master/app/build.gradle
Github Open Source
Open Source
MIT
2,020
bazar-test-app
walidbesrour
Gradle
Code
175
1,250
apply plugin: 'com.android.application' android { compileSdkVersion 30 buildToolsVersion "30.0.2" defaultConfig { applicationId "com.example.elbazar" minSdkVersion 23 targetSdkVersion 30 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.te...
2,960
https://github.com/garrettheel/aws-sdk-js-v3/blob/master/clients/client-mobile/index.ts
Github Open Source
Open Source
Apache-2.0
2,020
aws-sdk-js-v3
garrettheel
TypeScript
Code
48
129
export * from "./MobileClient"; export * from "./Mobile"; export * from "./commands/CreateProjectCommand"; export * from "./commands/DeleteProjectCommand"; export * from "./commands/DescribeBundleCommand"; export * from "./commands/DescribeProjectCommand"; export * from "./commands/ExportBundleCommand"; export * from "...
50,944
https://github.com/ishanvyas22/asset-mix/blob/master/stubs/inertia-vue/webpack.mix.js
Github Open Source
Open Source
MIT
2,023
asset-mix
ishanvyas22
JavaScript
Code
32
174
const mix = require('laravel-mix'); const path = require('path'); mix.setPublicPath('./webroot') .js('assets/js/app.js', 'webroot/js').vue() .sass('assets/sass/app.scss', 'webroot/css') .webpackConfig({ output: { chunkFilename: 'js/[name].js?id=[chunkhash]' }, resolve: {...
7,492
https://github.com/aboustayyef/lt/blob/master/app/Console/Commands/GetTweetDetails.php
Github Open Source
Open Source
MIT
null
lt
aboustayyef
PHP
Code
156
479
<?php namespace LebaneseTweets\Console\Commands; use Illuminate\Console\Command; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputArgument; class GetTweetDetails extends Command { /** * The console command name. * * @var string */ protected $name = 'lebaneseTweets:G...
41,301
https://github.com/lemms/videofix/blob/master/src/classifiers/include/mlpclassifier.h
Github Open Source
Open Source
MIT
null
videofix
lemms
C
Code
339
942
// mlpclassifier.h // Copyright Laurence Emms 2017 #ifndef MLP_CLASSIFIER #define MLP_CLASSIFIER #include <cmath> #include <string> #include <iostream> #include <numeric> #include <vector> #include <random> #include <fstream> namespace classifiers { template <typename T, typename S = size_t> class WeightLaye...
48,682
https://github.com/isaveu/CSharpTcpNetworkDummy/blob/master/NPSBDummyLib/DummyManager.cs
Github Open Source
Open Source
MIT
2,019
CSharpTcpNetworkDummy
isaveu
C#
Code
191
706
using System; using System.Collections.Generic; using System.Text; using System.Threading; using System.Threading.Tasks; namespace NPSBDummyLib { public partial class DummyManager { List<Dummy> DummyList = new List<Dummy>(); TestConfig Config = new TestConfig(); TestResultManager Tes...
5,486
https://github.com/ahmadaldabouqii/tony_cafe/blob/master/src/wordpress/wp-content/plugins/woocommerce/packages/woocommerce-blocks/assets/js/base/components/cart-checkout/payment-method-icons/utils.ts
Github Open Source
Open Source
MIT
null
tony_cafe
ahmadaldabouqii
TypeScript
Code
139
323
/** * External dependencies */ import type { PaymentMethodIcon } from '@woocommerce/type-defs/payment-method-icon'; import { isString } from '@woocommerce/types'; /** * For an array of icons, normalize into objects and remove duplicates. */ export const normalizeIconConfig = ( icons: ( PaymentMethodIcon | string ...
46,412
https://github.com/jserot/rfsm-gui/blob/master/src/command.cpp
Github Open Source
Open Source
MIT
null
rfsm-gui
jserot
C++
Code
89
184
/**********************************************************************/ /* */ /* This file is part of the RFSM package */ /* */ /* Copyright (c) 2018-prese...
4,008
https://github.com/gruntjs-updater/grunt-screencap/blob/master/tasks/screencap.js
Github Open Source
Open Source
MIT
2,015
grunt-screencap
gruntjs-updater
JavaScript
Code
118
354
/* * grunt-screencap * https://github.com/jehna/grunt-screencap * * Copyright (c) 2015 Jesse Luoto * Licensed under the MIT license. */ 'use strict'; module.exports = function(grunt) { var desktopScreenshot = require('desktop-screenshot'); grunt.registerMultiTask('screencap', 'Take automatic scree...
19,282
https://github.com/kumasento/deacon/blob/master/src/com/custom_computing_ic/maxdeep/lib/stream/BaseStream.java
Github Open Source
Open Source
MIT
2,021
deacon
kumasento
Java
Code
206
734
package com.custom_computing_ic.maxdeep.lib.stream; import com.maxeler.maxcompiler.v2.kernelcompiler.Kernel; import com.maxeler.maxcompiler.v2.kernelcompiler.KernelBase; import com.maxeler.maxcompiler.v2.kernelcompiler.types.base.DFEType; import com.maxeler.maxcompiler.v2.kernelcompiler.types.base.DFEVar; import com.m...
50,198
https://github.com/plusxp/alibabacloud-sdk/blob/master/ecs-20140526/java/src/main/java/com/aliyun/ecs20140526/models/DescribeNetworkInterfacesRequest.java
Github Open Source
Open Source
Apache-2.0
2,021
alibabacloud-sdk
plusxp
Java
Code
153
616
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.ecs20140526.models; import com.aliyun.tea.*; public class DescribeNetworkInterfacesRequest extends TeaModel { @NameInMap("RegionId") @Validation(required = true) public String regionId; @NameInMap("Tag") public java.util.Li...
43,975
https://github.com/sangramch/deepvideo/blob/master/modules/liteflownet/flow_loss.py
Github Open Source
Open Source
CC0-1.0
2,020
deepvideo
sangramch
Python
Code
246
915
# imports import torch import torch.nn as nn from .network import LiteFlowNet from modules.functional import epe_loss, cosine_loss # Pre-trained LiteFlowNet Models SIN = "./modules/liteflownet/saved_models/network-sintel.pytorch" KIT = "./modules/liteflownet/saved_models/network-kitti.pytorch" DEF = "./modules/liteflo...
23,637
https://github.com/jsdelivrbot/Dependency-Graph/blob/master/server-side/java-callgraph/src/main/java/com/bighi/se/cg/bronkerbosch/Friend.java
Github Open Source
Open Source
MIT
null
Dependency-Graph
jsdelivrbot
Java
Code
124
285
package com.bighi.se.cg.bronkerbosch; import java.io.Serializable; import java.util.HashMap; public class Friend implements Comparable, Serializable { // Basic Elements public String name; public String id; // The value in each k-v pair here is the weight of the edge between // this user and that friend. // We...
44,407
https://github.com/BuildingBridge/biznet/blob/master/bitrix/modules/intranet/lang/en/public_bitrix24/telephony/phones.php
Github Open Source
Open Source
Unlicense
2,020
biznet
BuildingBridge
PHP
Code
5
24
<? $MESS["VI_PAGE_PHONES_TITLE"] = "Phones"; ?>
47,252
https://github.com/JuKu/mmo-game-client/blob/master/game/src/main/java/com/jukusoft/mmo/client/game/MessageReceiver.java
Github Open Source
Open Source
Apache-2.0
2,018
mmo-game-client
JuKu
Java
Code
12
45
package com.jukusoft.mmo.client.game; @FunctionalInterface public interface MessageReceiver<T> { public void receive(T buffer); }
21,854
https://github.com/Pepperi-Addons/ngx-lib/blob/master/projects/ngx-lib/dialog/public-api.ts
Github Open Source
Open Source
MIT
2,021
ngx-lib
Pepperi-Addons
TypeScript
Code
24
53
/* * Public API Surface of ngx-lib/dialog */ export * from './dialog.module'; export * from './dialog.model'; export * from './dialog.component'; export * from './dialog.service';
7,257
https://github.com/tladesignz/DNATools/blob/master/tools/src/main/java/com/netzarchitekten/tools/Log.java
Github Open Source
Open Source
MIT
null
DNATools
tladesignz
Java
Code
1,687
3,956
/* DNA Android Tools. The MIT License (MIT) Copyright (c) 2015 - 2017 Die Netzarchitekten e.U., Benjamin Erhart 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, i...
34,099
https://github.com/pm5/rocks/blob/master/lib/Rocks/Models/Event.pm
Github Open Source
Open Source
MIT-0
null
rocks
pm5
Perl
Code
87
238
package Rocks::Models::Event; use Moo; use Rocks::Base; use Types::Standard qw[Str ArrayRef InstanceOf]; use Type::Params qw[compile]; use DateTime; use namespace::autoclean; has happened_at => ( is => "ro", isa => InstanceOf["DateTime"] ); has name => ( is => "ro", isa => Str ); has presentations => ( is => "ro", i...
41,176
https://github.com/Patbox/Creeperfall/blob/master/src/main/java/io/github/redstoneparadox/creeperfall/entity/CreeperfallCreeperEntity.java
Github Open Source
Open Source
MIT
null
Creeperfall
Patbox
Java
Code
244
1,139
package io.github.redstoneparadox.creeperfall.entity; import io.github.redstoneparadox.creeperfall.entity.ai.goal.CreeperfallFollowTargetGoal; import net.minecraft.entity.EntityType; import net.minecraft.entity.ai.goal.CreeperIgniteGoal; import net.minecraft.entity.ai.goal.FleeEntityGoal; import net.minecraft.entity.a...
38,227
https://github.com/ceos-seo/Data_Cube_v2/blob/master/agdc-v2/datacube/ui/click.py
Github Open Source
Open Source
Apache-2.0
2,018
Data_Cube_v2
ceos-seo
Python
Code
595
2,118
# coding=utf-8 """ Common functions for click-based cli scripts. """ from __future__ import absolute_import import functools import logging import os import re import copy import click from datacube import config, __version__ from datacube.executor import get_executor from datacube.index import index_connect from pa...
745
https://github.com/HJBowers/quick-bat/blob/master/command-line/1.1.1.sh
Github Open Source
Open Source
MIT
2,017
quick-bat
HJBowers
Shell
Code
41
121
#identify the prompt, command, options, arguments, and cursor [Projects]$ rm -f foo.txt [Projects]$ rm -f foo.txt //Prompt Command Option Argument Cursor [~]$ cd ruby [~]$ cd ruby //Prompt Command Argument Cursor [ruby]$ ls -a [ruby]$ ls -a //Prompt ...
4,680
https://github.com/KeyMaker13/portfolio/blob/master/documents/cFiles/advancedProgramming/Practice/fall2010MidtermOne.c
Github Open Source
Open Source
Zlib, Apache-2.0
null
portfolio
KeyMaker13
C
Code
306
888
#include <stdio.h> #include "genlib.h" #include "simpio.h" //question1 double *MinMax(double minMax[], int numOfElements); //question3 int IsVowel(char ch); //int removeVowelArray(char s[]); int removeVowelPointer(char *s); main(int argc, char *argv[]){ //question1 double test[] = {6.5,2.0,4.4,8.1,3.3}; double *value...
9,365
https://github.com/leo365zhou/Akso/blob/master/AksoParenet/AksoDemo/src/main/java/com/akso/java8/defaultmethod/DefaultMethodTest.java
Github Open Source
Open Source
MIT
null
Akso
leo365zhou
Java
Code
20
64
package com.akso.java8.defaultmethod; public class DefaultMethodTest { public static void main(String[] args) { MyClass test = new MyClass(); System.out.println(MyInterface1.getString()); } }
31,218
https://github.com/EnsekiTT/atcoder/blob/master/ABC/abc069/a.cpp
Github Open Source
Open Source
MIT
null
atcoder
EnsekiTT
C++
Code
28
72
#include<iostream> #include<string> #include <algorithm> using namespace std; int main() { int n, m; cin >> n >> m; cout << (n-1) * (m-1) << endl; return 0; }
36,708
https://github.com/Irushinie/Krish-LP-Training/blob/master/petsclinic-service/src/pets/pets.controller.ts
Github Open Source
Open Source
MIT
2,021
Krish-LP-Training
Irushinie
TypeScript
Code
118
442
import { Body, Controller, Delete, Get, HttpCode, NotFoundException, Param, Post, Put, Query, UsePipes, ValidationPipe } from '@nestjs/common'; import { PetCreateDto } from './PetCreate.dto'; import { PetsService } from './pets.service'; import { PetSearchDto } from './PetSearch.dto'; import { PetUpdateDto } from './Pe...
40,167
https://github.com/dzakwanzaky/kursusOnline/blob/master/resources/views/murid/header1.blade.php
Github Open Source
Open Source
MIT
2,021
kursusOnline
dzakwanzaky
PHP
Code
273
1,138
<!-- Navbar --> <link rel="stylesheet" href="{{asset('/ya')}}/bootstrap/css/bootstrap.min.css"> <style type="text/css"> .h6 { text-align: center; margin-top: 15px; font-color: #6c757d; } .modall-title { margin-left: 8em; } @media screen and (width: 375px) { .modall-title { margin-left: 5em; } ...
43,465
https://github.com/Arslan-Soomro/merakiui/blob/master/components/ui/FAQ/Centered.vue
Github Open Source
Open Source
MIT
2,022
merakiui
Arslan-Soomro
Vue
Code
630
2,688
<template> <view-component :name="name" :code="code"> <div class="py-6" slot="component"> <section class="bg-white dark:bg-gray-900"> <div class="container max-w-4xl px-6 py-10 mx-auto"> <h1 class="text-4xl font-semibold text-center text-gray-800 dark:text-whi...
20,009
https://github.com/Jbjbot/Equanim/blob/master/web/app/themes/equanim/templates/404.twig
Github Open Source
Open Source
MIT
null
Equanim
Jbjbot
Twig
Code
57
247
{% extends "base.twig" %} {% block content %} <article class="page-404" itemscope itemtype="https://schema.org/WebPage"> <section class="section__container"> <div class="section__wrapper"> <div class="section__content"> <h1 class="section__h1" itemprop="headline">{{__('404 erreur', 'jb-starter-theme')}}...
756
https://github.com/wj008t/php-beacon/blob/master/widget/Button.php
Github Open Source
Open Source
Apache-2.0
2,023
php-beacon
wj008t
PHP
Code
102
298
<?php namespace beacon\widget; use beacon\core\Field; #[\Attribute] class Button extends Field { protected array $_attrs = [ 'class' => 'form-btn' ]; public bool $offJoin = true; /** * @param array $args * @return void */ public function setting(array $args): void {...
6,471
https://github.com/zoli-fischer/o3-cms/blob/master/theme/templates/controllers/o3_cms_template_update_payment.php
Github Open Source
Open Source
MIT
null
o3-cms
zoli-fischer
PHP
Code
89
356
<?php //Require theme controller class require_once(O3_CMS_THEME_DIR.'/classes/snapfer_template_controller.php'); class o3_cms_template_update_payment extends snapfer_template_controller { public function init() { //parent init parent::init( func_get_args() ); } //update payment public function ajax_upda...
49,603
https://github.com/michaelmuenzer/skybookmarks/blob/master/src/website-scraper/lib/filename-generator/by-type.js
Github Open Source
Open Source
MIT
null
skybookmarks
michaelmuenzer
JavaScript
Code
177
550
import _, { map, includes } from 'lodash'; import { join, basename as _basename } from 'path'; import sanitizeFilename from 'sanitize-filename'; import { shortenFilename, getFilenameExtension, getFilenameFromUrl } from '../utils'; import typeExtensions from '../config/resource-ext-by-type'; export default function gen...
8,975
https://github.com/Karthik-Ragunath/DDU/blob/master/data/fast_mnist.py
Github Open Source
Open Source
MIT
2,022
DDU
Karthik-Ragunath
Python
Code
107
375
""" FastMNIST taken from: https://gist.github.com/y0ast/f69966e308e549f013a92dc66debeeb4 """ import torch from torchvision.datasets import MNIST device = torch.device("cuda" if torch.cuda.is_available else "cpu") class FastMNIST(MNIST): def __init__(self, *args, **kwargs): super().__init__(*args, **kwarg...
17,000
https://github.com/jonatanlaksamana/simplecrudLaravel/blob/master/resources/views/welcome.blade.php
Github Open Source
Open Source
MIT
null
simplecrudLaravel
jonatanlaksamana
PHP
Code
147
741
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <link rel="stylesheet" href="{{ asset('css/app.cs...
5,819
https://github.com/rimalim2009/Odaka_DNN_inverse_2011_tsunami/blob/master/6GS_Odaka_DNN_Tsunami_inverse_Sampling_window 1000-1900_rw2200_gsroundrev.py
Github Open Source
Open Source
MIT
null
Odaka_DNN_inverse_2011_tsunami
rimalim2009
Python
Code
20,000
94,014
#!/usr/bin/env python # coding: utf-8 # # SW 1100 # In[1]: import numpy as np import os #import ipdb def connect_dataset(file_list, icond_file_list, outputdir, topodx=15, roi=2500, offset=5000,gclass_num=6,test_data_num=500): """ 複数のデータセットを連結する """ #ipdb.set_trace() #Reading and combining files Decide start and end poi...
13,709
https://github.com/andrewdouglas/PipeBandGames/blob/master/PipeBandGames.ConsoleUI/MainMenu.cs
Github Open Source
Open Source
MIT
2,017
PipeBandGames
andrewdouglas
C#
Code
81
204
using PipeBandGames.ConsoleUI.Commands; namespace PipeBandGames.ConsoleUI { public sealed class MainMenu : Menu { public MainMenu() { this.Description = "Main menu"; this.MenuItems.Add(new MenuItem { Command = 'd', Text = "Data entry", Action = NoopCommand.Noop }); ...
42,065
https://github.com/TopSkySir/LTCustomProtocol/blob/master/Sources/RequestStatus/LTRequestPagingStatusProtocol.swift
Github Open Source
Open Source
MIT
null
LTCustomProtocol
TopSkySir
Swift
Code
766
2,885
// // LTRequestPagingStatusProtocol.swift // LTTableViewDemo // // Created by TopSky on 2018/3/19. // Copyright © 2018年 TopSky. All rights reserved. // import Foundation fileprivate struct LTRequestPagingStatusKey { /** 当前页码Key */ static var currentPage = "currentPage" static var isRefreshHi...
18,142
https://github.com/JackWangCUMT/JdSdk/blob/master/Source/JdSdk/Request/JingdongUnionPromotiongoodUpdateRequest.cs
Github Open Source
Open Source
MS-PL
2,021
JdSdk
JackWangCUMT
C#
Code
114
559
#region head comment /* Code generate by JdSdkTool. Copyright © starpeng@vip.qq.com 2013-07-29 22:39:05.01420 +08:00 */ #endregion using System; using System.Collections.Generic; using System.Xml.Serialization; using JdSdk.Response; using Newtonsoft.Json; namespace JdSdk.Request { /// <summary> /// 获得指定SKU ID...
20,119
https://github.com/Vloods/TransTTE_demo/blob/master/backend/app/utils.py
Github Open Source
Open Source
MIT
null
TransTTE_demo
Vloods
Python
Code
192
439
import numpy as np def haversine_np(lon1, lat1, lon2, lat2): """ Calculate the great circle distance between two points on the earth (specified in decimal degrees) All args must be of equal length. """ lon1, lat1, lon2, lat2 = map(np.radians, [lon1, lat1, lon2, lat2]) dlon = lon2 - ...
26,296
https://github.com/luk036/ckpttncpp/blob/master/lib/include/ckpttncpp/FMBiGainCalc.hpp
Github Open Source
Open Source
MIT
null
ckpttncpp
luk036
C++
Code
548
1,773
#pragma once #include "FMPmrConfig.hpp" #include "dllist.hpp" // import dllink #include "netlist.hpp" // import Netlist #include <gsl/span> // struct FMBiGainMgr; /*! * @brief FMBiGainCalc * */ class FMBiGainCalc { friend class FMBiGainMgr; public: using node_t = typename SimpleNetlist::node_t; us...
27,606
https://github.com/SaurabhSM/ews/blob/master/lib/ComplexProperties/ExtendedPropertyCollection.dart
Github Open Source
Open Source
MIT
null
ews
SaurabhSM
Dart
Code
917
2,694
/* * Exchange Web Services Managed API * * Copyright (c) Microsoft Corporation * All rights reserved. * * MIT License * * 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 restr...
16,501
https://github.com/chierrie/Tia-contract/blob/master/src/Dollar.sol
Github Open Source
Open Source
MIT
2,021
Tia-contract
chierrie
Gerber Image
Code
226
669
// SPDX-License-Identifier: MIT pragma solidity 0.6.11; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/GSN/Context.sol"; import "./ERC20/ERC20Custom.sol"; import "./Share.sol"; import "./interfaces/ITreasury.sol"; import "./interfaces/IDollar.sol...
1,134
https://github.com/papeldeorigami/dotvim/blob/master/ftplugin/ruby_pry.vim
Github Open Source
Open Source
Beerware
2,018
dotvim
papeldeorigami
Vim Script
Code
3
30
nnoremap <Leader><Leader>b orequire'pry';binding.pry<esc>:w<cr>
39,002
https://github.com/mrnustik/AwsConfiguration/blob/master/AwsConfiguration.ParameterStore/Program.cs
Github Open Source
Open Source
MIT
null
AwsConfiguration
mrnustik
C#
Code
22
113
using Microsoft.Extensions.Options; var builder = WebApplication.CreateBuilder(args); var environmentName = builder.Environment.EnvironmentName; builder.Configuration.AddSystemsManager($"/{environmentName}/"); builder.Services.Configure<MyOptions>(builder.Configuration.GetRequiredSection("MyKey")); var app = build...
42,343
https://github.com/6923403/C/blob/master/cpp11/class/workers/Commpany.h
Github Open Source
Open Source
MIT
2,020
C
6923403
C
Code
30
124
#ifndef _WORKERS_COMMPANY_H #define _WORKERS_COMMPANY_H #include <string> using std::string; class Commpany { public: Commpany(); virtual ~Commpany(); void showMenu(); void CenterControl(); void ExitProgam(); private: int Ctmp; //CpManger * setCp; }; #endif //_WORKERS_COMMPANY_H
49,486
https://github.com/p1b234/jlplib/blob/master/jlp_gseg_gnome/jlp_gseg_gnome.cpp
Github Open Source
Open Source
MIT
2,020
jlplib
p1b234
C++
Code
281
1,345
/** * \file jlp_gseg_gnome.cpp * \class JLP_Gseg_Gnome (Gnu Graphic Device) * \author JLP * \date 13/12/2016 * \brief Definition of the gnome graphic drivers for JLP_Gseg * * Class JLP_Gseg_Gnome ("Gnu Graphic Device") * Definition of the graphic drivers * used in the JLP/GNU plotting package * * JLP * Version 14/1...
35,242
https://github.com/joergreichert/fancy_LVB_Telegram_Bot/blob/master/app/helper/globalstations.js
Github Open Source
Open Source
Apache-2.0
null
fancy_LVB_Telegram_Bot
joergreichert
JavaScript
Code
102
365
const commonStationHelper = require('./commonstations') const globalStations = [] exports.isEmpty = function () { return globalStations.length === 0; } exports.getMatchingGlobalStations = function (stationName) { return commonStationHelper.getMatchingStations(globalStations, stationName) } exports.addGlobalS...
6,843
https://github.com/ElkinMedina/C-e-commerce/blob/master/forms/forms.py
Github Open Source
Open Source
MIT
null
C-e-commerce
ElkinMedina
Python
Code
37
125
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField from wtforms.fields.core import BooleanField from wtforms.validators import DataRequired class LoginForm(FlaskForm): usuario = StringField('Usuario', validators=[DataRequired(message="Este campo es requerido")]) contraseña = Passwor...
32,375
https://github.com/lousybyte/demo-razor-pages/blob/master/DemoRazor/Data/ProductsBrandData.cs
Github Open Source
Open Source
MIT
null
demo-razor-pages
lousybyte
C#
Code
59
196
using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace DemoRazor.Data { public class ProductsBrandData { public ProductsBrandData() { Products = new HashSet<ProductDat...
20,677
https://github.com/195858/tdi-studio-se/blob/master/main/plugins/org.talend.designer.components.libs/libs_src/salesforceCRMManagement/com/salesforce/soap/partner/SforceServiceStub.java
Github Open Source
Open Source
Apache-2.0
2,018
tdi-studio-se
195858
Java
Code
20,000
89,416
/** * SforceServiceStub.java * * This file was auto-generated from WSDL by the Apache Axis2 version: 1.6.2 Built on : Apr 17, 2012 (05:33:49 IST) */ package com.salesforce.soap.partner; /* * SforceServiceStub java implementation */ public class SforceServiceStub extends org.apache.axis2.client.Stub implements SforceSer...
29,000
https://github.com/graceshopper-codename/graceshopper/blob/master/client/components/productsByTag.js
Github Open Source
Open Source
MIT
null
graceshopper
graceshopper-codename
JavaScript
Code
91
300
import React from 'react' import {getTagProduct} from '../store/products' import {connect} from 'react-redux' import OneProduct from './individualprod' import {Link} from 'react-router-dom' export class TaggedProducts extends React.Component { componentDidMount() { const tag = this.props.match.params.productTag ...
31,060
https://github.com/axon7-oss/android_device_zte_axon7/blob/master/tools/sgdisk/gptcl.cc
Github Open Source
Open Source
FTL
2,021
android_device_zte_axon7
axon7-oss
C++
Code
2,455
6,771
/* Implementation of GPTData class derivative with popt-based command line processing Copyright (C) 2010-2014 Roderick W. Smith This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation;...
30,771
https://github.com/rtvt123/spliceengine/blob/master/assembly/mapr5.1.0/src/main/resources/scripts/install-oracle-jdk7-centos.sh
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, BSD-3-Clause, LicenseRef-scancode-generic-cla, Apache-2.0
2,016
spliceengine
rtvt123
Shell
Code
55
208
#!/bin/bash # Install Oracle JDK 7 for RedHat/CentOS from RPM. This script needs to be run with sudo/root privileges. # Select correct RPM based on 32/64bit system type if [ `getconf LONG_BIT` = "64" ] then RPM="jdk-7u72-linux-x64.rpm" else RPM="jdk-7u72-linux-i586.rpm" fi URL="http://download.oracle.com/otn...
32,735
https://github.com/mback2k/tsoexpert/blob/master/src/de/uxnr/tsoexpert/game/communication/vo/StreetVO.java
Github Open Source
Open Source
MIT
2,015
tsoexpert
mback2k
Java
Code
61
195
package de.uxnr.tsoexpert.game.communication.vo; import de.uxnr.amf.v3.AMF3_Object; public class StreetVO extends AMF3_Object { private int grid; private int playerID; private int streetBits; private int streetCityLevel; private int streetVariation; public int getGrid() { return this.grid; } pub...
5,016
https://github.com/seanperkins/pdredesign-sevenzo/blob/master/app/assets/stylesheets/home/testimonial.sass
Github Open Source
Open Source
MIT
null
pdredesign-sevenzo
seanperkins
Sass
Code
89
351
.testimonial display: flex flex-direction: row flex-wrap: wrap padding: 50px 0 %testimonial-column display: flex flex-direction: column .testimonial-column-text @extend %testimonial-column .quote border: 0 padding: 10px 20px margin-bottom: 0 q quotes: "\201C" ...
34,520
https://github.com/emipa606/LinkableSettings/blob/master/Source/LinkableSettings/LinkableSettingsMod.cs
Github Open Source
Open Source
MIT
null
LinkableSettings
emipa606
C#
Code
972
4,149
using System; using System.Linq; using Mlie; using RimWorld; using UnityEngine; using Verse; using Verse.Sound; namespace LinkableSettings; [StaticConstructorOnStartup] internal class LinkableSettingsMod : Mod { /// <summary> /// The instance of the settings to be read by the mod /// </summary> p...
6,436
https://github.com/swh0318/coolq-php-sqk/blob/master/src/Core/Protocols/GuzzleProtocol.php
Github Open Source
Open Source
MIT
2,020
coolq-php-sqk
swh0318
PHP
Code
812
3,344
<?php /** * Created by PhpStorm. * User: kilingzhang * Date: 2018/8/26 * Time: 21:52 */ namespace Kilingzhang\QQ\Core\Protocols; use GuzzleHttp\Exception\ClientException; use Kilingzhang\QQ\Core\Exceptions\Exception; use Kilingzhang\QQ\Core\Response; use function Kilingzhang\QQ\http_put; use function Kilingzhan...
28,678
https://github.com/SEPIA-Framework/sepia-installation-and-setup/blob/master/sepia-custom-bundle-folder/run-sepia.sh
Github Open Source
Open Source
MIT
2,022
sepia-installation-and-setup
SEPIA-Framework
Shell
Code
711
2,152
#!/bin/bash # # make sure we are in the right folder SCRIPT_PATH="$(realpath "$BASH_SOURCE")" SEPIA_FOLDER="$(dirname "$SCRIPT_PATH")" LOG="${SEPIA_FOLDER}/startup-log.out" cd "$SEPIA_FOLDER" echo "$(date +'%Y_%m_%d_%H:%M:%S') - Starting SEPIA-Home ..." > "$LOG" # # set local Java path if [ -f "java/version" ]; then ...
7,988
https://github.com/EdwinFajardoBarrera/google-code-jam/blob/master/solutions/standing-ovation/go/approach3/approach3.go
Github Open Source
Open Source
MIT
2,022
google-code-jam
EdwinFajardoBarrera
Go
Code
161
495
package main import ( "fmt" "io/ioutil" "os" "strconv" "strings" ) func main() { pwd, _ := os.Getwd() file, err := ioutil.ReadFile(pwd + "/" + os.Args[1]) if err != nil { fmt.Println(err) return } input := string(file) input = input[:len(input)-1] results := getResults(input) printResults(results) ...
18,629
https://github.com/Shicw/SelectCourseSystem/blob/master/application/admin/model/StudentCourseModel.php
Github Open Source
Open Source
Apache-2.0
2,019
SelectCourseSystem
Shicw
PHP
Code
30
75
<?php /** * Created by PhpStorm. * User: Administrator * Date: 2018/11/22 * Time: 11:07 */ namespace app\admin\model; use think\Model; class StudentCourseModel extends Model { protected $table = 'student_course'; }
18,355
https://github.com/zymethyang/Backend-WebVideo/blob/master/src/models/botChannel.js
Github Open Source
Open Source
MIT
null
Backend-WebVideo
zymethyang
JavaScript
Code
30
96
var mongoose = require('mongoose'); var timestamps = require('mongoose-timestamp'); var Schema = mongoose.Schema; var BotChannel = new Schema({ id: { type: String, unique: true } }); BotChannel.plugin(timestamps); module.exports = mongoose.model('BotChannel', BotChannel);
3,029
https://github.com/Simula-UiB/CRHS/blob/master/soccs/src/bin/cli/main.rs
Github Open Source
Open Source
MIT
2,021
CRHS
Simula-UiB
Rust
Code
1,367
3,936
use std::borrow::Borrow; use std::thread; use std::time::Duration; use structopt::StructOpt; use crush::soc::bdd::differential::StyledProgressBar; use dl_options::DlOptions; use pathfinder::diff_solver::post_processing_v5::DisplayResult; use soccs::dl::{DLmode, OutFiles, RawSoc, Setup, SolvedSoC, StopAfter}; use socc...
1,223
https://github.com/aboutbits/react-material-icons/blob/master/src/IconFemaleRounded.tsx
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, MIT
2,023
react-material-icons
aboutbits
TSX
Code
54
406
import React from 'react' import { IconProps } from './types' const IconFemaleRounded: React.FC<IconProps> = ({ ...props }) => ( <svg xmlns="http://www.w3.org/2000/svg" enableBackground="new 0 0 24 24" viewBox="0 0 24 24" {...props} > {props.title && <title>{props.title}</title>} <rect fill...
23,995
https://github.com/EventStore/pulumi-eventstorecloud/blob/master/sdk/dotnet/Config/Config.cs
Github Open Source
Open Source
ECL-2.0, Apache-2.0
2,021
pulumi-eventstorecloud
EventStore
C#
Code
203
534
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Immutable; namespace Pulumi.Eventstorecloud { public static class Config { [System.Diagnosti...
7,219
https://github.com/IlyasDeckers/vuetiful/blob/master/_templates/new/plugin/unit.ejs.t
Github Open Source
Open Source
MIT
2,018
vuetiful
IlyasDeckers
EJS
Code
70
238
--- to: "src/plugins/<%= h.inflection.dasherize(name) %>.unit.js" --- <% const fileName = h.inflection.dasherize(name) const noPath = fileName.substr(fileName.lastIndexOf('/') + 1 ) const importName = h.inflection.camelize(noPath.replace(/-/g, '_')) %>import * as <%= noPath %> from './<%= noPath %>' import { crea...
46,628
https://github.com/martin-ronquillo/tiendita/blob/master/resources/views/livewire/responder/card-body.blade.php
Github Open Source
Open Source
MIT
2,020
tiendita
martin-ronquillo
Blade
Code
189
911
@if ($empty === 1) <div id="pregunta{{$pregunta->id}}" class="collapse show" aria-labelledby="pregunta{{$pregunta->id}}"> <div class="card-body"> <div class="row"> <div class="col-12"> <span class="text-secondary" style="font-size: 11px;"> ...
42,695
https://github.com/P3D-Legacy/P3D-Legacy-MapEditor/blob/master/P3D-Legacy-MapEditor/Components/Camera/BaseCamera.cs
Github Open Source
Open Source
MIT
2,019
P3D-Legacy-MapEditor
P3D-Legacy
C#
Code
1,975
6,004
using System; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; namespace P3D.Legacy.MapEditor.Components.Camera { // TODO: remove velocity and keep it simple // http://www.dhpoware.com/demos/xnaFirstPersonCamera.html public abstract class BaseCam...
30,132
https://github.com/lurichte/codecharta/blob/master/visualization/app/codeCharta/util/nodePathHelper.ts
Github Open Source
Open Source
BSD-3-Clause
null
codecharta
lurichte
TypeScript
Code
52
166
import { CodeChartaService } from "../codeCharta.service" export function getUpdatedBlacklistItemPath(fileName: string, path: string): string { if (isAbsoluteRootPath(path)) { return getUpdatedPath(fileName, path) } return path } export function getUpdatedPath(fileName: string, path: string): string { const fol...
33,042
https://github.com/bespoke-code/CarND-P8-Kidnapped-Vehicle-Project/blob/master/src/particle_filter.cpp
Github Open Source
Open Source
MIT
null
CarND-P8-Kidnapped-Vehicle-Project
bespoke-code
C++
Code
1,236
3,311
/* * particle_filter.cpp * * Created on: Dec 12, 2016 * Author: Tiffany Huang */ #include <random> #include <algorithm> #include <iostream> #include <numeric> #include <cmath> #include <iostream> #include <sstream> #include <string> #include <iterator> #include "particle_filter.h" using namespace std; vo...
27,955
https://github.com/jack-r-warren/best_effort_parser/blob/master/test/name_test.dart
Github Open Source
Open Source
BSD-3-Clause
2,019
best_effort_parser
jack-r-warren
Dart
Code
990
3,146
import 'package:best_effort_parser/name.dart'; import 'package:best_effort_parser/src/name/parsed_name.dart'; import 'package:test/test.dart'; main() { group('NameParser', () { group('.parse(String input)', () { test('returns in the case of null or empty input', () { ['', null].map(NameParser.basic...
5,711
https://github.com/AntoniyaIvanova/SoftUni/blob/master/C#/C# Advanced/C# Advanced/05. Defining Classes/EXERCISE/09. Pokemon Trainer/Trainer.cs
Github Open Source
Open Source
MIT
null
SoftUni
AntoniyaIvanova
C#
Code
106
350
namespace _09._Pokemon_Trainer { using System.Collections.Generic; public class Trainer { public string Name; public int NumberOfBadges; public List<Pokemon> Pokemons; public Trainer(string name) { Name = name; NumberOfBadges = 0; ...
10,592
https://github.com/ljm556-max/xing-ui-v3/blob/master/src/lib/Button.vue
Github Open Source
Open Source
MIT
2,021
xing-ui-v3
ljm556-max
Vue
Code
590
2,113
<template> <button class="xx-button" :class="buttonClasses" :disabled="disabled"> <span v-if="loading" class="xx-loadingIndicator"></span> <slot></slot> </button> </template> <script> import { computed } from 'vue' export default { name: 'x-button', props: { size: { type: String, defau...
27,211
https://github.com/Ashersam/NewAgUpdater/blob/master/src/components/Content/Translation/TranslationPanel.js
Github Open Source
Open Source
MIT
null
NewAgUpdater
Ashersam
JavaScript
Code
565
2,039
import React, { useState } from "react"; import AutographaStore from "../../AutographaStore.js"; import { Observer } from "mobx-react"; import * as mobx from "mobx"; import List from "@material-ui/core/List"; import ListItem from "@material-ui/core/ListItem"; import ListItemIcon from "@material-ui/core/ListItemIcon"; i...
36,995
https://github.com/madhubs/36-sluggram-frontend/blob/master/src/component/landing-container/index.js
Github Open Source
Open Source
MIT
null
36-sluggram-frontend
madhubs
JavaScript
Code
90
280
import React from 'react'; import AuthForm from '../auth-form'; import {connect} from 'react-redux'; import * as utils from '../../lib/utils'; import {signupRequest, loginRequest} from '../../action/auth-action'; class LandingContainer extends React.Component { render() { let {params} = this.props.match; le...
23,342
https://github.com/CloyMonisVMax/VMaxZeeAdsPlugin/blob/master/Example/Pods/VMaxZeeOMSDK/OMSDK_Zeedigitalesselgroup.xcframework/ios-arm64_i386_x86_64-simulator/OMSDK_Zeedigitalesselgroup.framework/Headers/OMIDSDK.h
Github Open Source
Open Source
MIT
null
VMaxZeeAdsPlugin
CloyMonisVMax
C
Code
194
356
// // OMIDSDK.h // AppVerificationLibrary // // Created by Daria on 05/06/2017. // #import <Foundation/Foundation.h> /** * This application level class will be called by all integration partners to ensure OM SDK has been activated before calling any other API methods. * Any attempt to use other API methods prio...
4,463
https://github.com/michaelbarber/algorithms/blob/master/src/main/java/datastructures/arrays/MyDynamicArray.java
Github Open Source
Open Source
MIT
null
algorithms
michaelbarber
Java
Code
270
576
package datastructures.arrays; public class MyDynamicArray<T> { private Object[] data; private int INITIAL_SIZE = 16; private int size = 0; public MyDynamicArray() { data = new Object[INITIAL_SIZE]; } public void add(T object) { if (size == INITIAL_SIZE) { resize...
29,606
https://github.com/iquesada/practice-skeletons/blob/master/C-SHARP/BusinessLogic/Sum.cs
Github Open Source
Open Source
Apache-2.0
2,019
practice-skeletons
iquesada
C#
Code
23
58
using System; namespace BusinessLogic { public class Sum { public double SumOperators(double op1, double op2) { return op1 + op2; } } }
28,236
https://github.com/bradlipovsky/antarctic-rift-catalog/blob/master/make_catalog.py
Github Open Source
Open Source
MIT
null
antarctic-rift-catalog
bradlipovsky
Python
Code
140
575
import numpy as np import os import arc import importlib importlib.reload(arc) import json import pandas as pd import pickle def main(): atl06_path = "/data/fast1/arc/atl06" filelist_path = "/data/fast1/arc/filelists" dataset_path = '/data/fast0/' output_path = '/data/fast1/arc/rift_obs' #shelf_na...
48,944
https://github.com/WebCuratorTool/webcurator-core/blob/master/src/main/java/org/webcurator/core/profiles/ProfileTimeUnit.java
Github Open Source
Open Source
Apache-2.0
2,020
webcurator-core
WebCuratorTool
Java
Code
50
152
package org.webcurator.core.profiles; import java.util.ArrayList; import java.util.List; /** * Enumeration containing time units. */ public enum ProfileTimeUnit { SECOND, MINUTE, HOUR, DAY, WEEK; public static ProfileTimeUnit DEFAULT = SECOND; public static List<String> getProfileDataTimeNames() { ...
14,927
https://github.com/gparlakov/scuri/blob/master/src/common/get-spec-file-name.ts
Github Open Source
Open Source
MIT
2,023
scuri
gparlakov
TypeScript
Code
179
487
import { basename as ngBasename, Path } from '@angular-devkit/core'; import { join, normalize } from 'path'; import { applyPathTemplate, FileEntry, TEMPLATE_FILENAME_RE } from '@angular-devkit/schematics'; import { ClassTemplateData } from '../types'; import { getLogger } from './logger'; export function getSpecFilePa...
39,401
https://github.com/samuelfabel/Swashbuckle.AspNetCore.Yaml/blob/master/Swashbuckle.AspNetCore.Yaml/Application/SwaggerYamlBuilderExtensions.cs
Github Open Source
Open Source
MIT
2,022
Swashbuckle.AspNetCore.Yaml
samuelfabel
C#
Code
35
136
using System; using Swashbuckle.AspNetCore.Swagger.Yaml; namespace Microsoft.AspNetCore.Builder { public static class SwaggerYamlBuilderExtensions { public static IApplicationBuilder UseSwaggerYaml( this IApplicationBuilder app, Action<SwaggerYamlOptions> setupAction = null) ...
19,892
https://github.com/N500/WindowsTemplateStudio/blob/master/templates/Uwp/_comp/MVVMLight/Project.SplitView.TabbedNav._VB/Helpers/NavHelper.vb
Github Open Source
Open Source
MIT
2,022
WindowsTemplateStudio
N500
Visual Basic
Code
87
278
Imports Microsoft.UI.Xaml.Controls Namespace Helpers Public Class NavHelper ' This helper class allows to specify the page that will be shown when you click on a NavigationViewItem ' ' Usage in xaml: ' <winui:NavigationViewItem x:Uid="Shell_Main" Icon="Document" helpers:NavHelper.N...
2,144
https://github.com/mullikine/RosettaCodeData/blob/master/Task/Unix-ls/Python/unix-ls.py
Github Open Source
Open Source
Info-ZIP
2,022
RosettaCodeData
mullikine
Python
Code
19
73
>>> import os >>> print('\n'.join(sorted(os.listdir('.')))) DLLs Doc LICENSE.txt Lib NEWS.txt README.txt Scripts Tools include libs python.exe pythonw.exe tcl >>>
18,850
https://github.com/alinadk12/pets/blob/master/resources/views/requests/request.blade.php
Github Open Source
Open Source
MIT
null
pets
alinadk12
PHP
Code
234
978
@extends('layouts.app') @section('title') <h1>{!! __('requests.titles.puppy_request') !!}</h1> @stop @section('content') {!! Form::open(['url' => '/request', 'class' => 'form-horizontal']) !!} {{ csrf_field() }} {!! Form::hidden('user_id', $user->id) !!} <div class="form-group{{ $errors->has('br...
3,206
https://github.com/commonsensesoftware/More/blob/master/test/More.UI.Tests/ComponentModel/ExpandableItemTTest.cs
Github Open Source
Open Source
MIT
2,018
More
commonsensesoftware
C#
Code
535
1,671
namespace More.ComponentModel { using FluentAssertions; using System; using Xunit; public class ExpandableItemTTest { [Fact] public void item_should_be_collapsed_by_default() { // arrange var item = new ExpandableItem<string>( "test" ); /...
39,100
https://github.com/ddechant/Gazelle/blob/master/templates/applicant/view.twig
Github Open Source
Open Source
Unlicense
2,022
Gazelle
ddechant
Twig
Code
484
1,626
{{ header('View Applications', {'js': 'apply'}) }} <div class="thin"> <div class="linkbox"> <a href="/apply.php" class="brackets">Apply</a> {% if id and not is_staff %} <a href="/apply.php?action=view" class="brackets">View your applications</a> {% endif %} {% if is_staff %} {% if resolved or (id and not r...
22,359
https://github.com/Programmerino/webapi/blob/master/graphics/shapedetection/shapedetection_js.go
Github Open Source
Open Source
BSD-3-Clause
2,022
webapi
Programmerino
Go
Code
3,014
10,242
// Code generated by webidl-bind. DO NOT EDIT. package shapedetection import "syscall/js" import ( "github.com/Programmerino/webapi/dom/geometry" "github.com/Programmerino/webapi/javascript" ) // using following types: // geometry.DOMRectReadOnly // javascript.FrozenArray // javascript.PromiseFinally // source i...
35,567
https://github.com/misterhaan/track7.org/blob/master/pen/series.js
Github Open Source
Open Source
MIT
null
track7.org
misterhaan
JavaScript
Code
43
156
$(function() { var serieslist = new Vue({ el: "#serieslist", data: { stories: [], loading: false, error: false }, created: function() { this.loading = true; $.get("/api/stories/series", {id: $("h1").data("series-id")}, result => { if(!result.fail) this.stories = result.stories; els...
45,028
https://github.com/home-assistant/core/blob/master/tests/components/unifiprotect/test_views.py
Github Open Source
Open Source
Apache-2.0
2,023
core
home-assistant
Python
Code
1,038
4,560
"""Test UniFi Protect views.""" from datetime import datetime, timedelta from typing import Any, cast from unittest.mock import AsyncMock, Mock from aiohttp import ClientResponse import pytest from pyunifiprotect.data import Camera, Event, EventType from pyunifiprotect.exceptions import ClientError from homeassistan...
6,744
https://github.com/mattmccloskey/inView/blob/master/example/example.js
Github Open Source
Open Source
MIT
2,016
inView
mattmccloskey
JavaScript
Code
18
103
$(function($){ // $(".box").on("inView", function(){ // console.log($(this).attr("id"), arguments); // }); $(".box").on("inViewBegin", function(){ $(this).addClass("inView"); }); $(".box").on("inViewEnd", function(){ $(this).removeClass("inView"); }); });
41,832
https://github.com/drpicox/git-analysis-tools/blob/master/github-api/src/components/IssuesTable.js
Github Open Source
Open Source
MIT
null
git-analysis-tools
drpicox
JavaScript
Code
172
846
import React from "react"; import NavButton from "./NavButton"; import RefNum from "./RefNum"; import getIssueCommit from "../reporters/getIssueCommit"; import getIssueColumn from "../reporters/getIssueColumn"; import getIssueWeight from "../reporters/getIssueWeight"; import getIssueAuthor from "../reporters/getIssueAu...
38,453
https://github.com/fixiki-in-wave/pomogator/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,021
pomogator
fixiki-in-wave
Ignore List
Code
3
18
node_modules packages/**/*.map packages/**/*.js
22,828
https://github.com/cpatrick/calatk/blob/master/Code/Libraries/ObjectiveFunctions/CAtlasSubiterationUpdateObjectiveFunction.h
Github Open Source
Open Source
Apache-2.0
2,012
calatk
cpatrick
C++
Code
355
956
/* * * Copyright 2011, 2012 by the CALATK development team * * 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 a...
18,862
https://github.com/alipay/alipay-sdk-java-all/blob/master/v2/src/main/java/com/alipay/api/domain/DeviceApplyOrderDeviceModel.java
Github Open Source
Open Source
Apache-2.0
2,023
alipay-sdk-java-all
alipay
Java
Code
106
381
package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 设备申请单所关联的设备model * * @author auto create * @since 1.0, 2019-08-21 12:16:28 */ public class DeviceApplyOrderDeviceModel extends AlipayObject { private static final long serialVersionUID = 33...
40,879
https://github.com/SWP-Ubau-SoSe2014-Haskell/SWPSoSe14/blob/master/x-testing/neg_revisitDollar1.io
Github Open Source
Open Source
MIT
2,015
SWPSoSe14
SWP-Ubau-SoSe2014-Haskell
Io
Code
7
17
$0 --- # % RailCompiler: Invalid movement.
5,882
https://github.com/madosuki/script-collection-in-common-lisp/blob/master/combination.lisp
Github Open Source
Open Source
LicenseRef-scancode-public-domain
2,021
script-collection-in-common-lisp
madosuki
Common Lisp
Code
43
97
(defun fact (x &optional (y 1)) (if (<= x 1) y (fact (- x 1) (* x y)))) (defun combination (l r) (if (or (< l 1) (< r 1)) nil (let ((numerator (fact l)) (denominator (fact (- l r)))) (/ numerator denominator))))
35,454
https://github.com/isabella232/airavata-data-lake/blob/master/data-resource-management-service/drms-api/src/main/java/org/apache/airavata/drms/api/Client.java
Github Open Source
Open Source
Apache-2.0
2,021
airavata-data-lake
isabella232
Java
Code
713
3,571
/* * 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 ...
48,576
https://github.com/BitYog/emmet/blob/master/lib/assets/tokenIterator.js
Github Open Source
Open Source
MIT
2,022
emmet
BitYog
JavaScript
Code
203
612
/** * Helper class for convenient token iteration */ if (typeof module === 'object' && typeof define !== 'function') { var define = function (factory) { module.exports = factory(require, exports, module); }; } define(function(require, exports, module) { /** * @type TokenIterator * @param {Array} tokens * ...
33,648
https://github.com/ganboing/pintool/blob/master/source/tools/ToolUnitTests/memalign.cpp
Github Open Source
Open Source
Intel
2,017
pintool
ganboing
C++
Code
635
1,317
/*BEGIN_LEGAL Intel Open Source License Copyright (c) 2002-2016 Intel Corporation. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright noti...
9,636
https://github.com/benzkji/django-separate-users/blob/master/separate_users/tests/test_permissions.py
Github Open Source
Open Source
MIT
2,022
django-separate-users
benzkji
Python
Code
109
394
# -*- coding: utf-8 -*- from django.contrib.auth.models import Permission # from django.test import Client from django.test import TestCase # compat import django if django.VERSION[:2] < (1, 10): from django.core.urlresolvers import reverse else: from django.urls import reverse class PermissionsTestCase(Tes...
45,972