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
b95f2f6c2258ef8998ac2a053019013dbf870640
2,351
py
Python
account/views.py
KimSoungRyoul/drf_unitteset_study_project
9a0d824bdc6343eeba6209299c077a6e9d280516
[ "MIT" ]
null
null
null
account/views.py
KimSoungRyoul/drf_unitteset_study_project
9a0d824bdc6343eeba6209299c077a6e9d280516
[ "MIT" ]
null
null
null
account/views.py
KimSoungRyoul/drf_unitteset_study_project
9a0d824bdc6343eeba6209299c077a6e9d280516
[ "MIT" ]
null
null
null
# Create your views here. from django.db.models import QuerySet from django.utils.decorators import method_decorator from drf_yasg.utils import swagger_auto_schema from rest_framework import viewsets, status from rest_framework.permissions import IsAuthenticated, AllowAny from rest_framework.response import Response fr...
40.534483
103
0.722671
244
2,351
6.795082
0.368852
0.039807
0.051267
0.062726
0.205066
0.205066
0.115802
0
0
0
0
0.001579
0.191833
2,351
57
104
41.245614
0.871053
0.009783
0
0.18
0
0
0.047721
0
0
0
0
0
0
1
0.06
false
0
0.2
0
0.46
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
0
0
1
0
b95fe9aa9fab4f285d9028f8b01c9820d83254e4
3,831
py
Python
src/front-door/azext_front_door/_validators.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/front-door/azext_front_door/_validators.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/front-door/azext_front_door/_validators.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
35.472222
119
0.645262
429
3,831
5.426573
0.319347
0.07732
0.034364
0.037801
0.116838
0.116838
0.106529
0.065292
0
0
0
0.002024
0.226312
3,831
107
120
35.803738
0.783401
0.119029
0
0.057971
0
0
0.120285
0.021384
0
0
0
0
0
1
0.15942
false
0
0.072464
0
0.289855
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
0
0
1
0
b960f3f5be88ef82754359823e7c6a9b7ed78089
7,763
py
Python
mimesis/data/int/development.py
DevAerial/mimesis
33c58ae43e2f6ebc11e5ea7ebe8ac8917b2e1c0b
[ "MIT" ]
null
null
null
mimesis/data/int/development.py
DevAerial/mimesis
33c58ae43e2f6ebc11e5ea7ebe8ac8917b2e1c0b
[ "MIT" ]
1
2022-03-26T07:46:59.000Z
2022-03-26T07:47:20.000Z
mimesis/data/int/development.py
DevAerial/mimesis
33c58ae43e2f6ebc11e5ea7ebe8ac8917b2e1c0b
[ "MIT" ]
null
null
null
"""Provides all the data related to the development.""" LICENSES = [ "Apache License, 2.0 (Apache-2.0)", "The BSD 3-Clause License", "The BSD 2-Clause License", "GNU General Public License (GPL)", "General Public License (LGPL)", "MIT License (MIT)", "Mozilla Public License 2.0 (MPL-2.0)", ...
17.845977
61
0.551977
493
7,763
8.685598
0.900609
0.001868
0.004204
0
0
0
0
0
0
0
0
0.003572
0.278758
7,763
434
62
17.887097
0.761207
0.006312
0
0.004673
0
0
0.554748
0.002984
0
0
0
0
0
1
0
false
0
0
0
0
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
0
0
1
0
b962302fa813576c8cf57a4deea0db5f25dfb918
620
py
Python
docs/mathparse.py
pcmoritz/flow
bc97132e9e2d05262bb6bbad5bda173fd9f4ae92
[ "MIT" ]
16
2018-05-25T06:30:28.000Z
2020-08-08T00:03:47.000Z
docs/mathparse.py
pcmoritz/flow
bc97132e9e2d05262bb6bbad5bda173fd9f4ae92
[ "MIT" ]
46
2018-05-22T21:32:55.000Z
2019-06-12T13:10:02.000Z
docs/mathparse.py
pcmoritz/flow
bc97132e9e2d05262bb6bbad5bda173fd9f4ae92
[ "MIT" ]
6
2018-06-22T14:59:14.000Z
2019-08-29T06:00:34.000Z
""" A preliminary attempt at parsing an RST file's math syntax in order to make math render as inline rather than display mode. This doesn't work as of yet but might be useful. It could, however, be not useful if there's a pandoc option for converting .md to .rst that makes math inline and not display. Keeping it arou...
22.962963
70
0.693548
110
620
3.9
0.7
0
0
0
0
0
0
0
0
0
0
0.007874
0.180645
620
26
71
23.846154
0.836614
0.527419
0
0
0
0
0.550877
0.14386
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
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
0
0
0
0
0
0
0
0
1
0
b96253f9f9bc87e42d80842aebed3aa7dacb859b
1,994
py
Python
lib/layout/primitives.py
tailhook/pyzza
610be6ee4bea9b64f8226faf7338523fdafdf2cf
[ "MIT" ]
2
2015-08-07T15:39:25.000Z
2019-03-31T12:45:37.000Z
lib/layout/primitives.py
tailhook/pyzza
610be6ee4bea9b64f8226faf7338523fdafdf2cf
[ "MIT" ]
null
null
null
lib/layout/primitives.py
tailhook/pyzza
610be6ee4bea9b64f8226faf7338523fdafdf2cf
[ "MIT" ]
null
null
null
from layout import Shape, Widget from flash.text.engine import TextBlock, TextElement @package('layout') class Poly(Shape): __slots__ = ('fillcolor', 'sequence') def __init__(self, name, fillcolor, seq, states): super().__init__(name, states) self.fillcolor = fillcolor self.sequence = s...
32.688525
70
0.609829
243
1,994
4.823045
0.251029
0.081911
0.061433
0.048635
0.385666
0.208191
0.208191
0.153584
0.087031
0
0
0.007343
0.248746
1,994
60
71
33.233333
0.775033
0
0
0.415094
0
0
0.037111
0
0
0
0
0
0
1
0.150943
false
0
0.037736
0
0.320755
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
0
0
1
0
b963a238595dc05d6bc40e6f5888099b52a8fc14
20,515
py
Python
tests/testing_server.py
ImportTaste/WebRequest
0cc385622624de16ec980e0c12d9080d593cab74
[ "WTFPL" ]
null
null
null
tests/testing_server.py
ImportTaste/WebRequest
0cc385622624de16ec980e0c12d9080d593cab74
[ "WTFPL" ]
null
null
null
tests/testing_server.py
ImportTaste/WebRequest
0cc385622624de16ec980e0c12d9080d593cab74
[ "WTFPL" ]
null
null
null
import traceback import uuid import socket import logging import os import base64 import zlib import gzip import time import datetime from http import cookies from http.server import BaseHTTPRequestHandler from http.server import HTTPServer from threading import Thread import WebRequest def capture_expected_headers...
32.929374
165
0.640653
2,640
20,515
4.789015
0.141667
0.05948
0.062011
0.06644
0.689156
0.656411
0.627541
0.617338
0.573994
0.563474
0
0.023794
0.170314
20,515
622
166
32.982315
0.718994
0.064294
0
0.509091
0
0.020455
0.257064
0.096468
0
0
0
0
0.020455
1
0.015909
false
0.027273
0.034091
0.002273
0.079545
0.006818
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
0
1
0
b963e6196b8baa521ce89adb40142bf81a9183a6
3,770
py
Python
calcgrades.py
qrowsxi/calcgrades
93c71c1afef8dde5174726ae1702b71ccba633de
[ "MIT" ]
null
null
null
calcgrades.py
qrowsxi/calcgrades
93c71c1afef8dde5174726ae1702b71ccba633de
[ "MIT" ]
null
null
null
calcgrades.py
qrowsxi/calcgrades
93c71c1afef8dde5174726ae1702b71ccba633de
[ "MIT" ]
null
null
null
import csv import math import numpy as np import pandas import scipy.optimize import sys import argparse def ineq_constraint_1(v): return np.array([vi for vi in v]) def ineq_constraint_2(v): return np.array([-vi + 30 for vi in v]) class WeightAverage: def __init__(self, mean, csv): self.df = ...
35.566038
116
0.609284
514
3,770
4.356031
0.266537
0.024118
0.024565
0.021438
0.261724
0.193837
0.15096
0.118803
0.118803
0.118803
0
0.014457
0.247745
3,770
105
117
35.904762
0.775035
0
0
0.045977
0
0.011494
0.237135
0
0.011494
0
0
0
0
1
0.103448
false
0
0.08046
0.034483
0.287356
0.057471
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
0
1
0
b9652ceb78b45d3bef98c61d48e3cd4630133615
19,317
py
Python
sdk/python/pulumi_google_native/testing/v1/test_matrix.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
44
2021-04-18T23:00:48.000Z
2022-02-14T17:43:15.000Z
sdk/python/pulumi_google_native/testing/v1/test_matrix.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
354
2021-04-16T16:48:39.000Z
2022-03-31T17:16:39.000Z
sdk/python/pulumi_google_native/testing/v1/test_matrix.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
8
2021-04-24T17:46:51.000Z
2022-01-05T10:40:21.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
50.436031
458
0.67671
2,305
19,317
5.431236
0.12321
0.050084
0.047048
0.031872
0.714754
0.6316
0.609394
0.596134
0.567058
0.544373
0
0.001756
0.233421
19,317
382
459
50.568063
0.843666
0.344567
0
0.412766
1
0
0.165417
0.038828
0
0
0
0
0
1
0.148936
false
0.004255
0.034043
0.004255
0.285106
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
b965c021bcb2dac479172708e85ad9ed89f09ef2
5,427
py
Python
View/View.py
MoriokaReimen/ConfigHeaderGenerator
73ba5d3bd5269d7e6881ec79b6fc0121ff2fb03e
[ "MIT" ]
null
null
null
View/View.py
MoriokaReimen/ConfigHeaderGenerator
73ba5d3bd5269d7e6881ec79b6fc0121ff2fb03e
[ "MIT" ]
null
null
null
View/View.py
MoriokaReimen/ConfigHeaderGenerator
73ba5d3bd5269d7e6881ec79b6fc0121ff2fb03e
[ "MIT" ]
null
null
null
import tkinter as tk import tkinter.messagebox from Control import Control class View: def __init__(self, control : Control.Control): self.control = control # Init Window self.root = tk.Tk() self.root.title(u"Header File Generator") self.root.geometry("700x800") se...
43.071429
112
0.629445
696
5,427
4.741379
0.136494
0.06
0.058182
0.060606
0.763636
0.713939
0.665758
0.638485
0.6
0.535758
0
0.015036
0.252442
5,427
125
113
43.416
0.798373
0.00995
0
0.3125
0
0
0.054583
0
0
0
0
0
0
1
0.0625
false
0.010417
0.03125
0
0.104167
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
b9669e29ffa745ca4256305d7461bcbe497cc930
1,428
py
Python
tests/bugs/core_3355_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2022-02-05T11:37:13.000Z
2022-02-05T11:37:13.000Z
tests/bugs/core_3355_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-09-03T11:47:00.000Z
2021-09-03T12:42:10.000Z
tests/bugs/core_3355_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-06-30T14:14:16.000Z
2021-06-30T14:14:16.000Z
#coding:utf-8 # # id: bugs.core_3355 # title: Wrong comparsion of DATE and TIMESTAMP if index is used # decription: # tracker_id: CORE-3355 # min_versions: ['2.1.5'] # versions: 3.0 # qmid: None import pytest from firebird.qa import db_factory, isql_act, Action # version: 3.0 # resou...
25.052632
95
0.641457
216
1,428
4.074074
0.402778
0.047727
0.102273
0.143182
0.125
0.125
0.125
0.125
0.125
0.125
0
0.116872
0.203081
1,428
56
96
25.5
0.656415
0.168067
0
0.28125
0
0.0625
0.578231
0.035714
0
0
0
0
0.03125
1
0.03125
false
0
0.0625
0
0.09375
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
0
0
1
0
b967ba0197b144171458b230c2dfe31844ba0b72
5,231
py
Python
dags/download_decrypt_transfer_files.py
hms-dbmi/bch-pic-sure-airflow-dags
0c1e6f07da4e270581942e551ac30284474921d4
[ "Apache-2.0" ]
null
null
null
dags/download_decrypt_transfer_files.py
hms-dbmi/bch-pic-sure-airflow-dags
0c1e6f07da4e270581942e551ac30284474921d4
[ "Apache-2.0" ]
null
null
null
dags/download_decrypt_transfer_files.py
hms-dbmi/bch-pic-sure-airflow-dags
0c1e6f07da4e270581942e551ac30284474921d4
[ "Apache-2.0" ]
null
null
null
""" @author: anilkdegala """ import os from airflow import DAG from airflow.operators.bash_operator import BashOperator from airflow.operators.python_operator import PythonOperator, BranchPythonOperator from datetime import date, timedelta, datetime from collections import OrderedDict from scripts.dag_pebbles import ...
30.770588
171
0.664118
585
5,231
5.586325
0.218803
0.055692
0.066095
0.025704
0.250306
0.222766
0.168605
0.146573
0.083843
0.083843
0
0.002979
0.229975
5,231
169
172
30.952663
0.808342
0.003823
0
0.201493
0
0
0.208149
0.111474
0.022388
0
0
0
0
1
0.059701
false
0.052239
0.074627
0
0.149254
0.074627
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
b96834dcae4311b040352e86ae4bdc019619193a
7,518
py
Python
keystone-moon/keystone/endpoint_policy/controllers.py
hashnfv/hashnfv-moon
daaba34fa2ed4426bc0fde359e54a5e1b872208c
[ "Apache-2.0" ]
null
null
null
keystone-moon/keystone/endpoint_policy/controllers.py
hashnfv/hashnfv-moon
daaba34fa2ed4426bc0fde359e54a5e1b872208c
[ "Apache-2.0" ]
null
null
null
keystone-moon/keystone/endpoint_policy/controllers.py
hashnfv/hashnfv-moon
daaba34fa2ed4426bc0fde359e54a5e1b872208c
[ "Apache-2.0" ]
1
2021-03-21T11:38:30.000Z
2021-03-21T11:38:30.000Z
# Copyright 2014 IBM Corp. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
45.017964
79
0.699654
921
7,518
5.374593
0.148751
0.048485
0.04
0.063636
0.655152
0.632323
0.603838
0.585051
0.565657
0.565657
0
0.002225
0.222666
7,518
166
80
45.289157
0.844798
0.186752
0
0.617391
0
0
0.0341
0
0
0
0
0
0
1
0.156522
false
0
0.026087
0
0.243478
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
0
0
1
0
b96893ff0c22487256e91c812d37a56c2c479eb3
11,886
py
Python
src/nibetaseries/cli/run.py
ipacheco-uy/NiBetaSeries
3d8716552f22f925524d80af9aace09469c22d4d
[ "MIT" ]
1
2019-10-03T21:20:48.000Z
2019-10-03T21:20:48.000Z
src/nibetaseries/cli/run.py
ipacheco-uy/NiBetaSeries
3d8716552f22f925524d80af9aace09469c22d4d
[ "MIT" ]
null
null
null
src/nibetaseries/cli/run.py
ipacheco-uy/NiBetaSeries
3d8716552f22f925524d80af9aace09469c22d4d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Module that contains the command line app. Why does this file exist, and why not put this in __main__? You might be tempted to import things from __main__ later, but that will cause problems: the code will get executed twice: - When you run `python -m nibetaser...
46.611765
98
0.595406
1,345
11,886
5.090706
0.292193
0.04659
0.02848
0.019425
0.121075
0.050241
0.032715
0.0222
0
0
0
0.003775
0.309187
11,886
254
99
46.795276
0.830106
0.110887
0
0.021739
0
0
0.309284
0.00693
0
0
0
0.003937
0
1
0.016304
false
0.016304
0.059783
0
0.081522
0.005435
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
0
1
0
b9693ae1ef191dd2735a2abba99bb1bc689af26f
2,727
py
Python
custom_components/senz/config_flow.py
astrandb/senz_hass
6725d37fd9c6d250ac10a16e68c56908bf1c8404
[ "MIT" ]
2
2022-01-15T09:55:58.000Z
2022-02-10T10:13:35.000Z
custom_components/senz/config_flow.py
astrandb/senz_hass
6725d37fd9c6d250ac10a16e68c56908bf1c8404
[ "MIT" ]
4
2022-01-15T19:41:28.000Z
2022-02-14T16:01:47.000Z
custom_components/senz/config_flow.py
astrandb/senz_hass
6725d37fd9c6d250ac10a16e68c56908bf1c8404
[ "MIT" ]
null
null
null
"""Config flow for SENZ WiFi.""" from __future__ import annotations import logging from typing import Any import voluptuous as vol from homeassistant.components import persistent_notification from homeassistant.data_entry_flow import FlowResult from homeassistant.helpers import config_entry_oauth2_flow from .const ...
34.518987
184
0.671067
320
2,727
5.503125
0.353125
0.030664
0.022147
0.02385
0.126065
0.070415
0.038614
0
0
0
0
0.002411
0.239457
2,727
78
185
34.961538
0.846673
0.056839
0
0.074074
0
0.018519
0.135615
0.024081
0
0
0
0
0
1
0.037037
false
0
0.166667
0
0.37037
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
0
0
1
0
b9697b05a9b44247d80463465fa92118d707fb98
6,465
py
Python
astropy_helpers/git_helpers.py
bsipocz/astropy-helpers
4999df1cfb6a5022347b0cef9caf8a556517c625
[ "PSF-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
9
2019-12-06T13:12:33.000Z
2021-10-05T12:47:15.000Z
astropy_helpers/git_helpers.py
bsipocz/astropy-helpers
4999df1cfb6a5022347b0cef9caf8a556517c625
[ "PSF-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
2
2019-11-28T17:20:27.000Z
2019-12-09T18:44:35.000Z
astropy_helpers/git_helpers.py
bsipocz/astropy-helpers
4999df1cfb6a5022347b0cef9caf8a556517c625
[ "PSF-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
3
2019-11-28T17:04:22.000Z
2021-10-19T13:12:34.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ Utilities for retrieving revision information from a project's git repository. """ # Do not remove the following comment; it is used by # astropy_helpers.version_helpers to determine the beginning of the code in # this module # BEGIN import locale ...
33.324742
79
0.612065
870
6,465
4.493103
0.302299
0.018419
0.02814
0.021489
0.17012
0.113072
0.048606
0.015861
0
0
0
0.010664
0.30379
6,465
193
80
33.497409
0.857809
0.403094
0
0.234043
0
0
0.08601
0
0
0
0
0
0
1
0.053191
false
0
0.042553
0
0.287234
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
0
0
1
0
b96b280416f0d557826ffa670a7914f2d45e5fc5
526
py
Python
src/sot_talos_balance/test/test_feet_admittance.py
imaroger/sot-talos-balance
5e56700b4e105273ecf6feb3474789beac469a77
[ "BSD-2-Clause" ]
null
null
null
src/sot_talos_balance/test/test_feet_admittance.py
imaroger/sot-talos-balance
5e56700b4e105273ecf6feb3474789beac469a77
[ "BSD-2-Clause" ]
null
null
null
src/sot_talos_balance/test/test_feet_admittance.py
imaroger/sot-talos-balance
5e56700b4e105273ecf6feb3474789beac469a77
[ "BSD-2-Clause" ]
null
null
null
'''Test feet admittance control''' from sot_talos_balance.utils.run_test_utils import run_ft_calibration, run_test, runCommandClient try: # Python 2 input = raw_input # noqa except NameError: pass run_test('appli_feet_admittance.py') run_ft_calibration('robot.ftc') input("Wait before running the test") ...
25.047619
97
0.752852
79
526
4.822785
0.556962
0.047244
0.055118
0.052493
0.028871
0
0
0
0
0
0
0.030369
0.123574
526
20
98
26.3
0.796095
0.081749
0
0
0
0.083333
0.42437
0.17437
0
0
0
0
0
1
0
false
0.083333
0.083333
0
0.083333
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
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
b96bb8e94e8bbfe556cc0ad3a314b6991573aa47
544
py
Python
tests/test_db.py
davebryson/py-tendermint
ec6a38a54950d9841759b0f2ed93659b58948a03
[ "Apache-2.0" ]
24
2017-08-18T20:36:27.000Z
2020-03-27T08:55:39.000Z
tests/test_db.py
davebryson/py-tendermint
ec6a38a54950d9841759b0f2ed93659b58948a03
[ "Apache-2.0" ]
6
2017-10-14T05:50:34.000Z
2019-06-03T08:39:49.000Z
tests/test_db.py
davebryson/py-tendermint
ec6a38a54950d9841759b0f2ed93659b58948a03
[ "Apache-2.0" ]
5
2018-01-09T11:07:06.000Z
2019-06-02T14:34:34.000Z
import os from tendermint.db import VanillaDB from tendermint.utils import home_dir def test_database(): dbfile = home_dir('temp', 'test.db') db = VanillaDB(dbfile) db.set(b'dave',b'one') result = db.get(b'dave') assert(b'one' == result) db.set(b'dave',b'two') result = db.get(b'dave') ...
20.923077
42
0.621324
84
544
3.988095
0.357143
0.104478
0.053731
0.059701
0.316418
0.137313
0.137313
0
0
0
0
0
0.204044
544
25
43
21.76
0.773672
0
0
0.111111
0
0
0.113971
0
0
0
0
0
0.277778
1
0.055556
false
0
0.166667
0
0.222222
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
0
0
1
0
b96d766a7c5eab27eb3785b1277b6beccda7c9ed
1,446
py
Python
auth/tests/test_views.py
asb29/Redundant
ee816fd41f9217610bd11f757cf9175288723c70
[ "MIT" ]
null
null
null
auth/tests/test_views.py
asb29/Redundant
ee816fd41f9217610bd11f757cf9175288723c70
[ "MIT" ]
null
null
null
auth/tests/test_views.py
asb29/Redundant
ee816fd41f9217610bd11f757cf9175288723c70
[ "MIT" ]
null
null
null
from django.test import TestCase from django.test import Client class RegisterTestCase(TestCase): def test_register(self): c = Client() # on success redirects to / response = c.post('/accounts/register/', { 'username': 'asdas', 'password1': 'asdasdasd12', ...
30.125
52
0.53527
116
1,446
6.62931
0.37931
0.058518
0.084525
0.136541
0.563069
0.453836
0.117035
0
0
0
0
0.037344
0.333333
1,446
47
53
30.765957
0.760373
0.076763
0
0.571429
0
0
0.258841
0
0
0
0
0
0.142857
1
0.028571
false
0.285714
0.057143
0
0.114286
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
b96f6c5854c1e905c9ad5d8f08d016972c710a1f
4,134
py
Python
projects/OneNet/onenet/head.py
iFighting/OneNet
6e33b46d2aa13131262833c75f0fd1c3d224ef03
[ "MIT" ]
2
2021-06-16T01:31:17.000Z
2021-11-25T15:27:28.000Z
projects/OneNet/onenet/head.py
xieenze/OneNet
3b06ad6832727cef4c0262389de4cdbb2a666197
[ "MIT" ]
null
null
null
projects/OneNet/onenet/head.py
xieenze/OneNet
3b06ad6832727cef4c0262389de4cdbb2a666197
[ "MIT" ]
1
2021-02-04T06:38:42.000Z
2021-02-04T06:38:42.000Z
# # Modified by Peize Sun # Contact: sunpeize@foxmail.com # # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved """ OneNet Transformer class. Copy-paste from torch.nn.Transformer with modifications: * positional encodings are passed in MHattention * extra LN at the end of encoder is removed ...
32.296875
94
0.600871
523
4,134
4.57935
0.323136
0.030063
0.023382
0.021294
0.096868
0.096868
0.073486
0.06263
0
0
0
0.023834
0.27939
4,134
127
95
32.551181
0.780128
0.159168
0
0.054795
0
0
0.017788
0
0
0
0
0
0
1
0.082192
false
0
0.123288
0
0.30137
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
0
0
1
0
b96fae5c29fd446ea7199733a629bbe0f6190046
49,876
py
Python
mermaid/utils.py
HastingsGreer/mermaid
bd13c5fc427eb8cd9054973a8eaaeb302078182d
[ "Apache-2.0" ]
120
2019-10-29T23:53:02.000Z
2022-03-30T02:59:58.000Z
mermaid/utils.py
AlexanderChristgau/mermaid
ba07883cc3cb5982e4655048a434b4495cb49c6d
[ "Apache-2.0" ]
10
2019-11-05T09:28:35.000Z
2022-01-09T19:12:51.000Z
mermaid/utils.py
AlexanderChristgau/mermaid
ba07883cc3cb5982e4655048a434b4495cb49c6d
[ "Apache-2.0" ]
19
2019-11-10T13:34:39.000Z
2022-03-13T20:30:10.000Z
"""Various utility functions. .. todo:: Reorganize this package in a more meaningful way. """ from __future__ import print_function from __future__ import absolute_import # from builtins import str # from builtins import range import torch from torch.nn.parameter import Parameter from torch.autograd import Variab...
34.805304
130
0.602675
7,191
49,876
4.027673
0.09053
0.014812
0.008286
0.009944
0.610192
0.579187
0.554121
0.517074
0.488451
0.471084
0
0.027274
0.263413
49,876
1,432
131
34.829609
0.761092
0.272035
0
0.502488
0
0.001244
0.064918
0
0
0
0
0.003492
0.001244
1
0.087065
false
0
0.026119
0
0.201493
0.016169
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
0
1
0
b96fca03cef0164231c4fa09bc83db6c5b2aa7db
1,093
py
Python
examples/io/plot_read_evoked.py
fmamashli/mne-python
52f064415e7c9fa8fe243d22108dcdf3d86505b9
[ "BSD-3-Clause" ]
3
2021-01-04T08:45:56.000Z
2021-05-19T12:25:59.000Z
examples/io/plot_read_evoked.py
fmamashli/mne-python
52f064415e7c9fa8fe243d22108dcdf3d86505b9
[ "BSD-3-Clause" ]
28
2020-05-07T00:58:34.000Z
2020-08-29T23:02:17.000Z
examples/io/plot_read_evoked.py
fmamashli/mne-python
52f064415e7c9fa8fe243d22108dcdf3d86505b9
[ "BSD-3-Clause" ]
3
2019-01-28T13:48:00.000Z
2019-07-10T16:02:11.000Z
""" ================================== Reading and writing an evoked file ================================== This script shows how to read and write evoked datasets. """ # Author: Alexandre Gramfort <alexandre.gramfort@inria.fr> # # License: BSD (3-clause) from mne import read_evokeds from mne.datasets import sample ...
29.540541
79
0.569076
130
1,093
4.676923
0.592308
0.039474
0.039474
0.042763
0
0
0
0
0
0
0
0.003165
0.132662
1,093
36
80
30.361111
0.638186
0.47667
0
0
0
0
0.120603
0.082915
0
0
0
0
0
1
0
false
0
0.2
0
0.2
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
0
0
0
0
0
0
0
0
1
0
b970d836b7397be4bc4d63762c0eec8adfb90a91
611
py
Python
source/monkeyPatches/__init__.py
lukaszgo1/nvda
38a2efd1e1bff7db4471cb7afa03ab1590b7adef
[ "bzip2-1.0.6" ]
19
2016-05-11T05:15:31.000Z
2022-03-17T12:40:10.000Z
source/monkeyPatches/__init__.py
lukaszgo1/nvda
38a2efd1e1bff7db4471cb7afa03ab1590b7adef
[ "bzip2-1.0.6" ]
307
2015-08-27T11:22:33.000Z
2022-03-29T10:43:34.000Z
source/monkeyPatches/__init__.py
lukaszgo1/nvda
38a2efd1e1bff7db4471cb7afa03ab1590b7adef
[ "bzip2-1.0.6" ]
14
2016-03-28T07:31:49.000Z
2022-03-30T04:56:35.000Z
# A part of NonVisual Desktop Access (NVDA) # Copyright (C) 2021 NV Access Limited # This file is covered by the GNU General Public License. # See the file COPYING for more details. from . import wxMonkeyPatches applyWxMonkeyPatches = wxMonkeyPatches.apply def applyMonkeyPatches(): # Apply several mon...
30.55
86
0.761047
75
611
6.146667
0.773333
0.065076
0
0
0
0
0
0
0
0
0
0.020243
0.191489
611
19
87
32.157895
0.912955
0.605565
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.5
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
b970f8ccb56e24dd8d65fd92869bbf7790f6e611
5,298
py
Python
yt_dlp/extractor/ninenow.py
nxtreaming/yt-dlp
385ffb467b2285e85a2a5495b90314ba1f8e0700
[ "Unlicense" ]
11
2022-01-06T22:09:50.000Z
2022-03-12T22:26:22.000Z
yt_dlp/extractor/ninenow.py
nxtreaming/yt-dlp
385ffb467b2285e85a2a5495b90314ba1f8e0700
[ "Unlicense" ]
4
2022-02-25T08:20:18.000Z
2022-03-17T16:16:20.000Z
yt_dlp/extractor/ninenow.py
nxtreaming/yt-dlp
385ffb467b2285e85a2a5495b90314ba1f8e0700
[ "Unlicense" ]
3
2022-02-19T08:59:13.000Z
2022-03-06T16:11:21.000Z
from .common import InfoExtractor from ..compat import compat_str from ..utils import ( ExtractorError, int_or_none, float_or_none, smuggle_url, str_or_none, try_get, unified_strdate, unified_timestamp, ) class NineNowIE(InfoExtractor): IE_NAME = '9now.com.au' _VALID_URL = r'ht...
43.073171
146
0.575123
608
5,298
4.784539
0.317434
0.044689
0.045376
0.060502
0.266758
0.231351
0.207631
0.207631
0.131317
0.081815
0
0.041958
0.271234
5,298
122
147
43.42623
0.711474
0.008305
0
0.117117
0
0.045045
0.29358
0.038484
0
0
0
0
0
1
0.009009
false
0
0.027027
0
0.099099
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
0
0
1
0
b97242dec299cf214174fe1ceb1c2d4c7e16b595
4,783
py
Python
apex/fp16_utils/fused_weight_norm.py
mcarilli/apex
766e36c9e10fe4efd847c3f77c3b38974c89eab1
[ "BSD-3-Clause" ]
1
2020-05-05T01:37:42.000Z
2020-05-05T01:37:42.000Z
apex/fp16_utils/fused_weight_norm.py
mcarilli/apex
766e36c9e10fe4efd847c3f77c3b38974c89eab1
[ "BSD-3-Clause" ]
1
2018-06-24T18:56:56.000Z
2018-06-24T18:56:56.000Z
apex/fp16_utils/fused_weight_norm.py
mcarilli/apex
766e36c9e10fe4efd847c3f77c3b38974c89eab1
[ "BSD-3-Clause" ]
1
2020-07-03T00:37:20.000Z
2020-07-03T00:37:20.000Z
import torch from torch.autograd import Variable from torch.autograd.function import Function, once_differentiable import apex_C def check_contig_cuda(tensors, names): for tensor, name in zip(tensors, names): if not tensor.is_contiguous(): raise RuntimeError(name+" with size {} is not contiguou...
41.95614
175
0.604223
590
4,783
4.805085
0.305085
0.035273
0.035273
0.02328
0.120282
0.111111
0.092063
0.047266
0.047266
0.047266
0
0.010423
0.29793
4,783
113
176
42.327434
0.83383
0.343717
0
0.043478
0
0
0.081547
0
0
0
0
0
0
1
0.065217
false
0
0.086957
0
0.217391
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
0
0
1
0
b9724b70833f729e47c38eb018294247250b7282
23,312
py
Python
bzt/modules/grinder.py
gerardorf/taurus
610872b4cf70af31d79a346db1aebd3466310d77
[ "Apache-2.0" ]
1
2019-01-15T17:23:58.000Z
2019-01-15T17:23:58.000Z
bzt/modules/grinder.py
gerardorf/taurus
610872b4cf70af31d79a346db1aebd3466310d77
[ "Apache-2.0" ]
null
null
null
bzt/modules/grinder.py
gerardorf/taurus
610872b4cf70af31d79a346db1aebd3466310d77
[ "Apache-2.0" ]
null
null
null
""" Module holds all stuff regarding Grinder tool usage Copyright 2015 BlazeMeter Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless require...
40.82662
119
0.618823
2,872
23,312
4.843663
0.174791
0.016677
0.024297
0.03163
0.199123
0.137014
0.093379
0.057652
0.034936
0.024297
0
0.007742
0.263126
23,312
570
120
40.898246
0.802072
0.069878
0
0.08867
0
0.002463
0.155468
0.032096
0
0
0
0.001754
0
1
0.068966
false
0.007389
0.044335
0.002463
0.189655
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
0
0
1
0
b972e358701b6b26d8d3c931dfecc57580620c15
467
py
Python
test/Fortran/fixture/myfortran_flags.py
moroten/scons
20927b42ed4f0cb87f51287fa3b4b6cf915afcf8
[ "MIT" ]
1,403
2017-11-23T14:24:01.000Z
2022-03-30T20:59:39.000Z
test/Fortran/fixture/myfortran_flags.py
moroten/scons
20927b42ed4f0cb87f51287fa3b4b6cf915afcf8
[ "MIT" ]
3,708
2017-11-27T13:47:12.000Z
2022-03-29T17:21:17.000Z
test/Fortran/fixture/myfortran_flags.py
moroten/scons
20927b42ed4f0cb87f51287fa3b4b6cf915afcf8
[ "MIT" ]
281
2017-12-01T23:48:38.000Z
2022-03-31T15:25:44.000Z
import getopt import sys comment = ('#' + sys.argv[1]).encode() opts, args = getopt.getopt(sys.argv[2:], 'cf:o:xy') optstring = '' length = len(comment) for opt, arg in opts: if opt == '-o': out = arg elif opt not in ('-f', '-K'): optstring = optstring + ' ' + opt infile = open(args[0], 'rb') outfile = open(out...
27.470588
67
0.601713
71
467
3.957746
0.521127
0.049822
0
0
0
0
0
0
0
0
0
0.010526
0.186296
467
16
68
29.1875
0.728947
0
0
0
0
0
0.044968
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
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
0
0
1
0
b9736fc25869ac44481082e255dc93e0f52aa441
9,015
py
Python
zen_knit/organizer/__init__.py
Zen-Reportz/zen_knit
104c2693d2cc61520657131da769f5d59d2df8e9
[ "MIT" ]
30
2021-12-25T15:39:42.000Z
2022-02-25T04:53:44.000Z
zen_knit/organizer/__init__.py
Zen-Reportz/zen_knit
104c2693d2cc61520657131da769f5d59d2df8e9
[ "MIT" ]
11
2022-01-02T22:10:07.000Z
2022-02-02T00:56:33.000Z
zen_knit/organizer/__init__.py
Zen-Reportz/zen_knit
104c2693d2cc61520657131da769f5d59d2df8e9
[ "MIT" ]
2
2022-01-27T13:22:46.000Z
2022-01-30T05:01:59.000Z
import io import os import base64 from pathlib import Path from nbconvert import filters from pygments.formatters.latex import LatexFormatter from zen_knit import formattor from zen_knit.data_types import ChunkOption, ExecutedData, OrganizedChunk, OrganizedData from zen_knit.formattor.html_formatter import HTMLFormat...
37.5625
139
0.533888
991
9,015
4.617558
0.158426
0.051136
0.055726
0.050262
0.429851
0.375219
0.328234
0.218094
0.17264
0.138549
0
0.002933
0.357072
9,015
240
140
37.5625
0.786577
0.058569
0
0.3
0
0
0.084464
0
0
0
0
0
0
1
0.072222
false
0
0.05
0
0.244444
0.022222
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
0
1
0
b974558759b358f82c2d72d79bab9c7dc3e35a76
12,467
py
Python
qibullet/robot_virtual.py
mcaniot/qibullet
9c5e1b319a18dd289263eb82f9d7303429bcbe21
[ "Apache-2.0" ]
null
null
null
qibullet/robot_virtual.py
mcaniot/qibullet
9c5e1b319a18dd289263eb82f9d7303429bcbe21
[ "Apache-2.0" ]
null
null
null
qibullet/robot_virtual.py
mcaniot/qibullet
9c5e1b319a18dd289263eb82f9d7303429bcbe21
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 import sys import pybullet from qibullet.camera import * from qibullet.link import Link from qibullet.joint import Joint IS_VERSION_PYTHON_3 = sys.version_info[0] >= 3 class RobotVirtual: """ Mother class representing a virtual robot """ def __init__(self, desc...
35.31728
79
0.593006
1,396
12,467
5.179799
0.198424
0.021435
0.030978
0.044254
0.428295
0.391094
0.364265
0.314203
0.285714
0.240354
0
0.004791
0.347076
12,467
352
80
35.417614
0.883538
0.338173
0
0.345679
0
0
0.046202
0
0
0
0
0
0.074074
1
0.092593
false
0.006173
0.030864
0
0.197531
0.012346
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
0
1
0
b974d5d1bd35654f50415a8f7c66f3fb9a0316ab
704
py
Python
tests/test_formatter.py
hbraux/kafkacli
5f7ed23150932b66b484fb43dd6210b6c0968776
[ "MIT" ]
null
null
null
tests/test_formatter.py
hbraux/kafkacli
5f7ed23150932b66b484fb43dd6210b6c0968776
[ "MIT" ]
null
null
null
tests/test_formatter.py
hbraux/kafkacli
5f7ed23150932b66b484fb43dd6210b6c0968776
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import pytest import json from kafkacli.formatter import Formatter sampleJson = json.loads('{"a":"s", "b":1}') def test_print_default(capsys): Formatter().print(sampleJson) captured = capsys.readouterr() assert captured.out == '{"a": "s", "b": 1}\n...
24.275862
62
0.640625
96
704
4.635417
0.395833
0.013483
0.080899
0.195506
0.4
0.4
0.4
0.4
0.4
0
0
0.02911
0.170455
704
28
63
25.142857
0.732877
0.059659
0
0.166667
0
0.055556
0.183333
0
0
0
0
0
0.166667
1
0.166667
false
0
0.222222
0
0.388889
0.333333
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
b9750e636d7a3d49a65558af431533fc2e745edb
187
py
Python
src/jobs/forms.py
arc198/DJANGO-JOB-SITE
d9547c4ee85751677ba6458380b609973c3b4a8d
[ "MIT" ]
20
2018-05-04T18:42:35.000Z
2021-03-18T07:15:12.000Z
src/jobs/forms.py
fleepgeek/django-jobsite
d9547c4ee85751677ba6458380b609973c3b4a8d
[ "MIT" ]
5
2020-02-11T22:22:33.000Z
2021-06-10T20:18:05.000Z
src/jobs/forms.py
arc198/DJANGO-JOB-SITE
d9547c4ee85751677ba6458380b609973c3b4a8d
[ "MIT" ]
8
2018-05-04T19:03:23.000Z
2020-09-23T00:24:46.000Z
from django import forms from .models import Application class ApplicationForm(forms.ModelForm): class Meta: model = Application fields = ('resume', 'cover_letter',)
23.375
44
0.700535
20
187
6.5
0.75
0
0
0
0
0
0
0
0
0
0
0
0.213904
187
8
44
23.375
0.884354
0
0
0
0
0
0.095745
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
b975e6fb7fb3fa8849afb4e4ce41618c2ce94c1b
451
py
Python
src/test/tests/unit/protocol.py
ylee88/visit
8e0920996d84fef70a7014b0d770360918d849d5
[ "BSD-3-Clause" ]
1
2022-01-27T23:52:04.000Z
2022-01-27T23:52:04.000Z
src/test/tests/unit/protocol.py
ylee88/visit
8e0920996d84fef70a7014b0d770360918d849d5
[ "BSD-3-Clause" ]
null
null
null
src/test/tests/unit/protocol.py
ylee88/visit
8e0920996d84fef70a7014b0d770360918d849d5
[ "BSD-3-Clause" ]
null
null
null
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: protocolo.py # # Tests: vistprotocol unit test # # Mark C. Miller, Tue Jan 11 10:19:23 PST 2011 # ---------------------------------------------------------------------------- tapp = visit_bin_path(...
26.529412
78
0.432373
44
451
4.340909
0.886364
0
0
0
0
0
0
0
0
0
0
0.049223
0.144124
451
16
79
28.1875
0.445596
0.618625
0
0
0
0
0.148148
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b97645cb1bc48b7d30c6b37e139952912087b791
3,348
py
Python
pyMazeBacktrack.py
Dozed12/pyMazeBacktrack
aaa2a902fdca17dca6e2ee00e672b6bb38da5639
[ "MIT" ]
2
2019-02-22T10:35:25.000Z
2020-08-11T01:25:12.000Z
pyMazeBacktrack.py
Dozed12/pyMazeBacktrack
aaa2a902fdca17dca6e2ee00e672b6bb38da5639
[ "MIT" ]
null
null
null
pyMazeBacktrack.py
Dozed12/pyMazeBacktrack
aaa2a902fdca17dca6e2ee00e672b6bb38da5639
[ "MIT" ]
null
null
null
import libtcodpy as libtcod from random import randint nSquares = 30 nTiles = nSquares * 2 + 1 SCREEN_WIDTH = nTiles SCREEN_HEIGHT = nTiles libtcod.console_set_custom_font("cp437_12x12.png", libtcod.FONT_LAYOUT_ASCII_INROW) libtcod.console_init_root(SCREEN_WIDTH, SCREEN_HEIGHT, 'pyMazeBacktrack', False, li...
20.168675
106
0.496416
432
3,348
3.780093
0.168981
0.015922
0.039192
0.033068
0.560931
0.544397
0.477036
0.464176
0.437232
0.407838
0
0.046078
0.390681
3,348
165
107
20.290909
0.754412
0.002987
0
0.475728
0
0
0.009461
0
0
0
0
0
0
1
0.019417
false
0
0.019417
0
0.174757
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
0
0
1
0
b978586a0e39802db346feaf3a0aa1c91c336f05
3,011
py
Python
source/tests/test_resources.py
aws-solutions/maintaining-personalized-experiences-with-machine-learning
3f6f1b0069df4828eae9b0835b717500189e4f71
[ "Apache-2.0" ]
6
2021-09-23T16:33:24.000Z
2022-03-31T11:45:13.000Z
source/tests/test_resources.py
aws-solutions/maintaining-personalized-experiences-with-machine-learning
3f6f1b0069df4828eae9b0835b717500189e4f71
[ "Apache-2.0" ]
4
2021-09-24T21:34:14.000Z
2022-01-27T22:11:08.000Z
source/tests/test_resources.py
aws-solutions/maintaining-personalized-experiences-with-machine-learning
3f6f1b0069df4828eae9b0835b717500189e4f71
[ "Apache-2.0" ]
9
2021-09-23T23:24:46.000Z
2022-02-12T04:53:16.000Z
# ###################################################################################################################### # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # ...
42.408451
120
0.454334
211
3,011
6.43128
0.483412
0.044215
0.033161
0.023581
0.123803
0.123803
0.123803
0.123803
0
0
0
0.002137
0.37828
3,011
70
121
43.014286
0.722756
0.378612
0
0.148148
0
0
0.321451
0.014004
0
0
0
0
0.055556
1
0.018519
false
0
0.148148
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
0
0
0
0
0
1
0
b9787b11fbcd5779df09a2f0f27e44e75ad576ac
1,870
py
Python
app_venv/Lib/site-packages/phonenumbers/data/region_AG.py
orlandofv/sianna
f07dd6dbc62a9604f31ab800e482e62f14fba766
[ "MIT" ]
null
null
null
app_venv/Lib/site-packages/phonenumbers/data/region_AG.py
orlandofv/sianna
f07dd6dbc62a9604f31ab800e482e62f14fba766
[ "MIT" ]
null
null
null
app_venv/Lib/site-packages/phonenumbers/data/region_AG.py
orlandofv/sianna
f07dd6dbc62a9604f31ab800e482e62f14fba766
[ "MIT" ]
null
null
null
"""Auto-generated file, do not edit by hand. AG metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_AG = PhoneMetadata(id='AG', country_code=1, international_prefix='011', general_desc=PhoneNumberDesc(national_number_pattern='(?:268|[58]\\d\\d|900)\\d{7}', possible_l...
103.888889
352
0.711765
303
1,870
4.174917
0.346535
0.143874
0.183399
0.227668
0.300395
0.207905
0.194466
0.194466
0.036364
0
0
0.170068
0.056684
1,870
17
353
110
0.547052
0.028342
0
0
1
0.266667
0.296521
0.216455
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
1
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
b97884a1b2bbd76cce01bb9efe2744d31832af25
2,182
py
Python
gradefiles-send.py
lapets/bu-gsubmit-grading
69c40a763908be1c954dce3e5e5aab854ac379ff
[ "MIT" ]
3
2016-10-03T15:29:20.000Z
2019-06-28T17:33:06.000Z
gradefiles-send.py
lapets/bu-gsubmit-grading
69c40a763908be1c954dce3e5e5aab854ac379ff
[ "MIT" ]
null
null
null
gradefiles-send.py
lapets/bu-gsubmit-grading
69c40a763908be1c954dce3e5e5aab854ac379ff
[ "MIT" ]
null
null
null
##################################################################### ## ## gradefiles-send.py ## ## Script to send grade files by email to enrolled students; the ## input grade file names should correspond to the user names of ## the students. ## ## from email.mime.text import MIMEText # For creating a message...
33.569231
112
0.519707
264
2,182
4.287879
0.481061
0.055654
0.028269
0.040636
0.063604
0.063604
0
0
0
0
0
0.017807
0.176444
2,182
65
113
33.569231
0.612131
0.211274
0
0.060606
0
0.030303
0.208676
0
0
0
0
0
0
1
0.030303
false
0
0.121212
0
0.151515
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9789c0f2981942a54633089abdf3245b58a73a3
1,227
py
Python
Publisher/PGGAN-1024 trained on CelebaHQ/2-exporter.py
GalAster/16
47560a2132fbe4dda35a35dedfd7d8e6a8acc35a
[ "Unlicense" ]
3
2019-10-03T01:51:38.000Z
2019-10-04T16:15:43.000Z
Publisher/PGGAN-1024 trained on CelebaHQ/2-exporter.py
GalAster/16
47560a2132fbe4dda35a35dedfd7d8e6a8acc35a
[ "Unlicense" ]
null
null
null
Publisher/PGGAN-1024 trained on CelebaHQ/2-exporter.py
GalAster/16
47560a2132fbe4dda35a35dedfd7d8e6a8acc35a
[ "Unlicense" ]
1
2020-03-17T12:58:52.000Z
2020-03-17T12:58:52.000Z
import os import pickle import tensorflow as tf import wolframclient.serializers as wxf name = 'karras2018iclr-celebahq-1024x1024' file = open(name + '.pkl', 'rb') sess = tf.InteractiveSession() G, D, Gs = pickle.load(file) saver = tf.train.Saver() save_path = "./target/" + name + "/" model_name = 'model' if not os.pa...
34.083333
74
0.726976
180
1,227
4.694444
0.461111
0.066272
0.028402
0.03787
0.052071
0.052071
0
0
0
0
0
0.014178
0.137734
1,227
35
75
35.057143
0.784499
0.05705
0
0
0
0
0.085938
0.049479
0
0
0
0
0
1
0
false
0
0.137931
0
0.137931
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
0
0
1
0
b978dfcb152bc099b2de54896ed9a54dfbc29639
6,890
py
Python
src/moveGoogle.py
Quanta-Robotics/Robot-Blueberry
7b7e77e09ac5e9ec5afd947e0db1ecc8773e56da
[ "MIT" ]
25
2021-06-08T07:09:30.000Z
2021-12-30T06:28:35.000Z
src/moveGoogle.py
ICT-CoU/Robot-Blueberry
d19fd1be037df9d67de64df57a87006d74cd6c43
[ "MIT" ]
2
2021-05-23T12:54:51.000Z
2021-06-07T17:47:56.000Z
src/moveGoogle.py
ICT-CoU/Robot-Blueberry
d19fd1be037df9d67de64df57a87006d74cd6c43
[ "MIT" ]
14
2021-06-08T13:02:28.000Z
2021-12-30T20:07:18.000Z
#!/usr/bin/env python import os import os.path import yaml import time import random import multiprocessing import RPi.GPIO as GPIO from talk import say GPIO.setwarnings(False) GPIO.setmode(GPIO.BCM) from adafruit_servokit import ServoKit Motor1 = {'EN': 27, 'input1': 19, 'input2': 16} Motor2 = {'EN': 22, 'input1': 2...
25.330882
154
0.560377
1,039
6,890
3.699711
0.200192
0.009365
0.021852
0.040062
0.401145
0.30385
0.274454
0.241415
0.215401
0.111603
0
0.121689
0.243832
6,890
271
155
25.424354
0.616123
0.002903
0
0.302326
0
0
0.050532
0.011796
0
0
0
0
0
1
0.093023
false
0
0.04186
0
0.139535
0.023256
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
0
1
0
b978fbbcd4002601ca1e2723cae4385002e671d8
2,063
py
Python
src/onegov/translator_directory/models/language.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/translator_directory/models/language.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/translator_directory/models/language.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from uuid import uuid4 from sqlalchemy import Index, Column, Text, Table, ForeignKey from sqlalchemy.orm import object_session from onegov.core.orm import Base from onegov.core.orm.types import UUID spoken_association_table = Table( 'spoken_lang_association', Base.metadata, Column( 'translator_i...
25.469136
79
0.650994
228
2,063
5.649123
0.245614
0.070652
0.074534
0.067547
0.544255
0.544255
0.544255
0.511646
0.511646
0.432453
0
0.001917
0.241396
2,063
80
80
25.7875
0.821086
0.014057
0
0.484375
0
0
0.115385
0.035503
0
0
0
0
0
1
0.0625
false
0
0.078125
0.015625
0.28125
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
0
0
1
0
b97a0b2a9f0b601569ce8973596517ed7d8790ec
3,588
py
Python
tfjs-converter/python/tensorflowjs/converters/graph_rewrite_util.py
djemeljanovs/tfjs
ee4430cd7a04283ec09184a3fe9d3fb27496f1dc
[ "Apache-2.0" ]
null
null
null
tfjs-converter/python/tensorflowjs/converters/graph_rewrite_util.py
djemeljanovs/tfjs
ee4430cd7a04283ec09184a3fe9d3fb27496f1dc
[ "Apache-2.0" ]
null
null
null
tfjs-converter/python/tensorflowjs/converters/graph_rewrite_util.py
djemeljanovs/tfjs
ee4430cd7a04283ec09184a3fe9d3fb27496f1dc
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
33.849057
80
0.726031
540
3,588
4.651852
0.333333
0.038217
0.025876
0.012739
0.066879
0.023089
0.023089
0
0
0
0
0.006108
0.178651
3,588
105
81
34.171429
0.846284
0.479654
0
0
0
0
0.11573
0.046629
0
0
0
0
0
1
0.111111
false
0
0.088889
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
0
0
0
0
1
0
b97af59ee4283114481f3e83dc8e3cf6244bb61c
1,014
py
Python
loss_fn/classification_loss_fns/binary_cross_entropy.py
apple/ml-cvnets
84d992f413e52c0468f86d23196efd9dad885e6f
[ "AML" ]
209
2021-10-30T08:32:10.000Z
2022-03-31T16:18:03.000Z
loss_fn/classification_loss_fns/binary_cross_entropy.py
apple/ml-cvnets
84d992f413e52c0468f86d23196efd9dad885e6f
[ "AML" ]
12
2021-12-04T10:47:11.000Z
2022-03-31T15:39:40.000Z
loss_fn/classification_loss_fns/binary_cross_entropy.py
apple/ml-cvnets
84d992f413e52c0468f86d23196efd9dad885e6f
[ "AML" ]
50
2021-11-01T08:15:02.000Z
2022-03-29T08:17:34.000Z
# # For licensing see accompanying LICENSE file. # Copyright (C) 2022 Apple Inc. All Rights Reserved. # from torch.nn import functional as F from torch import Tensor import argparse from . import register_classification_loss_fn from .. import BaseCriteria @register_classification_loss_fn(name="binary_cross_entropy"...
28.166667
87
0.667653
116
1,014
5.534483
0.586207
0.028037
0.080997
0.087227
0
0
0
0
0
0
0
0.006337
0.221893
1,014
35
88
28.971429
0.807351
0.129191
0
0
0
0
0.030892
0
0
0
0
0
0
1
0.136364
false
0
0.227273
0.045455
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
0
0
0
0
1
0
b97c7f15dd61f4851cffcb3982337f852b3b8da5
576
py
Python
Sorting/insertion_sort.py
lakshyarawal/pythonPractice
4b400342198a8270c5ac0c6306afb555f927c6c1
[ "MIT" ]
null
null
null
Sorting/insertion_sort.py
lakshyarawal/pythonPractice
4b400342198a8270c5ac0c6306afb555f927c6c1
[ "MIT" ]
null
null
null
Sorting/insertion_sort.py
lakshyarawal/pythonPractice
4b400342198a8270c5ac0c6306afb555f927c6c1
[ "MIT" ]
null
null
null
""" Insertion Sort Algorithm:""" """Implementation""" def insertion_sort(arr) -> list: n = len(arr) for i in range(1, n): swap_index = i for j in range(i-1, -1, -1): if arr[swap_index] < arr[j]: arr[swap_index], arr[j] = arr[j], arr[swap_index] swa...
19.2
65
0.522569
80
576
3.5
0.425
0.160714
0.128571
0.107143
0.171429
0.125
0
0
0
0
0
0.049738
0.336806
576
29
66
19.862069
0.683246
0.107639
0
0
0
0
0.016461
0
0
0
0
0
0
1
0.117647
false
0
0
0
0.176471
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
0
0
0
0
0
0
0
0
1
0
b97c828450c34038ee92e089e3f2b951d2113017
903
py
Python
nipype/interfaces/spm/__init__.py
felixsc1/nipype
e722d6170593583f16ddfcb95473e5d30b5f1d7c
[ "Apache-2.0" ]
8
2019-05-29T09:38:30.000Z
2021-01-20T03:36:59.000Z
nipype/interfaces/spm/__init__.py
felixsc1/nipype
e722d6170593583f16ddfcb95473e5d30b5f1d7c
[ "Apache-2.0" ]
12
2021-03-09T03:01:16.000Z
2022-03-11T23:59:36.000Z
nipype/interfaces/spm/__init__.py
felixsc1/nipype
e722d6170593583f16ddfcb95473e5d30b5f1d7c
[ "Apache-2.0" ]
1
2020-07-17T12:49:49.000Z
2020-07-17T12:49:49.000Z
# -*- coding: utf-8 -*- # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """Top-level namespace for spm.""" from .base import (Info, SPMCommand, logger, no_spm, scans_for_fname, scans_for_fnames) from .preprocess import (FieldMap, Slic...
53.117647
77
0.653378
82
903
7.134146
0.804878
0.02735
0
0
0
0
0
0
0
0
0
0.014837
0.253599
903
16
78
56.4375
0.853116
0.178295
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.454545
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
2
b97cd7905f5c596cb6d79b67c2c80e83907421d9
8,257
py
Python
network.py
tobloef/neural-network
bd05a8b9eccc0f5a973782247d39f9b5aa33156c
[ "MIT" ]
3
2018-01-06T22:27:58.000Z
2018-08-12T20:29:51.000Z
network.py
tobloef/neural-network
bd05a8b9eccc0f5a973782247d39f9b5aa33156c
[ "MIT" ]
1
2018-03-31T18:49:56.000Z
2018-04-19T04:52:33.000Z
network.py
tobloef/neural-network
bd05a8b9eccc0f5a973782247d39f9b5aa33156c
[ "MIT" ]
null
null
null
import numpy as np from mathUtils import * class Network(object): """ Model for a feedforward Neural Network that use backpropagation with stochastic gradient decent. """ def __init__(self, layerSizes, biasVectors, weightMatrices): """ Initialise the network with a list of layer sizes ...
53.270968
286
0.657987
900
8,257
6.025556
0.253333
0.026554
0.017702
0.011064
0.075973
0.023234
0.023234
0.023234
0.023234
0
0
0.005106
0.264745
8,257
155
287
53.270968
0.888157
0.162529
0
0.06383
0
0
0.028811
0
0
0
0
0
0
1
0.074468
false
0
0.021277
0
0.148936
0.031915
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
0
1
0
b97d4675d330154e0b12b91fbd601affd888ea29
1,901
py
Python
examples/airflow/dags/etl_orders_7_days.py
phixMe/marquez
06d71635369893b371a8a9c9e7023f11d7cbb1f8
[ "Apache-2.0" ]
null
null
null
examples/airflow/dags/etl_orders_7_days.py
phixMe/marquez
06d71635369893b371a8a9c9e7023f11d7cbb1f8
[ "Apache-2.0" ]
null
null
null
examples/airflow/dags/etl_orders_7_days.py
phixMe/marquez
06d71635369893b371a8a9c9e7023f11d7cbb1f8
[ "Apache-2.0" ]
null
null
null
from datetime import datetime from marquez_airflow import DAG from airflow.operators.postgres_operator import PostgresOperator from airflow.utils.dates import days_ago default_args = { 'owner': 'datascience', 'depends_on_past': False, 'start_date': days_ago(1), 'email_on_failure': False, 'email_on_...
29.246154
135
0.681746
270
1,901
4.533333
0.318519
0.044118
0.093137
0.044118
0.105392
0.07598
0.07598
0
0
0
0
0.008136
0.224093
1,901
64
136
29.703125
0.821695
0
0
0.137931
0
0.017241
0.635455
0.012099
0
0
0
0
0
1
0
false
0
0.068966
0
0.068966
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b97deb7d2bd255cd9a3d9f169d969333b63452ec
313
py
Python
sample/pizza.py
marianarmorgado/python-starter
8bf3d7a16fd462cf99898c9a82c6e1cf4fc0e7f2
[ "MIT" ]
null
null
null
sample/pizza.py
marianarmorgado/python-starter
8bf3d7a16fd462cf99898c9a82c6e1cf4fc0e7f2
[ "MIT" ]
null
null
null
sample/pizza.py
marianarmorgado/python-starter
8bf3d7a16fd462cf99898c9a82c6e1cf4fc0e7f2
[ "MIT" ]
null
null
null
# store information about a pizza being ordered pizza = { 'crust': 'thick', 'toppings': ['mushrooms', 'extra vegan cheese'] } # summarize the order print("You ordered a " + pizza['crust'] + "-crust pizza" + "with the following toppings:") for topping in pizza['toppings']: print("\t" + topping)
26.083333
59
0.645367
38
313
5.315789
0.657895
0.059406
0
0
0
0
0
0
0
0
0
0
0.198083
313
12
60
26.083333
0.804781
0.207668
0
0
0
0
0.463415
0
0
0
0
0
0
1
0
false
0
0
0
0
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
0
0
0
0
0
0
0
0
1
0
b97e1419e0e45b84ecc462227c812c10beb92718
181
py
Python
YouTube/CursoEmVideo/python/ex012.py
Fh-Shadow/Progamando
f496d83c36e9a079ed06b4e7c34396c57f539de9
[ "MIT" ]
null
null
null
YouTube/CursoEmVideo/python/ex012.py
Fh-Shadow/Progamando
f496d83c36e9a079ed06b4e7c34396c57f539de9
[ "MIT" ]
null
null
null
YouTube/CursoEmVideo/python/ex012.py
Fh-Shadow/Progamando
f496d83c36e9a079ed06b4e7c34396c57f539de9
[ "MIT" ]
null
null
null
a = float(input('Qual รฉ o preรงo do produto? R$')) d = a - (a * 23 / 100) print('O produto que custava R${:.2f}, na promoรงรฃo de 23% de desconto vai custar: R${:.2f}' .format(a, d))
45.25
106
0.607735
35
181
3.142857
0.685714
0.054545
0
0
0
0
0
0
0
0
0
0.061644
0.19337
181
3
107
60.333333
0.691781
0
0
0
0
0.333333
0.618785
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
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
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
b97e5feb1052b87d359d8e3d9f63ba930bff8e66
15,038
py
Python
dnnlib/submission/submit.py
gperdrizet/gansformer
c68ba623aa498c83d8df4c4f0a3b5e3f63c773a5
[ "MIT" ]
1,172
2021-03-02T02:00:44.000Z
2022-03-31T02:46:45.000Z
dnnlib/submission/submit.py
gperdrizet/gansformer
c68ba623aa498c83d8df4c4f0a3b5e3f63c773a5
[ "MIT" ]
37
2021-03-03T14:11:11.000Z
2022-03-12T15:40:15.000Z
dnnlib/submission/submit.py
gperdrizet/gansformer
c68ba623aa498c83d8df4c4f0a3b5e3f63c773a5
[ "MIT" ]
138
2021-03-02T06:37:10.000Z
2022-03-30T14:59:09.000Z
# Submit a function to be run either locally or in a computing cluster. # Compared to original StyleGAN implementation, we extend the support for automatic training resumption, # and network recompilation. import copy import inspect import os import pathlib import pickle import platform import pprint import re import s...
43.337176
238
0.691847
2,135
15,038
4.62623
0.196253
0.095981
0.054672
0.028855
0.273666
0.190341
0.122709
0.048598
0.035233
0.020047
0
0.003058
0.217117
15,038
346
239
43.462428
0.835896
0.324644
0
0.110577
0
0.004808
0.082804
0.007248
0
0
0
0
0.014423
1
0.072115
false
0
0.091346
0
0.288462
0.028846
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
0
1
0
b97f4f2077af2e6d4198d160e8fea133c49dee89
4,187
py
Python
pyecharts/custom/grid.py
zilong305/pycharts
6cf1bb7f17001a36da6a766615a78b1dbef5918f
[ "MIT" ]
null
null
null
pyecharts/custom/grid.py
zilong305/pycharts
6cf1bb7f17001a36da6a766615a78b1dbef5918f
[ "MIT" ]
null
null
null
pyecharts/custom/grid.py
zilong305/pycharts
6cf1bb7f17001a36da6a766615a78b1dbef5918f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 from pyecharts.option import grid class Grid(object): def __init__(self): self._chart = None self._js_dependencies = set() def add(self, chart, grid_width=None, grid_height=None, grid_top=None, grid_bottom=...
31.961832
100
0.540482
449
4,187
4.721604
0.195991
0.089151
0.10566
0.093396
0.430189
0.300472
0.172642
0.142453
0.057547
0.057547
0
0.004449
0.355863
4,187
130
101
32.207692
0.781609
0.1722
0
0.115942
0
0
0.039253
0
0
0
0
0
0
1
0.115942
false
0.014493
0.028986
0
0.231884
0.028986
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
0
1
0
b97f78c59a8296809ae879f2d6f8355b0f8c52d0
4,588
py
Python
smooch/conversations.py
devinmcgloin/smooch
c9561c3e7f1546efc58daa472b70f738d0d35e13
[ "MIT" ]
3
2016-07-04T12:02:03.000Z
2017-03-20T19:39:36.000Z
smooch/conversations.py
devinmcgloin/smooch
c9561c3e7f1546efc58daa472b70f738d0d35e13
[ "MIT" ]
41
2019-05-28T09:54:04.000Z
2020-02-20T05:34:19.000Z
smooch/conversations.py
devinmcgloin/smooch
c9561c3e7f1546efc58daa472b70f738d0d35e13
[ "MIT" ]
2
2016-07-20T14:31:45.000Z
2016-11-18T12:19:38.000Z
import logging from .endpoint import ask def send_message(user_id, message, sent_by_maker=True): if not valid_args(user_id, message): logging.warning("send message called with invalid args user_id={} message={}".format(user_id, message)) return logging.debug("Sending message: user_id={0} mes...
30.586667
129
0.598954
556
4,588
4.829137
0.194245
0.082682
0.106518
0.126629
0.640223
0.609311
0.550838
0.528119
0.502793
0.502793
0
0.002766
0.290759
4,588
149
130
30.791946
0.822372
0.13993
0
0.660194
0
0
0.225377
0.049885
0
0
0
0
0
1
0.067961
false
0
0.019417
0
0.242718
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
0
0
1
0
b980ab008a2dab6e2778edec1d7d9e24b2315a73
1,086
py
Python
cifar/evalit.py
Sharkbyteprojects/IRIS-ML_and_Deep-Learning
f0e053cf7a0e69019bbba36e6da3e60d76105fe9
[ "MIT" ]
null
null
null
cifar/evalit.py
Sharkbyteprojects/IRIS-ML_and_Deep-Learning
f0e053cf7a0e69019bbba36e6da3e60d76105fe9
[ "MIT" ]
null
null
null
cifar/evalit.py
Sharkbyteprojects/IRIS-ML_and_Deep-Learning
f0e053cf7a0e69019bbba36e6da3e60d76105fe9
[ "MIT" ]
null
null
null
import keras from keras.models import load_model from PIL import Image import matplotlib.pylab as plt import numpy as np import zipfile print("Extract") zip_ref = zipfile.ZipFile("./asset.zip", 'r') zip_ref.extractall(".") zip_ref.close() print("Load Model") model=load_model("cifar-model.h5") CIFAR_10_CLASSES=["Plane",...
27.15
88
0.710866
172
1,086
4.354651
0.44186
0.12016
0.037383
0.048064
0
0
0
0
0
0
0
0.027523
0.096685
1,086
39
89
27.846154
0.735984
0
0
0
0
0
0.189687
0
0
0
0
0
0
1
0.025641
false
0
0.153846
0
0.179487
0.153846
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
0
1
0
b980be1e0d2b8db749e25a4f49c35cdddbdca9d9
1,650
py
Python
tt/urls.py
samiksha-patil/Knowledge-Sharing-Platform
22e61a659d5ad63fe656fa639dc897cbdebad4fe
[ "bzip2-1.0.6" ]
1
2021-05-09T08:18:49.000Z
2021-05-09T08:18:49.000Z
tt/urls.py
samiksha-patil/Knowledge-Sharing-Platform
22e61a659d5ad63fe656fa639dc897cbdebad4fe
[ "bzip2-1.0.6" ]
9
2021-03-19T01:11:35.000Z
2022-03-12T00:20:13.000Z
tt/urls.py
samiksha-patil/Knowledge-Sharing-Platform
22e61a659d5ad63fe656fa639dc897cbdebad4fe
[ "bzip2-1.0.6" ]
null
null
null
""" tt URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vi...
35.869565
100
0.726061
243
1,650
4.835391
0.316872
0.051064
0.012766
0.020426
0.138723
0.099574
0.06383
0
0
0
0
0.00569
0.147879
1,650
46
101
35.869565
0.830014
0.428485
0
0
0
0
0.149733
0
0
0
0
0
0
1
0
false
0
0.368421
0
0.368421
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
b9814171798d1f2ddf5247c67182a7e7e032132e
105
py
Python
src/git/cmd.py
danihodovic/dht
636f54d70f8c6ca60ab48f2815b3e9e1a336d78f
[ "MIT" ]
2
2021-01-21T15:04:32.000Z
2021-01-21T16:23:32.000Z
src/git/cmd.py
danihodovic/dht
636f54d70f8c6ca60ab48f2815b3e9e1a336d78f
[ "MIT" ]
2
2020-12-30T20:34:51.000Z
2021-01-17T20:02:02.000Z
src/git/cmd.py
danihodovic/dht
636f54d70f8c6ca60ab48f2815b3e9e1a336d78f
[ "MIT" ]
null
null
null
import os import click os.environ["GIT_PYTHON_REFRESH"] = "quiet" @click.group() def git(): pass
9.545455
42
0.67619
15
105
4.6
0.733333
0
0
0
0
0
0
0
0
0
0
0
0.180952
105
10
43
10.5
0.802326
0
0
0
0
0
0.219048
0
0
0
0
0
0
1
0.166667
true
0.166667
0.333333
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
0
0
0
4
b98238142a5e4442e3c9fdd220f6bde9274299de
570
py
Python
TwitterImage2JPG.py
Tymec/Playground
5a4aaa4a88e084d8d31803485b1ec521ad49a3d1
[ "MIT" ]
null
null
null
TwitterImage2JPG.py
Tymec/Playground
5a4aaa4a88e084d8d31803485b1ec521ad49a3d1
[ "MIT" ]
null
null
null
TwitterImage2JPG.py
Tymec/Playground
5a4aaa4a88e084d8d31803485b1ec521ad49a3d1
[ "MIT" ]
1
2019-02-19T10:32:07.000Z
2019-02-19T10:32:07.000Z
import glob import os def main(): os.chdir("F:/Downloads") extensions = ["*.jpg_large", "*.png_large", "*.jpg_orig"] file_list = list() for extension in extensions: file_list = file_list + glob.glob(extension) for file in file_list: for extension in extensions: new_ex...
22.8
67
0.585965
67
570
4.686567
0.38806
0.101911
0.101911
0.11465
0.178344
0
0
0
0
0
0
0
0.278947
570
24
68
23.75
0.76399
0
0
0.117647
0
0
0.094737
0
0
0
0
0
0
1
0.058824
false
0
0.117647
0
0.176471
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
0
0
0
0
0
0
0
0
1
0
b982943f0b8c226209550f8c7f62a0e03d0b5ff5
6,405
py
Python
Data Analysis/classification.py
Riccardo95Facchini/DIL-2019
febeda55fd647943a1b8c49b3c5192fcd69fdaf5
[ "MIT" ]
null
null
null
Data Analysis/classification.py
Riccardo95Facchini/DIL-2019
febeda55fd647943a1b8c49b3c5192fcd69fdaf5
[ "MIT" ]
null
null
null
Data Analysis/classification.py
Riccardo95Facchini/DIL-2019
febeda55fd647943a1b8c49b3c5192fcd69fdaf5
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import seaborn as sns import matplotlib.pyplot as plt from sklearn.metrics import classification_report #EVERY TIME THE DATASET IS RETRIEVED FROM GITHUB input_file = 'https://raw.githubusercontent.com/lcphy/Digital-Innovation-Lab/master/bank-full.csv' dataset = pd.read_csv(input...
25.722892
98
0.721624
986
6,405
4.497972
0.217039
0.02841
0.01894
0.032469
0.584893
0.519278
0.49876
0.49876
0.487486
0.487486
0
0.020279
0.137705
6,405
249
99
25.722892
0.782727
0.081343
0
0.554745
0
0.007299
0.085909
0
0
0
0
0
0
1
0
false
0
0.153285
0
0.153285
0.072993
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
0
1
0
b982c2b4e976b723dfa3208c1bc1e4ea51b77ac9
5,562
py
Python
tools/c7n_azure/tests/test_route_table.py
anastasiia-zolochevska/cloud-custodian
f25315a01bec808c16ab0e2d433d6151cf5769e4
[ "Apache-2.0" ]
2
2020-01-20T19:46:28.000Z
2020-08-19T14:20:27.000Z
tools/c7n_azure/tests/test_route_table.py
anastasiia-zolochevska/cloud-custodian
f25315a01bec808c16ab0e2d433d6151cf5769e4
[ "Apache-2.0" ]
79
2019-03-20T12:27:06.000Z
2019-08-14T14:07:04.000Z
tools/c7n_azure/tests/test_route_table.py
anastasiia-zolochevska/cloud-custodian
f25315a01bec808c16ab0e2d433d6151cf5769e4
[ "Apache-2.0" ]
2
2019-04-22T15:20:23.000Z
2019-08-27T12:37:51.000Z
# Copyright 2015-2018 Capital One Services, LLC # # 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 ...
35.426752
95
0.538655
548
5,562
5.260949
0.257299
0.097121
0.033299
0.026015
0.515088
0.507804
0.475199
0.465834
0.447104
0.379813
0
0.006319
0.345559
5,562
156
96
35.653846
0.785714
0.101223
0
0.504202
0
0
0.22347
0.08666
0
0
0
0
0.10084
1
0.058824
false
0
0.008403
0.008403
0.117647
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
0
0
1
0
b98531b0567b9e4719006397ec461d3fa4999e4b
11,730
py
Python
proto/tp_artifact_1.0/build/lib/sawtooth_artifact/processor/handler.py
pkthein/sparts_all_fam
ff162e4ea8c3919a197dc0cc13fde6b32da113c7
[ "Apache-2.0" ]
1
2019-04-03T18:31:36.000Z
2019-04-03T18:31:36.000Z
proto/tp_artifact_1.0/build/lib/sawtooth_artifact/processor/handler.py
pkthein/sparts_all_fam
ff162e4ea8c3919a197dc0cc13fde6b32da113c7
[ "Apache-2.0" ]
null
null
null
proto/tp_artifact_1.0/build/lib/sawtooth_artifact/processor/handler.py
pkthein/sparts_all_fam
ff162e4ea8c3919a197dc0cc13fde6b32da113c7
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Intel Corporation # Copyright 2017 Wind River # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
39.897959
82
0.521313
1,107
11,730
5.400181
0.229449
0.016728
0.021746
0.021077
0.254433
0.175811
0.150217
0.1273
0.095851
0.095851
0
0.003494
0.341262
11,730
293
83
40.03413
0.770157
0.370247
0
0.179487
0
0
0.087176
0
0
0
0
0
0
1
0.08547
false
0
0.059829
0
0.213675
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
0
0
1
0
b9877d896f97460bc5a35787da6277925368bc9f
764
py
Python
ReviewsCollector.py
fsandx/moodybooks
5c13fe43849e4fa861a163c74411e9f796518bc9
[ "MIT" ]
null
null
null
ReviewsCollector.py
fsandx/moodybooks
5c13fe43849e4fa861a163c74411e9f796518bc9
[ "MIT" ]
null
null
null
ReviewsCollector.py
fsandx/moodybooks
5c13fe43849e4fa861a163c74411e9f796518bc9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ STEP 2 Takes the list of urls in the json files and downloads the html files to local drive Start with: scrapy runspider ReviewsCollector.py """ import scrapy import json class ReviewsCollector(scrapy.Spider): def start_requests(self): with open("data/b...
29.384615
124
0.611257
104
764
4.480769
0.634615
0.034335
0.051502
0
0
0
0
0
0
0
0
0.00692
0.243456
764
26
125
29.384615
0.799308
0.240838
0
0
0
0
0.126095
0
0
0
0
0
0
1
0.153846
false
0
0.153846
0
0.384615
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
0
0
1
0
b9887b38cf06939bc8dd710e9861e2366862482a
3,120
py
Python
firelight/interfaces/light.py
roshie548/firelight
3a5af5e2a1e5784127baebcf1517ffddcaff4062
[ "MIT" ]
16
2021-11-29T03:05:31.000Z
2022-01-19T05:32:45.000Z
firelight/interfaces/light.py
roshie548/firelight
3a5af5e2a1e5784127baebcf1517ffddcaff4062
[ "MIT" ]
null
null
null
firelight/interfaces/light.py
roshie548/firelight
3a5af5e2a1e5784127baebcf1517ffddcaff4062
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from .color import Color class LightSystem(ABC): @classmethod def __subclasshook__(cls, subclass): return (hasattr(subclass, 'set_transition_time') and callable(subclass.set_transition_time) and hasattr(subclass, 'discover_lights') ...
32.842105
77
0.641026
333
3,120
5.822823
0.138138
0.068076
0.107788
0.169159
0.856627
0.814853
0.814853
0.814853
0.814853
0.772047
0
0
0.277885
3,120
94
78
33.191489
0.86063
0.148077
0
0.833333
0
0
0.053805
0
0
0
0
0
0
1
0.212121
false
0
0.030303
0.045455
0.333333
0
0
0
0
null
0
0
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
9
b98b6f0b6e5f35ef44fd272ec1f3a99b4d72acf0
1,293
py
Python
PolymorphismPYTHON/Polypy.py
cadeng23/oop-cjgustafson
cd3e5ca0e37f8b00a80516c6c8d5d6789a77d9a8
[ "MIT" ]
null
null
null
PolymorphismPYTHON/Polypy.py
cadeng23/oop-cjgustafson
cd3e5ca0e37f8b00a80516c6c8d5d6789a77d9a8
[ "MIT" ]
null
null
null
PolymorphismPYTHON/Polypy.py
cadeng23/oop-cjgustafson
cd3e5ca0e37f8b00a80516c6c8d5d6789a77d9a8
[ "MIT" ]
null
null
null
import random class Family: def __init__(self,first, last, hair): self.first = first self.last = last self.hair = hair def fullname(self): return '{} {}'.format(self.first,self.last) def eyefind(self): temp = random.choice([1,2]) #using the punnet square...
23.089286
66
0.618716
178
1,293
4.455056
0.438202
0.050441
0.064313
0.083228
0.147541
0.147541
0.110971
0.110971
0.110971
0
0
0.007431
0.271462
1,293
56
67
23.089286
0.834395
0.292343
0
0.193548
0
0
0.085809
0
0
0
0
0
0
1
0.129032
false
0.032258
0.032258
0.032258
0.354839
0.193548
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
0
1
0
b98c3a1636cff18e5244db1f52b8e6e89e2c99b5
1,494
py
Python
homeassistant/components/device_tracker/owntracks.py
evancohen/home-assistant
dafc0ced6b07025c03417d8e7a2c0133b4c622fc
[ "MIT" ]
14
2015-11-10T07:57:43.000Z
2021-08-29T13:45:26.000Z
homeassistant/components/device_tracker/owntracks.py
evancohen/home-assistant
dafc0ced6b07025c03417d8e7a2c0133b4c622fc
[ "MIT" ]
null
null
null
homeassistant/components/device_tracker/owntracks.py
evancohen/home-assistant
dafc0ced6b07025c03417d8e7a2c0133b4c622fc
[ "MIT" ]
8
2015-11-14T16:40:41.000Z
2020-02-17T19:48:08.000Z
""" homeassistant.components.device_tracker.owntracks ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OwnTracks platform for the device tracker. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/device_tracker.owntracks/ """ import json import logging im...
27.666667
74
0.582999
162
1,494
5.259259
0.561728
0.045775
0.053991
0.075117
0
0
0
0
0
0
0
0.003623
0.261044
1,494
53
75
28.188679
0.768116
0.287818
0
0.071429
0
0
0.122959
0
0
0
0
0
0
1
0.071429
false
0
0.107143
0
0.285714
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
0
0
1
0
b98c6a6e2a07073f4614093d6ae5d6469afd6835
48,027
py
Python
src/models/end_to_end_event_coreference.py
luyaojie/E3C
4b2f33da4629211fd6a3738077794f821c7f7c8b
[ "MIT" ]
2
2022-02-20T15:13:11.000Z
2022-03-22T03:47:21.000Z
src/models/end_to_end_event_coreference.py
luyaojie/E3C
4b2f33da4629211fd6a3738077794f821c7f7c8b
[ "MIT" ]
null
null
null
src/models/end_to_end_event_coreference.py
luyaojie/E3C
4b2f33da4629211fd6a3738077794f821c7f7c8b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # Created by Roger on 2019-09-10 # Mostly by AllenNLP import logging import math from typing import Any, Dict, List, Optional, Tuple import torch import torch.nn.functional as F from allennlp.data import Vocabulary from allennlp.models.model import Model from allennlp.mod...
54.514188
134
0.629271
5,379
48,027
5.30396
0.115821
0.018787
0.018577
0.026008
0.390431
0.305293
0.264774
0.237855
0.193831
0.165545
0
0.006786
0.303496
48,027
880
135
54.576136
0.846103
0.363483
0
0.182033
0
0
0.012454
0.00169
0
0
0
0
0
1
0.030733
false
0
0.047281
0
0.108747
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
0
0
1
0
b98ccbb0c859fdccad6b30924e5845122d497aa5
1,964
py
Python
week2/7litersProblem.py
vietanhtran2710/ArtificialIntelligenceHomework
f4da761016d67477b50856cadf1e2560230d3f79
[ "MIT" ]
3
2021-09-20T08:32:23.000Z
2021-09-25T08:11:48.000Z
week2/7litersProblem.py
vietanhtran2710/ArtificialIntelligenceHomework
f4da761016d67477b50856cadf1e2560230d3f79
[ "MIT" ]
null
null
null
week2/7litersProblem.py
vietanhtran2710/ArtificialIntelligenceHomework
f4da761016d67477b50856cadf1e2560230d3f79
[ "MIT" ]
null
null
null
""" Given 3 bottles of capacities 3, 5, and 9 liters, count number of all possible solutions to get 7 liters """ current_path = [[0, 0, 0]] CAPACITIES = (3, 5, 9) solutions_count = 0 def move_to_new_state(current_state): global solutions_count, current_path if 7 in current_state: solutions_co...
35.709091
91
0.548371
244
1,964
4.122951
0.233607
0.166998
0.044732
0.069583
0.478131
0.442346
0.390656
0.390656
0.32505
0.32505
0
0.026016
0.373727
1,964
54
92
36.37037
0.79187
0.100815
0
0.47619
0
0
0.004579
0
0
0
0
0
0
1
0.02381
false
0
0
0
0.02381
0.047619
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
0
1
0
b98d02f62eca1818cb1fb297d1c8644dd35ff288
8,263
py
Python
st2common/st2common/bootstrap/rulesregistrar.py
avezraj/st2
519c7f6819e52fb289c440bb7d1df7b558bb9ed7
[ "Apache-2.0" ]
null
null
null
st2common/st2common/bootstrap/rulesregistrar.py
avezraj/st2
519c7f6819e52fb289c440bb7d1df7b558bb9ed7
[ "Apache-2.0" ]
null
null
null
st2common/st2common/bootstrap/rulesregistrar.py
avezraj/st2
519c7f6819e52fb289c440bb7d1df7b558bb9ed7
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Extreme Networks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
41.109453
98
0.57824
952
8,263
4.782563
0.230042
0.026356
0.028553
0.0123
0.217
0.177246
0.167582
0.110037
0.095541
0.087415
0
0.004294
0.351809
8,263
200
99
41.315
0.84578
0.143894
0
0.272727
0
0
0.096118
0
0
0
0
0.005
0.007576
1
0.037879
false
0
0.098485
0.007576
0.19697
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
0
0
1
0
b9912797a8155d6800745fe804b93206d95de8ac
91,819
py
Python
sdk/costmanagement/azure-mgmt-costmanagement/azure/mgmt/costmanagement/models/_models_py3.py
aiven/azure-sdk-for-python
8764dc07423beca46ed0b51212d81289d9e52c60
[ "MIT" ]
1
2021-09-07T18:43:20.000Z
2021-09-07T18:43:20.000Z
sdk/costmanagement/azure-mgmt-costmanagement/azure/mgmt/costmanagement/models/_models_py3.py
aiven/azure-sdk-for-python
8764dc07423beca46ed0b51212d81289d9e52c60
[ "MIT" ]
2
2021-11-03T06:10:36.000Z
2021-12-01T06:29:39.000Z
sdk/costmanagement/azure-mgmt-costmanagement/azure/mgmt/costmanagement/models/_models_py3.py
msyyc/azure-sdk-for-python
e2dba75181f8b4336ae57e75aa391322c12c3123
[ "MIT" ]
1
2021-05-19T02:55:10.000Z
2021-05-19T02:55:10.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
38.16251
498
0.649005
9,864
91,819
5.916363
0.066809
0.018472
0.045717
0.057643
0.675474
0.643088
0.60952
0.580853
0.564215
0.555064
0
0.001518
0.224964
91,819
2,405
499
38.178378
0.818557
0.424618
0
0.633308
0
0
0.241078
0.060967
0
0
0
0
0
1
0.042017
false
0
0.00382
0
0.16272
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
0
0
1
0
b9921ebf7fdd9b5fb1dd763092a97ae1888e730f
3,860
py
Python
test/test_simple_compression.py
jayvdb/brotlipy
ffddf2ea5adc584c8c353d246bb1077b7e781b63
[ "MIT" ]
null
null
null
test/test_simple_compression.py
jayvdb/brotlipy
ffddf2ea5adc584c8c353d246bb1077b7e781b63
[ "MIT" ]
null
null
null
test/test_simple_compression.py
jayvdb/brotlipy
ffddf2ea5adc584c8c353d246bb1077b7e781b63
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ test_simple_compression ~~~~~~~~~~~~~~~~~~~~~~~~~ Tests for compression of single chunks. """ import brotli import pytest from hypothesis import given from hypothesis.strategies import binary, integers, sampled_from, one_of def test_roundtrip_compression_with_files(simple_compressed_fil...
29.692308
78
0.615803
431
3,860
5.306265
0.232019
0.048098
0.069961
0.050284
0.652383
0.597289
0.597289
0.597289
0.597289
0.597289
0
0.015686
0.273316
3,860
129
79
29.922481
0.799643
0.08342
0
0.580645
0
0
0.014938
0
0
0
0
0
0.053763
1
0.064516
false
0
0.043011
0
0.107527
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
0
0
1
0
b992a4ec960bcf3e39ba5a1bb6a8cd2e68be293e
1,987
py
Python
wexapi/models/ticker.py
madmis/wexapi
f5b1b9b566f767bca7d8fad1f08c3d1bca42355a
[ "MIT" ]
3
2018-06-08T12:45:04.000Z
2018-08-02T11:09:11.000Z
wexapi/models/ticker.py
madmis/wexapi
f5b1b9b566f767bca7d8fad1f08c3d1bca42355a
[ "MIT" ]
null
null
null
wexapi/models/ticker.py
madmis/wexapi
f5b1b9b566f767bca7d8fad1f08c3d1bca42355a
[ "MIT" ]
null
null
null
from decimal import Decimal class Ticker(object): def __init__( self, high: float, low: float, avg: float, vol: float, vol_cur: int, last: float, buy: float, sell: float, updated: int, ): ...
20.27551
38
0.545546
234
1,987
4.504274
0.102564
0.093928
0.129032
0.159393
0.158444
0
0
0
0
0
0
0
0.351283
1,987
97
39
20.484536
0.817688
0
0
0.116883
0
0
0
0
0
0
0
0
0
1
0.246753
false
0
0.012987
0.116883
0.38961
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
b99506d26f9716e398b3a3724d393185a9900942
1,216
py
Python
hard-gists/98bb452dc14e8c40e403/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
21
2019-07-08T08:26:45.000Z
2022-01-24T23:53:25.000Z
hard-gists/98bb452dc14e8c40e403/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
5
2019-06-15T14:47:47.000Z
2022-02-26T05:02:56.000Z
hard-gists/98bb452dc14e8c40e403/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
17
2019-05-16T03:50:34.000Z
2021-01-14T14:35:12.000Z
from scryptos import * p1 = 32581479300404876772405716877547 p2 = 27038194053540661979045656526063 p3 = 26440615366395242196516853423447 n = p1*p2*p3 e = 3 c = int(open("flag.enc", "rb").read().encode("hex"), 16) # from User's Guide to PARI/GP, nth_root function sqrtnall = 'sqrtnall(x,n)={my(V,r,z,r2);r=sqrtn(x,n,&z...
39.225806
224
0.663651
181
1,216
4.430939
0.441989
0.009975
0.067332
0.078554
0.160848
0.160848
0.160848
0.160848
0.160848
0.160848
0
0.333959
0.123355
1,216
30
225
40.533333
0.418386
0.038651
0
0
0
0.055556
0.384785
0.312018
0
0
0
0
0
0
null
null
0
0.055556
null
null
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
3
b9954284c404c9a5aed225965d5006c8735af349
1,717
py
Python
musa/migrations/0001_initial.py
ccsreenidhin/Music-Web-Django
9b8286914f9099b9ed56c712c7ca384846f189d1
[ "MIT" ]
null
null
null
musa/migrations/0001_initial.py
ccsreenidhin/Music-Web-Django
9b8286914f9099b9ed56c712c7ca384846f189d1
[ "MIT" ]
null
null
null
musa/migrations/0001_initial.py
ccsreenidhin/Music-Web-Django
9b8286914f9099b9ed56c712c7ca384846f189d1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-03-29 06:43 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import musa.models class Migration(migrations.Migration): initial = True dependencies = [...
40.880952
121
0.633663
188
1,717
5.606383
0.457447
0.030361
0.045541
0.068311
0.363378
0.363378
0.363378
0.263757
0.263757
0.263757
0
0.019055
0.235877
1,717
41
122
41.878049
0.784299
0.038439
0
0.30303
1
0
0.086165
0.016384
0
0
0
0
0
1
0
false
0
0.151515
0
0.272727
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
b9957182927ee0480e35dd837a4d9ee2d8587462
3,207
py
Python
nuitka/codegen/LoopCodes.py
RESP3CT88/Nuitka
0fcc25d9f00c4fc78c79a863c4b7987f573962e1
[ "Apache-2.0" ]
1
2021-05-25T12:48:28.000Z
2021-05-25T12:48:28.000Z
venv/Lib/site-packages/nuitka/codegen/LoopCodes.py
matthijsvanvliet/raytracing-python
73d692b47330ab94eedde579a51063e3a907e92b
[ "MIT" ]
null
null
null
venv/Lib/site-packages/nuitka/codegen/LoopCodes.py
matthijsvanvliet/raytracing-python
73d692b47330ab94eedde579a51063e3a907e92b
[ "MIT" ]
null
null
null
# Copyright 2021, Kay Hayen, mailto:kay.hayen@gmail.com # # Part of "Nuitka", an optimizing Python compiler that is compatible and # integrates with CPython, but also works on its own. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complianc...
34.858696
111
0.752728
391
3,207
6.069054
0.455243
0.032448
0.025284
0.013485
0.157606
0.133165
0.133165
0.133165
0.133165
0.133165
0
0.003051
0.182413
3,207
91
112
35.241758
0.901983
0.443717
0
0.051282
0
0
0.026781
0
0
0
0
0
0
1
0.076923
false
0
0.102564
0
0.179487
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
0
0
1
0
b995831c9a98c5b05882c5bbcc4b241cd51503bd
4,837
py
Python
3_module/C_BloomFilter.py
L4mborg1n1-D14610/Algoritms_and_DataStructure
f61b7434dbc600da02e8ec38648fa84beb160f17
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
3_module/C_BloomFilter.py
L4mborg1n1-D14610/Algoritms_and_DataStructure
f61b7434dbc600da02e8ec38648fa84beb160f17
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
3_module/C_BloomFilter.py
L4mborg1n1-D14610/Algoritms_and_DataStructure
f61b7434dbc600da02e8ec38648fa84beb160f17
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
import math from sys import exit # ะธั‚ะฐะบ, n - ะฟั€ะธะฑะปะธะทะธั‚ะตะปัŒะฝะพะต ั‡ะธัะปะพ ัะปะตะผะตะฝั‚ะพะฒ ะฒ ะผะฐััะธะฒะต, P - ะฒะตั€ะพัั‚ะฝะพัั‚ัŒ ะปะพะถะฝะพะฟะพะปะพะถะธั‚ะตะปัŒะฝะพะณะพ ะพั‚ะฒะตั‚ะฐ, ั‚ะพะณะดะฐ ั€ะฐะทะผะตั€ # ัั‚ั€ัƒะบั‚ัƒั€ั‹ m = -(nlog2P) / ln2 (2 - ะพัะฝะพะฒะฐะฝะธะต), ะบะพะปะธั‡ะตัั‚ะฒะพ ั…ะตัˆ-ั„ัƒะฝะบั†ะธะน ะฑัƒะดะตั‚ ั€ะฐะฒะฝะพ -log2P # ั…ะตัˆ-ั„ัƒะฝะบั†ะธะธ ะธัะฟะพะปัŒะทัƒัŽั‚ัั ะฒะธะดะฐ: (((i + 1)*x + p(i+1)) mod M) mod m,ะณะดะต - x - ะบะปัŽั‡,...
34.798561
116
0.551995
603
4,837
4.252073
0.334992
0.031591
0.049922
0.025741
0.120905
0.085803
0.071763
0.071763
0.060062
0.060062
0
0.028536
0.340707
4,837
138
117
35.050725
0.775478
0.247674
0
0.409524
0
0
0.011862
0
0
0
0
0
0
1
0.095238
false
0
0.019048
0.019048
0.209524
0.114286
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
0
1
0
b996ad8d5f407e5b1769d9b50ca7be5705a211e8
1,937
py
Python
pyzmq/examples/pubsub/subscriber.py
Surfndez/source-publish
c3838b303c1a0806f21cd4e8d8c207015b3ce9c8
[ "Intel" ]
null
null
null
pyzmq/examples/pubsub/subscriber.py
Surfndez/source-publish
c3838b303c1a0806f21cd4e8d8c207015b3ce9c8
[ "Intel" ]
1
2021-01-21T17:43:33.000Z
2021-01-21T17:43:33.000Z
pyzmq/examples/pubsub/subscriber.py
Surfndez/source-publish
c3838b303c1a0806f21cd4e8d8c207015b3ce9c8
[ "Intel" ]
null
null
null
"""A test that subscribes to NumPy arrays. Uses REQ/REP (on PUB/SUB socket + 1) to synchronize """ #----------------------------------------------------------------------------- # Copyright (c) 2010 Brian Granger # # Distributed under the terms of the New BSD License. The full license is in # the file COPYING.BSD...
25.826667
78
0.545173
239
1,937
4.313808
0.447699
0.061106
0.025218
0.029098
0
0
0
0
0
0
0
0.03078
0.245225
1,937
74
79
26.175676
0.674419
0.180176
0
0.042553
0
0
0.142375
0
0
0
0
0
0
0
null
null
0
0.085106
null
null
0.170213
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
b997c70668ace413cc27502883f737e007e56239
1,006
py
Python
Doc/includes/sqlite3/load_extension.py
livioso/cpython
077061a7b24917aaf31057885c69919c5a553c88
[ "PSF-2.0" ]
36
2019-06-07T20:44:06.000Z
2022-03-23T06:19:43.000Z
Doc/includes/sqlite3/load_extension.py
livioso/cpython
077061a7b24917aaf31057885c69919c5a553c88
[ "PSF-2.0" ]
49
2016-02-29T17:59:52.000Z
2019-05-05T04:59:26.000Z
Doc/includes/sqlite3/load_extension.py
livioso/cpython
077061a7b24917aaf31057885c69919c5a553c88
[ "PSF-2.0" ]
28
2019-06-27T04:11:27.000Z
2022-03-11T06:27:44.000Z
import sqlite3 con = sqlite3.connect(":memory:") # enable extension loading con.enable_load_extension(True) # Load the fulltext search extension con.execute("select load_extension('./fts3.so')") # alternatively you can load the extension using an API call: # con.load_extension("./fts3.so") # disable extension load...
37.259259
104
0.744533
131
1,006
5.671756
0.465649
0.121131
0.086137
0.107672
0.239569
0.239569
0.239569
0
0
0
0
0.005794
0.142147
1,006
26
105
38.692308
0.855156
0.206759
0
0
0
0
0.723135
0.034134
0
0
0
0
0
1
0
false
0
0.071429
0
0.071429
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b9982b7f935a0931c3a9dc4e8ec48b12b5523acb
22,060
py
Python
lingvo/core/inference_graph_exporter.py
RunzheYang/lingvo
1291e29812f9ee9836f9cacbb05db9ec6b095234
[ "Apache-2.0" ]
1
2021-09-02T18:04:13.000Z
2021-09-02T18:04:13.000Z
lingvo/core/inference_graph_exporter.py
RunzheYang/lingvo
1291e29812f9ee9836f9cacbb05db9ec6b095234
[ "Apache-2.0" ]
null
null
null
lingvo/core/inference_graph_exporter.py
RunzheYang/lingvo
1291e29812f9ee9836f9cacbb05db9ec6b095234
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
38.100173
116
0.694334
2,820
22,060
5.204255
0.201064
0.02746
0.023031
0.005724
0.199305
0.127215
0.090147
0.069978
0.04504
0.039725
0
0.003759
0.228151
22,060
578
117
38.16609
0.858166
0.309565
0
0.167683
0
0
0.059147
0.007989
0
0
0
0.00346
0.018293
1
0.064024
false
0
0.030488
0.015244
0.155488
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
0
0
1
0
b9982e3e4e7a4b4799e5780bd7629d5235cc1b40
1,836
py
Python
src/preprocessing/annual_hc_by_crime_loc.py
VijayKalmath/USCrimeAnalysis
14c96aae52547a4f7ea140395c62a621a97def50
[ "MIT" ]
null
null
null
src/preprocessing/annual_hc_by_crime_loc.py
VijayKalmath/USCrimeAnalysis
14c96aae52547a4f7ea140395c62a621a97def50
[ "MIT" ]
null
null
null
src/preprocessing/annual_hc_by_crime_loc.py
VijayKalmath/USCrimeAnalysis
14c96aae52547a4f7ea140395c62a621a97def50
[ "MIT" ]
null
null
null
#! usr/env/bin python import glob import numpy as np import pandas as pd from tqdm import tqdm def main(): # Fetch File Paths file_paths = glob.glob(r'./data/raw/ucr/hc_count_by_place/*.xls') # Sort them according to year file_paths.sort(key = lambda x: int(x[-8:-4])) # Create a result dataframe ...
33.381818
84
0.6378
285
1,836
3.933333
0.42807
0.040143
0.03479
0.048171
0.024978
0
0
0
0
0
0
0.010007
0.238017
1,836
54
85
34
0.791279
0.264706
0
0
0
0
0.130204
0.065859
0
0
0
0
0
1
0.071429
false
0
0.142857
0
0.285714
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
0
0
1
0
b998534e368ce74be309448b790e384f839c6d4a
1,672
py
Python
allennlp/tests/modules/token_embedders/bag_of_word_counts_token_embedder_test.py
ethanjperez/allennlp
e520993f16f0da7e2c40f6e44b8dc56338f46b57
[ "Apache-2.0" ]
24
2019-09-16T00:10:54.000Z
2021-09-08T19:31:51.000Z
allennlp/tests/modules/token_embedders/bag_of_word_counts_token_embedder_test.py
ethanjperez/allennlp
e520993f16f0da7e2c40f6e44b8dc56338f46b57
[ "Apache-2.0" ]
null
null
null
allennlp/tests/modules/token_embedders/bag_of_word_counts_token_embedder_test.py
ethanjperez/allennlp
e520993f16f0da7e2c40f6e44b8dc56338f46b57
[ "Apache-2.0" ]
7
2019-09-16T02:37:31.000Z
2021-09-01T06:06:17.000Z
# pylint: disable=no-self-use,invalid-name import numpy as np from numpy.testing import assert_almost_equal import torch from allennlp.common import Params from allennlp.data import Vocabulary from allennlp.modules.token_embedders import BagOfWordCountsTokenEmbedder from allennlp.common.testing import AllenNlpTestCase ...
45.189189
93
0.70634
216
1,672
5.268519
0.296296
0.063269
0.013181
0.059754
0.404218
0.369069
0.27065
0.27065
0.27065
0.27065
0
0.027596
0.176435
1,672
36
94
46.444444
0.798838
0.023923
0
0.193548
0
0
0.012883
0
0
0
0
0
0.096774
1
0.096774
false
0
0.225806
0
0.354839
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
0
0
1
0
b998e92d411833a80bc4657adf0243c90d5c6084
5,457
py
Python
demo/demo_shapenet.py
hengkaiz/meshrcnn
eb5b5bc0639a33e48f0fc1e0834106798cd1e3d8
[ "BSD-3-Clause" ]
null
null
null
demo/demo_shapenet.py
hengkaiz/meshrcnn
eb5b5bc0639a33e48f0fc1e0834106798cd1e3d8
[ "BSD-3-Clause" ]
null
null
null
demo/demo_shapenet.py
hengkaiz/meshrcnn
eb5b5bc0639a33e48f0fc1e0834106798cd1e3d8
[ "BSD-3-Clause" ]
null
null
null
import argparse import logging import multiprocessing as mp import logging import os from detectron2.evaluation import inference_context import torch import torch.distributed as dist import torch.multiprocessing as mp from detectron2.utils.collect_env import collect_env_info from detectron2.utils.logger import setup_lo...
31.912281
99
0.637713
726
5,457
4.589532
0.289256
0.019808
0.033013
0.021008
0.092437
0.068427
0.035414
0.015606
0
0
0
0.006101
0.249038
5,457
170
100
32.1
0.806979
0.05974
0
0.04918
0
0
0.103576
0.006449
0
0
0
0
0
1
0.02459
false
0
0.213115
0
0.262295
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
0
0
1
0
b998f6994cf6e83702b501cd661bb37f91b59317
7,854
py
Python
proglearn/voters.py
jshin13/progressive-learning
dccc70fe5f6a03d2c53c2b01fd2122d7fd2798dc
[ "Apache-2.0" ]
null
null
null
proglearn/voters.py
jshin13/progressive-learning
dccc70fe5f6a03d2c53c2b01fd2122d7fd2798dc
[ "Apache-2.0" ]
null
null
null
proglearn/voters.py
jshin13/progressive-learning
dccc70fe5f6a03d2c53c2b01fd2122d7fd2798dc
[ "Apache-2.0" ]
null
null
null
import numpy as np # from sklearn.ensemble import BaggingClassifier # from sklearn.tree import DecisionTreeClassifier from sklearn.neighbors import KNeighborsClassifier from sklearn.utils.validation import ( check_X_y, check_array, NotFittedError, ) from sklearn.utils.multiclass import check_classificati...
26.805461
99
0.556277
918
7,854
4.528322
0.175381
0.040414
0.049074
0.027424
0.521049
0.479192
0.474621
0.436372
0.413038
0.405581
0
0.004652
0.343137
7,854
293
100
26.805461
0.801124
0.086071
0
0.431138
0
0
0.073872
0
0
0
0
0.003413
0
1
0.107784
false
0
0.041916
0
0.263473
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
0
0
1
0
b999024320e50c940c8f273e6f0536039450c829
1,949
py
Python
config.py
jhattat/photoBooth
f6fe3ab418bb917792e10349597401ed34078766
[ "MIT" ]
null
null
null
config.py
jhattat/photoBooth
f6fe3ab418bb917792e10349597401ed34078766
[ "MIT" ]
null
null
null
config.py
jhattat/photoBooth
f6fe3ab418bb917792e10349597401ed34078766
[ "MIT" ]
null
null
null
# Tumblr Setup # Replace the values with your information # OAuth keys can be generated from https://api.tumblr.com/console/calls/user/info consumer_key='ShbOqI5zErQXOL7Qnd5XduXpY9XQUlBgJDpCLeq1OYqnY2KzSt' #replace with your key consumer_secret='ulZradkbJGksjpl2MMlshAfJgEW6TNeSdZucykqeTp8jvwgnhu' #replace with your sec...
77.96
130
0.758338
278
1,949
5.255396
0.561151
0.032854
0.051335
0.02601
0
0
0
0
0
0
0
0.045541
0.188815
1,949
25
131
77.96
0.878558
0.653155
0
0
1
0
0.381902
0.345092
0
0
0
0
0
1
0
false
0
0
0
0
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
b9991711cbe60fa3459b0fb4cb64d023132610e8
896
py
Python
accounts/admin.py
GuilhemN/site-interludes
69873810d5b0168aa57277ba51805117e6c53874
[ "MIT" ]
null
null
null
accounts/admin.py
GuilhemN/site-interludes
69873810d5b0168aa57277ba51805117e6c53874
[ "MIT" ]
1
2022-03-24T10:41:10.000Z
2022-03-24T12:39:30.000Z
accounts/admin.py
GuilhemN/site-interludes
69873810d5b0168aa57277ba51805117e6c53874
[ "MIT" ]
1
2022-03-23T22:30:12.000Z
2022-03-23T22:30:12.000Z
from django.contrib import admin from django.contrib.auth.models import Group from accounts.models import EmailUser from shared.admin import ExportCsvMixin # no need for groups - we only have regular users and superusers admin.site.unregister(Group) @admin.register(EmailUser) class EmailUserAdmin(ExportCsvMixin, adm...
37.333333
106
0.753348
117
896
5.529915
0.547009
0.037094
0.060278
0.078825
0.190108
0.190108
0.108192
0.108192
0
0
0
0.003769
0.111607
896
23
107
38.956522
0.809045
0.135045
0
0
0
0
0.3329
0.029909
0
0
0
0
0
1
0
false
0.058824
0.235294
0
0.764706
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
b9993aa0d134cc4869bfe49fd1ecd6dc8c6b0b96
23,640
py
Python
rotkehlchen/exchanges/coinbase.py
vnavascues/rotki
8675bdb02bf84bfccb5d59362e3ae2b7138fcd8f
[ "BSD-3-Clause" ]
null
null
null
rotkehlchen/exchanges/coinbase.py
vnavascues/rotki
8675bdb02bf84bfccb5d59362e3ae2b7138fcd8f
[ "BSD-3-Clause" ]
null
null
null
rotkehlchen/exchanges/coinbase.py
vnavascues/rotki
8675bdb02bf84bfccb5d59362e3ae2b7138fcd8f
[ "BSD-3-Clause" ]
null
null
null
import hashlib import hmac import logging import time from json.decoder import JSONDecodeError from typing import TYPE_CHECKING, Any, Dict, List, Optional, Tuple from urllib.parse import urlencode import requests from rotkehlchen.assets.asset import Asset from rotkehlchen.assets.converters import asset_from_coinbase ...
40.688468
98
0.592047
2,639
23,640
5.133005
0.151194
0.015503
0.016315
0.017717
0.319504
0.280969
0.232393
0.210247
0.201757
0.189207
0
0.002593
0.331049
23,640
580
99
40.758621
0.85399
0.140398
0
0.297968
0
0
0.180838
0.029701
0
0
0
0
0.004515
1
0.024831
false
0.002257
0.051919
0
0.13544
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
0
0
1
0
b9994eb6b47f29e07dc9f474ab82878fdc8ae029
3,533
py
Python
lib/python3.7/site-packages/ldap/controls/deref.py
aonrobot/MSC-thug-auth-provider
aef37ef5a000586b8502cc536244f31e08b9c2db
[ "Apache-2.0" ]
1
2019-06-21T11:51:26.000Z
2019-06-21T11:51:26.000Z
lib/python3.7/site-packages/ldap/controls/deref.py
aonrobot/MSC-thug-auth-provider
aef37ef5a000586b8502cc536244f31e08b9c2db
[ "Apache-2.0" ]
13
2019-07-03T21:28:31.000Z
2022-02-26T10:42:05.000Z
lib/python3.7/site-packages/ldap/controls/deref.py
aonrobot/MSC-thug-auth-provider
aef37ef5a000586b8502cc536244f31e08b9c2db
[ "Apache-2.0" ]
2
2020-02-11T09:34:39.000Z
2020-11-10T14:41:32.000Z
# -*- coding: utf-8 -*- """ ldap.controls.deref - classes for (see https://tools.ietf.org/html/draft-masarati-ldap-deref) See https://www.python-ldap.org/ for project details. """ __all__ = [ 'DEREF_CONTROL_OID', 'DereferenceControl', ] import ldap.controls from ldap.controls import LDAPControl,KNOWN_RESPONSE_CO...
29.441667
102
0.711577
362
3,533
6.770718
0.348066
0.044064
0.01836
0.041616
0.155855
0.136271
0.114239
0.088943
0.088943
0.088943
0
0.012871
0.142372
3,533
119
103
29.689076
0.79604
0.112652
0
0.088608
0
0
0.04196
0.008008
0
0
0
0
0
1
0.050633
false
0
0.075949
0.012658
0.367089
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
0
0
1
0
b999aec7c34874ef90e0f30812ac97217ce90cca
3,145
py
Python
emoji.py
notagoat/Deepmoji
1ab922306c3647f9c7ea98caa2660a53b18fe4b6
[ "MIT" ]
1
2020-03-19T20:09:00.000Z
2020-03-19T20:09:00.000Z
emoji.py
notagoat/Deepmoji
1ab922306c3647f9c7ea98caa2660a53b18fe4b6
[ "MIT" ]
null
null
null
emoji.py
notagoat/Deepmoji
1ab922306c3647f9c7ea98caa2660a53b18fe4b6
[ "MIT" ]
null
null
null
import requests import urllib.request import os.path import shutil import csv def main(): with open("data.csv") as i: #Open the data.csv file instances = i.readlines() #Write them into memory instances = [x.strip() for x in instances] #Strip any weird issues from writing instances.sort() #Sort t...
37.440476
151
0.574245
418
3,145
4.289474
0.373206
0.020078
0.047407
0.050195
0.139431
0.070273
0
0
0
0
0
0.001403
0.320191
3,145
83
152
37.891566
0.837231
0.294118
0
0.430556
0
0
0.114299
0
0
0
0
0
0
1
0.055556
false
0.111111
0.069444
0
0.125
0.138889
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
b99add86778172fa08bc930ed29f8f26a88ec4d3
943
py
Python
String/640.One Edit Distance/Solution_DP.py
Zhenye-Na/LxxxCode
afd79d790d0a7495d75e6650f80adaa99bd0ff07
[ "MIT" ]
12
2019-05-04T04:21:27.000Z
2022-03-02T07:06:57.000Z
String/640.One Edit Distance/Solution_DP.py
Zhenye-Na/LxxxCode
afd79d790d0a7495d75e6650f80adaa99bd0ff07
[ "MIT" ]
1
2019-07-24T18:43:53.000Z
2019-07-24T18:43:53.000Z
String/640.One Edit Distance/Solution_DP.py
Zhenye-Na/LxxxCode
afd79d790d0a7495d75e6650f80adaa99bd0ff07
[ "MIT" ]
10
2019-07-01T04:03:04.000Z
2022-03-09T03:57:37.000Z
class Solution: """ @param s: a string @param t: a string @return: true if they are both one edit distance apart or false """ def isOneEditDistance(self, s, t): # write your code here if s == t: return False if abs(len(s) - len(t)) > 1: return Fal...
29.46875
81
0.341463
149
943
2.154362
0.275168
0.056075
0.056075
0.049844
0.165109
0.165109
0.158879
0.158879
0.158879
0.158879
0
0.076446
0.486744
943
31
82
30.419355
0.586777
0.130435
0
0.2
0
0
0
0
0
0
0
0.032258
0
1
0.05
false
0
0
0
0.25
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
b99b1d1ec6004cbeeb91e19410dbbb1e2216c45e
1,478
py
Python
nsq/__init__.py
jehiah/pynsq
899b60a8ce77ed6c8ab899fbdfd7adbc1b450c96
[ "MIT" ]
1
2015-05-25T00:23:53.000Z
2015-05-25T00:23:53.000Z
nsq/__init__.py
barkinet/pynsq
899b60a8ce77ed6c8ab899fbdfd7adbc1b450c96
[ "MIT" ]
null
null
null
nsq/__init__.py
barkinet/pynsq
899b60a8ce77ed6c8ab899fbdfd7adbc1b450c96
[ "MIT" ]
null
null
null
from __future__ import absolute_import import signal import tornado.ioloop import logging from .protocol import ( Error, unpack_response, decode_message, valid_topic_name, valid_channel_name, identify, subscribe, ready, finish, touch, requeue, nop, pub, mpub, ...
26.392857
96
0.696211
172
1,478
5.662791
0.412791
0.055441
0.041068
0.055441
0.26078
0.26078
0.199179
0.199179
0.199179
0
0
0
0.190122
1,478
55
97
26.872727
0.813701
0.002706
0
0
0
0
0.221583
0
0
0
0
0
0
0
null
null
0
0.295455
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
b99b2da4f2ac2ca37d2ded7c72545cef1cab4228
5,356
py
Python
scripts/summaryPlot.py
Hespian/ParFastKer
5ddf1685c0652e73c889cfc64c7ec1fd827f905c
[ "BSD-3-Clause", "MIT" ]
3
2019-08-10T08:24:19.000Z
2019-08-12T07:16:03.000Z
scripts/summaryPlot.py
Hespian/ParFastKer
5ddf1685c0652e73c889cfc64c7ec1fd827f905c
[ "BSD-3-Clause", "MIT" ]
null
null
null
scripts/summaryPlot.py
Hespian/ParFastKer
5ddf1685c0652e73c889cfc64c7ec1fd827f905c
[ "BSD-3-Clause", "MIT" ]
null
null
null
import get_data_ours import get_data_akiba import get_data_NearLinear import get_data_LinearTime import os import matplotlib.pyplot as plt # graphs = ["uk-2002", "arabic-2005", "gsh-2015-tpd", "uk-2005", "it-2004", "sk-2005", "uk-2007-05", "webbase-2001", "asia.osm", "road_usa", "europe.osm", "rgg_n26_s0", "RHG-10000...
39.094891
234
0.720127
578
5,356
6.577855
0.314879
0.01657
0.021042
0.023672
0.216202
0.147291
0.147291
0.126249
0.126249
0.110994
0
0.03031
0.131441
5,356
136
235
39.382353
0.786973
0.161875
0
0.084211
0
0
0.173271
0.086859
0.010526
0
0
0
0
1
0.063158
false
0
0.063158
0.031579
0.2
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
0
0
1
0
b99c2305beceab596bedee8ad399b6faa3216070
3,587
py
Python
bouncer/cli/base.py
lrnt/git-bouncer
3015e11a5d2c90986124de73bf1fd0f5a8563360
[ "MIT" ]
null
null
null
bouncer/cli/base.py
lrnt/git-bouncer
3015e11a5d2c90986124de73bf1fd0f5a8563360
[ "MIT" ]
null
null
null
bouncer/cli/base.py
lrnt/git-bouncer
3015e11a5d2c90986124de73bf1fd0f5a8563360
[ "MIT" ]
null
null
null
import configparser import sys import inspect from argparse import ArgumentParser, RawDescriptionHelpFormatter def opt(*args, **kwargs): def decorator(method): if not hasattr(method, 'options'): method.options = [] method.options.append((args, kwargs)) return method return...
27.381679
72
0.578199
395
3,587
5.063291
0.263291
0.06
0.021
0.018
0.127
0.102
0.102
0.071
0.071
0.071
0
0.002849
0.315026
3,587
130
73
27.592308
0.811152
0.034569
0
0.255102
0
0
0.028621
0
0
0
0
0
0
1
0.163265
false
0.010204
0.040816
0
0.367347
0.030612
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
0
1
0
b99c4d9fb380e0635cac67dff2a6820b500bf34f
13,728
py
Python
Examples/ExampleCodes_ssccoorriinngg.py
MahdadJafarzadeh/ssccoorriinngg
63c726e9e7d0f6d13032415c76b8c3bb1ff2bee3
[ "MIT" ]
2
2020-04-28T12:50:26.000Z
2020-05-13T08:52:42.000Z
Examples/ExampleCodes_ssccoorriinngg.py
MahdadJafarzadeh/ssccoorriinngg
63c726e9e7d0f6d13032415c76b8c3bb1ff2bee3
[ "MIT" ]
null
null
null
Examples/ExampleCodes_ssccoorriinngg.py
MahdadJafarzadeh/ssccoorriinngg
63c726e9e7d0f6d13032415c76b8c3bb1ff2bee3
[ "MIT" ]
1
2020-07-14T13:48:56.000Z
2020-07-14T13:48:56.000Z
#%% Import libs import numpy as np from sklearn.ensemble import RandomForestClassifier from sklearn.model_selection import cross_validate from sklearn.metrics import make_scorer, accuracy_score, precision_score, recall_score, f1_score import h5py import time from ssccoorriinngg import ssccoorriinngg import numpy as np ...
53.209302
127
0.682984
2,105
13,728
4.104038
0.119715
0.021299
0.045839
0.048617
0.536983
0.418798
0.330594
0.273064
0.227341
0.13196
0
0.059051
0.18954
13,728
257
128
53.416342
0.717419
0.084135
0
0.119318
0
0.022727
0.171937
0.052217
0
0
0
0
0
1
0
false
0
0.051136
0
0.051136
0.028409
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
0
1
0
b99d08420cae81be117acdda96af821aba38eea2
6,891
py
Python
igibson/examples/behavior/behavior_demo_collection.py
suresh-guttikonda/iGibson
a69e623058180146466cd52d4bb3c00d1facdacf
[ "MIT" ]
null
null
null
igibson/examples/behavior/behavior_demo_collection.py
suresh-guttikonda/iGibson
a69e623058180146466cd52d4bb3c00d1facdacf
[ "MIT" ]
null
null
null
igibson/examples/behavior/behavior_demo_collection.py
suresh-guttikonda/iGibson
a69e623058180146466cd52d4bb3c00d1facdacf
[ "MIT" ]
null
null
null
""" Main BEHAVIOR demo collection entrypoint """ import argparse import copy import datetime import os import bddl import numpy as np import igibson from igibson.activity.activity_base import iGBEHAVIORActivityInstance from igibson.render.mesh_renderer.mesh_renderer_cpu import MeshRendererSettings from igibson.rende...
31.465753
120
0.652881
855
6,891
4.929825
0.278363
0.025623
0.037011
0.031317
0.160854
0.130961
0.117675
0.081613
0.055991
0.038434
0
0.013749
0.250617
6,891
218
121
31.610092
0.802479
0.015963
0
0.061111
0
0
0.155959
0.010781
0
0
0
0
0
1
0.016667
false
0
0.066667
0
0.088889
0.011111
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
0
1
0
b99e3b0ee335439a781ae231769595415a1dc6ec
546
py
Python
wagtail/wagtailadmin/menu.py
digitalmarmalade/wagtail
ac4d23172ff3f42746625630583b17d243fb9822
[ "BSD-3-Clause" ]
1
2015-11-05T18:02:04.000Z
2015-11-05T18:02:04.000Z
wagtail/wagtailadmin/menu.py
digitalmarmalade/wagtail
ac4d23172ff3f42746625630583b17d243fb9822
[ "BSD-3-Clause" ]
null
null
null
wagtail/wagtailadmin/menu.py
digitalmarmalade/wagtail
ac4d23172ff3f42746625630583b17d243fb9822
[ "BSD-3-Clause" ]
null
null
null
from django.utils.text import slugify from django.utils.html import format_html class MenuItem(object): def __init__(self, label, url, name=None, classnames='', order=1000): self.label = label self.url = url self.classnames = classnames self.name = (name or slugify(unicode(label)))...
32.117647
79
0.611722
73
546
4.479452
0.465753
0.082569
0.091743
0
0
0
0
0
0
0
0
0.019185
0.236264
546
16
80
34.125
0.764988
0
0
0
0
0
0
0
0
0
0
0
0
1
0.153846
false
0
0.153846
0.076923
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b99ee5dfe9849188796ff8d2b024b524adedb8d2
1,950
py
Python
django_mfa/migrations/0001_initial.py
timgates42/django-mfa
89eeb83f7da3ea24f205b40b13c7f9d33ea15b99
[ "MIT" ]
null
null
null
django_mfa/migrations/0001_initial.py
timgates42/django-mfa
89eeb83f7da3ea24f205b40b13c7f9d33ea15b99
[ "MIT" ]
null
null
null
django_mfa/migrations/0001_initial.py
timgates42/django-mfa
89eeb83f7da3ea24f205b40b13c7f9d33ea15b99
[ "MIT" ]
null
null
null
# Generated by Django 2.1.5 on 2019-03-26 11:35 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
41.489362
143
0.598974
205
1,950
5.521951
0.4
0.035336
0.04947
0.077739
0.421378
0.421378
0.394876
0.394876
0.310071
0.310071
0
0.016644
0.260513
1,950
46
144
42.391304
0.768377
0.023077
0
0.384615
1
0
0.090909
0
0
0
0
0
0
1
0
false
0
0.076923
0
0.179487
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
b99f21827c3ba7ccbcab4806c878cdacfa139e20
317
py
Python
app/logger_example/main.py
khanh-nguyen-code/my-collection
31581ef0b1dae67aafb1f4e64b9973a38cc01edf
[ "MIT" ]
null
null
null
app/logger_example/main.py
khanh-nguyen-code/my-collection
31581ef0b1dae67aafb1f4e64b9973a38cc01edf
[ "MIT" ]
null
null
null
app/logger_example/main.py
khanh-nguyen-code/my-collection
31581ef0b1dae67aafb1f4e64b9973a38cc01edf
[ "MIT" ]
null
null
null
from my_collection import logger if __name__ == "__main__": logger.now().debug("debug1") logger.now().debug("debug2") logger.now().info("hello1") logger.now().info("hello2") logger.now().with_field("key", "val").error("with field1") logger.now().with_field("key", "val").error("with field2")
31.7
62
0.646688
42
317
4.619048
0.52381
0.278351
0.14433
0.185567
0.340206
0.340206
0.340206
0.340206
0
0
0
0.021898
0.135647
317
9
63
35.222222
0.686131
0
0
0
0
0
0.208202
0
0
0
0
0
0
1
0
true
0
0.125
0
0.125
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
b9a14f8cda479b51cbe9296c63d8ae7397078bc7
760
py
Python
robotframework_iperf3/__main__.py
scathaig/robotframework-iperf3
cfeeb3e265777403d7eb06fcfa6d69650f2a5e67
[ "Apache-2.0" ]
null
null
null
robotframework_iperf3/__main__.py
scathaig/robotframework-iperf3
cfeeb3e265777403d7eb06fcfa6d69650f2a5e67
[ "Apache-2.0" ]
null
null
null
robotframework_iperf3/__main__.py
scathaig/robotframework-iperf3
cfeeb3e265777403d7eb06fcfa6d69650f2a5e67
[ "Apache-2.0" ]
null
null
null
import argparse from robotremoteserver import RobotRemoteServer from .iperf3 import Iperf3 if __name__ == '__main__': # create commandline parser parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter) parser.prog = 'python3 -m robotframework_iperf3' # add parser opt...
21.111111
92
0.619737
76
760
6.026316
0.513158
0.0131
0.074236
0
0
0
0
0
0
0
0
0.023593
0.275
760
35
93
21.714286
0.807623
0.057895
0
0.08
0
0
0.147265
0.029453
0
0
0
0
0
1
0
false
0
0.12
0
0.12
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
0
0
1
0
b9a1ae11b40a499e6f6854e1a273c2ff226ef650
692
py
Python
h2o-docs/src/booklets/v2_2015/source/Python_Vignette_code_examples/python_combine_frames_append_one_as_columns.py
ahmedengu/h2o-3
ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11
[ "Apache-2.0" ]
6,098
2015-05-22T02:46:12.000Z
2022-03-31T16:54:51.000Z
h2o-docs/src/booklets/v2_2015/source/Python_Vignette_code_examples/python_combine_frames_append_one_as_columns.py
ahmedengu/h2o-3
ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11
[ "Apache-2.0" ]
2,517
2015-05-23T02:10:54.000Z
2022-03-30T17:03:39.000Z
h2o-docs/src/booklets/v2_2015/source/Python_Vignette_code_examples/python_combine_frames_append_one_as_columns.py
ahmedengu/h2o-3
ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11
[ "Apache-2.0" ]
2,199
2015-05-22T04:09:55.000Z
2022-03-28T22:20:45.000Z
df8.cbind(df9) # A B C D A0 B0 C0 D0 # ----- ------ ------ ------ ------ ----- ----- ----- # -0.09 0.944 0.160 0.271 -0.351 1.66 -2.32 -0.86 # -0.95 0.669 0.664 1.535 -0.633 -1.78 0.32 1.27 # 0.17 0.657 0.970 -0.419 -1.413 -0.51 0.64 -1.25 # 0.58 -0.516 -1.598 -1.346 0.71...
43.25
54
0.460983
176
692
1.8125
0.511364
0.018809
0.031348
0
0
0
0
0
0
0
0
0.578842
0.276012
692
16
55
43.25
0.057884
0.930636
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
b9a1dbb5125acea57356714e95e66c8e3a612e30
1,101
py
Python
FluentPython/dynamic_attr_and_prop/frozen_json.py
xu6148152/Binea_Python_Project
d943eb5f4685d08f080b372dcf1a7cbd5d63efed
[ "MIT" ]
null
null
null
FluentPython/dynamic_attr_and_prop/frozen_json.py
xu6148152/Binea_Python_Project
d943eb5f4685d08f080b372dcf1a7cbd5d63efed
[ "MIT" ]
null
null
null
FluentPython/dynamic_attr_and_prop/frozen_json.py
xu6148152/Binea_Python_Project
d943eb5f4685d08f080b372dcf1a7cbd5d63efed
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- encoding: utf-8 -*- from collections import abc from keyword import iskeyword class FronzenJSON: def __init__(self, mapping): self._data = {} for key, value in mapping.items(): if iskeyword(key): key += '_' # self._data = di...
27.525
56
0.561308
124
1,101
4.790323
0.354839
0.094276
0.080808
0.060606
0
0
0
0
0
0
0
0.002721
0.332425
1,101
39
57
28.230769
0.805442
0.104451
0
0.103448
0
0
0.001018
0
0
0
0
0
0
1
0.137931
false
0
0.068966
0
0.517241
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
0
0
1
0
b9a20089dfb3f5c8a3472d1f3be189af236d4d44
4,062
py
Python
pomdp_problems/tag/models/transition_model.py
Semanti1/pomdp_findit
b96c1c06aab4b485fa005654cf6438ff63718083
[ "MIT" ]
null
null
null
pomdp_problems/tag/models/transition_model.py
Semanti1/pomdp_findit
b96c1c06aab4b485fa005654cf6438ff63718083
[ "MIT" ]
null
null
null
pomdp_problems/tag/models/transition_model.py
Semanti1/pomdp_findit
b96c1c06aab4b485fa005654cf6438ff63718083
[ "MIT" ]
null
null
null
"""The Tag problem. Implemented according to the paper `Anytime Point-Based Approximations for Large POMDPs <https://arxiv.org/pdf/1110.0027.pdf>`_. Transition model: the robot moves deterministically. The target's movement depends on the robot; With Pr=0.8 the target moves away from the robot, and with P...
45.640449
103
0.537912
394
4,062
5.281726
0.246193
0.079289
0.091302
0.057665
0.396444
0.29457
0.24988
0.24988
0.206631
0.206631
0
0.007475
0.407189
4,062
88
104
46.159091
0.856728
0.115953
0
0.4375
0
0
0
0
0
0
0
0
0
1
0.078125
false
0
0.078125
0.015625
0.34375
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
0
0
1
0
b9a21ff5a8c4fcb07930580d031f6847ecfaed43
4,731
py
Python
packit/fedpkg.py
bocekm/packit
b5da23c0fa3f205537551b9ed212d8f77d00d705
[ "MIT" ]
null
null
null
packit/fedpkg.py
bocekm/packit
b5da23c0fa3f205537551b9ed212d8f77d00d705
[ "MIT" ]
null
null
null
packit/fedpkg.py
bocekm/packit
b5da23c0fa3f205537551b9ed212d8f77d00d705
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2019 Red Hat, Inc. # 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,...
35.044444
82
0.609808
590
4,731
4.80678
0.410169
0.03103
0.026446
0.017983
0.038787
0
0
0
0
0
0
0.001214
0.303741
4,731
134
83
35.30597
0.859745
0.34052
0
0.063291
0
0
0.211055
0.028476
0
0
0
0
0
1
0.063291
false
0
0.063291
0.012658
0.164557
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
0
0
1
0
b9a3c97262cf3c50a695832e8941374463a78067
901
py
Python
tests/test_MaskedArrayCollection.py
ahaldane/NDducktype_tests
4876416e5fbff7ba0d85445c0eeae432d6e80014
[ "BSD-3-Clause" ]
3
2020-06-18T14:18:39.000Z
2021-07-22T18:05:52.000Z
tests/test_MaskedArrayCollection.py
ahaldane/NDducktype_tests
4876416e5fbff7ba0d85445c0eeae432d6e80014
[ "BSD-3-Clause" ]
2
2020-07-19T15:44:09.000Z
2020-07-28T23:22:21.000Z
tests/test_MaskedArrayCollection.py
ahaldane/NDducktype_tests
4876416e5fbff7ba0d85445c0eeae432d6e80014
[ "BSD-3-Clause" ]
2
2019-06-20T00:20:13.000Z
2020-09-20T21:42:52.000Z
#!/usr/bin/env python from ndarray_ducktypes.ArrayCollection import ArrayCollection from ndarray_ducktypes.MaskedArray import MaskedArray from ndarray_ducktypes.MaskedArrayCollection import MaskedArrayCollection import numpy as np # Tests for Masked ArrayCollections. # # First try: Simply make an arraycollection of Ma...
31.068966
75
0.738069
125
901
5.288
0.464
0.068079
0.075643
0.06354
0.114977
0.114977
0.114977
0.114977
0.114977
0.114977
0
0.022699
0.119867
901
28
76
32.178571
0.810845
0.719201
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
b9a4cbf5401cd86949e3f94c13bc464c4725fcee
192,704
py
Python
rpc/gen/core_pb2.py
jasonjoo2010/core
7c05ddbdac2e05a3d96db28f8bdfacf661907b82
[ "MIT" ]
null
null
null
rpc/gen/core_pb2.py
jasonjoo2010/core
7c05ddbdac2e05a3d96db28f8bdfacf661907b82
[ "MIT" ]
null
null
null
rpc/gen/core_pb2.py
jasonjoo2010/core
7c05ddbdac2e05a3d96db28f8bdfacf661907b82
[ "MIT" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: core.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflecti...
38.875126
16,249
0.731339
23,978
192,704
5.607432
0.030945
0.054145
0.028783
0.041055
0.727664
0.674858
0.665732
0.659648
0.644736
0.623495
0
0.042309
0.133101
192,704
4,956
16,250
38.88297
0.762545
0.025941
0
0.706402
1
0.004958
0.158013
0.110848
0
0
0
0
0
1
0
false
0
0.001293
0
0.001293
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
b9a524c2d76717a70aa199aeb8c04e4579e1a276
2,217
py
Python
src/models/text_node.py
moevm/nosql1h19-text-graph
410f156ad4f232f8aa060d43692ab020610ddfd4
[ "MIT" ]
null
null
null
src/models/text_node.py
moevm/nosql1h19-text-graph
410f156ad4f232f8aa060d43692ab020610ddfd4
[ "MIT" ]
null
null
null
src/models/text_node.py
moevm/nosql1h19-text-graph
410f156ad4f232f8aa060d43692ab020610ddfd4
[ "MIT" ]
null
null
null
from neomodel import StructuredNode, StringProperty, JSONProperty, \ Relationship, IntegerProperty import numpy as np import re from models.text_relation import TextRelation __all__ = ['TextNode'] class TextNode(StructuredNode): order_id = IntegerProperty(required=True, unique_index=True) ...
31.671429
73
0.488498
232
2,217
4.577586
0.362069
0.032957
0.041431
0.025424
0.220339
0.202448
0.097928
0.097928
0.097928
0.097928
0
0.010722
0.368967
2,217
69
74
32.130435
0.748392
0
0
0.206897
0
0
0.438881
0.083897
0
0
0
0
0
1
0.103448
false
0
0.068966
0.068966
0.413793
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
0
0
1
0
b9a529f9f36fb2cce0a38f16148b6bc2117ab033
2,655
py
Python
tests/test_bishop_generate.py
otaviocarvalho/chess-negamax
21f1066611e581dac3257d3f46c71ca2b09b5964
[ "MIT" ]
6
2015-04-04T15:58:29.000Z
2019-04-07T11:45:02.000Z
tests/test_bishop_generate.py
otaviocarvalho/chess-negamax
21f1066611e581dac3257d3f46c71ca2b09b5964
[ "MIT" ]
1
2015-04-27T19:02:06.000Z
2015-04-27T19:02:06.000Z
tests/test_bishop_generate.py
otaviocarvalho/chess-negamax
21f1066611e581dac3257d3f46c71ca2b09b5964
[ "MIT" ]
3
2015-10-04T00:22:17.000Z
2019-04-07T11:44:56.000Z
import unittest from .helpers import StubBoard, StubPiece, C, WHITE, BLACK class TestBishopGenerate(unittest.TestCase): def get_bishop(self, board, team, position): from chess.models import Bishop return Bishop(board, team, position) def compare_list(self, expected, results): compared ...
30.872093
58
0.581921
304
2,655
4.976974
0.230263
0.052875
0.058163
0.075347
0.678123
0.643754
0.643754
0.643754
0.643754
0.643754
0
0.017196
0.277213
2,655
86
59
30.872093
0.771235
0
0
0.492308
1
0
0.021837
0
0
0
0
0
0.123077
1
0.107692
false
0
0.046154
0
0.2
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2