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
f5d40b58d32d09631a74deab03cacd263794a4ed
3,204
py
Python
look-for.py
barnesrobert/find-aws-resource-in-all-accounts
5f02aacca3ce3a28894d7d497c4158ed9b08c238
[ "Apache-2.0" ]
null
null
null
look-for.py
barnesrobert/find-aws-resource-in-all-accounts
5f02aacca3ce3a28894d7d497c4158ed9b08c238
[ "Apache-2.0" ]
null
null
null
look-for.py
barnesrobert/find-aws-resource-in-all-accounts
5f02aacca3ce3a28894d7d497c4158ed9b08c238
[ "Apache-2.0" ]
null
null
null
#-------------------------------------------------------------------------------------------------- # Function: look-for # Purpose: Loops through all AWS accounts and regions within an Organization to find a specific resource # Inputs: # # { # "view_only": "true|false", # "regions": ["us-east-1", ...] # } #...
32.693878
105
0.542447
300
3,204
5.63
0.393333
0.028419
0.052102
0.02013
0.031972
0
0
0
0
0
0
0.002962
0.156991
3,204
97
106
33.030928
0.622362
0.415418
0
0
0
0
0.150759
0.024403
0
0
0
0
0
1
0.043478
false
0
0.108696
0
0.173913
0.065217
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f5d6cff69b0e62527106143d8be0c05d4bcd4fe7
2,972
py
Python
opennem/spiders/aemo/monitoring.py
paulculmsee/opennem
9ebe4ab6d3b97bdeebc352e075bbd5c22a8ddea1
[ "MIT" ]
22
2020-06-30T05:27:21.000Z
2022-02-21T12:13:51.000Z
opennem/spiders/aemo/monitoring.py
paulculmsee/opennem
9ebe4ab6d3b97bdeebc352e075bbd5c22a8ddea1
[ "MIT" ]
71
2020-08-07T13:06:30.000Z
2022-03-15T06:44:49.000Z
opennem/spiders/aemo/monitoring.py
paulculmsee/opennem
9ebe4ab6d3b97bdeebc352e075bbd5c22a8ddea1
[ "MIT" ]
13
2020-06-30T03:28:32.000Z
2021-12-30T08:17:16.000Z
import logging from typing import Any, Dict from pydantic import ValidationError from scrapy import Spider from scrapy.http import Response from opennem.pipelines.aemo.downloads import DownloadMonitorPipeline from opennem.schema.aemo.downloads import AEMOFileDownloadSection from opennem.utils.dates import parse_date ...
37.620253
175
0.657133
330
2,972
5.730303
0.342424
0.040719
0.038075
0.033845
0.081438
0.054997
0.054997
0
0
0
0
0.00045
0.252019
2,972
78
176
38.102564
0.850202
0.013459
0
0
0
0.037037
0.20273
0.020137
0
0
0
0
0
1
0.018519
false
0
0.185185
0
0.296296
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f5d87e21f9ec6f8ae018914ba1e9c0e382bc83dd
319
py
Python
python/13/servo.py
matsujirushi/raspi_parts_kouryaku
35cd6f34d21c5e3160636671175fa8d5aff2d4dc
[ "Apache-2.0" ]
6
2022-03-05T02:36:57.000Z
2022-03-12T12:31:27.000Z
python/13/servo.py
matsujirushi/raspi_parts_kouryaku
35cd6f34d21c5e3160636671175fa8d5aff2d4dc
[ "Apache-2.0" ]
null
null
null
python/13/servo.py
matsujirushi/raspi_parts_kouryaku
35cd6f34d21c5e3160636671175fa8d5aff2d4dc
[ "Apache-2.0" ]
null
null
null
import wiringpi as pi pi.wiringPiSetupGpio() pi.pinMode(18, pi.PWM_OUTPUT) pi.pwmSetMode(pi.PWM_MODE_MS) pi.pwmSetClock(2) pi.pwmSetRange(192000) while True: for i in list(range(-90, 90, 10)) + list(range(90, -90, -10)): pi.pwmWrite(18, int(((i + 90) / 180 * (2.4 - 0.5) + 0.5) / 20 * 192000)) pi.delay(200)
26.583333
76
0.652038
57
319
3.596491
0.596491
0.04878
0.107317
0.126829
0.146341
0
0
0
0
0
0
0.167286
0.15674
319
11
77
29
0.594796
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.1
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f5d9d9ea4f3e787d1de8f24aa36d4dcbede900ec
2,549
py
Python
src/vswarm/object_detection/blob_detector.py
Faust-Wang/vswarm
d18ce643218c18ef1e762f40562104b2a0926ad7
[ "MIT" ]
21
2021-03-03T10:51:46.000Z
2022-03-28T11:00:35.000Z
src/vswarm/object_detection/blob_detector.py
Faust-Wang/vswarm
d18ce643218c18ef1e762f40562104b2a0926ad7
[ "MIT" ]
2
2021-07-21T07:57:16.000Z
2022-03-17T12:41:51.000Z
src/vswarm/object_detection/blob_detector.py
hvourtsis/vswarm
d18ce643218c18ef1e762f40562104b2a0926ad7
[ "MIT" ]
8
2021-02-27T14:29:55.000Z
2022-01-05T19:40:38.000Z
import cv2 as cv from geometry_msgs.msg import Pose2D from vision_msgs.msg import (BoundingBox2D, Detection2D, Detection2DArray, ObjectHypothesisWithPose) THRESHOLD_MAX = 255 THRESHOLD = 240 class BlobDetector: def __init__(self): pass def detect_multi(self, images): ...
32.265823
85
0.59592
298
2,549
4.939597
0.385906
0.005435
0.006114
0.008152
0
0
0
0
0
0
0
0.018779
0.331503
2,549
78
86
32.679487
0.84507
0.165947
0
0.041667
0
0
0
0
0
0
0
0
0
1
0.0625
false
0.020833
0.0625
0
0.1875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f5dedc85895871ad1a7086cfc4fa5d80500516b2
7,557
py
Python
bibref_parser/parser.py
glooney/python-bibref-parser
9ca6b99a917659425fe7b4759f523c78f0180124
[ "MIT" ]
null
null
null
bibref_parser/parser.py
glooney/python-bibref-parser
9ca6b99a917659425fe7b4759f523c78f0180124
[ "MIT" ]
null
null
null
bibref_parser/parser.py
glooney/python-bibref-parser
9ca6b99a917659425fe7b4759f523c78f0180124
[ "MIT" ]
null
null
null
import re class BibRefParser: def __init__(self): self.reset() def reset(self, reference=''): self._ref = reference self.reference = reference self.title = '' self.authors = '' # publication date self.date = '' self.publisher = '' self...
34.040541
93
0.382162
764
7,557
3.736911
0.304974
0.092469
0.075657
0.044834
0.271454
0.225219
0.145359
0.128546
0.117688
0.07986
0
0.021718
0.451634
7,557
221
94
34.19457
0.666988
0.285563
0
0.221239
0
0.00885
0.119366
0.029606
0
0
0
0
0
1
0.044248
false
0.00885
0.00885
0.00885
0.079646
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f5e2b3958e10bba2c1126d9063cd6d9ca99a6bc2
1,217
py
Python
kernellib/utils/visualization.py
jejjohnson/kernellib
eb9f80c1b605c8a6b5e8a324efd4ef07d8f59050
[ "MIT" ]
1
2021-02-04T08:52:04.000Z
2021-02-04T08:52:04.000Z
kernellib/utils/visualization.py
jejjohnson/kernellib
eb9f80c1b605c8a6b5e8a324efd4ef07d8f59050
[ "MIT" ]
null
null
null
kernellib/utils/visualization.py
jejjohnson/kernellib
eb9f80c1b605c8a6b5e8a324efd4ef07d8f59050
[ "MIT" ]
1
2018-04-17T06:42:09.000Z
2018-04-17T06:42:09.000Z
import matplotlib.pyplot as plt def plot_gp(xtest, predictions, std=None, xtrain=None, ytrain=None, title=None, save_name=None): xtest, predictions = xtest.squeeze(), predictions.squeeze() fig, ax = plt.subplots() # Plot the training data if (xtrain is not None) and (ytrain is not None): ...
25.354167
97
0.612161
157
1,217
4.675159
0.44586
0.027248
0.049046
0.054496
0.06267
0
0
0
0
0
0
0.018079
0.272802
1,217
47
98
25.893617
0.811299
0.069844
0
0
0
0
0.053239
0
0
0
0
0
0
1
0.033333
false
0
0.033333
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f5e5cd56b7a8f566083c50626d4a1f1f2165bd63
2,284
py
Python
noxutils.py
sphinx-contrib/zopeext
b749d0023f4fb8b8eea3a8f3216f63397c6272de
[ "BSD-2-Clause" ]
1
2020-03-16T07:20:58.000Z
2020-03-16T07:20:58.000Z
noxutils.py
sphinx-contrib/zopeext
b749d0023f4fb8b8eea3a8f3216f63397c6272de
[ "BSD-2-Clause" ]
3
2021-12-19T09:39:45.000Z
2022-01-06T05:05:03.000Z
noxutils.py
sphinx-contrib/zopeext
b749d0023f4fb8b8eea3a8f3216f63397c6272de
[ "BSD-2-Clause" ]
null
null
null
""" From https://github.com/brechtm/rinohtype/blob/master/noxutil.py https://github.com/cjolowicz/nox-poetry/discussions/289 """ import json from collections.abc import Iterable from pathlib import Path from typing import Optional from urllib.request import urlopen, Request from poetry.core.factory import Factory f...
35.138462
79
0.700088
285
2,284
5.529825
0.459649
0.030457
0.030457
0.036168
0
0
0
0
0
0
0
0.002761
0.207093
2,284
64
80
35.6875
0.867477
0.343695
0
0
0
0
0.08223
0
0
0
0
0
0
1
0.057143
false
0
0.2
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f5e6d7bb0bd30f9540f1c0b749f54516092b6ca3
3,806
py
Python
nodes/centered_mocap_and_tag_rebroadcaster.py
rislab/apriltag_tracker
41c4deb4b5bcd94e5f666f3d4b1f1d141c705582
[ "BSD-3-Clause" ]
null
null
null
nodes/centered_mocap_and_tag_rebroadcaster.py
rislab/apriltag_tracker
41c4deb4b5bcd94e5f666f3d4b1f1d141c705582
[ "BSD-3-Clause" ]
null
null
null
nodes/centered_mocap_and_tag_rebroadcaster.py
rislab/apriltag_tracker
41c4deb4b5bcd94e5f666f3d4b1f1d141c705582
[ "BSD-3-Clause" ]
1
2019-02-18T00:40:20.000Z
2019-02-18T00:40:20.000Z
#!/usr/bin/env python2.7 from __future__ import division import roslib import rospy import tf from nav_msgs.msg import Odometry from nav_msgs.msg import Path from geometry_msgs.msg import PoseStamped import numpy as np import pdb from message_filters import Subscriber, ApproximateTimeSynchronizer class GT_cleaner: ...
37.313725
142
0.59196
517
3,806
4.195358
0.257253
0.033195
0.038728
0.042416
0.187644
0.133241
0.112033
0.026279
0.026279
0.026279
0
0.017126
0.294272
3,806
101
143
37.683168
0.790395
0.061219
0
0.026316
0
0
0.022995
0.006169
0
0
0
0
0
1
0.026316
false
0
0.131579
0
0.171053
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f5e74389c152886253bc86c73ff3f6d23bab1e6e
3,266
py
Python
garage.py
DidymusRex/garage-pi
4f4dcc0251f8cb5f5150ddaff7dac01a64eac948
[ "CC0-1.0" ]
null
null
null
garage.py
DidymusRex/garage-pi
4f4dcc0251f8cb5f5150ddaff7dac01a64eac948
[ "CC0-1.0" ]
null
null
null
garage.py
DidymusRex/garage-pi
4f4dcc0251f8cb5f5150ddaff7dac01a64eac948
[ "CC0-1.0" ]
null
null
null
from datetime import datetime from gpiozero import DistanceSensor from garage_door import garage_door from garage_camera import garage_camera import MQTT_Config import paho.mqtt.client as mqtt from temp_sensor import temp_sensor from time import sleep """ GPIO pin assignments: relays range finder sensor (echo...
26.33871
72
0.580527
387
3,266
4.700258
0.356589
0.035184
0.030786
0.039582
0.06597
0.054975
0.029687
0.029687
0
0
0
0.017203
0.305879
3,266
123
73
26.552846
0.785179
0
0
0.106667
0
0
0.107721
0
0
0
0
0
0
1
0.053333
false
0.026667
0.106667
0
0.16
0.08
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f5e7ef3d480cf9bb53271fcd48200dc95c179ef9
5,887
py
Python
app.py
leemengtaiwan/gist-evernote
90d8573870ded37dc82575ba25968d7a06efe219
[ "MIT" ]
35
2018-01-29T00:50:36.000Z
2021-04-04T13:59:26.000Z
app.py
leemengtaiwan/gist-evernote
90d8573870ded37dc82575ba25968d7a06efe219
[ "MIT" ]
5
2021-02-08T20:18:24.000Z
2022-03-11T23:15:12.000Z
app.py
leemengtaiwan/gist-evernote
90d8573870ded37dc82575ba25968d7a06efe219
[ "MIT" ]
4
2018-02-06T12:13:09.000Z
2019-12-20T09:12:41.000Z
# encoding: utf-8 import os import time from multiprocessing import Pool, cpu_count from selenium import webdriver from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.common.exceptions import T...
31.821622
118
0.674367
815
5,887
4.680982
0.304294
0.016776
0.016514
0.012582
0.065007
0.053997
0.033028
0.033028
0
0
0
0.004837
0.22745
5,887
184
119
31.994565
0.833993
0.319687
0
0.044444
0
0
0.115923
0
0
0
0
0.005435
0
1
0.033333
false
0
0.144444
0
0.211111
0.077778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f5e81680dbe98070292ce77eaa7479aa8b7e1630
326
py
Python
python-leetcode/350.py
MDGSF/interviews
9faa9aacdb0cfbb777d4d3d4d1b14b55ca2c9f76
[ "MIT" ]
12
2020-01-16T08:55:27.000Z
2021-12-02T14:52:39.000Z
python-leetcode/350.py
MDGSF/interviews
9faa9aacdb0cfbb777d4d3d4d1b14b55ca2c9f76
[ "MIT" ]
null
null
null
python-leetcode/350.py
MDGSF/interviews
9faa9aacdb0cfbb777d4d3d4d1b14b55ca2c9f76
[ "MIT" ]
1
2019-12-11T12:00:38.000Z
2019-12-11T12:00:38.000Z
import collections class Solution: def intersect(self, nums1: List[int], nums2: List[int]) -> List[int]: m = collections.Counter(nums1) result = [] for num in nums2: if num in m: result.append(num) if m[num] == 1: del m[num] else: m[num] -= 1 return r...
21.733333
71
0.546012
44
326
4.045455
0.522727
0.117978
0.05618
0
0
0
0
0
0
0
0
0.027523
0.331288
326
14
72
23.285714
0.788991
0
0
0
0
0
0
0
0
0
0
0
0
1
0.076923
false
0
0.076923
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f5edd88e2d458d89d6714005f92ae5a2d900050e
564
py
Python
polls/urls.py
SkyFlame00/webpolls
d137da1aaaa8af78520af7762b8002428842d617
[ "MIT" ]
null
null
null
polls/urls.py
SkyFlame00/webpolls
d137da1aaaa8af78520af7762b8002428842d617
[ "MIT" ]
null
null
null
polls/urls.py
SkyFlame00/webpolls
d137da1aaaa8af78520af7762b8002428842d617
[ "MIT" ]
null
null
null
from django.urls import path from django.conf.urls import url from . import views urlpatterns = [ path('', views.index, name='index'), path('logout/', views.logoutView, name='logout'), path('signup/', views.signup, name='signup'), url(r'^activate/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}...
37.6
132
0.654255
80
564
4.575
0.3625
0.02459
0.040984
0.04918
0.038251
0
0
0
0
0
0
0.028169
0.118794
564
14
133
40.285714
0.70825
0
0
0
0
0.083333
0.33156
0.152482
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f5ee0fc5d74aae0b09b30c0e37603f02a2ea4deb
14,918
py
Python
forceDAQ/gui/plotter.py
gftabor/pyForceDAQ
3eababb41d855b961d228d8366fdd154bb6314ea
[ "MIT" ]
null
null
null
forceDAQ/gui/plotter.py
gftabor/pyForceDAQ
3eababb41d855b961d228d8366fdd154bb6314ea
[ "MIT" ]
null
null
null
forceDAQ/gui/plotter.py
gftabor/pyForceDAQ
3eababb41d855b961d228d8366fdd154bb6314ea
[ "MIT" ]
null
null
null
__version__ = "0.2" import threading import numpy as np import pygame from expyriment.stimuli import Canvas, Rectangle, TextLine from expyriment.stimuli._visual import Visual from expyriment.misc import constants lock_expyriment = threading.Lock() Numpy_array_type = type(np.array([])) class Scaling(object): """...
32.714912
88
0.58292
1,782
14,918
4.61055
0.138047
0.035297
0.029211
0.03408
0.310735
0.256573
0.175998
0.11721
0.093354
0.084104
0
0.013314
0.320284
14,918
455
89
32.786813
0.796943
0.089958
0
0.246875
0
0
0.011981
0
0
0
0
0.002198
0
1
0.159375
false
0.003125
0.01875
0.015625
0.275
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f5f03ea17d8bc72c5ae1602cba0dbeef3ed61e6b
2,905
py
Python
app/modules/payments/resources.py
almlys/sample_paymentsapi
d7ba4d2effeb7654ee06aab6dbb15e22f8d213cc
[ "MIT" ]
null
null
null
app/modules/payments/resources.py
almlys/sample_paymentsapi
d7ba4d2effeb7654ee06aab6dbb15e22f8d213cc
[ "MIT" ]
null
null
null
app/modules/payments/resources.py
almlys/sample_paymentsapi
d7ba4d2effeb7654ee06aab6dbb15e22f8d213cc
[ "MIT" ]
null
null
null
# encoding: utf-8 # pylint: disable=bad-continuation """ RESTful API Payments resources -------------------------- """ import logging from flask_login import current_user from flask_restplus_patched import Resource from flask_restplus._http import HTTPStatus from app.extensions import db from app.extensions.api impo...
27.666667
85
0.640275
304
2,905
6.023026
0.325658
0.054069
0.040961
0.068269
0.22556
0.178045
0.178045
0.178045
0.178045
0.178045
0
0.000456
0.245783
2,905
104
86
27.932692
0.835235
0.154217
0
0.310345
0
0
0.069147
0
0
0
0
0
0
1
0.086207
false
0
0.155172
0
0.362069
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f5f344323771b9cf37b06554ddc6a58b22178367
1,616
py
Python
bin/list-teams.py
kws/python-msgraphy
a5dad8bd834c476974fae151f30865c229e0f798
[ "MIT" ]
1
2022-01-06T08:06:47.000Z
2022-01-06T08:06:47.000Z
bin/list-teams.py
kws/python-msgraphy
a5dad8bd834c476974fae151f30865c229e0f798
[ "MIT" ]
null
null
null
bin/list-teams.py
kws/python-msgraphy
a5dad8bd834c476974fae151f30865c229e0f798
[ "MIT" ]
null
null
null
import msgraphy_util import argparse from msgraphy import GraphApi def main(name, starts_with, exact, channels, folder): api = GraphApi(scopes=["Group.Read.All"]) response = api.team.list_teams(search=name, starts_with=starts_with, exact=exact) for team in response.value: print(f"{team.display_na...
41.435897
125
0.603342
196
1,616
4.826531
0.367347
0.047569
0.089852
0.060254
0.17759
0.078224
0.078224
0.078224
0
0
0
0
0.251856
1,616
38
126
42.526316
0.782465
0
0
0
0
0
0.237624
0
0
0
0
0
0
1
0.03125
false
0
0.09375
0
0.125
0.1875
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f5f35c0e3a98205f6d6bd8dde9d15ab552f7d436
21,372
py
Python
tileEditor.py
haywireSSC/Level-Editor
34fedbe36b90afeb8c0d995fcecbed845ffd6253
[ "CC0-1.0" ]
null
null
null
tileEditor.py
haywireSSC/Level-Editor
34fedbe36b90afeb8c0d995fcecbed845ffd6253
[ "CC0-1.0" ]
null
null
null
tileEditor.py
haywireSSC/Level-Editor
34fedbe36b90afeb8c0d995fcecbed845ffd6253
[ "CC0-1.0" ]
null
null
null
import pygame as p from math import floor from copy import deepcopy import Tkinter, tkFileDialog root = Tkinter.Tk() root.withdraw() p.init() running = True tileWidth = 16 tileHeight = 16 mapWidth = 100 mapHeight = 100 camX = 0 camY = 0 scale = 2 uiScale = 2 hand = 1 layerStack = True file_path = '' file_path = t...
48.794521
221
0.561623
2,660
21,372
4.495113
0.071053
0.048925
0.059798
0.066237
0.666221
0.585849
0.555156
0.538597
0.522121
0.508071
0
0.042743
0.282987
21,372
437
222
48.906178
0.737536
0.002667
0
0.475138
0
0
0.006522
0.001079
0
0
0
0
0
1
0.008287
false
0
0.01105
0
0.019337
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f5f4c4714755e8b9549c5e4949c349f3b753fe90
5,148
py
Python
EditGroupWindow.py
TheYargonaut/lucre
1abd472993df01b443ab4811379dfe52e18cf790
[ "MIT" ]
null
null
null
EditGroupWindow.py
TheYargonaut/lucre
1abd472993df01b443ab4811379dfe52e18cf790
[ "MIT" ]
null
null
null
EditGroupWindow.py
TheYargonaut/lucre
1abd472993df01b443ab4811379dfe52e18cf790
[ "MIT" ]
null
null
null
import tkinter as tk from tkinter.colorchooser import askcolor from tkinter import ttk from Scrollable import Scrollable from ViewLedgerWidget import ViewLedgerWidget from List import ListView from Group import Group # window for editing a group prevLens = [ 10, 25, 100 ] class EditGroupWindow( tk.Toplevel ): de...
43.260504
165
0.633061
635
5,148
5.107087
0.228346
0.058279
0.027752
0.035461
0.263336
0.142769
0.107
0.046562
0
0
0
0.012126
0.247086
5,148
119
166
43.260504
0.824561
0.016123
0
0.078431
0
0
0.026439
0
0
0
0
0
0
1
0.107843
false
0
0.068627
0
0.196078
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f5f839cc33260b873ad589657cb5b87f8a948df8
5,172
py
Python
dialmonkey/nlu/basketball.py
alexandergazo/NPFL123
c52b6a880abf9fe694ce6a2d775c7db1bd765fba
[ "Apache-2.0" ]
null
null
null
dialmonkey/nlu/basketball.py
alexandergazo/NPFL123
c52b6a880abf9fe694ce6a2d775c7db1bd765fba
[ "Apache-2.0" ]
null
null
null
dialmonkey/nlu/basketball.py
alexandergazo/NPFL123
c52b6a880abf9fe694ce6a2d775c7db1bd765fba
[ "Apache-2.0" ]
null
null
null
# Author: Matej Mik from ..component import Component from ..da import DAI import re def add_team_g(string, attributes): if 'tym' in string: if re.search('(muj|moj|meh)[^ ]{0,3} tym', string): attributes.append('team=default') else: team = string.split('tym')[-1].split(' '...
37.478261
97
0.552204
623
5,172
4.521669
0.199037
0.147675
0.031949
0.046858
0.506922
0.396876
0.359957
0.351438
0.243521
0.183884
0
0.013398
0.278422
5,172
138
98
37.478261
0.741426
0.003287
0
0.300813
0
0.00813
0.164726
0.008537
0
0
0
0
0
1
0.073171
false
0
0.02439
0
0.178862
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f5f954fff242094361f8f329de47188d709c63c7
1,447
py
Python
test_SSstache.py
jonschull/Lyte
e9ba2bb1b07c9398b81a6f591898d2474d1a4609
[ "MIT" ]
1
2018-06-07T17:54:27.000Z
2018-06-07T17:54:27.000Z
test_SSstache.py
jonschull/Lyte
e9ba2bb1b07c9398b81a6f591898d2474d1a4609
[ "MIT" ]
1
2018-06-28T05:08:57.000Z
2018-06-28T05:08:57.000Z
test_SSstache.py
jonschull/Lyte
e9ba2bb1b07c9398b81a6f591898d2474d1a4609
[ "MIT" ]
null
null
null
from SSstache import * from plumbum.path.utils import delete from plumbum.cmd import ls, touch, mkdir def test_makeSupportScriptStache(): delete('xyz') assert makeSupportScriptStache(stacheDir='xyz').endswith('xyz') assert ls('xyz').split()==['RSrun.2.7.min.js', 'glow.2.7.min.js', 'ide.css', 'jquery-ui.cu...
27.301887
148
0.608846
152
1,447
5.763158
0.361842
0.031963
0.011416
0.015982
0
0
0
0
0
0
0
0.015399
0.237042
1,447
53
149
27.301887
0.77808
0.032481
0
0.222222
0
0
0.197284
0.050036
0
0
0
0
0.166667
1
0.111111
false
0
0.083333
0
0.194444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f5fc2d7fa7991a4448eb7eb0d16d8da0aa0e1f7e
173
py
Python
graphic/introductions/graficoNormal.py
jonathanccardoso/data-science
d5977e5cd26b6a9ad05ef8940841158911a91586
[ "MIT" ]
null
null
null
graphic/introductions/graficoNormal.py
jonathanccardoso/data-science
d5977e5cd26b6a9ad05ef8940841158911a91586
[ "MIT" ]
null
null
null
graphic/introductions/graficoNormal.py
jonathanccardoso/data-science
d5977e5cd26b6a9ad05ef8940841158911a91586
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt x = [1, 2, 5] y = [2, 3, 7] plt.title("1 grafico com python") # Eixos plt.xlabel("Eixo X") plt.ylabel("Eixo Y") plt.plot(x,y) plt.show()
12.357143
33
0.630058
34
173
3.205882
0.647059
0.073395
0
0
0
0
0
0
0
0
0
0.048951
0.17341
173
13
34
13.307692
0.713287
0.028902
0
0
0
0
0.192771
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f5fce2318bd81cf7ddc8f556365d8f472f7cc726
18,008
py
Python
darknet.py
sugey/pytorch-yolov3
cb6b46fd798debca5d8d066eabb2bd2e6c679953
[ "MIT" ]
3
2019-10-21T16:05:15.000Z
2019-10-25T00:43:17.000Z
darknet.py
sugey/pytorch-yolov3
cb6b46fd798debca5d8d066eabb2bd2e6c679953
[ "MIT" ]
null
null
null
darknet.py
sugey/pytorch-yolov3
cb6b46fd798debca5d8d066eabb2bd2e6c679953
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable import numpy as np from model.layers import * from model.build import * import cv2 from model.utils import * def get_test_input(): img = cv2.imread("images/dog-cycle-car.png") img = cv2.resize(img, (416, 416...
44.907731
108
0.549034
2,285
18,008
4.253829
0.197812
0.01749
0.010185
0.011523
0.254012
0.223251
0.186317
0.169444
0.146193
0.138992
0
0.02043
0.385717
18,008
400
109
45.02
0.858253
0.464127
0
0.23871
0
0
0.020665
0.002583
0
0
0
0
0
1
0.045161
false
0
0.058065
0
0.141935
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb03b18815a588a66491abb92833213166f65e34
2,271
py
Python
superset/shuju_into_mysql.py
LCM1999/superset_secondary_dev
293e3df9d46ef6096d35ee7d523ce5c7898902bc
[ "Apache-2.0" ]
1
2021-06-29T05:36:30.000Z
2021-06-29T05:36:30.000Z
superset/shuju_into_mysql.py
LCM1999/superset_secondary_dev
293e3df9d46ef6096d35ee7d523ce5c7898902bc
[ "Apache-2.0" ]
null
null
null
superset/shuju_into_mysql.py
LCM1999/superset_secondary_dev
293e3df9d46ef6096d35ee7d523ce5c7898902bc
[ "Apache-2.0" ]
null
null
null
import json import pymysql import random import string import time # def get_data(): # with open('E:\\QQ文档\\1420944066\\FileRecv\\Code (2)\\data\\nice looking data\\与gooddata里重复\\20_30(1).json', 'r') as f: # camera_text = json.load(f) # 解析每一行数据 # print(camera_text) # return camera_text # def...
37.85
180
0.607221
321
2,271
4.174455
0.317757
0.059701
0.031343
0.047015
0.26791
0.181343
0.128358
0.128358
0.128358
0.128358
0
0.034884
0.204756
2,271
59
181
38.491525
0.707087
0.455306
0
0.1875
0
0.03125
0.235391
0.050206
0
0
0
0
0
1
0.0625
false
0.03125
0.15625
0
0.25
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb03b84ad235ef7df8266830a1654259db309611
3,290
py
Python
Experiments/create_mean_optimization_sets.py
ariel415el/PerceptualLossGLO-Pytorch
7caa743b719cd95066103a69f3e78a70507de8b5
[ "MIT" ]
null
null
null
Experiments/create_mean_optimization_sets.py
ariel415el/PerceptualLossGLO-Pytorch
7caa743b719cd95066103a69f3e78a70507de8b5
[ "MIT" ]
null
null
null
Experiments/create_mean_optimization_sets.py
ariel415el/PerceptualLossGLO-Pytorch
7caa743b719cd95066103a69f3e78a70507de8b5
[ "MIT" ]
null
null
null
import os import random import cv2 import numpy as np import torch from Experiments.all import load_models, embedd_data, save_batch from GenerativeModels.utils.data_utils import get_dataset device = torch.device("cuda") def sample_latent_neighbors(outputs_dir, models_dir): """Find nearest latent neighbors of d...
39.166667
115
0.643161
512
3,290
3.925781
0.292969
0.047761
0.024876
0.016915
0.277612
0.20597
0.144279
0.144279
0.144279
0.088557
0
0.057396
0.210942
3,290
83
116
39.638554
0.716872
0.117021
0
0
0
0
0.087422
0.057706
0
0
0
0
0
1
0.067797
false
0
0.118644
0
0.20339
0.016949
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb03e3a050ceea7bb9cd25f052a0aa3154068c30
1,830
py
Python
run-length-encoding/run_length_encoding.py
geekmuse/exercism-python
089efc0382147bd48f1e2d68c33ba4cbd58d3dfd
[ "MIT" ]
null
null
null
run-length-encoding/run_length_encoding.py
geekmuse/exercism-python
089efc0382147bd48f1e2d68c33ba4cbd58d3dfd
[ "MIT" ]
null
null
null
run-length-encoding/run_length_encoding.py
geekmuse/exercism-python
089efc0382147bd48f1e2d68c33ba4cbd58d3dfd
[ "MIT" ]
null
null
null
def decode(to_be_decoded): """ Decodes a run-length encoded string. :param to_be_decoded: run-length encoded string :return: run-length decoded string """ to_be_decoded_list = list(to_be_decoded) decoded_str_as_list = list() num_to_print_as_list = list() for c in to_be_decoded_list:...
30
89
0.595082
252
1,830
3.892857
0.146825
0.110092
0.100917
0.114169
0.495413
0.352701
0.32212
0.254842
0.140673
0.140673
0
0.005591
0.315847
1,830
60
90
30.5
0.777955
0.130055
0
0.5
0
0
0.007767
0
0
0
0
0
0
1
0.047619
false
0
0
0
0.095238
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb0791e28d8a88a76f9e3bcff8a0767061c1499e
3,816
py
Python
pytorch/benchmarks/operator_benchmark/pt/conv_test.py
raghavnauhria/whatmt
c20483a437c82936cb0fb8080925e37b9c4bba87
[ "MIT" ]
null
null
null
pytorch/benchmarks/operator_benchmark/pt/conv_test.py
raghavnauhria/whatmt
c20483a437c82936cb0fb8080925e37b9c4bba87
[ "MIT" ]
1
2019-07-22T09:48:46.000Z
2019-07-22T09:48:46.000Z
pytorch/benchmarks/operator_benchmark/pt/conv_test.py
raghavnauhria/whatmt
c20483a437c82936cb0fb8080925e37b9c4bba87
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import operator_benchmark as op_bench import torch import torch.nn as nn """ Microbenchmarks for Conv1d and ConvTranspose1d operators. """ # Configs for conv-1d ops ...
27.453237
85
0.673742
532
3,816
4.588346
0.156015
0.025809
0.03687
0.043015
0.578042
0.504302
0.504302
0.494469
0.399426
0.386727
0
0.040616
0.199948
3,816
138
86
27.652174
0.758926
0.026468
0
0.37931
0
0
0.044937
0
0
0
0
0
0
1
0.137931
false
0
0.08046
0.068966
0.356322
0.011494
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb083967d51239e917a7b39eeaa1d72f732ba81d
1,605
py
Python
local_test/course_search/nyuapi/request.py
NYUSHer/Widgets
b630d01331ca0101778fc7ca44fff7b65412f9ef
[ "MIT" ]
1
2018-05-01T06:04:39.000Z
2018-05-01T06:04:39.000Z
local_test/course_search/nyuapi/request.py
NYUSHer/Widgets
b630d01331ca0101778fc7ca44fff7b65412f9ef
[ "MIT" ]
null
null
null
local_test/course_search/nyuapi/request.py
NYUSHer/Widgets
b630d01331ca0101778fc7ca44fff7b65412f9ef
[ "MIT" ]
null
null
null
import requests as R class reqNYU(): TOKEN = "" BASEURI = "https://sandbox.api.it.nyu.edu/" def __init__(self, token=""): if not token: raise Exception("[Error] Token can not be empty!") self.TOKEN = token self.ping() def ping(self): try: ...
32.1
87
0.544548
180
1,605
4.833333
0.472222
0.041379
0.087356
0.03908
0.305747
0.305747
0.252874
0.252874
0.252874
0.252874
0
0.009407
0.337695
1,605
49
88
32.755102
0.809031
0.109657
0
0.324324
0
0
0.208063
0
0
0
0
0
0
1
0.108108
false
0
0.027027
0
0.27027
0.027027
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb0a67e0dac6431fa8a950d7b99db76a91a069c7
11,877
py
Python
cnnlstm/preprocessing.py
mingjiewong/Kaggle-M5-Forecasting-Accuracy-2020
6467a08640990f2d07e517adf7bacd566fb442c4
[ "MIT" ]
null
null
null
cnnlstm/preprocessing.py
mingjiewong/Kaggle-M5-Forecasting-Accuracy-2020
6467a08640990f2d07e517adf7bacd566fb442c4
[ "MIT" ]
null
null
null
cnnlstm/preprocessing.py
mingjiewong/Kaggle-M5-Forecasting-Accuracy-2020
6467a08640990f2d07e517adf7bacd566fb442c4
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import os from sklearn.preprocessing import MinMaxScaler from data_processing.helpers import Config class Load: def __init__(self,train_sales='',calendar=''): """ Read CSV files for daily sales and calendar input data respectively. Args: tra...
46.214008
126
0.667088
1,519
11,877
5.044108
0.127716
0.058731
0.096711
0.117071
0.543461
0.513573
0.445837
0.396372
0.359175
0.23858
0
0.027834
0.255873
11,877
256
127
46.394531
0.839104
0.494233
0
0
0
0
0.023333
0
0
0
0
0
0
1
0.088889
false
0
0.055556
0
0.233333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb0ac6a6f7fdd1cf17fa0a0d491c03fde96fdfc1
331
py
Python
Physics250-ME3738/timeIntervalBlinks.py
illusion173/Physics250
69f2ffdb8af013e8b0739779861c1455b579ddaf
[ "MIT" ]
null
null
null
Physics250-ME3738/timeIntervalBlinks.py
illusion173/Physics250
69f2ffdb8af013e8b0739779861c1455b579ddaf
[ "MIT" ]
null
null
null
Physics250-ME3738/timeIntervalBlinks.py
illusion173/Physics250
69f2ffdb8af013e8b0739779861c1455b579ddaf
[ "MIT" ]
null
null
null
import math speedofLight = 2.9979*pow(10,8) def timeIntervalBlinks(): time = float(input('Input Time (sec): ')) speed = float(input('Speed: ')) speed = speed * pow(10,8) gamma = math.sqrt(1/(1-pow((speed/speedofLight),2))) answer = gamma * time print(answer) timeInterv...
18.388889
56
0.592145
40
331
4.9
0.5
0.132653
0.061224
0
0
0
0
0
0
0
0
0.056452
0.250755
331
17
57
19.470588
0.733871
0
0
0
0
0
0.075529
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.2
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb10c1e56faa83018c15d8d04331071eb6bc524c
786
py
Python
PythonTest/Aula18A.py
MatthewsTomts/Python_Class
f326d521d62c45a4fcb429d2a22cf2ab958492cb
[ "MIT" ]
null
null
null
PythonTest/Aula18A.py
MatthewsTomts/Python_Class
f326d521d62c45a4fcb429d2a22cf2ab958492cb
[ "MIT" ]
null
null
null
PythonTest/Aula18A.py
MatthewsTomts/Python_Class
f326d521d62c45a4fcb429d2a22cf2ab958492cb
[ "MIT" ]
null
null
null
teste = list() teste.append('Matheus') teste.append(17) galera = [teste[:]] # Cria uma copia de teste dentro de galera teste[0] = 'Oliver' teste[1] = 22 galera.append(teste) # Cria um vínculo entre teste e galera print(galera) pessoas = [['Harvey', 23], ['Madeleine', 19], ['Roger', 250], ['Mark', 20]] print(pessoas...
27.103448
84
0.624682
129
786
3.806202
0.503876
0.01222
0.01833
0.032587
0
0
0
0
0
0
0
0.050235
0.189567
786
28
85
28.071429
0.720565
0.231552
0
0
0
0
0.220736
0
0
0
0
0
0
1
0
false
0
0
0
0
0.227273
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb17d457b2e3da5e9c6ce129bda974e0910d6212
1,967
py
Python
tencentcloud/cat/v20180409/errorcodes.py
HS-Gray/tencentcloud-sdk-python
b28b19c4beebc9f361aa3221afa36ad1ee047ccc
[ "Apache-2.0" ]
37
2017-10-12T01:50:42.000Z
2022-02-24T02:44:45.000Z
tencentcloud/cat/v20180409/errorcodes.py
HS-Gray/tencentcloud-sdk-python
b28b19c4beebc9f361aa3221afa36ad1ee047ccc
[ "Apache-2.0" ]
null
null
null
tencentcloud/cat/v20180409/errorcodes.py
HS-Gray/tencentcloud-sdk-python
b28b19c4beebc9f361aa3221afa36ad1ee047ccc
[ "Apache-2.0" ]
12
2018-07-31T10:04:56.000Z
2022-02-07T00:08:06.000Z
# -*- coding: utf8 -*- # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses...
26.945205
82
0.804779
182
1,967
8.631868
0.598901
0.038192
0.01655
0.020369
0
0
0
0
0
0
0
0.008616
0.114896
1,967
72
83
27.319444
0.893739
0.394509
0
0
0
0
0.427831
0.348315
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb1aab5b6a3a998c629d8d9ed3c85dc9531c3cbf
6,248
py
Python
py2.5/processing/reduction.py
geofft/multiprocess
d998ffea9e82d17662b12b94a236182e7fde46d5
[ "BSD-3-Clause" ]
356
2015-06-21T21:05:10.000Z
2022-03-30T11:57:08.000Z
py2.5/processing/reduction.py
geofft/multiprocess
d998ffea9e82d17662b12b94a236182e7fde46d5
[ "BSD-3-Clause" ]
103
2015-06-22T01:44:14.000Z
2022-03-01T03:44:25.000Z
py2.5/processing/reduction.py
geofft/multiprocess
d998ffea9e82d17662b12b94a236182e7fde46d5
[ "BSD-3-Clause" ]
72
2015-09-02T14:10:24.000Z
2022-03-25T06:49:43.000Z
# # Module to support the pickling of different types of connection # objects and file objects so that they can be transferred between # different processes. # # processing/reduction.py # # Copyright (c) 2006-2008, R Oudkerk --- see COPYING.txt # __all__ = [] import os import sys import socket import t...
28.52968
80
0.639725
623
6,248
6.242376
0.303371
0.020571
0.026999
0.013114
0.15531
0.077141
0
0
0
0
0
0.008177
0.275768
6,248
218
81
28.66055
0.851271
0.091549
0
0.171233
0
0
0.029119
0
0
0
0
0
0
1
0.130137
false
0
0.10274
0.047945
0.349315
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb1afd11fd2f6d89e9d5a3d5e84072981f86d593
570
py
Python
data-structures/print-the-elements-of-a-linked-list-in-reverse.py
gajubadge11/HackerRank-1
7b136ccaa1ed47ae737467ace6b494c720ccb942
[ "MIT" ]
340
2018-06-17T19:45:56.000Z
2022-03-22T02:26:15.000Z
data-structures/print-the-elements-of-a-linked-list-in-reverse.py
gajubadge11/HackerRank-1
7b136ccaa1ed47ae737467ace6b494c720ccb942
[ "MIT" ]
3
2021-02-02T17:17:29.000Z
2021-05-18T10:06:04.000Z
data-structures/print-the-elements-of-a-linked-list-in-reverse.py
gajubadge11/HackerRank-1
7b136ccaa1ed47ae737467ace6b494c720ccb942
[ "MIT" ]
229
2019-04-20T08:28:49.000Z
2022-03-31T04:23:52.000Z
""" Print elements of a linked list in reverse order as standard output head could be None as well for empty list Node is defined as class Node(object): def __init__(self, data=None, next_node=None): self.data = data self.next = next_node """ def ReversePrint(head): if head is None: ...
16.285714
68
0.522807
72
570
4.055556
0.569444
0.054795
0
0
0
0
0
0
0
0
0
0.002841
0.382456
570
34
69
16.764706
0.826705
0.438596
0
0
0
0
0.006667
0
0
0
0
0
0
1
0.1
false
0
0
0
0.2
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb1bfe5091ca2f0f84f38e9d762348c024630c00
9,088
py
Python
cfd/cfd_rel_perms.py
lanetszb/vofpnm
520544db894fb13e44a86e989bd17b4690e996d3
[ "MIT" ]
null
null
null
cfd/cfd_rel_perms.py
lanetszb/vofpnm
520544db894fb13e44a86e989bd17b4690e996d3
[ "MIT" ]
null
null
null
cfd/cfd_rel_perms.py
lanetszb/vofpnm
520544db894fb13e44a86e989bd17b4690e996d3
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2020 Aleksandr Zhuravlyov and Zakhar Lanets # # 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...
36.943089
125
0.725682
1,396
9,088
4.378224
0.197708
0.04123
0.036649
0.040412
0.450589
0.376309
0.298429
0.229385
0.172611
0.148069
0
0.00744
0.15702
9,088
245
126
37.093878
0.790367
0.145467
0
0.135294
0
0
0.052749
0.00328
0
0
0
0
0
1
0
false
0
0.082353
0
0.082353
0.041176
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb1e990c875a84c89463cedf50afc813143a16f2
1,330
py
Python
GUI/WifiMonitor/UDP/Utils/gpio_mapping.py
gchinellato/XD
f6c0134030c5e229a7b9c2621311c5204aed77af
[ "MIT" ]
1
2019-10-15T20:31:39.000Z
2019-10-15T20:31:39.000Z
GUI/WifiMonitor/Utils/gpio_mapping.py
gchinellato/XD
f6c0134030c5e229a7b9c2621311c5204aed77af
[ "MIT" ]
null
null
null
GUI/WifiMonitor/Utils/gpio_mapping.py
gchinellato/XD
f6c0134030c5e229a7b9c2621311c5204aed77af
[ "MIT" ]
null
null
null
#!/usr/bin/python """ ************************************************* * @Project: Self Balance * @Description: GPIO Mapping * @Owner: Guilherme Chinellato * @Email: guilhermechinellato@gmail.com *************************************************...
18.472222
69
0.566165
198
1,330
3.671717
0.484848
0.044017
0.066025
0.049519
0
0
0
0
0
0
0
0.105584
0.259399
1,330
71
70
18.732394
0.632487
0.315038
0
0
0
0
0.02439
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb212bcaed139e5c9db595186ee8e16677921512
8,088
py
Python
mmdet/utils/memory.py
Youth-Got/mmdetection
2e0a02599804da6e07650dde37b9df538e15d646
[ "Apache-2.0" ]
1
2021-12-10T15:08:22.000Z
2021-12-10T15:08:22.000Z
mmdet/utils/memory.py
q3394101/mmdetection
ca11860f4f3c3ca2ce8340e2686eeaec05b29111
[ "Apache-2.0" ]
null
null
null
mmdet/utils/memory.py
q3394101/mmdetection
ca11860f4f3c3ca2ce8340e2686eeaec05b29111
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. import warnings from collections import abc from contextlib import contextmanager from functools import wraps import torch from mmdet.utils import get_root_logger def cast_tensor_type(inputs, src_type=None, dst_type=None): """Recursively convert Tensor in inputs f...
37.794393
103
0.574679
994
8,088
4.554326
0.246479
0.027833
0.030926
0.023857
0.249172
0.231942
0.212503
0.154628
0.131213
0.098962
0
0.00706
0.352003
8,088
213
104
37.971831
0.856707
0.391568
0
0.277228
0
0
0.114811
0
0
0
0
0.004695
0.009901
1
0.049505
false
0.009901
0.059406
0
0.257426
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb213849d6f5cbf00a64871c3293e7fb777f9ff4
2,278
py
Python
game.py
YeonjuKim05/Kim_Y_RPS_Fall2020
031bfeec09f663686ae2c9418185ab5070af3b7a
[ "MIT" ]
null
null
null
game.py
YeonjuKim05/Kim_Y_RPS_Fall2020
031bfeec09f663686ae2c9418185ab5070af3b7a
[ "MIT" ]
1
2020-11-28T16:29:28.000Z
2020-11-28T16:29:28.000Z
game.py
YeonjuKim05/Kim_Y_RPS_Fall2020
031bfeec09f663686ae2c9418185ab5070af3b7a
[ "MIT" ]
null
null
null
# import packages to extend python (just like we extend sublime, or Atom, or VSCode) from random import randint from gameComponents import gameVars, chooseWinner while gameVars.player is False: print("=======================*/ RPS CONTEST /*=======================") print("Computer Lives: ", gameVars.ai_lives, "/"...
26.183908
113
0.6295
299
2,278
4.749164
0.347826
0.147887
0.06338
0.042254
0.230282
0.15
0.15
0.15
0.15
0.15
0
0.005328
0.176032
2,278
86
114
26.488372
0.751199
0.307726
0
0.333333
0
0
0.248721
0.061381
0
0
0
0
0
1
0
false
0
0.044444
0
0.044444
0.377778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb21b87b5bc6c350c9c4db10e19ca1430b1bd7c2
1,227
py
Python
dataset/utils.py
tarun-bisht/mlpipe
0cd1f0b57a7788222228dc08f0c8a21ed51a7cc1
[ "MIT" ]
null
null
null
dataset/utils.py
tarun-bisht/mlpipe
0cd1f0b57a7788222228dc08f0c8a21ed51a7cc1
[ "MIT" ]
null
null
null
dataset/utils.py
tarun-bisht/mlpipe
0cd1f0b57a7788222228dc08f0c8a21ed51a7cc1
[ "MIT" ]
null
null
null
import pandas as pd import os def df_from_image_dirs(directory, image_format="jpg", relative_path=False, verbose=0): dataframe_dict = { "images":[], "classes":[] } num_dirs = 0 num_images = 0 images_per_classes = [] classes = [] for dirs in os.listdir(directory): ...
36.088235
109
0.597392
156
1,227
4.49359
0.301282
0.148359
0.135521
0.019971
0.108417
0.108417
0
0
0
0
0
0.00565
0.278729
1,227
34
110
36.088235
0.786441
0
0
0
0
0
0.102606
0.017101
0
0
0
0
0
1
0.03125
false
0
0.0625
0
0.125
0.09375
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb2259b4263e5697783bf6849627924369449a0f
1,222
py
Python
THreading.py
asd86826/OpticalFlow_Test
f4d621994871b4913b95a18f59cb171526d786ae
[ "MIT" ]
null
null
null
THreading.py
asd86826/OpticalFlow_Test
f4d621994871b4913b95a18f59cb171526d786ae
[ "MIT" ]
null
null
null
THreading.py
asd86826/OpticalFlow_Test
f4d621994871b4913b95a18f59cb171526d786ae
[ "MIT" ]
null
null
null
import time from threading import Timer i = 0 class RepeatedTimer(object): def __init__(self, interval, function, *args, **kwargs): self._timer = None self.interval = interval self.function = function self.args = args self.kwargs = kwargs ...
24.44
85
0.531097
143
1,222
4.377622
0.405594
0.047923
0.103834
0.086262
0.086262
0.086262
0
0
0
0
0
0.007722
0.364157
1,222
49
86
24.938776
0.797941
0.06383
0
0.128205
0
0
0.025618
0
0
0
0
0
0
1
0.128205
false
0
0.051282
0
0.205128
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
0
0
0
0
0
0
0
0
1
0
eb266bf3b2f0517ce3d9501b3cfc011f8ded2d3e
3,817
bzl
Python
defs.bzl
attilaolah/bazel-tools
823216936ee93ab6884c6111a8e60e9a836fa7cc
[ "Apache-2.0" ]
2
2021-09-02T18:59:09.000Z
2021-09-20T23:13:17.000Z
defs.bzl
attilaolah/bazel-tools
823216936ee93ab6884c6111a8e60e9a836fa7cc
[ "Apache-2.0" ]
null
null
null
defs.bzl
attilaolah/bazel-tools
823216936ee93ab6884c6111a8e60e9a836fa7cc
[ "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, ...
31.545455
79
0.556196
454
3,817
4.601322
0.389868
0.028722
0.028722
0.015318
0.189564
0.189564
0.171374
0.171374
0.138822
0.109143
0
0.003079
0.319361
3,817
120
80
31.808333
0.801001
0.183128
0
0.32967
0
0
0.189939
0.009029
0
0
0
0
0
1
0.021978
false
0.032967
0
0
0.043956
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb289039ceb1e6cb9ff0bbb176aa1f763781e163
692
py
Python
tests/test_instrumentation/test_base.py
cloudchacho/hedwig-python
1e4ca5472fe661ffd9d3cedd10a9ddc2daa0926b
[ "Apache-2.0" ]
null
null
null
tests/test_instrumentation/test_base.py
cloudchacho/hedwig-python
1e4ca5472fe661ffd9d3cedd10a9ddc2daa0926b
[ "Apache-2.0" ]
3
2021-06-25T20:52:50.000Z
2021-11-30T16:22:30.000Z
tests/test_instrumentation/test_base.py
cloudchacho/hedwig-python
1e4ca5472fe661ffd9d3cedd10a9ddc2daa0926b
[ "Apache-2.0" ]
null
null
null
from unittest import mock import pytest get_tracer = pytest.importorskip('opentelemetry.trace.get_tracer') @mock.patch('hedwig.backends.base.Message.exec_callback', autospec=True) def test_message_handler_updates_span_name(mock_exec_callback, message, consumer_backend): provider_metadata = mock.Mock() trace...
40.705882
99
0.789017
90
692
5.577778
0.433333
0.079681
0.10757
0.149402
0.213147
0.213147
0.14741
0
0
0
0
0
0.124277
692
16
100
43.25
0.828383
0
0
0
0
0
0.104046
0.104046
0
0
0
0
0.25
1
0.083333
false
0
0.25
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb2a6dfadfc03cbe4b08fd33a47e0c0b3e370224
1,184
py
Python
Leetcode/SwapNodesInPairs.py
tswsxk/CodeBook
01b976418d64f5f94257ae0e2b36751afb93c105
[ "MIT" ]
null
null
null
Leetcode/SwapNodesInPairs.py
tswsxk/CodeBook
01b976418d64f5f94257ae0e2b36751afb93c105
[ "MIT" ]
1
2019-09-24T22:04:03.000Z
2019-09-24T22:04:03.000Z
Leetcode/SwapNodesInPairs.py
tswsxk/CodeBook
01b976418d64f5f94257ae0e2b36751afb93c105
[ "MIT" ]
null
null
null
# Definition for singly-linked list. class ListNode(object): def __init__(self, x): self.val = x self.next = None class Solution(object): def swapPairs(self, head): """ :type head: ListNode :rtype: ListNode """ nodeRec = [] check = head pr...
24.163265
44
0.47973
131
1,184
4.244275
0.351145
0.032374
0.05036
0
0
0
0
0
0
0
0
0.023121
0.415541
1,184
49
45
24.163265
0.780347
0.061655
0
0.243902
0
0
0.007407
0
0
0
0
0
0
1
0.073171
false
0
0
0
0.170732
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb2c8b8b8d777e9a0438515ac0aea6cd01f5301b
2,696
py
Python
chess-board-0.2.0/chessboard/pieces.py
fshelobolin/irohbot
4ad4c554ecff1e1005fbecf26ee097c387bf357d
[ "MIT" ]
null
null
null
chess-board-0.2.0/chessboard/pieces.py
fshelobolin/irohbot
4ad4c554ecff1e1005fbecf26ee097c387bf357d
[ "MIT" ]
null
null
null
chess-board-0.2.0/chessboard/pieces.py
fshelobolin/irohbot
4ad4c554ecff1e1005fbecf26ee097c387bf357d
[ "MIT" ]
null
null
null
""" Ahira Justice, ADEFOKUN justiceahira@gmail.com """ import os import pygame BASE_DIR = os.path.dirname(os.path.abspath(__file__)) IMAGE_DIR = os.path.join(BASE_DIR, "images") BLACK = "BLACK" WHITE = "WHITE" BISHOP = "BISHOP" KING = "KING" KNGHT = "KNIGHT" PAWN = "PAWN" QUEEN = "QUEEN" ROOK = "ROOK" c...
29.304348
66
0.582715
340
2,696
4.552941
0.202941
0.05814
0.083979
0.131783
0.501292
0.501292
0.482558
0.255814
0
0
0
0
0.28635
2,696
91
67
29.626374
0.804574
0.017062
0
0.164179
0
0
0.044419
0
0
0
0
0
0
1
0.059701
false
0
0.029851
0
0.283582
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb361ceecffd166eeb0b6b3ee13b8be48e6f4d86
819
py
Python
setup.py
ktvng/cue
5f31c8898f3bc53a18956220f609489cd2bbe590
[ "MIT" ]
null
null
null
setup.py
ktvng/cue
5f31c8898f3bc53a18956220f609489cd2bbe590
[ "MIT" ]
null
null
null
setup.py
ktvng/cue
5f31c8898f3bc53a18956220f609489cd2bbe590
[ "MIT" ]
null
null
null
"""Cue: Script Orchestration for Data Analysis Cue lets your package your data analysis into simple actions which can be connected into a dynamic data analysis pipeline with coverage over even complex data sets. """ DOCLINES = (__doc__ or '').split('\n') from setuptools import find_packages, setup setup(...
26.419355
85
0.616606
101
819
4.871287
0.70297
0.073171
0
0
0
0
0
0
0
0
0
0.014423
0.238095
819
30
86
27.3
0.774038
0.25641
0
0
0
0
0.211538
0
0
0
0
0
0
1
0
false
0
0.045455
0
0.045455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb3657629d59fdcbd7874c2822fc0707cfc70c45
1,689
py
Python
tests/getz.py
deflax/steinvord
709326ff219159a78f644c0adf3c5b224ed42804
[ "Zlib" ]
1
2021-06-02T19:51:26.000Z
2021-06-02T19:51:26.000Z
tests/getz.py
deflax/steinvord
709326ff219159a78f644c0adf3c5b224ed42804
[ "Zlib" ]
null
null
null
tests/getz.py
deflax/steinvord
709326ff219159a78f644c0adf3c5b224ed42804
[ "Zlib" ]
null
null
null
#!/usr/bin/python3.2 # # Zabbix API Python usage example # Christoph Haas <email@christoph-haas.de> # username='' password='1' hostgroup='' item_name='system.cpu.load[,avg1]' zabbix_url='' import zabbix_api import sys # Connect to Zabbix server z=zabbix_api.ZabbixAPI(server=zabbix_url) z.login(user=username, passwor...
23.788732
70
0.562463
199
1,689
4.723618
0.467337
0.021277
0.023404
0
0
0
0
0
0
0
0
0.010425
0.261693
1,689
70
71
24.128571
0.743384
0.235642
0
0.090909
0
0
0.231975
0.038401
0
0
0
0
0
1
0
false
0.045455
0.045455
0
0.045455
0.204545
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb3b035d6a2b960bc0d338d7dd3785c2208f99f5
11,813
py
Python
server.py
uanthwal/starter-snake-python
6eff23ac9b9b0cfb9dbbf6d756a92a677bbf0417
[ "MIT" ]
null
null
null
server.py
uanthwal/starter-snake-python
6eff23ac9b9b0cfb9dbbf6d756a92a677bbf0417
[ "MIT" ]
null
null
null
server.py
uanthwal/starter-snake-python
6eff23ac9b9b0cfb9dbbf6d756a92a677bbf0417
[ "MIT" ]
null
null
null
import copy import math import os import random import cherrypy """ This is a simple Battlesnake server written in Python. For instructions see https://github.com/BattlesnakeOfficial/starter-snake-python/README.md """ class Battlesnake(object): global neighbours @cherrypy.expose @cherrypy.tools.json_out() def...
31.501333
108
0.632439
1,766
11,813
3.98188
0.12684
0.030859
0.045364
0.057736
0.525313
0.466866
0.38979
0.350683
0.327361
0.306883
0
0.009097
0.209007
11,813
374
109
31.585562
0.743472
0.107678
0
0.414013
0
0
0.110789
0.020749
0
0
0
0.002674
0
1
0.05414
false
0
0.015924
0.009554
0.200637
0.041401
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb3c1435400a880f8b3833ff6b37ef02c5237e11
59,098
py
Python
google/devtools/testing/v1/devtools-testing-v1-py/google/devtools/testing_v1/types/test_execution.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
7
2021-02-21T10:39:41.000Z
2021-12-07T07:31:28.000Z
google/devtools/testing/v1/devtools-testing-v1-py/google/devtools/testing_v1/types/test_execution.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
6
2021-02-02T23:46:11.000Z
2021-11-15T01:46:02.000Z
google/devtools/testing/v1/devtools-testing-v1-py/google/devtools/testing_v1/types/test_execution.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
4
2021-01-28T23:25:45.000Z
2021-08-30T01:55:16.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
30.029472
108
0.619953
6,682
59,098
5.396289
0.125561
0.036885
0.055328
0.047202
0.467663
0.422347
0.345333
0.258472
0.208248
0.186782
0
0.010715
0.308301
59,098
1,967
109
30.044738
0.871373
0.571661
0
0.435451
0
0
0.093091
0.008727
0
0
0
0
0
1
0
false
0
0.003074
0
0.281762
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb3c4ae70f222dd8a499b8678c9508db3922f5b5
1,457
py
Python
CONTENT/Resources/guides/__UNSORTED/244_shortest_word_distance_ii/shortest.py
impastasyndrome/DS-ALGO-OFFICIAL
c85ec9cf0af0009f038b7a571a7ac1fb466b7f3a
[ "Apache-2.0" ]
13
2021-03-11T00:25:22.000Z
2022-03-19T00:19:23.000Z
CONTENT/Resources/guides/__UNSORTED/244_shortest_word_distance_ii/shortest.py
impastasyndrome/DS-ALGO-OFFICIAL
c85ec9cf0af0009f038b7a571a7ac1fb466b7f3a
[ "Apache-2.0" ]
162
2021-03-09T01:52:11.000Z
2022-03-12T01:09:07.000Z
CONTENT/Resources/guides/__UNSORTED/244_shortest_word_distance_ii/shortest.py
impastasyndrome/DS-ALGO-OFFICIAL
c85ec9cf0af0009f038b7a571a7ac1fb466b7f3a
[ "Apache-2.0" ]
12
2021-04-26T19:43:01.000Z
2022-01-31T08:36:29.000Z
from collections import defaultdict class WordDistance(object): def __init__(self, words): """ initialize your data structure here. :type words: List[str] """ self.indice = defaultdict(list) self.memo = {} self.MAXLEN = len(words) for i, word in enum...
29.734694
67
0.539465
165
1,457
4.69697
0.375758
0.099355
0.030968
0.046452
0.036129
0
0
0
0
0
0
0.052798
0.350034
1,457
48
68
30.354167
0.765576
0.231984
0
0
0
0
0
0
0
0
0
0
0
1
0.074074
false
0
0.037037
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb41c51ce9970b54d5b685bba4f5e3319c3b6398
33,225
py
Python
Developer-Essentials-Capstone/Python/Includes/Capstone-Setup.py
databricks-academy/developer-essentials-capstone
77e70b1eb5b49b5f6779495fac7d14f5fadded9d
[ "CC0-1.0" ]
1
2022-02-08T03:56:32.000Z
2022-02-08T03:56:32.000Z
Developer-Essentials-Capstone/Python/Includes/Capstone-Setup.py
databricks-academy/developer-essentials-capstone
77e70b1eb5b49b5f6779495fac7d14f5fadded9d
[ "CC0-1.0" ]
null
null
null
Developer-Essentials-Capstone/Python/Includes/Capstone-Setup.py
databricks-academy/developer-essentials-capstone
77e70b1eb5b49b5f6779495fac7d14f5fadded9d
[ "CC0-1.0" ]
4
2022-01-01T09:41:31.000Z
2022-02-17T09:48:05.000Z
# Databricks notebook source import builtins as BI # Setup the capstone import re, uuid from pyspark.sql.types import StructType, StringType, IntegerType, TimestampType, DoubleType from pyspark.sql.functions import col, to_date, weekofyear from pyspark.sql import DataFrame static_tests = None bronze_tests = None silv...
38.544084
408
0.669586
3,975
33,225
5.500881
0.168302
0.021769
0.013583
0.016052
0.435928
0.386719
0.349812
0.296305
0.277966
0.258712
0
0.012532
0.205026
33,225
861
409
38.58885
0.815318
0.026155
0
0.307453
0
0.032609
0.294704
0.073536
0
0
0
0
0.006211
1
0.082298
false
0.048137
0.032609
0.021739
0.21118
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
0
0
0
0
0
1
0
eb424108a96bf604264def77319d83c190ad7040
12,658
py
Python
scraper/Scraper.py
tiskutis/Capstone24Scraper
3182463e129f37f0f895a440d2285a51e0cfb9a2
[ "MIT" ]
null
null
null
scraper/Scraper.py
tiskutis/Capstone24Scraper
3182463e129f37f0f895a440d2285a51e0cfb9a2
[ "MIT" ]
null
null
null
scraper/Scraper.py
tiskutis/Capstone24Scraper
3182463e129f37f0f895a440d2285a51e0cfb9a2
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup as bs, BeautifulSoup import pandas as pd import numpy as np import re import logging class Scraper: """ This is a scraper class, which can scrape California housing information from https://www.point2homes.com/ website. The flow: - First, all California ar...
38.241692
123
0.586902
1,480
12,658
4.906081
0.187162
0.042143
0.027269
0.034706
0.349125
0.31015
0.286737
0.234403
0.222559
0.165129
0
0.004688
0.325881
12,658
330
124
38.357576
0.846244
0.316717
0
0.240838
0
0
0.125079
0.002774
0
0
0
0
0
1
0.073298
false
0
0.031414
0
0.209424
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb444f1d2f4c6079bc153578e3e68294eef319a0
4,344
py
Python
src/gapminder_challenge/dashboard/dash_app2.py
UBC-MDS/gapminder_challenge
bbc8132a475d483e7c6c46572c8efca40b506afc
[ "MIT" ]
1
2022-03-19T03:31:49.000Z
2022-03-19T03:31:49.000Z
src/gapminder_challenge/dashboard/dash_app2.py
imtvwy/gapminder_challenge
0f7d9816b0c5baf6422baff24e0413c800d6e62a
[ "MIT" ]
39
2022-02-17T05:04:48.000Z
2022-03-19T21:37:20.000Z
src/gapminder_challenge/dashboard/dash_app2.py
imtvwy/gapminder_challenge
0f7d9816b0c5baf6422baff24e0413c800d6e62a
[ "MIT" ]
1
2022-03-19T03:30:08.000Z
2022-03-19T03:30:08.000Z
import pandas as pd from dash import Dash, html, dcc, Input, Output import altair as alt df = pd.read_csv('../../data/raw/world-data-gapminder_raw.csv') # local run # df = pd.read_csv('data/raw/world-data-gapminder_raw.csv') # heroku deployment url = '/dash_app2/' def add_dash(server): """ It creates a D...
42.174757
113
0.575506
538
4,344
4.464684
0.291822
0.041216
0.033306
0.020816
0.310158
0.273106
0.222315
0.203997
0.203997
0.203997
0
0.016478
0.287523
4,344
102
114
42.588235
0.759612
0.157689
0
0.225352
0
0
0.239204
0.043466
0
0
0
0
0
1
0.042254
false
0
0.042254
0
0.126761
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb448a448b8928b4d93cd021756f058d5d672505
4,595
py
Python
emulator/utils/common.py
Harry45/emuPK
c5cd8a4ab7ef593b196ee58d9df5d826d444a2b9
[ "MIT" ]
2
2021-05-10T16:59:34.000Z
2021-05-19T16:10:24.000Z
emulator/utils/common.py
Harry45/emuPK
c5cd8a4ab7ef593b196ee58d9df5d826d444a2b9
[ "MIT" ]
null
null
null
emulator/utils/common.py
Harry45/emuPK
c5cd8a4ab7ef593b196ee58d9df5d826d444a2b9
[ "MIT" ]
2
2021-04-16T23:55:16.000Z
2021-09-09T12:48:41.000Z
# Author: Arrykrishna Mootoovaloo # Collaborators: Alan Heavens, Andrew Jaffe, Florent Leclercq # Email : a.mootoovaloo17@imperial.ac.uk # Affiliation : Imperial Centre for Inference and Cosmology # Status : Under Development ''' Perform all additional operations such as interpolations ''' import os import logging im...
24.972826
106
0.618498
669
4,595
4.150972
0.316891
0.008642
0.005402
0.009003
0.131437
0.0731
0.053655
0.053655
0.042132
0.025927
0
0.015769
0.268553
4,595
183
107
25.10929
0.810473
0.40914
0
0.088235
0
0
0.026066
0
0
0
0
0
0
1
0.088235
false
0
0.073529
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de1a03c3bf2d4b4418706f4fb2057bc7977a7251
777
py
Python
client.py
juzejunior/HttpBasicServer
7e77b49f693d9cfe0d782e93026d8f9261368b69
[ "MIT" ]
null
null
null
client.py
juzejunior/HttpBasicServer
7e77b49f693d9cfe0d782e93026d8f9261368b69
[ "MIT" ]
null
null
null
client.py
juzejunior/HttpBasicServer
7e77b49f693d9cfe0d782e93026d8f9261368b69
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Simple Http Client, to request html files Modification: 11/09/2017 Author: J. Júnior ''' import httplib import sys #get http server ip - pass in the command line http_server = sys.argv[1] #create a connection with the server conn = httplib.HTTPConnection(ht...
22.852941
58
0.679537
115
777
4.547826
0.582609
0.057361
0
0
0
0
0
0
0
0
0
0.022472
0.198198
777
33
59
23.545455
0.817014
0.413127
0
0
0
0
0.093458
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.1875
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de1d5ad5042762573fde2a3a38799da995504ae1
6,881
py
Python
pyssh/crypto/asymmetric.py
beckjake/pyssh
d6b7a6cca7e38d0835f84386723ec10ac5ad621f
[ "CC0-1.0" ]
null
null
null
pyssh/crypto/asymmetric.py
beckjake/pyssh
d6b7a6cca7e38d0835f84386723ec10ac5ad621f
[ "CC0-1.0" ]
null
null
null
pyssh/crypto/asymmetric.py
beckjake/pyssh
d6b7a6cca7e38d0835f84386723ec10ac5ad621f
[ "CC0-1.0" ]
null
null
null
"""Implement asymmetric cryptography. """ from __future__ import print_function, division, absolute_import from __future__ import unicode_literals from cryptography.hazmat.primitives import hashes, serialization from cryptography.hazmat.primitives.asymmetric import rsa, dsa, utils, padding from cryptography.hazmat.pri...
31.277273
83
0.636826
794
6,881
5.374055
0.224181
0.028123
0.033747
0.029529
0.34427
0.252637
0.221701
0.209046
0.113897
0.091868
0
0.007263
0.259701
6,881
219
84
31.420091
0.830389
0.154919
0
0.39726
0
0
0.016826
0
0
0
0
0.004566
0.013699
1
0.130137
false
0.013699
0.075342
0.006849
0.342466
0.006849
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de1dfa963d73dc87e79e92fa3fe653f6462539c8
1,230
py
Python
books/李航-统计学习/machine_learning_algorithm-master/naive_bayes/naive_bayes.py
haohonglin/DeepLearning-1
c00eee4738d322f6eb5d61d5bafbcfa7b20152a0
[ "Apache-2.0" ]
1
2020-12-01T06:13:21.000Z
2020-12-01T06:13:21.000Z
books/李航-统计学习/machine_learning_algorithm-master/naive_bayes/naive_bayes.py
idonashino/DeepLearning
c00eee4738d322f6eb5d61d5bafbcfa7b20152a0
[ "Apache-2.0" ]
null
null
null
books/李航-统计学习/machine_learning_algorithm-master/naive_bayes/naive_bayes.py
idonashino/DeepLearning
c00eee4738d322f6eb5d61d5bafbcfa7b20152a0
[ "Apache-2.0" ]
1
2021-01-01T15:28:36.000Z
2021-01-01T15:28:36.000Z
""" @ jetou @ cart decision_tree @ date 2017 10 31 """ import numpy as np class naive_bayes: def __init__(self, feature, label): self.feature = feature.transpose() self.label = label.transpose().flatten(1) self.positive = np.count_nonzero(self.label == 1) * 1.0 self.ne...
28.604651
89
0.585366
155
1,230
4.464516
0.283871
0.09104
0.080925
0.104046
0.176301
0.176301
0.176301
0.176301
0.101156
0.101156
0
0.024561
0.304878
1,230
42
90
29.285714
0.784795
0.037398
0
0
0
0
0
0
0
0
0
0
0
1
0.107143
false
0
0.035714
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de2067c1459291384093f5c6102e9ab0301ade68
3,164
py
Python
src/rsa_decryption_125/app.py
seanballais/rsa-decryption-125
df2ad27d055469e7c58a811f40cfc2c8a6171298
[ "MIT" ]
null
null
null
src/rsa_decryption_125/app.py
seanballais/rsa-decryption-125
df2ad27d055469e7c58a811f40cfc2c8a6171298
[ "MIT" ]
null
null
null
src/rsa_decryption_125/app.py
seanballais/rsa-decryption-125
df2ad27d055469e7c58a811f40cfc2c8a6171298
[ "MIT" ]
null
null
null
import tkinter from tkinter import * from rsa_decryption_125 import decryptor class AppWindow(Frame): def __init__(self, master=None): super().__init__(master) self.master = master self.init_window() def init_window(self): self.master.title('RSA Decryptor') self.p...
34.391304
102
0.631163
395
3,164
4.843038
0.255696
0.100366
0.094093
0.084161
0.161526
0.02091
0
0
0
0
0
0.026349
0.244311
3,164
92
103
34.391304
0.773735
0
0
0.028571
0
0
0.103318
0
0
0
0
0
0
1
0.071429
false
0
0.042857
0
0.128571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de207e25aa9bca185c57928c53cd749f04d47818
2,031
py
Python
model.py
starinsun/multiagent-particle-envs
23b1c47fad4d71347ba3de7a5e8cec910f08382d
[ "MIT" ]
null
null
null
model.py
starinsun/multiagent-particle-envs
23b1c47fad4d71347ba3de7a5e8cec910f08382d
[ "MIT" ]
null
null
null
model.py
starinsun/multiagent-particle-envs
23b1c47fad4d71347ba3de7a5e8cec910f08382d
[ "MIT" ]
null
null
null
import paddle.fluid as fluid import parl from parl import layers class MAModel(parl.Model): def __init__(self, act_dim): self.actor_model = ActorModel(act_dim) self.critic_model = CriticModel() def policy(self, obs): return self.actor_model.policy(obs) def value(self, obs, act): ...
27.445946
68
0.573609
275
2,031
4.076364
0.189091
0.042819
0.064228
0.133809
0.503122
0.485281
0.485281
0.438894
0.438894
0.438894
0
0.044872
0.308715
2,031
74
69
27.445946
0.753561
0
0
0.533333
0
0
0.007874
0
0
0
0
0
0
1
0.15
false
0
0.05
0.066667
0.35
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de20802d519423344cda6384cb09a94946775ee1
724
py
Python
src/fmWidgets/FmColorEdit.py
ComputerArchitectureGroupPWr/Floorplan-Maker
8f2922cdab16501d3bb00f93c3130d3f2c593698
[ "MIT" ]
null
null
null
src/fmWidgets/FmColorEdit.py
ComputerArchitectureGroupPWr/Floorplan-Maker
8f2922cdab16501d3bb00f93c3130d3f2c593698
[ "MIT" ]
null
null
null
src/fmWidgets/FmColorEdit.py
ComputerArchitectureGroupPWr/Floorplan-Maker
8f2922cdab16501d3bb00f93c3130d3f2c593698
[ "MIT" ]
null
null
null
from PyQt4.QtGui import QPalette, QColor __author__ = 'pawel' from PyQt4 import QtGui from PyQt4.QtCore import Qt class FmColorEdit(QtGui.QLineEdit): def __init__(self, parent): super(FmColorEdit, self).__init__(parent) self.setReadOnly(True) def mousePressEvent(self, event): self....
25.857143
57
0.672652
82
724
5.792683
0.402439
0.094737
0.075789
0.105263
0.189474
0.189474
0.189474
0
0
0
0
0.005348
0.225138
724
28
58
25.857143
0.841355
0
0
0.2
0
0
0.006897
0
0
0
0
0
0
1
0.2
false
0
0.15
0.05
0.45
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de26d7fc8c223d9eef08edc2aa50933adc8cafe1
1,777
py
Python
scripts/geodata/address_expansions/equivalence.py
Fillr/libpostal
bce153188aff9fbe65aef12c3c639d8069e707fc
[ "MIT" ]
3,489
2015-03-03T00:21:38.000Z
2022-03-29T09:03:05.000Z
scripts/geodata/address_expansions/equivalence.py
StephenHildebrand/libpostal
d8c9847c5686a1b66056e65128e1774f060ff36f
[ "MIT" ]
488
2015-05-29T23:04:28.000Z
2022-03-29T11:20:24.000Z
scripts/geodata/address_expansions/equivalence.py
StephenHildebrand/libpostal
d8c9847c5686a1b66056e65128e1774f060ff36f
[ "MIT" ]
419
2015-11-24T16:53:07.000Z
2022-03-27T06:51:28.000Z
import random import re import six from itertools import izip from geodata.address_expansions.gazetteers import * from geodata.encoding import safe_decode, safe_encode from geodata.text.normalize import normalized_tokens from geodata.text.tokenize import tokenize_raw, token_types from geodata.text.utils import non_br...
31.175439
85
0.68655
226
1,777
5.230089
0.429204
0.046531
0.054146
0.045685
0.126904
0.062606
0.062606
0.062606
0
0
0
0.024818
0.229038
1,777
56
86
31.732143
0.837956
0.141812
0
0.114286
0
0
0.00067
0
0
0
0
0
0
1
0.057143
false
0
0.257143
0
0.485714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de28f51f7fb4db9f4c4cfed3b53384caa7188918
3,200
py
Python
ssanchors/utilities.py
IoSR-Surrey/source-separation-anchors
c2c73312bdc7f08f37c088fa3986168813f13799
[ "MIT" ]
4
2018-07-06T14:35:29.000Z
2019-08-28T17:13:11.000Z
ssanchors/utilities.py
nd1511/source-separation-anchors
c2c73312bdc7f08f37c088fa3986168813f13799
[ "MIT" ]
1
2018-06-18T17:08:28.000Z
2018-06-19T10:45:58.000Z
ssanchors/utilities.py
nd1511/source-separation-anchors
c2c73312bdc7f08f37c088fa3986168813f13799
[ "MIT" ]
1
2018-11-05T19:56:17.000Z
2018-11-05T19:56:17.000Z
from __future__ import division import numpy as np from untwist import data from untwist import transforms def target_accompaniment(target, others, sample_rate=None): """ Given a target source and list of 'other' sources, this function returns the target and accompaniment as untwist.data.audio.Wave objec...
25.806452
78
0.64625
429
3,200
4.666667
0.286713
0.041958
0.065934
0.037463
0.200799
0.161838
0.054945
0
0
0
0
0.005541
0.266875
3,200
123
79
26.01626
0.847826
0.480938
0
0.114286
0
0
0.040194
0
0
0
0
0
0
1
0.085714
false
0
0.114286
0
0.285714
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de2d96eb9081272f5172b90d540db88b204c04b4
427
py
Python
Python_Challenge_115/6/F.py
LIkelion-at-KOREATECH/LikeLion_Django_Study_Summary
c788182af5bcfd16bdd4b57235a48659758e494b
[ "MIT" ]
28
2019-10-15T13:15:26.000Z
2021-11-08T08:23:45.000Z
Python_Challenge_115/6/F.py
jhleed/LikeLion_Django_Study_Summary
c788182af5bcfd16bdd4b57235a48659758e494b
[ "MIT" ]
null
null
null
Python_Challenge_115/6/F.py
jhleed/LikeLion_Django_Study_Summary
c788182af5bcfd16bdd4b57235a48659758e494b
[ "MIT" ]
17
2019-09-09T00:15:36.000Z
2021-01-28T13:08:51.000Z
''' Statement Fibonacci numbers are the numbers in the integer sequence starting with 1, 1 where every number after the first two is the sum of the two preceding ones: 1, 1, 2, 3, 5, 8, 13, 21, 34, ... Given a positive integer n, print the nth Fibonacci number. Example input 6 Example output 8 ''' num = int(input()...
18.565217
153
0.676815
75
427
3.853333
0.613333
0.020761
0
0
0
0
0
0
0
0
0
0.060423
0.224824
427
22
154
19.409091
0.812689
0.688525
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de2ffb901bbfbc3af2061583ab91b8842066be1f
1,376
py
Python
cluster.py
YektaDmrc/UW_GEMSEC
b9e0c995e34f098fdb607fa35a3fe47663839086
[ "MIT" ]
1
2018-07-10T23:37:47.000Z
2018-07-10T23:37:47.000Z
cluster.py
YektaDmrc/UW_GEMSEC
b9e0c995e34f098fdb607fa35a3fe47663839086
[ "MIT" ]
null
null
null
cluster.py
YektaDmrc/UW_GEMSEC
b9e0c995e34f098fdb607fa35a3fe47663839086
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Jul 13 15:38:11 2018 @author: Yekta """ import csv import numpy as np from sklearn.cluster import KMeans clon = list(csv.reader(open("C:/Users/Yekta/Desktop/stajvol3/MoS2BP Binding Characterization_07-11-17_DY.csv"))) for k in range(1,15): fin=[] for m i...
32.761905
130
0.588663
204
1,376
3.936275
0.411765
0.061021
0.049813
0.05604
0.199253
0.159402
0.159402
0.107098
0.107098
0
0
0.065239
0.253634
1,376
42
131
32.761905
0.71665
0.077035
0
0
0
0
0.178542
0.149058
0
0
0
0
0
1
0
false
0
0.103448
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
0
0
0
0
0
1
0
de319a3d0a027f8b448c09d0528c44c359822d8e
1,440
py
Python
test_collision/test_discretedynamicsworld.py
Klumhru/boost-python-bullet
d9ffae09157280f60cb469d8c9c9fa4c1920e3ce
[ "MIT" ]
2
2015-09-16T15:24:39.000Z
2015-11-18T11:53:51.000Z
test_collision/test_discretedynamicsworld.py
Klumhru/boost-python-bullet
d9ffae09157280f60cb469d8c9c9fa4c1920e3ce
[ "MIT" ]
1
2018-04-04T15:33:20.000Z
2018-04-04T15:33:20.000Z
test_collision/test_discretedynamicsworld.py
Klumhru/boost-python-bullet
d9ffae09157280f60cb469d8c9c9fa4c1920e3ce
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_collision.test_discretedynamicsworld """ from __future__ import unicode_literals, print_function, absolute_import import unittest import bullet from .test_worlds import WorldTestDataMixin class DiscreteDynamicsWorldTestCase(WorldTestDataMixin, ...
28.8
72
0.634028
153
1,440
5.810458
0.372549
0.101237
0.067492
0.084364
0.305962
0.269966
0.269966
0.269966
0.231721
0.231721
0
0.018112
0.271528
1,440
49
73
29.387755
0.829361
0.058333
0
0.176471
0
0
0
0
0
0
0
0
0.088235
1
0.176471
false
0.029412
0.117647
0
0.323529
0.029412
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de31e808778594864eecf61a23f3d4e16b0f2a4b
820
py
Python
force_wfmanager/notifications/tests/test_ui_notification_hooks_factory.py
force-h2020/force-wfmanager
bcd488cd37092cacd9d0c81b544ee8c1654d1d92
[ "BSD-2-Clause" ]
1
2019-08-19T16:02:20.000Z
2019-08-19T16:02:20.000Z
force_wfmanager/notifications/tests/test_ui_notification_hooks_factory.py
force-h2020/force-wfmanager
bcd488cd37092cacd9d0c81b544ee8c1654d1d92
[ "BSD-2-Clause" ]
396
2017-07-18T15:19:55.000Z
2021-05-03T06:23:06.000Z
force_wfmanager/notifications/tests/test_ui_notification_hooks_factory.py
force-h2020/force-wfmanager
bcd488cd37092cacd9d0c81b544ee8c1654d1d92
[ "BSD-2-Clause" ]
2
2019-03-05T16:23:10.000Z
2020-04-16T08:59:11.000Z
# (C) Copyright 2010-2020 Enthought, Inc., Austin, TX # All rights reserved. import unittest from force_wfmanager.notifications.ui_notification_hooks_manager \ import \ UINotificationHooksManager from force_wfmanager.notifications.ui_notification_plugin import \ UINotificationPlugin class TestUINotifi...
31.538462
68
0.74878
88
820
6.761364
0.454545
0.067227
0.060504
0.104202
0.258824
0.151261
0
0
0
0
0
0.013274
0.173171
820
25
69
32.8
0.864307
0.089024
0
0
0
0
0
0
0
0
0
0
0.176471
1
0.176471
false
0
0.176471
0
0.411765
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de35289eea69e5ceb7febfc7fa32b43c5609a79c
887
py
Python
src/commands/reload.py
zaanposni/umfrageBot
3e19dc0629cde394da2ae8706e6e043b4e87059d
[ "MIT" ]
6
2019-08-15T20:19:38.000Z
2021-02-28T21:33:19.000Z
src/commands/reload.py
zaanposni/umfrageBot
3e19dc0629cde394da2ae8706e6e043b4e87059d
[ "MIT" ]
31
2019-08-14T08:42:08.000Z
2020-05-07T13:43:43.000Z
src/commands/reload.py
zaanposni/umfrageBot
3e19dc0629cde394da2ae8706e6e043b4e87059d
[ "MIT" ]
5
2019-08-17T13:39:53.000Z
2020-04-01T07:25:51.000Z
from bt_utils.console import Console from bt_utils.config import cfg from bt_utils.embed_templates import SuccessEmbed, WarningEmbed from bt_utils.handle_sqlite import DatabaseHandler SHL = Console('BundestagsBot Reload') DB = DatabaseHandler() settings = { 'name': 'reload', 'channels': ['team'], 'mod_cmd...
27.71875
92
0.713641
116
887
5.344828
0.62069
0.03871
0.070968
0
0
0
0
0
0
0
0
0.001379
0.182638
887
31
93
28.612903
0.853793
0.126268
0
0
0
0
0.181347
0
0
0
0
0
0
1
0
false
0
0.190476
0
0.190476
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de38b348a7c3f728ca43e602a33e53edfd8f033d
10,812
py
Python
tests/eth2/beacon/state_machines/forks/test_serenity_block_attestation_validation.py
hwwhww/trinity
614b083a637c665f84b1af228541f37c25d9c665
[ "MIT" ]
2
2020-01-30T21:51:00.000Z
2020-07-22T14:51:05.000Z
tests/eth2/beacon/state_machines/forks/test_serenity_block_attestation_validation.py
hwwhww/trinity
614b083a637c665f84b1af228541f37c25d9c665
[ "MIT" ]
null
null
null
tests/eth2/beacon/state_machines/forks/test_serenity_block_attestation_validation.py
hwwhww/trinity
614b083a637c665f84b1af228541f37c25d9c665
[ "MIT" ]
null
null
null
import pytest from hypothesis import ( given, settings, strategies as st, ) from eth_utils import ( ValidationError, ) from eth.constants import ( ZERO_HASH32, ) from eth2.beacon.committee_helpers import ( get_crosslink_committees_at_slot, ) from eth2.beacon.state_machines.forks.serenity.block...
31.068966
117
0.561321
990
10,812
5.728283
0.120202
0.105801
0.043555
0.066655
0.697937
0.600247
0.541527
0.466584
0.405396
0.350379
0
0.028185
0.363393
10,812
347
118
31.158501
0.795729
0.067055
0
0.495208
0
0
0.063059
0.027408
0
0
0
0
0.00639
1
0.019169
false
0
0.028754
0
0.047923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de3966c1044750e98c8968c82831f55e24112044
13,679
py
Python
SeqtaSDSBridge.py
jacobcurulli/SeqtaSDSBridge
19b8da95462d1e0aa8a059c9f8075d8f7ce1b417
[ "CC-BY-4.0" ]
null
null
null
SeqtaSDSBridge.py
jacobcurulli/SeqtaSDSBridge
19b8da95462d1e0aa8a059c9f8075d8f7ce1b417
[ "CC-BY-4.0" ]
1
2021-05-21T04:52:28.000Z
2021-05-21T05:00:10.000Z
SeqtaSDSBridge.py
jacobcurulli/SeqtaSDSBridge
19b8da95462d1e0aa8a059c9f8075d8f7ce1b417
[ "CC-BY-4.0" ]
1
2021-04-07T13:50:43.000Z
2021-04-07T13:50:43.000Z
########################################################################################################### ########################################################################################################### ## SeqtaToSDS ...
45.445183
185
0.635865
1,483
13,679
5.840863
0.228591
0.022628
0.009236
0.009698
0.186793
0.143154
0.133226
0.106673
0.106673
0.096975
0
0.003377
0.242269
13,679
301
186
45.445183
0.83232
0.208787
0
0.132353
0
0.009804
0.226853
0.012031
0
0
0
0
0
1
0
false
0.009804
0.034314
0
0.034314
0.220588
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de3daa1f9c197f223b8adf05ac9c7b5634367d5c
5,945
py
Python
bin/plot_examples/plot_vars_barchart.py
gonzalorodrigo/ScSFWorkload
2301dacf486df8ed783c0ba33cbbde6e9978c17e
[ "BSD-3-Clause-LBNL" ]
1
2019-03-18T18:27:49.000Z
2019-03-18T18:27:49.000Z
bin/plot_examples/plot_vars_barchart.py
gonzalorodrigo/ScSFWorkload
2301dacf486df8ed783c0ba33cbbde6e9978c17e
[ "BSD-3-Clause-LBNL" ]
1
2020-12-17T21:33:15.000Z
2020-12-17T21:35:41.000Z
bin/plot_examples/plot_vars_barchart.py
gonzalorodrigo/ScSFWorkload
2301dacf486df8ed783c0ba33cbbde6e9978c17e
[ "BSD-3-Clause-LBNL" ]
1
2021-01-05T08:23:20.000Z
2021-01-05T08:23:20.000Z
""" Plots analysis on the workflow variables for experiments with different workflow types and different %of workflow core hours in the workload. Resuls are plotted as barchars that show how much the vas deviate in single and multi from aware. """ import matplotlib from orchestration import get_central_db from orches...
36.030303
75
0.518923
684
5,945
4.23538
0.409357
0.04591
0.031067
0.03728
0.174318
0.153952
0.153952
0.153952
0.143597
0.143597
0
0.146289
0.369891
5,945
165
76
36.030303
0.627069
0.17561
0
0.160714
0
0
0.098831
0.004306
0
0
0
0
0
1
0
false
0.008929
0.044643
0
0.044643
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de3df638310dcbe32c189284547dca83d1fe51a7
410
py
Python
devpotato_bot/commands/daily_titles/models/inevitable_title.py
cl0ne/cryptopotato-bot
af62d794adffe186a4f6a4b0aa7ecd4f7e8700a1
[ "MIT" ]
1
2021-05-15T23:41:29.000Z
2021-05-15T23:41:29.000Z
devpotato_bot/commands/daily_titles/models/inevitable_title.py
cl0ne/cryptopotato-bot
af62d794adffe186a4f6a4b0aa7ecd4f7e8700a1
[ "MIT" ]
1
2022-02-19T20:38:33.000Z
2022-02-19T23:53:39.000Z
devpotato_bot/commands/daily_titles/models/inevitable_title.py
cl0ne/cryptopotato-bot
af62d794adffe186a4f6a4b0aa7ecd4f7e8700a1
[ "MIT" ]
1
2021-05-15T23:42:21.000Z
2021-05-15T23:42:21.000Z
from __future__ import annotations from .title import TitleFromGroupChat, Base class InevitableTitle(TitleFromGroupChat): __tablename__ = f'{Base.TABLENAME_PREFIX}inevitable_titles' __group_chat_back_populates__ = 'inevitable_titles' def __repr__(self): return ('<InevitableTitle(' ...
27.333333
63
0.660976
40
410
6.175
0.6
0.129555
0
0
0
0
0
0
0
0
0
0
0.236585
410
14
64
29.285714
0.789137
0
0
0
0
0
0.287805
0.153659
0
0
0
0
0
1
0.1
false
0
0.2
0.1
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
0
0
1
0
de3e64921cbcc4e464aa3d32a70cc4b3179f2705
1,034
py
Python
matplotlib/gas_price_overtime.py
MatveiAleksandrovich/Artificial-Intelligence
d3d6f253e7c2256f6f9d490b077bdb50ca1da229
[ "MIT" ]
null
null
null
matplotlib/gas_price_overtime.py
MatveiAleksandrovich/Artificial-Intelligence
d3d6f253e7c2256f6f9d490b077bdb50ca1da229
[ "MIT" ]
null
null
null
matplotlib/gas_price_overtime.py
MatveiAleksandrovich/Artificial-Intelligence
d3d6f253e7c2256f6f9d490b077bdb50ca1da229
[ "MIT" ]
null
null
null
import requests import pandas as pd import matplotlib.pyplot as plt url_gas_data = 'https://raw.githubusercontent.com/KeithGalli/matplotlib_tutorial/master/gas_prices.csv' res1 = requests.get(url_gas_data, allow_redirects=True) with open('gas_prices.csv', 'wb') as file: file.write(res1.content) plt.figure(figsiz...
23.5
103
0.698259
159
1,034
4.440252
0.490566
0.05949
0.070822
0.09915
0.120397
0
0
0
0
0
0
0.008762
0.117021
1,034
43
104
24.046512
0.764513
0
0
0
0
0
0.275229
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
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de40955063f239619674a2b5ecbf4dbaa910621e
2,305
py
Python
integration_tests/test_surveys.py
ONSdigital/sdx-tester
df193867c0d5e9dbf39790c85c41b07a9efed756
[ "MIT" ]
null
null
null
integration_tests/test_surveys.py
ONSdigital/sdx-tester
df193867c0d5e9dbf39790c85c41b07a9efed756
[ "MIT" ]
null
null
null
integration_tests/test_surveys.py
ONSdigital/sdx-tester
df193867c0d5e9dbf39790c85c41b07a9efed756
[ "MIT" ]
null
null
null
import unittest import uuid from app import survey_loader from app import message_manager from app.tester import run_survey class TestSurveys(unittest.TestCase): @classmethod def setUpClass(cls): message_manager.start() @classmethod def tearDownClass(cls): message_manager.stop() ...
37.786885
109
0.572668
258
2,305
4.957364
0.317829
0.071149
0.046912
0.018765
0.279906
0.218921
0.195465
0.162627
0.162627
0.162627
0
0.003032
0.284599
2,305
60
110
38.416667
0.772589
0
0
0.086957
0
0
0.16269
0.047722
0
0
0
0
0.130435
1
0.173913
false
0.021739
0.108696
0
0.304348
0.108696
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de42aa506b54f4487685cb532dc908e5f790e4a5
509
py
Python
shared/app_business_logic.py
c-w/python-loadtests
3ffd3dc89780b9372a5d20a71b2becec121ff3d2
[ "Apache-2.0" ]
2
2020-02-12T23:03:09.000Z
2020-02-12T23:09:42.000Z
shared/app_business_logic.py
c-w/python-loadtests
3ffd3dc89780b9372a5d20a71b2becec121ff3d2
[ "Apache-2.0" ]
null
null
null
shared/app_business_logic.py
c-w/python-loadtests
3ffd3dc89780b9372a5d20a71b2becec121ff3d2
[ "Apache-2.0" ]
null
null
null
from os import environ from azure.storage.table import TableService azure_account_name = environ['AZURE_ACCOUNT_NAME'] azure_account_key = environ['AZURE_ACCOUNT_KEY'] azure_table_name = environ['AZURE_TABLE_NAME'] table = TableService(azure_account_name, azure_account_key) get_entity = table.get_entity def fetch_v...
28.277778
65
0.776031
72
509
5.125
0.291667
0.195122
0.130081
0.151762
0.168022
0.168022
0
0
0
0
0
0.002262
0.131631
509
17
66
29.941176
0.832579
0
0
0
0
0
0.119843
0
0
0
0
0
0
1
0.076923
false
0
0.153846
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de44446f8526c9f2e48dd37b76b2ac71ae33e71b
3,424
py
Python
csrank/dataset_reader/objectranking/letor_object_ranking_dataset_reader.py
hytsang/cs-ranking
241626a6a100a27b96990b4f199087a6dc50dcc0
[ "Apache-2.0" ]
null
null
null
csrank/dataset_reader/objectranking/letor_object_ranking_dataset_reader.py
hytsang/cs-ranking
241626a6a100a27b96990b4f199087a6dc50dcc0
[ "Apache-2.0" ]
null
null
null
csrank/dataset_reader/objectranking/letor_object_ranking_dataset_reader.py
hytsang/cs-ranking
241626a6a100a27b96990b4f199087a6dc50dcc0
[ "Apache-2.0" ]
1
2018-10-30T08:57:14.000Z
2018-10-30T08:57:14.000Z
import logging import h5py import numpy as np from sklearn.utils import check_random_state from csrank.constants import OBJECT_RANKING from csrank.dataset_reader.letor_dataset_reader import LetorDatasetReader from csrank.dataset_reader.objectranking.util import sub_sampling NAME = "LetorObjectRankingDatasetReader" ...
39.356322
104
0.629965
457
3,424
4.474836
0.249453
0.031785
0.046944
0.03423
0.150122
0.113936
0.066504
0.043032
0.043032
0.043032
0
0.008133
0.245911
3,424
86
105
39.813953
0.783888
0.183119
0
0.101695
0
0
0.037024
0.011143
0
0
0
0
0
1
0.135593
false
0.033898
0.118644
0.033898
0.338983
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de481c317eb312cc809e4b8eb2f8383abd96ba97
324
py
Python
src/elrados/views.py
IamShobe/elrados
dd2523e1523591c7a3213dfd062b376f41bb9f18
[ "MIT" ]
2
2018-07-20T11:03:42.000Z
2019-06-06T06:00:12.000Z
src/elrados/views.py
IamShobe/elrados
dd2523e1523591c7a3213dfd062b376f41bb9f18
[ "MIT" ]
null
null
null
src/elrados/views.py
IamShobe/elrados
dd2523e1523591c7a3213dfd062b376f41bb9f18
[ "MIT" ]
2
2018-12-18T16:00:34.000Z
2019-04-08T14:29:02.000Z
"""Global index view.""" import pkg_resources from django.shortcuts import render def index(request): """Basic view.""" plugins = \ [plugin.load() for plugin in pkg_resources.iter_entry_points(group='elrados.plugins')] return render(request, "index.html", { "plugins": plugins ...
21.6
66
0.641975
37
324
5.513514
0.675676
0.117647
0
0
0
0
0
0
0
0
0
0
0.222222
324
14
67
23.142857
0.809524
0.092593
0
0
0
0
0.113074
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de48207667680d4095ac834e7b25417f0ab4f83a
2,274
py
Python
examples/old/zipline_momentun.py
sherrytp/TradingEvolved
4bc9cc18244954bff37a80f67cce658bd0802b5d
[ "Apache-2.0" ]
null
null
null
examples/old/zipline_momentun.py
sherrytp/TradingEvolved
4bc9cc18244954bff37a80f67cce658bd0802b5d
[ "Apache-2.0" ]
null
null
null
examples/old/zipline_momentun.py
sherrytp/TradingEvolved
4bc9cc18244954bff37a80f67cce658bd0802b5d
[ "Apache-2.0" ]
1
2022-03-26T07:11:18.000Z
2022-03-26T07:11:18.000Z
import pandas as pd import matplotlib.pyplot as plt from zipline.finance.commission import PerShare from zipline.api import set_commission, symbol, order_target_percent import zipline from models.live_momentum import LiveMomentum with open('/Users/landey/Desktop/Eonum/live_model/eouniverse/stock_list.txt', 'r') as f...
30.72973
95
0.647757
304
2,274
4.648026
0.365132
0.042463
0.038217
0.024062
0.229299
0.229299
0.161359
0.161359
0.161359
0.108988
0
0.036649
0.244063
2,274
73
96
31.150685
0.78534
0.008355
0
0.08
0
0
0.047048
0.028407
0
0
0
0
0
1
0.04
false
0
0.12
0
0.16
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de4860345de948d81c21b1062677ea640e28f033
10,120
py
Python
packages/robotControl/scripts/intercept.py
Falcons-Robocup/code
2281a8569e7f11cbd3238b7cc7341c09e2e16249
[ "Apache-2.0" ]
2
2021-01-15T13:27:19.000Z
2021-08-04T08:40:52.000Z
packages/robotControl/scripts/intercept.py
Falcons-Robocup/code
2281a8569e7f11cbd3238b7cc7341c09e2e16249
[ "Apache-2.0" ]
null
null
null
packages/robotControl/scripts/intercept.py
Falcons-Robocup/code
2281a8569e7f11cbd3238b7cc7341c09e2e16249
[ "Apache-2.0" ]
5
2018-05-01T10:39:31.000Z
2022-03-25T03:02:35.000Z
# Copyright 2020 Jan Feitsma (Falcons) # SPDX-License-Identifier: Apache-2.0 #!/usr/bin/env python3 # Jan Feitsma, March 2020 # Robot will continuously intercept around current position. # # For description and usage hints, execute with '-h' import sys, os import time import logging, signal logging.basicConfig(leve...
42.700422
305
0.619368
1,219
10,120
5.108285
0.297785
0.038542
0.0273
0.014132
0.083507
0.062149
0.045768
0.033082
0.033082
0.019271
0
0.011244
0.279348
10,120
236
306
42.881356
0.842589
0.183399
0
0.15
0
0.0125
0.155107
0.005382
0
0
0
0.008475
0
1
0.09375
false
0.04375
0.0625
0.00625
0.24375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de4f135b4907a9ad1ee036150f5775fba0b81256
4,859
py
Python
arpym/tools/plc.py
dpopadic/arpmRes
ddcc4de713b46e3e9dcb77cc08c502ce4df54f76
[ "MIT" ]
6
2021-04-10T13:24:30.000Z
2022-03-26T08:20:42.000Z
arpym/tools/plc.py
dpopadic/arpmRes
ddcc4de713b46e3e9dcb77cc08c502ce4df54f76
[ "MIT" ]
null
null
null
arpym/tools/plc.py
dpopadic/arpmRes
ddcc4de713b46e3e9dcb77cc08c502ce4df54f76
[ "MIT" ]
6
2019-08-13T22:02:17.000Z
2022-02-09T17:49:12.000Z
# -*- coding: utf-8 -*- import numpy as np import matplotlib.pyplot as plt from matplotlib.gridspec import GridSpec, GridSpecFromSubplotSpec from matplotlib.ticker import FuncFormatter def tick_label_func(y, pos=None): return '%1.f' % (5 * y * 1e-2 // 5) def tick_label_func_1(y, pos=None): return '%0.0f' ...
35.210145
106
0.61844
845
4,859
3.304142
0.181065
0.023639
0.042622
0.028653
0.557307
0.534384
0.445559
0.41404
0.353152
0.230659
0
0.039087
0.215476
4,859
137
107
35.467153
0.693337
0.109488
0
0.163043
0
0
0.03445
0
0
0
0
0
0
1
0.032609
false
0
0.043478
0.021739
0.108696
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de4fbddd1a8e5c3c47f15c39acb99e707f22e65b
617
py
Python
src/alerter.py
Jawgo/DiscordBot
43dccce80aa8d8bd51b44c0de732fd70d9194672
[ "MIT" ]
null
null
null
src/alerter.py
Jawgo/DiscordBot
43dccce80aa8d8bd51b44c0de732fd70d9194672
[ "MIT" ]
null
null
null
src/alerter.py
Jawgo/DiscordBot
43dccce80aa8d8bd51b44c0de732fd70d9194672
[ "MIT" ]
null
null
null
import os from discord import Webhook, RequestsWebhookAdapter, Colour, Embed def send_alert(item): hook = os.environ.get("WEB_HOOK") webhook = Webhook.from_url(hook, adapter=RequestsWebhookAdapter()) embedVar = Embed(title="Stock Hunter") if item.in_stock: embedVar.description = "{} **IN STOC...
36.294118
110
0.666126
75
617
5.4
0.453333
0.034568
0.064198
0.083951
0.306173
0.306173
0.306173
0.306173
0.306173
0.306173
0
0
0.178282
617
16
111
38.5625
0.798817
0
0
0
0
0
0.126418
0
0
0
0
0
0
1
0.076923
false
0
0.153846
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de50a4c4fb04e2350cc10caa2aea9a7a75fcac8c
4,593
py
Python
dataset_preproc/preproc_video/face_extract.py
RicardoP0/multimodal-matchmap
aa44c574a57073833004172734394882889d8d3b
[ "MIT" ]
null
null
null
dataset_preproc/preproc_video/face_extract.py
RicardoP0/multimodal-matchmap
aa44c574a57073833004172734394882889d8d3b
[ "MIT" ]
null
null
null
dataset_preproc/preproc_video/face_extract.py
RicardoP0/multimodal-matchmap
aa44c574a57073833004172734394882889d8d3b
[ "MIT" ]
null
null
null
#%% #https://github.com/timesler/facenet-pytorch from facenet_pytorch import MTCNN, extract_face import torch import numpy as np import mmcv, cv2 import os import matplotlib.pyplot as plt from PIL import Image # %% #%% device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu') print('Running on...
29.254777
95
0.642717
708
4,593
4.002825
0.214689
0.04693
0.021171
0.022583
0.584333
0.521877
0.466126
0.363797
0.344037
0.286168
0
0.045939
0.203788
4,593
156
96
29.442308
0.729013
0.152188
0
0.438776
0
0
0.114078
0.075966
0.020408
0
0
0
0
1
0
false
0
0.071429
0
0.071429
0.081633
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de5241403b212e20d0b5a9c1eb86d5461e49bad7
957
py
Python
hlrl/torch/utils/contexts/training.py
Chainso/HLRL
584f4ed2fa4d8b311a21dbd862ec9434833dd7cd
[ "MIT" ]
null
null
null
hlrl/torch/utils/contexts/training.py
Chainso/HLRL
584f4ed2fa4d8b311a21dbd862ec9434833dd7cd
[ "MIT" ]
null
null
null
hlrl/torch/utils/contexts/training.py
Chainso/HLRL
584f4ed2fa4d8b311a21dbd862ec9434833dd7cd
[ "MIT" ]
null
null
null
from contextlib import contextmanager import torch.nn as nn @contextmanager def evaluate(module: nn.Module): """ A context manager for evaluating the module. Args: module: The module to switch to evaluating in the context. Returns: A generator for the context of the module. """ ...
20.804348
66
0.6186
114
957
5.192982
0.289474
0.091216
0.047297
0.050676
0.685811
0.685811
0.685811
0.577703
0.577703
0.449324
0
0
0.317659
957
45
67
21.266667
0.906585
0.428422
0
0.7
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de5df9efa200676cbee6ac7078451697101f76eb
2,931
py
Python
flora_tools/experiments/measure_time_irq_process.py
Atokulus/flora-tools
6f878a4495e4dcb6b9bc19a75aaac37b9dfb16b0
[ "MIT" ]
1
2020-11-20T16:36:17.000Z
2020-11-20T16:36:17.000Z
flora_tools/experiments/measure_time_irq_process.py
Atokulus/flora-tools
6f878a4495e4dcb6b9bc19a75aaac37b9dfb16b0
[ "MIT" ]
null
null
null
flora_tools/experiments/measure_time_irq_process.py
Atokulus/flora-tools
6f878a4495e4dcb6b9bc19a75aaac37b9dfb16b0
[ "MIT" ]
null
null
null
from flora_tools.experiment import * class MeasureTimeIRQProcess(Experiment): def __init__(self): description = "Measures the time needed for an IRQ to be processed." Experiment.__init__(self, description) def run(self, bench, iterations=10000): self.iterations = iterations ...
37.576923
111
0.588536
336
2,931
4.928571
0.324405
0.065217
0.067633
0.048309
0.205314
0.148551
0.148551
0.107488
0.107488
0.107488
0
0.020649
0.306039
2,931
77
112
38.064935
0.79351
0
0
0.090909
0
0
0.060048
0
0
0
0
0
0
1
0.054545
false
0
0.018182
0
0.109091
0.018182
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de61aeb69172f0bbf84a85482ba65c30efe863a2
1,901
py
Python
main.py
SHGoldfarb/fantastic-barnacle
64650155ef8172530a6f88be6e7361bfc7e6bfa2
[ "MIT" ]
null
null
null
main.py
SHGoldfarb/fantastic-barnacle
64650155ef8172530a6f88be6e7361bfc7e6bfa2
[ "MIT" ]
null
null
null
main.py
SHGoldfarb/fantastic-barnacle
64650155ef8172530a6f88be6e7361bfc7e6bfa2
[ "MIT" ]
null
null
null
import requests import os from datetime import datetime import pandas as pd def ensure_folder_exists(foldername): try: # Create tmp folder os.mkdir(foldername) print("Directory created: " + foldername) except FileExistsError: pass def download_and_save(url, filename): pri...
23.7625
78
0.711731
251
1,901
5.047809
0.330677
0.078137
0.071034
0.059984
0.295975
0.151539
0.151539
0.151539
0.102605
0.102605
0
0.007134
0.188848
1,901
79
79
24.063291
0.814527
0.031562
0
0.043478
0
0
0.041439
0
0
0
0
0
0
1
0.130435
false
0.043478
0.086957
0.021739
0.26087
0.065217
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de681128c0eb4ded13f92d6720603223e15efc17
4,560
py
Python
train_n_test/train_decoder.py
kamieen03/style-transfer-net
c9f56aa579553be8c72f37ce975ba88dbd775605
[ "BSD-2-Clause" ]
2
2019-12-14T14:59:22.000Z
2020-01-30T16:17:28.000Z
train_n_test/train_decoder.py
kamieen03/style-transfer-net
c9f56aa579553be8c72f37ce975ba88dbd775605
[ "BSD-2-Clause" ]
null
null
null
train_n_test/train_decoder.py
kamieen03/style-transfer-net
c9f56aa579553be8c72f37ce975ba88dbd775605
[ "BSD-2-Clause" ]
1
2020-01-16T20:03:35.000Z
2020-01-16T20:03:35.000Z
#!/usr/bin/env python3 import os, sys sys.path.append(os.path.abspath(__file__ + "/../../")) # just so we can use 'libs' import torch.utils.data import torch.optim as optim from torch import nn import numpy as np import torch from libs.Loader import Dataset from libs.shufflenetv2 import ShuffleNetV2AutoEncoder BA...
35.905512
84
0.53114
534
4,560
4.378277
0.273408
0.050043
0.027374
0.029085
0.38195
0.328058
0.300684
0.212575
0.212575
0.145851
0
0.014845
0.35
4,560
126
85
36.190476
0.773954
0.124342
0
0.162791
0
0
0.146495
0.053707
0
0
0
0
0
1
0.069767
false
0
0.093023
0
0.197674
0.034884
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de6c1a64c58a8aca902a8fc78dd2204b84031a65
2,871
py
Python
src/main/create/c_chains_user_json.py
WikiCommunityHealth/wikimedia-revert
b584044d8b6a61a79d98656db356bf1f74d23ee0
[ "MIT" ]
null
null
null
src/main/create/c_chains_user_json.py
WikiCommunityHealth/wikimedia-revert
b584044d8b6a61a79d98656db356bf1f74d23ee0
[ "MIT" ]
null
null
null
src/main/create/c_chains_user_json.py
WikiCommunityHealth/wikimedia-revert
b584044d8b6a61a79d98656db356bf1f74d23ee0
[ "MIT" ]
null
null
null
#%% # PAGE EXAMPLE # {'title': 'Zuppa_di_pesce_(film)', # 'chains': [{'revisions': ['95861493', '95861612', '95973728'], # 'users': {'93.44.99.33': '', 'Kirk39': '63558', 'AttoBot': '482488'}, # 'len': 3, # 'start': '2018-04-01 04:54:40.0', # 'end': '2018-04-05 07:36:26.0'}], # 'n_chains': 1, # 'n_rever...
26.1
183
0.563915
377
2,871
4.201592
0.360743
0.045455
0.034091
0.020202
0.102273
0.102273
0.102273
0.059343
0.059343
0
0
0.049856
0.273424
2,871
109
184
26.33945
0.709492
0.198537
0
0.030769
0
0
0.105748
0.053971
0
0
0
0
0
1
0.061538
false
0
0.123077
0
0.2
0.015385
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de72e8f348089a00d8a491df1f651cf4a945ca9c
1,500
py
Python
Heap/378-Kth_Smalles_Element_in_a_Sorted_Matrix.py
dingwenzheng730/Leet
c08bd48e8dcc6bca41134d218d39f66bfc112eaf
[ "MIT" ]
1
2021-06-15T21:01:53.000Z
2021-06-15T21:01:53.000Z
Heap/378-Kth_Smalles_Element_in_a_Sorted_Matrix.py
dingwenzheng730/Leet
c08bd48e8dcc6bca41134d218d39f66bfc112eaf
[ "MIT" ]
null
null
null
Heap/378-Kth_Smalles_Element_in_a_Sorted_Matrix.py
dingwenzheng730/Leet
c08bd48e8dcc6bca41134d218d39f66bfc112eaf
[ "MIT" ]
null
null
null
''' Given an n x n matrix where each of the rows and columns are sorted in ascending order, return the kth smallest element in the matrix. Note that it is the kth smallest element in the sorted order, not the kth distinct element. Input: matrix = [[1,5,9],[10,11,13],[12,13,15]], k = 8 Output: 13 Explanation: The elem...
24.193548
134
0.611333
281
1,500
3.24911
0.377224
0.010953
0.013143
0.021906
0.200438
0.192771
0.07667
0.07667
0.07667
0.07667
0
0.079821
0.256667
1,500
61
135
24.590164
0.739013
0.694667
0
0
0
0
0
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de73b0477272b09621a0a7e87406fe9c6c2a1f06
5,088
py
Python
baseStation/test/vision/service/test_visionService.py
olgam4/design3
6e05d123a24deae7dda646df535844a158ef5cc0
[ "WTFPL" ]
null
null
null
baseStation/test/vision/service/test_visionService.py
olgam4/design3
6e05d123a24deae7dda646df535844a158ef5cc0
[ "WTFPL" ]
null
null
null
baseStation/test/vision/service/test_visionService.py
olgam4/design3
6e05d123a24deae7dda646df535844a158ef5cc0
[ "WTFPL" ]
null
null
null
from unittest import TestCase from unittest.mock import Mock import numpy as np from pathfinding.domain.angle import Angle from pathfinding.domain.coord import Coord from vision.domain.image import Image from vision.domain.rectangle import Rectangle from vision.infrastructure.cvVisionException import CameraDoesNotExi...
45.428571
117
0.725825
631
5,088
5.459588
0.179081
0.069666
0.073149
0.027576
0.501306
0.406676
0.34717
0.327431
0.297823
0.297823
0
0.009035
0.195165
5,088
111
118
45.837838
0.832234
0
0
0.235294
0
0
0.001376
0
0
0
0
0
0.176471
1
0.105882
false
0
0.105882
0
0.294118
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de758aaeb7ae98b14c58fbe707173fad48237087
8,753
py
Python
bmdal/layer_features.py
dholzmueller/bmdal_reg
1a9e9c19fbd350ec32a2bd7b505e7015df7dc9bf
[ "Apache-2.0" ]
3
2022-03-19T21:30:10.000Z
2022-03-30T08:20:48.000Z
bmdal/layer_features.py
dholzmueller/bmdal_reg
1a9e9c19fbd350ec32a2bd7b505e7015df7dc9bf
[ "Apache-2.0" ]
null
null
null
bmdal/layer_features.py
dholzmueller/bmdal_reg
1a9e9c19fbd350ec32a2bd7b505e7015df7dc9bf
[ "Apache-2.0" ]
null
null
null
from .feature_maps import * import torch.nn as nn class LayerGradientComputation: """ Abstract base class that can be used as a second base class for layers that support the computation of gradient features """ def __init__(self): super().__init__() # in case this is used with multiple i...
44.207071
118
0.682052
1,148
8,753
5.026132
0.203833
0.02669
0.016984
0.014558
0.278336
0.238821
0.217331
0.188215
0.188215
0.174697
0
0.003487
0.24643
8,753
197
119
44.431472
0.871286
0.434251
0
0.202381
0
0
0
0
0
0
0
0
0
1
0.190476
false
0
0.02381
0.02381
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de759ba42ef02e88463fee41b02959bd0f0ddd2c
35,389
py
Python
pinsey/gui/MainWindow.py
RailKill/Pinsey
72a283e6c5683b27918b511d80e45c3af4e67539
[ "MIT" ]
3
2021-02-01T06:47:06.000Z
2022-01-09T05:54:35.000Z
pinsey/gui/MainWindow.py
RailKill/Pinsey
72a283e6c5683b27918b511d80e45c3af4e67539
[ "MIT" ]
4
2019-10-23T09:52:36.000Z
2022-03-11T23:17:23.000Z
pinsey/gui/MainWindow.py
RailKill/Pinsey
72a283e6c5683b27918b511d80e45c3af4e67539
[ "MIT" ]
null
null
null
from configparser import ConfigParser from configparser import DuplicateSectionError from PyQt5 import QtCore, QtGui, QtWidgets from pinsey import Constants from pinsey.Utils import clickable, center, picture_grid, horizontal_line, resolve_message_sender, name_set, windows from pinsey.gui.MessageWindow import MessageW...
50.700573
121
0.628755
3,818
35,389
5.602672
0.130959
0.019962
0.018653
0.008882
0.316395
0.192558
0.117433
0.102286
0.086532
0.063718
0
0.009658
0.271469
35,389
697
122
50.773314
0.820029
0.062562
0
0.120879
0
0
0.068093
0.006405
0
0
0
0.001435
0
1
0.047619
false
0.009158
0.027473
0
0.084249
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de766a3b6f5c4477c098e9f336005c2394afbbc1
1,506
py
Python
app/api/api_v1/tasks/emails.py
cdlaimin/fastapi
4acf1a1da4a1eedd81a3bdf6256661c2464928b9
[ "BSD-3-Clause" ]
null
null
null
app/api/api_v1/tasks/emails.py
cdlaimin/fastapi
4acf1a1da4a1eedd81a3bdf6256661c2464928b9
[ "BSD-3-Clause" ]
null
null
null
app/api/api_v1/tasks/emails.py
cdlaimin/fastapi
4acf1a1da4a1eedd81a3bdf6256661c2464928b9
[ "BSD-3-Clause" ]
null
null
null
# -*- encoding: utf-8 -*- """ @File : emails.py @Contact : 1053522308@qq.com @License : (C)Copyright 2017-2018, Liugroup-NLPR-CASIA @Modify Time @Author @Version @Desciption ------------ ------- -------- ----------- 2020/9/27 10:22 下午 wuxiaoqiang 1.0 None """ import as...
34.227273
108
0.625498
202
1,506
4.569307
0.589109
0.070423
0.023835
0
0
0
0
0
0
0
0
0.045075
0.204515
1,506
43
109
35.023256
0.725376
0.199867
0
0
0
0.08
0.22807
0.080201
0
0
0
0
0
1
0.04
false
0.04
0.2
0
0.24
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de76f5e1a1407299a65c28e63772cca898458059
13,487
py
Python
lightwood/encoders/text/distilbert.py
ritwik12/lightwood
7975688355fba8b0f8349dd55a1b6cb625c3efd0
[ "MIT" ]
null
null
null
lightwood/encoders/text/distilbert.py
ritwik12/lightwood
7975688355fba8b0f8349dd55a1b6cb625c3efd0
[ "MIT" ]
null
null
null
lightwood/encoders/text/distilbert.py
ritwik12/lightwood
7975688355fba8b0f8349dd55a1b6cb625c3efd0
[ "MIT" ]
null
null
null
import time import copy import random import logging from functools import partial import numpy as np import torch from torch.utils.data import DataLoader from transformers import DistilBertModel, DistilBertForSequenceClassification, DistilBertTokenizer, AlbertModel, AlbertForSequenceClassification, DistilBertTokenize...
46.993031
456
0.671091
1,740
13,487
4.932759
0.183333
0.026215
0.009088
0.018758
0.499243
0.464406
0.40487
0.372364
0.366888
0.366888
0
0.013556
0.228813
13,487
286
457
47.157343
0.811653
0.061837
0
0.308824
0
0
0.056413
0.007437
0
0
0
0.003497
0
1
0.034314
false
0.004902
0.098039
0
0.151961
0.009804
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de775456d4d41592b9970922b77c527e29122163
4,542
py
Python
scripts/scopdominfo.py
stivalaa/cuda_satabsearch
b947fb711f8b138e5a50c81e7331727c372eb87d
[ "MIT" ]
null
null
null
scripts/scopdominfo.py
stivalaa/cuda_satabsearch
b947fb711f8b138e5a50c81e7331727c372eb87d
[ "MIT" ]
null
null
null
scripts/scopdominfo.py
stivalaa/cuda_satabsearch
b947fb711f8b138e5a50c81e7331727c372eb87d
[ "MIT" ]
null
null
null
#!/usr/bin/env python ############################################################################### # # scomdominfo.py - Report information folds and classes of a list of SCOP sids # # File: scomdominfo.py # Author: Alex Stivala # Created: November 2008 # # $Id: scopdominfo.py 3009 2009-12-08 03:01:48Z alexs $ # ...
30.689189
148
0.610524
592
4,542
4.548986
0.3125
0.008912
0.018567
0.015596
0.157817
0.103231
0.017081
0
0
0
0
0.017721
0.192426
4,542
147
149
30.897959
0.716467
0.483487
0
0.06383
0
0.021277
0.080637
0
0
0
0
0
0
1
0.06383
false
0
0.06383
0
0.12766
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de79c16d6df471bd5320f3fc4154354634f400a7
1,334
py
Python
serverless/pytorch/foolwood/siammask/nuclio/model_handler.py
arthurtibame/cvat
0062ecdec34a9ffcad33e1664a7cac663bec4ecf
[ "MIT" ]
null
null
null
serverless/pytorch/foolwood/siammask/nuclio/model_handler.py
arthurtibame/cvat
0062ecdec34a9ffcad33e1664a7cac663bec4ecf
[ "MIT" ]
null
null
null
serverless/pytorch/foolwood/siammask/nuclio/model_handler.py
arthurtibame/cvat
0062ecdec34a9ffcad33e1664a7cac663bec4ecf
[ "MIT" ]
1
2021-09-17T10:19:30.000Z
2021-09-17T10:19:30.000Z
# Copyright (C) 2020 Intel Corporation # # SPDX-License-Identifier: MIT from tools.test import * import os class ModelHandler: def __init__(self): # Setup device self.device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') torch.backends.cudnn.benchmark = True base_d...
34.205128
93
0.614693
166
1,334
4.813253
0.463855
0.050063
0.060075
0.035044
0.042553
0
0
0
0
0
0
0.006122
0.265367
1,334
38
94
35.105263
0.809184
0.073463
0
0
0
0
0.093648
0.038274
0
0
0
0
0
1
0.076923
false
0
0.115385
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de79c50bcf2db093ce388c48ecf4f5cdef4ddb45
10,842
py
Python
pynmt/__init__.py
obrmmk/demo
b5deb85b2b2bf118b850f93c255ee88d055156a8
[ "MIT" ]
null
null
null
pynmt/__init__.py
obrmmk/demo
b5deb85b2b2bf118b850f93c255ee88d055156a8
[ "MIT" ]
null
null
null
pynmt/__init__.py
obrmmk/demo
b5deb85b2b2bf118b850f93c255ee88d055156a8
[ "MIT" ]
1
2021-11-23T14:04:36.000Z
2021-11-23T14:04:36.000Z
import torch import torch.nn as nn from torch.nn import (TransformerEncoder, TransformerDecoder, TransformerEncoderLayer, TransformerDecoderLayer) from torch import Tensor from typing import Iterable, List import math import os import numpy as np try: from janome.tokenizer import Tokenizer ex...
36.14
168
0.620365
1,348
10,842
4.735905
0.207715
0.019737
0.012061
0.016291
0.181391
0.124843
0.110902
0.099937
0.053258
0.039474
0
0.011876
0.269969
10,842
299
169
36.26087
0.794694
0.078676
0
0.068966
0
0
0.020833
0.006643
0
0
0
0
0
1
0.098522
false
0
0.059113
0.029557
0.256158
0.004926
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de7c4534ed26f1d3158aaf6b53415fa79e0c249d
574
py
Python
patron/__init__.py
rafaelaraujobsb/patron
b2d23d4149a5f48156a4a2b0638daac33a66cc6a
[ "MIT" ]
null
null
null
patron/__init__.py
rafaelaraujobsb/patron
b2d23d4149a5f48156a4a2b0638daac33a66cc6a
[ "MIT" ]
null
null
null
patron/__init__.py
rafaelaraujobsb/patron
b2d23d4149a5f48156a4a2b0638daac33a66cc6a
[ "MIT" ]
null
null
null
from flask import Flask from loguru import logger from flasgger import Swagger from patron.api import api_bp logger.add("api.log", format="{time:YYYY-MM-DD at HH:mm:ss} | {level} | {message}", rotation="500 MB") template = { "swagger": "2.0", "info": { "title": "PATRON", "description": "", ...
19.793103
102
0.602787
70
574
4.828571
0.614286
0.029586
0
0
0
0
0
0
0
0
0
0.0181
0.229965
574
28
103
20.5
0.746606
0
0
0.090909
0
0.045455
0.285714
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de7dc549a1952d8dda02b33f493f1bb859b37917
735
py
Python
src/perceptron.py
tomoki/deep-learning-from-scratch
0b6144806b6b79462d6d65616a64b1774f876973
[ "MIT" ]
1
2018-08-31T09:39:11.000Z
2018-08-31T09:39:11.000Z
src/perceptron.py
tomoki/deep-learning-from-scratch
0b6144806b6b79462d6d65616a64b1774f876973
[ "MIT" ]
null
null
null
src/perceptron.py
tomoki/deep-learning-from-scratch
0b6144806b6b79462d6d65616a64b1774f876973
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pylab as plt def step_function(x): y = x > 0 return y.astype(np.int) def sigmoid(x): return 1 / (1 + np.exp(-x)) def relu(x): return np.maximum(0, x) def AND(x1, x2): x = np.array([x1, x2]) w = np.array([0.5, 0.5]) b = -0.7 tmp = np.sum(w * x) + b...
17.093023
31
0.469388
137
735
2.510949
0.262774
0.069767
0.043605
0.061047
0.590116
0.590116
0.590116
0.590116
0.590116
0.590116
0
0.090909
0.356463
735
42
32
17.5
0.636364
0
0
0.555556
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.055556
0.055556
0.472222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de82bbe06365e1885857bfec2f5eb9144e01b08c
1,729
py
Python
dncnn/dncnn.py
kTonpa/DnCNN
aca7e07ccbe6b75bee7d4763958dade4a8eee609
[ "MIT" ]
null
null
null
dncnn/dncnn.py
kTonpa/DnCNN
aca7e07ccbe6b75bee7d4763958dade4a8eee609
[ "MIT" ]
null
null
null
dncnn/dncnn.py
kTonpa/DnCNN
aca7e07ccbe6b75bee7d4763958dade4a8eee609
[ "MIT" ]
null
null
null
""" Project: dncnn Author: khalil MEFTAH Date: 2021-11-26 DnCNN: Deep Neural Convolutional Network for Image Denoising model implementation """ import torch from torch import nn import torch.nn.functional as F # helper functions def eval_decorator(fn): def inner(model, *args, **kwargs): was_training = m...
25.80597
142
0.638519
224
1,729
4.741071
0.375
0.065913
0.079096
0.056497
0.343691
0.343691
0.274011
0.274011
0.234463
0.234463
0
0.017955
0.259109
1,729
66
143
26.19697
0.811085
0.108155
0
0.05
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.075
0.025
0.35
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de848d1a58c8622dd6042ce58386b34d78eaa285
41,886
py
Python
scripts/fabfile/tasks.py
Alchem-Lab/deneva
5201ef12fd8235fea7833709b8bffe45f53877eb
[ "Apache-2.0" ]
88
2017-01-19T03:15:24.000Z
2022-03-30T16:22:19.000Z
scripts/fabfile/tasks.py
Alchem-Lab/deneva
5201ef12fd8235fea7833709b8bffe45f53877eb
[ "Apache-2.0" ]
null
null
null
scripts/fabfile/tasks.py
Alchem-Lab/deneva
5201ef12fd8235fea7833709b8bffe45f53877eb
[ "Apache-2.0" ]
22
2017-01-20T10:22:31.000Z
2022-02-10T18:55:36.000Z
#!/usr/bin/python from __future__ import print_function import logging from fabric.api import task,run,local,put,get,execute,settings from fabric.decorators import * from fabric.context_managers import shell_env,quiet from fabric.exceptions import * from fabric.utils import puts,fastprint from time import sleep from c...
36.549738
172
0.542138
4,981
41,886
4.415378
0.1052
0.012959
0.021643
0.020052
0.613286
0.53758
0.492384
0.465648
0.439276
0.413995
0
0.007384
0.327508
41,886
1,145
173
36.581659
0.773395
0.182615
0
0.581342
0
0.004551
0.133883
0.022201
0
0
0
0
0.002275
1
0.044369
false
0.002275
0.020478
0
0.080774
0.029579
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de8b266bc66642e780d1f515de7639ab0386bd85
2,690
py
Python
scheduler.py
shuaiqi361/a-PyTorch-Tutorial-to-Object-Detection
5706b82ff67911864967aa72adf7e4a994c7ec89
[ "MIT" ]
null
null
null
scheduler.py
shuaiqi361/a-PyTorch-Tutorial-to-Object-Detection
5706b82ff67911864967aa72adf7e4a994c7ec89
[ "MIT" ]
null
null
null
scheduler.py
shuaiqi361/a-PyTorch-Tutorial-to-Object-Detection
5706b82ff67911864967aa72adf7e4a994c7ec89
[ "MIT" ]
null
null
null
import json import os import torch import math def adjust_learning_rate(optimizer, scale): """ Scale learning rate by a specified factor. :param optimizer: optimizer whose learning rate must be shrunk. :param scale: factor to multiply learning rate with. """ for param_group in optimizer.param...
36.351351
106
0.600743
361
2,690
4.293629
0.168975
0.109677
0.085161
0.058065
0.706452
0.693548
0.666452
0.666452
0.605161
0.530323
0
0.007748
0.280297
2,690
73
107
36.849315
0.792872
0.142007
0
0.340426
0
0
0.091715
0
0
0
0
0
0
1
0.106383
false
0
0.085106
0
0.255319
0.12766
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de8c915237260239c036a5cbacb8018944e669da
8,774
py
Python
lego_sorter.py
bmleedy/lego_sorter
0164bc0042127f255590d1883b5edadfba781537
[ "BSD-2-Clause" ]
null
null
null
lego_sorter.py
bmleedy/lego_sorter
0164bc0042127f255590d1883b5edadfba781537
[ "BSD-2-Clause" ]
null
null
null
lego_sorter.py
bmleedy/lego_sorter
0164bc0042127f255590d1883b5edadfba781537
[ "BSD-2-Clause" ]
null
null
null
#!/bin/python3 """This is the top-level program to operate the Raspberry Pi based lego sorter.""" # Things I can set myself: AWB, Brightness, crop, exposure_mode, # exposure_speed,iso (sensitivity), overlays, preview_alpha, # preview_window, saturation, shutter_speed, # Thought for future enhancement: at start...
35.379032
94
0.624915
1,176
8,774
4.528061
0.326531
0.005258
0.016526
0.02554
0.112113
0.099531
0.084883
0.084883
0.057653
0.015399
0
0.026191
0.277638
8,774
247
95
35.522267
0.813979
0.314908
0
0.117647
0
0
0.121951
0.017276
0
0
0
0.008097
0
1
0.019608
false
0
0.058824
0
0.143791
0.084967
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de8e8bcbbb73ed82dfadbb561cfbfe8bb447a711
5,017
py
Python
networks/autoencoder/losses.py
annachen/dl_playground
f263dc16b4f0d91f6d33d94e678a9bbe2ace8913
[ "MIT" ]
null
null
null
networks/autoencoder/losses.py
annachen/dl_playground
f263dc16b4f0d91f6d33d94e678a9bbe2ace8913
[ "MIT" ]
null
null
null
networks/autoencoder/losses.py
annachen/dl_playground
f263dc16b4f0d91f6d33d94e678a9bbe2ace8913
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np EPS = 1e-5 def KL_monte_carlo(z, mean, sigma=None, log_sigma=None): """Computes the KL divergence at a point, given by z. Implemented based on https://www.tensorflow.org/tutorials/generative/cvae This is the part "log(p(z)) - log(q(z|x)) where z is sampled from...
24.960199
88
0.590592
705
5,017
4.060993
0.202837
0.064268
0.033531
0.023053
0.502969
0.418093
0.396787
0.348236
0.284666
0.243451
0
0.012305
0.271078
5,017
200
89
25.085
0.770577
0.370142
0
0.243243
0
0
0.007105
0
0
0
0
0
0.013514
1
0.094595
false
0
0.027027
0
0.216216
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de9037d4a2c6b5fbbf0a5f4e22a9796ae161e5b0
4,288
py
Python
Onderdelen/Hoofdscherm.py
RemcoTaal/IDP
33959e29235448c38b7936f16c7421a24130e745
[ "MIT" ]
null
null
null
Onderdelen/Hoofdscherm.py
RemcoTaal/IDP
33959e29235448c38b7936f16c7421a24130e745
[ "MIT" ]
null
null
null
Onderdelen/Hoofdscherm.py
RemcoTaal/IDP
33959e29235448c38b7936f16c7421a24130e745
[ "MIT" ]
null
null
null
from tkinter import * import os, xmltodict, requests def knop1(): 'Open GUI huidig station' global root root.destroy() os.system('Huidig_Station.py') def knop2(): 'Open GUI ander station' global root root.destroy() os.system('Ander_Station.py') def nl_to_eng(): 'Wanneer er op d...
34.861789
117
0.541045
422
4,288
5.473934
0.341232
0.020779
0.041558
0.05368
0.334199
0.207792
0.179221
0.112554
0.112554
0.112554
0
0.048206
0.356576
4,288
122
118
35.147541
0.789054
0.135728
0
0.34375
0
0
0.215756
0.047268
0
0
0
0
0
1
0.041667
false
0
0.020833
0
0.0625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0