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
9042d121a316c1faa00ceeb40eee409704c3de53
1,313
py
Python
day_8/code_day_8.py
secworks/advent_of_code_2018
d9d97c404fcb8fa8324d408b4c17cce6eb28c4ac
[ "BSD-2-Clause" ]
null
null
null
day_8/code_day_8.py
secworks/advent_of_code_2018
d9d97c404fcb8fa8324d408b4c17cce6eb28c4ac
[ "BSD-2-Clause" ]
null
null
null
day_8/code_day_8.py
secworks/advent_of_code_2018
d9d97c404fcb8fa8324d408b4c17cce6eb28c4ac
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- #====================================================================== # Code for solving day 8 of AoC 2018 #====================================================================== VERBOSE = True #------------------------------------------------------------------ #-----...
30.534884
71
0.272658
86
1,313
3.988372
0.465116
0.046647
0.110787
0.093294
0.303207
0.303207
0.303207
0.303207
0.303207
0.303207
0
0.008418
0.095202
1,313
42
72
31.261905
0.280303
0.621478
0
0.125
0
0
0.308489
0.091097
0
0
0
0
0
1
0.1875
false
0
0
0
0.25
0.3125
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
5f3cd51538adaed915a0c199cf3a26c52a5d08e5
863
py
Python
src/server.py
ajdinm/lb-sim
0f8cd4b5b46101bde165fcd34a092419efdffffe
[ "MIT" ]
1
2020-12-13T11:57:46.000Z
2020-12-13T11:57:46.000Z
src/server.py
ajdinm/lb-sim
0f8cd4b5b46101bde165fcd34a092419efdffffe
[ "MIT" ]
null
null
null
src/server.py
ajdinm/lb-sim
0f8cd4b5b46101bde165fcd34a092419efdffffe
[ "MIT" ]
null
null
null
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer import psutil import json import sys SERVER_ID = int(sys.argv[1]) PORT_NUMBER = int(sys.argv[2]) def get_cpuload(): return psutil.cpu_percent() class RequestHanlder(BaseHTTPRequestHandler): def do_GET(self): self.send_response(200) ...
23.972222
65
0.655852
97
863
5.690722
0.546392
0.043478
0.036232
0
0
0
0
0
0
0
0
0.00753
0.230591
863
35
66
24.657143
0.823795
0
0
0
0
0
0.086906
0
0
0
0
0
0
0
null
null
0
0.148148
null
null
0.074074
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
5f3f753da2cc5b6cefe685950eb304d614fa30bd
10,376
py
Python
clipmotifs.py
rmcclain3/motif-generator
9ba88c49e3fde8e2301cf4b9a13115502e06d1e2
[ "CC0-1.0" ]
null
null
null
clipmotifs.py
rmcclain3/motif-generator
9ba88c49e3fde8e2301cf4b9a13115502e06d1e2
[ "CC0-1.0" ]
null
null
null
clipmotifs.py
rmcclain3/motif-generator
9ba88c49e3fde8e2301cf4b9a13115502e06d1e2
[ "CC0-1.0" ]
null
null
null
#!/bin/env python import sys, pdb, wave, struct, codecs, os, stat, math import wav64 frameRate = 44100. lf = u'\240a' def timeString(frameNumber): x = frameNumber / frameRate h = int(x / 3600) x -= h * 3600 m = int(x / 60) s = x - m * 60 return "%d:%d:%06.3f" % (h, m, s) if __name__ == '__m...
38.716418
165
0.422128
935
10,376
4.664171
0.280214
0.005045
0.014905
0.009172
0.122908
0.114653
0.114653
0.095391
0.080257
0.038065
0
0.02719
0.471858
10,376
267
166
38.861423
0.768613
0.061103
0
0.177273
0
0
0.074455
0
0.027273
0
0
0
0
0
null
null
0.009091
0.013636
null
null
0.054545
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
5f42195bf300257b78fef95392e25c54f591b6f7
1,441
py
Python
setup.py
clics/pyclics-louvain
623b81598e0d4f9097f050cb5c99278e6196db28
[ "Apache-2.0" ]
1
2019-11-22T01:22:59.000Z
2019-11-22T01:22:59.000Z
setup.py
clics/pyclics-louvain
623b81598e0d4f9097f050cb5c99278e6196db28
[ "Apache-2.0" ]
3
2019-04-12T20:07:33.000Z
2019-12-16T09:08:16.000Z
setup.py
clics/pyclics-louvain
623b81598e0d4f9097f050cb5c99278e6196db28
[ "Apache-2.0" ]
1
2021-04-07T14:28:38.000Z
2021-04-07T14:28:38.000Z
from setuptools import setup, find_packages setup( name='pyclics-clustering', version='1.0.1.dev0', description="clustering algorithms for CLICS networks", long_description=open("README.md").read(), long_description_content_type='text/markdown', author='Johann-Mattis List and Robert Forkel', ...
27.711538
68
0.550312
145
1,441
5.358621
0.655172
0.097812
0.1287
0.133848
0
0
0
0
0
0
0
0.026419
0.29077
1,441
51
69
28.254902
0.733855
0
0
0.081633
0
0
0.430951
0.027065
0
0
0
0
0
1
0
true
0
0.020408
0
0.020408
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
5f47de87b0db4b717dbf53fb0ed3ad156e174925
1,200
py
Python
repacolors/themes/__init__.py
dyuri/repacolors
4556efeb262529dde4586dad78ac7ff64d4dedf5
[ "MIT" ]
1
2020-02-29T17:05:06.000Z
2020-02-29T17:05:06.000Z
repacolors/themes/__init__.py
dyuri/repacolors
4556efeb262529dde4586dad78ac7ff64d4dedf5
[ "MIT" ]
null
null
null
repacolors/themes/__init__.py
dyuri/repacolors
4556efeb262529dde4586dad78ac7ff64d4dedf5
[ "MIT" ]
null
null
null
from .theme import Theme __all__ = ["Theme", "GRUVBOX", "XTHEME"] GRUVBOX = Theme([ "#282828", "#cc241d", "#98971a", "#d79921", "#458588", "#b16286", "#689d6a", "#a89984", # normal "#928374", "#fb4934", "#b8bb26", "#fabd2f", "#83a598", "#d3869b", "#8ec07c", "#ebdbb2", # light "#fbf1c7", "#9d0006", "#797...
42.857143
106
0.566667
122
1,200
5.491803
0.778689
0.038806
0
0
0
0
0
0
0
0
0
0.171828
0.165833
1,200
27
107
44.444444
0.497503
0.055
0
0
0
0
0.488455
0
0
0
0
0
0
1
0
false
0.043478
0.130435
0
0.130435
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
5f568bc53e3672dfc6a2d2e5b308bf836a18456f
816
py
Python
model.py
lucassouzati/coletor
2a9ffe08e4842d50bf9464e9c72851ff9c918bad
[ "MIT" ]
null
null
null
model.py
lucassouzati/coletor
2a9ffe08e4842d50bf9464e9c72851ff9c918bad
[ "MIT" ]
null
null
null
model.py
lucassouzati/coletor
2a9ffe08e4842d50bf9464e9c72851ff9c918bad
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: UTF-8 -*- import peewee, datetime db = peewee.SqliteDatabase('banco.db') class Ente(peewee.Model): nome = peewee.CharField() municipio = peewee.CharField() link_transparencia = peewee.CharField() link_licitacoes = peewee.CharField() link_contratos = peewee.CharField...
29.142857
67
0.698529
82
816
6.890244
0.45122
0.212389
0.100885
0.067257
0
0
0
0
0
0
0
0.001506
0.186275
816
27
68
30.222222
0.849398
0.089461
0
0.190476
0
0
0.010811
0
0
0
0
0
0
1
0
false
0
0.047619
0
0.857143
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5f57c0db1a6367584afbcac96d390f5c79082b96
15,259
py
Python
SASession.py
daanvanes/mloc_exp
bf6fb94b933f1cb78c60c38f80f03c78e9da3686
[ "MIT" ]
1
2019-03-20T15:12:07.000Z
2019-03-20T15:12:07.000Z
SASession.py
daanvanes/mloc_exp
bf6fb94b933f1cb78c60c38f80f03c78e9da3686
[ "MIT" ]
null
null
null
SASession.py
daanvanes/mloc_exp
bf6fb94b933f1cb78c60c38f80f03c78e9da3686
[ "MIT" ]
null
null
null
from __future__ import division from psychopy import visual, core, misc, event import numpy as np # from IPython import embed as shell from math import * import os, sys, time, pickle import pygame from pygame.locals import * import copy # from pygame import mixer, time #import Quest sys.path.append( 'exp_tools' ) # ...
47.984277
191
0.601612
1,973
15,259
4.371515
0.173847
0.085565
0.096928
0.033043
0.43142
0.342841
0.299246
0.256116
0.245333
0.233507
0
0.019688
0.290976
15,259
317
192
48.135647
0.777521
0.243332
0
0.091954
0
0
0.061216
0.006411
0
0
0
0
0
0
null
null
0
0.068966
null
null
0.011494
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
5f59ce1a60166d42ccc20c6421144ab079044544
2,607
py
Python
ubi_api/api/models.py
rzhang74/Ubi
07f3320f7a4492a1927acc474fbad58002e1757f
[ "MIT" ]
null
null
null
ubi_api/api/models.py
rzhang74/Ubi
07f3320f7a4492a1927acc474fbad58002e1757f
[ "MIT" ]
null
null
null
ubi_api/api/models.py
rzhang74/Ubi
07f3320f7a4492a1927acc474fbad58002e1757f
[ "MIT" ]
null
null
null
from django.db import models from django.utils import timezone from django.contrib.auth.models import User # Create your models here. class Tag(models.Model): tid = models.AutoField(primary_key=True) name = models.CharField(max_length=100) class Video(models.Model): vid = models.AutoField(primary_key=True...
44.948276
107
0.752589
323
2,607
5.928793
0.244582
0.057441
0.075196
0.100261
0.593211
0.562924
0.392689
0.317493
0.267363
0.241775
0
0.010128
0.128884
2,607
58
108
44.948276
0.833113
0.009206
0
0.195652
0
0
0.077459
0
0
0
0
0
0
1
0
false
0
0.065217
0
0.978261
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
5f6289d4732fe91a389914268fc9a3978240e297
18,867
py
Python
main.py
AyushCodez/school-project-grade12
b7732457bec099f76ce3f0a7bd8ce50c9fc3babb
[ "MIT" ]
null
null
null
main.py
AyushCodez/school-project-grade12
b7732457bec099f76ce3f0a7bd8ce50c9fc3babb
[ "MIT" ]
1
2022-02-12T06:48:54.000Z
2022-02-12T06:54:17.000Z
main.py
AyushCodez/school-project-grade12
b7732457bec099f76ce3f0a7bd8ce50c9fc3babb
[ "MIT" ]
null
null
null
# use tkinter to create gui with 3 tabs - current, historical and read csv # import libraries import tkinter as tk from tkinter import ttk from tkinter import filedialog import csv import matplotlib.pyplot as plt import numpy as np from utils import data_util, database_util, graph_util import threading import time im...
35.331461
166
0.556368
2,488
18,867
4.060289
0.137058
0.014849
0.009503
0.014156
0.613938
0.585726
0.547317
0.528311
0.526331
0.47644
0
0.041484
0.28579
18,867
533
167
35.397749
0.708126
0.031908
0
0.486047
0
0
0.086782
0
0
0
0
0
0
0
null
null
0
0.051163
null
null
0.004651
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
5f66e5d8afd035b11ec9d026308675d5bd45bd1f
196
py
Python
power-of-two/power-of-two.py
QQuinn03/LeetHub
51ce21d721f0f524a07ed24266fb5fca473fcaa5
[ "MIT" ]
null
null
null
power-of-two/power-of-two.py
QQuinn03/LeetHub
51ce21d721f0f524a07ed24266fb5fca473fcaa5
[ "MIT" ]
null
null
null
power-of-two/power-of-two.py
QQuinn03/LeetHub
51ce21d721f0f524a07ed24266fb5fca473fcaa5
[ "MIT" ]
null
null
null
class Solution: def isPowerOfTwo(self, n: int) -> bool: i = 0 while 2**i <n: i+=1 if 2**i==n: return True return False
19.6
43
0.397959
24
196
3.25
0.708333
0.051282
0.076923
0
0
0
0
0
0
0
0
0.040816
0.5
196
10
44
19.6
0.755102
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0
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
0
0
0
0
0
0
0
1
5f68000e2a37ff0fa280b1e62c2679a86fe9ea2f
680
py
Python
src/main/python/generator/StringGenerator.py
Ritabrata-TW/test-data-ingestion
57255699c1bbca698b2e649200fe9e8519d274ae
[ "Apache-2.0" ]
null
null
null
src/main/python/generator/StringGenerator.py
Ritabrata-TW/test-data-ingestion
57255699c1bbca698b2e649200fe9e8519d274ae
[ "Apache-2.0" ]
null
null
null
src/main/python/generator/StringGenerator.py
Ritabrata-TW/test-data-ingestion
57255699c1bbca698b2e649200fe9e8519d274ae
[ "Apache-2.0" ]
null
null
null
import random import string import pandas as pd class StringGenerator: def __init__(self, column_name, row_count): self.column_name = column_name self.row_count = row_count def generate(self) -> pd.DataFrame: data_frame = pd.DataFrame(columns=[self.column_name]) for index i...
26.153846
88
0.683824
88
680
5
0.420455
0.113636
0.127273
0
0
0
0
0
0
0
0
0.001912
0.230882
680
25
89
27.2
0.839388
0
0
0
0
0
0
0
0
0
0
0
0
1
0.176471
false
0
0.176471
0
0.529412
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
5f69b10579473c3333e9169cbc03a68e6fe453f7
3,182
py
Python
tf_autoaugment/benchmark/main_benchmark.py
sebastian-sz/tf-autoaugment
6807f5095df1b842a8a17265dc2361165f5d1658
[ "MIT" ]
null
null
null
tf_autoaugment/benchmark/main_benchmark.py
sebastian-sz/tf-autoaugment
6807f5095df1b842a8a17265dc2361165f5d1658
[ "MIT" ]
null
null
null
tf_autoaugment/benchmark/main_benchmark.py
sebastian-sz/tf-autoaugment
6807f5095df1b842a8a17265dc2361165f5d1658
[ "MIT" ]
null
null
null
"""Benchmark Transforms on a batch of inputs.""" from typing import Dict from absl import app, flags from tf_autoaugment.benchmark.benchmarker import TransformBenchmarker from tf_autoaugment.transforms.autocontrast import AutoContrast from tf_autoaugment.transforms.brightness import Brightness from tf_autoaugment.tra...
36.574713
88
0.724073
362
3,182
6.185083
0.226519
0.045556
0.129075
0.192943
0.365342
0.273336
0.250112
0.250112
0.250112
0.250112
0
0.001116
0.155563
3,182
86
89
37
0.832155
0.029541
0
0.197183
0
0
0.158271
0.027299
0
0
0
0
0
1
0.028169
false
0
0.267606
0
0.295775
0.169014
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
5f6a61c8fff16d1aebfe538c92c02df806255c41
569
py
Python
kutub/migrations/0007_manuscript_condition.py
rbturnbull/kutub
46d88cad0fe7b3de70843daeefa7cca6d4a4a840
[ "Apache-2.0" ]
null
null
null
kutub/migrations/0007_manuscript_condition.py
rbturnbull/kutub
46d88cad0fe7b3de70843daeefa7cca6d4a4a840
[ "Apache-2.0" ]
null
null
null
kutub/migrations/0007_manuscript_condition.py
rbturnbull/kutub
46d88cad0fe7b3de70843daeefa7cca6d4a4a840
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.7 on 2021-09-12 06:29 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('kutub', '0006_manuscript_foliation'), ] operations = [ migrations.AddField( model_name='manuscript', name='condition...
29.947368
228
0.664323
68
569
5.485294
0.823529
0
0
0
0
0
0
0
0
0
0
0.050691
0.237258
569
18
229
31.611111
0.808756
0.079086
0
0
1
0.083333
0.360153
0.047893
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5f6ae72541fb5ffad9daa5e61b5a2e49db02bf22
1,672
py
Python
tools/paths.py
LabAixBidouille/CMSIS-DAP
5a621ba7de418d947d06e746ae3c686b0da96af4
[ "Apache-2.0" ]
13
2015-04-24T19:07:49.000Z
2017-08-01T09:09:43.000Z
tools/paths.py
LabAixBidouille/CMSIS-DAP
5a621ba7de418d947d06e746ae3c686b0da96af4
[ "Apache-2.0" ]
null
null
null
tools/paths.py
LabAixBidouille/CMSIS-DAP
5a621ba7de418d947d06e746ae3c686b0da96af4
[ "Apache-2.0" ]
13
2015-08-23T14:04:12.000Z
2017-07-24T10:11:00.000Z
""" CMSIS-DAP Interface Firmware Copyright (c) 2009-2013 ARM Limited 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 la...
38
114
0.682416
224
1,672
4.928571
0.446429
0.054348
0.036232
0.028986
0.155797
0.155797
0
0
0
0
0
0.009009
0.203349
1,672
43
115
38.883721
0.81982
0.352273
0
0.111111
0
0.055556
0.284651
0.173023
0
0
0
0
0
1
0.166667
false
0
0.055556
0.166667
0.388889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
5f6b5e0196468f299557926c69140478bd43ff17
63,355
py
Python
rdr_service/lib_fhir/fhirclient_1_0_6/models/elementdefinition.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
39
2017-10-13T19:16:27.000Z
2021-09-24T16:58:21.000Z
fhirclient/models/elementdefinition.py
NematiLab/Streaming-Sepsis-Prediction-System-for-Intensive-Care-Units
fb5ad260fb8d264d85aea9e6c895d1700eea4d11
[ "Apache-2.0" ]
312
2017-09-08T15:42:13.000Z
2022-03-23T18:21:40.000Z
rdr_service/lib_fhir/fhirclient_1_0_6/models/elementdefinition.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
19
2017-09-15T13:58:00.000Z
2022-02-07T18:33:20.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 1.0.2.7202 (http://hl7.org/fhir/StructureDefinition/ElementDefinition) on 2016-06-23. # 2016, SMART Health IT. from . import element class ElementDefinition(element.Element): """ Definition of an element in a resource or extension. ...
43.905059
138
0.58993
5,826
63,355
6.404222
0.087024
0.046689
0.035646
0.056016
0.455817
0.425397
0.410924
0.388197
0.266168
0.256252
0
0.001264
0.288107
63,355
1,442
139
43.935506
0.825994
0.056507
0
0.092657
1
0
0.224543
0.022895
0
0
0
0
0
1
0.024476
false
0
0.033217
0
0.094406
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
5f7024a782883347143fbd2edb3208df3827f66d
1,334
py
Python
vit_mutual/loss/base_loss.py
zhfeing/loss-landscape
e59afcf68a8408276e7fa5fe2e8f12218485948c
[ "MIT" ]
6
2022-03-09T10:45:20.000Z
2022-03-24T02:03:20.000Z
vit_mutual/loss/base_loss.py
zhfeing/loss-landscape
e59afcf68a8408276e7fa5fe2e8f12218485948c
[ "MIT" ]
null
null
null
vit_mutual/loss/base_loss.py
zhfeing/loss-landscape
e59afcf68a8408276e7fa5fe2e8f12218485948c
[ "MIT" ]
null
null
null
from collections import OrderedDict from typing import Dict import torch import torch.nn as nn import torch.nn.functional as F class Loss(nn.Module): def __init__(self): super().__init__() def forward(self, output: Dict[str, torch.Tensor], target: Dict[str, torch.Tensor]) -> Dict[str, torch.Tensor]:...
31.023256
115
0.642429
186
1,334
4.397849
0.327957
0.121027
0.08802
0.132029
0.256724
0.195599
0.195599
0.195599
0.195599
0.195599
0
0.005797
0.224138
1,334
42
116
31.761905
0.784541
0.032984
0
0.166667
0
0
0.019486
0
0
0
0
0
0
1
0.2
false
0
0.166667
0
0.533333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
5f7b4e1ab1be0cdec77d4a7e3af2566fcf2d7443
9,259
py
Python
pipeline.py
siyuanzhao/dissertation
d6ce4f1e06448a282f9684314a618eceff79e544
[ "MIT" ]
null
null
null
pipeline.py
siyuanzhao/dissertation
d6ce4f1e06448a282f9684314a618eceff79e544
[ "MIT" ]
null
null
null
pipeline.py
siyuanzhao/dissertation
d6ce4f1e06448a282f9684314a618eceff79e544
[ "MIT" ]
null
null
null
import os import pandas as pd import numpy as np import datetime import random import glob # prepare experimental data # input file: this_one.csv # example of output file: ps_exp.csv, ps_train_exp.csv, ps_test_exp.csv # hyperparameters # using sea representation is_sea = 1 all_ps_list = [241622,243393, 246482, 246647,...
48.989418
145
0.609245
1,281
9,259
4.135831
0.181109
0.052661
0.064364
0.035108
0.433749
0.353341
0.307475
0.278218
0.232163
0.223858
0
0.032336
0.241819
9,259
188
146
49.25
0.722365
0.095475
0
0.043478
0
0
0.233541
0.030165
0.007246
0
0
0
0
0
null
null
0
0.043478
null
null
0.065217
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
5f7f14f2e4f1ea1895d3e9708932463eab9d7d19
2,464
py
Python
benchmarks/wrappers/azure/python/handler.py
mcopik/serverless-benchmarks
3b57688873853a1ea74e10b02a9d89f3a4d679ac
[ "BSD-3-Clause" ]
35
2020-12-30T19:31:30.000Z
2022-03-28T11:10:00.000Z
benchmarks/wrappers/azure/python/handler.py
mcopik/serverless-benchmarks
3b57688873853a1ea74e10b02a9d89f3a4d679ac
[ "BSD-3-Clause" ]
24
2021-01-04T15:37:05.000Z
2022-03-14T00:45:20.000Z
benchmarks/wrappers/azure/python/handler.py
mcopik/serverless-benchmarks
3b57688873853a1ea74e10b02a9d89f3a4d679ac
[ "BSD-3-Clause" ]
10
2021-06-13T13:13:39.000Z
2021-12-20T22:05:50.000Z
import datetime, io, json, os, uuid import azure.functions as func # TODO: usual trigger # implement support for blob and others def main(req: func.HttpRequest, context: func.Context) -> func.HttpResponse: income_timestamp = datetime.datetime.now().timestamp() req_json = req.get_json() if 'connection_st...
32.421053
89
0.616883
302
2,464
4.824503
0.360927
0.038435
0.065202
0.04324
0.086479
0
0
0
0
0
0
0.003846
0.261364
2,464
75
90
32.853333
0.796703
0.042614
0
0.032258
0
0
0.128827
0.010629
0
0
0
0.013333
0
1
0.016129
false
0
0.064516
0
0.096774
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
5f83cfc90714f7265b94d96e27b64bd88129f579
272
py
Python
Core Python Programming/Chapter05/0508.py
zhaokai0402/PyQt5-Study
e6280fdc615e47c947c0902836350db49441e6de
[ "MIT" ]
null
null
null
Core Python Programming/Chapter05/0508.py
zhaokai0402/PyQt5-Study
e6280fdc615e47c947c0902836350db49441e6de
[ "MIT" ]
null
null
null
Core Python Programming/Chapter05/0508.py
zhaokai0402/PyQt5-Study
e6280fdc615e47c947c0902836350db49441e6de
[ "MIT" ]
null
null
null
import math # -*- coding:utf-8 -*- if __name__ == '__main__': length = float(input("length: ")) print("squares:", length ** 2) print("cubes:", length ** 3) print("circles:", math.pi * length ** 2) print("squares:", 4.0 / 3.0 * length ** 3 * math.pi)
24.727273
56
0.551471
36
272
3.944444
0.555556
0.169014
0.169014
0
0
0
0
0
0
0
0
0.042453
0.220588
272
10
57
27.2
0.627358
0.073529
0
0
0
0
0.184
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.571429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
5f85f1ec199ea391aea0cad312015ffee3c379d1
600
py
Python
py/2016/4B.py
pedrotari7/advent_of_code
98d5bc8d903435624a019a5702f5421d7b4ef8c8
[ "MIT" ]
null
null
null
py/2016/4B.py
pedrotari7/advent_of_code
98d5bc8d903435624a019a5702f5421d7b4ef8c8
[ "MIT" ]
null
null
null
py/2016/4B.py
pedrotari7/advent_of_code
98d5bc8d903435624a019a5702f5421d7b4ef8c8
[ "MIT" ]
null
null
null
m = ord('z') - ord('a')+1 with open('4.in') as f: for r in f: letters = ' '.join(r.split('-')[:-1]) room_check = r.split('-')[-1].split('[')[1].strip(']') room_id = int(r.split('-')[-1].split('[')[0]) new_str = '' for l in letters: if l != ' ': ...
26.086957
62
0.375
80
600
2.7125
0.4125
0.110599
0.096774
0.110599
0
0
0
0
0
0
0
0.023055
0.421667
600
23
63
26.086957
0.602305
0
0
0
0
0
0.06822
0
0
0
0
0
0
0
null
null
0
0
null
null
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
5f93be29c0cb588f5107f8f4f76a4601942bfdab
252
py
Python
data/process_exercises_name.py
sidrai97/DarwinBot
7865b1fde3b5e842ce92206c0bb89738e41f342d
[ "MIT" ]
1
2020-08-16T16:48:19.000Z
2020-08-16T16:48:19.000Z
data/process_exercises_name.py
sidrai97/DarwinBot
7865b1fde3b5e842ce92206c0bb89738e41f342d
[ "MIT" ]
null
null
null
data/process_exercises_name.py
sidrai97/DarwinBot
7865b1fde3b5e842ce92206c0bb89738e41f342d
[ "MIT" ]
null
null
null
import json data = json.load(open("mongo_ready_exercises.json",encoding="utf8")) ndata = [] for d in data: d["name"] = d["name"].lower() ndata.append(d) fhand = open("mongo_ready_exercises_lower.json","w") json.dump(ndata, fhand) fhand.close()
25.2
68
0.690476
39
252
4.333333
0.538462
0.106509
0.16568
0.272189
0
0
0
0
0
0
0
0.004505
0.119048
252
10
69
25.2
0.756757
0
0
0
0
0
0.280632
0.229249
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5f991d257415937378d2bee54888c4dc465f8486
968
py
Python
docs/sphinx_ll_theme/__init__.py
LivingLogic/LivingApps.Python.LivingAPI
70bb71d7f582535a4c52e1f00d9ed070f3f2cc4f
[ "MIT" ]
2
2017-09-15T15:28:23.000Z
2019-01-25T09:23:53.000Z
docs/sphinx_ll_theme/__init__.py
LivingLogic/LivingApps.Python.LivingAPI
70bb71d7f582535a4c52e1f00d9ed070f3f2cc4f
[ "MIT" ]
1
2019-01-28T08:06:23.000Z
2019-01-28T14:45:52.000Z
docs/sphinx_ll_theme/__init__.py
LivingLogic/LivingApps.Python.LivingAPI
70bb71d7f582535a4c52e1f00d9ed070f3f2cc4f
[ "MIT" ]
1
2019-01-25T21:20:55.000Z
2019-01-25T21:20:55.000Z
""" LivingLogic Sphinx theme. Based on Sphinx ReadTheDocs theme. From https://github.com/ryan-roemer/sphinx-bootstrap-theme. """ from os import path from sphinx.writers import html5 __version__ = '0.2' __version_full__ = __version__ class HTML5Translator(html5.HTML5Translator): def visit_desc_returns(self, node)...
26.162162
128
0.748967
140
968
4.921429
0.528571
0.039187
0.05225
0.078374
0.107402
0.107402
0.107402
0.107402
0
0
0
0.014874
0.097107
968
36
129
26.888889
0.773455
0.271694
0
0
0
0.0625
0.211063
0.13246
0
0
0
0
0
1
0.25
false
0
0.125
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
5f9df443c41a4389b5b82642234c2189dbf52ec1
2,337
py
Python
tests/bugs/gh_7034_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2022-02-05T11:37:13.000Z
2022-02-05T11:37:13.000Z
tests/bugs/gh_7034_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-09-03T11:47:00.000Z
2021-09-03T12:42:10.000Z
tests/bugs/gh_7034_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.gh_7034 # title: Scroll cursor server crash # decription: # https://github.com/FirebirdSQL/firebird/issues/7034 # # Confirmed bug (crash) on 5.0.0.279, 4.0.1.2649, 3.0.8.33525. # Checked on intermediate s...
22.68932
100
0.571673
333
2,337
3.906907
0.375375
0.021522
0.013836
0.043044
0.142967
0.10761
0.055342
0.055342
0
0
0
0.073744
0.326915
2,337
102
101
22.911765
0.753338
0.206675
0
0.19697
0
0
0.736126
0
0
0
0
0
0.015152
1
0.015152
false
0
0.030303
0
0.045455
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
5fa514d84a1c797ae7de52776cabcb6b64f3a853
432
py
Python
Chapter 4/dictionary.py
Jigyanshu17/Python-Ka-Saara-Gyaan
d3f5dbb3fef45a7a6953bf6041b0b3bf6c54ad2b
[ "Apache-2.0" ]
null
null
null
Chapter 4/dictionary.py
Jigyanshu17/Python-Ka-Saara-Gyaan
d3f5dbb3fef45a7a6953bf6041b0b3bf6c54ad2b
[ "Apache-2.0" ]
null
null
null
Chapter 4/dictionary.py
Jigyanshu17/Python-Ka-Saara-Gyaan
d3f5dbb3fef45a7a6953bf6041b0b3bf6c54ad2b
[ "Apache-2.0" ]
null
null
null
#Dictionary is key value pairs. d1 = {} print(type(d1)) d2 ={ "Jiggu":"Burger", "Rohan":"Fish", "Ravi":"Roti"} #print(d2["Jiggu"]) case sensitive,tell about there syn... #we can make dictionary inside a dictionary d3 = {"Jiggu":"Burger", "Rohan":"Fish", "Ravi":"Roti", "Pagal":{"B":"Oats","L": "Rice","D":"C...
24
59
0.576389
60
432
4.15
0.683333
0.056225
0.128514
0.160643
0.2249
0.2249
0
0
0
0
0
0.047222
0.166667
432
17
60
25.411765
0.644444
0.298611
0
0
0
0
0.390698
0
0
0
0
0
0
1
0
false
0
0
0
0
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
5fbb76293e5013cf61271f280da18702473c29f3
2,103
py
Python
forge/stub_handle.py
ujjwalsh/pyforge
454d7df39f6d6cc7531d3f87e7b7f7d83ae6e66e
[ "BSD-3-Clause" ]
7
2015-01-01T18:40:53.000Z
2021-10-20T14:13:08.000Z
forge/stub_handle.py
ujjwalsh/pyforge
454d7df39f6d6cc7531d3f87e7b7f7d83ae6e66e
[ "BSD-3-Clause" ]
6
2016-03-31T16:40:30.000Z
2020-12-23T07:24:53.000Z
forge/stub_handle.py
ujjwalsh/pyforge
454d7df39f6d6cc7531d3f87e7b7f7d83ae6e66e
[ "BSD-3-Clause" ]
9
2016-03-31T15:21:29.000Z
2021-03-20T06:29:09.000Z
from .handle import ForgeHandle from .signature import FunctionSignature from .bound_signature_adapter import BoundSignatureAdapter class StubHandle(ForgeHandle): def __init__(self, forge, stub, original, name=None): super(StubHandle, self).__init__(forge) self.stub = stub self.name = name ...
35.644068
96
0.68331
266
2,103
5.06015
0.233083
0.073551
0.077266
0.104012
0.326152
0.267459
0.17682
0.098811
0.098811
0.069094
0
0.003106
0.234427
2,103
58
97
36.258621
0.832919
0.006657
0
0.042553
0
0
0
0
0
0
0
0
0
1
0.212766
false
0
0.06383
0.06383
0.510638
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
5fbbffe8ebd16ecff0b0e4db2aaf83dae2737a00
2,750
py
Python
tests/test_config.py
pwwang/simpleconf
aa40be82e9a1710e04bc5d0c1cb4a1afe2c8d6a1
[ "MIT" ]
1
2019-04-13T06:56:47.000Z
2019-04-13T06:56:47.000Z
tests/test_config.py
pwwang/simpleconf
aa40be82e9a1710e04bc5d0c1cb4a1afe2c8d6a1
[ "MIT" ]
null
null
null
tests/test_config.py
pwwang/simpleconf
aa40be82e9a1710e04bc5d0c1cb4a1afe2c8d6a1
[ "MIT" ]
null
null
null
import pytest from simpleconf import Config, ProfileConfig pytest_plugins = ["tests.fixt_simpleconf"] def test_nonprofile(ini_file, dict_obj): config = Config.load(dict_obj) assert config.default.a == 1 assert config.b == 2 with pytest.warns(UserWarning): config = Config.load({"a": {"b": 2...
30.898876
69
0.648727
346
2,750
5.046243
0.156069
0.103093
0.091638
0.056128
0.617984
0.427262
0.383734
0.383734
0.32016
0.284078
0
0.022181
0.213091
2,750
88
70
31.25
0.784658
0
0
0.408451
0
0
0.064364
0.007636
0
0
0
0
0.56338
1
0.056338
false
0
0.028169
0
0.084507
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
5fc9dd8ee4be7db3b0bfca7bf525579e9f8bc0a4
209
py
Python
elevationapi/__init__.py
Frankkkkk/python-elevationapi
ed879df6c4ec75777f486337b8d24b6377f06839
[ "MIT" ]
3
2017-03-11T08:12:59.000Z
2022-01-03T09:21:17.000Z
elevationapi/__init__.py
Frankkkkk/python-elevationapi
ed879df6c4ec75777f486337b8d24b6377f06839
[ "MIT" ]
1
2017-03-11T08:05:11.000Z
2017-03-11T08:05:11.000Z
elevationapi/__init__.py
Frankkkkk/python-elevationapi
ed879df6c4ec75777f486337b8d24b6377f06839
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ## Frank@Villaro-Dixon.eu - DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE, etc. __version__ = "1.0" from .Elevation import Elevation # vim: set ts=4 sw=4 noet:
19
77
0.669856
35
209
3.885714
0.942857
0
0
0
0
0
0
0
0
0
0
0.034884
0.177033
209
10
78
20.9
0.755814
0.684211
0
0
0
0
0.05
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
5fcb55be3b77ba4b6232a73c88023a0d08bc9168
2,023
py
Python
src/priceapi/migrations/0001_initial.py
lerdem/krovlyastroy
9d36580a051f66cffc14d34951d231dc2942548f
[ "BSD-3-Clause" ]
null
null
null
src/priceapi/migrations/0001_initial.py
lerdem/krovlyastroy
9d36580a051f66cffc14d34951d231dc2942548f
[ "BSD-3-Clause" ]
9
2018-09-25T09:09:23.000Z
2022-02-10T07:39:36.000Z
src/priceapi/migrations/0001_initial.py
lerdem/krovlyastroy
9d36580a051f66cffc14d34951d231dc2942548f
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.1 on 2018-09-21 20:54 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='CommonInfo', fields=[ ...
43.042553
182
0.567968
195
2,023
5.764103
0.446154
0.058719
0.067616
0.078292
0.320285
0.263345
0.263345
0.263345
0.263345
0.263345
0
0.022603
0.2783
2,023
46
183
43.978261
0.74726
0.021256
0
0.410256
1
0
0.165824
0
0
0
0
0
0
1
0
false
0
0.051282
0
0.153846
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
5fce55cdef1b6f06d12f25204aa1cf9619de3829
2,329
py
Python
vd_analyzer/analyzer.py
AlevtinaGlonina/MCSSim
d668115949e6eb49b6e1e21c011e48e05a59445f
[ "BSD-3-Clause" ]
null
null
null
vd_analyzer/analyzer.py
AlevtinaGlonina/MCSSim
d668115949e6eb49b6e1e21c011e48e05a59445f
[ "BSD-3-Clause" ]
null
null
null
vd_analyzer/analyzer.py
AlevtinaGlonina/MCSSim
d668115949e6eb49b6e1e21c011e48e05a59445f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import xml.dom.minidom import sys if __name__ == "__main__": if len(sys.argv) != 3: print "Usage: " + sys.argv[0] + "<conf.xml> <vd.xml>" exit(1) file_conf = open(sys.argv[1]) dom_conf = xml.dom.minidom.parse(file_conf) tasks = {} for node in dom_conf.ge...
34.25
109
0.531559
270
2,329
4.425926
0.222222
0.05523
0.119665
0.066946
0.456067
0.385774
0.287029
0.287029
0.209205
0.209205
0
0.014379
0.343066
2,329
67
110
34.761194
0.766667
0.063117
0
0.217391
0
0
0.056552
0
0
0
0
0
0
0
null
null
0
0.043478
null
null
0.065217
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
3956678a0cf2a58793cfdf8926ed554df2944759
1,176
py
Python
Iirc.EnergyStatesAndCostsScheduling.Shared/python/cp_utils.py
CTU-IIG/EnergyStatesAndCostsScheduling
6101784fd692c828c1564ef3377743d4561652cb
[ "MIT" ]
null
null
null
Iirc.EnergyStatesAndCostsScheduling.Shared/python/cp_utils.py
CTU-IIG/EnergyStatesAndCostsScheduling
6101784fd692c828c1564ef3377743d4561652cb
[ "MIT" ]
null
null
null
Iirc.EnergyStatesAndCostsScheduling.Shared/python/cp_utils.py
CTU-IIG/EnergyStatesAndCostsScheduling
6101784fd692c828c1564ef3377743d4561652cb
[ "MIT" ]
null
null
null
# This file is released under MIT license. # See file LICENSE.txt for more information. from docplex.cp.solution import CpoSolveResult from docplex.cp.model import SOLVE_STATUS_FEASIBLE, SOLVE_STATUS_INFEASIBLE, SOLVE_STATUS_OPTIMAL, FAIL_STATUS_TIME_LIMIT, FAIL_STATUS_SEARCH_COMPLETED from datastructs.result import ...
40.551724
151
0.786565
156
1,176
5.589744
0.320513
0.138761
0.077982
0.086009
0.174312
0
0
0
0
0
0
0
0.158163
1,176
28
152
42
0.880808
0.157313
0
0
0
0
0
0
0
0
0
0
0
1
0.105263
false
0
0.157895
0
0.578947
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
395e3954432557f9b6b6a6a5b4354bb6ddfb934b
2,392
py
Python
openc2/core.py
twodayslate/openc2-lycan-python
57d68bf1bffb79af34be677645049d3c45d690a4
[ "MIT" ]
6
2018-04-27T14:55:36.000Z
2022-02-06T16:42:53.000Z
openc2/core.py
twodayslate/openc2-lycan-python
57d68bf1bffb79af34be677645049d3c45d690a4
[ "MIT" ]
25
2018-06-21T17:50:56.000Z
2020-04-08T15:38:14.000Z
openc2/core.py
twodayslate/openc2-lycan-python
57d68bf1bffb79af34be677645049d3c45d690a4
[ "MIT" ]
10
2018-04-25T15:17:35.000Z
2021-08-14T09:36:23.000Z
# # The MIT License (MIT) # # Copyright 2019 AT&T Intellectual Property. All other rights reserved. # # 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 l...
36.8
95
0.711538
336
2,392
4.877976
0.467262
0.053691
0.063453
0.019524
0.025625
0
0
0
0
0
0
0.010526
0.205686
2,392
64
96
37.375
0.852105
0.51505
0
0
0
0
0.062776
0
0
0
0
0
0
1
0.076923
false
0
0.307692
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
1
0
0
0
0
1
396683a78efa6cd30ca2a7e6855110974bc27ad8
332
py
Python
QRcode.py
MuAuan/QR_code
d806da59d60112ebe1072eed75c740831f88fa6a
[ "MIT" ]
null
null
null
QRcode.py
MuAuan/QR_code
d806da59d60112ebe1072eed75c740831f88fa6a
[ "MIT" ]
null
null
null
QRcode.py
MuAuan/QR_code
d806da59d60112ebe1072eed75c740831f88fa6a
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- from pyzbar.pyzbar import decode from PIL import Image import numpy as np # 画像ファイルの指定 #image = "test.png" image = "qrcode.png" # QRコードの読取り data = decode(Image.open(image)) input=data[0][0].decode('utf-8', 'ignore') num0=np.float(input[1:4]) num1=np.float(input[5:8]) # コード内容を出力 print(num0,num...
18.444444
42
0.695783
55
332
4.2
0.545455
0.034632
0.103896
0
0
0
0
0
0
0
0
0.047945
0.120482
332
18
43
18.444444
0.743151
0.204819
0
0
0
0
0.081081
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
1
0
0
0
0
1
396a29dded3280d11d6a1be1cbcf16192c9b8ad7
601
py
Python
Coding Club India/Asked Microsoft Interview Questions/LCAinBST.py
AbhiSaphire/Codechef.Practice
f671292dad2695e37458866442a6b951ba4e1a71
[ "MIT" ]
27
2020-05-19T06:46:45.000Z
2022-02-06T20:29:58.000Z
Coding Club India/Asked Microsoft Interview Questions/LCAinBST.py
AbhiSaphire/Codechef.Practice
f671292dad2695e37458866442a6b951ba4e1a71
[ "MIT" ]
1
2020-06-23T13:08:08.000Z
2020-10-06T06:27:15.000Z
Coding Club India/Asked Microsoft Interview Questions/LCAinBST.py
AbhiSaphire/Codechef.Practice
f671292dad2695e37458866442a6b951ba4e1a71
[ "MIT" ]
4
2020-05-19T06:47:52.000Z
2021-07-09T02:49:09.000Z
# Python3 Finding Lowest Common Ancestor in Binary Tree ----> O(N) def find_lca_bt(root, n1, n2): if not root: return None left_lca = find_lca_bt(root.left, n1, n2) right_lca = find_lca_bt(root.right, n1, n2) if left_lca and right_lca: return root return left_lca if left_lca else right_lca # Python3 Findi...
24.04
76
0.72213
110
601
3.772727
0.263636
0.101205
0.06506
0.093976
0.626506
0.549398
0.549398
0.346988
0.216867
0.216867
0
0.028513
0.183028
601
25
77
24.04
0.816701
0.231281
0
0.375
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0
0
0.5625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
3974270ffcc90fc7360a649fe9ada5e119bd352f
908
py
Python
notebook/lib/p3_Filter.py
citizenlabsgr/adopt-a-drain
d8dc68aef3f05e63d7e4083294454934d86d8a8a
[ "BSD-3-Clause" ]
4
2019-02-06T00:35:44.000Z
2020-03-03T23:51:30.000Z
notebook/lib/p3_Filter.py
citizenlabsgr/adopt-a-drain
d8dc68aef3f05e63d7e4083294454934d86d8a8a
[ "BSD-3-Clause" ]
201
2018-02-05T20:10:19.000Z
2022-03-30T22:28:53.000Z
notebook/lib/p3_Filter.py
citizenlabsgr/adopt-a-drain
d8dc68aef3f05e63d7e4083294454934d86d8a8a
[ "BSD-3-Clause" ]
5
2018-02-16T13:54:04.000Z
2019-06-09T05:27:39.000Z
class DF_Filter(dict): ''' store and format query where clause ''' def __init__(self,filter_value={}): self['filter_list'] = [] def add(self,val): self['filter_list'].append(val) return self def getFilter(self): if len(self['filter_list'])==0: ms...
20.177778
54
0.562775
109
908
4.46789
0.458716
0.102669
0.11499
0.069815
0
0
0
0
0
0
0
0.004587
0.279736
908
45
55
20.177778
0.740061
0.07489
0
0.137931
0
0
0.164034
0
0
0
0
0
0
1
0.206897
false
0
0
0
0.310345
0.172414
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
397775d8eff84f0424091df114685054d2864809
3,352
py
Python
Projects/009_Random_Boolean_Networks.py
guilhermebaos/Other-Programs
9240d08732497b855aa2aba35e513444222b371e
[ "MIT" ]
null
null
null
Projects/009_Random_Boolean_Networks.py
guilhermebaos/Other-Programs
9240d08732497b855aa2aba35e513444222b371e
[ "MIT" ]
null
null
null
Projects/009_Random_Boolean_Networks.py
guilhermebaos/Other-Programs
9240d08732497b855aa2aba35e513444222b371e
[ "MIT" ]
null
null
null
# Generate patterns using Random Boolean Networks # Inspired by Computerphile: https://www.youtube.com/watch?v=mCML2B94rUg from random import choice, randint def binaryToDecimal(num_str): dec = 0 len_num = len(num_str) num_str = str(num_str) for pos, bit in enumerate(num_str): if int(bit) == ...
30.472727
97
0.615453
447
3,352
4.474273
0.302013
0.036
0.018
0.017
0.076
0.076
0
0
0
0
0
0.0175
0.28401
3,352
109
98
30.752294
0.815833
0.251492
0
0.217949
1
0
0.038616
0
0
0
0
0
0
1
0.025641
false
0.012821
0.025641
0
0.076923
0.128205
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
397919ca474f9fe6f5b6df12a8d5c9032435fbe4
1,960
py
Python
myshop/orders/models.py
mp5maker/django
a2d38e2e9973e755afce1bd0ccb17e58f3db7e33
[ "MIT" ]
null
null
null
myshop/orders/models.py
mp5maker/django
a2d38e2e9973e755afce1bd0ccb17e58f3db7e33
[ "MIT" ]
13
2020-02-12T00:14:20.000Z
2022-02-10T08:46:42.000Z
myshop/orders/models.py
mp5maker/django
a2d38e2e9973e755afce1bd0ccb17e58f3db7e33
[ "MIT" ]
null
null
null
from django.db import models from decimal import Decimal from django.utils.translation import gettext_lazy as _ from django.core.validators import ( MinValueValidator, MaxValueValidator ) from coupons.models import Coupon from shop.models import Product class Order(models.Model): first_name=models.Cha...
29.253731
73
0.676531
232
1,960
5.512931
0.392241
0.070367
0.032838
0.023456
0.120407
0.051603
0
0
0
0
0
0.017464
0.211224
1,960
67
74
29.253731
0.809832
0
0
0.072727
0
0
0.045385
0
0
0
0
0
0
1
0.072727
false
0
0.109091
0.054545
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
3981c764c34ee5c0caec2d72b7eb6fdc33cb3c46
367
py
Python
lib-src/lv2/lv2/plugins/eg04-sampler.lv2/waflib/Tools/gas.py
bit-trade-one/SoundModuleAP
7f26c0f41aad3b0922afe5ab397816fd105d02b4
[ "CC-BY-3.0" ]
1
2015-10-23T02:39:52.000Z
2015-10-23T02:39:52.000Z
lib-src/lv2/sratom/waflib/Tools/gas.py
bit-trade-one/SoundModuleAP
7f26c0f41aad3b0922afe5ab397816fd105d02b4
[ "CC-BY-3.0" ]
null
null
null
lib-src/lv2/sratom/waflib/Tools/gas.py
bit-trade-one/SoundModuleAP
7f26c0f41aad3b0922afe5ab397816fd105d02b4
[ "CC-BY-3.0" ]
null
null
null
#! /usr/bin/env python # encoding: utf-8 # WARNING! Do not edit! http://waf.googlecode.com/git/docs/wafbook/single.html#_obtaining_the_waf_file import waflib.Tools.asm from waflib.Tools import ar def configure(conf): conf.find_program(['gas','gcc'],var='AS') conf.env.AS_TGT_F=['-c','-o'] conf.env.ASLNK_TGT...
28.230769
103
0.692098
62
367
3.935484
0.709677
0.090164
0
0
0
0
0
0
0
0
0
0.003086
0.117166
367
12
104
30.583333
0.75
0.373297
0
0
1
0
0.079439
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
39862d30ead3f196a2815e52b254c758aea15a23
1,074
py
Python
aulaClasses/simplificar_fracoes.py
lalapapauhuh/Python
1454263b46d66a0b19b7a2fd1b465800fe95a2c8
[ "MIT" ]
null
null
null
aulaClasses/simplificar_fracoes.py
lalapapauhuh/Python
1454263b46d66a0b19b7a2fd1b465800fe95a2c8
[ "MIT" ]
null
null
null
aulaClasses/simplificar_fracoes.py
lalapapauhuh/Python
1454263b46d66a0b19b7a2fd1b465800fe95a2c8
[ "MIT" ]
null
null
null
def mdc(x1, x2): while x1%x2 != 0: nx1 = x1 nx2 = x2 # Trocando os valores de variavel x1 = nx2 x2 = nx1 % nx2 # x2 recebe o resto da divisao entre nx1 e nx2 return x2 class Fracao: def __init__(self, numerador, denominador): self.num = numerador sel...
24.976744
79
0.56797
156
1,074
3.737179
0.339744
0.096055
0.06175
0.051458
0.06518
0
0
0
0
0
0
0.047684
0.316574
1,074
43
80
24.976744
0.746594
0.20298
0
0.064516
0
0
0.001176
0
0
0
0
0.023256
0
1
0.16129
false
0
0
0.032258
0.290323
0.096774
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
3989cd911d7153d442f1c54fccd337a7d63f6ed9
878
py
Python
setup.py
caciolai/DeepLearningProject
cc590a3f37895673618f212af24c141a7f6b8e8b
[ "MIT" ]
2
2021-11-04T21:02:24.000Z
2021-11-13T12:35:08.000Z
setup.py
caciolai/Geometric-Deep-Learning-for-Virality-Prediction-of-Hashtags
4f178195cbc9a2ce90cd72076bd244fdda0627e7
[ "MIT" ]
null
null
null
setup.py
caciolai/Geometric-Deep-Learning-for-Virality-Prediction-of-Hashtags
4f178195cbc9a2ce90cd72076bd244fdda0627e7
[ "MIT" ]
null
null
null
from setuptools import find_packages from setuptools import setup setup( name='virality', version='1.0.0', description='Geometric Deep Learning for Virality Prediction of Hashtags.', author='caciolai, crisostomi', license='MIT License', url='https://github.com/caciolai/Geometric-Deep-Learning-f...
28.322581
98
0.603645
91
878
5.769231
0.659341
0.053333
0.07619
0.091429
0.198095
0.198095
0.198095
0.198095
0
0
0
0.009202
0.257403
878
31
99
28.322581
0.796012
0.077449
0
0
0
0.033333
0.42698
0
0
0
0
0
0
1
0
true
0
0.066667
0
0.066667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
398b70d05dbc4bb8f9d308257dbac87ff921b592
1,737
py
Python
securityheaders/checkers/csp/test_srchttp.py
th3cyb3rc0p/securityheaders
941264be581dc01afe28f6416f2d7bed79aecfb3
[ "Apache-2.0" ]
151
2018-07-29T22:34:43.000Z
2022-03-22T05:08:27.000Z
securityheaders/checkers/csp/test_srchttp.py
th3cyb3rc0p/securityheaders
941264be581dc01afe28f6416f2d7bed79aecfb3
[ "Apache-2.0" ]
5
2019-04-24T07:31:36.000Z
2021-04-15T14:31:23.000Z
securityheaders/checkers/csp/test_srchttp.py
th3cyb3rc0p/securityheaders
941264be581dc01afe28f6416f2d7bed79aecfb3
[ "Apache-2.0" ]
42
2018-07-31T08:18:59.000Z
2022-03-28T08:18:32.000Z
import unittest from securityheaders.checkers.csp import CSPSCRHTTPChecker, CSPReportOnlySCRHTTPChecker class HTTPTest(unittest.TestCase): def setUp(self): self.x = CSPSCRHTTPChecker() self.y = CSPReportOnlySCRHTTPChecker() def test_checkNoCSP(self): nox = dict() nox['test'] = 'v...
31.017857
103
0.631549
200
1,737
5.405
0.29
0.051804
0.105458
0.092507
0.52914
0.477336
0.423682
0.416281
0.201665
0.123959
0
0.014793
0.221647
1,737
55
104
31.581818
0.784763
0
0
0.186047
0
0
0.205069
0.109447
0
0
0
0
0.232558
1
0.209302
false
0
0.046512
0
0.27907
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
398c525ca9b257175c033f93da19656ed32886af
806
py
Python
canvaspath/coursesystem/migrations/0012_auto_20190423_1652.py
jaykv/canvaspath
510c5b4bcb266ceade4e0a5a06debc21ae4579c0
[ "MIT" ]
1
2019-05-01T04:27:19.000Z
2019-05-01T04:27:19.000Z
canvaspath/coursesystem/migrations/0012_auto_20190423_1652.py
jaykv/canvaspath
510c5b4bcb266ceade4e0a5a06debc21ae4579c0
[ "MIT" ]
null
null
null
canvaspath/coursesystem/migrations/0012_auto_20190423_1652.py
jaykv/canvaspath
510c5b4bcb266ceade4e0a5a06debc21ae4579c0
[ "MIT" ]
1
2019-05-26T02:32:57.000Z
2019-05-26T02:32:57.000Z
# Generated by Django 2.1.7 on 2019-04-23 21:52 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('coursesystem', '0011_auto_20190423_1313'), ] operations = [ migrations.AlterField( model_name='...
29.851852
123
0.638958
88
806
5.704545
0.511364
0.063745
0.083665
0.131474
0.338645
0.338645
0.338645
0.338645
0.338645
0.338645
0
0.051155
0.248139
806
26
124
31
0.777228
0.055831
0
0.3
1
0
0.147563
0.057971
0
0
0
0
0
1
0
false
0
0.1
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
399561091da9dfe921eaef382d30451fdebb5c2d
3,676
py
Python
nabu/neuralnetworks/models/ntt_rec.py
Darleen2019/Nabu-MSSS
5e862cbf846d45b8a317f87588533f3fde9f0726
[ "MIT" ]
18
2017-10-16T13:12:46.000Z
2022-02-15T01:20:00.000Z
nabu/neuralnetworks/models/ntt_rec.py
Darleen2019/Nabu-MSSS
5e862cbf846d45b8a317f87588533f3fde9f0726
[ "MIT" ]
null
null
null
nabu/neuralnetworks/models/ntt_rec.py
Darleen2019/Nabu-MSSS
5e862cbf846d45b8a317f87588533f3fde9f0726
[ "MIT" ]
9
2017-10-03T18:10:10.000Z
2020-11-13T08:26:31.000Z
"""@file ntt_rec.py contains de NTTRec class""" import tensorflow as tf import model from nabu.neuralnetworks.components import layer import collections NTTState_names = ('iter_count', 'input_spec', 'input_seq_length', 'res_mask', 'all_masks') NTTState = collections.namedtuple('NTTState', NTTState_names) NTTOutputs =...
27.22963
114
0.726605
557
3,676
4.529623
0.317774
0.063417
0.061038
0.03369
0.253666
0.167658
0.1304
0.107412
0.093539
0.093539
0
0.008812
0.166485
3,676
134
115
27.432836
0.814621
0.063928
0
0.057143
0
0
0.075391
0
0
0
0
0
0
0
null
null
0
0.057143
null
null
0.014286
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
399577c5d65808b19d700259b693af618810f2ef
5,344
py
Python
yaml2data.py
jangcom/yaml2data
4ce6218540e5ef95eb9993e66d196b78a165d2ad
[ "MIT" ]
null
null
null
yaml2data.py
jangcom/yaml2data
4ce6218540e5ef95eb9993e66d196b78a165d2ad
[ "MIT" ]
3
2021-12-02T00:49:30.000Z
2021-12-02T01:52:37.000Z
yaml2data.py
jangcom/yaml2data
4ce6218540e5ef95eb9993e66d196b78a165d2ad
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Generate multiple data files from a single YAML file Generate data files in multiple formats using a single YAML file encoded in UTF-8. Functions --------- read_argv(desc='') Read in sys.argv. read_yaml(file, is_echo=False) Read in a YAML file encoded in UTF-8. rpt_gen(fname, is_sq_b...
31.435294
79
0.570921
707
5,344
4.132956
0.267327
0.03833
0.024641
0.023272
0.188227
0.167009
0.152635
0.11499
0.11499
0.11499
0
0.008497
0.295284
5,344
169
80
31.621302
0.767392
0.333645
0
0.048193
1
0
0.095252
0
0
0
0
0
0
1
0.048193
false
0
0.072289
0
0.144578
0.072289
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
39973a673c78692566cffd1fbfaf81caca542ccb
10,554
py
Python
src/onegov/org/views/auth.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/views/auth.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/views/auth.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
""" The authentication views. """ import morepath from onegov.core.markdown import render_untrusted_markdown from onegov.core.security import Public, Personal from onegov.org import _, OrgApp from onegov.org import log from onegov.org.elements import Link from onegov.org.layout import DefaultLayout from onegov.org.ma...
33.611465
78
0.622039
1,145
10,554
5.619214
0.206114
0.029531
0.026111
0.023624
0.352813
0.246969
0.212154
0.163506
0.125583
0.109419
0
0
0.276483
10,554
313
79
33.71885
0.842588
0.070305
0
0.303797
0
0
0.150133
0.004817
0
0
0
0
0
1
0.042194
false
0.105485
0.092827
0
0.198312
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
399ac654abf6872c3127ebb066c9dc4db034e195
385
py
Python
Curso Python/ex034.py
IgorEnricoFP/Curso-em-Video
473f9f2450cd95243567682a7624d1e84e48b922
[ "MIT" ]
null
null
null
Curso Python/ex034.py
IgorEnricoFP/Curso-em-Video
473f9f2450cd95243567682a7624d1e84e48b922
[ "MIT" ]
null
null
null
Curso Python/ex034.py
IgorEnricoFP/Curso-em-Video
473f9f2450cd95243567682a7624d1e84e48b922
[ "MIT" ]
null
null
null
cores = {"azul": '\033[36m', "vermelho": '\033[31m', "normal": '\033[m'} sal1 = float(input('Qual é o salário do funcionário? R$')) sal2 = sal1 * (10 / 100) if sal1 <= 1250: sal2 = sal1 + (sal1 * 15 / 100) else: sal2 = sal1 + (sal1 * 10 / 100) print(f'Quem ganhava {cores["vermelho"]}R${sal1:.2...
35
114
0.563636
57
385
3.807018
0.578947
0.110599
0.082949
0
0
0
0
0
0
0
0
0.15082
0.207792
385
10
115
38.5
0.560656
0
0
0
0
0.1
0.464935
0.207792
0
0
0
0
0
1
0
false
0.1
0
0
0
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
1
0
0
0
0
0
1
399d9cf95d3ba2602fd4bd013e87bdc428378b28
10,181
py
Python
pergamena/riparazioni/views.py
cekk/pergamena
cafe3bd141dcd8f831fc917f010aeb917af6b11b
[ "BSD-3-Clause" ]
null
null
null
pergamena/riparazioni/views.py
cekk/pergamena
cafe3bd141dcd8f831fc917f010aeb917af6b11b
[ "BSD-3-Clause" ]
null
null
null
pergamena/riparazioni/views.py
cekk/pergamena
cafe3bd141dcd8f831fc917f010aeb917af6b11b
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from flask import Blueprint, render_template from flask import (Blueprint, request, render_template, flash, url_for, redirect, session) blueprint = Blueprint("riparazioni", __name__, url_prefix='/riparazioni', static_folder="../static") from pergame...
41.386179
137
0.61821
1,082
10,181
5.663586
0.179298
0.024967
0.028721
0.045529
0.523662
0.446312
0.406495
0.383812
0.298956
0.273825
0
0.006176
0.252529
10,181
245
138
41.555102
0.79908
0.002063
0
0.443946
0
0
0.181532
0.054243
0
0
0
0
0
0
null
null
0
0.085202
null
null
0.085202
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
399db35009ef5c735dcdfade39963387cd82a983
2,529
py
Python
Python_Library_Mathematic_Basics.py
louis-tomczyk/Custom-python-libraries
52d8369384b7d72f40db155672acced622d7aea1
[ "MIT" ]
null
null
null
Python_Library_Mathematic_Basics.py
louis-tomczyk/Custom-python-libraries
52d8369384b7d72f40db155672acced622d7aea1
[ "MIT" ]
null
null
null
Python_Library_Mathematic_Basics.py
louis-tomczyk/Custom-python-libraries
52d8369384b7d72f40db155672acced622d7aea1
[ "MIT" ]
null
null
null
# ============================================================================# # author : louis TOMCZYK # goal : Definition of personalized Mathematics Basics functions # ============================================================================# # version : 0.0.1 - 2021 09 27 - derivati...
33.276316
79
0.294187
190
2,529
3.773684
0.357895
0.039052
0.025105
0.046025
0
0
0
0
0
0
0
0.021493
0.300909
2,529
75
80
33.72
0.38405
0.498616
0
0.0625
0
0
0.004082
0
0
0
0
0
0
1
0.15625
false
0
0
0.03125
0.3125
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
39ace97266671a5ef8f7cb0690668dc14cbd27f2
811
py
Python
wordcount.py
raminrz/MScProject
9d5a3462ee2c732a20b9ecf8a8dfe1b2ea3121ac
[ "MIT" ]
1
2019-02-25T07:46:59.000Z
2019-02-25T07:46:59.000Z
wordcount.py
raminrzdh/MScProject
9d5a3462ee2c732a20b9ecf8a8dfe1b2ea3121ac
[ "MIT" ]
null
null
null
wordcount.py
raminrzdh/MScProject
9d5a3462ee2c732a20b9ecf8a8dfe1b2ea3121ac
[ "MIT" ]
null
null
null
import re import os import fnmatch try: for root, dirnames, filenames in os.walk(os.path.dirname(os.path.realpath(__file__))): for filename in fnmatch.filter(filenames, '*.txt'): filename = os.path.join(root, filename) f = open(filename, 'r') print '[-] Scanning', os.path...
38.619048
90
0.556104
99
811
4.505051
0.565657
0.053812
0
0
0
0
0
0
0
0
0
0.005217
0.290999
811
21
91
38.619048
0.770435
0
0
0
0
0
0.098522
0
0
0
0
0
0
0
null
null
0
0.142857
null
null
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
39b620998ce81e0db7ce81f2ab75a3ae3fdf100c
13,485
py
Python
homeworks/10th-homework/grade.py
RodrigoDuarte655/python
ac58bf4faec9061a003c5d5cc149ffe0e0c10045
[ "MIT" ]
null
null
null
homeworks/10th-homework/grade.py
RodrigoDuarte655/python
ac58bf4faec9061a003c5d5cc149ffe0e0c10045
[ "MIT" ]
2
2019-09-29T14:50:16.000Z
2019-09-29T14:50:16.000Z
homeworks/10th-homework/grade.py
RodrigoDuarte655/python
ac58bf4faec9061a003c5d5cc149ffe0e0c10045
[ "MIT" ]
null
null
null
import tkinter as tk from tkinter import ttk from tkinter import messagebox import disciplina as disc import os.path import pickle #Exceptions de tratamento class PreenchaTudo(Exception): pass class FaltouAno(Exception): pass class FaltouCode(Exception): pass class FaltouSemestre(Exception): pass c...
39.661765
148
0.598888
1,365
13,485
5.885714
0.184615
0.095469
0.047797
0.04481
0.368683
0.325741
0.302465
0.294747
0.294747
0.294747
0
0.008402
0.276233
13,485
340
149
39.661765
0.814754
0.008009
0
0.379433
0
0
0.109317
0.009272
0
0
0
0
0
1
0.085106
false
0.056738
0.021277
0.01773
0.195035
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
39b8076b1f3795974caa0221b0536e121328a978
2,860
py
Python
letsadd/warhammer/views.py
richardcornish/addtwo
7ac3845718b67e4bad7894f92b36d468b43fd350
[ "BSD-3-Clause" ]
1
2021-05-22T21:52:35.000Z
2021-05-22T21:52:35.000Z
letsadd/warhammer/views.py
richardcornish/letsadd
7ac3845718b67e4bad7894f92b36d468b43fd350
[ "BSD-3-Clause" ]
null
null
null
letsadd/warhammer/views.py
richardcornish/letsadd
7ac3845718b67e4bad7894f92b36d468b43fd350
[ "BSD-3-Clause" ]
null
null
null
from urllib.parse import urlparse, parse_qs from django.shortcuts import render from django.views.generic import FormView from .forms import ChapterForm from .utils.choices import generate_chapter, generate_human class ChapterFormView(FormView): form_class = ChapterForm template_name = 'warhammer/chapter_fo...
27.5
72
0.603497
332
2,860
5.024096
0.186747
0.077938
0.033573
0.043165
0.267386
0.267386
0.16307
0.06235
0.06235
0.06235
0
0.000967
0.276573
2,860
103
73
27.76699
0.80522
0.091259
0
0.21875
1
0
0.086047
0.031395
0
0
0
0
0
1
0.078125
false
0
0.078125
0
0.3125
0.09375
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
39bcbccb025e61f8662554fdf76859c78b4d30c3
1,171
py
Python
tests/basics/async_with_break.py
sebastien-riou/micropython
116c15842fd48ddb77b0bc016341d936a0756573
[ "MIT" ]
13,648
2015-01-01T01:34:51.000Z
2022-03-31T16:19:53.000Z
tests/basics/async_with_break.py
sebastien-riou/micropython
116c15842fd48ddb77b0bc016341d936a0756573
[ "MIT" ]
7,092
2015-01-01T07:59:11.000Z
2022-03-31T23:52:18.000Z
tests/basics/async_with_break.py
sebastien-riou/micropython
116c15842fd48ddb77b0bc016341d936a0756573
[ "MIT" ]
4,942
2015-01-02T11:48:50.000Z
2022-03-31T19:57:10.000Z
# test async with, escaped by a break class AContext: async def __aenter__(self): print('enter') return 1 async def __aexit__(self, exc_type, exc, tb): print('exit', exc_type, exc) async def f1(): while 1: async with AContext(): print('body') break ...
19.516667
49
0.473954
128
1,171
4.257813
0.296875
0.077064
0.093578
0.121101
0.594495
0.594495
0.594495
0.594495
0.594495
0.433028
0
0.023055
0.407344
1,171
59
50
19.847458
0.762248
0.029889
0
0.705882
0
0
0.089947
0
0
0
0
0
0
1
0
false
0
0
0
0.039216
0.392157
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
39c2fe7e0d52911b49bb53c37ff4d4661d7aad82
1,517
py
Python
fastapi-crud/app/crud/crud_product.py
WendyHzo/appBackend
cb7319a5e8635038afc54e2ea8b2a05bc943077a
[ "Apache-2.0" ]
null
null
null
fastapi-crud/app/crud/crud_product.py
WendyHzo/appBackend
cb7319a5e8635038afc54e2ea8b2a05bc943077a
[ "Apache-2.0" ]
null
null
null
fastapi-crud/app/crud/crud_product.py
WendyHzo/appBackend
cb7319a5e8635038afc54e2ea8b2a05bc943077a
[ "Apache-2.0" ]
null
null
null
from fastapi.encoders import jsonable_encoder from sqlalchemy.orm import Session, session from app.model.product import Product as ProductModel from app.schema.product import ProductCreate, ProductUpdate, Product def get_product(db: Session, product_id: int) -> ProductModel: """ Obtener un producto por Id ...
27.089286
95
0.677653
198
1,517
5.035354
0.323232
0.03009
0.064193
0.046138
0.038114
0
0
0
0
0
0
0.002504
0.210283
1,517
55
96
27.581818
0.829716
0.077785
0
0.09375
0
0
0
0
0
0
0
0.018182
0
1
0.15625
false
0
0.125
0
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
39ccf1af99da9ddb5abf0bb69fe56cb15ce43669
5,038
py
Python
circuits/hiddenshift.py
patrickrall/CircuitSimulator
a925996440313d96c3f102c52caa376f38fed015
[ "MIT" ]
6
2017-11-07T13:32:00.000Z
2021-07-15T01:05:45.000Z
circuits/hiddenshift.py
patrickrall/CircuitSimulator
a925996440313d96c3f102c52caa376f38fed015
[ "MIT" ]
null
null
null
circuits/hiddenshift.py
patrickrall/CircuitSimulator
a925996440313d96c3f102c52caa376f38fed015
[ "MIT" ]
2
2017-04-25T20:00:21.000Z
2017-07-19T21:30:55.000Z
#!/usr/bin/env python # # file: hiddenshift.py # Tests the probability routine using the hidden shift algorithm, # as described in appendix F. # import os import sys, argparse sys.path.append(os.path.abspath('.')) print os.path.abspath('.') from libcirc.probability import probability # import issues? see comment in...
26.239583
120
0.59607
788
5,038
3.741117
0.232234
0.013569
0.05597
0.059701
0.312754
0.275441
0.224559
0.214043
0.214043
0.214043
0
0.02621
0.212386
5,038
191
121
26.376963
0.716734
0.230647
0
0.368421
0
0.008772
0.127157
0.006637
0.04386
0
0
0
0
0
null
null
0
0.070175
null
null
0.087719
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
39cd8677db504dd317aff80d5dda5319601accc1
2,468
py
Python
api/tests/opentrons/drivers/test_command_builder.py
anuwrag/opentrons
28c8d76a19e367c6bd38f5290faaa32abf378715
[ "Apache-2.0" ]
235
2017-10-27T20:37:27.000Z
2022-03-30T14:09:49.000Z
api/tests/opentrons/drivers/test_command_builder.py
anuwrag/opentrons
28c8d76a19e367c6bd38f5290faaa32abf378715
[ "Apache-2.0" ]
8,425
2017-10-26T15:25:43.000Z
2022-03-31T23:54:26.000Z
api/tests/opentrons/drivers/test_command_builder.py
anuwrag/opentrons
28c8d76a19e367c6bd38f5290faaa32abf378715
[ "Apache-2.0" ]
130
2017-11-09T21:02:37.000Z
2022-03-15T18:01:24.000Z
from typing import Optional import pytest from opentrons.drivers.command_builder import CommandBuilder def test_builder_create_command_with_terminator() -> None: """It should create a command with terminator.""" terminator = "terminator" builder = CommandBuilder(terminator=terminator) assert builder....
32.051948
79
0.67423
288
2,468
5.628472
0.211806
0.172733
0.146823
0.172733
0.594078
0.53979
0.489204
0.384331
0.300432
0.300432
0
0.042951
0.198136
2,468
76
80
32.473684
0.77615
0.118314
0
0.339286
0
0
0.124009
0
0
0
0
0
0.125
1
0.107143
false
0
0.053571
0
0.160714
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
39d090c683d4ccdcb52667a65e1c84e0652eb3e5
3,236
py
Python
_exclude/build-lecture-toc.py
BrianKolowitz/data-focused-python
80c9345717745c54c77445e30452a9e9d9df6e5d
[ "MIT" ]
29
2019-03-20T22:02:52.000Z
2021-11-03T12:46:20.000Z
_exclude/build-lecture-toc.py
xiangyuzeng/data-focused-python
db0b289875b1cc01744c126cf0f54d4d70d5d2af
[ "MIT" ]
2
2019-10-31T20:36:36.000Z
2019-10-31T20:36:36.000Z
_exclude/build-lecture-toc.py
xiangyuzeng/data-focused-python
db0b289875b1cc01744c126cf0f54d4d70d5d2af
[ "MIT" ]
33
2019-03-20T22:45:40.000Z
2022-01-26T03:56:59.000Z
import glob, os import sys import urllib from pathlib import Path if __name__ == "__main__": os.chdir(os.path.dirname(sys.argv[0])) lecture_toc_md = [] lecture_root = "../lectures" weeks = [week for week in os.listdir(lecture_root) if week.lower().startswith('week') and not week.lower().endswith('.md'...
39.950617
130
0.559333
403
3,236
4.198511
0.2134
0.112293
0.106383
0.138298
0.328014
0.223404
0.150118
0.115839
0.052009
0
0
0.004889
0.304697
3,236
80
131
40.45
0.747111
0.079728
0
0.149254
0
0
0.19825
0.029956
0
0
0
0.0125
0
1
0
false
0
0.059701
0
0.059701
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
39d43a190393a70be0ef58c2068813e6e3c47585
2,575
py
Python
setup.py
InnovArul/firstimpressions
4e271380f17c5f8de0017195c76e24810bd0deba
[ "Apache-2.0" ]
20
2016-11-10T09:00:46.000Z
2021-12-01T08:05:19.000Z
setup.py
InnovArul/firstimpressions
4e271380f17c5f8de0017195c76e24810bd0deba
[ "Apache-2.0" ]
7
2016-11-01T05:31:44.000Z
2021-12-09T06:48:10.000Z
setup.py
InnovArul/firstimpressions
4e271380f17c5f8de0017195c76e24810bd0deba
[ "Apache-2.0" ]
7
2016-11-10T09:00:49.000Z
2021-06-29T09:48:49.000Z
#------------------------------------------------------------ import subprocess import logging import zipfile import sys, os sys.path.append('./help_scripts') sys.path.append('./data') import utils import preprocessing_audiofeats as audioprocess import preprocessing_videofeats as videoprocess import progressbar #--...
33.441558
103
0.697864
264
2,575
6.761364
0.401515
0.023529
0.028011
0.023529
0.068347
0.02577
0
0
0
0
0
0.008236
0.104078
2,575
76
104
33.881579
0.765496
0.191068
0
0
0
0.019608
0.221525
0.107143
0
0
0
0
0
1
0.019608
false
0.058824
0.156863
0
0.196078
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
39d95ff37c3938dcf819c5db40150d7548161dc4
4,342
py
Python
source_tracker/source_tracker.py
Micr067/security-tools
076d230219a7c065a95b16ca76428af43898490c
[ "MIT" ]
1
2019-06-13T13:43:22.000Z
2019-06-13T13:43:22.000Z
source_tracker/source_tracker.py
Micr067/security-tools
076d230219a7c065a95b16ca76428af43898490c
[ "MIT" ]
null
null
null
source_tracker/source_tracker.py
Micr067/security-tools
076d230219a7c065a95b16ca76428af43898490c
[ "MIT" ]
1
2020-12-22T04:29:16.000Z
2020-12-22T04:29:16.000Z
#!/usr/bin/python """ source_tracker.py @author: Rafal 'bl4de' Janicki @Twitter: https://twitter.com/_bl4de @HackerOne: https://hackerone.com/bl4de @GitHub: https://github.com/bl4de Website source changes tracker. When run for the first time against given url, creates snapshot file with current source. Next run comp...
33.921875
139
0.608706
528
4,342
4.850379
0.297348
0.090199
0.046857
0.0492
0.309645
0.263569
0.229988
0.229988
0.183522
0.166341
0
0.021626
0.20129
4,342
127
140
34.188976
0.71684
0.004606
0
0.096386
0
0.012048
0.24968
0
0
0
0
0
0
0
null
null
0
0.036145
null
null
0.240964
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
39de9d451638178b003b5431162fea5f238fd339
428
py
Python
app/__init__.py
jonathankamau/CP2-bucket-list-api
2e0fc959f9c1f2e3014a9ff13e46831a86454d24
[ "MIT" ]
null
null
null
app/__init__.py
jonathankamau/CP2-bucket-list-api
2e0fc959f9c1f2e3014a9ff13e46831a86454d24
[ "MIT" ]
null
null
null
app/__init__.py
jonathankamau/CP2-bucket-list-api
2e0fc959f9c1f2e3014a9ff13e46831a86454d24
[ "MIT" ]
null
null
null
from flask import Flask from flask_sqlalchemy import SQLAlchemy from itsdangerous import TimestampSigner import config app = Flask(__name__) app.config.from_object('config') db = SQLAlchemy(app) token_signer = TimestampSigner(config.SECRET_KEY) from app.mod_auth.controller import mod_auth from app.mod_bucketlists....
22.526316
58
0.845794
58
428
5.965517
0.362069
0.060694
0.057803
0.144509
0.205202
0.205202
0
0
0
0
0
0
0.093458
428
18
59
23.777778
0.891753
0
0
0
0
0
0.014019
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0.166667
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
39e3c78eadb229e796b059a879d51ad0650273fa
703
py
Python
wce_triage/setup/extract_menuentry.py
pfrouleau/wce-triage-v2
25610cda55f5cb2170e13e121ae1cbaa92ef7626
[ "MIT" ]
3
2019-07-25T03:24:23.000Z
2021-06-23T14:01:34.000Z
wce_triage/setup/extract_menuentry.py
pfrouleau/wce-triage-v2
25610cda55f5cb2170e13e121ae1cbaa92ef7626
[ "MIT" ]
1
2019-12-20T16:04:19.000Z
2019-12-20T16:04:19.000Z
wce_triage/setup/extract_menuentry.py
pfrouleau/wce-triage-v2
25610cda55f5cb2170e13e121ae1cbaa92ef7626
[ "MIT" ]
2
2019-07-25T03:24:26.000Z
2021-02-14T05:27:11.000Z
#!/usr/bin/env python3 import os, sys, re menuentry_start = "menuentry" def extract_menuentry(infile): in_menuentry = False for line in infile.readlines(): if in_menuentry: if line.strip() == "}": in_menuentry = False print(line.rstrip()) pass else: print(line.rstri...
21.96875
106
0.59175
85
703
4.670588
0.505882
0.110831
0.080605
0.095718
0
0
0
0
0
0
0
0.003906
0.271693
703
31
107
22.677419
0.771484
0.029872
0
0.538462
0
0
0.126285
0
0
0
0
0
0
1
0.038462
false
0.307692
0.038462
0
0.076923
0.115385
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
39e9d8d3aae5d5efbe618a1fc8a63d3e0da82d93
1,607
py
Python
RPi/piecamera.py
LaoHuang-xX/ECE_5725
09a714d722fed9cef7091c9f3305fe3bf2f40249
[ "MIT" ]
1
2021-12-10T15:22:23.000Z
2021-12-10T15:22:23.000Z
RPi/piecamera.py
LaoHuang-xX/ECE_5725
09a714d722fed9cef7091c9f3305fe3bf2f40249
[ "MIT" ]
null
null
null
RPi/piecamera.py
LaoHuang-xX/ECE_5725
09a714d722fed9cef7091c9f3305fe3bf2f40249
[ "MIT" ]
null
null
null
# # ECE 5725 final project # RPi Robot Mover # Fall 2021 # Authors: Xu Hai (xh357), Yaqun Niu (yn232) # import time from picamera.array import PiRGBArray from picamera import PiCamera class PieCamera(PiCamera): def __init__(self, resolution=(480, 320), framerate=30, format='bgr', use_video_port=True...
40.175
116
0.625389
189
1,607
5.164021
0.359788
0.04918
0.07377
0.040984
0.657787
0.657787
0.657787
0.657787
0.657787
0.657787
0
0.032174
0.284381
1,607
39
117
41.205128
0.816522
0.056627
0
0.428571
0
0
0.004082
0
0
0
0
0
0
1
0.107143
false
0
0.107143
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f2d8d63324d5cba56458a3b804cf0e2d0387dbcb
1,817
py
Python
drf_auth/tests/serializers_tests.py
TheArtling/django-drf-auth
732183fae6cb129a1bf5c0c619fbd76e366ab392
[ "MIT" ]
null
null
null
drf_auth/tests/serializers_tests.py
TheArtling/django-drf-auth
732183fae6cb129a1bf5c0c619fbd76e366ab392
[ "MIT" ]
null
null
null
drf_auth/tests/serializers_tests.py
TheArtling/django-drf-auth
732183fae6cb129a1bf5c0c619fbd76e366ab392
[ "MIT" ]
null
null
null
"""Tests for the serializers of the drf_auth app.""" from django.test import TestCase from mixer.backend.django import mixer from .. import serializers class LoginSerializerTestCase(TestCase): longMessage = True def test_serializer(self): user = mixer.blend('auth.User') user.set_password('t...
33.648148
73
0.63016
216
1,817
5.25463
0.296296
0.063436
0.063436
0.05815
0.580617
0.580617
0.526872
0.526872
0.526872
0.526872
0
0
0.255916
1,817
53
74
34.283019
0.839497
0.025316
0
0.578947
0
0
0.266289
0
0
0
0
0
0.157895
1
0.052632
false
0.105263
0.078947
0
0.236842
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
f2dd3b2191cc33f1af9a2a6b8020b4a46a2d3144
382
py
Python
solutions/1437_check_if_all_1s_are_at_least_length_k_places_away.py
YiqunPeng/leetcode_pro
7e6376984f9baec49a5e827d98330fe3d1b656f0
[ "MIT" ]
null
null
null
solutions/1437_check_if_all_1s_are_at_least_length_k_places_away.py
YiqunPeng/leetcode_pro
7e6376984f9baec49a5e827d98330fe3d1b656f0
[ "MIT" ]
null
null
null
solutions/1437_check_if_all_1s_are_at_least_length_k_places_away.py
YiqunPeng/leetcode_pro
7e6376984f9baec49a5e827d98330fe3d1b656f0
[ "MIT" ]
null
null
null
class Solution: def kLengthApart(self, nums: List[int], k: int) -> bool: """Array. Running time: O(n) where n is the length of nums. """ p = None for i in range(len(nums)): if nums[i] == 1: if p is None or i - p > k: p = i ...
25.466667
60
0.429319
50
382
3.28
0.68
0
0
0
0
0
0
0
0
0
0
0.004926
0.468586
382
14
61
27.285714
0.802956
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f2efeb4783770541343072930652345558bb7151
231
py
Python
sample_qr/main.py
tdu-logcation/sample-qr
9a493feb994a07df087961ce08565974193a2d82
[ "MIT" ]
null
null
null
sample_qr/main.py
tdu-logcation/sample-qr
9a493feb994a07df087961ce08565974193a2d82
[ "MIT" ]
null
null
null
sample_qr/main.py
tdu-logcation/sample-qr
9a493feb994a07df087961ce08565974193a2d82
[ "MIT" ]
null
null
null
from .generate import QrGenerate import pprint def main(): dir_name = 'export' qr: QrGenerate = QrGenerate(dir_name, r'(20)?([1-9])([01]?[0-9])([0-9][0-9])-[0-9A-Z]{2,4}', None) ids = qr.generate(10) pprint.pprint(ids)
19.25
100
0.623377
40
231
3.55
0.6
0.042254
0.06338
0.056338
0.049296
0
0
0
0
0
0
0.090909
0.142857
231
11
101
21
0.626263
0
0
0
1
0.142857
0.242424
0.21645
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.428571
0.285714
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
f2f083116922fe742f03cf00f85b0d3205095621
692
py
Python
__init__.py
peterdocter/flask-mdict
52a32e4c7a04d5b218a899de364f521fcaeefd03
[ "MIT" ]
2
2019-04-06T05:50:39.000Z
2019-04-06T08:37:50.000Z
__init__.py
peterdocter/flask-mdict
52a32e4c7a04d5b218a899de364f521fcaeefd03
[ "MIT" ]
null
null
null
__init__.py
peterdocter/flask-mdict
52a32e4c7a04d5b218a899de364f521fcaeefd03
[ "MIT" ]
null
null
null
from flask import Blueprint from .utils import singleton mdict = Blueprint( 'mdict', __name__, static_folder='static', template_folder='templates') @singleton class Config(): pass def init_app(app): Config.MDICT_DIR = app.config.get('MDICT_DIR') Config.MDICT_CACHE = app.config.get('MDICT_CAC...
19.771429
64
0.719653
94
692
5.074468
0.414894
0.161426
0.1174
0.071279
0
0
0
0
0
0
0
0
0.17341
692
34
65
20.352941
0.833916
0.030347
0
0
0
0
0.122754
0
0
0
0
0
0
1
0.105263
false
0.052632
0.157895
0.052632
0.368421
0.157895
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
f2f4eb49f2f5c66ae03db6a8d38a7fa696b6ec2a
1,933
py
Python
get_data/__init__.py
LilySu/nyc-health-API
9ebf2b7e1c86fd3abc76246590943e07518c918e
[ "MIT" ]
null
null
null
get_data/__init__.py
LilySu/nyc-health-API
9ebf2b7e1c86fd3abc76246590943e07518c918e
[ "MIT" ]
null
null
null
get_data/__init__.py
LilySu/nyc-health-API
9ebf2b7e1c86fd3abc76246590943e07518c918e
[ "MIT" ]
null
null
null
from flask import Flask from flask import jsonify import pandas as pd import markdown import requests import os app = Flask(__name__) @app.route("/") def index(): with open(os.path.dirname(app.root_path) + '/README.md','r') as markdown_file: content = markdown_file.read() return markdown.markdown...
33.912281
118
0.715468
280
1,933
4.864286
0.225
0.04699
0.041116
0.056535
0.673275
0.673275
0.673275
0.673275
0.673275
0.673275
0
0.016327
0.112778
1,933
57
119
33.912281
0.777843
0
0
0.297872
0
0.106383
0.371251
0.011892
0
0
0
0
0
1
0.170213
false
0
0.12766
0
0.468085
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f2f4f2170d9e71b04724893f38f4b2844c426b16
522
py
Python
Dataset/Leetcode/train/55/551.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/55/551.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/55/551.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution: def XXX(self, nums: List[int]) -> bool: n=len(nums) vis=[0 for _ in range(n)] for i in range(min(nums[0]+1,n)): vis[i]=1 for i in range(1,n-1): if vis[i]: #此位置可以达到 if i+nums[i]>=n-1: return True ...
27.473684
52
0.390805
77
522
2.636364
0.337662
0.137931
0.08867
0.108374
0
0
0
0
0
0
0
0.046931
0.469349
522
18
53
29
0.685921
0.01341
0
0.117647
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f2f72b6031a8035f0460f96b4e76e8af130ae5f7
1,514
py
Python
twitterclone/urls.py
tiagocdr/twitter-clone
53737774f2f7766c69f9f9d96458a630124fa6d8
[ "MIT" ]
null
null
null
twitterclone/urls.py
tiagocdr/twitter-clone
53737774f2f7766c69f9f9d96458a630124fa6d8
[ "MIT" ]
null
null
null
twitterclone/urls.py
tiagocdr/twitter-clone
53737774f2f7766c69f9f9d96458a630124fa6d8
[ "MIT" ]
null
null
null
"""twitterclone URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.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-...
39.842105
81
0.72391
217
1,514
4.917051
0.322581
0.052484
0.014058
0.022493
0.109653
0.109653
0.070291
0
0
0
0
0.006192
0.146631
1,514
37
82
40.918919
0.819659
0.414795
0
0
0
0
0.162685
0.073948
0
0
0
0
0
1
0
false
0
0.380952
0
0.380952
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
f2f9149303cabb88d0df246e9f7fbe4a5b87dd37
1,442
py
Python
catreward/roi/exps/run1.py
parenthetical-e/fmri
32c5571d8767684ec6586320e85485cd89ed9327
[ "BSD-2-Clause" ]
4
2018-02-11T16:18:46.000Z
2021-11-28T15:43:25.000Z
catreward/roi/exps/run1.py
parenthetical-e/fmri
32c5571d8767684ec6586320e85485cd89ed9327
[ "BSD-2-Clause" ]
null
null
null
catreward/roi/exps/run1.py
parenthetical-e/fmri
32c5571d8767684ec6586320e85485cd89ed9327
[ "BSD-2-Clause" ]
1
2018-05-23T10:28:22.000Z
2018-05-23T10:28:22.000Z
#! /usr/local/bin import fmri # -- # Gen the data # Run 1 #fmri.catreward.roi.exps.main.run_all('box_c', 'CatMean', 'get_trials_combined') #fmri.catreward.roi.exps.main.run_all('box_s', 'CatMean', 'get_trials') #fmri.catreward.roi.exps.main.run_all('nobox_c', 'Nobox', 'get_trials_combined') #fmri.catreward.roi.exps.ma...
45.0625
136
0.699029
249
1,442
3.698795
0.236948
0.078176
0.078176
0.130293
0.762215
0.722041
0.667752
0.568947
0.558089
0.390879
0
0.045101
0.108183
1,442
31
137
46.516129
0.671073
0.59362
0
0
0
0
0.260563
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
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
f2f9385753d8ecf7e3d1699990b2f043c58f5ac7
1,690
py
Python
streamm/structures/tests/test_dihedral.py
NREL/streamm-tools
663ceff5e9a1145b74ee8c1857988dc94d6535a2
[ "Apache-2.0" ]
4
2017-01-04T02:20:52.000Z
2022-01-23T21:14:32.000Z
streamm/structures/tests/test_dihedral.py
NREL/streamm-tools
663ceff5e9a1145b74ee8c1857988dc94d6535a2
[ "Apache-2.0" ]
null
null
null
streamm/structures/tests/test_dihedral.py
NREL/streamm-tools
663ceff5e9a1145b74ee8c1857988dc94d6535a2
[ "Apache-2.0" ]
4
2017-04-25T06:23:08.000Z
2021-04-14T07:10:24.000Z
# coding: utf-8 # Copyright (c) Alliance for Sustainable Energy, LLC # Distributed under the terms of the Apache License, Version 2.0 from __future__ import division, unicode_literals __author__ = "Travis W. Kemper, Ph.D." __copyright__ = "Copyright 2015, Alliance for Sustainable Energy, LLC" __version__ = "0.3.4" __...
24.142857
70
0.664497
236
1,690
4.478814
0.351695
0.125828
0.136235
0.208136
0.438978
0.323557
0.323557
0.323557
0.289499
0.289499
0
0.047546
0.228402
1,690
69
71
24.492754
0.763037
0.075148
0
0.3
0
0
0.0875
0.017763
0
0
0
0
0.275
1
0.1
false
0
0.175
0
0.3
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8413d1c902c3aa4e863de07f80541914a8ff2383
1,595
py
Python
feincms/views/decorators.py
pjdelport/feincms
6aed5b76104a6b3bb801fb1657f597506aa96d72
[ "BSD-3-Clause" ]
null
null
null
feincms/views/decorators.py
pjdelport/feincms
6aed5b76104a6b3bb801fb1657f597506aa96d72
[ "BSD-3-Clause" ]
null
null
null
feincms/views/decorators.py
pjdelport/feincms
6aed5b76104a6b3bb801fb1657f597506aa96d72
[ "BSD-3-Clause" ]
null
null
null
from django.http import HttpResponse try: from functools import wraps except ImportError: from django.utils.functional import wraps from feincms.module.page.models import Page def add_page_to_extra_context(view_func): """ Adds the best-match page to the extra_context keyword argument. Mainly used ...
34.673913
81
0.685266
191
1,595
5.596859
0.439791
0.044902
0.063611
0.026193
0.18522
0.046773
0
0
0
0
0
0.000808
0.224451
1,595
45
82
35.444444
0.863379
0.19373
0
0.148148
0
0
0.26066
0.097345
0
0
0
0
0
1
0.148148
false
0
0.222222
0
0.518519
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
8421d8090304faed572f74590b23ba5fded142df
489
py
Python
ecommerce/shop_management/migrations/0016_alter_shop_image.py
mhdirajabi/django-drf-e-commerce
526044a728f9f073a21386ff7f67ac570f4755c6
[ "MIT" ]
null
null
null
ecommerce/shop_management/migrations/0016_alter_shop_image.py
mhdirajabi/django-drf-e-commerce
526044a728f9f073a21386ff7f67ac570f4755c6
[ "MIT" ]
null
null
null
ecommerce/shop_management/migrations/0016_alter_shop_image.py
mhdirajabi/django-drf-e-commerce
526044a728f9f073a21386ff7f67ac570f4755c6
[ "MIT" ]
null
null
null
# Generated by Django 3.2.10 on 2022-01-07 17:36 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('shop_management', '0015_shop_image'), ] operations = [ migrations.AlterField( model_name='shop', name='image', ...
25.736842
155
0.633947
58
489
5.206897
0.758621
0
0
0
0
0
0
0
0
0
0
0.054054
0.243354
489
18
156
27.166667
0.762162
0.09407
0
0
1
0
0.204082
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
842224f51e86fdb5f2a0681bf51e2cfb91258fcd
12,265
py
Python
ingestion/tests/unit/profiler/test_validations.py
troyel/OpenMetadata
4577f12bfde471afd8655ce4ee949fcca3d7fd95
[ "Apache-2.0" ]
1
2022-01-06T11:12:01.000Z
2022-01-06T11:12:01.000Z
ingestion/tests/unit/profiler/test_validations.py
troyel/OpenMetadata
4577f12bfde471afd8655ce4ee949fcca3d7fd95
[ "Apache-2.0" ]
6
2022-01-05T10:24:56.000Z
2022-01-06T09:57:07.000Z
ingestion/tests/unit/profiler/test_validations.py
troyel/OpenMetadata
4577f12bfde471afd8655ce4ee949fcca3d7fd95
[ "Apache-2.0" ]
5
2022-01-05T11:48:39.000Z
2022-01-06T06:45:25.000Z
# Copyright 2021 Collate # 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, software...
29.202381
114
0.675255
1,216
12,265
6.624178
0.138158
0.112973
0.057356
0.067784
0.720795
0.707883
0.642831
0.599876
0.577778
0.576536
0
0.018717
0.237668
12,265
419
115
29.272076
0.842781
0.07183
0
0.59434
0
0.012579
0.132659
0.012875
0
0
0
0
0.066038
1
0.022013
false
0
0.034591
0
0.056604
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
84292924da0dc828754b502d51cbdb28f99e03dc
933
py
Python
eyeflow.py
zperkowski/EyeFlow
2f5057a3357638266ab1e44b625774a28f19f60b
[ "Apache-2.0" ]
1
2021-06-16T17:49:30.000Z
2021-06-16T17:49:30.000Z
eyeflow.py
zperkowski/EyeFlow
2f5057a3357638266ab1e44b625774a28f19f60b
[ "Apache-2.0" ]
4
2020-03-24T16:17:04.000Z
2021-02-02T22:45:11.000Z
eyeflow.py
zperkowski/EyeFlow
2f5057a3357638266ab1e44b625774a28f19f60b
[ "Apache-2.0" ]
null
null
null
import os # Disabling the warning, doesn't enable AVX/FMA os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' import tensorflowloader as tfl import DataLoader, ui if __name__ == '__main__': args = ui.parseArgs() dataLoader = DataLoader.DataLoader( args.healthy, args.glaucomatous, args.diabetic...
25.216216
80
0.661308
118
933
4.966102
0.491525
0.09215
0.051195
0.066553
0.283276
0.283276
0.194539
0.194539
0.150171
0.150171
0
0.030129
0.252947
933
36
81
25.916667
0.810617
0.138264
0
0.076923
0
0
0.036341
0
0
0
0
0.027778
0
1
0
false
0
0.115385
0
0.115385
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
84306709402be28b7ed88fd401de1a22b5608d3f
1,539
py
Python
main.py
zagaria/MinerMonitor
5992c3704884d7082bdfde4cb1465e64ba0660f8
[ "MIT" ]
null
null
null
main.py
zagaria/MinerMonitor
5992c3704884d7082bdfde4cb1465e64ba0660f8
[ "MIT" ]
null
null
null
main.py
zagaria/MinerMonitor
5992c3704884d7082bdfde4cb1465e64ba0660f8
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys import time import monitor import subprocess import time from fcntl import fcntl, F_GETFL, F_SETFL from os import O_NONBLOCK, read import pexpect mon = '/sys/class/thermal/thermal_zone0/temp' # For raspberry or similar maxTemp = 60.0 lastTimeSuccess = 0 minerPID = 0 minerName = 'min...
27.981818
147
0.673814
180
1,539
5.7
0.488889
0.023392
0.046784
0.064327
0.095517
0.095517
0.095517
0
0
0
0
0.012165
0.19883
1,539
54
148
28.5
0.819951
0.036387
0
0.136364
0
0
0.094659
0.044625
0
0
0
0
0
0
null
null
0
0.181818
null
null
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8432ddb361abfcb045f207736cc6d68f5110e185
1,495
py
Python
time compare.py
aertoria/MiscCode
a2e94d0fe0890e6620972f84adcb7976ca9f1408
[ "Apache-2.0" ]
null
null
null
time compare.py
aertoria/MiscCode
a2e94d0fe0890e6620972f84adcb7976ca9f1408
[ "Apache-2.0" ]
null
null
null
time compare.py
aertoria/MiscCode
a2e94d0fe0890e6620972f84adcb7976ca9f1408
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python class DateObj(object): def __init__(self, year, month, day, hour, minute, second, msec): self.year = int(year) self.month = int(month) self.day = int(day) self.hour = int(hour) self.minute = int(minute) self.second = int(second) self.msec = int(msec) self.ensure_valid() def ens...
21.985294
73
0.663545
265
1,495
3.660377
0.222642
0.05567
0.045361
0.015464
0.178351
0.134021
0.134021
0.107216
0.065979
0
0
0.103448
0.185284
1,495
68
74
21.985294
0.692939
0.10903
0
0.186047
0
0
0.015106
0
0
0
0
0
0
0
null
null
0
0
null
null
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
1
0
0
0
0
0
0
0
0
1
843690ed94387d07606cd1346d97bccf24dc8997
376
py
Python
disuse/Introduction-to-Computer-Science/MIT-60001/Exercise/Pset-0/impl/ps0.py
huang-feiyu/Learning-Space
3fc476e5efed32050d3aed572bb59aa96fdc7dfe
[ "MIT" ]
4
2021-07-29T11:45:42.000Z
2022-02-21T09:11:51.000Z
disuse/Introduction-to-Computer-Science/MIT-60001/Exercise/Pset-0/impl/ps0.py
huang-feiyu/Learning-Space
3fc476e5efed32050d3aed572bb59aa96fdc7dfe
[ "MIT" ]
null
null
null
disuse/Introduction-to-Computer-Science/MIT-60001/Exercise/Pset-0/impl/ps0.py
huang-feiyu/Learning-Space
3fc476e5efed32050d3aed572bb59aa96fdc7dfe
[ "MIT" ]
1
2022-02-21T09:12:03.000Z
2022-02-21T09:12:03.000Z
#!/usr/bin/python3 # Encoding: UTF-8 """ ps0.py is the solution of pset0, google style code. Author: [Huang](https://huang-feiyu.github.io) Date: 2021.7.30 15:39 """ import numpy number_x = int(input("Enter number x: ")) number_y = int(input("Enter number y: ")) print("X**y =", number_x ** n...
19.789474
52
0.619681
60
376
3.8
0.65
0.122807
0.114035
0.166667
0
0
0
0
0
0
0
0.052632
0.191489
376
18
53
20.888889
0.697368
0.43617
0
0
0
0
0.248649
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.4
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
843b6377d1828a2c9df7de2d3ab37aa3039123c1
795
py
Python
python/leetcode/lengthOfLongestSubstring.py
Turingu/leetcode
ac75c14604b29df394b768b23a94bb7bf310777b
[ "MIT" ]
1
2020-01-01T17:46:11.000Z
2020-01-01T17:46:11.000Z
python/leetcode/lengthOfLongestSubstring.py
Turingu/leetcode
ac75c14604b29df394b768b23a94bb7bf310777b
[ "MIT" ]
null
null
null
python/leetcode/lengthOfLongestSubstring.py
Turingu/leetcode
ac75c14604b29df394b768b23a94bb7bf310777b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- class Solution: """ 给定一个字符串,请你找出其中不含有重复字符的 最长子串 的长度。 示例 1: 输入: "abcabcbb" 输出: 3 解释: 因为无重复字符的最长子串是 "abc",所以其长度为 3。 示例 2: 输入: "bbbbb" 输出: 1 解释: 因为无重复字符的最长子串是 "b",所以其长度为 1。 示例 3: 输入: "pwwkew" 输出: 3 解释: 因为无重复字符的最长子串是...
18.928571
59
0.514465
103
795
3.854369
0.543689
0.11335
0.025189
0.09068
0
0
0
0
0
0
0
0.026769
0.342138
795
41
60
19.390244
0.732314
0.371069
0
0
0
0
0.039443
0
0
0
0
0
0
1
0.142857
false
0.071429
0
0
0.285714
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
843be29d63da0c09cdd9ab703ca9c50512f9e717
215
py
Python
Ch.3 Greedy Search/3-3_answer.py
ohikendoit/Coding-Test-Prep
353c0434a9421b31b5af6ee030c774338478b95e
[ "MIT" ]
null
null
null
Ch.3 Greedy Search/3-3_answer.py
ohikendoit/Coding-Test-Prep
353c0434a9421b31b5af6ee030c774338478b95e
[ "MIT" ]
null
null
null
Ch.3 Greedy Search/3-3_answer.py
ohikendoit/Coding-Test-Prep
353c0434a9421b31b5af6ee030c774338478b95e
[ "MIT" ]
null
null
null
#숫자카드게임-1 #n,m을 공백으로 구분하여 입력받기 n, m = map(int, input().split()) result = 0 for i in range(n): data = list(map(int, input().split())) min_value = min(data) result = max(result, min_value) print(result)
17.916667
42
0.623256
37
215
3.567568
0.648649
0.090909
0.166667
0.242424
0
0
0
0
0
0
0
0.011628
0.2
215
12
43
17.916667
0.755814
0.125581
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.142857
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
843cf2f422744a96852608872906ccb4b4a83cdb
896
py
Python
Packages/Patterns_Package/alp/sml_alp/e.py
saribalarakeshreddy/Python-3.9.0
25b4c74feb2a27b91e69aa82becde23e356e82c4
[ "MIT" ]
null
null
null
Packages/Patterns_Package/alp/sml_alp/e.py
saribalarakeshreddy/Python-3.9.0
25b4c74feb2a27b91e69aa82becde23e356e82c4
[ "MIT" ]
null
null
null
Packages/Patterns_Package/alp/sml_alp/e.py
saribalarakeshreddy/Python-3.9.0
25b4c74feb2a27b91e69aa82becde23e356e82c4
[ "MIT" ]
null
null
null
def for_e(): """ Pattern of Small Alphabet: 'e' using for loop""" for i in range(5): for j in range(5): if i%4==0 and j not in(0,4) or j==0 and i in(1,2,3) or i==2 and j>1 or i==1 and j==4: print('*',end=' ') ...
38.956522
110
0.3125
120
896
2.316667
0.225
0.086331
0.071942
0.107914
0.697842
0.697842
0.697842
0.489209
0.489209
0.489209
0
0.08
0.553571
896
22
111
40.727273
0.615
0.103795
0
0.5
0
0
0.010417
0
0
0
0
0
0
1
0.1
false
0
0
0
0.1
0.3
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
843d1a34429205c31cf766c8ad7220898fe62c27
639
py
Python
scripts/stats-bytes-converted.py
WojciechMula/parsing-int-series
f0a45c8b1251018e52dac9ebf1d98e8dfb705755
[ "BSD-2-Clause" ]
19
2018-04-20T06:51:42.000Z
2022-02-24T02:12:00.000Z
scripts/stats-bytes-converted.py
WojciechMula/parsing-int-series
f0a45c8b1251018e52dac9ebf1d98e8dfb705755
[ "BSD-2-Clause" ]
2
2018-04-20T09:53:37.000Z
2018-04-27T19:01:16.000Z
scripts/stats-bytes-converted.py
WojciechMula/parsing-int-series
f0a45c8b1251018e52dac9ebf1d98e8dfb705755
[ "BSD-2-Clause" ]
3
2019-02-25T19:26:51.000Z
2020-11-04T00:50:42.000Z
from generator import Generator from table import Table if __name__ == '__main__': gen = Generator() freq = {} for bi in gen.run(): k = bi.total_skip freq[k] = freq.get(k, 0) + 1 table = Table() table.add_header(["bytes processed", "patterns", "%", "cumulative %"]) cumulativ...
22.034483
74
0.519562
76
639
4.184211
0.447368
0.113208
0.037736
0
0
0
0
0
0
0
0
0.058005
0.325509
639
28
75
22.821429
0.679814
0
0
0
0
0
0.097027
0
0
0
0
0
0
0
null
null
0
0.095238
null
null
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
1
0
0
0
0
0
0
0
0
1
843f29ad1fa9cca4d718c05c176da97b9d506fe4
6,678
py
Python
Modules/IAM.py
AnykeyNL/OCI-Inventory
1da5d01e2350896e72ebf7401078ff2f812b343b
[ "Apache-2.0" ]
null
null
null
Modules/IAM.py
AnykeyNL/OCI-Inventory
1da5d01e2350896e72ebf7401078ff2f812b343b
[ "Apache-2.0" ]
null
null
null
Modules/IAM.py
AnykeyNL/OCI-Inventory
1da5d01e2350896e72ebf7401078ff2f812b343b
[ "Apache-2.0" ]
1
2021-11-22T18:56:31.000Z
2021-11-22T18:56:31.000Z
import oci import time from Modules.Classes import * WaitRefresh = 10 def SubscribedRegions(config, auth): regions = [] identity = oci.identity.IdentityClient(config, signer=auth) regionDetails = identity.list_region_subscriptions(tenancy_id=config["tenancy"]).data # Add subscribed regions to list ...
49.835821
128
0.394429
393
6,678
6.653944
0.246819
0.070363
0.088719
0.110134
0.348757
0.334608
0.3174
0.076099
0.052772
0
0
0.024508
0.535639
6,678
133
129
50.210526
0.818768
0.038485
0
0.285714
0
0
0.028077
0.003432
0
0
0
0
0
1
0.028571
false
0
0.028571
0
0.095238
0.019048
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8444e1887985d1a61f0e51f870e53c5e89dc81db
783
py
Python
src/controllers/ping.py
DEV3L/python-learning-journal
cb7f7b4ddaeffa8e207f9f4b42b775d442d975a4
[ "Beerware" ]
null
null
null
src/controllers/ping.py
DEV3L/python-learning-journal
cb7f7b4ddaeffa8e207f9f4b42b775d442d975a4
[ "Beerware" ]
null
null
null
src/controllers/ping.py
DEV3L/python-learning-journal
cb7f7b4ddaeffa8e207f9f4b42b775d442d975a4
[ "Beerware" ]
null
null
null
from flask import Blueprint from src.services.auth_service import auth ping = Blueprint('ping', __name__) @ping.route('/', methods=['GET']) @ping.route('/ping', methods=['GET']) def hello_world(): """ Monitor endpoint --- tags: - ping responses: 200: description: Hello, world...
19.097561
51
0.630907
81
783
5.950617
0.395062
0.074689
0.053942
0.095436
0
0
0
0
0
0
0
0.014778
0.222222
783
40
52
19.575
0.776683
0.269476
0
0
0
0
0.206897
0
0
0
0
0
0
1
0.214286
false
0
0.142857
0
0.5
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
84488f1295b1beeb9c1dce59e6a1d851091f129b
9,924
py
Python
IATI2LOD/src/gather data scripts/WorldbankData.py
KasperBrandt/IATI2LOD
3a4fbcbf59d324e948b14509f74c50633d36a497
[ "MIT" ]
1
2019-08-03T00:52:44.000Z
2019-08-03T00:52:44.000Z
IATI2LOD/src/gather data scripts/WorldbankData.py
KasperBrandt/IATI2LOD
3a4fbcbf59d324e948b14509f74c50633d36a497
[ "MIT" ]
1
2015-10-11T09:47:25.000Z
2015-10-16T12:58:43.000Z
IATI2LOD/src/gather data scripts/WorldbankData.py
KasperBrandt/IATI2LOD
3a4fbcbf59d324e948b14509f74c50633d36a497
[ "MIT" ]
1
2021-05-29T03:43:01.000Z
2021-05-29T03:43:01.000Z
## By Kasper Brandt ## Last updated on 26-05-2013 import os, sys, datetime, urllib, urllib2, AddProvenance import xml.etree.ElementTree as ET from rdflib import Namespace, Graph, Literal, RDF # Settings worldbank_folder = "/media/Acer/School/IATI-data/dataset/WorldBank/" worldbank_file = "/media/Acer/School/IATI-data...
38.765625
128
0.46443
953
9,924
4.761805
0.274921
0.040106
0.026664
0.037021
0.383429
0.275011
0.173645
0.115469
0.057735
0
0
0.018704
0.407396
9,924
256
129
38.765625
0.752933
0.017836
0
0.154639
0
0
0.253774
0.030605
0
0
0
0
0
0
null
null
0
0.015464
null
null
0.046392
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
8450bf2ca4273e4331a44989f3b07122d9c1c978
4,169
py
Python
larcv/app/arxiv/mac/pyrgb/lib/datamanager.py
mmajewsk/larcv2
9ee74e42b293d547d3a8510fa2139b2d4ccf6b89
[ "MIT" ]
14
2017-10-19T15:08:29.000Z
2021-03-31T21:21:07.000Z
larcv/app/arxiv/mac/pyrgb/lib/datamanager.py
mmajewsk/larcv2
9ee74e42b293d547d3a8510fa2139b2d4ccf6b89
[ "MIT" ]
32
2017-10-25T22:54:06.000Z
2019-10-01T13:57:15.000Z
larcv/app/arxiv/mac/pyrgb/lib/datamanager.py
mmajewsk/larcv2
9ee74e42b293d547d3a8510fa2139b2d4ccf6b89
[ "MIT" ]
16
2017-12-07T12:04:40.000Z
2021-11-15T00:53:31.000Z
import numpy as np import time, re from .. import ROOT from .. import larcv from iomanager import IOManager from imagefactory import ImageFactory # data manger helps get the producers from the ROOT file # as well as manage factory creation of images as the user # hits replot, next/prev event class DataManager(objec...
30.654412
107
0.533941
488
4,169
4.436475
0.303279
0.054042
0.027714
0.04157
0.289146
0.19261
0.17321
0.154273
0.072055
0.072055
0
0.008429
0.288558
4,169
135
108
30.881481
0.72151
0.277525
0
0.095238
0
0
0.035642
0
0
0
0
0
0
0
null
null
0
0.095238
null
null
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
1
0
0
0
0
0
0
0
0
1
8460d7f9068a9f03f60618dcc85097982cc3f17c
908
py
Python
message_channel/router.py
fixpoint/python-message-channel
8bf7aed09ad8d5a2afce1b4c9e7acb90d1de6360
[ "MIT" ]
1
2021-01-20T17:00:42.000Z
2021-01-20T17:00:42.000Z
message_channel/router.py
fixpoint/python-message-channel
8bf7aed09ad8d5a2afce1b4c9e7acb90d1de6360
[ "MIT" ]
null
null
null
message_channel/router.py
fixpoint/python-message-channel
8bf7aed09ad8d5a2afce1b4c9e7acb90d1de6360
[ "MIT" ]
null
null
null
from asyncio import Queue from dataclasses import dataclass from typing import Generic, List, TypeVar T = TypeVar("T") class Predicator(Generic[T]): """Predicator""" def __call__(self, message: T) -> bool: """Return True if the message is predicated""" ... @dataclass(frozen=True) class Rou...
23.282051
72
0.635463
105
908
5.409524
0.419048
0.042254
0.042254
0.056338
0
0
0
0
0
0
0
0
0.251101
908
38
73
23.894737
0.835294
0.218062
0
0
0
0
0.001462
0
0
0
0
0
0
1
0.142857
false
0
0.142857
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
0
0
1
0
0
1
ffbccff2d00a00b13a527d3e6b99b1b528817ad4
3,595
py
Python
train/code.py
corbinmcneill/codejam
5156fec100c73eb95969a91fd20bf411aec4b795
[ "Apache-2.0" ]
null
null
null
train/code.py
corbinmcneill/codejam
5156fec100c73eb95969a91fd20bf411aec4b795
[ "Apache-2.0" ]
null
null
null
train/code.py
corbinmcneill/codejam
5156fec100c73eb95969a91fd20bf411aec4b795
[ "Apache-2.0" ]
null
null
null
# drummer2322 # corbin.mc96@gmail.com # GCJ 2014 1C B # from sys import argv from string import ascii_lowercase as lower; from math import factorial; if len(argv) > 1: type_of_case = argv[1]+'_' else: type_of_case = '' lines = [line.strip() for line in open(type_of_case+'input.in')]; output = open(type_of_case+'o...
29.958333
104
0.678999
546
3,595
4.424908
0.298535
0.046358
0.016556
0.017384
0.067467
0.058361
0
0
0
0
0
0.031477
0.195828
3,595
119
105
30.210084
0.80422
0.300974
0
0.129412
0
0
0.013688
0
0
0
0
0
0
0
null
null
0
0.035294
null
null
0.011765
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
ffbd55bb26ac7a5b2d9c183bedb24f3b3298d9a6
1,141
py
Python
src/ambient/cli.py
mikepqr/ambient
cb9031188c57d8159d375d3841660eaeeb88d0b9
[ "MIT" ]
1
2021-11-04T13:23:32.000Z
2021-11-04T13:23:32.000Z
src/ambient/cli.py
mikepqr/ambient
cb9031188c57d8159d375d3841660eaeeb88d0b9
[ "MIT" ]
1
2021-02-12T05:50:43.000Z
2021-03-03T23:19:30.000Z
src/ambient/cli.py
mikepqr/ambient
cb9031188c57d8159d375d3841660eaeeb88d0b9
[ "MIT" ]
null
null
null
import logging import click from ambient.ambient import make_context from ambient.ambient import today as _today from ambient.ambient import yesterday as _yesterday from ambient.backfill import backfill as _backfill @click.group() @click.version_option() @click.option("--quiet", "-q", help="Be quiet", is_flag=True,...
22.372549
76
0.709027
151
1,141
5.198676
0.324503
0.056051
0.06879
0.09172
0.179618
0.113376
0.081529
0
0
0
0
0
0.151621
1,141
50
77
22.82
0.81095
0
0
0.157895
0
0
0.089395
0
0
0
0
0
0
1
0.131579
false
0.105263
0.157895
0
0.289474
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
ffbf4fb30a50445bb1a3155036ff168d9d4d5ed2
3,142
py
Python
main.py
eduardkovalchuk/highloader
417fb1ad98731ab2631bf02adaf48d4f618ac257
[ "MIT" ]
null
null
null
main.py
eduardkovalchuk/highloader
417fb1ad98731ab2631bf02adaf48d4f618ac257
[ "MIT" ]
null
null
null
main.py
eduardkovalchuk/highloader
417fb1ad98731ab2631bf02adaf48d4f618ac257
[ "MIT" ]
null
null
null
import os import datetime import jwt from functools import wraps from flask import Flask, request, jsonify, abort, make_response, send_from_directory from flask_cors import CORS from werkzeug.security import generate_password_hash, check_password_hash from werkzeug.utils import secure_filename from flask_sqlalchemy imp...
36.114943
149
0.722151
413
3,142
5.341404
0.31477
0.053037
0.063463
0.028558
0.183137
0.141432
0.141432
0.141432
0.101541
0.101541
0
0.023394
0.142903
3,142
87
150
36.114943
0.795767
0
0
0.115942
0
0
0.185173
0.041362
0
0
0
0
0
1
0.057971
false
0.101449
0.15942
0.014493
0.376812
0.014493
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
ffc0e502653847cfbd97abba3666ed87096cd84f
1,530
py
Python
tests/common/test_fit_data.py
michael-amat/fit1d
0cd42874e3eba4353c564809c317510b626dee25
[ "BSD-2-Clause" ]
null
null
null
tests/common/test_fit_data.py
michael-amat/fit1d
0cd42874e3eba4353c564809c317510b626dee25
[ "BSD-2-Clause" ]
null
null
null
tests/common/test_fit_data.py
michael-amat/fit1d
0cd42874e3eba4353c564809c317510b626dee25
[ "BSD-2-Clause" ]
9
2019-02-24T12:51:28.000Z
2019-03-22T09:25:45.000Z
import unittest import numpy as np from fit1d.common.model import ModelMock from fit1d.common.fit1d import FitData class TestFitData(unittest.TestCase): def setUp(self): self.x = np.array([1,2, 3, 4]) self.y = np.array([10,20, 30, 40]) self.model = ModelMock({"param1": 5.5}) def test_...
38.25
72
0.618954
239
1,530
3.782427
0.209205
0.066372
0.086283
0.139381
0.668142
0.644912
0.644912
0.644912
0.644912
0.608407
0
0.032371
0.252941
1,530
39
73
39.230769
0.75853
0
0
0.354839
0
0
0.003922
0
0
0
0
0
0.16129
1
0.193548
false
0
0.129032
0
0.354839
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ffc163547bcc2c9632daac989dcd88c0d67bd5f4
2,232
py
Python
test/test_add_contact_to_group.py
adtrusheva/python_training
452608e59ff0c186c886cd186c4136fabe9cb525
[ "Apache-2.0" ]
null
null
null
test/test_add_contact_to_group.py
adtrusheva/python_training
452608e59ff0c186c886cd186c4136fabe9cb525
[ "Apache-2.0" ]
null
null
null
test/test_add_contact_to_group.py
adtrusheva/python_training
452608e59ff0c186c886cd186c4136fabe9cb525
[ "Apache-2.0" ]
null
null
null
from model.contact import Contact from model.group import Group from random import randrange import allure def test_add_contact_to_group(app, db, check_ui): old_contacts = given_non_empty_contact_list(app, db) groups = given_non_empty_group_list(app, db) index = random_contact_index(old_contacts) inde...
28.615385
64
0.754032
347
2,232
4.576369
0.126801
0.06927
0.075567
0.080605
0.578715
0.474811
0.319899
0.196474
0.093199
0
0
0.001052
0.147849
2,232
77
65
28.987013
0.833859
0
0
0.076923
0
0
0.146057
0
0
0
0
0
0.019231
1
0.211538
false
0
0.076923
0.057692
0.423077
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
ffc1b47c6068bd0b669f9851ad74631edb3de35f
1,654
py
Python
ENV/lib/python3.6/site-packages/pyramid/tests/pkgs/exceptionviewapp/__init__.py
captain-c00keys/pyramid-stocks
0acf3363a6a7ee61cd41b855f43c9d6f9582ae6a
[ "MIT" ]
null
null
null
ENV/lib/python3.6/site-packages/pyramid/tests/pkgs/exceptionviewapp/__init__.py
captain-c00keys/pyramid-stocks
0acf3363a6a7ee61cd41b855f43c9d6f9582ae6a
[ "MIT" ]
null
null
null
ENV/lib/python3.6/site-packages/pyramid/tests/pkgs/exceptionviewapp/__init__.py
captain-c00keys/pyramid-stocks
0acf3363a6a7ee61cd41b855f43c9d6f9582ae6a
[ "MIT" ]
null
null
null
from pyramid.httpexceptions import HTTPException def includeme(config): config.add_route('route_raise_exception', 'route_raise_exception') config.add_route('route_raise_httpexception', 'route_raise_httpexception') config.add_route('route_raise_exception2', 'route_raise_exception2', fac...
51.6875
78
0.687424
180
1,654
5.938889
0.161111
0.143124
0.145931
0.202058
0.63985
0.453695
0.423761
0.388213
0.388213
0.333957
0
0.008989
0.192866
1,654
31
79
53.354839
0.79176
0
0
0.357143
0
0
0.442563
0.366989
0
0
0
0
0
1
0.035714
false
0
0.035714
0
0.071429
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ffc4a1a4c28380f368eb1e951f89c7844b702fd6
1,155
py
Python
src/test_keras.py
js0823/comp150BDL-RobustBNN
3be318b9123fe517ec77b3b59596953e842eec8d
[ "MIT" ]
null
null
null
src/test_keras.py
js0823/comp150BDL-RobustBNN
3be318b9123fe517ec77b3b59596953e842eec8d
[ "MIT" ]
3
2020-01-28T22:12:36.000Z
2022-02-09T23:30:27.000Z
src/test_keras.py
js0823/comp150BDL-RobustBNN
3be318b9123fe517ec77b3b59596953e842eec8d
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np import os import pickle import gzip import urllib.request import keras from keras.models import Sequential from keras.layers import Dense, Dropout, Activation, Flatten from keras.layers import Conv2D, MaxPooling2D, Dropout from keras.layers.normalization import BatchNormaliza...
28.875
70
0.672727
157
1,155
4.866242
0.407643
0.082461
0.058901
0.054974
0.099476
0.099476
0.099476
0.099476
0
0
0
0.040349
0.206061
1,155
40
71
28.875
0.792803
0
0
0.114286
0
0
0.051038
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0.057143
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
ffcc928a9db48bf0e0cf774c0091fde1acca5097
302
py
Python
worker/myapp/middleware/SqsMessaging.py
PavlovVitaly/worker_data_ITMO_devops
4f9a302f680ceb6751b799870cd5d08b8705d6b0
[ "Apache-2.0" ]
null
null
null
worker/myapp/middleware/SqsMessaging.py
PavlovVitaly/worker_data_ITMO_devops
4f9a302f680ceb6751b799870cd5d08b8705d6b0
[ "Apache-2.0" ]
null
null
null
worker/myapp/middleware/SqsMessaging.py
PavlovVitaly/worker_data_ITMO_devops
4f9a302f680ceb6751b799870cd5d08b8705d6b0
[ "Apache-2.0" ]
null
null
null
import boto3 def SendMessage(queue_name, respondent): sqs = boto3.resource('sqs', region_name='us-east-1') queue = sqs.get_queue_by_name(QueueName=queue_name) queue.send_message(MessageBody=respondent) #sqs.send_message(QueueUrl = queue_url, DelaySeconds=0, MessageBody = respondent)
33.555556
85
0.761589
40
302
5.525
0.575
0.081448
0
0
0
0
0
0
0
0
0
0.015152
0.125828
302
8
86
37.75
0.82197
0.264901
0
0
0
0
0.054545
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ffcf46b91ef555f656a131a921905b48d684110a
14,863
py
Python
gameboard/tests/unit_tests.py
gamda/gameboard
4e181e860dbf9efa247fe7ccc0b3a6905698cb70
[ "MIT" ]
null
null
null
gameboard/tests/unit_tests.py
gamda/gameboard
4e181e860dbf9efa247fe7ccc0b3a6905698cb70
[ "MIT" ]
null
null
null
gameboard/tests/unit_tests.py
gamda/gameboard
4e181e860dbf9efa247fe7ccc0b3a6905698cb70
[ "MIT" ]
null
null
null
# Copyright (c) 2015 Daniel Garcia # # See the file LICENSE.txt for copying permission. import unittest import random from gameboard.gameboard import Gameboard, Direction from gameboard.coordinate import Coordinate class TestBoard(unittest.TestCase): def setUp(self): self.board = Gameboard() def tes...
39.216359
80
0.643813
1,699
14,863
5.375515
0.089464
0.07982
0.033505
0.052119
0.719041
0.66528
0.56148
0.487682
0.375671
0.218767
0
0.016004
0.26428
14,863
379
81
39.216359
0.819204
0.00545
0
0.267101
0
0
0.01563
0
0
0
0
0
0.228013
1
0.214984
false
0
0.013029
0
0.23127
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
ffd0c2e5585dbb6f2e161fb38c7d74eeeef88e8a
2,062
py
Python
sancho/model.py
el-assistant/sancho
8d22429f144573a961b97d4e713ec0763b2d5b1e
[ "Apache-2.0" ]
null
null
null
sancho/model.py
el-assistant/sancho
8d22429f144573a961b97d4e713ec0763b2d5b1e
[ "Apache-2.0" ]
null
null
null
sancho/model.py
el-assistant/sancho
8d22429f144573a961b97d4e713ec0763b2d5b1e
[ "Apache-2.0" ]
null
null
null
""" Entity modelling for the whole project is described here. """ from sancho.defaults import * import tree_sitter class Repo(NamedTuple): path: str full_name: str = None class File(NamedTuple): repo: Repo full_path: str class ASTnode(NamedTuple): """It is a node and a tree at the same time,...
24.843373
84
0.697866
299
2,062
4.752508
0.391304
0.034483
0.033779
0.026742
0
0
0
0
0
0
0
0.000637
0.238118
2,062
82
85
25.146341
0.903883
0.516489
0
0.277778
0
0
0.007701
0
0
0
0
0
0
1
0
true
0
0.055556
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
0
0
0
0
0
1
ffd31408942c801b6c9bf442a843edd604edf30a
15,947
py
Python
Old/Wrappers/ChrisFit_HAPLESS_Wrapper.py
Stargrazer82301/ChrisFit
18e3774a98e4aa775a23e3815fed355c89e93fe1
[ "MIT" ]
null
null
null
Old/Wrappers/ChrisFit_HAPLESS_Wrapper.py
Stargrazer82301/ChrisFit
18e3774a98e4aa775a23e3815fed355c89e93fe1
[ "MIT" ]
1
2016-03-02T11:45:06.000Z
2016-03-03T18:27:35.000Z
Old/Wrappers/ChrisFit_HAPLESS_Wrapper.py
Stargrazer82301/ChrisFit
18e3774a98e4aa775a23e3815fed355c89e93fe1
[ "MIT" ]
2
2016-04-26T08:13:47.000Z
2019-02-12T16:41:35.000Z
# Identify location import socket location = socket.gethostname() if location == 'Monolith': dropbox = 'E:\\Users\\Chris\\Dropbox\\' if location == 'hobbitslayer': dropbox = 'C:\\Users\\spx7cjc\\Dropbox\\' if location == 'saruman': dropbox = '/home/herdata/Dropbox/' print 'Ha, you\'re using Frodo! Sucke...
53.693603
298
0.66257
2,377
15,947
4.240219
0.125789
0.024407
0.016073
0.023812
0.663359
0.625062
0.593114
0.561464
0.540331
0.528029
0
0.052549
0.158713
15,947
297
299
53.693603
0.698718
0.123283
0
0.266667
0
0.05641
0.174256
0.091164
0
0
0
0
0
0
null
null
0.010256
0.066667
null
null
0.041026
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
ffe0362a85be0a80908c096e7ba265461986d13f
2,916
py
Python
Net640/apps/chat/consumers.py
86Ilya/net640kb
6724f3da3b678b637e0e776ee0d4953753ee2e05
[ "MIT" ]
1
2019-06-18T09:50:29.000Z
2019-06-18T09:50:29.000Z
Net640/apps/chat/consumers.py
86Ilya/net640kb
6724f3da3b678b637e0e776ee0d4953753ee2e05
[ "MIT" ]
10
2019-12-24T07:05:29.000Z
2022-02-10T07:42:44.000Z
Net640/apps/chat/consumers.py
86Ilya/net640kb
6724f3da3b678b637e0e776ee0d4953753ee2e05
[ "MIT" ]
null
null
null
import json from channels.generic.websocket import AsyncWebsocketConsumer, AsyncJsonWebsocketConsumer from Net640.apps.chat.models import Message from Net640.errors import NotEnoughSpace class ChatConsumer(AsyncWebsocketConsumer): """ Class-consumer, which will accept WebSocket connections and process ws...
30.375
116
0.612483
319
2,916
5.410658
0.272727
0.04635
0.041715
0.060834
0.250869
0.224218
0.21321
0.165701
0.075319
0.075319
0
0.002935
0.29904
2,916
95
117
30.694737
0.841487
0.108025
0
0.276923
0
0
0.070346
0
0
0
0
0.010526
0
1
0
false
0
0.061538
0
0.107692
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
ffe060a867aa5b5cc15d6a80ad14f465f2e326e2
586
py
Python
recip/core/Log.py
anthonybuckle/Reciprocity-Core
3254073f44e8fe2222aed9879885a2e609d4044a
[ "MIT" ]
null
null
null
recip/core/Log.py
anthonybuckle/Reciprocity-Core
3254073f44e8fe2222aed9879885a2e609d4044a
[ "MIT" ]
null
null
null
recip/core/Log.py
anthonybuckle/Reciprocity-Core
3254073f44e8fe2222aed9879885a2e609d4044a
[ "MIT" ]
null
null
null
from recip.util.Serializable import Serializable from recip.util import Address from recip.util import Crypto from recip.util import Validator class Log(Serializable): def __init__(self, address = None, data = None, topics = None): self.address = address self.data = data self.topics = topic...
26.636364
67
0.609215
68
586
5.191176
0.338235
0.101983
0.147309
0.161473
0
0
0
0
0
0
0
0.007389
0.307167
586
22
68
26.636364
0.862069
0
0
0
0
0
0
0
0
0
0
0
0
1
0.157895
false
0
0.210526
0.052632
0.473684
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ffe483ae519f0252dff2addbf6cccd85c08e98fc
6,174
py
Python
aat/core/models/order.py
ryuuni/aat
1a46d21463f8e080c389d1011b35d6a3fd036545
[ "Apache-2.0" ]
null
null
null
aat/core/models/order.py
ryuuni/aat
1a46d21463f8e080c389d1011b35d6a3fd036545
[ "Apache-2.0" ]
null
null
null
aat/core/models/order.py
ryuuni/aat
1a46d21463f8e080c389d1011b35d6a3fd036545
[ "Apache-2.0" ]
null
null
null
from datetime import datetime from typing import Mapping, Union, Type from ..exchange import ExchangeType from ..instrument import Instrument from ...common import _in_cpp from ...config import DataType, OrderFlag, OrderType, Side try: from aat.binding import OrderCpp # type: ignore _CPP = _in_cpp() except ...
30.413793
183
0.604632
671
6,174
5.327869
0.154993
0.045315
0.06042
0.049231
0.210909
0.130909
0.114126
0.094545
0.094545
0.094545
0
0.002912
0.276806
6,174
202
184
30.564356
0.79776
0.066408
0
0.111842
0
0.006579
0.061694
0.018822
0
0
0
0.004951
0.138158
1
0.157895
false
0
0.052632
0.105263
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
fff594feb7e40aa9757b58af16ebc3ad6292db82
4,652
py
Python
visa_mock/base/high_level.py
liangosc/pyvisa-mock
2b527658d97e3e3a6ee0d3967f93755fd2171fc3
[ "MIT" ]
null
null
null
visa_mock/base/high_level.py
liangosc/pyvisa-mock
2b527658d97e3e3a6ee0d3967f93755fd2171fc3
[ "MIT" ]
null
null
null
visa_mock/base/high_level.py
liangosc/pyvisa-mock
2b527658d97e3e3a6ee0d3967f93755fd2171fc3
[ "MIT" ]
null
null
null
from dataclasses import dataclass from typing import Dict, List, Tuple, Any from typing_extensions import ClassVar from pyvisa import constants, highlevel, rname, errors from pyvisa.constants import InterfaceType from pyvisa.resources.resource import Resource from pyvisa.resources import SerialInstrument from pyvisa.r...
30.405229
99
0.677343
555
4,652
5.479279
0.25045
0.075633
0.038474
0.044722
0.126274
0.086156
0.086156
0.061164
0.034199
0.034199
0
0.002233
0.230009
4,652
152
100
30.605263
0.846734
0.039123
0
0.060606
0
0
0.018834
0
0
0
0
0
0
1
0.181818
false
0.020202
0.111111
0.020202
0.535354
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1