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
2594fb6de6dffcce3372d066529fcf8255ec3b49
573
py
Python
regulation/settings.py
cfpb/regulations-xml-parser
e3bcbd9025f6fb6fa9ef2671fb8ed061c8de3e88
[ "CC0-1.0" ]
4
2016-01-02T21:04:42.000Z
2019-08-17T06:30:36.000Z
regulation/settings.py
DalavanCloud/regulations-xml-parser
e3bcbd9025f6fb6fa9ef2671fb8ed061c8de3e88
[ "CC0-1.0" ]
49
2016-01-25T15:19:04.000Z
2017-12-06T20:02:09.000Z
regulation/settings.py
DalavanCloud/regulations-xml-parser
e3bcbd9025f6fb6fa9ef2671fb8ed061c8de3e88
[ "CC0-1.0" ]
9
2016-01-21T19:25:30.000Z
2021-02-20T10:53:47.000Z
#!/usr/bin/env python from __future__ import print_function from __future__ import unicode_literals import importlib import os import sys # Try to load the settings module try: local_settings = importlib.import_module( os.environ.get('REGML_SETTINGS_FILE', 'settings')) globals().update(local_setti...
27.285714
64
0.722513
70
573
5.542857
0.585714
0.100515
0.082474
0.134021
0.154639
0
0
0
0
0
0
0.002169
0.195462
573
20
65
28.65
0.839479
0.09075
0
0.133333
0
0
0.242775
0
0
0
0
0
0
1
0
false
0
0.533333
0
0.533333
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
2596f72f06a517f88b80e5187a646537bcd3ae06
16,968
py
Python
src/ui/ui_send_payout_dlg.py
muteio/ghostnode-tool
c42868ed6c009c47482d23ebac0d101adbd8c103
[ "MIT" ]
1
2019-11-02T01:39:52.000Z
2019-11-02T01:39:52.000Z
src/ui/ui_send_payout_dlg.py
NixPlatform/ghostnode-tool
c42868ed6c009c47482d23ebac0d101adbd8c103
[ "MIT" ]
null
null
null
src/ui/ui_send_payout_dlg.py
NixPlatform/ghostnode-tool
c42868ed6c009c47482d23ebac0d101adbd8c103
[ "MIT" ]
1
2019-09-21T15:08:36.000Z
2019-09-21T15:08:36.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'ui_send_payout_dlg.ui' # # Created by: PyQt5 UI code generator 5.9.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_SendPayoutDlg(object): def setupUi(self, SendPayoutDlg): ...
61.701818
116
0.753713
1,774
16,968
6.966742
0.125141
0.054697
0.036249
0.040456
0.503843
0.395582
0.295089
0.256008
0.200987
0.160288
0
0.022664
0.149694
16,968
274
117
61.927007
0.833934
0.011256
0
0.096154
1
0
0.071859
0.004055
0
0
0
0
0
1
0.007692
false
0
0.007692
0
0.019231
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2597942237584a092a777b8ebc52564660ff2499
251
py
Python
evo_mwc/__init__.py
mrazomej/evo_mwc
b69c800c5518d906cd2c65334c6feffdbab5acf1
[ "MIT" ]
null
null
null
evo_mwc/__init__.py
mrazomej/evo_mwc
b69c800c5518d906cd2c65334c6feffdbab5acf1
[ "MIT" ]
2
2020-06-01T22:36:08.000Z
2020-07-01T23:32:06.000Z
evo_mwc/__init__.py
mrazomej/evo_mwc
b69c800c5518d906cd2c65334c6feffdbab5acf1
[ "MIT" ]
1
2019-07-09T21:18:52.000Z
2019-07-09T21:18:52.000Z
# -*- coding: utf-8 -*- """Top level package for evo_utils utilities""" from . import viz from . import fitderiv from . import model __author__ = """Manuel Razo""" __email__ = """mrazomej {at} caltech.edu""" __version__ = '0.0.1' name = 'evo_mwc'
17.928571
47
0.661355
34
251
4.470588
0.823529
0.197368
0
0
0
0
0
0
0
0
0
0.019139
0.167331
251
13
48
19.307692
0.708134
0.25498
0
0
0
0
0.265193
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
259eedab428d052f5de5cef2f33e8a5144b57d54
1,180
py
Python
setup.py
transientlunatic/gravitic
3f818b5b52dafd8db0cef8f7da930996c84125be
[ "BSD-3-Clause" ]
2
2021-04-12T10:38:58.000Z
2021-04-12T13:53:16.000Z
setup.py
transientlunatic/gravitic
3f818b5b52dafd8db0cef8f7da930996c84125be
[ "BSD-3-Clause" ]
null
null
null
setup.py
transientlunatic/gravitic
3f818b5b52dafd8db0cef8f7da930996c84125be
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup # with open('README.rst') as readme_file: # readme = readme_file.read() # with open('HISTORY.rst') as history_file: # history = history_file.read() with open("requirements.txt") as requires_file: requirements = requires_file.read().split("\n") requirements = [requirement for...
28.780488
88
0.683051
132
1,180
5.931818
0.537879
0.030651
0.030651
0.040868
0
0
0
0
0
0
0
0
0.184746
1,180
40
89
29.5
0.813929
0.25678
0
0
0
0
0.288018
0.062212
0
0
0
0.025
0
1
0
false
0
0.038462
0
0.038462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
25ae6c1ba93e797d3822a5f53bd87f019d8ffea6
1,420
py
Python
modules/Registry/lv1_os_win_reg_mac_address.py
naaya17/carpe
fa2e3cfebe20f8839c985e5b9b78b538800172a1
[ "Apache-2.0" ]
null
null
null
modules/Registry/lv1_os_win_reg_mac_address.py
naaya17/carpe
fa2e3cfebe20f8839c985e5b9b78b538800172a1
[ "Apache-2.0" ]
null
null
null
modules/Registry/lv1_os_win_reg_mac_address.py
naaya17/carpe
fa2e3cfebe20f8839c985e5b9b78b538800172a1
[ "Apache-2.0" ]
null
null
null
class Mac_Address_Information: par_id = '' case_id = '' evd_id = '' mac_address = '' description = '' backup_flag = '' source_location = [] def MACADDRESS(reg_system): mac_address_list = [] mac_address_count = 0 reg_key = reg_system.find_key(r"ControlSet001\Control\Class\{4d3...
45.806452
167
0.625352
164
1,420
5.030488
0.323171
0.254545
0.118788
0.10303
0.541818
0.473939
0.242424
0.242424
0
0
0
0.057307
0.262676
1,420
31
168
45.806452
0.730659
0
0
0
0
0
0.137421
0.097956
0
0
0
0
0
1
0.037037
false
0
0
0
0.37037
0.037037
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
25b1a19eb6d8e239df7d680bb083dcaf01ffaddb
2,864
py
Python
apps/exporter/models.py
mjj55409/cpq-exporter
ae46c1580a1c7d228a352a88a61164d9b3c2490c
[ "MIT" ]
null
null
null
apps/exporter/models.py
mjj55409/cpq-exporter
ae46c1580a1c7d228a352a88a61164d9b3c2490c
[ "MIT" ]
null
null
null
apps/exporter/models.py
mjj55409/cpq-exporter
ae46c1580a1c7d228a352a88a61164d9b3c2490c
[ "MIT" ]
null
null
null
from django.conf import settings from django.db import models # from django.template.defaultfilters import slugify from django.utils.translation import ugettext_lazy as _ class KB (models.Model): name = models.CharField(max_length=30, unique=True) repository_url = models.CharField(max_length=100, blank=False)...
30.795699
95
0.706355
349
2,864
5.590258
0.26361
0.084572
0.101486
0.135315
0.433624
0.421322
0.309585
0.215274
0.160943
0.13634
0
0.014906
0.180168
2,864
92
96
31.130435
0.816014
0.017458
0
0.181818
0
0
0.025249
0
0
0
0
0
0
1
0.075758
false
0
0.045455
0.075758
0.878788
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
25b3918a371821cdc9c995f47c968bb1c9ab06ab
6,312
py
Python
src/forms.py
Afsharov/observer-frontend
bd93fd1d7fa1a63ca650640995e1f10b0c99df44
[ "BSD-3-Clause" ]
null
null
null
src/forms.py
Afsharov/observer-frontend
bd93fd1d7fa1a63ca650640995e1f10b0c99df44
[ "BSD-3-Clause" ]
null
null
null
src/forms.py
Afsharov/observer-frontend
bd93fd1d7fa1a63ca650640995e1f10b0c99df44
[ "BSD-3-Clause" ]
1
2021-04-23T08:25:55.000Z
2021-04-23T08:25:55.000Z
"""This module contains all forms used by the Observer-Hive frontend. """ import os import json import logging from bcrypt import checkpw from flask_wtf import FlaskForm from flask_login import current_user from wtforms import StringField, PasswordField from wtforms.validators import InputRequired, EqualTo, Length lo...
35.460674
106
0.53628
596
6,312
5.615772
0.260067
0.061846
0.080669
0.096803
0.475949
0.435913
0.366597
0.366597
0.366597
0.366597
0
0.004938
0.390368
6,312
177
107
35.661017
0.864865
0.209918
0
0.574257
0
0
0.149812
0
0
0
0
0
0
1
0.069307
false
0.257426
0.079208
0
0.366337
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
25beeed839f274d72d91b74c8a4940ac9efd14ae
1,570
py
Python
eddiebot_apps/eddiebot_ssl/scripts/model_controller.py
TooSchoolForCool/EddieBot-ROS
5dad6d5a6eb974135b7c9587abc0ae17d1ec6760
[ "Apache-2.0" ]
5
2019-05-15T19:31:47.000Z
2019-08-31T01:12:35.000Z
eddiebot_apps/eddiebot_ssl/scripts/model_controller.py
TooSchoolForCool/EddieBot-ROS
5dad6d5a6eb974135b7c9587abc0ae17d1ec6760
[ "Apache-2.0" ]
null
null
null
eddiebot_apps/eddiebot_ssl/scripts/model_controller.py
TooSchoolForCool/EddieBot-ROS
5dad6d5a6eb974135b7c9587abc0ae17d1ec6760
[ "Apache-2.0" ]
4
2019-06-03T12:21:44.000Z
2019-12-25T08:57:46.000Z
#!/usr/bin/env python import rospy import tf from gazebo_msgs.srv import SetModelState, DeleteModel, SpawnModel from gazebo_msgs.msg import ModelState from geometry_msgs.msg import Pose, Point, Quaternion class ModelController(object): def __init__(self): rospy.wait_for_service("gazebo/delete_model") rospy.wai...
28.545455
84
0.738217
226
1,570
4.893805
0.29646
0.065099
0.03255
0.051537
0.221519
0.142857
0.088608
0.088608
0.088608
0.088608
0
0.005926
0.140127
1,570
55
85
28.545455
0.813333
0.049682
0
0.153846
0
0
0.108652
0.060362
0
0
0
0
0
0
null
null
0
0.128205
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
25c80db82d1ebad170680349cd93672e15412051
1,342
py
Python
code/src/main.py
ChaofWang/AWSRN
b7e285e73667e114ccb69e354254c4f67ca39e25
[ "MIT" ]
162
2019-04-05T02:05:45.000Z
2022-01-15T02:16:59.000Z
code/src/main.py
ChaofWang/AWSRN
b7e285e73667e114ccb69e354254c4f67ca39e25
[ "MIT" ]
16
2019-05-11T15:38:25.000Z
2020-08-12T13:15:45.000Z
code/src/main.py
ChaofWang/AWSRN
b7e285e73667e114ccb69e354254c4f67ca39e25
[ "MIT" ]
22
2019-04-20T14:37:51.000Z
2022-03-21T05:58:17.000Z
import torch import utility import data import model import loss from option import args from trainer import Trainer def print_network(net): num_params = 0 for param in net.parameters(): num_params += param.numel() print(net) print('Total number of parameters: %d' % num_params) def print_set...
27.958333
87
0.671386
183
1,342
4.819672
0.355191
0.030612
0.034014
0
0
0
0
0
0
0
0
0.00093
0.198957
1,342
47
88
28.553191
0.819535
0
0
0
0
0
0.168531
0
0
0
0
0
0
1
0.051282
false
0
0.179487
0
0.230769
0.435897
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
25c81eb343b1d3a48857d65ac0f1c63ee02f3d87
710
py
Python
mycroft/views.py
seakers/daphne-brain
1d703d468cd503a21395f986dd72e67b6e556451
[ "MIT" ]
null
null
null
mycroft/views.py
seakers/daphne-brain
1d703d468cd503a21395f986dd72e67b6e556451
[ "MIT" ]
null
null
null
mycroft/views.py
seakers/daphne-brain
1d703d468cd503a21395f986dd72e67b6e556451
[ "MIT" ]
null
null
null
from rest_framework.views import APIView from rest_framework.response import Response from auth_API.helpers import get_or_create_user_information class CheckConnection(APIView): def post(self, request, format=None): # --> 1. Get connection status and id user_info = get_or_create_user_informatio...
29.583333
89
0.7
87
710
5.448276
0.505747
0.050633
0.07173
0.063291
0.109705
0
0
0
0
0
0
0.001783
0.209859
710
23
90
30.869565
0.843137
0.049296
0
0
0
0
0.116418
0
0
0
0
0
0
1
0.076923
false
0
0.230769
0
0.538462
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
1
0
0
1
25d2427f17acf99c0e015181ad76ec8cf75b6f09
1,065
py
Python
src/bst/pygasus/datamanager/grokker.py
codeix/bst.pygasus.datamanager
3b60cbc0b44814701fcbc8c5558a30002a9a2778
[ "ZPL-2.1" ]
null
null
null
src/bst/pygasus/datamanager/grokker.py
codeix/bst.pygasus.datamanager
3b60cbc0b44814701fcbc8c5558a30002a9a2778
[ "ZPL-2.1" ]
null
null
null
src/bst/pygasus/datamanager/grokker.py
codeix/bst.pygasus.datamanager
3b60cbc0b44814701fcbc8c5558a30002a9a2778
[ "ZPL-2.1" ]
null
null
null
import martian from martian.error import GrokError from grokcore.component import name as namedirective from zope import component from bst.pygasus.datamanager.model import ExtBaseModel from bst.pygasus.datamanager.interfaces import IModelTransformer from bst.pygasus.datamanager.transformer import ModelTransfomerUtili...
31.323529
86
0.721127
112
1,065
6.776786
0.455357
0.027668
0.055336
0.098814
0
0
0
0
0
0
0
0
0.212207
1,065
33
87
32.272727
0.904648
0
0
0
0
0
0.005634
0
0
0
0
0
0
1
0.04
false
0
0.28
0
0.56
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
25d28a94c243549378bccac5503509c7d698f1cd
4,833
py
Python
intent_parser/utils/opil_utils.py
SD2E/experimental-intent-parser
65aee0ad800777f265210766a9e5eac431e0feaa
[ "BSD-3-Clause" ]
3
2020-07-09T19:52:58.000Z
2020-08-05T18:05:54.000Z
intent_parser/utils/opil_utils.py
SD2E/experimental-intent-parser
65aee0ad800777f265210766a9e5eac431e0feaa
[ "BSD-3-Clause" ]
293
2020-06-19T18:51:27.000Z
2021-09-17T20:42:41.000Z
intent_parser/utils/opil_utils.py
SD2E/experimental-intent-parser
65aee0ad800777f265210766a9e5eac431e0feaa
[ "BSD-3-Clause" ]
null
null
null
""" Provides a list of functions for building opil objects. """ from intent_parser.intent.measure_property_intent import MeasuredUnit from intent_parser.intent_parser_exceptions import IntentParserException import intent_parser.utils.sbol3_utils as sbol3_utils import intent_parser.table.cell_parser as cell_parser impor...
43.540541
125
0.723774
589
4,833
5.62309
0.193548
0.253623
0.097524
0.041667
0.428744
0.310386
0.249094
0.173007
0.173007
0.157005
0
0.001822
0.205256
4,833
110
126
43.936364
0.860453
0.035175
0
0.206897
0
0
0.023426
0.007092
0
0
0
0
0
1
0.103448
false
0
0.08046
0
0.448276
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
25d56f5b093e66a6e34a5f01df8b3463c937cd78
1,537
py
Python
Tools/fontcompile.py
aunicornfarmer/gotris
6c125071d5add7fc71716ecbb08474c607561555
[ "MIT" ]
63
2015-01-03T04:19:23.000Z
2021-07-19T22:33:16.000Z
Tools/fontcompile.py
aunicornfarmer/gotris
6c125071d5add7fc71716ecbb08474c607561555
[ "MIT" ]
1
2015-09-14T08:55:40.000Z
2018-01-23T08:56:47.000Z
Tools/fontcompile.py
aunicornfarmer/gotris
6c125071d5add7fc71716ecbb08474c607561555
[ "MIT" ]
28
2015-02-23T10:31:05.000Z
2021-06-18T12:33:51.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # compiled font is a binary blob: # 1. magic (MFNT) - 4 bytes # 2. number of symbols - 4 bytes # 3. font y advance - 4 bytes # 4. an array of glyphs (offset_x, offset_y, width, height, tx, ty, tx2, ty2, x_advance) - 36 * number of symbols # (iiIIffffI) # 5. png texture imp...
25.616667
170
0.666233
273
1,537
3.652015
0.355311
0.036108
0.048144
0.064193
0.062187
0
0
0
0
0
0
0.028963
0.146389
1,537
59
171
26.050847
0.730945
0.193234
0
0.057143
0
0
0.054427
0
0
0
0
0
0
0
null
null
0
0.114286
null
null
0.114286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
25db68b1e4b300ed7435559d769a87a914307b00
1,171
py
Python
app/tests/support/test_views.py
Valaraucoo/raven
0157e193baf569be9479a78838dc26d77a11a99d
[ "BSD-3-Clause" ]
3
2020-12-27T21:52:52.000Z
2021-08-23T10:26:10.000Z
app/tests/support/test_views.py
Valaraucoo/raven
0157e193baf569be9479a78838dc26d77a11a99d
[ "BSD-3-Clause" ]
12
2020-12-22T22:36:28.000Z
2021-01-18T13:39:34.000Z
app/tests/support/test_views.py
Valaraucoo/raven
0157e193baf569be9479a78838dc26d77a11a99d
[ "BSD-3-Clause" ]
2
2020-12-27T21:52:39.000Z
2021-11-18T08:08:25.000Z
import pytest from django.urls import reverse from tests.users import factories as users_factories @pytest.mark.django_db class TestTicketCreateView: def test_get(self,client): url = reverse('support:support-contact') response = client.get(url) assert response.status_code == 200 def ...
26.022222
62
0.608027
132
1,171
5.295455
0.333333
0.120172
0.171674
0.206009
0.615165
0.615165
0.529328
0.529328
0.529328
0.37196
0
0.026005
0.277541
1,171
44
63
26.613636
0.800236
0
0
0.387097
0
0
0.125534
0.039283
0
0
0
0
0.193548
1
0.064516
false
0
0.096774
0
0.193548
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
25dbcc8ad9f17eebc5ce137f97fcdf06a4148e19
1,827
py
Python
lc0415_add_strings.py
bowen0701/python-algorithms-data-structures
e625f59a9fc59e4728825078d4434a7968a724e5
[ "BSD-2-Clause" ]
8
2019-03-18T06:37:24.000Z
2022-01-30T07:50:58.000Z
lc0415_add_strings.py
bowen0701/python-algorithms-data-structures
e625f59a9fc59e4728825078d4434a7968a724e5
[ "BSD-2-Clause" ]
null
null
null
lc0415_add_strings.py
bowen0701/python-algorithms-data-structures
e625f59a9fc59e4728825078d4434a7968a724e5
[ "BSD-2-Clause" ]
null
null
null
"""Leetcode 415. Add Strings Easy URL: https://leetcode.com/problems/add-strings/ Given two non-negative integers num1 and num2 represented as string, return the sum of num1 and num2. Note: - The length of both num1 and num2 is < 5100. - Both num1 and num2 contains only digits 0-9. - Both num1 and num2 does not cont...
25.027397
79
0.571429
238
1,827
4.331933
0.453782
0.062076
0.053346
0.043647
0.102813
0
0
0
0
0
0
0.076737
0.322386
1,827
72
80
25.375
0.756058
0.087028
0
0.0625
0
0
0.021415
0
0
0
0
0
0
0
null
null
0
0.03125
null
null
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
1
0
0
0
0
0
0
0
0
1
25dbd0ea80f4dcc92776fe99c6632dc557ac3ea6
4,574
py
Python
tests/version2/test_users.py
SimonAwiti/Questioner-APIs
514de4fd3af1726b7f89525c6bfaaed230842853
[ "MIT" ]
null
null
null
tests/version2/test_users.py
SimonAwiti/Questioner-APIs
514de4fd3af1726b7f89525c6bfaaed230842853
[ "MIT" ]
2
2019-01-15T16:02:32.000Z
2019-01-23T03:32:29.000Z
tests/version2/test_users.py
SimonAwiti/Questioner-APIs
514de4fd3af1726b7f89525c6bfaaed230842853
[ "MIT" ]
1
2019-01-13T23:39:06.000Z
2019-01-13T23:39:06.000Z
"""Tests for handling the users resource""" import unittest import json from app import create_app from app.API.utilities.database import connection class UserTestCase(unittest.TestCase): """Unit testiing for the user regsitration endpoint""" def setUp(self): """Initialize the app and database connect...
37.491803
91
0.547879
471
4,574
5.227176
0.265393
0.032494
0.051178
0.062551
0.586515
0.556052
0.530869
0.50853
0.43095
0.361495
0
0.01943
0.32488
4,574
122
92
37.491803
0.77785
0.233931
0
0.482353
0
0
0.205635
0.059251
0
0
0
0
0
1
0.105882
false
0.082353
0.047059
0
0.164706
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
25e441bb1d41908f9089cf20c37bdbf87f2df670
8,415
py
Python
ratechecker/views.py
DalavanCloud/owning-a-home-api
f7be713740ecfaaaf3fc2f54510c24543e563e9f
[ "CC0-1.0" ]
1
2019-02-25T21:46:14.000Z
2019-02-25T21:46:14.000Z
ratechecker/views.py
DalavanCloud/owning-a-home-api
f7be713740ecfaaaf3fc2f54510c24543e563e9f
[ "CC0-1.0" ]
null
null
null
ratechecker/views.py
DalavanCloud/owning-a-home-api
f7be713740ecfaaaf3fc2f54510c24543e563e9f
[ "CC0-1.0" ]
null
null
null
from django.db.models import Q, Sum, Avg from rest_framework import status from rest_framework.decorators import api_view from rest_framework.response import Response from rest_framework.views import APIView from ratechecker.models import Region, Rate, Adjustment, Fee from ratechecker.ratechecker_parameters import Pa...
36.907895
79
0.627213
1,056
8,415
4.700758
0.203598
0.070508
0.086422
0.027397
0.389605
0.346293
0.299758
0.260274
0.234891
0.190169
0
0.00741
0.26227
8,415
227
80
37.070485
0.792204
0.043613
0
0.2
0
0
0.075372
0
0
0
0
0.004405
0
0
null
null
0
0.04
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
25e493076be7380951a97b3f9afcdfcdb4f2cbab
2,247
py
Python
sharpy/managers/combat2/protoss/micro_voidrays.py
raspersc2/sharpy-sc2
ec8f5870eab233b1d09a54a09bd8b76ea2585735
[ "MIT" ]
2
2020-08-13T01:25:20.000Z
2020-11-22T19:00:06.000Z
sharpy/managers/combat2/protoss/micro_voidrays.py
raspersc2/sharpy-sc2
ec8f5870eab233b1d09a54a09bd8b76ea2585735
[ "MIT" ]
null
null
null
sharpy/managers/combat2/protoss/micro_voidrays.py
raspersc2/sharpy-sc2
ec8f5870eab233b1d09a54a09bd8b76ea2585735
[ "MIT" ]
null
null
null
from sc2.ids.effect_id import EffectId from sc2.position import Point2 from sc2.units import Units from sharpy.managers.combat2 import MicroStep, Action, MoveType from sc2 import AbilityId from sc2.unit import Unit class MicroVoidrays(MicroStep): def should_retreat(self, unit: Unit) -> bool: if unit.shiel...
40.854545
102
0.655986
280
2,247
5.107143
0.367857
0.058741
0.020979
0.037762
0.21049
0.174126
0.105594
0.105594
0.075524
0.075524
0
0.017533
0.263907
2,247
54
103
41.611111
0.847037
0.012016
0
0.209302
0
0
0
0
0
0
0
0
0
1
0.093023
false
0
0.139535
0.023256
0.534884
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
25f057af076ce41992855839a657edce5d7a7ef6
931
py
Python
scripts/processcore.py
paulscottrobson/flat-forth-compiler
c9df5156219da67c08776445a87e055f8cbb3a82
[ "MIT" ]
null
null
null
scripts/processcore.py
paulscottrobson/flat-forth-compiler
c9df5156219da67c08776445a87e055f8cbb3a82
[ "MIT" ]
1
2019-03-03T21:21:07.000Z
2020-07-02T09:20:31.000Z
scripts/processcore.py
paulscottrobson/flat-forth-compiler
c9df5156219da67c08776445a87e055f8cbb3a82
[ "MIT" ]
null
null
null
# *************************************************************************************** # *************************************************************************************** # # Name : processcore.py # Author : Paul Robson (paul@robsons.org.uk) # Date : 22nd December 2018 # Purpose : Convert vocabulary.as...
38.791667
89
0.396348
91
931
3.989011
0.681319
0.107438
0.082645
0
0
0
0
0
0
0
0
0.010949
0.117078
931
24
90
38.791667
0.430657
0.696026
0
0
0
0
0.157303
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
25f4632219bc28cba2e575a7f1f0e698d9f3b930
307
py
Python
converters/all_lp2dgf.py
daajoe/transit_graphs
ac9a7b390f0f4c671a4c66157c9ff20773bb0105
[ "CC-BY-4.0" ]
null
null
null
converters/all_lp2dgf.py
daajoe/transit_graphs
ac9a7b390f0f4c671a4c66157c9ff20773bb0105
[ "CC-BY-4.0" ]
null
null
null
converters/all_lp2dgf.py
daajoe/transit_graphs
ac9a7b390f0f4c671a4c66157c9ff20773bb0105
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env bash trap 'ret=$?; printf "%s\n" "$ERR_MSG" >&2; exit "$ret"' ERR for file in $(find $1 -name \*.lp.bz2) ; do echo $file outputname="../gr/subgraphs/$(basename $file).gr" ./lp2dgf.py -f $file > $outputname if [ $? -ne 0 ]; then echo 'ERROR stopping...' exit 1 fi done
21.928571
60
0.566775
48
307
3.604167
0.791667
0.16185
0
0
0
0
0
0
0
0
0
0.025
0.218241
307
13
61
23.615385
0.695833
0.058632
0
0
0
0
0.354167
0.090278
0
0
0
0
0
0
null
null
0
0
null
null
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
25f55d84b2c9772cbbe9d0c481378e4191bf77e2
362
py
Python
formulario/urls.py
exildev/Rondax
a4a4cad4ec9c575a288f66a353e07e9a57362ede
[ "Apache-2.0" ]
null
null
null
formulario/urls.py
exildev/Rondax
a4a4cad4ec9c575a288f66a353e07e9a57362ede
[ "Apache-2.0" ]
null
null
null
formulario/urls.py
exildev/Rondax
a4a4cad4ec9c575a288f66a353e07e9a57362ede
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import include, url from formulario import views urlpatterns = [ url(r'^form/registro/(?P<pk>\d+)/$', views.RegistroSupraForm.as_view(), name='form_registro'), url(r'^form/registro/create/$', views.RegistroCreateSupraForm.as_view(), name='form_crear_registro'), url(r'^list/campo/$', views.Camp...
45.25
102
0.740331
50
362
5.22
0.52
0.045977
0.114943
0.122605
0
0
0
0
0
0
0
0
0.069061
362
8
103
45.25
0.774481
0
0
0
0
0
0.292011
0.140496
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
25f569e19f03eb74cba3e7ed842d1742b9a17719
381
py
Python
customers/customerauth/migrations/0002_auto_20190127_0931.py
nkmrohit/python
bd644d51909cda548684b5da98eab998564f3568
[ "Apache-2.0" ]
null
null
null
customers/customerauth/migrations/0002_auto_20190127_0931.py
nkmrohit/python
bd644d51909cda548684b5da98eab998564f3568
[ "Apache-2.0" ]
null
null
null
customers/customerauth/migrations/0002_auto_20190127_0931.py
nkmrohit/python
bd644d51909cda548684b5da98eab998564f3568
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.1.4 on 2019-01-27 04:01 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('customerauth', '0001_initial'), ] operations = [ migrations.AlterField( model_name='customers', name='address', ...
20.052632
47
0.593176
39
381
5.74359
0.820513
0
0
0
0
0
0
0
0
0
0
0.07037
0.291339
381
18
48
21.166667
0.759259
0.11811
0
0
1
0
0.11976
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
25fbbd609cc07a46c89f0cadbaed9a2029ec86bf
1,739
py
Python
migrations/versions/00f001a958b1_web_dev_chapter3_quiz_total_score.py
GitauHarrison/somasoma_V1
2d74ad3b58f7e4ea5334e240d5bd30938f615e24
[ "MIT" ]
null
null
null
migrations/versions/00f001a958b1_web_dev_chapter3_quiz_total_score.py
GitauHarrison/somasoma_V1
2d74ad3b58f7e4ea5334e240d5bd30938f615e24
[ "MIT" ]
null
null
null
migrations/versions/00f001a958b1_web_dev_chapter3_quiz_total_score.py
GitauHarrison/somasoma_V1
2d74ad3b58f7e4ea5334e240d5bd30938f615e24
[ "MIT" ]
null
null
null
"""web dev chapter3 quiz total score Revision ID: 00f001a958b1 Revises: b95f0132b231 Create Date: 2022-03-02 11:57:04.695611 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '00f001a958b1' down_revision = 'b95f0132b231' branch_labels = None depends_on = None d...
39.522727
130
0.748131
251
1,739
4.816733
0.282869
0.124069
0.127378
0.163772
0.519438
0.519438
0.449959
0.325889
0.325889
0.325889
0
0.045425
0.126509
1,739
43
131
40.44186
0.750494
0.181139
0
0.086957
0
0
0.366979
0.296323
0
0
0
0
0
1
0.086957
false
0
0.086957
0
0.173913
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
25fef9ef873e5740a2ff06f1845a4837d7c9fc74
916
py
Python
pos_repair_order/wizard/assign_wizard.py
divyapy/odoo
a4b796fc8a9d291ff1b4c93e53e27f566947adf2
[ "MIT" ]
null
null
null
pos_repair_order/wizard/assign_wizard.py
divyapy/odoo
a4b796fc8a9d291ff1b4c93e53e27f566947adf2
[ "MIT" ]
null
null
null
pos_repair_order/wizard/assign_wizard.py
divyapy/odoo
a4b796fc8a9d291ff1b4c93e53e27f566947adf2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from odoo import api, fields, models, _ class AssignMechanicWizard(models.TransientModel): _name = 'assign.mechanic.wizard' _description = 'Assign Mechanic Wizard' # relations mechanic_ids = fields.Many2many('hr.employee', string="Assign Mechanic") repair_id = fields.Many2...
27.757576
76
0.648472
106
916
5.433962
0.349057
0.121528
0.083333
0.104167
0.243056
0.243056
0.243056
0.145833
0
0
0
0.009957
0.232533
916
33
77
27.757576
0.809388
0.121179
0
0.235294
0
0
0.177015
0.029062
0
0
0
0
0
1
0.117647
false
0
0.058824
0
0.882353
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
d315ddafc00e303827ed142f393b01062bb40a46
720
py
Python
PointCloudClass/down_sample.py
565353780/pointcloud-manage
77f16671ec0b88f53cd9fde2538143721f9d3ab6
[ "MIT" ]
3
2022-01-16T12:43:29.000Z
2022-01-22T05:21:40.000Z
PointCloudClass/down_sample.py
565353780/pointcloud-manage
77f16671ec0b88f53cd9fde2538143721f9d3ab6
[ "MIT" ]
null
null
null
PointCloudClass/down_sample.py
565353780/pointcloud-manage
77f16671ec0b88f53cd9fde2538143721f9d3ab6
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import open3d as o3d def downSample(pointcloud_file_path, down_sample_cluster_num, save_pointcloud_file_path): print("[INFO][downSample]") print("\t start down sampling pointcloud :") print("\t down_sample_cluster_num = " + str(down_sample_cluster_num) + "..."...
31.304348
89
0.722222
92
720
5.271739
0.434783
0.103093
0.148454
0.164948
0
0
0
0
0
0
0
0.010067
0.172222
720
22
90
32.727273
0.803691
0.058333
0
0
0
0
0.137778
0.034074
0
0
0
0
0
1
0.066667
false
0
0.066667
0
0.2
0.4
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d3162e78a871415bab1f9452d82a894abaab0f56
44,224
py
Python
Course-4-Clustering-and-Retrieval/week-3-k-means-with-text-data_blank.py
emetnatbelt/Machine-Learning-Univ-Washington1
6e6f9cd69b69157f5c09eed299ab120bf6764de3
[ "MIT" ]
20
2017-04-06T08:50:58.000Z
2021-11-01T13:43:22.000Z
Course-4-Clustering-and-Retrieval/week-3-k-means-with-text-data_blank.py
emetnatbelt/Machine-Learning-Univ-Washington
6e6f9cd69b69157f5c09eed299ab120bf6764de3
[ "MIT" ]
null
null
null
Course-4-Clustering-and-Retrieval/week-3-k-means-with-text-data_blank.py
emetnatbelt/Machine-Learning-Univ-Washington
6e6f9cd69b69157f5c09eed299ab120bf6764de3
[ "MIT" ]
24
2016-06-01T21:28:17.000Z
2021-10-02T03:17:11.000Z
# coding: utf-8 # # k-means with text data # In this assignment you will # * Cluster Wikipedia documents using k-means # * Explore the role of random initialization on the quality of the clustering # * Explore how results differ after changing the number of clusters # * Evaluate clustering, both quantitatively and q...
46.01873
725
0.707195
6,622
44,224
4.665811
0.166264
0.036864
0.011781
0.003625
0.221187
0.18361
0.162443
0.125935
0.109525
0.088326
0
0.022978
0.198964
44,224
960
726
46.066667
0.849203
0.64214
0
0.271375
0
0.003717
0.079207
0.015031
0
0
0
0.001042
0.007435
0
null
null
0.018587
0.040892
null
null
0.104089
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d316a1c92ea2eacd99036644096b71daf8954435
18,504
py
Python
esp8266.py
mertaksoy/rpi-pico-micropython-esp8266-lib
b6500493294fc37719f6c5494b2ddd0882ac260c
[ "MIT" ]
8
2021-12-30T18:31:26.000Z
2022-03-22T01:11:29.000Z
esp8266.py
mertaksoy/rpi-pico-micropython-esp8266-lib
b6500493294fc37719f6c5494b2ddd0882ac260c
[ "MIT" ]
1
2021-11-06T22:54:47.000Z
2021-12-29T03:28:18.000Z
esp8266.py
mertaksoy/rpi-pico-micropython-esp8266-lib
b6500493294fc37719f6c5494b2ddd0882ac260c
[ "MIT" ]
6
2021-09-28T06:35:59.000Z
2022-01-10T10:36:41.000Z
from machine import UART, Pin import time from httpParser import HttpParser ESP8266_OK_STATUS = "OK\r\n" ESP8266_ERROR_STATUS = "ERROR\r\n" ESP8266_FAIL_STATUS = "FAIL\r\n" ESP8266_WIFI_CONNECTED="WIFI CONNECTED\r\n" ESP8266_WIFI_GOT_IP_CONNECTED="WIFI GOT IP\r\n" ESP8266_WIFI_DISCONNECTED="WIFI DISCONNECT\r\n" ESP826...
36.497041
209
0.541829
2,084
18,504
4.682822
0.130998
0.010862
0.046726
0.023056
0.626294
0.559586
0.49544
0.466646
0.447177
0.424121
0
0.04262
0.362192
18,504
507
210
36.497041
0.784274
0.039721
0
0.577519
0
0
0.069619
0
0.015504
0
0
0
0
0
null
null
0.007752
0.011628
null
null
0.003876
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d31d05d65e96e8eb5e6db72874f6fcc4ab556220
2,325
py
Python
http/torcheck.py
k11dd00/oniongen
00d7992920c59de4a5584357a35494fbdde0a6d9
[ "MIT" ]
null
null
null
http/torcheck.py
k11dd00/oniongen
00d7992920c59de4a5584357a35494fbdde0a6d9
[ "MIT" ]
1
2021-11-09T02:38:38.000Z
2021-11-09T02:38:38.000Z
http/torcheck.py
k11dd00/oniongen
00d7992920c59de4a5584357a35494fbdde0a6d9
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2018 k1dd00 # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publi...
32.746479
81
0.68086
309
2,325
5.061489
0.521036
0.056266
0.023018
0.023018
0
0
0
0
0
0
0
0.017988
0.234839
2,325
70
82
33.214286
0.861158
0.619785
0
0
0
0
0.099863
0
0
0
0
0
0
1
0.1875
false
0
0.125
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
d322e920e430d42433aea1129d02e77e626557b0
21,922
py
Python
desicos/abaqus/gui/gui_commands.py
saullocastro/desicos
922db8ac4fb0fb4d09df18ce2a14011f207f6fa8
[ "BSD-3-Clause" ]
1
2020-10-22T22:15:24.000Z
2020-10-22T22:15:24.000Z
desicos/abaqus/gui/gui_commands.py
saullocastro/desicos
922db8ac4fb0fb4d09df18ce2a14011f207f6fa8
[ "BSD-3-Clause" ]
1
2020-10-09T12:42:02.000Z
2020-10-09T12:42:02.000Z
desicos/abaqus/gui/gui_commands.py
saullocastro/desicos
922db8ac4fb0fb4d09df18ce2a14011f207f6fa8
[ "BSD-3-Clause" ]
2
2020-07-14T07:45:31.000Z
2020-12-29T00:22:41.000Z
import os import subprocess import shutil from itertools import chain import __main__ import numpy as np import desicos.abaqus.abaqus_functions as abaqus_functions import desicos.conecylDB as conecylDB import desicos.abaqus.conecyl as conecyl import desicos.abaqus.study as study from desicos.abaqus.constants import ...
36.96796
125
0.593194
2,978
21,922
4.121894
0.156145
0.02224
0.011405
0.008065
0.217352
0.154542
0.11609
0.075275
0.060448
0.051976
0
0.009255
0.290211
21,922
592
126
37.030405
0.779627
0.099033
0
0.166667
0
0
0.114312
0.00442
0.006173
0
0
0.001689
0.002058
0
null
null
0.004115
0.028807
null
null
0.016461
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d3230aebfb6ec10341841fb4d94700228d875338
2,277
py
Python
pydeelib/widgets/texteditor.py
pombreda/pydee
133609d4e378361d968e7a06baa11256e0e2f403
[ "MIT" ]
null
null
null
pydeelib/widgets/texteditor.py
pombreda/pydee
133609d4e378361d968e7a06baa11256e0e2f403
[ "MIT" ]
null
null
null
pydeelib/widgets/texteditor.py
pombreda/pydee
133609d4e378361d968e7a06baa11256e0e2f403
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright © 2009 Pierre Raybaut # Licensed under the terms of the MIT License # (see pydeelib/__init__.py for details) """ Text Editor Dialog based on PyQt4 """ # pylint: disable-msg=C0103 # pylint: disable-msg=R0903 # pylint: disable-msg=R0911 # pylint: disable-msg=R0201 f...
29.960526
85
0.611331
242
2,277
5.640496
0.466942
0.029304
0.046886
0.030769
0
0
0
0
0
0
0
0.067674
0.273166
2,277
76
86
29.960526
0.756495
0.139218
0
0
0
0
0.131399
0.045506
0
0
0
0
0
0
null
null
0
0.119048
null
null
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d3256dbf7b293bf8be691bd30c05059ca559be89
685
py
Python
src/sentry/db/models/fields/foreignkey.py
withrocks/commonlims
d8a925c917aa26e8205fefb3966a9f49f8f2e2f8
[ "BSD-3-Clause" ]
4
2019-05-27T13:55:07.000Z
2021-03-30T07:05:09.000Z
src/sentry/db/models/fields/foreignkey.py
withrocks/commonlims
d8a925c917aa26e8205fefb3966a9f49f8f2e2f8
[ "BSD-3-Clause" ]
99
2019-05-20T14:16:33.000Z
2021-01-19T09:25:15.000Z
src/sentry/db/models/fields/foreignkey.py
withrocks/commonlims
d8a925c917aa26e8205fefb3966a9f49f8f2e2f8
[ "BSD-3-Clause" ]
1
2020-08-10T07:55:40.000Z
2020-08-10T07:55:40.000Z
""" sentry.db.models.fields.foreignkey ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import from django.db.models import ForeignKey __all__ = ('FlexibleForeignKey', ) c...
29.782609
75
0.70073
83
685
5.53012
0.590361
0.052288
0.061002
0.078431
0.104575
0.104575
0
0
0
0
0
0.014035
0.167883
685
22
76
31.136364
0.791228
0.372263
0
0
0
0
0.087678
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
d32a4aebc5975eb5e4c7cdb76bcd29f0483434fb
3,235
py
Python
pybond/bond/bond_helpers/observe_files.py
necula01/bond
7ac262bc9695ba493985c784999509dec979e37a
[ "BSD-2-Clause-FreeBSD" ]
8
2015-11-19T01:14:08.000Z
2017-06-16T11:21:16.000Z
pybond/bond/bond_helpers/observe_files.py
gnecula/bond
7ac262bc9695ba493985c784999509dec979e37a
[ "BSD-2-Clause-FreeBSD" ]
26
2015-10-12T21:31:13.000Z
2017-04-11T13:57:33.000Z
pybond/bond/bond_helpers/observe_files.py
gnecula/bond
7ac262bc9695ba493985c784999509dec979e37a
[ "BSD-2-Clause-FreeBSD" ]
3
2015-10-30T01:12:10.000Z
2016-03-26T16:58:17.000Z
# Helper functions to observe files and directories import os import re def collect_directory_contents(directory, file_filter=None, collect_file_contents=False): """ Collect an object reflecting the contents of a directory :param directory: the ...
44.930556
102
0.646677
410
3,235
4.895122
0.295122
0.101644
0.132536
0.068759
0.149477
0.103637
0.103637
0.103637
0.103637
0.103637
0
0
0.302628
3,235
71
103
45.56338
0.889628
0.352396
0
0.139535
0
0
0.000491
0
0
0
0
0.014085
0
1
0.046512
false
0
0.046512
0
0.116279
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
d32db38b32c9c1c912fe1cbdd41b39ddaa026dbb
437
py
Python
src/aceinna/devices/configs/openimu_predefine.py
LukaszChl/ros_openimu
1bcf547fa42ee7c7dcc856c1d4eb5702d301b059
[ "Apache-2.0" ]
6
2021-03-18T16:18:53.000Z
2022-01-18T15:32:15.000Z
src/aceinna/devices/configs/openimu_predefine.py
LukaszChl/ros_openimu
1bcf547fa42ee7c7dcc856c1d4eb5702d301b059
[ "Apache-2.0" ]
11
2020-12-22T16:19:20.000Z
2022-02-11T11:03:25.000Z
src/aceinna/devices/configs/openimu_predefine.py
LukaszChl/ros_openimu
1bcf547fa42ee7c7dcc856c1d4eb5702d301b059
[ "Apache-2.0" ]
11
2021-04-12T03:00:28.000Z
2022-03-25T19:53:43.000Z
""" predefined params for openimu """ JSON_FILE_NAME = 'openimu.json' def get_app_names(): ''' define openimu app type ''' app_names = ['Compass', 'IMU', 'INS', 'Leveler', 'OpenIMU', 'VG', 'VG_AHRS', ...
19
74
0.434783
40
437
4.525
0.525
0.132597
0.088398
0
0
0
0
0
0
0
0
0
0.414188
437
22
75
19.863636
0.707031
0.121281
0
0
0
0
0.232687
0
0
0
0
0
0
1
0.083333
false
0.166667
0
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
d331cf8fdbde34709011fa6dbc66e215380c30c3
4,650
py
Python
src/bake_a_py/cli.py
derSuessmann/bake-a-py
1fd2a0a4fa473215b44d2718755c5994a5588343
[ "MIT" ]
null
null
null
src/bake_a_py/cli.py
derSuessmann/bake-a-py
1fd2a0a4fa473215b44d2718755c5994a5588343
[ "MIT" ]
null
null
null
src/bake_a_py/cli.py
derSuessmann/bake-a-py
1fd2a0a4fa473215b44d2718755c5994a5588343
[ "MIT" ]
null
null
null
import sys import traceback import click from . import imaging_utility as iu from . import provisioning from . import __version__ def eprint(msg, show): if show: traceback.print_exc() print(file=sys.stderr) click.echo(msg, file=sys.stderr) @click.group() @click.version_option(__version__) @c...
31
79
0.641505
596
4,650
4.932886
0.248322
0.052381
0.043537
0.051701
0.39932
0.347619
0.305782
0.236395
0.236395
0.169728
0
0.000545
0.210108
4,650
150
80
31
0.799891
0.093548
0
0.4
0
0
0.287747
0.011095
0
0
0
0
0
1
0.075
false
0.075
0.05
0
0.125
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
d3356a95eb136cde9fb2ff5f5c78c32c6a43c33c
7,264
py
Python
scellseg/guis/scellsegGui.py
cellimnet/scellseg-publish
03bfbae11fedcf430c40419c9afadf55cbd3034d
[ "BSD-3-Clause" ]
1
2022-03-04T01:55:40.000Z
2022-03-04T01:55:40.000Z
scellseg/guis/scellsegGui.py
cellimnet/scellseg-publish
03bfbae11fedcf430c40419c9afadf55cbd3034d
[ "BSD-3-Clause" ]
null
null
null
scellseg/guis/scellsegGui.py
cellimnet/scellseg-publish
03bfbae11fedcf430c40419c9afadf55cbd3034d
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'cellPoseUI.ui' # Created by: PyQt5 UI code generator 5.11.3 import os, platform, ctypes, sys from PyQt5 import QtWidgets from PyQt5.QtCore import Qt from PyQt5.QtGui import QFontDatabase from scellseg.guis.scellsegUi import Ui_...
30.016529
116
0.499587
638
7,264
5.623824
0.299373
0.018952
0.075808
0.119565
0.422798
0.389911
0.316332
0.244426
0.185619
0.129877
0
0.03596
0.318557
7,264
242
117
30.016529
0.688889
0.025055
0
0.542453
1
0.004717
0.350592
0.078104
0
0
0
0
0
1
0.014151
false
0
0.023585
0
0.042453
0.004717
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d33d05aa2036a3db33dfe5549b91f4bc1ae6e12f
770
py
Python
test/visualization/test_visualize.py
wukathryn/axondeepseg
b5533f37d5337759fd0fd4186e286cb201b66c65
[ "MIT" ]
115
2017-11-08T02:24:31.000Z
2022-02-10T19:03:57.000Z
test/visualization/test_visualize.py
wukathryn/axondeepseg
b5533f37d5337759fd0fd4186e286cb201b66c65
[ "MIT" ]
511
2017-12-05T15:23:09.000Z
2022-02-22T19:38:43.000Z
test/visualization/test_visualize.py
wukathryn/axondeepseg
b5533f37d5337759fd0fd4186e286cb201b66c65
[ "MIT" ]
35
2017-11-30T13:36:28.000Z
2022-01-10T18:11:06.000Z
# coding: utf-8 from pathlib import Path import pytest from AxonDeepSeg.visualization.visualize import visualize_training class TestCore(object): def setup(self): # Get the directory where this current file is saved self.fullPath = Path(__file__).resolve().parent # Move up to the test d...
24.0625
66
0.615584
81
770
5.592593
0.580247
0.15011
0
0
0
0
0
0
0
0
0
0.001783
0.271429
770
31
67
24.83871
0.805704
0.202597
0
0
0
0
0.054366
0
0
0
0
0
0.055556
1
0.166667
false
0.055556
0.166667
0
0.388889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
d33de8c495b1c5d04c26434bb941307d1b085eba
441
py
Python
normal_forms/examples/normal_form/07.py
joepatmckenna/normal_forms
e506304295a2592cfc050a2a688add89715aa5ff
[ "MIT" ]
null
null
null
normal_forms/examples/normal_form/07.py
joepatmckenna/normal_forms
e506304295a2592cfc050a2a688add89715aa5ff
[ "MIT" ]
null
null
null
normal_forms/examples/normal_form/07.py
joepatmckenna/normal_forms
e506304295a2592cfc050a2a688add89715aa5ff
[ "MIT" ]
null
null
null
from normal_forms import normal_form import sympy # Murdock, Normal Forms and Unfoldings of Local Dynamical Systems, Example 4.5.24 def f(x, y, z): f1 = 6 * x + x**2 + x * y + x * z + y**2 + y * z + z**2 f2 = 2 * y + x**2 + x * y + x * z + y**2 + y * z + z**2 f3 = 3 * z + x**2 + x * y + x * z + y**2 + y *...
27.5625
81
0.512472
97
441
2.298969
0.371134
0.035874
0.040359
0.053812
0.161435
0.161435
0.161435
0.161435
0.161435
0.161435
0
0.095847
0.290249
441
15
82
29.4
0.616613
0.210884
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0.222222
null
null
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d34b8ae8f80579fd68134d835709ce8d49d3681c
1,822
py
Python
python.io/study-20180412.py
cnzht/grit
eab457a0a9b216f5a6026669095b8126bf8a9e1d
[ "MIT" ]
1
2018-04-04T09:26:21.000Z
2018-04-04T09:26:21.000Z
python.io/study-20180412.py
cnzht/grit
eab457a0a9b216f5a6026669095b8126bf8a9e1d
[ "MIT" ]
null
null
null
python.io/study-20180412.py
cnzht/grit
eab457a0a9b216f5a6026669095b8126bf8a9e1d
[ "MIT" ]
null
null
null
#-*-coding:utf-8-*- #bodyBMI.py #2018年4月11日 21:03:12 #打印出字符串中的某一部分 ''' import random st = [1,1,15,1,5,8,1,5,8] print (random.shuffle(st)) ''' ''' #利用蒙特卡洛方法计算圆周率PI from random import random from time import perf_counter DATA = pow(1000,100) hit = 0 start = perf_counter() for i in range(1,DATA+1): x,y = random(),r...
12.565517
53
0.540615
314
1,822
3.130573
0.369427
0.012208
0.030519
0.055951
0.241099
0.198372
0.160732
0.134283
0.079349
0.079349
0
0.07431
0.224479
1,822
144
54
12.652778
0.620665
0.053238
0
null
0
null
0
0
null
0
0
0
null
0
null
null
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d34d9ab7f21732e1b05d7bd300bd84ebde6c1a49
8,421
py
Python
src/main/tools/dbpy/meta_to_db_data.py
inqwell/inq
31ce4cd6b9b123b1ec4462905ccbcf7c00d6efc3
[ "BSD-3-Clause" ]
1
2016-09-25T16:41:57.000Z
2016-09-25T16:41:57.000Z
src/main/tools/dbpy/meta_to_db_data.py
inqwell/inq
31ce4cd6b9b123b1ec4462905ccbcf7c00d6efc3
[ "BSD-3-Clause" ]
null
null
null
src/main/tools/dbpy/meta_to_db_data.py
inqwell/inq
31ce4cd6b9b123b1ec4462905ccbcf7c00d6efc3
[ "BSD-3-Clause" ]
2
2016-09-25T16:48:49.000Z
2020-05-26T20:00:33.000Z
#!/usr/local/bin/bash """ Two options: 1) Build DB-specific data files from meta-data files 2) Build a single file containing all the DB-specific 'insert' statements in the correct dependency order from meta-data files and XML table files NOTE: - The data files must be named "xxx.dat"; for option (2) the correspond...
37.426667
109
0.652535
1,213
8,421
4.224237
0.173124
0.084309
0.032787
0.020492
0.42096
0.343091
0.295082
0.242779
0.169009
0.169009
0
0.006845
0.254008
8,421
224
110
37.59375
0.808819
0.071844
0
0.248227
0
0
0.147907
0
0
0
0
0
0
0
null
null
0
0.056738
null
null
0.007092
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d34dea71189d3afc7d4964aa6dbd49339356c594
3,806
py
Python
YOLOtiny_chainer_v2/YOLOtiny.py
ashitani/ppap_detect
5aec43e8486c49d106392c926a5a6738ff498ac4
[ "MIT" ]
9
2016-12-22T00:49:45.000Z
2020-02-09T02:02:25.000Z
YOLOtiny_chainer_v2/YOLOtiny.py
ashitani/ppap_detect
5aec43e8486c49d106392c926a5a6738ff498ac4
[ "MIT" ]
null
null
null
YOLOtiny_chainer_v2/YOLOtiny.py
ashitani/ppap_detect
5aec43e8486c49d106392c926a5a6738ff498ac4
[ "MIT" ]
null
null
null
#!/usr/bin/env python import numpy as np import chainer from chainer import cuda, Function, gradient_check, Variable, optimizers, serializers, utils from chainer import Link, Chain, ChainList import chainer.functions as F import chainer.links as L from chainer import training from chainer.training import extensions d...
31.716667
123
0.558329
575
3,806
3.58087
0.25913
0.043711
0.074794
0.057795
0.283633
0.278776
0.249636
0.228266
0.228266
0.185527
0
0.059926
0.285339
3,806
119
124
31.983193
0.697059
0.049133
0
0.236559
0
0.021505
0.087258
0.02964
0
0
0
0
0
0
null
null
0
0.086022
null
null
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d3529efe0bf0d6df5975b82e93a399f8498bfad6
4,091
py
Python
id/trafficmon/TrafficMain.py
umanium/trafficmon
86c138bda3c8a3e38fff273e5d61610acee123b5
[ "MIT" ]
null
null
null
id/trafficmon/TrafficMain.py
umanium/trafficmon
86c138bda3c8a3e38fff273e5d61610acee123b5
[ "MIT" ]
null
null
null
id/trafficmon/TrafficMain.py
umanium/trafficmon
86c138bda3c8a3e38fff273e5d61610acee123b5
[ "MIT" ]
null
null
null
import os import cv2 import numpy as np import time from backgroundsubtraction.KMeans import KMeans from objectblob.ObjectBlobDetection import ObjectBlobDetection from pixelcleaning.MorphologicalCleaning import MorphologicalCleaning __author__ = 'Luqman' def morphological(image): cleaning_model = Morphologica...
29.431655
106
0.611831
537
4,091
4.383613
0.221601
0.057774
0.076466
0.096856
0.322005
0.269329
0.193288
0.193288
0.158454
0.158454
0
0.022059
0.268638
4,091
138
107
29.644928
0.764706
0.215106
0
0.111111
0
0
0.082261
0
0
0
0.001256
0
0
0
null
null
0
0.098765
null
null
0.08642
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d35417a4cf00badf31eab6d25dadb13c434cb246
1,176
py
Python
release/stubs.min/Autodesk/Revit/DB/__init___parts/NamingUtils.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/Autodesk/Revit/DB/__init___parts/NamingUtils.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/Autodesk/Revit/DB/__init___parts/NamingUtils.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
class NamingUtils(object): """ A collection of utilities related to element naming. """ @staticmethod def CompareNames(nameA, nameB): """ CompareNames(nameA: str,nameB: str) -> int Compares two object name strings using Revit's comparison rules. nameA: The first obje...
21
88
0.62585
147
1,176
4.979592
0.489796
0.054645
0.045082
0.051913
0.040984
0
0
0
0
0
0
0
0.315476
1,176
55
89
21.381818
0.909317
0.687925
0
0.363636
0
0
0.092369
0
0
0
0
0
0
1
0.181818
false
0.181818
0
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
d3604b03b5b7d1f10584723f9cdd33c78d84a311
494
py
Python
1138_05_19-nmea.py
nchaparr/Geospatial-Analysis-with-Python
6e0d1ff429baa4205c63bf842ab950ed4176536f
[ "CC0-1.0" ]
null
null
null
1138_05_19-nmea.py
nchaparr/Geospatial-Analysis-with-Python
6e0d1ff429baa4205c63bf842ab950ed4176536f
[ "CC0-1.0" ]
null
null
null
1138_05_19-nmea.py
nchaparr/Geospatial-Analysis-with-Python
6e0d1ff429baa4205c63bf842ab950ed4176536f
[ "CC0-1.0" ]
null
null
null
"""Parse NMEA GPS strings""" from pynmea.streamer import NMEAStream nmeaFile = open("nmea.txt") nmea_stream = NMEAStream(stream_obj=nmeaFile) next_data = nmea_stream.get_objects() nmea_objects = [] while next_data: nmea_objects += next_data next_data = nmea_stream.get_objects() # The NMEA stream is parsed!...
30.875
59
0.712551
75
494
4.466667
0.493333
0.119403
0.107463
0.107463
0.167164
0.167164
0
0
0
0
0
0
0.168016
494
15
60
32.933333
0.815085
0.143725
0
0.181818
0
0
0.074468
0
0
0
0
0
0
0
null
null
0
0.090909
null
null
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d3606a910d1904ced1fc96fd6f2ed700d8ae5f9d
852
py
Python
languages/python/src/concepts/P104_Decorators_ClassBasedDecorators.py
vikash-india/DeveloperNotes2Myself
fe277a3c52f73884863f2f72b237365b27a8c882
[ "MIT" ]
2
2019-05-25T10:09:00.000Z
2022-03-11T09:06:23.000Z
languages/python/src/concepts/P104_Decorators_ClassBasedDecorators.py
vikash-india/DeveloperNotes2Myself
fe277a3c52f73884863f2f72b237365b27a8c882
[ "MIT" ]
2
2020-03-31T04:30:17.000Z
2020-10-30T07:54:28.000Z
languages/python/src/concepts/P104_Decorators_ClassBasedDecorators.py
vikash-india/DeveloperNotes2Myself
fe277a3c52f73884863f2f72b237365b27a8c882
[ "MIT" ]
4
2019-07-12T13:18:56.000Z
2021-11-17T08:04:55.000Z
# Description: Class Based Decorators """ ### Note * If you want to maintain some sort of state and/or just make your code more confusing, use class based decorators. """ class ClassBasedDecorator(object): def __init__(self, function_to_decorate): print("INIT ClassBasedDecorator") self.function_...
23.027027
115
0.692488
109
852
5.137615
0.422018
0.071429
0.128571
0.117857
0.085714
0.085714
0.085714
0
0
0
0
0.017884
0.212441
852
36
116
23.666667
0.816692
0.271127
0
0.222222
0
0
0.091653
0
0
0
0
0
0
1
0.222222
false
0
0
0
0.333333
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
d363473272e75d741fdc620437d901b3dcaf7ba6
1,962
py
Python
Code/classification_system/data_visualisation/frequent_ngrams.py
sxd942/fascist_text_classification
29c429165bdd18ca031a30f98cf86a5090818c3c
[ "DOC" ]
null
null
null
Code/classification_system/data_visualisation/frequent_ngrams.py
sxd942/fascist_text_classification
29c429165bdd18ca031a30f98cf86a5090818c3c
[ "DOC" ]
null
null
null
Code/classification_system/data_visualisation/frequent_ngrams.py
sxd942/fascist_text_classification
29c429165bdd18ca031a30f98cf86a5090818c3c
[ "DOC" ]
null
null
null
import pandas as pd import matplotlib.pyplot as plt from nltk import ngrams from preprocessing.preprocess import remove_stopwords """ frequent_ngrams.py was used to generate bar plots of most frequently used bi and trigrams from the fascist and hate documents. @Author: Siôn Davies Date: July 2020 """ # First the fasc...
29.727273
86
0.735984
301
1,962
4.624585
0.328904
0.047414
0.04023
0.057471
0.494253
0.320402
0.278736
0.278736
0.278736
0.278736
0
0.020513
0.105505
1,962
65
87
30.184615
0.77265
0.038226
0
0.292683
1
0
0.113384
0.050263
0
0
0
0
0
1
0.04878
false
0
0.097561
0
0.219512
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d3836f505332bb014cbedb07ee589147a9cb81f2
23,985
py
Python
prompts/prompt_scorer.py
GpNico/bert_semantics
9b8f9db7b136d1059e6f82c26fd10d164fe2e78d
[ "MIT" ]
null
null
null
prompts/prompt_scorer.py
GpNico/bert_semantics
9b8f9db7b136d1059e6f82c26fd10d164fe2e78d
[ "MIT" ]
null
null
null
prompts/prompt_scorer.py
GpNico/bert_semantics
9b8f9db7b136d1059e6f82c26fd10d164fe2e78d
[ "MIT" ]
null
null
null
import numpy as np import pickle import tqdm import os import torch from prompts.prompt_material import DETS_LIST, CONTENT_STRUCTS_PREFIX_LIST, CONTENT_STRUCTS_MIDDLE_LIST, CONTENT_STRUCTS_SUFFIX_LIST, TRANSFORMATIONS, LOGICAL_PREFIXES_LIST, LOGICAL_STRUCTS_LW_LIST ####################################### # ...
44.171271
197
0.603836
2,948
23,985
4.597354
0.071235
0.019036
0.016233
0.016528
0.750609
0.699993
0.671733
0.635284
0.626798
0.618166
0
0.017071
0.291724
23,985
543
198
44.171271
0.780728
0.186492
0
0.537037
0
0.006173
0.048548
0.008574
0
0
0
0
0.003086
1
0.080247
false
0
0.018519
0.003086
0.160494
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d3969c2344d1fd1927504d6b7d57dcf4c82c4a97
5,420
py
Python
eCommerce/DoorDash/accountChecker.py
MiyakoYakota/PythonCheckers
275c8b674e3ee284548fcd0512f432792e0d8b6d
[ "Unlicense" ]
5
2021-02-24T23:37:52.000Z
2021-08-18T06:39:30.000Z
eCommerce/DoorDash/accountChecker.py
MiyakoYakota/PythonCheckers
275c8b674e3ee284548fcd0512f432792e0d8b6d
[ "Unlicense" ]
null
null
null
eCommerce/DoorDash/accountChecker.py
MiyakoYakota/PythonCheckers
275c8b674e3ee284548fcd0512f432792e0d8b6d
[ "Unlicense" ]
1
2021-03-26T06:21:20.000Z
2021-03-26T06:21:20.000Z
import requests import random import json from multiprocessing import Pool # Multi-Threading from multiprocessing import freeze_support # Windows Support requests.packages.urllib3.disable_warnings() accounts = [line.rstrip('\n') for line in open("combo.txt", 'r')] proxies = [line.rstrip('\n') for line in open("proxie...
43.015873
254
0.632103
616
5,420
5.350649
0.261364
0.110134
0.059466
0.040352
0.257282
0.209041
0.182646
0.135619
0.124393
0.124393
0
0.005525
0.265314
5,420
126
255
43.015873
0.8222
0.042066
0
0.102804
0
0
0.2088
0.04342
0
0
0
0
0
1
0.046729
false
0.130841
0.046729
0.009346
0.130841
0.11215
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
d3979bc7f150cc1b30133b1b6f53958cab7914a1
1,732
py
Python
resource/views.py
madre/PersonalWeb
27d88a3c6c4f86028887b0455b60eceeeb663e25
[ "Apache-2.0" ]
null
null
null
resource/views.py
madre/PersonalWeb
27d88a3c6c4f86028887b0455b60eceeeb663e25
[ "Apache-2.0" ]
null
null
null
resource/views.py
madre/PersonalWeb
27d88a3c6c4f86028887b0455b60eceeeb663e25
[ "Apache-2.0" ]
null
null
null
#coding=utf-8 """ __create_time__ = '13-10-18' __author__ = 'Madre' """ from django.shortcuts import get_object_or_404 from django.views.generic import ListView, DetailView from resource.models import Resource, Topic class ResourceListView(ListView): context_object_name = 'resource_list' templat...
29.355932
77
0.680139
199
1,732
5.633166
0.256281
0.064228
0.074933
0.037467
0.521855
0.457627
0.41124
0.41124
0.37645
0.190901
0
0.011826
0.218822
1,732
59
78
29.355932
0.816704
0.035797
0
0.410256
0
0
0.093458
0
0
0
0
0
0
1
0.153846
false
0
0.076923
0.025641
0.794872
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
d3a01df5042d3b5b926bb9ab84e5cc8b7a1afdf6
1,304
py
Python
tilescraper.py
azaroth42/iiif-harvester
42202bb2edfbaceab594755b26ee75a81baa7212
[ "Apache-2.0" ]
2
2015-08-14T07:36:33.000Z
2019-03-18T00:10:02.000Z
tilescraper.py
azaroth42/iiif-harvester
42202bb2edfbaceab594755b26ee75a81baa7212
[ "Apache-2.0" ]
null
null
null
tilescraper.py
azaroth42/iiif-harvester
42202bb2edfbaceab594755b26ee75a81baa7212
[ "Apache-2.0" ]
null
null
null
from PIL import Image import json, StringIO, requests import time import robotparser import re import sys host = "http://dlss-dev-azaroth.stanford.edu/" service = host + "services/iiif/f1rc/" resp = requests.get(service + "info.json") js = json.loads(resp.text) h = js['height'] w = js['width'] img = Image.new("RGB", ...
25.076923
72
0.680982
200
1,304
4.425
0.495
0.037288
0.033898
0.040678
0
0
0
0
0
0
0
0.014286
0.141104
1,304
51
73
25.568627
0.775893
0.102761
0
0
0
0
0.167959
0.018949
0
0
0
0
0
0
null
null
0
0.153846
null
null
0.025641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d3a1a2d7710ed6f28bb8bbf86045de75345d5240
348
py
Python
api/mira/api_config.py
tnc-ca-geo/animl-ml
95aeb1e99fddf7199692144ef3425340d6b8dc3c
[ "MIT" ]
1
2020-03-28T02:10:25.000Z
2020-03-28T02:10:25.000Z
api/mira/api_config.py
tnc-ca-geo/animl-ml
95aeb1e99fddf7199692144ef3425340d6b8dc3c
[ "MIT" ]
46
2020-03-18T22:44:30.000Z
2022-03-12T00:51:44.000Z
api/mira/api_config.py
tnc-ca-geo/animl-ml
95aeb1e99fddf7199692144ef3425340d6b8dc3c
[ "MIT" ]
null
null
null
""" MIRA API config """ MODELS = [ { "endpoint_name": "mira-large", "classes": ["fox", "skunk", "empty"] }, { "endpoint_name": "mira-small", "classes": ["rodent", "empty"] } ] HEADERS = { "Access-Control-Allow-Origin": "*", "Access-Control-Allow-Headers": "Content-Type", "Access-Cont...
17.4
51
0.566092
35
348
5.571429
0.628571
0.2
0.276923
0
0
0
0
0
0
0
0
0
0.198276
348
20
52
17.4
0.698925
0.043103
0
0
0
0
0.564417
0.254601
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d3a22369e4aa53efec521f3dd343a0ada49809f4
3,545
py
Python
AdventOfCode2019/day05.py
Matematik411/Advent-of-Code-Practice
f556ae8b84526368184f72a811949ec1fd4b686e
[ "MIT" ]
null
null
null
AdventOfCode2019/day05.py
Matematik411/Advent-of-Code-Practice
f556ae8b84526368184f72a811949ec1fd4b686e
[ "MIT" ]
null
null
null
AdventOfCode2019/day05.py
Matematik411/Advent-of-Code-Practice
f556ae8b84526368184f72a811949ec1fd4b686e
[ "MIT" ]
null
null
null
class Int_code: def __init__(self, s, inputs): memory = {} nrs = map(int, s.split(",")) for i, x in enumerate(nrs): memory[i] = x self.memory = memory self.inputs = inputs def set(self, i, x): self.memory[i] = x def one(self, a, b, c, mod...
27.695313
87
0.414386
486
3,545
2.997942
0.121399
0.2814
0.158545
0.089224
0.663006
0.609472
0.609472
0.609472
0.609472
0.557996
0
0.059271
0.443159
3,545
127
88
27.913386
0.678825
0.031594
0
0.486486
0
0
0.000292
0
0
0
0
0
0
1
0.099099
false
0
0
0
0.153153
0.009009
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d3a3af9d53824b3acab405765cd51062c38ff21a
4,177
py
Python
fluorelax/fluorelax.py
darianyang/fluorelax
4ca816aa157f23c84eb4cc6085200668723d1426
[ "BSD-3-Clause" ]
null
null
null
fluorelax/fluorelax.py
darianyang/fluorelax
4ca816aa157f23c84eb4cc6085200668723d1426
[ "BSD-3-Clause" ]
null
null
null
fluorelax/fluorelax.py
darianyang/fluorelax
4ca816aa157f23c84eb4cc6085200668723d1426
[ "BSD-3-Clause" ]
1
2022-03-27T18:24:49.000Z
2022-03-27T18:24:49.000Z
""" Main call. TODO: - parallize the mda processing portion? (dask) """ import numpy as np import matplotlib.pyplot as plt import MDAnalysis as mda from command_line import create_cmd_arguments, handle_command_line from calc_relax import Calc_19F_Relaxation from calc_fh_dists import Calc_FH_Dists from plot_relax imp...
33.95935
113
0.620541
657
4,177
3.782344
0.357686
0.025755
0.032193
0.047887
0.160161
0.098994
0.098994
0.098994
0.098994
0.055131
0
0.063487
0.272205
4,177
122
114
34.237705
0.753947
0.374431
0
0.037037
0
0.018519
0.035794
0.025951
0
0
0
0.04918
0
1
0
false
0
0.12963
0
0.12963
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
d3aa5533cd819bec8e09e75cda19441c06cdc1f9
269
py
Python
api/admin_urls.py
chenxiaoli/auth21
a2b15ecb883416e011da03d6ec066459fa28f693
[ "MIT" ]
null
null
null
api/admin_urls.py
chenxiaoli/auth21
a2b15ecb883416e011da03d6ec066459fa28f693
[ "MIT" ]
null
null
null
api/admin_urls.py
chenxiaoli/auth21
a2b15ecb883416e011da03d6ec066459fa28f693
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.conf.urls import include, url from .user_admin_views import UserAdminListViewSet user_admin_list=UserAdminListViewSet.as_view({ "get":"get" }) urlpatterns = ( url(r'^user$', user_admin_list, name='user-admin-list'), )
15.823529
60
0.702602
35
269
5.2
0.6
0.197802
0.214286
0
0
0
0
0
0
0
0
0.004348
0.144981
269
16
61
16.8125
0.786957
0.078067
0
0
0
0
0.109756
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d3ab32f767c6d6e9a4d044cf91516005f20c48e6
1,236
py
Python
awsf_cwl_v1/split_num.py
pkerpedjiev/tibanna
8d8333bc7757076914c2bafbd68ee24c4ad611f6
[ "MIT" ]
null
null
null
awsf_cwl_v1/split_num.py
pkerpedjiev/tibanna
8d8333bc7757076914c2bafbd68ee24c4ad611f6
[ "MIT" ]
null
null
null
awsf_cwl_v1/split_num.py
pkerpedjiev/tibanna
8d8333bc7757076914c2bafbd68ee24c4ad611f6
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys import csv def split_num(n, M): # n : original number # M : max size for split range nsplit = n//M if nsplit*M < n: nsplit += 1 ninterval = n//nsplit ncum = 1 end = 0 res = [] while end < n: start = ncum ncum += ninterval ...
24.72
80
0.590615
175
1,236
4.028571
0.377143
0.04539
0.031206
0.028369
0.056738
0
0
0
0
0
0
0.011062
0.268608
1,236
49
81
25.22449
0.768805
0.085761
0
0
0
0
0.104889
0
0
0
0
0
0
0
null
null
0
0.085714
null
null
0.057143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d3af3caa6c9db054915893aae3c8cc506266ac99
8,437
py
Python
analysis/config/config_UltraLegacy18.py
cms-btv-pog/jet-tagging-sf
c418e13aa4eac5522818d5f5ad3db2a0c81ec52e
[ "Apache-2.0" ]
3
2020-01-22T08:30:14.000Z
2021-12-27T18:47:43.000Z
analysis/config/config_UltraLegacy18.py
cms-btv-pog/jet-tagging-sf
c418e13aa4eac5522818d5f5ad3db2a0c81ec52e
[ "Apache-2.0" ]
null
null
null
analysis/config/config_UltraLegacy18.py
cms-btv-pog/jet-tagging-sf
c418e13aa4eac5522818d5f5ad3db2a0c81ec52e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import scinum as sn import numpy as np def create_config(base_cfg): # setup the config for 2018 data from analysis.config.campaign_UltraLegacy18 import campaign as campaign_UltraLegacy18 from analysis.config.jet_tagging_sf import ch_ee, ch_emu, ch_mumu, ch_e, ch_mu cfg = base_c...
37.331858
126
0.620244
1,007
8,437
4.901688
0.364449
0.015802
0.023096
0.029984
0.20077
0.20077
0.157415
0.12581
0.106969
0.106969
0
0.23629
0.24357
8,437
225
127
37.497778
0.537136
0.1286
0
0.19209
0
0.016949
0.31748
0.165368
0
0
0
0
0
1
0.00565
false
0
0.022599
0
0.033898
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6c90866da3558fa85354b9fb39f92f13564b2e73
469
py
Python
src/py_call.py
Lucien-MG/htools
c7cce486a101b182b03f0ac69e168b767a5c8d16
[ "MIT" ]
null
null
null
src/py_call.py
Lucien-MG/htools
c7cce486a101b182b03f0ac69e168b767a5c8d16
[ "MIT" ]
null
null
null
src/py_call.py
Lucien-MG/htools
c7cce486a101b182b03f0ac69e168b767a5c8d16
[ "MIT" ]
null
null
null
#/bin/python3 import os import subprocess # Const: with open("config",'r') as conf: VENV_A = conf.read() PYTHON="python" PYTHON3_VENV_A = os.path.join(VENV_A, "bin", "python3") PIP="" PIP_VENV_A= os.path.join(VENV_A, "bin", "pip3") # Functions: def python_call(argv): subprocess.call([PYTHON, argv]) def p...
17.37037
55
0.697228
71
469
4.380282
0.394366
0.11254
0.07717
0.07074
0.14791
0.14791
0.14791
0.14791
0
0
0
0.012469
0.144989
469
26
56
18.038462
0.763092
0.063966
0
0
0
0
0.068807
0
0
0
0
0
0
1
0.214286
false
0
0.142857
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
6c9944dc5b1ae363873ef1748ed4ad89a74178d6
261
py
Python
register_classes.py
Iherrbenza/SMB100A_Python
80af83faa306a31f323869c2d20f121bb941d85b
[ "BSD-3-Clause" ]
null
null
null
register_classes.py
Iherrbenza/SMB100A_Python
80af83faa306a31f323869c2d20f121bb941d85b
[ "BSD-3-Clause" ]
null
null
null
register_classes.py
Iherrbenza/SMB100A_Python
80af83faa306a31f323869c2d20f121bb941d85b
[ "BSD-3-Clause" ]
null
null
null
# @Date: 2020-04-05T14:08:33+10:00 # @Last modified time: 2020-04-08T18:40:22+10:00 from labscript_devices import register_classes register_classes( 'SMB100A', BLACS_tab='labscript_devices.SMB100A.blacs_tabs.SMB100ATab', runviewer_parser=None )
23.727273
64
0.754789
38
261
5
0.736842
0.063158
0
0
0
0
0
0
0
0
0
0.197368
0.126437
261
10
65
26.1
0.635965
0.310345
0
0
0
0
0.305085
0.265537
0
0
0
0
0
1
0
true
0
0.166667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
6c9d70099a722ba2fbced930795b4aaa3c0d43d3
3,044
py
Python
Super_TF/Dataset_IO/Classification/Dataset_reader_classification.py
Dhruv-Mohan/Super_TF
c693663adc59947cb7d15bd42ff260b7d3de6bdc
[ "MIT" ]
8
2017-10-29T18:50:49.000Z
2020-09-23T10:55:27.000Z
Super_TF/Dataset_IO/Classification/Dataset_reader_classification.py
Dhruv-Mohan/Tensorflow_Playground
c693663adc59947cb7d15bd42ff260b7d3de6bdc
[ "MIT" ]
null
null
null
Super_TF/Dataset_IO/Classification/Dataset_reader_classification.py
Dhruv-Mohan/Tensorflow_Playground
c693663adc59947cb7d15bd42ff260b7d3de6bdc
[ "MIT" ]
1
2021-01-27T09:32:53.000Z
2021-01-27T09:32:53.000Z
from utils.Dataset_reader import Dataset_reader from Dataset_IO.Classification.Dataset_conifg_classification import Dataset_conifg_classification import Dataset_IO.Classification.Dataset_classification_pb2 as proto import tensorflow as tf import os #TODO: ADD TFRECORDS AND MEANPROTO READING CHECKS class Dataset_reade...
42.873239
182
0.704993
401
3,044
5.012469
0.276808
0.035821
0.041791
0.056716
0.171642
0.135323
0.053731
0
0
0
0
0.010369
0.20795
3,044
70
183
43.485714
0.82331
0.041064
0
0
0
0
0.030574
0.009962
0
0
0
0.014286
0
1
0.108696
false
0
0.108696
0
0.304348
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
6ca00e46178f8bac44744669d606c5898da9f6e3
2,254
py
Python
tools/rewrite_includes.py
Shachlan/skia
633db4db7672fd55b48ba1073256853e00f18d8c
[ "BSD-3-Clause" ]
6
2018-10-20T10:53:55.000Z
2021-12-25T07:58:57.000Z
tools/rewrite_includes.py
Shachlan/skia
633db4db7672fd55b48ba1073256853e00f18d8c
[ "BSD-3-Clause" ]
null
null
null
tools/rewrite_includes.py
Shachlan/skia
633db4db7672fd55b48ba1073256853e00f18d8c
[ "BSD-3-Clause" ]
9
2018-10-31T03:07:11.000Z
2021-08-06T08:53:21.000Z
#!/usr/bin/python2 # # Copyright 2019 Google Inc. # # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os roots = [ 'bench', 'dm', 'docs', 'example', 'experimental', 'fuzz', 'gm', 'include', 'modules', 'platform_tools/an...
28.531646
80
0.550577
287
2,254
4.233449
0.421603
0.118519
0.118519
0.103704
0.192593
0.159671
0.123457
0.123457
0.123457
0.123457
0
0.008513
0.322538
2,254
78
81
28.897436
0.787164
0.159716
0
0.133333
0
0
0.09782
0.014354
0
0
0
0
0.016667
0
null
null
0
0.016667
null
null
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
6ca2384cbcb96f1ed16b80307991583b5132ac71
598
py
Python
unit_tests/test_class_query.py
usc-isi-i2/gaia-question-sparql
fb40ea6259686997ad9d805729fcca80516ddf92
[ "MIT" ]
null
null
null
unit_tests/test_class_query.py
usc-isi-i2/gaia-question-sparql
fb40ea6259686997ad9d805729fcca80516ddf92
[ "MIT" ]
null
null
null
unit_tests/test_class_query.py
usc-isi-i2/gaia-question-sparql
fb40ea6259686997ad9d805729fcca80516ddf92
[ "MIT" ]
null
null
null
import unittest import sys import os sys.path.append('../') from src.class_query import ClassQuery from src.query_tool import QueryTool, Mode base_path = os.path.dirname(__file__) cq = ClassQuery(base_path + '/sample_queries/class_queries.xml') class TestClassQuery(unittest.TestCase): def test_class_cluster(self...
28.47619
78
0.712375
81
598
5.074074
0.592593
0.058394
0.068127
0
0
0
0
0
0
0
0
0.006012
0.165552
598
20
79
29.9
0.817635
0
0
0
0
0
0.119128
0.090604
0
0
0
0
0.133333
1
0.066667
false
0
0.333333
0
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
6ca7fb675928141bb07d0f78ee1eb39e58fe4eda
296
py
Python
NetCatKS/DProtocol/api/interfaces/storage/__init__.py
dimddev/NetCatKS-CP
2d9e72b2422e344569fd4eb154866b98e9707561
[ "BSD-2-Clause" ]
null
null
null
NetCatKS/DProtocol/api/interfaces/storage/__init__.py
dimddev/NetCatKS-CP
2d9e72b2422e344569fd4eb154866b98e9707561
[ "BSD-2-Clause" ]
null
null
null
NetCatKS/DProtocol/api/interfaces/storage/__init__.py
dimddev/NetCatKS-CP
2d9e72b2422e344569fd4eb154866b98e9707561
[ "BSD-2-Clause" ]
null
null
null
__author__ = 'dimd' from zope.interface import Interface, Attribute class IProtocolStogareInterface(Interface): """ This interface define our session storage Every custom storage have to implement this Interface """ session = Attribute(""" Container for our session """)
21.142857
58
0.722973
31
296
6.774194
0.677419
0.12381
0
0
0
0
0
0
0
0
0
0
0.199324
296
14
58
21.142857
0.886076
0.320946
0
0
0
0
0.17033
0
0
0
0
0
0
1
0
false
0
0.25
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
6caacd92f800cd39592b48cdfb06a9aeead365f0
10,543
py
Python
sdk/python/pulumi_aws_native/elasticloadbalancingv2/listener.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
29
2021-09-30T19:32:07.000Z
2022-03-22T21:06:08.000Z
sdk/python/pulumi_aws_native/elasticloadbalancingv2/listener.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
232
2021-09-30T19:26:26.000Z
2022-03-31T23:22:06.000Z
sdk/python/pulumi_aws_native/elasticloadbalancingv2/listener.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
4
2021-11-10T19:42:01.000Z
2022-02-05T10:15:49.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from...
42.003984
134
0.650858
1,154
10,543
5.619584
0.123917
0.0899
0.084965
0.057826
0.661372
0.573015
0.467849
0.402621
0.341557
0.259676
0
0.000497
0.236271
10,543
250
135
42.172
0.804893
0.095608
0
0.405263
1
0
0.125334
0.021992
0
0
0
0
0
1
0.147368
false
0.005263
0.036842
0.078947
0.278947
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6cad74d49e4e9a08a93a53a5673e980c74cb3858
3,074
py
Python
tests/test_individual.py
viswanathareddya/Geektrust_in_family
197d4d0eadf191e1ef9d7d21d6d81d62645169c2
[ "MIT" ]
null
null
null
tests/test_individual.py
viswanathareddya/Geektrust_in_family
197d4d0eadf191e1ef9d7d21d6d81d62645169c2
[ "MIT" ]
null
null
null
tests/test_individual.py
viswanathareddya/Geektrust_in_family
197d4d0eadf191e1ef9d7d21d6d81d62645169c2
[ "MIT" ]
null
null
null
import unittest from Familytree.individual import Person from Familytree import variables class Testperson(unittest.TestCase): def setUp(self): self.person = Person(1, "Jane", "Female") def test_initialization(self): # check instance self.assertEqual(isinstance(self.person, Person), ...
37.487805
90
0.691282
363
3,074
5.61708
0.14876
0.142227
0.121138
0.159392
0.50613
0.342325
0.225601
0.225601
0.193722
0.064247
0
0.004886
0.201041
3,074
81
91
37.950617
0.825326
0.041965
0
0
0
0
0.076005
0
0
0
0
0
0.461538
1
0.115385
false
0
0.057692
0
0.192308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
6cae071fb0b7de70166dc34fefb63b3a8b59aa07
795
py
Python
examples/first_class_functions.py
HansVdb/pythonavd-d01
8434a7e211709f59994280501f0361951db5a05c
[ "BSD-2-Clause" ]
null
null
null
examples/first_class_functions.py
HansVdb/pythonavd-d01
8434a7e211709f59994280501f0361951db5a05c
[ "BSD-2-Clause" ]
null
null
null
examples/first_class_functions.py
HansVdb/pythonavd-d01
8434a7e211709f59994280501f0361951db5a05c
[ "BSD-2-Clause" ]
null
null
null
def foo(): print("I'm a lovely foo()-function") print(foo) # <function foo at 0x7f9b75de3f28> print(foo.__class__) # <class 'function'> bar = foo bar() # I'm a lovely foo()-function print(bar.__name__) # foo def do_something(what): """Executes a function :param what: name of the function to be executed...
16.5625
53
0.660377
130
795
3.946154
0.323077
0.128655
0.023392
0.070175
0.348928
0.302144
0.263158
0.214425
0.214425
0.214425
0
0.025197
0.201258
795
47
54
16.914894
0.782677
0.335849
0
0.1
0
0
0.180095
0
0
0
0
0
0
1
0.15
false
0
0
0
0.15
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
6cb32f44a52f1c0281429f935c70345217dd11a0
5,105
py
Python
xero_python/appstore/models/plan.py
gavinwhyte/xero-python
53a028c3b7c51da1db203b616bf7b7a028a4a1d2
[ "MIT" ]
null
null
null
xero_python/appstore/models/plan.py
gavinwhyte/xero-python
53a028c3b7c51da1db203b616bf7b7a028a4a1d2
[ "MIT" ]
null
null
null
xero_python/appstore/models/plan.py
gavinwhyte/xero-python
53a028c3b7c51da1db203b616bf7b7a028a4a1d2
[ "MIT" ]
null
null
null
# coding: utf-8 """ Xero AppStore API These endpoints are for Xero Partners to interact with the App Store Billing platform # noqa: E501 Contact: api@xero.com Generated by: https://openapi-generator.tech """ import re # noqa: F401 from xero_python.models import BaseModel class Plan(BaseModel):...
28.20442
126
0.56905
602
5,105
4.747508
0.189369
0.081176
0.055983
0.058782
0.531141
0.474808
0.439118
0.321554
0.228132
0.190343
0
0.027753
0.343585
5,105
180
127
28.361111
0.825127
0.400784
0
0.102564
1
0
0.163517
0.017666
0
0
0
0
0
1
0.115385
false
0
0.025641
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6cb33395406f43fe2ee837077f069c801b9bcf8e
2,167
py
Python
design_patterns/behavioral/command.py
Minkov/python-oop-2021-02
bd387dde165f4338eed66c4bc0b4b516ee085340
[ "MIT" ]
2
2021-02-22T22:55:31.000Z
2021-04-05T18:25:10.000Z
design_patterns/behavioral/command.py
Minkov/python-oop-2021-02
bd387dde165f4338eed66c4bc0b4b516ee085340
[ "MIT" ]
null
null
null
design_patterns/behavioral/command.py
Minkov/python-oop-2021-02
bd387dde165f4338eed66c4bc0b4b516ee085340
[ "MIT" ]
2
2021-04-05T18:35:11.000Z
2021-04-08T12:18:19.000Z
from abc import ABC, abstractmethod class Command(ABC): @abstractmethod def execute(self): pass @abstractmethod def un_execute(self): pass class AddCommand(Command): def __init__(self, values, new_value): self.values = values self.new_value = new_value def e...
18.210084
49
0.646054
262
2,167
5.148855
0.21374
0.126019
0.094885
0.059303
0.437361
0.404003
0.274277
0.243143
0.152706
0.152706
0
0.0043
0.248731
2,167
118
50
18.364407
0.824324
0
0
0.428571
0
0
0.016481
0
0
0
0
0
0
1
0.214286
false
0.028571
0.014286
0.028571
0.342857
0.085714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
6cb4cc84649164fc13d24146a17efcfc7d6676a4
2,120
py
Python
Ensemble_Movie.py
nchaparr/Sam_Output_Anls
c6736f7863b36d09738ac95b7cbde19ba69526cf
[ "MIT" ]
null
null
null
Ensemble_Movie.py
nchaparr/Sam_Output_Anls
c6736f7863b36d09738ac95b7cbde19ba69526cf
[ "MIT" ]
1
2015-04-18T14:47:49.000Z
2015-05-01T21:51:44.000Z
Ensemble_Movie.py
nchaparr/Sam_Output_Anls
c6736f7863b36d09738ac95b7cbde19ba69526cf
[ "MIT" ]
null
null
null
from netCDF4 import Dataset import glob,os.path import numpy as np from scipy.interpolate import UnivariateSpline from matplotlib import cm import matplotlib.pyplot as plt #import site #site.addsitedir('/tera/phil/nchaparr/SAM2/sam_main/python') #from Percentiles import * from matplotlib.patches import Patch import sys...
28.266667
130
0.706132
316
2,120
4.610759
0.439873
0.032944
0.043926
0.045299
0.238161
0.238161
0.218943
0.119423
0.07687
0.07687
0
0.046927
0.15566
2,120
74
131
28.648649
0.767039
0.438208
0
0
0
0
0.024436
0.024436
0
0
0
0
0
1
0
false
0
0.366667
0
0.366667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
6cbf415d6c7f56e53145504a706d0df172e83094
14,720
py
Python
clique_main_1.py
mccrimmonmd/clique
d6539a4530acf5c5cf85dac2eb520fa69f3a310a
[ "MIT" ]
null
null
null
clique_main_1.py
mccrimmonmd/clique
d6539a4530acf5c5cf85dac2eb520fa69f3a310a
[ "MIT" ]
null
null
null
clique_main_1.py
mccrimmonmd/clique
d6539a4530acf5c5cf85dac2eb520fa69f3a310a
[ "MIT" ]
null
null
null
""" Version 1: - It begins - For some reason, this version of the decision code (in Shape.move) just makes every shape move up and to the left """ from __future__ import division import pygame, pygame.locals, math, random RAND = random.Random() RAND.seed() UP = 0 DOWN = 1 RIGHT = 2 LEFT = 3 STAY = 4 PLAYER_MOVEM...
32.494481
83
0.531793
1,748
14,720
4.382151
0.168192
0.038773
0.020104
0.029373
0.256527
0.18799
0.112663
0.104047
0.079243
0.079243
0
0.027873
0.366304
14,720
452
84
32.566372
0.79331
0.127989
0
0.143345
0
0
0.017799
0
0
0
0
0
0.006826
0
null
null
0
0.006826
null
null
0.013652
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
6ccc8df451a2936e28cf2b4cd839f862b2e3add8
888
py
Python
predictions/views.py
Mustapha-Belkacim/English-Premier-League-predictor
2950d70e9aa80cc8c39f102029fb460b992f1e36
[ "MIT" ]
5
2018-02-27T18:03:45.000Z
2018-07-23T11:40:55.000Z
predictions/views.py
Mustapha-Belkacim/Russia-2018-World-Cup-Predictor
2950d70e9aa80cc8c39f102029fb460b992f1e36
[ "MIT" ]
1
2018-12-10T04:33:24.000Z
2018-12-10T04:33:24.000Z
predictions/views.py
Mustapha-Belkacim/English-Premier-League-predictor
2950d70e9aa80cc8c39f102029fb460b992f1e36
[ "MIT" ]
1
2018-02-26T14:23:40.000Z
2018-02-26T14:23:40.000Z
from django.shortcuts import render from django.views import View, generic from .services.predictor import get_results class Index(View): template_name = 'predictions/index.html' model = 'xgboost' season = '16/17' results = '' leadboard = '' def get(self, request): self.results = get_r...
37
80
0.600225
94
888
5.595745
0.319149
0.104563
0.057034
0.079848
0.403042
0.403042
0.285171
0.285171
0.285171
0.285171
0
0.006339
0.289414
888
23
81
38.608696
0.827258
0.060811
0
0.315789
0
0
0.092437
0.026411
0
0
0
0
0
1
0.105263
false
0
0.157895
0
0.684211
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
6ccd22609ab3e08378fdd219fad406bb1e80df1a
7,546
py
Python
forex_python/bitcoin.py
Otisey/forex-python
a34d074b8ee7411cd2868ea3945793ef43bf7965
[ "MIT" ]
505
2016-05-21T04:50:19.000Z
2022-03-29T04:40:36.000Z
forex_python/bitcoin.py
Otisey/forex-python
a34d074b8ee7411cd2868ea3945793ef43bf7965
[ "MIT" ]
92
2016-05-22T09:26:23.000Z
2022-02-18T11:26:56.000Z
forex_python/bitcoin.py
Otisey/forex-python
a34d074b8ee7411cd2868ea3945793ef43bf7965
[ "MIT" ]
166
2016-05-21T04:52:49.000Z
2022-03-25T03:57:24.000Z
from decimal import Decimal import simplejson as json import requests from .converter import RatesNotAvailableError, DecimalFloatMismatchError class BtcConverter(object): """ Get bit coin rates and convertion """ def __init__(self, force_decimal=False): self._force_decimal = force_decimal ...
37.542289
145
0.579777
844
7,546
4.979858
0.126777
0.035689
0.034261
0.020937
0.715679
0.66976
0.656912
0.656912
0.640733
0.622888
0
0.00607
0.323218
7,546
200
146
37.73
0.816918
0.051948
0
0.666667
0
0
0.168392
0.019126
0
0
0
0
0
1
0.064103
false
0
0.025641
0
0.179487
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6cd509e695712b4d2634df653709f63565e266c1
1,895
py
Python
models.py
Nelestya/blog
4e99ba3789f5214be5fd290801d0fde751e2d99f
[ "MIT" ]
null
null
null
models.py
Nelestya/blog
4e99ba3789f5214be5fd290801d0fde751e2d99f
[ "MIT" ]
null
null
null
models.py
Nelestya/blog
4e99ba3789f5214be5fd290801d0fde751e2d99f
[ "MIT" ]
null
null
null
from django.db import models from django.utils import timezone from django.contrib.auth.models import User from django.core.urlresolvers import reverse from baseapp.models import Recently # Create your models here. class PublishedManager(models.Manager): def get_queryset(self): return super(PublishedManage...
35.092593
86
0.626913
206
1,895
5.631068
0.461165
0.038793
0.062069
0.082759
0
0
0
0
0
0
0
0.008541
0.258575
1,895
53
87
35.754717
0.817082
0.037995
0
0.093023
0
0
0.073117
0
0
0
0
0
0
1
0.093023
false
0
0.116279
0.093023
0.744186
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
6cda2551861539e7955fba8e1b052ccf729d24d4
3,171
py
Python
execute.py
ikeban/InvoicesSender
7eae2b0b201c91f31ee65bf64779a778d98bfa5e
[ "MIT" ]
null
null
null
execute.py
ikeban/InvoicesSender
7eae2b0b201c91f31ee65bf64779a778d98bfa5e
[ "MIT" ]
null
null
null
execute.py
ikeban/InvoicesSender
7eae2b0b201c91f31ee65bf64779a778d98bfa5e
[ "MIT" ]
null
null
null
import code.PdfReader as PdfReaderModule import code.ExcelReader as ExcelReader import code.TemplateParser as TemplateParser import code.PdfAnalyzer as PdfAnalyzer import code.EmailSender as EmailSender def getFileContent(fileName): read_data = "" with open(fileName, encoding="utf-8") as f: read_data =...
45.3
123
0.71397
285
3,171
7.905263
0.403509
0.022193
0.095428
0.130937
0.215712
0.182867
0.118065
0.087883
0
0
0
0.000785
0.196468
3,171
69
124
45.956522
0.883438
0.027121
0
0.074074
0
0.018519
0.162828
0.008109
0
0
0
0.014493
0
1
0.037037
false
0.037037
0.092593
0
0.148148
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
6ce5b1fdedad3f99e65e3d1f3574b7a7cc248760
715
py
Python
test/serial-gpu.py
ImperialCollegeLondon/software
e8bdb7935817af0fab4ab84b3cdd0509a8f7ccc8
[ "BSD-3-Clause" ]
8
2019-03-20T02:54:03.000Z
2021-08-24T15:26:21.000Z
test/serial-gpu.py
ImperialCollegeLondon/software
e8bdb7935817af0fab4ab84b3cdd0509a8f7ccc8
[ "BSD-3-Clause" ]
32
2019-03-19T23:34:20.000Z
2022-03-22T19:10:28.000Z
test/serial-gpu.py
ImperialCollegeLondon/software
e8bdb7935817af0fab4ab84b3cdd0509a8f7ccc8
[ "BSD-3-Clause" ]
4
2019-03-22T18:14:00.000Z
2021-12-08T14:49:33.000Z
results = open('test-results-gpu.out', 'a') results.write('** Starting serial GPU tests **\n') try: # Fresnel #import fresnel #results.write('Fresnel version : {}\n'.format(fresnel.__version__)) #dev = fresnel.Device(mode='gpu', n=1) #results.write('Fresnel device : {}\n'.format(dev)) # H...
31.086957
88
0.634965
90
715
4.911111
0.344444
0.190045
0.095023
0.095023
0.117647
0
0
0
0
0
0
0.001715
0.184615
715
22
89
32.5
0.756432
0.26014
0
0
0
0
0.341651
0
0
0
0
0
0.083333
1
0
false
0.083333
0.083333
0
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
6ce92f7cc60e57aeb3a0f765328c9efb31ca244a
626
py
Python
.configs/sonatconfig.py
Armcollector/lockdown-workout
a1c4633c8bd47e399bc7297d77f980542885414e
[ "MIT" ]
null
null
null
.configs/sonatconfig.py
Armcollector/lockdown-workout
a1c4633c8bd47e399bc7297d77f980542885414e
[ "MIT" ]
null
null
null
.configs/sonatconfig.py
Armcollector/lockdown-workout
a1c4633c8bd47e399bc7297d77f980542885414e
[ "MIT" ]
null
null
null
import os import urllib.parse basedir = os.path.abspath(os.path.dirname(__file__)) if "DB_CONNECTIONSTRING" in os.environ: params = urllib.parse.quote_plus(os.environ.get("DB_CONNECTIONSTRING")) class Config(object): SECRET_KEY = os.environ.get("SECRET_KEY") or "iR33OXoRSUj5" SQLALCHEMY_DATABASE_URI = ...
28.454545
79
0.728435
80
626
5.425
0.7375
0.062212
0.0553
0
0
0
0
0
0
0
0
0.015209
0.159744
626
21
80
29.809524
0.809886
0
0
0
0
0
0.210863
0.051118
0
0
0
0
0
1
0
false
0
0.125
0
0.8125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
6ceec6d6259423de30eaf0244fd138f63c906931
4,710
py
Python
saleor/api/purchase/serializers.py
glosoftgroup/glosoftgroup-django-pos
b489c402939b9ebabd164c449e7da38fe849d550
[ "BSD-3-Clause" ]
2
2017-07-11T12:40:59.000Z
2017-10-18T18:02:46.000Z
saleor/api/purchase/serializers.py
glosoftgroup/glosoftgroup-django-pos
b489c402939b9ebabd164c449e7da38fe849d550
[ "BSD-3-Clause" ]
12
2017-06-19T07:20:41.000Z
2022-03-15T19:03:33.000Z
saleor/api/purchase/serializers.py
glosoftgroup/glosoftgroup-django-pos
b489c402939b9ebabd164c449e7da38fe849d550
[ "BSD-3-Clause" ]
null
null
null
from django.utils.formats import localize from rest_framework.serializers import ( ModelSerializer, HyperlinkedIdentityField, SerializerMethodField, ValidationError, ) from rest_framework import serializers from django.contrib.auth import ...
25.597826
85
0.562208
432
4,710
5.93287
0.185185
0.039797
0.04682
0.06867
0.508389
0.508389
0.378463
0.28014
0.28014
0.28014
0
0.002642
0.357113
4,710
183
86
25.737705
0.843791
0
0
0.638158
0
0
0.063057
0.005945
0
0
0
0
0
1
0.111842
false
0
0.046053
0.032895
0.506579
0.019737
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
6cf5c425b9a007093ff73fa1c5872a082b863b03
18,872
py
Python
externals/libbot/bot2-procman/python/src/bot_procman/sheriff_config.py
ericmanzi/double_pendulum_lqr
76bba3091295abb7d412c4a3156258918f280c96
[ "BSD-3-Clause" ]
null
null
null
externals/libbot/bot2-procman/python/src/bot_procman/sheriff_config.py
ericmanzi/double_pendulum_lqr
76bba3091295abb7d412c4a3156258918f280c96
[ "BSD-3-Clause" ]
null
null
null
externals/libbot/bot2-procman/python/src/bot_procman/sheriff_config.py
ericmanzi/double_pendulum_lqr
76bba3091295abb7d412c4a3156258918f280c96
[ "BSD-3-Clause" ]
null
null
null
TokIdentifier = "Identifier" TokOpenStruct = "OpenStruct" TokCloseStruct = "CloseStruct" TokAssign = "Assign" TokEndStatement = "EndStatement" TokString = "String" TokEOF = "EOF" TokComment = "Comment" TokInteger = "Integer" class Token(object): def __init__ (self, type, val): self.type = type self...
34.755064
106
0.572011
2,245
18,872
4.499777
0.093987
0.023758
0.033261
0.030489
0.411206
0.332013
0.243714
0.174421
0.1176
0.077014
0
0.002249
0.316819
18,872
542
107
34.819188
0.781277
0
0
0.262821
0
0
0.081708
0
0.002137
0
0
0
0.021368
0
null
null
0
0.002137
null
null
0.004274
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
9f03f062a720d101370b2aeaa19a382b35aa2aa7
2,203
py
Python
test/unittests/analysis/mri/test_base.py
monashbiomedicalimaging/nianalysis
d69c38eed52ae557a849889930cd659cdb3c6401
[ "Apache-2.0" ]
2
2019-11-14T01:02:26.000Z
2022-03-17T01:47:01.000Z
test/unittests/analysis/mri/test_base.py
MonashBI/banana
37364243b520ab14ac1243005dbd465f824542b4
[ "Apache-2.0" ]
18
2019-04-03T04:25:55.000Z
2020-06-08T06:00:56.000Z
test/unittests/analysis/mri/test_base.py
MonashBI/nianalysis
37364243b520ab14ac1243005dbd465f824542b4
[ "Apache-2.0" ]
4
2018-05-23T07:13:02.000Z
2018-08-24T04:05:31.000Z
from banana.analysis.mri.base import MriAnalysis from banana.utils.testing import AnalysisTester, PipelineTester, TEST_CACHE_DIR from banana import FilesetFilter from arcana.repository.xnat import XnatRepo class TestMriBaseDefault(AnalysisTester): analysis_class = MriAnalysis parameters = {'mni_tmpl_resoluti...
34.968254
79
0.663187
250
2,203
5.432
0.296
0.056701
0.11782
0.139912
0.467599
0.388807
0.343152
0.143594
0.05891
0
0
0.00425
0.252383
2,203
62
80
35.532258
0.820279
0.020427
0
0.133333
0
0
0.180427
0.065863
0
0
0
0
0
1
0.244444
false
0.022222
0.088889
0
0.533333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
9f06666109409538bd3e098b187da1a2987b3910
1,034
py
Python
application.py
ane4katv/python_training
d8ba6dbed0b43402e8b09a5b6cf8de52703e18a1
[ "Apache-2.0" ]
null
null
null
application.py
ane4katv/python_training
d8ba6dbed0b43402e8b09a5b6cf8de52703e18a1
[ "Apache-2.0" ]
null
null
null
application.py
ane4katv/python_training
d8ba6dbed0b43402e8b09a5b6cf8de52703e18a1
[ "Apache-2.0" ]
null
null
null
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys class Application: def __init__(self): self.wd = webdriver.Chrome(executable_path='/Users/atvelova/Documents/python_training/chromedriver') self.wd.implicitly_wait(60) d...
32.3125
108
0.662476
140
1,034
4.742857
0.385714
0.099398
0.11747
0.135542
0.365964
0.268072
0.108434
0.108434
0
0
0
0.007264
0.201161
1,034
32
109
32.3125
0.79661
0
0
0.24
0
0
0.180676
0.052174
0
0
0
0
0
1
0.2
false
0.08
0.12
0
0.36
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
9f0cf9dacde698a4632f08679730078e59456da8
720
py
Python
scripts/subsample_model_files.py
musicpiano/mlmicrophysics
720e09b9003285e4e601df8befd58337bee691f5
[ "MIT" ]
4
2021-01-05T13:18:28.000Z
2021-09-29T09:53:28.000Z
scripts/subsample_model_files.py
musicpiano/mlmicrophysics
720e09b9003285e4e601df8befd58337bee691f5
[ "MIT" ]
5
2020-11-16T15:53:24.000Z
2021-07-22T20:16:11.000Z
scripts/subsample_model_files.py
musicpiano/mlmicrophysics
720e09b9003285e4e601df8befd58337bee691f5
[ "MIT" ]
4
2020-07-08T13:04:44.000Z
2022-01-09T13:36:55.000Z
import xarray as xr import argparse from glob import glob def main(): parser = argparse.ArgumentParser() parser.add_argument("-i", "--input", help="Input File Directory") parser.add_argument("-o", "--output", help="Output file directory") parser.add_argument("-x", "--xsub", type=int, default=2, help="X...
37.894737
90
0.652778
103
720
4.378641
0.475728
0.099778
0.18847
0.097561
0.345898
0
0
0
0
0
0
0.005051
0.175
720
19
91
37.894737
0.754209
0
0
0
0
0
0.208044
0
0
0
0
0
0
1
0.058824
false
0
0.176471
0
0.235294
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9f109b8c71bc216b9f304425a1fe0bb9187d6712
1,187
py
Python
TaskManage/models.py
CooloiStudio/django-hotel-manager
dce558bfeedbb45e5d58bc875dfa936940d57ed5
[ "MIT" ]
1
2021-08-07T18:44:32.000Z
2021-08-07T18:44:32.000Z
TaskManage/models.py
CooloiStudio/django-hotel-manager
dce558bfeedbb45e5d58bc875dfa936940d57ed5
[ "MIT" ]
null
null
null
TaskManage/models.py
CooloiStudio/django-hotel-manager
dce558bfeedbb45e5d58bc875dfa936940d57ed5
[ "MIT" ]
1
2017-09-10T07:23:05.000Z
2017-09-10T07:23:05.000Z
# coding: utf-8 from django.db import models from django.contrib.auth.models import User from RoomManage.models import Room, Customs # Create your models here. class Task(models.Model): context = models.TextField() date = models.DateTimeField() task_status = models.CharField(max_length=20, default='und...
27.604651
93
0.676495
157
1,187
4.942675
0.343949
0.015464
0.07732
0.092784
0.257732
0.257732
0.257732
0.257732
0.257732
0.257732
0
0.003145
0.196293
1,187
42
94
28.261905
0.810273
0.032013
0
0.333333
0
0
0.0637
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0.111111
0.888889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
9f10e94c964ce66f7a8b92cc263cc90bcb46f403
400
py
Python
test/pypendency/test_parser.py
Taschenbergerm/pypendency
d941f584cabd0e6acc56ec3df43be174198ae4b7
[ "Apache-2.0" ]
null
null
null
test/pypendency/test_parser.py
Taschenbergerm/pypendency
d941f584cabd0e6acc56ec3df43be174198ae4b7
[ "Apache-2.0" ]
1
2021-06-23T15:05:40.000Z
2021-06-23T15:05:40.000Z
test/pypendency/test_parser.py
Taschenbergerm/pypendency
d941f584cabd0e6acc56ec3df43be174198ae4b7
[ "Apache-2.0" ]
null
null
null
import pathlib import pytest from pypendency.parser.yaml import Parser from pypendency.lexer import LarkRelationLexer def test_read_yaml_node_length(): file = pathlib.Path(__file__).parent / "example.yml" lexer = LarkRelationLexer() p = Parser(lexer=lexer, folder=pathlib.Path(__file__).parent) g = p...
23.529412
65
0.73
52
400
5.384615
0.519231
0.1
0.107143
0.15
0
0
0
0
0
0
0
0.002976
0.16
400
16
66
25
0.830357
0
0
0
0
0
0.055138
0
0
0
0
0
0
1
0.090909
false
0
0.363636
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
9f1a77ebd61987c0e53368471dad9d42d5b2f750
548
py
Python
mtianyan/listname.py
mtianyan/mtianyan
6c8f3d2076da4f472f6734714f1352ffaa5264b1
[ "Apache-2.0" ]
null
null
null
mtianyan/listname.py
mtianyan/mtianyan
6c8f3d2076da4f472f6734714f1352ffaa5264b1
[ "Apache-2.0" ]
null
null
null
mtianyan/listname.py
mtianyan/mtianyan
6c8f3d2076da4f472f6734714f1352ffaa5264b1
[ "Apache-2.0" ]
4
2020-11-29T14:25:39.000Z
2021-04-05T07:17:56.000Z
import os.path filepathlist=[] filenamelist=[] def processDirectory ( args, dirname, filenames ): for filename in filenames: file_path=os.path.join(dirname,filename) if os.path.isfile(file_path): filepathlist.append(file_path) filenamelist.append(filename) def ...
28.842105
54
0.662409
67
548
5.343284
0.567164
0.067039
0.055866
0
0
0
0
0
0
0
0
0
0.213504
548
18
55
30.444444
0.830626
0
0
0
0
0
0.092453
0.058491
0
0
0
0
0
0
null
null
0
0.0625
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
9f1c5fd349b7d26a420b931b4c0db17b38bcc27d
647
py
Python
test/lit/memberfield/__init__.py
sivachandra/gala
6d7e5fd3cf3c319062a3985dbffd791944e180e9
[ "Apache-2.0" ]
4
2016-07-16T01:35:30.000Z
2020-06-18T05:37:33.000Z
test/lit/memberfield/__init__.py
sivachandra/gala
6d7e5fd3cf3c319062a3985dbffd791944e180e9
[ "Apache-2.0" ]
7
2015-06-26T19:24:30.000Z
2015-08-18T18:16:11.000Z
test/lit/memberfield/__init__.py
sivachandra/gala
6d7e5fd3cf3c319062a3985dbffd791944e180e9
[ "Apache-2.0" ]
null
null
null
import gdb def print_field(f): print("========") print("name: %s" % f.name) print("type: %s" % f.type) if hasattr(f, "bitpos"): print("bitpos: %d" % f.bitpos) else: print("No bitpos attribute.") print("bitsize: %d" % f.bitsize) print("parent_type: %s" % f.parent_type) print("is_base_class: %s" ...
23.962963
46
0.630603
97
647
4.092784
0.309278
0.025189
0.083123
0.085642
0
0
0
0
0
0
0
0
0.173107
647
26
47
24.884615
0.742056
0
0
0.173913
0
0
0.264297
0
0
0
0
0
0
1
0.043478
false
0
0.043478
0
0.086957
0.608696
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
9f3b23013912e3d6b5ff12494cd3c60f642390af
316
py
Python
Aula07/03EstruturaDeRepeticaoFor.py
gutoffline/curso-python-2021
4a9a5f11188ad734402d1dafa7ea627179e7079b
[ "MIT" ]
null
null
null
Aula07/03EstruturaDeRepeticaoFor.py
gutoffline/curso-python-2021
4a9a5f11188ad734402d1dafa7ea627179e7079b
[ "MIT" ]
null
null
null
Aula07/03EstruturaDeRepeticaoFor.py
gutoffline/curso-python-2021
4a9a5f11188ad734402d1dafa7ea627179e7079b
[ "MIT" ]
null
null
null
""" for x in range(10): print(x) for x in range(20, 30): print(x) for x in range(10,100,5): print(x) for x in range(10,1,-1): print(x) print(range(10)) """ frutas = ["maçã", "laranja", "banana", "morango"] for x in range(len(frutas)): print(frutas[x]) for fruta in frutas: print(fruta)
13.73913
49
0.582278
56
316
3.285714
0.321429
0.108696
0.163043
0.298913
0.369565
0.298913
0.206522
0
0
0
0
0.073171
0.221519
316
22
50
14.363636
0.674797
0.528481
0
0
0
0
0.171429
0
0
0
0
0
0
1
0
false
0
0
0
0
0.4
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9f4fb4aa07286decc81511426c6486ee3fe2e5ca
4,704
py
Python
datagokr/kma/VilageFcstInfoService_2_0.py
uujei/datagokr
308f5151f819010f2c4e174a6ef84d83d3bea922
[ "MIT" ]
null
null
null
datagokr/kma/VilageFcstInfoService_2_0.py
uujei/datagokr
308f5151f819010f2c4e174a6ef84d83d3bea922
[ "MIT" ]
null
null
null
datagokr/kma/VilageFcstInfoService_2_0.py
uujei/datagokr
308f5151f819010f2c4e174a6ef84d83d3bea922
[ "MIT" ]
null
null
null
import logging import os from datetime import datetime from enum import Enum from typing import Optional from pydantic import BaseModel, Field, HttpUrl, SecretStr, ValidationError from ..DataGoKr import DataGoKr # logging logger = logging.getLogger(__file__) # debug only KMA_API_KEY = os.getenv("KMA_API_KEY") ####...
28.682927
81
0.528699
453
4,704
5.309051
0.280353
0.097297
0.068607
0.100624
0.458212
0.429106
0.419127
0.419127
0.419127
0.341372
0
0.024707
0.182611
4,704
163
82
28.858896
0.60078
0.119048
0
0.514563
0
0
0.087512
0
0
0
0
0
0
1
0
false
0
0.067961
0
0.980583
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
9f513a1848907a84153b93f6379a41b3912f5550
1,807
py
Python
test_hig.py
xiaohan2012/lst
793944d1dd8235adbe2f651270ab12e46ff8f6f7
[ "MIT" ]
1
2016-07-05T13:10:27.000Z
2016-07-05T13:10:27.000Z
test_hig.py
xiaohan2012/lst
793944d1dd8235adbe2f651270ab12e46ff8f6f7
[ "MIT" ]
null
null
null
test_hig.py
xiaohan2012/lst
793944d1dd8235adbe2f651270ab12e46ff8f6f7
[ "MIT" ]
null
null
null
import unittest import networkx as nx from nose.tools import assert_equal, assert_raises, \ assert_true from .util import json_load from .test_util import make_path from hig import construct_hig_from_interactions from interactions import InteractionsUtil as IU class HIGTest(unittest.TestCase): def setUp(self)...
30.116667
62
0.484781
207
1,807
4.033816
0.304348
0.086228
0.076647
0.134132
0.251497
0.179641
0
0
0
0
0
0.017056
0.383509
1,807
59
63
30.627119
0.732496
0
0
0.075472
0
0
0.044272
0.013835
0
0
0
0
0.169811
0
null
null
0
0.132075
null
null
0.018868
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
9f5b476a26d33e866185f1fc2f1015578a813124
593
py
Python
base/shortener/admin.py
elijah74/django-url-shortener
8934b46539748957b4be46945bea159640911434
[ "BSD-3-Clause" ]
null
null
null
base/shortener/admin.py
elijah74/django-url-shortener
8934b46539748957b4be46945bea159640911434
[ "BSD-3-Clause" ]
null
null
null
base/shortener/admin.py
elijah74/django-url-shortener
8934b46539748957b4be46945bea159640911434
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib import admin from .models import Shortener @admin.register(Shortener) class ShortenerAdmin(admin.ModelAdmin): list_display = ('id', 'short_url', 'link_url', 'status', 'created') fields = ('short_url', 'link_url', 'status', '...
31.210526
71
0.693086
70
593
5.642857
0.571429
0.070886
0.060759
0.075949
0.141772
0.141772
0
0
0
0
0
0.004032
0.163575
593
18
72
32.944444
0.792339
0.035413
0
0
0
0
0.164912
0
0
0
0
0
0
1
0.083333
false
0
0.25
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
9f6fd9b78959476700ebfd2a923895af3dc7f59d
250
py
Python
gui/examples/hello_0.py
t20100/silx-training
409656479c7fdc9f1e895c6f3f0530c7eb89cbc1
[ "CC-BY-4.0" ]
7
2017-05-02T10:03:12.000Z
2021-06-28T14:11:32.000Z
gui/examples/hello_0.py
t20100/silx-training
409656479c7fdc9f1e895c6f3f0530c7eb89cbc1
[ "CC-BY-4.0" ]
23
2016-11-21T17:55:11.000Z
2021-11-24T13:43:13.000Z
gui/examples/hello_0.py
t20100/silx-training
409656479c7fdc9f1e895c6f3f0530c7eb89cbc1
[ "CC-BY-4.0" ]
13
2016-11-17T10:47:22.000Z
2022-02-07T09:38:47.000Z
from PyQt5.QtWidgets import QApplication, QLabel, QMainWindow app = QApplication([]) main_window = QMainWindow() first_widget = QLabel('hello world !!!', parent=main_window) main_window.setCentralWidget(first_widget) main_window.show() app.exec_()
25
61
0.788
30
250
6.333333
0.6
0.210526
0
0
0
0
0
0
0
0
0
0.004405
0.092
250
10
62
25
0.832599
0
0
0
0
0
0.059761
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9f7018c0a4594a3537d02ec23d95b4ae17544c4d
1,101
py
Python
kolibri/logger/test/factory_logger.py
aronasorman/kolibri
940672bc849cd0b26d7d84ee08a34f072c4f6cd6
[ "MIT" ]
null
null
null
kolibri/logger/test/factory_logger.py
aronasorman/kolibri
940672bc849cd0b26d7d84ee08a34f072c4f6cd6
[ "MIT" ]
2
2017-02-08T00:22:04.000Z
2017-06-12T20:27:44.000Z
kolibri/logger/test/factory_logger.py
aronasorman/kolibri
940672bc849cd0b26d7d84ee08a34f072c4f6cd6
[ "MIT" ]
null
null
null
import datetime import factory import uuid from kolibri.auth.test.test_api import FacilityUserFactory from .. import models class ContentSessionLogFactory(factory.DjangoModelFactory): class Meta: model = models.ContentSessionLog user = factory.SubFactory(FacilityUserFactory) content_id = uuid.u...
23.425532
59
0.745686
109
1,101
7.449541
0.302752
0.044335
0.081281
0.103448
0.618227
0.618227
0.396552
0.396552
0.396552
0.396552
0
0.006593
0.173479
1,101
46
60
23.934783
0.885714
0
0
0.551724
0
0
0
0
0
0
0
0
0
1
0
false
0
0.172414
0
0.862069
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
9f71a197572466c48094262987b091e399a3df17
237
py
Python
lists/urls.py
Tawakalt/todo_list
184293acf62771f60c6fdc46271634ae89684775
[ "MIT" ]
null
null
null
lists/urls.py
Tawakalt/todo_list
184293acf62771f60c6fdc46271634ae89684775
[ "MIT" ]
5
2020-06-06T01:03:12.000Z
2022-02-10T10:01:49.000Z
lists/urls.py
Tawakalt/todo_list
184293acf62771f60c6fdc46271634ae89684775
[ "MIT" ]
1
2020-01-20T12:44:56.000Z
2020-01-20T12:44:56.000Z
from django.urls import path from . import views urlpatterns = [ path('new', views.new_list, name='new_list'), path('<list_id>/', views.view_list, name='view_list'), path('users/<email>/', views.my_lists, name='my_lists'), ]
29.625
60
0.670886
35
237
4.342857
0.457143
0.092105
0
0
0
0
0
0
0
0
0
0
0.139241
237
8
61
29.625
0.745098
0
0
0
0
0
0.218487
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9f7961daf22e80aa849ae0a67694bcc8b1f9979d
348
py
Python
setup.py
anthonyvallee/bettejpeg
eaa809f4d07d85274cd4ee4671352ff069f94307
[ "Apache-2.0" ]
1
2020-03-29T13:12:32.000Z
2020-03-29T13:12:32.000Z
setup.py
anthonyvallee/bettejpeg
eaa809f4d07d85274cd4ee4671352ff069f94307
[ "Apache-2.0" ]
2
2016-10-23T21:15:52.000Z
2016-12-08T07:25:07.000Z
setup.py
RentAPlace/python-betterjpeg
eaa809f4d07d85274cd4ee4671352ff069f94307
[ "Apache-2.0" ]
null
null
null
from setuptools import (find_packages, setup) from rap import betterjpeg setup( name=betterjpeg.__pkgname__, description=betterjpeg.__description__, version=betterjpeg.__version__, packages=["rap.betterjpeg"], entry_points=""" [console_scripts] betterjpeg=rap.betterjpeg....
23.2
49
0.686782
32
348
7
0.53125
0.116071
0
0
0
0
0
0
0
0
0
0
0.215517
348
14
50
24.857143
0.820513
0
0
0
0
0
0.281437
0.11976
0
0
0
0
0
1
0
true
0
0.166667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
9f9602b2224dec858d62feca228f9bec5c6a8d6a
2,320
py
Python
tensorflow_transform/beam/tft_beam_io/beam_metadata_io_test.py
sswapnil2/transform
54561ddb357ef752153dd569aad7cc2651b38ac2
[ "Apache-2.0" ]
null
null
null
tensorflow_transform/beam/tft_beam_io/beam_metadata_io_test.py
sswapnil2/transform
54561ddb357ef752153dd569aad7cc2651b38ac2
[ "Apache-2.0" ]
null
null
null
tensorflow_transform/beam/tft_beam_io/beam_metadata_io_test.py
sswapnil2/transform
54561ddb357ef752153dd569aad7cc2651b38ac2
[ "Apache-2.0" ]
1
2020-04-07T23:48:26.000Z
2020-04-07T23:48:26.000Z
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
36.825397
77
0.771983
298
2,320
5.785235
0.40604
0.046404
0.040603
0.064965
0.37819
0.356148
0.356148
0.356148
0.24826
0.24826
0
0.004117
0.1625
2,320
62
78
37.419355
0.88317
0.384914
0
0.275862
0
0
0.021383
0.015681
0
0
0
0
0.068966
1
0.068966
false
0
0.310345
0
0.413793
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
9f9abf9bd659e3c5cd886d27c3067e12da0ea781
490
py
Python
src/basic/check_type.py
xxzhwx/hello-python
83bb01c146049d3c7f7fa9ed007abee054d004ef
[ "MIT" ]
null
null
null
src/basic/check_type.py
xxzhwx/hello-python
83bb01c146049d3c7f7fa9ed007abee054d004ef
[ "MIT" ]
null
null
null
src/basic/check_type.py
xxzhwx/hello-python
83bb01c146049d3c7f7fa9ed007abee054d004ef
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' @author: xxzhwx ''' from types import IntType def is_int_type(num): # 对象身份比较 if type(num) is IntType: return True return False def is_int_typeX(num): if isinstance(num, int): return True # if type(num) is int: # return True ...
15.3125
28
0.606122
75
490
3.746667
0.333333
0.160142
0.213523
0.149466
0.298932
0
0
0
0
0
0
0.019231
0.257143
490
32
29
15.3125
0.752747
0.195918
0
0.266667
0
0
0
0
0
0
0
0
0
1
0.133333
false
0
0.066667
0
0.466667
0.4
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9fa5fa2df40b29c75a161e9790ab053c973c7300
3,569
py
Python
langsense/core.py
sneub/langsense
7e194582f19bbd2b7c93f8a1ef5d96d4d9f5ae73
[ "Apache-2.0" ]
null
null
null
langsense/core.py
sneub/langsense
7e194582f19bbd2b7c93f8a1ef5d96d4d9f5ae73
[ "Apache-2.0" ]
null
null
null
langsense/core.py
sneub/langsense
7e194582f19bbd2b7c93f8a1ef5d96d4d9f5ae73
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from . import ruleset import re import operator class LangSense(object): def detect(self, string, country_hint=None): if type(string) == str: text = string.decode('utf-8').lower() else: text = string.lower() shortlist_char = self._char_shortlist(text) shortlist_...
27.666667
143
0.609695
478
3,569
4.416318
0.16318
0.086215
0.072004
0.061582
0.413074
0.32307
0.306016
0.221696
0.157745
0.157745
0
0.005712
0.26422
3,569
128
144
27.882813
0.798172
0.005884
0
0.413043
0
0
0.013818
0
0
0
0
0
0
0
null
null
0.043478
0.032609
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
9fa815038e88bc8c7182ffc9b58dd48bcbb7159c
329
py
Python
src/testMultiRootWkspc/workspace5/remoteDebugger-start.py
ChaseKnowlden/vscode-jupyter
9bdaf87f0b6dcd717c508e9023350499a6093f97
[ "MIT" ]
2,461
2016-01-21T16:40:43.000Z
2022-03-31T12:01:55.000Z
src/testMultiRootWkspc/workspace5/remoteDebugger-start.py
ChaseKnowlden/vscode-jupyter
9bdaf87f0b6dcd717c508e9023350499a6093f97
[ "MIT" ]
12,536
2019-05-06T21:26:14.000Z
2022-03-31T23:06:48.000Z
src/testMultiRootWkspc/workspace5/remoteDebugger-start.py
vasili8m/vscode-python
846eee870e8b7bab38172600836faedb5fb80166
[ "MIT" ]
871
2019-05-15T13:43:55.000Z
2022-03-31T03:04:35.000Z
import sys import time def main(): sys.stdout.write('this is stdout') sys.stdout.flush() sys.stderr.write('this is stderr') sys.stderr.flush() # Give the debugger some time to add a breakpoint. time.sleep(5) for i in range(1): time.sleep(0.5) pass print('this is print')...
18.277778
54
0.613982
51
329
3.960784
0.568627
0.089109
0.108911
0
0
0
0
0
0
0
0
0.016461
0.261398
329
17
55
19.352941
0.814815
0.145897
0
0
0
0
0.146953
0
0
0
0
0
0
1
0.076923
false
0.076923
0.153846
0
0.230769
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
1
0
0
0
0
0
1
9fa8a760a99df59cb027859fabf342dae3bf5734
2,985
py
Python
rbb_tools/src/rbb_tools/simenvs/test.py
SK4P3/rbb_core
618617270314af5335de30179072244e1f440c4c
[ "MIT" ]
55
2019-05-09T06:43:05.000Z
2021-12-08T05:56:43.000Z
rbb_tools/src/rbb_tools/simenvs/test.py
SK4P3/rbb_core
618617270314af5335de30179072244e1f440c4c
[ "MIT" ]
5
2019-09-08T15:33:28.000Z
2021-04-17T17:30:53.000Z
rbb_tools/src/rbb_tools/simenvs/test.py
SK4P3/rbb_core
618617270314af5335de30179072244e1f440c4c
[ "MIT" ]
16
2019-08-08T07:15:35.000Z
2021-12-07T15:34:41.000Z
# AMZ-Driverless # Copyright (c) 2019 Authors: # - Huub Hendrikx <hhendrik@ethz.ch> # # 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 ...
34.709302
100
0.61206
350
2,985
5.131429
0.471429
0.048998
0.025056
0.066815
0.114143
0.090757
0.075724
0.075724
0
0
0
0.008072
0.294472
2,985
85
101
35.117647
0.844729
0.368844
0
0.152174
0
0
0.201505
0.069318
0
0
0
0
0
1
0.086957
false
0.065217
0.065217
0
0.217391
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
9fb1e69711f393a902cc733c79510a11dd6b8db4
7,309
py
Python
backend/venv/Lib/site-packages/github/tools/template.py
analurandis/Tur
b4b5d1230d70659be0c3f477f0baea68fc46ba39
[ "MIT" ]
null
null
null
backend/venv/Lib/site-packages/github/tools/template.py
analurandis/Tur
b4b5d1230d70659be0c3f477f0baea68fc46ba39
[ "MIT" ]
null
null
null
backend/venv/Lib/site-packages/github/tools/template.py
analurandis/Tur
b4b5d1230d70659be0c3f477f0baea68fc46ba39
[ "MIT" ]
null
null
null
""" :Description: PasteScript Template to generate a GitHub hosted python package. Let you set the package name, a one line description, the Licence (support GPL, LGPL, AGPL and BSD - GPLv3 by default) and the author name, email and organisation variables:: paster create -t gh_package <project name> .. note:: ...
36.004926
82
0.63716
907
7,309
5.066152
0.334068
0.018281
0.014363
0.008487
0.181502
0.098585
0.066159
0.052666
0.045267
0.029597
0
0.00375
0.270352
7,309
203
83
36.004926
0.857866
0.289369
0
0.163636
1
0
0.560985
0.007094
0
0
0
0
0
1
0.018182
false
0
0.045455
0
0.118182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9fb58ec6926f4ee6f24f0c39bf1b0ebd934bf3b3
1,284
py
Python
netconf-cisco.py
Raul-Flores/Network-programmability-examples
e540b050b89da167b84f415565b75313605e01b2
[ "Apache-2.0" ]
2
2020-01-09T18:32:37.000Z
2020-01-09T18:32:42.000Z
netconf-cisco.py
Raul-Flores/Network-programmability-examples
e540b050b89da167b84f415565b75313605e01b2
[ "Apache-2.0" ]
null
null
null
netconf-cisco.py
Raul-Flores/Network-programmability-examples
e540b050b89da167b84f415565b75313605e01b2
[ "Apache-2.0" ]
null
null
null
from ncclient import manager from xml.dom import minidom import xmltodict huaweiautomation = {'address':'ios-xe-mgmt-latest.cisco.com', 'netconf_port': 10000, 'username': 'developer', 'password': 'C1sco12345'} huawei_manager = manager.connect(host = huaweiautomation["address"], port = huaweiautomation["netconf_port"...
29.860465
150
0.746106
150
1,284
6.213333
0.5
0.055794
0.061159
0.051502
0
0
0
0
0
0
0
0.017301
0.099688
1,284
43
151
29.860465
0.788927
0.135514
0
0.115385
0
0
0.326993
0.072464
0
0
0
0
0
1
0
false
0.076923
0.115385
0
0.115385
0.269231
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
9fcb149ac5dfe464c79d244e6065b0b4f62a43f1
20,865
py
Python
modules/simulation/simulation.py
LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure
bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11
[ "BSD-3-Clause" ]
null
null
null
modules/simulation/simulation.py
LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure
bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11
[ "BSD-3-Clause" ]
null
null
null
modules/simulation/simulation.py
LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure
bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11
[ "BSD-3-Clause" ]
null
null
null
""" Module to execute the simulation for a given instance. """ """ import packages """ import logging from importlib import import_module import numpy.random as rdm import copy import numpy as np """ import project configurations """ import configurations.settings_simulation as config """ import project librar...
29.100418
134
0.600096
2,450
20,865
4.923673
0.127755
0.017243
0.02089
0.004559
0.301832
0.247617
0.211556
0.174335
0.164221
0.151455
0
0.005979
0.302612
20,865
717
135
29.100418
0.823036
0.231201
0
0.274096
0
0
0.038044
0.022732
0
0
0
0
0
1
0.039157
false
0.150602
0.03012
0
0.078313
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
9fccdafbf659c38a1a762c6f3bc28239cbcc246f
3,175
py
Python
parser.py
bitounu/startupy
490a48a5e83900d91c5a2a67bb7fd286112f49f4
[ "Unlicense" ]
null
null
null
parser.py
bitounu/startupy
490a48a5e83900d91c5a2a67bb7fd286112f49f4
[ "Unlicense" ]
null
null
null
parser.py
bitounu/startupy
490a48a5e83900d91c5a2a67bb7fd286112f49f4
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- # zależności Pythona: BeatifulSoup # instalacja z pakietu # Debian /Ubuntu: apt-get install python-bs4 # albo # easy_install beautifulsoup4 # lub # pip install beautifulsoup4 # skrypt robi spis firm ze stron mambiznes.pl # i wypluwa CSV: # Kolumny: # fid # nazwa - Nazwa f...
28.097345
122
0.610079
418
3,175
4.566986
0.433014
0.028287
0.023573
0.029859
0.060241
0.048193
0
0
0
0
0
0.014173
0.244409
3,175
112
123
28.348214
0.781576
0.328819
0
0.132353
0
0
0.197042
0.027195
0
0
0
0
0
0
null
null
0
0.088235
null
null
0.014706
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1