hexsha stringlengths 40 40 | size int64 5 1.05M | ext stringclasses 98
values | lang stringclasses 21
values | max_stars_repo_path stringlengths 3 945 | max_stars_repo_name stringlengths 4 118 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 368k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 945 | max_issues_repo_name stringlengths 4 118 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 134k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 945 | max_forks_repo_name stringlengths 4 135 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 5 1.05M | avg_line_length float64 1 1.03M | max_line_length int64 2 1.03M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6460c4e2606f9e2bf2c3d0d918cfcfd44624790e | 7,862 | rs | Rust | src/contract.rs | joemonem/Automatic-Savings | 9f0fc1a28280efea0484f3c6df252f49144285ee | [
"Apache-2.0"
] | null | null | null | src/contract.rs | joemonem/Automatic-Savings | 9f0fc1a28280efea0484f3c6df252f49144285ee | [
"Apache-2.0"
] | null | null | null | src/contract.rs | joemonem/Automatic-Savings | 9f0fc1a28280efea0484f3c6df252f49144285ee | [
"Apache-2.0"
] | null | null | null | use std::env;
#[cfg(not(feature = "library"))]
use cosmwasm_std::entry_point;
use cosmwasm_std::{
coins, to_binary, BankMsg, Binary, Coin, Deps, DepsMut, Env, MessageInfo, Response, StdResult,
Uint128,
};
use cw2::set_contract_version;
use crate::error::ContractError;
use crate::msg::{BalanceResponse, Execut... | 30.831373 | 98 | 0.592852 |
f009d6a3b56d42edfcb8bf537787593ecb613a4c | 27,482 | py | Python | src/auspex/qubit/qubit_exp.py | minhhaiphys/Auspex | 3b9480120f0cdaf8a1e890a59e0e45e0fab5f1dd | [
"Apache-2.0"
] | null | null | null | src/auspex/qubit/qubit_exp.py | minhhaiphys/Auspex | 3b9480120f0cdaf8a1e890a59e0e45e0fab5f1dd | [
"Apache-2.0"
] | null | null | null | src/auspex/qubit/qubit_exp.py | minhhaiphys/Auspex | 3b9480120f0cdaf8a1e890a59e0e45e0fab5f1dd | [
"Apache-2.0"
] | null | null | null | from auspex.log import logger
from auspex.experiment import Experiment, FloatParameter
from auspex.stream import DataStream, DataAxis, SweepAxis, DataStreamDescriptor, InputConnector, OutputConnector
import auspex.instruments
import auspex.filters
import bbndb
import numpy as np
import sys
import os
if sys.platform ==... | 47.138937 | 282 | 0.640965 |
998f519c624c831b65a6c9cf78c96e2b02789baa | 358 | swift | Swift | Moon/Classes/Explore/View/MNPicCell.swift | qingtianbuyu/Mono | be2ac0130185b4c739532ee1038c5a5b505a50cb | [
"MIT"
] | null | null | null | Moon/Classes/Explore/View/MNPicCell.swift | qingtianbuyu/Mono | be2ac0130185b4c739532ee1038c5a5b505a50cb | [
"MIT"
] | null | null | null | Moon/Classes/Explore/View/MNPicCell.swift | qingtianbuyu/Mono | be2ac0130185b4c739532ee1038c5a5b505a50cb | [
"MIT"
] | null | null | null | //
// MNPicCell.swift
// Moon
//
// Created by YKing on 16/5/29.
// Copyright © 2016年 YKing. All rights reserved.
//
import UIKit
class MNPicCell: UICollectionViewCell {
@IBOutlet weak var imageView: UIImageView!
var pic: MNThumb? {
didSet {
imageView.m_setImageWithUrl(pic?.raw, placeHolderNam... | 16.272727 | 82 | 0.659218 |
85709306e36a3164506f46bde9238c0cc13c1a5c | 3,859 | js | JavaScript | src/components/Contact.js | MarcinRapacz/project1 | 009326f0b645d295b87e5207d9313c59395660b8 | [
"MIT"
] | null | null | null | src/components/Contact.js | MarcinRapacz/project1 | 009326f0b645d295b87e5207d9313c59395660b8 | [
"MIT"
] | 4 | 2021-05-10T09:26:07.000Z | 2022-02-18T08:14:11.000Z | src/components/Contact.js | MarcinRapacz/project1 | 009326f0b645d295b87e5207d9313c59395660b8 | [
"MIT"
] | null | null | null | import React, { useState } from "react"
import { FaAtom } from "react-icons/fa"
import axios from "axios"
import validator from "validator"
const Contact = () => {
const defaultForm = {
name: {
value: "",
error: false,
},
email: {
value: "",
error: false,
},
message: {
... | 25.726667 | 79 | 0.524747 |
f136540362d9db54c2794f8c1e55051d5304d8a8 | 647 | rb | Ruby | app/controllers/likes_controller.rb | Murodjon000/friend_app | 5a3028f2cde2b4156a794072a94104061c13638e | [
"MIT"
] | 4 | 2021-02-22T07:02:54.000Z | 2021-04-19T16:29:34.000Z | app/controllers/likes_controller.rb | Murodjon000/friend_app | 5a3028f2cde2b4156a794072a94104061c13638e | [
"MIT"
] | null | null | null | app/controllers/likes_controller.rb | Murodjon000/friend_app | 5a3028f2cde2b4156a794072a94104061c13638e | [
"MIT"
] | null | null | null | class LikesController < ApplicationController
def create
@like = current_user.likes.new(post_id: params[:post_id])
if @like.save
flash[:success] = 'You liked the post'
redirect_to posts_path
else
flash[:alert] = 'You cannot like this post'
redirect_to posts_path
end
end
... | 23.962963 | 87 | 0.650696 |
0eb9d5c7436f5a67ee5b0c847a9ed2b7e2f98a6e | 775 | sql | SQL | createDataBase.sql | fatemehMirabdollahi/to-do_frontEnd | a209229407d1b1e724559f85c2dd2be5faf3faa1 | [
"MIT"
] | 3 | 2021-04-22T19:09:44.000Z | 2021-08-07T19:14:15.000Z | createDataBase.sql | fatemehMirabdollahi/to-do_frontEnd | a209229407d1b1e724559f85c2dd2be5faf3faa1 | [
"MIT"
] | 1 | 2021-02-28T19:17:41.000Z | 2021-02-28T19:18:42.000Z | createDataBase.sql | fatemehMirabdollahi/to-do_frontEnd | a209229407d1b1e724559f85c2dd2be5faf3faa1 | [
"MIT"
] | null | null | null | CREATE TABLE list (
list_title VARCHAR(50) NOT NULL,
undone INTEGER DEFAULT 0
PRIMARY KEY(list_title)
);
CREATE TABLE task (
task_id INT GENERATED ALWAYS AS IDENTITY,
task_title VARCHAR(50) NOT NULL,
important BOOLEAN DEFAULT FALSE,
myday BOOLEAN DEFAULT FALSE,
done BOOLEAN DEFAULT FALSE,
step_num ... | 25 | 43 | 0.734194 |
b275ddc138166fbae42d72b6cf896cce62e03558 | 4,703 | kt | Kotlin | src/main/kotlin/dev/cubxity/mc/protocol/packets/game/server/world/ServerUpdateLightPacket.kt | Cubxity/MCProtocol | 1d2f08e856631c9668fb8bd9bc9ce32ade72815f | [
"MIT"
] | 5 | 2019-07-21T11:24:36.000Z | 2019-08-07T11:37:40.000Z | src/main/kotlin/dev/cubxity/mc/protocol/packets/game/server/world/ServerUpdateLightPacket.kt | MCProtocol/MCProtocol | 1d2f08e856631c9668fb8bd9bc9ce32ade72815f | [
"MIT"
] | 1 | 2019-08-04T11:33:12.000Z | 2019-08-04T11:33:12.000Z | src/main/kotlin/dev/cubxity/mc/protocol/packets/game/server/world/ServerUpdateLightPacket.kt | MCProtocol/MCProtocol | 1d2f08e856631c9668fb8bd9bc9ce32ade72815f | [
"MIT"
] | 4 | 2019-07-22T04:49:00.000Z | 2019-08-04T08:59:19.000Z | /*
* Copyright (c) 2018 - 2019 Cubxity, superblaubeere27 and KodingKing1
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, ... | 39.521008 | 463 | 0.594302 |
337b8b46a780008d3d9ba9094fb706fca98b4c74 | 7,653 | sql | SQL | moumou.sql | cndyd/MOUMOU | 7f4394444adf7151b5b10b67c6b4f19d6bcb3747 | [
"MIT"
] | null | null | null | moumou.sql | cndyd/MOUMOU | 7f4394444adf7151b5b10b67c6b4f19d6bcb3747 | [
"MIT"
] | null | null | null | moumou.sql | cndyd/MOUMOU | 7f4394444adf7151b5b10b67c6b4f19d6bcb3747 | [
"MIT"
] | null | null | null |
#联系我们表
CREATE TABLE jd_lxwm(
jdid INT PRIMARY KEY AUTO_INCREMENT,
jdname VARCHAR(16),#联系我们名字
jdphone VARCHAR(11),#联系我们手机
jdemail VARCHAR(32),#联系我们邮箱
jdcomment VARCHAR(120)#联系我们留言评论
);
#联系我们表插入
INSERT INTO jd_lxwm VALUES
(NULL,"aaa","13511111111","aaa@qq.com","你家真的大啊"),
(NULL,"bbb","13522222222","bbb@qq.com","服务真的很好啊")... | 49.057692 | 461 | 0.746766 |
9d71e82a7a77d66c0d100e1808ccd85627dfe786 | 2,960 | sql | SQL | edu.gemini.lch.persistence/database/001_1.3.0.sql | cquiroz/lch | 91f557d794bc96ffe73e2062ccc40b0edf953ebe | [
"BSD-3-Clause"
] | null | null | null | edu.gemini.lch.persistence/database/001_1.3.0.sql | cquiroz/lch | 91f557d794bc96ffe73e2062ccc40b0edf953ebe | [
"BSD-3-Clause"
] | 21 | 2019-10-24T16:13:52.000Z | 2022-03-04T19:45:25.000Z | edu.gemini.lch.persistence/database/001_1.3.0.sql | cquiroz/lch | 91f557d794bc96ffe73e2062ccc40b0edf953ebe | [
"BSD-3-Clause"
] | 2 | 2019-10-23T15:18:08.000Z | 2019-11-20T16:20:07.000Z | ----------------------------------------------------------------------------------------------------------------------
-- Database updates needed to bring 1.2.0 up to 1.3.0
----------------------------------------------------------------------------------------------------------------------
--
-- LCH-295: Add password... | 58.039216 | 302 | 0.486149 |
280efac39846b803b9ee69f6d22bf6a79e31e3b4 | 1,311 | rb | Ruby | app/controllers/admin/admin_users_controller.rb | paa-yaw/referral_system | 7d101fd3eef4020e3b2107f7cb75a174350332f1 | [
"Unlicense"
] | 1 | 2019-06-17T15:10:14.000Z | 2019-06-17T15:10:14.000Z | app/controllers/admin/admin_users_controller.rb | paa-yaw/referral_system | 7d101fd3eef4020e3b2107f7cb75a174350332f1 | [
"Unlicense"
] | 5 | 2021-05-18T22:43:47.000Z | 2022-03-30T22:50:59.000Z | app/controllers/admin/admin_users_controller.rb | paa-yaw/referral_system | 7d101fd3eef4020e3b2107f7cb75a174350332f1 | [
"Unlicense"
] | null | null | null | class Admin::AdminUsersController < Admin::ApplicationController
before_action :set_user, only: [:show, :edit, :update, :destroy, :update_button]
layout "admin"
def index
@admins = User.all.includes(:companies).where(admin: true, admin_status: 1)
end
def show
end
def new
@admin = User.new
en... | 19 | 83 | 0.650648 |
7bc92ddce24a35737a2a72cfbb719fc07aaafedb | 220 | rb | Ruby | testing/rspec/spec/unit/formatters/formatter_unit_specs.rb | PavloKura/cuke_linter | 74a78d94a1f68bbb3f96fc5951c61e9c34a3e1ce | [
"MIT"
] | 26 | 2018-12-10T14:04:18.000Z | 2022-02-26T08:34:16.000Z | testing/rspec/spec/unit/formatters/formatter_unit_specs.rb | PavloKura/cuke_linter | 74a78d94a1f68bbb3f96fc5951c61e9c34a3e1ce | [
"MIT"
] | 20 | 2019-05-04T14:53:57.000Z | 2022-02-28T07:03:32.000Z | testing/rspec/spec/unit/formatters/formatter_unit_specs.rb | PavloKura/cuke_linter | 74a78d94a1f68bbb3f96fc5951c61e9c34a3e1ce | [
"MIT"
] | 10 | 2019-05-15T09:57:30.000Z | 2022-02-26T08:34:18.000Z | shared_examples_for 'a formatter at the unit level' do
it 'can format' do
expect(subject).to respond_to(:format)
end
it 'formats linting data' do
expect(subject.method(:format).arity).to eq(1)
end
end
| 18.333333 | 54 | 0.704545 |
c36846093a66de8d7572b435b880c2c25a66807c | 927 | go | Go | dialog/color_button_test.go | ravenlab/fyne | 67a27b3263a42081b155cab4475de808fcc6ed05 | [
"BSD-3-Clause"
] | null | null | null | dialog/color_button_test.go | ravenlab/fyne | 67a27b3263a42081b155cab4475de808fcc6ed05 | [
"BSD-3-Clause"
] | null | null | null | dialog/color_button_test.go | ravenlab/fyne | 67a27b3263a42081b155cab4475de808fcc6ed05 | [
"BSD-3-Clause"
] | null | null | null | package dialog
import (
"image/color"
"testing"
"github.com/ravenlab/fyne"
"github.com/ravenlab/fyne/layout"
"github.com/ravenlab/fyne/test"
"github.com/ravenlab/fyne/theme"
)
func Test_colorButton_Layout(t *testing.T) {
test.NewApp()
defer test.NewApp()
test.ApplyTheme(t, theme.LightTheme())
for name, tt... | 20.152174 | 92 | 0.675297 |
f0425b1ddda33471bcd698350aad4a8f84b9b335 | 1,837 | py | Python | mnt/us/kapps/apps/gallery/gallery.py | PhilippMundhenk/kapps | eed07669d8554393bfbd40acd8d255475e90b88e | [
"MIT"
] | 1 | 2021-11-19T08:40:44.000Z | 2021-11-19T08:40:44.000Z | mnt/us/kapps/apps/gallery/gallery.py | PhilippMundhenk/kapps | eed07669d8554393bfbd40acd8d255475e90b88e | [
"MIT"
] | null | null | null | mnt/us/kapps/apps/gallery/gallery.py | PhilippMundhenk/kapps | eed07669d8554393bfbd40acd8d255475e90b88e | [
"MIT"
] | null | null | null | from core.kapp import Kapp
from core.httpResponse import HTTPResponse
from core.Kcommand import Kcommand
import uuid
import os
class GetImage(Kcommand):
getImageHash = str(uuid.uuid4())
def __init__(self):
super(GetImage, self).__init__(
"GetImage", self.getImageHash)
class ViewImage(Kc... | 30.114754 | 138 | 0.619488 |
f7086d6f5b921925feb05d37f00cfeb443c43dcf | 1,451 | asm | Assembly | programs/oeis/073/A073929.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/073/A073929.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/073/A073929.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A073929: a(1) = 1, a(n) = smallest number not included earlier such that the n-th partial sum (n>1) is divisible by n+1.
; 1,2,5,7,3,10,4,13,15,6,18,20,8,23,9,26,28,11,31,12,34,36,14,39,41,16,44,17,47,49,19,52,54,21,57,22,60,62,24,65,25,68,70,27,73,75,29,78,30,81,83,32,86,33,89,91,35,94,96,37,99,38,102,104,40,107,109... | 53.740741 | 893 | 0.678842 |
758f7d7c5dba311254b93097faadf19218085496 | 6,123 | h | C | Sources/API/Core/IOData/directory.h | ValtoFrameworks/ClanLib | 2d6b59386ce275742653b354a1daab42cab7cb3e | [
"Linux-OpenIB"
] | null | null | null | Sources/API/Core/IOData/directory.h | ValtoFrameworks/ClanLib | 2d6b59386ce275742653b354a1daab42cab7cb3e | [
"Linux-OpenIB"
] | null | null | null | Sources/API/Core/IOData/directory.h | ValtoFrameworks/ClanLib | 2d6b59386ce275742653b354a1daab42cab7cb3e | [
"Linux-OpenIB"
] | null | null | null | /*
** ClanLib SDK
** Copyright (c) 1997-2016 The ClanLib Team
**
** This software is provided 'as-is', without any express or implied
** warranty. In no event will the authors be held liable for any damages
** arising from the use of this software.
**
** Permission is granted to anyone to use this software for a... | 47.465116 | 173 | 0.722358 |
5ffcb668377618f3521c77207429d6e39615a20e | 12,753 | c | C | linux-4.14.90-dev/linux-4.14.90/drivers/gpu/drm/nouveau/nouveau_acpi.c | bingchunjin/1806_SDK | d5ed0258fc22f60e00ec025b802d175f33da6e41 | [
"MIT"
] | 34 | 2019-07-19T20:44:15.000Z | 2022-03-07T12:09:00.000Z | linux-4.14.90-dev/linux-4.14.90/drivers/gpu/drm/nouveau/nouveau_acpi.c | bingchunjin/1806_SDK | d5ed0258fc22f60e00ec025b802d175f33da6e41 | [
"MIT"
] | 3 | 2021-09-06T09:14:42.000Z | 2022-03-27T08:09:54.000Z | linux-4.14.90-dev/linux-4.14.90/drivers/gpu/drm/nouveau/nouveau_acpi.c | bingchunjin/1806_SDK | d5ed0258fc22f60e00ec025b802d175f33da6e41 | [
"MIT"
] | 20 | 2021-10-22T02:21:23.000Z | 2022-03-31T04:55:35.000Z | // SPDX-License-Identifier: GPL-2.0
#include <linux/pci.h>
#include <linux/acpi.h>
#include <linux/slab.h>
#include <linux/mxm-wmi.h>
#include <linux/vga_switcheroo.h>
#include <drm/drm_edid.h>
#include <acpi/video.h>
#include "nouveau_drv.h"
#include "nouveau_acpi.h"
#define NOUVEAU_DSM_LED 0x02
#define NOUVEAU_DSM_... | 27.019068 | 113 | 0.745864 |
4a6941fb50c16317f70f3f69b70319a6f2645c66 | 285 | js | JavaScript | models/economy.js | spicybirsge/AcronoxBot | 653c054e07e9a3638bef6bb53c0b958074b9f1aa | [
"Apache-2.0"
] | null | null | null | models/economy.js | spicybirsge/AcronoxBot | 653c054e07e9a3638bef6bb53c0b958074b9f1aa | [
"Apache-2.0"
] | 1 | 2022-01-17T13:49:16.000Z | 2022-02-06T15:28:41.000Z | models/economy.js | spicybirsge/AcronoxBot | 653c054e07e9a3638bef6bb53c0b958074b9f1aa | [
"Apache-2.0"
] | 1 | 2022-01-17T13:45:41.000Z | 2022-01-17T13:45:41.000Z | const mongoose = require("mongoose");
module.exports = new mongoose.model(
"economy",
new mongoose.Schema({
coins: { type: Number },
bank: { type: Number },
userID: { type: String },
started: { type: Boolean, default: false},
// guildID: { type: String }
})
) | 23.75 | 46 | 0.607018 |
1f09587e7eccfef3b0f92cd7f60fe9196894b349 | 5,284 | css | CSS | public/user/assets/styles/libs/flatpickr/flatpickr.min.css | YunusDev/ShopIt | 6d177b66fde9a8c2e3b399e78e093a029481f8c4 | [
"MIT"
] | null | null | null | public/user/assets/styles/libs/flatpickr/flatpickr.min.css | YunusDev/ShopIt | 6d177b66fde9a8c2e3b399e78e093a029481f8c4 | [
"MIT"
] | null | null | null | public/user/assets/styles/libs/flatpickr/flatpickr.min.css | YunusDev/ShopIt | 6d177b66fde9a8c2e3b399e78e093a029481f8c4 | [
"MIT"
] | null | null | null | .flatpickr-calendar .flatpickr-month>.flatpickr-next-month>svg,.flatpickr-calendar .flatpickr-month>.flatpickr-prev-month>svg{display:none}.flatpickr-input{-webkit-border-radius:2px;border-radius:2px;border:1px solid #c4cbe1;font-size:12px;color:#333;padding:10px 15px;line-height:1.25;width:100%}.flatpickr-input:disabl... | 5,284 | 5,284 | 0.813588 |
93bda72770b7861283d6205cd2b8aac34b7e9e9b | 453 | kt | Kotlin | app/src/main/java/dog/snow/androidrecruittest/repository/networking/service/UserRetrofit.kt | Lejdi/SnowDog_Recruit | 94bce0609da24f40fc77f9510be85cb48e5e814c | [
"Apache-2.0"
] | null | null | null | app/src/main/java/dog/snow/androidrecruittest/repository/networking/service/UserRetrofit.kt | Lejdi/SnowDog_Recruit | 94bce0609da24f40fc77f9510be85cb48e5e814c | [
"Apache-2.0"
] | null | null | null | app/src/main/java/dog/snow/androidrecruittest/repository/networking/service/UserRetrofit.kt | Lejdi/SnowDog_Recruit | 94bce0609da24f40fc77f9510be85cb48e5e814c | [
"Apache-2.0"
] | null | null | null | package dog.snow.androidrecruittest.repository.networking.service
import dog.snow.androidrecruittest.repository.networking.model.User
import retrofit2.http.GET
import retrofit2.http.Headers
import retrofit2.http.Path
interface UserRetrofit {
@GET("users")
@Headers("User-agent: Lejdi")
suspend fun getUsers... | 28.3125 | 67 | 0.735099 |
55723bb503e1c857e53bb765c0ad5ebe28eedad1 | 4,760 | swift | Swift | SomeApp/SomeApp/Logic/Game/TicTacToeGame.swift | PerrchicK/swift-app | 53e043d5b73e9dc63d1a3c87c17e566a5344e4be | [
"Apache-2.0"
] | 4 | 2017-04-12T12:41:13.000Z | 2018-04-15T18:26:42.000Z | SomeApp/SomeApp/Logic/Game/TicTacToeGame.swift | PerrchicK/swift-app | 53e043d5b73e9dc63d1a3c87c17e566a5344e4be | [
"Apache-2.0"
] | null | null | null | SomeApp/SomeApp/Logic/Game/TicTacToeGame.swift | PerrchicK/swift-app | 53e043d5b73e9dc63d1a3c87c17e566a5344e4be | [
"Apache-2.0"
] | 2 | 2016-12-08T13:29:02.000Z | 2017-05-10T16:23:13.000Z | //
// TicTacToeGame.swift
// SomeApp
//
// Created by Perry on 2/23/16.
// Copyright © 2016 PerrchicK. All rights reserved.
//
import Foundation
protocol TicTacToeGameDelegate: GameDelegate {
}
class TicTacToeGame: Game {
internal var currentPlayer: Player
weak internal var delegate: GameDelegate?
s... | 35.522388 | 161 | 0.591176 |
14c055e0e2559defb6669e360f75888eb4a8d53a | 498 | asm | Assembly | oeis/333/A333767.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/333/A333767.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/333/A333767.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A333767: Length of shortest run of zeros after a one in the binary expansion of n. a(0) = 0.
; Submitted by Jon Maiga
; 0,0,1,0,2,0,0,0,3,0,1,0,0,0,0,0,4,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,5,0,1,0,2,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,0,1,0,2,0,0,0,2,0,1,0,0,0,0,0,1,0,1,0,1,0,0
seq $0,261300 ; Concate... | 38.307692 | 175 | 0.628514 |
dd6d9ee079b954ea27a10cf9b5e424aeb92b0361 | 361 | go | Go | database/mysql.go | maofansa/WorkSubmission-backend | 0807bf99df7b0e896e3c6d43267514acc29f549b | [
"MIT"
] | null | null | null | database/mysql.go | maofansa/WorkSubmission-backend | 0807bf99df7b0e896e3c6d43267514acc29f549b | [
"MIT"
] | null | null | null | database/mysql.go | maofansa/WorkSubmission-backend | 0807bf99df7b0e896e3c6d43267514acc29f549b | [
"MIT"
] | null | null | null | package database
import (
"database/sql"
_ "github.com/go-sql-driver/mysql"
"log"
)
var SqlDB *sql.DB
func init() {
var err error
// 172.17.0.2:3306
SqlDB, err = sql.Open("mysql", "root:root@tcp(172.17.0.2:3306)/jobsubmission?charset=utf8")
if err != nil {
log.Fatal(err.Error())
}
err = SqlDB.Ping()
if e... | 16.409091 | 92 | 0.637119 |
e717f4c7e3ee9b5fc2eefc1c3807e1a9a1517f84 | 8,292 | js | JavaScript | model/wildword.js | lucaalbinati/WordlHelper | e58b40101e216c6c08e60fed05b6ff5634937cbb | [
"Apache-2.0"
] | null | null | null | model/wildword.js | lucaalbinati/WordlHelper | e58b40101e216c6c08e60fed05b6ff5634937cbb | [
"Apache-2.0"
] | null | null | null | model/wildword.js | lucaalbinati/WordlHelper | e58b40101e216c6c08e60fed05b6ff5634937cbb | [
"Apache-2.0"
] | null | null | null | import {
ALPHABET
} from '../constants/constants.js'
import {
WILDWORD_LETTER_CLASS,
WILDWORD_LETTER_ALL_CLASS,
WILDWORD_LETTER_UNUSED_CLASS,
WILDWORD_LETTER_CORRECT_CLASS,
WILDWORD_LETTER_POTENTIAL_CLASS,
LETTER_ALL,
LETTER_UNUSED
} from '../constants/html-css-constants.js'
import {
... | 32.264591 | 137 | 0.598408 |
b3a5c88b977a8b86fdea3810b7ea713984f85cad | 2,104 | asm | Assembly | week6/gmp-5.0.5/mpn/copyi.asm | csMOOC/Stanford.Cryptography | 13bd0e7188a7aded37a152378b6b1238736eaade | [
"MIT"
] | 1 | 2017-11-18T15:34:44.000Z | 2017-11-18T15:34:44.000Z | week6/gmp-5.0.5/mpn/copyi.asm | csMOOC/Stanford.Cryptography | 13bd0e7188a7aded37a152378b6b1238736eaade | [
"MIT"
] | null | null | null | week6/gmp-5.0.5/mpn/copyi.asm | csMOOC/Stanford.Cryptography | 13bd0e7188a7aded37a152378b6b1238736eaade | [
"MIT"
] | null | null | null | dnl AMD64 mpn_copyi -- copy limb vector, incrementing.
dnl Copyright 2003, 2005, 2007, 2011, 2012 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of either:
dnl
dnl * the GNU L... | 22.623656 | 79 | 0.679183 |
ae009a61819ec18bb89eec3985438c47f77e580f | 178 | rs | Rust | examples/fib.rs | tanakh/memoise | c8ccd3cedeca389ef7c368e710837045163fcebf | [
"BSD-3-Clause"
] | 23 | 2020-02-01T07:44:47.000Z | 2020-11-10T03:53:00.000Z | examples/fib.rs | tanakh/memoise | c8ccd3cedeca389ef7c368e710837045163fcebf | [
"BSD-3-Clause"
] | null | null | null | examples/fib.rs | tanakh/memoise | c8ccd3cedeca389ef7c368e710837045163fcebf | [
"BSD-3-Clause"
] | null | null | null | #[memoise::memoise(n <= 100)]
fn fib(n: i64) -> i64 {
if n == 0 || n == 1 {
return n;
}
fib(n - 1) + fib(n - 2)
}
fn main() {
println!("{}", fib(45));
}
| 14.833333 | 29 | 0.398876 |
041ab834843b02df09827ac3094e47a958aaebff | 764 | js | JavaScript | src/commands/Utility/calculator.js | hbashdbhiasbdhabsdhasbdhbas/tgarobbot1 | f1b9f8c0b235d2bff72056d4012d9d24eac4fe96 | [
"MIT"
] | null | null | null | src/commands/Utility/calculator.js | hbashdbhiasbdhabsdhasbdhbas/tgarobbot1 | f1b9f8c0b235d2bff72056d4012d9d24eac4fe96 | [
"MIT"
] | null | null | null | src/commands/Utility/calculator.js | hbashdbhiasbdhabsdhasbdhbas/tgarobbot1 | f1b9f8c0b235d2bff72056d4012d9d24eac4fe96 | [
"MIT"
] | null | null | null | const math = require('math-expression-evaluator');
const stripIndents = require('common-tags').stripIndents;
exports.run = (bot, msg, args) => {
if (args.length < 1) {
throw 'You must provide a equation to be solved on the calculator';
}
const question = args.join(' ');
const answer = math.eva... | 26.344828 | 75 | 0.541885 |
b628bd8c65a8f58e055b85cd0a308792ceaa37d0 | 186 | kt | Kotlin | src/main/kotlin/edu/umontreal/kotlingrad/calculus/Differentiable.kt | dendisuhubdy/kotlingrad | 8710a4aaf768e43f060a5fdf15460af1cba7d8f9 | [
"Apache-2.0"
] | null | null | null | src/main/kotlin/edu/umontreal/kotlingrad/calculus/Differentiable.kt | dendisuhubdy/kotlingrad | 8710a4aaf768e43f060a5fdf15460af1cba7d8f9 | [
"Apache-2.0"
] | null | null | null | src/main/kotlin/edu/umontreal/kotlingrad/calculus/Differentiable.kt | dendisuhubdy/kotlingrad | 8710a4aaf768e43f060a5fdf15460af1cba7d8f9 | [
"Apache-2.0"
] | null | null | null | package edu.umontreal.kotlingrad.calculus
import edu.umontreal.kotlingrad.algebra.Field
interface Differentiable<X: Field<X>> {
infix fun diff(ind: X): X
fun grad(): Map<X, X>
}
| 16.909091 | 45 | 0.731183 |
004e9101a653a8b4f1ea24fed6f1c40459546fad | 1,952 | kt | Kotlin | app/src/main/java/com/zdog/demo/ui/effects/sunny/Clouds.kt | DavosLi3hn9g/legal-informaticsp | a80c79cc0afeae6161eefbe69d7ab9cbb3cbd85c | [
"MIT"
] | 21 | 2019-09-27T11:21:47.000Z | 2022-03-03T20:32:27.000Z | app/src/main/java/com/zdog/demo/ui/effects/sunny/Clouds.kt | DavosLi3hn9g/legal-informaticsp | a80c79cc0afeae6161eefbe69d7ab9cbb3cbd85c | [
"MIT"
] | null | null | null | app/src/main/java/com/zdog/demo/ui/effects/sunny/Clouds.kt | DavosLi3hn9g/legal-informaticsp | a80c79cc0afeae6161eefbe69d7ab9cbb3cbd85c | [
"MIT"
] | 5 | 2019-10-15T01:56:50.000Z | 2021-04-16T14:08:16.000Z | package com.zdog.demo.ui.effects.sunny
import com.zdog.demo.ui.effects.Entity
import com.zdog.demo.ui.effects.cloud1
import com.zdog.demo.ui.effects.cloud2
import com.zdog.demo.ui.effects.layerSpace
import com.zdog.demo.ui.shapes.*
import com.zdog.demo.ui.shapes.Colors.white
import com.zdog.library.render.*
class Clo... | 31.483871 | 87 | 0.589652 |
5f84c5972aff6fdfd105c0e38e8e81f6b9741a0c | 1,283 | sql | SQL | todos.sql | vunb/ts-node-todo | c64bdfaf3f36a3fde88fba8191ad0a98d4acbc8c | [
"MIT"
] | 2 | 2019-05-13T10:28:49.000Z | 2020-01-03T07:41:59.000Z | todos.sql | vunb/ts-node-todo | c64bdfaf3f36a3fde88fba8191ad0a98d4acbc8c | [
"MIT"
] | null | null | null | todos.sql | vunb/ts-node-todo | c64bdfaf3f36a3fde88fba8191ad0a98d4acbc8c | [
"MIT"
] | 2 | 2019-04-10T01:15:24.000Z | 2019-09-05T02:50:25.000Z | /**
Khởi tạo csdl cho ứng dụng Node ToDo
Sử dụng: XAMPP for Windows + MySQL Workbench Community 6.3
*/
CREATE USER 'nodemy'@'localhost' IDENTIFIED BY 'pleasefixme';
CREATE DATABASE app_todos;
GRANT ALL PRIVILEGES ON app_todos.* TO 'nodemy'@'localhost';
USE app_todos;
CREATE TABLE app_todos.users (
id int(11) NOT... | 27.891304 | 83 | 0.708496 |
7cb6acfd2c6564b54a8a6c413afebff2817e4e89 | 3,182 | kt | Kotlin | app/src/main/java/de/psdev/devdrawer/adapters/BaseListAdapter.kt | hameno/DevDrawer | 442f44f5990244587b13bc62fb80774a7577bf4f | [
"Apache-1.1"
] | 3 | 2018-03-07T08:22:44.000Z | 2021-07-19T13:58:00.000Z | app/src/main/java/de/psdev/devdrawer/adapters/BaseListAdapter.kt | hameno/DevDrawer | 442f44f5990244587b13bc62fb80774a7577bf4f | [
"Apache-1.1"
] | 10 | 2018-02-11T12:39:52.000Z | 2021-01-03T17:54:57.000Z | app/src/main/java/de/psdev/devdrawer/adapters/BaseListAdapter.kt | hameno/DevDrawer | 442f44f5990244587b13bc62fb80774a7577bf4f | [
"Apache-1.1"
] | 3 | 2018-02-12T21:51:16.000Z | 2022-03-21T17:45:26.000Z | package de.psdev.devdrawer.adapters
import android.database.DataSetObservable
import android.database.DataSetObserver
import android.view.View
import android.view.ViewGroup
import android.widget.ListAdapter
abstract class BaseListAdapter<T: Any, VH: BaseListAdapter.ViewHolder>: ListAdapter {
private val dataSetOb... | 40.278481 | 129 | 0.538969 |
7c8386908681a18f9444ff08c83e0454e51cac3c | 4,056 | swift | Swift | Shared/Views/LoginView.swift | viz-cx/viz-wallet | d3cfff2a0faa79469cfc948dee41753d637b980d | [
"MIT"
] | 2 | 2021-05-08T06:21:06.000Z | 2021-07-06T09:09:22.000Z | Shared/Views/LoginView.swift | viz-cx/viz-wallet | d3cfff2a0faa79469cfc948dee41753d637b980d | [
"MIT"
] | null | null | null | Shared/Views/LoginView.swift | viz-cx/viz-wallet | d3cfff2a0faa79469cfc948dee41753d637b980d | [
"MIT"
] | null | null | null | //
// LoginView.swift
// viz-wallet
//
// Created by Vladimir Babin on 22.02.2021.
//
import SwiftUI
struct LoginView: View {
@EnvironmentObject private var userAuth: UserAuth
@State private var login = ""
@State private var regularKey = ""
@State private var isLoading = false
@State private va... | 34.965517 | 109 | 0.43072 |
db8a5ce82c18f63d35392d04f599dcd15c1e9e2c | 1,525 | kt | Kotlin | app/src/main/java/com/yudiz/dynamodbdemo/data/PlayerDataModel.kt | yudiz-solutions/dynamodb-android | d0f207d955528e26a45b1a6297e12f00517c143f | [
"Apache-2.0"
] | 1 | 2020-04-30T05:25:02.000Z | 2020-04-30T05:25:02.000Z | app/src/main/java/com/yudiz/dynamodbdemo/data/PlayerDataModel.kt | yudiz-solutions/dynamodb-android | d0f207d955528e26a45b1a6297e12f00517c143f | [
"Apache-2.0"
] | null | null | null | app/src/main/java/com/yudiz/dynamodbdemo/data/PlayerDataModel.kt | yudiz-solutions/dynamodb-android | d0f207d955528e26a45b1a6297e12f00517c143f | [
"Apache-2.0"
] | null | null | null | package com.yudiz.dynamodbdemo.data
import android.content.Context
import android.text.SpannedString
import androidx.core.content.ContextCompat
import androidx.core.text.buildSpannedString
import androidx.core.text.color
import androidx.databinding.BaseObservable
import androidx.databinding.Bindable
import com.yudiz.d... | 25 | 54 | 0.562623 |
74f7a9f85e2f12e783f94c8cb23678707be4a8b2 | 654 | asm | Assembly | NASM/SpojNASM/Basic/XOR.asm | gabriel88766/SmallProjects | deef95631369ac6378448ab3e8e1f52d7a78ea6b | [
"MIT"
] | 1 | 2021-08-28T17:22:57.000Z | 2021-08-28T17:22:57.000Z | NASM/SpojNASM/Basic/XOR.asm | gabriel88766/SmallProjects | deef95631369ac6378448ab3e8e1f52d7a78ea6b | [
"MIT"
] | null | null | null | NASM/SpojNASM/Basic/XOR.asm | gabriel88766/SmallProjects | deef95631369ac6378448ab3e8e1f52d7a78ea6b | [
"MIT"
] | null | null | null | ; https://www.spoj.com/problems/BSCXOR/
; Input X and Y, two numbers: "X Y"
; Output X^Y
;
global _start
section .data
section .bss ;Uninitialized data
line resb 3
resp resb 1
section .text
_start:
read1:
mov eax, 3
mov ebx, 0
mov ecx, line
mov edx, 3
int 80h
movzx eax,... | 13.914894 | 46 | 0.54893 |
c526affb7d5de98fb84232129dd552fa2ec5252a | 3,791 | asm | Assembly | Max/min.asm | miguel2192/CSC211-Assembly | 39cd43026f07e443d9809fb7ec229303522ecab9 | [
"MIT"
] | null | null | null | Max/min.asm | miguel2192/CSC211-Assembly | 39cd43026f07e443d9809fb7ec229303522ecab9 | [
"MIT"
] | null | null | null | Max/min.asm | miguel2192/CSC211-Assembly | 39cd43026f07e443d9809fb7ec229303522ecab9 | [
"MIT"
] | null | null | null | ########### max.asm ##############################
# Miguel Rodriguez #
# max.asm #
# Description #
# Determines the max of two floating numbers #
# Program Logic #
# 1. Ask for ... | 29.617188 | 88 | 0.363756 |
39b7dfaddccc30b37789ab1ac67c1f7b2d62a2b3 | 1,502 | js | JavaScript | resources/js/script-min.js | Nam-H-Nguyen/YumYumCart | d2c4d58643e4c236b3335a74281c1ecd4a8ae116 | [
"MIT"
] | null | null | null | resources/js/script-min.js | Nam-H-Nguyen/YumYumCart | d2c4d58643e4c236b3335a74281c1ecd4a8ae116 | [
"MIT"
] | 5 | 2019-07-20T14:16:48.000Z | 2019-08-03T02:28:26.000Z | YumYumCart/resources/js/script-min.js | Nam-H-Nguyen/Web-Apps | db7feb58bd7968913226929baf838a50d6065373 | [
"MIT"
] | null | null | null | $(document).ready(function(){$(".js--section-features").waypoint(function(s){"down"==s?$("nav").addClass("sticky"):$("nav").removeClass("sticky")},{offset:"60px;"}),$(".js--scroll-to-plans").click(function(){$("html, body").animate({scrollTop:$(".js--section-plans").offset().top},1e3)}),$(".js--scroll-to-start").click(... | 751 | 1,501 | 0.626498 |
7585217a9cf260a67eb4d4fbda061a27a3fb23af | 707 | h | C | torch/csrc/api/include/torch/data/samplers/serialize.h | Hacky-DH/pytorch | 80dc4be615854570aa39a7e36495897d8a040ecc | [
"Intel"
] | 60,067 | 2017-01-18T17:21:31.000Z | 2022-03-31T21:37:45.000Z | torch/csrc/api/include/torch/data/samplers/serialize.h | Hacky-DH/pytorch | 80dc4be615854570aa39a7e36495897d8a040ecc | [
"Intel"
] | 66,955 | 2017-01-18T17:21:38.000Z | 2022-03-31T23:56:11.000Z | torch/csrc/api/include/torch/data/samplers/serialize.h | Hacky-DH/pytorch | 80dc4be615854570aa39a7e36495897d8a040ecc | [
"Intel"
] | 19,210 | 2017-01-18T17:45:04.000Z | 2022-03-31T23:51:56.000Z | #pragma once
#include <torch/data/samplers/base.h>
#include <torch/serialize/archive.h>
namespace torch {
namespace data {
namespace samplers {
/// Serializes a `Sampler` into an `OutputArchive`.
template <typename BatchRequest>
serialize::OutputArchive& operator<<(
serialize::OutputArchive& archive,
const Sa... | 24.37931 | 52 | 0.738331 |
0bae43ec3e9b039ea340a51ed3f787461acaf5d6 | 7,255 | js | JavaScript | build/es5-amd/node_modules/@lrnwebcomponents/wysiwyg-hax/wysiwyg-hax.js | EberlyODL/haxcms | 3b9f76dd097dc5028916c172c5912277181a9aab | [
"Apache-2.0"
] | null | null | null | build/es5-amd/node_modules/@lrnwebcomponents/wysiwyg-hax/wysiwyg-hax.js | EberlyODL/haxcms | 3b9f76dd097dc5028916c172c5912277181a9aab | [
"Apache-2.0"
] | null | null | null | build/es5-amd/node_modules/@lrnwebcomponents/wysiwyg-hax/wysiwyg-hax.js | EberlyODL/haxcms | 3b9f76dd097dc5028916c172c5912277181a9aab | [
"Apache-2.0"
] | null | null | null | define(["exports","../../lit-element/lit-element.js","../cms-hax/cms-hax.js"],function(_exports,_litElement,_cmsHax){"use strict";Object.defineProperty(_exports,"__esModule",{value:!0});_exports.WysiwygHax=void 0;function _templateObject2_85ec6fe0679e11eaa25e79cdef13391f(){var data=babelHelpers.taggedTemplateLiteral(["... | 148.061224 | 1,327 | 0.739352 |
4697358438daa77317ae53f00eb1bde91a4b5d2d | 16,840 | css | CSS | ConformityCheck/Web/ConformityCheck.Web/wwwroot/css/site.min.css | Paulina-Dyulgerska/CSharp_ASP.NET_Core | 64b44d3b43af3a89d6389eaf0f4aac8183a8615a | [
"MIT"
] | 1 | 2020-11-01T14:24:05.000Z | 2020-11-01T14:24:05.000Z | ConformityCheck/Web/ConformityCheck.Web/wwwroot/css/site.min.css | Paulina-Dyulgerska/CSharp_ASP.NET_Core | 64b44d3b43af3a89d6389eaf0f4aac8183a8615a | [
"MIT"
] | null | null | null | ConformityCheck/Web/ConformityCheck.Web/wwwroot/css/site.min.css | Paulina-Dyulgerska/CSharp_ASP.NET_Core | 64b44d3b43af3a89d6389eaf0f4aac8183a8615a | [
"MIT"
] | null | null | null | html{box-sizing:border-box;background-color:#59d2ef}*,*:before,*:after{margin:0;padding:0;box-sizing:inherit}body{padding:0;margin:0 auto;color:#017691}@font-face{font-family:"Montserrat";src:url("../fonts/Montserrat/Montserrat-Regular.ttf") format('truetype')}@font-face{font-family:"Poppins";src:url("../fonts/Poppins/... | 16,840 | 16,840 | 0.793587 |
b2c83a9626d327c18df6c74ffc572fe2774106fd | 1,504 | py | Python | gopage/web_helper.py | wavegu/gopage | ff83cea34a82570627c74c5bad45ebc02ecaaff6 | [
"MIT"
] | 1 | 2017-02-03T10:24:00.000Z | 2017-02-03T10:24:00.000Z | gopage/web_helper.py | wavegu/gopage | ff83cea34a82570627c74c5bad45ebc02ecaaff6 | [
"MIT"
] | null | null | null | gopage/web_helper.py | wavegu/gopage | ff83cea34a82570627c74c5bad45ebc02ecaaff6 | [
"MIT"
] | null | null | null | # encoding: utf-8
import urllib2
from proxy_helper import ProxyHelper
proxyHelper = ProxyHelper()
class WebHelper:
def __init__(self):
pass
@classmethod
def get_page_content_from_url(cls, page_url):
"""
get html content from web page with given url
:param page_url: url ... | 36.682927 | 122 | 0.621011 |
b31848383eda251d634cc5e975ff9f03f1a24740 | 283 | swift | Swift | DashiKit/Strings.swift | notoroid/Siridashi | ec0498dfc6dce974293193aa756b591089cea2eb | [
"MIT"
] | null | null | null | DashiKit/Strings.swift | notoroid/Siridashi | ec0498dfc6dce974293193aa756b591089cea2eb | [
"MIT"
] | null | null | null | DashiKit/Strings.swift | notoroid/Siridashi | ec0498dfc6dce974293193aa756b591089cea2eb | [
"MIT"
] | null | null | null | //
// Strings.swift
// DashiKit
//
// Created by 能登 要 on 2018/11/22.
// Copyright © 2018年 Kaname Noto. All rights reserved.
//
import UIKit
class Strings {
#warning("Please inpu your slack AccessToken.")
static let AccessToken = ""
static let Channel = "general"
}
| 17.6875 | 55 | 0.657244 |
1685774039ca58fd0124e74dc4bbc3c0a0d3b484 | 1,921 | h | C | include/tweedledum/IR/Qubit.h | paniash/tweedledum | fe997bea3413a02033d76b20034e3a24b840bffb | [
"MIT"
] | 76 | 2018-07-21T08:12:17.000Z | 2022-01-25T06:22:25.000Z | include/tweedledum/IR/Qubit.h | paniash/tweedledum | fe997bea3413a02033d76b20034e3a24b840bffb | [
"MIT"
] | 44 | 2018-10-26T10:44:39.000Z | 2022-02-07T01:07:38.000Z | include/tweedledum/IR/Qubit.h | paniash/tweedledum | fe997bea3413a02033d76b20034e3a24b840bffb | [
"MIT"
] | 23 | 2018-09-27T15:28:48.000Z | 2022-03-07T12:21:37.000Z | /*------------------------------------------------------------------------------
| Part of Tweedledum Project. This file is distributed under the MIT License.
| See accompanying file /LICENSE for details.
*-----------------------------------------------------------------------------*/
#pragma once
#include <cassert>
... | 19.40404 | 80 | 0.52785 |
4740c857556bea794d55ccd0645a451877a50b5c | 41,357 | html | HTML | docs/Classes/Stack.html | contentstack/contentstack-swift | 0d93f101ee8a5f907da0a47ae76acd47485ec9db | [
"MIT"
] | 1 | 2021-09-21T19:39:07.000Z | 2021-09-21T19:39:07.000Z | docs/docsets/Contentstack.docset/Contents/Resources/Documents/Classes/Stack.html | contentstack/contentstack-swift | 0d93f101ee8a5f907da0a47ae76acd47485ec9db | [
"MIT"
] | null | null | null | docs/docsets/Contentstack.docset/Contents/Resources/Documents/Classes/Stack.html | contentstack/contentstack-swift | 0d93f101ee8a5f907da0a47ae76acd47485ec9db | [
"MIT"
] | null | null | null | <!DOCTYPE html>
<html lang="en">
<head>
<title>Stack Class Reference</title>
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
<link rel="canonical" href="https://www.contentstack.com/docs/platforms/ios/api-reference... | 53.571244 | 572 | 0.467176 |
b37e28b633cd8506f7bc28a82995d6bebceb0665 | 305 | rb | Ruby | lib/leaflet-responsive-popup-rails.rb | Mapotempo/leaflet-responsive-popup-rails | 1166f3b893faa52a3157a5c3925533efb75248d5 | [
"BSD-2-Clause"
] | 1 | 2018-01-07T07:54:49.000Z | 2018-01-07T07:54:49.000Z | lib/leaflet-responsive-popup-rails.rb | Mapotempo/leaflet-responsive-popup-rails | 1166f3b893faa52a3157a5c3925533efb75248d5 | [
"BSD-2-Clause"
] | null | null | null | lib/leaflet-responsive-popup-rails.rb | Mapotempo/leaflet-responsive-popup-rails | 1166f3b893faa52a3157a5c3925533efb75248d5 | [
"BSD-2-Clause"
] | null | null | null | require "leaflet-control-geocoder-rails/version"
module Leaflet
module Responsive
module Popup
module Rails
# make me a rails engine
class Engine < ::Rails::Engine
initializer 'leaflet-rails.precompile' do |app|
end
end
end
end
end
end
| 19.0625 | 57 | 0.616393 |
ddc975f3316fe06a6202c17b7d9bfd9e2c044426 | 1,451 | go | Go | rest/handlers_utils.go | bygui86/go-gorm | 6cd280821ad84c6f0c9058a31f9836e88229cfd8 | [
"Apache-2.0"
] | null | null | null | rest/handlers_utils.go | bygui86/go-gorm | 6cd280821ad84c6f0c9058a31f9836e88229cfd8 | [
"Apache-2.0"
] | null | null | null | rest/handlers_utils.go | bygui86/go-gorm | 6cd280821ad84c6f0c9058a31f9836e88229cfd8 | [
"Apache-2.0"
] | null | null | null | package rest
import (
"encoding/json"
"github.com/gorilla/mux"
"net/http"
"strconv"
"gopkg.in/logex.v1"
)
func setJsonContentType(writer http.ResponseWriter) {
writer.Header().Set(contentTypeHeaderKey, applicationJsonValue)
}
func setStatusOk(writer http.ResponseWriter) {
writer.WriteHeader(http.StatusOK)
}
... | 24.183333 | 86 | 0.772571 |
0b83f0ab273b13a1a169d3aa5355aab90ac31ca1 | 313 | py | Python | setup.py | cfbolz/syntaxerrors | 1c7ecc8fd0d05253d5c55dee39802cfb86fb69f7 | [
"Apache-2.0",
"OpenSSL"
] | 5 | 2018-04-11T15:19:53.000Z | 2020-10-27T15:23:18.000Z | setup.py | cfbolz/syntaxerrors | 1c7ecc8fd0d05253d5c55dee39802cfb86fb69f7 | [
"Apache-2.0",
"OpenSSL"
] | null | null | null | setup.py | cfbolz/syntaxerrors | 1c7ecc8fd0d05253d5c55dee39802cfb86fb69f7 | [
"Apache-2.0",
"OpenSSL"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='syntaxerrors',
version='0.0.1',
description='Report better SyntaxErrors',
author='Carl Friedrich Bolz-Tereick',
author_email='cfbolz@gmx.de',
packages=['syntaxerrors'],
package_dir={'': 'src'},
include_package_data=True,
)
| 24.076923 | 45 | 0.686901 |
7255d825fa0570bfeb4c2f4f4c774234f6d6b4e4 | 699 | kt | Kotlin | common/src/main/java/com/jon/common/logging/FileLoggingTree.kt | joshuafuller/cotgenerator | ae8809555a1e9e2a62f64ce90f2ff6fa5c6ef0fd | [
"Apache-2.0"
] | 2 | 2021-08-21T11:04:14.000Z | 2021-09-04T19:46:18.000Z | common/src/main/java/com/jon/common/logging/FileLoggingTree.kt | joshuafuller/cotgenerator | ae8809555a1e9e2a62f64ce90f2ff6fa5c6ef0fd | [
"Apache-2.0"
] | 1 | 2020-07-16T00:22:53.000Z | 2020-07-16T00:22:53.000Z | common/src/main/java/com/jon/common/logging/FileLoggingTree.kt | joshuafuller/cotgenerator | ae8809555a1e9e2a62f64ce90f2ff6fa5c6ef0fd | [
"Apache-2.0"
] | 3 | 2021-09-10T19:34:00.000Z | 2022-03-15T13:21:58.000Z | package com.jon.common.logging
import android.util.Log
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import timber.log.Timber
class FileLoggingTree : Timber.Tree() {
override fun log(priority: Int, tag: String?, message: String, t: Throwable?) {
val logMessage = "$tag: $message"
when (p... | 26.884615 | 83 | 0.639485 |
c310a18d5accf2c0cabd35c4376b3dad1321920e | 1,034 | go | Go | content/code/go-iterate-all-elements/handleHtmlLink.go | eduard1963/userpages | 98a00c9ef3d82363dba1a89375574daaa5a86d14 | [
"Unlicense"
] | 77 | 2015-07-18T15:56:54.000Z | 2022-03-10T06:22:06.000Z | content/code/go-iterate-all-elements/handleHtmlLink.go | vicmanbrile/userpages | 76d540b447ea0baccc91e1db5f9c22408fe420f4 | [
"Unlicense"
] | 5 | 2017-02-23T10:17:21.000Z | 2022-01-13T19:51:15.000Z | content/code/go-iterate-all-elements/handleHtmlLink.go | vicmanbrile/userpages | 76d540b447ea0baccc91e1db5f9c22408fe420f4 | [
"Unlicense"
] | 35 | 2015-04-22T05:10:00.000Z | 2022-01-21T12:34:50.000Z | package main
import (
"errors"
"fmt"
"golang.org/x/net/html"
"os"
"strings"
)
func isAnchorElement(n *html.Node) bool {
return n.Type == html.ElementNode && n.Data == "a"
}
func isTextNode(n *html.Node) bool {
return n.Type == html.TextNode
}
func isHasOnlyOneChild(n *html.Node) bool {
return n.FirstChild !... | 19.148148 | 61 | 0.648936 |
47eeaa55ccd91f0c7f2a15ad9a4d0b0a94d44ed6 | 629 | sql | SQL | airbyte-integrations/bases/base-normalization/integration_tests/normalization_test_output/snowflake/test_primary_key_streams/final/airbyte_ctes/TEST_NORMALIZATION/CONFLICT_STREAM_ARRAY_CONFLICT_STREAM_ARRAY_AB3.sql | jinnig/airbyte | 1ccd21867b7908380b941ac4aa7737b59d18d4a9 | [
"MIT"
] | null | null | null | airbyte-integrations/bases/base-normalization/integration_tests/normalization_test_output/snowflake/test_primary_key_streams/final/airbyte_ctes/TEST_NORMALIZATION/CONFLICT_STREAM_ARRAY_CONFLICT_STREAM_ARRAY_AB3.sql | jinnig/airbyte | 1ccd21867b7908380b941ac4aa7737b59d18d4a9 | [
"MIT"
] | 1 | 2021-08-17T06:12:26.000Z | 2021-08-17T06:12:26.000Z | airbyte-integrations/bases/base-normalization/integration_tests/normalization_test_output/snowflake/test_primary_key_streams/final/airbyte_ctes/TEST_NORMALIZATION/CONFLICT_STREAM_ARRAY_CONFLICT_STREAM_ARRAY_AB3.sql | jinnig/airbyte | 1ccd21867b7908380b941ac4aa7737b59d18d4a9 | [
"MIT"
] | null | null | null |
create or replace view "AIRBYTE_DATABASE"._AIRBYTE_TEST_NORMALIZATION."CONFLICT_STREAM_ARRAY_CONFLICT_STREAM_ARRAY_AB3" as (
-- SQL model to build a hash column based on the values of this record
select
*,
md5(cast(
coalesce(cast(_AIRBYTE_CONFLICT_STREAM_ARRAY_HASHID as
varchar
), '') ||... | 29.952381 | 128 | 0.772655 |
79dd1802caf68935c51966c2bf87f2785adc2d51 | 4,491 | sql | SQL | as-admin/src/main/resources/db/migration/V11__I_sys_menu.sql | s1018720000/asporject | 07641a32dfafb06495a3b8e1f3c41c65761b3f85 | [
"MIT"
] | null | null | null | as-admin/src/main/resources/db/migration/V11__I_sys_menu.sql | s1018720000/asporject | 07641a32dfafb06495a3b8e1f3c41c65761b3f85 | [
"MIT"
] | null | null | null | as-admin/src/main/resources/db/migration/V11__I_sys_menu.sql | s1018720000/asporject | 07641a32dfafb06495a3b8e1f3c41c65761b3f85 | [
"MIT"
] | null | null | null | -- 菜单 SQL
insert into sys_menu (menu_name, menu_name_tw, menu_name_us, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
values('Elastic任务', 'Elastic任務', 'Elastic Detect', '7', '1', '/monitor/elasticJob', 'C', '0', 'monitor:elasticJob:view', '#', 'admin'... | 91.653061 | 177 | 0.67446 |
af3a7251077783f79c93ddfbdb033d7ae3675b30 | 1,813 | rb | Ruby | spec/matchers/output_spec.rb | envato/cloudformation_rspec | 7fd9022ef296caf991ff1dde18b17c738320cc5b | [
"MIT"
] | 9 | 2018-10-17T05:40:56.000Z | 2021-04-26T09:22:55.000Z | spec/matchers/output_spec.rb | envato/cloudformation_rspec | 7fd9022ef296caf991ff1dde18b17c738320cc5b | [
"MIT"
] | 7 | 2018-10-21T11:05:15.000Z | 2020-08-25T07:13:48.000Z | spec/matchers/output_spec.rb | envato/cloudformation_rspec | 7fd9022ef296caf991ff1dde18b17c738320cc5b | [
"MIT"
] | null | null | null | require 'spec_helper'
describe 'have_output_including' do
context 'sparkleformation template' do
let(:template_file) { File.join('spec', 'fixtures', 'valid_sparkle_vpc_template.rb') }
let(:stack) {{
compiler: :sparkleformation,
template_file: template_file,
compile_state: {}
}}
it ... | 30.216667 | 195 | 0.696084 |
7ff601b89c114687ef82072b20ff4533e55c32b8 | 5,224 | go | Go | blockstream/source.go | boost-entropy-golang/bstream | a2237c68f77b86184571b3a4493cef1d247b3968 | [
"Apache-2.0"
] | 3 | 2022-02-20T05:41:37.000Z | 2022-03-05T14:15:17.000Z | blockstream/source.go | boost-entropy-golang/bstream | a2237c68f77b86184571b3a4493cef1d247b3968 | [
"Apache-2.0"
] | 5 | 2022-02-04T17:22:49.000Z | 2022-03-01T16:49:23.000Z | blockstream/source.go | boost-entropy-golang/bstream | a2237c68f77b86184571b3a4493cef1d247b3968 | [
"Apache-2.0"
] | 3 | 2022-02-10T20:40:18.000Z | 2022-03-26T23:57:19.000Z | // Copyright 2019 dfuse Platform 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... | 22.229787 | 105 | 0.673239 |
b1ac15ee41b7475625aecbab6208b5670aefc5b1 | 195 | h | C | src/config/controller-button-entity.h | galczo5/open-midi-controller | a09a216226a474328ef5e79db78161c04f65fea8 | [
"MIT"
] | 28 | 2021-07-24T12:07:40.000Z | 2022-02-05T12:54:05.000Z | src/config/controller-button-entity.h | galczo5/open-midi-controller | a09a216226a474328ef5e79db78161c04f65fea8 | [
"MIT"
] | 5 | 2021-07-24T11:47:34.000Z | 2022-03-05T19:59:14.000Z | src/config/controller-button-entity.h | galczo5/open-midi-controller | a09a216226a474328ef5e79db78161c04f65fea8 | [
"MIT"
] | 2 | 2021-07-24T11:55:30.000Z | 2021-08-10T03:36:15.000Z | #ifndef CONTROLLER_BUTTON_H
#define CONTROLLER_BUTTON_H
#include <Arduino.h>
struct ControllerButtonEntity {
byte channel;
byte type;
byte value1;
byte value2;
byte value3;
};
#endif | 13.928571 | 31 | 0.753846 |
866d280a0d660a4b5719ef18d0fd062e66fc3951 | 2,330 | swift | Swift | Tabless/WebController+BackSwipe.swift | ericbomgardner/tabless | 5204fc1a3134f8dce7aa48d8f56e32a8f210a293 | [
"MIT"
] | 9 | 2018-03-22T20:18:51.000Z | 2022-02-09T23:35:29.000Z | Tabless/WebController+BackSwipe.swift | ericbomgardner/tabless | 5204fc1a3134f8dce7aa48d8f56e32a8f210a293 | [
"MIT"
] | 6 | 2017-01-25T09:14:38.000Z | 2022-02-09T22:51:14.000Z | Tabless/WebController+BackSwipe.swift | ericbomgardner/tabless | 5204fc1a3134f8dce7aa48d8f56e32a8f210a293 | [
"MIT"
] | null | null | null | import UIKit
extension WebController {
@objc func handleBackSwipe(gestureRecognizer: UIScreenEdgePanGestureRecognizer) {
let viewXTranslation = gestureRecognizer.translation(in: gestureRecognizer.view?.superview).x
let progress = viewXTranslation / view.bounds.width
switch gestureRecogniz... | 46.6 | 101 | 0.525751 |
ea2878c2de9e6f084a72a3e9117b25380061c9dd | 322 | swift | Swift | AirportLocatorApp/AirportMapViewDelegate.swift | balichowdry/locate-airport-nearby | 18e61bea2182272f9471c61527ed6863f94e279e | [
"MIT"
] | null | null | null | AirportLocatorApp/AirportMapViewDelegate.swift | balichowdry/locate-airport-nearby | 18e61bea2182272f9471c61527ed6863f94e279e | [
"MIT"
] | null | null | null | AirportLocatorApp/AirportMapViewDelegate.swift | balichowdry/locate-airport-nearby | 18e61bea2182272f9471c61527ed6863f94e279e | [
"MIT"
] | null | null | null | //
// test.swift
// AirportLocator
//
// Created by Bilal Sattar on 09/11/2019.
// Copyright © 2019 Bilal Sattar. All rights reserved.
//
import UIKit
protocol MapViewDelegate: class {
func onStartLoading()
func onEndLoading()
func onFailure(Message: String)
func onSuccess(list: AirportListModel)
... | 18.941176 | 55 | 0.701863 |
f6fa46007e8de17f1383d7971c7d9de35e1b531e | 1,113 | sql | SQL | EdFi.Ods.Utilities.Migration/Scripts/MsSql/02Upgrade/v25_to_v31/11 Create Constraints/53770 StudentCTEProgramAssociation [FK].sql | Ed-Fi-Alliance-OSS/Ed-Fi-MigrationUtility | 0d990a4d5cec37eec2015ef53e8d9e4fdec8750a | [
"Apache-2.0"
] | null | null | null | EdFi.Ods.Utilities.Migration/Scripts/MsSql/02Upgrade/v25_to_v31/11 Create Constraints/53770 StudentCTEProgramAssociation [FK].sql | Ed-Fi-Alliance-OSS/Ed-Fi-MigrationUtility | 0d990a4d5cec37eec2015ef53e8d9e4fdec8750a | [
"Apache-2.0"
] | 9 | 2020-06-12T16:07:31.000Z | 2022-01-20T16:13:12.000Z | EdFi.Ods.Utilities.Migration/Scripts/MsSql/02Upgrade/v25_to_v31/11 Create Constraints/53770 StudentCTEProgramAssociation [FK].sql | Ed-Fi-Alliance-OSS/Ed-Fi-MigrationUtility | 0d990a4d5cec37eec2015ef53e8d9e4fdec8750a | [
"Apache-2.0"
] | 3 | 2020-05-19T13:25:35.000Z | 2022-02-26T01:21:18.000Z | -- SPDX-License-Identifier: Apache-2.0
-- Licensed to the Ed-Fi Alliance under one or more agreements.
-- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
-- See the LICENSE and NOTICES files in the project root for more information.
PRINT N'Adding foreign keys to [edfi].[StudentCTEP... | 92.75 | 476 | 0.831986 |
aa09a92e74b21a234433a9dec7aeee15e0a636a6 | 3,582 | sql | SQL | documents/db/platz_databaseVide.sql | liampesser/PLATZ_TRY | 72d5564e916a50566dd3e964cfb8aa978b9ea396 | [
"MIT"
] | null | null | null | documents/db/platz_databaseVide.sql | liampesser/PLATZ_TRY | 72d5564e916a50566dd3e964cfb8aa978b9ea396 | [
"MIT"
] | null | null | null | documents/db/platz_databaseVide.sql | liampesser/PLATZ_TRY | 72d5564e916a50566dd3e964cfb8aa978b9ea396 | [
"MIT"
] | null | null | null | -- MySQL Script generated by MySQL Workbench
-- Mon Feb 15 19:57:56 2021
-- Model: New Model Version: 1.0
-- MySQL Workbench Forward Engineering
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ON... | 33.792453 | 159 | 0.589336 |
0b5048a8c70006e924308165169ee5c4fabe48fa | 934 | py | Python | asar_pi_applications/asar_vision/robot_distance_incorrect.py | ssnover/msd-p18542 | 32bef466f9d5ba55429da2119a14081b3e411d0b | [
"MIT"
] | 3 | 2021-01-07T07:46:50.000Z | 2021-11-17T10:48:39.000Z | asar_pi_applications/asar_vision/robot_distance_incorrect.py | ssnover/msd-p18542 | 32bef466f9d5ba55429da2119a14081b3e411d0b | [
"MIT"
] | 3 | 2018-02-19T20:30:30.000Z | 2018-04-20T23:25:29.000Z | asar_pi_applications/asar_vision/robot_distance_incorrect.py | ssnover95/msd-p18542 | 32bef466f9d5ba55429da2119a14081b3e411d0b | [
"MIT"
] | 1 | 2021-01-07T07:46:52.000Z | 2021-01-07T07:46:52.000Z | import numpy as np
from math import sqrt
def robot_distance_incorrect(robot_actual_location, hexagon_pixel_values):
distance_to_get_back = []
distances = []
pixel_distance = []
for i in range(0, len(hexagon_pixel_values)):
dist = sqrt((robot_actual_location[0] - hexagon_pixel_values[i][0]) ** ... | 44.47619 | 115 | 0.723769 |
6bb77fd6a92ff4c0a7a4789a65ef675c733ad989 | 379 | h | C | remote/rtRemoteFactory.h | maciej-barczak-red/pxCore | a4c320cfa0f8c5629d7de34ddb2c393b18ac2a50 | [
"Apache-2.0"
] | null | null | null | remote/rtRemoteFactory.h | maciej-barczak-red/pxCore | a4c320cfa0f8c5629d7de34ddb2c393b18ac2a50 | [
"Apache-2.0"
] | null | null | null | remote/rtRemoteFactory.h | maciej-barczak-red/pxCore | a4c320cfa0f8c5629d7de34ddb2c393b18ac2a50 | [
"Apache-2.0"
] | null | null | null | #include "rtRemoteIResolver.h"
#include "rtRemoteTypes.h"
#include "rtRemoteEnvironment.h"
enum rtResolverType
{
RT_RESOLVER_MULTICAST,
RT_RESOLVER_FILE,
RT_RESOLVER_UNICAST
};
class rtRemoteEnvironment;
class rtRemoteFactory
{
private:
rtRemoteFactory();
~rtRemoteFactory();
public:
static rtRemoteIReso... | 16.478261 | 77 | 0.794195 |
9972e903b1d0f2a3c5954b5efd815e130cc0030a | 1,219 | h | C | util/flags.h | ammon0/lib-util | c25417bd039747f8ae381211991b1ce16e9172ff | [
"MIT"
] | 1 | 2019-09-05T21:56:43.000Z | 2019-09-05T21:56:43.000Z | util/flags.h | ammon0/lib-util | c25417bd039747f8ae381211991b1ce16e9172ff | [
"MIT"
] | 1 | 2017-04-22T21:21:46.000Z | 2017-04-22T21:21:46.000Z | util/flags.h | ammon0/lib-util | c25417bd039747f8ae381211991b1ce16e9172ff | [
"MIT"
] | null | null | null | /*******************************************************************************
*
* lib-util : A Utility Library
*
* Copyright (c) 2016-2018 Ammon Dodson
* You should have received a copy of the license terms with this software. If
* not, please visit the project homepage at:
* https://github.com/ammon0/lib-uti... | 33.861111 | 80 | 0.531583 |
278b3b90f68e50b1f8820cd6fc562680ac9447e5 | 104 | css | CSS | docs/template/build/eon/framework/custom/app-doc-viewer/app-doc-viewer-tree/app-doc-viewer-tree.css | vimlet/metapack | 95f313008822f87187394ea1006c9671c923f833 | [
"MIT"
] | 23 | 2019-02-06T14:13:27.000Z | 2020-12-02T22:49:36.000Z | docs/template/build/eon/framework/custom/app-doc-viewer/app-doc-viewer-tree/app-doc-viewer-tree.css | vimlet/metapack | 95f313008822f87187394ea1006c9671c923f833 | [
"MIT"
] | 8 | 2019-08-06T09:01:28.000Z | 2020-07-13T08:19:40.000Z | docs/template/build/eon/framework/custom/app-doc-viewer/app-doc-viewer-tree/app-doc-viewer-tree.css | vimlet/metapack | 95f313008822f87187394ea1006c9671c923f833 | [
"MIT"
] | 8 | 2019-04-14T21:45:58.000Z | 2020-05-18T08:07:30.000Z | app-doc-viewer-tree{
height:100%;
}
app-doc-viewer-tree .eon-tree-tree{
font-weight: normal;
} | 14.857143 | 36 | 0.653846 |
748eb21512486881faede68c20ab9ce6b333f19a | 1,192 | swift | Swift | LeetCodeChallenge/LeetCodeChallenge/MayWeek2/MaySolDay11.swift | twho/leetcode-30-day-challenge-swift | 6f6a70cff04c396c4502cd3f51d0eea88400b03b | [
"MIT"
] | 32 | 2020-04-20T08:38:34.000Z | 2022-03-25T19:14:34.000Z | LeetCodeChallenge/LeetCodeChallenge/MayWeek2/MaySolDay11.swift | twho/leetcode-30-day-challenge-swift | 6f6a70cff04c396c4502cd3f51d0eea88400b03b | [
"MIT"
] | 1 | 2021-08-03T12:22:13.000Z | 2021-08-03T12:22:13.000Z | LeetCodeChallenge/LeetCodeChallenge/MayWeek2/MaySolDay11.swift | twho/leetcode-30-day-challenge-swift | 6f6a70cff04c396c4502cd3f51d0eea88400b03b | [
"MIT"
] | 9 | 2020-05-11T16:43:24.000Z | 2022-02-07T03:53:21.000Z | //
// MaySolDay11.swift
// LeetCodeChallenge
//
// Created by Michael Ho on 5/30/20.
// Copyright © 2020 Michael Ho. All rights reserved.
//
// LeetCode: https://leetcode.com/problems/flood-fill/
class MaySolDay11 {
func floodFill(_ image: [[Int]], _ sr: Int, _ sc: Int, _ newColor: Int) -> [[Int]] {
... | 28.380952 | 100 | 0.494128 |
7e6f37b7f882863d339e0a504bceebce9b16dadb | 1,615 | lua | Lua | learn-corona-sdk-game-dev/chapter-11-code/listing_11-2.lua | portal-webstore/books | 689eb33ca0ef96d459e7cf3f3b15f35383b8c601 | [
"MIT"
] | null | null | null | learn-corona-sdk-game-dev/chapter-11-code/listing_11-2.lua | portal-webstore/books | 689eb33ca0ef96d459e7cf3f3b15f35383b8c601 | [
"MIT"
] | null | null | null | learn-corona-sdk-game-dev/chapter-11-code/listing_11-2.lua | portal-webstore/books | 689eb33ca0ef96d459e7cf3f3b15f35383b8c601 | [
"MIT"
] | null | null | null | function utils:showFPSAndMem()
local prevTime = 0;
local curTime = 0;
local dt = 0;
local fps = 60;
local mem = 0;
local frameCount = 0;
local avg = 0;
local slowest = 1000;
underlay = display.newRect(
0, display.contentHeight - 30, display.contentWidth, 34
);
underlay:setReferencePoint(disp... | 29.907407 | 79 | 0.609288 |
6d1ba81bb63be1e093efb54e3fe4cfa99bc93b69 | 621 | kt | Kotlin | mobikulOC/src/main/java/webkul/opencart/mobikul/adapterModel/DashboadMyOrderAdapterModel.kt | jinaldo/Boutiquey_Android | fe2513dab910dc471810fa37d6c01c848712c295 | [
"MIT"
] | null | null | null | mobikulOC/src/main/java/webkul/opencart/mobikul/adapterModel/DashboadMyOrderAdapterModel.kt | jinaldo/Boutiquey_Android | fe2513dab910dc471810fa37d6c01c848712c295 | [
"MIT"
] | null | null | null | mobikulOC/src/main/java/webkul/opencart/mobikul/adapterModel/DashboadMyOrderAdapterModel.kt | jinaldo/Boutiquey_Android | fe2513dab910dc471810fa37d6c01c848712c295 | [
"MIT"
] | null | null | null | package webkul.opencart.mobikul.adapterModel
import org.json.JSONArray
/**
* Webkul Software. *
* @author Webkul
* @Mobikul
* @OpencartMobikul
* @copyright Copyright (c) 2010-2018 Webkul Software Private Limited (https://webkul.com)
* @license https://store.webkul.com/license.html
*/
class DashboadMyOrderAdap... | 41.4 | 325 | 0.763285 |
9c3ccc171eca459d36a96d1ed9ce760fd2075c59 | 178 | js | JavaScript | utils/baseUrl.js | julien51/claim-memberships | d12d269823e3ea02719b2ccc60ab46399ca155d2 | [
"Unlicense"
] | null | null | null | utils/baseUrl.js | julien51/claim-memberships | d12d269823e3ea02719b2ccc60ab46399ca155d2 | [
"Unlicense"
] | null | null | null | utils/baseUrl.js | julien51/claim-memberships | d12d269823e3ea02719b2ccc60ab46399ca155d2 | [
"Unlicense"
] | null | null | null | let baseUrl = 'http://localhost:3000/'
if (process.env.NODE_ENV === 'production') {
baseUrl = "https://claim-ouvre-boite-membership.herokuapp.com/"
}
module.exports = baseUrl | 25.428571 | 65 | 0.707865 |
5a312f8379cdfa74787b85741a92148bf5b9bb2c | 1,066 | rs | Rust | examples/nop.rs | wareya/gammakit | 63d217f8ebc291844b8df69db12a03b9c906bef4 | [
"Apache-2.0"
] | 5 | 2019-01-26T00:59:17.000Z | 2020-08-04T03:56:24.000Z | examples/nop.rs | wareya/gammakit | 63d217f8ebc291844b8df69db12a03b9c906bef4 | [
"Apache-2.0"
] | null | null | null | examples/nop.rs | wareya/gammakit | 63d217f8ebc291844b8df69db12a03b9c906bef4 | [
"Apache-2.0"
] | null | null | null | #![allow(clippy::inconsistent_digit_grouping)]
extern crate gammakit;
use gammakit::*;
fn main() -> Result<(), String>
{
use std::time::Instant;
let mut interpreter = Interpreter::new(Parser::new_from_default()?);
interpreter.insert_default_bindings();
interpreter.restart_full_of_nops(100_000_000);
... | 29.611111 | 97 | 0.630394 |
868967581cada0414549c4dec3fd5bf6b6eb89d9 | 1,304 | lua | Lua | src/lune/base/AstInfo.lua | ifritJP/LuneScript | c7102f8a2c03736e4c567fb1d186e38ae0f8a5a1 | [
"MIT"
] | 26 | 2018-07-23T15:14:35.000Z | 2022-03-31T04:09:31.000Z | src/lune/base/AstInfo.lua | ifritJP/LuneScript | c7102f8a2c03736e4c567fb1d186e38ae0f8a5a1 | [
"MIT"
] | 2 | 2018-07-25T14:32:16.000Z | 2019-01-14T08:38:21.000Z | src/lune/base/AstInfo.lua | ifritJP/LuneScript | c7102f8a2c03736e4c567fb1d186e38ae0f8a5a1 | [
"MIT"
] | 2 | 2018-07-23T15:59:03.000Z | 2020-07-17T02:46:31.000Z | --lune/base/AstInfo.lns
local _moduleObj = {}
local __mod__ = '@lune.@base.@AstInfo'
local _lune = {}
if _lune6 then
_lune = _lune6
end
function _lune.loadModule( mod )
if __luneScript then
return __luneScript:loadModule( mod )
end
return require( mod )
end
if not _lune6 then
_lune6 = _lune
end
l... | 23.285714 | 69 | 0.73773 |
502e82be03efb2bb8eea28c2e755e35df80e244c | 662 | sql | SQL | queries/Insert-Certificates.sql | Sleepw4lker/CertificateToSQL | c531310ff438d39a4ef81b352e0bd8a5a864aa85 | [
"MIT"
] | null | null | null | queries/Insert-Certificates.sql | Sleepw4lker/CertificateToSQL | c531310ff438d39a4ef81b352e0bd8a5a864aa85 | [
"MIT"
] | null | null | null | queries/Insert-Certificates.sql | Sleepw4lker/CertificateToSQL | c531310ff438d39a4ef81b352e0bd8a5a864aa85 | [
"MIT"
] | null | null | null | INSERT IGNORE
INTO pscertdb.Certificates (
SubjectCN,
IssuerCN,
SerialNumber,
NotBefore,
NotAfter,
ski,
aki,
KeyAlgorithm,
KeyLength,
KeyUsage,
Thumbprint,
isCA,
CertificateTemplate,
CertificateTemplateMajorVersion,
CertificateTemplateMinorVersion,
Signat... | 17.891892 | 37 | 0.649547 |
28ee26b6afc592099e27358b95d0a58aac81ff23 | 43 | rb | Ruby | engines/admins/lib/admins.rb | dmytro/jp-banks.herokuapp.com | 6827cd6a1a1a768acb2835187e9c3fd67f9aaf0d | [
"MIT"
] | 1 | 2021-01-29T03:17:43.000Z | 2021-01-29T03:17:43.000Z | engines/admins/lib/admins.rb | dmytro/jp-banks.herokuapp.com | 6827cd6a1a1a768acb2835187e9c3fd67f9aaf0d | [
"MIT"
] | null | null | null | engines/admins/lib/admins.rb | dmytro/jp-banks.herokuapp.com | 6827cd6a1a1a768acb2835187e9c3fd67f9aaf0d | [
"MIT"
] | null | null | null | require "admins/engine"
module Admins
end
| 8.6 | 23 | 0.790698 |
4767fbf395a97c2064a6a6323d72587f0d1a6c25 | 959,778 | html | HTML | static/tags/javascript/index.html | itsprivate/dev | 845be7da1bc789ff92e7801f9c016459606b549b | [
"MIT"
] | null | null | null | static/tags/javascript/index.html | itsprivate/dev | 845be7da1bc789ff92e7801f9c016459606b549b | [
"MIT"
] | null | null | null | static/tags/javascript/index.html | itsprivate/dev | 845be7da1bc789ff92e7801f9c016459606b549b | [
"MIT"
] | 1 | 2021-12-02T07:32:15.000Z | 2021-12-02T07:32:15.000Z | <!DOCTYPE html><html lang="zh"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="ie=edge"/><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/><meta name="generator" content="Gatsby 3.14.6"/><style>.gatsby-image-wrapper{position:relative;overflow:hidden}.gatsby-... | 34,277.785714 | 305,998 | 0.749676 |
855df0744712eecf03376cd1679f04f0e1972d34 | 8,638 | js | JavaScript | dist/js/vendor/modernizr-3.6.0.js | cnochx/html5-boilerplate | 897ac1d5919c7d6a0c733db9735857f0bc76065f | [
"MIT"
] | 1 | 2020-09-25T14:55:29.000Z | 2020-09-25T14:55:29.000Z | dist/js/vendor/modernizr-3.6.0.js | cnochx/html5-boilerplate | 897ac1d5919c7d6a0c733db9735857f0bc76065f | [
"MIT"
] | null | null | null | dist/js/vendor/modernizr-3.6.0.js | cnochx/html5-boilerplate | 897ac1d5919c7d6a0c733db9735857f0bc76065f | [
"MIT"
] | null | null | null | /*! modernizr 3.6.0 (Custom Build) | MIT *
* https://modernizr.com/download/?-cssanimations-csscolumns-customelements-flexbox-history-picture-pointerevents-postmessage-sizes-srcset-webgl-websockets-webworkers-addtest-domprefixes-hasevent-mq-prefixedcssvalue-prefixes-setclasses-testallprops-testprop-teststyles !*/
!fun... | 2,879.333333 | 8,322 | 0.678166 |
677083952493abc6252a469412cb931ba98333d1 | 459 | sql | SQL | src/main/resources/db/migration/V2__add_payment_account.sql | pksaxena01/rd-professional-api | 43ff6436fee39e323489c1931f706806efe9c62b | [
"MIT"
] | null | null | null | src/main/resources/db/migration/V2__add_payment_account.sql | pksaxena01/rd-professional-api | 43ff6436fee39e323489c1931f706806efe9c62b | [
"MIT"
] | null | null | null | src/main/resources/db/migration/V2__add_payment_account.sql | pksaxena01/rd-professional-api | 43ff6436fee39e323489c1931f706806efe9c62b | [
"MIT"
] | null | null | null | CREATE TABLE payment_account
(
ID UUID,
PBA_NUMBER VARCHAR(255) NOT NULL UNIQUE,
ORGANISATION_ID UUID,
LAST_UPDATED TIMESTAMP NOT NULL,
CREATED TIMESTAMP NOT NULL,
PRIMARY KEY (ID),
FOREIGN KEY (ORGANISATION_ID) REFERENCES organisation (id)
);
ALTER TABLE professional_user
... | 27 | 71 | 0.738562 |
2f72ba28d9cb6ac5fe8a0b376754d94338a16de4 | 1,156 | rs | Rust | src/bin/parol/tools/follow.rs | jsinger67/parol | 80fd8e97d3659b3a3a0c6f87f8c089acd04e5f84 | [
"MIT"
] | 9 | 2021-11-04T00:57:09.000Z | 2022-03-09T16:15:21.000Z | src/bin/parol/tools/follow.rs | jsinger67/parol | 80fd8e97d3659b3a3a0c6f87f8c089acd04e5f84 | [
"MIT"
] | 10 | 2021-12-27T08:06:01.000Z | 2022-01-23T10:42:31.000Z | src/bin/parol/tools/follow.rs | jsinger67/parol | 80fd8e97d3659b3a3a0c6f87f8c089acd04e5f84 | [
"MIT"
] | 2 | 2021-12-30T05:34:04.000Z | 2022-01-22T17:52:24.000Z | use miette::{bail, Result};
use parol::analysis::follow_k;
use parol::analysis::FirstCache;
use parol::generators::generate_terminal_names;
use parol::{obtain_grammar_config, MAX_K};
use std::path::PathBuf;
/// Calculates the FOLLOW(k) sets for each non-terminal.
#[derive(clap::Parser)]
#[clap(name = "follow")]
pub st... | 30.421053 | 67 | 0.653979 |
5fb7f750500ecb778c81f94dd242f56126711d33 | 722 | h | C | iOS/10.0.2/Frameworks/UIKit.framework/UIKBTouchStateTask.h | onmyway133/Runtime-Headers | e9b80e7ab9103f37ad421ad6b8b58ee06369d21f | [
"MIT"
] | 30 | 2016-10-09T20:13:00.000Z | 2022-01-24T04:14:57.000Z | iOS/10.0.2/Frameworks/UIKit.framework/UIKBTouchStateTask.h | onmyway133/Runtime-Headers | e9b80e7ab9103f37ad421ad6b8b58ee06369d21f | [
"MIT"
] | null | null | null | iOS/10.0.2/Frameworks/UIKit.framework/UIKBTouchStateTask.h | onmyway133/Runtime-Headers | e9b80e7ab9103f37ad421ad6b8b58ee06369d21f | [
"MIT"
] | 7 | 2017-08-29T14:41:25.000Z | 2022-01-19T17:14:54.000Z | /* Generated by RuntimeBrowser
Image: /System/Library/Frameworks/UIKit.framework/UIKit
*/
@interface UIKBTouchStateTask : NSObject <NSCopying> {
bool _isBusy;
id /* block */ _task;
UIKBTouchState * _touchState;
}
@property (nonatomic) bool isBusy;
@property (nonatomic, readonly, copy) id /* block */... | 26.740741 | 72 | 0.696676 |
3e22bc8ae22e64d212b4d8ec4a767e5b3a266b21 | 8,188 | h | C | amf/public/src/components/ComponentsFFMPEG/FileMuxerFFMPEGImpl.h | shorttermmem/AMF | 43b5211be2d84056ea940b50a98758ec369afef6 | [
"MIT"
] | 1 | 2019-09-10T15:34:49.000Z | 2019-09-10T15:34:49.000Z | amf/public/src/components/ComponentsFFMPEG/FileMuxerFFMPEGImpl.h | shorttermmem/AMF | 43b5211be2d84056ea940b50a98758ec369afef6 | [
"MIT"
] | null | null | null | amf/public/src/components/ComponentsFFMPEG/FileMuxerFFMPEGImpl.h | shorttermmem/AMF | 43b5211be2d84056ea940b50a98758ec369afef6 | [
"MIT"
] | null | null | null | //
// Notice Regarding Standards. AMD does not provide a license or sublicense to
// any Intellectual Property Rights relating to any standards, including but not
// limited to any audio and/or video codec technologies such as MPEG-2, MPEG-4;
// AVC/H.264; HEVC/H.265; AAC decode/FFMPEG; AAC encode/FFMPEG; VC-1; a... | 42.42487 | 149 | 0.606619 |
2104689fc7f2ffa86469a776372852ba26bb8302 | 1,857 | rs | Rust | crate/state_play/src/system/state_id_event_system.rs | Lighty0410/autexousious | 99d142d8fdbf2076f3fd929f61b8140d47cf6b86 | [
"Apache-2.0",
"MIT"
] | 41 | 2020-03-13T04:45:03.000Z | 2022-01-17T18:13:09.000Z | crate/state_play/src/system/state_id_event_system.rs | Lighty0410/autexousious | 99d142d8fdbf2076f3fd929f61b8140d47cf6b86 | [
"Apache-2.0",
"MIT"
] | 61 | 2016-06-19T01:28:12.000Z | 2021-07-17T08:21:44.000Z | crate/state_play/src/system/state_id_event_system.rs | Lighty0410/autexousious | 99d142d8fdbf2076f3fd929f61b8140d47cf6b86 | [
"Apache-2.0",
"MIT"
] | 3 | 2020-03-21T21:53:36.000Z | 2021-01-30T01:10:55.000Z | use amethyst::{
ecs::{ReadExpect, System, World, Write},
shred::{ResourceId, SystemData},
shrev::EventChannel,
};
use derivative::Derivative;
use derive_new::new;
use log::debug;
use state_registry::{StateId, StateIdUpdateEvent};
use tracker::Prev;
/// Emits `StateIdUpdateEvent`s when the `StateId` changes... | 32.017241 | 93 | 0.632741 |
feb4363a02c7a9a4c0bb028597ed04facbbde4bf | 4,646 | lua | Lua | tabuleiro.lua | Mario-Nakazato/jogoVelhaMultiplayer | 00a5583b8223cdbef79dce5955a52d027fadae6d | [
"Apache-2.0"
] | 1 | 2022-02-26T03:37:02.000Z | 2022-02-26T03:37:02.000Z | tabuleiro.lua | Mario-Nakazato/jogoVelhaMultiplayer | 00a5583b8223cdbef79dce5955a52d027fadae6d | [
"Apache-2.0"
] | null | null | null | tabuleiro.lua | Mario-Nakazato/jogoVelhaMultiplayer | 00a5583b8223cdbef79dce5955a52d027fadae6d | [
"Apache-2.0"
] | null | null | null | --[[
Tabuleiro
# .
--]] require "palavra"
local function novo(x, y, tamanho, jogador)
local tabuleiro = {
x = x or 0,
y = y or 0,
tamanho = tamanho or 128,
jogador = jogador or "X",
jogada = 9,
venceu = nil,
quadrado = {
[1] = {"", "",... | 31.821918 | 158 | 0.522815 |
7a8c29de325e5d602dc5c2da11c890f01f1883c2 | 135,505 | rs | Rust | src/rs/src/skill.rs | serprex/openEtG | 56479bbb939df42a9eb1b04259825444f2d66637 | [
"MIT"
] | 48 | 2015-04-30T15:22:25.000Z | 2022-03-25T05:10:19.000Z | src/rs/src/skill.rs | serprex/openEtG | 56479bbb939df42a9eb1b04259825444f2d66637 | [
"MIT"
] | 20 | 2015-05-31T23:20:18.000Z | 2021-10-17T19:28:15.000Z | src/rs/src/skill.rs | serprex/openEtG | 56479bbb939df42a9eb1b04259825444f2d66637 | [
"MIT"
] | 18 | 2015-05-12T17:41:11.000Z | 2021-07-31T03:33:43.000Z | #![allow(non_camel_case_types)]
#![allow(non_upper_case_globals)]
use std::borrow::Cow;
use std::cmp;
use std::convert::TryFrom;
use std::iter::once;
use std::num::NonZeroU8;
use std::rc::Rc;
use crate::card;
use crate::etg;
use crate::game::{Entity, Flag, Fx, Game, Kind, Sfx, Stat, ThingData};
#[derive(Clone, Copy,... | 26.642745 | 91 | 0.558275 |
85cb83f5e1ea9025b23b1596a5c05d4451e89218 | 2,134 | c | C | AndroidTrustyOS/external/qemu/backends/rng.c | haitao52198/TrustyOS | 40ad09911aa12dd774fefcab9747c30da802d2c8 | [
"Apache-2.0"
] | 9 | 2017-11-10T15:54:02.000Z | 2021-04-15T20:57:29.000Z | AndroidTrustyOS/external/qemu/backends/rng.c | haitao52198/TrustyOS | 40ad09911aa12dd774fefcab9747c30da802d2c8 | [
"Apache-2.0"
] | null | null | null | AndroidTrustyOS/external/qemu/backends/rng.c | haitao52198/TrustyOS | 40ad09911aa12dd774fefcab9747c30da802d2c8 | [
"Apache-2.0"
] | 7 | 2018-01-08T02:53:32.000Z | 2020-10-15T13:01:46.000Z | /*
* QEMU Random Number Generator Backend
*
* Copyright IBM, Corp. 2012
*
* Authors:
* Anthony Liguori <aliguori@us.ibm.com>
*
* This work is licensed under the terms of the GNU GPL, version 2 or later.
* See the COPYING file in the top-level directory.
*/
#include "sysemu/rng.h"
#include "qapi/qmp/qerror... | 22.702128 | 78 | 0.631678 |
da8fde93de4deb62d5d4a723cacb479a5d5df549 | 84 | sql | SQL | modules/flowable-batch-service/src/main/resources/org/flowable/batch/service/db/upgrade/flowable.all.upgradestep.6600.to.6601.batch.sql | jiandiao/flowable-engine | 1bd26b2b2706fc334264603c69bd021c9152f244 | [
"Apache-2.0"
] | 5,250 | 2016-10-13T08:15:16.000Z | 2022-03-31T13:53:26.000Z | modules/flowable-batch-service/src/main/resources/org/flowable/batch/service/db/upgrade/flowable.all.upgradestep.6600.to.6601.batch.sql | jiandiao/flowable-engine | 1bd26b2b2706fc334264603c69bd021c9152f244 | [
"Apache-2.0"
] | 1,736 | 2016-10-13T17:03:10.000Z | 2022-03-31T19:27:39.000Z | modules/flowable-batch-service/src/main/resources/org/flowable/batch/service/db/upgrade/flowable.all.upgradestep.6600.to.6601.batch.sql | jiandiao/flowable-engine | 1bd26b2b2706fc334264603c69bd021c9152f244 | [
"Apache-2.0"
] | 2,271 | 2016-10-13T08:27:26.000Z | 2022-03-31T15:36:02.000Z | update ACT_GE_PROPERTY set VALUE_ = '6.6.0.1' where NAME_ = 'batch.schema.version';
| 42 | 83 | 0.738095 |
2a2146ad204e0f3876e246fd01cf779829c1ab04 | 2,331 | html | HTML | src/app/app.component.html | rosostolato/blackboard | f97711713dffa55e7759b7060f1597024796c298 | [
"MIT"
] | null | null | null | src/app/app.component.html | rosostolato/blackboard | f97711713dffa55e7759b7060f1597024796c298 | [
"MIT"
] | null | null | null | src/app/app.component.html | rosostolato/blackboard | f97711713dffa55e7759b7060f1597024796c298 | [
"MIT"
] | null | null | null | <!-- Navbar -->
<nav class="navbar navbar-expand-sm navbar-light bg-light border-bottom">
<div class="container">
<a class="navbar-brand text-success font-weight-bold" href="#">Blackboard</a>
<button class="navbar-toggler hidden-lg-up" type="button"
data-toggle="collapse" data-target="#collapsibleNavId"... | 35.318182 | 161 | 0.603175 |
4885f2a964fd850f23305fc3ba0eb7316fde6006 | 1,890 | lua | Lua | BallBlast/App42-Lua-API/Buddy.lua | UmarMukhtar0039/Ball-Blast-Game | 83d18ed0f7376585480f74b19b417e218d0006ea | [
"Apache-2.0"
] | null | null | null | BallBlast/App42-Lua-API/Buddy.lua | UmarMukhtar0039/Ball-Blast-Game | 83d18ed0f7376585480f74b19b417e218d0006ea | [
"Apache-2.0"
] | null | null | null | BallBlast/App42-Lua-API/Buddy.lua | UmarMukhtar0039/Ball-Blast-Game | 83d18ed0f7376585480f74b19b417e218d0006ea | [
"Apache-2.0"
] | null | null | null | --author Himanshu Sharma
local Buddy = {}
local userName = nil
local buddyName = nil
local groupName = nil
local ownerName = nil
local success = false
local message = nil
local json
local pointList = require("App42-Lua-API.Point")
local sendedOn = nil
local acceptedOn = nil
local messageId = nil
function Buddy:new()
... | 21.976744 | 48 | 0.769312 |
85879e1dcad6d7c32a8ad3ea6b6defa348376249 | 715 | js | JavaScript | public/ext/templates/admin-dashboard/app/data/qg/Line.js | smglab/zend-3-extjs-6-skeleton | b2e493e80238ab41beb214ade6fb0902b9302242 | [
"BSD-3-Clause"
] | null | null | null | public/ext/templates/admin-dashboard/app/data/qg/Line.js | smglab/zend-3-extjs-6-skeleton | b2e493e80238ab41beb214ade6fb0902b9302242 | [
"BSD-3-Clause"
] | null | null | null | public/ext/templates/admin-dashboard/app/data/qg/Line.js | smglab/zend-3-extjs-6-skeleton | b2e493e80238ab41beb214ade6fb0902b9302242 | [
"BSD-3-Clause"
] | 1 | 2019-10-01T10:08:51.000Z | 2019-10-01T10:08:51.000Z | Ext.define('Admin.data.qg.Line', {
extend: 'Admin.data.Simulated',
data: [
{
"xvalue": 0,
"yvalue": 250
},
{
"xvalue": 10,
"yvalue": 300
},
{
"xvalue": 20,
"yvalue": 270
},
... | 18.333333 | 36 | 0.261538 |
280e2d001fdf1cf38a7b5f3030b5ebd61010e4b5 | 183,601 | sql | SQL | Web/全球最厉害的博客系统/sql.sql | xiaolulwr/HXCTF-4th-Official | 5c76316f4e9d118bffbe025fde7bab53bbebed94 | [
"Apache-2.0"
] | 11 | 2019-04-10T16:29:27.000Z | 2021-01-14T20:34:32.000Z | Web/全球最厉害的博客系统/sql.sql | xiaolulwr/HXCTF-4th-Official | 5c76316f4e9d118bffbe025fde7bab53bbebed94 | [
"Apache-2.0"
] | null | null | null | Web/全球最厉害的博客系统/sql.sql | xiaolulwr/HXCTF-4th-Official | 5c76316f4e9d118bffbe025fde7bab53bbebed94 | [
"Apache-2.0"
] | 5 | 2020-09-30T09:41:29.000Z | 2021-06-30T09:53:54.000Z | create database blog;
use blog;
--
-- Table structure for table `article`
--
DROP TABLE IF EXISTS `article`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `article` (
`name` varchar(300) NOT NULL,
`path` varchar(400) NOT NULL,
`size` int... | 1,055.178161 | 175,312 | 0.761412 |
b2a9418b982b4c891ec5ca6c41dbcce2ceb8c684 | 756 | sql | SQL | database/svuviz/Appearances.sql | sedenardi/svuviz | 87c1916221ef714af279944bd9b331e5dd5ffbb7 | [
"MIT"
] | 1 | 2020-08-19T04:01:26.000Z | 2020-08-19T04:01:26.000Z | database/svuviz/Appearances.sql | sedenardi/svuviz | 87c1916221ef714af279944bd9b331e5dd5ffbb7 | [
"MIT"
] | null | null | null | database/svuviz/Appearances.sql | sedenardi/svuviz | 87c1916221ef714af279944bd9b331e5dd5ffbb7 | [
"MIT"
] | null | null | null | /*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Appearances` (
`AppearanceID` int(11) NOT NULL AUTO_INCREMENT,
`ActorID` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
`TitleID` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
`Characte... | 50.4 | 88 | 0.77381 |
e731212e08145b2ed50c248d854bb965f757e62d | 1,773 | js | JavaScript | src/services/metric.js | media-network/media-api | 292fbf8eb2c490dd2c39d376979b70f0dbde3ac5 | [
"MIT"
] | 1 | 2020-05-18T09:45:29.000Z | 2020-05-18T09:45:29.000Z | src/services/metric.js | media-network/media-api | 292fbf8eb2c490dd2c39d376979b70f0dbde3ac5 | [
"MIT"
] | null | null | null | src/services/metric.js | media-network/media-api | 292fbf8eb2c490dd2c39d376979b70f0dbde3ac5 | [
"MIT"
] | 1 | 2022-01-03T07:15:40.000Z | 2022-01-03T07:15:40.000Z | import elasticsearchService from 'services/elasticsearch'
import elasticsearchInfra from 'infrastructure/elasticsearch'
import config from 'infrastructure/config'
import mapping from 'mapping/metric'
const DATAPOINT_VERSION = config.elasticsearch.datapointVersion
const head = async (projectIdentifier, metricName, tim... | 21.107143 | 70 | 0.602933 |
65204673556284e6d6670bed61daa5eb343644d4 | 2,764 | py | Python | Attention.py | Pok0923/Time-series-forecasting-model | 58c0b1fd151b7fa73be323e8e1a6072876f06d10 | [
"MIT"
] | null | null | null | Attention.py | Pok0923/Time-series-forecasting-model | 58c0b1fd151b7fa73be323e8e1a6072876f06d10 | [
"MIT"
] | null | null | null | Attention.py | Pok0923/Time-series-forecasting-model | 58c0b1fd151b7fa73be323e8e1a6072876f06d10 | [
"MIT"
] | null | null | null | import tensorflow as tf
from tensorflow import keras
from tensorflow.keras import backend as K
from keras.models import Sequential,Model
from keras.layers import *
from keras.optimizers import SGD,Adam
class OurLayer(Layer):
def reuse(self, layer, *args, **kwargs):
if not layer.built:
if len(a... | 36.368421 | 71 | 0.608538 |
e1a007fd28102fdc05fb5ec336f33bcee5998926 | 2,116 | asm | Assembly | programs/oeis/333/A333297.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/333/A333297.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/333/A333297.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A333297: a(n) = Sum_{i=1..n, j=1..n, gcd(i,j)=1} i.
; 1,4,13,25,55,73,136,184,265,325,490,562,796,922,1102,1294,1702,1864,2377,2617,2995,3325,4084,4372,5122,5590,6319,6823,8041,8401,9796,10564,11554,12370,13630,14278,16276,17302,18706,19666,22126,22882,25591,26911,28531,30049,33292,34444,37531,39031,41479,43351,47485... | 75.571429 | 1,732 | 0.795369 |
2dc5ea4788cf182679dbaa33b7140311f5d2bd60 | 7,304 | rs | Rust | src/daemon/client/jsonrpc.rs | edouardparis/revault-gui | 9b21b64fe470d374e637566ea85c4c7e04a73696 | [
"BSD-3-Clause"
] | 25 | 2021-02-24T16:19:03.000Z | 2022-03-08T16:37:20.000Z | src/daemon/client/jsonrpc.rs | edouardparis/revault-gui | 9b21b64fe470d374e637566ea85c4c7e04a73696 | [
"BSD-3-Clause"
] | 246 | 2021-02-24T16:40:50.000Z | 2022-03-30T16:23:50.000Z | src/daemon/client/jsonrpc.rs | edouardparis/revault-gui | 9b21b64fe470d374e637566ea85c4c7e04a73696 | [
"BSD-3-Clause"
] | 5 | 2021-02-25T18:03:11.000Z | 2022-01-27T09:06:26.000Z | // Rust JSON-RPC Library
// Written by
// Andrew Poelstra <apoelstra@wpsoftware.net>
// Wladimir J. van der Laan <laanwj@gmail.com>
//
// To the extent possible under law, the author(s) have dedicated all
// copyright and related and neighboring rights to this software to
// the public domain worldwide. This so... | 28.53125 | 100 | 0.598713 |
43bab7e385887411598d7db2ff0decc838a769c7 | 3,060 | go | Go | main.go | alexandrepossebom/go-pfsense-backup | d81c4727fa598267ab5846f93abbea6737952c5e | [
"Apache-2.0"
] | null | null | null | main.go | alexandrepossebom/go-pfsense-backup | d81c4727fa598267ab5846f93abbea6737952c5e | [
"Apache-2.0"
] | null | null | null | main.go | alexandrepossebom/go-pfsense-backup | d81c4727fa598267ab5846f93abbea6737952c5e | [
"Apache-2.0"
] | null | null | null | package main
import (
"crypto/tls"
"flag"
"fmt"
"go-pfsense-backup/config"
"io"
"log"
"net/http"
"net/http/cookiejar"
"net/url"
"os"
"path/filepath"
"regexp"
"strings"
"time"
)
// Repository struct
type Repository struct {
jar http.CookieJar
conf config.FirewallItem
data url.Values
debug bool
}
... | 23.181818 | 107 | 0.651961 |
f031c64cd48b598cd3b616708c05819e454b8bc1 | 2,870 | py | Python | core/translator.py | bfu4/mdis | fac5ec078ffeaa9339df4b31b9b71140563f4f14 | [
"MIT"
] | 13 | 2021-05-17T06:38:50.000Z | 2022-03-27T15:39:57.000Z | core/translator.py | bfu4/mdis | fac5ec078ffeaa9339df4b31b9b71140563f4f14 | [
"MIT"
] | null | null | null | core/translator.py | bfu4/mdis | fac5ec078ffeaa9339df4b31b9b71140563f4f14 | [
"MIT"
] | null | null | null | from typing import List
from parser import parse_bytes, split_bytes_from_lines, get_bytes, parse_instruction_set, wrap_parsed_set
from reader import dump_file_hex_with_locs
class Translator:
"""
Class handling file translations from *.mpy to hex dumps and opcodes
"""
def __init__(self, file: str):
... | 28.7 | 105 | 0.591289 |
d54e7d2897900c067bba4b6fef8e940f289bb976 | 102 | sql | SQL | persistence/sql/migrations/sql/20210913095309000001_identity_recovery_tokens.mysql.down.sql | kainsk/kratos | d9c82173a1926e815dbb3528cf0c1595d976e84c | [
"Apache-2.0"
] | 77 | 2018-09-04T19:14:47.000Z | 2019-11-06T07:50:53.000Z | persistence/sql/migrations/sql/20210913095309000001_identity_recovery_tokens.mysql.down.sql | kainsk/kratos | d9c82173a1926e815dbb3528cf0c1595d976e84c | [
"Apache-2.0"
] | 72 | 2018-09-04T09:26:15.000Z | 2019-11-05T08:57:11.000Z | persistence/sql/migrations/sql/20210913095309000001_identity_recovery_tokens.mysql.down.sql | kainsk/kratos | d9c82173a1926e815dbb3528cf0c1595d976e84c | [
"Apache-2.0"
] | 11 | 2018-08-22T21:18:38.000Z | 2019-11-05T22:12:51.000Z | ALTER TABLE `identity_recovery_tokens` DROP FOREIGN KEY `identity_recovery_tokens_identity_id_fk_idx`; | 102 | 102 | 0.892157 |
b2df22a6002e061c7249b53a9c05a87dc4e272cf | 697 | py | Python | src/oca/models/__init__.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | src/oca/models/__init__.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | src/oca/models/__init__.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
# flake8: noqa
"""
Our City App
Our City App internal apis # noqa: E501
The version of the OpenAPI document: 0.0.1
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
# import models into model package
from oca.models.home_screen import HomeScre... | 30.304348 | 82 | 0.826399 |
bee267a97b7e18dbb268fb3115e6c8aafa816128 | 424 | html | HTML | minimal-examples-lowlevel/http-server/minimal-http-server-eventlib-foreign/mount-origin/index.html | horchi/libwebsockets | e1a73c42096a9f94617a25440501d7adc4abbd9f | [
"Apache-2.0"
] | 3,539 | 2015-01-02T18:31:36.000Z | 2022-03-30T09:56:47.000Z | minimal-examples-lowlevel/http-server/minimal-http-server-eventlib-foreign/mount-origin/index.html | horchi/libwebsockets | e1a73c42096a9f94617a25440501d7adc4abbd9f | [
"Apache-2.0"
] | 2,393 | 2015-01-06T08:43:52.000Z | 2022-03-31T14:09:09.000Z | minimal-examples-lowlevel/http-server/minimal-http-server-eventlib-foreign/mount-origin/index.html | horchi/libwebsockets | e1a73c42096a9f94617a25440501d7adc4abbd9f | [
"Apache-2.0"
] | 1,483 | 2015-01-04T11:33:23.000Z | 2022-03-30T17:45:00.000Z | <html>
<head>
<meta charset=utf-8 http-equiv="Content-Language" content="en"/>
</head>
<body>
<img src="libwebsockets.org-logo.svg">
<img src="strict-csp.svg"><br>
Hello from the <b>minimal http server eventlib foreign loop example</b>.
<br>
The timer messages in the console are coming from<br>
a time... | 24.941176 | 74 | 0.691038 |
133fb9cd09acaeb69ac95901c00632caf45c7f02 | 223 | sql | SQL | Portal/WebSystem/WCMS.Framework.SqlDabase/dbo/Tables/CalendarTemplateField.sql | dsalunga/mPortal | 3c727231e576c4ab0c3ace21cc412a2cf344974a | [
"MIT"
] | 1 | 2018-05-08T21:06:38.000Z | 2018-05-08T21:06:38.000Z | Portal/WebSystem/WCMS.Framework.SqlDabase/dbo/Tables/CalendarTemplateField.sql | dsalunga/mPortal | 3c727231e576c4ab0c3ace21cc412a2cf344974a | [
"MIT"
] | null | null | null | Portal/WebSystem/WCMS.Framework.SqlDabase/dbo/Tables/CalendarTemplateField.sql | dsalunga/mPortal | 3c727231e576c4ab0c3ace21cc412a2cf344974a | [
"MIT"
] | 3 | 2017-12-19T17:51:25.000Z | 2022-02-02T03:45:43.000Z | CREATE TABLE [dbo].[CalendarTemplateField] (
[Id] INT NOT NULL,
[FieldId] INT NOT NULL,
[TemplateId] INT NOT NULL,
CONSTRAINT [PK_LocalCalendarTemplateField] PRIMARY KEY CLUSTERED ([Id] ASC)
);
| 27.875 | 79 | 0.659193 |
12514bc266fa6320234f60f95fbb0783db027960 | 1,274 | h | C | sw/evset_construction/cache_utils.h | KULeuven-COSIC/Double-Trouble | c971b5915f59e1129ee684e1812d606b2b1c89bf | [
"MIT"
] | null | null | null | sw/evset_construction/cache_utils.h | KULeuven-COSIC/Double-Trouble | c971b5915f59e1129ee684e1812d606b2b1c89bf | [
"MIT"
] | null | null | null | sw/evset_construction/cache_utils.h | KULeuven-COSIC/Double-Trouble | c971b5915f59e1129ee684e1812d606b2b1c89bf | [
"MIT"
] | null | null | null | #ifndef CACHE_H
#define CACHE_H
// Processor name : Intel(R) Xeon(R) Platinum 8180
// Packages(sockets) : 2
// Cores : 56
// Processors(CPUs) : 112
// Cores per package : 28
// Threads per core : 2
// https://en.wikichip.org/wiki/intel/xeon_platinum/8180
// https://en.wikichip.org/wiki/intel/xeon_pla... | 28.311111 | 80 | 0.541601 |
cf051f2b1b631cea4c11034cd064861773bcef8a | 86 | css | CSS | vendor/bundle/ruby/2.5.0/gems/autoprefixer-rails-9.7.2/spec/app/app/assets/stylesheets/sass.css | watagit/sample_app | 007707f3851ee25ef652e6cae9f109946767a218 | [
"RSA-MD"
] | null | null | null | vendor/bundle/ruby/2.5.0/gems/autoprefixer-rails-9.7.2/spec/app/app/assets/stylesheets/sass.css | watagit/sample_app | 007707f3851ee25ef652e6cae9f109946767a218 | [
"RSA-MD"
] | 3 | 2019-11-28T15:25:10.000Z | 2020-03-04T19:38:00.000Z | vendor/bundle/ruby/2.5.0/gems/autoprefixer-rails-9.7.3/spec/app/app/assets/stylesheets/sass.css | watagit/sample_app | 007707f3851ee25ef652e6cae9f109946767a218 | [
"RSA-MD"
] | null | null | null | a {
-webkit-mask: none;
mask: none;
}
/*# sourceMappingURL=sass.css.map */ | 17.2 | 36 | 0.569767 |
6874604bef69d50d6d2b681b58dbcb9410763b5c | 7,188 | lua | Lua | jam/editor.lua | liquid600pgm/spamality | b787841a4c157121a730cf82799802ce2281a26a | [
"MIT"
] | 1 | 2021-06-23T12:14:26.000Z | 2021-06-23T12:14:26.000Z | jam/editor.lua | liquidev/spamality | b787841a4c157121a730cf82799802ce2281a26a | [
"MIT"
] | 6 | 2018-10-08T20:21:59.000Z | 2018-10-19T13:09:11.000Z | jam/editor.lua | liquidev/spamality | b787841a4c157121a730cf82799802ce2281a26a | [
"MIT"
] | null | null | null | require 'jam/map'
jam.states.__jam_editor__ = {
map = nil
}
do
local map = nil
local mode = 'tile-edit'
local play = false
local sel = Vector:new()
local tileset = 'main'
local tileid = 2
local entityid = 1
local selent = nil
local message = ''
local messageexpire = love.... | 36.673469 | 129 | 0.485531 |
c8cea841a984a4a9d3ce1e465c527cbcb0623e6f | 44,088 | rs | Rust | vulkano/src/sampler.rs | Mu-L/vulkano | 0cf68a3d25d2d6c6d25dd9e39944abe9cdb2106c | [
"Apache-2.0",
"MIT"
] | null | null | null | vulkano/src/sampler.rs | Mu-L/vulkano | 0cf68a3d25d2d6c6d25dd9e39944abe9cdb2106c | [
"Apache-2.0",
"MIT"
] | null | null | null | vulkano/src/sampler.rs | Mu-L/vulkano | 0cf68a3d25d2d6c6d25dd9e39944abe9cdb2106c | [
"Apache-2.0",
"MIT"
] | null | null | null | // Copyright (c) 2016 The vulkano developers
// Licensed under the Apache License, Version 2.0
// <LICENSE-APACHE or
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT
// license <LICENSE-MIT or https://opensource.org/licenses/MIT>,
// at your option. All files in the project carrying such
// notice may not be ... | 36.16735 | 146 | 0.602182 |
18e55762670b20fd3c277cda777b218bf355c0ac | 2,474 | kt | Kotlin | lomout-config/src/test/kotlin/net/pototskiy/apps/lomout/api/document/PoCDocumentTest.kt | pavru/lomout | 96b9715fab77ade907948527e1bfeb4c210ba988 | [
"Apache-2.0"
] | null | null | null | lomout-config/src/test/kotlin/net/pototskiy/apps/lomout/api/document/PoCDocumentTest.kt | pavru/lomout | 96b9715fab77ade907948527e1bfeb4c210ba988 | [
"Apache-2.0"
] | 44 | 2019-03-18T06:42:07.000Z | 2019-09-01T11:31:50.000Z | lomout-config/src/test/kotlin/net/pototskiy/apps/lomout/api/document/PoCDocumentTest.kt | pavru/lomout | 96b9715fab77ade907948527e1bfeb4c210ba988 | [
"Apache-2.0"
] | 1 | 2019-05-04T01:52:21.000Z | 2019-05-04T01:52:21.000Z | /*
* 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 ... | 38.061538 | 107 | 0.696443 |
222b1d7dfd939a3b712531f81f29bf270e238f19 | 8,833 | swift | Swift | FloatingActionView/FloatingActionViewHintView.swift | h1d3mun3-74k4h45h1/FloatingActionView | 287747b4a89a7395cd5a2d3222c2d015ee8290ee | [
"MIT"
] | null | null | null | FloatingActionView/FloatingActionViewHintView.swift | h1d3mun3-74k4h45h1/FloatingActionView | 287747b4a89a7395cd5a2d3222c2d015ee8290ee | [
"MIT"
] | null | null | null | FloatingActionView/FloatingActionViewHintView.swift | h1d3mun3-74k4h45h1/FloatingActionView | 287747b4a89a7395cd5a2d3222c2d015ee8290ee | [
"MIT"
] | null | null | null | //
// FloatingActionViewHintView.swift
// FloatingActionViewExample
//
// Created by hidemune on 12/20/18.
// Copyright © 2018 Hidemune Takahashi. All rights reserved.
//
import UIKit
import RoundCornerView
class FloatingActionViewHintView: UIView {
enum DrawMode {
case fillAll
case fillAndBor... | 27.095092 | 99 | 0.563229 |