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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b71a4e5940b2b1638b94055bb30d3931ab164680 | 4,964 | py | Python | dfa/server/services/loadbalance/drivers/f5/F5DeviceUT.py | CiscoSystems/fabric_enabler | d5318624dd15692197a7212ecd4b0ceea42dc73e | [
"Apache-2.0"
] | 1 | 2015-03-05T02:48:15.000Z | 2015-03-05T02:48:15.000Z | dfa/server/services/loadbalance/drivers/f5/F5DeviceUT.py | CiscoSystems/fabric_enabler | d5318624dd15692197a7212ecd4b0ceea42dc73e | [
"Apache-2.0"
] | 1 | 2016-05-25T22:13:43.000Z | 2016-07-21T20:49:48.000Z | dfa/server/services/loadbalance/drivers/f5/F5DeviceUT.py | CiscoSystems/fabric_enabler | d5318624dd15692197a7212ecd4b0ceea42dc73e | [
"Apache-2.0"
] | 2 | 2017-05-02T21:32:46.000Z | 2018-08-22T16:52:40.000Z | import F5Device as F5
import json
import time
import sys
def createFlow(f5Dev):
context = "Rajesh_Partition"
gateway_ip = ["10.1.1.1", "10.1.1.2"]
mask = "255.255.255.0"
vlanid = 502
selfIpAddress = f5Dev.allocateSelfIpAddress(gateway_ip[0], mask)
print("Self IP Address ... | 62.835443 | 628 | 0.67506 | 594 | 4,964 | 5.427609 | 0.249158 | 0.060484 | 0.052109 | 0.078474 | 0.620658 | 0.597705 | 0.447891 | 0.436104 | 0.436104 | 0.435794 | 0 | 0.121395 | 0.133763 | 4,964 | 78 | 629 | 63.641026 | 0.628372 | 0.030822 | 0 | 0.111111 | 0 | 0.111111 | 0.661112 | 0.250156 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.074074 | 0 | 0.185185 | 0.074074 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b71eed15bac82753eae2aba68352f77ed3fd94fa | 7,510 | py | Python | demo_data_generation.py | lueckem/ABMs | 19f5cade8bcf7b8efd3c38cd76a176e47fda100d | [
"MIT"
] | null | null | null | demo_data_generation.py | lueckem/ABMs | 19f5cade8bcf7b8efd3c38cd76a176e47fda100d | [
"MIT"
] | null | null | null | demo_data_generation.py | lueckem/ABMs | 19f5cade8bcf7b8efd3c38cd76a176e47fda100d | [
"MIT"
] | 1 | 2021-02-03T11:03:05.000Z | 2021-02-03T11:03:05.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Dec 15 10:00:19 2020
Generate measurements.
@author: Jan-Hendrik Niemann
"""
import os
import time as tm
import numpy as np
from joblib import Parallel, delayed
import multiprocessing
from VoterModel import markov_jump_process
from auxiliary.auxilia... | 34.449541 | 165 | 0.543142 | 854 | 7,510 | 4.567916 | 0.248244 | 0.053832 | 0.021533 | 0.010254 | 0.353243 | 0.288388 | 0.251474 | 0.173545 | 0.157139 | 0.122276 | 0 | 0.014351 | 0.359787 | 7,510 | 217 | 166 | 34.608295 | 0.797005 | 0.252597 | 0 | 0.14433 | 1 | 0.010309 | 0.123114 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020619 | false | 0 | 0.072165 | 0 | 0.113402 | 0.041237 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
b721263ffe10b28a2737d372465e4befa3714c3a | 1,085 | py | Python | pokedex/trainers/migrations/0003_pokemon.py | CookieComputing/db-pokedex-backend | 827fc1eb88ee1c9248196320c9f2b672250dfd17 | [
"MIT"
] | 1 | 2021-12-03T02:00:41.000Z | 2021-12-03T02:00:41.000Z | pokedex/trainers/migrations/0003_pokemon.py | CookieComputing/db-pokedex-backend | 827fc1eb88ee1c9248196320c9f2b672250dfd17 | [
"MIT"
] | 14 | 2021-12-02T18:11:12.000Z | 2021-12-13T02:15:51.000Z | pokedex/trainers/migrations/0003_pokemon.py | CookieComputing/db-pokedex-backend | 827fc1eb88ee1c9248196320c9f2b672250dfd17 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2021-12-04 16:44
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('pokemon', '0008_auto_20211204_1644'),
('trainers', '0002_teams'),
]
operations = [
migrations.Creat... | 37.413793 | 184 | 0.587097 | 111 | 1,085 | 5.630631 | 0.54955 | 0.0512 | 0.0672 | 0.1056 | 0.176 | 0.176 | 0.176 | 0.176 | 0.176 | 0.176 | 0 | 0.047912 | 0.24977 | 1,085 | 28 | 185 | 38.75 | 0.719902 | 0.041475 | 0 | 0 | 1 | 0 | 0.202312 | 0.050096 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.227273 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
b725510ae99de2fc94d87a78cac3590daf05dd9d | 718 | py | Python | intent/tests/instance_construction_tests.py | rgeorgi/intent | 9920798c126f6d354029f7bb0a345e7cdb649f3a | [
"MIT"
] | 3 | 2016-08-05T01:11:57.000Z | 2017-08-26T15:35:51.000Z | intent/tests/instance_construction_tests.py | rgeorgi/intent | 9920798c126f6d354029f7bb0a345e7cdb649f3a | [
"MIT"
] | 2 | 2016-03-01T22:41:24.000Z | 2016-09-14T18:39:25.000Z | intent/tests/instance_construction_tests.py | rgeorgi/intent | 9920798c126f6d354029f7bb0a345e7cdb649f3a | [
"MIT"
] | null | null | null | from unittest import TestCase
from intent.igt.rgxigt import RGIgt
class ConstructIGTTests(TestCase):
def setUp(self):
self.lines = [{'text':'This is a test','tag':'L'},
{'text':'blah blah blah blah','tag':'G'}]
def test_add_raw_lines(self):
inst = RGIgt(id='i1')
... | 28.72 | 63 | 0.616992 | 101 | 718 | 4.207921 | 0.336634 | 0.127059 | 0.070588 | 0.127059 | 0.581176 | 0.522353 | 0.522353 | 0.44 | 0.371765 | 0.371765 | 0 | 0.010949 | 0.236769 | 718 | 25 | 64 | 28.72 | 0.764599 | 0 | 0 | 0.388889 | 0 | 0 | 0.076495 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.388889 | 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 | 0 | 0 | 0 | 1 |
b728616945b25f5842a506bede126c6a54cfb50a | 1,038 | py | Python | examples/timesheet/controller/StartupCommand.py | allbuttonspressed/pyjs | c726fdead530eb63ee4763ae15daaa58d84cd58f | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2018-09-19T09:14:16.000Z | 2018-09-19T09:14:16.000Z | examples/timesheet/controller/StartupCommand.py | emk/pyjamas | d7633919d1ec9cd4a36675e356c7e5de71ac2a67 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | examples/timesheet/controller/StartupCommand.py | emk/pyjamas | d7633919d1ec9cd4a36675e356c7e5de71ac2a67 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2019-11-18T14:17:59.000Z | 2019-11-18T14:17:59.000Z |
# vim: set ts=4 sw=4 expandtab:
from puremvc.patterns.command import SimpleCommand
from model.TimeProxy import TimeProxy
from view.DialogMediator import DialogMediator
from view.MenuMediator import MenuMediator
from view.DatePickerMediator import DatePickerMediator
from view.TimeGridMediator import TimeGridMediator... | 38.444444 | 78 | 0.789017 | 106 | 1,038 | 7.716981 | 0.5 | 0.07335 | 0.158924 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002255 | 0.145472 | 1,038 | 26 | 79 | 39.923077 | 0.919955 | 0.159923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.4375 | 0 | 0.5625 | 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 | 0 | 0 | 0 | 1 |
b728a106bf3dc358f24ce0fac17bd8762b0dd0d2 | 379 | py | Python | School/#TO@(3).py | Bamgm14/My-Random-Work | b9678a3a84dd8ff00efd638890cff76eb6967c1b | [
"MIT"
] | null | null | null | School/#TO@(3).py | Bamgm14/My-Random-Work | b9678a3a84dd8ff00efd638890cff76eb6967c1b | [
"MIT"
] | null | null | null | School/#TO@(3).py | Bamgm14/My-Random-Work | b9678a3a84dd8ff00efd638890cff76eb6967c1b | [
"MIT"
] | null | null | null | a="#"
b="@"
c=1
d=int(input("Enter Number:"))
if d%2==0:
f=d/2
else:
f=d//2+1
h=f-3
e=1
g=2
while c<=d:
if c<=2 or c==f:
print (a*c)
c+=1
elif c>2 and c<f:
print (a+(b*e)+a)
c+=1
e+=1
elif c>f and c<d-1:
print (a+(b*h)+a)
c+=1
h=h-1
... | 13.068966 | 29 | 0.361478 | 83 | 379 | 1.650602 | 0.277108 | 0.072993 | 0.043796 | 0.116788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086758 | 0.422164 | 379 | 28 | 30 | 13.535714 | 0.538813 | 0 | 0 | 0.222222 | 0 | 0 | 0.039578 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.148148 | 0 | 0 | 1 | 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 | 0 | 0 | 0 | 0 | 1 |
b72ed932157f6f5fd6a97b0534dd52ddb7dd5672 | 2,821 | py | Python | utils.py | qiaoqz/GCP-Automation | 2d20441585b7e0bd8485ca582d6edef14822e940 | [
"MIT"
] | null | null | null | utils.py | qiaoqz/GCP-Automation | 2d20441585b7e0bd8485ca582d6edef14822e940 | [
"MIT"
] | null | null | null | utils.py | qiaoqz/GCP-Automation | 2d20441585b7e0bd8485ca582d6edef14822e940 | [
"MIT"
] | null | null | null | from google.cloud import bigquery
from google.cloud import storage
import datetime
import time
class GoogleBigQueryException(Exception):
pass
class GoogleCloudService:
def __init__(self,today):
self.today = today
def export_BQ_TO_GCS(self,table_id, file_name_prefix,bucket_name
... | 39.732394 | 99 | 0.610422 | 336 | 2,821 | 4.869048 | 0.375 | 0.042787 | 0.046455 | 0.025672 | 0.129584 | 0.129584 | 0.089242 | 0.089242 | 0.089242 | 0.089242 | 0 | 0.004532 | 0.295994 | 2,821 | 71 | 100 | 39.732394 | 0.819235 | 0.120879 | 0 | 0.076923 | 0 | 0 | 0.131726 | 0.015067 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.019231 | 0.076923 | null | null | 0.134615 | 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 | 0 | 0 | 1 |
b7320c86c7929018b8856a80654996d768f84632 | 3,409 | py | Python | codigo/dropdown.py | nbilbo/tkinter | 1f9f12d1b08be3871244a40ee717b0af47b3e289 | [
"MIT"
] | null | null | null | codigo/dropdown.py | nbilbo/tkinter | 1f9f12d1b08be3871244a40ee717b0af47b3e289 | [
"MIT"
] | null | null | null | codigo/dropdown.py | nbilbo/tkinter | 1f9f12d1b08be3871244a40ee717b0af47b3e289 | [
"MIT"
] | null | null | null | # coding: utf-8
'''
Um menu onde é possivel definir as opções e obter a opção atual.
Tabém é possível atualizar os valores sempre que quiser.
'''
from tkinter import OptionMenu, Frame, StringVar
# model
class Model(object):
def __init__(self, options):
self._options = options
self._current = options[0]
def o... | 18.527174 | 64 | 0.672925 | 417 | 3,409 | 5.328537 | 0.294964 | 0.064356 | 0.040504 | 0.015302 | 0.189019 | 0.09721 | 0.041404 | 0 | 0 | 0 | 0 | 0.005727 | 0.180405 | 3,409 | 183 | 65 | 18.628415 | 0.789549 | 0.257554 | 0 | 0.162162 | 0 | 0 | 0.043312 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.256757 | false | 0 | 0.027027 | 0.040541 | 0.432432 | 0.027027 | 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 | 0 | 0 | 0 | 1 |
b732db3ec23cbbdd53e151e4b5d68537bea879db | 1,772 | py | Python | cloud_utils/config/logging_config.py | hyroai/cloud-utils | b0fc5574f4c7c5caa6e6452e29225f6fe3d2a570 | [
"MIT"
] | 1 | 2020-05-12T19:50:04.000Z | 2020-05-12T19:50:04.000Z | cloud_utils/config/logging_config.py | hyroai/cloud-utils | b0fc5574f4c7c5caa6e6452e29225f6fe3d2a570 | [
"MIT"
] | 11 | 2020-05-23T12:18:13.000Z | 2022-01-06T21:00:56.000Z | cloud_utils/config/logging_config.py | hyroai/cloud-utils | b0fc5574f4c7c5caa6e6452e29225f6fe3d2a570 | [
"MIT"
] | 1 | 2020-05-12T19:14:11.000Z | 2020-05-12T19:14:11.000Z | import contextlib
import contextvars
import logging
import os
import sys
from typing import Iterator
_logging_prefix: contextvars.ContextVar[str] = contextvars.ContextVar(
"logging_prefix",
default="",
)
@contextlib.contextmanager
def logging_prefix(prefix: str) -> Iterator[str]:
token = _logging_prefix.... | 27.261538 | 121 | 0.68623 | 212 | 1,772 | 5.575472 | 0.476415 | 0.06599 | 0.028765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002107 | 0.196388 | 1,772 | 64 | 122 | 27.6875 | 0.827949 | 0.0886 | 0 | 0 | 0 | 0.021739 | 0.095534 | 0.029777 | 0 | 0 | 0 | 0.015625 | 0 | 1 | 0.108696 | false | 0 | 0.130435 | 0 | 0.304348 | 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 | 0 | 0 | 0 | 1 |
b7330361c36444ac332ae7d0256d3ba92fc73722 | 3,197 | py | Python | ethcc/contract_interface.py | origliante/ethcc | d5ad8c168525166f654f3a86de45292c7c338842 | [
"MIT"
] | null | null | null | ethcc/contract_interface.py | origliante/ethcc | d5ad8c168525166f654f3a86de45292c7c338842 | [
"MIT"
] | null | null | null | ethcc/contract_interface.py | origliante/ethcc | d5ad8c168525166f654f3a86de45292c7c338842 | [
"MIT"
] | null | null | null | import json
from web3 import Web3, HTTPProvider
from web3.gas_strategies.rpc import rpc_gas_price_strategy
class ContractInterface(object):
def __init__(self, config):
"""
sets up w3 and the contract
"""
self.config = config
self.provider = HTTPProvider(self.config.PROVIDE... | 36.329545 | 96 | 0.604942 | 344 | 3,197 | 5.488372 | 0.334302 | 0.041314 | 0.047669 | 0.020127 | 0.067797 | 0.067797 | 0.028602 | 0 | 0 | 0 | 0 | 0.008989 | 0.304035 | 3,197 | 87 | 97 | 36.747126 | 0.839551 | 0.127932 | 0 | 0.20339 | 0 | 0 | 0.02071 | 0 | 0 | 0 | 0 | 0.022989 | 0 | 1 | 0.084746 | false | 0.016949 | 0.050847 | 0 | 0.254237 | 0.084746 | 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 | 0 | 0 | 0 | 1 |
b7381b2b864259150bd21a56e92d852280a9fcc7 | 1,537 | py | Python | annotation_pipeline/mturk_backend/hit_results.py | justeuer/Break | e7106929b9b7cca069e5d33c894d0eec10ef538f | [
"MIT"
] | 38 | 2020-02-06T04:01:45.000Z | 2022-03-17T13:42:45.000Z | annotation_pipeline/mturk_backend/hit_results.py | justeuer/Break | e7106929b9b7cca069e5d33c894d0eec10ef538f | [
"MIT"
] | 23 | 2020-02-21T13:38:20.000Z | 2022-03-12T00:16:55.000Z | annotation_pipeline/mturk_backend/hit_results.py | justeuer/Break | e7106929b9b7cca069e5d33c894d0eec10ef538f | [
"MIT"
] | 12 | 2020-03-18T17:26:52.000Z | 2022-03-21T00:43:42.000Z | """HIT results data structure"""
import json
class HITResults:
def __init__(self, hit_id, assignment_id, worker_id, submit_time):
self.hit_id = hit_id
self.assignment_id = assignment_id
self.worker_id = worker_id
# submit_time is a datetime object which we convert to a string
... | 33.413043 | 110 | 0.664281 | 186 | 1,537 | 5.123656 | 0.322581 | 0.083945 | 0.088143 | 0.100735 | 0.302204 | 0.281217 | 0.281217 | 0.281217 | 0.281217 | 0.27702 | 0 | 0 | 0.251789 | 1,537 | 46 | 111 | 33.413043 | 0.828696 | 0.057905 | 0 | 0.064516 | 0 | 0 | 0.018018 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0 | 0.032258 | 0.032258 | 0.387097 | 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 | 0 | 0 | 0 | 1 |
b73ae4c471b24be74d5f359a900a2469645b01a4 | 863 | py | Python | user_intent_prediction/model_cnn_base/Train.py | wanlingcai1997/umap_2020_code | 1d875523b9944583fab87e581b234af2c92ef2b0 | [
"MIT"
] | 2 | 2022-03-04T06:00:17.000Z | 2022-03-13T13:28:21.000Z | user_intent_prediction/model_cnn_base/Train.py | wanlingcai1997/umap_2020_code | 1d875523b9944583fab87e581b234af2c92ef2b0 | [
"MIT"
] | null | null | null | user_intent_prediction/model_cnn_base/Train.py | wanlingcai1997/umap_2020_code | 1d875523b9944583fab87e581b234af2c92ef2b0 | [
"MIT"
] | null | null | null | # Train.py
import numpy as np
import pandas as pandas
from Data import Data
from BuildModel import BuildModel
import copy
import sys
from keras.callbacks import EarlyStopping
class Train():
@staticmethod
def train():
# adam = optimizers.Adam(lr=0.001, beta_1=0.9, beta_2=0.999, epsilon=No... | 23.972222 | 108 | 0.6292 | 111 | 863 | 4.756757 | 0.576577 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036335 | 0.266512 | 863 | 36 | 109 | 23.972222 | 0.797788 | 0.123986 | 0 | 0 | 0 | 0 | 0.066313 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.35 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b74055470fc43950259a7f247c5dd992af7d5064 | 678 | py | Python | UI/multiLineView.py | typemytype/RoboFontExamples | cc5668de3d27ce996cff5eadb32d0b905c2aff65 | [
"MIT"
] | 12 | 2015-01-03T12:34:18.000Z | 2022-01-24T13:11:35.000Z | UI/multiLineView.py | typemytype/RoboFontExamples | cc5668de3d27ce996cff5eadb32d0b905c2aff65 | [
"MIT"
] | null | null | null | UI/multiLineView.py | typemytype/RoboFontExamples | cc5668de3d27ce996cff5eadb32d0b905c2aff65 | [
"MIT"
] | 3 | 2015-01-02T13:38:09.000Z | 2016-05-06T21:36:01.000Z | from mojo.UI import MultiLineView
from vanilla import *
class SampleMultiLineView:
def __init__(self, font):
self.w = Window((600, 400), minSize=(300, 300))
self.w.lineView = MultiLineView((0, 0, -0, -0),
pointSize=30,
selectionCallback=sel... | 26.076923 | 77 | 0.612094 | 67 | 678 | 6.134328 | 0.552239 | 0.060827 | 0.094891 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.283186 | 678 | 26 | 78 | 26.076923 | 0.808642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 0.058824 | 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 | 0 | 0 | 1 |
b7413b466e92fb54b99c35f168d580743549d352 | 1,531 | py | Python | flexbe_states/src/flexbe_states/my_decision_state.py | amsks/flexbe_behavior_engine | 9a5d4395de74f29ca1c5878e4a1474f45904af2b | [
"BSD-3-Clause"
] | null | null | null | flexbe_states/src/flexbe_states/my_decision_state.py | amsks/flexbe_behavior_engine | 9a5d4395de74f29ca1c5878e4a1474f45904af2b | [
"BSD-3-Clause"
] | null | null | null | flexbe_states/src/flexbe_states/my_decision_state.py | amsks/flexbe_behavior_engine | 9a5d4395de74f29ca1c5878e4a1474f45904af2b | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import rospy
from flexbe_core import EventState, Logger
from rospy.exceptions import ROSInterruptException
'''
Created on 11.06.2013
@author: Philipp Schillinger
'''
class MyDecisionState(EventState):
'''
Evaluates a condition function in order to return one of the specified outcomes.
This ... | 25.949153 | 101 | 0.729589 | 200 | 1,531 | 5.465 | 0.53 | 0.036597 | 0.014639 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008071 | 0.190725 | 1,531 | 58 | 102 | 26.396552 | 0.874092 | 0.421946 | 0 | 0.083333 | 0 | 0 | 0.070684 | 0 | 0 | 0 | 0 | 0.017241 | 0 | 1 | 0.125 | false | 0.041667 | 0.125 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 1 |
b7430398d56e16a8cb306d3b2d189d2fbb22a0d2 | 379 | py | Python | delivery_files/remove_label.py | karianjahi/fahrer_minijob | 020a9de27b77f8e0bcdec198a37cfb7f1d4736ed | [
"MIT"
] | null | null | null | delivery_files/remove_label.py | karianjahi/fahrer_minijob | 020a9de27b77f8e0bcdec198a37cfb7f1d4736ed | [
"MIT"
] | null | null | null | delivery_files/remove_label.py | karianjahi/fahrer_minijob | 020a9de27b77f8e0bcdec198a37cfb7f1d4736ed | [
"MIT"
] | null | null | null | import glob
import os
import re
all_files = glob.glob("*pdf")
for file in all_files:
if "label" in file:
new_file = re.sub("label", "delivery", file)
os.system(f'mv {file} {new_file}')
if "Ausfahrliste.pdf" in file:
new_file = re.sub("Ausfahrliste.pdf", "ausfahrliste_delivery_file.pdf",... | 27.071429 | 85 | 0.62533 | 57 | 379 | 4.017544 | 0.333333 | 0.122271 | 0.19214 | 0.113537 | 0.384279 | 0.384279 | 0.227074 | 0.227074 | 0 | 0 | 0 | 0 | 0.229551 | 379 | 13 | 86 | 29.153846 | 0.784247 | 0 | 0 | 0.181818 | 0 | 0 | 0.327177 | 0.079156 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.272727 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b7432f24df69cd89a164e1604229ee9a792ec5a8 | 2,510 | py | Python | tests/python/pygmod/_luastack.py | javabird25/gpython | f58df9c0c626ccd3f1dbd8a2d762ae62b9f22caf | [
"MIT"
] | 26 | 2018-11-27T16:40:30.000Z | 2022-01-27T12:37:34.000Z | tests/python/pygmod/_luastack.py | javabird25/gpython | f58df9c0c626ccd3f1dbd8a2d762ae62b9f22caf | [
"MIT"
] | 9 | 2019-05-05T22:00:00.000Z | 2021-01-18T13:43:21.000Z | tests/python/pygmod/_luastack.py | javabird25/gpython | f58df9c0c626ccd3f1dbd8a2d762ae62b9f22caf | [
"MIT"
] | 4 | 2019-05-05T18:10:35.000Z | 2022-01-18T14:42:31.000Z | """
Mock module for _luastack C++ extension.
Behaves like true _luastack module, but operates an imaginary Lua stack
represented by a list.
"""
class StackPad:
"""Stub for padding the stack to make indexing start at 1."""
def __repr__(self):
return "<StackPad>"
stack = [StackPad()] # Imaginary Lua... | 16.959459 | 71 | 0.62988 | 337 | 2,510 | 4.563798 | 0.290801 | 0.052666 | 0.093628 | 0.052016 | 0.331599 | 0.302991 | 0.302991 | 0.126138 | 0.075423 | 0.075423 | 0 | 0.006796 | 0.237849 | 2,510 | 147 | 72 | 17.07483 | 0.797177 | 0.135857 | 0 | 0.305882 | 0 | 0 | 0.099674 | 0 | 0 | 0 | 0 | 0 | 0.070588 | 1 | 0.223529 | false | 0 | 0 | 0.035294 | 0.305882 | 0.152941 | 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 | 0 | 0 | 0 | 1 |
3f74fcc2b5522b8106e30f81f0447e6f049868ee | 542 | py | Python | draugr/torch_utilities/writers/tensorboard/__init__.py | cnHeider/draugr | b95e0bb1fa5efa581bfb28ff604f296ed2e6b7d6 | [
"Apache-2.0"
] | 3 | 2019-09-27T08:04:59.000Z | 2020-12-02T06:14:45.000Z | draugr/torch_utilities/writers/tensorboard/__init__.py | cnHeider/draugr | b95e0bb1fa5efa581bfb28ff604f296ed2e6b7d6 | [
"Apache-2.0"
] | 64 | 2019-09-27T08:03:42.000Z | 2022-03-28T15:07:30.000Z | draugr/torch_utilities/writers/tensorboard/__init__.py | cnHeider/draugr | b95e0bb1fa5efa581bfb28ff604f296ed2e6b7d6 | [
"Apache-2.0"
] | 1 | 2020-10-01T00:18:57.000Z | 2020-10-01T00:18:57.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = "Christian Heider Nielsen"
__doc__ = r"""
"""
from pathlib import Path
with open(Path(__file__).parent / "README.md", "r") as this_init_file:
__doc__ += this_init_file.read()
import warnings
warnings.filterwarnings(
"ignore", category=FutureWarnin... | 23.565217 | 70 | 0.738007 | 70 | 542 | 5.371429 | 0.757143 | 0.042553 | 0.06383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004348 | 0.151292 | 542 | 22 | 71 | 24.636364 | 0.813043 | 0.345018 | 0 | 0 | 0 | 0 | 0.117143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 1 |
3f76a241e3c1b53d3ab6786c200d4ea1127972b9 | 1,871 | py | Python | run.py | helloparth/Facial-Recognition-App | a7ad760ce61208e80b30274e7276e17820de9353 | [
"Apache-2.0"
] | null | null | null | run.py | helloparth/Facial-Recognition-App | a7ad760ce61208e80b30274e7276e17820de9353 | [
"Apache-2.0"
] | null | null | null | run.py | helloparth/Facial-Recognition-App | a7ad760ce61208e80b30274e7276e17820de9353 | [
"Apache-2.0"
] | null | null | null | import cv2
import sys
import scipy.ndimage as ndimage
cascPath = sys.argv[1]
faceCascade = cv2.CascadeClassifier(cascPath)
user = ndimage.imread('/Users/ppatel/Projects/FaceRecognition/parth.jpg')
def normalize(arr):
rng = arr.max()-arr.min()
amin = arr.min()
return (arr-amin)*255/rng
def compare_imag... | 21.261364 | 82 | 0.656334 | 297 | 1,871 | 4.084175 | 0.410774 | 0.006595 | 0.049464 | 0.049464 | 0.133553 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088559 | 0.173169 | 1,871 | 87 | 83 | 21.505747 | 0.69554 | 0.052913 | 0 | 0.035714 | 0 | 0 | 0.080837 | 0.027134 | 0 | 0 | 0.002261 | 0 | 0 | 0 | null | null | 0 | 0.053571 | null | null | 0.053571 | 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 | 0 | 0 | 1 |
3f7b2a8fc128fb86c5a41155c4654fd4c7fe3e9a | 1,495 | py | Python | bin/instance.py | tjspitfire/stock-engine | e5f9e45a9dd6c15e44226766a8589e997d5a8475 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | bin/instance.py | tjspitfire/stock-engine | e5f9e45a9dd6c15e44226766a8589e997d5a8475 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | bin/instance.py | tjspitfire/stock-engine | e5f9e45a9dd6c15e44226766a8589e997d5a8475 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # Copyright 2018, Todd L. Jarolimek II
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | 31.808511 | 74 | 0.69699 | 219 | 1,495 | 4.730594 | 0.502283 | 0.057915 | 0.046332 | 0.030888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009844 | 0.184615 | 1,495 | 47 | 75 | 31.808511 | 0.840033 | 0 | 0 | 0 | 0 | 0 | 0.011628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.190476 | null | null | 0.142857 | 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 | 0 | 0 | 1 |
3f7dc36fd93a142e320d46e3fdeedf73ce599d78 | 1,367 | py | Python | dmsbatch/cli.py | dwr-psandhu/azure_dms_batch | 5a2d847bfabeea61fbb49389291cef041e14093a | [
"MIT"
] | 1 | 2021-12-21T23:19:59.000Z | 2021-12-21T23:19:59.000Z | dmsbatch/cli.py | dwr-psandhu/azure_dms_batch | 5a2d847bfabeea61fbb49389291cef041e14093a | [
"MIT"
] | null | null | null | dmsbatch/cli.py | dwr-psandhu/azure_dms_batch | 5a2d847bfabeea61fbb49389291cef041e14093a | [
"MIT"
] | 1 | 2021-12-17T21:30:48.000Z | 2021-12-17T21:30:48.000Z | from argparse import ArgumentParser
import dmsbatch
from dmsbatch import __version__
from dmsbatch import commands
def config_generate_cmd(args):
if not args.file:
print('Specify config file!')
return
print('Generating blank config: ', args.file)
commands.generate_blank_config(args.file)
... | 30.377778 | 80 | 0.67447 | 186 | 1,367 | 4.77957 | 0.521505 | 0.026997 | 0.040495 | 0.042745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005587 | 0.214338 | 1,367 | 44 | 81 | 31.068182 | 0.82216 | 0.172641 | 0 | 0.0625 | 1 | 0 | 0.219056 | 0.021371 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.15625 | 0 | 0.28125 | 0.09375 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
3f80aaab4ce7bcb23c55c5eb9c6c6a07e5322924 | 3,208 | py | Python | ETCetera/Abstractions/NonlinearETC/utils/cones_lib.py | ggleizer/ETCetera | 8fa9f3c82fd1944507a0c02d52a236244821f3ca | [
"MIT"
] | null | null | null | ETCetera/Abstractions/NonlinearETC/utils/cones_lib.py | ggleizer/ETCetera | 8fa9f3c82fd1944507a0c02d52a236244821f3ca | [
"MIT"
] | null | null | null | ETCetera/Abstractions/NonlinearETC/utils/cones_lib.py | ggleizer/ETCetera | 8fa9f3c82fd1944507a0c02d52a236244821f3ca | [
"MIT"
] | 1 | 2022-03-11T11:15:20.000Z | 2022-03-11T11:15:20.000Z | import cdd
import numpy as np
class Cone_on_Plane(object):
"""Attributes:
Quadratic_Form (list of lists, 2x2 matrix): The quadratic form of the cone.
Linear_Form (list, 2x1 vector): The linear form of the matrix.
"""
def __init__(self, a, b, plane_flag):
self.Quadratic_Form = [[-2*n... | 38.190476 | 108 | 0.567955 | 482 | 3,208 | 3.709544 | 0.165975 | 0.050895 | 0.055928 | 0.03915 | 0.71085 | 0.66387 | 0.66387 | 0.66387 | 0.629195 | 0.600112 | 0 | 0.019535 | 0.25 | 3,208 | 83 | 109 | 38.650602 | 0.723608 | 0.396197 | 0 | 0.583333 | 0 | 0 | 0.005501 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.041667 | 0 | 0.208333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 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 | 1 |
3f855a9dd63b8a73146df685b29f494e6c3bdad5 | 280 | py | Python | leetcode/fibonacci.py | makhanov/lagorithms | 1b5cc73860e745ebd4da7db85af16f50d4d7b30b | [
"MIT"
] | null | null | null | leetcode/fibonacci.py | makhanov/lagorithms | 1b5cc73860e745ebd4da7db85af16f50d4d7b30b | [
"MIT"
] | 2 | 2020-10-06T06:16:06.000Z | 2020-10-06T06:48:47.000Z | leetcode/fibonacci.py | makhanov/lagorithms | 1b5cc73860e745ebd4da7db85af16f50d4d7b30b | [
"MIT"
] | 1 | 2020-10-06T05:46:25.000Z | 2020-10-06T05:46:25.000Z | #recursive solution
def fib(n):
if (n<=2):
return 1
return fib(n-1)+fib(n-2)
#print(fib(6)) #should be 8
#dp solution
def fib_dp(n):
a = [0]*n
a[0] = a[1] = 1
for i in range(2, n):
a[i] = a[i-1] + a[i-2]
#print(a)
return a
fib_dp(6) | 15.555556 | 31 | 0.492857 | 58 | 280 | 2.344828 | 0.362069 | 0.088235 | 0.205882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072539 | 0.310714 | 280 | 18 | 32 | 15.555556 | 0.632124 | 0.221429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0 | 0.454545 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f8aecf9f4dadfe3892c97e16b244fcdf47a736c | 1,144 | py | Python | QuickWall/feh.py | deepjyoti30/QuickWall | ebbce6be6c1f92ccca1a77f5f66444d724cd2d75 | [
"MIT"
] | 191 | 2019-08-12T18:47:04.000Z | 2022-03-21T20:45:41.000Z | QuickWall/feh.py | deepjyoti30/QuickWall | ebbce6be6c1f92ccca1a77f5f66444d724cd2d75 | [
"MIT"
] | 20 | 2019-08-13T17:46:49.000Z | 2022-02-16T17:33:21.000Z | QuickWall/feh.py | deepjyoti30/QuickWall | ebbce6be6c1f92ccca1a77f5f66444d724cd2d75 | [
"MIT"
] | 11 | 2019-08-22T13:29:21.000Z | 2022-02-24T14:54:17.000Z | """Functions related to usign feh as wallpaper setter."""
import subprocess
from pathlib import Path
from simber import Logger
# Declare the logger
logger = Logger("feh")
class feh:
def __init__(self):
self.feh_config_path = Path('~/.fehbg').expanduser()
self.current = self._find_current()
... | 25.422222 | 83 | 0.591783 | 132 | 1,144 | 4.984848 | 0.386364 | 0.048632 | 0.059271 | 0.077508 | 0.386018 | 0.319149 | 0.237082 | 0.094225 | 0 | 0 | 0 | 0.002375 | 0.263986 | 1,144 | 44 | 84 | 26 | 0.779097 | 0.162587 | 0 | 0 | 0 | 0 | 0.055814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.15 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f8d2b454c42990d74168a1a4bf7bef52054d953 | 725 | py | Python | setup.py | orionw/configtune | c2afd0cacf0c1e14e04a981592d5045593b5c2f5 | [
"MIT"
] | 1 | 2019-08-09T23:35:46.000Z | 2019-08-09T23:35:46.000Z | setup.py | orionw/tuningDEAP | c2afd0cacf0c1e14e04a981592d5045593b5c2f5 | [
"MIT"
] | 20 | 2019-08-14T21:52:55.000Z | 2019-08-29T20:57:18.000Z | setup.py | orionw/tuningDEAP | c2afd0cacf0c1e14e04a981592d5045593b5c2f5 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name="configtune",
version="0.0.8",
description="A package to tune parameters with config files: designed with machine learning hyperparameter tuning in mind.",
long_description=None,
url= "https://github.com/orionw/configtune",
author="Orion Weller and Brandon ... | 34.52381 | 125 | 0.750345 | 92 | 725 | 5.836957 | 0.75 | 0.044693 | 0.052142 | 0.063315 | 0.122905 | 0.122905 | 0 | 0 | 0 | 0 | 0 | 0.015432 | 0.106207 | 725 | 20 | 126 | 36.25 | 0.813272 | 0 | 0 | 0 | 0 | 0.052632 | 0.565517 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.052632 | 0 | 0.052632 | 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 | 0 | 0 | 0 | 1 |
3f8de5e7a6c9544f2fa149b63ad8ffc9e6905b2e | 1,444 | py | Python | src/snakefiles/reports.py | jlanga/smsk_popoolation | 19861792b7638af4bb4c52b93ccf0653b2b6ac1d | [
"MIT"
] | 2 | 2020-06-17T09:03:14.000Z | 2021-12-06T11:09:01.000Z | src/snakefiles/reports.py | jlanga/smsk_popoolation | 19861792b7638af4bb4c52b93ccf0653b2b6ac1d | [
"MIT"
] | 13 | 2016-12-19T08:05:15.000Z | 2022-02-08T08:33:47.000Z | src/snakefiles/reports.py | jlanga/smsk_popoolation | 19861792b7638af4bb4c52b93ccf0653b2b6ac1d | [
"MIT"
] | 1 | 2021-02-10T14:02:40.000Z | 2021-02-10T14:02:40.000Z | rule reports_fastqc:
input: "{filename}.fq.gz"
output: "{filename}_fastqc.html", "{filename}_fastqc.zip"
log: "{filename}.fastqc.log"
benchmark: "{filename}.fastqc.bmk"
conda: "reports.yml"
shell: "fastqc --noextract --nogroup {input} 2> {log} 1>&2"
rule reports_samtools_stats:
input: "{fi... | 28.88 | 76 | 0.595568 | 154 | 1,444 | 5.519481 | 0.25974 | 0.064706 | 0.094118 | 0.084706 | 0.270588 | 0.170588 | 0 | 0 | 0 | 0 | 0 | 0.006422 | 0.245152 | 1,444 | 49 | 77 | 29.469388 | 0.773395 | 0 | 0 | 0.195122 | 0 | 0 | 0.443906 | 0.154432 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f8ed90dcaa4027fe7570b780daa0c49954a0a83 | 21,397 | py | Python | bittensor/_keyfile/keyfile_impl.py | camfairchild/bittensor | ed6a908013eff7fe4d5701b0e33a746459f9a3ff | [
"MIT"
] | 2 | 2020-03-11T19:40:05.000Z | 2020-06-14T19:35:34.000Z | bittensor/_keyfile/keyfile_impl.py | opentensor/BitTensor | 59de2d0fe48f3bd02ba5bff6159e6625bd6cb945 | [
"MIT"
] | null | null | null | bittensor/_keyfile/keyfile_impl.py | opentensor/BitTensor | 59de2d0fe48f3bd02ba5bff6159e6625bd6cb945 | [
"MIT"
] | null | null | null | # The MIT License (MIT)
# Copyright © 2021 Yuma Rao
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
# documentation files (the “Software”), to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge... | 40.219925 | 166 | 0.614619 | 2,431 | 21,397 | 5.245989 | 0.147265 | 0.102643 | 0.014114 | 0.025876 | 0.564651 | 0.53015 | 0.471889 | 0.415902 | 0.410256 | 0.396848 | 0 | 0.004247 | 0.306679 | 21,397 | 532 | 167 | 40.219925 | 0.855342 | 0.326541 | 0 | 0.501992 | 0 | 0 | 0.112629 | 0.005004 | 0 | 0 | 0 | 0 | 0 | 1 | 0.167331 | false | 0.143426 | 0.059761 | 0.047809 | 0.430279 | 0.007968 | 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 | 0 | 0 | 0 | 1 |
3f9394b0a711e69493bf1392c3afa0e3e984ae7a | 2,039 | py | Python | setup.py | twam/amaranth | 02364a4fd7cf0882478fe5a42c2ce8ff59ba41cd | [
"BSD-2-Clause"
] | 1 | 2022-02-17T07:00:27.000Z | 2022-02-17T07:00:27.000Z | setup.py | twam/amaranth | 02364a4fd7cf0882478fe5a42c2ce8ff59ba41cd | [
"BSD-2-Clause"
] | null | null | null | setup.py | twam/amaranth | 02364a4fd7cf0882478fe5a42c2ce8ff59ba41cd | [
"BSD-2-Clause"
] | null | null | null | from setuptools import setup, find_packages
def scm_version():
def local_scheme(version):
if version.tag and not version.distance:
return version.format_with("")
else:
return version.format_choice("+{node}", "+{node}.dirty")
return {
"relative_to": __file__,
... | 30.893939 | 100 | 0.61746 | 230 | 2,039 | 5.286957 | 0.504348 | 0.024671 | 0.03125 | 0.036184 | 0.055921 | 0.055921 | 0 | 0 | 0 | 0 | 0 | 0.012804 | 0.233938 | 2,039 | 65 | 101 | 31.369231 | 0.765685 | 0.113291 | 0 | 0.071429 | 0 | 0 | 0.346282 | 0.026082 | 0 | 0 | 0 | 0.015385 | 0 | 1 | 0.053571 | false | 0 | 0.089286 | 0 | 0.267857 | 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 | 0 | 0 | 0 | 1 |
3f97d8599a7818352a00835296f86e5a8d29b844 | 27,608 | py | Python | raiden/transfer/events.py | gasparmedina/raiden | 649c43b7233b9e95f13831e61d5db187d583367a | [
"MIT"
] | null | null | null | raiden/transfer/events.py | gasparmedina/raiden | 649c43b7233b9e95f13831e61d5db187d583367a | [
"MIT"
] | null | null | null | raiden/transfer/events.py | gasparmedina/raiden | 649c43b7233b9e95f13831e61d5db187d583367a | [
"MIT"
] | 4 | 2019-01-24T14:45:06.000Z | 2019-04-01T16:12:40.000Z | from eth_utils import to_canonical_address, to_checksum_address
from raiden.constants import UINT256_MAX
from raiden.transfer.architecture import (
ContractSendEvent,
ContractSendExpirableEvent,
Event,
SendMessageEvent,
)
from raiden.transfer.state import BalanceProofSignedState
from raiden.utils impor... | 33.668293 | 98 | 0.63507 | 2,689 | 27,608 | 6.190777 | 0.083302 | 0.11029 | 0.099117 | 0.048057 | 0.704211 | 0.683907 | 0.645642 | 0.603352 | 0.592719 | 0.589956 | 0 | 0.000451 | 0.277746 | 27,608 | 819 | 99 | 33.709402 | 0.834403 | 0.07784 | 0 | 0.702362 | 0 | 0 | 0.128513 | 0.074131 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12126 | false | 0 | 0.011024 | 0.059843 | 0.255118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f9d7a9d7f59c2ed6ebb0dd4ced6dd009b60981c | 431 | py | Python | yatube/posts/migrations/0004_auto_20210310_1418.py | S10dev/S10dev.ru_sources | 6d9b5e596080d9ed357e371ccf58de7c3174900b | [
"MIT"
] | null | null | null | yatube/posts/migrations/0004_auto_20210310_1418.py | S10dev/S10dev.ru_sources | 6d9b5e596080d9ed357e371ccf58de7c3174900b | [
"MIT"
] | null | null | null | yatube/posts/migrations/0004_auto_20210310_1418.py | S10dev/S10dev.ru_sources | 6d9b5e596080d9ed357e371ccf58de7c3174900b | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-03-10 11:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('posts', '0003_comment_img'),
]
operations = [
migrations.AlterField(
model_name='comment',
name='text',
... | 22.684211 | 105 | 0.612529 | 49 | 431 | 5.285714 | 0.816327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06962 | 0.266821 | 431 | 18 | 106 | 23.944444 | 0.75 | 0.104408 | 0 | 0 | 1 | 0 | 0.127604 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
3fa6591123a632cb3e8a43bbb17f8897a76a2508 | 1,158 | py | Python | Code/Model/sc_global.py | Techo-Bingo/SystemController | 95dbbb7415b400ce92014102f193c2497c37aeb8 | [
"Apache-2.0"
] | 1 | 2019-08-14T12:38:44.000Z | 2019-08-14T12:38:44.000Z | Code/Model/sc_global.py | Techo-Bingo/SystemController | 95dbbb7415b400ce92014102f193c2497c37aeb8 | [
"Apache-2.0"
] | null | null | null | Code/Model/sc_global.py | Techo-Bingo/SystemController | 95dbbb7415b400ce92014102f193c2497c37aeb8 | [
"Apache-2.0"
] | null | null | null | # -*- coding: UTF-8 -*-
class Global:
G_TEXT_LOGO = '''
____ _
/ __ )(_)___ ____ _____
/ __ / / __ \/ __ `/ __ \\
/ /_/ / / / / / /_/ / /_/ /
/_____/_/_/ /_/\__, /\____/
/____/ ... | 33.085714 | 72 | 0.545769 | 112 | 1,158 | 4.616071 | 0.491071 | 0.042553 | 0.085106 | 0.088975 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014963 | 0.307427 | 1,158 | 34 | 73 | 34.058824 | 0.628429 | 0.076857 | 0 | 0 | 0 | 0 | 0.557746 | 0.090141 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.740741 | 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 | 0 | 1 | 0 | 0 | 1 |
3faa502df34d7bf5f8e168794809e479bf31dc28 | 4,337 | py | Python | dbf6.py | pandigresik/easyMigrate | 02fc7428380ba1d8a1fb1f7b04070eea84400a47 | [
"MIT"
] | null | null | null | dbf6.py | pandigresik/easyMigrate | 02fc7428380ba1d8a1fb1f7b04070eea84400a47 | [
"MIT"
] | null | null | null | dbf6.py | pandigresik/easyMigrate | 02fc7428380ba1d8a1fb1f7b04070eea84400a47 | [
"MIT"
] | null | null | null | import struct
import datetime
from simpledbf import Dbf5
class Dbf6(Dbf5):
def _get_recs(self, chunk=None):
'''Generator that returns individual records.
Parameters
----------
chunk : int, optional
Number of records to return as a single chunk. Default 'None',
... | 38.380531 | 76 | 0.390823 | 389 | 4,337 | 4.300771 | 0.40874 | 0.077705 | 0.032277 | 0.03945 | 0.137478 | 0.137478 | 0.137478 | 0.137478 | 0.137478 | 0.074716 | 0 | 0.007937 | 0.535163 | 4,337 | 112 | 77 | 38.723214 | 0.821925 | 0.186765 | 0 | 0.4 | 0 | 0 | 0.030373 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013333 | false | 0 | 0.04 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 |
3faba53163ef855413a32d7b19b811a156f6ab22 | 464 | py | Python | web/styled_memo/file/django/app/crawler.py | wani-hackase/wanictf2021-writeup | 67193041a413ab01bb7cfff2618db12a7e525e16 | [
"MIT"
] | 3 | 2021-11-07T16:05:33.000Z | 2021-11-08T03:59:20.000Z | web/styled_memo/file/django/app/crawler.py | wani-hackase/wanictf2021-writeup | 67193041a413ab01bb7cfff2618db12a7e525e16 | [
"MIT"
] | null | null | null | web/styled_memo/file/django/app/crawler.py | wani-hackase/wanictf2021-writeup | 67193041a413ab01bb7cfff2618db12a7e525e16 | [
"MIT"
] | 3 | 2021-11-07T11:36:58.000Z | 2022-03-09T13:55:04.000Z | from playwright.sync_api import sync_playwright
def crawler(username, password):
with sync_playwright() as playwright:
browser = playwright.chromium.launch()
page = browser.new_page()
page.goto("http://nginx")
page.type('input[name="username"]', username)
page.type('input[n... | 33.142857 | 53 | 0.655172 | 53 | 464 | 5.603774 | 0.584906 | 0.094276 | 0.087542 | 0.114478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204741 | 464 | 13 | 54 | 35.692308 | 0.804878 | 0 | 0 | 0 | 0 | 0 | 0.189655 | 0.140086 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.181818 | 0.090909 | 0 | 0.181818 | 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 | 0 | 0 | 0 | 1 |
3fac522a22c57cd7b28aea9eb7dd306b4b61de13 | 5,181 | py | Python | regscrape/regs_common/transfer.py | sunlightlabs/regulations-scraper | 5f2644a3cf54f915d7d90957645073737ab91022 | [
"BSD-3-Clause"
] | 13 | 2015-09-28T16:59:31.000Z | 2020-06-20T01:23:13.000Z | regscrape/regs_common/transfer.py | sunlightlabs/regulations-scraper | 5f2644a3cf54f915d7d90957645073737ab91022 | [
"BSD-3-Clause"
] | 1 | 2019-02-18T20:26:21.000Z | 2021-02-25T01:43:44.000Z | regscrape/regs_common/transfer.py | sunlightlabs/regulations-scraper | 5f2644a3cf54f915d7d90957645073737ab91022 | [
"BSD-3-Clause"
] | 6 | 2015-07-08T22:41:34.000Z | 2019-09-03T18:19:32.000Z | import urllib2, urllib3
import subprocess
from gevent.pool import Pool
from gevent import Timeout
import greenlet
import settings
import datetime
import sys
import traceback
import time
def pump(input, output, chunk_size):
size = 0
while True:
chunk = input.read(chunk_size)
if not chunk: break
... | 36.485915 | 208 | 0.614167 | 632 | 5,181 | 4.911392 | 0.280063 | 0.025773 | 0.031572 | 0.020296 | 0.334729 | 0.273196 | 0.258376 | 0.258376 | 0.186856 | 0.128866 | 0 | 0.017372 | 0.28894 | 5,181 | 142 | 209 | 36.485915 | 0.82519 | 0.039568 | 0 | 0.274336 | 0 | 0 | 0.075422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.088496 | null | null | 0.061947 | 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 | 0 | 0 | 1 |
3fb7fd16ca5150020dc967bd3a042429728596d1 | 1,352 | py | Python | docs/examples/plot_comparing.py | jootten/traja | 4c4a689bd99dde88d521e647ae8bc9ef9c2f2396 | [
"MIT"
] | 47 | 2020-01-30T19:32:16.000Z | 2022-03-22T03:46:56.000Z | docs/examples/plot_comparing.py | PlusWorldWater/traja | f347c8cd85200b134fa88d404b72aaca5cf9e79f | [
"MIT"
] | 61 | 2020-10-11T17:08:22.000Z | 2022-01-30T21:05:39.000Z | docs/examples/plot_comparing.py | PlusWorldWater/traja | f347c8cd85200b134fa88d404b72aaca5cf9e79f | [
"MIT"
] | 19 | 2020-05-07T00:14:17.000Z | 2022-03-24T10:42:04.000Z | """
Comparing
---------
traja allows comparing trajectories using various methods.
"""
import traja
df = traja.generate(seed=0)
df.traja.plot()
###############################################################################
# Fast Dynamic Time Warping of Trajectories
# =========================================
#
# Fa... | 31.44186 | 82 | 0.565089 | 134 | 1,352 | 5.671642 | 0.597015 | 0.027632 | 0.071053 | 0.057895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005747 | 0.099112 | 1,352 | 42 | 83 | 32.190476 | 0.618227 | 0.483728 | 0 | 0 | 1 | 0 | 0.106818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 0.090909 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
3fbc9c33a042350683915fec16583325e2fcf6ea | 1,870 | py | Python | setup.py | jdfreder/ipython-crossnotebook | a5de6c8ac17049a7e9b54cbbf84dfa5468ca0bc2 | [
"BSD-3-Clause"
] | 1 | 2015-02-25T13:18:32.000Z | 2015-02-25T13:18:32.000Z | setup.py | jdfreder/ipython-crossnotebook | a5de6c8ac17049a7e9b54cbbf84dfa5468ca0bc2 | [
"BSD-3-Clause"
] | null | null | null | setup.py | jdfreder/ipython-crossnotebook | a5de6c8ac17049a7e9b54cbbf84dfa5468ca0bc2 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
try:
from setuptools import setup
from setuptools.command.install import install
except ImportError:
from distutils.core import setup
from distutils.core.command.install import install
class InstallCommand(install):
"""Install as noteboook extension"""
develop = False
... | 34 | 107 | 0.680749 | 191 | 1,870 | 6.612565 | 0.554974 | 0.030879 | 0.023753 | 0.042755 | 0.05384 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002717 | 0.212834 | 1,870 | 55 | 108 | 34 | 0.855299 | 0.025668 | 0 | 0 | 0 | 0 | 0.307208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.214286 | null | null | 0.071429 | 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 | 0 | 0 | 1 |
3fbf795e7247ae643d1c1ce2e468c0fbdb99d742 | 483 | py | Python | src/app/decorators.py | mitmedialab/AffectiveComputingQuantifyMeDjango | 281cc2228b8ca68f5a1c00a1151fedb7180b69ab | [
"Unlicense",
"MIT"
] | 2 | 2018-08-29T01:59:48.000Z | 2018-10-21T18:56:37.000Z | src/app/decorators.py | mitmedialab/AffectiveComputingQuantifyMeDjango | 281cc2228b8ca68f5a1c00a1151fedb7180b69ab | [
"Unlicense",
"MIT"
] | null | null | null | src/app/decorators.py | mitmedialab/AffectiveComputingQuantifyMeDjango | 281cc2228b8ca68f5a1c00a1151fedb7180b69ab | [
"Unlicense",
"MIT"
] | null | null | null | from functools import wraps
from django.views.decorators.http import require_POST
from django.views.decorators.csrf import csrf_exempt
from django.conf import settings
from django.http import HttpResponseBadRequest
def app_view(f):
@wraps(f)
def wrap(request, *args, **kwargs):
token = request.META.ge... | 24.15 | 53 | 0.714286 | 62 | 483 | 5.467742 | 0.5 | 0.117994 | 0.088496 | 0.147493 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198758 | 483 | 19 | 54 | 25.421053 | 0.875969 | 0 | 0 | 0 | 0 | 0 | 0.026915 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.384615 | 0 | 0.769231 | 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 | 0 | 0 | 0 | 1 |
3fca58028d468b2f3ff1925a0e1c214f3ac97811 | 1,649 | py | Python | djangotube/settings/base.py | JisunParkRea/djangotube_tutorial | c173f624da4aee7252c99f0852789f06b4bff4c7 | [
"MIT"
] | 2 | 2020-12-07T04:49:32.000Z | 2021-04-12T04:46:09.000Z | djangotube/settings/base.py | JisunParkRea/djangotube_tutorial | c173f624da4aee7252c99f0852789f06b4bff4c7 | [
"MIT"
] | 4 | 2020-04-28T07:54:02.000Z | 2021-09-22T18:52:46.000Z | djangotube/settings/base.py | JisunParkRea/djangotube_tutorial | c173f624da4aee7252c99f0852789f06b4bff4c7 | [
"MIT"
] | 1 | 2020-04-28T07:42:27.000Z | 2020-04-28T07:42:27.000Z | import os, json
from django.core.exceptions import ImproperlyConfigured
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
ROOT_DIR = os.path.dirname(BASE_DIR)
INTERNAL_IPS = ['127.0.0.1',]
ROOT_URLCONF = 'djangotube.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django... | 23.225352 | 91 | 0.664039 | 175 | 1,649 | 6.085714 | 0.451429 | 0.073239 | 0.079812 | 0.078873 | 0.258216 | 0.228169 | 0.08169 | 0 | 0 | 0 | 0 | 0.013626 | 0.198908 | 1,649 | 70 | 92 | 23.557143 | 0.792581 | 0.177683 | 0 | 0 | 0 | 0 | 0.446919 | 0.359317 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.116279 | 0.046512 | 0 | 0.046512 | 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 | 0 | 0 | 0 | 1 |
3fd66aca35e56f6c17515590382067649ae5e33f | 1,514 | py | Python | app/http/controllers/WelcomeController.py | josephmancuso/gbaleague-masonite2 | b3dd5ec3f20c07eaabcc3129b0c50379a946a82b | [
"MIT"
] | null | null | null | app/http/controllers/WelcomeController.py | josephmancuso/gbaleague-masonite2 | b3dd5ec3f20c07eaabcc3129b0c50379a946a82b | [
"MIT"
] | 3 | 2018-07-25T17:36:43.000Z | 2020-01-06T18:52:51.000Z | app/http/controllers/WelcomeController.py | josephmancuso/gbaleague-masonite2 | b3dd5ec3f20c07eaabcc3129b0c50379a946a82b | [
"MIT"
] | null | null | null | """ Welcome The User To Masonite """
from masonite.request import Request
from masonite.view import View
from events import Event
from app.League import League
from masonite import Broadcast
class WelcomeController:
""" Controller For Welcoming The User """
def __init__(self, view: View, request: Request):
... | 30.28 | 99 | 0.568032 | 155 | 1,514 | 5.503226 | 0.464516 | 0.046893 | 0.049238 | 0.046893 | 0.067995 | 0.067995 | 0.067995 | 0 | 0 | 0 | 0 | 0.004673 | 0.293263 | 1,514 | 49 | 100 | 30.897959 | 0.792523 | 0.321664 | 0 | 0 | 0 | 0 | 0.045502 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.25 | 0.05 | 0.65 | 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 | 0 | 1 | 0 | 0 | 1 |
3fd804a2ad81564f6f1ca82764fc4b18901f3466 | 1,192 | py | Python | heqsim/software/processor.py | MakotoNakai/heqsim | 20847df16b531e1589ac80580fbbb2d632e74ae6 | [
"MIT"
] | null | null | null | heqsim/software/processor.py | MakotoNakai/heqsim | 20847df16b531e1589ac80580fbbb2d632e74ae6 | [
"MIT"
] | null | null | null | heqsim/software/processor.py | MakotoNakai/heqsim | 20847df16b531e1589ac80580fbbb2d632e74ae6 | [
"MIT"
] | null | null | null |
class QuantumProcessor:
"""A class for defining a quantum processor"""
def __init__(self, qubit_num=1, execution_time=0.1):
"""Define a quantum processor
Args:
qubit_num (int, optional): The number of qubits. Defaults to 1.
execution_time (float, optional): The executi... | 27.090909 | 103 | 0.572987 | 147 | 1,192 | 4.496599 | 0.292517 | 0.16944 | 0.151286 | 0.133132 | 0.136157 | 0.081694 | 0 | 0 | 0 | 0 | 0 | 0.008974 | 0.345638 | 1,192 | 43 | 104 | 27.72093 | 0.838462 | 0.459732 | 0 | 0 | 0 | 0 | 0.049116 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.4375 | 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 | 0 | 0 | 0 | 1 |
3fdabafbf5ca2b96f81146027d11e58c7f4904f2 | 1,975 | py | Python | learn/account/urls.py | saras108/django_ecom | 64071006372becd071bd288a33cb008ff5511960 | [
"MIT"
] | null | null | null | learn/account/urls.py | saras108/django_ecom | 64071006372becd071bd288a33cb008ff5511960 | [
"MIT"
] | null | null | null | learn/account/urls.py | saras108/django_ecom | 64071006372becd071bd288a33cb008ff5511960 | [
"MIT"
] | null | null | null |
from django.urls import path
from django.contrib.auth import views as auth_views
from . import views
urlpatterns = [
path('register/', views.registerpage , name = 'register'),
path('login/', views.loginpage , name = 'login'),
path('logout/', views.logoutUser , name = 'logout'),
path('', views.home ,... | 42.021277 | 132 | 0.700253 | 236 | 1,975 | 5.639831 | 0.262712 | 0.087904 | 0.045079 | 0.054095 | 0.117205 | 0.117205 | 0.117205 | 0 | 0 | 0 | 0 | 0.001166 | 0.131139 | 1,975 | 47 | 133 | 42.021277 | 0.774476 | 0 | 0 | 0 | 0 | 0 | 0.349873 | 0.155443 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.258065 | 0.096774 | 0 | 0.096774 | 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 | 0 | 0 | 0 | 1 |
3fdb028a8e28a8629f7d15d65d151498cda45bd0 | 743 | py | Python | ikaTools/main.py | nuts2bon/discordpy-startup | 794afb67c547a61c62db01c81bfb54520718b580 | [
"MIT"
] | null | null | null | ikaTools/main.py | nuts2bon/discordpy-startup | 794afb67c547a61c62db01c81bfb54520718b580 | [
"MIT"
] | null | null | null | ikaTools/main.py | nuts2bon/discordpy-startup | 794afb67c547a61c62db01c81bfb54520718b580 | [
"MIT"
] | null | null | null | import json
import random
class ikaTools:
lang = "ja_JP"
weapons_path = "./ikaTools/weapon.json"
json_open_wp = open(weapons_path)
weapons=json.load(json_open_wp)
def __init__(self):
self.setOneBuki()
def setOneBuki(self,id = "rand"): #when num is none,return weapon is rand... | 23.21875 | 81 | 0.569314 | 87 | 743 | 4.735632 | 0.356322 | 0.058252 | 0.048544 | 0.058252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.30821 | 743 | 31 | 82 | 23.967742 | 0.801556 | 0.183042 | 0 | 0.222222 | 0 | 0 | 0.078727 | 0.036851 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.111111 | 0 | 0.611111 | 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 | 0 | 1 | 0 | 0 | 1 |
3fdb498d4afd293c61e5e9079be2c1d843ecd4bb | 608 | py | Python | showcase/views.py | aurthurm/my-site | 9dfe28a35d7a9a1ceab52ffee0bdc3966968a30d | [
"Apache-2.0"
] | null | null | null | showcase/views.py | aurthurm/my-site | 9dfe28a35d7a9a1ceab52ffee0bdc3966968a30d | [
"Apache-2.0"
] | null | null | null | showcase/views.py | aurthurm/my-site | 9dfe28a35d7a9a1ceab52ffee0bdc3966968a30d | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render
from django.views.generic import ListView, DetailView
from showcase.models import Portfolio
class PortfolioList(ListView):
model = Portfolio
context_object_name = 'portfolios'
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
return context
... | 25.333333 | 53 | 0.782895 | 78 | 608 | 5.833333 | 0.448718 | 0.087912 | 0.123077 | 0.074725 | 0.316484 | 0.316484 | 0.316484 | 0.316484 | 0.316484 | 0.316484 | 0 | 0 | 0.126645 | 608 | 23 | 54 | 26.434783 | 0.856874 | 0.039474 | 0 | 0.470588 | 0 | 0 | 0.07732 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.176471 | 0 | 0.882353 | 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 | 0 | 1 | 0 | 0 | 1 |
3fdfb56453e3361b3c338b06e08451ee183bd457 | 225 | py | Python | chuck-pyth/code/soft.py | KaiserPhemi/python-101 | 703facf41f1b47c486e5044696ce87b6d28a9ab3 | [
"MIT"
] | 3 | 2017-09-26T20:19:57.000Z | 2020-02-03T16:59:59.000Z | chuck-pyth/code/soft.py | KaiserPhemi/python-101 | 703facf41f1b47c486e5044696ce87b6d28a9ab3 | [
"MIT"
] | 1 | 2017-09-22T13:57:04.000Z | 2017-09-26T20:03:24.000Z | chuck-pyth/code/soft.py | KaiserPhemi/python-101 | 703facf41f1b47c486e5044696ce87b6d28a9ab3 | [
"MIT"
] | 6 | 2017-04-08T06:44:18.000Z | 2022-03-22T19:22:01.000Z | txt = 'but soft what light in yonder window breaks'
words = txt.split()
t = list()
for word in words:
t.append((len(word), word))
t.sort(reverse=True)
res = list()
for length, word in t:
res.append(word)
print res
| 16.071429 | 51 | 0.662222 | 39 | 225 | 3.820513 | 0.589744 | 0.09396 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 225 | 13 | 52 | 17.307692 | 0.827778 | 0 | 0 | 0 | 0 | 0 | 0.191111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.1 | 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 | 0 | 0 | 1 |
3fe68f3d2924d74faeee1ac12d91626828ad9880 | 3,409 | py | Python | uq_benchmark_2019/cifar/run_train.py | yick2232/google-research | 99021ebda945e232abdcc592f2cea1375b3c84f7 | [
"Apache-2.0"
] | 11 | 2020-01-29T07:25:04.000Z | 2022-03-05T16:01:21.000Z | uq_benchmark_2019/cifar/run_train.py | RubensZimbres/google-research | 562c7c6ef959cb3cb382b1b660ccc45e8f5289c4 | [
"Apache-2.0"
] | 13 | 2020-01-28T22:19:53.000Z | 2022-02-10T00:39:26.000Z | uq_benchmark_2019/cifar/run_train.py | RubensZimbres/google-research | 562c7c6ef959cb3cb382b1b660ccc45e8f5289c4 | [
"Apache-2.0"
] | 2 | 2020-02-27T11:09:49.000Z | 2021-08-25T07:32:15.000Z | # coding=utf-8
# Copyright 2019 The Google Research Authors.
#
# 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 applicab... | 36.265957 | 80 | 0.698152 | 467 | 3,409 | 4.85439 | 0.404711 | 0.03573 | 0.033083 | 0.041906 | 0.106749 | 0.080282 | 0.067049 | 0.037936 | 0.037936 | 0 | 0 | 0.017026 | 0.224699 | 3,409 | 93 | 81 | 36.655914 | 0.840711 | 0.325022 | 0 | 0.04 | 0 | 0 | 0.088771 | 0 | 0 | 0 | 0 | 0.010753 | 0 | 1 | 0.06 | false | 0 | 0.24 | 0 | 0.32 | 0.02 | 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 | 0 | 0 | 0 | 1 |
3fe717aac996e36ae6cdaff1569de4c3be7fc4fa | 1,221 | py | Python | rango/models.py | zengqiang24/rango | 1b2c60e42671e8e026491537d2e1cb963622d36f | [
"MIT"
] | null | null | null | rango/models.py | zengqiang24/rango | 1b2c60e42671e8e026491537d2e1cb963622d36f | [
"MIT"
] | null | null | null | rango/models.py | zengqiang24/rango | 1b2c60e42671e8e026491537d2e1cb963622d36f | [
"MIT"
] | null | null | null | from django.contrib.auth.models import User
from django.db import models
from django.template.defaultfilters import slugify
class Category(models.Model):
name=models.CharField(max_length=128,unique=type)
views=models.IntegerField(default=0)
likes=models.IntegerField(default=0)
slug=models.SlugField()
... | 33 | 84 | 0.710074 | 158 | 1,221 | 5.360759 | 0.493671 | 0.035419 | 0.088548 | 0.09209 | 0.184179 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0091 | 0.190008 | 1,221 | 37 | 85 | 33 | 0.847321 | 0.17199 | 0 | 0.153846 | 0 | 0 | 0.013903 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.115385 | 0.115385 | 0.923077 | 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 | 0 | 0 | 0 | 1 |
3fe7c8834db1258f42063bd8eafbdea7c918d91f | 3,470 | py | Python | brocadefw/db/kvs.py | shimataro/brocadefw | c49e6a448a83d47d3b7046194748a97c19a3e1d7 | [
"MIT"
] | 1 | 2015-11-22T06:27:56.000Z | 2015-11-22T06:27:56.000Z | brocadefw/db/kvs.py | shimataro/brocadefw | c49e6a448a83d47d3b7046194748a97c19a3e1d7 | [
"MIT"
] | null | null | null | brocadefw/db/kvs.py | shimataro/brocadefw | c49e6a448a83d47d3b7046194748a97c19a3e1d7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
""" KVSキャッシュモジュール
get/set/deleteメソッドを実装すること
"""
class Cache(object):
""" キャッシュモジュールのベースクラス """
def get(self, key, default = None):
""" 値の取得
@param key: キー
@param default: 取得できない場合のデフォルト値
@return: 取得した値
"""
raise NotImplementedError("Cache::get")
def set(self, key, value, lif... | 20.778443 | 98 | 0.689625 | 402 | 3,470 | 5.723881 | 0.226368 | 0.050847 | 0.030422 | 0.041286 | 0.381573 | 0.269013 | 0.10691 | 0.035637 | 0.035637 | 0 | 0 | 0.008273 | 0.163977 | 3,470 | 166 | 99 | 20.903614 | 0.784902 | 0.338617 | 0 | 0.323077 | 0 | 0 | 0.027277 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.215385 | false | 0 | 0 | 0.015385 | 0.369231 | 0.015385 | 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 | 0 | 0 | 0 | 1 |
3fe8d953dbb375d2a43e249c5552d30163140e80 | 549 | py | Python | run_test.py | niasand/BeautifulReport | 66afc1f4eec6f733131b8c205d83e1bc2bd76dc3 | [
"MIT"
] | null | null | null | run_test.py | niasand/BeautifulReport | 66afc1f4eec6f733131b8c205d83e1bc2bd76dc3 | [
"MIT"
] | null | null | null | run_test.py | niasand/BeautifulReport | 66afc1f4eec6f733131b8c205d83e1bc2bd76dc3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# !/usr/bin/env python
# Author: Mocobk
# Data: 2019/03/18
# License: MIT
# Modified by ZhiWei Yang
# tencrance@gmail.com
# Modified At: 2020/11/15
import unittest
import os
from BeautifulReport import BeautifulReport
report_dir = os.path.expanduser("~/")
if __name__ == '__main__':
test_su... | 28.894737 | 109 | 0.73224 | 71 | 549 | 5.450704 | 0.71831 | 0.069767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035417 | 0.125683 | 549 | 18 | 110 | 30.5 | 0.770833 | 0.282332 | 0 | 0 | 0 | 0 | 0.155844 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 | 0 | 0 | 0 | 1 |
3fecb70d02d7749632ad3ee7d356f732a6d180ac | 8,157 | py | Python | FlowCytometryTools/gui/wx_backend/wireframe.py | rpgoldman/FlowCytometryTools | 093057486ab0aeb2938537ddcfea36d3c1d14fd3 | [
"MIT"
] | 78 | 2015-05-19T19:00:40.000Z | 2022-01-23T01:04:16.000Z | FlowCytometryTools/gui/wx_backend/wireframe.py | rpgoldman/FlowCytometryTools | 093057486ab0aeb2938537ddcfea36d3c1d14fd3 | [
"MIT"
] | 27 | 2015-05-20T05:30:12.000Z | 2021-06-24T04:02:31.000Z | FlowCytometryTools/gui/wx_backend/wireframe.py | rpgoldman/FlowCytometryTools | 093057486ab0aeb2938537ddcfea36d3c1d14fd3 | [
"MIT"
] | 44 | 2015-05-19T19:01:00.000Z | 2021-07-24T21:19:56.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# generated by wxGlade 0.6.5 on Sun Dec 29 21:35:52 2013
from __future__ import print_function
from __future__ import absolute_import
import wx
# begin wxGlade: extracode
from matplotlib.backends.backend_wx import NavigationToolbar2Wx as NavigationToolbar
from matplotlib.... | 49.737805 | 131 | 0.695844 | 1,128 | 8,157 | 4.742021 | 0.155142 | 0.052346 | 0.023556 | 0.02879 | 0.560105 | 0.437839 | 0.363059 | 0.331838 | 0.263227 | 0.189568 | 0 | 0.023002 | 0.189898 | 8,157 | 163 | 132 | 50.042945 | 0.786471 | 0.095869 | 0 | 0.075758 | 1 | 0 | 0.106215 | 0.022032 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098485 | false | 0 | 0.045455 | 0 | 0.151515 | 0.083333 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
3fee24dbfe116963ba09f1e8cce8367cc731eeb9 | 663 | py | Python | plot_builder/plot_builder.py | SokolovVadim/Radix-Tree | 74e4a0d7fe0e0993c2266220738c902d673489ee | [
"MIT"
] | null | null | null | plot_builder/plot_builder.py | SokolovVadim/Radix-Tree | 74e4a0d7fe0e0993c2266220738c902d673489ee | [
"MIT"
] | null | null | null | plot_builder/plot_builder.py | SokolovVadim/Radix-Tree | 74e4a0d7fe0e0993c2266220738c902d673489ee | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
radix_len = [120, 110, 100, 90, 80, 70, 60, 50, 40, 30, 20]
radix_time = [82.941, 71.651, 60.559, 47.864, 37.66, 29.485, 21.827, 14.785, 9.637, 5.537, 2.694]
suffix_len = [19, 24, 37, 52, 66, 81, 90, 120]
suffix_time = [0.241, 0.242, 0.244, 0.245, 0.246, 0.248, 0.250, 0.251]
fig, ax =... | 30.136364 | 97 | 0.657617 | 126 | 663 | 3.396825 | 0.650794 | 0.037383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230228 | 0.14178 | 663 | 21 | 98 | 31.571429 | 0.521968 | 0 | 0 | 0 | 0 | 0 | 0.131222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 1 |
3ff28164655393a17f6f117f19f8f9f7a234eee2 | 5,168 | py | Python | build/ImageMagick-7.1.0-2/IMDelegates/ghostscript-9.54.0/toolbin/tests/gscheck_raster.py | roMummy/imagemagick_lib_ios | 0e0e6fa77e06b471f5019d5b1b28caabd08d5e6a | [
"ImageMagick"
] | null | null | null | build/ImageMagick-7.1.0-2/IMDelegates/ghostscript-9.54.0/toolbin/tests/gscheck_raster.py | roMummy/imagemagick_lib_ios | 0e0e6fa77e06b471f5019d5b1b28caabd08d5e6a | [
"ImageMagick"
] | null | null | null | build/ImageMagick-7.1.0-2/IMDelegates/ghostscript-9.54.0/toolbin/tests/gscheck_raster.py | roMummy/imagemagick_lib_ios | 0e0e6fa77e06b471f5019d5b1b28caabd08d5e6a | [
"ImageMagick"
] | null | null | null | #!/usr/bin/env python
# Copyright (C) 2001-2021 Artifex Software, Inc.
# All Rights Reserved.
#
# This software is provided AS-IS with no warranty, either express or
# implied.
#
# This software is distributed under license and may not be copied,
# modified or distributed except as expressly authorized under the terms... | 34 | 115 | 0.619195 | 628 | 5,168 | 5 | 0.35828 | 0.025478 | 0.013376 | 0.016242 | 0.08535 | 0.08535 | 0.036943 | 0.036943 | 0.036943 | 0.036943 | 0 | 0.012189 | 0.269737 | 5,168 | 151 | 116 | 34.225166 | 0.81982 | 0.164474 | 0 | 0.092784 | 0 | 0 | 0.085082 | 0 | 0 | 0 | 0 | 0 | 0.020619 | 0 | null | null | 0 | 0.061856 | null | null | 0.020619 | 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 | 0 | 0 | 1 |
3ff4683ccc6cce9fd5b95a317c2b44e7dd4bcc6c | 1,527 | py | Python | MHD/FEniCS/ShiftCurlCurl/probe/dolfin_test_probe.py | wathen/PhD | 35524f40028541a4d611d8c78574e4cf9ddc3278 | [
"MIT"
] | 3 | 2020-10-25T13:30:20.000Z | 2021-08-10T21:27:30.000Z | MHD/FEniCS/ShiftCurlCurl/probe/dolfin_test_probe.py | wathen/PhD | 35524f40028541a4d611d8c78574e4cf9ddc3278 | [
"MIT"
] | null | null | null | MHD/FEniCS/ShiftCurlCurl/probe/dolfin_test_probe.py | wathen/PhD | 35524f40028541a4d611d8c78574e4cf9ddc3278 | [
"MIT"
] | 3 | 2019-10-28T16:12:13.000Z | 2020-01-13T13:59:44.000Z |
"This demo program demonstrates how to include additional C++ code in DOLFIN."
# Copyright (C) 2013 Kent-Andre Mardal, Mikael Mortensen, Johan Hake
#
# This file is part of DOLFIN.
#
# DOLFIN is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License ... | 30.54 | 79 | 0.70465 | 238 | 1,527 | 4.466387 | 0.567227 | 0.014111 | 0.033866 | 0.053622 | 0.094073 | 0.094073 | 0.06397 | 0 | 0 | 0 | 0 | 0.025061 | 0.189915 | 1,527 | 49 | 80 | 31.163265 | 0.834276 | 0.497053 | 0 | 0 | 0 | 0 | 0.226225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
3ffbf649f78915f7ef1c775100f743d8f37becf4 | 10,966 | py | Python | ari_backup/lvm.py | jpwoodbu/ari-backup | 7c0c87e6ff7e10853f0f1478685c1250e176a9f7 | [
"BSD-3-Clause"
] | 1 | 2018-05-02T13:33:51.000Z | 2018-05-02T13:33:51.000Z | ari_backup/lvm.py | jpwoodbu/ari-backup | 7c0c87e6ff7e10853f0f1478685c1250e176a9f7 | [
"BSD-3-Clause"
] | 23 | 2015-01-04T08:03:03.000Z | 2017-11-04T16:25:11.000Z | ari_backup/lvm.py | jpwoodbu/ari-backup | 7c0c87e6ff7e10853f0f1478685c1250e176a9f7 | [
"BSD-3-Clause"
] | 1 | 2015-09-20T04:38:18.000Z | 2015-09-20T04:38:18.000Z | """LVM based backup workflows and MixIn classes."""
import copy
import os
import gflags
import rdiff_backup_wrapper
FLAGS = gflags.FLAGS
gflags.DEFINE_string(
'snapshot_mount_root', '/tmp',
'root path for creating temporary directories for mounting LVM snapshots')
gflags.DEFINE_string('snapshot_suffix', '-a... | 42.835938 | 79 | 0.632683 | 1,381 | 10,966 | 4.821144 | 0.237509 | 0.029739 | 0.024332 | 0.019826 | 0.289126 | 0.210874 | 0.170772 | 0.141784 | 0.124662 | 0.124662 | 0 | 0.000518 | 0.295185 | 10,966 | 255 | 80 | 43.003922 | 0.860913 | 0.398596 | 0 | 0.163934 | 0 | 0 | 0.130619 | 0.020195 | 0 | 0 | 0 | 0.015686 | 0 | 1 | 0.090164 | false | 0 | 0.032787 | 0 | 0.155738 | 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 | 0 | 0 | 0 | 1 |
b2018a3710bdaaa22c15815539fd1bca8ae1fe5e | 735 | py | Python | tests/link_endpoint_test.py | billyeatcookies/sniplink-py | d4f611e9b8f7f0f5030da953b5e2eb40ac1ec2f3 | [
"MIT"
] | null | null | null | tests/link_endpoint_test.py | billyeatcookies/sniplink-py | d4f611e9b8f7f0f5030da953b5e2eb40ac1ec2f3 | [
"MIT"
] | null | null | null | tests/link_endpoint_test.py | billyeatcookies/sniplink-py | d4f611e9b8f7f0f5030da953b5e2eb40ac1ec2f3 | [
"MIT"
] | null | null | null | import sys
sys.path.insert(0,'..')
import unittest
import sniplink
from helpers.expires import expires
test_id = ""
class TestLinkEndpoint(unittest.TestCase):
client = sniplink.Client()
test_expires_in = expires()
test_url = "https://github.com/billyeatcookies/sniplink.py"
def test_create_link(se... | 25.344828 | 86 | 0.72517 | 103 | 735 | 4.883495 | 0.339806 | 0.071571 | 0.10338 | 0.071571 | 0.107356 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001656 | 0.178231 | 735 | 28 | 87 | 26.25 | 0.831126 | 0 | 0 | 0.105263 | 0 | 0 | 0.065306 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 1 | 0.105263 | false | 0 | 0.210526 | 0 | 0.526316 | 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 | 0 | 1 | 0 | 0 | 1 |
b2024c33ef491b7869d44c43f5a8474ed2d2217d | 313 | py | Python | catalog/bindings/csw/topo_curve_property.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | catalog/bindings/csw/topo_curve_property.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | catalog/bindings/csw/topo_curve_property.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass
from bindings.csw.topo_curve_property_type import TopoCurvePropertyType
__NAMESPACE__ = "http://www.opengis.net/gml"
@dataclass
class TopoCurveProperty(TopoCurvePropertyType):
class Meta:
name = "topoCurveProperty"
namespace = "http://www.opengis.net/gml"
| 26.083333 | 71 | 0.766773 | 33 | 313 | 7.060606 | 0.636364 | 0.111588 | 0.137339 | 0.197425 | 0.248927 | 0.248927 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14377 | 313 | 11 | 72 | 28.454545 | 0.869403 | 0 | 0 | 0 | 0 | 0 | 0.220447 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.5 | 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 | 0 | 0 | 0 | 1 |
b20387e561764fc522888dead6efdba798f8b8d0 | 1,362 | py | Python | utils/map_filesystem.py | jcfr/pythonjs-cmake-buildsystem | 509da9873b6ae7628594b89cd524eee7afe87fd9 | [
"Apache-2.0"
] | null | null | null | utils/map_filesystem.py | jcfr/pythonjs-cmake-buildsystem | 509da9873b6ae7628594b89cd524eee7afe87fd9 | [
"Apache-2.0"
] | null | null | null | utils/map_filesystem.py | jcfr/pythonjs-cmake-buildsystem | 509da9873b6ae7628594b89cd524eee7afe87fd9 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python2
import os
import sys
MAX_SIZE_TO_INLINE = 32
def main(root):
commands = []
# Start out in a writeable folder.
commands.append('FS.createFolder(".", "sandbox", true, true);')
commands.append('FS.currentPath = "/sandbox";')
os.chdir(root)
for (dirpath, dirnames, filenames) in os.... | 31.674419 | 80 | 0.599853 | 174 | 1,362 | 4.568966 | 0.442529 | 0.08805 | 0.100629 | 0.041509 | 0.10566 | 0.083019 | 0.083019 | 0.083019 | 0 | 0 | 0 | 0.006686 | 0.231278 | 1,362 | 42 | 81 | 32.428571 | 0.752627 | 0.276799 | 0 | 0 | 0 | 0 | 0.204708 | 0.045036 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.08 | null | null | 0.08 | 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 | 0 | 0 | 1 |
b207b67f56f046617124e587b6231543b609685e | 197 | py | Python | ExerciciosPythonMundo2/14. Números Impares e Múltiplos.py | juniorppb/arquivos-python | 25690e9ba65352fc332a0517ef65f1042e44edff | [
"MIT"
] | null | null | null | ExerciciosPythonMundo2/14. Números Impares e Múltiplos.py | juniorppb/arquivos-python | 25690e9ba65352fc332a0517ef65f1042e44edff | [
"MIT"
] | null | null | null | ExerciciosPythonMundo2/14. Números Impares e Múltiplos.py | juniorppb/arquivos-python | 25690e9ba65352fc332a0517ef65f1042e44edff | [
"MIT"
] | null | null | null | soma = 0
cont = 0
for imp in range(1, 501, 2):
if imp % 3 == 0:
cont = cont + 1
soma = soma + imp
print('A soma de todos os {} valores solicitados é : {} '.format(cont, soma))
| 24.625 | 78 | 0.543147 | 33 | 197 | 3.242424 | 0.636364 | 0.093458 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 0.314721 | 197 | 7 | 79 | 28.142857 | 0.718519 | 0 | 0 | 0 | 0 | 0 | 0.253807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 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 | 0 | 0 | 1 |
b20baa93be41a673d699a3623b6585fbf666a6ce | 2,315 | py | Python | commands.py | chackenberger/Wahlanalyse | 3f65a225d835974336dafdd4842587933ad908cc | [
"MIT"
] | null | null | null | commands.py | chackenberger/Wahlanalyse | 3f65a225d835974336dafdd4842587933ad908cc | [
"MIT"
] | null | null | null | commands.py | chackenberger/Wahlanalyse | 3f65a225d835974336dafdd4842587933ad908cc | [
"MIT"
] | null | null | null | from PySide.QtGui import QUndoCommand
class EditCommand(QUndoCommand):
"""
Edit the selected cell
:var __model: QTableModel: Model for command
:var __index: QModelIndex: selected cell
:var __oldValue: string: value before redo command executed
:var __newValue: string: value before undo command... | 28.580247 | 63 | 0.651836 | 255 | 2,315 | 5.376471 | 0.211765 | 0.131291 | 0.075857 | 0.046681 | 0.499635 | 0.427425 | 0.403355 | 0.358862 | 0.316557 | 0.224654 | 0 | 0.000573 | 0.246652 | 2,315 | 81 | 64 | 28.580247 | 0.78555 | 0.126998 | 0 | 0.54902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.27451 | false | 0 | 0.019608 | 0 | 0.372549 | 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 | 0 | 0 | 0 | 1 |
b7496781c19e996fa2b12b075479a206b13c152d | 2,422 | py | Python | packages/nusoft/bzip2.py | pgjones/nusoft | 442c7bca2f921892ecf9eb3ff6821e2a9da7b156 | [
"MIT"
] | 1 | 2015-11-24T03:39:13.000Z | 2015-11-24T03:39:13.000Z | packages/nusoft/bzip2.py | pgjones/nusoft | 442c7bca2f921892ecf9eb3ff6821e2a9da7b156 | [
"MIT"
] | null | null | null | packages/nusoft/bzip2.py | pgjones/nusoft | 442c7bca2f921892ecf9eb3ff6821e2a9da7b156 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# Bzip2
#
# Bzip2 packages and versions
#
# Author P G Jones - 2014-08-15 <p.g.jones@qmul.ac.uk> : New file.
####################################################################################################
import nusoft.package.conditional as conditional_package
import os
class Bzip2(condit... | 39.704918 | 100 | 0.606524 | 297 | 2,422 | 4.771044 | 0.37037 | 0.056457 | 0.06916 | 0.08892 | 0.086097 | 0.03952 | 0.03952 | 0 | 0 | 0 | 0 | 0.016086 | 0.229975 | 2,422 | 60 | 101 | 40.366667 | 0.7437 | 0.346821 | 0 | 0 | 0 | 0 | 0.102026 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.291667 | false | 0.041667 | 0.083333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b75094600eeefb90e3302714ac7c84d40e6c4fbd | 3,950 | py | Python | samples/break.py | akhand2222/pyicu | c173cb012628788ad83172eb053aeb7c252bda0f | [
"MIT"
] | 140 | 2015-04-16T02:43:31.000Z | 2022-03-08T11:52:52.000Z | samples/break.py | akhand2222/pyicu | c173cb012628788ad83172eb053aeb7c252bda0f | [
"MIT"
] | 140 | 2015-04-17T01:56:36.000Z | 2021-04-08T23:13:36.000Z | samples/break.py | akhand2222/pyicu | c173cb012628788ad83172eb053aeb7c252bda0f | [
"MIT"
] | 81 | 2015-04-16T20:17:05.000Z | 2021-09-14T06:33:00.000Z | # ====================================================================
# Copyright (c) 2004-2010 Open Source Applications Foundation.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without... | 30.859375 | 78 | 0.636456 | 447 | 3,950 | 5.606264 | 0.362416 | 0.038308 | 0.053871 | 0.059856 | 0.194334 | 0.118915 | 0.051876 | 0.015962 | 0 | 0 | 0 | 0.006107 | 0.212405 | 3,950 | 127 | 79 | 31.102362 | 0.799421 | 0.455696 | 0 | 0.355932 | 0 | 0 | 0.167219 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.118644 | false | 0 | 0.016949 | 0 | 0.135593 | 0.559322 | 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 | 0 | 0 | 1 | 0 | 1 |
b7551f0d707d22fb897d6d208fb7715927ac54fc | 409 | py | Python | tests/classes/transform_name.py | Jesse-Yung/jsonclasses | d40c52aec42bcb978a80ceb98b93ab38134dc790 | [
"MIT"
] | 50 | 2021-08-18T08:08:04.000Z | 2022-03-20T07:23:26.000Z | tests/classes/transform_name.py | Jesse-Yung/jsonclasses | d40c52aec42bcb978a80ceb98b93ab38134dc790 | [
"MIT"
] | 1 | 2021-11-23T02:12:29.000Z | 2021-11-23T13:35:26.000Z | tests/classes/transform_name.py | Jesse-Yung/jsonclasses | d40c52aec42bcb978a80ceb98b93ab38134dc790 | [
"MIT"
] | 8 | 2021-07-01T02:39:15.000Z | 2021-12-10T02:20:18.000Z | from __future__ import annotations
from typing import Optional
from jsonclasses import jsonclass, types
@jsonclass
class TransformName:
name: Optional[str] = types.str.transform(lambda s: s + 'q')
@jsonclass
class CTransformName:
name: Optional[str] = types.str.transform(lambda s, c: s + c.val)
@jsonclass... | 21.526316 | 69 | 0.740831 | 55 | 409 | 5.436364 | 0.472727 | 0.140468 | 0.100334 | 0.133779 | 0.26087 | 0.26087 | 0.26087 | 0.26087 | 0 | 0 | 0 | 0.005747 | 0.149144 | 409 | 18 | 70 | 22.722222 | 0.853448 | 0 | 0 | 0.25 | 0 | 0 | 0.002445 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b7570a2959df04e14b8b44bd77b618b97b0ff29a | 446 | py | Python | Python/RegexBasic/regex_bulk.py | jessicaleete/numerical_computing | cc71f51f35ca74d00e617af3d1a0223e19fb9a68 | [
"CC-BY-3.0"
] | 10 | 2016-10-18T19:54:25.000Z | 2021-10-09T20:12:38.000Z | Python/RegexBasic/regex_bulk.py | jessicaleete/numerical_computing | cc71f51f35ca74d00e617af3d1a0223e19fb9a68 | [
"CC-BY-3.0"
] | null | null | null | Python/RegexBasic/regex_bulk.py | jessicaleete/numerical_computing | cc71f51f35ca74d00e617af3d1a0223e19fb9a68 | [
"CC-BY-3.0"
] | 2 | 2017-05-14T16:07:59.000Z | 2020-06-20T09:05:06.000Z | from sys import argv
import re
regex_pattern_string = argv[1]
strings_to_match = argv[2:]
pattern = re.compile(regex_pattern_string)
def print_case(s):
if pattern.match(s): # This is where the work happens
prefix = "Match: \t"
else:
prefix = "No match:\t"
print prefix, s
map(print_cas... | 22.3 | 58 | 0.654709 | 67 | 446 | 4.164179 | 0.507463 | 0.096774 | 0.150538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00597 | 0.248879 | 446 | 19 | 59 | 23.473684 | 0.826866 | 0.23991 | 0 | 0 | 0 | 0 | 0.066265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b762cd828711f16b84b7917b771be0024235f7f4 | 391 | py | Python | src/human_lambdas/user_handler/migrations/0006_auto_20200206_1457.py | Human-Lambdas/human-lambdas | 9a2f2317f0c8dbfbfa88f3ba4994de7e6b2c4d50 | [
"Apache-2.0"
] | 25 | 2021-06-08T08:00:08.000Z | 2022-03-17T22:49:10.000Z | src/human_lambdas/user_handler/migrations/0006_auto_20200206_1457.py | Human-Lambdas/human-lambdas | 9a2f2317f0c8dbfbfa88f3ba4994de7e6b2c4d50 | [
"Apache-2.0"
] | null | null | null | src/human_lambdas/user_handler/migrations/0006_auto_20200206_1457.py | Human-Lambdas/human-lambdas | 9a2f2317f0c8dbfbfa88f3ba4994de7e6b2c4d50 | [
"Apache-2.0"
] | 5 | 2021-06-15T09:57:46.000Z | 2022-02-03T16:18:33.000Z | # Generated by Django 2.2.5 on 2020-02-06 14:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("user_handler", "0005_invitation"),
]
operations = [
migrations.AlterField(
model_name="user",
name="name",
... | 20.578947 | 62 | 0.595908 | 43 | 391 | 5.325581 | 0.790698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078853 | 0.286445 | 391 | 18 | 63 | 21.722222 | 0.741935 | 0.11509 | 0 | 0 | 1 | 0 | 0.101744 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
b7672e9248b7f13494a8e63dc29e6e6dd029ab70 | 913 | py | Python | zeus/datasets/transforms/pytorch/Numpy2Tensor.py | shaido987/vega | 14d5d49fb8bdf96bd1f3fcfac201ce6b6712c3b6 | [
"MIT"
] | 240 | 2020-08-15T15:11:49.000Z | 2022-03-28T07:26:23.000Z | zeus/datasets/transforms/pytorch/Numpy2Tensor.py | WholeG/vega | d1ccf1c3ce68a118bdb6775594ceed0f895911e7 | [
"MIT"
] | 20 | 2020-08-29T06:18:21.000Z | 2022-03-21T04:35:57.000Z | zeus/datasets/transforms/pytorch/Numpy2Tensor.py | WholeG/vega | d1ccf1c3ce68a118bdb6775594ceed0f895911e7 | [
"MIT"
] | 69 | 2020-08-15T15:41:53.000Z | 2022-03-16T08:27:47.000Z | # -*- coding: utf-8 -*-
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the MIT License.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the... | 33.814815 | 79 | 0.704272 | 130 | 913 | 4.9 | 0.638462 | 0.034537 | 0.040816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013699 | 0.200438 | 913 | 26 | 80 | 35.115385 | 0.858904 | 0.561884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.7 | 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 | 0 | 1 | 0 | 0 | 1 |
b76dd6a7b762b788e086aac896c4972081c8ea85 | 1,028 | py | Python | calculators/variation-calc.py | LokotamaTheMastermind/useful-python-scripts | cc5e17d1b0ec57354ccf773fd4c55de3b5f7c461 | [
"MIT"
] | 1 | 2020-08-27T15:30:01.000Z | 2020-08-27T15:30:01.000Z | calculators/variation-calc.py | LokotamaTheMastermind/useful-python-scripts | cc5e17d1b0ec57354ccf773fd4c55de3b5f7c461 | [
"MIT"
] | 2 | 2020-08-27T15:25:16.000Z | 2020-08-28T08:52:43.000Z | calculators/variation-calc.py | LokotamaTheMastermind/useful-python-scripts | cc5e17d1b0ec57354ccf773fd4c55de3b5f7c461 | [
"MIT"
] | null | null | null | def main():
question = input("Please what type of variation is it ... |> ")
if question == "direct":
question = input("Please what is the value of the initial 1st variable => ").isdigit()
if question:
int(question)
another_question = input("Please what is the value of the... | 24.47619 | 102 | 0.624514 | 127 | 1,028 | 4.84252 | 0.314961 | 0.097561 | 0.071545 | 0.112195 | 0.305691 | 0.217886 | 0.146341 | 0.146341 | 0.146341 | 0.146341 | 0 | 0.01087 | 0.284047 | 1,028 | 41 | 103 | 25.073171 | 0.824728 | 0 | 0 | 0.107143 | 0 | 0 | 0.225681 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0.107143 | 0 | 0 | 0.142857 | 0.071429 | 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 | 0 | 0 | 0 | 1 |
b76f03e5ed2f0c6d200678e29c728ca6c8c49136 | 2,493 | py | Python | test/tests/tag_projection_precision_test/create_data_for_benchmark/create_data_for_benchmark.py | ugermann/MMT | 715ad16b4467f44c8103e16165261d1391a69fb8 | [
"Apache-2.0"
] | null | null | null | test/tests/tag_projection_precision_test/create_data_for_benchmark/create_data_for_benchmark.py | ugermann/MMT | 715ad16b4467f44c8103e16165261d1391a69fb8 | [
"Apache-2.0"
] | null | null | null | test/tests/tag_projection_precision_test/create_data_for_benchmark/create_data_for_benchmark.py | ugermann/MMT | 715ad16b4467f44c8103e16165261d1391a69fb8 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import re
from itertools import izip
from optparse import OptionParser
TAG_NORMALIZE_RE = re.compile(r'(< */? *(?:[a-zA-Z]|_|:)(?:[a-zA-Z]|[0-9]|\\.|-|_|:|)*)[^>]*?(/? *>)')
def normalize_tag(text):
return TAG_NORMALIZE_RE.subn(r"\1\2", text)
TAGS_RE = re.compile(r'( *<[^>]+> *)+')
def remo... | 53.042553 | 164 | 0.656639 | 312 | 2,493 | 4.980769 | 0.25 | 0.070785 | 0.069498 | 0.048263 | 0.182754 | 0.160875 | 0.135135 | 0 | 0 | 0 | 0 | 0.003114 | 0.227036 | 2,493 | 47 | 165 | 53.042553 | 0.803321 | 0.008022 | 0 | 0 | 0 | 0.025 | 0.262434 | 0.051355 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.075 | null | null | 0.05 | 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 | 0 | 0 | 1 |
b775e120996b7fa63cd44677904ddbbcda73f976 | 760 | py | Python | urlauth/util.py | egguy/django-urlauth | 1f94a11983e183df15444dd7b405aaa667dfeebd | [
"BSD-3-Clause"
] | null | null | null | urlauth/util.py | egguy/django-urlauth | 1f94a11983e183df15444dd7b405aaa667dfeebd | [
"BSD-3-Clause"
] | null | null | null | urlauth/util.py | egguy/django-urlauth | 1f94a11983e183df15444dd7b405aaa667dfeebd | [
"BSD-3-Clause"
] | null | null | null | from future import standard_library
standard_library.install_aliases()
from datetime import datetime
import logging
from urlauth.models import AuthKey
class InvalidKey(Exception):
pass
def wrap_url(url, **kwargs):
"""
Create new authorization key and append it to the url.
"""
logging.error('ur... | 22.352941 | 95 | 0.697368 | 99 | 760 | 5.272727 | 0.555556 | 0.05364 | 0.038314 | 0.061303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209211 | 760 | 33 | 96 | 23.030303 | 0.868552 | 0.128947 | 0 | 0 | 0 | 0 | 0.167987 | 0.071315 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.055556 | 0.222222 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b776deb37789da6405558e8c16dce2bd6c24b574 | 1,803 | py | Python | septentrion/lib.py | peopledoc/septentrion | 7c91890f525878ed50ccb8be482d093b93ef77f2 | [
"MIT"
] | 7 | 2020-02-11T15:24:09.000Z | 2021-12-08T12:24:59.000Z | septentrion/lib.py | peopledoc/septentrion | 7c91890f525878ed50ccb8be482d093b93ef77f2 | [
"MIT"
] | 124 | 2018-12-06T14:42:13.000Z | 2022-03-14T21:37:09.000Z | septentrion/lib.py | peopledoc/septentrion | 7c91890f525878ed50ccb8be482d093b93ef77f2 | [
"MIT"
] | 1 | 2020-02-11T15:24:14.000Z | 2020-02-11T15:24:14.000Z | import logging
from typing import Iterable
from septentrion import core, db, files, migration, style, versions
logger = logging.getLogger(__name__)
def initialize(settings_kwargs):
quiet = settings_kwargs.pop("quiet", False)
stylist = style.noop_stylist if quiet else style.stylist
settings = core.initi... | 32.196429 | 82 | 0.77371 | 220 | 1,803 | 6.013636 | 0.240909 | 0.179894 | 0.163265 | 0.142857 | 0.346939 | 0.250189 | 0.250189 | 0 | 0 | 0 | 0 | 0 | 0.128674 | 1,803 | 55 | 83 | 32.781818 | 0.842139 | 0 | 0 | 0.194444 | 0 | 0 | 0.028841 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.083333 | 0 | 0.416667 | 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 | 0 | 0 | 0 | 1 |
b77963ecf6b23cb92a192cc80ac7b15d5c511172 | 3,731 | py | Python | src/dewloosh/solid/fem/tr.py | dewloosh/dewloosh-solid | dbd6757ddd1373df870ccd99f5ee791c08d342cb | [
"MIT"
] | null | null | null | src/dewloosh/solid/fem/tr.py | dewloosh/dewloosh-solid | dbd6757ddd1373df870ccd99f5ee791c08d342cb | [
"MIT"
] | null | null | null | src/dewloosh/solid/fem/tr.py | dewloosh/dewloosh-solid | dbd6757ddd1373df870ccd99f5ee791c08d342cb | [
"MIT"
] | null | null | null | import numpy as np
from numpy import ndarray
from numba import njit, prange
__cache = True
@njit(nogil=True, parallel=True, cache=__cache)
def element_transformation_matrices(Q: ndarray, nNE: int=2):
nE = Q.shape[0]
nEVAB = nNE * 6
res = np.zeros((nE, nEVAB, nEVAB), dtype=Q.dtype)
for iE in prange(nE)... | 28.480916 | 72 | 0.603055 | 570 | 3,731 | 3.84386 | 0.157895 | 0.05477 | 0.047467 | 0.076677 | 0.755819 | 0.689183 | 0.680055 | 0.632131 | 0.614788 | 0.607942 | 0 | 0.011005 | 0.269365 | 3,731 | 131 | 73 | 28.480916 | 0.792737 | 0.297775 | 0 | 0.538462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.123077 | false | 0 | 0.046154 | 0 | 0.292308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 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 | 1 |
b77f10daaeedbdbd72311d219eab28011e461cd5 | 7,194 | py | Python | lib/ansible/modules/cloud/alicloud/ali_eip_facts.py | atodorov/ansible-provider | 71d1bfebb43b020356145d20883af07779602a46 | [
"Apache-2.0"
] | 2 | 2021-01-28T15:36:00.000Z | 2021-08-12T18:56:15.000Z | lib/ansible/modules/cloud/alicloud/ali_eip_facts.py | yzd-wiety/ansible-provider-docs | de963aef7ee464737a99b6fa9d6ec4244b6a4c07 | [
"PSF-2.0",
"BSD-2-Clause",
"MIT"
] | null | null | null | lib/ansible/modules/cloud/alicloud/ali_eip_facts.py | yzd-wiety/ansible-provider-docs | de963aef7ee464737a99b6fa9d6ec4244b6a4c07 | [
"PSF-2.0",
"BSD-2-Clause",
"MIT"
] | null | null | null | #!/usr/bin/python
# Copyright (c) 2017 Alibaba Group Holding Limited. He Guimin <heguimin36@163.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of ... | 31.008621 | 119 | 0.62844 | 870 | 7,194 | 5.068966 | 0.317241 | 0.050794 | 0.065306 | 0.065306 | 0.187302 | 0.125624 | 0.097959 | 0.097959 | 0.075737 | 0.057143 | 0 | 0.016709 | 0.292883 | 7,194 | 231 | 120 | 31.142857 | 0.850206 | 0.112455 | 0 | 0.303665 | 0 | 0.015707 | 0.678656 | 0.015549 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005236 | false | 0 | 0.026178 | 0 | 0.031414 | 0.005236 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b77f4caf0f7a8bdffea47ae6573283b41440221a | 285 | py | Python | 09_func/02_func/11_scope.py | hemuke/python | bc99f2b5aee997083ae31f59a2b33db48c8255f3 | [
"Apache-2.0"
] | null | null | null | 09_func/02_func/11_scope.py | hemuke/python | bc99f2b5aee997083ae31f59a2b33db48c8255f3 | [
"Apache-2.0"
] | null | null | null | 09_func/02_func/11_scope.py | hemuke/python | bc99f2b5aee997083ae31f59a2b33db48c8255f3 | [
"Apache-2.0"
] | null | null | null | #! /root/anaconda3/bin/python
# 例子一
g = 18
def f1():
g = 19
print(g)
f1()
print(g)
# 例子二
def f2():
global g
g = 20
print(g)
f2()
print(g)
# 例子三
def f3():
g += 1
print(g)
try:
f3()
except Exception as err:
print(type(err))
print(err)
| 7.702703 | 29 | 0.501754 | 46 | 285 | 3.108696 | 0.521739 | 0.20979 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073684 | 0.333333 | 285 | 36 | 30 | 7.916667 | 0.678947 | 0.140351 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0 | 0 | 0.15 | 0.35 | 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 | 0 | 0 | 0 | 1 |
b780a56dd73a6c61aeb06dcbb6771e8d41669259 | 2,851 | py | Python | survey/migrations/0001_initial.py | Grindmix/survey-app | 74629379a9ff91e6a939a1197ff2d22b7ba56d2a | [
"BSD-3-Clause"
] | null | null | null | survey/migrations/0001_initial.py | Grindmix/survey-app | 74629379a9ff91e6a939a1197ff2d22b7ba56d2a | [
"BSD-3-Clause"
] | null | null | null | survey/migrations/0001_initial.py | Grindmix/survey-app | 74629379a9ff91e6a939a1197ff2d22b7ba56d2a | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 4.0 on 2021-12-28 23:15
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Question',
field... | 43.861538 | 172 | 0.587864 | 289 | 2,851 | 5.67474 | 0.304498 | 0.034146 | 0.05122 | 0.080488 | 0.507317 | 0.440854 | 0.440854 | 0.440854 | 0.440854 | 0.440854 | 0 | 0.01341 | 0.267625 | 2,851 | 64 | 173 | 44.546875 | 0.772031 | 0.015082 | 0 | 0.473684 | 1 | 0 | 0.126515 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.122807 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
b7814df1cea75c23508b837bedaf20b0d57d8b39 | 5,535 | py | Python | hard-gists/7301722/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 21 | 2019-07-08T08:26:45.000Z | 2022-01-24T23:53:25.000Z | hard-gists/7301722/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 5 | 2019-06-15T14:47:47.000Z | 2022-02-26T05:02:56.000Z | hard-gists/7301722/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 17 | 2019-05-16T03:50:34.000Z | 2021-01-14T14:35:12.000Z | """
Install twisted (pip install twisted) and PIL (pip install PIL), and run the script.
On your gateway, run the following commands:
iptables -t nat -A PREROUTING -i br0 -s ! 192.168.0.20 -p tcp --dport 80 -j DNAT --to 192.168.0.20:8080
iptables -t nat -A POSTROUTING -o br0 -s 192.168.0.0/24 -d 192.168.0.20 -j SNAT -... | 41.30597 | 103 | 0.529178 | 591 | 5,535 | 4.940778 | 0.335025 | 0.044521 | 0.047945 | 0.015411 | 0.148973 | 0.12089 | 0.110274 | 0.043836 | 0.014384 | 0.014384 | 0 | 0.029935 | 0.360253 | 5,535 | 133 | 104 | 41.616541 | 0.794691 | 0.054923 | 0 | 0.065217 | 0 | 0 | 0.09293 | 0 | 0 | 0 | 0.003387 | 0 | 0 | 0 | null | null | 0 | 0.054348 | null | null | 0.054348 | 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 | 0 | 0 | 1 |
b787c423ab6966db0a3e87313471a02ad2fbd012 | 1,492 | py | Python | wiating_backend/config.py | merito/wiating_backend | 942b5f92b1da27a62217b90e41b74787176996ef | [
"MIT"
] | 3 | 2020-01-28T21:09:11.000Z | 2021-04-05T19:09:47.000Z | wiating_backend/config.py | merito/wiating_backend | 942b5f92b1da27a62217b90e41b74787176996ef | [
"MIT"
] | null | null | null | wiating_backend/config.py | merito/wiating_backend | 942b5f92b1da27a62217b90e41b74787176996ef | [
"MIT"
] | 1 | 2020-11-28T14:34:02.000Z | 2020-11-28T14:34:02.000Z | from dotenv import load_dotenv, find_dotenv
from os import environ as env
from . import constants
ENV_FILE = find_dotenv()
if ENV_FILE:
load_dotenv(ENV_FILE)
class BaseConfig:
def __init__(self):
self.DEBUG = False
self.TESTING = False
self.AUTH0_CALLBACK_URL = env.get(constants.AUT... | 34.697674 | 75 | 0.706434 | 200 | 1,492 | 4.96 | 0.32 | 0.084677 | 0.211694 | 0.100806 | 0.148185 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021757 | 0.199062 | 1,492 | 42 | 76 | 35.52381 | 0.808368 | 0 | 0 | 0 | 0 | 0 | 0.018097 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0.032258 | 0.096774 | 0 | 0.193548 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b78cf9caa4a676f7f6be5eaa000a66ff01af6b08 | 2,032 | py | Python | sample-apps/imports-app/src/routes/imports.py | fakepop/hubspot-api-python | f04103a09f93f5c26c99991b25fa76801074f3d3 | [
"Apache-2.0"
] | 1 | 2020-11-12T08:46:32.000Z | 2020-11-12T08:46:32.000Z | sample-apps/imports-app/src/routes/imports.py | fakepop/hubspot-api-python | f04103a09f93f5c26c99991b25fa76801074f3d3 | [
"Apache-2.0"
] | null | null | null | sample-apps/imports-app/src/routes/imports.py | fakepop/hubspot-api-python | f04103a09f93f5c26c99991b25fa76801074f3d3 | [
"Apache-2.0"
] | null | null | null | import json
import tempfile
import os
from flask import Blueprint, render_template, request, redirect, url_for
from auth import auth_required
from helpers.hubspot import create_client
module = Blueprint("imports", __name__)
@module.route("/")
@auth_required
def list():
hubspot = create_client()
imports_page... | 27.459459 | 77 | 0.564469 | 195 | 2,032 | 5.682051 | 0.34359 | 0.054152 | 0.054152 | 0.056859 | 0.122744 | 0.122744 | 0.095668 | 0.095668 | 0.095668 | 0.095668 | 0 | 0 | 0.313976 | 2,032 | 73 | 78 | 27.835616 | 0.794835 | 0 | 0 | 0.186441 | 0 | 0 | 0.141732 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067797 | false | 0 | 0.338983 | 0.016949 | 0.474576 | 0.033898 | 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 | 0 | 0 | 0 | 1 |
b78fa5c50c435570710ac746e91195171c4e69b6 | 396 | py | Python | search/django/weedid/migrations/0002_auto_20201204_0148.py | Sydney-Informatics-Hub/Weed-ID-Interchange | d27891c2148de54d03727f688f8b6c6c414ec09b | [
"MIT"
] | 14 | 2021-11-29T12:16:59.000Z | 2022-03-20T00:26:10.000Z | search/django/weedid/migrations/0002_auto_20201204_0148.py | Sydney-Informatics-Hub/Weed-ID-Interchange | d27891c2148de54d03727f688f8b6c6c414ec09b | [
"MIT"
] | 282 | 2020-07-10T00:52:21.000Z | 2021-03-01T06:58:05.000Z | search/django/weedid/migrations/0002_auto_20201204_0148.py | Sydney-Informatics-Hub/Weed-ID-Interchange | d27891c2148de54d03727f688f8b6c6c414ec09b | [
"MIT"
] | 2 | 2020-10-07T06:12:39.000Z | 2021-02-02T05:21:32.000Z | # Generated by Django 2.2.13 on 2020-12-04 01:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("weedid", "0001_initial"),
]
operations = [
migrations.AlterField(
model_name="dataset",
name="upload_date",
... | 20.842105 | 65 | 0.60101 | 44 | 396 | 5.295455 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070423 | 0.282828 | 396 | 18 | 66 | 22 | 0.75 | 0.116162 | 0 | 0 | 1 | 0 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
b798677afed9837f19f874a7a0da6e234766271f | 1,888 | py | Python | steps/instance-stop/step.py | relay-integrations/google | 4485fcb099b7fb848d4636cda5cb4a96c9be61c1 | [
"Apache-2.0"
] | 1 | 2020-06-25T18:49:29.000Z | 2020-06-25T18:49:29.000Z | steps/instance-stop/step.py | relay-integrations/google | 4485fcb099b7fb848d4636cda5cb4a96c9be61c1 | [
"Apache-2.0"
] | 1 | 2020-11-09T22:50:39.000Z | 2020-11-12T18:53:31.000Z | steps/instance-stop/step.py | relay-integrations/google | 4485fcb099b7fb848d4636cda5cb4a96c9be61c1 | [
"Apache-2.0"
] | 2 | 2021-05-04T17:49:31.000Z | 2021-12-03T15:20:54.000Z | import googleapiclient.discovery
from google.oauth2 import service_account
from relay_sdk import Interface, Dynamic as D
import json
def slice(orig, keys):
return {key: orig[key] for key in keys if key in orig}
def do_stop_instance(compute, project_id, zone, name):
print('Stopping instance {0}'.format(name))... | 35.622642 | 132 | 0.702331 | 246 | 1,888 | 5.166667 | 0.394309 | 0.08812 | 0.084972 | 0.049567 | 0.133753 | 0.133753 | 0.110149 | 0.110149 | 0.110149 | 0.110149 | 0 | 0.006614 | 0.199153 | 1,888 | 52 | 133 | 36.307692 | 0.833995 | 0.121292 | 0 | 0 | 0 | 0 | 0.149335 | 0.016324 | 0 | 0 | 0 | 0.019231 | 0 | 1 | 0.078947 | false | 0 | 0.105263 | 0.026316 | 0.236842 | 0.052632 | 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 | 0 | 0 | 0 | 1 |
b7a2a6705d4660ae069da9e95c51bb9adabe01cb | 3,814 | py | Python | projects_python.py/lens_slice_project.py | thecodingsim/learn-python | bf8e98f40e73ebf7dcf5641312c2c0296d886952 | [
"MIT"
] | null | null | null | projects_python.py/lens_slice_project.py | thecodingsim/learn-python | bf8e98f40e73ebf7dcf5641312c2c0296d886952 | [
"MIT"
] | null | null | null | projects_python.py/lens_slice_project.py | thecodingsim/learn-python | bf8e98f40e73ebf7dcf5641312c2c0296d886952 | [
"MIT"
] | null | null | null | # You work at Len’s Slice, a new pizza joint in the neighborhood. You are going to use your knowledge of Python lists to organize some of your sales data.
# Your code below:
# Create a list called "toppings" to keep track of the kinds of pizzas you sell
toppings = [["Pepperoni"], ["Pineapple"], ["Cheese"], ["Sausage"]... | 55.275362 | 178 | 0.719455 | 604 | 3,814 | 4.43543 | 0.273179 | 0.070549 | 0.104517 | 0.025383 | 0.285928 | 0.235536 | 0.235536 | 0.1676 | 0.140724 | 0.125793 | 0 | 0.020615 | 0.147876 | 3,814 | 68 | 179 | 56.088235 | 0.803692 | 0.75721 | 0 | 0.173913 | 0 | 0 | 0.166853 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.521739 | 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 | 0 | 0 | 1 | 0 | 1 |
b7a947e33aa1cd4bd51396d414fd7aae5dc8f1a7 | 590 | py | Python | apps/partners/admin.py | Ralst0n/inspection-manager | 92ceea01fa581f955c2d5d3d77847e7f62c8df70 | [
"MIT"
] | 1 | 2019-02-07T05:03:30.000Z | 2019-02-07T05:03:30.000Z | apps/partners/admin.py | Ralst0n/inspection-manager | 92ceea01fa581f955c2d5d3d77847e7f62c8df70 | [
"MIT"
] | null | null | null | apps/partners/admin.py | Ralst0n/inspection-manager | 92ceea01fa581f955c2d5d3d77847e7f62c8df70 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import BusinessPartner, LetProject, PlannedProject, ProjectTeam
# Register your models here.
class LetProjectAdmin(admin.ModelAdmin):
list_display = ("agreement_number", "district", "winner", "let_date")
list_filter = ("district", "let_date")
admin.site.register(Le... | 36.875 | 76 | 0.79322 | 62 | 590 | 7.419355 | 0.451613 | 0.078261 | 0.147826 | 0.113043 | 0.178261 | 0.178261 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094915 | 590 | 15 | 77 | 39.333333 | 0.861423 | 0.044068 | 0 | 0 | 0 | 0 | 0.161922 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.636364 | 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 | 0 | 1 | 0 | 0 | 1 |
b7b3e932f86d437d8fb2686740da441744ade8a0 | 1,150 | py | Python | social_content/forms.py | chrisforrette/django-social-content | c1767e0b774e6c68590cc7be91f2d136dd7adbb7 | [
"MIT"
] | null | null | null | social_content/forms.py | chrisforrette/django-social-content | c1767e0b774e6c68590cc7be91f2d136dd7adbb7 | [
"MIT"
] | null | null | null | social_content/forms.py | chrisforrette/django-social-content | c1767e0b774e6c68590cc7be91f2d136dd7adbb7 | [
"MIT"
] | null | null | null | from django import forms
from .models import SocialAccount
class SocialAccountAdminForm(forms.ModelForm):
class Meta:
model = SocialAccount
exclude = ()
widgets = {
'raw_identifier': forms.HiddenInput()
}
labels = {
'raw_identifier': ''
}
... | 35.9375 | 171 | 0.597391 | 118 | 1,150 | 5.677966 | 0.508475 | 0.059701 | 0.101493 | 0.125373 | 0.077612 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.295652 | 1,150 | 31 | 172 | 37.096774 | 0.82716 | 0 | 0 | 0 | 0 | 0 | 0.258261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.08 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b7bd975144bc5d6139aceeb33477cc3f2069c1ad | 6,713 | py | Python | posts/views.py | duchungvu/ServEx | 83ebdb53fd3e2fba8d575dec66e0edfd5842c45f | [
"MIT"
] | 1 | 2020-03-16T18:57:12.000Z | 2020-03-16T18:57:12.000Z | posts/views.py | duchungvu/ServEx | 83ebdb53fd3e2fba8d575dec66e0edfd5842c45f | [
"MIT"
] | 2 | 2021-03-30T12:52:17.000Z | 2021-06-04T22:37:57.000Z | posts/views.py | duchungvu/ServEx | 83ebdb53fd3e2fba8d575dec66e0edfd5842c45f | [
"MIT"
] | 1 | 2021-08-29T21:41:19.000Z | 2021-08-29T21:41:19.000Z | from django.shortcuts import render, get_object_or_404
from .forms import UserProfileCreationForm, PostCreationForm, ReviewForm
from django.contrib.auth import authenticate, login, logout
from django.http import HttpResponseRedirect, HttpResponse
from django.contrib.auth.mixins import LoginRequiredMixin
from django.url... | 33.39801 | 141 | 0.676896 | 790 | 6,713 | 5.618987 | 0.192405 | 0.029736 | 0.030638 | 0.021626 | 0.203199 | 0.156567 | 0.100473 | 0.100473 | 0.089209 | 0.089209 | 0 | 0.003286 | 0.229257 | 6,713 | 201 | 142 | 33.39801 | 0.854658 | 0.065396 | 0 | 0.268966 | 0 | 0 | 0.113847 | 0.01487 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089655 | false | 0.02069 | 0.068966 | 0.013793 | 0.510345 | 0.02069 | 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 | 0 | 1 | 0 | 0 | 1 |
b7bf32ec3eefad5ac205404588d5e3f7db3b15fb | 428 | py | Python | backend/initiatives/migrations/0024_auto_20210413_1817.py | danesjenovdan/izboljsajmo-maribor | cd2f388ceb89d7989952ab05154fd8e7341c2b2b | [
"CC0-1.0"
] | null | null | null | backend/initiatives/migrations/0024_auto_20210413_1817.py | danesjenovdan/izboljsajmo-maribor | cd2f388ceb89d7989952ab05154fd8e7341c2b2b | [
"CC0-1.0"
] | null | null | null | backend/initiatives/migrations/0024_auto_20210413_1817.py | danesjenovdan/izboljsajmo-maribor | cd2f388ceb89d7989952ab05154fd8e7341c2b2b | [
"CC0-1.0"
] | null | null | null | # Generated by Django 3.1.5 on 2021-04-13 18:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('initiatives', '0023_auto_20210409_1539'),
]
operations = [
migrations.AlterField(
model_name='descriptiondefinition',
... | 22.526316 | 74 | 0.626168 | 45 | 428 | 5.822222 | 0.822222 | 0.068702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110759 | 0.261682 | 428 | 18 | 75 | 23.777778 | 0.718354 | 0.10514 | 0 | 0 | 1 | 0 | 0.170604 | 0.115486 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
b7c3ff50cb710c2ffdbcffdc411f554b21a151ba | 471 | py | Python | www/onionshare/files/patch-setup.py | elisboa/freebsd-ports | 0ffeeafad52e6fd772b86842a8d9bb5b16de3d95 | [
"BSD-2-Clause"
] | 7 | 2017-03-22T19:01:24.000Z | 2021-11-02T13:22:54.000Z | www/onionshare/files/patch-setup.py | elisboa/freebsd-ports | 0ffeeafad52e6fd772b86842a8d9bb5b16de3d95 | [
"BSD-2-Clause"
] | null | null | null | www/onionshare/files/patch-setup.py | elisboa/freebsd-ports | 0ffeeafad52e6fd772b86842a8d9bb5b16de3d95 | [
"BSD-2-Clause"
] | 4 | 2017-04-28T16:18:02.000Z | 2019-10-31T13:27:16.000Z | --- setup.py.orig 2018-07-11 06:12:43 UTC
+++ setup.py
@@ -54,7 +54,7 @@ data_files=[
(os.path.join(sys.prefix, 'share/onionshare/locale'), file_list('share/locale')),
(os.path.join(sys.prefix, 'share/onionshare/html'), file_list('share/html')),
]
-if platform.system() != 'OpenBSD':
+if not platf... | 39.25 | 110 | 0.651805 | 66 | 471 | 4.590909 | 0.590909 | 0.046205 | 0.066007 | 0.085809 | 0.224422 | 0.224422 | 0.224422 | 0 | 0 | 0 | 0 | 0.048662 | 0.127389 | 471 | 11 | 111 | 42.818182 | 0.688564 | 0 | 0 | 0 | 0 | 0 | 0.322718 | 0.254777 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b7ca62195e5b66e05380e20db164f7d57e768caf | 1,398 | py | Python | examples/p1/Pong.py | djpeach/pygamer | 77a0cdab58bc29d06cc88c8cc823850794fe0bf0 | [
"MIT"
] | null | null | null | examples/p1/Pong.py | djpeach/pygamer | 77a0cdab58bc29d06cc88c8cc823850794fe0bf0 | [
"MIT"
] | null | null | null | examples/p1/Pong.py | djpeach/pygamer | 77a0cdab58bc29d06cc88c8cc823850794fe0bf0 | [
"MIT"
] | null | null | null | import pygame
import pygamer
from Ball import Ball
class Pong(pygamer.Game):
def __init__(self, ball_speed, paddle_speed, ball_radius, window_size=(800, 600)):
super().__init__(window_size=window_size, bg_color=(255, 255, 255))
self.w, self.h = window_size
self.ball = Ball(ball_speed, (15... | 45.096774 | 117 | 0.585122 | 195 | 1,398 | 4.102564 | 0.220513 | 0.3 | 0.0975 | 0.10625 | 0.58125 | 0.4475 | 0.415 | 0.3775 | 0.3775 | 0.2825 | 0 | 0.02668 | 0.276109 | 1,398 | 30 | 118 | 46.6 | 0.763834 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.115385 | 0 | 0.230769 | 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 | 0 | 0 | 0 | 1 |
b7cdef8409fc6f1571033913d279a447a1e7a82e | 9,663 | py | Python | learning/modules/sentence_embeddings/sentence_embedding_loss.py | esteng/guiding-multi-step | 3f0db0ba70b5851cc83878f4ed48cf82342a2ddf | [
"BSD-2-Clause"
] | null | null | null | learning/modules/sentence_embeddings/sentence_embedding_loss.py | esteng/guiding-multi-step | 3f0db0ba70b5851cc83878f4ed48cf82342a2ddf | [
"BSD-2-Clause"
] | null | null | null | learning/modules/sentence_embeddings/sentence_embedding_loss.py | esteng/guiding-multi-step | 3f0db0ba70b5851cc83878f4ed48cf82342a2ddf | [
"BSD-2-Clause"
] | null | null | null | import torch
from torch import nn as nn
from torch.autograd import Variable
import warnings
from torch._C import _infer_size
def binary_cross_entropy_with_logits(input, target, weight=None, size_average=True, reduce=True):
r"""Function that measures Binary Cross Entropy between target and output
logits.
... | 41.472103 | 116 | 0.608714 | 1,238 | 9,663 | 4.655897 | 0.175283 | 0.064886 | 0.024983 | 0.029146 | 0.718251 | 0.69431 | 0.663602 | 0.657009 | 0.617453 | 0.617453 | 0 | 0.002907 | 0.288109 | 9,663 | 232 | 117 | 41.650862 | 0.835005 | 0.614716 | 0 | 0.292308 | 0 | 0 | 0.120087 | 0 | 0 | 0 | 0 | 0 | 0.046154 | 1 | 0.107692 | false | 0 | 0.076923 | 0 | 0.323077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 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 | 1 |
b7cea7df3d28a5743aca15965a227df64e975b58 | 655 | py | Python | webapp/clip/forms.py | Sitarko/VideoClips | d005d30987b16b959f81098da40e617b7e034605 | [
"MIT"
] | null | null | null | webapp/clip/forms.py | Sitarko/VideoClips | d005d30987b16b959f81098da40e617b7e034605 | [
"MIT"
] | null | null | null | webapp/clip/forms.py | Sitarko/VideoClips | d005d30987b16b959f81098da40e617b7e034605 | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField
from wtforms.validators import DataRequired
class Add_clip(FlaskForm):
clip_name = StringField(
'Название клипа',
validators=[DataRequired()],
render_kw={"class": "form-control"}
)
link = StringField(
... | 27.291667 | 46 | 0.616794 | 61 | 655 | 6.491803 | 0.47541 | 0.080808 | 0.131313 | 0.227273 | 0.348485 | 0.348485 | 0.348485 | 0 | 0 | 0 | 0 | 0 | 0.256489 | 655 | 24 | 47 | 27.291667 | 0.813142 | 0 | 0 | 0.26087 | 0 | 0 | 0.161585 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.130435 | 0 | 0.347826 | 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 | 0 | 0 | 0 | 1 |
b7cf34a767e8711f278ce916dace43841fc5f2df | 4,140 | py | Python | pgmpy/tests/test_base/test_UndirectedGraph.py | dungvtdev/upsbayescpm | f6ee877c689046d3c57a2ac06742cfe4a0b6550e | [
"MIT"
] | 1 | 2019-09-18T10:43:28.000Z | 2019-09-18T10:43:28.000Z | pgmpy/tests/test_base/test_UndirectedGraph.py | dungvtdev/upsbayescpm | f6ee877c689046d3c57a2ac06742cfe4a0b6550e | [
"MIT"
] | null | null | null | pgmpy/tests/test_base/test_UndirectedGraph.py | dungvtdev/upsbayescpm | f6ee877c689046d3c57a2ac06742cfe4a0b6550e | [
"MIT"
] | 2 | 2017-03-21T22:49:36.000Z | 2018-10-31T16:07:49.000Z | #!/usr/bin/env python3
from pgmpy.base import UndirectedGraph
from pgmpy.tests import help_functions as hf
import unittest
class TestUndirectedGraphCreation(unittest.TestCase):
def setUp(self):
self.graph = UndirectedGraph()
def test_class_init_without_data(self):
self.assertIsInstance(self.... | 40.588235 | 79 | 0.549034 | 532 | 4,140 | 4.086466 | 0.12782 | 0.149034 | 0.093836 | 0.080957 | 0.696412 | 0.530819 | 0.466421 | 0.301288 | 0.218031 | 0.184913 | 0 | 0.008986 | 0.247343 | 4,140 | 101 | 80 | 40.990099 | 0.688703 | 0.005072 | 0 | 0.175 | 0 | 0 | 0.04615 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.2125 | false | 0 | 0.0375 | 0 | 0.275 | 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 | 0 | 0 | 0 | 1 |
b7cf5eaaa7eba1afb1c7a59cc6a0dd63a87b2a76 | 7,579 | py | Python | parser.py | hubo1016/parser | 83ed24f8daccf28c80307fa927c38e0776ce1fd2 | [
"Apache-2.0"
] | 1 | 2019-09-24T16:22:37.000Z | 2019-09-24T16:22:37.000Z | parser.py | hubo1016/parser | 83ed24f8daccf28c80307fa927c38e0776ce1fd2 | [
"Apache-2.0"
] | null | null | null | parser.py | hubo1016/parser | 83ed24f8daccf28c80307fa927c38e0776ce1fd2 | [
"Apache-2.0"
] | null | null | null | """
Basic Parser structures
"""
import re
import reprlib
class ParserException(Exception):
def __init__(self, message, source, position):
super().__init__(self, message)
self.source = source
self.position = position
class ParserNotMatchException(ParserException):
pass
class ParserFa... | 33.387665 | 108 | 0.58992 | 891 | 7,579 | 4.8844 | 0.169473 | 0.048024 | 0.054688 | 0.04136 | 0.448529 | 0.405101 | 0.380744 | 0.335708 | 0.318934 | 0.30193 | 0 | 0.001151 | 0.312046 | 7,579 | 226 | 109 | 33.535398 | 0.833525 | 0 | 0 | 0.461538 | 0 | 0 | 0.036954 | 0.003781 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.027972 | 0.013986 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b7d044e2fd7d64282335c84fa1082e65b90108f5 | 2,465 | py | Python | FMT/FMT/Personnel/urls.py | DumisanBK/FMT | aa66d1e9597dd5ae7fc4eef8977193ec66ccbaca | [
"MIT"
] | null | null | null | FMT/FMT/Personnel/urls.py | DumisanBK/FMT | aa66d1e9597dd5ae7fc4eef8977193ec66ccbaca | [
"MIT"
] | 12 | 2021-03-19T12:48:23.000Z | 2022-03-12T00:54:21.000Z | FMT/FMT/Personnel/urls.py | DumisanBK/FMT | aa66d1e9597dd5ae7fc4eef8977193ec66ccbaca | [
"MIT"
] | null | null | null | from django.conf.urls import url
from django.contrib import admin
from django.contrib.auth.views import (
login, logout, password_reset, password_reset_done, password_reset_confirm, password_reset_complete
)
# from FMT.subscriptions.views import subscription_signup, subscription_unsubscribe
from . import views
u... | 60.121951 | 252 | 0.718053 | 311 | 2,465 | 5.456592 | 0.189711 | 0.051856 | 0.111373 | 0.076606 | 0.192104 | 0.091927 | 0.091927 | 0.041249 | 0 | 0 | 0 | 0.001799 | 0.098174 | 2,465 | 40 | 253 | 61.625 | 0.761583 | 0.267343 | 0 | 0 | 0 | 0.041667 | 0.469933 | 0.244989 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.291667 | 0.166667 | 0 | 0.166667 | 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 | 0 | 0 | 0 | 1 |
b7d274d4d7fb228fd2d965867fb49d94e834b5a0 | 1,099 | py | Python | src/app.py | educriado/junction-2016 | ec54eb4718b0077bd55614865fd1c6cb635313d4 | [
"Apache-2.0"
] | 1 | 2016-11-28T17:21:26.000Z | 2016-11-28T17:21:26.000Z | src/app.py | educriado/junction-2016 | ec54eb4718b0077bd55614865fd1c6cb635313d4 | [
"Apache-2.0"
] | null | null | null | src/app.py | educriado/junction-2016 | ec54eb4718b0077bd55614865fd1c6cb635313d4 | [
"Apache-2.0"
] | null | null | null | #!flask/bin/python
from flask import Flask
from flask import jsonify
from flask import request
from bot import Bot
app = Flask(__name__)
@app.route('/')
def index():
return "Hello, World!"
topics_count = {'cats': 1, 'sports': 1, 'music': 1}
topic_files = [i + '.aiml' for i in topics_count]
conversation = ['Natu... | 33.30303 | 364 | 0.730664 | 161 | 1,099 | 4.850932 | 0.52795 | 0.034571 | 0.057618 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014146 | 0.163785 | 1,099 | 32 | 365 | 34.34375 | 0.835691 | 0.080983 | 0 | 0 | 0 | 0.045455 | 0.408143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.181818 | null | null | 0.045455 | 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 | 0 | 0 | 1 |
b7d2865abbc2e8dce459a864c0bd9466c9078cfd | 6,220 | py | Python | minos/tests/dnadiff_mapping_based_verifier_test.py | leoisl/minos | c9d856c03c9dad3e760d25f6e1ae0c688380c3c1 | [
"MIT"
] | null | null | null | minos/tests/dnadiff_mapping_based_verifier_test.py | leoisl/minos | c9d856c03c9dad3e760d25f6e1ae0c688380c3c1 | [
"MIT"
] | null | null | null | minos/tests/dnadiff_mapping_based_verifier_test.py | leoisl/minos | c9d856c03c9dad3e760d25f6e1ae0c688380c3c1 | [
"MIT"
] | null | null | null | import filecmp
import os
import unittest
import glob
import pyfastaq
from cluster_vcf_records import vcf_file_read
from minos import dnadiff_mapping_based_verifier
modules_dir = os.path.dirname(os.path.abspath(dnadiff_mapping_based_verifier.__file__))
data_dir = os.path.join(modules_dir, 'tests', 'data', 'dnadiff_m... | 48.59375 | 226 | 0.705145 | 897 | 6,220 | 4.527313 | 0.139353 | 0.042847 | 0.066486 | 0.089633 | 0.780842 | 0.736026 | 0.661906 | 0.607732 | 0.521054 | 0.501847 | 0 | 0.020948 | 0.178778 | 6,220 | 127 | 227 | 48.976378 | 0.77408 | 0.01254 | 0 | 0.43 | 0 | 0 | 0.114952 | 0.06196 | 0 | 0 | 0 | 0 | 0.13 | 1 | 0.06 | false | 0 | 0.07 | 0 | 0.14 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 1 |
b7d29274a561627cb4d154e53af016be6018db27 | 1,242 | py | Python | mayan/apps/mayan_statistics/tests/test_views.py | CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons | 0e4e919fd2e1ded6711354a0330135283e87f8c7 | [
"Apache-2.0"
] | 2 | 2021-09-12T19:41:19.000Z | 2021-09-12T19:41:20.000Z | mayan/apps/mayan_statistics/tests/test_views.py | CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons | 0e4e919fd2e1ded6711354a0330135283e87f8c7 | [
"Apache-2.0"
] | 37 | 2021-09-13T01:00:12.000Z | 2021-10-02T03:54:30.000Z | mayan/apps/mayan_statistics/tests/test_views.py | CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons | 0e4e919fd2e1ded6711354a0330135283e87f8c7 | [
"Apache-2.0"
] | 1 | 2021-09-22T13:17:30.000Z | 2021-09-22T13:17:30.000Z | from mayan.apps.testing.tests.base import GenericViewTestCase
from ..classes import Statistic
from ..permissions import permission_statistics_view
from .mixins import StatisticsViewTestMixin
class StatisticsViewTestCase(StatisticsViewTestMixin, GenericViewTestCase):
def test_statistic_detail_view_no_pe... | 37.636364 | 76 | 0.76409 | 138 | 1,242 | 6.471014 | 0.268116 | 0.087346 | 0.071669 | 0.103024 | 0.703247 | 0.667413 | 0.615901 | 0.609183 | 0.609183 | 0.609183 | 0 | 0.013566 | 0.169082 | 1,242 | 32 | 77 | 38.8125 | 0.851744 | 0 | 0 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 1 | 0.190476 | false | 0 | 0.190476 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 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 | 1 |
b7d304e43bd7ee41d596880028267b218bb52642 | 2,569 | py | Python | app/config.py | MetaGenScope/metagenscope-server | 609cd57c626c857c8efde8237a1f22f4d1e6065d | [
"MIT"
] | null | null | null | app/config.py | MetaGenScope/metagenscope-server | 609cd57c626c857c8efde8237a1f22f4d1e6065d | [
"MIT"
] | null | null | null | app/config.py | MetaGenScope/metagenscope-server | 609cd57c626c857c8efde8237a1f22f4d1e6065d | [
"MIT"
] | null | null | null | """Environment configurations."""
# pylint: disable=too-few-public-methods,invalid-name
import os
class Config(object):
"""Parent configuration class."""
DEBUG = False
TESTING = False
SQLALCHEMY_TRACK_MODIFICATIONS = False
SECRET_KEY = os.environ.get('SECRET_KEY')
SQLALCHEMY_DATABASE_URI = ... | 27.329787 | 73 | 0.713896 | 304 | 2,569 | 5.792763 | 0.384868 | 0.06644 | 0.088586 | 0.061329 | 0.317433 | 0.286769 | 0.286769 | 0.244747 | 0.222033 | 0.195344 | 0 | 0.011538 | 0.190346 | 2,569 | 93 | 74 | 27.623656 | 0.835096 | 0.224212 | 0 | 0.314815 | 0 | 0 | 0.170682 | 0.08611 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.018519 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b7d4e7a4ad96ee0791033bee85cf3e3155efaf5c | 611 | py | Python | ex065/exercicio065.py | ArthurAlesi/Python-Exercicios-CursoEmVideo | ed0f0086ddbc0092df9d16ec2d8fdbabcb480cdd | [
"MIT"
] | null | null | null | ex065/exercicio065.py | ArthurAlesi/Python-Exercicios-CursoEmVideo | ed0f0086ddbc0092df9d16ec2d8fdbabcb480cdd | [
"MIT"
] | null | null | null | ex065/exercicio065.py | ArthurAlesi/Python-Exercicios-CursoEmVideo | ed0f0086ddbc0092df9d16ec2d8fdbabcb480cdd | [
"MIT"
] | null | null | null | '''
leia varios numeros inteiros pelo teclado
no final mostre a soma entre todos
o maior e o menor
o programa deve perguntar se el quer continuar ou nao a digitar válores
'''
num = int(input("Diga um numero"))
soma = num
maior = menor = num
continuar = str(input("Deseja continuar? [s] sim [n] não"))
while (continuar ... | 25.458333 | 71 | 0.643208 | 96 | 611 | 4.09375 | 0.46875 | 0.076336 | 0.05598 | 0.076336 | 0.396947 | 0.396947 | 0.396947 | 0.396947 | 0.244275 | 0.244275 | 0 | 0 | 0.230769 | 611 | 24 | 72 | 25.458333 | 0.83617 | 0.271686 | 0 | 0.266667 | 0 | 0 | 0.292906 | 0 | 0 | 0 | 0 | 0.041667 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b7d83d5953d090a1eb9a8971272d669bfe8a6375 | 696 | py | Python | facualty.py | aadityapritam00/Library_Management_project | 255413068e69670701381775415a5422aa49719b | [
"Unlicense"
] | 4 | 2019-07-20T11:50:43.000Z | 2019-07-20T11:50:56.000Z | facualty.py | aadityapritam00/Library_Management_project | 255413068e69670701381775415a5422aa49719b | [
"Unlicense"
] | null | null | null | facualty.py | aadityapritam00/Library_Management_project | 255413068e69670701381775415a5422aa49719b | [
"Unlicense"
] | 1 | 2019-07-26T10:02:36.000Z | 2019-07-26T10:02:36.000Z | import time
class Facualty:
def __init__(self):
self.fname=input("Enter Your Name \t\t:")
self.fid=input("Enter your Id \t\t:")
self.issued_book_facualty=[]
def req_book(self):
book_name=input("Enter the book name to put request")
def view_profil... | 40.941176 | 118 | 0.574713 | 71 | 696 | 4.239437 | 0.478873 | 0.099668 | 0.093023 | 0.146179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001848 | 0.222701 | 696 | 16 | 119 | 43.5 | 0.554529 | 0 | 0 | 0 | 0 | 0.076923 | 0.49569 | 0.326149 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0 | 0.384615 | 0.230769 | 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 | 0 | 0 | 0 | 1 |
b7da384b297a585e8099b9d3f7b21eb975daa99f | 9,272 | py | Python | python/qpid_dispatch_internal/tools/command.py | franz1981/qpid-dispatch | 21ee691eb0066d8061bf612f2fffa4c226ae7abb | [
"Apache-2.0"
] | 1 | 2019-03-17T04:08:43.000Z | 2019-03-17T04:08:43.000Z | python/qpid_dispatch_internal/tools/command.py | DalavanCloud/qpid-dispatch | 933b9df940983282067033e05b46e9665a266058 | [
"Apache-2.0"
] | null | null | null | python/qpid_dispatch_internal/tools/command.py | DalavanCloud/qpid-dispatch | 933b9df940983282067033e05b46e9665a266058 | [
"Apache-2.0"
] | null | null | null | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | 44.152381 | 169 | 0.645168 | 1,147 | 9,272 | 5.093287 | 0.256321 | 0.04519 | 0.031154 | 0.039541 | 0.232968 | 0.16912 | 0.110921 | 0.047244 | 0.03355 | 0.016433 | 0 | 0.002021 | 0.252912 | 9,272 | 209 | 170 | 44.363636 | 0.841345 | 0.222714 | 0 | 0.09375 | 0 | 0 | 0.19209 | 0.008081 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085938 | false | 0.203125 | 0.085938 | 0 | 0.3125 | 0.03125 | 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 | 0 | 0 | 0 | 1 |
b7dbab91b4dc68ff4e783b8f25f20c3ea6a78aa1 | 2,753 | py | Python | djangocms_comments/spam.py | gruy/djangocms-comments | d66b2a13c2cd5e7a68ab241e319bee0929ad8f33 | [
"MIT"
] | 11 | 2016-04-13T14:04:42.000Z | 2020-06-21T10:48:37.000Z | djangocms_comments/spam.py | gruy/djangocms-comments | d66b2a13c2cd5e7a68ab241e319bee0929ad8f33 | [
"MIT"
] | 14 | 2016-04-14T10:09:20.000Z | 2021-05-22T08:20:10.000Z | djangocms_comments/spam.py | gruy/djangocms-comments | d66b2a13c2cd5e7a68ab241e319bee0929ad8f33 | [
"MIT"
] | 11 | 2016-04-14T09:48:48.000Z | 2021-04-11T03:43:08.000Z | import six
try:
from django.utils.module_loading import import_string
except ImportError:
from django.utils.module_loading import import_by_path as import_string
import djangocms_comments
from . import settings
_spam_cache = {}
class SpamProtection(object):
def __init__(self, token=None, is_test=False,... | 39.328571 | 120 | 0.697058 | 359 | 2,753 | 5.089136 | 0.225627 | 0.071155 | 0.061303 | 0.057471 | 0.386973 | 0.386973 | 0.359606 | 0.315818 | 0.315818 | 0.315818 | 0 | 0.000449 | 0.190701 | 2,753 | 69 | 121 | 39.898551 | 0.819569 | 0 | 0 | 0.156863 | 0 | 0 | 0.053033 | 0.007991 | 0 | 0 | 0 | 0 | 0 | 1 | 0.196078 | false | 0.019608 | 0.156863 | 0.078431 | 0.529412 | 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 | 0 | 1 | 0 | 0 | 1 |
b7dbc1df0c458b1dafad09f9c90aeeb3893e49f9 | 717 | py | Python | batchout/tasks/writer.py | ilia-khaustov/batchout | e916a1b0bfac771e6c96d0ff2478dc3f44804a94 | [
"MIT"
] | 8 | 2019-11-05T06:54:30.000Z | 2021-12-14T14:52:24.000Z | batchout/tasks/writer.py | ilia-khaustov/batchout | e916a1b0bfac771e6c96d0ff2478dc3f44804a94 | [
"MIT"
] | null | null | null | batchout/tasks/writer.py | ilia-khaustov/batchout | e916a1b0bfac771e6c96d0ff2478dc3f44804a94 | [
"MIT"
] | 1 | 2020-05-05T09:31:14.000Z | 2020-05-05T09:31:14.000Z | import logging
from batchout.core.config import with_config_key
from batchout.core.registry import Registry
from batchout.tasks import Task
log = logging.getLogger(__name__)
class WriterTaskConfigInvalid(Exception):
pass
@with_config_key('selector', raise_exc=WriterTaskConfigInvalid)
@with_config_key('outputs... | 23.129032 | 63 | 0.714086 | 83 | 717 | 5.903614 | 0.409639 | 0.073469 | 0.079592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191074 | 717 | 30 | 64 | 23.9 | 0.844828 | 0 | 0 | 0 | 0 | 0 | 0.041841 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.047619 | 0.190476 | 0.095238 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
b7dd7c7e6915d801dee262c74df4715d91059b4a | 2,756 | py | Python | built_in_tasks/passivetasks.py | sgowda/brain-python-interface | 708e2a5229d0496a8ce9de32bda66f0925d366d9 | [
"Apache-2.0"
] | 7 | 2015-08-25T00:28:49.000Z | 2020-04-14T22:58:51.000Z | built_in_tasks/passivetasks.py | sgowda/brain-python-interface | 708e2a5229d0496a8ce9de32bda66f0925d366d9 | [
"Apache-2.0"
] | 35 | 2015-07-14T19:57:50.000Z | 2022-02-10T09:38:27.000Z | built_in_tasks/passivetasks.py | sgowda/brain-python-interface | 708e2a5229d0496a8ce9de32bda66f0925d366d9 | [
"Apache-2.0"
] | 4 | 2016-10-05T17:54:26.000Z | 2020-08-06T15:37:09.000Z | '''
Tasks which control a plant under pure machine control. Used typically for initializing BMI decoder parameters.
'''
import numpy as np
import time
import os
import pdb
import multiprocessing as mp
import pickle
import tables
import re
import tempfile, traceback, datetime
import riglib.bmi
from riglib.stereo_opengl... | 34.45 | 111 | 0.698476 | 328 | 2,756 | 5.692073 | 0.426829 | 0.037493 | 0.027852 | 0.023567 | 0.065345 | 0.065345 | 0.065345 | 0.065345 | 0.065345 | 0.065345 | 0 | 0.015632 | 0.210813 | 2,756 | 79 | 112 | 34.886076 | 0.842759 | 0.040276 | 0 | 0.032258 | 0 | 0 | 0.043989 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.112903 | false | 0.016129 | 0.290323 | 0.016129 | 0.596774 | 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 | 0 | 1 | 0 | 0 | 1 |
b7e5e3ccd5263f1561ecb9a2f64d97ec05d1da37 | 483 | py | Python | honoradar/migrations/0005_datacollection_jobstatus.py | Datenrausch/heroku-hosting | a68de6c26eebed3d38fa2a63a63ee2694a0629a6 | [
"MIT"
] | null | null | null | honoradar/migrations/0005_datacollection_jobstatus.py | Datenrausch/heroku-hosting | a68de6c26eebed3d38fa2a63a63ee2694a0629a6 | [
"MIT"
] | 3 | 2020-06-05T17:36:28.000Z | 2021-06-10T19:27:25.000Z | honoradar/migrations/0005_datacollection_jobstatus.py | Datenrausch/heroku-hosting | a68de6c26eebed3d38fa2a63a63ee2694a0629a6 | [
"MIT"
] | null | null | null | # Generated by Django 2.0 on 2018-02-11 15:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('honoradar', '0004_auto_20180211_1516'),
]
operations = [
migrations.AddField(
model_name='datacollection',
name='jobst... | 25.421053 | 138 | 0.602484 | 50 | 483 | 5.72 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087671 | 0.244306 | 483 | 18 | 139 | 26.833333 | 0.69589 | 0.089027 | 0 | 0 | 1 | 0 | 0.207763 | 0.052511 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
b7ed49618c78b9f357b8c9febf46fd1b846746db | 972 | py | Python | scraper/storage_spiders/anhngocvn.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | null | null | null | scraper/storage_spiders/anhngocvn.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | 10 | 2020-02-11T23:34:28.000Z | 2022-03-11T23:16:12.000Z | scraper/storage_spiders/anhngocvn.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | 3 | 2018-08-05T14:54:25.000Z | 2021-06-07T01:49:59.000Z | # Auto generated by generator.py. Delete this line if you make modification.
from scrapy.spiders import Rule
from scrapy.linkextractors import LinkExtractor
XPATH = {
'name' : "//div[@id='product_name']/h1",
'price' : "//div[@class='priceDetailBottom']",
'category' : "//div[@id='cat_path']/span/a",
'de... | 36 | 131 | 0.628601 | 119 | 972 | 4.97479 | 0.605042 | 0.04223 | 0.040541 | 0.050676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003555 | 0.131687 | 972 | 26 | 132 | 37.384615 | 0.697867 | 0.123457 | 0 | 0 | 1 | 0.043478 | 0.47821 | 0.289753 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.086957 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.