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
3a9083fd0a1ad2597364ed47d6b005f3530bfb38
695
py
Python
docsfromtests/conf.py
scailer/drf-docs-from-tests
204b8bda82871aa62cb4fbbce9fd7a68f03a5793
[ "MIT" ]
null
null
null
docsfromtests/conf.py
scailer/drf-docs-from-tests
204b8bda82871aa62cb4fbbce9fd7a68f03a5793
[ "MIT" ]
3
2020-02-11T22:50:53.000Z
2021-06-10T17:50:57.000Z
docsfromtests/conf.py
scailer/drf-docs-from-tests
204b8bda82871aa62cb4fbbce9fd7a68f03a5793
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.conf import settings # Template for wiki-page (default: gitlab.tpl) BASE_TEMPLATE = getattr(settings, 'DOCSFROMTESTS_BASE_TEMPLATE', 'gitlab.tpl') # Template for request-response (default: gitlab_request.tpl) REQUEST_TEMPLATE = getattr(settings, 'DOCSFROMTESTS_REQUEST_TEMPLATE', '...
36.578947
92
0.772662
87
695
5.965517
0.413793
0.144509
0.26975
0.138728
0
0
0
0
0
0
0
0.00161
0.106475
695
18
93
38.611111
0.834138
0.385612
0
0
0
0
0.397619
0.316667
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3a909de2eab71e21ba473e8c97526c1ae4ef51dc
130,658
py
Python
redbear/reference/dead-bear-do-not-eat.py
amici-ursi/redbear
1b246583c79ebd080c9be70910e7e0c98216c969
[ "MIT" ]
1
2020-08-30T22:14:32.000Z
2020-08-30T22:14:32.000Z
redbear/reference/dead-bear-do-not-eat.py
amici-ursi/redbear
1b246583c79ebd080c9be70910e7e0c98216c969
[ "MIT" ]
48
2020-08-15T02:51:01.000Z
2020-09-14T18:03:00.000Z
redbear/reference/dead-bear-do-not-eat.py
amici-ursi/redbear
1b246583c79ebd080c9be70910e7e0c98216c969
[ "MIT" ]
null
null
null
import discord import re import random import urllib.parse import urllib.request import urllib.error import asyncio import pickle import datetime import requests from TwitterAPI import TwitterAPI import wikipedia import matplotlib.pyplot as plt from collections import OrderedDict import os from sumy.parsers.html import...
52.221423
1,303
0.591782
15,477
130,658
4.866964
0.096143
0.045243
0.043491
0.050686
0.586411
0.524573
0.476675
0.43094
0.395415
0.360513
0
0.016025
0.297464
130,658
2,501
1,304
52.242303
0.802074
0.068775
0
0.409615
0
0.044231
0.22136
0.062945
0
0
0
0
0
1
0.004808
false
0.006731
0.015385
0.000962
0.030288
0.034135
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3a956a6d686d474c80396e4eb60dcb811d7308c4
988
py
Python
pychess/System/command.py
jacobchrismarsh/chess_senior_project
7797b1f96fda5d4d268224a21e54a744d17e7b81
[ "MIT" ]
null
null
null
pychess/System/command.py
jacobchrismarsh/chess_senior_project
7797b1f96fda5d4d268224a21e54a744d17e7b81
[ "MIT" ]
40
2019-05-04T04:46:31.000Z
2022-02-26T10:37:51.000Z
pychess/System/command.py
jacobchrismarsh/chess_senior_project
7797b1f96fda5d4d268224a21e54a744d17e7b81
[ "MIT" ]
null
null
null
import subprocess class Command: def __init__(self, command, inputstr): self.command = command self.inputstr = inputstr def run(self, timeout=None): """ Run a command then return: (status, output, error). """ status = None output = "" error = "" try: ...
28.228571
85
0.553644
88
988
6.159091
0.397727
0.142066
0.132841
0.169742
0
0
0
0
0
0
0
0
0.36336
988
34
86
29.058824
0.861685
0.051619
0
0.178571
0
0
0
0
0
0
0
0
0
1
0.071429
false
0
0.035714
0
0.25
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
3a958e23807415a8b141b31130337770daa90a75
2,578
py
Python
src/options.py
Arkazix/PyAutoDock
cbc3ffbc2c40c4fa881b663c4d9a81f08ad388f3
[ "MIT" ]
null
null
null
src/options.py
Arkazix/PyAutoDock
cbc3ffbc2c40c4fa881b663c4d9a81f08ad388f3
[ "MIT" ]
null
null
null
src/options.py
Arkazix/PyAutoDock
cbc3ffbc2c40c4fa881b663c4d9a81f08ad388f3
[ "MIT" ]
null
null
null
from typing import List from os import path ERROR_ARGUMENT = 1 SUCCESS = 0 class Options: def __init__(self, argv: List[str]) -> None: self.argv = argv self.argc = len(argv) self.options = ".md" self.path: str # COMMANDES def process_argument(self) -> bool: """ ...
28.32967
67
0.53879
330
2,578
4.121212
0.278788
0.014706
0.023529
0.035294
0.104412
0.080882
0.080882
0.080882
0.063971
0.063971
0
0.002938
0.339798
2,578
91
68
28.32967
0.796122
0.164081
0
0.051724
0
0
0.160327
0
0
0
0
0
0
1
0.206897
false
0
0.034483
0
0.431034
0.12069
0
0
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
3aa3b7891999b97ebbde2dbc25574f1dd517d670
1,413
py
Python
leginon/test2.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
null
null
null
leginon/test2.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
null
null
null
leginon/test2.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
1
2019-09-05T20:58:37.000Z
2019-09-05T20:58:37.000Z
#!/usr/bin/env python import databinder import socket import event import datatransport import sys import time if len(sys.argv) != 3: print 'usage: test2.py <remote_host> <remote_port>' sys.exit(1) tecnaihost = sys.argv[1] tecnaiport = int(sys.argv[2]) def printData(d): remotehost = d['location']['TCP tra...
26.660377
78
0.70276
173
1,413
5.722543
0.49711
0.048485
0.060606
0.042424
0
0
0
0
0
0
0
0.012584
0.156405
1,413
52
79
27.173077
0.817953
0.036801
0
0
0
0
0.198822
0
0
0
0
0
0
0
null
null
0
0.153846
null
null
0.230769
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
3aaa27580e60e9a76f0d3225c54433c286bcffaa
346
py
Python
debugging/dummy.py
adriangrepo/segmentl
9b520bf6cfd005eef9bba3db36ee6b3bb373b085
[ "MIT" ]
5
2020-05-18T00:04:19.000Z
2022-03-24T13:16:51.000Z
debugging/dummy.py
adriangrepo/segmentl
9b520bf6cfd005eef9bba3db36ee6b3bb373b085
[ "MIT" ]
null
null
null
debugging/dummy.py
adriangrepo/segmentl
9b520bf6cfd005eef9bba3db36ee6b3bb373b085
[ "MIT" ]
null
null
null
import torch.nn as nn class DummyLoss(nn.Module): ''' Dummy Loss for debugging ''' def __init__(self): super(DummyLoss, self).__init__() def forward(self, inp, target): delta = inp-target print(f'DummyLoss pred: {inp.shape}, target: {target.shape}, delta: {delta.mean()}') ...
26.615385
92
0.609827
43
346
4.72093
0.581395
0.08867
0
0
0
0
0
0
0
0
0
0
0.245665
346
13
93
26.615385
0.777778
0.069364
0
0
0
0.125
0.241042
0
0
0
0
0
0
1
0.25
false
0
0.125
0
0.625
0.125
0
0
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
3aac6e9bca947c6c51002b90d72877ff5d975d93
1,650
py
Python
main.py
justinmckeown/hashmeashlee
83e7e9dc94c207a255c4ac55b784cd9cc6c12f22
[ "MIT" ]
null
null
null
main.py
justinmckeown/hashmeashlee
83e7e9dc94c207a255c4ac55b784cd9cc6c12f22
[ "MIT" ]
null
null
null
main.py
justinmckeown/hashmeashlee
83e7e9dc94c207a255c4ac55b784cd9cc6c12f22
[ "MIT" ]
null
null
null
import kivy from kivy.app import App from kivy.uix.widget import Widget from kivy.uix.label import Label from kivy.uix.gridlayout import GridLayout from kivy.uix.boxlayout import BoxLayout from kivy.uix.textinput import TextInput from kivy.uix.button import Button from kivy.uix.filechooser import FileChooser #from ply...
26.190476
79
0.651515
208
1,650
5.009615
0.427885
0.06142
0.073896
0.037428
0.051823
0
0
0
0
0
0
0.012966
0.252121
1,650
63
80
26.190476
0.831442
0.213333
0
0
0
0
0.019425
0
0
0
0
0
0
1
0.09375
false
0.03125
0.34375
0.03125
0.53125
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
3ab15541cb08d6c8c542603139adf687bc41b66c
2,031
py
Python
kolejka/common/__init__.py
dtracz/kolejka
ff62bd242b2a3f64f44c3b8e6379e083a67f211d
[ "MIT" ]
11
2018-03-16T08:27:17.000Z
2021-11-14T23:48:47.000Z
kolejka/common/__init__.py
dtracz/kolejka
ff62bd242b2a3f64f44c3b8e6379e083a67f211d
[ "MIT" ]
1
2021-08-19T16:56:37.000Z
2021-08-21T14:07:50.000Z
kolejka/common/__init__.py
dtracz/kolejka
ff62bd242b2a3f64f44c3b8e6379e083a67f211d
[ "MIT" ]
3
2018-01-10T13:57:19.000Z
2021-07-24T09:54:27.000Z
# vim:ts=4:sts=4:sw=4:expandtab from kolejka.common.cgroups import ControlGroupSystem from kolejka.common.http_socket import HTTPUnixServer, HTTPUnixConnection from kolejka.common.parse import TimeAction, MemoryAction, parse_time, parse_memory from kolejka.common.config import KolejkaConfig, kolejka_config, client_co...
32.238095
109
0.709995
231
2,031
6.082251
0.316017
0.078292
0.072598
0.05694
0.146619
0.049822
0.049822
0
0
0
0
0.001855
0.20384
2,031
62
110
32.758065
0.867038
0.027573
0
0.24
0
0
0.062976
0
0
0
0
0
0
1
0.02
false
0.08
0.26
0
0.28
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
3ab24c20823920d5111b8036369161a00d3ac54a
1,384
py
Python
nnc/migrations/0002_auto_20210729_1145.py
JanakiRaman-2002/Arre-yaar
c0b44ca1f8884a09116241dcd0bf7cfcee3b785d
[ "Apache-2.0" ]
null
null
null
nnc/migrations/0002_auto_20210729_1145.py
JanakiRaman-2002/Arre-yaar
c0b44ca1f8884a09116241dcd0bf7cfcee3b785d
[ "Apache-2.0" ]
null
null
null
nnc/migrations/0002_auto_20210729_1145.py
JanakiRaman-2002/Arre-yaar
c0b44ca1f8884a09116241dcd0bf7cfcee3b785d
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2 on 2021-07-29 06:15 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('nnc', '0001_initial'), ] operations = [ migrations.CreateModel( name='Product', field...
35.487179
123
0.568642
135
1,384
5.725926
0.451852
0.041397
0.054334
0.085382
0.450194
0.382924
0.382924
0.382924
0.382924
0.382924
0
0.022335
0.288295
1,384
38
124
36.421053
0.762437
0.031069
0
0.34375
1
0
0.095594
0
0
0
0
0
0
1
0
false
0
0.0625
0
0.15625
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
3ab3c1656831df7c604229426619350511c29963
310
py
Python
timer_wrapper.py
BookOwl/battleship
e39ccfb80b4b0e14fb03ab6911d8577513c8ecc1
[ "MIT" ]
1
2018-03-31T06:30:17.000Z
2018-03-31T06:30:17.000Z
timer_wrapper.py
BookOwl/battleship
e39ccfb80b4b0e14fb03ab6911d8577513c8ecc1
[ "MIT" ]
null
null
null
timer_wrapper.py
BookOwl/battleship
e39ccfb80b4b0e14fb03ab6911d8577513c8ecc1
[ "MIT" ]
null
null
null
from time import time from sys import argv from os import system times = [] for i in range(100): start = time() system(argv[1]) finish = time() elapsed = start-finish times.append(elapsed) continue avg = sum(times)/len(times) print "Average elapsed time", abs(avg)
13.478261
38
0.625806
43
310
4.511628
0.581395
0
0
0
0
0
0
0
0
0
0
0.017699
0.270968
310
22
39
14.090909
0.840708
0
0
0
0
0
0.064516
0
0
0
0
0
0
0
null
null
0
0.230769
null
null
0.076923
0
0
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
3ab85c199d040847ee7536954b1bb18cc1436371
6,334
py
Python
todoist/models.py
ajar98/todoist_bot
ac7130b9de1fc2022a8313f6443b8134f84b47c4
[ "MIT" ]
2
2016-07-25T22:59:00.000Z
2017-01-02T00:55:07.000Z
todoist/models.py
somtd/todoistapp
017453837bec6be1925d8826d198d11df994a899
[ "MIT" ]
null
null
null
todoist/models.py
somtd/todoistapp
017453837bec6be1925d8826d198d11df994a899
[ "MIT" ]
null
null
null
from pprint import pformat class Model(object): """ Implements a generic object. """ def __init__(self, data, api): self.temp_id = '' self.data = data self.api = api def __setitem__(self, key, value): self.data[key] = value def __getitem__(self, key): ...
27.301724
78
0.569782
741
6,334
4.732794
0.14305
0.077559
0.066724
0.11805
0.570858
0.520103
0.506416
0.506416
0.497861
0.449102
0
0.003849
0.302652
6,334
231
79
27.419913
0.790129
0.241711
0
0.29
0
0
0.059035
0
0
0
0
0
0
1
0.25
false
0.01
0.01
0.01
0.39
0.01
0
0
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
3aba00e74104a4cc1887c721c9e6d75ff5810af2
16,179
py
Python
Lib/site-packages/numarray/codegenerator/sortcode.py
raychorn/svn_Python-2.5.1
425005b1b489ba44ec0bb989e077297e8953d9be
[ "PSF-2.0" ]
null
null
null
Lib/site-packages/numarray/codegenerator/sortcode.py
raychorn/svn_Python-2.5.1
425005b1b489ba44ec0bb989e077297e8953d9be
[ "PSF-2.0" ]
null
null
null
Lib/site-packages/numarray/codegenerator/sortcode.py
raychorn/svn_Python-2.5.1
425005b1b489ba44ec0bb989e077297e8953d9be
[ "PSF-2.0" ]
null
null
null
"""This module contains templates and classes for generating type specific versions of various sort functions. WARNING: This module exists solely as a mechanism to generate a portion of numarray and is not intended to provide any post-installation functionality. """ from basecode import CodeGenerator, template, all...
23.968889
107
0.534211
2,176
16,179
3.928309
0.119485
0.003744
0.02445
0.029598
0.511348
0.467595
0.420098
0.36722
0.348269
0.330721
0
0.019517
0.255764
16,179
674
108
24.004451
0.690391
0.032882
0
0
1
0
0.252959
0
0
0
0
0
0
1
0.06
false
0
0.02
0
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3abc8873480cd0998375932e09dccf265391e794
1,145
py
Python
tests/common.py
volcengine/ve-tos-python-sdk
00e80c591daa4af2e1d959f380d69bdb33392651
[ "Apache-2.0" ]
null
null
null
tests/common.py
volcengine/ve-tos-python-sdk
00e80c591daa4af2e1d959f380d69bdb33392651
[ "Apache-2.0" ]
null
null
null
tests/common.py
volcengine/ve-tos-python-sdk
00e80c591daa4af2e1d959f380d69bdb33392651
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import tos import unittest from requests.structures import CaseInsensitiveDict class TosTestCase(unittest.TestCase): def __init__(self, *args, **kwargs): super(TosTestCase, self).__init__(*args, **kwargs) self.bucket_name = 'test_bucket' self.key_name = 'test_key' ...
30.131579
97
0.627948
138
1,145
5.014493
0.514493
0.043353
0.031792
0
0
0
0
0
0
0
0
0.043379
0.234935
1,145
37
98
30.945946
0.746575
0.018341
0
0
0
0
0.116756
0.043672
0
0
0
0
0
1
0.214286
false
0
0.107143
0.035714
0.464286
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
3abf9bdd3cf99cfb368c5745771bbb58d6dbc4ae
690
py
Python
programs/pgm15_17.py
danielsunzhongyuan/python_practice
79bc88db1c52ee2f5607f6f9fec1bbacea2804ff
[ "Apache-2.0" ]
null
null
null
programs/pgm15_17.py
danielsunzhongyuan/python_practice
79bc88db1c52ee2f5607f6f9fec1bbacea2804ff
[ "Apache-2.0" ]
null
null
null
programs/pgm15_17.py
danielsunzhongyuan/python_practice
79bc88db1c52ee2f5607f6f9fec1bbacea2804ff
[ "Apache-2.0" ]
null
null
null
# # This file contains the Python code from Program 15.17 of # "Data Structures and Algorithms # with Object-Oriented Design Patterns in Python" # by Bruno R. Preiss. # # Copyright (c) 2003 by Bruno R. Preiss, P.Eng. All rights reserved. # # http://www.brpreiss.com/books/opus7/programs/pgm15_17.txt # class BucketSorte...
25.555556
69
0.566667
99
690
3.838384
0.59596
0.094737
0.094737
0.073684
0.089474
0.089474
0
0
0
0
0
0.039916
0.310145
690
26
70
26.538462
0.758403
0
0
0.153846
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
3ac095579a3827a9569eee98b5667fb2ccf9a481
623
py
Python
saleor/widget/templatetags/widget_images.py
Chaoslecion123/Diver
8c5c493701422eada49cbf95b0b0add08f1ea561
[ "BSD-3-Clause" ]
null
null
null
saleor/widget/templatetags/widget_images.py
Chaoslecion123/Diver
8c5c493701422eada49cbf95b0b0add08f1ea561
[ "BSD-3-Clause" ]
null
null
null
saleor/widget/templatetags/widget_images.py
Chaoslecion123/Diver
8c5c493701422eada49cbf95b0b0add08f1ea561
[ "BSD-3-Clause" ]
null
null
null
from django import template from ...product.templatetags.product_images import get_thumbnail register = template.Library() @register.simple_tag() def get_benefit_thumbnail(instance, size, method): image_file = None if instance and instance.image: image_file = instance.image return get_thumbnail(...
28.318182
80
0.75923
81
623
5.592593
0.37037
0.119205
0.075055
0.0883
0.719647
0.618102
0.618102
0.618102
0.618102
0.618102
0
0
0.155698
623
21
81
29.666667
0.861217
0
0
0.533333
0
0
0.022472
0
0
0
0
0
0
1
0.133333
false
0
0.133333
0
0.4
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
3ac22e3bab67b2460f0e69cca6d469df6e95dfbe
11,746
py
Python
URDF_Exporter/URDF_Exporter.py
Piroro-hs/fusion2urdf
60aa1bc39a40c236e70bacc04577ded1f7bc4217
[ "MIT" ]
null
null
null
URDF_Exporter/URDF_Exporter.py
Piroro-hs/fusion2urdf
60aa1bc39a40c236e70bacc04577ded1f7bc4217
[ "MIT" ]
null
null
null
URDF_Exporter/URDF_Exporter.py
Piroro-hs/fusion2urdf
60aa1bc39a40c236e70bacc04577ded1f7bc4217
[ "MIT" ]
null
null
null
#Author-syuntoku14 #Description-Generate URDF file from Fusion 360 import adsk, adsk.core, adsk.fusion, traceback import os.path from xml.etree import ElementTree from xml.etree.ElementTree import Element, SubElement, Comment, tostring from xml.dom import minidom # length unit is 'cm' and inertial unit is 'kg/cm^2' #...
37.527157
114
0.584625
1,410
11,746
4.748936
0.192908
0.026882
0.008065
0.008961
0.264337
0.225806
0.201762
0.166517
0.123059
0.119773
0
0.009302
0.295249
11,746
313
115
37.527157
0.799589
0.104206
0
0.196507
1
0
0.089892
0
0
0
0
0
0
1
0.065502
false
0.008734
0.021834
0
0.139738
0.004367
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
3ac27189a0483e6a666f84b8c1cc2cd5f365d092
391
py
Python
recommend/migrations/0004_auto_20200609_1150.py
indravardhanreddy/movie_recommender
e7883d2cd4e48bb7786cbaf8a8bfe9f06476b723
[ "MIT" ]
25
2020-06-12T10:59:09.000Z
2022-03-02T20:20:52.000Z
recommend/migrations/0004_auto_20200609_1150.py
a-typical-sheep/move-recommender
a67dbba32fc4bf67b8c8287b75da44de031a9e64
[ "MIT" ]
10
2021-03-19T07:49:55.000Z
2022-03-12T00:34:50.000Z
recommend/migrations/0004_auto_20200609_1150.py
a-typical-sheep/move-recommender
a67dbba32fc4bf67b8c8287b75da44de031a9e64
[ "MIT" ]
22
2020-10-07T17:57:14.000Z
2022-03-21T14:57:33.000Z
# Generated by Django 3.0.6 on 2020-06-09 06:20 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('recommend', '0003_auto_20200609_1119'), ] operations = [ migrations.AlterField( model_name='myrating', name='like', ...
20.578947
53
0.603581
41
391
5.658537
0.829268
0
0
0
0
0
0
0
0
0
0
0.110714
0.283887
391
18
54
21.722222
0.717857
0.11509
0
0
1
0
0.127907
0.06686
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
3ac580b0971f10ad406805f8eea7d30af8634599
5,883
py
Python
azfs/utils.py
Payyann/azfs
77ecb5916c95aac9084660bd1a9abd65abc669c3
[ "MIT" ]
null
null
null
azfs/utils.py
Payyann/azfs
77ecb5916c95aac9084660bd1a9abd65abc669c3
[ "MIT" ]
null
null
null
azfs/utils.py
Payyann/azfs
77ecb5916c95aac9084660bd1a9abd65abc669c3
[ "MIT" ]
null
null
null
from typing import Union import re from azfs.error import ( AzfsInputError ) class BlobPathDecoder: def __init__(self, path: Union[None, str] = None): self.storage_account_name = None # blob: blob or data_lake: dfs self.account_type = None self.container_name = None sel...
36.092025
120
0.613633
728
5,883
4.642857
0.115385
0.094675
0.050592
0.042604
0.749408
0.706509
0.667456
0.636686
0.597041
0.551479
0
0.006724
0.266871
5,883
162
121
36.314815
0.776953
0.070202
0
0.474576
0
0
0.085329
0.010666
0
0
0
0
0
1
0.101695
false
0
0.025424
0.016949
0.228814
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
3acba06a7ba76e1adb8cbbebcd69cbdaf87ff78e
783
py
Python
Course/modules/physics5.py
zevgenia/Python_shultais
e51c31de221c5e7f36ede857a960138009ec8a05
[ "Apache-2.0" ]
null
null
null
Course/modules/physics5.py
zevgenia/Python_shultais
e51c31de221c5e7f36ede857a960138009ec8a05
[ "Apache-2.0" ]
null
null
null
Course/modules/physics5.py
zevgenia/Python_shultais
e51c31de221c5e7f36ede857a960138009ec8a05
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Ускорение свободного падения G = 9.8 def ek(m, v): return (m * (v ** 2)) / 2 def ep(m, h): return m * G * h if __name__ == "__main__": import sys #print(sys.argv) if "test" in sys.argv and sys.argv[1] == "test": if int(ek(100, 10)) != 5000: prin...
22.371429
76
0.473819
130
783
2.792308
0.284615
0.289256
0.088154
0.099174
0.391185
0.391185
0.391185
0.225895
0.104683
0
0
0.062615
0.306513
783
35
77
22.371429
0.605893
0.083014
0
0.1
0
0
0.145455
0
0
0
0
0
0
1
0.1
false
0
0.05
0.1
0.25
0.2
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
3acc6bdca94c67a4095af2cf02049ea7b3c71749
516
py
Python
inventory.py
otricadziziusz/roguelike-tutorial
7fa3f583ed50831ca89e0d900e5803dd50ea35ec
[ "MIT" ]
17
2019-06-21T03:53:31.000Z
2021-06-24T09:58:58.000Z
inventory.py
otricadziziusz/roguelike-tutorial
7fa3f583ed50831ca89e0d900e5803dd50ea35ec
[ "MIT" ]
5
2020-02-24T22:43:15.000Z
2021-01-02T16:03:52.000Z
inventory.py
otricadziziusz/roguelike-tutorial
7fa3f583ed50831ca89e0d900e5803dd50ea35ec
[ "MIT" ]
3
2019-06-20T22:12:19.000Z
2020-09-05T17:13:47.000Z
from __future__ import annotations from typing import TYPE_CHECKING, List if TYPE_CHECKING: from items import Item class Inventory: symbols = "abcdefghijklmnopqrstuvwxyz" capacity = len(symbols) def __init__(self) -> None: self.contents: List[Item] = [] def take(self, item: Item) -> No...
23.454545
72
0.655039
65
516
5.046154
0.569231
0.073171
0
0
0
0
0
0
0
0
0
0
0.257752
516
21
73
24.571429
0.856397
0.112403
0
0
0
0
0.057522
0.057522
0
0
0
0
0.071429
1
0.142857
false
0
0.214286
0
0.571429
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
3acfa9c606b9bbe317732648a306172738b70037
814
py
Python
ToDo/list/migrations/0008_auto_20191031_1845.py
shashidharb96/ToDoList
6b97a93594411fc6ef163d8f42cbe3f380809a24
[ "bzip2-1.0.6" ]
null
null
null
ToDo/list/migrations/0008_auto_20191031_1845.py
shashidharb96/ToDoList
6b97a93594411fc6ef163d8f42cbe3f380809a24
[ "bzip2-1.0.6" ]
null
null
null
ToDo/list/migrations/0008_auto_20191031_1845.py
shashidharb96/ToDoList
6b97a93594411fc6ef163d8f42cbe3f380809a24
[ "bzip2-1.0.6" ]
null
null
null
# Generated by Django 2.2.6 on 2019-10-31 13:15 import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('list', '0007_auto_20191031_1841'), ] operations = [ migrations.CreateModel( ...
29.071429
115
0.585995
88
814
5.318182
0.647727
0.025641
0.034188
0.042735
0.051282
0
0
0
0
0
0
0.094178
0.282555
814
27
116
30.148148
0.707192
0.055283
0
0.095238
1
0
0.076923
0.029987
0
0
0
0
0
1
0
false
0
0.142857
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3ad243231193aaf5061cfed1bb63f2c9b90c0039
2,415
py
Python
SalesApp/migrations/0001_initial.py
Tarikol-Islam/Django_CRM
b8c6623c830437e05e5958101d8705703ebeb197
[ "MIT" ]
null
null
null
SalesApp/migrations/0001_initial.py
Tarikol-Islam/Django_CRM
b8c6623c830437e05e5958101d8705703ebeb197
[ "MIT" ]
null
null
null
SalesApp/migrations/0001_initial.py
Tarikol-Islam/Django_CRM
b8c6623c830437e05e5958101d8705703ebeb197
[ "MIT" ]
null
null
null
# Generated by Django 4.0 on 2021-12-14 06:52 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Company', fields=[ ...
45.566038
124
0.594617
245
2,415
5.681633
0.318367
0.057471
0.116379
0.155172
0.45977
0.420977
0.399425
0.321839
0.267241
0.267241
0
0.020857
0.265424
2,415
52
125
46.442308
0.763811
0.017805
0
0.333333
1
0
0.145992
0.02827
0
0
0
0
0
1
0
false
0
0.044444
0
0.133333
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
3ad57d65c9fcb8b70166da201c1bae16f9110a01
2,111
py
Python
backend/backend/celery_app.py
Hosermes/critterco-dev
963e17f53c162e899353b8468064b67482db9f60
[ "MIT" ]
4
2020-05-21T08:34:54.000Z
2020-08-01T11:57:40.000Z
backend/backend/celery_app.py
HosseinMirjalali/critterco-dev
909fabf1dca2fb7a50bd163db0ecee67c252c4ac
[ "MIT" ]
5
2020-06-29T11:12:27.000Z
2020-08-13T11:53:20.000Z
backend/backend/celery_app.py
Hosermes/critterco-dev
963e17f53c162e899353b8468064b67482db9f60
[ "MIT" ]
2
2020-04-30T11:16:22.000Z
2020-05-15T17:14:12.000Z
import os import sys import time from django.core.mail import send_mail from django.dispatch import receiver from django.template.loader import render_to_string from celery import shared_task from celery import Celery from django.core.mail import EmailMultiAlternatives from django_rest_passwordreset.signals import rese...
29.319444
81
0.710564
282
2,111
5.124113
0.326241
0.041522
0.062284
0.069204
0.321799
0.288581
0.258824
0.213149
0.213149
0.213149
0
0.001142
0.170062
2,111
71
82
29.732394
0.82363
0.008053
0
0.267857
0
0
0.229555
0.0923
0
0
0
0
0
1
0.071429
false
0.125
0.196429
0
0.267857
0.035714
0
0
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
3ad62e7105a455a68e85b9bb7011ce8d4acab604
5,032
py
Python
gen_fig04.py
kaitlyn-loftus/rainprops
e2df9c2102112526f05109051dfffeeb5c318967
[ "MIT" ]
7
2021-02-17T20:27:48.000Z
2022-01-17T20:30:48.000Z
gen_fig04.py
kaitlyn-loftus/rainprops
e2df9c2102112526f05109051dfffeeb5c318967
[ "MIT" ]
null
null
null
gen_fig04.py
kaitlyn-loftus/rainprops
e2df9c2102112526f05109051dfffeeb5c318967
[ "MIT" ]
1
2022-01-18T00:24:56.000Z
2022-01-18T00:24:56.000Z
################################################################ # generate results for LoWo21 Figure 4 # evaulate non-d number Λ as tool to understand raindrop evap ################################################################ import src.fall as fall from src.planet import Planet import src.drop_prop as drop_prop i...
32.050955
92
0.561407
924
5,032
2.823593
0.175325
0.045995
0.08279
0.019164
0.383672
0.292066
0.226907
0.133384
0.075125
0.036029
0
0.055786
0.234102
5,032
156
93
32.25641
0.621173
0.174682
0
0.094828
1
0
0.05494
0.011341
0
0
0
0
0
1
0
false
0
0.051724
0
0.051724
0.017241
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
3ae5c35fa2119b3e1f43d0769488865ee3e80713
2,429
py
Python
python/pyglet/bezier.py
initrunlevel0/sns
9736a43ad305ca5973de28ef7101d4fe30dd3e74
[ "MIT" ]
null
null
null
python/pyglet/bezier.py
initrunlevel0/sns
9736a43ad305ca5973de28ef7101d4fe30dd3e74
[ "MIT" ]
null
null
null
python/pyglet/bezier.py
initrunlevel0/sns
9736a43ad305ca5973de28ef7101d4fe30dd3e74
[ "MIT" ]
null
null
null
#!/usr/bin/python # BezierDraw # Part of GLKolab Project Scaffolding # Putu Wiramaswara Widya <initrunlevel0@gmail.com # http://github.com/initrunlevel0/GLKolab import ctypes import pyglet from pyglet.gl import * canvasDrawObject = [] state = "None" window = pyglet.window.Window(800,600) # Class of Bezier class D...
19.125984
73
0.680527
328
2,429
4.957317
0.365854
0.01476
0.009225
0.02952
0.163592
0.03444
0.03444
0
0
0
0
0.029293
0.18485
2,429
126
74
19.277778
0.791919
0.108275
0
0.333333
0
0
0.026914
0
0
0
0
0
0
0
null
null
0.037037
0.037037
null
null
0.024691
0
0
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
3aec96efc50c0168f1924be55ba483c7babae3eb
399
py
Python
Data Count.py
timtim17/PSCSTA
54c957fe2921ae79feab39ff8050dfb602c3f64f
[ "MIT" ]
null
null
null
Data Count.py
timtim17/PSCSTA
54c957fe2921ae79feab39ff8050dfb602c3f64f
[ "MIT" ]
null
null
null
Data Count.py
timtim17/PSCSTA
54c957fe2921ae79feab39ff8050dfb602c3f64f
[ "MIT" ]
null
null
null
path = "data\\" # path = "D:\\JudgesData\\" files = ['accounting.dat', 'bank.dat', 'buoyancy.dat', 'cross.dat', 'cursed.dat', 'determined1.dat', 'determined2.dat', 'drought.dat', 'histonum.dat', 'shuffle.dat', 'sineup.dat', 'splatter.dat'] length = 0 for file in files: file = open(path + file) length += len(...
30.692308
195
0.646617
55
399
4.690909
0.6
0
0
0
0
0
0
0
0
0
0
0.00885
0.150376
399
12
196
33.25
0.752212
0.062657
0
0
0
0
0.502688
0
0
0
0
0
0
0
null
null
0
0
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
3aede47788873b463ef10d1364d48c75db35328c
485
py
Python
Paint Fence.py
quake0day/oj
c09333d1738f8735de0d5d825db6f4b707585670
[ "MIT" ]
null
null
null
Paint Fence.py
quake0day/oj
c09333d1738f8735de0d5d825db6f4b707585670
[ "MIT" ]
null
null
null
Paint Fence.py
quake0day/oj
c09333d1738f8735de0d5d825db6f4b707585670
[ "MIT" ]
null
null
null
class Solution(object): def numWays(self, n, k): """ :type n: int :type k: int :rtype: int """ allRes = [] res = [] if k == 0 or n == 0: return 0 if n == 1: return 1 res[0] = 1 for i in xrange(1,n): for j in xrange(k): ...
22.045455
51
0.418557
71
485
2.830986
0.366197
0.029851
0.059701
0.099502
0.159204
0
0
0
0
0
0
0.032967
0.437113
485
22
52
22.045455
0.703297
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
3aef008a1104b2bc00aaf13c518ddd2700d9364b
7,491
py
Python
pedsnetdcc/foreign_keys.py
PEDSnet/pedsnetdcc
76a32a09416956c9a0831ec05c14d490309d7b41
[ "BSD-2-Clause" ]
null
null
null
pedsnetdcc/foreign_keys.py
PEDSnet/pedsnetdcc
76a32a09416956c9a0831ec05c14d490309d7b41
[ "BSD-2-Clause" ]
112
2016-06-14T21:03:38.000Z
2021-02-16T16:08:12.000Z
pedsnetdcc/foreign_keys.py
PEDSnet/pedsnetdcc
76a32a09416956c9a0831ec05c14d490309d7b41
[ "BSD-2-Clause" ]
null
null
null
import logging import sqlalchemy import sqlalchemy.dialects.postgresql import time from psycopg2 import errorcodes as psycopg2_errorcodes from pedsnetdcc import VOCAB_TABLES from pedsnetdcc.db import StatementSet, Statement from pedsnetdcc.dict_logging import secs_since from pedsnetdcc.utils import (stock_metadata, c...
37.833333
79
0.633827
894
7,491
5.175615
0.177852
0.054679
0.025935
0.028528
0.705857
0.695267
0.695267
0.695267
0.668252
0.668252
0
0.003588
0.293152
7,491
197
80
38.025381
0.870255
0.348685
0
0.59
0
0
0.081259
0
0
0
0
0
0
1
0.04
false
0
0.09
0
0.19
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
3af2e10f511eb147426aea02b6b4e75384e576ca
5,855
py
Python
renderer.py
ring00/adversarial-3d
45a4b00df84a572faa45daeb65a0933afc803281
[ "MIT" ]
11
2018-03-18T15:05:30.000Z
2021-12-03T02:28:58.000Z
renderer.py
ring00/adversarial-3d
45a4b00df84a572faa45daeb65a0933afc803281
[ "MIT" ]
3
2020-09-26T01:26:21.000Z
2021-05-06T11:14:33.000Z
renderer.py
ring00/adversarial-3d
45a4b00df84a572faa45daeb65a0933afc803281
[ "MIT" ]
2
2019-11-28T08:37:29.000Z
2020-04-03T03:10:47.000Z
import os import ModernGL from ModernGL.ext.obj import Obj from PIL import Image from pyrr import Matrix44, Vector3 import numpy as np class Renderer(object): def __init__(self, viewport=(299, 299)): """ Construct a Renderer object viewport: width and height of windows """ ...
33.079096
95
0.545175
721
5,855
4.339806
0.330097
0.009588
0.009588
0.00767
0.100352
0.076702
0.032598
0
0
0
0
0.033121
0.355423
5,855
176
96
33.267045
0.795972
0.215884
0
0.036036
0
0
0.195995
0
0
0
0
0.011364
0
1
0.045045
false
0
0.054054
0
0.135135
0.009009
0
0
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
aae840dd200678eebf597104f4b1b11cf38f8640
3,047
py
Python
data/datasets/dataset_loader.py
chilung/VisDA1
d5bafb7c6048f56483d2b03ae7040eee7a60af71
[ "MIT" ]
60
2020-08-05T10:26:06.000Z
2022-01-13T12:46:06.000Z
data/datasets/dataset_loader.py
chilung/VisDA1
d5bafb7c6048f56483d2b03ae7040eee7a60af71
[ "MIT" ]
5
2020-08-06T04:55:17.000Z
2020-10-12T03:05:31.000Z
data/datasets/dataset_loader.py
chilung/VisDA1
d5bafb7c6048f56483d2b03ae7040eee7a60af71
[ "MIT" ]
10
2020-08-06T15:57:56.000Z
2021-02-02T08:42:21.000Z
# encoding: utf-8 import os.path as osp from PIL import Image from torch.utils.data import Dataset import numpy as np def read_image(img_path): """Keep reading image until succeed. This can avoid IOError incurred by heavy IO process.""" got_img = False if not osp.exists(img_path): raise IOErro...
30.47
109
0.623892
401
3,047
4.553616
0.246883
0.061336
0.026287
0.035049
0.619934
0.607886
0.607886
0.607886
0.607886
0.607886
0
0.004906
0.264194
3,047
99
110
30.777778
0.809545
0.064654
0
0.552239
0
0
0.03292
0
0
0
0
0
0
1
0.149254
false
0.014925
0.059701
0.044776
0.358209
0.014925
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
aae970f1447e700c87703c145adcc53b689e02d0
2,330
py
Python
src/predictive_alerting/database/models.py
alexlokotochek/predictive-alerting
dea92a248653e9002284875e04b2a3c2f0870144
[ "MIT" ]
1
2019-11-27T10:36:43.000Z
2019-11-27T10:36:43.000Z
src/predictive_alerting/database/models.py
alexlokotochek/predictive-alerting
dea92a248653e9002284875e04b2a3c2f0870144
[ "MIT" ]
1
2019-11-29T09:31:32.000Z
2019-11-29T09:31:32.000Z
src/predictive_alerting/database/models.py
alexlokotochek/predictive-alerting
dea92a248653e9002284875e04b2a3c2f0870144
[ "MIT" ]
null
null
null
import datetime from sqlalchemy import ( Boolean, Column, ForeignKey, Integer, String, Float, DateTime, ) from sqlalchemy.orm import relationship from database import db class AlertType(db.Model): """Table with types of alerts. Used by alert_sender service to identify what to do in case if alert is trigge...
35.846154
76
0.723176
312
2,330
5.259615
0.375
0.043876
0.054845
0.060938
0.27727
0.27727
0.27727
0.248629
0.192566
0.192566
0
0.013249
0.190129
2,330
64
77
36.40625
0.856386
0.326609
0
0.30303
0
0
0.031915
0
0
0
0
0
0
1
0
false
0
0.121212
0
0.939394
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
aaf4a3c593f7edf3fdea95175e50d5e7f20f711a
8,557
py
Python
model.py
dhirajpatnaik16297/text-gan-tensorflow
fb9897ee55e8d674a16c6041a2c1fb67abad131b
[ "MIT" ]
102
2017-03-30T02:40:21.000Z
2022-01-18T13:04:50.000Z
model.py
dhirajpatnaik16297/text-gan-tensorflow
fb9897ee55e8d674a16c6041a2c1fb67abad131b
[ "MIT" ]
2
2017-05-26T00:28:54.000Z
2017-06-03T11:31:08.000Z
model.py
dhirajpatnaik16297/text-gan-tensorflow
fb9897ee55e8d674a16c6041a2c1fb67abad131b
[ "MIT" ]
36
2017-04-11T07:52:58.000Z
2021-06-18T20:06:11.000Z
""" Text GAN Adverserial networks applied to language models using Gumbel Softmax. Can be used as pure language model. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import functools from collections import namedtuple import tensorflow as tf from ten...
41.139423
120
0.715321
1,083
8,557
5.32964
0.203139
0.058212
0.016632
0.027027
0.350139
0.244456
0.213791
0.206687
0.206687
0.149168
0
0.003487
0.195746
8,557
207
121
41.338164
0.835222
0.165946
0
0.081301
0
0
0.072725
0.016728
0
0
0
0.014493
0
1
0.04065
false
0
0.097561
0
0.186992
0.00813
0
0
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
c904a2edcf166c28ff79e8df34c708246dbbb15a
1,376
py
Python
src/python/ilp_visualization.py
hhelm10/distPURL
735480bceff38b7a10ea618c13fe93a5b3d26910
[ "MIT" ]
2
2021-04-27T15:26:00.000Z
2021-09-12T23:15:02.000Z
src/python/ilp_visualization.py
hhelm10/distPURL
735480bceff38b7a10ea618c13fe93a5b3d26910
[ "MIT" ]
null
null
null
src/python/ilp_visualization.py
hhelm10/distPURL
735480bceff38b7a10ea618c13fe93a5b3d26910
[ "MIT" ]
2
2021-04-27T15:26:33.000Z
2021-09-13T12:32:24.000Z
""" Copyright (c) Microsoft Corporation. Licensed under the MIT license. """ import os import numpy as np import matplotlib.pyplot as plt import logging from typing import * from typing import List from ilp_common_classes import * logger = logging.getLogger('matplotlib') logger.setLevel(logging.WARNING) def visulai...
32.761905
131
0.704942
207
1,376
4.52657
0.492754
0.085379
0.035219
0.034152
0.03842
0
0
0
0
0
0
0.012976
0.159884
1,376
41
132
33.560976
0.797578
0.184593
0
0
0
0
0.052007
0
0
0
0
0
0
1
0.045455
false
0
0.318182
0
0.363636
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
c917139a12900ebd252920835bfd0587ef76f699
1,913
py
Python
weather/models.py
jawahar273/bm
0501210077c5435b27d04c96a2f85da453d63689
[ "MIT" ]
null
null
null
weather/models.py
jawahar273/bm
0501210077c5435b27d04c96a2f85da453d63689
[ "MIT" ]
218
2018-05-29T00:34:55.000Z
2021-06-10T18:40:26.000Z
weather/models.py
jawahar273/bm
0501210077c5435b27d04c96a2f85da453d63689
[ "MIT" ]
null
null
null
from django.utils import timezone from django.db import models # from django.contrib.gis.db import models """The weather models stores the information about the weather of specificy area which given by the users. The api developed based on Open weather map's `air pollution<http://openweathermap.org/api/pollution/co>`...
32.423729
83
0.678515
252
1,913
4.992063
0.464286
0.033386
0.022258
0.042925
0.034976
0
0
0
0
0
0
0.008519
0.2023
1,913
58
84
32.982759
0.815858
0.110298
0
0.060606
0
0
0.136035
0
0
0
0
0
0
1
0.060606
false
0
0.060606
0.060606
0.575758
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
c919b35760fe805bb113da04c4583cacb3e196d3
1,379
py
Python
src/logpipe/migrations/0005_auto_20180917_1348.py
vitorcarmovieira/django-logpipe
89d0543e341518f9ae49124c354e6a6c2e3f4150
[ "0BSD" ]
null
null
null
src/logpipe/migrations/0005_auto_20180917_1348.py
vitorcarmovieira/django-logpipe
89d0543e341518f9ae49124c354e6a6c2e3f4150
[ "0BSD" ]
1
2021-06-10T22:30:32.000Z
2021-06-10T22:30:32.000Z
src/logpipe/migrations/0005_auto_20180917_1348.py
vitorcarmovieira/django-logpipe
89d0543e341518f9ae49124c354e6a6c2e3f4150
[ "0BSD" ]
1
2021-01-04T12:33:57.000Z
2021-01-04T12:33:57.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-09-17 13:48 from __future__ import unicode_literals from django.db import migrations, models import logpipe.settings class Migration(migrations.Migration): dependencies = [ ('logpipe', '0004_auto_20170502_1403'), ] operations = [ ...
53.038462
800
0.612763
176
1,379
4.721591
0.539773
0.066185
0.043321
0
0
0
0
0
0
0
0
0.044737
0.173314
1,379
25
801
55.16
0.684211
0.047861
0
0.111111
1
0
0.453435
0.017557
0
0
0
0
0
1
0
false
0
0.166667
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
c91dc88bd65022c7f97efb5d124b0b7ba99d0219
1,791
py
Python
exec/hvacws.py
Ericmas001/hq-hvac-api-docker
6f96290587bf7b8c0fd88d35c9c072ee119bde63
[ "MIT" ]
null
null
null
exec/hvacws.py
Ericmas001/hq-hvac-api-docker
6f96290587bf7b8c0fd88d35c9c072ee119bde63
[ "MIT" ]
null
null
null
exec/hvacws.py
Ericmas001/hq-hvac-api-docker
6f96290587bf7b8c0fd88d35c9c072ee119bde63
[ "MIT" ]
null
null
null
#!/usr/bin/python import logging from logging.handlers import RotatingFileHandler from threading import Lock from datetime import datetime, time from flask import Flask, request, jsonify from flask.json import JSONEncoder import handler from const import KEY class CustomJSONEncoder(JSONEncoder): def default(sel...
27.984375
62
0.651591
235
1,791
4.817021
0.293617
0.042403
0.074205
0.111307
0.251767
0.14841
0.118375
0.070671
0
0
0
0.006307
0.203238
1,791
64
63
27.984375
0.786966
0.008934
0
0.196078
0
0
0.059718
0
0
0
0
0
0
1
0.156863
false
0
0.156863
0
0.588235
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
c9235c77fb8f99eae40357f0a4d5f34606253ff2
1,582
py
Python
fedrec/communications/communication_interfaces.py
sidarth164/RecoEdge
351d680a8878f8ab4917e9a96af7d34600a4a6f6
[ "Apache-2.0" ]
null
null
null
fedrec/communications/communication_interfaces.py
sidarth164/RecoEdge
351d680a8878f8ab4917e9a96af7d34600a4a6f6
[ "Apache-2.0" ]
null
null
null
fedrec/communications/communication_interfaces.py
sidarth164/RecoEdge
351d680a8878f8ab4917e9a96af7d34600a4a6f6
[ "Apache-2.0" ]
null
null
null
import asyncio import zmq from zmq.asyncio import Context from time import sleep from abc import ABC, abstractmethod from fedrec.utilities import registry from global_comm_stream import CommunicationStream class AbstractComManager(ABC): @abstractmethod def send_message(self): pass @abstractmetho...
25.516129
65
0.584703
165
1,582
5.521212
0.375758
0.107574
0.030735
0.063666
0.155873
0.08562
0
0
0
0
0
0.018501
0.316688
1,582
61
66
25.934426
0.824237
0
0
0.272727
0
0
0.093671
0
0
0
0
0
0
1
0.136364
false
0.068182
0.159091
0
0.363636
0.068182
0
0
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
c9342c239f9ff3abc79a63ba7fe8cc2a2432536b
2,022
py
Python
New folder/modules.py
piyushparastiwari/python-project
5dba0ef4e77f1d2528f510327de4224b60b1d4ba
[ "Apache-2.0" ]
null
null
null
New folder/modules.py
piyushparastiwari/python-project
5dba0ef4e77f1d2528f510327de4224b60b1d4ba
[ "Apache-2.0" ]
null
null
null
New folder/modules.py
piyushparastiwari/python-project
5dba0ef4e77f1d2528f510327de4224b60b1d4ba
[ "Apache-2.0" ]
null
null
null
Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 16:07:46) [MSC v.1900 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. >>> import math >>> x=4.5 >>> math.ceil(x) 5 >>> math.floor(x) 4 >>> math.cos(x) -0.2107957994307797 >>> math.sin(x) -0.977530117665097 >>> math.tan(x...
29.735294
209
0.644906
287
2,022
4.383275
0.554007
0.044515
0.040541
0.050079
0.09062
0.060413
0.060413
0
0
0
0
0.150143
0.136993
2,022
67
210
30.179104
0.570774
0
0
0.090909
0
0
0.209207
0.032737
0
0
0
0
0
0
null
null
0
0.060606
null
null
0.015152
0
0
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
c93d2c5c0f981652de8f8b607e910799642d948d
654
py
Python
app/model/User.py
ShiftLeftSecurity/tarpit-python
d6c7d42bf904678efdaa0af3b943675831e5e749
[ "Apache-2.0" ]
1
2022-03-25T18:15:03.000Z
2022-03-25T18:15:03.000Z
app/model/User.py
ShiftLeftSecurity/tarpit-python
d6c7d42bf904678efdaa0af3b943675831e5e749
[ "Apache-2.0" ]
null
null
null
app/model/User.py
ShiftLeftSecurity/tarpit-python
d6c7d42bf904678efdaa0af3b943675831e5e749
[ "Apache-2.0" ]
2
2020-04-03T17:31:12.000Z
2020-10-29T20:28:16.000Z
class User: def __init__(self, userName, firstName, lastName, passportNumber, address1, address2, zipCode): self.userName = userName self.firstName = firstName self.lastName = lastName self.passportNumber = passportNumber self.address1 = address1 self.address2 = addre...
46.714286
160
0.62844
58
654
7.017241
0.241379
0.088452
0.103194
0
0
0
0
0
0
0
0
0.020325
0.247706
654
13
161
50.307692
0.806911
0
0
0
0
0
0.137615
0
0
0
0
0
0
1
0.166667
false
0.25
0
0.083333
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
c94013cc07cfb766a6d14717ea1b3b5827b6156f
1,135
py
Python
PlayerSelectionView.py
Fmccline/ConnectFour
c92b9b76c1fdbb567589484452eff2d64af4b456
[ "MIT" ]
null
null
null
PlayerSelectionView.py
Fmccline/ConnectFour
c92b9b76c1fdbb567589484452eff2d64af4b456
[ "MIT" ]
null
null
null
PlayerSelectionView.py
Fmccline/ConnectFour
c92b9b76c1fdbb567589484452eff2d64af4b456
[ "MIT" ]
null
null
null
from tkinter import Tk, StringVar, OptionMenu, Frame, LEFT, Label from Agents.Agent import Agent class PlayerSelectionView: HUMAN = 'Human' RANDOM = 'Random' SMART_RANDOM = 'Smart Random' BOARD_HEURISTIC = 'Consecutive Pieces Heuristic' MOVE_HEURISTIC = 'Num Wins Heuristic' PLAYER_TYPES = [...
32.428571
102
0.689868
140
1,135
5.378571
0.321429
0.079681
0.10093
0.042497
0
0
0
0
0
0
0
0.00112
0.213216
1,135
34
103
33.382353
0.842105
0
0
0
0
0
0.075838
0
0
0
0
0
0
1
0.12
false
0
0.08
0.08
0.56
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
c9413d251d756ea4dd13db1deed541e6588365bc
664
py
Python
document/management/commands/index_documents.py
Zarah-Project/zarah-db-api
cce4d0424e5b3121ab2129819cf0cc956fca5267
[ "MIT" ]
null
null
null
document/management/commands/index_documents.py
Zarah-Project/zarah-db-api
cce4d0424e5b3121ab2129819cf0cc956fca5267
[ "MIT" ]
4
2021-04-08T22:00:18.000Z
2022-02-10T15:09:45.000Z
document/management/commands/index_documents.py
Zarah-Project/zarah-db-api
cce4d0424e5b3121ab2129819cf0cc956fca5267
[ "MIT" ]
null
null
null
import pysolr from django.conf import settings from django.core.management import BaseCommand from document.indexer import DocumentIndexer from document.models import Document class Command(BaseCommand): help = 'Index documents.' def handle(self, *args, **options): solr_core = getattr(settings, "SOL...
30.181818
101
0.667169
77
664
5.675325
0.506494
0.05492
0.086957
0
0
0
0
0
0
0
0
0.007619
0.209337
664
21
102
31.619048
0.824762
0
0
0
0
0
0.108434
0
0
0
0
0
0
1
0.0625
false
0
0.3125
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
c9430d331e4497c730f4e924c1f3d3d5dd0a2c3b
2,530
py
Python
DL_Models/torch_models/torch_utils/plot.py
Zensho/CS91-Proj
876d5e977800af42382f8c6398eb62ccff202497
[ "MIT" ]
null
null
null
DL_Models/torch_models/torch_utils/plot.py
Zensho/CS91-Proj
876d5e977800af42382f8c6398eb62ccff202497
[ "MIT" ]
null
null
null
DL_Models/torch_models/torch_utils/plot.py
Zensho/CS91-Proj
876d5e977800af42382f8c6398eb62ccff202497
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from config import config import logging def plot_from_csv(file_path, output_dir, metric, savefig=True): """ Plot the metric saved in the file_path file """ logging.info("Plotting metrics...") x = np.loadtxt(file_path, delimiter=',') epochs =...
33.733333
110
0.599605
314
2,530
4.757962
0.229299
0.066265
0.034806
0.036145
0.751004
0.706158
0.648594
0.62249
0.62249
0.593039
0
0.000512
0.227273
2,530
75
110
33.733333
0.763683
0.059684
0
0.633333
0
0
0.207458
0
0
0
0
0
0
1
0.05
false
0
0.066667
0
0.116667
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
c943c4e2b1eac86335b288ae3b59a9fbf84da767
4,856
py
Python
python/seqan/test/test_strings.py
JohnReid/pyseqan
b29cffe3a061c8039ac083560f0aef9bedbac9c9
[ "MIT" ]
7
2015-03-06T14:45:14.000Z
2017-11-17T04:42:17.000Z
python/seqan/test/test_strings.py
JohnReid/pyseqan
b29cffe3a061c8039ac083560f0aef9bedbac9c9
[ "MIT" ]
1
2019-02-25T18:08:03.000Z
2019-02-28T16:50:40.000Z
python/seqan/test/test_strings.py
JohnReid/pyseqan
b29cffe3a061c8039ac083560f0aef9bedbac9c9
[ "MIT" ]
2
2017-08-11T20:35:57.000Z
2020-06-01T12:58:41.000Z
# # Copyright John Reid 2013 # """ Test string functionality. """ from seqan.test import fasta_file import logging import seqan import sys from itertools import combinations def infix_maker(str_type): def make_infix(s): string = str_type(s) infix = string[:] return infix return make_...
27.748571
80
0.642092
716
4,856
4.150838
0.196927
0.054172
0.02961
0.025908
0.385599
0.360363
0.312921
0.290713
0.230821
0.216353
0
0.04324
0.209432
4,856
174
81
27.908046
0.73092
0.071664
0
0.185484
0
0
0.088525
0.004706
0
0
0
0
0.16129
0
null
null
0.008065
0.040323
null
null
0.080645
0
0
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
c945c1e9492019ce178e8ed1c4677d55fe0cec6a
1,272
py
Python
Kelp/plotkino.py
trondkr/particleDistributions
1f5be088150db92c985c00210951ab62521bf694
[ "MIT" ]
null
null
null
Kelp/plotkino.py
trondkr/particleDistributions
1f5be088150db92c985c00210951ab62521bf694
[ "MIT" ]
1
2019-07-11T15:02:32.000Z
2019-07-11T16:57:03.000Z
Kelp/plotkino.py
trondkr/particleDistributions
1f5be088150db92c985c00210951ab62521bf694
[ "MIT" ]
1
2019-12-23T06:49:29.000Z
2019-12-23T06:49:29.000Z
#!/usr/bin/env python from datetime import datetime, timedelta import numpy as np from opendrift.readers import reader_basemap_landmask from opendrift.readers import reader_ROMS_native from opendrift.models.oceandrift import OceanDrift from kelp.kelpClass import PelagicPlanktonDrift o = PelagicPlanktonDrift(loglevel...
36.342857
141
0.77044
150
1,272
6.253333
0.426667
0.046908
0.059701
0.110874
0.41258
0.34435
0.34435
0.34435
0.34435
0.34435
0
0.019393
0.06761
1,272
34
142
37.411765
0.771501
0.11478
0
0
0
0
0.244424
0.128253
0
0
0
0
0
1
0
false
0
0.368421
0
0.368421
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
c946af3fbe476530949b469b7e333936fe5ddd91
874
py
Python
grpclib/const.py
panaetov/grpclib
3c7d6ec3479cde417e748bc9b0cf0e9188d0f42a
[ "BSD-3-Clause" ]
null
null
null
grpclib/const.py
panaetov/grpclib
3c7d6ec3479cde417e748bc9b0cf0e9188d0f42a
[ "BSD-3-Clause" ]
null
null
null
grpclib/const.py
panaetov/grpclib
3c7d6ec3479cde417e748bc9b0cf0e9188d0f42a
[ "BSD-3-Clause" ]
null
null
null
import enum import collections @enum.unique class Status(enum.Enum): OK = 0 CANCELLED = 1 UNKNOWN = 2 INVALID_ARGUMENT = 3 DEADLINE_EXCEEDED = 4 NOT_FOUND = 5 ALREADY_EXISTS = 6 PERMISSION_DENIED = 7 RESOURCE_EXHAUSTED = 8 FAILED_PRECONDITION = 9 ABORTED = 10 OUT_OF_RAN...
20.809524
61
0.697941
99
874
5.909091
0.646465
0.034188
0.051282
0
0
0
0
0
0
0
0
0.035294
0.221968
874
41
62
21.317073
0.825
0
0
0.060606
0
0
0.10984
0
0
0
0
0
0
1
0
false
0
0.060606
0
0.757576
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
c94763dfc2354a332b87d321ac2be37fed878aa1
770
py
Python
src/runner/trackers.py
makspll/YABA
27a46869d12d1ee71487d11f28c4b4314c18ccdf
[ "MIT" ]
null
null
null
src/runner/trackers.py
makspll/YABA
27a46869d12d1ee71487d11f28c4b4314c18ccdf
[ "MIT" ]
null
null
null
src/runner/trackers.py
makspll/YABA
27a46869d12d1ee71487d11f28c4b4314c18ccdf
[ "MIT" ]
null
null
null
from typing import Union import torch.nn as nn from common.yaml_addons import YAMLObjectFiltered class Tracker(YAMLObjectFiltered): """ implements hooks which return something to keep track of (or None if hook is not supported) at each calling point """ yaml_tag = '!Tracker' yaml_fields = ['key'] ...
25.666667
121
0.661039
99
770
4.989899
0.545455
0.072874
0.048583
0.064777
0.097166
0.097166
0
0
0
0
0
0
0.251948
770
29
122
26.551724
0.857639
0.146753
0
0
0
0
0.043411
0
0
0
0
0
0
1
0.2
false
0
0.15
0.05
0.7
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
c94a32ff258877d9076cf73a949a32deebc7dc18
8,735
py
Python
example/fixture/ats.py
marrow/contentment
494ef441acdeb7aefee61ff6295ba202f4a2c79c
[ "MIT" ]
2
2016-08-20T19:51:19.000Z
2018-07-26T13:59:46.000Z
example/fixture/ats.py
marrow/contentment
494ef441acdeb7aefee61ff6295ba202f4a2c79c
[ "MIT" ]
11
2015-11-12T18:22:02.000Z
2022-03-11T23:14:32.000Z
example/fixture/ats.py
marrow/contentment
494ef441acdeb7aefee61ff6295ba202f4a2c79c
[ "MIT" ]
3
2015-11-09T09:15:43.000Z
2016-11-17T01:38:00.000Z
# encoding: utf-8 import logging.config import cinje logging.config.dictConfig({ 'version': 1, 'handlers': { 'console': { 'class': 'logging.StreamHandler', 'formatter': 'json', # 'level': 'debug', 'stream': 'ext://sys.stdout', } }, 'loggers': { 'web': { 'level': 'DE...
38.822222
1,094
0.711734
1,254
8,735
4.917065
0.329346
0.026273
0.02676
0.042815
0.190886
0.129257
0.090172
0.051573
0.036977
0
0
0.012785
0.131425
8,735
224
1,095
38.995536
0.799789
0.032627
0
0.154286
0
0.051429
0.52227
0.04679
0
0
0
0
0
1
0
false
0
0.062857
0
0.062857
0.097143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c952ed54f9e201b230479c8bbc35b0aebeede24d
3,264
py
Python
app/morocco/core/services.py
troydai/Morocco
b975d4f6813734a4c7b8e6c61669976389a27560
[ "MIT" ]
null
null
null
app/morocco/core/services.py
troydai/Morocco
b975d4f6813734a4c7b8e6c61669976389a27560
[ "MIT" ]
9
2017-07-11T08:17:27.000Z
2017-08-01T21:48:00.000Z
app/morocco/core/services.py
troydai/Morocco
b975d4f6813734a4c7b8e6c61669976389a27560
[ "MIT" ]
null
null
null
import requests from collections import namedtuple from typing import List, Union from azure.batch import BatchServiceClient from azure.storage.blob import BlockBlobService from azure.batch.models import CloudPool BatchAccountInfo = namedtuple('BatchAccountInfo', ['account', 'key', 'endpoint']) SourceControlInfo = na...
35.096774
108
0.73652
398
3,264
5.768844
0.261307
0.028746
0.039199
0.054878
0.245209
0.186411
0.158537
0.158537
0.158537
0.158537
0
0.001786
0.142463
3,264
92
109
35.478261
0.818507
0
0
0.1
0
0
0.132659
0.018382
0
0
0
0
0
1
0.183333
false
0
0.133333
0.083333
0.516667
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
c9540f84c1110d29bdc2185f4a6a9f8283245355
484
py
Python
demos/html_test.py
wannaphong/pycfg
ffa67958ed1c3deb73cadb3969ac086336fb1269
[ "MIT" ]
8
2017-12-18T08:51:27.000Z
2020-11-26T02:21:06.000Z
demos/html_test.py
bdusell/pycfg
ffa67958ed1c3deb73cadb3969ac086336fb1269
[ "MIT" ]
1
2020-03-25T11:42:47.000Z
2020-03-29T02:17:34.000Z
demos/html_test.py
wannaphong/pycfg
ffa67958ed1c3deb73cadb3969ac086336fb1269
[ "MIT" ]
6
2017-06-12T16:58:40.000Z
2019-11-27T06:55:07.000Z
'''Print various things as HTML to stdout.''' from cfg.core import * things_to_print = [ Nonterminal('A'), Terminal('a'), Nonterminal('noun'), Nonterminal('Noun-phrase'), Terminal('and'), SubscriptedNonterminal('S', 0), Marker('$'), ProductionRule(Nonterminal('A'), [Nonterminal('A'), T...
23.047619
72
0.61157
53
484
5.509434
0.528302
0.164384
0.089041
0.143836
0
0
0
0
0
0
0
0.0025
0.173554
484
20
73
24.2
0.7275
0
0
0
0
0
0.077626
0
0
0
0
0
0
0
null
null
0
0.066667
null
null
0.133333
0
0
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
c9564b7dce006c054a811e6754614e238f1b91ad
882
py
Python
DemoProgs/listcomp.py
jeremyprice/PythonForDevs
5ec2690aedbaa6243cd4e251e9d31ff696ca0a82
[ "MIT" ]
2
2016-02-09T15:18:20.000Z
2016-11-04T10:25:41.000Z
DemoProgs/listcomp.py
jeremyprice/PythonForDevs
5ec2690aedbaa6243cd4e251e9d31ff696ca0a82
[ "MIT" ]
null
null
null
DemoProgs/listcomp.py
jeremyprice/PythonForDevs
5ec2690aedbaa6243cd4e251e9d31ff696ca0a82
[ "MIT" ]
3
2016-02-09T15:19:18.000Z
2019-03-08T23:32:51.000Z
""" This program provides examples of filter and map. It first provides examples of these tasks performed with ordinary programming techniques. """ # This code creates this list [2, 5, 8, 11, 14, 17] x = range(2,20,3) print 'Original list:', x # This loop selects only the even numbers to be included in a ...
24.5
71
0.664399
151
882
3.880795
0.490066
0.027304
0.040956
0.047782
0.056314
0.040956
0.040956
0.040956
0
0
0
0.029052
0.258503
882
35
72
25.2
0.866972
0.5
0
0.533333
0
0
0.056911
0
0
0
0
0
0
0
null
null
0
0
null
null
0.333333
0
0
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
c95a20949349ae624b59740bfc001132311772e4
316
py
Python
apps/yolo/caffemodel2txt.py
jebtang/ml-suite
33dadbbd1a98acbab353a379bbc7e96547a0c2e3
[ "Apache-2.0" ]
1
2018-11-22T01:59:26.000Z
2018-11-22T01:59:26.000Z
apps/yolo/caffemodel2txt.py
jebtang/ml-suite
33dadbbd1a98acbab353a379bbc7e96547a0c2e3
[ "Apache-2.0" ]
null
null
null
apps/yolo/caffemodel2txt.py
jebtang/ml-suite
33dadbbd1a98acbab353a379bbc7e96547a0c2e3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # // SPDX-License-Identifier: BSD-3-CLAUSE # # (C) Copyright 2018, Xilinx, Inc. # import sys from caffe.proto import caffe_pb2 infile = sys.argv[1] print "Processing Caffemodel %s" % infile model = caffe_pb2.NetParameter() model.ParseFromString(open(infile,"rb").read()) print model
13.73913
47
0.712025
44
316
5.068182
0.772727
0.071749
0
0
0
0
0
0
0
0
0
0.02952
0.142405
316
22
48
14.363636
0.793358
0.297468
0
0
0
0
0.121495
0
0
0
0
0
0
0
null
null
0
0.285714
null
null
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
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
c95f9d4a980afe10631c07fcb02adad0b2218b5d
1,395
py
Python
butter/build/timerfd.py
regnarg/butter
31e8c280e6fc061fd2e146b092843f1983c67194
[ "BSD-3-Clause" ]
null
null
null
butter/build/timerfd.py
regnarg/butter
31e8c280e6fc061fd2e146b092843f1983c67194
[ "BSD-3-Clause" ]
null
null
null
butter/build/timerfd.py
regnarg/butter
31e8c280e6fc061fd2e146b092843f1983c67194
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from cffi import FFI ffi = FFI() ffi.cdef(""" #define TFD_CLOEXEC ... #define TFD_NONBLOCK ... #define TFD_TIMER_ABSTIME ... #define CLOCK_REALTIME ... #define CLOCK_MONOTONIC ... #define CLOCK_PROCESS_CPUTIME_ID ... #define CLOCK_THREAD_CPUTIME_ID ...
25.833333
66
0.619355
157
1,395
5.184713
0.477707
0.162162
0.070025
0.04914
0
0
0
0
0
0
0
0.001942
0.261649
1,395
53
67
26.320755
0.78835
0.014337
0
0.05
0
0
0.903202
0.065502
0
0
0
0
0
1
0
false
0
0.025
0
0.025
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
c96278f1b51ffd9ef42b9f957d468a0d591204db
1,187
py
Python
feature_extract/bresenham_circle.py
chexueji/easy_slam_tutorial
58a9172b09c34249b8f7d055d53256f29a44b8dd
[ "MIT" ]
231
2019-07-12T12:43:43.000Z
2022-03-31T08:26:58.000Z
feature_extract/bresenham_circle.py
wanyingwe/easy_slam_tutorial
58a9172b09c34249b8f7d055d53256f29a44b8dd
[ "MIT" ]
null
null
null
feature_extract/bresenham_circle.py
wanyingwe/easy_slam_tutorial
58a9172b09c34249b8f7d055d53256f29a44b8dd
[ "MIT" ]
68
2019-09-29T06:44:06.000Z
2022-03-11T08:19:36.000Z
# -*- coding: utf-8 -*- """ Created on Sun Jul 21 15:02:36 2019 Bresenham画圆法实现 博客教程地址: https://blog.csdn.net/varyshare/article/details/96724103 @author: 知乎@Ai酱 """ import numpy as np import matplotlib.pyplot as plt img = np.zeros((105,105)) # 创建一个105x105的画布 count = 0 def draw(x,y): """ 绘制点(x,y) 注意:需要把(x...
16.486111
57
0.573715
212
1,187
3.09434
0.45283
0.033537
0.045732
0.060976
0.134146
0.10061
0.073171
0.073171
0.073171
0.042683
0
0.077009
0.245156
1,187
71
58
16.71831
0.655134
0.310868
0
0.068966
0
0
0
0
0
0
0
0
0
1
0.034483
false
0.068966
0.068966
0
0.103448
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
c96588b31a621e12a776fb4d2edfd12dccf4c215
2,297
py
Python
vb2py/PythonCard/components/passwordfield.py
ceprio/xl_vb2py
899fec0301140fd8bd313e8c80b3fa839b3f5ee4
[ "BSD-3-Clause" ]
null
null
null
vb2py/PythonCard/components/passwordfield.py
ceprio/xl_vb2py
899fec0301140fd8bd313e8c80b3fa839b3f5ee4
[ "BSD-3-Clause" ]
null
null
null
vb2py/PythonCard/components/passwordfield.py
ceprio/xl_vb2py
899fec0301140fd8bd313e8c80b3fa839b3f5ee4
[ "BSD-3-Clause" ]
null
null
null
""" __version__ = "$Revision: 1.22 $" __date__ = "$Date: 2004/09/25 03:20:57 $" """ import wx from PythonCard import event, widget import textfield class PasswordFieldSpec(textfield.TextFieldSpec): def __init__(self): textfield.TextFieldSpec.__init__( self ) self._name = 'PasswordField' s...
30.626667
91
0.646931
229
2,297
6.20524
0.475983
0.033779
0.042224
0.050669
0.07741
0.07741
0.07741
0
0
0
0
0.015385
0.264258
2,297
74
92
31.040541
0.825444
0.292556
0
0.052632
0
0
0.018975
0
0
0
0
0
0
1
0.052632
false
0.157895
0.131579
0
0.263158
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
c965ab960724508af343e66fcccdc9e6508dd318
1,792
py
Python
part3.py
sajith2019048/my-second-program
cd78c96704fd47654890900c009c172d77285392
[ "MIT" ]
null
null
null
part3.py
sajith2019048/my-second-program
cd78c96704fd47654890900c009c172d77285392
[ "MIT" ]
null
null
null
part3.py
sajith2019048/my-second-program
cd78c96704fd47654890900c009c172d77285392
[ "MIT" ]
null
null
null
#create veriable........ cr_pass=0##insert veriables defer=0##insert veriables fail=0##insert veriables choice=0#staff choice. count1=0#$$$counting "Progress" count2=0#$$$counting "Trailing" count3=0#$$$counting "Excluded" count4=0#$$$counting "Retriever" total=0#@@@@all counting values total #start th...
33.185185
76
0.522321
198
1,792
4.712121
0.383838
0.025723
0.051447
0.054662
0.07074
0
0
0
0
0
0
0.032421
0.225446
1,792
53
77
33.811321
0.639049
0.148996
0
0.113636
0
0
0.378434
0.115385
0
0
0
0
0
1
0
false
0.090909
0
0
0
0.386364
0
0
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
c9677ea6cbed5dd97800bdf15203e9f7a775e634
1,756
py
Python
Day01-15/pratice_code/HY_Day_02.py
reic/groupLearning-Python-100-Days
91746e6ee3acf2dbf0e9d324f6c6ce3cb91ed131
[ "MIT" ]
4
2020-05-21T06:50:52.000Z
2020-09-07T05:39:24.000Z
Day01-15/pratice_code/HY_Day_02.py
reic/groupLearning-Python-100-Days
91746e6ee3acf2dbf0e9d324f6c6ce3cb91ed131
[ "MIT" ]
1
2020-05-24T07:26:56.000Z
2020-05-25T00:06:02.000Z
Day01-15/pratice_code/HY_Day_02.py
reic/groupLearning-Python-100-Days
91746e6ee3acf2dbf0e9d324f6c6ce3cb91ed131
[ "MIT" ]
1
2020-11-05T13:03:42.000Z
2020-11-05T13:03:42.000Z
''' Item : Python 100Dsays Time : 20200521 變量 ''' # 設變數 a, b 進行計算 a = 123 b = 456 c = "hello world" d = 1 + 5j e = True #-計算 -------------------------------------------- print(a + b) # 579 print(a - b) # -333 print(a * b) # 560888 print(a / b) # 0.269... # 檢索變量的類型的函數 type ----------------------- print(type(a...
17.56
63
0.458428
243
1,756
3.304527
0.440329
0.03736
0.034869
0.054795
0.09589
0.09589
0.09589
0.09589
0.066002
0.066002
0
0.051445
0.191913
1,756
99
64
17.737374
0.514447
0.411162
0
0
0
0
0.150235
0
0
0
0
0
0
1
0
false
0
0
0
0
0.583333
0
0
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
c96a7d502e116cb352e0ddbb1fd2bfb47ce2ae62
3,807
py
Python
API_APPMAP/Myapi/serializers.py
adeus54/IonicTest
fa7f4786eb8e917e64992672fec3b57b6dc553cf
[ "Apache-2.0" ]
null
null
null
API_APPMAP/Myapi/serializers.py
adeus54/IonicTest
fa7f4786eb8e917e64992672fec3b57b6dc553cf
[ "Apache-2.0" ]
7
2021-03-10T10:00:11.000Z
2022-02-26T20:03:44.000Z
API_APPMAP/Myapi/serializers.py
adeus54/IonicTest
fa7f4786eb8e917e64992672fec3b57b6dc553cf
[ "Apache-2.0" ]
1
2019-11-20T07:11:38.000Z
2019-11-20T07:11:38.000Z
from rest_framework import serializers from rest_framework.validators import UniqueTogetherValidator from .models import FichaEmergencia from .models import Estado from .models import Retroalimentacion from .models import Usuario from .models import Institucion from .models import Recurso from .models import Asignacio...
32.818966
110
0.634883
319
3,807
7.495298
0.329154
0.029276
0.046842
0.102468
0.134672
0
0
0
0
0
0
0
0.266877
3,807
116
111
32.818966
0.856682
0.012871
0
0.159091
0
0
0.134984
0
0
0
0
0
0
1
0.022727
false
0.079545
0.125
0
0.397727
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
c975b5fe9e4e0754937d1d6b2fe944ec613e7516
21,443
py
Python
gsr/gsr.py
Green-Resilience/wfRunner
df5cff4e51484ac8b8a0fbdb4ec3ad6d05586817
[ "Apache-2.0" ]
null
null
null
gsr/gsr.py
Green-Resilience/wfRunner
df5cff4e51484ac8b8a0fbdb4ec3ad6d05586817
[ "Apache-2.0" ]
null
null
null
gsr/gsr.py
Green-Resilience/wfRunner
df5cff4e51484ac8b8a0fbdb4ec3ad6d05586817
[ "Apache-2.0" ]
null
null
null
# #!/usr/bin/python # Python System imports import sys, os, getopt import json import subprocess import importlib from os import path # External Module Imports import pandas as pd from rdflib import Graph from rdflib import URIRef, BNode, Literal from rdflib.namespace import RDF from rdflib import Namespace #Instead...
62.334302
409
0.676118
3,065
21,443
4.653181
0.238173
0.008414
0.009115
0.010097
0.244215
0.223461
0.219534
0.208456
0.189314
0.176623
0
0.010844
0.174276
21,443
344
410
62.334302
0.794646
0.5835
0
0.033113
0
0.033113
0.316228
0.158971
0
0
0
0
0
0
null
null
0.006623
0.092715
null
null
0.331126
0
0
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
c976b0222f047d810229bb0b790bb12c2c78bce4
3,467
py
Python
gameowfication/__main__.py
Gato-X/NotYourData
98bd79480795aa6b8ad480aa5c1779b3e8203624
[ "MIT" ]
null
null
null
gameowfication/__main__.py
Gato-X/NotYourData
98bd79480795aa6b8ad480aa5c1779b3e8203624
[ "MIT" ]
null
null
null
gameowfication/__main__.py
Gato-X/NotYourData
98bd79480795aa6b8ad480aa5c1779b3e8203624
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2015 Guillermo Romero Franco (AKA Gato) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use...
29.632479
92
0.654745
484
3,467
4.570248
0.402893
0.05877
0.05425
0.056962
0.152803
0.121609
0.121609
0.121609
0.036166
0
0
0.022472
0.255552
3,467
116
93
29.887931
0.83456
0.061725
0
0.035714
0
0
0.073605
0
0
0
0
0
0
0
null
null
0
0.142857
null
null
0.125
0
0
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
c97b07b67f5213a8abbb2e94a619750d20e7e6ce
835
py
Python
broadway_api/models/assignment_config.py
illinois-cs241/broadway-api
5a2ac7e5542ca4bb7aa40a9f6a2e6afed314e2ee
[ "NCSA" ]
10
2018-11-27T17:07:38.000Z
2020-02-10T19:59:04.000Z
broadway_api/models/assignment_config.py
illinois-cs241/broadway-api
5a2ac7e5542ca4bb7aa40a9f6a2e6afed314e2ee
[ "NCSA" ]
75
2018-10-27T07:08:55.000Z
2019-09-29T01:52:53.000Z
broadway_api/models/assignment_config.py
illinois-cs241/broadway-api
5a2ac7e5542ca4bb7aa40a9f6a2e6afed314e2ee
[ "NCSA" ]
2
2019-07-11T03:10:22.000Z
2019-12-22T01:16:11.000Z
from typing import Any, Dict, List, Optional from broadway_api.models.base import BaseModel class AssignmentConfig(BaseModel): def __init__( self, id_: str, env: Optional[Dict[str, str]] = None, student_pipeline: List[Dict[str, Any]] = [], pre_processing_pipeline: Optional...
30.925926
72
0.622754
98
835
5.071429
0.357143
0.217304
0.066398
0.084507
0.177062
0.177062
0.177062
0.177062
0
0
0
0
0.276647
835
26
73
32.115385
0.822848
0
0
0
0
0
0.002395
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.272727
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
c97c7a4cf3ee38859e050786632018e4010be3f7
3,844
py
Python
ecommerce/orders/models.py
ecanyazgi/Patika-Homework2
146a88da7fa7962649fb208b7f5cd2f5b0dd26dc
[ "MIT" ]
null
null
null
ecommerce/orders/models.py
ecanyazgi/Patika-Homework2
146a88da7fa7962649fb208b7f5cd2f5b0dd26dc
[ "MIT" ]
null
null
null
ecommerce/orders/models.py
ecanyazgi/Patika-Homework2
146a88da7fa7962649fb208b7f5cd2f5b0dd26dc
[ "MIT" ]
null
null
null
from django.db import models from django.utils.translation import gettext_lazy as _ from core.models import BaseAbstractModel from phonenumber_field.modelfields import PhoneNumberField from customers.models import City, Customer, Address from django_iban.fields import IBANField from baskets.models import Basket from pr...
39.628866
107
0.673777
427
3,844
5.75644
0.199063
0.147681
0.087876
0.117168
0.589911
0.565094
0.539463
0.539463
0.497152
0.462978
0
0.015344
0.220083
3,844
96
108
40.041667
0.804536
0.006244
0
0.506849
0
0
0.102672
0
0
0
0
0
0
1
0.068493
false
0
0.109589
0.068493
0.739726
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
a31f588e5d0ce486327d931dedf04552d0436193
1,672
py
Python
d3l/indexing/feature_extraction/values/distribution_transformer.py
mewim/d3l
ce3874b98965be828059c7d9eee7c1ee810a84b2
[ "Apache-2.0" ]
10
2021-05-05T14:43:42.000Z
2022-03-23T17:29:13.000Z
d3l/indexing/feature_extraction/values/distribution_transformer.py
mewim/d3l
ce3874b98965be828059c7d9eee7c1ee810a84b2
[ "Apache-2.0" ]
2
2021-05-09T05:57:40.000Z
2021-05-26T15:38:08.000Z
d3l/indexing/feature_extraction/values/distribution_transformer.py
mewim/d3l
ce3874b98965be828059c7d9eee7c1ee810a84b2
[ "Apache-2.0" ]
3
2021-12-08T03:52:57.000Z
2022-02-28T09:31:34.000Z
from typing import Iterable, Union import numpy as np class DistributionTransformer: def __init__(self, num_bins: int = 300, use_density: bool = True): """ Instantiate a new distribution transformer that extracts distribution information from input values. Parameters ---------- ...
31.54717
126
0.639354
193
1,672
5.352332
0.38342
0.054211
0.053243
0.046467
0.061955
0.061955
0
0
0
0
0
0.003344
0.284689
1,672
52
127
32.153846
0.860368
0.415072
0
0.095238
0
0
0
0
0
0
0
0
0
1
0.190476
false
0
0.095238
0.095238
0.52381
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
a320d53d23d09b36dac3e884664b875d426a80ba
1,004
py
Python
tests/test_wcs2_utils.py
GispoCoding/datacube-ows
4ffe14ccf9f382bff8f4a33fc54729d3e18b670e
[ "Apache-2.0" ]
null
null
null
tests/test_wcs2_utils.py
GispoCoding/datacube-ows
4ffe14ccf9f382bff8f4a33fc54729d3e18b670e
[ "Apache-2.0" ]
null
null
null
tests/test_wcs2_utils.py
GispoCoding/datacube-ows
4ffe14ccf9f382bff8f4a33fc54729d3e18b670e
[ "Apache-2.0" ]
null
null
null
import pytest from unittest.mock import MagicMock from datacube_ows.ogc_exceptions import WCS2Exception from datacube_ows.wcs2_utils import uniform_crs @pytest.fixture def minimal_cfg(): cfg = MagicMock() cfg.published_CRSs = { "dummy": {}, } return cfg def test_uniform_crs_url(minimal_cfg):...
26.421053
77
0.714143
148
1,004
4.594595
0.290541
0.161765
0.102941
0.125
0.488235
0.454412
0.454412
0.194118
0.194118
0.194118
0
0.025271
0.172311
1,004
37
78
27.135135
0.79302
0
0
0.178571
0
0
0.12662
0.023928
0
0
0
0
0.214286
1
0.214286
false
0
0.142857
0
0.392857
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
a32ecedf002fb67c7ef17afdedfb27511b067c0c
1,553
py
Python
Meteo_dataframes.py
simonetthomas/Spark-TP-Meteo
3bf4ac16ef4778a38f2aaed084e5f4a2403d4840
[ "Apache-2.0" ]
null
null
null
Meteo_dataframes.py
simonetthomas/Spark-TP-Meteo
3bf4ac16ef4778a38f2aaed084e5f4a2403d4840
[ "Apache-2.0" ]
null
null
null
Meteo_dataframes.py
simonetthomas/Spark-TP-Meteo
3bf4ac16ef4778a38f2aaed084e5f4a2403d4840
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import sys from pyspark.conf import SparkConf from pyspark import SparkContext from pyspark.sql import SparkSession from pyspark.sql import Row from pyspark.sql import functions as F # Configuration conf = SparkConf().setMaster("local[2]").setAppName("My app") sc = SparkContext(conf=conf) # Le...
36.116279
135
0.743722
239
1,553
4.811715
0.51046
0.047826
0.036522
0.052174
0
0
0
0
0
0
0
0.023324
0.116549
1,553
43
136
36.116279
0.814869
0.303284
0
0
0
0.038462
0.229478
0
0
0
0
0
0
0
null
null
0
0.230769
null
null
0.038462
0
0
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
a336433ad3ebc1d35bc297b2f1ff03ca5893e84b
858
py
Python
txhttputil_manual_test_server.py
Synerty/rapui
38f38c57e6f12fe1e7210b1ea6b7137f1846e083
[ "MIT" ]
null
null
null
txhttputil_manual_test_server.py
Synerty/rapui
38f38c57e6f12fe1e7210b1ea6b7137f1846e083
[ "MIT" ]
null
null
null
txhttputil_manual_test_server.py
Synerty/rapui
38f38c57e6f12fe1e7210b1ea6b7137f1846e083
[ "MIT" ]
null
null
null
""" * Created by Synerty Pty Ltd * * This software is open source, the MIT license applies. * * Website : http://www.synerty.com * Support : support@synerty.com """ import logging import os import sys from twisted.internet import reactor, defer from twisted.web.resource import ErrorPage from txhttputil.site.Fi...
21.45
82
0.726107
99
858
6.181818
0.656566
0.03268
0.058824
0
0
0
0
0
0
0
0
0.004184
0.164336
858
39
83
22
0.847978
0.205128
0
0
0
0
0.142216
0
0
0
0
0
0
1
0.05
false
0
0.35
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
a33e5940841f9a5b63b4bd1b8d5116698534b04e
988
py
Python
tests/test_kafka_consumer.py
dls-controls/kafka_consumer
3cce13623438b3bc83754adc68d7aaae7aebfc63
[ "Apache-2.0" ]
null
null
null
tests/test_kafka_consumer.py
dls-controls/kafka_consumer
3cce13623438b3bc83754adc68d7aaae7aebfc63
[ "Apache-2.0" ]
null
null
null
tests/test_kafka_consumer.py
dls-controls/kafka_consumer
3cce13623438b3bc83754adc68d7aaae7aebfc63
[ "Apache-2.0" ]
null
null
null
import pytest from confluent_kafka.admin import TopicMetadata from kafka_consumer.consume_and_write import KafkaConsumer @pytest.fixture def consumer(): return KafkaConsumer("", "", "") @pytest.fixture(autouse=True) def mock_metadata(mocker): metadata = TopicMetadata() metadata.topic = "test_topic" ...
26.702703
84
0.72166
120
988
5.675
0.366667
0.110132
0.132159
0.168869
0.472834
0.431718
0.340675
0.226138
0.226138
0.226138
0
0.040915
0.158907
988
36
85
27.444444
0.77858
0
0
0.16
0
0
0.13664
0.093117
0
0
0
0
0
1
0.2
false
0
0.12
0.04
0.36
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a342e10001da02674220ad666992ca1f78b55984
642
py
Python
api_mihai/migrations/0006_auto_20180227_2103.py
MihaiVisu/hons-backend
95e9afc32289bc753d689c8465c991d1bcc164e0
[ "MIT" ]
null
null
null
api_mihai/migrations/0006_auto_20180227_2103.py
MihaiVisu/hons-backend
95e9afc32289bc753d689c8465c991d1bcc164e0
[ "MIT" ]
15
2020-01-28T22:20:34.000Z
2022-03-11T23:20:39.000Z
api_mihai/migrations/0006_auto_20180227_2103.py
MihaiVisu/hons-backend
95e9afc32289bc753d689c8465c991d1bcc164e0
[ "MIT" ]
null
null
null
# Generated by Django 2.0.1 on 2018-02-27 21:03 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api_mihai', '0005_auto_20180203_0103'), ] operations = [ migrations.AddField( model_name='collecteddata', name='lux_...
26.75
94
0.613707
71
642
5.394366
0.633803
0.093995
0.120104
0.140992
0.569191
0.569191
0.339426
0.339426
0.339426
0.339426
0
0.07906
0.271028
642
23
95
27.913043
0.739316
0.070093
0
0.470588
1
0
0.122689
0.038655
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
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
a348c0fbb457b121769d464896f4b8352a6de04c
1,516
py
Python
tests/test_image.py
Resi-Coders/cv
51bbb93b978f2bf7884ea93343b93a63ef032627
[ "MIT" ]
2
2020-01-31T11:59:14.000Z
2020-03-15T00:54:00.000Z
tests/test_image.py
Resi-Coders/cv
51bbb93b978f2bf7884ea93343b93a63ef032627
[ "MIT" ]
35
2020-04-08T11:55:08.000Z
2022-03-15T01:17:47.000Z
tests/test_image.py
Resi-Coders/cv
51bbb93b978f2bf7884ea93343b93a63ef032627
[ "MIT" ]
null
null
null
from easycv import Image, Pipeline from easycv.transforms.color import GrayScale, FilterChannels from easycv.transforms.filter import Blur def test_image(): image = Image("tests/images/lenna.png") assert image.array is not None image = Image("https://images.dog.ceo/breeds/komondor/n02105505_2699.jpg") ...
27.563636
78
0.691293
202
1,516
5.118812
0.247525
0.125725
0.116054
0.162476
0.468085
0.438104
0.37234
0.37234
0.10058
0.10058
0
0.020717
0.172164
1,516
54
79
28.074074
0.803187
0
0
0.3
0
0
0.153694
0.116095
0
0
0
0
0.3
1
0.175
false
0
0.075
0
0.25
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
a349573ba282953ff65a0b7d4743492d3ca4632b
3,725
py
Python
mysite/urls.py
TakeshiMizuhiki/Django_Portalsite
34b240c819c778ac0841a5b27621cac47e3d39b4
[ "MIT" ]
null
null
null
mysite/urls.py
TakeshiMizuhiki/Django_Portalsite
34b240c819c778ac0841a5b27621cac47e3d39b4
[ "MIT" ]
5
2020-02-12T00:50:02.000Z
2021-06-10T21:39:56.000Z
mysite/urls.py
TakeshiMizuhiki/Django_Portalsite
34b240c819c778ac0841a5b27621cac47e3d39b4
[ "MIT" ]
null
null
null
from django.urls import path,include from . import views app_name = "mysite" urlpatterns = [ path('', views.index,name="index"), #Schedule #--------------------------------------------------------------------------------------------------------------------------------- path('mycalendar/', views.MyCale...
56.439394
134
0.554362
401
3,725
4.885287
0.119701
0.030628
0.051046
0.038285
0.338948
0.306279
0.273099
0.201123
0.060235
0
0
0
0.083221
3,725
65
135
57.307692
0.573646
0.218523
0
0
0
0
0.367023
0.130735
0
0
0
0.015385
0
1
0
false
0
0.047619
0
0.047619
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
a34aad813ce0c1281c5f0cc9bdd4b57a9323a81b
12,835
py
Python
MEP/MEP_SVM.py
CharlesSanfiorenzo/BioinformaticsRep
4c01506a05242674aa8391d4b07b2a5cb6aa47a8
[ "MIT" ]
5
2016-05-20T00:04:33.000Z
2018-09-17T11:30:54.000Z
MEP/MEP_SVM.py
CharlesSanfiorenzo/BioinformaticsRep
4c01506a05242674aa8391d4b07b2a5cb6aa47a8
[ "MIT" ]
null
null
null
MEP/MEP_SVM.py
CharlesSanfiorenzo/BioinformaticsRep
4c01506a05242674aa8391d4b07b2a5cb6aa47a8
[ "MIT" ]
1
2021-09-20T21:29:42.000Z
2021-09-20T21:29:42.000Z
######################MEP Support Vector Machine.############################## ######If you have any questions, please contact the author of this script####### ######at csanfior@mit.edu ###################################################### import numpy as np import sys, getopt import pandas as pd import os.path impo...
40.109375
223
0.655006
1,771
12,835
4.705816
0.217956
0.038637
0.023038
0.022438
0.421166
0.37149
0.310655
0.305376
0.305376
0.291457
0
0.014888
0.194079
12,835
319
224
40.23511
0.790797
0.13993
0
0.278226
0
0.056452
0.424402
0.037613
0
0
0
0
0
0
null
null
0
0.03629
null
null
0.149194
0
0
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
a37136b43ac9f17b7866719051e3c5c25045dcb5
519
py
Python
Dataset/Leetcode/test/46/602.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/test/46/602.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/test/46/602.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution: def XXX(self, nums: List[int]) -> List[List[int]]: res = [] def back(road, nums): if len(road) == len(nums): res.append(road.copy()) return for j in nums: if j in road: continue ...
25.95
54
0.39499
56
519
3.660714
0.392857
0.117073
0.17561
0
0
0
0
0
0
0
0
0
0.499037
519
19
55
27.315789
0.788462
0
0
0.111111
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
a3728ba02e7f00666381ba25994a2d70b218ec2a
848
py
Python
_todo/data/court_chemin/qqessais.py
Jerome-maker/ensae_teaching_cs
43ea044361ee60c00c85aea354a7b25c21c0fd07
[ "MIT" ]
73
2015-05-12T13:12:11.000Z
2021-12-21T11:44:29.000Z
_todo/data/court_chemin/qqessais.py
Jerome-maker/ensae_teaching_cs
43ea044361ee60c00c85aea354a7b25c21c0fd07
[ "MIT" ]
90
2015-06-23T11:11:35.000Z
2021-03-31T22:09:15.000Z
_todo/data/court_chemin/qqessais.py
Jerome-maker/ensae_teaching_cs
43ea044361ee60c00c85aea354a7b25c21c0fd07
[ "MIT" ]
65
2015-01-13T08:23:55.000Z
2022-02-11T22:42:07.000Z
from load_distance_matrix import * matrice_line = charge_donnees() mat = conversion_en_dictionnaire(matrice_line) villes = [_[0] for _ in mat] unique = {} for v in villes: unique[v] = 0 print len(unique) def misajour(unique, mat): mm = 0 for v in unique: for vv in unique: dxy = mat.g...
22.918919
87
0.504717
118
848
3.533898
0.364407
0.057554
0.028777
0
0
0
0
0
0
0
0
0.030019
0.371462
848
36
88
23.555556
0.752345
0.028302
0
0
0
0
0.012165
0
0
0
0
0
0
0
null
null
0
0.037037
null
null
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
a373bf803458abb7d4b212af92656f56f84283f8
2,816
py
Python
src/orders/models.py
navill/ecommerce2_version2_2
79e465125805ec22bedd067aa2ccc6cf164175b1
[ "MIT" ]
null
null
null
src/orders/models.py
navill/ecommerce2_version2_2
79e465125805ec22bedd067aa2ccc6cf164175b1
[ "MIT" ]
10
2020-02-12T03:15:31.000Z
2022-02-10T11:57:46.000Z
src/orders/models.py
navill/ecommerce2_version2_2
79e465125805ec22bedd067aa2ccc6cf164175b1
[ "MIT" ]
null
null
null
from decimal import Decimal from django.conf import settings from django.db import models # Create your models here. from django.db.models.signals import pre_save from django.urls import reverse from carts.models import Cart class UserCheckout(models.Model): user = models.OneToOneField(settings.AUTH_USER_MODEL,...
32.367816
112
0.687145
354
2,816
5.254237
0.279661
0.056452
0.067742
0.090323
0.290323
0.210753
0.174194
0.174194
0.070968
0.070968
0
0.0129
0.201705
2,816
86
113
32.744186
0.814502
0.033381
0
0.081967
0
0
0.05668
0
0
0
0
0
0
1
0.114754
false
0
0.098361
0.081967
0.622951
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
a3754d965d1f9be571e19398d11485a400e59f5e
1,052
py
Python
python/cgp_generic_utils/maths/_numeric.py
cgpilou/cgp_generic_utils
d51813dd05fdf7ec842b5be959aeecf6cd7a63f0
[ "MIT" ]
3
2021-01-27T16:52:14.000Z
2021-08-25T10:55:11.000Z
python/cgp_generic_utils/maths/_numeric.py
cgpilou/cgp_generic_utils
d51813dd05fdf7ec842b5be959aeecf6cd7a63f0
[ "MIT" ]
null
null
null
python/cgp_generic_utils/maths/_numeric.py
cgpilou/cgp_generic_utils
d51813dd05fdf7ec842b5be959aeecf6cd7a63f0
[ "MIT" ]
1
2021-01-27T16:52:59.000Z
2021-01-27T16:52:59.000Z
""" library of numeric functions """ # imports python import decimal def clamp(value, minimumValue, maximumValue): """clamp the value between the minimum and the maximum value :param value: value to clamp :type value: int or float :param minimumValue: minimum value of the clamp :type minimumVal...
21.916667
75
0.687262
131
1,052
5.519084
0.366412
0.027663
0.055325
0.047026
0.052559
0
0
0
0
0
0
0
0.237643
1,052
47
76
22.382979
0.901496
0.571293
0
0
0
0
0.123626
0
0
0
0
0
0
1
0.285714
false
0
0.142857
0
0.714286
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
a380e6c16ddbf2ae99a9cd929dcb65e5d9227d26
723
py
Python
tests/unit/external/test_splunk_fixture.py
splunk/pytest-splunk-env
63ce423446f54869e4530627ff7463ea3e26c38a
[ "Apache-2.0" ]
1
2021-03-18T23:35:08.000Z
2021-03-18T23:35:08.000Z
tests/unit/external/test_splunk_fixture.py
splunk/pytest-splunk-env
63ce423446f54869e4530627ff7463ea3e26c38a
[ "Apache-2.0" ]
null
null
null
tests/unit/external/test_splunk_fixture.py
splunk/pytest-splunk-env
63ce423446f54869e4530627ff7463ea3e26c38a
[ "Apache-2.0" ]
1
2022-03-27T16:55:33.000Z
2022-03-27T16:55:33.000Z
# SPDX-FileCopyrightText: 2020 Splunk Inc. # # SPDX-License-Identifier: Apache-2.0 import pytest import pathlib import logging def test_splunk_fixture_external(request, caplog,testdir): caplog.set_level(logging.INFO) testdir.makepyfile( """ import pytest def test_splunk_no_params(...
27.807692
72
0.670816
86
723
5.488372
0.581395
0.063559
0.055085
0.110169
0.127119
0
0
0
0
0
0
0.017513
0.210235
723
25
73
28.92
0.809107
0.197787
0
0
0
0
0.334746
0.292373
0
0
0
0
0.071429
1
0.071429
false
0.071429
0.214286
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
a38929436f8b5cfb9aa63498708fd25ce8a806e6
487
py
Python
standalone_game/forms.py
RafayelGardishyan/Memorears
c3de63aca7be487fbe4fd264d0657e290b57fea9
[ "MIT" ]
1
2018-11-03T12:42:12.000Z
2018-11-03T12:42:12.000Z
standalone_game/forms.py
RafayelGardishyan/Memorears
c3de63aca7be487fbe4fd264d0657e290b57fea9
[ "MIT" ]
7
2020-02-11T23:22:34.000Z
2022-03-11T23:34:09.000Z
standalone_game/forms.py
RafayelGardishyan/Memorears
c3de63aca7be487fbe4fd264d0657e290b57fea9
[ "MIT" ]
null
null
null
from django import forms from images.models import Theme class ThemeChoiceField(forms.ModelChoiceField): def label_from_instance(self, obj): return obj.name class ThemeForm(forms.Form): theme = ThemeChoiceField(Theme.objects.all().exclude(name='Covers').exclude(name='SiteAssets'), label='', required=...
37.461538
124
0.696099
56
487
6.017857
0.642857
0.065282
0
0
0
0
0
0
0
0
0
0.004878
0.158111
487
12
125
40.583333
0.817073
0
0
0
0
0
0.088296
0
0
0
0
0
0
1
0.1
false
0
0.2
0.1
0.9
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
a38c606374ea28aa19c5f360830a77e5d6e9a1a2
626
py
Python
98. Validate Binary Search Tree/main.py
Competitive-Programmers-Community/LeetCode
841fdee805b1a626e9f1cd0e12398d25054638af
[ "MIT" ]
2
2019-10-05T09:48:20.000Z
2019-10-05T15:40:01.000Z
98. Validate Binary Search Tree/main.py
Competitive-Programmers-Community/LeetCode
841fdee805b1a626e9f1cd0e12398d25054638af
[ "MIT" ]
null
null
null
98. Validate Binary Search Tree/main.py
Competitive-Programmers-Community/LeetCode
841fdee805b1a626e9f1cd0e12398d25054638af
[ "MIT" ]
3
2020-09-27T05:48:30.000Z
2021-08-13T10:07:08.000Z
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ class Solution { public: vector<int> v; void inOrder(TreeNode* node){ if(node==NULL) return; ...
20.866667
59
0.482428
72
626
4.180556
0.458333
0.07309
0
0
0
0
0
0
0
0
0
0.004988
0.359425
626
29
60
21.586207
0.745636
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
a38f6c02580435a49e77ae54407c1ed58b77223f
3,249
py
Python
igvc_ws/src/igvc_slam/src/igvc_slam_node.py
SoonerRobotics/igvc_software_2020
05509c2f68b6c5a96f325a18ca86c3a0c00e86e5
[ "MIT" ]
3
2019-07-14T20:20:53.000Z
2020-05-07T03:41:25.000Z
igvc_ws/src/igvc_slam/src/igvc_slam_node.py
SoonerRobotics/igvc_software_2020
05509c2f68b6c5a96f325a18ca86c3a0c00e86e5
[ "MIT" ]
13
2019-11-12T02:57:54.000Z
2020-03-17T17:04:22.000Z
igvc_ws/src/igvc_slam/src/igvc_slam_node.py
SoonerRobotics/igvc_software_2020
05509c2f68b6c5a96f325a18ca86c3a0c00e86e5
[ "MIT" ]
2
2020-02-26T01:12:27.000Z
2020-02-26T19:01:53.000Z
#!/usr/bin/env python import copy import numpy as np import rospy from nav_msgs.msg import OccupancyGrid, MapMetaData # Publishers config_pub = rospy.Publisher("/igvc_slam/local_config_space", OccupancyGrid, queue_size=1) # Configuration space map metadata = MapMetaData() lidar_config_data = [0] * (200 * 200) lanes...
34.56383
181
0.645737
455
3,249
4.406593
0.327473
0.071322
0.07182
0.041895
0.201496
0.134165
0.057855
0.057855
0.057855
0.02394
0
0.039966
0.26839
3,249
94
182
34.56383
0.803534
0.258849
0
0.083333
0
0
0.028045
0.012139
0
0
0
0.010638
0
1
0.083333
false
0.041667
0.083333
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
a390b9eb228e3890be1aee05ab8586699a90b715
450
py
Python
tests/test_boringdisabled.py
acpaquette/deepstate
6acf07ad5dd95c9e8b970ca516ab93aa2620ea6e
[ "Apache-2.0" ]
684
2018-02-18T18:04:23.000Z
2022-03-26T06:18:39.000Z
tests/test_boringdisabled.py
acpaquette/deepstate
6acf07ad5dd95c9e8b970ca516ab93aa2620ea6e
[ "Apache-2.0" ]
273
2018-02-18T04:01:36.000Z
2022-02-09T16:07:38.000Z
tests/test_boringdisabled.py
acpaquette/deepstate
6acf07ad5dd95c9e8b970ca516ab93aa2620ea6e
[ "Apache-2.0" ]
77
2018-02-19T00:18:33.000Z
2022-03-16T04:12:09.000Z
from __future__ import print_function import logrun import deepstate_base class BoringDisabledTest(deepstate_base.DeepStateTestCase): def run_deepstate(self, deepstate): (r, output) = logrun.logrun([deepstate, "build/examples/BoringDisabled"], "deepstate.out", 1800) self.assertEqual(r, 0) ...
34.615385
77
0.753333
49
450
6.714286
0.612245
0.079027
0
0
0
0
0
0
0
0
0
0.013089
0.151111
450
12
78
37.5
0.848168
0
0
0
0
0
0.231111
0.122222
0
0
0
0
0.3
1
0.1
false
0.1
0.3
0
0.5
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
a3945dc75b6a5a7b89930b320b7ef7f8c4904b5a
2,228
py
Python
twitter-analysis/excelincr2.py
sinharrajesh/dbtools
dbdbb6febe2610625eab323ba4e4a2470c1a4dc4
[ "Apache-2.0" ]
1
2018-12-07T20:41:45.000Z
2018-12-07T20:41:45.000Z
twitter-analysis/excelincr2.py
sinharrajesh/dbtools
dbdbb6febe2610625eab323ba4e4a2470c1a4dc4
[ "Apache-2.0" ]
null
null
null
twitter-analysis/excelincr2.py
sinharrajesh/dbtools
dbdbb6febe2610625eab323ba4e4a2470c1a4dc4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import json import logging import sys from datetime import datetime import XlsxWriter if __name__ == '__main__': _loggingLevel = logging.DEBUG ## How much trace logger = logging.getLogger(__name__) logging.basicConfig(level=_loggingLevel) c = {} commonFile = sys.argv[2] ...
31.828571
191
0.527379
278
2,228
3.928058
0.26259
0.064103
0.021978
0.025641
0.106227
0.009158
0.009158
0.009158
0.009158
0
0
0.00756
0.346948
2,228
69
192
32.289855
0.742955
0.013914
0
0
0
0.018868
0.185962
0.058797
0
0
0
0
0
0
null
null
0
0.09434
null
null
0.018868
0
0
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
a3a55be369aa9b48c8ba80eb5b81ed6faab4d930
1,838
py
Python
src/predictions.py
besiobu/flats-in-cracow-dash
fc66e878e7f05cabcc4be9fb8bb66112c6b6938e
[ "MIT" ]
null
null
null
src/predictions.py
besiobu/flats-in-cracow-dash
fc66e878e7f05cabcc4be9fb8bb66112c6b6938e
[ "MIT" ]
null
null
null
src/predictions.py
besiobu/flats-in-cracow-dash
fc66e878e7f05cabcc4be9fb8bb66112c6b6938e
[ "MIT" ]
null
null
null
import dash_html_components as html import dash_bootstrap_components as dbc from src.styles import * from src.tooltips import * stats_header_div = html.Div(children=[html.H4(children='Prediction details', style={'float': 'left'}), db...
55.69697
82
0.390098
133
1,838
5.210526
0.240602
0.080808
0.08658
0.092352
0.582973
0.502165
0.502165
0.406926
0.27417
0.135642
0
0.002288
0.524483
1,838
33
83
55.69697
0.790618
0
0
0.357143
0
0
0.083741
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6e591f22e8a463e737633d44bd370dadb44fe504
541
py
Python
preprocessData.py
Vishnu-Nadh/Shampoo_Sales_Forecasting
f5d36e8bea85e679ee8b6f8e055929bf80b3d8de
[ "MIT" ]
null
null
null
preprocessData.py
Vishnu-Nadh/Shampoo_Sales_Forecasting
f5d36e8bea85e679ee8b6f8e055929bf80b3d8de
[ "MIT" ]
null
null
null
preprocessData.py
Vishnu-Nadh/Shampoo_Sales_Forecasting
f5d36e8bea85e679ee8b6f8e055929bf80b3d8de
[ "MIT" ]
null
null
null
class Preprocess_Data: """this class converts the integer date time values to the python datetime string format""" def __init__(self, data_dict): self.data_dict = data_dict def preprocess(self): from_year = self.data_dict["fromYr"] from_month = self.data_dict["fromMth"] to_...
31.823529
95
0.641405
75
541
4.306667
0.373333
0.173375
0.22291
0.099071
0
0
0
0
0
0
0
0
0.245841
541
16
96
33.8125
0.791667
0.157116
0
0
0
0
0.053333
0
0
0
0
0
0
1
0.181818
false
0
0
0
0.363636
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6e5ac6b6abc2871c205c13cd82800ed503c576ad
2,098
py
Python
scripts/gcforest/estimators/__init__.py
oAzv/GCFM
5dc584f0722b90b99614616c9b210d9e086f8ff3
[ "MIT" ]
null
null
null
scripts/gcforest/estimators/__init__.py
oAzv/GCFM
5dc584f0722b90b99614616c9b210d9e086f8ff3
[ "MIT" ]
null
null
null
scripts/gcforest/estimators/__init__.py
oAzv/GCFM
5dc584f0722b90b99614616c9b210d9e086f8ff3
[ "MIT" ]
1
2021-04-19T02:55:02.000Z
2021-04-19T02:55:02.000Z
""" Description: A python 2.7 implementation of gcForest proposed in [1]. A demo implementation of gcForest library as well as some demo client scripts to demostrate how to use the code. The implementation is flexible enough for modifying the model or fit your own datasets. Reference: [1] Z.-H. Zhou and J. Feng. Deep ...
56.702703
247
0.771687
294
2,098
5.37415
0.5
0.057595
0.034177
0.037975
0.117722
0.102532
0.048101
0.048101
0
0
0
0.011885
0.157769
2,098
36
248
58.277778
0.882286
0.499047
0
0.095238
0
0
0.115274
0.021134
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.619048
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
6e63de8c927145515828f70fa207a77407269a26
1,525
py
Python
04_MAXIMUM-SUBARRAY/maxsubarray.py
NiuXWolf/Introduction-to-Algorithms
b26aab38c56619f2d26fb5e0abfce1cd03bace72
[ "MIT" ]
3
2017-04-17T16:36:53.000Z
2020-11-10T00:27:53.000Z
04_MAXIMUM-SUBARRAY/maxsubarray.py
NiuXWolf/Introduction-to-Algorithms
b26aab38c56619f2d26fb5e0abfce1cd03bace72
[ "MIT" ]
null
null
null
04_MAXIMUM-SUBARRAY/maxsubarray.py
NiuXWolf/Introduction-to-Algorithms
b26aab38c56619f2d26fb5e0abfce1cd03bace72
[ "MIT" ]
null
null
null
def findmaxcrossingsubarray(_array,low,mid,high): leftsum=-999999999999 sum=0 maxleft=low for x in xrange(mid,low-1,-1): sum=sum+_array[x-1] if sum>leftsum: leftsum=sum maxleft=x rightsum=-99999999999 sum=0 maxright=mid+1 for x in xrange(mid+1,high+1): sum=sum+_array[x-1] if sum>rightsum: right...
26.293103
76
0.669508
227
1,525
4.396476
0.281938
0.04008
0.033066
0.036072
0.176353
0.07014
0.07014
0.07014
0.032064
0.032064
0
0.050382
0.140984
1,525
57
77
26.754386
0.71145
0.043279
0
0.115385
0
0
0.061813
0.019918
0
0
0
0
0
0
null
null
0
0
null
null
0.211538
0
0
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
6e6e6f16aba5735d28137c270128f51c271d8884
425
py
Python
backend/apps/accounts/migrations/0010_auto_20201125_1609.py
MgArreaza13/wonderhumans
865b65e4afa1ac32976a8c53959a7c58543dbe60
[ "MIT" ]
null
null
null
backend/apps/accounts/migrations/0010_auto_20201125_1609.py
MgArreaza13/wonderhumans
865b65e4afa1ac32976a8c53959a7c58543dbe60
[ "MIT" ]
null
null
null
backend/apps/accounts/migrations/0010_auto_20201125_1609.py
MgArreaza13/wonderhumans
865b65e4afa1ac32976a8c53959a7c58543dbe60
[ "MIT" ]
null
null
null
# Generated by Django 2.0.1 on 2020-11-25 20:39 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0009_homelessprofile_qr_code'), ] operations = [ migrations.AlterField( model_name='homelessprofile', na...
22.368421
73
0.621176
47
425
5.489362
0.787234
0.046512
0
0
0
0
0
0
0
0
0
0.070513
0.265882
425
18
74
23.611111
0.75641
0.105882
0
0
1
0
0.153439
0.074074
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
6e7015fa78f45d15ac92e065cab5f51b571c6a22
391
py
Python
wallet/urls.py
matez0/crypto-wallet-service
e3d88414a4004af8d2fc35c4164630abe17b5c88
[ "MIT" ]
null
null
null
wallet/urls.py
matez0/crypto-wallet-service
e3d88414a4004af8d2fc35c4164630abe17b5c88
[ "MIT" ]
null
null
null
wallet/urls.py
matez0/crypto-wallet-service
e3d88414a4004af8d2fc35c4164630abe17b5c88
[ "MIT" ]
null
null
null
# coding: utf-8 # # Copyright (C) Zoltán Máté 2021. # Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT). from django.urls import path, include from rest_framework.routers import DefaultRouter from .views import WalletViewSet router = DefaultRouter() router.register(r"wallet"...
23
94
0.757033
50
391
5.9
0.74
0.074576
0
0
0
0
0
0
0
0
0
0.014793
0.13555
391
16
95
24.4375
0.857988
0.352941
0
0
0
0
0.024194
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
6e84a7932c50d1ae4ae17de6500bc8dfa057c839
11,458
py
Python
src/auxil/registersar.py
xuanxiaoliqu/CRC4Docker
5ee26f9a590b727693202d8ad3b6460970304bd9
[ "MIT" ]
1
2020-10-26T12:02:08.000Z
2020-10-26T12:02:08.000Z
src/auxil/registersar.py
TonyZPW/CRC4Docker
e52a6e88d4469284a071c0b96d009f6684dbb2ea
[ "MIT" ]
null
null
null
src/auxil/registersar.py
TonyZPW/CRC4Docker
e52a6e88d4469284a071c0b96d009f6684dbb2ea
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Name: # registersar.py # # Purpose: # Perform image-image registration of two polarimetric SAR images # via similarity warping. Assumes 9-band quad pol, 4-band dual pol, # 3-band quad pol diagonal only, 2-band dual pol diagonal only # or one-band single pol SAR images. Alte...
42.913858
89
0.533165
1,271
11,458
4.771046
0.18096
0.065798
0.017315
0.024736
0.540402
0.53661
0.53661
0.530343
0.486148
0.468008
0
0.053758
0.355472
11,458
266
90
43.075188
0.767366
0.112149
0
0.404651
0
0.004651
0.119736
0.016175
0
0
0
0
0
0
null
null
0
0.032558
null
null
0.083721
0
0
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
6e8bccf5a46e12e8c94d429f28e3e2d5562bbb75
5,824
py
Python
mongoengine/base/proxy.py
Rippling/mongoengine
c3b6fa6ffdfe05fcf6f49857c1a89fee0175a05f
[ "MIT" ]
null
null
null
mongoengine/base/proxy.py
Rippling/mongoengine
c3b6fa6ffdfe05fcf6f49857c1a89fee0175a05f
[ "MIT" ]
28
2016-11-30T03:15:18.000Z
2022-02-25T15:57:02.000Z
mongoengine/base/proxy.py
Rippling/mongoengine
c3b6fa6ffdfe05fcf6f49857c1a89fee0175a05f
[ "MIT" ]
1
2021-11-10T05:33:18.000Z
2021-11-10T05:33:18.000Z
from __future__ import absolute_import import weakref import copy import lazy_object_proxy from contextlib2 import contextmanager from collections import defaultdict from mongoengine.read_preference import RPReadPreferenceContext def _get_field(doc, fields): for index in range(0, len(fields)): if doc is ...
37.574194
118
0.672734
765
5,824
4.819608
0.216993
0.036615
0.04882
0.031191
0.176024
0.083537
0.031462
0.031462
0.031462
0.031462
0
0.000458
0.250687
5,824
154
119
37.818182
0.844409
0.208104
0
0.038835
0
0
0.009188
0.005032
0
0
0
0
0
1
0.15534
false
0
0.067961
0.058252
0.524272
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
6e990e1fbb98661f377c810435ee8da32011b0aa
1,636
py
Python
2016_1st/Refer2_Q1.py
IT-SeanWANG/CodeJam
fc13e8f5023272d67488fa2dc95a6a188d624779
[ "Apache-2.0" ]
null
null
null
2016_1st/Refer2_Q1.py
IT-SeanWANG/CodeJam
fc13e8f5023272d67488fa2dc95a6a188d624779
[ "Apache-2.0" ]
null
null
null
2016_1st/Refer2_Q1.py
IT-SeanWANG/CodeJam
fc13e8f5023272d67488fa2dc95a6a188d624779
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python debug = 0 if debug == 1: limit = [8,20] n = 3 p = [[2,10],[10,12],[8,30],[1,5]] #n = 1 # p = [[8,30]] print limit print n print p def isIn(arr): if arr[0] > limit[1] or arr[1] < limit[0] or \ arr[1] == 0: return False else: return True ...
17.782609
62
0.413814
240
1,636
2.779167
0.279167
0.044978
0.041979
0.038981
0.056972
0.056972
0
0
0
0
0
0.087623
0.441932
1,636
91
63
17.978022
0.642935
0.080073
0
0.223881
0
0
0.00668
0
0
0
0
0
0
0
null
null
0
0
null
null
0.149254
0
0
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
6ea178f03e181d263c8623d27da2649078e7df82
1,043
py
Python
implementation/basic/time-problem.py
Jeontaeyun/python-team-notes
ca2d843c6c21972c901176f5fda34c343d5e2650
[ "MIT" ]
null
null
null
implementation/basic/time-problem.py
Jeontaeyun/python-team-notes
ca2d843c6c21972c901176f5fda34c343d5e2650
[ "MIT" ]
null
null
null
implementation/basic/time-problem.py
Jeontaeyun/python-team-notes
ca2d843c6c21972c901176f5fda34c343d5e2650
[ "MIT" ]
null
null
null
# TIme problem # 00:00:00 - n:59:59 # 해당 문제는 완전 탐색 유형(Brute Forcing)으로도 풀 수 있다. # 완전 탐색 알고리즘은 가능한 경우의 수를 모두 검사해보는 탐색 방법이다. # 시간 복잡도로 인해서 일반적으로 알고리즘 문제를 풀 때 확인(탐색)해야 하는 전체 데이터의 개수가 100만개 이하 일 때 완전 탐색을 사용하면 적절하다. # 내가 푼 방법은 완전 탐색보다는 시간 복잡도를 O(N)으로 감소하여 처리하는 알고리즘이다. 이는 일정한 데이터 제한 안에서 휴리스틱을 적용했다. # Heuristic # 01. 시간에 3이 포...
26.075
87
0.669223
204
1,043
3.27451
0.470588
0.202096
0.116766
0.071856
0.33982
0.293413
0.203593
0.128743
0.128743
0.128743
0
0.068069
0.225312
1,043
39
88
26.74359
0.758663
0.372963
0
0.25
0
0
0.004666
0
0
0
0
0
0
1
0
false
0
0
0
0
0.1
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
6ea7bfd15d7be72063e5e025e40ca01fac15ec96
2,004
py
Python
HR-InsertInDoublyLinkedList.py
JaySebagh/code-challenge
9ec8bbcdcc7e34a5d24edf2f9bfa50d3041e0409
[ "MIT" ]
null
null
null
HR-InsertInDoublyLinkedList.py
JaySebagh/code-challenge
9ec8bbcdcc7e34a5d24edf2f9bfa50d3041e0409
[ "MIT" ]
null
null
null
HR-InsertInDoublyLinkedList.py
JaySebagh/code-challenge
9ec8bbcdcc7e34a5d24edf2f9bfa50d3041e0409
[ "MIT" ]
null
null
null
// https://www.hackerrank.com/challenges/insert-a-node-into-a-sorted-doubly-linked-list/problem?h_l=interview&playlist_slugs%5B%5D=interview-preparation-kit&playlist_slugs%5B%5D=linked-lists def sortedInsert(head, data): current = head newNode = DoublyLinkedListNode(data) ​ # check if the data element < h...
37.811321
190
0.58483
275
2,004
4.250909
0.330909
0.05988
0.071856
0.023097
0.118905
0.068435
0
0
0
0
0
0.009886
0.343812
2,004
52
191
38.538462
0.879087
0.457585
0
0.153846
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
6ebc6f06651f999ba76c0c46064789eda43e88c0
973
py
Python
Dictionary.py
shreya-n-kumari/python
2462cf01891770b078815f9925f37842aaec7b91
[ "MIT" ]
null
null
null
Dictionary.py
shreya-n-kumari/python
2462cf01891770b078815f9925f37842aaec7b91
[ "MIT" ]
null
null
null
Dictionary.py
shreya-n-kumari/python
2462cf01891770b078815f9925f37842aaec7b91
[ "MIT" ]
null
null
null
movie = {"title": "padmavati", "director": "Bhansali","year": "2018", "rating": "4.5"} print(movie) print(movie['year']) movie['year'] = 2019 #update data. print(movie['year']) print('-' * 20) for x in movie: print(x) #this print key. print(movie[x]) #this print value at key. print('-' *...
28.617647
107
0.608428
121
973
4.884298
0.495868
0.101523
0.050761
0
0
0
0
0
0
0
0
0.031447
0.182939
973
34
108
28.617647
0.71195
0.1963
0
0.28
0
0
0.298387
0
0
0
0
0
0
1
0
false
0
0
0
0
0.56
0
0
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
6ec12338a33da6f0b0a28df8f1d092f74b510da1
311
py
Python
range_estimator/guess_hierarchy.py
dp-cont/dp-cont
193bea06c1861645f16bd080e45eb0f282e8469a
[ "MIT" ]
3
2021-06-28T20:49:19.000Z
2022-03-24T02:01:24.000Z
range_estimator/guess_hierarchy.py
dp-cont/dp-cont
193bea06c1861645f16bd080e45eb0f282e8469a
[ "MIT" ]
null
null
null
range_estimator/guess_hierarchy.py
dp-cont/dp-cont
193bea06c1861645f16bd080e45eb0f282e8469a
[ "MIT" ]
1
2021-02-03T22:00:50.000Z
2021-02-03T22:00:50.000Z
from range_estimator.smooth_hierarchy import SmoothHierarchy class GuessHierarchy(SmoothHierarchy): def est_precise(self, ell): count = self.est_hierarchy(ell) count = self.consist(count) # naive is "recent" in the paper return self.guess(ell, count[0], 'naive_smoother')
28.272727
60
0.700965
38
311
5.605263
0.684211
0.112676
0.112676
0
0
0
0
0
0
0
0
0.004065
0.209003
311
10
61
31.1
0.861789
0.096463
0
0
0
0
0.050179
0
0
0
0
0
0
1
0.166667
false
0
0.166667
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
6ec4c475e782d8986613889f3e2171422a5189db
1,281
py
Python
jax_md/util.py
berkonat/jax-md
f595218e562d23547503d6546636f504be9a1ebf
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
jax_md/util.py
berkonat/jax-md
f595218e562d23547503d6546636f504be9a1ebf
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
jax_md/util.py
berkonat/jax-md
f595218e562d23547503d6546636f504be9a1ebf
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
27.255319
74
0.74395
203
1,281
4.566502
0.605911
0.064725
0.05178
0.03452
0
0
0
0
0
0
0
0.030332
0.176425
1,281
46
75
27.847826
0.848341
0.551132
0
0
0
0
0
0
0
0
0
0
0
1
0.105263
false
0
0.315789
0
0.473684
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
6ec5ac7dfdf9aee33a1505b1e713f9430958616c
1,580
py
Python
server/config/urls.py
JKHeadley/django-aws-template
3133a8c2184bd85c3c4e7e185e1f5ca07fa31fc6
[ "MIT" ]
null
null
null
server/config/urls.py
JKHeadley/django-aws-template
3133a8c2184bd85c3c4e7e185e1f5ca07fa31fc6
[ "MIT" ]
null
null
null
server/config/urls.py
JKHeadley/django-aws-template
3133a8c2184bd85c3c4e7e185e1f5ca07fa31fc6
[ "MIT" ]
null
null
null
"""server URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.9/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-base...
30.980392
79
0.721519
227
1,580
4.9163
0.356828
0.032258
0.053763
0.021505
0.183692
0.104839
0.067204
0.067204
0
0
0
0.010386
0.146835
1,580
50
80
31.6
0.817507
0.418354
0
0
0
0
0.156044
0.057143
0
0
0
0
0
1
0
false
0
0.318182
0
0.318182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
6ec665c0c46d7ea67e19c791652a6a8dc476a878
884
py
Python
strobogrammatic.py
rksaxena/leetcode_solutions
00c8879f739706653d955c1390e2b3ecf1294b8d
[ "MIT" ]
null
null
null
strobogrammatic.py
rksaxena/leetcode_solutions
00c8879f739706653d955c1390e2b3ecf1294b8d
[ "MIT" ]
null
null
null
strobogrammatic.py
rksaxena/leetcode_solutions
00c8879f739706653d955c1390e2b3ecf1294b8d
[ "MIT" ]
null
null
null
__author__ = Rohit Kamal Saxena __email__ = rohit_kamal2003@yahoo.com """ A strobogrammatic number is a number that looks the same when rotated 180 degrees (looked at upside down)self. Find all strobogrammatic numbers that are of length = n. """ class Solution(object): def findStrobogrammatic(self, n): ...
24.555556
110
0.504525
112
884
3.901786
0.517857
0.102975
0
0
0
0
0
0
0
0
0
0.040564
0.358597
884
35
111
25.257143
0.730159
0
0
0
0
0
0.020124
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
6ec715ac13da8c975613f6d334ac0afda221448a
680
py
Python
cmz/bin/cmz_play.py
inmagik/cmz
e183f0c7203bda5efb1cbeb96f4f06a76aa91231
[ "MIT" ]
1
2016-10-01T18:35:24.000Z
2016-10-01T18:35:24.000Z
cmz/bin/cmz_play.py
inmagik/cmz
e183f0c7203bda5efb1cbeb96f4f06a76aa91231
[ "MIT" ]
8
2016-09-14T21:39:09.000Z
2016-10-25T20:08:31.000Z
cmz/bin/cmz_play.py
inmagik/cmz
e183f0c7203bda5efb1cbeb96f4f06a76aa91231
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys import subprocess if __name__ == "__main__": env = { "CMZ_WEBSITE_PATH" : os.getcwd() } env.update(os.environ) #manage_path = os.path.abspath("manage.py") #os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cmz.settings") print ">>>" * 4 + " WELCOME TO CMZ!...
25.185185
91
0.623529
86
680
4.686047
0.44186
0.099256
0.059553
0.079404
0.332506
0
0
0
0
0
0
0.005566
0.207353
680
26
92
26.153846
0.742115
0.251471
0
0.266667
0
0
0.180556
0
0
0
0
0
0
0
null
null
0
0.2
null
null
0.133333
0
0
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
6ec87190de30468ed28106994e8af92cd09d8126
18,004
py
Python
technogix_iac_keywords/iam.py
technogix-terraform/robotframework
e00b51ae3974bbf25b2c65238a869b3f9d776b9d
[ "MIT" ]
null
null
null
technogix_iac_keywords/iam.py
technogix-terraform/robotframework
e00b51ae3974bbf25b2c65238a869b3f9d776b9d
[ "MIT" ]
null
null
null
technogix_iac_keywords/iam.py
technogix-terraform/robotframework
e00b51ae3974bbf25b2c65238a869b3f9d776b9d
[ "MIT" ]
null
null
null
""" ----------------------------------------------------- # TECHNOGIX # ------------------------------------------------------- # Copyright (c) [2022] Technogix SARL # All rights reserved # ------------------------------------------------------- # Keywords to manage aws users tasks # ----------------------------...
43.383133
101
0.610364
2,176
18,004
4.876379
0.123621
0.027896
0.030346
0.027236
0.464801
0.407784
0.364904
0.320516
0.298275
0.233343
0
0.005228
0.266996
18,004
414
102
43.487923
0.798818
0.179627
0
0.271318
0
0
0.237869
0.021452
0
0
0
0
0
1
0.108527
false
0.124031
0.031008
0
0.139535
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
6ece38cbf3ece6abe7207a85b3051e55f26e970d
7,746
py
Python
utils/support_report.py
time-track-tool/time-track-tool
a1c280f32a7766e460c862633b748fa206256f24
[ "MIT" ]
null
null
null
utils/support_report.py
time-track-tool/time-track-tool
a1c280f32a7766e460c862633b748fa206256f24
[ "MIT" ]
1
2019-07-03T13:32:38.000Z
2019-07-03T13:32:38.000Z
utils/support_report.py
time-track-tool/time-track-tool
a1c280f32a7766e460c862633b748fa206256f24
[ "MIT" ]
1
2019-05-15T16:01:31.000Z
2019-05-15T16:01:31.000Z
#!/usr/bin/python # -*- coding: iso-8859-1 -*- from __future__ import print_function import sys import os from time import time from email.Utils import formatdate from smtplib import SMTP, SMTPRecipientsRefused from optparse import OptionParser from roundup import instance class Support_Report (objec...
34.426667
80
0.522721
910
7,746
4.364835
0.247253
0.02568
0.026435
0.017372
0.087613
0.050856
0.025176
0.025176
0.025176
0.025176
0
0.008804
0.354764
7,746
224
81
34.580357
0.785914
0.026336
0
0.119792
0
0
0.130406
0.003503
0
0
0
0
0
0
null
null
0
0.046875
null
null
0.036458
0
0
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
6ecedef0acd416a939f17a244595c4e33e73388d
5,220
py
Python
etl/lambda_function.py
edgallojr/igti-edc-mod1
d8af5ccb9b405aa810f3c41ed55aee6402db2f2b
[ "MIT" ]
null
null
null
etl/lambda_function.py
edgallojr/igti-edc-mod1
d8af5ccb9b405aa810f3c41ed55aee6402db2f2b
[ "MIT" ]
null
null
null
etl/lambda_function.py
edgallojr/igti-edc-mod1
d8af5ccb9b405aa810f3c41ed55aee6402db2f2b
[ "MIT" ]
null
null
null
import boto3 def handler(event, context): """ Lambda function that starts a job flow in EMR. """ client = boto3.client('emr', region_name='us-east-2') cluster_id = client.run_job_flow( Name='EMR-Ney-IGTI-delta', ServiceRole='EMR_DefaultRole', JobFlow...
43.140496
141
0.370307
319
5,220
5.99373
0.442006
0.029289
0.025105
0.026674
0.361402
0.325837
0.325837
0.312762
0.312762
0.312762
0
0.017214
0.510345
5,220
120
142
43.5
0.730829
0.008812
0
0.281818
0
0.036364
0.354401
0.16266
0
0
0
0
0
1
0.009091
false
0
0.009091
0
0.027273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1