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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
79b47548b7b876e7ac68c81e6cbe35506f63c70e | 685 | php | PHP | admin/feedback_del.php | 7jx/e-commerce | b225596b967d9725fafd4ff6c70ea442c6cdcce8 | [
"MIT"
] | null | null | null | admin/feedback_del.php | 7jx/e-commerce | b225596b967d9725fafd4ff6c70ea442c6cdcce8 | [
"MIT"
] | null | null | null | admin/feedback_del.php | 7jx/e-commerce | b225596b967d9725fafd4ff6c70ea442c6cdcce8 | [
"MIT"
] | null | null | null | <?php
require_once 'islogin.php';
require_once '../plus/DbMysql.php';
$id=@$_GET["id"];
if($id=="")
{
echo "<script>alert('Required parameter missingID');location.href='feedback.php';</script>";
exit();
}
$db = new DbMysql();
$db->sql("select * from feedback where id=$id");
if($db->affected()!=1)
{
... | 17.125 | 96 | 0.632117 |
dd7fd88f9da9048e329fff09f21e14e4644a1b28 | 3,138 | java | Java | ReflexMechanism/ReflectAndAgentDemo.java | tewentong/JavaHub | 021e9a2366f0f8a842d7af970c1432e9099bbc1c | [
"MIT"
] | null | null | null | ReflexMechanism/ReflectAndAgentDemo.java | tewentong/JavaHub | 021e9a2366f0f8a842d7af970c1432e9099bbc1c | [
"MIT"
] | null | null | null | ReflexMechanism/ReflectAndAgentDemo.java | tewentong/JavaHub | 021e9a2366f0f8a842d7af970c1432e9099bbc1c | [
"MIT"
] | null | null | null | /*
Java反射编程
反射与代理设计模式
代理设计模式是在程序开发之中使用最多的设计模式,代理设计模式的核心是:有真实业务实现类,与代理业务实现类
并且代理类要完成比真实业务更多的处理操作
传统代理设计模式的弊端:
所有的代理设计模式如果按照设计要求来讲,必须是基于接口的设计,也就是说需要首先定义出核心接口的组成
下面模拟一个消息发送的代理操作结构
范例:传统代理设计
interface IMessage0315 { // 传统代理设计必须有接口
... | 32.020408 | 79 | 0.489165 |
7bfc9c9692accf77ebdcced6a2db22ba8979b873 | 5,356 | cpp | C++ | Cpp/SDK/W_Marker_Request_functions.cpp | MrManiak/Squad-SDK | 742feb5991ae43d6f0cedd2d6b32b949923ca4f9 | [
"Apache-2.0"
] | 1 | 2020-08-15T08:31:55.000Z | 2020-08-15T08:31:55.000Z | Cpp/SDK/W_Marker_Request_functions.cpp | MrManiak/Squad-SDK | 742feb5991ae43d6f0cedd2d6b32b949923ca4f9 | [
"Apache-2.0"
] | 2 | 2020-08-15T08:43:56.000Z | 2021-01-15T05:04:48.000Z | Cpp/SDK/W_Marker_Request_functions.cpp | MrManiak/Squad-SDK | 742feb5991ae43d6f0cedd2d6b32b949923ca4f9 | [
"Apache-2.0"
] | 2 | 2020-08-10T12:05:42.000Z | 2021-02-12T19:56:10.000Z | // Name: S, Version: b
#include "../SDK.h"
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
/*!!HELPER_DEF!!*/
/*!!DEFINE!!*/
namespace UFT
{
//---------------------------------------------------------------------------
// Functions
//---------------------------------------------------------------------------
// ... | 31.321637 | 176 | 0.740291 |
68d860325bc86be946ac6831b07973de6a0c7d43 | 1,326 | rb | Ruby | standalone/pruntime/client/console.rb | Soptq/phala-blockchain | f2fbd1e62b1b8c2567bfed993ae85a56f227a880 | [
"Apache-2.0"
] | 279 | 2020-02-04T17:09:57.000Z | 2022-03-30T19:13:51.000Z | standalone/pruntime/client/console.rb | Soptq/phala-blockchain | f2fbd1e62b1b8c2567bfed993ae85a56f227a880 | [
"Apache-2.0"
] | 317 | 2020-01-21T18:12:12.000Z | 2022-03-29T13:25:51.000Z | standalone/pruntime/client/console.rb | Soptq/phala-blockchain | f2fbd1e62b1b8c2567bfed993ae85a56f227a880 | [
"Apache-2.0"
] | 119 | 2020-02-03T06:05:16.000Z | 2022-03-30T21:41:27.000Z | #!/usr/bin/env ruby
# frozen_string_literal: true
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("Gemfile", __dir__)
require "bundler/setup" # Set up gems listed in the Gemfile.
require 'active_support'
require 'active_support/core_ext'
require "pry"
require "faraday"
require "faraday_middleware"
HOST = "http://local... | 20.090909 | 67 | 0.648567 |
e0084f9baf00be943a97b97490458ffa409b664c | 10,210 | c | C | softuart/softuart.c | d51x/esp-iot-home-components | f2fe397efab7238177d806f523f51cd3b8bba666 | [
"MIT"
] | 1 | 2020-12-23T20:48:04.000Z | 2020-12-23T20:48:04.000Z | softuart/softuart.c | d51x/esp-iot-home-components | f2fe397efab7238177d806f523f51cd3b8bba666 | [
"MIT"
] | null | null | null | softuart/softuart.c | d51x/esp-iot-home-components | f2fe397efab7238177d806f523f51cd3b8bba666 | [
"MIT"
] | null | null | null | /*
* Softuart
* Copyright (C) 2020 d51x <dimonich110@@gmail.com>
* Copyright (C) 2020 Ivan Belokobylskiy <belokobylskij@gmail.com>
* Copyright (C) 2017 Ruslan V. Uss <unclerus@gmail.com>
* Copyright (C) 2016 Bernhard Guillon <Bernhard.Guillon@web.de>
*
* The code is slightly modified to use ESP8266_RTOS S... | 27.299465 | 131 | 0.589716 |
88b10ac8b62c62f70b9af7a8094fae5774659d5a | 469 | rb | Ruby | lib/mechanize/form/check_box.rb | ucusita/mechanize | ff22ae0dd9908d73c3fad73b8e6f7c90d18650b1 | [
"MIT"
] | 2,331 | 2015-01-01T11:30:26.000Z | 2022-03-30T20:51:38.000Z | lib/mechanize/form/check_box.rb | ucusita/mechanize | ff22ae0dd9908d73c3fad73b8e6f7c90d18650b1 | [
"MIT"
] | 183 | 2015-01-14T22:25:15.000Z | 2022-03-30T08:12:51.000Z | lib/mechanize/form/check_box.rb | ucusita/mechanize | ff22ae0dd9908d73c3fad73b8e6f7c90d18650b1 | [
"MIT"
] | 290 | 2015-01-01T17:04:01.000Z | 2022-03-25T05:20:29.000Z | # frozen_string_literal: true
##
# This class represents a check box found in a Form. To activate the CheckBox
# in the Form, set the checked method to true.
class Mechanize::Form::CheckBox < Mechanize::Form::RadioButton
def query_value
[[@name, @value || "on"]]
end
def inspect # :nodoc:
"[%s:0x%x t... | 22.333333 | 78 | 0.639659 |
eb05446d189265b84204ebb0b570f74fd72aebce | 3,052 | css | CSS | src/theme/dialog.css | hudhudhud/wjxt-formGenerator | 3bfbfbcf75178b5060ea3399182a159627575e4b | [
"Apache-2.0"
] | null | null | null | src/theme/dialog.css | hudhudhud/wjxt-formGenerator | 3bfbfbcf75178b5060ea3399182a159627575e4b | [
"Apache-2.0"
] | null | null | null | src/theme/dialog.css | hudhudhud/wjxt-formGenerator | 3bfbfbcf75178b5060ea3399182a159627575e4b | [
"Apache-2.0"
] | null | null | null | .v-modal-enter { -webkit-animation: v-modal-in 0.2s ease; animation: v-modal-in 0.2s ease; }
.v-modal-leave { -webkit-animation: v-modal-out 0.2s ease forwards; animation: v-modal-out 0.2s ease forwards; }
@-webkit-keyframes v-modal-in { 0% { opacity: 0; } }
@keyframes v-modal-in { 0% { opacity: 0; } }
@-webkit-keyfram... | 74.439024 | 253 | 0.684142 |
dd7bd71ac6f7809e516e0bf1a31b2ef9aba18c28 | 971 | java | Java | plugins/org.eclipse.tm.terminal.view.ui/src/org/eclipse/tm/terminal/view/ui/listeners/WorkbenchWindowListener.java | hernad/dbeaver | c870417912fa712d3e96388c8c8ad33e4d962031 | [
"Apache-2.0"
] | null | null | null | plugins/org.eclipse.tm.terminal.view.ui/src/org/eclipse/tm/terminal/view/ui/listeners/WorkbenchWindowListener.java | hernad/dbeaver | c870417912fa712d3e96388c8c8ad33e4d962031 | [
"Apache-2.0"
] | null | null | null | plugins/org.eclipse.tm.terminal.view.ui/src/org/eclipse/tm/terminal/view/ui/listeners/WorkbenchWindowListener.java | hernad/dbeaver | c870417912fa712d3e96388c8c8ad33e4d962031 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
* Copyright (c) 2014, 2018 Wind River Systems, Inc. and others. All rights reserved.
* This program and the accompanying materials are made available under the terms
* of the Eclipse Public License 2.0 which accompanies this distributio... | 35.962963 | 85 | 0.641607 |
652df25b26f23304d64962894f32d680bdc31e24 | 125 | dart | Dart | lib/src/app_mode.dart | dafesimonek/koronac-na-akci | 4881e8973bf8d92a92628001ad3cff4451095460 | [
"Apache-2.0"
] | null | null | null | lib/src/app_mode.dart | dafesimonek/koronac-na-akci | 4881e8973bf8d92a92628001ad3cff4451095460 | [
"Apache-2.0"
] | null | null | null | lib/src/app_mode.dart | dafesimonek/koronac-na-akci | 4881e8973bf8d92a92628001ad3cff4451095460 | [
"Apache-2.0"
] | null | null | null | ///
/// Environment - production or test?
///
/// See:
/// main_prod.dart
/// main_test.dart
///
enum AppMode { PROD, TEST }
| 13.888889 | 37 | 0.6 |
c3f772db5941d7fa063422e99d5435223a314415 | 787 | cs | C# | src/E01D.Base.Api/Coding/Code/Api/E01D/Core/Primitives/SingleApi.cs | E01D/Base | 17ae4a28cb0b4347a19ebb2c06b19a6c080ad47e | [
"Apache-2.0"
] | null | null | null | src/E01D.Base.Api/Coding/Code/Api/E01D/Core/Primitives/SingleApi.cs | E01D/Base | 17ae4a28cb0b4347a19ebb2c06b19a6c080ad47e | [
"Apache-2.0"
] | null | null | null | src/E01D.Base.Api/Coding/Code/Api/E01D/Core/Primitives/SingleApi.cs | E01D/Base | 17ae4a28cb0b4347a19ebb2c06b19a6c080ad47e | [
"Apache-2.0"
] | null | null | null | using System.Globalization;
namespace Root.Coding.Code.Api.E01D.Core.Primitives
{
public class SingleApi
{
/// <summary>
/// Reads the single value from the json node
/// </summary>
/// <param name="node"></param>
/// <returns></returns>
public float Read(string... | 26.233333 | 77 | 0.551461 |
038a037401ada803a689279a86d1d05acf7e89aa | 75,278 | lua | Lua | opencl/init.lua | LuaDist-testing/opencl | 447c01353d81844e6a469275e57a563dfdb63697 | [
"MIT"
] | null | null | null | opencl/init.lua | LuaDist-testing/opencl | 447c01353d81844e6a469275e57a563dfdb63697 | [
"MIT"
] | null | null | null | opencl/init.lua | LuaDist-testing/opencl | 447c01353d81844e6a469275e57a563dfdb63697 | [
"MIT"
] | null | null | null | ------------------------------------------------------------------------------
-- OpenCL for Lua.
-- Copyright © 2013–2015 Peter Colberg.
-- Distributed under the MIT license. (See accompanying file LICENSE.)
------------------------------------------------------------------------------
local C = require("opencl.C")
l... | 47.434152 | 146 | 0.706661 |
b26104365f1e5ddb43fb380af7d319ffc4c79676 | 1,553 | kt | Kotlin | nodecore-miners-pop/src/main/java/nodecore/miners/pop/BootstrapModule.kt | dimitryB/nodecore | 5df4ac5f48a598dde94d57d5810882a548d4d23d | [
"MIT"
] | null | null | null | nodecore-miners-pop/src/main/java/nodecore/miners/pop/BootstrapModule.kt | dimitryB/nodecore | 5df4ac5f48a598dde94d57d5810882a548d4d23d | [
"MIT"
] | null | null | null | nodecore-miners-pop/src/main/java/nodecore/miners/pop/BootstrapModule.kt | dimitryB/nodecore | 5df4ac5f48a598dde94d57d5810882a548d4d23d | [
"MIT"
] | null | null | null | package nodecore.miners.pop
import nodecore.miners.pop.common.BitcoinNetwork
import nodecore.miners.pop.contracts.BlockStore
import nodecore.miners.pop.services.*
import nodecore.miners.pop.shell.PopShell
import nodecore.miners.pop.tasks.ProcessManager
import org.bitcoinj.core.Context
import org.bitcoinj.core.NetworkP... | 34.511111 | 79 | 0.675467 |
c26528e86a12ceca9cf151495ff66bff62a22822 | 2,663 | h | C | distributed/include/work.h | jangmys/pbb | b53111ff3016cbf6885e99537ff80528e602bff6 | [
"BSD-3-Clause"
] | 1 | 2022-03-22T17:14:21.000Z | 2022-03-22T17:14:21.000Z | distributed/include/work.h | jangmys/pbb | b53111ff3016cbf6885e99537ff80528e602bff6 | [
"BSD-3-Clause"
] | null | null | null | distributed/include/work.h | jangmys/pbb | b53111ff3016cbf6885e99537ff80528e602bff6 | [
"BSD-3-Clause"
] | null | null | null | #ifndef WORK_H
#define WORK_H
//=====================================================
#include <pthread.h>
#include <iostream>
#include <vector>
#include <queue>
#include <memory>
#include "interval.h"
#include "gmp.h"
#include "gmpxx.h"
// class pbab;
class interval;
typedef std::shared_ptr<interval> INTERVAL_PTR... | 22.760684 | 115 | 0.651896 |
b01c04404aef4086cf534109b8de74aa4cb5ab99 | 5,083 | py | Python | ccontrol/utils/run.py | PierreMsy/DRL_continuous_control | 40a443ea2c7415a5dd7185114da0f06902122c4b | [
"MIT"
] | null | null | null | ccontrol/utils/run.py | PierreMsy/DRL_continuous_control | 40a443ea2c7415a5dd7185114da0f06902122c4b | [
"MIT"
] | null | null | null | ccontrol/utils/run.py | PierreMsy/DRL_continuous_control | 40a443ea2c7415a5dd7185114da0f06902122c4b | [
"MIT"
] | null | null | null | import os
import numpy as np
from collections import deque
from ccontrol.utils import save_scores, save_AC_models, save_configuration
class Runner:
def __init__(self) -> None:
file_location = os.path.dirname(__file__)
self.path_score = os.path.join(file_location, r'./../../output/score')
... | 40.664 | 117 | 0.508951 |
3ff37b9d80a9f83b1ed294c9111fb0ded4bd371f | 523 | rb | Ruby | app/policies/name_card_apply_policy.rb | jasl-lab/cybros_portal | fe85e5d217450e1bae916aade38878302cea5e09 | [
"MIT"
] | 1 | 2021-07-08T07:14:01.000Z | 2021-07-08T07:14:01.000Z | app/policies/name_card_apply_policy.rb | jasl-lab/cybros_portal | fe85e5d217450e1bae916aade38878302cea5e09 | [
"MIT"
] | null | null | null | app/policies/name_card_apply_policy.rb | jasl-lab/cybros_portal | fe85e5d217450e1bae916aade38878302cea5e09 | [
"MIT"
] | null | null | null | # frozen_string_literal: true
class NameCardApplyPolicy < ApplicationPolicy
class Scope < Scope
def resolve
if user.admin? || user.roles.pluck(:role_name).any? { |r| r.in?(%w[管理名片]) }
scope.all
else
scope.where(user_id: user.id).or(scope.where(email: user.email))
end
end
e... | 23.772727 | 81 | 0.615679 |
e6dc92824a9899ad49b923854516fc466a0efd63 | 2,271 | sh | Shell | courses/machine_learning/deepdive/09_sequence/setup_kubeflow.sh | Glairly/introduction_to_tensorflow | aa0a44d9c428a6eb86d1f79d73f54c0861b6358d | [
"Apache-2.0"
] | 2 | 2022-01-06T11:52:57.000Z | 2022-01-09T01:53:56.000Z | courses/machine_learning/deepdive/09_sequence_keras/setup_kubeflow.sh | Glairly/introduction_to_tensorflow | aa0a44d9c428a6eb86d1f79d73f54c0861b6358d | [
"Apache-2.0"
] | null | null | null | courses/machine_learning/deepdive/09_sequence_keras/setup_kubeflow.sh | Glairly/introduction_to_tensorflow | aa0a44d9c428a6eb86d1f79d73f54c0861b6358d | [
"Apache-2.0"
] | null | null | null | #!/bin/sh
install_ksonnet() {
wget https://github.com/ksonnet/ksonnet/releases/download/v0.8.0/ks_0.8.0_linux_amd64.tar.gz
tar xvfz ks_0.8.0_linux_amd64.tar.gz
}
install_kubeflow() {
rm -rf kubeflow-app
ks init kubeflow-app
cd kubeflow-app
ks registry add kubeflow github.com/kubeflow/kubeflow/t... | 28.037037 | 143 | 0.715544 |
8687b286bd8bbeb11762e4a0fc0ce93d5ff991e6 | 2,205 | dart | Dart | 1111_example_flutter/flutter_dadi/example/demo06.dart | seerwo/computer_science | 7b0075d7a6d8b25bae1e32bf43f597cccaded61a | [
"MIT"
] | null | null | null | 1111_example_flutter/flutter_dadi/example/demo06.dart | seerwo/computer_science | 7b0075d7a6d8b25bae1e32bf43f597cccaded61a | [
"MIT"
] | null | null | null | 1111_example_flutter/flutter_dadi/example/demo06.dart | seerwo/computer_science | 7b0075d7a6d8b25bae1e32bf43f597cccaded61a | [
"MIT"
] | null | null | null |
void main(){
var list = <String>['香蕉','苹果','西瓜'];
print(list);
list.add("草莓");
print(list);
print(list.length); //4
print(list.isEmpty); //false
print(list.isNotEmpty);
print(list.reversed); //翻转 队列表倒叙排序
var newMyList = list.reversed.toList();
print(newMyList);
list.add('桃子'); //增加一个数据 增加一个
... | 17.782258 | 61 | 0.569615 |
ff29e1b18d804b039630e12a55317f9a30c8e4c2 | 3,539 | py | Python | helper/f2g_omim_analyze.py | PEDIA-Charite/PEDIA-workflow | f0ab0c7ed3833edb01ad0772ad294978b71feb64 | [
"MIT"
] | 9 | 2017-10-16T17:04:48.000Z | 2021-11-03T13:09:11.000Z | helper/f2g_omim_analyze.py | PEDIA-Charite/PEDIA-workflow | f0ab0c7ed3833edb01ad0772ad294978b71feb64 | [
"MIT"
] | 60 | 2017-05-22T15:43:06.000Z | 2022-02-07T22:16:48.000Z | helper/f2g_omim_analyze.py | PEDIA-Charite/PEDIA-workflow | f0ab0c7ed3833edb01ad0772ad294978b71feb64 | [
"MIT"
] | 9 | 2017-11-27T16:19:11.000Z | 2021-01-24T03:48:08.000Z | import os
import json
import csv
from pprint import pprint
from collections import defaultdict
with open("f2g_library_dump.json", "r") as f2g_lib:
syndromes = json.load(f2g_lib)
ps_dict = {}
mim_to_ps = {}
with open("data/phenotypicSeries.txt", "r") as ps_data:
for raw_entry in csv.DictReader(
(r ... | 25.278571 | 77 | 0.552981 |
a41392640d1724f5759d7b8741b12a6a04c9ead8 | 2,012 | php | PHP | app/Http/Controllers/WebhookController.php | CODevR3IT/avaluosNew_backend | 8257795051cd4791f8751d390d401e077d7c0bfc | [
"MIT"
] | null | null | null | app/Http/Controllers/WebhookController.php | CODevR3IT/avaluosNew_backend | 8257795051cd4791f8751d390d401e077d7c0bfc | [
"MIT"
] | null | null | null | app/Http/Controllers/WebhookController.php | CODevR3IT/avaluosNew_backend | 8257795051cd4791f8751d390d401e077d7c0bfc | [
"MIT"
] | 1 | 2021-03-10T21:20:33.000Z | 2021-03-10T21:20:33.000Z | <?php
namespace App\Http\Controllers;
use Illuminate\Support\Facades\Crypt;
use App\Http\ThirdParty\SolucionIdeas;
use Illuminate\Support\Facades\Storage;
use Illuminate\Http\Request;
use Carbon\Carbon;
use Hamcrest\Arrays\IsArray;
use Log;
class WebhookController extends Controller
{
/**
* Create a new contr... | 30.484848 | 81 | 0.50994 |
8dcbede585ff05926d77e7c5cb10689839f0b3d8 | 1,318 | js | JavaScript | models/user.js | Ejiro-Edwin/Invoice-App | 05e8c1cd1592db45bb15b39118136a21e2dc7ee7 | [
"MIT"
] | null | null | null | models/user.js | Ejiro-Edwin/Invoice-App | 05e8c1cd1592db45bb15b39118136a21e2dc7ee7 | [
"MIT"
] | null | null | null | models/user.js | Ejiro-Edwin/Invoice-App | 05e8c1cd1592db45bb15b39118136a21e2dc7ee7 | [
"MIT"
] | null | null | null | const Joi = require('joi');
const mongoose = require('mongoose');
const jwt = require('jsonwebtoken');
const config =require('config');
const userSchema = new mongoose.Schema({
firstname: {
type: String,
required: true,
minlength: 5,
maxlength: 50
},
lastname: {
type... | 24.867925 | 74 | 0.594841 |
fe3d7d50241a185d564c1da962cdf79c70ce7588 | 218 | dart | Dart | lib/src/model/scan_session.dart | EstefaniaRealcore/flutter_reactive_ble | ea29bd23152c4257294bb9e468950247cf98a63f | [
"BSD-3-Clause"
] | 1 | 2021-09-03T09:29:31.000Z | 2021-09-03T09:29:31.000Z | lib/src/model/scan_session.dart | jonahwilliams/flutter_reactive_ble | 6e0597449a7faf49f97548832a5fbb33b6ddb9ce | [
"BSD-3-Clause"
] | null | null | null | lib/src/model/scan_session.dart | jonahwilliams/flutter_reactive_ble | 6e0597449a7faf49f97548832a5fbb33b6ddb9ce | [
"BSD-3-Clause"
] | null | null | null | import 'package:flutter_reactive_ble/src/model/uuid.dart';
class ScanSession {
final List<Uuid> withServices;
final Future<void> future;
const ScanSession({required this.withServices, required this.future});
}
| 24.222222 | 72 | 0.775229 |
56a108a65d39a802d9291f9d924e0c5000b9cc5d | 32,502 | lua | Lua | HUD/.HUD.lua | Zavian/Tabletop-Simulator-Scripts | 42dabbf1a18d920383c290218b1a00898f0b00b8 | [
"MIT"
] | 6 | 2020-04-27T23:05:32.000Z | 2021-09-19T13:30:25.000Z | HUD/.HUD.lua | Zavian/Tabletop-Simulator-Scripts | 42dabbf1a18d920383c290218b1a00898f0b00b8 | [
"MIT"
] | null | null | null | HUD/.HUD.lua | Zavian/Tabletop-Simulator-Scripts | 42dabbf1a18d920383c290218b1a00898f0b00b8 | [
"MIT"
] | null | null | null | --#region initiative-hud
local _defaults = {
color = {
ally = "#66ba6b",
neutral = "#d5d165",
player = "#7e7dbb",
enemy = "#BD5365",
lair = "#D2D186",
epic = "#B38CFF"
},
players = {
"Zora",
"Amber",
"Edwin",
"Gilkan",
"... | 31.132184 | 120 | 0.499323 |
da6173c414ce2c90dfb0bbbddd62e418d75c7fbb | 778 | php | PHP | src/Providers/RetrieverServiceProvider.php | nineoclocksomewhere/laravel-retriever | f733ebc11cee377e6b039d2fde23579b427f3a3c | [
"MIT"
] | 2 | 2021-09-23T07:39:08.000Z | 2021-09-23T07:39:11.000Z | src/Providers/RetrieverServiceProvider.php | nineoclocksomewhere/laravel-retriever | f733ebc11cee377e6b039d2fde23579b427f3a3c | [
"MIT"
] | null | null | null | src/Providers/RetrieverServiceProvider.php | nineoclocksomewhere/laravel-retriever | f733ebc11cee377e6b039d2fde23579b427f3a3c | [
"MIT"
] | null | null | null | <?php
namespace Nocs\Retriever\Providers;
use Illuminate\Support\ServiceProvider;
use Nocs\Retriever\Support\RetrieverManager;
use Nocs\Retriever\Support\Facades\Retriever;
/**
* BackpackServiceProvider class
*/
class RetrieverServiceProvider extends ServiceProvider
{
/**
* Register the service provider.... | 18.97561 | 69 | 0.633676 |
078331678b6dd263dcf5c30c38712654e757402a | 1,223 | rb | Ruby | lib/fastlane/plugin/veepio/actions/vpo_copy_files.rb | veepionyc/fastlane-plugin-veepio | 33579745942a1d72fcceb5784d1f2a7e3ac896d4 | [
"MIT"
] | null | null | null | lib/fastlane/plugin/veepio/actions/vpo_copy_files.rb | veepionyc/fastlane-plugin-veepio | 33579745942a1d72fcceb5784d1f2a7e3ac896d4 | [
"MIT"
] | null | null | null | lib/fastlane/plugin/veepio/actions/vpo_copy_files.rb | veepionyc/fastlane-plugin-veepio | 33579745942a1d72fcceb5784d1f2a7e3ac896d4 | [
"MIT"
] | null | null | null | require "java-properties"
module Fastlane
module Actions
class VpoCopyFilesAction < Action
def self.run(params)
_from = params[:from]
_to = params[:to]
_preserve = false
_dereference_root = false
_remove_destination = true
FileUtils.copy_entry _from, _to, _p... | 27.177778 | 90 | 0.55601 |
7fa8b4d63f62a068e9ad5055ece39006dd61e51f | 8,599 | dart | Dart | flutter_shop/lib/User/login_page.dart | zhaxling/flutter_shop | b6e96af3f8e7b24148b13a65e0be858ff41b1123 | [
"MIT"
] | null | null | null | flutter_shop/lib/User/login_page.dart | zhaxling/flutter_shop | b6e96af3f8e7b24148b13a65e0be858ff41b1123 | [
"MIT"
] | null | null | null | flutter_shop/lib/User/login_page.dart | zhaxling/flutter_shop | b6e96af3f8e7b24148b13a65e0be858ff41b1123 | [
"MIT"
] | null | null | null |
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:flutter_shop/Router/app.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'package:toast/toast.dart';
import 'UserManager.dart';
import 'package:flutter/material.dart';
import... | 26.956113 | 222 | 0.505175 |
2ccd9591a0c7138f058867bb37ca85d4c091edf6 | 842 | py | Python | day1/day1.py | chrisb87/advent_of_code_2016 | 668a7c5e3f2aac036dcf0091ca62a47cb0c54ba8 | [
"Unlicense"
] | 1 | 2016-12-07T20:28:12.000Z | 2016-12-07T20:28:12.000Z | day1/day1.py | chrisb87/advent_of_code_2016 | 668a7c5e3f2aac036dcf0091ca62a47cb0c54ba8 | [
"Unlicense"
] | null | null | null | day1/day1.py | chrisb87/advent_of_code_2016 | 668a7c5e3f2aac036dcf0091ca62a47cb0c54ba8 | [
"Unlicense"
] | null | null | null | def solve(moves, stop_on_second_visit = False):
location = [0,0]
visited = set(tuple(location))
facing = 0
turns = {0: (0, 1), 1: (1, 0), 2: (0, -1), 3: (-1, 0)}
for move in moves:
if move[0] == 'R':
facing = (facing + 1) % 4
elif move[0] == 'L':
facing = (facing - 1) % 4
for step in xrange(int(move[... | 22.157895 | 67 | 0.619952 |
5db2c6544db63edb6f90ac06ac4cdcc4bd2e6add | 2,796 | cpp | C++ | src/vm/systemCalls.optionals.cpp | DosWorld/tmbasic | 99bd593bb074df6af83d952259b5eb81588f1e3f | [
"MIT"
] | 1 | 2022-01-29T05:45:46.000Z | 2022-01-29T05:45:46.000Z | src/vm/systemCalls.optionals.cpp | DosWorld/tmbasic | 99bd593bb074df6af83d952259b5eb81588f1e3f | [
"MIT"
] | null | null | null | src/vm/systemCalls.optionals.cpp | DosWorld/tmbasic | 99bd593bb074df6af83d952259b5eb81588f1e3f | [
"MIT"
] | null | null | null | #include "systemCall.h"
#include "Error.h"
#include "Optional.h"
namespace vm {
static std::pair<const ValueOptional*, const ObjectOptional*> valueOrObjectOptional(const Object& object) {
const auto* valueOptional = dynamic_cast<const ValueOptional*>(&object);
if (valueOptional != nullptr) {
return { ... | 39.380282 | 107 | 0.664521 |
f4e9b18e35046e5a71ab16d22584a29544ce7fc7 | 61 | ts | TypeScript | src/dtos/bonus/redeemVoucher.request.dto.ts | Zweer/BigBangEmpireBot | d0fd04118822bf0eb6fffd271ce944f0475c5998 | [
"MIT"
] | 1 | 2019-10-31T13:49:58.000Z | 2019-10-31T13:49:58.000Z | src/dtos/bonus/redeemVoucher.request.dto.ts | Zweer/BigBangEmpireBot | d0fd04118822bf0eb6fffd271ce944f0475c5998 | [
"MIT"
] | 11 | 2018-09-30T15:17:00.000Z | 2022-02-13T11:52:26.000Z | src/dtos/bonus/redeemVoucher.request.dto.ts | Zweer/BigBangEmpireBot | d0fd04118822bf0eb6fffd271ce944f0475c5998 | [
"MIT"
] | 6 | 2018-06-18T18:43:46.000Z | 2021-03-03T21:48:43.000Z | export interface RedeemVoucherRequestDto {
code: string;
}
| 15.25 | 42 | 0.786885 |
eb626f05c988b25352421667faca979b2315cc0c | 20,985 | css | CSS | gaf-cloud/gaf-ops/gaf-storage/src/main/frontend/assets/css/common.css | SuperMap/GAF | cd9564ef554f3dd589c94319092611171ff2395f | [
"Apache-2.0"
] | 17 | 2021-04-26T01:07:34.000Z | 2022-03-31T08:21:26.000Z | gaf-cloud/gaf-ops/gaf-storage/src/main/frontend/assets/css/common.css | SuperMap/GAF | cd9564ef554f3dd589c94319092611171ff2395f | [
"Apache-2.0"
] | 7 | 2021-04-26T07:32:12.000Z | 2021-05-13T03:04:10.000Z | gaf-cloud/gaf-ops/gaf-storage/src/main/frontend/assets/css/common.css | SuperMap/GAF | cd9564ef554f3dd589c94319092611171ff2395f | [
"Apache-2.0"
] | 21 | 2021-01-05T05:42:49.000Z | 2021-08-06T08:53:32.000Z | * {
padding: 0;
margin: 0;
}
/* ----布局---- */
/* 页面 背景 */
.app-container {
height: 100%;
border: none;
background-color: rgb(234, 239, 245);
}
.ant-tabs-nav .ant-tabs-tab-active {
color: #329DFF;
}
/* 页面 左侧栏 树组件 */
.page-left {
height: 88vh;
width: 16%;
float: left;
marg... | 19.04265 | 2,476 | 0.626019 |
c8cdb38693a54741de66afd7e326a4efb93b0ba5 | 12,272 | css | CSS | build/_mermit-grid-col.min.css | mermit/mermit-grid | 3342a2c2eecefe66dde7d258ab42311d4353cf9f | [
"MIT"
] | null | null | null | build/_mermit-grid-col.min.css | mermit/mermit-grid | 3342a2c2eecefe66dde7d258ab42311d4353cf9f | [
"MIT"
] | null | null | null | build/_mermit-grid-col.min.css | mermit/mermit-grid | 3342a2c2eecefe66dde7d258ab42311d4353cf9f | [
"MIT"
] | null | null | null | [class^="mg-col"]>[class^="mg-sec"],[class^="mg-col"]>[class^="mg-sec"]>[class^="mg-sec"],[class^="mg-col"]>[class^="mg-sec"]>[class^="mg-sec"]>[class^="mg-sec"]{flex-direction:row}[class^="mg-col"]>[class^="mg-sec-0"],[class^="mg-col"]>[class^="mg-sec"]>[class^="mg-sec-0"],[class^="mg-col"]>[class^="mg-sec"]>[class^="... | 6,136 | 12,271 | 0.58825 |
e44933219199a01138fe919492bf47437cd49518 | 354 | hxx | C++ | src/fbc/fbcExchangeReactionFilter.hxx | Cosmo-Tech/libfbc | eb923f235645c2890009d7cd60347d331adbeb5b | [
"BSD-3-Clause",
"Unlicense"
] | null | null | null | src/fbc/fbcExchangeReactionFilter.hxx | Cosmo-Tech/libfbc | eb923f235645c2890009d7cd60347d331adbeb5b | [
"BSD-3-Clause",
"Unlicense"
] | 2 | 2015-01-07T16:09:44.000Z | 2015-01-07T16:10:15.000Z | src/fbc/fbcExchangeReactionFilter.hxx | Cosmo-Tech/libfbc | eb923f235645c2890009d7cd60347d331adbeb5b | [
"BSD-3-Clause",
"Unlicense"
] | null | null | null | #ifndef __fbcExchangeReactionFilter_hxx
#define __fbcExchangeReactionFilter_hxx
#include "sbml/util/ElementFilter.h"
class SBase;
class List;
namespace fbc
{
class ExchangeReactionFilter: public ElementFilter
{
private:
List* speciesList;
public:
ExchangeReactionFilter(List* sp_lst);
bool filter(con... | 14.75 | 50 | 0.768362 |
d4ea8a5abc30cd849597b8b2213c04ab32e9c051 | 7,654 | dart | Dart | lib/components/drawer.dart | prijindal/kuzzle_flutter_admin | 0c6e2a11928e34b6544e9437ba83ea8f26f371c5 | [
"MIT"
] | 3 | 2019-01-12T02:50:13.000Z | 2022-01-22T12:29:17.000Z | lib/components/drawer.dart | prijindal/kuzzle_flutter_admin | 0c6e2a11928e34b6544e9437ba83ea8f26f371c5 | [
"MIT"
] | null | null | null | lib/components/drawer.dart | prijindal/kuzzle_flutter_admin | 0c6e2a11928e34b6544e9437ba83ea8f26f371c5 | [
"MIT"
] | 1 | 2019-05-01T15:27:50.000Z | 2019-05-01T15:27:50.000Z | import 'package:flutter/material.dart';
import 'package:flutter_redux/flutter_redux.dart';
import 'package:kuzzleflutteradmin/components/expansiontile.dart';
import 'package:kuzzleflutteradmin/models/environment.dart';
import 'package:kuzzleflutteradmin/models/environments.dart';
import 'package:kuzzleflutteradmin/mode... | 36.798077 | 79 | 0.512673 |
e6410b5f38a41c49552a8d14bcf0ee89e36a7c99 | 434 | sql | SQL | sql/_04_operator_function/_08_click_counter/_003_complex/cases/1009.sql | Zhaojia2019/cubrid-testcases | 475a828e4d7cf74aaf2611fcf791a6028ddd107d | [
"BSD-3-Clause"
] | 9 | 2016-03-24T09:51:52.000Z | 2022-03-23T10:49:47.000Z | sql/_04_operator_function/_08_click_counter/_003_complex/cases/1009.sql | Zhaojia2019/cubrid-testcases | 475a828e4d7cf74aaf2611fcf791a6028ddd107d | [
"BSD-3-Clause"
] | 173 | 2016-04-13T01:16:54.000Z | 2022-03-16T07:50:58.000Z | sql/_04_operator_function/_08_click_counter/_003_complex/cases/1009.sql | Zhaojia2019/cubrid-testcases | 475a828e4d7cf74aaf2611fcf791a6028ddd107d | [
"BSD-3-Clause"
] | 38 | 2016-03-24T17:10:31.000Z | 2021-10-30T22:55:45.000Z | --[er]test incr, decr with group by clause
CREATE CLASS board (
id INT, title VARCHAR(100), content VARCHAR(4000), read_count INT ,edit_count INT);
INSERT INTO board VALUES (1, 'aaa', 'text...', 0,10);
INSERT INTO board VALUES (2, 'bbb', 'text...', 0,0);
INSERT INTO board VALUES (3, 'ccc', 'text...', 0,0);
select ... | 36.166667 | 87 | 0.693548 |
c8ead31867af4738caef339304f432d57068a801 | 1,261 | css | CSS | resources/css/utilities/form.css | flekking/erista-chms | 10d626852b8009faca56936fa41d98371158adad | [
"MIT"
] | null | null | null | resources/css/utilities/form.css | flekking/erista-chms | 10d626852b8009faca56936fa41d98371158adad | [
"MIT"
] | null | null | null | resources/css/utilities/form.css | flekking/erista-chms | 10d626852b8009faca56936fa41d98371158adad | [
"MIT"
] | null | null | null | [type='text'],
[type='email'],
[type='url'],
[type='password'],
[type='number'],
[type='date'],
[type='datetime-local'],
[type='month'],
[type='search'],
[type='tel'],
[type='time'],
[type='week'],
[multiple],
textarea,
select {
&.form-control {
@apply
rounded-lg
focus:outline-none
focus:border-... | 17.040541 | 90 | 0.604282 |
ac26f076fac794cd6a7f15ace547fca57bee04e9 | 697 | kt | Kotlin | app/src/main/java/com/joegruff/decredaddressscanner/types/Daos.kt | fossdd/dcraddrscanner | 213a8987874173b8a5354f97e7669b7af05c15ce | [
"BlueOak-1.0.0"
] | null | null | null | app/src/main/java/com/joegruff/decredaddressscanner/types/Daos.kt | fossdd/dcraddrscanner | 213a8987874173b8a5354f97e7669b7af05c15ce | [
"BlueOak-1.0.0"
] | null | null | null | app/src/main/java/com/joegruff/decredaddressscanner/types/Daos.kt | fossdd/dcraddrscanner | 213a8987874173b8a5354f97e7669b7af05c15ce | [
"BlueOak-1.0.0"
] | null | null | null | package com.joegruff.decredaddressscanner.types
import androidx.room.*
@Dao
interface AddressDao {
@Query("SELECT * FROM address_table ORDER BY timestamp_create ASC")
suspend fun getAll(): List<Address>
@Insert(onConflict = OnConflictStrategy.IGNORE)
suspend fun insert(addr: Address)
@Delete
... | 22.483871 | 71 | 0.721664 |
31d64c3e9455c74de999dd2826ff52904690d99c | 426 | rb | Ruby | lib/redcord/migration/ttl.rb | chanzuckerberg/redcord | dd553229d89f377d86937f75f88fc91431bea6e5 | [
"MIT"
] | 9 | 2020-07-23T05:10:39.000Z | 2022-01-10T08:03:23.000Z | lib/redcord/migration/ttl.rb | chanzuckerberg/redcord | dd553229d89f377d86937f75f88fc91431bea6e5 | [
"MIT"
] | 69 | 2020-07-09T13:36:07.000Z | 2022-03-17T00:41:07.000Z | lib/redcord/migration/ttl.rb | chanzuckerberg/redis-record | f216b22365395c37552ed8a015a98b36afa0803f | [
"MIT"
] | 1 | 2020-09-28T21:34:29.000Z | 2020-09-28T21:34:29.000Z | # typed: strict
module Redcord::Migration::TTL
extend T::Sig
sig { params(model: T.class_of(Redcord::Base)).returns(T.untyped) }
def _get_ttl(model)
model.class_variable_get(:@@ttl) || -1
end
sig { params(model: T.class_of(Redcord::Base)).void }
def change_ttl_active(model)
model.redis.scan_each_s... | 25.058824 | 69 | 0.683099 |
cb77415551a0e79b68b34b063b3bac752e5d802a | 512 | dart | Dart | test/redux/increment_store.dart | shindakioku/incredux | 63cf8fe393406939ad32c5f2fd11a45c9015d0ba | [
"BSD-3-Clause"
] | null | null | null | test/redux/increment_store.dart | shindakioku/incredux | 63cf8fe393406939ad32c5f2fd11a45c9015d0ba | [
"BSD-3-Clause"
] | null | null | null | test/redux/increment_store.dart | shindakioku/incredux | 63cf8fe393406939ad32c5f2fd11a45c9015d0ba | [
"BSD-3-Clause"
] | null | null | null | import 'package:redux/redux.dart';
import 'package:incredux/incredux.dart';
enum Actions { increment, decrement }
int counterReducer(int state, dynamic action) {
if (action == Actions.increment) {
return state + 1;
} else if (action == Actions.decrement) {
return state - 1;
}
return state;
}
Store b... | 22.26087 | 51 | 0.646484 |
704d9d978eff03dcb2fe6faf282e37bb79a0da7f | 3,270 | lua | Lua | Player/ArmFSM/DRCFinal/armDrillRight.lua | ToyotaResearchInstitute/rad-robot | 9a47e4d88382719ab9bf142932fbcc83dcbcd665 | [
"MIT"
] | null | null | null | Player/ArmFSM/DRCFinal/armDrillRight.lua | ToyotaResearchInstitute/rad-robot | 9a47e4d88382719ab9bf142932fbcc83dcbcd665 | [
"MIT"
] | null | null | null | Player/ArmFSM/DRCFinal/armDrillRight.lua | ToyotaResearchInstitute/rad-robot | 9a47e4d88382719ab9bf142932fbcc83dcbcd665 | [
"MIT"
] | 2 | 2018-06-04T12:38:54.000Z | 2018-09-22T10:31:27.000Z | --------------------------------
-- Humanoid arm state
-- (c) 2013 Stephen McGill, Seung-Joon Yi
--------------------------------
local state = {}
state._NAME = ...
local Body = require'Body'
local vector = require'vector'
local movearm = require'movearm'
local t_entry, t_update, t_finish
local timeout = 30.0
-- l... | 26.16 | 136 | 0.713456 |
544c903f0051914dd6a3084d224b4ba4cb68b686 | 77 | css | CSS | src/components/Related/Related.module.css | themmyloluwaa/sewb_blog | 5a5ba8703563eaf3e70e87bb8c42367eb815ddef | [
"MIT"
] | null | null | null | src/components/Related/Related.module.css | themmyloluwaa/sewb_blog | 5a5ba8703563eaf3e70e87bb8c42367eb815ddef | [
"MIT"
] | 3 | 2022-03-13T02:12:52.000Z | 2022-03-27T15:18:35.000Z | src/components/Related/Related.module.css | themmyloluwaa/sewb_blog | 5a5ba8703563eaf3e70e87bb8c42367eb815ddef | [
"MIT"
] | null | null | null | .container {
@apply my-5;
}
.title {
@apply font-bold mb-6 text-2xl ;
}
| 9.625 | 34 | 0.584416 |
66d73f6c6b8d720f13be4a8a02911aff8823c8f8 | 591 | dart | Dart | lib/res/palette.dart | goldipatel12/YogApp | 8aa584421af02fc57b664173d2fc382dfca8ab08 | [
"MIT"
] | 1 | 2021-08-20T21:25:11.000Z | 2021-08-20T21:25:11.000Z | lib/res/palette.dart | goldipatel12/YogApp | 8aa584421af02fc57b664173d2fc382dfca8ab08 | [
"MIT"
] | null | null | null | lib/res/palette.dart | goldipatel12/YogApp | 8aa584421af02fc57b664173d2fc382dfca8ab08 | [
"MIT"
] | 1 | 2022-03-14T23:41:08.000Z | 2022-03-14T23:41:08.000Z | import 'package:flutter/material.dart';
class Palette {
static const someColor = Colors.white;
static const darkShade = Color(0xFF640226);
static const lightDarkShade = Color(0xFFcd3871);
static const mediumShade = Color(0xFFfbe1e0);
static const lightShade = Color(0xFFFCE0DF);
static const black = Color(0... | 36.9375 | 52 | 0.771574 |
dc010ea101937b8dfc796899e9238663499e69b3 | 53 | rb | Ruby | config/initializers/pusher.rb | phuphighter/pusher_app_example | de7b3bc99a3dbfe380492b9a6c7e7dece6ad54ed | [
"MIT"
] | 1 | 2015-11-05T15:09:13.000Z | 2015-11-05T15:09:13.000Z | config/initializers/pusher.rb | phuphighter/pusher_app_example | de7b3bc99a3dbfe380492b9a6c7e7dece6ad54ed | [
"MIT"
] | null | null | null | config/initializers/pusher.rb | phuphighter/pusher_app_example | de7b3bc99a3dbfe380492b9a6c7e7dece6ad54ed | [
"MIT"
] | null | null | null | Pusher.app_id = ''
Pusher.key = ''
Pusher.secret = '' | 17.666667 | 18 | 0.622642 |
e017a0e260d2a0789455430d2a42c5aa20a37381 | 1,312 | h | C | Frameworks/MapKit.framework/MKMapItemMetadataRequester.h | shaojiankui/iOS10-Runtime-Headers | 6b0d842bed0c52c2a7c1464087b3081af7e10c43 | [
"MIT"
] | 36 | 2016-04-20T04:19:04.000Z | 2018-10-08T04:12:25.000Z | Frameworks/MapKit.framework/MKMapItemMetadataRequester.h | shaojiankui/iOS10-Runtime-Headers | 6b0d842bed0c52c2a7c1464087b3081af7e10c43 | [
"MIT"
] | null | null | null | Frameworks/MapKit.framework/MKMapItemMetadataRequester.h | shaojiankui/iOS10-Runtime-Headers | 6b0d842bed0c52c2a7c1464087b3081af7e10c43 | [
"MIT"
] | 10 | 2016-06-16T02:40:44.000Z | 2019-01-15T03:31:45.000Z | /* Generated by RuntimeBrowser
Image: /System/Library/Frameworks/MapKit.framework/MapKit
*/
@interface MKMapItemMetadataRequester : NSObject <NSURLSessionDataDelegate, NSURLSessionDelegate, NSURLSessionTaskDelegate> {
ACAccountStore * _accountStore;
NSMapTable * _dataForTasks;
bool _hasCheckedYelpAcco... | 33.641026 | 125 | 0.771341 |
d2fd28b9c6bc5691e3edad3c0e438315f1cea946 | 8,018 | rs | Rust | pod/src/link_svc.rs | trilloop-software/openlink | dd0491892f92cb7c84fe5c39c62bcc6eceabeb1d | [
"MIT"
] | null | null | null | pod/src/link_svc.rs | trilloop-software/openlink | dd0491892f92cb7c84fe5c39c62bcc6eceabeb1d | [
"MIT"
] | null | null | null | pod/src/link_svc.rs | trilloop-software/openlink | dd0491892f92cb7c84fe5c39c62bcc6eceabeb1d | [
"MIT"
] | null | null | null | use anyhow::Result;
use serde_json;
use std::sync::Arc;
use tokio::sync::{mpsc::Receiver, mpsc::Sender, Mutex};
use shared::{remote_conn_packet::*, device::*};
use super::{pod_packet::*, pod_packet_payload::*, pod_conn_svc::PodState};
pub struct LinkSvc {
pub device_list: Arc<Mutex<Vec<Device>>>,
pub pod_stat... | 35.794643 | 107 | 0.581317 |
256f17eea7ecd39ff55755973ff6fc5f5b00a6d1 | 10,535 | js | JavaScript | maker.js | kalen-oyphanith/Muzic-Room | c47826e8c0692ef6fc5f53edb35cbae4922e0f4f | [
"Apache-2.0"
] | null | null | null | maker.js | kalen-oyphanith/Muzic-Room | c47826e8c0692ef6fc5f53edb35cbae4922e0f4f | [
"Apache-2.0"
] | null | null | null | maker.js | kalen-oyphanith/Muzic-Room | c47826e8c0692ef6fc5f53edb35cbae4922e0f4f | [
"Apache-2.0"
] | null | null | null | newer version
const handlePost = (e) => {
e.preventDefault();
$("#postMessage").animate({width: 'hide'}, 350);
if($("#postHeading").val() == '' || $("#postBlogPost").val() == '') {
handleError("A heading and your post are required!");
return false;
}
sendAjax('POST', $... | 27.650919 | 126 | 0.525771 |
875b5c4a980a12e2998b39f9fda4bdf0d8eb71b1 | 672 | rb | Ruby | test/controllers/tasks_controller_test.rb | Scthe/RoR-test | b9b18f3f89ca02c438d72a2b0c7de6a2f45a3a75 | [
"MIT"
] | null | null | null | test/controllers/tasks_controller_test.rb | Scthe/RoR-test | b9b18f3f89ca02c438d72a2b0c7de6a2f45a3a75 | [
"MIT"
] | null | null | null | test/controllers/tasks_controller_test.rb | Scthe/RoR-test | b9b18f3f89ca02c438d72a2b0c7de6a2f45a3a75 | [
"MIT"
] | null | null | null | require 'test_helper'
class TasksControllerTest < ActionController::TestCase
test "should get index" do
get :index
assert_response :success
assert_template :index
assert_template layout: "layouts/application"
end
test "should get show" do
get :show, id: 1
assert_response :success
assert_template :sh... | 20.363636 | 54 | 0.760417 |
e28384551c439286bfc28c089a0ea7abc504fe62 | 16,227 | py | Python | main.py | MartinDolenc/OPB-Ne_se_ena_spletna_trgovina | a4c158724100e0facf03777ca70b343e37963b80 | [
"MIT"
] | null | null | null | main.py | MartinDolenc/OPB-Ne_se_ena_spletna_trgovina | a4c158724100e0facf03777ca70b343e37963b80 | [
"MIT"
] | 1 | 2021-09-04T17:01:58.000Z | 2021-09-07T08:54:50.000Z | main.py | MartinDolenc/OPB-Ne_se_ena_spletna_trgovina | a4c158724100e0facf03777ca70b343e37963b80 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- encoding: utf-8 -*-
# uvozimo bottle.py
from bottle import *
# uvozimo ustrezne podatke za povezavo
import auth_public as auth
#uvozimo paket, za datume
import datetime
# uvozimo psycopg2
import psycopg2, psycopg2.extensions, psycopg2.extras
psycopg2.extensions.register_type(psycopg2.extensi... | 38.181176 | 220 | 0.644543 |
06bbe9d86636c71b5ca39e7856774d2cb91442b0 | 3,351 | py | Python | Main.py | KemenczkyP/Neural-Net-Visualization-Guided_Grad_CAM | a10d99d53a245540a7df1e9fb9046a6ea2a81118 | [
"Apache-2.0"
] | null | null | null | Main.py | KemenczkyP/Neural-Net-Visualization-Guided_Grad_CAM | a10d99d53a245540a7df1e9fb9046a6ea2a81118 | [
"Apache-2.0"
] | null | null | null | Main.py | KemenczkyP/Neural-Net-Visualization-Guided_Grad_CAM | a10d99d53a245540a7df1e9fb9046a6ea2a81118 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Jul 19 13:46:40 2019
@author: KemenczkyP
"""
from __future__ import absolute_import, division, print_function, unicode_literals
# TensorFlow and tf.keras
import tensorflow as tf
from tensorflow import keras
# Helper libraries
import numpy as np
import matplotlib.pyplot as ... | 28.887931 | 101 | 0.638615 |
b814ca4bb9e247a6f6ccdd43487eb6e1b35ccb5d | 208 | dart | Dart | bloc_example/lib/DataLayer/location.dart | KadriyeMacit/Flutter-BLoC-Pattern-with-Zomato | 824237f4e3a586650ad8d7f9425fad425e726af3 | [
"MIT"
] | null | null | null | bloc_example/lib/DataLayer/location.dart | KadriyeMacit/Flutter-BLoC-Pattern-with-Zomato | 824237f4e3a586650ad8d7f9425fad425e726af3 | [
"MIT"
] | null | null | null | bloc_example/lib/DataLayer/location.dart | KadriyeMacit/Flutter-BLoC-Pattern-with-Zomato | 824237f4e3a586650ad8d7f9425fad425e726af3 | [
"MIT"
] | null | null | null | class Location {
final int id;
final String type;
final String title;
Location.fromJson(Map json)
: id = json['entity_id'],
type = json['entity_type'],
title = json['title'];
}
| 18.909091 | 35 | 0.600962 |
efc15e9cd70a7037d882f308b14ce11d789a412a | 2,562 | swift | Swift | FlexibleCollectionViewLayouts/FlexibleCollectionViewLayouts/Views/Cells/TextCell.swift | fahlout/FlexibleCollectionViewLayouts | 1f72f2fc382798fac3963fb7beb39f516cde4e41 | [
"MIT"
] | null | null | null | FlexibleCollectionViewLayouts/FlexibleCollectionViewLayouts/Views/Cells/TextCell.swift | fahlout/FlexibleCollectionViewLayouts | 1f72f2fc382798fac3963fb7beb39f516cde4e41 | [
"MIT"
] | null | null | null | FlexibleCollectionViewLayouts/FlexibleCollectionViewLayouts/Views/Cells/TextCell.swift | fahlout/FlexibleCollectionViewLayouts | 1f72f2fc382798fac3963fb7beb39f516cde4e41 | [
"MIT"
] | null | null | null | import UIKit
let imageCache = NSCache<NSString, UIImage>()
public class TextCell: UICollectionViewCell {
/// The `UUID` for the data this cell is presenting.
var representedId: UUID?
public let label = UILabel()
public let imageView = UIImageView()
var sessionTask: URLSessionTask?
... | 34.621622 | 149 | 0.679938 |
a174ebf5b2ceb60084697b975604870be89b5620 | 789 | ts | TypeScript | resources/assets/ts/utilities/form_watcher/form_watcher.ts | hung-nv/booking | 88d19d0171822e4e2c066c3e7b272eb2a8714123 | [
"MIT"
] | null | null | null | resources/assets/ts/utilities/form_watcher/form_watcher.ts | hung-nv/booking | 88d19d0171822e4e2c066c3e7b272eb2a8714123 | [
"MIT"
] | null | null | null | resources/assets/ts/utilities/form_watcher/form_watcher.ts | hung-nv/booking | 88d19d0171822e4e2c066c3e7b272eb2a8714123 | [
"MIT"
] | null | null | null | export {
watchForm
}
declare var $, _;
// Store all origin values.
let old = [];
/**
* Watch change of form.
* @param className
* @param color
*/
function watchForm (className, color) {
$(() => {
let $form = $(className);
$form.find('input, select, textarea').each(function (index) {
... | 20.230769 | 69 | 0.424588 |
a859a3976341c1dbb203677c0eb15e2d1062676d | 1,157 | rs | Rust | src/commands/package/install.rs | ethankhall/cli-management | 375a8248760a0f4dd956fe483b36fd8848779951 | [
"BSD-3-Clause"
] | null | null | null | src/commands/package/install.rs | ethankhall/cli-management | 375a8248760a0f4dd956fe483b36fd8848779951 | [
"BSD-3-Clause"
] | null | null | null | src/commands/package/install.rs | ethankhall/cli-management | 375a8248760a0f4dd956fe483b36fd8848779951 | [
"BSD-3-Clause"
] | null | null | null | use async_trait::async_trait;
use std::path::*;
use thiserror::Error;
use crate::cli::*;
use crate::commands::SubCommandExec;
use crate::package::{install_package, PackageError};
use crate::remote::DownloadedArtifact;
use crate::state::{get_current_state, update_links};
use crate::util::GlobalFolders;
#[derive(Error,... | 30.447368 | 94 | 0.691443 |
b0d60bd09d584f4888681f0f7267cee8f9b4bf0f | 390 | py | Python | A/KefaAndFirstSteps.py | shukkkur/hello-world | c6388c2bda387e850fdb928a8d40f769c5684fec | [
"CC0-1.0"
] | 11 | 2021-05-26T11:47:50.000Z | 2022-03-08T14:31:02.000Z | A/KefaAndFirstSteps.py | shukkkur/hello-world | c6388c2bda387e850fdb928a8d40f769c5684fec | [
"CC0-1.0"
] | null | null | null | A/KefaAndFirstSteps.py | shukkkur/hello-world | c6388c2bda387e850fdb928a8d40f769c5684fec | [
"CC0-1.0"
] | 4 | 2021-08-06T05:27:12.000Z | 2022-03-22T14:05:41.000Z | __author__ = 'shukkkur'
'''
https://codeforces.com/problemset/problem/580/A
'''
n = int(input())
values = list(map(int, input().split()))
records = []
count = 1
for i in range(len(values)-1):
if values[i] <= values[i+1]:
count += 1
else:
records.append(count)
... | 16.25 | 48 | 0.538462 |
4bbc8f61d89f0e0364178dcd0abd5c9f08ad33d6 | 1,261 | h | C | Include/gtGRBaseToolsDLLBuild.h | GPUOpen-Tools/common-src-AMDTBaseTools | eeac5a71882f74a7c216758f22d6b6cc9638ae98 | [
"MIT"
] | 3 | 2016-12-07T17:22:19.000Z | 2018-04-03T12:44:41.000Z | Include/gtGRBaseToolsDLLBuild.h | GPUOpen-Tools/common_src_amdtbasetools | eeac5a71882f74a7c216758f22d6b6cc9638ae98 | [
"MIT"
] | null | null | null | Include/gtGRBaseToolsDLLBuild.h | GPUOpen-Tools/common_src_amdtbasetools | eeac5a71882f74a7c216758f22d6b6cc9638ae98 | [
"MIT"
] | 1 | 2020-10-28T22:19:14.000Z | 2020-10-28T22:19:14.000Z | //=====================================================================
// Copyright 2016 (c), Advanced Micro Devices, Inc. All rights reserved.
//
/// \author AMD Developer Tools Team
/// \file gtGRBaseToolsDLLBuild.h
///
//=====================================================================
//----------------------... | 31.525 | 87 | 0.60904 |
bd0ba24258e1427d87eebe73e820c78b3600e527 | 3,603 | html | HTML | index.html | rpalakkal/defund12-image-api | c3f4c43e6909565862aa40e71cb0a71ca2908ff1 | [
"MIT"
] | 2 | 2020-06-22T13:34:17.000Z | 2020-06-25T18:28:07.000Z | index.html | rpalakkal/defund12-image-api | c3f4c43e6909565862aa40e71cb0a71ca2908ff1 | [
"MIT"
] | 2 | 2020-06-17T17:25:49.000Z | 2020-06-18T15:03:36.000Z | index.html | rpalakkal/defund12-image-api | c3f4c43e6909565862aa40e71cb0a71ca2908ff1 | [
"MIT"
] | 3 | 2020-06-17T16:43:10.000Z | 2021-02-05T13:54:53.000Z | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Defund12 image</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link
href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css"
rel="stylesheet"
/>
</head>
<body>
<div ... | 29.292683 | 103 | 0.452678 |
4993f6406a9a73a3ef0b60cd7b6145884beaf326 | 16,925 | py | Python | koko/lib/dottext.py | TheBeachLab/kokopelli | 529b8149a951363d2a027946464ea0bb22346428 | [
"MIT"
] | null | null | null | koko/lib/dottext.py | TheBeachLab/kokopelli | 529b8149a951363d2a027946464ea0bb22346428 | [
"MIT"
] | 1 | 2018-11-23T11:52:41.000Z | 2018-11-23T11:52:41.000Z | koko/lib/dottext.py | TheBeachLab/kokopelli | 529b8149a951363d2a027946464ea0bb22346428 | [
"MIT"
] | null | null | null | # koko.lib.dottext.py
# Simple dot matrix math-string based font.
# Modified by Francisco Sanchez
# original code by Matt Keeter
# matt.keeter@cba.mit.edu
# kokompe.cba.mit.edu
################################################################################
from koko.lib.shapes2d import *
def text(text... | 25.643939 | 85 | 0.58257 |
a16ed003514e3d82a0bf7fde4d4a3473a0c1974b | 2,226 | ts | TypeScript | src/configs/index.ts | dannysofftie/express-api | 94b1e7d7fbf5143806a0b4dc869052972f462cea | [
"MIT"
] | 2 | 2019-03-06T10:24:01.000Z | 2019-03-19T02:36:25.000Z | src/configs/index.ts | dannysofftie/node-ts-app-scaffold | 94b1e7d7fbf5143806a0b4dc869052972f462cea | [
"MIT"
] | 1 | 2020-08-21T08:58:42.000Z | 2020-08-21T08:58:42.000Z | src/configs/index.ts | dannysofftie/express-api | 94b1e7d7fbf5143806a0b4dc869052972f462cea | [
"MIT"
] | null | null | null | import { config } from 'dotenv';
import { join } from 'path';
import { IEmailConfigs } from '../libraries/Email';
import { Application } from 'express';
export const uploadDirectories = {
png: join(__dirname, '..', '..', 'uploads', 'images'),
jpg: join(__dirname, '..', '..', 'uploads', 'images'),
jpeg: joi... | 32.735294 | 117 | 0.586253 |
975dab51cb03e46987799390c82394a9b488d84b | 150 | dart | Dart | lib/src/ui/f_widget/sublevel/hangman_ui_sublevel_exporter.dart | Root-101/citmatel_strawberry_hangman | 1cf1a8c508f2b961ca96bc1d81243509b1826334 | [
"Apache-2.0"
] | 2 | 2021-12-03T03:12:52.000Z | 2021-12-05T02:34:08.000Z | lib/src/ui/f_widget/sublevel/hangman_ui_sublevel_exporter.dart | Root-101/citmatel_strawberry_hangman | 1cf1a8c508f2b961ca96bc1d81243509b1826334 | [
"Apache-2.0"
] | 26 | 2021-12-17T19:14:14.000Z | 2022-02-27T17:15:31.000Z | lib/src/ui/f_widget/sublevel/hangman_ui_sublevel_exporter.dart | Root-101/citmatel_strawberry_hangman | 1cf1a8c508f2b961ca96bc1d81243509b1826334 | [
"Apache-2.0"
] | null | null | null | library hangman_ui_sublevel_exporter;
//export all the levels widgets
export 'hangman_sublevel_loading.dart';
export 'hangman_sublevel_screen.dart';
| 25 | 39 | 0.846667 |
138c972f3b7b66ce5fa1bf065371d83b2d0db31b | 1,069 | rb | Ruby | app/controllers/application_controller.rb | bens640/Ask-a-Cuban | b7c130374f015950f0fa4f9fdb983c0a465f0431 | [
"MIT"
] | 1 | 2016-03-06T18:22:25.000Z | 2016-03-06T18:22:25.000Z | app/controllers/application_controller.rb | bens640/Ask-a-Cuban | b7c130374f015950f0fa4f9fdb983c0a465f0431 | [
"MIT"
] | null | null | null | app/controllers/application_controller.rb | bens640/Ask-a-Cuban | b7c130374f015950f0fa4f9fdb983c0a465f0431 | [
"MIT"
] | null | null | null | class ApplicationController < ActionController::Base
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :null_session
before_filter :mobile_login, :upvote_mobile, :downvote_mobile
private
def not_authenticated
redirect_to lo... | 26.073171 | 84 | 0.707203 |
d07022082e37b48f77f637b644b8a76809b71b91 | 5,284 | hpp | C++ | libahafront/aha/front/lexer.hpp | dlarudgus20/newly-aha | 4d80bf992af3d8e7a6ddcca3c38d5959059ec66f | [
"MIT"
] | 2 | 2017-08-12T11:23:37.000Z | 2017-08-12T17:11:52.000Z | libahafront/aha/front/lexer.hpp | dlarudgus20/newly-aha | 4d80bf992af3d8e7a6ddcca3c38d5959059ec66f | [
"MIT"
] | null | null | null | libahafront/aha/front/lexer.hpp | dlarudgus20/newly-aha | 4d80bf992af3d8e7a6ddcca3c38d5959059ec66f | [
"MIT"
] | null | null | null | // The MIT License (MIT)
//
// Copyright (c) 2016 Im Kyeong-Hyeon (dlarudgus20@naver.com)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitati... | 25.282297 | 81 | 0.603331 |
408676b44b7d8582496d97c7ef8d48ea746b3209 | 645 | rb | Ruby | parser/lib/snt_utils.rb | kopylovvlad/lite_scss | 88f6910e195adfde85153939cf903a7f387413d1 | [
"MIT"
] | 7 | 2018-10-22T11:18:19.000Z | 2022-03-26T10:42:58.000Z | parser/lib/snt_utils.rb | kopylovvlad/lite_scss | 88f6910e195adfde85153939cf903a7f387413d1 | [
"MIT"
] | null | null | null | parser/lib/snt_utils.rb | kopylovvlad/lite_scss | 88f6910e195adfde85153939cf903a7f387413d1 | [
"MIT"
] | null | null | null | ###
# some utils for SpliterNodesTransformer
module SntUtils
private
def any_start?(node)
node.mixin_start? || node.selector_start?
end
def check_property?(node)
node.property? or node.property_with_variable?
end
def children_last_recursive(item, sub_level)
if sub_level.zero?
item
e... | 20.15625 | 64 | 0.689922 |
3952b842268b65d2abb63e5b8cdf8e0a4b5a2adc | 5,101 | py | Python | logparsing/sentinel-log-agent.py | piyush82/sentinel-agents | 926649b6f258e2143b07f75995993edd9e2c4227 | [
"Apache-2.0"
] | null | null | null | logparsing/sentinel-log-agent.py | piyush82/sentinel-agents | 926649b6f258e2143b07f75995993edd9e2c4227 | [
"Apache-2.0"
] | null | null | null | logparsing/sentinel-log-agent.py | piyush82/sentinel-agents | 926649b6f258e2143b07f75995993edd9e2c4227 | [
"Apache-2.0"
] | null | null | null | # -----------------------------------------------------------------------------
# Copyright (c) 2017. ZHAW - ICCLab
# 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 Li... | 40.808 | 120 | 0.568908 |
a3b797d95b500a37ebe26458143d324d814901ec | 889 | java | Java | AllAvailable/app/src/main/java/com/cmu/smartphone/allavailable/ws/remote/DataReceiver.java | swen2014/AllAvailable | 1149503f266d36fea2abf2da94b78c56bcd6f4b1 | [
"Apache-2.0"
] | null | null | null | AllAvailable/app/src/main/java/com/cmu/smartphone/allavailable/ws/remote/DataReceiver.java | swen2014/AllAvailable | 1149503f266d36fea2abf2da94b78c56bcd6f4b1 | [
"Apache-2.0"
] | null | null | null | AllAvailable/app/src/main/java/com/cmu/smartphone/allavailable/ws/remote/DataReceiver.java | swen2014/AllAvailable | 1149503f266d36fea2abf2da94b78c56bcd6f4b1 | [
"Apache-2.0"
] | null | null | null | package com.cmu.smartphone.allavailable.ws.remote;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
/**
* Receive the data to String
*
* @author Xi Wang
* @version 1.0
*/
public class DataReceiver {
/**
* Get json string
*
* @param inputStream
... | 23.394737 | 73 | 0.591676 |
1a750df49929bd7f73ea6f4b92a2c604b39c4f7c | 6,044 | py | Python | examples/custom_action/example_server/swagger_server/models/entity.py | ritvikshrivastava/mindmeld | 48eccac059439ea0f32fa3ac9079415bb006233b | [
"Apache-2.0"
] | 580 | 2019-03-24T20:59:09.000Z | 2022-03-23T17:06:43.000Z | examples/custom_action/example_server/swagger_server/models/entity.py | ritvikshrivastava/mindmeld | 48eccac059439ea0f32fa3ac9079415bb006233b | [
"Apache-2.0"
] | 199 | 2019-04-30T18:15:46.000Z | 2022-03-22T17:11:33.000Z | examples/custom_action/example_server/swagger_server/models/entity.py | Embodimentgeniuslm3/mindmeld | 042d4ed5400cd1cf8ea1f025eea732359ef68720 | [
"Apache-2.0"
] | 164 | 2019-04-25T08:27:28.000Z | 2022-03-23T12:44:33.000Z | # coding: utf-8
from __future__ import absolute_import
from .base_model_ import Model
from .. import util
class Entity(Model):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
def __init__(
self,
text: str = None,
... | 25.183333 | 111 | 0.579252 |
aff492eb1089f85f487450357f19a324395a9ab9 | 3,875 | py | Python | examples/locomotion/talos_warm_start.py | iit-DLSLab/crocoddyl | 2b8b731fae036916ff9b4ce3969e2c96c009593c | [
"BSD-3-Clause"
] | null | null | null | examples/locomotion/talos_warm_start.py | iit-DLSLab/crocoddyl | 2b8b731fae036916ff9b4ce3969e2c96c009593c | [
"BSD-3-Clause"
] | null | null | null | examples/locomotion/talos_warm_start.py | iit-DLSLab/crocoddyl | 2b8b731fae036916ff9b4ce3969e2c96c009593c | [
"BSD-3-Clause"
] | null | null | null | import conf_talos_warm_start as conf
import numpy as np
import pinocchio
from crocoddyl import (ActionModelImpact, CallbackDDPVerbose, CallbackSolverDisplay, ShootingProblem, SolverDDP,
StatePinocchio, a2m, m2a)
from crocoddyl.locomotion import ContactSequenceWrapper, createMultiphaseShootingProb... | 38.366337 | 118 | 0.65729 |
be2f5c816061ab72cec783ac5ff6467be7bad43c | 1,329 | tsx | TypeScript | src/components/Sidebar/Sidebar.tsx | meowWhat/ReDark | 293e6662fea3138e89fd83b4d32565f54c43ff88 | [
"MIT"
] | 2 | 2020-03-27T14:07:56.000Z | 2020-05-11T13:09:00.000Z | src/components/Sidebar/Sidebar.tsx | meowWhat/ReDark | 293e6662fea3138e89fd83b4d32565f54c43ff88 | [
"MIT"
] | 6 | 2020-12-04T20:06:24.000Z | 2022-02-27T01:58:08.000Z | src/components/Sidebar/Sidebar.tsx | meowWhat/ReDark | 293e6662fea3138e89fd83b4d32565f54c43ff88 | [
"MIT"
] | null | null | null | /**
* @Sidebar 侧边栏
*/
import React, { useState } from 'react'
import './Sidebar.less'
import SidebarGroup from './SidebarGroup/SidebarGroup'
import { Sidebar } from '..'
/**
* @groupArr 侧边栏数组
*/
interface Group {
url: string
text: string
chineseText: string
}
interface Sidebar {
groupArr: Array<{ group: ... | 22.525424 | 65 | 0.555305 |
546467096f1441bcdf7a6127c896a10e44e84373 | 916 | h | C | release/src/router/libsodium/src/libsodium/include/sodium/crypto_scalarmult_curve25519.h | ghsecuritylab/bcwifi | 4cd7a6989921930f39816583014728b9f07a09a3 | [
"FSFAP"
] | 34 | 2015-05-04T23:37:14.000Z | 2021-12-09T04:15:25.000Z | release/src/router/libsodium/src/libsodium/include/sodium/crypto_scalarmult_curve25519.h | ghsecuritylab/bcwifi | 4cd7a6989921930f39816583014728b9f07a09a3 | [
"FSFAP"
] | 1 | 2022-03-15T20:59:22.000Z | 2022-03-15T21:04:14.000Z | release/src/router/libsodium/src/libsodium/include/sodium/crypto_scalarmult_curve25519.h | ghsecuritylab/bcwifi | 4cd7a6989921930f39816583014728b9f07a09a3 | [
"FSFAP"
] | 6 | 2015-04-16T19:08:46.000Z | 2021-07-07T06:23:13.000Z | #ifndef crypto_scalarmult_curve25519_H
#define crypto_scalarmult_curve25519_H
#if 0
# ifndef SODIUM_HAVE_TI_MODE
# define SODIUM_HAVE_TI_MODE
# endif
#endif
#include "export.h"
#define crypto_scalarmult_curve25519_BYTES 32
#define crypto_scalarmult_curve25519_SCALARBYTES 32
#ifdef __cplusplus
extern "C" {
#endif
... | 24.105263 | 94 | 0.862445 |
7bc8bccc726799aef0eb510ce56b2b8c7dc4c7b0 | 651 | rb | Ruby | app/controllers/activities_controller.rb | thekevinhuang/specialty_review_v002 | 5e916f1044ccfd2af6d14e174db93cbbec3b101e | [
"MIT"
] | null | null | null | app/controllers/activities_controller.rb | thekevinhuang/specialty_review_v002 | 5e916f1044ccfd2af6d14e174db93cbbec3b101e | [
"MIT"
] | null | null | null | app/controllers/activities_controller.rb | thekevinhuang/specialty_review_v002 | 5e916f1044ccfd2af6d14e174db93cbbec3b101e | [
"MIT"
] | null | null | null | class ActivitiesController < ApplicationController
before_action :require_log_in
def show
@activity = Activity.find_by(id: params[:id])
end
def new
if !@activity
@activity = Activity.new
end
end
def create
@activity = Activity.new(activity_param... | 17.594595 | 61 | 0.588326 |
454beedcf2f22f33f3261dc7900fe902a9748697 | 2,516 | py | Python | semi-empirical mass formula.py | Vworri/Computational-Physics-Review | e665b62596b1d521f3e89b8f7a0840999b4d7002 | [
"MIT"
] | 1 | 2019-02-24T19:00:30.000Z | 2019-02-24T19:00:30.000Z | semi-empirical mass formula.py | Vworri/Computational-Physics-Review | e665b62596b1d521f3e89b8f7a0840999b4d7002 | [
"MIT"
] | 1 | 2018-03-11T19:06:50.000Z | 2018-03-11T19:06:50.000Z | semi-empirical mass formula.py | Vworri/Computational-Physics-Review | e665b62596b1d521f3e89b8f7a0840999b4d7002 | [
"MIT"
] | null | null | null |
import pandas as pd
import plotly
import plotly.graph_objs as go
def I_have_both():
A = float(input("What is your A value?: "))
Z = float(input("What is your Z value?: "))
B= find_binding_energy(A, Z)
print("Your binding energy per nucleon is: " + str(B / A) + "MeV \n" + "Your binding energy ... | 27.053763 | 119 | 0.517886 |
fc0c2e8dbcee0f6cf360d9bfc303000b6bc81e9e | 440 | asm | Assembly | Relatorio9/programa12.asm | GustavoLR548/ACII-GLR | 135690945f5e29938ef640a3d5475f8a12dbd76c | [
"MIT"
] | 1 | 2021-11-03T17:22:02.000Z | 2021-11-03T17:22:02.000Z | Relatorio9/programa12.asm | GustavoLR548/ACII-GLR | 135690945f5e29938ef640a3d5475f8a12dbd76c | [
"MIT"
] | null | null | null | Relatorio9/programa12.asm | GustavoLR548/ACII-GLR | 135690945f5e29938ef640a3d5475f8a12dbd76c | [
"MIT"
] | null | null | null | .data
k: .word 5
x: .word
.text
main:
la $t0, k # pointeiro 1
la $t1, 4($t0) # pointeiro 2
la $t2, 4($t1) # pointeiro , t2 = x
sw $t2, x # armazenando em x o ponteiro
la $s0, -8($t2) # pegando o ponteiro original
lw $s1,($s0) # pegar o conteudo do ponteiro
sll $s1,$s1,1 # m... | 29.333333 | 78 | 0.590909 |
a68415ace8fece8a934c232df8380ed3cd9fbee8 | 148 | sql | SQL | src/test/resources/test-cases/RMLTC0002j-MySQL/resource.sql | kasper-piskorski/rmlmapper-java | da75e1a073b07c347addafad28c3a0191e8ba54a | [
"MIT"
] | 96 | 2018-08-29T08:52:24.000Z | 2022-03-31T22:12:20.000Z | src/test/resources/test-cases/RMLTC0002j-MySQL/resource.sql | vemonet/rmlmapper-java | 2987b78647d4b4580cb76e89cb85ece1ba317e54 | [
"MIT"
] | 148 | 2018-08-06T09:36:10.000Z | 2022-03-31T10:17:19.000Z | src/test/resources/test-cases/RMLTC0002j-MySQL/resource.sql | vemonet/rmlmapper-java | 2987b78647d4b4580cb76e89cb85ece1ba317e54 | [
"MIT"
] | 51 | 2018-07-16T08:56:15.000Z | 2022-03-07T21:26:23.000Z | USE test;
DROP TABLE IF EXISTS test.student;
CREATE TABLE student (
ID INTEGER,
Name VARCHAR(50)
);
INSERT INTO student values ('10', 'Venus');
| 18.5 | 43 | 0.709459 |
b0fb038b828cfd0b8b9c378eaf747209a2e65bbc | 3,379 | py | Python | src/main.py | RysisLiang/TimestampConversion | f52f333b62cdc80d0ed419f2ca75f2e3749b1def | [
"MIT"
] | 1 | 2019-11-17T06:06:57.000Z | 2019-11-17T06:06:57.000Z | src/main.py | RysisLiang/TimestampConversion | f52f333b62cdc80d0ed419f2ca75f2e3749b1def | [
"MIT"
] | null | null | null | src/main.py | RysisLiang/TimestampConversion | f52f333b62cdc80d0ed419f2ca75f2e3749b1def | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import sys
import alfred
import time
import re
from datetime import datetime
_pattern1 = "%Y-%m-%d %H:%M:%S"
_pattern2 = "%Y%m%d %H:%M:%S"
_pattern3 = "%Y/%m/%d %H:%M:%S"
_pattern4 = "%Y.%m.%d %H:%M:%S"
_pattern5 = "%Y-%m-%d"
_pattern6 = "%Y%m%d"
_pattern7 = "%Y/%m/%d"
_pattern8 = "%Y.%m.%d"
_... | 22.831081 | 100 | 0.534182 |
05f195e5ec62e0e27198a5b50b234ebd35d1fbe5 | 3,742 | py | Python | stats/adjustscore.py | spiffcode/hostile-takeover | 363c8f7f02c25f90255b28a5e2eaea784b2a502f | [
"BSD-2-Clause-FreeBSD"
] | 113 | 2015-01-07T00:37:37.000Z | 2022-03-08T17:58:24.000Z | stats/adjustscore.py | ptitSeb/hostile-takeover | db70254a966ca3223178e669594f3b704b5471a2 | [
"BSD-2-Clause-FreeBSD"
] | 6 | 2015-04-13T16:16:00.000Z | 2021-06-08T04:49:09.000Z | stats/adjustscore.py | spiffcode/hostile-takeover | 363c8f7f02c25f90255b28a5e2eaea784b2a502f | [
"BSD-2-Clause-FreeBSD"
] | 49 | 2015-01-08T04:27:35.000Z | 2022-03-08T04:55:08.000Z | import os
import config
import basehandler
import models
import accounts
import urllib
import admin
from google.appengine.api import users
from google.appengine.ext import webapp
from google.appengine.ext.webapp import template
from google.appengine.ext import db
class AdjustScore(basehandler.BaseHandler):
def ge... | 33.410714 | 117 | 0.522982 |
0a5c1a1ed8119104ee7a3e980c036f65951a54f5 | 19,039 | cs | C# | Kudu.Core/Jobs/BaseJobRunner.cs | Acidburn0zzz/kudu | 617711e2f25834ba211e4f6ce002d2b7aae776d9 | [
"Apache-2.0"
] | null | null | null | Kudu.Core/Jobs/BaseJobRunner.cs | Acidburn0zzz/kudu | 617711e2f25834ba211e4f6ce002d2b7aae776d9 | [
"Apache-2.0"
] | null | null | null | Kudu.Core/Jobs/BaseJobRunner.cs | Acidburn0zzz/kudu | 617711e2f25834ba211e4f6ce002d2b7aae776d9 | [
"Apache-2.0"
] | null | null | null | using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Configuration;
using System.Diagnostics;
using System.IO;
using System.IO.Abstractions;
using System.Linq;
using System.Text;
using System.Threading;
using System.Xml.Linq;
using System.Xml.XPath;
using Kudu.Contracts.Jo... | 40.166667 | 163 | 0.56295 |
e73525f4380b71059bd9b89ce391b525b6e18893 | 1,195 | php | PHP | api/migrations/Version20211217135037.php | antoinechab/ws-hesias | 0cea203f6a7581bfcc100132041649d8fdb5ebdf | [
"MIT"
] | null | null | null | api/migrations/Version20211217135037.php | antoinechab/ws-hesias | 0cea203f6a7581bfcc100132041649d8fdb5ebdf | [
"MIT"
] | 9 | 2021-12-08T14:23:12.000Z | 2021-12-08T15:41:50.000Z | api/migrations/Version20211217135037.php | antoinechab/ws-hesias | 0cea203f6a7581bfcc100132041649d8fdb5ebdf | [
"MIT"
] | null | null | null | <?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20211217135037 extends AbstractMigration
{
public function getDescription(): string
{
... | 32.297297 | 161 | 0.687866 |
e2be71cd352b207ba4991138ccb8f00e95d56b63 | 16,812 | py | Python | cumm/gemm/outputs/__init__.py | FindDefinition/cumm | 3d58e85b660afa05c20514afe65b8aa3a4995953 | [
"Apache-2.0"
] | 20 | 2021-10-13T03:41:59.000Z | 2022-03-31T07:23:14.000Z | cumm/gemm/outputs/__init__.py | FindDefinition/cumm | 3d58e85b660afa05c20514afe65b8aa3a4995953 | [
"Apache-2.0"
] | 3 | 2021-11-21T11:25:55.000Z | 2022-03-08T06:12:35.000Z | cumm/gemm/outputs/__init__.py | FindDefinition/cumm | 3d58e85b660afa05c20514afe65b8aa3a4995953 | [
"Apache-2.0"
] | 4 | 2021-10-13T03:42:01.000Z | 2022-03-21T13:07:56.000Z | # Copyright 2021 Yan Yan
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, soft... | 44.47619 | 124 | 0.557102 |
a3af5634a303a9347a0729a4df73e3cd8d4f2b39 | 4,642 | ts | TypeScript | src/clang.ts | KritantaDev/vscode-clang | 8246240f71ea94d612312b08e621b0024c177e82 | [
"MIT"
] | 136 | 2016-01-19T20:39:51.000Z | 2021-12-28T20:05:19.000Z | src/clang.ts | KritantaDev/vscode-clang | 8246240f71ea94d612312b08e621b0024c177e82 | [
"MIT"
] | 90 | 2016-01-15T16:53:53.000Z | 2022-03-06T15:09:52.000Z | src/clang.ts | KritantaDev/vscode-clang | 8246240f71ea94d612312b08e621b0024c177e82 | [
"MIT"
] | 41 | 2016-01-28T23:08:47.000Z | 2021-06-30T16:29:50.000Z | import * as vscode from "vscode";
import * as variable from "./variable";
import * as state from "./state";
const renamedKeyMap: Map<string, string> = new Map<string, string>(
new Array<[string, string]>(
["diagnostic.delay", "diagnosticDelay"],
["diagnostic.enable", "enableDiagnostic"],
[... | 36.84127 | 146 | 0.576907 |
9375b4add29145393bd5457bf56b8b12e1b0e9c7 | 3,866 | cs | C# | OpenSim/Region/Framework/StorageManager.cs | Ideia-Boa/diva-distribution | 900ea516c1e57e2976a008ca6089afe1a64231f5 | [
"BSD-3-Clause"
] | 1 | 2016-07-23T23:18:20.000Z | 2016-07-23T23:18:20.000Z | OpenSim/Region/Framework/StorageManager.cs | mcortez/opensim | 6dc971b104cf29cef1f9f3890af13cd5a10dc3e4 | [
"BSD-3-Clause"
] | null | null | null | OpenSim/Region/Framework/StorageManager.cs | mcortez/opensim | 6dc971b104cf29cef1f9f3890af13cd5a10dc3e4 | [
"BSD-3-Clause"
] | 1 | 2020-07-10T06:42:56.000Z | 2020-07-10T06:42:56.000Z | /*
* Copyright (c) Contributors, http://opensimulator.org/
* See CONTRIBUTORS.TXT for a full list of copyright holders.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must r... | 39.85567 | 119 | 0.643818 |
e08c9ac38a89402fe6c2f5b7abc0ff905bcbe400 | 1,311 | c | C | 17_estruturas_genericas/exercicio_02.c | mariosoares/Estrut-Dados-Celes-Respostas | 56931c18f08b7d1edbf35f762d6d604aad635914 | [
"Apache-2.0"
] | 14 | 2018-10-09T06:53:31.000Z | 2022-03-21T10:16:08.000Z | 17_estruturas_genericas/exercicio_02.c | mariosoares/Estrut-Dados-Celes-Respostas | 56931c18f08b7d1edbf35f762d6d604aad635914 | [
"Apache-2.0"
] | null | null | null | 17_estruturas_genericas/exercicio_02.c | mariosoares/Estrut-Dados-Celes-Respostas | 56931c18f08b7d1edbf35f762d6d604aad635914 | [
"Apache-2.0"
] | 5 | 2020-01-18T12:08:21.000Z | 2022-03-31T23:48:37.000Z | /*
* Use o TAD do item anterior para armazenar dados de alunos:
*
* typedef struct aluno Aluno;
* struct aluno {
* char nome[81];
* float nota;
* };
*
* Implemente o código necessário para calcular a média das notas dos alunos arma-
* zenados no vetor.
*/
#include <stdio.h>
#include <stdlib.h>
#... | 18.464789 | 82 | 0.604882 |
a41d48a13e15d5574d59afbb344804994283da7b | 2,483 | php | PHP | www/TestsDiv.php | Vladimir-Trufanov/TPhpTools | 2a6f28f0ca5b2113791db8d30a17e32e53693957 | [
"MIT"
] | null | null | null | www/TestsDiv.php | Vladimir-Trufanov/TPhpTools | 2a6f28f0ca5b2113791db8d30a17e32e53693957 | [
"MIT"
] | null | null | null | www/TestsDiv.php | Vladimir-Trufanov/TPhpTools | 2a6f28f0ca5b2113791db8d30a17e32e53693957 | [
"MIT"
] | null | null | null | <?php
// PHP7/HTML5, EDGE/CHROME *** TestsDiv.php ***
// ****************************************************************************
// * TPhpTools-test Развернуть правую часть экрана - *
// * выполнить заданный те... | 39.412698 | 95 | 0.548933 |
4409f7c7e409a18b2b31582c5ad096cfb87dfef8 | 4,394 | py | Python | src/remotia/deployers/common.py | hivesolutions/remotia | cb7f3f1c8993af28991fdae36cf2000c1423ddc4 | [
"Apache-1.1"
] | 1 | 2015-11-12T16:31:03.000Z | 2015-11-12T16:31:03.000Z | src/remotia/deployers/common.py | hivesolutions/remotia | cb7f3f1c8993af28991fdae36cf2000c1423ddc4 | [
"Apache-1.1"
] | null | null | null | src/remotia/deployers/common.py | hivesolutions/remotia | cb7f3f1c8993af28991fdae36cf2000c1423ddc4 | [
"Apache-1.1"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Hive Remotia System
# Copyright (c) 2008-2020 Hive Solutions Lda.
#
# This file is part of Hive Remotia System.
#
# Hive Remotia System is free software: you can redistribute it and/or modify
# it under the terms of the Apache License as published by the Apache
# F... | 28.718954 | 78 | 0.672053 |
57ec47a546ccdb3016997adeacd4b31a452044d2 | 1,021 | php | PHP | booking_complete.php | dat1041988/rezgo-parser | 7464b20521c27292c63ba6f755d5e49ec38ae361 | [
"Apache-2.0"
] | 1 | 2020-01-08T12:48:16.000Z | 2020-01-08T12:48:16.000Z | booking_complete.php | arinno/rezgo-parser | 1ff56a49f41e7ad601a4da4152a6791210655e79 | [
"Apache-2.0"
] | null | null | null | booking_complete.php | arinno/rezgo-parser | 1ff56a49f41e7ad601a4da4152a6791210655e79 | [
"Apache-2.0"
] | null | null | null | <?php
// This is the booking receipt page
require('rezgo/include/page_header.php');
// start a new instance of RezgoSite
$site = new RezgoSite();
// grab and decode the trans_num if it was set
$trans_num = $site->decode($_REQUEST['trans_num']);
// send the user home if they shoulden't be here
if(!$tra... | 21.270833 | 72 | 0.621939 |
43f6acb2d55b6d66d97b71e9ac8489557247477f | 265 | ts | TypeScript | src/wait-for-dom-content-loaded.ts | BlackGlory/wait-for | 7f4ac58dc4f72eae8c93f99bc133d6c00207a461 | [
"MIT"
] | null | null | null | src/wait-for-dom-content-loaded.ts | BlackGlory/wait-for | 7f4ac58dc4f72eae8c93f99bc133d6c00207a461 | [
"MIT"
] | 6 | 2021-01-04T14:27:00.000Z | 2021-12-24T06:39:29.000Z | src/wait-for-dom-content-loaded.ts | BlackGlory/wait-for | 7f4ac58dc4f72eae8c93f99bc133d6c00207a461 | [
"MIT"
] | 1 | 2021-10-16T08:06:36.000Z | 2021-10-16T08:06:36.000Z | export function waitForDOMContentLoaded(): Promise<void> {
return new Promise(resolve => {
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', () => resolve(), { once: true })
} else {
resolve()
}
})
}
| 26.5 | 84 | 0.618868 |
2c98f1c092b65ce2ec69568fe50df4ea9368d181 | 4,378 | py | Python | main/passwordValidator.py | FredHappyface/Python.PasswordValidator | 7ab48a073456e3431489fd476f46428bd09cbf1f | [
"MIT"
] | null | null | null | main/passwordValidator.py | FredHappyface/Python.PasswordValidator | 7ab48a073456e3431489fd476f46428bd09cbf1f | [
"MIT"
] | null | null | null | main/passwordValidator.py | FredHappyface/Python.PasswordValidator | 7ab48a073456e3431489fd476f46428bd09cbf1f | [
"MIT"
] | null | null | null | '''
Author FredHappyface
Date 2019/07/22
passwordValidator.py is a more intelligent password validator that fails early
and suggests changes to your passwords
'''
import os, sys, inspect
THISDIR = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
# Add ../lib to the import path
sys.path.insert(... | 36.181818 | 152 | 0.656693 |
fddddaed4b316747db990cddc356ef5047622fb5 | 25 | css | CSS | src/css/components/po-info/index.css | leonardosimoura/po-style | 6ea2dcfe7c7f54cddda55e693771a34290b85234 | [
"MIT"
] | 25 | 2020-05-09T18:08:02.000Z | 2022-03-18T02:57:04.000Z | src/css/components/po-info/index.css | leonardosimoura/po-style | 6ea2dcfe7c7f54cddda55e693771a34290b85234 | [
"MIT"
] | 14 | 2020-04-15T20:55:28.000Z | 2022-01-30T15:43:29.000Z | src/css/components/po-info/index.css | leonardosimoura/po-style | 6ea2dcfe7c7f54cddda55e693771a34290b85234 | [
"MIT"
] | 33 | 2020-03-25T14:00:29.000Z | 2022-03-12T09:52:36.000Z | @import './po-info.css';
| 12.5 | 24 | 0.6 |
8ea0d8f0a305b28674d6347ea2c9e9c541103642 | 829 | rb | Ruby | spec/services/pipeline_service/serializers_spec.rb | FeatureToggleStudy/canvas_shim | 07f4a811fab7f58b0b77c6f76cde0e2fe5d272cf | [
"MIT"
] | null | null | null | spec/services/pipeline_service/serializers_spec.rb | FeatureToggleStudy/canvas_shim | 07f4a811fab7f58b0b77c6f76cde0e2fe5d272cf | [
"MIT"
] | 41 | 2019-01-29T20:32:12.000Z | 2021-07-12T19:00:17.000Z | spec/services/pipeline_service/serializers_spec.rb | FeatureToggleStudy/canvas_shim | 07f4a811fab7f58b0b77c6f76cde0e2fe5d272cf | [
"MIT"
] | 2 | 2019-11-03T19:35:41.000Z | 2020-12-16T00:20:18.000Z | describe PipelineService::Serializers do
include_context 'stubbed_network'
describe '#names' do
it 'list the names of the serializers' do
expect(described_class.names).to include(:Assignment)
end
it 'does not include base methods' do
expect(described_class.names).to_not include(:BaseMethods)... | 29.607143 | 108 | 0.732207 |
70e9c3a2d18e7cb2a5c8b2de54676a1734286186 | 162 | sql | SQL | web/db/DBScripts/DBScripts/AttacheToDB.sql | benchuk/PicAround | 5ddc3bd59e0bf6d13a1eaf1050c66426798aefca | [
"MIT"
] | null | null | null | web/db/DBScripts/DBScripts/AttacheToDB.sql | benchuk/PicAround | 5ddc3bd59e0bf6d13a1eaf1050c66426798aefca | [
"MIT"
] | null | null | null | web/db/DBScripts/DBScripts/AttacheToDB.sql | benchuk/PicAround | 5ddc3bd59e0bf6d13a1eaf1050c66426798aefca | [
"MIT"
] | null | null | null | EXEC sp_attach_db
@dbname = N'Picup',
@filename1 = N'C:\Android\WebSite\PicUpMvc3\PicApp1\App_Data\PicUpDB.mdf'
EXEC sp_detach_db
@dbname = N'Picup'
| 18 | 74 | 0.709877 |
9ff20de4069c7434facc95ac4771da5d600af92b | 2,293 | py | Python | runner.py | Pgmbru/wowhead_scraper | b4bf3e71bf88abac707d1d1f8c93a30f7c7d0164 | [
"MIT"
] | null | null | null | runner.py | Pgmbru/wowhead_scraper | b4bf3e71bf88abac707d1d1f8c93a30f7c7d0164 | [
"MIT"
] | null | null | null | runner.py | Pgmbru/wowhead_scraper | b4bf3e71bf88abac707d1d1f8c93a30f7c7d0164 | [
"MIT"
] | null | null | null | from argparse import ArgumentParser
from logging import getLogger
from pathlib import Path
from typing import Union
from scrapy.crawler import CrawlerProcess
from spiders import NPCSpider, QuestSpider
class Runner:
lang: str = ""
target: str = ""
output_dir: Path = None
def __init__(self, lang: str... | 29.779221 | 120 | 0.58744 |
eb8d1e21846361e5be544c512782b7b721064757 | 2,931 | css | CSS | css/antsand--forms.css | antsand/styles | de5e42d64ad74c5b517b195bf01caf7c286cafe7 | [
"MIT"
] | 2 | 2019-01-24T23:17:13.000Z | 2019-01-28T23:35:56.000Z | css/antsand--forms.css | antsand/styles | de5e42d64ad74c5b517b195bf01caf7c286cafe7 | [
"MIT"
] | null | null | null | css/antsand--forms.css | antsand/styles | de5e42d64ad74c5b517b195bf01caf7c286cafe7 | [
"MIT"
] | null | null | null | *,*:before,*:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.color-red{color:#d52b1e}.form-padding{padding:45px 0px}.form-default .form-elements{margin:15px 0px}.form-default input[type="text"],.form-default input[type="email"],.form-default input[type="tel"],.form-default input[ty... | 1,465.5 | 2,930 | 0.778915 |
6d412c24e70e84f1031972383c3f7b1d1675ac06 | 8,493 | ts | TypeScript | src/provider/controller/ToastManager.ts | TheoOttahOF/notifications-service | d848b89e27519ba6985c3ff7f0eb44479087b1e9 | [
"Apache-2.0"
] | null | null | null | src/provider/controller/ToastManager.ts | TheoOttahOF/notifications-service | d848b89e27519ba6985c3ff7f0eb44479087b1e9 | [
"Apache-2.0"
] | null | null | null | src/provider/controller/ToastManager.ts | TheoOttahOF/notifications-service | d848b89e27519ba6985c3ff7f0eb44479087b1e9 | [
"Apache-2.0"
] | null | null | null | import {injectable, inject} from 'inversify';
import {Inject} from '../common/Injectables';
import {StoredNotification} from '../model/StoredNotification';
import {Toast, ToastState} from '../model/Toast';
import {CreateNotification, RemoveNotifications, ToggleCenterVisibility, MinimizeToast, ToggleCenterMuted} from '... | 39.873239 | 143 | 0.621688 |
c3677e0f3a0c810123f79efb2a05a710d5761842 | 5,104 | cs | C# | Assets/DataBindings/Editor/Lib/gendarme/framework/Gendarme.Framework.Rocks/MethodRocks.cs | laicasaane/unity-data-binding | b5b2c86e20c1e2087aaaae1f4959de64718fcdd4 | [
"MIT"
] | 6 | 2019-05-28T14:11:02.000Z | 2020-05-25T23:10:10.000Z | Assets/DataBindings/Editor/Lib/gendarme/framework/Gendarme.Framework.Rocks/MethodRocks.cs | laicasaane/unity-data-binding | b5b2c86e20c1e2087aaaae1f4959de64718fcdd4 | [
"MIT"
] | null | null | null | Assets/DataBindings/Editor/Lib/gendarme/framework/Gendarme.Framework.Rocks/MethodRocks.cs | laicasaane/unity-data-binding | b5b2c86e20c1e2087aaaae1f4959de64718fcdd4 | [
"MIT"
] | 1 | 2020-03-15T13:20:31.000Z | 2020-03-15T13:20:31.000Z | //
// Gendarme.Framework.Rocks.MethodRocks
//
// Authors:
// Sebastien Pouliot <sebastien@ximian.com>
// Adrian Tsai <adrian_tsai@hotmail.com>
// Daniel Abramov <ex@vingrad.ru>
// Andreas Noever <andreas.noever@gmail.com>
// Cedric Vivier <cedricv@neonux.com>
//
// Copyright (C) 2007-2008 Novell, Inc (http://www.nove... | 35.444444 | 118 | 0.700235 |
38c9d0fa083dd97ee87c14c546a3edd8694c3fd5 | 56,044 | php | PHP | application/controllers/dosen/Pengabdian.php | irzanurf/siTediTa | eea9fc8be4fc20f3fc895884fd84d775de4ce8b7 | [
"MIT"
] | null | null | null | application/controllers/dosen/Pengabdian.php | irzanurf/siTediTa | eea9fc8be4fc20f3fc895884fd84d775de4ce8b7 | [
"MIT"
] | null | null | null | application/controllers/dosen/Pengabdian.php | irzanurf/siTediTa | eea9fc8be4fc20f3fc895884fd84d775de4ce8b7 | [
"MIT"
] | null | null | null | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Pengabdian extends CI_Controller {
public function __construct()
{
parent::__construct();
//load model admin
$this->load->model('Admin');
//cek session dan level user
if($this->Admin->is_role() ... | 42.3613 | 364 | 0.507316 |
dab8dd1066851f4cc35f829b19b68d36a6013ecf | 144 | ts | TypeScript | src/Todo/create-todo.dto.ts | eudesenv/todo-app | e2cb9b5780e8d0cc8d31d128c06a87ce070232b4 | [
"MIT"
] | null | null | null | src/Todo/create-todo.dto.ts | eudesenv/todo-app | e2cb9b5780e8d0cc8d31d128c06a87ce070232b4 | [
"MIT"
] | null | null | null | src/Todo/create-todo.dto.ts | eudesenv/todo-app | e2cb9b5780e8d0cc8d31d128c06a87ce070232b4 | [
"MIT"
] | null | null | null | export class Todo {
constructor(
public id: string,
public todoTitle: string,
public todoDescription: string,
) {}
} | 20.571429 | 37 | 0.611111 |
4b6c9e2d2865f26739898f527eb513ebf0d5a6ee | 4,681 | cpp | C++ | core/jitk/codegen_util.cpp | bh107/bohrium | 5b83e7117285fefc7779ed0e9acb0f8e74c7e068 | [
"Apache-2.0"
] | 236 | 2015-03-31T15:39:30.000Z | 2022-03-24T01:43:14.000Z | core/jitk/codegen_util.cpp | bh107/bohrium | 5b83e7117285fefc7779ed0e9acb0f8e74c7e068 | [
"Apache-2.0"
] | 324 | 2015-05-27T10:35:38.000Z | 2021-12-10T07:34:10.000Z | core/jitk/codegen_util.cpp | bh107/bohrium | 5b83e7117285fefc7779ed0e9acb0f8e74c7e068 | [
"Apache-2.0"
] | 41 | 2015-05-26T12:38:42.000Z | 2022-01-10T15:16:37.000Z | /*
This file is part of Bohrium and copyright (c) 2012 the Bohrium
team <http://www.bh107.org>.
Bohrium is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3
of the License, or (at your option) ... | 32.734266 | 111 | 0.618885 |
4d1473ccf39e9a751975902f40216f3c24b8f04f | 216 | cs | C# | src/System/Diagnostics/SR.cs | Polystream/System.Diagnostics.PerformanceCounters | f0e69bc366c97a05bf5e05c5c81c1156457f0380 | [
"Apache-2.0"
] | 7 | 2018-01-16T14:17:40.000Z | 2019-07-27T05:11:15.000Z | src/System/Diagnostics/SR.cs | Polystream/System.Diagnostics.PerformanceCounters | f0e69bc366c97a05bf5e05c5c81c1156457f0380 | [
"Apache-2.0"
] | 2 | 2019-05-21T06:02:24.000Z | 2020-06-10T07:52:42.000Z | src/System/Diagnostics/SR.cs | Polystream/System.Diagnostics.PerformanceCounters | f0e69bc366c97a05bf5e05c5c81c1156457f0380 | [
"Apache-2.0"
] | null | null | null | namespace PerformanceCounters
{
public static class SR
{
public static string GetString(string format, params object[] args)
{
return string.Format(format, args);
}
}
} | 21.6 | 75 | 0.601852 |
38d5c655e2fca7777438841967f470062e7a681e | 969 | php | PHP | tests/Api/SuppressionTest.php | rutek/mailgun-php | 3c18d84dba86161185924ab764bf0bf4c1703034 | [
"MIT"
] | null | null | null | tests/Api/SuppressionTest.php | rutek/mailgun-php | 3c18d84dba86161185924ab764bf0bf4c1703034 | [
"MIT"
] | null | null | null | tests/Api/SuppressionTest.php | rutek/mailgun-php | 3c18d84dba86161185924ab764bf0bf4c1703034 | [
"MIT"
] | null | null | null | <?php
/*
* Copyright (C) 2013 Mailgun
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
namespace Mailgun\Tests\Api;
use Mailgun\Api\Suppression;
/**
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
*/
class SuppressionTest extends T... | 21.533333 | 86 | 0.636739 |
7712bea8a5466c59e23f22f1997b489414053997 | 550 | py | Python | app/main/models/pedido.py | amandapersampa/Franguinho | 940b6601a821ab4857de7f0a5a0ac53f6f54a564 | [
"MIT"
] | null | null | null | app/main/models/pedido.py | amandapersampa/Franguinho | 940b6601a821ab4857de7f0a5a0ac53f6f54a564 | [
"MIT"
] | 8 | 2017-03-14T11:55:07.000Z | 2017-04-03T00:53:32.000Z | app/main/models/pedido.py | amandapersampa/MicroGerencia | 940b6601a821ab4857de7f0a5a0ac53f6f54a564 | [
"MIT"
] | null | null | null | # coding=utf-8
from app import db
from sqlalchemy.orm import relationship
class pedido_dao:
__tablename__ = "pedido"
# id_pedido = db.Column(db.Integer, primary_key=True)
# nome = db.Column(db.String)
# valor = db.Column(db.Float)
# qtd_ingrediente = db.Column(db.Integer)
# qtd_item_extra = db.Colum... | 34.375 | 76 | 0.707273 |
ddcbcee38fb9fa5dd831a3c28ebca1910ae6693c | 1,895 | java | Java | drools-benchmarks/src/main/java/org/drools/benchmarks/common/AbstractBenchmark.java | hellowdan/kie-benchmarks | 1cfce530cc3d374f3884b60d954bae9a038b7b5c | [
"Apache-2.0"
] | 4 | 2020-05-12T08:57:00.000Z | 2020-12-02T20:26:43.000Z | drools-benchmarks/src/main/java/org/drools/benchmarks/common/AbstractBenchmark.java | hellowdan/kie-benchmarks | 1cfce530cc3d374f3884b60d954bae9a038b7b5c | [
"Apache-2.0"
] | 41 | 2017-08-28T12:11:00.000Z | 2022-03-31T16:14:34.000Z | drools-benchmarks/src/main/java/org/drools/benchmarks/common/AbstractBenchmark.java | hellowdan/kie-benchmarks | 1cfce530cc3d374f3884b60d954bae9a038b7b5c | [
"Apache-2.0"
] | 26 | 2017-08-22T09:08:48.000Z | 2021-11-09T11:51:23.000Z | /*
* Copyright 2015 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, softw... | 32.118644 | 87 | 0.746702 |
fae9017601477a5c103e5cf5cd15da3cbc34805f | 738 | sql | SQL | database.sql | gruessung/meaju | 2060c4afa113e9dd5744b160373f8eea6af34503 | [
"WTFPL"
] | 18 | 2019-09-23T13:07:20.000Z | 2021-11-21T13:59:04.000Z | database.sql | gruessung/meaju | 2060c4afa113e9dd5744b160373f8eea6af34503 | [
"WTFPL"
] | 1 | 2020-03-02T13:52:07.000Z | 2020-12-19T14:16:29.000Z | database.sql | gruessung/meaju | 2060c4afa113e9dd5744b160373f8eea6af34503 | [
"WTFPL"
] | 3 | 2019-09-23T13:28:01.000Z | 2020-04-29T18:58:15.000Z | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
CREATE TABLE `stat` (
`id` int(11) NOT NULL,
`url` int(20) NOT NULL,
`time` varchar(50) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
CREATE TABLE `urls` (
`id` int(11) NOT NULL,
`short` varchar(255) ... | 21.085714 | 46 | 0.680217 |
e2cd45da03be911624abea4e2d780a36759787cb | 9,695 | py | Python | ebi_eva_common_pyutils/nextflow/nextflow_pipeline.py | itsroops/eva-common-pyutils | 4226e3800a95e8a50ff2735792382fe1a6ca4efc | [
"Apache-2.0"
] | null | null | null | ebi_eva_common_pyutils/nextflow/nextflow_pipeline.py | itsroops/eva-common-pyutils | 4226e3800a95e8a50ff2735792382fe1a6ca4efc | [
"Apache-2.0"
] | 4 | 2020-09-11T12:02:49.000Z | 2021-06-23T14:44:36.000Z | ebi_eva_common_pyutils/nextflow/nextflow_pipeline.py | itsroops/eva-common-pyutils | 4226e3800a95e8a50ff2735792382fe1a6ca4efc | [
"Apache-2.0"
] | 6 | 2020-07-18T21:06:10.000Z | 2022-01-11T08:00:26.000Z | # Copyright 2021 EMBL - European Bioinformatics Institute
#
# 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... | 51.296296 | 259 | 0.678185 |
7fb67f9bbe9900061f8971f5cfcdde3492cbbe6f | 1,540 | php | PHP | public/lib/Kendo/UI/AppBar.php | ductm-it/codeignterdev | f5baa5aff686442fd94b7c920ca9ae2539bf0969 | [
"MIT"
] | null | null | null | public/lib/Kendo/UI/AppBar.php | ductm-it/codeignterdev | f5baa5aff686442fd94b7c920ca9ae2539bf0969 | [
"MIT"
] | null | null | null | public/lib/Kendo/UI/AppBar.php | ductm-it/codeignterdev | f5baa5aff686442fd94b7c920ca9ae2539bf0969 | [
"MIT"
] | null | null | null | <?php
namespace Kendo\UI;
class AppBar extends \Kendo\UI\Widget {
public function name() {
return 'AppBar';
}
//>> Properties
/**
* Adds AppBarItem to the AppBar.
* @param \Kendo\UI\AppBarItem|array,... $value one or more AppBarItem to add.
* @return \Kendo\UI\AppBar
*/
public... | 23.333333 | 101 | 0.6 |