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
bf48c12f766440fe89efdec56fd4ce8b427adc83
653
py
Python
Python3/1429-First-Unique-Number/soln.py
wyaadarsh/LeetCode-Solutions
3719f5cb059eefd66b83eb8ae990652f4b7fd124
[ "MIT" ]
5
2020-07-24T17:48:59.000Z
2020-12-21T05:56:00.000Z
Python3/1429-First-Unique-Number/soln.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
null
null
null
Python3/1429-First-Unique-Number/soln.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
2
2020-07-24T17:49:01.000Z
2020-08-31T19:57:35.000Z
class FirstUnique: def __init__(self, nums: List[int]): self.counter = collections.Counter(nums) self.idx = 0 self.nums = nums def showFirstUnique(self) -> int: while self.idx < len(self.nums) and self.counter[self.nums[self.idx]] > 1: self.idx += 1 ...
27.208333
82
0.601838
87
653
4.45977
0.390805
0.14433
0.085052
0.072165
0.092784
0
0
0
0
0
0
0.012685
0.275651
653
23
83
28.391304
0.807611
0.206738
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
0
0.416667
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
bf4a21121167372f015ea33b342a6de5c9c4381e
737
py
Python
fias/migrations/0007_add_fks_to_house.py
xiva-wgt/django-fias
966e9905d6205cec8b51cbe6751382198c67f2cb
[ "BSD-3-Clause" ]
108
2015-02-26T16:33:23.000Z
2022-01-05T22:47:59.000Z
fias/migrations/0007_add_fks_to_house.py
xiva-wgt/django-fias
966e9905d6205cec8b51cbe6751382198c67f2cb
[ "BSD-3-Clause" ]
74
2015-01-26T11:15:08.000Z
2021-12-17T05:29:07.000Z
fias/migrations/0007_add_fks_to_house.py
xiva-wgt/django-fias
966e9905d6205cec8b51cbe6751382198c67f2cb
[ "BSD-3-Clause" ]
81
2015-01-22T09:55:59.000Z
2022-03-23T04:53:05.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.9 on 2016-08-24 15:58 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('fias', '0006_add_fks_to_addrobj'), ] operations = [...
27.296296
100
0.629579
83
737
5.433735
0.542169
0.070953
0.093126
0.146341
0.452328
0.452328
0.283814
0.283814
0.283814
0.283814
0
0.035971
0.24559
737
26
101
28.346154
0.77518
0.090909
0
0.315789
1
0
0.118441
0.034483
0
0
0
0
0
1
0
false
0
0.157895
0
0.315789
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
bf50573fc8c7f1473140c678218ca5ff24e7755c
514
py
Python
hello.py
charlieallatson/hello_world
1a759534f9ae4ae27f845dc7b4d5015c9aa91dbc
[ "MIT" ]
null
null
null
hello.py
charlieallatson/hello_world
1a759534f9ae4ae27f845dc7b4d5015c9aa91dbc
[ "MIT" ]
null
null
null
hello.py
charlieallatson/hello_world
1a759534f9ae4ae27f845dc7b4d5015c9aa91dbc
[ "MIT" ]
null
null
null
""" A new python package to learn how to create python packages """ import sys __version__ = '0.0.22' def hello(name='world'): """ Return a greeting for the given name """ return 'Hello, {}'.format(name) def main(): """ Reads input from the args passed into the script and prints the out...
16.580645
67
0.571984
68
514
4.147059
0.617647
0.06383
0
0
0
0
0
0
0
0
0
0.013774
0.293774
514
30
68
17.133333
0.763085
0.346304
0
0
0
0
0.098639
0
0
0
0
0
0
1
0.153846
false
0
0.076923
0
0.307692
0.153846
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf5564f8800b67c13332af3f8707a95b96113e55
93
py
Python
magent/__init__.py
PettingZoo-Team/MAgent
99e0d2c3edb49fc4bc6ae0e95c97423eec0b73f7
[ "MIT" ]
121
2020-04-28T01:00:15.000Z
2021-10-06T06:44:00.000Z
magent/__init__.py
PettingZoo-Team/MAgent
99e0d2c3edb49fc4bc6ae0e95c97423eec0b73f7
[ "MIT" ]
2
2021-06-05T04:16:13.000Z
2021-10-12T13:48:34.000Z
magent/__init__.py
PettingZoo-Team/MAgent
99e0d2c3edb49fc4bc6ae0e95c97423eec0b73f7
[ "MIT" ]
23
2020-05-29T04:31:10.000Z
2021-09-07T18:35:43.000Z
from . import gridworld from . import utility # some alias GridWorld = gridworld.GridWorld
13.285714
31
0.774194
11
93
6.545455
0.545455
0.277778
0
0
0
0
0
0
0
0
0
0
0.172043
93
6
32
15.5
0.935065
0.107527
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
bf562b96a69896118fd044a0894e367ce47403f6
4,666
py
Python
Artificial Algae Algorithm/AAA.py
shahind/Nature-Inspired-Algorithms
88cfc37f903bfb3840566257f2d818ac5534affe
[ "MIT" ]
17
2021-01-08T10:35:04.000Z
2022-03-23T07:13:54.000Z
Artificial Algae Algorithm/AAA.py
shahind/Nature-Inspired-Algorithms
88cfc37f903bfb3840566257f2d818ac5534affe
[ "MIT" ]
null
null
null
Artificial Algae Algorithm/AAA.py
shahind/Nature-Inspired-Algorithms
88cfc37f903bfb3840566257f2d818ac5534affe
[ "MIT" ]
5
2021-01-11T08:31:07.000Z
2022-01-11T06:28:04.000Z
import numpy as np from Sphere import ObjVal from CalculateGreatness import CalculateGreatness from GreatnessOrder import GreatnessOrder from FrictionSurface import FrictionSurface from tournement_selection import tournement_selection def AAA(MaxFEVs, N, D, LB, UB, K, le, Ap): Algae = np.zeros((N,D)) # Xij = ...
32.17931
115
0.541149
594
4,666
4.037037
0.188552
0.063386
0.035029
0.021685
0.30025
0.18849
0.172644
0.115096
0.095079
0.031693
0
0.022143
0.341835
4,666
144
116
32.402778
0.758711
0.04715
0
0.0625
0
0
0.005458
0
0
0
0
0
0
1
0.010417
false
0
0.0625
0
0.083333
0.010417
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf56a4ec5c9c9f5034ff21cf5feff393693d48db
22,712
py
Python
RL/PPO_ZFlt_stable_2019_1123.py
GuanShiTing/DL_RL_Zoo
520cd92c1a28f64006d51444a0940cc645b95c6d
[ "Apache-2.0" ]
1
2021-06-08T08:20:31.000Z
2021-06-08T08:20:31.000Z
RL/PPO_ZFlt_stable_2019_1123.py
GuanShiTing/DL_RL_Zoo
520cd92c1a28f64006d51444a0940cc645b95c6d
[ "Apache-2.0" ]
null
null
null
RL/PPO_ZFlt_stable_2019_1123.py
GuanShiTing/DL_RL_Zoo
520cd92c1a28f64006d51444a0940cc645b95c6d
[ "Apache-2.0" ]
null
null
null
import os import sys from time import time as timer import gym import numpy as np import numpy.random as rd import torch import torch.nn as nn import torch.nn.functional as F """ beta2 PPO ZFlt stable, running state mean std, def run_eval() beta1 GPU, def get_eva_reward() """ class Arguments: env_name = "Lunar...
33.949178
121
0.608401
2,969
22,712
4.422364
0.164702
0.009596
0.015842
0.020107
0.276999
0.224829
0.189947
0.162833
0.123839
0.102818
0
0.032428
0.281745
22,712
668
122
34
0.772451
0.095544
0
0.145299
0
0.002137
0.039604
0.001193
0
0
0
0.001497
0.002137
1
0.070513
false
0
0.029915
0.021368
0.196581
0.036325
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf582559e0911ceac34a3c025dbda5c3487ce0a3
759
py
Python
ansible/ansiblelints/rules/WeakCryptographyalgo.py
KalmanMeth/defect-prediction
0a4b549b8af5259241f41eaee77dd841e98e0064
[ "Apache-2.0" ]
null
null
null
ansible/ansiblelints/rules/WeakCryptographyalgo.py
KalmanMeth/defect-prediction
0a4b549b8af5259241f41eaee77dd841e98e0064
[ "Apache-2.0" ]
null
null
null
ansible/ansiblelints/rules/WeakCryptographyalgo.py
KalmanMeth/defect-prediction
0a4b549b8af5259241f41eaee77dd841e98e0064
[ "Apache-2.0" ]
null
null
null
import ruamel.yaml from ansiblelint import AnsibleLintRule class WeakCryptographyalgo(AnsibleLintRule): id = 'ANSIBLE0010' description = 'check if weak algorithms such as MD5 are used or not ' severity = 'HIGH' tags = {'weak algo'} version_added = 'v1.0.0' shortdesc = 'WeakCryptographyalgo' ...
29.192308
101
0.621871
92
759
5.021739
0.695652
0.064935
0.064935
0.082251
0.090909
0
0
0
0
0
0
0.021818
0.275362
759
25
102
30.36
0.818182
0.027668
0
0.105263
0
0
0.164402
0
0
0
0
0
0
1
0.052632
false
0
0.105263
0
0.736842
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf588f3851b0b3222aeb9120dab2bdad11f953db
2,966
py
Python
ApproachV4/src/GetAccountPropertiesV4.py
kanishk2509/TwitterBotDetection
26355410a43c27fff9d58f71ca0d87ff6e707b6a
[ "Unlicense" ]
2
2021-06-09T20:55:17.000Z
2021-11-03T03:07:37.000Z
ApproachV4/src/GetAccountPropertiesV4.py
kanishk2509/TwitterBotDetection
26355410a43c27fff9d58f71ca0d87ff6e707b6a
[ "Unlicense" ]
null
null
null
ApproachV4/src/GetAccountPropertiesV4.py
kanishk2509/TwitterBotDetection
26355410a43c27fff9d58f71ca0d87ff6e707b6a
[ "Unlicense" ]
1
2020-07-26T02:31:38.000Z
2020-07-26T02:31:38.000Z
import tweepy import datetime as dt import requests import re from GetTweetProperties import get_tweet_properties, get_tweet_semantics dow_ratios = {0: 0, 1: 0, 2: 0, 3: 0, 4: 0, 5: 0, 6: 0} ''' Step 3 Calculating Twitter User Account Properties Component ''' def get_data(user_id, api): tbl = [] try: ...
27.719626
117
0.618678
381
2,966
4.632546
0.338583
0.081586
0.058924
0.049858
0.087819
0.05779
0
0
0
0
0
0.029101
0.235334
2,966
106
118
27.981132
0.749118
0.072825
0
0.069444
0
0
0.15988
0.014569
0
0
0
0
0
1
0.055556
false
0
0.069444
0
0.194444
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
0
0
0
0
0
1
0
bf58f80c1eddf33be62a39e2715221f40903b812
2,712
py
Python
VTPtools/vtp-skew.py
moyogo/tirotools
9cf6876fcc50448e6d45d046c10293d8ba103c31
[ "MIT" ]
17
2019-04-18T15:28:55.000Z
2020-06-11T15:49:19.000Z
VTPtools/vtp-skew.py
moyogo/tirotools
9cf6876fcc50448e6d45d046c10293d8ba103c31
[ "MIT" ]
4
2020-06-27T04:43:49.000Z
2022-03-23T11:38:25.000Z
VTPtools/vtp-skew.py
moyogo/tirotools
9cf6876fcc50448e6d45d046c10293d8ba103c31
[ "MIT" ]
1
2021-08-07T22:55:03.000Z
2021-08-07T22:55:03.000Z
import argparse import logging import math import re import sys from fontTools.misc.fixedTools import otRound from fontTools.misc.transform import Identity from fontTools.ttLib import TTFont, TTLibError from fontTools.voltLib.parser import Parser from io import StringIO log = logging.getLogger() anchor_re = re.compil...
30.818182
88
0.592183
365
2,712
4.287671
0.326027
0.076677
0.023003
0.023003
0.102236
0.073482
0.073482
0.073482
0.073482
0.073482
0
0.005165
0.286136
2,712
87
89
31.172414
0.803202
0
0
0.068493
0
0
0.198009
0.008481
0
0
0
0
0
1
0.027397
false
0
0.136986
0
0.205479
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf597e9b79cff3a9a7086f9c848f3046668b7b67
1,376
py
Python
bnb/utils/general_utils.py
elanmart/bnb-full
6d86964d6580436816a84d1dd822ede02f4bc56f
[ "MIT" ]
4
2018-04-28T14:29:11.000Z
2019-02-08T19:09:04.000Z
bnb/utils/general_utils.py
elanmart/bnb
e7556abc9b76193f1de555315e14785f47b7e99a
[ "BSD-3-Clause" ]
null
null
null
bnb/utils/general_utils.py
elanmart/bnb
e7556abc9b76193f1de555315e14785f47b7e99a
[ "BSD-3-Clause" ]
null
null
null
import inspect import os from collections import namedtuple from contextlib import contextmanager from pathlib import Path from typing import * import git @contextmanager def chdir(path): old = os.getcwd() os.chdir(path) yield os.chdir(old) def normalize_path(path: Union[Path, str]) -> Path: ...
24.140351
69
0.686773
177
1,376
5.163842
0.389831
0.043764
0.039387
0.035011
0
0
0
0
0
0
0
0.00274
0.204215
1,376
56
70
24.571429
0.831963
0
0
0
0
0
0.030523
0
0
0
0
0
0
1
0.105263
false
0
0.184211
0.026316
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf5a9cb5d3e9f2267ebde9027febc965b300c8da
8,379
py
Python
source/aws/services/transit_gateway_peering_attachments.py
josete89/serverless-transit-network-orchestrator
6a69e1f7ebcbcba20100f80bc2040f0d2ae86cf8
[ "Apache-2.0" ]
42
2019-11-16T18:00:32.000Z
2021-09-16T01:10:53.000Z
source/aws/services/transit_gateway_peering_attachments.py
sukenshah/serverless-transit-network-orchestrator
947edac276f56357859f2d2b8434b9d28fa1c6c1
[ "Apache-2.0" ]
38
2020-01-31T03:31:29.000Z
2021-09-16T03:20:23.000Z
source/aws/services/transit_gateway_peering_attachments.py
sukenshah/serverless-transit-network-orchestrator
947edac276f56357859f2d2b8434b9d28fa1c6c1
[ "Apache-2.0" ]
31
2019-12-09T17:20:03.000Z
2021-03-30T06:52:02.000Z
############################################################################### # Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # # # Licensed under the Apache License, Version 2.0 (the "License"). # ...
46.038462
80
0.509488
704
8,379
5.832386
0.210227
0.09888
0.112518
0.101315
0.661471
0.611057
0.601802
0.591817
0.57623
0.57623
0
0.004254
0.410789
8,379
181
81
46.292818
0.827426
0.247285
0
0.570248
0
0
0.082781
0.037566
0
0
0
0
0
1
0.049587
false
0
0.024793
0
0.123967
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf5d47be37cf903e8580c7840db1fffd47cb12b1
86
py
Python
berth/builder/backends/__init__.py
joealcorn/berth.cc
9cba1355d49705a13ae58cfdffa26ee6a3fb9e31
[ "MIT" ]
null
null
null
berth/builder/backends/__init__.py
joealcorn/berth.cc
9cba1355d49705a13ae58cfdffa26ee6a3fb9e31
[ "MIT" ]
null
null
null
berth/builder/backends/__init__.py
joealcorn/berth.cc
9cba1355d49705a13ae58cfdffa26ee6a3fb9e31
[ "MIT" ]
null
null
null
from berth.builder.backends.base import * from berth.builder.backends.sphinx import *
28.666667
43
0.813953
12
86
5.833333
0.583333
0.257143
0.457143
0.685714
0
0
0
0
0
0
0
0
0.093023
86
2
44
43
0.897436
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
8
bf5da77aeabd12ceb0b5e356d617cea7f17c6b26
138
py
Python
customer/urls.py
Um9i/ERPv
f4bf8d801ad8f800107c92625123c1e59b439c40
[ "MIT" ]
8
2019-04-13T14:08:55.000Z
2022-03-06T10:53:44.000Z
customer/urls.py
Um9i/ERPv
f4bf8d801ad8f800107c92625123c1e59b439c40
[ "MIT" ]
16
2019-03-31T20:22:21.000Z
2022-01-15T11:43:57.000Z
customer/urls.py
Um9i/ERPv
f4bf8d801ad8f800107c92625123c1e59b439c40
[ "MIT" ]
null
null
null
from . import views routeList = ( (r"customers", views.CustomerViewSet), (r"customer_products", views.CustomerProductViewSet), )
19.714286
57
0.717391
13
138
7.538462
0.769231
0
0
0
0
0
0
0
0
0
0
0
0.152174
138
6
58
23
0.837607
0
0
0
0
0
0.188406
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
bf5ea75c0a67371f89833cc073f335bc92883e04
1,064
py
Python
escher/cmd/esdsl.py
msh5/escher
004e90e6df70a15a00331a5c27bf2aef77608d30
[ "Apache-2.0" ]
null
null
null
escher/cmd/esdsl.py
msh5/escher
004e90e6df70a15a00331a5c27bf2aef77608d30
[ "Apache-2.0" ]
null
null
null
escher/cmd/esdsl.py
msh5/escher
004e90e6df70a15a00331a5c27bf2aef77608d30
[ "Apache-2.0" ]
null
null
null
''' Define subcommands for 'esdsl'. ''' import json import click from escher import __version__ @click.group() @click.option('--pretty', '-p', is_flag=True) @click.option('--indent', '-n', type=int) @click.version_option(version=__version__, message='escher %(version)s') @click.pass_context def cli(ctx, pretty, ind...
20.075472
72
0.660714
149
1,064
4.510067
0.315436
0.089286
0.071429
0.084821
0.071429
0
0
0
0
0
0
0.001131
0.169173
1,064
52
73
20.461538
0.75905
0.029135
0
0.142857
0
0
0.12878
0
0
0
0
0
0
1
0.142857
false
0.085714
0.085714
0
0.228571
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
bf5eb68165231d8bd2e30af9eab24faf05a5f7d7
675
py
Python
ui/AutoSelectSettingDialog.py
Zhehua-Hu/Enchain
94bb21f8ff627fab7d28ca15b575ba01710fb579
[ "Apache-2.0" ]
12
2017-02-20T05:54:12.000Z
2020-02-13T18:26:29.000Z
ui/AutoSelectSettingDialog.py
Zhehua-Hu/-nchain
94bb21f8ff627fab7d28ca15b575ba01710fb579
[ "Apache-2.0" ]
null
null
null
ui/AutoSelectSettingDialog.py
Zhehua-Hu/-nchain
94bb21f8ff627fab7d28ca15b575ba01710fb579
[ "Apache-2.0" ]
3
2017-02-23T06:35:13.000Z
2020-06-18T07:06:17.000Z
#!/usr/bin/env python # coding=utf-8 """ Provide AutoSelectSettingDialog Class """ from PyQt5.QtWidgets import QDialog, QSpinBox from AutoSelectSetting import Ui_AutoSelectSetting class AutoSelectSettingDialog(QDialog, Ui_AutoSelectSetting): def __init__(self, parent=None): QDialog.__init__(self) ...
21.774194
61
0.700741
79
675
5.772152
0.481013
0.098684
0.052632
0.065789
0
0
0
0
0
0
0
0.005607
0.207407
675
30
62
22.5
0.846729
0.105185
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.133333
0.066667
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
0
0
0
0
1
0
bf5f3141b7f3a28885d055ded4aacbbcd9bfd9e3
9,432
py
Python
apis_highlighter/highlighter.py
acdh-oeaw/apis_highlighter
2d368ee7fb9c6096a557ec2a24a1864cd776f5f1
[ "MIT" ]
1
2019-07-13T10:52:32.000Z
2019-07-13T10:52:32.000Z
apis_highlighter/highlighter.py
acdh-oeaw/apis_highlighter
2d368ee7fb9c6096a557ec2a24a1864cd776f5f1
[ "MIT" ]
3
2018-08-01T13:44:55.000Z
2020-01-22T09:28:36.000Z
apis_highlighter/highlighter.py
acdh-oeaw/apis_highlighter
2d368ee7fb9c6096a557ec2a24a1864cd776f5f1
[ "MIT" ]
null
null
null
import re from django.contrib.contenttypes.models import ContentType from apis_core.apis_metainfo.models import Text from apis_highlighter.models import Annotation def highlight_text_new(*args, **kwargs): ann_proj_pk = kwargs.pop("set_ann_proj", False) types = kwargs.pop("types", False) users_show = kwa...
36.416988
303
0.513147
1,255
9,432
3.662948
0.094821
0.106591
0.055688
0.048075
0.785947
0.762671
0.756363
0.747662
0.7196
0.70372
0
0.007844
0.33768
9,432
259
304
36.416988
0.728029
0.07517
0
0.722689
0
0.012605
0.094019
0.02009
0
0
0
0
0
1
0.012605
false
0
0.016807
0
0.058824
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
bf5f7e78f69402cb12269c29faa4e2ec83813aa8
13,409
py
Python
aiida_gollum/parsers/gollum.py
garsua/aiida-gollu2
4e41753c885c1e5aa955578a0e4973d57ccd9a96
[ "MIT" ]
null
null
null
aiida_gollum/parsers/gollum.py
garsua/aiida-gollu2
4e41753c885c1e5aa955578a0e4973d57ccd9a96
[ "MIT" ]
2
2020-03-19T20:04:11.000Z
2021-12-07T16:38:11.000Z
aiida_gollum/parsers/gollum.py
garsua/aiida-gollu2
4e41753c885c1e5aa955578a0e4973d57ccd9a96
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np from aiida.orm.data.parameter import ParameterData from aiida.parsers.parser import Parser from aiida.parsers.exceptions import OutputParsingError from aiida_gollum.calculations.gollum import GollumCalculation __copyright__ = u"Copyright (c), 2015, ECOLE POLYTECHNIQUE FEDERAL...
35.757333
278
0.572899
1,657
13,409
4.364514
0.161738
0.021018
0.033186
0.018805
0.407494
0.317063
0.276549
0.239629
0.199806
0.175194
0
0.004753
0.340965
13,409
374
279
35.852941
0.813625
0.127974
0
0.233607
0
0.004098
0.078444
0.006767
0
0
0
0
0
1
0.045082
false
0.012295
0.07377
0
0.180328
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf639a181719d10dfc36d41a7287863edc74aed4
418
py
Python
plugin/python/libs/runtime/launcher.py
nomadsinteractive/ark
52f84c6dbd5ca6bdd07d450b3911be1ffd995922
[ "Apache-2.0" ]
5
2018-03-28T09:14:55.000Z
2018-04-02T11:54:33.000Z
plugin/python/libs/runtime/launcher.py
nomadsinteractive/ark
52f84c6dbd5ca6bdd07d450b3911be1ffd995922
[ "Apache-2.0" ]
null
null
null
plugin/python/libs/runtime/launcher.py
nomadsinteractive/ark
52f84c6dbd5ca6bdd07d450b3911be1ffd995922
[ "Apache-2.0" ]
null
null
null
import sys from subprocess import Popen, PIPE, STDOUT, TimeoutExpired if __name__ == '__main__': proc = Popen(sys.argv[1:], stdout=PIPE, stderr=STDOUT) while True: try: for line in iter(proc.stdout.readline, b''): print(line.decode(sys.stdout.encoding or 'utf-8').rstrip()) ...
29.857143
75
0.593301
50
418
4.8
0.72
0
0
0
0
0
0
0
0
0
0
0.010169
0.294258
418
13
76
32.153846
0.80339
0
0
0
0
0
0.0311
0
0
0
0
0
0
1
0
false
0.083333
0.166667
0
0.166667
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
bf642152676e936f1e33bce340262b6207d887ce
746
py
Python
manage.py
stephen22otieno/oneMinutePitch
485e5a94b64b87c0967668f7204cd3c702a189e6
[ "MIT" ]
null
null
null
manage.py
stephen22otieno/oneMinutePitch
485e5a94b64b87c0967668f7204cd3c702a189e6
[ "MIT" ]
null
null
null
manage.py
stephen22otieno/oneMinutePitch
485e5a94b64b87c0967668f7204cd3c702a189e6
[ "MIT" ]
null
null
null
from flask_script import Manager,Server from app import create_app,db from app.models import User,Category,Peptalk,Comments from flask_migrate import Migrate, MigrateCommand app = create_app('development') manager =Manager(app) migrate = Migrate(app,db) manager.add_command('server',Server) manager.add_command('db', ...
25.724138
113
0.737265
97
746
5.494845
0.402062
0.050657
0.086304
0.097561
0
0
0
0
0
0
0
0.001563
0.142091
746
28
114
26.642857
0.83125
0.025469
0
0
0
0
0.048544
0
0
0
0
0
0
1
0.1
false
0
0.25
0.05
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf645d7debf666b250cc28d7fe102ce03898024c
2,764
py
Python
winograd.py
yerich/WinoCaptcha
5abd6335e8fda1d2cf8d2d4c9c3f2324def19275
[ "Unlicense", "MIT" ]
2
2019-04-01T20:43:11.000Z
2019-04-02T10:19:18.000Z
winograd.py
yerich/WinoCaptcha
5abd6335e8fda1d2cf8d2d4c9c3f2324def19275
[ "Unlicense", "MIT" ]
null
null
null
winograd.py
yerich/WinoCaptcha
5abd6335e8fda1d2cf8d2d4c9c3f2324def19275
[ "Unlicense", "MIT" ]
null
null
null
import random import re from collections import Counter from operator import itemgetter class Winograd: def __init__(self, filename): self.schema = random_lines(filename, 1)[0] def generate(self): # Switch genders, 50% of the time if(random.randint(0,1) == 1): self.schema = re.sub("<malename>", "<femalena...
35.435897
125
0.628075
405
2,764
4.241975
0.25679
0.104773
0.055879
0.069849
0.263097
0.242142
0.203725
0.14319
0.14319
0.107101
0
0.012653
0.170767
2,764
77
126
35.896104
0.736911
0.092981
0
0.126984
1
0
0.114309
0
0
0
0
0
0
0
null
null
0
0.063492
null
null
0.031746
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
1
0
0
0
0
0
0
0
0
2
bf654202b335a3ba2dfa9de6adedf93c5fc38356
1,668
py
Python
sitecheck.py
ghostleyjim/DiscordCoronaBotNL
8ac1e68abcf33d35a473c2b047ddbd5dcc840aa3
[ "MIT" ]
null
null
null
sitecheck.py
ghostleyjim/DiscordCoronaBotNL
8ac1e68abcf33d35a473c2b047ddbd5dcc840aa3
[ "MIT" ]
null
null
null
sitecheck.py
ghostleyjim/DiscordCoronaBotNL
8ac1e68abcf33d35a473c2b047ddbd5dcc840aa3
[ "MIT" ]
null
null
null
#testfile to scrape the RIVM website all is copied to bot import requests from bs4 import BeautifulSoup import csv import time import ntplib date_format = "%A %d %B %Y" f = open('updatetime.txt', 'r') old_time = f.readline() old_time = old_time.rstrip('\n') f.close() with open('updatetime.txt', "r+")...
29.263158
96
0.60012
196
1,668
5.010204
0.505102
0.028513
0.034623
0.03666
0
0
0
0
0
0
0
0.003303
0.273981
1,668
56
97
29.785714
0.807597
0.033573
0
0
0
0
0.158842
0
0
0
0
0
0
1
0
false
0
0.121951
0
0.121951
0.121951
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf65b6b01d6ff04b856a4ec4aff1e18a2ea3bdcb
1,067
py
Python
source/engine/detect/step_setup_camera.py
Borrk/DeepLearning-Engine
54f6cdb8a76e76d9f439f8562652f545e4dbc02e
[ "MIT" ]
null
null
null
source/engine/detect/step_setup_camera.py
Borrk/DeepLearning-Engine
54f6cdb8a76e76d9f439f8562652f545e4dbc02e
[ "MIT" ]
null
null
null
source/engine/detect/step_setup_camera.py
Borrk/DeepLearning-Engine
54f6cdb8a76e76d9f439f8562652f545e4dbc02e
[ "MIT" ]
null
null
null
from engine.steps.IStep import IStep from imutils.video import VideoStream import imutils class step_setup_camera(IStep): """ setup camera""" options = {} def __init__(self, output_channel, name=None ): super().__init__(self, output_channel, name) self.usePiCamera = True def IRun(self...
38.107143
117
0.63074
111
1,067
5.891892
0.378378
0.100917
0.103976
0.06422
0.076453
0
0
0
0
0
0
0.002484
0.245548
1,067
28
118
38.107143
0.809938
0.011246
0
0
0
0
0.130601
0
0
0
0
0
0
1
0.181818
false
0
0.136364
0
0.409091
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf65f199ebe8974254f6145acc0b95d4220672c6
1,428
py
Python
tota11y/middleware.py
hiisi13/django-tota11y
bf91c6a6e8a2997a6e088af41d46ef0830a4df32
[ "MIT" ]
null
null
null
tota11y/middleware.py
hiisi13/django-tota11y
bf91c6a6e8a2997a6e088af41d46ef0830a4df32
[ "MIT" ]
null
null
null
tota11y/middleware.py
hiisi13/django-tota11y
bf91c6a6e8a2997a6e088af41d46ef0830a4df32
[ "MIT" ]
null
null
null
import re from django.conf import settings from django.utils.encoding import force_text from django.template.loader import render_to_string _HTML_TYPES = ('text/html', 'application/xhtml+xml') class Tota11yMiddleware(object): def process_response(self, request, response): content_encoding = response.g...
38.594595
83
0.617647
169
1,428
5.094675
0.408284
0.10453
0.062718
0.060395
0.044135
0.044135
0.044135
0.044135
0.044135
0
0
0.010329
0.254202
1,428
36
84
39.666667
0.798122
0
0
0.068966
0
0
0.094538
0.014706
0
0
0
0
0
1
0.034483
false
0
0.137931
0
0.275862
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf6617694b418ef663952f93af37250bef039317
2,487
py
Python
cilantro_audit/home_page.py
CapstoneCilantro/CilantroAuditNewFeature
10b4548b4d6178bbbb5ba1d5fd46f5b7c51a527d
[ "MIT" ]
null
null
null
cilantro_audit/home_page.py
CapstoneCilantro/CilantroAuditNewFeature
10b4548b4d6178bbbb5ba1d5fd46f5b7c51a527d
[ "MIT" ]
null
null
null
cilantro_audit/home_page.py
CapstoneCilantro/CilantroAuditNewFeature
10b4548b4d6178bbbb5ba1d5fd46f5b7c51a527d
[ "MIT" ]
null
null
null
import kivy from kivy.app import App from kivy.lang import Builder from kivy.uix.popup import Popup from kivy.uix.screenmanager import Screen from kivy.uix.screenmanager import ScreenManager from cilantro_audit.admin_page import AdminPage from cilantro_audit.auditor_page import AuditorPage from cilantro_audit.create_a...
33.608108
119
0.772819
314
2,487
5.821656
0.286624
0.021882
0.04814
0.075492
0.125821
0.037199
0.037199
0
0
0
0
0.003343
0.158022
2,487
73
120
34.068493
0.869628
0.073583
0
0
0
0
0.030883
0.019574
0
0
0
0
0
1
0.1
false
0.04
0.28
0
0.46
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf68c5f9f6dbda4bc4e365b63fe8c8768421ddab
11,476
py
Python
appengine/monorail/sitewide/userprofile.py
xswz8015/infra
f956b78ce4c39cc76acdda47601b86794ae0c1ba
[ "BSD-3-Clause" ]
null
null
null
appengine/monorail/sitewide/userprofile.py
xswz8015/infra
f956b78ce4c39cc76acdda47601b86794ae0c1ba
[ "BSD-3-Clause" ]
7
2022-02-15T01:11:37.000Z
2022-03-02T12:46:13.000Z
appengine/monorail/sitewide/userprofile.py
NDevTK/chromium-infra
d38e088e158d81f7f2065a38aa1ea1894f735ec4
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file or at # https://developers.google.com/open-source/licenses/bsd """Classes for the user profile page ("my page").""" from __future__ import print_function from...
42.191176
80
0.720634
1,510
11,476
5.141722
0.184768
0.074704
0.026275
0.035033
0.426198
0.339387
0.246136
0.229006
0.185729
0.142839
0
0.00141
0.196846
11,476
271
81
42.346863
0.840946
0.085744
0
0.111628
0
0
0.071867
0.028459
0
0
0
0.00369
0
1
0.023256
false
0
0.07907
0
0.162791
0.004651
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf69b5f1a359c8b233314f0ea6eac2fff5564fb1
404
py
Python
06 Dictionary/copyfun.py
codewithsandy/Python-Basic-Exp
4c70ada4a042923a94301453c7bd76e704cd2989
[ "MIT" ]
3
2021-05-08T13:11:41.000Z
2021-05-14T02:43:20.000Z
06 Dictionary/copyfun.py
codewithsandy/Python-Basic-Exp
4c70ada4a042923a94301453c7bd76e704cd2989
[ "MIT" ]
null
null
null
06 Dictionary/copyfun.py
codewithsandy/Python-Basic-Exp
4c70ada4a042923a94301453c7bd76e704cd2989
[ "MIT" ]
null
null
null
d2 = {"Sandy":"Veg", "Rugita":"Fish", "Eshwari":{"B":"maggi", "L":"Pizza", "D":"cake"}} d3 = d2 print(d2.copy()) del d3["Sandy"] print(d2) print("\n") d1 = {"Sandy":"Veg", "Rugita":"Fish", "Eshwari":{"B":"maggi", "L":"Pizza", "D":"cake"}} d4 = d1.copy() # complete copy using dot del d4["Sandy"] ...
22.444444
87
0.542079
60
404
3.65
0.45
0.127854
0.127854
0.164384
0.383562
0.383562
0.383562
0.383562
0.383562
0.383562
0
0.043732
0.15099
404
18
88
22.444444
0.594752
0.056931
0
0.142857
0
0
0.278947
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
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
1
0
2
bf6b7fa8ef56c8e91159fea3e2c469042648b18d
12,766
py
Python
bel/nanopub/pubmed.py
belbio/bel
14ff8e543a679e7dfff3f38f31c0f91ffd55e4d8
[ "Apache-2.0" ]
6
2018-01-31T21:25:40.000Z
2020-11-18T16:43:56.000Z
bel/nanopub/pubmed.py
belbio/bel
14ff8e543a679e7dfff3f38f31c0f91ffd55e4d8
[ "Apache-2.0" ]
83
2018-01-03T17:31:49.000Z
2021-12-13T19:50:17.000Z
bel/nanopub/pubmed.py
belbio/bel
14ff8e543a679e7dfff3f38f31c0f91ffd55e4d8
[ "Apache-2.0" ]
2
2019-04-12T20:42:06.000Z
2020-07-17T02:49:03.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Pubmed related utilities Given PMID - collect Pubmed data and Pubtator Bioconcepts used for the BELMgr or enhancing BEL Nanopubs """ # Standard Library import asyncio import copy import datetime import re from typing import Any, Mapping, MutableMapping # Third Party...
29.550926
140
0.622121
1,586
12,766
4.882724
0.209962
0.024406
0.021694
0.030733
0.371255
0.33329
0.30501
0.27376
0.257748
0.247676
0
0.008505
0.226304
12,766
431
141
29.61949
0.775539
0.14335
0
0.286275
0
0.007843
0.219446
0.058357
0
0
0
0.00232
0
1
0.05098
false
0.007843
0.047059
0.003922
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
0
0
0
0
0
1
0
bf6b8de0ee75da5ff25ffe6549e61e5b4e5e66f8
921
py
Python
objectoriented.py
rmcneal40/scripting_practice
2d5cfbc458fdcb755b030d7d53ca43be3d07f8c2
[ "MIT" ]
null
null
null
objectoriented.py
rmcneal40/scripting_practice
2d5cfbc458fdcb755b030d7d53ca43be3d07f8c2
[ "MIT" ]
null
null
null
objectoriented.py
rmcneal40/scripting_practice
2d5cfbc458fdcb755b030d7d53ca43be3d07f8c2
[ "MIT" ]
null
null
null
import re class Ops: def __init__(self, name, year): self.name = name self.year = year p1 = Ops("CyberSecurity", 2022) print(p1.year) print(p1.name) class Technology: def __init__(self, name, year, grade, gpa, technology): self.name = name self.year = year self.grade =...
21.418605
110
0.587405
116
921
4.594828
0.491379
0.060038
0.041276
0.056285
0.24015
0.090056
0
0
0
0
0
0.030973
0.263844
921
42
111
21.928571
0.755162
0
0
0.125
0
0
0.230937
0
0
0
0
0
0
0
null
null
0
0.03125
null
null
0.09375
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
bf6c41df7444eeb8c502ae2cb7c1337b9779518c
1,879
py
Python
code/_archive/009_userCheckin.py
LadyMiss88/recommendation-engine-using-social-graph
4ae9978b6251bffdde6793ba394dfa77a7d4a6f4
[ "MIT" ]
null
null
null
code/_archive/009_userCheckin.py
LadyMiss88/recommendation-engine-using-social-graph
4ae9978b6251bffdde6793ba394dfa77a7d4a6f4
[ "MIT" ]
null
null
null
code/_archive/009_userCheckin.py
LadyMiss88/recommendation-engine-using-social-graph
4ae9978b6251bffdde6793ba394dfa77a7d4a6f4
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup import simplejson as json import config import pymysql global database_conn global database_cursor database_conn = pymysql.connect(host = config.db_host, user = config.db_user, passwd = config.db_pass, db = config.db_database, use_unicode=True, charset="utf8") dat...
34.163636
162
0.60298
221
1,879
5
0.411765
0.088688
0.057014
0.047059
0.095928
0.095928
0.095928
0.095928
0
0
0
0.017819
0.253326
1,879
55
163
34.163636
0.769779
0
0
0.083333
0
0
0.168675
0.018072
0
0
0
0
0
1
0
false
0.020833
0.104167
0
0.104167
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf6c77a4579d9ca212f8e013e1dcddd3b2cbae17
2,255
py
Python
pastebin_mirror/storage.py
imnotjames/pastebin_mirror
8b90d13c7590e12942045da781a081110e7897c1
[ "MIT" ]
5
2017-10-22T21:52:47.000Z
2020-10-24T11:09:25.000Z
pastebin_mirror/storage.py
imnotjames/pastebin_mirror
8b90d13c7590e12942045da781a081110e7897c1
[ "MIT" ]
2
2017-07-26T21:24:47.000Z
2018-05-06T18:05:55.000Z
pastebin_mirror/storage.py
imnotjames/pastebin-mirror
8b90d13c7590e12942045da781a081110e7897c1
[ "MIT" ]
1
2017-07-08T00:45:59.000Z
2017-07-08T00:45:59.000Z
import sqlite3 import logging logger = logging.getLogger(__name__) class SQLite3Storage: def __init__(self, location='pastebin.db'): self.connection = sqlite3.connect(location) def initialize_tables(self): logger.info('creating table `paste` if it doesn\'t exist') self.connection.ex...
26.529412
88
0.489579
205
2,255
5.239024
0.326829
0.100559
0.078212
0.061453
0.366853
0.314711
0.271881
0.201117
0.117318
0.117318
0
0.005331
0.417738
2,255
85
89
26.529412
0.812643
0
0
0.142857
0
0
0.153686
0
0
0
0
0
0
1
0.119048
false
0
0.047619
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf7021cd6436cdc90fdb123560bbe42e5ab0e529
593
py
Python
httpolice/__init__.py
bmwiedemann/httpolice
4da2bde3d14a24b0623ee45ae10afd192d6fa771
[ "MIT" ]
1
2020-09-19T13:50:36.000Z
2020-09-19T13:50:36.000Z
httpolice/__init__.py
99/httpolice
8175020af13708801fbefc8d4f3787b11093c962
[ "MIT" ]
null
null
null
httpolice/__init__.py
99/httpolice
8175020af13708801fbefc8d4f3787b11093c962
[ "MIT" ]
null
null
null
# -*- coding: utf-8; -*- from httpolice import helpers from httpolice.__metadata__ import version as __version__ from httpolice.blackboard import Complaint from httpolice.exchange import Exchange, check_exchange from httpolice.notice import Severity from httpolice.reports.html import html_report from httpolice.reports...
24.708333
57
0.753794
68
593
6.308824
0.338235
0.272727
0.09324
0
0
0
0
0
0
0
0
0.002008
0.160202
593
23
58
25.782609
0.859438
0.037099
0
0
0
0
0.14587
0
0
0
0
0
0
1
0
false
0
0.45
0
0.45
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
1
0
0
0
0
2
bf70319cef859564f4bb5a2c3ddf695891288229
75,089
py
Python
edtslib/pgdata.py
reticenti/edts-clone
fb78ba4efb646bc86d1982dff8a83629f580d9df
[ "BSD-3-Clause" ]
null
null
null
edtslib/pgdata.py
reticenti/edts-clone
fb78ba4efb646bc86d1982dff8a83629f580d9df
[ "BSD-3-Clause" ]
null
null
null
edtslib/pgdata.py
reticenti/edts-clone
fb78ba4efb646bc86d1982dff8a83629f580d9df
[ "BSD-3-Clause" ]
null
null
null
from __future__ import division import collections import re from . import sector from . import vector3 # "Imagine the galaxy is a giant slice of Battenberg # which for reasons beyond our ken has had small chunks # of carrot cake pushed into it all over the place..." # - CMDR Jackie Silver # This does not valid...
110.425
179
0.680286
11,358
75,089
4.48468
0.209544
0.132203
0.198304
0.264405
0.375778
0.288278
0.275124
0.045625
0.020614
0.019907
0
0.272798
0.098816
75,089
679
180
110.587629
0.479939
0.018778
0
0.008091
0
0.001618
0.204636
0.00167
0
0
0
0
0
1
0
false
0
0.008091
0
0.008091
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
1
0
0
0
0
1
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
bf71de2744fe5d1242aa731546dcbfd8e15f512b
3,381
py
Python
batch/batch/driver/resource_manager.py
vrautela/hail
7db6189b5b1feafa88452b8470e497d9505d9a46
[ "MIT" ]
null
null
null
batch/batch/driver/resource_manager.py
vrautela/hail
7db6189b5b1feafa88452b8470e497d9505d9a46
[ "MIT" ]
null
null
null
batch/batch/driver/resource_manager.py
vrautela/hail
7db6189b5b1feafa88452b8470e497d9505d9a46
[ "MIT" ]
null
null
null
from typing import List, Any, Tuple import abc import logging from hailtop.utils import time_msecs from .instance import Instance from ..file_store import FileStore from ..instance_config import InstanceConfig, QuantifiedResource log = logging.getLogger('compute_manager') class VMDoesNotExist(Exception): pass...
28.897436
138
0.71192
398
3,381
5.638191
0.223618
0.064171
0.080214
0.117647
0.58467
0.51738
0.420677
0.324421
0.256684
0.165775
0
0
0.20911
3,381
116
139
29.146552
0.839192
0
0
0.494118
0
0
0.062703
0.037267
0
0
0
0
0.011765
1
0.152941
false
0.023529
0.082353
0.035294
0.376471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf722d5a372f87aff15987a7ee497c8e0a060410
6,570
py
Python
lib/URLutils.py
ecartierlipn/neoveille2020
6dd91c39f1210dd1829b5f62637c7c6f81e14386
[ "Apache-2.0" ]
null
null
null
lib/URLutils.py
ecartierlipn/neoveille2020
6dd91c39f1210dd1829b5f62637c7c6f81e14386
[ "Apache-2.0" ]
null
null
null
lib/URLutils.py
ecartierlipn/neoveille2020
6dd91c39f1210dd1829b5f62637c7c6f81e14386
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- ''' URL utils ''' import re,justext, chardet #import urllib2 #from urllib2 import urlopen, URLError, HTTPError, Request from bs4 import BeautifulSoup as bs import unicodedata import requests, os #import settings import logging log = logging.getLogger(__name__) ### utils def ...
36.5
300
0.633333
891
6,570
4.602694
0.271605
0.017069
0.008778
0.01902
0.582297
0.582297
0.553524
0.553524
0.553524
0.535479
0
0.02337
0.224962
6,570
179
301
36.703911
0.782011
0.310198
0
0.401709
0
0.025641
0.162424
0.024555
0
0
0
0
0
1
0.08547
false
0
0.042735
0.008547
0.299145
0.017094
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf7319f7bbdd5e51be9c062b9af0fbc76ec7aa71
855
py
Python
problems/test_0849.py
chrisxue815/leetcode_python
dec3c160d411a5c19dc8e9d96e7843f0e4c36820
[ "Unlicense" ]
1
2017-06-17T23:47:17.000Z
2017-06-17T23:47:17.000Z
problems/test_0849.py
chrisxue815/leetcode_python
dec3c160d411a5c19dc8e9d96e7843f0e4c36820
[ "Unlicense" ]
null
null
null
problems/test_0849.py
chrisxue815/leetcode_python
dec3c160d411a5c19dc8e9d96e7843f0e4c36820
[ "Unlicense" ]
null
null
null
import unittest from typing import List import utils # O(n) time. O(1) space. Iteration. class Solution: def maxDistToClosest(self, seats: List[int]) -> int: lo = 0 while lo < len(seats) and seats[lo] == 0: lo += 1 result = lo for hi in range(lo + 1, len(seats)): ...
21.923077
70
0.556725
108
855
4.231481
0.444444
0.052516
0.065646
0
0
0
0
0
0
0
0
0.013841
0.323977
855
38
71
22.5
0.776817
0.038596
0
0
0
0
0.009756
0
0
0
0
0
0.041667
1
0.083333
false
0
0.125
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf73761720d08a914d996df2769ba78971749eee
2,792
py
Python
Gerador de Amostra/gerador_amostra.py
Paulognunes/Ajuste-de-Parametros-do-modelo-SIR
99607db943e87658303eea8cb59e1c776073b3e4
[ "MIT" ]
1
2022-01-14T12:44:14.000Z
2022-01-14T12:44:14.000Z
Gerador de Amostra/gerador_amostra.py
Paulognunes/Ajuste-de-Parametros-do-modelo-SIR
99607db943e87658303eea8cb59e1c776073b3e4
[ "MIT" ]
null
null
null
Gerador de Amostra/gerador_amostra.py
Paulognunes/Ajuste-de-Parametros-do-modelo-SIR
99607db943e87658303eea8cb59e1c776073b3e4
[ "MIT" ]
null
null
null
def gera_amostra(data_inicio_corte, data_fim_corte, arquivo_confirmados, arquivo_recuperados, arquivo_obitos, arquivo_datas): confirmados = open(arquivo_confirmados, 'r') recuperados = open(arquivo_recuperados, 'r') obitos = open(arquivo_obitos, 'r') data = open(arquivo_datas, 'r')...
28.20202
110
0.511819
360
2,792
3.813889
0.219444
0.029133
0.0437
0.040058
0.2185
0.198106
0.164603
0.164603
0.11799
0.11799
0
0.023168
0.335244
2,792
98
111
28.489796
0.716595
0.062679
0
0.148649
0
0
0.071286
0
0
0
0
0
0
1
0.013514
false
0
0
0
0.027027
0.081081
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf7570cf463efe1bbbf754068fceecada315ee88
5,040
py
Python
Machine_Learning/use_stocker.py
vhn0912/Finance
39cf49d4d778d322537531cee4ce3981cc9951f9
[ "MIT" ]
441
2020-04-22T02:21:19.000Z
2022-03-29T15:00:24.000Z
Machine_Learning/use_stocker.py
happydasch/Finance
4f6c5ea8f60fb0dc3b965ffb9628df83c2ecef35
[ "MIT" ]
5
2020-07-06T15:19:58.000Z
2021-07-23T18:32:29.000Z
Machine_Learning/use_stocker.py
happydasch/Finance
4f6c5ea8f60fb0dc3b965ffb9628df83c2ecef35
[ "MIT" ]
111
2020-04-21T11:40:39.000Z
2022-03-20T07:26:17.000Z
from stocker import Stocker import pandas as pd import numpy as np import matplotlib.pyplot as plt import matplotlib.style import matplotlib as mpl from matplotlib.pylab import rcParams rcParams['figure.figsize'] = 20, 10 from sklearn.preprocessing import MinMaxScaler from sklearn.linear_model import LinearRegression f...
28
125
0.721825
826
5,040
4.27724
0.251816
0.049816
0.022078
0.014718
0.41353
0.365129
0.293801
0.293801
0.279649
0.271441
0
0.033511
0.105952
5,040
180
126
28
0.750555
0.097222
0
0.284483
0
0
0.12718
0
0
0
0
0
0.008621
1
0
false
0
0.12931
0
0.12931
0.086207
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf763a4c8d592b78137aeb2e05f05552f4b74818
2,415
py
Python
squealy/jinjasql_loader.py
zeeshankhan28/squealy
5dfe9c5830ef74978f5defc872500fb710097408
[ "MIT" ]
null
null
null
squealy/jinjasql_loader.py
zeeshankhan28/squealy
5dfe9c5830ef74978f5defc872500fb710097408
[ "MIT" ]
null
null
null
squealy/jinjasql_loader.py
zeeshankhan28/squealy
5dfe9c5830ef74978f5defc872500fb710097408
[ "MIT" ]
1
2022-03-20T18:24:50.000Z
2022-03-20T18:24:50.000Z
import datetime from jinja2 import DictLoader from jinja2 import Environment from jinjasql import JinjaSql from dateutil.relativedelta import relativedelta from dateutil import rrule from squealy.exceptions import InvalidDateRangeException def configure_jinjasql(): """ Configure the environment and return ji...
34.014085
92
0.677433
301
2,415
5.242525
0.292359
0.108365
0.045627
0.043093
0.193283
0.137516
0.06654
0.045627
0
0
0
0.004651
0.198758
2,415
70
93
34.5
0.810853
0.086128
0
0.041667
0
0
0.236465
0.035632
0
0
0
0
0
1
0.083333
false
0
0.145833
0.020833
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf77945a989d2be98cc789d1b6b02fc9f2ff8482
698
py
Python
planet.py
PAStephenson/Solar-System-Simulation
619a53335ca0431b6382251a226182d453777793
[ "MIT" ]
null
null
null
planet.py
PAStephenson/Solar-System-Simulation
619a53335ca0431b6382251a226182d453777793
[ "MIT" ]
null
null
null
planet.py
PAStephenson/Solar-System-Simulation
619a53335ca0431b6382251a226182d453777793
[ "MIT" ]
null
null
null
from vector import Vector class Planet: """A class to represent a planet.""" def __init__(self, mass, position, velocity, acceleration): """Initialise the planet.""" self.MASS = mass self.position = position self.velocity = velocity self.acceleration = acceleration ...
31.727273
63
0.666189
78
698
5.833333
0.320513
0.105495
0.057143
0.083516
0.10989
0
0
0
0
0
0
0
0.230659
698
21
64
33.238095
0.8473
0.19914
0
0
0
0
0
0
0
0
0
0
0
1
0.230769
false
0
0.076923
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
bf78dd1874f5270c579ee607ac544063c7bfd4b9
21,782
py
Python
assistant/bot.py
jdcarpinelli/dungeons
fb644ba30e2bbd04d019ac279e27fdedfa1b0110
[ "MIT" ]
1
2021-02-11T02:50:11.000Z
2021-02-11T02:50:11.000Z
assistant/bot.py
jdcarpinelli/dungeons
fb644ba30e2bbd04d019ac279e27fdedfa1b0110
[ "MIT" ]
1
2020-06-18T04:13:53.000Z
2020-06-20T17:34:59.000Z
assistant/bot.py
jdcarpinelli/dungeons
fb644ba30e2bbd04d019ac279e27fdedfa1b0110
[ "MIT" ]
null
null
null
## Dungeons and Dragons Assistant # Discord bot to handle... # dice rolling, # relaying messages, # roll tracking, # and (maybe) eventually more! # # Copied and modified code from: # https://realpython.com/how-to-make-a-discord-bot-python/ # ## # Imports import sys, os, time, random, datetime import discord from dis...
35.533442
229
0.622441
2,679
21,782
5.025009
0.178798
0.021394
0.03209
0.030308
0.608825
0.584683
0.557941
0.536547
0.5104
0.492869
0
0.008871
0.265081
21,782
612
230
35.591503
0.832084
0.145533
0
0.405063
0
0.01519
0.334144
0.011353
0
0
0.000432
0
0
1
0.002532
false
0
0.020253
0.002532
0.078481
0.027848
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf78e11629d9199d5d649ba8cfe17400cd17fd79
3,217
py
Python
Custom_Functions/Model_Generator.py
knownstranger03/Human_Pose_Estimation
fad4b171ffc6514918990b5f48e439ca7f5b3184
[ "MIT" ]
null
null
null
Custom_Functions/Model_Generator.py
knownstranger03/Human_Pose_Estimation
fad4b171ffc6514918990b5f48e439ca7f5b3184
[ "MIT" ]
null
null
null
Custom_Functions/Model_Generator.py
knownstranger03/Human_Pose_Estimation
fad4b171ffc6514918990b5f48e439ca7f5b3184
[ "MIT" ]
null
null
null
import keras import tensorflow from keras.applications.vgg16 import VGG16 from keras.engine.sequential import Sequential from keras.layers import Flatten, Dense, Dropout, BatchNormalization, InputLayer, Conv2D, MaxPool2D, Activation, Concatenate,add from keras.models import Model import warnings warnings.filterwar...
45.957143
128
0.685421
417
3,217
5.153477
0.290168
0.067008
0.040949
0.040949
0.327594
0.272685
0.217776
0.180549
0.147976
0.084691
0
0.030338
0.200808
3,217
70
129
45.957143
0.805523
0.145477
0
0.220339
0
0
0.15365
0.104745
0
0
0
0
0
1
0.067797
false
0
0.152542
0
0.271186
0.033898
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf79ad59a70ac719097fc73bb371a6c0bcb6f953
1,719
py
Python
rndt/templatetags/metadata_tags.py
pasing/geonode-rndt
214a0d17d4b93ae22257550d209c27cad4885692
[ "BSD-2-Clause" ]
null
null
null
rndt/templatetags/metadata_tags.py
pasing/geonode-rndt
214a0d17d4b93ae22257550d209c27cad4885692
[ "BSD-2-Clause" ]
56
2021-01-19T10:06:06.000Z
2021-09-10T15:31:47.000Z
rndt/templatetags/metadata_tags.py
pasing/geonode-rndt
214a0d17d4b93ae22257550d209c27cad4885692
[ "BSD-2-Clause" ]
1
2022-03-20T11:18:01.000Z
2022-03-20T11:18:01.000Z
from django import template from django.core.validators import URLValidator from geonode.base.models import Thesaurus, ThesaurusKeyword from rndt.models import LayerRNDT register = template.Library() @register.filter def get_thesaurus_about(thesaurus_id): t = Thesaurus.objects.filter(id=thesaurus_id) if t.ex...
27.285714
72
0.737056
222
1,719
5.518018
0.225225
0.091429
0.097143
0.097959
0.383673
0.383673
0.222041
0.222041
0.16
0.086531
0
0
0.169284
1,719
62
73
27.725806
0.857843
0
0
0.3125
0
0
0
0
0
0
0
0
0
1
0.145833
false
0
0.083333
0
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf7af33b2f34f609cedf99fe7194592e05e7a33f
3,563
py
Python
cycada/models/MDAN.py
Luodian/MADAN
7a2918da44f5203b72652bc4cba0e70057482114
[ "MIT" ]
150
2019-10-29T01:22:31.000Z
2022-02-16T02:09:31.000Z
cycada/models/MDAN.py
pikachusocute/MADAN
7a2918da44f5203b72652bc4cba0e70057482114
[ "MIT" ]
6
2020-01-05T16:56:51.000Z
2021-10-13T03:25:05.000Z
cycada/models/MDAN.py
pikachusocute/MADAN
7a2918da44f5203b72652bc4cba0e70057482114
[ "MIT" ]
23
2019-11-04T15:46:29.000Z
2022-01-16T09:10:01.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import logging import torch import torch.nn as nn import torch.nn.functional as F logger = logging.getLogger(__name__) class GradientReversalLayer(torch.autograd.Function): """ Implement the gradient reversal layer for the convenience of domain adaptation neural netw...
35.277228
101
0.727196
518
3,563
4.820463
0.250965
0.028034
0.030837
0.04205
0.257909
0.164998
0.136163
0.073688
0.073688
0.073688
0
0.013175
0.147909
3,563
100
102
35.63
0.809289
0.221162
0
0.051724
0
0
0.020864
0
0
0
0
0
0.017241
1
0.086207
false
0
0.068966
0.017241
0.258621
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf7cfb27c97379288c453a445e960427b967978e
511
py
Python
generator/templates/output/endforeach.py
grbd/GBD.Build.BlackJack
3e8d027625b7528af3674a373fd9931e3feaaab4
[ "Apache-2.0" ]
1
2017-05-26T00:18:26.000Z
2017-05-26T00:18:26.000Z
generator/templates/output/endforeach.py
grbd/GBD.Build.BlackJack
3e8d027625b7528af3674a373fd9931e3feaaab4
[ "Apache-2.0" ]
null
null
null
generator/templates/output/endforeach.py
grbd/GBD.Build.BlackJack
3e8d027625b7528af3674a373fd9931e3feaaab4
[ "Apache-2.0" ]
null
null
null
from blackjack.cmake.ScriptBase import ScriptBase class endforeach(ScriptBase): """ CMake Command - endforeach """ def __init__(self, loopvar: str ): super().__init__() self.LoopVar = loopvar """Loop Variable to end the foreach loop with""" return @property def Comma...
22.217391
56
0.587084
52
511
5.596154
0.557692
0.113402
0.103093
0
0
0
0
0
0
0
0
0
0.295499
511
22
57
23.227273
0.808333
0
0
0
0
0
0.055556
0
0
0
0
0
0
0
null
null
0
0.076923
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
bf7f1d14fd8adbed3cf841350eb294961b1fa9c9
776
py
Python
test/hummingbot/connector/exchange/binance/test_binance_web_utils.py
pecuniafinance/hummingbot
2cbb19c187a429d3e6000dc938617ca2a1f9f357
[ "Apache-2.0" ]
542
2021-12-17T22:34:31.000Z
2022-03-31T14:36:23.000Z
test/hummingbot/connector/exchange/binance/test_binance_web_utils.py
pecuniafinance/hummingbot
2cbb19c187a429d3e6000dc938617ca2a1f9f357
[ "Apache-2.0" ]
291
2021-12-17T20:07:53.000Z
2022-03-31T11:07:23.000Z
test/hummingbot/connector/exchange/binance/test_binance_web_utils.py
pecuniafinance/hummingbot
2cbb19c187a429d3e6000dc938617ca2a1f9f357
[ "Apache-2.0" ]
220
2021-12-17T12:41:23.000Z
2022-03-31T23:03:22.000Z
import unittest import hummingbot.connector.exchange.binance.binance_constants as CONSTANTS from hummingbot.connector.exchange.binance import binance_web_utils as web_utils class BinanceUtilTestCases(unittest.TestCase): def test_public_rest_url(self): path_url = "/TEST_PATH" domain = "com" ...
38.8
99
0.755155
101
776
5.465347
0.287129
0.076087
0.097826
0.123188
0.557971
0.485507
0.485507
0.485507
0.485507
0.485507
0
0
0.16366
776
19
100
40.842105
0.850539
0
0
0.285714
0
0
0.033505
0
0
0
0
0
0.142857
1
0.142857
false
0
0.214286
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
0
0
0
0
1
0
bf7f857e06dbbdce55ca33b9325e2485fe2d96c5
3,551
py
Python
unit_tests/controllers/test_main_window.py
GrzegorzNieuzyla/PasswordManager
f54ebb7f5f86449d3d1f13542402a536bcf264d7
[ "MIT" ]
null
null
null
unit_tests/controllers/test_main_window.py
GrzegorzNieuzyla/PasswordManager
f54ebb7f5f86449d3d1f13542402a536bcf264d7
[ "MIT" ]
null
null
null
unit_tests/controllers/test_main_window.py
GrzegorzNieuzyla/PasswordManager
f54ebb7f5f86449d3d1f13542402a536bcf264d7
[ "MIT" ]
null
null
null
from PyQt6.QtWidgets import QApplication from pytest_mock import MockerFixture from password_manager.application_context import ApplicationContext from password_manager.controllers.main_window import MainWindowController from password_manager.models.record_data import RecordData def get_context() -> ApplicationConte...
35.158416
114
0.727964
378
3,551
6.595238
0.214286
0.068191
0.061773
0.081428
0.659045
0.641797
0.619334
0.597673
0.558363
0.531889
0
0.011749
0.161081
3,551
100
115
35.51
0.825109
0
0
0.5
0
0
0.082512
0.00704
0
0
0
0
0.128205
1
0.128205
false
0.089744
0.064103
0.012821
0.217949
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
bf7fc8a8b957b2b7bbdc53ff35693ae32e07145b
1,915
py
Python
stepik/python67/03_04_04.py
ornichola/learning-new
e567218d8887805e38b1361715d5e3bd51a6bcaf
[ "Unlicense" ]
2
2019-05-24T20:10:16.000Z
2020-07-11T06:06:43.000Z
stepik/python67/03_04_04.py
ornichola/learning-new
e567218d8887805e38b1361715d5e3bd51a6bcaf
[ "Unlicense" ]
null
null
null
stepik/python67/03_04_04.py
ornichola/learning-new
e567218d8887805e38b1361715d5e3bd51a6bcaf
[ "Unlicense" ]
21
2019-03-11T20:25:05.000Z
2022-02-28T13:53:10.000Z
#[STEPIK] # Программирование на Python https://stepik.org/67 # 03_04_04 Файловый ввод/вывод ''' Имеется файл с данными по успеваемости абитуриентов. Он представляет из себя набор строк, где в каждой строке записана следующая информация: Фамилия;Оценка_по_математике;Оценка_по_физике;Оценка_по_русскому_языку Поля внут...
28.58209
196
0.734726
295
1,915
4.60339
0.484746
0.030928
0.013255
0.02651
0.078056
0.035346
0
0
0
0
0
0.065846
0.151436
1,915
67
197
28.58209
0.769231
0.54047
0
0
0
0
0.049369
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf8039d9c0032c62c24d6cc59c9dc3793dfda2b5
495
py
Python
bot/exceptions.py
christinevandev/KevinMalone
9bb0f0313611c59676d1ae0f8d9249420e70d436
[ "MIT" ]
null
null
null
bot/exceptions.py
christinevandev/KevinMalone
9bb0f0313611c59676d1ae0f8d9249420e70d436
[ "MIT" ]
null
null
null
bot/exceptions.py
christinevandev/KevinMalone
9bb0f0313611c59676d1ae0f8d9249420e70d436
[ "MIT" ]
null
null
null
import logging from discord import commands logger = logging.getLogger(__name__) class NotGuildException(commands.ApplicationCommandError): pass class ErrorHandler: def __init__(self, error): self.err = error self.msg = self._handle_error() def _handle_error(self): if isinstan...
22.5
58
0.688889
57
495
5.754386
0.596491
0.082317
0
0
0
0
0
0
0
0
0
0
0.228283
495
21
59
23.571429
0.858639
0
0
0
0
0
0.117172
0
0
0
0
0
0
1
0.142857
false
0.071429
0.142857
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
bf80a6ed202974e61e0995b343b524e3bec0665a
1,921
py
Python
baselines/PPO/src/model.py
dg10mcdos/mario-bmstew
5b1806fc59dc88fd326a4e1de9c02284ba35f9f9
[ "BSD-3-Clause" ]
null
null
null
baselines/PPO/src/model.py
dg10mcdos/mario-bmstew
5b1806fc59dc88fd326a4e1de9c02284ba35f9f9
[ "BSD-3-Clause" ]
null
null
null
baselines/PPO/src/model.py
dg10mcdos/mario-bmstew
5b1806fc59dc88fd326a4e1de9c02284ba35f9f9
[ "BSD-3-Clause" ]
null
null
null
""" @author: Viet Nguyen <nhviet1009@gmail.com> """ import torch.nn as nn import torch.nn.functional as F class PPO(nn.Module): def __init__(self, num_inputs, num_actions): # num_states, num_actions (e.g. 4 & 7) super(PPO, self).__init__() self.conv1 = nn.Conv2d(num_inputs, 32, 3, stride=2, paddi...
42.688889
129
0.5924
302
1,921
3.668874
0.298013
0.01083
0.032491
0.036101
0.192238
0.124549
0.086643
0.086643
0.086643
0.086643
0
0.094233
0.259761
1,921
44
130
43.659091
0.684951
0.320666
0
0
0
0
0.003123
0
0
0
0
0
0
1
0.12
false
0
0.08
0
0.28
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf815a5689f21b9f61269d3af287f2332400836a
2,423
py
Python
ufdl-core-app/src/ufdl/core_app/views/mixins/_GetHardwareGenerationViewSet.py
waikato-ufdl/ufdl-backend
776fc906c61eba6c2f2e6324758e7b8a323e30d7
[ "Apache-2.0" ]
null
null
null
ufdl-core-app/src/ufdl/core_app/views/mixins/_GetHardwareGenerationViewSet.py
waikato-ufdl/ufdl-backend
776fc906c61eba6c2f2e6324758e7b8a323e30d7
[ "Apache-2.0" ]
85
2020-07-24T00:04:28.000Z
2022-02-10T10:35:15.000Z
ufdl-core-app/src/ufdl/core_app/views/mixins/_GetHardwareGenerationViewSet.py
waikato-ufdl/ufdl-backend
776fc906c61eba6c2f2e6324758e7b8a323e30d7
[ "Apache-2.0" ]
null
null
null
from typing import List, NoReturn from rest_framework import routers from rest_framework.request import Request from rest_framework.response import Response from ...exceptions import BadArgumentValue from ...models.nodes import Hardware from ...serialisers.nodes import HardwareSerialiser from ._RoutedViewSet import R...
35.115942
94
0.658275
270
2,423
5.811111
0.362963
0.10325
0.080306
0.030593
0
0
0
0
0
0
0
0
0.262897
2,423
68
95
35.632353
0.878499
0.294676
0
0.060606
0
0
0.10665
0.091593
0
0
0
0
0
1
0.090909
false
0
0.242424
0.030303
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
0
0
0
0
1
0
bf821f1fba117acb6e32d7d42fd26be0ab419540
197
py
Python
game_generic/__init__.py
Holt59/modorganizer-python_plugins
f3404b1c3d9b8f5a6aa2133b47f7fc0218c18dc9
[ "MIT" ]
null
null
null
game_generic/__init__.py
Holt59/modorganizer-python_plugins
f3404b1c3d9b8f5a6aa2133b47f7fc0218c18dc9
[ "MIT" ]
null
null
null
game_generic/__init__.py
Holt59/modorganizer-python_plugins
f3404b1c3d9b8f5a6aa2133b47f7fc0218c18dc9
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- # Force load of resources so that Qt can see them: from .resources import * # noqa from .generic_game import GenericGame def createPlugin(): return GenericGame()
17.909091
50
0.700508
26
197
5.269231
0.846154
0
0
0
0
0
0
0
0
0
0
0.006329
0.19797
197
10
51
19.7
0.860759
0.390863
0
0
0
0
0
0
0
0
0
0
0
1
0.25
true
0
0.5
0.25
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
1
1
0
0
6
bf82e91afdcb5e0fddbe0747375ddf3b811c5754
10,575
py
Python
edflow/util.py
rromb/edflow
8681cadf1770ca1bc1515535768dc14cb0758b0f
[ "MIT" ]
2
2021-03-10T13:42:12.000Z
2021-03-10T14:29:53.000Z
edflow/util.py
rromb/edflow
8681cadf1770ca1bc1515535768dc14cb0758b0f
[ "MIT" ]
null
null
null
edflow/util.py
rromb/edflow
8681cadf1770ca1bc1515535768dc14cb0758b0f
[ "MIT" ]
null
null
null
"""Some Utility functions, that make yur life easier but don't fit in any better catorgory than util.""" import numpy as np import os import pickle def linear_var(step, start, end, start_value, end_value, clip_min=0.0, clip_max=1.0): r"""Linear from :math:`(a, \alpha)` to :math:`(b, \beta)`, i.e. :math:`y = ...
29.212707
85
0.564728
1,389
10,575
4.161987
0.226062
0.01972
0.032866
0.009687
0.236291
0.17644
0.136309
0.136309
0.11434
0.111399
0
0.008144
0.314894
10,575
361
86
29.293629
0.789786
0.317069
0
0.180412
0
0
0.030792
0
0
0
0
0
0
1
0.113402
false
0.046392
0.020619
0.005155
0.268041
0.061856
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf8425fbb8a6c4e485f1bc15c4ac7de770febef9
5,227
py
Python
Tools/Wings3DExporter/erlang_ext.py
fegorsch/ogre
79b0163a25164a27a0b63958467db96530a2b194
[ "MIT" ]
2,937
2016-02-05T14:26:54.000Z
2022-03-31T14:53:11.000Z
Tools/Wings3DExporter/erlang_ext.py
fegorsch/ogre
79b0163a25164a27a0b63958467db96530a2b194
[ "MIT" ]
916
2016-01-05T23:41:21.000Z
2022-03-26T17:40:31.000Z
Tools/Wings3DExporter/erlang_ext.py
fegorsch/ogre
79b0163a25164a27a0b63958467db96530a2b194
[ "MIT" ]
976
2015-12-30T13:14:27.000Z
2022-03-31T09:21:07.000Z
# Python module to read erlang ext (term) format # # written by Attila Tajti on 2003, for # # TODO: reads compressed data only import os, sys, struct, zlib, cStringIO class erlang_atom: def __init__(self, atom): self.atom = atom def __str__(self): return self.atom def __eq__(self, other): return self.a...
22.242553
73
0.637842
824
5,227
3.901699
0.177184
0.060964
0.060653
0.074028
0.442924
0.418351
0.382582
0.325972
0.293624
0.283359
0
0.015209
0.194949
5,227
234
74
22.337607
0.748812
0.061986
0
0.302857
0
0
0.062615
0
0
0
0
0.004274
0
0
null
null
0.005714
0.005714
null
null
0.005714
0
0
0
null
0
0
0
0
0
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
bf84b8c96e2bdd65eb5bb3c0dbead6d4d0544cd5
2,459
py
Python
src/Examples/Akihabara.Examples.OnRawIO/track.py
Amberarch/Akihabara
22d3984cb225e199b955e6b13be90f1959978bc6
[ "MIT" ]
19
2021-09-13T21:29:58.000Z
2022-03-01T13:44:23.000Z
src/Examples/Akihabara.Examples.OnRawIO/track.py
Amberarch/Akihabara
22d3984cb225e199b955e6b13be90f1959978bc6
[ "MIT" ]
44
2021-09-13T15:27:46.000Z
2022-01-18T13:13:09.000Z
src/Examples/Akihabara.Examples.OnRawIO/track.py
Amberarch/Akihabara
22d3984cb225e199b955e6b13be90f1959978bc6
[ "MIT" ]
10
2021-09-15T16:15:46.000Z
2022-01-21T01:14:54.000Z
#!/usr/bin/python import argparse import subprocess class MediaMetadata: def __init__(self, width, height, framerate): self.width = width self.height = height self.framerate = framerate def from_filepath(filepath): output = subprocess.check_output([ "ffprobe", "-v"...
33.22973
125
0.646198
338
2,459
4.56213
0.387574
0.023346
0.02594
0.028534
0.226329
0.160182
0.146563
0.098573
0.06096
0
0
0.007948
0.181375
2,459
73
126
33.684932
0.758073
0.134608
0
0
0
0
0.281073
0.083804
0
0
0
0
0
1
0.037037
false
0
0.037037
0
0.111111
0.018519
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf84f72aa546b58d0a0f6e1870efb1ee915c5fc8
1,261
py
Python
tests/test_backend.py
djeromov/django-grainy
d0820e0c5cdcb5ac6d905fa713dfaf3e9fab5627
[ "Apache-2.0" ]
2
2018-02-18T15:23:18.000Z
2020-02-10T13:40:23.000Z
tests/test_backend.py
djeromov/django-grainy
d0820e0c5cdcb5ac6d905fa713dfaf3e9fab5627
[ "Apache-2.0" ]
41
2017-12-01T01:10:41.000Z
2021-08-24T14:08:09.000Z
tests/test_backend.py
djeromov/django-grainy
d0820e0c5cdcb5ac6d905fa713dfaf3e9fab5627
[ "Apache-2.0" ]
1
2021-08-10T17:46:14.000Z
2021-08-10T17:46:14.000Z
from .util import UserTestCase from django.db import models from grainy.const import ( PERM_READ, PERM_UPDATE, PERM_CREATE, PERM_DELETE, ) from grainy.core import ( PermissionSet, ) from django_grainy.backends import GrainyBackend class TestGrainyBackend(UserTestCase): EXPECTED_PERMISSIONS...
28.022222
75
0.68755
150
1,261
5.546667
0.3
0.108173
0.158654
0.180288
0.399038
0.394231
0.394231
0.269231
0.269231
0.161058
0
0
0.2046
1,261
44
76
28.659091
0.829511
0
0
0.117647
0
0
0.078509
0
0
0
0
0
0.176471
1
0.088235
false
0
0.147059
0
0.294118
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
bf85e87ae27dbc7518de916f0330cd2331da96f8
1,698
py
Python
resources/logforms/mdtex_fiction_yml_pdf.py
exposit/pythia-oracle
60e4e806c9ed1627f2649822ab1901d28933daac
[ "MIT" ]
32
2016-08-27T01:31:42.000Z
2022-03-21T08:59:28.000Z
resources/logforms/mdtex_fiction_yml_pdf.py
exposit/pythia-oracle
60e4e806c9ed1627f2649822ab1901d28933daac
[ "MIT" ]
3
2016-08-27T00:51:47.000Z
2019-08-26T13:23:04.000Z
resources/logforms/mdtex_fiction_yml_pdf.py
exposit/pythia-oracle
60e4e806c9ed1627f2649822ab1901d28933daac
[ "MIT" ]
10
2016-08-28T14:14:41.000Z
2021-03-18T03:24:22.000Z
#!/usr/bin/env python #-*- coding: utf-8 -*- ##--------------------------------------------------------------------------------------- # # Markdown # fiction: includes only fiction blocks # yml: uses a yaml Front Matter from config.txt # pdf: is ready to convert to pdf (or latex) via pandoc # ##-----------...
31.444444
144
0.478799
177
1,698
4.519774
0.480226
0.06
0.045
0.0325
0.105
0.105
0.105
0.105
0.105
0.105
0
0.007893
0.253828
1,698
53
145
32.037736
0.62352
0.220848
0
0.068966
0
0
0.1373
0
0
0
0
0
0
1
0.068966
false
0
0.103448
0.034483
0.206897
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf8627d375cf895cf89704a8489ab629b2f6cdbb
249
py
Python
Credit Risk Prediction - Univ.AI/src/submission.py
mrityu-jha/ML-DL-Challenges
5ccf1c28d2db631aae577732c9bb6f095322e99c
[ "MIT" ]
null
null
null
Credit Risk Prediction - Univ.AI/src/submission.py
mrityu-jha/ML-DL-Challenges
5ccf1c28d2db631aae577732c9bb6f095322e99c
[ "MIT" ]
null
null
null
Credit Risk Prediction - Univ.AI/src/submission.py
mrityu-jha/ML-DL-Challenges
5ccf1c28d2db631aae577732c9bb6f095322e99c
[ "MIT" ]
null
null
null
import urllib.parse print( "Hello, Please refer to the below link to access my codes/notebooks being used for Credit Risk Prediction Hackathon") s = urllib.parse.quote( 'github.com/mrityu-jha/Credit-Risk-Prediction-Univ.AI.git') print('https://'+s)
49.8
124
0.771084
40
249
4.8
0.8
0.114583
0.208333
0
0
0
0
0
0
0
0
0
0.104418
249
4
125
62.25
0.860987
0
0
0
0
0.25
0.714859
0.2249
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.5
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
5
bf877aabd253c54022394c18ee4dcdeb052fe7ac
1,919
py
Python
utils/pycui.py
bboysteed/dzy
ba720fd40b16d3b85e8fc0ef347aeadaf91b2d26
[ "MIT" ]
null
null
null
utils/pycui.py
bboysteed/dzy
ba720fd40b16d3b85e8fc0ef347aeadaf91b2d26
[ "MIT" ]
null
null
null
utils/pycui.py
bboysteed/dzy
ba720fd40b16d3b85e8fc0ef347aeadaf91b2d26
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- from os import name class color: def __init__(self): if name == "nt": # Windows self.RED = 0x04 self.GREY = 0x08 self.BLUE = 0x01 self.CYAN = 0x03 self.BLACK = 0x0 self.GREEN = 0x02 self....
24.922078
68
0.427306
244
1,919
3.327869
0.290984
0.086207
0.08867
0.049261
0.176108
0.162562
0.162562
0.162562
0.066502
0
0
0.06981
0.425221
1,919
76
69
25.25
0.666364
0.030224
0
0.189655
0
0
0.058728
0
0
0
0.018858
0
0
1
0.224138
false
0
0.034483
0.017241
0.310345
0.068966
0
0
0
null
0
0
0
0
0
0
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
bf88ab07873f2b729ba26df40d8be261a47e6d53
5,862
py
Python
find-cut-up-regions/find-cut-up-regions.py
catseye/NaNoGenLab
3e4a7314e6023557856e1cc910e9d0edc4daf43c
[ "Unlicense" ]
20
2015-06-05T14:02:12.000Z
2021-11-02T22:19:18.000Z
find-cut-up-regions/find-cut-up-regions.py
catseye/NaNoGenLab
3e4a7314e6023557856e1cc910e9d0edc4daf43c
[ "Unlicense" ]
1
2015-10-15T12:58:35.000Z
2015-10-15T12:58:35.000Z
find-cut-up-regions/find-cut-up-regions.py
catseye/NaNoGenLab
3e4a7314e6023557856e1cc910e9d0edc4daf43c
[ "Unlicense" ]
1
2021-04-08T23:50:06.000Z
2021-04-08T23:50:06.000Z
#!/usr/bin/env python from optparse import OptionParser import os import random import sys import PIL from PIL import Image try: from tqdm import tqdm except ImportError: def tqdm(x): return x def mkdir_p(path): try: os.mkdir(path) except OSError: pass def cutup(options, i...
31.516129
81
0.594507
733
5,862
4.611187
0.290587
0.019527
0.024852
0.025148
0.141124
0.079882
0.074556
0.019527
0.019527
0.019527
0
0.014151
0.312863
5,862
185
82
31.686486
0.824975
0.139543
0
0.2
0
0
0.047734
0
0
0
0
0.005405
0
0
null
null
0.014815
0.066667
null
null
0.051852
0
0
0
null
0
0
0
0
0
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
bf88dee8af3ae2a896f732384f154013a7b47e72
1,925
py
Python
articulation_tutorials/python_service_client/model_selection_client.py
tum-vision/articulation
3bb714fcde14b8d47977bd3b3da2c2cd13ebe685
[ "BSD-2-Clause" ]
3
2017-03-15T16:50:05.000Z
2021-02-28T05:27:24.000Z
articulation_tutorials/python_service_client/model_selection_client.py
AbdelrahmanElsaid/articulation
3bb714fcde14b8d47977bd3b3da2c2cd13ebe685
[ "BSD-2-Clause" ]
null
null
null
articulation_tutorials/python_service_client/model_selection_client.py
AbdelrahmanElsaid/articulation
3bb714fcde14b8d47977bd3b3da2c2cd13ebe685
[ "BSD-2-Clause" ]
7
2015-07-14T14:47:51.000Z
2018-04-02T16:22:23.000Z
#!/usr/bin/env python import roslib; roslib.load_manifest('articulation_tutorials') import rospy import numpy from articulation_msgs.msg import * from articulation_msgs.srv import * from geometry_msgs.msg import Pose, Point, Quaternion from sensor_msgs.msg import ChannelFloat32 PRISMATIC = 0 ROTATIONAL = 1 MODELS={...
27.112676
87
0.697143
267
1,925
4.898876
0.419476
0.009174
0.029817
0.045872
0.107034
0.085627
0.085627
0
0
0
0
0.017577
0.172468
1,925
70
88
27.5
0.803515
0.01039
0
0.036364
0
0
0.119285
0.011561
0
0
0
0
0
0
null
null
0.018182
0.127273
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
bf89b25245266126dba56862b20f23c850ea62d7
2,397
py
Python
process.py
Swathisree/d3_Food_facts
cde6c2c02b6a8e38080f8f2fbab9d39864c23cd0
[ "OML" ]
null
null
null
process.py
Swathisree/d3_Food_facts
cde6c2c02b6a8e38080f8f2fbab9d39864c23cd0
[ "OML" ]
null
null
null
process.py
Swathisree/d3_Food_facts
cde6c2c02b6a8e38080f8f2fbab9d39864c23cd0
[ "OML" ]
null
null
null
import pandas as pd import json countries = pd.read_csv('tsv/products_countries.tsv', sep='\t') categories = pd.read_csv('tsv/products_categories_full.tsv', sep='\t') products = pd.read_csv('tsv/products.tsv', sep='\t') combined = pd.merge(left = products, right = categories, on='code' ) combined = pd.merge(left=com...
29.231707
122
0.622445
326
2,397
4.423313
0.322086
0.038141
0.018724
0.024965
0.191401
0.149792
0.149792
0.105409
0.105409
0.105409
0
0.017666
0.220693
2,397
81
123
29.592593
0.754283
0.035878
0
0
0
0
0.107499
0.036844
0
0
0
0
0
1
0.09434
false
0
0.037736
0.056604
0.226415
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf8a442f7555ff5867a989ed32bf9d07c2238f69
10,207
py
Python
src/bot.py
jannikbusse/DSA_BOT
87b3972235e5c7b77ca24c8ab34d6d045b8dfeac
[ "MIT" ]
null
null
null
src/bot.py
jannikbusse/DSA_BOT
87b3972235e5c7b77ca24c8ab34d6d045b8dfeac
[ "MIT" ]
1
2020-11-09T23:29:15.000Z
2020-11-09T23:29:15.000Z
src/bot.py
jannikbusse/DSA_BOT
87b3972235e5c7b77ca24c8ab34d6d045b8dfeac
[ "MIT" ]
null
null
null
import discord import queue import db import disc_api import glob_vars import time, threading import dice import helper import logging import re stats = ["mu","kl","in","ch","ff","ge", "ko", "kk"] #careful: in is int in the db! def is_int(s): try: int(s) return True except ValueError: ...
33.13961
146
0.621828
1,335
10,207
4.619476
0.161798
0.065996
0.102157
0.141884
0.385601
0.280688
0.260256
0.16864
0.145614
0.143019
0
0.009067
0.232781
10,207
308
147
33.13961
0.778445
0.030371
0
0.25
0
0.004098
0.124621
0.004653
0
0
0
0
0
1
0.081967
false
0
0.040984
0
0.22541
0.020492
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf8c232211d8a9e8eb6f6025337e301b97fed78a
12,943
py
Python
acms-pass/t.py
EtoDemerzel0427/Misc-Notes
d885bdb7a5e1caa9db0b9ee70695dff1a17b3d26
[ "MIT" ]
null
null
null
acms-pass/t.py
EtoDemerzel0427/Misc-Notes
d885bdb7a5e1caa9db0b9ee70695dff1a17b3d26
[ "MIT" ]
null
null
null
acms-pass/t.py
EtoDemerzel0427/Misc-Notes
d885bdb7a5e1caa9db0b9ee70695dff1a17b3d26
[ "MIT" ]
null
null
null
import argparse import asyncio import random import signal import sys import time import traceback import yaml from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtNetwork import * from PyQt5.QtWidgets import * from b4 import * class B4: conf = dict() groups = dict() room_...
37.956012
118
0.565402
1,647
12,943
4.27201
0.175471
0.039795
0.017055
0.012507
0.273451
0.203525
0.183485
0.145111
0.120665
0.089966
0
0.019772
0.296608
12,943
340
119
38.067647
0.753076
0.047052
0
0.061069
0
0.003817
0.107328
0.005258
0
0
0
0
0
1
0.041985
false
0.030534
0.049618
0
0.122137
0.003817
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf8cd3b23bb4289ca1b26b3b9af9020a678e5fa8
13,980
py
Python
src/utils/log.py
jcyrss/hytest
f3a5e53524fcf2917c95721146eb797ffabe4c11
[ "Apache-2.0" ]
8
2021-08-08T01:11:09.000Z
2022-03-07T07:50:08.000Z
src/utils/log.py
Vincentlz/hytest
f3a5e53524fcf2917c95721146eb797ffabe4c11
[ "Apache-2.0" ]
null
null
null
src/utils/log.py
Vincentlz/hytest
f3a5e53524fcf2917c95721146eb797ffabe4c11
[ "Apache-2.0" ]
6
2021-09-07T05:38:24.000Z
2022-03-22T09:52:02.000Z
_f=' case_st_lable' _e='green' _d='tag' _c=' fail' _b='folder_header' _a='executetime' _Z='folder_body' _Y='%Y%m%d_%H%M%S' _X='用例' _W='log' _V='info error-info' _U='%Y-%m-%d %H:%M:%S' _T='abort' _S='fail' _R='pass' _Q='utf8' _P='case_count' _O='case_count_toberun' _N='label' _M='Traceback:\n' _L='suite' _K='case_teardo...
80.809249
1,374
0.721388
2,324
13,980
4.154905
0.148021
0.007249
0.029619
0.024855
0.43082
0.356877
0.307891
0.268227
0.213857
0.17326
0
0.007336
0.063949
13,980
173
1,375
80.809249
0.730399
0
0
0.098266
0
0.00578
0.221086
0.014305
0
0
0
0
0
1
0.300578
false
0.052023
0.069364
0
0.404624
0.063584
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
3
bf8ee76e1f64b536bad62c4443845e7dcf14d0c8
5,872
py
Python
blenderneuron/blender/blendernode.py
Helveg/BlenderNEURON
7297e6aa45722f35908b707d0020b0519a6bc60d
[ "MIT" ]
19
2018-02-09T21:30:25.000Z
2022-03-21T23:02:26.000Z
blenderneuron/blender/blendernode.py
Helveg/BlenderNEURON
7297e6aa45722f35908b707d0020b0519a6bc60d
[ "MIT" ]
30
2019-04-16T02:38:24.000Z
2022-03-19T18:42:58.000Z
blenderneuron/blender/blendernode.py
Helveg/BlenderNEURON
7297e6aa45722f35908b707d0020b0519a6bc60d
[ "MIT" ]
5
2018-07-23T16:49:59.000Z
2022-03-02T18:48:07.000Z
import bpy from blenderneuron.blender.blenderroot import BlenderRoot from blenderneuron.blender.blenderrootgroup import * from blenderneuron.commnode import CommNode class BlenderNode(CommNode): def __init__(self, *args, **kwargs): super(BlenderNode, self).__init__("Blender", *args, **kwargs) ...
30.268041
81
0.56812
676
5,872
4.744083
0.252959
0.022451
0.016215
0.013096
0.110384
0.076084
0.067976
0.067976
0.067976
0
0
0.003957
0.354394
5,872
193
82
30.42487
0.841994
0.128236
0
0.142857
0
0
0.04469
0.00902
0
0
0
0
0
1
0.116071
false
0
0.053571
0.035714
0.25
0.017857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf90f187c224578a009a7b143999adefdfe7e863
3,383
py
Python
inventory/zero.py
fbartels/zero
370becc20bc6b89b4453ce71af31c4e5da972372
[ "MIT" ]
null
null
null
inventory/zero.py
fbartels/zero
370becc20bc6b89b4453ce71af31c4e5da972372
[ "MIT" ]
null
null
null
inventory/zero.py
fbartels/zero
370becc20bc6b89b4453ce71af31c4e5da972372
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import sys import argparse import subprocess try: import json except ImportError: import simplejson as json class ZeroInventory(object): def __init__(self): self.inventory = {} self.read_cli_args() # Called with `--list`. if self.args.lis...
32.219048
106
0.516406
331
3,383
5.132931
0.362538
0.037081
0.040024
0.02472
0.081224
0.081224
0.041201
0
0
0
0
0.002328
0.365061
3,383
105
107
32.219048
0.788641
0.155779
0
0.085714
0
0
0.107042
0.011972
0
0
0
0
0
1
0.057143
false
0
0.1
0.014286
0.2
0.014286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf9140192eafe23e1e6c3ba78e5132763af92f1c
1,579
py
Python
userbot/plugins/pantele.py
Kirmada7/KirmadaBot
96d72edb0c04445fa10b2a29c177ff74f371c7da
[ "MIT" ]
null
null
null
userbot/plugins/pantele.py
Kirmada7/KirmadaBot
96d72edb0c04445fa10b2a29c177ff74f371c7da
[ "MIT" ]
null
null
null
userbot/plugins/pantele.py
Kirmada7/KirmadaBot
96d72edb0c04445fa10b2a29c177ff74f371c7da
[ "MIT" ]
1
2020-07-12T06:50:04.000Z
2020-07-12T06:50:04.000Z
import asyncio import random import string from asyncio import wait from userbot.events import register @register(outgoing=True, pattern="^.pan") async def generate(e): if not e.text[0].isalpha() and e.text[0] not in ("/", "#", "@", "!"): message = e.text name = str(message[5:]) ...
35.088889
125
0.527549
198
1,579
4.166667
0.419192
0.048485
0.014545
0.038788
0.232727
0.191515
0.191515
0.191515
0.121212
0.121212
0
0.025665
0.309056
1,579
44
126
35.886364
0.726856
0.129196
0
0
1
0
0.098039
0.019608
0.03125
0
0
0
0
1
0
false
0
0.15625
0
0.15625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bf92e2b796afda65543afc9a1d957b84bd60a4c5
4,124
py
Python
src/ad/azext_ad/vendored_sdks/domainservices/models/__init__.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/ad/azext_ad/vendored_sdks/domainservices/models/__init__.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/ad/azext_ad/vendored_sdks/domainservices/models/__init__.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
37.834862
94
0.725024
349
4,124
8.352436
0.255014
0.150943
0.098113
0.143396
0.351286
0.163979
0.163979
0.163979
0.163979
0.163979
0
0.008
0.18162
4,124
108
95
38.185185
0.855704
0.178952
0
0
0
0
0.182658
0.087008
0
0
0
0
0
1
0
false
0.061224
0.469388
0
0.469388
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
1
0
0
0
0
2
bf92f177f7ec59a72d055c6c761cbe15cbc82589
1,743
py
Python
bms_fsm.py
dsoto/ASI-ENNOID-dashboard
8391b4acee770306931c3cf46fd46ec6e96eb4ba
[ "CC-BY-4.0" ]
1
2022-03-03T21:38:06.000Z
2022-03-03T21:38:06.000Z
bms_fsm.py
dsoto/ASI-ENNOID-dashboard
8391b4acee770306931c3cf46fd46ec6e96eb4ba
[ "CC-BY-4.0" ]
null
null
null
bms_fsm.py
dsoto/ASI-ENNOID-dashboard
8391b4acee770306931c3cf46fd46ec6e96eb4ba
[ "CC-BY-4.0" ]
null
null
null
import board import busio import struct import time class BMS_FSM(): def __init__(self): # self.bms_uart = busio.UART(board.TX, board.RX, baudrate=115200) # Feather M4 self.bms_uart = busio.UART(board.D18, board.D19, baudrate=115200) # Grand Central self.bms_request = bytes([0x02, 0x01, 0x0...
37.891304
106
0.567413
217
1,743
4.410138
0.373272
0.103448
0.045977
0.071055
0.282132
0.246604
0.075235
0
0
0
0
0.074014
0.286862
1,743
45
107
38.733333
0.695897
0.189902
0
0.148148
0
0
0.109364
0
0
0
0.017155
0
0
1
0.074074
false
0
0.148148
0
0.296296
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf94ecc0db6e188b273d33a45521f2cb0f748165
7,660
py
Python
further/pc_algorithm.py
alan-turing-institute/pcit
d8e3b7894d1ecbfed3a3405a31276ff4e9122f67
[ "MIT" ]
4
2018-11-06T09:54:44.000Z
2022-01-19T20:23:50.000Z
further/pc_algorithm.py
alan-turing-institute/pcit
d8e3b7894d1ecbfed3a3405a31276ff4e9122f67
[ "MIT" ]
1
2018-02-04T18:10:43.000Z
2018-02-04T18:10:43.000Z
further/pc_algorithm.py
alan-turing-institute/pcit
d8e3b7894d1ecbfed3a3405a31276ff4e9122f67
[ "MIT" ]
2
2018-12-26T10:06:25.000Z
2020-03-19T03:37:32.000Z
import itertools import matplotlib.pyplot as plt import networkx as nx import numpy as np from pcit.IndependenceTest import pred_indep class descendants(): def __init__(self, skeleton): self.skeleton = skeleton self.desc = list() def dir_desc(self, i): n = self.skeleton.shape[1] ...
37.184466
112
0.503916
1,052
7,660
3.54943
0.11692
0.192823
0.017675
0.036422
0.436797
0.369041
0.313069
0.271291
0.271291
0.229513
0
0.020694
0.375457
7,660
206
113
37.184466
0.759824
0.002611
0
0.308989
0
0
0.004058
0
0
0
0
0
0
1
0.08427
false
0.005618
0.02809
0
0.179775
0.011236
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf96f7be55166477d48c62a3607aa35997d0f553
15,204
py
Python
tests/unit/controllers/v1/test_executions_rbac.py
cognifloyd/st2-open-rbac
fb3251223743e497267277fe9f5cef91f41ade34
[ "Apache-2.0" ]
null
null
null
tests/unit/controllers/v1/test_executions_rbac.py
cognifloyd/st2-open-rbac
fb3251223743e497267277fe9f5cef91f41ade34
[ "Apache-2.0" ]
null
null
null
tests/unit/controllers/v1/test_executions_rbac.py
cognifloyd/st2-open-rbac
fb3251223743e497267277fe9f5cef91f41ade34
[ "Apache-2.0" ]
null
null
null
# Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use th...
40.43617
99
0.636938
1,849
15,204
5.022715
0.128177
0.093679
0.096156
0.071821
0.706471
0.669969
0.635081
0.62539
0.601594
0.601594
0
0.012327
0.247698
15,204
375
100
40.544
0.799615
0.093331
0
0.633588
0
0
0.134201
0.030186
0
0
0
0
0.221374
1
0.022901
false
0
0.072519
0
0.10687
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
bf97afb110f8b2e8ba3c9d7ed701726cf642cd46
2,823
py
Python
train.py
erick-alv/g-hgg
2cc0de9810ca6823ad6339cf4d1a63e265d1b5ee
[ "MIT" ]
null
null
null
train.py
erick-alv/g-hgg
2cc0de9810ca6823ad6339cf4d1a63e265d1b5ee
[ "MIT" ]
null
null
null
train.py
erick-alv/g-hgg
2cc0de9810ca6823ad6339cf4d1a63e265d1b5ee
[ "MIT" ]
null
null
null
import numpy as np import time from common import get_args, experiment_setup from copy import deepcopy import pickle import tensorflow as tf if __name__=='__main__': # Getting arguments from command line + defaults # Set up learning environment including, gym env, ddpg agent, hgg/normal learner, tester args = get_...
32.079545
93
0.735034
419
2,823
4.770883
0.28401
0.145073
0.078039
0.05953
0.241621
0.203102
0.14007
0.090545
0.058529
0
0
0.001233
0.138151
2,823
87
94
32.448276
0.820386
0.145944
0
0.072727
0
0
0.102671
0
0
0
0
0
0
1
0
false
0
0.109091
0
0.109091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf9c418efafede01fd1fe96486cab5628df1217c
145
py
Python
CS1410/Mod1_Practice/schoolPractice/Equality.py
Davidjbennett/DavidBennett.github.io
09a2652b7ace8741bf23c6432abd58ee790b9f0c
[ "MIT" ]
3
2021-05-18T16:17:29.000Z
2022-01-20T15:46:59.000Z
CS1410/Mod1_Practice/schoolPractice/Equality.py
Davidjbennett/DavidBennett
09a2652b7ace8741bf23c6432abd58ee790b9f0c
[ "MIT" ]
null
null
null
CS1410/Mod1_Practice/schoolPractice/Equality.py
Davidjbennett/DavidBennett
09a2652b7ace8741bf23c6432abd58ee790b9f0c
[ "MIT" ]
null
null
null
first = [10,20,30] second = first third = list(first) print(first == second) print(first == third) print(first is second) print(first is third)
16.111111
22
0.703448
23
145
4.434783
0.391304
0.392157
0.313725
0
0
0
0
0
0
0
0
0.04878
0.151724
145
9
23
16.111111
0.780488
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.571429
1
0
0
null
1
1
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
1
0
5
bf9c9f2ad47c2493e56e5746ab85cc6e452ae864
1,371
py
Python
tests/fast/test_pickle.py
evinism/littlebaker
d4eac27c23999274397aecdb719c465b13306f26
[ "MIT" ]
19
2020-12-04T02:39:04.000Z
2020-12-04T21:45:09.000Z
tests/fast/test_pickle.py
evinism/littlebaker
d4eac27c23999274397aecdb719c465b13306f26
[ "MIT" ]
13
2020-12-04T22:20:26.000Z
2021-04-29T05:39:51.000Z
tests/fast/test_pickle.py
evinism/littlebaker
d4eac27c23999274397aecdb719c465b13306f26
[ "MIT" ]
1
2021-04-28T06:21:01.000Z
2021-04-28T06:21:01.000Z
from tinybaker import Transform, InputTag, OutputTag, sequence import pickle class StepOne(Transform): foo = InputTag("foo") bar = OutputTag("bar") def script(self): with self.foo.open() as f: data = f.read() with self.bar.open() as f: f.write(data) class StepTwo...
23.637931
66
0.557257
166
1,371
4.524096
0.283133
0.031957
0.065246
0.069241
0.263648
0.201065
0.095872
0.095872
0
0
0
0.002064
0.293217
1,371
57
67
24.052632
0.772962
0
0
0.238095
0
0
0.114515
0.03647
0
0
0
0
0.02381
1
0.095238
false
0
0.047619
0
0.380952
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf9d1c229636cf8e73b8136dc8f76f750b3401fc
1,711
py
Python
tests/actors/accessibility/test_accessibility.py
reapler/geckordp
29dab2e6e691954a473e054fa95ba40a3ad10e53
[ "MIT" ]
1
2021-12-24T04:37:02.000Z
2021-12-24T04:37:02.000Z
tests/actors/accessibility/test_accessibility.py
jpramosi/geckordp
29dab2e6e691954a473e054fa95ba40a3ad10e53
[ "MIT" ]
1
2021-07-23T13:38:36.000Z
2021-08-07T14:17:54.000Z
tests/actors/accessibility/test_accessibility.py
reapler/geckordp
29dab2e6e691954a473e054fa95ba40a3ad10e53
[ "MIT" ]
1
2021-10-31T17:31:35.000Z
2021-10-31T17:31:35.000Z
# pylint: disable=unused-import import pytest import tests.helpers.constants as constants from tests.helpers.utils import * from geckordp.rdp_client import RDPClient from geckordp.actors.root import RootActor from geckordp.actors.descriptors.tab import TabActor from geckordp.actors.accessibility.accessibility import Ac...
26.734375
89
0.670953
202
1,711
5.579208
0.331683
0.053239
0.031943
0.039042
0.261757
0.261757
0.233363
0.233363
0.194321
0
0
0.001524
0.233197
1,711
63
90
27.15873
0.85747
0.016949
0
0.384615
0
0
0.068452
0
0
0
0
0
0.057692
1
0.096154
false
0
0.153846
0
0.269231
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf9e18fe4d55d3bb8920e6325a4acb85be41d552
481
py
Python
youtube_parser.py
d99p/rude_bot
104e1aee4daa88aa21d80ffc958d8d5445126c1d
[ "Apache-2.0" ]
8
2020-11-16T20:25:05.000Z
2021-10-04T17:06:33.000Z
youtube_parser.py
d99p/rude_bot
104e1aee4daa88aa21d80ffc958d8d5445126c1d
[ "Apache-2.0" ]
3
2021-04-10T20:31:12.000Z
2021-04-12T12:03:32.000Z
youtube_parser.py
d99p/rude_bot
104e1aee4daa88aa21d80ffc958d8d5445126c1d
[ "Apache-2.0" ]
7
2021-03-29T09:42:38.000Z
2022-02-04T12:52:29.000Z
import requests import re def cut_url(content): text = re.findall(r'url="https:\/\/[\w.,@?^=%&:/~+#-]*', content) #idk if this a good way return text[0].replace('url="', '').replace('?version=3', '').replace('/v/', '/watch?v=') def get_urls(url): resp = requests.get(url) urls = [cut_url(link) fo...
25.315789
93
0.621622
76
481
3.815789
0.5
0.072414
0
0
0
0
0
0
0
0
0
0.004963
0.162162
481
18
94
26.722222
0.71464
0.045738
0
0
0
0
0.165939
0.074236
0
0
0
0
0
1
0.272727
false
0
0.181818
0.090909
0.727273
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
1
0
0
2
bf9fb9031e94da688c160248b371ac9be8f9e4a5
17,301
py
Python
DbObjectCreator/DbObjectCreator.py
Haagimus/cautious-rotary-phone
21c4c7869b8166cdb75e5db4eb35acde28b459f2
[ "MIT" ]
2
2020-08-29T22:03:46.000Z
2020-09-03T11:25:04.000Z
DbObjectCreator/DbObjectCreator.py
Haagimus/cautious-rotary-phone
21c4c7869b8166cdb75e5db4eb35acde28b459f2
[ "MIT" ]
null
null
null
DbObjectCreator/DbObjectCreator.py
Haagimus/cautious-rotary-phone
21c4c7869b8166cdb75e5db4eb35acde28b459f2
[ "MIT" ]
null
null
null
import mysql.connector from enum import Enum from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker, Query from sqlalchemy.ext.automap import automap_base from sqlalchemy.sql.elements import BinaryExpression from sshtunnel import SSHTunnelForwarder import pymysql import psycopg2 import pymssql imp...
40.048611
166
0.5628
1,998
17,301
4.744745
0.149149
0.05
0.017932
0.020042
0.378059
0.282806
0.221414
0.197468
0.177215
0.172152
0
0.001614
0.355471
17,301
431
167
40.141531
0.848534
0.277325
0
0.38843
0
0
0.107358
0.048878
0
0
0
0
0
1
0.053719
false
0.066116
0.045455
0
0.14876
0.008264
0
0
0
null
0
0
0
0
0
0
0
0
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
bfa007f01f0521a3952080258ba83656a9eeaff7
564
py
Python
py/leetcode/DungeonGame.py
danyfang/SourceCode
8168f6058648f2a330a7354daf3a73a4d8a4e730
[ "MIT" ]
null
null
null
py/leetcode/DungeonGame.py
danyfang/SourceCode
8168f6058648f2a330a7354daf3a73a4d8a4e730
[ "MIT" ]
null
null
null
py/leetcode/DungeonGame.py
danyfang/SourceCode
8168f6058648f2a330a7354daf3a73a4d8a4e730
[ "MIT" ]
null
null
null
''' Leetcode problem No 174 Dungeon Game Solution written by Xuqiang Fang on 5 July, 2018 ''' class Solution(object): def calculateMinimumHP(self, dungeon): DP = [float("inf") for _ in dungeon[0]] DP[-1] = 1 for i in reversed(xrange(len(dungeon))): DP[-1] = max(DP[-1] - dungeon...
26.857143
62
0.547872
85
564
3.552941
0.458824
0.029801
0.033113
0.125828
0.172185
0
0
0
0
0
0
0.047859
0.296099
564
20
63
28.2
0.712846
0.150709
0
0
0
0
0.006369
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bfa0480628cbd64765f0e794d146b8b1cadeec58
10,288
py
Python
pw_make_radcool_structure.py
parkerwray/tmm
8c27a56163d33de5955611eee35864c4485d1b2b
[ "MIT" ]
null
null
null
pw_make_radcool_structure.py
parkerwray/tmm
8c27a56163d33de5955611eee35864c4485d1b2b
[ "MIT" ]
null
null
null
pw_make_radcool_structure.py
parkerwray/tmm
8c27a56163d33de5955611eee35864c4485d1b2b
[ "MIT" ]
null
null
null
""" Import relevant modules """ from __future__ import division, print_function, absolute_import #from tmm.tmm_core import (coh_tmm, unpolarized_RT, ellips, # position_resolved, find_in_structure_with_inf) from wptherml.wptherml.datalib import datalib import tmm.tmm_core as tmm from numpy impor...
39.569231
135
0.585051
1,490
10,288
3.951007
0.185235
0.05113
0.073042
0.022422
0.612027
0.554952
0.501444
0.491931
0.487685
0.446237
0
0.048148
0.160187
10,288
259
136
39.722008
0.633218
0.566874
0
0.16129
0
0
0.143344
0
0
0
0
0
0
1
0
false
0
0.112903
0
0.112903
0.016129
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bfa068d8a934be3d7b1205fc6ff72b2f92ee4aa5
636
py
Python
covertutils/covertutils/shells/subshells/__init__.py
aidden-laoch/sabre
0940aa51dfc5074291df9d29db827ddb4010566d
[ "MIT" ]
2
2020-11-23T23:54:32.000Z
2021-05-25T12:28:05.000Z
covertutils/covertutils/shells/subshells/__init__.py
aidden-laoch/sabre
0940aa51dfc5074291df9d29db827ddb4010566d
[ "MIT" ]
1
2021-03-20T05:43:02.000Z
2021-03-20T05:43:02.000Z
covertutils/covertutils/shells/subshells/__init__.py
aidden-laoch/sabre
0940aa51dfc5074291df9d29db827ddb4010566d
[ "MIT" ]
null
null
null
# from covertutils.shells.subshells.simplesubshell import SimpleSubShell # from covertutils.shells.subshells.shellcodesubshell import ShellcodeSubShell # from covertutils.shells.subshells.pythonapisubshell import PythonAPISubShell # from covertutils.shells.subshells.controlsubshell import ControlSubShell # from covertu...
37.411765
101
0.878931
59
636
9.474576
0.271186
0.214669
0.300537
0.429338
0
0
0
0
0
0
0
0
0.070755
636
16
102
39.75
0.945854
0.045597
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
1
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
1
0
1
0
1
0
0
6
bfa0c27f0aad4f5472dc6a2166cb780a75f980c8
1,105
py
Python
tensorflow/contrib/distribute/python/tpu_strategy.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/distribute/python/tpu_strategy.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/distribute/python/tpu_strategy.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
40.925926
83
0.718552
146
1,105
5.308219
0.623288
0.077419
0.061935
0.04129
0
0
0
0
0
0
0
0.009657
0.156561
1,105
26
84
42.5
0.821888
0.700452
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
2
bfa0c62575bd34e4cba52c7f7400939a06bfae09
1,592
py
Python
after/bayes.py
Windsooon/Comments
47a6077e3bf46743a8da3d59ea8ebcd5601c9fe9
[ "MIT" ]
1
2020-07-08T06:17:54.000Z
2020-07-08T06:17:54.000Z
after/bayes.py
Windsooon/Comments
47a6077e3bf46743a8da3d59ea8ebcd5601c9fe9
[ "MIT" ]
null
null
null
after/bayes.py
Windsooon/Comments
47a6077e3bf46743a8da3d59ea8ebcd5601c9fe9
[ "MIT" ]
null
null
null
import os import csv import pickle import pandas as pd import numpy as np import sklearn from sklearn.model_selection import train_test_split, cross_val_score from sklearn.model_selection import KFold from sklearn.metrics import accuracy_score, precision_score, recall_score, f1_score from sklearn.naive_bayes import Mu...
31.215686
83
0.766332
232
1,592
5
0.344828
0.025862
0.034483
0.051724
0.053448
0
0
0
0
0
0
0.008017
0.138191
1,592
50
84
31.84
0.837464
0.018216
0
0
0
0
0.017297
0
0
0
0
0
0
1
0
false
0
0.268293
0
0.268293
0.097561
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bfa123a46e6c48d9f51257a647096c4fc2fe9422
818
py
Python
deprecated/printers/bov/tests/test_database.py
nielsdrost/pymt
ae39bf807428827a6904202bf4d3b927daa255ea
[ "MIT" ]
null
null
null
deprecated/printers/bov/tests/test_database.py
nielsdrost/pymt
ae39bf807428827a6904202bf4d3b927daa255ea
[ "MIT" ]
null
null
null
deprecated/printers/bov/tests/test_database.py
nielsdrost/pymt
ae39bf807428827a6904202bf4d3b927daa255ea
[ "MIT" ]
null
null
null
import os import numpy as np from pymt.grids import RasterField from pymt.printers.bov.database import Database def test_bov_database(tmpdir): data = np.arange(6.) field = RasterField((3, 2), (1., 1.), (0., 0.)) field.add_field("Elevation", data, centering="point") with tmpdir.as_cwd(): db ...
24.787879
72
0.625917
114
818
4.394737
0.438596
0.131737
0.071856
0.107784
0.277445
0.277445
0.277445
0.277445
0.277445
0.195609
0
0.034314
0.251834
818
32
73
25.5625
0.784314
0.141809
0
0.25
0
0
0.145923
0.090129
0
0
0
0
0.15
1
0.05
false
0
0.2
0
0.25
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
0
0
0
0
0
0
0
0
1
0
bfa18c419b9bddacf91037d88c2cff23c5558bdb
8,820
py
Python
flowws_keras_geometry/models/PDBInverseCoarseGrain.py
klarh/flowws-keras-geometry
f6768ff20fdbf85deacd234c116919219500ecbe
[ "MIT" ]
2
2021-11-17T05:08:01.000Z
2021-11-28T17:17:08.000Z
flowws_keras_geometry/models/PDBInverseCoarseGrain.py
klarh/flowws-keras-geometry
f6768ff20fdbf85deacd234c116919219500ecbe
[ "MIT" ]
null
null
null
flowws_keras_geometry/models/PDBInverseCoarseGrain.py
klarh/flowws-keras-geometry
f6768ff20fdbf85deacd234c116919219500ecbe
[ "MIT" ]
null
null
null
import flowws from flowws import Argument as Arg import tensorflow as tf from tensorflow import keras from .internal import HUGE_FLOAT, PairwiseVectorDifference, \ PairwiseVectorDifferenceSum, VectorAttention, Vector2VectorAttention class CoarseGrainAttention(Vector2VectorAttention): def build(self, input_sh...
41.023256
109
0.622222
1,095
8,820
4.8
0.206393
0.034627
0.020548
0.02188
0.276256
0.246195
0.209094
0.165335
0.165335
0.152397
0
0.007422
0.26678
8,820
214
110
41.214953
0.805319
0.028118
0
0.090361
0
0
0.123845
0.011461
0
0
0
0
0
1
0.054217
false
0
0.03012
0
0.156627
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bfa221e1979ae3e08b502d632de23a867c0630aa
3,565
py
Python
DeepLearningExamples/TensorFlow/Recommendation/WideAndDeep/utils/metrics.py
puririshi98/benchmark
79f554f1e1cf36f62994c78e0e6e5b360f554022
[ "BSD-3-Clause" ]
null
null
null
DeepLearningExamples/TensorFlow/Recommendation/WideAndDeep/utils/metrics.py
puririshi98/benchmark
79f554f1e1cf36f62994c78e0e6e5b360f554022
[ "BSD-3-Clause" ]
null
null
null
DeepLearningExamples/TensorFlow/Recommendation/WideAndDeep/utils/metrics.py
puririshi98/benchmark
79f554f1e1cf36f62994c78e0e6e5b360f554022
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, NVIDIA CORPORATION. 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 applic...
38.75
87
0.722861
506
3,565
4.859684
0.304348
0.101667
0.03904
0.037414
0.616511
0.53843
0.53843
0.53843
0.53843
0.53843
0
0.013425
0.185133
3,565
91
88
39.175824
0.833046
0.289201
0
0.576923
0
0
0.031051
0.009156
0
0
0
0
0
1
0.038462
false
0
0.038462
0
0.115385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bfa6e37ce663c12f0fdad157e24b3fc3bb9524e5
11,809
py
Python
src/compas_fea/structure/material.py
franaudo/fea
e164256bac179116520d19d6fc54c98de0610896
[ "MIT" ]
28
2018-02-16T17:21:47.000Z
2022-02-27T21:42:17.000Z
src/compas_fea/structure/material.py
franaudo/fea
e164256bac179116520d19d6fc54c98de0610896
[ "MIT" ]
115
2017-11-30T17:12:47.000Z
2022-01-26T07:41:34.000Z
src/compas_fea/structure/material.py
franaudo/fea
e164256bac179116520d19d6fc54c98de0610896
[ "MIT" ]
13
2018-05-08T13:03:28.000Z
2022-01-23T13:37:06.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from math import log # Author(s): Andrew Liew (github.com/andrewliew) __all__ = [ 'Material', 'Concrete', 'ConcreteSmearedCrack', 'ConcreteDamagedPlasticity', 'ElasticIsotropic', 'St...
26.242222
106
0.474807
1,349
11,809
4.034099
0.156412
0.061742
0.041896
0.041161
0.442852
0.376148
0.372473
0.314774
0.295663
0.286476
0
0.022158
0.296808
11,809
449
107
26.300668
0.633189
0.410873
0
0.386503
0
0
0.090792
0.008049
0
0
0
0
0
1
0.07362
false
0
0.02454
0.006135
0.171779
0.030675
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bfa749699de26602b2730662f9b8a7ff680aac28
365
py
Python
utilities/mongodb/insert.py
sosomasox/adl
1afc2f385cbae6f1d4fefa5534f194621e4460c4
[ "MIT" ]
null
null
null
utilities/mongodb/insert.py
sosomasox/adl
1afc2f385cbae6f1d4fefa5534f194621e4460c4
[ "MIT" ]
null
null
null
utilities/mongodb/insert.py
sosomasox/adl
1afc2f385cbae6f1d4fefa5534f194621e4460c4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from pymongo import MongoClient import json import ast client = MongoClient('mongodb://localhost:27017/') db = client.adl collection = db.adlmodels with open('../data/going_out.jsonl', 'r') as fp: for data in fp.readlines(): data = data.strip() data_dit = ast.literal_eval(d...
22.8125
50
0.690411
51
365
4.843137
0.705882
0.05668
0
0
0
0
0
0
0
0
0
0.020067
0.180822
365
15
51
24.333333
0.80602
0.057534
0
0
0
0
0.145773
0.142857
0
0
0
0
0
1
0
false
0
0.272727
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bfa8558ac1772d42a73ab7a03e7faa0e2989dc76
454
py
Python
utils/Distributions/Gamma.py
vd1371/GIAMS
dd6551f344b8d0377131d4496846eb5d03b6189c
[ "MIT" ]
null
null
null
utils/Distributions/Gamma.py
vd1371/GIAMS
dd6551f344b8d0377131d4496846eb5d03b6189c
[ "MIT" ]
null
null
null
utils/Distributions/Gamma.py
vd1371/GIAMS
dd6551f344b8d0377131d4496846eb5d03b6189c
[ "MIT" ]
null
null
null
#Loading dependencies from .BaseDistribution import BaseDistribution class Gamma(BaseDistribution): def __init__(self, shape, scale): super().__init__() self.shape = shape self.scale = scale def set(self, shape, scale): self.shape = shape self.scale = scale def sample(self): # https://numpy.org/doc/s...
26.705882
107
0.757709
58
454
5.793103
0.448276
0.133929
0.125
0.107143
0.184524
0.184524
0.184524
0
0
0
0
0
0.123348
454
17
108
26.705882
0.844221
0.270925
0
0.363636
0
0
0
0
0
0
0
0
0
1
0.272727
false
0
0.090909
0.090909
0.545455
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
bfa8cb6c6419a3d2b51a4b0411b2675939d36c2f
4,087
py
Python
omnibus/code.py
wrmsr/omnibus
3c4ef5eb17b0fff8593fa6a2284337bf193c18d3
[ "BSD-3-Clause" ]
2
2020-06-17T19:54:09.000Z
2020-06-18T20:10:26.000Z
omnibus/code.py
wrmsr/omnibus
3c4ef5eb17b0fff8593fa6a2284337bf193c18d3
[ "BSD-3-Clause" ]
null
null
null
omnibus/code.py
wrmsr/omnibus
3c4ef5eb17b0fff8593fa6a2284337bf193c18d3
[ "BSD-3-Clause" ]
null
null
null
import dis import gc import opcode import sys import textwrap import types import typing as ta from . import lang Code = types.CodeType Function = types.FunctionType Frame = types.FrameType CODE_ARGS = [ 'argcount', 'kwonlyargcount', 'nlocals', 'stacksize', 'flags', 'code', 'consts', ...
24.473054
116
0.663567
541
4,087
4.809612
0.330869
0.027671
0.055342
0.057648
0.076095
0.013836
0
0
0
0
0
0.007832
0.218987
4,087
166
117
24.620482
0.807331
0.092244
0
0.070175
0
0
0.101304
0
0
0
0
0
0
1
0.149123
false
0.017544
0.070175
0.096491
0.377193
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bfa9911aa0052a6c71229ba272f18a078ad0fbf0
925
py
Python
apidoc/libs/args_schema.py
Naisisor/naisi
acda35b9d37c6bacad2192c462c12e64b6277424
[ "MIT" ]
null
null
null
apidoc/libs/args_schema.py
Naisisor/naisi
acda35b9d37c6bacad2192c462c12e64b6277424
[ "MIT" ]
null
null
null
apidoc/libs/args_schema.py
Naisisor/naisi
acda35b9d37c6bacad2192c462c12e64b6277424
[ "MIT" ]
null
null
null
from marshmallow import Schema, fields, validate from apidoc.libs.common import contain_zh from apidoc.settings import Config class PaginateSchema(Schema): page = fields.Int(missing=1, location='query') per_page = fields.Int(missing=Config.API_DOC_PER_PAGE, location='query') class NameSchema(Schema): n...
38.541667
116
0.725405
125
925
5.296
0.464
0.054381
0.099698
0.060423
0.244713
0.187311
0.187311
0.187311
0.187311
0.187311
0
0.009988
0.134054
925
23
117
40.217391
0.816479
0.111351
0
0
0
0
0.056511
0
0
0
0
0.043478
0
1
0
false
0
0.214286
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
1
0
0
2
bfa9f514b2c99066b32a9c8b4d3db858314b200e
2,928
py
Python
2021/day20.py
tangarts/advent-of-code
5879fbec1a5377d1288666a357b029f6345d4a5d
[ "MIT" ]
null
null
null
2021/day20.py
tangarts/advent-of-code
5879fbec1a5377d1288666a357b029f6345d4a5d
[ "MIT" ]
null
null
null
2021/day20.py
tangarts/advent-of-code
5879fbec1a5377d1288666a357b029f6345d4a5d
[ "MIT" ]
null
null
null
from advent_of_code.core import parse_input, flatten raw = """..#.#..#####.#.#.#.###.##.....###.##.#..###.####..#####..#....#..#..##..## #..######.###...####..#..#####..##..#.#####...##.#.#..#.##..#.#......#.### .######.###.####...#.##.##..#..#..#####.....#.#....###..#.##......#.....#. .#..#..##..#...##.######.####.#...
32.175824
117
0.470628
342
2,928
3.947368
0.248538
0.059259
0.022222
0.015556
0.12
0.12
0.088889
0.057778
0.057778
0.057778
0
0.031901
0.197063
2,928
90
118
32.533333
0.542322
0.06694
0
0.065574
0
0
0.218981
0.189069
0
0
0
0
0.016393
1
0.114754
false
0
0.016393
0
0.229508
0.032787
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bfaad62bd9e583e1ea51ba34d2df4f6e9cf1f105
777
py
Python
profiles/migrations/0004_auto_20180220_1915.py
choia/bucket-list-webapp
3f77c58f6f6c66f3ad1d88ee375a39ce294b9680
[ "MIT" ]
1
2020-07-28T17:10:30.000Z
2020-07-28T17:10:30.000Z
profiles/migrations/0004_auto_20180220_1915.py
choia/bucket-list-webapp
3f77c58f6f6c66f3ad1d88ee375a39ce294b9680
[ "MIT" ]
8
2018-01-11T02:09:30.000Z
2022-01-13T00:49:27.000Z
profiles/migrations/0004_auto_20180220_1915.py
choia/bucket-list-webapp
3f77c58f6f6c66f3ad1d88ee375a39ce294b9680
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2018-02-20 19:15 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('profiles', '0003_postinstance_user_post'), ] operations = [ migrations.Alte...
25.9
63
0.590734
76
777
5.855263
0.684211
0.107865
0.103371
0.121348
0.193258
0.193258
0
0
0
0
0
0.0434
0.288288
777
29
64
26.793103
0.761302
0.087516
0
0.318182
1
0
0.148725
0.038244
0
0
0
0
0
1
0
false
0
0.090909
0
0.227273
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
bfac716a70e1d5acb5b1e13b1f148e9c8bcc5ce8
4,406
py
Python
pytest_nodev/blacklists.py
nodev-io/pytest-wish
14c9ef2a3891ac245fe572f6fb8e4649930349cb
[ "MIT" ]
21
2016-02-25T18:00:39.000Z
2021-12-13T02:58:24.000Z
pytest_nodev/blacklists.py
nodev-io/pytest-wish
14c9ef2a3891ac245fe572f6fb8e4649930349cb
[ "MIT" ]
18
2016-02-18T20:38:47.000Z
2016-08-25T07:26:14.000Z
pytest_nodev/blacklists.py
nodev-io/pytest-wish
14c9ef2a3891ac245fe572f6fb8e4649930349cb
[ "MIT" ]
6
2016-02-26T13:45:41.000Z
2016-08-25T05:45:58.000Z
# -*- coding: utf-8 -*- # # Copyright (c) 2016 Alessandro Amici # # 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, ...
27.886076
87
0.687472
519
4,406
5.741811
0.579961
0.02953
0.017114
0.020134
0.032215
0.032215
0.032215
0.032215
0
0
0
0.002254
0.194281
4,406
157
88
28.063694
0.837183
0.408534
0
0.020619
0
0
0.593518
0.324873
0
0
0
0.006369
0
1
0
false
0.030928
0.020619
0
0.020619
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bfacebc149bcde45d8b837419f726ea675713269
4,574
py
Python
streaming_plot_client.py
Sensirion/libsensors-python
dda92824ce073b4b25f8db90150e90f092275a39
[ "BSD-3-Clause" ]
21
2015-12-31T00:35:37.000Z
2019-10-17T08:17:07.000Z
streaming_plot_client.py
Sensirion/libsensors-python
dda92824ce073b4b25f8db90150e90f092275a39
[ "BSD-3-Clause" ]
5
2015-09-28T13:47:44.000Z
2018-12-12T22:36:09.000Z
streaming_plot_client.py
Sensirion/libsensors-python
dda92824ce073b4b25f8db90150e90f092275a39
[ "BSD-3-Clause" ]
15
2015-11-10T10:11:35.000Z
2021-05-20T08:41:18.000Z
#! /usr/bin/python # -*- coding: utf-8 -*- """ Sample appplication that connects to a mqtt server and plots all sensor data. It is possible to subscribe to only some sensors or to all of them by modifying the subscription topic. To run the script you need to install the paho MQTT library and PyQt as listed in requir...
32.671429
86
0.638828
561
4,574
5.081996
0.413547
0.024553
0.019642
0.013329
0.016836
0
0
0
0
0
0
0.008517
0.255575
4,574
139
87
32.906475
0.828488
0.161128
0
0
0
0
0.052411
0
0
0
0
0
0
1
0.06
false
0
0.06
0
0.18
0.01
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bfadeebda3d888464f736b1d2628712419a57a4c
4,550
py
Python
services/backend/app/models.py
miguelalb/resume-portal-fastapi
286f732510925c5ad3760ca2af82098ed78e0dd9
[ "BSD-3-Clause" ]
1
2022-02-28T02:29:02.000Z
2022-02-28T02:29:02.000Z
services/backend/app/models.py
miguelalb/resume-portal-fastapi
286f732510925c5ad3760ca2af82098ed78e0dd9
[ "BSD-3-Clause" ]
null
null
null
services/backend/app/models.py
miguelalb/resume-portal-fastapi
286f732510925c5ad3760ca2af82098ed78e0dd9
[ "BSD-3-Clause" ]
null
null
null
import uuid from datetime import datetime from sqlalchemy import Boolean, Column, ForeignKey, Integer, String, Text from sqlalchemy.dialects.postgresql import UUID from sqlalchemy.ext.declarative import declared_attr from sqlalchemy.orm import relationship from app.database import Base class BaseMixin(object): ...
32.042254
86
0.705934
514
4,550
6.095331
0.22179
0.103415
0.043409
0.053623
0.421002
0.313438
0.282796
0.23428
0.175551
0.175551
0
0.000265
0.171429
4,550
141
87
32.269504
0.830769
0.024176
0
0.22
0
0
0.122463
0
0
0
0
0.007092
0
1
0.08
false
0.01
0.07
0.08
0.89
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bfaff810f8ad02f15def8943b57bf4630603e431
1,597
py
Python
python_src/tbd_audio_common/sound_maker.py
CMU-TBD/tbd_audio_common
5afdaccbf1e5c8ad038ce849844cd85e846b8927
[ "MIT-CMU", "MIT" ]
null
null
null
python_src/tbd_audio_common/sound_maker.py
CMU-TBD/tbd_audio_common
5afdaccbf1e5c8ad038ce849844cd85e846b8927
[ "MIT-CMU", "MIT" ]
null
null
null
python_src/tbd_audio_common/sound_maker.py
CMU-TBD/tbd_audio_common
5afdaccbf1e5c8ad038ce849844cd85e846b8927
[ "MIT-CMU", "MIT" ]
null
null
null
#!/usr/bin/env python import rospy import alloy.ros import os import wave import actionlib from tbd_ros_msgs.msg import ( playAudioAction, playAudioGoal ) class SoundMaker(): def __init__(self): self._tbd_audio_client = actionlib.SimpleActionClient("playAudio", playAudioAction) self._tb...
29.574074
123
0.644333
195
1,597
4.994872
0.441026
0.057495
0.086242
0.129363
0.155031
0.155031
0.075975
0.075975
0
0
0
0
0.271133
1,597
53
124
30.132075
0.83677
0.166562
0
0.0625
0
0
0.026128
0
0
0
0
0
0
1
0.09375
false
0
0.21875
0
0.34375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bfb19827d57787b285507d6f0c699802654b2f05
1,474
py
Python
webserver/ProjetoSS.py
jonnyff/Outliers_NASA-Space-Apps
2713bad7df491e1c32ef2657f4e7e868c3e3777b
[ "Apache-2.0" ]
null
null
null
webserver/ProjetoSS.py
jonnyff/Outliers_NASA-Space-Apps
2713bad7df491e1c32ef2657f4e7e868c3e3777b
[ "Apache-2.0" ]
null
null
null
webserver/ProjetoSS.py
jonnyff/Outliers_NASA-Space-Apps
2713bad7df491e1c32ef2657f4e7e868c3e3777b
[ "Apache-2.0" ]
null
null
null
from flask import Flask, request, render_template from flask import json from requests.auth import HTTPBasicAuth app = Flask(__name__) @app.route('/', methods=['GET', 'POST']) def index(): if request.method == 'POST': ipcliente = request.remote_addr programa = request.form['programa'] cmdc...
35.095238
109
0.591588
163
1,474
5.251534
0.588957
0.049065
0.035047
0.014019
0.11215
0.044393
0.044393
0
0
0
0
0.053456
0.263908
1,474
41
110
35.95122
0.735484
0.069878
0
0.060606
0
0
0.260584
0.065693
0
0
0
0
0
1
0.030303
false
0
0.090909
0
0.181818
0.030303
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bfb1e55075a8b67cd215ee8a1df39ac77cfeba01
2,922
py
Python
pages/forms.py
Mannuel25/Cheqqit
8f2b2447fcd00e4951d16580267de2930cc42253
[ "MIT" ]
11
2022-01-05T11:54:23.000Z
2022-03-25T08:47:02.000Z
pages/forms.py
Mannuel25/Cheqqit
8f2b2447fcd00e4951d16580267de2930cc42253
[ "MIT" ]
null
null
null
pages/forms.py
Mannuel25/Cheqqit
8f2b2447fcd00e4951d16580267de2930cc42253
[ "MIT" ]
null
null
null
from django import forms from .models import UserTasks class AddTaskForm(forms.ModelForm): """ this form will be used to create or update a task """ title = forms.CharField(max_length=100, widget= forms.TextInput (attrs={'placeholder':"Enter the task's title"})) description = forms.CharFiel...
41.15493
97
0.667009
351
2,922
5.461538
0.179487
0.074596
0.109025
0.137715
0.769953
0.753782
0.703182
0.703182
0.649974
0.619197
0
0.006353
0.191992
2,922
71
98
41.15493
0.805591
0.050308
0
0.545455
0
0
0.21978
0
0
0
0
0
0
1
0
false
0
0.036364
0
0.418182
0
0
0
0
null
0
0
0
0
1
1
1
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
4
bfb4a6fbb8d580b5d2075aecbe9dbd0aeb08ff0b
3,232
py
Python
scripts/vramc/encoder.py
paulscottrobson/6502-basic
d4c360041bfa49427a506465e58bb0ef94beaa44
[ "MIT" ]
3
2021-09-30T19:34:11.000Z
2021-10-31T06:55:50.000Z
scripts/vramc/encoder.py
paulscottrobson/6502-Basic
d4c360041bfa49427a506465e58bb0ef94beaa44
[ "MIT" ]
null
null
null
scripts/vramc/encoder.py
paulscottrobson/6502-Basic
d4c360041bfa49427a506465e58bb0ef94beaa44
[ "MIT" ]
1
2021-12-07T21:58:44.000Z
2021-12-07T21:58:44.000Z
# ***************************************************************************** # ***************************************************************************** # # Name: encoder.py # Author: Paul Robson (paul@robsons.org.uk) # Date: 27th March 2021 # Purpose: Encode graphics # # *********************************...
28.350877
107
0.534963
411
3,232
4.177616
0.377129
0.016308
0.013978
0.012813
0.024461
0.024461
0
0
0
0
0
0.030385
0.195545
3,232
113
108
28.60177
0.63
0.299196
0
0.029851
0
0
0.014885
0
0
0
0.017591
0
0.044776
1
0.074627
false
0.014925
0.029851
0
0.179104
0.014925
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bfb5034780b879d1244f12e00e78645edb6abd45
2,541
py
Python
torchaudio/__init__.py
micmelesse/audio
e8cc7f9130135e8ab96d58b0225d5120da6a0804
[ "BSD-2-Clause" ]
null
null
null
torchaudio/__init__.py
micmelesse/audio
e8cc7f9130135e8ab96d58b0225d5120da6a0804
[ "BSD-2-Clause" ]
1
2021-08-31T22:20:32.000Z
2021-08-31T22:20:32.000Z
torchaudio/__init__.py
micmelesse/audio
e8cc7f9130135e8ab96d58b0225d5120da6a0804
[ "BSD-2-Clause" ]
null
null
null
from torchaudio._internal import module_utils as _mod_utils # noqa: F401 if _mod_utils.is_module_available('torchaudio._torchaudio'): # Note this import has two purposes # 1. Make _torchaudio accessible by the other modules (regular import) # 2. Register torchaudio's custom ops bound via TorchScript #...
35.291667
98
0.709957
326
2,541
5.40184
0.423313
0.03975
0.034072
0.034072
0.128336
0.128336
0.128336
0.128336
0.128336
0.074957
0
0.0065
0.212908
2,541
71
99
35.788732
0.874
0.610783
0
0
0
0
0.193312
0.022989
0
0
0
0
0
1
0
false
0.026316
0.184211
0
0.184211
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0