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/dimddev/NetCatKS-CP/blob/master/NetCatKS/NetCAT/api/__init__.py
Github Open Source
Open Source
BSD-2-Clause
null
NetCatKS-CP
dimddev
Python
Code
7
25
__author__ = 'dimd' from NetCatKS.NetCAT.api.public import *
11,211
https://github.com/devinkwok/LittleNet/blob/master/littlenet/utility.py
Github Open Source
Open Source
MIT
2,018
LittleNet
devinkwok
Python
Code
1,838
5,956
"""Helper functions for file I/O and manipulating MNIST dataset""" import os import glob import struct import pickle import copy import math import numpy as np import xarray as xr import matplotlib.pyplot as plt from littlenet import neural_net as nn def normalize_images(np_array): """Resizes MNIST image inputs t...
29,420
https://github.com/gqjjqg/android-widget-extend/blob/master/android-extend/src/main/jni/commen/render/image_render.cpp
Github Open Source
Open Source
zlib-acknowledgement
2,021
android-widget-extend
gqjjqg
C++
Code
1,003
4,873
#include <jni.h> #include <stdio.h> #include <string.h> #include <EGL/egl.h> #include <GLES2/gl2.h> #include <GLES2/gl2ext.h> #include "Matrix.h" #include "image.h" #include "logger.h" #include "image_render.h" #include "shader.h" typedef struct opengl_t { GLuint mProgram; GLuint mGLBufs[3]; GLuint mTextu...
27,336
https://github.com/AboutObjectsTraining/advanced-ios-reston-2017-11/blob/master/Projects/iTunes ReadingList/ReadingList App/ReadingList App/Authors/RELAddAuthorController.h
Github Open Source
Open Source
MIT
null
advanced-ios-reston-2017-11
AboutObjectsTraining
C
Code
23
98
#import <UIKit/UIKit.h> #import <ReadingListModel/ReadingListModel.h> @interface RELAddAuthorController : UITableViewController @property (nonatomic) NSManagedObjectContext *managedObjectContext; @property (nonatomic) RELAuthor *author; @property (weak, nonatomic) IBOutlet UITextField *nameField; @end
28,892
https://github.com/sahmed62/cputime-estimation/blob/master/perf-stat-out/dual-core/hamming-matrix-add-l3-9sec-1.csv.raw
Github Open Source
Open Source
BSD-3-Clause
2,020
cputime-estimation
sahmed62
Raw token data
Code
101
1,681
# started on Wed Nov 18 09:35:14 2020 S0-D0-C0;1;9024048406;ns;duration_time;9024048406;100.00;; S0-D0-C0;2;1059286326;;cpu-cycles;11276042093;62.50;; S0-D0-C0;2;426609346;;instructions;11275920349;62.50;0.40;insn per cycle S0-D0-C0;2;89173509;;branch-instructions;11275850330;62.50;; S0-D0-C0;2;2840430;;branch-misses;...
1,733
https://github.com/Unidata/MetPy/blob/master/src/metpy/interpolate/geometry.py
Github Open Source
Open Source
BSD-3-Clause
2,023
MetPy
Unidata
Python
Code
1,288
3,338
# Copyright (c) 2018 MetPy Developers. # Distributed under the terms of the BSD 3-Clause License. # SPDX-License-Identifier: BSD-3-Clause """Tools for working with geometric objects (points, triangles, polygons).""" import logging import math import numpy as np from scipy.spatial import cKDTree log = logging.getLogg...
9,285
https://github.com/abudnik/bun/blob/master/cmd/tool.go
Github Open Source
Open Source
Unlicense
null
bun
abudnik
Go
Code
148
491
package cmd import ( "bytes" "fmt" "os" "github.com/spf13/cobra" yaml "gopkg.in/yaml.v2" "github.com/mesosphere/bun/v2/tools" ) var toolCmd = &cobra.Command{ Use: "tool", Short: "Bun development tool", Long: "Contains subcommands which help to add new file types and checks.", } func findFiles(cmd *cobr...
43,382
https://github.com/ctrimble/xchain/blob/master/hibernate/src/main/java/org/xchain/namespaces/hibernate/UpdateCommand.java
Github Open Source
Open Source
Apache-2.0
2,020
xchain
ctrimble
Java
Code
254
636
/** * Copyright 2011 meltmedia * * 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 ...
35,079
https://github.com/mikolajgucki/ae-engine/blob/master/plugins/iap/android/src/java/com/andcreations/iap/IAPProduct.java
Github Open Source
Open Source
MIT
2,021
ae-engine
mikolajgucki
Java
Code
188
471
package com.andcreations.iap; import com.andcreations.iab.IABProduct; /** * Represents a product. * * @author Mikolaj Gucki */ public class IAPProduct { /** * Product type. */ public static enum Type { /** Consumable product. */ CONSUMABLE, /** Non-consumable pro...
3,859
https://github.com/syferproject/syferhe/blob/master/vendor/github.com/creachadair/jrpc2/channel/channel_test.go
Github Open Source
Open Source
MIT, BSD-3-Clause, BSD-2-Clause, Apache-2.0
null
syferhe
syferproject
Go
Code
677
2,033
// Copyright (C) 2017 Michael J. Fromberger. All Rights Reserved. package channel import ( "io" "strconv" "strings" "sync" "testing" "github.com/fortytw2/leaktest" ) // newPipe creates a pair of connected in-memory channels using the specified // framing discipline. Sends to client will be received by server,...
6,771
https://github.com/openworm/org.geppetto.recording/blob/master/org/geppetto/recording/creators/tests/wormsim_recordings/transformations/matrix_anchored_31S_04428.mat
Github Open Source
Open Source
MIT
2,015
org.geppetto.recording
openworm
Unity3D Asset
Code
496
2,121
1 0 0 0 0 1 0 0 0 0 1 0 6.38578 45.7092 4.19892 1 0.588257 0.819516 -0.0675137 0 -0.60894 0.429099 -0.0971564 0 -0.0659496 0.127944 0.978424 0 141.306 116.976 25.5951 1 0.922102 0.413953 -0.0241254 0 -0.308094 0.683586 -0.0465099 0 -0.00359504 0.0655181 0.986776 0 64.6552 85.7896 13.2986 1 1.05884 0.1046...
44,746
https://github.com/capdevon/Character-Bow-Template/blob/master/src/main/java/mygame/CrosshairData.java
Github Open Source
Open Source
Unlicense
2,021
Character-Bow-Template
capdevon
Java
Code
136
374
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package mygame; import com.jme3.font.BitmapText; import com.jme3.math.ColorRGBA; import com.jme3.scene.Node; /** * * @author capde...
29,410
https://github.com/alipay/alipay-sdk-python-all/blob/master/alipay/aop/api/domain/AntlcNdaProtocolSignRecordExtDO.py
Github Open Source
Open Source
Apache-2.0
2,023
alipay-sdk-python-all
alipay
Python
Code
615
3,271
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AntlcNdaProtocolSignRecordExtDO(object): def __init__(self): self._antlc_certificate_key = None self._expedite_status = None self._gmt_create = None self._gmt_modi...
38,780
https://github.com/quantiom/onionhook-menu/blob/master/menu/elements/c_subtab.cpp
Github Open Source
Open Source
MIT
2,021
onionhook-menu
quantiom
C++
Code
212
996
#include "../../renderer/renderer.h" #include "../../sdk/input/input.h" #include <misc/logger.h> #include "../c_menu.h" #include "c_subtab.h" bool c_subtab::update() { const auto text_size = renderer::fonts::subtab.get_text_size(this->m_name); this->m_hovered = input::in_bounds({ this->m_pos[0] + (m_tab_size / 2) -...
30,646
https://github.com/Swarmops/Swarmops/blob/master/Logic/Swarm/ParticipantTitle.cs
Github Open Source
Open Source
Unlicense
2,022
Swarmops
Swarmops
C#
Code
120
375
using System; using Swarmops.Common.Enums; using Swarmops.Logic.Resources; namespace Swarmops.Logic.Swarm { public class Participant { public static string Localized (ParticipantTitle title, TitleVariant variant = TitleVariant.Generic) { return Logic_Swarm_ParticipantTitle.Resource...
25,176
https://github.com/ravowlga123/impala/blob/master/be/src/benchmarks/convert-timestamp-benchmark.cc
Github Open Source
Open Source
Apache-2.0
null
impala
ravowlga123
C++
Code
3,165
15,250
// 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...
26,253
https://github.com/phr00t/FocusEngine/blob/master/sources/editor/Xenko.GameStudio/ActivateParentPaneOnGotFocusBehavior.cs
Github Open Source
Open Source
MIT
2,023
FocusEngine
phr00t
C#
Code
109
327
// Copyright (c) Xenko contributors (https://xenko.com) and Silicon Studio Corp. (https://www.siliconstudio.co.jp) // Distributed under the MIT license. See the LICENSE.md file in the project root for more information. using System.Windows; using System.Windows.Controls; using Microsoft.Xaml.Behaviors; using Xenko.Core...
44,651
https://github.com/JkSelf/OAP/blob/master/oap-native-sql/core/src/main/scala/com/intel/oap/execution/ColumnarHashAggregateExec.scala
Github Open Source
Open Source
Apache-2.0
null
OAP
JkSelf
Scala
Code
420
1,550
/* * 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 ...
26,492
https://github.com/RSE-Cambridge/rally-openstack/blob/master/tests/unit/scenarios/ec2/test_utils.py
Github Open Source
Open Source
Apache-2.0
null
rally-openstack
RSE-Cambridge
Python
Code
191
798
# All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software #...
36,941
https://github.com/ubunfork/SwiftUIKit/blob/master/Sources/SwiftUIKit/Views/FetchedDataView.swift
Github Open Source
Open Source
MIT
2,021
SwiftUIKit
ubunfork
Swift
Code
342
771
// // FetchedDataView.swift // SwiftUIKit // // Created by Daniel Saidi on 2020-10-29. // Copyright © 2020 Daniel Saidi. All rights reserved. // import SwiftUI /** This view can be used to present asynchronous data that can be either in a loading, fetched or failed state. By Providing three views to the view...
5,850
https://github.com/samuel-esp/LinearAlgebraAlgorithms.jl/blob/master/src/FloydWarshall.jl
Github Open Source
Open Source
MIT
2,021
LinearAlgebraAlgorithms.jl
samuel-esp
Julia
Code
70
204
#= FloydWarshall: - Julia version: 1.6.2 - Author: samuel - Date: 2021-09-10 =# using SuiteSparseGraphBLAS using SparseArrays #A is the input matrix for Floyd-Warshall multiple sources multiple destinations, Output: shortest paths function floydwarshall(A, n) #distance matrix = input matrix D = A print(D...
52,118
https://github.com/zagorec92/VacationCalendar/blob/master/Web/src/components/calendar/CalendarDays.jsx
Github Open Source
Open Source
MIT
2,020
VacationCalendar
zagorec92
null
Spoken
69
211
import React from 'react'; import uuid from 'uuid'; import CalendarDay from './CalendarDay'; class CalendarDays extends React.Component { render() { const { month, vacations } = this.props; return ( <div key={uuid.v4()} className="calendar-content-x"> {month.days.map((day) => <CalendarDay key={uuid.v4...
20,024
https://github.com/hashgraph/hedera-sdk-js/blob/master/src/array.js
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, Apache-2.0
2,023
hedera-sdk-js
hashgraph
JavaScript
Code
238
539
/*- * ‌ * Hedera JavaScript SDK * ​ * Copyright (C) 2020 - 2023 Hedera Hashgraph, LLC * ​ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
8,276
https://github.com/alula/CircleShootApp/blob/master/source/SexyAppFramework/DescParser.cpp
Github Open Source
Open Source
MIT
2,022
CircleShootApp
alula
C++
Code
1,173
4,378
#include "DescParser.h" #include "../PakLib/PakInterface.h" using namespace Sexy; DescParser::DescParser() { mCmdSep = CMDSEP_SEMICOLON; } DescParser::~DescParser() { } bool DescParser::Error(const std::string& theError) { mError = theError; return false; } DataElement* DescParser::Dereference(const std::string...
13,358
https://github.com/matigo/streams/blob/master/sql/posts/writePostMeta.sql
Github Open Source
Open Source
MIT
2,019
streams
matigo
SQL
Code
29
92
INSERT INTO `PostMeta` (`post_id`, `key`, `value`) SELECT [POST_ID] as `post_id`, LOWER('[KEY]') as `key`, '[VALUE]' as `value` ON DUPLICATE KEY UPDATE `value` = '[VALUE]', `is_deleted` = 'N', `updated_at` = Now();
51,701
https://github.com/cloudaddy/cloudaddys-project/blob/master/src/main/java/edu/neu/cloudaddy/dao/UserDaoImpl.java
Github Open Source
Open Source
MIT
null
cloudaddys-project
cloudaddy
Java
Code
102
386
package edu.neu.cloudaddy.dao; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import javax.sql.DataSource; import org.springframework.stereotype.Repository; import edu.neu.cloudaddy.model.User; @Repository("userDao") public class UserDaoImpl imp...
49,098
https://github.com/magicbug/Cloudlog/blob/master/application/language/greek/account_lang.php
Github Open Source
Open Source
MIT
2,023
Cloudlog
magicbug
PHP
Code
40
164
<?php defined('BASEPATH') OR exit('No direct script access allowed'); $lang['account_logbook_fields'] = 'Πεδίο αρχείου'; $lang['account_column1_text'] = 'Επιλογή στήλης 1'; $lang['account_column2_text'] = 'Επιλογή στήλης 2'; $lang['account_column3_text'] = 'Επιλογή στήλης 3'; $lang['account_column4_text'] = 'Επιλο...
34,740
https://github.com/anamwp/gatsby-meetup/blob/master/src/components/layout.js
Github Open Source
Open Source
MIT
null
gatsby-meetup
anamwp
JavaScript
Code
87
281
/** * Layout component that queries for data * with Gatsby's useStaticQuery component * * See: https://www.gatsbyjs.org/docs/use-static-query/ */ // import PropTypes from "prop-types" import React, { Component } from 'react' import {ThemeProvider} from 'styled-components' import {InitialTheme} from '../utils/Glob...
1,572
https://github.com/diashenrique/iris-history-monitor/blob/master/src/csp/resources/plugins/atlantis-lite/assets/sass/atlantis/plugins/_jqueryui.scss
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-proprietary-license, MIT
2,022
iris-history-monitor
diashenrique
SCSS
Code
524
2,024
/* jQuery Ui */ .ui-draggable-handle { -ms-touch-action: none; touch-action: none; } .ui-helper-hidden { display: none; } .ui-helper-hidden-accessible { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; } .ui-helper...
3,229
https://github.com/dAdAbird/gocha/blob/master/cmd/server/clientsession.go
Github Open Source
Open Source
MIT
null
gocha
dAdAbird
Go
Code
185
534
package main import ( "bufio" "fmt" "log" "net" "time" ) type cstate int const ( scInit cstate = 1 << iota scAuth scClosed ) // Client represents the client connection type Client struct { conn net.Conn state cstate // auth, closed etc. user *User currChannel *Channel colse ch...
16,077
https://github.com/aplatkouski/travel-app/blob/master/.husky/pre-commit
Github Open Source
Open Source
MIT
2,021
travel-app
aplatkouski
Shell
Code
16
71
#!/bin/sh # https://typicode.github.io/husky/#/?id=disable-hooks-in-ci [ -n "$CI" ] && exit 0 . "$(dirname "$0")/_/husky.sh" npx --no lint-staged
10,269
https://github.com/neuropoly/axonseg/blob/master/code/utils/comparaisonReport/printComparaisonReport.m
Github Open Source
Open Source
MIT
2,019
axonseg
neuropoly
MATLAB
Code
50
190
function printComparaisonReport(cr) %% Segmentation report disp(''); fprintf('Segmentation report: \n') fprintf(' Sensitivity: %0.2f (%i/%i)\n', cr.sensitivity, cr.numObjTruePos, cr.numObjTruth); fprintf(' Precision: %0.2f (%i/%i)\n', cr.precision, cr.numObjTruePos, cr.numObjSeg); fprintf(' Found %i objects: %...
47,759
https://github.com/1784777348ly/jenkinsDemo/blob/master/iso_ticketwaiterFirstOne/ticketWaiter/ticketWaiter/Classs/Orders/view/TWOrderMoneyCell.m
Github Open Source
Open Source
MIT
2,017
jenkinsDemo
1784777348ly
Objective-C
Code
145
617
// // TWOrderMoneyCell.m // ticketWaiter // // Created by LY on 17/1/17. // Copyright © 2017年 hui10. All rights reserved. // #import "TWOrderMoneyCell.h" @interface TWOrderMoneyCell () { BOOL _isAuto; } @property (weak, nonatomic) IBOutlet UILabel *timeLable; @property (weak, nonatomic) IBOutlet UILabel *mo...
22,383
https://github.com/benjaminleroy/coin/blob/master/tests/testthat.R
Github Open Source
Open Source
MIT
2,019
coin
benjaminleroy
R
Code
3
20
library(testthat) library(coin) test_check("coin")
238
https://github.com/mnsozcelik/Spring-Boot-and-React-Example/blob/master/ws/src/main/java/com/hoaxify/ws/configuration/AppConfiguration.java
Github Open Source
Open Source
MIT
null
Spring-Boot-and-React-Example
mnsozcelik
Java
Code
53
164
package com.hoaxify.ws.configuration; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.context.annotation.Configuration; import lombok.Data; @Data @Configuration @ConfigurationProperties(prefix = "hoaxify") public class AppConfiguration { private String uploadP...
28,303
https://github.com/sulemankhan447/AndroidSnooper/blob/master/Snooper/src/main/java/com/prateekj/snooper/dbreader/adapter/TableEventListener.java
Github Open Source
Open Source
CC-BY-3.0, Apache-2.0
2,019
AndroidSnooper
sulemankhan447
Java
Code
10
39
package com.prateekj.snooper.dbreader.adapter; public interface TableEventListener { void onTableClick(String table); }
510
https://github.com/davidsidlinger/ccnet-hg-nosuck/blob/master/src/NHg/HgResult.cs
Github Open Source
Open Source
BSD-2-Clause
2,010
ccnet-hg-nosuck
davidsidlinger
C#
Code
95
270
using System; namespace NHg { public class HgResult : IHgResult { private readonly bool _failed; private readonly string _standardOutput; private readonly string _standardError; public HgResult(bool failed, string standardOutput, string standardError) { if (standardOutput == null) { throw new Ar...
45,638
https://github.com/lipsapatel/Algorithms/blob/master/src/StackUsingLinkedList.java
Github Open Source
Open Source
MIT
2,022
Algorithms
lipsapatel
Java
Code
210
572
import Node.SinglyLinkedListNode; import java.util.LinkedList; import java.util.Queue; /** * Implement stack using Linked list * * Stack - LIFO Last in First out * Operations: Push, Pop, getSize and Display * * push(): Pushes the element at the head of the linked-list and increment the size. O(1) * pop(): Remo...
43,765
https://github.com/gchq/Palisade-services/blob/master/policy-service/src/main/java/uk/gov/gchq/palisade/service/policy/model/AuditablePolicyRecordResponse.java
Github Open Source
Open Source
Apache-2.0, CC-BY-4.0
2,021
Palisade-services
gchq
Java
Code
528
1,199
/* * Copyright 2018-2021 Crown Copyright * * 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 a...
44,533
https://github.com/hltcoe/concrete-java/blob/master/lucene/src/main/java/edu/jhu/hlt/concrete/lucene/ConcreteLuceneSearcher.java
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, BSD-2-Clause
2,019
concrete-java
hltcoe
Java
Code
409
1,474
package edu.jhu.hlt.concrete.lucene; import java.io.IOException; import java.nio.file.Path; import java.nio.file.Paths; import java.util.List; import java.util.Optional; import org.apache.lucene.analysis.Analyzer; import org.apache.lucene.analysis.standard.StandardAnalyzer; import org.apache.lucene.document.Document;...
21,439
https://github.com/LordRonz/cp-solutions/blob/master/codeforces/1520A.c
Github Open Source
Open Source
WTFPL
2,021
cp-solutions
LordRonz
C
Code
87
256
#include <stdio.h> #include <stdbool.h> int main(void) { int t, n; char s[55]; bool memo[27] = {}; scanf("%d", &t); while(t--) { scanf("%d", &n); scanf("\n%s", s); bool yes = 1; for(int i = 0; i < 27; ++i) { memo[i] = 0; } for(int i = 0; i < n; ++i) { if(memo[s[i] - 'A']) { yes = 0; bre...
33,616
https://github.com/aopell/DiscordBugBot/blob/master/DiscordBugBot/Config/ConfigFileAttribute.cs
Github Open Source
Open Source
MIT
null
DiscordBugBot
aopell
C#
Code
31
85
using System; using System.Collections.Generic; using System.Text; namespace DiscordBugBot.Config { public class ConfigFileAttribute : Attribute { public string FileName { get; } public ConfigFileAttribute(string fileName) { FileName = fileName; } } }
6,600
https://github.com/BonneelP/pyleecan/blob/master/Tests/Validation/Simulation/test_EM_SCIM_NL_006.py
Github Open Source
Open Source
Apache-2.0
2,020
pyleecan
BonneelP
Python
Code
396
1,429
from os import chdir chdir("../../..") from numpy import ones, pi, array, zeros from os.path import join import matplotlib.pyplot as plt from Tests import save_validation_path as save_path from pyleecan.Classes.Simu1 import Simu1 from pyleecan.Classes.InputCurrent import InputCurrent from pyleecan.Classes.InputFlux ...
38,919
https://github.com/toolchild/screeps-typescript/blob/master/src/role/role.claimer.js
Github Open Source
Open Source
Unlicense
null
screeps-typescript
toolchild
JavaScript
Code
209
609
const roleClaimer = { /** @param {Creep} creep **/ run(creep) { // consoleStats.log('claim: ' + creep.name + ' home ' + creep.home + ' targetRoomName: ' + creep.memory.targetRoomName + ' home: ' + creep.memory.home.home.name); if (creep.room.name === creep.memory.home.room.name) { this....
50,315
https://github.com/fireun/supreme/blob/master/supreme/resources/views/showcart.blade.php
Github Open Source
Open Source
MIT
2,021
supreme
fireun
Blade
Code
183
1,049
@extends('layouts.app') @section('content') <script> var total=0; function Cal() { var prices = document.getElementsByName('price[]'); var cboxes = document.getElementsByName('item[]'); var len = cboxes.length; for (var i=0; i<len; i++) { if(cboxes[i].checked){ //calculate if checked ...
48,644
https://github.com/Fabz29/BTS.Pg/blob/master/app/cache/dev/twig/49/6a/20093f7193475f3f6c43cd91f7d8ddc7853cf5e238201a5a07d27252be41.php
Github Open Source
Open Source
MIT
null
BTS.Pg
Fabz29
PHP
Code
187
866
<?php /* PgGsbFraisBundle:ListeFrais:listetouslesfrais.html.twig */ class __TwigTemplate_496a20093f7193475f3f6c43cd91f7d8ddc7853cf5e238201a5a07d27252be41 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $thi...
3,429
https://github.com/AfricasVoices/Test-Pipeline---Daniel/blob/master/run_scripts/checkout_coda_v2.sh
Github Open Source
Open Source
MIT
null
Test-Pipeline---Daniel
AfricasVoices
Shell
Code
131
340
#!/usr/bin/env bash set -e if [ $# -ne 1 ]; then echo "Usage: ./checkout_coda_v2.sh <coda-v2-dir>" echo "Ensures that a copy of the CodaV2 project exists in 'coda-v2-dir' by cloning/fetching as necessary" exit fi CODA_V2_DIRECTORY="$1" CODA_V2_REPO="https://github.com/AfricasVoices/CodaV2.git" mkdir -p...
21,074
https://github.com/aelindeman/ship3/blob/master/resources/lang/en/ship.php
Github Open Source
Open Source
Unlicense, MIT
null
ship3
aelindeman
PHP
Code
174
570
<?php return [ 'app' => 'Ship', 'translation-credit' => 'English translation by <a href="http://ael.me/">Alex Lindeman</a>', 'header' => [ 'toolbar' => [ 'time-period' => 'Period', 'autoreload' => [ 'enable' => 'Enable autoreload', 'disable' => 'Disable autoreload' ], 'dark-mode' => [ 'e...
22,761
https://github.com/Semty/nest-ios-sdk/blob/master/NestSDK/NestSDK/NestSDKSmokeCOAlarm.h
Github Open Source
Open Source
MIT
2,018
nest-ios-sdk
Semty
Objective-C
Code
424
1,070
// Copyright (c) 2016 Petro Akzhygitov <petro.akzhygitov@gmail.com> // // 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 us...
14,659
https://github.com/fciubotaru/z-pec/blob/master/ZimbraSoap/src/java/com/zimbra/soap/admin/message/SearchCalendarResourcesRequest.java
Github Open Source
Open Source
MIT
2,021
z-pec
fciubotaru
Java
Code
435
1,268
/* * ***** BEGIN LICENSE BLOCK ***** * Zimbra Collaboration Suite Server * Copyright (C) 2011 Zimbra, Inc. * * The contents of this file are subject to the Zimbra Public License * Version 1.3 ("License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at ...
42,097
https://github.com/zamo-po/suite/blob/master/frontend/libs/tslint.js
Github Open Source
Open Source
MIT
2,020
suite
zamo-po
JavaScript
Code
158
491
const path = require('path'); const { Linter, Configuration } = require('tslint'); const { globalSettings } = require('../settings'); const colors = require('colors'); /** * List of output formatters for the tslint. * https://palantir.github.io/tslint/formatters/ */ const outputFormatter = () => { const formatt...
2,444
https://github.com/egoist/vmark-loader/blob/master/index.js
Github Open Source
Open Source
MIT
2,020
vmark-loader
egoist
JavaScript
Code
23
62
const vmark = require('vmark') const loaderUtils = require('loader-utils') module.exports = function (source) { const options = loaderUtils.getOptions(this) || {} return vmark(source, options) }
17,390
https://github.com/LouisProffitX/INF564-Projet/blob/master/OCaml/mini-c/tests/typing/bad/testfile-redef-6.c
Github Open Source
Open Source
MIT
null
INF564-Projet
LouisProffitX
C
Code
16
27
struct S { int a; }; int f() {} struct S* f() {} int main() {}
40,439
https://github.com/dmarchand/billboardery/blob/master/billboardery/Library/PackageCache/com.unity.2d.sprite@1.0.0/Editor/SpriteEditorModule/SpriteFrameModule/DefaultSpriteNameFileIdDataProvider.cs
Github Open Source
Open Source
MIT
2,022
billboardery
dmarchand
C#
Code
47
234
using System.Collections.Generic; using System.Linq; using UnityEngine; namespace UnityEditor.U2D.Sprites { internal class DefaultSpriteNameFileIdDataProvider : ISpriteNameFileIdDataProvider { SpriteNameFileIdPair[] m_NameIDPair; public DefaultSpriteNameFileIdDataProvider(IEnumerable<SpriteRec...
2,609
https://github.com/skubit/skubit-comics/blob/master/billing/src/main/java/com/skubit/iab/loaders/LoaderId.java
Github Open Source
Open Source
Apache-2.0
2,015
skubit-comics
skubit
Java
Code
160
293
/** * Copyright 2015 Skubit * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writi...
42,418
https://github.com/umjammer/vavi-nio-file-discutils/blob/master/src/main/java/discUtils/xfs/Version2Features.java
Github Open Source
Open Source
MIT
2,023
vavi-nio-file-discutils
umjammer
Java
Code
556
1,040
// // Copyright (c) 2019, Bianco Veigel // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, merge, publ...
1,191
https://github.com/stephen-zhao/sgraphics-py/blob/master/sgraphics.py
Github Open Source
Open Source
MIT
2,016
sgraphics-py
stephen-zhao
Python
Code
886
3,004
from PIL import Image, ImageFilter import copy import math ################################################################################ ##### ################################# ##### sGraphics , for 3-dimensional spaces ################################# ##### ...
50,694
https://github.com/nf-core/mag/blob/master/bin/summary_gtdbtk.py
Github Open Source
Open Source
MIT
2,023
mag
nf-core
Python
Code
446
1,831
#!/usr/bin/env python import re import sys import argparse import os.path import pandas as pd def parse_args(args=None): parser = argparse.ArgumentParser() parser.add_argument( "-x", "--extension", required=True, type=str, help="File extension passed to GTDB-TK and sub...
28,172
https://github.com/xcdb/timeframe/blob/master/range.go
Github Open Source
Open Source
MIT
null
timeframe
xcdb
Go
Code
44
100
package timeframe import "time" //Range represents a timespan of LowerInc to UpperExc type Range struct { LowerInc time.Time UpperExc time.Time } //IsZero reports whether r represents a range that has been initialised explicitly func (r *Range) IsZero() bool { return r.LowerInc.IsZero() && r.UpperExc.IsZero() }
3,552
https://github.com/bozoh/fgv/blob/master/introducao_R/resposta-exercico-3.R
Github Open Source
Open Source
MIT
2,017
fgv
bozoh
R
Code
522
2,402
#Lendo dados anp = read.csv2(file="datasets/dados_anp2.csv", stringsAsFactors = FALSE) str(anp) #Transforando os dados anp$PRECO_COMPRA=as.numeric(anp$PRECO_COMPRA) ##Verificando se a nulos which(is.null(anp$PRECO_COMPRA)) ###Não há nulos e sim vário NaN #Questão 1. #Faça o summary para entender a sua base. summary(...
26,402
https://github.com/Rizq-Solutions/automator-rizq/blob/master/generated-sample-api/eshopAPI/app/models/item_subcategoryModel.js
Github Open Source
Open Source
MIT
2,022
automator-rizq
Rizq-Solutions
JavaScript
Code
372
1,477
'user strict'; var sql = require('./newdb.js'); var url = require('url'); var helper = require('./helper'); //Item_Subcategory object constructor var Item_Subcategory = function(req,item_subcategory){ this.item_subcategory_id = 0; this.category_id = item_subcategory.category_id; this.item_subcategory = item_subcat...
768
https://github.com/tied/innovation-funding-service/blob/master/ifs-data-layer/ifs-data-service/src/main/java/org/innovateuk/ifs/competitionsetup/applicationformbuilder/fundingrules/NotAidTemplate.java
Github Open Source
Open Source
MIT
2,021
innovation-funding-service
tied
Java
Code
22
99
package org.innovateuk.ifs.competitionsetup.applicationformbuilder.fundingrules; import org.innovateuk.ifs.competition.resource.FundingRules; import org.springframework.stereotype.Component; @Component public class NotAidTemplate implements FundingRulesTemplate { @Override public FundingRules type() { ...
15,329
https://github.com/whizkid79/db-tools/blob/master/src/.config/fish/functions/touchdb.fish
Github Open Source
Open Source
Apache-2.0
null
db-tools
whizkid79
Fish
Code
14
47
function touchdb --argument-names databasename mysqlparams echo "create database `$databasename` COLLATE utf8_general_ci;"|mysql -A $mysqlparams end
40,008
https://github.com/rarkins/sourcegraph/blob/master/cmd/server/shared/nginx.go
Github Open Source
Open Source
Apache-2.0
2,021
sourcegraph
rarkins
Go
Code
282
724
package shared import ( "fmt" "io/ioutil" "os" "path/filepath" "github.com/pkg/errors" "github.com/sourcegraph/sourcegraph/cmd/server/shared/assets" ) // nginxProcFile will return a procfile entry for nginx, as well as setup // configuration for it. func nginxProcFile() (string, error) { configDir := os.Gete...
11,949
https://github.com/niltor/open-pdd-net-sdk/blob/master/PddOpenSdk/PddOpenSdk/Models/Request/Pmc/QueryPmcAccrueRequestModel.cs
Github Open Source
Open Source
Apache-2.0
2,022
open-pdd-net-sdk
niltor
C#
Code
12
44
namespace PddOpenSdk.Models.Request.Pmc { public partial class QueryPmcAccrueRequestModel : PddRequestModel { } }
37,776
https://github.com/svili365/snowflake/blob/master/src/main/java/com/littlenb/snowflake/sequence/IdGenerator.java
Github Open Source
Open Source
Apache-2.0
2,020
snowflake
svili365
Java
Code
74
163
package com.littlenb.snowflake.sequence; /** * Represents a unique id generator. * * @author sway.li */ public interface IdGenerator { /** * Generate a unique id * * @return id */ long nextId(); /** * Generate unique id * */ long[] nextSegment(int size); /** * Parse the ID into...
786
https://github.com/yashdsaraf/reimagined-eureka/blob/master/server/src/main/java/org/tyit/pnc/config/DatasourceConfig.java
Github Open Source
Open Source
Apache-2.0
2,017
reimagined-eureka
yashdsaraf
Java
Code
165
450
/* * Copyright 2017 Yash D. Saraf, Raees R. Mulla and Sachin S. Negi. * * 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 r...
22,892
https://github.com/chibby0ne/go_book_exercises/blob/master/chapter1/exercise1_3/exercise1_3_test.go
Github Open Source
Open Source
MIT
null
go_book_exercises
chibby0ne
Go
Code
39
123
package main import ( "os" "testing" ) func BenchmarkJoin(b *testing.B) { for i := 0; i < b.N; i++ { using_strings_join(os.Args[1:]) } } func BenchmarkConcat(b *testing.B) { for i := 0; i < b.N; i++ { using_range_concat(os.Args[1:]) } }
47,091
https://github.com/CheCoxshall/ActionMailerNext/blob/master/src/ActionMailerNext.Mvc5-3.Tests/Mvc5-3/WhiteSpaceView.cs
Github Open Source
Open Source
MIT
2,016
ActionMailerNext
CheCoxshall
C#
Code
34
105
using System.IO; using System.Web.Mvc; namespace ActionMailerNext.Mvc5_3.Tests { public class WhiteSpaceView : IView { public void Render(ViewContext viewContext, TextWriter writer) { writer.Write("\r\n \r\n This thing has leading and trailing whitespace. \r\n \r\n"); } ...
52,093
https://github.com/coderaiser/putout/blob/master/packages/plugin-convert-array-copy-to-slice/lib/convert-array-copy-to-slice.js
Github Open Source
Open Source
MIT
2,023
putout
coderaiser
JavaScript
Code
89
274
'use strict'; const {types, operator} = require('putout'); const { isIdentifier, isCallExpression, } = types; const {compare} = operator; module.exports.report = () => `Array should be copied using slice`; module.exports.exclude = () => [ '[...new Set(__a)]', 'new Set([...__a])', ]; module.exports...
38
https://github.com/TeeSeal/headpats/blob/master/src/patterns/InstancePattern.js
Github Open Source
Open Source
MIT
2,018
headpats
TeeSeal
JavaScript
Code
46
135
const extractor = require('../util/extractor'); const Pattern = require('./Pattern'); class InstancePattern extends Pattern { constructor(Class, pattern) { super(); this.Class = Class; this.pattern = pattern; } [extractor](value, previousExtracted) { if (value instanceof t...
4,998
https://github.com/wdpm/lets-go/blob/master/introduction/go.mod
Github Open Source
Open Source
MIT
2,020
lets-go
wdpm
Go Module
Code
7
52
module github.com/wdpm/introduction go 1.14 require golang.org/x/tour v0.0.0-20200201212631-8f38c9a8d074
26,814
https://github.com/piyush168713/Bash/blob/master/sumofdigits.sh
Github Open Source
Open Source
Apache-2.0
2,022
Bash
piyush168713
Shell
Code
27
64
echo "enter numbers" read n sum=0 while test $n -gt 0 do mod=`expr $n % 10` sum=`expr $sum + $mod` n=`expr $n / 10` done echo "$sum"
4,202
https://github.com/bernas670/CAL-Proj/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,019
CAL-Proj
bernas670
Ignore List
Code
3
17
Anotações.txt .vscode/ .idea/
43,618
https://github.com/kiko81/Teleric-Academy-Homeworks/blob/master/Module 1 - Essentials/06_JavaScript Fundamentals/05_Arrays/script.js
Github Open Source
Open Source
MIT
null
Teleric-Academy-Homeworks
kiko81
JavaScript
Code
669
1,678
//Problem 1. Increase array members document.getElementById('check1').onclick = firstProblem; function firstProblem() { var arr = new Array(20), i, len = arr.length; for (i = 0; i < len; i += 1) { arr[i] = i * 5; } document.getElementById('result1').innerHTML = arr.join(', '); ...
41,173
https://github.com/SNWWW/SNTestCodeKit/blob/master/SNTestCode/iiii.swift
Github Open Source
Open Source
MIT
null
SNTestCodeKit
SNWWW
Swift
Code
35
87
// // iiii.swift // SNTestCode // // Created by snlo on 2019/8/14. // Copyright © 2019 snlo. All rights reserved. // import Foundation class okObjiect: NSObject { func test(_ type: String) { print(type) } }
24,342
https://github.com/pendenga/grandmasusie/blob/master/lib/genicon.php
Github Open Source
Open Source
MIT
null
grandmasusie
pendenga
PHP
Code
19
55
<?php class GenIcon { private $shadow_template = 'marker_shadow_template.png'; function __construct($label) { print "generating icon with $label"; } } ?>
1,875
https://github.com/Andreas237/AndroidPolicyAutomation/blob/master/ExtractedJars/Health_com.huawei.health/smali_classes5/com/huawei/hwbtsdk/ui/BTDialogActivity$1.smali
Github Open Source
Open Source
MIT
2,019
AndroidPolicyAutomation
Andreas237
Smali
Code
358
2,156
.class Lcom/huawei/hwbtsdk/ui/BTDialogActivity$1; .super Landroid/content/BroadcastReceiver; .source "SourceFile" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lcom/huawei/hwbtsdk/ui/BTDialogActivity; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags ...
1,407
https://github.com/FiveTimesTheFun/corefx/blob/master/src/System.Diagnostics.Process/src/System/Diagnostics/ProcessManager.Unix.cs
Github Open Source
Open Source
MIT
2,015
corefx
FiveTimesTheFun
C#
Code
401
979
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Microsoft.Win32.SafeHandles; namespace System.Diagnostics { internal static partial class ProcessManager { /// <summary>Gets process infos for ea...
51,104
https://github.com/Etonchev/Telerik_CSharpPart2/blob/master/04NumeralSystems/08_BinaryShort/BinaryShort.cs
Github Open Source
Open Source
MIT
null
Telerik_CSharpPart2
Etonchev
C#
Code
55
141
using System; public class BinaryShort { public static int FindBitAt(int number, int position) { int bit = ((1 << position) & number) >> position; return bit; } public static void Main() { Console.Write("Enter number: "); int number = Convert.ToInt32(Console.ReadLin...
40,160
https://github.com/geophile/sql-layer/blob/master/fdb-sql-layer-core/src/main/java/com/foundationdb/qp/operator/ChainedCursor.java
Github Open Source
Open Source
MIT
null
sql-layer
geophile
Java
Code
474
1,060
/** * The MIT License (MIT) * * Copyright (c) 2009-2015 FoundationDB, LLC * * 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...
12,413
https://github.com/afeng11/tomato-arm/blob/master/release/src-rt-6.x.4708/router/samba-3.5.8/librpc/gen_ndr/srv_initshutdown.c
Github Open Source
Open Source
FSFAP
2,020
tomato-arm
afeng11
C
Code
618
2,860
/* * Unix SMB/CIFS implementation. * server auto-generated by pidl. DO NOT MODIFY! */ #include "includes.h" #include "../librpc/gen_ndr/srv_initshutdown.h" static bool api_initshutdown_Init(pipes_struct *p) { const struct ndr_interface_call *call; struct ndr_pull *pull; struct ndr_push *push; enum ndr_err_code...
2,434
https://github.com/c1982/swe-dashboard/blob/master/internal/metrics/mergerequestsize/service.go
Github Open Source
Open Source
MIT
2,022
swe-dashboard
c1982
Go
Code
266
844
package mergerequestsize import ( "strings" "swe-dashboard/internal/models" ) type SCM interface { GetRepository(projectID int) (repository models.Repo, err error) GetMergeRequestChanges(projectID int, mergeRequestID int) (mergerequest models.MergeRequest, err error) ListMergeRequest(state, scope string, created...
35,994
https://github.com/DandelionWow/nsddatapaper/blob/master/mainfigures/INSPECTIONS/FSAVERAGECHECK/FSAVERAGECHECKnotes.m
Github Open Source
Open Source
BSD-3-Clause
2,021
nsddatapaper
DandelionWow
MATLAB
Code
263
1,040
% on surly: % annotate the individual subjects for p=1:8 unix(sprintf('convert /home/stone-ext4/generic/Dropbox/nsddata/inspections/surfacevisualizations/fsaverageflat_curvature_subj%02d.png -gravity northwest -font FreeMono-Bold -fill black -pointsize 120 -stroke ''#eeeeee'' -strokewidth 10 -annotate +20+20 ''subj%...
44,490
https://github.com/danschumann/group-lunches/blob/master/core/lib/sanitize_url.js
Github Open Source
Open Source
MIT
2,016
group-lunches
danschumann
JavaScript
Code
29
96
var starts_with_http = /^http(s)?:\/\//i; module.exports = function(url){ if(!url) return; url = url.trim(); if ( !url ) return; if( !url.match(starts_with_http) ){ url = 'http://' + url; } return url; }
37,818
https://github.com/angery/ruoyi-ant-oracle/blob/master/node_modules/ant-design-vue/lib/calendar/locale/sk_SK.js
Github Open Source
Open Source
MIT
2,021
ruoyi-ant-oracle
angery
JavaScript
Code
34
114
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _sk_SK = require('../../date-picker/locale/sk_SK'); var _sk_SK2 = _interopRequireDefault(_sk_SK); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } exports['default'] = _sk_SK2['defaul...
18,232
https://github.com/hieuh25/Tonnikala/blob/master/tonnikala/ir/tree.py
Github Open Source
Open Source
Apache-2.0
2,013
Tonnikala
hieuh25
Python
Code
54
185
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals __docformat__ = "epytext" class IRTree(object): def __init__(self): self.root = None self.functions = {} def add_child(self, root): self.root = root def get_root(self): ...
52,810
https://github.com/Pranavpaharia/TestProjectBomber/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,017
TestProjectBomber
Pranavpaharia
Ignore List
Code
6
29
/.vs/ /Binaries/ /Intermediate/ /Saved/ *.sln *.VC.db
44,650
https://github.com/xuchenCN/parquet-mr/blob/master/parquet-column/src/main/java/org/apache/parquet/example/data/simple/convert/SimpleGroupConverter.java
Github Open Source
Open Source
Apache-2.0
2,022
parquet-mr
xuchenCN
Java
Code
245
568
/* * 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...
20,189
https://github.com/zw267/coding-practice/blob/master/cracking-the-coding-interview/00-misc/P0013.java
Github Open Source
Open Source
MIT
null
coding-practice
zw267
Java
Code
231
485
/* P0013 * * Merge Sorted Array * Given two sorted integer arrays A and B, merge B into A as one sorted array. * * Notes: * 1) Allow to use an auxilary array to store the restul? (O(M+N) space) * 2) What if the space complexity is O(1) (without additional storage)? */ public class P0013 { public static voi...
31,568
https://github.com/chrysn/aiocoap/blob/master/aiocoap/util/uri.py
Github Open Source
Open Source
MIT
2,023
aiocoap
chrysn
Python
Code
101
262
# SPDX-FileCopyrightText: Christian Amsüss and the aiocoap contributors # # SPDX-License-Identifier: MIT """Tools that I'd like to have in urllib.parse""" import string #: "unreserved" characters from RFC3986 unreserved = string.ascii_letters + string.digits + '-._~' #: "sub-delims" characters from RFC3986 sub_deli...
43,052
https://github.com/alexeykozoriz/2021-03-otus-spring-kozoriz/blob/master/homework-20210414/src/main/java/ru/otus/homework20210414/service/TestingServiceImpl.java
Github Open Source
Open Source
MIT
null
2021-03-otus-spring-kozoriz
alexeykozoriz
Java
Code
154
500
package ru.otus.homework20210414.service; import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Service; import org.springframework.util.CollectionUtils; import ru.otus.homework20210414.domain.Answer; import ru.otus.homework20210414.domain.AnswerByOption; import ru.otus.homework20210414.domain.A...
23,689
https://github.com/debugerr/RabbitMqAzureMetrics/blob/master/Tests/RabbitMQAzureMetrics.Test.UnitTests/ParserTests.cs
Github Open Source
Open Source
MIT
2,022
RabbitMqAzureMetrics
debugerr
C#
Code
172
584
using NUnit.Framework; using RabbitMQAzureMetrics.MetricsValueConverters; using RabbitMQAzureMetrics.ValuePublishers.Overview; using System; using System.Collections.Generic; using System.IO; using System.Reflection; using System.Threading.Tasks; namespace RabbitMQAzureMetrics.Test.UnitTests { public class ParserT...
3,535
https://github.com/ryandle/azure-activedirectory-identitymodel-extensions-for-dotnet/blob/master/test/Microsoft.IdentityModel.JsonWebTokens.Tests/JsonWebTokenTests.cs
Github Open Source
Open Source
MIT
2,022
azure-activedirectory-identitymodel-extensions-for-dotnet
ryandle
C#
Code
2,198
8,109
//------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. // All rights reserved. // // This code is licensed under the MIT License. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated doc...
40,428
https://github.com/jmbockhorst/Dnn.Platform/blob/master/DNN Platform/Library/ExtensionPoints/UserControlExtensionControl.cs
Github Open Source
Open Source
MIT
2,022
Dnn.Platform
jmbockhorst
C#
Code
205
629
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information namespace DotNetNuke.ExtensionPoints { using System; using System.ComponentModel; using System.IO; u...
19,592
https://github.com/youtarrow/contrail/blob/master/api/models.py
Github Open Source
Open Source
MIT
2,021
contrail
youtarrow
Python
Code
82
385
from django.db import models from django.contrib.auth.models import User import uuid def upload_avatar_path(instance, filename): ext = filename.split('.')[-1] return '/'.join(['avatars', str(instance.user_profile.id) + str(".") + str(ext)]) class Profile(models.Model): user_profile = models.OneToOneFiel...
49,932
https://github.com/chanokcy/bitnami-wordpress/blob/master/apps/wordpress/htdocs/wp-content/themes/suevafree/core/post-formats/standard.php
Github Open Source
Open Source
ECL-2.0, Apache-2.0, MIT
null
bitnami-wordpress
chanokcy
PHP
Code
47
172
<?php /** * Wp in Progress * * @author WPinProgress * * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0) * It is also available at this URL: http://www.gnu.org/licenses/gpl-3.0.txt */ do_action('suevafree_thumbnail', 'blog' ); ?> <div class="post-article"> <?php do_action('sueva...
20,213
https://github.com/svalgaard/macports-ports/blob/master/ocaml/ocaml-text/files/patch-setup.ml.diff
Github Open Source
Open Source
BSD-3-Clause
2,019
macports-ports
svalgaard
null
Spoken
47
144
--- setup.ml 2011-07-04 18:26:16.000000000 +0200 +++ setup.ml 2012-06-16 11:36:57.000000000 +0200 @@ -9,13 +9,7 @@ (* List of paths to search for iconv *) let search_paths = [ - "/usr"; - "/usr/local"; - "/opt"; - "/opt/local"; - "/sw"; - "/mingw"; - "/mingw/local"; + "@prefix@"; ] (* OASIS_START *)
39,883
https://github.com/sygh-JP/FbxModelViewer/blob/master/SharedUtility/MyUtils/MyConstantBufferPacks.hpp
Github Open Source
Open Source
MIT
2,021
FbxModelViewer
sygh-JP
C++
Code
187
1,139
#pragma once #include "MyBoneMatrixPalettePack.h" namespace MyCpuGpuCommon { class MyViewParamsPack final { public: MyViewParamsPack() : UniWorldMatrix(MyMath::ZERO_MATRIXF) , UniViewMatrix(MyMath::ZERO_MATRIXF) , UniProjectionMatrix(MyMath::ZERO_MATRIXF) , UniWorldViewMatrix(MyMath::ZERO_MATRIXF)...
44,487
https://github.com/anoyetta/ACT.Hojoring/blob/master/source/FFXIV.Framework/FFXIV.Framework/Common/OverlayProgress.cs
Github Open Source
Open Source
BSD-3-Clause
2,022
ACT.Hojoring
anoyetta
C#
Code
43
149
using System; namespace FFXIV.Framework.Common { public class OverlayProgress { private IProgress<Action> currentProgress; public OverlayProgress() { this.CreateProgress(); } private void CreateProgress() { this.currentProgress = new Pro...
24,409