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/MrSlimeDiamond/Loom/blob/master/server/patches/world/entity/Mob.patch | Github Open Source | Open Source | MIT | null | Loom | MrSlimeDiamond | null | Spoken | 129 | 466 | --- a/net/minecraft//world/entity/Mob.java
+++ b/net/minecraft//world/entity/Mob.java
@@ -100,7 +100,7 @@
private final NonNullList<ItemStack> armorItems;
protected final float[] armorDropChances;
private boolean canPickUpLoot;
- private boolean persistenceRequired;
+ public boolean persistenceRequ... | 43,908 |
https://github.com/timmec/bb4-puzzles/blob/master/source/com/barrybecker4/puzzle/bridge/ui/InitialConfigurationSelector.java | Github Open Source | Open Source | MIT | 2,015 | bb4-puzzles | timmec | Java | Code | 135 | 393 | /** Copyright by Barry G. Becker, 2013. Licensed under MIT License: http://www.opensource.org/licenses/MIT */
package com.barrybecker4.puzzle.bridge.ui;
import java.awt.Choice;
import static com.barrybecker4.puzzle.bridge.model.InitialConfiguration.*;
/**
* A combo box that allows the user to select the sort of pe... | 11,424 |
https://github.com/SchwiftyPython/PizzalikeRL/blob/master/Assets/Resources/Scripts/Saving and Loading/Save Data Objects/PropSdo.cs | Github Open Source | Open Source | Apache-2.0 | null | PizzalikeRL | SchwiftyPython | C# | Code | 11 | 30 | using System;
[Serializable]
public class PropSdo
{
public string PrefabKey;
}
| 36,430 |
https://github.com/Charterhouse/hush-hush/blob/master/workspaces/web-app/components/hooks/index.js | Github Open Source | Open Source | MIT | 2,019 | hush-hush | Charterhouse | JavaScript | Code | 6 | 14 | export { useLogging } from './useLogging'
| 490 |
https://github.com/JoelHernandez343/networking-administration/blob/master/exams/first/graph.py | Github Open Source | Open Source | MIT | null | networking-administration | JoelHernandez343 | Python | Code | 49 | 209 | import networkx as nx
import matplotlib.pyplot as plt
from networkx.drawing.nx_agraph import write_dot
class Graph:
def __init__(self):
self.edges = []
def add_edge(self, a, b):
self.edges.append([a, b])
def render(self):
G = nx.Graph()
G.add_edges_from(self.edges)
... | 40,269 |
https://github.com/aford0040/ToDoSolutions/blob/master/ReactToDoInterface/todointerface/src/App.js | Github Open Source | Open Source | MIT | null | ToDoSolutions | aford0040 | JavaScript | Code | 60 | 226 | import React, { Component } from 'react';
import './App.css';
import ToDoList from './ToDo/ToDoList';
class App extends Component {
render() {
return (
<div className="container">
<table className="table table-bordered">
<thead className="table-dark">
<tr>
<th>ch... | 45,751 |
https://github.com/tsroten/tpcli/blob/master/tp/_version.py | Github Open Source | Open Source | MIT | 2,017 | tpcli | tsroten | Python | Code | 13 | 43 | """The current TP version.
See http://stackoverflow.com/questions/458550 for more information.
"""
__version__ = '0.0.0'
| 46,032 |
https://github.com/mufrad12/Travel-Tourism-Advanced-Web-Tech-Project/blob/master/resources/views/employee/TransactionShow.blade.php | Github Open Source | Open Source | MIT | null | Travel-Tourism-Advanced-Web-Tech-Project | mufrad12 | PHP | Code | 104 | 715 | <!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Transaction History</title>
<link rel="stylesheet" href="{{asset('css/empStyle.css')}}">
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="styles... | 15,436 |
https://github.com/jayhamilton/ngx-dynamic-dashboard-framework/blob/master/src/app/configuration/configuration.component.ts | Github Open Source | Open Source | MIT | 2,023 | ngx-dynamic-dashboard-framework | jayhamilton | TypeScript | Code | 29 | 119 | import { Component, ElementRef, OnInit, ViewChild } from '@angular/core';
@Component({
selector: 'app-configuration',
templateUrl: './configuration.component.html',
styleUrls: ['./configuration.component.scss']
})
export class ConfigurationComponent {
@ViewChild('board',{read: ElementRef}) boardDialog?: Eleme... | 11,328 |
https://github.com/DaRkLoL1/auth/blob/master/src/shared/view/elements/PasswordField/PasswordField.scss | Github Open Source | Open Source | MIT | null | auth | DaRkLoL1 | SCSS | Code | 132 | 538 | .password-field {
&__header {
display: flex;
justify-content: space-between;
margin-top: 16px;
margin-bottom: 10px;
}
&__title {
margin: 0;
padding-right: 11px;
padding-left: 11px;
color: #3c485e;
font-size: 16px;
line-height: 24px;
}
&__text-error {
color: #e31e2... | 48,254 |
https://github.com/amof/c-utils/blob/master/src/timestamp-buffer.c | Github Open Source | Open Source | MIT | null | c-utils | amof | C | Code | 240 | 948 | #include "timestamp-buffer.h"
void tstp_create_buffer(timestamp_buf_t *buf, const uint32_t size)
{
timestamp_buf_t temp_buffer;
temp_buffer.buffer = (timestamp_t *) malloc(size * sizeof(timestamp_t));
temp_buffer.capacity = size;
temp_buffer.buffer_status = TB_BUFFER_EMPTY;
temp_buffer.head = 0;
... | 46,829 |
https://github.com/jiaju-yang/leetcode/blob/master/src/q19-remove-nth-node-from-end-of-list.py | Github Open Source | Open Source | MIT | null | leetcode | jiaju-yang | Python | Code | 101 | 287 | #
# @lc app=leetcode id=19 lang=python3
#
# [19] Remove Nth Node From End of List
#
from typing import Optional
from .linkedlist_tools import *
# @lc code=start
class Solution:
def removeNthFromEnd(self, head: Optional[ListNode], n: int) -> Optional[ListNode]:
dummy = ListNode(0, head)
previous, ... | 10,856 |
https://github.com/binghe/open-axiom/blob/master/contrib/windows-installer/openaxiom.nsi | Github Open Source | Open Source | BSD-3-Clause, LicenseRef-scancode-warranty-disclaimer | 2,022 | open-axiom | binghe | null | Spoken | 1,437 | 5,424 | #----------------------------------------------------
# OpenAxiom NSI Install Script
#
# Written By: Dan Martens dan_martens@lycos.com
# Updated By: Bill Page bill.page1@sympatico.ca
# Updated By: Alfredo Portes alfredo.portes@gmail.com
#----------------------------------------------------
!include "MUI.nsh"
!include... | 9,352 |
https://github.com/Move-X/LoRaWAN_AT_Slave/blob/master/Drivers/LoRaWAN/Src/App/test_rf.c | Github Open Source | Open Source | BSD-3-Clause | 2,022 | LoRaWAN_AT_Slave | Move-X | C | Code | 2,116 | 7,480 | /* USER CODE BEGIN Header */
/**
******************************************************************************
* @file test_rf.c
* @author MCD Application Team
* @brief manages tx tests
******************************************************************************
* @attention
*
* <h2><center>&co... | 25,628 |
https://github.com/rc4p/FreeUI_Classic/blob/master/FreeUI/core/mover.lua | Github Open Source | Open Source | MIT | 2,019 | FreeUI_Classic | rc4p | Lua | Code | 511 | 2,342 | local F, C, L = unpack(select(2, ...))
local strsplit, ipairs, wipe = string.split, ipairs, table.wipe
local toggle = 0
local shadeFrame = CreateFrame('Frame')
local shadeTexture = shadeFrame:CreateTexture(nil, 'BACKGROUND', nil, -8)
shadeFrame:SetFrameStrata('BACKGROUND')
shadeFrame:SetWidth(GetScreenWidth() * UI... | 43,879 |
https://github.com/Tominous/cytrus-re/blob/master/src/commands/profile.js | Github Open Source | Open Source | MIT | 2,020 | cytrus-re | Tominous | JavaScript | Code | 588 | 1,889 | const Discord = require("discord.js");
const crypto = require("crypto");
exports.run = async (client, message, args, level) => {
// eslint-disable-line no-unused-vars
try {
if (args[0] == "create") {
if (!message.guild) {
if (client.logins.set(message.author.id)) {
let passwordRaw = awa... | 39,226 |
https://github.com/mvysogorets/wwpass-frontend/blob/master/src/getticket.js | Github Open Source | Open Source | MIT | null | wwpass-frontend | mvysogorets | JavaScript | Code | 234 | 627 | import { getWebSocketResult } from './qrcode/wwpass.websocket';
import { getClientNonce } from './nonce';
import { isClientKeyTicket } from './ticket';
const noCacheHeaders = { pragma: 'no-cache', 'cache-control': 'no-cache' };
const getTicket = (url) => fetch(url, { cache: 'no-store', headers: noCacheHeaders }).then... | 5,643 |
https://github.com/ecnatsiDehTog/nx-frontends/blob/master/tools/custom-webpack.config.js | Github Open Source | Open Source | ISC | 2,021 | nx-frontends | ecnatsiDehTog | JavaScript | Code | 59 | 238 | const path = require('path');
const reactWebpackConfig = require('@nrwl/react/plugins/webpack');
const loadDotEnvConfig = require('./scripts/libs/load-dotenv-config');
const webpack = require('webpack');
module.exports = (config) => {
const rootPath = `${process.env.PWD}` || path.resolve(__dirname, '..');
const d... | 28,650 |
https://github.com/Tokey2018/Client_ios/blob/master/tokeys-iOS/Extension/UIButton+TKButton.m | Github Open Source | Open Source | MIT | 2,019 | Client_ios | Tokey2018 | Objective-C | Code | 119 | 663 | //
// UIButton+TKButton.m
// tokeys-iOS
//
// Created by 杨卢银 on 2019/2/25.
// Copyright © 2019 杨卢银. All rights reserved.
//
#import "UIButton+TKButton.h"
@implementation UIButton (TKButton)
- (void)sendMessageBegin:(UIColor*)beginColor andChange:(UIColor*)changeColor{
__block int timeout=60;
//倒计时时间
... | 11,800 |
https://github.com/dthvega/omnipay-acehub/blob/master/src/Objects/Bank.php | Github Open Source | Open Source | MIT | null | omnipay-acehub | dthvega | PHP | Code | 332 | 1,109 | <?php
namespace Omnipay\Acehub\Objects;
use Omnipay\Common\CreditCard;
use Omnipay\Common\Helper;
use Symfony\Component\HttpFoundation\ParameterBag;
/**
* Class Bank
* @package Omnipay\Acehub\Objects
*/
class Bank extends CreditCard
{
/**
* @param $value
* @return CreditCard
*/
public fun... | 15,083 |
https://github.com/mahesh2492/play_assignment/blob/master/app/Models/UserSignIn.scala | Github Open Source | Open Source | Apache-2.0 | null | play_assignment | mahesh2492 | Scala | Code | 20 | 72 | package Models
import play.api.libs.json.{Json, OFormat}
case class UserSignIn (username: String,password:String)
object UserSignIn {
implicit val userJson: OFormat[UserSignIn] = Json.format[UserSignIn]
} | 48,987 |
https://github.com/wael444/void-packages/blob/master/srcpkgs/qemu/patches/cve-2022-0358.patch | Github Open Source | Open Source | BSD-2-Clause | 2,022 | void-packages | wael444 | null | Spoken | 375 | 1,195 | From 449e8171f96a6a944d1f3b7d3627ae059eae21ca Mon Sep 17 00:00:00 2001
From: Vivek Goyal <vgoyal@redhat.com>
Date: Tue, 25 Jan 2022 13:51:14 -0500
Subject: [PATCH] virtiofsd: Drop membership of all supplementary groups
(CVE-2022-0358)
At the start, drop membership of all supplementary groups. This is
not required.
I... | 32,652 |
https://github.com/wulizhong/mybatis-dao-helper/blob/master/mybatis-dao-helper/src/main/java/com/wlz/mybatis/dao/delete/DynamicTableNameDeleteExcutor.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | mybatis-dao-helper | wulizhong | Java | Code | 46 | 172 | package com.wlz.mybatis.dao.delete;
/**
* @author 作者 :吴立中
* @version 1.0
* @date 创建时间:2017年8月15日 上午10:37:58
*
*/
public class DynamicTableNameDeleteExcutor extends DeleteExcutor{
private String dynamicTableName;
public DynamicTableNameDeleteExcutor(String dynamicTableName){
this.dynamicTableName = dyna... | 36,496 |
https://github.com/KAIST-NCL/IDLE/blob/master/src/DLMDL/LayerOperation/tf/eltwise.py | Github Open Source | Open Source | BSD-2-Clause, LicenseRef-scancode-unknown-license-reference | 2,020 | IDLE | KAIST-NCL | Python | Code | 227 | 719 | from ..layer_operation import LayerOperation
import tensorflow as tf
import re
class op_tf_eltwise(LayerOperation):
_attributes = """[]""" # TODO: TO BE DEPRECATED
def compile_time_operation(self, learning_option, cluster):
pass
def run_time_operation(self, learning_option, cluster):
"""... | 17,513 |
https://github.com/KathmanduLivingLabs/tasking-manager/blob/master/frontend/src/components/taskSelection/permissionErrorModal.js | Github Open Source | Open Source | BSD-2-Clause | 2,022 | tasking-manager | KathmanduLivingLabs | JavaScript | Code | 188 | 602 | import React, { useEffect, useState } from 'react';
import { navigate } from '@reach/router';
import { FormattedMessage } from 'react-intl';
import messages from './messages';
import { getPermissionErrorMessage } from '../../utils/projectPermissions';
import { Button } from '../button';
import { CloseIcon } from '../s... | 4,868 |
https://github.com/JonathanGreene888/CS10-car-reviews/blob/master/src/tests/loginregistermodal.test.js | Github Open Source | Open Source | 2,023 | CS10-car-reviews | JonathanGreene888 | JavaScript | Code | 19 | 64 | import LoginRegisterModal from '../components/Modals/loginregistermodal';
it('renders Login/Register Modal component correctly', () => {
const loginRegisterModal = shallow(<LoginRegisterModal />);
expect(loginRegisterModal).toMatchSnapshot();
});
| 33,501 | |
https://github.com/WeebDataHoarder/IES/blob/master/src/api/fm10000/fm10000_api_an.c | Github Open Source | Open Source | BSD-3-Clause | 2,020 | IES | WeebDataHoarder | C | Code | 5,307 | 17,061 | /* vim:et:sw=4:ts=4:tw=79: */
/*****************************************************************************
* File: fm10000_api_an.c
* Creation Date: April 5, 2014
* Description: Autonegotiation for SGMII, Clause 37, and Clause 73.
*
* Copyright (c) 2011 - 2015, Intel Corporation
*
* Redistribu... | 29,823 |
https://github.com/s-expressionists/Trucler/blob/master/Code/Implementations/Native/CCL/global-environment.lisp | Github Open Source | Open Source | BSD-2-Clause | 2,023 | Trucler | s-expressionists | Common Lisp | Code | 2 | 18 | (cl:in-package #:trucler-native-ccl)
| 13,549 |
https://github.com/Gr3gg0r/fekreno/blob/master/src/pages/User/Project.vue | Github Open Source | Open Source | MIT | 2,021 | fekreno | Gr3gg0r | Vue | Code | 519 | 2,147 | <template>
<q-page v-if="project">
<div class="q-pa-md q-gutter-sm">
<q-breadcrumbs>
<q-breadcrumbs-el label="Home" to="/" />
<q-breadcrumbs-el label="Projects" to="/projects" />
<q-breadcrumbs-el label="Project" />
</q-breadcrumbs>
</div>
<div class="row">
<div c... | 18,106 |
https://github.com/beefoo/speech-music/blob/master/stereo_notes/stereo_notes.ck | Github Open Source | Open Source | MIT | null | speech-music | beefoo | null | Spoken | 279 | 830 | 0 => int padding_start;
0 => int padding_end;
2 => int instrument_buffers;
0 => int start;
me.dir() => string base_dir;
// normalize base directory
if (base_dir.charAt(base_dir.length()-1) != '/')
{
"/" +=> base_dir;
}
// data files
base_dir + "output/ck-instruments.csv" => string instruments_file;
base_dir + "ou... | 13,890 |
https://github.com/jfederico/nakamura/blob/master/bundles/activity/impl/src/test/java/org/sakaiproject/nakamura/activity/search/LiteAllActivitiesResultProcessorTest.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | nakamura | jfederico | Java | Code | 690 | 3,204 | /**
* Licensed to the Sakai Foundation (SF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The SF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use t... | 50,163 |
https://github.com/zhanghongzhitou/javabot/blob/master/src/test/java/javabot/operations/LiteralOperationTest.java | Github Open Source | Open Source | BSD-3-Clause | 2,015 | javabot | zhanghongzhitou | Java | Code | 51 | 145 | package javabot.operations;
import javabot.BaseMessagingTest;
import org.testng.annotations.Test;
import java.util.Date;
@Test(groups = "operations")
public class LiteralOperationTest extends BaseMessagingTest {
@Test
public void testMissingFactoid() {
String factoidName = "foo" + new Date().getTime();
t... | 50,086 |
https://github.com/CIVICUSDIGNA/diversitytool/blob/master/src/store/goals/actions.ts | Github Open Source | Open Source | MIT | null | diversitytool | CIVICUSDIGNA | TypeScript | Code | 18 | 50 | import { GoalActions } from './types';
export const setGoalActive = (payload: boolean) => ({
type: GoalActions.SET_GOAL_ACTIVE,
payload,
});
| 10,697 |
https://github.com/wiqram/Trading-Microservices/blob/master/userInterface/src/bundle/common/style/base.js | Github Open Source | Open Source | LicenseRef-scancode-sata | 2,021 | Trading-Microservices | wiqram | JavaScript | Code | 47 | 149 | export const colors = {
background: '#ffffff',
cardColor: '#f2f2f2',
primaryColor: '#b22222',
rowColor:'#f5f5f5',
shadowColor: '#aaaaaa',
greenColor: '#057705',
redColor: '#ef0b0b',
}
export const padding = {
sm: 5,
md: 10,
lg: 15,
xl: 20
}
export const margin = {
sm: 5,
... | 34,538 |
https://github.com/1242035/cezerin/blob/master/src/admin/client/modules/orderStatuses/edit/components/form.js | Github Open Source | Open Source | MIT | null | cezerin | 1242035 | JavaScript | Code | 162 | 632 | import React from 'react';
import { Field, reduxForm } from 'redux-form';
import { TextField } from 'redux-form-material-ui';
import messages from 'lib/text';
import style from './style.css';
import Paper from '@material-ui/core/Paper';
import Button from '@material-ui/core/Button';
const validate = values => {
con... | 45,444 |
https://github.com/trishfromtisch/regalpuffin/blob/master/client/node_modules/karma-phantomjs-launcher/node_modules/lodash/utility/matchesProperty.js | Github Open Source | Open Source | MIT | 2,015 | regalpuffin | trishfromtisch | JavaScript | Code | 68 | 142 | var baseClone = require('../internal/baseClone'),
baseMatchesProperty = require('../internal/baseMatchesProperty');
/**
* Creates a function that compares the property value of `path` on a given
* object to `value`.
*
* **Note:** This method supports comparing arrays, booleans, `Date` objects,
* numbers, `Obj... | 3,964 |
https://github.com/auser/sprinkle/blob/master/spec/sprinkle/configurable_spec.rb | Github Open Source | Open Source | MIT, Apache-2.0 | 2,008 | sprinkle | auser | Ruby | Code | 114 | 388 | require File.dirname(__FILE__) + '/../spec_helper'
describe Sprinkle::Configurable do
module MyPrefix
class Configurable
include Sprinkle::Configurable
end
end
before do
@configurable = MyPrefix::Configurable.new
@default = Proc.new { }
@defaults = { :configurable => @default }
@... | 51,068 |
https://github.com/ImyerDev/naikobot/blob/master/utils/shard.js | Github Open Source | Open Source | MIT | 2,020 | naikobot | ImyerDev | JavaScript | Code | 20 | 64 | const { ShardingManager } = require('discord.js');
const manager = new ShardingManager('./index.js', { token: process.env.TOKEN });
manager.on('shardCreate', shard => console.log(shard));
manager.spawn(); | 41,899 |
https://github.com/mithyer/TCNetwork-Swift/blob/master/TCNetwork/Protocol/RequestProtocol.swift | Github Open Source | Open Source | MIT | null | TCNetwork-Swift | mithyer | Swift | Code | 374 | 750 | //
// RequestProtocol.swift
// TCNetwork-Demo
//
// Created by ray on 2017/11/21.
// Copyright © 2017年 ray. All rights reserved.
//
import Foundation
enum RequestState {
case unfire, network, finished
}
enum CachedRespState {
case none, valid, expired
}
enum RequestMethod {
case get, post, postJSON,... | 5,520 |
https://github.com/yoloSwagSEO/EternalVoid/blob/master/app/Http/Controllers/AlliancesController.php | Github Open Source | Open Source | MIT | 2,015 | EternalVoid | yoloSwagSEO | PHP | Code | 299 | 1,407 | <?php
namespace Eternal\Http\Controllers;
use Eternal\Libraries\Main;
use Eternal\Models\Alliance;
use Eternal\Models\AllianceRank;
class AlliancesController extends MainController {
private $alliance;
private $allianceRank;
private $playerAlliance;
private $allian... | 32,278 |
https://github.com/aprilpear/holdout-sgd/blob/master/holdout_sgd/_model.py | Github Open Source | Open Source | BSD-2-Clause | 2,020 | holdout-sgd | aprilpear | Python | Code | 41 | 138 | import torch
import torch.nn as nn
import torch.nn.functional as F
class Net(nn.Module):
def __init__(self):
super(Net, self).__init__()
self.fc1 = nn.Linear(784, 100)
self.relu = nn.ReLU()
self.fc2 = nn.Linear(100, 10)
def forward(self, x):
out = self.fc1(x)
o... | 2,485 |
https://github.com/pandaman404/Portfolio/blob/master/website/src/components/ProjectsGrid.js | Github Open Source | Open Source | MIT | null | Portfolio | pandaman404 | JavaScript | Code | 131 | 514 | import React from 'react';
import styled from 'styled-components';
import PropTypes from 'prop-types';
import { ProjectCard } from '../components';
const ProjectsGrid = ({ title, subtitle, projects, fadeUp }) => {
return (
<Wrapper>
<h2>{title}</h2>
<p>
{subtitle}{' '}
{title === 'Frontend Mentor' && ... | 18,048 |
https://github.com/miraclebg/DaVinci/blob/master/wear/src/main/java/com/florent37/davinci/sample/ElementGridPagerAdapter.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | DaVinci | miraclebg | Java | Code | 183 | 703 | package com.florent37.davinci.sample;
import android.app.Fragment;
import android.app.FragmentManager;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.support.wearable.view.CardFragment;
import android.support.wearable.view.FragmentGridPagerAdapter;
import com.github.florent3... | 43,549 |
https://github.com/JACKPURCELL/JAVA_HOMEWORK/blob/master/Chapter5/Shape.java | Github Open Source | Open Source | Apache-2.0 | null | JAVA_HOMEWORK | JACKPURCELL | Java | Code | 393 | 1,044 | public abstract class Shape{
private String color;
private boolean filled;
Shape(){}
Shape(String color, boolean filled){
this.color = color;
this.filled = filled;
}
/**
* @return the color
*/
public String getColor() {
return color;
}
/**
* @p... | 22,544 |
https://github.com/IngoChou/DiligentCore/blob/master/Common/interface/RefCntAutoPtr.h | Github Open Source | Open Source | Apache-2.0 | 2,020 | DiligentCore | IngoChou | C | Code | 1,360 | 4,198 | /* Copyright 2019 Diligent Graphics 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/LICENSE-2.0
*
* THE SOFTWARE IS PROVIDED "AS... | 44,112 |
https://github.com/ExternalRepositories/header_libraries/blob/master/tests/daw_parallel_locked_value_test.cpp | Github Open Source | Open Source | BSL-1.0 | 2,020 | header_libraries | ExternalRepositories | C++ | Code | 225 | 674 | // Copyright (c) Darrell Wright
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Official repository: https://github.com/beached/header_libraries
//
#include "daw/daw_benchmark.h"
#include "daw/parallel/daw_locked_... | 19,915 |
https://github.com/rpuigm/ecommercewebtemplate/blob/master/ectemplate-servicio-productos/src/main/java/net/ostemplate/app/productos/models/entity/ImagenProducto.java | Github Open Source | Open Source | Apache-2.0 | null | ecommercewebtemplate | rpuigm | Java | Code | 115 | 445 | package net.ostemplate.app.productos.models.entity;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="imagen... | 17,020 |
https://github.com/twestWTCN/StimulatingAtTheRightTime_West2022/blob/master/methods/helper/collectR2.m | Github Open Source | Open Source | MIT | 2,022 | StimulatingAtTheRightTime_West2022 | twestWTCN | MATLAB | Code | 15 | 95 | function R2 = collectR2(A,B)
for nf = 1:size(A,2)
L(nf) = nansum((A{nf}(:)-B{nf}(:)).^2)./nansum((A{nf}(:)-nanmean(A{nf}(:))).^2);
end
R2 = 1-((sum(L(:)))/numel(L)); | 32,097 |
https://github.com/JSantosP/akka-camel-cxf-weather/blob/master/src/main/java/com/cdyne/ws/ObjectFactory.java | Github Open Source | Open Source | Apache-2.0 | 2,014 | akka-camel-cxf-weather | JSantosP | Java | Code | 521 | 1,485 |
package com.cdyne.ws;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlElementDecl;
import javax.xml.bind.annotation.XmlRegistry;
import javax.xml.namespace.QName;
/**
* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the co... | 40,467 |
https://github.com/mmp/pbrt-v4/blob/master/src/pbrt/util/splines_test.cpp | Github Open Source | Open Source | Apache-2.0 | 2,023 | pbrt-v4 | mmp | C++ | Code | 194 | 548 | // pbrt is Copyright(c) 1998-2020 Matt Pharr, Wenzel Jakob, and Greg Humphreys.
// The pbrt source code is licensed under the Apache License, Version 2.0.
// SPDX: Apache-2.0
#include <gtest/gtest.h>
#include <pbrt/util/pstd.h>
#include <pbrt/util/rng.h>
#include <pbrt/util/splines.h>
#include <pbrt/util/vecmath.h>
... | 9,016 |
https://github.com/Virtual-Machine/SpartanOS/blob/master/library/dprintf32.S | Github Open Source | Open Source | MIT | 2,021 | SpartanOS | Virtual-Machine | null | Spoken | 517 | 2,837 | .global snprintf_
.global dprintf
snp_itoa:
li a5,1
bltu a1,a2,.L8
.L3:
mul a5,a5,a2
divu a4,a1,a5
bgeu a4,a2,.L3
beqz a5,.L12
.L2:
li t3,9
.L6:
lw a6,0(a0)
andi a3,a4,0xff
addi t1,a3,55
addi ... | 52,441 |
https://github.com/chenbool/old-wms/blob/master/wms.sql | Github Open Source | Open Source | BSD-2-Clause | 2,021 | old-wms | chenbool | SQL | Code | 5,700 | 18,851 | /*
Navicat MySQL Data Transfer
Source Server : mysql
Source Server Version : 50617
Source Host : localhost:3306
Source Database : wms
Target Server Type : MYSQL
Target Server Version : 50617
File Encoding : 65001
Date: 2016-08-07 09:54:10
*/
SET FOREIGN_KEY_CHECKS=0;
-- ---------... | 40,371 |
https://github.com/tvarner/SimulationEngine/blob/master/buildTools/removeDemo.js | Github Open Source | Open Source | MIT | null | SimulationEngine | tvarner | JavaScript | Code | 131 | 648 | // This script removes demo app files
import rimraf from 'rimraf';
import fs from 'fs';
import {chalkSuccess} from './chalkConfig';
/* eslint-disable no-console */
const pathsToRemove = [
'./src/actions/!(loadingIndicatorActions.js)',
'./src/utils',
'./src/components/layouts/DashboardLayout.js',
'./src/compon... | 6,979 |
https://github.com/TheCheapestPixels/wecs/blob/master/tests/test_panda3d/test_model.py | Github Open Source | Open Source | BSD-3-Clause | 2,022 | wecs | TheCheapestPixels | Python | Code | 91 | 424 | import pytest
from wecs.core import World
from wecs.panda3d.core import ECSShowBase
from wecs.panda3d.model import Model
from wecs.panda3d.model import Geometry
from wecs.panda3d.model import SetupModels
from wecs.panda3d.model import UpdateSprites
from wecs.panda3d.model import ManageGeometry
from wecs.panda3d.model... | 46,094 |
https://github.com/bhanup212/focus-launcher-android/blob/master/MiniumApps/launcher3/src/main/java/io/focuslauncher/phone/adapters/viewholder/AgendaItemViewHolder.java | Github Open Source | Open Source | MIT | 2,022 | focus-launcher-android | bhanup212 | Java | Code | 39 | 188 | package io.focuslauncher.phone.adapters.viewholder;
import androidx.recyclerview.widget.RecyclerView;
import android.view.View;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import io.focuslauncher.R;
public class AgendaItemViewHolder extends RecyclerView.ViewHolder {
... | 33,569 |
https://github.com/clmoreno/snappass/blob/master/snappass/main.py | Github Open Source | Open Source | MIT | 2,021 | snappass | clmoreno | Python | Code | 286 | 1,121 | import os
import re
import sys
import uuid
import redis
from redis.exceptions import ConnectionError
from flask import abort, Flask, render_template, request
SNEAKY_USER_AGENTS = ('Slackbot', 'facebookexternalhit', 'Twitterbot', 'Facebot', 'WhatsApp', 'SkypeUriPreview')
SNEAKY_USER_AGENTS_RE = re.compile('|'.join(S... | 50,893 |
https://github.com/ewajs/FisicaMatlab/blob/master/vector.m | Github Open Source | Open Source | MIT | 2,018 | FisicaMatlab | ewajs | MATLAB | Code | 207 | 747 | %PLANO INCLINADO - AUTOR: EZEQUIEL WAJS
clear all
Angulo = input('Ingrese ángulo en grados :');
Angulo = Angulo*2*pi/360;
Base = 5; %el 0,0 es la esquina inferior izquierda
LadoCaja = 1;
Masa = 0.1;
Peso = Masa*10;
PesoX = Peso*sin(Angulo);
PesoY = Peso*cos(Angulo);
Normal = PesoY;
AlturaPlano = Base*tan(Angulo);
%Cen... | 18,823 |
https://github.com/leidian123456/kedis/blob/master/.gitignore | Github Open Source | Open Source | Apache-2.0 | 2,019 | kedis | leidian123456 | Ignore List | Code | 5 | 23 | node_modules
app/node_modules
/.git-credentials
dist
dist_electron | 20,916 |
https://github.com/Annihilater/SSPanel-Uim/blob/master/resources/views/tabler/admin/setting/im.tpl | Github Open Source | Open Source | MIT | 2,023 | SSPanel-Uim | Annihilater | null | Spoken | 985 | 5,932 | {include file='admin/header.tpl'}
<div class="page-wrapper">
<div class="container-xl">
<div class="page-header d-print-none text-white">
<div class="row align-items-center">
<div class="col">
<h2 class="page-title">
<span class="home-... | 13,550 |
https://github.com/sxfworks/yjson/blob/master/build.sh | Github Open Source | Open Source | MIT | null | yjson | sxfworks | Shell | Code | 8 | 34 | #!/bin/bash
go run golang.org/x/tools/cmd/goyacc -l -o parser.go parser.y | 20,458 |
https://github.com/cogsys-tuebingen/csapex_core_plugins/blob/master/csapex_core_plugins/src/tools/holdable_buffer.h | Github Open Source | Open Source | 2,021 | csapex_core_plugins | cogsys-tuebingen | C++ | Code | 52 | 194 | #ifndef HOLDABLE_BUFFER_H
#define HOLDABLE_BUFFER_H
/// PROJECT
#include <csapex/model/node.h>
#include <csapex/model/token_data.h>
/// SYSTEM
#include <deque>
namespace csapex
{
class CSAPEX_EXPORT_PLUGIN HoldableBuffer : public Node
{
public:
HoldableBuffer();
void setup(csapex::NodeModifier& node_modifie... | 49,555 | |
https://github.com/arokettu/php-uuid/blob/master/src/Rfc4122Uuid.php | Github Open Source | Open Source | MIT | 2,023 | php-uuid | arokettu | PHP | Code | 10 | 40 | <?php
declare(strict_types=1);
namespace Arokettu\Uuid;
interface Rfc4122Uuid extends Uuid
{
}
| 22,725 |
https://github.com/temolzin/LoginSchoolCRUDAndroidSQLite/blob/master/app/src/main/java/com/example/practicaloginschoolsqlite/AdapterUser.java | Github Open Source | Open Source | MIT | 2,020 | LoginSchoolCRUDAndroidSQLite | temolzin | Java | Code | 112 | 508 | package com.example.practicaloginschoolsqlite;
import android.content.Context;
import com.example.practicaloginschoolsqlite.dto.UserDTO;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import java.util.Ar... | 43,556 |
https://github.com/five5544851/ric-plt-a1/blob/master/a1/a1rmr.py | Github Open Source | Open Source | CC-BY-4.0, LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,021 | ric-plt-a1 | five5544851 | Python | Code | 1,491 | 4,534 | # ==================================================================================
# Copyright (c) 2019-2020 Nokia
# Copyright (c) 2018-2020 AT&T Intellectual Property.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License... | 49,303 |
https://github.com/Matzo/Jails/blob/master/iOS/Jails/Jails/UIViewController+JailsAspect.h | Github Open Source | Open Source | MIT | 2,020 | Jails | Matzo | C | Code | 40 | 140 | //
// UIViewController+JailsAspect.h
// Jails
//
// Created by Matsuo, Keisuke | Matzo | TRVDD on 4/19/13.
// Copyright (c) 2013 Matzo. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIViewController (JailsAspect)
@property (readonly) NSMutableArray *_jails_webAdapterList;
- (void)_jails_viewDidLoad;
... | 1,319 |
https://github.com/larryxiao/libflatarray/blob/master/src/soa_grid.hpp | Github Open Source | Open Source | BSL-1.0 | 2,015 | libflatarray | larryxiao | C++ | Code | 666 | 2,671 | /**
* Copyright 2014-2015 Andreas Schäfer
*
* Distributed under the Boost Software License, Version 1.0. (See accompanying
* file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
#ifndef FLAT_ARRAY_SOA_GRID_HPP
#define FLAT_ARRAY_SOA_GRID_HPP
#include <libflatarray/aligned_allocator.hpp>
#include <lib... | 2,053 |
https://github.com/keeponZhang/android_design_pattern_book_source/blob/master/app/src/main/java/com/android/dp/book/chapter13/CallOfDuty.java | Github Open Source | Open Source | MIT | null | android_design_pattern_book_source | keeponZhang | Java | Code | 381 | 950 | /*
* The MIT License (MIT)
*
* Copyright (c) 2014-2015 Umeng, Inc
*
* 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 u... | 43,956 |
https://github.com/916958205/HanWei/blob/master/时间日期3.py | Github Open Source | Open Source | MIT | 2,018 | HanWei | 916958205 | Python | Code | 43 | 167 | Python 3.6.3 |Anaconda custom (64-bit)| (default, Oct 15 2017, 03:27:45) [MSC v.1900 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> from datetime import datetime
>>> datetime.now().strftime('%Y-%m-%d %H:%M:%S')
'2018-04-22 16:18:35'
>>> datetime.now().isoformat()
'2018-04-... | 47,859 |
https://github.com/whaitukay/spark-google-spreadsheets/blob/master/src/test/scala/com/github/potix2/spark/google/spreadsheets/SparkSpreadsheetServiceReadSuite.scala | Github Open Source | Open Source | Apache-2.0 | null | spark-google-spreadsheets | whaitukay | Scala | Code | 224 | 730 | /*
* 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... | 21,624 |
https://github.com/sunilmeddr/syndesis/blob/master/app/rest/controllers/src/main/java/io/syndesis/controllers/integration/online/UnpublishHandler.java | Github Open Source | Open Source | Apache-2.0 | null | syndesis | sunilmeddr | Java | Code | 181 | 562 | /*
* Copyright (C) 2016 Red Hat, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 10,880 |
https://github.com/zah/InstantSprite/blob/master/web/scripts/instantsprite.js | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,012 | InstantSprite | zah | JavaScript | Code | 1,600 | 5,473 |
(function(sprite, document, window, undefined) {
var elements = sprite.elements = {
fileInput: '#fileInput',
fileInputShortcut: '#fileInputShortcut',
fileSamples: '#fileSamples',
dropbox: '#source',
spriteContainer: '#sprite',
fileContainer: '#files',
addedFiles: '#added-files',
fileWarnings: '#file-warnings... | 26,309 |
https://github.com/pdscopes/database/blob/master/src/Relationship/ToMany.php | Github Open Source | Open Source | MIT | 2,020 | database | pdscopes | PHP | Code | 100 | 371 | <?php
namespace MadeSimple\Database\Relationship;
use MadeSimple\Arrays\Collection;
use MadeSimple\Database\EntityCollection;
use MadeSimple\Database\Relationship;
class ToMany extends Relationship
{
/**
* @return \MadeSimple\Database\EntityCollection|\MadeSimple\Arrays\Collection
*/
public functio... | 23,380 |
https://github.com/twyatt/mcumgr-android/blob/master/sample/src/main/java/io/runtime/mcumgr/sample/observable/ObservableMcuMgrBleTransport.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | mcumgr-android | twyatt | Java | Code | 233 | 951 | /*
* Copyright (c) 2018, Nordic Semiconductor
*
* SPDX-License-Identifier: Apache-2.0
*/
package io.runtime.mcumgr.sample.observable;
import android.bluetooth.BluetoothDevice;
import android.content.Context;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.lifecycle.LiveDa... | 50,131 |
https://github.com/taiki-okano/Competitive-Programming/blob/master/AOJ/AOJ0648.cpp | Github Open Source | Open Source | MIT | 2,016 | Competitive-Programming | taiki-okano | C++ | Code | 103 | 295 | #include <iostream>
#include <algorithm>
#include <limits>
using ll = long long;
constexpr int MAX_N = 500000;
int N;
std::pair<ll, ll> arts[MAX_N];
int main(){
std::cin >> N;
for(int i = 0; i < N; ++i){
std::cin >> arts[i].first >> arts[i].second;
}
std::sort(arts, arts + N);
for(int i = 0; i < N; ++i... | 18,060 |
https://github.com/daftaupe/DeltaPorts/blob/master/ports/lang/rust/diffs/distinfo.diff | Github Open Source | Open Source | BSD-2-Clause-FreeBSD | null | DeltaPorts | daftaupe | null | Spoken | 61 | 769 | --- distinfo.orig 2020-06-22 20:41:40 UTC
+++ distinfo
@@ -21,6 +21,12 @@ SHA256 (rust/2020-05-07/cargo-0.44.0-arm
SIZE (rust/2020-05-07/cargo-0.44.0-armv6-unknown-freebsd.tar.xz) = 3980908
SHA256 (rust/2020-05-07/rustc-1.43.1-armv7-unknown-freebsd.tar.xz) = 6d56e3c9517a3798b30e90735eaecea41e2a1677549f9aee31550ab095b... | 21,048 |
https://github.com/vRobM/core/blob/master/packages/validation/__tests__/rules/models/transactions/delegate-registration.test.js | Github Open Source | Open Source | MIT | null | core | vRobM | JavaScript | Code | 212 | 783 | 'use strict'
const rule = require('../../../../lib/rules/models/transactions/delegate-registration')
const { constants, transactionBuilder } = require('@arkecosystem/crypto')
let transaction
beforeEach(() => {
transaction = transactionBuilder.delegateRegistration()
})
describe('Delegate Registration Transaction Ru... | 43,481 |
https://github.com/SAEON/seacrifog/blob/master/client/src/scss/_sf-variables.scss | Github Open Source | Open Source | MIT | null | seacrifog | SAEON | SCSS | Code | 5 | 22 | $sf-shadow-color: rgba(90, 97, 105, 0.12);
| 44,836 |
https://github.com/EuPathDB-Infra/WSF/blob/master/Service/src/main/java/org/gusdb/wsf/service/StreamingPluginResponse.java | Github Open Source | Open Source | Apache-2.0 | null | WSF | EuPathDB-Infra | Java | Code | 138 | 468 | package org.gusdb.wsf.service;
import java.io.IOException;
import java.io.ObjectOutputStream;
import org.gusdb.wsf.common.ResponseAttachment;
import org.gusdb.wsf.common.ResponseMessage;
import org.gusdb.wsf.common.ResponseRow;
import org.gusdb.wsf.plugin.PluginModelException;
import org.gusdb.wsf.plugin.PluginRespon... | 52,165 |
https://github.com/CetaceanNation/hbcl/blob/master/heybrochecklog/shared.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | hbcl | CetaceanNation | Python | Code | 127 | 381 | """This module contains shared functions between the various top-level modules."""
import codecs
import json
import os
import cchardet as chardet
def get_log_contents(log_file):
"""Open a log file and return its contents."""
encoding = get_log_encoding(log_file)
with log_file.open(encoding=encoding) as ... | 51,180 |
https://github.com/luks-rossato/curso-Python3/blob/master/Exercicios propostos/Ex 029 - Multa.py | Github Open Source | Open Source | MIT | null | curso-Python3 | luks-rossato | Python | Code | 16 | 48 | vel = float(input('Insira a velocidade: '))
if vel>80 :
print('Você foi multado! Sua multa custará {}'.format((vel-80*7)) | 47,519 |
https://github.com/hackermd/libdicomicc/blob/master/wasm/src/jslib.cpp | Github Open Source | Open Source | MIT | null | libdicomicc | hackermd | C++ | Code | 49 | 304 | #include "ColorManager.hpp"
#include <emscripten.h>
#include <emscripten/bind.h>
using namespace emscripten;
EMSCRIPTEN_BINDINGS(FrameInfo) {
value_object<FrameInfo>("FrameInfo")
.field("columns", &FrameInfo::columns)
.field("rows", &FrameInfo::rows)
.field("bitsPerSample", &FrameInfo::bitsPerSample)
... | 40,330 |
https://github.com/kerubistan/kerub/blob/master/src/test/kotlin/com/github/kerubistan/kerub/planner/steps/vm/cpuaffinity/ClearCpuAffinityTest.kt | Github Open Source | Open Source | Apache-2.0 | 2,023 | kerub | kerubistan | Kotlin | Code | 94 | 496 | package com.github.kerubistan.kerub.planner.steps.vm.cpuaffinity
import com.github.kerubistan.kerub.model.VirtualMachineStatus
import com.github.kerubistan.kerub.model.dynamic.HostDynamic
import com.github.kerubistan.kerub.model.dynamic.HostStatus
import com.github.kerubistan.kerub.model.dynamic.VirtualMachineDynamic
... | 6,553 |
https://github.com/nomacs/heif/blob/master/srcs/api-java/java/com/nokia/heif/ImageSequence.java | Github Open Source | Open Source | BSD-3-Clause | null | heif | nomacs | Java | Code | 137 | 299 | package com.nokia.heif;
/**
* ImageSequence, a special case of a VideoTrack
*/
public final class ImageSequence extends VideoTrack
{
/**
* Creates a new ImageSequence to the given HEIF instance
*
* @param heif The parent HEIF instance for the new object
* @param timescale The timescale of the... | 16,573 |
https://github.com/ripples/lv-client/blob/master/client/src/app/pages/Lecture/lecture.scss | Github Open Source | Open Source | Apache-2.0 | 2,017 | lv-client | ripples | SCSS | Code | 45 | 165 | @import "vars";
@import "mixins";
.lecture {
background: $almost-black-color;
min-height: calc(100vh - #{$header-height});
color: #fff;
@include globalPadding();
padding-top: 0;
h1 {
color: white;
}
a {
text-decoration: underline;
font-size: 14px;
color: white;
@include transition... | 41,473 |
https://github.com/shane-tomlinson/AFrame-JS/blob/master/tests/test_field.js | Github Open Source | Open Source | CC-BY-3.0 | 2,021 | AFrame-JS | shane-tomlinson | JavaScript | Code | 877 | 2,988 | testsToRun.push( {
name: "TestCase AFrame.Field",
setUp: function() {
this.field = AFrame.Field.create( {
target: 'input[data-field][name=name]'
} );
},
tearDown: function() {
this.field.clear();
this.field.teardown();
this.field = null;
},
testInput: function() {
var t... | 41,351 |
https://github.com/Winzarten/SecondMonitor/blob/master/Applications/Timing/SessionTiming/Drivers/ViewModel/PitStopInfo.cs | Github Open Source | Open Source | MIT | 2,021 | SecondMonitor | Winzarten | C# | Code | 267 | 858 | namespace SecondMonitor.Timing.SessionTiming.Drivers.ViewModel
{
using System;
using DataModel.Snapshot;
public class PitStopInfo
{
public enum PitPhase { Entry, InPits, Exit, Completed }
public PitStopInfo(SimulatorDataSet set, DriverTiming driver, LapInfo entryLap)
{
... | 17,081 |
https://github.com/diannamcallister/MethylExpress/blob/master/man/runMethylExpress.Rd | Github Open Source | Open Source | MIT | 2,020 | MethylExpress | diannamcallister | R | Code | 63 | 184 | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/runMethylExpress.R
\name{runMethylExpress}
\alias{runMethylExpress}
\title{Launch Shiny App for MethylExpress}
\usage{
runMethylExpress()
}
\value{
No return value but open up a Shiny page.
}
\description{
A function that launches the Shiny a... | 43,614 |
https://github.com/andresfguzman/bestApps/blob/master/BestApps/Environment.swift | Github Open Source | Open Source | MIT | null | bestApps | andresfguzman | Swift | Code | 33 | 93 | //
// Environment.swift
// BestApps
//
// Created by Andrés Guzmán on 9/05/20.
// Copyright © 2020 andres. All rights reserved.
//
import Foundation
enum Environment {
static let apiURL = "https://itunes.apple.com/us/rss/topfreeapplications/limit=40/json"
}
| 22,785 |
https://github.com/pierre-guillou/ttk/blob/master/core/base/integralLines/IntegralLines.h | Github Open Source | Open Source | BSD-3-Clause | 2,022 | ttk | pierre-guillou | C++ | Code | 677 | 2,194 | /// \ingroup base
/// \class ttk::IntegralLines
/// \author Guillaume Favelier <guillaume.favelier@lip6.fr>
/// \date March 2016
///
/// \brief TTK processing package for the computation of edge-based integral
/// lines of the gradient of an input scalar field defined on a PL manifold.
///
/// Given a list of sources, ... | 29,870 |
https://github.com/V4Fire/Core/blob/master/src/core/prelude/number/index.ts | Github Open Source | Open Source | MIT | 2,023 | Core | V4Fire | TypeScript | Code | 33 | 119 | /*!
* V4Fire Core
* https://github.com/V4Fire/Core
*
* Released under the MIT license
* https://github.com/V4Fire/Core/blob/master/LICENSE
*/
export * from 'core/prelude/number/converters';
export * from 'core/prelude/number/metrics';
//#if runtime has prelude/number/rounding
export * from 'core/prelude/number/... | 32,990 |
https://github.com/jacobrec/coldfire-emulator/blob/master/assembler/parser.py | Github Open Source | Open Source | Unlicense | 2,020 | coldfire-emulator | jacobrec | Python | Code | 598 | 2,132 | from tokens import *
from memory import *
import tokens
class Parser:
############## init code ###############
def __init__(self, toks):
self.toks = toks
self.current = 0
def parse(self):
stmts = []
self._match(Terminator)
while not self._isAtEnd():
try... | 29,037 |
https://github.com/cameronmbacon/seattle-javascript-401d25/blob/master/back-end/03-asynchronous-callbacks/03-async-callbacks/src/lib/callbacks/callback-demo.js | Github Open Source | Open Source | MIT | 2,018 | seattle-javascript-401d25 | cameronmbacon | JavaScript | Code | 276 | 504 | 'use strict';
// Callbacks OFFLOAD functionality.
// Think of it as though you're telling a method to go do it's work and when it's done, to handle it for you
// A good analogy would be to picture hiring a moving company to move you
// You give them all of your stuff AND put workers in the back of the truck with ins... | 21,611 |
https://github.com/BaggaShivanshu2/hybris-bookstore-tutorial/blob/master/hybris/bin/ext-commerce/commerceservices/src/de/hybris/platform/commerceservices/setup/SetupSyncJobService.java | Github Open Source | Open Source | MIT | 2,020 | hybris-bookstore-tutorial | BaggaShivanshu2 | Java | Code | 250 | 484 | /*
* [y] hybris Platform
*
* Copyright (c) 2000-2016 hybris AG
* All rights reserved.
*
* This software is the confidential and proprietary information of hybris
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the terms of the
* li... | 48,593 |
https://github.com/bowlofstew/binnavi/blob/master/src/main/java/com/google/security/zynamics/binnavi/Gui/Debug/ToolbarPanel/Implementations/CTraceFunctions.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | binnavi | bowlofstew | Java | Code | 869 | 2,279 | /*
Copyright 2015 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 ... | 37,721 |
https://github.com/gabrielsroka/PowerShell/blob/master/src/Microsoft.PowerShell.PSReadLine/Completion.vi.cs | Github Open Source | Open Source | Apache-2.0, MIT-0 | 2,022 | PowerShell | gabrielsroka | C# | Code | 111 | 329 | /********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Dia... | 37,672 |
https://github.com/Opiumtm/DvachBrowser3/blob/master/DvachBrowser3/ViewModels/Post/IPostCollectionViewModel.cs | Github Open Source | Open Source | MIT | 2,016 | DvachBrowser3 | Opiumtm | C# | Code | 120 | 360 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using DvachBrowser3.Links;
namespace DvachBrowser3.ViewModels
{
/// <summary>
/// Коллекция постов.
/// </summary>
public interface IPostCollectionViewModel : INotifyPropertyChanged
{
/// <summary>
/// Пос... | 5,390 |
https://github.com/MannyB8/shopify-monitor/blob/master/index.js | Github Open Source | Open Source | MIT | 2,022 | shopify-monitor | MannyB8 | JavaScript | Code | 89 | 295 |
global.config = require('./config')
const mongoose = require('mongoose');
const Task = require('./src/classes/Task.js');
const Seller = require('./src/models/Seller');
const Discord = require('./src/classes/Discord')
mongoose.connect(global.config.mongodb_uri, { useNewUrlParser: true, useUnifiedTopology: true });
... | 15,425 |
https://github.com/heineike02/UTR_annotation/blob/master/recount_aligned_reads/consolidate_count_data.py | Github Open Source | Open Source | MIT | 2,023 | UTR_annotation | heineike02 | Python | Code | 313 | 915 | import os
import sys
# python consolidate_count_data.py /home/heineike/rna_seq_data/20181024_KL_SC_PKA_Msn24_Rph1Gis1/dual_index/BMH_HES_02/ SC nag
## data_dir to start with: "/home/heineike/rna_seq_data/20181024_KL_SC_PKA_Msn24_Rph1Gis1/dual_index/BMH_HES_02/"
## spec start with KL
## UTR param start with 400
#Move... | 3,291 |
https://github.com/zhohon/noengkenMall/blob/master/src/com/jfinalshop/validator/admin/ActivityValidator.java | Github Open Source | Open Source | MIT | 2,016 | noengkenMall | zhohon | Java | Code | 31 | 138 | package com.jfinalshop.validator.admin;
import com.jfinal.core.Controller;
import com.jfinal.validate.Validator;
public class ActivityValidator extends Validator{
@Override
protected void validate(Controller c) {
c.getFile();
validateRequiredString("activity.name", "errorMessages", "活动名称不允许为空!");
}
@Overrid... | 52,808 |
https://github.com/codeniko/nfeld.com/blob/master/src/views/IndexView/components/Popchat/Popchat.js | Github Open Source | Open Source | MIT | 2,023 | nfeld.com | codeniko | JavaScript | Code | 216 | 600 | /* eslint-disable react/no-unescaped-entities */
import React from 'react'
import { useTheme } from '@mui/material/styles'
import Box from '@mui/material/Box'
import Typography from '@mui/material/Typography'
import ThemedLink from 'components/ThemedLink'
import GithubIcon from 'components/GithubIcon'
const Popchat = ... | 24,895 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.