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/conversationai/conversationai-crowdsource/blob/master/scripts/src/csvtojsonlines_lib.ts | Github Open Source | Open Source | Apache-2.0 | 2,020 | conversationai-crowdsource | conversationai | TypeScript | Code | 161 | 384 | /*
Copyright 2017 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... | 3,618 |
https://github.com/Zwiterrion/daikoku/blob/master/daikoku/javascript/src/components/adminbackoffice/otoroshi/initialization/steps.js | Github Open Source | Open Source | Apache-2.0 | null | daikoku | Zwiterrion | JavaScript | Code | 1,802 | 6,964 | import React, { useState, useEffect } from 'react';
import Select from 'react-select';
import Creatable from 'react-select/creatable';
import AsyncSelect from 'react-select/async';
import classNames from 'classnames';
import _ from 'lodash';
import { Option } from '../../../utils';
import * as Services from '../../../... | 13,152 |
https://github.com/Syndace/python-omemo/blob/master/omemo/extendedpublicbundle.py | Github Open Source | Open Source | MIT | 2,022 | python-omemo | Syndace | Python | Code | 392 | 1,060 | import copy
from .exceptions import UnknownKeyException
class ExtendedPublicBundle:
"""
This class looks exactly the same as the PublicBundle class, but the types of the
fields are a bit different:
The spk field is not a key, but a dictionary containing the key and the id:
spk = {
"key" :... | 37,880 |
https://github.com/ythlml/mindspore/blob/master/tests/ut/python/model/test_bert_cell.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | mindspore | ythlml | Python | Code | 1,014 | 5,490 | # Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 6,437 |
https://github.com/thanosargiriou/climex/blob/master/xtreme_Indexes_climex_1.0/gsl_climex_1.0.py | Github Open Source | Open Source | MIT | 2,021 | climex | thanosargiriou | Python | Code | 435 | 1,065 | import pandas as pd
import glob
"""
Climate indexes as defined by http://etccdi.pacificclimate.org/list_27_indices.shtml
Authors: Ioannidis Panagiotis, Athanassios Argiriou,
github:ioannidispanagiotis,
email: panagiwths.ioannidis117@gmail.com
Laboratory of Atmospheric Physics - Department of Physics - University of Pa... | 2,564 |
https://github.com/xui/xuijs.com/blob/master/node_modules/.npm/.cache/express/1.0.1/package/support/connect/support/koala/spec/unit/formatter.spec.js | Github Open Source | Open Source | MIT | 2,012 | xuijs.com | xui | JavaScript | Code | 68 | 217 |
Formatter = require('koala/formatter').Formatter
describe 'Formatter'
describe '.render()'
it 'should render using the given callback'
var ruby = new Lexer({
keyword: /^(def|end)\b/,
constant: /^([A-Z]\w*|__FILE__)/,
string: /^(".*?")/,
id: /^(\w+)/
})
var forma... | 29,602 |
https://github.com/snowymo/OnlineSurfaceReconstruction/blob/master/libOSR/include/osr/Neighbor.h | Github Open Source | Open Source | BSD-3-Clause | 2,022 | OnlineSurfaceReconstruction | snowymo | C | Code | 171 | 495 | /*
This file is part of the implementation for the technical paper
Field-Aligned Online Surface Reconstruction
Nico Schertler, Marco Tarini, Wenzel Jakob, Misha Kazhdan, Stefan Gumhold, Daniele Panozzo
ACM TOG 36, 4, July 2017 (Proceedings of SIGGRAPH 2017)
Use of this source code is granted via a BSD-style l... | 16,575 |
https://github.com/advocaite/Painting-Hung-7remake/blob/master/mobile/language/vi/tracking.mo | Github Open Source | Open Source | MIT | 2,021 | Painting-Hung-7remake | advocaite | Modelica | Code | 216 | 651 | <?php
if(!defined('INSIDE')){ die("attemp hacking");}
$lang['Same PC'] = 'Same PC';
$lang['Report Statistic'] = 'Report Statistic';
$lang['Resource Statistic'] = 'Resource Statistic';
$lang['Attack Statistic'] = 'Attack Statistic';
$lang['Report Message'] = 'Message Statistic';
$lang['Keywords'] = 'Username';
$lang['fi... | 5,782 |
https://github.com/darkmice/rc-tabs/blob/master/__test__/index.test.js | Github Open Source | Open Source | MIT | 2,017 | rc-tabs | darkmice | JavaScript | Code | 116 | 498 | import React from 'react';
import sinon from 'sinon';
import {Tabs, TabPanel} from '../src/index.js';
import {mount} from 'enzyme';
describe('<Tabs />', () => {
it('calls componentWillReceiveProps', () => {
sinon.spy(Tabs.prototype, 'componentWillReceiveProps');
const wrapper = mount(
<Tabs>
<... | 796 |
https://github.com/condy0919/sleepyhead/blob/master/src/fdflag.rs | Github Open Source | Open Source | MIT | 2,020 | sleepyhead | condy0919 | Rust | Code | 156 | 463 | use std::ops::BitOrAssign;
use std::os::unix::io::RawFd;
// opt
// 1. EXISTS ERROR 用于在注册时
// 2. epoll 触发时,用来判断是 EPOLL 事件,还是通过 channel 传递的要创建 uthread 的信息
pub trait Flag: From<u32> + Into<u32> + Clone + Copy + BitOrAssign {}
pub struct FdFlag<T: Flag> {
fd: RawFd,
flag: T,
}
impl<T: Flag> From<u64> for FdFlag... | 35,094 |
https://github.com/ktech99/asterixdb/blob/master/asterixdb/asterix-app/src/main/java/org/apache/asterix/api/http/server/NodeControllerDetailsApiServlet.java | Github Open Source | Open Source | Apache-2.0 | null | asterixdb | ktech99 | Java | Code | 556 | 1,782 | /*
* 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 ... | 40,676 |
https://github.com/VN-huster/OOLT.ICT.20202.20184267.NguyenNgocHuan/blob/master/Lab01/matrix.java | Github Open Source | Open Source | MIT | null | OOLT.ICT.20202.20184267.NguyenNgocHuan | VN-huster | Java | Code | 113 | 417 | import java.util.Scanner;
import java.util.Arrays;
public class matrix {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Enter rows: ");
int r = in.nextInt();
System.out.println("Enter columns: ");
int c = in.nextInt();
... | 22,009 |
https://github.com/Grafelhaft/PolyCalc/blob/master/src/main/java/de/grafelhaft/polygoncalc/algorithm/QuickHull.java | Github Open Source | Open Source | Apache-2.0 | null | PolyCalc | Grafelhaft | Java | Code | 443 | 1,301 | package de.grafelhaft.polygoncalc.algorithm;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import de.grafelhaft.polygoncalc.model.IPoint;
/**
* Created by @author Markus Graf (Grafelhaft) on 20.09.2020
* Source: http://www.ahristov.com/tutorial/geometry-games/convex-hull.html
*/
publ... | 25,928 |
https://github.com/jinshuilai/maoshop/blob/master/src/com/mao/shop/service/impl/CartServiceImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | maoshop | jinshuilai | Java | Code | 801 | 3,284 | package com.mao.shop.service.impl;
import java.net.URLDecoder;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans... | 3,141 |
https://github.com/liukun4515/TSLevelDB/blob/master/src/main/java/edu/tsinghua/k1/BaseTimeSeriesDB.java | Github Open Source | Open Source | Apache-2.0 | null | TSLevelDB | liukun4515 | Java | Code | 112 | 462 | package edu.tsinghua.k1;
import edu.tsinghua.k1.api.ITimeSeriesDB;
import edu.tsinghua.k1.api.ITimeSeriesWriteBatch;
import edu.tsinghua.k1.api.TimeSeriesDBException;
import edu.tsinghua.k1.api.TimeSeriesDBIterator;
import java.io.IOException;
import org.iq80.leveldb.DB;
import org.iq80.leveldb.DBIterator;
import org.... | 41,902 |
https://github.com/Felixleh/spe-ed-solver/blob/master/spe-ed-solver/web-communication/src/main/java/webcommunication/webservice/MalformedURLException.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | spe-ed-solver | Felixleh | Java | Code | 39 | 110 | package webcommunication.webservice;
/**
* Exception wrapper thrown when the a URL has an invalid format.
*/
@SuppressWarnings("serial")
public class MalformedURLException extends Exception {
public MalformedURLException(String message) {
super(message);
}
public MalformedURLException(String message, Throwabl... | 48,775 |
https://github.com/NethermindEth/Yul-Specification/blob/master/yul_cmd.lean | Github Open Source | Open Source | Apache-2.0 | 2,022 | Yul-Specification | NethermindEth | Lean | Code | 4,136 | 10,827 | import .yul_ast
import .aux
import tactic.linarith
import data.finset.basic
import data.vector
import init.data.fin.ops
import init.data.list.basic
set_option class.instance_max_depth 100
def FTContext := Identifier → option (ℕ × ℕ)
def empΓ : FTContext := λ_, none
def VarStore (vars : finset Identifier) := ∀ i ... | 3,067 |
https://github.com/samiudheen/mono-soc-2007/blob/master/jared/MonoTorrent.Interface/TorrentTreeView.cs | Github Open Source | Open Source | MIT, BSD-3-Clause | 2,007 | mono-soc-2007 | samiudheen | C# | Code | 1,075 | 3,994 | //
// TorrentTreeView.cs
//
// Author:
// Jared Hendry (buchan@gmail.com)
//
// Copyright (C) 2007 Jared Hendry
//
// 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, in... | 4,364 |
https://github.com/zoontao/school/blob/master/src/Common/Exceptions/RuntimeException.php | Github Open Source | Open Source | MIT | null | school | zoontao | PHP | Code | 14 | 37 | <?php
namespace MicroLink\Common\Exceptions;
/**
* Class RuntimeException.
*/
class RuntimeException extends Exception
{
}
| 14,684 |
https://github.com/petr-mates/osb-export/blob/master/configuration-export/src/test/java/org/mates/osb/ResourceBuilderTest.java | Github Open Source | Open Source | Apache-2.0 | null | osb-export | petr-mates | Java | Code | 158 | 450 | package org.mates.osb;
/*
* Copyright 2001-2005 The Apache Software Foundation.
*
* 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
*
... | 25,029 |
https://github.com/KiloCraft/KiloEssentials/blob/master/src/main/java/org/kilocraft/essentials/extensions/magicalparticles/config/DustParticleEffectConfigSection.java | Github Open Source | Open Source | MIT | 2,021 | KiloEssentials | KiloCraft | Java | Code | 26 | 117 | package org.kilocraft.essentials.extensions.magicalparticles.config;
import org.spongepowered.configurate.objectmapping.ConfigSerializable;
import org.spongepowered.configurate.objectmapping.meta.Setting;
@ConfigSerializable
public class DustParticleEffectConfigSection {
@Setting("rgb")
public String rgb = "... | 20,849 |
https://github.com/nandakumar131/hadoop-ozone/blob/master/hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/persistence/SqliteDataSourceProvider.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | hadoop-ozone | nandakumar131 | Java | Code | 222 | 441 | /*
* 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 ... | 10,786 |
https://github.com/BlueMax-IO/nodearch/blob/master/backend/express/src/components/express.hook.ts | Github Open Source | Open Source | MIT | 2,021 | nodearch | BlueMax-IO | TypeScript | Code | 102 | 320 | import { Hook, IHook, HookContext, ComponentType, Logger, ClassConstructor } from '@nodearch/core';
import { ExpressService } from './express.service';
@Hook()
export class ExpressHook implements IHook {
private readonly expressService: ExpressService;
private readonly logger: Logger;
private controllers?: Clas... | 7,084 |
https://github.com/MetaBorgCube/layout-decl/blob/master/org.metaborg.sdf2table/src/main/java/org/metaborg/sdf2table/grammar/IPriority.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | layout-decl | MetaBorgCube | Java | Code | 13 | 47 | package org.metaborg.sdf2table.grammar;
public interface IPriority {
IProduction higher();
IProduction lower();
boolean transitive();
}
| 26,328 |
https://github.com/camsiabor/qcom/blob/master/util/getter.go | Github Open Source | Open Source | MIT | null | qcom | camsiabor | Go | Code | 3,120 | 9,735 | package util
import (
"fmt"
"github.com/camsiabor/qcom/qtime"
"github.com/pkg/errors"
"reflect"
"strconv"
"strings"
"time"
)
func AsStr(o interface{}, defaultval string) (r string) {
if o == nil {
return defaultval
}
var s, ok = o.(string)
if ok {
return s
}
var vref = reflect.ValueOf(o)
var kind = ... | 35,814 |
https://github.com/ragshion/dindik/blob/master/assets/zmentah template/scss/_header.scss | Github Open Source | Open Source | MIT | null | dindik | ragshion | SCSS | Code | 2,321 | 9,156 | .header {
color: $body-color;
}
.header:not(.off-shadow) {
box-shadow: 0 3px 3px rgba(0, 0, 0, .1);
}
.header-topline {
display: flex;
font-size: 14px;
line-height: 1.2em;
letter-spacing: .5px;
word-spacing: -2px;
align-items: center;
min-height: 48px;
background: theme-color("primary");
&,
a {
color: $to... | 11,271 |
https://github.com/Raytsang123/T-Miner/blob/master/rotten_tomato/config_defender.py | Github Open Source | Open Source | MIT | 2,021 | T-Miner | Raytsang123 | Python | Code | 2,587 | 11,874 | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import sys
import copy
import os
DIR = os.getcwd()
SEED = 234
seq_len = 16
discriminator_nepochs = 10 # Number of discriminator only epochs
autoencoder_nepochs = 5 # Number of autoencoding only epochs
full... | 28,586 |
https://github.com/wldkatsuki/MREC-vishesh21/blob/master/washa/askAddressUpdate.py | Github Open Source | Open Source | CC0-1.0 | 2,022 | MREC-vishesh21 | wldkatsuki | Python | Code | 188 | 1,299 | from PyQt5 import QtCore, QtGui, QtWidgets
from quirks.mainApp import _updateAddress
import addressUpdated
class Ui_askAddressUpdate(object):
def updateAddressInProfile(self, askAddressUpdate):
_updateAddress.updateAddressUser(self.userid, self.ordernum)
self.addressUpdatedPage = QtWidgets.QDialog... | 13,266 |
https://github.com/Glusk/sprouts/blob/master/core/src/main/java/com/github/glusk2/sprouts/core/moves/SubmoveElement.java | Github Open Source | Open Source | MIT | 2,021 | sprouts | Glusk | Java | Code | 978 | 3,115 | package com.github.glusk2.sprouts.core.moves;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.math.Rectangle;
import com.badlogic.gdx.math.Vector2;
import com.github.glusk2.sprouts.core.comb.FaceIntersectionSearch;
import com.git... | 47,615 |
https://github.com/simonbray/IntaRNA/blob/master/src/IntaRNA/InteractionEnergyIdxOffset.h | Github Open Source | Open Source | MIT | 2,022 | IntaRNA | simonbray | C | Code | 3,323 | 7,517 |
#ifndef INTARNA_INTERACTIONENERGYIDXOFFSET_H_
#define INTARNA_INTERACTIONENERGYIDXOFFSET_H_
#include "IntaRNA/InteractionEnergy.h"
namespace IntaRNA {
/**
* Wrapper for a given InteractionEnergy object where indices are shifted by
* a given positive offset (shifted towards infinity).
* This is useful for local i... | 28,671 |
https://github.com/djones6/OpenAPIDemo/blob/master/Sources/Application/Application.swift | Github Open Source | Open Source | MIT | 2,020 | OpenAPIDemo | djones6 | Swift | Code | 201 | 596 | import Foundation
import Kitura
import LoggerAPI
import Configuration
import CloudEnvironment
import KituraContracts
import Health
import KituraOpenAPI
import SwiftKueryORM
import SwiftKueryPostgreSQL
public let projectPath = ConfigurationManager.BasePath.project.path
public let health = Health()
class Persistence {
... | 41,887 |
https://github.com/JUSTLOVELE/MobileDevStudy/blob/master/RL/gym_case/value_iteration.py | Github Open Source | Open Source | MIT | 2,021 | MobileDevStudy | JUSTLOVELE | Python | Code | 193 | 597 | import gym
import numpy as np
def run_episode(env, policy, gamma = 1.0, render = False):
obs = env.reset()
total_reward = 0
step_idx = 0
while True:
if render:
env.render()
obs, reward, done , _ = env.step(int(policy[obs]))
total_reward += (gamma ** step_idx * rewar... | 18,856 |
https://github.com/zhiliang729/TTCSDK_iOS/blob/master/TTC_SDK_iOS_Demo/ViewController.swift | Github Open Source | Open Source | MIT | 2,018 | TTCSDK_iOS | zhiliang729 | Swift | Code | 472 | 1,670 | //
// ViewController.swift
// TTC_SDK_iOS_Demo
//
// Created by Zhang Yufei on 2018/7/2 下午4:07.
// Copyright © 2018年 tataufo. All rights reserved.
//
import UIKit
import TTCSDK
class ViewController: UIViewController {
let dataArr = ["Login", "Logout", "Update", "Querry account balance", "Querry wallet ... | 39,620 |
https://github.com/FurongYe/IOHexperimenter/blob/master/docs/structioh_1_1problem_1_1_meta_data.js | Github Open Source | Open Source | BSD-3-Clause | null | IOHexperimenter | FurongYe | JavaScript | Code | 60 | 572 | var structioh_1_1problem_1_1_meta_data =
[
[ "MetaData", "structioh_1_1problem_1_1_meta_data.html#a66fb4925a962c1d59ea1300a8a97b590", null ],
[ "MetaData", "structioh_1_1problem_1_1_meta_data.html#a835dfda44836a8187476b3ec12953130", null ],
[ "operator!=", "structioh_1_1problem_1_1_meta_data.html#aad970a93b... | 36,860 |
https://github.com/rricard/draft-md/blob/master/src/index.js | Github Open Source | Open Source | MIT | 2,018 | draft-md | rricard | JavaScript | Code | 43 | 123 | /* @flow */
import React from "react"
import ReactDOM from "react-dom"
import { MDEditor } from "./components/MDEditor"
import type { MDEditorProps } from "./components/MDEditor"
export { MDEditor } from "./components/MDEditor"
export function mountMDEditor(props: MDEditorProps, container: any): void {
ReactDOM.re... | 21,139 |
https://github.com/bestbeforetoday/fabric-samples/blob/master/ci/scripts/run-test-network-basic.sh | Github Open Source | Open Source | Apache-2.0, CC-BY-4.0 | 2,022 | fabric-samples | bestbeforetoday | Shell | Code | 443 | 1,323 | set -euo pipefail
CHAINCODE_LANGUAGE=${CHAINCODE_LANGUAGE:-go}
CHAINCODE_NAME=${CHAINCODE_NAME:-basic}
CHAINCODE_PATH=${CHAINCODE_PATH:-../asset-transfer-basic}
function print() {
GREEN='\033[0;32m'
NC='\033[0m'
echo
echo -e "${GREEN}${1}${NC}"
}
function createNetwork() {
print "Creating 3 Org network"
./... | 33,463 |
https://github.com/monsterrx/_cms/blob/master/resources/views/_cms/system-views/recovery/deletedDataViews/radioOne/jocks.blade.php | Github Open Source | Open Source | MIT | null | _cms | monsterrx | PHP | Code | 86 | 407 | <table class="table table-hover" id="genericTable">
<thead>
<tr>
<th>Id</th>
<th>Name</th>
<th>Nickname</th>
<th>School</th>
<th>Batch</th>
<th>Date Deleted</th>
<th></th>
</tr>
</thead>
<tbody>
@forelse($data as $studentJocks)
@for... | 37,449 |
https://github.com/ruixiaoguo/LocalArchiverManager/blob/master/LocalArchiverManager/LocalArchiverManager/LocalUserDefaulManager.m | Github Open Source | Open Source | MIT | 2,018 | LocalArchiverManager | ruixiaoguo | Objective-C | Code | 101 | 419 | //
// LocalUserDefaulManager.m
// LocalArchiverManager
//
// Created by grx on 2018/8/17.
// Copyright © 2018年 grx. All rights reserved.
//
#import "LocalUserDefaulManager.h"
@implementation LocalUserDefaulManager
+ (LocalUserDefaulManager *)shareManagement
{
static LocalUserDefaulManager *_defaulManager = n... | 7,338 |
https://github.com/vuchkov/dbal/blob/master/lib/Doctrine/DBAL/Driver/IBMDB2/DB2Exception.php | Github Open Source | Open Source | MIT | 2,019 | dbal | vuchkov | PHP | Code | 84 | 300 | <?php
declare(strict_types=1);
namespace Doctrine\DBAL\Driver\IBMDB2;
use Doctrine\DBAL\Driver\AbstractDriverException;
use function db2_conn_error;
use function db2_conn_errormsg;
use function db2_stmt_error;
use function db2_stmt_errormsg;
class DB2Exception extends AbstractDriverException
{
/**
* @param... | 2,982 |
https://github.com/MidoAhmed/dinivas/blob/master/apps/console/src/app/build/ansible/galaxy/galaxy-routing.module.ts | Github Open Source | Open Source | Apache-2.0 | null | dinivas | MidoAhmed | TypeScript | Code | 196 | 683 | import { ProviderSourceListResolver } from './my-content/provider-source-resolver.service';
import { RepoContentDetailComponent } from './repo-content-detail/repo-content-detail.component';
import { ProviderListResolver } from './providers/provider-resolver.service';
import { ProvidersComponent } from './providers/prov... | 32,455 |
https://github.com/dd181818/lullaby/blob/master/lullaby/examples/example_app/port/sdl2/get_native_window_osx.mm | Github Open Source | Open Source | Apache-2.0 | 2,018 | lullaby | dd181818 | Objective-C++ | Code | 108 | 227 | /*
Copyright 2017 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | 10,277 |
https://github.com/01vadim10/slot_automat/blob/master/application/classes/model/___games.php | Github Open Source | Open Source | BSD-3-Clause | 2,013 | slot_automat | 01vadim10 | PHP | Code | 84 | 249 | <?php defined('SYSPATH') OR die('No Direct Script Access');
class Model_Games extends Model{
public $_game_list;
public function __construct()
{
}
// Получает список игр и их параметры
public function get_game($id = 0)
{
if ($id == 0)
{
$this->_game_list;
}
}
// Обновляет параметры игр
public ... | 9,658 |
https://github.com/ebu/mcma-projects-dotnet/blob/master/multi-cloud-ai-workflow-az/services/Mcma.Azure.TransformService/Worker/Function.cs | Github Open Source | Open Source | Apache-2.0 | 2,020 | mcma-projects-dotnet | ebu | C# | Code | 123 | 504 | using System.Threading.Tasks;
using Mcma.Azure.BlobStorage;
using Mcma.Azure.Client;
using Mcma.Azure.CosmosDb;
using Mcma.Azure.Functions.Logging;
using Mcma.Azure.Functions.Worker;
using Mcma.Client;
using Mcma.Core;
using Mcma.Core.Serialization;
using Mcma.Data;
using Mcma.Worker;
using Microsoft.Azure.WebJobs;
usi... | 31,516 |
https://github.com/yuwei-cheng/eBay/blob/master/analyze/const.py | Github Open Source | Open Source | MIT | 2,021 | eBay | yuwei-cheng | Python | Code | 123 | 462 | import numpy as np
from statsmodels.nonparametric._kernel_base import EstimatorSettings
from agent.const import DELTA_SLR
# meta categories for collectibles
COLLECTIBLES = [1, 237, 260, 550, 870, 11116, 20081, 45100, 64482]
# for finding kernel regression bandwidth
OPT = EstimatorSettings(efficient=True)
# agent na... | 34,155 |
https://github.com/paper-project/paper/blob/master/paper/secure.cpp | Github Open Source | Open Source | BSD-2-Clause | null | paper | paper-project | C++ | Code | 8,773 | 29,989 | #include <paper/secure.hpp>
#include <paper/working.hpp>
#include <boost/property_tree/json_parser.hpp>
#include <blake2/blake2.h>
#include <ed25519-donna/ed25519.h>
// Genesis keys for network variants
namespace
{
std::string paper_test_private_key = "34F0A37AAD20F4A260F0A5B3CB3D7FB50673212263E58A380BC10474BB... | 177 |
https://github.com/eProsima/Non-Intrusive-DDS-Recorder/blob/master/utils/examples/basic types/BasicTypes_subscriber.cxx | Github Open Source | Open Source | Apache-2.0 | 2,021 | Non-Intrusive-DDS-Recorder | eProsima | C++ | Code | 819 | 2,705 | /* BasicTypes_subscriber.cxx
A subscription example
This file is derived from code automatically generated by the rtiddsgen
command:
rtiddsgen -language C++ -example <arch> BasicTypes.idl
Example subscription of type BasicTypes automatically generated by
'rtiddsgen'. To test them follow these st... | 26,849 |
https://github.com/EOL/harvester/blob/master/db/migrate/20171221175421_adding_refs_to_traits.rb | Github Open Source | Open Source | MIT | 2,023 | harvester | EOL | Ruby | Code | 43 | 105 | class AddingRefsToTraits < ActiveRecord::Migration[4.2]
def change
# This is a little misleading, but it's something I decided we need at this point, sooo...
change_column :resources, :abbr, :string, limit: 16, unique: true, nil: false
remove_index :resources, :name
add_index :resources, :abbr, unique... | 41,433 |
https://github.com/Social-Institute-WAAS/blog-waas-gatsby/blob/master/wordpress_data/wp-content/plugins/wp-rest-api-authentication/admin/partials/support/class-mo-api-authentication-faq.php | Github Open Source | Open Source | MIT | 2,021 | blog-waas-gatsby | Social-Institute-WAAS | PHP | Code | 29 | 139 | <?php
class Mo_API_Authentication_Admin_FAQ {
public static function mo_api_authentication_faq() {
self::faq_page();
}
public static function faq_page(){
?>
<div class="mo_table_layout">
<object type="text/html" data="https://faq.miniorange.com/kb/" width="100%" height="600px" >
</obj... | 46,747 |
https://github.com/eeviktor/gramConfig/blob/master/CMakeLists.txt | Github Open Source | Open Source | MIT | 2,020 | gramConfig | eeviktor | CMake | Code | 56 | 170 | cmake_minimum_required(VERSION 3.16)
project(
gramConfig
VERSION 1.0
DESCRIPTION "Lightweight XML based application configuration"
LANGUAGES CXX)
# Only do these if this is the main project, and not if it is included through
# add_subdirectory
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
# Ensure -std=c++xx... | 33,166 |
https://github.com/chausson/CHProgressHUD/blob/master/CHProgressHUDDemo/ViewController.m | Github Open Source | Open Source | MIT | 2,016 | CHProgressHUD | chausson | Objective-C | Code | 190 | 866 | //
// ViewController.m
// CHProgressHUDDemo
//
// Created by Chausson on 16/4/8.
// Copyright © 2016年 Chausson. All rights reserved.
//
#import "ViewController.h"
#import "CHProgressHUD.h"
static NSArray *data;
@interface ViewController ()<UITableViewDelegate,UITableViewDataSource>
@end
@implementation ViewContr... | 33,368 |
https://github.com/marco-c/gecko-dev-wordified-and-comments-removed/blob/master/tools/crashreporter/system-symbols/win/scrape-report.py | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,023 | gecko-dev-wordified-and-comments-removed | marco-c | Python | Code | 409 | 1,042 | import
csv
import
json
import
logging
import
os
import
sys
import
requests
import
urlparse
log
=
logging
.
getLogger
(
)
def
fetch_missing_symbols_from_crash
(
file_or_crash
)
:
if
os
.
path
.
isfile
(
file_or_crash
)
:
log
.
info
(
"
Fetching
missing
symbols
from
JSON
file
:
%
s
"
%
file_or_crash
)
... | 10,280 |
https://github.com/JulianFeinauer/incubator-plc4x/blob/master/plc4j/utils/connection-pool/src/test/java/org/apache/plc4x/java/utils/connectionpool/PooledPlcDriverManagerTest.java | Github Open Source | Open Source | Apache-2.0 | null | incubator-plc4x | JulianFeinauer | Java | Code | 652 | 2,420 | /*
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 not use th... | 15,143 |
https://github.com/aurimasniekis/php-tdlib-schema/blob/master/src/InputMessageInvoice.php | Github Open Source | Open Source | MIT | 2,022 | php-tdlib-schema | aurimasniekis | PHP | Code | 420 | 1,306 | <?php
/**
* This phpFile is auto-generated.
*/
declare(strict_types=1);
namespace AurimasNiekis\TdLibSchema;
/**
* A message with an invoice; can be used only by bots and only in private chats.
*/
class InputMessageInvoice extends InputMessageContent
{
public const TYPE_NAME = 'inputMessageInvoice';
/*... | 30,215 |
https://github.com/jkritikos/exforge_challenge/blob/master/Resources/game/iphone/invite.js | Github Open Source | Open Source | Apache-2.0 | null | exforge_challenge | jkritikos | JavaScript | Code | 1,144 | 5,506 | var enableFacebookSendInvitation = false;
var numberOfSelectedCheckboxes = 0;
//UI components
var inviteFriendsBackgroundImage = null;
var inviteFriendsBackgroundTextImage = null;
var inviteFriendsCloseImage = null;
var inviteFriendsFacebookImage = null;
var inviteFriendsFacebookLabel = null;
var inviteFriendsEmailIma... | 15,867 |
https://github.com/zikani03/articulated/blob/master/src/main/java/me/zikani/labs/articulated/model/Amount.java | Github Open Source | Open Source | MIT | 2,020 | articulated | zikani03 | Java | Code | 323 | 767 | /**
* MIT License
*
* Copyright (c) 2020 - 2022 Zikani Nyirenda Mwase and Contributors
*
* 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 limitati... | 31,002 |
https://github.com/gplushi/Multiverse-Core/blob/master/src/main/java/com/onarandombox/MultiverseCore/utils/AnchorManager.java | Github Open Source | Open Source | BSD-3-Clause | 2,022 | Multiverse-Core | gplushi | Java | Code | 573 | 1,673 | /******************************************************************************
* Multiverse 2 Copyright (c) the Multiverse Team 2011. *
* Multiverse 2 is licensed under the BSD License. *
* For more information please check the README.md file included *
... | 1,182 |
https://github.com/Maddienis/travel_app_sm/blob/master/src/features/city_combine.py | Github Open Source | Open Source | MIT | null | travel_app_sm | Maddienis | Python | Code | 97 | 348 | import pandas as pd
import numpy as np
from pycountry_convert import country_alpha2_to_continent_code, country_name_to_country_alpha2
# This will merge attraction and food on the city level all numeric passes it to add the continent of each city
def mergeAttractionFood(attraction_df, food_df):
city = pd.mer... | 4,348 |
https://github.com/horvatal/elasticsearch-net/blob/master/docs/index.asciidoc | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,020 | elasticsearch-net | horvatal | AsciiDoc | Code | 67 | 248 | :title-separator: |
[[elasticsearch-net-reference]]
= Elasticsearch.Net and NEST: the .NET clients
////
IMPORTANT NOTE
==============
This file has been generated from https://github.com/elastic/elasticsearch-net/tree/master/src/Tests/Tests/index.asciidoc.
If you wish to submit a PR for any spelling mistakes, typos... | 13,272 |
https://github.com/kemaldemirgil/team-profile-generator/blob/master/index.js | Github Open Source | Open Source | MIT | null | team-profile-generator | kemaldemirgil | JavaScript | Code | 600 | 1,670 | //////////////////////////////////////Init//////////////////////////////////////
const inquirer = require('inquirer');
const fs = require("fs");
const colors = require('colors');
const Engineer = require("./lib/Engineer");
const Intern = require("./lib/Intern");
const Manager = require("./lib/Manager");
const Generator... | 33,029 |
https://github.com/MarbleDice/smaugdb/blob/master/src/main/java/com/bromleyoil/smaugdb/model/Room.java | Github Open Source | Open Source | Apache-2.0 | null | smaugdb | MarbleDice | Java | Code | 363 | 1,257 | package com.bromleyoil.smaugdb.model;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
import org.apache.commons.lang3.StringUtils;
import com.bromleyoil.smaugdb.model.enums.Direction;
import com.bromleyoil.smaugdb.model... | 12,771 |
https://github.com/ei09010/plumber/blob/master/vendor/github.com/batchcorp/schemas/build/go/events/outbound.pb.go | Github Open Source | Open Source | MIT | 2,020 | plumber | ei09010 | Go | Code | 462 | 1,544 | // Code generated by protoc-gen-go. DO NOT EDIT.
// source: outbound.proto
package events
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compil... | 12,883 |
https://github.com/greschd/wannier90-utils/blob/master/src/w90utils/io/_bands.py | Github Open Source | Open Source | BSD-3-Clause | null | wannier90-utils | greschd | Python | Code | 70 | 229 | import numpy as np
__all__ = ['read_kpoints', 'read_bands']
def read_kpoints(fname):
raw_data = np.loadtxt(fname, skiprows=1)
kpoints = raw_data[:, (0, 1, 2)]
kweights = raw_data[:, 3]
return kpoints
def read_bands(fname):
nkpts = None
with open(fname, 'r') as f:
for iln, line in ... | 48,122 |
https://github.com/ejabu/lugoh/blob/master/app/components/VideoContent/VideoContent.js | Github Open Source | Open Source | MIT | null | lugoh | ejabu | JavaScript | Code | 298 | 943 | // @flow
import React, {Component} from 'react';
import {connect} from 'react-redux';
import {Link} from 'react-router';
import styles from './VideoContent.css';
import $ from 'jquery';
import { toPlay, toStop } from '../../actions/playback';
@connect(state => ({ playback: state.playback}),)
export default class Con... | 23,143 |
https://github.com/P79N6A/smfyun/blob/master/application/views/weixin/wzb/admin/download.php | Github Open Source | Open Source | BSD-3-Clause | 2,018 | smfyun | P79N6A | PHP | Code | 162 | 821 | <style>
.nav-tabs-custom>.nav-tabs>li.active {
border-top-color: #00a65a;
}
.nav-tabs-custom>.nav-tabs>li.active {
border-top-color: #00a65a;
}
.reduce,.add{
font-size: 14px;
position: relative;
bottom: 10px;
}
.add{
margin-left: 20px;
margin-right: 30px;
}
.loc{
margin-top: 5p... | 13,309 |
https://github.com/Dercharles/SpringBoot2/blob/master/src/main/java/com/example/springboot2/yang/common/mail/MailBean.java | Github Open Source | Open Source | Apache-2.0 | null | SpringBoot2 | Dercharles | Java | Code | 365 | 1,258 | package com.example.springboot2.yang.common.mail;
import com.example.springboot2.yang.foundation.vo.AttachmentVo;
import java.util.Date;
import java.util.List;
import java.util.Map;
public class MailBean implements Cloneable{
//邮件标示符
private String messageID;
//邮件主题
private String subject;
//邮件内容
private Stri... | 25,974 |
https://github.com/BestJarvan/utils-tools/blob/master/dist/types/core/url.d.ts | Github Open Source | Open Source | MIT | null | utils-tools | BestJarvan | TypeScript | Code | 59 | 155 | /**
*
* @ignore
* @return {Array} 过滤出url的非空值
*
*/
export declare function cleanArray(actual: any): Array<any>;
/**
*
* @ignore
* @return {string} 对象转成url的param
*
*/
export declare function param(json: Record<string, any>): string;
/**
*
* @ignore
* @return {object}
*
*/
/**
*
* @ignore
* @return {obje... | 36,666 |
https://github.com/Chucooleg/alfred/blob/master/gen/scripts/collect_object_states.py | Github Open Source | Open Source | MIT | 2,021 | alfred | Chucooleg | Python | Code | 1,514 | 5,800 | '''From each sampled trajectories, we need to collect the environmental object states.'''
import os
import sys
sys.path.append(os.path.join(os.environ['ALFRED_ROOT']))
sys.path.append(os.path.join(os.environ['ALFRED_ROOT'], 'gen'))
sys.path.append(os.path.join(os.environ['ALFRED_ROOT'], 'models'))
import pprint
impor... | 12,072 |
https://github.com/pmqueiroz/rectar/blob/master/scripts/publish.sh | Github Open Source | Open Source | MIT | null | rectar | pmqueiroz | Shell | Code | 99 | 348 | #!/bin/bash
GREEN="\u001b[32m"
MAGENTA="\u001b[35m"
CYAN="\u001b[36m"
YELLOW="\033[33m"
RESET="\033[0m"
PACKAGE_VERSION=$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g' | tr -d '[[:space:]]')
printf "$MAGENTA\n"
printf "Publishing new version $PACKAGE_VERSION to NPM$RESET"
read... | 50,222 |
https://github.com/gilbertsoft/symfony-template-bundle/blob/master/src/Resources/views/styleguide/component/text.html.twig | Github Open Source | Open Source | MIT | 2,020 | symfony-template-bundle | gilbertsoft | Twig | Code | 46 | 154 | {% extends '@Template/styleguide/layout.html.twig' %}
{% block title %}Text{% endblock %}
{% block body %}
{% frame %}
{% example with { language: 'html' } %}
<h1>Headline 1</h1>
<h2>Headline 2</h2>
<h3>Headline 3</h3>
<h4>Headline 4</h4>
<h5>Headline 5</h5>
<h6>Headline 6</h6>
{% endexample %}
... | 26,792 |
https://github.com/zhangtongrui/limax_5.16/blob/master/java/limax/src/limax/edb/Query.java | Github Open Source | Open Source | MIT | null | limax_5.16 | zhangtongrui | Java | Code | 6 | 17 | package limax.edb;
interface Query {
}
| 20,409 |
https://github.com/NeikoGrozev/CSharpBasic/blob/master/Exam/6.Programming Basics Online Exam - 1 and 2 December 2018/1.School Supplies/School_Supplies .cs | Github Open Source | Open Source | MIT | null | CSharpBasic | NeikoGrozev | C# | Code | 64 | 202 | using System;
class Program
{
static void Main()
{
int numberOfPackagesOfChemicals = int.Parse(Console.ReadLine());
int numberOfPackagesOfMarkers = int.Parse(Console.ReadLine());
double preparation = double.Parse(Console.ReadLine());
int percentageReduction = int.Parse(Console... | 25,526 |
https://github.com/ArnCarveris/DiligentSamples/blob/master/Samples/AntTweakBar/CMakeLists.txt | Github Open Source | Open Source | Apache-2.0 | 2,017 | DiligentSamples | ArnCarveris | CMake | Code | 147 | 960 | cmake_minimum_required (VERSION 3.6)
project(AntTweakBarSample CXX)
set(SOURCE
src/MengerSponge.cpp
)
set(INCLUDE
src/MengerSpongeSample.h
)
set(SHADERS
build/assets/shaders/MainPS_DX.hlsl
build/assets/shaders/MainPS_GL.glsl
build/assets/shaders/MainVS_DX.hlsl
build/assets/shaders/MainVS_GL.glsl
)
set_proper... | 2,865 |
https://github.com/alyforalyssa/bbblocks/blob/master/app/components/AppGrid/index.js | Github Open Source | Open Source | MIT | null | bbblocks | alyforalyssa | JavaScript | Code | 211 | 694 | /**
*
* AppGrid
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import {
AppGridContainer,
BlocksGrid,
BlockItemPositionContainer,
} from './style';
import AppGridGuidelines from './AppGridGuidelines';
import AppGridController from './AppGridController';
const AppGrid = props => {
con... | 34,926 |
https://github.com/degica/barcelona/blob/master/db/migrate/20160303080907_unencrypt_aws_access_key_id.rb | Github Open Source | Open Source | MIT | 2,023 | barcelona | degica | Ruby | Code | 26 | 112 | class UnencryptAwsAccessKeyId < ActiveRecord::Migration
def change
District.find_each do |district|
encrypted = district.encrypted_aws_access_key_id
decrypted = EncryptAttribute.decrypt_attribute(
encrypted,
ENV['ENCRYPTION_KEY'],
{}
)
district.aws_access_key_id = d... | 4,414 |
https://github.com/ezracr/vote-role-assignment/blob/master/bot/src/middlewares/devMiddleware.ts | Github Open Source | Open Source | MIT | 2,022 | vote-role-assignment | ezracr | TypeScript | Code | 51 | 164 | import path from 'path'
import express, { Application } from 'express'
const publicPath = 'uploads'
const normPubPath = path.resolve(process.cwd(), publicPath)
export default function devMiddleware(app: Application): void {
if (process.env.NODE_ENV !== 'production') {
app.use((req, res, next) => {
res.set... | 16,994 |
https://github.com/zxwnstn/AnrealEngine/blob/master/Engine/Source/Runtime/Core/public/ModuleManager.h | Github Open Source | Open Source | Apache-2.0 | 2,021 | AnrealEngine | zxwnstn | C | Code | 93 | 319 | #pragma once
#include "Core.h"
#include "Type.h"
class IModule
{
public:
virtual IModule* CreateInstance() = 0;
virtual void DestroyInst();
};
class ModuleManager
{
private:
ModuleManager();
public:
ModuleManager* Get();
void ShotDown();
public:
CORE_API void Init(const std::vector<Name>& list);
IModule* ... | 41,806 |
https://github.com/elleyerium/Elysium/blob/master/Assets/Scripts/Game/Graphics/UI/Buttons/ButtonTracker.cs | Github Open Source | Open Source | MIT | 2,019 | Elysium | elleyerium | C# | Code | 109 | 627 | using System.Collections;
using System.Collections.Generic;
using Game.Difficult;
using Game.Graphics.Effects;
using Game.Graphics.UI.Background;
using Game.Graphics.UI.Menu.Animations;
using Game.Graphics.UI.Screen;
using UnityEngine;
using UnityEngine.SceneManagement;
namespace Game.Graphics.UI.Buttons
{
publi... | 6,040 |
https://github.com/robertkowalski/kowalski.gd/blob/master/assets/images/code/2011-01-01--private_und_publicA.js | Github Open Source | Open Source | MIT | null | kowalski.gd | robertkowalski | JavaScript | Code | 71 | 172 | var Spion = function() {
//@private
var name = 'Hans';
var setzeName = function(n) {
name = n;
return 'Neuer Name: '+ name;
}
var holeName = function() {
return name;
}
//Interface
return {
//@public
name: 'Peter',
neuerName: function(n) ... | 44,843 |
https://github.com/denofiend/code-lib/blob/master/node/hubot/node_modules/hubot/src/startup_error.coffee | Github Open Source | Open Source | MIT | 2,014 | code-lib | denofiend | CoffeeScript | Code | 4 | 8 | class StartupError extends Error
| 42,048 |
https://github.com/asfaltboy/steampipe-plugin-github/blob/master/github/table_github_search_label.go | Github Open Source | Open Source | Apache-2.0 | null | steampipe-plugin-github | asfaltboy | Go | Code | 438 | 1,483 | package github
import (
"context"
"regexp"
"strings"
"github.com/google/go-github/v33/github"
"github.com/turbot/steampipe-plugin-sdk/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/plugin"
"github.com/turbot/steampipe-plugin-sdk/plugin/transform"
)
//// TABLE DEFINITION
func tableGitHubSearchLable(ctx c... | 42,541 |
https://github.com/JiangMuWen/cesium-native/blob/master/CesiumGeometry/test/TestAxisTransforms.cpp | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-free-unknown | 2,021 | cesium-native | JiangMuWen | C++ | Code | 202 | 971 | #include "CesiumGeometry/AxisTransforms.h"
#include <CesiumUtility/Math.h>
#include <catch2/catch.hpp>
TEST_CASE("AxisTransforms convert the axes correctly") {
glm::dvec4 X_AXIS{1.0, 0.0, 0.0, 0.0};
glm::dvec4 Y_AXIS{0.0, 1.0, 0.0, 0.0};
glm::dvec4 Z_AXIS{0.0, 0.0, 1.0, 0.0};
SECTION("Y_UP_TO_Z_UP transfor... | 28,140 |
https://github.com/lriki/Lumino/blob/master/lumino/Graphics/src/RHI/Backend/Vulkan/VulkanHelper.cpp | Github Open Source | Open Source | MIT | 2,020 | Lumino | lriki | C++ | Code | 4,246 | 25,650 |
#include "Internal.hpp"
#include <LuminoPlatform/PlatformWindow.hpp>
#include <LuminoPlatform/PlatformSupport.hpp>
#include "VulkanHelper.hpp"
#include "VulkanDeviceContext.hpp"
#include "VulkanBuffers.hpp"
#include "VulkanTextures.hpp"
#include "VulkanSingleFrameAllocator.hpp"
#include <LuminoGraphics/RHI/GraphicsEx... | 24,147 |
https://github.com/Egor92/TestApplications/blob/master/.Net 4.0/CaptureVideoApp/RecorderParams.cs | Github Open Source | Open Source | MIT | null | TestApplications | Egor92 | C# | Code | 90 | 207 | using System.Windows;
using SharpAvi;
namespace CaptureVideoApp
{
public class RecorderParams
{
public RecorderParams(string filename, int frameRate, FourCC encoder, int quality)
{
FileName = filename;
FramesPerSecond = frameRate;
Codec = encoder;
... | 6,369 |
https://github.com/gnulinooks/sympy/blob/master/sympy/thirdparty/pyglet/pyglet/gl/glext_missing.py | Github Open Source | Open Source | BSD-3-Clause | 2,009 | sympy | gnulinooks | Python | Code | 559 | 1,836 | # ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2007 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | 15,189 |
https://github.com/TeddyFirman/Algorithm_Python/blob/master/project_euler/problem_174/sol1.py | Github Open Source | Open Source | MIT | null | Algorithm_Python | TeddyFirman | Python | Code | 236 | 506 | """
Project Euler Problem 174: https://projecteuler.net/problem=174
We shall define a square lamina to be a square outline with a square "hole" so that
the shape possesses vertical and horizontal symmetry.
Given eight tiles it is possible to form a lamina in only one way: 3x3 square with a
1x1 hole in the middle. How... | 14,786 |
https://github.com/Luisromero2811/Aplicaciones-Web/blob/master/database/seeds/Datos.php | Github Open Source | Open Source | MIT | null | Aplicaciones-Web | Luisromero2811 | PHP | Code | 53 | 191 | <?php
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class Datos extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('productos')->insert([
'Nombre_Producto' => 'Tennis Nike',
]);
DB... | 50,396 |
https://github.com/timcera/flibs/blob/master/src/ipc/ipc_mmap_data.f90 | Github Open Source | Open Source | BSD-3-Clause | 2,019 | flibs | timcera | Fortran Free Form | Code | 5,943 | 18,424 |
subroutine ipc_send_int_scalar( comm, data, error )
type(ipc_comm) :: comm
integer :: data
logical :: error
integer, dimension(1),save :: typeid = 1
integer, dimension(1) :: data_
integer, dimension(3) :: dims
integer, dimension(1) :: length
error = .true.
... | 29,803 |
https://github.com/Orienteering-Web-Project/owp_entry/blob/master/Resources/views/Form/form__entry_club.html.twig | Github Open Source | Open Source | MIT | null | owp_entry | Orienteering-Web-Project | Twig | Code | 223 | 920 | {% extends '@OwpCore/content.html.twig' %}
{% block stylesheets %}
{{ parent() }}
{% endblock %}
{% block javascripts %}
{{ parent() }}
{{ encore_entry_script_tags('entry') }}
{% endblock %}
{% block title %}{{ event.title }}{% endblock %}
{% block content_header %}
<img class="first-slide opacity-2... | 2,759 |
https://github.com/superoo7/api/blob/master/app/models/hunt_transaction.rb | Github Open Source | Open Source | MIT | 2,019 | api | superoo7 | Ruby | Code | 412 | 1,376 | require 'utils'
require 's_logger'
class HuntTransaction < ApplicationRecord
BOUNTY_TYPES = %w(sponsor voting resteem sp_claim posting commenting referral report moderator contribution guardian)
validates_presence_of :amount, :memo
validate :validate_sender_and_receiver, :validate_eth_format
validates :memo, ... | 9,453 |
https://github.com/octanolabs/g0penrpc/blob/master/go.mod | Github Open Source | Open Source | MIT | 2,020 | g0penrpc | octanolabs | Go Module | Code | 11 | 69 | module github.com/octanolabs/g0penrpc
go 1.14
require (
github.com/qri-io/jsonpointer v0.1.1
github.com/qri-io/jsonschema v0.2.0
)
| 50,463 |
https://github.com/S4n60w3n/hammer/blob/master/src/Parser/Parser.spec.ts | Github Open Source | Open Source | MIT | null | hammer | S4n60w3n | TypeScript | Code | 253 | 1,107 | import { parseInput } from 'Parser';
describe('parseInput', () => {
it('only reference', () => {
const result = parseInput('reference 70.0 45.0');
expect(result).not.toBeNull();
expect(result.refs_therm).toBe(70);
expect(result.refs_hum).toBe(45);
});
it('data, only one', () => {
const resul... | 12,241 |
https://github.com/ftmdapp/Fantom-PWA-Explorer/blob/master/src/layouts/FAddressDetail.vue | Github Open Source | Open Source | MIT | 2,020 | Fantom-PWA-Explorer | ftmdapp | Vue | Code | 1,074 | 4,243 | <template>
<div class="f-address-detail">
<template v-if="!dAccountByAddressError">
<div class="row f-data-layout equal-height no-vert-col-padding collapse-md">
<div class="col col-6-lg margin-bottom-menu">
<f-card>
<h2>{{ $t('view_addr... | 35,973 |
https://github.com/ibireme/c_numconv_benchmark/blob/master/src/itoa/itoa_sse2.cpp | Github Open Source | Open Source | MIT | 2,022 | c_numconv_benchmark | ibireme | C++ | Code | 1,543 | 5,201 | /*
Source: https://github.com/miloyip/itoa-benchmark/blob/master/src/sse2.cpp
License: https://github.com/miloyip/itoa-benchmark/blob/master/license.txt
Code is modified for benchmark.
Require x86 cpu with SSE2.
*/
// SSE2 implementation according to http://0x80.pl/articles/sse-itoa.html
// Modifications: (1) f... | 30,018 |
https://github.com/daniel-rck/QuestPDF/blob/master/QuestPDF.Examples/RowExamples.cs | Github Open Source | Open Source | MIT | null | QuestPDF | daniel-rck | C# | Code | 150 | 746 | using NUnit.Framework;
using QuestPDF.Examples.Engine;
using QuestPDF.Fluent;
using QuestPDF.Helpers;
using QuestPDF.Infrastructure;
namespace QuestPDF.Examples
{
public class RowExamples
{
[Test]
public void ItemTypes()
{
RenderingTest
.Create()
... | 29,174 |
https://github.com/ugurmeet/presto/blob/master/presto-orc/src/main/java/com/facebook/presto/orc/writer/DictionaryColumnWriter.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | presto | ugurmeet | Java | Code | 1,579 | 5,513 | /*
* 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
* distribut... | 9,818 |
https://github.com/pundiramit/external-mesa3d/blob/master/src/mesa/main/vdpau.c | Github Open Source | Open Source | MIT | null | external-mesa3d | pundiramit | C | Code | 1,137 | 4,358 | /**************************************************************************
*
* Copyright 2013 Advanced Micro Devices, Inc.
* All Rights Reserved.
*
* 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 ... | 48,564 |
https://github.com/hoa1604/TheNews/blob/master/TheNewsWebsite/TheNewsWebsite/Controllers/CategariesAdminController.cs | Github Open Source | Open Source | MIT | null | TheNews | hoa1604 | C# | Code | 360 | 1,215 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.EntityFrameworkCore;
using TheNewsWebsite.Models.TheNewsWebsite;
using Microsoft.AspNetCore.Authorization;
namespace TheNewsWebsite.... | 4,366 |
https://github.com/Infragistics/wpf-samples/blob/master/Applications/IGExtensions/IGExtensions.Framework/Tools/Randomizer.cs | Github Open Source | Open Source | MIT | 2,023 | wpf-samples | Infragistics | C# | Code | 94 | 216 | using System.Threading;
// ReSharper disable CheckNamespace
namespace System
// ReSharper restore CheckNamespace
{
/// <summary>
/// Represents an utility for creating random generators
/// </summary>
public class Randomizer
{
protected static int SeedCounter = new Random().Next();
... | 13,496 |
https://github.com/sridharsridha/Sorting/blob/master/src/include/cartesiantree_sort.hpp | Github Open Source | Open Source | MIT | null | Sorting | sridharsridha | C++ | Code | 14 | 77 | //
// Created by Sridhar N on 28/06/20.
//
#ifndef SORTING_CARTESIANTREE_SORT_HPP
#define SORTING_CARTESIANTREE_SORT_HPP
#endif//SORTING_CARTESIANTREE_SORT_HPP
| 39,986 |
https://github.com/kubesphere/kubesphere/blob/master/vendor/github.com/open-policy-agent/opa/loader/filter/filter.go | Github Open Source | Open Source | Apache-2.0 | 2,023 | kubesphere | kubesphere | Go | Code | 13 | 35 | package filter
import "io/fs"
type LoaderFilter func(abspath string, info fs.FileInfo, depth int) bool
| 28,988 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.