hexsha string | size int64 | ext string | lang string | max_stars_repo_path string | max_stars_repo_name string | max_stars_repo_head_hexsha string | max_stars_repo_licenses list | max_stars_count int64 | max_stars_repo_stars_event_min_datetime string | max_stars_repo_stars_event_max_datetime string | max_issues_repo_path string | max_issues_repo_name string | max_issues_repo_head_hexsha string | max_issues_repo_licenses list | max_issues_count int64 | max_issues_repo_issues_event_min_datetime string | max_issues_repo_issues_event_max_datetime string | max_forks_repo_path string | max_forks_repo_name string | max_forks_repo_head_hexsha string | max_forks_repo_licenses list | max_forks_count int64 | max_forks_repo_forks_event_min_datetime string | max_forks_repo_forks_event_max_datetime string | content string | avg_line_length float64 | max_line_length int64 | alphanum_fraction float64 | qsc_code_num_words_quality_signal int64 | qsc_code_num_chars_quality_signal float64 | qsc_code_mean_word_length_quality_signal float64 | qsc_code_frac_words_unique_quality_signal float64 | qsc_code_frac_chars_top_2grams_quality_signal float64 | qsc_code_frac_chars_top_3grams_quality_signal float64 | qsc_code_frac_chars_top_4grams_quality_signal float64 | qsc_code_frac_chars_dupe_5grams_quality_signal float64 | qsc_code_frac_chars_dupe_6grams_quality_signal float64 | qsc_code_frac_chars_dupe_7grams_quality_signal float64 | qsc_code_frac_chars_dupe_8grams_quality_signal float64 | qsc_code_frac_chars_dupe_9grams_quality_signal float64 | qsc_code_frac_chars_dupe_10grams_quality_signal float64 | qsc_code_frac_chars_replacement_symbols_quality_signal float64 | qsc_code_frac_chars_digital_quality_signal float64 | qsc_code_frac_chars_whitespace_quality_signal float64 | qsc_code_size_file_byte_quality_signal float64 | qsc_code_num_lines_quality_signal float64 | qsc_code_num_chars_line_max_quality_signal float64 | qsc_code_num_chars_line_mean_quality_signal float64 | qsc_code_frac_chars_alphabet_quality_signal float64 | qsc_code_frac_chars_comments_quality_signal float64 | qsc_code_cate_xml_start_quality_signal float64 | qsc_code_frac_lines_dupe_lines_quality_signal float64 | qsc_code_cate_autogen_quality_signal float64 | qsc_code_frac_lines_long_string_quality_signal float64 | qsc_code_frac_chars_string_length_quality_signal float64 | qsc_code_frac_chars_long_word_length_quality_signal float64 | qsc_code_frac_lines_string_concat_quality_signal float64 | qsc_code_cate_encoded_data_quality_signal float64 | qsc_code_frac_chars_hex_words_quality_signal float64 | qsc_code_frac_lines_prompt_comments_quality_signal float64 | qsc_code_frac_lines_assert_quality_signal float64 | qsc_codepython_cate_ast_quality_signal float64 | qsc_codepython_frac_lines_func_ratio_quality_signal float64 | qsc_codepython_cate_var_zero_quality_signal bool | qsc_codepython_frac_lines_pass_quality_signal float64 | qsc_codepython_frac_lines_import_quality_signal float64 | qsc_codepython_frac_lines_simplefunc_quality_signal float64 | qsc_codepython_score_lines_no_logic_quality_signal float64 | qsc_codepython_frac_lines_print_quality_signal float64 | qsc_code_num_words int64 | qsc_code_num_chars int64 | qsc_code_mean_word_length int64 | qsc_code_frac_words_unique null | qsc_code_frac_chars_top_2grams int64 | qsc_code_frac_chars_top_3grams int64 | qsc_code_frac_chars_top_4grams int64 | qsc_code_frac_chars_dupe_5grams int64 | qsc_code_frac_chars_dupe_6grams int64 | qsc_code_frac_chars_dupe_7grams int64 | qsc_code_frac_chars_dupe_8grams int64 | qsc_code_frac_chars_dupe_9grams int64 | qsc_code_frac_chars_dupe_10grams int64 | qsc_code_frac_chars_replacement_symbols int64 | qsc_code_frac_chars_digital int64 | qsc_code_frac_chars_whitespace int64 | qsc_code_size_file_byte int64 | qsc_code_num_lines int64 | qsc_code_num_chars_line_max int64 | qsc_code_num_chars_line_mean int64 | qsc_code_frac_chars_alphabet int64 | qsc_code_frac_chars_comments int64 | qsc_code_cate_xml_start int64 | qsc_code_frac_lines_dupe_lines int64 | qsc_code_cate_autogen int64 | qsc_code_frac_lines_long_string int64 | qsc_code_frac_chars_string_length int64 | qsc_code_frac_chars_long_word_length int64 | qsc_code_frac_lines_string_concat null | qsc_code_cate_encoded_data int64 | qsc_code_frac_chars_hex_words int64 | qsc_code_frac_lines_prompt_comments int64 | qsc_code_frac_lines_assert int64 | qsc_codepython_cate_ast int64 | qsc_codepython_frac_lines_func_ratio int64 | qsc_codepython_cate_var_zero int64 | qsc_codepython_frac_lines_pass int64 | qsc_codepython_frac_lines_import int64 | qsc_codepython_frac_lines_simplefunc int64 | qsc_codepython_score_lines_no_logic int64 | qsc_codepython_frac_lines_print int64 | effective string | hits int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5b6cd06461b1c309277600554e409382b19dcbbc | 1,154 | py | Python | crack-data-structures-and-algorithms/leetcode/find_minimum_in_rotated_sorted_array_II_q154.py | Watch-Later/Eureka | 3065e76d5bf8b37d5de4f9ee75b2714a42dd4c35 | [
"MIT"
] | 20 | 2016-05-16T11:09:04.000Z | 2021-12-08T09:30:33.000Z | crack-data-structures-and-algorithms/leetcode/find_minimum_in_rotated_sorted_array_II_q154.py | Watch-Later/Eureka | 3065e76d5bf8b37d5de4f9ee75b2714a42dd4c35 | [
"MIT"
] | 1 | 2018-12-30T09:55:31.000Z | 2018-12-30T14:08:30.000Z | crack-data-structures-and-algorithms/leetcode/find_minimum_in_rotated_sorted_array_II_q154.py | Watch-Later/Eureka | 3065e76d5bf8b37d5de4f9ee75b2714a42dd4c35 | [
"MIT"
] | 11 | 2016-05-02T09:17:12.000Z | 2021-12-08T09:30:35.000Z | # -*- coding: utf-8 -*-
# 0xCCCCCCCC
# Like Q153 but with possible duplicates.
def find_min(nums):
"""
:type nums: List[int]
:rtype: int
"""
l, r = 0, len(nums) - 1
while l < r and nums[l] >= nums[r]:
m = (l + r) // 2
if nums[m] > nums[r]:
l = m + 1
elif num... | 19.896552 | 84 | 0.500867 | 198 | 1,154 | 2.863636 | 0.287879 | 0.135802 | 0.213404 | 0.282187 | 0.361552 | 0.35097 | 0.121693 | 0.082892 | 0.082892 | 0 | 0 | 0.07152 | 0.32149 | 1,154 | 58 | 85 | 19.896552 | 0.652618 | 0.2487 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0 | 0 | 0.057143 | 0.285714 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5b700dba7e25aa3e422683220a7986fd5602e80b | 1,839 | py | Python | tests/test_Services.py | cossio/ProteoPy | a3569dcef34e4d416863c812e90498d749dc288f | [
"MIT"
] | null | null | null | tests/test_Services.py | cossio/ProteoPy | a3569dcef34e4d416863c812e90498d749dc288f | [
"MIT"
] | null | null | null | tests/test_Services.py | cossio/ProteoPy | a3569dcef34e4d416863c812e90498d749dc288f | [
"MIT"
] | null | null | null | """
Tests for the Services class
"""
from unittest import TestCase
import ProteoPy
class TestServices(TestCase):
"""
Contains tests for the Services class
"""
def setUp(self):
self.services = ProteoPy.Services()
def test_uniprot_id(self):
'''
Tests Services.uniprot_id m... | 30.147541 | 87 | 0.549212 | 188 | 1,839 | 5.303191 | 0.393617 | 0.120361 | 0.171515 | 0.243731 | 0.383149 | 0.310933 | 0 | 0 | 0 | 0 | 0 | 0.101285 | 0.280587 | 1,839 | 60 | 88 | 30.65 | 0.652305 | 0.126699 | 0 | 0 | 0 | 0 | 0.177793 | 0 | 0 | 0 | 0 | 0 | 0.36 | 1 | 0.24 | false | 0 | 0.08 | 0 | 0.36 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5b711317c73f5c4cc8f5471ff753a3819261833b | 235 | py | Python | meiduo_mall/utils/django_redis_demo.py | liusudo123/meiduo_project | 3bf92fff56bf47777795cf9078ff285eb004b81f | [
"MIT"
] | null | null | null | meiduo_mall/utils/django_redis_demo.py | liusudo123/meiduo_project | 3bf92fff56bf47777795cf9078ff285eb004b81f | [
"MIT"
] | null | null | null | meiduo_mall/utils/django_redis_demo.py | liusudo123/meiduo_project | 3bf92fff56bf47777795cf9078ff285eb004b81f | [
"MIT"
] | null | null | null | # 1. 导包
from django_redis import get_redis_connection
# 2. 链接
def test_django_redis():
client = get_redis_connection('default')
# 3. 曾删改查
client.set('django_redis_key', 'itcast')
print(client.get('django_redis_key'))
| 21.363636 | 45 | 0.710638 | 34 | 235 | 4.588235 | 0.588235 | 0.282051 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015306 | 0.165957 | 235 | 10 | 46 | 23.5 | 0.780612 | 0.080851 | 0 | 0 | 0 | 0 | 0.212264 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0.2 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5b958dfd6c18fbeb510a1fdae0c0a738b1dc7590 | 1,896 | py | Python | Stacks/first non repeating char in stream.py | mr-mornin-star/problemSolving | c278e5d090af7370e56789e68b7bb73dc37165f8 | [
"Apache-2.0"
] | null | null | null | Stacks/first non repeating char in stream.py | mr-mornin-star/problemSolving | c278e5d090af7370e56789e68b7bb73dc37165f8 | [
"Apache-2.0"
] | null | null | null | Stacks/first non repeating char in stream.py | mr-mornin-star/problemSolving | c278e5d090af7370e56789e68b7bb73dc37165f8 | [
"Apache-2.0"
] | null | null | null | from collections import deque
from collections import defaultdict
class Solution:
# @param A : string
# @return a strings
def solve(self, a):
mem=defaultdict(int)
q=deque()
ans=[]
for c in a:
# print(q)
# print(mem)
if c not in mem:
... | 21.793103 | 249 | 0.613924 | 264 | 1,896 | 4.409091 | 0.356061 | 0.154639 | 0.270619 | 0.290378 | 0.237113 | 0.097938 | 0.097938 | 0.097938 | 0.097938 | 0.097938 | 0 | 0.014116 | 0.290084 | 1,896 | 87 | 250 | 21.793103 | 0.850669 | 0.037447 | 0 | 0 | 0 | 0 | 0.001894 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5bc0d82b914159f2b8d4ce3901a62e736f244a0f | 2,134 | py | Python | azcam_soguiders/console_soguiders.py | mplesser/soguiders | 915ea962c6a2736d2a617c726db427fd8ec3cc45 | [
"MIT"
] | null | null | null | azcam_soguiders/console_soguiders.py | mplesser/soguiders | 915ea962c6a2736d2a617c726db427fd8ec3cc45 | [
"MIT"
] | null | null | null | azcam_soguiders/console_soguiders.py | mplesser/soguiders | 915ea962c6a2736d2a617c726db427fd8ec3cc45 | [
"MIT"
] | null | null | null | # azcamconsole config file for soguiders
import os
import threading
import azcam
import azcam.shortcuts
from azcam_ds9.ds9display import Ds9Display
# ****************************************************************
# files and folders
# ****************************************************************
azcam.db.syst... | 35.566667 | 92 | 0.435801 | 162 | 2,134 | 5.654321 | 0.395062 | 0.091703 | 0.055677 | 0.032751 | 0.058952 | 0.058952 | 0 | 0 | 0 | 0 | 0 | 0.004541 | 0.071228 | 2,134 | 59 | 93 | 36.169492 | 0.457619 | 0.503749 | 0 | 0 | 0 | 0 | 0.217391 | 0.062802 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.230769 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5bc7162a9fa6304b212408ee6d9b84e71db91919 | 1,225 | py | Python | code.py | kasthuri28/hacktoberithms | b5c3e2344176e709c61d37f15420db079a6aaf02 | [
"MIT"
] | null | null | null | code.py | kasthuri28/hacktoberithms | b5c3e2344176e709c61d37f15420db079a6aaf02 | [
"MIT"
] | null | null | null | code.py | kasthuri28/hacktoberithms | b5c3e2344176e709c61d37f15420db079a6aaf02 | [
"MIT"
] | null | null | null | const assert = require('assert')
function checkout_time(customers, n_cashier) {
let cashiers = Array(n_cashier).fill(0)
customers.forEach(customer => {
const minIndex = cashiers.reduce((accIdx, current, index) => {
return current < cashiers[accIdx] ? index : accIdx
}, 0)
cas... | 29.166667 | 92 | 0.537143 | 137 | 1,225 | 4.766423 | 0.408759 | 0.05513 | 0.02144 | 0.024502 | 0.05513 | 0.05513 | 0.05513 | 0.05513 | 0.05513 | 0.05513 | 0 | 0.039548 | 0.277551 | 1,225 | 41 | 93 | 29.878049 | 0.698305 | 0 | 0 | 0.162162 | 0 | 0 | 0.108571 | 0 | 0 | 0 | 0 | 0 | 0.108108 | 0 | null | null | 0.054054 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
5be56358db4851c0e2f4b271a6a7fb959144e31b | 86 | py | Python | giraf/const.py | amol9/imgur | e51de27641041bbf71c604761aa9249d51448a69 | [
"MIT"
] | 1 | 2016-02-27T21:09:43.000Z | 2016-02-27T21:09:43.000Z | giraf/const.py | amol9/imgur | e51de27641041bbf71c604761aa9249d51448a69 | [
"MIT"
] | null | null | null | giraf/const.py | amol9/imgur | e51de27641041bbf71c604761aa9249d51448a69 | [
"MIT"
] | null | null | null |
program_name = 'giraf'
program_desc = 'A command line utility to access imgur.com.'
| 17.2 | 60 | 0.744186 | 13 | 86 | 4.769231 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162791 | 86 | 4 | 61 | 21.5 | 0.861111 | 0 | 0 | 0 | 0 | 0 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5bf3897e103a25d825ae18abe5185bb7fc54924c | 285 | py | Python | IMDB/serializers.py | MrRobot100/api-Auth | e6d5aba3e100f92ed3b48251ec8567c23ad8224d | [
"MIT"
] | 1 | 2020-06-09T14:04:10.000Z | 2020-06-09T14:04:10.000Z | IMDB/serializers.py | MrRobot100/api-Auth | e6d5aba3e100f92ed3b48251ec8567c23ad8224d | [
"MIT"
] | 8 | 2019-11-24T08:49:08.000Z | 2021-09-22T18:20:44.000Z | IMDB/serializers.py | ParserKnight/DjangoRest-api-Auth | e6d5aba3e100f92ed3b48251ec8567c23ad8224d | [
"MIT"
] | null | null | null |
from rest_framework import serializers
from .models import Pelicula
from django.contrib.auth.models import User
from . import models
class PeliculaSerializer(serializers.ModelSerializer):
class Meta:
fields = ('id', 'titulo', 'descripcion', 'puntaje')
model = models.Pelicula
| 21.923077 | 54 | 0.775439 | 33 | 285 | 6.666667 | 0.636364 | 0.109091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 285 | 12 | 55 | 23.75 | 0.890688 | 0 | 0 | 0 | 0 | 0 | 0.091873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
5bfc77b55c7e3c74337296929c44190e4bfe2909 | 181 | py | Python | ABC_A/ABC021_A.py | ryosuke0825/atcoder_python | 185cdbe7db44ecca1aaf357858d16d31ce515ddb | [
"MIT"
] | null | null | null | ABC_A/ABC021_A.py | ryosuke0825/atcoder_python | 185cdbe7db44ecca1aaf357858d16d31ce515ddb | [
"MIT"
] | null | null | null | ABC_A/ABC021_A.py | ryosuke0825/atcoder_python | 185cdbe7db44ecca1aaf357858d16d31ce515ddb | [
"MIT"
] | null | null | null | n = int(input())
ret_list = []
if n % 2 == 1:
n -= 1
ret_list.append(1)
for _ in range(n//2):
ret_list.append(2)
print(len(ret_list))
for i in ret_list:
print(i)
| 12.928571 | 22 | 0.569061 | 35 | 181 | 2.771429 | 0.428571 | 0.360825 | 0.268041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044444 | 0.254144 | 181 | 13 | 23 | 13.923077 | 0.674074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7509bc6b6528ad4bc0229105805ba7690b2ed3ca | 175 | py | Python | 22.funcoes_lambda/10.exercicio2.py | robinson-1985/python-zero-dnc | df510d67e453611fcd320df1397cdb9ca47fecb8 | [
"MIT"
] | null | null | null | 22.funcoes_lambda/10.exercicio2.py | robinson-1985/python-zero-dnc | df510d67e453611fcd320df1397cdb9ca47fecb8 | [
"MIT"
] | null | null | null | 22.funcoes_lambda/10.exercicio2.py | robinson-1985/python-zero-dnc | df510d67e453611fcd320df1397cdb9ca47fecb8 | [
"MIT"
] | null | null | null | # 2. Utilize uma função filter para retornar somente os números pares da lista abaixo.
par = list(filter(lambda x: x %2==0, [5,2,5,7,4,2,6,10,342,54,23,6,7,9,12]))
print(par) | 43.75 | 86 | 0.691429 | 39 | 175 | 3.102564 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 0.131429 | 175 | 4 | 87 | 43.75 | 0.638158 | 0.48 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
7516f7a2a7ed9eec43d7f43b5a569ac4b7835ea8 | 5,507 | py | Python | nesi/devices/softbox/api/models/portprofile_models.py | inexio/NESi | 920b23ccaf293733b4b571e4df27929c036257f7 | [
"BSD-2-Clause"
] | 30 | 2020-09-03T06:02:38.000Z | 2022-03-11T16:34:18.000Z | nesi/devices/softbox/api/models/portprofile_models.py | inexio/NESi | 920b23ccaf293733b4b571e4df27929c036257f7 | [
"BSD-2-Clause"
] | 2 | 2021-01-15T10:33:23.000Z | 2021-02-21T21:04:37.000Z | nesi/devices/softbox/api/models/portprofile_models.py | inexio/NESi | 920b23ccaf293733b4b571e4df27929c036257f7 | [
"BSD-2-Clause"
] | 3 | 2020-12-19T09:11:19.000Z | 2022-02-07T22:15:34.000Z | # This file is part of the NESi software.
#
# Copyright (c) 2020
# Original Software Design by Ilya Etingof <https://github.com/etingof>.
#
# Software adapted by inexio <https://github.com/inexio>.
# - Janis Groß <https://github.com/unkn0wn-user>
# - Philip Konrath <https://github.com/Connyko65>
# - Alexander Dincher <... | 53.466019 | 113 | 0.70256 | 790 | 5,507 | 4.743038 | 0.24557 | 0.168668 | 0.210835 | 0.181479 | 0.668535 | 0.637043 | 0.461703 | 0.333333 | 0.147318 | 0 | 0 | 0.011163 | 0.137825 | 5,507 | 102 | 114 | 53.990196 | 0.778012 | 0.074269 | 0 | 0 | 0 | 0 | 0.04583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.024096 | 0 | 0.987952 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
751f9c9983f94baa1dc443195431a1ee2479c1f9 | 237 | py | Python | scripts/price_feed_scripts/read_price_feed.py | coozebra/chainlink-mix | 914a19d6e4d35ea1fa533675619d3144aa95e8d8 | [
"MIT"
] | 9 | 2021-03-13T03:47:12.000Z | 2021-09-01T13:49:58.000Z | scripts/price_feed_scripts/read_price_feed.py | coozebra/chainlink-mix | 914a19d6e4d35ea1fa533675619d3144aa95e8d8 | [
"MIT"
] | 1 | 2021-03-07T21:32:55.000Z | 2021-03-29T00:34:22.000Z | scripts/price_feed_scripts/read_price_feed.py | coozebra/chainlink-mix | 914a19d6e4d35ea1fa533675619d3144aa95e8d8 | [
"MIT"
] | 1 | 2021-12-20T13:02:26.000Z | 2021-12-20T13:02:26.000Z | #!/usr/bin/python3
from brownie import PriceFeed
def main():
price_feed_contract = PriceFeed[len(PriceFeed) - 1]
print("Reading data from {}".format(price_feed_contract.address))
print(price_feed_contract.getLatestPrice())
| 26.333333 | 69 | 0.746835 | 30 | 237 | 5.7 | 0.666667 | 0.157895 | 0.298246 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009709 | 0.130802 | 237 | 8 | 70 | 29.625 | 0.820388 | 0.07173 | 0 | 0 | 0 | 0 | 0.091324 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0.4 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
75242fd8f465245a727c481e61636a9e2cd4cea7 | 963 | py | Python | app/app.py | rilder-almeida/projeto_case_enfase | 8503145cac37b8ae6c569b7f08aee2ebbe24cafd | [
"MIT"
] | null | null | null | app/app.py | rilder-almeida/projeto_case_enfase | 8503145cac37b8ae6c569b7f08aee2ebbe24cafd | [
"MIT"
] | null | null | null | app/app.py | rilder-almeida/projeto_case_enfase | 8503145cac37b8ae6c569b7f08aee2ebbe24cafd | [
"MIT"
] | null | null | null | """
Módulo da aplicação usando Streamlit para gerar a estrutura front-end
"""
# FIXME: Por algum motivo o streamlit não aceita importar as páginas
# via __init__.py ou importação relativa
# pylint: disable=import-error
import streamlit as st
from introducao import intro
from questao_problema import case
from analise_ge... | 30.09375 | 69 | 0.776739 | 123 | 963 | 5.96748 | 0.601626 | 0.077657 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146417 | 963 | 31 | 70 | 31.064516 | 0.892944 | 0.241952 | 0 | 0 | 0 | 0 | 0.232267 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 1 | 0 | false | 0 | 0.380952 | 0 | 0.380952 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
7527b20d0c2567b7754c8da3aa03535398a20d6f | 489 | py | Python | contrib/experimental/alert-ucs.py | MailOnline/alerta | 225da305485c43c49d6803f740d36cbf1bfb42be | [
"Apache-2.0"
] | null | null | null | contrib/experimental/alert-ucs.py | MailOnline/alerta | 225da305485c43c49d6803f740d36cbf1bfb42be | [
"Apache-2.0"
] | null | null | null | contrib/experimental/alert-ucs.py | MailOnline/alerta | 225da305485c43c49d6803f740d36cbf1bfb42be | [
"Apache-2.0"
] | null | null | null |
import UcsSdk
import time
def EventHandler(mce):
print 'Received a New Event with ClassId: ' + str(mce.mo.classId)
print "ChangeList: ", mce.changeList
print "EventId: ", mce.eventId
def main():
ucs = UcsSdk.UcsHandle()
ucs.UcsHandle.Login(username='', password='')
ucs.UcsHandle.AddEventHa... | 16.862069 | 69 | 0.642127 | 55 | 489 | 5.563636 | 0.581818 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002625 | 0.220859 | 489 | 28 | 70 | 17.464286 | 0.800525 | 0 | 0 | 0 | 0 | 0 | 0.133745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.0625 | 0.125 | null | null | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
7561d4736465dcaac24c129db19f4a6b898722e2 | 11,837 | py | Python | venv/Lib/site-packages/conversionutil/text/fullwidth.py | avim2809/CameraSiteBlocker | bfc0434e75e8f3f95c459a4adc86b7673200816e | [
"Apache-2.0"
] | null | null | null | venv/Lib/site-packages/conversionutil/text/fullwidth.py | avim2809/CameraSiteBlocker | bfc0434e75e8f3f95c459a4adc86b7673200816e | [
"Apache-2.0"
] | null | null | null | venv/Lib/site-packages/conversionutil/text/fullwidth.py | avim2809/CameraSiteBlocker | bfc0434e75e8f3f95c459a4adc86b7673200816e | [
"Apache-2.0"
] | null | null | null | # encoding: utf-8
import inspect
import logging_helper
logging = logging_helper.setup_logging()
FULL_WIDTH_TABLE = {u' ': {u'code': u'U+3000', u'wide char': u"\u3000", u'name': u'IDEOGRAPHIC SPACE'},
u'!': {u'code': u'U+FF01', u'wide char': u'!', u'name': u'FULLWIDTH EXCLAMATION M... | 103.833333 | 123 | 0.453493 | 1,826 | 11,837 | 2.934283 | 0.120482 | 0.063457 | 0.164614 | 0.126726 | 0.771183 | 0.712953 | 0.681784 | 0.604517 | 0.333893 | 0.300859 | 0 | 0.024638 | 0.341641 | 11,837 | 113 | 124 | 104.752212 | 0.662389 | 0.001267 | 0 | 0 | 0 | 0 | 0.425755 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009434 | false | 0 | 0.018868 | 0 | 0.037736 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f332dfce9c0a9e556b5f4d6e31951626bec46986 | 1,461 | py | Python | octant/common/base.py | Orange-OpenSource/octant | 3b13b44b6727382de31ab969be0e8d3c80a882b8 | [
"Apache-2.0"
] | 4 | 2018-10-04T04:05:45.000Z | 2021-07-06T02:25:02.000Z | octant/common/base.py | Orange-OpenSource/octant | 3b13b44b6727382de31ab969be0e8d3c80a882b8 | [
"Apache-2.0"
] | null | null | null | octant/common/base.py | Orange-OpenSource/octant | 3b13b44b6727382de31ab969be0e8d3c80a882b8 | [
"Apache-2.0"
] | 4 | 2018-04-25T14:09:05.000Z | 2021-06-22T09:48:14.000Z | # Copyright 2018 Orange
#
# 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 t... | 33.204545 | 78 | 0.695414 | 192 | 1,461 | 5.125 | 0.505208 | 0.065041 | 0.097561 | 0.146341 | 0.269309 | 0.246951 | 0 | 0 | 0 | 0 | 0 | 0.01364 | 0.197125 | 1,461 | 43 | 79 | 33.976744 | 0.825234 | 0.55989 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
f34cefec37b5520f7ff4ff29aca41082c5c7978b | 66,470 | py | Python | yandex/cloud/ai/stt/v3/stt_pb2.py | l0kix2/python-sdk | 6afc986cd72b8ceabcb8a03b4dbf613ef57af84a | [
"MIT"
] | null | null | null | yandex/cloud/ai/stt/v3/stt_pb2.py | l0kix2/python-sdk | 6afc986cd72b8ceabcb8a03b4dbf613ef57af84a | [
"MIT"
] | null | null | null | yandex/cloud/ai/stt/v3/stt_pb2.py | l0kix2/python-sdk | 6afc986cd72b8ceabcb8a03b4dbf613ef57af84a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: yandex/cloud/ai/stt/v3/stt.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message... | 43.302932 | 5,974 | 0.772078 | 8,031 | 66,470 | 6.044826 | 0.056033 | 0.043382 | 0.066535 | 0.065072 | 0.725065 | 0.683372 | 0.603448 | 0.571705 | 0.555803 | 0.550282 | 0 | 0.035444 | 0.109929 | 66,470 | 1,534 | 5,975 | 43.33116 | 0.785102 | 0.027832 | 0 | 0.677237 | 1 | 0.011276 | 0.179154 | 0.128586 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.003524 | 0 | 0.003524 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f3652c9c77eaa6094332e39b937b70d6550a7b7d | 3,516 | py | Python | server/stylegan2_hypotheses_explorer/models/style_configuration_style_array.py | HealthML/StyleGAN2-Hypotheses-Explorer | 347d7a85cea4b5d13c8c27c8015a085997f377c8 | [
"MIT"
] | 2 | 2021-09-22T13:49:16.000Z | 2022-01-12T06:04:12.000Z | server/stylegan2_hypotheses_explorer/models/style_configuration_style_array.py | HealthML/StyleGAN2-Hypotheses-Explorer | 347d7a85cea4b5d13c8c27c8015a085997f377c8 | [
"MIT"
] | null | null | null | server/stylegan2_hypotheses_explorer/models/style_configuration_style_array.py | HealthML/StyleGAN2-Hypotheses-Explorer | 347d7a85cea4b5d13c8c27c8015a085997f377c8 | [
"MIT"
] | null | null | null | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import Dict, List # noqa: F401
from ..util import deserialize_model
from .base_model_ import Base_Model
class StyleConfigurationStyleArray(Base_Model):
"""NOTE: This class is auto generated by ... | 29.79661 | 110 | 0.651593 | 354 | 3,516 | 6.333333 | 0.214689 | 0.149866 | 0.242641 | 0.178412 | 0.481713 | 0.32025 | 0.219447 | 0.066012 | 0.066012 | 0 | 0 | 0.036314 | 0.271615 | 3,516 | 117 | 111 | 30.051282 | 0.839125 | 0.455916 | 0 | 0.209302 | 0 | 0 | 0.099626 | 0.017435 | 0 | 0 | 0 | 0 | 0 | 1 | 0.186047 | false | 0 | 0.116279 | 0 | 0.418605 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f37624d45ecf94e77cf05f2e80f5d9f2700305d5 | 2,231 | py | Python | python/chartParsing.py | pramitmallick/spinn | a5d476b3fad8e4ee97eeed7ac914993bdf7be384 | [
"MIT"
] | 103 | 2017-07-15T01:58:59.000Z | 2022-03-06T07:27:37.000Z | python/chartParsing.py | pramitmallick/spinn | a5d476b3fad8e4ee97eeed7ac914993bdf7be384 | [
"MIT"
] | 9 | 2017-08-10T17:43:52.000Z | 2021-09-20T15:46:19.000Z | python/chartParsing.py | pramitmallick/spinn | a5d476b3fad8e4ee97eeed7ac914993bdf7be384 | [
"MIT"
] | 40 | 2017-08-23T20:35:22.000Z | 2021-05-04T06:54:23.000Z | """
Artifical test for chart parsing
"""
from random import shuffle
import numpy as np
import string
def generate_string(length):
letters = list(string.ascii_lowercase) + list(string.ascii_uppercase)
shuffle(letters)
output = []
for i in range(length):
output.append(letters[i])
return outp... | 25.352273 | 82 | 0.549529 | 303 | 2,231 | 3.976898 | 0.227723 | 0.039834 | 0.014938 | 0.027386 | 0.116183 | 0.116183 | 0.116183 | 0.043154 | 0.043154 | 0.043154 | 0 | 0.014286 | 0.278351 | 2,231 | 87 | 83 | 25.643678 | 0.734161 | 0.112506 | 0 | 0.078431 | 1 | 0 | 0.001195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0.019608 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f37bffe5733fcc5b869e19fe8cd666f9a397dc12 | 368 | py | Python | source/16-Valor_da_conta.py | FelixLuciano/DesSoft-2020.2 | a44063d63778329f1e1266881f20f7954ecb528b | [
"MIT"
] | null | null | null | source/16-Valor_da_conta.py | FelixLuciano/DesSoft-2020.2 | a44063d63778329f1e1266881f20f7954ecb528b | [
"MIT"
] | null | null | null | source/16-Valor_da_conta.py | FelixLuciano/DesSoft-2020.2 | a44063d63778329f1e1266881f20f7954ecb528b | [
"MIT"
] | null | null | null | # Valor da conta
# Escreva um programa que pergunta para o usuário o valor da conta do restaurante e imprime: "Valor da conta com 10%: R$ X.YZ", onde X.YZ é um número com exatamente duas casas decimais.
valor = float(input('Qual o valor da conta?'))
gorjeta = valor * 10/100 # 10% do valor
valor += gorjeta
print('Val... | 36.8 | 185 | 0.706522 | 66 | 368 | 3.939394 | 0.545455 | 0.134615 | 0.230769 | 0.1 | 0.138462 | 0.138462 | 0 | 0 | 0 | 0 | 0 | 0.043189 | 0.182065 | 368 | 9 | 186 | 40.888889 | 0.820598 | 0.57337 | 0 | 0 | 0 | 0 | 0.366013 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f38a71c464976794726f573b2a66112a87e17255 | 3,317 | py | Python | src/byro/office/views/accounts.py | mhannig/byro | fb723216d7f34d5f1fca2faae334c54de14a2d84 | [
"Apache-2.0"
] | null | null | null | src/byro/office/views/accounts.py | mhannig/byro | fb723216d7f34d5f1fca2faae334c54de14a2d84 | [
"Apache-2.0"
] | null | null | null | src/byro/office/views/accounts.py | mhannig/byro | fb723216d7f34d5f1fca2faae334c54de14a2d84 | [
"Apache-2.0"
] | null | null | null | from django import forms
from django.contrib import messages
from django.db import models
from django.shortcuts import redirect
from django.urls import reverse
from django.utils.timezone import now
from django.utils.translation import ugettext_lazy as _
from django.views.generic import DetailView, FormView, ListView
f... | 34.195876 | 88 | 0.671088 | 376 | 3,317 | 5.720745 | 0.351064 | 0.037192 | 0.024175 | 0.034868 | 0.099489 | 0.068805 | 0 | 0 | 0 | 0 | 0 | 0.000767 | 0.213446 | 3,317 | 96 | 89 | 34.552083 | 0.823687 | 0.020199 | 0 | 0.064935 | 0 | 0 | 0.150246 | 0.064655 | 0 | 0 | 0 | 0.010417 | 0 | 1 | 0.090909 | false | 0 | 0.116883 | 0.012987 | 0.506494 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
f38baffa4933ff82a3c14cf6365d3e78a4947e41 | 938 | py | Python | cameo/mod/yuwei/utility/mailHelper.py | muchu1983/104_cameo | 8c7f78de198a5bd8d870589402e3b7e8b59f520a | [
"BSD-3-Clause"
] | null | null | null | cameo/mod/yuwei/utility/mailHelper.py | muchu1983/104_cameo | 8c7f78de198a5bd8d870589402e3b7e8b59f520a | [
"BSD-3-Clause"
] | null | null | null | cameo/mod/yuwei/utility/mailHelper.py | muchu1983/104_cameo | 8c7f78de198a5bd8d870589402e3b7e8b59f520a | [
"BSD-3-Clause"
] | null | null | null | #coding: utf-8
import smtplib
from email.mime.text import MIMEText
class mailHelper:
DEFAULT_SMTP = "smtp.gmail.com:587"
DEFAULT_ACCOUNT = "cameoinfotech.tw@gmail.com"
DEFAULT_PASSWORD = "cameo70525198"
@staticmethod
def send(strSubject, strFrom, strTo, strMsg, lstStrTarget, strSmtp = None, strAccount = None, s... | 28.424242 | 115 | 0.719616 | 108 | 938 | 6.185185 | 0.518519 | 0.101796 | 0.062874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015345 | 0.166311 | 938 | 32 | 116 | 29.3125 | 0.838875 | 0.013859 | 0 | 0 | 0 | 0 | 0.126761 | 0.028169 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.185185 | 0.074074 | null | null | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f39b1de370ff3d6e5a6d99bb00d15442b7879ada | 496 | py | Python | aerisweather/responses/AerisLocation.py | jkoelndorfer/aerisweather-python-sdk | ef37fe3132e87e7f86c2d1ba40a2ac2b7b4db604 | [
"MIT"
] | 5 | 2019-02-26T20:56:14.000Z | 2021-05-05T21:04:45.000Z | aerisweather/responses/AerisLocation.py | jkoelndorfer/aerisweather-python-sdk | ef37fe3132e87e7f86c2d1ba40a2ac2b7b4db604 | [
"MIT"
] | 2 | 2021-03-02T00:35:42.000Z | 2021-03-03T17:07:37.000Z | aerisweather/responses/AerisLocation.py | jkoelndorfer/aerisweather-python-sdk | ef37fe3132e87e7f86c2d1ba40a2ac2b7b4db604 | [
"MIT"
] | 8 | 2018-05-26T18:52:21.000Z | 2022-01-20T19:47:15.000Z |
class AerisLocation:
""" Defines an object for the Aeris API loc data returned in an Aeris API responses. """
def __init__(self, json_data=None):
""" Constructor """
self.data = json_data
@property
def long(self)->float:
""" Returns the longitude of the location as a float. "... | 26.105263 | 92 | 0.604839 | 64 | 496 | 4.59375 | 0.5 | 0.081633 | 0.108844 | 0.129252 | 0.238095 | 0.238095 | 0.238095 | 0.238095 | 0.238095 | 0 | 0 | 0 | 0.280242 | 496 | 18 | 93 | 27.555556 | 0.823529 | 0.391129 | 0 | 0.222222 | 0 | 0 | 0.025547 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
f3a49bbaa9babead36c0a7d8fa6357a6073af113 | 226 | py | Python | conformer/configs/model.py | dudgns0908/KoASR | 6617acd94362c6d70614bf0c69a8088843ad3f4f | [
"Apache-2.0"
] | null | null | null | conformer/configs/model.py | dudgns0908/KoASR | 6617acd94362c6d70614bf0c69a8088843ad3f4f | [
"Apache-2.0"
] | null | null | null | conformer/configs/model.py | dudgns0908/KoASR | 6617acd94362c6d70614bf0c69a8088843ad3f4f | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass
@dataclass
class ConformerLargeConfig:
encoder_dim: int = 512
num_encoder_layers: int = 17
num_attention_heads: int = 8
conv_kernel_size: int = 31
dropout_p: float = 0.1
| 20.545455 | 33 | 0.725664 | 31 | 226 | 5.032258 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056497 | 0.216814 | 226 | 10 | 34 | 22.6 | 0.824859 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
f3b5712f9b7b4e23c622f8626d50881a834895f7 | 1,114 | py | Python | astronet/astronet/data/generate_kepler_subset.py | ch8644760/models | a3a01ffc4a9f495640385472d8896b9b4e05c43c | [
"Apache-2.0"
] | 2 | 2021-09-14T07:32:02.000Z | 2021-09-14T07:32:07.000Z | astronet/astronet/data/generate_kepler_subset.py | ch8644760/models | a3a01ffc4a9f495640385472d8896b9b4e05c43c | [
"Apache-2.0"
] | null | null | null | astronet/astronet/data/generate_kepler_subset.py | ch8644760/models | a3a01ffc4a9f495640385472d8896b9b4e05c43c | [
"Apache-2.0"
] | 1 | 2021-08-04T07:01:02.000Z | 2021-08-04T07:01:02.000Z | # Written by Sebastiaan Koning (GitHub: OneAndOnlySeabass) 15-10-2018
# This script generates a stratified random subset of n size from a Kepler TCE csv.
import pandas as pd
import numpy as np
# Adjustable variables can be changed here
read_loc = #r"tce csv location"
pc_subset = 1000
fp_subset = 1000 # Both AFPs and ... | 32.764706 | 83 | 0.738779 | 190 | 1,114 | 4.105263 | 0.442105 | 0.082051 | 0.076923 | 0.082051 | 0.124359 | 0.124359 | 0.124359 | 0.124359 | 0.084615 | 0 | 0 | 0.033514 | 0.169659 | 1,114 | 33 | 84 | 33.757576 | 0.80973 | 0.426391 | 0 | 0 | 1 | 0 | 0.020767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f3b57a5de1600cab7fe6345d109761e3e0e2a0ff | 5,536 | py | Python | testMath.py | SLongofono/448_Project3 | 63cbea051feb8429b401305c345bade73fc575d8 | [
"MIT"
] | null | null | null | testMath.py | SLongofono/448_Project3 | 63cbea051feb8429b401305c345bade73fc575d8 | [
"MIT"
] | 29 | 2016-11-21T03:05:49.000Z | 2016-11-30T05:55:20.000Z | testMath.py | SLongofono/448_Project4 | 63cbea051feb8429b401305c345bade73fc575d8 | [
"MIT"
] | null | null | null | import os,sys,inspect
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parentdir = os.path.dirname(currentdir)
sys.path.insert(0,parentdir)
import Variance
import math
def testVariance():
print ("1. Testing Variance")
weighting = [2,2,2,2,2,2,2,2,2,2]
test1 = [['artist1', 'ar... | 29.604278 | 112 | 0.623374 | 893 | 5,536 | 3.855543 | 0.157895 | 0.044438 | 0.056927 | 0.080163 | 0.395004 | 0.379901 | 0.357537 | 0.34621 | 0.32704 | 0.24862 | 0 | 0.121592 | 0.165101 | 5,536 | 186 | 113 | 29.763441 | 0.623323 | 0 | 0 | 0.335616 | 0 | 0 | 0.204299 | 0.013728 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.09589 | 0.020548 | null | null | 0.164384 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f3bf59bc17e3bc1b397d03dced212d6a29bb8ebc | 1,092 | py | Python | tick_track/src/helpers/time.py | dmenezesgabriel/tick_track | 6a599db6ab633d26bfc781343ab31cd7813bd8fb | [
"MIT"
] | null | null | null | tick_track/src/helpers/time.py | dmenezesgabriel/tick_track | 6a599db6ab633d26bfc781343ab31cd7813bd8fb | [
"MIT"
] | 3 | 2020-06-06T00:24:44.000Z | 2020-12-10T15:06:08.000Z | tick_track/src/helpers/time.py | dmenezesgabriel/tick_track | 6a599db6ab633d26bfc781343ab31cd7813bd8fb | [
"MIT"
] | null | null | null | import datetime
import pytz
def now():
"""
Returns UTC timestamp with time zone
"""
return pytz.UTC.localize(datetime.datetime.utcnow())
def now_br():
"""
Returns America - São Paulo timestamp with time zone
"""
return now().astimezone(pytz.timezone("America/Sao_Paulo"))
def timest... | 21.411765 | 76 | 0.666667 | 141 | 1,092 | 5.06383 | 0.347518 | 0.091036 | 0.119048 | 0.147059 | 0.261905 | 0.148459 | 0.148459 | 0.030812 | 0.030812 | 0 | 0 | 0.004608 | 0.205128 | 1,092 | 51 | 77 | 21.411765 | 0.817972 | 0.254579 | 0 | 0 | 0 | 0 | 0.086037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4375 | false | 0 | 0.125 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
34051742d818341d83dcee3eebe7d87a31c40659 | 1,580 | py | Python | captcha_predict.py | junryan/pytorch-captcha-recognition | 7322a10b9926cac3ed100d319f693ce05ae27848 | [
"Apache-2.0"
] | null | null | null | captcha_predict.py | junryan/pytorch-captcha-recognition | 7322a10b9926cac3ed100d319f693ce05ae27848 | [
"Apache-2.0"
] | null | null | null | captcha_predict.py | junryan/pytorch-captcha-recognition | 7322a10b9926cac3ed100d319f693ce05ae27848 | [
"Apache-2.0"
] | null | null | null | # -*- coding: UTF-8 -*-
import numpy as np
import pandas as pd
import torch
import time
from torch.autograd import Variable
import captcha_setting
import my_dataset
from captcha_cnn_model import CNN
def main():
print('开始对图片进行预测')
cnn = CNN()
cnn.eval()
cnn.load_state_dict(torch.load('model.pkl'))
... | 35.909091 | 119 | 0.672785 | 224 | 1,580 | 4.446429 | 0.334821 | 0.168675 | 0.187751 | 0.231928 | 0.411647 | 0.411647 | 0.411647 | 0.325301 | 0.180723 | 0.180723 | 0 | 0.01967 | 0.19557 | 1,580 | 43 | 120 | 36.744186 | 0.763965 | 0.013291 | 0 | 0 | 0 | 0 | 0.05395 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.216216 | 0 | 0.243243 | 0.108108 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
340a0f6057fbd5afe539c0e47bcb629fd1023762 | 1,485 | py | Python | products/tests/test_views.py | Kaique425/ecommerce | 684988771ae7758a1e550092bf8fbd20f1b250e9 | [
"MIT"
] | null | null | null | products/tests/test_views.py | Kaique425/ecommerce | 684988771ae7758a1e550092bf8fbd20f1b250e9 | [
"MIT"
] | null | null | null | products/tests/test_views.py | Kaique425/ecommerce | 684988771ae7758a1e550092bf8fbd20f1b250e9 | [
"MIT"
] | null | null | null | from pytest_django.asserts import assertTemplateUsed, assertQuerysetEqual
from products.tests.factories import ProductFactory
from django.urls import resolve, reverse
from ..models import Product
import pytest
pytestmark = pytest.mark.django_db
@pytest.fixture
def list_response(client):
return client.get(rever... | 33 | 100 | 0.719192 | 173 | 1,485 | 6.017341 | 0.271676 | 0.040346 | 0.057637 | 0.074928 | 0.289145 | 0.206532 | 0.206532 | 0.088377 | 0.088377 | 0 | 0 | 0.004819 | 0.161616 | 1,485 | 45 | 101 | 33 | 0.831325 | 0 | 0 | 0.064516 | 0 | 0 | 0.138627 | 0.067295 | 0 | 0 | 0 | 0 | 0.290323 | 1 | 0.258065 | false | 0 | 0.16129 | 0.064516 | 0.548387 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
340b5cb3cb224ed300ee185648a0d88777275543 | 1,226 | py | Python | moving_message_g009dh/examples/dict_test.py | Kurocon/moving_message_g009dh | 287724b9260a139050512513910212889913c5f7 | [
"BSD-3-Clause"
] | null | null | null | moving_message_g009dh/examples/dict_test.py | Kurocon/moving_message_g009dh | 287724b9260a139050512513910212889913c5f7 | [
"BSD-3-Clause"
] | null | null | null | moving_message_g009dh/examples/dict_test.py | Kurocon/moving_message_g009dh | 287724b9260a139050512513910212889913c5f7 | [
"BSD-3-Clause"
] | null | null | null | from moving_message_g009dh.ledbar import *
if __name__ == "__main__":
bar = LEDBar()
bar.data_from_dict(data={
'files': [{
'number': 1,
'lines': [{
'fade': 'pacman',
'speed': 'speed_8',
'texts': [{
'color': 'br... | 29.190476 | 69 | 0.331974 | 89 | 1,226 | 4.247191 | 0.595506 | 0.145503 | 0.137566 | 0.179894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013356 | 0.511419 | 1,226 | 41 | 70 | 29.902439 | 0.617696 | 0 | 0 | 0.342105 | 0 | 0 | 0.224307 | 0.019576 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.026316 | 0 | 0.026316 | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3412fed5498fb8ce62509a7ea85db4ee4a24513e | 999 | py | Python | ERAutomation/steps/manager_login_steps.py | dboudreau4/ReimbursementSystemAutomation | 57d8c322ac80dd26679000f8d9d67e16fd865804 | [
"MIT"
] | null | null | null | ERAutomation/steps/manager_login_steps.py | dboudreau4/ReimbursementSystemAutomation | 57d8c322ac80dd26679000f8d9d67e16fd865804 | [
"MIT"
] | null | null | null | ERAutomation/steps/manager_login_steps.py | dboudreau4/ReimbursementSystemAutomation | 57d8c322ac80dd26679000f8d9d67e16fd865804 | [
"MIT"
] | null | null | null | from behave import given, when, then
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
@given('The Manager is on the Manager Login Page')
def open_manager_login(context):
context.driver.get("C:\\Users\\david\\Documents\\ExpenseReimbursementFro... | 32.225806 | 102 | 0.766767 | 138 | 999 | 5.42029 | 0.384058 | 0.066845 | 0.05615 | 0.074866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001139 | 0.121121 | 999 | 30 | 103 | 33.3 | 0.850797 | 0 | 0 | 0 | 0 | 0 | 0.283283 | 0.076076 | 0 | 0 | 0 | 0 | 0.05 | 1 | 0.25 | false | 0.15 | 0.15 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
3420a05d69ae18467d77edee254bf70006cd2ce7 | 1,999 | py | Python | pyatlas/unit_tests/test_identifier_converters.py | yazad3/atlas | d0c67a0fd0e0b1d4c11782363060a04f5419c860 | [
"BSD-3-Clause"
] | 188 | 2017-08-08T17:26:54.000Z | 2022-03-29T07:59:30.000Z | pyatlas/unit_tests/test_identifier_converters.py | yazad3/atlas | d0c67a0fd0e0b1d4c11782363060a04f5419c860 | [
"BSD-3-Clause"
] | 403 | 2017-08-09T16:15:25.000Z | 2022-02-16T19:33:42.000Z | pyatlas/unit_tests/test_identifier_converters.py | yazad3/atlas | d0c67a0fd0e0b1d4c11782363060a04f5419c860 | [
"BSD-3-Clause"
] | 79 | 2017-08-08T17:55:01.000Z | 2021-11-10T20:51:57.000Z | import unittest
from pyatlas import identifier_converters
class IdentifierConvertersTest(unittest.TestCase):
def setUp(self):
pass
def test_osm_conversion(self):
atlas_id = 222222000000
osm_id = 222222
self.assertEqual(osm_id, identifier_converters.get_osm_identifier(atlas_id... | 33.316667 | 92 | 0.716358 | 240 | 1,999 | 5.5625 | 0.158333 | 0.125843 | 0.206742 | 0.094382 | 0.791011 | 0.662921 | 0.662921 | 0.662921 | 0.662921 | 0.662921 | 0 | 0.094933 | 0.22011 | 1,999 | 59 | 93 | 33.881356 | 0.761386 | 0 | 0 | 0.568182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.090909 | false | 0.022727 | 0.045455 | 0 | 0.159091 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3422cc72049a0e89283ab3efd26904dd2abcd5dc | 198 | py | Python | util_func/math_utils.py | ltoppyl/Zissen_team1_AGE | 03330974dac631e14c6af0ff5b0745770cf97c4f | [
"Apache-2.0"
] | 1 | 2021-09-13T09:37:17.000Z | 2021-09-13T09:37:17.000Z | util_func/math_utils.py | ltoppyl/zissenzemi-team1-gaze | 42690685e13bb1633f20a8db3e5583a349723729 | [
"Apache-2.0"
] | 9 | 2021-09-08T06:34:16.000Z | 2021-09-27T07:31:47.000Z | util_func/math_utils.py | ltoppyl/zissenzemi-team1-gaze | 42690685e13bb1633f20a8db3e5583a349723729 | [
"Apache-2.0"
] | null | null | null | import numpy as np
def softmax(x, axis=None):
max = np.max(x,axis=axis,keepdims=True)
e_x = np.exp(x - max)
sum = np.sum(e_x,axis=axis,keepdims=True)
f_x = e_x / sum
return f_x | 24.75 | 45 | 0.626263 | 40 | 198 | 2.975 | 0.425 | 0.12605 | 0.151261 | 0.285714 | 0.352941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232323 | 198 | 8 | 46 | 24.75 | 0.782895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
34239865b8210ab85ded553e2a80a0d9bceccb17 | 860 | py | Python | app/tasks/forms.py | 3dnygm4/titanium | 6a76fffb8034b779fbf0611080dddc473e39d137 | [
"Apache-2.0"
] | 1 | 2018-07-13T06:54:24.000Z | 2018-07-13T06:54:24.000Z | app/tasks/forms.py | 3dnygm4/titanium | 6a76fffb8034b779fbf0611080dddc473e39d137 | [
"Apache-2.0"
] | null | null | null | app/tasks/forms.py | 3dnygm4/titanium | 6a76fffb8034b779fbf0611080dddc473e39d137 | [
"Apache-2.0"
] | null | null | null | #forms.py - help forms handing and data validation
#/app/tasks/forms.py
from wtforms import Form, TextField, DateField, IntegerField, \
SelectField, PasswordField, validators, RadioField
class AddTask(Form):
task_id = IntegerField('Priority')
name = TextFiel... | 45.263158 | 99 | 0.527907 | 93 | 860 | 4.849462 | 0.526882 | 0.159645 | 0.035477 | 0.079823 | 0.155211 | 0.155211 | 0.155211 | 0.155211 | 0.155211 | 0 | 0 | 0.034591 | 0.260465 | 860 | 18 | 100 | 47.777778 | 0.674528 | 0.07907 | 0 | 0 | 0 | 0 | 0.144304 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.083333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
34384525b0857f4d231f4ccbdfc76b9d2b899cc8 | 1,395 | py | Python | src/spaceone/inventory/model/region_model.py | whdalsrnt/inventory | 5d1cfb3a9cb72156c48a0118b80e6ed2d67e8028 | [
"Apache-2.0"
] | 9 | 2020-06-04T23:01:38.000Z | 2021-06-03T03:38:59.000Z | src/spaceone/inventory/model/region_model.py | whdalsrnt/inventory | 5d1cfb3a9cb72156c48a0118b80e6ed2d67e8028 | [
"Apache-2.0"
] | 10 | 2020-08-20T01:34:30.000Z | 2022-03-14T04:59:48.000Z | src/spaceone/inventory/model/region_model.py | whdalsrnt/inventory | 5d1cfb3a9cb72156c48a0118b80e6ed2d67e8028 | [
"Apache-2.0"
] | 9 | 2020-06-08T22:03:02.000Z | 2021-12-06T06:12:30.000Z | from mongoengine import *
from spaceone.core.model.mongo_model import MongoModel
class RegionTag(EmbeddedDocument):
key = StringField(max_length=255)
value = StringField(max_length=255)
class Region(MongoModel):
region_id = StringField(max_length=40, generate_id='region', unique=True)
name = StringF... | 27.9 | 84 | 0.582079 | 138 | 1,395 | 5.623188 | 0.355072 | 0.162371 | 0.231959 | 0.237113 | 0.112113 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026749 | 0.303226 | 1,395 | 49 | 85 | 28.469388 | 0.771605 | 0 | 0 | 0.25 | 0 | 0 | 0.155556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.409091 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
343b3dc8c070bb95d93eec41d235dc49a5a9a9b9 | 87 | py | Python | flask01.py | pyporto/flask101 | b4cb6a178eb62fc2195c8f7c64795350a1fa88b9 | [
"Unlicense"
] | null | null | null | flask01.py | pyporto/flask101 | b4cb6a178eb62fc2195c8f7c64795350a1fa88b9 | [
"Unlicense"
] | null | null | null | flask01.py | pyporto/flask101 | b4cb6a178eb62fc2195c8f7c64795350a1fa88b9 | [
"Unlicense"
] | null | null | null | from flask import Flask
app = Flask('myapp')
if __name__ == '__main__':
app.run()
| 14.5 | 26 | 0.655172 | 12 | 87 | 4.083333 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195402 | 87 | 5 | 27 | 17.4 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0.149425 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3441308905ace353e0c8b902dff25c8c8e4e90f7 | 454 | py | Python | python/tuples_example.py | matheuskiser/pdx_code_guild | 49a5c62fb468253eb4d9a1fb11166df79bb10873 | [
"MIT"
] | null | null | null | python/tuples_example.py | matheuskiser/pdx_code_guild | 49a5c62fb468253eb4d9a1fb11166df79bb10873 | [
"MIT"
] | null | null | null | python/tuples_example.py | matheuskiser/pdx_code_guild | 49a5c62fb468253eb4d9a1fb11166df79bb10873 | [
"MIT"
] | null | null | null | # Assigns a tuple of scores
scores = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
# Displays the highest and lowest value in the tuple
print "The lowest possible score is " + str(min(scores))
print "The highest possible score is " + str(max(scores))
# Goes through tuple and prints out values
for i in scores:
if i == 1:
... | 34.923077 | 65 | 0.634361 | 78 | 454 | 3.692308 | 0.564103 | 0.069444 | 0.104167 | 0.125 | 0.208333 | 0.208333 | 0.208333 | 0.208333 | 0.208333 | 0 | 0 | 0.035294 | 0.251101 | 454 | 13 | 65 | 34.923077 | 0.811765 | 0.257709 | 0 | 0 | 0 | 0 | 0.383234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
344f6c139ceb7d7833c993179caa60e7133b1424 | 312 | py | Python | django_cat_app/models.py | NikolasE/telegram_catbot | 56e58b0ac3ea9420cb2f84ef73d4020cf951a9c9 | [
"MIT"
] | null | null | null | django_cat_app/models.py | NikolasE/telegram_catbot | 56e58b0ac3ea9420cb2f84ef73d4020cf951a9c9 | [
"MIT"
] | null | null | null | django_cat_app/models.py | NikolasE/telegram_catbot | 56e58b0ac3ea9420cb2f84ef73d4020cf951a9c9 | [
"MIT"
] | null | null | null | from django.db import models
# we simply count the number of cat images we sent to a person
# (we use first name as user_id which will create collisions, but also adds privacy by design)
class UserLog(models.Model):
user_id = models.CharField(max_length=100)
cat_count = models.IntegerField(default=0)
| 34.666667 | 94 | 0.766026 | 52 | 312 | 4.519231 | 0.826923 | 0.051064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015444 | 0.169872 | 312 | 8 | 95 | 39 | 0.891892 | 0.490385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
347508601dd94096707aa8788685b87d1e3e2347 | 593 | py | Python | yt/frontends/art/api.py | danielgrassinger/yt_new_frontend | 5f91d2fb8721c4c5da0af543a6256ed979cd9fc9 | [
"BSD-3-Clause-Clear"
] | null | null | null | yt/frontends/art/api.py | danielgrassinger/yt_new_frontend | 5f91d2fb8721c4c5da0af543a6256ed979cd9fc9 | [
"BSD-3-Clause-Clear"
] | 1 | 2016-04-05T22:30:14.000Z | 2016-04-05T22:30:14.000Z | yt/frontends/art/api.py | danielgrassinger/yt_new_frontend | 5f91d2fb8721c4c5da0af543a6256ed979cd9fc9 | [
"BSD-3-Clause-Clear"
] | 1 | 2020-12-05T05:51:09.000Z | 2020-12-05T05:51:09.000Z | """
API for yt.frontends.art
"""
#-----------------------------------------------------------------------------
# Copyright (c) 2013, yt Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#------------------... | 20.448276 | 78 | 0.50253 | 52 | 593 | 5.711538 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008197 | 0.177066 | 593 | 28 | 79 | 21.178571 | 0.60041 | 0.596965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
347e1cf9062d68a439c0374d3ef0747c19ef1df6 | 752 | py | Python | api/service/update_balance.py | guisteglich/EasyPay | 378f03d16606516e1d1afed2de03cd95fcf7d3a0 | [
"MIT"
] | null | null | null | api/service/update_balance.py | guisteglich/EasyPay | 378f03d16606516e1d1afed2de03cd95fcf7d3a0 | [
"MIT"
] | null | null | null | api/service/update_balance.py | guisteglich/EasyPay | 378f03d16606516e1d1afed2de03cd95fcf7d3a0 | [
"MIT"
] | null | null | null | from hashlib import new
from sqlalchemy import false
from api.extensions.mongo import update_user
def balance_update(id, value, balance):
balance_value_updated = int(value) + int(balance)
new_values = { "$set": { "balance": balance_value_updated } }
response = update_user(id, new_values)
return respon... | 31.333333 | 69 | 0.676862 | 93 | 752 | 5.236559 | 0.354839 | 0.147844 | 0.234086 | 0.213552 | 0.480493 | 0.480493 | 0.480493 | 0.332649 | 0.332649 | 0.332649 | 0 | 0.001712 | 0.223404 | 752 | 23 | 70 | 32.695652 | 0.832192 | 0 | 0 | 0.315789 | 0 | 0 | 0.086436 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.157895 | 0 | 0.421053 | 0.157895 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
347f7c6c630d70cd75cd4329642fc17e3868bf65 | 2,172 | py | Python | petsi/plugins/sojourntime/__init__.py | vadaszd/petsi | 9db924d7214f28d1fe47c83f760f90becf9d1577 | [
"MIT"
] | null | null | null | petsi/plugins/sojourntime/__init__.py | vadaszd/petsi | 9db924d7214f28d1fe47c83f760f90becf9d1577 | [
"MIT"
] | null | null | null | petsi/plugins/sojourntime/__init__.py | vadaszd/petsi | 9db924d7214f28d1fe47c83f760f90becf9d1577 | [
"MIT"
] | null | null | null | """ A plugin that collects by-place sojourn time stats.
.. rubric:: Public package interface
- Class :class:`SojournTimePlugin` (see below)
.. rubric:: Internal submodules
.. autosummary::
:template: module_reference.rst
:recursive:
:toctree:
petsi.plugins.sojourntime._sojourntime
"""
from datacla... | 35.606557 | 111 | 0.722376 | 267 | 2,172 | 5.782772 | 0.464419 | 0.012953 | 0.018135 | 0.023316 | 0.110104 | 0.080311 | 0.080311 | 0.042746 | 0 | 0 | 0 | 0 | 0.213628 | 2,172 | 60 | 112 | 36.2 | 0.903981 | 0.450737 | 0 | 0 | 0 | 0 | 0.084838 | 0.046931 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.380952 | 0.047619 | 0.619048 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
caa450025e8b79880c1072d67bd814bc2d33d842 | 476 | py | Python | kProcessor/kmerRow.py | drtamermansour/Kprocessor | 3356d7dad5a8c55cebe49a63113c41ef536d1b9c | [
"BSD-3-Clause"
] | 8 | 2018-10-12T11:02:55.000Z | 2021-08-29T14:46:02.000Z | kProcessor/kmerRow.py | drtamermansour/Kprocessor | 3356d7dad5a8c55cebe49a63113c41ef536d1b9c | [
"BSD-3-Clause"
] | 79 | 2019-03-16T15:31:43.000Z | 2022-03-21T18:56:55.000Z | kProcessor/kmerRow.py | drtamermansour/Kprocessor | 3356d7dad5a8c55cebe49a63113c41ef536d1b9c | [
"BSD-3-Clause"
] | 2 | 2019-06-21T11:48:11.000Z | 2021-04-09T00:47:54.000Z | class kmerRow():
kmer = str()
hashedKmer = int()
count = int()
def __init__(self, kmer, hashedKmer, count):
"""
kmerRow class constructor.
:param kmer: The kmer string
:type kmer: str
:param hashedKmer:
:type hashedKmer: int
:param count: The kme... | 21.636364 | 57 | 0.55042 | 49 | 476 | 5.265306 | 0.469388 | 0.054264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.35084 | 476 | 21 | 58 | 22.666667 | 0.834951 | 0.504202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
cab721995419083c174b06484fe7ceed60b428d2 | 144 | py | Python | run.py | gwanghyeongim/flask-blog | a3aff42d7e8e16edcf953efcfa2e8338dd73719c | [
"MIT"
] | null | null | null | run.py | gwanghyeongim/flask-blog | a3aff42d7e8e16edcf953efcfa2e8338dd73719c | [
"MIT"
] | 2 | 2021-06-08T21:59:51.000Z | 2021-09-08T02:18:04.000Z | run.py | harryghgim/flask-blog | a3aff42d7e8e16edcf953efcfa2e8338dd73719c | [
"MIT"
] | null | null | null | from flaskblog import create_app
app = create_app()
if __name__ == '__main__':
app.run(debug=False) # run this when the file is executed
| 18 | 61 | 0.722222 | 22 | 144 | 4.272727 | 0.772727 | 0.191489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 144 | 7 | 62 | 20.571429 | 0.803419 | 0.236111 | 0 | 0 | 0 | 0 | 0.074766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
cab92055affc8126a560b87fda64fe6dd694415b | 5,797 | py | Python | hard_coded_ground_truth.py | woctezuma/steam-descriptions | 88859b9a4e5a9763b0af9cd9fd9ce1b8a19fcf53 | [
"MIT"
] | 1 | 2019-06-01T20:06:35.000Z | 2019-06-01T20:06:35.000Z | hard_coded_ground_truth.py | woctezuma/steam-descriptions | 88859b9a4e5a9763b0af9cd9fd9ce1b8a19fcf53 | [
"MIT"
] | 69 | 2019-01-24T14:05:07.000Z | 2022-03-01T20:04:06.000Z | hard_coded_ground_truth.py | woctezuma/steam-descriptions | 88859b9a4e5a9763b0af9cd9fd9ce1b8a19fcf53 | [
"MIT"
] | null | null | null | # Objective: define a ground truth consisting of clusters of games set in the same fictional universe
import matplotlib.pyplot as plt
import steamspypi
def get_app_ids_which_app_name_contains(name_str='Half-Life'):
data_request = dict()
data_request['request'] = 'all'
data = steamspypi.download(data_req... | 40.823944 | 120 | 0.654821 | 729 | 5,797 | 5.038409 | 0.621399 | 0.053362 | 0.059897 | 0.011435 | 0.112987 | 0.062347 | 0.031854 | 0.023959 | 0.023959 | 0.023959 | 0 | 0.364853 | 0.239262 | 5,797 | 141 | 121 | 41.113475 | 0.468027 | 0.117647 | 0 | 0 | 0 | 0 | 0.055512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043011 | false | 0 | 0.021505 | 0 | 0.107527 | 0.043011 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
cacbacaf598dffe2293f633ece331400986d516b | 367 | py | Python | wfile.py | acse-2020/uav | 6cba63e21676eebc0f243e3601d5ddb29bf7b744 | [
"MIT"
] | null | null | null | wfile.py | acse-2020/uav | 6cba63e21676eebc0f243e3601d5ddb29bf7b744 | [
"MIT"
] | null | null | null | wfile.py | acse-2020/uav | 6cba63e21676eebc0f243e3601d5ddb29bf7b744 | [
"MIT"
] | null | null | null | import string
import random
letters = string.ascii_letters
with open('postal_data.txt', 'w') as f:
for i in range(60):
line = ["".join([random.choice(letters)for j in range(7)]), str(random.uniform(0,
100)), str(random.uniform(0, 100)), str(random.uniform(0, 5))]
for e in line:
... | 33.363636 | 89 | 0.572207 | 56 | 367 | 3.714286 | 0.553571 | 0.129808 | 0.230769 | 0.245192 | 0.274038 | 0.274038 | 0.274038 | 0.274038 | 0.274038 | 0 | 0 | 0.047445 | 0.253406 | 367 | 10 | 90 | 36.7 | 0.711679 | 0 | 0 | 0 | 0 | 0 | 0.054496 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
cae1c16337573fd9b17ce7ec8c2bc948e82a65b7 | 1,721 | py | Python | app/auth/forms.py | marknesh/Blogging-website | e8baca97136dae0adc4c7bf895bf076152430bbc | [
"MIT"
] | null | null | null | app/auth/forms.py | marknesh/Blogging-website | e8baca97136dae0adc4c7bf895bf076152430bbc | [
"MIT"
] | 7 | 2020-02-20T13:58:44.000Z | 2021-02-08T20:40:59.000Z | app/auth/forms.py | marknesh/Blogging-website | e8baca97136dae0adc4c7bf895bf076152430bbc | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import StringField,PasswordField,SubmitField,BooleanField
from wtforms.validators import DataRequired,EqualTo,Email
from ..models import User
from wtforms import ValidationError
class RegistrationForm(FlaskForm):
email=StringField('Your email address',validators=[DataR... | 38.244444 | 129 | 0.751888 | 174 | 1,721 | 7.373563 | 0.293103 | 0.171473 | 0.089634 | 0.06781 | 0.381138 | 0.346064 | 0.208885 | 0.208885 | 0.159002 | 0 | 0 | 0 | 0.122022 | 1,721 | 44 | 130 | 39.113636 | 0.849107 | 0 | 0 | 0.25 | 0 | 0 | 0.144606 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.125 | 0.15625 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
caeca7427b77e778d115f3dc9a54f7920c8b25c5 | 451 | py | Python | d4data/repos.py | kforti/D4Data | e531f115877b751da0543004630dfe54c3ad0bc5 | [
"Apache-2.0"
] | 2 | 2020-09-05T21:49:24.000Z | 2020-11-28T17:00:58.000Z | d4data/repos.py | kforti/D4Data | e531f115877b751da0543004630dfe54c3ad0bc5 | [
"Apache-2.0"
] | null | null | null | d4data/repos.py | kforti/D4Data | e531f115877b751da0543004630dfe54c3ad0bc5 | [
"Apache-2.0"
] | null | null | null |
class Repo:
def __init__(self, data_access, serializer, index_key=None):
self.data_access = data_access
self.serializer = serializer
self.index_key = index_key
def get(self, index):
data = self.data_access.read(index)
obj = self.serializer.deserialize(data)
r... | 23.736842 | 64 | 0.643016 | 57 | 451 | 4.877193 | 0.315789 | 0.179856 | 0.201439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261641 | 451 | 18 | 65 | 25.055556 | 0.834835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
caed879269d193efecaa8e04d88875d97dfb2303 | 2,806 | py | Python | src/server/ipc.py | gkovacs81/argus_server | 97ebf705ed3e61a69bd561faf495e2c19bda510d | [
"MIT"
] | null | null | null | src/server/ipc.py | gkovacs81/argus_server | 97ebf705ed3e61a69bd561faf495e2c19bda510d | [
"MIT"
] | 3 | 2021-06-02T04:07:35.000Z | 2021-12-27T20:21:46.000Z | src/server/ipc.py | gkovacs81/argus_server | 97ebf705ed3e61a69bd561faf495e2c19bda510d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# @Author: Gábor Kovács
# @Date: 2021-02-25 20:06:08
# @Last Modified by: Gábor Kovács
# @Last Modified time: 2021-02-25 20:06:12
import json
import logging
import socket
from os import environ
from monitoring.constants import (
ARM_AWAY,
ARM_STAY,
LOG_IPC,
MONITOR_ARM_AWAY,... | 29.536842 | 87 | 0.662509 | 353 | 2,806 | 4.92068 | 0.27762 | 0.088659 | 0.104778 | 0.157168 | 0.283823 | 0.270006 | 0.250432 | 0.09787 | 0 | 0 | 0 | 0.015306 | 0.231646 | 2,806 | 94 | 88 | 29.851064 | 0.790353 | 0.075909 | 0 | 0 | 0 | 0 | 0.054023 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205882 | false | 0 | 0.073529 | 0.147059 | 0.514706 | 0.014706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
1b1aae8b6fef6486f17fae00e106ddd1c9d9c44a | 224 | py | Python | joueur/utilities.py | amaag/mmai-pirates | a2e66d58ffa48c73222f2648e3db3068d2918454 | [
"MIT"
] | 4 | 2015-12-16T03:38:26.000Z | 2020-11-07T16:16:29.000Z | joueur/utilities.py | amaag/mmai-pirates | a2e66d58ffa48c73222f2648e3db3068d2918454 | [
"MIT"
] | 9 | 2016-10-08T08:27:57.000Z | 2020-11-07T19:12:57.000Z | joueur/utilities.py | amaag/mmai-pirates | a2e66d58ffa48c73222f2648e3db3068d2918454 | [
"MIT"
] | 40 | 2015-10-23T22:40:44.000Z | 2020-11-07T21:18:00.000Z | import re
first_cap_re = re.compile('(.)([A-Z][a-z]+)')
all_cap_re = re.compile('([a-z0-9])([A-Z])')
def camel_case_converter(name):
s1 = first_cap_re.sub(r'\1_\2', name)
return all_cap_re.sub(r'\1_\2', s1).lower()
| 28 | 47 | 0.625 | 45 | 224 | 2.844444 | 0.488889 | 0.15625 | 0.15625 | 0.21875 | 0.40625 | 0.171875 | 0 | 0 | 0 | 0 | 0 | 0.040404 | 0.116071 | 224 | 7 | 48 | 32 | 0.606061 | 0 | 0 | 0 | 0 | 0 | 0.191964 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1b1e9bebd1073bb5c0aef8e2796811e174f7b431 | 457 | py | Python | cmsplugin_newsplus/menu.py | nimbis/cmsplugin-newsplus | 1787fb674faa7800845f18ce782154e290f6be27 | [
"BSD-2-Clause"
] | 6 | 2015-06-07T15:09:09.000Z | 2016-12-16T20:19:11.000Z | cmsplugin_newsplus/menu.py | nimbis/cmsplugin-newsplus | 1787fb674faa7800845f18ce782154e290f6be27 | [
"BSD-2-Clause"
] | 17 | 2015-03-17T16:29:50.000Z | 2017-12-08T01:40:47.000Z | cmsplugin_newsplus/menu.py | nimbis/cmsplugin-newsplus | 1787fb674faa7800845f18ce782154e290f6be27 | [
"BSD-2-Clause"
] | 12 | 2015-03-02T19:12:49.000Z | 2016-07-31T07:58:01.000Z | """
This module hooks into django-cms' menu system by providing a clear menu
hierarchy for every news item.
"""
from django.utils.translation import ugettext_lazy as _
from menus.menu_pool import menu_pool
from cms.menu_bases import CMSAttachMenu
from . import navigation
class NewsItemMenu(CMSAttachMenu):
name ... | 21.761905 | 72 | 0.772429 | 63 | 457 | 5.444444 | 0.619048 | 0.069971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157549 | 457 | 20 | 73 | 22.85 | 0.890909 | 0.225383 | 0 | 0 | 0 | 0 | 0.026012 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.444444 | 0.111111 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 2 |
1b21471b8a4c8676e8d7d4f17c70720f72ab31e5 | 477 | py | Python | netaudio/__init__.py | chris-ritsen/network-audio-controller | 5cbcddfbbe26bafce2784e754129ba3d106b899e | [
"Unlicense"
] | 22 | 2022-02-09T09:57:05.000Z | 2022-03-31T20:36:23.000Z | netaudio/__init__.py | chris-ritsen/network-audio-controller | 5cbcddfbbe26bafce2784e754129ba3d106b899e | [
"Unlicense"
] | 1 | 2022-02-15T14:23:19.000Z | 2022-02-15T14:23:19.000Z | netaudio/__init__.py | chris-ritsen/network-audio-controller | 5cbcddfbbe26bafce2784e754129ba3d106b899e | [
"Unlicense"
] | null | null | null | import sys
from .dante.browser import DanteBrowser
from .dante.channel import DanteChannel
from .dante.control import DanteControl
from .dante.device import DanteDevice
from .dante.multicast import DanteMulticast
from .dante.subscription import DanteSubscription
from .console.application import main
__author__ = "Ch... | 28.058824 | 56 | 0.796646 | 60 | 477 | 6.183333 | 0.566667 | 0.145553 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009547 | 0.121593 | 477 | 16 | 57 | 29.8125 | 0.875895 | 0 | 0 | 0 | 0 | 0 | 0.165618 | 0.050314 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
1b2404eb7951633efb6ab11dabc4539d3aed073c | 1,031 | py | Python | Feed Forward Network.py | yash1802/Recognizing-Objects-in-Photographs | e6c49ee429d5f15977f8a276ff1722fd182c1fdb | [
"MIT"
] | null | null | null | Feed Forward Network.py | yash1802/Recognizing-Objects-in-Photographs | e6c49ee429d5f15977f8a276ff1722fd182c1fdb | [
"MIT"
] | null | null | null | Feed Forward Network.py | yash1802/Recognizing-Objects-in-Photographs | e6c49ee429d5f15977f8a276ff1722fd182c1fdb | [
"MIT"
] | null | null | null | from kaggle import CIFAR10
from pybrain.datasets import ClassificationDataSet
from pybrain.tools.shortcuts import buildNetwork
from pybrain.structure.modules import LinearLayer
from pybrain.supervised.trainers import BackpropTrainer
from pybrain.utilities import percentError
train = CIFAR10('train', datapath='/home/jv... | 42.958333 | 114 | 0.797284 | 123 | 1,031 | 6.626016 | 0.544715 | 0.067485 | 0.03681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018221 | 0.095053 | 1,031 | 24 | 115 | 42.958333 | 0.855305 | 0 | 0 | 0 | 0 | 0 | 0.078488 | 0.028101 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
1b2dcdbe4769d9134a3610744734f12514852a53 | 1,564 | py | Python | aiograph/utils/exceptions.py | fakegit/aiograph | a00aacebb04c1e743055ba524b978a06027e31ed | [
"MIT"
] | 45 | 2018-05-05T12:31:43.000Z | 2022-03-23T11:20:03.000Z | aiographfix/utils/exceptions.py | Yyonging/aiograph | 78d291f9e1157720c949e336a9aa2711ad707285 | [
"MIT"
] | 6 | 2019-03-04T11:23:49.000Z | 2022-03-30T11:25:46.000Z | aiographfix/utils/exceptions.py | Yyonging/aiograph | 78d291f9e1157720c949e336a9aa2711ad707285 | [
"MIT"
] | 16 | 2019-02-22T19:10:19.000Z | 2021-09-15T22:12:55.000Z | # TODO: Find more error types
class TelegraphError(Exception):
__subclasses = []
match = None
text = None
@classmethod
def get_text(cls):
if cls.text is None and cls.match is not None:
return cls.match.replace('_', ' ').capitalize() + '!'
return cls.text
def __ini... | 24.061538 | 74 | 0.650256 | 165 | 1,564 | 5.939394 | 0.4 | 0.116327 | 0.020408 | 0.028571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.254476 | 1,564 | 64 | 75 | 24.4375 | 0.84048 | 0.064578 | 0 | 0.210526 | 0 | 0 | 0.095573 | 0.029515 | 0 | 0 | 0 | 0.015625 | 0 | 1 | 0.105263 | false | 0.210526 | 0 | 0 | 0.447368 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
1b3d4b565a99f3a1615ba94f8183e8727bae2401 | 749 | py | Python | geoscreens/labelstudio/core.py | GiscardBiamby/geo | 54f54ea1c41c1d573eb59f67d1b4338f936414d9 | [
"MIT"
] | 1 | 2022-02-16T01:35:44.000Z | 2022-02-16T01:35:44.000Z | geoscreens/labelstudio/core.py | GiscardBiamby/geoscreens | 54f54ea1c41c1d573eb59f67d1b4338f936414d9 | [
"MIT"
] | null | null | null | geoscreens/labelstudio/core.py | GiscardBiamby/geoscreens | 54f54ea1c41c1d573eb59f67d1b4338f936414d9 | [
"MIT"
] | null | null | null | import json
import sys
from copy import deepcopy
from pathlib import Path
from typing import Dict, List, Optional, Set, Tuple, Union, cast
from label_studio_sdk import Client, Project
from requests import Response
from tqdm.contrib.bells import tqdm
def get_labelstudio_export_from_api(
project: Project, export_t... | 29.96 | 114 | 0.716956 | 98 | 749 | 5.326531 | 0.55102 | 0.063218 | 0.091954 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004918 | 0.185581 | 749 | 24 | 115 | 31.208333 | 0.85082 | 0 | 0 | 0 | 0 | 0 | 0.176235 | 0.130841 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.380952 | 0 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
1b59af12a1d359ff6ccc483222691ee332fdd828 | 1,691 | py | Python | src/tasks/santa_fe_trail/implements/field.py | technote-space/genetic-algorithms-py | a37e0a34c5970987d76fda6b14a48d9ab0579e33 | [
"MIT"
] | 3 | 2020-09-03T18:02:30.000Z | 2020-09-08T18:09:38.000Z | src/tasks/santa_fe_trail/implements/field.py | Amplil/genetic-algorithms-py | 4788c73b1b9d57eac904e8eb99d9140457201e6b | [
"MIT"
] | 7 | 2020-09-08T16:57:19.000Z | 2022-03-12T00:51:26.000Z | src/tasks/santa_fe_trail/implements/field.py | Amplil/genetic-algorithms-py | 4788c73b1b9d57eac904e8eb99d9140457201e6b | [
"MIT"
] | 1 | 2021-04-14T11:10:50.000Z | 2021-04-14T11:10:50.000Z | import copy
from typing import MutableMapping
from .field_flags import FieldFlags
from .helper import Helper
class Field:
"""
Description:
------------
Field
"""
__ate: int
__field: MutableMapping[int, FieldFlags]
__foods: int
def __init__(self) -> None:
self.__ate = 0
... | 26.015385 | 71 | 0.602011 | 222 | 1,691 | 4.31982 | 0.220721 | 0.016684 | 0.04171 | 0.046924 | 0.319082 | 0.216893 | 0.164755 | 0.137643 | 0.070907 | 0 | 0 | 0.002445 | 0.274394 | 1,691 | 64 | 72 | 26.421875 | 0.779136 | 0.034891 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.261905 | false | 0 | 0.095238 | 0.142857 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
1b5ba3b4959424db31ce81c1b2af1e71888bbec8 | 396 | py | Python | tests/test_0231-indexform.py | BioGeek/awkward-1.0 | 0cfb4e43c41d5c7d9830cc7b1d750485c0a93eb2 | [
"BSD-3-Clause"
] | 519 | 2019-10-17T12:36:22.000Z | 2022-03-26T23:28:19.000Z | tests/test_0231-indexform.py | BioGeek/awkward-1.0 | 0cfb4e43c41d5c7d9830cc7b1d750485c0a93eb2 | [
"BSD-3-Clause"
] | 924 | 2019-11-03T21:05:01.000Z | 2022-03-31T22:44:30.000Z | tests/test_0231-indexform.py | BioGeek/awkward-1.0 | 0cfb4e43c41d5c7d9830cc7b1d750485c0a93eb2 | [
"BSD-3-Clause"
] | 56 | 2019-12-17T15:49:22.000Z | 2022-03-09T20:34:06.000Z | # BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE
from __future__ import absolute_import
import pytest # noqa: F401
import numpy as np # noqa: F401
import awkward as ak # noqa: F401
def test():
for itype in ["i8", "u8", "i32", "u32", "i64"]:
form = ak.forms.ListO... | 28.285714 | 87 | 0.676768 | 59 | 396 | 4.457627 | 0.711864 | 0.091255 | 0.106464 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062112 | 0.186869 | 396 | 13 | 88 | 30.461538 | 0.754658 | 0.29798 | 0 | 0 | 0 | 0 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.5 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
1b6232a26dc12b3ceacfc0c7e5542bafc5149706 | 2,435 | py | Python | admin/c2cgeoportal_admin/views/layer_groups.py | vvmruder/c2cgeoportal | 2aa1cfbfa3872fb745db6dae1e0c4ae9a0692542 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | admin/c2cgeoportal_admin/views/layer_groups.py | vvmruder/c2cgeoportal | 2aa1cfbfa3872fb745db6dae1e0c4ae9a0692542 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | admin/c2cgeoportal_admin/views/layer_groups.py | vvmruder/c2cgeoportal | 2aa1cfbfa3872fb745db6dae1e0c4ae9a0692542 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | from functools import partial
from pyramid.view import view_defaults
from pyramid.view import view_config
from c2cgeoform.schema import GeoFormSchemaNode
from c2cgeoform.views.abstract_views import ListField
from deform.widget import FormWidget
from c2cgeoportal_admin.schemas.treegroup import children_schema_node
fro... | 32.905405 | 100 | 0.709651 | 275 | 2,435 | 5.989091 | 0.294545 | 0.042502 | 0.054645 | 0.069217 | 0.281724 | 0.197936 | 0.131755 | 0.131755 | 0 | 0 | 0 | 0.008625 | 0.190554 | 2,435 | 73 | 101 | 33.356164 | 0.826991 | 0 | 0 | 0.178571 | 0 | 0 | 0.1154 | 0.050103 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.196429 | 0.125 | 0.535714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
1b77af5f5a45f4a1e12daa6e32bcd2644b8d15dd | 368 | py | Python | lights/admin.py | and-dmitry/demolighting | 144474d047fd082dea5d3ba9aa0837ec305f3a76 | [
"MIT"
] | null | null | null | lights/admin.py | and-dmitry/demolighting | 144474d047fd082dea5d3ba9aa0837ec305f3a76 | [
"MIT"
] | 1 | 2020-01-19T14:38:46.000Z | 2020-01-19T14:38:46.000Z | lights/admin.py | and-dmitry/demolighting | 144474d047fd082dea5d3ba9aa0837ec305f3a76 | [
"MIT"
] | null | null | null | from django.contrib import admin
from . import models
@admin.register(models.Lamp)
class LampAdmin(admin.ModelAdmin):
list_display = ('name', 'is_on', 'brightness')
ordering = ('name',)
@admin.register(models.WorkingPeriod)
class WorkingPeriodAdmin(admin.ModelAdmin):
list_display = ('lamp', 'brightne... | 20.444444 | 57 | 0.695652 | 40 | 368 | 6.325 | 0.55 | 0.102767 | 0.150198 | 0.205534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146739 | 368 | 17 | 58 | 21.647059 | 0.805732 | 0 | 0 | 0 | 0 | 0 | 0.138587 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1b7abc00a5f3ff8c758270cdac27afdec30a458e | 138 | py | Python | lizardanalysis/version.py | JojoReikun/ClimbingLizardDLCAnalysis | 6cc38090217a3ffd4860ef6d06ba7967d3c10b7c | [
"MIT"
] | 1 | 2021-03-09T19:12:44.000Z | 2021-03-09T19:12:44.000Z | lizardanalysis/version.py | JojoReikun/ClimbingLizardDLCAnalysis | 6cc38090217a3ffd4860ef6d06ba7967d3c10b7c | [
"MIT"
] | null | null | null | lizardanalysis/version.py | JojoReikun/ClimbingLizardDLCAnalysis | 6cc38090217a3ffd4860ef6d06ba7967d3c10b7c | [
"MIT"
] | null | null | null | """
LizardDLCAnalysis Toolbox
© Johanna T. Schultz
© Fabian Plum
Licensed under MIT License
"""
__version__ = '0.1'
VERSION = __version__ | 15.333333 | 26 | 0.746377 | 18 | 138 | 5.388889 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017094 | 0.152174 | 138 | 9 | 27 | 15.333333 | 0.794872 | 0.630435 | 0 | 0 | 0 | 0 | 0.068182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1b8a3d6669351fcb7d361c7362824fabb700e821 | 1,615 | py | Python | posting.py | syjang/autoblog | d13917363661905b4309636455ebb5b5bd4ec949 | [
"Apache-2.0"
] | 1 | 2019-05-06T04:59:29.000Z | 2019-05-06T04:59:29.000Z | posting.py | syjang/autoblog | d13917363661905b4309636455ebb5b5bd4ec949 | [
"Apache-2.0"
] | null | null | null | posting.py | syjang/autoblog | d13917363661905b4309636455ebb5b5bd4ec949 | [
"Apache-2.0"
] | null | null | null | from selenium import webdriver
from realtimekeyword import getNaverRealtimekeyword
import time
from bs4 import BeautifulSoup
class TistoryPostingBot:
def __init__(self,driver, dir, id,password):
self.id = id
self.dir =dir
self.password = password
self.driver = driver
retur... | 31.666667 | 87 | 0.640867 | 201 | 1,615 | 4.865672 | 0.358209 | 0.102249 | 0.173824 | 0.194274 | 0.283231 | 0.240286 | 0.159509 | 0.100205 | 0.100205 | 0.100205 | 0 | 0.003309 | 0.251393 | 1,615 | 50 | 88 | 32.3 | 0.805624 | 0.011765 | 0 | 0.108108 | 0 | 0 | 0.099812 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081081 | false | 0.081081 | 0.108108 | 0 | 0.27027 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
1b8b75b92bcb14a27637ebc9a6c9e739831908ed | 777 | py | Python | tools.py | vinx13/WikiCrawler | df824f7282b90853f4203652afbc2b371b259d76 | [
"MIT"
] | null | null | null | tools.py | vinx13/WikiCrawler | df824f7282b90853f4203652afbc2b371b259d76 | [
"MIT"
] | null | null | null | tools.py | vinx13/WikiCrawler | df824f7282b90853f4203652afbc2b371b259d76 | [
"MIT"
] | null | null | null | import DbHelper
def singleton(_class):
"""
a decorator that is used to implement singleton patten;
Usage:
@singleton
class Foo:
pass
"""
instances = {}
def _getInstance(*args, **kwargs):
if _class not in instances:
instances[_... | 22.852941 | 67 | 0.561133 | 83 | 777 | 5.144578 | 0.493976 | 0.065574 | 0.051522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003752 | 0.314028 | 777 | 34 | 68 | 22.852941 | 0.797373 | 0.212355 | 0 | 0 | 0 | 0 | 0.00738 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.058824 | 0 | 0.647059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1bbbce1eb98223fa678b4e33d6857d7668b3d905 | 219 | py | Python | exercicios_pyhton/leia_int_leia_fload/validar_dados.py | wcalazans81/cursoemvideo_de_python | b3f093477407d4936b87907910c85472fea98469 | [
"MIT"
] | null | null | null | exercicios_pyhton/leia_int_leia_fload/validar_dados.py | wcalazans81/cursoemvideo_de_python | b3f093477407d4936b87907910c85472fea98469 | [
"MIT"
] | null | null | null | exercicios_pyhton/leia_int_leia_fload/validar_dados.py | wcalazans81/cursoemvideo_de_python | b3f093477407d4936b87907910c85472fea98469 | [
"MIT"
] | null | null | null | sexo = str(input('Quer continuar? [M/F] ')).strip().upper()[0]
while sexo not in 'SsNn':
sexo = str(input('Por favor digite um sexo válido! [M/F] ')).strip().upper()[0]
print(f'Sexo {sexo} registrado com sucesso.')
| 43.8 | 83 | 0.643836 | 36 | 219 | 3.916667 | 0.638889 | 0.099291 | 0.170213 | 0.170213 | 0.184397 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010582 | 0.136986 | 219 | 4 | 84 | 54.75 | 0.73545 | 0 | 0 | 0 | 0 | 0 | 0.456621 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1bcd582feaec41273e1b9bb4d0f5e637a3140c6b | 213 | py | Python | homeassistant/components/wiffi/wiffi_strings.py | domwillcode/home-assistant | f170c80bea70c939c098b5c88320a1c789858958 | [
"Apache-2.0"
] | 30,023 | 2016-04-13T10:17:53.000Z | 2020-03-02T12:56:31.000Z | homeassistant/components/wiffi/wiffi_strings.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 31,101 | 2020-03-02T13:00:16.000Z | 2022-03-31T23:57:36.000Z | homeassistant/components/wiffi/wiffi_strings.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 11,956 | 2016-04-13T18:42:31.000Z | 2020-03-02T09:32:12.000Z | """Definition of string used in wiffi json telegrams."""
# units of measurement
WIFFI_UOM_TEMP_CELSIUS = "gradC"
WIFFI_UOM_DEGREE = "grad"
WIFFI_UOM_PERCENT = "%"
WIFFI_UOM_MILLI_BAR = "mb"
WIFFI_UOM_LUX = "lux"
| 23.666667 | 56 | 0.755869 | 32 | 213 | 4.65625 | 0.65625 | 0.268456 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131455 | 213 | 8 | 57 | 26.625 | 0.805405 | 0.338028 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1bcf8b76ab6f44884110af5a4a3c0b3a5a0dcb08 | 3,299 | py | Python | pkg/controllers/auth.py | azupatrick0/taskmanagist | 16a3c044460811370394aac48cdce32cd4e7dc8a | [
"Apache-2.0"
] | null | null | null | pkg/controllers/auth.py | azupatrick0/taskmanagist | 16a3c044460811370394aac48cdce32cd4e7dc8a | [
"Apache-2.0"
] | null | null | null | pkg/controllers/auth.py | azupatrick0/taskmanagist | 16a3c044460811370394aac48cdce32cd4e7dc8a | [
"Apache-2.0"
] | null | null | null | from flask import Flask, request, make_response
import re
from app import db, bcrypt
from pkg.models.auth_models import user
from pkg.helpers.authentication import generateToken
class Auth:
def init(self):
pass
def signup(self):
name = request.json['name']
email = request.json['email']... | 29.19469 | 83 | 0.409518 | 272 | 3,299 | 4.849265 | 0.301471 | 0.08188 | 0.109174 | 0.109174 | 0.385898 | 0.341926 | 0.306293 | 0.277483 | 0.153146 | 0 | 0 | 0.03312 | 0.478327 | 3,299 | 112 | 84 | 29.455357 | 0.733295 | 0.005456 | 0 | 0.42268 | 1 | 0.010309 | 0.112839 | 0.014639 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030928 | false | 0.103093 | 0.051546 | 0 | 0.154639 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
9426e7b573c7abed52e1af2c5f7f0154e6e9dc38 | 83 | py | Python | stimuli/Python/one_file_per_item/en/36_# math_for 18.py | ALFA-group/neural_program_comprehension | 0253911f376cf282af5a5627e38e0a591ad38860 | [
"MIT"
] | 6 | 2020-04-24T08:16:51.000Z | 2021-11-01T09:50:46.000Z | stimuli/Python/one_file_per_item/en/36_# math_for 18.py | ALFA-group/neural_program_comprehension | 0253911f376cf282af5a5627e38e0a591ad38860 | [
"MIT"
] | null | null | null | stimuli/Python/one_file_per_item/en/36_# math_for 18.py | ALFA-group/neural_program_comprehension | 0253911f376cf282af5a5627e38e0a591ad38860 | [
"MIT"
] | 4 | 2021-02-17T20:21:31.000Z | 2022-02-14T12:43:23.000Z | start = 3
total = 0
for i in range(start, -1, -1):
total -= i*i
print(total)
| 10.375 | 30 | 0.566265 | 16 | 83 | 2.9375 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065574 | 0.26506 | 83 | 7 | 31 | 11.857143 | 0.704918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
942e4b158985d07dfd9aa60cb72a567dbd2d08ea | 162 | py | Python | src/features/build_features.py | denizhankara/Multi-class-classification-task | d1fab48bc6b7f19da0e62c59a9c44e3f31809080 | [
"MIT"
] | null | null | null | src/features/build_features.py | denizhankara/Multi-class-classification-task | d1fab48bc6b7f19da0e62c59a9c44e3f31809080 | [
"MIT"
] | null | null | null | src/features/build_features.py | denizhankara/Multi-class-classification-task | d1fab48bc6b7f19da0e62c59a9c44e3f31809080 | [
"MIT"
] | null | null | null | #from src.data.make_dataset import main
def f():
lst = [lambda : i**2 for i in range(100)]
return lst[0]()
if __name__ == "__main__":
f()
pass | 14.727273 | 45 | 0.58642 | 26 | 162 | 3.307692 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0.259259 | 162 | 11 | 46 | 14.727273 | 0.675 | 0.234568 | 0 | 0 | 0 | 0 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
9443903dd7f5b2234fbf9e71822c7e12a1e2be7b | 2,341 | py | Python | gym_flock/__init__.py | katetolstaya/gym-flock | 3236d1dafcb1b9be0cf78b471672e8becb2d37af | [
"MIT"
] | 19 | 2019-07-29T22:19:58.000Z | 2022-01-27T04:38:38.000Z | gym_flock/__init__.py | henghenghahei849/gym-flock | b09bdfbbe4a96fe052958d1f9e1e9dd314f58419 | [
"MIT"
] | null | null | null | gym_flock/__init__.py | henghenghahei849/gym-flock | b09bdfbbe4a96fe052958d1f9e1e9dd314f58419 | [
"MIT"
] | 5 | 2019-10-03T14:44:49.000Z | 2021-12-09T20:39:39.000Z | from gym.envs.registration import register
register(
id='ExploreEnv-v0',
entry_point='gym_flock.envs.spatial:ExploreEnv',
max_episode_steps=100000,
)
register(
id='ExploreFullEnv-v0',
entry_point='gym_flock.envs.spatial:ExploreFullEnv',
max_episode_steps=100000,
)
register(
id='ExploreEnv... | 20.356522 | 69 | 0.720632 | 270 | 2,341 | 5.996296 | 0.211111 | 0.105003 | 0.136504 | 0.189006 | 0.619518 | 0.619518 | 0.430513 | 0.177888 | 0.177888 | 0.177888 | 0 | 0.04624 | 0.159334 | 2,341 | 114 | 70 | 20.535088 | 0.776423 | 0 | 0 | 0.411111 | 0 | 0 | 0.412142 | 0.304404 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.033333 | 0 | 0.033333 | 0.011111 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
944998c4363abd798c108e4e6a10355c095a32e1 | 8,347 | py | Python | src/Core/BetaFunctions/YukawaCouplings.py | NuxDD/pyrate | 01e61027813d4eaf674dd5ce5db6898ea5ca22aa | [
"Apache-2.0"
] | 7 | 2020-07-28T20:01:11.000Z | 2021-12-21T00:52:47.000Z | src/Core/BetaFunctions/YukawaCouplings.py | NuxDD/pyrate | 01e61027813d4eaf674dd5ce5db6898ea5ca22aa | [
"Apache-2.0"
] | 6 | 2020-11-20T10:54:38.000Z | 2021-09-28T08:07:32.000Z | src/Core/BetaFunctions/YukawaCouplings.py | NuxDD/pyrate | 01e61027813d4eaf674dd5ce5db6898ea5ca22aa | [
"Apache-2.0"
] | 6 | 2020-10-06T17:58:16.000Z | 2021-12-10T06:11:41.000Z | # -*- coding: utf-8 -*-
from sympy import transpose, Rational as r
from .BetaFunction import BetaFunction
from Definitions import tensorContract
class YukawaBetaFunction(BetaFunction):
def compute(self, a,i,j, nLoops):
ret = self.Beta(a,i,j, nLoops=nLoops)
if i!=j:
re... | 32.992095 | 86 | 0.376183 | 1,080 | 8,347 | 2.692593 | 0.106481 | 0.092847 | 0.041265 | 0.093879 | 0.701513 | 0.65337 | 0.634801 | 0.504127 | 0.418845 | 0.345942 | 0 | 0.047587 | 0.471307 | 8,347 | 253 | 87 | 32.992095 | 0.611375 | 0.014496 | 0 | 0.359116 | 0 | 0 | 0.002341 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.226519 | false | 0 | 0.016575 | 0.209945 | 0.464088 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
945844d95f44dd149a8b7b6b165abaccbd83e4c9 | 582 | py | Python | erasmus/protocols.py | gpontesss/Erasmus | a1cae3e746e1f9b18195d1c2dee81aebe53313ad | [
"BSD-3-Clause"
] | 10 | 2017-10-09T15:20:00.000Z | 2022-02-15T13:43:22.000Z | erasmus/protocols.py | gpontesss/Erasmus | a1cae3e746e1f9b18195d1c2dee81aebe53313ad | [
"BSD-3-Clause"
] | 260 | 2017-08-27T00:51:30.000Z | 2022-03-24T03:13:55.000Z | erasmus/protocols.py | gpontesss/Erasmus | a1cae3e746e1f9b18195d1c2dee81aebe53313ad | [
"BSD-3-Clause"
] | 7 | 2018-05-18T23:36:38.000Z | 2021-12-02T01:10:33.000Z | from __future__ import annotations
from typing import Protocol
from .data import Passage, SearchResults, VerseRange
class Bible(Protocol):
command: str
name: str
abbr: str
service: str
service_version: str
rtl: bool | None
books: int
class Service(Protocol):
async def get_passage(s... | 18.1875 | 80 | 0.573883 | 60 | 582 | 5.466667 | 0.55 | 0.060976 | 0.085366 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.319588 | 582 | 31 | 81 | 18.774194 | 0.828283 | 0 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.083333 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
9464c69100248b327fcea4a69c27a49eee0d4a7f | 105 | py | Python | BKGLycanExtractor/attic/basenamefrompath.py | glygen-glycan-data/GlycanImageExtract | 32b7a60d2a72ff684bc4ee6d4cb71f1cd670a664 | [
"MIT"
] | null | null | null | BKGLycanExtractor/attic/basenamefrompath.py | glygen-glycan-data/GlycanImageExtract | 32b7a60d2a72ff684bc4ee6d4cb71f1cd670a664 | [
"MIT"
] | null | null | null | BKGLycanExtractor/attic/basenamefrompath.py | glygen-glycan-data/GlycanImageExtract | 32b7a60d2a72ff684bc4ee6d4cb71f1cd670a664 | [
"MIT"
] | null | null | null | import ntpath
path = "test/p19-578.png"
basename = ntpath.basename(path).split('.')[0]
print(basename) | 15 | 46 | 0.704762 | 15 | 105 | 4.933333 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06383 | 0.104762 | 105 | 7 | 47 | 15 | 0.723404 | 0 | 0 | 0 | 0 | 0 | 0.160377 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
946b8efbf23b952ade67405bbf44d79beb8b2e77 | 358 | py | Python | PyCTPM/core/config.py | sinagilassi/CTPM | 9cc69fd1e5d64373d5fe93d35bca8f211462d453 | [
"MIT"
] | 1 | 2021-12-02T03:31:18.000Z | 2021-12-02T03:31:18.000Z | PyCTPM/core/config.py | sinagilassi/CTPM | 9cc69fd1e5d64373d5fe93d35bca8f211462d453 | [
"MIT"
] | null | null | null | PyCTPM/core/config.py | sinagilassi/CTPM | 9cc69fd1e5d64373d5fe93d35bca8f211462d453 | [
"MIT"
] | null | null | null | # CONFIG APP
# -----------
# import packages/modules
import enum
# app config
appConfig = {
"calculation": {
"roundAccuracy": 2,
"roundAccuracyRoot": 4
}
}
# round function accuracy
ROUND_FUN_ACCURACY = appConfig['calculation']['roundAccuracy']
# eos root accuracy
EOS_ROOT_ACCURACY = appConfi... | 18.842105 | 65 | 0.675978 | 33 | 358 | 7.212121 | 0.545455 | 0.252101 | 0.277311 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006826 | 0.181564 | 358 | 18 | 66 | 19.888889 | 0.805461 | 0.276536 | 0 | 0 | 0 | 0 | 0.369048 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9484952d940133a6a6d4701703465d240c25f60c | 1,097 | py | Python | upload_file.py | smartdan/dsrace | c1b0c2246795692a276af921ace6511213c8fd99 | [
"Apache-2.0"
] | 2 | 2021-01-27T22:44:37.000Z | 2021-08-10T09:02:32.000Z | upload_file.py | smartdan/dsrace | c1b0c2246795692a276af921ace6511213c8fd99 | [
"Apache-2.0"
] | null | null | null | upload_file.py | smartdan/dsrace | c1b0c2246795692a276af921ace6511213c8fd99 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
'''
Copyright 2017 Daniele Sabetta
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 applica... | 28.868421 | 75 | 0.722881 | 158 | 1,097 | 4.949367 | 0.64557 | 0.076726 | 0.033248 | 0.040921 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015625 | 0.183227 | 1,097 | 38 | 76 | 28.868421 | 0.857143 | 0.018232 | 0 | 0 | 0 | 0 | 0.156701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.111111 | 0.222222 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
84674ad062186a544a9dc42189337a7ddbb2edbf | 2,167 | py | Python | ibis_substrait/proto/substrait/plan_pb2.py | gforsyth/ibis-substrait | 7eaf31201767011ce727cdf69f7afbc73627ce6e | [
"Apache-2.0"
] | 14 | 2022-01-19T00:20:51.000Z | 2022-03-18T10:29:26.000Z | ibis_substrait/proto/substrait/plan_pb2.py | gforsyth/ibis-substrait | 7eaf31201767011ce727cdf69f7afbc73627ce6e | [
"Apache-2.0"
] | 82 | 2022-01-18T23:42:07.000Z | 2022-03-30T18:30:23.000Z | ibis_substrait/proto/substrait/plan_pb2.py | gforsyth/ibis-substrait | 7eaf31201767011ce727cdf69f7afbc73627ce6e | [
"Apache-2.0"
] | 3 | 2022-01-19T00:04:19.000Z | 2022-03-14T15:34:38.000Z | """Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_databas... | 94.217391 | 884 | 0.826027 | 277 | 2,167 | 6.176895 | 0.357401 | 0.029223 | 0.052601 | 0.070134 | 0.17066 | 0.098188 | 0.098188 | 0.049094 | 0 | 0 | 0 | 0.073075 | 0.059068 | 2,167 | 23 | 885 | 94.217391 | 0.766062 | 0.014305 | 0 | 0 | 1 | 0.045455 | 0.365087 | 0.311122 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.318182 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
846db064cdf9d9da54c327f37f90ac531909344b | 511 | py | Python | tests/test_chatbot.py | jvm123/botstory | ff85a22e84527d8ec713a3f06948630c6985a48c | [
"MIT"
] | null | null | null | tests/test_chatbot.py | jvm123/botstory | ff85a22e84527d8ec713a3f06948630c6985a48c | [
"MIT"
] | null | null | null | tests/test_chatbot.py | jvm123/botstory | ff85a22e84527d8ec713a3f06948630c6985a48c | [
"MIT"
] | null | null | null | import sys
import os
import unittest
from botstory.botclass import BotClass
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
class TestChatbot(unittest.TestCase):
def test_chatbot(self):
chatbot = BotClass()
# Check whether the bot is able to respond to a simple p... | 36.5 | 93 | 0.720157 | 70 | 511 | 5.157143 | 0.585714 | 0.049862 | 0.121884 | 0.160665 | 0.299169 | 0.299169 | 0.299169 | 0.299169 | 0.299169 | 0.299169 | 0 | 0.002326 | 0.158513 | 511 | 13 | 94 | 39.307692 | 0.837209 | 0.162427 | 0 | 0 | 0 | 0 | 0.119718 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
8475100485c2ec05a718d75ad87e53d1596a31f3 | 7,376 | py | Python | tests/zq_crawler/test_yahoo.py | feng-zhe/ZheQuant-brain-python | c4024032e3684d86fa85f0e9dc063eb831569a4e | [
"Apache-2.0"
] | 2 | 2017-12-15T01:21:11.000Z | 2018-01-07T22:47:36.000Z | tests/zq_crawler/test_yahoo.py | feng-zhe/ZheQuant-brain-python | c4024032e3684d86fa85f0e9dc063eb831569a4e | [
"Apache-2.0"
] | null | null | null | tests/zq_crawler/test_yahoo.py | feng-zhe/ZheQuant-brain-python | c4024032e3684d86fa85f0e9dc063eb831569a4e | [
"Apache-2.0"
] | null | null | null | '''
Unit Tests for yahoo.py
'''
import unittest
import json
import random
from datetime import datetime
from datetime import timedelta
import pytz
from zq_crawler.yahoo import *
# Unit test class
class TestYahooCrawler(unittest.TestCase):
'''
Test case for yahoo crawler
'''
# test response string
... | 42.883721 | 109 | 0.506914 | 692 | 7,376 | 5.349711 | 0.317919 | 0.023771 | 0.025932 | 0.041059 | 0.376283 | 0.329822 | 0.279849 | 0.279849 | 0.279849 | 0.256078 | 0 | 0.282824 | 0.356697 | 7,376 | 171 | 110 | 43.134503 | 0.497366 | 0.059517 | 0 | 0.210145 | 0 | 0.043478 | 0.115056 | 0 | 0 | 0 | 0 | 0 | 0.050725 | 1 | 0.028986 | false | 0 | 0.050725 | 0 | 0.094203 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8477f06b947f8f4feb297332d7899585e18cb36c | 85 | py | Python | yasha/constants.py | alextremblay/yasha | 58289c243868b97531d1b0bd0a5ff1fdfedeb77e | [
"MIT"
] | null | null | null | yasha/constants.py | alextremblay/yasha | 58289c243868b97531d1b0bd0a5ff1fdfedeb77e | [
"MIT"
] | null | null | null | yasha/constants.py | alextremblay/yasha | 58289c243868b97531d1b0bd0a5ff1fdfedeb77e | [
"MIT"
] | null | null | null | ENCODING = 'utf-8'
EXTENSION_FILE_FORMATS = ('.py', '.yasha', '.j2ext', '.jinja-ext') | 42.5 | 66 | 0.635294 | 11 | 85 | 4.727273 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025974 | 0.094118 | 85 | 2 | 66 | 42.5 | 0.649351 | 0 | 0 | 0 | 0 | 0 | 0.348837 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8481ee060f95ed72bf6dfe700c51abecabf8588a | 221 | py | Python | spam/forms.py | iamsushanth/sms-spam-detector | 5120b10603eec2fed43bee5f3388ff5938e20b1a | [
"MIT"
] | 1 | 2021-09-29T15:53:08.000Z | 2021-09-29T15:53:08.000Z | spam/forms.py | iamsushanth/sms-spam-detector | 5120b10603eec2fed43bee5f3388ff5938e20b1a | [
"MIT"
] | null | null | null | spam/forms.py | iamsushanth/sms-spam-detector | 5120b10603eec2fed43bee5f3388ff5938e20b1a | [
"MIT"
] | null | null | null | from django import forms
class SearchForm(forms.Form):
q = forms.CharField(label='',widget=forms.Textarea(
attrs={
'class':'search-query form-control',
'placeholder':'Search'
}
))
| 22.1 | 55 | 0.60181 | 23 | 221 | 5.782609 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253394 | 221 | 9 | 56 | 24.555556 | 0.806061 | 0 | 0 | 0 | 0 | 0 | 0.21267 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.375 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
848652cd370210d9eed078cd954ff9b881ae833b | 279 | py | Python | src/def_func.py | maokuntao/python-study | d4761ff417405788ad098850dc928e342c99977f | [
"Apache-2.0"
] | null | null | null | src/def_func.py | maokuntao/python-study | d4761ff417405788ad098850dc928e342c99977f | [
"Apache-2.0"
] | null | null | null | src/def_func.py | maokuntao/python-study | d4761ff417405788ad098850dc928e342c99977f | [
"Apache-2.0"
] | null | null | null | '''
函数定义
Created on 2017年12月22日
@author: taomaokun
'''
from my_lib import my_abs
# print(my_abs('A')) #TypeError
# print(my_abs('-233'))#TypeError
print(my_abs(-233))
# 函数名其实就是指向一个函数对象的引用,完全可以把函数名赋给一个变量,相当于给这个函数起了一个“别名”:
another_my_abs = my_abs;
print(another_my_abs(-2.333)) | 17.4375 | 53 | 0.74552 | 41 | 279 | 4.829268 | 0.536585 | 0.176768 | 0.151515 | 0.191919 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.096774 | 279 | 16 | 54 | 17.4375 | 0.714286 | 0.577061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
8487148c22c6f4036f56832fe1aa81706fe0cf41 | 3,534 | py | Python | spider/spide.py | virusdefender/qdu_empty_classroot | 70a7798fde90d727c3db840f45ff5acb8c0421b2 | [
"MIT"
] | 3 | 2015-09-12T04:22:08.000Z | 2017-03-19T23:24:36.000Z | spider/spide.py | virusdefender/qdu_empty_classroot | 70a7798fde90d727c3db840f45ff5acb8c0421b2 | [
"MIT"
] | 1 | 2017-03-02T08:37:47.000Z | 2017-03-02T08:37:47.000Z | spider/spide.py | virusdefender/qdu_empty_classroot | 70a7798fde90d727c3db840f45ff5acb8c0421b2 | [
"MIT"
] | 6 | 2015-09-12T04:22:04.000Z | 2017-03-03T11:39:54.000Z | # coding=utf-8
import time
import json
import re
import requests
from thread_pool import ThreadPool
class Spider(object):
def __init__(self):
self.cookies = {}
self.r = re.compile(
u'<tr style="display:" id="tr\d+"[^>]*?>\s*<td>([^<]*?)</td>[\s\S]+?<tr align="center" >[\s\S]+?<tr ali... | 46.5 | 132 | 0.425297 | 427 | 3,534 | 3.461358 | 0.266979 | 0.020298 | 0.035183 | 0.043978 | 0.361299 | 0.310555 | 0.290257 | 0.290257 | 0.290257 | 0.290257 | 0 | 0.01984 | 0.258347 | 3,534 | 76 | 133 | 46.5 | 0.544067 | 0.02575 | 0 | 0.225806 | 0 | 0.225806 | 0.461606 | 0.208261 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.080645 | null | null | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8496ea33619ca3f6bee8a38e3bee09ffd608e59f | 458 | py | Python | initadmin.py | fga-eps-mds/2017.2-SiGI-Op_API | 4532019c15414fd17e06bb3aa78501886e00da1d | [
"BSD-3-Clause"
] | 6 | 2017-08-24T13:18:21.000Z | 2017-10-03T18:06:13.000Z | initadmin.py | fga-gpp-mds/2017.2-Grupo9 | 4532019c15414fd17e06bb3aa78501886e00da1d | [
"BSD-3-Clause"
] | 173 | 2017-08-31T15:29:01.000Z | 2017-12-14T13:40:13.000Z | initadmin.py | fga-gpp-mds/2017.2-SiGI-Op_API | 4532019c15414fd17e06bb3aa78501886e00da1d | [
"BSD-3-Clause"
] | 2 | 2018-11-19T10:33:00.000Z | 2019-06-19T22:35:43.000Z | import os
os.environ['DJANGO_SETTINGS_MODULE'] = 'sigi_op.settings'
import django
django.setup()
from django.contrib.auth.management.commands.createsuperuser import get_user_model
if get_user_model().objects.filter(username='admin'):
print("Super user already created")
else:
get_user_model()._default_manager.... | 38.166667 | 143 | 0.783843 | 61 | 458 | 5.672131 | 0.606557 | 0.060694 | 0.104046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01432 | 0.085153 | 458 | 11 | 144 | 41.636364 | 0.811456 | 0 | 0 | 0 | 0 | 0 | 0.272926 | 0.048035 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.1 | 0.3 | 0 | 0.3 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
84a3613d5c62711c1c57fa2faf49f857ac7c9622 | 731 | py | Python | models.py | iperez319/dog-tinder | fc2a9f8254e4930afd7121f894d2b29ecf8235bc | [
"MIT"
] | null | null | null | models.py | iperez319/dog-tinder | fc2a9f8254e4930afd7121f894d2b29ecf8235bc | [
"MIT"
] | null | null | null | models.py | iperez319/dog-tinder | fc2a9f8254e4930afd7121f894d2b29ecf8235bc | [
"MIT"
] | null | null | null | from google.appengine.ext import ndb
class Dog(ndb.Model):
name = ndb.StringProperty()
breed = ndb.StringProperty()
gender = ndb.StringProperty()
age = ndb.StringProperty()
size = ndb.StringProperty()
socialLevel = ndb.StringProperty()
activityLevel = ndb.StringProperty()
profilePic = n... | 30.458333 | 77 | 0.689466 | 75 | 731 | 6.72 | 0.493333 | 0.438492 | 0.047619 | 0.059524 | 0.115079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186047 | 731 | 23 | 78 | 31.782609 | 0.847059 | 0 | 0 | 0.2 | 0 | 0 | 0.036986 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
84a9d33c6c27b6cdb56e31fb9618236ac36eed15 | 329 | py | Python | Practice/Python/Basic Data Types/List_Comprehensions.py | alexanderbauer89/HackerRank | 0fb6face083b0183692c9251ffe4bb635591393f | [
"MIT"
] | 1 | 2021-11-17T02:47:11.000Z | 2021-11-17T02:47:11.000Z | Practice/Python/Basic Data Types/List_Comprehensions.py | alexanderbauer89/HackerRank | 0fb6face083b0183692c9251ffe4bb635591393f | [
"MIT"
] | null | null | null | Practice/Python/Basic Data Types/List_Comprehensions.py | alexanderbauer89/HackerRank | 0fb6face083b0183692c9251ffe4bb635591393f | [
"MIT"
] | null | null | null | def print_list_comprehensions(x, y, z, n):
print([[a, b, c] for a in range(0, x + 1)
for b in range(0, y + 1)
for c in range(0, z + 1)
if a + b + c != n ])
if __name__ == '__main__':
x = int(input())
y = int(input())
z = int(input())
n = int(input())
print_list_comprehensions(x, ... | 25.307692 | 46 | 0.519757 | 60 | 329 | 2.65 | 0.35 | 0.201258 | 0.150943 | 0.301887 | 0.339623 | 0.339623 | 0.339623 | 0 | 0 | 0 | 0 | 0.025974 | 0.297872 | 329 | 12 | 47 | 27.416667 | 0.662338 | 0 | 0 | 0 | 0 | 0 | 0.024316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.090909 | 0.272727 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
84aa7c6ad836736407aa360cc1fa6c8e91402476 | 79 | py | Python | nmosquery/__init__.py | bbc/nmos-query | ac823bf483dd1d577a8712e90e8b6fa8cbc9c2dc | [
"Apache-2.0"
] | 1 | 2017-12-04T12:13:24.000Z | 2017-12-04T12:13:24.000Z | nmosquery/__init__.py | bbc/nmos-query | ac823bf483dd1d577a8712e90e8b6fa8cbc9c2dc | [
"Apache-2.0"
] | 19 | 2018-01-03T09:07:37.000Z | 2019-09-11T09:56:01.000Z | nmosquery/__init__.py | bbc/nmos-query | ac823bf483dd1d577a8712e90e8b6fa8cbc9c2dc | [
"Apache-2.0"
] | 1 | 2017-12-14T17:09:47.000Z | 2017-12-14T17:09:47.000Z | VALID_TYPES = ["flows", "sources", "nodes", "devices", "senders", "receivers"]
| 39.5 | 78 | 0.64557 | 8 | 79 | 6.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101266 | 79 | 1 | 79 | 79 | 0.704225 | 0 | 0 | 0 | 0 | 0 | 0.506329 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
84c863f736a06ec83fc5027a5bdd632876de3e2b | 424 | py | Python | py/caesar_cipher.py | sti320a/security_tools | c8b90f78ebb9cad18e80e9955570e26fb53dc6c3 | [
"MIT"
] | null | null | null | py/caesar_cipher.py | sti320a/security_tools | c8b90f78ebb9cad18e80e9955570e26fb53dc6c3 | [
"MIT"
] | null | null | null | py/caesar_cipher.py | sti320a/security_tools | c8b90f78ebb9cad18e80e9955570e26fb53dc6c3 | [
"MIT"
] | null | null | null | #! python3
def generate_cryptogram(text: str, keynum: int) -> str:
encrypted = ''
for char in text:
encrypted += chr(ord(char) + keynum)
return encrypted
def try_decrypt(text: str) -> list:
res = []
for keynum in range(1, 27):
res.append(generate_cryptogram(text, -keynum))
re... | 20.190476 | 55 | 0.627358 | 53 | 424 | 4.773585 | 0.54717 | 0.213439 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01548 | 0.238208 | 424 | 20 | 56 | 21.2 | 0.767802 | 0.021226 | 0 | 0 | 1 | 0 | 0.038647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0 | 0 | 0.307692 | 0.076923 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
84d2fcbb055fc59ab6c1116c665f644529f7312c | 15,081 | py | Python | pgoapi/protos/pogoprotos/data/quests/quest_reward_pb2.py | SkOODaT/Pgoapi | a0021998eb75f6b1a867d7348acb4fcf1298987d | [
"MIT"
] | 1 | 2017-12-12T10:05:57.000Z | 2017-12-12T10:05:57.000Z | pgoapi/protos/pogoprotos/data/quests/quest_reward_pb2.py | SkOODaT/Pgoapi | a0021998eb75f6b1a867d7348acb4fcf1298987d | [
"MIT"
] | null | null | null | pgoapi/protos/pogoprotos/data/quests/quest_reward_pb2.py | SkOODaT/Pgoapi | a0021998eb75f6b1a867d7348acb4fcf1298987d | [
"MIT"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: pogoprotos/data/quests/quest_reward.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf... | 44.486726 | 1,746 | 0.765997 | 1,894 | 15,081 | 5.795671 | 0.107709 | 0.046643 | 0.069236 | 0.084723 | 0.694088 | 0.630865 | 0.591965 | 0.500046 | 0.476086 | 0.458231 | 0 | 0.039483 | 0.118295 | 15,081 | 338 | 1,747 | 44.618343 | 0.786042 | 0.034746 | 0 | 0.644013 | 1 | 0.006472 | 0.230478 | 0.198721 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.029126 | 0 | 0.029126 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
84e1dd4a560dbafdaeb87ba80b527cc4eacadf8f | 708 | py | Python | kashgari/layers/__init__.py | SharpKoi/Kashgari | ef8c4b4d17dbd69616b9cc744489181909e313c3 | [
"Apache-2.0"
] | 2,422 | 2019-01-25T07:03:07.000Z | 2022-03-31T10:29:33.000Z | kashgari/layers/__init__.py | SharpKoi/Kashgari | ef8c4b4d17dbd69616b9cc744489181909e313c3 | [
"Apache-2.0"
] | 397 | 2019-01-29T08:37:39.000Z | 2022-02-17T08:16:09.000Z | kashgari/layers/__init__.py | SharpKoi/Kashgari | ef8c4b4d17dbd69616b9cc744489181909e313c3 | [
"Apache-2.0"
] | 505 | 2019-01-25T15:34:03.000Z | 2022-03-29T17:09:00.000Z | # encoding: utf-8
# author: BrikerMan
# contact: eliyar917@gmail.com
# blog: https://eliyar.biz
# file: __init__.py
# time: 7:39 下午
from typing import Dict, Any
from tensorflow import keras
from .conditional_random_field import KConditionalRandomField
from .behdanau_attention import BahdanauAttention # type: ignor... | 24.413793 | 77 | 0.783898 | 78 | 708 | 6.846154 | 0.615385 | 0.097378 | 0.037453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011401 | 0.132768 | 708 | 28 | 78 | 25.285714 | 0.858306 | 0.186441 | 0 | 0 | 0 | 0 | 0.084507 | 0.040493 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.307692 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
84e20afb0f168e9d37d23e1254dc44b93d02ee05 | 499 | py | Python | e2xgrader/preprocessors/authoring/__init__.py | divindevaiah/e2xgrader | 19eb4662e4eee5ddef673097517e4bd4fb469e62 | [
"MIT"
] | 2 | 2021-10-02T10:48:47.000Z | 2022-03-02T14:00:48.000Z | e2xgrader/preprocessors/authoring/__init__.py | divindevaiah/e2xgrader | 19eb4662e4eee5ddef673097517e4bd4fb469e62 | [
"MIT"
] | 70 | 2020-10-23T16:42:01.000Z | 2022-03-14T16:33:54.000Z | e2xgrader/preprocessors/authoring/__init__.py | divindevaiah/e2xgrader | 19eb4662e4eee5ddef673097517e4bd4fb469e62 | [
"MIT"
] | 10 | 2020-11-22T16:36:16.000Z | 2022-03-02T15:51:24.000Z | from .preprocessor import Preprocessor
from .removeexercise import RemoveExercise
from .copynotebooks import CopyNotebooks
from .copyfiles import CopyFiles
from .generatetaskids import GenerateTaskIDs
from .makeexercise import MakeExercise
from .filltemplate import FillTemplate
from .addtaskheader import AddTaskHeader
... | 24.95 | 44 | 0.775551 | 41 | 499 | 9.341463 | 0.268293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154309 | 499 | 19 | 45 | 26.263158 | 0.907583 | 0 | 0 | 0 | 1 | 0 | 0.200401 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
84eed1c2cd9b6394bff86f6d057df32d31a11b79 | 522 | py | Python | exercises/CursoemVideo/ex075.py | arthurguerra/cursoemvideo-python | 37f45ec25f422673fa9bbeee682e098f14d8ceab | [
"MIT"
] | null | null | null | exercises/CursoemVideo/ex075.py | arthurguerra/cursoemvideo-python | 37f45ec25f422673fa9bbeee682e098f14d8ceab | [
"MIT"
] | null | null | null | exercises/CursoemVideo/ex075.py | arthurguerra/cursoemvideo-python | 37f45ec25f422673fa9bbeee682e098f14d8ceab | [
"MIT"
] | null | null | null | a = (int(input('Digite um número: ')),
int(input('Digite outro número: ')),
int(input('Digite mais um número: ')),
int(input('Digite o último número: ')))
print(f'Você digitou os valores {a}')
print(f'O número 9 apareceu {a.count(9)} vezes')
if a.count(3) != 0:
print(f'O valor 3 apareceu na {a.index(... | 37.285714 | 59 | 0.624521 | 87 | 522 | 3.747126 | 0.471264 | 0.09816 | 0.171779 | 0.184049 | 0.134969 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024038 | 0.203065 | 522 | 14 | 60 | 37.285714 | 0.759615 | 0 | 0 | 0 | 0 | 0 | 0.527725 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
17055a69d8fabfb5f69d2a663cf44e2726223a1e | 369 | py | Python | {{cookiecutter.gh_repo_name}}/setup.py | filwaitman/cookiecutter-lib | e700f2e273274a0f00236c846acac742b68a9b4f | [
"MIT"
] | null | null | null | {{cookiecutter.gh_repo_name}}/setup.py | filwaitman/cookiecutter-lib | e700f2e273274a0f00236c846acac742b68a9b4f | [
"MIT"
] | null | null | null | {{cookiecutter.gh_repo_name}}/setup.py | filwaitman/cookiecutter-lib | e700f2e273274a0f00236c846acac742b68a9b4f | [
"MIT"
] | null | null | null | {%- if cookiecutter.py2_support.lower() == 'n' -%}
import sys
{% endif -%}
from setuptools import setup
{%- if cookiecutter.py2_support.lower() == 'n' %}
CURRENT_PYTHON = sys.version_info[:2]
REQUIRED_PYTHON = (3, 6)
if CURRENT_PYTHON < REQUIRED_PYTHON:
sys.stderr.write('This project does not support your Python ... | 23.0625 | 74 | 0.685637 | 50 | 369 | 4.92 | 0.58 | 0.113821 | 0.138211 | 0.195122 | 0.243902 | 0.243902 | 0 | 0 | 0 | 0 | 0 | 0.019169 | 0.151762 | 369 | 15 | 75 | 24.6 | 0.766773 | 0 | 0 | 0 | 0 | 0 | 0.140921 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
170714b68fa203db80132b0a29cfa6de2107655c | 196 | py | Python | minicms/urls.py | optik/minicms | e881b0da1f72b44a62e8ac60fb6b3ca3a8feab1c | [
"MIT"
] | null | null | null | minicms/urls.py | optik/minicms | e881b0da1f72b44a62e8ac60fb6b3ca3a8feab1c | [
"MIT"
] | null | null | null | minicms/urls.py | optik/minicms | e881b0da1f72b44a62e8ac60fb6b3ca3a8feab1c | [
"MIT"
] | null | null | null | from django.conf.urls import url
from . import views
app_name = 'minicms'
urlpatterns = [
url(r'^$', views.homepage, name='homepage'),
url(r'^(?P<path>.+)/$', views.page, name='page'),
]
| 21.777778 | 53 | 0.627551 | 27 | 196 | 4.518519 | 0.592593 | 0.065574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153061 | 196 | 8 | 54 | 24.5 | 0.73494 | 0 | 0 | 0 | 0 | 0 | 0.183673 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ca01926cc3d073cb161fdebcf79deeb00012312a | 635 | py | Python | src/agent/base_agent.py | Wisteria30/GIM-RL | 085ba3b8c10590f82226cd1675ba96c5f90740f3 | [
"Apache-2.0"
] | 3 | 2021-10-15T00:57:05.000Z | 2021-12-16T13:00:05.000Z | src/agent/base_agent.py | Wisteria30/GIM-RL | 085ba3b8c10590f82226cd1675ba96c5f90740f3 | [
"Apache-2.0"
] | null | null | null | src/agent/base_agent.py | Wisteria30/GIM-RL | 085ba3b8c10590f82226cd1675ba96c5f90740f3 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import torch
class Agent:
def __init__(self, env, cfg):
# if gpu is to be used
self.device = torch.device(
f"cuda:{cfg.gpu}" if torch.cuda.is_available() else "cpu"
)
self.env = env
self.cfg = cfg
self.n_states = self.env.observa... | 20.483871 | 69 | 0.576378 | 85 | 635 | 4.141176 | 0.529412 | 0.079545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006897 | 0.314961 | 635 | 30 | 70 | 21.166667 | 0.802299 | 0.066142 | 0 | 0.2 | 0 | 0 | 0.028814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0.2 | 0.05 | 0.05 | 0.45 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
ca052fcafd4be80ab9d7ed89399ee301bf38199d | 431 | py | Python | cli/gardener_ci/checkmarx_cli.py | zkdev/cc-utils | 042c6632ca6f61a484bc0a71f85957aeba7f7278 | [
"BSD-3-Clause"
] | 15 | 2018-04-18T13:25:30.000Z | 2022-03-04T09:25:41.000Z | cli/gardener_ci/checkmarx_cli.py | zkdev/cc-utils | 042c6632ca6f61a484bc0a71f85957aeba7f7278 | [
"BSD-3-Clause"
] | 221 | 2018-04-12T06:29:43.000Z | 2022-03-27T03:01:40.000Z | cli/gardener_ci/checkmarx_cli.py | zkdev/cc-utils | 042c6632ca6f61a484bc0a71f85957aeba7f7278 | [
"BSD-3-Clause"
] | 29 | 2018-04-11T14:42:23.000Z | 2021-11-09T16:26:32.000Z | import concourse.steps.scan_sources
def upload_and_scan_from_component_descriptor(
checkmarx_cfg_name: str,
team_id: str,
component_descriptor_path: str
):
concourse.steps.scan_sources.scan_sources_and_notify(
checkmarx_cfg_name=checkmarx_cfg_name,
team_id=team_id,
... | 28.733333 | 60 | 0.740139 | 53 | 431 | 5.528302 | 0.471698 | 0.259386 | 0.163823 | 0.170648 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192575 | 431 | 14 | 61 | 30.785714 | 0.841954 | 0 | 0 | 0 | 0 | 0 | 0.051044 | 0.051044 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ca08281f157a99ae890aa401107291a658a93164 | 171 | py | Python | Assignments/Dictionaries/Lab/01. Bakery.py | KaloyankerR/python-fundamentals-repository | b8e69523ea7e6aa352e8398f0202e283374a0f7c | [
"MIT"
] | null | null | null | Assignments/Dictionaries/Lab/01. Bakery.py | KaloyankerR/python-fundamentals-repository | b8e69523ea7e6aa352e8398f0202e283374a0f7c | [
"MIT"
] | null | null | null | Assignments/Dictionaries/Lab/01. Bakery.py | KaloyankerR/python-fundamentals-repository | b8e69523ea7e6aa352e8398f0202e283374a0f7c | [
"MIT"
] | null | null | null | items = input().split(" ")
bakery = {}
for item in range(0, len(items), 2):
key = items[item]
value = int(items[item + 1])
bakery[key] = value
print(bakery)
| 17.1 | 36 | 0.584795 | 25 | 171 | 4 | 0.64 | 0.18 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.22807 | 171 | 9 | 37 | 19 | 0.734848 | 0 | 0 | 0 | 0 | 0 | 0.005848 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ca10094a5aeaef18db3fccaf696504ea991caf0f | 137 | py | Python | BOJ_Solved/BOJ-25191.py | CodingLeeSeungHoon/Python_Algorithm_TeamNote | 1e92986999b45aa9951e12e67b23062e410e9b36 | [
"MIT"
] | 7 | 2021-11-19T14:50:59.000Z | 2022-02-25T20:00:20.000Z | BOJ_Solved/BOJ-25191.py | CodingLeeSeungHoon/Python_Algorithm_TeamNote | 1e92986999b45aa9951e12e67b23062e410e9b36 | [
"MIT"
] | null | null | null | BOJ_Solved/BOJ-25191.py | CodingLeeSeungHoon/Python_Algorithm_TeamNote | 1e92986999b45aa9951e12e67b23062e410e9b36 | [
"MIT"
] | null | null | null | """
백준 25191번 : 치킨댄스를 추는 곰곰이를 본 임스
"""
chicken = int(input())
coke, beer = map(int, input().split())
print(min(coke//2 + beer, chicken)) | 19.571429 | 38 | 0.620438 | 22 | 137 | 3.863636 | 0.772727 | 0.188235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052174 | 0.160584 | 137 | 7 | 39 | 19.571429 | 0.686957 | 0.218978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ca141d52f810d3a9d2c0ebe06fb631d43a7fb2e4 | 112 | py | Python | test.py | dvanderrijst/DEMO-text2vec-openai | 7e91deae83065c7417ff5cf501b66d0b59f31e3f | [
"BSD-3-Clause"
] | 7 | 2022-01-27T18:51:28.000Z | 2022-01-30T13:16:41.000Z | test.py | dvanderrijst/DEMO-text2vec-openai | 7e91deae83065c7417ff5cf501b66d0b59f31e3f | [
"BSD-3-Clause"
] | null | null | null | test.py | dvanderrijst/DEMO-text2vec-openai | 7e91deae83065c7417ff5cf501b66d0b59f31e3f | [
"BSD-3-Clause"
] | 2 | 2022-02-01T00:40:32.000Z | 2022-02-15T14:49:08.000Z | import json
f = open('data/movies.json')
data = json.load(f)
for movie in data[:10]:
print(movie["Title"]) | 16 | 28 | 0.651786 | 19 | 112 | 3.842105 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0.160714 | 112 | 7 | 29 | 16 | 0.755319 | 0 | 0 | 0 | 0 | 0 | 0.185841 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ca3c99a3012f91c1e1984ddb2c615420aa7a6349 | 1,335 | py | Python | tests/test_environment.py | NGalandim/roboai-python-cli | 2e2a4c82a0294dd9a43eb85ebb452791abcba8d8 | [
"MIT"
] | 3 | 2020-10-21T11:11:28.000Z | 2022-02-11T18:00:48.000Z | tests/test_environment.py | NGalandim/roboai-python-cli | 2e2a4c82a0294dd9a43eb85ebb452791abcba8d8 | [
"MIT"
] | 35 | 2020-10-21T16:36:47.000Z | 2021-11-04T12:45:39.000Z | tests/test_environment.py | NGalandim/roboai-python-cli | 2e2a4c82a0294dd9a43eb85ebb452791abcba8d8 | [
"MIT"
] | 2 | 2020-10-13T10:48:48.000Z | 2022-02-11T16:30:35.000Z | from robo_bot_cli.main import cli
def test_activate_environment(runner):
result = runner.invoke(cli, ['environment', 'activate', 'integration'])
assert result.exit_code == 0
assert 'The connection to the integration environment was successfully established.' in result.output
def test_create_environment... | 34.230769 | 105 | 0.699625 | 163 | 1,335 | 5.625767 | 0.337423 | 0.038168 | 0.098146 | 0.130862 | 0.503817 | 0.412214 | 0.311887 | 0 | 0 | 0 | 0 | 0.004541 | 0.175281 | 1,335 | 38 | 106 | 35.131579 | 0.828338 | 0 | 0 | 0.217391 | 0 | 0 | 0.369288 | 0 | 0 | 0 | 0 | 0 | 0.434783 | 1 | 0.217391 | false | 0.043478 | 0.043478 | 0 | 0.26087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ca4a968a286d98e9ea29e011ba409e7b04696ca6 | 215 | py | Python | powernad/Object/AdKeyword/RequestObject/CreateAdKeywordObject.py | devkingsejong/python---PowerNad | c308bba4cb31126ccd318e4574071f4057f5d23f | [
"CNRI-Python"
] | 34 | 2017-03-16T14:32:49.000Z | 2022-03-18T09:23:05.000Z | powernad/Object/AdKeyword/RequestObject/CreateAdKeywordObject.py | devkingsejong/python---PowerNad | c308bba4cb31126ccd318e4574071f4057f5d23f | [
"CNRI-Python"
] | 16 | 2018-02-08T02:37:56.000Z | 2022-03-15T13:45:34.000Z | powernad/Object/AdKeyword/RequestObject/CreateAdKeywordObject.py | devkingsejong/python---PowerNad | c308bba4cb31126ccd318e4574071f4057f5d23f | [
"CNRI-Python"
] | 19 | 2017-03-28T21:48:18.000Z | 2021-11-30T05:13:43.000Z | class CreateAdKeywordObject:
def __init__(self, keyword):
self.bidAmt = None
self.customerId = None
self.keyword = keyword
self.useGroupBidAmt = None
self.userLock = None | 26.875 | 34 | 0.632558 | 21 | 215 | 6.285714 | 0.52381 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.297674 | 215 | 8 | 35 | 26.875 | 0.874172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ca538ad960a3a36a24a02dcf13e7dbfd44c4545c | 455 | py | Python | misc/permissions.py | jokedurnez/Psychosis | 1887ecb374b001de7f6aadb028c04e09e5bc4f7d | [
"MIT"
] | null | null | null | misc/permissions.py | jokedurnez/Psychosis | 1887ecb374b001de7f6aadb028c04e09e5bc4f7d | [
"MIT"
] | null | null | null | misc/permissions.py | jokedurnez/Psychosis | 1887ecb374b001de7f6aadb028c04e09e5bc4f7d | [
"MIT"
] | null | null | null | #!/usr/bin/python2
import os
for par, dirs, files in os.walk(os.environ.get("BIDSDIR")):
print(par)
if par.startswith(os.path.join(os.environ.get("BIDSDIR"),'derivatives/')):
for d in dirs:
os.chmod(par + '/' + d, 0770)
for f in files:
os.chmod(par + '/' + f, 0660)
el... | 30.333333 | 78 | 0.50989 | 66 | 455 | 3.515152 | 0.424242 | 0.12069 | 0.172414 | 0.163793 | 0.37069 | 0.37069 | 0.37069 | 0.37069 | 0 | 0 | 0 | 0.054839 | 0.318681 | 455 | 14 | 79 | 32.5 | 0.693548 | 0.037363 | 0 | 0.307692 | 0 | 0 | 0.06865 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ca62a8429ebee359658693b022e5dd70429ccf11 | 4,134 | py | Python | rules/rule.py | harsh07021999/fuzzython | 178e25f10a22ec04f81a7f1c800d79c8da0c7950 | [
"BSD-3-Clause"
] | 16 | 2015-11-04T12:02:47.000Z | 2021-12-11T08:33:45.000Z | rules/rule.py | harsh07021999/fuzzython | 178e25f10a22ec04f81a7f1c800d79c8da0c7950 | [
"BSD-3-Clause"
] | 2 | 2018-02-19T18:52:44.000Z | 2021-01-05T23:16:03.000Z | rules/rule.py | harsh07021999/fuzzython | 178e25f10a22ec04f81a7f1c800d79c8da0c7950 | [
"BSD-3-Clause"
] | 19 | 2015-04-18T07:48:58.000Z | 2021-07-22T16:57:17.000Z | from predicate import Predicate
__author__ = ''
class Rule(object):
"""
Base class for fuzzy rules
"""
__COUNT = 0
__slots__ = ('_antecedent', '_consequent', '_weight', '_number')
def __init__(self, antecedent, consequent, weight=1):
"""
Initialize a rule
... | 30.397059 | 101 | 0.583938 | 444 | 4,134 | 5.292793 | 0.245496 | 0.041702 | 0.032766 | 0.030638 | 0.324255 | 0.31234 | 0.230638 | 0.117447 | 0.117447 | 0.117447 | 0 | 0.003965 | 0.328979 | 4,134 | 135 | 102 | 30.622222 | 0.843187 | 0.217707 | 0 | 0.151515 | 0 | 0 | 0.030747 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.212121 | false | 0.015152 | 0.075758 | 0.015152 | 0.575758 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
ca65a695d9b8adb268c3b545751c531247d633a2 | 5,216 | py | Python | visual_dynamics/utils/tests/test_generator.py | alexlee-gk/visual_dynamics | 90227bb0d0aebb1989117b5c25ca311655ca7cc7 | [
"MIT"
] | 30 | 2017-04-05T12:55:09.000Z | 2022-03-14T14:31:31.000Z | visual_dynamics/utils/tests/test_generator.py | alexlee-gk/visual_dynamics | 90227bb0d0aebb1989117b5c25ca311655ca7cc7 | [
"MIT"
] | 1 | 2017-06-19T02:39:03.000Z | 2017-06-19T02:39:03.000Z | visual_dynamics/utils/tests/test_generator.py | alexlee-gk/visual_dynamics | 90227bb0d0aebb1989117b5c25ca311655ca7cc7 | [
"MIT"
] | 13 | 2017-04-05T12:55:09.000Z | 2021-03-16T01:59:12.000Z | import tempfile
import numpy as np
from nose2 import tools
from visual_dynamics.utils import DataContainer, DataGenerator
container_fnames = [tempfile.mktemp() for _ in range(4)]
num_steps_per_traj = [100] * 4 + [50] * 12 + [100] + [150] * 6
num_trajs_per_container = [4, 12, 1, 6]
num_steps_per_container = [400, 600... | 43.466667 | 108 | 0.542753 | 661 | 5,216 | 3.962179 | 0.128593 | 0.016037 | 0.013746 | 0.065292 | 0.721268 | 0.712486 | 0.670867 | 0.628866 | 0.628866 | 0.628866 | 0 | 0.047916 | 0.323811 | 5,216 | 119 | 109 | 43.831933 | 0.694641 | 0.045821 | 0 | 0.625 | 0 | 0 | 0.025151 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.03125 | false | 0 | 0.041667 | 0 | 0.072917 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.