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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
db6bd69d9c985a26654bb24d30f5325ad41f533c | 778 | php | PHP | module/ZourceUser/src/ZourceUser/TaskService/Service/PermissionsFactory.php | zource/zource | 207d095e7452aadbf5b14d545ed453bf4b8f7778 | [
"RSA-MD"
] | 1 | 2016-04-30T02:49:49.000Z | 2016-04-30T02:49:49.000Z | module/ZourceUser/src/ZourceUser/TaskService/Service/PermissionsFactory.php | zource/zource | 207d095e7452aadbf5b14d545ed453bf4b8f7778 | [
"RSA-MD"
] | null | null | null | module/ZourceUser/src/ZourceUser/TaskService/Service/PermissionsFactory.php | zource/zource | 207d095e7452aadbf5b14d545ed453bf4b8f7778 | [
"RSA-MD"
] | 1 | 2019-12-15T20:38:20.000Z | 2019-12-15T20:38:20.000Z | <?php
/**
* This file is part of Zource. (https://github.com/zource/)
*
* @link https://github.com/zource/zource for the canonical source repository
* @copyright Copyright (c) 2005-2016 Zource. (https://github.com/zource/)
* @license https://raw.githubusercontent.com/zource/zource/master/LICENSE MIT
*/
namespace... | 29.923077 | 78 | 0.739075 |
b361b2cf0e7e9fe18efebbc5dd17ef328ebb1b63 | 3,646 | py | Python | ml/gbdt/XgboostDemo.py | lj72808up/AI_handcraft | 31c48b91eccf2a64a9fb2a24f1829045c1252358 | [
"Apache-2.0"
] | null | null | null | ml/gbdt/XgboostDemo.py | lj72808up/AI_handcraft | 31c48b91eccf2a64a9fb2a24f1829045c1252358 | [
"Apache-2.0"
] | null | null | null | ml/gbdt/XgboostDemo.py | lj72808up/AI_handcraft | 31c48b91eccf2a64a9fb2a24f1829045c1252358 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import pandas as pd
import numpy as np
import xgboost as xgb
def getData():
data = pd.read_csv("../../datasets/census.csv")
income_raw = data['income']
features_raw = data.drop('income', axis=1)
# 独热编码,只取收入大于50k作为输出字段
income = pd.get_dummies(income_raw).iloc[:, 1:]
# ... | 36.46 | 139 | 0.687054 |
b07e2566915be2e011fe1f35222fbd0ceed58b08 | 467 | py | Python | 9.py | manuelsousa7/ia-labs | 81a7cda3478e174ca2c9dad40b4ef68471931004 | [
"MIT"
] | null | null | null | 9.py | manuelsousa7/ia-labs | 81a7cda3478e174ca2c9dad40b4ef68471931004 | [
"MIT"
] | null | null | null | 9.py | manuelsousa7/ia-labs | 81a7cda3478e174ca2c9dad40b4ef68471931004 | [
"MIT"
] | null | null | null | def Agente_corredor_ex_9():
def __init__(self):
self.cur = 1
def invoca(self):
pos = 0
if pos == 0:
if(self.cur == 0):
return "fica parado"
if(self.cur > pos and self.cur > 1):
self.cur = self.cur - 1
return "andar-"
if... | 24.578947 | 44 | 0.475375 |
2c30ecd251e15b007d0d5dbc63bdfa346a6c3c99 | 301 | lua | Lua | MMOCoreORB/bin/scripts/object/tangible/furniture/flooring/tile/frn_flooring_tile_s31.lua | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 18 | 2017-02-09T15:36:05.000Z | 2021-12-21T04:22:15.000Z | MMOCoreORB/bin/scripts/object/tangible/furniture/flooring/tile/frn_flooring_tile_s31.lua | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 61 | 2016-12-30T21:51:10.000Z | 2021-12-10T20:25:56.000Z | MMOCoreORB/bin/scripts/object/tangible/furniture/flooring/tile/frn_flooring_tile_s31.lua | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 71 | 2017-01-01T05:34:38.000Z | 2022-03-29T01:04:00.000Z | object_tangible_furniture_flooring_tile_frn_flooring_tile_s31 = object_tangible_furniture_flooring_tile_shared_frn_flooring_tile_s31:new {
}
ObjectTemplates:addTemplate(object_tangible_furniture_flooring_tile_frn_flooring_tile_s31, "object/tangible/furniture/flooring/tile/frn_flooring_tile_s31.iff")
| 75.25 | 159 | 0.923588 |
36b4356783b70528dbf91f8b8adbc453cf7138de | 7,005 | swift | Swift | ios/Classes/SwiftSecureApplicationPlugin.swift | stevenspiel/secure_application | cb99a59b1f34a9464ab6dd179915fe63329014e7 | [
"MIT"
] | null | null | null | ios/Classes/SwiftSecureApplicationPlugin.swift | stevenspiel/secure_application | cb99a59b1f34a9464ab6dd179915fe63329014e7 | [
"MIT"
] | null | null | null | ios/Classes/SwiftSecureApplicationPlugin.swift | stevenspiel/secure_application | cb99a59b1f34a9464ab6dd179915fe63329014e7 | [
"MIT"
] | null | null | null | import Flutter
import UIKit
public class SwiftSecureApplicationPlugin: NSObject, FlutterPlugin {
var secured = false;
var opacity: CGFloat = 0.2;
var useLaunchImage: Bool = false;
var backgroundColor: UIColor = UIColor.white;
var backgroundTask: UIBackgroundTaskIdentifier!
internal let re... | 40.028571 | 116 | 0.591006 |
c96a020c00b288df0ed52869272721b1b9e2afca | 340 | ts | TypeScript | module/creative/homepage/homepage.centerpanel.component.d.ts | CharityDynamics/amexio-ng-extensions | 639d55bd4e7eaa39f01710e939f211afc4c92213 | [
"Apache-2.0"
] | null | null | null | module/creative/homepage/homepage.centerpanel.component.d.ts | CharityDynamics/amexio-ng-extensions | 639d55bd4e7eaa39f01710e939f211afc4c92213 | [
"Apache-2.0"
] | null | null | null | module/creative/homepage/homepage.centerpanel.component.d.ts | CharityDynamics/amexio-ng-extensions | 639d55bd4e7eaa39f01710e939f211afc4c92213 | [
"Apache-2.0"
] | null | null | null | import { OnInit } from '@angular/core';
import { DeviceQueryService } from './../../services/device/device.query.service';
export declare class AmexioHomePageCenterPanelComponent implements OnInit {
matchMediaService: DeviceQueryService;
type: string;
constructor(matchMediaService: DeviceQueryService);
... | 37.777778 | 82 | 0.758824 |
c67ca6fa80c24b53f57ba9a070e4a09304e59bfd | 10,805 | py | Python | parsers/occtonet.py | hybridcattt/electricitymap-contrib | 16178c39c4130fa3ef0c125ebfba58d3033fa34b | [
"MIT"
] | 1 | 2021-05-19T09:00:58.000Z | 2021-05-19T09:00:58.000Z | parsers/occtonet.py | hybridcattt/electricitymap-contrib | 16178c39c4130fa3ef0c125ebfba58d3033fa34b | [
"MIT"
] | null | null | null | parsers/occtonet.py | hybridcattt/electricitymap-contrib | 16178c39c4130fa3ef0c125ebfba58d3033fa34b | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# coding=utf-8
import logging
import datetime
import pandas as pd
# The arrow library is used to handle datetimes
import arrow
# The request library is used to fetch content through HTTP
import requests
from io import StringIO
# Abbreviations:
# JP-HKD : Hokkaido
# JP-TH : Tohoku (incl. Niigat... | 38.045775 | 132 | 0.628413 |
661682d22f5d95e0fb78f57c0ef5b1bf46bd9696 | 28 | py | Python | src/__init__.py | klein203/Python-Learning | 98ac61eb439e516198dd9cdf0dd9255e2541ea9b | [
"MIT"
] | null | null | null | src/__init__.py | klein203/Python-Learning | 98ac61eb439e516198dd9cdf0dd9255e2541ea9b | [
"MIT"
] | null | null | null | src/__init__.py | klein203/Python-Learning | 98ac61eb439e516198dd9cdf0dd9255e2541ea9b | [
"MIT"
] | null | null | null | '''
@author: xusheng
'''
| 7 | 17 | 0.464286 |
fce6a69fe01d034aac459a219ac935f705d584f6 | 41,355 | lua | Lua | app/utils.lua | stepan-mitkin/drakon.tech | 9ebf8fbf0bfe208b8f282fe0dec3670cebdfe85e | [
"Unlicense"
] | 30 | 2020-04-07T02:25:34.000Z | 2022-03-19T13:49:47.000Z | app/utils.lua | stepan-mitkin/drakon.tech | 9ebf8fbf0bfe208b8f282fe0dec3670cebdfe85e | [
"Unlicense"
] | 20 | 2020-04-05T05:48:17.000Z | 2021-12-01T10:45:52.000Z | app/utils.lua | stepan-mitkin/drakon.tech | 9ebf8fbf0bfe208b8f282fe0dec3670cebdfe85e | [
"Unlicense"
] | 17 | 2020-04-08T20:58:26.000Z | 2022-03-19T13:49:56.000Z | -- Autogenerated with DRAKON Editor 1.33
local table = table
local string = string
local pairs = pairs
local ipairs = ipairs
local type = type
local tostring = tostring
local tonumber = tonumber
local error = error
local print = print
-- configuration
local global_cfg = global_cfg
local price_cfg = price_cfg
local... | 22.975 | 112 | 0.53667 |
e237c4a0b8429b19e54a06ecba180ffb1faee3b6 | 605 | py | Python | setup.py | NikitaMelnikov/open-api-python-client | c45579b9fdb3c4e62c45590fb6b2f12321596b2a | [
"Unlicense"
] | 102 | 2019-09-27T12:18:37.000Z | 2022-02-02T21:01:44.000Z | setup.py | NikitaMelnikov/open-api-python-client | c45579b9fdb3c4e62c45590fb6b2f12321596b2a | [
"Unlicense"
] | 27 | 2019-12-05T13:19:44.000Z | 2021-12-20T08:17:28.000Z | setup.py | NikitaMelnikov/open-api-python-client | c45579b9fdb3c4e62c45590fb6b2f12321596b2a | [
"Unlicense"
] | 23 | 2019-10-03T13:17:55.000Z | 2022-01-30T06:43:02.000Z | # coding: utf-8
from setuptools import setup, find_packages
NAME = "tinkoff-invest-openapi-client"
VERSION = "0.0.7"
REQUIRES = [
"websocket_client == 0.56.0",
"certifi >= 14.05.14",
"six >= 1.10",
"python_dateutil >= 2.5.3",
"setuptools >= 21.0.0",
"urllib3 >= 1.15.1",
"pytz == 2019.3"
]... | 20.862069 | 48 | 0.626446 |
a7db291c73abaaf0f18548d53f010217ead0937f | 836 | asm | Assembly | oeis/022/A022036.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/022/A022036.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/022/A022036.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A022036: Define the sequence T(a_0,a_1) by a_{n+2} is the greatest integer such that a_{n+2}/a_{n+1}<a_{n+1}/a_n for n >= 0. This is T(7,43).
; Submitted by Jon Maiga
; 7,43,264,1620,9940,60989,374211,2296051,14087908,86439348,530366956,3254178965,19966705347,122509956183,751685824132,4612127828672,28298688661016,173... | 39.809524 | 494 | 0.77512 |
b8abb0396479c2f2d3ee3cfbdaa0404a997b53d9 | 93 | h | C | crypto_hash.h | cyph/mceliece.js | b0aed2b632fba91e0cb05a02faef0367d9f6fbf1 | [
"BSD-2-Clause"
] | 7 | 2016-09-25T17:09:18.000Z | 2020-01-05T21:52:07.000Z | crypto_hash.h | cyph/mceliece.js | b0aed2b632fba91e0cb05a02faef0367d9f6fbf1 | [
"BSD-2-Clause"
] | 1 | 2018-12-08T14:38:10.000Z | 2019-09-10T14:15:29.000Z | crypto_hash.h | cyph/mceliece.js | b0aed2b632fba91e0cb05a02faef0367d9f6fbf1 | [
"BSD-2-Clause"
] | 3 | 2017-03-27T00:01:12.000Z | 2021-03-24T21:37:55.000Z | int crypto_hash(
unsigned char *out,
const unsigned char *in,
unsigned long long inlen
);
| 15.5 | 25 | 0.741935 |
1aaa336f68b8c7a2bd71a54054446086dee3a643 | 8,039 | py | Python | mongo_old/carrotmongo.py | andreiliphd/Carrot | d949d25de384ebce243e93e65dd692f59afd7c90 | [
"MIT"
] | 6 | 2019-07-11T17:12:27.000Z | 2019-09-16T16:06:07.000Z | mongo_old/carrotmongo.py | andreiliphd/Carrot | d949d25de384ebce243e93e65dd692f59afd7c90 | [
"MIT"
] | null | null | null | mongo_old/carrotmongo.py | andreiliphd/Carrot | d949d25de384ebce243e93e65dd692f59afd7c90 | [
"MIT"
] | 1 | 2020-04-20T18:36:47.000Z | 2020-04-20T18:36:47.000Z | import mongoengine as mo
import datetime
import pickle
import os
import glob
import numpy as np
try:
from configcarrot import *
except ImportError:
login = '' # Please provide your login to MongoDB
password = '' # Please provide your password to MongoDB
host = '' # Please provide your host name to Mong... | 35.414097 | 90 | 0.511133 |
38a2693edb0f969032f85ff3a7970e9fb16d081c | 1,518 | php | PHP | application/views/layouts/main_dashboard.php | changuarin/project2 | cc60b60ad7f133f0aacc4c8315102a25ab59263d | [
"MIT"
] | null | null | null | application/views/layouts/main_dashboard.php | changuarin/project2 | cc60b60ad7f133f0aacc4c8315102a25ab59263d | [
"MIT"
] | null | null | null | application/views/layouts/main_dashboard.php | changuarin/project2 | cc60b60ad7f133f0aacc4c8315102a25ab59263d | [
"MIT"
] | null | null | null | <!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- Meta, title, CSS, favicons, etc. -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
... | 39.947368 | 128 | 0.627141 |
f9ccd1f3367a7f74960b3b5eb3c8142e23dc718a | 524 | asm | Assembly | programs/oeis/005/A005090.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/005/A005090.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/005/A005090.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A005090: Number of primes == 2 mod 3 dividing n.
; 0,1,0,1,1,1,0,1,0,2,1,1,0,1,1,1,1,1,0,2,0,2,1,1,1,1,0,1,1,2,0,1,1,2,1,1,0,1,0,2,1,1,0,2,1,2,1,1,0,2,1,1,1,1,2,1,0,2,1,2,0,1,0,1,1,2,0,2,1,2,1,1,0,1,1,1,1,1,0,2,0,2,1,1,2,1,1,2,1,2,0,2,0,2,1,1,0,1,1,2
add $0,1
mov $2,2
mov $3,$0
mov $4,$0
lpb $3
mov $5,$4
lpb $5
... | 18.714286 | 201 | 0.469466 |
a31e774d845ce7263ed9557df4efbcb97e7ca7ec | 1,210 | java | Java | src/com/facebook/buck/jvm/java/abi/StubJarResourceEntry.java | fkorotkov/buck | 4d63790ceda1028281600af9cf75153ccb92a5f5 | [
"Apache-2.0"
] | 1 | 2018-02-28T06:26:56.000Z | 2018-02-28T06:26:56.000Z | src/com/facebook/buck/jvm/java/abi/StubJarResourceEntry.java | fkorotkov/buck | 4d63790ceda1028281600af9cf75153ccb92a5f5 | [
"Apache-2.0"
] | 1 | 2018-12-10T15:54:22.000Z | 2018-12-10T19:30:37.000Z | src/com/facebook/buck/jvm/java/abi/StubJarResourceEntry.java | fkorotkov/buck | 4d63790ceda1028281600af9cf75153ccb92a5f5 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2017-present Facebook, 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... | 30.25 | 76 | 0.742149 |
f88921a4aaa50797c28c5c59e547bb8b5f75ff8b | 1,626 | h | C | SDKFrameworks/NOSSDK/Storage/NOSUploadOption.h | nemOoO-wang/MMLive | 01753b5ba72138e4d3f3d6d8d397a40b34aef062 | [
"MIT"
] | 5 | 2018-02-27T07:06:17.000Z | 2020-12-24T03:44:28.000Z | NOSSDK/Storage/NOSUploadOption.h | NetEase-Object-Storage/nos-ios-sdk | 10178d3c90cc9c8eea41c81ed14aa18e11103284 | [
"MIT"
] | null | null | null | NOSSDK/Storage/NOSUploadOption.h | NetEase-Object-Storage/nos-ios-sdk | 10178d3c90cc9c8eea41c81ed14aa18e11103284 | [
"MIT"
] | null | null | null | //
// NOSUploadOption.h
// NOSSDK
//
// Created by hzzhenghuabin on 2015/1/11.
// Copyright (c) 2015年 NetEase. All rights reserved.
//
#import <Foundation/Foundation.h>
/**
* 上传进度回调函数
*
* @param key 上传时指定的存储key
* @param percent 进度百分比
*/
typedef void (^NOSUpProgressHandler)(NSStri... | 21.394737 | 71 | 0.627921 |
98072800023e6c145ca54c06505acd0fcaa7cdd1 | 232 | py | Python | config.py | caiopo/reddit-link-bot | 5e3ec64f8f1cedb5164d20b7b2cbbdec2338bd82 | [
"MIT"
] | null | null | null | config.py | caiopo/reddit-link-bot | 5e3ec64f8f1cedb5164d20b7b2cbbdec2338bd82 | [
"MIT"
] | 1 | 2018-06-13T14:45:51.000Z | 2018-06-13T14:47:31.000Z | config.py | caiopo/reddit-link-bot | 5e3ec64f8f1cedb5164d20b7b2cbbdec2338bd82 | [
"MIT"
] | 1 | 2018-06-11T06:28:31.000Z | 2018-06-11T06:28:31.000Z | from os import environ
# the token you get from botfather
BOT_TOKEN = environ['BOT_TOKEN']
APP_NAME = environ['APP_NAME']
PORT = int(environ.get('PORT', 5000))
WEBHOOK_URL = 'https://' + APP_NAME + '.herokuapp.com/' + BOT_TOKEN
| 21.090909 | 67 | 0.706897 |
4b850fca47a28b4d93716589ba65ebe4fa6022dd | 1,780 | kt | Kotlin | src/main/kotlin/algorithms/DeBruijnGraphFromKmers.kt | jimandreas/stepikBioinformaticsCourse | c378d2976ddc4a772fa68f7f17d3c8b224807be8 | [
"Apache-2.0"
] | null | null | null | src/main/kotlin/algorithms/DeBruijnGraphFromKmers.kt | jimandreas/stepikBioinformaticsCourse | c378d2976ddc4a772fa68f7f17d3c8b224807be8 | [
"Apache-2.0"
] | null | null | null | src/main/kotlin/algorithms/DeBruijnGraphFromKmers.kt | jimandreas/stepikBioinformaticsCourse | c378d2976ddc4a772fa68f7f17d3c8b224807be8 | [
"Apache-2.0"
] | null | null | null | @file:Suppress("unused")
package algorithms
/**
* from a [d] list of kmer strings,
* produce a map of kmer to kmer connections
*
* Example:
val input = listOf(
"GAGG",
"CAGG",
"GGGG",
"GGGA",
"CAGG",
"AGGG",
"GGAG"
)
output: (as a map of string to list of strings)
AGG -> GGG
CAG -> AGG,AGG
GAG -> AGG
GGA -> ... | 23.116883 | 79 | 0.625281 |
e2a555db8d7cf9ac42df8cdcb1a96397251f7187 | 933 | py | Python | leetcode/933.py | GihwanKim/Baekjoon | 52eb2bf80bb1243697858445e5b5e2d50d78be4e | [
"MIT"
] | null | null | null | leetcode/933.py | GihwanKim/Baekjoon | 52eb2bf80bb1243697858445e5b5e2d50d78be4e | [
"MIT"
] | null | null | null | leetcode/933.py | GihwanKim/Baekjoon | 52eb2bf80bb1243697858445e5b5e2d50d78be4e | [
"MIT"
] | null | null | null | """
File: 933.py
Title: Number of Recent Calls
Difficulty: Easy
URL: https://leetcode.com/problems/number-of-recent-calls/
"""
import bisect
import unittest
class RecentCounter:
def __init__(self):
self.requests = []
def ping(self, t: int) -> int:
self.requests.append(t)
... | 21.697674 | 62 | 0.565916 |
9aa107a2dd974d929da416818a778f28e7235e7d | 372 | py | Python | Exercicios/ex063.py | vincytarsis/Python | f98005917486bc191c85c971ec8e2c71fb9dd4c7 | [
"MIT"
] | null | null | null | Exercicios/ex063.py | vincytarsis/Python | f98005917486bc191c85c971ec8e2c71fb9dd4c7 | [
"MIT"
] | null | null | null | Exercicios/ex063.py | vincytarsis/Python | f98005917486bc191c85c971ec8e2c71fb9dd4c7 | [
"MIT"
] | null | null | null | """ Escreva um programa que leia um número n inteiro qualquer e mostre na tela os n primeiros elementos de
uma sequência de Fibonacci. Ex: 0 → 1 → 1 → 2 → 3 → 5 → 8 """
n = int(input('Entre com um número:'))
a = 0
b = 1
c = 0
count = 1
print('Sequencia de Fibonacci: ', end=' ')
while count <= n:
print(c, end=' ... | 19.578947 | 106 | 0.575269 |
587659843cfa27303309ca1f74d0b6ea2c09c967 | 418 | css | CSS | src/AntiSaccades/AntiSaccadesExercise/AntiSaccadesExercise.css | TYohoJr/eyeTracker | cba849b45ac9d1afb908508ec4bc870d752ab136 | [
"MIT"
] | null | null | null | src/AntiSaccades/AntiSaccadesExercise/AntiSaccadesExercise.css | TYohoJr/eyeTracker | cba849b45ac9d1afb908508ec4bc870d752ab136 | [
"MIT"
] | null | null | null | src/AntiSaccades/AntiSaccadesExercise/AntiSaccadesExercise.css | TYohoJr/eyeTracker | cba849b45ac9d1afb908508ec4bc870d752ab136 | [
"MIT"
] | null | null | null | #antisaccades-center-dot {
height: 30px;
width: 30px;
border-radius: 50%;
position: fixed;
top: 50%;
left: 50%;
}
#antisaccades-right-dot {
height: 30px;
width: 30px;
border-radius: 50%;
position: absolute;
top: 50%;
left: 60%;
}
#antisaccades-left-dot {
height: 30p... | 16.076923 | 26 | 0.566986 |
38b00d6cb48bf1ffae5477f68be874ffeab6826f | 1,665 | php | PHP | src/Message/Query/QueryResponse.php | dmgctrlr/omnipay-nmi | 9396e86ebc539e21b0db4688c63239d810d697dc | [
"MIT"
] | null | null | null | src/Message/Query/QueryResponse.php | dmgctrlr/omnipay-nmi | 9396e86ebc539e21b0db4688c63239d810d697dc | [
"MIT"
] | null | null | null | src/Message/Query/QueryResponse.php | dmgctrlr/omnipay-nmi | 9396e86ebc539e21b0db4688c63239d810d697dc | [
"MIT"
] | null | null | null | <?php
namespace Omnipay\NMI\Message\Query;
use Omnipay\Common\Message\RequestInterface;
use Omnipay\Common\Message\AbstractResponse;
/**
* NMI Direct Post Response
*/
class QueryResponse extends AbstractResponse
{
public function __construct(RequestInterface $request, $data)
{
$this->request = $req... | 20.555556 | 82 | 0.607207 |
0a4507b55d966dd34dbc7b30c428a4f085ba9084 | 670 | cs | C# | GameEngine/Mathematic/ComplexMath.cs | jwdeveloper/game_console | 3acd0c227926bcc67d6c78cb6d39cb168ec4def6 | [
"MIT"
] | null | null | null | GameEngine/Mathematic/ComplexMath.cs | jwdeveloper/game_console | 3acd0c227926bcc67d6c78cb6d39cb168ec4def6 | [
"MIT"
] | null | null | null | GameEngine/Mathematic/ComplexMath.cs | jwdeveloper/game_console | 3acd0c227926bcc67d6c78cb6d39cb168ec4def6 | [
"MIT"
] | null | null | null | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GameEngine
{
public class ComplexMath
{
public static int GetDistnace(Vector2 p1, Vector2 p2) => (int)Math.Sqrt((p1.x - p2.x) * (p1.x - p2.x) + (p1.y - p2.y) * (p1.y - p2.y));... | 22.333333 | 143 | 0.592537 |
5d3cf98ee50d07bafbbeca6c2cee3e9a6d3a3570 | 3,394 | cpp | C++ | dev/Code/Framework/AzQtComponents/AzQtComponents/Gallery/SliderComboPage.cpp | brianherrera/lumberyard | f85344403c1c2e77ec8c75deb2c116e97b713217 | [
"AML"
] | 1,738 | 2017-09-21T10:59:12.000Z | 2022-03-31T21:05:46.000Z | dev/Code/Framework/AzQtComponents/AzQtComponents/Gallery/SliderComboPage.cpp | ArchitectureStudios/lumberyard | f85344403c1c2e77ec8c75deb2c116e97b713217 | [
"AML"
] | 427 | 2017-09-29T22:54:36.000Z | 2022-02-15T19:26:50.000Z | dev/Code/Framework/AzQtComponents/AzQtComponents/Gallery/SliderComboPage.cpp | ArchitectureStudios/lumberyard | f85344403c1c2e77ec8c75deb2c116e97b713217 | [
"AML"
] | 671 | 2017-09-21T08:04:01.000Z | 2022-03-29T14:30:07.000Z | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 35.726316 | 134 | 0.755451 |
070680ba0caf9af24fe45dbe4ef4b26083313fbe | 1,480 | html | HTML | _includes/introduction.html | phui/phui.github.io | 165173101ec43d12ac96fa101a51a44318f9f914 | [
"MIT"
] | null | null | null | _includes/introduction.html | phui/phui.github.io | 165173101ec43d12ac96fa101a51a44318f9f914 | [
"MIT"
] | 2 | 2020-03-01T15:59:58.000Z | 2020-03-01T19:30:13.000Z | _includes/introduction.html | phui/phui.github.io | 165173101ec43d12ac96fa101a51a44318f9f914 | [
"MIT"
] | null | null | null | <h2 {% if site.style == 'dark' %}class="text-white"{% endif %}>About Me</h2>
<br/>
<p class="f4 mb-4" align="justify">
I am a Ph.D. student in the Informatics program at Indiana University Luddy
School of Informatics, Computing, and Engineering, working as part of the
<a target="_blank" href="https://osome.iuni.iu.edu/... | 46.25 | 178 | 0.739865 |
9118bb1e025cb2b6edea76aec7259d673c39d325 | 924 | dart | Dart | test/nested_binding_test.dart | MiCHiLU/polymer.dart | 164a558cca9def53e0bada37de058108d2b7acba | [
"BSD-3-Clause"
] | 1 | 2015-02-10T03:50:43.000Z | 2015-02-10T03:50:43.000Z | test/nested_binding_test.dart | MiCHiLU/polymer.dart | 164a558cca9def53e0bada37de058108d2b7acba | [
"BSD-3-Clause"
] | null | null | null | test/nested_binding_test.dart | MiCHiLU/polymer.dart | 164a558cca9def53e0bada37de058108d2b7acba | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library polymer.test.nested_binding_test;
import 'dart:async';
import 'dart:html';
import 'package:pol... | 26.4 | 77 | 0.692641 |
a42a14792780314b50accd6210555aaa8d2feee7 | 1,233 | php | PHP | app/models/UserTransaction.php | architattrey/ezfy | 56376a5fe79327a4ceed574c8e5a0b8f4c54a68c | [
"MIT"
] | null | null | null | app/models/UserTransaction.php | architattrey/ezfy | 56376a5fe79327a4ceed574c8e5a0b8f4c54a68c | [
"MIT"
] | null | null | null | app/models/UserTransaction.php | architattrey/ezfy | 56376a5fe79327a4ceed574c8e5a0b8f4c54a68c | [
"MIT"
] | null | null | null | <?php
namespace App\models;
use Illuminate\Database\Eloquent\Model;
class UserTransaction extends Model
{
protected $table = 'user_transactions';
public $timestamps = false;
protected $primaryKey = 'id';
protected $fillable = [
'order_id',
'user_id',
'name',
'product_id'... | 24.66 | 72 | 0.583942 |
da35d845468d53b4140d323552762d21d323470c | 4,212 | php | PHP | www/wordpress/wp-content/plugins/magento2-2.3.5/app/code/Magento/Catalog/Test/Unit/Block/Adminhtml/Rss/NotifyStockTest.php | Fmendoza91/Proyecto-Final | 52ce40ac6af577fad47f1b51db697eca11f15d99 | [
"MIT"
] | null | null | null | www/wordpress/wp-content/plugins/magento2-2.3.5/app/code/Magento/Catalog/Test/Unit/Block/Adminhtml/Rss/NotifyStockTest.php | Fmendoza91/Proyecto-Final | 52ce40ac6af577fad47f1b51db697eca11f15d99 | [
"MIT"
] | null | null | null | www/wordpress/wp-content/plugins/magento2-2.3.5/app/code/Magento/Catalog/Test/Unit/Block/Adminhtml/Rss/NotifyStockTest.php | Fmendoza91/Proyecto-Final | 52ce40ac6af577fad47f1b51db697eca11f15d99 | [
"MIT"
] | null | null | null | <?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Catalog\Test\Unit\Block\Adminhtml\Rss;
use Magento\Framework\TestFramework\Unit\Helper\ObjectManager as ObjectManagerHelper;
/**
* Class NotifyStockTest
* @package Magento\Catalog\Block\Adminhtm... | 34.52459 | 104 | 0.6085 |
2c65584e8066d874578c2f9877a23e7292123209 | 1,480 | py | Python | files/029 - distinct powers.py | farukara/Project-Euler-problems | 806fdbd797edd9929728b43cc428a55df50e1c01 | [
"MIT"
] | null | null | null | files/029 - distinct powers.py | farukara/Project-Euler-problems | 806fdbd797edd9929728b43cc428a55df50e1c01 | [
"MIT"
] | null | null | null | files/029 - distinct powers.py | farukara/Project-Euler-problems | 806fdbd797edd9929728b43cc428a55df50e1c01 | [
"MIT"
] | null | null | null | #!python3
# coding: utf-8
# Consider all integer combinations of ab for 2 ≤ a ≤ 5 and 2 ≤ b ≤ 5:
#
# 22=4, 23=8, 24=16, 25=32
# 32=9, 33=27, 34=81, 35=243
# 42=16, 43=64, 44=256, 45=1024
# 52=25, 53=125, 54=625, 55=3125
# If they are then placed in numerical order, with any repeats removed, we get the following sequen... | 24.666667 | 123 | 0.608784 |
b0b1b73b79fb2b58e77f3e64156f5dbe39d92f34 | 285 | py | Python | teacher/test.py | HaihuaHaihua/EduManagementSys | 37fffd5f5bcfa03cc222a8c5c309ea6447bdfb2b | [
"Apache-2.0"
] | null | null | null | teacher/test.py | HaihuaHaihua/EduManagementSys | 37fffd5f5bcfa03cc222a8c5c309ea6447bdfb2b | [
"Apache-2.0"
] | null | null | null | teacher/test.py | HaihuaHaihua/EduManagementSys | 37fffd5f5bcfa03cc222a8c5c309ea6447bdfb2b | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render
from django.db import connection
# Create your views here.
cursor = connection.cursor()
cursor.execute("select * from studentinfo where classid=201800100")
rows = cursor.fetchall()
print(rows)
# return render(request,'index.html',context=rows)
| 20.357143 | 67 | 0.775439 |
a52a1592f336b364f5861dea520d9b6f31341de5 | 7,835 | lua | Lua | Exporter/Main.lua | wow-rp-addons/LibRPMedia | 7773a391a18b67f1b8d587420b8b4cef0030bdb1 | [
"Unlicense"
] | null | null | null | Exporter/Main.lua | wow-rp-addons/LibRPMedia | 7773a391a18b67f1b8d587420b8b4cef0030bdb1 | [
"Unlicense"
] | 15 | 2019-06-12T22:41:10.000Z | 2020-01-14T19:59:20.000Z | Exporter/Main.lua | wow-rp-addons/LibRPMedia | 7773a391a18b67f1b8d587420b8b4cef0030bdb1 | [
"Unlicense"
] | 1 | 2020-06-20T19:18:32.000Z | 2020-06-20T19:18:32.000Z | -- This file is licensed under the terms expressed in the LICENSE file.
-- Fiddle with the package path a bit to allow our working directory to
-- be the root of the repository prior to loading packages.
package.path = package.path .. ";./Exporter/?.lua;./Exporter/?/init.lua";
local Icons = require "Exporter.Icons";
... | 34.065217 | 78 | 0.666496 |
e25e9af1e2fb1c254f94f1f3897b45a3e9f81d63 | 10,929 | py | Python | QBG/AutoFormula/AutoFormula.py | GYMS-PKU/Daily-Frequency-Quant | 808eda9930efecff04ecf98abf617404cadd0003 | [
"MIT"
] | 3 | 2021-11-21T04:35:04.000Z | 2022-03-04T09:19:53.000Z | QBG/AutoFormula/AutoFormula.py | GYMS-PKU/Daily-Frequency-Quant | 808eda9930efecff04ecf98abf617404cadd0003 | [
"MIT"
] | null | null | null | QBG/AutoFormula/AutoFormula.py | GYMS-PKU/Daily-Frequency-Quant | 808eda9930efecff04ecf98abf617404cadd0003 | [
"MIT"
] | 5 | 2021-10-03T00:00:22.000Z | 2022-03-07T09:02:00.000Z | # Copyright (c) 2021 Dai HBG
"""
该代码定义一个调用FormulaTree类生成公式树的自动化公式生成器,然后返回一个公式
开发日志:
2021-09-13
-- 更新:AutoFormula类初始化需要传入一个data类
2021-09-20
-- 更新:新增多个算子
2021-10-15
-- 更新:test_formula方法新增字段fix_weekday,可以指定计算周几的信号
2021-10-22
-- 更新:formula解析新增更多类型
2021-11-25
-- 更新:新增2_num_num_num类型算子的解析支持
"""
import numpy as np
import sy... | 57.219895 | 120 | 0.500503 |
143dc26d901417e34c8d09b025a5b44d9964673d | 512 | tsx | TypeScript | packages/@headlessui-react/src/internal/open-closed.tsx | colinking/headlessui | 5442ea1b247795458cc9c8f63adef6b6f85d6b30 | [
"MIT"
] | 14,428 | 2020-09-16T18:13:23.000Z | 2022-03-31T18:50:40.000Z | packages/@headlessui-react/src/internal/open-closed.tsx | colinking/headlessui | 5442ea1b247795458cc9c8f63adef6b6f85d6b30 | [
"MIT"
] | 728 | 2020-09-16T23:15:14.000Z | 2022-03-31T23:34:35.000Z | packages/@headlessui-react/src/internal/open-closed.tsx | colinking/headlessui | 5442ea1b247795458cc9c8f63adef6b6f85d6b30 | [
"MIT"
] | 630 | 2020-09-24T20:06:54.000Z | 2022-03-31T09:55:56.000Z | import React, {
createContext,
useContext,
// Types
ReactNode,
ReactElement,
} from 'react'
let Context = createContext<State | null>(null)
Context.displayName = 'OpenClosedContext'
export enum State {
Open,
Closed,
}
export function useOpenClosed() {
return useContext(Context)
}
interface Props {
... | 17.066667 | 78 | 0.726563 |
178ecb2c2ffa4ba2340d7a9fb996d5738b94da3f | 63 | sql | SQL | modules/core/db/update/hsql/19/190208-3-add-reference-from-vet-to-employee.sql | skatova/cuba-petclinic-data-model-composition | 28671237b883f57abf043e7f61f90224c3f5ef73 | [
"Apache-2.0"
] | 1 | 2019-06-30T19:38:21.000Z | 2019-06-30T19:38:21.000Z | modules/core/db/update/hsql/19/190208-3-add-reference-from-vet-to-employee.sql | skatova/cuba-petclinic-data-model-composition | 28671237b883f57abf043e7f61f90224c3f5ef73 | [
"Apache-2.0"
] | 1 | 2019-09-03T13:05:40.000Z | 2019-09-03T13:05:40.000Z | modules/core/db/update/hsql/19/190208-3-add-reference-from-vet-to-employee.sql | skatova/cuba-petclinic-data-model-composition | 28671237b883f57abf043e7f61f90224c3f5ef73 | [
"Apache-2.0"
] | 4 | 2019-07-18T09:49:12.000Z | 2021-03-19T09:58:01.000Z | alter table PETCLINIC_VET add column EMPLOYEE_ID varchar(36) ;
| 31.5 | 62 | 0.825397 |
b70ab27291e972a07101b16bbcdc72dad0db6c31 | 1,747 | kt | Kotlin | src/backend/codecc/core/common/common-redis/src/main/kotlin/com/tencent/devops/common/redis/RedissionConfig.kt | austingod/bk-ci | 90df2f0629160a814419c85c922de8a5d1bd7b4d | [
"MIT"
] | null | null | null | src/backend/codecc/core/common/common-redis/src/main/kotlin/com/tencent/devops/common/redis/RedissionConfig.kt | austingod/bk-ci | 90df2f0629160a814419c85c922de8a5d1bd7b4d | [
"MIT"
] | null | null | null | src/backend/codecc/core/common/common-redis/src/main/kotlin/com/tencent/devops/common/redis/RedissionConfig.kt | austingod/bk-ci | 90df2f0629160a814419c85c922de8a5d1bd7b4d | [
"MIT"
] | null | null | null | package com.tencent.bk.codecc.codeccjob.component
import org.redisson.Redisson
import org.redisson.api.RRateLimiter
import org.redisson.api.RateIntervalUnit
import org.redisson.api.RateType
import org.redisson.api.RedissonClient
import org.redisson.config.Config
import org.springframework.beans.factory.annotation.Valu... | 32.962264 | 106 | 0.724671 |
0dd943fbdcdb57dae789ba2e8efa53326b177098 | 2,007 | rb | Ruby | lib/rawk_log/stat.rb | lightman76/rawk | 015577a815a8b743443405a675e1bdb26c109eab | [
"Beerware"
] | null | null | null | lib/rawk_log/stat.rb | lightman76/rawk | 015577a815a8b743443405a675e1bdb26c109eab | [
"Beerware"
] | null | null | null | lib/rawk_log/stat.rb | lightman76/rawk | 015577a815a8b743443405a675e1bdb26c109eab | [
"Beerware"
] | null | null | null | module RawkLog
class Stat
DEFAULT_LABEL_SIZE = 30
HEADER = "Count Sum(secs) Max Median Avg Min Std"
def initialize(key)
@key=key
@min = nil
@max = nil
@sum = 0
@sum_squares = 0
@count = 0
@values = []
end
def add(value)
value=1.... | 20.690722 | 164 | 0.539113 |
43e76c38a208b2aa257f43cd9673d42d79ea47ad | 532 | tsx | TypeScript | __tests__/modal.test.tsx | jokereven/02metaverse | f196d9272b3820ceca9307af014aac7118e1d1ac | [
"MIT"
] | 15 | 2021-10-20T07:08:59.000Z | 2022-03-07T06:26:02.000Z | __tests__/modal.test.tsx | jokereven/02metaverse | f196d9272b3820ceca9307af014aac7118e1d1ac | [
"MIT"
] | 26 | 2021-10-13T03:41:50.000Z | 2022-03-21T13:10:33.000Z | __tests__/modal.test.tsx | jokereven/02metaverse | f196d9272b3820ceca9307af014aac7118e1d1ac | [
"MIT"
] | 14 | 2021-10-13T02:38:55.000Z | 2022-03-26T07:50:09.000Z | import '@testing-library/jest-dom/extend-expect'
import { render, waitFor } from '@testing-library/react'
import Modal from '../components/minor/modal'
describe('Drawer Component', () => {
it('Render Component', async () => {
const dom = render(
<Modal isOpen={true} type='drawer'>
... | 26.6 | 68 | 0.577068 |
dbfd9d05ea412b1469421775d95cb6673c059527 | 1,814 | php | PHP | app/Http/Controllers/SignController.php | Alirezamosavi/sss | d44437d256b52f79b60f206a877dcb43602ba3b8 | [
"MIT"
] | null | null | null | app/Http/Controllers/SignController.php | Alirezamosavi/sss | d44437d256b52f79b60f206a877dcb43602ba3b8 | [
"MIT"
] | null | null | null | app/Http/Controllers/SignController.php | Alirezamosavi/sss | d44437d256b52f79b60f206a877dcb43602ba3b8 | [
"MIT"
] | null | null | null | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\signature;
use Image; // this is composer require intervention/image
use Illuminate\Support\Facades\Response;
class SignController extends Controller
{
public function index() // this to get all data in tabl... | 25.194444 | 123 | 0.594267 |
da5f0c76c6e1941f95c057808d2abd29e1df1fa6 | 625 | php | PHP | application/models/Bagcolor_Model.php | kyasararamrana/srb | a37c7cd0547b09885d7856e3ea7d06302dd0dfb2 | [
"MIT"
] | null | null | null | application/models/Bagcolor_Model.php | kyasararamrana/srb | a37c7cd0547b09885d7856e3ea7d06302dd0dfb2 | [
"MIT"
] | null | null | null | application/models/Bagcolor_Model.php | kyasararamrana/srb | a37c7cd0547b09885d7856e3ea7d06302dd0dfb2 | [
"MIT"
] | null | null | null | <?php
/**
*
*/
class Bagcolor_Model extends CI_Model
{
function __construct()
{
parent::__construct();
}
public $table = 'ecom_bagcolor';
//insert
public function insert($post_data='')
{
return $this->db->insert($this->table,$post_data);
}
//get bag colors
public function get_bagcolor()
... | 18.939394 | 78 | 0.6192 |
cd0022ac67c2760fd54cff75ef75001c958da715 | 2,070 | ru | Ruby | systems/2014/english-russian/newstest2014.onlineA.0.en-ru/a5a3109e4265d86b7741a715b2a0eb71.newstest2014.onlineA.0.en-ru.ru | fredblain/docQE-corp | 6c03de96252f128e257cbbac633756e5280da0e6 | [
"BSD-3-Clause"
] | null | null | null | systems/2014/english-russian/newstest2014.onlineA.0.en-ru/a5a3109e4265d86b7741a715b2a0eb71.newstest2014.onlineA.0.en-ru.ru | fredblain/docQE-corp | 6c03de96252f128e257cbbac633756e5280da0e6 | [
"BSD-3-Clause"
] | null | null | null | systems/2014/english-russian/newstest2014.onlineA.0.en-ru/a5a3109e4265d86b7741a715b2a0eb71.newstest2014.onlineA.0.en-ru.ru | fredblain/docQE-corp | 6c03de96252f128e257cbbac633756e5280da0e6 | [
"BSD-3-Clause"
] | null | null | null | Существует нет баз данных группы в министерстве внутренних дел «Братский круг», которым США связаны Лепс
Группа «Братско круг», к которому Вашингтон связал певец Григорий Лепс, не появляются в базах данных агентств безопасности России.
Как отметил "Интерфаксу" в правоохранительных органах РФ, после сообщения о Григорий... | 159.230769 | 327 | 0.836715 |
5717d03b93efec91c2ec308ac5e36ec8df734bf8 | 26,977 | js | JavaScript | src/mui/input/ReferenceArrayInput.spec.js | rwaidaAlmehanni/admin-on-rest-kindian | 45a91d9471ab33c783816a47526796316d239707 | [
"MIT"
] | 4,589 | 2016-09-02T12:39:44.000Z | 2022-02-21T07:19:10.000Z | src/mui/input/ReferenceArrayInput.spec.js | rwaidaAlmehanni/admin-on-rest-kindian | 45a91d9471ab33c783816a47526796316d239707 | [
"MIT"
] | 1,421 | 2016-09-04T10:49:32.000Z | 2018-07-24T15:15:22.000Z | src/mui/input/ReferenceArrayInput.spec.js | rwaidaAlmehanni/admin-on-rest-kindian | 45a91d9471ab33c783816a47526796316d239707 | [
"MIT"
] | 1,098 | 2016-09-03T10:57:10.000Z | 2022-02-24T12:07:45.000Z | import React from 'react';
import assert from 'assert';
import { shallow } from 'enzyme';
import sinon from 'sinon';
import {
getSelectedReferencesStatus,
getDataStatus,
ReferenceArrayInput,
REFERENCES_STATUS_READY,
REFERENCES_STATUS_INCOMPLETE,
REFERENCES_STATUS_EMPTY,
} from './ReferenceArrayI... | 38.319602 | 228 | 0.440709 |
aed0f71c6c1d6aa4a524bc8a9b2239008259df3d | 1,825 | lua | Lua | ag_zonelimit/client.lua | NormalAgent/zonelimit | 63caa7fa5c36d0c3445f3fc78c2742a6914a0d32 | [
"Unlicense"
] | null | null | null | ag_zonelimit/client.lua | NormalAgent/zonelimit | 63caa7fa5c36d0c3445f3fc78c2742a6914a0d32 | [
"Unlicense"
] | null | null | null | ag_zonelimit/client.lua | NormalAgent/zonelimit | 63caa7fa5c36d0c3445f3fc78c2742a6914a0d32 | [
"Unlicense"
] | null | null | null | local ZonelimitN = false
local ZonelimitO = false
local closestZone = 1
Citizen.CreateThread(function()
for i = 1, #Agent.zones, 1 do
local blip = AddBlipForRadius(Agent.zones[i].x, Agent.zones[i].y, Agent.zones[i].z, Agent.radius)
SetBlipHighDetail(blip, true)
SetBlipColour(blip, 11)
SetBlipAlpha (blip,... | 26.838235 | 114 | 0.689315 |
cbddf86e1765b4b83bf1752e8cf8fc0f4c3852d3 | 1,091 | sh | Shell | 9.6-debian-dev/docker-initdb/configure-repmgr.sh | panubo/docker-postgres | 9646334190da0f8ad9475581ee1eb93d1e81ba57 | [
"MIT"
] | 1 | 2018-09-19T00:37:10.000Z | 2018-09-19T00:37:10.000Z | 9.6-debian-dev/docker-initdb/configure-repmgr.sh | panubo/docker-postgres | 9646334190da0f8ad9475581ee1eb93d1e81ba57 | [
"MIT"
] | null | null | null | 9.6-debian-dev/docker-initdb/configure-repmgr.sh | panubo/docker-postgres | 9646334190da0f8ad9475581ee1eb93d1e81ba57 | [
"MIT"
] | null | null | null | #!/usr/bin/env bash
# Initialise database with repmgr extension
set -e
[ "${REPMGR_ENABLED}" == "true" ] || { echo "Info: REPMGR_ENABLED false"; exit 0; }
[ -z "$REPMGR_PASSWORD" ] && { echo "Error: REPMGR_PASSWORD not set"; exit 128; }
: ${REPMGR_USER:='repmgr'}
: ${REPMGR_DB:='repmgr'}
psql -v ON_ERROR_STOP=1 --... | 34.09375 | 227 | 0.654445 |
d67460faceb6834ac7b1501ab882a562780718cc | 1,486 | cs | C# | BM.Atlas/Assets/Scripts/launch/IntroUI.cs | BrainModes/BM.Atlas | 288d2e467f57bf214c21df9d8607e00f2761649f | [
"Apache-2.0"
] | null | null | null | BM.Atlas/Assets/Scripts/launch/IntroUI.cs | BrainModes/BM.Atlas | 288d2e467f57bf214c21df9d8607e00f2761649f | [
"Apache-2.0"
] | 5 | 2021-03-18T14:09:47.000Z | 2021-04-13T13:40:07.000Z | BM.Atlas/Assets/Scripts/launch/IntroUI.cs | BrainModes/BM.Atlas | 288d2e467f57bf214c21df9d8607e00f2761649f | [
"Apache-2.0"
] | 1 | 2021-03-23T09:50:57.000Z | 2021-03-23T09:50:57.000Z | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class IntroUI : MonoBehaviour
{
public string welcomeMsg = "Welcome to the BrainAtlas!";
public string clickMsg = "You can interact with the 3d brain map by using a mouse to select regions of the br... | 33.022222 | 197 | 0.629879 |
f5d3818110522f37e17177ac1d02fbe8d9d4e91c | 2,554 | css | CSS | css/style.css | br-ose/homework4-2021 | d0ea65be9ab677146e3de15a60d036f23e6bed5d | [
"CC0-1.0"
] | null | null | null | css/style.css | br-ose/homework4-2021 | d0ea65be9ab677146e3de15a60d036f23e6bed5d | [
"CC0-1.0"
] | null | null | null | css/style.css | br-ose/homework4-2021 | d0ea65be9ab677146e3de15a60d036f23e6bed5d | [
"CC0-1.0"
] | null | null | null | /*STARTER CODE*/
/*
We have started some of the selectors for you.
For others we have provided hints on what the selectors should be.
There are some missing selectors.
Make sure to learn what the starter code does!!
*/
/*STARTER CODE - DO NOT CHANGE*/
main
{
margin-bottom: 100px;
font-family: "Andi... | 15.9625 | 86 | 0.626468 |
d1aa0b2ba69ff68ab085b4fbdbcee0b0133533ec | 2,279 | cs | C# | Panosen.CodeDom.Tag.Vue/directives/VBind.cs | panosen/panosen-codedom-tag-vue | 9869e1c50bed1b8cccd58181ea558283d0d16bd6 | [
"MIT"
] | null | null | null | Panosen.CodeDom.Tag.Vue/directives/VBind.cs | panosen/panosen-codedom-tag-vue | 9869e1c50bed1b8cccd58181ea558283d0d16bd6 | [
"MIT"
] | 1 | 2022-02-09T16:20:04.000Z | 2022-02-09T16:20:04.000Z | Panosen.CodeDom.Tag.Vue/directives/VBind.cs | panosen/panosen-codedom-tag-vue | 9869e1c50bed1b8cccd58181ea558283d0d16bd6 | [
"MIT"
] | null | null | null | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Panosen.CodeDom.Tag.Vue
{
/// <summary>
/// v-bind修饰符
/// </summary>
public enum VBindModifiers
{
/// <summary>
/// none
/// </summary>
None... | 28.848101 | 167 | 0.519965 |
233d9a28153ce56d608296f1f12f858a6d371657 | 1,870 | css | CSS | css/style.css | Maiada-Ibrahim/salmoncook | 192bd88660cd06a9e1fa010245be384c0a1ff88d | [
"MIT"
] | null | null | null | css/style.css | Maiada-Ibrahim/salmoncook | 192bd88660cd06a9e1fa010245be384c0a1ff88d | [
"MIT"
] | null | null | null | css/style.css | Maiada-Ibrahim/salmoncook | 192bd88660cd06a9e1fa010245be384c0a1ff88d | [
"MIT"
] | null | null | null |
*{box-sizing: border-box;}
body{
background-image: url(../img/back4.png);
background-size: cover;
background-repeat: no-repeat;
border: solid 2px mediumblue;
margin: 2%;
height:200vh;
}
header p{
color:teal;
}
header div{
display: block;
height: 10vh;
width: 100%;
... | 13.169014 | 75 | 0.593583 |
e2e2dc06730b59c854b6d2860c899cd9a7b8b670 | 64 | py | Python | gseapy/__init__.py | oreh/gseapy | d3212afb2e8d61f37957d685da6ef28f723d98e6 | [
"MIT"
] | 1 | 2021-01-15T02:02:12.000Z | 2021-01-15T02:02:12.000Z | gseapy/__init__.py | oreh/gseapy | d3212afb2e8d61f37957d685da6ef28f723d98e6 | [
"MIT"
] | null | null | null | gseapy/__init__.py | oreh/gseapy | d3212afb2e8d61f37957d685da6ef28f723d98e6 | [
"MIT"
] | null | null | null | #
from .gsea import call, replot, prerank
__version__ ='0.4.3' | 12.8 | 39 | 0.703125 |
57fb74bf0f61c7d200a6e525308e725cb949e9bd | 466 | php | PHP | app/Controllers/Home.php | fghaffar26/sekolah_kolaborasi | 54945676c86fa90f773038cbe81aa3f3236bbd8f | [
"MIT"
] | null | null | null | app/Controllers/Home.php | fghaffar26/sekolah_kolaborasi | 54945676c86fa90f773038cbe81aa3f3236bbd8f | [
"MIT"
] | null | null | null | app/Controllers/Home.php | fghaffar26/sekolah_kolaborasi | 54945676c86fa90f773038cbe81aa3f3236bbd8f | [
"MIT"
] | null | null | null | <?php
namespace App\Controllers;
use \App\Models\UsulanSmaModel;
use \App\Models\UsulanSmpModel;
use \App\Models\GalleryModel;
class Home extends BaseController
{
public function index()
{
$smaModel = new UsulanSmaModel();
$smpModel = new UsulanSmpModel();
$galleryModel = new GalleryModel();
$data = [
'... | 19.416667 | 40 | 0.671674 |
2ff1eb165873aa0e593f8fb1a0b4ad8bba2b6ad4 | 903 | py | Python | modules/core_api/info_controllers.py | srcc-msu/job_statistics | 74680a4e4c105ebcff94f089e07fcb44dbcc12d9 | [
"MIT"
] | null | null | null | modules/core_api/info_controllers.py | srcc-msu/job_statistics | 74680a4e4c105ebcff94f089e07fcb44dbcc12d9 | [
"MIT"
] | null | null | null | modules/core_api/info_controllers.py | srcc-msu/job_statistics | 74680a4e4c105ebcff94f089e07fcb44dbcc12d9 | [
"MIT"
] | null | null | null | from flask import jsonify, Response, request, redirect, Blueprint, abort
from core.job.models import Job
from application.helpers import crossdomain
job_info_api_pages = Blueprint('job_info_api', __name__
, template_folder='templates')
@job_info_api_pages.route("/record/<int:job_id>/<int:task_id>")
@job_info_api_pa... | 31.137931 | 74 | 0.754153 |
c4545d26f42e20282c276664e20c31c163072b06 | 10,794 | cc | C++ | lite/kernels/apu/bridges/elementwise_ops.cc | wanglei91/Paddle-Lite | 8b2479f4cdd6970be507203d791bede5a453c09d | [
"Apache-2.0"
] | 1,799 | 2019-08-19T03:29:38.000Z | 2022-03-31T14:30:50.000Z | lite/kernels/apu/bridges/elementwise_ops.cc | wanglei91/Paddle-Lite | 8b2479f4cdd6970be507203d791bede5a453c09d | [
"Apache-2.0"
] | 3,767 | 2019-08-19T03:36:04.000Z | 2022-03-31T14:37:26.000Z | lite/kernels/apu/bridges/elementwise_ops.cc | wanglei91/Paddle-Lite | 8b2479f4cdd6970be507203d791bede5a453c09d | [
"Apache-2.0"
] | 798 | 2019-08-19T02:28:23.000Z | 2022-03-31T08:31:54.000Z | // Copyright (c) 2019 PaddlePaddle Authors. 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... | 35.98 | 78 | 0.55642 |
4dd19460249a1aeb076d362f99797ec87e3c1c55 | 195 | cs | C# | CefGlueHeadless/Delegates/BrowserLoadingStateChanged.cs | alexsaves/CefGlueHeadless | f9c82aaa803ada3589d8f748cda8129e7e11991f | [
"MIT"
] | 2 | 2021-04-26T18:06:56.000Z | 2021-12-26T06:37:39.000Z | CefGlueHeadless/Delegates/BrowserLoadingStateChanged.cs | alexsaves/CefGlueHeadless | f9c82aaa803ada3589d8f748cda8129e7e11991f | [
"MIT"
] | null | null | null | CefGlueHeadless/Delegates/BrowserLoadingStateChanged.cs | alexsaves/CefGlueHeadless | f9c82aaa803ada3589d8f748cda8129e7e11991f | [
"MIT"
] | null | null | null | using Xilium.CefGlue;
namespace CefGlueHeadless.Delegates
{
public delegate void BrowserLoadingStateChangeDelegate(CefBrowser browser, bool isLoading, bool canGoBack, bool canGoForward);
}
| 27.857143 | 130 | 0.825641 |
21b9f19ac470322c60eab06b1a1494d36dadf73f | 841 | js | JavaScript | src/controllers/Configuration.js | homelabaas/dns-api | d5d1b3dcb84d146bc16410213a16e104edf1ebfa | [
"MIT"
] | 2 | 2021-02-28T19:17:51.000Z | 2021-02-28T19:17:52.000Z | src/controllers/Configuration.js | homelabaas/dns-api | d5d1b3dcb84d146bc16410213a16e104edf1ebfa | [
"MIT"
] | 2 | 2020-07-17T10:26:21.000Z | 2021-05-09T08:52:36.000Z | src/controllers/Configuration.js | homelabaas/dns-api | d5d1b3dcb84d146bc16410213a16e104edf1ebfa | [
"MIT"
] | null | null | null | const utils = require('../utils/writer.js');
const container = require('../diContainer');
module.exports.getConfig = async function getConfig (req, res, next) {
const service = container.resolve('configurationService');
try {
const returnValue = service.getConfig();
utils.writeJson(res, returnValue);
} c... | 33.64 | 70 | 0.687277 |
7bcb50bba0b9a756a39d86b9ad089a039f2b3326 | 391 | rb | Ruby | db/migrate/20130207213528_change_activeadmin_selleo_cms_assets.rb | tb/activeadmin-selleo-cms | c7f20f2e0fc81ff7fd166ef069099ee8b4a5ba31 | [
"MIT"
] | 2 | 2015-10-05T19:52:51.000Z | 2020-10-31T11:51:34.000Z | db/migrate/20130207213528_change_activeadmin_selleo_cms_assets.rb | tb/activeadmin-selleo-cms | c7f20f2e0fc81ff7fd166ef069099ee8b4a5ba31 | [
"MIT"
] | null | null | null | db/migrate/20130207213528_change_activeadmin_selleo_cms_assets.rb | tb/activeadmin-selleo-cms | c7f20f2e0fc81ff7fd166ef069099ee8b4a5ba31 | [
"MIT"
] | 1 | 2020-10-31T11:51:35.000Z | 2020-10-31T11:51:35.000Z | class ChangeActiveadminSelleoCmsAssets < ActiveRecord::Migration
def up
add_column :activeadmin_selleo_cms_assets, :cover_file_name, :string
add_column :activeadmin_selleo_cms_assets, :cover_content_type, :string
add_column :activeadmin_selleo_cms_assets, :cover_file_size, :integer
add_column :active... | 30.076923 | 75 | 0.805627 |
2ff950af253986d1349c2774e870edb272992ba0 | 298 | kt | Kotlin | app/src/main/java/com/kyberswap/android/presentation/main/profile/UserInfoState.kt | newtalentxp/android-app | 8b149808a898a91cc9b1438a919556354359750c | [
"MIT"
] | 20 | 2019-09-12T04:23:12.000Z | 2021-03-02T16:51:35.000Z | app/src/main/java/com/kyberswap/android/presentation/main/profile/UserInfoState.kt | zachwylde00/android-app | ddf69ff4a6aa26c54e938fd84d496b5792e352e5 | [
"MIT"
] | 3 | 2020-05-13T21:24:39.000Z | 2021-04-26T09:53:01.000Z | app/src/main/java/com/kyberswap/android/presentation/main/profile/UserInfoState.kt | zachwylde00/android-app | ddf69ff4a6aa26c54e938fd84d496b5792e352e5 | [
"MIT"
] | 7 | 2019-09-28T02:31:18.000Z | 2021-04-05T17:15:51.000Z | package com.kyberswap.android.presentation.main.profile
import com.kyberswap.android.domain.model.UserInfo
sealed class UserInfoState {
object Loading : UserInfoState()
class ShowError(val message: String?) : UserInfoState()
class Success(val userInfo: UserInfo?) : UserInfoState()
}
| 29.8 | 60 | 0.771812 |
c8fe00d292851fec62c3fefa9da151bac721bbda | 666 | go | Go | db/mysql.go | DanPlayer/goin | 4c8b249a83a510328a04ac7cc169ea958e0dbddc | [
"MIT"
] | 6 | 2021-05-31T13:59:52.000Z | 2021-06-09T09:20:04.000Z | db/mysql.go | DanPlayer/goin | 4c8b249a83a510328a04ac7cc169ea958e0dbddc | [
"MIT"
] | 1 | 2021-06-01T03:06:35.000Z | 2021-06-01T03:07:53.000Z | db/mysql.go | DanPlayer/goin | 4c8b249a83a510328a04ac7cc169ea958e0dbddc | [
"MIT"
] | 3 | 2021-05-31T14:41:31.000Z | 2022-03-04T09:43:27.000Z | package db
import (
"database/sql"
"fmt"
"goin/conf"
"gorm.io/driver/mysql"
"gorm.io/gorm"
"time"
)
var (
Eloquent *gorm.DB
EloquentDb *sql.DB
)
func MysqlDial(config *conf.MysqlConf) error {
var err error
Eloquent, err = gorm.Open(mysql.Open(config.DSN), &gorm.Config{})
if err != nil {
fmt.Printf("m... | 18.5 | 66 | 0.690691 |
8eafdb0dabda6274b5d372601f4ffd552531fe06 | 1,813 | js | JavaScript | js/gc_gamepad_scanner/model_dclassic.js | nobu-e753/gcscannerjs | dac85344353f5c9627d4d64fdc5893cb545acdd4 | [
"Apache-2.0"
] | null | null | null | js/gc_gamepad_scanner/model_dclassic.js | nobu-e753/gcscannerjs | dac85344353f5c9627d4d64fdc5893cb545acdd4 | [
"Apache-2.0"
] | null | null | null | js/gc_gamepad_scanner/model_dclassic.js | nobu-e753/gcscannerjs | dac85344353f5c9627d4d64fdc5893cb545acdd4 | [
"Apache-2.0"
] | 1 | 2018-06-24T07:19:19.000Z | 2018-06-24T07:19:19.000Z | /**
* Scanner module for digital-classic gamepad (ex. 4+8buttons)
*/
var GC_GAMEPAD_dclassic = {};
GC_GAMEPAD_dclassic.id = null;
GC_GAMEPAD_dclassic.enableDev = false;
GC_GAMEPAD_dclassic.enableAng = false;
GC_GAMEPAD_dclassic.init = function(aEnableDev, aEnableAng){
GC_GAMEPAD_dclassic.enableDev = aEnableDev... | 24.835616 | 64 | 0.586873 |
2397109f9ffdb3b76380188c706b08fee2fbf624 | 1,416 | js | JavaScript | assets/admin/tinymce/modules/bridge/Gruntfile.js | faidlurrohman/CODEIGNITER | bfd14de0d85b92f43eed35e5e27f67ab7b5ac43e | [
"MIT"
] | 7 | 2019-11-28T02:43:39.000Z | 2020-12-21T12:56:41.000Z | assets/admin/tinymce/modules/bridge/Gruntfile.js | faidlurrohman/CODEIGNITER | bfd14de0d85b92f43eed35e5e27f67ab7b5ac43e | [
"MIT"
] | 14 | 2020-04-24T20:15:43.000Z | 2021-02-24T06:32:58.000Z | assets/admin/tinymce/modules/bridge/Gruntfile.js | faidlurrohman/CODEIGNITER | bfd14de0d85b92f43eed35e5e27f67ab7b5ac43e | [
"MIT"
] | 6 | 2020-01-09T08:53:01.000Z | 2021-05-17T07:48:11.000Z | const {
CheckerPlugin,
TsConfigPathsPlugin
} = require('awesome-typescript-loader');
const LiveReloadPlugin = require('webpack-livereload-plugin');
const path = require('path');
module.exports = function(grunt) {
var packageData = grunt.file.readJSON('package.json');
const tsDemoSourceFile = path.resolve('src/... | 21.454545 | 66 | 0.507768 |
7dcc27f05b866675e0a869c67066ee5a7e981f32 | 4,809 | css | CSS | homework/week-5/grid/style.css | Obemegargel/wdd-130-megargel-project | 4fef3ad367cc868daa61480ecf8ec5491f973c10 | [
"MIT"
] | null | null | null | homework/week-5/grid/style.css | Obemegargel/wdd-130-megargel-project | 4fef3ad367cc868daa61480ecf8ec5491f973c10 | [
"MIT"
] | null | null | null | homework/week-5/grid/style.css | Obemegargel/wdd-130-megargel-project | 4fef3ad367cc868daa61480ecf8ec5491f973c10 | [
"MIT"
] | null | null | null | /**
*
* Page Styles
*
* These styles are for the page. Please do not edit them. Scroll down
* until you see the activity CSS and that is where you can start editing.
*
*/
.exercise {
width: 600px;
margin: 20px auto;
font-size: 20px;
line-height: 30px;
font-family: Arial, sans-serif;
b... | 15.122642 | 74 | 0.595758 |
af076f9d951bed0f24d3e57e9b5dcb299d77676f | 7,807 | rb | Ruby | lib/ops_manager/appliance_deployment.rb | compozed/ops_manager_cli | 4df50e6a3fec4d88731c35e8dfb17d71c32fe2a7 | [
"MIT"
] | 13 | 2016-09-07T03:09:01.000Z | 2017-01-27T00:08:28.000Z | lib/ops_manager/appliance_deployment.rb | compozed/ops_manager_cli | 4df50e6a3fec4d88731c35e8dfb17d71c32fe2a7 | [
"MIT"
] | 34 | 2016-09-03T01:07:08.000Z | 2018-06-18T16:44:51.000Z | lib/ops_manager/appliance_deployment.rb | compozed/ops_manager_cli | 4df50e6a3fec4d88731c35e8dfb17d71c32fe2a7 | [
"MIT"
] | 10 | 2016-09-09T21:40:35.000Z | 2018-06-18T16:23:41.000Z | require "ops_manager/api/opsman"
require "ops_manager/api/pivnet"
require 'ops_manager/config/opsman_deployment'
require 'fileutils'
class OpsManager::ApplianceDeployment
extend Forwardable
attr_reader :config
def_delegators :pivnet_api, :get_product_releases, :accept_product_release_eula,
:get_product_rele... | 31.479839 | 120 | 0.712566 |
a33eff63e057e702fd5f4a735d24972ffdf872df | 3,984 | c | C | Unintegrated/background/background/student-distrib/schedule.c | TaKeTube/TLEOS | b0cd42edecae5103cacb4e6f66506e05f212a25e | [
"AFL-1.1"
] | null | null | null | Unintegrated/background/background/student-distrib/schedule.c | TaKeTube/TLEOS | b0cd42edecae5103cacb4e6f66506e05f212a25e | [
"AFL-1.1"
] | null | null | null | Unintegrated/background/background/student-distrib/schedule.c | TaKeTube/TLEOS | b0cd42edecae5103cacb4e6f66506e05f212a25e | [
"AFL-1.1"
] | null | null | null | #include "schedule.h"
#include "terminal.h"
#include "syscall.h"
#include "x86_desc.h"
#include "lib.h"
/* Reference: https://wiki.osdev.org/Programmable_Interval_Timer */
/*
* pit_init
* DESCRIPTION: initialize the PIT, see schedule.h file for command details
* INPUT: none
* OUTPUT: none
* RETURN: none
* SIDE ... | 30.646154 | 102 | 0.581074 |
6d9366b97d47f4bad9c9d7c7ad4e0c73c47f88d6 | 11,485 | c | C | Lab2/CLCD_Lab.c | WhiteHyun/Embedded-Systems | 97bcccd11d402ce9e4e30f46361b7a2fadf014b2 | [
"MIT"
] | null | null | null | Lab2/CLCD_Lab.c | WhiteHyun/Embedded-Systems | 97bcccd11d402ce9e4e30f46361b7a2fadf014b2 | [
"MIT"
] | null | null | null | Lab2/CLCD_Lab.c | WhiteHyun/Embedded-Systems | 97bcccd11d402ce9e4e30f46361b7a2fadf014b2 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <wiringPi.h>
#define LCD_D4 2
#define LCD_D5 3
#define LCD_D6 1
#define LCD_D7 4
#define LCD_RS 7
#define LCD_EN 0
#define BTN_PLUS 5 //#102
#define BTN_MINUS 6 //#103
#define BTN_0 27 //#98
#define BTN_1 22 //#100
#def... | 28.428218 | 126 | 0.480453 |
23d77ac2461d1c0ef3223e1c91e5337293bb65fd | 7,439 | js | JavaScript | public/javascripts/schedule.js | whatevercamps/Rentsy | 4aa73fdec0497bdae02ab42941c65685b422f282 | [
"MIT"
] | null | null | null | public/javascripts/schedule.js | whatevercamps/Rentsy | 4aa73fdec0497bdae02ab42941c65685b422f282 | [
"MIT"
] | null | null | null | public/javascripts/schedule.js | whatevercamps/Rentsy | 4aa73fdec0497bdae02ab42941c65685b422f282 | [
"MIT"
] | 3 | 2020-03-03T03:48:16.000Z | 2020-03-03T15:02:30.000Z | var calendar;
/**
* [Function to load a JavaScript Calendar]
* https://fullcalendar.io
*/
document.addEventListener("DOMContentLoaded", function () {
var calendarEl = document.getElementById("calendar");
//dayGrid dayGridWeek dayGridMonth listWeek
var view = "dayGridMonth";
// eslint-disable-next-... | 33.062222 | 95 | 0.454228 |
3e93b93a7f06d9b42c7db57d69b6658c2631164c | 480 | kt | Kotlin | token-support-azure-exchange/src/main/kotlin/no/nav/tms/token/support/azure/exchange/config/cache/AccessTokenEntry.kt | navikt/tms-ktor-token-support | 9af53ab1fe7637918f8cd8612a76c213f07d34cf | [
"MIT"
] | 3 | 2021-11-23T19:12:42.000Z | 2021-12-10T11:31:05.000Z | token-support-azure-exchange/src/main/kotlin/no/nav/tms/token/support/azure/exchange/config/cache/AccessTokenEntry.kt | navikt/tms-ktor-token-support | 9af53ab1fe7637918f8cd8612a76c213f07d34cf | [
"MIT"
] | 2 | 2021-02-23T15:34:15.000Z | 2021-12-01T09:58:52.000Z | token-support-azure-exchange/src/main/kotlin/no/nav/tms/token/support/azure/exchange/config/cache/AccessTokenEntry.kt | navikt/tms-ktor-token-support | 9af53ab1fe7637918f8cd8612a76c213f07d34cf | [
"MIT"
] | 1 | 2021-04-14T12:09:39.000Z | 2021-04-14T12:09:39.000Z | package no.nav.tms.token.support.azure.exchange.config.cache
import no.nav.tms.token.support.azure.exchange.consumer.AzureTokenResponse
internal data class AccessTokenEntry(
val accessToken: String,
val expiresInSeconds: Long
) {
companion object {
fun fromResponse(response: AzureTokenResp... | 30 | 75 | 0.69375 |
c05f14ebebff8a989901ff5eb515a64cfa74d74d | 799 | rs | Rust | src/color.rs | msherwood21/raytrace | 0290a252f1188b6afc0a94aaaee09cc12e0f91e1 | [
"Unlicense"
] | null | null | null | src/color.rs | msherwood21/raytrace | 0290a252f1188b6afc0a94aaaee09cc12e0f91e1 | [
"Unlicense"
] | null | null | null | src/color.rs | msherwood21/raytrace | 0290a252f1188b6afc0a94aaaee09cc12e0f91e1 | [
"Unlicense"
] | null | null | null | use crate::rtweekend;
use crate::vec3;
pub fn write_color(out: &mut dyn std::io::Write, pixel_color: vec3::Color, samples_per_pixel: i32) {
let mut r = pixel_color.x();
let mut g = pixel_color.y();
let mut b = pixel_color.z();
// Divide the color by the number of samples and gamma-correct for gamma=2.... | 31.96 | 100 | 0.578223 |
c9ebb6cfc7062f5fb8c14f21547025e06c4c1b63 | 10,994 | lua | Lua | levee/core/hub.lua | thelinuxkid/levee | 947847fd9e4bf67333f285f13c92e47441b0f8ce | [
"BSD-2-Clause"
] | 11 | 2018-11-05T20:32:06.000Z | 2020-08-16T09:32:17.000Z | levee/core/hub.lua | thelinuxkid/levee | 947847fd9e4bf67333f285f13c92e47441b0f8ce | [
"BSD-2-Clause"
] | null | null | null | levee/core/hub.lua | thelinuxkid/levee | 947847fd9e4bf67333f285f13c92e47441b0f8ce | [
"BSD-2-Clause"
] | 3 | 2018-09-12T03:53:11.000Z | 2021-03-08T04:34:07.000Z | local ffi = require('ffi')
local C = ffi.C
local errors = require("levee.errors")
local _ = require("levee._")
local d = require("levee.d")
local message = require("levee.core.message")
local log = _.log.Log("levee.core.hub")
local State_mt = {}
State_mt.__index = State_mt
function State_mt:recv(timeout)
if ... | 19.667263 | 76 | 0.681008 |
687d960e24e0d54893d3e22400d366da6a6f53dd | 7,652 | sql | SQL | PAK_XSLT_LOG_1.sql | mirmas/InteractivePrints | 26afbc05bcd379b6412dd06459f17124daaf1916 | [
"MIT"
] | 4 | 2018-07-17T14:34:33.000Z | 2020-09-18T13:51:16.000Z | PAK_XSLT_LOG_1.sql | mirmas/InteractivePrints | 26afbc05bcd379b6412dd06459f17124daaf1916 | [
"MIT"
] | null | null | null | PAK_XSLT_LOG_1.sql | mirmas/InteractivePrints | 26afbc05bcd379b6412dd06459f17124daaf1916 | [
"MIT"
] | 2 | 2019-12-30T20:31:22.000Z | 2020-08-04T06:36:03.000Z | -- This project using the following MIT License:
--
-- The MIT License (MIT)
--
-- Copyright (c) 2021 Mirmas IC
--
-- 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 w... | 34.160714 | 127 | 0.651725 |
071d73959876ab0eef9e66bc12dbced7be2ad48f | 485 | rb | Ruby | app/components/content/generic_block_component.rb | GayeCord/get-into-teaching-app | 75a8fd3b95e7fcf07f3b03846cdc2456071b2807 | [
"MIT"
] | 6 | 2021-03-15T15:53:02.000Z | 2021-12-09T22:56:34.000Z | app/components/content/generic_block_component.rb | GayeCord/get-into-teaching-app | 75a8fd3b95e7fcf07f3b03846cdc2456071b2807 | [
"MIT"
] | 2,221 | 2020-05-06T08:16:29.000Z | 2022-03-31T17:26:35.000Z | app/components/content/generic_block_component.rb | uk-gov-mirror/DFE-Digital.get-into-teaching-app | 7d07d3bd83ab4b2dd5d97ca18dfe75438fca20d5 | [
"MIT"
] | 6 | 2020-12-21T15:44:47.000Z | 2022-03-18T16:12:07.000Z | module Content
class GenericBlockComponent < ViewComponent::Base
attr_reader :title, :classes
def initialize(title:, icon_image:, icon_alt:, icon_size: nil, classes: [])
@title = title
@icon_image = icon_image
@icon_alt = icon_alt
@icon_size = icon_size
@classes = cla... | 24.25 | 79 | 0.63299 |
6c9a6d245acf61f62fc46438aef0d15f4dc387ba | 2,468 | sql | SQL | content/test/data/conversions/databases/version_6.sql | DamieFC/chromium | 54ce2d3c77723697efd22cfdb02aea38f9dfa25c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2020-10-18T02:33:40.000Z | 2020-10-18T02:33:40.000Z | content/test/data/conversions/databases/version_6.sql | DamieFC/chromium | 54ce2d3c77723697efd22cfdb02aea38f9dfa25c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 3 | 2021-05-17T16:28:52.000Z | 2021-05-21T22:42:22.000Z | content/test/data/conversions/databases/version_6.sql | DamieFC/chromium | 54ce2d3c77723697efd22cfdb02aea38f9dfa25c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
CREATE TABLE impressions(impression_id INTEGER PRIMARY KEY,impression_data TEXT NOT NULL,impression_origin TEXT NOT NULL,conversion_origin TEXT NOT NULL,reporting_origin TEXT NOT NULL,impression_time INTEGER NOT NULL,expiry_time INTEGER NOT NULL,num_conversions INTEGER DEFA... | 39.806452 | 437 | 0.76175 |
d40814898f73041f438fa0f03ef91c650862d413 | 1,967 | hpp | C++ | include/dynamixel_ros2_control/dynamixel_ros2_controll.hpp | Schnilz/dynamixel_ros2_control | b8e3f915cfbe9a59e5de08d62843e62ab3a2b107 | [
"MIT"
] | null | null | null | include/dynamixel_ros2_control/dynamixel_ros2_controll.hpp | Schnilz/dynamixel_ros2_control | b8e3f915cfbe9a59e5de08d62843e62ab3a2b107 | [
"MIT"
] | 1 | 2022-02-12T11:17:23.000Z | 2022-02-12T11:17:23.000Z | include/dynamixel_ros2_control/dynamixel_ros2_controll.hpp | Schnilz/dynamixel_ros2_control | b8e3f915cfbe9a59e5de08d62843e62ab3a2b107 | [
"MIT"
] | null | null | null | #pragma once
#include <hardware_interface/handle.hpp>
#include <hardware_interface/hardware_info.hpp>
#include <hardware_interface/system_interface.hpp>
#include <rclcpp_lifecycle/state.hpp>
#include "dynamixel_ros2_control/visiblity_control.h"
#include "dynamixel_ros2_control/dynamixel_driver.hpp"
#include "rclcpp/m... | 32.783333 | 80 | 0.833757 |
744fbba26a999cc5a6d1040cdd2ca9127f54d104 | 688 | css | CSS | client/src/app/resources/resources.component.css | corde171/iteration-4-secure-super-group | e65f15898b8e5b9dabc2fac0275cf3af37c5c28e | [
"MIT"
] | null | null | null | client/src/app/resources/resources.component.css | corde171/iteration-4-secure-super-group | e65f15898b8e5b9dabc2fac0275cf3af37c5c28e | [
"MIT"
] | 29 | 2018-04-20T17:25:39.000Z | 2018-05-04T01:35:45.000Z | client/src/app/resources/resources.component.css | corde171/iteration-4-secure-super-group | e65f15898b8e5b9dabc2fac0275cf3af37c5c28e | [
"MIT"
] | 2 | 2019-01-03T02:53:33.000Z | 2020-03-30T16:05:41.000Z | #addNewResources{
background-color: lightgreen;
}
.addNewResourcesDiv{
padding: 10px;
}
.loginEmoji{
display: flex;
margin-left: auto;
margin-right: auto;
width: 256px;
height: 256px;
padding: 32px;
}
.loginEmojiText {
text-align: center;
font-size: 24px;
}
a:link {
colo... | 14.638298 | 35 | 0.642442 |
e282c3fe190038865d60046189752153466d4417 | 1,745 | py | Python | routing_changes/taps/details_cluster_sizes.py | RWails/tempest | 4e13d9e56f24e46db8f3e172d0be52f335a5e906 | [
"CC0-1.0"
] | 2 | 2018-07-29T04:10:01.000Z | 2019-08-15T11:09:29.000Z | routing_changes/taps/details_cluster_sizes.py | RWails/tempest | 4e13d9e56f24e46db8f3e172d0be52f335a5e906 | [
"CC0-1.0"
] | null | null | null | routing_changes/taps/details_cluster_sizes.py | RWails/tempest | 4e13d9e56f24e46db8f3e172d0be52f335a5e906 | [
"CC0-1.0"
] | 1 | 2018-10-19T00:09:59.000Z | 2018-10-19T00:09:59.000Z | #!/usr/bin/env python3
import argparse
import datetime
import functools
import os
import ujson as json
def get_as_to_cluster(cluster_filename):
as_to_cluster = dict()
with open(cluster_filename, 'r') as f:
clusters = json.loads(f.read())
for cluster in clusters.values():
cluster_set = s... | 27.698413 | 83 | 0.649284 |
cdb42577c4c0a888da52f30af3d4274eb10c357b | 266 | cs | C# | detect-nuget-inspector/detect-nuget-inspector/DependencyResolution/DependencyResolver.cs | blackducksoftware/detect-nuget-inspector | b068efcf10f11f03200ac78b3084cf03b43a0ceb | [
"Apache-2.0"
] | null | null | null | detect-nuget-inspector/detect-nuget-inspector/DependencyResolution/DependencyResolver.cs | blackducksoftware/detect-nuget-inspector | b068efcf10f11f03200ac78b3084cf03b43a0ceb | [
"Apache-2.0"
] | null | null | null | detect-nuget-inspector/detect-nuget-inspector/DependencyResolution/DependencyResolver.cs | blackducksoftware/detect-nuget-inspector | b068efcf10f11f03200ac78b3084cf03b43a0ceb | [
"Apache-2.0"
] | null | null | null | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Synopsys.Detect.Nuget.Inspector.DependencyResolution
{
interface DependencyResolver
{
DependencyResult Process();
}
}
| 19 | 62 | 0.759398 |
54faab8ae283868e2fe9bd68331d170814929a8d | 25,850 | h | C | gta5_fsr/wrappers/d3d11/ID3D11DeviceContextWrapper.h | mrnwf/gta5_fsr | 99802d5a74751c1b8ff49a9094aba5d318b58a43 | [
"MIT"
] | 366 | 2021-07-01T07:51:02.000Z | 2022-03-26T20:19:31.000Z | gta5_fsr/wrappers/d3d11/ID3D11DeviceContextWrapper.h | Rick-laboratory/gta5_fsr | 554175dda82a3c5cae3d94da0cee5a294813af7a | [
"MIT"
] | 48 | 2021-07-01T13:41:53.000Z | 2022-03-26T22:52:25.000Z | gta5_fsr/wrappers/d3d11/ID3D11DeviceContextWrapper.h | Rick-laboratory/gta5_fsr | 554175dda82a3c5cae3d94da0cee5a294813af7a | [
"MIT"
] | 31 | 2021-07-01T08:12:20.000Z | 2022-03-17T22:22:12.000Z | #pragma once
class ID3D11DeviceContextWrapper : public ID3D11DeviceContext
{
public:
ID3D11DeviceContextWrapper(ID3D11DeviceContext* pOrigDeviceContext);
ID3D11DeviceContextWrapper(const ID3D11DeviceContextWrapper&) = delete;
ID3D11DeviceContextWrapper& operator=(const ID3D11DeviceContextWrapper) = delete... | 54.306723 | 308 | 0.781818 |
2dec8914325739d0aff3a89bcece7fc8b0debc65 | 1,996 | cpp | C++ | lib/sensors/src/sensors.cpp | mauriciobarroso/dit-es | e4b6b63eaae34d0f141554ce0f727ed86b919279 | [
"MIT"
] | null | null | null | lib/sensors/src/sensors.cpp | mauriciobarroso/dit-es | e4b6b63eaae34d0f141554ce0f727ed86b919279 | [
"MIT"
] | null | null | null | lib/sensors/src/sensors.cpp | mauriciobarroso/dit-es | e4b6b63eaae34d0f141554ce0f727ed86b919279 | [
"MIT"
] | null | null | null | /*
* mcp401x.c
*
* Created on: Jan 13, 2021
* Author: Mauricio Barroso Benavides
*/
/* inclusions ----------------------------------------------------------------*/
#include "sensors.h"
/* macros --------------------------------------------------------------------*/
/* typedef ---------------------------------... | 25.265823 | 80 | 0.470942 |
b2ea30b4736ef5e61b9706179459b1042c35209a | 190 | rb | Ruby | spec/models/site.rb | jagdeepsingh/mongoid-rspec | 19f0ef33724687e59a1091a8e41826fe5048cb15 | [
"MIT"
] | 1 | 2015-07-08T10:27:33.000Z | 2015-07-08T10:27:33.000Z | spec/models/site.rb | jagdeepsingh/mongoid-rspec | 19f0ef33724687e59a1091a8e41826fe5048cb15 | [
"MIT"
] | null | null | null | spec/models/site.rb | jagdeepsingh/mongoid-rspec | 19f0ef33724687e59a1091a8e41826fe5048cb15 | [
"MIT"
] | null | null | null | class Site
include Mongoid::Document
field :name
has_many :users, inverse_of: :site, order: :email.desc, counter_cache: true
validates :name, presence: true, uniqueness: true
end
| 19 | 77 | 0.736842 |
ea320c4704143a008424ee15039d1885fd315d27 | 990 | dart | Dart | lib/round_button.dart | janagrill/flutter-coding-challenge | cd6d481659c40c91ac37c6d7a0bcb541639a6487 | [
"Apache-2.0"
] | 1 | 2020-04-22T06:51:45.000Z | 2020-04-22T06:51:45.000Z | lib/round_button.dart | janagrill/flutter-coding-challenge | cd6d481659c40c91ac37c6d7a0bcb541639a6487 | [
"Apache-2.0"
] | 1 | 2020-02-02T18:40:37.000Z | 2020-02-02T18:40:37.000Z | lib/round_button.dart | janagrill/flutter-coding-challenge | cd6d481659c40c91ac37c6d7a0bcb541639a6487 | [
"Apache-2.0"
] | 3 | 2020-02-02T13:35:33.000Z | 2020-02-03T14:20:44.000Z | import 'package:flutter/material.dart';
class RoundButton extends StatelessWidget {
final String text;
final IconData icon;
final Color backgroundColor;
final VoidCallback onPressed;
RoundButton({
@required this.text,
@required this.icon,
@required this.backgroundColor,
@required this.onPres... | 21.521739 | 43 | 0.491919 |
b09be00c55d29c332ecfd5a00d59405f33e6665f | 18,732 | py | Python | src/train/simulate.py | rmldj/random-graph-nn-paper | b04537f3312113b118878c37cb314a527c5b3a11 | [
"MIT"
] | 3 | 2020-03-23T14:00:35.000Z | 2020-09-24T13:56:18.000Z | src/train/simulate.py | rmldj/random-graph-nn-paper | b04537f3312113b118878c37cb314a527c5b3a11 | [
"MIT"
] | null | null | null | src/train/simulate.py | rmldj/random-graph-nn-paper | b04537f3312113b118878c37cb314a527c5b3a11 | [
"MIT"
] | null | null | null | import logging
import os
import pickle as pkl
import random
import sys
import time
import numpy as np
import torch
import torch.backends.cudnn as cudnn
import torch.nn as nn
import torch.nn.parallel
import torch.optim
import torch.utils.data
import torchvision.datasets as datasets
import torchvision.transforms as tran... | 33.45 | 114 | 0.642537 |
da88f6bb3a081d65861923373d8e7b07388ced85 | 279 | php | PHP | test/ConfigClasses/Valid/SimpleConfig.php | kostislav/php-class-symfony-service-config | 1503199d8874579f8b24cb3deaa619259bf38589 | [
"MIT"
] | 1 | 2021-09-16T07:24:49.000Z | 2021-09-16T07:24:49.000Z | test/ConfigClasses/Valid/SimpleConfig.php | kostislav/php-class-symfony-service-config | 1503199d8874579f8b24cb3deaa619259bf38589 | [
"MIT"
] | null | null | null | test/ConfigClasses/Valid/SimpleConfig.php | kostislav/php-class-symfony-service-config | 1503199d8874579f8b24cb3deaa619259bf38589 | [
"MIT"
] | null | null | null | <?php
namespace ConfigClasses\Valid;
use FakeServices\SimpleService;
use Kostislav\ClassConfig\ServiceDefinition;
class SimpleConfig {
#[ServiceDefinition(isPublic: true)]
public function someService(): SimpleService {
return new SimpleService('sesd');
}
} | 21.461538 | 50 | 0.74552 |
9fed6f7f1c32ccfb52371c8ee1658a782098afe5 | 1,539 | py | Python | python3/hackerrank_leetcode/coin_change/main.py | seLain/codesnippets | ae9a1fa05b67f4b3ac1703cc962fcf5f6de1e289 | [
"MIT"
] | null | null | null | python3/hackerrank_leetcode/coin_change/main.py | seLain/codesnippets | ae9a1fa05b67f4b3ac1703cc962fcf5f6de1e289 | [
"MIT"
] | null | null | null | python3/hackerrank_leetcode/coin_change/main.py | seLain/codesnippets | ae9a1fa05b67f4b3ac1703cc962fcf5f6de1e289 | [
"MIT"
] | null | null | null | '''
Hackerrank: https://www.hackerrank.com/challenges/coin-change/problem
this solution will get timeout in many test cases
however, this solution can get all the combination during computation
'''
import sys
from collections import Counter, defaultdict
sys.setrecursionlimit(10000)
memory = defaultdict(list)
def rec... | 29.037736 | 100 | 0.589994 |
da8329dfa63a5a263c3abd3b8b6095598ae89c5c | 616 | php | PHP | database/seeds/CategorySeeder.php | alihassany4ktech/mploya | 5da864ce3db7e9dfeac8199f0eaee393a039fb6d | [
"MIT"
] | null | null | null | database/seeds/CategorySeeder.php | alihassany4ktech/mploya | 5da864ce3db7e9dfeac8199f0eaee393a039fb6d | [
"MIT"
] | null | null | null | database/seeds/CategorySeeder.php | alihassany4ktech/mploya | 5da864ce3db7e9dfeac8199f0eaee393a039fb6d | [
"MIT"
] | null | null | null | <?php
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class CategorySeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('categories')->insert([
[
'title' => 'title 1',
... | 18.117647 | 41 | 0.349026 |
c9ea194d809586c898f53490fb5af985d487e697 | 891 | tsx | TypeScript | typescript_solutions/09_redux_fc/01_hotel_app/src/components/Navbar.tsx | Wantonius/opiframe-react-exercisebook | 719a71bddedcd2c17227900c801e135f2787ff63 | [
"MIT"
] | null | null | null | typescript_solutions/09_redux_fc/01_hotel_app/src/components/Navbar.tsx | Wantonius/opiframe-react-exercisebook | 719a71bddedcd2c17227900c801e135f2787ff63 | [
"MIT"
] | null | null | null | typescript_solutions/09_redux_fc/01_hotel_app/src/components/Navbar.tsx | Wantonius/opiframe-react-exercisebook | 719a71bddedcd2c17227900c801e135f2787ff63 | [
"MIT"
] | null | null | null | import React from 'react';
import {Link} from 'react-router-dom';
import {useSelector} from 'react-redux';
import HotelInfo from '../models/HotelInfo';
interface LoadingState {
loading:boolean;
}
interface ErrorState {
error:string
}
const Navbar:React.FC<{}> = () => {
const loadingState = (state:LoadingState)... | 21.214286 | 59 | 0.65881 |
4bd392558f3b8b06d432258ddd74f1827b7b5f2a | 2,821 | go | Go | auth/auth_service_test.go | racker/rmii-telemetry-envoy | 11c50792585e134c41c4d574ff7b64a2a35d01fe | [
"Apache-2.0"
] | 4 | 2019-06-24T14:49:37.000Z | 2021-12-07T22:29:34.000Z | auth/auth_service_test.go | racker/rmii-telemetry-envoy | 11c50792585e134c41c4d574ff7b64a2a35d01fe | [
"Apache-2.0"
] | 24 | 2018-11-16T03:50:49.000Z | 2020-07-31T14:10:33.000Z | auth/auth_service_test.go | racker/rmii-telemetry-envoy | 11c50792585e134c41c4d574ff7b64a2a35d01fe | [
"Apache-2.0"
] | 1 | 2019-06-24T14:50:18.000Z | 2019-06-24T14:50:18.000Z | /*
* Copyright 2020 Rackspace US, 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 agr... | 27.125 | 94 | 0.730946 |
28b6d0ad5c55b4478a83fe93ed1ab6d709811689 | 174 | sql | SQL | src/dialogflow-java-client-master/samples/clients/VirtualTradingAssistant/src/main/java/ai/examples/schema.sql | 16kozlowskim/Group-20-SE | ceb8c319643964a3f478772d8f10090962df567c | [
"MIT"
] | null | null | null | src/dialogflow-java-client-master/samples/clients/VirtualTradingAssistant/src/main/java/ai/examples/schema.sql | 16kozlowskim/Group-20-SE | ceb8c319643964a3f478772d8f10090962df567c | [
"MIT"
] | null | null | null | src/dialogflow-java-client-master/samples/clients/VirtualTradingAssistant/src/main/java/ai/examples/schema.sql | 16kozlowskim/Group-20-SE | ceb8c319643964a3f478772d8f10090962df567c | [
"MIT"
] | null | null | null | create table company (
name string,
count integer
);
create table attribute (
name string,
count integer
);
create table sector (
name string,
count integer
);
| 11.6 | 24 | 0.695402 |
07f3c2c1575246c69c0afa12b1528d65da54f519 | 1,868 | css | CSS | style.css | MosesGakuhi1857/Akan-name | 50707c31908809bac6ebfde13fa4265e1ecf92e8 | [
"MIT"
] | null | null | null | style.css | MosesGakuhi1857/Akan-name | 50707c31908809bac6ebfde13fa4265e1ecf92e8 | [
"MIT"
] | null | null | null | style.css | MosesGakuhi1857/Akan-name | 50707c31908809bac6ebfde13fa4265e1ecf92e8 | [
"MIT"
] | null | null | null | @import url('https://fonts.googleapis.com/css2?family=Oswald&display=swap');
body {
font-family: 'Oswald', sans-serif;
}
nav {
background-image: url(./assets/footer.ghana.jpg);
height: 40px;
width: 100%;
}
.container {
text-align: center;
}
img {
position: relative;
top: 30px;
backg... | 15.566667 | 76 | 0.597966 |
68985937694a6c2a1b9410eea9602221105eeee4 | 7,824 | php | PHP | resources/views/admin/tenants/show.blade.php | muhammad-sayg/juffair_gables_project | 0db75110ac74ef6a67a7fc5b3d3675442f4ba05f | [
"MIT"
] | null | null | null | resources/views/admin/tenants/show.blade.php | muhammad-sayg/juffair_gables_project | 0db75110ac74ef6a67a7fc5b3d3675442f4ba05f | [
"MIT"
] | null | null | null | resources/views/admin/tenants/show.blade.php | muhammad-sayg/juffair_gables_project | 0db75110ac74ef6a67a7fc5b3d3675442f4ba05f | [
"MIT"
] | null | null | null | @extends('layouts.admin.app')
{{-- Page title --}}
{{-- page level styles --}}
@section('header_styles')
<!-- Template CSS -->
<link rel="stylesheet" href="{{ asset('public/admin/assets') }}/css/components.css">
<style>
</style>
@stop
@section('content')
<section class="section">
{{-- <ul class="breadcrumb bre... | 44.708571 | 341 | 0.451559 |
a9ed1d6ebc46f1572cecdec17334da997c81f840 | 1,118 | php | PHP | resources/views/disposisi/create.blade.php | 161710091/Surat | 31cd6dedf352c48592373176bea1b99e9b174671 | [
"MIT"
] | null | null | null | resources/views/disposisi/create.blade.php | 161710091/Surat | 31cd6dedf352c48592373176bea1b99e9b174671 | [
"MIT"
] | null | null | null | resources/views/disposisi/create.blade.php | 161710091/Surat | 31cd6dedf352c48592373176bea1b99e9b174671 | [
"MIT"
] | null | null | null | @extends('layouts.admin')
@section('content')
<div class="row">
<div class="container-fluid">
<div class="col-md-12">
<div class="card card-info">
<div class="card-header">Add Disposisi
<div class="panel-title pull-right">
<a href="{{route('disposisi.index')}}" class="fa fa-arrow-left">Add</... | 31.055556 | 82 | 0.554562 |
8e7a8911e64f31c483bd66741cb0779e59263b01 | 7,227 | js | JavaScript | src/components/WineList.js | mmtakeuchi/wine-client | beda19b70adc84679b7ff4025220558259b70520 | [
"MIT"
] | 1 | 2021-04-26T02:45:27.000Z | 2021-04-26T02:45:27.000Z | src/components/WineList.js | mmtakeuchi/wine-client | beda19b70adc84679b7ff4025220558259b70520 | [
"MIT"
] | null | null | null | src/components/WineList.js | mmtakeuchi/wine-client | beda19b70adc84679b7ff4025220558259b70520 | [
"MIT"
] | null | null | null | import React, { useEffect } from "react";
import { Link } from "react-router-dom";
import { connect, useDispatch } from "react-redux";
import { getVarietals } from "../actions/varietalActions";
import { getOrigins } from "../actions/originActions";
import { makeStyles } from "@material-ui/core/styles";
import Container... | 32.408072 | 78 | 0.484157 |
8a385a8665e02e819b852b29940e904b02ce514b | 2,613 | swift | Swift | BankWallet/BankWallet/Modules/RestoreEos/RestoreEosPresenter.swift | isanth/unstoppable-wallet-ios | d21f9cd2446272754ce3943a248cd6262e9f0d48 | [
"MIT"
] | 3 | 2020-05-15T01:52:45.000Z | 2021-02-06T03:09:07.000Z | BankWallet/BankWallet/Modules/RestoreEos/RestoreEosPresenter.swift | WaltonChain/waltonchain-wallet-ios | 1f65f52377767a1ee64b4101dd3aa2cad84e846b | [
"MIT"
] | null | null | null | BankWallet/BankWallet/Modules/RestoreEos/RestoreEosPresenter.swift | WaltonChain/waltonchain-wallet-ios | 1f65f52377767a1ee64b4101dd3aa2cad84e846b | [
"MIT"
] | 1 | 2020-05-31T13:22:52.000Z | 2020-05-31T13:22:52.000Z | class RestoreEosPresenter {
weak var view: IRestoreEosView?
private let mode: RestoreRouter.PresentationMode
private let interactor: IRestoreEosInteractor
private let router: IRestoreEosRouter
private var state: RestoreEosPresenterState
init(mode: RestoreRouter.PresentationMode, interactor: I... | 26.13 | 143 | 0.629927 |
5aefee38e656f8395f6bb8debc008750e9112602 | 5,358 | cs | C# | src/Dfe.Spi.UkrlpAdapter.Infrastructure.UkrlpSoapApi.UnitTests/WhenBuildingMessageToGetSpecificUkprns.cs | DFE-Digital/spi-ukrlp-adapter | ec1f905d403c18df733ae2881ccfc4dd3c338868 | [
"MIT"
] | null | null | null | src/Dfe.Spi.UkrlpAdapter.Infrastructure.UkrlpSoapApi.UnitTests/WhenBuildingMessageToGetSpecificUkprns.cs | DFE-Digital/spi-ukrlp-adapter | ec1f905d403c18df733ae2881ccfc4dd3c338868 | [
"MIT"
] | 1 | 2022-01-13T10:11:05.000Z | 2022-01-13T10:11:05.000Z | src/Dfe.Spi.UkrlpAdapter.Infrastructure.UkrlpSoapApi.UnitTests/WhenBuildingMessageToGetSpecificUkprns.cs | DFE-Digital/spi-ukrlp-adapter | ec1f905d403c18df733ae2881ccfc4dd3c338868 | [
"MIT"
] | 1 | 2021-04-10T21:51:23.000Z | 2021-04-10T21:51:23.000Z | using System.Linq;
using System.Xml.Linq;
using AutoFixture;
using NUnit.Framework;
namespace Dfe.Spi.UkrlpAdapter.Infrastructure.UkrlpSoapApi.UnitTests
{
public class WhenBuildingMessageToGetSpecificUkprns
{
private static readonly XNamespace soapNs = "http://schemas.xmlsoap.org/soap/envelope/";
... | 39.397059 | 125 | 0.637738 |
b9446f5f861237abcfe60e183b377b424d13dc48 | 2,182 | swift | Swift | Fakestagram-Xcode10/Fakestagram-Xcode10/ViewControllers/CameraViewController.swift | dolmayan21/fakestagram-ios | fd728fd0224d7296224ae5f7c9f9393965010fbc | [
"MIT"
] | null | null | null | Fakestagram-Xcode10/Fakestagram-Xcode10/ViewControllers/CameraViewController.swift | dolmayan21/fakestagram-ios | fd728fd0224d7296224ae5f7c9f9393965010fbc | [
"MIT"
] | null | null | null | Fakestagram-Xcode10/Fakestagram-Xcode10/ViewControllers/CameraViewController.swift | dolmayan21/fakestagram-ios | fd728fd0224d7296224ae5f7c9f9393965010fbc | [
"MIT"
] | null | null | null | //
// CameraViewController.swift
// Fakestagram-Xcode10
//
// Created by Ruben Alejandro Leon Del Villar on 19/10/19.
// Copyright © 2019 unam. All rights reserved.
//
import UIKit
import CoreLocation
class CameraViewController: UIViewController, CLLocationManagerDelegate {
let locationManager = CLLocationMan... | 30.305556 | 107 | 0.642988 |
14be68b43eb7c98cae87b1f532b2b25de1bbab50 | 628 | ts | TypeScript | Sources/Common/DataModel/Line/index.d.ts | HovaLabs/vtk-js | cbc26d5feefaea1765b374f08155e35165834811 | [
"BSD-3-Clause"
] | null | null | null | Sources/Common/DataModel/Line/index.d.ts | HovaLabs/vtk-js | cbc26d5feefaea1765b374f08155e35165834811 | [
"BSD-3-Clause"
] | null | null | null | Sources/Common/DataModel/Line/index.d.ts | HovaLabs/vtk-js | cbc26d5feefaea1765b374f08155e35165834811 | [
"BSD-3-Clause"
] | null | null | null | export interface T100 {
t: number;
distance: number;
}
declare function distanceToLine(x: any, p1: any, p2: any, closestPoint?: any): T100;
declare function intersection(a1: any, a2: any, b1: any, b2: any, u: any, v: any): any;
export interface T101 {
distanceToLine: typeof distanceToLine;
intersection:... | 31.4 | 88 | 0.718153 |
4ceb8d9d0e97ed079332d10b37a95f8d236b4784 | 4,894 | py | Python | real-world-examples/linkedin_profile_views.py | AlienCoders/learning-python | 255dc32400b79db83382e707c96df029cfe30b24 | [
"MIT"
] | 19 | 2019-08-30T06:51:52.000Z | 2022-03-11T18:44:29.000Z | real-world-examples/linkedin_profile_views.py | AlienCoders/learning-python | 255dc32400b79db83382e707c96df029cfe30b24 | [
"MIT"
] | 9 | 2020-02-14T09:21:20.000Z | 2022-03-08T09:38:09.000Z | real-world-examples/linkedin_profile_views.py | AlienCoders/learning-python | 255dc32400b79db83382e707c96df029cfe30b24 | [
"MIT"
] | 12 | 2020-07-20T18:49:45.000Z | 2021-12-18T11:20:03.000Z | import requests # pip install requests
from bs4 import BeautifulSoup # pip install beautifulsoup4
import re # module for regular expression activities
import getpass # invisible password in terminal
import sys
# This script is to list the linkedin viewers for your profile
# Thanks to Prudhvi Pentakota for sharing this... | 38.84127 | 146 | 0.699224 |
fa3601c6cb60c9c0200636a17693bc5d3438e55b | 471 | cpp | C++ | BASIC c++/pointer-and-referencers/pointer1.cpp | jattramesh/Learning_git | 5191ecc6c0c11b69b9786f2a8bdd3db7228987d6 | [
"MIT"
] | null | null | null | BASIC c++/pointer-and-referencers/pointer1.cpp | jattramesh/Learning_git | 5191ecc6c0c11b69b9786f2a8bdd3db7228987d6 | [
"MIT"
] | null | null | null | BASIC c++/pointer-and-referencers/pointer1.cpp | jattramesh/Learning_git | 5191ecc6c0c11b69b9786f2a8bdd3db7228987d6 | [
"MIT"
] | null | null | null | //
// Created by Rahul on 6/5/2019.
//
#include <iostream>
#include<math.h>
using namespace std;
int var,*ptr;
int main()
{
var=100;
ptr=&var;
cout<<"value of var "<<var<<"address of ptr"<<&var<<endl;
cout<<"value pf ptr "<<ptr<<"address od ptr "<<&ptr<<endl;
long a=10,b;
long *ptr;
ptr=&a;... | 17.444444 | 62 | 0.532909 |
584dfe9a5c1025fb2a5795e34ed23c78cd944ed6 | 12,768 | rb | Ruby | spec/models/ci/runner_spec.rb | dzaporozhets/gitlabhq | a550942de1085eae4c60c498097ab191f8acfc0c | [
"MIT"
] | 1 | 2019-03-04T15:05:10.000Z | 2019-03-04T15:05:10.000Z | spec/models/ci/runner_spec.rb | dzaporozhets/gitlabhq | a550942de1085eae4c60c498097ab191f8acfc0c | [
"MIT"
] | 11 | 2020-04-30T14:31:37.000Z | 2022-03-02T07:17:53.000Z | spec/models/ci/runner_spec.rb | dzaporozhets/gitlabhq | a550942de1085eae4c60c498097ab191f8acfc0c | [
"MIT"
] | 2 | 2020-11-04T05:29:36.000Z | 2021-04-22T08:34:08.000Z | require 'spec_helper'
describe Ci::Runner do
describe 'validation' do
it { is_expected.to validate_presence_of(:access_level) }
context 'when runner is not allowed to pick untagged jobs' do
context 'when runner does not have tags' do
it 'is not valid' do
runner = build(:ci_runner, ta... | 25.383698 | 102 | 0.636513 |
1f777b7fe69102201de68b0fd19b2d70f3d33a3a | 3,490 | cs | C# | Assets/Live2D/Cubism/Framework/Expression/CubismPlayingExpression.cs | MurlocTW/Live2DLighting | 7f31d06915d6395f77212eef240430105d09c2b7 | [
"MIT"
] | 114 | 2019-05-17T02:17:14.000Z | 2022-02-20T04:41:59.000Z | Assets/Live2D/Cubism/Framework/Expression/CubismPlayingExpression.cs | MurlocTW/Live2DLighting | 7f31d06915d6395f77212eef240430105d09c2b7 | [
"MIT"
] | 2 | 2019-05-15T18:58:03.000Z | 2022-03-29T02:22:11.000Z | Assets/Live2D/Cubism/Framework/Expression/CubismPlayingExpression.cs | MurlocTW/Live2DLighting | 7f31d06915d6395f77212eef240430105d09c2b7 | [
"MIT"
] | 16 | 2019-05-25T02:51:40.000Z | 2022-02-11T03:40:34.000Z | /*
* Copyright(c) Live2D Inc. All rights reserved.
*
* Use of this source code is governed by the Live2D Open Software license
* that can be found at http://live2d.com/eula/live2d-open-software-license-agreement_en.html.
*/
using Live2D.Cubism.Core;
using UnityEngine;
namespace Live2D.Cubism.Framework.Expressi... | 28.606557 | 108 | 0.542407 |
6fa3e0280721d1343962ce253d07fff4f98cab83 | 2,013 | dart | Dart | lib/pages/views/archive_view.dart | muqaddir/realiq_fluffy | c18dad164c26baaedbaef076e397821b14e1118e | [
"MIT"
] | null | null | null | lib/pages/views/archive_view.dart | muqaddir/realiq_fluffy | c18dad164c26baaedbaef076e397821b14e1118e | [
"MIT"
] | null | null | null | lib/pages/views/archive_view.dart | muqaddir/realiq_fluffy | c18dad164c26baaedbaef076e397821b14e1118e | [
"MIT"
] | null | null | null | import 'package:famedlysdk/famedlysdk.dart';
import 'package:realiq_fluffy/pages/archive.dart';
import 'package:realiq_fluffy/widgets/list_items/chat_list_item.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
class ArchiveView extends StatelessWidget {
final ArchiveCont... | 33.55 | 77 | 0.558867 |
c288696525c689ea66c916d06642de3cebd5cf12 | 841 | swift | Swift | src/nodekit/NKScripting/util/NKDisposable.swift | nodekit-io/nodekit-darwin-lite | af09ab257c9ff375359f3003e91df6e6c3e73fe6 | [
"Apache-2.0"
] | 8 | 2016-11-20T12:04:40.000Z | 2021-06-21T13:25:16.000Z | src/nodekit/NKScripting/util/NKDisposable.swift | nodekit-io/nodekit-darwin-lite | af09ab257c9ff375359f3003e91df6e6c3e73fe6 | [
"Apache-2.0"
] | 5 | 2017-08-22T21:13:00.000Z | 2020-07-22T21:37:37.000Z | src/nodekit/NKScripting/util/NKDisposable.swift | nodekit-io/nodekit-darwin-lite | af09ab257c9ff375359f3003e91df6e6c3e73fe6 | [
"Apache-2.0"
] | 4 | 2016-09-12T13:57:28.000Z | 2020-11-16T06:55:47.000Z | /*
* nodekit.io
*
* Copyright (c) 2016 OffGrid Networks. 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
*
... | 30.035714 | 75 | 0.728894 |
64c385d211c174ccc540bb8dc5da1f0b7f8465b1 | 531 | sql | SQL | src/test/resources/test-reorg-table.sql | pdjohe/liquibase-db2-enhanced | 6025e917b51980bf78f50d0700c9598787278ca2 | [
"Apache-2.0"
] | null | null | null | src/test/resources/test-reorg-table.sql | pdjohe/liquibase-db2-enhanced | 6025e917b51980bf78f50d0700c9598787278ca2 | [
"Apache-2.0"
] | 2 | 2021-12-07T17:54:53.000Z | 2022-03-18T13:44:59.000Z | src/test/resources/test-reorg-table.sql | pdjohe/liquibase-db2-enhanced | 6025e917b51980bf78f50d0700c9598787278ca2 | [
"Apache-2.0"
] | null | null | null | ---------------------------------------------------------------------------------
-- Test reorg table
---------------------------------------------------------------------------------
SET CURRENT SCHEMA = 'DB2TEST';
SET CURRENT PATH = 'DB2TEST';
CREATE TABLE "TEST_REORG" (
"OBJ_ID" BIGINT NOT NULL,
"TEXT"... | 31.235294 | 81 | 0.480226 |